From acbf4c6fbc7f5d264b9b14811fee4fa245792c91 Mon Sep 17 00:00:00 2001 From: Vishal Rana Date: Mon, 24 Aug 2026 11:00:25 -0700 Subject: [PATCH 1/2] feat(ui): put the web app on the documentation site's palette MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The app ran on Mantine's stock theme: teal primary, Inter named but never loaded, and no dark mode at all. The documentation site, meanwhile, has a palette with reasoning behind it — Ayu Dark surfaces, a violet accent, IBM Plex split by role — and a comment claiming the app already shared it. It did not. Nothing crossed between them: not a hex, not a typeface, not a variable name. The teal was the substantive problem. `healthColor()` returned "teal" for a healthy service while `primaryColor: "teal"` painted every button and link, so one hue meant both "healthy" and "clickable" on the same screen. The site picked violet precisely to avoid that, violet being the one hue in the palette that carries no status. ui/tokens.ts now holds the palette — the Ayu ramp, the violet accent, the three health hues and a categorical series palette taken from the brand mark — and ui/theme.ts binds it to Mantine under semantic names: brand, ok, warn, bad, info. A component asks for the accent or for a health state and gets whatever the palette holds, so re-hueing the product is a change to one file. The values mirror site/src/styles/fanout.css; the two are still separate sources kept in step by hand. Dark mode ships with it: defaultColorScheme="auto", a header toggle, and the scheme resolved by an inline script in the document head so the first paint lands on the right ground. The typeface is shipped rather than named — eight weights in the host, four inlined into each single-file embedded view, which needed assetsInlineLimit raised or the build would have emitted loose .woff2 files it never copies. Three latent bugs surfaced, all of them invisible while the app was light-only: the sign-in card hardcoded a white background, dashboard metric tiles used bg="gray.0" and rendered white-on-white, and the MCP app bridge passed theme: "light" as a literal, which would have left every embedded view light inside a dark host. Co-Authored-By: Claude Opus 5 (1M context) --- THIRD_PARTY_NOTICES | 198 ++++++++++++++++++ internal/mcp/apps/logs.html | 44 ++-- internal/mcp/apps/overview.html | 30 +-- internal/mcp/apps/performance.html | 40 ++-- internal/mcp/apps/topology.html | 44 ++-- internal/mcp/apps/trace.html | 32 +-- .../{auth-yGyQH6NZ.js => auth-C4PUlevI.js} | 2 +- .../ui/dist/assets/chat._threadId-BzILJQZc.js | 1 + .../ui/dist/assets/chat._threadId-CTS2jH1q.js | 1 - ...dex-m5Pb-ySL.js => chat.index-ChMb2Nc1.js} | 2 +- internal/ui/dist/assets/dashboard-D_m9uFDI.js | 5 + internal/ui/dist/assets/dashboard-DgsE1DZx.js | 5 - ...js => dashboards._dashboardId-XXCiLIvn.js} | 2 +- ...h_VXJL.js => dashboards.index-ClORdutW.js} | 2 +- ...m-plex-mono-latin-400-normal-CvHOgSBP.woff | Bin 0 -> 13144 bytes ...-plex-mono-latin-400-normal-DMJ8VG8y.woff2 | Bin 0 -> 14708 bytes ...m-plex-mono-latin-500-normal-CB9ihrfo.woff | Bin 0 -> 13156 bytes ...-plex-mono-latin-500-normal-DSY6xOcd.woff2 | Bin 0 -> 14888 bytes ...-plex-mono-latin-600-normal-BgSNZQsw.woff2 | Bin 0 -> 15620 bytes ...m-plex-mono-latin-600-normal-DWFSQ4vo.woff | Bin 0 -> 13208 bytes ...-plex-sans-latin-400-italic-CZTNEAuW.woff2 | Bin 0 -> 24356 bytes ...m-plex-sans-latin-400-italic-CsGl1sm0.woff | Bin 0 -> 24036 bytes ...-plex-sans-latin-400-normal-CDDApCn2.woff2 | Bin 0 -> 22588 bytes ...m-plex-sans-latin-400-normal-CYLoc0-x.woff | Bin 0 -> 22104 bytes ...-plex-sans-latin-500-normal-6ng42L7E.woff2 | Bin 0 -> 24184 bytes ...m-plex-sans-latin-500-normal-BgVn5rGT.woff | Bin 0 -> 23916 bytes ...m-plex-sans-latin-600-normal-Cu4Hd6ag.woff | Bin 0 -> 23876 bytes ...-plex-sans-latin-600-normal-CuJfVYMP.woff2 | Bin 0 -> 24252 bytes ...m-plex-sans-latin-700-normal-Bth3BMcD.woff | Bin 0 -> 22280 bytes ...-plex-sans-latin-700-normal-Bxkt5Cjx.woff2 | Bin 0 -> 22832 bytes internal/ui/dist/assets/index-BCWAnY2u.js | 85 -------- ...{index-BbOYseT5.css => index-BR1I2Za9.css} | 2 +- internal/ui/dist/assets/index-BtOLla1t.js | 85 ++++++++ .../ui/dist/assets/mcp-app-frame-CUbf0me4.js | 127 +++++++++++ .../ui/dist/assets/mcp-app-frame-DW3Lt9OA.js | 127 ----------- ...{routes-CsFJ-l_t.js => routes-CYxgPfgb.js} | 2 +- internal/ui/dist/index.html | 23 +- ui/apps/bun.lock | 6 + ui/apps/package.json | 2 + ui/apps/src/components.tsx | 40 +++- ui/apps/src/logs.tsx | 8 +- ui/apps/src/overview.tsx | 12 +- ui/apps/src/performance.tsx | 14 +- ui/apps/src/topology.tsx | 12 +- ui/apps/src/trace.tsx | 26 +-- ui/apps/vite.config.ts | 4 + ui/host/bun.lock | 6 + ui/host/index.html | 17 +- ui/host/package.json | 2 + ui/host/src/App.tsx | 30 ++- ui/host/src/auth.tsx | 26 +-- ui/host/src/chat-history.tsx | 10 +- ui/host/src/dashboard.tsx | 18 +- ui/host/src/index.css | 29 ++- ui/host/src/main.tsx | 14 +- ui/host/src/mcp-app-frame.tsx | 16 +- ui/theme.ts | 42 +++- ui/tokens.ts | 110 ++++++++++ 58 files changed, 894 insertions(+), 409 deletions(-) rename internal/ui/dist/assets/{auth-yGyQH6NZ.js => auth-C4PUlevI.js} (90%) create mode 100644 internal/ui/dist/assets/chat._threadId-BzILJQZc.js delete mode 100644 internal/ui/dist/assets/chat._threadId-CTS2jH1q.js rename internal/ui/dist/assets/{chat.index-m5Pb-ySL.js => chat.index-ChMb2Nc1.js} (75%) create mode 100644 internal/ui/dist/assets/dashboard-D_m9uFDI.js delete mode 100644 internal/ui/dist/assets/dashboard-DgsE1DZx.js rename internal/ui/dist/assets/{dashboards._dashboardId-C0kfFh1B.js => dashboards._dashboardId-XXCiLIvn.js} (69%) rename internal/ui/dist/assets/{dashboards.index-xNh_VXJL.js => dashboards.index-ClORdutW.js} (82%) create mode 100644 internal/ui/dist/assets/ibm-plex-mono-latin-400-normal-CvHOgSBP.woff create mode 100644 internal/ui/dist/assets/ibm-plex-mono-latin-400-normal-DMJ8VG8y.woff2 create mode 100644 internal/ui/dist/assets/ibm-plex-mono-latin-500-normal-CB9ihrfo.woff create mode 100644 internal/ui/dist/assets/ibm-plex-mono-latin-500-normal-DSY6xOcd.woff2 create mode 100644 internal/ui/dist/assets/ibm-plex-mono-latin-600-normal-BgSNZQsw.woff2 create mode 100644 internal/ui/dist/assets/ibm-plex-mono-latin-600-normal-DWFSQ4vo.woff create mode 100644 internal/ui/dist/assets/ibm-plex-sans-latin-400-italic-CZTNEAuW.woff2 create mode 100644 internal/ui/dist/assets/ibm-plex-sans-latin-400-italic-CsGl1sm0.woff create mode 100644 internal/ui/dist/assets/ibm-plex-sans-latin-400-normal-CDDApCn2.woff2 create mode 100644 internal/ui/dist/assets/ibm-plex-sans-latin-400-normal-CYLoc0-x.woff create mode 100644 internal/ui/dist/assets/ibm-plex-sans-latin-500-normal-6ng42L7E.woff2 create mode 100644 internal/ui/dist/assets/ibm-plex-sans-latin-500-normal-BgVn5rGT.woff create mode 100644 internal/ui/dist/assets/ibm-plex-sans-latin-600-normal-Cu4Hd6ag.woff create mode 100644 internal/ui/dist/assets/ibm-plex-sans-latin-600-normal-CuJfVYMP.woff2 create mode 100644 internal/ui/dist/assets/ibm-plex-sans-latin-700-normal-Bth3BMcD.woff create mode 100644 internal/ui/dist/assets/ibm-plex-sans-latin-700-normal-Bxkt5Cjx.woff2 delete mode 100644 internal/ui/dist/assets/index-BCWAnY2u.js rename internal/ui/dist/assets/{index-BbOYseT5.css => index-BR1I2Za9.css} (97%) create mode 100644 internal/ui/dist/assets/index-BtOLla1t.js create mode 100644 internal/ui/dist/assets/mcp-app-frame-CUbf0me4.js delete mode 100644 internal/ui/dist/assets/mcp-app-frame-DW3Lt9OA.js rename internal/ui/dist/assets/{routes-CsFJ-l_t.js => routes-CYxgPfgb.js} (84%) create mode 100644 ui/tokens.ts diff --git a/THIRD_PARTY_NOTICES b/THIRD_PARTY_NOTICES index a6787618..6e93970a 100644 --- a/THIRD_PARTY_NOTICES +++ b/THIRD_PARTY_NOTICES @@ -93,6 +93,8 @@ COMPONENT INVENTORY - npm: @floating-ui/react 0.27.20 (declared license: MIT) - npm: @floating-ui/react-dom 2.1.9 (declared license: MIT) - npm: @floating-ui/utils 0.2.12 (declared license: MIT) +- npm: @fontsource/ibm-plex-mono 5.3.0 (declared license: OFL-1.1) +- npm: @fontsource/ibm-plex-sans 5.3.0 (declared license: OFL-1.1) - npm: @hono/node-server 1.19.15 (declared license: MIT) - npm: @mantine/core 9.5.1 (declared license: MIT) - npm: @mantine/hooks 9.5.1 (declared license: MIT) @@ -3342,6 +3344,202 @@ COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +--- Applies to ------------------------------------------------------------- +- npm: @fontsource/ibm-plex-mono 5.3.0 / LICENSE +---------------------------------------------------------------------------- + +Copyright 2017 IBM Corp. All rights reserved. IBMPlexMono-ThinItalic.ttf: Copyright 2017 IBM Corp. All rights reserved. IBMPlexMono-ExtraLight.ttf: Copyright 2017 IBM Corp. All rights reserved. IBMPlexMono-ExtraLightItalic.ttf: Copyright 2017 IBM Corp. All rights reserved. IBMPlexMono-Light.ttf: Copyright 2017 IBM Corp. All rights reserved. IBMPlexMono-LightItalic.ttf: Copyright 2017 IBM Corp. All rights reserved. IBMPlexMono-Regular.ttf: Copyright 2017 IBM Corp. All rights reserved. IBMPlexMono-Italic.ttf: Copyright 2017 IBM Corp. All rights reserved. IBMPlexMono-Medium.ttf: Copyright 2017 IBM Corp. All rights reserved. IBMPlexMono-MediumItalic.ttf: Copyright 2017 IBM Corp. All rights reserved. IBMPlexMono-SemiBold.ttf: Copyright 2017 IBM Corp. All rights reserved. IBMPlexMono-SemiBoldItalic.ttf: Copyright 2017 IBM Corp. All rights reserved. IBMPlexMono-Bold.ttf: Copyright 2017 IBM Corp. All rights reserved. IBMPlexMono-BoldItalic.ttf: Copyright 2017 IBM Corp. All rights reserved. + +This Font Software is licensed under the SIL Open Font License, Version 1.1. +This license is copied below, and is also available with a FAQ at: +http://scripts.sil.org/OFL + + +----------------------------------------------------------- +SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007 +----------------------------------------------------------- + +PREAMBLE +The goals of the Open Font License (OFL) are to stimulate worldwide +development of collaborative font projects, to support the font creation +efforts of academic and linguistic communities, and to provide a free and +open framework in which fonts may be shared and improved in partnership +with others. + +The OFL allows the licensed fonts to be used, studied, modified and +redistributed freely as long as they are not sold by themselves. The +fonts, including any derivative works, can be bundled, embedded, +redistributed and/or sold with any software provided that any reserved +names are not used by derivative works. The fonts and derivatives, +however, cannot be released under any other type of license. The +requirement for fonts to remain under this license does not apply +to any document created using the fonts or their derivatives. + +DEFINITIONS +"Font Software" refers to the set of files released by the Copyright +Holder(s) under this license and clearly marked as such. This may +include source files, build scripts and documentation. + +"Reserved Font Name" refers to any names specified as such after the +copyright statement(s). + +"Original Version" refers to the collection of Font Software components as +distributed by the Copyright Holder(s). + +"Modified Version" refers to any derivative made by adding to, deleting, +or substituting -- in part or in whole -- any of the components of the +Original Version, by changing formats or by porting the Font Software to a +new environment. + +"Author" refers to any designer, engineer, programmer, technical +writer or other person who contributed to the Font Software. + +PERMISSION & CONDITIONS +Permission is hereby granted, free of charge, to any person obtaining +a copy of the Font Software, to use, study, copy, merge, embed, modify, +redistribute, and sell modified and unmodified copies of the Font +Software, subject to the following conditions: + +1) Neither the Font Software nor any of its individual components, +in Original or Modified Versions, may be sold by itself. + +2) Original or Modified Versions of the Font Software may be bundled, +redistributed and/or sold with any software, provided that each copy +contains the above copyright notice and this license. These can be +included either as stand-alone text files, human-readable headers or +in the appropriate machine-readable metadata fields within text or +binary files as long as those fields can be easily viewed by the user. + +3) No Modified Version of the Font Software may use the Reserved Font +Name(s) unless explicit written permission is granted by the corresponding +Copyright Holder. This restriction only applies to the primary font name as +presented to the users. + +4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font +Software shall not be used to promote, endorse or advertise any +Modified Version, except to acknowledge the contribution(s) of the +Copyright Holder(s) and the Author(s) or with their explicit written +permission. + +5) The Font Software, modified or unmodified, in part or in whole, +must be distributed entirely under this license, and must not be +distributed under any other license. The requirement for fonts to +remain under this license does not apply to any document created +using the Font Software. + +TERMINATION +This license becomes null and void if any of the above conditions are +not met. + +DISCLAIMER +THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT +OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE +COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL +DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM +OTHER DEALINGS IN THE FONT SOFTWARE. + +--- Applies to ------------------------------------------------------------- +- npm: @fontsource/ibm-plex-sans 5.3.0 / LICENSE +---------------------------------------------------------------------------- + +Copyright 2019 IBM Corp. All rights reserved. IBMPlexSans-Italic[wdth,wght].ttf: Copyright 2019 IBM Corp. All rights reserved. + +This Font Software is licensed under the SIL Open Font License, Version 1.1. +This license is copied below, and is also available with a FAQ at: +http://scripts.sil.org/OFL + + +----------------------------------------------------------- +SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007 +----------------------------------------------------------- + +PREAMBLE +The goals of the Open Font License (OFL) are to stimulate worldwide +development of collaborative font projects, to support the font creation +efforts of academic and linguistic communities, and to provide a free and +open framework in which fonts may be shared and improved in partnership +with others. + +The OFL allows the licensed fonts to be used, studied, modified and +redistributed freely as long as they are not sold by themselves. The +fonts, including any derivative works, can be bundled, embedded, +redistributed and/or sold with any software provided that any reserved +names are not used by derivative works. The fonts and derivatives, +however, cannot be released under any other type of license. The +requirement for fonts to remain under this license does not apply +to any document created using the fonts or their derivatives. + +DEFINITIONS +"Font Software" refers to the set of files released by the Copyright +Holder(s) under this license and clearly marked as such. This may +include source files, build scripts and documentation. + +"Reserved Font Name" refers to any names specified as such after the +copyright statement(s). + +"Original Version" refers to the collection of Font Software components as +distributed by the Copyright Holder(s). + +"Modified Version" refers to any derivative made by adding to, deleting, +or substituting -- in part or in whole -- any of the components of the +Original Version, by changing formats or by porting the Font Software to a +new environment. + +"Author" refers to any designer, engineer, programmer, technical +writer or other person who contributed to the Font Software. + +PERMISSION & CONDITIONS +Permission is hereby granted, free of charge, to any person obtaining +a copy of the Font Software, to use, study, copy, merge, embed, modify, +redistribute, and sell modified and unmodified copies of the Font +Software, subject to the following conditions: + +1) Neither the Font Software nor any of its individual components, +in Original or Modified Versions, may be sold by itself. + +2) Original or Modified Versions of the Font Software may be bundled, +redistributed and/or sold with any software, provided that each copy +contains the above copyright notice and this license. These can be +included either as stand-alone text files, human-readable headers or +in the appropriate machine-readable metadata fields within text or +binary files as long as those fields can be easily viewed by the user. + +3) No Modified Version of the Font Software may use the Reserved Font +Name(s) unless explicit written permission is granted by the corresponding +Copyright Holder. This restriction only applies to the primary font name as +presented to the users. + +4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font +Software shall not be used to promote, endorse or advertise any +Modified Version, except to acknowledge the contribution(s) of the +Copyright Holder(s) and the Author(s) or with their explicit written +permission. + +5) The Font Software, modified or unmodified, in part or in whole, +must be distributed entirely under this license, and must not be +distributed under any other license. The requirement for fonts to +remain under this license does not apply to any document created +using the Font Software. + +TERMINATION +This license becomes null and void if any of the above conditions are +not met. + +DISCLAIMER +THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT +OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE +COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL +DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM +OTHER DEALINGS IN THE FONT SOFTWARE. + --- Applies to ------------------------------------------------------------- - npm: @hono/node-server 1.19.15 / LICENSE ---------------------------------------------------------------------------- diff --git a/internal/mcp/apps/logs.html b/internal/mcp/apps/logs.html index 7c2b5aa6..0f85dacf 100644 --- a/internal/mcp/apps/logs.html +++ b/internal/mcp/apps/logs.html @@ -5,13 +5,13 @@ `):[],v=_.length*f;if(g??=v,v>g&&p){var y=Math.floor(g/f);m||=_.length>y,_=_.slice(0,y),v=_.length*f}if(i&&u&&h!=null)for(var b=En(h,l,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),x={},S=0;S<_.length;S++)Dn(x,_[S],b),_[S]=x.textLine,m||=x.isTruncated;for(var C=g,w=0,T=un(l),S=0;S<_.length;S++)w=Math.max(gn(T,_[S]),w);h??=w;var E=h;return C+=c,E+=s,{lines:_,height:g,outerWidth:E,outerHeight:C,lineHeight:f,calculatedLineHeight:d,contentWidth:w,contentHeight:v,width:h,isTruncated:m}}var An=function(){function e(){}return e}(),jn=function(){function e(e){this.tokens=[],e&&(this.tokens=e)}return e}(),Mn=function(){function e(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[],this.isTruncated=!1}return e}();function Nn(e,t,n,r,i){var a=new Mn,o=Hn(e);if(!o)return a;var s=t.padding,c=s?s[1]+s[3]:0,l=s?s[0]+s[2]:0,u=t.width;u==null&&n!=null&&(u=n-c);var d=t.height;d==null&&r!=null&&(d=r-l);for(var f=t.overflow,p=(f===`break`||f===`breakAll`)&&u!=null?{width:u,accumWidth:0,breakAll:f===`breakAll`}:null,m=wn.lastIndex=0,h;(h=wn.exec(o))!=null;){var g=h.index;g>m&&Pn(a,o.substring(m,g),t,p),Pn(a,h[2],t,p,h[1]),m=wn.lastIndex}md){var te=a.lines.length;O>0?(T.tokens=T.tokens.slice(0,O),C(T,D,E),a.lines=a.lines.slice(0,w+1)):a.lines=a.lines.slice(0,w),a.isTruncated=a.isTruncated||a.lines.length0&&m+r.accumWidth>r.width&&(u=t.split(` `),l=!0),r.accumWidth=m}else{var h=Rn(t,c,r.width,r.breakAll,r.accumWidth);r.accumWidth=h.accumWidth+p,d=h.linesWidths,u=h.lines}}u||=t.split(` `);for(var g=un(c),_=0;_=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}var In=se(`,&?/;] `.split(``),function(e,t){return e[t]=!0,e},{});function Ln(e){return!Fn(e)||!!In[e]}function Rn(e,t,n,r,i){for(var a=[],o=[],s=``,c=``,l=0,u=0,d=un(t),f=0;fn:i+u+m>n){u?(s||c)&&(h?(s||(s=c,c=``,l=0,u=l),a.push(s),o.push(u-l),c+=p,l+=m,s=``,u=l):(c&&(s+=c,c=``,l=0),a.push(s),o.push(u),s=p,u=m)):h?(a.push(c),o.push(l),c=p,l=m):(a.push(p),o.push(m));continue}u+=m,h?(c+=p,l+=m):(c&&(s+=c,c=``,l=0),s+=p)}return c&&(s+=c),s&&(a.push(s),o.push(u)),a.length===1&&(u+=i),{accumWidth:u,lines:a,linesWidths:o}}function zn(e,t,n,r,i,a){if(e.baseX=n,e.baseY=r,e.outerWidth=e.outerHeight=null,t){var o=t.width*2,s=t.height*2;en.set(Bn,yn(n,o,i),bn(r,s,a),o,s),en.intersect(t,Bn,null,Vn);var c=Vn.outIntersectRect;e.outerWidth=c.width,e.outerHeight=c.height,e.baseX=yn(c.x,c.width,i,!0),e.baseY=bn(c.y,c.height,a,!0)}}var Bn=new en(0,0,0,0),Vn={outIntersectRect:{},clamp:!0};function Hn(e){return e==null?e=``:e+=``}function Un(e){var t=Hn(e.text),n=e.font;return Wn(e,gn(un(n),t),xn(n),null)}function Wn(e,t,n,r){var i=new en(yn(e.x||0,t,e.textAlign),bn(e.y||0,n,e.textBaseline),t,n),a=r??(Gn(e)?e.lineWidth:0);return a>0&&(i.x-=a/2,i.y-=a/2,i.width+=a,i.height+=a),i}function Gn(e){var t=e.stroke;return t!=null&&t!==`none`&&e.lineWidth>0}var Kn=_t,qn=5e-5;function Jn(e){return e>qn||e<-qn}var Yn=[],Xn=[],Zn=gt(),Qn=Math.abs,$n=function(){function e(){}return e.prototype.getLocalTransform=function(e){return er(this,e)},e.prototype.setPosition=function(e){this.x=e[0],this.y=e[1]},e.prototype.setScale=function(e){this.scaleX=e[0],this.scaleY=e[1]},e.prototype.setSkew=function(e){this.skewX=e[0],this.skewY=e[1]},e.prototype.setOrigin=function(e){this.originX=e[0],this.originY=e[1]},e.prototype.needLocalTransform=function(){return Jn(this.rotation)||Jn(this.x)||Jn(this.y)||Jn(this.scaleX-1)||Jn(this.scaleY-1)||Jn(this.skewX)||Jn(this.skewY)},e.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,t=this.needLocalTransform(),n=this.transform;if(!(t||e)){n&&(Kn(n),this.invTransform=null);return}n||=gt(),t?this.getLocalTransform(n):Kn(n),e&&(t?yt(n,e,n):vt(n,e)),this.transform=n,this._resolveGlobalScaleRatio(n),this.invTransform=this.invTransform||gt(),Ct(this.invTransform,n)},e.prototype._resolveGlobalScaleRatio=function(e){var t=this.globalScaleRatio;if(t!=null&&t!==1){this.getGlobalScale(Yn);var n=Yn[0]<0?-1:1,r=Yn[1]<0?-1:1,i=((Yn[0]-n)*t+n)/Yn[0]||0,a=((Yn[1]-r)*t+r)/Yn[1]||0;e[0]*=i,e[1]*=i,e[2]*=a,e[3]*=a}},e.prototype.getComputedTransform=function(){for(var e=this,t=[];e;)t.push(e),e=e.parent;for(;e=t.pop();)e.updateTransform();return this.transform},e.prototype.setLocalTransform=function(e){if(e){var t=e[0]*e[0]+e[1]*e[1],n=e[2]*e[2]+e[3]*e[3],r=Math.atan2(e[1],e[0]),i=Math.PI/2+r-Math.atan2(e[3],e[2]);n=Math.sqrt(n)*Math.cos(i),t=Math.sqrt(t),this.skewX=i,this.skewY=0,this.rotation=-r,this.x=+e[4],this.y=+e[5],this.scaleX=t,this.scaleY=n,this.originX=0,this.originY=0}},e.prototype.decomposeTransform=function(){if(this.transform){var e=this.parent,t=this.transform;e&&e.transform&&(e.invTransform=e.invTransform||gt(),yt(Xn,e.invTransform,t),t=Xn);var n=this.originX,r=this.originY;(n||r)&&(Zn[4]=n,Zn[5]=r,yt(Xn,t,Zn),Xn[4]-=n,Xn[5]-=r,t=Xn),this.setLocalTransform(t)}},e.prototype.getGlobalScale=function(e){var t=this.transform;return e||=[],t?(e[0]=Math.sqrt(t[0]*t[0]+t[1]*t[1]),e[1]=Math.sqrt(t[2]*t[2]+t[3]*t[3]),t[0]<0&&(e[0]=-e[0]),t[3]<0&&(e[1]=-e[1]),e):(e[0]=1,e[1]=1,e)},e.prototype.transformCoordToLocal=function(e,t){var n=[e,t],r=this.invTransform;return r&&Lt(n,n,r),n},e.prototype.transformCoordToGlobal=function(e,t){var n=[e,t],r=this.transform;return r&&Lt(n,n,r),n},e.prototype.getLineScale=function(){var e=this.transform;return e&&Qn(e[0]-1)>1e-10&&Qn(e[3]-1)>1e-10?Math.sqrt(Qn(e[0]*e[3]-e[2]*e[1])):1},e.prototype.copyTransform=function(e){nr(this,e)},e.getLocalTransform=function(e,t){t||=[];var n=e.originX||0,r=e.originY||0,i=e.scaleX,a=e.scaleY,o=e.anchorX,s=e.anchorY,c=e.rotation||0,l=e.x,u=e.y,d=e.skewX?Math.tan(e.skewX):0,f=e.skewY?Math.tan(-e.skewY):0;if(n||r||o||s){var p=n+o,m=r+s;t[4]=-p*i-d*m*a,t[5]=-m*a-f*p*i}else t[4]=t[5]=0;return t[0]=i,t[3]=a,t[1]=f*i,t[2]=d*a,c&&xt(t,t,c),t[4]+=n+l,t[5]+=r+u,t},e.initDefaultProps=(function(){var t=e.prototype;t.scaleX=t.scaleY=t.globalScaleRatio=1,t.x=t.y=t.originX=t.originY=t.skewX=t.skewY=t.rotation=t.anchorX=t.anchorY=0})(),e}(),er=$n.getLocalTransform,tr=[`x`,`y`,`originX`,`originY`,`anchorX`,`anchorY`,`rotation`,`scaleX`,`scaleY`,`skewX`,`skewY`];function nr(e,t){return ne(e,t,tr)}var rr={linear:function(e){return e},quadraticIn:function(e){return e*e},quadraticOut:function(e){return e*(2-e)},quadraticInOut:function(e){return(e*=2)<1?.5*e*e:-.5*(--e*(e-2)-1)},cubicIn:function(e){return e*e*e},cubicOut:function(e){return--e*e*e+1},cubicInOut:function(e){return(e*=2)<1?.5*e*e*e:.5*((e-=2)*e*e+2)},quarticIn:function(e){return e*e*e*e},quarticOut:function(e){return 1- --e*e*e*e},quarticInOut:function(e){return(e*=2)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)},quinticIn:function(e){return e*e*e*e*e},quinticOut:function(e){return--e*e*e*e*e+1},quinticInOut:function(e){return(e*=2)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)},sinusoidalIn:function(e){return 1-Math.cos(e*Math.PI/2)},sinusoidalOut:function(e){return Math.sin(e*Math.PI/2)},sinusoidalInOut:function(e){return .5*(1-Math.cos(Math.PI*e))},exponentialIn:function(e){return e===0?0:1024**(e-1)},exponentialOut:function(e){return e===1?1:1-2**(-10*e)},exponentialInOut:function(e){return e===0?0:e===1?1:(e*=2)<1?.5*1024**(e-1):.5*(-(2**(-10*(e-1)))+2)},circularIn:function(e){return 1-Math.sqrt(1-e*e)},circularOut:function(e){return Math.sqrt(1- --e*e)},circularInOut:function(e){return(e*=2)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},elasticIn:function(e){var t,n=.1,r=.4;return e===0?0:e===1?1:(!n||n<1?(n=1,t=r/4):t=r*Math.asin(1/n)/(2*Math.PI),-(n*2**(10*--e)*Math.sin((e-t)*(2*Math.PI)/r)))},elasticOut:function(e){var t,n=.1,r=.4;return e===0?0:e===1?1:(!n||n<1?(n=1,t=r/4):t=r*Math.asin(1/n)/(2*Math.PI),n*2**(-10*e)*Math.sin((e-t)*(2*Math.PI)/r)+1)},elasticInOut:function(e){var t,n=.1,r=.4;return e===0?0:e===1?1:(!n||n<1?(n=1,t=r/4):t=r*Math.asin(1/n)/(2*Math.PI),(e*=2)<1?-.5*(n*2**(10*--e)*Math.sin((e-t)*(2*Math.PI)/r)):n*2**(-10*--e)*Math.sin((e-t)*(2*Math.PI)/r)*.5+1)},backIn:function(e){var t=1.70158;return e*e*((t+1)*e-t)},backOut:function(e){var t=1.70158;return--e*e*((t+1)*e+t)+1},backInOut:function(e){var t=2.5949095;return(e*=2)<1?.5*(e*e*((t+1)*e-t)):.5*((e-=2)*e*((t+1)*e+t)+2)},bounceIn:function(e){return 1-rr.bounceOut(1-e)},bounceOut:function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},bounceInOut:function(e){return e<.5?rr.bounceIn(e*2)*.5:rr.bounceOut(e*2-1)*.5+.5}},ir=Math.pow,ar=Math.sqrt,or=1e-8,sr=1e-4,cr=ar(3),lr=1/3,ur=wt(),dr=wt(),fr=wt();function pr(e){return e>-or&&eor||e<-or}function hr(e,t,n,r,i){var a=1-i;return a*a*(a*e+3*i*t)+i*i*(i*r+3*a*n)}function gr(e,t,n,r,i){var a=1-i;return 3*(((t-e)*a+2*(n-t)*i)*a+(r-n)*i*i)}function _r(e,t,n,r,i,a){var o=r+3*(t-n)-e,s=3*(n-t*2+e),c=3*(t-e),l=e-i,u=s*s-3*o*c,d=s*c-9*o*l,f=c*c-3*s*l,p=0;if(pr(u)&&pr(d))if(pr(s))a[0]=0;else{var m=-c/s;m>=0&&m<=1&&(a[p++]=m)}else{var h=d*d-4*u*f;if(pr(h)){var g=d/u,m=-s/o+g,_=-g/2;m>=0&&m<=1&&(a[p++]=m),_>=0&&_<=1&&(a[p++]=_)}else if(h>0){var v=ar(h),y=u*s+1.5*o*(-d+v),b=u*s+1.5*o*(-d-v);y=y<0?-ir(-y,lr):ir(y,lr),b=b<0?-ir(-b,lr):ir(b,lr);var m=(-s-(y+b))/(3*o);m>=0&&m<=1&&(a[p++]=m)}else{var x=(2*u*s-3*o*d)/(2*ar(u*u*u)),S=Math.acos(x)/3,C=ar(u),w=Math.cos(S),m=(-s-2*C*w)/(3*o),_=(-s+C*(w+cr*Math.sin(S)))/(3*o),T=(-s+C*(w-cr*Math.sin(S)))/(3*o);m>=0&&m<=1&&(a[p++]=m),_>=0&&_<=1&&(a[p++]=_),T>=0&&T<=1&&(a[p++]=T)}}return p}function vr(e,t,n,r,i){var a=6*n-12*t+6*e,o=9*t+3*r-3*e-9*n,s=3*t-3*e,c=0;if(pr(o)){if(mr(a)){var l=-s/a;l>=0&&l<=1&&(i[c++]=l)}}else{var u=a*a-4*o*s;if(pr(u))i[0]=-a/(2*o);else if(u>0){var d=ar(u),l=(-a+d)/(2*o),f=(-a-d)/(2*o);l>=0&&l<=1&&(i[c++]=l),f>=0&&f<=1&&(i[c++]=f)}}return c}function yr(e,t,n,r,i,a){var o=(t-e)*i+e,s=(n-t)*i+t,c=(r-n)*i+n,l=(s-o)*i+o,u=(c-s)*i+s,d=(u-l)*i+l;a[0]=e,a[1]=o,a[2]=l,a[3]=d,a[4]=d,a[5]=u,a[6]=c,a[7]=r}function br(e,t,n,r,i,a,o,s,c,l,u){var d,f=.005,p=1/0,m,h,g,_;ur[0]=c,ur[1]=l;for(var v=0;v<1;v+=.05)dr[0]=hr(e,n,i,o,v),dr[1]=hr(t,r,a,s,v),g=It(ur,dr),g=0&&g=0&&l<=1&&(i[c++]=l)}}else{var u=o*o-4*a*s;if(pr(u)){var l=-o/(2*a);l>=0&&l<=1&&(i[c++]=l)}else if(u>0){var d=ar(u),l=(-o+d)/(2*a),f=(-o-d)/(2*a);l>=0&&l<=1&&(i[c++]=l),f>=0&&f<=1&&(i[c++]=f)}}return c}function Tr(e,t,n){var r=e+n-2*t;return r===0?.5:(e-t)/r}function Er(e,t,n,r,i){var a=(t-e)*r+e,o=(n-t)*r+t,s=(o-a)*r+a;i[0]=e,i[1]=a,i[2]=s,i[3]=s,i[4]=o,i[5]=n}function Dr(e,t,n,r,i,a,o,s,c){var l,u=.005,d=1/0;ur[0]=o,ur[1]=s;for(var f=0;f<1;f+=.05){dr[0]=Sr(e,n,i,f),dr[1]=Sr(t,r,a,f);var p=It(ur,dr);p=0&&p=1?1:_r(0,r,a,1,e,s)&&hr(0,i,o,1,s[0])}}}var jr=function(){function e(e){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=e.life||1e3,this._delay=e.delay||0,this.loop=e.loop||!1,this.onframe=e.onframe||Be,this.ondestroy=e.ondestroy||Be,this.onrestart=e.onrestart||Be,e.easing&&this.setEasing(e.easing)}return e.prototype.step=function(e,t){if(this._inited||=(this._startTime=e+this._delay,!0),this._paused){this._pausedTime+=t;return}var n=this._life,r=e-this._startTime-this._pausedTime,i=r/n;i<0&&(i=0),i=Math.min(i,1);var a=this.easingFunc,o=a?a(i):i;if(this.onframe(o),i===1)if(this.loop){var s=r%n;this._startTime=e-s,this._pausedTime=0,this.onrestart()}else return!0;return!1},e.prototype.pause=function(){this._paused=!0},e.prototype.resume=function(){this._paused=!1},e.prototype.setEasing=function(e){this.easing=e,this.easingFunc=me(e)?e:rr[e]||Ar(e)},e}(),Mr={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function Nr(e){return e=Math.round(e),e<0?0:e>255?255:e}function Pr(e){return e=Math.round(e),e<0?0:e>360?360:e}function Fr(e){return e<0?0:e>1?1:e}function Ir(e){var t=e;return t.length&&t.charAt(t.length-1)===`%`?Nr(parseFloat(t)/100*255):Nr(parseInt(t,10))}function Lr(e){var t=e;return t.length&&t.charAt(t.length-1)===`%`?Fr(parseFloat(t)/100):Fr(parseFloat(t))}function Rr(e,t,n){return n<0?n+=1:n>1&&--n,n*6<1?e+(t-e)*n*6:n*2<1?t:n*3<2?e+(t-e)*(2/3-n)*6:e}function zr(e,t,n){return e+(t-e)*n}function Br(e,t,n,r,i){return e[0]=t,e[1]=n,e[2]=r,e[3]=i,e}function Vr(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var Hr=new ut(20),Ur=null;function Wr(e,t){Ur&&Vr(Ur,t),Ur=Hr.put(e,Ur||t.slice())}function Gr(e,t){if(e){t||=[];var n=Hr.get(e);if(n)return Vr(t,n);e+=``;var r=e.replace(/ /g,``).toLowerCase();if(r in Mr)return Vr(t,Mr[r]),Wr(e,t),t;var i=r.length;if(r.charAt(0)===`#`){if(i===4||i===5){var a=parseInt(r.slice(1,4),16);if(!(a>=0&&a<=4095)){Br(t,0,0,0,1);return}return Br(t,(a&3840)>>4|(a&3840)>>8,a&240|(a&240)>>4,a&15|(a&15)<<4,i===5?parseInt(r.slice(4),16)/15:1),Wr(e,t),t}if(i===7||i===9){var a=parseInt(r.slice(1,7),16);if(!(a>=0&&a<=16777215)){Br(t,0,0,0,1);return}return Br(t,(a&16711680)>>16,(a&65280)>>8,a&255,i===9?parseInt(r.slice(7),16)/255:1),Wr(e,t),t}return}var o=r.indexOf(`(`),s=r.indexOf(`)`);if(o!==-1&&s+1===i){var c=r.substr(0,o),l=r.substr(o+1,s-(o+1)).split(`,`),u=1;switch(c){case`rgba`:if(l.length!==4)return l.length===3?Br(t,+l[0],+l[1],+l[2],1):Br(t,0,0,0,1);u=Lr(l.pop());case`rgb`:if(l.length>=3)return Br(t,Ir(l[0]),Ir(l[1]),Ir(l[2]),l.length===3?u:Lr(l[3])),Wr(e,t),t;Br(t,0,0,0,1);return;case`hsla`:if(l.length!==4){Br(t,0,0,0,1);return}return l[3]=Lr(l[3]),Kr(l,t),Wr(e,t),t;case`hsl`:if(l.length!==3){Br(t,0,0,0,1);return}return Kr(l,t),Wr(e,t),t;default:return}}Br(t,0,0,0,1)}}function Kr(e,t){var n=(parseFloat(e[0])%360+360)%360/360,r=Lr(e[1]),i=Lr(e[2]),a=i<=.5?i*(r+1):i+r-i*r,o=i*2-a;return t||=[],Br(t,Nr(Rr(o,a,n+1/3)*255),Nr(Rr(o,a,n)*255),Nr(Rr(o,a,n-1/3)*255),1),e.length===4&&(t[3]=e[3]),t}function qr(e){if(e){var t=e[0]/255,n=e[1]/255,r=e[2]/255,i=Math.min(t,n,r),a=Math.max(t,n,r),o=a-i,s=(a+i)/2,c,l;if(o===0)c=0,l=0;else{l=s<.5?o/(a+i):o/(2-a-i);var u=((a-t)/6+o/2)/o,d=((a-n)/6+o/2)/o,f=((a-r)/6+o/2)/o;t===a?c=f-d:n===a?c=1/3+u-f:r===a&&(c=2/3+d-u),c<0&&(c+=1),c>1&&--c}var p=[c*360,l,s];return e[3]!=null&&p.push(e[3]),p}}function Jr(e,t){var n=Gr(e);if(n){for(var r=0;r<3;r++)t<0?n[r]=n[r]*(1-t)|0:n[r]=(255-n[r])*t+n[r]|0,n[r]>255?n[r]=255:n[r]<0&&(n[r]=0);return Qr(n,n.length===4?`rgba`:`rgb`)}}function Yr(e,t,n){if(!(!(t&&t.length)||!(e>=0&&e<=1))){n||=[];var r=e*(t.length-1),i=Math.floor(r),a=Math.ceil(r),o=t[i],s=t[a],c=r-i;return n[0]=Nr(zr(o[0],s[0],c)),n[1]=Nr(zr(o[1],s[1],c)),n[2]=Nr(zr(o[2],s[2],c)),n[3]=Fr(zr(o[3],s[3],c)),n}}function Xr(e,t,n,r){var i=Gr(e);if(e)return i=qr(i),t!=null&&(i[0]=Pr(me(t)?t(i[0]):t)),n!=null&&(i[1]=Lr(me(n)?n(i[1]):n)),r!=null&&(i[2]=Lr(me(r)?r(i[2]):r)),Qr(Kr(i),`rgba`)}function Zr(e,t){var n=Gr(e);if(n&&t!=null)return n[3]=Fr(t),Qr(n,`rgba`)}function Qr(e,t){if(!(!e||!e.length)){var n=e[0]+`,`+e[1]+`,`+e[2];return(t===`rgba`||t===`hsva`||t===`hsla`)&&(n+=`,`+e[3]),t+`(`+n+`)`}}function $r(e,t){var n=Gr(e);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*t:0}var ei=new ut(100);function ti(e){if(V(e)){var t=ei.get(e);return t||(t=Jr(e,-.1),ei.put(e,t)),t}if(be(e)){var n=I({},e);return n.colorStops=z(e.colorStops,function(e){return{offset:e.offset,color:Jr(e.color,-.1)}}),n}return e}var ni=Math.round;function ri(e){var t;if(!e||e===`transparent`)e=`none`;else if(typeof e==`string`&&e.indexOf(`rgba`)>-1){var n=Gr(e);n&&(e=`rgb(`+n[0]+`,`+n[1]+`,`+n[2]+`)`,t=n[3])}return{color:e,opacity:t??1}}var ii=1e-4;function ai(e){return e-ii}function oi(e){return ni(e*1e3)/1e3}function si(e){return ni(e*1e4)/1e4}function ci(e){return`matrix(`+oi(e[0])+`,`+oi(e[1])+`,`+oi(e[2])+`,`+oi(e[3])+`,`+si(e[4])+`,`+si(e[5])+`)`}var li={left:`start`,right:`end`,center:`middle`,middle:`middle`};function ui(e,t,n){return n===`top`?e+=t/2:n===`bottom`&&(e-=t/2),e}function di(e){return e&&(e.shadowBlur||e.shadowOffsetX||e.shadowOffsetY)}function fi(e){var t=e.style,n=e.getGlobalScale();return[t.shadowColor,(t.shadowBlur||0).toFixed(2),(t.shadowOffsetX||0).toFixed(2),(t.shadowOffsetY||0).toFixed(2),n[0],n[1]].join(`,`)}function pi(e){return e&&!!e.image}function mi(e){return e&&!!e.svgElement}function hi(e){return pi(e)||mi(e)}function gi(e){return e.type===`linear`}function _i(e){return e.type===`radial`}function vi(e){return e&&(e.type===`linear`||e.type===`radial`)}function yi(e){return`url(#`+e+`)`}function bi(e){var t=e.getGlobalScale(),n=Math.max(t[0],t[1]);return Math.max(Math.ceil(Math.log(n)/Math.log(10)),1)}function xi(e){var t=e.x||0,n=e.y||0,r=(e.rotation||0)*Ve,i=Ce(e.scaleX,1),a=Ce(e.scaleY,1),o=e.skewX||0,s=e.skewY||0,c=[];return(t||n)&&c.push(`translate(`+t+`px,`+n+`px)`),r&&c.push(`rotate(`+r+`)`),(i!==1||a!==1)&&c.push(`scale(`+i+`,`+a+`)`),(o||s)&&c.push(`skew(`+ni(o*Ve)+`deg, `+ni(s*Ve)+`deg)`),c.join(` `)}var Si=(function(){return typeof Buffer<`u`&&typeof Buffer.from==`function`?function(e){return Buffer.from(e).toString(`base64`)}:typeof btoa==`function`&&typeof unescape==`function`&&typeof encodeURIComponent==`function`?function(e){return btoa(unescape(encodeURIComponent(e)))}:function(e){return null}})(),Ci=Array.prototype.slice;function wi(e,t,n){return(t-e)*n+e}function Ti(e,t,n,r){for(var i=t.length,a=0;ar?t:e,a=Math.min(n,r),o=i[a-1]||{color:[0,0,0,0],offset:0},s=a;so)r.length=o;else for(var s=a;s=1},e.prototype.getAdditiveTrack=function(){return this._additiveTrack},e.prototype.addKeyframe=function(e,t,n){this._needsSort=!0;var r=this.keyframes,i=r.length,a=!1,o=Bi,s=t;if(oe(t)){var c=Ni(t);o=c,(c===1&&!ge(t[0])||c===2&&!ge(t[0][0]))&&(a=!0)}else if(ge(t)&&!xe(t))o=Pi;else if(V(t))if(!isNaN(+t))o=Pi;else{var l=Gr(t);l&&(s=l,o=Li)}else if(be(t)){var u=I({},s);u.colorStops=z(t.colorStops,function(e){return{offset:e.offset,color:Gr(e.color)}}),gi(t)?o=Ri:_i(t)&&(o=zi),s=u}i===0?this.valType=o:(o!==this.valType||o===Bi)&&(a=!0),this.discrete=this.discrete||a;var d={time:e,value:s,rawValue:t,percent:0};return n&&(d.easing=n,d.easingFunc=me(n)?n:rr[n]||Ar(n)),r.push(d),d},e.prototype.prepare=function(e,t){var n=this.keyframes;this._needsSort&&n.sort(function(e,t){return e.time-t.time});for(var r=this.valType,i=n.length,a=n[i-1],o=this.discrete,s=Hi(r),c=Vi(r),l=0;l=0&&!(a[l].percent<=t);l--);l=d(l,o-2)}else{for(l=u;lt);l++);l=d(l-1,o-2)}p=a[l+1],f=a[l]}if(f&&p){this._lastFr=l,this._lastFrP=t;var m=p.percent-f.percent,h=m===0?1:d((t-f.percent)/m,1);p.easingFunc&&(h=p.easingFunc(h));var g=n?this._additiveValue:c?Ui:e[s];if((Hi(i)||c)&&!g&&(g=this._additiveValue=[]),this.discrete)e[s]=h<1?f.rawValue:p.rawValue;else if(Hi(i))i===Fi?Ti(g,f[r],p[r],h):Ei(g,f[r],p[r],h);else if(Vi(i)){var _=f[r],v=p[r],y=i===Ri;e[s]={type:y?`linear`:`radial`,x:wi(_.x,v.x,h),y:wi(_.y,v.y,h),colorStops:z(_.colorStops,function(e,t){var n=v.colorStops[t];return{offset:wi(e.offset,n.offset,h),color:Mi(Ti([],e.color,n.color,h))}}),global:v.global},y?(e[s].x2=wi(_.x2,v.x2,h),e[s].y2=wi(_.y2,v.y2,h)):e[s].r=wi(_.r,v.r,h)}else if(c)Ti(g,f[r],p[r],h),n||(e[s]=Mi(g));else{var b=wi(f[r],p[r],h);n?this._additiveValue=b:e[s]=b}n&&this._addToTarget(e)}}},e.prototype._addToTarget=function(e){var t=this.valType,n=this.propName,r=this._additiveValue;t===Pi?e[n]=e[n]+r:t===Li?(Gr(e[n],Ui),Di(Ui,Ui,r,1),e[n]=Mi(Ui)):t===Fi?Di(e[n],e[n],r,1):t===Ii&&Oi(e[n],e[n],r,1)},e}(),Gi=function(){function e(e,t,n,r){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=t,t&&r){te(`Can' use additive animation on looped animation.`);return}this._additiveAnimators=r,this._allowDiscrete=n}return e.prototype.getMaxTime=function(){return this._maxTime},e.prototype.getDelay=function(){return this._delay},e.prototype.getLoop=function(){return this._loop},e.prototype.getTarget=function(){return this._target},e.prototype.changeTarget=function(e){this._target=e},e.prototype.when=function(e,t,n){return this.whenWithKeys(e,t,ue(t),n)},e.prototype.whenWithKeys=function(e,t,n,r){for(var i=this._tracks,a=0;a0&&s.addKeyframe(0,ji(c),r),this._trackKeys.push(o)}s.addKeyframe(e,ji(t[o]),r)}return this._maxTime=Math.max(this._maxTime,e),this},e.prototype.pause=function(){this._clip.pause(),this._paused=!0},e.prototype.resume=function(){this._clip.resume(),this._paused=!1},e.prototype.isPaused=function(){return!!this._paused},e.prototype.duration=function(e){return this._maxTime=e,this._force=!0,this},e.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var e=this._doneCbs;if(e)for(var t=e.length,n=0;n0)){this._started=1;for(var t=this,n=[],r=this._maxTime||0,i=0;i1){var o=a.pop();i.addKeyframe(o.time,e[r]),i.prepare(this._maxTime,i.getAdditiveTrack())}}}},e}(),Ki=function(){function e(e){e&&(this._$eventProcessor=e)}return e.prototype.on=function(e,t,n,r){this._$handlers||={};var i=this._$handlers;if(typeof t==`function`&&(r=n,n=t,t=null),!n||!e)return this;var a=this._$eventProcessor;t!=null&&a&&a.normalizeQuery&&(t=a.normalizeQuery(t)),i[e]||(i[e]=[]);for(var o=0;o=0:n.inside,y=void 0,b=void 0,x=void 0;v&&this.canBeInsideText()?(y=n.insideFill,b=n.insideStroke,(y==null||y===`auto`)&&(y=this.getInsideTextFill()),(b==null||b===`auto`)&&(b=this.getInsideTextStroke(y),x=!0)):(y=n.outsideFill,b=n.outsideStroke,(y==null||y===`auto`)&&(y=this.getOutsideFill()),(b==null||b===`auto`)&&(b=this.getOutsideStroke(y),x=!0)),y||=`#000`,(y!==g.fill||b!==g.stroke||x!==g.autoStroke||a!==g.align||o!==g.verticalAlign)&&(s=!0,g.fill=y,g.stroke=b,g.autoStroke=x,g.align=a,g.verticalAlign=o,t.setDefaultTextStyle(g)),t.__dirty|=1,s&&t.dirtyStyle(!0)}},e.prototype.canBeInsideText=function(){return!0},e.prototype.getInsideTextFill=function(){return`#fff`},e.prototype.getInsideTextStroke=function(e){return`#000`},e.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?Zi:Xi},e.prototype.getOutsideStroke=function(e){var t=this.__zr&&this.__zr.getBackgroundColor(),n=typeof t==`string`&&Gr(t);n||=[255,255,255,1];for(var r=n[3],i=this.__zr.isDarkMode(),a=0;a<3;a++)n[a]=n[a]*r+(i?0:255)*(1-r);return n[3]=1,Qr(n,`rgba`)},e.prototype.traverse=function(e,t){},e.prototype.attrKV=function(e,t){e===`textConfig`?this.setTextConfig(t):e===`textContent`?this.setTextContent(t):e===`clipPath`?this.setClipPath(t):e===`extra`?(this.extra=this.extra||{},I(this.extra,t)):this[e]=t},e.prototype.hide=function(){this.ignore=!0,this.markRedraw()},e.prototype.show=function(){this.ignore=!1,this.markRedraw()},e.prototype.attr=function(e,t){if(typeof e==`string`)this.attrKV(e,t);else if(H(e))for(var n=ue(e),r=0;r0},e.prototype.getState=function(e){return this.states[e]},e.prototype.ensureState=function(e){var t=this.states;return t[e]||(t[e]={}),t[e]},e.prototype.clearStates=function(e){this.useState($i,!1,e)},e.prototype.useState=function(e,t,n,r){var i=e===$i;if(!(!this.hasState()&&i)){var a=this.currentStates,o=this.stateTransition;if(!(re(a,e)>=0&&(t||a.length===1))){var s;if(this.stateProxy&&!i&&(s=this.stateProxy(e)),s||=this.states&&this.states[e],!s&&!i){te(`State `+e+` not exists.`);return}i||this.saveCurrentToNormalState(s);var c=this._textContent,l=pa(this,c,s,r);l&&!this.__inHover&&(this.__inHover=l),this._applyStateObj(e,s,this._normalState,t,ha(this,n,o),o);var u=this._textGuide;return c&&c.useState(e,t,n,!!l),u&&u.useState(e,t,n,!!l),i?(this.currentStates=[],this._normalState={}):t?this.currentStates.push(e):this.currentStates=[e],this._updateAnimationTargets(),this.markRedraw(),!l&&this.__inHover&&(this.__inHover=0,this.__dirty&=-2),s}}},e.prototype.useStates=function(e,t,n){if(!e.length)this.clearStates();else{var r=[],i=this.currentStates,a=e.length,o=a===i.length;if(o){for(var s=0;s=0){var n=this.currentStates.slice();n.splice(t,1),this.useStates(n)}},e.prototype.replaceState=function(e,t,n){var r=this.currentStates.slice(),i=re(r,e),a=re(r,t)>=0;i>=0?a?r.splice(i,1):r[i]=t:n&&!a&&r.push(t),this.useStates(r)},e.prototype.toggleState=function(e,t){t?this.useState(e,!0):this.removeState(e)},e.prototype._mergeStates=function(e){for(var t={},n,r=0;r=0&&t.splice(n,1)}),this.animators.push(e),n&&n.animation.addAnimator(e),n&&n.wakeUp()},e.prototype.updateDuringAnimation=function(e){this.markRedraw()},e.prototype.stopAnimation=function(e,t){for(var n=this.animators,r=n.length,i=[],a=0;a0&&n.during&&a[0].during(function(e,t){n.during(t)});for(var f=0;f0||i.force&&!o.length){var C=void 0,w=void 0,T=void 0;if(s){w={},f&&(C={});for(var b=0;b0}var ga=`__zr_style_`+Math.round(Math.random()*10),_a={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:`#000`,opacity:1,blend:`source-over`},va={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};_a[ga]=!0;var ya=[`z`,`z2`,`invisible`],ba=[`invisible`],xa=function(e){p(t,e);function t(t){return e.call(this,t)||this}return t.prototype._init=function(t){for(var n=ue(t),r=0;r1e-4){s[0]=e-n,s[1]=t-r,c[0]=e+n,c[1]=t+r;return}if(Aa[0]=Oa(i)*n+e,Aa[1]=Da(i)*r+t,ja[0]=Oa(a)*n+e,ja[1]=Da(a)*r+t,l(s,Aa,ja),u(c,Aa,ja),i%=ka,i<0&&(i+=ka),a%=ka,a<0&&(a+=ka),i>a&&!o?a+=ka:ii&&(Ma[0]=Oa(p)*n+e,Ma[1]=Da(p)*r+t,l(s,Ma,s),u(c,Ma,c))}var za={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},Ba=[],Va=[],Ha=[],Ua=[],Wa=[],Ga=[],Ka=Math.min,qa=Math.max,Ja=Math.cos,Ya=Math.sin,Xa=Math.abs,Za=Math.PI,Qa=Za*2,$a=typeof Float32Array<`u`,eo=[];function to(e){return Math.round(e/Za*1e8)/1e8%2*Za}function no(e,t){var n=to(e[0]);n<0&&(n+=Qa);var r=n-e[0],i=e[1];i+=r,!t&&i-n>=Qa?i=n+Qa:t&&n-i>=Qa?i=n-Qa:!t&&n>i?i=n+(Qa-to(n-i)):t&&n0&&(this._ux=Xa(n/Ji/e)||0,this._uy=Xa(n/Ji/t)||0)},e.prototype.setDPR=function(e){this.dpr=e},e.prototype.setContext=function(e){this._ctx=e},e.prototype.getContext=function(){return this._ctx},e.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},e.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},e.prototype.moveTo=function(e,t){return this._drawPendingPt(),this.addData(za.M,e,t),this._ctx&&this._ctx.moveTo(e,t),this._x0=e,this._y0=t,this._xi=e,this._yi=t,this},e.prototype.lineTo=function(e,t){var n=Xa(e-this._xi),r=Xa(t-this._yi),i=n>this._ux||r>this._uy;if(this.addData(za.L,e,t),this._ctx&&i&&this._ctx.lineTo(e,t),i)this._xi=e,this._yi=t,this._pendingPtDist=0;else{var a=n*n+r*r;a>this._pendingPtDist&&(this._pendingPtX=e,this._pendingPtY=t,this._pendingPtDist=a)}return this},e.prototype.bezierCurveTo=function(e,t,n,r,i,a){return this._drawPendingPt(),this.addData(za.C,e,t,n,r,i,a),this._ctx&&this._ctx.bezierCurveTo(e,t,n,r,i,a),this._xi=i,this._yi=a,this},e.prototype.quadraticCurveTo=function(e,t,n,r){return this._drawPendingPt(),this.addData(za.Q,e,t,n,r),this._ctx&&this._ctx.quadraticCurveTo(e,t,n,r),this._xi=n,this._yi=r,this},e.prototype.arc=function(e,t,n,r,i,a){this._drawPendingPt(),eo[0]=r,eo[1]=i,no(eo,a),r=eo[0],i=eo[1];var o=i-r;return this.addData(za.A,e,t,n,n,r,o,0,+!a),this._ctx&&this._ctx.arc(e,t,n,r,i,a),this._xi=Ja(i)*n+e,this._yi=Ya(i)*n+t,this},e.prototype.arcTo=function(e,t,n,r,i){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(e,t,n,r,i),this},e.prototype.rect=function(e,t,n,r){return this._drawPendingPt(),this._ctx&&this._ctx.rect(e,t,n,r),this.addData(za.R,e,t,n,r),this},e.prototype.closePath=function(){this._drawPendingPt(),this.addData(za.Z);var e=this._ctx,t=this._x0,n=this._y0;return e&&e.closePath(),this._xi=t,this._yi=n,this},e.prototype.fill=function(e){e&&e.fill(),this.toStatic()},e.prototype.stroke=function(e){e&&e.stroke(),this.toStatic()},e.prototype.len=function(){return this._len},e.prototype.setData=function(e){if(this._saveData){var t=e.length;!(this.data&&this.data.length===t)&&$a&&(this.data=new Float32Array(t));for(var n=0;n0&&a))for(var o=0;ol.length&&(this._expandData(),l=this.data);for(var u=0;u0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},e.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var e=[],t=0;t11&&(this.data=new Float32Array(e)))}},e.prototype.getBoundingRect=function(){Ha[0]=Ha[1]=Wa[0]=Wa[1]=Number.MAX_VALUE,Ua[0]=Ua[1]=Ga[0]=Ga[1]=-Number.MAX_VALUE;var e=this.data,t=0,n=0,r=0,i=0,a;for(a=0;an||Xa(v)>r||d===t-1)&&(m=Math.sqrt(_*_+v*v),i=h,a=g);break;case za.C:var y=e[d++],b=e[d++],h=e[d++],g=e[d++],x=e[d++],S=e[d++];m=xr(i,a,y,b,h,g,x,S,10),i=x,a=S;break;case za.Q:var y=e[d++],b=e[d++],h=e[d++],g=e[d++];m=Or(i,a,y,b,h,g,10),i=h,a=g;break;case za.A:var C=e[d++],w=e[d++],T=e[d++],E=e[d++],D=e[d++],O=e[d++],k=O+D;d+=1,p&&(o=Ja(D)*T+C,s=Ya(D)*E+w),m=qa(T,E)*Ka(Qa,Math.abs(O)),i=Ja(k)*T+C,a=Ya(k)*E+w;break;case za.R:o=i=e[d++],s=a=e[d++];var A=e[d++],j=e[d++];m=A*2+j*2;break;case za.Z:var _=o-i,v=s-a;m=Math.sqrt(_*_+v*v),i=o,a=s}m>=0&&(c[u++]=m,l+=m)}return this._pathLen=l,l},e.prototype.rebuildPath=function(e,t){var n=this.data,r=this._ux,i=this._uy,a=this._len,o,s,c,l,u,d,f=t<1,p,m,h=0,g=0,_,v=0,y,b;if(!(f&&(this._pathSegLen||this._calculateLength(),p=this._pathSegLen,m=this._pathLen,_=t*m,!_)))lo:for(var x=0;x0&&(e.lineTo(y,b),v=0),S){case za.M:o=c=n[x++],s=l=n[x++],e.moveTo(c,l);break;case za.L:u=n[x++],d=n[x++];var w=Xa(u-c),T=Xa(d-l);if(w>r||T>i){if(f){var E=p[g++];if(h+E>_){var D=(_-h)/E;e.lineTo(c*(1-D)+u*D,l*(1-D)+d*D);break lo}h+=E}e.lineTo(u,d),c=u,l=d,v=0}else{var O=w*w+T*T;O>v&&(y=u,b=d,v=O)}break;case za.C:var k=n[x++],A=n[x++],j=n[x++],ee=n[x++],M=n[x++],N=n[x++];if(f){var E=p[g++];if(h+E>_){var D=(_-h)/E;yr(c,k,j,M,D,Ba),yr(l,A,ee,N,D,Va),e.bezierCurveTo(Ba[1],Va[1],Ba[2],Va[2],Ba[3],Va[3]);break lo}h+=E}e.bezierCurveTo(k,A,j,ee,M,N),c=M,l=N;break;case za.Q:var k=n[x++],A=n[x++],j=n[x++],ee=n[x++];if(f){var E=p[g++];if(h+E>_){var D=(_-h)/E;Er(c,k,j,D,Ba),Er(l,A,ee,D,Va),e.quadraticCurveTo(Ba[1],Va[1],Ba[2],Va[2]);break lo}h+=E}e.quadraticCurveTo(k,A,j,ee),c=j,l=ee;break;case za.A:var te=n[x++],P=n[x++],F=n[x++],I=n[x++],ne=n[x++],L=n[x++],re=n[x++],ie=!n[x++],ae=F>I?F:I,oe=Xa(F-I)>.001,R=ne+L,z=!1;if(f){var E=p[g++];h+E>_&&(R=ne+L*(_-h)/E,z=!0),h+=E}if(oe&&e.ellipse?e.ellipse(te,P,F,I,re,ne,R,ie):e.arc(te,P,ae,ne,R,ie),z)break lo;C&&(o=Ja(ne)*F+te,s=Ya(ne)*I+P),c=Ja(R)*F+te,l=Ya(R)*I+P;break;case za.R:o=c=n[x],s=l=n[x+1],u=n[x++],d=n[x++];var se=n[x++],ce=n[x++];if(f){var E=p[g++];if(h+E>_){var le=_-h;e.moveTo(u,d),e.lineTo(u+Ka(le,se),d),le-=se,le>0&&e.lineTo(u+se,d+Ka(le,ce)),le-=ce,le>0&&e.lineTo(u+qa(se-le,0),d+ce),le-=se,le>0&&e.lineTo(u,d+qa(ce-le,0));break lo}h+=E}e.rect(u,d,se,ce);break;case za.Z:if(f){var E=p[g++];if(h+E>_){var D=(_-h)/E;e.lineTo(c*(1-D)+o*D,l*(1-D)+s*D);break lo}h+=E}e.closePath(),c=o,l=s}}},e.prototype.clone=function(){var t=new e,n=this.data;return t.data=n.slice?n.slice():Array.prototype.slice.call(n),t._len=this._len,t},e.prototype.canSave=function(){return!!this._saveData},e.CMD=za,e.initDefaultProps=(function(){var t=e.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0})(),e}();function io(e,t,n,r,i,a,o){if(i===0)return!1;var s=i,c=0,l=e;if(o>t+s&&o>r+s||oe+s&&a>n+s||at+d&&u>r+d&&u>a+d&&u>s+d||ue+d&&l>n+d&&l>i+d&&l>o+d||lt+l&&c>r+l&&c>a+l||ce+l&&s>n+l&&s>i+l||sn||u+li&&(i+=lo);var f=Math.atan2(c,s);return f<0&&(f+=lo),f>=r&&f<=i||f+lo>=r&&f+lo<=i}function fo(e,t,n,r,i,a){if(a>t&&a>r||ai?s:0}var po=ro.CMD,mo=Math.PI*2,ho=1e-4;function go(e,t){return Math.abs(e-t)t&&l>r&&l>a&&l>s||l1&&yo(),p=hr(t,r,a,s,vo[0]),f>1&&(m=hr(t,r,a,s,vo[1]))),f===2?gt&&s>r&&s>a||s=0&&l<=1){for(var u=0,d=Sr(t,r,a,l),f=0;fn||s<-n)return 0;var c=Math.sqrt(n*n-s*s);_o[0]=-c,_o[1]=c;var l=Math.abs(r-i);if(l<1e-4)return 0;if(l>=mo-1e-4){r=0,i=mo;var u=a?1:-1;return o>=_o[0]+e&&o<=_o[1]+e?u:0}if(r>i){var d=r;r=i,i=d}r<0&&(r+=mo,i+=mo);for(var f=0,p=0;p<2;p++){var m=_o[p];if(m+e>o){var h=Math.atan2(s,m),u=a?1:-1;h<0&&(h=mo+h),(h>=r&&h<=i||h+mo>=r&&h+mo<=i)&&(h>Math.PI/2&&h1&&(n||(s+=fo(c,l,u,d,r,i))),g&&(c=a[m],l=a[m+1],u=c,d=l),h){case po.M:u=a[m++],d=a[m++],c=u,l=d;break;case po.L:if(n){if(io(c,l,a[m],a[m+1],t,r,i))return!0}else s+=fo(c,l,a[m],a[m+1],r,i)||0;c=a[m++],l=a[m++];break;case po.C:if(n){if(ao(c,l,a[m++],a[m++],a[m++],a[m++],a[m],a[m+1],t,r,i))return!0}else s+=bo(c,l,a[m++],a[m++],a[m++],a[m++],a[m],a[m+1],r,i)||0;c=a[m++],l=a[m++];break;case po.Q:if(n){if(oo(c,l,a[m++],a[m++],a[m],a[m+1],t,r,i))return!0}else s+=xo(c,l,a[m++],a[m++],a[m],a[m+1],r,i)||0;c=a[m++],l=a[m++];break;case po.A:var _=a[m++],v=a[m++],y=a[m++],b=a[m++],x=a[m++],S=a[m++];m+=1;var C=!!(1-a[m++]);f=Math.cos(x)*y+_,p=Math.sin(x)*b+v,g?(u=f,d=p):s+=fo(c,l,f,p,r,i);var w=(r-_)*b/y+_;if(n){if(uo(_,v,b,x,x+S,C,t,w,i))return!0}else s+=So(_,v,b,x,x+S,C,w,i);c=Math.cos(x+S)*y+_,l=Math.sin(x+S)*b+v;break;case po.R:u=c=a[m++],d=l=a[m++];var T=a[m++],E=a[m++];if(f=u+T,p=d+E,n){if(io(u,d,f,d,t,r,i)||io(f,d,f,p,t,r,i)||io(f,p,u,p,t,r,i)||io(u,p,u,d,t,r,i))return!0}else s+=fo(f,d,f,p,r,i),s+=fo(u,p,u,d,r,i);break;case po.Z:if(n){if(io(c,l,u,d,t,r,i))return!0}else s+=fo(c,l,u,d,r,i);c=u,l=d}}return!n&&!go(l,d)&&(s+=fo(c,l,u,d,r,i)||0),s!==0}function wo(e,t,n){return Co(e,0,!1,t,n)}function To(e,t,n,r){return Co(e,t,!0,n,r)}var Eo=L({fill:`#000`,stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:`butt`,miterLimit:10,strokeNoScale:!1,strokeFirst:!1},_a),Do={style:L({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},va.style)},Oo=tr.concat([`invisible`,`culling`,`z`,`z2`,`zlevel`,`parent`]),ko=function(e){p(t,e);function t(t){return e.call(this,t)||this}return t.prototype.update=function(){var n=this;e.prototype.update.call(this);var r=this.style;if(r.decal){var i=this._decalEl=this._decalEl||new t;i.buildPath===t.prototype.buildPath&&(i.buildPath=function(e){n.buildPath(e,n.shape)}),i.silent=!0;var a=i.style;for(var o in r)a[o]!==r[o]&&(a[o]=r[o]);a.fill=r.fill?r.decal:null,a.decal=null,a.shadowColor=null,r.strokeFirst&&(a.stroke=null);for(var s=0;s.5?Xi:t>.2?Qi:Zi}if(e)return Zi}return Xi},t.prototype.getInsideTextStroke=function(e){var t=this.style.fill;if(V(t)){var n=this.__zr;if(!!(n&&n.isDarkMode())==$r(e,0)<.4)return t}},t.prototype.buildPath=function(e,t,n){},t.prototype.pathUpdated=function(){this.__dirty&=-5},t.prototype.getUpdatedPathProxy=function(e){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,e),this.path},t.prototype.createPathProxy=function(){this.path=new ro(!1)},t.prototype.hasStroke=function(){var e=this.style,t=e.stroke;return!(t==null||t===`none`||!(e.lineWidth>0))},t.prototype.hasFill=function(){var e=this.style.fill;return e!=null&&e!==`none`},t.prototype.getBoundingRect=function(){var e=this._rect,t=this.style,n=!e;if(n){var r=!1;this.path||(r=!0,this.createPathProxy());var i=this.path;(r||this.__dirty&4)&&(i.beginPath(),this.buildPath(i,this.shape,!1),this.pathUpdated()),e=i.getBoundingRect()}if(this._rect=e,this.hasStroke()&&this.path&&this.path.len()>0){var a=this._rectStroke||=e.clone();if(this.__dirty||n){a.copy(e);var o=t.strokeNoScale?this.getLineScale():1,s=t.lineWidth;if(!this.hasFill()){var c=this.strokeContainThreshold;s=Math.max(s,c??4)}o>1e-10&&(a.width+=s/o,a.height+=s/o,a.x-=s/o/2,a.y-=s/o/2)}return a}return e},t.prototype.contain=function(e,t){var n=this.transformCoordToLocal(e,t),r=this.getBoundingRect(),i=this.style;if(e=n[0],t=n[1],r.contain(e,t)){var a=this.path;if(this.hasStroke()){var o=i.lineWidth,s=i.strokeNoScale?this.getLineScale():1;if(s>1e-10&&(this.hasFill()||(o=Math.max(o,this.strokeContainThreshold)),To(a,o/s,e,t)))return!0}if(this.hasFill())return wo(a,e,t)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=4,this._rect&&=null,this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},t.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},t.prototype.animateShape=function(e){return this.animate(`shape`,e)},t.prototype.updateDuringAnimation=function(e){e===`style`?this.dirtyStyle():e===`shape`?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(t,n){t===`shape`?this.setShape(n):e.prototype.attrKV.call(this,t,n)},t.prototype.setShape=function(e,t){var n=this.shape;return n||=this.shape={},typeof e==`string`?n[e]=t:I(n,e),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&4)},t.prototype.createStyle=function(e){return Re(Eo,e)},t.prototype._innerSaveToNormal=function(t){e.prototype._innerSaveToNormal.call(this,t);var n=this._normalState;t.shape&&!n.shape&&(n.shape=I({},this.shape))},t.prototype._applyStateObj=function(t,n,r,i,a,o){if(e.prototype._applyStateObj.call(this,t,n,r,i,a,o),this.__inHover!==1){var s=!(n&&i),c;if(n&&n.shape?a?i?c=n.shape:(c=I({},r.shape),I(c,n.shape)):(c=I({},i?this.shape:r.shape),I(c,n.shape)):s&&(c=r.shape),c)if(a){this.shape=I({},this.shape);for(var l={},u=ue(c),d=0;di&&(d=s+c,s*=i/d,c*=i/d),l+u>i&&(d=l+u,l*=i/d,u*=i/d),c+l>a&&(d=c+l,c*=a/d,l*=a/d),s+u>a&&(d=s+u,s*=a/d,u*=a/d),e.moveTo(n+s,r),e.lineTo(n+i-c,r),c!==0&&e.arc(n+i-c,r+c,c,-Math.PI/2,0),e.lineTo(n+i,r+a-l),l!==0&&e.arc(n+i-l,r+a-l,l,0,Math.PI/2),e.lineTo(n+u,r+a),u!==0&&e.arc(n+u,r+a-u,u,Math.PI/2,Math.PI),e.lineTo(n,r+s),s!==0&&e.arc(n+s,r+s,s,Math.PI,Math.PI*1.5),e.closePath()}var Lo=Math.round;function Ro(e,t,n){if(t){var r=t.x1,i=t.x2,a=t.y1,o=t.y2;e.x1=r,e.x2=i,e.y1=a,e.y2=o;var s=n&&n.lineWidth;return s?(Lo(r*2)===Lo(i*2)&&(e.x1=e.x2=Bo(r,s,!0)),Lo(a*2)===Lo(o*2)&&(e.y1=e.y2=Bo(a,s,!0)),e):e}}function zo(e,t,n){if(t){var r=t.x,i=t.y,a=t.width,o=t.height;e.x=r,e.y=i,e.width=a,e.height=o;var s=n&&n.lineWidth;return s?(e.x=Bo(r,s,!0),e.y=Bo(i,s,!0),e.width=Math.max(Bo(r+a,s,!1)-e.x,a===0?0:1),e.height=Math.max(Bo(i+o,s,!1)-e.y,o===0?0:1),e):e}}function Bo(e,t,n){if(!t)return e;var r=Lo(e*2);return(r+Lo(t))%2==0?r/2:(r+(n?1:-1))/2}var Vo=function(){function e(){this.x=0,this.y=0,this.width=0,this.height=0}return e}(),Ho={},Uo=function(e){p(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new Vo},t.prototype.buildPath=function(e,t){var n,r,i,a;if(this.subPixelOptimize){var o=zo(Ho,t,this.style);n=o.x,r=o.y,i=o.width,a=o.height,o.r=t.r,t=o}else n=t.x,r=t.y,i=t.width,a=t.height;t.r?Io(e,t):e.rect(n,r,i,a)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(ko);Uo.prototype.type=`rect`;var Wo={fill:`#000`},Go=2,Ko={},qo={style:L({fill:!0,stroke:!0,fillOpacity:!0,strokeOpacity:!0,lineWidth:!0,fontSize:!0,lineHeight:!0,width:!0,height:!0,textShadowColor:!0,textShadowBlur:!0,textShadowOffsetX:!0,textShadowOffsetY:!0,backgroundColor:!0,padding:!0,borderColor:!0,borderWidth:!0,borderRadius:!0},va.style)},Jo=function(e){p(t,e);function t(t){var n=e.call(this)||this;return n.type=`text`,n._children=[],n._defaultStyle=Wo,n.attr(t),n}return t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){e.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var t=0;t0,T=0;T=0&&(D=y[E],D.align===`right`);)this._placeToken(D,e,x,m,T,`right`,g),S-=D.width,T-=D.width,E--;for(w+=(s-(w-p)-(h-T)-S)/2;C<=E;)D=y[C],this._placeToken(D,e,x,m,w+D.width/2,`center`,g),w+=D.width,C++;m+=x}},t.prototype._placeToken=function(e,t,n,r,i,a,o){var s=t.rich[e.styleName]||{};s.text=e.text;var c=e.verticalAlign,l=r+n/2;c===`top`?l=r+e.height/2:c===`bottom`&&(l=r+n-e.height/2),!e.isLineHolder&&ss(s)&&this._renderBackground(s,t,a===`right`?i-e.width:a===`center`?i-e.width/2:i,l-e.height/2,e.width,e.height);var u=!!s.backgroundColor,d=e.textPadding;d&&(i=as(i,a,d),l-=e.height/2-d[0]-e.innerHeight/2);var f=this._getOrCreateChild(jo),p=f.createStyle();f.useStyle(p);var m=this._defaultStyle,h=!1,g=0,_=!1,v=is(`fill`in s?s.fill:`fill`in t?t.fill:(h=!0,m.fill)),y=rs(`stroke`in s?s.stroke:`stroke`in t?t.stroke:!u&&!o&&(!m.autoStroke||h)?(g=Go,_=!0,m.stroke):null),b=s.textShadowBlur>0||t.textShadowBlur>0;p.text=e.text,p.x=i,p.y=l,b&&(p.shadowBlur=s.textShadowBlur||t.textShadowBlur||0,p.shadowColor=s.textShadowColor||t.textShadowColor||`transparent`,p.shadowOffsetX=s.textShadowOffsetX||t.textShadowOffsetX||0,p.shadowOffsetY=s.textShadowOffsetY||t.textShadowOffsetY||0),p.textAlign=a,p.textBaseline=`middle`,p.font=e.font||`12px sans-serif`,p.opacity=we(s.opacity,t.opacity,1),$o(p,s),y&&(p.lineWidth=we(s.lineWidth,t.lineWidth,g),p.lineDash=Ce(s.lineDash,t.lineDash),p.lineDashOffset=t.lineDashOffset||0,p.stroke=y),v&&(p.fill=v),f.setBoundingRect(Wn(p,e.contentWidth,e.contentHeight,_?0:null))},t.prototype._renderBackground=function(e,t,n,r,i,a){var o=e.backgroundColor,s=e.borderWidth,c=e.borderColor,l=o&&o.image,u=o&&!l,d=e.borderRadius,f=this,p,m;if(u||e.lineHeight||s&&c){p=this._getOrCreateChild(Uo),p.useStyle(p.createStyle()),p.style.fill=null;var h=p.shape;h.x=n,h.y=r,h.width=i,h.height=a,h.r=d,p.dirtyShape()}if(u){var g=p.style;g.fill=o||null,g.fillOpacity=Ce(e.fillOpacity,1)}else if(l){m=this._getOrCreateChild(Fo),m.onload=function(){f.dirtyStyle()};var _=m.style;_.image=o.image,_.x=n,_.y=r,_.width=i,_.height=a}if(s&&c){var g=p.style;g.lineWidth=s,g.stroke=c,g.strokeOpacity=Ce(e.strokeOpacity,1),g.lineDash=e.borderDash,g.lineDashOffset=e.borderDashOffset||0,p.strokeContainThreshold=0,p.hasFill()&&p.hasStroke()&&(g.strokeFirst=!0,g.lineWidth*=2)}var v=(p||m).style;v.shadowBlur=e.shadowBlur||0,v.shadowColor=e.shadowColor||`transparent`,v.shadowOffsetX=e.shadowOffsetX||0,v.shadowOffsetY=e.shadowOffsetY||0,v.opacity=we(e.opacity,t.opacity,1)},t.makeFont=function(e){var t=``;return es(e)&&(t=[e.fontStyle,e.fontWeight,Qo(e.fontSize),e.fontFamily||`sans-serif`].join(` `)),t&&Oe(t)||e.textFont||e.font},t}(xa),Yo={left:!0,right:1,center:1},Xo={top:1,bottom:1,middle:1},Zo=[`fontStyle`,`fontWeight`,`fontSize`,`fontFamily`];function Qo(e){return typeof e==`string`&&(e.indexOf(`px`)!==-1||e.indexOf(`rem`)!==-1||e.indexOf(`em`)!==-1)?e:isNaN(+e)?`12px`:e+`px`}function $o(e,t){for(var n=0;n0){if(e<=i)return o;if(e>=a)return s}else if(e>=i)return o;else if(e<=a)return s}else{if(e===i)return o;if(e===a)return s}return(e-i)/c*l+o}var Cs=ws;function ws(e,t,n){switch(e){case`center`:case`middle`:e=`50%`;break;case`left`:case`top`:e=`0%`;break;case`right`:case`bottom`:e=`100%`}return Ts(e,t,n)}function Ts(e,t,n){return V(e)?Es(e)?parseFloat(e)/100*t+(n||0):parseFloat(e):e==null?NaN:+e}function Es(e){return!!us(e).match(/%$/)}function Ds(e,t,n){return isNaN(t)?n?``+e:+e:(t=ds(fs(0,t),ls),e=(+e).toFixed(t),n?e:+e)}function Os(e){return e.sort(function(e,t){return e-t}),e}function ks(e){if(e=+e,isNaN(e))return 0;if(e>1e-14){for(var t=1,n=0;n<15;n++,t*=10)if(ms(e*t)/t===e)return n}return As(e)}function As(e){var t=e.toString().toLowerCase(),n=t.indexOf(`e`),r=n>0?+t.slice(n+1):0,i=n>0?n:t.length,a=t.indexOf(`.`);return fs(0,(a<0?0:i-1-a)-r)}function js(e,t,n){var r=ps(e[1]-e[0]);if(!isFinite(r)||r===0)return NaN;var i=vs(2*ps(n||1)*ps(r))/ys,a=vs(ps(t))/ys,o=fs(0,gs(-i+a));return isFinite(o)||(o=NaN),o}function Ms(e,t){var n=fs(ks(e),ks(t)),r=e+t;return n>ls?r:Ds(r,n)}var Ns=_s(2,53)-1;function Ps(e){var t=bs*2;return(e%t+t)%t}function Fs(e){return e>-cs&&e=10&&t++,t}function Bs(e,t){var n=zs(e),r=_s(10,n),i=e/r;return e=(t===2?1:t?i<1.5?1:i<2.5?2:i<4?3:i<7?5:10:i<1?1:i<2?2:i<3?3:i<5?5:10)*r,Ds(e,-n)}function Vs(e){e.sort(function(e,t){return s(e,t,0)?-1:1});for(var t=-1/0,n=1,r=0;r0?e.length:0),this.item=null,this.key=NaN,this},e.prototype.next=function(){return(this._step>0?this._idx=this._end)&&(this.item=this._list[this._idx],this.key=this._idx+=this._step,!0)},e})();function Nc(){return[1/0,-1/0]}function Pc(e,t){Rc(t)&&(te[1]&&(e[1]=t))}function Fc(e,t){Rc(t)&&te[1]&&(e[1]=t)}function Lc(e,t){zc(t[0],t[1])&&(t[0]e[1]&&(e[1]=t[1]))}function Rc(e){return e!=null&&isFinite(e)}function zc(e,t){return Rc(e)&&Rc(t)&&e<=t}function Bc(e){var t=e[1]-e[0];return isFinite(t)&&t>=0}function Vc(e){zc(e[0],e[1])&&e[0]>e[1]&&(e[0]=e[1])}function Hc(){var e=`__ec_once_`+Uc++;return function(t,n){ze(t,e)||(t[e]=1,n())}}var Uc=Ws();function Wc(e,t,n){var r=Ie(),i=0;R(e,function(a){var o=t(a),s=r.get(o)||0;n&&n(a,s),!s&&!n&&(e[i++]=a),r.set(o,s+1)}),n||(e.length=i)}function Gc(e){return e.value+``}function Kc(e){return e+``}function qc(e,t){return Ce(t,!0)?e.seriesIndex+2:0}function Jc(e,t,n){var r=e.getData().count();return{progressiveRender:n.progressiveEnabled&&t.incrementalPrepareRender&&r>=n.threshold,large:e.get(`large`)&&r>=e.get(`largeThreshold`),modDataCount:e.get(`progressiveChunkMode`)===`mod`?e.getData().count():null}}function Yc(e){return{overallReset:e}}var Xc=Cc(),Zc=function(e,t,n,r){if(r){var i=Xc(r);i.dataIndex=n,i.dataType=t,i.seriesIndex=e,i.ssrType=`chart`,r.type===`group`&&r.traverse(function(r){var i=Xc(r);i.seriesIndex=e,i.dataIndex=n,i.dataType=t,i.ssrType=`chart`})}},Qc=Ie([`tooltip`,`label`,`itemName`,`itemId`,`itemGroupId`,`itemChildGroupId`,`seriesName`]),$c=`original`,el=`arrayRows`,tl=`objectRows`,nl=`keyedColumns`,rl=`typedArray`,il=`unknown`,al=`column`,ol=[`getDom`,`getZr`,`getWidth`,`getHeight`,`getDevicePixelRatio`,`dispatchAction`,`isSSR`,`isDisposed`,`on`,`off`,`getDataURL`,`getConnectedDataURL`,`getOption`,`getId`,`updateLabelLayout`],sl=function(){function e(e){R(ol,function(t){this[t]=fe(e[t],e)},this)}return e}();function cl(e,t){return t.mainType===`series`?e.getViewOfSeriesModel(t):e.getViewOfComponentModel(t)}var ll=1,ul={},dl=Cc(),fl=Cc(),pl=[`emphasis`,`blur`,`select`],ml=[`normal`,`emphasis`,`blur`,`select`],hl=`highlight`,gl=`downplay`,_l=`select`,vl=`unselect`,yl=`toggleSelect`,bl=`selectchanged`;function xl(e){return e!=null&&e!==`none`}function Sl(e,t,n){e.onHoverStateChange&&(e.hoverState||0)!==n&&e.onHoverStateChange(t),e.hoverState=n}function Cl(e){Sl(e,`emphasis`,2)}function wl(e){e.hoverState===2&&Sl(e,`normal`,0)}function Tl(e){Sl(e,`blur`,1)}function El(e){e.hoverState===1&&Sl(e,`normal`,0)}function Dl(e){e.selected=!0}function Ol(e){e.selected=!1}function kl(e,t,n){t(e,n)}function Al(e,t,n){kl(e,t,n),e.isGroup&&e.traverse(function(e){kl(e,t,n)})}function jl(e,t,n,r){for(var i=e.style,a={},o=0;o=0,a=!1;if(e instanceof ko){var o=dl(e),s=i&&o.selectFill||o.normalFill,c=i&&o.selectStroke||o.normalStroke;if(xl(s)||xl(c)){r||={};var l=r.style||{};l.fill===`inherit`?(a=!0,r=I({},r),l=I({},l),l.fill=s):!xl(l.fill)&&xl(s)?(a=!0,r=I({},r),l=I({},l),l.fill=ti(s)):!xl(l.stroke)&&xl(c)&&(a||(r=I({},r),l=I({},l)),l.stroke=ti(c)),r.style=l}}if(r&&r.z2==null){a||(r=I({},r));var u=e.z2EmphasisLift;r.z2=e.z2+(u??10)}return r}function Nl(e,t,n){if(n&&n.z2==null){n=I({},n);var r=e.z2SelectLift;n.z2=e.z2+(r??9)}return n}function Pl(e,t,n){var r=re(e.currentStates,t)>=0,i=e.style.opacity,a=r?null:jl(e,[`opacity`],t,{opacity:1});n||={};var o=n.style||{};return o.opacity??(n=I({},n),o=I({opacity:r?i:a.opacity*.1},o),n.style=o),n}function Fl(e,t){var n=this.states[e];if(this.style){if(e===`emphasis`)return Ml(this,e,t,n);if(e===`blur`)return Pl(this,e,n);if(e===`select`)return Nl(this,e,n)}return n}function Il(e){e.stateProxy=Fl;var t=e.getTextContent(),n=e.getTextGuideLine();t&&(t.stateProxy=Fl),n&&(n.stateProxy=Fl)}function Ll(e,t){!Gl(e,t)&&!e.__highByOuter&&Al(e,Cl)}function Rl(e,t){!Gl(e,t)&&!e.__highByOuter&&Al(e,wl)}function zl(e,t){e.__highByOuter|=1<<(t||0),Al(e,Cl)}function Bl(e,t){!(e.__highByOuter&=~(1<<(t||0)))&&Al(e,wl)}function Vl(e){Al(e,Tl)}function Hl(e){Al(e,El)}function Ul(e){Al(e,Dl)}function Wl(e){Al(e,Ol)}function Gl(e,t){return e.__highDownSilentOnTouch&&t.zrByTouch}function Kl(e){var t=e.getModel(),n=[],r=[];t.eachComponent(function(t,i){var a=fl(i),o=cl(e,i),s=t===`series`;!s&&r.push(o),a.isBlured&&(o.group.traverse(function(e){El(e)}),s&&n.push(i)),a.isBlured=!1}),R(r,function(e){e&&e.toggleBlurSeries&&e.toggleBlurSeries(n,!1,t)})}function ql(e,t,n,r){var i=r.getModel();n||=`coordinateSystem`;function a(e,t){for(var n=0;n0){var a={dataIndex:i,seriesIndex:e.seriesIndex};r!=null&&(a.dataType=r),t.push(a)}})}),t}function nu(e,t,n){lu(e,!0),Al(e,Il),au(e,t,n)}function ru(e){lu(e,!1)}function iu(e,t,n,r){r?ru(e):nu(e,t,n)}function au(e,t,n){var r=Xc(e);t==null?r.focus&&=null:(r.focus=t,r.blurScope=n)}var ou=[`emphasis`,`blur`,`select`],su={itemStyle:`getItemStyle`,lineStyle:`getLineStyle`,areaStyle:`getAreaStyle`};function cu(e,t,n,r){n||=`itemStyle`;for(var i=0;i1&&(o*=bu(m),s*=bu(m));var h=(i===a?-1:1)*bu((o*o*(s*s)-o*o*(p*p)-s*s*(f*f))/(o*o*(p*p)+s*s*(f*f)))||0,g=h*o*p/s,_=h*-s*f/o,v=(e+n)/2+Su(d)*g-xu(d)*_,y=(t+r)/2+xu(d)*g+Su(d)*_,b=Eu([1,0],[(f-g)/o,(p-_)/s]),x=[(f-g)/o,(p-_)/s],S=[(-1*f-g)/o,(-1*p-_)/s],C=Eu(x,S);if(Tu(x,S)<=-1&&(C=Cu),Tu(x,S)>=1&&(C=0),C<0){var w=Math.round(C/Cu*1e6)/1e6;C=Cu*2+w%2*Cu}u.addData(l,v,y,o,s,b,C,d,a)}var Ou=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,ku=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function Au(e){var t=new ro;if(!e)return t;var n=0,r=0,i=n,a=r,o,s=ro.CMD,c=e.match(Ou);if(!c)return t;for(var l=0;l=0&&(n.splice(r,0,e),this._doAdd(e))}return this},t.prototype.replace=function(e,t){var n=re(this._children,e);return n>=0&&this.replaceAt(t,n),this},t.prototype.replaceAt=function(e,t){var n=this._children,r=n[t];if(e&&e!==this&&e.parent!==this&&e!==r){n[t]=e,r.parent=null;var i=this.__zr;i&&r.removeSelfFromZr(i),this._doAdd(e)}return this},t.prototype._doAdd=function(e){e.parent&&e.parent.remove(e),e.parent=this;var t=this.__zr;t&&t!==e.__zr&&e.addSelfToZr(t),t&&t.refresh()},t.prototype.remove=function(e){var t=this.__zr,n=this._children,r=re(n,e);return r<0?this:(n.splice(r,1),e.parent=null,t&&e.removeSelfFromZr(t),t&&t.refresh(),this)},t.prototype.removeAll=function(){for(var e=this._children,t=this.__zr,n=0;nA*A+j*j&&(w=E,T=D),{cx:w,cy:T,x0:-u,y0:-d,x1:w*(i/x-1),y1:T*(i/x-1)}}function td(e){var t;if(B(e)){var n=e.length;if(!n)return e;t=n===1?[e[0],e[0],0,0]:n===2?[e[0],e[0],e[1],e[1]]:n===3?e.concat(e[2]):e}else t=[e,e,e,e];return t}function nd(e,t){var n,r=Xu(t.r,0),i=Xu(t.r0||0,0),a=r>0;if(!(!a&&!(i>0))){if(a||(r=i,i=0),i>r){var o=r;r=i,i=o}var s=t.startAngle,c=t.endAngle;if(!(isNaN(s)||isNaN(c))){var l=t.cx,u=t.cy,d=!!t.clockwise,f=Ju(c-s),p=f>Uu&&f%Uu;if(p>Qu&&(f=p),!(r>Qu))e.moveTo(l,u);else if(f>Uu-Qu)e.moveTo(l+r*Gu(s),u+r*Wu(s)),e.arc(l,u,r,s,c,!d),i>Qu&&(e.moveTo(l+i*Gu(c),u+i*Wu(c)),e.arc(l,u,i,c,s,d));else{var m=void 0,h=void 0,g=void 0,_=void 0,v=void 0,y=void 0,b=void 0,x=void 0,S=void 0,C=void 0,w=void 0,T=void 0,E=void 0,D=void 0,O=void 0,k=void 0,A=r*Gu(s),j=r*Wu(s),ee=i*Gu(c),M=i*Wu(c),N=f>Qu;if(N){var te=t.cornerRadius;te&&(n=td(te),m=n[0],h=n[1],g=n[2],_=n[3]);var P=Ju(r-i)/2;if(v=Zu(P,g),y=Zu(P,_),b=Zu(P,m),x=Zu(P,h),w=S=Xu(v,y),T=C=Xu(b,x),(S>Qu||C>Qu)&&(E=r*Gu(c),D=r*Wu(c),O=i*Gu(s),k=i*Wu(s),fQu){var oe=Zu(g,w),R=Zu(_,w),z=ed(O,k,A,j,r,oe,d),se=ed(E,D,ee,M,r,R,d);e.moveTo(l+z.cx+z.x0,u+z.cy+z.y0),w0&&e.arc(l+z.cx,u+z.cy,oe,qu(z.y0,z.x0),qu(z.y1,z.x1),!d),e.arc(l,u,r,qu(z.cy+z.y1,z.cx+z.x1),qu(se.cy+se.y1,se.cx+se.x1),!d),R>0&&e.arc(l+se.cx,u+se.cy,R,qu(se.y1,se.x1),qu(se.y0,se.x0),!d))}else e.moveTo(l+A,u+j),e.arc(l,u,r,s,c,!d);if(!(i>Qu)||!N)e.lineTo(l+ee,u+M);else if(T>Qu){var oe=Zu(m,T),R=Zu(h,T),z=ed(ee,M,E,D,i,-R,d),se=ed(A,j,O,k,i,-oe,d);e.lineTo(l+z.cx+z.x0,u+z.cy+z.y0),T0&&e.arc(l+z.cx,u+z.cy,R,qu(z.y0,z.x0),qu(z.y1,z.x1),!d),e.arc(l,u,i,qu(z.cy+z.y1,z.cx+z.x1),qu(se.cy+se.y1,se.cx+se.x1),d),oe>0&&e.arc(l+se.cx,u+se.cy,oe,qu(se.y1,se.x1),qu(se.y0,se.x0),!d))}else e.lineTo(l+ee,u+M),e.arc(l,u,i,c,s,d)}e.closePath()}}}var rd=function(){function e(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0,this.cornerRadius=0}return e}(),id=function(e){p(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new rd},t.prototype.buildPath=function(e,t){nd(e,t)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(ko);id.prototype.type=`sector`;var ad=function(){function e(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return e}(),od=function(e){p(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new ad},t.prototype.buildPath=function(e,t){var n=t.cx,r=t.cy,i=Math.PI*2;e.moveTo(n+t.r,r),e.arc(n,r,t.r,0,i,!1),e.moveTo(n+t.r0,r),e.arc(n,r,t.r0,0,i,!0)},t}(ko);od.prototype.type=`ring`;function sd(e,t,n,r){var i=[],a=[],o=[],s=[],c,l,u,d;if(r){u=[1/0,1/0],d=[-1/0,-1/0];for(var f=0,p=e.length;f=2){if(r){var a=sd(i,r,n,t.smoothConstraint);e.moveTo(i[0][0],i[0][1]);for(var o=i.length,s=0;s<(n?o:o-1);s++){var c=a[s*2],l=a[s*2+1],u=i[(s+1)%o];e.bezierCurveTo(c[0],c[1],l[0],l[1],u[0],u[1])}}else{e.moveTo(i[0][0],i[0][1]);for(var s=1,d=i.length;sAd[1]){if(i=!1,jd.negativeSize||n)return i;var s=Od(Ad[0]-kd[1]),c=Od(kd[0]-Ad[1]);Ed(s,c)>Nd.len()&&(s=c||!jd.bidirectional)&&(Bt.scale(Md,o,-c*r),jd.useDir&&jd.calcDirMTV()))}}return i},e.prototype._getProjMinMaxOnAxis=function(e,t,n){for(var r=this._axes[e],i=this._origin,a=t[0].dot(r)+i[e],o=a,s=a,c=1;c0){var d=u.duration,f=u.delay,p=u.easing,m={duration:d,delay:f||0,easing:p,done:a,force:!!a||!!o,setToFinal:!l,scope:e,during:o};s?t.animateFrom(n,m):t.animateTo(n,m)}else t.stopAnimation(),!s&&t.attr(n),o&&o(1),a&&a()}function Bd(e,t,n,r,i,a){zd(`update`,e,t,n,r,i,a)}function Vd(e,t,n,r,i,a){zd(`enter`,e,t,n,r,i,a)}function Hd(e){if(!e.__zr)return!0;for(var t=0;txd,BezierCurve:()=>yd,BoundingRect:()=>en,Circle:()=>zu,CompoundPath:()=>Sd,Ellipse:()=>Vu,Group:()=>Lu,HOVER_LAYER_FOR_INCREMENTAL:()=>2,HOVER_LAYER_FROM_THRESHOLD:()=>1,HOVER_LAYER_NO:()=>0,Image:()=>Fo,IncrementalDisplayable:()=>Id,Line:()=>hd,LinearGradient:()=>wd,OrientedBoundingRect:()=>Pd,Path:()=>ko,Point:()=>Bt,Polygon:()=>ud,Polyline:()=>fd,RadialGradient:()=>Td,Rect:()=>Uo,Ring:()=>od,Sector:()=>id,Text:()=>Jo,WH:()=>Xd,XY:()=>Yd,applyTransform:()=>ff,calcZ2Range:()=>Ff,clipPointsByRect:()=>_f,clipRectByRect:()=>vf,createIcon:()=>yf,decomposeTransform:()=>zf,ensureCopyRect:()=>Mf,ensureCopyTransform:()=>Nf,expandOrShrinkRect:()=>wf,extendPath:()=>$d,extendShape:()=>Zd,getCurrentCanvasPainter:()=>Vf,getShapeClass:()=>tf,getTransform:()=>df,groupTransition:()=>gf,initProps:()=>Vd,isBoundingRectAxisAligned:()=>Af,isElementRemoved:()=>Hd,lineLineIntersect:()=>xf,linePolygonIntersect:()=>bf,makeImage:()=>rf,makePath:()=>nf,mergePath:()=>of,payloadDisableAnimation:()=>Rf,registerShape:()=>ef,removeElement:()=>Ud,removeElementWithFadeOut:()=>Gd,resizePath:()=>sf,retrieveZInfo:()=>Pf,setTooltipConfig:()=>Df,subPixelOptimize:()=>uf,subPixelOptimizeLine:()=>cf,subPixelOptimizeRect:()=>lf,transformDirection:()=>pf,traverseElements:()=>kf,traverseUpdateZ:()=>If,updateProps:()=>Bd}),Jd={},Yd=[`x`,`y`],Xd=[`width`,`height`];function Zd(e){return ko.extend(e)}var Qd=Fu;function $d(e,t){return Qd(e,t)}function ef(e,t){Jd[e]=t}function tf(e){if(Jd.hasOwnProperty(e))return Jd[e]}function nf(e,t,n,r){var i=Pu(e,t);return n&&(r===`center`&&(n=af(n,i.getBoundingRect())),sf(i,n)),i}function rf(e,t,n){var r=new Fo({style:{image:e,x:t.x,y:t.y,width:t.width,height:t.height},onload:function(e){if(n===`center`){var i={width:e.width,height:e.height};r.setStyle(af(t,i))}}});return r}function af(e,t){var n=t.width/t.height,r=e.height*n,i;r<=e.width?i=e.height:(r=e.width,i=r/n);var a=e.x+e.width/2,o=e.y+e.height/2;return{x:a-r/2,y:o-i/2,width:r,height:i}}var of=Iu;function sf(e,t){if(e.applyTransform){var n=e.getBoundingRect().calculateTransform(t);e.applyTransform(n)}}function cf(e,t){return Ro(e,e,{lineWidth:t}),e}function lf(e,t){return zo(e,e,t),e}var uf=Bo;function df(e,t){for(var n=_t([]);e&&e!==t;)yt(n,e.getLocalTransform(),n),e=e.parent;return n}function ff(e,t,n){return t&&!oe(t)&&(t=$n.getLocalTransform(t)),n&&(t=Ct([],t)),Lt([],e,t)}function pf(e,t,n){var r=t[4]===0||t[5]===0||t[0]===0?1:ps(2*t[4]/t[0]),i=t[4]===0||t[5]===0||t[2]===0?1:ps(2*t[4]/t[2]),a=[e===`left`?-r:e===`right`?r:0,e===`top`?-i:e===`bottom`?i:0];return a=ff(a,t,n),ps(a[0])>ps(a[1])?a[0]>0?`right`:`left`:a[1]>0?`bottom`:`top`}function mf(e){return!e.isGroup}function hf(e){return e.shape!=null}function gf(e,t,n){if(!e||!t)return;function r(e){var t={};return e.traverse(function(e){mf(e)&&e.anid&&(t[e.anid]=e)}),t}function i(e){var t={x:e.x,y:e.y,rotation:e.rotation};return hf(e)&&(t.shape=P(e.shape)),t}var a=r(e);t.traverse(function(e){if(mf(e)&&e.anid){var t=a[e.anid];if(t){var r=i(e);e.attr(i(t)),Bd(e,r,n,Xc(e).dataIndex)}}})}function _f(e,t){return z(e,function(e){var n=e[0];n=fs(n,t.x),n=ds(n,t.x+t.width);var r=e[1];return r=fs(r,t.y),r=ds(r,t.y+t.height),[n,r]})}function vf(e,t){var n=fs(e.x,t.x),r=ds(e.x+e.width,t.x+t.width),i=fs(e.y,t.y),a=ds(e.y+e.height,t.y+t.height);if(r>=n&&a>=i)return{x:n,y:i,width:r-n,height:a-i}}function yf(e,t,n){var r=I({rectHover:!0},t),i=r.style={strokeNoScale:!0};if(n||={x:-1,y:-1,width:2,height:2},e)return e.indexOf(`image://`)===0?(i.image=e.slice(8),L(i,n),new Fo(r)):nf(e.replace(`path://`,``),r,n,`center`)}function bf(e,t,n,r,i){for(var a=0,o=i[i.length-1];a1)return!1;var g=Sf(p,m,u,d)/f;return!(g<0||g>1)}function Sf(e,t,n,r){return e*r-n*t}function Cf(e){return e<=1e-6&&e>=-1e-6}function wf(e,t,n,r,i){return t==null?e:(ge(t)?Tf[0]=Tf[1]=Tf[2]=Tf[3]=t:(Tf[0]=t[0],Tf[1]=t[1],Tf[2]=t[2],Tf[3]=t[3]),r&&(Tf[0]=fs(0,Tf[0]),Tf[1]=fs(0,Tf[1]),Tf[2]=fs(0,Tf[2]),Tf[3]=fs(0,Tf[3])),n&&(Tf[0]=-Tf[0],Tf[1]=-Tf[1],Tf[2]=-Tf[2],Tf[3]=-Tf[3]),Ef(e,Tf,`x`,`width`,3,1,i&&i[0]||0),Ef(e,Tf,`y`,`height`,0,2,i&&i[1]||0),e)}var Tf=[0,0,0,0];function Ef(e,t,n,r,i,a,o){var s=t[a]+t[i],c=e[r];e[r]+=s,o=fs(0,ds(o,c)),e[r]=0?-t[i]:t[a]>=0?c+t[a]:ps(s)>1e-8?(c-o)*t[i]/s:0):e[n]-=t[i]}function Df(e){var t=e.itemTooltipOption,n=e.componentModel,r=e.itemName,i=V(t)?{formatter:t}:t,a=n.mainType,o=n.componentIndex,s={componentType:a,name:r,$vars:[`name`]};s[a+`Index`]=o;var c=e.formatterParamsExtra;c&&R(ue(c),function(e){ze(s,e)||(s[e]=c[e],s.$vars.push(e))});var l=Xc(e.el);l.componentMainType=a,l.componentIndex=o,l.tooltipConfig={name:r,option:L({content:r,encodeHTMLContent:!0,formatterParams:s},i)}}function Of(e,t){var n;e.isGroup&&(n=t(e)),n||e.traverse(t)}function kf(e,t){if(e)if(B(e))for(var n=0;nt&&(t=r),rt&&(n=t=0),{min:n,max:t}}function If(e,t,n){Lf(e,t,n,-1/0)}function Lf(e,t,n,r){if(e.ignoreModelZ)return r;var i=e.getTextContent(),a=e.getTextGuideLine();if(e.isGroup)for(var o=e.childrenRef(),s=0;s1){var l=s.shift();s.length===1&&(n[o]=s[0]),this._update&&this._update(l,a)}else c===1?(n[o]=null,this._update&&this._update(s,a)):this._remove&&this._remove(a)}this._performRestAdd(i,n)},e.prototype._executeMultiple=function(){var e=this._old,t=this._new,n={},r={},i=[],a=[];this._initIndexMap(e,n,i,`_oldKeyGetter`),this._initIndexMap(t,r,a,`_newKeyGetter`);for(var o=0;o1&&d===1)this._updateManyToOne&&this._updateManyToOne(l,c),r[s]=null;else if(u===1&&d>1)this._updateOneToMany&&this._updateOneToMany(l,c),r[s]=null;else if(u===1&&d===1)this._update&&this._update(l,c),r[s]=null;else if(u>1&&d>1)this._updateManyToMany&&this._updateManyToMany(l,c),r[s]=null;else if(u>1)for(var f=0;f1)for(var o=0;ol&&(l=p)}s[0]=c,s[1]=l}},r=function(){return this._data?this._data.length/this._dimSize:0};Hp=(e={},e[el+`_`+al]={pure:!0,appendData:i},e[el+`_row`]={pure:!0,appendData:function(){throw Error(`Do not support appendData when set seriesLayoutBy: "row".`)}},e[tl]={pure:!0,appendData:i},e[nl]={pure:!0,appendData:function(e){var t=this._data;R(e,function(e,n){for(var r=t[n]||(t[n]=[]),i=0;i<(e||[]).length;i++)r.push(e[i])})}},e[$c]={appendData:i},e[rl]={persistent:!1,pure:!0,appendData:function(e){this._data=e},clean:function(){this._offset+=this.count(),this._data=null}},e);function i(e){for(var t=0;tt},gte:function(e,t){return e>=t}};(function(){function e(e,t){ge(t)||$s(``),this._opFn=um[e],this._rvalFloat=Hs(t)}return e.prototype.evaluate=function(e){return ge(e)?this._opFn(e,this._rvalFloat):this._opFn(Hs(e),this._rvalFloat)},e})();var dm=function(){function e(e,t){var n=e===`desc`;this._resultLT=n?1:-1,t??=n?`min`:`max`,this._incomparable=t===`min`?-1/0:1/0}return e.prototype.evaluate=function(e,t){var n=ge(e)?e:Hs(e),r=ge(t)?t:Hs(t),i=isNaN(n),a=isNaN(r);if(i&&(n=this._incomparable),a&&(r=this._incomparable),i&&a){var o=V(e),s=V(t);o&&(n=s?e:0),s&&(r=o?t:0)}return nr?-this._resultLT:0},e}();(function(){function e(e,t){this._rval=t,this._isEQ=e,this._rvalTypeof=typeof t,this._rvalFloat=Hs(t)}return e.prototype.evaluate=function(e){var t=e===this._rval;if(!t){var n=typeof e;n!==this._rvalTypeof&&(n===`number`||this._rvalTypeof===`number`)&&(t=Hs(e)===this._rvalFloat)}return this._isEQ?t:!t},e})();function fm(e){var t=``,n=-1/0,r=-1/0,i=1/0,a=1/0;return e&&(e.g!=null&&(t+=`G`+e.g,n=e.g),e.ge!=null&&(t+=`GE`+e.ge,r=e.ge),e.l!=null&&(t+=`L`+e.l,i=e.l),e.le!=null&&(t+=`LE`+e.le,a=e.le)),{key:t,g:n,ge:r,l:i,le:a}}function pm(e,t){return t>e.g&&t>=e.ge&&t`u`?Array:Uint32Array,hm=typeof Uint16Array>`u`?Array:Uint16Array,gm=typeof Int32Array>`u`?Array:Int32Array,_m=typeof Float64Array>`u`?Array:Float64Array,vm={float:_m,int:gm,ordinal:Array,number:Array,time:_m},ym;function bm(e){return e>65535?mm:hm}function xm(e){var t=e.constructor;return t===Array?e.slice():new t(e)}function Sm(e,t,n,r,i){var a=vm[n||`float`];if(i){var o=e[t],s=o&&o.length;if(s!==r){for(var c=new a(r),l=0;lh[1]&&(h[1]=m)}return this._rawCount=this._count=s,{start:o,end:s}},e.prototype._initDataFromProvider=function(e,t,n){for(var r=this._provider,i=this._chunks,a=this._dimensions,o=a.length,s=this._rawExtent,c=z(a,function(e){return e.property}),l=0;lg[1]&&(g[1]=h)}}!r.persistent&&r.clean&&r.clean(),this._rawCount=this._count=t,this._extent=[]},e.prototype.count=function(){return this._count},e.prototype.get=function(e,t){if(!(t>=0&&t=0&&t=this._rawCount||e<0)return-1;if(!this._indices)return e;var t=this._indices,n=t[e];if(n!=null&&ne)i=a-1;else return a}return-1},e.prototype.getIndices=function(){var e,t=this._indices;if(t){var n=t.constructor,r=this._count;if(n===Array){e=new n(r);for(var i=0;i=l&&g<=u||isNaN(g))&&(o[s++]=p),p++}f=!0}else if(i===2){for(var m=d[r[0]],_=d[r[1]],v=e[r[1]][0],y=e[r[1]][1],h=0;h=l&&g<=u||isNaN(g))&&(b>=v&&b<=y||isNaN(b))&&(o[s++]=p),p++}f=!0}}if(!f)if(i===1)for(var h=0;h=l&&g<=u||isNaN(g))&&(o[s++]=x)}else for(var h=0;he[w][1])&&(S=!1)}S&&(o[s++]=t.getRawIndex(h))}return sg[1]&&(g[1]=h)}}}},e.prototype.lttbDownSample=function(e,t){var n=this.clone([e],!0),r=n._chunks[e],i=this.count(),a=0,o=Math.floor(1/t),s=this.getRawIndex(0),c,l,u,d=new(bm(this._rawCount))(Math.min((Math.ceil(i/o)+2)*2,i));d[a++]=s;for(var f=1;fc&&(c=l,u=v)}T>0&&To&&(m=o-l);for(var h=0;hp&&(p=g,f=l+h)}var _=this.getRawIndex(u),v=this.getRawIndex(f);ul-p&&(s=l-p,o.length=s);for(var m=0;mu[1]&&(u[1]=g),d[f++]=_}return i._count=f,i._indices=d,i._updateGetRawIdx(),i},e.prototype.each=function(e,t){if(this._count)for(var n=e.length,r=this._chunks,i=0,a=this.count();id&&(d=p))}return o[c]=[u,d]},e.prototype.getRawDataItem=function(e){var t=this.getRawIndex(e);if(this._provider.persistent)return this._provider.getItem(t);for(var n=[],r=this._chunks,i=0;i=0?this._indices[e]:-1},e.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},e.internalField=function(){function e(e,t,n,r){return lm(e[r],this._dimensions[r])}ym={arrayRows:e,objectRows:function(e,t,n,r){return lm(e[t],this._dimensions[r])},keyedColumns:e,original:function(e,t,n,r){var i=e&&(e.value==null?e:e.value);return lm(i instanceof Array?i[r]:i,this._dimensions[r])},typedArray:function(e,t,n,r){return e[r]}}}(),e}(),wm=Cc(),Tm={float:`f`,int:`i`,ordinal:`o`,number:`n`,time:`t`},Em=function(){function e(e){this.dimensions=e.dimensions,this._dimOmitted=e.dimensionOmitted,this.source=e.source,this._fullDimCount=e.fullDimensionCount,this._updateDimOmitted(e.dimensionOmitted)}return e.prototype.isDimensionOmitted=function(){return this._dimOmitted},e.prototype._updateDimOmitted=function(e){this._dimOmitted=e,e&&(this._dimNameMap||=km(this.source))},e.prototype.getSourceDimensionIndex=function(e){return Ce(this._dimNameMap.get(e),-1)},e.prototype.getSourceDimension=function(e){var t=this.source.dimensionsDefine;if(t)return t[e]},e.prototype.makeStoreSchema=function(){for(var e=this._fullDimCount,t=Lp(this.source),n=!Am(e),r=``,i=[],a=0,o=0;a30}var jm=H,Mm=z,Nm=typeof Int32Array>`u`?Array:Int32Array,Pm=`e\0\0`,Fm=-1,Im=[`hasItemOption`,`_nameList`,`_idList`,`_invertedIndicesMap`,`_dimSummary`,`userOutput`,`_rawData`,`_dimValueGetter`,`_nameDimIdx`,`_idDimIdx`,`_nameRepeatCount`],Lm=[`_approximateExtent`],Rm,zm,Bm,Vm,Hm,Um,Wm,Gm=function(){function e(e,t){this.type=`list`,this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=[`cloneShallow`,`downSample`,`minmaxDownSample`,`lttbDownSample`,`map`],this.CHANGABLE_METHODS=[`filterSelf`,`selectRange`],this.DOWNSAMPLE_METHODS=[`downSample`,`minmaxDownSample`,`lttbDownSample`];var n,r=!1;Dm(e)?(n=e.dimensions,this._dimOmitted=e.isDimensionOmitted(),this._schema=e):(r=!0,n=e),n||=[`x`,`y`];for(var i={},a=[],o={},s=!1,c={},l=0;l=t)){var n=this._store.getProvider();this._updateOrdinalMeta();var r=this._nameList,i=this._idList;if(n.getSource().sourceFormat===`original`&&!n.pure)for(var a=[],o=e;o0},e.prototype.ensureUniqueItemVisual=function(e,t){var n=this._itemVisuals,r=n[e];r||=n[e]={};var i=r[t];return i??(i=this.getVisual(t),B(i)?i=i.slice():jm(i)&&(i=I({},i)),r[t]=i),i},e.prototype.setItemVisual=function(e,t,n){var r=this._itemVisuals[e]||{};this._itemVisuals[e]=r,jm(t)?I(r,t):r[t]=n},e.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},e.prototype.setLayout=function(e,t){jm(e)?I(this._layout,e):this._layout[e]=t},e.prototype.getLayout=function(e){return this._layout[e]},e.prototype.getItemLayout=function(e){return this._itemLayouts[e]},e.prototype.setItemLayout=function(e,t,n){this._itemLayouts[e]=n?I(this._itemLayouts[e]||{},t):t},e.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},e.prototype.setItemGraphicEl=function(e,t){Zc(this.hostModel&&this.hostModel.seriesIndex,this.dataType,e,t),this._graphicEls[e]=t},e.prototype.getItemGraphicEl=function(e){return this._graphicEls[e]},e.prototype.eachItemGraphicEl=function(e,t){R(this._graphicEls,function(n,r){n&&e&&e.call(t,n,r)})},e.prototype.cloneShallow=function(t){return t||=new e(this._schema?this._schema:Mm(this.dimensions,this._getDimInfo,this),this.hostModel),Hm(t,this),t._store=this._store,t},e.prototype.wrapMethod=function(e,t){var n=this[e];me(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var e=n.apply(this,arguments);return t.apply(this,[e].concat(Te(arguments)))})},e.internalField=function(){Rm=function(e){var t=e._invertedIndicesMap;R(t,function(n,r){var i=e._dimInfos[r],a=i.ordinalMeta,o=e._store;if(a){n=t[r]=new Nm(a.categories.length);for(var s=0;s1&&(s+=`__ec__`+l),r[t]=s}}}(),e}();function Km(e,t){Op(e)||(e=Ap(e)),t||={};var n=t.coordDimensions||[],r=t.dimensionsDefine||e.dimensionsDefine||[],i=Ie(),a=[],o=qm(e,n,r,t.dimensionsCount),s=t.canOmitUnusedDimensions&&Am(o),c=r===e.dimensionsDefine,l=c?km(e):Om(r),u=t.encodeDefine;!u&&t.encodeDefaulter&&(u=t.encodeDefaulter(e,o));for(var d=Ie(u),f=new gm(o),p=0;p0&&(e.name+=t-1)}),new Em({source:e,dimensions:a,fullDimensionCount:o,dimensionOmitted:s})}function qm(e,t,n,r){var i=Math.max(e.dimensionsDetectedCount||1,t.length,n.length,r||0);return R(t,function(e){var t;H(e)&&(t=e.dimsDef)&&(i=Math.max(i,t.length))}),i}function Jm(e,t,n){if(n||t.hasKey(e)){for(var r=0;t.hasKey(e+r);)r++;e+=r}return t.set(e,!0),e}var Ym={},Xm={},Zm=function(){function e(){this._normalMasterList=[],this._nonSeriesBoxMasterList=[]}return e.prototype.create=function(e,t){this._nonSeriesBoxMasterList=n(Ym,!0),this._normalMasterList=n(Xm,!1);function n(n,r){var i=[];return R(n,function(n,r){var a=n.create(e,t);i=i.concat(a||[])}),i}},e.prototype.update=function(e,t){R(this._normalMasterList,function(n){n.update&&n.update(e,t)})},e.prototype.getCoordinateSystems=function(){return this._normalMasterList.concat(this._nonSeriesBoxMasterList)},e.register=function(e,t){if(e===`matrix`||e===`calendar`){Ym[e]=t;return}Xm[e]=t},e.get=function(e){return Xm[e]||Ym[e]},e}();function Qm(e){return!!Ym[e]}var $m=Ie();function eh(e){var t=e.getShallow(`coord`,!0),n=1;if(t==null){var r=$m.get(e.type);r&&r.getCoord2&&(n=2,t=r.getCoord2(e))}return{coord:t,from:n}}function th(e,t){var n=e.getShallow(`coordinateSystem`),r=e.getShallow(`coordinateSystemUsage`,!0),i=0;if(n){var a=e.mainType===`series`;r??=a?`data`:`box`,r===`data`?(i=1,a||(i=0)):r===`box`&&(i=2,!a&&!Qm(n)&&(i=0))}return{coordSysType:n,kind:i}}function nh(e){var t=e.targetModel,n=e.coordSysType,r=e.coordSysProvider,i=e.isDefaultDataCoordSys;e.allowNotFound;var a=th(t,!0),o=a.kind,s=a.coordSysType;if(i&&o!==1&&(o=1,s=n),o===0||s!==n)return 0;var c=r(n,t);return c?(o===1?t.coordinateSystem=c:t.boxCoordinateSystem=c,o):0}var rh=function(){function e(e){this.coordSysDims=[],this.axisMap=Ie(),this.categoryAxisMap=Ie(),this.coordSysName=e}return e}();function ih(e){var t=e.get(`coordinateSystem`),n=new rh(t),r=ah[t];if(r)return r(e,n,n.axisMap,n.categoryAxisMap),n}var ah={cartesian2d:function(e,t,n,r){var i=e.getReferringComponents(`xAxis`,Dc).models[0],a=e.getReferringComponents(`yAxis`,Dc).models[0];t.coordSysDims=[`x`,`y`],n.set(`x`,i),n.set(`y`,a),oh(i)&&(r.set(`x`,i),t.firstCategoryDimIndex=0),oh(a)&&(r.set(`y`,a),t.firstCategoryDimIndex??=1)},singleAxis:function(e,t,n,r){var i=e.getReferringComponents(`singleAxis`,Dc).models[0];t.coordSysDims=[`single`],n.set(`single`,i),oh(i)&&(r.set(`single`,i),t.firstCategoryDimIndex=0)},polar:function(e,t,n,r){var i=e.getReferringComponents(`polar`,Dc).models[0],a=i.findAxisModel(`radiusAxis`),o=i.findAxisModel(`angleAxis`);t.coordSysDims=[`radius`,`angle`],n.set(`radius`,a),n.set(`angle`,o),oh(a)&&(r.set(`radius`,a),t.firstCategoryDimIndex=0),oh(o)&&(r.set(`angle`,o),t.firstCategoryDimIndex??=1)},geo:function(e,t,n,r){t.coordSysDims=[`lng`,`lat`]},parallel:function(e,t,n,r){var i=e.ecModel,a=i.getComponent(`parallel`,e.get(`parallelIndex`)),o=t.coordSysDims=a.dimensions.slice();R(a.parallelAxisIndex,function(e,a){var s=i.getComponent(`parallelAxis`,e),c=o[a];n.set(c,s),oh(s)&&(r.set(c,s),t.firstCategoryDimIndex??=a)})},matrix:function(e,t,n,r){var i=e.getReferringComponents(`matrix`,Dc).models[0];t.coordSysDims=[`x`,`y`];var a=i.getDimensionModel(`x`),o=i.getDimensionModel(`y`);n.set(`x`,a),n.set(`y`,o),r.set(`x`,a),r.set(`y`,o)}};function oh(e){return e.get(`type`)===`category`}function sh(e,t,n){n||={};var r=n.byIndex,i=n.stackedCoordDimension,a,o,s;ch(t)?a=t:(o=t.schema,a=o.dimensions,s=t.store);var c=!!(e&&e.get(`stack`)),l,u,d,f,p=!0;function m(e){return e.type!==`ordinal`&&e.type!==`time`}if(R(a,function(e,t){V(e)&&(a[t]=e={name:e}),m(e)||(p=!1)}),R(a,function(e,t){c&&!e.isExtraCoord&&(!r&&!l&&e.ordinalMeta&&(l=e),!u&&m(e)&&(!p||e.coordDim!==`x`&&e.coordDim!==`angle`)&&(!i||i===e.coordDim)&&(u=e))}),u&&!r&&!l&&(r=!0),u){d=`__\0ecstackresult_`+e.id,f=`__\0ecstackedover_`+e.id,l&&(l.createInvertedIndices=!0);var h=u.coordDim,g=u.type,_=0;R(a,function(e){e.coordDim===h&&_++});var v={name:d,coordDim:h,coordDimIndex:_,type:g,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length},y={name:f,coordDim:f,coordDimIndex:_+1,type:g,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length+1};o?(s&&(v.storeDimIndex=s.ensureCalculationDimension(f,g),y.storeDimIndex=s.ensureCalculationDimension(d,g)),o.appendCalculationDimension(v),o.appendCalculationDimension(y)):(a.push(v),a.push(y))}return{stackedDimension:u&&u.name,stackedByDimension:l&&l.name,isStackedByIndex:r,stackedOverDimension:f,stackResultDimension:d}}function ch(e){return!Dm(e.schema)}function lh(e,t){return!!t&&t===e.getCalculationInfo(`stackedDimension`)}function uh(e,t){return lh(e,t)?e.getCalculationInfo(`stackResultDimension`):t}function dh(e,t){var n=e.get(`coordinateSystem`),r=Zm.get(n),i;return t&&t.coordSysDims&&(i=z(t.coordSysDims,function(e){var n={name:e},r=t.axisMap.get(e);return r&&(n.type=om(r.get(`type`))),n})),i||=r&&(r.getDimensionsInfo?r.getDimensionsInfo():r.dimensions.slice())||[`x`,`y`],i}function fh(e,t,n){var r,i;return n&&R(e,function(e,a){var o=e.coordDim,s=n.categoryAxisMap.get(o);s&&(r??=a,e.ordinalMeta=s.getOrdinalMeta(),t&&(e.createInvertedIndices=!0)),e.otherDims.itemName!=null&&(i=!0)}),!i&&r!=null&&(e[r].otherDims.itemName=0),r}function ph(e,t,n){n||={};var r=t.getSourceManager(),i,a=!1;e?(a=!0,i=Ap(e)):(i=r.getSource(),a=i.sourceFormat===$c);var o=ih(t),s=dh(t,o),c=n.useEncodeDefaulter,l=me(c)?c:c?pe(Sp,s,t):null,u={coordDimensions:s,generateCoord:n.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:l,canOmitUnusedDimensions:!a},d=Km(i,u),f=fh(d.dimensions,n.createInvertedIndices,o),p=a?null:r.getSharedDataStore(d),m=sh(t,{schema:d,store:p}),h=new Gm(d,t);h.setCalculationInfo(m);var g=f!=null&&mh(i)?function(e,t,n,r){return r===f?n:this.defaultDimValueGetter(e,t,n,r)}:null;return h.hasItemOption=!1,h.initData(a?i:p,null,g),h}function mh(e){if(e.sourceFormat===`original`)return!B(ac(hh(e.data||[])))}function hh(e){for(var t=0;t=0&&n.push(e)}),n}}function bh(e,t){return F(F({},e,!0),t,!0)}var xh=Math.log(2);function Sh(e,t,n,r,i,a){var o=r+`-`+i,s=e.length;if(a.hasOwnProperty(o))return a[o];if(t===1){var c=Math.round(Math.log((1<>1)%2;s.cssText=[`position: absolute`,`visibility: hidden`,`padding: 0`,`margin: 0`,`border-width: 0`,`user-select: none`,`width:0`,`height:0`,r[c]+`:0`,i[l]+`:0`,r[1-c]+`:auto`,i[1-l]+`:auto`,``].join(`!important;`),e.appendChild(o),n.push(o)}return t.clearMarkers=function(){R(n,function(e){e.parentNode&&e.parentNode.removeChild(e)})},n}function Ah(e,t,n){for(var r=n?`invTrans`:`trans`,i=t[r],a=t.srcCoords,o=[],s=[],c=!0,l=0;l<4;l++){var u=e[l].getBoundingClientRect(),d=2*l,f=u.left,p=u.top;o.push(f,p),c=c&&a&&f===a[d]&&p===a[d+1],s.push(e[l].offsetLeft,e[l].offsetTop)}return c&&i?i:(t.srcCoords=o,t[r]=n?Ch(s,o):Ch(o,s))}function jh(e){return e.nodeName.toUpperCase()===`CANVAS`}var Mh=/([&<>"'])/g,Nh={"&":`&`,"<":`<`,">":`>`,'"':`"`,"'":`'`};function Ph(e){return e==null?``:(e+``).replace(Mh,function(e,t){return Nh[t]})}var Fh={time:{month:[`January`,`February`,`March`,`April`,`May`,`June`,`July`,`August`,`September`,`October`,`November`,`December`],monthAbbr:[`Jan`,`Feb`,`Mar`,`Apr`,`May`,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`],dayOfWeek:[`Sunday`,`Monday`,`Tuesday`,`Wednesday`,`Thursday`,`Friday`,`Saturday`],dayOfWeekAbbr:[`Sun`,`Mon`,`Tue`,`Wed`,`Thu`,`Fri`,`Sat`]},legend:{selector:{all:`All`,inverse:`Inv`}},toolbox:{brush:{title:{rect:`Box Select`,polygon:`Lasso Select`,lineX:`Horizontally Select`,lineY:`Vertically Select`,keep:`Keep Selections`,clear:`Clear Selections`}},dataView:{title:`Data View`,lang:[`Data View`,`Close`,`Refresh`]},dataZoom:{title:{zoom:`Zoom`,back:`Zoom Reset`}},magicType:{title:{line:`Switch to Line Chart`,bar:`Switch to Bar Chart`,stack:`Stack`,tiled:`Tile`}},restore:{title:`Restore`},saveAsImage:{title:`Save as Image`,lang:[`Right Click to Save Image`]}},series:{typeNames:{pie:`Pie chart`,bar:`Bar chart`,line:`Line chart`,scatter:`Scatter plot`,effectScatter:`Ripple scatter plot`,radar:`Radar chart`,tree:`Tree`,treemap:`Treemap`,boxplot:`Boxplot`,candlestick:`Candlestick`,k:`K line chart`,heatmap:`Heat map`,map:`Map`,parallel:`Parallel coordinate map`,lines:`Line graph`,graph:`Relationship graph`,sankey:`Sankey diagram`,funnel:`Funnel chart`,gauge:`Gauge`,pictorialBar:`Pictorial bar`,themeRiver:`Theme River Map`,sunburst:`Sunburst`,custom:`Custom chart`,chart:`Chart`}},aria:{general:{withTitle:`This is a chart about "{title}"`,withoutTitle:`This is a chart`},series:{single:{prefix:``,withName:` with type {seriesType} named {seriesName}.`,withoutName:` with type {seriesType}.`},multiple:{prefix:`. It consists of {seriesCount} series count.`,withName:` The {seriesId} series is a {seriesType} representing {seriesName}.`,withoutName:` The {seriesId} series is a {seriesType}.`,separator:{middle:``,end:``}}},data:{allData:`The data is as follows: `,partialData:`The first {displayCnt} items are: `,withName:`the data for {name} is {value}`,withoutName:`{value}`,separator:{middle:`, `,end:`. `}}}},Ih={time:{month:[`一月`,`二月`,`三月`,`四月`,`五月`,`六月`,`七月`,`八月`,`九月`,`十月`,`十一月`,`十二月`],monthAbbr:[`1月`,`2月`,`3月`,`4月`,`5月`,`6月`,`7月`,`8月`,`9月`,`10月`,`11月`,`12月`],dayOfWeek:[`星期日`,`星期一`,`星期二`,`星期三`,`星期四`,`星期五`,`星期六`],dayOfWeekAbbr:[`日`,`一`,`二`,`三`,`四`,`五`,`六`]},legend:{selector:{all:`全选`,inverse:`反选`}},toolbox:{brush:{title:{rect:`矩形选择`,polygon:`圈选`,lineX:`横向选择`,lineY:`纵向选择`,keep:`保持选择`,clear:`清除选择`}},dataView:{title:`数据视图`,lang:[`数据视图`,`关闭`,`刷新`]},dataZoom:{title:{zoom:`区域缩放`,back:`区域缩放还原`}},magicType:{title:{line:`切换为折线图`,bar:`切换为柱状图`,stack:`切换为堆叠`,tiled:`切换为平铺`}},restore:{title:`还原`},saveAsImage:{title:`保存为图片`,lang:[`右键另存为图片`]}},series:{typeNames:{pie:`饼图`,bar:`柱状图`,line:`折线图`,scatter:`散点图`,effectScatter:`涟漪散点图`,radar:`雷达图`,tree:`树图`,treemap:`矩形树图`,boxplot:`箱型图`,candlestick:`K线图`,k:`K线图`,heatmap:`热力图`,map:`地图`,parallel:`平行坐标图`,lines:`线图`,graph:`关系图`,sankey:`桑基图`,funnel:`漏斗图`,gauge:`仪表盘图`,pictorialBar:`象形柱图`,themeRiver:`主题河流图`,sunburst:`旭日图`,custom:`自定义图表`,chart:`图表`}},aria:{general:{withTitle:`这是一个关于“{title}”的图表。`,withoutTitle:`这是一个图表,`},series:{single:{prefix:``,withName:`图表类型是{seriesType},表示{seriesName}。`,withoutName:`图表类型是{seriesType}。`},multiple:{prefix:`它由{seriesCount}个图表系列组成。`,withName:`第{seriesId}个系列是一个表示{seriesName}的{seriesType},`,withoutName:`第{seriesId}个系列是一个{seriesType},`,separator:{middle:`;`,end:`。`}}},data:{allData:`其数据是——`,partialData:`其中,前{displayCnt}项是——`,withName:`{name}的数据是{value}`,withoutName:`{value}`,separator:{middle:`,`,end:``}}}},Lh=`ZH`,Rh=`EN`,zh=Rh,Bh={},Vh={},Hh=Ue.domSupported?function(){return(document.documentElement.lang||navigator.language||navigator.browserLanguage||zh).toUpperCase().indexOf(Lh)>-1?Lh:zh}():zh;function Uh(e,t){e=e.toUpperCase(),Vh[e]=new hp(t),Bh[e]=t}function Wh(e){if(V(e)){var t=Bh[e.toUpperCase()]||{};return e===Lh||e===Rh?P(t):F(P(t),P(Bh[zh]),!1)}return F(P(e),P(Bh[zh]),!1)}function Gh(e){return Vh[e]}function Kh(){return Vh[zh]}Uh(Rh,Fh),Uh(Lh,Ih);var qh=null;function Jh(){return qh}function Yh(e,t){var n=Jh(),r=t.breakOption,i=t.breakParsed;return!i&&n&&(i=n.parseAxisBreakOption(r,e)),i}function Xh(e){var t=e.brk;return t?t.breaks:[]}function Zh(e){var t=e.brk;return t?t.hasBreaks():!1}var Qh=1e3,$h=Qh*60,eg=$h*60,tg=eg*24,ng=tg*365,rg={year:/({yyyy}|{yy})/,month:/({MMMM}|{MMM}|{MM}|{M})/,day:/({dd}|{d})/,hour:/({HH}|{H}|{hh}|{h})/,minute:/({mm}|{m})/,second:/({ss}|{s})/,millisecond:/({SSS}|{S})/},ig={year:`{yyyy}`,month:`{MMM}`,day:`{d}`,hour:`{HH}:{mm}`,minute:`{HH}:{mm}`,second:`{HH}:{mm}:{ss}`,millisecond:`{HH}:{mm}:{ss} {SSS}`},ag=`{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}`,og=`{yyyy}-{MM}-{dd}`,sg={year:`{yyyy}`,month:`{yyyy}-{MM}`,day:og,hour:og+` `+ig.hour,minute:og+` `+ig.minute,second:og+` `+ig.second,millisecond:ag},cg=[`year`,`month`,`day`,`hour`,`minute`,`second`,`millisecond`],lg=[`year`,`half-year`,`quarter`,`month`,`week`,`half-week`,`day`,`half-day`,`quarter-day`,`hour`,`minute`,`second`,`millisecond`];function ug(e){return!V(e)&&!me(e)?dg(e):e}function dg(e){e||={};var t={},n=!0;return R(cg,function(t){n&&=e[t]==null}),R(cg,function(r,i){var a=e[r];t[r]={};for(var o=null,s=i;s>=0;s--){var c=cg[s],l=H(a)&&!B(a)?a[c]:a,u=void 0;B(l)?(u=l.slice(),o=u[0]||``):V(l)?(o=l,u=[o]):(o==null?o=ig[r]:rg[c].test(o)||(o=t[c][c][0]+` `+o),u=[o],n&&(u[1]=`{primary|`+o+`}`)),t[r][c]=u}}),t}function fg(e,t){return e+=``,`0000`.substr(0,t-e.length)+e}function pg(e){switch(e){case`half-year`:case`quarter`:return`month`;case`week`:case`half-week`:return`day`;case`half-day`:case`quarter-day`:return`hour`;default:return e}}function mg(e){return e===pg(e)}function hg(e){switch(e){case`year`:case`month`:return`day`;case`millisecond`:return`millisecond`;default:return`second`}}function gg(e,t,n,r){var i=Ls(e),a=i[bg(n)](),o=i[xg(n)]()+1,s=Math.floor((o-1)/3)+1,c=i[Sg(n)](),l=i[`get`+(n?`UTC`:``)+`Day`](),u=i[Cg(n)](),d=(u-1)%12+1,f=i[wg(n)](),p=i[Tg(n)](),m=i[Eg(n)](),h=u>=12?`pm`:`am`,g=h.toUpperCase(),_=(r instanceof hp?r:Gh(r||Hh)||Kh()).getModel(`time`),v=_.get(`month`),y=_.get(`monthAbbr`),b=_.get(`dayOfWeek`),x=_.get(`dayOfWeekAbbr`);return(t||``).replace(/{a}/g,h+``).replace(/{A}/g,g+``).replace(/{yyyy}/g,a+``).replace(/{yy}/g,fg(a%100+``,2)).replace(/{Q}/g,s+``).replace(/{MMMM}/g,v[o-1]).replace(/{MMM}/g,y[o-1]).replace(/{MM}/g,fg(o,2)).replace(/{M}/g,o+``).replace(/{dd}/g,fg(c,2)).replace(/{d}/g,c+``).replace(/{eeee}/g,b[l]).replace(/{ee}/g,x[l]).replace(/{e}/g,l+``).replace(/{HH}/g,fg(u,2)).replace(/{H}/g,u+``).replace(/{hh}/g,fg(d+``,2)).replace(/{h}/g,d+``).replace(/{mm}/g,fg(f,2)).replace(/{m}/g,f+``).replace(/{ss}/g,fg(p,2)).replace(/{s}/g,p+``).replace(/{SSS}/g,fg(m,3)).replace(/{S}/g,m+``)}function _g(e,t,n,r,i){var a=null;if(V(n))a=n;else if(me(n)){var o={time:e.time,level:e.time?e.time.level:0},s=Jh();s&&s.makeAxisLabelFormatterParamBreak(o,e.break),a=n(e.value,t,o)}else{var c=e.time;if(c){var l=n[c.lowerTimeUnit][c.upperTimeUnit];a=l[Math.min(c.level,l.length-1)]||``}else{var u=vg(e.value,i);a=n[u][u][0]}}return gg(new Date(e.value),a,i,r)}function vg(e,t){var n=Ls(e),r=n[xg(t)]()+1,i=n[Sg(t)](),a=n[Cg(t)](),o=n[wg(t)](),s=n[Tg(t)](),c=n[Eg(t)]()===0,l=c&&s===0,u=l&&o===0,d=u&&a===0,f=d&&i===1;return f&&r===1?`year`:f?`month`:d?`day`:u?`hour`:l?`minute`:c?`second`:`millisecond`}function yg(e,t,n){switch(t){case`year`:e[Og(n)](0);case`month`:e[kg(n)](1);case`day`:e[Ag(n)](0);case`hour`:e[jg(n)](0);case`minute`:e[Mg(n)](0);case`second`:e[Ng(n)](0)}return e}function bg(e){return e?`getUTCFullYear`:`getFullYear`}function xg(e){return e?`getUTCMonth`:`getMonth`}function Sg(e){return e?`getUTCDate`:`getDate`}function Cg(e){return e?`getUTCHours`:`getHours`}function wg(e){return e?`getUTCMinutes`:`getMinutes`}function Tg(e){return e?`getUTCSeconds`:`getSeconds`}function Eg(e){return e?`getUTCMilliseconds`:`getMilliseconds`}function Dg(e){return e?`setUTCFullYear`:`setFullYear`}function Og(e){return e?`setUTCMonth`:`setMonth`}function kg(e){return e?`setUTCDate`:`setDate`}function Ag(e){return e?`setUTCHours`:`setHours`}function jg(e){return e?`setUTCMinutes`:`setMinutes`}function Mg(e){return e?`setUTCSeconds`:`setSeconds`}function Ng(e){return e?`setUTCMilliseconds`:`setMilliseconds`}function Pg(e){if(!Us(e))return V(e)?e:`-`;var t=(e+``).split(`.`);return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,`$1,`)+(t.length>1?`.`+t[1]:``)}function Fg(e,t){return e=(e||``).toLowerCase().replace(/-(.)/g,function(e,t){return t.toUpperCase()}),t&&e&&(e=e.charAt(0).toUpperCase()+e.slice(1)),e}var Ig=Ee;function Lg(e,t,n){var r=`{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}`;function i(e){return e&&Oe(e)?e:`-`}function a(e){return qs(e)}var o=t===`time`,s=e instanceof Date;if(o||s){var c=o?Ls(e):e;if(!isNaN(+c))return gg(c,r,n);if(s)return`-`}if(t===`ordinal`)return he(e)?i(e):ge(e)&&a(e)?e+``:`-`;var l=Hs(e);return a(l)?Pg(l):he(e)?i(e):typeof e==`boolean`?e+``:`-`}var Rg=[`a`,`b`,`c`,`d`,`e`,`f`,`g`],zg=function(e,t){return`{`+e+(t??``)+`}`};function Bg(e,t,n){B(t)||(t=[t]);var r=t.length;if(!r)return``;for(var i=t[0].$vars||[],a=0;a`:``:{renderMode:a,content:`{`+(n.markerId||`markerX`)+`|} `,style:i===`subItem`?{width:4,height:4,borderRadius:2,backgroundColor:r}:{width:10,height:10,borderRadius:5,backgroundColor:r}}:``}function Hg(e,t){return t||=`transparent`,V(e)?e:H(e)&&e.colorStops&&(e.colorStops[0]||{}).color||t}var Ug=R,Wg=[`left`,`right`,`top`,`bottom`,`width`,`height`],Gg=[[`width`,`left`,`right`],[`height`,`top`,`bottom`]];function Kg(e,t,n,r,i){var a=0,o=0;r??=1/0,i??=1/0;var s=0;t.eachChild(function(c,l){var u=c.getBoundingRect(),d=t.childAt(l+1),f=d&&d.getBoundingRect(),p,m;if(e===`horizontal`){var h=u.width+(f?-f.x+u.x:0);p=a+h,p>r||c.newline?(a=0,p=h,o+=s+n,s=u.height):s=Math.max(s,u.height)}else{var g=u.height+(f?-f.y+u.y:0);m=o+g,m>i||c.newline?(a+=s+n,o=0,m=g,s=u.width):s=Math.max(s,u.width)}c.newline||(c.x=a,c.y=o,c.markRedraw(),e===`horizontal`?a=p+n:o=m+n)})}var qg=Kg;pe(Kg,`vertical`),pe(Kg,`horizontal`);function Jg(e,t){return{left:e.getShallow(`left`,t),top:e.getShallow(`top`,t),right:e.getShallow(`right`,t),bottom:e.getShallow(`bottom`,t),width:e.getShallow(`width`,t),height:e.getShallow(`height`,t)}}function Yg(e,t,n){n=Ig(n||0);var r=t.width,i=t.height,a=Cs(e.left,r),o=Cs(e.top,i),s=Cs(e.right,r),c=Cs(e.bottom,i),l=Cs(e.width,r),u=Cs(e.height,i),d=n[2]+n[0],f=n[1]+n[3],p=e.aspect;switch(isNaN(l)&&(l=r-s-f-a),isNaN(u)&&(u=i-c-d-o),p!=null&&(isNaN(l)&&isNaN(u)&&(p>r/i?l=r*.8:u=i*.8),isNaN(l)&&(l=p*u),isNaN(u)&&(u=l/p)),isNaN(a)&&(a=r-s-l-f),isNaN(o)&&(o=i-c-u-d),e.left||e.right){case`center`:a=r/2-l/2-n[3];break;case`right`:a=r-l-f}switch(e.top||e.bottom){case`middle`:case`center`:o=i/2-u/2-n[0];break;case`bottom`:o=i-u-d}a||=0,o||=0,isNaN(l)&&(l=r-f-a-(s||0)),isNaN(u)&&(u=i-d-o-(c||0));var m=new en((t.x||0)+a+n[3],(t.y||0)+o+n[0],l,u);return m.margin=n,m}var Xg={rect:1,point:2};function Zg(e,t,n){var r,i,a,o=e.boxCoordinateSystem,s;if(o){var c=eh(e),l=c.coord,u=c.from;if(o.dataToLayout){a=Xg.rect,s=u;var d=o.dataToLayout(l);r=d.contentRect||d.rect}else n&&n.enableLayoutOnlyByCenter&&o.dataToPoint&&(a=Xg.point,s=u,i=o.dataToPoint(l))}return a??=Xg.rect,a===Xg.rect&&(r||={x:0,y:0,width:t.getWidth(),height:t.getHeight()},i=[r.x+r.width/2,r.y+r.height/2]),{type:a,refContainer:r,refPoint:i,boxCoordFrom:s}}function eee(e,t,n,r,i,a){var o=!i||!i.hv||i.hv[0],s=!i||!i.hv||i.hv[1],c=i&&i.boundingMode||`all`;if(a||=e,a.x=e.x,a.y=e.y,!o&&!s)return!1;var l;if(c===`raw`)l=e.type===`group`?new en(0,0,+t.width||0,+t.height||0):e.getBoundingRect();else if(l=e.getBoundingRect(),e.needLocalTransform()){var u=e.getLocalTransform();l=l.clone(),l.applyTransform(u)}var d=Yg(L({width:l.width,height:l.height},t),n,r),f=o?d.x-l.x:0,p=s?d.y-l.y:0;return c===`raw`?(a.x=f,a.y=p):(a.x+=f,a.y+=p),a===e&&e.markRedraw(),!0}function Qg(e){var t=e.layoutMode||e.constructor.layoutMode;return H(t)?t:t?{type:t}:null}function $g(e,t,n){var r=n&&n.ignoreSize;!B(r)&&(r=[r,r]);var i=o(Gg[0],0),a=o(Gg[1],1);c(Gg[0],e,i),c(Gg[1],e,a);function o(n,i){var a={},o=0,c={},l=0,u=2;if(Ug(n,function(t){c[t]=e[t]}),Ug(n,function(e){ze(t,e)&&(a[e]=c[e]=t[e]),s(a,e)&&o++,s(c,e)&&l++}),r[i])return s(t,n[1])?c[n[2]]=null:s(t,n[2])&&(c[n[1]]=null),c;if(l===u||!o)return c;if(o>=u)return a;for(var d=0;d=0;o--)a=F(a,n[o],!0);t.defaultOption=a}return t.defaultOption},t.prototype.getReferringComponents=function(e,t){var n=e+`Index`,r=e+`Id`;return Oc(this.ecModel,e,{index:this.get(n,!0),id:this.get(r,!0)},t)},t.prototype.getBoxLayoutParams=function(){return Jg(this,!1)},t.prototype.getZLevelKey=function(){return``},t.prototype.setZLevel=function(e){this.option.zlevel=e},t.protoInitialize=function(){var e=t.prototype;e.type=`component`,e.id=``,e.name=``,e.mainType=``,e.subType=``,e.componentIndex=0}(),t}(hp);$e(n_,hp),it(n_),vh(n_),yh(n_,r_);function r_(e){var t=[];return R(n_.getClassesByMainType(e),function(e){t=t.concat(e.dependencies||e.prototype.dependencies||[])}),t=z(t,function(e){return Je(e).main}),e!==`dataset`&&re(t,`dataset`)<=0&&t.unshift(`dataset`),t}var i_=Cc(),a_=Cc(),o_=function(){function e(){}return e.prototype.getColorFromPalette=function(e,t,n){var r=nc(this.get(`color`,!0)),i=this.get(`colorLayer`,!0);return l_(this,i_,r,i,e,t,n)},e.prototype.clearColorPalette=function(){u_(this,i_)},e}();function s_(e,t,n,r){return l_(e,a_,nc(e.get([`aria`,`decal`,`decals`])),null,t,n,r)}function c_(e,t){for(var n=e.length,r=0;rt)return e[r];return e[n-1]}function l_(e,t,n,r,i,a,o){a||=e;var s=t(a),c=s.paletteIdx||0,l=s.paletteNameMap=s.paletteNameMap||{};if(l.hasOwnProperty(i))return l[i];var u=o==null||!r?n:c_(r,o);if(u||=n,!(!u||!u.length)){var d=u[c];return i&&(l[i]=d),s.paletteIdx=(c+1)%u.length,d}}function u_(e,t){t(e).paletteIdx=0,t(e).paletteNameMap={}}var d_=/\{@(.+?)\}/g,f_=function(){function e(){}return e.prototype.getDataParams=function(e,t){var n=this.getData(t),r=this.getRawValue(e,t),i=n.getRawIndex(e),a=n.getName(e),o=n.getRawDataItem(e),s=n.getItemVisual(e,`style`),c=s&&s[n.getItemVisual(e,`drawType`)||`fill`],l=s&&s.stroke,u=this.mainType,d=u===`series`,f=n.userOutput&&n.userOutput.get();return{componentType:u,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:d?this.subType:null,seriesIndex:this.seriesIndex,seriesId:d?this.id:null,seriesName:d?this.name:null,name:a,dataIndex:i,data:o,dataType:t,value:r,color:c,borderColor:l,dimensionNames:f?f.fullDimensions:null,encode:f?f.encode:null,$vars:[`seriesName`,`name`,`value`]}},e.prototype.getFormattedLabel=function(e,t,n,r,i,a){t||=`normal`;var o=this.getData(n),s=this.getDataParams(e,n);if(a&&(s.value=a.interpolatedValue),r!=null&&B(s.value)&&(s.value=s.value[r]),i||=o.getItemModel(e).get(t===`normal`?[`label`,`formatter`]:[t,`label`,`formatter`]),me(i))return s.status=t,s.dimensionIndex=r,i(s);if(V(i))return Bg(i,s).replace(d_,function(t,n){var r=n.length,i=n;i.charAt(0)===`[`&&i.charAt(r-1)===`]`&&(i=+i.slice(1,r-1));var s=nm(o,e,i);if(a&&B(a.interpolatedValue)){var c=o.getDimensionIndex(i);c>=0&&(s=a.interpolatedValue[c])}return s==null?``:s+``})},e.prototype.getRawValue=function(e,t){return nm(this.getData(t),e)},e.prototype.formatTooltip=function(e,t,n){},e}();function p_(e){var t,n;return H(e)?e.type&&(n=e):t=e,{text:t,frag:n}}function m_(e){return new h_(e)}var h_=function(){function e(e){e||={},this._reset=e.reset,this._plan=e.plan,this._count=e.count,this._onDirty=e.onDirty,this._dirty=!0}return e.prototype.perform=function(e){var t=this._upstream,n=e&&e.skip;if(this._dirty&&t){var r=this.context;r.data=r.outputData=t.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var i;this._plan&&!n&&(i=this._plan(this.context));var a=l(this._modBy),o=this._modDataCount||0,s=l(e&&e.modBy),c=e&&e.modDataCount||0;(a!==s||o!==c)&&(i=`reset`);function l(e){return!(e>=1)&&(e=1),e}var u;(this._dirty||i===`reset`)&&(this._dirty=!1,u=this._doReset(n)),this._modBy=s,this._modDataCount=c;var d=e&&e.step;if(this._dueEnd=t?t._outputDueEnd:this._count?this._count(this.context):1/0,this._progress){var f=this._dueIndex,p=Math.min(d==null?1/0:this._dueIndex+d,this._dueEnd);if(!n&&(u||f1&&r>0?s:o}};return a;function o(){return t=e?null:a9e10&&(this._versionSignBase=0)},e.prototype._getVersionSign=function(){return this._sourceHost.uid+`_`+this._versionSignBase},e.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},e.prototype._createSource=function(){this._setLocalSource([],[]);var e=this._sourceHost,t=this._getUpstreamSourceManagers(),n=!!t.length,r,i;if(O_(e)){var a=e,o=void 0,s=void 0,c=void 0;if(n){var l=t[0];l.prepareSource(),c=l.getSource(),o=c.data,s=c.sourceFormat,i=[l._getVersionSign()]}else o=a.get(`data`,!0),s=ve(o)?rl:$c,i=[];var u=this._getSourceMetaRawOption()||{},d=c&&c.metaRawOption||{},f=Ce(u.seriesLayoutBy,d.seriesLayoutBy)||null,p=Ce(u.sourceHeader,d.sourceHeader),m=Ce(u.dimensions,d.dimensions);r=f!==d.seriesLayoutBy||!!p!=!!d.sourceHeader||m?[kp(o,{seriesLayoutBy:f,sourceHeader:p,dimensions:m},s)]:[]}else{var h=e;if(n){var g=this._applyTransform(t);r=g.sourceList,i=g.upstreamSignList}else r=[kp(h.get(`source`,!0),this._getSourceMetaRawOption(),null)],i=[]}this._setLocalSource(r,i)},e.prototype._applyTransform=function(e){var t=this._sourceHost,n=t.get(`transform`,!0),r=t.get(`fromTransformResult`,!0);r!=null&&e.length!==1&&k_(``);var i,a=[],o=[];return R(e,function(e){e.prepareSource();var t=e.getSource(r||0);r!=null&&!t&&k_(``),a.push(t),o.push(e._getVersionSign())}),n?i=w_(n,a,{datasetIndex:t.componentIndex}):r!=null&&(i=[jp(a[0])]),{sourceList:i,upstreamSignList:o}},e.prototype._isDirty=function(){if(this._dirty)return!0;for(var e=this._getUpstreamSourceManagers(),t=0;tn:i+u+m>n){u?(s||c)&&(h?(s||(s=c,c=``,l=0,u=l),a.push(s),o.push(u-l),c+=p,l+=m,s=``,u=l):(c&&(s+=c,c=``,l=0),a.push(s),o.push(u),s=p,u=m)):h?(a.push(c),o.push(l),c=p,l=m):(a.push(p),o.push(m));continue}u+=m,h?(c+=p,l+=m):(c&&(s+=c,c=``,l=0),s+=p)}return c&&(s+=c),s&&(a.push(s),o.push(u)),a.length===1&&(u+=i),{accumWidth:u,lines:a,linesWidths:o}}function zn(e,t,n,r,i,a){if(e.baseX=n,e.baseY=r,e.outerWidth=e.outerHeight=null,t){var o=t.width*2,s=t.height*2;en.set(Bn,yn(n,o,i),bn(r,s,a),o,s),en.intersect(t,Bn,null,Vn);var c=Vn.outIntersectRect;e.outerWidth=c.width,e.outerHeight=c.height,e.baseX=yn(c.x,c.width,i,!0),e.baseY=bn(c.y,c.height,a,!0)}}var Bn=new en(0,0,0,0),Vn={outIntersectRect:{},clamp:!0};function Hn(e){return e==null?e=``:e+=``}function Un(e){var t=Hn(e.text),n=e.font;return Wn(e,gn(un(n),t),xn(n),null)}function Wn(e,t,n,r){var i=new en(yn(e.x||0,t,e.textAlign),bn(e.y||0,n,e.textBaseline),t,n),a=r??(Gn(e)?e.lineWidth:0);return a>0&&(i.x-=a/2,i.y-=a/2,i.width+=a,i.height+=a),i}function Gn(e){var t=e.stroke;return t!=null&&t!==`none`&&e.lineWidth>0}var Kn=_t,qn=5e-5;function Jn(e){return e>qn||e<-qn}var Yn=[],Xn=[],Zn=gt(),Qn=Math.abs,$n=function(){function e(){}return e.prototype.getLocalTransform=function(e){return er(this,e)},e.prototype.setPosition=function(e){this.x=e[0],this.y=e[1]},e.prototype.setScale=function(e){this.scaleX=e[0],this.scaleY=e[1]},e.prototype.setSkew=function(e){this.skewX=e[0],this.skewY=e[1]},e.prototype.setOrigin=function(e){this.originX=e[0],this.originY=e[1]},e.prototype.needLocalTransform=function(){return Jn(this.rotation)||Jn(this.x)||Jn(this.y)||Jn(this.scaleX-1)||Jn(this.scaleY-1)||Jn(this.skewX)||Jn(this.skewY)},e.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,t=this.needLocalTransform(),n=this.transform;if(!(t||e)){n&&(Kn(n),this.invTransform=null);return}n||=gt(),t?this.getLocalTransform(n):Kn(n),e&&(t?yt(n,e,n):vt(n,e)),this.transform=n,this._resolveGlobalScaleRatio(n),this.invTransform=this.invTransform||gt(),Ct(this.invTransform,n)},e.prototype._resolveGlobalScaleRatio=function(e){var t=this.globalScaleRatio;if(t!=null&&t!==1){this.getGlobalScale(Yn);var n=Yn[0]<0?-1:1,r=Yn[1]<0?-1:1,i=((Yn[0]-n)*t+n)/Yn[0]||0,a=((Yn[1]-r)*t+r)/Yn[1]||0;e[0]*=i,e[1]*=i,e[2]*=a,e[3]*=a}},e.prototype.getComputedTransform=function(){for(var e=this,t=[];e;)t.push(e),e=e.parent;for(;e=t.pop();)e.updateTransform();return this.transform},e.prototype.setLocalTransform=function(e){if(e){var t=e[0]*e[0]+e[1]*e[1],n=e[2]*e[2]+e[3]*e[3],r=Math.atan2(e[1],e[0]),i=Math.PI/2+r-Math.atan2(e[3],e[2]);n=Math.sqrt(n)*Math.cos(i),t=Math.sqrt(t),this.skewX=i,this.skewY=0,this.rotation=-r,this.x=+e[4],this.y=+e[5],this.scaleX=t,this.scaleY=n,this.originX=0,this.originY=0}},e.prototype.decomposeTransform=function(){if(this.transform){var e=this.parent,t=this.transform;e&&e.transform&&(e.invTransform=e.invTransform||gt(),yt(Xn,e.invTransform,t),t=Xn);var n=this.originX,r=this.originY;(n||r)&&(Zn[4]=n,Zn[5]=r,yt(Xn,t,Zn),Xn[4]-=n,Xn[5]-=r,t=Xn),this.setLocalTransform(t)}},e.prototype.getGlobalScale=function(e){var t=this.transform;return e||=[],t?(e[0]=Math.sqrt(t[0]*t[0]+t[1]*t[1]),e[1]=Math.sqrt(t[2]*t[2]+t[3]*t[3]),t[0]<0&&(e[0]=-e[0]),t[3]<0&&(e[1]=-e[1]),e):(e[0]=1,e[1]=1,e)},e.prototype.transformCoordToLocal=function(e,t){var n=[e,t],r=this.invTransform;return r&&Lt(n,n,r),n},e.prototype.transformCoordToGlobal=function(e,t){var n=[e,t],r=this.transform;return r&&Lt(n,n,r),n},e.prototype.getLineScale=function(){var e=this.transform;return e&&Qn(e[0]-1)>1e-10&&Qn(e[3]-1)>1e-10?Math.sqrt(Qn(e[0]*e[3]-e[2]*e[1])):1},e.prototype.copyTransform=function(e){nr(this,e)},e.getLocalTransform=function(e,t){t||=[];var n=e.originX||0,r=e.originY||0,i=e.scaleX,a=e.scaleY,o=e.anchorX,s=e.anchorY,c=e.rotation||0,l=e.x,u=e.y,d=e.skewX?Math.tan(e.skewX):0,f=e.skewY?Math.tan(-e.skewY):0;if(n||r||o||s){var p=n+o,m=r+s;t[4]=-p*i-d*m*a,t[5]=-m*a-f*p*i}else t[4]=t[5]=0;return t[0]=i,t[3]=a,t[1]=f*i,t[2]=d*a,c&&xt(t,t,c),t[4]+=n+l,t[5]+=r+u,t},e.initDefaultProps=(function(){var t=e.prototype;t.scaleX=t.scaleY=t.globalScaleRatio=1,t.x=t.y=t.originX=t.originY=t.skewX=t.skewY=t.rotation=t.anchorX=t.anchorY=0})(),e}(),er=$n.getLocalTransform,tr=[`x`,`y`,`originX`,`originY`,`anchorX`,`anchorY`,`rotation`,`scaleX`,`scaleY`,`skewX`,`skewY`];function nr(e,t){return ne(e,t,tr)}var rr={linear:function(e){return e},quadraticIn:function(e){return e*e},quadraticOut:function(e){return e*(2-e)},quadraticInOut:function(e){return(e*=2)<1?.5*e*e:-.5*(--e*(e-2)-1)},cubicIn:function(e){return e*e*e},cubicOut:function(e){return--e*e*e+1},cubicInOut:function(e){return(e*=2)<1?.5*e*e*e:.5*((e-=2)*e*e+2)},quarticIn:function(e){return e*e*e*e},quarticOut:function(e){return 1- --e*e*e*e},quarticInOut:function(e){return(e*=2)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)},quinticIn:function(e){return e*e*e*e*e},quinticOut:function(e){return--e*e*e*e*e+1},quinticInOut:function(e){return(e*=2)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)},sinusoidalIn:function(e){return 1-Math.cos(e*Math.PI/2)},sinusoidalOut:function(e){return Math.sin(e*Math.PI/2)},sinusoidalInOut:function(e){return .5*(1-Math.cos(Math.PI*e))},exponentialIn:function(e){return e===0?0:1024**(e-1)},exponentialOut:function(e){return e===1?1:1-2**(-10*e)},exponentialInOut:function(e){return e===0?0:e===1?1:(e*=2)<1?.5*1024**(e-1):.5*(-(2**(-10*(e-1)))+2)},circularIn:function(e){return 1-Math.sqrt(1-e*e)},circularOut:function(e){return Math.sqrt(1- --e*e)},circularInOut:function(e){return(e*=2)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},elasticIn:function(e){var t,n=.1,r=.4;return e===0?0:e===1?1:(!n||n<1?(n=1,t=r/4):t=r*Math.asin(1/n)/(2*Math.PI),-(n*2**(10*--e)*Math.sin((e-t)*(2*Math.PI)/r)))},elasticOut:function(e){var t,n=.1,r=.4;return e===0?0:e===1?1:(!n||n<1?(n=1,t=r/4):t=r*Math.asin(1/n)/(2*Math.PI),n*2**(-10*e)*Math.sin((e-t)*(2*Math.PI)/r)+1)},elasticInOut:function(e){var t,n=.1,r=.4;return e===0?0:e===1?1:(!n||n<1?(n=1,t=r/4):t=r*Math.asin(1/n)/(2*Math.PI),(e*=2)<1?-.5*(n*2**(10*--e)*Math.sin((e-t)*(2*Math.PI)/r)):n*2**(-10*--e)*Math.sin((e-t)*(2*Math.PI)/r)*.5+1)},backIn:function(e){var t=1.70158;return e*e*((t+1)*e-t)},backOut:function(e){var t=1.70158;return--e*e*((t+1)*e+t)+1},backInOut:function(e){var t=2.5949095;return(e*=2)<1?.5*(e*e*((t+1)*e-t)):.5*((e-=2)*e*((t+1)*e+t)+2)},bounceIn:function(e){return 1-rr.bounceOut(1-e)},bounceOut:function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},bounceInOut:function(e){return e<.5?rr.bounceIn(e*2)*.5:rr.bounceOut(e*2-1)*.5+.5}},ir=Math.pow,ar=Math.sqrt,or=1e-8,sr=1e-4,cr=ar(3),lr=1/3,ur=wt(),dr=wt(),fr=wt();function pr(e){return e>-or&&eor||e<-or}function hr(e,t,n,r,i){var a=1-i;return a*a*(a*e+3*i*t)+i*i*(i*r+3*a*n)}function gr(e,t,n,r,i){var a=1-i;return 3*(((t-e)*a+2*(n-t)*i)*a+(r-n)*i*i)}function _r(e,t,n,r,i,a){var o=r+3*(t-n)-e,s=3*(n-t*2+e),c=3*(t-e),l=e-i,u=s*s-3*o*c,d=s*c-9*o*l,f=c*c-3*s*l,p=0;if(pr(u)&&pr(d))if(pr(s))a[0]=0;else{var m=-c/s;m>=0&&m<=1&&(a[p++]=m)}else{var h=d*d-4*u*f;if(pr(h)){var g=d/u,m=-s/o+g,_=-g/2;m>=0&&m<=1&&(a[p++]=m),_>=0&&_<=1&&(a[p++]=_)}else if(h>0){var v=ar(h),y=u*s+1.5*o*(-d+v),b=u*s+1.5*o*(-d-v);y=y<0?-ir(-y,lr):ir(y,lr),b=b<0?-ir(-b,lr):ir(b,lr);var m=(-s-(y+b))/(3*o);m>=0&&m<=1&&(a[p++]=m)}else{var x=(2*u*s-3*o*d)/(2*ar(u*u*u)),S=Math.acos(x)/3,C=ar(u),w=Math.cos(S),m=(-s-2*C*w)/(3*o),_=(-s+C*(w+cr*Math.sin(S)))/(3*o),T=(-s+C*(w-cr*Math.sin(S)))/(3*o);m>=0&&m<=1&&(a[p++]=m),_>=0&&_<=1&&(a[p++]=_),T>=0&&T<=1&&(a[p++]=T)}}return p}function vr(e,t,n,r,i){var a=6*n-12*t+6*e,o=9*t+3*r-3*e-9*n,s=3*t-3*e,c=0;if(pr(o)){if(mr(a)){var l=-s/a;l>=0&&l<=1&&(i[c++]=l)}}else{var u=a*a-4*o*s;if(pr(u))i[0]=-a/(2*o);else if(u>0){var d=ar(u),l=(-a+d)/(2*o),f=(-a-d)/(2*o);l>=0&&l<=1&&(i[c++]=l),f>=0&&f<=1&&(i[c++]=f)}}return c}function yr(e,t,n,r,i,a){var o=(t-e)*i+e,s=(n-t)*i+t,c=(r-n)*i+n,l=(s-o)*i+o,u=(c-s)*i+s,d=(u-l)*i+l;a[0]=e,a[1]=o,a[2]=l,a[3]=d,a[4]=d,a[5]=u,a[6]=c,a[7]=r}function br(e,t,n,r,i,a,o,s,c,l,u){var d,f=.005,p=1/0,m,h,g,_;ur[0]=c,ur[1]=l;for(var v=0;v<1;v+=.05)dr[0]=hr(e,n,i,o,v),dr[1]=hr(t,r,a,s,v),g=It(ur,dr),g=0&&g=0&&l<=1&&(i[c++]=l)}}else{var u=o*o-4*a*s;if(pr(u)){var l=-o/(2*a);l>=0&&l<=1&&(i[c++]=l)}else if(u>0){var d=ar(u),l=(-o+d)/(2*a),f=(-o-d)/(2*a);l>=0&&l<=1&&(i[c++]=l),f>=0&&f<=1&&(i[c++]=f)}}return c}function Tr(e,t,n){var r=e+n-2*t;return r===0?.5:(e-t)/r}function Er(e,t,n,r,i){var a=(t-e)*r+e,o=(n-t)*r+t,s=(o-a)*r+a;i[0]=e,i[1]=a,i[2]=s,i[3]=s,i[4]=o,i[5]=n}function Dr(e,t,n,r,i,a,o,s,c){var l,u=.005,d=1/0;ur[0]=o,ur[1]=s;for(var f=0;f<1;f+=.05){dr[0]=Sr(e,n,i,f),dr[1]=Sr(t,r,a,f);var p=It(ur,dr);p=0&&p=1?1:_r(0,r,a,1,e,s)&&hr(0,i,o,1,s[0])}}}var jr=function(){function e(e){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=e.life||1e3,this._delay=e.delay||0,this.loop=e.loop||!1,this.onframe=e.onframe||Be,this.ondestroy=e.ondestroy||Be,this.onrestart=e.onrestart||Be,e.easing&&this.setEasing(e.easing)}return e.prototype.step=function(e,t){if(this._inited||=(this._startTime=e+this._delay,!0),this._paused){this._pausedTime+=t;return}var n=this._life,r=e-this._startTime-this._pausedTime,i=r/n;i<0&&(i=0),i=Math.min(i,1);var a=this.easingFunc,o=a?a(i):i;if(this.onframe(o),i===1)if(this.loop){var s=r%n;this._startTime=e-s,this._pausedTime=0,this.onrestart()}else return!0;return!1},e.prototype.pause=function(){this._paused=!0},e.prototype.resume=function(){this._paused=!1},e.prototype.setEasing=function(e){this.easing=e,this.easingFunc=me(e)?e:rr[e]||Ar(e)},e}(),Mr={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function Nr(e){return e=Math.round(e),e<0?0:e>255?255:e}function Pr(e){return e=Math.round(e),e<0?0:e>360?360:e}function Fr(e){return e<0?0:e>1?1:e}function Ir(e){var t=e;return t.length&&t.charAt(t.length-1)===`%`?Nr(parseFloat(t)/100*255):Nr(parseInt(t,10))}function Lr(e){var t=e;return t.length&&t.charAt(t.length-1)===`%`?Fr(parseFloat(t)/100):Fr(parseFloat(t))}function Rr(e,t,n){return n<0?n+=1:n>1&&--n,n*6<1?e+(t-e)*n*6:n*2<1?t:n*3<2?e+(t-e)*(2/3-n)*6:e}function zr(e,t,n){return e+(t-e)*n}function Br(e,t,n,r,i){return e[0]=t,e[1]=n,e[2]=r,e[3]=i,e}function Vr(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var Hr=new ut(20),Ur=null;function Wr(e,t){Ur&&Vr(Ur,t),Ur=Hr.put(e,Ur||t.slice())}function Gr(e,t){if(e){t||=[];var n=Hr.get(e);if(n)return Vr(t,n);e+=``;var r=e.replace(/ /g,``).toLowerCase();if(r in Mr)return Vr(t,Mr[r]),Wr(e,t),t;var i=r.length;if(r.charAt(0)===`#`){if(i===4||i===5){var a=parseInt(r.slice(1,4),16);if(!(a>=0&&a<=4095)){Br(t,0,0,0,1);return}return Br(t,(a&3840)>>4|(a&3840)>>8,a&240|(a&240)>>4,a&15|(a&15)<<4,i===5?parseInt(r.slice(4),16)/15:1),Wr(e,t),t}if(i===7||i===9){var a=parseInt(r.slice(1,7),16);if(!(a>=0&&a<=16777215)){Br(t,0,0,0,1);return}return Br(t,(a&16711680)>>16,(a&65280)>>8,a&255,i===9?parseInt(r.slice(7),16)/255:1),Wr(e,t),t}return}var o=r.indexOf(`(`),s=r.indexOf(`)`);if(o!==-1&&s+1===i){var c=r.substr(0,o),l=r.substr(o+1,s-(o+1)).split(`,`),u=1;switch(c){case`rgba`:if(l.length!==4)return l.length===3?Br(t,+l[0],+l[1],+l[2],1):Br(t,0,0,0,1);u=Lr(l.pop());case`rgb`:if(l.length>=3)return Br(t,Ir(l[0]),Ir(l[1]),Ir(l[2]),l.length===3?u:Lr(l[3])),Wr(e,t),t;Br(t,0,0,0,1);return;case`hsla`:if(l.length!==4){Br(t,0,0,0,1);return}return l[3]=Lr(l[3]),Kr(l,t),Wr(e,t),t;case`hsl`:if(l.length!==3){Br(t,0,0,0,1);return}return Kr(l,t),Wr(e,t),t;default:return}}Br(t,0,0,0,1)}}function Kr(e,t){var n=(parseFloat(e[0])%360+360)%360/360,r=Lr(e[1]),i=Lr(e[2]),a=i<=.5?i*(r+1):i+r-i*r,o=i*2-a;return t||=[],Br(t,Nr(Rr(o,a,n+1/3)*255),Nr(Rr(o,a,n)*255),Nr(Rr(o,a,n-1/3)*255),1),e.length===4&&(t[3]=e[3]),t}function qr(e){if(e){var t=e[0]/255,n=e[1]/255,r=e[2]/255,i=Math.min(t,n,r),a=Math.max(t,n,r),o=a-i,s=(a+i)/2,c,l;if(o===0)c=0,l=0;else{l=s<.5?o/(a+i):o/(2-a-i);var u=((a-t)/6+o/2)/o,d=((a-n)/6+o/2)/o,f=((a-r)/6+o/2)/o;t===a?c=f-d:n===a?c=1/3+u-f:r===a&&(c=2/3+d-u),c<0&&(c+=1),c>1&&--c}var p=[c*360,l,s];return e[3]!=null&&p.push(e[3]),p}}function Jr(e,t){var n=Gr(e);if(n){for(var r=0;r<3;r++)t<0?n[r]=n[r]*(1-t)|0:n[r]=(255-n[r])*t+n[r]|0,n[r]>255?n[r]=255:n[r]<0&&(n[r]=0);return Qr(n,n.length===4?`rgba`:`rgb`)}}function Yr(e,t,n){if(!(!(t&&t.length)||!(e>=0&&e<=1))){n||=[];var r=e*(t.length-1),i=Math.floor(r),a=Math.ceil(r),o=t[i],s=t[a],c=r-i;return n[0]=Nr(zr(o[0],s[0],c)),n[1]=Nr(zr(o[1],s[1],c)),n[2]=Nr(zr(o[2],s[2],c)),n[3]=Fr(zr(o[3],s[3],c)),n}}function Xr(e,t,n,r){var i=Gr(e);if(e)return i=qr(i),t!=null&&(i[0]=Pr(me(t)?t(i[0]):t)),n!=null&&(i[1]=Lr(me(n)?n(i[1]):n)),r!=null&&(i[2]=Lr(me(r)?r(i[2]):r)),Qr(Kr(i),`rgba`)}function Zr(e,t){var n=Gr(e);if(n&&t!=null)return n[3]=Fr(t),Qr(n,`rgba`)}function Qr(e,t){if(!(!e||!e.length)){var n=e[0]+`,`+e[1]+`,`+e[2];return(t===`rgba`||t===`hsva`||t===`hsla`)&&(n+=`,`+e[3]),t+`(`+n+`)`}}function $r(e,t){var n=Gr(e);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*t:0}var ei=new ut(100);function ti(e){if(V(e)){var t=ei.get(e);return t||(t=Jr(e,-.1),ei.put(e,t)),t}if(be(e)){var n=I({},e);return n.colorStops=z(e.colorStops,function(e){return{offset:e.offset,color:Jr(e.color,-.1)}}),n}return e}var ni=Math.round;function ri(e){var t;if(!e||e===`transparent`)e=`none`;else if(typeof e==`string`&&e.indexOf(`rgba`)>-1){var n=Gr(e);n&&(e=`rgb(`+n[0]+`,`+n[1]+`,`+n[2]+`)`,t=n[3])}return{color:e,opacity:t??1}}var ii=1e-4;function ai(e){return e-ii}function oi(e){return ni(e*1e3)/1e3}function si(e){return ni(e*1e4)/1e4}function ci(e){return`matrix(`+oi(e[0])+`,`+oi(e[1])+`,`+oi(e[2])+`,`+oi(e[3])+`,`+si(e[4])+`,`+si(e[5])+`)`}var li={left:`start`,right:`end`,center:`middle`,middle:`middle`};function ui(e,t,n){return n===`top`?e+=t/2:n===`bottom`&&(e-=t/2),e}function di(e){return e&&(e.shadowBlur||e.shadowOffsetX||e.shadowOffsetY)}function fi(e){var t=e.style,n=e.getGlobalScale();return[t.shadowColor,(t.shadowBlur||0).toFixed(2),(t.shadowOffsetX||0).toFixed(2),(t.shadowOffsetY||0).toFixed(2),n[0],n[1]].join(`,`)}function pi(e){return e&&!!e.image}function mi(e){return e&&!!e.svgElement}function hi(e){return pi(e)||mi(e)}function gi(e){return e.type===`linear`}function _i(e){return e.type===`radial`}function vi(e){return e&&(e.type===`linear`||e.type===`radial`)}function yi(e){return`url(#`+e+`)`}function bi(e){var t=e.getGlobalScale(),n=Math.max(t[0],t[1]);return Math.max(Math.ceil(Math.log(n)/Math.log(10)),1)}function xi(e){var t=e.x||0,n=e.y||0,r=(e.rotation||0)*Ve,i=Ce(e.scaleX,1),a=Ce(e.scaleY,1),o=e.skewX||0,s=e.skewY||0,c=[];return(t||n)&&c.push(`translate(`+t+`px,`+n+`px)`),r&&c.push(`rotate(`+r+`)`),(i!==1||a!==1)&&c.push(`scale(`+i+`,`+a+`)`),(o||s)&&c.push(`skew(`+ni(o*Ve)+`deg, `+ni(s*Ve)+`deg)`),c.join(` `)}var Si=(function(){return typeof Buffer<`u`&&typeof Buffer.from==`function`?function(e){return Buffer.from(e).toString(`base64`)}:typeof btoa==`function`&&typeof unescape==`function`&&typeof encodeURIComponent==`function`?function(e){return btoa(unescape(encodeURIComponent(e)))}:function(e){return null}})(),Ci=Array.prototype.slice;function wi(e,t,n){return(t-e)*n+e}function Ti(e,t,n,r){for(var i=t.length,a=0;ar?t:e,a=Math.min(n,r),o=i[a-1]||{color:[0,0,0,0],offset:0},s=a;so)r.length=o;else for(var s=a;s=1},e.prototype.getAdditiveTrack=function(){return this._additiveTrack},e.prototype.addKeyframe=function(e,t,n){this._needsSort=!0;var r=this.keyframes,i=r.length,a=!1,o=Bi,s=t;if(oe(t)){var c=Ni(t);o=c,(c===1&&!ge(t[0])||c===2&&!ge(t[0][0]))&&(a=!0)}else if(ge(t)&&!xe(t))o=Pi;else if(V(t))if(!isNaN(+t))o=Pi;else{var l=Gr(t);l&&(s=l,o=Li)}else if(be(t)){var u=I({},s);u.colorStops=z(t.colorStops,function(e){return{offset:e.offset,color:Gr(e.color)}}),gi(t)?o=Ri:_i(t)&&(o=zi),s=u}i===0?this.valType=o:(o!==this.valType||o===Bi)&&(a=!0),this.discrete=this.discrete||a;var d={time:e,value:s,rawValue:t,percent:0};return n&&(d.easing=n,d.easingFunc=me(n)?n:rr[n]||Ar(n)),r.push(d),d},e.prototype.prepare=function(e,t){var n=this.keyframes;this._needsSort&&n.sort(function(e,t){return e.time-t.time});for(var r=this.valType,i=n.length,a=n[i-1],o=this.discrete,s=Hi(r),c=Vi(r),l=0;l=0&&!(a[l].percent<=t);l--);l=d(l,o-2)}else{for(l=u;lt);l++);l=d(l-1,o-2)}p=a[l+1],f=a[l]}if(f&&p){this._lastFr=l,this._lastFrP=t;var m=p.percent-f.percent,h=m===0?1:d((t-f.percent)/m,1);p.easingFunc&&(h=p.easingFunc(h));var g=n?this._additiveValue:c?Ui:e[s];if((Hi(i)||c)&&!g&&(g=this._additiveValue=[]),this.discrete)e[s]=h<1?f.rawValue:p.rawValue;else if(Hi(i))i===Fi?Ti(g,f[r],p[r],h):Ei(g,f[r],p[r],h);else if(Vi(i)){var _=f[r],v=p[r],y=i===Ri;e[s]={type:y?`linear`:`radial`,x:wi(_.x,v.x,h),y:wi(_.y,v.y,h),colorStops:z(_.colorStops,function(e,t){var n=v.colorStops[t];return{offset:wi(e.offset,n.offset,h),color:Mi(Ti([],e.color,n.color,h))}}),global:v.global},y?(e[s].x2=wi(_.x2,v.x2,h),e[s].y2=wi(_.y2,v.y2,h)):e[s].r=wi(_.r,v.r,h)}else if(c)Ti(g,f[r],p[r],h),n||(e[s]=Mi(g));else{var b=wi(f[r],p[r],h);n?this._additiveValue=b:e[s]=b}n&&this._addToTarget(e)}}},e.prototype._addToTarget=function(e){var t=this.valType,n=this.propName,r=this._additiveValue;t===Pi?e[n]=e[n]+r:t===Li?(Gr(e[n],Ui),Di(Ui,Ui,r,1),e[n]=Mi(Ui)):t===Fi?Di(e[n],e[n],r,1):t===Ii&&Oi(e[n],e[n],r,1)},e}(),Gi=function(){function e(e,t,n,r){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=t,t&&r){te(`Can' use additive animation on looped animation.`);return}this._additiveAnimators=r,this._allowDiscrete=n}return e.prototype.getMaxTime=function(){return this._maxTime},e.prototype.getDelay=function(){return this._delay},e.prototype.getLoop=function(){return this._loop},e.prototype.getTarget=function(){return this._target},e.prototype.changeTarget=function(e){this._target=e},e.prototype.when=function(e,t,n){return this.whenWithKeys(e,t,ue(t),n)},e.prototype.whenWithKeys=function(e,t,n,r){for(var i=this._tracks,a=0;a0&&s.addKeyframe(0,ji(c),r),this._trackKeys.push(o)}s.addKeyframe(e,ji(t[o]),r)}return this._maxTime=Math.max(this._maxTime,e),this},e.prototype.pause=function(){this._clip.pause(),this._paused=!0},e.prototype.resume=function(){this._clip.resume(),this._paused=!1},e.prototype.isPaused=function(){return!!this._paused},e.prototype.duration=function(e){return this._maxTime=e,this._force=!0,this},e.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var e=this._doneCbs;if(e)for(var t=e.length,n=0;n0)){this._started=1;for(var t=this,n=[],r=this._maxTime||0,i=0;i1){var o=a.pop();i.addKeyframe(o.time,e[r]),i.prepare(this._maxTime,i.getAdditiveTrack())}}}},e}(),Ki=function(){function e(e){e&&(this._$eventProcessor=e)}return e.prototype.on=function(e,t,n,r){this._$handlers||={};var i=this._$handlers;if(typeof t==`function`&&(r=n,n=t,t=null),!n||!e)return this;var a=this._$eventProcessor;t!=null&&a&&a.normalizeQuery&&(t=a.normalizeQuery(t)),i[e]||(i[e]=[]);for(var o=0;o=0:n.inside,y=void 0,b=void 0,x=void 0;v&&this.canBeInsideText()?(y=n.insideFill,b=n.insideStroke,(y==null||y===`auto`)&&(y=this.getInsideTextFill()),(b==null||b===`auto`)&&(b=this.getInsideTextStroke(y),x=!0)):(y=n.outsideFill,b=n.outsideStroke,(y==null||y===`auto`)&&(y=this.getOutsideFill()),(b==null||b===`auto`)&&(b=this.getOutsideStroke(y),x=!0)),y||=`#000`,(y!==g.fill||b!==g.stroke||x!==g.autoStroke||a!==g.align||o!==g.verticalAlign)&&(s=!0,g.fill=y,g.stroke=b,g.autoStroke=x,g.align=a,g.verticalAlign=o,t.setDefaultTextStyle(g)),t.__dirty|=1,s&&t.dirtyStyle(!0)}},e.prototype.canBeInsideText=function(){return!0},e.prototype.getInsideTextFill=function(){return`#fff`},e.prototype.getInsideTextStroke=function(e){return`#000`},e.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?Zi:Xi},e.prototype.getOutsideStroke=function(e){var t=this.__zr&&this.__zr.getBackgroundColor(),n=typeof t==`string`&&Gr(t);n||=[255,255,255,1];for(var r=n[3],i=this.__zr.isDarkMode(),a=0;a<3;a++)n[a]=n[a]*r+(i?0:255)*(1-r);return n[3]=1,Qr(n,`rgba`)},e.prototype.traverse=function(e,t){},e.prototype.attrKV=function(e,t){e===`textConfig`?this.setTextConfig(t):e===`textContent`?this.setTextContent(t):e===`clipPath`?this.setClipPath(t):e===`extra`?(this.extra=this.extra||{},I(this.extra,t)):this[e]=t},e.prototype.hide=function(){this.ignore=!0,this.markRedraw()},e.prototype.show=function(){this.ignore=!1,this.markRedraw()},e.prototype.attr=function(e,t){if(typeof e==`string`)this.attrKV(e,t);else if(H(e))for(var n=ue(e),r=0;r0},e.prototype.getState=function(e){return this.states[e]},e.prototype.ensureState=function(e){var t=this.states;return t[e]||(t[e]={}),t[e]},e.prototype.clearStates=function(e){this.useState($i,!1,e)},e.prototype.useState=function(e,t,n,r){var i=e===$i;if(!(!this.hasState()&&i)){var a=this.currentStates,o=this.stateTransition;if(!(re(a,e)>=0&&(t||a.length===1))){var s;if(this.stateProxy&&!i&&(s=this.stateProxy(e)),s||=this.states&&this.states[e],!s&&!i){te(`State `+e+` not exists.`);return}i||this.saveCurrentToNormalState(s);var c=this._textContent,l=pa(this,c,s,r);l&&!this.__inHover&&(this.__inHover=l),this._applyStateObj(e,s,this._normalState,t,ha(this,n,o),o);var u=this._textGuide;return c&&c.useState(e,t,n,!!l),u&&u.useState(e,t,n,!!l),i?(this.currentStates=[],this._normalState={}):t?this.currentStates.push(e):this.currentStates=[e],this._updateAnimationTargets(),this.markRedraw(),!l&&this.__inHover&&(this.__inHover=0,this.__dirty&=-2),s}}},e.prototype.useStates=function(e,t,n){if(!e.length)this.clearStates();else{var r=[],i=this.currentStates,a=e.length,o=a===i.length;if(o){for(var s=0;s=0){var n=this.currentStates.slice();n.splice(t,1),this.useStates(n)}},e.prototype.replaceState=function(e,t,n){var r=this.currentStates.slice(),i=re(r,e),a=re(r,t)>=0;i>=0?a?r.splice(i,1):r[i]=t:n&&!a&&r.push(t),this.useStates(r)},e.prototype.toggleState=function(e,t){t?this.useState(e,!0):this.removeState(e)},e.prototype._mergeStates=function(e){for(var t={},n,r=0;r=0&&t.splice(n,1)}),this.animators.push(e),n&&n.animation.addAnimator(e),n&&n.wakeUp()},e.prototype.updateDuringAnimation=function(e){this.markRedraw()},e.prototype.stopAnimation=function(e,t){for(var n=this.animators,r=n.length,i=[],a=0;a0&&n.during&&a[0].during(function(e,t){n.during(t)});for(var f=0;f0||i.force&&!o.length){var C=void 0,w=void 0,T=void 0;if(s){w={},f&&(C={});for(var b=0;b0}var ga=`__zr_style_`+Math.round(Math.random()*10),_a={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:`#000`,opacity:1,blend:`source-over`},va={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};_a[ga]=!0;var ya=[`z`,`z2`,`invisible`],ba=[`invisible`],xa=function(e){p(t,e);function t(t){return e.call(this,t)||this}return t.prototype._init=function(t){for(var n=ue(t),r=0;r1e-4){s[0]=e-n,s[1]=t-r,c[0]=e+n,c[1]=t+r;return}if(Aa[0]=Oa(i)*n+e,Aa[1]=Da(i)*r+t,ja[0]=Oa(a)*n+e,ja[1]=Da(a)*r+t,l(s,Aa,ja),u(c,Aa,ja),i%=ka,i<0&&(i+=ka),a%=ka,a<0&&(a+=ka),i>a&&!o?a+=ka:ii&&(Ma[0]=Oa(p)*n+e,Ma[1]=Da(p)*r+t,l(s,Ma,s),u(c,Ma,c))}var za={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},Ba=[],Va=[],Ha=[],Ua=[],Wa=[],Ga=[],Ka=Math.min,qa=Math.max,Ja=Math.cos,Ya=Math.sin,Xa=Math.abs,Za=Math.PI,Qa=Za*2,$a=typeof Float32Array<`u`,eo=[];function to(e){return Math.round(e/Za*1e8)/1e8%2*Za}function no(e,t){var n=to(e[0]);n<0&&(n+=Qa);var r=n-e[0],i=e[1];i+=r,!t&&i-n>=Qa?i=n+Qa:t&&n-i>=Qa?i=n-Qa:!t&&n>i?i=n+(Qa-to(n-i)):t&&n0&&(this._ux=Xa(n/Ji/e)||0,this._uy=Xa(n/Ji/t)||0)},e.prototype.setDPR=function(e){this.dpr=e},e.prototype.setContext=function(e){this._ctx=e},e.prototype.getContext=function(){return this._ctx},e.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},e.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},e.prototype.moveTo=function(e,t){return this._drawPendingPt(),this.addData(za.M,e,t),this._ctx&&this._ctx.moveTo(e,t),this._x0=e,this._y0=t,this._xi=e,this._yi=t,this},e.prototype.lineTo=function(e,t){var n=Xa(e-this._xi),r=Xa(t-this._yi),i=n>this._ux||r>this._uy;if(this.addData(za.L,e,t),this._ctx&&i&&this._ctx.lineTo(e,t),i)this._xi=e,this._yi=t,this._pendingPtDist=0;else{var a=n*n+r*r;a>this._pendingPtDist&&(this._pendingPtX=e,this._pendingPtY=t,this._pendingPtDist=a)}return this},e.prototype.bezierCurveTo=function(e,t,n,r,i,a){return this._drawPendingPt(),this.addData(za.C,e,t,n,r,i,a),this._ctx&&this._ctx.bezierCurveTo(e,t,n,r,i,a),this._xi=i,this._yi=a,this},e.prototype.quadraticCurveTo=function(e,t,n,r){return this._drawPendingPt(),this.addData(za.Q,e,t,n,r),this._ctx&&this._ctx.quadraticCurveTo(e,t,n,r),this._xi=n,this._yi=r,this},e.prototype.arc=function(e,t,n,r,i,a){this._drawPendingPt(),eo[0]=r,eo[1]=i,no(eo,a),r=eo[0],i=eo[1];var o=i-r;return this.addData(za.A,e,t,n,n,r,o,0,+!a),this._ctx&&this._ctx.arc(e,t,n,r,i,a),this._xi=Ja(i)*n+e,this._yi=Ya(i)*n+t,this},e.prototype.arcTo=function(e,t,n,r,i){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(e,t,n,r,i),this},e.prototype.rect=function(e,t,n,r){return this._drawPendingPt(),this._ctx&&this._ctx.rect(e,t,n,r),this.addData(za.R,e,t,n,r),this},e.prototype.closePath=function(){this._drawPendingPt(),this.addData(za.Z);var e=this._ctx,t=this._x0,n=this._y0;return e&&e.closePath(),this._xi=t,this._yi=n,this},e.prototype.fill=function(e){e&&e.fill(),this.toStatic()},e.prototype.stroke=function(e){e&&e.stroke(),this.toStatic()},e.prototype.len=function(){return this._len},e.prototype.setData=function(e){if(this._saveData){var t=e.length;!(this.data&&this.data.length===t)&&$a&&(this.data=new Float32Array(t));for(var n=0;n0&&a))for(var o=0;ol.length&&(this._expandData(),l=this.data);for(var u=0;u0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},e.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var e=[],t=0;t11&&(this.data=new Float32Array(e)))}},e.prototype.getBoundingRect=function(){Ha[0]=Ha[1]=Wa[0]=Wa[1]=Number.MAX_VALUE,Ua[0]=Ua[1]=Ga[0]=Ga[1]=-Number.MAX_VALUE;var e=this.data,t=0,n=0,r=0,i=0,a;for(a=0;an||Xa(v)>r||d===t-1)&&(m=Math.sqrt(_*_+v*v),i=h,a=g);break;case za.C:var y=e[d++],b=e[d++],h=e[d++],g=e[d++],x=e[d++],S=e[d++];m=xr(i,a,y,b,h,g,x,S,10),i=x,a=S;break;case za.Q:var y=e[d++],b=e[d++],h=e[d++],g=e[d++];m=Or(i,a,y,b,h,g,10),i=h,a=g;break;case za.A:var C=e[d++],w=e[d++],T=e[d++],E=e[d++],D=e[d++],O=e[d++],k=O+D;d+=1,p&&(o=Ja(D)*T+C,s=Ya(D)*E+w),m=qa(T,E)*Ka(Qa,Math.abs(O)),i=Ja(k)*T+C,a=Ya(k)*E+w;break;case za.R:o=i=e[d++],s=a=e[d++];var A=e[d++],j=e[d++];m=A*2+j*2;break;case za.Z:var _=o-i,v=s-a;m=Math.sqrt(_*_+v*v),i=o,a=s}m>=0&&(c[u++]=m,l+=m)}return this._pathLen=l,l},e.prototype.rebuildPath=function(e,t){var n=this.data,r=this._ux,i=this._uy,a=this._len,o,s,c,l,u,d,f=t<1,p,m,h=0,g=0,_,v=0,y,b;if(!(f&&(this._pathSegLen||this._calculateLength(),p=this._pathSegLen,m=this._pathLen,_=t*m,!_)))lo:for(var x=0;x0&&(e.lineTo(y,b),v=0),S){case za.M:o=c=n[x++],s=l=n[x++],e.moveTo(c,l);break;case za.L:u=n[x++],d=n[x++];var w=Xa(u-c),T=Xa(d-l);if(w>r||T>i){if(f){var E=p[g++];if(h+E>_){var D=(_-h)/E;e.lineTo(c*(1-D)+u*D,l*(1-D)+d*D);break lo}h+=E}e.lineTo(u,d),c=u,l=d,v=0}else{var O=w*w+T*T;O>v&&(y=u,b=d,v=O)}break;case za.C:var k=n[x++],A=n[x++],j=n[x++],ee=n[x++],M=n[x++],N=n[x++];if(f){var E=p[g++];if(h+E>_){var D=(_-h)/E;yr(c,k,j,M,D,Ba),yr(l,A,ee,N,D,Va),e.bezierCurveTo(Ba[1],Va[1],Ba[2],Va[2],Ba[3],Va[3]);break lo}h+=E}e.bezierCurveTo(k,A,j,ee,M,N),c=M,l=N;break;case za.Q:var k=n[x++],A=n[x++],j=n[x++],ee=n[x++];if(f){var E=p[g++];if(h+E>_){var D=(_-h)/E;Er(c,k,j,D,Ba),Er(l,A,ee,D,Va),e.quadraticCurveTo(Ba[1],Va[1],Ba[2],Va[2]);break lo}h+=E}e.quadraticCurveTo(k,A,j,ee),c=j,l=ee;break;case za.A:var te=n[x++],P=n[x++],F=n[x++],I=n[x++],ne=n[x++],L=n[x++],re=n[x++],ie=!n[x++],ae=F>I?F:I,oe=Xa(F-I)>.001,R=ne+L,z=!1;if(f){var E=p[g++];h+E>_&&(R=ne+L*(_-h)/E,z=!0),h+=E}if(oe&&e.ellipse?e.ellipse(te,P,F,I,re,ne,R,ie):e.arc(te,P,ae,ne,R,ie),z)break lo;C&&(o=Ja(ne)*F+te,s=Ya(ne)*I+P),c=Ja(R)*F+te,l=Ya(R)*I+P;break;case za.R:o=c=n[x],s=l=n[x+1],u=n[x++],d=n[x++];var se=n[x++],ce=n[x++];if(f){var E=p[g++];if(h+E>_){var le=_-h;e.moveTo(u,d),e.lineTo(u+Ka(le,se),d),le-=se,le>0&&e.lineTo(u+se,d+Ka(le,ce)),le-=ce,le>0&&e.lineTo(u+qa(se-le,0),d+ce),le-=se,le>0&&e.lineTo(u,d+qa(ce-le,0));break lo}h+=E}e.rect(u,d,se,ce);break;case za.Z:if(f){var E=p[g++];if(h+E>_){var D=(_-h)/E;e.lineTo(c*(1-D)+o*D,l*(1-D)+s*D);break lo}h+=E}e.closePath(),c=o,l=s}}},e.prototype.clone=function(){var t=new e,n=this.data;return t.data=n.slice?n.slice():Array.prototype.slice.call(n),t._len=this._len,t},e.prototype.canSave=function(){return!!this._saveData},e.CMD=za,e.initDefaultProps=(function(){var t=e.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0})(),e}();function io(e,t,n,r,i,a,o){if(i===0)return!1;var s=i,c=0,l=e;if(o>t+s&&o>r+s||oe+s&&a>n+s||at+d&&u>r+d&&u>a+d&&u>s+d||ue+d&&l>n+d&&l>i+d&&l>o+d||lt+l&&c>r+l&&c>a+l||ce+l&&s>n+l&&s>i+l||sn||u+li&&(i+=lo);var f=Math.atan2(c,s);return f<0&&(f+=lo),f>=r&&f<=i||f+lo>=r&&f+lo<=i}function fo(e,t,n,r,i,a){if(a>t&&a>r||ai?s:0}var po=ro.CMD,mo=Math.PI*2,ho=1e-4;function go(e,t){return Math.abs(e-t)t&&l>r&&l>a&&l>s||l1&&yo(),p=hr(t,r,a,s,vo[0]),f>1&&(m=hr(t,r,a,s,vo[1]))),f===2?gt&&s>r&&s>a||s=0&&l<=1){for(var u=0,d=Sr(t,r,a,l),f=0;fn||s<-n)return 0;var c=Math.sqrt(n*n-s*s);_o[0]=-c,_o[1]=c;var l=Math.abs(r-i);if(l<1e-4)return 0;if(l>=mo-1e-4){r=0,i=mo;var u=a?1:-1;return o>=_o[0]+e&&o<=_o[1]+e?u:0}if(r>i){var d=r;r=i,i=d}r<0&&(r+=mo,i+=mo);for(var f=0,p=0;p<2;p++){var m=_o[p];if(m+e>o){var h=Math.atan2(s,m),u=a?1:-1;h<0&&(h=mo+h),(h>=r&&h<=i||h+mo>=r&&h+mo<=i)&&(h>Math.PI/2&&h1&&(n||(s+=fo(c,l,u,d,r,i))),g&&(c=a[m],l=a[m+1],u=c,d=l),h){case po.M:u=a[m++],d=a[m++],c=u,l=d;break;case po.L:if(n){if(io(c,l,a[m],a[m+1],t,r,i))return!0}else s+=fo(c,l,a[m],a[m+1],r,i)||0;c=a[m++],l=a[m++];break;case po.C:if(n){if(ao(c,l,a[m++],a[m++],a[m++],a[m++],a[m],a[m+1],t,r,i))return!0}else s+=bo(c,l,a[m++],a[m++],a[m++],a[m++],a[m],a[m+1],r,i)||0;c=a[m++],l=a[m++];break;case po.Q:if(n){if(oo(c,l,a[m++],a[m++],a[m],a[m+1],t,r,i))return!0}else s+=xo(c,l,a[m++],a[m++],a[m],a[m+1],r,i)||0;c=a[m++],l=a[m++];break;case po.A:var _=a[m++],v=a[m++],y=a[m++],b=a[m++],x=a[m++],S=a[m++];m+=1;var C=!!(1-a[m++]);f=Math.cos(x)*y+_,p=Math.sin(x)*b+v,g?(u=f,d=p):s+=fo(c,l,f,p,r,i);var w=(r-_)*b/y+_;if(n){if(uo(_,v,b,x,x+S,C,t,w,i))return!0}else s+=So(_,v,b,x,x+S,C,w,i);c=Math.cos(x+S)*y+_,l=Math.sin(x+S)*b+v;break;case po.R:u=c=a[m++],d=l=a[m++];var T=a[m++],E=a[m++];if(f=u+T,p=d+E,n){if(io(u,d,f,d,t,r,i)||io(f,d,f,p,t,r,i)||io(f,p,u,p,t,r,i)||io(u,p,u,d,t,r,i))return!0}else s+=fo(f,d,f,p,r,i),s+=fo(u,p,u,d,r,i);break;case po.Z:if(n){if(io(c,l,u,d,t,r,i))return!0}else s+=fo(c,l,u,d,r,i);c=u,l=d}}return!n&&!go(l,d)&&(s+=fo(c,l,u,d,r,i)||0),s!==0}function wo(e,t,n){return Co(e,0,!1,t,n)}function To(e,t,n,r){return Co(e,t,!0,n,r)}var Eo=L({fill:`#000`,stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:`butt`,miterLimit:10,strokeNoScale:!1,strokeFirst:!1},_a),Do={style:L({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},va.style)},Oo=tr.concat([`invisible`,`culling`,`z`,`z2`,`zlevel`,`parent`]),ko=function(e){p(t,e);function t(t){return e.call(this,t)||this}return t.prototype.update=function(){var n=this;e.prototype.update.call(this);var r=this.style;if(r.decal){var i=this._decalEl=this._decalEl||new t;i.buildPath===t.prototype.buildPath&&(i.buildPath=function(e){n.buildPath(e,n.shape)}),i.silent=!0;var a=i.style;for(var o in r)a[o]!==r[o]&&(a[o]=r[o]);a.fill=r.fill?r.decal:null,a.decal=null,a.shadowColor=null,r.strokeFirst&&(a.stroke=null);for(var s=0;s.5?Xi:t>.2?Qi:Zi}if(e)return Zi}return Xi},t.prototype.getInsideTextStroke=function(e){var t=this.style.fill;if(V(t)){var n=this.__zr;if(!!(n&&n.isDarkMode())==$r(e,0)<.4)return t}},t.prototype.buildPath=function(e,t,n){},t.prototype.pathUpdated=function(){this.__dirty&=-5},t.prototype.getUpdatedPathProxy=function(e){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,e),this.path},t.prototype.createPathProxy=function(){this.path=new ro(!1)},t.prototype.hasStroke=function(){var e=this.style,t=e.stroke;return!(t==null||t===`none`||!(e.lineWidth>0))},t.prototype.hasFill=function(){var e=this.style.fill;return e!=null&&e!==`none`},t.prototype.getBoundingRect=function(){var e=this._rect,t=this.style,n=!e;if(n){var r=!1;this.path||(r=!0,this.createPathProxy());var i=this.path;(r||this.__dirty&4)&&(i.beginPath(),this.buildPath(i,this.shape,!1),this.pathUpdated()),e=i.getBoundingRect()}if(this._rect=e,this.hasStroke()&&this.path&&this.path.len()>0){var a=this._rectStroke||=e.clone();if(this.__dirty||n){a.copy(e);var o=t.strokeNoScale?this.getLineScale():1,s=t.lineWidth;if(!this.hasFill()){var c=this.strokeContainThreshold;s=Math.max(s,c??4)}o>1e-10&&(a.width+=s/o,a.height+=s/o,a.x-=s/o/2,a.y-=s/o/2)}return a}return e},t.prototype.contain=function(e,t){var n=this.transformCoordToLocal(e,t),r=this.getBoundingRect(),i=this.style;if(e=n[0],t=n[1],r.contain(e,t)){var a=this.path;if(this.hasStroke()){var o=i.lineWidth,s=i.strokeNoScale?this.getLineScale():1;if(s>1e-10&&(this.hasFill()||(o=Math.max(o,this.strokeContainThreshold)),To(a,o/s,e,t)))return!0}if(this.hasFill())return wo(a,e,t)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=4,this._rect&&=null,this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},t.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},t.prototype.animateShape=function(e){return this.animate(`shape`,e)},t.prototype.updateDuringAnimation=function(e){e===`style`?this.dirtyStyle():e===`shape`?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(t,n){t===`shape`?this.setShape(n):e.prototype.attrKV.call(this,t,n)},t.prototype.setShape=function(e,t){var n=this.shape;return n||=this.shape={},typeof e==`string`?n[e]=t:I(n,e),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&4)},t.prototype.createStyle=function(e){return Re(Eo,e)},t.prototype._innerSaveToNormal=function(t){e.prototype._innerSaveToNormal.call(this,t);var n=this._normalState;t.shape&&!n.shape&&(n.shape=I({},this.shape))},t.prototype._applyStateObj=function(t,n,r,i,a,o){if(e.prototype._applyStateObj.call(this,t,n,r,i,a,o),this.__inHover!==1){var s=!(n&&i),c;if(n&&n.shape?a?i?c=n.shape:(c=I({},r.shape),I(c,n.shape)):(c=I({},i?this.shape:r.shape),I(c,n.shape)):s&&(c=r.shape),c)if(a){this.shape=I({},this.shape);for(var l={},u=ue(c),d=0;di&&(d=s+c,s*=i/d,c*=i/d),l+u>i&&(d=l+u,l*=i/d,u*=i/d),c+l>a&&(d=c+l,c*=a/d,l*=a/d),s+u>a&&(d=s+u,s*=a/d,u*=a/d),e.moveTo(n+s,r),e.lineTo(n+i-c,r),c!==0&&e.arc(n+i-c,r+c,c,-Math.PI/2,0),e.lineTo(n+i,r+a-l),l!==0&&e.arc(n+i-l,r+a-l,l,0,Math.PI/2),e.lineTo(n+u,r+a),u!==0&&e.arc(n+u,r+a-u,u,Math.PI/2,Math.PI),e.lineTo(n,r+s),s!==0&&e.arc(n+s,r+s,s,Math.PI,Math.PI*1.5),e.closePath()}var Lo=Math.round;function Ro(e,t,n){if(t){var r=t.x1,i=t.x2,a=t.y1,o=t.y2;e.x1=r,e.x2=i,e.y1=a,e.y2=o;var s=n&&n.lineWidth;return s?(Lo(r*2)===Lo(i*2)&&(e.x1=e.x2=Bo(r,s,!0)),Lo(a*2)===Lo(o*2)&&(e.y1=e.y2=Bo(a,s,!0)),e):e}}function zo(e,t,n){if(t){var r=t.x,i=t.y,a=t.width,o=t.height;e.x=r,e.y=i,e.width=a,e.height=o;var s=n&&n.lineWidth;return s?(e.x=Bo(r,s,!0),e.y=Bo(i,s,!0),e.width=Math.max(Bo(r+a,s,!1)-e.x,a===0?0:1),e.height=Math.max(Bo(i+o,s,!1)-e.y,o===0?0:1),e):e}}function Bo(e,t,n){if(!t)return e;var r=Lo(e*2);return(r+Lo(t))%2==0?r/2:(r+(n?1:-1))/2}var Vo=function(){function e(){this.x=0,this.y=0,this.width=0,this.height=0}return e}(),Ho={},Uo=function(e){p(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new Vo},t.prototype.buildPath=function(e,t){var n,r,i,a;if(this.subPixelOptimize){var o=zo(Ho,t,this.style);n=o.x,r=o.y,i=o.width,a=o.height,o.r=t.r,t=o}else n=t.x,r=t.y,i=t.width,a=t.height;t.r?Io(e,t):e.rect(n,r,i,a)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(ko);Uo.prototype.type=`rect`;var Wo={fill:`#000`},Go=2,Ko={},qo={style:L({fill:!0,stroke:!0,fillOpacity:!0,strokeOpacity:!0,lineWidth:!0,fontSize:!0,lineHeight:!0,width:!0,height:!0,textShadowColor:!0,textShadowBlur:!0,textShadowOffsetX:!0,textShadowOffsetY:!0,backgroundColor:!0,padding:!0,borderColor:!0,borderWidth:!0,borderRadius:!0},va.style)},Jo=function(e){p(t,e);function t(t){var n=e.call(this)||this;return n.type=`text`,n._children=[],n._defaultStyle=Wo,n.attr(t),n}return t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){e.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var t=0;t0,T=0;T=0&&(D=y[E],D.align===`right`);)this._placeToken(D,e,x,m,T,`right`,g),S-=D.width,T-=D.width,E--;for(w+=(s-(w-p)-(h-T)-S)/2;C<=E;)D=y[C],this._placeToken(D,e,x,m,w+D.width/2,`center`,g),w+=D.width,C++;m+=x}},t.prototype._placeToken=function(e,t,n,r,i,a,o){var s=t.rich[e.styleName]||{};s.text=e.text;var c=e.verticalAlign,l=r+n/2;c===`top`?l=r+e.height/2:c===`bottom`&&(l=r+n-e.height/2),!e.isLineHolder&&ss(s)&&this._renderBackground(s,t,a===`right`?i-e.width:a===`center`?i-e.width/2:i,l-e.height/2,e.width,e.height);var u=!!s.backgroundColor,d=e.textPadding;d&&(i=as(i,a,d),l-=e.height/2-d[0]-e.innerHeight/2);var f=this._getOrCreateChild(jo),p=f.createStyle();f.useStyle(p);var m=this._defaultStyle,h=!1,g=0,_=!1,v=is(`fill`in s?s.fill:`fill`in t?t.fill:(h=!0,m.fill)),y=rs(`stroke`in s?s.stroke:`stroke`in t?t.stroke:!u&&!o&&(!m.autoStroke||h)?(g=Go,_=!0,m.stroke):null),b=s.textShadowBlur>0||t.textShadowBlur>0;p.text=e.text,p.x=i,p.y=l,b&&(p.shadowBlur=s.textShadowBlur||t.textShadowBlur||0,p.shadowColor=s.textShadowColor||t.textShadowColor||`transparent`,p.shadowOffsetX=s.textShadowOffsetX||t.textShadowOffsetX||0,p.shadowOffsetY=s.textShadowOffsetY||t.textShadowOffsetY||0),p.textAlign=a,p.textBaseline=`middle`,p.font=e.font||`12px sans-serif`,p.opacity=we(s.opacity,t.opacity,1),$o(p,s),y&&(p.lineWidth=we(s.lineWidth,t.lineWidth,g),p.lineDash=Ce(s.lineDash,t.lineDash),p.lineDashOffset=t.lineDashOffset||0,p.stroke=y),v&&(p.fill=v),f.setBoundingRect(Wn(p,e.contentWidth,e.contentHeight,_?0:null))},t.prototype._renderBackground=function(e,t,n,r,i,a){var o=e.backgroundColor,s=e.borderWidth,c=e.borderColor,l=o&&o.image,u=o&&!l,d=e.borderRadius,f=this,p,m;if(u||e.lineHeight||s&&c){p=this._getOrCreateChild(Uo),p.useStyle(p.createStyle()),p.style.fill=null;var h=p.shape;h.x=n,h.y=r,h.width=i,h.height=a,h.r=d,p.dirtyShape()}if(u){var g=p.style;g.fill=o||null,g.fillOpacity=Ce(e.fillOpacity,1)}else if(l){m=this._getOrCreateChild(Fo),m.onload=function(){f.dirtyStyle()};var _=m.style;_.image=o.image,_.x=n,_.y=r,_.width=i,_.height=a}if(s&&c){var g=p.style;g.lineWidth=s,g.stroke=c,g.strokeOpacity=Ce(e.strokeOpacity,1),g.lineDash=e.borderDash,g.lineDashOffset=e.borderDashOffset||0,p.strokeContainThreshold=0,p.hasFill()&&p.hasStroke()&&(g.strokeFirst=!0,g.lineWidth*=2)}var v=(p||m).style;v.shadowBlur=e.shadowBlur||0,v.shadowColor=e.shadowColor||`transparent`,v.shadowOffsetX=e.shadowOffsetX||0,v.shadowOffsetY=e.shadowOffsetY||0,v.opacity=we(e.opacity,t.opacity,1)},t.makeFont=function(e){var t=``;return es(e)&&(t=[e.fontStyle,e.fontWeight,Qo(e.fontSize),e.fontFamily||`sans-serif`].join(` `)),t&&Oe(t)||e.textFont||e.font},t}(xa),Yo={left:!0,right:1,center:1},Xo={top:1,bottom:1,middle:1},Zo=[`fontStyle`,`fontWeight`,`fontSize`,`fontFamily`];function Qo(e){return typeof e==`string`&&(e.indexOf(`px`)!==-1||e.indexOf(`rem`)!==-1||e.indexOf(`em`)!==-1)?e:isNaN(+e)?`12px`:e+`px`}function $o(e,t){for(var n=0;n0){if(e<=i)return o;if(e>=a)return s}else if(e>=i)return o;else if(e<=a)return s}else{if(e===i)return o;if(e===a)return s}return(e-i)/c*l+o}var Cs=ws;function ws(e,t,n){switch(e){case`center`:case`middle`:e=`50%`;break;case`left`:case`top`:e=`0%`;break;case`right`:case`bottom`:e=`100%`}return Ts(e,t,n)}function Ts(e,t,n){return V(e)?Es(e)?parseFloat(e)/100*t+(n||0):parseFloat(e):e==null?NaN:+e}function Es(e){return!!us(e).match(/%$/)}function Ds(e,t,n){return isNaN(t)?n?``+e:+e:(t=ds(fs(0,t),ls),e=(+e).toFixed(t),n?e:+e)}function Os(e){return e.sort(function(e,t){return e-t}),e}function ks(e){if(e=+e,isNaN(e))return 0;if(e>1e-14){for(var t=1,n=0;n<15;n++,t*=10)if(ms(e*t)/t===e)return n}return As(e)}function As(e){var t=e.toString().toLowerCase(),n=t.indexOf(`e`),r=n>0?+t.slice(n+1):0,i=n>0?n:t.length,a=t.indexOf(`.`);return fs(0,(a<0?0:i-1-a)-r)}function js(e,t,n){var r=ps(e[1]-e[0]);if(!isFinite(r)||r===0)return NaN;var i=vs(2*ps(n||1)*ps(r))/ys,a=vs(ps(t))/ys,o=fs(0,gs(-i+a));return isFinite(o)||(o=NaN),o}function Ms(e,t){var n=fs(ks(e),ks(t)),r=e+t;return n>ls?r:Ds(r,n)}var Ns=_s(2,53)-1;function Ps(e){var t=bs*2;return(e%t+t)%t}function Fs(e){return e>-cs&&e=10&&t++,t}function Bs(e,t){var n=zs(e),r=_s(10,n),i=e/r;return e=(t===2?1:t?i<1.5?1:i<2.5?2:i<4?3:i<7?5:10:i<1?1:i<2?2:i<3?3:i<5?5:10)*r,Ds(e,-n)}function Vs(e){e.sort(function(e,t){return s(e,t,0)?-1:1});for(var t=-1/0,n=1,r=0;r0?e.length:0),this.item=null,this.key=NaN,this},e.prototype.next=function(){return(this._step>0?this._idx=this._end)&&(this.item=this._list[this._idx],this.key=this._idx+=this._step,!0)},e})();function Nc(){return[1/0,-1/0]}function Pc(e,t){Rc(t)&&(te[1]&&(e[1]=t))}function Fc(e,t){Rc(t)&&te[1]&&(e[1]=t)}function Lc(e,t){zc(t[0],t[1])&&(t[0]e[1]&&(e[1]=t[1]))}function Rc(e){return e!=null&&isFinite(e)}function zc(e,t){return Rc(e)&&Rc(t)&&e<=t}function Bc(e){var t=e[1]-e[0];return isFinite(t)&&t>=0}function Vc(e){zc(e[0],e[1])&&e[0]>e[1]&&(e[0]=e[1])}function Hc(){var e=`__ec_once_`+Uc++;return function(t,n){ze(t,e)||(t[e]=1,n())}}var Uc=Ws();function Wc(e,t,n){var r=Ie(),i=0;R(e,function(a){var o=t(a),s=r.get(o)||0;n&&n(a,s),!s&&!n&&(e[i++]=a),r.set(o,s+1)}),n||(e.length=i)}function Gc(e){return e.value+``}function Kc(e){return e+``}function qc(e,t){return Ce(t,!0)?e.seriesIndex+2:0}function Jc(e,t,n){var r=e.getData().count();return{progressiveRender:n.progressiveEnabled&&t.incrementalPrepareRender&&r>=n.threshold,large:e.get(`large`)&&r>=e.get(`largeThreshold`),modDataCount:e.get(`progressiveChunkMode`)===`mod`?e.getData().count():null}}function Yc(e){return{overallReset:e}}var Xc=Cc(),Zc=function(e,t,n,r){if(r){var i=Xc(r);i.dataIndex=n,i.dataType=t,i.seriesIndex=e,i.ssrType=`chart`,r.type===`group`&&r.traverse(function(r){var i=Xc(r);i.seriesIndex=e,i.dataIndex=n,i.dataType=t,i.ssrType=`chart`})}},Qc=Ie([`tooltip`,`label`,`itemName`,`itemId`,`itemGroupId`,`itemChildGroupId`,`seriesName`]),$c=`original`,el=`arrayRows`,tl=`objectRows`,nl=`keyedColumns`,rl=`typedArray`,il=`unknown`,al=`column`,ol=[`getDom`,`getZr`,`getWidth`,`getHeight`,`getDevicePixelRatio`,`dispatchAction`,`isSSR`,`isDisposed`,`on`,`off`,`getDataURL`,`getConnectedDataURL`,`getOption`,`getId`,`updateLabelLayout`],sl=function(){function e(e){R(ol,function(t){this[t]=fe(e[t],e)},this)}return e}();function cl(e,t){return t.mainType===`series`?e.getViewOfSeriesModel(t):e.getViewOfComponentModel(t)}var ll=1,ul={},dl=Cc(),fl=Cc(),pl=[`emphasis`,`blur`,`select`],ml=[`normal`,`emphasis`,`blur`,`select`],hl=`highlight`,gl=`downplay`,_l=`select`,vl=`unselect`,yl=`toggleSelect`,bl=`selectchanged`;function xl(e){return e!=null&&e!==`none`}function Sl(e,t,n){e.onHoverStateChange&&(e.hoverState||0)!==n&&e.onHoverStateChange(t),e.hoverState=n}function Cl(e){Sl(e,`emphasis`,2)}function wl(e){e.hoverState===2&&Sl(e,`normal`,0)}function Tl(e){Sl(e,`blur`,1)}function El(e){e.hoverState===1&&Sl(e,`normal`,0)}function Dl(e){e.selected=!0}function Ol(e){e.selected=!1}function kl(e,t,n){t(e,n)}function Al(e,t,n){kl(e,t,n),e.isGroup&&e.traverse(function(e){kl(e,t,n)})}function jl(e,t,n,r){for(var i=e.style,a={},o=0;o=0,a=!1;if(e instanceof ko){var o=dl(e),s=i&&o.selectFill||o.normalFill,c=i&&o.selectStroke||o.normalStroke;if(xl(s)||xl(c)){r||={};var l=r.style||{};l.fill===`inherit`?(a=!0,r=I({},r),l=I({},l),l.fill=s):!xl(l.fill)&&xl(s)?(a=!0,r=I({},r),l=I({},l),l.fill=ti(s)):!xl(l.stroke)&&xl(c)&&(a||(r=I({},r),l=I({},l)),l.stroke=ti(c)),r.style=l}}if(r&&r.z2==null){a||(r=I({},r));var u=e.z2EmphasisLift;r.z2=e.z2+(u??10)}return r}function Nl(e,t,n){if(n&&n.z2==null){n=I({},n);var r=e.z2SelectLift;n.z2=e.z2+(r??9)}return n}function Pl(e,t,n){var r=re(e.currentStates,t)>=0,i=e.style.opacity,a=r?null:jl(e,[`opacity`],t,{opacity:1});n||={};var o=n.style||{};return o.opacity??(n=I({},n),o=I({opacity:r?i:a.opacity*.1},o),n.style=o),n}function Fl(e,t){var n=this.states[e];if(this.style){if(e===`emphasis`)return Ml(this,e,t,n);if(e===`blur`)return Pl(this,e,n);if(e===`select`)return Nl(this,e,n)}return n}function Il(e){e.stateProxy=Fl;var t=e.getTextContent(),n=e.getTextGuideLine();t&&(t.stateProxy=Fl),n&&(n.stateProxy=Fl)}function Ll(e,t){!Gl(e,t)&&!e.__highByOuter&&Al(e,Cl)}function Rl(e,t){!Gl(e,t)&&!e.__highByOuter&&Al(e,wl)}function zl(e,t){e.__highByOuter|=1<<(t||0),Al(e,Cl)}function Bl(e,t){!(e.__highByOuter&=~(1<<(t||0)))&&Al(e,wl)}function Vl(e){Al(e,Tl)}function Hl(e){Al(e,El)}function Ul(e){Al(e,Dl)}function Wl(e){Al(e,Ol)}function Gl(e,t){return e.__highDownSilentOnTouch&&t.zrByTouch}function Kl(e){var t=e.getModel(),n=[],r=[];t.eachComponent(function(t,i){var a=fl(i),o=cl(e,i),s=t===`series`;!s&&r.push(o),a.isBlured&&(o.group.traverse(function(e){El(e)}),s&&n.push(i)),a.isBlured=!1}),R(r,function(e){e&&e.toggleBlurSeries&&e.toggleBlurSeries(n,!1,t)})}function ql(e,t,n,r){var i=r.getModel();n||=`coordinateSystem`;function a(e,t){for(var n=0;n0){var a={dataIndex:i,seriesIndex:e.seriesIndex};r!=null&&(a.dataType=r),t.push(a)}})}),t}function nu(e,t,n){lu(e,!0),Al(e,Il),au(e,t,n)}function ru(e){lu(e,!1)}function iu(e,t,n,r){r?ru(e):nu(e,t,n)}function au(e,t,n){var r=Xc(e);t==null?r.focus&&=null:(r.focus=t,r.blurScope=n)}var ou=[`emphasis`,`blur`,`select`],su={itemStyle:`getItemStyle`,lineStyle:`getLineStyle`,areaStyle:`getAreaStyle`};function cu(e,t,n,r){n||=`itemStyle`;for(var i=0;i1&&(o*=bu(m),s*=bu(m));var h=(i===a?-1:1)*bu((o*o*(s*s)-o*o*(p*p)-s*s*(f*f))/(o*o*(p*p)+s*s*(f*f)))||0,g=h*o*p/s,_=h*-s*f/o,v=(e+n)/2+Su(d)*g-xu(d)*_,y=(t+r)/2+xu(d)*g+Su(d)*_,b=Eu([1,0],[(f-g)/o,(p-_)/s]),x=[(f-g)/o,(p-_)/s],S=[(-1*f-g)/o,(-1*p-_)/s],C=Eu(x,S);if(Tu(x,S)<=-1&&(C=Cu),Tu(x,S)>=1&&(C=0),C<0){var w=Math.round(C/Cu*1e6)/1e6;C=Cu*2+w%2*Cu}u.addData(l,v,y,o,s,b,C,d,a)}var Ou=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,ku=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function Au(e){var t=new ro;if(!e)return t;var n=0,r=0,i=n,a=r,o,s=ro.CMD,c=e.match(Ou);if(!c)return t;for(var l=0;l=0&&(n.splice(r,0,e),this._doAdd(e))}return this},t.prototype.replace=function(e,t){var n=re(this._children,e);return n>=0&&this.replaceAt(t,n),this},t.prototype.replaceAt=function(e,t){var n=this._children,r=n[t];if(e&&e!==this&&e.parent!==this&&e!==r){n[t]=e,r.parent=null;var i=this.__zr;i&&r.removeSelfFromZr(i),this._doAdd(e)}return this},t.prototype._doAdd=function(e){e.parent&&e.parent.remove(e),e.parent=this;var t=this.__zr;t&&t!==e.__zr&&e.addSelfToZr(t),t&&t.refresh()},t.prototype.remove=function(e){var t=this.__zr,n=this._children,r=re(n,e);return r<0?this:(n.splice(r,1),e.parent=null,t&&e.removeSelfFromZr(t),t&&t.refresh(),this)},t.prototype.removeAll=function(){for(var e=this._children,t=this.__zr,n=0;nA*A+j*j&&(w=E,T=D),{cx:w,cy:T,x0:-u,y0:-d,x1:w*(i/x-1),y1:T*(i/x-1)}}function td(e){var t;if(B(e)){var n=e.length;if(!n)return e;t=n===1?[e[0],e[0],0,0]:n===2?[e[0],e[0],e[1],e[1]]:n===3?e.concat(e[2]):e}else t=[e,e,e,e];return t}function nd(e,t){var n,r=Xu(t.r,0),i=Xu(t.r0||0,0),a=r>0;if(!(!a&&!(i>0))){if(a||(r=i,i=0),i>r){var o=r;r=i,i=o}var s=t.startAngle,c=t.endAngle;if(!(isNaN(s)||isNaN(c))){var l=t.cx,u=t.cy,d=!!t.clockwise,f=Ju(c-s),p=f>Uu&&f%Uu;if(p>Qu&&(f=p),!(r>Qu))e.moveTo(l,u);else if(f>Uu-Qu)e.moveTo(l+r*Gu(s),u+r*Wu(s)),e.arc(l,u,r,s,c,!d),i>Qu&&(e.moveTo(l+i*Gu(c),u+i*Wu(c)),e.arc(l,u,i,c,s,d));else{var m=void 0,h=void 0,g=void 0,_=void 0,v=void 0,y=void 0,b=void 0,x=void 0,S=void 0,C=void 0,w=void 0,T=void 0,E=void 0,D=void 0,O=void 0,k=void 0,A=r*Gu(s),j=r*Wu(s),ee=i*Gu(c),M=i*Wu(c),N=f>Qu;if(N){var te=t.cornerRadius;te&&(n=td(te),m=n[0],h=n[1],g=n[2],_=n[3]);var P=Ju(r-i)/2;if(v=Zu(P,g),y=Zu(P,_),b=Zu(P,m),x=Zu(P,h),w=S=Xu(v,y),T=C=Xu(b,x),(S>Qu||C>Qu)&&(E=r*Gu(c),D=r*Wu(c),O=i*Gu(s),k=i*Wu(s),fQu){var oe=Zu(g,w),R=Zu(_,w),z=ed(O,k,A,j,r,oe,d),se=ed(E,D,ee,M,r,R,d);e.moveTo(l+z.cx+z.x0,u+z.cy+z.y0),w0&&e.arc(l+z.cx,u+z.cy,oe,qu(z.y0,z.x0),qu(z.y1,z.x1),!d),e.arc(l,u,r,qu(z.cy+z.y1,z.cx+z.x1),qu(se.cy+se.y1,se.cx+se.x1),!d),R>0&&e.arc(l+se.cx,u+se.cy,R,qu(se.y1,se.x1),qu(se.y0,se.x0),!d))}else e.moveTo(l+A,u+j),e.arc(l,u,r,s,c,!d);if(!(i>Qu)||!N)e.lineTo(l+ee,u+M);else if(T>Qu){var oe=Zu(m,T),R=Zu(h,T),z=ed(ee,M,E,D,i,-R,d),se=ed(A,j,O,k,i,-oe,d);e.lineTo(l+z.cx+z.x0,u+z.cy+z.y0),T0&&e.arc(l+z.cx,u+z.cy,R,qu(z.y0,z.x0),qu(z.y1,z.x1),!d),e.arc(l,u,i,qu(z.cy+z.y1,z.cx+z.x1),qu(se.cy+se.y1,se.cx+se.x1),d),oe>0&&e.arc(l+se.cx,u+se.cy,oe,qu(se.y1,se.x1),qu(se.y0,se.x0),!d))}else e.lineTo(l+ee,u+M),e.arc(l,u,i,c,s,d)}e.closePath()}}}var rd=function(){function e(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0,this.cornerRadius=0}return e}(),id=function(e){p(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new rd},t.prototype.buildPath=function(e,t){nd(e,t)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(ko);id.prototype.type=`sector`;var ad=function(){function e(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return e}(),od=function(e){p(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new ad},t.prototype.buildPath=function(e,t){var n=t.cx,r=t.cy,i=Math.PI*2;e.moveTo(n+t.r,r),e.arc(n,r,t.r,0,i,!1),e.moveTo(n+t.r0,r),e.arc(n,r,t.r0,0,i,!0)},t}(ko);od.prototype.type=`ring`;function sd(e,t,n,r){var i=[],a=[],o=[],s=[],c,l,u,d;if(r){u=[1/0,1/0],d=[-1/0,-1/0];for(var f=0,p=e.length;f=2){if(r){var a=sd(i,r,n,t.smoothConstraint);e.moveTo(i[0][0],i[0][1]);for(var o=i.length,s=0;s<(n?o:o-1);s++){var c=a[s*2],l=a[s*2+1],u=i[(s+1)%o];e.bezierCurveTo(c[0],c[1],l[0],l[1],u[0],u[1])}}else{e.moveTo(i[0][0],i[0][1]);for(var s=1,d=i.length;sAd[1]){if(i=!1,jd.negativeSize||n)return i;var s=Od(Ad[0]-kd[1]),c=Od(kd[0]-Ad[1]);Ed(s,c)>Nd.len()&&(s=c||!jd.bidirectional)&&(Bt.scale(Md,o,-c*r),jd.useDir&&jd.calcDirMTV()))}}return i},e.prototype._getProjMinMaxOnAxis=function(e,t,n){for(var r=this._axes[e],i=this._origin,a=t[0].dot(r)+i[e],o=a,s=a,c=1;c0){var d=u.duration,f=u.delay,p=u.easing,m={duration:d,delay:f||0,easing:p,done:a,force:!!a||!!o,setToFinal:!l,scope:e,during:o};s?t.animateFrom(n,m):t.animateTo(n,m)}else t.stopAnimation(),!s&&t.attr(n),o&&o(1),a&&a()}function Bd(e,t,n,r,i,a){zd(`update`,e,t,n,r,i,a)}function Vd(e,t,n,r,i,a){zd(`enter`,e,t,n,r,i,a)}function Hd(e){if(!e.__zr)return!0;for(var t=0;txd,BezierCurve:()=>yd,BoundingRect:()=>en,Circle:()=>zu,CompoundPath:()=>Sd,Ellipse:()=>Vu,Group:()=>Lu,HOVER_LAYER_FOR_INCREMENTAL:()=>2,HOVER_LAYER_FROM_THRESHOLD:()=>1,HOVER_LAYER_NO:()=>0,Image:()=>Fo,IncrementalDisplayable:()=>Id,Line:()=>hd,LinearGradient:()=>wd,OrientedBoundingRect:()=>Pd,Path:()=>ko,Point:()=>Bt,Polygon:()=>ud,Polyline:()=>fd,RadialGradient:()=>Td,Rect:()=>Uo,Ring:()=>od,Sector:()=>id,Text:()=>Jo,WH:()=>Xd,XY:()=>Yd,applyTransform:()=>ff,calcZ2Range:()=>Ff,clipPointsByRect:()=>_f,clipRectByRect:()=>vf,createIcon:()=>yf,decomposeTransform:()=>zf,ensureCopyRect:()=>Mf,ensureCopyTransform:()=>Nf,expandOrShrinkRect:()=>wf,extendPath:()=>$d,extendShape:()=>Zd,getCurrentCanvasPainter:()=>Vf,getShapeClass:()=>tf,getTransform:()=>df,groupTransition:()=>gf,initProps:()=>Vd,isBoundingRectAxisAligned:()=>Af,isElementRemoved:()=>Hd,lineLineIntersect:()=>xf,linePolygonIntersect:()=>bf,makeImage:()=>rf,makePath:()=>nf,mergePath:()=>of,payloadDisableAnimation:()=>Rf,registerShape:()=>ef,removeElement:()=>Ud,removeElementWithFadeOut:()=>Gd,resizePath:()=>sf,retrieveZInfo:()=>Pf,setTooltipConfig:()=>Df,subPixelOptimize:()=>uf,subPixelOptimizeLine:()=>cf,subPixelOptimizeRect:()=>lf,transformDirection:()=>pf,traverseElements:()=>kf,traverseUpdateZ:()=>If,updateProps:()=>Bd}),Jd={},Yd=[`x`,`y`],Xd=[`width`,`height`];function Zd(e){return ko.extend(e)}var Qd=Fu;function $d(e,t){return Qd(e,t)}function ef(e,t){Jd[e]=t}function tf(e){if(Jd.hasOwnProperty(e))return Jd[e]}function nf(e,t,n,r){var i=Pu(e,t);return n&&(r===`center`&&(n=af(n,i.getBoundingRect())),sf(i,n)),i}function rf(e,t,n){var r=new Fo({style:{image:e,x:t.x,y:t.y,width:t.width,height:t.height},onload:function(e){if(n===`center`){var i={width:e.width,height:e.height};r.setStyle(af(t,i))}}});return r}function af(e,t){var n=t.width/t.height,r=e.height*n,i;r<=e.width?i=e.height:(r=e.width,i=r/n);var a=e.x+e.width/2,o=e.y+e.height/2;return{x:a-r/2,y:o-i/2,width:r,height:i}}var of=Iu;function sf(e,t){if(e.applyTransform){var n=e.getBoundingRect().calculateTransform(t);e.applyTransform(n)}}function cf(e,t){return Ro(e,e,{lineWidth:t}),e}function lf(e,t){return zo(e,e,t),e}var uf=Bo;function df(e,t){for(var n=_t([]);e&&e!==t;)yt(n,e.getLocalTransform(),n),e=e.parent;return n}function ff(e,t,n){return t&&!oe(t)&&(t=$n.getLocalTransform(t)),n&&(t=Ct([],t)),Lt([],e,t)}function pf(e,t,n){var r=t[4]===0||t[5]===0||t[0]===0?1:ps(2*t[4]/t[0]),i=t[4]===0||t[5]===0||t[2]===0?1:ps(2*t[4]/t[2]),a=[e===`left`?-r:e===`right`?r:0,e===`top`?-i:e===`bottom`?i:0];return a=ff(a,t,n),ps(a[0])>ps(a[1])?a[0]>0?`right`:`left`:a[1]>0?`bottom`:`top`}function mf(e){return!e.isGroup}function hf(e){return e.shape!=null}function gf(e,t,n){if(!e||!t)return;function r(e){var t={};return e.traverse(function(e){mf(e)&&e.anid&&(t[e.anid]=e)}),t}function i(e){var t={x:e.x,y:e.y,rotation:e.rotation};return hf(e)&&(t.shape=P(e.shape)),t}var a=r(e);t.traverse(function(e){if(mf(e)&&e.anid){var t=a[e.anid];if(t){var r=i(e);e.attr(i(t)),Bd(e,r,n,Xc(e).dataIndex)}}})}function _f(e,t){return z(e,function(e){var n=e[0];n=fs(n,t.x),n=ds(n,t.x+t.width);var r=e[1];return r=fs(r,t.y),r=ds(r,t.y+t.height),[n,r]})}function vf(e,t){var n=fs(e.x,t.x),r=ds(e.x+e.width,t.x+t.width),i=fs(e.y,t.y),a=ds(e.y+e.height,t.y+t.height);if(r>=n&&a>=i)return{x:n,y:i,width:r-n,height:a-i}}function yf(e,t,n){var r=I({rectHover:!0},t),i=r.style={strokeNoScale:!0};if(n||={x:-1,y:-1,width:2,height:2},e)return e.indexOf(`image://`)===0?(i.image=e.slice(8),L(i,n),new Fo(r)):nf(e.replace(`path://`,``),r,n,`center`)}function bf(e,t,n,r,i){for(var a=0,o=i[i.length-1];a1)return!1;var g=Sf(p,m,u,d)/f;return!(g<0||g>1)}function Sf(e,t,n,r){return e*r-n*t}function Cf(e){return e<=1e-6&&e>=-1e-6}function wf(e,t,n,r,i){return t==null?e:(ge(t)?Tf[0]=Tf[1]=Tf[2]=Tf[3]=t:(Tf[0]=t[0],Tf[1]=t[1],Tf[2]=t[2],Tf[3]=t[3]),r&&(Tf[0]=fs(0,Tf[0]),Tf[1]=fs(0,Tf[1]),Tf[2]=fs(0,Tf[2]),Tf[3]=fs(0,Tf[3])),n&&(Tf[0]=-Tf[0],Tf[1]=-Tf[1],Tf[2]=-Tf[2],Tf[3]=-Tf[3]),Ef(e,Tf,`x`,`width`,3,1,i&&i[0]||0),Ef(e,Tf,`y`,`height`,0,2,i&&i[1]||0),e)}var Tf=[0,0,0,0];function Ef(e,t,n,r,i,a,o){var s=t[a]+t[i],c=e[r];e[r]+=s,o=fs(0,ds(o,c)),e[r]=0?-t[i]:t[a]>=0?c+t[a]:ps(s)>1e-8?(c-o)*t[i]/s:0):e[n]-=t[i]}function Df(e){var t=e.itemTooltipOption,n=e.componentModel,r=e.itemName,i=V(t)?{formatter:t}:t,a=n.mainType,o=n.componentIndex,s={componentType:a,name:r,$vars:[`name`]};s[a+`Index`]=o;var c=e.formatterParamsExtra;c&&R(ue(c),function(e){ze(s,e)||(s[e]=c[e],s.$vars.push(e))});var l=Xc(e.el);l.componentMainType=a,l.componentIndex=o,l.tooltipConfig={name:r,option:L({content:r,encodeHTMLContent:!0,formatterParams:s},i)}}function Of(e,t){var n;e.isGroup&&(n=t(e)),n||e.traverse(t)}function kf(e,t){if(e)if(B(e))for(var n=0;nt&&(t=r),rt&&(n=t=0),{min:n,max:t}}function If(e,t,n){Lf(e,t,n,-1/0)}function Lf(e,t,n,r){if(e.ignoreModelZ)return r;var i=e.getTextContent(),a=e.getTextGuideLine();if(e.isGroup)for(var o=e.childrenRef(),s=0;s1){var l=s.shift();s.length===1&&(n[o]=s[0]),this._update&&this._update(l,a)}else c===1?(n[o]=null,this._update&&this._update(s,a)):this._remove&&this._remove(a)}this._performRestAdd(i,n)},e.prototype._executeMultiple=function(){var e=this._old,t=this._new,n={},r={},i=[],a=[];this._initIndexMap(e,n,i,`_oldKeyGetter`),this._initIndexMap(t,r,a,`_newKeyGetter`);for(var o=0;o1&&d===1)this._updateManyToOne&&this._updateManyToOne(l,c),r[s]=null;else if(u===1&&d>1)this._updateOneToMany&&this._updateOneToMany(l,c),r[s]=null;else if(u===1&&d===1)this._update&&this._update(l,c),r[s]=null;else if(u>1&&d>1)this._updateManyToMany&&this._updateManyToMany(l,c),r[s]=null;else if(u>1)for(var f=0;f1)for(var o=0;ol&&(l=p)}s[0]=c,s[1]=l}},r=function(){return this._data?this._data.length/this._dimSize:0};Hp=(e={},e[el+`_`+al]={pure:!0,appendData:i},e[el+`_row`]={pure:!0,appendData:function(){throw Error(`Do not support appendData when set seriesLayoutBy: "row".`)}},e[tl]={pure:!0,appendData:i},e[nl]={pure:!0,appendData:function(e){var t=this._data;R(e,function(e,n){for(var r=t[n]||(t[n]=[]),i=0;i<(e||[]).length;i++)r.push(e[i])})}},e[$c]={appendData:i},e[rl]={persistent:!1,pure:!0,appendData:function(e){this._data=e},clean:function(){this._offset+=this.count(),this._data=null}},e);function i(e){for(var t=0;tt},gte:function(e,t){return e>=t}};(function(){function e(e,t){ge(t)||$s(``),this._opFn=um[e],this._rvalFloat=Hs(t)}return e.prototype.evaluate=function(e){return ge(e)?this._opFn(e,this._rvalFloat):this._opFn(Hs(e),this._rvalFloat)},e})();var dm=function(){function e(e,t){var n=e===`desc`;this._resultLT=n?1:-1,t??=n?`min`:`max`,this._incomparable=t===`min`?-1/0:1/0}return e.prototype.evaluate=function(e,t){var n=ge(e)?e:Hs(e),r=ge(t)?t:Hs(t),i=isNaN(n),a=isNaN(r);if(i&&(n=this._incomparable),a&&(r=this._incomparable),i&&a){var o=V(e),s=V(t);o&&(n=s?e:0),s&&(r=o?t:0)}return nr?-this._resultLT:0},e}();(function(){function e(e,t){this._rval=t,this._isEQ=e,this._rvalTypeof=typeof t,this._rvalFloat=Hs(t)}return e.prototype.evaluate=function(e){var t=e===this._rval;if(!t){var n=typeof e;n!==this._rvalTypeof&&(n===`number`||this._rvalTypeof===`number`)&&(t=Hs(e)===this._rvalFloat)}return this._isEQ?t:!t},e})();function fm(e){var t=``,n=-1/0,r=-1/0,i=1/0,a=1/0;return e&&(e.g!=null&&(t+=`G`+e.g,n=e.g),e.ge!=null&&(t+=`GE`+e.ge,r=e.ge),e.l!=null&&(t+=`L`+e.l,i=e.l),e.le!=null&&(t+=`LE`+e.le,a=e.le)),{key:t,g:n,ge:r,l:i,le:a}}function pm(e,t){return t>e.g&&t>=e.ge&&t`u`?Array:Uint32Array,hm=typeof Uint16Array>`u`?Array:Uint16Array,gm=typeof Int32Array>`u`?Array:Int32Array,_m=typeof Float64Array>`u`?Array:Float64Array,vm={float:_m,int:gm,ordinal:Array,number:Array,time:_m},ym;function bm(e){return e>65535?mm:hm}function xm(e){var t=e.constructor;return t===Array?e.slice():new t(e)}function Sm(e,t,n,r,i){var a=vm[n||`float`];if(i){var o=e[t],s=o&&o.length;if(s!==r){for(var c=new a(r),l=0;lh[1]&&(h[1]=m)}return this._rawCount=this._count=s,{start:o,end:s}},e.prototype._initDataFromProvider=function(e,t,n){for(var r=this._provider,i=this._chunks,a=this._dimensions,o=a.length,s=this._rawExtent,c=z(a,function(e){return e.property}),l=0;lg[1]&&(g[1]=h)}}!r.persistent&&r.clean&&r.clean(),this._rawCount=this._count=t,this._extent=[]},e.prototype.count=function(){return this._count},e.prototype.get=function(e,t){if(!(t>=0&&t=0&&t=this._rawCount||e<0)return-1;if(!this._indices)return e;var t=this._indices,n=t[e];if(n!=null&&ne)i=a-1;else return a}return-1},e.prototype.getIndices=function(){var e,t=this._indices;if(t){var n=t.constructor,r=this._count;if(n===Array){e=new n(r);for(var i=0;i=l&&g<=u||isNaN(g))&&(o[s++]=p),p++}f=!0}else if(i===2){for(var m=d[r[0]],_=d[r[1]],v=e[r[1]][0],y=e[r[1]][1],h=0;h=l&&g<=u||isNaN(g))&&(b>=v&&b<=y||isNaN(b))&&(o[s++]=p),p++}f=!0}}if(!f)if(i===1)for(var h=0;h=l&&g<=u||isNaN(g))&&(o[s++]=x)}else for(var h=0;he[w][1])&&(S=!1)}S&&(o[s++]=t.getRawIndex(h))}return sg[1]&&(g[1]=h)}}}},e.prototype.lttbDownSample=function(e,t){var n=this.clone([e],!0),r=n._chunks[e],i=this.count(),a=0,o=Math.floor(1/t),s=this.getRawIndex(0),c,l,u,d=new(bm(this._rawCount))(Math.min((Math.ceil(i/o)+2)*2,i));d[a++]=s;for(var f=1;fc&&(c=l,u=v)}T>0&&To&&(m=o-l);for(var h=0;hp&&(p=g,f=l+h)}var _=this.getRawIndex(u),v=this.getRawIndex(f);ul-p&&(s=l-p,o.length=s);for(var m=0;mu[1]&&(u[1]=g),d[f++]=_}return i._count=f,i._indices=d,i._updateGetRawIdx(),i},e.prototype.each=function(e,t){if(this._count)for(var n=e.length,r=this._chunks,i=0,a=this.count();id&&(d=p))}return o[c]=[u,d]},e.prototype.getRawDataItem=function(e){var t=this.getRawIndex(e);if(this._provider.persistent)return this._provider.getItem(t);for(var n=[],r=this._chunks,i=0;i=0?this._indices[e]:-1},e.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},e.internalField=function(){function e(e,t,n,r){return lm(e[r],this._dimensions[r])}ym={arrayRows:e,objectRows:function(e,t,n,r){return lm(e[t],this._dimensions[r])},keyedColumns:e,original:function(e,t,n,r){var i=e&&(e.value==null?e:e.value);return lm(i instanceof Array?i[r]:i,this._dimensions[r])},typedArray:function(e,t,n,r){return e[r]}}}(),e}(),wm=Cc(),Tm={float:`f`,int:`i`,ordinal:`o`,number:`n`,time:`t`},Em=function(){function e(e){this.dimensions=e.dimensions,this._dimOmitted=e.dimensionOmitted,this.source=e.source,this._fullDimCount=e.fullDimensionCount,this._updateDimOmitted(e.dimensionOmitted)}return e.prototype.isDimensionOmitted=function(){return this._dimOmitted},e.prototype._updateDimOmitted=function(e){this._dimOmitted=e,e&&(this._dimNameMap||=km(this.source))},e.prototype.getSourceDimensionIndex=function(e){return Ce(this._dimNameMap.get(e),-1)},e.prototype.getSourceDimension=function(e){var t=this.source.dimensionsDefine;if(t)return t[e]},e.prototype.makeStoreSchema=function(){for(var e=this._fullDimCount,t=Lp(this.source),n=!Am(e),r=``,i=[],a=0,o=0;a30}var jm=H,Mm=z,Nm=typeof Int32Array>`u`?Array:Int32Array,Pm=`e\0\0`,Fm=-1,Im=[`hasItemOption`,`_nameList`,`_idList`,`_invertedIndicesMap`,`_dimSummary`,`userOutput`,`_rawData`,`_dimValueGetter`,`_nameDimIdx`,`_idDimIdx`,`_nameRepeatCount`],Lm=[`_approximateExtent`],Rm,zm,Bm,Vm,Hm,Um,Wm,Gm=function(){function e(e,t){this.type=`list`,this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=[`cloneShallow`,`downSample`,`minmaxDownSample`,`lttbDownSample`,`map`],this.CHANGABLE_METHODS=[`filterSelf`,`selectRange`],this.DOWNSAMPLE_METHODS=[`downSample`,`minmaxDownSample`,`lttbDownSample`];var n,r=!1;Dm(e)?(n=e.dimensions,this._dimOmitted=e.isDimensionOmitted(),this._schema=e):(r=!0,n=e),n||=[`x`,`y`];for(var i={},a=[],o={},s=!1,c={},l=0;l=t)){var n=this._store.getProvider();this._updateOrdinalMeta();var r=this._nameList,i=this._idList;if(n.getSource().sourceFormat===`original`&&!n.pure)for(var a=[],o=e;o0},e.prototype.ensureUniqueItemVisual=function(e,t){var n=this._itemVisuals,r=n[e];r||=n[e]={};var i=r[t];return i??(i=this.getVisual(t),B(i)?i=i.slice():jm(i)&&(i=I({},i)),r[t]=i),i},e.prototype.setItemVisual=function(e,t,n){var r=this._itemVisuals[e]||{};this._itemVisuals[e]=r,jm(t)?I(r,t):r[t]=n},e.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},e.prototype.setLayout=function(e,t){jm(e)?I(this._layout,e):this._layout[e]=t},e.prototype.getLayout=function(e){return this._layout[e]},e.prototype.getItemLayout=function(e){return this._itemLayouts[e]},e.prototype.setItemLayout=function(e,t,n){this._itemLayouts[e]=n?I(this._itemLayouts[e]||{},t):t},e.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},e.prototype.setItemGraphicEl=function(e,t){Zc(this.hostModel&&this.hostModel.seriesIndex,this.dataType,e,t),this._graphicEls[e]=t},e.prototype.getItemGraphicEl=function(e){return this._graphicEls[e]},e.prototype.eachItemGraphicEl=function(e,t){R(this._graphicEls,function(n,r){n&&e&&e.call(t,n,r)})},e.prototype.cloneShallow=function(t){return t||=new e(this._schema?this._schema:Mm(this.dimensions,this._getDimInfo,this),this.hostModel),Hm(t,this),t._store=this._store,t},e.prototype.wrapMethod=function(e,t){var n=this[e];me(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var e=n.apply(this,arguments);return t.apply(this,[e].concat(Te(arguments)))})},e.internalField=function(){Rm=function(e){var t=e._invertedIndicesMap;R(t,function(n,r){var i=e._dimInfos[r],a=i.ordinalMeta,o=e._store;if(a){n=t[r]=new Nm(a.categories.length);for(var s=0;s1&&(s+=`__ec__`+l),r[t]=s}}}(),e}();function Km(e,t){Op(e)||(e=Ap(e)),t||={};var n=t.coordDimensions||[],r=t.dimensionsDefine||e.dimensionsDefine||[],i=Ie(),a=[],o=qm(e,n,r,t.dimensionsCount),s=t.canOmitUnusedDimensions&&Am(o),c=r===e.dimensionsDefine,l=c?km(e):Om(r),u=t.encodeDefine;!u&&t.encodeDefaulter&&(u=t.encodeDefaulter(e,o));for(var d=Ie(u),f=new gm(o),p=0;p0&&(e.name+=t-1)}),new Em({source:e,dimensions:a,fullDimensionCount:o,dimensionOmitted:s})}function qm(e,t,n,r){var i=Math.max(e.dimensionsDetectedCount||1,t.length,n.length,r||0);return R(t,function(e){var t;H(e)&&(t=e.dimsDef)&&(i=Math.max(i,t.length))}),i}function Jm(e,t,n){if(n||t.hasKey(e)){for(var r=0;t.hasKey(e+r);)r++;e+=r}return t.set(e,!0),e}var Ym={},Xm={},Zm=function(){function e(){this._normalMasterList=[],this._nonSeriesBoxMasterList=[]}return e.prototype.create=function(e,t){this._nonSeriesBoxMasterList=n(Ym,!0),this._normalMasterList=n(Xm,!1);function n(n,r){var i=[];return R(n,function(n,r){var a=n.create(e,t);i=i.concat(a||[])}),i}},e.prototype.update=function(e,t){R(this._normalMasterList,function(n){n.update&&n.update(e,t)})},e.prototype.getCoordinateSystems=function(){return this._normalMasterList.concat(this._nonSeriesBoxMasterList)},e.register=function(e,t){if(e===`matrix`||e===`calendar`){Ym[e]=t;return}Xm[e]=t},e.get=function(e){return Xm[e]||Ym[e]},e}();function eee(e){return!!Ym[e]}var tee=Ie();function Qm(e){var t=e.getShallow(`coord`,!0),n=1;if(t==null){var r=tee.get(e.type);r&&r.getCoord2&&(n=2,t=r.getCoord2(e))}return{coord:t,from:n}}function $m(e,t){var n=e.getShallow(`coordinateSystem`),r=e.getShallow(`coordinateSystemUsage`,!0),i=0;if(n){var a=e.mainType===`series`;r??=a?`data`:`box`,r===`data`?(i=1,a||(i=0)):r===`box`&&(i=2,!a&&!eee(n)&&(i=0))}return{coordSysType:n,kind:i}}function eh(e){var t=e.targetModel,n=e.coordSysType,r=e.coordSysProvider,i=e.isDefaultDataCoordSys;e.allowNotFound;var a=$m(t,!0),o=a.kind,s=a.coordSysType;if(i&&o!==1&&(o=1,s=n),o===0||s!==n)return 0;var c=r(n,t);return c?(o===1?t.coordinateSystem=c:t.boxCoordinateSystem=c,o):0}var th=function(){function e(e){this.coordSysDims=[],this.axisMap=Ie(),this.categoryAxisMap=Ie(),this.coordSysName=e}return e}();function nh(e){var t=e.get(`coordinateSystem`),n=new th(t),r=rh[t];if(r)return r(e,n,n.axisMap,n.categoryAxisMap),n}var rh={cartesian2d:function(e,t,n,r){var i=e.getReferringComponents(`xAxis`,Dc).models[0],a=e.getReferringComponents(`yAxis`,Dc).models[0];t.coordSysDims=[`x`,`y`],n.set(`x`,i),n.set(`y`,a),ih(i)&&(r.set(`x`,i),t.firstCategoryDimIndex=0),ih(a)&&(r.set(`y`,a),t.firstCategoryDimIndex??=1)},singleAxis:function(e,t,n,r){var i=e.getReferringComponents(`singleAxis`,Dc).models[0];t.coordSysDims=[`single`],n.set(`single`,i),ih(i)&&(r.set(`single`,i),t.firstCategoryDimIndex=0)},polar:function(e,t,n,r){var i=e.getReferringComponents(`polar`,Dc).models[0],a=i.findAxisModel(`radiusAxis`),o=i.findAxisModel(`angleAxis`);t.coordSysDims=[`radius`,`angle`],n.set(`radius`,a),n.set(`angle`,o),ih(a)&&(r.set(`radius`,a),t.firstCategoryDimIndex=0),ih(o)&&(r.set(`angle`,o),t.firstCategoryDimIndex??=1)},geo:function(e,t,n,r){t.coordSysDims=[`lng`,`lat`]},parallel:function(e,t,n,r){var i=e.ecModel,a=i.getComponent(`parallel`,e.get(`parallelIndex`)),o=t.coordSysDims=a.dimensions.slice();R(a.parallelAxisIndex,function(e,a){var s=i.getComponent(`parallelAxis`,e),c=o[a];n.set(c,s),ih(s)&&(r.set(c,s),t.firstCategoryDimIndex??=a)})},matrix:function(e,t,n,r){var i=e.getReferringComponents(`matrix`,Dc).models[0];t.coordSysDims=[`x`,`y`];var a=i.getDimensionModel(`x`),o=i.getDimensionModel(`y`);n.set(`x`,a),n.set(`y`,o),r.set(`x`,a),r.set(`y`,o)}};function ih(e){return e.get(`type`)===`category`}function ah(e,t,n){n||={};var r=n.byIndex,i=n.stackedCoordDimension,a,o,s;oh(t)?a=t:(o=t.schema,a=o.dimensions,s=t.store);var c=!!(e&&e.get(`stack`)),l,u,d,f,p=!0;function m(e){return e.type!==`ordinal`&&e.type!==`time`}if(R(a,function(e,t){V(e)&&(a[t]=e={name:e}),m(e)||(p=!1)}),R(a,function(e,t){c&&!e.isExtraCoord&&(!r&&!l&&e.ordinalMeta&&(l=e),!u&&m(e)&&(!p||e.coordDim!==`x`&&e.coordDim!==`angle`)&&(!i||i===e.coordDim)&&(u=e))}),u&&!r&&!l&&(r=!0),u){d=`__\0ecstackresult_`+e.id,f=`__\0ecstackedover_`+e.id,l&&(l.createInvertedIndices=!0);var h=u.coordDim,g=u.type,_=0;R(a,function(e){e.coordDim===h&&_++});var v={name:d,coordDim:h,coordDimIndex:_,type:g,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length},y={name:f,coordDim:f,coordDimIndex:_+1,type:g,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length+1};o?(s&&(v.storeDimIndex=s.ensureCalculationDimension(f,g),y.storeDimIndex=s.ensureCalculationDimension(d,g)),o.appendCalculationDimension(v),o.appendCalculationDimension(y)):(a.push(v),a.push(y))}return{stackedDimension:u&&u.name,stackedByDimension:l&&l.name,isStackedByIndex:r,stackedOverDimension:f,stackResultDimension:d}}function oh(e){return!Dm(e.schema)}function sh(e,t){return!!t&&t===e.getCalculationInfo(`stackedDimension`)}function ch(e,t){return sh(e,t)?e.getCalculationInfo(`stackResultDimension`):t}function lh(e,t){var n=e.get(`coordinateSystem`),r=Zm.get(n),i;return t&&t.coordSysDims&&(i=z(t.coordSysDims,function(e){var n={name:e},r=t.axisMap.get(e);return r&&(n.type=om(r.get(`type`))),n})),i||=r&&(r.getDimensionsInfo?r.getDimensionsInfo():r.dimensions.slice())||[`x`,`y`],i}function nee(e,t,n){var r,i;return n&&R(e,function(e,a){var o=e.coordDim,s=n.categoryAxisMap.get(o);s&&(r??=a,e.ordinalMeta=s.getOrdinalMeta(),t&&(e.createInvertedIndices=!0)),e.otherDims.itemName!=null&&(i=!0)}),!i&&r!=null&&(e[r].otherDims.itemName=0),r}function uh(e,t,n){n||={};var r=t.getSourceManager(),i,a=!1;e?(a=!0,i=Ap(e)):(i=r.getSource(),a=i.sourceFormat===$c);var o=nh(t),s=lh(t,o),c=n.useEncodeDefaulter,l=me(c)?c:c?pe(Sp,s,t):null,u={coordDimensions:s,generateCoord:n.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:l,canOmitUnusedDimensions:!a},d=Km(i,u),f=nee(d.dimensions,n.createInvertedIndices,o),p=a?null:r.getSharedDataStore(d),m=ah(t,{schema:d,store:p}),h=new Gm(d,t);h.setCalculationInfo(m);var g=f!=null&&dh(i)?function(e,t,n,r){return r===f?n:this.defaultDimValueGetter(e,t,n,r)}:null;return h.hasItemOption=!1,h.initData(a?i:p,null,g),h}function dh(e){if(e.sourceFormat===`original`)return!B(ac(fh(e.data||[])))}function fh(e){for(var t=0;t=0&&n.push(e)}),n}}function _h(e,t){return F(F({},e,!0),t,!0)}var vh=Math.log(2);function yh(e,t,n,r,i,a){var o=r+`-`+i,s=e.length;if(a.hasOwnProperty(o))return a[o];if(t===1){var c=Math.round(Math.log((1<>1)%2;s.cssText=[`position: absolute`,`visibility: hidden`,`padding: 0`,`margin: 0`,`border-width: 0`,`user-select: none`,`width:0`,`height:0`,r[c]+`:0`,i[l]+`:0`,r[1-c]+`:auto`,i[1-l]+`:auto`,``].join(`!important;`),e.appendChild(o),n.push(o)}return t.clearMarkers=function(){R(n,function(e){e.parentNode&&e.parentNode.removeChild(e)})},n}function Dh(e,t,n){for(var r=n?`invTrans`:`trans`,i=t[r],a=t.srcCoords,o=[],s=[],c=!0,l=0;l<4;l++){var u=e[l].getBoundingClientRect(),d=2*l,f=u.left,p=u.top;o.push(f,p),c=c&&a&&f===a[d]&&p===a[d+1],s.push(e[l].offsetLeft,e[l].offsetTop)}return c&&i?i:(t.srcCoords=o,t[r]=n?bh(s,o):bh(o,s))}function Oh(e){return e.nodeName.toUpperCase()===`CANVAS`}var kh=/([&<>"'])/g,Ah={"&":`&`,"<":`<`,">":`>`,'"':`"`,"'":`'`};function jh(e){return e==null?``:(e+``).replace(kh,function(e,t){return Ah[t]})}var Mh={time:{month:[`January`,`February`,`March`,`April`,`May`,`June`,`July`,`August`,`September`,`October`,`November`,`December`],monthAbbr:[`Jan`,`Feb`,`Mar`,`Apr`,`May`,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`],dayOfWeek:[`Sunday`,`Monday`,`Tuesday`,`Wednesday`,`Thursday`,`Friday`,`Saturday`],dayOfWeekAbbr:[`Sun`,`Mon`,`Tue`,`Wed`,`Thu`,`Fri`,`Sat`]},legend:{selector:{all:`All`,inverse:`Inv`}},toolbox:{brush:{title:{rect:`Box Select`,polygon:`Lasso Select`,lineX:`Horizontally Select`,lineY:`Vertically Select`,keep:`Keep Selections`,clear:`Clear Selections`}},dataView:{title:`Data View`,lang:[`Data View`,`Close`,`Refresh`]},dataZoom:{title:{zoom:`Zoom`,back:`Zoom Reset`}},magicType:{title:{line:`Switch to Line Chart`,bar:`Switch to Bar Chart`,stack:`Stack`,tiled:`Tile`}},restore:{title:`Restore`},saveAsImage:{title:`Save as Image`,lang:[`Right Click to Save Image`]}},series:{typeNames:{pie:`Pie chart`,bar:`Bar chart`,line:`Line chart`,scatter:`Scatter plot`,effectScatter:`Ripple scatter plot`,radar:`Radar chart`,tree:`Tree`,treemap:`Treemap`,boxplot:`Boxplot`,candlestick:`Candlestick`,k:`K line chart`,heatmap:`Heat map`,map:`Map`,parallel:`Parallel coordinate map`,lines:`Line graph`,graph:`Relationship graph`,sankey:`Sankey diagram`,funnel:`Funnel chart`,gauge:`Gauge`,pictorialBar:`Pictorial bar`,themeRiver:`Theme River Map`,sunburst:`Sunburst`,custom:`Custom chart`,chart:`Chart`}},aria:{general:{withTitle:`This is a chart about "{title}"`,withoutTitle:`This is a chart`},series:{single:{prefix:``,withName:` with type {seriesType} named {seriesName}.`,withoutName:` with type {seriesType}.`},multiple:{prefix:`. It consists of {seriesCount} series count.`,withName:` The {seriesId} series is a {seriesType} representing {seriesName}.`,withoutName:` The {seriesId} series is a {seriesType}.`,separator:{middle:``,end:``}}},data:{allData:`The data is as follows: `,partialData:`The first {displayCnt} items are: `,withName:`the data for {name} is {value}`,withoutName:`{value}`,separator:{middle:`, `,end:`. `}}}},Nh={time:{month:[`一月`,`二月`,`三月`,`四月`,`五月`,`六月`,`七月`,`八月`,`九月`,`十月`,`十一月`,`十二月`],monthAbbr:[`1月`,`2月`,`3月`,`4月`,`5月`,`6月`,`7月`,`8月`,`9月`,`10月`,`11月`,`12月`],dayOfWeek:[`星期日`,`星期一`,`星期二`,`星期三`,`星期四`,`星期五`,`星期六`],dayOfWeekAbbr:[`日`,`一`,`二`,`三`,`四`,`五`,`六`]},legend:{selector:{all:`全选`,inverse:`反选`}},toolbox:{brush:{title:{rect:`矩形选择`,polygon:`圈选`,lineX:`横向选择`,lineY:`纵向选择`,keep:`保持选择`,clear:`清除选择`}},dataView:{title:`数据视图`,lang:[`数据视图`,`关闭`,`刷新`]},dataZoom:{title:{zoom:`区域缩放`,back:`区域缩放还原`}},magicType:{title:{line:`切换为折线图`,bar:`切换为柱状图`,stack:`切换为堆叠`,tiled:`切换为平铺`}},restore:{title:`还原`},saveAsImage:{title:`保存为图片`,lang:[`右键另存为图片`]}},series:{typeNames:{pie:`饼图`,bar:`柱状图`,line:`折线图`,scatter:`散点图`,effectScatter:`涟漪散点图`,radar:`雷达图`,tree:`树图`,treemap:`矩形树图`,boxplot:`箱型图`,candlestick:`K线图`,k:`K线图`,heatmap:`热力图`,map:`地图`,parallel:`平行坐标图`,lines:`线图`,graph:`关系图`,sankey:`桑基图`,funnel:`漏斗图`,gauge:`仪表盘图`,pictorialBar:`象形柱图`,themeRiver:`主题河流图`,sunburst:`旭日图`,custom:`自定义图表`,chart:`图表`}},aria:{general:{withTitle:`这是一个关于“{title}”的图表。`,withoutTitle:`这是一个图表,`},series:{single:{prefix:``,withName:`图表类型是{seriesType},表示{seriesName}。`,withoutName:`图表类型是{seriesType}。`},multiple:{prefix:`它由{seriesCount}个图表系列组成。`,withName:`第{seriesId}个系列是一个表示{seriesName}的{seriesType},`,withoutName:`第{seriesId}个系列是一个{seriesType},`,separator:{middle:`;`,end:`。`}}},data:{allData:`其数据是——`,partialData:`其中,前{displayCnt}项是——`,withName:`{name}的数据是{value}`,withoutName:`{value}`,separator:{middle:`,`,end:``}}}},Ph=`ZH`,Fh=`EN`,Ih=Fh,Lh={},Rh={},zh=Ue.domSupported?function(){return(document.documentElement.lang||navigator.language||navigator.browserLanguage||Ih).toUpperCase().indexOf(Ph)>-1?Ph:Ih}():Ih;function Bh(e,t){e=e.toUpperCase(),Rh[e]=new hp(t),Lh[e]=t}function Vh(e){if(V(e)){var t=Lh[e.toUpperCase()]||{};return e===Ph||e===Fh?P(t):F(P(t),P(Lh[Ih]),!1)}return F(P(e),P(Lh[Ih]),!1)}function Hh(e){return Rh[e]}function Uh(){return Rh[Ih]}Bh(Fh,Mh),Bh(Ph,Nh);var Wh=null;function Gh(){return Wh}function Kh(e,t){var n=Gh(),r=t.breakOption,i=t.breakParsed;return!i&&n&&(i=n.parseAxisBreakOption(r,e)),i}function qh(e){var t=e.brk;return t?t.breaks:[]}function Jh(e){var t=e.brk;return t?t.hasBreaks():!1}var Yh=1e3,Xh=Yh*60,Zh=Xh*60,Qh=Zh*24,$h=Qh*365,eg={year:/({yyyy}|{yy})/,month:/({MMMM}|{MMM}|{MM}|{M})/,day:/({dd}|{d})/,hour:/({HH}|{H}|{hh}|{h})/,minute:/({mm}|{m})/,second:/({ss}|{s})/,millisecond:/({SSS}|{S})/},tg={year:`{yyyy}`,month:`{MMM}`,day:`{d}`,hour:`{HH}:{mm}`,minute:`{HH}:{mm}`,second:`{HH}:{mm}:{ss}`,millisecond:`{HH}:{mm}:{ss} {SSS}`},ng=`{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}`,rg=`{yyyy}-{MM}-{dd}`,ig={year:`{yyyy}`,month:`{yyyy}-{MM}`,day:rg,hour:rg+` `+tg.hour,minute:rg+` `+tg.minute,second:rg+` `+tg.second,millisecond:ng},ag=[`year`,`month`,`day`,`hour`,`minute`,`second`,`millisecond`],og=[`year`,`half-year`,`quarter`,`month`,`week`,`half-week`,`day`,`half-day`,`quarter-day`,`hour`,`minute`,`second`,`millisecond`];function sg(e){return!V(e)&&!me(e)?cg(e):e}function cg(e){e||={};var t={},n=!0;return R(ag,function(t){n&&=e[t]==null}),R(ag,function(r,i){var a=e[r];t[r]={};for(var o=null,s=i;s>=0;s--){var c=ag[s],l=H(a)&&!B(a)?a[c]:a,u=void 0;B(l)?(u=l.slice(),o=u[0]||``):V(l)?(o=l,u=[o]):(o==null?o=tg[r]:eg[c].test(o)||(o=t[c][c][0]+` `+o),u=[o],n&&(u[1]=`{primary|`+o+`}`)),t[r][c]=u}}),t}function lg(e,t){return e+=``,`0000`.substr(0,t-e.length)+e}function ug(e){switch(e){case`half-year`:case`quarter`:return`month`;case`week`:case`half-week`:return`day`;case`half-day`:case`quarter-day`:return`hour`;default:return e}}function dg(e){return e===ug(e)}function fg(e){switch(e){case`year`:case`month`:return`day`;case`millisecond`:return`millisecond`;default:return`second`}}function pg(e,t,n,r){var i=Ls(e),a=i[_g(n)](),o=i[vg(n)]()+1,s=Math.floor((o-1)/3)+1,c=i[yg(n)](),l=i[`get`+(n?`UTC`:``)+`Day`](),u=i[bg(n)](),d=(u-1)%12+1,f=i[xg(n)](),p=i[Sg(n)](),m=i[Cg(n)](),h=u>=12?`pm`:`am`,g=h.toUpperCase(),_=(r instanceof hp?r:Hh(r||zh)||Uh()).getModel(`time`),v=_.get(`month`),y=_.get(`monthAbbr`),b=_.get(`dayOfWeek`),x=_.get(`dayOfWeekAbbr`);return(t||``).replace(/{a}/g,h+``).replace(/{A}/g,g+``).replace(/{yyyy}/g,a+``).replace(/{yy}/g,lg(a%100+``,2)).replace(/{Q}/g,s+``).replace(/{MMMM}/g,v[o-1]).replace(/{MMM}/g,y[o-1]).replace(/{MM}/g,lg(o,2)).replace(/{M}/g,o+``).replace(/{dd}/g,lg(c,2)).replace(/{d}/g,c+``).replace(/{eeee}/g,b[l]).replace(/{ee}/g,x[l]).replace(/{e}/g,l+``).replace(/{HH}/g,lg(u,2)).replace(/{H}/g,u+``).replace(/{hh}/g,lg(d+``,2)).replace(/{h}/g,d+``).replace(/{mm}/g,lg(f,2)).replace(/{m}/g,f+``).replace(/{ss}/g,lg(p,2)).replace(/{s}/g,p+``).replace(/{SSS}/g,lg(m,3)).replace(/{S}/g,m+``)}function mg(e,t,n,r,i){var a=null;if(V(n))a=n;else if(me(n)){var o={time:e.time,level:e.time?e.time.level:0},s=Gh();s&&s.makeAxisLabelFormatterParamBreak(o,e.break),a=n(e.value,t,o)}else{var c=e.time;if(c){var l=n[c.lowerTimeUnit][c.upperTimeUnit];a=l[Math.min(c.level,l.length-1)]||``}else{var u=hg(e.value,i);a=n[u][u][0]}}return pg(new Date(e.value),a,i,r)}function hg(e,t){var n=Ls(e),r=n[vg(t)]()+1,i=n[yg(t)](),a=n[bg(t)](),o=n[xg(t)](),s=n[Sg(t)](),c=n[Cg(t)]()===0,l=c&&s===0,u=l&&o===0,d=u&&a===0,f=d&&i===1;return f&&r===1?`year`:f?`month`:d?`day`:u?`hour`:l?`minute`:c?`second`:`millisecond`}function gg(e,t,n){switch(t){case`year`:e[Tg(n)](0);case`month`:e[Eg(n)](1);case`day`:e[Dg(n)](0);case`hour`:e[Og(n)](0);case`minute`:e[kg(n)](0);case`second`:e[Ag(n)](0)}return e}function _g(e){return e?`getUTCFullYear`:`getFullYear`}function vg(e){return e?`getUTCMonth`:`getMonth`}function yg(e){return e?`getUTCDate`:`getDate`}function bg(e){return e?`getUTCHours`:`getHours`}function xg(e){return e?`getUTCMinutes`:`getMinutes`}function Sg(e){return e?`getUTCSeconds`:`getSeconds`}function Cg(e){return e?`getUTCMilliseconds`:`getMilliseconds`}function wg(e){return e?`setUTCFullYear`:`setFullYear`}function Tg(e){return e?`setUTCMonth`:`setMonth`}function Eg(e){return e?`setUTCDate`:`setDate`}function Dg(e){return e?`setUTCHours`:`setHours`}function Og(e){return e?`setUTCMinutes`:`setMinutes`}function kg(e){return e?`setUTCSeconds`:`setSeconds`}function Ag(e){return e?`setUTCMilliseconds`:`setMilliseconds`}function jg(e){if(!Us(e))return V(e)?e:`-`;var t=(e+``).split(`.`);return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,`$1,`)+(t.length>1?`.`+t[1]:``)}function Mg(e,t){return e=(e||``).toLowerCase().replace(/-(.)/g,function(e,t){return t.toUpperCase()}),t&&e&&(e=e.charAt(0).toUpperCase()+e.slice(1)),e}var Ng=Ee;function Pg(e,t,n){var r=`{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}`;function i(e){return e&&Oe(e)?e:`-`}function a(e){return qs(e)}var o=t===`time`,s=e instanceof Date;if(o||s){var c=o?Ls(e):e;if(!isNaN(+c))return pg(c,r,n);if(s)return`-`}if(t===`ordinal`)return he(e)?i(e):ge(e)&&a(e)?e+``:`-`;var l=Hs(e);return a(l)?jg(l):he(e)?i(e):typeof e==`boolean`?e+``:`-`}var Fg=[`a`,`b`,`c`,`d`,`e`,`f`,`g`],Ig=function(e,t){return`{`+e+(t??``)+`}`};function Lg(e,t,n){B(t)||(t=[t]);var r=t.length;if(!r)return``;for(var i=t[0].$vars||[],a=0;a`:``:{renderMode:a,content:`{`+(n.markerId||`markerX`)+`|} `,style:i===`subItem`?{width:4,height:4,borderRadius:2,backgroundColor:r}:{width:10,height:10,borderRadius:5,backgroundColor:r}}:``}function zg(e,t){return t||=`transparent`,V(e)?e:H(e)&&e.colorStops&&(e.colorStops[0]||{}).color||t}var Bg=R,Vg=[`left`,`right`,`top`,`bottom`,`width`,`height`],Hg=[[`width`,`left`,`right`],[`height`,`top`,`bottom`]];function Ug(e,t,n,r,i){var a=0,o=0;r??=1/0,i??=1/0;var s=0;t.eachChild(function(c,l){var u=c.getBoundingRect(),d=t.childAt(l+1),f=d&&d.getBoundingRect(),p,m;if(e===`horizontal`){var h=u.width+(f?-f.x+u.x:0);p=a+h,p>r||c.newline?(a=0,p=h,o+=s+n,s=u.height):s=Math.max(s,u.height)}else{var g=u.height+(f?-f.y+u.y:0);m=o+g,m>i||c.newline?(a+=s+n,o=0,m=g,s=u.width):s=Math.max(s,u.width)}c.newline||(c.x=a,c.y=o,c.markRedraw(),e===`horizontal`?a=p+n:o=m+n)})}var Wg=Ug;pe(Ug,`vertical`),pe(Ug,`horizontal`);function Gg(e,t){return{left:e.getShallow(`left`,t),top:e.getShallow(`top`,t),right:e.getShallow(`right`,t),bottom:e.getShallow(`bottom`,t),width:e.getShallow(`width`,t),height:e.getShallow(`height`,t)}}function Kg(e,t,n){n=Ng(n||0);var r=t.width,i=t.height,a=Cs(e.left,r),o=Cs(e.top,i),s=Cs(e.right,r),c=Cs(e.bottom,i),l=Cs(e.width,r),u=Cs(e.height,i),d=n[2]+n[0],f=n[1]+n[3],p=e.aspect;switch(isNaN(l)&&(l=r-s-f-a),isNaN(u)&&(u=i-c-d-o),p!=null&&(isNaN(l)&&isNaN(u)&&(p>r/i?l=r*.8:u=i*.8),isNaN(l)&&(l=p*u),isNaN(u)&&(u=l/p)),isNaN(a)&&(a=r-s-l-f),isNaN(o)&&(o=i-c-u-d),e.left||e.right){case`center`:a=r/2-l/2-n[3];break;case`right`:a=r-l-f}switch(e.top||e.bottom){case`middle`:case`center`:o=i/2-u/2-n[0];break;case`bottom`:o=i-u-d}a||=0,o||=0,isNaN(l)&&(l=r-f-a-(s||0)),isNaN(u)&&(u=i-d-o-(c||0));var m=new en((t.x||0)+a+n[3],(t.y||0)+o+n[0],l,u);return m.margin=n,m}var qg={rect:1,point:2};function Jg(e,t,n){var r,i,a,o=e.boxCoordinateSystem,s;if(o){var c=Qm(e),l=c.coord,u=c.from;if(o.dataToLayout){a=qg.rect,s=u;var d=o.dataToLayout(l);r=d.contentRect||d.rect}else n&&n.enableLayoutOnlyByCenter&&o.dataToPoint&&(a=qg.point,s=u,i=o.dataToPoint(l))}return a??=qg.rect,a===qg.rect&&(r||={x:0,y:0,width:t.getWidth(),height:t.getHeight()},i=[r.x+r.width/2,r.y+r.height/2]),{type:a,refContainer:r,refPoint:i,boxCoordFrom:s}}function Yg(e,t,n,r,i,a){var o=!i||!i.hv||i.hv[0],s=!i||!i.hv||i.hv[1],c=i&&i.boundingMode||`all`;if(a||=e,a.x=e.x,a.y=e.y,!o&&!s)return!1;var l;if(c===`raw`)l=e.type===`group`?new en(0,0,+t.width||0,+t.height||0):e.getBoundingRect();else if(l=e.getBoundingRect(),e.needLocalTransform()){var u=e.getLocalTransform();l=l.clone(),l.applyTransform(u)}var d=Kg(L({width:l.width,height:l.height},t),n,r),f=o?d.x-l.x:0,p=s?d.y-l.y:0;return c===`raw`?(a.x=f,a.y=p):(a.x+=f,a.y+=p),a===e&&e.markRedraw(),!0}function Xg(e){var t=e.layoutMode||e.constructor.layoutMode;return H(t)?t:t?{type:t}:null}function Zg(e,t,n){var r=n&&n.ignoreSize;!B(r)&&(r=[r,r]);var i=o(Hg[0],0),a=o(Hg[1],1);c(Hg[0],e,i),c(Hg[1],e,a);function o(n,i){var a={},o=0,c={},l=0,u=2;if(Bg(n,function(t){c[t]=e[t]}),Bg(n,function(e){ze(t,e)&&(a[e]=c[e]=t[e]),s(a,e)&&o++,s(c,e)&&l++}),r[i])return s(t,n[1])?c[n[2]]=null:s(t,n[2])&&(c[n[1]]=null),c;if(l===u||!o)return c;if(o>=u)return a;for(var d=0;d=0;o--)a=F(a,n[o],!0);t.defaultOption=a}return t.defaultOption},t.prototype.getReferringComponents=function(e,t){var n=e+`Index`,r=e+`Id`;return Oc(this.ecModel,e,{index:this.get(n,!0),id:this.get(r,!0)},t)},t.prototype.getBoxLayoutParams=function(){return Gg(this,!1)},t.prototype.getZLevelKey=function(){return``},t.prototype.setZLevel=function(e){this.option.zlevel=e},t.protoInitialize=function(){var e=t.prototype;e.type=`component`,e.id=``,e.name=``,e.mainType=``,e.subType=``,e.componentIndex=0}(),t}(hp);$e(t_,hp),it(t_),hh(t_),gh(t_,n_);function n_(e){var t=[];return R(t_.getClassesByMainType(e),function(e){t=t.concat(e.dependencies||e.prototype.dependencies||[])}),t=z(t,function(e){return Je(e).main}),e!==`dataset`&&re(t,`dataset`)<=0&&t.unshift(`dataset`),t}var r_=Cc(),i_=Cc(),a_=function(){function e(){}return e.prototype.getColorFromPalette=function(e,t,n){var r=nc(this.get(`color`,!0)),i=this.get(`colorLayer`,!0);return c_(this,r_,r,i,e,t,n)},e.prototype.clearColorPalette=function(){l_(this,r_)},e}();function o_(e,t,n,r){return c_(e,i_,nc(e.get([`aria`,`decal`,`decals`])),null,t,n,r)}function s_(e,t){for(var n=e.length,r=0;rt)return e[r];return e[n-1]}function c_(e,t,n,r,i,a,o){a||=e;var s=t(a),c=s.paletteIdx||0,l=s.paletteNameMap=s.paletteNameMap||{};if(l.hasOwnProperty(i))return l[i];var u=o==null||!r?n:s_(r,o);if(u||=n,!(!u||!u.length)){var d=u[c];return i&&(l[i]=d),s.paletteIdx=(c+1)%u.length,d}}function l_(e,t){t(e).paletteIdx=0,t(e).paletteNameMap={}}var u_=/\{@(.+?)\}/g,d_=function(){function e(){}return e.prototype.getDataParams=function(e,t){var n=this.getData(t),r=this.getRawValue(e,t),i=n.getRawIndex(e),a=n.getName(e),o=n.getRawDataItem(e),s=n.getItemVisual(e,`style`),c=s&&s[n.getItemVisual(e,`drawType`)||`fill`],l=s&&s.stroke,u=this.mainType,d=u===`series`,f=n.userOutput&&n.userOutput.get();return{componentType:u,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:d?this.subType:null,seriesIndex:this.seriesIndex,seriesId:d?this.id:null,seriesName:d?this.name:null,name:a,dataIndex:i,data:o,dataType:t,value:r,color:c,borderColor:l,dimensionNames:f?f.fullDimensions:null,encode:f?f.encode:null,$vars:[`seriesName`,`name`,`value`]}},e.prototype.getFormattedLabel=function(e,t,n,r,i,a){t||=`normal`;var o=this.getData(n),s=this.getDataParams(e,n);if(a&&(s.value=a.interpolatedValue),r!=null&&B(s.value)&&(s.value=s.value[r]),i||=o.getItemModel(e).get(t===`normal`?[`label`,`formatter`]:[t,`label`,`formatter`]),me(i))return s.status=t,s.dimensionIndex=r,i(s);if(V(i))return Lg(i,s).replace(u_,function(t,n){var r=n.length,i=n;i.charAt(0)===`[`&&i.charAt(r-1)===`]`&&(i=+i.slice(1,r-1));var s=nm(o,e,i);if(a&&B(a.interpolatedValue)){var c=o.getDimensionIndex(i);c>=0&&(s=a.interpolatedValue[c])}return s==null?``:s+``})},e.prototype.getRawValue=function(e,t){return nm(this.getData(t),e)},e.prototype.formatTooltip=function(e,t,n){},e}();function f_(e){var t,n;return H(e)?e.type&&(n=e):t=e,{text:t,frag:n}}function p_(e){return new m_(e)}var m_=function(){function e(e){e||={},this._reset=e.reset,this._plan=e.plan,this._count=e.count,this._onDirty=e.onDirty,this._dirty=!0}return e.prototype.perform=function(e){var t=this._upstream,n=e&&e.skip;if(this._dirty&&t){var r=this.context;r.data=r.outputData=t.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var i;this._plan&&!n&&(i=this._plan(this.context));var a=l(this._modBy),o=this._modDataCount||0,s=l(e&&e.modBy),c=e&&e.modDataCount||0;(a!==s||o!==c)&&(i=`reset`);function l(e){return!(e>=1)&&(e=1),e}var u;(this._dirty||i===`reset`)&&(this._dirty=!1,u=this._doReset(n)),this._modBy=s,this._modDataCount=c;var d=e&&e.step;if(this._dueEnd=t?t._outputDueEnd:this._count?this._count(this.context):1/0,this._progress){var f=this._dueIndex,p=Math.min(d==null?1/0:this._dueIndex+d,this._dueEnd);if(!n&&(u||f1&&r>0?s:o}};return a;function o(){return t=e?null:a9e10&&(this._versionSignBase=0)},e.prototype._getVersionSign=function(){return this._sourceHost.uid+`_`+this._versionSignBase},e.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},e.prototype._createSource=function(){this._setLocalSource([],[]);var e=this._sourceHost,t=this._getUpstreamSourceManagers(),n=!!t.length,r,i;if(T_(e)){var a=e,o=void 0,s=void 0,c=void 0;if(n){var l=t[0];l.prepareSource(),c=l.getSource(),o=c.data,s=c.sourceFormat,i=[l._getVersionSign()]}else o=a.get(`data`,!0),s=ve(o)?rl:$c,i=[];var u=this._getSourceMetaRawOption()||{},d=c&&c.metaRawOption||{},f=Ce(u.seriesLayoutBy,d.seriesLayoutBy)||null,p=Ce(u.sourceHeader,d.sourceHeader),m=Ce(u.dimensions,d.dimensions);r=f!==d.seriesLayoutBy||!!p!=!!d.sourceHeader||m?[kp(o,{seriesLayoutBy:f,sourceHeader:p,dimensions:m},s)]:[]}else{var h=e;if(n){var g=this._applyTransform(t);r=g.sourceList,i=g.upstreamSignList}else r=[kp(h.get(`source`,!0),this._getSourceMetaRawOption(),null)],i=[]}this._setLocalSource(r,i)},e.prototype._applyTransform=function(e){var t=this._sourceHost,n=t.get(`transform`,!0),r=t.get(`fromTransformResult`,!0);r!=null&&e.length!==1&&E_(``);var i,a=[],o=[];return R(e,function(e){e.prepareSource();var t=e.getSource(r||0);r!=null&&!t&&E_(``),a.push(t),o.push(e._getVersionSign())}),n?i=x_(n,a,{datasetIndex:t.componentIndex}):r!=null&&(i=[jp(a[0])]),{sourceList:i,upstreamSignList:o}},e.prototype._isDirty=function(){if(this._dirty)return!0;for(var e=this._getUpstreamSourceManagers(),t=0;t1||n>0&&!e.noHeader;return R(e.blocks,function(e){var n=H_(e);n>=t&&(t=n+ +(r&&(!n||B_(e)&&!e.noHeader)))}),t}return 0}function U_(e,t,n,r){var i=t.noHeader,a=K_(H_(t)),o=[],s=t.blocks||[];De(!s||B(s)),s||=[];var c=e.orderMode;if(t.sortBlocks&&c){s=s.slice();var l={valueAsc:`asc`,valueDesc:`desc`};if(ze(l,c)){var u=new dm(l[c],null);s.sort(function(e,t){return u.evaluate(e.sortParam,t.sortParam)})}else c===`seriesDesc`&&s.reverse()}R(s,function(n,i){var s=t.valueFormatter,c=V_(n)(s?I(I({},e),{valueFormatter:s}):e,n,i>0?a.html:0,r);c!=null&&o.push(c)});var d=e.renderMode===`richText`?o.join(a.richText):q_(r,o.join(``),i?n:a.html);if(i)return d;var f=Lg(t.header,`ordinal`,e.useUTC),p=I_(r,e.renderMode).nameStyle,m=F_(r);return e.renderMode===`richText`?X_(e,f,p)+a.richText+d:q_(r,`
`+Ph(f)+`
`+d,n)}function W_(e,t,n,r){var i=e.renderMode,a=t.noName,o=t.noValue,s=!t.markerType,c=t.name,l=e.useUTC,u=t.valueFormatter||e.valueFormatter||function(e){return e=B(e)?e:[e],z(e,function(e,t){return Lg(e,B(p)?p[t]:p,l)})};if(!(a&&o)){var d=s?``:e.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||A_.color.secondary,i),f=a?``:Lg(c,`ordinal`,l),p=t.valueType,m=o?[]:u(t.value,t.rawDataIndex),h=!s||!a,g=!s&&a,_=I_(r,i),v=_.nameStyle,y=_.valueStyle;return i===`richText`?(s?``:d)+(a?``:X_(e,f,v))+(o?``:Z_(e,m,h,g,y)):q_(r,(s?``:d)+(a?``:J_(f,!s,v))+(o?``:Y_(m,h,g,y)),n)}}function G_(e,t,n,r,i,a){if(e)return V_(e)({useUTC:i,renderMode:n,orderMode:r,markupStyleCreator:t,valueFormatter:e.valueFormatter},e,0,a)}function K_(e){return{html:L_[e],richText:R_[e]}}function q_(e,t,n){var r=`
`,i=`margin: `+n+`px 0 0`,a=F_(e);return`
`+t+r+`
`}function J_(e,t,n){var r=t?`margin-left:2px`:``;return``+Ph(e)+``}function Y_(e,t,n,r){var i=t?`float:right;margin-left:`+(n?`10px`:`20px`):``;return e=B(e)?e:[e],``+z(e,function(e){return Ph(e)}).join(`  `)+``}function X_(e,t,n){return e.markupStyleCreator.wrapRichTextStyle(t,n)}function Z_(e,t,n,r,i){var a=[i],o=r?10:20;return n&&a.push({padding:[0,0,0,o],align:`right`}),e.markupStyleCreator.wrapRichTextStyle(B(t)?t.join(` `):t,a)}function Q_(e,t){var n=e.getData().getItemVisual(t,`style`)[e.visualDrawType];return Hg(n)}function $_(e,t){return e.get(`padding`)??(t===`richText`?[8,10]:10)}var ev=function(){function e(){this.richTextStyles={},this._nextStyleNameId=Ws()}return e.prototype._generateStyleName=function(){return`__EC_aUTo_`+this._nextStyleNameId++},e.prototype.makeTooltipMarker=function(e,t,n){var r=n===`richText`?this._generateStyleName():null,i=Vg({color:t,type:e,renderMode:n,markerId:r});return V(i)?i:(this.richTextStyles[r]=i.style,i.content)},e.prototype.wrapRichTextStyle=function(e,t){var n={};B(t)?R(t,function(e){return I(n,e)}):I(n,t);var r=this._generateStyleName();return this.richTextStyles[r]=n,`{`+r+`|`+e+`}`},e}();function tv(e){var t=e.series,n=e.dataIndex,r=e.multipleSeries,i=t.getData(),a=i.mapDimensionsAll(`defaultedTooltip`),o=a.length,s=t.getRawValue(n),c=B(s),l=Q_(t,n),u,d,f,p;if(o>1||c&&!o){var m=nv(s,t,n,a,l);u=m.inlineValues,d=m.inlineValueTypes,f=m.blocks,p=m.inlineValues[0]}else if(o){var h=i.getDimensionInfo(a[0]);p=u=nm(i,n,a[0]),d=h.type}else p=u=c?s[0]:s;var g=_c(t),_=g&&t.name||``,v=i.getName(n),y=r?_:v;return z_(`section`,{header:_,noHeader:r||!g,sortParam:p,blocks:[z_(`nameValue`,{markerType:`item`,markerColor:l,name:y,noName:!Oe(y),value:u,valueType:d,rawDataIndex:i.getRawIndex(n)})].concat(f||[])})}function nv(e,t,n,r,i){var a=t.getData(),o=se(e,function(e,t,n){var r=a.getDimensionInfo(n);return e||=r&&r.tooltip!==!1&&r.displayName!=null},!1),s=[],c=[],l=[];r.length?R(r,function(e){u(nm(a,n,e),e)}):R(e,u);function u(e,t){var n=a.getDimensionInfo(t);!n||n.otherDims.tooltip===!1||(o?l.push(z_(`nameValue`,{markerType:`subItem`,markerColor:i,name:n.displayName,value:e,valueType:n.type})):(s.push(e),c.push(n.type)))}return{inlineValues:s,inlineValueTypes:c,blocks:l}}var rv=Cc();function iv(e,t){return e.getName(t)||e.getId(t)}var av=function(e){p(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t._selectedDataIndicesMap={},t}return t.prototype.init=function(e,t,n){this.seriesIndex=this.componentIndex,this.dataTask=m_({count:sv,reset:cv}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(e,n),(rv(this).sourceManager=new D_(this)).prepareSource();var r=this.getInitialData(e,n);uv(r,this),this.dataTask.context.data=r,rv(this).dataBeforeProcessed=r,ov(this),this._initSelectedMapFromData(r)},t.prototype.mergeDefaultAndTheme=function(e,t){var n=Qg(this),r=n?e_(e):{},i=this.subType;n_.hasClass(i)&&(i+=`Series`),F(e,t.getTheme().get(this.subType)),F(e,this.getDefaultOption()),rc(e,`label`,[`show`]),this.fillDataTextStyle(e.data),n&&$g(e,r,n)},t.prototype.mergeOption=function(e,t){e=F(this.option,e,!0),this.fillDataTextStyle(e.data);var n=Qg(this);n&&$g(this.option,e,n);var r=rv(this).sourceManager;r.dirty(),r.prepareSource();var i=this.getInitialData(e,t);uv(i,this),this.dataTask.dirty(),this.dataTask.context.data=i,rv(this).dataBeforeProcessed=i,ov(this),this._initSelectedMapFromData(i)},t.prototype.fillDataTextStyle=function(e){if(e&&!ve(e))for(var t=[`show`],n=0;n=0&&u<0)&&(l=v,u=_,d=0),_===u&&(c[d++]=m))}return c.length=d,c},t.prototype.formatTooltip=function(e,t,n){return tv({series:this,dataIndex:e,multipleSeries:t})},t.prototype.isAnimationEnabled=function(){var e=this.ecModel;if(Ue.node&&!(e&&e.ssr))return!1;var t=this.getShallow(`animation`);return t&&this.getData().count()>this.getShallow(`animationThreshold`)&&(t=!1),!!t},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(e,t,n){var r=this.ecModel,i=o_.prototype.getColorFromPalette.call(this,e,t,n);return i||=r.getColorFromPalette(e,t,n),i},t.prototype.coordDimToDataDim=function(e){return this.getRawData().mapDimensionsAll(e)},t.prototype.getProgressive=function(){return this.get(`progressive`)},t.prototype.getProgressiveThreshold=function(){return this.get(`progressiveThreshold`)},t.prototype.select=function(e,t){this._innerSelect(this.getData(t),e)},t.prototype.unselect=function(e,t){var n=this.option.selectedMap;if(n){var r=this.option.selectedMode,i=this.getData(t);if(r===`series`||n===`all`){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var a=0;a=0&&n.push(i)}return n},t.prototype.isSelected=function(e,t){var n=this.option.selectedMap;if(!n)return!1;var r=this.getData(t);return(n===`all`||n[iv(r,e)])&&!r.getItemModel(e).get([`select`,`disabled`])},t.prototype.isUniversalTransitionEnabled=function(){if(this.__universalTransitionEnabled)return!0;var e=this.option.universalTransition;return e?e===!0||e&&e.enabled:!1},t.prototype._innerSelect=function(e,t){var n,r,i=this.option,a=i.selectedMode,o=t.length;if(!(!a||!o)){if(a===`series`)i.selectedMap=`all`;else if(a===`multiple`){H(i.selectedMap)||(i.selectedMap={});for(var s=i.selectedMap,c=0;c0&&this._innerSelect(e,t)}},t.registerClass=function(e){return n_.registerClass(e)},t.protoInitialize=function(){var e=t.prototype;e.type=`series.__base__`,e.seriesIndex=0,e.ignoreStyleOnData=!1,e.hasSymbolVisual=!1,e.defaultSymbol=`circle`,e.visualStyleAccessPath=`itemStyle`,e.visualDrawType=`fill`}(),t}(n_);ae(av,f_),ae(av,o_),$e(av,n_);function ov(e){var t=e.name;_c(e)||(e.name=ree(e)||t)}function ree(e){var t=e.getRawData(),n=t.mapDimensionsAll(`seriesName`),r=[];return R(n,function(e){var n=t.getDimensionInfo(e);n.displayName&&r.push(n.displayName)}),r.join(` `)}function sv(e){return e.model.getRawData().count()}function cv(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),lv}function lv(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function uv(e,t){R(Le(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),function(n){e.wrapMethod(n,pe(dv,t))})}function dv(e,t){var n=fv(e);return n&&n.setOutputEnd((t||this).count()),t}function fv(e){var t=(e.ecModel||{}).scheduler,n=t&&t.getPipeline(e.uid);if(n){var r=n.currentTask;if(r){var i=r.agentStubMap;i&&(r=i.get(e.uid))}return r}}var pv=ko.extend({type:`triangle`,shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var n=t.cx,r=t.cy,i=t.width/2,a=t.height/2;e.moveTo(n,r-a),e.lineTo(n+i,r+a),e.lineTo(n-i,r+a),e.closePath()}}),mv={line:hd,rect:Uo,roundRect:Uo,square:Uo,circle:zu,diamond:ko.extend({type:`diamond`,shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var n=t.cx,r=t.cy,i=t.width/2,a=t.height/2;e.moveTo(n,r-a),e.lineTo(n+i,r),e.lineTo(n,r+a),e.lineTo(n-i,r),e.closePath()}}),pin:ko.extend({type:`pin`,shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var n=t.x,r=t.y,i=t.width/5*3,a=Math.max(i,t.height),o=i/2,s=o*o/(a-o),c=r-a+o+s,l=Math.asin(s/o),u=Math.cos(l)*o,d=Math.sin(l),f=Math.cos(l),p=o*.6,m=o*.7;e.moveTo(n-u,c+s),e.arc(n,c,o,Math.PI-l,Math.PI*2+l),e.bezierCurveTo(n+u-d*p,c+s+f*p,n,r-m,n,r),e.bezierCurveTo(n,r-m,n-u+d*p,c+s+f*p,n-u,c+s),e.closePath()}}),arrow:ko.extend({type:`arrow`,shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var n=t.height,r=t.width,i=t.x,a=t.y,o=r/3*2;e.moveTo(i,a),e.lineTo(i+o,a+n),e.lineTo(i,a+n/4*3),e.lineTo(i-o,a+n),e.lineTo(i,a),e.closePath()}}),triangle:pv},hv={line:function(e,t,n,r,i){i.x1=e,i.y1=t+r/2,i.x2=e+n,i.y2=t+r/2},rect:function(e,t,n,r,i){i.x=e,i.y=t,i.width=n,i.height=r},roundRect:function(e,t,n,r,i){i.x=e,i.y=t,i.width=n,i.height=r,i.r=Math.min(n,r)/4},square:function(e,t,n,r,i){var a=Math.min(n,r);i.x=e,i.y=t,i.width=a,i.height=a},circle:function(e,t,n,r,i){i.cx=e+n/2,i.cy=t+r/2,i.r=Math.min(n,r)/2},diamond:function(e,t,n,r,i){i.cx=e+n/2,i.cy=t+r/2,i.width=n,i.height=r},pin:function(e,t,n,r,i){i.x=e+n/2,i.y=t+r/2,i.width=n,i.height=r},arrow:function(e,t,n,r,i){i.x=e+n/2,i.y=t+r/2,i.width=n,i.height=r},triangle:function(e,t,n,r,i){i.cx=e+n/2,i.cy=t+r/2,i.width=n,i.height=r}},gv={};R(mv,function(e,t){gv[t]=new e});var _v=ko.extend({type:`symbol`,shape:{symbolType:``,x:0,y:0,width:0,height:0},calculateTextPosition:function(e,t,n){var r=Cn(e,t,n),i=this.shape;return i&&i.symbolType===`pin`&&t.position===`inside`&&(r.y=n.y+n.height*.4),r},buildPath:function(e,t,n){var r=t.symbolType;if(r!==`none`){var i=gv[r];i||=(r=`rect`,gv[r]),hv[r](t.x,t.y,t.width,t.height,i.shape),i.buildPath(e,i.shape,n)}}});function vv(e,t){if(this.type!==`image`){var n=this.style;this.__isEmptyBrush?(n.stroke=e,n.fill=t||A_.color.neutral00,n.lineWidth=2):this.shape.symbolType===`line`?n.stroke=e:n.fill=e,this.markRedraw()}}function yv(e,t,n,r,i,a,o){var s=e.indexOf(`empty`)===0;s&&(e=e.substr(5,1).toLowerCase()+e.substr(6));var c=e.indexOf(`image://`)===0?rf(e.slice(8),new en(t,n,r,i),o?`center`:`cover`):e.indexOf(`path://`)===0?nf(e.slice(7),{},new en(t,n,r,i),o?`center`:`cover`):new _v({shape:{symbolType:e,x:t,y:n,width:r,height:i}});return c.__isEmptyBrush=s,c.setColor=vv,a&&c.setColor(a),c}function bv(e,t){if(e!=null)return B(e)||(e=[e,e]),[Cs(e[0],t[0])||0,Cs(Ce(e[1],e[0]),t[1])||0]}function xv(e,t){var n=e.mapDimensionsAll(`defaultedLabel`),r=n.length;if(r===1){var i=nm(e,t,n[0]);return i==null?null:i+``}if(r){for(var a=[],o=0;o=0&&r.push(t[a])}return r.join(` `)}var Cv=typeof Float32Array<`u`?Float32Array:void 0,wv=typeof Float64Array<`u`?Float64Array:void 0;function Tv(e){return Ev({ctor:Cv},e).arr}function Ev(e,t){var n=e.arr,r=e.ctor;if(t>Ns&&(t=Ns),!n||e.typed&&n.length=t[0]&&e<=t[1]},getExtent:function(){return this._extents[0].slice()},getExtentUnsafe:function(e){return this._extents[e]},setExtent:function(e,t){ey(this._extents,0,e,t)},setExtent2:function(e,t,n){var r=this._extents;r[e]||(r[e]=r[0].slice()),ey(r,e,t,n)},freeze:function(){}};function ey(e,t,n,r){zc(n,r)&&(e[t][0]=n,e[t][1]=r)}function ty(e){return ny(e)||iy(e)}function ny(e){return e.type===`interval`}function ry(e){return e.type===`time`}function iy(e){return e.type===`log`}function ay(e){return e.type===`ordinal`}function oy(e){var t=zs(e),n=_s(10,t),r=ms(e/n);return r?r===2?r=3:r===3?r=5:r*=2:r=1,Ds(r*n,-t)}function sy(e){return ks(e)+2}function cy(e,t){return vs(e)/vs(t)}function ly(e,t,n){var r=n&&n.lookup;if(r){for(var i=0;i1&&a/o>2&&(i=Math.round(Math.ceil(i/o)*o)),i!==r[0]&&c(r[0],!0,!0);for(var s=i;s<=r[1];s+=o)c(s,!1,s===r[0]||s===r[1]);s-o!==r[1]&&c(r[1],!0,!0);function c(e,t,r){n({value:e,offInterval:t},r)}}var my=function(e){p(t,e);function t(n){var r=e.call(this)||this;r.type=`ordinal`,r.parse=t.parse,Kv(r,t.decoratedMethods);var i=n.ordinalMeta;i||=new Hv({}),B(i)&&(i=new Hv({categories:z(i,function(e){return H(e)?e.value:e})})),r._ordinalMeta=i;var a=Gv(null,null,n.extent||[0,i.categories.length-1]);return r._mapper=a.mapper,qv(r,a.mapper),r}return t.parse=function(e){return e==null?e=NaN:V(e)?(e=this._ordinalMeta.getOrdinal(e),e??=NaN):e=ms(e),e},t.prototype.getTicks=function(){var e=[];return py(this,0,function(t){e.push(t)}),e},t.prototype.getMinorTicks=function(e){},t.prototype.setSortInfo=function(e){if(e==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var t=e.ordinalNumbers,n=this._ordinalNumbersByTick=[],r=this._ticksByOrdinalNumber=[],i=0,a=this._ordinalMeta.categories.length,o=ds(a,t.length);i=0&&e=0&&e=0&&eo[0]&&mi[1]||!isFinite(p)||!isFinite(i[1]))break}else{if(m>f)break;p=ds(p,i[1]),m===f&&(p=i[1])}if(l.push({value:p}),p=Ds(p+n,a),s){var h=s.calcNiceTickMultiple(p,d);h>=0&&(p=Ds(p+h*n,a))}if(l.length>0&&p===l[l.length-1].value)break;if(l.length>u)return[]}var g=l.length?l[l.length-1].value:i[1];return r[1]>g&&l.push({value:e.expandToNicedExtent?Ds(g+n,a):r[1]}),c&&o.pruneTicksByBreak(e.pruneByBreak,l,s.breaks,function(e){return e.value},t.interval,r),c&&e.breakTicks!==`none`&&o.addBreaksToTicks(l,s.breaks,r),l},t.prototype.getMinorTicks=function(e){return hy(this,e,Xh(this),this._cfg.interval)},t.prototype.getLabel=function(e,t){if(e==null)return``;var n=t&&t.precision;return n==null?n=ks(e.value)||0:n===`auto`&&(n=this._cfg.intervalPrecision),Pg(Ds(e.value,n,!0))},t.type=`interval`,t}(Bv);Bv.registerClass(gy);var _y=function(e,t,n,r){for(;n>>1;e[i][1]16?16:e>7.5?7:e>3.5?4:e>1.5?2:1}function Sy(e){var t=30*tg;return e/=t,e>6?6:e>3?3:e>2?2:1}function Cy(e){return e/=eg,e>12?12:e>6?6:e>3.5?4:e>2?2:1}function wy(e,t){return e/=t?$h:Qh,e>30?30:e>20?20:e>15?15:e>10?10:e>5?5:e>2?2:1}function Ty(e){return fs(Bs(e,!0),1)}function Ey(e,t,n){var r=Math.max(0,re(cg,t)-1);return yg(new Date(e),cg[r],n).getTime()}function Dy(e,t){var n=new Date(0);n[e](1);var r=n.getTime();n[e](1+t);var i=n.getTime()-r;return function(e,t){return Math.max(0,Math.round((t-e)/i))}}function Oy(e,t,n,r,i,a){var o=lg,s=0;function c(e,t,n,i,o,c,l){for(var u=Dy(o,e),d=t,f=new Date(d);d3e3));)if(f[o](f[i]()+e),d=f.getTime(),a){var p=a.calcNiceTickMultiple(d,u);p>0&&(f[o](f[i]()+p*e),d=f.getTime())}l.push({value:d,notAdd:d>r[1]})}function l(e,i,a){var o=[],s=!i.length;if(!by(pg(e),r[0],r[1],n)){s&&(i=[{value:Ey(r[0],e,n)},{value:r[1]}]);for(var l=0;l=r[0]&&u<=r[1]&&c(f,u,d,p,m,h,o),e===`year`&&a.length>1&&l===0&&a.unshift({value:a[0].value-f})}}for(var l=0;l=r[0]&&v<=r[1]&&f++)}var y=i/t;if(f>y*1.5&&p>y/1.5||(u.push(g),f>y||e===o[m]))break}d=[]}}for(var b=ce(z(u,function(e){return ce(e,function(e){return e.value>=r[0]&&e.value<=r[1]&&!e.notAdd})}),function(e){return e.length>0}),x=b.length-1,S=[],m=0;mr[0])&&S.unshift({value:r[0],time:{level:0,upperTimeUnit:O,lowerTimeUnit:O},notNice:!0}),(!D||D.values&&(a=s);var c=yy.length,l=Math.min(_y(yy,a,0,c),c-1),u=yy[l][1],d=yy[Math.max(l-1,0)][0];e.setTimeInterval({approxInterval:a,interval:u,minLevelUnit:d})};Bv.registerClass(vy);var Ay=0,jy=1,My=2,Ny=function(e){p(t,e);function t(n){var r=e.call(this)||this;r.type=`log`,r.parse=gy.parse,r.base=n.logBase||10;var i=[],a=[],o=r._lookup={from:i,to:a};i[Ay]=i[jy]=a[Ay]=a[jy]=NaN,Kv(r,t.mapperMethods);var s=Jh(),c=n.breakOption,l={lookup:o};return s&&s.parseAxisBreakOptionInwardTransform(c,r,{noNegative:!0},My,l),r.powStub=new gy({breakParsed:l.original}),r.intervalStub=new gy({breakParsed:l.transformed}),qv(r,r.intervalStub),r}return t.prototype.getTicks=function(e){var t=this.base,n=this.powStub,r=Jh(),i=this.intervalStub,a={lookup:{from:i.getExtent(),to:n.getExtent()}};return z(i.getTicks(e||{}),function(e){var i=e.value,o=ly(i,t,a),s;if(r){var c=r.getTicksBreakOutwardTransform(this,e,Xh(n),this._lookup);c&&(s=c.vBreak,o=c.tickVal)}return{value:o,break:s}},this)},t.prototype.getMinorTicks=function(e){return hy(this,e,Xh(this.powStub),this.intervalStub.getConfig().interval)},t.prototype.getLabel=function(e,t){return this.intervalStub.getLabel(e,t)},t.type=`log`,t.mapperMethods={needTransform:function(){return!0},normalize:function(e){return this.intervalStub.normalize(cy(e,this.base))},scale:function(e){return ly(this.intervalStub.scale(e),this.base,null)},transformIn:function(e,t){return e=cy(e,this.base),t&&t.depth===2?e:this.intervalStub.transformIn(e,t)},transformOut:function(e,t){var n=t?t.depth:null;return Py.depth=n,Fy.lookup=this._lookup,ly(n===2?e:this.intervalStub.transformOut(e,Py),this.base,Fy)},contain:function(e){return this.powStub.contain(e)},setExtent:function(e,t){this.setExtent2(0,e,t)},setExtent2:function(e,t,n){if(!(!zc(t,n)||t<=0||n<=0)){var r=Iy,i=Iy;if(e===0){var a=this._lookup;r=a.to,i=a.from}this.powStub.setExtent2(e,r[Ay]=t,r[jy]=n);var o=this.base;this.intervalStub.setExtent2(e,i[Ay]=cy(t,o),i[jy]=cy(n,o))}},getFilter:function(){return{g:0}},sanitize:function(e,t){return zc(t[0],t[1])&&qs(e)&&e<=0&&(e=t[0]),e},getDefaultStartValue:function(){return 1},getExtent:function(){return this.powStub.getExtent()},getExtentUnsafe:function(e,t){return t===null?this.powStub.getExtentUnsafe(e,null):this.intervalStub.getExtentUnsafe(e,t)}},t}(Bv);Bv.registerClass(Ny);var Py={},Fy={},Iy=[],Ly={value:1,category:1,time:1,log:1},Ry=Cc();function zy(e){var t=e.get(`type`);return(t==null||!ze(Ly,t)&&!Bv.getClass(t))&&(t=`value`),t}function By(e,t,n){var r=Jh(),i;switch(r&&(i=Zy(e,t,n)),t){case`category`:return new my({ordinalMeta:e.getOrdinalMeta?e.getOrdinalMeta():e.getCategories(),extent:Nc()});case`time`:return new vy({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get(`useUTC`),breakOption:i});case`log`:return new Ny({logBase:e.get(`logBase`),breakOption:i});case`value`:return new gy({breakOption:i});default:return new((Bv.getClass(t))||gy)({})}}function Vy(e,t,n){var r=n?Yv(e,null):e.getExtentUnsafe(0,null),i=r[0],a=r[1];return zc(i,a)?i===t||a===t?2:it?1:3:3}function Hy(e){Ry(e).noOnMyZero=!0}function Uy(e){return Ry(e).noOnMyZero}function Wy(e){var t=e.getLabelModel().get(`formatter`);if(e.type===`time`){var n=ug(t);return function(t,r){return e.scale.getFormattedLabel(t,r,n)}}if(V(t))return function(n){var r=e.scale.getLabel(n);return t.replace(`{value}`,r??``)};if(me(t)){if(e.type===`category`)return function(n,r){return t(Gy(e,n),n.value-e.scale.getExtent()[0],null)};var r=Jh();return function(n,i){var a=null;return r&&(a=r.makeAxisLabelFormatterParamBreak(a,n.break)),t(Gy(e,n),i,a)}}return function(t){return e.scale.getLabel(t)}}function Gy(e,t){var n=e.scale;return ay(n)?n.getLabel(t):t.value}function Ky(e){return e.get(`interval`)??`auto`}function qy(e){return e.type===`category`&&Ky(e.getLabelModel())===0}function Jy(e,t){var n={};return R(e.mapDimensionsAll(t),function(t){n[uh(e,t)]=!0}),ue(n)}function Yy(e){return e===`middle`||e===`center`}function Xy(e){return e.getShallow(`show`)}function Zy(e,t,n){var r=e.get(`breaks`,!0);if(r!=null)return!Jh()||!n||!Qy(t)?void 0:r}function Qy(e){return e!==`category`}function $y(e,t,n,r,i,a){var o=iy(e),s=o?e.intervalStub:e;if(s.setExtent(r[0],r[1]),o){var c=e.powStub,l={depth:2},u=e.transformOut(r[0],l),d=e.transformOut(r[1],l),f=dy(n,r);t[0]&&!f[0]&&(u=i[0]),t[1]&&!f[1]&&(d=i[1]),c.setExtent(u,d)}s.setConfig(a)}function eb(e,t){return ay(e)?e.getRawOrdinalNumber(t.value):t.value}function tb(e,t){return ay(e)&&!!t.get(`boundaryGap`)}var nb={average:function(e){for(var t=0,n=0,r=0;rt&&(t=e[n]);return isFinite(t)?t:NaN},min:function(e){for(var t=1/0,n=0;n10&&a.type===`cartesian2d`&&i){var s=a.getBaseAxis(),c=a.getOtherAxis(s),l=s.getExtent(),u=n.getDevicePixelRatio(),d=Math.abs(l[1]-l[0])*(u||1),f=Math.round(o/d);if(isFinite(f)&&f>1){i===`lttb`?e.setData(r.lttbDownSample(r.mapDimension(c.dim),1/f)):i===`minmax`&&e.setData(r.minmaxDownSample(r.mapDimension(c.dim),1/f));var p=void 0;V(i)?p=nb[i]:me(i)&&(p=i),p&&e.setData(r.downSample(r.mapDimension(c.dim),1/f,p,rb))}}}}}var ab=Cc(),ob=Cc(),sb={estimate:1,determine:2};function cb(e){return{out:{noPxChangeTryDetermine:[]},kind:e}}function lb(e,t){var n=e.getLabelModel().get(`customValues`);if(n){var r=e.scale;return{labels:z(db(n,r),function(t,n){return{formattedLabel:Wy(e)(t,n),rawLabel:r.getLabel(t),tick:t}})}}return e.type===`category`?fb(e,t):hb(e)}function ub(e,t,n){var r=e.scale,i=e.getTickModel().get(`customValues`);return i?{ticks:db(i,r)}:e.type===`category`?mb(e,t):{ticks:r.getTicks(n)}}function db(e,t){var n=t.getExtent(),r=[];return R(e,function(e){e=t.parse(e),e>=n[0]&&e<=n[1]&&r.push(e)}),Wc(r,Kc,null),Os(r),z(r,function(e){return{value:e}})}function fb(e,t){var n=e.getLabelModel(),r=pb(e,n,t);return!n.get(`show`)||e.scale.isBlank()?{labels:[]}:r}function pb(e,t,n){var r=_b(e),i=Ky(t),a=n.kind===sb.estimate;if(!a){var o=yb(r,i);if(o)return o}var s,c;me(i)?s=Eb(e,i,!1):(c=i===`auto`?xb(e,n):i,s=Eb(e,c,!1));var l={labels:s,labelCategoryInterval:c};return a?n.out.noPxChangeTryDetermine.push(function(){return bb(r,i,l),!0}):bb(r,i,l),l}function mb(e,t){var n=gb(e),r=Ky(t),i=yb(n,r);if(i)return i;var a,o;if((!t.get(`show`)||e.scale.isBlank())&&(a=[]),me(r))a=Eb(e,r,!0);else if(r===`auto`){var s=pb(e,e.getLabelModel(),cb(sb.determine));o=s.labelCategoryInterval,a=z(s.labels,function(e){return e.tick})}else o=r,a=Eb(e,o,!0);return bb(n,r,{ticks:a,tickCategoryInterval:o})}function hb(e){var t=e.scale.getTicks(),n=Wy(e);return{labels:z(t,function(t,r){return{formattedLabel:n(t,r),rawLabel:e.scale.getLabel(t),tick:t}})}}var gb=vb(`axisTick`),_b=vb(`axisLabel`);function vb(e){return function(t){return ob(t)[e]||(ob(t)[e]={list:[]})}}function yb(e,t){for(var n=0;nu&&(l=Math.max(1,Math.floor(c/u)));for(var d=s[0],f=e.dataToCoord(d+1)-e.dataToCoord(d),p=Math.abs(f*Math.cos(a)),m=Math.abs(f*Math.sin(a)),h=0,g=0;d<=s[1];d+=l){var _=0,v=0,y=vn(i({value:d}),r.font,`center`,`top`);_=y.width*1.3,v=y.height*1.3,h=Math.max(h,_,7),g=Math.max(g,v,7)}var b=h/p,x=g/m;isNaN(b)&&(b=1/0),isNaN(x)&&(x=1/0);var S=Math.max(0,Math.floor(Math.min(b,x)));return n===sb.estimate?(t.out.noPxChangeTryDetermine.push(fe(Cb,null,e,S,c)),S):wb(e,S,c)??S}function Cb(e,t,n){return wb(e,t,n)==null}function wb(e,t,n){var r=ab(e.model),i=e.getExtent(),a=r.lastAutoInterval,o=r.lastTickCount;if(a!=null&&o!=null&&Math.abs(a-t)<=1&&Math.abs(o-n)<=1&&a>t&&r.axisExtent0===i[0]&&r.axisExtent1===i[1])return a;r.lastTickCount=n,r.lastAutoInterval=t,r.axisExtent0=i[0],r.axisExtent1=i[1]}function Tb(e){var t=e.getLabelModel();return{axisRotate:e.getRotate?e.getRotate():e.isHorizontal&&!e.isHorizontal()?90:0,labelRotate:t.get(`rotate`)||0,font:t.getFont()}}function Eb(e,t,n){var r=Wy(e),i=e.scale,a=[],o=me(t);return py(i,o?0:t,function(e,s){var c=i.getLabel(e);if(o){var l=!!t(e.value,c);if(e.offInterval=!l,!l&&!s)return}a.push(n?e:{formattedLabel:r(e),rawLabel:c,tick:e})}),a}var Db=Cc();function Ob(e){Db(e).prepare={}}function kb(e){Db(e).fullUpdate={}}function Ab(e){return Db(e).prepare}function jb(e){return Db(e).fullUpdate}var Mb=Hc(),Nb=Cc(),Pb=Cc();function Fb(e,t){var n=e.model,r=Nb(jb(n.ecModel)).keyed,i=r&&r.get(t);return i&&i.get(n.uid)}function Ib(e,t){return zb(Fb(e,t))}function Lb(e,t){var n=[];return Rb(e.model.ecModel,function(e){for(var r=0;r0?(t>o&&(o=t),a=!1):t===-2&&(a=!0))}),qs(n)&&n>0&&qs(o)?(e.w=r/n*o,e.w2=o):a&&(e.w=r*Qb,e.w2=e.w*n/r)}var nx=[0,1],rx=function(){function e(e,t,n){this.onBand=!1,this.inverse=!1,this.dim=e,this.scale=t,this._extent=n||[0,0]}return e.prototype.contain=function(e){var t=this._extent,n=Math.min(t[0],t[1]),r=Math.max(t[0],t[1]);return e>=n&&e<=r},e.prototype.containData=function(e){return this.scale.contain(this.scale.parse(e))},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.setExtent=function(e,t){var n=this._extent;n[0]=e,n[1]=t},e.prototype.dataToCoord=function(e,t){var n=this.scale;return e=n.normalize(n.parse(e)),Ss(e,nx,ix(this),t)},e.prototype.coordToData=function(e,t){var n=Ss(e,ix(this),nx,t);return this.scale.scale(n)},e.prototype.pointToData=function(e,t){},e.prototype.getTicksCoords=function(e){e||={};var t=e.tickModel||this.getTickModel(),n=z(ub(this,t,{breakTicks:e.breakTicks,pruneByBreak:e.pruneByBreak}).ticks,function(e){return{coord:this.dataToCoord(eb(this.scale,e)),tick:e}},this),r=t.get(`alignWithLabel`),i=ax(this,n,r);return z(n,function(e){return{coord:e.coord,tickValue:e.tick.value,onBand:i}})},e.prototype.getMinorTicksCoords=function(){if(ay(this.scale))return[];var e=this.model.getModel(`minorTick`).get(`splitNumber`);return e>0&&e<100||(e=5),z(this.scale.getMinorTicks(e),function(e){return z(e,function(e){return{coord:this.dataToCoord(e),tickValue:e}},this)},this)},e.prototype.getViewLabels=function(e){return e||=cb(sb.determine),lb(this,e).labels},e.prototype.getLabelModel=function(){return this.model.getModel(`axisLabel`)},e.prototype.getTickModel=function(){return this.model.getModel(`axisTick`)},e.prototype.getBandWidth=function(){return $b(this,{min:1}).w},e.prototype.calculateCategoryInterval=function(e){return e||=cb(sb.determine),Sb(this,e)},e}();function ix(e){var t=e.getExtent();if(e.onBand){var n=(t[1]-t[0])/e.scale.count()/2;t[0]+=n,t[1]-=n}return t}function ax(e,t,n){var r=t.length;if(!e.onBand||n||!r)return!1;var i=$b(e).w;if(!i)return!1;R(t,function(e){e.coord-=i/2});var a=e.scale.getExtent(),o=t[r-1];return o.tick.offInterval&&t.pop(),t.push({coord:o.coord+i,tick:{value:a[1]+1}}),!0}var ox=function(e){p(t,e);function t(t,n,r,i,a){var o=e.call(this,t,n,r)||this;return o.index=0,o.type=i||`value`,o.position=a||`bottom`,o}return t.prototype.isHorizontal=function(){var e=this.position;return e===`top`||e===`bottom`},t.prototype.getGlobalExtent=function(e){var t=this.getExtent();return t[0]=this.toGlobalCoord(t[0]),t[1]=this.toGlobalCoord(t[1]),e&&t[0]>t[1]&&t.reverse(),t},t.prototype.pointToData=function(e,t){return this.coordToData(this.toLocalCoord(e[this.dim===`x`?0:1]),t)},t.prototype.setCategorySortInfo=function(e){if(this.type!==`category`)return!1;this.model.option.categorySortInfo=e,this.scale.setSortInfo(e)},t}(rx),sx=[`label`,`labelLine`,`layoutOption`,`priority`,`defaultAttr`,`marginForce`,`minMarginForce`,`marginDefault`,`suggestIgnore`],cx=1,lx=2,ux=cx|lx;function dx(e,t,n){n||=ux,t?e.dirty|=n:e.dirty&=~n}function fx(e,t){return t||=ux,e.dirty==null||!!(e.dirty&t)}function px(e){if(e)return fx(e)&&mx(e,e.label,e),e}function mx(e,t,n){var r=t.getComputedTransform();e.transform=Nf(e.transform,r);var i=e.localRect=Mf(e.localRect,t.getBoundingRect()),a=t.style,o=a.margin,s=n&&n.marginForce,c=n&&n.minMarginForce,l=n&&n.marginDefault,u=a.__marginType;u==null&&l&&(o=l,u=ip.textMargin);for(var d=0;d<4;d++)hx[d]=u===ip.minMargin&&c&&c[d]!=null?c[d]:s&&s[d]!=null?s[d]:o?o[d]:0;u===ip.textMargin&&wf(i,hx,!1,!1);var f=e.rect=Mf(e.rect,i);return r&&f.applyTransform(r),u===ip.minMargin&&wf(f,hx,!1,!1),e.axisAligned=Af(r),(e.label=e.label||{}).ignore=t.ignore,dx(e,!1),dx(e,!0,lx),e}var hx=[0,0,0,0];function iee(e,t,n){return e.transform=Nf(e.transform,n),e.localRect=Mf(e.localRect,t),e.rect=Mf(e.rect,t),n&&e.rect.applyTransform(n),e.axisAligned=Af(n),e.obb=void 0,(e.label=e.label||{}).ignore=!1,e}function aee(e,t){if(e){e.label.x+=t.x,e.label.y+=t.y,e.label.markRedraw();var n=e.transform;n&&(n[4]+=t.x,n[5]+=t.y);var r=e.rect;r&&(r.x+=t.x,r.y+=t.y);var i=e.obb;i&&i.fromBoundingRect(e.localRect,n)}}function gx(e,t){for(var n=0;n.1?`x`:`y`,u=a.transGroup[l];if(o.sort(function(e,t){return Math.abs(e.label[l]-u)-Math.abs(t.label[l]-u)}),c&&s){var d=i.getExtent(),f=Math.min(d[0],d[1]),p=Math.max(d[0],d[1])-f;s.union(new en(f,0,p,1))}a.stOccupiedRect=s,a.labelInfoList=o}var kx=gt(),Ax=new en(0,0,0,0),jx=function(e,t,n,r,i,a){if(Yy(e.nameLocation)){var o=a.stOccupiedRect;o&&Mx(iee({},o,a.transGroup.transform),r,i)}else Nx(a.labelInfoList,a.dirVec,r,i)};function Mx(e,t,n){var r=new Bt;vx(e,t,r,{direction:Math.atan2(n.y,n.x),bidirectional:!1,touchThreshold:.05})&&aee(t,r)}function Nx(e,t,n,r){for(var i=Bt.dot(r,t)>=0,a=0,o=e.length;a0?`top`:`bottom`,i=`center`):Fs(r-xx)?(a=n>0?`bottom`:`top`,i=`center`):(a=`middle`,i=r>0&&r0?`right`:`left`:n>0?`left`:`right`),{rotation:r,textAlign:i,textVerticalAlign:a}},e.makeAxisEventDataBase=function(e){var t={componentType:e.mainType,componentIndex:e.componentIndex};return t[e.mainType+`Index`]=e.componentIndex,t},e.isLabelSilent=function(e){var t=e.get(`tooltip`);return e.get(`silent`)||!(e.get(`triggerEvent`)||t&&t.show)},e}(),Fx=[`axisLine`,`axisTickLabelEstimate`,`axisTickLabelDetermine`,`axisName`],cee={axisLine:function(e,t,n,r,i,a,o){var s=r.get([`axisLine`,`show`]);if(s===`auto`&&(s=!0,e.raw.axisLineAutoShow!=null&&(s=!!e.raw.axisLineAutoShow)),s){var c=r.axis.getExtent(),l=a.transform,u=[c[0],0],d=[c[1],0],f=u[0]>d[0];l&&(Lt(u,u,l),Lt(d,d,l));var p=I({lineCap:`round`},r.getModel([`axisLine`,`lineStyle`]).getLineStyle()),m={strokeContainThreshold:e.raw.strokeContainThreshold||5,silent:!0,z2:1,style:p};if(r.get([`axisLine`,`breakLine`])&&Zh(r.axis.scale))yx().buildAxisBreakLine(r,i,a,m);else{var h=new hd(I({shape:{x1:u[0],y1:u[1],x2:d[0],y2:d[1]}},m));cf(h.shape,h.style.lineWidth),h.anid=`line`,i.add(h)}var g=r.get([`axisLine`,`symbol`]);if(g!=null){var _=r.get([`axisLine`,`symbolSize`]);V(g)&&(g=[g,g]),(V(_)||ge(_))&&(_=[_,_]);var v=bv(r.get([`axisLine`,`symbolOffset`])||0,_),y=_[0],b=_[1];R([{rotate:e.rotation+Math.PI/2,offset:v[0],r:0},{rotate:e.rotation-Math.PI/2,offset:v[1],r:Math.sqrt((u[0]-d[0])*(u[0]-d[0])+(u[1]-d[1])*(u[1]-d[1]))}],function(t,n){if(g[n]!==`none`&&g[n]!=null){var r=yv(g[n],-y/2,-b/2,y,b,p.stroke,!0),a=t.r+t.offset,o=f?d:u;r.attr({rotation:t.rotate,x:o[0]+a*Math.cos(e.rotation),y:o[1]-a*Math.sin(e.rotation),silent:!0,z2:11}),i.add(r)}})}}},axisTickLabelEstimate:function(e,t,n,r,i,a,o,s){Wx(t,i,s)&&Ix(e,t,n,r,i,a,o,sb.estimate)},axisTickLabelDetermine:function(e,t,n,r,i,a,o,s){Wx(t,i,s)&&Ix(e,t,n,r,i,a,o,sb.determine);var c=Hx(e,i,a,r);zx(e,t.labelLayoutList,c),Ux(e,i,a,r,e.tickDirection)},axisName:function(e,t,n,r,i,a,o,s){var c=n.ensureRecord(r);t.nameEl&&=(i.remove(t.nameEl),c.nameLayout=c.nameLocation=null);var l=e.axisName;if(Zx(l)){var u=e.nameLocation,d=e.nameDirection,f=r.getModel(`nameTextStyle`),p=r.get(`nameGap`)||0,m=r.axis.getExtent(),h=r.axis.inverse?-1:1,g=new Bt(0,0),_=new Bt(0,0);u===`start`?(g.x=m[0]-h*p,_.x=-h):u===`end`?(g.x=m[1]+h*p,_.x=h):(g.x=(m[0]+m[1])/2,g.y=e.labelOffset+d*p,_.y=d);var v=gt();_.transform(xt(v,v,e.rotation));var y=r.get(`nameRotate`);y!=null&&(y=y*xx/180);var b,x;Yy(u)?b=Px.innerTextLayout(e.rotation,y??e.rotation,d):(b=Lx(e.rotation,u,y||0,m),x=e.raw.axisNameAvailableWidth,x!=null&&(x=Math.abs(x/Math.sin(b.rotation)),!isFinite(x)&&(x=null)));var S=f.getFont(),C=r.get(`nameTruncate`,!0)||{},w=C.ellipsis,T=Se(e.raw.nameTruncateMaxWidth,C.maxWidth,x),E=s.nameMarginLevel||0,D=new Jo({x:g.x,y:g.y,rotation:b.rotation,silent:Px.isLabelSilent(r),style:qf(f,{text:l,font:S,overflow:`truncate`,width:T,ellipsis:w,fill:f.getTextColor()||r.get([`axisLine`,`lineStyle`,`color`]),align:f.get(`align`)||b.textAlign,verticalAlign:f.get(`verticalAlign`)||b.textVerticalAlign}),z2:1});if(Df({el:D,componentModel:r,itemName:l}),D.__fullText=l,D.anid=`name`,r.get(`triggerEvent`)){var O=Px.makeAxisEventDataBase(r);O.targetType=`axisName`,O.name=l,Xc(D).eventData=O}a.add(D),D.updateTransform(),t.nameEl=D;var k=c.nameLayout=px({label:D,priority:D.z2,defaultAttr:{ignore:D.ignore},marginDefault:Yy(u)?Sx[E]:Cx[E]});if(c.nameLocation=u,i.add(D),D.decomposeTransform(),e.shouldNameMoveOverlap&&k){var A=n.ensureRecord(r);n.resolveAxisNameOverlap(e,n,r,k,_,A)}}}};function Ix(e,t,n,r,i,a,o,s){Kx(t)||Gx(e,t,i,s,r,o);var c=t.labelLayoutList;Jx(e,r,c,a),$x(r,e.rotation,c);var l=e.optionHideOverlap;Rx(r,c,l),l&&oee(ce(c,function(e){return e&&!e.label.ignore})),Ox(e,n,r,c)}function Lx(e,t,n,r){var i=Ps(n-e),a,o,s=r[0]>r[1],c=t===`start`&&!s||t!==`start`&&s;return Fs(i-xx/2)?(o=c?`bottom`:`top`,a=`center`):Fs(i-xx*1.5)?(o=c?`top`:`bottom`,a=`center`):(o=`middle`,a=ixx/2?c?`left`:`right`:c?`right`:`left`),{rotation:i,textAlign:a,textVerticalAlign:o}}function Rx(e,t,n){var r=e.axis,i=e.get([`axisLabel`,`customValues`]);if(qy(r))return;function a(e,a,o){var s=px(t[a]),c=px(t[o]),l=r.scale;if(!(!s||!c)){if(e==null){if(!n&&i)return;var u=Tx(s.label).labelInfo.tick;if(ry(l)&&u.notNice||ay(l)&&u.offInterval){Bx(s.label);return}}if(e===!1||s.suggestIgnore){Bx(s.label);return}if(c.suggestIgnore){Bx(c.label);return}var d=.1;if(!n){var f=[0,0,0,0];s=gx({marginForce:f},s),c=gx({marginForce:f},c)}vx(s,c,null,{touchThreshold:d})&&Bx(e?c.label:s.label)}}var o=e.get([`axisLabel`,`showMinLabel`]),s=e.get([`axisLabel`,`showMaxLabel`]),c=t.length;a(o,0,1),a(s,c-1,c-2)}function zx(e,t,n){e.showMinorTicks||R(t,function(e){if(e&&e.label.ignore)for(var t=0;t0&&u[1]>0&&!d[0]&&(u[0]=0),u[0]<0&&u[1]<0&&!d[1]&&(u[1]=0));var y=!1;u[0]>u[1]&&(u.reverse(),y=!0);var b=lS(e,t.get(`startValue`,!0)),x=b!=null;!qs(b)&&r&&(b=e.getDefaultStartValue?e.getDefaultStartValue():0),qs(b)&&(x||!_||v)&&(bu[1]&&!d[1]&&(u[1]=b,d[1]=!0)),cS(this._i={scale:e,dataMM:l,noZoomEffMM:u,zoomMM:[],fixMM:d,zoomFixMM:[!1,!1],startValue:b,isBlank:g,incl0:v,tggAxInv:y,ctnShp:i},u)}return e.prototype.makeNoZoom=function(){return this._i.noZoomEffMM.slice()},e.prototype.makeFinal=function(){var e=this._i,t=e.zoomMM,n=e.noZoomEffMM,r=e.zoomFixMM,i=e.fixMM,a={fixMM:i,zoomFixMM:r,isBlank:e.isBlank,incl0:e.incl0,tggAxInv:e.tggAxInv,ctnShp:e.ctnShp,effMM:n.slice()},o=a.effMM;return t[0]!=null&&(o[0]=t[0],i[0]=r[0]=!0),t[1]!=null&&(o[1]=t[1],i[1]=r[1]=!0),cS(e,o),a},e.prototype.makeRenderInfo=function(){return{startValue:this._i.startValue}},e.prototype.setZoomMM=function(e,t){this._i.zoomMM[e]=t},e}();function cS(e,t){var n=e.scale,r=e.dataMM;n.sanitize&&(t[0]=n.sanitize(t[0],r),t[1]=n.sanitize(t[1],r),Vc(t))}function lS(e,t){return t==null?null:xe(t)?NaN:e.parse(t)}function uS(e,t){var n;if(ay(e))n=[0,0];else{var r=t.get(`boundaryGap`);typeof r==`boolean`&&(r=null),n=B(r)?r:[r,r]}return[dS(n[0]),dS(n[1])]}function dS(e){return Sn(typeof e==`boolean`?0:e,1)||0}function fS(e){var t=aS(e.scale);return t.extent||=Nc(),t}function pS(e,t){fS(e).dimIdxInCoord=t.get(e.dim)}function mS(e,t){var n=e.scale,r=e.model,i=e.dim;n.rawExtentInfo||hS(n,e,i,r,t)}function hS(e,t,n,r,i){var a=fS(t),o=a.extent,s=!1;Bb(t,function(r){if(r.boxCoordinateSystem){var i=eh(r).coord,c=a.dimIdxInCoord;if(c>=0&&B(i)){var l=i[c];l!=null&&!B(l)&&Pc(o,e.parse(l))}}else if(r.coordinateSystem){var u=r.getData();if(u){var d=e.getFilter?e.getFilter():null;R(Jy(u,n),function(e){Lc(o,u.getApproximateExtent(e,d))})}r.__requireStartValue&&r.__requireStartValue(t)&&(s=!0)}});var c=xS(e,t,r);_S(e,new sS(e,r,o,s,c),i),a.extent=null}function gS(e,t){var n=e.scale;_S(n,new sS(n,e.model,t,!1,!1),oS)}function _S(e,t,n){e.rawExtentInfo=t,t.from=n}function vS(e,t){yS.set(e,t)}var yS=Ie();function bS(e,t,n,r,i){e.rawExtentInfo||gS({scale:e,model:t},i||Nc());var a=e.rawExtentInfo.makeFinal(),o=a.effMM;return e.setExtent(o[0],o[1]),e.setBlank(a.isBlank),r&&a.tggAxInv&&n&&!n.get(`legacyMinMaxDontInverseAxis`)&&(r.inverse=!r.inverse),a}function xS(e,t,n){var r=tb(e,n),i=n.get(`containShape`,!0);if(i==null&&!r&&(i=!0),!i)return!1;var a=!1;return Wb(t,function(e){a=!!yS.get(e)||a}),a}function SS(e,t,n,r){if(n.ctnShp){var i;if(Wb(e,function(t){var n=yS.get(t);if(n){var a=n(e,r);a&&(i||=[0,0],Fc(i,a[0]),Ic(i,a[1]),Hy(e))}}),i){var a=t.getExtent();if(ay(t))e.onBand||t.setExtent2(1,ds(a[0],a[0]+i[0]),fs(a[1],a[1]+i[1]));else{var o=a.slice();n.zoomFixMM[0]||(o[0]=ds(o[0],t.transformOut(t.transformIn(o[0],null)+i[0],null))),n.zoomFixMM[1]||(o[1]=fs(o[1],t.transformOut(t.transformIn(o[1],null)+i[1],null))),(o[0]a[1])&&t.setExtent2(1,o[0],o[1])}}}}function CS(){Kb(`liPosMinGap`,wS)}function wS(e,t,n){var r=Ie(),i=n.serUids,a=n.liPosMinGap,o,s=t.axis,c=s.scale,l=c.needTransform(),u=c.getFilter?c.getFilter():null,d=fm(u);function f(n){Hb(e,t.sers,function(e){var t=e.getRawData(),r=t.getDimensionIndex(t.mapDimension(s.dim));r>=0&&n(r,e,t.getStore())})}var p=0;if(f(function(e,t,n){r.set(t.uid,1),(!i||!i.hasKey(t.uid))&&(o=!0),p+=n.count()}),(!i||i.keys().length!==r.keys().length)&&(o=!0),!o&&a!=null){t.liPosMinGap=a;return}Ev(TS,p);var m=0;f(function(e,t,n){for(var r=0,i=n.count();r0&&v0?-2:-1,n.serUids=r}var TS=Ev({ctor:wv},50);function ES(e){return function(t,n){var r=$b(t,{fromStat:{key:e}});if(qs(r.w2))return[-r.w2/2,r.w2/2]}}function DS(e,t){return e+`|&`+t}function OS(e){return CS(),{liPosMinGap:!ay(e.scale)}}function kS(e,t,n,r){Xb(e,{key:t,seriesType:n,coordSysType:r,getMetrics:OS})}function AS(e){return e.scale.rawExtentInfo.makeRenderInfo().startValue}var jS={left:0,right:0,top:0,bottom:0},MS=[`25%`,`25%`],NS=`cartesian2d`,PS=function(e){p(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.mergeDefaultAndTheme=function(t,n){var r=e_(t.outerBounds);e.prototype.mergeDefaultAndTheme.apply(this,arguments),r&&t.outerBounds&&$g(t.outerBounds,r)},t.prototype.mergeOption=function(t,n){e.prototype.mergeOption.apply(this,arguments),this.option.outerBounds&&t.outerBounds&&$g(this.option.outerBounds,t.outerBounds)},t.type=`grid`,t.dependencies=[`xAxis`,`yAxis`],t.layoutMode=`box`,t.defaultOption={show:!1,z:0,left:`15%`,top:65,right:`10%`,bottom:80,containLabel:!1,outerBoundsMode:`auto`,outerBounds:jS,outerBoundsContain:`all`,outerBoundsClampWidth:MS[0],outerBoundsClampHeight:MS[1],backgroundColor:A_.color.transparent,borderWidth:1,borderColor:A_.color.neutral30},t}(n_),FS=Hc(),IS=`__ec_stack_`;function LS(e){return e.get(`stack`)||IS+e.seriesIndex}function RS(e,t){var n=zS(e,t);return n.columnMap=BS(n),n}function zS(e,t){var n=DS(t,NS),r=[],i=$b(e,{fromStat:{key:n},min:1});return Vb(e,n,function(e){r.push({barWidth:Cs(e.get(`barWidth`),i.w),barMaxWidth:Cs(e.get(`barMaxWidth`),i.w),barMinWidth:Cs(e.get(`barMinWidth`)||(HS(e)?.5:1),i.w),barGap:e.get(`barGap`),barCategoryGap:e.get(`barCategoryGap`),defaultBarGap:e.get(`defaultBarGap`),stackId:LS(e)})}),{bandWidthResult:i,seriesInfo:r}}function BS(e){var t=e.bandWidthResult.w,n=t,r=0,i,a,o=[],s={};R(e.seriesInfo,function(e,t){t||(a=e.defaultBarGap||0);var c=e.stackId;ze(s,c)||r++;var l=s[c];l||(l=s[c]={width:0,maxWidth:0},o.push(c));var u=e.barWidth;u&&!l.width&&(l.width=u,u=ds(n,u),n-=u);var d=e.barMaxWidth;d&&(l.maxWidth=d);var f=e.barMinWidth;f&&(l.minWidth=f);var p=e.barGap;p!=null&&(a=p);var m=e.barCategoryGap;m!=null&&(i=m)}),i??=fs(35-o.length*4,15)+`%`;var c=Cs(i,t),l=Cs(a,1),u=(n-c)/(r+(r-1)*l);u=fs(u,0),R(o,function(e){var t=s[e],i=t.maxWidth,a=t.minWidth;if(t.width){var o=t.width;i&&(o=ds(o,i)),a&&(o=fs(o,a)),t.width=o,n-=o+l*o,r--}else{var o=u;i&&io&&(o=a),o!==u&&(t.width=o,n-=o+l*o,r--)}}),u=(n-c)/(r+(r-1)*l),u=fs(u,0);var d=0,f;R(o,function(e){var t=s[e];t.width||=u,f=t,d+=t.width*(1+l)}),f&&(d-=f.width*l);var p={},m=-d/2;return R(o,function(e){var n=s[e];p[e]=p[e]||{bandWidth:t,offset:m,width:n.width},m+=n.width*(1+l)}),p}function VS(e){return{seriesType:e,overallReset:function(t){var n=DS(e,NS);Ub(t,n,function(t){var r=RS(t,e);Vb(t,n,function(e){var t=r.columnMap[LS(e)];e.getData().setLayout({bandWidth:t.bandWidth,offset:t.offset,size:t.width})})})}}}function lee(e){return{seriesType:e,plan:Dv(),reset:function(e){if(tS(e)){var t=e.getData(),n=e.coordinateSystem,r=n.getBaseAxis(),i=n.getOtherAxis(r),a=t.getDimensionIndex(t.mapDimension(i.dim)),o=t.getDimensionIndex(t.mapDimension(r.dim)),s=e.get(`showBackground`,!0),c=t.mapDimension(i.dim),l=t.getCalculationInfo(`stackResultDimension`),u=lh(t,c)&&!!t.getCalculationInfo(`stackedOnSeries`),d=i.isHorizontal(),f=i.toGlobalCoord(i.dataToCoord(AS(i))),p=HS(e),m=e.get(`barMinHeight`)||0,h=l&&t.getDimensionIndex(l),g=t.getLayout(`size`),_=t.getLayout(`offset`);return{progress:function(e,t){for(var r=e.count,i=p&&Tv(r*3),c=p&&s&&Tv(r*3),l=p&&Tv(r),v=n.master.getRect(),y=d?v.width:v.height,b,x=t.getStore(),S=0;(b=e.next())!=null;){var C=x.get(u?h:a,b),w=x.get(o,b),T=f,E=void 0;u&&(E=+C-x.get(a,b));var D=void 0,O=void 0,k=void 0,A=void 0;if(d){var j=n.dataToPoint([C,w]);u&&(T=n.dataToPoint([E,w])[0]),D=T,O=j[1]+_,k=j[0]-T,A=g,ps(k)s){u=(p+l)/2;break}f===1&&(d=m-r[0].tickValue)}u??(l?l&&(u=r[r.length-1].coord):u=r[0].coord),a[n]=e.toGlobalCoord(u)}});else{var o=this.getData(),s=o.getLayout(`offset`),c=o.getLayout(`size`),l=+!r.getBaseAxis().isHorizontal();a[l]+=s+c/2}return a}return[NaN,NaN]},t.prototype.__requireStartValue=function(e){return this.getBaseAxis()!==e},t.type=`series.__base_bar__`,t.defaultOption={z:2,coordinateSystem:`cartesian2d`,legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:`mod`,defaultBarGap:`10%`},t}(av);av.registerClass(GS);var KS=function(e){p(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.getInitialData=function(){return ph(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get(`realtimeSort`,!0)||null})},t.prototype.getProgressive=function(){return this.get(`large`)?this.get(`progressive`):!1},t.prototype.__preparePipelineContext=function(e,t){var n=Jc(this,e,t);return n.progressiveRender&&(n.large=!0),n},t.prototype.brushSelector=function(e,t,n){return n.rect(t.getItemLayout(e))},t.type=`series.bar`,t.dependencies=[`grid`,`polar`],t.defaultOption=bh(GS.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:`rgba(180, 180, 180, 0.2)`,borderColor:null,borderWidth:0,borderType:`solid`,borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:A_.color.primary,borderWidth:2}},realtimeSort:!1}),t}(GS),qS=`\0__throttleOriginMethod`,JS=`\0__throttleRate`,YS=`\0__throttleType`;function XS(e,t,n){var r,i=0,a=0,o=null,s,c,l,u;t||=0;function d(){a=new Date().getTime(),o=null,e.apply(c,l||[])}var f=function(){var e=[...arguments];r=new Date().getTime(),c=this,l=e;var f=u||t,p=u||n;u=null,s=r-(p?i:a)-f,clearTimeout(o),p?o=setTimeout(d,f):s>=0?d():o=setTimeout(d,-s),i=r};return f.clear=function(){o&&=(clearTimeout(o),null)},f.debounceNextCall=function(e){u=e},f}function ZS(e,t,n,r){var i=e[t];if(i){var a=i[qS]||i,o=i[YS];if(i[JS]!==n||o!==r){if(n==null||!r)return e[t]=a;i=e[t]=XS(a,n,r===`debounce`),i[qS]=a,i[YS]=r,i[JS]=n}return i}}function QS(e,t){var n=e[t];n&&n[qS]&&(n.clear&&n.clear(),e[t]=n[qS])}var $S=function(){function e(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return e}(),eC=function(e){p(t,e);function t(t){var n=e.call(this,t)||this;return n.type=`sausage`,n}return t.prototype.getDefaultShape=function(){return new $S},t.prototype.buildPath=function(e,t){var n=t.cx,r=t.cy,i=Math.max(t.r0||0,0),a=Math.max(t.r,0),o=(a-i)*.5,s=i+o,c=t.startAngle,l=t.endAngle,u=t.clockwise,d=Math.PI*2,f=u?l-cMath.PI/2&&ua)return!0;a=l}return!1},t.prototype._isOrderDifferentInView=function(e,t){for(var n=t.scale,r=n.getExtent(),i=Math.max(0,r[0]),a=Math.min(r[1],n.getOrdinalMeta().categories.length-1);i<=a;++i)if(e.ordinalNumbers[i]!==n.getRawOrdinalNumber(i))return!0},t.prototype._updateSortWithinSameData=function(e,t,n,r){if(this._isOrderChangedWithinSameData(e,t,n)){var i=this._dataSort(e,n,t);this._isOrderDifferentInView(i,n)&&(this._removeOnRenderedListener(r),r.dispatchAction({type:`changeAxisOrder`,componentType:n.dim+`Axis`,axisId:n.index,sortInfo:i}))}},t.prototype._dispatchInitSort=function(e,t,n){var r=t.baseAxis,i=this._dataSort(e,r,function(n){return e.get(e.mapDimension(t.otherAxis.dim),n)});n.dispatchAction({type:`changeAxisOrder`,componentType:r.dim+`Axis`,isInitSort:!0,axisId:r.index,sortInfo:i})},t.prototype.remove=function(e,t){this._clear(this._model),this._removeOnRenderedListener(t)},t.prototype.dispose=function(e,t){this._removeOnRenderedListener(t)},t.prototype._removeOnRenderedListener=function(e){this._onRendered&&=(e.getZr().off(`rendered`,this._onRendered),null)},t.prototype._clear=function(e){var t=this.group,n=this._data;e&&e.isAnimationEnabled()&&n&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],n.eachItemGraphicEl(function(t){Gd(t,e,Xc(t).dataIndex)})):t.removeAll(),this._data=null,this._isFirstFrame=!0},t.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},t.type=`bar`,t}(Av),lC={cartesian2d:function(e,t){var n=t.width<0?-1:1,r=t.height<0?-1:1;n<0&&(t.x+=t.width,t.width=-t.width),r<0&&(t.y+=t.height,t.height=-t.height);var i=e.x+e.width,a=e.y+e.height,o=oC(t.x,e.x),s=sC(t.x+t.width,i),c=oC(t.y,e.y),l=sC(t.y+t.height,a),u=si?s:o,t.y=d&&c>a?l:c,t.width=u?0:s-o,t.height=d?0:l-c,n<0&&(t.x+=t.width,t.width=-t.width),r<0&&(t.y+=t.height,t.height=-t.height),u||d},polar:function(e,t){var n=t.r0<=t.r?1:-1;if(n<0){var r=t.r;t.r=t.r0,t.r0=r}var i=sC(t.r,e.r),a=oC(t.r0,e.r0);t.r=i,t.r0=a;var o=i-a<0;if(n<0){var r=t.r;t.r=t.r0,t.r0=r}return o}},uC={cartesian2d:function(e,t,n,r,i,a,o,s,c){var l=new Uo({shape:I({},r),z2:1});if(l.__dataIndex=n,l.name=`item`,a){var u=l.shape,d=i?`height`:`width`;u[d]=0}return l},polar:function(e,t,n,r,i,a,o,s,c){var l=!i&&c?eC:id,u=new l({shape:r,z2:1});if(u.name=`item`,u.calculateTextPosition=tC(yC(i),{isRoundCap:l===eC}),a){var d=u.shape,f=i?`r`:`endAngle`,p={};d[f]=i?r.r0:r.startAngle,p[f]=r[f],(s?Bd:Vd)(u,{shape:p},a)}return u}};function dC(e,t){var n=e.get(`realtimeSort`,!0),r=t.getBaseAxis();if(n&&r.type===`category`&&t.type===`cartesian2d`)return{baseAxis:r,otherAxis:t.getOtherAxis(r)}}function fC(e,t,n,r,i,a,o,s){var c,l;a?(l={x:r.x,width:r.width},c={y:r.y,height:r.height}):(l={y:r.y,height:r.height},c={x:r.x,width:r.width}),s||(o?Bd:Vd)(n,{shape:c},t,i,null);var u=t?e.baseAxis.model:null;(o?Bd:Vd)(n,{shape:l},u,i)}function pC(e,t){for(var n=0;n0?1:-1,o=r.height>0?1:-1;return{x:r.x+a*i/2,y:r.y+o*i/2,width:r.width-a*i,height:r.height-o*i}},polar:function(e,t,n){var r=e.getItemLayout(t);return{cx:r.cx,cy:r.cy,r0:r.r0,r:r.r,startAngle:r.startAngle,endAngle:r.endAngle,clockwise:r.clockwise}}};function vC(e){return e.startAngle!=null&&e.endAngle!=null&&e.startAngle===e.endAngle}function yC(e){return function(e){var t=e?`Arc`:`Angle`;return function(e){switch(e){case`start`:case`insideStart`:case`end`:case`insideEnd`:return e+t;default:return e}}}(e)}function bC(e,t,n,r,i,a,o,s){var c=t.getItemVisual(n,`style`);if(!s){var l=r.get([`itemStyle`,`borderRadius`])||0;e.setShape(`r`,l)}else if(!a.get(`roundCap`)){var u=e.shape;I(u,aC(r.getModel(`itemStyle`),u,!0)),e.setShape(u)}e.useStyle(c);var d=r.getShallow(`cursor`);d&&e.attr(`cursor`,d);var f=s?o?i.r>=i.r0?`endArc`:`startArc`:i.endAngle>=i.startAngle?`endAngle`:`startAngle`:o?kC(i,a.coordinateSystem):AC(i,a.coordinateSystem),p=Kf(r);Gf(e,p,{labelFetcher:a,labelDataIndex:n,defaultText:xv(a.getData(),n),inheritColor:c.fill,defaultOpacity:c.opacity,defaultOutsidePosition:f});var m=e.getTextContent();if(s&&m){var h=r.get([`label`,`position`]);e.textConfig.inside=h===`middle`||null,nC(e,h===`outside`?f:h,yC(o),r.get([`label`,`rotate`]))}rp(m,p,a.getRawValue(n),function(e){return Sv(t,e)});var g=r.getModel([`emphasis`]);iu(e,g.get(`focus`),g.get(`blurScope`),g.get(`disabled`)),cu(e,r),vC(i)&&(e.style.fill=`none`,e.style.stroke=`none`,R(e.states,function(e){e.style&&(e.style.fill=e.style.stroke=`none`)}))}function xC(e,t){var n=e.get([`itemStyle`,`borderColor`]);if(!n||n===`none`)return 0;var r=e.get([`itemStyle`,`borderWidth`])||0,i=isNaN(t.width)?Number.MAX_VALUE:Math.abs(t.width),a=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);return Math.min(r,i,a)}var SC=function(){function e(){}return e}(),CC=function(e){p(t,e);function t(t){var n=e.call(this,t)||this;return n.type=`largeBar`,n}return t.prototype.getDefaultShape=function(){return new SC},t.prototype.buildPath=function(e,t){for(var n=t.points,r=this.baseDimIdx,i=1-this.baseDimIdx,a=[],o=[],s=this.barWidth,c=0;c=0?n:null},30,!1);function EC(e,t,n){for(var r=e.baseDimIdx,i=1-r,a=e.shape.points,o=e.largeDataIndices,s=[],c=[],l=e.barWidth,u=0,d=a.length/3;u=s[0]&&t<=s[0]+c[0]&&n>=s[1]&&n<=s[1]+c[1])return o[u]}return-1}function DC(e,t,n){if(zv(n,`cartesian2d`)){var r=t,i=n.getArea();return{x:e?r.x:i.x,y:e?i.y:r.y,width:e?r.width:i.width,height:e?i.height:r.height}}var i=n.getArea(),a=t;return{cx:i.cx,cy:i.cy,r0:e?i.r0:a.r0,r:e?i.r:a.r,startAngle:e?a.startAngle:0,endAngle:e?a.endAngle:Math.PI*2}}function OC(e,t,n){return new(e.type===`polar`?id:Uo)({shape:DC(t,n,e),silent:!0,z2:0})}function kC(e,t){return e.height===0?t.getOtherAxis(t.getBaseAxis()).inverse?`bottom`:`top`:e.height>0?`bottom`:`top`}function AC(e,t){return e.width===0?t.getOtherAxis(t.getBaseAxis()).inverse?`left`:`right`:e.width>=0?`right`:`left`}function jC(e){e.registerChartView(cC),e.registerSeriesModel(KS),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,VS(`bar`)),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,lee(`bar`)),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,ib(`bar`)),e.registerAction({type:`changeAxisOrder`,event:`changeAxisOrder`,update:`update`},function(e,t){var n=e.componentType||`series`;t.eachComponent({mainType:n,query:e},function(t){e.sortInfo&&t.axis.setCategorySortInfo(e.sortInfo)})}),WS(e)}function MC(e,t,n,r,i){var a=e+t;n.isSilent(a)||r.eachComponent({mainType:`series`,subType:`pie`},function(e){for(var t=e.seriesIndex,r=e.option.selectedMap,o=i.selected,s=0;s=0){var i=r===`touchend`?t.changedTouches[0]:t.targetTouches[0];i&&zC(e,i,t,n)}else{zC(e,t,t,n);var a=UC(t);t.zrDelta=a?a/120:-(t.detail||0)/3}var o=t.button;return t.which==null&&o!==void 0&&IC.test(t.type)&&(t.which=o&1?1:o&2?3:o&4?2:0),t}function UC(e){var t=e.wheelDelta;if(t)return t;var n=e.deltaX,r=e.deltaY;if(n==null||r==null)return t;var i=Math.abs(r===0?n:r),a=r>0?-1:r<0?1:n>0?-1:1;return 3*i*a}function WC(e,t,n,r){e.addEventListener(t,n,r)}function GC(e,t,n,r){e.removeEventListener(t,n,r)}var KC=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0},qC=function(){function e(){this._track=[]}return e.prototype.recognize=function(e,t,n){return this._doTrack(e,t,n),this._recognize(e)},e.prototype.clear=function(){return this._track.length=0,this},e.prototype._doTrack=function(e,t,n){var r=e.touches;if(r){for(var i={points:[],touches:[],target:t,event:e},a=0,o=r.length;a1&&r&&r.length>1){var a=JC(r)/JC(i);!isFinite(a)&&(a=1),t.pinchScale=a;var o=YC(r);return t.pinchX=o[0],t.pinchY=o[1],{type:`pinch`,target:e[0].target,event:t}}}}},ZC=`silent`;function QC(e,t,n){return{type:e,event:n,target:t.target,topTarget:t.topTarget,cancelBubble:!1,offsetX:n.zrX,offsetY:n.zrY,gestureEvent:n.gestureEvent,pinchX:n.pinchX,pinchY:n.pinchY,pinchScale:n.pinchScale,wheelDelta:n.zrDelta,zrByTouch:n.zrByTouch,which:n.which,stop:$C}}function $C(){KC(this.event)}var ew=function(e){p(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.handler=null,t}return t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t}(Ki),tw=function(){function e(e,t){this.x=e,this.y=t}return e}(),nw=[`click`,`dblclick`,`mousewheel`,`mouseout`,`mouseup`,`mousedown`,`mousemove`,`contextmenu`],rw=new en(0,0,0,0),iw=function(e){p(t,e);function t(t,n,r,i,a){var o=e.call(this)||this;return o._hovered=new tw(0,0),o.storage=t,o.painter=n,o.painterRoot=i,o._pointerSize=a,r||=new ew,o.proxy=null,o.setHandlerProxy(r),o._draggingMgr=new FC(o),o}return t.prototype.setHandlerProxy=function(e){this.proxy&&this.proxy.dispose(),e&&(R(nw,function(t){e.on&&e.on(t,this[t],this)},this),e.handler=this),this.proxy=e},t.prototype.mousemove=function(e){var t=e.zrX,n=e.zrY,r=sw(this,t,n),i=this._hovered,a=i.target;a&&!a.__zr&&(i=this.findHover(i.x,i.y),a=i.target);var o=this._hovered=r?new tw(t,n):this.findHover(t,n),s=o.target,c=this.proxy;c.setCursor&&c.setCursor(s?s.cursor:`default`),a&&s!==a&&this.dispatchToElement(i,`mouseout`,e),this.dispatchToElement(o,`mousemove`,e),s&&s!==a&&this.dispatchToElement(o,`mouseover`,e)},t.prototype.mouseout=function(e){var t=e.zrEventControl;t!==`only_globalout`&&this.dispatchToElement(this._hovered,`mouseout`,e),t!==`no_globalout`&&this.trigger(`globalout`,{type:`globalout`,event:e})},t.prototype.resize=function(){this._hovered=new tw(0,0)},t.prototype.dispatch=function(e,t){var n=this[e];n&&n.call(this,t)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(e){var t=this.proxy;t.setCursor&&t.setCursor(e)},t.prototype.dispatchToElement=function(e,t,n){e||={};var r=e.target;if(!(r&&r.silent)){for(var i=`on`+t,a=QC(t,e,n);r&&(r[i]&&(a.cancelBubble=!!r[i].call(r,a)),r.trigger(t,a),r=r.__hostTarget?r.__hostTarget:r.parent,!a.cancelBubble););a.cancelBubble||(this.trigger(t,a),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(e){typeof e[i]==`function`&&e[i].call(e,a),e.trigger&&e.trigger(t,a)}))}},t.prototype.findHover=function(e,t,n){var r=this.storage.getDisplayList(),i=new tw(e,t);if(ow(r,i,e,t,n),this._pointerSize&&!i.target){for(var a=[],o=this._pointerSize,s=o/2,c=new en(e-s,t-s,o,o),l=r.length-1;l>=0;l--){var u=r[l];u!==n&&!u.ignore&&!u.ignoreCoarsePointer&&(!u.parent||!u.parent.ignoreCoarsePointer)&&(rw.copy(u.getBoundingRect()),u.transform&&rw.applyTransform(u.transform),rw.intersect(c)&&a.push(u))}if(a.length){for(var d=4,f=Math.PI/12,p=Math.PI*2,m=0;m4)return;this._downPoint=null}this.dispatchToElement(a,e,t)}});function aw(e,t,n){if(e[e.rectHover?`rectContain`:`contain`](t,n)){for(var r=e,i=void 0,a=!1;r;){if(r.ignoreClip&&(a=!0),!a){var o=r.getClipPath();if(o&&!o.contain(t,n))return!1}r.silent&&(i=!0);var s=r.__hostTarget;r=s?r.ignoreHostSilent?null:s:r.parent}return!i||ZC}return!1}function ow(e,t,n,r,i){for(var a=e.length-1;a>=0;a--){var o=e[a],s=void 0;if(o!==i&&!o.ignore&&(s=aw(o,n,r))&&(!t.topTarget&&(t.topTarget=o),s!==ZC)){t.target=o;break}}}function sw(e,t,n){var r=e.painter;return t<0||t>r.getWidth()||n<0||n>r.getHeight()}var cw=32,lw=7;function uw(e){for(var t=0;e>=cw;)t|=e&1,e>>=1;return e+t}function dw(e,t,n,r){var i=t+1;if(i===n)return 1;if(r(e[i++],e[t])<0){for(;i=0;)i++;return i-t}function fw(e,t,n){for(n--;t>>1,i(a,e[c])<0?s=c:o=c+1;var l=r-o;switch(l){case 3:e[o+3]=e[o+2];case 2:e[o+2]=e[o+1];case 1:e[o+1]=e[o];break;default:for(;l>0;)e[o+l]=e[o+l-1],l--}e[o]=a}}function mw(e,t,n,r,i,a){var o=0,s=0,c=1;if(a(e,t[n+i])>0){for(s=r-i;c0;)o=c,c=(c<<1)+1,c<=0&&(c=s);c>s&&(c=s),o+=i,c+=i}else{for(s=i+1;cs&&(c=s);var l=o;o=i-c,c=i-l}for(o++;o>>1);a(e,t[n+u])>0?o=u+1:c=u}return c}function hw(e,t,n,r,i,a){var o=0,s=0,c=1;if(a(e,t[n+i])<0){for(s=i+1;cs&&(c=s);var l=o;o=i-c,c=i-l}else{for(s=r-i;c=0;)o=c,c=(c<<1)+1,c<=0&&(c=s);c>s&&(c=s),o+=i,c+=i}for(o++;o>>1);a(e,t[n+u])<0?c=u:o=u+1}return c}function gw(e,t){var n=lw,r,i,a=0,o=[];r=[],i=[];function s(e,t){r[a]=e,i[a]=t,a+=1}function c(){for(;a>1;){var e=a-2;if(e>=1&&i[e-1]<=i[e]+i[e+1]||e>=2&&i[e-2]<=i[e]+i[e-1])i[e-1]i[e+1])break;u(e)}}function l(){for(;a>1;){var e=a-2;e>0&&i[e-1]=lw||m>=lw);if(h)break;f<0&&(f=0),f+=2}if(n=f,n<1&&(n=1),i===1){for(c=0;c=0;c--)e[p+c]=e[f+c];e[d]=o[u];return}for(var m=n;;){var h=0,g=0,_=!1;do if(t(o[u],e[l])<0){if(e[d--]=e[l--],h++,g=0,--i===0){_=!0;break}}else if(e[d--]=o[u--],g++,h=0,--s===1){_=!0;break}while((h|g)=0;c--)e[p+c]=e[f+c];if(i===0){_=!0;break}}if(e[d--]=o[u--],--s===1){_=!0;break}if(g=s-mw(e[l],o,0,s,s-1,t),g!==0){for(d-=g,u-=g,s-=g,p=d+1,f=u+1,c=0;c=lw||g>=lw);if(_)break;m<0&&(m=0),m+=2}if(n=m,n<1&&(n=1),s===1){for(d-=i,l-=i,p=d+1,f=l+1,c=i-1;c>=0;c--)e[p+c]=e[f+c];e[d]=o[u]}else if(s===0)throw Error();else for(f=d-(s-1),c=0;cs&&(c=s),pw(e,n,n+c,n+a,t),a=c}o.pushRun(n,a),o.mergeRuns(),i-=a,n+=a}while(i!==0);o.forceMergeRuns()}}var vw=!1;function yw(){vw||(vw=!0,console.warn(`z / z2 / zlevel of displayable is invalid, which may cause unexpected errors`))}function bw(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var xw=function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=bw}return e.prototype.traverse=function(e,t){for(var n=0;n=0&&this._roots.splice(r,1)},e.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},e.prototype.getRoots=function(){return this._roots},e.prototype.dispose=function(){this._displayList=null,this._roots=null},e}(),Sw=Ue.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(e){return setTimeout(e,16)};function Cw(){return new Date().getTime()}var ww=function(e){p(t,e);function t(t){var n=e.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,t||={},n.stage=t.stage||{},n}return t.prototype.addClip=function(e){e.animation&&this.removeClip(e),this._head?(this._tail.next=e,e.prev=this._tail,e.next=null,this._tail=e):this._head=this._tail=e,e.animation=this},t.prototype.addAnimator=function(e){e.animation=this;var t=e.getClip();t&&this.addClip(t)},t.prototype.removeClip=function(e){if(e.animation){var t=e.prev,n=e.next;t?t.next=n:this._head=n,n?n.prev=t:this._tail=t,e.next=e.prev=e.animation=null}},t.prototype.removeAnimator=function(e){var t=e.getClip();t&&this.removeClip(t),e.animation=null},t.prototype.update=function(e){for(var t=Cw()-this._pausedTime,n=t-this._time,r=this._head;r;){var i=r.next;r.step(t,n)?(r.ondestroy(),this.removeClip(r),r=i):r=i}this._time=t,e||(this.trigger(`frame`,n),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var e=this;this._running=!0;function t(){e._running&&(Sw(t),!e._paused&&e.update())}Sw(t)},t.prototype.start=function(){this._running||(this._time=Cw(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||=(this._pauseStart=Cw(),!0)},t.prototype.resume=function(){this._paused&&=(this._pausedTime+=Cw()-this._pauseStart,!1)},t.prototype.clear=function(){for(var e=this._head;e;){var t=e.next;e.prev=e.next=e.animation=null,e=t}this._head=this._tail=null},t.prototype.isFinished=function(){return this._head==null},t.prototype.animate=function(e,t){t||={},this.start();var n=new Gi(e,t.loop);return this.addAnimator(n),n},t}(Ki),Tw=300,Ew=Ue.domSupported,Dw=(function(){var e=[`click`,`dblclick`,`mousewheel`,`wheel`,`mouseout`,`mouseup`,`mousedown`,`mousemove`,`contextmenu`],t=[`touchstart`,`touchend`,`touchmove`],n={pointerdown:1,pointerup:1,pointermove:1,pointerout:1};return{mouse:e,touch:t,pointer:z(e,function(e){var t=e.replace(`mouse`,`pointer`);return n.hasOwnProperty(t)?t:e})}})(),Ow={mouse:[`mousemove`,`mouseup`],pointer:[`pointermove`,`pointerup`]},kw=!1;function Aw(e){var t=e.pointerType;return t===`pen`||t===`touch`}function uee(e){e.touching=!0,e.touchTimer!=null&&(clearTimeout(e.touchTimer),e.touchTimer=null),e.touchTimer=setTimeout(function(){e.touching=!1,e.touchTimer=null},700)}function jw(e){e&&(e.zrByTouch=!0)}function dee(e,t){return HC(e.dom,new fee(e,t),!0)}function Mw(e,t){for(var n=t,r=!1;n&&n.nodeType!==9&&!(r=n.domBelongToZr||n!==t&&n===e.painterRoot);)n=n.parentNode;return r}var fee=function(){function e(e,t){this.stopPropagation=Be,this.stopImmediatePropagation=Be,this.preventDefault=Be,this.type=t.type,this.target=this.currentTarget=e.dom,this.pointerType=t.pointerType,this.clientX=t.clientX,this.clientY=t.clientY}return e}(),Nw={mousedown:function(e){e=HC(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger(`mousedown`,e)},mousemove:function(e){e=HC(this.dom,e);var t=this.__mayPointerCapture;t&&(e.zrX!==t[0]||e.zrY!==t[1])&&this.__togglePointerCapture(!0),this.trigger(`mousemove`,e)},mouseup:function(e){e=HC(this.dom,e),this.__togglePointerCapture(!1),this.trigger(`mouseup`,e)},mouseout:function(e){e=HC(this.dom,e);var t=e.toElement||e.relatedTarget;Mw(this,t)||(this.__pointerCapturing&&(e.zrEventControl=`no_globalout`),this.trigger(`mouseout`,e))},wheel:function(e){kw=!0,e=HC(this.dom,e),this.trigger(`mousewheel`,e)},mousewheel:function(e){kw||(e=HC(this.dom,e),this.trigger(`mousewheel`,e))},touchstart:function(e){e=HC(this.dom,e),jw(e),this.__lastTouchMoment=new Date,this.handler.processGesture(e,`start`),Nw.mousemove.call(this,e),Nw.mousedown.call(this,e)},touchmove:function(e){e=HC(this.dom,e),jw(e),this.handler.processGesture(e,`change`),Nw.mousemove.call(this,e)},touchend:function(e){e=HC(this.dom,e),jw(e),this.handler.processGesture(e,`end`),Nw.mouseup.call(this,e),new Date-+this.__lastTouchMoment0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},e.prototype.setSleepAfterStill=function(e){this._sleepAfterStill=e},e.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},e.prototype.refreshHover=function(){this._needsRefreshHover=!0},e.prototype.refreshHoverImmediately=function(){this._disposed||this._refresh({animUpdate:!1,refresh:!1,refreshHover:!0})},e.prototype.resize=function(e){this._disposed||(e||={},this.painter.resize(e.width,e.height),this.handler.resize())},e.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},e.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},e.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},e.prototype.setCursorStyle=function(e){this._disposed||this.handler.setCursorStyle(e)},e.prototype.findHover=function(e,t){if(!this._disposed)return this.handler.findHover(e,t)},e.prototype.on=function(e,t,n){return this._disposed||this.handler.on(e,t,n),this},e.prototype.off=function(e,t){this._disposed||this.handler.off(e,t)},e.prototype.trigger=function(e,t){this._disposed||this.handler.trigger(e,t)},e.prototype.clear=function(){if(!this._disposed){for(var e=this.storage.getRoots(),t=0;t=0;o--)r[o]&&!vc(r[o])?a=!0:(r[o]=null,!a&&i--);r.length=i,e[n]=r}}),delete e[sT],e},t.prototype.setTheme=function(e){this._theme=new hp(e),this._resetOption(`recreate`,null)},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(e){this._payload=e},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(e,t){var n=this._componentsMap.get(e);if(n){var r=n[t||0];if(r)return r;if(t==null){for(var i=0;i=t:n===`max`?e<=t:e===t}function bT(e,t){return e.join(`,`)===t.join(`,`)}var xT=R,ST=H,CT=[`areaStyle`,`lineStyle`,`nodeStyle`,`linkStyle`,`chordStyle`,`label`,`labelLine`];function wT(e){var t=e&&e.itemStyle;if(t)for(var n=0,r=CT.length;n0?e[n-1].seriesModel:null)}),qT(e))})}function qT(e){R(e,function(t,n){var r=[],i=[NaN,NaN],a=[t.stackResultDimension,t.stackedOverDimension],o=t.data,s=t.isStackedByIndex,c=t.seriesModel.get(`stackStrategy`)||`samesign`;o.modify(a,function(a,l,u){var d=o.get(t.stackedDimension,u);if(isNaN(d))return i;var f,p;s?p=o.getRawIndex(u):f=o.get(t.stackedByDimension,u);for(var m=NaN,h=n-1;h>=0;h--){var g=e[h];if(s||(p=g.data.rawIndexOf(g.stackedByDimension,f)),p>=0){var _=g.data.getByRawIndex(g.stackResultDimension,p);if(c===`all`||c===`positive`&&_>0||c===`negative`&&_<0||c===`samesign`&&d>=0&&_>0||c===`samesign`&&d<=0&&_<0){d=Ms(d,_),m=_;break}}}return r[0]=d,r[1]=m,r})})}var JT=function(){function e(){this.group=new Lu,this.uid=_h(`viewComponent`)}return e.prototype.init=function(e,t){},e.prototype.render=function(e,t,n,r){},e.prototype.dispose=function(e,t){},e.prototype.updateView=function(e,t,n,r){},e.prototype.updateLayout=function(e,t,n,r){},e.prototype.updateVisual=function(e,t,n,r){},e.prototype.toggleBlurSeries=function(e,t,n){},e.prototype.eachRendered=function(e){var t=this.group;t&&t.traverse(e)},e}();Ze(JT),it(JT);var YT=Cc(),XT={itemStyle:at(fp,!0),lineStyle:at(lp,!0)},ZT={lineStyle:`stroke`,itemStyle:`fill`};function QT(e,t){return e.visualStyleMapper||XT[t]||(console.warn(`Unknown style type '`+t+`'.`),XT.itemStyle)}function $T(e,t){return e.visualDrawType||ZT[t]||(console.warn(`Unknown style type '`+t+`'.`),`fill`)}var eE={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData(),r=e.visualStyleAccessPath||`itemStyle`,i=e.getModel(r),a=QT(e,r)(i),o=i.getShallow(`decal`);o&&(n.setVisual(`decal`,o),o.dirty=!0);var s=$T(e,r),c=a[s],l=me(c)?c:null,u=a.fill===`auto`||a.stroke===`auto`;if(!a[s]||l||u){var d=e.getColorFromPalette(e.name,null,t.getSeriesCount());a[s]||(a[s]=d,n.setVisual(`colorFromPalette`,!0)),a.fill=a.fill===`auto`||me(a.fill)?d:a.fill,a.stroke=a.stroke===`auto`||me(a.stroke)?d:a.stroke}if(n.setVisual(`style`,a),n.setVisual(`drawType`,s),!t.isSeriesFiltered(e)&&l)return n.setVisual(`colorFromPalette`,!1),{dataEach:function(t,n){var r=e.getDataParams(n),i=I({},a);i[s]=l(r),t.setItemVisual(n,`style`,i)}}}},tE=new hp,nE={createOnAllSeries:!0,reset:function(e,t){if(!e.ignoreStyleOnData){var n=e.getData(),r=e.visualStyleAccessPath||`itemStyle`,i=QT(e,r),a=n.getVisual(`drawType`);return{dataEach:n.hasItemOption?function(e,t){var n=e.getRawDataItem(t);if(n&&n[r]){tE.option=n[r];var o=i(tE);I(e.ensureUniqueItemVisual(t,`style`),o),tE.option.decal&&(e.setItemVisual(t,`decal`,tE.option.decal),tE.option.decal.dirty=!0),a in o&&e.setItemVisual(t,`colorFromPalette`,!1)}}:null}}}},rE={performRawSeries:!0,overallReset:function(e){var t=Ie();e.eachSeries(function(e){if(!e.isColorBySeries()){var n=e.type+`-`+e.getColorBy();YT(e).scope=t.get(n)||t.set(n,{})}}),e.eachSeries(function(e){if(!e.isColorBySeries()){var t=e.getRawData(),n={},r=e.getData(),i=YT(e).scope,a=$T(e,e.visualStyleAccessPath||`itemStyle`);r.each(function(e){var t=r.getRawIndex(e);n[t]=e}),t.each(function(o){var s=n[o];if(r.getItemVisual(s,`colorFromPalette`)){var c=r.ensureUniqueItemVisual(s,`style`),l=t.getName(o)||o+``,u=t.count();c[a]=e.getColorFromPalette(l,i,u)}})}})}},iE=Math.PI;function aE(e,t){t||={},L(t,{text:`loading`,textColor:A_.color.primary,fontSize:12,fontWeight:`normal`,fontStyle:`normal`,fontFamily:`sans-serif`,maskColor:`rgba(255,255,255,0.8)`,showSpinner:!0,color:A_.color.theme[0],spinnerRadius:10,lineWidth:5,zlevel:0});var n=new Lu,r=new Uo({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});n.add(r);var i=new Jo({style:{text:t.text,fill:t.textColor,fontSize:t.fontSize,fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:t.fontFamily},zlevel:t.zlevel,z:10001}),a=new Uo({style:{fill:`none`},textContent:i,textConfig:{position:`right`,distance:10},zlevel:t.zlevel,z:10001});n.add(a);var o;return t.showSpinner&&(o=new xd({shape:{startAngle:-iE/2,endAngle:-iE/2+.1,r:t.spinnerRadius},style:{stroke:t.color,lineCap:`round`,lineWidth:t.lineWidth},zlevel:t.zlevel,z:10001}),o.animateShape(!0).when(1e3,{endAngle:iE*3/2}).start(`circularInOut`),o.animateShape(!0).when(1e3,{startAngle:iE*3/2}).delay(300).start(`circularInOut`),n.add(o)),n.resize=function(){var n=i.getBoundingRect().width,s=t.showSpinner?t.spinnerRadius:0,c=(e.getWidth()-s*2-(t.showSpinner&&n?10:0)-n)/2-(t.showSpinner&&n?0:5+n/2)+(t.showSpinner?0:n/2)+(n?0:s),l=e.getHeight()/2;t.showSpinner&&o.setShape({cx:c,cy:l}),a.setShape({x:c-s,y:l-s,width:s*2,height:s*2}),r.setShape({x:0,y:0,width:e.getWidth(),height:e.getHeight()})},n.resize(),n}var oE=function(){function e(e,t,n,r){this._stageTaskMap=Ie(),this.ecInstance=e,this.api=t,n=this._dataProcessorHandlers=n.slice(),r=this._visualHandlers=r.slice(),this._allHandlers=n.concat(r)}return e.prototype.restoreData=function(e,t){e.restoreData(t),this._stageTaskMap.each(function(e){var t=e.overallTask;t&&t.dirty()})},e.prototype.getPerformArgs=function(e,t){if(e.__pipeline){var n=this._pipelineMap.get(e.__pipeline.id),r=n.context,i=!t&&n.progressiveEnabled&&(!r||r.progressiveRender)&&e.__idxInPipeline>n.blockIndex?n.step:null,a=r&&r.modDataCount;return{step:i,modBy:a==null?null:Math.ceil(a/i),modDataCount:a}}},e.prototype.getPipeline=function(e){return this._pipelineMap.get(e)},e.prototype.updateStreamModes=function(e,t){var n=this._pipelineMap.get(e.uid);e.pipelineContext=n.context=e.__preparePipelineContext?e.__preparePipelineContext(t,n):Jc(e,t,n)},e.prototype.restorePipelines=function(e,t){var n=this,r=n._pipelineMap=Ie();t.eachSeries(function(t){var i=e.painter.type===`canvas`&&t.getProgressive(),a=t.uid;r.set(a,{id:a,head:null,tail:null,threshold:t.getProgressiveThreshold(),progressiveEnabled:i&&!(t.preventIncremental&&t.preventIncremental()),blockIndex:-1,step:Math.round(i||700),count:0}),n._pipe(t,t.dataTask)})},e.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,t=this.api.getModel(),n=this.api;R(this._allHandlers,function(r){var i=e.get(r.uid)||e.set(r.uid,{});De(!(r.reset&&r.overallReset),``),r.reset&&this._createSeriesStageTask(r,i,t,n),r.overallReset&&this._createOverallStageTask(r,i,t,n)},this)},e.prototype.prepareView=function(e,t,n,r){var i=e.renderTask,a=i.context;a.model=t,a.ecModel=n,a.api=r,i.__block=!e.incrementalPrepareRender,this._pipe(t,i)},e.prototype.performDataProcessorTasks=function(e,t){this._performStageTasks(this._dataProcessorHandlers,e,t,{block:!0})},e.prototype.performVisualTasks=function(e,t,n){this._performStageTasks(this._visualHandlers,e,t,n)},e.prototype._performStageTasks=function(e,t,n,r){r||={};var i=!1,a=this;R(e,function(e,s){if(!(r.visualType&&r.visualType!==e.visualType)){var c=a._stageTaskMap.get(e.uid),l=c.seriesTaskMap,u=c.overallTask;if(u){var d,f=u.agentStubMap;f.each(function(e){o(r,e)&&(e.dirty(),d=!0)}),d&&u.dirty(),a.updatePayload(u,n);var p=a.getPerformArgs(u,r.block);f.each(function(e){e.perform(p)}),u.perform(p)&&(i=!0)}else l&&l.each(function(s,c){o(r,s)&&s.dirty();var l=a.getPerformArgs(s,r.block);l.skip=!e.performRawSeries&&t.isSeriesFiltered(s.context.model),a.updatePayload(s,n),s.perform(l)&&(i=!0)})}});function o(e,t){return e.setDirty&&(!e.dirtyMap||e.dirtyMap.get(t.__pipeline.id))}this.unfinished=i||this.unfinished},e.prototype.performSeriesTasks=function(e){var t;e.eachSeries(function(e){t=e.dataTask.perform()||t}),this.unfinished=t||this.unfinished},e.prototype.plan=function(){this._pipelineMap.each(function(e){var t=e.tail;do{if(t.__block){e.blockIndex=t.__idxInPipeline;break}t=t.getUpstream()}while(t)})},e.prototype.updatePayload=function(e,t){t!==`remain`&&(e.context.payload=t)},e.prototype._createSeriesStageTask=function(e,t,n,r){var i=this,a=t.seriesTaskMap,o=t.seriesTaskMap=Ie(),s=e.seriesType,c=e.getTargetSeries;e.createOnAllSeries?n.eachRawSeries(l):s?n.eachRawSeriesByType(s,l):c&&c(n,r).each(l);function l(t){var s=t.uid,c=o.set(s,a&&a.get(s)||m_({plan:dE,reset:fE,count:hE}));c.context={model:t,ecModel:n,api:r,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:i},i._pipe(t,c)}},e.prototype._createOverallStageTask=function(e,t,n,r){var i=this,a=t.overallTask=t.overallTask||m_({reset:sE});a.context={ecModel:n,api:r,overallReset:e.overallReset,scheduler:i};var o=a.agentStubMap,s=a.agentStubMap=Ie(),c=e.seriesType,l=e.getTargetSeries,u=e.dirtyOnOverallProgress,d=!1;De(!e.createOnAllSeries,``),c?n.eachRawSeriesByType(c,f):l?l(n,r).each(f):R(n.getSeries(),f);function f(e){var t=e.uid,n=s.set(t,o&&o.get(t)||(d=!0,m_({reset:cE,onDirty:uE})));n.context={model:e,dirtyOnOverallProgress:u},n.agent=a,n.__block=u,i._pipe(e,n)}d&&a.dirty()},e.prototype._pipe=function(e,t){var n=e.uid,r=this._pipelineMap.get(n);!r.head&&(r.head=t),r.tail&&r.tail.pipe(t),r.tail=t,t.__idxInPipeline=r.count++,t.__pipeline=r},e.wrapStageHandler=function(e,t){return me(e)&&(e={overallReset:e,seriesType:gE(e)}),e.uid=_h(`stageHandler`),t&&(e.visualType=t),e},e}();function sE(e){e.overallReset(e.ecModel,e.api,e.payload)}function cE(e){return e.dirtyOnOverallProgress&&lE}function lE(){this.agent.dirty(),this.getDownstream().dirty()}function uE(){this.agent&&this.agent.dirty()}function dE(e){return e.plan?e.plan(e.model,e.ecModel,e.api,e.payload):null}function fE(e){e.useClearVisual&&e.data.clearAllVisual();var t=e.resetDefines=nc(e.reset(e.model,e.ecModel,e.api,e.payload));return t.length>1?z(t,function(e,t){return mE(t)}):pE}var pE=mE(0);function mE(e){return function(t,n){var r=n.data,i=n.resetDefines[e];if(i&&i.dataEach)for(var a=t.start;a0&&u===i.length-l.length){var d=i.slice(0,u);d!==`data`&&(t.mainType=d,t[l.toLowerCase()]=e,s=!0)}}o.hasOwnProperty(i)&&(n[i]=e,s=!0),s||(r[i]=e)})}return{cptQuery:t,dataQuery:n,otherQuery:r}},e.prototype.filter=function(e,t){var n=this.eventInfo;if(!n)return!0;var r=n.targetEl,i=n.packedEvent,a=n.model,o=n.view;if(!a||!o)return!0;var s=t.cptQuery,c=t.dataQuery;return l(s,a,`mainType`)&&l(s,a,`subType`)&&l(s,a,`index`,`componentIndex`)&&l(s,a,`name`)&&l(s,a,`id`)&&l(c,i,`name`)&&l(c,i,`dataIndex`)&&l(c,i,`dataType`)&&(!o.filterForExposedEvent||o.filterForExposedEvent(e,t.otherQuery,r,i));function l(e,t,n,r){return e[n]==null||t[r||n]===e[n]}},e.prototype.afterTrigger=function(){this.eventInfo=null},e}(),EE=[`symbol`,`symbolSize`,`symbolRotate`,`symbolOffset`],DE=EE.concat([`symbolKeepAspect`]),OE={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData();if(e.legendIcon&&n.setVisual(`legendIcon`,e.legendIcon),!e.hasSymbolVisual)return;for(var r={},i={},a=!1,o=0;o=0&&UE(c)?c:.5,e.createRadialGradient(o,s,0,o,s,c)}function KE(e,t,n){for(var r=t.type===`radial`?GE(e,t,n):WE(e,t,n),i=t.colorStops,a=0;a0)?null:e===`dashed`?[4*t,2*t]:e===`dotted`?[t]:ge(e)?[e]:B(e)?e:null}function ZE(e){var t=e.style,n=t.lineDash&&t.lineWidth>0&&XE(t.lineDash,t.lineWidth),r=t.lineDashOffset;if(n){var i=t.strokeNoScale&&e.getLineScale?e.getLineScale():1;i&&i!==1&&(n=z(n,function(e){return e/i}),r/=i)}return[n,r]}var QE=new ro(!0);function $E(e){var t=e.stroke;return!(t==null||t===`none`||!(e.lineWidth>0))}function eD(e){return typeof e==`string`&&e!==`none`}function tD(e){var t=e.fill;return t!=null&&t!==`none`}function nD(e,t){if(t.fillOpacity!=null&&t.fillOpacity!==1){var n=e.globalAlpha;e.globalAlpha=t.fillOpacity*t.opacity,e.fill(),e.globalAlpha=n}else e.fill()}function rD(e,t){if(t.strokeOpacity!=null&&t.strokeOpacity!==1){var n=e.globalAlpha;e.globalAlpha=t.strokeOpacity*t.opacity,e.stroke(),e.globalAlpha=n}else e.stroke()}function iD(e,t,n){var r=pt(t.image,t.__image,n);if(ht(r)){var i=e.createPattern(r,t.repeat||`repeat`);if(typeof DOMMatrix==`function`&&i&&i.setTransform){var a=new DOMMatrix;a.translateSelf(t.x||0,t.y||0),a.rotateSelf(0,0,(t.rotation||0)*Ve),a.scaleSelf(t.scaleX||1,t.scaleY||1),i.setTransform(a)}return i}}function aD(e,t,n,r,i){var a,o=$E(n),s=tD(n),c=n.strokePercent,l=c<1,u=!t.path;(!t.silent||l)&&u&&t.createPathProxy();var d=t.path||QE,f=t.__dirty;if(!r){var p=n.fill,m=n.stroke,h=s&&!!p.colorStops,g=o&&!!m.colorStops,_=s&&!!p.image,v=o&&!!m.image,y=void 0,b=void 0,x=void 0,S=void 0,C=void 0;(h||g)&&(C=t.getBoundingRect()),h&&(y=f?KE(e,p,C):t.__canvasFillGradient,t.__canvasFillGradient=y),g&&(b=f?KE(e,m,C):t.__canvasStrokeGradient,t.__canvasStrokeGradient=b),_&&(x=f||!t.__canvasFillPattern?iD(e,p,t):t.__canvasFillPattern,t.__canvasFillPattern=x),v&&(S=f||!t.__canvasStrokePattern?iD(e,m,t):t.__canvasStrokePattern,t.__canvasStrokePattern=S),h?e.fillStyle=y:_&&(x?e.fillStyle=x:s=!1),g?e.strokeStyle=b:v&&(S?e.strokeStyle=S:o=!1)}var w=t.getGlobalScale();d.setScale(w[0],w[1],t.segmentIgnoreThreshold);var T,E;e.setLineDash&&n.lineDash&&(a=ZE(t),T=a[0],E=a[1]);var D=!0;(u||f&4)&&(d.setDPR(e.dpr),l?d.setContext(null):(d.setContext(e),D=!1),d.reset(),t.buildPath(d,t.shape,r),d.toStatic(),t.pathUpdated()),D&&d.rebuildPath(e,l?c:1),T&&(e.setLineDash(T),e.lineDashOffset=E),r?(i.batchFill=s,i.batchStroke=o):n.strokeFirst?(o&&rD(e,n),s&&nD(e,n)):(s&&nD(e,n),o&&rD(e,n)),T&&e.setLineDash([])}function oD(e,t,n){var r=t.__image=pt(n.image,t.__image,t,t.onload);if(!(!r||!ht(r))){var i=n.x||0,a=n.y||0,o=t.getWidth(),s=t.getHeight(),c=r.width/r.height;if(o==null&&s!=null?o=s*c:s==null&&o!=null?s=o/c:o==null&&s==null&&(o=r.width,s=r.height),n.sWidth&&n.sHeight){var l=n.sx||0,u=n.sy||0;e.drawImage(r,l,u,n.sWidth,n.sHeight,i,a,o,s)}else if(n.sx&&n.sy){var l=n.sx,u=n.sy,d=o-l,f=s-u;e.drawImage(r,l,u,d,f,i,a,o,s)}else e.drawImage(r,i,a,o,s)}}function sD(e,t,n){var r,i=n.text;if(i!=null&&(i+=``),i){e.font=n.font||`12px sans-serif`,e.textAlign=n.textAlign,e.textBaseline=n.textBaseline;var a=void 0,o=void 0;e.setLineDash&&n.lineDash&&(r=ZE(t),a=r[0],o=r[1]),a&&(e.setLineDash(a),e.lineDashOffset=o),n.strokeFirst?($E(n)&&e.strokeText(i,n.x,n.y),tD(n)&&e.fillText(i,n.x,n.y)):(tD(n)&&e.fillText(i,n.x,n.y),$E(n)&&e.strokeText(i,n.x,n.y)),a&&e.setLineDash([])}}var cD=[`shadowBlur`,`shadowOffsetX`,`shadowOffsetY`],lD=[[`lineCap`,`butt`],[`lineJoin`,`miter`],[`miterLimit`,10]];function uD(e,t,n,r,i){var a=!1;if(!r&&(n||={},t===n))return!1;if(r||t.opacity!==n.opacity){xD(e,i),a=!0;var o=Math.max(Math.min(t.opacity,1),0);e.globalAlpha=isNaN(o)?_a.opacity:o}(r||t.blend!==n.blend)&&(a||=(xD(e,i),!0),e.globalCompositeOperation=t.blend||_a.blend);for(var s=0;s0&&e.unfinished);e.unfinished||this._zr.flush()}}},t.prototype.getDom=function(){return this._dom},t.prototype.getId=function(){return this.id},t.prototype.getZr=function(){return this._zr},t.prototype.isSSR=function(){return this._ssr},t.prototype.setOption=function(e,t,n){if(!this[tO]){if(this._disposed){this.id;return}var r,i,a;if(H(t)&&(n=t.lazyUpdate,r=t.silent,i=t.replaceMerge,a=t.transition,t=t.notMerge),this[tO]=!0,NO(this),!this._model||t){var o=new gT(this._api),s=this._theme,c=this._model=new lT;c.scheduler=this._scheduler,c.ssr=this._ssr,c.init(null,null,null,s,this._locale,o)}this._model.setOption(e,{replaceMerge:i},VO);var l={seriesTransition:a,optionChanged:!0};if(n)this[rO]={silent:r,updateParams:l},this[tO]=!1,this.getZr().wakeUp();else{try{hO(this),vO.update.call(this,null,l)}catch(e){throw this[rO]=null,this[tO]=!1,e}this._ssr||this._zr.flush(),this[rO]=null,this[tO]=!1,SO.call(this,r),CO.call(this,r)}}},t.prototype.setTheme=function(e,t){if(!this[tO]){if(this._disposed){this.id;return}var n=this._model;if(n){var r=t&&t.silent,i=null;this[rO]&&(r??=this[rO].silent,i=this[rO].updateParams,this[rO]=null),this[tO]=!0,NO(this);try{this._updateTheme(e),n.setTheme(this._theme),hO(this),vO.update.call(this,{type:`setTheme`},i)}catch(e){throw this[tO]=!1,e}this[tO]=!1,SO.call(this,r),CO.call(this,r)}}},t.prototype._updateTheme=function(e){V(e)&&(e=UO[e]),e&&(e=P(e),e&&WT(e,!0),this._theme=e)},t.prototype.getModel=function(){return this._model},t.prototype.getOption=function(){return this._model&&this._model.getOption()},t.prototype.getWidth=function(){return this._zr.getWidth()},t.prototype.getHeight=function(){return this._zr.getHeight()},t.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||Ue.hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(e){return this.renderToCanvas(e)},t.prototype.renderToCanvas=function(e){return e||={},this._zr.painter.getRenderedCanvas({backgroundColor:e.backgroundColor||this._model.get(`backgroundColor`),pixelRatio:e.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(e){return e||={},this._zr.painter.renderToString({useViewBox:e.useViewBox})},t.prototype.getSvgDataURL=function(){var e=this._zr;return R(e.storage.getDisplayList(),function(e){e.stopAnimation(null,!0)}),e.painter.toDataURL()},t.prototype.getDataURL=function(e){if(this._disposed){this.id;return}e||={};var t=e.excludeComponents,n=this._model,r=[],i=this;R(t,function(e){n.eachComponent({mainType:e},function(e){var t=i._componentsMap[e.__viewId];t.group.ignore||(r.push(t),t.group.ignore=!0)})});var a=this._zr.painter.getType()===`svg`?this.getSvgDataURL():this.renderToCanvas(e).toDataURL(`image/`+(e&&e.type||`png`));return R(r,function(e){e.group.ignore=!1}),a},t.prototype.getConnectedDataURL=function(e){if(this._disposed){this.id;return}var t=e.type===`svg`,n=this.group,r=Math.min,i=Math.max,a=1/0;if(KO[n]){var o=a,s=a,c=-a,l=-a,u=[],d=e&&e.pixelRatio||this.getDevicePixelRatio();R(GO,function(a,d){if(a.group===n){var f=t?a.getZr().painter.getSvgDom().innerHTML:a.renderToCanvas(P(e)),p=a.getDom().getBoundingClientRect();o=r(p.left,o),s=r(p.top,s),c=i(p.right,c),l=i(p.bottom,l),u.push({dom:f,left:p.left,top:p.top})}}),o*=d,s*=d,c*=d,l*=d;var f=c-o,p=l-s,m=b.createCanvas(),h=Kw(m,{renderer:t?`svg`:`canvas`});if(h.resize({width:f,height:p}),t){var g=``;return R(u,function(e){var t=e.left-o,n=e.top-s;g+=``+e.dom+``}),h.painter.getSvgRoot().innerHTML=g,e.connectedBackgroundColor&&h.painter.setBackgroundColor(e.connectedBackgroundColor),h.refreshImmediately(),h.painter.toDataURL()}return e.connectedBackgroundColor&&h.add(new Uo({shape:{x:0,y:0,width:f,height:p},style:{fill:e.connectedBackgroundColor}})),R(u,function(e){var t=new Fo({style:{x:e.left*d-o,y:e.top*d-s,image:e.dom}});h.add(t)}),h.refreshImmediately(),m.toDataURL(`image/`+(e&&e.type||`png`))}return this.getDataURL(e)},t.prototype.convertToPixel=function(e,t,n){return yO(this,`convertToPixel`,e,t,n)},t.prototype.convertToLayout=function(e,t,n){return yO(this,`convertToLayout`,e,t,n)},t.prototype.convertFromPixel=function(e,t,n){return yO(this,`convertFromPixel`,e,t,n)},t.prototype.containPixel=function(e,t){if(this._disposed){this.id;return}var n=this._model,r;return R(Tc(n,e),function(e,n){n.indexOf(`Models`)>=0&&R(e,function(e){var i=e.coordinateSystem;if(i&&i.containPoint)r||=!!i.containPoint(t);else if(n===`seriesModels`){var a=this._chartsMap[e.__viewId];a&&a.containPoint&&(r||=a.containPoint(t,e))}},this)},this),!!r},t.prototype.getVisual=function(e,t){var n=this._model,r=Tc(n,e,{defaultMainType:`series`}),i=r.seriesModel.getData(),a=r.hasOwnProperty(`dataIndexInside`)?r.dataIndexInside:r.hasOwnProperty(`dataIndex`)?i.indexOfRawIndex(r.dataIndex):null;return a==null?jE(i,t):AE(i,a,t)},t.prototype.getViewOfComponentModel=function(e){return this._componentsMap[e.__viewId]},t.prototype.getViewOfSeriesModel=function(e){return this._chartsMap[e.__viewId]},t.prototype._initEvents=function(){var e=this;R(IO,function(t){var n=function(n){var r=e.getModel(),i=n.target,a;if(t===`globalout`?a={}:i&&NE(i,function(e){var t=Xc(e);if(t&&t.dataIndex!=null){var n=t.dataModel||r.getSeriesByIndex(t.seriesIndex);return a=n&&n.getDataParams(t.dataIndex,t.dataType,i)||{},!0}if(t.eventData)return a=I({},t.eventData),!0},!0),a){var o=a.componentType,s=a.componentIndex;(o===`markLine`||o===`markPoint`||o===`markArea`)&&(o=`series`,s=a.seriesIndex);var c=o&&s!=null&&r.getComponent(o,s),l=c&&e[c.mainType===`series`?`_chartsMap`:`_componentsMap`][c.__viewId];a.event=n,a.type=t,e._$eventProcessor.eventInfo={targetEl:i,packedEvent:a,model:c,view:l},e.trigger(t,a)}};n.zrEventfulCallAtLast=!0,e._zr.on(t,n,e)});var t=this._messageCenter;R(zO,function(n,r){t.on(r,function(t){e.trigger(r,t)})}),NC(t,this,this._api)},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0,this.getDom()&&Ac(this.getDom(),JO,``);var e=this,t=e._api,n=e._model;R(e._componentsViews,function(e){e.dispose(n,t)}),R(e._chartsViews,function(e){e.dispose(n,t)}),e._zr.dispose(),e._dom=e._model=e._chartsMap=e._componentsMap=e._chartsViews=e._componentsViews=e._scheduler=e._api=e._zr=e._throttledZrFlush=e._theme=e._coordSysMgr=e._messageCenter=null,delete GO[e.id]},t.prototype.resize=function(e){if(!this[tO]){if(this._disposed){this.id;return}this._zr.resize(e);var t=this._model;if(this._loadingFX&&this._loadingFX.resize(),t){var n=t.resetOption(`media`),r=e&&e.silent;this[rO]&&(r??=this[rO].silent,n=!0,this[rO]=null),this[tO]=!0,NO(this);try{n&&hO(this),vO.update.call(this,{type:`resize`,animation:I({duration:0},e&&e.animation)})}catch(e){throw this[tO]=!1,e}this[tO]=!1,SO.call(this,r),CO.call(this,r)}}},t.prototype.showLoading=function(e,t){if(this._disposed){this.id;return}if(H(e)&&(t=e,e=``),e||=`default`,this.hideLoading(),WO[e]){var n=WO[e](this._api,t),r=this._zr;this._loadingFX=n,r.add(n)}},t.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},t.prototype.makeActionFromEvent=function(e){var t=I({},e);return t.type=RO[e.type],t},t.prototype.dispatchAction=function(e,t){if(this._disposed){this.id;return}if(H(t)||(t={silent:!!t}),LO[e.type]&&this._model){if(this[tO]){this._pendingActions.push(e);return}var n=t.silent;xO.call(this,e,n);var r=t.flush;r?this._zr.flush():r!==!1&&Ue.browser.weChat&&this._throttledZrFlush(),SO.call(this,n),CO.call(this,n)}},t.prototype.updateLabelLayout=function(){PE.trigger(`series:layoutlabels`,this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(e){if(this._disposed){this.id;return}var t=e.seriesIndex;this.getModel().getSeriesByIndex(t).appendData(e),this._scheduler.unfinished=!0,this.getZr().wakeUp()},t.internalField=function(){hO=function(e){Ob(e._model);var t=e._scheduler;t.restorePipelines(e._zr,e._model),t.prepareStageTasks(),gO(e,!0),gO(e,!1),t.plan()},gO=function(e,t){for(var n=e._model,r=e._scheduler,i=t?e._componentsViews:e._chartsViews,a=t?e._componentsMap:e._chartsMap,o=e._zr,s=e._api,c=0;cCe(t.get(`hoverLayerThreshold`),tT.hoverLayerThreshold)&&!Ue.node&&!Ue.worker;(e._usingTHL||a)&&(t.eachSeries(function(t){if(!t.preventUsingHoverLayer){var n=e._chartsMap[t.__viewId];n.__alive&&n.eachRendered(function(e){var t=e.states.emphasis;t&&t.hoverLayer!==2&&(t.hoverLayer=+!!a)})}}),e._usingTHL=a)}}function a(e,t){var n=e.get(`blendMode`)||null;t.eachRendered(function(e){e.isGroup||(e.style.blend=n)})}function o(e,t){if(!e.preventAutoZ){var n=Pf(e);t.eachRendered(function(e){return If(e,n.z,n.zlevel),!0})}}function s(e,t){t.eachRendered(function(e){if(!Hd(e)){var t=e.getTextContent(),n=e.getTextGuideLine();e.stateTransition&&=null,t&&t.stateTransition&&(t.stateTransition=null),n&&n.stateTransition&&(n.stateTransition=null),e.hasState()?(e.prevStates=e.currentStates,e.clearStates()):e.prevStates&&=null}})}function c(e,t){var n=e.getModel(`stateAnimation`),i=e.isAnimationEnabled(),a=n.get(`duration`),o=a>0?{duration:a,delay:n.get(`delay`),easing:n.get(`easing`)}:null;t.eachRendered(function(e){if(e.states&&e.states.emphasis){if(Hd(e))return;if(e instanceof ko&&mu(e),e.__dirty){var t=e.prevStates;t&&e.useStates(t)}if(i){e.stateTransition=o;var n=e.getTextContent(),a=e.getTextGuideLine();n&&(n.stateTransition=o),a&&(a.stateTransition=o)}e.__dirty&&r(e)}})}kO=function(e){return new(function(t){p(n,t);function n(){return t!==null&&t.apply(this,arguments)||this}return n.prototype.getCoordinateSystems=function(){return e._coordSysMgr.getCoordinateSystems()},n.prototype.getComponentByElement=function(t){for(;t;){var n=t.__ecComponentInfo;if(n!=null)return e._model.getComponent(n.mainType,n.index);t=t.parent}},n.prototype.enterEmphasis=function(t,n){zl(t,n),jO(e)},n.prototype.leaveEmphasis=function(t,n){Bl(t,n),jO(e)},n.prototype.enterBlur=function(t){Vl(t),jO(e)},n.prototype.leaveBlur=function(t){Hl(t),jO(e)},n.prototype.enterSelect=function(t){Ul(t),jO(e)},n.prototype.leaveSelect=function(t){Wl(t),jO(e)},n.prototype.getModel=function(){return e.getModel()},n.prototype.getViewOfComponentModel=function(t){return e.getViewOfComponentModel(t)},n.prototype.getViewOfSeriesModel=function(t){return e.getViewOfSeriesModel(t)},n.prototype.getECUpdateCycleVersion=function(){return e[nO]},n.prototype.usingTHL=function(){return e._usingTHL},n}(sl))(e)},AO=function(e){function t(e,t){for(var n=0;n=0)){sk.push(n);var o=oE.wrapStageHandler(n,i);o.__prio=t,o.__raw=n,e.push(o)}}function lk(e,t){WO[e]=t}function uk(e,t,n){var r=LE(`registerMap`);r&&r(e,t,n)}var dk=nee;ok(KD,eE),ok(YD,nE),ok(YD,rE),ok(KD,OE),ok(YD,kE),ok($D,FD),QO(WT),$O(zD,GT),lk(`default`,aE),rk({type:hl,event:hl,update:hl},Be),rk({type:gl,event:gl,update:gl},Be),rk({type:_l,event:bl,update:_l,action:Be,refineEvent:fk,publishNonRefinedEvent:!0}),rk({type:vl,event:bl,update:vl,action:Be,refineEvent:fk,publishNonRefinedEvent:!0}),rk({type:yl,event:bl,update:yl,action:Be,refineEvent:fk,publishNonRefinedEvent:!0});function fk(e,t,n,r){return{eventContent:{selected:tu(n),isFromClick:t.isFromClick||!1}}}ZO(`default`,{}),ZO(`dark`,wE);var pk=[],mk={registerPreprocessor:QO,registerProcessor:$O,registerPostInit:ek,registerPostUpdate:tk,registerUpdateLifecycle:nk,registerAction:rk,registerCoordinateSystem:ik,registerLayout:ak,registerVisual:ok,registerTransform:dk,registerLoading:lk,registerMap:uk,registerImpl:IE,PRIORITY:eO,ComponentModel:n_,ComponentView:JT,SeriesModel:av,ChartView:Av,registerComponentModel:function(e){n_.registerClass(e)},registerComponentView:function(e){JT.registerClass(e)},registerSeriesModel:function(e){av.registerClass(e)},registerChartView:function(e){Av.registerClass(e)},registerCustomSeries:function(e,t){zE(e,t)},registerSubTypeDefaulter:function(e,t){n_.registerSubTypeDefaulter(e,t)},registerPainter:function(e,t){qw(e,t)}};function hk(e){if(B(e)){R(e,function(e){hk(e)});return}re(pk,e)>=0||(pk.push(e),me(e)&&(e={install:e}),e.install(mk))}var gk=function(){function e(){}return e.prototype.needIncludeZero=function(){return!this.option.scale},e.prototype.getCoordSysModel=function(){},e}(),_k=function(e){p(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents(`grid`,Dc).models[0]},t.type=`cartesian2dAxis`,t}(n_);ae(_k,gk);var vk={show:!0,z:0,inverse:!1,name:``,nameLocation:`end`,nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:`...`,placeholder:`.`},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:`auto`,onZeroAxisIndex:null,lineStyle:{color:A_.color.axisLine,width:1,type:`solid`},symbol:[`none`,`none`],symbolSize:[10,15],breakLine:!0},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12,color:A_.color.axisLabel,textMargin:[0,3]},splitLine:{show:!0,showMinLine:!0,showMaxLine:!0,lineStyle:{color:A_.color.axisSplitLine,width:1,type:`solid`}},splitArea:{show:!1,areaStyle:{color:[A_.color.backgroundTint,A_.color.backgroundTransparent]}},breakArea:{show:!0,itemStyle:{color:A_.color.neutral00,borderColor:A_.color.border,borderWidth:1,borderType:[3,3],opacity:.6},zigzagAmplitude:4,zigzagMinSpan:4,zigzagMaxSpan:20,zigzagZ:100,expandOnClick:!0},breakLabelLayout:{moveOverlap:`auto`}},yk=F({boundaryGap:!0,deduplication:null,jitter:0,jitterOverlap:!0,jitterMargin:2,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:`auto`,show:`auto`},axisLabel:{interval:`auto`}},vk),bk=F({boundaryGap:[0,0],axisLine:{show:`auto`},axisTick:{show:`auto`},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:A_.color.axisMinorSplitLine,width:1}}},vk),xk={category:yk,value:bk,time:F({splitNumber:6,axisLabel:{rich:{primary:{fontWeight:`bold`}}},splitLine:{show:!1}},bk),log:L({logBase:10},bk)};function Sk(e,t,n,r){R(Ly,function(i,a){var o=F(F({},xk[a],!0),r,!0),s=function(e){p(n,e);function n(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t+`Axis.`+a,n}return n.prototype.mergeDefaultAndTheme=function(e,t){var n=Qg(this),r=n?e_(e):{};F(e,t.getTheme().get(a+`Axis`)),F(e,this.getDefaultOption()),e.type=Ck(e),n&&$g(e,r,n)},n.prototype.optionUpdated=function(){this.option.type===`category`&&(this.__ordinalMeta=Hv.createByAxisModel(this))},n.prototype.getCategories=function(e){var t=this.option;if(t.type===`category`)return e?t.data:this.__ordinalMeta.categories},n.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},n.prototype.updateAxisBreaks=function(e){var t=yx();return t?t.updateModelAxisBreak(this,e):{breaks:[]}},n.type=t+`Axis.`+a,n.defaultOption=o,n}(n);e.registerComponentModel(s)}),e.registerSubTypeDefaulter(t+`Axis`,Ck)}function Ck(e){return e.type||(e.data?`category`:`value`)}var wk=function(){function e(e){this.type=`cartesian`,this._dimList=[],this._axes={},this.name=e||``}return e.prototype.getAxis=function(e){return this._axes[e]},e.prototype.getAxes=function(){return z(this._dimList,function(e){return this._axes[e]},this)},e.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),ce(this.getAxes(),function(t){return t.scale.type===e})},e.prototype.addAxis=function(e){var t=e.dim;this._axes[t]=e,this._dimList.push(t)},e}(),Tk=[`x`,`y`];function Ek(e){return(e.type===`interval`||e.type===`time`)&&!Zh(e)}var Dk=function(e){p(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=NS,t.dimensions=Tk,t}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var e=this.getAxis(`x`).scale,t=this.getAxis(`y`).scale;if(!(!Ek(e)||!Ek(t))){var n=Yv(e,null),r=Yv(t,null),i=this.dataToPoint([n[0],r[0]]),a=this.dataToPoint([n[1],r[1]]),o=n[1]-n[0],s=r[1]-r[0];if(!(!o||!s)){var c=(a[0]-i[0])/o,l=(a[1]-i[1])/s,u=i[0]-n[0]*c,d=i[1]-r[0]*l,f=this._transform=[c,0,0,l,u,d];this._invTransform=Ct([],f)}}},t.prototype.getBaseAxis=function(){return this.getAxesByScale(`ordinal`)[0]||this.getAxesByScale(`time`)[0]||this.getAxis(`x`)},t.prototype.containPoint=function(e){var t=this.getAxis(`x`),n=this.getAxis(`y`);return t.contain(t.toLocalCoord(e[0]))&&n.contain(n.toLocalCoord(e[1]))},t.prototype.containData=function(e){return this.getAxis(`x`).containData(e[0])&&this.getAxis(`y`).containData(e[1])},t.prototype.containZone=function(e,t){var n=this.dataToPoint(e),r=this.dataToPoint(t),i=this.getArea(),a=new en(n[0],n[1],r[0]-n[0],r[1]-n[1]);return i.intersect(a)},t.prototype.dataToPoint=function(e,t,n){n||=[];var r=e[0],i=e[1];if(this._transform&&r!=null&&isFinite(r)&&i!=null&&isFinite(i))return Lt(n,e,this._transform);var a=this.getAxis(`x`),o=this.getAxis(`y`);return n[0]=a.toGlobalCoord(a.dataToCoord(r,t)),n[1]=o.toGlobalCoord(o.dataToCoord(i,t)),n},t.prototype.clampData=function(e,t){var n=this.getAxis(`x`).scale,r=this.getAxis(`y`).scale,i=n.getExtent(),a=r.getExtent(),o=n.parse(e[0]),s=r.parse(e[1]);return t||=[],t[0]=Math.min(Math.max(Math.min(i[0],i[1]),o),Math.max(i[0],i[1])),t[1]=Math.min(Math.max(Math.min(a[0],a[1]),s),Math.max(a[0],a[1])),t},t.prototype.pointToData=function(e,t,n){if(n||=[],this._invTransform)return Lt(n,e,this._invTransform);var r=this.getAxis(`x`),i=this.getAxis(`y`);return n[0]=r.coordToData(r.toLocalCoord(e[0]),t),n[1]=i.coordToData(i.toLocalCoord(e[1]),t),n},t.prototype.getOtherAxis=function(e){return this.getAxis(e.dim===`x`?`y`:`x`)},t.prototype.getArea=function(e){e||=0;var t=this.getAxis(`x`).getGlobalExtent(),n=this.getAxis(`y`).getGlobalExtent(),r=Math.min(t[0],t[1])-e,i=Math.min(n[0],n[1])-e;return new en(r,i,Math.max(t[0],t[1])-r+e,Math.max(n[0],n[1])-i+e)},t}(wk);function Ok(e,t){var n=e.scale,r=e.model,i=bS(n,r,r.ecModel,e,null),a=iy(n),o=iy(t)?t.intervalStub:t,s=a?n.intervalStub:n,c=n.base,l=o.getTicks(),u=o.getTicks({expandToNicedExtent:!0}),d=l.length-1,f,p,m;if(d===1)f=p=0,m=1;else if(d===2){var h=ps(l[0].value-l[1].value),g=ps(l[1].value-l[2].value);f=p=0,h===g?m=2:(m=1,h=C[1])return!0})):b[1]?(T=C[1],A(function(){if(N(),k=Ds(O-E*m,D),j(),w<=C[0])return!0})):A(function(){k=Ds(gs(C[0]/E)*E,D),O=Ds(hs(C[1]/E)*E,D);var e=ms((O-k)/E);if(e<=m){var t=m-e,n=void 0,r=i.incl0||a;if(r&&C[0]===0)n=[0,t];else if(r&&C[1]===0)n=[t,0];else{var o=hs(t/2);n=t%2==0?[o,o]:w+T=C[1])return!0}})}$y(n,b,S,[w,T],x,{interval:E,intervalCount:m,intervalPrecision:D,niceExtent:[k,O]})}function kk(e,t){var n=iy(e),r=n?e.intervalStub:e,i=t.fixMinMax||[],a=n?e.getExtent():null,o=r.getExtent(),s=uy(o,i,t.rawExtentResult);r.setExtent(s[0],s[1]),s=r.getExtent();var c=n?jk(r,t):Ak(r,t),l=c.intervalPrecision,u=c.interval,d=t.userInterval;d!=null&&(c.interval=d,c.intervalPrecision=sy(d)),i[0]||(s[0]=Ds(hs(s[0]/u)*u,l)),i[1]||(s[1]=Ds(gs(s[1]/u)*u,l)),d!=null&&(c.niceExtent=s.slice()),$y(e,i,o,s,a,c)}function Ak(e,t){var n=fy(t.splitNumber,5),r=Zv(e),i=t.minInterval,a=t.maxInterval,o=Bs(r/n,!0);i!=null&&oa&&(o=a);var s=sy(o),c=e.getExtent(),l=[Ds(gs(c[0]/o)*o,s),Ds(hs(c[1]/o)*o,s)];return{interval:o,intervalPrecision:s,niceExtent:l}}function jk(e,t){var n=fy(t.splitNumber,10),r=e.getExtent(),i=Zv(e),a=fs(Rs(i),1);n/i*a<=.5&&(a*=10);var o=sy(a),s=[Ds(gs(r[0]/a)*a,o),Ds(hs(r[1]/a)*a,o)];return{intervalPrecision:o,interval:a,niceExtent:s}}function Mk(e){var t=e.scale,n=e.model,r=n.axis,i=n.ecModel;Nk(t,n,r,i,null)}function Nk(e,t,n,r,i){var a=bS(e,t,r,n,i),o=ny(e)||ry(e);Pk(e,{splitNumber:t.get(`splitNumber`),fixMinMax:a.fixMM,userInterval:t.get(`interval`),minInterval:o?t.get(`minInterval`):null,maxInterval:o?t.get(`maxInterval`):null,rawExtentResult:a}),n&&r&&SS(n,e,a,r)}function Pk(e,t){Fk[e.type](e,t)}var Fk={interval:kk,log:kk,time:ky,ordinal:Be},Ik=[[3,1],[0,2]],Lk=function(){function e(e,t,n){this.type=`grid`,this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=Tk,this._initCartesian(e,t,n),this.model=e}return e.prototype.getRect=function(){return this._rect},e.prototype.update=function(e,t){var n=this._axesMap;R(this._axesList,function(e){mS(e,1);var t=e.scale;ay(t)&&t.setSortInfo(e.model.get(`categorySortInfo`))});function r(e){for(var t=ue(e),n=[],r=t.length-1;r>=0;r--){var i=e[+t[r]];i.__alignTo?n.push(i):Mk(i)}R(n,function(e){Hk(e,e.__alignTo)?Mk(e):Ok(e,e.__alignTo.scale)})}r(n.x),r(n.y);var i={};R(n.x,function(e){zk(n,`y`,e,i)}),R(n.y,function(e){zk(n,`x`,e,i)}),this.resize(this.model,t)},e.prototype.resize=function(e,t,n){var r=Zg(e,t),i=this._rect=Yg(e.getBoxLayoutParams(),r.refContainer),a=this._axesMap,o=this._coordsList,s=e.get(`containLabel`);if(Wk(a,i),!n){var c=Jk(i,o,a,s,t),l=void 0;if(s)Kk?(Kk(this._axesList,i),Wk(a,i)):l=qk(i.clone(),`axisLabel`,null,i,a,c,r);else{var u=Xk(e,i,r),d=u.outerBoundsRect,f=u.parsedOuterBoundsContain,p=u.outerBoundsClamp;d&&(l=qk(d,f,p,i,a,c,r))}Yk(i,a,sb.determine,null,l,r),R(this._coordsList,function(e){e.calcAffineTransform()})}},e.prototype.getAxis=function(e,t){var n=this._axesMap[e];if(n!=null)return n[t||0]},e.prototype.getAxes=function(){return this._axesList.slice()},e.prototype.getCartesian=function(e,t){if(e!=null&&t!=null){var n=`x`+e+`y`+t;return this._coordsMap[n]}H(e)&&(t=e.yAxisIndex,e=e.xAxisIndex);for(var r=0,i=this._coordsList;r=0;i--){var a=e[+t[i]];ty(a.scale)&&Zy(a.model,a.type,!0)==null&&(a.model.get(`alignTicks`)&&a.model.get(`interval`)==null?r.push(a):n=a)}n||=r.pop(),n&&R(r,function(e){e.__alignTo=n})}function Hk(e,t){return Zh(e.scale)||Zh(t.scale)||t.scale.getTicks().length<2}function Uk(e,t){var n=e.getExtent(),r=n[0]+n[1];e.toGlobalCoord=e.dim===`x`?function(e){return e+t}:function(e){return r-e+t},e.toLocalCoord=e.dim===`x`?function(e){return e-t}:function(e){return r-e+t}}function Wk(e,t){R(e.x,function(e){return Gk(e,t.x,t.width)}),R(e.y,function(e){return Gk(e,t.y,t.height)})}function Gk(e,t,n){var r=[0,n],i=+!!e.inverse;e.setExtent(r[i],r[1-i]),Uk(e,t)}var Kk;function qk(e,t,n,r,i,a,o){Yk(r,i,sb.estimate,t,!1,o);var s=[0,0,0,0];l(0),l(1),u(r,0,NaN),u(r,1,NaN);var c=le(s,function(e){return e>0})==null;return wf(r,s,!0,!0,n),Wk(i,r),c;function l(e){R(i[Yd[e]],function(t){if(Xy(t.model)){var n=a.ensureRecord(t.model),r=n.labelInfoList;if(r)for(var i=0;i0&&!xe(t)&&t>1e-4&&(e/=t),e}}function Jk(e,t,n,r,i){var a=new Dx(Zk);return R(n,function(n){return R(n,function(n){if(Xy(n.model)){var o=!r;n.axisBuilder=rS(e,t,n.model,i,a,o)}})}),a}function Yk(e,t,n,r,i,a){var o=n===sb.determine;R(t,function(t){return R(t,function(t){Xy(t.model)&&(iS(t.axisBuilder,e,t.model),t.axisBuilder.build(o?{axisTickLabelDetermine:!0}:{axisTickLabelEstimate:!0},{noPxChange:i}))})});var s={x:0,y:0};c(0),c(1);function c(t){s[Yd[1-t]]=e[Xd[t]]<=a.refContainer[Xd[t]]*.5?0:1-t==1?2:1}R(t,function(e,t){return R(e,function(e){Xy(e.model)&&((r===`all`||o)&&e.axisBuilder.build({axisName:!0},{nameMarginLevel:s[t]}),o&&e.axisBuilder.build({axisLine:!0}))})})}function Xk(e,t,n){var r,i=e.get(`outerBoundsMode`,!0);i===`same`?r=t.clone():(i==null||i===`auto`)&&(r=Yg(e.get(`outerBounds`,!0)||jS,n.refContainer));var a=e.get(`outerBoundsContain`,!0),o=a==null||a===`auto`||re([`all`,`axisLabel`],a)<0?`all`:a,s=[Ts(Ce(e.get(`outerBoundsClampWidth`,!0),MS[0]),t.width),Ts(Ce(e.get(`outerBoundsClampHeight`,!0),MS[1]),t.height)];return{outerBoundsRect:r,parsedOuterBoundsContain:o,outerBoundsClamp:s}}var Zk=function(e,t,n,r,i,a){var o=n.axis.dim===`x`?`y`:`x`;jx(e,t,n,r,i,a),Yy(e.nameLocation)||R(t.recordMap[o],function(e){e&&e.labelInfoList&&e.dirVec&&Nx(e.labelInfoList,e.dirVec,r,i)})};function Qk(e,t){var n={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return $k(n,e,t),n.seriesInvolved&&tA(n,e),n}function $k(e,t,n){var r=t.getComponent(`tooltip`),i=t.getComponent(`axisPointer`),a=i.get(`link`,!0)||[],o=[];R(n.getCoordinateSystems(),function(n){if(!n.axisPointerEnabled)return;var s=cA(n.model),c=e.coordSysAxesInfo[s]={};e.coordSysMap[s]=n;var l=n.model.getModel(`tooltip`,r);if(R(n.getAxes(),pe(p,!1,null)),n.getTooltipAxes&&r&&l.get(`show`)){var u=l.get(`trigger`)===`axis`,d=l.get([`axisPointer`,`type`])===`cross`,f=n.getTooltipAxes(l.get([`axisPointer`,`axis`]));(u||d)&&R(f.baseAxes,pe(p,!d||`cross`,u)),d&&R(f.otherAxes,pe(p,`cross`,!1))}function p(r,s,u){var d=u.model.getModel(`axisPointer`,i),f=d.get(`show`);if(!(!f||f===`auto`&&!r&&!sA(d))){s??=d.get(`triggerTooltip`),d=r?eA(u,l,i,t,r,s):d;var p=d.get(`snap`),m=d.get(`triggerEmphasis`),h=cA(u.model),g=s||p||u.type===`category`,_=e.axesInfo[h]={key:h,axis:u,coordSys:n,axisPointerModel:d,triggerTooltip:s,triggerEmphasis:m,involveSeries:g,snap:p,useHandle:sA(d),seriesModels:[],linkGroup:null};c[h]=_,e.seriesInvolved=e.seriesInvolved||g;var v=nA(a,u);if(v!=null){var y=o[v]||(o[v]={axesInfo:{}});y.axesInfo[h]=_,y.mapper=a[v].mapper,_.linkGroup=y}}}})}function eA(e,t,n,r,i,a){var o=t.getModel(`axisPointer`),s=[`type`,`snap`,`lineStyle`,`shadowStyle`,`label`,`animation`,`animationDurationUpdate`,`animationEasingUpdate`,`z`],c={};R(s,function(e){c[e]=P(o.get(e))}),c.snap=e.type!==`category`&&!!a,o.get(`type`)===`cross`&&(c.type=`line`);var l=c.label||={};if(l.show??=!1,i===`cross`&&(l.show=o.get([`label`,`show`])??!0,!a)){var u=c.lineStyle=o.get(`crossStyle`);u&&L(l,u.textStyle)}return e.model.getModel(`axisPointer`,new hp(c,n,r))}function tA(e,t){t.eachSeries(function(t){var n=t.coordinateSystem,r=t.get([`tooltip`,`trigger`],!0),i=t.get([`tooltip`,`show`],!0);!n||!n.model||r===`none`||r===!1||r===`item`||i===!1||t.get([`axisPointer`,`show`],!0)===!1||R(e.coordSysAxesInfo[cA(n.model)],function(e){var r=e.axis;n.getAxis(r.dim)===r&&(e.seriesModels.push(t),e.seriesDataCount??=0,e.seriesDataCount+=t.getData().count())})})}function nA(e,t){for(var n=t.model,r=t.dim,i=0;i=0||e===t}function iA(e){var t=aA(e);if(t){var n=t.axisPointerModel,r=t.axis.scale,i=n.option,a=n.get(`status`),o=n.get(`value`);o!=null&&(o=r.parse(o));var s=sA(n);a??(i.status=s?`show`:`hide`);var c=r.getExtent();(o==null||o>c[1])&&(o=c[1]),o=0;a--)r[a]??(delete n[t[a]],t.pop())}function OA(e,t){var n=e.visual,r=[];H(n)?SA(n,function(e){r.push(e)}):n!=null&&r.push(n),!t&&r.length===1&&!{color:1,symbol:1}.hasOwnProperty(e.type)&&(r[1]=r[0]),IA(e,r)}function kA(e){return{applyVisual:function(t,n,r){var i=this.mapValueToVisual(t);r(`color`,e(n(`color`),i))},_normalizedToVisual:PA([0,1])}}function AA(e){var t=this.option.visual;return t[Math.round(Ss(e,[0,1],[0,t.length-1],!0))]||{}}function jA(e){return function(t,n,r){r(e,this.mapValueToVisual(t))}}function MA(e){var t=this.option.visual;return t[this.option.loop&&e!==wA?e%t.length:e]}function NA(){return this.option.visual[0]}function PA(e){return{linear:function(t){return Ss(t,e,this.option.visual,!0)},category:MA,piecewise:function(t,n){var r=FA.call(this,n);return r??=Ss(t,e,this.option.visual,!0),r},fixed:NA}}function FA(e){var t=this.option,n=t.pieceList;if(t.hasSpecialVisual){var r=n[TA.findPieceIndex(e,n)];if(r&&r.visual)return r.visual[this.type]}}function IA(e,t){return e.visual=t,e.type===`color`&&(e.parsedVisual=z(t,function(e){return Gr(e)||[0,0,0,1]})),t}var LA={linear:function(e){return Ss(e,this.option.dataExtent,[0,1],!0)},piecewise:function(e){var t=this.option.pieceList,n=TA.findPieceIndex(e,t,!0);if(n!=null)return Ss(n,[0,t.length-1],[0,1],!0)},category:function(e){return(this.option.categories?this.option.categoryMap[e]:e)??wA},fixed:Be};function RA(e,t,n){return e?t<=n:ta&&(t[1-r]=Ms(t[r],d.sign*a)),t}function BA(e,t){var n=e[t]-e[1-t];return{span:Math.abs(n),sign:n>0?-1:n<0?1:t?-1:1}}function VA(e,t){return Math.min(t[1]==null?1/0:t[1],Math.max(t[0]==null?-1/0:t[0],e))}function HA(e){return Object.keys(e)}function UA(e){return e&&typeof e==`object`&&!Array.isArray(e)}function WA(e,t){let n={...e},r=t;return UA(e)&&UA(t)&&Object.keys(t).forEach(t=>{UA(r[t])&&t in e?n[t]=WA(n[t],r[t]):n[t]=r[t]}),n}function GA(e){return e.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)}function KA(e){return typeof e!=`string`||!e.includes(`var(--mantine-scale)`)?e:e.match(/^calc\((.*?)\)$/)?.[1].split(`*`)[0].trim()}function qA(e){let t=KA(e);return typeof t==`number`?t:typeof t==`string`?t.includes(`calc`)||t.includes(`var`)?t:t.includes(`px`)?Number(t.replace(`px`,``)):t.includes(`rem`)?Number(t.replace(`rem`,``))*16:t.includes(`em`)?Number(t.replace(`em`,``))*16:Number(t):NaN}function JA(e){return e===`0rem`?`0rem`:`calc(${e} * var(--mantine-scale))`}function YA(e,{shouldScale:t=!1}={}){function n(r){if(r===0||r===`0`)return`0${e}`;if(typeof r==`number`){let n=`${r/16}${e}`;return t?JA(n):n}if(typeof r==`string`){if(r===``||r.startsWith(`calc(`)||r.startsWith(`clamp(`)||r.includes(`rgba(`))return r;if(r.includes(`,`))return r.split(`,`).map(e=>n(e)).join(`,`);if(r.includes(` `))return r.split(` `).map(e=>n(e)).join(` `);let i=r.replace(`px`,``);if(!Number.isNaN(Number(i))){let n=`${Number(i)/16}${e}`;return t?JA(n):n}}return r}return n}var W=YA(`rem`,{shouldScale:!0}),XA=YA(`em`);function ZA(e){return Object.keys(e).reduce((t,n)=>(e[n]!==void 0&&(t[n]=e[n]),t),{})}function QA(e){if(typeof e==`number`)return!0;if(typeof e==`string`){if(e.startsWith(`calc(`)||e.startsWith(`var(`)||e.includes(` `)&&e.trim()!==``)return!0;let t=/^[+-]?[0-9]+(\.[0-9]+)?(px|em|rem|ex|ch|lh|rlh|vw|vh|vmin|vmax|vb|vi|svw|svh|lvw|lvh|dvw|dvh|cm|mm|in|pt|pc|q|cqw|cqh|cqi|cqb|cqmin|cqmax|%)?$/;return e.trim().split(/\s+/).every(e=>t.test(e))}return!1}var $A=s((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.portal`),r=Symbol.for(`react.fragment`),i=Symbol.for(`react.strict_mode`),a=Symbol.for(`react.profiler`),o=Symbol.for(`react.consumer`),s=Symbol.for(`react.context`),c=Symbol.for(`react.forward_ref`),l=Symbol.for(`react.suspense`),u=Symbol.for(`react.memo`),d=Symbol.for(`react.lazy`),f=Symbol.for(`react.activity`),p=Symbol.iterator;function m(e){return typeof e!=`object`||!e?null:(e=p&&e[p]||e[`@@iterator`],typeof e==`function`?e:null)}var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,_={};function v(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||h}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if(typeof e!=`object`&&typeof e!=`function`&&e!=null)throw Error(`takes an object of state variables to update or a function which returns an object of state variables.`);this.updater.enqueueSetState(this,e,t,`setState`)},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,`forceUpdate`)};function y(){}y.prototype=v.prototype;function b(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||h}var x=b.prototype=new y;x.constructor=b,g(x,v.prototype),x.isPureReactComponent=!0;var S=Array.isArray;function C(){}var w={H:null,A:null,T:null,S:null},T=Object.prototype.hasOwnProperty;function E(e,n,r){var i=r.ref;return{$$typeof:t,type:e,key:n,ref:i===void 0?null:i,props:r}}function D(e,t){return E(e.type,t,e.props)}function O(e){return typeof e==`object`&&!!e&&e.$$typeof===t}function k(e){var t={"=":`=0`,":":`=2`};return`$`+e.replace(/[=:]/g,function(e){return t[e]})}var A=/\/+/g;function j(e,t){return typeof e==`object`&&e&&e.key!=null?k(``+e.key):t.toString(36)}function ee(e){switch(e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason;default:switch(typeof e.status==`string`?e.then(C,C):(e.status=`pending`,e.then(function(t){e.status===`pending`&&(e.status=`fulfilled`,e.value=t)},function(t){e.status===`pending`&&(e.status=`rejected`,e.reason=t)})),e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason}}throw e}function M(e,r,i,a,o){var s=typeof e;(s===`undefined`||s===`boolean`)&&(e=null);var c=!1;if(e===null)c=!0;else switch(s){case`bigint`:case`string`:case`number`:c=!0;break;case`object`:switch(e.$$typeof){case t:case n:c=!0;break;case d:return c=e._init,M(c(e._payload),r,i,a,o)}}if(c)return o=o(e),c=a===``?`.`+j(e,0):a,S(o)?(i=``,c!=null&&(i=c.replace(A,`$&/`)+`/`),M(o,r,i,``,function(e){return e})):o!=null&&(O(o)&&(o=D(o,i+(o.key==null||e&&e.key===o.key?``:(``+o.key).replace(A,`$&/`)+`/`)+c)),r.push(o)),1;c=0;var l=a===``?`.`:a+`:`;if(S(e))for(var u=0;u{t.exports=$A()})),G=u(ej(),1);function tj(e){return Array.isArray(e)||e===null?!1:typeof e==`object`&&e.type!==G.Fragment}function nj(e){let t=(0,G.createContext)(null);return[t,()=>{let n=(0,G.use)(t);if(n===null)throw Error(e);return n}]}var rj={app:100,modal:200,popover:300,overlay:400,max:9999};function ij(e){return rj[e]}function aj(e,t=`size`,n=!0){if(e!==void 0)return QA(e)?n?W(e):e:`var(--${t}-${e})`}function oj(e){return aj(e,`mantine-spacing`)}function sj(e){return e===void 0?`var(--mantine-radius-default)`:aj(e,`mantine-radius`)}function cj(e){return aj(e,`mantine-font-size`)}function lj(e){return aj(e,`mantine-line-height`,!1)}function uj(e){if(e)return aj(e,`mantine-shadow`,!1)}function dj(e,t){return n=>{e?.(n),t?.(n)}}function fj(e=`mantine-`){return`${e}${Math.random().toString(36).slice(2,11)}`}function pj(e,t){if(e===t||Number.isNaN(e)&&Number.isNaN(t))return!0;if(!(e instanceof Object)||!(t instanceof Object))return!1;let n=Object.keys(e),{length:r}=n;if(r!==Object.keys(t).length)return!1;for(let i=0;i{t.current=e}),(0,G.useMemo)(()=>((...e)=>t.current?.(...e)),[])}function hj(e,t){let{delay:n,flushOnUnmount:r,leading:i,maxWait:a}=typeof t==`number`?{delay:t,flushOnUnmount:!1,leading:!1,maxWait:void 0}:t,o=mj(e),s=(0,G.useRef)(0),c=(0,G.useRef)(0),l=(0,G.useRef)(null),u=(0,G.useMemo)(()=>{let e=Object.assign((...t)=>{window.clearTimeout(s.current),l.current=t;let r=e._isFirstCall;e._isFirstCall=!1;function u(){window.clearTimeout(s.current),window.clearTimeout(c.current),s.current=0,c.current=0,e._isFirstCall=!0,e._hasPendingCallback=!1}function d(){a!==void 0&&c.current===0&&(c.current=window.setTimeout(()=>{if(s.current!==0){let e=l.current;u(),o(...e)}},a))}if(i&&r){o(...t),e.flush=()=>{s.current!==0&&(u(),o(...t))},e.cancel=()=>{u()},s.current=window.setTimeout(()=>{u()},n),d();return}if(i&&!r){e._hasPendingCallback=!0,e.flush=()=>{s.current!==0&&(u(),o(...t))},e.cancel=()=>{u()},s.current=window.setTimeout(()=>{u()},n),d();return}e._hasPendingCallback=!0;let f=()=>{s.current!==0&&(u(),o(...t))};e.flush=f,e.cancel=()=>{u()},s.current=window.setTimeout(f,n),d()},{flush:()=>{},cancel:()=>{},isPending:()=>e._hasPendingCallback,_isFirstCall:!0,_hasPendingCallback:!1});return e},[o,n,i,a]);return(0,G.useEffect)(()=>()=>{r?u.flush():u.cancel()},[u,r]),u}function gj(e,t){return typeof t==`boolean`?t:typeof window<`u`&&`matchMedia`in window&&window.matchMedia(e).matches}function _j(e,t,{getInitialValueInEffect:n}={getInitialValueInEffect:!0}){let[r,i]=(0,G.useState)(n?t:gj(e));return(0,G.useEffect)(()=>{try{if(`matchMedia`in window){let t=window.matchMedia(e);i(t.matches);let n=e=>i(e.matches);return t.addEventListener(`change`,n),()=>{t.removeEventListener(`change`,n)}}}catch{return}},[e]),r||!1}var vj=typeof document<`u`?G.useLayoutEffect:G.useEffect;function yj(e,t){let n=(0,G.useRef)(!1);(0,G.useEffect)(()=>()=>{n.current=!1},[]),(0,G.useEffect)(()=>{if(n.current)return e();n.current=!0},t)}function bj(e){let[t,n]=(0,G.useState)(`mantine-${(0,G.useId)().replace(/:/g,``)}`),r=(0,G.useRef)(!1);return vj(()=>{r.current||(r.current=!0,n(fj()))},[]),typeof e==`string`?e:t}function xj(e,t){if(typeof e==`function`)return e(t);typeof e==`object`&&e&&`current`in e&&(e.current=t)}function Sj(...e){let t=new Map;return n=>{if(e.forEach(e=>{let r=xj(e,n);r&&t.set(e,r)}),t.size>0)return()=>{e.forEach(e=>{let n=t.get(e);n&&typeof n==`function`?n():xj(e,null)}),t.clear()}}}function Cj(...e){return(0,G.useCallback)(Sj(...e),e)}function wj({value:e,defaultValue:t,finalValue:n,onChange:r=()=>{}}){let[i,a]=(0,G.useState)(t===void 0?n:t);return e===void 0?[i,(e,...t)=>{a(e),r?.(e,...t)},!1]:[e,r,!0]}function Tj(e,t){let n=t-e+1;return Array.from({length:n},(t,n)=>n+e)}var Ej=`dots`;function Dj({total:e,siblings:t=1,boundaries:n=1,page:r,initialPage:i,onChange:a,startValue:o=1}){let s=Math.max(Math.trunc(o),1),c=Math.max(Math.trunc(e),s),l=c-s+1,u=i??s,[d,f]=wj({value:r,onChange:a,defaultValue:u,finalValue:u}),p=(0,G.useCallback)(e=>{f(ec?c:e)},[s,c,f]),m=(0,G.useCallback)(()=>p(d+1),[d,p]),h=(0,G.useCallback)(()=>p(d-1),[d,p]),g=(0,G.useCallback)(()=>p(s),[p,s]),_=(0,G.useCallback)(()=>p(c),[c,p]);return{range:(0,G.useMemo)(()=>{if(t*2+3+n*2>=l)return Tj(s,c);let e=Math.max(d-t,s+n-1),r=Math.min(d+t,c-n),i=e>s+n+1,a=r{r.current||=window.setTimeout(()=>{i(...e),r.current=null},t)},[t]),o=(0,G.useCallback)(()=>{r.current&&=(window.clearTimeout(r.current),null)},[]);return(0,G.useEffect)(()=>(n.autoInvoke&&a(),o),[o,a]),{start:a,clear:o}}function Nj(e,t,n){let r=(0,G.useRef)(null);(0,G.useEffect)(()=>{r.current&&=(r.current.disconnect(),null);let i=typeof n==`function`?n():n;return i&&(r.current=new MutationObserver(e),r.current.observe(i,t)),()=>{r.current&&=(r.current.disconnect(),null)}},[e,t,n])}function Pj(){let[e,t]=(0,G.useState)(!1);return(0,G.useEffect)(()=>t(!0),[]),e}var Fj=s((e=>{var t=ej();function n(e){var t=`https://react.dev/errors/`+e;if(1{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=Fj()}));function Lj(){return`development`}function Rj(e){return e?.props?.ref}function zj(e){return typeof e==`string`||typeof e==`number`||typeof e==`boolean`||typeof e==`bigint`}function Bj(e){let t=G.Children.toArray(e);return t.length!==1||!tj(t[0])?null:t[0]}function Vj(e){return e}function Hj(e){var t,n,r=``;if(typeof e==`string`||typeof e==`number`)r+=e;else if(typeof e==`object`)if(Array.isArray(e)){var i=e.length;for(t=0;t{Object.entries(e).forEach(([e,n])=>{t[e]?t[e]=Uj(t[e],n):t[e]=n})}),t}function Kj({theme:e,classNames:t,props:n,stylesCtx:r}){return Gj((Array.isArray(t)?t:[t]).map(t=>typeof t==`function`?t(e,n,r):t||Wj))}function qj({theme:e,styles:t,props:n,stylesCtx:r}){let i=Array.isArray(t)?t:[t],a={};for(let t of i)typeof t==`function`?Object.assign(a,t(e,n,r)):t&&Object.assign(a,t);return a}function Jj(e){return e===`auto`||e===`dark`||e===`light`}function Yj({key:e=`mantine-color-scheme-value`}={}){let t;return{get:t=>{if(typeof window>`u`)return t;try{let n=window.localStorage.getItem(e);return Jj(n)?n:t}catch{return t}},set:t=>{try{window.localStorage.setItem(e,t)}catch(e){console.warn(`[@mantine/core] Local storage color scheme manager was unable to save color scheme.`,e)}},subscribe:n=>{t=t=>{t.storageArea===window.localStorage&&t.key===e&&Jj(t.newValue)&&n(t.newValue)},window.addEventListener(`storage`,t)},unsubscribe:()=>{window.removeEventListener(`storage`,t)},clear:()=>{window.localStorage.removeItem(e)}}}function Xj(e,t){return typeof e.primaryShade==`number`?e.primaryShade:t===`dark`?e.primaryShade.dark:e.primaryShade.light}function Zj(e){return/^#?([0-9A-F]{3}){1,2}([0-9A-F]{2})?$/i.test(e)}function Qj(e){let t=e.replace(`#`,``);if(t.length===3){let e=t.split(``);t=[e[0],e[0],e[1],e[1],e[2],e[2]].join(``)}if(t.length===8){let e=parseInt(t.slice(6,8),16)/255;return{r:parseInt(t.slice(0,2),16),g:parseInt(t.slice(2,4),16),b:parseInt(t.slice(4,6),16),a:e}}let n=parseInt(t,16);return{r:n>>16&255,g:n>>8&255,b:n&255,a:1}}function $j(e){let[t,n,r,i]=e.replace(/[^0-9,./]/g,``).split(/[/,]/).map(Number);return{r:t,g:n,b:r,a:i===void 0?1:i}}function eM(e){let t=e.match(/^hsla?\(\s*(\d+)\s*,\s*(\d+%)\s*,\s*(\d+%)\s*(,\s*(0?\.\d+|\d+(\.\d+)?))?\s*\)$/i);if(!t)return{r:0,g:0,b:0,a:1};let n=parseInt(t[1],10),r=parseInt(t[2],10)/100,i=parseInt(t[3],10)/100,a=t[5]?parseFloat(t[5]):void 0,o=(1-Math.abs(2*i-1))*r,s=n/60,c=o*(1-Math.abs(s%2-1)),l=i-o/2,u,d,f;return s>=0&&s<1?(u=o,d=c,f=0):s>=1&&s<2?(u=c,d=o,f=0):s>=2&&s<3?(u=0,d=o,f=c):s>=3&&s<4?(u=0,d=c,f=o):s>=4&&s<5?(u=c,d=0,f=o):(u=o,d=0,f=c),{r:Math.round((u+l)*255),g:Math.round((d+l)*255),b:Math.round((f+l)*255),a:a||1}}function tM(e){return Zj(e)?Qj(e):e.startsWith(`rgb`)?$j(e):e.startsWith(`hsl`)?eM(e):{r:0,g:0,b:0,a:1}}function nM(e){return e<=.03928?e/12.92:((e+.055)/1.055)**2.4}function rM(e){let t=e.match(/oklch\((.*?)%\s/);return t?parseFloat(t[1]):null}function iM(e){if(e.startsWith(`oklch(`))return(rM(e)||0)/100;let{r:t,g:n,b:r}=tM(e),i=t/255,a=n/255,o=r/255,s=nM(i),c=nM(a),l=nM(o);return .2126*s+.7152*c+.0722*l}function aM(e,t=.179){return!e.startsWith(`var(`)&&iM(e)>t}function oM({color:e,theme:t,colorScheme:n}){if(typeof e!=`string`)throw Error(`[@mantine/core] Failed to parse color. Expected color to be a string, instead got ${typeof e}`);if(e===`bright`)return{color:e,value:n===`dark`?t.white:t.black,shade:void 0,isThemeColor:!1,isLight:aM(n===`dark`?t.white:t.black,t.luminanceThreshold),variable:`--mantine-color-bright`};if(e===`dimmed`)return{color:e,value:n===`dark`?t.colors.dark[2]:t.colors.gray[7],shade:void 0,isThemeColor:!1,isLight:aM(n===`dark`?t.colors.dark[2]:t.colors.gray[6],t.luminanceThreshold),variable:`--mantine-color-dimmed`};if(e===`white`||e===`black`)return{color:e,value:e===`white`?t.white:t.black,shade:void 0,isThemeColor:!1,isLight:aM(e===`white`?t.white:t.black,t.luminanceThreshold),variable:`--mantine-color-${e}`};let[r,i]=e.split(`.`),a=i?Number(i):void 0,o=r in t.colors;if(o){let e=a===void 0?t.colors[r][Xj(t,n||`light`)]:t.colors[r][a];return{color:r,value:e,shade:a,isThemeColor:o,isLight:aM(e,t.luminanceThreshold),variable:i?`--mantine-color-${r}-${a}`:`--mantine-color-${r}-filled`}}return{color:e,value:e,isThemeColor:o,isLight:aM(e,t.luminanceThreshold),shade:a,variable:void 0}}function sM(e,t){let n=oM({color:e||t.primaryColor,theme:t});return n.variable?`var(${n.variable})`:e}function cM(e){return!!e&&typeof e==`object`&&`mantine-virtual-color`in e}function lM(e,t){if(e.startsWith(`var(`))return`color-mix(in srgb, ${e}, black ${t*100}%)`;let{r:n,g:r,b:i,a}=tM(e),o=1-t,s=e=>Math.round(e*o);return`rgba(${s(n)}, ${s(r)}, ${s(i)}, ${a})`}function uM(e,t){let n={from:e?.from||t.defaultGradient.from,to:e?.to||t.defaultGradient.to,deg:e?.deg??t.defaultGradient.deg??0},r=sM(n.from,t),i=sM(n.to,t);return`linear-gradient(${n.deg}deg, ${r} 0%, ${i} 100%)`}function dM(e,t){if(typeof e!=`string`||t>1||t<0)return`rgba(0, 0, 0, 1)`;if(e.startsWith(`var(`))return`color-mix(in srgb, ${e}, transparent ${(1-t)*100}%)`;if(e.startsWith(`oklch`))return e.includes(`/`)?e.replace(/\/\s*[\d.]+\s*\)/,`/ ${t})`):e.replace(`)`,` / ${t})`);let{r:n,g:r,b:i}=tM(e);return`rgba(${n}, ${r}, ${i}, ${t})`}var fM=dM,pM=({color:e,theme:t,variant:n,gradient:r,autoContrast:i})=>{let a=oM({color:e,theme:t}),o=typeof i==`boolean`?i:t.autoContrast;if(n===`none`)return{background:`transparent`,hover:`transparent`,color:`inherit`,border:`none`};if(n===`filled`){let n=a.isThemeColor&&a.shade===void 0&&cM(t.colors[a.color]),r=o?n?`var(--mantine-color-${a.color}-contrast)`:a.isLight?`var(--mantine-color-black)`:`var(--mantine-color-white)`:`var(--mantine-color-white)`;return a.isThemeColor?a.shade===void 0?{background:`var(--mantine-color-${e}-filled)`,hover:`var(--mantine-color-${e}-filled-hover)`,color:r,border:`${W(1)} solid transparent`}:{background:`var(--mantine-color-${a.color}-${a.shade})`,hover:`var(--mantine-color-${a.color}-${a.shade===9?8:a.shade+1})`,color:r,border:`${W(1)} solid transparent`}:{background:e,hover:lM(e,.1),color:r,border:`${W(1)} solid transparent`}}if(n===`light`){if(a.isThemeColor){if(a.shade===void 0)return{background:`var(--mantine-color-${e}-light)`,hover:`var(--mantine-color-${e}-light-hover)`,color:`var(--mantine-color-${e}-light-color)`,border:`${W(1)} solid transparent`};let n=t.colors[a.color][a.shade];return{background:n,hover:lM(n,.1),color:`var(--mantine-color-${a.color}-light-color)`,border:`${W(1)} solid transparent`}}return{background:dM(e,.1),hover:dM(e,.12),color:e,border:`${W(1)} solid transparent`}}if(n===`outline`)return a.isThemeColor?a.shade===void 0?{background:`transparent`,hover:`var(--mantine-color-${e}-outline-hover)`,color:`var(--mantine-color-${e}-outline)`,border:`${W(1)} solid var(--mantine-color-${e}-outline)`}:{background:`transparent`,hover:dM(t.colors[a.color][a.shade],.05),color:`var(--mantine-color-${a.color}-${a.shade})`,border:`${W(1)} solid var(--mantine-color-${a.color}-${a.shade})`}:{background:`transparent`,hover:dM(e,.05),color:e,border:`${W(1)} solid ${e}`};if(n===`subtle`){if(a.isThemeColor){if(a.shade===void 0)return{background:`transparent`,hover:`var(--mantine-color-${e}-light-hover)`,color:`var(--mantine-color-${e}-light-color)`,border:`${W(1)} solid transparent`};let n=t.colors[a.color][a.shade];return{background:`transparent`,hover:dM(n,.12),color:`var(--mantine-color-${a.color}-${Math.min(a.shade,6)})`,border:`${W(1)} solid transparent`}}return{background:`transparent`,hover:dM(e,.12),color:e,border:`${W(1)} solid transparent`}}return n===`transparent`?a.isThemeColor?a.shade===void 0?{background:`transparent`,hover:`transparent`,color:`var(--mantine-color-${e}-light-color)`,border:`${W(1)} solid transparent`}:{background:`transparent`,hover:`transparent`,color:`var(--mantine-color-${a.color}-${Math.min(a.shade,6)})`,border:`${W(1)} solid transparent`}:{background:`transparent`,hover:`transparent`,color:e,border:`${W(1)} solid transparent`}:n===`white`?a.isThemeColor?a.shade===void 0?{background:`var(--mantine-color-white)`,hover:lM(t.white,.01),color:`var(--mantine-color-${e}-filled)`,border:`${W(1)} solid transparent`}:{background:`var(--mantine-color-white)`,hover:lM(t.white,.01),color:`var(--mantine-color-${a.color}-${a.shade})`,border:`${W(1)} solid transparent`}:{background:`var(--mantine-color-white)`,hover:lM(t.white,.01),color:e,border:`${W(1)} solid transparent`}:n===`gradient`?{background:uM(r,t),hover:uM(r,t),color:`var(--mantine-color-white)`,border:`none`}:n==="default"?{background:`var(--mantine-color-default)`,hover:`var(--mantine-color-default-hover)`,color:`var(--mantine-color-default-color)`,border:`${W(1)} solid var(--mantine-color-default-border)`}:{}};function mM({color:e,theme:t,autoContrast:n,colorScheme:r}){return(typeof n==`boolean`?n:t.autoContrast)&&oM({color:e||t.primaryColor,theme:t,colorScheme:r}).isLight?`var(--mantine-color-black)`:`var(--mantine-color-white)`}function hM(e,t,n){return mM({color:n===`dark`?e.dark:e.light,theme:t,colorScheme:n,autoContrast:!0})}function gM(e,t){let n=e.colors[e.primaryColor];return cM(n)?e.autoContrast?hM(n,e,t):`var(--mantine-color-white)`:mM({color:n[Xj(e,t)],theme:e,autoContrast:null})}function _M(e,t){return typeof e==`boolean`?e:t.autoContrast}var vM=(0,G.createContext)(null);function yM(){let e=(0,G.use)(vM);if(!e)throw Error(`[@mantine/core] MantineProvider was not found in tree`);return e}function bM(){return yM().cssVariablesResolver}function xM(){return yM().classNamesPrefix}function SM(){return yM().getStyleNonce}function CM(){return yM().withStaticClasses}function wM(){return yM().headless}function TM(){return yM().stylesTransform?.sx}function EM(){return yM().stylesTransform?.styles}function DM(){return yM().env||`default`}function OM(){return yM().deduplicateInlineStyles}function kM(e,t){let n=typeof window<`u`&&`matchMedia`in window&&window.matchMedia(`(prefers-color-scheme: dark)`)?.matches,r=e===`auto`?n?`dark`:`light`:e;t()?.setAttribute(`data-mantine-color-scheme`,r)}function AM({manager:e,defaultColorScheme:t,getRootElement:n,forceColorScheme:r}){let i=(0,G.useRef)(null),[a,o]=(0,G.useState)(()=>e.get(t)),s=r||a,c=(0,G.useCallback)(t=>{r||(kM(t,n),o(t),e.set(t))},[e.set,s,r]),l=(0,G.useCallback)(()=>{o(t),kM(t,n),e.clear()},[e.clear,t]);return(0,G.useEffect)(()=>(e.subscribe(c),e.unsubscribe),[e.subscribe,e.unsubscribe]),vj(()=>{kM(e.get(t),n)},[]),(0,G.useEffect)(()=>{if(r)return kM(r,n),()=>{};r===void 0&&kM(a,n),typeof window<`u`&&`matchMedia`in window&&(i.current=window.matchMedia(`(prefers-color-scheme: dark)`));let e=e=>{a===`auto`&&kM(e.matches?`dark`:`light`,n)};return i.current?.addEventListener(`change`,e),()=>i.current?.removeEventListener(`change`,e)},[a,r]),{colorScheme:s,setColorScheme:c,clearColorScheme:l}}var jM=s((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.fragment`);function r(e,n,r){var i=null;if(r!==void 0&&(i=``+r),n.key!==void 0&&(i=``+n.key),`key`in n)for(var a in r={},n)a!==`key`&&(r[a]=n[a]);else r=n;return n=r.ref,{$$typeof:t,type:e,key:i,ref:n===void 0?null:n,props:r}}e.Fragment=n,e.jsx=r,e.jsxs=r})),MM=s(((e,t)=>{t.exports=jM()})),NM={dark:[`#C9C9C9`,`#b8b8b8`,`#828282`,`#696969`,`#424242`,`#3b3b3b`,`#2e2e2e`,`#242424`,`#1f1f1f`,`#141414`],gray:[`#f8f9fa`,`#f1f3f5`,`#e9ecef`,`#dee2e6`,`#ced4da`,`#adb5bd`,`#868e96`,`#495057`,`#343a40`,`#212529`],red:[`#fff5f5`,`#ffe3e3`,`#ffc9c9`,`#ffa8a8`,`#ff8787`,`#ff6b6b`,`#fa5252`,`#f03e3e`,`#e03131`,`#c92a2a`],pink:[`#fff0f6`,`#ffdeeb`,`#fcc2d7`,`#faa2c1`,`#f783ac`,`#f06595`,`#e64980`,`#d6336c`,`#c2255c`,`#a61e4d`],grape:[`#f8f0fc`,`#f3d9fa`,`#eebefa`,`#e599f7`,`#da77f2`,`#cc5de8`,`#be4bdb`,`#ae3ec9`,`#9c36b5`,`#862e9c`],violet:[`#f3f0ff`,`#e5dbff`,`#d0bfff`,`#b197fc`,`#9775fa`,`#845ef7`,`#7950f2`,`#7048e8`,`#6741d9`,`#5f3dc4`],indigo:[`#edf2ff`,`#dbe4ff`,`#bac8ff`,`#91a7ff`,`#748ffc`,`#5c7cfa`,`#4c6ef5`,`#4263eb`,`#3b5bdb`,`#364fc7`],blue:[`#e7f5ff`,`#d0ebff`,`#a5d8ff`,`#74c0fc`,`#4dabf7`,`#339af0`,`#228be6`,`#1c7ed6`,`#1971c2`,`#1864ab`],cyan:[`#e3fafc`,`#c5f6fa`,`#99e9f2`,`#66d9e8`,`#3bc9db`,`#22b8cf`,`#15aabf`,`#1098ad`,`#0c8599`,`#0b7285`],teal:[`#e6fcf5`,`#c3fae8`,`#96f2d7`,`#63e6be`,`#38d9a9`,`#20c997`,`#12b886`,`#0ca678`,`#099268`,`#087f5b`],green:[`#ebfbee`,`#d3f9d8`,`#b2f2bb`,`#8ce99a`,`#69db7c`,`#51cf66`,`#40c057`,`#37b24d`,`#2f9e44`,`#2b8a3e`],lime:[`#f4fce3`,`#e9fac8`,`#d8f5a2`,`#c0eb75`,`#a9e34b`,`#94d82d`,`#82c91e`,`#74b816`,`#66a80f`,`#5c940d`],yellow:[`#fff9db`,`#fff3bf`,`#ffec99`,`#ffe066`,`#ffd43b`,`#fcc419`,`#fab005`,`#f59f00`,`#f08c00`,`#e67700`],orange:[`#fff4e6`,`#ffe8cc`,`#ffd8a8`,`#ffc078`,`#ffa94d`,`#ff922b`,`#fd7e14`,`#f76707`,`#e8590c`,`#d9480f`]},PM=`-apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji`,FM={scale:1,fontSmoothing:!0,focusRing:`auto`,white:`#fff`,black:`#000`,colors:NM,primaryShade:{light:6,dark:8},primaryColor:`blue`,variantColorResolver:pM,autoContrast:!1,luminanceThreshold:.3,fontFamily:PM,fontFamilyMonospace:`ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, Courier New, monospace`,respectReducedMotion:!1,cursorType:`default`,defaultGradient:{from:`blue`,to:`cyan`,deg:45},defaultRadius:`md`,activeClassName:`mantine-active`,focusClassName:``,headings:{fontFamily:PM,fontWeight:`700`,textWrap:`wrap`,sizes:{h1:{fontSize:W(34),lineHeight:`1.3`},h2:{fontSize:W(26),lineHeight:`1.35`},h3:{fontSize:W(22),lineHeight:`1.4`},h4:{fontSize:W(18),lineHeight:`1.45`},h5:{fontSize:W(16),lineHeight:`1.5`},h6:{fontSize:W(14),lineHeight:`1.5`}}},fontSizes:{xs:W(12),sm:W(14),md:W(16),lg:W(18),xl:W(20)},lineHeights:{xs:`1.4`,sm:`1.45`,md:`1.55`,lg:`1.6`,xl:`1.65`},fontWeights:{regular:`400`,medium:`600`,bold:`700`},radius:{xs:W(2),sm:W(4),md:W(8),lg:W(16),xl:W(32)},spacing:{xs:W(10),sm:W(12),md:W(16),lg:W(20),xl:W(32)},breakpoints:{xs:`36em`,sm:`48em`,md:`62em`,lg:`75em`,xl:`88em`},shadows:{xs:`0 ${W(1)} ${W(3)} rgba(0, 0, 0, 0.05), 0 ${W(1)} ${W(2)} rgba(0, 0, 0, 0.1)`,sm:`0 ${W(1)} ${W(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${W(10)} ${W(15)} ${W(-5)}, rgba(0, 0, 0, 0.04) 0 ${W(7)} ${W(7)} ${W(-5)}`,md:`0 ${W(1)} ${W(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${W(20)} ${W(25)} ${W(-5)}, rgba(0, 0, 0, 0.04) 0 ${W(10)} ${W(10)} ${W(-5)}`,lg:`0 ${W(1)} ${W(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${W(28)} ${W(23)} ${W(-7)}, rgba(0, 0, 0, 0.04) 0 ${W(12)} ${W(12)} ${W(-7)}`,xl:`0 ${W(1)} ${W(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${W(36)} ${W(28)} ${W(-7)}, rgba(0, 0, 0, 0.04) 0 ${W(17)} ${W(17)} ${W(-7)}`},other:{},components:{}},pee=`[@mantine/core] MantineProvider: Invalid theme.primaryColor, it accepts only key of theme.colors, learn more – https://mantine.dev/theming/colors/#primary-color`,mee=`[@mantine/core] MantineProvider: Invalid theme.primaryShade, it accepts only 0-9 integers or an object { light: 0-9, dark: 0-9 }`;function IM(e){return e<0||e>9?!1:parseInt(e.toString(),10)===e}function LM(e){if(!(e.primaryColor in e.colors))throw Error(pee);if(typeof e.primaryShade==`object`&&(!IM(e.primaryShade.dark)||!IM(e.primaryShade.light))||typeof e.primaryShade==`number`&&!IM(e.primaryShade))throw Error(mee)}function hee(e,t){if(!t)return LM(e),e;let n=WA(e,t);return t.fontFamily&&!t.headings?.fontFamily&&(n.headings={...n.headings,fontFamily:t.fontFamily}),LM(n),n}var K=MM(),RM=(0,G.createContext)(null),gee=()=>(0,G.use)(RM)||FM;function zM(){let e=(0,G.use)(RM);if(!e)throw Error(`@mantine/core: MantineProvider was not found in component tree, make sure you have it in your app`);return e}function BM({theme:e,children:t,inherit:n=!0}){let r=gee(),i=(0,G.useMemo)(()=>hee(n?r:FM,e),[e,r,n]);return(0,K.jsx)(RM,{value:i,children:t})}BM.displayName=`@mantine/core/MantineThemeProvider`;function VM(e){return Object.entries(e).map(([e,t])=>`${e}: ${t};`).join(``)}function HM(e,t){let n=t?[t]:[`:root`,`:host`],r=VM(e.variables),i=r?`${n.join(`, `)}{${r}}`:``,a=VM(e.dark),o=VM(e.light),s=e=>n.map(t=>t===`:host`?`${t}([data-mantine-color-scheme="${e}"])`:`${t}[data-mantine-color-scheme="${e}"]`).join(`, `);return`${i}\n\n${a?`${s(`dark`)}{${a}}`:``}\n\n${o?`${s(`light`)}{${o}}`:``}`}function UM({theme:e,color:t,colorScheme:n,name:r=t,withColorValues:i=!0}){if(!e.colors[t])return{};if(n===`light`){let n=Xj(e,`light`),a={[`--mantine-color-${r}-text`]:`var(--mantine-color-${r}-filled)`,[`--mantine-color-${r}-filled`]:`var(--mantine-color-${r}-${n})`,[`--mantine-color-${r}-filled-hover`]:`var(--mantine-color-${r}-${n===9?8:n+1})`,[`--mantine-color-${r}-light`]:`var(--mantine-color-${r}-1)`,[`--mantine-color-${r}-light-hover`]:`var(--mantine-color-${r}-2)`,[`--mantine-color-${r}-light-color`]:`var(--mantine-color-${r}-9)`,[`--mantine-color-${r}-outline`]:`var(--mantine-color-${r}-${n})`,[`--mantine-color-${r}-outline-hover`]:fM(e.colors[t][n],.05)};return i?{[`--mantine-color-${r}-0`]:e.colors[t][0],[`--mantine-color-${r}-1`]:e.colors[t][1],[`--mantine-color-${r}-2`]:e.colors[t][2],[`--mantine-color-${r}-3`]:e.colors[t][3],[`--mantine-color-${r}-4`]:e.colors[t][4],[`--mantine-color-${r}-5`]:e.colors[t][5],[`--mantine-color-${r}-6`]:e.colors[t][6],[`--mantine-color-${r}-7`]:e.colors[t][7],[`--mantine-color-${r}-8`]:e.colors[t][8],[`--mantine-color-${r}-9`]:e.colors[t][9],...a}:a}let a=Xj(e,`dark`),o={[`--mantine-color-${r}-text`]:`var(--mantine-color-${r}-4)`,[`--mantine-color-${r}-filled`]:`var(--mantine-color-${r}-${a})`,[`--mantine-color-${r}-filled-hover`]:`var(--mantine-color-${r}-${a===9?8:a+1})`,[`--mantine-color-${r}-light`]:lM(e.colors[t][9],.5),[`--mantine-color-${r}-light-hover`]:lM(e.colors[t][9],.3),[`--mantine-color-${r}-light-color`]:`var(--mantine-color-${r}-0)`,[`--mantine-color-${r}-outline`]:`var(--mantine-color-${r}-${Math.max(a-4,0)})`,[`--mantine-color-${r}-outline-hover`]:fM(e.colors[t][Math.max(a-4,0)],.05)};return i?{[`--mantine-color-${r}-0`]:e.colors[t][0],[`--mantine-color-${r}-1`]:e.colors[t][1],[`--mantine-color-${r}-2`]:e.colors[t][2],[`--mantine-color-${r}-3`]:e.colors[t][3],[`--mantine-color-${r}-4`]:e.colors[t][4],[`--mantine-color-${r}-5`]:e.colors[t][5],[`--mantine-color-${r}-6`]:e.colors[t][6],[`--mantine-color-${r}-7`]:e.colors[t][7],[`--mantine-color-${r}-8`]:e.colors[t][8],[`--mantine-color-${r}-9`]:e.colors[t][9],...o}:o}function WM(e,t,n){HA(t).forEach(r=>Object.assign(e,{[`--mantine-${n}-${r}`]:t[r]}))}var GM=e=>{let t=Xj(e,`light`),n=e.defaultRadius in e.radius?e.radius[e.defaultRadius]:W(e.defaultRadius),r={variables:{"--mantine-z-index-app":`100`,"--mantine-z-index-modal":`200`,"--mantine-z-index-popover":`300`,"--mantine-z-index-overlay":`400`,"--mantine-z-index-max":`9999`,"--mantine-scale":e.scale.toString(),"--mantine-cursor-type":e.cursorType,"--mantine-webkit-font-smoothing":e.fontSmoothing?`antialiased`:`unset`,"--mantine-moz-font-smoothing":e.fontSmoothing?`grayscale`:`unset`,"--mantine-color-white":e.white,"--mantine-color-black":e.black,"--mantine-line-height":e.lineHeights.md,"--mantine-font-family":e.fontFamily,"--mantine-font-family-monospace":e.fontFamilyMonospace,"--mantine-font-family-headings":e.headings.fontFamily,"--mantine-heading-font-weight":e.headings.fontWeight,"--mantine-heading-text-wrap":e.headings.textWrap,"--mantine-radius-default":n,"--mantine-primary-color-filled":`var(--mantine-color-${e.primaryColor}-filled)`,"--mantine-primary-color-filled-hover":`var(--mantine-color-${e.primaryColor}-filled-hover)`,"--mantine-primary-color-light":`var(--mantine-color-${e.primaryColor}-light)`,"--mantine-primary-color-light-hover":`var(--mantine-color-${e.primaryColor}-light-hover)`,"--mantine-primary-color-light-color":`var(--mantine-color-${e.primaryColor}-light-color)`},light:{"--mantine-color-scheme":`light`,"--mantine-primary-color-contrast":gM(e,`light`),"--mantine-color-bright":`var(--mantine-color-black)`,"--mantine-color-text":e.black,"--mantine-color-body":e.white,"--mantine-color-error":`var(--mantine-color-red-6)`,"--mantine-color-success":`var(--mantine-color-teal-8)`,"--mantine-color-placeholder":`var(--mantine-color-gray-5)`,"--mantine-color-anchor":`var(--mantine-color-${e.primaryColor}-${t})`,"--mantine-color-default":`var(--mantine-color-white)`,"--mantine-color-default-hover":`var(--mantine-color-gray-0)`,"--mantine-color-default-color":`var(--mantine-color-black)`,"--mantine-color-default-border":`var(--mantine-color-gray-4)`,"--mantine-color-dimmed":`var(--mantine-color-gray-6)`,"--mantine-color-disabled":`var(--mantine-color-gray-2)`,"--mantine-color-disabled-color":`var(--mantine-color-gray-5)`,"--mantine-color-disabled-border":`var(--mantine-color-gray-3)`},dark:{"--mantine-color-scheme":`dark`,"--mantine-primary-color-contrast":gM(e,`dark`),"--mantine-color-bright":`var(--mantine-color-white)`,"--mantine-color-text":`var(--mantine-color-dark-0)`,"--mantine-color-body":`var(--mantine-color-dark-7)`,"--mantine-color-error":`var(--mantine-color-red-8)`,"--mantine-color-success":`var(--mantine-color-teal-8)`,"--mantine-color-placeholder":`var(--mantine-color-dark-3)`,"--mantine-color-anchor":`var(--mantine-color-${e.primaryColor}-4)`,"--mantine-color-default":`var(--mantine-color-dark-6)`,"--mantine-color-default-hover":`var(--mantine-color-dark-5)`,"--mantine-color-default-color":`var(--mantine-color-white)`,"--mantine-color-default-border":`var(--mantine-color-dark-4)`,"--mantine-color-dimmed":`var(--mantine-color-dark-2)`,"--mantine-color-disabled":`var(--mantine-color-dark-6)`,"--mantine-color-disabled-color":`var(--mantine-color-dark-3)`,"--mantine-color-disabled-border":`var(--mantine-color-dark-4)`}};WM(r.variables,e.breakpoints,`breakpoint`),WM(r.variables,e.spacing,`spacing`),WM(r.variables,e.fontSizes,`font-size`),WM(r.variables,e.lineHeights,`line-height`),WM(r.variables,e.shadows,`shadow`),WM(r.variables,e.radius,`radius`),WM(r.variables,e.fontWeights,`font-weight`),e.colors[e.primaryColor].forEach((t,n)=>{r.variables[`--mantine-primary-color-${n}`]=`var(--mantine-color-${e.primaryColor}-${n})`}),HA(e.colors).forEach(t=>{let n=e.colors[t];if(cM(n)){Object.assign(r.light,UM({theme:e,name:n.name,color:n.light,colorScheme:`light`,withColorValues:!0})),Object.assign(r.dark,UM({theme:e,name:n.name,color:n.dark,colorScheme:`dark`,withColorValues:!0})),r.light[`--mantine-color-${n.name}-contrast`]=hM(n,e,`light`),r.dark[`--mantine-color-${n.name}-contrast`]=hM(n,e,`dark`);return}n.forEach((e,n)=>{r.variables[`--mantine-color-${t}-${n}`]=e}),Object.assign(r.light,UM({theme:e,color:t,colorScheme:`light`,withColorValues:!1})),Object.assign(r.dark,UM({theme:e,color:t,colorScheme:`dark`,withColorValues:!1}))});let i=e.headings.sizes;return HA(i).forEach(t=>{r.variables[`--mantine-${t}-font-size`]=i[t].fontSize,r.variables[`--mantine-${t}-line-height`]=i[t].lineHeight,r.variables[`--mantine-${t}-font-weight`]=i[t].fontWeight||e.headings.fontWeight}),r};function _ee(){let e=zM(),t=SM(),n=HA(e.breakpoints).reduce((t,n)=>{let r=e.breakpoints[n].includes(`px`),i=qA(e.breakpoints[n]);return`${t}@media (max-width: ${r?`${i-.1}px`:XA(i-.1)}) {.mantine-visible-from-${n} {display: none !important;}}@media (min-width: ${r?`${i}px`:XA(i)}) {.mantine-hidden-from-${n} {display: none !important;}}`},``);return(0,K.jsx)(`style`,{"data-mantine-styles":`classes`,nonce:t?.(),dangerouslySetInnerHTML:{__html:n}})}function vee({theme:e,generator:t}){let n=GM(e),r=t?.(e);return r?WA(n,r):n}var KM=GM(FM);function yee(e){let t={variables:{},light:{},dark:{}};return HA(e.variables).forEach(n=>{KM.variables[n]!==e.variables[n]&&(t.variables[n]=e.variables[n])}),HA(e.light).forEach(n=>{KM.light[n]!==e.light[n]&&(t.light[n]=e.light[n])}),HA(e.dark).forEach(n=>{KM.dark[n]!==e.dark[n]&&(t.dark[n]=e.dark[n])}),t}function bee(e){return HM({variables:{},dark:{"--mantine-color-scheme":`dark`},light:{"--mantine-color-scheme":`light`}},e)}function qM({cssVariablesSelector:e,deduplicateCssVariables:t}){let n=zM(),r=SM(),i=vee({theme:n,generator:bM()}),a=(e===void 0||e===`:root`||e===`:host`)&&t,o=HM(a?yee(i):i,e);return o?(0,K.jsx)(`style`,{"data-mantine-styles":!0,nonce:r?.(),dangerouslySetInnerHTML:{__html:`${o}${a?``:bee(e)}`}}):null}qM.displayName=`@mantine/CssVariables`;function xee({respectReducedMotion:e,getRootElement:t}){vj(()=>{e&&t()?.setAttribute(`data-respect-reduced-motion`,`true`)},[e])}function JM({theme:e,children:t,getStyleNonce:n,withStaticClasses:r=!0,withGlobalClasses:i=!0,deduplicateCssVariables:a=!0,withCssVariables:o=!0,cssVariablesSelector:s,classNamesPrefix:c=`mantine`,colorSchemeManager:l=Yj(),defaultColorScheme:u=`light`,getRootElement:d=()=>document.documentElement,cssVariablesResolver:f,forceColorScheme:p,stylesTransform:m,env:h,deduplicateInlineStyles:g=!1}){let{colorScheme:_,setColorScheme:v,clearColorScheme:y}=AM({defaultColorScheme:u,forceColorScheme:p,manager:l,getRootElement:d});return xee({respectReducedMotion:e?.respectReducedMotion||!1,getRootElement:d}),(0,K.jsx)(vM,{value:{colorScheme:_,setColorScheme:v,clearColorScheme:y,getRootElement:d,classNamesPrefix:c,getStyleNonce:n,cssVariablesResolver:f,cssVariablesSelector:s??`:root`,withStaticClasses:r,stylesTransform:m,env:h,deduplicateInlineStyles:g},children:(0,K.jsxs)(BM,{theme:e,children:[o&&(0,K.jsx)(qM,{cssVariablesSelector:s,deduplicateCssVariables:a}),i&&(0,K.jsx)(_ee,{}),t]})})}JM.displayName=`@mantine/core/MantineProvider`;function YM(e,t,n){let r=zM(),i=(Array.isArray(e)?e:[e]).filter(Boolean),a={};for(let e of i){let t=r.components[e]?.defaultProps,n=typeof t==`function`?t(r):t;n&&(a={...a,...n})}return{...t,...a,...ZA(n)}}function XM(e){return e}function ZM({classNames:e,styles:t,props:n,stylesCtx:r}){let i=zM();return{resolvedClassNames:e===void 0?void 0:Kj({theme:i,classNames:e,props:n,stylesCtx:r||void 0}),resolvedStyles:t===void 0?void 0:qj({theme:i,styles:t,props:n,stylesCtx:r||void 0})}}var QM={always:`mantine-focus-always`,auto:`mantine-focus-auto`,never:`mantine-focus-never`};function $M({theme:e,options:t,unstyled:n}){return Uj(t?.focusable&&!n&&(e.focusClassName||QM[e.focusRing]),t?.active&&!n&&e.activeClassName)}function eN({selector:e,stylesCtx:t,options:n,props:r,theme:i}){return Kj({theme:i,classNames:n?.classNames,props:n?.props||r,stylesCtx:t})[e]}function tN({selector:e,stylesCtx:t,theme:n,classNames:r,props:i}){return Kj({theme:n,classNames:r,props:i,stylesCtx:t})[e]}function nN({rootSelector:e,selector:t,className:n}){return e===t?n:void 0}function rN({selector:e,classes:t,unstyled:n}){return n?void 0:t[e]}function iN({themeName:e,classNamesPrefix:t,selector:n,withStaticClass:r}){return r===!1?[]:e.map(e=>`${t}-${e}-${n}`)}function aN({options:e,classes:t,selector:n,unstyled:r}){return e?.variant&&!r?t[`${n}--${e.variant}`]:void 0}function oN({theme:e,options:t,themeName:n,selector:r,classNamesPrefix:i,resolvedClassNames:a,resolvedThemeClassNames:o,classes:s,unstyled:c,className:l,rootSelector:u,props:d,stylesCtx:f,withStaticClasses:p,headless:m,transformedStyles:h}){return Uj($M({theme:e,options:t,unstyled:c||m}),o.map(e=>e[r]),aN({options:t,classes:s,selector:r,unstyled:c||m}),a[r],tN({selector:r,stylesCtx:f,theme:e,classNames:h,props:d}),eN({selector:r,stylesCtx:f,options:t,props:d,theme:e}),nN({rootSelector:u,selector:r,className:l}),rN({selector:r,classes:s,unstyled:c||m}),p&&!m&&iN({themeName:n,classNamesPrefix:i,selector:r,withStaticClass:t?.withStaticClass}),t?.className)}function sN({style:e,theme:t}){return Array.isArray(e)?e.reduce((e,n)=>({...e,...sN({style:n,theme:t})}),{}):typeof e==`function`?e(t):e??{}}function cN({theme:e,selector:t,options:n,props:r,stylesCtx:i,rootSelector:a,withStylesTransform:o,resolvedStyles:s,resolvedThemeStyles:c,resolvedVars:l,resolvedRootStyle:u}){return{...c[t],...s[t],...!o&&qj({theme:e,styles:n?.styles,props:n?.props||r,stylesCtx:i})[t],...l[t],...a===t?u:null,...sN({style:n?.style,theme:e})}}function lN(e){return e.reduce((e,t)=>(t&&Object.keys(t).forEach(n=>{e[n]={...e[n],...ZA(t[n])}}),e),{})}function uN({props:e,stylesCtx:t,themeName:n,theme:r}){let i=EM()?.();return{getTransformedStyles:a=>i?[...a.map(n=>i(n,{props:e,theme:r,ctx:t})),...n.map(n=>i(r.components[n]?.styles,{props:e,theme:r,ctx:t}))].filter(Boolean):[],withStylesTransform:!!i}}function dN({name:e,classes:t,props:n,stylesCtx:r,className:i,style:a,rootSelector:o=`root`,unstyled:s,classNames:c,styles:l,vars:u,varsResolver:d,attributes:f}){let p=zM(),m=xM(),h=CM(),g=wM(),_=(Array.isArray(e)?e:[e]).filter(e=>e),{withStylesTransform:v,getTransformedStyles:y}=uN({props:n,stylesCtx:r,themeName:_,theme:p}),b=Kj({theme:p,classNames:c,props:n,stylesCtx:r}),x=_.map(e=>Kj({theme:p,classNames:p.components[e]?.classNames,props:n,stylesCtx:r})),S=v?{}:qj({theme:p,styles:l,props:n,stylesCtx:r}),C={};if(!v)for(let e of _){let t=qj({theme:p,styles:p.components[e]?.styles,props:n,stylesCtx:r});for(let e of Object.keys(t))C[e]={...C[e],...t[e]}}let w=lN([g?{}:d?.(p,n,r),..._.map(e=>p.components?.[e]?.vars?.(p,n,r)),u?.(p,n,r)]),T=sN({style:a,theme:p});return(e,a)=>({...f?.[e],className:oN({theme:p,options:a,themeName:_,selector:e,classNamesPrefix:m,resolvedClassNames:b,resolvedThemeClassNames:x,classes:t,unstyled:s,className:i,rootSelector:o,props:n,stylesCtx:r,withStaticClasses:h,headless:g,transformedStyles:y([a?.styles,l])}),style:cN({theme:p,selector:e,options:a,props:n,stylesCtx:r,rootSelector:o,withStylesTransform:v,resolvedStyles:S,resolvedThemeStyles:C,resolvedVars:w,resolvedRootStyle:T})})}function fN(e){return HA(e).reduce((t,n)=>e[n]===void 0?t:`${t}${GA(n)}:${e[n]};`,``).trim()}function pN({selector:e,styles:t,media:n,container:r}){let i=t?fN(t):``,a=Array.isArray(n)?n.map(t=>`@media${t.query}{${e}{${fN(t.styles)}}}`):[],o=Array.isArray(r)?r.map(t=>`@container ${t.query}{${e}{${fN(t.styles)}}}`):[];return`${i?`${e}{${i}}`:``}${a.join(``)}${o.join(``)}`.trim()}function mN(e){let t=5381;for(let n=0;n>>0).toString(36)}function See({deduplicate:e,...t}){let n=SM(),r=pN(t);return e?(0,K.jsx)(`style`,{href:`mantine-${mN(r)}`,precedence:`mantine`,nonce:n?.(),children:r}):(0,K.jsx)(`style`,{"data-mantine-styles":`inline`,nonce:n?.(),dangerouslySetInnerHTML:{__html:r}})}function Cee(e){let t=5381;for(let n=0;n>>0).toString(36)}function wee(e,t){return`__mdi__-${Cee(`${e?fN(e):``}|${Array.isArray(t)?t.map(e=>`${e.query}:${fN(e.styles)}`).join(`|`):``}`)}`}function hN(e){let{m:t,mx:n,my:r,mt:i,mb:a,ml:o,mr:s,me:c,ms:l,mis:u,mie:d,p:f,px:p,py:m,pt:h,pb:g,pl:_,pr:v,pe:y,ps:b,pis:x,pie:S,bd:C,bdrs:w,bg:T,c:E,opacity:D,ff:O,fz:k,fw:A,lts:j,ta:ee,lh:M,fs:N,tt:te,td:P,w:F,miw:I,maw:ne,h:L,mih:re,mah:ie,bgsz:ae,bgp:oe,bgr:R,bga:z,pos:se,top:ce,left:le,bottom:ue,right:de,inset:fe,display:pe,flex:B,hiddenFrom:me,visibleFrom:V,lightHidden:he,darkHidden:ge,sx:H,..._e}=e;return{styleProps:ZA({m:t,mx:n,my:r,mt:i,mb:a,ml:o,mr:s,me:c,ms:l,mis:u,mie:d,p:f,px:p,py:m,pt:h,pb:g,pl:_,pr:v,pis:x,pie:S,pe:y,ps:b,bd:C,bg:T,c:E,opacity:D,ff:O,fz:k,fw:A,lts:j,ta:ee,lh:M,fs:N,tt:te,td:P,w:F,miw:I,maw:ne,h:L,mih:re,mah:ie,bgsz:ae,bgp:oe,bgr:R,bga:z,pos:se,top:ce,left:le,bottom:ue,right:de,inset:fe,display:pe,flex:B,bdrs:w,hiddenFrom:me,visibleFrom:V,lightHidden:he,darkHidden:ge,sx:H}),rest:_e}}var gN={m:{type:`spacing`,property:`margin`},mt:{type:`spacing`,property:`marginTop`},mb:{type:`spacing`,property:`marginBottom`},ml:{type:`spacing`,property:`marginLeft`},mr:{type:`spacing`,property:`marginRight`},ms:{type:`spacing`,property:`marginInlineStart`},me:{type:`spacing`,property:`marginInlineEnd`},mis:{type:`spacing`,property:`marginInlineStart`},mie:{type:`spacing`,property:`marginInlineEnd`},mx:{type:`spacing`,property:`marginInline`},my:{type:`spacing`,property:`marginBlock`},p:{type:`spacing`,property:`padding`},pt:{type:`spacing`,property:`paddingTop`},pb:{type:`spacing`,property:`paddingBottom`},pl:{type:`spacing`,property:`paddingLeft`},pr:{type:`spacing`,property:`paddingRight`},ps:{type:`spacing`,property:`paddingInlineStart`},pe:{type:`spacing`,property:`paddingInlineEnd`},pis:{type:`spacing`,property:`paddingInlineStart`},pie:{type:`spacing`,property:`paddingInlineEnd`},px:{type:`spacing`,property:`paddingInline`},py:{type:`spacing`,property:`paddingBlock`},bd:{type:`border`,property:`border`},bdrs:{type:`radius`,property:`borderRadius`},bg:{type:`color`,property:`background`},c:{type:`textColor`,property:`color`},opacity:{type:`identity`,property:`opacity`},ff:{type:`fontFamily`,property:`fontFamily`},fz:{type:`fontSize`,property:`fontSize`},fw:{type:`identity`,property:`fontWeight`},lts:{type:`size`,property:`letterSpacing`},ta:{type:`identity`,property:`textAlign`},lh:{type:`lineHeight`,property:`lineHeight`},fs:{type:`identity`,property:`fontStyle`},tt:{type:`identity`,property:`textTransform`},td:{type:`identity`,property:`textDecoration`},w:{type:`spacing`,property:`width`},miw:{type:`spacing`,property:`minWidth`},maw:{type:`spacing`,property:`maxWidth`},h:{type:`spacing`,property:`height`},mih:{type:`spacing`,property:`minHeight`},mah:{type:`spacing`,property:`maxHeight`},bgsz:{type:`size`,property:`backgroundSize`},bgp:{type:`identity`,property:`backgroundPosition`},bgr:{type:`identity`,property:`backgroundRepeat`},bga:{type:`identity`,property:`backgroundAttachment`},pos:{type:`identity`,property:`position`},top:{type:`size`,property:`top`},left:{type:`size`,property:`left`},bottom:{type:`size`,property:`bottom`},right:{type:`size`,property:`right`},inset:{type:`size`,property:`inset`},display:{type:`identity`,property:`display`},flex:{type:`identity`,property:`flex`}};function _N(e,t){let n=oM({color:e,theme:t});return n.color===`dimmed`?`var(--mantine-color-dimmed)`:n.color===`bright`?`var(--mantine-color-bright)`:n.variable?`var(${n.variable})`:n.color}function vN(e,t){let n=oM({color:e,theme:t});return n.isThemeColor&&n.shade===void 0?`var(--mantine-color-${n.color}-text)`:_N(e,t)}function yN(e,t){if(typeof e==`number`)return W(e);if(typeof e==`string`){let[n,r,...i]=e.split(` `).filter(e=>e.trim()!==``),a=`${W(n)}`;return r&&(a+=` ${r}`),i.length>0&&(a+=` ${_N(i.join(` `),t)}`),a.trim()}return e}var bN={text:`var(--mantine-font-family)`,mono:`var(--mantine-font-family-monospace)`,monospace:`var(--mantine-font-family-monospace)`,heading:`var(--mantine-font-family-headings)`,headings:`var(--mantine-font-family-headings)`};function xN(e){return typeof e==`string`&&e in bN?bN[e]:e}var SN=[`h1`,`h2`,`h3`,`h4`,`h5`,`h6`];function CN(e,t){return typeof e==`string`&&e in t.fontSizes?`var(--mantine-font-size-${e})`:typeof e==`string`&&SN.includes(e)?`var(--mantine-${e}-font-size)`:typeof e==`number`||typeof e==`string`?W(e):e}function wN(e){return e}var TN=[`h1`,`h2`,`h3`,`h4`,`h5`,`h6`];function EN(e,t){return typeof e==`string`&&e in t.lineHeights?`var(--mantine-line-height-${e})`:typeof e==`string`&&TN.includes(e)?`var(--mantine-${e}-line-height)`:e}function DN(e,t){return typeof e==`string`&&e in t.radius?`var(--mantine-radius-${e})`:typeof e==`number`||typeof e==`string`?W(e):e}function ON(e){return typeof e==`number`?W(e):e}function kN(e,t){if(typeof e==`number`)return W(e);if(typeof e==`string`){let n=e.replace(`-`,``);if(!(n in t.spacing))return W(e);let r=`--mantine-spacing-${n}`;return e.startsWith(`-`)?`calc(var(${r}) * -1)`:`var(${r})`}return e}var AN={color:_N,textColor:vN,fontSize:CN,spacing:kN,radius:DN,identity:wN,size:ON,lineHeight:EN,fontFamily:xN,border:yN};function jN(e){return e.replace(`(min-width: `,``).replace(`em)`,``)}function MN({media:e,...t}){let n=Object.keys(e).sort((e,t)=>Number(jN(e))-Number(jN(t))).map(t=>({query:t,styles:e[t]}));return{...t,media:n}}function NN(e){if(typeof e!=`object`||!e)return!1;let t=Object.keys(e);return t.length!==1||t[0]!==`base`}function PN(e){return typeof e==`object`&&e?`base`in e?e.base:void 0:e}function FN(e){return typeof e==`object`&&e?HA(e).filter(e=>e!==`base`):[]}function IN(e,t){return typeof e==`object`&&e&&t in e?e[t]:e}function LN({styleProps:e,data:t,theme:n}){return MN(HA(e).reduce((r,i)=>{if(i===`hiddenFrom`||i===`visibleFrom`||i===`sx`)return r;let a=t[i],o=Array.isArray(a.property)?a.property:[a.property],s=PN(e[i]);if(!NN(e[i]))return o.forEach(e=>{r.inlineStyles[e]=AN[a.type](s,n)}),r;r.hasResponsiveStyles=!0;let c=FN(e[i]);return o.forEach(t=>{s!=null&&(r.styles[t]=AN[a.type](s,n)),c.forEach(o=>{let s=`(min-width: ${n.breakpoints[o]})`;r.media[s]={...r.media[s],[t]:AN[a.type](IN(e[i],o),n)}})}),r},{hasResponsiveStyles:!1,styles:{},inlineStyles:{},media:{}}))}function RN(){return`__m__-${(0,G.useId)().replace(/[:«»]/g,``)}`}function zN(e,t){return Array.isArray(e)?[...e].reduce((e,n)=>({...e,...zN(n,t)}),{}):typeof e==`function`?e(t):e??{}}function BN(e){return e}var VN=BN;function HN(e){return e}function UN(e){let t=e;return t.extend=HN,t.withProps=e=>{let n=n=>(0,K.jsx)(t,{...e,...n});return n.extend=t.extend,n.displayName=`WithProps(${t.displayName})`,n},t}function WN(e){return UN(e)}function GN(e){let t=e;return t.withProps=e=>{let n=n=>(0,K.jsx)(t,{...e,...n});return n.extend=t.extend,n.displayName=`WithProps(${t.displayName})`,n},t.extend=HN,t}function KN(e){return`data-${(e.startsWith(`data-`)?e.slice(5):e).replace(/([a-z])([A-Z])/g,`$1-$2`).toLowerCase()}`}function qN(e){return Object.keys(e).reduce((t,n)=>{let r=e[n];return r===void 0||r===``||r===!1||r===null||(t[KN(n)]=e[n]),t},{})}function JN(e){return e?typeof e==`string`?{[KN(e)]:!0}:Array.isArray(e)?[...e].reduce((e,t)=>({...e,...JN(t)}),{}):qN(e):null}function YN(e,t){return Array.isArray(e)?[...e].reduce((e,n)=>({...e,...YN(n,t)}),{}):typeof e==`function`?e(t):e??{}}function XN({theme:e,style:t,vars:n,styleProps:r}){let i=YN(t,e),a=YN(n,e);return{...i,...a,...r}}function ZN({component:e,style:t,__vars:n,className:r,variant:i,mod:a,size:o,hiddenFrom:s,visibleFrom:c,lightHidden:l,darkHidden:u,renderRoot:d,__size:f,ref:p,...m}){let h=zM(),g=e||`div`,{styleProps:_,rest:v}=hN(m),y=TM()?.()?.(_.sx),b=RN(),x=LN({styleProps:_,theme:h,data:gN}),S=OM(),C=S&&x.hasResponsiveStyles?wee(x.styles,x.media):b,w={ref:p,style:XN({theme:h,style:t,vars:n,styleProps:x.inlineStyles}),className:Uj(r,y,{[C]:x.hasResponsiveStyles,"mantine-light-hidden":l,"mantine-dark-hidden":u,[`mantine-hidden-from-${s}`]:s,[`mantine-visible-from-${c}`]:c}),"data-variant":i,"data-size":QA(o)?void 0:o||void 0,size:f,...JN(a),...v};return(0,K.jsxs)(K.Fragment,{children:[x.hasResponsiveStyles&&(0,K.jsx)(See,{selector:`.${C}`,styles:x.styles,media:x.media,deduplicate:S}),typeof d==`function`?d(w):(0,K.jsx)(g,{...w})]})}ZN.displayName=`@mantine/core/Box`;var QN=VN(ZN),$N=(0,G.createContext)({dir:`ltr`,toggleDirection:()=>{},setDirection:()=>{}});function eP(){return(0,G.use)($N)}var[tP,nP]=nj(`ScrollArea.Root component was not found in tree`);function rP(e,t){let n=(0,G.useEffectEvent)(t);vj(()=>{let t=0;if(e){let r=new ResizeObserver(()=>{cancelAnimationFrame(t),t=window.requestAnimationFrame(n)});return r.observe(e),()=>{window.cancelAnimationFrame(t),r.unobserve(e)}}},[e])}function iP(e){let{style:t,...n}=e,r=nP(),[i,a]=(0,G.useState)(0),[o,s]=(0,G.useState)(0),c=!!(i&&o);return rP(r.scrollbarX,()=>{let e=r.scrollbarX?.offsetHeight||0;r.onCornerHeightChange(e),s(e)}),rP(r.scrollbarY,()=>{let e=r.scrollbarY?.offsetWidth||0;r.onCornerWidthChange(e),a(e)}),c?(0,K.jsx)(`div`,{...n,style:{...t,width:i,height:o}}):null}function aP(e){let t=nP(),n=!!(t.scrollbarX&&t.scrollbarY);return t.type!==`scroll`&&n?(0,K.jsx)(iP,{...e}):null}var oP={scrollHideDelay:1e3,type:`hover`};function sP(e){let{type:t,scrollHideDelay:n,scrollbars:r,getStyles:i,ref:a,...o}=YM(`ScrollAreaRoot`,oP,e),[s,c]=(0,G.useState)(null),[l,u]=(0,G.useState)(null),[d,f]=(0,G.useState)(null),[p,m]=(0,G.useState)(null),[h,g]=(0,G.useState)(null),[_,v]=(0,G.useState)(0),[y,b]=(0,G.useState)(0),[x,S]=(0,G.useState)(!1),[C,w]=(0,G.useState)(!1),T=Cj(a,c);return(0,K.jsx)(tP,{value:{type:t,scrollHideDelay:n,scrollArea:s,viewport:l,onViewportChange:u,content:d,onContentChange:f,scrollbarX:p,onScrollbarXChange:m,scrollbarXEnabled:x,onScrollbarXEnabledChange:S,scrollbarY:h,onScrollbarYChange:g,scrollbarYEnabled:C,onScrollbarYEnabledChange:w,onCornerWidthChange:v,onCornerHeightChange:b,getStyles:i},children:(0,K.jsx)(QN,{...o,ref:T,__vars:{"--sa-corner-width":r===`xy`?`${_}px`:`0px`,"--sa-corner-height":r===`xy`?`${y}px`:`0px`}})})}sP.displayName=`@mantine/core/ScrollAreaRoot`;function cP(e,t){let n=e/t;return Number.isNaN(n)?0:n}function lP(e){let t=cP(e.viewport,e.content),n=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,r=(e.scrollbar.size-n)*t;return Math.max(r,18)}function uP(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];let r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}function dP(e,[t,n]){return Math.min(n,Math.max(t,e))}function fP(e,t,n=`ltr`){let r=lP(t),i=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,a=t.scrollbar.size-i,o=t.content-t.viewport,s=a-r,c=dP(e,n===`ltr`?[0,o]:[o*-1,0]);return uP([0,o],[0,s])(c)}function pP(e,t,n,r=`ltr`){let i=lP(n),a=i/2,o=t||a,s=i-o,c=n.scrollbar.paddingStart+o,l=n.scrollbar.size-n.scrollbar.paddingEnd-s,u=n.content-n.viewport,d=r===`ltr`?[0,u]:[u*-1,0];return uP([c,l],d)(e)}function mP(e,t){return e>0&&e{e?.(r),(n===!1||!r.defaultPrevented)&&t?.(r)}}var[Tee,_P]=nj(`ScrollAreaScrollbar was not found in tree`);function vP(e){let{sizes:t,hasThumb:n,onThumbChange:r,onThumbPointerUp:i,onThumbPointerDown:a,onThumbPositionChange:o,onDragScroll:s,onWheelScroll:c,onResize:l,ref:u,...d}=e,f=nP(),[p,m]=(0,G.useState)(null),h=Cj(u,m),g=(0,G.useRef)(null),_=(0,G.useRef)(``),{viewport:v}=f,y=t.content-t.viewport,b=(0,G.useEffectEvent)(c),x=mj(o),S=hj(l,10),C=e=>{if(g.current){let t=e.clientX-g.current.left,n=e.clientY-g.current.top;s({x:t,y:n})}};return(0,G.useEffect)(()=>{let e=e=>{let t=e.target;p?.contains(t)&&b(e,y)};return document.addEventListener(`wheel`,e,{passive:!1}),()=>document.removeEventListener(`wheel`,e,{passive:!1})},[v,p,y]),(0,G.useEffect)(x,[t,x]),rP(p,S),rP(f.content,S),(0,K.jsx)(Tee,{value:{scrollbar:p,hasThumb:n,onThumbChange:mj(r),onThumbPointerUp:mj(i),onThumbPositionChange:x,onThumbPointerDown:mj(a)},children:(0,K.jsx)(`div`,{...d,ref:h,"data-mantine-scrollbar":!0,style:{position:`absolute`,...d.style},onPointerDown:gP(e.onPointerDown,e=>{e.preventDefault(),e.button===0&&(e.target.setPointerCapture(e.pointerId),g.current=p.getBoundingClientRect(),_.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect=`none`,C(e))}),onPointerMove:gP(e.onPointerMove,C),onPointerUp:gP(e.onPointerUp,e=>{let t=e.target;t.hasPointerCapture(e.pointerId)&&(e.preventDefault(),t.releasePointerCapture(e.pointerId))}),onLostPointerCapture:()=>{document.body.style.webkitUserSelect=_.current,g.current=null}})})}var yP=e=>{let{sizes:t,onSizesChange:n,style:r,ref:i,...a}=e,o=nP(),[s,c]=(0,G.useState)(),l=(0,G.useRef)(null),u=Cj(i,l,o.onScrollbarXChange);return(0,G.useEffect)(()=>{l.current&&c(getComputedStyle(l.current))},[l]),(0,K.jsx)(vP,{"data-orientation":`horizontal`,...a,ref:u,sizes:t,style:{...r,"--sa-thumb-width":`${lP(t)}px`},onThumbPointerDown:t=>e.onThumbPointerDown(t.x),onDragScroll:t=>e.onDragScroll(t.x),onWheelScroll:(t,n)=>{if(o.viewport){let r=o.viewport.scrollLeft+t.deltaX;e.onWheelScroll(r),mP(r,n)&&t.preventDefault()}},onResize:()=>{l.current&&o.viewport&&s&&n({content:o.viewport.scrollWidth,viewport:o.viewport.offsetWidth,scrollbar:{size:l.current.clientWidth,paddingStart:hP(s.paddingLeft),paddingEnd:hP(s.paddingRight)}})}})};yP.displayName=`@mantine/core/ScrollAreaScrollbarX`;function bP(e){let{sizes:t,onSizesChange:n,style:r,ref:i,...a}=e,o=nP(),[s,c]=(0,G.useState)(),l=(0,G.useRef)(null),u=Cj(i,l,o.onScrollbarYChange);return(0,G.useEffect)(()=>{l.current&&c(window.getComputedStyle(l.current))},[]),(0,K.jsx)(vP,{...a,"data-orientation":`vertical`,ref:u,sizes:t,style:{"--sa-thumb-height":`${lP(t)}px`,...r},onThumbPointerDown:t=>e.onThumbPointerDown(t.y),onDragScroll:t=>e.onDragScroll(t.y),onWheelScroll:(t,n)=>{if(o.viewport){let r=o.viewport.scrollTop+t.deltaY;e.onWheelScroll(r),mP(r,n)&&t.preventDefault()}},onResize:()=>{l.current&&o.viewport&&s&&n({content:o.viewport.scrollHeight,viewport:o.viewport.offsetHeight,scrollbar:{size:l.current.clientHeight,paddingStart:hP(s.paddingTop),paddingEnd:hP(s.paddingBottom)}})}})}bP.displayName=`@mantine/core/ScrollAreaScrollbarY`;function xP(e){let{orientation:t=`vertical`,...n}=e,{dir:r}=eP(),i=nP(),a=(0,G.useRef)(null),o=(0,G.useRef)(0),[s,c]=(0,G.useState)({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),l=cP(s.viewport,s.content),u={...n,sizes:s,onSizesChange:c,hasThumb:l>0&&l<1,onThumbChange:e=>{a.current=e},onThumbPointerUp:()=>{o.current=0},onThumbPointerDown:e=>{o.current=e}},d=(e,t)=>pP(e,o.current,s,t);return t===`horizontal`?(0,K.jsx)(yP,{...u,onThumbPositionChange:()=>{if(i.viewport&&a.current){let e=i.viewport.scrollLeft,t=fP(e,s,r);a.current.style.transform=`translate3d(${t}px, 0, 0)`}},onWheelScroll:e=>{i.viewport&&(i.viewport.scrollLeft=e)},onDragScroll:e=>{i.viewport&&(i.viewport.scrollLeft=d(e,r))}}):t===`vertical`?(0,K.jsx)(bP,{...u,onThumbPositionChange:()=>{if(i.viewport&&a.current){let e=i.viewport.scrollTop,t=fP(e,s);s.scrollbar.size===0?a.current.style.setProperty(`--thumb-opacity`,`0`):a.current.style.setProperty(`--thumb-opacity`,`1`),a.current.style.transform=`translate3d(0, ${t}px, 0)`}},onWheelScroll:e=>{i.viewport&&(i.viewport.scrollTop=e)},onDragScroll:e=>{i.viewport&&(i.viewport.scrollTop=d(e))}}):null}xP.displayName=`@mantine/core/ScrollAreaScrollbarVisible`;function SP(e){let t=nP(),{forceMount:n,...r}=e,[i,a]=(0,G.useState)(!1),o=e.orientation===`horizontal`,s=hj(()=>{if(t.viewport){let e=t.viewport.offsetWidth{let{scrollArea:e}=r,t=0;if(e){let n=()=>{window.clearTimeout(t),a(!0)},i=()=>{t=window.setTimeout(()=>a(!1),r.scrollHideDelay)};return e.addEventListener(`pointerenter`,n),e.addEventListener(`pointerleave`,i),()=>{window.clearTimeout(t),e.removeEventListener(`pointerenter`,n),e.removeEventListener(`pointerleave`,i)}}},[r.scrollArea,r.scrollHideDelay]),t||i?(0,K.jsx)(SP,{"data-state":i?`visible`:`hidden`,...n}):null}CP.displayName=`@mantine/core/ScrollAreaScrollbarHover`;function wP(e){let{forceMount:t,...n}=e,r=nP(),i=e.orientation===`horizontal`,[a,o]=(0,G.useState)(`hidden`),s=hj(()=>o(`idle`),100);return(0,G.useEffect)(()=>{if(a===`idle`){let e=window.setTimeout(()=>o(`hidden`),r.scrollHideDelay);return()=>window.clearTimeout(e)}},[a,r.scrollHideDelay]),(0,G.useEffect)(()=>{let{viewport:e}=r,t=i?`scrollLeft`:`scrollTop`;if(e){let n=e[t],r=()=>{let r=e[t];n!==r&&(o(`scrolling`),s()),n=r};return e.addEventListener(`scroll`,r),()=>e.removeEventListener(`scroll`,r)}},[r.viewport,i,s]),t||a!==`hidden`?(0,K.jsx)(xP,{"data-state":a===`hidden`?`hidden`:`visible`,...n,onPointerEnter:gP(e.onPointerEnter,()=>o(`interacting`)),onPointerLeave:gP(e.onPointerLeave,()=>o(`idle`))}):null}function TP(e){let{forceMount:t,...n}=e,r=nP(),{onScrollbarXEnabledChange:i,onScrollbarYEnabledChange:a}=r,o=e.orientation===`horizontal`;return(0,G.useEffect)(()=>(o?i(!0):a(!0),()=>{o?i(!1):a(!1)}),[o,i,a]),r.type===`hover`?(0,K.jsx)(CP,{...n,forceMount:t}):r.type===`scroll`?(0,K.jsx)(wP,{...n,forceMount:t}):r.type===`auto`?(0,K.jsx)(SP,{...n,forceMount:t}):r.type===`always`?(0,K.jsx)(xP,{...n}):null}TP.displayName=`@mantine/core/ScrollAreaScrollbar`;function EP(e,t=()=>{}){let n={left:e.scrollLeft,top:e.scrollTop},r=0;return(function i(){let a={left:e.scrollLeft,top:e.scrollTop},o=n.left!==a.left,s=n.top!==a.top;(o||s)&&t(),n=a,r=window.requestAnimationFrame(i)})(),()=>window.cancelAnimationFrame(r)}function DP(e){let{style:t,ref:n,...r}=e,i=nP(),a=_P(),{onThumbPositionChange:o}=a,s=Cj(n,a.onThumbChange),c=(0,G.useRef)(void 0),l=hj(()=>{c.current&&=(c.current(),void 0)},100);return(0,G.useEffect)(()=>{let{viewport:e}=i;if(e){let t=()=>{if(l(),!c.current){let t=EP(e,o);c.current=t,o()}};return o(),e.addEventListener(`scroll`,t),()=>e.removeEventListener(`scroll`,t)}},[i.viewport,l,o]),(0,K.jsx)(`div`,{"data-state":a.hasThumb?`visible`:`hidden`,...r,ref:s,style:{width:`var(--sa-thumb-width)`,height:`var(--sa-thumb-height)`,...t},onPointerDownCapture:gP(e.onPointerDownCapture,e=>{let t=e.target.getBoundingClientRect(),n=e.clientX-t.left,r=e.clientY-t.top;a.onThumbPointerDown({x:n,y:r})}),onPointerUp:gP(e.onPointerUp,a.onThumbPointerUp)})}DP.displayName=`@mantine/core/ScrollAreaThumb`;function OP(e){let{forceMount:t,...n}=e,r=_P();return t||r.hasThumb?(0,K.jsx)(DP,{...n}):null}OP.displayName=`@mantine/core/ScrollAreaThumb`;function kP({children:e,style:t,ref:n,onWheel:r,...i}){let a=nP(),o=Cj(n,a.onViewportChange),s=e=>{if(r?.(e),a.scrollbarXEnabled&&a.viewport&&e.shiftKey){let{scrollTop:t,scrollHeight:n,clientHeight:r,scrollWidth:i,clientWidth:o}=a.viewport,s=t<1,c=t>=n-r-1;i>o&&(s||c)&&e.stopPropagation()}};return(0,K.jsx)(QN,{...i,ref:o,onWheel:s,"data-scrollarea-viewport":!0,style:{overflowX:a.scrollbarXEnabled?`scroll`:`hidden`,overflowY:a.scrollbarYEnabled?`scroll`:`hidden`,...t},children:(0,K.jsx)(`div`,{...a.getStyles(`content`),ref:a.onContentChange,children:e})})}kP.displayName=`@mantine/core/ScrollAreaViewport`;var AP={root:`m_d57069b5`,content:`m_b1336c6`,viewport:`m_c0783ff9`,viewportInner:`m_f8f631dd`,scrollbar:`m_c44ba933`,thumb:`m_d8b5e363`,corner:`m_21657268`};function jP(){return typeof window<`u`}function MP(e){return FP(e)?(e.nodeName||``).toLowerCase():`#document`}function NP(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function PP(e){return((FP(e)?e.ownerDocument:e.document)||window.document)?.documentElement}function FP(e){return jP()?e instanceof Node||e instanceof NP(e).Node:!1}function IP(e){return jP()?e instanceof Element||e instanceof NP(e).Element:!1}function LP(e){return jP()?e instanceof HTMLElement||e instanceof NP(e).HTMLElement:!1}function RP(e){return!jP()||typeof ShadowRoot>`u`?!1:e instanceof ShadowRoot||e instanceof NP(e).ShadowRoot}function zP(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=XP(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&i!==`inline`&&i!==`contents`}function BP(e){return/^(table|td|th)$/.test(MP(e))}function VP(e){try{if(e.matches(`:popover-open`))return!0}catch{}try{return e.matches(`:modal`)}catch{return!1}}var HP=/transform|translate|scale|rotate|perspective|filter/,UP=/paint|layout|strict|content/,WP=e=>!!e&&e!==`none`,GP;function KP(e){let t=IP(e)?XP(e):e;return WP(t.transform)||WP(t.translate)||WP(t.scale)||WP(t.rotate)||WP(t.perspective)||!JP()&&(WP(t.backdropFilter)||WP(t.filter))||HP.test(t.willChange||``)||UP.test(t.contain||``)}function qP(e){let t=QP(e);for(;LP(t)&&!YP(t);){if(KP(t))return t;if(VP(t))return null;t=QP(t)}return null}function JP(){return GP??=typeof CSS<`u`&&CSS.supports&&CSS.supports(`-webkit-backdrop-filter`,`none`),GP}function YP(e){return/^(html|body|#document)$/.test(MP(e))}function XP(e){return NP(e).getComputedStyle(e)}function ZP(e){return IP(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function QP(e){if(MP(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||RP(e)&&e.host||PP(e);return RP(t)?t.host:t}function $P(e){let t=QP(e);return YP(t)?(e.ownerDocument||e).body:LP(t)&&zP(t)?t:$P(t)}function eF(e,t,n){t===void 0&&(t=[]),n===void 0&&(n=!0);let r=$P(e),i=r===e.ownerDocument?.body,a=NP(r);if(i){let e=tF(a);return t.concat(a,a.visualViewport||[],zP(r)?r:[],e&&n?eF(e):[])}return t.concat(r,eF(r,[],n))}function tF(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}var nF=Math.min,rF=Math.max,iF=Math.round,aF=Math.floor,oF=e=>({x:e,y:e}),sF={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function cF(e,t,n){return rF(e,nF(t,n))}function lF(e,t){return typeof e==`function`?e(t):e}function uF(e){return e.split(`-`)[0]}function dF(e){return e.split(`-`)[1]}function fF(e){return e===`x`?`y`:`x`}function pF(e){return e===`y`?`height`:`width`}function mF(e){let t=e[0];return t===`t`||t===`b`?`y`:`x`}function hF(e){return fF(mF(e))}function gF(e,t,n){n===void 0&&(n=!1);let r=dF(e),i=hF(e),a=pF(i),o=i===`x`?r===(n?`end`:`start`)?`right`:`left`:r===`start`?`bottom`:`top`;return t.reference[a]>t.floating[a]&&(o=TF(o)),[o,TF(o)]}function _F(e){let t=TF(e);return[vF(e),t,vF(t)]}function vF(e){return e.includes(`start`)?e.replace(`start`,`end`):e.replace(`end`,`start`)}var yF=[`left`,`right`],bF=[`right`,`left`],xF=[`top`,`bottom`],SF=[`bottom`,`top`];function CF(e,t,n){switch(e){case`top`:case`bottom`:return n?t?bF:yF:t?yF:bF;case`left`:case`right`:return t?xF:SF;default:return[]}}function wF(e,t,n,r){let i=dF(e),a=CF(uF(e),n===`start`,r);return i&&(a=a.map(e=>e+`-`+i),t&&(a=a.concat(a.map(vF)))),a}function TF(e){let t=uF(e);return sF[t]+e.slice(t.length)}function EF(e){return{top:e.top??0,right:e.right??0,bottom:e.bottom??0,left:e.left??0}}function DF(e){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:EF(e)}function OF(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function kF(){let e=navigator.userAgentData;return e!=null&&e.platform?e.platform:navigator.platform}function AF(){let e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(e=>{let{brand:t,version:n}=e;return t+`/`+n}).join(` `):navigator.userAgent}function jF(){return/apple/i.test(navigator.vendor)}function MF(){return kF().toLowerCase().startsWith(`mac`)&&!navigator.maxTouchPoints}function NF(){return AF().includes(`jsdom/`)}var PF=`data-floating-ui-focusable`,FF=`input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])`;function IF(e){let t=e.activeElement;for(;((n=t)==null||(n=n.shadowRoot)==null?void 0:n.activeElement)!=null;){var n;t=t.shadowRoot.activeElement}return t}function LF(e,t){if(!e||!t)return!1;let n=t.getRootNode==null?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&RP(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function RF(e){return`composedPath`in e?e.composedPath()[0]:e.target}function zF(e,t){if(t==null)return!1;if(`composedPath`in e)return e.composedPath().includes(t);let n=e;return n.target!=null&&t.contains(n.target)}function BF(e){return e.matches(`html,body`)}function VF(e){return e?.ownerDocument||document}function HF(e){return LP(e)&&e.matches(FF)}function UF(e){if(!e||NF())return!0;try{return e.matches(`:focus-visible`)}catch{return!0}}function WF(e){return e?e.hasAttribute(PF)?e:e.querySelector(`[data-floating-ui-focusable]`)||e:null}function GF(e,t,n){return n===void 0&&(n=!0),e.filter(e=>e.parentId===t&&(!n||e.context?.open)).flatMap(t=>[t,...GF(e,t.id,n)])}function KF(e){return`nativeEvent`in e}function qF(e,t){let n=[`mouse`,`pen`];return t||n.push(``,void 0),n.includes(e)}var JF=typeof document<`u`?G.useLayoutEffect:function(){},YF={...G};function XF(e){let t=G.useRef(e);return JF(()=>{t.current=e}),t}var ZF=YF.useInsertionEffect||(e=>e());function QF(e){let t=G.useRef(()=>{});return ZF(()=>{t.current=e}),G.useCallback(function(){var e=[...arguments];return t.current==null?void 0:t.current(...e)},[])}function $F(e,t,n){let{reference:r,floating:i}=e,a=mF(t),o=hF(t),s=pF(o),c=uF(t),l=a===`y`,u=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,f=r[s]/2-i[s]/2,p;switch(c){case`top`:p={x:u,y:r.y-i.height};break;case`bottom`:p={x:u,y:r.y+r.height};break;case`right`:p={x:r.x+r.width,y:d};break;case`left`:p={x:r.x-i.width,y:d};break;default:p={x:r.x,y:r.y}}let m=dF(t);return m&&(p[o]+=f*(m===`end`?1:-1)*(n&&l?-1:1)),p}async function eI(e,t){t===void 0&&(t={});let{x:n,y:r,platform:i,rects:a,elements:o,strategy:s}=e,{boundary:c=`clippingAncestors`,rootBoundary:l=`viewport`,elementContext:u=`floating`,altBoundary:d=!1,padding:f=0}=lF(t,e),p=DF(f),m=o[d?u===`floating`?`reference`:`floating`:u],h=OF(await i.getClippingRect({element:await(i.isElement==null?void 0:i.isElement(m))??!0?m:m.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(o.floating)),boundary:c,rootBoundary:l,strategy:s})),g=u===`floating`?{x:n,y:r,width:a.floating.width,height:a.floating.height}:a.reference,_=await(i.getOffsetParent==null?void 0:i.getOffsetParent(o.floating)),v=await(i.isElement==null?void 0:i.isElement(_))&&await(i.getScale==null?void 0:i.getScale(_))||{x:1,y:1},y=OF(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:g,offsetParent:_,strategy:s}):g);return{top:(h.top-y.top+p.top)/v.y,bottom:(y.bottom-h.bottom+p.bottom)/v.y,left:(h.left-y.left+p.left)/v.x,right:(y.right-h.right+p.right)/v.x}}var tI=50,nI=async(e,t,n)=>{let{placement:r=`bottom`,strategy:i=`absolute`,middleware:a=[],platform:o}=n,s=o.detectOverflow?o:{...o,detectOverflow:eI},c=await(o.isRTL==null?void 0:o.isRTL(t)),l=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=$F(l,r,c),f=r,p=0,m={};for(let n=0;n({name:`arrow`,options:e,async fn(t){let{x:n,y:r,placement:i,rects:a,platform:o,elements:s,middlewareData:c}=t,{element:l,padding:u=0}=lF(e,t)||{};if(l==null)return{};let d=DF(u),f={x:n,y:r},p=hF(i),m=pF(p),h=await o.getDimensions(l),g=p===`y`,_=g?`top`:`left`,v=g?`bottom`:`right`,y=g?`clientHeight`:`clientWidth`,b=a.reference[m]+a.reference[p]-f[p]-a.floating[m],x=f[p]-a.reference[p],S=await(o.getOffsetParent==null?void 0:o.getOffsetParent(l)),C=S?S[y]:0;(!C||!await(o.isElement==null?void 0:o.isElement(S)))&&(C=s.floating[y]||a.floating[m]);let w=b/2-x/2,T=C/2-h[m]/2-1,E=nF(d[_],T),D=nF(d[v],T),O=C-h[m]-D,k=C/2-h[m]/2+w,A=cF(E,k,O),j=!c.arrow&&dF(i)!=null&&k!==A&&a.reference[m]/2-(ke<=0)){let e=(i.flip?.index||0)+1,t=S[e];if(t&&(u!==`alignment`||_===mF(t)||T.every(e=>mF(e.placement)!==_||e.overflows[0]>0)))return{data:{index:e,overflows:T},reset:{placement:t}};let n=T.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0]?.placement;if(!n)switch(f){case`bestFit`:{let e=T.filter(e=>{if(x){let t=mF(e.placement);return t===_||t===`y`}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]?.[0];e&&(n=e);break}case`initialPlacement`:n=o}if(r!==n)return{reset:{placement:n}}}return{}}}};function aI(e){let t=nF(...e.map(e=>e.left)),n=nF(...e.map(e=>e.top)),r=rF(...e.map(e=>e.right)),i=rF(...e.map(e=>e.bottom));return{x:t,y:n,width:r-t,height:i-n}}function oI(e){let t=e.slice().sort((e,t)=>e.y-t.y),n=[],r=null;for(let e=0;er.height/2?n.push([i]):n[n.length-1].push(i),r=i}return n.map(e=>OF(aI(e)))}var sI=function(e){return e===void 0&&(e={}),{name:`inline`,options:e,async fn(t){let{placement:n,elements:r,rects:i,platform:a,strategy:o}=t,{padding:s=2,x:c,y:l}=lF(e,t),u=Array.from(await(a.getClientRects==null?void 0:a.getClientRects(r.reference))||[]);if(!u.length)return{};let d=oI(u),f=OF(aI(u)),p=DF(s);function m(){if(d.length===2&&(d[0].left>d[1].right||d[1].left>d[0].right)&&c!=null&&l!=null)return d.find(e=>c>e.left-p.left&&ce.top-p.top&&l=2){if(mF(n)===`y`){let e=d[0],t=d[d.length-1],r=uF(n)===`top`,i=e.top,a=t.bottom,o=r?e.left:t.left;return OF({x:o,y:i,width:(r?e.right:t.right)-o,height:a-i})}let e=uF(n)===`left`,t=rF(...d.map(e=>e.right)),r=nF(...d.map(e=>e.left)),i=d.filter(n=>e?n.left===r:n.right===t),a=i[0].top,o=i[i.length-1].bottom;return OF({x:r,y:a,width:t-r,height:o-a})}return f}let h=await a.getElementRects({reference:{getBoundingClientRect:m},floating:r.floating,strategy:o});return i.reference.x!==h.reference.x||i.reference.y!==h.reference.y||i.reference.width!==h.reference.width||i.reference.height!==h.reference.height?{reset:{rects:h}}:{}}}},cI=new Set([`left`,`top`]);async function lI(e,t){let{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=uF(n),s=dF(n),c=mF(n)===`y`,l=cI.has(o)?-1:1,u=a&&c?-1:1,d=lF(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:m}=typeof d==`number`?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof m==`number`&&(p=s===`end`?m*-1:m),c?{x:p*u,y:f*l}:{x:f*l,y:p*u}}var uI=function(e){return e===void 0&&(e=0),{name:`offset`,options:e,async fn(t){var n;let{x:r,y:i,placement:a,middlewareData:o}=t,s=await lI(t,e);return a===o.offset?.placement&&(n=o.arrow)!=null&&n.alignmentOffset?{}:{x:r+s.x,y:i+s.y,data:{...s,placement:a}}}}},dI=function(e){return e===void 0&&(e={}),{name:`shift`,options:e,async fn(t){let{x:n,y:r,placement:i,platform:a}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:c={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=lF(e,t),u={x:n,y:r},d=await a.detectOverflow(t,l),f=mF(i),p=fF(f),m=u[p],h=u[f],g=(e,t)=>cF(t+d[e===`y`?`top`:`left`],t,t-d[e===`y`?`bottom`:`right`]);o&&(m=g(p,m)),s&&(h=g(f,h));let _=c.fn({...t,[p]:m,[f]:h});return{..._,data:{x:_.x-n,y:_.y-r,enabled:{[p]:o,[f]:s}}}}}};function fI(e){let t=XP(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=LP(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=iF(n)!==a||iF(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function pI(e){return IP(e)?e:e.contextElement}function mI(e){let t=pI(e);if(!LP(t))return oF(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:a}=fI(t),o=(a?iF(n.width):n.width)/r,s=(a?iF(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}var hI=oF(0);function gI(e){let t=NP(e);return!JP()||!t.visualViewport?hI:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function _I(e,t,n){return t===void 0&&(t=!1),!!n&&t&&n===NP(e)}function vI(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=pI(e),o=oF(1);t&&(r?IP(r)&&(o=mI(r)):o=mI(e));let s=_I(a,n,r)?gI(a):oF(0),c=(i.left+s.x)/o.x,l=(i.top+s.y)/o.y,u=i.width/o.x,d=i.height/o.y;if(a&&r){let e=NP(a),t=IP(r)?NP(r):r,n=e,i=tF(n);for(;i&&t!==n;){let e=mI(i),t=i.getBoundingClientRect(),r=XP(i),a=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,l*=e.y,u*=e.x,d*=e.y,c+=a,l+=o,n=NP(i),i=tF(n)}}return OF({width:u,height:d,x:c,y:l})}function yI(e,t){let n=ZP(e).scrollLeft;return t?t.left+n:vI(PP(e)).left+n}function bI(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-yI(e,n),y:n.top+t.scrollTop}}function xI(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a=i===`fixed`,o=PP(r),s=t?VP(t.floating):!1;if(r===o||s&&a)return n;let c={scrollLeft:0,scrollTop:0},l=oF(1),u=oF(0),d=LP(r);if((d||!a)&&((MP(r)!==`body`||zP(o))&&(c=ZP(r)),d)){let e=vI(r);l=mI(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}let f=o&&!d&&!a?bI(o,c):oF(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x+f.x,y:n.y*l.y-c.scrollTop*l.y+u.y+f.y}}function SI(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function CI(e){let t=ZP(e),n=e.ownerDocument.body,r=rF(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),i=rF(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight),a=-t.scrollLeft+yI(e),o=-t.scrollTop;return XP(n).direction===`rtl`&&(a+=rF(e.clientWidth,n.clientWidth)-r),{width:r,height:i,x:a,y:o}}var wI=25;function TI(e,t,n){n===void 0&&(n=`viewport`);let r=n===`layoutViewport`,i=NP(e),a=PP(e),o=i.visualViewport,s=a.clientWidth,c=a.clientHeight,l=0,u=0;if(o){let e=!JP()||t===`fixed`;r?e||(l=-o.offsetLeft,u=-o.offsetTop):(s=o.width,c=o.height,e&&(l=o.offsetLeft,u=o.offsetTop))}if(yI(a)<=0){let e=a.ownerDocument,t=e.body,n=getComputedStyle(t),r=e.compatMode===`CSS1Compat`&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,i=Math.abs(a.clientWidth-t.clientWidth-r),o=getComputedStyle(a).scrollbarGutter===`stable both-edges`?i/2:i;o<=wI&&(s-=o)}return{width:s,height:c,x:l,y:u}}function EI(e,t){let n=vI(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=mI(e);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}function DI(e,t,n){let r;if(t===`viewport`||t===`layoutViewport`)r=TI(e,n,t);else if(t===`document`)r=CI(PP(e));else if(IP(t))r=EI(t,n);else{let n=gI(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return OF(r)}function OI(e,t){let n=t.get(e);if(n)return n;let r=eF(e,[],!1).filter(e=>IP(e)&&MP(e)!==`body`),i=null,a=XP(e).position===`fixed`,o=a?QP(e):e;for(;IP(o)&&!YP(o);){let e=XP(o),t=KP(o),n=i?i.position:a?`fixed`:``;!t&&(n===`fixed`||n===`absolute`&&e.position===`static`)?r=r.filter(e=>e!==o):i=e,o=QP(o)}return t.set(e,r),r}function kI(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[...n===`clippingAncestors`?VP(t)?[]:OI(t,this._c):[].concat(n),r],o=DI(t,a[0],i),s=o.top,c=o.right,l=o.bottom,u=o.left;for(let e=1;e{s(!1,1e-7)},1e3)}y=!1}try{r=new IntersectionObserver(b,{...v,root:a.ownerDocument})}catch{r=new IntersectionObserver(b,v)}r.observe(e)}let c=NP(e),l=()=>s(n);return c.addEventListener(`resize`,l),s(!0),()=>{c.removeEventListener(`resize`,l),o()}}function BI(e,t,n,r){r===void 0&&(r={});let{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver==`function`,layoutShift:s=typeof IntersectionObserver==`function`,animationFrame:c=!1}=r,l=pI(e),u=i||a?[...l?eF(l):[],...t?eF(t):[]]:[];u.forEach(e=>{i&&e.addEventListener(`scroll`,n),a&&e.addEventListener(`resize`,n)});let d=l&&s?zI(l,n,a):null,f=-1,p=null;o&&(p=new ResizeObserver(e=>{let[r]=e;r&&r.target===l&&p&&t&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var e;(e=p)==null||e.observe(t)})),n()}),l&&!c&&p.observe(l),t&&p.observe(t));let m,h=c?vI(e):null;c&&g();function g(){let t=vI(e);h&&!RI(h,t)&&n(),h=t,m=requestAnimationFrame(g)}return n(),()=>{var e;u.forEach(e=>{i&&e.removeEventListener(`scroll`,n),a&&e.removeEventListener(`resize`,n)}),d?.(),(e=p)==null||e.disconnect(),p=null,c&&cancelAnimationFrame(m)}}var VI=uI,HI=dI,UI=iI,WI=rI,GI=sI,KI=(e,t,n)=>{let r=new Map,i=n??{},a={...LI,...i.platform,_c:r};return nI(e,t,{...i,platform:a})},qI=u(Ij(),1),JI=typeof document<`u`?G.useLayoutEffect:function(){};function YI(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e==`function`&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e==`object`){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!YI(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){let n=i[r];if(!(n===`_owner`&&e.$$typeof)&&!YI(e[n],t[n]))return!1}return!0}return e!==e&&t!==t}function XI(e){return typeof window>`u`?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function ZI(e,t){let n=XI(e);return Math.round(t*n)/n}function QI(e){let t=G.useRef(e);return JI(()=>{t.current=e}),t}function $I(e){e===void 0&&(e={});let{placement:t=`bottom`,strategy:n=`absolute`,middleware:r=[],platform:i,elements:{reference:a,floating:o}={},transform:s=!0,whileElementsMounted:c,open:l}=e,[u,d]=G.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=G.useState(r);YI(f,r)||p(r);let[m,h]=G.useState(null),[g,_]=G.useState(null),v=G.useCallback(e=>{e!==S.current&&(S.current=e,h(e))},[]),y=G.useCallback(e=>{e!==C.current&&(C.current=e,_(e))},[]),b=a||m,x=o||g,S=G.useRef(null),C=G.useRef(null),w=G.useRef(u),T=c!=null,E=QI(c),D=QI(i),O=QI(l),k=G.useCallback(()=>{if(!S.current||!C.current)return;let e={placement:t,strategy:n,middleware:f};D.current&&(e.platform=D.current),KI(S.current,C.current,e).then(e=>{let t={...e,isPositioned:O.current!==!1};A.current&&!YI(w.current,t)&&(w.current=t,qI.flushSync(()=>{d(t)}))})},[f,t,n,D,O]);JI(()=>{l===!1&&w.current.isPositioned&&(w.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[l]);let A=G.useRef(!1);JI(()=>(A.current=!0,()=>{A.current=!1}),[]),JI(()=>{if(b&&(S.current=b),x&&(C.current=x),b&&x){if(E.current)return E.current(b,x,k);k()}},[b,x,k,E,T]);let j=G.useMemo(()=>({reference:S,floating:C,setReference:v,setFloating:y}),[v,y]),ee=G.useMemo(()=>({reference:b,floating:x}),[b,x]),M=G.useMemo(()=>{let e={position:n,left:0,top:0};if(!ee.floating)return e;let t=ZI(ee.floating,u.x),r=ZI(ee.floating,u.y);return s?{...e,transform:`translate(`+t+`px, `+r+`px)`,...XI(ee.floating)>=1.5&&{willChange:`transform`}}:{position:n,left:t,top:r}},[n,s,ee.floating,u.x,u.y]);return G.useMemo(()=>({...u,update:k,refs:j,elements:ee,floatingStyles:M}),[u,k,j,ee,M])}var eL=e=>{function t(e){return{}.hasOwnProperty.call(e,`current`)}return{name:`arrow`,options:e,fn(n){let{element:r,padding:i}=typeof e==`function`?e(n):e;return r&&t(r)?r.current==null?{}:WI({element:r.current,padding:i}).fn(n):r?WI({element:r,padding:i}).fn(n):{}}}},tL=(e,t)=>{let n=VI(e);return{name:n.name,fn:n.fn,options:[e,t]}},nL=(e,t)=>{let n=HI(e);return{name:n.name,fn:n.fn,options:[e,t]}},rL=(e,t)=>{let n=UI(e);return{name:n.name,fn:n.fn,options:[e,t]}},iL=(e,t)=>{let n=GI(e);return{name:n.name,fn:n.fn,options:[e,t]}},aL=(e,t)=>{let n=eL(e);return{name:n.name,fn:n.fn,options:[e,t]}};function oL(e){let t=G.useRef(void 0),n=G.useCallback(t=>{let n=e.map(e=>{if(e!=null){if(typeof e==`function`){let n=e,r=n(t);return typeof r==`function`?r:()=>{n(null)}}return e.current=t,()=>{e.current=null}}});return()=>{n.forEach(e=>e?.())}},e);return G.useMemo(()=>e.every(e=>e==null)?null:e=>{t.current&&=(t.current(),void 0),e!=null&&(t.current=n(e))},e)}var sL=`data-floating-ui-focusable`,cL=`active`,lL=`selected`,uL=`ArrowLeft`,dL=`ArrowRight`,fL=`ArrowUp`,pL=`ArrowDown`,mL=[uL,dL],hL=[fL,pL];[...mL,...hL];var gL={...G},_L=!1,vL=0,yL=()=>`floating-ui-`+Math.random().toString(36).slice(2,6)+vL++;function bL(){let[e,t]=G.useState(()=>_L?yL():void 0);return JF(()=>{e??t(yL())},[]),G.useEffect(()=>{_L=!0},[]),e}var xL=gL.useId||bL;function SL(){let e=new Map;return{emit(t,n){var r;(r=e.get(t))==null||r.forEach(e=>e(n))},on(t,n){e.has(t)||e.set(t,new Set),e.get(t).add(n)},off(t,n){var r;(r=e.get(t))==null||r.delete(n)}}}var CL=G.createContext(null),wL=G.createContext(null),TL=()=>G.useContext(CL)?.id||null,EL=()=>G.useContext(wL);function DL(e){return`data-floating-ui-`+e}function OL(e){e.current!==-1&&(clearTimeout(e.current),e.current=-1)}var kL=DL(`safe-polygon`);function AL(e,t,n){if(n&&!qF(n))return 0;if(typeof e==`number`)return e;if(typeof e==`function`){let n=e();return typeof n==`number`?n:n?.[t]}return e?.[t]}function jL(e){return typeof e==`function`?e():e}function ML(e,t){t===void 0&&(t={});let{open:n,onOpenChange:r,dataRef:i,events:a,elements:o}=e,{enabled:s=!0,delay:c=0,handleClose:l=null,mouseOnly:u=!1,restMs:d=0,move:f=!0}=t,p=EL(),m=TL(),h=XF(l),g=XF(c),_=XF(n),v=XF(d),y=G.useRef(),b=G.useRef(-1),x=G.useRef(),S=G.useRef(-1),C=G.useRef(!0),w=G.useRef(!1),T=G.useRef(()=>{}),E=G.useRef(!1),D=QF(()=>{let e=i.current.openEvent?.type;return e?.includes(`mouse`)&&e!==`mousedown`});G.useEffect(()=>{if(!s)return;function e(e){let{open:t}=e;t||(OL(b),OL(S),C.current=!0,E.current=!1)}return a.on(`openchange`,e),()=>{a.off(`openchange`,e)}},[s,a]),G.useEffect(()=>{if(!s||!h.current||!n)return;function e(e){D()&&r(!1,e,`hover`)}let t=VF(o.floating).documentElement;return t.addEventListener(`mouseleave`,e),()=>{t.removeEventListener(`mouseleave`,e)}},[o.floating,n,r,s,h,D]);let O=G.useCallback(function(e,t,n){t===void 0&&(t=!0),n===void 0&&(n=`hover`);let i=AL(g.current,`close`,y.current);i&&!x.current?(OL(b),b.current=window.setTimeout(()=>r(!1,e,n),i)):t&&(OL(b),r(!1,e,n))},[g,r]),k=QF(()=>{T.current(),x.current=void 0}),A=QF(()=>{if(w.current){let e=VF(o.floating).body;e.style.pointerEvents=``,e.removeAttribute(kL),w.current=!1}}),j=QF(()=>i.current.openEvent?[`click`,`mousedown`].includes(i.current.openEvent.type):!1);G.useEffect(()=>{if(!s)return;function e(e){if(OL(b),C.current=!1,u&&!qF(y.current)||jL(v.current)>0&&!AL(g.current,`open`))return;let t=AL(g.current,`open`,y.current);t?b.current=window.setTimeout(()=>{_.current||r(!0,e,`hover`)},t):n||r(!0,e,`hover`)}function t(e){if(j()){A();return}T.current();let t=VF(o.floating);if(OL(S),E.current=!1,h.current&&i.current.floatingContext){n||OL(b),x.current=h.current({...i.current.floatingContext,tree:p,x:e.clientX,y:e.clientY,onClose(){A(),k(),j()||O(e,!0,`safe-polygon`)}});let r=x.current;t.addEventListener(`mousemove`,r),T.current=()=>{t.removeEventListener(`mousemove`,r)};return}(y.current!==`touch`||!LF(o.floating,e.relatedTarget))&&O(e)}function a(e){j()||i.current.floatingContext&&(h.current==null||h.current({...i.current.floatingContext,tree:p,x:e.clientX,y:e.clientY,onClose(){A(),k(),j()||O(e)}})(e))}function c(){OL(b)}function l(e){j()||O(e,!1)}if(IP(o.domReference)){let r=o.domReference,i=o.floating;return n&&r.addEventListener(`mouseleave`,a),f&&r.addEventListener(`mousemove`,e,{once:!0}),r.addEventListener(`mouseenter`,e),r.addEventListener(`mouseleave`,t),i&&(i.addEventListener(`mouseleave`,a),i.addEventListener(`mouseenter`,c),i.addEventListener(`mouseleave`,l)),()=>{n&&r.removeEventListener(`mouseleave`,a),f&&r.removeEventListener(`mousemove`,e),r.removeEventListener(`mouseenter`,e),r.removeEventListener(`mouseleave`,t),i&&(i.removeEventListener(`mouseleave`,a),i.removeEventListener(`mouseenter`,c),i.removeEventListener(`mouseleave`,l))}}},[o,s,e,u,f,O,k,A,r,n,_,p,g,h,i,j,v]),JF(()=>{var e;if(s&&n&&(e=h.current)!=null&&(e=e.__options)!=null&&e.blockPointerEvents&&D()){w.current=!0;let e=o.floating;if(IP(o.domReference)&&e){var t;let n=VF(o.floating).body;n.setAttribute(kL,``);let r=o.domReference,i=p==null||(t=p.nodesRef.current.find(e=>e.id===m))==null||(t=t.context)==null?void 0:t.elements.floating;return i&&(i.style.pointerEvents=``),n.style.pointerEvents=`none`,r.style.pointerEvents=`auto`,e.style.pointerEvents=`auto`,()=>{n.style.pointerEvents=``,r.style.pointerEvents=``,e.style.pointerEvents=``}}}},[s,n,m,o,p,h,D]),JF(()=>{n||(y.current=void 0,E.current=!1,k(),A())},[n,k,A]),G.useEffect(()=>()=>{k(),OL(b),OL(S),A()},[s,o.domReference,k,A]);let ee=G.useMemo(()=>{function e(e){y.current=e.pointerType}return{onPointerDown:e,onPointerEnter:e,onMouseMove(e){let{nativeEvent:t}=e;function i(){!C.current&&!_.current&&r(!0,t,`hover`)}u&&!qF(y.current)||n||jL(v.current)===0||E.current&&e.movementX**2+e.movementY**2<2||(OL(S),y.current===`touch`?i():(E.current=!0,S.current=window.setTimeout(i,jL(v.current))))}}},[u,r,n,_,v]);return G.useMemo(()=>s?{reference:ee}:{},[s,ee])}var NL=()=>{},PL=G.createContext({delay:0,initialDelay:0,timeoutMs:0,currentId:null,setCurrentId:NL,setState:NL,isInstantPhase:!1}),FL=()=>G.useContext(PL);function IL(e){let{children:t,delay:n,timeoutMs:r=0}=e,[i,a]=G.useReducer((e,t)=>({...e,...t}),{delay:n,timeoutMs:r,initialDelay:n,currentId:null,isInstantPhase:!1}),o=G.useRef(null),s=G.useCallback(e=>{a({currentId:e})},[]);return JF(()=>{i.currentId?o.current===null?o.current=i.currentId:i.isInstantPhase||a({isInstantPhase:!0}):(i.isInstantPhase&&a({isInstantPhase:!1}),o.current=null)},[i.currentId,i.isInstantPhase]),(0,K.jsx)(PL.Provider,{value:G.useMemo(()=>({...i,setState:a,setCurrentId:s}),[i,s]),children:t})}function LL(e,t){t===void 0&&(t={});let{open:n,onOpenChange:r,floatingId:i}=e,{id:a,enabled:o=!0}=t,s=a??i,c=FL(),{currentId:l,setCurrentId:u,initialDelay:d,setState:f,timeoutMs:p}=c;return JF(()=>{o&&l&&(f({delay:{open:1,close:AL(d,`close`)}}),l!==s&&r(!1))},[o,s,r,f,l,d]),JF(()=>{function e(){r(!1),f({delay:d,currentId:null})}if(o&&l&&!n&&l===s){if(p){let t=window.setTimeout(e,p);return()=>{clearTimeout(t)}}e()}},[o,n,f,l,s,r,d,p]),JF(()=>{o&&(u===NL||!n||u(s))},[o,n,u,s]),c}function RL(e,t){if(!e||!t)return!1;let n=t.getRootNode==null?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&RP(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function zL(e){return`composedPath`in e?e.composedPath()[0]:e.target}var Eee={pointerdown:`onPointerDown`,mousedown:`onMouseDown`,click:`onClick`},Dee={pointerdown:`onPointerDownCapture`,mousedown:`onMouseDownCapture`,click:`onClickCapture`},BL=e=>({escapeKey:typeof e==`boolean`?e:e?.escapeKey??!1,outsidePress:typeof e==`boolean`?e:e?.outsidePress??!0});function Oee(e,t){t===void 0&&(t={});let{open:n,onOpenChange:r,elements:i,dataRef:a}=e,{enabled:o=!0,escapeKey:s=!0,outsidePress:c=!0,outsidePressEvent:l=`pointerdown`,referencePress:u=!1,referencePressEvent:d=`pointerdown`,ancestorScroll:f=!1,bubbles:p,capture:m}=t,h=EL(),g=QF(typeof c==`function`?c:()=>!1),_=typeof c==`function`?g:c,v=G.useRef(!1),{escapeKey:y,outsidePress:b}=BL(p),{escapeKey:x,outsidePress:S}=BL(m),C=G.useRef(!1),w=QF(e=>{if(!n||!o||!s||e.key!==`Escape`||C.current)return;let t=a.current.floatingContext?.nodeId,i=h?GF(h.nodesRef.current,t):[];if(!y&&(e.stopPropagation(),i.length>0)){let e=!0;if(i.forEach(t=>{var n;if((n=t.context)!=null&&n.open&&!t.context.dataRef.current.__escapeKeyBubbles){e=!1;return}}),!e)return}r(!1,KF(e)?e.nativeEvent:e,`escape-key`)}),T=QF(e=>{var t;let n=()=>{var t;w(e),(t=RF(e))==null||t.removeEventListener(`keydown`,n)};(t=RF(e))==null||t.addEventListener(`keydown`,n)}),E=QF(e=>{let t=a.current.insideReactTree;a.current.insideReactTree=!1;let n=v.current;if(v.current=!1,l===`click`&&n||t||typeof _==`function`&&!_(e))return;let o=RF(e),s=`[`+DL(`inert`)+`]`,c=VF(i.floating).querySelectorAll(s),u=IP(o)?o:null;for(;u&&!YP(u);){let e=QP(u);if(YP(e)||!IP(e))break;u=e}if(c.length&&IP(o)&&!BF(o)&&!LF(o,i.floating)&&Array.from(c).every(e=>!LF(u,e)))return;if(LP(o)&&k){let t=YP(o),n=XP(o),r=/auto|scroll/,i=t||r.test(n.overflowX),a=t||r.test(n.overflowY),s=i&&o.clientWidth>0&&o.scrollWidth>o.clientWidth,c=a&&o.clientHeight>0&&o.scrollHeight>o.clientHeight,l=n.direction===`rtl`,u=c&&(l?e.offsetX<=o.offsetWidth-o.clientWidth:e.offsetX>o.clientWidth),d=s&&e.offsetY>o.clientHeight;if(u||d)return}let d=a.current.floatingContext?.nodeId,f=h&&GF(h.nodesRef.current,d).some(t=>zF(e,t.context?.elements.floating));if(zF(e,i.floating)||zF(e,i.domReference)||f)return;let p=h?GF(h.nodesRef.current,d):[];if(p.length>0){let e=!0;if(p.forEach(t=>{var n;if((n=t.context)!=null&&n.open&&!t.context.dataRef.current.__outsidePressBubbles){e=!1;return}}),!e)return}r(!1,e,`outside-press`)}),D=QF(e=>{var t;let n=()=>{var t;E(e),(t=RF(e))==null||t.removeEventListener(l,n)};(t=RF(e))==null||t.addEventListener(l,n)});G.useEffect(()=>{if(!n||!o)return;a.current.__escapeKeyBubbles=y,a.current.__outsidePressBubbles=b;let e=-1;function t(e){r(!1,e,`ancestor-scroll`)}function c(){window.clearTimeout(e),C.current=!0}function u(){e=window.setTimeout(()=>{C.current=!1},JP()?5:0)}let d=VF(i.floating);s&&(d.addEventListener(`keydown`,x?T:w,x),d.addEventListener(`compositionstart`,c),d.addEventListener(`compositionend`,u)),_&&d.addEventListener(l,S?D:E,S);let p=[];return f&&(IP(i.domReference)&&(p=eF(i.domReference)),IP(i.floating)&&(p=p.concat(eF(i.floating))),!IP(i.reference)&&i.reference&&i.reference.contextElement&&(p=p.concat(eF(i.reference.contextElement)))),p=p.filter(e=>e!==d.defaultView?.visualViewport),p.forEach(e=>{e.addEventListener(`scroll`,t)}),()=>{s&&(d.removeEventListener(`keydown`,x?T:w,x),d.removeEventListener(`compositionstart`,c),d.removeEventListener(`compositionend`,u)),_&&d.removeEventListener(l,S?D:E,S),p.forEach(e=>{e.removeEventListener(`scroll`,t)}),window.clearTimeout(e)}},[a,i,s,_,l,n,r,f,o,y,b,w,x,T,E,S,D]),G.useEffect(()=>{a.current.insideReactTree=!1},[a,_,l]);let O=G.useMemo(()=>({onKeyDown:w,...u&&{[Eee[d]]:e=>{r(!1,e.nativeEvent,`reference-press`)},...d!==`click`&&{onClick(e){r(!1,e.nativeEvent,`reference-press`)}}}}),[w,r,u,d]),k=G.useMemo(()=>{function e(e){e.button===0&&(v.current=!0)}return{onKeyDown:w,onMouseDown:e,onMouseUp:e,[Dee[l]]:()=>{a.current.insideReactTree=!0}}},[w,l,a]);return G.useMemo(()=>o?{reference:O,floating:k}:{},[o,O,k])}function kee(e){let{open:t=!1,onOpenChange:n,elements:r}=e,i=xL(),a=G.useRef({}),[o]=G.useState(()=>SL()),s=TL()!=null,[c,l]=G.useState(r.reference),u=QF((e,t,r)=>{a.current.openEvent=e?t:void 0,o.emit(`openchange`,{open:e,event:t,reason:r,nested:s}),n?.(e,t,r)}),d=G.useMemo(()=>({setPositionReference:l}),[]),f=G.useMemo(()=>({reference:c||r.reference||null,floating:r.floating||null,domReference:r.reference}),[c,r.reference,r.floating]);return G.useMemo(()=>({dataRef:a,open:t,onOpenChange:u,elements:f,events:o,floatingId:i,refs:d}),[t,u,f,o,i,d])}function VL(e){let{elements:t,...n}=e===void 0?{}:e,{nodeId:r}=n,i=kee({...n,elements:{reference:t?.reference??null,floating:t?.floating??null}}),a=n.rootContext||i,o=a.elements,[s,c]=G.useState(null),[l,u]=G.useState(null),d=o?.domReference||s,f=G.useRef(null),p=EL();JF(()=>{d&&(f.current=d)},[d]);let m=$I({...n,elements:{...o,...l&&{reference:l}}}),h=G.useCallback(e=>{let t=IP(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),getClientRects:()=>e.getClientRects(),contextElement:e}:e;u(t),m.refs.setReference(t)},[m.refs]),g=G.useCallback(e=>{(IP(e)||e===null)&&(f.current=e,c(e)),(IP(m.refs.reference.current)||m.refs.reference.current===null||e!==null&&!IP(e))&&m.refs.setReference(e)},[m.refs]),_=G.useMemo(()=>({...m.refs,setReference:g,setPositionReference:h,domReference:f}),[m.refs,g,h]),v=G.useMemo(()=>({...m.elements,domReference:d}),[m.elements,d]),y=G.useMemo(()=>({...m,...a,refs:_,elements:v,nodeId:r}),[m,_,v,r,a]);return JF(()=>{a.dataRef.current.floatingContext=y;let e=p?.nodesRef.current.find(e=>e.id===r);e&&(e.context=y)}),G.useMemo(()=>({...m,context:y,refs:_,elements:v}),[m,_,v,y])}function HL(){return MF()&&jF()}function Aee(e,t){t===void 0&&(t={});let{open:n,onOpenChange:r,events:i,dataRef:a,elements:o}=e,{enabled:s=!0,visibleOnly:c=!0}=t,l=G.useRef(!1),u=G.useRef(-1),d=G.useRef(!0);G.useEffect(()=>{if(!s)return;let e=NP(o.domReference);function t(){!n&&LP(o.domReference)&&o.domReference===IF(VF(o.domReference))&&(l.current=!0)}function r(){d.current=!0}function i(){d.current=!1}return e.addEventListener(`blur`,t),HL()&&(e.addEventListener(`keydown`,r,!0),e.addEventListener(`pointerdown`,i,!0)),()=>{e.removeEventListener(`blur`,t),HL()&&(e.removeEventListener(`keydown`,r,!0),e.removeEventListener(`pointerdown`,i,!0))}},[o.domReference,n,s]),G.useEffect(()=>{if(!s)return;function e(e){let{reason:t}=e;(t===`reference-press`||t===`escape-key`)&&(l.current=!0)}return i.on(`openchange`,e),()=>{i.off(`openchange`,e)}},[i,s]),G.useEffect(()=>()=>{OL(u)},[]);let f=G.useMemo(()=>({onMouseLeave(){l.current=!1},onFocus(e){if(l.current)return;let t=RF(e.nativeEvent);if(c&&IP(t)){if(HL()&&!e.relatedTarget){if(!d.current&&!HF(t))return}else if(!UF(t))return}r(!0,e.nativeEvent,`focus`)},onBlur(e){l.current=!1;let t=e.relatedTarget,n=e.nativeEvent,i=IP(t)&&t.hasAttribute(DL(`focus-guard`))&&t.getAttribute(`data-type`)===`outside`;u.current=window.setTimeout(()=>{let e=IF(o.domReference?o.domReference.ownerDocument:document);!t&&e===o.domReference||LF(a.current.floatingContext?.refs.floating.current,e)||LF(o.domReference,e)||i||r(!1,n,`focus`)})}}),[a,o.domReference,r,c]);return G.useMemo(()=>s?{reference:f}:{},[s,f])}function UL(e,t,n){let r=new Map,i=n===`item`,a=e;if(i&&e){let{[cL]:t,[lL]:n,...r}=e;a=r}return{...n===`floating`&&{tabIndex:-1,[sL]:``},...a,...t.map(t=>{let r=t?t[n]:null;return typeof r==`function`?e?r(e):null:r}).concat(e).reduce((e,t)=>(t&&Object.entries(t).forEach(t=>{let[n,a]=t;if(!(i&&[cL,lL].includes(n)))if(n.indexOf(`on`)===0){if(r.has(n)||r.set(n,[]),typeof a==`function`){var o;(o=r.get(n))==null||o.push(a),e[n]=function(){var e=[...arguments];return r.get(n)?.map(t=>t(...e)).find(e=>e!==void 0)}}}else e[n]=a}),e),{})}}function jee(e){e===void 0&&(e=[]);let t=e.map(e=>e?.reference),n=e.map(e=>e?.floating),r=e.map(e=>e?.item),i=G.useCallback(t=>UL(t,e,`reference`),t),a=G.useCallback(t=>UL(t,e,`floating`),n),o=G.useCallback(t=>UL(t,e,`item`),r);return G.useMemo(()=>({getReferenceProps:i,getFloatingProps:a,getItemProps:o}),[i,a,o])}var Mee=new Map([[`select`,`listbox`],[`combobox`,`listbox`],[`label`,!1]]);function Nee(e,t){t===void 0&&(t={});let{open:n,elements:r,floatingId:i}=e,{enabled:a=!0,role:o=`dialog`}=t,s=xL(),c=r.domReference?.id||s,l=G.useMemo(()=>WF(r.floating)?.id||i,[r.floating,i]),u=Mee.get(o)??o,d=TL()!=null,f=G.useMemo(()=>u===`tooltip`||o===`label`?{[`aria-`+(o===`label`?`labelledby`:`describedby`)]:n?l:void 0}:{"aria-expanded":n?`true`:`false`,"aria-haspopup":u===`alertdialog`?`dialog`:u,"aria-controls":n?l:void 0,...u===`listbox`&&{role:`combobox`},...u===`menu`&&{id:c},...u===`menu`&&d&&{role:`menuitem`},...o===`select`&&{"aria-autocomplete":`none`},...o===`combobox`&&{"aria-autocomplete":`list`}},[u,l,d,n,c,o]),p=G.useMemo(()=>{let e={id:l,...u&&{role:u}};return u===`tooltip`||o===`label`?e:{...e,...u===`menu`&&{"aria-labelledby":c}}},[u,l,c,o]),m=G.useCallback(e=>{let{active:t,selected:n}=e,r={role:`option`,...t&&{id:l+`-fui-option`}};switch(o){case`select`:case`combobox`:return{...r,"aria-selected":n}}return{}},[l,o]);return G.useMemo(()=>a?{reference:f,floating:p,item:m}:{},[a,f,p,m])}function WL(e,t,n){return n===void 0&&(n=!0),e.filter(e=>e.parentId===t&&(!n||e.context?.open)).flatMap(t=>[t,...WL(e,t.id,n)])}function GL(e,t){let[n,r]=e,i=!1,a=t.length;for(let e=0,o=a-1;e=r!=l>=r&&n<=(c-a)*(r-s)/(l-s)+a&&(i=!i)}return i}function Pee(e,t){return e[0]>=t.x&&e[0]<=t.x+t.width&&e[1]>=t.y&&e[1]<=t.y+t.height}function Fee(e){e===void 0&&(e={});let{buffer:t=.5,blockPointerEvents:n=!1,requireIntent:r=!0}=e,i={current:-1},a=!1,o=null,s=null,c=typeof performance<`u`?performance.now():0;function l(e,t){let n=performance.now(),r=n-c;if(o===null||s===null||r===0)return o=e,s=t,c=n,null;let i=e-o,a=t-s,l=Math.sqrt(i*i+a*a)/r;return o=e,s=t,c=n,l}let u=e=>{let{x:n,y:o,placement:s,elements:c,onClose:u,nodeId:d,tree:f}=e;return function(e){function p(){OL(i),u()}if(OL(i),!c.domReference||!c.floating||s==null||n==null||o==null)return;let{clientX:m,clientY:h}=e,g=[m,h],_=zL(e),v=e.type===`mouseleave`,y=RL(c.floating,_),b=RL(c.domReference,_),x=c.domReference.getBoundingClientRect(),S=c.floating.getBoundingClientRect(),C=s.split(`-`)[0],w=n>S.right-S.width/2,T=o>S.bottom-S.height/2,E=Pee(g,x),D=S.width>x.width,O=S.height>x.height,k=(D?x:S).left,A=(D?x:S).right,j=(O?x:S).top,ee=(O?x:S).bottom;if(y&&(a=!0,!v))return;if(b&&(a=!1),b&&!v){a=!0;return}if(v&&IP(e.relatedTarget)&&RL(c.floating,e.relatedTarget)||f&&WL(f.nodesRef.current,d).length)return;if(C===`top`&&o>=x.bottom-1||C===`bottom`&&o<=x.top+1||C===`left`&&n>=x.right-1||C===`right`&&n<=x.left+1)return p();let M=[];switch(C){case`top`:M=[[k,x.top+1],[k,S.bottom-1],[A,S.bottom-1],[A,x.top+1]];break;case`bottom`:M=[[k,S.top+1],[k,x.bottom-1],[A,x.bottom-1],[A,S.top+1]];break;case`left`:M=[[S.right-1,ee],[S.right-1,j],[x.left+1,j],[x.left+1,ee]];break;case`right`:M=[[x.right-1,ee],[x.right-1,j],[S.left+1,j],[S.left+1,ee]]}function N(e){let[n,r]=e;switch(C){case`top`:return[[D?n+t/2:w?n+t*4:n-t*4,r+t+1],[D?n-t/2:w?n+t*4:n-t*4,r+t+1],[S.left,w||D?S.bottom-t:S.top],[S.right,w?D?S.bottom-t:S.top:S.bottom-t]];case`bottom`:return[[D?n+t/2:w?n+t*4:n-t*4,r-t],[D?n-t/2:w?n+t*4:n-t*4,r-t],[S.left,w||D?S.top+t:S.bottom],[S.right,w?D?S.top+t:S.bottom:S.top+t]];case`left`:{let e=[n+t+1,O?r+t/2:T?r+t*4:r-t*4],i=[n+t+1,O?r-t/2:T?r+t*4:r-t*4];return[[T||O?S.right-t:S.left,S.top],[T?O?S.right-t:S.left:S.right-t,S.bottom],e,i]}case`right`:return[[n-t,O?r+t/2:T?r+t*4:r-t*4],[n-t,O?r-t/2:T?r+t*4:r-t*4],[T||O?S.left+t:S.right,S.top],[T?O?S.left+t:S.right:S.left+t,S.bottom]]}}if(!GL([m,h],M)){if(a&&!E)return p();if(!v&&r){let t=l(e.clientX,e.clientY);if(t!==null&&t<.1)return p()}GL([m,h],N([n,o]))?!a&&r&&(i.current=window.setTimeout(p,40)):p()}}};return u.__options={blockPointerEvents:n},u}var KL={scrollHideDelay:1e3,type:`hover`,scrollbars:`xy`},qL=Vj((e,{scrollbarSize:t,overscrollBehavior:n,scrollbars:r})=>{let i=n;return n&&r&&(r===`x`?i=`${n} auto`:r===`y`&&(i=`auto ${n}`)),{root:{"--scrollarea-scrollbar-size":W(t),"--scrollarea-over-scroll-behavior":i}}}),JL=UN(e=>{let t=YM(`ScrollArea`,KL,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,scrollbarSize:s,vars:c,type:l,scrollHideDelay:u,viewportProps:d,viewportRef:f,onScrollPositionChange:p,children:m,offsetScrollbars:h,scrollbars:g,onBottomReached:_,onTopReached:v,onLeftReached:y,onRightReached:b,overscrollBehavior:x,startScrollPosition:S,verticalScrollbarPosition:C,attributes:w,...T}=t,[E,D]=(0,G.useState)(!1),[O,k]=(0,G.useState)(!1),[A,j]=(0,G.useState)(!1),ee=(0,G.useRef)(!0),M=(0,G.useRef)(!1),N=(0,G.useRef)(!0),te=(0,G.useRef)(!1),P=dN({name:`ScrollArea`,props:t,classes:AP,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:w,vars:c,varsResolver:qL}),F=(0,G.useRef)(null),[I,ne]=(0,G.useState)(null),L=oL([f,F,(0,G.useCallback)(e=>{ne(t=>t===e?t:e)},[])]);return rP(h===`present`?I:null,()=>{let e=F.current;e&&(k(e.scrollHeight>e.clientHeight),j(e.scrollWidth>e.clientWidth))}),vj(()=>{S&&F.current&&F.current.scrollTo({left:S.x??0,top:S.y??0})},[]),(0,K.jsxs)(sP,{getStyles:P,type:l===`never`?`always`:l,scrollHideDelay:u,scrollbars:g,...P(`root`),...T,children:[(0,K.jsx)(kP,{...d,...P(`viewport`,{style:d?.style}),ref:L,"data-offset-scrollbars":h===!0?`xy`:h||void 0,"data-scrollbars":g||void 0,"data-vertical-scrollbar-position":C||void 0,"data-horizontal-hidden":h===`present`&&!A?`true`:void 0,"data-vertical-hidden":h===`present`&&!O?`true`:void 0,onScroll:e=>{d?.onScroll?.(e),p?.({x:e.currentTarget.scrollLeft,y:e.currentTarget.scrollTop});let{scrollTop:t,scrollHeight:n,clientHeight:r,scrollLeft:i,scrollWidth:a,clientWidth:o}=e.currentTarget,s=t-(n-r)>=-.8,c=t===0;s&&!M.current&&_?.(),c&&!ee.current&&v?.(),M.current=s,ee.current=c;let l=i-(a-o)>=-.8,u=i===0;l&&!te.current&&b?.(),u&&!N.current&&y?.(),te.current=l,N.current=u},children:m}),(g===`xy`||g===`x`)&&(0,K.jsx)(TP,{...P(`scrollbar`),orientation:`horizontal`,"data-vertical-scrollbar-position":C||void 0,"data-hidden":l===`never`||h===`present`&&!A||void 0,forceMount:!0,onMouseEnter:()=>D(!0),onMouseLeave:()=>D(!1),children:(0,K.jsx)(OP,{...P(`thumb`)})}),(g===`xy`||g===`y`)&&(0,K.jsx)(TP,{...P(`scrollbar`),orientation:`vertical`,"data-vertical-scrollbar-position":C||void 0,"data-hidden":l===`never`||h===`present`&&!O||void 0,forceMount:!0,onMouseEnter:()=>D(!0),onMouseLeave:()=>D(!1),children:(0,K.jsx)(OP,{...P(`thumb`)})}),(0,K.jsx)(aP,{...P(`corner`),"data-vertical-scrollbar-position":C||void 0,"data-hovered":E||void 0,"data-hidden":l===`never`||void 0})]})});JL.displayName=`@mantine/core/ScrollArea`;var YL=UN(e=>{let{children:t,classNames:n,styles:r,scrollbarSize:i,scrollHideDelay:a,type:o,dir:s,offsetScrollbars:c,overscrollBehavior:l,viewportRef:u,onScrollPositionChange:d,unstyled:f,variant:p,viewportProps:m,scrollbars:h,style:g,vars:_,onBottomReached:v,onTopReached:y,startScrollPosition:b,verticalScrollbarPosition:x,onOverflowChange:S,...C}=YM(`ScrollAreaAutosize`,KL,e),w=(0,G.useRef)(null),[T,E]=(0,G.useState)(null),D=oL([u,w,(0,G.useCallback)(e=>{E(t=>t===e?t:e)},[])]),O=(0,G.useRef)(!1),k=(0,G.useRef)(!1),A=(0,G.useEffectEvent)(()=>{let e=w.current;if(!e||!S)return;let t=e.scrollHeight>e.clientHeight;t!==O.current&&(k.current?S(t):(k.current=!0,t&&S(!0)),O.current=t)});return rP(S?T:null,A),(0,K.jsx)(QN,{...C,variant:p,style:[{display:`flex`,overflow:`hidden`},g],children:(0,K.jsx)(QN,{style:{display:`flex`,flexDirection:`column`,flex:1,overflow:`hidden`,...h===`y`&&{minWidth:0},...h===`x`&&{minHeight:0},...h===`xy`&&{minWidth:0,minHeight:0},...h===!1&&{minWidth:0,minHeight:0}},children:(0,K.jsx)(JL,{classNames:n,styles:r,scrollHideDelay:a,scrollbarSize:i,type:o,dir:s,offsetScrollbars:c,overscrollBehavior:l,viewportRef:D,onScrollPositionChange:d,unstyled:f,variant:p,viewportProps:m,vars:_,scrollbars:h,onBottomReached:v,onTopReached:y,startScrollPosition:b,verticalScrollbarPosition:x,"data-autosize":`true`,children:t})})})});JL.classes=AP,JL.varsResolver=qL,YL.displayName=`@mantine/core/ScrollAreaAutosize`,YL.classes=AP,JL.Autosize=YL;var XL={root:`m_87cf2631`},ZL={__staticSelector:`UnstyledButton`},QL=GN(e=>{let t=YM(`UnstyledButton`,ZL,e),{className:n,component:r=`button`,__staticSelector:i,unstyled:a,classNames:o,styles:s,style:c,attributes:l,...u}=t;return(0,K.jsx)(QN,{...dN({name:i,props:t,classes:XL,className:n,style:c,classNames:o,styles:s,unstyled:a,attributes:l})(`root`,{focusable:!0}),component:r,type:r===`button`?`button`:void 0,...u})});QL.classes=XL,QL.displayName=`@mantine/core/UnstyledButton`;var $L={root:`m_1b7284a3`},eR=Vj((e,{radius:t,shadow:n})=>({root:{"--paper-radius":t===void 0?void 0:sj(t),"--paper-shadow":uj(n)}})),tR=GN(e=>{let t=YM(`Paper`,null,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,withBorder:s,vars:c,radius:l,shadow:u,variant:d,mod:f,attributes:p,...m}=t,h=dN({name:`Paper`,props:t,classes:$L,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:p,vars:c,varsResolver:eR});return(0,K.jsx)(QN,{mod:[{"data-with-border":s},f],...h(`root`),variant:d,...m})});tR.classes=$L,tR.varsResolver=eR,tR.displayName=`@mantine/core/Paper`;function nR(e,t,n,r){return e===`center`||r===`center`?{top:t}:e===`end`?{bottom:n}:e===`start`?{top:n}:{}}function rR(e,t,n,r,i){return e===`center`||r===`center`?{left:t}:e===`end`?{[i===`ltr`?`right`:`left`]:n}:e===`start`?{[i===`ltr`?`left`:`right`]:n}:{}}var iR={bottom:`borderTopLeftRadius`,left:`borderTopRightRadius`,right:`borderBottomLeftRadius`,top:`borderBottomRightRadius`};function aR({position:e,arrowSize:t,dir:n}){let[r,i]=e.split(`-`);if(!i)return;let a={width:t,height:t,position:`absolute`};if(r===`bottom`){let e=i===`start`,r=e?n===`ltr`?`left`:`right`:n===`ltr`?`right`:`left`;return{...a,top:-t,[r]:0,clipPath:e===(n===`rtl`)?`polygon(100% 0%, 0% 100%, 100% 100%)`:`polygon(0% 0%, 0% 100%, 100% 100%)`}}if(r===`top`){let e=i===`start`,r=e?n===`ltr`?`left`:`right`:n===`ltr`?`right`:`left`;return{...a,bottom:-t,[r]:0,clipPath:e===(n===`rtl`)?`polygon(0% 0%, 100% 0%, 100% 100%)`:`polygon(0% 0%, 100% 0%, 0% 100%)`}}if(r===`left`)return{...a,right:-t,[i===`start`?`top`:`bottom`]:0,clipPath:i===`start`?`polygon(0% 0%, 100% 0%, 0% 100%)`:`polygon(0% 0%, 0% 100%, 100% 100%)`};if(r===`right`)return{...a,left:-t,[i===`start`?`top`:`bottom`]:0,clipPath:i===`start`?`polygon(0% 0%, 100% 0%, 100% 100%)`:`polygon(100% 0%, 0% 100%, 100% 100%)`}}function oR({position:e,arrowSize:t,arrowOffset:n,arrowRadius:r,arrowPosition:i,arrowX:a,arrowY:o,dir:s}){if(i===`merge`){let n=aR({position:e,arrowSize:t,dir:s});if(n)return n}let[c,l=`center`]=e.split(`-`),u={width:t,height:t,transform:`rotate(45deg)`,position:`absolute`,[iR[c]]:r},d=-t/2;return c===`left`?{...u,...nR(l,o,n,i),right:d,borderLeftColor:`transparent`,borderBottomColor:`transparent`,clipPath:`polygon(100% 0, 0 0, 100% 100%)`}:c===`right`?{...u,...nR(l,o,n,i),left:d,borderRightColor:`transparent`,borderTopColor:`transparent`,clipPath:`polygon(0 100%, 0 0, 100% 100%)`}:c===`top`?{...u,...rR(l,a,n,i,s),bottom:d,borderTopColor:`transparent`,borderLeftColor:`transparent`,clipPath:`polygon(0 100%, 100% 100%, 100% 0)`}:c===`bottom`?{...u,...rR(l,a,n,i,s),top:d,borderBottomColor:`transparent`,borderRightColor:`transparent`,clipPath:`polygon(0 100%, 0 0, 100% 0)`}:{}}function sR({position:e,dir:t}){let[n,r]=e.split(`-`);if(!r)return;let i=r===`start`&&t===`ltr`||r===`end`&&t===`rtl`;if(n===`bottom`)return i?{borderTopLeftRadius:0}:{borderTopRightRadius:0};if(n===`top`)return i?{borderBottomLeftRadius:0}:{borderBottomRightRadius:0};if(n===`left`)return r===`start`?{borderTopRightRadius:0}:{borderBottomRightRadius:0};if(n===`right`)return r===`start`?{borderTopLeftRadius:0}:{borderBottomLeftRadius:0}}function cR({position:e,arrowSize:t,arrowOffset:n,arrowRadius:r,arrowPosition:i,visible:a,arrowX:o,arrowY:s,style:c,...l}){let{dir:u}=eP();return a?(0,K.jsx)(`div`,{role:`presentation`,...l,style:{...c,...oR({position:e,arrowSize:t,arrowOffset:n,arrowRadius:r,arrowPosition:i,dir:u,arrowX:o,arrowY:s})}}):null}cR.displayName=`@mantine/core/FloatingArrow`;function lR(e,t){if(e===`rtl`&&(t.includes(`right`)||t.includes(`left`))){let[e,n]=t.split(`-`),r=e===`right`?`left`:`right`;return n===void 0?r:`${r}-${n}`}return t}function uR(e){let t=document.createElement(`div`);return t.setAttribute(`data-portal`,`true`),typeof e.className==`string`&&t.classList.add(...e.className.split(` `).filter(Boolean)),typeof e.style==`object`&&Object.assign(t.style,e.style),typeof e.id==`string`&&t.setAttribute(`id`,e.id),t}function dR({target:e,reuseTargetNode:t,...n}){if(e)return typeof e==`string`?document.querySelector(e)||uR(n):e;if(t){let e=document.querySelector(`[data-mantine-shared-portal-node]`);if(e)return e;let t=uR(n);return t.setAttribute(`data-mantine-shared-portal-node`,`true`),document.body.appendChild(t),t}return uR(n)}var fR={reuseTargetNode:!0},pR=UN(e=>{let{children:t,target:n,reuseTargetNode:r,ref:i,...a}=YM(`Portal`,fR,e),[o,s]=(0,G.useState)(!1),c=(0,G.useRef)(null);return vj(()=>(s(!0),c.current=dR({target:n,reuseTargetNode:r,...a}),xj(i,c.current),!n&&!r&&c.current&&document.body.appendChild(c.current),()=>{!n&&!r&&c.current&&document.body.removeChild(c.current)}),[n]),!o||!c.current?null:(0,qI.createPortal)((0,K.jsx)(K.Fragment,{children:t}),c.current)});pR.displayName=`@mantine/core/Portal`;var mR=UN(({withinPortal:e=!0,children:t,...n})=>DM()===`test`||!e?(0,K.jsx)(K.Fragment,{children:t}):(0,K.jsx)(pR,{...n,children:t}));mR.displayName=`@mantine/core/OptionalPortal`;var hR=e=>({in:{opacity:1,transform:`scale(1)`},out:{opacity:0,transform:`scale(.9) translateY(${e===`bottom`?10:-10}px)`},transitionProperty:`transform, opacity`}),gR={fade:{in:{opacity:1},out:{opacity:0},transitionProperty:`opacity`},"fade-up":{in:{opacity:1,transform:`translateY(0)`},out:{opacity:0,transform:`translateY(30px)`},transitionProperty:`opacity, transform`},"fade-down":{in:{opacity:1,transform:`translateY(0)`},out:{opacity:0,transform:`translateY(-30px)`},transitionProperty:`opacity, transform`},"fade-left":{in:{opacity:1,transform:`translateX(0)`},out:{opacity:0,transform:`translateX(30px)`},transitionProperty:`opacity, transform`},"fade-right":{in:{opacity:1,transform:`translateX(0)`},out:{opacity:0,transform:`translateX(-30px)`},transitionProperty:`opacity, transform`},scale:{in:{opacity:1,transform:`scale(1)`},out:{opacity:0,transform:`scale(0)`},common:{transformOrigin:`top`},transitionProperty:`transform, opacity`},"scale-y":{in:{opacity:1,transform:`scaleY(1)`},out:{opacity:0,transform:`scaleY(0)`},common:{transformOrigin:`top`},transitionProperty:`transform, opacity`},"scale-x":{in:{opacity:1,transform:`scaleX(1)`},out:{opacity:0,transform:`scaleX(0)`},common:{transformOrigin:`left`},transitionProperty:`transform, opacity`},"skew-up":{in:{opacity:1,transform:`translateY(0) skew(0deg, 0deg)`},out:{opacity:0,transform:`translateY(-20px) skew(-10deg, -5deg)`},common:{transformOrigin:`top`},transitionProperty:`transform, opacity`},"skew-down":{in:{opacity:1,transform:`translateY(0) skew(0deg, 0deg)`},out:{opacity:0,transform:`translateY(20px) skew(-10deg, -5deg)`},common:{transformOrigin:`bottom`},transitionProperty:`transform, opacity`},"rotate-left":{in:{opacity:1,transform:`translateY(0) rotate(0deg)`},out:{opacity:0,transform:`translateY(20px) rotate(-5deg)`},common:{transformOrigin:`bottom`},transitionProperty:`transform, opacity`},"rotate-right":{in:{opacity:1,transform:`translateY(0) rotate(0deg)`},out:{opacity:0,transform:`translateY(20px) rotate(5deg)`},common:{transformOrigin:`top`},transitionProperty:`transform, opacity`},"slide-down":{in:{opacity:1,transform:`translateY(0)`},out:{opacity:0,transform:`translateY(-100%)`},common:{transformOrigin:`top`},transitionProperty:`transform, opacity`},"slide-up":{in:{opacity:1,transform:`translateY(0)`},out:{opacity:0,transform:`translateY(100%)`},common:{transformOrigin:`bottom`},transitionProperty:`transform, opacity`},"slide-left":{in:{opacity:1,transform:`translateX(0)`},out:{opacity:0,transform:`translateX(100%)`},common:{transformOrigin:`left`},transitionProperty:`transform, opacity`},"slide-right":{in:{opacity:1,transform:`translateX(0)`},out:{opacity:0,transform:`translateX(-100%)`},common:{transformOrigin:`right`},transitionProperty:`transform, opacity`},pop:{...hR(`bottom`),common:{transformOrigin:`center center`}},"pop-bottom-left":{...hR(`bottom`),common:{transformOrigin:`bottom left`}},"pop-bottom-right":{...hR(`bottom`),common:{transformOrigin:`bottom right`}},"pop-top-left":{...hR(`top`),common:{transformOrigin:`top left`}},"pop-top-right":{...hR(`top`),common:{transformOrigin:`top right`}}},_R={entering:`in`,entered:`in`,exiting:`out`,exited:`out`,"pre-exiting":`out`,"pre-entering":`out`};function vR({transition:e,state:t,duration:n,timingFunction:r}){let i={WebkitBackfaceVisibility:`hidden`,transitionDuration:`${n}ms`,transitionTimingFunction:r};return typeof e==`string`?e in gR?{transitionProperty:gR[e].transitionProperty,...i,...gR[e].common,...gR[e][_R[t]]}:{}:{transitionProperty:e.transitionProperty,...i,...e.common,...e[_R[t]]}}function yR({duration:e,exitDuration:t,timingFunction:n,mounted:r,onEnter:i,onExit:a,onEntered:o,onExited:s,enterDelay:c,exitDelay:l}){let u=zM(),d=Oj(),f=u.respectReducedMotion?d:!1,[p,m]=(0,G.useState)(f?0:e),[h,g]=(0,G.useState)(r?`entered`:`exited`),_=(0,G.useRef)(-1),v=(0,G.useRef)(-1),y=(0,G.useRef)(-1);function b(){window.clearTimeout(_.current),window.clearTimeout(v.current),cancelAnimationFrame(y.current)}let x=n=>{b();let r=n?i:a,c=n?o:s,l=f?0:n?e:t;m(l),l===0?(typeof r==`function`&&r(),typeof c==`function`&&c(),g(n?`entered`:`exited`)):y.current=requestAnimationFrame(()=>{qI.flushSync(()=>{g(n?`pre-entering`:`pre-exiting`)}),y.current=requestAnimationFrame(()=>{typeof r==`function`&&r(),g(n?`entering`:`exiting`),_.current=window.setTimeout(()=>{typeof c==`function`&&c(),g(n?`entered`:`exited`)},l)})})},S=e=>{if(b(),typeof(e?c:l)!=`number`){x(e);return}v.current=window.setTimeout(()=>{x(e)},e?c:l)};return yj(()=>{S(r)},[r]),(0,G.useEffect)(()=>()=>{b()},[]),{transitionDuration:p,transitionStatus:h,transitionTimingFunction:n||`ease`}}function bR({keepMounted:e,keepMountedMode:t=`activity`,transition:n=`fade`,duration:r=250,exitDuration:i=r,mounted:a,children:o,timingFunction:s=`ease`,onExit:c,onEntered:l,onEnter:u,onExited:d,enterDelay:f,exitDelay:p}){let m=DM(),{transitionDuration:h,transitionStatus:g,transitionTimingFunction:_}=yR({mounted:a,exitDuration:i,duration:r,timingFunction:s,onExit:c,onEntered:l,onEnter:u,onExited:d,enterDelay:f,exitDelay:p});if(m===`test`)return a?(0,K.jsx)(K.Fragment,{children:o({})}):e?o({display:`none`}):null;if(h===0)return e?t===`display-none`?a?(0,K.jsx)(K.Fragment,{children:o({})}):o({display:`none`}):(0,K.jsx)(G.Activity,{mode:a?`visible`:`hidden`,children:o({})}):a?(0,K.jsx)(K.Fragment,{children:o({})}):null;let v=g===`exited`;if(e){let e=o(v?t===`display-none`?{display:`none`}:{}:vR({transition:n,duration:h,state:g,timingFunction:_}));return t===`display-none`?e:(0,K.jsx)(G.Activity,{mode:v?`hidden`:`visible`,children:e})}return v?null:(0,K.jsx)(K.Fragment,{children:o(vR({transition:n,duration:h,state:g,timingFunction:_}))})}bR.displayName=`@mantine/core/Transition`;var xR={duration:100,transition:`fade`};function SR(e,t){return{...xR,...t,...e}}var CR={root:`m_5ae2e3c`,barsLoader:`m_7a2bd4cd`,bar:`m_870bb79`,"bars-loader-animation":`m_5d2b3b9d`,dotsLoader:`m_4e3f22d7`,dot:`m_870c4af`,"loader-dots-animation":`m_aac34a1`,ovalLoader:`m_b34414df`,"oval-loader-animation":`m_f8e89c4b`},wR=({className:e,...t})=>(0,K.jsxs)(QN,{component:`span`,className:Uj(CR.barsLoader,e),...t,children:[(0,K.jsx)(`span`,{className:CR.bar}),(0,K.jsx)(`span`,{className:CR.bar}),(0,K.jsx)(`span`,{className:CR.bar})]});wR.displayName=`@mantine/core/Bars`;var TR=({className:e,...t})=>(0,K.jsxs)(QN,{component:`span`,className:Uj(CR.dotsLoader,e),...t,children:[(0,K.jsx)(`span`,{className:CR.dot}),(0,K.jsx)(`span`,{className:CR.dot}),(0,K.jsx)(`span`,{className:CR.dot})]});TR.displayName=`@mantine/core/Dots`;var ER=({className:e,...t})=>(0,K.jsx)(QN,{component:`span`,className:Uj(CR.ovalLoader,e),...t});ER.displayName=`@mantine/core/Oval`;var DR={bars:wR,oval:ER,dots:TR},OR={loaders:DR,type:`oval`},kR=Vj((e,{size:t,color:n})=>({root:{"--loader-size":aj(t,`loader-size`),"--loader-color":n?sM(n,e):void 0}})),AR=UN(e=>{let t=YM(`Loader`,OR,e),{size:n,color:r,type:i,vars:a,className:o,style:s,classNames:c,styles:l,unstyled:u,loaders:d,variant:f,children:p,attributes:m,...h}=t,g=dN({name:`Loader`,props:t,classes:CR,className:o,style:s,classNames:c,styles:l,unstyled:u,attributes:m,vars:a,varsResolver:kR});return p?(0,K.jsx)(QN,{...g(`root`),...h,children:p}):(0,K.jsx)(QN,{...g(`root`),component:d[i],variant:f,size:n,...h})});AR.defaultLoaders=DR,AR.classes=CR,AR.varsResolver=kR,AR.displayName=`@mantine/core/Loader`;var jR={root:`m_8d3f4000`,icon:`m_8d3afb97`,loader:`m_302b9fb1`,group:`m_1a0f1b21`,groupSection:`m_437b6484`},MR={orientation:`horizontal`},NR=Vj((e,{borderWidth:t})=>({group:{"--ai-border-width":W(t)}})),PR=UN(e=>{let t=YM(`ActionIconGroup`,MR,e),{className:n,style:r,classNames:i,styles:a,unstyled:o,orientation:s,vars:c,borderWidth:l,variant:u,mod:d,attributes:f,...p}=t;return(0,K.jsx)(QN,{...dN({name:`ActionIconGroup`,props:t,classes:jR,className:n,style:r,classNames:i,styles:a,unstyled:o,attributes:f,vars:c,varsResolver:NR,rootSelector:`group`})(`group`),variant:u,mod:[{"data-orientation":s},d],role:`group`,...p})});PR.classes=jR,PR.varsResolver=NR,PR.displayName=`@mantine/core/ActionIconGroup`;var FR=Vj((e,{radius:t,color:n,gradient:r,variant:i,autoContrast:a,size:o})=>{let s=e.variantColorResolver({color:n||e.primaryColor,theme:e,gradient:r,variant:i||`filled`,autoContrast:a});return{groupSection:{"--section-height":aj(o,`section-height`),"--section-padding-x":aj(o,`section-padding-x`),"--section-fz":cj(o),"--section-radius":t===void 0?void 0:sj(t),"--section-bg":n||i?s.background:void 0,"--section-color":s.color,"--section-bd":n||i?s.border:void 0}}}),IR=UN(e=>{let t=YM(`ActionIconGroupSection`,null,e),{className:n,style:r,classNames:i,styles:a,unstyled:o,vars:s,variant:c,gradient:l,radius:u,autoContrast:d,attributes:f,...p}=t;return(0,K.jsx)(QN,{...dN({name:`ActionIconGroupSection`,props:t,classes:jR,className:n,style:r,classNames:i,styles:a,unstyled:o,attributes:f,vars:s,varsResolver:FR,rootSelector:`groupSection`})(`groupSection`),variant:c,...p})});IR.classes=jR,IR.varsResolver=FR,IR.displayName=`@mantine/core/ActionIconGroupSection`;var LR=Vj((e,{size:t,radius:n,variant:r,gradient:i,color:a,autoContrast:o})=>{let s=e.variantColorResolver({color:a||e.primaryColor,theme:e,gradient:i,variant:r||`filled`,autoContrast:o});return{root:{"--ai-size":aj(t,`ai-size`),"--ai-radius":n===void 0?void 0:sj(n),"--ai-bg":a||r?s.background:void 0,"--ai-hover":a||r?s.hover:void 0,"--ai-hover-color":a||r?s.hoverColor:void 0,"--ai-color":s.color,"--ai-bd":a||r?s.border:void 0}}}),RR=GN(e=>{let t=YM(`ActionIcon`,null,e),{className:n,unstyled:r,variant:i,classNames:a,styles:o,style:s,loading:c,loaderProps:l,size:u,color:d,radius:f,__staticSelector:p,gradient:m,vars:h,children:g,disabled:_,"data-disabled":v,autoContrast:y,mod:b,attributes:x,...S}=t,C=dN({name:[`ActionIcon`,p],props:t,className:n,style:s,classes:jR,classNames:a,styles:o,unstyled:r,attributes:x,vars:h,varsResolver:LR});return(0,K.jsxs)(QL,{...C(`root`,{active:!_&&!c&&!v}),"aria-busy":c||void 0,...S,unstyled:r,variant:i,size:u,disabled:_||c,mod:[{loading:c,disabled:_||v},b],children:[typeof c==`boolean`&&(0,K.jsx)(bR,{mounted:c,transition:`slide-down`,duration:150,children:e=>(0,K.jsx)(QN,{component:`span`,...C(`loader`,{style:e}),"aria-hidden":!0,children:(0,K.jsx)(AR,{color:`var(--ai-color)`,size:`calc(var(--ai-size) * 0.55)`,...l})})}),(0,K.jsx)(QN,{component:`span`,mod:{loading:c},...C(`icon`),children:g})]})});RR.classes=jR,RR.varsResolver=LR,RR.displayName=`@mantine/core/ActionIcon`,RR.Group=PR,RR.GroupSection=IR;function zR({size:e=`var(--cb-icon-size, 70%)`,style:t,...n}){return(0,K.jsx)(`svg`,{viewBox:`0 0 15 15`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,style:{...t,width:e,height:e},...n,children:(0,K.jsx)(`path`,{d:`M11.7816 4.03157C12.0062 3.80702 12.0062 3.44295 11.7816 3.2184C11.5571 2.99385 11.193 2.99385 10.9685 3.2184L7.50005 6.68682L4.03164 3.2184C3.80708 2.99385 3.44301 2.99385 3.21846 3.2184C2.99391 3.44295 2.99391 3.80702 3.21846 4.03157L6.68688 7.49999L3.21846 10.9684C2.99391 11.193 2.99391 11.557 3.21846 11.7816C3.44301 12.0061 3.80708 12.0061 4.03164 11.7816L7.50005 8.31316L10.9685 11.7816C11.193 12.0061 11.5571 12.0061 11.7816 11.7816C12.0062 11.557 12.0062 11.193 11.7816 10.9684L8.31322 7.49999L11.7816 4.03157Z`,fill:`currentColor`,fillRule:`evenodd`,clipRule:`evenodd`})})}zR.displayName=`@mantine/core/CloseIcon`;var BR={root:`m_86a44da5`,"root--subtle":`m_220c80f2`},VR={variant:`subtle`},HR=Vj((e,{size:t,radius:n,iconSize:r})=>({root:{"--cb-size":aj(t,`cb-size`),"--cb-radius":n===void 0?void 0:sj(n),"--cb-icon-size":W(r)}})),UR=GN(e=>{let t=YM(`CloseButton`,VR,e),{iconSize:n,children:r,vars:i,radius:a,className:o,classNames:s,style:c,styles:l,unstyled:u,"data-disabled":d,disabled:f,variant:p,icon:m,mod:h,attributes:g,__staticSelector:_,...v}=t,y=dN({name:_||`CloseButton`,props:t,className:o,style:c,classes:BR,classNames:s,styles:l,unstyled:u,attributes:g,vars:i,varsResolver:HR});return(0,K.jsxs)(QL,{...v,unstyled:u,variant:p,disabled:f,mod:[{disabled:f||d},h],...y(`root`,{variant:p,active:!f&&!d}),children:[m||(0,K.jsx)(zR,{}),r]})});UR.classes=BR,UR.varsResolver=HR,UR.displayName=`@mantine/core/CloseButton`;function WR(e){return G.Children.toArray(e).filter(Boolean)}var GR={root:`m_4081bf90`},KR={preventGrowOverflow:!0,gap:`md`,align:`center`,justify:`flex-start`,wrap:`wrap`},qR=Vj((e,{grow:t,preventGrowOverflow:n,gap:r,align:i,justify:a,wrap:o},{childWidth:s})=>({root:{"--group-child-width":t&&n?s:void 0,"--group-gap":oj(r),"--group-align":i,"--group-justify":a,"--group-wrap":o}})),JR=UN(e=>{let t=YM(`Group`,KR,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,children:s,gap:c,align:l,justify:u,wrap:d,grow:f,preventGrowOverflow:p,vars:m,variant:h,__size:g,mod:_,attributes:v,...y}=t,b=WR(s),x=b.length,S=oj(c??`md`);return(0,K.jsx)(QN,{...dN({name:`Group`,props:t,stylesCtx:{childWidth:`calc(${100/x}% - (${S} - ${S} / ${x}))`},className:r,style:i,classes:GR,classNames:n,styles:a,unstyled:o,attributes:v,vars:m,varsResolver:qR})(`root`),variant:h,mod:[{grow:f},_],size:g,...y,children:b})});JR.classes=GR,JR.varsResolver=qR,JR.displayName=`@mantine/core/Group`;var YR=(0,G.createContext)({size:`sm`}),XR=UN(e=>{let t=YM(`InputClearButton`,null,e),{size:n,variant:r,vars:i,classNames:a,styles:o,...s}=t,c=(0,G.use)(YR),{resolvedClassNames:l,resolvedStyles:u}=ZM({classNames:a,styles:o,props:t});return(0,K.jsx)(UR,{variant:r||`transparent`,size:n||c?.size||`sm`,classNames:l,styles:u,__staticSelector:`InputClearButton`,style:{pointerEvents:`all`,background:`var(--input-bg)`,...s.style},...s})});XR.displayName=`@mantine/core/InputClearButton`;var ZR={xs:7,sm:8,md:10,lg:12,xl:15};function QR({__clearable:e,__clearSection:t,rightSection:n,__defaultRightSection:r,size:i=`sm`,__clearSectionMode:a=`both`}){let o=e&&t;return a===`rightSection`?n===null?null:n||r:a===`clear`?n===null?null:o||r:o&&(n||r)?(0,K.jsxs)(`div`,{"data-combined-clear-section":!0,style:{display:`flex`,gap:2,alignItems:`center`,paddingInlineEnd:ZR[i]},children:[o,n||r]}):n===null?null:n||o||r}var $R=(0,G.createContext)({offsetBottom:!1,offsetTop:!1,describedBy:void 0,getStyles:null,inputId:void 0,labelId:void 0}),ez={wrapper:`m_6c018570`,input:`m_8fb7ebe7`,bottomSection:`m_93f4ed57`,section:`m_82577fc2`,placeholder:`m_88bacfd0`,root:`m_46b77525`,label:`m_8fdc1311`,required:`m_78a94662`,error:`m_8f816625`,success:`m_9d9d40e0`,description:`m_fe47ce59`},tz=Vj((e,{size:t})=>({description:{"--input-description-size":t===void 0?void 0:`calc(${cj(t)} - ${W(2)})`}})),nz=UN(e=>{let t=YM(`InputDescription`,null,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,__staticSelector:c,__inheritStyles:l=!0,attributes:u,...d}=YM(`InputDescription`,null,t),f=(0,G.use)($R),p=dN({name:[`InputWrapper`,c],props:t,classes:ez,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:u,rootSelector:`description`,vars:s,varsResolver:tz});return(0,K.jsx)(QN,{component:`p`,...(l&&f?.getStyles||p)(`description`,f?.getStyles?{className:r,style:i}:void 0),...d})});nz.classes=ez,nz.varsResolver=tz,nz.displayName=`@mantine/core/InputDescription`;var rz=Vj((e,{size:t})=>({error:{"--input-error-size":t===void 0?void 0:`calc(${cj(t)} - ${W(2)})`}})),iz=UN(e=>{let t=YM(`InputError`,null,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,attributes:c,__staticSelector:l,__inheritStyles:u=!0,...d}=t,f=dN({name:[`InputWrapper`,l],props:t,classes:ez,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:c,rootSelector:`error`,vars:s,varsResolver:rz}),p=(0,G.use)($R);return(0,K.jsx)(QN,{component:`p`,...(u&&p?.getStyles||f)(`error`,p?.getStyles?{className:r,style:i}:void 0),...d})});iz.classes=ez,iz.varsResolver=rz,iz.displayName=`@mantine/core/InputError`;var az={labelElement:`label`},oz=Vj((e,{size:t})=>({label:{"--input-label-size":cj(t),"--input-asterisk-color":void 0}})),sz=UN(e=>{let t=YM(`InputLabel`,az,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,labelElement:c,required:l,htmlFor:u,onMouseDown:d,children:f,__staticSelector:p,mod:m,attributes:h,...g}=t,_=dN({name:[`InputWrapper`,p],props:t,classes:ez,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:h,rootSelector:`label`,vars:s,varsResolver:oz}),v=(0,G.use)($R),y=v?.getStyles||_,b=g.component||c,x=typeof b!=`string`||b===`label`;return(0,K.jsxs)(QN,{...y(`label`,v?.getStyles?{className:r,style:i}:void 0),component:c,htmlFor:x?u:void 0,mod:[{required:l},m],onMouseDown:e=>{d?.(e),!e.defaultPrevented&&e.detail>1&&e.preventDefault()},...g,children:[f,l&&(0,K.jsx)(`span`,{...y(`required`),"aria-hidden":!0,children:` *`})]})});sz.classes=ez,sz.varsResolver=oz,sz.displayName=`@mantine/core/InputLabel`;var cz=UN(e=>{let t=YM(`InputPlaceholder`,null,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,__staticSelector:c,error:l,mod:u,attributes:d,...f}=t;return(0,K.jsx)(QN,{...dN({name:[`InputPlaceholder`,c],props:t,classes:ez,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:d,rootSelector:`placeholder`})(`placeholder`),mod:[{error:!!l},u],component:`span`,...f})});cz.classes=ez,cz.displayName=`@mantine/core/InputPlaceholder`;var lz=Vj((e,{size:t})=>({success:{"--input-success-size":t===void 0?void 0:`calc(${cj(t)} - ${W(2)})`}})),uz=UN(e=>{let t=YM(`InputSuccess`,null,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,attributes:c,__staticSelector:l,__inheritStyles:u=!0,...d}=t,f=dN({name:[`InputWrapper`,l],props:t,classes:ez,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:c,rootSelector:`success`,vars:s,varsResolver:lz}),p=(0,G.use)($R);return(0,K.jsx)(QN,{component:`p`,...(u&&p?.getStyles||f)(`success`,p?.getStyles?{className:r,style:i}:void 0),...d})});uz.classes=ez,uz.varsResolver=lz,uz.displayName=`@mantine/core/InputSuccess`;function dz(e,{hasDescription:t,hasError:n}){let r=e.findIndex(e=>e===`input`),i=e.slice(0,r),a=e.slice(r+1),o=t&&i.includes(`description`)||n&&i.includes(`error`);return{offsetBottom:t&&a.includes(`description`)||n&&a.includes(`error`),offsetTop:o}}var fz={labelElement:`label`,inputContainer:e=>e,inputWrapperOrder:[`label`,`description`,`input`,`error`]},pz=Vj((e,{size:t})=>({label:{"--input-label-size":cj(t),"--input-asterisk-color":void 0},error:{"--input-error-size":t===void 0?void 0:`calc(${cj(t)} - ${W(2)})`},success:{"--input-success-size":t===void 0?void 0:`calc(${cj(t)} - ${W(2)})`},description:{"--input-description-size":t===void 0?void 0:`calc(${cj(t)} - ${W(2)})`}})),mz=UN(e=>{let t=YM(`InputWrapper`,fz,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,size:c,variant:l,__staticSelector:u,inputContainer:d,inputWrapperOrder:f,label:p,error:m,success:h,description:g,labelProps:_,descriptionProps:v,errorProps:y,successProps:b,labelElement:x,children:S,withAsterisk:C,id:w,required:T,__stylesApiProps:E,mod:D,attributes:O,...k}=t,A=dN({name:[`InputWrapper`,u],props:E||t,classes:ez,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:O,vars:s,varsResolver:pz}),j={size:c,variant:l,__staticSelector:u},ee=bj(w),M=typeof C==`boolean`?C:T,N=y?.id||`${ee}-error`,te=b?.id||`${ee}-success`,P=v?.id||`${ee}-description`,F=ee,I=!!m&&typeof m!=`boolean`,ne=!!h&&typeof h!=`boolean`&&!m,L=!!g,re=I&&f.includes(`error`),ie=ne&&f.includes(`error`),ae=L&&f.includes(`description`),oe=`${re?N:``} ${ie?te:``} ${ae?P:``}`,R=oe.trim().length>0?oe.trim():void 0,z=_?.id||`${ee}-label`,se=p&&(0,K.jsx)(sz,{labelElement:x,id:z,htmlFor:F,required:M,...j,..._,children:p},`label`),ce=L&&(0,K.jsx)(nz,{...v,...j,size:v?.size||j.size,id:v?.id||P,children:g},`description`),le=(0,K.jsx)(G.Fragment,{children:d(S)},`input`),ue=I&&(0,G.createElement)(iz,{...y,...j,size:y?.size||j.size,key:`error`,id:y?.id||N},m),de=ne&&(0,G.createElement)(uz,{...b,...j,size:b?.size||j.size,key:`success`,id:b?.id||te},h),fe=f.map(e=>{switch(e){case`label`:return se;case`input`:return le;case`description`:return ce;case`error`:return ue||de;default:return null}});return(0,K.jsx)($R,{value:{getStyles:A,describedBy:R,inputId:F,labelId:z,...dz(f,{hasDescription:L,hasError:I||ne})},children:(0,K.jsx)(QN,{variant:l,size:c,mod:[{error:!!m,success:!!h&&!m},D],id:x===`label`?void 0:w,...A(`root`),...k,children:fe})})});mz.classes=ez,mz.varsResolver=pz,mz.displayName=`@mantine/core/InputWrapper`;var hz={variant:`default`,leftSectionPointerEvents:`none`,rightSectionPointerEvents:`none`,withAria:!0,withErrorStyles:!0,withSuccessStyles:!0,size:`sm`,loading:!1,loadingPosition:`right`},gz=Vj((e,t,n)=>({wrapper:{"--input-margin-top":n.offsetTop?`calc(var(--mantine-spacing-xs) / 2)`:void 0,"--input-margin-bottom":n.offsetBottom?`calc(var(--mantine-spacing-xs) / 2)`:void 0,"--input-height":aj(t.size,`input-height`),"--input-fz":cj(t.size),"--input-radius":t.radius===void 0?void 0:sj(t.radius),"--input-left-section-width":t.leftSectionWidth===void 0?void 0:W(t.leftSectionWidth),"--input-right-section-width":t.rightSectionWidth===void 0?void 0:W(t.rightSectionWidth),"--input-padding-y":t.multiline?aj(t.size,`input-padding-y`):void 0,"--input-left-section-pointer-events":t.leftSectionPointerEvents,"--input-right-section-pointer-events":t.rightSectionPointerEvents}})),_z=GN(e=>{let t=YM(`Input`,hz,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,required:s,__staticSelector:c,__stylesApiProps:l,size:u,wrapperProps:d,error:f,success:p,disabled:m,leftSection:h,leftSectionProps:g,leftSectionWidth:_,rightSection:v,rightSectionProps:y,rightSectionWidth:b,rightSectionPointerEvents:x,leftSectionPointerEvents:S,variant:C,vars:w,pointer:T,multiline:E,radius:D,id:O,withAria:k,withErrorStyles:A,withSuccessStyles:j,mod:ee,inputSize:M,attributes:N,__clearSection:te,__clearable:P,__clearSectionMode:F,__defaultRightSection:I,loading:ne,loadingPosition:L,__bottomSection:re,__bottomSectionProps:ie,rootRef:ae,dir:oe,...R}=t,{styleProps:z,rest:se}=hN(R),ce=(0,G.use)($R),le={offsetBottom:ce?.offsetBottom,offsetTop:ce?.offsetTop},ue=dN({name:[`Input`,c],props:l||t,classes:ez,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:N,stylesCtx:le,rootSelector:`wrapper`,vars:w,varsResolver:gz}),de=k?{required:s,disabled:m,"aria-invalid":f?!0:void 0,"aria-describedby":ce?.describedBy,id:ce?.inputId||O}:{},fe=ne?(0,K.jsx)(AR,{size:L===`left`?`calc(var(--input-left-section-size) / 2)`:`calc(var(--input-right-section-size) / 2)`}):null,pe=ne&&L===`left`?fe:h,B=QR({__clearable:P,__clearSection:te,rightSection:ne&&L===`right`?fe:v,__defaultRightSection:I,size:u,__clearSectionMode:F});return(0,K.jsx)(YR,{value:{size:u||`sm`},children:(0,K.jsxs)(QN,{ref:ae,dir:oe,...ue(`wrapper`),...z,...d,mod:[{error:!!f&&A,success:!!p&&!f&&j,pointer:T,disabled:m,multiline:E,"data-with-right-section":!!B,"data-with-left-section":!!pe,"data-with-bottom-section":!!re},ee],variant:C,size:u,children:[pe&&(0,K.jsx)(`div`,{...g,"data-position":`left`,...ue(`section`,{className:g?.className,style:g?.style}),children:pe}),(0,K.jsx)(QN,{component:`input`,...se,...de,required:s,mod:{disabled:m,error:!!f&&A,success:!!p&&!f&&j},variant:C,__size:M,...ue(`input`)}),re&&(0,K.jsx)(`div`,{...ie,...ue(`bottomSection`,{className:ie?.className,style:ie?.style}),children:re}),B&&(0,K.jsx)(`div`,{...y,"data-position":`right`,...ue(`section`,{className:y?.className,style:y?.style}),children:B})]})})});_z.classes=ez,_z.varsResolver=gz,_z.Wrapper=mz,_z.Label=sz,_z.Error=iz,_z.Success=uz,_z.Description=nz,_z.Placeholder=cz,_z.ClearButton=XR,_z.displayName=`@mantine/core/Input`;function vz(e,t,n){let r=YM([`Input`,`InputWrapper`,e],t,n),{label:i,description:a,error:o,success:s,required:c,classNames:l,styles:u,className:d,unstyled:f,__staticSelector:p,__stylesApiProps:m,errorProps:h,successProps:g,labelProps:_,descriptionProps:v,wrapperProps:y,id:b,size:x,style:S,inputContainer:C,inputWrapperOrder:w,withAsterisk:T,variant:E,vars:D,mod:O,attributes:k,...A}=r,{styleProps:j,rest:ee}=hN(A),M={label:i,description:a,error:o,success:s,required:c,classNames:l,className:d,__staticSelector:p,__stylesApiProps:m||r,errorProps:h,successProps:g,labelProps:_,descriptionProps:v,unstyled:f,styles:u,size:x,style:S,inputContainer:C,inputWrapperOrder:w,withAsterisk:T,variant:E,id:b,mod:O,attributes:k,...y};return{...ee,classNames:l,styles:u,unstyled:f,wrapperProps:{...M,...j},inputProps:{required:c,classNames:l,styles:u,unstyled:f,size:x,__staticSelector:p,__stylesApiProps:m||r,error:o,success:s,variant:E,id:b,attributes:k}}}var yz={__staticSelector:`InputBase`,withAria:!0,size:`sm`},bz=GN(e=>{let{inputProps:t,wrapperProps:n,...r}=vz(`InputBase`,yz,e);return(0,K.jsx)(_z.Wrapper,{...n,children:(0,K.jsx)(_z,{...t,...r})})});bz.classes={..._z.classes,..._z.Wrapper.classes},bz.displayName=`@mantine/core/InputBase`;function xz(e,t){if(!t||!e)return!1;let n=t.parentNode;for(;n!=null;){if(n===e)return!0;n=n.parentNode}return!1}function Sz({target:e,parent:t,ref:n,displayAfterTransitionEnd:r,onTransitionStart:i,onTransitionEnd:a}){let o=(0,G.useRef)(-1),s=(0,G.useRef)(e),[c,l]=(0,G.useState)(!1),[u,d]=(0,G.useState)(typeof r==`boolean`&&r),f=()=>{if(!e||!t||!n.current)return;let r=e.getBoundingClientRect(),i=t.getBoundingClientRect(),a=t.offsetWidth===0?1:i.width/t.offsetWidth,o=t.offsetHeight===0?1:i.height/t.offsetHeight,s=window.getComputedStyle(e),c=window.getComputedStyle(t),l=hP(s.borderTopWidth)+hP(c.borderTopWidth),u=hP(s.borderLeftWidth)+hP(c.borderLeftWidth),d={top:(r.top-i.top)/o-l,left:(r.left-i.left)/a-u,width:r.width/a,height:r.height/o};n.current.style.transform=`translateY(${d.top}px) translateX(${d.left}px)`,n.current.style.width=`${d.width}px`,n.current.style.height=`${d.height}px`},p=()=>{window.clearTimeout(o.current),n.current&&(n.current.style.transitionDuration=`0ms`),f(),o.current=window.setTimeout(()=>{n.current&&(n.current.style.transitionDuration=``)},30)},m=(0,G.useRef)(null),h=(0,G.useRef)(null);return(0,G.useEffect)(()=>{if(c&&s.current!==e&&i&&i(),s.current=e,f(),e)return m.current=new ResizeObserver(p),m.current.observe(e),t&&(h.current=new ResizeObserver(p),h.current.observe(t)),()=>{m.current?.disconnect(),h.current?.disconnect()}},[t,e]),(0,G.useEffect)(()=>{if(t){let e=e=>{xz(e.target,t)&&(p(),d(!1))};return t.addEventListener(`transitionend`,e),()=>{t.removeEventListener(`transitionend`,e)}}},[t]),(0,G.useEffect)(()=>{if(n.current&&a){let e=e=>{e.propertyName===`transform`&&a()};return n.current.addEventListener(`transitionend`,e),()=>{n.current?.removeEventListener(`transitionend`,e)}}},[a]),Mj(()=>{Lj()!==`test`&&l(!0)},20,{autoInvoke:!0}),Nj(e=>{e.forEach(e=>{e.type===`attributes`&&e.attributeName===`dir`&&p()})},{attributes:!0,attributeFilter:[`dir`]},()=>document.documentElement),{initialized:c,hidden:u}}var Cz={root:`m_96b553a6`},wz=Vj((e,{transitionDuration:t},{shouldReduceMotion:n})=>({root:{"--transition-duration":e.respectReducedMotion&&n?`0ms`:typeof t==`number`?`${t}ms`:t||`150ms`}})),Tz=UN(e=>{let t=YM(`FloatingIndicator`,null,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,target:c,parent:l,transitionDuration:u,mod:d,displayAfterTransitionEnd:f,onTransitionStart:p,onTransitionEnd:m,attributes:h,ref:g,..._}=t,v=dN({name:`FloatingIndicator`,classes:Cz,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:h,vars:s,varsResolver:wz,stylesCtx:{shouldReduceMotion:Oj()}}),y=(0,G.useRef)(null),{initialized:b,hidden:x}=Sz({target:c,parent:l,ref:y,displayAfterTransitionEnd:f,onTransitionStart:p,onTransitionEnd:m}),S=Cj(g,y);return!c||!l?null:(0,K.jsx)(QN,{ref:S,mod:[{initialized:b,hidden:x},d],...v(`root`),..._})});Tz.displayName=`@mantine/core/FloatingIndicator`,Tz.classes=Cz,Tz.varsResolver=wz;var Ez={root:`m_66836ed3`,wrapper:`m_a5d60502`,body:`m_667c2793`,title:`m_6a03f287`,label:`m_698f4f23`,icon:`m_667f2a6a`,message:`m_7fa78076`,closeButton:`m_87f54839`},Dz=Vj((e,{radius:t,color:n,variant:r,autoContrast:i})=>{let a=e.variantColorResolver({color:n||e.primaryColor,theme:e,variant:r||`light`,autoContrast:i});return{root:{"--alert-radius":t===void 0?void 0:sj(t),"--alert-bg":n||r?a.background:void 0,"--alert-color":a.color,"--alert-bd":n||r?a.border:void 0}}}),Oz=UN(e=>{let t=YM(`Alert`,null,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,radius:c,color:l,title:u,children:d,id:f,icon:p,withCloseButton:m,onClose:h,closeButtonLabel:g,variant:_,autoContrast:v,role:y,attributes:b,...x}=t,S=dN({name:`Alert`,classes:Ez,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:b,vars:s,varsResolver:Dz}),C=bj(f),w=u&&`${C}-title`||void 0,T=`${C}-body`;return(0,K.jsx)(QN,{id:C,...S(`root`,{variant:_}),variant:_,...x,role:y||`alert`,"aria-describedby":d?T:void 0,"aria-labelledby":u?w:void 0,children:(0,K.jsxs)(`div`,{...S(`wrapper`),children:[p&&(0,K.jsx)(`div`,{...S(`icon`),children:p}),(0,K.jsxs)(`div`,{...S(`body`),children:[u&&(0,K.jsx)(`div`,{...S(`title`),"data-with-close-button":m||void 0,children:(0,K.jsx)(`span`,{id:w,...S(`label`),children:u})}),d&&(0,K.jsx)(`div`,{id:T,...S(`message`),"data-variant":_,children:d})]}),m&&(0,K.jsx)(UR,{...S(`closeButton`),onClick:h,variant:`transparent`,size:16,iconSize:16,"aria-label":g,unstyled:o})]})})});Oz.classes=Ez,Oz.varsResolver=Dz,Oz.displayName=`@mantine/core/Alert`;var kz={root:`m_b6d8b162`};function Az(e){if(e===`start`)return`start`;if(e===`end`||e)return`end`}var jz={inherit:!1},Mz=Vj((e,{variant:t,lineClamp:n,gradient:r,size:i,textWrap:a})=>({root:{"--text-fz":cj(i),"--text-lh":lj(i),"--text-gradient":t===`gradient`?uM(r,e):void 0,"--text-line-clamp":typeof n==`number`?n.toString():void 0,"--text-text-wrap":a}})),Nz=GN(e=>{let t=YM(`Text`,jz,e),{lineClamp:n,truncate:r,inline:i,inherit:a,gradient:o,span:s,textWrap:c,__staticSelector:l,vars:u,className:d,style:f,classNames:p,styles:m,unstyled:h,variant:g,mod:_,size:v,attributes:y,...b}=t;return(0,K.jsx)(QN,{...dN({name:[`Text`,l],props:t,classes:kz,className:d,style:f,classNames:p,styles:m,unstyled:h,attributes:y,vars:u,varsResolver:Mz})(`root`,{focusable:!0}),component:s?`span`:`p`,variant:g,mod:[{"data-truncate":Az(r),"data-line-clamp":typeof n==`number`,"data-inline":i,"data-inherit":a},_],size:v,...b})});Nz.classes=kz,Nz.varsResolver=Mz,Nz.displayName=`@mantine/core/Text`;var Pz={root:`m_347db0ec`,"root--dot":`m_fbd81e3d`,label:`m_5add502a`,section:`m_91fdda9b`},Fz=Vj((e,{radius:t,color:n,gradient:r,variant:i,size:a,autoContrast:o,circle:s})=>{let c=e.variantColorResolver({color:n||e.primaryColor,theme:e,gradient:r,variant:i||`filled`,autoContrast:o});return{root:{"--badge-height":aj(a,`badge-height`),"--badge-padding-x":aj(a,`badge-padding-x`),"--badge-fz":aj(a,`badge-fz`),"--badge-radius":s||t===void 0?void 0:sj(t),"--badge-bg":n||i?c.background:void 0,"--badge-color":n||i?c.color:void 0,"--badge-bd":n||i?c.border:void 0,"--badge-dot-color":i===`dot`?sM(n,e):void 0}}}),Iz=GN(e=>{let t=YM(`Badge`,null,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,radius:c,color:l,gradient:u,leftSection:d,rightSection:f,children:p,variant:m,fullWidth:h,autoContrast:g,circle:_,mod:v,attributes:y,...b}=t,x=dN({name:`Badge`,props:t,classes:Pz,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:y,vars:s,varsResolver:Fz});return(0,K.jsxs)(QN,{variant:m,mod:[{block:h,circle:_,"with-right-section":!!f,"with-left-section":!!d},v],...x(`root`,{variant:m}),...b,children:[d&&(0,K.jsx)(`span`,{...x(`section`),"data-position":`left`,children:d}),(0,K.jsx)(`span`,{...x(`label`),children:p}),f&&(0,K.jsx)(`span`,{...x(`section`),"data-position":`right`,children:f})]})});Iz.classes=Pz,Iz.varsResolver=Fz,Iz.displayName=`@mantine/core/Badge`;var Lz={root:`m_77c9d27d`,inner:`m_80f1301b`,label:`m_811560b9`,section:`m_a74036a`,loader:`m_a25b86ee`,group:`m_80d6d844`,groupSection:`m_70be2a01`},Rz={orientation:`horizontal`},zz=Vj((e,{borderWidth:t})=>({group:{"--button-border-width":W(t)}})),Bz=UN(e=>{let t=YM(`ButtonGroup`,Rz,e),{className:n,style:r,classNames:i,styles:a,unstyled:o,orientation:s,vars:c,borderWidth:l,mod:u,attributes:d,...f}=YM(`ButtonGroup`,Rz,e);return(0,K.jsx)(QN,{...dN({name:`ButtonGroup`,props:t,classes:Lz,className:n,style:r,classNames:i,styles:a,unstyled:o,attributes:d,vars:c,varsResolver:zz,rootSelector:`group`})(`group`),mod:[{"data-orientation":s},u],role:`group`,...f})});Bz.classes=Lz,Bz.varsResolver=zz,Bz.displayName=`@mantine/core/ButtonGroup`;var Vz=Vj((e,{radius:t,color:n,gradient:r,variant:i,autoContrast:a,size:o})=>{let s=e.variantColorResolver({color:n||e.primaryColor,theme:e,gradient:r,variant:i||`filled`,autoContrast:a});return{groupSection:{"--section-height":aj(o,`section-height`),"--section-padding-x":aj(o,`section-padding-x`),"--section-fz":o?.includes(`compact`)?cj(o.replace(`compact-`,``)):cj(o),"--section-radius":t===void 0?void 0:sj(t),"--section-bg":n||i?s.background:void 0,"--section-color":s.color,"--section-bd":n||i?s.border:void 0}}}),Hz=UN(e=>{let t=YM(`ButtonGroupSection`,null,e),{className:n,style:r,classNames:i,styles:a,unstyled:o,vars:s,gradient:c,radius:l,autoContrast:u,attributes:d,...f}=t;return(0,K.jsx)(QN,{...dN({name:`ButtonGroupSection`,props:t,classes:Lz,className:n,style:r,classNames:i,styles:a,unstyled:o,attributes:d,vars:s,varsResolver:Vz,rootSelector:`groupSection`})(`groupSection`),...f})});Hz.classes=Lz,Hz.varsResolver=Vz,Hz.displayName=`@mantine/core/ButtonGroupSection`;var Uz={in:{opacity:1,transform:`translate(-50%, calc(-50% + ${W(1)}))`},out:{opacity:0,transform:`translate(-50%, -200%)`},common:{transformOrigin:`center`},transitionProperty:`transform, opacity`},Wz=Vj((e,{radius:t,color:n,gradient:r,variant:i,size:a,justify:o,autoContrast:s})=>{let c=e.variantColorResolver({color:n||e.primaryColor,theme:e,gradient:r,variant:i||`filled`,autoContrast:s});return{root:{"--button-justify":o,"--button-height":aj(a,`button-height`),"--button-padding-x":aj(a,`button-padding-x`),"--button-fz":a?.includes(`compact`)?cj(a.replace(`compact-`,``)):cj(a),"--button-radius":t===void 0?void 0:sj(t),"--button-bg":n||i?c.background:void 0,"--button-hover":n||i?c.hover:void 0,"--button-color":c.color,"--button-bd":n||i?c.border:void 0,"--button-hover-color":n||i?c.hoverColor:void 0}}}),Gz=GN(e=>{let t=YM(`Button`,null,e),{style:n,vars:r,className:i,color:a,disabled:o,children:s,leftSection:c,rightSection:l,fullWidth:u,variant:d,radius:f,loading:p,loaderProps:m,gradient:h,classNames:g,styles:_,unstyled:v,"data-disabled":y,autoContrast:b,mod:x,attributes:S,...C}=t,w=dN({name:`Button`,props:t,classes:Lz,className:i,style:n,classNames:g,styles:_,unstyled:v,attributes:S,vars:r,varsResolver:Wz}),T=!!c,E=!!l;return(0,K.jsxs)(QL,{...w(`root`,{active:!o&&!p&&!y}),unstyled:v,variant:d,disabled:o||p,mod:[{disabled:o||y,loading:p,block:u,"with-left-section":T,"with-right-section":E},x],...C,children:[typeof p==`boolean`&&(0,K.jsx)(bR,{mounted:p,transition:Uz,duration:150,children:e=>(0,K.jsx)(QN,{component:`span`,...w(`loader`,{style:e}),"aria-hidden":!0,children:(0,K.jsx)(AR,{color:`var(--button-color)`,size:`calc(var(--button-height) / 1.8)`,...m})})}),(0,K.jsxs)(`span`,{...w(`inner`),children:[c&&(0,K.jsx)(QN,{component:`span`,...w(`section`),mod:{position:`left`},children:c}),(0,K.jsx)(QN,{component:`span`,mod:{loading:p},...w(`label`),children:s}),l&&(0,K.jsx)(QN,{component:`span`,...w(`section`),mod:{position:`right`},children:l})]})]})});Gz.classes=Lz,Gz.varsResolver=Wz,Gz.displayName=`@mantine/core/Button`,Gz.Group=Bz,Gz.GroupSection=Hz;var Kz={root:`m_4451eb3a`},qz=GN(e=>{let t=YM(`Center`,null,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,inline:c,mod:l,attributes:u,...d}=t,f=dN({name:`Center`,props:t,classes:Kz,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:u,vars:s});return(0,K.jsx)(QN,{mod:[{inline:c},l],...f(`root`),...d})});qz.classes=Kz,qz.displayName=`@mantine/core/Center`;var[Jz,Yz]=nj(`Pagination.Root component was not found in tree`),Xz={root:`m_4addd315`,control:`m_326d024a`,dots:`m_4ad7767d`,items:`m_105fdbed`,label:`m_10817321`},Zz={withPadding:!0},Qz=UN(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,active:o,disabled:s,withPadding:c,mod:l,...u}=YM(`PaginationControl`,Zz,e),d=Yz(),f=s||d.disabled;return(0,K.jsx)(QL,{disabled:f,mod:[{active:o,disabled:f,"with-padding":c},l],...d.getStyles(`control`,{className:n,style:r,classNames:t,styles:i,active:!f}),...u})});Qz.classes=Xz,Qz.displayName=`@mantine/core/PaginationControl`;function $z({style:e,children:t,path:n,...r}){return(0,K.jsx)(`svg`,{viewBox:`0 0 16 16`,xmlns:`http://www.w3.org/2000/svg`,style:{width:`calc(var(--pagination-control-size) / 1.8)`,height:`calc(var(--pagination-control-size) / 1.8)`,...e},...r,children:(0,K.jsx)(`path`,{d:n,fill:`currentColor`})})}var eB=e=>(0,K.jsx)($z,{...e,path:`M8.781 8l-3.3-3.3.943-.943L10.667 8l-4.243 4.243-.943-.943 3.3-3.3z`}),tB=e=>(0,K.jsx)($z,{...e,path:`M7.219 8l3.3 3.3-.943.943L5.333 8l4.243-4.243.943.943-3.3 3.3z`}),nB=e=>(0,K.jsx)($z,{...e,path:`M6.85355 3.85355C7.04882 3.65829 7.04882 3.34171 6.85355 3.14645C6.65829 2.95118 6.34171 2.95118 6.14645 3.14645L2.14645 7.14645C1.95118 7.34171 1.95118 7.65829 2.14645 7.85355L6.14645 11.8536C6.34171 12.0488 6.65829 12.0488 6.85355 11.8536C7.04882 11.6583 7.04882 11.3417 6.85355 11.1464L3.20711 7.5L6.85355 3.85355ZM12.8536 3.85355C13.0488 3.65829 13.0488 3.34171 12.8536 3.14645C12.6583 2.95118 12.3417 2.95118 12.1464 3.14645L8.14645 7.14645C7.95118 7.34171 7.95118 7.65829 8.14645 7.85355L12.1464 11.8536C12.3417 12.0488 12.6583 12.0488 12.8536 11.8536C13.0488 11.6583 13.0488 11.3417 12.8536 11.1464L9.20711 7.5L12.8536 3.85355Z`}),rB=e=>(0,K.jsx)($z,{...e,path:`M2.14645 11.1464C1.95118 11.3417 1.95118 11.6583 2.14645 11.8536C2.34171 12.0488 2.65829 12.0488 2.85355 11.8536L6.85355 7.85355C7.04882 7.65829 7.04882 7.34171 6.85355 7.14645L2.85355 3.14645C2.65829 2.95118 2.34171 2.95118 2.14645 3.14645C1.95118 3.34171 1.95118 3.65829 2.14645 3.85355L5.79289 7.5L2.14645 11.1464ZM8.14645 11.1464C7.95118 11.3417 7.95118 11.6583 8.14645 11.8536C8.34171 12.0488 8.65829 12.0488 8.85355 11.8536L12.8536 7.85355C13.0488 7.65829 13.0488 7.34171 12.8536 7.14645L8.85355 3.14645C8.65829 2.95118 8.34171 2.95118 8.14645 3.14645C7.95118 3.34171 7.95118 3.65829 8.14645 3.85355L11.7929 7.5L8.14645 11.1464Z`}),iB={icon:e=>(0,K.jsx)($z,{...e,path:`M2 8c0-.733.6-1.333 1.333-1.333.734 0 1.334.6 1.334 1.333s-.6 1.333-1.334 1.333C2.6 9.333 2 8.733 2 8zm9.333 0c0-.733.6-1.333 1.334-1.333C13.4 6.667 14 7.267 14 8s-.6 1.333-1.333 1.333c-.734 0-1.334-.6-1.334-1.333zM6.667 8c0-.733.6-1.333 1.333-1.333s1.333.6 1.333 1.333S8.733 9.333 8 9.333 6.667 8.733 6.667 8z`})},aB=UN(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,icon:o,...s}=YM(`PaginationDots`,iB,e);return(0,K.jsx)(QN,{...Yz().getStyles(`dots`,{className:n,style:r,styles:i,classNames:t}),...s,children:(0,K.jsx)(o,{style:{width:`calc(var(--pagination-control-size) / 1.8)`,height:`calc(var(--pagination-control-size) / 1.8)`}})})});aB.classes=Xz,aB.displayName=`@mantine/core/PaginationDots`;function oB({icon:e,name:t,action:n,type:r}){let i={icon:e},a=e=>{let{icon:a,...o}=YM(t,i,e),s=Yz(),c=r===`next`?s.active===s.total:s.active===1;return(0,K.jsx)(Qz,{disabled:s.disabled||c,onClick:s[n],withPadding:!1,...o,children:(0,K.jsx)(a,{className:`mantine-rotate-rtl`,style:{width:`calc(var(--pagination-control-size) / 1.8)`,height:`calc(var(--pagination-control-size) / 1.8)`}})})};return a.displayName=`@mantine/core/${t}`,VN(a)}var sB=oB({icon:eB,name:`PaginationNext`,action:`onNext`,type:`next`}),cB=oB({icon:tB,name:`PaginationPrevious`,action:`onPrevious`,type:`previous`}),lB=oB({icon:nB,name:`PaginationFirst`,action:`onFirst`,type:`previous`}),uB=oB({icon:rB,name:`PaginationLast`,action:`onLast`,type:`next`});function dB({dotsIcon:e}){let t=Yz();return(0,K.jsx)(K.Fragment,{children:t.range.map((n,r)=>n===`dots`?(0,K.jsx)(aB,{icon:e},r):(0,K.jsx)(Qz,{active:n===t.active,"aria-current":n===t.active?`page`:void 0,onClick:()=>t.onChange(n),disabled:t.disabled,...t.getItemProps?.(n),children:t.getItemProps?.(n)?.children??n},r))})}dB.displayName=`@mantine/core/PaginationItems`;var fB={formatLabel:({page:e,totalPages:t})=>`Page ${e} of ${t}`},pB=UN(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,formatLabel:o,...s}=YM(`PaginationLabel`,fB,e),c=Yz();return(0,K.jsx)(QN,{...c.getStyles(`label`,{className:n,style:r,styles:i,classNames:t}),...s,children:o({page:c.active,totalPages:c.total})})});pB.classes=Xz,pB.displayName=`@mantine/core/PaginationLabel`;var mB={siblings:1,boundaries:1},hB=Vj((e,{size:t,radius:n,color:r,autoContrast:i})=>({root:{"--pagination-control-radius":n===void 0?void 0:sj(n),"--pagination-control-size":aj(t,`pagination-control-size`),"--pagination-control-fz":cj(t),"--pagination-active-bg":r?sM(r,e):void 0,"--pagination-active-color":_M(i,e)?mM({color:r,theme:e,autoContrast:i}):void 0}})),gB=UN(e=>{let t=YM(`PaginationRoot`,mB,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,total:c,value:l,defaultValue:u,onChange:d,disabled:f,siblings:p,boundaries:m,color:h,radius:g,onNextPage:_,onPreviousPage:v,onFirstPage:y,onLastPage:b,getItemProps:x,autoContrast:S,startValue:C,layout:w,mod:T,attributes:E,...D}=t,O=dN({name:`Pagination`,classes:Xz,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:E,vars:s,varsResolver:hB}),{range:k,setPage:A,next:j,previous:ee,active:M,first:N,last:te}=Dj({page:l,initialPage:u,onChange:d,total:c,siblings:p,boundaries:m,startValue:C});return(0,K.jsx)(Jz,{value:{total:c,range:k,active:M,disabled:f,layout:w,getItemProps:x,onChange:A,onNext:dj(_,j),onPrevious:dj(v,ee),onFirst:dj(y,N),onLast:dj(b,te),getStyles:O},children:(0,K.jsx)(QN,{...O(`root`),mod:[{layout:w},T],...D})})});gB.classes=Xz,gB.varsResolver=hB,gB.displayName=`@mantine/core/PaginationRoot`;var _B={withControls:!0,withPages:!0,siblings:1,boundaries:1,gap:8};function vB({children:e}){return(0,K.jsx)(QN,{...Yz().getStyles(`items`),children:e})}var yB=UN(e=>{let{withEdges:t,withControls:n,getControlProps:r,nextIcon:i,previousIcon:a,lastIcon:o,firstIcon:s,dotsIcon:c,total:l,gap:u,hideWithOnePage:d,withPages:f,layout:p,formatLabel:m,...h}=YM(`Pagination`,_B,e);if(l<=0||d&&l===1)return null;let g=f?p===`responsive`?(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(vB,{children:(0,K.jsx)(dB,{dotsIcon:c})}),(0,K.jsx)(pB,{formatLabel:m})]}):(0,K.jsx)(dB,{dotsIcon:c}):null;return(0,K.jsx)(gB,{total:l,layout:p,...h,children:(0,K.jsxs)(JR,{gap:u,children:[t&&(0,K.jsx)(lB,{icon:s,...r?.(`first`)}),n&&(0,K.jsx)(cB,{icon:a,...r?.(`previous`)}),g,n&&(0,K.jsx)(sB,{icon:i,...r?.(`next`)}),t&&(0,K.jsx)(uB,{icon:o,...r?.(`last`)})]})})});yB.classes=Xz,yB.displayName=`@mantine/core/Pagination`,yB.Root=gB,yB.Control=Qz,yB.Dots=aB,yB.First=lB,yB.Last=uB,yB.Next=sB,yB.Previous=cB,yB.Items=dB,yB.Label=pB;function bB({offset:e,position:t,defaultOpened:n}){let[r,i]=(0,G.useState)(n),a=(0,G.useRef)(null),{x:o,y:s,elements:c,refs:l,update:u,placement:d}=VL({placement:t,middleware:[nL({crossAxis:!0,padding:5,rootBoundary:`document`})]}),f=d.includes(`right`)?e:t.includes(`left`)?e*-1:0,p=d.includes(`bottom`)?e:t.includes(`top`)?e*-1:0,m=(0,G.useCallback)(({clientX:e,clientY:t})=>{l.setPositionReference({getBoundingClientRect(){return{width:0,height:0,x:e,y:t,left:e+f,top:t+p,right:e,bottom:t}}})},[c.reference]);return(0,G.useEffect)(()=>{if(l.floating.current){let e=a.current;e.addEventListener(`mousemove`,m);let t=eF(l.floating.current);return t.forEach(e=>{e.addEventListener(`scroll`,u)}),()=>{e.removeEventListener(`mousemove`,m),t.forEach(e=>{e.removeEventListener(`scroll`,u)})}}},[c.reference,l.floating.current,u,m,r]),{handleMouseMove:m,x:o,y:s,opened:r,setOpened:i,boundaryRef:a,floating:l.setFloating}}var xB={tooltip:`m_1b3c8819`,arrow:`m_f898399f`},SB={refProp:`ref`,withinPortal:!0,offset:10,position:`right`,zIndex:ij(`popover`)},CB=Vj((e,{radius:t,color:n})=>({tooltip:{"--tooltip-radius":t===void 0?void 0:sj(t),"--tooltip-bg":n?sM(n,e):void 0,"--tooltip-color":n?`var(--mantine-color-white)`:void 0}})),wB=UN(e=>{let t=YM(`TooltipFloating`,SB,e),{children:n,refProp:r,withinPortal:i,style:a,className:o,classNames:s,styles:c,unstyled:l,radius:u,color:d,label:f,offset:p,position:m,multiline:h,zIndex:g,disabled:_,defaultOpened:v,variant:y,vars:b,portalProps:x,attributes:S,ref:C,...w}=t,T=zM(),E=dN({name:`TooltipFloating`,props:t,classes:xB,className:o,style:a,classNames:s,styles:c,unstyled:l,attributes:S,rootSelector:`tooltip`,vars:b,varsResolver:CB}),{handleMouseMove:D,x:O,y:k,opened:A,boundaryRef:j,floating:ee,setOpened:M}=bB({offset:p,position:m,defaultOpened:v}),N=Bj(n);if(!N)throw Error(`[@mantine/core] Tooltip.Floating component children should be an element or a component that accepts ref, fragments, strings, numbers and other primitive values are not supported`);let te=Cj(j,Rj(N),C),P=N.props,F=e=>{P.onMouseEnter?.(e),D(e),M(!0)},I=e=>{P.onMouseLeave?.(e),M(!1)};return(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(mR,{...x,withinPortal:i,children:(0,K.jsx)(QN,{...w,...E(`tooltip`,{style:{...zN(a,T),zIndex:g,display:!_&&A?`block`:`none`,top:(k&&Math.round(k))??``,left:(O&&Math.round(O))??``}}),variant:y,ref:ee,mod:{multiline:h},children:f})}),(0,G.cloneElement)(N,{...P,[r]:te,onMouseEnter:F,onMouseLeave:I})]})});wB.classes=xB,wB.varsResolver=CB,wB.displayName=`@mantine/core/TooltipFloating`;var TB=(0,G.createContext)({withinGroup:!1}),EB={openDelay:0,closeDelay:0};function DB(e){let{openDelay:t,closeDelay:n,children:r}=YM(`TooltipGroup`,EB,e);return(0,K.jsx)(TB,{value:{withinGroup:!0},children:(0,K.jsx)(IL,{delay:{open:t,close:n},children:r})})}DB.displayName=`@mantine/core/TooltipGroup`,DB.extend=e=>e;function OB(e){if(e===void 0)return{shift:!0,flip:!0};let t={...e};return e.shift===void 0&&(t.shift=!0),e.flip===void 0&&(t.flip=!0),t}function kB(e){let t=OB(e.middlewares),n=[tL(e.offset)];return t.shift&&n.push(nL(typeof t.shift==`boolean`?{padding:8}:{padding:8,...t.shift})),t.flip&&n.push(typeof t.flip==`boolean`?rL():rL(t.flip)),n.push(aL({element:e.arrowRef,padding:e.arrowOffset})),t.inline?n.push(typeof t.inline==`boolean`?iL():iL(t.inline)):e.inline&&n.push(iL()),n}function AB(e){let[t,n]=(0,G.useState)(e.defaultOpened),r=typeof e.opened==`boolean`?e.opened:t,i=(0,G.use)(TB).withinGroup,a=bj(),o=(0,G.useCallback)(e=>{n(e),e&&g(a)},[a]),{x:s,y:c,context:l,refs:u,placement:d,middlewareData:{arrow:{x:f,y:p}={}}}=VL({strategy:e.strategy,placement:e.position,open:r,onOpenChange:o,middleware:kB(e),whileElementsMounted:BI}),{delay:m,currentId:h,setCurrentId:g}=LL(l,{id:a}),{getReferenceProps:_,getFloatingProps:v}=jee([ML(l,{enabled:e.events?.hover,delay:i?m:{open:e.openDelay,close:e.closeDelay},mouseOnly:!e.events?.touch,handleClose:e.interactive?Fee():null}),Aee(l,{enabled:e.events?.focus,visibleOnly:!0}),Nee(l,{role:`tooltip`}),Oee(l,{enabled:e.opened===void 0})]),y=(0,G.useRef)(d);vj(()=>{y.current!==d&&(y.current=d,e.onPositionChange?.(d))},[d]);let b=r&&h&&h!==a;return{x:s,y:c,arrowX:f,arrowY:p,reference:u.setReference,floating:u.setFloating,getFloatingProps:v,getReferenceProps:_,isGroupPhase:b,opened:r,placement:d}}var jB={position:`top`,refProp:`ref`,withinPortal:!0,arrowSize:4,arrowOffset:5,arrowRadius:0,arrowPosition:`side`,offset:5,transitionProps:{duration:100,transition:`fade`},events:{hover:!0,focus:!1,touch:!1},zIndex:ij(`popover`),middlewares:{flip:!0,shift:!0,inline:!1}},MB=Vj((e,{radius:t,color:n,variant:r,autoContrast:i})=>{let a=e.variantColorResolver({theme:e,color:n||e.primaryColor,autoContrast:i,variant:r||`filled`});return{tooltip:{"--tooltip-radius":t===void 0?void 0:sj(t),"--tooltip-bg":n?a.background:void 0,"--tooltip-color":n?a.color:void 0}}}),NB=UN(e=>{let t=YM(`Tooltip`,jB,e),{children:n,position:r,refProp:i,label:a,openDelay:o,closeDelay:s,onPositionChange:c,opened:l,defaultOpened:u,withinPortal:d,radius:f,color:p,classNames:m,styles:h,unstyled:g,style:_,className:v,withArrow:y,arrowSize:b,arrowOffset:x,arrowRadius:S,arrowPosition:C,offset:w,transitionProps:T,multiline:E,events:D,interactive:O,zIndex:k,disabled:A,onClick:j,onMouseEnter:ee,onMouseLeave:M,inline:N,variant:te,keepMounted:P,vars:F,portalProps:I,mod:ne,floatingStrategy:L,middlewares:re,autoContrast:ie,attributes:ae,target:oe,ref:R,...z}=t,{dir:se}=eP(),ce=(0,G.useRef)(null),le=AB({position:lR(se,r),closeDelay:s,openDelay:o,onPositionChange:c,opened:l,defaultOpened:u,events:D,interactive:O,arrowRef:ce,arrowOffset:x,offset:typeof w==`number`?w+(y?b/2:0):w,inline:N,strategy:L,middlewares:re});(0,G.useEffect)(()=>{let e=oe instanceof HTMLElement?oe:typeof oe==`string`?document.querySelector(oe):oe?.current||null;e&&le.reference(e)},[oe,le]);let ue=dN({name:`Tooltip`,props:t,classes:xB,className:v,style:_,classNames:m,styles:h,unstyled:g,attributes:ae,rootSelector:`tooltip`,vars:F,varsResolver:MB}),de=Bj(n);if(!oe&&!de)throw Error(`[@mantine/core] Tooltip component children should be an element or a component that accepts ref, fragments, strings, numbers and other primitive values are not supported`);let fe=ue(`tooltip`),pe=O&&!A&&!!le.opened,B=C===`merge`&&y?sR({position:le.placement,dir:se}):void 0;if(oe){let e=SR(T,{duration:100,transition:`fade`});return(0,K.jsx)(K.Fragment,{children:(0,K.jsx)(mR,{...I,withinPortal:d,children:(0,K.jsx)(bR,{...e,keepMounted:P,mounted:!A&&!!le.opened,duration:le.isGroupPhase?10:e.duration,children:e=>(0,K.jsxs)(QN,{...z,"data-fixed":L===`fixed`||void 0,variant:te,mod:[{multiline:E,interactive:pe},ne],...fe,...le.getFloatingProps({ref:le.floating,className:fe.className,style:{...fe.style,...e,...B,zIndex:k,top:le.y??0,left:le.x??0}}),children:[a,(0,K.jsx)(cR,{ref:ce,arrowX:le.arrowX,arrowY:le.arrowY,visible:y,position:le.placement,arrowSize:b,arrowOffset:x,arrowRadius:S,arrowPosition:C,...ue(`arrow`)})]})})})})}let me=de.props,V=Cj(le.reference,Rj(de),R),he=SR(T,{duration:100,transition:`fade`});return(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(mR,{...I,withinPortal:d,children:(0,K.jsx)(bR,{...he,keepMounted:P,mounted:!A&&!!le.opened,duration:le.isGroupPhase?10:he.duration,children:e=>(0,K.jsxs)(QN,{...z,"data-fixed":L===`fixed`||void 0,variant:te,mod:[{multiline:E,interactive:pe},ne],...le.getFloatingProps({ref:le.floating,className:ue(`tooltip`).className,style:{...ue(`tooltip`).style,...e,...B,zIndex:k,top:le.y??0,left:le.x??0}}),children:[a,(0,K.jsx)(cR,{ref:ce,arrowX:le.arrowX,arrowY:le.arrowY,visible:y,position:le.placement,arrowSize:b,arrowOffset:x,arrowRadius:S,arrowPosition:C,...ue(`arrow`)})]})})}),(0,G.cloneElement)(de,le.getReferenceProps({onClick:j,onMouseEnter:ee,onMouseLeave:M,onMouseMove:t.onMouseMove,onPointerDown:t.onPointerDown,onPointerEnter:t.onPointerEnter,...me,className:Uj(v,me.className),[i]:V}))]})});NB.classes=xB,NB.varsResolver=MB,NB.displayName=`@mantine/core/Tooltip`,NB.Floating=wB,NB.Group=DB;var PB={root:`m_cf365364`,indicator:`m_9e182ccd`,label:`m_1738fcb2`,input:`m_1714d588`,control:`m_69686b9b`,innerLabel:`m_78882f40`},FB={withItemsBorders:!0},IB=Vj((e,{radius:t,color:n,transitionDuration:r,size:i,transitionTimingFunction:a})=>({root:{"--sc-radius":t===void 0?void 0:sj(t),"--sc-color":n?sM(n,e):void 0,"--sc-shadow":n?void 0:`var(--mantine-shadow-xs)`,"--sc-transition-duration":r===void 0?void 0:`${r}ms`,"--sc-transition-timing-function":a,"--sc-padding":aj(i,`sc-padding`),"--sc-font-size":cj(i)}})),LB=WN(e=>{let t=YM(`SegmentedControl`,FB,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,data:c,value:l,defaultValue:u,onChange:d,size:f,name:p,disabled:m,readOnly:h,fullWidth:g,orientation:_,radius:v,color:y,transitionDuration:b,transitionTimingFunction:x,variant:S,autoContrast:C,withItemsBorders:w,mod:T,attributes:E,ref:D,...O}=t,k=dN({name:`SegmentedControl`,props:t,classes:PB,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:E,vars:s,varsResolver:IB}),A=zM(),j=c.map(e=>zj(e)?{label:`${e}`,value:e}:e),ee=Pj(),[M,N]=(0,G.useState)(fj()),[te,P]=(0,G.useState)(null),[F,I]=(0,G.useState)({}),ne=(e,t)=>{F[t]=e,I(F)},[L,re]=wj({value:l,defaultValue:u,finalValue:Array.isArray(c)?j.find(e=>!e.disabled)?.value??c[0]?.value??null:null,onChange:d}),ie=bj(p),ae=j.map(e=>(0,G.createElement)(QN,{...k(`control`),mod:{active:L===e.value,orientation:_},key:`${e.value}`},(0,G.createElement)(`input`,{...k(`input`),disabled:m||e.disabled,type:`radio`,name:ie,value:`${e.value}`,id:`${ie}-${e.value}`,checked:L===e.value,onChange:()=>!h&&re(e.value),"data-focus-ring":A.focusRing,key:`${e.value}-input`}),(0,G.createElement)(QN,{component:`label`,...k(`label`),mod:{active:L===e.value&&!(m||e.disabled),disabled:m||e.disabled,"read-only":h},htmlFor:`${ie}-${e.value}`,ref:t=>ne(t,`${e.value}`),__vars:{"--sc-label-color":y===void 0?void 0:mM({color:y,theme:A,autoContrast:C})},key:`${e.value}-label`},(0,K.jsx)(`span`,{...k(`innerLabel`),children:e.label})))),oe=Cj(D,P);return jj(()=>{N(fj())},[c.length]),c.length===0?null:(0,K.jsxs)(QN,{...k(`root`),variant:S,size:f,ref:oe,mod:[{"full-width":g,orientation:_,initialized:ee,"with-items-borders":w},T],...O,role:`radiogroup`,"data-disabled":m,children:[L!==void 0&&(0,K.jsx)(Tz,{target:F[`${L}`],parent:te,component:`span`,transitionDuration:`var(--sc-transition-duration)`,...k(`indicator`)},M),ae]})});LB.classes=PB,LB.varsResolver=IB,LB.displayName=`@mantine/core/SegmentedControl`;var[RB,zB]=nj(`Table component was not found in the tree`),BB={table:`m_b23fa0ef`,th:`m_4e7aa4f3`,tr:`m_4e7aa4fd`,td:`m_4e7aa4ef`,tbody:`m_b2404537`,thead:`m_b242d975`,caption:`m_9e5a3ac7`,scrollContainer:`m_a100c15`,scrollContainerInner:`m_62259741`};function VB(e,t){if(!t)return;let n={};return t.columnBorder&&e.withColumnBorders&&(n[`data-with-column-border`]=!0),t.rowBorder&&e.withRowBorders&&(n[`data-with-row-border`]=!0),t.striped&&e.striped&&(n[`data-striped`]=e.striped),t.highlightOnHover&&e.highlightOnHover&&(n[`data-hover`]=!0),t.captionSide&&e.captionSide&&(n[`data-side`]=e.captionSide),t.stickyHeader&&e.stickyHeader&&(n[`data-sticky`]=!0),n}function HB(e,t){let n=`Table${e.charAt(0).toUpperCase()}${e.slice(1)}`,r=UN(r=>{let i=YM(n,{},r),{classNames:a,className:o,style:s,styles:c,...l}=i,u=zB();return(0,K.jsx)(QN,{component:e,...VB(u,t),...u.getStyles(e,{className:o,classNames:a,style:s,styles:c,props:i}),...l})});return r.displayName=`@mantine/core/${n}`,r.classes=BB,r}var UB=HB(`th`,{columnBorder:!0}),WB=HB(`td`,{columnBorder:!0}),GB=HB(`tr`,{rowBorder:!0,striped:!0,highlightOnHover:!0}),KB=HB(`thead`,{stickyHeader:!0}),qB=HB(`tbody`),JB=HB(`tfoot`),YB=HB(`caption`,{captionSide:!0}),XB={type:`scrollarea`},ZB=Vj((e,{minWidth:t,maxHeight:n,type:r})=>({scrollContainer:{"--table-min-width":W(t),"--table-max-height":W(n),"--table-overflow":r===`native`?`auto`:void 0}})),QB=UN(e=>{let t=YM(`TableScrollContainer`,XB,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,children:c,minWidth:l,maxHeight:u,type:d,scrollAreaProps:f,attributes:p,...m}=t,h=dN({name:`TableScrollContainer`,classes:BB,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:p,vars:s,varsResolver:ZB,rootSelector:`scrollContainer`});return(0,K.jsx)(QN,{component:d===`scrollarea`?JL:`div`,...d===`scrollarea`?u?{offsetScrollbars:`xy`,...f}:{offsetScrollbars:`x`,...f}:{},...h(`scrollContainer`),...m,children:(0,K.jsx)(`div`,{...h(`scrollContainerInner`),children:c})})});QB.classes=BB,QB.varsResolver=ZB,QB.displayName=`@mantine/core/TableScrollContainer`;function $B({data:e}){return(0,K.jsxs)(K.Fragment,{children:[e.caption&&(0,K.jsx)(YB,{children:e.caption}),e.head&&(0,K.jsx)(KB,{children:(0,K.jsx)(GB,{children:e.head.map((e,t)=>(0,K.jsx)(UB,{children:e},t))})}),e.body&&(0,K.jsx)(qB,{children:e.body.map((e,t)=>(0,K.jsx)(GB,{children:e.map((e,t)=>(0,K.jsx)(WB,{children:e},t))},t))}),e.foot&&(0,K.jsx)(JB,{children:(0,K.jsx)(GB,{children:e.foot.map((e,t)=>(0,K.jsx)(UB,{children:e},t))})})]})}$B.displayName=`@mantine/core/TableDataRenderer`;var eV={withRowBorders:!0,verticalSpacing:7},tV=Vj((e,{layout:t,captionSide:n,horizontalSpacing:r,verticalSpacing:i,borderColor:a,stripedColor:o,highlightOnHoverColor:s,striped:c,highlightOnHover:l,stickyHeaderOffset:u,stickyHeader:d})=>({table:{"--table-layout":t,"--table-caption-side":n,"--table-horizontal-spacing":oj(r),"--table-vertical-spacing":oj(i),"--table-border-color":a?sM(a,e):void 0,"--table-striped-color":c&&o?sM(o,e):void 0,"--table-highlight-on-hover-color":l&&s?sM(s,e):void 0,"--table-sticky-header-offset":d?W(u):void 0}})),nV=UN(e=>{let t=YM(`Table`,eV,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,horizontalSpacing:c,verticalSpacing:l,captionSide:u,stripedColor:d,highlightOnHoverColor:f,striped:p,highlightOnHover:m,withColumnBorders:h,withRowBorders:g,withTableBorder:_,borderColor:v,layout:y,data:b,children:x,stickyHeader:S,stickyHeaderOffset:C,mod:w,tabularNums:T,attributes:E,...D}=t,O=dN({name:`Table`,props:t,className:r,style:i,classes:BB,classNames:n,styles:a,unstyled:o,attributes:E,rootSelector:`table`,vars:s,varsResolver:tV});return(0,K.jsx)(RB,{value:{getStyles:O,stickyHeader:S,striped:p===!0?`odd`:p||void 0,highlightOnHover:m,withColumnBorders:h,withRowBorders:g,captionSide:u||`bottom`},children:(0,K.jsx)(QN,{component:`table`,mod:[{"data-with-table-border":_,"data-tabular-nums":T},w],...O(`table`),...D,children:x||!!b&&(0,K.jsx)($B,{data:b})})})});nV.classes=BB,nV.varsResolver=tV,nV.displayName=`@mantine/core/Table`,nV.Td=WB,nV.Th=UB,nV.Tr=GB,nV.Thead=KB,nV.Tbody=qB,nV.Tfoot=JB,nV.Caption=YB,nV.ScrollContainer=QB,nV.DataRenderer=$B;var rV=UN(e=>(0,K.jsx)(bz,{component:`input`,...YM([`Input`,`InputWrapper`,`TextInput`],null,e),__staticSelector:`TextInput`}));rV.classes=bz.classes,rV.displayName=`@mantine/core/TextInput`;var iV={root:`m_7341320d`},aV=Vj((e,{size:t,radius:n,variant:r,gradient:i,color:a,autoContrast:o})=>{let s=e.variantColorResolver({color:a||e.primaryColor,theme:e,gradient:i,variant:r||`filled`,autoContrast:o});return{root:{"--ti-size":aj(t,`ti-size`),"--ti-radius":n===void 0?void 0:sj(n),"--ti-bg":a||r?s.background:void 0,"--ti-color":a||r?s.color:void 0,"--ti-bd":a||r?s.border:void 0}}}),oV=UN(e=>{let t=YM(`ThemeIcon`,null,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,autoContrast:c,attributes:l,...u}=t;return(0,K.jsx)(QN,{...dN({name:`ThemeIcon`,classes:iV,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:l,vars:s,varsResolver:aV})(`root`),...u})});oV.classes=iV,oV.varsResolver=aV,oV.displayName=`@mantine/core/ThemeIcon`;var sV=[`h1`,`h2`,`h3`,`h4`,`h5`,`h6`],cV=[`xs`,`sm`,`md`,`lg`,`xl`];function lV(e,t){let n=t===void 0?`h${e}`:t;return sV.includes(n)?{fontSize:`var(--mantine-${n}-font-size)`,fontWeight:`var(--mantine-${n}-font-weight)`,lineHeight:`var(--mantine-${n}-line-height)`}:cV.includes(n)?{fontSize:`var(--mantine-font-size-${n})`,fontWeight:`var(--mantine-h${e}-font-weight)`,lineHeight:`var(--mantine-h${e}-line-height)`}:{fontSize:W(n),fontWeight:`var(--mantine-h${e}-font-weight)`,lineHeight:`var(--mantine-h${e}-line-height)`}}var uV={root:`m_8a5d1357`},dV={order:1},fV=Vj((e,{order:t,size:n,lineClamp:r,textWrap:i})=>{let a=lV(t||1,n);return{root:{"--title-fw":a.fontWeight,"--title-lh":a.lineHeight,"--title-fz":a.fontSize,"--title-line-clamp":typeof r==`number`?r.toString():void 0,"--title-text-wrap":i}}}),pV=UN(e=>{let t=YM(`Title`,dV,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,order:s,vars:c,size:l,variant:u,lineClamp:d,textWrap:f,mod:p,attributes:m,...h}=t,g=dN({name:`Title`,props:t,classes:uV,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:m,vars:c,varsResolver:fV});return[1,2,3,4,5,6].includes(s)?(0,K.jsx)(QN,{...g(`root`),component:`h${s}`,variant:u,mod:[{order:s,"data-line-clamp":typeof d==`number`},p],size:l,...h}):null});pV.classes=uV,pV.varsResolver=fV,pV.displayName=`@mantine/core/Title`;var mV=new Map([[`bold`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M244,56v48a12,12,0,0,1-12,12H184a12,12,0,1,1,0-24H201.1l-19-17.38c-.13-.12-.26-.24-.38-.37A76,76,0,1,0,127,204h1a75.53,75.53,0,0,0,52.15-20.72,12,12,0,0,1,16.49,17.45A99.45,99.45,0,0,1,128,228h-1.37A100,100,0,1,1,198.51,57.06L220,76.72V56a12,12,0,0,1,24,0Z`}))],[`duotone`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M216,128a88,88,0,1,1-88-88A88,88,0,0,1,216,128Z`,opacity:`0.2`}),G.createElement(`path`,{d:`M240,56v48a8,8,0,0,1-8,8H184a8,8,0,0,1,0-16H211.4L184.81,71.64l-.25-.24a80,80,0,1,0-1.67,114.78,8,8,0,0,1,11,11.63A95.44,95.44,0,0,1,128,224h-1.32A96,96,0,1,1,195.75,60L224,85.8V56a8,8,0,1,1,16,0Z`}))],[`fill`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M240,56v48a8,8,0,0,1-8,8H184a8,8,0,0,1-5.66-13.66l17-17-10.55-9.65-.25-.24a80,80,0,1,0-1.67,114.78,8,8,0,1,1,11,11.63A95.44,95.44,0,0,1,128,224h-1.32A96,96,0,1,1,195.75,60l10.93,10L226.34,50.3A8,8,0,0,1,240,56Z`}))],[`light`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M238,56v48a6,6,0,0,1-6,6H184a6,6,0,0,1,0-12h32.55l-30.38-27.8c-.06-.06-.12-.13-.19-.19a82,82,0,1,0-1.7,117.65,6,6,0,0,1,8.24,8.73A93.46,93.46,0,0,1,128,222h-1.28A94,94,0,1,1,194.37,61.4L226,90.35V56a6,6,0,1,1,12,0Z`}))],[`regular`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M240,56v48a8,8,0,0,1-8,8H184a8,8,0,0,1,0-16H211.4L184.81,71.64l-.25-.24a80,80,0,1,0-1.67,114.78,8,8,0,0,1,11,11.63A95.44,95.44,0,0,1,128,224h-1.32A96,96,0,1,1,195.75,60L224,85.8V56a8,8,0,1,1,16,0Z`}))],[`thin`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M236,56v48a4,4,0,0,1-4,4H184a4,4,0,0,1,0-8h37.7L187.53,68.69l-.13-.12a84,84,0,1,0-1.75,120.51,4,4,0,0,1,5.5,5.82A91.43,91.43,0,0,1,128,220h-1.26A92,92,0,1,1,193,62.84l35,32.05V56a4,4,0,1,1,8,0Z`}))]]),hV=new Map([[`bold`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M228,104a12,12,0,0,1-24,0V69l-59.51,59.51a12,12,0,0,1-17-17L187,52H152a12,12,0,0,1,0-24h64a12,12,0,0,1,12,12Zm-44,24a12,12,0,0,0-12,12v64H52V84h64a12,12,0,0,0,0-24H48A20,20,0,0,0,28,80V208a20,20,0,0,0,20,20H176a20,20,0,0,0,20-20V140A12,12,0,0,0,184,128Z`}))],[`duotone`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M184,80V208a8,8,0,0,1-8,8H48a8,8,0,0,1-8-8V80a8,8,0,0,1,8-8H176A8,8,0,0,1,184,80Z`,opacity:`0.2`}),G.createElement(`path`,{d:`M224,104a8,8,0,0,1-16,0V59.32l-66.33,66.34a8,8,0,0,1-11.32-11.32L196.68,48H152a8,8,0,0,1,0-16h64a8,8,0,0,1,8,8Zm-40,24a8,8,0,0,0-8,8v72H48V80h72a8,8,0,0,0,0-16H48A16,16,0,0,0,32,80V208a16,16,0,0,0,16,16H176a16,16,0,0,0,16-16V136A8,8,0,0,0,184,128Z`}))],[`fill`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M192,136v72a16,16,0,0,1-16,16H48a16,16,0,0,1-16-16V80A16,16,0,0,1,48,64h72a8,8,0,0,1,0,16H48V208H176V136a8,8,0,0,1,16,0Zm32-96a8,8,0,0,0-8-8H152a8,8,0,0,0-5.66,13.66L172.69,72l-42.35,42.34a8,8,0,0,0,11.32,11.32L184,83.31l26.34,26.35A8,8,0,0,0,224,104Z`}))],[`light`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M222,104a6,6,0,0,1-12,0V54.49l-69.75,69.75a6,6,0,0,1-8.48-8.48L201.51,46H152a6,6,0,0,1,0-12h64a6,6,0,0,1,6,6Zm-38,26a6,6,0,0,0-6,6v72a2,2,0,0,1-2,2H48a2,2,0,0,1-2-2V80a2,2,0,0,1,2-2h72a6,6,0,0,0,0-12H48A14,14,0,0,0,34,80V208a14,14,0,0,0,14,14H176a14,14,0,0,0,14-14V136A6,6,0,0,0,184,130Z`}))],[`regular`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M224,104a8,8,0,0,1-16,0V59.32l-66.33,66.34a8,8,0,0,1-11.32-11.32L196.68,48H152a8,8,0,0,1,0-16h64a8,8,0,0,1,8,8Zm-40,24a8,8,0,0,0-8,8v72H48V80h72a8,8,0,0,0,0-16H48A16,16,0,0,0,32,80V208a16,16,0,0,0,16,16H176a16,16,0,0,0,16-16V136A8,8,0,0,0,184,128Z`}))],[`thin`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M220,104a4,4,0,0,1-8,0V49.66l-73.16,73.17a4,4,0,0,1-5.66-5.66L206.34,44H152a4,4,0,0,1,0-8h64a4,4,0,0,1,4,4Zm-36,28a4,4,0,0,0-4,4v72a4,4,0,0,1-4,4H48a4,4,0,0,1-4-4V80a4,4,0,0,1,4-4h72a4,4,0,0,0,0-8H48A12,12,0,0,0,36,80V208a12,12,0,0,0,12,12H176a12,12,0,0,0,12-12V136A4,4,0,0,0,184,132Z`}))]]),gV=new Map([[`bold`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M28,64A12,12,0,0,1,40,52H216a12,12,0,0,1,0,24H40A12,12,0,0,1,28,64Zm12,76h64a12,12,0,0,0,0-24H40a12,12,0,0,0,0,24Zm80,40H40a12,12,0,0,0,0,24h80a12,12,0,0,0,0-24Zm120.49,20.49a12,12,0,0,1-17,0l-18.08-18.08a44,44,0,1,1,17-17l18.08,18.07A12,12,0,0,1,240.49,200.49ZM184,164a20,20,0,1,0-20-20A20,20,0,0,0,184,164Z`}))],[`duotone`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M216,144a32,32,0,1,1-32-32A32,32,0,0,1,216,144Z`,opacity:`0.2`}),G.createElement(`path`,{d:`M32,64a8,8,0,0,1,8-8H216a8,8,0,0,1,0,16H40A8,8,0,0,1,32,64Zm8,72h72a8,8,0,0,0,0-16H40a8,8,0,0,0,0,16Zm88,48H40a8,8,0,0,0,0,16h88a8,8,0,0,0,0-16Zm109.66,13.66a8,8,0,0,1-11.32,0L206,177.36A40,40,0,1,1,217.36,166l20.3,20.3A8,8,0,0,1,237.66,197.66ZM184,168a24,24,0,1,0-24-24A24,24,0,0,0,184,168Z`}))],[`fill`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M32,64a8,8,0,0,1,8-8H216a8,8,0,0,1,0,16H40A8,8,0,0,1,32,64Zm8,72h72a8,8,0,0,0,0-16H40a8,8,0,0,0,0,16Zm88,48H40a8,8,0,0,0,0,16h88a8,8,0,0,0,0-16Zm109.66,2.34L217.36,166A40,40,0,1,0,206,177.36l20.3,20.3a8,8,0,0,0,11.32-11.32Z`}))],[`light`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M34,64a6,6,0,0,1,6-6H216a6,6,0,0,1,0,12H40A6,6,0,0,1,34,64Zm6,70h72a6,6,0,0,0,0-12H40a6,6,0,0,0,0,12Zm88,52H40a6,6,0,0,0,0,12h88a6,6,0,0,0,0-12Zm108.24,10.24a6,6,0,0,1-8.48,0l-21.49-21.48a38.06,38.06,0,1,1,8.49-8.49l21.48,21.49A6,6,0,0,1,236.24,196.24ZM184,170a26,26,0,1,0-26-26A26,26,0,0,0,184,170Z`}))],[`regular`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M32,64a8,8,0,0,1,8-8H216a8,8,0,0,1,0,16H40A8,8,0,0,1,32,64Zm8,72h72a8,8,0,0,0,0-16H40a8,8,0,0,0,0,16Zm88,48H40a8,8,0,0,0,0,16h88a8,8,0,0,0,0-16Zm109.66,13.66a8,8,0,0,1-11.32,0L206,177.36A40,40,0,1,1,217.36,166l20.3,20.3A8,8,0,0,1,237.66,197.66ZM184,168a24,24,0,1,0-24-24A24,24,0,0,0,184,168Z`}))],[`thin`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M36,64a4,4,0,0,1,4-4H216a4,4,0,0,1,0,8H40A4,4,0,0,1,36,64Zm4,68h72a4,4,0,0,0,0-8H40a4,4,0,0,0,0,8Zm88,56H40a4,4,0,0,0,0,8h88a4,4,0,0,0,0-8Zm106.83,6.83a4,4,0,0,1-5.66,0l-22.72-22.72a36.06,36.06,0,1,1,5.66-5.66l22.72,22.72A4,4,0,0,1,234.83,194.83ZM184,172a28,28,0,1,0-28-28A28,28,0,0,0,184,172Z`}))]]),_V=new Map([[`bold`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M232.49,215.51,185,168a92.12,92.12,0,1,0-17,17l47.53,47.54a12,12,0,0,0,17-17ZM44,112a68,68,0,1,1,68,68A68.07,68.07,0,0,1,44,112Z`}))],[`duotone`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M192,112a80,80,0,1,1-80-80A80,80,0,0,1,192,112Z`,opacity:`0.2`}),G.createElement(`path`,{d:`M229.66,218.34,179.6,168.28a88.21,88.21,0,1,0-11.32,11.31l50.06,50.07a8,8,0,0,0,11.32-11.32ZM40,112a72,72,0,1,1,72,72A72.08,72.08,0,0,1,40,112Z`}))],[`fill`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M168,112a56,56,0,1,1-56-56A56,56,0,0,1,168,112Zm61.66,117.66a8,8,0,0,1-11.32,0l-50.06-50.07a88,88,0,1,1,11.32-11.31l50.06,50.06A8,8,0,0,1,229.66,229.66ZM112,184a72,72,0,1,0-72-72A72.08,72.08,0,0,0,112,184Z`}))],[`light`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M228.24,219.76l-51.38-51.38a86.15,86.15,0,1,0-8.48,8.48l51.38,51.38a6,6,0,0,0,8.48-8.48ZM38,112a74,74,0,1,1,74,74A74.09,74.09,0,0,1,38,112Z`}))],[`regular`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M229.66,218.34l-50.07-50.06a88.11,88.11,0,1,0-11.31,11.31l50.06,50.07a8,8,0,0,0,11.32-11.32ZM40,112a72,72,0,1,1,72,72A72.08,72.08,0,0,1,40,112Z`}))],[`thin`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M226.83,221.17l-52.7-52.7a84.1,84.1,0,1,0-5.66,5.66l52.7,52.7a4,4,0,0,0,5.66-5.66ZM36,112a76,76,0,1,1,76,76A76.08,76.08,0,0,1,36,112Z`}))]]),vV=(0,G.createContext)({color:`currentColor`,size:`1em`,weight:`regular`,mirrored:!1}),yV=G.forwardRef((e,t)=>{let{alt:n,color:r,size:i,weight:a,mirrored:o,children:s,weights:c,...l}=e,{color:u=`currentColor`,size:d,weight:f=`regular`,mirrored:p=!1,...m}=G.useContext(vV);return G.createElement(`svg`,{ref:t,xmlns:`http://www.w3.org/2000/svg`,width:i??d,height:i??d,fill:r??u,viewBox:`0 0 256 256`,transform:o||p?`scale(-1, 1)`:void 0,...m,...l},!!n&&G.createElement(`title`,null,n),s,c.get(a??f))});yV.displayName=`IconBase`;var bV=G.forwardRef((e,t)=>G.createElement(yV,{ref:t,...e,weights:mV}));bV.displayName=`ArrowClockwiseIcon`;var xV=bV,SV=G.forwardRef((e,t)=>G.createElement(yV,{ref:t,...e,weights:hV}));SV.displayName=`ArrowSquareOutIcon`;var CV=SV,wV=G.forwardRef((e,t)=>G.createElement(yV,{ref:t,...e,weights:gV}));wV.displayName=`ListMagnifyingGlassIcon`;var TV=wV,EV=G.forwardRef((e,t)=>G.createElement(yV,{ref:t,...e,weights:_V}));EV.displayName=`MagnifyingGlassIcon`;var DV=EV,OV=s((e=>{function t(e,t){var n=e.length;e.push(t);a:for(;0>>1,a=e[r];if(0>>1;ri(c,n))li(u,c)?(e[r]=u,e[l]=n,r=l):(e[r]=c,e[s]=n,r=s);else if(li(u,n))e[r]=u,e[l]=n,r=l;else break a}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return n===0?e.id-t.id:n}if(e.unstable_now=void 0,typeof performance==`object`&&typeof performance.now==`function`){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var c=[],l=[],u=1,d=null,f=3,p=!1,m=!1,h=!1,g=!1,_=typeof setTimeout==`function`?setTimeout:null,v=typeof clearTimeout==`function`?clearTimeout:null,y=typeof setImmediate<`u`?setImmediate:null;function b(e){for(var i=n(l);i!==null;){if(i.callback===null)r(l);else if(i.startTime<=e)r(l),i.sortIndex=i.expirationTime,t(c,i);else break;i=n(l)}}function x(e){if(h=!1,b(e),!m)if(n(c)!==null)m=!0,S||(S=!0,O());else{var t=n(l);t!==null&&j(x,t.startTime-e)}}var S=!1,C=-1,w=5,T=-1;function E(){return g?!0:!(e.unstable_now()-Tt&&E());){var o=d.callback;if(typeof o==`function`){d.callback=null,f=d.priorityLevel;var s=o(d.expirationTime<=t);if(t=e.unstable_now(),typeof s==`function`){d.callback=s,b(t),i=!0;break b}d===n(c)&&r(c),b(t)}else r(c);d=n(c)}if(d!==null)i=!0;else{var u=n(l);u!==null&&j(x,u.startTime-t),i=!1}}break a}finally{d=null,f=a,p=!1}}}finally{i?O():S=!1}}}var O;if(typeof y==`function`)O=function(){y(D)};else if(typeof MessageChannel<`u`){var k=new MessageChannel,A=k.port2;k.port1.onmessage=D,O=function(){A.postMessage(null)}}else O=function(){_(D,0)};function j(t,n){C=_(function(){t(e.unstable_now())},n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_forceFrameRate=function(e){0>e||125o?(r.sortIndex=a,t(l,r),n(c)===null&&r===n(l)&&(h?(v(C),C=-1):h=!0,j(x,a-o))):(r.sortIndex=s,t(c,r),m||p||(m=!0,S||(S=!0,O()))),r},e.unstable_shouldYield=E,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}})),kV=s(((e,t)=>{t.exports=OV()})),AV=s((e=>{var t=kV(),n=ej(),r=Ij();function i(e){var t=`https://react.dev/errors/`+e;if(1F||(e.current=P[F],P[F]=null,F--)}function L(e,t){F++,P[F]=e.current,e.current=t}var re=I(null),ie=I(null),ae=I(null),oe=I(null);function R(e,t){switch(L(ae,t),L(ie,e),L(re,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Yd(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Yd(t),e=Xd(t,e);else switch(e){case`svg`:e=1;break;case`math`:e=2;break;default:e=0}}ne(re),L(re,e)}function z(){ne(re),ne(ie),ne(ae)}function se(e){e.memoizedState!==null&&L(oe,e);var t=re.current,n=Xd(t,e.type);t!==n&&(L(ie,e),L(re,n))}function ce(e){ie.current===e&&(ne(re),ne(ie)),oe.current===e&&(ne(oe),op._currentValue=te)}var le,ue;function de(e){if(le===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);le=t&&t[1]||``,ue=-11||n>0&&!e.noHeader;return R(e.blocks,function(e){var n=z_(e);n>=t&&(t=n+ +(r&&(!n||L_(e)&&!e.noHeader)))}),t}return 0}function B_(e,t,n,r){var i=t.noHeader,a=U_(z_(t)),o=[],s=t.blocks||[];De(!s||B(s)),s||=[];var c=e.orderMode;if(t.sortBlocks&&c){s=s.slice();var l={valueAsc:`asc`,valueDesc:`desc`};if(ze(l,c)){var u=new dm(l[c],null);s.sort(function(e,t){return u.evaluate(e.sortParam,t.sortParam)})}else c===`seriesDesc`&&s.reverse()}R(s,function(n,i){var s=t.valueFormatter,c=R_(n)(s?I(I({},e),{valueFormatter:s}):e,n,i>0?a.html:0,r);c!=null&&o.push(c)});var d=e.renderMode===`richText`?o.join(a.richText):W_(r,o.join(``),i?n:a.html);if(i)return d;var f=Pg(t.header,`ordinal`,e.useUTC),p=N_(r,e.renderMode).nameStyle,m=M_(r);return e.renderMode===`richText`?q_(e,f,p)+a.richText+d:W_(r,`
`+jh(f)+`
`+d,n)}function V_(e,t,n,r){var i=e.renderMode,a=t.noName,o=t.noValue,s=!t.markerType,c=t.name,l=e.useUTC,u=t.valueFormatter||e.valueFormatter||function(e){return e=B(e)?e:[e],z(e,function(e,t){return Pg(e,B(p)?p[t]:p,l)})};if(!(a&&o)){var d=s?``:e.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||D_.color.secondary,i),f=a?``:Pg(c,`ordinal`,l),p=t.valueType,m=o?[]:u(t.value,t.rawDataIndex),h=!s||!a,g=!s&&a,_=N_(r,i),v=_.nameStyle,y=_.valueStyle;return i===`richText`?(s?``:d)+(a?``:q_(e,f,v))+(o?``:J_(e,m,h,g,y)):W_(r,(s?``:d)+(a?``:G_(f,!s,v))+(o?``:K_(m,h,g,y)),n)}}function H_(e,t,n,r,i,a){if(e)return R_(e)({useUTC:i,renderMode:n,orderMode:r,markupStyleCreator:t,valueFormatter:e.valueFormatter},e,0,a)}function U_(e){return{html:P_[e],richText:F_[e]}}function W_(e,t,n){var r=`
`,i=`margin: `+n+`px 0 0`,a=M_(e);return`
`+t+r+`
`}function G_(e,t,n){var r=t?`margin-left:2px`:``;return``+jh(e)+``}function K_(e,t,n,r){var i=t?`float:right;margin-left:`+(n?`10px`:`20px`):``;return e=B(e)?e:[e],``+z(e,function(e){return jh(e)}).join(`  `)+``}function q_(e,t,n){return e.markupStyleCreator.wrapRichTextStyle(t,n)}function J_(e,t,n,r,i){var a=[i],o=r?10:20;return n&&a.push({padding:[0,0,0,o],align:`right`}),e.markupStyleCreator.wrapRichTextStyle(B(t)?t.join(` `):t,a)}function Y_(e,t){var n=e.getData().getItemVisual(t,`style`)[e.visualDrawType];return zg(n)}function X_(e,t){return e.get(`padding`)??(t===`richText`?[8,10]:10)}var Z_=function(){function e(){this.richTextStyles={},this._nextStyleNameId=Ws()}return e.prototype._generateStyleName=function(){return`__EC_aUTo_`+this._nextStyleNameId++},e.prototype.makeTooltipMarker=function(e,t,n){var r=n===`richText`?this._generateStyleName():null,i=Rg({color:t,type:e,renderMode:n,markerId:r});return V(i)?i:(this.richTextStyles[r]=i.style,i.content)},e.prototype.wrapRichTextStyle=function(e,t){var n={};B(t)?R(t,function(e){return I(n,e)}):I(n,t);var r=this._generateStyleName();return this.richTextStyles[r]=n,`{`+r+`|`+e+`}`},e}();function Q_(e){var t=e.series,n=e.dataIndex,r=e.multipleSeries,i=t.getData(),a=i.mapDimensionsAll(`defaultedTooltip`),o=a.length,s=t.getRawValue(n),c=B(s),l=Y_(t,n),u,d,f,p;if(o>1||c&&!o){var m=$_(s,t,n,a,l);u=m.inlineValues,d=m.inlineValueTypes,f=m.blocks,p=m.inlineValues[0]}else if(o){var h=i.getDimensionInfo(a[0]);p=u=nm(i,n,a[0]),d=h.type}else p=u=c?s[0]:s;var g=_c(t),_=g&&t.name||``,v=i.getName(n),y=r?_:v;return I_(`section`,{header:_,noHeader:r||!g,sortParam:p,blocks:[I_(`nameValue`,{markerType:`item`,markerColor:l,name:y,noName:!Oe(y),value:u,valueType:d,rawDataIndex:i.getRawIndex(n)})].concat(f||[])})}function $_(e,t,n,r,i){var a=t.getData(),o=se(e,function(e,t,n){var r=a.getDimensionInfo(n);return e||=r&&r.tooltip!==!1&&r.displayName!=null},!1),s=[],c=[],l=[];r.length?R(r,function(e){u(nm(a,n,e),e)}):R(e,u);function u(e,t){var n=a.getDimensionInfo(t);!n||n.otherDims.tooltip===!1||(o?l.push(I_(`nameValue`,{markerType:`subItem`,markerColor:i,name:n.displayName,value:e,valueType:n.type})):(s.push(e),c.push(n.type)))}return{inlineValues:s,inlineValueTypes:c,blocks:l}}var ev=Cc();function tv(e,t){return e.getName(t)||e.getId(t)}var nv=function(e){p(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t._selectedDataIndicesMap={},t}return t.prototype.init=function(e,t,n){this.seriesIndex=this.componentIndex,this.dataTask=p_({count:av,reset:ov}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(e,n),(ev(this).sourceManager=new w_(this)).prepareSource();var r=this.getInitialData(e,n);cv(r,this),this.dataTask.context.data=r,ev(this).dataBeforeProcessed=r,rv(this),this._initSelectedMapFromData(r)},t.prototype.mergeDefaultAndTheme=function(e,t){var n=Xg(this),r=n?Qg(e):{},i=this.subType;t_.hasClass(i)&&(i+=`Series`),F(e,t.getTheme().get(this.subType)),F(e,this.getDefaultOption()),rc(e,`label`,[`show`]),this.fillDataTextStyle(e.data),n&&Zg(e,r,n)},t.prototype.mergeOption=function(e,t){e=F(this.option,e,!0),this.fillDataTextStyle(e.data);var n=Xg(this);n&&Zg(this.option,e,n);var r=ev(this).sourceManager;r.dirty(),r.prepareSource();var i=this.getInitialData(e,t);cv(i,this),this.dataTask.dirty(),this.dataTask.context.data=i,ev(this).dataBeforeProcessed=i,rv(this),this._initSelectedMapFromData(i)},t.prototype.fillDataTextStyle=function(e){if(e&&!ve(e))for(var t=[`show`],n=0;n=0&&u<0)&&(l=v,u=_,d=0),_===u&&(c[d++]=m))}return c.length=d,c},t.prototype.formatTooltip=function(e,t,n){return Q_({series:this,dataIndex:e,multipleSeries:t})},t.prototype.isAnimationEnabled=function(){var e=this.ecModel;if(Ue.node&&!(e&&e.ssr))return!1;var t=this.getShallow(`animation`);return t&&this.getData().count()>this.getShallow(`animationThreshold`)&&(t=!1),!!t},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(e,t,n){var r=this.ecModel,i=a_.prototype.getColorFromPalette.call(this,e,t,n);return i||=r.getColorFromPalette(e,t,n),i},t.prototype.coordDimToDataDim=function(e){return this.getRawData().mapDimensionsAll(e)},t.prototype.getProgressive=function(){return this.get(`progressive`)},t.prototype.getProgressiveThreshold=function(){return this.get(`progressiveThreshold`)},t.prototype.select=function(e,t){this._innerSelect(this.getData(t),e)},t.prototype.unselect=function(e,t){var n=this.option.selectedMap;if(n){var r=this.option.selectedMode,i=this.getData(t);if(r===`series`||n===`all`){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var a=0;a=0&&n.push(i)}return n},t.prototype.isSelected=function(e,t){var n=this.option.selectedMap;if(!n)return!1;var r=this.getData(t);return(n===`all`||n[tv(r,e)])&&!r.getItemModel(e).get([`select`,`disabled`])},t.prototype.isUniversalTransitionEnabled=function(){if(this.__universalTransitionEnabled)return!0;var e=this.option.universalTransition;return e?e===!0||e&&e.enabled:!1},t.prototype._innerSelect=function(e,t){var n,r,i=this.option,a=i.selectedMode,o=t.length;if(!(!a||!o)){if(a===`series`)i.selectedMap=`all`;else if(a===`multiple`){H(i.selectedMap)||(i.selectedMap={});for(var s=i.selectedMap,c=0;c0&&this._innerSelect(e,t)}},t.registerClass=function(e){return t_.registerClass(e)},t.protoInitialize=function(){var e=t.prototype;e.type=`series.__base__`,e.seriesIndex=0,e.ignoreStyleOnData=!1,e.hasSymbolVisual=!1,e.defaultSymbol=`circle`,e.visualStyleAccessPath=`itemStyle`,e.visualDrawType=`fill`}(),t}(t_);ae(nv,d_),ae(nv,a_),$e(nv,t_);function rv(e){var t=e.name;_c(e)||(e.name=iv(e)||t)}function iv(e){var t=e.getRawData(),n=t.mapDimensionsAll(`seriesName`),r=[];return R(n,function(e){var n=t.getDimensionInfo(e);n.displayName&&r.push(n.displayName)}),r.join(` `)}function av(e){return e.model.getRawData().count()}function ov(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),sv}function sv(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function cv(e,t){R(Le(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),function(n){e.wrapMethod(n,pe(lv,t))})}function lv(e,t){var n=uv(e);return n&&n.setOutputEnd((t||this).count()),t}function uv(e){var t=(e.ecModel||{}).scheduler,n=t&&t.getPipeline(e.uid);if(n){var r=n.currentTask;if(r){var i=r.agentStubMap;i&&(r=i.get(e.uid))}return r}}var dv=ko.extend({type:`triangle`,shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var n=t.cx,r=t.cy,i=t.width/2,a=t.height/2;e.moveTo(n,r-a),e.lineTo(n+i,r+a),e.lineTo(n-i,r+a),e.closePath()}}),fv={line:hd,rect:Uo,roundRect:Uo,square:Uo,circle:zu,diamond:ko.extend({type:`diamond`,shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var n=t.cx,r=t.cy,i=t.width/2,a=t.height/2;e.moveTo(n,r-a),e.lineTo(n+i,r),e.lineTo(n,r+a),e.lineTo(n-i,r),e.closePath()}}),pin:ko.extend({type:`pin`,shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var n=t.x,r=t.y,i=t.width/5*3,a=Math.max(i,t.height),o=i/2,s=o*o/(a-o),c=r-a+o+s,l=Math.asin(s/o),u=Math.cos(l)*o,d=Math.sin(l),f=Math.cos(l),p=o*.6,m=o*.7;e.moveTo(n-u,c+s),e.arc(n,c,o,Math.PI-l,Math.PI*2+l),e.bezierCurveTo(n+u-d*p,c+s+f*p,n,r-m,n,r),e.bezierCurveTo(n,r-m,n-u+d*p,c+s+f*p,n-u,c+s),e.closePath()}}),arrow:ko.extend({type:`arrow`,shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var n=t.height,r=t.width,i=t.x,a=t.y,o=r/3*2;e.moveTo(i,a),e.lineTo(i+o,a+n),e.lineTo(i,a+n/4*3),e.lineTo(i-o,a+n),e.lineTo(i,a),e.closePath()}}),triangle:dv},pv={line:function(e,t,n,r,i){i.x1=e,i.y1=t+r/2,i.x2=e+n,i.y2=t+r/2},rect:function(e,t,n,r,i){i.x=e,i.y=t,i.width=n,i.height=r},roundRect:function(e,t,n,r,i){i.x=e,i.y=t,i.width=n,i.height=r,i.r=Math.min(n,r)/4},square:function(e,t,n,r,i){var a=Math.min(n,r);i.x=e,i.y=t,i.width=a,i.height=a},circle:function(e,t,n,r,i){i.cx=e+n/2,i.cy=t+r/2,i.r=Math.min(n,r)/2},diamond:function(e,t,n,r,i){i.cx=e+n/2,i.cy=t+r/2,i.width=n,i.height=r},pin:function(e,t,n,r,i){i.x=e+n/2,i.y=t+r/2,i.width=n,i.height=r},arrow:function(e,t,n,r,i){i.x=e+n/2,i.y=t+r/2,i.width=n,i.height=r},triangle:function(e,t,n,r,i){i.cx=e+n/2,i.cy=t+r/2,i.width=n,i.height=r}},mv={};R(fv,function(e,t){mv[t]=new e});var hv=ko.extend({type:`symbol`,shape:{symbolType:``,x:0,y:0,width:0,height:0},calculateTextPosition:function(e,t,n){var r=Cn(e,t,n),i=this.shape;return i&&i.symbolType===`pin`&&t.position===`inside`&&(r.y=n.y+n.height*.4),r},buildPath:function(e,t,n){var r=t.symbolType;if(r!==`none`){var i=mv[r];i||=(r=`rect`,mv[r]),pv[r](t.x,t.y,t.width,t.height,i.shape),i.buildPath(e,i.shape,n)}}});function gv(e,t){if(this.type!==`image`){var n=this.style;this.__isEmptyBrush?(n.stroke=e,n.fill=t||D_.color.neutral00,n.lineWidth=2):this.shape.symbolType===`line`?n.stroke=e:n.fill=e,this.markRedraw()}}function _v(e,t,n,r,i,a,o){var s=e.indexOf(`empty`)===0;s&&(e=e.substr(5,1).toLowerCase()+e.substr(6));var c=e.indexOf(`image://`)===0?rf(e.slice(8),new en(t,n,r,i),o?`center`:`cover`):e.indexOf(`path://`)===0?nf(e.slice(7),{},new en(t,n,r,i),o?`center`:`cover`):new hv({shape:{symbolType:e,x:t,y:n,width:r,height:i}});return c.__isEmptyBrush=s,c.setColor=gv,a&&c.setColor(a),c}function vv(e,t){if(e!=null)return B(e)||(e=[e,e]),[Cs(e[0],t[0])||0,Cs(Ce(e[1],e[0]),t[1])||0]}function yv(e,t){var n=e.mapDimensionsAll(`defaultedLabel`),r=n.length;if(r===1){var i=nm(e,t,n[0]);return i==null?null:i+``}if(r){for(var a=[],o=0;o=0&&r.push(t[a])}return r.join(` `)}var xv=typeof Float32Array<`u`?Float32Array:void 0,Sv=typeof Float64Array<`u`?Float64Array:void 0;function Cv(e){return wv({ctor:xv},e).arr}function wv(e,t){var n=e.arr,r=e.ctor;if(t>Ns&&(t=Ns),!n||e.typed&&n.length=t[0]&&e<=t[1]},getExtent:function(){return this._extents[0].slice()},getExtentUnsafe:function(e){return this._extents[e]},setExtent:function(e,t){Qv(this._extents,0,e,t)},setExtent2:function(e,t,n){var r=this._extents;r[e]||(r[e]=r[0].slice()),Qv(r,e,t,n)},freeze:function(){}};function Qv(e,t,n,r){zc(n,r)&&(e[t][0]=n,e[t][1]=r)}function $v(e){return ey(e)||ny(e)}function ey(e){return e.type===`interval`}function ty(e){return e.type===`time`}function ny(e){return e.type===`log`}function ry(e){return e.type===`ordinal`}function iy(e){var t=zs(e),n=_s(10,t),r=ms(e/n);return r?r===2?r=3:r===3?r=5:r*=2:r=1,Ds(r*n,-t)}function ay(e){return ks(e)+2}function oy(e,t){return vs(e)/vs(t)}function sy(e,t,n){var r=n&&n.lookup;if(r){for(var i=0;i1&&a/o>2&&(i=Math.round(Math.ceil(i/o)*o)),i!==r[0]&&c(r[0],!0,!0);for(var s=i;s<=r[1];s+=o)c(s,!1,s===r[0]||s===r[1]);s-o!==r[1]&&c(r[1],!0,!0);function c(e,t,r){n({value:e,offInterval:t},r)}}var fy=function(e){p(t,e);function t(n){var r=e.call(this)||this;r.type=`ordinal`,r.parse=t.parse,Wv(r,t.decoratedMethods);var i=n.ordinalMeta;i||=new Bv({}),B(i)&&(i=new Bv({categories:z(i,function(e){return H(e)?e.value:e})})),r._ordinalMeta=i;var a=Uv(null,null,n.extent||[0,i.categories.length-1]);return r._mapper=a.mapper,Gv(r,a.mapper),r}return t.parse=function(e){return e==null?e=NaN:V(e)?(e=this._ordinalMeta.getOrdinal(e),e??=NaN):e=ms(e),e},t.prototype.getTicks=function(){var e=[];return dy(this,0,function(t){e.push(t)}),e},t.prototype.getMinorTicks=function(e){},t.prototype.setSortInfo=function(e){if(e==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var t=e.ordinalNumbers,n=this._ordinalNumbersByTick=[],r=this._ticksByOrdinalNumber=[],i=0,a=this._ordinalMeta.categories.length,o=ds(a,t.length);i=0&&e=0&&e=0&&eo[0]&&mi[1]||!isFinite(p)||!isFinite(i[1]))break}else{if(m>f)break;p=ds(p,i[1]),m===f&&(p=i[1])}if(l.push({value:p}),p=Ds(p+n,a),s){var h=s.calcNiceTickMultiple(p,d);h>=0&&(p=Ds(p+h*n,a))}if(l.length>0&&p===l[l.length-1].value)break;if(l.length>u)return[]}var g=l.length?l[l.length-1].value:i[1];return r[1]>g&&l.push({value:e.expandToNicedExtent?Ds(g+n,a):r[1]}),c&&o.pruneTicksByBreak(e.pruneByBreak,l,s.breaks,function(e){return e.value},t.interval,r),c&&e.breakTicks!==`none`&&o.addBreaksToTicks(l,s.breaks,r),l},t.prototype.getMinorTicks=function(e){return py(this,e,qh(this),this._cfg.interval)},t.prototype.getLabel=function(e,t){if(e==null)return``;var n=t&&t.precision;return n==null?n=ks(e.value)||0:n===`auto`&&(n=this._cfg.intervalPrecision),jg(Ds(e.value,n,!0))},t.type=`interval`,t}(Rv);Rv.registerClass(my);var hy=function(e,t,n,r){for(;n>>1;e[i][1]16?16:e>7.5?7:e>3.5?4:e>1.5?2:1}function by(e){var t=30*Qh;return e/=t,e>6?6:e>3?3:e>2?2:1}function xy(e){return e/=Zh,e>12?12:e>6?6:e>3.5?4:e>2?2:1}function Sy(e,t){return e/=t?Xh:Yh,e>30?30:e>20?20:e>15?15:e>10?10:e>5?5:e>2?2:1}function Cy(e){return fs(Bs(e,!0),1)}function wy(e,t,n){var r=Math.max(0,re(ag,t)-1);return gg(new Date(e),ag[r],n).getTime()}function Ty(e,t){var n=new Date(0);n[e](1);var r=n.getTime();n[e](1+t);var i=n.getTime()-r;return function(e,t){return Math.max(0,Math.round((t-e)/i))}}function Ey(e,t,n,r,i,a){var o=og,s=0;function c(e,t,n,i,o,c,l){for(var u=Ty(o,e),d=t,f=new Date(d);d3e3));)if(f[o](f[i]()+e),d=f.getTime(),a){var p=a.calcNiceTickMultiple(d,u);p>0&&(f[o](f[i]()+p*e),d=f.getTime())}l.push({value:d,notAdd:d>r[1]})}function l(e,i,a){var o=[],s=!i.length;if(!vy(ug(e),r[0],r[1],n)){s&&(i=[{value:wy(r[0],e,n)},{value:r[1]}]);for(var l=0;l=r[0]&&u<=r[1]&&c(f,u,d,p,m,h,o),e===`year`&&a.length>1&&l===0&&a.unshift({value:a[0].value-f})}}for(var l=0;l=r[0]&&v<=r[1]&&f++)}var y=i/t;if(f>y*1.5&&p>y/1.5||(u.push(g),f>y||e===o[m]))break}d=[]}}for(var b=ce(z(u,function(e){return ce(e,function(e){return e.value>=r[0]&&e.value<=r[1]&&!e.notAdd})}),function(e){return e.length>0}),x=b.length-1,S=[],m=0;mr[0])&&S.unshift({value:r[0],time:{level:0,upperTimeUnit:O,lowerTimeUnit:O},notNice:!0}),(!D||D.values&&(a=s);var c=_y.length,l=Math.min(hy(_y,a,0,c),c-1),u=_y[l][1],d=_y[Math.max(l-1,0)][0];e.setTimeInterval({approxInterval:a,interval:u,minLevelUnit:d})};Rv.registerClass(gy);var Oy=0,ky=1,Ay=2,jy=function(e){p(t,e);function t(n){var r=e.call(this)||this;r.type=`log`,r.parse=my.parse,r.base=n.logBase||10;var i=[],a=[],o=r._lookup={from:i,to:a};i[Oy]=i[ky]=a[Oy]=a[ky]=NaN,Wv(r,t.mapperMethods);var s=Gh(),c=n.breakOption,l={lookup:o};return s&&s.parseAxisBreakOptionInwardTransform(c,r,{noNegative:!0},Ay,l),r.powStub=new my({breakParsed:l.original}),r.intervalStub=new my({breakParsed:l.transformed}),Gv(r,r.intervalStub),r}return t.prototype.getTicks=function(e){var t=this.base,n=this.powStub,r=Gh(),i=this.intervalStub,a={lookup:{from:i.getExtent(),to:n.getExtent()}};return z(i.getTicks(e||{}),function(e){var i=e.value,o=sy(i,t,a),s;if(r){var c=r.getTicksBreakOutwardTransform(this,e,qh(n),this._lookup);c&&(s=c.vBreak,o=c.tickVal)}return{value:o,break:s}},this)},t.prototype.getMinorTicks=function(e){return py(this,e,qh(this.powStub),this.intervalStub.getConfig().interval)},t.prototype.getLabel=function(e,t){return this.intervalStub.getLabel(e,t)},t.type=`log`,t.mapperMethods={needTransform:function(){return!0},normalize:function(e){return this.intervalStub.normalize(oy(e,this.base))},scale:function(e){return sy(this.intervalStub.scale(e),this.base,null)},transformIn:function(e,t){return e=oy(e,this.base),t&&t.depth===2?e:this.intervalStub.transformIn(e,t)},transformOut:function(e,t){var n=t?t.depth:null;return My.depth=n,Ny.lookup=this._lookup,sy(n===2?e:this.intervalStub.transformOut(e,My),this.base,Ny)},contain:function(e){return this.powStub.contain(e)},setExtent:function(e,t){this.setExtent2(0,e,t)},setExtent2:function(e,t,n){if(!(!zc(t,n)||t<=0||n<=0)){var r=Py,i=Py;if(e===0){var a=this._lookup;r=a.to,i=a.from}this.powStub.setExtent2(e,r[Oy]=t,r[ky]=n);var o=this.base;this.intervalStub.setExtent2(e,i[Oy]=oy(t,o),i[ky]=oy(n,o))}},getFilter:function(){return{g:0}},sanitize:function(e,t){return zc(t[0],t[1])&&qs(e)&&e<=0&&(e=t[0]),e},getDefaultStartValue:function(){return 1},getExtent:function(){return this.powStub.getExtent()},getExtentUnsafe:function(e,t){return t===null?this.powStub.getExtentUnsafe(e,null):this.intervalStub.getExtentUnsafe(e,t)}},t}(Rv);Rv.registerClass(jy);var My={},Ny={},Py=[],Fy={value:1,category:1,time:1,log:1},Iy=Cc();function Ly(e){var t=e.get(`type`);return(t==null||!ze(Fy,t)&&!Rv.getClass(t))&&(t=`value`),t}function Ry(e,t,n){var r=Gh(),i;switch(r&&(i=Yy(e,t,n)),t){case`category`:return new fy({ordinalMeta:e.getOrdinalMeta?e.getOrdinalMeta():e.getCategories(),extent:Nc()});case`time`:return new gy({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get(`useUTC`),breakOption:i});case`log`:return new jy({logBase:e.get(`logBase`),breakOption:i});case`value`:return new my({breakOption:i});default:return new((Rv.getClass(t))||my)({})}}function zy(e,t,n){var r=n?qv(e,null):e.getExtentUnsafe(0,null),i=r[0],a=r[1];return zc(i,a)?i===t||a===t?2:it?1:3:3}function By(e){Iy(e).noOnMyZero=!0}function Vy(e){return Iy(e).noOnMyZero}function Hy(e){var t=e.getLabelModel().get(`formatter`);if(e.type===`time`){var n=sg(t);return function(t,r){return e.scale.getFormattedLabel(t,r,n)}}if(V(t))return function(n){var r=e.scale.getLabel(n);return t.replace(`{value}`,r??``)};if(me(t)){if(e.type===`category`)return function(n,r){return t(Uy(e,n),n.value-e.scale.getExtent()[0],null)};var r=Gh();return function(n,i){var a=null;return r&&(a=r.makeAxisLabelFormatterParamBreak(a,n.break)),t(Uy(e,n),i,a)}}return function(t){return e.scale.getLabel(t)}}function Uy(e,t){var n=e.scale;return ry(n)?n.getLabel(t):t.value}function Wy(e){return e.get(`interval`)??`auto`}function Gy(e){return e.type===`category`&&Wy(e.getLabelModel())===0}function Ky(e,t){var n={};return R(e.mapDimensionsAll(t),function(t){n[ch(e,t)]=!0}),ue(n)}function qy(e){return e===`middle`||e===`center`}function Jy(e){return e.getShallow(`show`)}function Yy(e,t,n){var r=e.get(`breaks`,!0);if(r!=null)return!Gh()||!n||!Xy(t)?void 0:r}function Xy(e){return e!==`category`}function Zy(e,t,n,r,i,a){var o=ny(e),s=o?e.intervalStub:e;if(s.setExtent(r[0],r[1]),o){var c=e.powStub,l={depth:2},u=e.transformOut(r[0],l),d=e.transformOut(r[1],l),f=ly(n,r);t[0]&&!f[0]&&(u=i[0]),t[1]&&!f[1]&&(d=i[1]),c.setExtent(u,d)}s.setConfig(a)}function Qy(e,t){return ry(e)?e.getRawOrdinalNumber(t.value):t.value}function $y(e,t){return ry(e)&&!!t.get(`boundaryGap`)}var eb={average:function(e){for(var t=0,n=0,r=0;rt&&(t=e[n]);return isFinite(t)?t:NaN},min:function(e){for(var t=1/0,n=0;n10&&a.type===`cartesian2d`&&i){var s=a.getBaseAxis(),c=a.getOtherAxis(s),l=s.getExtent(),u=n.getDevicePixelRatio(),d=Math.abs(l[1]-l[0])*(u||1),f=Math.round(o/d);if(isFinite(f)&&f>1){i===`lttb`?e.setData(r.lttbDownSample(r.mapDimension(c.dim),1/f)):i===`minmax`&&e.setData(r.minmaxDownSample(r.mapDimension(c.dim),1/f));var p=void 0;V(i)?p=eb[i]:me(i)&&(p=i),p&&e.setData(r.downSample(r.mapDimension(c.dim),1/f,p,tb))}}}}}var rb=Cc(),ib=Cc(),ab={estimate:1,determine:2};function ob(e){return{out:{noPxChangeTryDetermine:[]},kind:e}}function sb(e,t){var n=e.getLabelModel().get(`customValues`);if(n){var r=e.scale;return{labels:z(lb(n,r),function(t,n){return{formattedLabel:Hy(e)(t,n),rawLabel:r.getLabel(t),tick:t}})}}return e.type===`category`?ub(e,t):pb(e)}function cb(e,t,n){var r=e.scale,i=e.getTickModel().get(`customValues`);return i?{ticks:lb(i,r)}:e.type===`category`?fb(e,t):{ticks:r.getTicks(n)}}function lb(e,t){var n=t.getExtent(),r=[];return R(e,function(e){e=t.parse(e),e>=n[0]&&e<=n[1]&&r.push(e)}),Wc(r,Kc,null),Os(r),z(r,function(e){return{value:e}})}function ub(e,t){var n=e.getLabelModel(),r=db(e,n,t);return!n.get(`show`)||e.scale.isBlank()?{labels:[]}:r}function db(e,t,n){var r=hb(e),i=Wy(t),a=n.kind===ab.estimate;if(!a){var o=_b(r,i);if(o)return o}var s,c;me(i)?s=wb(e,i,!1):(c=i===`auto`?yb(e,n):i,s=wb(e,c,!1));var l={labels:s,labelCategoryInterval:c};return a?n.out.noPxChangeTryDetermine.push(function(){return vb(r,i,l),!0}):vb(r,i,l),l}function fb(e,t){var n=mb(e),r=Wy(t),i=_b(n,r);if(i)return i;var a,o;if((!t.get(`show`)||e.scale.isBlank())&&(a=[]),me(r))a=wb(e,r,!0);else if(r===`auto`){var s=db(e,e.getLabelModel(),ob(ab.determine));o=s.labelCategoryInterval,a=z(s.labels,function(e){return e.tick})}else o=r,a=wb(e,o,!0);return vb(n,r,{ticks:a,tickCategoryInterval:o})}function pb(e){var t=e.scale.getTicks(),n=Hy(e);return{labels:z(t,function(t,r){return{formattedLabel:n(t,r),rawLabel:e.scale.getLabel(t),tick:t}})}}var mb=gb(`axisTick`),hb=gb(`axisLabel`);function gb(e){return function(t){return ib(t)[e]||(ib(t)[e]={list:[]})}}function _b(e,t){for(var n=0;nu&&(l=Math.max(1,Math.floor(c/u)));for(var d=s[0],f=e.dataToCoord(d+1)-e.dataToCoord(d),p=Math.abs(f*Math.cos(a)),m=Math.abs(f*Math.sin(a)),h=0,g=0;d<=s[1];d+=l){var _=0,v=0,y=vn(i({value:d}),r.font,`center`,`top`);_=y.width*1.3,v=y.height*1.3,h=Math.max(h,_,7),g=Math.max(g,v,7)}var b=h/p,x=g/m;isNaN(b)&&(b=1/0),isNaN(x)&&(x=1/0);var S=Math.max(0,Math.floor(Math.min(b,x)));return n===ab.estimate?(t.out.noPxChangeTryDetermine.push(fe(xb,null,e,S,c)),S):Sb(e,S,c)??S}function xb(e,t,n){return Sb(e,t,n)==null}function Sb(e,t,n){var r=rb(e.model),i=e.getExtent(),a=r.lastAutoInterval,o=r.lastTickCount;if(a!=null&&o!=null&&Math.abs(a-t)<=1&&Math.abs(o-n)<=1&&a>t&&r.axisExtent0===i[0]&&r.axisExtent1===i[1])return a;r.lastTickCount=n,r.lastAutoInterval=t,r.axisExtent0=i[0],r.axisExtent1=i[1]}function Cb(e){var t=e.getLabelModel();return{axisRotate:e.getRotate?e.getRotate():e.isHorizontal&&!e.isHorizontal()?90:0,labelRotate:t.get(`rotate`)||0,font:t.getFont()}}function wb(e,t,n){var r=Hy(e),i=e.scale,a=[],o=me(t);return dy(i,o?0:t,function(e,s){var c=i.getLabel(e);if(o){var l=!!t(e.value,c);if(e.offInterval=!l,!l&&!s)return}a.push(n?e:{formattedLabel:r(e),rawLabel:c,tick:e})}),a}var Tb=Cc();function Eb(e){Tb(e).prepare={}}function Db(e){Tb(e).fullUpdate={}}function Ob(e){return Tb(e).prepare}function kb(e){return Tb(e).fullUpdate}var Ab=Hc(),jb=Cc(),Mb=Cc();function Nb(e,t){var n=e.model,r=jb(kb(n.ecModel)).keyed,i=r&&r.get(t);return i&&i.get(n.uid)}function Pb(e,t){return Lb(Nb(e,t))}function Fb(e,t){var n=[];return Ib(e.model.ecModel,function(e){for(var r=0;r0?(t>o&&(o=t),a=!1):t===-2&&(a=!0))}),qs(n)&&n>0&&qs(o)?(e.w=r/n*o,e.w2=o):a&&(e.w=r*Xb,e.w2=e.w*n/r)}var ex=[0,1],tx=function(){function e(e,t,n){this.onBand=!1,this.inverse=!1,this.dim=e,this.scale=t,this._extent=n||[0,0]}return e.prototype.contain=function(e){var t=this._extent,n=Math.min(t[0],t[1]),r=Math.max(t[0],t[1]);return e>=n&&e<=r},e.prototype.containData=function(e){return this.scale.contain(this.scale.parse(e))},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.setExtent=function(e,t){var n=this._extent;n[0]=e,n[1]=t},e.prototype.dataToCoord=function(e,t){var n=this.scale;return e=n.normalize(n.parse(e)),Ss(e,ex,nx(this),t)},e.prototype.coordToData=function(e,t){var n=Ss(e,nx(this),ex,t);return this.scale.scale(n)},e.prototype.pointToData=function(e,t){},e.prototype.getTicksCoords=function(e){e||={};var t=e.tickModel||this.getTickModel(),n=z(cb(this,t,{breakTicks:e.breakTicks,pruneByBreak:e.pruneByBreak}).ticks,function(e){return{coord:this.dataToCoord(Qy(this.scale,e)),tick:e}},this),r=t.get(`alignWithLabel`),i=rx(this,n,r);return z(n,function(e){return{coord:e.coord,tickValue:e.tick.value,onBand:i}})},e.prototype.getMinorTicksCoords=function(){if(ry(this.scale))return[];var e=this.model.getModel(`minorTick`).get(`splitNumber`);return e>0&&e<100||(e=5),z(this.scale.getMinorTicks(e),function(e){return z(e,function(e){return{coord:this.dataToCoord(e),tickValue:e}},this)},this)},e.prototype.getViewLabels=function(e){return e||=ob(ab.determine),sb(this,e).labels},e.prototype.getLabelModel=function(){return this.model.getModel(`axisLabel`)},e.prototype.getTickModel=function(){return this.model.getModel(`axisTick`)},e.prototype.getBandWidth=function(){return Zb(this,{min:1}).w},e.prototype.calculateCategoryInterval=function(e){return e||=ob(ab.determine),bb(this,e)},e}();function nx(e){var t=e.getExtent();if(e.onBand){var n=(t[1]-t[0])/e.scale.count()/2;t[0]+=n,t[1]-=n}return t}function rx(e,t,n){var r=t.length;if(!e.onBand||n||!r)return!1;var i=Zb(e).w;if(!i)return!1;R(t,function(e){e.coord-=i/2});var a=e.scale.getExtent(),o=t[r-1];return o.tick.offInterval&&t.pop(),t.push({coord:o.coord+i,tick:{value:a[1]+1}}),!0}var ix=function(e){p(t,e);function t(t,n,r,i,a){var o=e.call(this,t,n,r)||this;return o.index=0,o.type=i||`value`,o.position=a||`bottom`,o}return t.prototype.isHorizontal=function(){var e=this.position;return e===`top`||e===`bottom`},t.prototype.getGlobalExtent=function(e){var t=this.getExtent();return t[0]=this.toGlobalCoord(t[0]),t[1]=this.toGlobalCoord(t[1]),e&&t[0]>t[1]&&t.reverse(),t},t.prototype.pointToData=function(e,t){return this.coordToData(this.toLocalCoord(e[this.dim===`x`?0:1]),t)},t.prototype.setCategorySortInfo=function(e){if(this.type!==`category`)return!1;this.model.option.categorySortInfo=e,this.scale.setSortInfo(e)},t}(tx),ax=[`label`,`labelLine`,`layoutOption`,`priority`,`defaultAttr`,`marginForce`,`minMarginForce`,`marginDefault`,`suggestIgnore`],ox=1,sx=2,cx=ox|sx;function lx(e,t,n){n||=cx,t?e.dirty|=n:e.dirty&=~n}function ux(e,t){return t||=cx,e.dirty==null||!!(e.dirty&t)}function dx(e){if(e)return ux(e)&&fx(e,e.label,e),e}function fx(e,t,n){var r=t.getComputedTransform();e.transform=Nf(e.transform,r);var i=e.localRect=Mf(e.localRect,t.getBoundingRect()),a=t.style,o=a.margin,s=n&&n.marginForce,c=n&&n.minMarginForce,l=n&&n.marginDefault,u=a.__marginType;u==null&&l&&(o=l,u=ip.textMargin);for(var d=0;d<4;d++)px[d]=u===ip.minMargin&&c&&c[d]!=null?c[d]:s&&s[d]!=null?s[d]:o?o[d]:0;u===ip.textMargin&&wf(i,px,!1,!1);var f=e.rect=Mf(e.rect,i);return r&&f.applyTransform(r),u===ip.minMargin&&wf(f,px,!1,!1),e.axisAligned=Af(r),(e.label=e.label||{}).ignore=t.ignore,lx(e,!1),lx(e,!0,sx),e}var px=[0,0,0,0];function mx(e,t,n){return e.transform=Nf(e.transform,n),e.localRect=Mf(e.localRect,t),e.rect=Mf(e.rect,t),n&&e.rect.applyTransform(n),e.axisAligned=Af(n),e.obb=void 0,(e.label=e.label||{}).ignore=!1,e}function hx(e,t){if(e){e.label.x+=t.x,e.label.y+=t.y,e.label.markRedraw();var n=e.transform;n&&(n[4]+=t.x,n[5]+=t.y);var r=e.rect;r&&(r.x+=t.x,r.y+=t.y);var i=e.obb;i&&i.fromBoundingRect(e.localRect,n)}}function gx(e,t){for(var n=0;n.1?`x`:`y`,u=a.transGroup[l];if(o.sort(function(e,t){return Math.abs(e.label[l]-u)-Math.abs(t.label[l]-u)}),c&&s){var d=i.getExtent(),f=Math.min(d[0],d[1]),p=Math.max(d[0],d[1])-f;s.union(new en(f,0,p,1))}a.stOccupiedRect=s,a.labelInfoList=o}var jx=gt(),Mx=new en(0,0,0,0),Nx=function(e,t,n,r,i,a){if(qy(e.nameLocation)){var o=a.stOccupiedRect;o&&Px(mx({},o,a.transGroup.transform),r,i)}else Fx(a.labelInfoList,a.dirVec,r,i)};function Px(e,t,n){var r=new Bt;yx(e,t,r,{direction:Math.atan2(n.y,n.x),bidirectional:!1,touchThreshold:.05})&&hx(t,r)}function Fx(e,t,n,r){for(var i=Bt.dot(r,t)>=0,a=0,o=e.length;a0?`top`:`bottom`,i=`center`):Fs(r-Cx)?(a=n>0?`bottom`:`top`,i=`center`):(a=`middle`,i=r>0&&r0?`right`:`left`:n>0?`left`:`right`),{rotation:r,textAlign:i,textVerticalAlign:a}},e.makeAxisEventDataBase=function(e){var t={componentType:e.mainType,componentIndex:e.componentIndex};return t[e.mainType+`Index`]=e.componentIndex,t},e.isLabelSilent=function(e){var t=e.get(`tooltip`);return e.get(`silent`)||!(e.get(`triggerEvent`)||t&&t.show)},e}(),Lx=[`axisLine`,`axisTickLabelEstimate`,`axisTickLabelDetermine`,`axisName`],Rx={axisLine:function(e,t,n,r,i,a,o){var s=r.get([`axisLine`,`show`]);if(s===`auto`&&(s=!0,e.raw.axisLineAutoShow!=null&&(s=!!e.raw.axisLineAutoShow)),s){var c=r.axis.getExtent(),l=a.transform,u=[c[0],0],d=[c[1],0],f=u[0]>d[0];l&&(Lt(u,u,l),Lt(d,d,l));var p=I({lineCap:`round`},r.getModel([`axisLine`,`lineStyle`]).getLineStyle()),m={strokeContainThreshold:e.raw.strokeContainThreshold||5,silent:!0,z2:1,style:p};if(r.get([`axisLine`,`breakLine`])&&Jh(r.axis.scale))xx().buildAxisBreakLine(r,i,a,m);else{var h=new hd(I({shape:{x1:u[0],y1:u[1],x2:d[0],y2:d[1]}},m));cf(h.shape,h.style.lineWidth),h.anid=`line`,i.add(h)}var g=r.get([`axisLine`,`symbol`]);if(g!=null){var _=r.get([`axisLine`,`symbolSize`]);V(g)&&(g=[g,g]),(V(_)||ge(_))&&(_=[_,_]);var v=vv(r.get([`axisLine`,`symbolOffset`])||0,_),y=_[0],b=_[1];R([{rotate:e.rotation+Math.PI/2,offset:v[0],r:0},{rotate:e.rotation-Math.PI/2,offset:v[1],r:Math.sqrt((u[0]-d[0])*(u[0]-d[0])+(u[1]-d[1])*(u[1]-d[1]))}],function(t,n){if(g[n]!==`none`&&g[n]!=null){var r=_v(g[n],-y/2,-b/2,y,b,p.stroke,!0),a=t.r+t.offset,o=f?d:u;r.attr({rotation:t.rotate,x:o[0]+a*Math.cos(e.rotation),y:o[1]-a*Math.sin(e.rotation),silent:!0,z2:11}),i.add(r)}})}}},axisTickLabelEstimate:function(e,t,n,r,i,a,o,s){qx(t,i,s)&&zx(e,t,n,r,i,a,o,ab.estimate)},axisTickLabelDetermine:function(e,t,n,r,i,a,o,s){qx(t,i,s)&&zx(e,t,n,r,i,a,o,ab.determine);var c=Gx(e,i,a,r);Hx(e,t.labelLayoutList,c),Kx(e,i,a,r,e.tickDirection)},axisName:function(e,t,n,r,i,a,o,s){var c=n.ensureRecord(r);t.nameEl&&=(i.remove(t.nameEl),c.nameLayout=c.nameLocation=null);var l=e.axisName;if(eS(l)){var u=e.nameLocation,d=e.nameDirection,f=r.getModel(`nameTextStyle`),p=r.get(`nameGap`)||0,m=r.axis.getExtent(),h=r.axis.inverse?-1:1,g=new Bt(0,0),_=new Bt(0,0);u===`start`?(g.x=m[0]-h*p,_.x=-h):u===`end`?(g.x=m[1]+h*p,_.x=h):(g.x=(m[0]+m[1])/2,g.y=e.labelOffset+d*p,_.y=d);var v=gt();_.transform(xt(v,v,e.rotation));var y=r.get(`nameRotate`);y!=null&&(y=y*Cx/180);var b,x;qy(u)?b=Ix.innerTextLayout(e.rotation,y??e.rotation,d):(b=Bx(e.rotation,u,y||0,m),x=e.raw.axisNameAvailableWidth,x!=null&&(x=Math.abs(x/Math.sin(b.rotation)),!isFinite(x)&&(x=null)));var S=f.getFont(),C=r.get(`nameTruncate`,!0)||{},w=C.ellipsis,T=Se(e.raw.nameTruncateMaxWidth,C.maxWidth,x),E=s.nameMarginLevel||0,D=new Jo({x:g.x,y:g.y,rotation:b.rotation,silent:Ix.isLabelSilent(r),style:qf(f,{text:l,font:S,overflow:`truncate`,width:T,ellipsis:w,fill:f.getTextColor()||r.get([`axisLine`,`lineStyle`,`color`]),align:f.get(`align`)||b.textAlign,verticalAlign:f.get(`verticalAlign`)||b.textVerticalAlign}),z2:1});if(Df({el:D,componentModel:r,itemName:l}),D.__fullText=l,D.anid=`name`,r.get(`triggerEvent`)){var O=Ix.makeAxisEventDataBase(r);O.targetType=`axisName`,O.name=l,Xc(D).eventData=O}a.add(D),D.updateTransform(),t.nameEl=D;var k=c.nameLayout=dx({label:D,priority:D.z2,defaultAttr:{ignore:D.ignore},marginDefault:qy(u)?Tx[E]:Ex[E]});if(c.nameLocation=u,i.add(D),D.decomposeTransform(),e.shouldNameMoveOverlap&&k){var A=n.ensureRecord(r);n.resolveAxisNameOverlap(e,n,r,k,_,A)}}}};function zx(e,t,n,r,i,a,o,s){Yx(t)||Jx(e,t,i,s,r,o);var c=t.labelLayoutList;Zx(e,r,c,a),nS(r,e.rotation,c);var l=e.optionHideOverlap;Vx(r,c,l),l&&vx(ce(c,function(e){return e&&!e.label.ignore})),Ax(e,n,r,c)}function Bx(e,t,n,r){var i=Ps(n-e),a,o,s=r[0]>r[1],c=t===`start`&&!s||t!==`start`&&s;return Fs(i-Cx/2)?(o=c?`bottom`:`top`,a=`center`):Fs(i-Cx*1.5)?(o=c?`top`:`bottom`,a=`center`):(o=`middle`,a=iCx/2?c?`left`:`right`:c?`right`:`left`),{rotation:i,textAlign:a,textVerticalAlign:o}}function Vx(e,t,n){var r=e.axis,i=e.get([`axisLabel`,`customValues`]);if(Gy(r))return;function a(e,a,o){var s=dx(t[a]),c=dx(t[o]),l=r.scale;if(!(!s||!c)){if(e==null){if(!n&&i)return;var u=Dx(s.label).labelInfo.tick;if(ty(l)&&u.notNice||ry(l)&&u.offInterval){Ux(s.label);return}}if(e===!1||s.suggestIgnore){Ux(s.label);return}if(c.suggestIgnore){Ux(c.label);return}var d=.1;if(!n){var f=[0,0,0,0];s=gx({marginForce:f},s),c=gx({marginForce:f},c)}yx(s,c,null,{touchThreshold:d})&&Ux(e?c.label:s.label)}}var o=e.get([`axisLabel`,`showMinLabel`]),s=e.get([`axisLabel`,`showMaxLabel`]),c=t.length;a(o,0,1),a(s,c-1,c-2)}function Hx(e,t,n){e.showMinorTicks||R(t,function(e){if(e&&e.label.ignore)for(var t=0;t0&&u[1]>0&&!d[0]&&(u[0]=0),u[0]<0&&u[1]<0&&!d[1]&&(u[1]=0));var y=!1;u[0]>u[1]&&(u.reverse(),y=!0);var b=fS(e,t.get(`startValue`,!0)),x=b!=null;!qs(b)&&r&&(b=e.getDefaultStartValue?e.getDefaultStartValue():0),qs(b)&&(x||!_||v)&&(bu[1]&&!d[1]&&(u[1]=b,d[1]=!0)),dS(this._i={scale:e,dataMM:l,noZoomEffMM:u,zoomMM:[],fixMM:d,zoomFixMM:[!1,!1],startValue:b,isBlank:g,incl0:v,tggAxInv:y,ctnShp:i},u)}return e.prototype.makeNoZoom=function(){return this._i.noZoomEffMM.slice()},e.prototype.makeFinal=function(){var e=this._i,t=e.zoomMM,n=e.noZoomEffMM,r=e.zoomFixMM,i=e.fixMM,a={fixMM:i,zoomFixMM:r,isBlank:e.isBlank,incl0:e.incl0,tggAxInv:e.tggAxInv,ctnShp:e.ctnShp,effMM:n.slice()},o=a.effMM;return t[0]!=null&&(o[0]=t[0],i[0]=r[0]=!0),t[1]!=null&&(o[1]=t[1],i[1]=r[1]=!0),dS(e,o),a},e.prototype.makeRenderInfo=function(){return{startValue:this._i.startValue}},e.prototype.setZoomMM=function(e,t){this._i.zoomMM[e]=t},e}();function dS(e,t){var n=e.scale,r=e.dataMM;n.sanitize&&(t[0]=n.sanitize(t[0],r),t[1]=n.sanitize(t[1],r),Vc(t))}function fS(e,t){return t==null?null:xe(t)?NaN:e.parse(t)}function pS(e,t){var n;if(ry(e))n=[0,0];else{var r=t.get(`boundaryGap`);typeof r==`boolean`&&(r=null),n=B(r)?r:[r,r]}return[mS(n[0]),mS(n[1])]}function mS(e){return Sn(typeof e==`boolean`?0:e,1)||0}function hS(e){var t=cS(e.scale);return t.extent||=Nc(),t}function gS(e,t){hS(e).dimIdxInCoord=t.get(e.dim)}function _S(e,t){var n=e.scale,r=e.model,i=e.dim;n.rawExtentInfo||vS(n,e,i,r,t)}function vS(e,t,n,r,i){var a=hS(t),o=a.extent,s=!1;Rb(t,function(r){if(r.boxCoordinateSystem){var i=Qm(r).coord,c=a.dimIdxInCoord;if(c>=0&&B(i)){var l=i[c];l!=null&&!B(l)&&Pc(o,e.parse(l))}}else if(r.coordinateSystem){var u=r.getData();if(u){var d=e.getFilter?e.getFilter():null;R(Ky(u,n),function(e){Lc(o,u.getApproximateExtent(e,d))})}r.__requireStartValue&&r.__requireStartValue(t)&&(s=!0)}});var c=oee(e,t,r);bS(e,new uS(e,r,o,s,c),i),a.extent=null}function yS(e,t){var n=e.scale;bS(n,new uS(n,e.model,t,!1,!1),lS)}function bS(e,t,n){e.rawExtentInfo=t,t.from=n}function xS(e,t){SS.set(e,t)}var SS=Ie();function CS(e,t,n,r,i){e.rawExtentInfo||yS({scale:e,model:t},i||Nc());var a=e.rawExtentInfo.makeFinal(),o=a.effMM;return e.setExtent(o[0],o[1]),e.setBlank(a.isBlank),r&&a.tggAxInv&&n&&!n.get(`legacyMinMaxDontInverseAxis`)&&(r.inverse=!r.inverse),a}function oee(e,t,n){var r=$y(e,n),i=n.get(`containShape`,!0);if(i==null&&!r&&(i=!0),!i)return!1;var a=!1;return Hb(t,function(e){a=!!SS.get(e)||a}),a}function see(e,t,n,r){if(n.ctnShp){var i;if(Hb(e,function(t){var n=SS.get(t);if(n){var a=n(e,r);a&&(i||=[0,0],Fc(i,a[0]),Ic(i,a[1]),By(e))}}),i){var a=t.getExtent();if(ry(t))e.onBand||t.setExtent2(1,ds(a[0],a[0]+i[0]),fs(a[1],a[1]+i[1]));else{var o=a.slice();n.zoomFixMM[0]||(o[0]=ds(o[0],t.transformOut(t.transformIn(o[0],null)+i[0],null))),n.zoomFixMM[1]||(o[1]=fs(o[1],t.transformOut(t.transformIn(o[1],null)+i[1],null))),(o[0]a[1])&&t.setExtent2(1,o[0],o[1])}}}}function cee(){Wb(`liPosMinGap`,lee)}function lee(e,t,n){var r=Ie(),i=n.serUids,a=n.liPosMinGap,o,s=t.axis,c=s.scale,l=c.needTransform(),u=c.getFilter?c.getFilter():null,d=fm(u);function f(n){Bb(e,t.sers,function(e){var t=e.getRawData(),r=t.getDimensionIndex(t.mapDimension(s.dim));r>=0&&n(r,e,t.getStore())})}var p=0;if(f(function(e,t,n){r.set(t.uid,1),(!i||!i.hasKey(t.uid))&&(o=!0),p+=n.count()}),(!i||i.keys().length!==r.keys().length)&&(o=!0),!o&&a!=null){t.liPosMinGap=a;return}wv(wS,p);var m=0;f(function(e,t,n){for(var r=0,i=n.count();r0&&v0?-2:-1,n.serUids=r}var wS=wv({ctor:Sv},50);function uee(e){return function(t,n){var r=Zb(t,{fromStat:{key:e}});if(qs(r.w2))return[-r.w2/2,r.w2/2]}}function TS(e,t){return e+`|&`+t}function dee(e){return cee(),{liPosMinGap:!ry(e.scale)}}function fee(e,t,n,r){Jb(e,{key:t,seriesType:n,coordSysType:r,getMetrics:dee})}function pee(e){return e.scale.rawExtentInfo.makeRenderInfo().startValue}var ES={left:0,right:0,top:0,bottom:0},DS=[`25%`,`25%`],OS=`cartesian2d`,kS=function(e){p(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.mergeDefaultAndTheme=function(t,n){var r=Qg(t.outerBounds);e.prototype.mergeDefaultAndTheme.apply(this,arguments),r&&t.outerBounds&&Zg(t.outerBounds,r)},t.prototype.mergeOption=function(t,n){e.prototype.mergeOption.apply(this,arguments),this.option.outerBounds&&t.outerBounds&&Zg(this.option.outerBounds,t.outerBounds)},t.type=`grid`,t.dependencies=[`xAxis`,`yAxis`],t.layoutMode=`box`,t.defaultOption={show:!1,z:0,left:`15%`,top:65,right:`10%`,bottom:80,containLabel:!1,outerBoundsMode:`auto`,outerBounds:ES,outerBoundsContain:`all`,outerBoundsClampWidth:DS[0],outerBoundsClampHeight:DS[1],backgroundColor:D_.color.transparent,borderWidth:1,borderColor:D_.color.neutral30},t}(t_),mee=Hc(),AS=`__ec_stack_`;function jS(e){return e.get(`stack`)||AS+e.seriesIndex}function MS(e,t){var n=NS(e,t);return n.columnMap=PS(n),n}function NS(e,t){var n=TS(t,OS),r=[],i=Zb(e,{fromStat:{key:n},min:1});return zb(e,n,function(e){r.push({barWidth:Cs(e.get(`barWidth`),i.w),barMaxWidth:Cs(e.get(`barMaxWidth`),i.w),barMinWidth:Cs(e.get(`barMinWidth`)||(LS(e)?.5:1),i.w),barGap:e.get(`barGap`),barCategoryGap:e.get(`barCategoryGap`),defaultBarGap:e.get(`defaultBarGap`),stackId:jS(e)})}),{bandWidthResult:i,seriesInfo:r}}function PS(e){var t=e.bandWidthResult.w,n=t,r=0,i,a,o=[],s={};R(e.seriesInfo,function(e,t){t||(a=e.defaultBarGap||0);var c=e.stackId;ze(s,c)||r++;var l=s[c];l||(l=s[c]={width:0,maxWidth:0},o.push(c));var u=e.barWidth;u&&!l.width&&(l.width=u,u=ds(n,u),n-=u);var d=e.barMaxWidth;d&&(l.maxWidth=d);var f=e.barMinWidth;f&&(l.minWidth=f);var p=e.barGap;p!=null&&(a=p);var m=e.barCategoryGap;m!=null&&(i=m)}),i??=fs(35-o.length*4,15)+`%`;var c=Cs(i,t),l=Cs(a,1),u=(n-c)/(r+(r-1)*l);u=fs(u,0),R(o,function(e){var t=s[e],i=t.maxWidth,a=t.minWidth;if(t.width){var o=t.width;i&&(o=ds(o,i)),a&&(o=fs(o,a)),t.width=o,n-=o+l*o,r--}else{var o=u;i&&io&&(o=a),o!==u&&(t.width=o,n-=o+l*o,r--)}}),u=(n-c)/(r+(r-1)*l),u=fs(u,0);var d=0,f;R(o,function(e){var t=s[e];t.width||=u,f=t,d+=t.width*(1+l)}),f&&(d-=f.width*l);var p={},m=-d/2;return R(o,function(e){var n=s[e];p[e]=p[e]||{bandWidth:t,offset:m,width:n.width},m+=n.width*(1+l)}),p}function FS(e){return{seriesType:e,overallReset:function(t){var n=TS(e,OS);Vb(t,n,function(t){var r=MS(t,e);zb(t,n,function(e){var t=r.columnMap[jS(e)];e.getData().setLayout({bandWidth:t.bandWidth,offset:t.offset,size:t.width})})})}}}function IS(e){return{seriesType:e,plan:Tv(),reset:function(e){if(iS(e)){var t=e.getData(),n=e.coordinateSystem,r=n.getBaseAxis(),i=n.getOtherAxis(r),a=t.getDimensionIndex(t.mapDimension(i.dim)),o=t.getDimensionIndex(t.mapDimension(r.dim)),s=e.get(`showBackground`,!0),c=t.mapDimension(i.dim),l=t.getCalculationInfo(`stackResultDimension`),u=sh(t,c)&&!!t.getCalculationInfo(`stackedOnSeries`),d=i.isHorizontal(),f=i.toGlobalCoord(i.dataToCoord(pee(i))),p=LS(e),m=e.get(`barMinHeight`)||0,h=l&&t.getDimensionIndex(l),g=t.getLayout(`size`),_=t.getLayout(`offset`);return{progress:function(e,t){for(var r=e.count,i=p&&Cv(r*3),c=p&&s&&Cv(r*3),l=p&&Cv(r),v=n.master.getRect(),y=d?v.width:v.height,b,x=t.getStore(),S=0;(b=e.next())!=null;){var C=x.get(u?h:a,b),w=x.get(o,b),T=f,E=void 0;u&&(E=+C-x.get(a,b));var D=void 0,O=void 0,k=void 0,A=void 0;if(d){var j=n.dataToPoint([C,w]);u&&(T=n.dataToPoint([E,w])[0]),D=T,O=j[1]+_,k=j[0]-T,A=g,ps(k)s){u=(p+l)/2;break}f===1&&(d=m-r[0].tickValue)}u??(l?l&&(u=r[r.length-1].coord):u=r[0].coord),a[n]=e.toGlobalCoord(u)}});else{var o=this.getData(),s=o.getLayout(`offset`),c=o.getLayout(`size`),l=+!r.getBaseAxis().isHorizontal();a[l]+=s+c/2}return a}return[NaN,NaN]},t.prototype.__requireStartValue=function(e){return this.getBaseAxis()!==e},t.type=`series.__base_bar__`,t.defaultOption={z:2,coordinateSystem:`cartesian2d`,legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:`mod`,defaultBarGap:`10%`},t}(nv);nv.registerClass(BS);var VS=function(e){p(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.getInitialData=function(){return uh(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get(`realtimeSort`,!0)||null})},t.prototype.getProgressive=function(){return this.get(`large`)?this.get(`progressive`):!1},t.prototype.__preparePipelineContext=function(e,t){var n=Jc(this,e,t);return n.progressiveRender&&(n.large=!0),n},t.prototype.brushSelector=function(e,t,n){return n.rect(t.getItemLayout(e))},t.type=`series.bar`,t.dependencies=[`grid`,`polar`],t.defaultOption=_h(BS.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:`rgba(180, 180, 180, 0.2)`,borderColor:null,borderWidth:0,borderType:`solid`,borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:D_.color.primary,borderWidth:2}},realtimeSort:!1}),t}(BS),HS=`\0__throttleOriginMethod`,US=`\0__throttleRate`,WS=`\0__throttleType`;function GS(e,t,n){var r,i=0,a=0,o=null,s,c,l,u;t||=0;function d(){a=new Date().getTime(),o=null,e.apply(c,l||[])}var f=function(){var e=[...arguments];r=new Date().getTime(),c=this,l=e;var f=u||t,p=u||n;u=null,s=r-(p?i:a)-f,clearTimeout(o),p?o=setTimeout(d,f):s>=0?d():o=setTimeout(d,-s),i=r};return f.clear=function(){o&&=(clearTimeout(o),null)},f.debounceNextCall=function(e){u=e},f}function KS(e,t,n,r){var i=e[t];if(i){var a=i[HS]||i,o=i[WS];if(i[US]!==n||o!==r){if(n==null||!r)return e[t]=a;i=e[t]=GS(a,n,r===`debounce`),i[HS]=a,i[WS]=r,i[US]=n}return i}}function qS(e,t){var n=e[t];n&&n[HS]&&(n.clear&&n.clear(),e[t]=n[HS])}var JS=function(){function e(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return e}(),YS=function(e){p(t,e);function t(t){var n=e.call(this,t)||this;return n.type=`sausage`,n}return t.prototype.getDefaultShape=function(){return new JS},t.prototype.buildPath=function(e,t){var n=t.cx,r=t.cy,i=Math.max(t.r0||0,0),a=Math.max(t.r,0),o=(a-i)*.5,s=i+o,c=t.startAngle,l=t.endAngle,u=t.clockwise,d=Math.PI*2,f=u?l-cMath.PI/2&&ua)return!0;a=l}return!1},t.prototype._isOrderDifferentInView=function(e,t){for(var n=t.scale,r=n.getExtent(),i=Math.max(0,r[0]),a=Math.min(r[1],n.getOrdinalMeta().categories.length-1);i<=a;++i)if(e.ordinalNumbers[i]!==n.getRawOrdinalNumber(i))return!0},t.prototype._updateSortWithinSameData=function(e,t,n,r){if(this._isOrderChangedWithinSameData(e,t,n)){var i=this._dataSort(e,n,t);this._isOrderDifferentInView(i,n)&&(this._removeOnRenderedListener(r),r.dispatchAction({type:`changeAxisOrder`,componentType:n.dim+`Axis`,axisId:n.index,sortInfo:i}))}},t.prototype._dispatchInitSort=function(e,t,n){var r=t.baseAxis,i=this._dataSort(e,r,function(n){return e.get(e.mapDimension(t.otherAxis.dim),n)});n.dispatchAction({type:`changeAxisOrder`,componentType:r.dim+`Axis`,isInitSort:!0,axisId:r.index,sortInfo:i})},t.prototype.remove=function(e,t){this._clear(this._model),this._removeOnRenderedListener(t)},t.prototype.dispose=function(e,t){this._removeOnRenderedListener(t)},t.prototype._removeOnRenderedListener=function(e){this._onRendered&&=(e.getZr().off(`rendered`,this._onRendered),null)},t.prototype._clear=function(e){var t=this.group,n=this._data;e&&e.isAnimationEnabled()&&n&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],n.eachItemGraphicEl(function(t){Gd(t,e,Xc(t).dataIndex)})):t.removeAll(),this._data=null,this._isFirstFrame=!0},t.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},t.type=`bar`,t}(Ov),iC={cartesian2d:function(e,t){var n=t.width<0?-1:1,r=t.height<0?-1:1;n<0&&(t.x+=t.width,t.width=-t.width),r<0&&(t.y+=t.height,t.height=-t.height);var i=e.x+e.width,a=e.y+e.height,o=tC(t.x,e.x),s=nC(t.x+t.width,i),c=tC(t.y,e.y),l=nC(t.y+t.height,a),u=si?s:o,t.y=d&&c>a?l:c,t.width=u?0:s-o,t.height=d?0:l-c,n<0&&(t.x+=t.width,t.width=-t.width),r<0&&(t.y+=t.height,t.height=-t.height),u||d},polar:function(e,t){var n=t.r0<=t.r?1:-1;if(n<0){var r=t.r;t.r=t.r0,t.r0=r}var i=nC(t.r,e.r),a=tC(t.r0,e.r0);t.r=i,t.r0=a;var o=i-a<0;if(n<0){var r=t.r;t.r=t.r0,t.r0=r}return o}},aC={cartesian2d:function(e,t,n,r,i,a,o,s,c){var l=new Uo({shape:I({},r),z2:1});if(l.__dataIndex=n,l.name=`item`,a){var u=l.shape,d=i?`height`:`width`;u[d]=0}return l},polar:function(e,t,n,r,i,a,o,s,c){var l=!i&&c?YS:id,u=new l({shape:r,z2:1});if(u.name=`item`,u.calculateTextPosition=XS(pC(i),{isRoundCap:l===YS}),a){var d=u.shape,f=i?`r`:`endAngle`,p={};d[f]=i?r.r0:r.startAngle,p[f]=r[f],(s?Bd:Vd)(u,{shape:p},a)}return u}};function oC(e,t){var n=e.get(`realtimeSort`,!0),r=t.getBaseAxis();if(n&&r.type===`category`&&t.type===`cartesian2d`)return{baseAxis:r,otherAxis:t.getOtherAxis(r)}}function sC(e,t,n,r,i,a,o,s){var c,l;a?(l={x:r.x,width:r.width},c={y:r.y,height:r.height}):(l={y:r.y,height:r.height},c={x:r.x,width:r.width}),s||(o?Bd:Vd)(n,{shape:c},t,i,null);var u=t?e.baseAxis.model:null;(o?Bd:Vd)(n,{shape:l},u,i)}function cC(e,t){for(var n=0;n0?1:-1,o=r.height>0?1:-1;return{x:r.x+a*i/2,y:r.y+o*i/2,width:r.width-a*i,height:r.height-o*i}},polar:function(e,t,n){var r=e.getItemLayout(t);return{cx:r.cx,cy:r.cy,r0:r.r0,r:r.r,startAngle:r.startAngle,endAngle:r.endAngle,clockwise:r.clockwise}}};function fC(e){return e.startAngle!=null&&e.endAngle!=null&&e.startAngle===e.endAngle}function pC(e){return function(e){var t=e?`Arc`:`Angle`;return function(e){switch(e){case`start`:case`insideStart`:case`end`:case`insideEnd`:return e+t;default:return e}}}(e)}function mC(e,t,n,r,i,a,o,s){var c=t.getItemVisual(n,`style`);if(!s){var l=r.get([`itemStyle`,`borderRadius`])||0;e.setShape(`r`,l)}else if(!a.get(`roundCap`)){var u=e.shape;I(u,eC(r.getModel(`itemStyle`),u,!0)),e.setShape(u)}e.useStyle(c);var d=r.getShallow(`cursor`);d&&e.attr(`cursor`,d);var f=s?o?i.r>=i.r0?`endArc`:`startArc`:i.endAngle>=i.startAngle?`endAngle`:`startAngle`:o?xC(i,a.coordinateSystem):SC(i,a.coordinateSystem),p=Kf(r);Gf(e,p,{labelFetcher:a,labelDataIndex:n,defaultText:yv(a.getData(),n),inheritColor:c.fill,defaultOpacity:c.opacity,defaultOutsidePosition:f});var m=e.getTextContent();if(s&&m){var h=r.get([`label`,`position`]);e.textConfig.inside=h===`middle`||null,ZS(e,h===`outside`?f:h,pC(o),r.get([`label`,`rotate`]))}rp(m,p,a.getRawValue(n),function(e){return bv(t,e)});var g=r.getModel([`emphasis`]);iu(e,g.get(`focus`),g.get(`blurScope`),g.get(`disabled`)),cu(e,r),fC(i)&&(e.style.fill=`none`,e.style.stroke=`none`,R(e.states,function(e){e.style&&(e.style.fill=e.style.stroke=`none`)}))}function gee(e,t){var n=e.get([`itemStyle`,`borderColor`]);if(!n||n===`none`)return 0;var r=e.get([`itemStyle`,`borderWidth`])||0,i=isNaN(t.width)?Number.MAX_VALUE:Math.abs(t.width),a=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);return Math.min(r,i,a)}var _ee=function(){function e(){}return e}(),hC=function(e){p(t,e);function t(t){var n=e.call(this,t)||this;return n.type=`largeBar`,n}return t.prototype.getDefaultShape=function(){return new _ee},t.prototype.buildPath=function(e,t){for(var n=t.points,r=this.baseDimIdx,i=1-this.baseDimIdx,a=[],o=[],s=this.barWidth,c=0;c=0?n:null},30,!1);function vC(e,t,n){for(var r=e.baseDimIdx,i=1-r,a=e.shape.points,o=e.largeDataIndices,s=[],c=[],l=e.barWidth,u=0,d=a.length/3;u=s[0]&&t<=s[0]+c[0]&&n>=s[1]&&n<=s[1]+c[1])return o[u]}return-1}function yC(e,t,n){if(Lv(n,`cartesian2d`)){var r=t,i=n.getArea();return{x:e?r.x:i.x,y:e?i.y:r.y,width:e?r.width:i.width,height:e?i.height:r.height}}var i=n.getArea(),a=t;return{cx:i.cx,cy:i.cy,r0:e?i.r0:a.r0,r:e?i.r:a.r,startAngle:e?a.startAngle:0,endAngle:e?a.endAngle:Math.PI*2}}function bC(e,t,n){return new(e.type===`polar`?id:Uo)({shape:yC(t,n,e),silent:!0,z2:0})}function xC(e,t){return e.height===0?t.getOtherAxis(t.getBaseAxis()).inverse?`bottom`:`top`:e.height>0?`bottom`:`top`}function SC(e,t){return e.width===0?t.getOtherAxis(t.getBaseAxis()).inverse?`left`:`right`:e.width>=0?`right`:`left`}function CC(e){e.registerChartView(rC),e.registerSeriesModel(VS),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,FS(`bar`)),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,IS(`bar`)),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,nb(`bar`)),e.registerAction({type:`changeAxisOrder`,event:`changeAxisOrder`,update:`update`},function(e,t){var n=e.componentType||`series`;t.eachComponent({mainType:n,query:e},function(t){e.sortInfo&&t.axis.setCategorySortInfo(e.sortInfo)})}),zS(e)}function wC(e,t,n,r,i){var a=e+t;n.isSilent(a)||r.eachComponent({mainType:`series`,subType:`pie`},function(e){for(var t=e.seriesIndex,r=e.option.selectedMap,o=i.selected,s=0;s=0){var i=r===`touchend`?t.changedTouches[0]:t.targetTouches[0];i&&jC(e,i,t,n)}else{jC(e,t,t,n);var a=FC(t);t.zrDelta=a?a/120:-(t.detail||0)/3}var o=t.button;return t.which==null&&o!==void 0&&OC.test(t.type)&&(t.which=o&1?1:o&2?3:o&4?2:0),t}function FC(e){var t=e.wheelDelta;if(t)return t;var n=e.deltaX,r=e.deltaY;if(n==null||r==null)return t;var i=Math.abs(r===0?n:r),a=r>0?-1:r<0?1:n>0?-1:1;return 3*i*a}function IC(e,t,n,r){e.addEventListener(t,n,r)}function LC(e,t,n,r){e.removeEventListener(t,n,r)}var RC=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0},zC=function(){function e(){this._track=[]}return e.prototype.recognize=function(e,t,n){return this._doTrack(e,t,n),this._recognize(e)},e.prototype.clear=function(){return this._track.length=0,this},e.prototype._doTrack=function(e,t,n){var r=e.touches;if(r){for(var i={points:[],touches:[],target:t,event:e},a=0,o=r.length;a1&&r&&r.length>1){var a=BC(r)/BC(i);!isFinite(a)&&(a=1),t.pinchScale=a;var o=VC(r);return t.pinchX=o[0],t.pinchY=o[1],{type:`pinch`,target:e[0].target,event:t}}}}},UC=`silent`;function WC(e,t,n){return{type:e,event:n,target:t.target,topTarget:t.topTarget,cancelBubble:!1,offsetX:n.zrX,offsetY:n.zrY,gestureEvent:n.gestureEvent,pinchX:n.pinchX,pinchY:n.pinchY,pinchScale:n.pinchScale,wheelDelta:n.zrDelta,zrByTouch:n.zrByTouch,which:n.which,stop:GC}}function GC(){RC(this.event)}var KC=function(e){p(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.handler=null,t}return t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t}(Ki),qC=function(){function e(e,t){this.x=e,this.y=t}return e}(),JC=[`click`,`dblclick`,`mousewheel`,`mouseout`,`mouseup`,`mousedown`,`mousemove`,`contextmenu`],YC=new en(0,0,0,0),XC=function(e){p(t,e);function t(t,n,r,i,a){var o=e.call(this)||this;return o._hovered=new qC(0,0),o.storage=t,o.painter=n,o.painterRoot=i,o._pointerSize=a,r||=new KC,o.proxy=null,o.setHandlerProxy(r),o._draggingMgr=new DC(o),o}return t.prototype.setHandlerProxy=function(e){this.proxy&&this.proxy.dispose(),e&&(R(JC,function(t){e.on&&e.on(t,this[t],this)},this),e.handler=this),this.proxy=e},t.prototype.mousemove=function(e){var t=e.zrX,n=e.zrY,r=$C(this,t,n),i=this._hovered,a=i.target;a&&!a.__zr&&(i=this.findHover(i.x,i.y),a=i.target);var o=this._hovered=r?new qC(t,n):this.findHover(t,n),s=o.target,c=this.proxy;c.setCursor&&c.setCursor(s?s.cursor:`default`),a&&s!==a&&this.dispatchToElement(i,`mouseout`,e),this.dispatchToElement(o,`mousemove`,e),s&&s!==a&&this.dispatchToElement(o,`mouseover`,e)},t.prototype.mouseout=function(e){var t=e.zrEventControl;t!==`only_globalout`&&this.dispatchToElement(this._hovered,`mouseout`,e),t!==`no_globalout`&&this.trigger(`globalout`,{type:`globalout`,event:e})},t.prototype.resize=function(){this._hovered=new qC(0,0)},t.prototype.dispatch=function(e,t){var n=this[e];n&&n.call(this,t)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(e){var t=this.proxy;t.setCursor&&t.setCursor(e)},t.prototype.dispatchToElement=function(e,t,n){e||={};var r=e.target;if(!(r&&r.silent)){for(var i=`on`+t,a=WC(t,e,n);r&&(r[i]&&(a.cancelBubble=!!r[i].call(r,a)),r.trigger(t,a),r=r.__hostTarget?r.__hostTarget:r.parent,!a.cancelBubble););a.cancelBubble||(this.trigger(t,a),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(e){typeof e[i]==`function`&&e[i].call(e,a),e.trigger&&e.trigger(t,a)}))}},t.prototype.findHover=function(e,t,n){var r=this.storage.getDisplayList(),i=new qC(e,t);if(QC(r,i,e,t,n),this._pointerSize&&!i.target){for(var a=[],o=this._pointerSize,s=o/2,c=new en(e-s,t-s,o,o),l=r.length-1;l>=0;l--){var u=r[l];u!==n&&!u.ignore&&!u.ignoreCoarsePointer&&(!u.parent||!u.parent.ignoreCoarsePointer)&&(YC.copy(u.getBoundingRect()),u.transform&&YC.applyTransform(u.transform),YC.intersect(c)&&a.push(u))}if(a.length){for(var d=4,f=Math.PI/12,p=Math.PI*2,m=0;m4)return;this._downPoint=null}this.dispatchToElement(a,e,t)}});function ZC(e,t,n){if(e[e.rectHover?`rectContain`:`contain`](t,n)){for(var r=e,i=void 0,a=!1;r;){if(r.ignoreClip&&(a=!0),!a){var o=r.getClipPath();if(o&&!o.contain(t,n))return!1}r.silent&&(i=!0);var s=r.__hostTarget;r=s?r.ignoreHostSilent?null:s:r.parent}return!i||UC}return!1}function QC(e,t,n,r,i){for(var a=e.length-1;a>=0;a--){var o=e[a],s=void 0;if(o!==i&&!o.ignore&&(s=ZC(o,n,r))&&(!t.topTarget&&(t.topTarget=o),s!==UC)){t.target=o;break}}}function $C(e,t,n){var r=e.painter;return t<0||t>r.getWidth()||n<0||n>r.getHeight()}var ew=32,tw=7;function nw(e){for(var t=0;e>=ew;)t|=e&1,e>>=1;return e+t}function rw(e,t,n,r){var i=t+1;if(i===n)return 1;if(r(e[i++],e[t])<0){for(;i=0;)i++;return i-t}function iw(e,t,n){for(n--;t>>1,i(a,e[c])<0?s=c:o=c+1;var l=r-o;switch(l){case 3:e[o+3]=e[o+2];case 2:e[o+2]=e[o+1];case 1:e[o+1]=e[o];break;default:for(;l>0;)e[o+l]=e[o+l-1],l--}e[o]=a}}function ow(e,t,n,r,i,a){var o=0,s=0,c=1;if(a(e,t[n+i])>0){for(s=r-i;c0;)o=c,c=(c<<1)+1,c<=0&&(c=s);c>s&&(c=s),o+=i,c+=i}else{for(s=i+1;cs&&(c=s);var l=o;o=i-c,c=i-l}for(o++;o>>1);a(e,t[n+u])>0?o=u+1:c=u}return c}function sw(e,t,n,r,i,a){var o=0,s=0,c=1;if(a(e,t[n+i])<0){for(s=i+1;cs&&(c=s);var l=o;o=i-c,c=i-l}else{for(s=r-i;c=0;)o=c,c=(c<<1)+1,c<=0&&(c=s);c>s&&(c=s),o+=i,c+=i}for(o++;o>>1);a(e,t[n+u])<0?c=u:o=u+1}return c}function cw(e,t){var n=tw,r,i,a=0,o=[];r=[],i=[];function s(e,t){r[a]=e,i[a]=t,a+=1}function c(){for(;a>1;){var e=a-2;if(e>=1&&i[e-1]<=i[e]+i[e+1]||e>=2&&i[e-2]<=i[e]+i[e-1])i[e-1]i[e+1])break;u(e)}}function l(){for(;a>1;){var e=a-2;e>0&&i[e-1]=tw||m>=tw);if(h)break;f<0&&(f=0),f+=2}if(n=f,n<1&&(n=1),i===1){for(c=0;c=0;c--)e[p+c]=e[f+c];e[d]=o[u];return}for(var m=n;;){var h=0,g=0,_=!1;do if(t(o[u],e[l])<0){if(e[d--]=e[l--],h++,g=0,--i===0){_=!0;break}}else if(e[d--]=o[u--],g++,h=0,--s===1){_=!0;break}while((h|g)=0;c--)e[p+c]=e[f+c];if(i===0){_=!0;break}}if(e[d--]=o[u--],--s===1){_=!0;break}if(g=s-ow(e[l],o,0,s,s-1,t),g!==0){for(d-=g,u-=g,s-=g,p=d+1,f=u+1,c=0;c=tw||g>=tw);if(_)break;m<0&&(m=0),m+=2}if(n=m,n<1&&(n=1),s===1){for(d-=i,l-=i,p=d+1,f=l+1,c=i-1;c>=0;c--)e[p+c]=e[f+c];e[d]=o[u]}else if(s===0)throw Error();else for(f=d-(s-1),c=0;cs&&(c=s),aw(e,n,n+c,n+a,t),a=c}o.pushRun(n,a),o.mergeRuns(),i-=a,n+=a}while(i!==0);o.forceMergeRuns()}}var uw=!1;function dw(){uw||(uw=!0,console.warn(`z / z2 / zlevel of displayable is invalid, which may cause unexpected errors`))}function fw(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var pw=function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=fw}return e.prototype.traverse=function(e,t){for(var n=0;n=0&&this._roots.splice(r,1)},e.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},e.prototype.getRoots=function(){return this._roots},e.prototype.dispose=function(){this._displayList=null,this._roots=null},e}(),mw=Ue.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(e){return setTimeout(e,16)};function hw(){return new Date().getTime()}var gw=function(e){p(t,e);function t(t){var n=e.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,t||={},n.stage=t.stage||{},n}return t.prototype.addClip=function(e){e.animation&&this.removeClip(e),this._head?(this._tail.next=e,e.prev=this._tail,e.next=null,this._tail=e):this._head=this._tail=e,e.animation=this},t.prototype.addAnimator=function(e){e.animation=this;var t=e.getClip();t&&this.addClip(t)},t.prototype.removeClip=function(e){if(e.animation){var t=e.prev,n=e.next;t?t.next=n:this._head=n,n?n.prev=t:this._tail=t,e.next=e.prev=e.animation=null}},t.prototype.removeAnimator=function(e){var t=e.getClip();t&&this.removeClip(t),e.animation=null},t.prototype.update=function(e){for(var t=hw()-this._pausedTime,n=t-this._time,r=this._head;r;){var i=r.next;r.step(t,n)?(r.ondestroy(),this.removeClip(r),r=i):r=i}this._time=t,e||(this.trigger(`frame`,n),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var e=this;this._running=!0;function t(){e._running&&(mw(t),!e._paused&&e.update())}mw(t)},t.prototype.start=function(){this._running||(this._time=hw(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||=(this._pauseStart=hw(),!0)},t.prototype.resume=function(){this._paused&&=(this._pausedTime+=hw()-this._pauseStart,!1)},t.prototype.clear=function(){for(var e=this._head;e;){var t=e.next;e.prev=e.next=e.animation=null,e=t}this._head=this._tail=null},t.prototype.isFinished=function(){return this._head==null},t.prototype.animate=function(e,t){t||={},this.start();var n=new Gi(e,t.loop);return this.addAnimator(n),n},t}(Ki),_w=300,vw=Ue.domSupported,yw=(function(){var e=[`click`,`dblclick`,`mousewheel`,`wheel`,`mouseout`,`mouseup`,`mousedown`,`mousemove`,`contextmenu`],t=[`touchstart`,`touchend`,`touchmove`],n={pointerdown:1,pointerup:1,pointermove:1,pointerout:1};return{mouse:e,touch:t,pointer:z(e,function(e){var t=e.replace(`mouse`,`pointer`);return n.hasOwnProperty(t)?t:e})}})(),bw={mouse:[`mousemove`,`mouseup`],pointer:[`pointermove`,`pointerup`]},xw=!1;function Sw(e){var t=e.pointerType;return t===`pen`||t===`touch`}function Cw(e){e.touching=!0,e.touchTimer!=null&&(clearTimeout(e.touchTimer),e.touchTimer=null),e.touchTimer=setTimeout(function(){e.touching=!1,e.touchTimer=null},700)}function ww(e){e&&(e.zrByTouch=!0)}function Tw(e,t){return PC(e.dom,new Dw(e,t),!0)}function Ew(e,t){for(var n=t,r=!1;n&&n.nodeType!==9&&!(r=n.domBelongToZr||n!==t&&n===e.painterRoot);)n=n.parentNode;return r}var Dw=function(){function e(e,t){this.stopPropagation=Be,this.stopImmediatePropagation=Be,this.preventDefault=Be,this.type=t.type,this.target=this.currentTarget=e.dom,this.pointerType=t.pointerType,this.clientX=t.clientX,this.clientY=t.clientY}return e}(),Ow={mousedown:function(e){e=PC(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger(`mousedown`,e)},mousemove:function(e){e=PC(this.dom,e);var t=this.__mayPointerCapture;t&&(e.zrX!==t[0]||e.zrY!==t[1])&&this.__togglePointerCapture(!0),this.trigger(`mousemove`,e)},mouseup:function(e){e=PC(this.dom,e),this.__togglePointerCapture(!1),this.trigger(`mouseup`,e)},mouseout:function(e){e=PC(this.dom,e);var t=e.toElement||e.relatedTarget;Ew(this,t)||(this.__pointerCapturing&&(e.zrEventControl=`no_globalout`),this.trigger(`mouseout`,e))},wheel:function(e){xw=!0,e=PC(this.dom,e),this.trigger(`mousewheel`,e)},mousewheel:function(e){xw||(e=PC(this.dom,e),this.trigger(`mousewheel`,e))},touchstart:function(e){e=PC(this.dom,e),ww(e),this.__lastTouchMoment=new Date,this.handler.processGesture(e,`start`),Ow.mousemove.call(this,e),Ow.mousedown.call(this,e)},touchmove:function(e){e=PC(this.dom,e),ww(e),this.handler.processGesture(e,`change`),Ow.mousemove.call(this,e)},touchend:function(e){e=PC(this.dom,e),ww(e),this.handler.processGesture(e,`end`),Ow.mouseup.call(this,e),new Date-+this.__lastTouchMoment<_w&&Ow.click.call(this,e)},pointerdown:function(e){Ow.mousedown.call(this,e)},pointermove:function(e){Sw(e)||Ow.mousemove.call(this,e)},pointerup:function(e){Ow.mouseup.call(this,e)},pointerout:function(e){Sw(e)||Ow.mouseout.call(this,e)}};R([`click`,`dblclick`,`contextmenu`],function(e){Ow[e]=function(t){t=PC(this.dom,t),this.trigger(e,t)}});var kw={pointermove:function(e){Sw(e)||kw.mousemove.call(this,e)},pointerup:function(e){kw.mouseup.call(this,e)},mousemove:function(e){this.trigger(`mousemove`,e)},mouseup:function(e){var t=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger(`mouseup`,e),t&&(e.zrEventControl=`only_globalout`,this.trigger(`mouseout`,e))}};function Aw(e,t){var n=t.domHandlers;Ue.pointerEventsSupported?R(yw.pointer,function(r){Mw(t,r,function(t){n[r].call(e,t)})}):(Ue.touchEventsSupported&&R(yw.touch,function(r){Mw(t,r,function(i){n[r].call(e,i),Cw(t)})}),R(yw.mouse,function(r){Mw(t,r,function(i){i=NC(i),t.touching||n[r].call(e,i)})}))}function jw(e,t){Ue.pointerEventsSupported?R(bw.pointer,n):Ue.touchEventsSupported||R(bw.mouse,n);function n(n){function r(r){r=NC(r),Ew(e,r.target)||(r=Tw(e,r),t.domHandlers[n].call(e,r))}Mw(t,n,r,{capture:!0})}}function Mw(e,t,n,r){e.mounted[t]=n,e.listenerOpts[t]=r,IC(e.domTarget,t,n,r)}function Nw(e){var t=e.mounted;for(var n in t)t.hasOwnProperty(n)&&LC(e.domTarget,n,t[n],e.listenerOpts[n]);e.mounted={}}var Pw=function(){function e(e,t){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=e,this.domHandlers=t}return e}(),Fw=function(e){p(t,e);function t(t,n){var r=e.call(this)||this;return r.__pointerCapturing=!1,r.dom=t,r.painterRoot=n,r._localHandlerScope=new Pw(t,Ow),vw&&(r._globalHandlerScope=new Pw(document,kw)),Aw(r,r._localHandlerScope),r}return t.prototype.dispose=function(){Nw(this._localHandlerScope),vw&&Nw(this._globalHandlerScope)},t.prototype.setCursor=function(e){this.dom.style&&(this.dom.style.cursor=e||`default`)},t.prototype.__togglePointerCapture=function(e){if(this.__mayPointerCapture=null,vw&&this.__pointerCapturing^+e){this.__pointerCapturing=e;var t=this._globalHandlerScope;e?jw(this,t):Nw(t)}},t}(Ki),Iw={},Lw={};function vee(e){delete Lw[e]}function yee(e){if(!e)return!1;if(typeof e==`string`)return $r(e,1)0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},e.prototype.setSleepAfterStill=function(e){this._sleepAfterStill=e},e.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},e.prototype.refreshHover=function(){this._needsRefreshHover=!0},e.prototype.refreshHoverImmediately=function(){this._disposed||this._refresh({animUpdate:!1,refresh:!1,refreshHover:!0})},e.prototype.resize=function(e){this._disposed||(e||={},this.painter.resize(e.width,e.height),this.handler.resize())},e.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},e.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},e.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},e.prototype.setCursorStyle=function(e){this._disposed||this.handler.setCursorStyle(e)},e.prototype.findHover=function(e,t){if(!this._disposed)return this.handler.findHover(e,t)},e.prototype.on=function(e,t,n){return this._disposed||this.handler.on(e,t,n),this},e.prototype.off=function(e,t){this._disposed||this.handler.off(e,t)},e.prototype.trigger=function(e,t){this._disposed||this.handler.trigger(e,t)},e.prototype.clear=function(){if(!this._disposed){for(var e=this.storage.getRoots(),t=0;t=0;o--)r[o]&&!vc(r[o])?a=!0:(r[o]=null,!a&&i--);r.length=i,e[n]=r}}),delete e[Yw],e},t.prototype.setTheme=function(e){this._theme=new hp(e),this._resetOption(`recreate`,null)},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(e){this._payload=e},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(e,t){var n=this._componentsMap.get(e);if(n){var r=n[t||0];if(r)return r;if(t==null){for(var i=0;i=t:n===`max`?e<=t:e===t}function cT(e,t){return e.join(`,`)===t.join(`,`)}var lT=R,uT=H,dT=[`areaStyle`,`lineStyle`,`nodeStyle`,`linkStyle`,`chordStyle`,`label`,`labelLine`];function fT(e){var t=e&&e.itemStyle;if(t)for(var n=0,r=dT.length;n0?e[n-1].seriesModel:null)}),PT(e))})}function PT(e){R(e,function(t,n){var r=[],i=[NaN,NaN],a=[t.stackResultDimension,t.stackedOverDimension],o=t.data,s=t.isStackedByIndex,c=t.seriesModel.get(`stackStrategy`)||`samesign`;o.modify(a,function(a,l,u){var d=o.get(t.stackedDimension,u);if(isNaN(d))return i;var f,p;s?p=o.getRawIndex(u):f=o.get(t.stackedByDimension,u);for(var m=NaN,h=n-1;h>=0;h--){var g=e[h];if(s||(p=g.data.rawIndexOf(g.stackedByDimension,f)),p>=0){var _=g.data.getByRawIndex(g.stackResultDimension,p);if(c===`all`||c===`positive`&&_>0||c===`negative`&&_<0||c===`samesign`&&d>=0&&_>0||c===`samesign`&&d<=0&&_<0){d=Ms(d,_),m=_;break}}}return r[0]=d,r[1]=m,r})})}var FT=function(){function e(){this.group=new Lu,this.uid=mh(`viewComponent`)}return e.prototype.init=function(e,t){},e.prototype.render=function(e,t,n,r){},e.prototype.dispose=function(e,t){},e.prototype.updateView=function(e,t,n,r){},e.prototype.updateLayout=function(e,t,n,r){},e.prototype.updateVisual=function(e,t,n,r){},e.prototype.toggleBlurSeries=function(e,t,n){},e.prototype.eachRendered=function(e){var t=this.group;t&&t.traverse(e)},e}();Ze(FT),it(FT);var IT=Cc(),LT={itemStyle:at(fp,!0),lineStyle:at(lp,!0)},RT={lineStyle:`stroke`,itemStyle:`fill`};function zT(e,t){return e.visualStyleMapper||LT[t]||(console.warn(`Unknown style type '`+t+`'.`),LT.itemStyle)}function BT(e,t){return e.visualDrawType||RT[t]||(console.warn(`Unknown style type '`+t+`'.`),`fill`)}var VT={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData(),r=e.visualStyleAccessPath||`itemStyle`,i=e.getModel(r),a=zT(e,r)(i),o=i.getShallow(`decal`);o&&(n.setVisual(`decal`,o),o.dirty=!0);var s=BT(e,r),c=a[s],l=me(c)?c:null,u=a.fill===`auto`||a.stroke===`auto`;if(!a[s]||l||u){var d=e.getColorFromPalette(e.name,null,t.getSeriesCount());a[s]||(a[s]=d,n.setVisual(`colorFromPalette`,!0)),a.fill=a.fill===`auto`||me(a.fill)?d:a.fill,a.stroke=a.stroke===`auto`||me(a.stroke)?d:a.stroke}if(n.setVisual(`style`,a),n.setVisual(`drawType`,s),!t.isSeriesFiltered(e)&&l)return n.setVisual(`colorFromPalette`,!1),{dataEach:function(t,n){var r=e.getDataParams(n),i=I({},a);i[s]=l(r),t.setItemVisual(n,`style`,i)}}}},HT=new hp,UT={createOnAllSeries:!0,reset:function(e,t){if(!e.ignoreStyleOnData){var n=e.getData(),r=e.visualStyleAccessPath||`itemStyle`,i=zT(e,r),a=n.getVisual(`drawType`);return{dataEach:n.hasItemOption?function(e,t){var n=e.getRawDataItem(t);if(n&&n[r]){HT.option=n[r];var o=i(HT);I(e.ensureUniqueItemVisual(t,`style`),o),HT.option.decal&&(e.setItemVisual(t,`decal`,HT.option.decal),HT.option.decal.dirty=!0),a in o&&e.setItemVisual(t,`colorFromPalette`,!1)}}:null}}}},WT={performRawSeries:!0,overallReset:function(e){var t=Ie();e.eachSeries(function(e){if(!e.isColorBySeries()){var n=e.type+`-`+e.getColorBy();IT(e).scope=t.get(n)||t.set(n,{})}}),e.eachSeries(function(e){if(!e.isColorBySeries()){var t=e.getRawData(),n={},r=e.getData(),i=IT(e).scope,a=BT(e,e.visualStyleAccessPath||`itemStyle`);r.each(function(e){var t=r.getRawIndex(e);n[t]=e}),t.each(function(o){var s=n[o];if(r.getItemVisual(s,`colorFromPalette`)){var c=r.ensureUniqueItemVisual(s,`style`),l=t.getName(o)||o+``,u=t.count();c[a]=e.getColorFromPalette(l,i,u)}})}})}},GT=Math.PI;function KT(e,t){t||={},L(t,{text:`loading`,textColor:D_.color.primary,fontSize:12,fontWeight:`normal`,fontStyle:`normal`,fontFamily:`sans-serif`,maskColor:`rgba(255,255,255,0.8)`,showSpinner:!0,color:D_.color.theme[0],spinnerRadius:10,lineWidth:5,zlevel:0});var n=new Lu,r=new Uo({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});n.add(r);var i=new Jo({style:{text:t.text,fill:t.textColor,fontSize:t.fontSize,fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:t.fontFamily},zlevel:t.zlevel,z:10001}),a=new Uo({style:{fill:`none`},textContent:i,textConfig:{position:`right`,distance:10},zlevel:t.zlevel,z:10001});n.add(a);var o;return t.showSpinner&&(o=new xd({shape:{startAngle:-GT/2,endAngle:-GT/2+.1,r:t.spinnerRadius},style:{stroke:t.color,lineCap:`round`,lineWidth:t.lineWidth},zlevel:t.zlevel,z:10001}),o.animateShape(!0).when(1e3,{endAngle:GT*3/2}).start(`circularInOut`),o.animateShape(!0).when(1e3,{startAngle:GT*3/2}).delay(300).start(`circularInOut`),n.add(o)),n.resize=function(){var n=i.getBoundingRect().width,s=t.showSpinner?t.spinnerRadius:0,c=(e.getWidth()-s*2-(t.showSpinner&&n?10:0)-n)/2-(t.showSpinner&&n?0:5+n/2)+(t.showSpinner?0:n/2)+(n?0:s),l=e.getHeight()/2;t.showSpinner&&o.setShape({cx:c,cy:l}),a.setShape({x:c-s,y:l-s,width:s*2,height:s*2}),r.setShape({x:0,y:0,width:e.getWidth(),height:e.getHeight()})},n.resize(),n}var qT=function(){function e(e,t,n,r){this._stageTaskMap=Ie(),this.ecInstance=e,this.api=t,n=this._dataProcessorHandlers=n.slice(),r=this._visualHandlers=r.slice(),this._allHandlers=n.concat(r)}return e.prototype.restoreData=function(e,t){e.restoreData(t),this._stageTaskMap.each(function(e){var t=e.overallTask;t&&t.dirty()})},e.prototype.getPerformArgs=function(e,t){if(e.__pipeline){var n=this._pipelineMap.get(e.__pipeline.id),r=n.context,i=!t&&n.progressiveEnabled&&(!r||r.progressiveRender)&&e.__idxInPipeline>n.blockIndex?n.step:null,a=r&&r.modDataCount;return{step:i,modBy:a==null?null:Math.ceil(a/i),modDataCount:a}}},e.prototype.getPipeline=function(e){return this._pipelineMap.get(e)},e.prototype.updateStreamModes=function(e,t){var n=this._pipelineMap.get(e.uid);e.pipelineContext=n.context=e.__preparePipelineContext?e.__preparePipelineContext(t,n):Jc(e,t,n)},e.prototype.restorePipelines=function(e,t){var n=this,r=n._pipelineMap=Ie();t.eachSeries(function(t){var i=e.painter.type===`canvas`&&t.getProgressive(),a=t.uid;r.set(a,{id:a,head:null,tail:null,threshold:t.getProgressiveThreshold(),progressiveEnabled:i&&!(t.preventIncremental&&t.preventIncremental()),blockIndex:-1,step:Math.round(i||700),count:0}),n._pipe(t,t.dataTask)})},e.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,t=this.api.getModel(),n=this.api;R(this._allHandlers,function(r){var i=e.get(r.uid)||e.set(r.uid,{});De(!(r.reset&&r.overallReset),``),r.reset&&this._createSeriesStageTask(r,i,t,n),r.overallReset&&this._createOverallStageTask(r,i,t,n)},this)},e.prototype.prepareView=function(e,t,n,r){var i=e.renderTask,a=i.context;a.model=t,a.ecModel=n,a.api=r,i.__block=!e.incrementalPrepareRender,this._pipe(t,i)},e.prototype.performDataProcessorTasks=function(e,t){this._performStageTasks(this._dataProcessorHandlers,e,t,{block:!0})},e.prototype.performVisualTasks=function(e,t,n){this._performStageTasks(this._visualHandlers,e,t,n)},e.prototype._performStageTasks=function(e,t,n,r){r||={};var i=!1,a=this;R(e,function(e,s){if(!(r.visualType&&r.visualType!==e.visualType)){var c=a._stageTaskMap.get(e.uid),l=c.seriesTaskMap,u=c.overallTask;if(u){var d,f=u.agentStubMap;f.each(function(e){o(r,e)&&(e.dirty(),d=!0)}),d&&u.dirty(),a.updatePayload(u,n);var p=a.getPerformArgs(u,r.block);f.each(function(e){e.perform(p)}),u.perform(p)&&(i=!0)}else l&&l.each(function(s,c){o(r,s)&&s.dirty();var l=a.getPerformArgs(s,r.block);l.skip=!e.performRawSeries&&t.isSeriesFiltered(s.context.model),a.updatePayload(s,n),s.perform(l)&&(i=!0)})}});function o(e,t){return e.setDirty&&(!e.dirtyMap||e.dirtyMap.get(t.__pipeline.id))}this.unfinished=i||this.unfinished},e.prototype.performSeriesTasks=function(e){var t;e.eachSeries(function(e){t=e.dataTask.perform()||t}),this.unfinished=t||this.unfinished},e.prototype.plan=function(){this._pipelineMap.each(function(e){var t=e.tail;do{if(t.__block){e.blockIndex=t.__idxInPipeline;break}t=t.getUpstream()}while(t)})},e.prototype.updatePayload=function(e,t){t!==`remain`&&(e.context.payload=t)},e.prototype._createSeriesStageTask=function(e,t,n,r){var i=this,a=t.seriesTaskMap,o=t.seriesTaskMap=Ie(),s=e.seriesType,c=e.getTargetSeries;e.createOnAllSeries?n.eachRawSeries(l):s?n.eachRawSeriesByType(s,l):c&&c(n,r).each(l);function l(t){var s=t.uid,c=o.set(s,a&&a.get(s)||p_({plan:QT,reset:$T,count:nE}));c.context={model:t,ecModel:n,api:r,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:i},i._pipe(t,c)}},e.prototype._createOverallStageTask=function(e,t,n,r){var i=this,a=t.overallTask=t.overallTask||p_({reset:JT});a.context={ecModel:n,api:r,overallReset:e.overallReset,scheduler:i};var o=a.agentStubMap,s=a.agentStubMap=Ie(),c=e.seriesType,l=e.getTargetSeries,u=e.dirtyOnOverallProgress,d=!1;De(!e.createOnAllSeries,``),c?n.eachRawSeriesByType(c,f):l?l(n,r).each(f):R(n.getSeries(),f);function f(e){var t=e.uid,n=s.set(t,o&&o.get(t)||(d=!0,p_({reset:YT,onDirty:ZT})));n.context={model:e,dirtyOnOverallProgress:u},n.agent=a,n.__block=u,i._pipe(e,n)}d&&a.dirty()},e.prototype._pipe=function(e,t){var n=e.uid,r=this._pipelineMap.get(n);!r.head&&(r.head=t),r.tail&&r.tail.pipe(t),r.tail=t,t.__idxInPipeline=r.count++,t.__pipeline=r},e.wrapStageHandler=function(e,t){return me(e)&&(e={overallReset:e,seriesType:rE(e)}),e.uid=mh(`stageHandler`),t&&(e.visualType=t),e},e}();function JT(e){e.overallReset(e.ecModel,e.api,e.payload)}function YT(e){return e.dirtyOnOverallProgress&&XT}function XT(){this.agent.dirty(),this.getDownstream().dirty()}function ZT(){this.agent&&this.agent.dirty()}function QT(e){return e.plan?e.plan(e.model,e.ecModel,e.api,e.payload):null}function $T(e){e.useClearVisual&&e.data.clearAllVisual();var t=e.resetDefines=nc(e.reset(e.model,e.ecModel,e.api,e.payload));return t.length>1?z(t,function(e,t){return tE(t)}):eE}var eE=tE(0);function tE(e){return function(t,n){var r=n.data,i=n.resetDefines[e];if(i&&i.dataEach)for(var a=t.start;a0&&u===i.length-l.length){var d=i.slice(0,u);d!==`data`&&(t.mainType=d,t[l.toLowerCase()]=e,s=!0)}}o.hasOwnProperty(i)&&(n[i]=e,s=!0),s||(r[i]=e)})}return{cptQuery:t,dataQuery:n,otherQuery:r}},e.prototype.filter=function(e,t){var n=this.eventInfo;if(!n)return!0;var r=n.targetEl,i=n.packedEvent,a=n.model,o=n.view;if(!a||!o)return!0;var s=t.cptQuery,c=t.dataQuery;return l(s,a,`mainType`)&&l(s,a,`subType`)&&l(s,a,`index`,`componentIndex`)&&l(s,a,`name`)&&l(s,a,`id`)&&l(c,i,`name`)&&l(c,i,`dataIndex`)&&l(c,i,`dataType`)&&(!o.filterForExposedEvent||o.filterForExposedEvent(e,t.otherQuery,r,i));function l(e,t,n,r){return e[n]==null||t[r||n]===e[n]}},e.prototype.afterTrigger=function(){this.eventInfo=null},e}(),pE=[`symbol`,`symbolSize`,`symbolRotate`,`symbolOffset`],mE=pE.concat([`symbolKeepAspect`]),hE={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData();if(e.legendIcon&&n.setVisual(`legendIcon`,e.legendIcon),!e.hasSymbolVisual)return;for(var r={},i={},a=!1,o=0;o=0&&DE(c)?c:.5,e.createRadialGradient(o,s,0,o,s,c)}function AE(e,t,n){for(var r=t.type===`radial`?kE(e,t,n):OE(e,t,n),i=t.colorStops,a=0;a0)?null:e===`dashed`?[4*t,2*t]:e===`dotted`?[t]:ge(e)?[e]:B(e)?e:null}function FE(e){var t=e.style,n=t.lineDash&&t.lineWidth>0&&PE(t.lineDash,t.lineWidth),r=t.lineDashOffset;if(n){var i=t.strokeNoScale&&e.getLineScale?e.getLineScale():1;i&&i!==1&&(n=z(n,function(e){return e/i}),r/=i)}return[n,r]}var IE=new ro(!0);function LE(e){var t=e.stroke;return!(t==null||t===`none`||!(e.lineWidth>0))}function RE(e){return typeof e==`string`&&e!==`none`}function zE(e){var t=e.fill;return t!=null&&t!==`none`}function BE(e,t){if(t.fillOpacity!=null&&t.fillOpacity!==1){var n=e.globalAlpha;e.globalAlpha=t.fillOpacity*t.opacity,e.fill(),e.globalAlpha=n}else e.fill()}function VE(e,t){if(t.strokeOpacity!=null&&t.strokeOpacity!==1){var n=e.globalAlpha;e.globalAlpha=t.strokeOpacity*t.opacity,e.stroke(),e.globalAlpha=n}else e.stroke()}function HE(e,t,n){var r=pt(t.image,t.__image,n);if(ht(r)){var i=e.createPattern(r,t.repeat||`repeat`);if(typeof DOMMatrix==`function`&&i&&i.setTransform){var a=new DOMMatrix;a.translateSelf(t.x||0,t.y||0),a.rotateSelf(0,0,(t.rotation||0)*Ve),a.scaleSelf(t.scaleX||1,t.scaleY||1),i.setTransform(a)}return i}}function UE(e,t,n,r,i){var a,o=LE(n),s=zE(n),c=n.strokePercent,l=c<1,u=!t.path;(!t.silent||l)&&u&&t.createPathProxy();var d=t.path||IE,f=t.__dirty;if(!r){var p=n.fill,m=n.stroke,h=s&&!!p.colorStops,g=o&&!!m.colorStops,_=s&&!!p.image,v=o&&!!m.image,y=void 0,b=void 0,x=void 0,S=void 0,C=void 0;(h||g)&&(C=t.getBoundingRect()),h&&(y=f?AE(e,p,C):t.__canvasFillGradient,t.__canvasFillGradient=y),g&&(b=f?AE(e,m,C):t.__canvasStrokeGradient,t.__canvasStrokeGradient=b),_&&(x=f||!t.__canvasFillPattern?HE(e,p,t):t.__canvasFillPattern,t.__canvasFillPattern=x),v&&(S=f||!t.__canvasStrokePattern?HE(e,m,t):t.__canvasStrokePattern,t.__canvasStrokePattern=S),h?e.fillStyle=y:_&&(x?e.fillStyle=x:s=!1),g?e.strokeStyle=b:v&&(S?e.strokeStyle=S:o=!1)}var w=t.getGlobalScale();d.setScale(w[0],w[1],t.segmentIgnoreThreshold);var T,E;e.setLineDash&&n.lineDash&&(a=FE(t),T=a[0],E=a[1]);var D=!0;(u||f&4)&&(d.setDPR(e.dpr),l?d.setContext(null):(d.setContext(e),D=!1),d.reset(),t.buildPath(d,t.shape,r),d.toStatic(),t.pathUpdated()),D&&d.rebuildPath(e,l?c:1),T&&(e.setLineDash(T),e.lineDashOffset=E),r?(i.batchFill=s,i.batchStroke=o):n.strokeFirst?(o&&VE(e,n),s&&BE(e,n)):(s&&BE(e,n),o&&VE(e,n)),T&&e.setLineDash([])}function WE(e,t,n){var r=t.__image=pt(n.image,t.__image,t,t.onload);if(!(!r||!ht(r))){var i=n.x||0,a=n.y||0,o=t.getWidth(),s=t.getHeight(),c=r.width/r.height;if(o==null&&s!=null?o=s*c:s==null&&o!=null?s=o/c:o==null&&s==null&&(o=r.width,s=r.height),n.sWidth&&n.sHeight){var l=n.sx||0,u=n.sy||0;e.drawImage(r,l,u,n.sWidth,n.sHeight,i,a,o,s)}else if(n.sx&&n.sy){var l=n.sx,u=n.sy,d=o-l,f=s-u;e.drawImage(r,l,u,d,f,i,a,o,s)}else e.drawImage(r,i,a,o,s)}}function GE(e,t,n){var r,i=n.text;if(i!=null&&(i+=``),i){e.font=n.font||`12px sans-serif`,e.textAlign=n.textAlign,e.textBaseline=n.textBaseline;var a=void 0,o=void 0;e.setLineDash&&n.lineDash&&(r=FE(t),a=r[0],o=r[1]),a&&(e.setLineDash(a),e.lineDashOffset=o),n.strokeFirst?(LE(n)&&e.strokeText(i,n.x,n.y),zE(n)&&e.fillText(i,n.x,n.y)):(zE(n)&&e.fillText(i,n.x,n.y),LE(n)&&e.strokeText(i,n.x,n.y)),a&&e.setLineDash([])}}var KE=[`shadowBlur`,`shadowOffsetX`,`shadowOffsetY`],qE=[[`lineCap`,`butt`],[`lineJoin`,`miter`],[`miterLimit`,10]];function JE(e,t,n,r,i){var a=!1;if(!r&&(n||={},t===n))return!1;if(r||t.opacity!==n.opacity){aD(e,i),a=!0;var o=Math.max(Math.min(t.opacity,1),0);e.globalAlpha=isNaN(o)?_a.opacity:o}(r||t.blend!==n.blend)&&(a||=(aD(e,i),!0),e.globalCompositeOperation=t.blend||_a.blend);for(var s=0;s0&&e.unfinished);e.unfinished||this._zr.flush()}}},t.prototype.getDom=function(){return this._dom},t.prototype.getId=function(){return this.id},t.prototype.getZr=function(){return this._zr},t.prototype.isSSR=function(){return this._ssr},t.prototype.setOption=function(e,t,n){if(!this[zD]){if(this._disposed){this.id;return}var r,i,a;if(H(t)&&(n=t.lazyUpdate,r=t.silent,i=t.replaceMerge,a=t.transition,t=t.notMerge),this[zD]=!0,_O(this),!this._model||t){var o=new iT(this._api),s=this._theme,c=this._model=new Zw;c.scheduler=this._scheduler,c.ssr=this._ssr,c.init(null,null,null,s,this._locale,o)}this._model.setOption(e,{replaceMerge:i},TO);var l={seriesTransition:a,optionChanged:!0};if(n)this[VD]={silent:r,updateParams:l},this[zD]=!1,this.getZr().wakeUp();else{try{$D(this),nO.update.call(this,null,l)}catch(e){throw this[VD]=null,this[zD]=!1,e}this._ssr||this._zr.flush(),this[VD]=null,this[zD]=!1,oO.call(this,r),sO.call(this,r)}}},t.prototype.setTheme=function(e,t){if(!this[zD]){if(this._disposed){this.id;return}var n=this._model;if(n){var r=t&&t.silent,i=null;this[VD]&&(r??=this[VD].silent,i=this[VD].updateParams,this[VD]=null),this[zD]=!0,_O(this);try{this._updateTheme(e),n.setTheme(this._theme),$D(this),nO.update.call(this,{type:`setTheme`},i)}catch(e){throw this[zD]=!1,e}this[zD]=!1,oO.call(this,r),sO.call(this,r)}}},t.prototype._updateTheme=function(e){V(e)&&(e=DO[e]),e&&(e=P(e),e&&jT(e,!0),this._theme=e)},t.prototype.getModel=function(){return this._model},t.prototype.getOption=function(){return this._model&&this._model.getOption()},t.prototype.getWidth=function(){return this._zr.getWidth()},t.prototype.getHeight=function(){return this._zr.getHeight()},t.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||Ue.hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(e){return this.renderToCanvas(e)},t.prototype.renderToCanvas=function(e){return e||={},this._zr.painter.getRenderedCanvas({backgroundColor:e.backgroundColor||this._model.get(`backgroundColor`),pixelRatio:e.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(e){return e||={},this._zr.painter.renderToString({useViewBox:e.useViewBox})},t.prototype.getSvgDataURL=function(){var e=this._zr;return R(e.storage.getDisplayList(),function(e){e.stopAnimation(null,!0)}),e.painter.toDataURL()},t.prototype.getDataURL=function(e){if(this._disposed){this.id;return}e||={};var t=e.excludeComponents,n=this._model,r=[],i=this;R(t,function(e){n.eachComponent({mainType:e},function(e){var t=i._componentsMap[e.__viewId];t.group.ignore||(r.push(t),t.group.ignore=!0)})});var a=this._zr.painter.getType()===`svg`?this.getSvgDataURL():this.renderToCanvas(e).toDataURL(`image/`+(e&&e.type||`png`));return R(r,function(e){e.group.ignore=!1}),a},t.prototype.getConnectedDataURL=function(e){if(this._disposed){this.id;return}var t=e.type===`svg`,n=this.group,r=Math.min,i=Math.max,a=1/0;if(AO[n]){var o=a,s=a,c=-a,l=-a,u=[],d=e&&e.pixelRatio||this.getDevicePixelRatio();R(kO,function(a,d){if(a.group===n){var f=t?a.getZr().painter.getSvgDom().innerHTML:a.renderToCanvas(P(e)),p=a.getDom().getBoundingClientRect();o=r(p.left,o),s=r(p.top,s),c=i(p.right,c),l=i(p.bottom,l),u.push({dom:f,left:p.left,top:p.top})}}),o*=d,s*=d,c*=d,l*=d;var f=c-o,p=l-s,m=b.createCanvas(),h=Rw(m,{renderer:t?`svg`:`canvas`});if(h.resize({width:f,height:p}),t){var g=``;return R(u,function(e){var t=e.left-o,n=e.top-s;g+=``+e.dom+``}),h.painter.getSvgRoot().innerHTML=g,e.connectedBackgroundColor&&h.painter.setBackgroundColor(e.connectedBackgroundColor),h.refreshImmediately(),h.painter.toDataURL()}return e.connectedBackgroundColor&&h.add(new Uo({shape:{x:0,y:0,width:f,height:p},style:{fill:e.connectedBackgroundColor}})),R(u,function(e){var t=new Fo({style:{x:e.left*d-o,y:e.top*d-s,image:e.dom}});h.add(t)}),h.refreshImmediately(),m.toDataURL(`image/`+(e&&e.type||`png`))}return this.getDataURL(e)},t.prototype.convertToPixel=function(e,t,n){return rO(this,`convertToPixel`,e,t,n)},t.prototype.convertToLayout=function(e,t,n){return rO(this,`convertToLayout`,e,t,n)},t.prototype.convertFromPixel=function(e,t,n){return rO(this,`convertFromPixel`,e,t,n)},t.prototype.containPixel=function(e,t){if(this._disposed){this.id;return}var n=this._model,r;return R(Tc(n,e),function(e,n){n.indexOf(`Models`)>=0&&R(e,function(e){var i=e.coordinateSystem;if(i&&i.containPoint)r||=!!i.containPoint(t);else if(n===`seriesModels`){var a=this._chartsMap[e.__viewId];a&&a.containPoint&&(r||=a.containPoint(t,e))}},this)},this),!!r},t.prototype.getVisual=function(e,t){var n=this._model,r=Tc(n,e,{defaultMainType:`series`}),i=r.seriesModel.getData(),a=r.hasOwnProperty(`dataIndexInside`)?r.dataIndexInside:r.hasOwnProperty(`dataIndex`)?i.indexOfRawIndex(r.dataIndex):null;return a==null?vE(i,t):_E(i,a,t)},t.prototype.getViewOfComponentModel=function(e){return this._componentsMap[e.__viewId]},t.prototype.getViewOfSeriesModel=function(e){return this._chartsMap[e.__viewId]},t.prototype._initEvents=function(){var e=this;R(bO,function(t){var n=function(n){var r=e.getModel(),i=n.target,a;if(t===`globalout`?a={}:i&&bE(i,function(e){var t=Xc(e);if(t&&t.dataIndex!=null){var n=t.dataModel||r.getSeriesByIndex(t.seriesIndex);return a=n&&n.getDataParams(t.dataIndex,t.dataType,i)||{},!0}if(t.eventData)return a=I({},t.eventData),!0},!0),a){var o=a.componentType,s=a.componentIndex;(o===`markLine`||o===`markPoint`||o===`markArea`)&&(o=`series`,s=a.seriesIndex);var c=o&&s!=null&&r.getComponent(o,s),l=c&&e[c.mainType===`series`?`_chartsMap`:`_componentsMap`][c.__viewId];a.event=n,a.type=t,e._$eventProcessor.eventInfo={targetEl:i,packedEvent:a,model:c,view:l},e.trigger(t,a)}};n.zrEventfulCallAtLast=!0,e._zr.on(t,n,e)});var t=this._messageCenter;R(CO,function(n,r){t.on(r,function(t){e.trigger(r,t)})}),TC(t,this,this._api)},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0,this.getDom()&&Ac(this.getDom(),MO,``);var e=this,t=e._api,n=e._model;R(e._componentsViews,function(e){e.dispose(n,t)}),R(e._chartsViews,function(e){e.dispose(n,t)}),e._zr.dispose(),e._dom=e._model=e._chartsMap=e._componentsMap=e._chartsViews=e._componentsViews=e._scheduler=e._api=e._zr=e._throttledZrFlush=e._theme=e._coordSysMgr=e._messageCenter=null,delete kO[e.id]},t.prototype.resize=function(e){if(!this[zD]){if(this._disposed){this.id;return}this._zr.resize(e);var t=this._model;if(this._loadingFX&&this._loadingFX.resize(),t){var n=t.resetOption(`media`),r=e&&e.silent;this[VD]&&(r??=this[VD].silent,n=!0,this[VD]=null),this[zD]=!0,_O(this);try{n&&$D(this),nO.update.call(this,{type:`resize`,animation:I({duration:0},e&&e.animation)})}catch(e){throw this[zD]=!1,e}this[zD]=!1,oO.call(this,r),sO.call(this,r)}}},t.prototype.showLoading=function(e,t){if(this._disposed){this.id;return}if(H(e)&&(t=e,e=``),e||=`default`,this.hideLoading(),OO[e]){var n=OO[e](this._api,t),r=this._zr;this._loadingFX=n,r.add(n)}},t.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},t.prototype.makeActionFromEvent=function(e){var t=I({},e);return t.type=SO[e.type],t},t.prototype.dispatchAction=function(e,t){if(this._disposed){this.id;return}if(H(t)||(t={silent:!!t}),xO[e.type]&&this._model){if(this[zD]){this._pendingActions.push(e);return}var n=t.silent;aO.call(this,e,n);var r=t.flush;r?this._zr.flush():r!==!1&&Ue.browser.weChat&&this._throttledZrFlush(),oO.call(this,n),sO.call(this,n)}},t.prototype.updateLabelLayout=function(){xE.trigger(`series:layoutlabels`,this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(e){if(this._disposed){this.id;return}var t=e.seriesIndex;this.getModel().getSeriesByIndex(t).appendData(e),this._scheduler.unfinished=!0,this.getZr().wakeUp()},t.internalField=function(){$D=function(e){Eb(e._model);var t=e._scheduler;t.restorePipelines(e._zr,e._model),t.prepareStageTasks(),eO(e,!0),eO(e,!1),t.plan()},eO=function(e,t){for(var n=e._model,r=e._scheduler,i=t?e._componentsViews:e._chartsViews,a=t?e._componentsMap:e._chartsMap,o=e._zr,s=e._api,c=0;cCe(t.get(`hoverLayerThreshold`),Gw.hoverLayerThreshold)&&!Ue.node&&!Ue.worker;(e._usingTHL||a)&&(t.eachSeries(function(t){if(!t.preventUsingHoverLayer){var n=e._chartsMap[t.__viewId];n.__alive&&n.eachRendered(function(e){var t=e.states.emphasis;t&&t.hoverLayer!==2&&(t.hoverLayer=+!!a)})}}),e._usingTHL=a)}}function a(e,t){var n=e.get(`blendMode`)||null;t.eachRendered(function(e){e.isGroup||(e.style.blend=n)})}function o(e,t){if(!e.preventAutoZ){var n=Pf(e);t.eachRendered(function(e){return If(e,n.z,n.zlevel),!0})}}function s(e,t){t.eachRendered(function(e){if(!Hd(e)){var t=e.getTextContent(),n=e.getTextGuideLine();e.stateTransition&&=null,t&&t.stateTransition&&(t.stateTransition=null),n&&n.stateTransition&&(n.stateTransition=null),e.hasState()?(e.prevStates=e.currentStates,e.clearStates()):e.prevStates&&=null}})}function c(e,t){var n=e.getModel(`stateAnimation`),i=e.isAnimationEnabled(),a=n.get(`duration`),o=a>0?{duration:a,delay:n.get(`delay`),easing:n.get(`easing`)}:null;t.eachRendered(function(e){if(e.states&&e.states.emphasis){if(Hd(e))return;if(e instanceof ko&&mu(e),e.__dirty){var t=e.prevStates;t&&e.useStates(t)}if(i){e.stateTransition=o;var n=e.getTextContent(),a=e.getTextGuideLine();n&&(n.stateTransition=o),a&&(a.stateTransition=o)}e.__dirty&&r(e)}})}pO=function(e){return new(function(t){p(n,t);function n(){return t!==null&&t.apply(this,arguments)||this}return n.prototype.getCoordinateSystems=function(){return e._coordSysMgr.getCoordinateSystems()},n.prototype.getComponentByElement=function(t){for(;t;){var n=t.__ecComponentInfo;if(n!=null)return e._model.getComponent(n.mainType,n.index);t=t.parent}},n.prototype.enterEmphasis=function(t,n){zl(t,n),hO(e)},n.prototype.leaveEmphasis=function(t,n){Bl(t,n),hO(e)},n.prototype.enterBlur=function(t){Vl(t),hO(e)},n.prototype.leaveBlur=function(t){Hl(t),hO(e)},n.prototype.enterSelect=function(t){Ul(t),hO(e)},n.prototype.leaveSelect=function(t){Wl(t),hO(e)},n.prototype.getModel=function(){return e.getModel()},n.prototype.getViewOfComponentModel=function(t){return e.getViewOfComponentModel(t)},n.prototype.getViewOfSeriesModel=function(t){return e.getViewOfSeriesModel(t)},n.prototype.getECUpdateCycleVersion=function(){return e[BD]},n.prototype.usingTHL=function(){return e._usingTHL},n}(sl))(e)},mO=function(e){function t(e,t){for(var n=0;n=0)){GO.push(n);var o=qT.wrapStageHandler(n,i);o.__prio=t,o.__raw=n,e.push(o)}}function qO(e,t){OO[e]=t}function JO(e,t,n){var r=wE(`registerMap`);r&&r(e,t,n)}var YO=b_;WO(AD,VT),WO(ND,UT),WO(ND,WT),WO(AD,hE),WO(ND,gE),WO(LD,yD),IO(jT),LO(CD,MT),qO(`default`,KT),VO({type:hl,event:hl,update:hl},Be),VO({type:gl,event:gl,update:gl},Be),VO({type:_l,event:bl,update:_l,action:Be,refineEvent:XO,publishNonRefinedEvent:!0}),VO({type:vl,event:bl,update:vl,action:Be,refineEvent:XO,publishNonRefinedEvent:!0}),VO({type:yl,event:bl,update:yl,action:Be,refineEvent:XO,publishNonRefinedEvent:!0});function XO(e,t,n,r){return{eventContent:{selected:tu(n),isFromClick:t.isFromClick||!1}}}FO(`default`,{}),FO(`dark`,dE);var ZO=[],QO={registerPreprocessor:IO,registerProcessor:LO,registerPostInit:RO,registerPostUpdate:zO,registerUpdateLifecycle:BO,registerAction:VO,registerCoordinateSystem:HO,registerLayout:UO,registerVisual:WO,registerTransform:YO,registerLoading:qO,registerMap:JO,registerImpl:CE,PRIORITY:RD,ComponentModel:t_,ComponentView:FT,SeriesModel:nv,ChartView:Ov,registerComponentModel:function(e){t_.registerClass(e)},registerComponentView:function(e){FT.registerClass(e)},registerSeriesModel:function(e){nv.registerClass(e)},registerChartView:function(e){Ov.registerClass(e)},registerCustomSeries:function(e,t){Eee(e,t)},registerSubTypeDefaulter:function(e,t){t_.registerSubTypeDefaulter(e,t)},registerPainter:function(e,t){xee(e,t)}};function $O(e){if(B(e)){R(e,function(e){$O(e)});return}re(ZO,e)>=0||(ZO.push(e),me(e)&&(e={install:e}),e.install(QO))}var ek=function(){function e(){}return e.prototype.needIncludeZero=function(){return!this.option.scale},e.prototype.getCoordSysModel=function(){},e}(),tk=function(e){p(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents(`grid`,Dc).models[0]},t.type=`cartesian2dAxis`,t}(t_);ae(tk,ek);var nk={show:!0,z:0,inverse:!1,name:``,nameLocation:`end`,nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:`...`,placeholder:`.`},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:`auto`,onZeroAxisIndex:null,lineStyle:{color:D_.color.axisLine,width:1,type:`solid`},symbol:[`none`,`none`],symbolSize:[10,15],breakLine:!0},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12,color:D_.color.axisLabel,textMargin:[0,3]},splitLine:{show:!0,showMinLine:!0,showMaxLine:!0,lineStyle:{color:D_.color.axisSplitLine,width:1,type:`solid`}},splitArea:{show:!1,areaStyle:{color:[D_.color.backgroundTint,D_.color.backgroundTransparent]}},breakArea:{show:!0,itemStyle:{color:D_.color.neutral00,borderColor:D_.color.border,borderWidth:1,borderType:[3,3],opacity:.6},zigzagAmplitude:4,zigzagMinSpan:4,zigzagMaxSpan:20,zigzagZ:100,expandOnClick:!0},breakLabelLayout:{moveOverlap:`auto`}},rk=F({boundaryGap:!0,deduplication:null,jitter:0,jitterOverlap:!0,jitterMargin:2,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:`auto`,show:`auto`},axisLabel:{interval:`auto`}},nk),ik=F({boundaryGap:[0,0],axisLine:{show:`auto`},axisTick:{show:`auto`},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:D_.color.axisMinorSplitLine,width:1}}},nk),ak={category:rk,value:ik,time:F({splitNumber:6,axisLabel:{rich:{primary:{fontWeight:`bold`}}},splitLine:{show:!1}},ik),log:L({logBase:10},ik)};function ok(e,t,n,r){R(Fy,function(i,a){var o=F(F({},ak[a],!0),r,!0),s=function(e){p(n,e);function n(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t+`Axis.`+a,n}return n.prototype.mergeDefaultAndTheme=function(e,t){var n=Xg(this),r=n?Qg(e):{};F(e,t.getTheme().get(a+`Axis`)),F(e,this.getDefaultOption()),e.type=sk(e),n&&Zg(e,r,n)},n.prototype.optionUpdated=function(){this.option.type===`category`&&(this.__ordinalMeta=Bv.createByAxisModel(this))},n.prototype.getCategories=function(e){var t=this.option;if(t.type===`category`)return e?t.data:this.__ordinalMeta.categories},n.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},n.prototype.updateAxisBreaks=function(e){var t=xx();return t?t.updateModelAxisBreak(this,e):{breaks:[]}},n.type=t+`Axis.`+a,n.defaultOption=o,n}(n);e.registerComponentModel(s)}),e.registerSubTypeDefaulter(t+`Axis`,sk)}function sk(e){return e.type||(e.data?`category`:`value`)}var ck=function(){function e(e){this.type=`cartesian`,this._dimList=[],this._axes={},this.name=e||``}return e.prototype.getAxis=function(e){return this._axes[e]},e.prototype.getAxes=function(){return z(this._dimList,function(e){return this._axes[e]},this)},e.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),ce(this.getAxes(),function(t){return t.scale.type===e})},e.prototype.addAxis=function(e){var t=e.dim;this._axes[t]=e,this._dimList.push(t)},e}(),lk=[`x`,`y`];function uk(e){return(e.type===`interval`||e.type===`time`)&&!Jh(e)}var dk=function(e){p(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=OS,t.dimensions=lk,t}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var e=this.getAxis(`x`).scale,t=this.getAxis(`y`).scale;if(!(!uk(e)||!uk(t))){var n=qv(e,null),r=qv(t,null),i=this.dataToPoint([n[0],r[0]]),a=this.dataToPoint([n[1],r[1]]),o=n[1]-n[0],s=r[1]-r[0];if(!(!o||!s)){var c=(a[0]-i[0])/o,l=(a[1]-i[1])/s,u=i[0]-n[0]*c,d=i[1]-r[0]*l,f=this._transform=[c,0,0,l,u,d];this._invTransform=Ct([],f)}}},t.prototype.getBaseAxis=function(){return this.getAxesByScale(`ordinal`)[0]||this.getAxesByScale(`time`)[0]||this.getAxis(`x`)},t.prototype.containPoint=function(e){var t=this.getAxis(`x`),n=this.getAxis(`y`);return t.contain(t.toLocalCoord(e[0]))&&n.contain(n.toLocalCoord(e[1]))},t.prototype.containData=function(e){return this.getAxis(`x`).containData(e[0])&&this.getAxis(`y`).containData(e[1])},t.prototype.containZone=function(e,t){var n=this.dataToPoint(e),r=this.dataToPoint(t),i=this.getArea(),a=new en(n[0],n[1],r[0]-n[0],r[1]-n[1]);return i.intersect(a)},t.prototype.dataToPoint=function(e,t,n){n||=[];var r=e[0],i=e[1];if(this._transform&&r!=null&&isFinite(r)&&i!=null&&isFinite(i))return Lt(n,e,this._transform);var a=this.getAxis(`x`),o=this.getAxis(`y`);return n[0]=a.toGlobalCoord(a.dataToCoord(r,t)),n[1]=o.toGlobalCoord(o.dataToCoord(i,t)),n},t.prototype.clampData=function(e,t){var n=this.getAxis(`x`).scale,r=this.getAxis(`y`).scale,i=n.getExtent(),a=r.getExtent(),o=n.parse(e[0]),s=r.parse(e[1]);return t||=[],t[0]=Math.min(Math.max(Math.min(i[0],i[1]),o),Math.max(i[0],i[1])),t[1]=Math.min(Math.max(Math.min(a[0],a[1]),s),Math.max(a[0],a[1])),t},t.prototype.pointToData=function(e,t,n){if(n||=[],this._invTransform)return Lt(n,e,this._invTransform);var r=this.getAxis(`x`),i=this.getAxis(`y`);return n[0]=r.coordToData(r.toLocalCoord(e[0]),t),n[1]=i.coordToData(i.toLocalCoord(e[1]),t),n},t.prototype.getOtherAxis=function(e){return this.getAxis(e.dim===`x`?`y`:`x`)},t.prototype.getArea=function(e){e||=0;var t=this.getAxis(`x`).getGlobalExtent(),n=this.getAxis(`y`).getGlobalExtent(),r=Math.min(t[0],t[1])-e,i=Math.min(n[0],n[1])-e;return new en(r,i,Math.max(t[0],t[1])-r+e,Math.max(n[0],n[1])-i+e)},t}(ck);function fk(e,t){var n=e.scale,r=e.model,i=CS(n,r,r.ecModel,e,null),a=ny(n),o=ny(t)?t.intervalStub:t,s=a?n.intervalStub:n,c=n.base,l=o.getTicks(),u=o.getTicks({expandToNicedExtent:!0}),d=l.length-1,f,p,m;if(d===1)f=p=0,m=1;else if(d===2){var h=ps(l[0].value-l[1].value),g=ps(l[1].value-l[2].value);f=p=0,h===g?m=2:(m=1,h=C[1])return!0})):b[1]?(T=C[1],A(function(){if(N(),k=Ds(O-E*m,D),j(),w<=C[0])return!0})):A(function(){k=Ds(gs(C[0]/E)*E,D),O=Ds(hs(C[1]/E)*E,D);var e=ms((O-k)/E);if(e<=m){var t=m-e,n=void 0,r=i.incl0||a;if(r&&C[0]===0)n=[0,t];else if(r&&C[1]===0)n=[t,0];else{var o=hs(t/2);n=t%2==0?[o,o]:w+T=C[1])return!0}})}Zy(n,b,S,[w,T],x,{interval:E,intervalCount:m,intervalPrecision:D,niceExtent:[k,O]})}function pk(e,t){var n=ny(e),r=n?e.intervalStub:e,i=t.fixMinMax||[],a=n?e.getExtent():null,o=r.getExtent(),s=cy(o,i,t.rawExtentResult);r.setExtent(s[0],s[1]),s=r.getExtent();var c=n?hk(r,t):mk(r,t),l=c.intervalPrecision,u=c.interval,d=t.userInterval;d!=null&&(c.interval=d,c.intervalPrecision=ay(d)),i[0]||(s[0]=Ds(hs(s[0]/u)*u,l)),i[1]||(s[1]=Ds(gs(s[1]/u)*u,l)),d!=null&&(c.niceExtent=s.slice()),Zy(e,i,o,s,a,c)}function mk(e,t){var n=uy(t.splitNumber,5),r=Yv(e),i=t.minInterval,a=t.maxInterval,o=Bs(r/n,!0);i!=null&&oa&&(o=a);var s=ay(o),c=e.getExtent(),l=[Ds(gs(c[0]/o)*o,s),Ds(hs(c[1]/o)*o,s)];return{interval:o,intervalPrecision:s,niceExtent:l}}function hk(e,t){var n=uy(t.splitNumber,10),r=e.getExtent(),i=Yv(e),a=fs(Rs(i),1);n/i*a<=.5&&(a*=10);var o=ay(a),s=[Ds(gs(r[0]/a)*a,o),Ds(hs(r[1]/a)*a,o)];return{intervalPrecision:o,interval:a,niceExtent:s}}function gk(e){var t=e.scale,n=e.model,r=n.axis,i=n.ecModel;_k(t,n,r,i,null)}function _k(e,t,n,r,i){var a=CS(e,t,r,n,i),o=ey(e)||ty(e);vk(e,{splitNumber:t.get(`splitNumber`),fixMinMax:a.fixMM,userInterval:t.get(`interval`),minInterval:o?t.get(`minInterval`):null,maxInterval:o?t.get(`maxInterval`):null,rawExtentResult:a}),n&&r&&see(n,e,a,r)}function vk(e,t){yk[e.type](e,t)}var yk={interval:pk,log:pk,time:Dy,ordinal:Be},bk=[[3,1],[0,2]],xk=function(){function e(e,t,n){this.type=`grid`,this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=lk,this._initCartesian(e,t,n),this.model=e}return e.prototype.getRect=function(){return this._rect},e.prototype.update=function(e,t){var n=this._axesMap;R(this._axesList,function(e){_S(e,1);var t=e.scale;ry(t)&&t.setSortInfo(e.model.get(`categorySortInfo`))});function r(e){for(var t=ue(e),n=[],r=t.length-1;r>=0;r--){var i=e[+t[r]];i.__alignTo?n.push(i):gk(i)}R(n,function(e){Ek(e,e.__alignTo)?gk(e):fk(e,e.__alignTo.scale)})}r(n.x),r(n.y);var i={};R(n.x,function(e){Ck(n,`y`,e,i)}),R(n.y,function(e){Ck(n,`x`,e,i)}),this.resize(this.model,t)},e.prototype.resize=function(e,t,n){var r=Jg(e,t),i=this._rect=Kg(e.getBoxLayoutParams(),r.refContainer),a=this._axesMap,o=this._coordsList,s=e.get(`containLabel`);if(Ok(a,i),!n){var c=Mk(i,o,a,s,t),l=void 0;if(s)Ak?(Ak(this._axesList,i),Ok(a,i)):l=jk(i.clone(),`axisLabel`,null,i,a,c,r);else{var u=Pk(e,i,r),d=u.outerBoundsRect,f=u.parsedOuterBoundsContain,p=u.outerBoundsClamp;d&&(l=jk(d,f,p,i,a,c,r))}Nk(i,a,ab.determine,null,l,r),R(this._coordsList,function(e){e.calcAffineTransform()})}},e.prototype.getAxis=function(e,t){var n=this._axesMap[e];if(n!=null)return n[t||0]},e.prototype.getAxes=function(){return this._axesList.slice()},e.prototype.getCartesian=function(e,t){if(e!=null&&t!=null){var n=`x`+e+`y`+t;return this._coordsMap[n]}H(e)&&(t=e.yAxisIndex,e=e.xAxisIndex);for(var r=0,i=this._coordsList;r=0;i--){var a=e[+t[i]];$v(a.scale)&&Yy(a.model,a.type,!0)==null&&(a.model.get(`alignTicks`)&&a.model.get(`interval`)==null?r.push(a):n=a)}n||=r.pop(),n&&R(r,function(e){e.__alignTo=n})}function Ek(e,t){return Jh(e.scale)||Jh(t.scale)||t.scale.getTicks().length<2}function Dk(e,t){var n=e.getExtent(),r=n[0]+n[1];e.toGlobalCoord=e.dim===`x`?function(e){return e+t}:function(e){return r-e+t},e.toLocalCoord=e.dim===`x`?function(e){return e-t}:function(e){return r-e+t}}function Ok(e,t){R(e.x,function(e){return kk(e,t.x,t.width)}),R(e.y,function(e){return kk(e,t.y,t.height)})}function kk(e,t,n){var r=[0,n],i=+!!e.inverse;e.setExtent(r[i],r[1-i]),Dk(e,t)}var Ak;function jk(e,t,n,r,i,a,o){Nk(r,i,ab.estimate,t,!1,o);var s=[0,0,0,0];l(0),l(1),u(r,0,NaN),u(r,1,NaN);var c=le(s,function(e){return e>0})==null;return wf(r,s,!0,!0,n),Ok(i,r),c;function l(e){R(i[Yd[e]],function(t){if(Jy(t.model)){var n=a.ensureRecord(t.model),r=n.labelInfoList;if(r)for(var i=0;i0&&!xe(t)&&t>1e-4&&(e/=t),e}}function Mk(e,t,n,r,i){var a=new kx(Fk);return R(n,function(n){return R(n,function(n){if(Jy(n.model)){var o=!r;n.axisBuilder=oS(e,t,n.model,i,a,o)}})}),a}function Nk(e,t,n,r,i,a){var o=n===ab.determine;R(t,function(t){return R(t,function(t){Jy(t.model)&&(sS(t.axisBuilder,e,t.model),t.axisBuilder.build(o?{axisTickLabelDetermine:!0}:{axisTickLabelEstimate:!0},{noPxChange:i}))})});var s={x:0,y:0};c(0),c(1);function c(t){s[Yd[1-t]]=e[Xd[t]]<=a.refContainer[Xd[t]]*.5?0:1-t==1?2:1}R(t,function(e,t){return R(e,function(e){Jy(e.model)&&((r===`all`||o)&&e.axisBuilder.build({axisName:!0},{nameMarginLevel:s[t]}),o&&e.axisBuilder.build({axisLine:!0}))})})}function Pk(e,t,n){var r,i=e.get(`outerBoundsMode`,!0);i===`same`?r=t.clone():(i==null||i===`auto`)&&(r=Kg(e.get(`outerBounds`,!0)||ES,n.refContainer));var a=e.get(`outerBoundsContain`,!0),o=a==null||a===`auto`||re([`all`,`axisLabel`],a)<0?`all`:a,s=[Ts(Ce(e.get(`outerBoundsClampWidth`,!0),DS[0]),t.width),Ts(Ce(e.get(`outerBoundsClampHeight`,!0),DS[1]),t.height)];return{outerBoundsRect:r,parsedOuterBoundsContain:o,outerBoundsClamp:s}}var Fk=function(e,t,n,r,i,a){var o=n.axis.dim===`x`?`y`:`x`;Nx(e,t,n,r,i,a),qy(e.nameLocation)||R(t.recordMap[o],function(e){e&&e.labelInfoList&&e.dirVec&&Fx(e.labelInfoList,e.dirVec,r,i)})};function Ik(e,t){var n={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return Lk(n,e,t),n.seriesInvolved&&zk(n,e),n}function Lk(e,t,n){var r=t.getComponent(`tooltip`),i=t.getComponent(`axisPointer`),a=i.get(`link`,!0)||[],o=[];R(n.getCoordinateSystems(),function(n){if(!n.axisPointerEnabled)return;var s=Kk(n.model),c=e.coordSysAxesInfo[s]={};e.coordSysMap[s]=n;var l=n.model.getModel(`tooltip`,r);if(R(n.getAxes(),pe(p,!1,null)),n.getTooltipAxes&&r&&l.get(`show`)){var u=l.get(`trigger`)===`axis`,d=l.get([`axisPointer`,`type`])===`cross`,f=n.getTooltipAxes(l.get([`axisPointer`,`axis`]));(u||d)&&R(f.baseAxes,pe(p,!d||`cross`,u)),d&&R(f.otherAxes,pe(p,`cross`,!1))}function p(r,s,u){var d=u.model.getModel(`axisPointer`,i),f=d.get(`show`);if(!(!f||f===`auto`&&!r&&!Gk(d))){s??=d.get(`triggerTooltip`),d=r?Rk(u,l,i,t,r,s):d;var p=d.get(`snap`),m=d.get(`triggerEmphasis`),h=Kk(u.model),g=s||p||u.type===`category`,_=e.axesInfo[h]={key:h,axis:u,coordSys:n,axisPointerModel:d,triggerTooltip:s,triggerEmphasis:m,involveSeries:g,snap:p,useHandle:Gk(d),seriesModels:[],linkGroup:null};c[h]=_,e.seriesInvolved=e.seriesInvolved||g;var v=Bk(a,u);if(v!=null){var y=o[v]||(o[v]={axesInfo:{}});y.axesInfo[h]=_,y.mapper=a[v].mapper,_.linkGroup=y}}}})}function Rk(e,t,n,r,i,a){var o=t.getModel(`axisPointer`),s=[`type`,`snap`,`lineStyle`,`shadowStyle`,`label`,`animation`,`animationDurationUpdate`,`animationEasingUpdate`,`z`],c={};R(s,function(e){c[e]=P(o.get(e))}),c.snap=e.type!==`category`&&!!a,o.get(`type`)===`cross`&&(c.type=`line`);var l=c.label||={};if(l.show??=!1,i===`cross`&&(l.show=o.get([`label`,`show`])??!0,!a)){var u=c.lineStyle=o.get(`crossStyle`);u&&L(l,u.textStyle)}return e.model.getModel(`axisPointer`,new hp(c,n,r))}function zk(e,t){t.eachSeries(function(t){var n=t.coordinateSystem,r=t.get([`tooltip`,`trigger`],!0),i=t.get([`tooltip`,`show`],!0);!n||!n.model||r===`none`||r===!1||r===`item`||i===!1||t.get([`axisPointer`,`show`],!0)===!1||R(e.coordSysAxesInfo[Kk(n.model)],function(e){var r=e.axis;n.getAxis(r.dim)===r&&(e.seriesModels.push(t),e.seriesDataCount??=0,e.seriesDataCount+=t.getData().count())})})}function Bk(e,t){for(var n=t.model,r=t.dim,i=0;i=0||e===t}function Hk(e){var t=Uk(e);if(t){var n=t.axisPointerModel,r=t.axis.scale,i=n.option,a=n.get(`status`),o=n.get(`value`);o!=null&&(o=r.parse(o));var s=Gk(n);a??(i.status=s?`show`:`hide`);var c=r.getExtent();(o==null||o>c[1])&&(o=c[1]),o=0;a--)r[a]??(delete n[t[a]],t.pop())}function dA(e,t){var n=e.visual,r=[];H(n)?aA(n,function(e){r.push(e)}):n!=null&&r.push(n),!t&&r.length===1&&!{color:1,symbol:1}.hasOwnProperty(e.type)&&(r[1]=r[0]),yA(e,r)}function fA(e){return{applyVisual:function(t,n,r){var i=this.mapValueToVisual(t);r(`color`,e(n(`color`),i))},_normalizedToVisual:_A([0,1])}}function pA(e){var t=this.option.visual;return t[Math.round(Ss(e,[0,1],[0,t.length-1],!0))]||{}}function mA(e){return function(t,n,r){r(e,this.mapValueToVisual(t))}}function hA(e){var t=this.option.visual;return t[this.option.loop&&e!==sA?e%t.length:e]}function gA(){return this.option.visual[0]}function _A(e){return{linear:function(t){return Ss(t,e,this.option.visual,!0)},category:hA,piecewise:function(t,n){var r=vA.call(this,n);return r??=Ss(t,e,this.option.visual,!0),r},fixed:gA}}function vA(e){var t=this.option,n=t.pieceList;if(t.hasSpecialVisual){var r=n[cA.findPieceIndex(e,n)];if(r&&r.visual)return r.visual[this.type]}}function yA(e,t){return e.visual=t,e.type===`color`&&(e.parsedVisual=z(t,function(e){return Gr(e)||[0,0,0,1]})),t}var bA={linear:function(e){return Ss(e,this.option.dataExtent,[0,1],!0)},piecewise:function(e){var t=this.option.pieceList,n=cA.findPieceIndex(e,t,!0);if(n!=null)return Ss(n,[0,t.length-1],[0,1],!0)},category:function(e){return(this.option.categories?this.option.categoryMap[e]:e)??sA},fixed:Be};function xA(e,t,n){return e?t<=n:ta&&(t[1-r]=Ms(t[r],d.sign*a)),t}function CA(e,t){var n=e[t]-e[1-t];return{span:Math.abs(n),sign:n>0?-1:n<0?1:t?-1:1}}function wA(e,t){return Math.min(t[1]==null?1/0:t[1],Math.max(t[0]==null?-1/0:t[0],e))}function TA(e){return Object.keys(e)}function EA(e){return e&&typeof e==`object`&&!Array.isArray(e)}function DA(e,t){let n={...e},r=t;return EA(e)&&EA(t)&&Object.keys(t).forEach(t=>{EA(r[t])&&t in e?n[t]=DA(n[t],r[t]):n[t]=r[t]}),n}function OA(e){return e.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)}function kA(e){return typeof e!=`string`||!e.includes(`var(--mantine-scale)`)?e:e.match(/^calc\((.*?)\)$/)?.[1].split(`*`)[0].trim()}function AA(e){let t=kA(e);return typeof t==`number`?t:typeof t==`string`?t.includes(`calc`)||t.includes(`var`)?t:t.includes(`px`)?Number(t.replace(`px`,``)):t.includes(`rem`)?Number(t.replace(`rem`,``))*16:t.includes(`em`)?Number(t.replace(`em`,``))*16:Number(t):NaN}function jA(e){return e===`0rem`?`0rem`:`calc(${e} * var(--mantine-scale))`}function MA(e,{shouldScale:t=!1}={}){function n(r){if(r===0||r===`0`)return`0${e}`;if(typeof r==`number`){let n=`${r/16}${e}`;return t?jA(n):n}if(typeof r==`string`){if(r===``||r.startsWith(`calc(`)||r.startsWith(`clamp(`)||r.includes(`rgba(`))return r;if(r.includes(`,`))return r.split(`,`).map(e=>n(e)).join(`,`);if(r.includes(` `))return r.split(` `).map(e=>n(e)).join(` `);let i=r.replace(`px`,``);if(!Number.isNaN(Number(i))){let n=`${Number(i)/16}${e}`;return t?jA(n):n}}return r}return n}var W=MA(`rem`,{shouldScale:!0}),NA=MA(`em`);function PA(e){return Object.keys(e).reduce((t,n)=>(e[n]!==void 0&&(t[n]=e[n]),t),{})}function FA(e){if(typeof e==`number`)return!0;if(typeof e==`string`){if(e.startsWith(`calc(`)||e.startsWith(`var(`)||e.includes(` `)&&e.trim()!==``)return!0;let t=/^[+-]?[0-9]+(\.[0-9]+)?(px|em|rem|ex|ch|lh|rlh|vw|vh|vmin|vmax|vb|vi|svw|svh|lvw|lvh|dvw|dvh|cm|mm|in|pt|pc|q|cqw|cqh|cqi|cqb|cqmin|cqmax|%)?$/;return e.trim().split(/\s+/).every(e=>t.test(e))}return!1}var IA=s((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.portal`),r=Symbol.for(`react.fragment`),i=Symbol.for(`react.strict_mode`),a=Symbol.for(`react.profiler`),o=Symbol.for(`react.consumer`),s=Symbol.for(`react.context`),c=Symbol.for(`react.forward_ref`),l=Symbol.for(`react.suspense`),u=Symbol.for(`react.memo`),d=Symbol.for(`react.lazy`),f=Symbol.for(`react.activity`),p=Symbol.iterator;function m(e){return typeof e!=`object`||!e?null:(e=p&&e[p]||e[`@@iterator`],typeof e==`function`?e:null)}var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,_={};function v(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||h}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if(typeof e!=`object`&&typeof e!=`function`&&e!=null)throw Error(`takes an object of state variables to update or a function which returns an object of state variables.`);this.updater.enqueueSetState(this,e,t,`setState`)},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,`forceUpdate`)};function y(){}y.prototype=v.prototype;function b(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||h}var x=b.prototype=new y;x.constructor=b,g(x,v.prototype),x.isPureReactComponent=!0;var S=Array.isArray;function C(){}var w={H:null,A:null,T:null,S:null},T=Object.prototype.hasOwnProperty;function E(e,n,r){var i=r.ref;return{$$typeof:t,type:e,key:n,ref:i===void 0?null:i,props:r}}function D(e,t){return E(e.type,t,e.props)}function O(e){return typeof e==`object`&&!!e&&e.$$typeof===t}function k(e){var t={"=":`=0`,":":`=2`};return`$`+e.replace(/[=:]/g,function(e){return t[e]})}var A=/\/+/g;function j(e,t){return typeof e==`object`&&e&&e.key!=null?k(``+e.key):t.toString(36)}function ee(e){switch(e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason;default:switch(typeof e.status==`string`?e.then(C,C):(e.status=`pending`,e.then(function(t){e.status===`pending`&&(e.status=`fulfilled`,e.value=t)},function(t){e.status===`pending`&&(e.status=`rejected`,e.reason=t)})),e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason}}throw e}function M(e,r,i,a,o){var s=typeof e;(s===`undefined`||s===`boolean`)&&(e=null);var c=!1;if(e===null)c=!0;else switch(s){case`bigint`:case`string`:case`number`:c=!0;break;case`object`:switch(e.$$typeof){case t:case n:c=!0;break;case d:return c=e._init,M(c(e._payload),r,i,a,o)}}if(c)return o=o(e),c=a===``?`.`+j(e,0):a,S(o)?(i=``,c!=null&&(i=c.replace(A,`$&/`)+`/`),M(o,r,i,``,function(e){return e})):o!=null&&(O(o)&&(o=D(o,i+(o.key==null||e&&e.key===o.key?``:(``+o.key).replace(A,`$&/`)+`/`)+c)),r.push(o)),1;c=0;var l=a===``?`.`:a+`:`;if(S(e))for(var u=0;u{t.exports=IA()})),G=u(LA(),1);function RA(e){return Array.isArray(e)||e===null?!1:typeof e==`object`&&e.type!==G.Fragment}function zA(e){let t=(0,G.createContext)(null);return[t,()=>{let n=(0,G.use)(t);if(n===null)throw Error(e);return n}]}var BA={app:100,modal:200,popover:300,overlay:400,max:9999};function VA(e){return BA[e]}function HA(e,t=`size`,n=!0){if(e!==void 0)return FA(e)?n?W(e):e:`var(--${t}-${e})`}function UA(e){return HA(e,`mantine-spacing`)}function WA(e){return e===void 0?`var(--mantine-radius-default)`:HA(e,`mantine-radius`)}function GA(e){return HA(e,`mantine-font-size`)}function KA(e){return HA(e,`mantine-line-height`,!1)}function qA(e){if(e)return HA(e,`mantine-shadow`,!1)}function JA(e,t){return n=>{e?.(n),t?.(n)}}function YA(e=`mantine-`){return`${e}${Math.random().toString(36).slice(2,11)}`}function XA(e,t){if(e===t||Number.isNaN(e)&&Number.isNaN(t))return!0;if(!(e instanceof Object)||!(t instanceof Object))return!1;let n=Object.keys(e),{length:r}=n;if(r!==Object.keys(t).length)return!1;for(let i=0;i{t.current=e}),(0,G.useMemo)(()=>((...e)=>t.current?.(...e)),[])}function QA(e,t){let{delay:n,flushOnUnmount:r,leading:i,maxWait:a}=typeof t==`number`?{delay:t,flushOnUnmount:!1,leading:!1,maxWait:void 0}:t,o=ZA(e),s=(0,G.useRef)(0),c=(0,G.useRef)(0),l=(0,G.useRef)(null),u=(0,G.useMemo)(()=>{let e=Object.assign((...t)=>{window.clearTimeout(s.current),l.current=t;let r=e._isFirstCall;e._isFirstCall=!1;function u(){window.clearTimeout(s.current),window.clearTimeout(c.current),s.current=0,c.current=0,e._isFirstCall=!0,e._hasPendingCallback=!1}function d(){a!==void 0&&c.current===0&&(c.current=window.setTimeout(()=>{if(s.current!==0){let e=l.current;u(),o(...e)}},a))}if(i&&r){o(...t),e.flush=()=>{s.current!==0&&(u(),o(...t))},e.cancel=()=>{u()},s.current=window.setTimeout(()=>{u()},n),d();return}if(i&&!r){e._hasPendingCallback=!0,e.flush=()=>{s.current!==0&&(u(),o(...t))},e.cancel=()=>{u()},s.current=window.setTimeout(()=>{u()},n),d();return}e._hasPendingCallback=!0;let f=()=>{s.current!==0&&(u(),o(...t))};e.flush=f,e.cancel=()=>{u()},s.current=window.setTimeout(f,n),d()},{flush:()=>{},cancel:()=>{},isPending:()=>e._hasPendingCallback,_isFirstCall:!0,_hasPendingCallback:!1});return e},[o,n,i,a]);return(0,G.useEffect)(()=>()=>{r?u.flush():u.cancel()},[u,r]),u}function $A(e,t){return typeof t==`boolean`?t:typeof window<`u`&&`matchMedia`in window&&window.matchMedia(e).matches}function ej(e,t,{getInitialValueInEffect:n}={getInitialValueInEffect:!0}){let[r,i]=(0,G.useState)(n?t:$A(e));return(0,G.useEffect)(()=>{try{if(`matchMedia`in window){let t=window.matchMedia(e);i(t.matches);let n=e=>i(e.matches);return t.addEventListener(`change`,n),()=>{t.removeEventListener(`change`,n)}}}catch{return}},[e]),r||!1}var tj=typeof document<`u`?G.useLayoutEffect:G.useEffect;function nj(e,t){let n=(0,G.useRef)(!1);(0,G.useEffect)(()=>()=>{n.current=!1},[]),(0,G.useEffect)(()=>{if(n.current)return e();n.current=!0},t)}function rj(e){let[t,n]=(0,G.useState)(`mantine-${(0,G.useId)().replace(/:/g,``)}`),r=(0,G.useRef)(!1);return tj(()=>{r.current||(r.current=!0,n(YA()))},[]),typeof e==`string`?e:t}function ij(e,t){if(typeof e==`function`)return e(t);typeof e==`object`&&e&&`current`in e&&(e.current=t)}function aj(...e){let t=new Map;return n=>{if(e.forEach(e=>{let r=ij(e,n);r&&t.set(e,r)}),t.size>0)return()=>{e.forEach(e=>{let n=t.get(e);n&&typeof n==`function`?n():ij(e,null)}),t.clear()}}}function oj(...e){return(0,G.useCallback)(aj(...e),e)}function sj({value:e,defaultValue:t,finalValue:n,onChange:r=()=>{}}){let[i,a]=(0,G.useState)(t===void 0?n:t);return e===void 0?[i,(e,...t)=>{a(e),r?.(e,...t)},!1]:[e,r,!0]}function cj(e,t){let n=t-e+1;return Array.from({length:n},(t,n)=>n+e)}var lj=`dots`;function uj({total:e,siblings:t=1,boundaries:n=1,page:r,initialPage:i,onChange:a,startValue:o=1}){let s=Math.max(Math.trunc(o),1),c=Math.max(Math.trunc(e),s),l=c-s+1,u=i??s,[d,f]=sj({value:r,onChange:a,defaultValue:u,finalValue:u}),p=(0,G.useCallback)(e=>{f(ec?c:e)},[s,c,f]),m=(0,G.useCallback)(()=>p(d+1),[d,p]),h=(0,G.useCallback)(()=>p(d-1),[d,p]),g=(0,G.useCallback)(()=>p(s),[p,s]),_=(0,G.useCallback)(()=>p(c),[c,p]);return{range:(0,G.useMemo)(()=>{if(t*2+3+n*2>=l)return cj(s,c);let e=Math.max(d-t,s+n-1),r=Math.min(d+t,c-n),i=e>s+n+1,a=r{r.current||=window.setTimeout(()=>{i(...e),r.current=null},t)},[t]),o=(0,G.useCallback)(()=>{r.current&&=(window.clearTimeout(r.current),null)},[]);return(0,G.useEffect)(()=>(n.autoInvoke&&a(),o),[o,a]),{start:a,clear:o}}function gj(e,t,n){let r=(0,G.useRef)(null);(0,G.useEffect)(()=>{r.current&&=(r.current.disconnect(),null);let i=typeof n==`function`?n():n;return i&&(r.current=new MutationObserver(e),r.current.observe(i,t)),()=>{r.current&&=(r.current.disconnect(),null)}},[e,t,n])}function _j(){let[e,t]=(0,G.useState)(!1);return(0,G.useEffect)(()=>t(!0),[]),e}var vj=s((e=>{var t=LA();function n(e){var t=`https://react.dev/errors/`+e;if(1{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=vj()}));function bj(){return`development`}function xj(e){return e?.props?.ref}function Sj(e){return typeof e==`string`||typeof e==`number`||typeof e==`boolean`||typeof e==`bigint`}function Cj(e){let t=G.Children.toArray(e);return t.length!==1||!RA(t[0])?null:t[0]}function wj(e){return e}function Tj(e){var t,n,r=``;if(typeof e==`string`||typeof e==`number`)r+=e;else if(typeof e==`object`)if(Array.isArray(e)){var i=e.length;for(t=0;t{Object.entries(e).forEach(([e,n])=>{t[e]?t[e]=Ej(t[e],n):t[e]=n})}),t}function kj({theme:e,classNames:t,props:n,stylesCtx:r}){return Oj((Array.isArray(t)?t:[t]).map(t=>typeof t==`function`?t(e,n,r):t||Dj))}function Aj({theme:e,styles:t,props:n,stylesCtx:r}){let i=Array.isArray(t)?t:[t],a={};for(let t of i)typeof t==`function`?Object.assign(a,t(e,n,r)):t&&Object.assign(a,t);return a}function jj(e){return e===`auto`||e===`dark`||e===`light`}function Mj({key:e=`mantine-color-scheme-value`}={}){let t;return{get:t=>{if(typeof window>`u`)return t;try{let n=window.localStorage.getItem(e);return jj(n)?n:t}catch{return t}},set:t=>{try{window.localStorage.setItem(e,t)}catch(e){console.warn(`[@mantine/core] Local storage color scheme manager was unable to save color scheme.`,e)}},subscribe:n=>{t=t=>{t.storageArea===window.localStorage&&t.key===e&&jj(t.newValue)&&n(t.newValue)},window.addEventListener(`storage`,t)},unsubscribe:()=>{window.removeEventListener(`storage`,t)},clear:()=>{window.localStorage.removeItem(e)}}}function Nj(e,t){return typeof e.primaryShade==`number`?e.primaryShade:t===`dark`?e.primaryShade.dark:e.primaryShade.light}function Pj(e){return/^#?([0-9A-F]{3}){1,2}([0-9A-F]{2})?$/i.test(e)}function Fj(e){let t=e.replace(`#`,``);if(t.length===3){let e=t.split(``);t=[e[0],e[0],e[1],e[1],e[2],e[2]].join(``)}if(t.length===8){let e=parseInt(t.slice(6,8),16)/255;return{r:parseInt(t.slice(0,2),16),g:parseInt(t.slice(2,4),16),b:parseInt(t.slice(4,6),16),a:e}}let n=parseInt(t,16);return{r:n>>16&255,g:n>>8&255,b:n&255,a:1}}function Ij(e){let[t,n,r,i]=e.replace(/[^0-9,./]/g,``).split(/[/,]/).map(Number);return{r:t,g:n,b:r,a:i===void 0?1:i}}function Lj(e){let t=e.match(/^hsla?\(\s*(\d+)\s*,\s*(\d+%)\s*,\s*(\d+%)\s*(,\s*(0?\.\d+|\d+(\.\d+)?))?\s*\)$/i);if(!t)return{r:0,g:0,b:0,a:1};let n=parseInt(t[1],10),r=parseInt(t[2],10)/100,i=parseInt(t[3],10)/100,a=t[5]?parseFloat(t[5]):void 0,o=(1-Math.abs(2*i-1))*r,s=n/60,c=o*(1-Math.abs(s%2-1)),l=i-o/2,u,d,f;return s>=0&&s<1?(u=o,d=c,f=0):s>=1&&s<2?(u=c,d=o,f=0):s>=2&&s<3?(u=0,d=o,f=c):s>=3&&s<4?(u=0,d=c,f=o):s>=4&&s<5?(u=c,d=0,f=o):(u=o,d=0,f=c),{r:Math.round((u+l)*255),g:Math.round((d+l)*255),b:Math.round((f+l)*255),a:a||1}}function Rj(e){return Pj(e)?Fj(e):e.startsWith(`rgb`)?Ij(e):e.startsWith(`hsl`)?Lj(e):{r:0,g:0,b:0,a:1}}function zj(e){return e<=.03928?e/12.92:((e+.055)/1.055)**2.4}function Bj(e){let t=e.match(/oklch\((.*?)%\s/);return t?parseFloat(t[1]):null}function Vj(e){if(e.startsWith(`oklch(`))return(Bj(e)||0)/100;let{r:t,g:n,b:r}=Rj(e),i=t/255,a=n/255,o=r/255,s=zj(i),c=zj(a),l=zj(o);return .2126*s+.7152*c+.0722*l}function Hj(e,t=.179){return!e.startsWith(`var(`)&&Vj(e)>t}function Uj({color:e,theme:t,colorScheme:n}){if(typeof e!=`string`)throw Error(`[@mantine/core] Failed to parse color. Expected color to be a string, instead got ${typeof e}`);if(e===`bright`)return{color:e,value:n===`dark`?t.white:t.black,shade:void 0,isThemeColor:!1,isLight:Hj(n===`dark`?t.white:t.black,t.luminanceThreshold),variable:`--mantine-color-bright`};if(e===`dimmed`)return{color:e,value:n===`dark`?t.colors.dark[2]:t.colors.gray[7],shade:void 0,isThemeColor:!1,isLight:Hj(n===`dark`?t.colors.dark[2]:t.colors.gray[6],t.luminanceThreshold),variable:`--mantine-color-dimmed`};if(e===`white`||e===`black`)return{color:e,value:e===`white`?t.white:t.black,shade:void 0,isThemeColor:!1,isLight:Hj(e===`white`?t.white:t.black,t.luminanceThreshold),variable:`--mantine-color-${e}`};let[r,i]=e.split(`.`),a=i?Number(i):void 0,o=r in t.colors;if(o){let e=a===void 0?t.colors[r][Nj(t,n||`light`)]:t.colors[r][a];return{color:r,value:e,shade:a,isThemeColor:o,isLight:Hj(e,t.luminanceThreshold),variable:i?`--mantine-color-${r}-${a}`:`--mantine-color-${r}-filled`}}return{color:e,value:e,isThemeColor:o,isLight:Hj(e,t.luminanceThreshold),shade:a,variable:void 0}}function Wj(e,t){let n=Uj({color:e||t.primaryColor,theme:t});return n.variable?`var(${n.variable})`:e}function Gj(e){return!!e&&typeof e==`object`&&`mantine-virtual-color`in e}function Kj(e,t){if(e.startsWith(`var(`))return`color-mix(in srgb, ${e}, black ${t*100}%)`;let{r:n,g:r,b:i,a}=Rj(e),o=1-t,s=e=>Math.round(e*o);return`rgba(${s(n)}, ${s(r)}, ${s(i)}, ${a})`}function qj(e,t){let n={from:e?.from||t.defaultGradient.from,to:e?.to||t.defaultGradient.to,deg:e?.deg??t.defaultGradient.deg??0},r=Wj(n.from,t),i=Wj(n.to,t);return`linear-gradient(${n.deg}deg, ${r} 0%, ${i} 100%)`}function Jj(e,t){if(typeof e!=`string`||t>1||t<0)return`rgba(0, 0, 0, 1)`;if(e.startsWith(`var(`))return`color-mix(in srgb, ${e}, transparent ${(1-t)*100}%)`;if(e.startsWith(`oklch`))return e.includes(`/`)?e.replace(/\/\s*[\d.]+\s*\)/,`/ ${t})`):e.replace(`)`,` / ${t})`);let{r:n,g:r,b:i}=Rj(e);return`rgba(${n}, ${r}, ${i}, ${t})`}var Yj=Jj,Xj=({color:e,theme:t,variant:n,gradient:r,autoContrast:i})=>{let a=Uj({color:e,theme:t}),o=typeof i==`boolean`?i:t.autoContrast;if(n===`none`)return{background:`transparent`,hover:`transparent`,color:`inherit`,border:`none`};if(n===`filled`){let n=a.isThemeColor&&a.shade===void 0&&Gj(t.colors[a.color]),r=o?n?`var(--mantine-color-${a.color}-contrast)`:a.isLight?`var(--mantine-color-black)`:`var(--mantine-color-white)`:`var(--mantine-color-white)`;return a.isThemeColor?a.shade===void 0?{background:`var(--mantine-color-${e}-filled)`,hover:`var(--mantine-color-${e}-filled-hover)`,color:r,border:`${W(1)} solid transparent`}:{background:`var(--mantine-color-${a.color}-${a.shade})`,hover:`var(--mantine-color-${a.color}-${a.shade===9?8:a.shade+1})`,color:r,border:`${W(1)} solid transparent`}:{background:e,hover:Kj(e,.1),color:r,border:`${W(1)} solid transparent`}}if(n===`light`){if(a.isThemeColor){if(a.shade===void 0)return{background:`var(--mantine-color-${e}-light)`,hover:`var(--mantine-color-${e}-light-hover)`,color:`var(--mantine-color-${e}-light-color)`,border:`${W(1)} solid transparent`};let n=t.colors[a.color][a.shade];return{background:n,hover:Kj(n,.1),color:`var(--mantine-color-${a.color}-light-color)`,border:`${W(1)} solid transparent`}}return{background:Jj(e,.1),hover:Jj(e,.12),color:e,border:`${W(1)} solid transparent`}}if(n===`outline`)return a.isThemeColor?a.shade===void 0?{background:`transparent`,hover:`var(--mantine-color-${e}-outline-hover)`,color:`var(--mantine-color-${e}-outline)`,border:`${W(1)} solid var(--mantine-color-${e}-outline)`}:{background:`transparent`,hover:Jj(t.colors[a.color][a.shade],.05),color:`var(--mantine-color-${a.color}-${a.shade})`,border:`${W(1)} solid var(--mantine-color-${a.color}-${a.shade})`}:{background:`transparent`,hover:Jj(e,.05),color:e,border:`${W(1)} solid ${e}`};if(n===`subtle`){if(a.isThemeColor){if(a.shade===void 0)return{background:`transparent`,hover:`var(--mantine-color-${e}-light-hover)`,color:`var(--mantine-color-${e}-light-color)`,border:`${W(1)} solid transparent`};let n=t.colors[a.color][a.shade];return{background:`transparent`,hover:Jj(n,.12),color:`var(--mantine-color-${a.color}-${Math.min(a.shade,6)})`,border:`${W(1)} solid transparent`}}return{background:`transparent`,hover:Jj(e,.12),color:e,border:`${W(1)} solid transparent`}}return n===`transparent`?a.isThemeColor?a.shade===void 0?{background:`transparent`,hover:`transparent`,color:`var(--mantine-color-${e}-light-color)`,border:`${W(1)} solid transparent`}:{background:`transparent`,hover:`transparent`,color:`var(--mantine-color-${a.color}-${Math.min(a.shade,6)})`,border:`${W(1)} solid transparent`}:{background:`transparent`,hover:`transparent`,color:e,border:`${W(1)} solid transparent`}:n===`white`?a.isThemeColor?a.shade===void 0?{background:`var(--mantine-color-white)`,hover:Kj(t.white,.01),color:`var(--mantine-color-${e}-filled)`,border:`${W(1)} solid transparent`}:{background:`var(--mantine-color-white)`,hover:Kj(t.white,.01),color:`var(--mantine-color-${a.color}-${a.shade})`,border:`${W(1)} solid transparent`}:{background:`var(--mantine-color-white)`,hover:Kj(t.white,.01),color:e,border:`${W(1)} solid transparent`}:n===`gradient`?{background:qj(r,t),hover:qj(r,t),color:`var(--mantine-color-white)`,border:`none`}:n==="default"?{background:`var(--mantine-color-default)`,hover:`var(--mantine-color-default-hover)`,color:`var(--mantine-color-default-color)`,border:`${W(1)} solid var(--mantine-color-default-border)`}:{}};function Zj({color:e,theme:t,autoContrast:n,colorScheme:r}){return(typeof n==`boolean`?n:t.autoContrast)&&Uj({color:e||t.primaryColor,theme:t,colorScheme:r}).isLight?`var(--mantine-color-black)`:`var(--mantine-color-white)`}function Qj(e,t,n){return Zj({color:n===`dark`?e.dark:e.light,theme:t,colorScheme:n,autoContrast:!0})}function $j(e,t){let n=e.colors[e.primaryColor];return Gj(n)?e.autoContrast?Qj(n,e,t):`var(--mantine-color-white)`:Zj({color:n[Nj(e,t)],theme:e,autoContrast:null})}function eM(e,t){return typeof e==`boolean`?e:t.autoContrast}var tM=(0,G.createContext)(null);function nM(){let e=(0,G.use)(tM);if(!e)throw Error(`[@mantine/core] MantineProvider was not found in tree`);return e}function rM(){return nM().cssVariablesResolver}function iM(){return nM().classNamesPrefix}function aM(){return nM().getStyleNonce}function oM(){return nM().withStaticClasses}function sM(){return nM().headless}function cM(){return nM().stylesTransform?.sx}function lM(){return nM().stylesTransform?.styles}function uM(){return nM().env||`default`}function dM(){return nM().deduplicateInlineStyles}function fM(e,t){let n=typeof window<`u`&&`matchMedia`in window&&window.matchMedia(`(prefers-color-scheme: dark)`)?.matches,r=e===`auto`?n?`dark`:`light`:e;t()?.setAttribute(`data-mantine-color-scheme`,r)}function pM({manager:e,defaultColorScheme:t,getRootElement:n,forceColorScheme:r}){let i=(0,G.useRef)(null),[a,o]=(0,G.useState)(()=>e.get(t)),s=r||a,c=(0,G.useCallback)(t=>{r||(fM(t,n),o(t),e.set(t))},[e.set,s,r]),l=(0,G.useCallback)(()=>{o(t),fM(t,n),e.clear()},[e.clear,t]);return(0,G.useEffect)(()=>(e.subscribe(c),e.unsubscribe),[e.subscribe,e.unsubscribe]),tj(()=>{fM(e.get(t),n)},[]),(0,G.useEffect)(()=>{if(r)return fM(r,n),()=>{};r===void 0&&fM(a,n),typeof window<`u`&&`matchMedia`in window&&(i.current=window.matchMedia(`(prefers-color-scheme: dark)`));let e=e=>{a===`auto`&&fM(e.matches?`dark`:`light`,n)};return i.current?.addEventListener(`change`,e),()=>i.current?.removeEventListener(`change`,e)},[a,r]),{colorScheme:s,setColorScheme:c,clearColorScheme:l}}var mM=s((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.fragment`);function r(e,n,r){var i=null;if(r!==void 0&&(i=``+r),n.key!==void 0&&(i=``+n.key),`key`in n)for(var a in r={},n)a!==`key`&&(r[a]=n[a]);else r=n;return n=r.ref,{$$typeof:t,type:e,key:i,ref:n===void 0?null:n,props:r}}e.Fragment=n,e.jsx=r,e.jsxs=r})),hM=s(((e,t)=>{t.exports=mM()})),gM={dark:[`#C9C9C9`,`#b8b8b8`,`#828282`,`#696969`,`#424242`,`#3b3b3b`,`#2e2e2e`,`#242424`,`#1f1f1f`,`#141414`],gray:[`#f8f9fa`,`#f1f3f5`,`#e9ecef`,`#dee2e6`,`#ced4da`,`#adb5bd`,`#868e96`,`#495057`,`#343a40`,`#212529`],red:[`#fff5f5`,`#ffe3e3`,`#ffc9c9`,`#ffa8a8`,`#ff8787`,`#ff6b6b`,`#fa5252`,`#f03e3e`,`#e03131`,`#c92a2a`],pink:[`#fff0f6`,`#ffdeeb`,`#fcc2d7`,`#faa2c1`,`#f783ac`,`#f06595`,`#e64980`,`#d6336c`,`#c2255c`,`#a61e4d`],grape:[`#f8f0fc`,`#f3d9fa`,`#eebefa`,`#e599f7`,`#da77f2`,`#cc5de8`,`#be4bdb`,`#ae3ec9`,`#9c36b5`,`#862e9c`],violet:[`#f3f0ff`,`#e5dbff`,`#d0bfff`,`#b197fc`,`#9775fa`,`#845ef7`,`#7950f2`,`#7048e8`,`#6741d9`,`#5f3dc4`],indigo:[`#edf2ff`,`#dbe4ff`,`#bac8ff`,`#91a7ff`,`#748ffc`,`#5c7cfa`,`#4c6ef5`,`#4263eb`,`#3b5bdb`,`#364fc7`],blue:[`#e7f5ff`,`#d0ebff`,`#a5d8ff`,`#74c0fc`,`#4dabf7`,`#339af0`,`#228be6`,`#1c7ed6`,`#1971c2`,`#1864ab`],cyan:[`#e3fafc`,`#c5f6fa`,`#99e9f2`,`#66d9e8`,`#3bc9db`,`#22b8cf`,`#15aabf`,`#1098ad`,`#0c8599`,`#0b7285`],teal:[`#e6fcf5`,`#c3fae8`,`#96f2d7`,`#63e6be`,`#38d9a9`,`#20c997`,`#12b886`,`#0ca678`,`#099268`,`#087f5b`],green:[`#ebfbee`,`#d3f9d8`,`#b2f2bb`,`#8ce99a`,`#69db7c`,`#51cf66`,`#40c057`,`#37b24d`,`#2f9e44`,`#2b8a3e`],lime:[`#f4fce3`,`#e9fac8`,`#d8f5a2`,`#c0eb75`,`#a9e34b`,`#94d82d`,`#82c91e`,`#74b816`,`#66a80f`,`#5c940d`],yellow:[`#fff9db`,`#fff3bf`,`#ffec99`,`#ffe066`,`#ffd43b`,`#fcc419`,`#fab005`,`#f59f00`,`#f08c00`,`#e67700`],orange:[`#fff4e6`,`#ffe8cc`,`#ffd8a8`,`#ffc078`,`#ffa94d`,`#ff922b`,`#fd7e14`,`#f76707`,`#e8590c`,`#d9480f`]},_M=`-apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji`,vM={scale:1,fontSmoothing:!0,focusRing:`auto`,white:`#fff`,black:`#000`,colors:gM,primaryShade:{light:6,dark:8},primaryColor:`blue`,variantColorResolver:Xj,autoContrast:!1,luminanceThreshold:.3,fontFamily:_M,fontFamilyMonospace:`ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, Courier New, monospace`,respectReducedMotion:!1,cursorType:`default`,defaultGradient:{from:`blue`,to:`cyan`,deg:45},defaultRadius:`md`,activeClassName:`mantine-active`,focusClassName:``,headings:{fontFamily:_M,fontWeight:`700`,textWrap:`wrap`,sizes:{h1:{fontSize:W(34),lineHeight:`1.3`},h2:{fontSize:W(26),lineHeight:`1.35`},h3:{fontSize:W(22),lineHeight:`1.4`},h4:{fontSize:W(18),lineHeight:`1.45`},h5:{fontSize:W(16),lineHeight:`1.5`},h6:{fontSize:W(14),lineHeight:`1.5`}}},fontSizes:{xs:W(12),sm:W(14),md:W(16),lg:W(18),xl:W(20)},lineHeights:{xs:`1.4`,sm:`1.45`,md:`1.55`,lg:`1.6`,xl:`1.65`},fontWeights:{regular:`400`,medium:`600`,bold:`700`},radius:{xs:W(2),sm:W(4),md:W(8),lg:W(16),xl:W(32)},spacing:{xs:W(10),sm:W(12),md:W(16),lg:W(20),xl:W(32)},breakpoints:{xs:`36em`,sm:`48em`,md:`62em`,lg:`75em`,xl:`88em`},shadows:{xs:`0 ${W(1)} ${W(3)} rgba(0, 0, 0, 0.05), 0 ${W(1)} ${W(2)} rgba(0, 0, 0, 0.1)`,sm:`0 ${W(1)} ${W(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${W(10)} ${W(15)} ${W(-5)}, rgba(0, 0, 0, 0.04) 0 ${W(7)} ${W(7)} ${W(-5)}`,md:`0 ${W(1)} ${W(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${W(20)} ${W(25)} ${W(-5)}, rgba(0, 0, 0, 0.04) 0 ${W(10)} ${W(10)} ${W(-5)}`,lg:`0 ${W(1)} ${W(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${W(28)} ${W(23)} ${W(-7)}, rgba(0, 0, 0, 0.04) 0 ${W(12)} ${W(12)} ${W(-7)}`,xl:`0 ${W(1)} ${W(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${W(36)} ${W(28)} ${W(-7)}, rgba(0, 0, 0, 0.04) 0 ${W(17)} ${W(17)} ${W(-7)}`},other:{},components:{}},yM=`[@mantine/core] MantineProvider: Invalid theme.primaryColor, it accepts only key of theme.colors, learn more – https://mantine.dev/theming/colors/#primary-color`,bM=`[@mantine/core] MantineProvider: Invalid theme.primaryShade, it accepts only 0-9 integers or an object { light: 0-9, dark: 0-9 }`;function xM(e){return e<0||e>9?!1:parseInt(e.toString(),10)===e}function SM(e){if(!(e.primaryColor in e.colors))throw Error(yM);if(typeof e.primaryShade==`object`&&(!xM(e.primaryShade.dark)||!xM(e.primaryShade.light))||typeof e.primaryShade==`number`&&!xM(e.primaryShade))throw Error(bM)}function CM(e,t){if(!t)return SM(e),e;let n=DA(e,t);return t.fontFamily&&!t.headings?.fontFamily&&(n.headings={...n.headings,fontFamily:t.fontFamily}),SM(n),n}var K=hM(),wM=(0,G.createContext)(null),Aee=()=>(0,G.use)(wM)||vM;function TM(){let e=(0,G.use)(wM);if(!e)throw Error(`@mantine/core: MantineProvider was not found in component tree, make sure you have it in your app`);return e}function EM({theme:e,children:t,inherit:n=!0}){let r=Aee(),i=(0,G.useMemo)(()=>CM(n?r:vM,e),[e,r,n]);return(0,K.jsx)(wM,{value:i,children:t})}EM.displayName=`@mantine/core/MantineThemeProvider`;function DM(e){return Object.entries(e).map(([e,t])=>`${e}: ${t};`).join(``)}function OM(e,t){let n=t?[t]:[`:root`,`:host`],r=DM(e.variables),i=r?`${n.join(`, `)}{${r}}`:``,a=DM(e.dark),o=DM(e.light),s=e=>n.map(t=>t===`:host`?`${t}([data-mantine-color-scheme="${e}"])`:`${t}[data-mantine-color-scheme="${e}"]`).join(`, `);return`${i}\n\n${a?`${s(`dark`)}{${a}}`:``}\n\n${o?`${s(`light`)}{${o}}`:``}`}function kM({theme:e,color:t,colorScheme:n,name:r=t,withColorValues:i=!0}){if(!e.colors[t])return{};if(n===`light`){let n=Nj(e,`light`),a={[`--mantine-color-${r}-text`]:`var(--mantine-color-${r}-filled)`,[`--mantine-color-${r}-filled`]:`var(--mantine-color-${r}-${n})`,[`--mantine-color-${r}-filled-hover`]:`var(--mantine-color-${r}-${n===9?8:n+1})`,[`--mantine-color-${r}-light`]:`var(--mantine-color-${r}-1)`,[`--mantine-color-${r}-light-hover`]:`var(--mantine-color-${r}-2)`,[`--mantine-color-${r}-light-color`]:`var(--mantine-color-${r}-9)`,[`--mantine-color-${r}-outline`]:`var(--mantine-color-${r}-${n})`,[`--mantine-color-${r}-outline-hover`]:Yj(e.colors[t][n],.05)};return i?{[`--mantine-color-${r}-0`]:e.colors[t][0],[`--mantine-color-${r}-1`]:e.colors[t][1],[`--mantine-color-${r}-2`]:e.colors[t][2],[`--mantine-color-${r}-3`]:e.colors[t][3],[`--mantine-color-${r}-4`]:e.colors[t][4],[`--mantine-color-${r}-5`]:e.colors[t][5],[`--mantine-color-${r}-6`]:e.colors[t][6],[`--mantine-color-${r}-7`]:e.colors[t][7],[`--mantine-color-${r}-8`]:e.colors[t][8],[`--mantine-color-${r}-9`]:e.colors[t][9],...a}:a}let a=Nj(e,`dark`),o={[`--mantine-color-${r}-text`]:`var(--mantine-color-${r}-4)`,[`--mantine-color-${r}-filled`]:`var(--mantine-color-${r}-${a})`,[`--mantine-color-${r}-filled-hover`]:`var(--mantine-color-${r}-${a===9?8:a+1})`,[`--mantine-color-${r}-light`]:Kj(e.colors[t][9],.5),[`--mantine-color-${r}-light-hover`]:Kj(e.colors[t][9],.3),[`--mantine-color-${r}-light-color`]:`var(--mantine-color-${r}-0)`,[`--mantine-color-${r}-outline`]:`var(--mantine-color-${r}-${Math.max(a-4,0)})`,[`--mantine-color-${r}-outline-hover`]:Yj(e.colors[t][Math.max(a-4,0)],.05)};return i?{[`--mantine-color-${r}-0`]:e.colors[t][0],[`--mantine-color-${r}-1`]:e.colors[t][1],[`--mantine-color-${r}-2`]:e.colors[t][2],[`--mantine-color-${r}-3`]:e.colors[t][3],[`--mantine-color-${r}-4`]:e.colors[t][4],[`--mantine-color-${r}-5`]:e.colors[t][5],[`--mantine-color-${r}-6`]:e.colors[t][6],[`--mantine-color-${r}-7`]:e.colors[t][7],[`--mantine-color-${r}-8`]:e.colors[t][8],[`--mantine-color-${r}-9`]:e.colors[t][9],...o}:o}function AM(e,t,n){TA(t).forEach(r=>Object.assign(e,{[`--mantine-${n}-${r}`]:t[r]}))}var jM=e=>{let t=Nj(e,`light`),n=e.defaultRadius in e.radius?e.radius[e.defaultRadius]:W(e.defaultRadius),r={variables:{"--mantine-z-index-app":`100`,"--mantine-z-index-modal":`200`,"--mantine-z-index-popover":`300`,"--mantine-z-index-overlay":`400`,"--mantine-z-index-max":`9999`,"--mantine-scale":e.scale.toString(),"--mantine-cursor-type":e.cursorType,"--mantine-webkit-font-smoothing":e.fontSmoothing?`antialiased`:`unset`,"--mantine-moz-font-smoothing":e.fontSmoothing?`grayscale`:`unset`,"--mantine-color-white":e.white,"--mantine-color-black":e.black,"--mantine-line-height":e.lineHeights.md,"--mantine-font-family":e.fontFamily,"--mantine-font-family-monospace":e.fontFamilyMonospace,"--mantine-font-family-headings":e.headings.fontFamily,"--mantine-heading-font-weight":e.headings.fontWeight,"--mantine-heading-text-wrap":e.headings.textWrap,"--mantine-radius-default":n,"--mantine-primary-color-filled":`var(--mantine-color-${e.primaryColor}-filled)`,"--mantine-primary-color-filled-hover":`var(--mantine-color-${e.primaryColor}-filled-hover)`,"--mantine-primary-color-light":`var(--mantine-color-${e.primaryColor}-light)`,"--mantine-primary-color-light-hover":`var(--mantine-color-${e.primaryColor}-light-hover)`,"--mantine-primary-color-light-color":`var(--mantine-color-${e.primaryColor}-light-color)`},light:{"--mantine-color-scheme":`light`,"--mantine-primary-color-contrast":$j(e,`light`),"--mantine-color-bright":`var(--mantine-color-black)`,"--mantine-color-text":e.black,"--mantine-color-body":e.white,"--mantine-color-error":`var(--mantine-color-red-6)`,"--mantine-color-success":`var(--mantine-color-teal-8)`,"--mantine-color-placeholder":`var(--mantine-color-gray-5)`,"--mantine-color-anchor":`var(--mantine-color-${e.primaryColor}-${t})`,"--mantine-color-default":`var(--mantine-color-white)`,"--mantine-color-default-hover":`var(--mantine-color-gray-0)`,"--mantine-color-default-color":`var(--mantine-color-black)`,"--mantine-color-default-border":`var(--mantine-color-gray-4)`,"--mantine-color-dimmed":`var(--mantine-color-gray-6)`,"--mantine-color-disabled":`var(--mantine-color-gray-2)`,"--mantine-color-disabled-color":`var(--mantine-color-gray-5)`,"--mantine-color-disabled-border":`var(--mantine-color-gray-3)`},dark:{"--mantine-color-scheme":`dark`,"--mantine-primary-color-contrast":$j(e,`dark`),"--mantine-color-bright":`var(--mantine-color-white)`,"--mantine-color-text":`var(--mantine-color-dark-0)`,"--mantine-color-body":`var(--mantine-color-dark-7)`,"--mantine-color-error":`var(--mantine-color-red-8)`,"--mantine-color-success":`var(--mantine-color-teal-8)`,"--mantine-color-placeholder":`var(--mantine-color-dark-3)`,"--mantine-color-anchor":`var(--mantine-color-${e.primaryColor}-4)`,"--mantine-color-default":`var(--mantine-color-dark-6)`,"--mantine-color-default-hover":`var(--mantine-color-dark-5)`,"--mantine-color-default-color":`var(--mantine-color-white)`,"--mantine-color-default-border":`var(--mantine-color-dark-4)`,"--mantine-color-dimmed":`var(--mantine-color-dark-2)`,"--mantine-color-disabled":`var(--mantine-color-dark-6)`,"--mantine-color-disabled-color":`var(--mantine-color-dark-3)`,"--mantine-color-disabled-border":`var(--mantine-color-dark-4)`}};AM(r.variables,e.breakpoints,`breakpoint`),AM(r.variables,e.spacing,`spacing`),AM(r.variables,e.fontSizes,`font-size`),AM(r.variables,e.lineHeights,`line-height`),AM(r.variables,e.shadows,`shadow`),AM(r.variables,e.radius,`radius`),AM(r.variables,e.fontWeights,`font-weight`),e.colors[e.primaryColor].forEach((t,n)=>{r.variables[`--mantine-primary-color-${n}`]=`var(--mantine-color-${e.primaryColor}-${n})`}),TA(e.colors).forEach(t=>{let n=e.colors[t];if(Gj(n)){Object.assign(r.light,kM({theme:e,name:n.name,color:n.light,colorScheme:`light`,withColorValues:!0})),Object.assign(r.dark,kM({theme:e,name:n.name,color:n.dark,colorScheme:`dark`,withColorValues:!0})),r.light[`--mantine-color-${n.name}-contrast`]=Qj(n,e,`light`),r.dark[`--mantine-color-${n.name}-contrast`]=Qj(n,e,`dark`);return}n.forEach((e,n)=>{r.variables[`--mantine-color-${t}-${n}`]=e}),Object.assign(r.light,kM({theme:e,color:t,colorScheme:`light`,withColorValues:!1})),Object.assign(r.dark,kM({theme:e,color:t,colorScheme:`dark`,withColorValues:!1}))});let i=e.headings.sizes;return TA(i).forEach(t=>{r.variables[`--mantine-${t}-font-size`]=i[t].fontSize,r.variables[`--mantine-${t}-line-height`]=i[t].lineHeight,r.variables[`--mantine-${t}-font-weight`]=i[t].fontWeight||e.headings.fontWeight}),r};function jee(){let e=TM(),t=aM(),n=TA(e.breakpoints).reduce((t,n)=>{let r=e.breakpoints[n].includes(`px`),i=AA(e.breakpoints[n]);return`${t}@media (max-width: ${r?`${i-.1}px`:NA(i-.1)}) {.mantine-visible-from-${n} {display: none !important;}}@media (min-width: ${r?`${i}px`:NA(i)}) {.mantine-hidden-from-${n} {display: none !important;}}`},``);return(0,K.jsx)(`style`,{"data-mantine-styles":`classes`,nonce:t?.(),dangerouslySetInnerHTML:{__html:n}})}function Mee({theme:e,generator:t}){let n=jM(e),r=t?.(e);return r?DA(n,r):n}var MM=jM(vM);function Nee(e){let t={variables:{},light:{},dark:{}};return TA(e.variables).forEach(n=>{MM.variables[n]!==e.variables[n]&&(t.variables[n]=e.variables[n])}),TA(e.light).forEach(n=>{MM.light[n]!==e.light[n]&&(t.light[n]=e.light[n])}),TA(e.dark).forEach(n=>{MM.dark[n]!==e.dark[n]&&(t.dark[n]=e.dark[n])}),t}function Pee(e){return OM({variables:{},dark:{"--mantine-color-scheme":`dark`},light:{"--mantine-color-scheme":`light`}},e)}function NM({cssVariablesSelector:e,deduplicateCssVariables:t}){let n=TM(),r=aM(),i=Mee({theme:n,generator:rM()}),a=(e===void 0||e===`:root`||e===`:host`)&&t,o=OM(a?Nee(i):i,e);return o?(0,K.jsx)(`style`,{"data-mantine-styles":!0,nonce:r?.(),dangerouslySetInnerHTML:{__html:`${o}${a?``:Pee(e)}`}}):null}NM.displayName=`@mantine/CssVariables`;function Fee({respectReducedMotion:e,getRootElement:t}){tj(()=>{e&&t()?.setAttribute(`data-respect-reduced-motion`,`true`)},[e])}function PM({theme:e,children:t,getStyleNonce:n,withStaticClasses:r=!0,withGlobalClasses:i=!0,deduplicateCssVariables:a=!0,withCssVariables:o=!0,cssVariablesSelector:s,classNamesPrefix:c=`mantine`,colorSchemeManager:l=Mj(),defaultColorScheme:u=`light`,getRootElement:d=()=>document.documentElement,cssVariablesResolver:f,forceColorScheme:p,stylesTransform:m,env:h,deduplicateInlineStyles:g=!1}){let{colorScheme:_,setColorScheme:v,clearColorScheme:y}=pM({defaultColorScheme:u,forceColorScheme:p,manager:l,getRootElement:d});return Fee({respectReducedMotion:e?.respectReducedMotion||!1,getRootElement:d}),(0,K.jsx)(tM,{value:{colorScheme:_,setColorScheme:v,clearColorScheme:y,getRootElement:d,classNamesPrefix:c,getStyleNonce:n,cssVariablesResolver:f,cssVariablesSelector:s??`:root`,withStaticClasses:r,stylesTransform:m,env:h,deduplicateInlineStyles:g},children:(0,K.jsxs)(EM,{theme:e,children:[o&&(0,K.jsx)(NM,{cssVariablesSelector:s,deduplicateCssVariables:a}),i&&(0,K.jsx)(jee,{}),t]})})}PM.displayName=`@mantine/core/MantineProvider`;function FM(e,t,n){let r=TM(),i=(Array.isArray(e)?e:[e]).filter(Boolean),a={};for(let e of i){let t=r.components[e]?.defaultProps,n=typeof t==`function`?t(r):t;n&&(a={...a,...n})}return{...t,...a,...PA(n)}}function IM(e){return e}function LM({classNames:e,styles:t,props:n,stylesCtx:r}){let i=TM();return{resolvedClassNames:e===void 0?void 0:kj({theme:i,classNames:e,props:n,stylesCtx:r||void 0}),resolvedStyles:t===void 0?void 0:Aj({theme:i,styles:t,props:n,stylesCtx:r||void 0})}}var RM={always:`mantine-focus-always`,auto:`mantine-focus-auto`,never:`mantine-focus-never`};function zM({theme:e,options:t,unstyled:n}){return Ej(t?.focusable&&!n&&(e.focusClassName||RM[e.focusRing]),t?.active&&!n&&e.activeClassName)}function BM({selector:e,stylesCtx:t,options:n,props:r,theme:i}){return kj({theme:i,classNames:n?.classNames,props:n?.props||r,stylesCtx:t})[e]}function VM({selector:e,stylesCtx:t,theme:n,classNames:r,props:i}){return kj({theme:n,classNames:r,props:i,stylesCtx:t})[e]}function HM({rootSelector:e,selector:t,className:n}){return e===t?n:void 0}function UM({selector:e,classes:t,unstyled:n}){return n?void 0:t[e]}function WM({themeName:e,classNamesPrefix:t,selector:n,withStaticClass:r}){return r===!1?[]:e.map(e=>`${t}-${e}-${n}`)}function GM({options:e,classes:t,selector:n,unstyled:r}){return e?.variant&&!r?t[`${n}--${e.variant}`]:void 0}function KM({theme:e,options:t,themeName:n,selector:r,classNamesPrefix:i,resolvedClassNames:a,resolvedThemeClassNames:o,classes:s,unstyled:c,className:l,rootSelector:u,props:d,stylesCtx:f,withStaticClasses:p,headless:m,transformedStyles:h}){return Ej(zM({theme:e,options:t,unstyled:c||m}),o.map(e=>e[r]),GM({options:t,classes:s,selector:r,unstyled:c||m}),a[r],VM({selector:r,stylesCtx:f,theme:e,classNames:h,props:d}),BM({selector:r,stylesCtx:f,options:t,props:d,theme:e}),HM({rootSelector:u,selector:r,className:l}),UM({selector:r,classes:s,unstyled:c||m}),p&&!m&&WM({themeName:n,classNamesPrefix:i,selector:r,withStaticClass:t?.withStaticClass}),t?.className)}function qM({style:e,theme:t}){return Array.isArray(e)?e.reduce((e,n)=>({...e,...qM({style:n,theme:t})}),{}):typeof e==`function`?e(t):e??{}}function JM({theme:e,selector:t,options:n,props:r,stylesCtx:i,rootSelector:a,withStylesTransform:o,resolvedStyles:s,resolvedThemeStyles:c,resolvedVars:l,resolvedRootStyle:u}){return{...c[t],...s[t],...!o&&Aj({theme:e,styles:n?.styles,props:n?.props||r,stylesCtx:i})[t],...l[t],...a===t?u:null,...qM({style:n?.style,theme:e})}}function YM(e){return e.reduce((e,t)=>(t&&Object.keys(t).forEach(n=>{e[n]={...e[n],...PA(t[n])}}),e),{})}function XM({props:e,stylesCtx:t,themeName:n,theme:r}){let i=lM()?.();return{getTransformedStyles:a=>i?[...a.map(n=>i(n,{props:e,theme:r,ctx:t})),...n.map(n=>i(r.components[n]?.styles,{props:e,theme:r,ctx:t}))].filter(Boolean):[],withStylesTransform:!!i}}function ZM({name:e,classes:t,props:n,stylesCtx:r,className:i,style:a,rootSelector:o=`root`,unstyled:s,classNames:c,styles:l,vars:u,varsResolver:d,attributes:f}){let p=TM(),m=iM(),h=oM(),g=sM(),_=(Array.isArray(e)?e:[e]).filter(e=>e),{withStylesTransform:v,getTransformedStyles:y}=XM({props:n,stylesCtx:r,themeName:_,theme:p}),b=kj({theme:p,classNames:c,props:n,stylesCtx:r}),x=_.map(e=>kj({theme:p,classNames:p.components[e]?.classNames,props:n,stylesCtx:r})),S=v?{}:Aj({theme:p,styles:l,props:n,stylesCtx:r}),C={};if(!v)for(let e of _){let t=Aj({theme:p,styles:p.components[e]?.styles,props:n,stylesCtx:r});for(let e of Object.keys(t))C[e]={...C[e],...t[e]}}let w=YM([g?{}:d?.(p,n,r),..._.map(e=>p.components?.[e]?.vars?.(p,n,r)),u?.(p,n,r)]),T=qM({style:a,theme:p});return(e,a)=>({...f?.[e],className:KM({theme:p,options:a,themeName:_,selector:e,classNamesPrefix:m,resolvedClassNames:b,resolvedThemeClassNames:x,classes:t,unstyled:s,className:i,rootSelector:o,props:n,stylesCtx:r,withStaticClasses:h,headless:g,transformedStyles:y([a?.styles,l])}),style:JM({theme:p,selector:e,options:a,props:n,stylesCtx:r,rootSelector:o,withStylesTransform:v,resolvedStyles:S,resolvedThemeStyles:C,resolvedVars:w,resolvedRootStyle:T})})}function QM(e){return TA(e).reduce((t,n)=>e[n]===void 0?t:`${t}${OA(n)}:${e[n]};`,``).trim()}function $M({selector:e,styles:t,media:n,container:r}){let i=t?QM(t):``,a=Array.isArray(n)?n.map(t=>`@media${t.query}{${e}{${QM(t.styles)}}}`):[],o=Array.isArray(r)?r.map(t=>`@container ${t.query}{${e}{${QM(t.styles)}}}`):[];return`${i?`${e}{${i}}`:``}${a.join(``)}${o.join(``)}`.trim()}function eN(e){let t=5381;for(let n=0;n>>0).toString(36)}function tN({deduplicate:e,...t}){let n=aM(),r=$M(t);return e?(0,K.jsx)(`style`,{href:`mantine-${eN(r)}`,precedence:`mantine`,nonce:n?.(),children:r}):(0,K.jsx)(`style`,{"data-mantine-styles":`inline`,nonce:n?.(),dangerouslySetInnerHTML:{__html:r}})}function nN(e){let t=5381;for(let n=0;n>>0).toString(36)}function rN(e,t){return`__mdi__-${nN(`${e?QM(e):``}|${Array.isArray(t)?t.map(e=>`${e.query}:${QM(e.styles)}`).join(`|`):``}`)}`}function iN(e){let{m:t,mx:n,my:r,mt:i,mb:a,ml:o,mr:s,me:c,ms:l,mis:u,mie:d,p:f,px:p,py:m,pt:h,pb:g,pl:_,pr:v,pe:y,ps:b,pis:x,pie:S,bd:C,bdrs:w,bg:T,c:E,opacity:D,ff:O,fz:k,fw:A,lts:j,ta:ee,lh:M,fs:N,tt:te,td:P,w:F,miw:I,maw:ne,h:L,mih:re,mah:ie,bgsz:ae,bgp:oe,bgr:R,bga:z,pos:se,top:ce,left:le,bottom:ue,right:de,inset:fe,display:pe,flex:B,hiddenFrom:me,visibleFrom:V,lightHidden:he,darkHidden:ge,sx:H,..._e}=e;return{styleProps:PA({m:t,mx:n,my:r,mt:i,mb:a,ml:o,mr:s,me:c,ms:l,mis:u,mie:d,p:f,px:p,py:m,pt:h,pb:g,pl:_,pr:v,pis:x,pie:S,pe:y,ps:b,bd:C,bg:T,c:E,opacity:D,ff:O,fz:k,fw:A,lts:j,ta:ee,lh:M,fs:N,tt:te,td:P,w:F,miw:I,maw:ne,h:L,mih:re,mah:ie,bgsz:ae,bgp:oe,bgr:R,bga:z,pos:se,top:ce,left:le,bottom:ue,right:de,inset:fe,display:pe,flex:B,bdrs:w,hiddenFrom:me,visibleFrom:V,lightHidden:he,darkHidden:ge,sx:H}),rest:_e}}var aN={m:{type:`spacing`,property:`margin`},mt:{type:`spacing`,property:`marginTop`},mb:{type:`spacing`,property:`marginBottom`},ml:{type:`spacing`,property:`marginLeft`},mr:{type:`spacing`,property:`marginRight`},ms:{type:`spacing`,property:`marginInlineStart`},me:{type:`spacing`,property:`marginInlineEnd`},mis:{type:`spacing`,property:`marginInlineStart`},mie:{type:`spacing`,property:`marginInlineEnd`},mx:{type:`spacing`,property:`marginInline`},my:{type:`spacing`,property:`marginBlock`},p:{type:`spacing`,property:`padding`},pt:{type:`spacing`,property:`paddingTop`},pb:{type:`spacing`,property:`paddingBottom`},pl:{type:`spacing`,property:`paddingLeft`},pr:{type:`spacing`,property:`paddingRight`},ps:{type:`spacing`,property:`paddingInlineStart`},pe:{type:`spacing`,property:`paddingInlineEnd`},pis:{type:`spacing`,property:`paddingInlineStart`},pie:{type:`spacing`,property:`paddingInlineEnd`},px:{type:`spacing`,property:`paddingInline`},py:{type:`spacing`,property:`paddingBlock`},bd:{type:`border`,property:`border`},bdrs:{type:`radius`,property:`borderRadius`},bg:{type:`color`,property:`background`},c:{type:`textColor`,property:`color`},opacity:{type:`identity`,property:`opacity`},ff:{type:`fontFamily`,property:`fontFamily`},fz:{type:`fontSize`,property:`fontSize`},fw:{type:`identity`,property:`fontWeight`},lts:{type:`size`,property:`letterSpacing`},ta:{type:`identity`,property:`textAlign`},lh:{type:`lineHeight`,property:`lineHeight`},fs:{type:`identity`,property:`fontStyle`},tt:{type:`identity`,property:`textTransform`},td:{type:`identity`,property:`textDecoration`},w:{type:`spacing`,property:`width`},miw:{type:`spacing`,property:`minWidth`},maw:{type:`spacing`,property:`maxWidth`},h:{type:`spacing`,property:`height`},mih:{type:`spacing`,property:`minHeight`},mah:{type:`spacing`,property:`maxHeight`},bgsz:{type:`size`,property:`backgroundSize`},bgp:{type:`identity`,property:`backgroundPosition`},bgr:{type:`identity`,property:`backgroundRepeat`},bga:{type:`identity`,property:`backgroundAttachment`},pos:{type:`identity`,property:`position`},top:{type:`size`,property:`top`},left:{type:`size`,property:`left`},bottom:{type:`size`,property:`bottom`},right:{type:`size`,property:`right`},inset:{type:`size`,property:`inset`},display:{type:`identity`,property:`display`},flex:{type:`identity`,property:`flex`}};function oN(e,t){let n=Uj({color:e,theme:t});return n.color===`dimmed`?`var(--mantine-color-dimmed)`:n.color===`bright`?`var(--mantine-color-bright)`:n.variable?`var(${n.variable})`:n.color}function Iee(e,t){let n=Uj({color:e,theme:t});return n.isThemeColor&&n.shade===void 0?`var(--mantine-color-${n.color}-text)`:oN(e,t)}function Lee(e,t){if(typeof e==`number`)return W(e);if(typeof e==`string`){let[n,r,...i]=e.split(` `).filter(e=>e.trim()!==``),a=`${W(n)}`;return r&&(a+=` ${r}`),i.length>0&&(a+=` ${oN(i.join(` `),t)}`),a.trim()}return e}var sN={text:`var(--mantine-font-family)`,mono:`var(--mantine-font-family-monospace)`,monospace:`var(--mantine-font-family-monospace)`,heading:`var(--mantine-font-family-headings)`,headings:`var(--mantine-font-family-headings)`};function cN(e){return typeof e==`string`&&e in sN?sN[e]:e}var lN=[`h1`,`h2`,`h3`,`h4`,`h5`,`h6`];function uN(e,t){return typeof e==`string`&&e in t.fontSizes?`var(--mantine-font-size-${e})`:typeof e==`string`&&lN.includes(e)?`var(--mantine-${e}-font-size)`:typeof e==`number`||typeof e==`string`?W(e):e}function dN(e){return e}var fN=[`h1`,`h2`,`h3`,`h4`,`h5`,`h6`];function pN(e,t){return typeof e==`string`&&e in t.lineHeights?`var(--mantine-line-height-${e})`:typeof e==`string`&&fN.includes(e)?`var(--mantine-${e}-line-height)`:e}function mN(e,t){return typeof e==`string`&&e in t.radius?`var(--mantine-radius-${e})`:typeof e==`number`||typeof e==`string`?W(e):e}function hN(e){return typeof e==`number`?W(e):e}function gN(e,t){if(typeof e==`number`)return W(e);if(typeof e==`string`){let n=e.replace(`-`,``);if(!(n in t.spacing))return W(e);let r=`--mantine-spacing-${n}`;return e.startsWith(`-`)?`calc(var(${r}) * -1)`:`var(${r})`}return e}var _N={color:oN,textColor:Iee,fontSize:uN,spacing:gN,radius:mN,identity:dN,size:hN,lineHeight:pN,fontFamily:cN,border:Lee};function vN(e){return e.replace(`(min-width: `,``).replace(`em)`,``)}function yN({media:e,...t}){let n=Object.keys(e).sort((e,t)=>Number(vN(e))-Number(vN(t))).map(t=>({query:t,styles:e[t]}));return{...t,media:n}}function bN(e){if(typeof e!=`object`||!e)return!1;let t=Object.keys(e);return t.length!==1||t[0]!==`base`}function xN(e){return typeof e==`object`&&e?`base`in e?e.base:void 0:e}function SN(e){return typeof e==`object`&&e?TA(e).filter(e=>e!==`base`):[]}function CN(e,t){return typeof e==`object`&&e&&t in e?e[t]:e}function wN({styleProps:e,data:t,theme:n}){return yN(TA(e).reduce((r,i)=>{if(i===`hiddenFrom`||i===`visibleFrom`||i===`sx`)return r;let a=t[i],o=Array.isArray(a.property)?a.property:[a.property],s=xN(e[i]);if(!bN(e[i]))return o.forEach(e=>{r.inlineStyles[e]=_N[a.type](s,n)}),r;r.hasResponsiveStyles=!0;let c=SN(e[i]);return o.forEach(t=>{s!=null&&(r.styles[t]=_N[a.type](s,n)),c.forEach(o=>{let s=`(min-width: ${n.breakpoints[o]})`;r.media[s]={...r.media[s],[t]:_N[a.type](CN(e[i],o),n)}})}),r},{hasResponsiveStyles:!1,styles:{},inlineStyles:{},media:{}}))}function TN(){return`__m__-${(0,G.useId)().replace(/[:«»]/g,``)}`}function EN(e,t){return Array.isArray(e)?[...e].reduce((e,n)=>({...e,...EN(n,t)}),{}):typeof e==`function`?e(t):e??{}}function DN(e){return e}var ON=DN;function kN(e){return e}function AN(e){let t=e;return t.extend=kN,t.withProps=e=>{let n=n=>(0,K.jsx)(t,{...e,...n});return n.extend=t.extend,n.displayName=`WithProps(${t.displayName})`,n},t}function jN(e){return AN(e)}function MN(e){let t=e;return t.withProps=e=>{let n=n=>(0,K.jsx)(t,{...e,...n});return n.extend=t.extend,n.displayName=`WithProps(${t.displayName})`,n},t.extend=kN,t}function NN(e){return`data-${(e.startsWith(`data-`)?e.slice(5):e).replace(/([a-z])([A-Z])/g,`$1-$2`).toLowerCase()}`}function PN(e){return Object.keys(e).reduce((t,n)=>{let r=e[n];return r===void 0||r===``||r===!1||r===null||(t[NN(n)]=e[n]),t},{})}function FN(e){return e?typeof e==`string`?{[NN(e)]:!0}:Array.isArray(e)?[...e].reduce((e,t)=>({...e,...FN(t)}),{}):PN(e):null}function IN(e,t){return Array.isArray(e)?[...e].reduce((e,n)=>({...e,...IN(n,t)}),{}):typeof e==`function`?e(t):e??{}}function LN({theme:e,style:t,vars:n,styleProps:r}){let i=IN(t,e),a=IN(n,e);return{...i,...a,...r}}function RN({component:e,style:t,__vars:n,className:r,variant:i,mod:a,size:o,hiddenFrom:s,visibleFrom:c,lightHidden:l,darkHidden:u,renderRoot:d,__size:f,ref:p,...m}){let h=TM(),g=e||`div`,{styleProps:_,rest:v}=iN(m),y=cM()?.()?.(_.sx),b=TN(),x=wN({styleProps:_,theme:h,data:aN}),S=dM(),C=S&&x.hasResponsiveStyles?rN(x.styles,x.media):b,w={ref:p,style:LN({theme:h,style:t,vars:n,styleProps:x.inlineStyles}),className:Ej(r,y,{[C]:x.hasResponsiveStyles,"mantine-light-hidden":l,"mantine-dark-hidden":u,[`mantine-hidden-from-${s}`]:s,[`mantine-visible-from-${c}`]:c}),"data-variant":i,"data-size":FA(o)?void 0:o||void 0,size:f,...FN(a),...v};return(0,K.jsxs)(K.Fragment,{children:[x.hasResponsiveStyles&&(0,K.jsx)(tN,{selector:`.${C}`,styles:x.styles,media:x.media,deduplicate:S}),typeof d==`function`?d(w):(0,K.jsx)(g,{...w})]})}RN.displayName=`@mantine/core/Box`;var zN=ON(RN),BN=(0,G.createContext)({dir:`ltr`,toggleDirection:()=>{},setDirection:()=>{}});function VN(){return(0,G.use)(BN)}var[HN,UN]=zA(`ScrollArea.Root component was not found in tree`);function WN(e,t){let n=(0,G.useEffectEvent)(t);tj(()=>{let t=0;if(e){let r=new ResizeObserver(()=>{cancelAnimationFrame(t),t=window.requestAnimationFrame(n)});return r.observe(e),()=>{window.cancelAnimationFrame(t),r.unobserve(e)}}},[e])}function GN(e){let{style:t,...n}=e,r=UN(),[i,a]=(0,G.useState)(0),[o,s]=(0,G.useState)(0),c=!!(i&&o);return WN(r.scrollbarX,()=>{let e=r.scrollbarX?.offsetHeight||0;r.onCornerHeightChange(e),s(e)}),WN(r.scrollbarY,()=>{let e=r.scrollbarY?.offsetWidth||0;r.onCornerWidthChange(e),a(e)}),c?(0,K.jsx)(`div`,{...n,style:{...t,width:i,height:o}}):null}function KN(e){let t=UN(),n=!!(t.scrollbarX&&t.scrollbarY);return t.type!==`scroll`&&n?(0,K.jsx)(GN,{...e}):null}var qN={scrollHideDelay:1e3,type:`hover`};function JN(e){let{type:t,scrollHideDelay:n,scrollbars:r,getStyles:i,ref:a,...o}=FM(`ScrollAreaRoot`,qN,e),[s,c]=(0,G.useState)(null),[l,u]=(0,G.useState)(null),[d,f]=(0,G.useState)(null),[p,m]=(0,G.useState)(null),[h,g]=(0,G.useState)(null),[_,v]=(0,G.useState)(0),[y,b]=(0,G.useState)(0),[x,S]=(0,G.useState)(!1),[C,w]=(0,G.useState)(!1),T=oj(a,c);return(0,K.jsx)(HN,{value:{type:t,scrollHideDelay:n,scrollArea:s,viewport:l,onViewportChange:u,content:d,onContentChange:f,scrollbarX:p,onScrollbarXChange:m,scrollbarXEnabled:x,onScrollbarXEnabledChange:S,scrollbarY:h,onScrollbarYChange:g,scrollbarYEnabled:C,onScrollbarYEnabledChange:w,onCornerWidthChange:v,onCornerHeightChange:b,getStyles:i},children:(0,K.jsx)(zN,{...o,ref:T,__vars:{"--sa-corner-width":r===`xy`?`${_}px`:`0px`,"--sa-corner-height":r===`xy`?`${y}px`:`0px`}})})}JN.displayName=`@mantine/core/ScrollAreaRoot`;function YN(e,t){let n=e/t;return Number.isNaN(n)?0:n}function XN(e){let t=YN(e.viewport,e.content),n=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,r=(e.scrollbar.size-n)*t;return Math.max(r,18)}function ZN(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];let r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}function QN(e,[t,n]){return Math.min(n,Math.max(t,e))}function $N(e,t,n=`ltr`){let r=XN(t),i=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,a=t.scrollbar.size-i,o=t.content-t.viewport,s=a-r,c=QN(e,n===`ltr`?[0,o]:[o*-1,0]);return ZN([0,o],[0,s])(c)}function eP(e,t,n,r=`ltr`){let i=XN(n),a=i/2,o=t||a,s=i-o,c=n.scrollbar.paddingStart+o,l=n.scrollbar.size-n.scrollbar.paddingEnd-s,u=n.content-n.viewport,d=r===`ltr`?[0,u]:[u*-1,0];return ZN([c,l],d)(e)}function tP(e,t){return e>0&&e{e?.(r),(n===!1||!r.defaultPrevented)&&t?.(r)}}var[iP,aP]=zA(`ScrollAreaScrollbar was not found in tree`);function oP(e){let{sizes:t,hasThumb:n,onThumbChange:r,onThumbPointerUp:i,onThumbPointerDown:a,onThumbPositionChange:o,onDragScroll:s,onWheelScroll:c,onResize:l,ref:u,...d}=e,f=UN(),[p,m]=(0,G.useState)(null),h=oj(u,m),g=(0,G.useRef)(null),_=(0,G.useRef)(``),{viewport:v}=f,y=t.content-t.viewport,b=(0,G.useEffectEvent)(c),x=ZA(o),S=QA(l,10),C=e=>{if(g.current){let t=e.clientX-g.current.left,n=e.clientY-g.current.top;s({x:t,y:n})}};return(0,G.useEffect)(()=>{let e=e=>{let t=e.target;p?.contains(t)&&b(e,y)};return document.addEventListener(`wheel`,e,{passive:!1}),()=>document.removeEventListener(`wheel`,e,{passive:!1})},[v,p,y]),(0,G.useEffect)(x,[t,x]),WN(p,S),WN(f.content,S),(0,K.jsx)(iP,{value:{scrollbar:p,hasThumb:n,onThumbChange:ZA(r),onThumbPointerUp:ZA(i),onThumbPositionChange:x,onThumbPointerDown:ZA(a)},children:(0,K.jsx)(`div`,{...d,ref:h,"data-mantine-scrollbar":!0,style:{position:`absolute`,...d.style},onPointerDown:rP(e.onPointerDown,e=>{e.preventDefault(),e.button===0&&(e.target.setPointerCapture(e.pointerId),g.current=p.getBoundingClientRect(),_.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect=`none`,C(e))}),onPointerMove:rP(e.onPointerMove,C),onPointerUp:rP(e.onPointerUp,e=>{let t=e.target;t.hasPointerCapture(e.pointerId)&&(e.preventDefault(),t.releasePointerCapture(e.pointerId))}),onLostPointerCapture:()=>{document.body.style.webkitUserSelect=_.current,g.current=null}})})}var sP=e=>{let{sizes:t,onSizesChange:n,style:r,ref:i,...a}=e,o=UN(),[s,c]=(0,G.useState)(),l=(0,G.useRef)(null),u=oj(i,l,o.onScrollbarXChange);return(0,G.useEffect)(()=>{l.current&&c(getComputedStyle(l.current))},[l]),(0,K.jsx)(oP,{"data-orientation":`horizontal`,...a,ref:u,sizes:t,style:{...r,"--sa-thumb-width":`${XN(t)}px`},onThumbPointerDown:t=>e.onThumbPointerDown(t.x),onDragScroll:t=>e.onDragScroll(t.x),onWheelScroll:(t,n)=>{if(o.viewport){let r=o.viewport.scrollLeft+t.deltaX;e.onWheelScroll(r),tP(r,n)&&t.preventDefault()}},onResize:()=>{l.current&&o.viewport&&s&&n({content:o.viewport.scrollWidth,viewport:o.viewport.offsetWidth,scrollbar:{size:l.current.clientWidth,paddingStart:nP(s.paddingLeft),paddingEnd:nP(s.paddingRight)}})}})};sP.displayName=`@mantine/core/ScrollAreaScrollbarX`;function cP(e){let{sizes:t,onSizesChange:n,style:r,ref:i,...a}=e,o=UN(),[s,c]=(0,G.useState)(),l=(0,G.useRef)(null),u=oj(i,l,o.onScrollbarYChange);return(0,G.useEffect)(()=>{l.current&&c(window.getComputedStyle(l.current))},[]),(0,K.jsx)(oP,{...a,"data-orientation":`vertical`,ref:u,sizes:t,style:{"--sa-thumb-height":`${XN(t)}px`,...r},onThumbPointerDown:t=>e.onThumbPointerDown(t.y),onDragScroll:t=>e.onDragScroll(t.y),onWheelScroll:(t,n)=>{if(o.viewport){let r=o.viewport.scrollTop+t.deltaY;e.onWheelScroll(r),tP(r,n)&&t.preventDefault()}},onResize:()=>{l.current&&o.viewport&&s&&n({content:o.viewport.scrollHeight,viewport:o.viewport.offsetHeight,scrollbar:{size:l.current.clientHeight,paddingStart:nP(s.paddingTop),paddingEnd:nP(s.paddingBottom)}})}})}cP.displayName=`@mantine/core/ScrollAreaScrollbarY`;function lP(e){let{orientation:t=`vertical`,...n}=e,{dir:r}=VN(),i=UN(),a=(0,G.useRef)(null),o=(0,G.useRef)(0),[s,c]=(0,G.useState)({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),l=YN(s.viewport,s.content),u={...n,sizes:s,onSizesChange:c,hasThumb:l>0&&l<1,onThumbChange:e=>{a.current=e},onThumbPointerUp:()=>{o.current=0},onThumbPointerDown:e=>{o.current=e}},d=(e,t)=>eP(e,o.current,s,t);return t===`horizontal`?(0,K.jsx)(sP,{...u,onThumbPositionChange:()=>{if(i.viewport&&a.current){let e=i.viewport.scrollLeft,t=$N(e,s,r);a.current.style.transform=`translate3d(${t}px, 0, 0)`}},onWheelScroll:e=>{i.viewport&&(i.viewport.scrollLeft=e)},onDragScroll:e=>{i.viewport&&(i.viewport.scrollLeft=d(e,r))}}):t===`vertical`?(0,K.jsx)(cP,{...u,onThumbPositionChange:()=>{if(i.viewport&&a.current){let e=i.viewport.scrollTop,t=$N(e,s);s.scrollbar.size===0?a.current.style.setProperty(`--thumb-opacity`,`0`):a.current.style.setProperty(`--thumb-opacity`,`1`),a.current.style.transform=`translate3d(0, ${t}px, 0)`}},onWheelScroll:e=>{i.viewport&&(i.viewport.scrollTop=e)},onDragScroll:e=>{i.viewport&&(i.viewport.scrollTop=d(e))}}):null}lP.displayName=`@mantine/core/ScrollAreaScrollbarVisible`;function uP(e){let t=UN(),{forceMount:n,...r}=e,[i,a]=(0,G.useState)(!1),o=e.orientation===`horizontal`,s=QA(()=>{if(t.viewport){let e=t.viewport.offsetWidth{let{scrollArea:e}=r,t=0;if(e){let n=()=>{window.clearTimeout(t),a(!0)},i=()=>{t=window.setTimeout(()=>a(!1),r.scrollHideDelay)};return e.addEventListener(`pointerenter`,n),e.addEventListener(`pointerleave`,i),()=>{window.clearTimeout(t),e.removeEventListener(`pointerenter`,n),e.removeEventListener(`pointerleave`,i)}}},[r.scrollArea,r.scrollHideDelay]),t||i?(0,K.jsx)(uP,{"data-state":i?`visible`:`hidden`,...n}):null}dP.displayName=`@mantine/core/ScrollAreaScrollbarHover`;function fP(e){let{forceMount:t,...n}=e,r=UN(),i=e.orientation===`horizontal`,[a,o]=(0,G.useState)(`hidden`),s=QA(()=>o(`idle`),100);return(0,G.useEffect)(()=>{if(a===`idle`){let e=window.setTimeout(()=>o(`hidden`),r.scrollHideDelay);return()=>window.clearTimeout(e)}},[a,r.scrollHideDelay]),(0,G.useEffect)(()=>{let{viewport:e}=r,t=i?`scrollLeft`:`scrollTop`;if(e){let n=e[t],r=()=>{let r=e[t];n!==r&&(o(`scrolling`),s()),n=r};return e.addEventListener(`scroll`,r),()=>e.removeEventListener(`scroll`,r)}},[r.viewport,i,s]),t||a!==`hidden`?(0,K.jsx)(lP,{"data-state":a===`hidden`?`hidden`:`visible`,...n,onPointerEnter:rP(e.onPointerEnter,()=>o(`interacting`)),onPointerLeave:rP(e.onPointerLeave,()=>o(`idle`))}):null}function pP(e){let{forceMount:t,...n}=e,r=UN(),{onScrollbarXEnabledChange:i,onScrollbarYEnabledChange:a}=r,o=e.orientation===`horizontal`;return(0,G.useEffect)(()=>(o?i(!0):a(!0),()=>{o?i(!1):a(!1)}),[o,i,a]),r.type===`hover`?(0,K.jsx)(dP,{...n,forceMount:t}):r.type===`scroll`?(0,K.jsx)(fP,{...n,forceMount:t}):r.type===`auto`?(0,K.jsx)(uP,{...n,forceMount:t}):r.type===`always`?(0,K.jsx)(lP,{...n}):null}pP.displayName=`@mantine/core/ScrollAreaScrollbar`;function Ree(e,t=()=>{}){let n={left:e.scrollLeft,top:e.scrollTop},r=0;return(function i(){let a={left:e.scrollLeft,top:e.scrollTop},o=n.left!==a.left,s=n.top!==a.top;(o||s)&&t(),n=a,r=window.requestAnimationFrame(i)})(),()=>window.cancelAnimationFrame(r)}function mP(e){let{style:t,ref:n,...r}=e,i=UN(),a=aP(),{onThumbPositionChange:o}=a,s=oj(n,a.onThumbChange),c=(0,G.useRef)(void 0),l=QA(()=>{c.current&&=(c.current(),void 0)},100);return(0,G.useEffect)(()=>{let{viewport:e}=i;if(e){let t=()=>{if(l(),!c.current){let t=Ree(e,o);c.current=t,o()}};return o(),e.addEventListener(`scroll`,t),()=>e.removeEventListener(`scroll`,t)}},[i.viewport,l,o]),(0,K.jsx)(`div`,{"data-state":a.hasThumb?`visible`:`hidden`,...r,ref:s,style:{width:`var(--sa-thumb-width)`,height:`var(--sa-thumb-height)`,...t},onPointerDownCapture:rP(e.onPointerDownCapture,e=>{let t=e.target.getBoundingClientRect(),n=e.clientX-t.left,r=e.clientY-t.top;a.onThumbPointerDown({x:n,y:r})}),onPointerUp:rP(e.onPointerUp,a.onThumbPointerUp)})}mP.displayName=`@mantine/core/ScrollAreaThumb`;function hP(e){let{forceMount:t,...n}=e,r=aP();return t||r.hasThumb?(0,K.jsx)(mP,{...n}):null}hP.displayName=`@mantine/core/ScrollAreaThumb`;function gP({children:e,style:t,ref:n,onWheel:r,...i}){let a=UN(),o=oj(n,a.onViewportChange),s=e=>{if(r?.(e),a.scrollbarXEnabled&&a.viewport&&e.shiftKey){let{scrollTop:t,scrollHeight:n,clientHeight:r,scrollWidth:i,clientWidth:o}=a.viewport,s=t<1,c=t>=n-r-1;i>o&&(s||c)&&e.stopPropagation()}};return(0,K.jsx)(zN,{...i,ref:o,onWheel:s,"data-scrollarea-viewport":!0,style:{overflowX:a.scrollbarXEnabled?`scroll`:`hidden`,overflowY:a.scrollbarYEnabled?`scroll`:`hidden`,...t},children:(0,K.jsx)(`div`,{...a.getStyles(`content`),ref:a.onContentChange,children:e})})}gP.displayName=`@mantine/core/ScrollAreaViewport`;var _P={root:`m_d57069b5`,content:`m_b1336c6`,viewport:`m_c0783ff9`,viewportInner:`m_f8f631dd`,scrollbar:`m_c44ba933`,thumb:`m_d8b5e363`,corner:`m_21657268`};function vP(){return typeof window<`u`}function yP(e){return SP(e)?(e.nodeName||``).toLowerCase():`#document`}function bP(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function xP(e){return((SP(e)?e.ownerDocument:e.document)||window.document)?.documentElement}function SP(e){return vP()?e instanceof Node||e instanceof bP(e).Node:!1}function CP(e){return vP()?e instanceof Element||e instanceof bP(e).Element:!1}function wP(e){return vP()?e instanceof HTMLElement||e instanceof bP(e).HTMLElement:!1}function TP(e){return!vP()||typeof ShadowRoot>`u`?!1:e instanceof ShadowRoot||e instanceof bP(e).ShadowRoot}function EP(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=LP(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&i!==`inline`&&i!==`contents`}function DP(e){return/^(table|td|th)$/.test(yP(e))}function OP(e){try{if(e.matches(`:popover-open`))return!0}catch{}try{return e.matches(`:modal`)}catch{return!1}}var kP=/transform|translate|scale|rotate|perspective|filter/,AP=/paint|layout|strict|content/,jP=e=>!!e&&e!==`none`,MP;function NP(e){let t=CP(e)?LP(e):e;return jP(t.transform)||jP(t.translate)||jP(t.scale)||jP(t.rotate)||jP(t.perspective)||!FP()&&(jP(t.backdropFilter)||jP(t.filter))||kP.test(t.willChange||``)||AP.test(t.contain||``)}function PP(e){let t=zP(e);for(;wP(t)&&!IP(t);){if(NP(t))return t;if(OP(t))return null;t=zP(t)}return null}function FP(){return MP??=typeof CSS<`u`&&CSS.supports&&CSS.supports(`-webkit-backdrop-filter`,`none`),MP}function IP(e){return/^(html|body|#document)$/.test(yP(e))}function LP(e){return bP(e).getComputedStyle(e)}function RP(e){return CP(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function zP(e){if(yP(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||TP(e)&&e.host||xP(e);return TP(t)?t.host:t}function BP(e){let t=zP(e);return IP(t)?(e.ownerDocument||e).body:wP(t)&&EP(t)?t:BP(t)}function VP(e,t,n){t===void 0&&(t=[]),n===void 0&&(n=!0);let r=BP(e),i=r===e.ownerDocument?.body,a=bP(r);if(i){let e=HP(a);return t.concat(a,a.visualViewport||[],EP(r)?r:[],e&&n?VP(e):[])}return t.concat(r,VP(r,[],n))}function HP(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}var UP=Math.min,WP=Math.max,GP=Math.round,KP=Math.floor,qP=e=>({x:e,y:e}),JP={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function YP(e,t,n){return WP(e,UP(t,n))}function XP(e,t){return typeof e==`function`?e(t):e}function ZP(e){return e.split(`-`)[0]}function QP(e){return e.split(`-`)[1]}function $P(e){return e===`x`?`y`:`x`}function eF(e){return e===`y`?`height`:`width`}function tF(e){let t=e[0];return t===`t`||t===`b`?`y`:`x`}function nF(e){return $P(tF(e))}function rF(e,t,n){n===void 0&&(n=!1);let r=QP(e),i=nF(e),a=eF(i),o=i===`x`?r===(n?`end`:`start`)?`right`:`left`:r===`start`?`bottom`:`top`;return t.reference[a]>t.floating[a]&&(o=fF(o)),[o,fF(o)]}function iF(e){let t=fF(e);return[aF(e),t,aF(t)]}function aF(e){return e.includes(`start`)?e.replace(`start`,`end`):e.replace(`end`,`start`)}var oF=[`left`,`right`],sF=[`right`,`left`],cF=[`top`,`bottom`],lF=[`bottom`,`top`];function uF(e,t,n){switch(e){case`top`:case`bottom`:return n?t?sF:oF:t?oF:sF;case`left`:case`right`:return t?cF:lF;default:return[]}}function dF(e,t,n,r){let i=QP(e),a=uF(ZP(e),n===`start`,r);return i&&(a=a.map(e=>e+`-`+i),t&&(a=a.concat(a.map(aF)))),a}function fF(e){let t=ZP(e);return JP[t]+e.slice(t.length)}function pF(e){return{top:e.top??0,right:e.right??0,bottom:e.bottom??0,left:e.left??0}}function mF(e){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:pF(e)}function hF(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function gF(){let e=navigator.userAgentData;return e!=null&&e.platform?e.platform:navigator.platform}function _F(){let e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(e=>{let{brand:t,version:n}=e;return t+`/`+n}).join(` `):navigator.userAgent}function vF(){return/apple/i.test(navigator.vendor)}function yF(){return gF().toLowerCase().startsWith(`mac`)&&!navigator.maxTouchPoints}function bF(){return _F().includes(`jsdom/`)}var xF=`data-floating-ui-focusable`,SF=`input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])`;function CF(e){let t=e.activeElement;for(;((n=t)==null||(n=n.shadowRoot)==null?void 0:n.activeElement)!=null;){var n;t=t.shadowRoot.activeElement}return t}function wF(e,t){if(!e||!t)return!1;let n=t.getRootNode==null?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&TP(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function TF(e){return`composedPath`in e?e.composedPath()[0]:e.target}function EF(e,t){if(t==null)return!1;if(`composedPath`in e)return e.composedPath().includes(t);let n=e;return n.target!=null&&t.contains(n.target)}function DF(e){return e.matches(`html,body`)}function OF(e){return e?.ownerDocument||document}function kF(e){return wP(e)&&e.matches(SF)}function AF(e){if(!e||bF())return!0;try{return e.matches(`:focus-visible`)}catch{return!0}}function jF(e){return e?e.hasAttribute(xF)?e:e.querySelector(`[data-floating-ui-focusable]`)||e:null}function MF(e,t,n){return n===void 0&&(n=!0),e.filter(e=>e.parentId===t&&(!n||e.context?.open)).flatMap(t=>[t,...MF(e,t.id,n)])}function NF(e){return`nativeEvent`in e}function PF(e,t){let n=[`mouse`,`pen`];return t||n.push(``,void 0),n.includes(e)}var FF=typeof document<`u`?G.useLayoutEffect:function(){},IF={...G};function LF(e){let t=G.useRef(e);return FF(()=>{t.current=e}),t}var RF=IF.useInsertionEffect||(e=>e());function zF(e){let t=G.useRef(()=>{});return RF(()=>{t.current=e}),G.useCallback(function(){var e=[...arguments];return t.current==null?void 0:t.current(...e)},[])}function BF(e,t,n){let{reference:r,floating:i}=e,a=tF(t),o=nF(t),s=eF(o),c=ZP(t),l=a===`y`,u=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,f=r[s]/2-i[s]/2,p;switch(c){case`top`:p={x:u,y:r.y-i.height};break;case`bottom`:p={x:u,y:r.y+r.height};break;case`right`:p={x:r.x+r.width,y:d};break;case`left`:p={x:r.x-i.width,y:d};break;default:p={x:r.x,y:r.y}}let m=QP(t);return m&&(p[o]+=f*(m===`end`?1:-1)*(n&&l?-1:1)),p}async function VF(e,t){t===void 0&&(t={});let{x:n,y:r,platform:i,rects:a,elements:o,strategy:s}=e,{boundary:c=`clippingAncestors`,rootBoundary:l=`viewport`,elementContext:u=`floating`,altBoundary:d=!1,padding:f=0}=XP(t,e),p=mF(f),m=o[d?u===`floating`?`reference`:`floating`:u],h=hF(await i.getClippingRect({element:await(i.isElement==null?void 0:i.isElement(m))??!0?m:m.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(o.floating)),boundary:c,rootBoundary:l,strategy:s})),g=u===`floating`?{x:n,y:r,width:a.floating.width,height:a.floating.height}:a.reference,_=await(i.getOffsetParent==null?void 0:i.getOffsetParent(o.floating)),v=await(i.isElement==null?void 0:i.isElement(_))&&await(i.getScale==null?void 0:i.getScale(_))||{x:1,y:1},y=hF(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:g,offsetParent:_,strategy:s}):g);return{top:(h.top-y.top+p.top)/v.y,bottom:(y.bottom-h.bottom+p.bottom)/v.y,left:(h.left-y.left+p.left)/v.x,right:(y.right-h.right+p.right)/v.x}}var HF=50,UF=async(e,t,n)=>{let{placement:r=`bottom`,strategy:i=`absolute`,middleware:a=[],platform:o}=n,s=o.detectOverflow?o:{...o,detectOverflow:VF},c=await(o.isRTL==null?void 0:o.isRTL(t)),l=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=BF(l,r,c),f=r,p=0,m={};for(let n=0;n({name:`arrow`,options:e,async fn(t){let{x:n,y:r,placement:i,rects:a,platform:o,elements:s,middlewareData:c}=t,{element:l,padding:u=0}=XP(e,t)||{};if(l==null)return{};let d=mF(u),f={x:n,y:r},p=nF(i),m=eF(p),h=await o.getDimensions(l),g=p===`y`,_=g?`top`:`left`,v=g?`bottom`:`right`,y=g?`clientHeight`:`clientWidth`,b=a.reference[m]+a.reference[p]-f[p]-a.floating[m],x=f[p]-a.reference[p],S=await(o.getOffsetParent==null?void 0:o.getOffsetParent(l)),C=S?S[y]:0;(!C||!await(o.isElement==null?void 0:o.isElement(S)))&&(C=s.floating[y]||a.floating[m]);let w=b/2-x/2,T=C/2-h[m]/2-1,E=UP(d[_],T),D=UP(d[v],T),O=C-h[m]-D,k=C/2-h[m]/2+w,A=YP(E,k,O),j=!c.arrow&&QP(i)!=null&&k!==A&&a.reference[m]/2-(ke<=0)){let e=(i.flip?.index||0)+1,t=S[e];if(t&&(u!==`alignment`||_===tF(t)||T.every(e=>tF(e.placement)!==_||e.overflows[0]>0)))return{data:{index:e,overflows:T},reset:{placement:t}};let n=T.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0]?.placement;if(!n)switch(f){case`bestFit`:{let e=T.filter(e=>{if(x){let t=tF(e.placement);return t===_||t===`y`}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]?.[0];e&&(n=e);break}case`initialPlacement`:n=o}if(r!==n)return{reset:{placement:n}}}return{}}}};function KF(e){let t=UP(...e.map(e=>e.left)),n=UP(...e.map(e=>e.top)),r=WP(...e.map(e=>e.right)),i=WP(...e.map(e=>e.bottom));return{x:t,y:n,width:r-t,height:i-n}}function qF(e){let t=e.slice().sort((e,t)=>e.y-t.y),n=[],r=null;for(let e=0;er.height/2?n.push([i]):n[n.length-1].push(i),r=i}return n.map(e=>hF(KF(e)))}var JF=function(e){return e===void 0&&(e={}),{name:`inline`,options:e,async fn(t){let{placement:n,elements:r,rects:i,platform:a,strategy:o}=t,{padding:s=2,x:c,y:l}=XP(e,t),u=Array.from(await(a.getClientRects==null?void 0:a.getClientRects(r.reference))||[]);if(!u.length)return{};let d=qF(u),f=hF(KF(u)),p=mF(s);function m(){if(d.length===2&&(d[0].left>d[1].right||d[1].left>d[0].right)&&c!=null&&l!=null)return d.find(e=>c>e.left-p.left&&ce.top-p.top&&l=2){if(tF(n)===`y`){let e=d[0],t=d[d.length-1],r=ZP(n)===`top`,i=e.top,a=t.bottom,o=r?e.left:t.left;return hF({x:o,y:i,width:(r?e.right:t.right)-o,height:a-i})}let e=ZP(n)===`left`,t=WP(...d.map(e=>e.right)),r=UP(...d.map(e=>e.left)),i=d.filter(n=>e?n.left===r:n.right===t),a=i[0].top,o=i[i.length-1].bottom;return hF({x:r,y:a,width:t-r,height:o-a})}return f}let h=await a.getElementRects({reference:{getBoundingClientRect:m},floating:r.floating,strategy:o});return i.reference.x!==h.reference.x||i.reference.y!==h.reference.y||i.reference.width!==h.reference.width||i.reference.height!==h.reference.height?{reset:{rects:h}}:{}}}},YF=new Set([`left`,`top`]);async function XF(e,t){let{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=ZP(n),s=QP(n),c=tF(n)===`y`,l=YF.has(o)?-1:1,u=a&&c?-1:1,d=XP(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:m}=typeof d==`number`?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof m==`number`&&(p=s===`end`?m*-1:m),c?{x:p*u,y:f*l}:{x:f*l,y:p*u}}var ZF=function(e){return e===void 0&&(e=0),{name:`offset`,options:e,async fn(t){var n;let{x:r,y:i,placement:a,middlewareData:o}=t,s=await XF(t,e);return a===o.offset?.placement&&(n=o.arrow)!=null&&n.alignmentOffset?{}:{x:r+s.x,y:i+s.y,data:{...s,placement:a}}}}},QF=function(e){return e===void 0&&(e={}),{name:`shift`,options:e,async fn(t){let{x:n,y:r,placement:i,platform:a}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:c={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=XP(e,t),u={x:n,y:r},d=await a.detectOverflow(t,l),f=tF(i),p=$P(f),m=u[p],h=u[f],g=(e,t)=>YP(t+d[e===`y`?`top`:`left`],t,t-d[e===`y`?`bottom`:`right`]);o&&(m=g(p,m)),s&&(h=g(f,h));let _=c.fn({...t,[p]:m,[f]:h});return{..._,data:{x:_.x-n,y:_.y-r,enabled:{[p]:o,[f]:s}}}}}};function $F(e){let t=LP(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=wP(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=GP(n)!==a||GP(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function eI(e){return CP(e)?e:e.contextElement}function tI(e){let t=eI(e);if(!wP(t))return qP(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:a}=$F(t),o=(a?GP(n.width):n.width)/r,s=(a?GP(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}var nI=qP(0);function rI(e){let t=bP(e);return!FP()||!t.visualViewport?nI:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function iI(e,t,n){return t===void 0&&(t=!1),!!n&&t&&n===bP(e)}function aI(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=eI(e),o=qP(1);t&&(r?CP(r)&&(o=tI(r)):o=tI(e));let s=iI(a,n,r)?rI(a):qP(0),c=(i.left+s.x)/o.x,l=(i.top+s.y)/o.y,u=i.width/o.x,d=i.height/o.y;if(a&&r){let e=bP(a),t=CP(r)?bP(r):r,n=e,i=HP(n);for(;i&&t!==n;){let e=tI(i),t=i.getBoundingClientRect(),r=LP(i),a=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,l*=e.y,u*=e.x,d*=e.y,c+=a,l+=o,n=bP(i),i=HP(n)}}return hF({width:u,height:d,x:c,y:l})}function oI(e,t){let n=RP(e).scrollLeft;return t?t.left+n:aI(xP(e)).left+n}function sI(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-oI(e,n),y:n.top+t.scrollTop}}function cI(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a=i===`fixed`,o=xP(r),s=t?OP(t.floating):!1;if(r===o||s&&a)return n;let c={scrollLeft:0,scrollTop:0},l=qP(1),u=qP(0),d=wP(r);if((d||!a)&&((yP(r)!==`body`||EP(o))&&(c=RP(r)),d)){let e=aI(r);l=tI(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}let f=o&&!d&&!a?sI(o,c):qP(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x+f.x,y:n.y*l.y-c.scrollTop*l.y+u.y+f.y}}function lI(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function uI(e){let t=RP(e),n=e.ownerDocument.body,r=WP(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),i=WP(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight),a=-t.scrollLeft+oI(e),o=-t.scrollTop;return LP(n).direction===`rtl`&&(a+=WP(e.clientWidth,n.clientWidth)-r),{width:r,height:i,x:a,y:o}}var dI=25;function fI(e,t,n){n===void 0&&(n=`viewport`);let r=n===`layoutViewport`,i=bP(e),a=xP(e),o=i.visualViewport,s=a.clientWidth,c=a.clientHeight,l=0,u=0;if(o){let e=!FP()||t===`fixed`;r?e||(l=-o.offsetLeft,u=-o.offsetTop):(s=o.width,c=o.height,e&&(l=o.offsetLeft,u=o.offsetTop))}if(oI(a)<=0){let e=a.ownerDocument,t=e.body,n=getComputedStyle(t),r=e.compatMode===`CSS1Compat`&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,i=Math.abs(a.clientWidth-t.clientWidth-r),o=getComputedStyle(a).scrollbarGutter===`stable both-edges`?i/2:i;o<=dI&&(s-=o)}return{width:s,height:c,x:l,y:u}}function pI(e,t){let n=aI(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=tI(e);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}function mI(e,t,n){let r;if(t===`viewport`||t===`layoutViewport`)r=fI(e,n,t);else if(t===`document`)r=uI(xP(e));else if(CP(t))r=pI(t,n);else{let n=rI(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return hF(r)}function hI(e,t){let n=t.get(e);if(n)return n;let r=VP(e,[],!1).filter(e=>CP(e)&&yP(e)!==`body`),i=null,a=LP(e).position===`fixed`,o=a?zP(e):e;for(;CP(o)&&!IP(o);){let e=LP(o),t=NP(o),n=i?i.position:a?`fixed`:``;!t&&(n===`fixed`||n===`absolute`&&e.position===`static`)?r=r.filter(e=>e!==o):i=e,o=zP(o)}return t.set(e,r),r}function gI(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[...n===`clippingAncestors`?OP(t)?[]:hI(t,this._c):[].concat(n),r],o=mI(t,a[0],i),s=o.top,c=o.right,l=o.bottom,u=o.left;for(let e=1;e{s(!1,1e-7)},1e3)}y=!1}try{r=new IntersectionObserver(b,{...v,root:a.ownerDocument})}catch{r=new IntersectionObserver(b,v)}r.observe(e)}let c=bP(e),l=()=>s(n);return c.addEventListener(`resize`,l),s(!0),()=>{c.removeEventListener(`resize`,l),o()}}function DI(e,t,n,r){r===void 0&&(r={});let{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver==`function`,layoutShift:s=typeof IntersectionObserver==`function`,animationFrame:c=!1}=r,l=eI(e),u=i||a?[...l?VP(l):[],...t?VP(t):[]]:[];u.forEach(e=>{i&&e.addEventListener(`scroll`,n),a&&e.addEventListener(`resize`,n)});let d=l&&s?EI(l,n,a):null,f=-1,p=null;o&&(p=new ResizeObserver(e=>{let[r]=e;r&&r.target===l&&p&&t&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var e;(e=p)==null||e.observe(t)})),n()}),l&&!c&&p.observe(l),t&&p.observe(t));let m,h=c?aI(e):null;c&&g();function g(){let t=aI(e);h&&!TI(h,t)&&n(),h=t,m=requestAnimationFrame(g)}return n(),()=>{var e;u.forEach(e=>{i&&e.removeEventListener(`scroll`,n),a&&e.removeEventListener(`resize`,n)}),d?.(),(e=p)==null||e.disconnect(),p=null,c&&cancelAnimationFrame(m)}}var OI=ZF,kI=QF,AI=GF,jI=WF,MI=JF,NI=(e,t,n)=>{let r=new Map,i=n??{},a={...wI,...i.platform,_c:r};return UF(e,t,{...i,platform:a})},PI=u(yj(),1),FI=typeof document<`u`?G.useLayoutEffect:function(){};function II(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e==`function`&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e==`object`){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!II(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){let n=i[r];if(!(n===`_owner`&&e.$$typeof)&&!II(e[n],t[n]))return!1}return!0}return e!==e&&t!==t}function LI(e){return typeof window>`u`?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function RI(e,t){let n=LI(e);return Math.round(t*n)/n}function zI(e){let t=G.useRef(e);return FI(()=>{t.current=e}),t}function BI(e){e===void 0&&(e={});let{placement:t=`bottom`,strategy:n=`absolute`,middleware:r=[],platform:i,elements:{reference:a,floating:o}={},transform:s=!0,whileElementsMounted:c,open:l}=e,[u,d]=G.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=G.useState(r);II(f,r)||p(r);let[m,h]=G.useState(null),[g,_]=G.useState(null),v=G.useCallback(e=>{e!==S.current&&(S.current=e,h(e))},[]),y=G.useCallback(e=>{e!==C.current&&(C.current=e,_(e))},[]),b=a||m,x=o||g,S=G.useRef(null),C=G.useRef(null),w=G.useRef(u),T=c!=null,E=zI(c),D=zI(i),O=zI(l),k=G.useCallback(()=>{if(!S.current||!C.current)return;let e={placement:t,strategy:n,middleware:f};D.current&&(e.platform=D.current),NI(S.current,C.current,e).then(e=>{let t={...e,isPositioned:O.current!==!1};A.current&&!II(w.current,t)&&(w.current=t,PI.flushSync(()=>{d(t)}))})},[f,t,n,D,O]);FI(()=>{l===!1&&w.current.isPositioned&&(w.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[l]);let A=G.useRef(!1);FI(()=>(A.current=!0,()=>{A.current=!1}),[]),FI(()=>{if(b&&(S.current=b),x&&(C.current=x),b&&x){if(E.current)return E.current(b,x,k);k()}},[b,x,k,E,T]);let j=G.useMemo(()=>({reference:S,floating:C,setReference:v,setFloating:y}),[v,y]),ee=G.useMemo(()=>({reference:b,floating:x}),[b,x]),M=G.useMemo(()=>{let e={position:n,left:0,top:0};if(!ee.floating)return e;let t=RI(ee.floating,u.x),r=RI(ee.floating,u.y);return s?{...e,transform:`translate(`+t+`px, `+r+`px)`,...LI(ee.floating)>=1.5&&{willChange:`transform`}}:{position:n,left:t,top:r}},[n,s,ee.floating,u.x,u.y]);return G.useMemo(()=>({...u,update:k,refs:j,elements:ee,floatingStyles:M}),[u,k,j,ee,M])}var VI=e=>{function t(e){return{}.hasOwnProperty.call(e,`current`)}return{name:`arrow`,options:e,fn(n){let{element:r,padding:i}=typeof e==`function`?e(n):e;return r&&t(r)?r.current==null?{}:jI({element:r.current,padding:i}).fn(n):r?jI({element:r,padding:i}).fn(n):{}}}},HI=(e,t)=>{let n=OI(e);return{name:n.name,fn:n.fn,options:[e,t]}},UI=(e,t)=>{let n=kI(e);return{name:n.name,fn:n.fn,options:[e,t]}},WI=(e,t)=>{let n=AI(e);return{name:n.name,fn:n.fn,options:[e,t]}},GI=(e,t)=>{let n=MI(e);return{name:n.name,fn:n.fn,options:[e,t]}},KI=(e,t)=>{let n=VI(e);return{name:n.name,fn:n.fn,options:[e,t]}};function qI(e){let t=G.useRef(void 0),n=G.useCallback(t=>{let n=e.map(e=>{if(e!=null){if(typeof e==`function`){let n=e,r=n(t);return typeof r==`function`?r:()=>{n(null)}}return e.current=t,()=>{e.current=null}}});return()=>{n.forEach(e=>e?.())}},e);return G.useMemo(()=>e.every(e=>e==null)?null:e=>{t.current&&=(t.current(),void 0),e!=null&&(t.current=n(e))},e)}var JI=`data-floating-ui-focusable`,YI=`active`,XI=`selected`,ZI=`ArrowLeft`,QI=`ArrowRight`,$I=`ArrowUp`,eL=`ArrowDown`,tL=[ZI,QI],nL=[$I,eL];[...tL,...nL];var rL={...G},iL=!1,aL=0,oL=()=>`floating-ui-`+Math.random().toString(36).slice(2,6)+aL++;function sL(){let[e,t]=G.useState(()=>iL?oL():void 0);return FF(()=>{e??t(oL())},[]),G.useEffect(()=>{iL=!0},[]),e}var cL=rL.useId||sL;function lL(){let e=new Map;return{emit(t,n){var r;(r=e.get(t))==null||r.forEach(e=>e(n))},on(t,n){e.has(t)||e.set(t,new Set),e.get(t).add(n)},off(t,n){var r;(r=e.get(t))==null||r.delete(n)}}}var uL=G.createContext(null),dL=G.createContext(null),fL=()=>G.useContext(uL)?.id||null,pL=()=>G.useContext(dL);function mL(e){return`data-floating-ui-`+e}function hL(e){e.current!==-1&&(clearTimeout(e.current),e.current=-1)}var gL=mL(`safe-polygon`);function _L(e,t,n){if(n&&!PF(n))return 0;if(typeof e==`number`)return e;if(typeof e==`function`){let n=e();return typeof n==`number`?n:n?.[t]}return e?.[t]}function vL(e){return typeof e==`function`?e():e}function yL(e,t){t===void 0&&(t={});let{open:n,onOpenChange:r,dataRef:i,events:a,elements:o}=e,{enabled:s=!0,delay:c=0,handleClose:l=null,mouseOnly:u=!1,restMs:d=0,move:f=!0}=t,p=pL(),m=fL(),h=LF(l),g=LF(c),_=LF(n),v=LF(d),y=G.useRef(),b=G.useRef(-1),x=G.useRef(),S=G.useRef(-1),C=G.useRef(!0),w=G.useRef(!1),T=G.useRef(()=>{}),E=G.useRef(!1),D=zF(()=>{let e=i.current.openEvent?.type;return e?.includes(`mouse`)&&e!==`mousedown`});G.useEffect(()=>{if(!s)return;function e(e){let{open:t}=e;t||(hL(b),hL(S),C.current=!0,E.current=!1)}return a.on(`openchange`,e),()=>{a.off(`openchange`,e)}},[s,a]),G.useEffect(()=>{if(!s||!h.current||!n)return;function e(e){D()&&r(!1,e,`hover`)}let t=OF(o.floating).documentElement;return t.addEventListener(`mouseleave`,e),()=>{t.removeEventListener(`mouseleave`,e)}},[o.floating,n,r,s,h,D]);let O=G.useCallback(function(e,t,n){t===void 0&&(t=!0),n===void 0&&(n=`hover`);let i=_L(g.current,`close`,y.current);i&&!x.current?(hL(b),b.current=window.setTimeout(()=>r(!1,e,n),i)):t&&(hL(b),r(!1,e,n))},[g,r]),k=zF(()=>{T.current(),x.current=void 0}),A=zF(()=>{if(w.current){let e=OF(o.floating).body;e.style.pointerEvents=``,e.removeAttribute(gL),w.current=!1}}),j=zF(()=>i.current.openEvent?[`click`,`mousedown`].includes(i.current.openEvent.type):!1);G.useEffect(()=>{if(!s)return;function e(e){if(hL(b),C.current=!1,u&&!PF(y.current)||vL(v.current)>0&&!_L(g.current,`open`))return;let t=_L(g.current,`open`,y.current);t?b.current=window.setTimeout(()=>{_.current||r(!0,e,`hover`)},t):n||r(!0,e,`hover`)}function t(e){if(j()){A();return}T.current();let t=OF(o.floating);if(hL(S),E.current=!1,h.current&&i.current.floatingContext){n||hL(b),x.current=h.current({...i.current.floatingContext,tree:p,x:e.clientX,y:e.clientY,onClose(){A(),k(),j()||O(e,!0,`safe-polygon`)}});let r=x.current;t.addEventListener(`mousemove`,r),T.current=()=>{t.removeEventListener(`mousemove`,r)};return}(y.current!==`touch`||!wF(o.floating,e.relatedTarget))&&O(e)}function a(e){j()||i.current.floatingContext&&(h.current==null||h.current({...i.current.floatingContext,tree:p,x:e.clientX,y:e.clientY,onClose(){A(),k(),j()||O(e)}})(e))}function c(){hL(b)}function l(e){j()||O(e,!1)}if(CP(o.domReference)){let r=o.domReference,i=o.floating;return n&&r.addEventListener(`mouseleave`,a),f&&r.addEventListener(`mousemove`,e,{once:!0}),r.addEventListener(`mouseenter`,e),r.addEventListener(`mouseleave`,t),i&&(i.addEventListener(`mouseleave`,a),i.addEventListener(`mouseenter`,c),i.addEventListener(`mouseleave`,l)),()=>{n&&r.removeEventListener(`mouseleave`,a),f&&r.removeEventListener(`mousemove`,e),r.removeEventListener(`mouseenter`,e),r.removeEventListener(`mouseleave`,t),i&&(i.removeEventListener(`mouseleave`,a),i.removeEventListener(`mouseenter`,c),i.removeEventListener(`mouseleave`,l))}}},[o,s,e,u,f,O,k,A,r,n,_,p,g,h,i,j,v]),FF(()=>{var e;if(s&&n&&(e=h.current)!=null&&(e=e.__options)!=null&&e.blockPointerEvents&&D()){w.current=!0;let e=o.floating;if(CP(o.domReference)&&e){var t;let n=OF(o.floating).body;n.setAttribute(gL,``);let r=o.domReference,i=p==null||(t=p.nodesRef.current.find(e=>e.id===m))==null||(t=t.context)==null?void 0:t.elements.floating;return i&&(i.style.pointerEvents=``),n.style.pointerEvents=`none`,r.style.pointerEvents=`auto`,e.style.pointerEvents=`auto`,()=>{n.style.pointerEvents=``,r.style.pointerEvents=``,e.style.pointerEvents=``}}}},[s,n,m,o,p,h,D]),FF(()=>{n||(y.current=void 0,E.current=!1,k(),A())},[n,k,A]),G.useEffect(()=>()=>{k(),hL(b),hL(S),A()},[s,o.domReference,k,A]);let ee=G.useMemo(()=>{function e(e){y.current=e.pointerType}return{onPointerDown:e,onPointerEnter:e,onMouseMove(e){let{nativeEvent:t}=e;function i(){!C.current&&!_.current&&r(!0,t,`hover`)}u&&!PF(y.current)||n||vL(v.current)===0||E.current&&e.movementX**2+e.movementY**2<2||(hL(S),y.current===`touch`?i():(E.current=!0,S.current=window.setTimeout(i,vL(v.current))))}}},[u,r,n,_,v]);return G.useMemo(()=>s?{reference:ee}:{},[s,ee])}var bL=()=>{},xL=G.createContext({delay:0,initialDelay:0,timeoutMs:0,currentId:null,setCurrentId:bL,setState:bL,isInstantPhase:!1}),SL=()=>G.useContext(xL);function CL(e){let{children:t,delay:n,timeoutMs:r=0}=e,[i,a]=G.useReducer((e,t)=>({...e,...t}),{delay:n,timeoutMs:r,initialDelay:n,currentId:null,isInstantPhase:!1}),o=G.useRef(null),s=G.useCallback(e=>{a({currentId:e})},[]);return FF(()=>{i.currentId?o.current===null?o.current=i.currentId:i.isInstantPhase||a({isInstantPhase:!0}):(i.isInstantPhase&&a({isInstantPhase:!1}),o.current=null)},[i.currentId,i.isInstantPhase]),(0,K.jsx)(xL.Provider,{value:G.useMemo(()=>({...i,setState:a,setCurrentId:s}),[i,s]),children:t})}function wL(e,t){t===void 0&&(t={});let{open:n,onOpenChange:r,floatingId:i}=e,{id:a,enabled:o=!0}=t,s=a??i,c=SL(),{currentId:l,setCurrentId:u,initialDelay:d,setState:f,timeoutMs:p}=c;return FF(()=>{o&&l&&(f({delay:{open:1,close:_L(d,`close`)}}),l!==s&&r(!1))},[o,s,r,f,l,d]),FF(()=>{function e(){r(!1),f({delay:d,currentId:null})}if(o&&l&&!n&&l===s){if(p){let t=window.setTimeout(e,p);return()=>{clearTimeout(t)}}e()}},[o,n,f,l,s,r,d,p]),FF(()=>{o&&(u===bL||!n||u(s))},[o,n,u,s]),c}function TL(e,t){if(!e||!t)return!1;let n=t.getRootNode==null?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&TP(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function EL(e){return`composedPath`in e?e.composedPath()[0]:e.target}var DL={pointerdown:`onPointerDown`,mousedown:`onMouseDown`,click:`onClick`},OL={pointerdown:`onPointerDownCapture`,mousedown:`onMouseDownCapture`,click:`onClickCapture`},kL=e=>({escapeKey:typeof e==`boolean`?e:e?.escapeKey??!1,outsidePress:typeof e==`boolean`?e:e?.outsidePress??!0});function AL(e,t){t===void 0&&(t={});let{open:n,onOpenChange:r,elements:i,dataRef:a}=e,{enabled:o=!0,escapeKey:s=!0,outsidePress:c=!0,outsidePressEvent:l=`pointerdown`,referencePress:u=!1,referencePressEvent:d=`pointerdown`,ancestorScroll:f=!1,bubbles:p,capture:m}=t,h=pL(),g=zF(typeof c==`function`?c:()=>!1),_=typeof c==`function`?g:c,v=G.useRef(!1),{escapeKey:y,outsidePress:b}=kL(p),{escapeKey:x,outsidePress:S}=kL(m),C=G.useRef(!1),w=zF(e=>{if(!n||!o||!s||e.key!==`Escape`||C.current)return;let t=a.current.floatingContext?.nodeId,i=h?MF(h.nodesRef.current,t):[];if(!y&&(e.stopPropagation(),i.length>0)){let e=!0;if(i.forEach(t=>{var n;if((n=t.context)!=null&&n.open&&!t.context.dataRef.current.__escapeKeyBubbles){e=!1;return}}),!e)return}r(!1,NF(e)?e.nativeEvent:e,`escape-key`)}),T=zF(e=>{var t;let n=()=>{var t;w(e),(t=TF(e))==null||t.removeEventListener(`keydown`,n)};(t=TF(e))==null||t.addEventListener(`keydown`,n)}),E=zF(e=>{let t=a.current.insideReactTree;a.current.insideReactTree=!1;let n=v.current;if(v.current=!1,l===`click`&&n||t||typeof _==`function`&&!_(e))return;let o=TF(e),s=`[`+mL(`inert`)+`]`,c=OF(i.floating).querySelectorAll(s),u=CP(o)?o:null;for(;u&&!IP(u);){let e=zP(u);if(IP(e)||!CP(e))break;u=e}if(c.length&&CP(o)&&!DF(o)&&!wF(o,i.floating)&&Array.from(c).every(e=>!wF(u,e)))return;if(wP(o)&&k){let t=IP(o),n=LP(o),r=/auto|scroll/,i=t||r.test(n.overflowX),a=t||r.test(n.overflowY),s=i&&o.clientWidth>0&&o.scrollWidth>o.clientWidth,c=a&&o.clientHeight>0&&o.scrollHeight>o.clientHeight,l=n.direction===`rtl`,u=c&&(l?e.offsetX<=o.offsetWidth-o.clientWidth:e.offsetX>o.clientWidth),d=s&&e.offsetY>o.clientHeight;if(u||d)return}let d=a.current.floatingContext?.nodeId,f=h&&MF(h.nodesRef.current,d).some(t=>EF(e,t.context?.elements.floating));if(EF(e,i.floating)||EF(e,i.domReference)||f)return;let p=h?MF(h.nodesRef.current,d):[];if(p.length>0){let e=!0;if(p.forEach(t=>{var n;if((n=t.context)!=null&&n.open&&!t.context.dataRef.current.__outsidePressBubbles){e=!1;return}}),!e)return}r(!1,e,`outside-press`)}),D=zF(e=>{var t;let n=()=>{var t;E(e),(t=TF(e))==null||t.removeEventListener(l,n)};(t=TF(e))==null||t.addEventListener(l,n)});G.useEffect(()=>{if(!n||!o)return;a.current.__escapeKeyBubbles=y,a.current.__outsidePressBubbles=b;let e=-1;function t(e){r(!1,e,`ancestor-scroll`)}function c(){window.clearTimeout(e),C.current=!0}function u(){e=window.setTimeout(()=>{C.current=!1},FP()?5:0)}let d=OF(i.floating);s&&(d.addEventListener(`keydown`,x?T:w,x),d.addEventListener(`compositionstart`,c),d.addEventListener(`compositionend`,u)),_&&d.addEventListener(l,S?D:E,S);let p=[];return f&&(CP(i.domReference)&&(p=VP(i.domReference)),CP(i.floating)&&(p=p.concat(VP(i.floating))),!CP(i.reference)&&i.reference&&i.reference.contextElement&&(p=p.concat(VP(i.reference.contextElement)))),p=p.filter(e=>e!==d.defaultView?.visualViewport),p.forEach(e=>{e.addEventListener(`scroll`,t)}),()=>{s&&(d.removeEventListener(`keydown`,x?T:w,x),d.removeEventListener(`compositionstart`,c),d.removeEventListener(`compositionend`,u)),_&&d.removeEventListener(l,S?D:E,S),p.forEach(e=>{e.removeEventListener(`scroll`,t)}),window.clearTimeout(e)}},[a,i,s,_,l,n,r,f,o,y,b,w,x,T,E,S,D]),G.useEffect(()=>{a.current.insideReactTree=!1},[a,_,l]);let O=G.useMemo(()=>({onKeyDown:w,...u&&{[DL[d]]:e=>{r(!1,e.nativeEvent,`reference-press`)},...d!==`click`&&{onClick(e){r(!1,e.nativeEvent,`reference-press`)}}}}),[w,r,u,d]),k=G.useMemo(()=>{function e(e){e.button===0&&(v.current=!0)}return{onKeyDown:w,onMouseDown:e,onMouseUp:e,[OL[l]]:()=>{a.current.insideReactTree=!0}}},[w,l,a]);return G.useMemo(()=>o?{reference:O,floating:k}:{},[o,O,k])}function jL(e){let{open:t=!1,onOpenChange:n,elements:r}=e,i=cL(),a=G.useRef({}),[o]=G.useState(()=>lL()),s=fL()!=null,[c,l]=G.useState(r.reference),u=zF((e,t,r)=>{a.current.openEvent=e?t:void 0,o.emit(`openchange`,{open:e,event:t,reason:r,nested:s}),n?.(e,t,r)}),d=G.useMemo(()=>({setPositionReference:l}),[]),f=G.useMemo(()=>({reference:c||r.reference||null,floating:r.floating||null,domReference:r.reference}),[c,r.reference,r.floating]);return G.useMemo(()=>({dataRef:a,open:t,onOpenChange:u,elements:f,events:o,floatingId:i,refs:d}),[t,u,f,o,i,d])}function ML(e){let{elements:t,...n}=e===void 0?{}:e,{nodeId:r}=n,i=jL({...n,elements:{reference:t?.reference??null,floating:t?.floating??null}}),a=n.rootContext||i,o=a.elements,[s,c]=G.useState(null),[l,u]=G.useState(null),d=o?.domReference||s,f=G.useRef(null),p=pL();FF(()=>{d&&(f.current=d)},[d]);let m=BI({...n,elements:{...o,...l&&{reference:l}}}),h=G.useCallback(e=>{let t=CP(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),getClientRects:()=>e.getClientRects(),contextElement:e}:e;u(t),m.refs.setReference(t)},[m.refs]),g=G.useCallback(e=>{(CP(e)||e===null)&&(f.current=e,c(e)),(CP(m.refs.reference.current)||m.refs.reference.current===null||e!==null&&!CP(e))&&m.refs.setReference(e)},[m.refs]),_=G.useMemo(()=>({...m.refs,setReference:g,setPositionReference:h,domReference:f}),[m.refs,g,h]),v=G.useMemo(()=>({...m.elements,domReference:d}),[m.elements,d]),y=G.useMemo(()=>({...m,...a,refs:_,elements:v,nodeId:r}),[m,_,v,r,a]);return FF(()=>{a.dataRef.current.floatingContext=y;let e=p?.nodesRef.current.find(e=>e.id===r);e&&(e.context=y)}),G.useMemo(()=>({...m,context:y,refs:_,elements:v}),[m,_,v,y])}function NL(){return yF()&&vF()}function PL(e,t){t===void 0&&(t={});let{open:n,onOpenChange:r,events:i,dataRef:a,elements:o}=e,{enabled:s=!0,visibleOnly:c=!0}=t,l=G.useRef(!1),u=G.useRef(-1),d=G.useRef(!0);G.useEffect(()=>{if(!s)return;let e=bP(o.domReference);function t(){!n&&wP(o.domReference)&&o.domReference===CF(OF(o.domReference))&&(l.current=!0)}function r(){d.current=!0}function i(){d.current=!1}return e.addEventListener(`blur`,t),NL()&&(e.addEventListener(`keydown`,r,!0),e.addEventListener(`pointerdown`,i,!0)),()=>{e.removeEventListener(`blur`,t),NL()&&(e.removeEventListener(`keydown`,r,!0),e.removeEventListener(`pointerdown`,i,!0))}},[o.domReference,n,s]),G.useEffect(()=>{if(!s)return;function e(e){let{reason:t}=e;(t===`reference-press`||t===`escape-key`)&&(l.current=!0)}return i.on(`openchange`,e),()=>{i.off(`openchange`,e)}},[i,s]),G.useEffect(()=>()=>{hL(u)},[]);let f=G.useMemo(()=>({onMouseLeave(){l.current=!1},onFocus(e){if(l.current)return;let t=TF(e.nativeEvent);if(c&&CP(t)){if(NL()&&!e.relatedTarget){if(!d.current&&!kF(t))return}else if(!AF(t))return}r(!0,e.nativeEvent,`focus`)},onBlur(e){l.current=!1;let t=e.relatedTarget,n=e.nativeEvent,i=CP(t)&&t.hasAttribute(mL(`focus-guard`))&&t.getAttribute(`data-type`)===`outside`;u.current=window.setTimeout(()=>{let e=CF(o.domReference?o.domReference.ownerDocument:document);!t&&e===o.domReference||wF(a.current.floatingContext?.refs.floating.current,e)||wF(o.domReference,e)||i||r(!1,n,`focus`)})}}),[a,o.domReference,r,c]);return G.useMemo(()=>s?{reference:f}:{},[s,f])}function FL(e,t,n){let r=new Map,i=n===`item`,a=e;if(i&&e){let{[YI]:t,[XI]:n,...r}=e;a=r}return{...n===`floating`&&{tabIndex:-1,[JI]:``},...a,...t.map(t=>{let r=t?t[n]:null;return typeof r==`function`?e?r(e):null:r}).concat(e).reduce((e,t)=>(t&&Object.entries(t).forEach(t=>{let[n,a]=t;if(!(i&&[YI,XI].includes(n)))if(n.indexOf(`on`)===0){if(r.has(n)||r.set(n,[]),typeof a==`function`){var o;(o=r.get(n))==null||o.push(a),e[n]=function(){var e=[...arguments];return r.get(n)?.map(t=>t(...e)).find(e=>e!==void 0)}}}else e[n]=a}),e),{})}}function IL(e){e===void 0&&(e=[]);let t=e.map(e=>e?.reference),n=e.map(e=>e?.floating),r=e.map(e=>e?.item),i=G.useCallback(t=>FL(t,e,`reference`),t),a=G.useCallback(t=>FL(t,e,`floating`),n),o=G.useCallback(t=>FL(t,e,`item`),r);return G.useMemo(()=>({getReferenceProps:i,getFloatingProps:a,getItemProps:o}),[i,a,o])}var LL=new Map([[`select`,`listbox`],[`combobox`,`listbox`],[`label`,!1]]);function RL(e,t){t===void 0&&(t={});let{open:n,elements:r,floatingId:i}=e,{enabled:a=!0,role:o=`dialog`}=t,s=cL(),c=r.domReference?.id||s,l=G.useMemo(()=>jF(r.floating)?.id||i,[r.floating,i]),u=LL.get(o)??o,d=fL()!=null,f=G.useMemo(()=>u===`tooltip`||o===`label`?{[`aria-`+(o===`label`?`labelledby`:`describedby`)]:n?l:void 0}:{"aria-expanded":n?`true`:`false`,"aria-haspopup":u===`alertdialog`?`dialog`:u,"aria-controls":n?l:void 0,...u===`listbox`&&{role:`combobox`},...u===`menu`&&{id:c},...u===`menu`&&d&&{role:`menuitem`},...o===`select`&&{"aria-autocomplete":`none`},...o===`combobox`&&{"aria-autocomplete":`list`}},[u,l,d,n,c,o]),p=G.useMemo(()=>{let e={id:l,...u&&{role:u}};return u===`tooltip`||o===`label`?e:{...e,...u===`menu`&&{"aria-labelledby":c}}},[u,l,c,o]),m=G.useCallback(e=>{let{active:t,selected:n}=e,r={role:`option`,...t&&{id:l+`-fui-option`}};switch(o){case`select`:case`combobox`:return{...r,"aria-selected":n}}return{}},[l,o]);return G.useMemo(()=>a?{reference:f,floating:p,item:m}:{},[a,f,p,m])}function zL(e,t,n){return n===void 0&&(n=!0),e.filter(e=>e.parentId===t&&(!n||e.context?.open)).flatMap(t=>[t,...zL(e,t.id,n)])}function BL(e,t){let[n,r]=e,i=!1,a=t.length;for(let e=0,o=a-1;e=r!=l>=r&&n<=(c-a)*(r-s)/(l-s)+a&&(i=!i)}return i}function zee(e,t){return e[0]>=t.x&&e[0]<=t.x+t.width&&e[1]>=t.y&&e[1]<=t.y+t.height}function Bee(e){e===void 0&&(e={});let{buffer:t=.5,blockPointerEvents:n=!1,requireIntent:r=!0}=e,i={current:-1},a=!1,o=null,s=null,c=typeof performance<`u`?performance.now():0;function l(e,t){let n=performance.now(),r=n-c;if(o===null||s===null||r===0)return o=e,s=t,c=n,null;let i=e-o,a=t-s,l=Math.sqrt(i*i+a*a)/r;return o=e,s=t,c=n,l}let u=e=>{let{x:n,y:o,placement:s,elements:c,onClose:u,nodeId:d,tree:f}=e;return function(e){function p(){hL(i),u()}if(hL(i),!c.domReference||!c.floating||s==null||n==null||o==null)return;let{clientX:m,clientY:h}=e,g=[m,h],_=EL(e),v=e.type===`mouseleave`,y=TL(c.floating,_),b=TL(c.domReference,_),x=c.domReference.getBoundingClientRect(),S=c.floating.getBoundingClientRect(),C=s.split(`-`)[0],w=n>S.right-S.width/2,T=o>S.bottom-S.height/2,E=zee(g,x),D=S.width>x.width,O=S.height>x.height,k=(D?x:S).left,A=(D?x:S).right,j=(O?x:S).top,ee=(O?x:S).bottom;if(y&&(a=!0,!v))return;if(b&&(a=!1),b&&!v){a=!0;return}if(v&&CP(e.relatedTarget)&&TL(c.floating,e.relatedTarget)||f&&zL(f.nodesRef.current,d).length)return;if(C===`top`&&o>=x.bottom-1||C===`bottom`&&o<=x.top+1||C===`left`&&n>=x.right-1||C===`right`&&n<=x.left+1)return p();let M=[];switch(C){case`top`:M=[[k,x.top+1],[k,S.bottom-1],[A,S.bottom-1],[A,x.top+1]];break;case`bottom`:M=[[k,S.top+1],[k,x.bottom-1],[A,x.bottom-1],[A,S.top+1]];break;case`left`:M=[[S.right-1,ee],[S.right-1,j],[x.left+1,j],[x.left+1,ee]];break;case`right`:M=[[x.right-1,ee],[x.right-1,j],[S.left+1,j],[S.left+1,ee]]}function N(e){let[n,r]=e;switch(C){case`top`:return[[D?n+t/2:w?n+t*4:n-t*4,r+t+1],[D?n-t/2:w?n+t*4:n-t*4,r+t+1],[S.left,w||D?S.bottom-t:S.top],[S.right,w?D?S.bottom-t:S.top:S.bottom-t]];case`bottom`:return[[D?n+t/2:w?n+t*4:n-t*4,r-t],[D?n-t/2:w?n+t*4:n-t*4,r-t],[S.left,w||D?S.top+t:S.bottom],[S.right,w?D?S.top+t:S.bottom:S.top+t]];case`left`:{let e=[n+t+1,O?r+t/2:T?r+t*4:r-t*4],i=[n+t+1,O?r-t/2:T?r+t*4:r-t*4];return[[T||O?S.right-t:S.left,S.top],[T?O?S.right-t:S.left:S.right-t,S.bottom],e,i]}case`right`:return[[n-t,O?r+t/2:T?r+t*4:r-t*4],[n-t,O?r-t/2:T?r+t*4:r-t*4],[T||O?S.left+t:S.right,S.top],[T?O?S.left+t:S.right:S.left+t,S.bottom]]}}if(!BL([m,h],M)){if(a&&!E)return p();if(!v&&r){let t=l(e.clientX,e.clientY);if(t!==null&&t<.1)return p()}BL([m,h],N([n,o]))?!a&&r&&(i.current=window.setTimeout(p,40)):p()}}};return u.__options={blockPointerEvents:n},u}var VL={scrollHideDelay:1e3,type:`hover`,scrollbars:`xy`},HL=wj((e,{scrollbarSize:t,overscrollBehavior:n,scrollbars:r})=>{let i=n;return n&&r&&(r===`x`?i=`${n} auto`:r===`y`&&(i=`auto ${n}`)),{root:{"--scrollarea-scrollbar-size":W(t),"--scrollarea-over-scroll-behavior":i}}}),UL=AN(e=>{let t=FM(`ScrollArea`,VL,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,scrollbarSize:s,vars:c,type:l,scrollHideDelay:u,viewportProps:d,viewportRef:f,onScrollPositionChange:p,children:m,offsetScrollbars:h,scrollbars:g,onBottomReached:_,onTopReached:v,onLeftReached:y,onRightReached:b,overscrollBehavior:x,startScrollPosition:S,verticalScrollbarPosition:C,attributes:w,...T}=t,[E,D]=(0,G.useState)(!1),[O,k]=(0,G.useState)(!1),[A,j]=(0,G.useState)(!1),ee=(0,G.useRef)(!0),M=(0,G.useRef)(!1),N=(0,G.useRef)(!0),te=(0,G.useRef)(!1),P=ZM({name:`ScrollArea`,props:t,classes:_P,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:w,vars:c,varsResolver:HL}),F=(0,G.useRef)(null),[I,ne]=(0,G.useState)(null),L=qI([f,F,(0,G.useCallback)(e=>{ne(t=>t===e?t:e)},[])]);return WN(h===`present`?I:null,()=>{let e=F.current;e&&(k(e.scrollHeight>e.clientHeight),j(e.scrollWidth>e.clientWidth))}),tj(()=>{S&&F.current&&F.current.scrollTo({left:S.x??0,top:S.y??0})},[]),(0,K.jsxs)(JN,{getStyles:P,type:l===`never`?`always`:l,scrollHideDelay:u,scrollbars:g,...P(`root`),...T,children:[(0,K.jsx)(gP,{...d,...P(`viewport`,{style:d?.style}),ref:L,"data-offset-scrollbars":h===!0?`xy`:h||void 0,"data-scrollbars":g||void 0,"data-vertical-scrollbar-position":C||void 0,"data-horizontal-hidden":h===`present`&&!A?`true`:void 0,"data-vertical-hidden":h===`present`&&!O?`true`:void 0,onScroll:e=>{d?.onScroll?.(e),p?.({x:e.currentTarget.scrollLeft,y:e.currentTarget.scrollTop});let{scrollTop:t,scrollHeight:n,clientHeight:r,scrollLeft:i,scrollWidth:a,clientWidth:o}=e.currentTarget,s=t-(n-r)>=-.8,c=t===0;s&&!M.current&&_?.(),c&&!ee.current&&v?.(),M.current=s,ee.current=c;let l=i-(a-o)>=-.8,u=i===0;l&&!te.current&&b?.(),u&&!N.current&&y?.(),te.current=l,N.current=u},children:m}),(g===`xy`||g===`x`)&&(0,K.jsx)(pP,{...P(`scrollbar`),orientation:`horizontal`,"data-vertical-scrollbar-position":C||void 0,"data-hidden":l===`never`||h===`present`&&!A||void 0,forceMount:!0,onMouseEnter:()=>D(!0),onMouseLeave:()=>D(!1),children:(0,K.jsx)(hP,{...P(`thumb`)})}),(g===`xy`||g===`y`)&&(0,K.jsx)(pP,{...P(`scrollbar`),orientation:`vertical`,"data-vertical-scrollbar-position":C||void 0,"data-hidden":l===`never`||h===`present`&&!O||void 0,forceMount:!0,onMouseEnter:()=>D(!0),onMouseLeave:()=>D(!1),children:(0,K.jsx)(hP,{...P(`thumb`)})}),(0,K.jsx)(KN,{...P(`corner`),"data-vertical-scrollbar-position":C||void 0,"data-hovered":E||void 0,"data-hidden":l===`never`||void 0})]})});UL.displayName=`@mantine/core/ScrollArea`;var WL=AN(e=>{let{children:t,classNames:n,styles:r,scrollbarSize:i,scrollHideDelay:a,type:o,dir:s,offsetScrollbars:c,overscrollBehavior:l,viewportRef:u,onScrollPositionChange:d,unstyled:f,variant:p,viewportProps:m,scrollbars:h,style:g,vars:_,onBottomReached:v,onTopReached:y,startScrollPosition:b,verticalScrollbarPosition:x,onOverflowChange:S,...C}=FM(`ScrollAreaAutosize`,VL,e),w=(0,G.useRef)(null),[T,E]=(0,G.useState)(null),D=qI([u,w,(0,G.useCallback)(e=>{E(t=>t===e?t:e)},[])]),O=(0,G.useRef)(!1),k=(0,G.useRef)(!1),A=(0,G.useEffectEvent)(()=>{let e=w.current;if(!e||!S)return;let t=e.scrollHeight>e.clientHeight;t!==O.current&&(k.current?S(t):(k.current=!0,t&&S(!0)),O.current=t)});return WN(S?T:null,A),(0,K.jsx)(zN,{...C,variant:p,style:[{display:`flex`,overflow:`hidden`},g],children:(0,K.jsx)(zN,{style:{display:`flex`,flexDirection:`column`,flex:1,overflow:`hidden`,...h===`y`&&{minWidth:0},...h===`x`&&{minHeight:0},...h===`xy`&&{minWidth:0,minHeight:0},...h===!1&&{minWidth:0,minHeight:0}},children:(0,K.jsx)(UL,{classNames:n,styles:r,scrollHideDelay:a,scrollbarSize:i,type:o,dir:s,offsetScrollbars:c,overscrollBehavior:l,viewportRef:D,onScrollPositionChange:d,unstyled:f,variant:p,viewportProps:m,vars:_,scrollbars:h,onBottomReached:v,onTopReached:y,startScrollPosition:b,verticalScrollbarPosition:x,"data-autosize":`true`,children:t})})})});UL.classes=_P,UL.varsResolver=HL,WL.displayName=`@mantine/core/ScrollAreaAutosize`,WL.classes=_P,UL.Autosize=WL;var GL={root:`m_87cf2631`},Vee={__staticSelector:`UnstyledButton`},KL=MN(e=>{let t=FM(`UnstyledButton`,Vee,e),{className:n,component:r=`button`,__staticSelector:i,unstyled:a,classNames:o,styles:s,style:c,attributes:l,...u}=t;return(0,K.jsx)(zN,{...ZM({name:i,props:t,classes:GL,className:n,style:c,classNames:o,styles:s,unstyled:a,attributes:l})(`root`,{focusable:!0}),component:r,type:r===`button`?`button`:void 0,...u})});KL.classes=GL,KL.displayName=`@mantine/core/UnstyledButton`;var qL={root:`m_1b7284a3`},JL=wj((e,{radius:t,shadow:n})=>({root:{"--paper-radius":t===void 0?void 0:WA(t),"--paper-shadow":qA(n)}})),YL=MN(e=>{let t=FM(`Paper`,null,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,withBorder:s,vars:c,radius:l,shadow:u,variant:d,mod:f,attributes:p,...m}=t,h=ZM({name:`Paper`,props:t,classes:qL,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:p,vars:c,varsResolver:JL});return(0,K.jsx)(zN,{mod:[{"data-with-border":s},f],...h(`root`),variant:d,...m})});YL.classes=qL,YL.varsResolver=JL,YL.displayName=`@mantine/core/Paper`;function XL(e,t,n,r){return e===`center`||r===`center`?{top:t}:e===`end`?{bottom:n}:e===`start`?{top:n}:{}}function ZL(e,t,n,r,i){return e===`center`||r===`center`?{left:t}:e===`end`?{[i===`ltr`?`right`:`left`]:n}:e===`start`?{[i===`ltr`?`left`:`right`]:n}:{}}var QL={bottom:`borderTopLeftRadius`,left:`borderTopRightRadius`,right:`borderBottomLeftRadius`,top:`borderBottomRightRadius`};function $L({position:e,arrowSize:t,dir:n}){let[r,i]=e.split(`-`);if(!i)return;let a={width:t,height:t,position:`absolute`};if(r===`bottom`){let e=i===`start`,r=e?n===`ltr`?`left`:`right`:n===`ltr`?`right`:`left`;return{...a,top:-t,[r]:0,clipPath:e===(n===`rtl`)?`polygon(100% 0%, 0% 100%, 100% 100%)`:`polygon(0% 0%, 0% 100%, 100% 100%)`}}if(r===`top`){let e=i===`start`,r=e?n===`ltr`?`left`:`right`:n===`ltr`?`right`:`left`;return{...a,bottom:-t,[r]:0,clipPath:e===(n===`rtl`)?`polygon(0% 0%, 100% 0%, 100% 100%)`:`polygon(0% 0%, 100% 0%, 0% 100%)`}}if(r===`left`)return{...a,right:-t,[i===`start`?`top`:`bottom`]:0,clipPath:i===`start`?`polygon(0% 0%, 100% 0%, 0% 100%)`:`polygon(0% 0%, 0% 100%, 100% 100%)`};if(r===`right`)return{...a,left:-t,[i===`start`?`top`:`bottom`]:0,clipPath:i===`start`?`polygon(0% 0%, 100% 0%, 100% 100%)`:`polygon(100% 0%, 0% 100%, 100% 100%)`}}function eR({position:e,arrowSize:t,arrowOffset:n,arrowRadius:r,arrowPosition:i,arrowX:a,arrowY:o,dir:s}){if(i===`merge`){let n=$L({position:e,arrowSize:t,dir:s});if(n)return n}let[c,l=`center`]=e.split(`-`),u={width:t,height:t,transform:`rotate(45deg)`,position:`absolute`,[QL[c]]:r},d=-t/2;return c===`left`?{...u,...XL(l,o,n,i),right:d,borderLeftColor:`transparent`,borderBottomColor:`transparent`,clipPath:`polygon(100% 0, 0 0, 100% 100%)`}:c===`right`?{...u,...XL(l,o,n,i),left:d,borderRightColor:`transparent`,borderTopColor:`transparent`,clipPath:`polygon(0 100%, 0 0, 100% 100%)`}:c===`top`?{...u,...ZL(l,a,n,i,s),bottom:d,borderTopColor:`transparent`,borderLeftColor:`transparent`,clipPath:`polygon(0 100%, 100% 100%, 100% 0)`}:c===`bottom`?{...u,...ZL(l,a,n,i,s),top:d,borderBottomColor:`transparent`,borderRightColor:`transparent`,clipPath:`polygon(0 100%, 0 0, 100% 0)`}:{}}function tR({position:e,dir:t}){let[n,r]=e.split(`-`);if(!r)return;let i=r===`start`&&t===`ltr`||r===`end`&&t===`rtl`;if(n===`bottom`)return i?{borderTopLeftRadius:0}:{borderTopRightRadius:0};if(n===`top`)return i?{borderBottomLeftRadius:0}:{borderBottomRightRadius:0};if(n===`left`)return r===`start`?{borderTopRightRadius:0}:{borderBottomRightRadius:0};if(n===`right`)return r===`start`?{borderTopLeftRadius:0}:{borderBottomLeftRadius:0}}function nR({position:e,arrowSize:t,arrowOffset:n,arrowRadius:r,arrowPosition:i,visible:a,arrowX:o,arrowY:s,style:c,...l}){let{dir:u}=VN();return a?(0,K.jsx)(`div`,{role:`presentation`,...l,style:{...c,...eR({position:e,arrowSize:t,arrowOffset:n,arrowRadius:r,arrowPosition:i,dir:u,arrowX:o,arrowY:s})}}):null}nR.displayName=`@mantine/core/FloatingArrow`;function rR(e,t){if(e===`rtl`&&(t.includes(`right`)||t.includes(`left`))){let[e,n]=t.split(`-`),r=e===`right`?`left`:`right`;return n===void 0?r:`${r}-${n}`}return t}function iR(e){let t=document.createElement(`div`);return t.setAttribute(`data-portal`,`true`),typeof e.className==`string`&&t.classList.add(...e.className.split(` `).filter(Boolean)),typeof e.style==`object`&&Object.assign(t.style,e.style),typeof e.id==`string`&&t.setAttribute(`id`,e.id),t}function aR({target:e,reuseTargetNode:t,...n}){if(e)return typeof e==`string`?document.querySelector(e)||iR(n):e;if(t){let e=document.querySelector(`[data-mantine-shared-portal-node]`);if(e)return e;let t=iR(n);return t.setAttribute(`data-mantine-shared-portal-node`,`true`),document.body.appendChild(t),t}return iR(n)}var oR={reuseTargetNode:!0},sR=AN(e=>{let{children:t,target:n,reuseTargetNode:r,ref:i,...a}=FM(`Portal`,oR,e),[o,s]=(0,G.useState)(!1),c=(0,G.useRef)(null);return tj(()=>(s(!0),c.current=aR({target:n,reuseTargetNode:r,...a}),ij(i,c.current),!n&&!r&&c.current&&document.body.appendChild(c.current),()=>{!n&&!r&&c.current&&document.body.removeChild(c.current)}),[n]),!o||!c.current?null:(0,PI.createPortal)((0,K.jsx)(K.Fragment,{children:t}),c.current)});sR.displayName=`@mantine/core/Portal`;var cR=AN(({withinPortal:e=!0,children:t,...n})=>uM()===`test`||!e?(0,K.jsx)(K.Fragment,{children:t}):(0,K.jsx)(sR,{...n,children:t}));cR.displayName=`@mantine/core/OptionalPortal`;var lR=e=>({in:{opacity:1,transform:`scale(1)`},out:{opacity:0,transform:`scale(.9) translateY(${e===`bottom`?10:-10}px)`},transitionProperty:`transform, opacity`}),uR={fade:{in:{opacity:1},out:{opacity:0},transitionProperty:`opacity`},"fade-up":{in:{opacity:1,transform:`translateY(0)`},out:{opacity:0,transform:`translateY(30px)`},transitionProperty:`opacity, transform`},"fade-down":{in:{opacity:1,transform:`translateY(0)`},out:{opacity:0,transform:`translateY(-30px)`},transitionProperty:`opacity, transform`},"fade-left":{in:{opacity:1,transform:`translateX(0)`},out:{opacity:0,transform:`translateX(30px)`},transitionProperty:`opacity, transform`},"fade-right":{in:{opacity:1,transform:`translateX(0)`},out:{opacity:0,transform:`translateX(-30px)`},transitionProperty:`opacity, transform`},scale:{in:{opacity:1,transform:`scale(1)`},out:{opacity:0,transform:`scale(0)`},common:{transformOrigin:`top`},transitionProperty:`transform, opacity`},"scale-y":{in:{opacity:1,transform:`scaleY(1)`},out:{opacity:0,transform:`scaleY(0)`},common:{transformOrigin:`top`},transitionProperty:`transform, opacity`},"scale-x":{in:{opacity:1,transform:`scaleX(1)`},out:{opacity:0,transform:`scaleX(0)`},common:{transformOrigin:`left`},transitionProperty:`transform, opacity`},"skew-up":{in:{opacity:1,transform:`translateY(0) skew(0deg, 0deg)`},out:{opacity:0,transform:`translateY(-20px) skew(-10deg, -5deg)`},common:{transformOrigin:`top`},transitionProperty:`transform, opacity`},"skew-down":{in:{opacity:1,transform:`translateY(0) skew(0deg, 0deg)`},out:{opacity:0,transform:`translateY(20px) skew(-10deg, -5deg)`},common:{transformOrigin:`bottom`},transitionProperty:`transform, opacity`},"rotate-left":{in:{opacity:1,transform:`translateY(0) rotate(0deg)`},out:{opacity:0,transform:`translateY(20px) rotate(-5deg)`},common:{transformOrigin:`bottom`},transitionProperty:`transform, opacity`},"rotate-right":{in:{opacity:1,transform:`translateY(0) rotate(0deg)`},out:{opacity:0,transform:`translateY(20px) rotate(5deg)`},common:{transformOrigin:`top`},transitionProperty:`transform, opacity`},"slide-down":{in:{opacity:1,transform:`translateY(0)`},out:{opacity:0,transform:`translateY(-100%)`},common:{transformOrigin:`top`},transitionProperty:`transform, opacity`},"slide-up":{in:{opacity:1,transform:`translateY(0)`},out:{opacity:0,transform:`translateY(100%)`},common:{transformOrigin:`bottom`},transitionProperty:`transform, opacity`},"slide-left":{in:{opacity:1,transform:`translateX(0)`},out:{opacity:0,transform:`translateX(100%)`},common:{transformOrigin:`left`},transitionProperty:`transform, opacity`},"slide-right":{in:{opacity:1,transform:`translateX(0)`},out:{opacity:0,transform:`translateX(-100%)`},common:{transformOrigin:`right`},transitionProperty:`transform, opacity`},pop:{...lR(`bottom`),common:{transformOrigin:`center center`}},"pop-bottom-left":{...lR(`bottom`),common:{transformOrigin:`bottom left`}},"pop-bottom-right":{...lR(`bottom`),common:{transformOrigin:`bottom right`}},"pop-top-left":{...lR(`top`),common:{transformOrigin:`top left`}},"pop-top-right":{...lR(`top`),common:{transformOrigin:`top right`}}},dR={entering:`in`,entered:`in`,exiting:`out`,exited:`out`,"pre-exiting":`out`,"pre-entering":`out`};function fR({transition:e,state:t,duration:n,timingFunction:r}){let i={WebkitBackfaceVisibility:`hidden`,transitionDuration:`${n}ms`,transitionTimingFunction:r};return typeof e==`string`?e in uR?{transitionProperty:uR[e].transitionProperty,...i,...uR[e].common,...uR[e][dR[t]]}:{}:{transitionProperty:e.transitionProperty,...i,...e.common,...e[dR[t]]}}function pR({duration:e,exitDuration:t,timingFunction:n,mounted:r,onEnter:i,onExit:a,onEntered:o,onExited:s,enterDelay:c,exitDelay:l}){let u=TM(),d=dj(),f=u.respectReducedMotion?d:!1,[p,m]=(0,G.useState)(f?0:e),[h,g]=(0,G.useState)(r?`entered`:`exited`),_=(0,G.useRef)(-1),v=(0,G.useRef)(-1),y=(0,G.useRef)(-1);function b(){window.clearTimeout(_.current),window.clearTimeout(v.current),cancelAnimationFrame(y.current)}let x=n=>{b();let r=n?i:a,c=n?o:s,l=f?0:n?e:t;m(l),l===0?(typeof r==`function`&&r(),typeof c==`function`&&c(),g(n?`entered`:`exited`)):y.current=requestAnimationFrame(()=>{PI.flushSync(()=>{g(n?`pre-entering`:`pre-exiting`)}),y.current=requestAnimationFrame(()=>{typeof r==`function`&&r(),g(n?`entering`:`exiting`),_.current=window.setTimeout(()=>{typeof c==`function`&&c(),g(n?`entered`:`exited`)},l)})})},S=e=>{if(b(),typeof(e?c:l)!=`number`){x(e);return}v.current=window.setTimeout(()=>{x(e)},e?c:l)};return nj(()=>{S(r)},[r]),(0,G.useEffect)(()=>()=>{b()},[]),{transitionDuration:p,transitionStatus:h,transitionTimingFunction:n||`ease`}}function mR({keepMounted:e,keepMountedMode:t=`activity`,transition:n=`fade`,duration:r=250,exitDuration:i=r,mounted:a,children:o,timingFunction:s=`ease`,onExit:c,onEntered:l,onEnter:u,onExited:d,enterDelay:f,exitDelay:p}){let m=uM(),{transitionDuration:h,transitionStatus:g,transitionTimingFunction:_}=pR({mounted:a,exitDuration:i,duration:r,timingFunction:s,onExit:c,onEntered:l,onEnter:u,onExited:d,enterDelay:f,exitDelay:p});if(m===`test`)return a?(0,K.jsx)(K.Fragment,{children:o({})}):e?o({display:`none`}):null;if(h===0)return e?t===`display-none`?a?(0,K.jsx)(K.Fragment,{children:o({})}):o({display:`none`}):(0,K.jsx)(G.Activity,{mode:a?`visible`:`hidden`,children:o({})}):a?(0,K.jsx)(K.Fragment,{children:o({})}):null;let v=g===`exited`;if(e){let e=o(v?t===`display-none`?{display:`none`}:{}:fR({transition:n,duration:h,state:g,timingFunction:_}));return t===`display-none`?e:(0,K.jsx)(G.Activity,{mode:v?`hidden`:`visible`,children:e})}return v?null:(0,K.jsx)(K.Fragment,{children:o(fR({transition:n,duration:h,state:g,timingFunction:_}))})}mR.displayName=`@mantine/core/Transition`;var hR={duration:100,transition:`fade`};function gR(e,t){return{...hR,...t,...e}}var _R={root:`m_5ae2e3c`,barsLoader:`m_7a2bd4cd`,bar:`m_870bb79`,"bars-loader-animation":`m_5d2b3b9d`,dotsLoader:`m_4e3f22d7`,dot:`m_870c4af`,"loader-dots-animation":`m_aac34a1`,ovalLoader:`m_b34414df`,"oval-loader-animation":`m_f8e89c4b`},vR=({className:e,...t})=>(0,K.jsxs)(zN,{component:`span`,className:Ej(_R.barsLoader,e),...t,children:[(0,K.jsx)(`span`,{className:_R.bar}),(0,K.jsx)(`span`,{className:_R.bar}),(0,K.jsx)(`span`,{className:_R.bar})]});vR.displayName=`@mantine/core/Bars`;var yR=({className:e,...t})=>(0,K.jsxs)(zN,{component:`span`,className:Ej(_R.dotsLoader,e),...t,children:[(0,K.jsx)(`span`,{className:_R.dot}),(0,K.jsx)(`span`,{className:_R.dot}),(0,K.jsx)(`span`,{className:_R.dot})]});yR.displayName=`@mantine/core/Dots`;var bR=({className:e,...t})=>(0,K.jsx)(zN,{component:`span`,className:Ej(_R.ovalLoader,e),...t});bR.displayName=`@mantine/core/Oval`;var xR={bars:vR,oval:bR,dots:yR},SR={loaders:xR,type:`oval`},CR=wj((e,{size:t,color:n})=>({root:{"--loader-size":HA(t,`loader-size`),"--loader-color":n?Wj(n,e):void 0}})),wR=AN(e=>{let t=FM(`Loader`,SR,e),{size:n,color:r,type:i,vars:a,className:o,style:s,classNames:c,styles:l,unstyled:u,loaders:d,variant:f,children:p,attributes:m,...h}=t,g=ZM({name:`Loader`,props:t,classes:_R,className:o,style:s,classNames:c,styles:l,unstyled:u,attributes:m,vars:a,varsResolver:CR});return p?(0,K.jsx)(zN,{...g(`root`),...h,children:p}):(0,K.jsx)(zN,{...g(`root`),component:d[i],variant:f,size:n,...h})});wR.defaultLoaders=xR,wR.classes=_R,wR.varsResolver=CR,wR.displayName=`@mantine/core/Loader`;var TR={root:`m_8d3f4000`,icon:`m_8d3afb97`,loader:`m_302b9fb1`,group:`m_1a0f1b21`,groupSection:`m_437b6484`},ER={orientation:`horizontal`},DR=wj((e,{borderWidth:t})=>({group:{"--ai-border-width":W(t)}})),OR=AN(e=>{let t=FM(`ActionIconGroup`,ER,e),{className:n,style:r,classNames:i,styles:a,unstyled:o,orientation:s,vars:c,borderWidth:l,variant:u,mod:d,attributes:f,...p}=t;return(0,K.jsx)(zN,{...ZM({name:`ActionIconGroup`,props:t,classes:TR,className:n,style:r,classNames:i,styles:a,unstyled:o,attributes:f,vars:c,varsResolver:DR,rootSelector:`group`})(`group`),variant:u,mod:[{"data-orientation":s},d],role:`group`,...p})});OR.classes=TR,OR.varsResolver=DR,OR.displayName=`@mantine/core/ActionIconGroup`;var kR=wj((e,{radius:t,color:n,gradient:r,variant:i,autoContrast:a,size:o})=>{let s=e.variantColorResolver({color:n||e.primaryColor,theme:e,gradient:r,variant:i||`filled`,autoContrast:a});return{groupSection:{"--section-height":HA(o,`section-height`),"--section-padding-x":HA(o,`section-padding-x`),"--section-fz":GA(o),"--section-radius":t===void 0?void 0:WA(t),"--section-bg":n||i?s.background:void 0,"--section-color":s.color,"--section-bd":n||i?s.border:void 0}}}),AR=AN(e=>{let t=FM(`ActionIconGroupSection`,null,e),{className:n,style:r,classNames:i,styles:a,unstyled:o,vars:s,variant:c,gradient:l,radius:u,autoContrast:d,attributes:f,...p}=t;return(0,K.jsx)(zN,{...ZM({name:`ActionIconGroupSection`,props:t,classes:TR,className:n,style:r,classNames:i,styles:a,unstyled:o,attributes:f,vars:s,varsResolver:kR,rootSelector:`groupSection`})(`groupSection`),variant:c,...p})});AR.classes=TR,AR.varsResolver=kR,AR.displayName=`@mantine/core/ActionIconGroupSection`;var jR=wj((e,{size:t,radius:n,variant:r,gradient:i,color:a,autoContrast:o})=>{let s=e.variantColorResolver({color:a||e.primaryColor,theme:e,gradient:i,variant:r||`filled`,autoContrast:o});return{root:{"--ai-size":HA(t,`ai-size`),"--ai-radius":n===void 0?void 0:WA(n),"--ai-bg":a||r?s.background:void 0,"--ai-hover":a||r?s.hover:void 0,"--ai-hover-color":a||r?s.hoverColor:void 0,"--ai-color":s.color,"--ai-bd":a||r?s.border:void 0}}}),MR=MN(e=>{let t=FM(`ActionIcon`,null,e),{className:n,unstyled:r,variant:i,classNames:a,styles:o,style:s,loading:c,loaderProps:l,size:u,color:d,radius:f,__staticSelector:p,gradient:m,vars:h,children:g,disabled:_,"data-disabled":v,autoContrast:y,mod:b,attributes:x,...S}=t,C=ZM({name:[`ActionIcon`,p],props:t,className:n,style:s,classes:TR,classNames:a,styles:o,unstyled:r,attributes:x,vars:h,varsResolver:jR});return(0,K.jsxs)(KL,{...C(`root`,{active:!_&&!c&&!v}),"aria-busy":c||void 0,...S,unstyled:r,variant:i,size:u,disabled:_||c,mod:[{loading:c,disabled:_||v},b],children:[typeof c==`boolean`&&(0,K.jsx)(mR,{mounted:c,transition:`slide-down`,duration:150,children:e=>(0,K.jsx)(zN,{component:`span`,...C(`loader`,{style:e}),"aria-hidden":!0,children:(0,K.jsx)(wR,{color:`var(--ai-color)`,size:`calc(var(--ai-size) * 0.55)`,...l})})}),(0,K.jsx)(zN,{component:`span`,mod:{loading:c},...C(`icon`),children:g})]})});MR.classes=TR,MR.varsResolver=jR,MR.displayName=`@mantine/core/ActionIcon`,MR.Group=OR,MR.GroupSection=AR;function NR({size:e=`var(--cb-icon-size, 70%)`,style:t,...n}){return(0,K.jsx)(`svg`,{viewBox:`0 0 15 15`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,style:{...t,width:e,height:e},...n,children:(0,K.jsx)(`path`,{d:`M11.7816 4.03157C12.0062 3.80702 12.0062 3.44295 11.7816 3.2184C11.5571 2.99385 11.193 2.99385 10.9685 3.2184L7.50005 6.68682L4.03164 3.2184C3.80708 2.99385 3.44301 2.99385 3.21846 3.2184C2.99391 3.44295 2.99391 3.80702 3.21846 4.03157L6.68688 7.49999L3.21846 10.9684C2.99391 11.193 2.99391 11.557 3.21846 11.7816C3.44301 12.0061 3.80708 12.0061 4.03164 11.7816L7.50005 8.31316L10.9685 11.7816C11.193 12.0061 11.5571 12.0061 11.7816 11.7816C12.0062 11.557 12.0062 11.193 11.7816 10.9684L8.31322 7.49999L11.7816 4.03157Z`,fill:`currentColor`,fillRule:`evenodd`,clipRule:`evenodd`})})}NR.displayName=`@mantine/core/CloseIcon`;var PR={root:`m_86a44da5`,"root--subtle":`m_220c80f2`},FR={variant:`subtle`},IR=wj((e,{size:t,radius:n,iconSize:r})=>({root:{"--cb-size":HA(t,`cb-size`),"--cb-radius":n===void 0?void 0:WA(n),"--cb-icon-size":W(r)}})),LR=MN(e=>{let t=FM(`CloseButton`,FR,e),{iconSize:n,children:r,vars:i,radius:a,className:o,classNames:s,style:c,styles:l,unstyled:u,"data-disabled":d,disabled:f,variant:p,icon:m,mod:h,attributes:g,__staticSelector:_,...v}=t,y=ZM({name:_||`CloseButton`,props:t,className:o,style:c,classes:PR,classNames:s,styles:l,unstyled:u,attributes:g,vars:i,varsResolver:IR});return(0,K.jsxs)(KL,{...v,unstyled:u,variant:p,disabled:f,mod:[{disabled:f||d},h],...y(`root`,{variant:p,active:!f&&!d}),children:[m||(0,K.jsx)(NR,{}),r]})});LR.classes=PR,LR.varsResolver=IR,LR.displayName=`@mantine/core/CloseButton`;function RR(e){return G.Children.toArray(e).filter(Boolean)}var zR={root:`m_4081bf90`},BR={preventGrowOverflow:!0,gap:`md`,align:`center`,justify:`flex-start`,wrap:`wrap`},VR=wj((e,{grow:t,preventGrowOverflow:n,gap:r,align:i,justify:a,wrap:o},{childWidth:s})=>({root:{"--group-child-width":t&&n?s:void 0,"--group-gap":UA(r),"--group-align":i,"--group-justify":a,"--group-wrap":o}})),HR=AN(e=>{let t=FM(`Group`,BR,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,children:s,gap:c,align:l,justify:u,wrap:d,grow:f,preventGrowOverflow:p,vars:m,variant:h,__size:g,mod:_,attributes:v,...y}=t,b=RR(s),x=b.length,S=UA(c??`md`);return(0,K.jsx)(zN,{...ZM({name:`Group`,props:t,stylesCtx:{childWidth:`calc(${100/x}% - (${S} - ${S} / ${x}))`},className:r,style:i,classes:zR,classNames:n,styles:a,unstyled:o,attributes:v,vars:m,varsResolver:VR})(`root`),variant:h,mod:[{grow:f},_],size:g,...y,children:b})});HR.classes=zR,HR.varsResolver=VR,HR.displayName=`@mantine/core/Group`;var UR=(0,G.createContext)({size:`sm`}),WR=AN(e=>{let t=FM(`InputClearButton`,null,e),{size:n,variant:r,vars:i,classNames:a,styles:o,...s}=t,c=(0,G.use)(UR),{resolvedClassNames:l,resolvedStyles:u}=LM({classNames:a,styles:o,props:t});return(0,K.jsx)(LR,{variant:r||`transparent`,size:n||c?.size||`sm`,classNames:l,styles:u,__staticSelector:`InputClearButton`,style:{pointerEvents:`all`,background:`var(--input-bg)`,...s.style},...s})});WR.displayName=`@mantine/core/InputClearButton`;var GR={xs:7,sm:8,md:10,lg:12,xl:15};function KR({__clearable:e,__clearSection:t,rightSection:n,__defaultRightSection:r,size:i=`sm`,__clearSectionMode:a=`both`}){let o=e&&t;return a===`rightSection`?n===null?null:n||r:a===`clear`?n===null?null:o||r:o&&(n||r)?(0,K.jsxs)(`div`,{"data-combined-clear-section":!0,style:{display:`flex`,gap:2,alignItems:`center`,paddingInlineEnd:GR[i]},children:[o,n||r]}):n===null?null:n||o||r}var qR=(0,G.createContext)({offsetBottom:!1,offsetTop:!1,describedBy:void 0,getStyles:null,inputId:void 0,labelId:void 0}),JR={wrapper:`m_6c018570`,input:`m_8fb7ebe7`,bottomSection:`m_93f4ed57`,section:`m_82577fc2`,placeholder:`m_88bacfd0`,root:`m_46b77525`,label:`m_8fdc1311`,required:`m_78a94662`,error:`m_8f816625`,success:`m_9d9d40e0`,description:`m_fe47ce59`},YR=wj((e,{size:t})=>({description:{"--input-description-size":t===void 0?void 0:`calc(${GA(t)} - ${W(2)})`}})),XR=AN(e=>{let t=FM(`InputDescription`,null,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,__staticSelector:c,__inheritStyles:l=!0,attributes:u,...d}=FM(`InputDescription`,null,t),f=(0,G.use)(qR),p=ZM({name:[`InputWrapper`,c],props:t,classes:JR,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:u,rootSelector:`description`,vars:s,varsResolver:YR});return(0,K.jsx)(zN,{component:`p`,...(l&&f?.getStyles||p)(`description`,f?.getStyles?{className:r,style:i}:void 0),...d})});XR.classes=JR,XR.varsResolver=YR,XR.displayName=`@mantine/core/InputDescription`;var ZR=wj((e,{size:t})=>({error:{"--input-error-size":t===void 0?void 0:`calc(${GA(t)} - ${W(2)})`}})),QR=AN(e=>{let t=FM(`InputError`,null,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,attributes:c,__staticSelector:l,__inheritStyles:u=!0,...d}=t,f=ZM({name:[`InputWrapper`,l],props:t,classes:JR,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:c,rootSelector:`error`,vars:s,varsResolver:ZR}),p=(0,G.use)(qR);return(0,K.jsx)(zN,{component:`p`,...(u&&p?.getStyles||f)(`error`,p?.getStyles?{className:r,style:i}:void 0),...d})});QR.classes=JR,QR.varsResolver=ZR,QR.displayName=`@mantine/core/InputError`;var $R={labelElement:`label`},ez=wj((e,{size:t})=>({label:{"--input-label-size":GA(t),"--input-asterisk-color":void 0}})),tz=AN(e=>{let t=FM(`InputLabel`,$R,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,labelElement:c,required:l,htmlFor:u,onMouseDown:d,children:f,__staticSelector:p,mod:m,attributes:h,...g}=t,_=ZM({name:[`InputWrapper`,p],props:t,classes:JR,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:h,rootSelector:`label`,vars:s,varsResolver:ez}),v=(0,G.use)(qR),y=v?.getStyles||_,b=g.component||c,x=typeof b!=`string`||b===`label`;return(0,K.jsxs)(zN,{...y(`label`,v?.getStyles?{className:r,style:i}:void 0),component:c,htmlFor:x?u:void 0,mod:[{required:l},m],onMouseDown:e=>{d?.(e),!e.defaultPrevented&&e.detail>1&&e.preventDefault()},...g,children:[f,l&&(0,K.jsx)(`span`,{...y(`required`),"aria-hidden":!0,children:` *`})]})});tz.classes=JR,tz.varsResolver=ez,tz.displayName=`@mantine/core/InputLabel`;var nz=AN(e=>{let t=FM(`InputPlaceholder`,null,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,__staticSelector:c,error:l,mod:u,attributes:d,...f}=t;return(0,K.jsx)(zN,{...ZM({name:[`InputPlaceholder`,c],props:t,classes:JR,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:d,rootSelector:`placeholder`})(`placeholder`),mod:[{error:!!l},u],component:`span`,...f})});nz.classes=JR,nz.displayName=`@mantine/core/InputPlaceholder`;var rz=wj((e,{size:t})=>({success:{"--input-success-size":t===void 0?void 0:`calc(${GA(t)} - ${W(2)})`}})),iz=AN(e=>{let t=FM(`InputSuccess`,null,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,attributes:c,__staticSelector:l,__inheritStyles:u=!0,...d}=t,f=ZM({name:[`InputWrapper`,l],props:t,classes:JR,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:c,rootSelector:`success`,vars:s,varsResolver:rz}),p=(0,G.use)(qR);return(0,K.jsx)(zN,{component:`p`,...(u&&p?.getStyles||f)(`success`,p?.getStyles?{className:r,style:i}:void 0),...d})});iz.classes=JR,iz.varsResolver=rz,iz.displayName=`@mantine/core/InputSuccess`;function az(e,{hasDescription:t,hasError:n}){let r=e.findIndex(e=>e===`input`),i=e.slice(0,r),a=e.slice(r+1),o=t&&i.includes(`description`)||n&&i.includes(`error`);return{offsetBottom:t&&a.includes(`description`)||n&&a.includes(`error`),offsetTop:o}}var oz={labelElement:`label`,inputContainer:e=>e,inputWrapperOrder:[`label`,`description`,`input`,`error`]},sz=wj((e,{size:t})=>({label:{"--input-label-size":GA(t),"--input-asterisk-color":void 0},error:{"--input-error-size":t===void 0?void 0:`calc(${GA(t)} - ${W(2)})`},success:{"--input-success-size":t===void 0?void 0:`calc(${GA(t)} - ${W(2)})`},description:{"--input-description-size":t===void 0?void 0:`calc(${GA(t)} - ${W(2)})`}})),cz=AN(e=>{let t=FM(`InputWrapper`,oz,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,size:c,variant:l,__staticSelector:u,inputContainer:d,inputWrapperOrder:f,label:p,error:m,success:h,description:g,labelProps:_,descriptionProps:v,errorProps:y,successProps:b,labelElement:x,children:S,withAsterisk:C,id:w,required:T,__stylesApiProps:E,mod:D,attributes:O,...k}=t,A=ZM({name:[`InputWrapper`,u],props:E||t,classes:JR,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:O,vars:s,varsResolver:sz}),j={size:c,variant:l,__staticSelector:u},ee=rj(w),M=typeof C==`boolean`?C:T,N=y?.id||`${ee}-error`,te=b?.id||`${ee}-success`,P=v?.id||`${ee}-description`,F=ee,I=!!m&&typeof m!=`boolean`,ne=!!h&&typeof h!=`boolean`&&!m,L=!!g,re=I&&f.includes(`error`),ie=ne&&f.includes(`error`),ae=L&&f.includes(`description`),oe=`${re?N:``} ${ie?te:``} ${ae?P:``}`,R=oe.trim().length>0?oe.trim():void 0,z=_?.id||`${ee}-label`,se=p&&(0,K.jsx)(tz,{labelElement:x,id:z,htmlFor:F,required:M,...j,..._,children:p},`label`),ce=L&&(0,K.jsx)(XR,{...v,...j,size:v?.size||j.size,id:v?.id||P,children:g},`description`),le=(0,K.jsx)(G.Fragment,{children:d(S)},`input`),ue=I&&(0,G.createElement)(QR,{...y,...j,size:y?.size||j.size,key:`error`,id:y?.id||N},m),de=ne&&(0,G.createElement)(iz,{...b,...j,size:b?.size||j.size,key:`success`,id:b?.id||te},h),fe=f.map(e=>{switch(e){case`label`:return se;case`input`:return le;case`description`:return ce;case`error`:return ue||de;default:return null}});return(0,K.jsx)(qR,{value:{getStyles:A,describedBy:R,inputId:F,labelId:z,...az(f,{hasDescription:L,hasError:I||ne})},children:(0,K.jsx)(zN,{variant:l,size:c,mod:[{error:!!m,success:!!h&&!m},D],id:x===`label`?void 0:w,...A(`root`),...k,children:fe})})});cz.classes=JR,cz.varsResolver=sz,cz.displayName=`@mantine/core/InputWrapper`;var lz={variant:`default`,leftSectionPointerEvents:`none`,rightSectionPointerEvents:`none`,withAria:!0,withErrorStyles:!0,withSuccessStyles:!0,size:`sm`,loading:!1,loadingPosition:`right`},uz=wj((e,t,n)=>({wrapper:{"--input-margin-top":n.offsetTop?`calc(var(--mantine-spacing-xs) / 2)`:void 0,"--input-margin-bottom":n.offsetBottom?`calc(var(--mantine-spacing-xs) / 2)`:void 0,"--input-height":HA(t.size,`input-height`),"--input-fz":GA(t.size),"--input-radius":t.radius===void 0?void 0:WA(t.radius),"--input-left-section-width":t.leftSectionWidth===void 0?void 0:W(t.leftSectionWidth),"--input-right-section-width":t.rightSectionWidth===void 0?void 0:W(t.rightSectionWidth),"--input-padding-y":t.multiline?HA(t.size,`input-padding-y`):void 0,"--input-left-section-pointer-events":t.leftSectionPointerEvents,"--input-right-section-pointer-events":t.rightSectionPointerEvents}})),dz=MN(e=>{let t=FM(`Input`,lz,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,required:s,__staticSelector:c,__stylesApiProps:l,size:u,wrapperProps:d,error:f,success:p,disabled:m,leftSection:h,leftSectionProps:g,leftSectionWidth:_,rightSection:v,rightSectionProps:y,rightSectionWidth:b,rightSectionPointerEvents:x,leftSectionPointerEvents:S,variant:C,vars:w,pointer:T,multiline:E,radius:D,id:O,withAria:k,withErrorStyles:A,withSuccessStyles:j,mod:ee,inputSize:M,attributes:N,__clearSection:te,__clearable:P,__clearSectionMode:F,__defaultRightSection:I,loading:ne,loadingPosition:L,__bottomSection:re,__bottomSectionProps:ie,rootRef:ae,dir:oe,...R}=t,{styleProps:z,rest:se}=iN(R),ce=(0,G.use)(qR),le={offsetBottom:ce?.offsetBottom,offsetTop:ce?.offsetTop},ue=ZM({name:[`Input`,c],props:l||t,classes:JR,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:N,stylesCtx:le,rootSelector:`wrapper`,vars:w,varsResolver:uz}),de=k?{required:s,disabled:m,"aria-invalid":f?!0:void 0,"aria-describedby":ce?.describedBy,id:ce?.inputId||O}:{},fe=ne?(0,K.jsx)(wR,{size:L===`left`?`calc(var(--input-left-section-size) / 2)`:`calc(var(--input-right-section-size) / 2)`}):null,pe=ne&&L===`left`?fe:h,B=KR({__clearable:P,__clearSection:te,rightSection:ne&&L===`right`?fe:v,__defaultRightSection:I,size:u,__clearSectionMode:F});return(0,K.jsx)(UR,{value:{size:u||`sm`},children:(0,K.jsxs)(zN,{ref:ae,dir:oe,...ue(`wrapper`),...z,...d,mod:[{error:!!f&&A,success:!!p&&!f&&j,pointer:T,disabled:m,multiline:E,"data-with-right-section":!!B,"data-with-left-section":!!pe,"data-with-bottom-section":!!re},ee],variant:C,size:u,children:[pe&&(0,K.jsx)(`div`,{...g,"data-position":`left`,...ue(`section`,{className:g?.className,style:g?.style}),children:pe}),(0,K.jsx)(zN,{component:`input`,...se,...de,required:s,mod:{disabled:m,error:!!f&&A,success:!!p&&!f&&j},variant:C,__size:M,...ue(`input`)}),re&&(0,K.jsx)(`div`,{...ie,...ue(`bottomSection`,{className:ie?.className,style:ie?.style}),children:re}),B&&(0,K.jsx)(`div`,{...y,"data-position":`right`,...ue(`section`,{className:y?.className,style:y?.style}),children:B})]})})});dz.classes=JR,dz.varsResolver=uz,dz.Wrapper=cz,dz.Label=tz,dz.Error=QR,dz.Success=iz,dz.Description=XR,dz.Placeholder=nz,dz.ClearButton=WR,dz.displayName=`@mantine/core/Input`;function fz(e,t,n){let r=FM([`Input`,`InputWrapper`,e],t,n),{label:i,description:a,error:o,success:s,required:c,classNames:l,styles:u,className:d,unstyled:f,__staticSelector:p,__stylesApiProps:m,errorProps:h,successProps:g,labelProps:_,descriptionProps:v,wrapperProps:y,id:b,size:x,style:S,inputContainer:C,inputWrapperOrder:w,withAsterisk:T,variant:E,vars:D,mod:O,attributes:k,...A}=r,{styleProps:j,rest:ee}=iN(A),M={label:i,description:a,error:o,success:s,required:c,classNames:l,className:d,__staticSelector:p,__stylesApiProps:m||r,errorProps:h,successProps:g,labelProps:_,descriptionProps:v,unstyled:f,styles:u,size:x,style:S,inputContainer:C,inputWrapperOrder:w,withAsterisk:T,variant:E,id:b,mod:O,attributes:k,...y};return{...ee,classNames:l,styles:u,unstyled:f,wrapperProps:{...M,...j},inputProps:{required:c,classNames:l,styles:u,unstyled:f,size:x,__staticSelector:p,__stylesApiProps:m||r,error:o,success:s,variant:E,id:b,attributes:k}}}var pz={__staticSelector:`InputBase`,withAria:!0,size:`sm`},mz=MN(e=>{let{inputProps:t,wrapperProps:n,...r}=fz(`InputBase`,pz,e);return(0,K.jsx)(dz.Wrapper,{...n,children:(0,K.jsx)(dz,{...t,...r})})});mz.classes={...dz.classes,...dz.Wrapper.classes},mz.displayName=`@mantine/core/InputBase`;function hz(e,t){if(!t||!e)return!1;let n=t.parentNode;for(;n!=null;){if(n===e)return!0;n=n.parentNode}return!1}function gz({target:e,parent:t,ref:n,displayAfterTransitionEnd:r,onTransitionStart:i,onTransitionEnd:a}){let o=(0,G.useRef)(-1),s=(0,G.useRef)(e),[c,l]=(0,G.useState)(!1),[u,d]=(0,G.useState)(typeof r==`boolean`&&r),f=()=>{if(!e||!t||!n.current)return;let r=e.getBoundingClientRect(),i=t.getBoundingClientRect(),a=t.offsetWidth===0?1:i.width/t.offsetWidth,o=t.offsetHeight===0?1:i.height/t.offsetHeight,s=window.getComputedStyle(e),c=window.getComputedStyle(t),l=nP(s.borderTopWidth)+nP(c.borderTopWidth),u=nP(s.borderLeftWidth)+nP(c.borderLeftWidth),d={top:(r.top-i.top)/o-l,left:(r.left-i.left)/a-u,width:r.width/a,height:r.height/o};n.current.style.transform=`translateY(${d.top}px) translateX(${d.left}px)`,n.current.style.width=`${d.width}px`,n.current.style.height=`${d.height}px`},p=()=>{window.clearTimeout(o.current),n.current&&(n.current.style.transitionDuration=`0ms`),f(),o.current=window.setTimeout(()=>{n.current&&(n.current.style.transitionDuration=``)},30)},m=(0,G.useRef)(null),h=(0,G.useRef)(null);return(0,G.useEffect)(()=>{if(c&&s.current!==e&&i&&i(),s.current=e,f(),e)return m.current=new ResizeObserver(p),m.current.observe(e),t&&(h.current=new ResizeObserver(p),h.current.observe(t)),()=>{m.current?.disconnect(),h.current?.disconnect()}},[t,e]),(0,G.useEffect)(()=>{if(t){let e=e=>{hz(e.target,t)&&(p(),d(!1))};return t.addEventListener(`transitionend`,e),()=>{t.removeEventListener(`transitionend`,e)}}},[t]),(0,G.useEffect)(()=>{if(n.current&&a){let e=e=>{e.propertyName===`transform`&&a()};return n.current.addEventListener(`transitionend`,e),()=>{n.current?.removeEventListener(`transitionend`,e)}}},[a]),hj(()=>{bj()!==`test`&&l(!0)},20,{autoInvoke:!0}),gj(e=>{e.forEach(e=>{e.type===`attributes`&&e.attributeName===`dir`&&p()})},{attributes:!0,attributeFilter:[`dir`]},()=>document.documentElement),{initialized:c,hidden:u}}var _z={root:`m_96b553a6`},vz=wj((e,{transitionDuration:t},{shouldReduceMotion:n})=>({root:{"--transition-duration":e.respectReducedMotion&&n?`0ms`:typeof t==`number`?`${t}ms`:t||`150ms`}})),yz=AN(e=>{let t=FM(`FloatingIndicator`,null,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,target:c,parent:l,transitionDuration:u,mod:d,displayAfterTransitionEnd:f,onTransitionStart:p,onTransitionEnd:m,attributes:h,ref:g,..._}=t,v=ZM({name:`FloatingIndicator`,classes:_z,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:h,vars:s,varsResolver:vz,stylesCtx:{shouldReduceMotion:dj()}}),y=(0,G.useRef)(null),{initialized:b,hidden:x}=gz({target:c,parent:l,ref:y,displayAfterTransitionEnd:f,onTransitionStart:p,onTransitionEnd:m}),S=oj(g,y);return!c||!l?null:(0,K.jsx)(zN,{ref:S,mod:[{initialized:b,hidden:x},d],...v(`root`),..._})});yz.displayName=`@mantine/core/FloatingIndicator`,yz.classes=_z,yz.varsResolver=vz;var bz={root:`m_66836ed3`,wrapper:`m_a5d60502`,body:`m_667c2793`,title:`m_6a03f287`,label:`m_698f4f23`,icon:`m_667f2a6a`,message:`m_7fa78076`,closeButton:`m_87f54839`},xz=wj((e,{radius:t,color:n,variant:r,autoContrast:i})=>{let a=e.variantColorResolver({color:n||e.primaryColor,theme:e,variant:r||`light`,autoContrast:i});return{root:{"--alert-radius":t===void 0?void 0:WA(t),"--alert-bg":n||r?a.background:void 0,"--alert-color":a.color,"--alert-bd":n||r?a.border:void 0}}}),Sz=AN(e=>{let t=FM(`Alert`,null,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,radius:c,color:l,title:u,children:d,id:f,icon:p,withCloseButton:m,onClose:h,closeButtonLabel:g,variant:_,autoContrast:v,role:y,attributes:b,...x}=t,S=ZM({name:`Alert`,classes:bz,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:b,vars:s,varsResolver:xz}),C=rj(f),w=u&&`${C}-title`||void 0,T=`${C}-body`;return(0,K.jsx)(zN,{id:C,...S(`root`,{variant:_}),variant:_,...x,role:y||`alert`,"aria-describedby":d?T:void 0,"aria-labelledby":u?w:void 0,children:(0,K.jsxs)(`div`,{...S(`wrapper`),children:[p&&(0,K.jsx)(`div`,{...S(`icon`),children:p}),(0,K.jsxs)(`div`,{...S(`body`),children:[u&&(0,K.jsx)(`div`,{...S(`title`),"data-with-close-button":m||void 0,children:(0,K.jsx)(`span`,{id:w,...S(`label`),children:u})}),d&&(0,K.jsx)(`div`,{id:T,...S(`message`),"data-variant":_,children:d})]}),m&&(0,K.jsx)(LR,{...S(`closeButton`),onClick:h,variant:`transparent`,size:16,iconSize:16,"aria-label":g,unstyled:o})]})})});Sz.classes=bz,Sz.varsResolver=xz,Sz.displayName=`@mantine/core/Alert`;var Cz={root:`m_b6d8b162`};function wz(e){if(e===`start`)return`start`;if(e===`end`||e)return`end`}var Tz={inherit:!1},Ez=wj((e,{variant:t,lineClamp:n,gradient:r,size:i,textWrap:a})=>({root:{"--text-fz":GA(i),"--text-lh":KA(i),"--text-gradient":t===`gradient`?qj(r,e):void 0,"--text-line-clamp":typeof n==`number`?n.toString():void 0,"--text-text-wrap":a}})),Dz=MN(e=>{let t=FM(`Text`,Tz,e),{lineClamp:n,truncate:r,inline:i,inherit:a,gradient:o,span:s,textWrap:c,__staticSelector:l,vars:u,className:d,style:f,classNames:p,styles:m,unstyled:h,variant:g,mod:_,size:v,attributes:y,...b}=t;return(0,K.jsx)(zN,{...ZM({name:[`Text`,l],props:t,classes:Cz,className:d,style:f,classNames:p,styles:m,unstyled:h,attributes:y,vars:u,varsResolver:Ez})(`root`,{focusable:!0}),component:s?`span`:`p`,variant:g,mod:[{"data-truncate":wz(r),"data-line-clamp":typeof n==`number`,"data-inline":i,"data-inherit":a},_],size:v,...b})});Dz.classes=Cz,Dz.varsResolver=Ez,Dz.displayName=`@mantine/core/Text`;var Oz={root:`m_347db0ec`,"root--dot":`m_fbd81e3d`,label:`m_5add502a`,section:`m_91fdda9b`},kz=wj((e,{radius:t,color:n,gradient:r,variant:i,size:a,autoContrast:o,circle:s})=>{let c=e.variantColorResolver({color:n||e.primaryColor,theme:e,gradient:r,variant:i||`filled`,autoContrast:o});return{root:{"--badge-height":HA(a,`badge-height`),"--badge-padding-x":HA(a,`badge-padding-x`),"--badge-fz":HA(a,`badge-fz`),"--badge-radius":s||t===void 0?void 0:WA(t),"--badge-bg":n||i?c.background:void 0,"--badge-color":n||i?c.color:void 0,"--badge-bd":n||i?c.border:void 0,"--badge-dot-color":i===`dot`?Wj(n,e):void 0}}}),Az=MN(e=>{let t=FM(`Badge`,null,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,radius:c,color:l,gradient:u,leftSection:d,rightSection:f,children:p,variant:m,fullWidth:h,autoContrast:g,circle:_,mod:v,attributes:y,...b}=t,x=ZM({name:`Badge`,props:t,classes:Oz,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:y,vars:s,varsResolver:kz});return(0,K.jsxs)(zN,{variant:m,mod:[{block:h,circle:_,"with-right-section":!!f,"with-left-section":!!d},v],...x(`root`,{variant:m}),...b,children:[d&&(0,K.jsx)(`span`,{...x(`section`),"data-position":`left`,children:d}),(0,K.jsx)(`span`,{...x(`label`),children:p}),f&&(0,K.jsx)(`span`,{...x(`section`),"data-position":`right`,children:f})]})});Az.classes=Oz,Az.varsResolver=kz,Az.displayName=`@mantine/core/Badge`;var jz={root:`m_77c9d27d`,inner:`m_80f1301b`,label:`m_811560b9`,section:`m_a74036a`,loader:`m_a25b86ee`,group:`m_80d6d844`,groupSection:`m_70be2a01`},Mz={orientation:`horizontal`},Nz=wj((e,{borderWidth:t})=>({group:{"--button-border-width":W(t)}})),Pz=AN(e=>{let t=FM(`ButtonGroup`,Mz,e),{className:n,style:r,classNames:i,styles:a,unstyled:o,orientation:s,vars:c,borderWidth:l,mod:u,attributes:d,...f}=FM(`ButtonGroup`,Mz,e);return(0,K.jsx)(zN,{...ZM({name:`ButtonGroup`,props:t,classes:jz,className:n,style:r,classNames:i,styles:a,unstyled:o,attributes:d,vars:c,varsResolver:Nz,rootSelector:`group`})(`group`),mod:[{"data-orientation":s},u],role:`group`,...f})});Pz.classes=jz,Pz.varsResolver=Nz,Pz.displayName=`@mantine/core/ButtonGroup`;var Fz=wj((e,{radius:t,color:n,gradient:r,variant:i,autoContrast:a,size:o})=>{let s=e.variantColorResolver({color:n||e.primaryColor,theme:e,gradient:r,variant:i||`filled`,autoContrast:a});return{groupSection:{"--section-height":HA(o,`section-height`),"--section-padding-x":HA(o,`section-padding-x`),"--section-fz":o?.includes(`compact`)?GA(o.replace(`compact-`,``)):GA(o),"--section-radius":t===void 0?void 0:WA(t),"--section-bg":n||i?s.background:void 0,"--section-color":s.color,"--section-bd":n||i?s.border:void 0}}}),Iz=AN(e=>{let t=FM(`ButtonGroupSection`,null,e),{className:n,style:r,classNames:i,styles:a,unstyled:o,vars:s,gradient:c,radius:l,autoContrast:u,attributes:d,...f}=t;return(0,K.jsx)(zN,{...ZM({name:`ButtonGroupSection`,props:t,classes:jz,className:n,style:r,classNames:i,styles:a,unstyled:o,attributes:d,vars:s,varsResolver:Fz,rootSelector:`groupSection`})(`groupSection`),...f})});Iz.classes=jz,Iz.varsResolver=Fz,Iz.displayName=`@mantine/core/ButtonGroupSection`;var Lz={in:{opacity:1,transform:`translate(-50%, calc(-50% + ${W(1)}))`},out:{opacity:0,transform:`translate(-50%, -200%)`},common:{transformOrigin:`center`},transitionProperty:`transform, opacity`},Rz=wj((e,{radius:t,color:n,gradient:r,variant:i,size:a,justify:o,autoContrast:s})=>{let c=e.variantColorResolver({color:n||e.primaryColor,theme:e,gradient:r,variant:i||`filled`,autoContrast:s});return{root:{"--button-justify":o,"--button-height":HA(a,`button-height`),"--button-padding-x":HA(a,`button-padding-x`),"--button-fz":a?.includes(`compact`)?GA(a.replace(`compact-`,``)):GA(a),"--button-radius":t===void 0?void 0:WA(t),"--button-bg":n||i?c.background:void 0,"--button-hover":n||i?c.hover:void 0,"--button-color":c.color,"--button-bd":n||i?c.border:void 0,"--button-hover-color":n||i?c.hoverColor:void 0}}}),zz=MN(e=>{let t=FM(`Button`,null,e),{style:n,vars:r,className:i,color:a,disabled:o,children:s,leftSection:c,rightSection:l,fullWidth:u,variant:d,radius:f,loading:p,loaderProps:m,gradient:h,classNames:g,styles:_,unstyled:v,"data-disabled":y,autoContrast:b,mod:x,attributes:S,...C}=t,w=ZM({name:`Button`,props:t,classes:jz,className:i,style:n,classNames:g,styles:_,unstyled:v,attributes:S,vars:r,varsResolver:Rz}),T=!!c,E=!!l;return(0,K.jsxs)(KL,{...w(`root`,{active:!o&&!p&&!y}),unstyled:v,variant:d,disabled:o||p,mod:[{disabled:o||y,loading:p,block:u,"with-left-section":T,"with-right-section":E},x],...C,children:[typeof p==`boolean`&&(0,K.jsx)(mR,{mounted:p,transition:Lz,duration:150,children:e=>(0,K.jsx)(zN,{component:`span`,...w(`loader`,{style:e}),"aria-hidden":!0,children:(0,K.jsx)(wR,{color:`var(--button-color)`,size:`calc(var(--button-height) / 1.8)`,...m})})}),(0,K.jsxs)(`span`,{...w(`inner`),children:[c&&(0,K.jsx)(zN,{component:`span`,...w(`section`),mod:{position:`left`},children:c}),(0,K.jsx)(zN,{component:`span`,mod:{loading:p},...w(`label`),children:s}),l&&(0,K.jsx)(zN,{component:`span`,...w(`section`),mod:{position:`right`},children:l})]})]})});zz.classes=jz,zz.varsResolver=Rz,zz.displayName=`@mantine/core/Button`,zz.Group=Pz,zz.GroupSection=Iz;var Bz={root:`m_4451eb3a`},Vz=MN(e=>{let t=FM(`Center`,null,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,inline:c,mod:l,attributes:u,...d}=t,f=ZM({name:`Center`,props:t,classes:Bz,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:u,vars:s});return(0,K.jsx)(zN,{mod:[{inline:c},l],...f(`root`),...d})});Vz.classes=Bz,Vz.displayName=`@mantine/core/Center`;var[Hz,Uz]=zA(`Pagination.Root component was not found in tree`),Wz={root:`m_4addd315`,control:`m_326d024a`,dots:`m_4ad7767d`,items:`m_105fdbed`,label:`m_10817321`},Gz={withPadding:!0},Kz=AN(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,active:o,disabled:s,withPadding:c,mod:l,...u}=FM(`PaginationControl`,Gz,e),d=Uz(),f=s||d.disabled;return(0,K.jsx)(KL,{disabled:f,mod:[{active:o,disabled:f,"with-padding":c},l],...d.getStyles(`control`,{className:n,style:r,classNames:t,styles:i,active:!f}),...u})});Kz.classes=Wz,Kz.displayName=`@mantine/core/PaginationControl`;function qz({style:e,children:t,path:n,...r}){return(0,K.jsx)(`svg`,{viewBox:`0 0 16 16`,xmlns:`http://www.w3.org/2000/svg`,style:{width:`calc(var(--pagination-control-size) / 1.8)`,height:`calc(var(--pagination-control-size) / 1.8)`,...e},...r,children:(0,K.jsx)(`path`,{d:n,fill:`currentColor`})})}var Jz=e=>(0,K.jsx)(qz,{...e,path:`M8.781 8l-3.3-3.3.943-.943L10.667 8l-4.243 4.243-.943-.943 3.3-3.3z`}),Yz=e=>(0,K.jsx)(qz,{...e,path:`M7.219 8l3.3 3.3-.943.943L5.333 8l4.243-4.243.943.943-3.3 3.3z`}),Xz=e=>(0,K.jsx)(qz,{...e,path:`M6.85355 3.85355C7.04882 3.65829 7.04882 3.34171 6.85355 3.14645C6.65829 2.95118 6.34171 2.95118 6.14645 3.14645L2.14645 7.14645C1.95118 7.34171 1.95118 7.65829 2.14645 7.85355L6.14645 11.8536C6.34171 12.0488 6.65829 12.0488 6.85355 11.8536C7.04882 11.6583 7.04882 11.3417 6.85355 11.1464L3.20711 7.5L6.85355 3.85355ZM12.8536 3.85355C13.0488 3.65829 13.0488 3.34171 12.8536 3.14645C12.6583 2.95118 12.3417 2.95118 12.1464 3.14645L8.14645 7.14645C7.95118 7.34171 7.95118 7.65829 8.14645 7.85355L12.1464 11.8536C12.3417 12.0488 12.6583 12.0488 12.8536 11.8536C13.0488 11.6583 13.0488 11.3417 12.8536 11.1464L9.20711 7.5L12.8536 3.85355Z`}),Zz=e=>(0,K.jsx)(qz,{...e,path:`M2.14645 11.1464C1.95118 11.3417 1.95118 11.6583 2.14645 11.8536C2.34171 12.0488 2.65829 12.0488 2.85355 11.8536L6.85355 7.85355C7.04882 7.65829 7.04882 7.34171 6.85355 7.14645L2.85355 3.14645C2.65829 2.95118 2.34171 2.95118 2.14645 3.14645C1.95118 3.34171 1.95118 3.65829 2.14645 3.85355L5.79289 7.5L2.14645 11.1464ZM8.14645 11.1464C7.95118 11.3417 7.95118 11.6583 8.14645 11.8536C8.34171 12.0488 8.65829 12.0488 8.85355 11.8536L12.8536 7.85355C13.0488 7.65829 13.0488 7.34171 12.8536 7.14645L8.85355 3.14645C8.65829 2.95118 8.34171 2.95118 8.14645 3.14645C7.95118 3.34171 7.95118 3.65829 8.14645 3.85355L11.7929 7.5L8.14645 11.1464Z`}),Qz={icon:e=>(0,K.jsx)(qz,{...e,path:`M2 8c0-.733.6-1.333 1.333-1.333.734 0 1.334.6 1.334 1.333s-.6 1.333-1.334 1.333C2.6 9.333 2 8.733 2 8zm9.333 0c0-.733.6-1.333 1.334-1.333C13.4 6.667 14 7.267 14 8s-.6 1.333-1.333 1.333c-.734 0-1.334-.6-1.334-1.333zM6.667 8c0-.733.6-1.333 1.333-1.333s1.333.6 1.333 1.333S8.733 9.333 8 9.333 6.667 8.733 6.667 8z`})},$z=AN(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,icon:o,...s}=FM(`PaginationDots`,Qz,e);return(0,K.jsx)(zN,{...Uz().getStyles(`dots`,{className:n,style:r,styles:i,classNames:t}),...s,children:(0,K.jsx)(o,{style:{width:`calc(var(--pagination-control-size) / 1.8)`,height:`calc(var(--pagination-control-size) / 1.8)`}})})});$z.classes=Wz,$z.displayName=`@mantine/core/PaginationDots`;function eB({icon:e,name:t,action:n,type:r}){let i={icon:e},a=e=>{let{icon:a,...o}=FM(t,i,e),s=Uz(),c=r===`next`?s.active===s.total:s.active===1;return(0,K.jsx)(Kz,{disabled:s.disabled||c,onClick:s[n],withPadding:!1,...o,children:(0,K.jsx)(a,{className:`mantine-rotate-rtl`,style:{width:`calc(var(--pagination-control-size) / 1.8)`,height:`calc(var(--pagination-control-size) / 1.8)`}})})};return a.displayName=`@mantine/core/${t}`,ON(a)}var tB=eB({icon:Jz,name:`PaginationNext`,action:`onNext`,type:`next`}),nB=eB({icon:Yz,name:`PaginationPrevious`,action:`onPrevious`,type:`previous`}),rB=eB({icon:Xz,name:`PaginationFirst`,action:`onFirst`,type:`previous`}),iB=eB({icon:Zz,name:`PaginationLast`,action:`onLast`,type:`next`});function aB({dotsIcon:e}){let t=Uz();return(0,K.jsx)(K.Fragment,{children:t.range.map((n,r)=>n===`dots`?(0,K.jsx)($z,{icon:e},r):(0,K.jsx)(Kz,{active:n===t.active,"aria-current":n===t.active?`page`:void 0,onClick:()=>t.onChange(n),disabled:t.disabled,...t.getItemProps?.(n),children:t.getItemProps?.(n)?.children??n},r))})}aB.displayName=`@mantine/core/PaginationItems`;var oB={formatLabel:({page:e,totalPages:t})=>`Page ${e} of ${t}`},sB=AN(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,formatLabel:o,...s}=FM(`PaginationLabel`,oB,e),c=Uz();return(0,K.jsx)(zN,{...c.getStyles(`label`,{className:n,style:r,styles:i,classNames:t}),...s,children:o({page:c.active,totalPages:c.total})})});sB.classes=Wz,sB.displayName=`@mantine/core/PaginationLabel`;var cB={siblings:1,boundaries:1},lB=wj((e,{size:t,radius:n,color:r,autoContrast:i})=>({root:{"--pagination-control-radius":n===void 0?void 0:WA(n),"--pagination-control-size":HA(t,`pagination-control-size`),"--pagination-control-fz":GA(t),"--pagination-active-bg":r?Wj(r,e):void 0,"--pagination-active-color":eM(i,e)?Zj({color:r,theme:e,autoContrast:i}):void 0}})),uB=AN(e=>{let t=FM(`PaginationRoot`,cB,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,total:c,value:l,defaultValue:u,onChange:d,disabled:f,siblings:p,boundaries:m,color:h,radius:g,onNextPage:_,onPreviousPage:v,onFirstPage:y,onLastPage:b,getItemProps:x,autoContrast:S,startValue:C,layout:w,mod:T,attributes:E,...D}=t,O=ZM({name:`Pagination`,classes:Wz,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:E,vars:s,varsResolver:lB}),{range:k,setPage:A,next:j,previous:ee,active:M,first:N,last:te}=uj({page:l,initialPage:u,onChange:d,total:c,siblings:p,boundaries:m,startValue:C});return(0,K.jsx)(Hz,{value:{total:c,range:k,active:M,disabled:f,layout:w,getItemProps:x,onChange:A,onNext:JA(_,j),onPrevious:JA(v,ee),onFirst:JA(y,N),onLast:JA(b,te),getStyles:O},children:(0,K.jsx)(zN,{...O(`root`),mod:[{layout:w},T],...D})})});uB.classes=Wz,uB.varsResolver=lB,uB.displayName=`@mantine/core/PaginationRoot`;var dB={withControls:!0,withPages:!0,siblings:1,boundaries:1,gap:8};function fB({children:e}){return(0,K.jsx)(zN,{...Uz().getStyles(`items`),children:e})}var pB=AN(e=>{let{withEdges:t,withControls:n,getControlProps:r,nextIcon:i,previousIcon:a,lastIcon:o,firstIcon:s,dotsIcon:c,total:l,gap:u,hideWithOnePage:d,withPages:f,layout:p,formatLabel:m,...h}=FM(`Pagination`,dB,e);if(l<=0||d&&l===1)return null;let g=f?p===`responsive`?(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(fB,{children:(0,K.jsx)(aB,{dotsIcon:c})}),(0,K.jsx)(sB,{formatLabel:m})]}):(0,K.jsx)(aB,{dotsIcon:c}):null;return(0,K.jsx)(uB,{total:l,layout:p,...h,children:(0,K.jsxs)(HR,{gap:u,children:[t&&(0,K.jsx)(rB,{icon:s,...r?.(`first`)}),n&&(0,K.jsx)(nB,{icon:a,...r?.(`previous`)}),g,n&&(0,K.jsx)(tB,{icon:i,...r?.(`next`)}),t&&(0,K.jsx)(iB,{icon:o,...r?.(`last`)})]})})});pB.classes=Wz,pB.displayName=`@mantine/core/Pagination`,pB.Root=uB,pB.Control=Kz,pB.Dots=$z,pB.First=rB,pB.Last=iB,pB.Next=tB,pB.Previous=nB,pB.Items=aB,pB.Label=sB;function mB({offset:e,position:t,defaultOpened:n}){let[r,i]=(0,G.useState)(n),a=(0,G.useRef)(null),{x:o,y:s,elements:c,refs:l,update:u,placement:d}=ML({placement:t,middleware:[UI({crossAxis:!0,padding:5,rootBoundary:`document`})]}),f=d.includes(`right`)?e:t.includes(`left`)?e*-1:0,p=d.includes(`bottom`)?e:t.includes(`top`)?e*-1:0,m=(0,G.useCallback)(({clientX:e,clientY:t})=>{l.setPositionReference({getBoundingClientRect(){return{width:0,height:0,x:e,y:t,left:e+f,top:t+p,right:e,bottom:t}}})},[c.reference]);return(0,G.useEffect)(()=>{if(l.floating.current){let e=a.current;e.addEventListener(`mousemove`,m);let t=VP(l.floating.current);return t.forEach(e=>{e.addEventListener(`scroll`,u)}),()=>{e.removeEventListener(`mousemove`,m),t.forEach(e=>{e.removeEventListener(`scroll`,u)})}}},[c.reference,l.floating.current,u,m,r]),{handleMouseMove:m,x:o,y:s,opened:r,setOpened:i,boundaryRef:a,floating:l.setFloating}}var hB={tooltip:`m_1b3c8819`,arrow:`m_f898399f`},gB={refProp:`ref`,withinPortal:!0,offset:10,position:`right`,zIndex:VA(`popover`)},_B=wj((e,{radius:t,color:n})=>({tooltip:{"--tooltip-radius":t===void 0?void 0:WA(t),"--tooltip-bg":n?Wj(n,e):void 0,"--tooltip-color":n?`var(--mantine-color-white)`:void 0}})),vB=AN(e=>{let t=FM(`TooltipFloating`,gB,e),{children:n,refProp:r,withinPortal:i,style:a,className:o,classNames:s,styles:c,unstyled:l,radius:u,color:d,label:f,offset:p,position:m,multiline:h,zIndex:g,disabled:_,defaultOpened:v,variant:y,vars:b,portalProps:x,attributes:S,ref:C,...w}=t,T=TM(),E=ZM({name:`TooltipFloating`,props:t,classes:hB,className:o,style:a,classNames:s,styles:c,unstyled:l,attributes:S,rootSelector:`tooltip`,vars:b,varsResolver:_B}),{handleMouseMove:D,x:O,y:k,opened:A,boundaryRef:j,floating:ee,setOpened:M}=mB({offset:p,position:m,defaultOpened:v}),N=Cj(n);if(!N)throw Error(`[@mantine/core] Tooltip.Floating component children should be an element or a component that accepts ref, fragments, strings, numbers and other primitive values are not supported`);let te=oj(j,xj(N),C),P=N.props,F=e=>{P.onMouseEnter?.(e),D(e),M(!0)},I=e=>{P.onMouseLeave?.(e),M(!1)};return(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(cR,{...x,withinPortal:i,children:(0,K.jsx)(zN,{...w,...E(`tooltip`,{style:{...EN(a,T),zIndex:g,display:!_&&A?`block`:`none`,top:(k&&Math.round(k))??``,left:(O&&Math.round(O))??``}}),variant:y,ref:ee,mod:{multiline:h},children:f})}),(0,G.cloneElement)(N,{...P,[r]:te,onMouseEnter:F,onMouseLeave:I})]})});vB.classes=hB,vB.varsResolver=_B,vB.displayName=`@mantine/core/TooltipFloating`;var yB=(0,G.createContext)({withinGroup:!1}),bB={openDelay:0,closeDelay:0};function xB(e){let{openDelay:t,closeDelay:n,children:r}=FM(`TooltipGroup`,bB,e);return(0,K.jsx)(yB,{value:{withinGroup:!0},children:(0,K.jsx)(CL,{delay:{open:t,close:n},children:r})})}xB.displayName=`@mantine/core/TooltipGroup`,xB.extend=e=>e;function SB(e){if(e===void 0)return{shift:!0,flip:!0};let t={...e};return e.shift===void 0&&(t.shift=!0),e.flip===void 0&&(t.flip=!0),t}function CB(e){let t=SB(e.middlewares),n=[HI(e.offset)];return t.shift&&n.push(UI(typeof t.shift==`boolean`?{padding:8}:{padding:8,...t.shift})),t.flip&&n.push(typeof t.flip==`boolean`?WI():WI(t.flip)),n.push(KI({element:e.arrowRef,padding:e.arrowOffset})),t.inline?n.push(typeof t.inline==`boolean`?GI():GI(t.inline)):e.inline&&n.push(GI()),n}function wB(e){let[t,n]=(0,G.useState)(e.defaultOpened),r=typeof e.opened==`boolean`?e.opened:t,i=(0,G.use)(yB).withinGroup,a=rj(),o=(0,G.useCallback)(e=>{n(e),e&&g(a)},[a]),{x:s,y:c,context:l,refs:u,placement:d,middlewareData:{arrow:{x:f,y:p}={}}}=ML({strategy:e.strategy,placement:e.position,open:r,onOpenChange:o,middleware:CB(e),whileElementsMounted:DI}),{delay:m,currentId:h,setCurrentId:g}=wL(l,{id:a}),{getReferenceProps:_,getFloatingProps:v}=IL([yL(l,{enabled:e.events?.hover,delay:i?m:{open:e.openDelay,close:e.closeDelay},mouseOnly:!e.events?.touch,handleClose:e.interactive?Bee():null}),PL(l,{enabled:e.events?.focus,visibleOnly:!0}),RL(l,{role:`tooltip`}),AL(l,{enabled:e.opened===void 0})]),y=(0,G.useRef)(d);tj(()=>{y.current!==d&&(y.current=d,e.onPositionChange?.(d))},[d]);let b=r&&h&&h!==a;return{x:s,y:c,arrowX:f,arrowY:p,reference:u.setReference,floating:u.setFloating,getFloatingProps:v,getReferenceProps:_,isGroupPhase:b,opened:r,placement:d}}var TB={position:`top`,refProp:`ref`,withinPortal:!0,arrowSize:4,arrowOffset:5,arrowRadius:0,arrowPosition:`side`,offset:5,transitionProps:{duration:100,transition:`fade`},events:{hover:!0,focus:!1,touch:!1},zIndex:VA(`popover`),middlewares:{flip:!0,shift:!0,inline:!1}},EB=wj((e,{radius:t,color:n,variant:r,autoContrast:i})=>{let a=e.variantColorResolver({theme:e,color:n||e.primaryColor,autoContrast:i,variant:r||`filled`});return{tooltip:{"--tooltip-radius":t===void 0?void 0:WA(t),"--tooltip-bg":n?a.background:void 0,"--tooltip-color":n?a.color:void 0}}}),DB=AN(e=>{let t=FM(`Tooltip`,TB,e),{children:n,position:r,refProp:i,label:a,openDelay:o,closeDelay:s,onPositionChange:c,opened:l,defaultOpened:u,withinPortal:d,radius:f,color:p,classNames:m,styles:h,unstyled:g,style:_,className:v,withArrow:y,arrowSize:b,arrowOffset:x,arrowRadius:S,arrowPosition:C,offset:w,transitionProps:T,multiline:E,events:D,interactive:O,zIndex:k,disabled:A,onClick:j,onMouseEnter:ee,onMouseLeave:M,inline:N,variant:te,keepMounted:P,vars:F,portalProps:I,mod:ne,floatingStrategy:L,middlewares:re,autoContrast:ie,attributes:ae,target:oe,ref:R,...z}=t,{dir:se}=VN(),ce=(0,G.useRef)(null),le=wB({position:rR(se,r),closeDelay:s,openDelay:o,onPositionChange:c,opened:l,defaultOpened:u,events:D,interactive:O,arrowRef:ce,arrowOffset:x,offset:typeof w==`number`?w+(y?b/2:0):w,inline:N,strategy:L,middlewares:re});(0,G.useEffect)(()=>{let e=oe instanceof HTMLElement?oe:typeof oe==`string`?document.querySelector(oe):oe?.current||null;e&&le.reference(e)},[oe,le]);let ue=ZM({name:`Tooltip`,props:t,classes:hB,className:v,style:_,classNames:m,styles:h,unstyled:g,attributes:ae,rootSelector:`tooltip`,vars:F,varsResolver:EB}),de=Cj(n);if(!oe&&!de)throw Error(`[@mantine/core] Tooltip component children should be an element or a component that accepts ref, fragments, strings, numbers and other primitive values are not supported`);let fe=ue(`tooltip`),pe=O&&!A&&!!le.opened,B=C===`merge`&&y?tR({position:le.placement,dir:se}):void 0;if(oe){let e=gR(T,{duration:100,transition:`fade`});return(0,K.jsx)(K.Fragment,{children:(0,K.jsx)(cR,{...I,withinPortal:d,children:(0,K.jsx)(mR,{...e,keepMounted:P,mounted:!A&&!!le.opened,duration:le.isGroupPhase?10:e.duration,children:e=>(0,K.jsxs)(zN,{...z,"data-fixed":L===`fixed`||void 0,variant:te,mod:[{multiline:E,interactive:pe},ne],...fe,...le.getFloatingProps({ref:le.floating,className:fe.className,style:{...fe.style,...e,...B,zIndex:k,top:le.y??0,left:le.x??0}}),children:[a,(0,K.jsx)(nR,{ref:ce,arrowX:le.arrowX,arrowY:le.arrowY,visible:y,position:le.placement,arrowSize:b,arrowOffset:x,arrowRadius:S,arrowPosition:C,...ue(`arrow`)})]})})})})}let me=de.props,V=oj(le.reference,xj(de),R),he=gR(T,{duration:100,transition:`fade`});return(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(cR,{...I,withinPortal:d,children:(0,K.jsx)(mR,{...he,keepMounted:P,mounted:!A&&!!le.opened,duration:le.isGroupPhase?10:he.duration,children:e=>(0,K.jsxs)(zN,{...z,"data-fixed":L===`fixed`||void 0,variant:te,mod:[{multiline:E,interactive:pe},ne],...le.getFloatingProps({ref:le.floating,className:ue(`tooltip`).className,style:{...ue(`tooltip`).style,...e,...B,zIndex:k,top:le.y??0,left:le.x??0}}),children:[a,(0,K.jsx)(nR,{ref:ce,arrowX:le.arrowX,arrowY:le.arrowY,visible:y,position:le.placement,arrowSize:b,arrowOffset:x,arrowRadius:S,arrowPosition:C,...ue(`arrow`)})]})})}),(0,G.cloneElement)(de,le.getReferenceProps({onClick:j,onMouseEnter:ee,onMouseLeave:M,onMouseMove:t.onMouseMove,onPointerDown:t.onPointerDown,onPointerEnter:t.onPointerEnter,...me,className:Ej(v,me.className),[i]:V}))]})});DB.classes=hB,DB.varsResolver=EB,DB.displayName=`@mantine/core/Tooltip`,DB.Floating=vB,DB.Group=xB;var OB={root:`m_cf365364`,indicator:`m_9e182ccd`,label:`m_1738fcb2`,input:`m_1714d588`,control:`m_69686b9b`,innerLabel:`m_78882f40`},kB={withItemsBorders:!0},AB=wj((e,{radius:t,color:n,transitionDuration:r,size:i,transitionTimingFunction:a})=>({root:{"--sc-radius":t===void 0?void 0:WA(t),"--sc-color":n?Wj(n,e):void 0,"--sc-shadow":n?void 0:`var(--mantine-shadow-xs)`,"--sc-transition-duration":r===void 0?void 0:`${r}ms`,"--sc-transition-timing-function":a,"--sc-padding":HA(i,`sc-padding`),"--sc-font-size":GA(i)}})),jB=jN(e=>{let t=FM(`SegmentedControl`,kB,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,data:c,value:l,defaultValue:u,onChange:d,size:f,name:p,disabled:m,readOnly:h,fullWidth:g,orientation:_,radius:v,color:y,transitionDuration:b,transitionTimingFunction:x,variant:S,autoContrast:C,withItemsBorders:w,mod:T,attributes:E,ref:D,...O}=t,k=ZM({name:`SegmentedControl`,props:t,classes:OB,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:E,vars:s,varsResolver:AB}),A=TM(),j=c.map(e=>Sj(e)?{label:`${e}`,value:e}:e),ee=_j(),[M,N]=(0,G.useState)(YA()),[te,P]=(0,G.useState)(null),[F,I]=(0,G.useState)({}),ne=(e,t)=>{F[t]=e,I(F)},[L,re]=sj({value:l,defaultValue:u,finalValue:Array.isArray(c)?j.find(e=>!e.disabled)?.value??c[0]?.value??null:null,onChange:d}),ie=rj(p),ae=j.map(e=>(0,G.createElement)(zN,{...k(`control`),mod:{active:L===e.value,orientation:_},key:`${e.value}`},(0,G.createElement)(`input`,{...k(`input`),disabled:m||e.disabled,type:`radio`,name:ie,value:`${e.value}`,id:`${ie}-${e.value}`,checked:L===e.value,onChange:()=>!h&&re(e.value),"data-focus-ring":A.focusRing,key:`${e.value}-input`}),(0,G.createElement)(zN,{component:`label`,...k(`label`),mod:{active:L===e.value&&!(m||e.disabled),disabled:m||e.disabled,"read-only":h},htmlFor:`${ie}-${e.value}`,ref:t=>ne(t,`${e.value}`),__vars:{"--sc-label-color":y===void 0?void 0:Zj({color:y,theme:A,autoContrast:C})},key:`${e.value}-label`},(0,K.jsx)(`span`,{...k(`innerLabel`),children:e.label})))),oe=oj(D,P);return mj(()=>{N(YA())},[c.length]),c.length===0?null:(0,K.jsxs)(zN,{...k(`root`),variant:S,size:f,ref:oe,mod:[{"full-width":g,orientation:_,initialized:ee,"with-items-borders":w},T],...O,role:`radiogroup`,"data-disabled":m,children:[L!==void 0&&(0,K.jsx)(yz,{target:F[`${L}`],parent:te,component:`span`,transitionDuration:`var(--sc-transition-duration)`,...k(`indicator`)},M),ae]})});jB.classes=OB,jB.varsResolver=AB,jB.displayName=`@mantine/core/SegmentedControl`;var[MB,NB]=zA(`Table component was not found in the tree`),PB={table:`m_b23fa0ef`,th:`m_4e7aa4f3`,tr:`m_4e7aa4fd`,td:`m_4e7aa4ef`,tbody:`m_b2404537`,thead:`m_b242d975`,caption:`m_9e5a3ac7`,scrollContainer:`m_a100c15`,scrollContainerInner:`m_62259741`};function FB(e,t){if(!t)return;let n={};return t.columnBorder&&e.withColumnBorders&&(n[`data-with-column-border`]=!0),t.rowBorder&&e.withRowBorders&&(n[`data-with-row-border`]=!0),t.striped&&e.striped&&(n[`data-striped`]=e.striped),t.highlightOnHover&&e.highlightOnHover&&(n[`data-hover`]=!0),t.captionSide&&e.captionSide&&(n[`data-side`]=e.captionSide),t.stickyHeader&&e.stickyHeader&&(n[`data-sticky`]=!0),n}function IB(e,t){let n=`Table${e.charAt(0).toUpperCase()}${e.slice(1)}`,r=AN(r=>{let i=FM(n,{},r),{classNames:a,className:o,style:s,styles:c,...l}=i,u=NB();return(0,K.jsx)(zN,{component:e,...FB(u,t),...u.getStyles(e,{className:o,classNames:a,style:s,styles:c,props:i}),...l})});return r.displayName=`@mantine/core/${n}`,r.classes=PB,r}var LB=IB(`th`,{columnBorder:!0}),RB=IB(`td`,{columnBorder:!0}),zB=IB(`tr`,{rowBorder:!0,striped:!0,highlightOnHover:!0}),BB=IB(`thead`,{stickyHeader:!0}),VB=IB(`tbody`),HB=IB(`tfoot`),UB=IB(`caption`,{captionSide:!0}),WB={type:`scrollarea`},GB=wj((e,{minWidth:t,maxHeight:n,type:r})=>({scrollContainer:{"--table-min-width":W(t),"--table-max-height":W(n),"--table-overflow":r===`native`?`auto`:void 0}})),KB=AN(e=>{let t=FM(`TableScrollContainer`,WB,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,children:c,minWidth:l,maxHeight:u,type:d,scrollAreaProps:f,attributes:p,...m}=t,h=ZM({name:`TableScrollContainer`,classes:PB,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:p,vars:s,varsResolver:GB,rootSelector:`scrollContainer`});return(0,K.jsx)(zN,{component:d===`scrollarea`?UL:`div`,...d===`scrollarea`?u?{offsetScrollbars:`xy`,...f}:{offsetScrollbars:`x`,...f}:{},...h(`scrollContainer`),...m,children:(0,K.jsx)(`div`,{...h(`scrollContainerInner`),children:c})})});KB.classes=PB,KB.varsResolver=GB,KB.displayName=`@mantine/core/TableScrollContainer`;function qB({data:e}){return(0,K.jsxs)(K.Fragment,{children:[e.caption&&(0,K.jsx)(UB,{children:e.caption}),e.head&&(0,K.jsx)(BB,{children:(0,K.jsx)(zB,{children:e.head.map((e,t)=>(0,K.jsx)(LB,{children:e},t))})}),e.body&&(0,K.jsx)(VB,{children:e.body.map((e,t)=>(0,K.jsx)(zB,{children:e.map((e,t)=>(0,K.jsx)(RB,{children:e},t))},t))}),e.foot&&(0,K.jsx)(HB,{children:(0,K.jsx)(zB,{children:e.foot.map((e,t)=>(0,K.jsx)(LB,{children:e},t))})})]})}qB.displayName=`@mantine/core/TableDataRenderer`;var JB={withRowBorders:!0,verticalSpacing:7},YB=wj((e,{layout:t,captionSide:n,horizontalSpacing:r,verticalSpacing:i,borderColor:a,stripedColor:o,highlightOnHoverColor:s,striped:c,highlightOnHover:l,stickyHeaderOffset:u,stickyHeader:d})=>({table:{"--table-layout":t,"--table-caption-side":n,"--table-horizontal-spacing":UA(r),"--table-vertical-spacing":UA(i),"--table-border-color":a?Wj(a,e):void 0,"--table-striped-color":c&&o?Wj(o,e):void 0,"--table-highlight-on-hover-color":l&&s?Wj(s,e):void 0,"--table-sticky-header-offset":d?W(u):void 0}})),XB=AN(e=>{let t=FM(`Table`,JB,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,horizontalSpacing:c,verticalSpacing:l,captionSide:u,stripedColor:d,highlightOnHoverColor:f,striped:p,highlightOnHover:m,withColumnBorders:h,withRowBorders:g,withTableBorder:_,borderColor:v,layout:y,data:b,children:x,stickyHeader:S,stickyHeaderOffset:C,mod:w,tabularNums:T,attributes:E,...D}=t,O=ZM({name:`Table`,props:t,className:r,style:i,classes:PB,classNames:n,styles:a,unstyled:o,attributes:E,rootSelector:`table`,vars:s,varsResolver:YB});return(0,K.jsx)(MB,{value:{getStyles:O,stickyHeader:S,striped:p===!0?`odd`:p||void 0,highlightOnHover:m,withColumnBorders:h,withRowBorders:g,captionSide:u||`bottom`},children:(0,K.jsx)(zN,{component:`table`,mod:[{"data-with-table-border":_,"data-tabular-nums":T},w],...O(`table`),...D,children:x||!!b&&(0,K.jsx)(qB,{data:b})})})});XB.classes=PB,XB.varsResolver=YB,XB.displayName=`@mantine/core/Table`,XB.Td=RB,XB.Th=LB,XB.Tr=zB,XB.Thead=BB,XB.Tbody=VB,XB.Tfoot=HB,XB.Caption=UB,XB.ScrollContainer=KB,XB.DataRenderer=qB;var ZB=AN(e=>(0,K.jsx)(mz,{component:`input`,...FM([`Input`,`InputWrapper`,`TextInput`],null,e),__staticSelector:`TextInput`}));ZB.classes=mz.classes,ZB.displayName=`@mantine/core/TextInput`;var QB={root:`m_7341320d`},$B=wj((e,{size:t,radius:n,variant:r,gradient:i,color:a,autoContrast:o})=>{let s=e.variantColorResolver({color:a||e.primaryColor,theme:e,gradient:i,variant:r||`filled`,autoContrast:o});return{root:{"--ti-size":HA(t,`ti-size`),"--ti-radius":n===void 0?void 0:WA(n),"--ti-bg":a||r?s.background:void 0,"--ti-color":a||r?s.color:void 0,"--ti-bd":a||r?s.border:void 0}}}),eV=AN(e=>{let t=FM(`ThemeIcon`,null,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,autoContrast:c,attributes:l,...u}=t;return(0,K.jsx)(zN,{...ZM({name:`ThemeIcon`,classes:QB,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:l,vars:s,varsResolver:$B})(`root`),...u})});eV.classes=QB,eV.varsResolver=$B,eV.displayName=`@mantine/core/ThemeIcon`;var tV=[`h1`,`h2`,`h3`,`h4`,`h5`,`h6`],nV=[`xs`,`sm`,`md`,`lg`,`xl`];function rV(e,t){let n=t===void 0?`h${e}`:t;return tV.includes(n)?{fontSize:`var(--mantine-${n}-font-size)`,fontWeight:`var(--mantine-${n}-font-weight)`,lineHeight:`var(--mantine-${n}-line-height)`}:nV.includes(n)?{fontSize:`var(--mantine-font-size-${n})`,fontWeight:`var(--mantine-h${e}-font-weight)`,lineHeight:`var(--mantine-h${e}-line-height)`}:{fontSize:W(n),fontWeight:`var(--mantine-h${e}-font-weight)`,lineHeight:`var(--mantine-h${e}-line-height)`}}var iV={root:`m_8a5d1357`},aV={order:1},oV=wj((e,{order:t,size:n,lineClamp:r,textWrap:i})=>{let a=rV(t||1,n);return{root:{"--title-fw":a.fontWeight,"--title-lh":a.lineHeight,"--title-fz":a.fontSize,"--title-line-clamp":typeof r==`number`?r.toString():void 0,"--title-text-wrap":i}}}),sV=AN(e=>{let t=FM(`Title`,aV,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,order:s,vars:c,size:l,variant:u,lineClamp:d,textWrap:f,mod:p,attributes:m,...h}=t,g=ZM({name:`Title`,props:t,classes:iV,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:m,vars:c,varsResolver:oV});return[1,2,3,4,5,6].includes(s)?(0,K.jsx)(zN,{...g(`root`),component:`h${s}`,variant:u,mod:[{order:s,"data-line-clamp":typeof d==`number`},p],size:l,...h}):null});sV.classes=iV,sV.varsResolver=oV,sV.displayName=`@mantine/core/Title`;var cV=new Map([[`bold`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M244,56v48a12,12,0,0,1-12,12H184a12,12,0,1,1,0-24H201.1l-19-17.38c-.13-.12-.26-.24-.38-.37A76,76,0,1,0,127,204h1a75.53,75.53,0,0,0,52.15-20.72,12,12,0,0,1,16.49,17.45A99.45,99.45,0,0,1,128,228h-1.37A100,100,0,1,1,198.51,57.06L220,76.72V56a12,12,0,0,1,24,0Z`}))],[`duotone`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M216,128a88,88,0,1,1-88-88A88,88,0,0,1,216,128Z`,opacity:`0.2`}),G.createElement(`path`,{d:`M240,56v48a8,8,0,0,1-8,8H184a8,8,0,0,1,0-16H211.4L184.81,71.64l-.25-.24a80,80,0,1,0-1.67,114.78,8,8,0,0,1,11,11.63A95.44,95.44,0,0,1,128,224h-1.32A96,96,0,1,1,195.75,60L224,85.8V56a8,8,0,1,1,16,0Z`}))],[`fill`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M240,56v48a8,8,0,0,1-8,8H184a8,8,0,0,1-5.66-13.66l17-17-10.55-9.65-.25-.24a80,80,0,1,0-1.67,114.78,8,8,0,1,1,11,11.63A95.44,95.44,0,0,1,128,224h-1.32A96,96,0,1,1,195.75,60l10.93,10L226.34,50.3A8,8,0,0,1,240,56Z`}))],[`light`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M238,56v48a6,6,0,0,1-6,6H184a6,6,0,0,1,0-12h32.55l-30.38-27.8c-.06-.06-.12-.13-.19-.19a82,82,0,1,0-1.7,117.65,6,6,0,0,1,8.24,8.73A93.46,93.46,0,0,1,128,222h-1.28A94,94,0,1,1,194.37,61.4L226,90.35V56a6,6,0,1,1,12,0Z`}))],[`regular`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M240,56v48a8,8,0,0,1-8,8H184a8,8,0,0,1,0-16H211.4L184.81,71.64l-.25-.24a80,80,0,1,0-1.67,114.78,8,8,0,0,1,11,11.63A95.44,95.44,0,0,1,128,224h-1.32A96,96,0,1,1,195.75,60L224,85.8V56a8,8,0,1,1,16,0Z`}))],[`thin`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M236,56v48a4,4,0,0,1-4,4H184a4,4,0,0,1,0-8h37.7L187.53,68.69l-.13-.12a84,84,0,1,0-1.75,120.51,4,4,0,0,1,5.5,5.82A91.43,91.43,0,0,1,128,220h-1.26A92,92,0,1,1,193,62.84l35,32.05V56a4,4,0,1,1,8,0Z`}))]]),lV=new Map([[`bold`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M228,104a12,12,0,0,1-24,0V69l-59.51,59.51a12,12,0,0,1-17-17L187,52H152a12,12,0,0,1,0-24h64a12,12,0,0,1,12,12Zm-44,24a12,12,0,0,0-12,12v64H52V84h64a12,12,0,0,0,0-24H48A20,20,0,0,0,28,80V208a20,20,0,0,0,20,20H176a20,20,0,0,0,20-20V140A12,12,0,0,0,184,128Z`}))],[`duotone`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M184,80V208a8,8,0,0,1-8,8H48a8,8,0,0,1-8-8V80a8,8,0,0,1,8-8H176A8,8,0,0,1,184,80Z`,opacity:`0.2`}),G.createElement(`path`,{d:`M224,104a8,8,0,0,1-16,0V59.32l-66.33,66.34a8,8,0,0,1-11.32-11.32L196.68,48H152a8,8,0,0,1,0-16h64a8,8,0,0,1,8,8Zm-40,24a8,8,0,0,0-8,8v72H48V80h72a8,8,0,0,0,0-16H48A16,16,0,0,0,32,80V208a16,16,0,0,0,16,16H176a16,16,0,0,0,16-16V136A8,8,0,0,0,184,128Z`}))],[`fill`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M192,136v72a16,16,0,0,1-16,16H48a16,16,0,0,1-16-16V80A16,16,0,0,1,48,64h72a8,8,0,0,1,0,16H48V208H176V136a8,8,0,0,1,16,0Zm32-96a8,8,0,0,0-8-8H152a8,8,0,0,0-5.66,13.66L172.69,72l-42.35,42.34a8,8,0,0,0,11.32,11.32L184,83.31l26.34,26.35A8,8,0,0,0,224,104Z`}))],[`light`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M222,104a6,6,0,0,1-12,0V54.49l-69.75,69.75a6,6,0,0,1-8.48-8.48L201.51,46H152a6,6,0,0,1,0-12h64a6,6,0,0,1,6,6Zm-38,26a6,6,0,0,0-6,6v72a2,2,0,0,1-2,2H48a2,2,0,0,1-2-2V80a2,2,0,0,1,2-2h72a6,6,0,0,0,0-12H48A14,14,0,0,0,34,80V208a14,14,0,0,0,14,14H176a14,14,0,0,0,14-14V136A6,6,0,0,0,184,130Z`}))],[`regular`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M224,104a8,8,0,0,1-16,0V59.32l-66.33,66.34a8,8,0,0,1-11.32-11.32L196.68,48H152a8,8,0,0,1,0-16h64a8,8,0,0,1,8,8Zm-40,24a8,8,0,0,0-8,8v72H48V80h72a8,8,0,0,0,0-16H48A16,16,0,0,0,32,80V208a16,16,0,0,0,16,16H176a16,16,0,0,0,16-16V136A8,8,0,0,0,184,128Z`}))],[`thin`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M220,104a4,4,0,0,1-8,0V49.66l-73.16,73.17a4,4,0,0,1-5.66-5.66L206.34,44H152a4,4,0,0,1,0-8h64a4,4,0,0,1,4,4Zm-36,28a4,4,0,0,0-4,4v72a4,4,0,0,1-4,4H48a4,4,0,0,1-4-4V80a4,4,0,0,1,4-4h72a4,4,0,0,0,0-8H48A12,12,0,0,0,36,80V208a12,12,0,0,0,12,12H176a12,12,0,0,0,12-12V136A4,4,0,0,0,184,132Z`}))]]),uV=new Map([[`bold`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M28,64A12,12,0,0,1,40,52H216a12,12,0,0,1,0,24H40A12,12,0,0,1,28,64Zm12,76h64a12,12,0,0,0,0-24H40a12,12,0,0,0,0,24Zm80,40H40a12,12,0,0,0,0,24h80a12,12,0,0,0,0-24Zm120.49,20.49a12,12,0,0,1-17,0l-18.08-18.08a44,44,0,1,1,17-17l18.08,18.07A12,12,0,0,1,240.49,200.49ZM184,164a20,20,0,1,0-20-20A20,20,0,0,0,184,164Z`}))],[`duotone`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M216,144a32,32,0,1,1-32-32A32,32,0,0,1,216,144Z`,opacity:`0.2`}),G.createElement(`path`,{d:`M32,64a8,8,0,0,1,8-8H216a8,8,0,0,1,0,16H40A8,8,0,0,1,32,64Zm8,72h72a8,8,0,0,0,0-16H40a8,8,0,0,0,0,16Zm88,48H40a8,8,0,0,0,0,16h88a8,8,0,0,0,0-16Zm109.66,13.66a8,8,0,0,1-11.32,0L206,177.36A40,40,0,1,1,217.36,166l20.3,20.3A8,8,0,0,1,237.66,197.66ZM184,168a24,24,0,1,0-24-24A24,24,0,0,0,184,168Z`}))],[`fill`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M32,64a8,8,0,0,1,8-8H216a8,8,0,0,1,0,16H40A8,8,0,0,1,32,64Zm8,72h72a8,8,0,0,0,0-16H40a8,8,0,0,0,0,16Zm88,48H40a8,8,0,0,0,0,16h88a8,8,0,0,0,0-16Zm109.66,2.34L217.36,166A40,40,0,1,0,206,177.36l20.3,20.3a8,8,0,0,0,11.32-11.32Z`}))],[`light`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M34,64a6,6,0,0,1,6-6H216a6,6,0,0,1,0,12H40A6,6,0,0,1,34,64Zm6,70h72a6,6,0,0,0,0-12H40a6,6,0,0,0,0,12Zm88,52H40a6,6,0,0,0,0,12h88a6,6,0,0,0,0-12Zm108.24,10.24a6,6,0,0,1-8.48,0l-21.49-21.48a38.06,38.06,0,1,1,8.49-8.49l21.48,21.49A6,6,0,0,1,236.24,196.24ZM184,170a26,26,0,1,0-26-26A26,26,0,0,0,184,170Z`}))],[`regular`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M32,64a8,8,0,0,1,8-8H216a8,8,0,0,1,0,16H40A8,8,0,0,1,32,64Zm8,72h72a8,8,0,0,0,0-16H40a8,8,0,0,0,0,16Zm88,48H40a8,8,0,0,0,0,16h88a8,8,0,0,0,0-16Zm109.66,13.66a8,8,0,0,1-11.32,0L206,177.36A40,40,0,1,1,217.36,166l20.3,20.3A8,8,0,0,1,237.66,197.66ZM184,168a24,24,0,1,0-24-24A24,24,0,0,0,184,168Z`}))],[`thin`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M36,64a4,4,0,0,1,4-4H216a4,4,0,0,1,0,8H40A4,4,0,0,1,36,64Zm4,68h72a4,4,0,0,0,0-8H40a4,4,0,0,0,0,8Zm88,56H40a4,4,0,0,0,0,8h88a4,4,0,0,0,0-8Zm106.83,6.83a4,4,0,0,1-5.66,0l-22.72-22.72a36.06,36.06,0,1,1,5.66-5.66l22.72,22.72A4,4,0,0,1,234.83,194.83ZM184,172a28,28,0,1,0-28-28A28,28,0,0,0,184,172Z`}))]]),dV=new Map([[`bold`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M232.49,215.51,185,168a92.12,92.12,0,1,0-17,17l47.53,47.54a12,12,0,0,0,17-17ZM44,112a68,68,0,1,1,68,68A68.07,68.07,0,0,1,44,112Z`}))],[`duotone`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M192,112a80,80,0,1,1-80-80A80,80,0,0,1,192,112Z`,opacity:`0.2`}),G.createElement(`path`,{d:`M229.66,218.34,179.6,168.28a88.21,88.21,0,1,0-11.32,11.31l50.06,50.07a8,8,0,0,0,11.32-11.32ZM40,112a72,72,0,1,1,72,72A72.08,72.08,0,0,1,40,112Z`}))],[`fill`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M168,112a56,56,0,1,1-56-56A56,56,0,0,1,168,112Zm61.66,117.66a8,8,0,0,1-11.32,0l-50.06-50.07a88,88,0,1,1,11.32-11.31l50.06,50.06A8,8,0,0,1,229.66,229.66ZM112,184a72,72,0,1,0-72-72A72.08,72.08,0,0,0,112,184Z`}))],[`light`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M228.24,219.76l-51.38-51.38a86.15,86.15,0,1,0-8.48,8.48l51.38,51.38a6,6,0,0,0,8.48-8.48ZM38,112a74,74,0,1,1,74,74A74.09,74.09,0,0,1,38,112Z`}))],[`regular`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M229.66,218.34l-50.07-50.06a88.11,88.11,0,1,0-11.31,11.31l50.06,50.07a8,8,0,0,0,11.32-11.32ZM40,112a72,72,0,1,1,72,72A72.08,72.08,0,0,1,40,112Z`}))],[`thin`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M226.83,221.17l-52.7-52.7a84.1,84.1,0,1,0-5.66,5.66l52.7,52.7a4,4,0,0,0,5.66-5.66ZM36,112a76,76,0,1,1,76,76A76.08,76.08,0,0,1,36,112Z`}))]]),fV=(0,G.createContext)({color:`currentColor`,size:`1em`,weight:`regular`,mirrored:!1}),pV=G.forwardRef((e,t)=>{let{alt:n,color:r,size:i,weight:a,mirrored:o,children:s,weights:c,...l}=e,{color:u=`currentColor`,size:d,weight:f=`regular`,mirrored:p=!1,...m}=G.useContext(fV);return G.createElement(`svg`,{ref:t,xmlns:`http://www.w3.org/2000/svg`,width:i??d,height:i??d,fill:r??u,viewBox:`0 0 256 256`,transform:o||p?`scale(-1, 1)`:void 0,...m,...l},!!n&&G.createElement(`title`,null,n),s,c.get(a??f))});pV.displayName=`IconBase`;var mV=G.forwardRef((e,t)=>G.createElement(pV,{ref:t,...e,weights:cV}));mV.displayName=`ArrowClockwiseIcon`;var hV=mV,gV=G.forwardRef((e,t)=>G.createElement(pV,{ref:t,...e,weights:lV}));gV.displayName=`ArrowSquareOutIcon`;var _V=gV,vV=G.forwardRef((e,t)=>G.createElement(pV,{ref:t,...e,weights:uV}));vV.displayName=`ListMagnifyingGlassIcon`;var yV=vV,bV=G.forwardRef((e,t)=>G.createElement(pV,{ref:t,...e,weights:dV}));bV.displayName=`MagnifyingGlassIcon`;var xV=bV,SV=s((e=>{function t(e,t){var n=e.length;e.push(t);a:for(;0>>1,a=e[r];if(0>>1;ri(c,n))li(u,c)?(e[r]=u,e[l]=n,r=l):(e[r]=c,e[s]=n,r=s);else if(li(u,n))e[r]=u,e[l]=n,r=l;else break a}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return n===0?e.id-t.id:n}if(e.unstable_now=void 0,typeof performance==`object`&&typeof performance.now==`function`){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var c=[],l=[],u=1,d=null,f=3,p=!1,m=!1,h=!1,g=!1,_=typeof setTimeout==`function`?setTimeout:null,v=typeof clearTimeout==`function`?clearTimeout:null,y=typeof setImmediate<`u`?setImmediate:null;function b(e){for(var i=n(l);i!==null;){if(i.callback===null)r(l);else if(i.startTime<=e)r(l),i.sortIndex=i.expirationTime,t(c,i);else break;i=n(l)}}function x(e){if(h=!1,b(e),!m)if(n(c)!==null)m=!0,S||(S=!0,O());else{var t=n(l);t!==null&&j(x,t.startTime-e)}}var S=!1,C=-1,w=5,T=-1;function E(){return g?!0:!(e.unstable_now()-Tt&&E());){var o=d.callback;if(typeof o==`function`){d.callback=null,f=d.priorityLevel;var s=o(d.expirationTime<=t);if(t=e.unstable_now(),typeof s==`function`){d.callback=s,b(t),i=!0;break b}d===n(c)&&r(c),b(t)}else r(c);d=n(c)}if(d!==null)i=!0;else{var u=n(l);u!==null&&j(x,u.startTime-t),i=!1}}break a}finally{d=null,f=a,p=!1}}}finally{i?O():S=!1}}}var O;if(typeof y==`function`)O=function(){y(D)};else if(typeof MessageChannel<`u`){var k=new MessageChannel,A=k.port2;k.port1.onmessage=D,O=function(){A.postMessage(null)}}else O=function(){_(D,0)};function j(t,n){C=_(function(){t(e.unstable_now())},n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_forceFrameRate=function(e){0>e||125o?(r.sortIndex=a,t(l,r),n(c)===null&&r===n(l)&&(h?(v(C),C=-1):h=!0,j(x,a-o))):(r.sortIndex=s,t(c,r),m||p||(m=!0,S||(S=!0,O()))),r},e.unstable_shouldYield=E,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}})),CV=s(((e,t)=>{t.exports=SV()})),wV=s((e=>{var t=CV(),n=LA(),r=yj();function i(e){var t=`https://react.dev/errors/`+e;if(1F||(e.current=P[F],P[F]=null,F--)}function L(e,t){F++,P[F]=e.current,e.current=t}var re=I(null),ie=I(null),ae=I(null),oe=I(null);function R(e,t){switch(L(ae,t),L(ie,e),L(re,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Yd(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Yd(t),e=Xd(t,e);else switch(e){case`svg`:e=1;break;case`math`:e=2;break;default:e=0}}ne(re),L(re,e)}function z(){ne(re),ne(ie),ne(ae)}function se(e){e.memoizedState!==null&&L(oe,e);var t=re.current,n=Xd(t,e.type);t!==n&&(L(ie,e),L(re,n))}function ce(e){ie.current===e&&(ne(re),ne(ie)),oe.current===e&&(ne(oe),op._currentValue=te)}var le,ue;function de(e){if(le===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);le=t&&t[1]||``,ue=-1)`:-1`)&&(u=u.replace(``,e.displayName)),u}while(1<=r&&0<=i);break}}}finally{fe=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:``)?de(n):``}function B(e,t){switch(e.tag){case 26:case 27:case 5:return de(e.type);case 16:return de(`Lazy`);case 13:return e.child!==t&&t!==null?de(`Suspense Fallback`):de(`Suspense`);case 19:return de(`SuspenseList`);case 0:case 15:return pe(e.type,!1);case 11:return pe(e.type.render,!1);case 1:return pe(e.type,!0);case 31:return de(`Activity`);default:return``}}function me(e){try{var t=``,n=null;do t+=B(e,n),n=e,e=e.return;while(e);return t}catch(e){return` Error generating stack: `+e.message+` `+e.stack}}var V=Object.prototype.hasOwnProperty,he=t.unstable_scheduleCallback,ge=t.unstable_cancelCallback,H=t.unstable_shouldYield,_e=t.unstable_requestPaint,ve=t.unstable_now,ye=t.unstable_getCurrentPriorityLevel,be=t.unstable_ImmediatePriority,xe=t.unstable_UserBlockingPriority,Se=t.unstable_NormalPriority,Ce=t.unstable_LowPriority,we=t.unstable_IdlePriority,Te=t.log,Ee=t.unstable_setDisableYieldValue,De=null,Oe=null;function ke(e){if(typeof Te==`function`&&Ee(e),Oe&&typeof Oe.setStrictMode==`function`)try{Oe.setStrictMode(De,e)}catch{}}var Ae=Math.clz32?Math.clz32:Ne,je=Math.log,Me=Math.LN2;function Ne(e){return e>>>=0,e===0?32:31-(je(e)/Me|0)|0}var Pe=256,Fe=262144,Ie=4194304;function Le(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Re(e,t,n){var r=e.pendingLanes;if(r===0)return 0;var i=0,a=e.suspendedLanes,o=e.pingedLanes;e=e.warmLanes;var s=r&134217727;return s===0?(s=r&~a,s===0?o===0?n||(n=r&~e,n!==0&&(i=Le(n))):i=Le(o):i=Le(s)):(r=s&~a,r===0?(o&=s,o===0?n||(n=s&~e,n!==0&&(i=Le(n))):i=Le(o)):i=Le(r)),i===0?0:t!==0&&t!==i&&(t&a)===0&&(a=i&-i,n=t&-t,a>=n||a===32&&n&4194048)?t:i}function ze(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Be(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Ve(){var e=Ie;return Ie<<=1,!(Ie&62914560)&&(Ie=4194304),e}function He(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Ue(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function We(e,t,n,r,i,a){var o=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var s=e.entanglements,c=e.expirationTimes,l=e.hiddenUpdates;for(n=o&~n;0`u`||window.document===void 0||window.document.createElement===void 0),nn=!1;if(tn)try{var rn={};Object.defineProperty(rn,"passive",{get:function(){nn=!0}}),window.addEventListener(`test`,rn,rn),window.removeEventListener(`test`,rn,rn)}catch{nn=!1}var an=null,on=null,sn=null;function cn(){if(sn)return sn;var e,t=on,n=t.length,r,i=`value`in an?an.value:an.textContent,a=i.length;for(e=0;e=Bn),Un=` `,Wn=!1;function Gn(e,t){switch(e){case`keyup`:return Rn.indexOf(t.keyCode)!==-1;case`keydown`:return t.keyCode!==229;case`keypress`:case`mousedown`:case`focusout`:return!0;default:return!1}}function Kn(e){return e=e.detail,typeof e==`object`&&`data`in e?e.data:null}var qn=!1;function Jn(e,t){switch(e){case`compositionend`:return Kn(t);case`keypress`:return t.which===32?(Wn=!0,Un):null;case`textInput`:return e=t.data,e===Un&&Wn?null:e;default:return null}}function Yn(e,t){if(qn)return e===`compositionend`||!zn&&Gn(e,t)?(e=cn(),sn=on=an=null,qn=!1,e):null;switch(e){case`paste`:return null;case`keypress`:if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}a:{for(;n;){if(n.nextSibling){n=n.nextSibling;break a}n=n.parentNode}n=void 0}n=_r(n)}}function yr(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?yr(e,t.parentNode):`contains`in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function br(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=kt(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href==`string`}catch{n=!1}if(n)e=t.contentWindow;else break;t=kt(e.document)}return t}function xr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t===`input`&&(e.type===`text`||e.type===`search`||e.type===`tel`||e.type===`url`||e.type===`password`)||t===`textarea`||e.contentEditable===`true`)}var Sr=tn&&`documentMode`in document&&11>=document.documentMode,Cr=null,wr=null,Tr=null,Er=!1;function Dr(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Er||Cr==null||Cr!==kt(r)||(r=Cr,`selectionStart`in r&&xr(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Tr&&gr(Tr,r)||(Tr=r,r=Nd(wr,`onSelect`),0>=o,i-=o,yi=1<<32-Ae(t)+i|n<m?(h=d,d=null):h=d.sibling;var g=p(i,d,s[m],c);if(g===null){d===null&&(d=h);break}e&&d&&g.alternate===null&&t(i,d),a=o(g,a,m),u===null?l=g:u.sibling=g,u=g,d=h}if(m===s.length)return n(i,d),Oi&&xi(i,m),l;if(d===null){for(;mh?(g=m,m=null):g=m.sibling;var y=p(a,m,v.value,l);if(y===null){m===null&&(m=g);break}e&&m&&y.alternate===null&&t(a,m),s=o(y,s,h),d===null?u=y:d.sibling=y,d=y,m=g}if(v.done)return n(a,m),Oi&&xi(a,h),u;if(m===null){for(;!v.done;h++,v=c.next())v=f(a,v.value,l),v!==null&&(s=o(v,s,h),d===null?u=v:d.sibling=v,d=v);return Oi&&xi(a,h),u}for(m=r(m);!v.done;h++,v=c.next())v=_(m,a,h,v.value,l),v!==null&&(e&&v.alternate!==null&&m.delete(v.key===null?h:v.key),s=o(v,s,h),d===null?u=v:d.sibling=v,d=v);return e&&m.forEach(function(e){return t(a,e)}),Oi&&xi(a,h),u}function x(e,r,o,c){if(typeof o==`object`&&o&&o.type===g&&o.key===null&&(o=o.props.children),typeof o==`object`&&o){switch(o.$$typeof){case m:a:{for(var l=o.key;r!==null;){if(r.key===l){if(l=o.type,l===g){if(r.tag===7){n(e,r.sibling),c=a(r,o.props.children),c.return=e,e=c;break a}}else if(r.elementType===l||typeof l==`object`&&l&&l.$$typeof===T&&Sa(l)===r.type){n(e,r.sibling),c=a(r,o.props),ka(c,o),c.return=e,e=c;break a}n(e,r);break}t(e,r),r=r.sibling}o.type===g?(c=oi(o.props.children,e.mode,c,o.key),c.return=e,e=c):(c=ai(o.type,o.key,o.props,null,e.mode,c),ka(c,o),c.return=e,e=c)}return s(e);case h:a:{for(l=o.key;r!==null;){if(r.key===l)if(r.tag===4&&r.stateNode.containerInfo===o.containerInfo&&r.stateNode.implementation===o.implementation){n(e,r.sibling),c=a(r,o.children||[]),c.return=e,e=c;break a}else{n(e,r);break}t(e,r),r=r.sibling}c=li(o,e.mode,c),c.return=e,e=c}return s(e);case T:return o=Sa(o),x(e,r,o,c)}if(ee(o))return v(e,r,o,c);if(k(o)){if(l=k(o),typeof l!=`function`)throw Error(i(150));return o=l.call(o),y(e,r,o,c)}if(typeof o.then==`function`)return x(e,r,Oa(o),c);if(o.$$typeof===b)return x(e,r,Xi(e,o),c);Aa(e,o)}return typeof o==`string`&&o!==``||typeof o==`number`||typeof o==`bigint`?(o=``+o,r!==null&&r.tag===6?(n(e,r.sibling),c=a(r,o),c.return=e,e=c):(n(e,r),c=si(o,e.mode,c),c.return=e,e=c),s(e)):n(e,r)}return function(e,t,n,r){try{Da=0;var i=x(e,t,n,r);return Ea=null,i}catch(t){if(t===ga||t===va)throw t;var a=ti(29,t,null,e.mode);return a.lanes=r,a.return=e,a}}}var Ma=ja(!0),Na=ja(!1),Pa=!1;function Fa(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Ia(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function La(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Ra(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,zl&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,t=Qr(e),Zr(e,null,n),t}return Jr(e,r,t,n),Qr(e)}function za(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,n&4194048)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Ke(e,n)}}function Ba(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var o={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};a===null?i=a=o:a=a.next=o,n=n.next}while(n!==null);a===null?i=a=t:a=a.next=t}else i=a=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,callbacks:r.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var Va=!1;function Ha(){if(Va){var e=sa;if(e!==null)throw e}}function Ua(e,t,n,r){Va=!1;var i=e.updateQueue;Pa=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var c=s,l=c.next;c.next=null,o===null?a=l:o.next=l,o=c;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==o&&(s===null?u.firstBaseUpdate=l:s.next=l,u.lastBaseUpdate=c))}if(a!==null){var d=i.baseState;o=0,u=l=c=null,s=a;do{var p=s.lane&-536870913,m=p!==s.lane;if(m?(Hl&p)===p:(r&p)===p){p!==0&&p===oa&&(Va=!0),u!==null&&(u=u.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});a:{var h=e,g=s;p=t;var _=n;switch(g.tag){case 1:if(h=g.payload,typeof h==`function`){d=h.call(_,d,p);break a}d=h;break a;case 3:h.flags=h.flags&-65537|128;case 0:if(h=g.payload,p=typeof h==`function`?h.call(_,d,p):h,p==null)break a;d=f({},d,p);break a;case 2:Pa=!0}}p=s.callback,p!==null&&(e.flags|=64,m&&(e.flags|=8192),m=i.callbacks,m===null?i.callbacks=[p]:m.push(p))}else m={lane:p,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(l=u=m,c=d):u=u.next=m,o|=p;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;m=s,s=m.next,m.next=null,i.lastBaseUpdate=m,i.shared.pending=null}}while(1);u===null&&(c=d),i.baseState=c,i.firstBaseUpdate=l,i.lastBaseUpdate=u,a===null&&(i.shared.lanes=0),Xl|=o,e.lanes=o,e.memoizedState=d}}function Wa(e,t){if(typeof e!=`function`)throw Error(i(191,e));e.call(t)}function Ga(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;ea?a:8;var o=M.T,s={};M.T=s,Ms(e,!1,t,n);try{var c=i(),l=M.S;l!==null&&l(s,c),typeof c==`object`&&c&&typeof c.then==`function`?js(e,t,ua(c,r),vu(e)):js(e,t,r,vu(e))}catch(n){js(e,t,{then:function(){},status:`rejected`,reason:n},vu())}finally{N.p=a,o!==null&&s.types!==null&&(o.types=s.types),M.T=o}}function xs(){}function Ss(e,t,n,r){if(e.tag!==5)throw Error(i(476));var a=Cs(e).queue;bs(e,a,t,te,n===null?xs:function(){return ws(e),n(r)})}function Cs(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:te,baseState:te,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:No,lastRenderedState:te},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:No,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function ws(e){var t=Cs(e);t.next===null&&(t=e.alternate.memoizedState),js(e,t.next.queue,{},vu())}function Ts(){return Yi(op)}function Es(){return Oo().memoizedState}function Ds(){return Oo().memoizedState}function Os(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=vu();e=La(n);var r=Ra(t,e,n);r!==null&&(bu(r,t,n),za(r,t,n)),t={cache:na()},e.payload=t;return}t=t.return}}function ks(e,t,n){var r=vu();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Ns(e)?Ps(t,n):(n=Yr(e,t,n,r),n!==null&&(bu(n,e,r),Fs(n,t,r)))}function As(e,t,n){js(e,t,n,vu())}function js(e,t,n,r){var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Ns(e))Ps(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,s=a(o,n);if(i.hasEagerState=!0,i.eagerState=s,hr(s,o))return Jr(e,t,i,0),Bl===null&&qr(),!1}catch{}if(n=Yr(e,t,i,r),n!==null)return bu(n,e,r),Fs(n,t,r),!0}return!1}function Ms(e,t,n,r){if(r={lane:2,revertLane:_d(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},Ns(e)){if(t)throw Error(i(479))}else t=Yr(e,n,r,2),t!==null&&bu(t,e,2)}function Ns(e){var t=e.alternate;return e===so||t!==null&&t===so}function Ps(e,t){fo=uo=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Fs(e,t,n){if(n&4194048){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Ke(e,n)}}var Is={readContext:Yi,use:jo,useCallback:vo,useContext:vo,useEffect:vo,useImperativeHandle:vo,useLayoutEffect:vo,useInsertionEffect:vo,useMemo:vo,useReducer:vo,useRef:vo,useState:vo,useDebugValue:vo,useDeferredValue:vo,useTransition:vo,useSyncExternalStore:vo,useId:vo,useHostTransitionStatus:vo,useFormState:vo,useActionState:vo,useOptimistic:vo,useMemoCache:vo,useCacheRefresh:vo};Is.useEffectEvent=vo;var Ls={readContext:Yi,use:jo,useCallback:function(e,t){return Do().memoizedState=[e,t===void 0?null:t],e},useContext:Yi,useEffect:ss,useImperativeHandle:function(e,t,n){n=n==null?null:n.concat([e]),as(4194308,4,ps.bind(null,t,e),n)},useLayoutEffect:function(e,t){return as(4194308,4,e,t)},useInsertionEffect:function(e,t){as(4,2,e,t)},useMemo:function(e,t){var n=Do();t=t===void 0?null:t;var r=e();if(po){ke(!0);try{e()}finally{ke(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=Do();if(n!==void 0){var i=n(t);if(po){ke(!0);try{n(t)}finally{ke(!1)}}}else i=t;return r.memoizedState=r.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},r.queue=e,e=e.dispatch=ks.bind(null,so,e),[r.memoizedState,e]},useRef:function(e){var t=Do();return e={current:e},t.memoizedState=e},useState:function(e){e=Uo(e);var t=e.queue,n=As.bind(null,so,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:hs,useDeferredValue:function(e,t){return vs(Do(),e,t)},useTransition:function(){var e=Uo(!1);return e=bs.bind(null,so,e.queue,!0,!1),Do().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=so,a=Do();if(Oi){if(n===void 0)throw Error(i(407));n=n()}else{if(n=t(),Bl===null)throw Error(i(349));Hl&127||Ro(r,t,n)}a.memoizedState=n;var o={value:n,getSnapshot:t};return a.queue=o,ss(Bo.bind(null,r,o,e),[e]),r.flags|=2048,rs(9,{destroy:void 0},zo.bind(null,r,o,n,t),null),n},useId:function(){var e=Do(),t=Bl.identifierPrefix;if(Oi){var n=bi,r=yi;n=(r&~(1<<32-Ae(r)-1)).toString(32)+n,t=`_`+t+`R_`+n,n=mo++,0<\/script>`,o=o.removeChild(o.firstChild);break;case`select`:o=typeof r.is==`string`?s.createElement(`select`,{is:r.is}):s.createElement(`select`),r.multiple?o.multiple=!0:r.size&&(o.size=r.size);break;default:o=typeof r.is==`string`?s.createElement(a,{is:r.is}):s.createElement(a)}}o[$e]=t,o[et]=r;a:for(s=t.child;s!==null;){if(s.tag===5||s.tag===6)o.appendChild(s.stateNode);else if(s.tag!==4&&s.tag!==27&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===t)break a;for(;s.sibling===null;){if(s.return===null||s.return===t)break a;s=s.return}s.sibling.return=s.return,s=s.sibling}t.stateNode=o;a:switch(Hd(o,a,r),a){case`button`:case`input`:case`select`:case`textarea`:r=!!r.autoFocus;break a;case`img`:r=!0;break a;default:r=!1}r&&jc(t)}}return Ic(t),Mc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&jc(t);else{if(typeof r!=`string`&&t.stateNode===null)throw Error(i(166));if(e=ae.current,Fi(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,a=Ei,a!==null)switch(a.tag){case 27:case 5:r=a.memoizedProps}e[$e]=t,e=!!(e.nodeValue===n||r!==null&&!0===r.suppressHydrationWarning||zd(e.nodeValue,n)),e||Mi(t,!0)}else e=Jd(e).createTextNode(r),e[$e]=t,t.stateNode=e}return Ic(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(r=Fi(t),n!==null){if(e===null){if(!r)throw Error(i(318));if(e=t.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(557));e[$e]=t}else Ii(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Ic(t),e=!1}else n=Li(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(ro(t),t):(ro(t),null);if(t.flags&128)throw Error(i(558))}return Ic(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(a=Fi(t),r!==null&&r.dehydrated!==null){if(e===null){if(!a)throw Error(i(318));if(a=t.memoizedState,a=a===null?null:a.dehydrated,!a)throw Error(i(317));a[$e]=t}else Ii(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Ic(t),a=!1}else a=Li(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),a=!0;if(!a)return t.flags&256?(ro(t),t):(ro(t),null)}return ro(t),t.flags&128?(t.lanes=n,t):(n=r!==null,e=e!==null&&e.memoizedState!==null,n&&(r=t.child,a=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(a=r.alternate.memoizedState.cachePool.pool),o=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(o=r.memoizedState.cachePool.pool),o!==a&&(r.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),Pc(t,t.updateQueue),Ic(t),null);case 4:return z(),e===null&&kd(t.stateNode.containerInfo),Ic(t),null;case 10:return Ui(t.type),Ic(t),null;case 19:if(ne(io),r=t.memoizedState,r===null)return Ic(t),null;if(a=!!(t.flags&128),o=r.rendering,o===null)if(a)Fc(r,!1);else{if(Yl!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=ao(e),o!==null){for(t.flags|=128,Fc(r,!1),e=o.updateQueue,t.updateQueue=e,Pc(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)ii(n,e),n=n.sibling;return L(io,io.current&1|2),Oi&&xi(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&ve()>ou&&(t.flags|=128,a=!0,Fc(r,!1),t.lanes=4194304)}else{if(!a)if(e=ao(o),e!==null){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,Pc(t,e),Fc(r,!0),r.tail===null&&r.tailMode===`hidden`&&!o.alternate&&!Oi)return Ic(t),null}else 2*ve()-r.renderingStartTime>ou&&n!==536870912&&(t.flags|=128,a=!0,Fc(r,!1),t.lanes=4194304);r.isBackwards?(o.sibling=t.child,t.child=o):(e=r.last,e===null?t.child=o:e.sibling=o,r.last=o)}return r.tail===null?(Ic(t),null):(e=r.tail,r.rendering=e,r.tail=e.sibling,r.renderingStartTime=ve(),e.sibling=null,n=io.current,L(io,a?n&1|2:n&1),Oi&&xi(t,r.treeForkCount),e);case 22:case 23:return ro(t),Xa(),r=t.memoizedState!==null,e===null?r&&(t.flags|=8192):e.memoizedState!==null!==r&&(t.flags|=8192),r?n&536870912&&!(t.flags&128)&&(Ic(t),t.subtreeFlags&6&&(t.flags|=8192)):Ic(t),n=t.updateQueue,n!==null&&Pc(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),r=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),e!==null&&ne(fa),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Ui(ta),Ic(t),null;case 25:return null;case 30:return null}throw Error(i(156,t.tag))}function Rc(e,t){switch(wi(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ui(ta),z(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return ce(t),null;case 31:if(t.memoizedState!==null){if(ro(t),t.alternate===null)throw Error(i(340));Ii()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(ro(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(i(340));Ii()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ne(io),null;case 4:return z(),null;case 10:return Ui(t.type),null;case 22:case 23:return ro(t),Xa(),e!==null&&ne(fa),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Ui(ta),null;case 25:return null;default:return null}}function zc(e,t){switch(wi(t),t.tag){case 3:Ui(ta),z();break;case 26:case 27:case 5:ce(t);break;case 4:z();break;case 31:t.memoizedState!==null&&ro(t);break;case 13:ro(t);break;case 19:ne(io);break;case 10:Ui(t.type);break;case 22:case 23:ro(t),Xa(),e!==null&&ne(fa);break;case 24:Ui(ta)}}function Bc(e,t){try{var n=t.updateQueue,r=n===null?null:n.lastEffect;if(r!==null){var i=r.next;n=i;do{if((n.tag&e)===e){r=void 0;var a=n.create,o=n.inst;r=a(),o.destroy=r}n=n.next}while(n!==i)}}catch(e){Xu(t,t.return,e)}}function Vc(e,t,n){try{var r=t.updateQueue,i=r===null?null:r.lastEffect;if(i!==null){var a=i.next;r=a;do{if((r.tag&e)===e){var o=r.inst,s=o.destroy;if(s!==void 0){o.destroy=void 0,i=t;var c=n,l=s;try{l()}catch(e){Xu(i,c,e)}}}r=r.next}while(r!==a)}}catch(e){Xu(t,t.return,e)}}function Hc(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{Ga(t,n)}catch(t){Xu(e,e.return,t)}}}function Uc(e,t,n){n.props=Ws(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(n){Xu(e,t,n)}}function Wc(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;case 30:r=e.stateNode;break;default:r=e.stateNode}typeof n==`function`?e.refCleanup=n(r):n.current=r}}catch(n){Xu(e,t,n)}}function Gc(e,t){var n=e.ref,r=e.refCleanup;if(n!==null)if(typeof r==`function`)try{r()}catch(n){Xu(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n==`function`)try{n(null)}catch(n){Xu(e,t,n)}else n.current=null}function Kc(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{a:switch(t){case`button`:case`input`:case`select`:case`textarea`:n.autoFocus&&r.focus();break a;case`img`:n.src?r.src=n.src:n.srcSet&&(r.srcset=n.srcSet)}}catch(t){Xu(e,e.return,t)}}function qc(e,t,n){try{var r=e.stateNode;Ud(r,e.type,n,t),r[et]=t}catch(t){Xu(e,e.return,t)}}function Jc(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&of(e.type)||e.tag===4}function Yc(e){a:for(;;){for(;e.sibling===null;){if(e.return===null||Jc(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&of(e.type)||e.flags&2||e.child===null||e.tag===4)continue a;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Xc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Kt));else if(r!==4&&(r===27&&of(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(Xc(e,t,n),e=e.sibling;e!==null;)Xc(e,t,n),e=e.sibling}function Zc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(r===27&&of(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(Zc(e,t,n),e=e.sibling;e!==null;)Zc(e,t,n),e=e.sibling}function Qc(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);Hd(t,r,n),t[$e]=e,t[et]=n}catch(t){Xu(e,e.return,t)}}var $c=!1,el=!1,tl=!1,nl=typeof WeakSet==`function`?WeakSet:Set,rl=null;function il(e,t){if(e=e.containerInfo,Kd=hp,e=br(e),xr(e)){if(`selectionStart`in e)var n={start:e.selectionStart,end:e.selectionEnd};else a:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var a=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break a}var s=0,c=-1,l=-1,u=0,d=0,f=e,p=null;b:for(;;){for(var m;f!==n||a!==0&&f.nodeType!==3||(c=s+a),f!==o||r!==0&&f.nodeType!==3||(l=s+r),f.nodeType===3&&(s+=f.nodeValue.length),(m=f.firstChild)!==null;)p=f,f=m;for(;;){if(f===e)break b;if(p===n&&++u===a&&(c=s),p===o&&++d===r&&(l=s),(m=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=m}n=c===-1||l===-1?null:{start:c,end:l}}else n=null}n||={start:0,end:0}}else n=null;for(qd={focusedElem:e,selectionRange:n},hp=!1,rl=t;rl!==null;)if(t=rl,e=t.child,t.subtreeFlags&1028&&e!==null)e.return=t,rl=e;else for(;rl!==null;){switch(t=rl,o=t.alternate,e=t.flags,t.tag){case 0:if(e&4&&(e=t.updateQueue,e=e===null?null:e.events,e!==null))for(n=0;n title`))),Hd(o,r,n),o[$e]=e,ft(o),r=o;break a;case`link`:var s=Yf(`link`,`href`,a).get(r+(n.href||``));if(s){for(var c=0;cg&&(o=g,g=h,h=o);var _=vr(s,h),v=vr(s,g);if(_&&v&&(p.rangeCount!==1||p.anchorNode!==_.node||p.anchorOffset!==_.offset||p.focusNode!==v.node||p.focusOffset!==v.offset)){var y=d.createRange();y.setStart(_.node,_.offset),p.removeAllRanges(),h>g?(p.addRange(y),p.extend(v.node,v.offset)):(y.setEnd(v.node,v.offset),p.addRange(y))}}}}for(d=[],p=s;p=p.parentNode;)p.nodeType===1&&d.push({element:p,left:p.scrollLeft,top:p.scrollTop});for(typeof s.focus==`function`&&s.focus(),s=0;sn?32:n,M.T=null,n=mu,mu=null;var o=uu,s=fu;if(lu=0,du=uu=null,fu=0,zl&6)throw Error(i(331));var c=zl;if(zl|=4,Pl(o.current),El(o,o.current,s,n),zl=c,ud(0,!1),Oe&&typeof Oe.onPostCommitFiberRoot==`function`)try{Oe.onPostCommitFiberRoot(De,o)}catch{}return!0}finally{N.p=a,M.T=r,Ku(e,t)}}function Yu(e,t,n){t=di(n,t),t=Xs(e.stateNode,t,2),e=Ra(e,t,2),e!==null&&(Ue(e,2),ld(e))}function Xu(e,t,n){if(e.tag===3)Yu(e,e,n);else for(;t!==null;){if(t.tag===3){Yu(t,e,n);break}if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(cu===null||!cu.has(r))){e=di(n,e),n=Zs(2),r=Ra(t,n,2),r!==null&&(Qs(n,r,t,e),Ue(r,2),ld(r));break}}t=t.return}}function Zu(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Rl;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(ql=!0,i.add(n),e=Qu.bind(null,e,t,n),t.then(e,e))}function Qu(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Bl===e&&(Hl&n)===n&&(Yl===4||Yl===3&&(Hl&62914560)===Hl&&300>ve()-iu?!(zl&2)&&Du(e,0):Ql|=n,eu===Hl&&(eu=0)),ld(e)}function $u(e,t){t===0&&(t=Ve()),e=Xr(e,t),e!==null&&(Ue(e,t),ld(e))}function ed(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),$u(e,n)}function td(e,t){var n=0;switch(e.tag){case 31:case 13:var r=e.stateNode,a=e.memoizedState;a!==null&&(n=a.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(i(314))}r!==null&&r.delete(t),$u(e,n)}function nd(e,t){return he(e,t)}var rd=null,id=null,ad=!1,od=!1,sd=!1,cd=0;function ld(e){e!==id&&e.next===null&&(id===null?rd=id=e:id=id.next=e),od=!0,ad||(ad=!0,gd())}function ud(e,t){if(!sd&&od){sd=!0;do for(var n=!1,r=rd;r!==null;){if(!t)if(e!==0){var i=r.pendingLanes;if(i===0)var a=0;else{var o=r.suspendedLanes,s=r.pingedLanes;a=(1<<31-Ae(42|e)+1)-1,a&=i&~(o&~s),a=a&201326741?a&201326741|1:a?a|2:0}a!==0&&(n=!0,hd(r,a))}else a=Hl,a=Re(r,r===Bl?a:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),!(a&3)||ze(r,a)||(n=!0,hd(r,a));r=r.next}while(n);sd=!1}}function dd(){fd()}function fd(){od=ad=!1;var e=0;cd!==0&&$d()&&(e=cd);for(var t=ve(),n=null,r=rd;r!==null;){var i=r.next,a=pd(r,t);a===0?(r.next=null,n===null?rd=i:n.next=i,i===null&&(id=n)):(n=r,(e!==0||a&3)&&(od=!0)),r=i}lu!==0&&lu!==5||ud(e,!1),cd!==0&&(cd=0)}function pd(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes&-62914561;0s)break;var u=c.transferSize,d=c.initiatorType;u&&Wd(d)&&(c=c.responseEnd,o+=u*(c`u`?null:document;function kf(e,t,n){var r=Of;if(r&&typeof t==`string`&&t){var i=jt(t);i=`link[rel="`+e+`"][href="`+i+`"]`,typeof n==`string`&&(i+=`[crossorigin="`+n+`"]`),Cf.has(i)||(Cf.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement(`link`),Hd(t,`link`,e),ft(t),r.head.appendChild(t)))}}function Af(e){Tf.D(e),kf(`dns-prefetch`,e,null)}function jf(e,t){Tf.C(e,t),kf(`preconnect`,e,t)}function Mf(e,t,n){Tf.L(e,t,n);var r=Of;if(r&&e&&t){var i=`link[rel="preload"][as="`+jt(t)+`"]`;t===`image`&&n&&n.imageSrcSet?(i+=`[imagesrcset="`+jt(n.imageSrcSet)+`"]`,typeof n.imageSizes==`string`&&(i+=`[imagesizes="`+jt(n.imageSizes)+`"]`)):i+=`[href="`+jt(e)+`"]`;var a=i;switch(t){case`style`:a=Rf(e);break;case`script`:a=Hf(e)}Sf.has(a)||(e=f({rel:`preload`,href:t===`image`&&n&&n.imageSrcSet?void 0:e,as:t},n),Sf.set(a,e),r.querySelector(i)!==null||t===`style`&&r.querySelector(zf(a))||t===`script`&&r.querySelector(Uf(a))||(t=r.createElement(`link`),Hd(t,`link`,e),ft(t),r.head.appendChild(t)))}}function Nf(e,t){Tf.m(e,t);var n=Of;if(n&&e){var r=t&&typeof t.as==`string`?t.as:`script`,i=`link[rel="modulepreload"][as="`+jt(r)+`"][href="`+jt(e)+`"]`,a=i;switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:a=Hf(e)}if(!Sf.has(a)&&(e=f({rel:`modulepreload`,href:e},t),Sf.set(a,e),n.querySelector(i)===null)){switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:if(n.querySelector(Uf(a)))return}r=n.createElement(`link`),Hd(r,`link`,e),ft(r),n.head.appendChild(r)}}}function Pf(e,t,n){Tf.S(e,t,n);var r=Of;if(r&&e){var i=dt(r).hoistableStyles,a=Rf(e);t||=`default`;var o=i.get(a);if(!o){var s={loading:0,preload:null};if(o=r.querySelector(zf(a)))s.loading=5;else{e=f({rel:`stylesheet`,href:e,"data-precedence":t},n),(n=Sf.get(a))&&Kf(e,n);var c=o=r.createElement(`link`);ft(c),Hd(c,`link`,e),c._p=new Promise(function(e,t){c.onload=e,c.onerror=t}),c.addEventListener(`load`,function(){s.loading|=1}),c.addEventListener(`error`,function(){s.loading|=2}),s.loading|=4,Gf(o,t,r)}o={type:`stylesheet`,instance:o,count:1,state:s},i.set(a,o)}}}function Ff(e,t){Tf.X(e,t);var n=Of;if(n&&e){var r=dt(n).hoistableScripts,i=Hf(e),a=r.get(i);a||(a=n.querySelector(Uf(i)),a||(e=f({src:e,async:!0},t),(t=Sf.get(i))&&qf(e,t),a=n.createElement(`script`),ft(a),Hd(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function If(e,t){Tf.M(e,t);var n=Of;if(n&&e){var r=dt(n).hoistableScripts,i=Hf(e),a=r.get(i);a||(a=n.querySelector(Uf(i)),a||(e=f({src:e,async:!0,type:`module`},t),(t=Sf.get(i))&&qf(e,t),a=n.createElement(`script`),ft(a),Hd(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Lf(e,t,n,r){var a=(a=ae.current)?wf(a):null;if(!a)throw Error(i(446));switch(e){case`meta`:case`title`:return null;case`style`:return typeof n.precedence==`string`&&typeof n.href==`string`?(t=Rf(n.href),n=dt(a).hoistableStyles,r=n.get(t),r||(r={type:`style`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};case`link`:if(n.rel===`stylesheet`&&typeof n.href==`string`&&typeof n.precedence==`string`){e=Rf(n.href);var o=dt(a).hoistableStyles,s=o.get(e);if(s||(a=a.ownerDocument||a,s={type:`stylesheet`,instance:null,count:0,state:{loading:0,preload:null}},o.set(e,s),(o=a.querySelector(zf(e)))&&!o._p&&(s.instance=o,s.state.loading=5),Sf.has(e)||(n={rel:`preload`,as:`style`,href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},Sf.set(e,n),o||Vf(a,e,n,s.state))),t&&r===null)throw Error(i(528,``));return s}if(t&&r!==null)throw Error(i(529,``));return null;case`script`:return t=n.async,n=n.src,typeof n==`string`&&t&&typeof t!=`function`&&typeof t!=`symbol`?(t=Hf(n),n=dt(a).hoistableScripts,r=n.get(t),r||(r={type:`script`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};default:throw Error(i(444,e))}}function Rf(e){return`href="`+jt(e)+`"`}function zf(e){return`link[rel="stylesheet"][`+e+`]`}function Bf(e){return f({},e,{"data-precedence":e.precedence,precedence:null})}function Vf(e,t,n,r){e.querySelector(`link[rel="preload"][as="style"][`+t+`]`)?r.loading=1:(t=e.createElement(`link`),r.preload=t,t.addEventListener(`load`,function(){return r.loading|=1}),t.addEventListener(`error`,function(){return r.loading|=2}),Hd(t,`link`,n),ft(t),e.head.appendChild(t))}function Hf(e){return`[src="`+jt(e)+`"]`}function Uf(e){return`script[async]`+e}function Wf(e,t,n){if(t.count++,t.instance===null)switch(t.type){case`style`:var r=e.querySelector(`style[data-href~="`+jt(n.href)+`"]`);if(r)return t.instance=r,ft(r),r;var a=f({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement(`style`),ft(r),Hd(r,`style`,a),Gf(r,n.precedence,e),t.instance=r;case`stylesheet`:a=Rf(n.href);var o=e.querySelector(zf(a));if(o)return t.state.loading|=4,t.instance=o,ft(o),o;r=Bf(n),(a=Sf.get(a))&&Kf(r,a),o=(e.ownerDocument||e).createElement(`link`),ft(o);var s=o;return s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),Hd(o,`link`,r),t.state.loading|=4,Gf(o,n.precedence,e),t.instance=o;case`script`:return o=Hf(n.src),(a=e.querySelector(Uf(o)))?(t.instance=a,ft(a),a):(r=n,(a=Sf.get(o))&&(r=f({},n),qf(r,a)),e=e.ownerDocument||e,a=e.createElement(`script`),ft(a),Hd(a,`link`,r),e.head.appendChild(a),t.instance=a);case`void`:return null;default:throw Error(i(443,t.type))}else t.type===`stylesheet`&&!(t.state.loading&4)&&(r=t.instance,t.state.loading|=4,Gf(r,n.precedence,e));return t.instance}function Gf(e,t,n){for(var r=n.querySelectorAll(`link[rel="stylesheet"][data-precedence],style[data-precedence]`),i=r.length?r[r.length-1]:null,a=i,o=0;o title`):null)}function Zf(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case`meta`:case`title`:return!0;case`style`:if(typeof t.precedence!=`string`||typeof t.href!=`string`||t.href===``)break;return!0;case`link`:if(typeof t.rel!=`string`||typeof t.href!=`string`||t.href===``||t.onLoad||t.onError)break;switch(t.rel){case`stylesheet`:return e=t.disabled,typeof t.precedence==`string`&&e==null;default:return!0}case`script`:if(t.async&&typeof t.async!=`function`&&typeof t.async!=`symbol`&&!t.onLoad&&!t.onError&&t.src&&typeof t.src==`string`)return!0}return!1}function Qf(e){return!(e.type===`stylesheet`&&!(e.state.loading&3))}function $f(e,t,n,r){if(n.type===`stylesheet`&&(typeof r.media!=`string`||!1!==matchMedia(r.media).matches)&&!(n.state.loading&4)){if(n.instance===null){var i=Rf(r.href),a=t.querySelector(zf(i));if(a){t=a._p,typeof t==`object`&&t&&typeof t.then==`function`&&(e.count++,e=np.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=a,ft(a);return}a=t.ownerDocument||t,r=Bf(r),(i=Sf.get(i))&&Kf(r,i),a=a.createElement(`link`),ft(a);var o=a;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),Hd(a,`link`,r),n.instance=a}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&!(n.state.loading&3)&&(e.count++,n=np.bind(e),t.addEventListener(`load`,n),t.addEventListener(`error`,n))}}var ep=0;function tp(e,t){return e.stylesheets&&e.count===0&&ip(e,e.stylesheets),0ep?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}function np(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)ip(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var rp=null;function ip(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,rp=new Map,t.forEach(ap,e),rp=null,np.call(e))}function ap(e,t){if(!(t.state.loading&4)){var n=rp.get(e);if(n)var r=n.get(null);else{n=new Map,rp.set(e,n);for(var i=e.querySelectorAll(`link[data-precedence],style[data-precedence]`),a=0;a{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=AV()}))(),MV=XM({primaryColor:`teal`,defaultRadius:`md`,fontFamily:`Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, Segoe UI, sans-serif`,fontFamilyMonospace:`ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace`,headings:{fontFamily:`inherit`,fontWeight:`650`},cursorType:`pointer`});function NV({dark:e,children:t}){return(0,K.jsx)(JM,{theme:MV,forceColorScheme:e?`dark`:`light`,children:(0,K.jsx)(tR,{withBorder:!0,radius:`lg`,style:{overflow:`hidden`},children:t})})}function PV({eyebrow:e,title:t,summary:n,onRefresh:r,disabled:i}){return(0,K.jsxs)(JR,{justify:`space-between`,align:`flex-start`,wrap:`nowrap`,px:{base:`md`,sm:`lg`},pt:`md`,pb:`sm`,children:[(0,K.jsxs)(QN,{miw:0,children:[(0,K.jsx)(Nz,{c:`dimmed`,size:`xs`,fw:700,tt:`uppercase`,lts:`0.1em`,children:e}),(0,K.jsx)(pV,{order:1,fz:`lg`,mt:2,style:{overflow:`hidden`,textOverflow:`ellipsis`,whiteSpace:`nowrap`},children:t}),n&&(0,K.jsx)(Nz,{c:`dimmed`,size:`sm`,mt:4,children:n})]}),(0,K.jsx)(Gz,{variant:`default`,size:`xs`,leftSection:(0,K.jsx)(xV,{size:15,weight:`bold`}),onClick:()=>void r(),disabled:i,children:`Refresh`})]})}function FV({error:e,loading:t}){return e?(0,K.jsx)(Oz,{color:`red`,m:`md`,children:e}):t?(0,K.jsxs)(qz,{mih:160,p:`xl`,children:[(0,K.jsx)(AR,{size:`sm`}),(0,K.jsx)(Nz,{c:`dimmed`,size:`sm`,ml:`sm`,children:t})]}):null}function IV({icon:e,title:t,children:n,tall:r=!1}){return(0,K.jsx)(qz,{mih:r?220:130,p:`xl`,children:(0,K.jsxs)(JR,{wrap:`nowrap`,children:[(0,K.jsx)(oV,{variant:`light`,size:`xl`,radius:`md`,children:e}),(0,K.jsxs)(QN,{children:[(0,K.jsx)(Nz,{fw:700,size:`sm`,children:t}),(0,K.jsx)(Nz,{c:`dimmed`,size:`xs`,mt:3,children:n})]})]})})}function LV({left:e,right:t}){return(0,K.jsxs)(JR,{justify:`space-between`,px:{base:`md`,sm:`lg`},py:`xs`,style:{borderTop:`1px solid var(--mantine-color-default-border)`},children:[(0,K.jsx)(Nz,{c:`dimmed`,size:`xs`,children:e}),(0,K.jsx)(Nz,{c:`dimmed`,size:`xs`,ta:`right`,children:t})]})}function RV(e,t=8){let[n,r]=(0,G.useState)(1),i=Math.max(1,Math.ceil(e.length/t));(0,G.useEffect)(()=>{n>i&&r(i)},[n,i]);let a=(n-1)*t;return{page:n,setPage:r,totalPages:i,pageItems:e.slice(a,a+t),from:e.length===0?0:a+1,to:Math.min(a+t,e.length),total:e.length}}function zV({page:e,totalPages:t,from:n,to:r,total:i,onChange:a}){return t<=1?null:(0,K.jsxs)(JR,{justify:`space-between`,gap:`sm`,px:{base:`md`,sm:`lg`},py:`xs`,style:{borderTop:`1px solid var(--mantine-color-default-border)`},children:[(0,K.jsxs)(Nz,{c:`dimmed`,size:`xs`,children:[n,`–`,r,` of `,i]}),(0,K.jsx)(yB,{value:e,total:t,onChange:a,size:`xs`,withEdges:!0,"aria-label":`Table pages`})]})}function BV(e){return e?{text:`#c1c9c5`,muted:`#8c9892`,grid:`#303a35`,surface:`#1b211e`,border:`#38443e`}:{text:`#344039`,muted:`#748078`,grid:`#e5e9e6`,surface:`#ffffff`,border:`#d7ddd9`}}var VV=Cc(),HV=P,UV=fe,WV=function(){function e(){this._dragging=!1,this.animationThreshold=15}return e.prototype.render=function(e,t,n,r){var i=t.get(`value`),a=t.get(`status`);if(this._axisModel=e,this._axisPointerModel=t,this._api=n,!(!r&&this._lastValue===i&&this._lastStatus===a)){this._lastValue=i,this._lastStatus=a;var o=this._group,s=this._handle;if(!a||a===`hide`){o&&o.hide(),s&&s.hide();return}o&&o.show(),s&&s.show();var c={};this.makeElOption(c,i,e,t,n);var l=c.graphicKey;l!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=l;var u=this._moveAnimation=this.determineAnimation(e,t);if(!o)o=this._group=new Lu,this.createPointerEl(o,c,e,t),this.createLabelEl(o,c,e,t),n.getZr().add(o);else{var d=pe(GV,t,u);this.updatePointerEl(o,c,d),this.updateLabelEl(o,c,d,t)}YV(o,t,!0),this._renderHandle(i)}},e.prototype.remove=function(e){this.clear(e)},e.prototype.dispose=function(e){this.clear(e)},e.prototype.determineAnimation=function(e,t){var n=t.get(`animation`),r=e.axis,i=r.type===`category`,a=t.get(`snap`);if(!a&&!i)return!1;if(n===`auto`||n==null){var o=this.animationThreshold;if(i&&$b(r).w>o)return!0;if(a){var s=aA(e).seriesDataCount,c=r.getExtent();return Math.abs(c[0]-c[1])/s>o}return!1}return n===!0},e.prototype.makeElOption=function(e,t,n,r,i){},e.prototype.createPointerEl=function(e,t,n,r){var i=t.pointer;if(i){var a=VV(e).pointerEl=new qd[i.type](HV(t.pointer));e.add(a)}},e.prototype.createLabelEl=function(e,t,n,r){if(t.label){var i=VV(e).labelEl=new Jo(HV(t.label));e.add(i),qV(i,r)}},e.prototype.updatePointerEl=function(e,t,n){var r=VV(e).pointerEl;r&&t.pointer&&(r.setStyle(t.pointer.style),n(r,{shape:t.pointer.shape}))},e.prototype.updateLabelEl=function(e,t,n,r){var i=VV(e).labelEl;i&&(i.setStyle(t.label.style),n(i,{x:t.label.x,y:t.label.y}),qV(i,r))},e.prototype._renderHandle=function(e){if(!(this._dragging||!this.updateHandleTransform)){var t=this._axisPointerModel,n=this._api.getZr(),r=this._handle,i=t.getModel(`handle`),a=t.get(`status`);if(!i.get(`show`)||!a||a===`hide`){r&&n.remove(r),this._handle=null;return}var o;this._handle||(o=!0,r=this._handle=yf(i.get(`icon`),{cursor:`move`,draggable:!0,onmousemove:function(e){KC(e.event)},onmousedown:UV(this._onHandleDragMove,this,0,0),drift:UV(this._onHandleDragMove,this),ondragend:UV(this._onHandleDragEnd,this)}),n.add(r)),YV(r,t,!1),r.setStyle(i.getItemStyle(null,[`color`,`borderColor`,`borderWidth`,`opacity`,`shadowColor`,`shadowBlur`,`shadowOffsetX`,`shadowOffsetY`]));var s=i.get(`size`);B(s)||(s=[s,s]),r.scaleX=s[0]/2,r.scaleY=s[1]/2,ZS(this,`_doDispatchAxisPointer`,i.get(`throttle`)||0,`fixRate`),this._moveHandleToValue(e,o)}},e.prototype._moveHandleToValue=function(e,t){GV(this._axisPointerModel,!t&&this._moveAnimation,this._handle,JV(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},e.prototype._onHandleDragMove=function(e,t){var n=this._handle;if(n){this._dragging=!0;var r=this.updateHandleTransform(JV(n),[e,t],this._axisModel,this._axisPointerModel);this._payloadInfo=r,n.stopAnimation(),n.attr(JV(r)),VV(n).lastProp=null,this._doDispatchAxisPointer()}},e.prototype._doDispatchAxisPointer=function(){if(this._handle){var e=this._payloadInfo,t=this._axisModel;this._api.dispatchAction({type:`updateAxisPointer`,x:e.cursorPoint[0],y:e.cursorPoint[1],tooltipOption:e.tooltipOption,axesInfo:[{axisDim:t.axis.dim,axisIndex:t.componentIndex}]})}},e.prototype._onHandleDragEnd=function(){if(this._dragging=!1,this._handle){var e=this._axisPointerModel.get(`value`);this._moveHandleToValue(e),this._api.dispatchAction({type:`hideTip`})}},e.prototype.clear=function(e){this._lastValue=null,this._lastStatus=null;var t=e.getZr(),n=this._group,r=this._handle;t&&n&&(this._lastGraphicKey=null,n&&t.remove(n),r&&t.remove(r),this._group=null,this._handle=null,this._payloadInfo=null),QS(this,`_doDispatchAxisPointer`)},e.prototype.doClear=function(){},e.prototype.buildLabel=function(e,t,n){return n||=0,{x:e[n],y:e[1-n],width:t[n],height:t[1-n]}},e}();function GV(e,t,n,r){KV(VV(n).lastProp,r)||(VV(n).lastProp=r,t?Bd(n,r,e):(n.stopAnimation(),n.attr(r)))}function KV(e,t){if(H(e)&&H(t)){var n=!0;return R(t,function(t,r){n&&=KV(e[r],t)}),!!n}return e===t}function qV(e,t){e[t.get([`label`,`show`])?`show`:`hide`]()}function JV(e){return{x:e.x||0,y:e.y||0,rotation:e.rotation||0}}function YV(e,t,n){var r=t.get(`z`),i=t.get(`zlevel`);e&&e.traverse(function(e){e.type!==`group`&&(r!=null&&(e.z=r),i!=null&&(e.zlevel=i),e.silent=n)})}function XV(e){var t=e.get(`type`),n=e.getModel(t+`Style`),r;return t===`line`?(r=n.getLineStyle(),r.fill=null):t===`shadow`&&(r=n.getAreaStyle(),r.stroke=null),r}function ZV(e,t,n,r,i){var a=$V(n.get(`value`),t.axis,t.ecModel,n.get(`seriesDataIndices`),{precision:n.get([`label`,`precision`]),formatter:n.get([`label`,`formatter`])}),o=n.getModel(`label`),s=Ig(o.get(`padding`)||0),c=o.getFont(),l=vn(a,c),u=i.position,d=l.width+s[1]+s[3],f=l.height+s[0]+s[2],p=i.align;p===`right`&&(u[0]-=d),p===`center`&&(u[0]-=d/2);var m=i.verticalAlign;m===`bottom`&&(u[1]-=f),m===`middle`&&(u[1]-=f/2),QV(u,d,f,r);var h=o.get(`backgroundColor`);(!h||h===`auto`)&&(h=t.get([`axisLine`,`lineStyle`,`color`])),e.label={x:u[0],y:u[1],style:qf(o,{text:a,font:c,fill:o.getTextColor(),padding:s,backgroundColor:h}),z2:10}}function QV(e,t,n,r){var i=r.getWidth(),a=r.getHeight();e[0]=Math.min(e[0]+t,i)-t,e[1]=Math.min(e[1]+n,a)-n,e[0]=Math.max(e[0],0),e[1]=Math.max(e[1],0)}function $V(e,t,n,r,i){e=t.scale.parse(e);var a=t.scale.getLabel({value:e},{precision:i.precision}),o=i.formatter;if(o){var s={value:Gy(t,{value:e}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};R(r,function(e){var t=n.getSeriesByIndex(e.seriesIndex),r=e.dataIndexInside,i=t&&t.getDataParams(r);i&&s.seriesData.push(i)}),V(o)?a=o.replace(`{value}`,a):me(o)&&(a=o(s))}return a}function eH(e,t,n){var r=gt();return xt(r,r,n.rotation),bt(r,r,n.position),ff([e.dataToCoord(t),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],r)}function tH(e,t,n,r,i,a){var o=Px.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=i.get([`label`,`margin`]),ZV(t,r,i,a,{position:eH(r.axis,e,n),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function nH(e,t,n){return n||=0,{x1:e[n],y1:e[1-n],x2:t[n],y2:t[1-n]}}function rH(e,t,n){return n||=0,{x:e[n],y:e[1-n],width:t[n],height:t[1-n]}}function iH(e,t,n){return $b(e,{fromStat:{sers:z(t,function(e){return n.getSeriesByIndex(e.seriesIndex)})},min:1}).w}function aH(e,t,n){return[fs(ds(t[0],t[1]),e-n/2),ds(e+n/2,fs(t[0],t[1]))]}var oH=function(e){p(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.makeElOption=function(e,t,n,r,i){var a=n.axis,o=a.grid,s=r.get(`type`),c=a.getGlobalExtent(),l=sH(o,a).getOtherAxis(a).getGlobalExtent(),u=a.toGlobalCoord(a.dataToCoord(t,!0));if(s&&s!==`none`){var d=XV(r),f=cH[s](a,u,c,l,r.get(`seriesDataIndices`),r.ecModel);f.style=d,e.graphicKey=f.type,e.pointer=f}tH(t,e,eS(o.getRect(),n),n,r,i)},t.prototype.getHandleTransform=function(e,t,n){var r=eS(t.axis.grid.getRect(),t,{labelInside:!1});r.labelMargin=n.get([`handle`,`margin`]);var i=eH(t.axis,e,r);return{x:i[0],y:i[1],rotation:r.rotation+(r.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,t,n,r){var i=n.axis,a=i.grid,o=i.getGlobalExtent(!0),s=sH(a,i).getOtherAxis(i).getGlobalExtent(),c=i.dim===`x`?0:1,l=[e.x,e.y];l[c]+=t[c],l[c]=ds(o[1],l[c]),l[c]=fs(o[0],l[c]);var u=(s[1]+s[0])/2,d=[u,u];return d[c]=l[c],{x:l[0],y:l[1],rotation:e.rotation,cursorPoint:d,tooltipOption:[{verticalAlign:`middle`},{align:`center`}][c]}},t}(WV);function sH(e,t){var n={};return n[t.dim+`AxisIndex`]=t.index,e.getCartesian(n)}var cH={line:function(e,t,n,r){return{type:`Line`,subPixelOptimize:!0,shape:nH([t,r[0]],[t,r[1]],lH(e))}},shadow:function(e,t,n,r,i,a){var o=iH(e,i,a),s=r[1]-r[0],c=aH(t,n,o),l=c[0],u=c[1];return{type:`Rect`,shape:rH([l,r[0]],[u-l,s],lH(e))}}};function lH(e){return e.dim===`x`?0:1}var uH=function(e){p(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type=`axisPointer`,t.defaultOption={show:`auto`,z:50,type:`line`,snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:A_.color.border,width:1,type:`dashed`},shadowStyle:{color:A_.color.shadowTint},label:{show:!0,formatter:null,precision:`auto`,margin:3,color:A_.color.neutral00,padding:[5,7,5,7],backgroundColor:A_.color.accent60,borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:`M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z`,size:45,margin:50,color:A_.color.accent40,throttle:40}},t}(n_),dH=Cc(),fH=R;function pH(e,t,n){if(!Ue.node){var r=t.getZr();dH(r).records||(dH(r).records={}),mH(r,t);var i=dH(r).records[e]||(dH(r).records[e]={});i.handler=n}}function mH(e,t){if(dH(e).initialized)return;dH(e).initialized=!0,n(`click`,pe(_H,`click`)),n(`mousemove`,pe(_H,`mousemove`)),n(`mousewheel`,pe(_H,`mousewheel`)),n(`globalout`,gH);function n(n,r){e.on(n,function(n){var i=vH(t);fH(dH(e).records,function(e){e&&r(e,n,i.dispatchAction)}),hH(i.pendings,t)})}}function hH(e,t){var n=e.showTip.length,r=e.hideTip.length,i;n?i=e.showTip[n-1]:r&&(i=e.hideTip[r-1]),i&&(i.dispatchAction=null,t.dispatchAction(i))}function gH(e,t,n){e.handler(`leave`,null,n)}function _H(e,t,n,r){t.handler(e,n,r)}function vH(e){var t={showTip:[],hideTip:[]},n=function(r){var i=t[r.type];i?i.push(r):(r.dispatchAction=n,e.dispatchAction(r))};return{dispatchAction:n,pendings:t}}function yH(e,t){if(!Ue.node){var n=t.getZr();(dH(n).records||{})[e]&&(dH(n).records[e]=null)}}var bH=function(e){p(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(e,t,n){var r=t.getComponent(`tooltip`),i=e.get(`triggerOn`)||r&&r.get(`triggerOn`)||`mousemove|click|mousewheel`;pH(`axisPointer`,n,function(e,t,n){i!==`none`&&(e===`leave`||i.indexOf(e)>=0)&&n({type:`updateAxisPointer`,currTrigger:e,x:t&&t.offsetX,y:t&&t.offsetY})})},t.prototype.remove=function(e,t){yH(`axisPointer`,t)},t.prototype.dispose=function(e,t){yH(`axisPointer`,t)},t.type=`axisPointer`,t}(JT);function xH(e,t){var n=[],r=e.seriesIndex,i;if(r==null||!(i=t.getSeriesByIndex(r)))return{point:[]};var a=i.getData(),o=Sc(a,e);if(o==null||o<0||B(o))return{point:[]};var s=a.getItemGraphicEl(o),c=i.coordinateSystem;if(i.getTooltipPosition)n=i.getTooltipPosition(o)||[];else if(c&&c.dataToPoint)if(e.isStacked){var l=c.getBaseAxis(),u=c.getOtherAxis(l).dim,d=l.dim,f=+(u===`x`||u===`radius`),p=a.mapDimension(d),m=[];m[f]=a.get(p,o),m[1-f]=a.get(a.getCalculationInfo(`stackResultDimension`),o),n=c.dataToPoint(m)||[]}else n=c.dataToPoint(a.getValues(z(c.dimensions,function(e){return a.mapDimension(e)}),o))||[];else if(s){var h=s.getBoundingRect().clone();h.applyTransform(s.transform),n=[h.x+h.width/2,h.y+h.height/2]}return{point:n,el:s}}var SH=Cc();function CH(e,t,n){var r=e.currTrigger,i=[e.x,e.y],a=e,o=e.dispatchAction||fe(n.dispatchAction,n),s=t.getComponent(`axisPointer`).coordSysAxesInfo;if(s){NH(i)&&(i=xH({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},t).point);var c=NH(i),l=a.axesInfo,u=s.axesInfo,d=r===`leave`||NH(i),f={},p={},m={list:[],map:{}},h={showPointer:pe(EH,p),showTooltip:pe(DH,m)};R(s.coordSysMap,function(e,t){var n=c||e.containPoint(i);R(s.coordSysAxesInfo[t],function(e,t){var r=e.axis,a=jH(l,e);if(!d&&n&&(!l||a)){var o=a&&a.value;o==null&&!c&&(o=r.pointToData(i)),o!=null&&wH(e,o,h,!1,f)}})});var g={};return R(u,function(e,t){var n=e.linkGroup;n&&!p[t]&&R(n.axesInfo,function(t,r){var i=p[r];if(t!==e&&i){var a=i.value;n.mapper&&(a=e.axis.scale.parse(n.mapper(a,MH(t),MH(e)))),g[e.key]=a}})}),R(g,function(e,t){wH(u[t],e,h,!0,f)}),OH(p,u,f),kH(m,i,e,o),AH(u,o,n),f}}function wH(e,t,n,r,i){var a=e.axis;if(!(a.scale.isBlank()||!a.containData(t))){if(!e.involveSeries){n.showPointer(e,t);return}var o=TH(t,e),s=o.payloadBatch,c=o.snapToValue;s[0]&&i.seriesIndex==null&&I(i,s[0]),!r&&e.snap&&a.containData(c)&&c!=null&&(t=c),n.showPointer(e,t,s),n.showTooltip(e,o,c)}}function TH(e,t){var n=t.axis,r=n.dim,i=e,a=[],o=Number.MAX_VALUE,s=-1;return R(t.seriesModels,function(t,c){var l=t.getData().mapDimensionsAll(r),u,d;if(t.getAxisTooltipData){var f=t.getAxisTooltipData(l,e,n);d=f.dataIndices,u=f.nestestValue}else{if(d=t.indicesOfNearest(r,l[0],e,n.type===`category`?.5:null),!d.length)return;u=t.getData().get(l[0],d[0])}if(qs(u)){var p=e-u,m=Math.abs(p);m<=o&&((m=0&&s<0)&&(o=m,s=p,i=u,a.length=0),R(d,function(e){a.push({seriesIndex:t.seriesIndex,dataIndexInside:e,dataIndex:t.getData().getRawIndex(e)})}))}}),{payloadBatch:a,snapToValue:i}}function EH(e,t,n,r){e[t.key]={value:n,payloadBatch:r}}function DH(e,t,n,r){var i=n.payloadBatch,a=t.axis,o=a.model,s=t.axisPointerModel;if(!(!t.triggerTooltip||!i.length)){var c=t.coordSys.model,l=cA(c),u=e.map[l];u||(u=e.map[l]={coordSysId:c.id,coordSysIndex:c.componentIndex,coordSysType:c.type,coordSysMainType:c.mainType,dataByAxis:[]},e.list.push(u)),u.dataByAxis.push({axisDim:a.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:r,valueLabelOpt:{precision:s.get([`label`,`precision`]),formatter:s.get([`label`,`formatter`])},seriesDataIndices:i.slice()})}}function OH(e,t,n){var r=n.axesInfo=[];R(t,function(t,n){var i=t.axisPointerModel.option,a=e[n];a?(!t.useHandle&&(i.status=`show`),i.value=a.value,i.seriesDataIndices=(a.payloadBatch||[]).slice()):!t.useHandle&&(i.status=`hide`),i.status===`show`&&r.push({axisDim:t.axis.dim,axisIndex:t.axis.model.componentIndex,value:i.value})})}function kH(e,t,n,r){if(NH(t)||!e.list.length){r({type:`hideTip`});return}var i=((e.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};r({type:`showTip`,escapeConnect:!0,x:t[0],y:t[1],tooltipOption:n.tooltipOption,position:n.position,dataIndexInside:i.dataIndexInside,dataIndex:i.dataIndex,seriesIndex:i.seriesIndex,dataByCoordSys:e.list})}function AH(e,t,n){var r=n.getZr(),i=`axisPointerLastHighlights`,a=SH(r)[i]||{},o=SH(r)[i]={};R(e,function(e,t){var n=e.axisPointerModel.option;n.status===`show`&&e.triggerEmphasis&&R(n.seriesDataIndices,function(e){o[e.seriesIndex+`|`+e.dataIndex]=e})});var s=[],c=[];function l(e){return{seriesIndex:e.seriesIndex,dataIndex:e.dataIndex}}R(a,function(e,t){!o[t]&&c.push(l(e))}),R(o,function(e,t){!a[t]&&s.push(l(e))}),c.length&&n.dispatchAction({type:`downplay`,escapeConnect:!0,notBlur:!0,batch:c}),s.length&&n.dispatchAction({type:`highlight`,escapeConnect:!0,notBlur:!0,batch:s})}function jH(e,t){for(var n=0;n<(e||[]).length;n++){var r=e[n];if(t.axis.dim===r.axisDim&&t.axis.model.componentIndex===r.axisIndex)return r}}function MH(e){var t=e.axis.model,n={},r=n.axisDim=e.axis.dim;return n.axisIndex=n[r+`AxisIndex`]=t.componentIndex,n.axisName=n[r+`AxisName`]=t.name,n.axisId=n[r+`AxisId`]=t.id,n}function NH(e){return!e||e[0]==null||isNaN(e[0])||e[1]==null||isNaN(e[1])}function PH(e){uA.registerAxisPointerClass(`CartesianAxisPointer`,oH),e.registerComponentModel(uH),e.registerComponentView(bH),e.registerPreprocessor(function(e){if(e){(!e.axisPointer||e.axisPointer.length===0)&&(e.axisPointer={});var t=e.axisPointer.link;t&&!B(t)&&(e.axisPointer.link=[t])}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,{overallReset:function(e,t){e.getComponent(`axisPointer`).coordSysAxesInfo=Qk(e,t)}}),e.registerAction({type:`updateAxisPointer`,event:`updateAxisPointer`,update:`:updateAxisPointer`},CH)}function FH(e){hk(xA),hk(PH)}function IH(e,t){var n=Ig(t.get(`padding`)),r=t.getItemStyle([`color`,`opacity`]);return r.fill=t.get(`backgroundColor`),new Uo({shape:{x:e.x-n[3],y:e.y-n[0],width:e.width+n[1]+n[3],height:e.height+n[0]+n[2],r:t.get(`borderRadius`)},style:r,silent:!0,z2:-1})}var LH=function(e){p(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type=`tooltip`,t.dependencies=[`axisPointer`],t.defaultOption={z:60,show:!0,showContent:!0,trigger:`item`,triggerOn:`mousemove|click|mousewheel`,alwaysShowContent:!1,renderMode:`auto`,confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,displayTransition:!0,enterable:!1,backgroundColor:A_.color.neutral00,shadowBlur:10,shadowColor:`rgba(0, 0, 0, .2)`,shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,defaultBorderColor:A_.color.border,padding:null,extraCssText:``,axisPointer:{type:`line`,axis:`auto`,animation:`auto`,animationDurationUpdate:200,animationEasingUpdate:`exponentialOut`,crossStyle:{color:A_.color.borderShade,width:1,type:`dashed`,textStyle:{}}},textStyle:{color:A_.color.tertiary,fontSize:14}},t}(n_);function RH(e){var t=e.get(`confine`);return t==null?e.get(`renderMode`)===`richText`:!!t}function zH(e){if(Ue.domSupported){for(var t=document.documentElement.style,n=0,r=e.length;n-1?(s+=`top:50%`,c+=`translateY(-50%) rotate(`+(l=a===`left`?-225:-45)+`deg)`):(s+=`left:50%`,c+=`translateX(-50%) rotate(`+(l=a===`top`?225:45)+`deg)`);var u=l*Math.PI/180,d=o+i,f=d*Math.abs(Math.cos(u))+d*Math.abs(Math.sin(u)),p=Math.round(((f-Math.SQRT2*i)/2+Math.SQRT2*i-(f-d)/2)*100)/100;s+=`;`+a+`:-`+p+`px`;var m=t+` solid `+i+`px;`;return`
`}function YH(e,t,n){var r=`cubic-bezier(0.23,1,0.32,1)`,i=``,a=``;return n&&(i=` `+e/2+`s `+r,a=`opacity`+i+`,visibility`+i),t||(i=` `+e+`s `+r,a+=(a.length?`,`:``)+(Ue.transformSupported?``+GH+i:`,left`+i+`,top`+i)),WH+`:`+a}function XH(e,t,n){var r=e.toFixed(0)+`px`,i=t.toFixed(0)+`px`;if(!Ue.transformSupported)return n?`top:`+i+`;left:`+r+`;`:[[`top`,i],[`left`,r]];var a=Ue.transform3dSupported,o=`translate`+(a?`3d`:``)+`(`+r+`,`+i+(a?`,0`:``)+`)`;return n?`top:0;left:0;`+GH+`:`+o+`;`:[[`top`,0],[`left`,0],[BH,o]]}function ZH(e){var t=[],n=e.get(`fontSize`),r=e.getTextColor();r&&t.push(`color:`+r),t.push(`font:`+e.getFont());var i=Ce(e.get(`lineHeight`),Math.round(n*3/2));n&&t.push(`line-height:`+i+`px`);var a=e.get(`textShadowColor`),o=e.get(`textShadowBlur`)||0,s=e.get(`textShadowOffsetX`)||0,c=e.get(`textShadowOffsetY`)||0;return a&&o&&t.push(`text-shadow:`+s+`px `+c+`px `+o+`px `+a),R([`decoration`,`align`],function(n){var r=e.get(n);r&&t.push(`text-`+n+`:`+r)}),t.join(`;`)}function QH(e,t,n,r){var i=[],a=e.get(`transitionDuration`),o=e.get(`backgroundColor`),s=e.get(`shadowBlur`),c=e.get(`shadowColor`),l=e.get(`shadowOffsetX`),u=e.get(`shadowOffsetY`),d=e.getModel(`textStyle`),f=$_(e,`html`),p=l+`px `+u+`px `+s+`px `+c;return i.push(`box-shadow:`+p),t&&a>0&&i.push(YH(a,n,r)),o&&i.push(`background-color:`+o),R([`width`,`color`,`radius`],function(t){var n=`border-`+t,r=Fg(n),a=e.get(r);a!=null&&i.push(n+`:`+a+(t===`color`?``:`px`))}),i.push(ZH(d)),f!=null&&i.push(`padding:`+Ig(f).join(`px `)+`px`),i.join(`;`)+`;`}function $H(e,t,n,r,i){var a=t&&t.painter;if(n){var o=a&&a.getViewportRoot();o&&Eh(e,o,n,r,i)}else{e[0]=r,e[1]=i;var s=a&&a.getViewportRootOffset();s&&(e[0]+=s.offsetLeft,e[1]+=s.offsetTop)}e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var eU=function(){function e(e,t){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,Ue.wxa)return null;var n=document.createElement(`div`);n.domBelongToZr=!0,this.el=n;var r=this._zr=e.getZr(),i=t.appendTo,a=i&&(V(i)?document.querySelector(i):ye(i)?i:me(i)&&i(e.getDom()));$H(this._styleCoord,r,a,e.getWidth()/2,e.getHeight()/2),(a||e.getDom()).appendChild(n),this._api=e,this._container=a;var o=this;n.onmouseenter=function(){o._enterable&&(clearTimeout(o._hideTimeout),o._show=!0),o._inContent=!0},n.onmousemove=function(e){if(e||=window.event,!o._enterable){var t=r.handler;HC(r.painter.getViewportRoot(),e,!0),t.dispatch(`mousemove`,e)}},n.onmouseleave=function(){o._inContent=!1,o._enterable&&o._show&&o.hideLater(o._hideDelay)}}return e.prototype.update=function(e){if(!this._container){var t=this._api.getDom(),n=UH(t,`position`),r=t.style;r.position!==`absolute`&&n!==`absolute`&&(r.position=`relative`)}var i=e.get(`alwaysShowContent`);i&&this._moveIfResized(),this._alwaysShowContent=i,this._enableDisplayTransition=e.get(`displayTransition`)&&e.get(`transitionDuration`)>0,this.el.className=e.get(`className`)||``},e.prototype.show=function(e,t){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,r=n.style,i=this._styleCoord;n.innerHTML?r.cssText=KH+QH(e,!this._firstShow,this._longHide,this._enableDisplayTransition)+XH(i[0],i[1],!0)+(`border-color:`+Hg(t)+`;`)+(e.get(`extraCssText`)||``)+(`;pointer-events:`+(this._enterable?`auto`:`none`)):r.display=`none`,this._show=!0,this._firstShow=!1,this._longHide=!1},e.prototype.setContent=function(e,t,n,r,i){var a=this.el;if(e==null){a.innerHTML=``;return}var o=``;if(V(i)&&n.get(`trigger`)===`item`&&!RH(n)&&(o=JH(n,r,i)),V(e))a.innerHTML=e+o;else if(e){a.innerHTML=``,B(e)||(e=[e]);for(var s=0;s=0?this._tryShow(n,r):t===`leave`&&this._hide(r))},this))},t.prototype._keepShow=function(){var e=this._tooltipModel,t=this._ecModel,n=this._api,r=e.get(`triggerOn`);if(e.get(`trigger`)!==`axis`&&(this._lastDataByCoordSys=null,this._cbParamsList=null),this._lastX!=null&&this._lastY!=null&&r!==`none`&&r!==`click`){var i=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!n.isDisposed()&&i.manuallyShowTip(e,t,n,{x:i._lastX,y:i._lastY,dataByCoordSys:i._lastDataByCoordSys})})}},t.prototype.manuallyShowTip=function(e,t,n,r){if(!(r.from===this.uid||Ue.node||!n.getDom())){var i=cU(r,n);this._ticket=``;var a=r.dataByCoordSys,o=pU(r,t,n);if(o){var s=o.el.getBoundingRect().clone();s.applyTransform(o.el.transform),this._tryShow({offsetX:s.x+s.width/2,offsetY:s.y+s.height/2,target:o.el,position:r.position,positionDefault:`bottom`},i)}else if(r.tooltip&&r.x!=null&&r.y!=null){var c=aU;c.x=r.x,c.y=r.y,c.update(),Xc(c).tooltipConfig={name:null,option:r.tooltip},this._tryShow({offsetX:r.x,offsetY:r.y,target:c},i)}else if(a)this._tryShow({offsetX:r.x,offsetY:r.y,position:r.position,dataByCoordSys:a,tooltipOption:r.tooltipOption},i);else if(r.seriesIndex!=null){if(this._manuallyAxisShowTip(e,t,n,r))return;var l=xH(r,t),u=l.point[0],d=l.point[1];u!=null&&d!=null&&this._tryShow({offsetX:u,offsetY:d,target:l.el,position:r.position,positionDefault:`bottom`},i)}else r.x!=null&&r.y!=null&&(n.dispatchAction({type:`updateAxisPointer`,x:r.x,y:r.y}),this._tryShow({offsetX:r.x,offsetY:r.y,position:r.position,target:n.getZr().findHover(r.x,r.y).target},i))}},t.prototype.manuallyHideTip=function(e,t,n,r){var i=this._tooltipContent;this._tooltipModel&&i.hideLater(this._tooltipModel.get(`hideDelay`)),this._lastX=this._lastY=this._lastDataByCoordSys=null,this._cbParamsList=null,r.from!==this.uid&&this._hide(cU(r,n))},t.prototype._manuallyAxisShowTip=function(e,t,n,r){var i=r.seriesIndex,a=r.dataIndex,o=t.getComponent(`axisPointer`).coordSysAxesInfo;if(i!=null&&a!=null&&o!=null){var s=t.getSeriesByIndex(i);if(s&&sU([s.getData().getItemModel(a),s,(s.coordinateSystem||{}).model],this._tooltipModel).get(`trigger`)===`axis`)return n.dispatchAction({type:`updateAxisPointer`,seriesIndex:i,dataIndex:a,position:r.position}),!0}},t.prototype._tryShow=function(e,t){var n=e.target;if(this._tooltipModel){this._lastX=e.offsetX,this._lastY=e.offsetY;var r=e.dataByCoordSys;if(r&&r.length)this._showAxisTooltip(r,e);else if(n){if(Xc(n).ssrType===`legend`)return;this._lastDataByCoordSys=null,this._cbParamsList=null;var i,a;NE(n,function(e){if(e.tooltipDisabled)return i=a=null,!0;i||a||(Xc(e).dataIndex==null?Xc(e).tooltipConfig!=null&&(a=e):i=e)},!0),i?this._showSeriesItemTooltip(e,i,t):a?this._showComponentItemTooltip(e,a,t):this._hide(t)}else this._lastDataByCoordSys=null,this._cbParamsList=null,this._hide(t)}},t.prototype._showOrMove=function(e,t){var n=e.get(`showDelay`);t=fe(t,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(t,n):t()},t.prototype._showAxisTooltip=function(e,t){var n=this._ecModel,r=this._tooltipModel,i=[t.offsetX,t.offsetY],a=sU([t.tooltipOption],r),o=this._renderMode,s=[],c=z_(`section`,{blocks:[],noHeader:!0}),l=[],u=new ev;R(e,function(e){R(e.dataByAxis,function(e){var t=n.getComponent(e.axisDim+`Axis`,e.axisIndex),i=e.value,a=t.axis,d=a.scale.parse(i);if(!(!t||i==null)){var f=$V(i,a,n,e.seriesDataIndices,e.valueLabelOpt),p=z_(`section`,{header:f,noHeader:!Oe(f),sortBlocks:!0,blocks:[]});c.blocks.push(p),R(e.seriesDataIndices,function(i){var a=n.getSeriesByIndex(i.seriesIndex),c=i.dataIndexInside,m=a.getDataParams(c);if(!(m.dataIndex<0)){m.axisDim=e.axisDim,m.axisIndex=e.axisIndex,m.axisType=e.axisType,m.axisId=e.axisId,m.axisValue=Gy(t.axis,{value:d}),m.axisValueLabel=f,m.marker=u.makeTooltipMarker(`item`,Hg(m.color),o);var h=p_(a.formatTooltip(c,!0,null)),g=h.frag;if(g){var _=sU([a],r).get(`valueFormatter`);p.blocks.push(_?I({valueFormatter:_},g):g)}h.text&&l.push(h.text),s.push(m)}})}})}),c.blocks.reverse(),l.reverse();var d=t.position,f=G_(c,u,o,a.get(`order`),n.get(`useUTC`),a.get(`textStyle`));f&&l.unshift(f);var p=o===`richText`?` - -`:`
`,m=l.join(p);this._showOrMove(a,function(){this._updateContentNotChangedOnAxis(e,s)?this._updatePosition(a,d,i[0],i[1],this._tooltipContent,s):this._showTooltipContent(a,m,s,Math.random()+``,i[0],i[1],d,null,u)})},t.prototype._showSeriesItemTooltip=function(e,t,n){var r=this._ecModel,i=Xc(t),a=i.seriesIndex,o=r.getSeriesByIndex(a),s=i.dataModel||o,c=i.dataIndex,l=i.dataType,u=s.getData(l),d=this._renderMode,f=e.positionDefault,p=sU([u.getItemModel(c),s,o&&(o.coordinateSystem||{}).model],this._tooltipModel,f?{position:f}:null),m=p.get(`trigger`);if(m==null||m===`item`){var h=s.getDataParams(c,l),g=new ev;h.marker=g.makeTooltipMarker(`item`,Hg(h.color),d);var _=p_(s.formatTooltip(c,!1,l)),v=p.get(`order`),y=p.get(`valueFormatter`),b=_.frag,x=b?G_(y?I({valueFormatter:y},b):b,g,d,v,r.get(`useUTC`),p.get(`textStyle`)):_.text,S=`item_`+s.name+`_`+c;this._showOrMove(p,function(){this._showTooltipContent(p,x,h,S,e.offsetX,e.offsetY,e.position,e.target,g)}),n({type:`showTip`,dataIndexInside:c,dataIndex:u.getRawIndex(c),seriesIndex:a,from:this.uid})}},t.prototype._showComponentItemTooltip=function(e,t,n){var r=this._renderMode===`html`,i=Xc(t),a=i.tooltipConfig.option||{},o=a.encodeHTMLContent;if(V(a)){var s=a;a={content:s,formatter:s},o=!0}o&&r&&a.content&&(a=P(a),a.content=Ph(a.content));var c=[a],l=this._ecModel.getComponent(i.componentMainType,i.componentIndex);l&&c.push(l),c.push({formatter:a.content});var u=e.positionDefault,d=sU(c,this._tooltipModel,u?{position:u}:null),f=d.get(`content`),p=Math.random()+``,m=new ev;this._showOrMove(d,function(){var n=P(d.get(`formatterParams`)||{});this._showTooltipContent(d,f,n,p,e.offsetX,e.offsetY,e.position,t,m)}),n({type:`showTip`,from:this.uid})},t.prototype._showTooltipContent=function(e,t,n,r,i,a,o,s,c){if(this._ticket=``,!(!e.get(`showContent`)||!e.get(`show`))){var l=this._tooltipContent;l.setEnterable(e.get(`enterable`));var u=e.get(`formatter`);o||=e.get(`position`);var d=t,f=this._getNearestPoint([i,a],n,e.get(`trigger`),e.get(`borderColor`),e.get(`defaultBorderColor`,!0)).color;if(u)if(V(u)){var p=e.ecModel.get(`useUTC`),m=B(n)?n[0]:n,h=m&&m.axisType&&m.axisType.indexOf(`time`)>=0;d=u,h&&(d=gg(m.axisValue,d,p)),d=Bg(d,n,!0)}else if(me(u)){var g=fe(function(t,r){t===this._ticket&&(l.setContent(r,c,e,f,o),this._updatePosition(e,o,i,a,l,n,s))},this);this._ticket=r,d=u(n,r,g)}else d=u;l.setContent(d,c,e,f,o),l.show(e,f),this._updatePosition(e,o,i,a,l,n,s)}},t.prototype._getNearestPoint=function(e,t,n,r,i){if(n===`axis`||B(t))return{color:r||i};if(!B(t))return{color:r||t.color||t.borderColor}},t.prototype._updatePosition=function(e,t,n,r,i,a,o){var s=this._api.getWidth(),c=this._api.getHeight();t||=e.get(`position`);var l=i.getSize(),u=e.get(`align`),d=e.get(`verticalAlign`),f=o&&o.getBoundingRect().clone();if(o&&f.applyTransform(o.transform),me(t)&&(t=t([n,r],a,i.el,f,{viewSize:[s,c],contentSize:l.slice()})),B(t))n=Cs(t[0],s),r=Cs(t[1],c);else if(H(t)){var p=t;p.width=l[0],p.height=l[1];var m=Yg(p,{width:s,height:c});n=m.x,r=m.y,u=null,d=null}else if(V(t)&&o){var h=dU(t,f,l,e.get(`borderWidth`));n=h[0],r=h[1]}else{var h=lU(n,r,i,s,c,u?null:20,d?null:20);n=h[0],r=h[1]}if(u&&(n-=fU(u)?l[0]/2:u===`right`?l[0]:0),d&&(r-=fU(d)?l[1]/2:d===`bottom`?l[1]:0),RH(e)){var h=uU(n,r,i,s,c);n=h[0],r=h[1]}i.moveTo(n,r)},t.prototype._updateContentNotChangedOnAxis=function(e,t){var n=this._lastDataByCoordSys,r=this._cbParamsList,i=!!n&&n.length===e.length;return i&&R(n,function(n,a){var o=n.dataByAxis||[],s=(e[a]||{}).dataByAxis||[];i&&=o.length===s.length,i&&R(o,function(e,n){var a=s[n]||{},o=e.seriesDataIndices||[],c=a.seriesDataIndices||[];i=i&&e.value===a.value&&e.axisType===a.axisType&&e.axisId===a.axisId&&o.length===c.length,i&&R(o,function(e,t){var n=c[t];i=i&&e.seriesIndex===n.seriesIndex&&e.dataIndex===n.dataIndex}),r&&R(e.seriesDataIndices,function(e){var n=e.seriesIndex,a=t[n],o=r[n];a&&o&&o.data!==a.data&&(i=!1)})})}),this._lastDataByCoordSys=e,this._cbParamsList=t,!!i},t.prototype._hide=function(e){this._lastDataByCoordSys=null,this._cbParamsList=null,e({type:`hideTip`,from:this.uid})},t.prototype.dispose=function(e,t){Ue.node||!t.getDom()||(QS(this,`_updatePosition`),this._tooltipContent.dispose(),yH(`itemTooltip`,t),this._tooltipContent=null,this._tooltipModel=null,this._lastDataByCoordSys=null,this._cbParamsList=null)},t.type=`tooltip`,t}(JT);function sU(e,t,n){var r=t.ecModel,i;n?(i=new hp(n,r,r),i=new hp(t.option,i,r)):i=t;for(var a=e.length-1;a>=0;a--){var o=e[a];o&&(o instanceof hp&&(o=o.get(`tooltip`,!0)),V(o)&&(o={formatter:o}),o&&(i=new hp(o,i,r)))}return i}function cU(e,t){return e.dispatchAction||fe(t.dispatchAction,t)}function lU(e,t,n,r,i,a,o){var s=n.getSize(),c=s[0],l=s[1];return a!=null&&(e+c+a+2>r?e-=c+a:e+=a),o!=null&&(t+l+o>i?t-=l+o:t+=o),[e,t]}function uU(e,t,n,r,i){var a=n.getSize(),o=a[0],s=a[1];return e=Math.min(e+o,r)-o,t=Math.min(t+s,i)-s,e=Math.max(e,0),t=Math.max(t,0),[e,t]}function dU(e,t,n,r){var i=n[0],a=n[1],o=Math.ceil(Math.SQRT2*r)+8,s=0,c=0,l=t.width,u=t.height;switch(e){case`inside`:s=t.x+l/2-i/2,c=t.y+u/2-a/2;break;case`top`:s=t.x+l/2-i/2,c=t.y-a-o;break;case`bottom`:s=t.x+l/2-i/2,c=t.y+u+o;break;case`left`:s=t.x-i-o,c=t.y+u/2-a/2;break;case`right`:s=t.x+l+o,c=t.y+u/2-a/2}return[s,c]}function fU(e){return e===`center`||e===`middle`}function pU(e,t,n){var r=Ec(e).queryOptionMap,i=r.keys()[0];if(!(!i||i===`series`)){var a=Oc(t,i,r.get(i),{useDefault:!1,enableAll:!1,enableNone:!1}).models[0];if(a){var o=n.getViewOfComponentModel(a),s;if(o.group.traverse(function(t){var n=Xc(t).tooltipConfig;if(n&&n.name===e.name)return s=t,!0}),s)return{componentMainType:i,componentIndex:a.componentIndex,el:s}}}}function mU(e){hk(PH),e.registerComponentModel(LH),e.registerComponentView(oU),e.registerAction({type:`showTip`,event:`showTip`,update:`tooltip:manuallyShowTip`},Be),e.registerAction({type:`hideTip`,event:`hideTip`,update:`tooltip:manuallyHideTip`},Be)}var hU=R;function gU(e){if(e){for(var t in e)if(e.hasOwnProperty(t))return!0}}function _U(e,t,n){var r={};return hU(t,function(t){var a=r[t]=i();hU(e[t],function(e,r){if(TA.isValidType(r)){var i={type:r,visual:e};n&&n(i,t),a[r]=new TA(i),r===`opacity`&&(i=P(i),i.type=`colorAlpha`,a.__hidden.__alphaForOpacity=new TA(i))}})}),r;function i(){var e=function(){};return e.prototype.__hidden=e.prototype,new e}}function vU(e,t,n){var r;R(n,function(e){t.hasOwnProperty(e)&&gU(t[e])&&(r=!0)}),r&&R(n,function(n){t.hasOwnProperty(n)&&gU(t[n])?e[n]=P(t[n]):delete e[n]})}function yU(e,t,n,r){var i={};return R(e,function(e){i[e]=TA.prepareVisualTypes(t[e])}),{progress:function(e,a){var o;r!=null&&(o=a.getDimensionIndex(r));function s(e){return AE(a,l,e)}function c(e,t){ME(a,l,e,t)}for(var l,u=a.getStore();(l=e.next())!=null;){var d=a.getRawDataItem(l);if(!(d&&d.visualMap===!1))for(var f=r==null?l:u.get(o,l),p=n(f),m=t[p],h=i[p],g=0,_=h.length;g<_;g++){var v=h[g];m[v]&&m[v].applyVisual(f,s,c)}}}}}var bU=function(e,t){if(t===`all`)return{type:`all`,title:e.getLocaleModel().get([`legend`,`selector`,`all`])};if(t===`inverse`)return{type:`inverse`,title:e.getLocaleModel().get([`legend`,`selector`,`inverse`])}},xU=function(e){p(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.layoutMode={type:`box`,ignoreSize:!0},n}return t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n),e.selected=e.selected||{},this._updateSelector(e)},t.prototype.mergeOption=function(t,n){e.prototype.mergeOption.call(this,t,n),this._updateSelector(t)},t.prototype._updateSelector=function(e){var t=e.selector,n=this.ecModel;t===!0&&(t=e.selector=[`all`,`inverse`]),B(t)&&R(t,function(e,r){V(e)&&(e={type:e}),t[r]=F(e,bU(n,e.type))})},t.prototype.optionUpdated=function(){this._updateData(this.ecModel);var e=this._data;if(e[0]&&this.get(`selectedMode`)===`single`){for(var t=!1,n=0;n=0},t.prototype.getOrient=function(){return this.get(`orient`)===`vertical`?{index:1,name:`vertical`}:{index:0,name:`horizontal`}},t.type=`legend.plain`,t.dependencies=[`series`],t.defaultOption={z:4,show:!0,orient:`horizontal`,left:`center`,bottom:A_.size.m,align:`auto`,backgroundColor:A_.color.transparent,borderColor:A_.color.border,borderRadius:0,borderWidth:0,padding:5,itemGap:8,itemWidth:25,itemHeight:14,symbolRotate:`inherit`,symbolKeepAspect:!0,inactiveColor:A_.color.disabled,inactiveBorderColor:A_.color.disabled,inactiveBorderWidth:`auto`,itemStyle:{color:`inherit`,opacity:`inherit`,borderColor:`inherit`,borderWidth:`auto`,borderCap:`inherit`,borderJoin:`inherit`,borderDashOffset:`inherit`,borderMiterLimit:`inherit`},lineStyle:{width:`auto`,color:`inherit`,inactiveColor:A_.color.disabled,inactiveWidth:2,opacity:`inherit`,type:`inherit`,cap:`inherit`,join:`inherit`,dashOffset:`inherit`,miterLimit:`inherit`},textStyle:{color:A_.color.secondary},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:`sans-serif`,color:A_.color.tertiary,borderWidth:1,borderColor:A_.color.border},emphasis:{selectorLabel:{show:!0,color:A_.color.quaternary}},selectorPosition:`auto`,selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1},triggerEvent:!1},t}(n_),SU=pe,CU=R,wU=Lu,TU=function(e){p(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.newlineDisabled=!1,n}return t.prototype.init=function(){this.group.add(this._contentGroup=new wU),this.group.add(this._selectorGroup=new wU),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(e,t,n){var r=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),e.get(`show`,!0)){var i=e.get(`align`),a=e.get(`orient`);(!i||i===`auto`)&&(i=e.get(`left`)===`right`&&a===`vertical`?`right`:`left`);var o=e.get(`selector`,!0),s=e.get(`selectorPosition`,!0);o&&(!s||s===`auto`)&&(s=a===`horizontal`?`end`:`start`),this.renderInner(i,e,t,n,o,a,s);var c=Zg(e,n).refContainer,l=e.getBoxLayoutParams(),u=e.get(`padding`),d=Yg(l,c,u),f=this.layoutInner(e,i,d,r,o,s),p=Yg(L({width:f.width,height:f.height},l),c,u);this.group.x=p.x-f.x,this.group.y=p.y-f.y,this.group.markRedraw(),this.group.add(this._backgroundEl=IH(f,e))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(e,t,n,r,i,a,o){var s=this.getContentGroup(),c=Ie(),l=t.get(`selectedMode`),u=t.get(`triggerEvent`),d=[];n.eachRawSeries(function(e){!e.get(`legendHoverLink`)&&d.push(e.id)}),CU(t.getData(),function(i,a){var o=this,f=i.get(`name`);if(!this.newlineDisabled&&(f===``||f===` -`)){var p=new wU;p.newline=!0,s.add(p);return}var m=n.getSeriesByName(f)[0];if(!c.get(f))if(m){var h=m.getData(),g=h.getVisual(`legendLineStyle`)||{},_=h.getVisual(`legendIcon`),v=h.getVisual(`style`),y=this._createItem(m,f,a,i,t,e,g,v,_,l,r);y.on(`click`,SU(OU,f,null,r,d)).on(`mouseover`,SU(kU,m.name,null,r,d)).on(`mouseout`,SU(AU,m.name,null,r,d)),n.ssr&&y.eachChild(function(e){var t=Xc(e);t.seriesIndex=m.seriesIndex,t.dataIndex=a,t.ssrType=`legend`}),u&&y.eachChild(function(e){o.packEventData(e,t,m,a,f)}),c.set(f,!0)}else n.eachRawSeries(function(o){var s=this;if(!c.get(f)&&o.legendVisualProvider){var p=o.legendVisualProvider;if(!p.containName(f))return;var m=p.indexOfName(f),h=p.getItemVisual(m,`style`),g=p.getItemVisual(m,`legendIcon`),_=Gr(h.fill);_&&_[3]===0&&(_[3]=.2,h=I(I({},h),{fill:Qr(_,`rgba`)}));var v=this._createItem(o,f,a,i,t,e,{},h,g,l,r);v.on(`click`,SU(OU,null,f,r,d)).on(`mouseover`,SU(kU,null,f,r,d)).on(`mouseout`,SU(AU,null,f,r,d)),n.ssr&&v.eachChild(function(e){var t=Xc(e);t.seriesIndex=o.seriesIndex,t.dataIndex=a,t.ssrType=`legend`}),u&&v.eachChild(function(e){s.packEventData(e,t,o,a,f)}),c.set(f,!0)}},this)},this),i&&this._createSelector(i,t,r,a,o)},t.prototype.packEventData=function(e,t,n,r,i){var a={componentType:`legend`,componentIndex:t.componentIndex,dataIndex:r,value:i,seriesIndex:n.seriesIndex};Xc(e).eventData=a},t.prototype._createSelector=function(e,t,n,r,i){var a=this.getSelectorGroup();CU(e,function(e){var r=e.type,i=new Jo({style:{x:0,y:0,align:`center`,verticalAlign:`middle`},onclick:function(){n.dispatchAction({type:r===`all`?`legendAllSelect`:`legendInverseSelect`,legendId:t.id})}});a.add(i),Gf(i,{normal:t.getModel(`selectorLabel`),emphasis:t.getModel([`emphasis`,`selectorLabel`])},{defaultText:e.title}),nu(i)})},t.prototype._createItem=function(e,t,n,r,i,a,o,s,c,l,u){var d=e.visualDrawType,f=i.get(`itemWidth`),p=i.get(`itemHeight`),m=i.isSelected(t),h=r.get(`symbolRotate`),g=r.get(`symbolKeepAspect`),_=r.get(`icon`);c=_||c||`roundRect`;var v=EU(c,r,o,s,d,m,u),y=new wU,b=r.getModel(`textStyle`);if(me(e.getLegendIcon)&&(!_||_===`inherit`))y.add(e.getLegendIcon({itemWidth:f,itemHeight:p,icon:c,iconRotate:h,itemStyle:v.itemStyle,lineStyle:v.lineStyle,symbolKeepAspect:g}));else{var x=_===`inherit`&&e.getData().getVisual(`symbol`)?h===`inherit`?e.getData().getVisual(`symbolRotate`):h:0;y.add(DU({itemWidth:f,itemHeight:p,icon:c,iconRotate:x,itemStyle:v.itemStyle,lineStyle:v.lineStyle,symbolKeepAspect:g}))}var S=a===`left`?f+5:-5,C=a,w=i.get(`formatter`),T=t;V(w)&&w?T=w.replace(`{name}`,t??``):me(w)&&(T=w(t));var E=m?b.getTextColor():r.get(`inactiveColor`);y.add(new Jo({style:qf(b,{text:T,x:S,y:p/2,fill:E,align:C,verticalAlign:`middle`},{inheritColor:E})}));var D=new Uo({shape:y.getBoundingRect(),style:{fill:`transparent`}}),O=r.getModel(`tooltip`);return O.get(`show`)&&Df({el:D,componentModel:i,itemName:t,itemTooltipOption:O.option}),y.add(D),y.eachChild(function(e){e.silent=!0}),D.silent=!l,this.getContentGroup().add(y),nu(y),y.__legendDataIndex=n,y},t.prototype.layoutInner=function(e,t,n,r,i,a){var o=this.getContentGroup(),s=this.getSelectorGroup();qg(e.get(`orient`),o,e.get(`itemGap`),n.width,n.height);var c=o.getBoundingRect(),l=[-c.x,-c.y];if(s.markRedraw(),o.markRedraw(),i){qg(`horizontal`,s,e.get(`selectorItemGap`,!0));var u=s.getBoundingRect(),d=[-u.x,-u.y],f=e.get(`selectorButtonGap`,!0),p=e.getOrient().index,m=p===0?`width`:`height`,h=p===0?`height`:`width`,g=p===0?`y`:`x`;a===`end`?d[p]+=c[m]+f:l[p]+=u[m]+f,d[1-p]+=c[h]/2-u[h]/2,s.x=d[0],s.y=d[1],o.x=l[0],o.y=l[1];var _={x:0,y:0};return _[m]=c[m]+f+u[m],_[h]=Math.max(c[h],u[h]),_[g]=Math.min(0,u[g]+d[1-p]),_}return o.x=l[0],o.y=l[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type=`legend.plain`,t}(JT);function EU(e,t,n,r,i,a,o){function s(e,t){e.lineWidth===`auto`&&(e.lineWidth=t.lineWidth>0?2:0),CU(e,function(n,r){e[r]===`inherit`&&(e[r]=t[r])})}var c=t.getModel(`itemStyle`),l=c.getItemStyle(),u=e.lastIndexOf(`empty`,0)===0?`fill`:`stroke`,d=c.getShallow(`decal`);l.decal=!d||d===`inherit`?r.decal:kD(d,o),l.fill===`inherit`&&(l.fill=r[i]),l.stroke===`inherit`&&(l.stroke=r[u]),l.opacity===`inherit`&&(l.opacity=(i===`fill`?r:n).opacity),s(l,r);var f=t.getModel(`lineStyle`),p=f.getLineStyle();if(s(p,n),l.fill===`auto`&&(l.fill=r.fill),l.stroke===`auto`&&(l.stroke=r.fill),p.stroke===`auto`&&(p.stroke=r.fill),!a){var m=t.get(`inactiveBorderWidth`),h=l[u];l.lineWidth=m===`auto`?r.lineWidth>0&&h?2:0:l.lineWidth,l.fill=t.get(`inactiveColor`),l.stroke=t.get(`inactiveBorderColor`),p.stroke=f.get(`inactiveColor`),p.lineWidth=f.get(`inactiveWidth`)}return{itemStyle:l,lineStyle:p}}function DU(e){var t=e.icon||`roundRect`,n=yv(t,0,0,e.itemWidth,e.itemHeight,e.itemStyle.fill,e.symbolKeepAspect);return n.setStyle(e.itemStyle),n.rotation=(e.iconRotate||0)*Math.PI/180,n.setOrigin([e.itemWidth/2,e.itemHeight/2]),t.indexOf(`empty`)>-1&&(n.style.stroke=n.style.fill,n.style.fill=A_.color.neutral00,n.style.lineWidth=2),n}function OU(e,t,n,r){AU(e,t,n,r),n.dispatchAction({type:`legendToggleSelect`,name:e??t}),kU(e,t,n,r)}function kU(e,t,n,r){n.usingTHL()||n.dispatchAction({type:`highlight`,seriesName:e,name:t,excludeSeriesId:r})}function AU(e,t,n,r){n.usingTHL()||n.dispatchAction({type:`downplay`,seriesName:e,name:t,excludeSeriesId:r})}function jU(e,t,n){var r=e===`allSelect`||e===`inverseSelect`,i={},a=[];n.eachComponent({mainType:`legend`,query:t},function(n){r?n[e]():n[e](t.name),MU(n,i),a.push(n.componentIndex)});var o={};return n.eachComponent(`legend`,function(e){R(i,function(t,n){e[t?`select`:`unSelect`](n)}),MU(e,o)}),r?{selected:o,legendIndex:a}:{name:t.name,selected:o}}function MU(e,t){var n=t||{};return R(e.getData(),function(t){var r=t.get(`name`);if(r!==` -`&&r!==``){var i=e.isSelected(r);n[r]=ze(n,r)?n[r]&&i:i}}),n}function NU(e){e.registerAction(`legendToggleSelect`,`legendselectchanged`,pe(jU,`toggleSelected`)),e.registerAction(`legendAllSelect`,`legendselectall`,pe(jU,`allSelect`)),e.registerAction(`legendInverseSelect`,`legendinverseselect`,pe(jU,`inverseSelect`)),e.registerAction(`legendSelect`,`legendselected`,pe(jU,`select`)),e.registerAction(`legendUnSelect`,`legendunselected`,pe(jU,`unSelect`))}var Iee=Yc(PU);function PU(e){var t=e.findComponents({mainType:`legend`});t&&t.length&&e.filterSeries(function(e){for(var n=0;nn[i],m=[-d.x,-d.y];t||(m[r]=c[s]);var h=[0,0],g=[-f.x,-f.y],_=Ce(e.get(`pageButtonGap`,!0),e.get(`itemGap`,!0));p&&(e.get(`pageButtonPosition`,!0)===`end`?g[r]+=n[i]-f[i]:h[r]+=f[i]+_),g[1-r]+=d[a]/2-f[a]/2,c.setPosition(m),l.setPosition(h),u.setPosition(g);var v={x:0,y:0};if(v[i]=p?n[i]:d[i],v[a]=Math.max(d[a],f[a]),v[o]=Math.min(0,f[o]+g[1-r]),l.__rectSize=n[i],p){var y={x:0,y:0};y[i]=Math.max(n[i]-f[i]-_,0),y[a]=v[a],l.setClipPath(new Uo({shape:y})),l.__rectSize=y[i]}else u.eachChild(function(e){e.attr({invisible:!0,silent:!0})});var b=this._getPageInfo(e);return b.pageIndex!=null&&Bd(c,{x:b.contentPosition[0],y:b.contentPosition[1]},p?e:null),this._updatePageInfoView(e,b),v},t.prototype._pageGo=function(e,t,n){var r=this._getPageInfo(t)[e];r!=null&&n.dispatchAction({type:`legendScroll`,scrollDataIndex:r,legendId:t.id})},t.prototype._updatePageInfoView=function(e,t){var n=this._controllerGroup;R([`pagePrev`,`pageNext`],function(r){var i=t[r+`DataIndex`]!=null,a=n.childOfName(r);a&&(a.setStyle(`fill`,i?e.get(`pageIconColor`,!0):e.get(`pageIconInactiveColor`,!0)),a.cursor=i?`pointer`:`default`)});var r=n.childOfName(`pageText`),i=e.get(`pageFormatter`),a=t.pageIndex,o=a==null?0:a+1,s=t.pageCount;r&&i&&r.setStyle(`text`,V(i)?i.replace(`{current}`,o==null?``:o+``).replace(`{total}`,s==null?``:s+``):i({current:o,total:s}))},t.prototype._getPageInfo=function(e){var t=e.get(`scrollDataIndex`,!0),n=this.getContentGroup(),r=this._containerGroup.__rectSize,i=e.getOrient().index,a=zU[i],o=BU[i],s=this._findTargetItemIndex(t),c=n.children(),l=c[s],u=c.length,d=+!!u,f={contentPosition:[n.x,n.y],pageCount:d,pageIndex:d-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!l)return f;var p=v(l);f.contentPosition[i]=-p.s;for(var m=s+1,h=p,g=p,_=null;m<=u;++m)_=v(c[m]),(!_&&g.e>h.s+r||_&&!y(_,h.s))&&(h=g.i>h.i?g:_,h&&(f.pageNextDataIndex??=h.i,++f.pageCount)),g=_;for(var m=s-1,h=p,g=p,_=null;m>=-1;--m)_=v(c[m]),(!_||!y(g,_.s))&&h.i=t&&e.s<=t+r}},t.prototype._findTargetItemIndex=function(e){if(!this._showController)return 0;var t,n=this.getContentGroup(),r;return n.eachChild(function(n,i){var a=n.__legendDataIndex;r==null&&a!=null&&(r=i),a===e&&(t=i)}),t??r},t.type=`legend.scroll`,t}(TU);function HU(e){e.registerAction(`legendScroll`,`legendscroll`,function(e,t){var n=e.scrollDataIndex;n!=null&&t.eachComponent({mainType:`legend`,subType:`scroll`,query:e},function(e){e.setScrollDataIndex(n)})})}function UU(e){hk(FU),e.registerComponentModel(IU),e.registerComponentView(VU),HU(e)}function WU(e){hk(FU),hk(UU)}var GU={get:function(e,t,n){var r=P((KU[e]||{})[t]);return n&&B(r)?r[r.length-1]:r}},KU={color:{active:[`#006edd`,`#e0ffff`],inactive:[A_.color.transparent]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:[`circle`,`roundRect`,`diamond`],inactive:[`none`]},symbolSize:{active:[10,50],inactive:[0,0]}},qU=TA.mapVisual,JU=TA.eachVisual,YU=B,XU=R,ZU=Os,QU=Ss,$U=function(e){p(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.stateList=[`inRange`,`outOfRange`],n.replacableOptionKeys=[`inRange`,`outOfRange`,`target`,`controller`,`color`],n.layoutMode={type:`box`,ignoreSize:!0},n.dataBound=[-1/0,1/0],n.targetVisuals={},n.controllerVisuals={},n}return t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n)},t.prototype.optionUpdated=function(e,t){var n=this.option;!t&&vU(n,e,this.replacableOptionKeys),this.textStyleModel=this.getModel(`textStyle`),this.resetItemSize(),this.completeVisualOption()},t.prototype.resetVisual=function(e){var t=this.stateList;e=fe(e,this),this.controllerVisuals=_U(this.option.controller,t,e),this.targetVisuals=_U(this.option.target,t,e)},t.prototype.getItemSymbol=function(){return null},t.prototype.getTargetSeriesIndices=function(){var e=this,t=this.option.seriesTargets;if(t){var n=[];return XU(t,function(t){if(t.seriesIndex!=null)n.push(t.seriesIndex);else if(t.seriesId!=null){var r;e.ecModel.eachSeries(function(e){e.id===t.seriesId&&(r=e)}),r&&n.push(r.componentIndex)}}),n}var r=this.option.seriesId,i=this.option.seriesIndex;i==null&&r==null&&(i=`all`);var a=Oc(this.ecModel,`series`,{index:i,id:r},{useDefault:!1,enableAll:!0,enableNone:!1}).models;return z(a,function(e){return e.componentIndex})},t.prototype.eachTargetSeries=function(e,t){R(this.getTargetSeriesIndices(),function(n){var r=this.ecModel.getSeriesByIndex(n);r&&e.call(t,r)},this)},t.prototype.isTargetSeries=function(e){var t=!1;return this.eachTargetSeries(function(n){n===e&&(t=!0)}),t},t.prototype.formatValueText=function(e,t,n){var r=this.option,i=r.precision,a=this.dataBound,o=r.formatter,s;n||=[`<`,`>`],B(e)&&(e=e.slice(),s=!0);var c=t?e:s?[l(e[0]),l(e[1])]:l(e);if(V(o))return o.replace(`{value}`,s?c[0]:c).replace(`{value2}`,s?c[1]:c);if(me(o))return s?o(e[0],e[1]):o(e);if(s)return e[0]===a[0]?n[0]+` `+c[1]:e[1]===a[1]?n[1]+` `+c[0]:c[0]+` - `+c[1];return c;function l(e){return e===a[0]?`min`:e===a[1]?`max`:(+e).toFixed(Math.min(i,20))}},t.prototype.resetExtent=function(){var e=this.option,t=ZU([e.min,e.max]);this._dataExtent=t},t.prototype.getDimension=function(e){var t=this,n=this.option.seriesTargets;if(n){var r=le(n,function(n){return n.seriesIndex!=null&&n.seriesIndex===e||n.seriesId!=null&&n.seriesId===t.ecModel.getSeriesByIndex(e).id});if(r)return r.dimension}return this.option.dimension},t.prototype.getDataDimensionIndex=function(e){var t=e.hostModel.seriesIndex,n=this.getDimension(t);if(n!=null)return e.getDimensionIndex(n);for(var r=e.dimensions,i=r.length-1;i>=0;i--){var a=r[i],o=e.getDimensionInfo(a);if(!o.isCalculationCoord)return o.storeDimIndex}},t.prototype.getExtent=function(){return this._dataExtent.slice()},t.prototype.completeVisualOption=function(){var e=this.ecModel,t=this.option,n={inRange:t.inRange,outOfRange:t.outOfRange},r=t.target||={},i=t.controller||={};F(r,n),F(i,n);var a=this.isCategory();o.call(this,r),o.call(this,i),s.call(this,r,`inRange`,`outOfRange`),c.call(this,i);function o(n){YU(t.color)&&!n.inRange&&(n.inRange={color:t.color.slice().reverse()}),n.inRange=n.inRange||{color:e.get(`gradientColor`)}}function s(e,t,n){var r=e[t],i=e[n];r&&!i&&(i=e[n]={},XU(r,function(e,t){if(TA.isValidType(t)){var n=GU.get(t,`inactive`,a);n!=null&&(i[t]=n,t===`color`&&!i.hasOwnProperty(`opacity`)&&!i.hasOwnProperty(`colorAlpha`)&&(i.opacity=[0,0]))}}))}function c(e){var t=(e.inRange||{}).symbol||(e.outOfRange||{}).symbol,n=(e.inRange||{}).symbolSize||(e.outOfRange||{}).symbolSize,r=this.get(`inactiveColor`),i=this.getItemSymbol()||`roundRect`;XU(this.stateList,function(o){var s=this.itemSize,c=e[o];c||=e[o]={color:a?r:[r]},c.symbol??(c.symbol=t&&P(t)||(a?i:[i])),c.symbolSize??(c.symbolSize=n&&P(n)||(a?s[0]:[s[0],s[0]])),c.symbol=qU(c.symbol,function(e){return e===`none`?i:e});var l=c.symbolSize;if(l!=null){var u=-1/0;JU(l,function(e){e>u&&(u=e)}),c.symbolSize=qU(l,function(e){return QU(e,[0,u],[0,s[0]],!0)})}},this)}},t.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get(`itemWidth`)),parseFloat(this.get(`itemHeight`))]},t.prototype.isCategory=function(){return!!this.option.categories},t.prototype.setSelected=function(e){},t.prototype.getSelected=function(){return null},t.prototype.getValueState=function(e){return null},t.prototype.getVisualMeta=function(e){return null},t.type=`visualMap`,t.dependencies=[`series`],t.defaultOption={show:!0,z:4,min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:`vertical`,backgroundColor:A_.color.transparent,borderColor:A_.color.borderTint,contentColor:A_.color.theme[0],inactiveColor:A_.color.disabled,borderWidth:0,padding:A_.size.m,textGap:10,precision:0,textStyle:{color:A_.color.secondary}},t}(n_),eW=[20,140],tW=function(e){p(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.optionUpdated=function(t,n){e.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(e){e.mappingMethod=`linear`,e.dataExtent=this.getExtent()}),this._resetRange()},t.prototype.resetItemSize=function(){e.prototype.resetItemSize.apply(this,arguments);var t=this.itemSize;(t[0]==null||isNaN(t[0]))&&(t[0]=eW[0]),(t[1]==null||isNaN(t[1]))&&(t[1]=eW[1])},t.prototype._resetRange=function(){var e=this.getExtent(),t=this.option.range;!t||t.auto?(e.auto=1,this.option.range=e):B(t)&&(t[0]>t[1]&&t.reverse(),t[0]=Math.max(t[0],e[0]),t[1]=Math.min(t[1],e[1]))},t.prototype.completeVisualOption=function(){e.prototype.completeVisualOption.apply(this,arguments),R(this.stateList,function(e){var t=this.option.controller[e].symbolSize;t&&t[0]!==t[1]&&(t[0]=t[1]/3)},this)},t.prototype.setSelected=function(e){this.option.range=e.slice(),this._resetRange()},t.prototype.getSelected=function(){var e=this.getExtent(),t=Os((this.get(`range`)||[]).slice());return t[0]>e[1]&&(t[0]=e[1]),t[1]>e[1]&&(t[1]=e[1]),t[0]=n[1]||e<=t[1])?`inRange`:`outOfRange`},t.prototype.findTargetDataIndices=function(e){var t=[];return this.eachTargetSeries(function(n){var r=[],i=n.getData();i.each(this.getDataDimensionIndex(i),function(t,n){e[0]<=t&&t<=e[1]&&r.push(n)},this),t.push({seriesId:n.id,dataIndex:r})},this),t},t.prototype.getVisualMeta=function(e){var t=nW(this,`outOfRange`,this.getExtent()),n=nW(this,`inRange`,this.option.range.slice()),r=[];function i(t,n){r.push({value:t,color:e(t,n)})}for(var a=0,o=0,s=n.length,c=t.length;oe[1])break;r.push({color:this.getControllerVisual(o,`color`,t),offset:a/n})}return r.push({color:this.getControllerVisual(e[1],`color`,t),offset:1}),r},t.prototype._createBarPoints=function(e,t){var n=this.visualMapModel.itemSize;return[[n[0]-t[0],e[0]],[n[0],e[0]],[n[0],e[1]],[n[0]-t[1],e[1]]]},t.prototype._createBarGroup=function(e){var t=this._orient,n=this.visualMapModel.get(`inverse`);return new Lu(t===`horizontal`&&!n?{scaleX:e===`bottom`?1:-1,rotation:Math.PI/2}:t===`horizontal`&&n?{scaleX:e===`bottom`?-1:1,rotation:-Math.PI/2}:t===`vertical`&&!n?{scaleX:e===`left`?1:-1,scaleY:-1}:{scaleX:e===`left`?1:-1})},t.prototype._updateHandle=function(e,t){if(this._useHandle){var n=this._shapes,r=this.visualMapModel,i=n.handleThumbs,a=n.handleLabels,o=r.itemSize,s=r.getExtent(),c=this._applyTransform(`left`,n.mainGroup);cW([0,1],function(l){var u=i[l];u.setStyle(`fill`,t.handlesColor[l]),u.y=e[l];var d=sW(e[l],[0,o[1]],s,!0),f=this.getControllerVisual(d,`symbolSize`);u.scaleX=u.scaleY=f/o[0],u.x=o[0]-f/2;var p=ff(n.handleLabelPoints[l],df(u,this.group));if(this._orient===`horizontal`){var m=c===`left`||c===`top`?(o[0]-f)/2:(o[0]-f)/-2;p[1]+=m}a[l].setStyle({x:p[0],y:p[1],text:r.formatValueText(this._dataInterval[l]),verticalAlign:`middle`,align:this._orient===`vertical`?this._applyTransform(`left`,n.mainGroup):`center`})},this)}},t.prototype._showIndicator=function(e,t,n,r){var i=this.visualMapModel,a=i.getExtent(),o=i.itemSize,s=[0,o[1]],c=this._shapes,l=c.indicator;if(l){l.attr(`invisible`,!1);var u=this.getControllerVisual(e,`color`,{convertOpacityToAlpha:!0}),d=this.getControllerVisual(e,`symbolSize`),f=sW(e,a,s,!0),p=o[0]-d/2,m={x:l.x,y:l.y};l.y=f,l.x=p;var h=ff(c.indicatorLabelPoint,df(l,this.group)),g=c.indicatorLabel;g.attr(`invisible`,!1);var _=this._applyTransform(`left`,c.mainGroup),v=this._orient===`horizontal`;g.setStyle({text:(n||``)+i.formatValueText(t),verticalAlign:v?_:`middle`,align:v?`center`:_});var y={x:p,y:f,style:{fill:u}},b={style:{x:h[0],y:h[1]}};if(i.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var x={duration:100,easing:`cubicInOut`,additive:!0};l.x=m.x,l.y=m.y,l.animateTo(y,x),g.animateTo(b,x)}else l.attr(y),g.attr(b);this._firstShowIndicator=!1;var S=this._shapes.handleLabels;if(S)for(var C=0;Ci[1]&&(l[1]=1/0),t&&(l[0]===-1/0?this._showIndicator(c,l[1],`< `,o):l[1]===1/0?this._showIndicator(c,l[0],`> `,o):this._showIndicator(c,c,`≈ `,o));var u=this._hoverLinkDataIndices,d=[];(t||gW(n))&&(d=this._hoverLinkDataIndices=n.findTargetDataIndices(l));var f=xc(u,d);this._dispatchHighDown(`downplay`,oW(f[0],n)),this._dispatchHighDown(`highlight`,oW(f[1],n))}},t.prototype._hoverLinkFromSeriesMouseOver=function(e){var t;if(NE(e.target,function(e){var n=Xc(e);if(n.dataIndex!=null)return t=n,!0},!0),t){var n=this.ecModel.getSeriesByIndex(t.seriesIndex),r=this.visualMapModel;if(r.isTargetSeries(n)){var i=n.getData(t.dataType),a=i.getStore().get(r.getDataDimensionIndex(i),t.dataIndex);isNaN(a)||this._showIndicator(a,a)}}},t.prototype._hideIndicator=function(){var e=this._shapes;e.indicator&&e.indicator.attr(`invisible`,!0),e.indicatorLabel&&e.indicatorLabel.attr(`invisible`,!0);var t=this._shapes.handleLabels;if(t)for(var n=0;n=0&&(i.dimension=a,r.push(i))}}),e.getData().setVisual(`visualMeta`,r)}}];function xW(e,t,n,r){for(var i=t.targetVisuals[r],a=TA.prepareVisualTypes(i),o={color:jE(e.getData(),`color`)},s=0,c=a.length;s0:e.splitNumber>0)||e.calculable)?`continuous`:`piecewise`}),e.registerAction(vW,yW),R(bW,function(t){e.registerVisual(e.PRIORITY.VISUAL.COMPONENT,t)}),e.registerPreprocessor(CW))}function DW(e){e.registerComponentModel(tW),e.registerComponentView(pW),EW(e)}var OW=function(e){p(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n._pieceList=[],n}return t.prototype.optionUpdated=function(t,n){e.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var r=this._mode=this._determineMode();this._pieceList=[],kW[this._mode].call(this,this._pieceList),this._resetSelected(t,n);var i=this.option.categories;this.resetVisual(function(e,t){r===`categories`?(e.mappingMethod=`category`,e.categories=P(i)):(e.dataExtent=this.getExtent(),e.mappingMethod=`piecewise`,e.pieceList=z(this._pieceList,function(e){return e=P(e),t!==`inRange`&&(e.visual=null),e}))})},t.prototype.completeVisualOption=function(){var t=this.option,n={},r=TA.listVisualTypes(),i=this.isCategory();R(t.pieces,function(e){R(r,function(t){e.hasOwnProperty(t)&&(n[t]=1)})}),R(n,function(e,n){var r=!1;R(this.stateList,function(e){r=r||a(t,e,n)||a(t.target,e,n)},this),!r&&R(this.stateList,function(e){(t[e]||(t[e]={}))[n]=GU.get(n,e===`inRange`?`active`:`inactive`,i)})},this);function a(e,t,n){return e&&e[t]&&e[t].hasOwnProperty(n)}e.prototype.completeVisualOption.apply(this,arguments)},t.prototype._resetSelected=function(e,t){var n=this.option,r=this._pieceList,i=(t?n:e).selected||{};if(n.selected=i,R(r,function(e,t){var n=this.getSelectedMapKey(e);i.hasOwnProperty(n)||(i[n]=!0)},this),n.selectedMode===`single`){var a=!1;R(r,function(e,t){var n=this.getSelectedMapKey(e);i[n]&&(a?i[n]=!1:a=!0)},this)}},t.prototype.getItemSymbol=function(){return this.get(`itemSymbol`)},t.prototype.getSelectedMapKey=function(e){return this._mode===`categories`?e.value+``:e.index+``},t.prototype.getPieceList=function(){return this._pieceList},t.prototype._determineMode=function(){var e=this.option;return e.pieces&&e.pieces.length>0?`pieces`:this.option.categories?`categories`:`splitNumber`},t.prototype.setSelected=function(e){this.option.selected=P(e)},t.prototype.getValueState=function(e){var t=TA.findPieceIndex(e,this._pieceList);return t==null?`outOfRange`:this.option.selected[this.getSelectedMapKey(this._pieceList[t])]?`inRange`:`outOfRange`},t.prototype.findTargetDataIndices=function(e){var t=[],n=this._pieceList;return this.eachTargetSeries(function(r){var i=[],a=r.getData();a.each(this.getDataDimensionIndex(a),function(t,r){TA.findPieceIndex(t,n)===e&&i.push(r)},this),t.push({seriesId:r.id,dataIndex:i})},this),t},t.prototype.getRepresentValue=function(e){var t;if(this.isCategory())t=e.value;else if(e.value!=null)t=e.value;else{var n=e.interval||[];t=n[0]===-1/0&&n[1]===1/0?0:(n[0]+n[1])/2}return t},t.prototype.getVisualMeta=function(e){if(this.isCategory())return;var t=[],n=[``,``],r=this;function i(i,a){var o=r.getRepresentValue({interval:i});a||=r.getValueState(o);var s=e(o,a);i[0]===-1/0?n[0]=s:i[1]===1/0?n[1]=s:t.push({value:i[0],color:s},{value:i[1],color:s})}var a=this._pieceList.slice();if(!a.length)a.push({interval:[-1/0,1/0]});else{var o=a[0].interval[0];o!==-1/0&&a.unshift({interval:[-1/0,o]}),o=a[a.length-1].interval[1],o!==1/0&&a.push({interval:[o,1/0]})}var s=-1/0;return R(a,function(e){var t=e.interval;t&&(t[0]>s&&i([s,t[0]],`outOfRange`),i(t.slice()),s=t[1])},this),{stops:t,outerColors:n}},t.type=`visualMap.piecewise`,t.defaultOption=bh($U.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:`auto`,itemWidth:20,itemHeight:14,itemSymbol:`roundRect`,pieces:null,categories:null,splitNumber:5,selectedMode:`multiple`,itemGap:10,hoverLink:!0}),t}($U),kW={splitNumber:function(e){var t=this.option,n=Math.min(t.precision,20),r=this.getExtent(),i=t.splitNumber;i=Math.max(parseInt(i,10),1),t.splitNumber=i;for(var a=(r[1]-r[0])/i;+a.toFixed(n)!==a&&n<5;)n++;t.precision=n,a=+a.toFixed(n),t.minOpen&&e.push({interval:[-1/0,r[0]],close:[0,0]});for(var o=0,s=r[0];o`,`≥`][t[0]]];e.text=e.text||this.formatValueText(e.value==null?e.interval:e.value,!1,n)},this)}};function AW(e,t){var n=e.inverse;(e.orient===`vertical`?!n:n)&&t.reverse()}var jW=function(e){p(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.doRender=function(){var e=this.group;e.removeAll();var t=this.visualMapModel,n=t.get(`textGap`),r=t.textStyleModel,i=this._getItemAlign(),a=t.itemSize,o=this._getViewData(),s=o.endsText,c=Se(t.get(`showLabel`,!0),!s),l=!t.get(`selectedMode`);s&&this._renderEndsText(e,s[0],a,c,i),R(o.viewPieceList,function(o){var s=o.piece,u=new Lu;u.onclick=fe(this._onItemClick,this,s),this._enableHoverLink(u,o.indexInModelPieceList);var d=t.getRepresentValue(s);if(this._createItemSymbol(u,d,[0,0,a[0],a[1]],l),c){var f=this.visualMapModel.getValueState(d),p=r.get(`align`)||i;u.add(new Jo({style:qf(r,{x:p===`right`?-n:a[0]+n,y:a[1]/2,text:s.text,verticalAlign:r.get(`verticalAlign`)||`middle`,align:p,opacity:Ce(r.get(`opacity`),f===`outOfRange`?.5:1)}),silent:l}))}e.add(u)},this),s&&this._renderEndsText(e,s[1],a,c,i),qg(t.get(`orient`),e,t.get(`itemGap`)),this.renderBackground(e),this.positionGroup(e)},t.prototype._enableHoverLink=function(e,t){var n=this;e.on(`mouseover`,function(){return r(`highlight`)}).on(`mouseout`,function(){return r(`downplay`)});var r=function(e){var r=n.visualMapModel;r.option.hoverLink&&n.api.dispatchAction({type:e,batch:oW(r.findTargetDataIndices(t),r)})}},t.prototype._getItemAlign=function(){var e=this.visualMapModel,t=e.option;if(t.orient===`vertical`)return aW(e,this.api,e.itemSize);var n=t.align;return(!n||n===`auto`)&&(n=`left`),n},t.prototype._renderEndsText=function(e,t,n,r,i){if(t){var a=new Lu,o=this.visualMapModel.textStyleModel;a.add(new Jo({style:qf(o,{x:r?i===`right`?n[0]:0:n[0]/2,y:n[1]/2,verticalAlign:`middle`,align:r?i:`center`,text:t})})),e.add(a)}},t.prototype._getViewData=function(){var e=this.visualMapModel,t=z(e.getPieceList(),function(e,t){return{piece:e,indexInModelPieceList:t}}),n=e.get(`text`),r=e.get(`orient`),i=e.get(`inverse`);return(r===`horizontal`?i:!i)?t.reverse():n&&=n.slice().reverse(),{viewPieceList:t,endsText:n}},t.prototype._createItemSymbol=function(e,t,n,r){var i=yv(this.getControllerVisual(t,`symbol`),n[0],n[1],n[2],n[3],this.getControllerVisual(t,`color`));i.silent=r,e.add(i)},t.prototype._onItemClick=function(e){var t=this.visualMapModel,n=t.option,r=n.selectedMode;if(r){var i=P(n.selected),a=t.getSelectedMapKey(e);r===`single`||r===!0?(i[a]=!0,R(i,function(e,t){i[t]=t===a})):i[a]=!i[a],this.api.dispatchAction({type:`selectDataRange`,from:this.uid,visualMapId:this.visualMapModel.id,selected:i})}},t.type=`visualMap.piecewise`,t}(rW);function MW(e){e.registerComponentModel(OW),e.registerComponentView(jW),EW(e)}function NW(e){hk(DW),hk(MW)}var PW={label:{enabled:!0},decal:{show:!1}},FW=Cc(),IW=Cc(),LW=Yc(RW);function RW(e,t){var n=e.getModel(`aria`);if(!n.get(`enabled`))return;var r=IW(e).scope||(IW(e).scope={}),i=P(PW);F(i.label,e.getLocaleModel().get(`aria`),!1),F(n.option,i,!1),a(),o();function a(){if(n.getModel(`decal`).get(`show`)){var t=Ie();e.eachSeries(function(e){e.isColorBySeries()||(FW(e).scope=t.get(e.type)||t.set(e.type,{}))}),e.eachSeries(function(t){if(me(t.enableAriaDecal)){t.enableAriaDecal();return}var n=t.getData();if(t.isColorBySeries()){var i=s_(t.ecModel,t.name,r,e.getSeriesCount()),a=n.getVisual(`decal`);n.setVisual(`decal`,u(a,i))}else{var o=t.getRawData(),s={},c=FW(t).scope;n.each(function(e){var t=n.getRawIndex(e);s[t]=e});var l=o.count();o.each(function(e){var r=s[e],i=o.getName(e)||e+``,a=s_(t.ecModel,i,c,l),d=n.getItemVisual(r,`decal`);n.setItemVisual(r,`decal`,u(d,a))})}function u(e,t){var n=e?I(I({},t),e):t;return n.dirty=!0,n}})}}function o(){var r=t.getZr().dom;if(r){var i=e.getLocaleModel().get(`aria`),a=n.getModel(`label`);if(a.option=L(a.option,i),a.get(`enabled`)){if(r.setAttribute(`role`,`img`),a.get(`description`)){r.setAttribute(`aria-label`,a.get(`description`));return}var o=e.getSeriesCount(),u=a.get([`data`,`maxCount`])||10,d=a.get([`series`,`maxCount`])||10,f=Math.min(o,d),p;if(!(o<1)){var m=c();p=m?s(a.get([`general`,`withTitle`]),{title:m}):a.get([`general`,`withoutTitle`]);var h=[],g=o>1?a.get([`series`,`multiple`,`prefix`]):a.get([`series`,`single`,`prefix`]);p+=s(g,{seriesCount:o}),e.eachSeries(function(e,t){if(t1?a.get([`series`,`multiple`,r]):a.get([`series`,`single`,r]),n=s(n,{seriesId:e.seriesIndex,seriesName:e.get(`name`),seriesType:l(e.subType)});var i=e.getData();if(i.count()>u){var c=a.get([`data`,`partialData`]);n+=s(c,{displayCnt:u})}else n+=a.get([`data`,`allData`]);for(var d=a.get([`data`,`separator`,`middle`]),p=a.get([`data`,`separator`,`end`]),m=a.get([`data`,`excludeDimensionId`]),g=[],_=0;_=WW:-c>=WW),f=c>0?c%WW:c%WW+WW,p=!1;p=d?!0:!ai(u)&&f>=UW==!!l;var m=e+n*HW(a),h=t+r*VW(a);this._start&&this._add(`M`,m,h);var g=Math.round(i*GW);if(d){var _=1/this._p,v=(l?1:-1)*(WW-_);this._add(`A`,n,r,g,1,+l,e+n*HW(a+v),t+r*VW(a+v)),_>.01&&this._add(`A`,n,r,g,0,+l,m,h)}else{var y=e+n*HW(o),b=t+r*VW(o);this._add(`A`,n,r,g,+p,+l,y,b)}},e.prototype.rect=function(e,t,n,r){this._add(`M`,e,t),this._add(`l`,n,0),this._add(`l`,0,r),this._add(`l`,-n,0),this._add(`Z`)},e.prototype.closePath=function(){this._d.length>0&&this._add(`Z`)},e.prototype._add=function(e,t,n,r,i,a,o,s,c){for(var l=[],u=this._p,d=1;d`}function cG(e){return``}function lG(e,t){t||={};var n=t.newline?` -`:``;function r(e){var t=e.children,i=e.tag,a=e.attrs,o=e.text;return sG(i,a)+(i===`style`?o||``:Ph(o))+(t?``+n+z(t,function(e){return r(e)}).join(n)+n:``)+cG(i)}return r(e)}function uG(e,t,n){n||={};var r=n.newline?` -`:``,i=` {`+r,a=r+`}`,o=z(ue(e),function(t){return t+i+z(ue(e[t]),function(n){return n+`:`+e[t][n]+`;`}).join(r)+a}).join(r),s=z(ue(t),function(e){return`@keyframes `+e+i+z(ue(t[e]),function(n){return n+i+z(ue(t[e][n]),function(r){var i=t[e][n][r];return r===`d`&&(i=`path("`+i+`")`),r+`:`+i+`;`}).join(r)+a}).join(r)+a}).join(r);return!o&&!s?``:[``].join(r)}function dG(e){return{zrId:e,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function fG(e,t,n,r){return oG(`svg`,`root`,{width:e,height:t,xmlns:eG,"xmlns:xlink":tG,version:`1.1`,baseProfile:`full`,viewBox:r?`0 0 `+e+` `+t:!1},n)}var pG=0;function mG(){return pG++}var hG={cubicIn:`0.32,0,0.67,0`,cubicOut:`0.33,1,0.68,1`,cubicInOut:`0.65,0,0.35,1`,quadraticIn:`0.11,0,0.5,0`,quadraticOut:`0.5,1,0.89,1`,quadraticInOut:`0.45,0,0.55,1`,quarticIn:`0.5,0,0.75,0`,quarticOut:`0.25,1,0.5,1`,quarticInOut:`0.76,0,0.24,1`,quinticIn:`0.64,0,0.78,0`,quinticOut:`0.22,1,0.36,1`,quinticInOut:`0.83,0,0.17,1`,sinusoidalIn:`0.12,0,0.39,0`,sinusoidalOut:`0.61,1,0.88,1`,sinusoidalInOut:`0.37,0,0.63,1`,exponentialIn:`0.7,0,0.84,0`,exponentialOut:`0.16,1,0.3,1`,exponentialInOut:`0.87,0,0.13,1`,circularIn:`0.55,0,1,0.45`,circularOut:`0,0.55,0.45,1`,circularInOut:`0.85,0,0.15,1`},gG=`transform-origin`;function _G(e,t,n){var r=I({},e.shape);I(r,t),e.buildPath(n,r);var i=new KW;return i.reset(bi(e)),n.rebuildPath(i,1),i.generateStr(),i.getStr()}function vG(e,t){var n=t.originX,r=t.originY;(n||r)&&(e[gG]=n+`px `+r+`px`)}var yG={fill:`fill`,opacity:`opacity`,lineWidth:`stroke-width`,lineDashOffset:`stroke-dashoffset`};function bG(e,t){var n=t.zrId+`-ani-`+t.cssAnimIdx++;return t.cssAnims[n]=e,n}function xG(e,t,n){var r=e.shape.paths,i={},a,o;if(R(r,function(e){var t=dG(n.zrId);t.animation=!0,CG(e,{},t,!0);var r=t.cssAnims,s=t.cssNodes,c=ue(r),l=c.length;if(l){o=c[l-1];var u=r[o];for(var d in u){var f=u[d];i[d]=i[d]||{d:``},i[d].d+=f.d||``}for(var p in s){var m=s[p].animation;m.indexOf(o)>=0&&(a=m)}}}),a){t.d=!1;var s=bG(i,n);return a.replace(o,s)}}function SG(e){return V(e)?hG[e]?`cubic-bezier(`+hG[e]+`)`:Ar(e)?e:``:``}function CG(e,t,n,r){var i=e.animators,a=i.length,o=[];if(e instanceof Sd){var s=xG(e,t,n);if(s)o.push(s);else if(!a)return}else if(!a)return;for(var c={},l=0;l0}).length)return bG(l,n)+` `+i[0]+` both`}for(var g in c){var s=h(c[g]);s&&o.push(s)}if(o.length){var _=n.zrId+`-cls-`+mG();n.cssNodes[`.`+_]={animation:o.join(`,`)},t.class=_}}function wG(e,t,n){if(!e.ignore)if(e.isSilent()){var r={"pointer-events":`none`};TG(r,t,n,!0)}else{var i=e.states.emphasis&&e.states.emphasis.style?e.states.emphasis.style:{},a=i.fill;if(!a){var o=e.style&&e.style.fill,s=e.states.select&&e.states.select.style&&e.states.select.style.fill,c=e.currentStates.indexOf(`select`)>=0&&s||o;c&&(a=ti(c))}var l=i.lineWidth;if(l){var u=!i.strokeNoScale&&e.transform?e.transform[0]:1;l/=u}var r={cursor:`pointer`};a&&(r.fill=a),i.stroke&&(r.stroke=i.stroke),l&&(r[`stroke-width`]=l),TG(r,t,n,!0)}}function TG(e,t,n,r){var i=JSON.stringify(e),a=n.cssStyleCache[i];a||(a=n.zrId+`-cls-`+mG(),n.cssStyleCache[i]=a,n.cssNodes[`.`+a+(r?`:hover`:``)]=e),t.class=t.class?t.class+` `+a:a}var EG=Math.round;function DG(e){return e&&V(e.src)}function OG(e){return e&&me(e.toDataURL)}function kG(e,t,n,r){$W(function(i,a){var o=i===`fill`||i===`stroke`;o&&vi(a)?RG(t,e,i,r):o&&hi(a)?zG(n,e,i,r):e[i]=a,o&&r.ssr&&a===`none`&&(e[`pointer-events`]=`visible`)},t,n,!1),Hee(n,e,r)}function AG(e,t){var n=Yw(t);n&&(n.each(function(t,n){t!=null&&(e[(`ecmeta_`+n).toLowerCase()]=t+``)}),t.isSilent()&&(e[iG+`silent`]=`true`))}function jG(e){return ai(e[0]-1)&&ai(e[1])&&ai(e[2])&&ai(e[3]-1)}function MG(e){return ai(e[4])&&ai(e[5])}function NG(e,t,n){if(t&&!(MG(t)&&jG(t))){var r=n?10:1e4;e.transform=jG(t)?`translate(`+EG(t[4]*r)/r+` `+EG(t[5]*r)/r+`)`:ci(t)}}function PG(e,t,n){for(var r=e.points,i=[],a=0;a`u`){var g=`Image width/height must been given explictly in svg-ssr renderer.`;De(f,g),De(p,g)}else if(f==null||p==null){var _=function(e,t){if(e){var n=e.elm,r=f||t.width,i=p||t.height;e.tag===`pattern`&&(l?(i=1,r/=a.width):u&&(r=1,i/=a.height)),e.attrs.width=r,e.attrs.height=i,n&&(n.setAttribute(`width`,r),n.setAttribute(`height`,i))}},v=pt(m,null,e,function(e){c||_(S,e),_(d,e)});v&&v.width&&v.height&&(f||=v.width,p||=v.height)}d=oG(`image`,`img`,{href:m,width:f,height:p}),o.width=f,o.height=p}else i.svgElement&&(d=P(i.svgElement),o.width=i.svgWidth,o.height=i.svgHeight);if(d){var y,b;c?y=b=1:l?(b=1,y=o.width/a.width):u?(y=1,b=o.height/a.height):o.patternUnits=`userSpaceOnUse`,y!=null&&!isNaN(y)&&(o.width=y),b!=null&&!isNaN(b)&&(o.height=b);var x=xi(i);x&&(o.patternTransform=x);var S=oG(`pattern`,``,o,[d]),C=lG(S),w=r.patternCache,T=w[C];T||(T=r.zrId+`-p`+r.patternIdx++,w[C]=T,o.id=T,S=r.defs[T]=oG(`pattern`,T,o,[d])),t[n]=yi(T)}}function Uee(e,t,n){var r=n.clipPathCache,i=n.defs,a=r[e.id];if(!a){a=n.zrId+`-c`+n.clipPathIdx++;var o={id:a};r[e.id]=a,i[a]=oG(`clipPath`,a,o,[IG(e,n)])}t[`clip-path`]=yi(a)}function BG(e){return document.createTextNode(e)}function VG(e,t,n){e.insertBefore(t,n)}function HG(e,t){e.removeChild(t)}function UG(e,t){e.appendChild(t)}function WG(e){return e.parentNode}function GG(e){return e.nextSibling}function KG(e,t){e.textContent=t}var qG=58,Wee=120,Gee=oG(``,``);function JG(e){return e===void 0}function YG(e){return e!==void 0}function Kee(e,t,n){for(var r={},i=t;i<=n;++i){var a=e[i].key;a!==void 0&&(r[a]=i)}return r}function XG(e,t){var n=e.key===t.key;return e.tag===t.tag&&n}function ZG(e){var t,n=e.children,r=e.tag;if(YG(r)){var i=e.elm=aG(r);if(eK(Gee,e),B(n))for(t=0;ta?(m=n[c+1]==null?null:n[c+1].elm,QG(e,m,n,i,c)):$G(e,t,r,a))}function tK(e,t){var n=t.elm=e.elm,r=e.children,i=t.children;e!==t&&(eK(e,t),JG(t.text)?YG(r)&&YG(i)?r!==i&&qee(n,r,i):YG(i)?(YG(e.text)&&KG(n,``),QG(n,null,i,0,i.length-1)):YG(r)?$G(n,r,0,r.length-1):YG(e.text)&&KG(n,``):e.text!==t.text&&(YG(r)&&$G(n,r,0,r.length-1),KG(n,t.text)))}function Jee(e,t){if(XG(e,t))tK(e,t);else{var n=e.elm,r=WG(n);ZG(t),r!==null&&(VG(r,t.elm,GG(n)),$G(r,[e],0,0))}return t}var nK=0,rK=function(){function e(e,t,n){if(this.type=`svg`,this.configLayer=iK(`configLayer`),this.storage=t,this._opts=n=I({},n),this.root=e,this._id=`zr`+nK++,this._oldVNode=fG(n.width,n.height),e&&!n.ssr){var r=this._viewport=document.createElement(`div`);r.style.cssText=`position:relative;overflow:hidden`;var i=this._svgDom=this._oldVNode.elm=aG(`svg`);eK(null,this._oldVNode),r.appendChild(i),e.appendChild(r)}this.resize(n.width,n.height)}return e.prototype.getType=function(){return this.type},e.prototype.getViewportRoot=function(){return this._viewport},e.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},e.prototype.getSvgDom=function(){return this._svgDom},e.prototype.refresh=function(){if(this.root){var e=this.renderToVNode({willUpdate:!0});e.attrs.style=`position:absolute;left:0;top:0;user-select:none`,Jee(this._oldVNode,e),this._oldVNode=e}},e.prototype.renderOneToVNode=function(e){return LG(e,dG(this._id))},e.prototype.renderToVNode=function(e){e||={};var t=this.storage.getDisplayList(!0),n=this._width,r=this._height,i=dG(this._id);i.animation=e.animation,i.willUpdate=e.willUpdate,i.compress=e.compress,i.emphasis=e.emphasis,i.ssr=this._opts.ssr;var a=[],o=this._bgVNode=aK(n,r,this._backgroundColor,i);o&&a.push(o);var s=e.compress?null:this._mainVNode=oG(`g`,`main`,{},[]);this._paintList(t,i,s?s.children:a),s&&a.push(s);var c=z(ue(i.defs),function(e){return i.defs[e]});if(c.length&&a.push(oG(`defs`,`defs`,{},c)),e.animation){var l=uG(i.cssNodes,i.cssAnims,{newline:!0});if(l){var u=oG(`style`,`stl`,{},[],l);a.push(u)}}return fG(n,r,a,e.useViewBox)},e.prototype.renderToString=function(e){return e||={},lG(this.renderToVNode({animation:Ce(e.cssAnimation,!0),emphasis:Ce(e.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:Ce(e.useViewBox,!0)}),{newline:!0})},e.prototype.setBackgroundColor=function(e){this._backgroundColor=e},e.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},e.prototype._paintList=function(e,t,n){for(var r=e.length,i=[],a=0,o,s,c=0,l=0;l=0&&!(d&&s&&d[m]===s[m]);m--);for(var h=p-1;h>m;h--)a--,o=i[a-1];for(var g=m+1;g{if(!i.current)return;let t=YO(i.current,void 0,{renderer:`svg`});t.setOption({animationDuration:280,aria:{enabled:!0,decal:{show:!0},description:n},...e}),r&&t.on(`click`,r);let a=new ResizeObserver(()=>t.resize());return a.observe(i.current),()=>{a.disconnect(),t.dispose()}},[n,r,e]),(0,K.jsx)(`div`,{ref:i,className:`echart`,style:{height:t},role:`img`,"aria-label":n})}new Intl.NumberFormat(void 0,{maximumFractionDigits:0});function cK(e){let[t,n]=e.split(`/`),r=new Date(t),i=new Date(n);if(Number.isNaN(r.valueOf())||Number.isNaN(i.valueOf()))return e;let a=Math.round((i.valueOf()-r.valueOf())/6e4);return a>=60&&a%60==0?`Last ${a/60}h`:`Last ${Math.max(a,1)}m`}function q(e,t,n){function r(n,r){if(n._zod||Object.defineProperty(n,"_zod",{value:{def:r,constr:o,traits:new Set},enumerable:!1}),n._zod.traits.has(e))return;n._zod.traits.add(e),t(n,r);let i=o.prototype,a=Object.keys(i);for(let e=0;en?.Parent&&t instanceof n.Parent?!0:t?._zod?.traits?.has(e)}),Object.defineProperty(o,"name",{value:e}),o}function lK(e){return e&&Object.assign(hK,e),hK}var uK,dK,fK,pK,mK,hK,gK=o((()=>{dK=Object.freeze({status:`aborted`}),fK=Symbol(`zod_brand`),pK=class extends Error{constructor(){super(`Encountered Promise during synchronous parse. Use .parseAsync() instead.`)}},mK=class extends Error{constructor(e){super(`Encountered unidirectional transform during encode: ${e}`),this.name=`ZodEncodeError`}},(uK=globalThis).__zod_globalConfig??(uK.__zod_globalConfig={}),hK=globalThis.__zod_globalConfig})),_K=c({BIGINT_FORMAT_RANGES:()=>wq,Class:()=>Tq,NUMBER_FORMAT_RANGES:()=>Cq,aborted:()=>tq,allowsEval:()=>yq,assert:()=>SK,assertEqual:()=>vK,assertIs:()=>bK,assertNever:()=>xK,assertNotEqual:()=>yK,assignProp:()=>jK,base64ToUint8Array:()=>dq,base64urlToUint8Array:()=>pq,cached:()=>TK,captureStackTrace:()=>vq,cleanEnum:()=>uq,cleanRegex:()=>DK,clone:()=>WK,cloneDef:()=>NK,createTransparentProxy:()=>GK,defineLazy:()=>kK,esc:()=>LK,escapeRegex:()=>UK,explicitlyAborted:()=>nq,extend:()=>XK,finalizeIssue:()=>aq,floatSafeRemainder:()=>OK,getElementAtPath:()=>PK,getEnumValues:()=>CK,getLengthableOrigin:()=>sq,getParsedType:()=>bq,getSizableOrigin:()=>oq,hexToUint8Array:()=>hq,isObject:()=>zK,isPlainObject:()=>BK,issue:()=>lq,joinValues:()=>J,jsonStringifyReplacer:()=>wK,merge:()=>QK,mergeDefs:()=>MK,normalizeParams:()=>Y,nullish:()=>EK,numKeys:()=>HK,objectClone:()=>AK,omit:()=>YK,optionalKeys:()=>qK,parsedType:()=>cq,partial:()=>$K,pick:()=>JK,prefixIssues:()=>rq,primitiveTypes:()=>Sq,promiseAllObject:()=>FK,propertyKeyTypes:()=>xq,randomString:()=>IK,required:()=>eq,safeExtend:()=>ZK,shallowClone:()=>VK,slugify:()=>RK,stringifyPrimitive:()=>KK,uint8ArrayToBase64:()=>fq,uint8ArrayToBase64url:()=>mq,uint8ArrayToHex:()=>gq,unwrapMessage:()=>iq});function vK(e){return e}function yK(e){return e}function bK(e){}function xK(e){throw Error(`Unexpected value in exhaustive check`)}function SK(e){}function CK(e){let t=Object.values(e).filter(e=>typeof e==`number`);return Object.entries(e).filter(([e,n])=>t.indexOf(+e)===-1).map(([e,t])=>t)}function J(e,t=`|`){return e.map(e=>KK(e)).join(t)}function wK(e,t){return typeof t==`bigint`?t.toString():t}function TK(e){return{get value(){{let t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function EK(e){return e==null}function DK(e){let t=+!!e.startsWith(`^`),n=e.endsWith(`$`)?e.length-1:e.length;return e.slice(t,n)}function OK(e,t){let n=e/t,r=Math.round(n),i=2**-52*Math.max(Math.abs(n),1);return Math.abs(n-r)e?.[t],e):e}function FK(e){let t=Object.keys(e),n=t.map(t=>e[t]);return Promise.all(n).then(e=>{let n={};for(let r=0;rt};if(t?.message!==void 0){if(t?.error!==void 0)throw Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error==`string`?{...t,error:()=>t.error}:t}function GK(e){let t;return new Proxy({},{get(n,r,i){return t??=e(),Reflect.get(t,r,i)},set(n,r,i,a){return t??=e(),Reflect.set(t,r,i,a)},has(n,r){return t??=e(),Reflect.has(t,r)},deleteProperty(n,r){return t??=e(),Reflect.deleteProperty(t,r)},ownKeys(n){return t??=e(),Reflect.ownKeys(t)},getOwnPropertyDescriptor(n,r){return t??=e(),Reflect.getOwnPropertyDescriptor(t,r)},defineProperty(n,r,i){return t??=e(),Reflect.defineProperty(t,r,i)}})}function KK(e){return typeof e==`bigint`?e.toString()+`n`:typeof e==`string`?`"${e}"`:`${e}`}function qK(e){return Object.keys(e).filter(t=>e[t]._zod.optin===`optional`&&e[t]._zod.optout===`optional`)}function JK(e,t){let n=e._zod.def,r=n.checks;if(r&&r.length>0)throw Error(`.pick() cannot be used on object schemas containing refinements`);return WK(e,MK(e._zod.def,{get shape(){let e={};for(let r in t){if(!(r in n.shape))throw Error(`Unrecognized key: "${r}"`);t[r]&&(e[r]=n.shape[r])}return jK(this,`shape`,e),e},checks:[]}))}function YK(e,t){let n=e._zod.def,r=n.checks;if(r&&r.length>0)throw Error(`.omit() cannot be used on object schemas containing refinements`);return WK(e,MK(e._zod.def,{get shape(){let r={...e._zod.def.shape};for(let e in t){if(!(e in n.shape))throw Error(`Unrecognized key: "${e}"`);t[e]&&delete r[e]}return jK(this,`shape`,r),r},checks:[]}))}function XK(e,t){if(!BK(t))throw Error(`Invalid input to extend: expected a plain object`);let n=e._zod.def.checks;if(n&&n.length>0){let n=e._zod.def.shape;for(let e in t)if(Object.getOwnPropertyDescriptor(n,e)!==void 0)throw Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}return WK(e,MK(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t};return jK(this,`shape`,n),n}}))}function ZK(e,t){if(!BK(t))throw Error(`Invalid input to safeExtend: expected a plain object`);return WK(e,MK(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t};return jK(this,`shape`,n),n}}))}function QK(e,t){if(e._zod.def.checks?.length)throw Error(`.merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.`);return WK(e,MK(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t._zod.def.shape};return jK(this,`shape`,n),n},get catchall(){return t._zod.def.catchall},checks:t._zod.def.checks??[]}))}function $K(e,t,n){let r=t._zod.def.checks;if(r&&r.length>0)throw Error(`.partial() cannot be used on object schemas containing refinements`);return WK(t,MK(t._zod.def,{get shape(){let r=t._zod.def.shape,i={...r};if(n)for(let t in n){if(!(t in r))throw Error(`Unrecognized key: "${t}"`);n[t]&&(i[t]=e?new e({type:`optional`,innerType:r[t]}):r[t])}else for(let t in r)i[t]=e?new e({type:`optional`,innerType:r[t]}):r[t];return jK(this,`shape`,i),i},checks:[]}))}function eq(e,t,n){return WK(t,MK(t._zod.def,{get shape(){let r=t._zod.def.shape,i={...r};if(n)for(let t in n){if(!(t in i))throw Error(`Unrecognized key: "${t}"`);n[t]&&(i[t]=new e({type:`nonoptional`,innerType:r[t]}))}else for(let t in r)i[t]=new e({type:`nonoptional`,innerType:r[t]});return jK(this,`shape`,i),i}}))}function tq(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n{var n;return(n=t).path??(n.path=[]),t.path.unshift(e),t})}function iq(e){return typeof e==`string`?e:e?.message}function aq(e,t,n){let r=e.message?e.message:iq(e.inst?._zod.def?.error?.(e))??iq(t?.error?.(e))??iq(n.customError?.(e))??iq(n.localeError?.(e))??`Invalid input`,{inst:i,continue:a,input:o,...s}=e;return s.path??=[],s.message=r,t?.reportInput&&(s.input=o),s}function oq(e){return e instanceof Set?`set`:e instanceof Map?`map`:e instanceof File?`file`:`unknown`}function sq(e){return Array.isArray(e)?`array`:typeof e==`string`?`string`:`unknown`}function cq(e){let t=typeof e;switch(t){case`number`:return Number.isNaN(e)?`nan`:`number`;case`object`:{if(e===null)return`null`;if(Array.isArray(e))return`array`;let t=e;if(t&&Object.getPrototypeOf(t)!==Object.prototype&&`constructor`in t&&t.constructor)return t.constructor.name}}return t}function lq(...e){let[t,n,r]=e;return typeof t==`string`?{message:t,code:`custom`,input:n,inst:r}:{...t}}function uq(e){return Object.entries(e).filter(([e,t])=>Number.isNaN(Number.parseInt(e,10))).map(e=>e[1])}function dq(e){let t=atob(e),n=new Uint8Array(t.length);for(let e=0;ee.toString(16).padStart(2,`0`)).join(``)}var _q,vq,yq,bq,xq,Sq,Cq,wq,Tq,Eq=o((()=>{gK(),_q=Symbol(`evaluating`),vq=`captureStackTrace`in Error?Error.captureStackTrace:(...e)=>{},yq=TK(()=>{if(hK.jitless||typeof navigator<`u`&&navigator?.userAgent?.includes(`Cloudflare`))return!1;try{return Function(``),!0}catch{return!1}}),bq=e=>{let t=typeof e;switch(t){case`undefined`:return`undefined`;case`string`:return`string`;case`number`:return Number.isNaN(e)?`nan`:`number`;case`boolean`:return`boolean`;case`function`:return`function`;case`bigint`:return`bigint`;case`symbol`:return`symbol`;case`object`:return Array.isArray(e)?`array`:e===null?`null`:e.then&&typeof e.then==`function`&&e.catch&&typeof e.catch==`function`?`promise`:typeof Map<`u`&&e instanceof Map?`map`:typeof Set<`u`&&e instanceof Set?`set`:typeof Date<`u`&&e instanceof Date?`date`:typeof File<`u`&&e instanceof File?`file`:`object`;default:throw Error(`Unknown data type: ${t}`)}},xq=new Set([`string`,`number`,`symbol`]),Sq=new Set([`string`,`number`,`bigint`,`boolean`,`symbol`,`undefined`]),Cq={safeint:[-(2**53-1),2**53-1],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]},wq={int64:[BigInt(`-9223372036854775808`),BigInt(`9223372036854775807`)],uint64:[BigInt(0),BigInt(`18446744073709551615`)]},Tq=class{constructor(...e){}}}));function Dq(e,t=e=>e.message){let n={},r=[];for(let i of e.issues)i.path.length>0?(n[i.path[0]]=n[i.path[0]]||[],n[i.path[0]].push(t(i))):r.push(t(i));return{formErrors:r,fieldErrors:n}}function Oq(e,t=e=>e.message){let n={_errors:[]},r=(e,i=[])=>{for(let a of e.issues)if(a.code===`invalid_union`&&a.errors.length)a.errors.map(e=>r({issues:e},[...i,...a.path]));else if(a.code===`invalid_key`)r({issues:a.issues},[...i,...a.path]);else if(a.code===`invalid_element`)r({issues:a.issues},[...i,...a.path]);else{let e=[...i,...a.path];if(e.length===0)n._errors.push(t(a));else{let r=n,i=0;for(;ie.message){let n={errors:[]},r=(e,i=[])=>{var a,o;for(let s of e.issues)if(s.code===`invalid_union`&&s.errors.length)s.errors.map(e=>r({issues:e},[...i,...s.path]));else if(s.code===`invalid_key`)r({issues:s.issues},[...i,...s.path]);else if(s.code===`invalid_element`)r({issues:s.issues},[...i,...s.path]);else{let e=[...i,...s.path];if(e.length===0){n.errors.push(t(s));continue}let r=n,c=0;for(;ctypeof e==`object`?e.key:e);for(let e of n)typeof e==`number`?t.push(`[${e}]`):typeof e==`symbol`?t.push(`[${JSON.stringify(String(e))}]`):/[^\w$]/.test(e)?t.push(`[${JSON.stringify(e)}]`):(t.length&&t.push(`.`),t.push(e));return t.join(``)}function jq(e){let t=[],n=[...e.issues].sort((e,t)=>(e.path??[]).length-(t.path??[]).length);for(let e of n)t.push(`✖ ${e.message}`),e.path?.length&&t.push(` → at ${Aq(e.path)}`);return t.join(` -`)}var Mq,Nq,Pq,Fq=o((()=>{gK(),Eq(),Mq=(e,t)=>{e.name=`$ZodError`,Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,wK,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},Nq=q(`$ZodError`,Mq),Pq=q(`$ZodError`,Mq,{Parent:Error})})),Iq,Lq,Rq,zq,Bq,Vq,Hq,Uq,Wq,Gq,Kq,qq,Jq,Yq,Xq,Zq,Qq,$q,eJ,tJ,nJ,rJ,iJ,aJ,oJ=o((()=>{gK(),Fq(),Eq(),Iq=e=>(t,n,r,i)=>{let a=r?{...r,async:!1}:{async:!1},o=t._zod.run({value:n,issues:[]},a);if(o instanceof Promise)throw new pK;if(o.issues.length){let t=new((i?.Err)??e)(o.issues.map(e=>aq(e,a,lK())));throw vq(t,i?.callee),t}return o.value},Lq=Iq(Pq),Rq=e=>async(t,n,r,i)=>{let a=r?{...r,async:!0}:{async:!0},o=t._zod.run({value:n,issues:[]},a);if(o instanceof Promise&&(o=await o),o.issues.length){let t=new((i?.Err)??e)(o.issues.map(e=>aq(e,a,lK())));throw vq(t,i?.callee),t}return o.value},zq=Rq(Pq),Bq=e=>(t,n,r)=>{let i=r?{...r,async:!1}:{async:!1},a=t._zod.run({value:n,issues:[]},i);if(a instanceof Promise)throw new pK;return a.issues.length?{success:!1,error:new(e??Nq)(a.issues.map(e=>aq(e,i,lK())))}:{success:!0,data:a.value}},Vq=Bq(Pq),Hq=e=>async(t,n,r)=>{let i=r?{...r,async:!0}:{async:!0},a=t._zod.run({value:n,issues:[]},i);return a instanceof Promise&&(a=await a),a.issues.length?{success:!1,error:new e(a.issues.map(e=>aq(e,i,lK())))}:{success:!0,data:a.value}},Uq=Hq(Pq),Wq=e=>(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return Iq(e)(t,n,i)},Gq=Wq(Pq),Kq=e=>(t,n,r)=>Iq(e)(t,n,r),qq=Kq(Pq),Jq=e=>async(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return Rq(e)(t,n,i)},Yq=Jq(Pq),Xq=e=>async(t,n,r)=>Rq(e)(t,n,r),Zq=Xq(Pq),Qq=e=>(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return Bq(e)(t,n,i)},$q=Qq(Pq),eJ=e=>(t,n,r)=>Bq(e)(t,n,r),tJ=eJ(Pq),nJ=e=>async(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return Hq(e)(t,n,i)},rJ=nJ(Pq),iJ=e=>async(t,n,r)=>Hq(e)(t,n,r),aJ=iJ(Pq)})),sJ=c({base64:()=>zJ,base64url:()=>BJ,bigint:()=>JJ,boolean:()=>ZJ,browserEmail:()=>MJ,cidrv4:()=>LJ,cidrv6:()=>RJ,cuid:()=>mJ,cuid2:()=>hJ,date:()=>KJ,datetime:()=>dJ,domain:()=>HJ,duration:()=>bJ,e164:()=>WJ,email:()=>DJ,emoji:()=>cJ,extendedDuration:()=>xJ,guid:()=>SJ,hex:()=>nY,hostname:()=>VJ,html5Email:()=>OJ,httpProtocol:()=>UJ,idnEmail:()=>jJ,integer:()=>YJ,ipv4:()=>PJ,ipv6:()=>FJ,ksuid:()=>vJ,lowercase:()=>eY,mac:()=>IJ,md5_base64:()=>iY,md5_base64url:()=>aY,md5_hex:()=>rY,nanoid:()=>yJ,null:()=>QJ,number:()=>XJ,rfc5322Email:()=>kJ,sha1_base64:()=>sY,sha1_base64url:()=>cY,sha1_hex:()=>oY,sha256_base64:()=>uY,sha256_base64url:()=>dY,sha256_hex:()=>lY,sha384_base64:()=>pY,sha384_base64url:()=>mY,sha384_hex:()=>fY,sha512_base64:()=>gY,sha512_base64url:()=>_Y,sha512_hex:()=>hY,string:()=>qJ,time:()=>uJ,ulid:()=>gJ,undefined:()=>$J,unicodeEmail:()=>AJ,uppercase:()=>tY,uuid:()=>CJ,uuid4:()=>wJ,uuid6:()=>TJ,uuid7:()=>EJ,xid:()=>_J});function cJ(){return new RegExp(NJ,`u`)}function lJ(e){let t=`(?:[01]\\d|2[0-3]):[0-5]\\d`;return typeof e.precision==`number`?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function uJ(e){return RegExp(`^${lJ(e)}$`)}function dJ(e){let t=lJ({precision:e.precision}),n=[`Z`];e.local&&n.push(``),e.offset&&n.push(`([+-](?:[01]\\d|2[0-3]):[0-5]\\d)`);let r=`${t}(?:${n.join(`|`)})`;return RegExp(`^${GJ}T(?:${r})$`)}function fJ(e,t){return RegExp(`^[A-Za-z0-9+/]{${e}}${t}$`)}function pJ(e){return RegExp(`^[A-Za-z0-9_-]{${e}}$`)}var mJ,hJ,gJ,_J,vJ,yJ,bJ,xJ,SJ,CJ,wJ,TJ,EJ,DJ,OJ,kJ,AJ,jJ,MJ,NJ,PJ,FJ,IJ,LJ,RJ,zJ,BJ,VJ,HJ,UJ,WJ,GJ,KJ,qJ,JJ,YJ,XJ,ZJ,QJ,$J,eY,tY,nY,rY,iY,aY,oY,sY,cY,lY,uY,dY,fY,pY,mY,hY,gY,_Y,vY=o((()=>{Eq(),mJ=/^[cC][0-9a-z]{6,}$/,hJ=/^[0-9a-z]+$/,gJ=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,_J=/^[0-9a-vA-V]{20}$/,vJ=/^[A-Za-z0-9]{27}$/,yJ=/^[a-zA-Z0-9_-]{21}$/,bJ=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,xJ=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,SJ=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,CJ=e=>e?RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,wJ=CJ(4),TJ=CJ(6),EJ=CJ(7),DJ=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,OJ=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,kJ=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,AJ=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,jJ=AJ,MJ=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,NJ=`^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$`,PJ=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,FJ=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,IJ=e=>{let t=UK(e??`:`);return RegExp(`^(?:[0-9A-F]{2}${t}){5}[0-9A-F]{2}$|^(?:[0-9a-f]{2}${t}){5}[0-9a-f]{2}$`)},LJ=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,RJ=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,zJ=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,BJ=/^[A-Za-z0-9_-]*$/,VJ=/^(?=.{1,253}\.?$)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?)*\.?$/,HJ=/^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/,UJ=/^https?$/,WJ=/^\+[1-9]\d{6,14}$/,GJ=`(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))`,KJ=RegExp(`^${GJ}$`),qJ=e=>{let t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??``}}`:`[\\s\\S]*`;return RegExp(`^${t}$`)},JJ=/^-?\d+n?$/,YJ=/^-?\d+$/,XJ=/^-?\d+(?:\.\d+)?$/,ZJ=/^(?:true|false)$/i,QJ=/^null$/i,$J=/^undefined$/i,eY=/^[^A-Z]*$/,tY=/^[^a-z]*$/,nY=/^[0-9a-fA-F]*$/,rY=/^[0-9a-fA-F]{32}$/,iY=fJ(22,`==`),aY=pJ(22),oY=/^[0-9a-fA-F]{40}$/,sY=fJ(27,`=`),cY=pJ(27),lY=/^[0-9a-fA-F]{64}$/,uY=fJ(43,`=`),dY=pJ(43),fY=/^[0-9a-fA-F]{96}$/,pY=fJ(64,``),mY=pJ(64),hY=/^[0-9a-fA-F]{128}$/,gY=fJ(86,`==`),_Y=pJ(86)}));function yY(e,t,n){e.issues.length&&t.issues.push(...rq(n,e.issues))}var bY,xY,SY,CY,wY,TY,EY,DY,OY,kY,AY,jY,MY,NY,PY,FY,IY,LY,RY,zY,BY,VY,HY,UY=o((()=>{gK(),vY(),Eq(),bY=q(`$ZodCheck`,(e,t)=>{var n;e._zod??={},e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),xY={number:`number`,bigint:`bigint`,object:`date`},SY=q(`$ZodCheckLessThan`,(e,t)=>{bY.init(e,t);let n=xY[typeof t.value];e._zod.onattach.push(e=>{let n=e._zod.bag,r=(t.inclusive?n.maximum:n.exclusiveMaximum)??1/0;t.value{(t.inclusive?r.value<=t.value:r.value{bY.init(e,t);let n=xY[typeof t.value];e._zod.onattach.push(e=>{let n=e._zod.bag,r=(t.inclusive?n.minimum:n.exclusiveMinimum)??-1/0;t.value>r&&(t.inclusive?n.minimum=t.value:n.exclusiveMinimum=t.value)}),e._zod.check=r=>{(t.inclusive?r.value>=t.value:r.value>t.value)||r.issues.push({origin:n,code:`too_small`,minimum:typeof t.value==`object`?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),wY=q(`$ZodCheckMultipleOf`,(e,t)=>{bY.init(e,t),e._zod.onattach.push(e=>{var n;(n=e._zod.bag).multipleOf??(n.multipleOf=t.value)}),e._zod.check=n=>{if(typeof n.value!=typeof t.value)throw Error(`Cannot mix number and bigint in multiple_of check.`);(typeof n.value==`bigint`?n.value%t.value===BigInt(0):OK(n.value,t.value)===0)||n.issues.push({origin:typeof n.value,code:`not_multiple_of`,divisor:t.value,input:n.value,inst:e,continue:!t.abort})}}),TY=q(`$ZodCheckNumberFormat`,(e,t)=>{bY.init(e,t),t.format=t.format||`float64`;let n=t.format?.includes(`int`),r=n?`int`:`number`,[i,a]=Cq[t.format];e._zod.onattach.push(e=>{let r=e._zod.bag;r.format=t.format,r.minimum=i,r.maximum=a,n&&(r.pattern=YJ)}),e._zod.check=o=>{let s=o.value;if(n){if(!Number.isInteger(s)){o.issues.push({expected:r,format:t.format,code:`invalid_type`,continue:!1,input:s,inst:e});return}if(!Number.isSafeInteger(s)){s>0?o.issues.push({input:s,code:`too_big`,maximum:2**53-1,note:`Integers must be within the safe integer range.`,inst:e,origin:r,inclusive:!0,continue:!t.abort}):o.issues.push({input:s,code:`too_small`,minimum:-(2**53-1),note:`Integers must be within the safe integer range.`,inst:e,origin:r,inclusive:!0,continue:!t.abort});return}}sa&&o.issues.push({origin:`number`,input:s,code:`too_big`,maximum:a,inclusive:!0,inst:e,continue:!t.abort})}}),EY=q(`$ZodCheckBigIntFormat`,(e,t)=>{bY.init(e,t);let[n,r]=wq[t.format];e._zod.onattach.push(e=>{let i=e._zod.bag;i.format=t.format,i.minimum=n,i.maximum=r}),e._zod.check=i=>{let a=i.value;ar&&i.issues.push({origin:`bigint`,input:a,code:`too_big`,maximum:r,inclusive:!0,inst:e,continue:!t.abort})}}),DY=q(`$ZodCheckMaxSize`,(e,t)=>{var n;bY.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!EK(t)&&t.size!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag.maximum??1/0;t.maximum{let r=n.value;r.size<=t.maximum||n.issues.push({origin:oq(r),code:`too_big`,maximum:t.maximum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),OY=q(`$ZodCheckMinSize`,(e,t)=>{var n;bY.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!EK(t)&&t.size!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag.minimum??-1/0;t.minimum>n&&(e._zod.bag.minimum=t.minimum)}),e._zod.check=n=>{let r=n.value;r.size>=t.minimum||n.issues.push({origin:oq(r),code:`too_small`,minimum:t.minimum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),kY=q(`$ZodCheckSizeEquals`,(e,t)=>{var n;bY.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!EK(t)&&t.size!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag;n.minimum=t.size,n.maximum=t.size,n.size=t.size}),e._zod.check=n=>{let r=n.value,i=r.size;if(i===t.size)return;let a=i>t.size;n.issues.push({origin:oq(r),...a?{code:`too_big`,maximum:t.size}:{code:`too_small`,minimum:t.size},inclusive:!0,exact:!0,input:n.value,inst:e,continue:!t.abort})}}),AY=q(`$ZodCheckMaxLength`,(e,t)=>{var n;bY.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!EK(t)&&t.length!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag.maximum??1/0;t.maximum{let r=n.value;if(r.length<=t.maximum)return;let i=sq(r);n.issues.push({origin:i,code:`too_big`,maximum:t.maximum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),jY=q(`$ZodCheckMinLength`,(e,t)=>{var n;bY.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!EK(t)&&t.length!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag.minimum??-1/0;t.minimum>n&&(e._zod.bag.minimum=t.minimum)}),e._zod.check=n=>{let r=n.value;if(r.length>=t.minimum)return;let i=sq(r);n.issues.push({origin:i,code:`too_small`,minimum:t.minimum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),MY=q(`$ZodCheckLengthEquals`,(e,t)=>{var n;bY.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!EK(t)&&t.length!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag;n.minimum=t.length,n.maximum=t.length,n.length=t.length}),e._zod.check=n=>{let r=n.value,i=r.length;if(i===t.length)return;let a=sq(r),o=i>t.length;n.issues.push({origin:a,...o?{code:`too_big`,maximum:t.length}:{code:`too_small`,minimum:t.length},inclusive:!0,exact:!0,input:n.value,inst:e,continue:!t.abort})}}),NY=q(`$ZodCheckStringFormat`,(e,t)=>{var n,r;bY.init(e,t),e._zod.onattach.push(e=>{let n=e._zod.bag;n.format=t.format,t.pattern&&(n.patterns??=new Set,n.patterns.add(t.pattern))}),t.pattern?(n=e._zod).check??(n.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:`string`,code:`invalid_format`,format:t.format,input:n.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(r=e._zod).check??(r.check=()=>{})}),PY=q(`$ZodCheckRegex`,(e,t)=>{NY.init(e,t),e._zod.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:`string`,code:`invalid_format`,format:`regex`,input:n.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),FY=q(`$ZodCheckLowerCase`,(e,t)=>{t.pattern??=eY,NY.init(e,t)}),IY=q(`$ZodCheckUpperCase`,(e,t)=>{t.pattern??=tY,NY.init(e,t)}),LY=q(`$ZodCheckIncludes`,(e,t)=>{bY.init(e,t);let n=UK(t.includes),r=new RegExp(typeof t.position==`number`?`^.{${t.position}}${n}`:n);t.pattern=r,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??=new Set,t.patterns.add(r)}),e._zod.check=n=>{n.value.includes(t.includes,t.position)||n.issues.push({origin:`string`,code:`invalid_format`,format:`includes`,includes:t.includes,input:n.value,inst:e,continue:!t.abort})}}),RY=q(`$ZodCheckStartsWith`,(e,t)=>{bY.init(e,t);let n=RegExp(`^${UK(t.prefix)}.*`);t.pattern??=n,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??=new Set,t.patterns.add(n)}),e._zod.check=n=>{n.value.startsWith(t.prefix)||n.issues.push({origin:`string`,code:`invalid_format`,format:`starts_with`,prefix:t.prefix,input:n.value,inst:e,continue:!t.abort})}}),zY=q(`$ZodCheckEndsWith`,(e,t)=>{bY.init(e,t);let n=RegExp(`.*${UK(t.suffix)}$`);t.pattern??=n,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??=new Set,t.patterns.add(n)}),e._zod.check=n=>{n.value.endsWith(t.suffix)||n.issues.push({origin:`string`,code:`invalid_format`,format:`ends_with`,suffix:t.suffix,input:n.value,inst:e,continue:!t.abort})}}),BY=q(`$ZodCheckProperty`,(e,t)=>{bY.init(e,t),e._zod.check=e=>{let n=t.schema._zod.run({value:e.value[t.property],issues:[]},{});if(n instanceof Promise)return n.then(n=>yY(n,e,t.property));yY(n,e,t.property)}}),VY=q(`$ZodCheckMimeType`,(e,t)=>{bY.init(e,t);let n=new Set(t.mime);e._zod.onattach.push(e=>{e._zod.bag.mime=t.mime}),e._zod.check=r=>{n.has(r.value.type)||r.issues.push({code:`invalid_value`,values:t.mime,input:r.value.type,inst:e,continue:!t.abort})}}),HY=q(`$ZodCheckOverwrite`,(e,t)=>{bY.init(e,t),e._zod.check=e=>{e.value=t.tx(e.value)}})})),WY,GY=o((()=>{WY=class{constructor(e=[]){this.content=[],this.indent=0,this&&(this.args=e)}indented(e){this.indent+=1,e(this),--this.indent}write(e){if(typeof e==`function`){e(this,{execution:`sync`}),e(this,{execution:`async`});return}let t=e.split(` +`).replace(Ld,``)}function zd(e,t){return t=Rd(t),Rd(e)===t}function Bd(e,t,n,r,a,o){switch(n){case`children`:typeof r==`string`?t===`body`||t===`textarea`&&r===``||Rt(e,r):(typeof r==`number`||typeof r==`bigint`)&&t!==`body`&&Rt(e,``+r);break;case`className`:St(e,`class`,r);break;case`tabIndex`:St(e,`tabindex`,r);break;case`dir`:case`role`:case`viewBox`:case`width`:case`height`:St(e,n,r);break;case`style`:Vt(e,r,o);break;case`data`:if(t!==`object`){St(e,`data`,r);break}case`src`:case`href`:if(r===``&&(t!==`a`||n!==`href`)){e.removeAttribute(n);break}if(r==null||typeof r==`function`||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=Gt(``+r),e.setAttribute(n,r);break;case`action`:case`formAction`:if(typeof r==`function`){e.setAttribute(n,`javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')`);break}if(typeof o==`function`&&(n===`formAction`?(t!==`input`&&Bd(e,t,`name`,a.name,a,null),Bd(e,t,`formEncType`,a.formEncType,a,null),Bd(e,t,`formMethod`,a.formMethod,a,null),Bd(e,t,`formTarget`,a.formTarget,a,null)):(Bd(e,t,`encType`,a.encType,a,null),Bd(e,t,`method`,a.method,a,null),Bd(e,t,`target`,a.target,a,null))),r==null||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=Gt(``+r),e.setAttribute(n,r);break;case`onClick`:r!=null&&(e.onclick=Kt);break;case`onScroll`:r!=null&&Ed(`scroll`,e);break;case`onScrollEnd`:r!=null&&Ed(`scrollend`,e);break;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(i(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(i(60));e.innerHTML=n}}break;case`multiple`:e.multiple=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`muted`:e.muted=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`defaultValue`:case`defaultChecked`:case`innerHTML`:case`ref`:break;case`autoFocus`:break;case`xlinkHref`:if(r==null||typeof r==`function`||typeof r==`boolean`||typeof r==`symbol`){e.removeAttribute(`xlink:href`);break}n=Gt(``+r),e.setAttributeNS(`http://www.w3.org/1999/xlink`,`xlink:href`,n);break;case`contentEditable`:case`spellCheck`:case`draggable`:case`value`:case`autoReverse`:case`externalResourcesRequired`:case`focusable`:case`preserveAlpha`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``+r):e.removeAttribute(n);break;case`inert`:case`allowFullScreen`:case`async`:case`autoPlay`:case`controls`:case`default`:case`defer`:case`disabled`:case`disablePictureInPicture`:case`disableRemotePlayback`:case`formNoValidate`:case`hidden`:case`loop`:case`noModule`:case`noValidate`:case`open`:case`playsInline`:case`readOnly`:case`required`:case`reversed`:case`scoped`:case`seamless`:case`itemScope`:r&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``):e.removeAttribute(n);break;case`capture`:case`download`:!0===r?e.setAttribute(n,``):!1!==r&&r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,r):e.removeAttribute(n);break;case`cols`:case`rows`:case`size`:case`span`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`&&!isNaN(r)&&1<=r?e.setAttribute(n,r):e.removeAttribute(n);break;case`rowSpan`:case`start`:r==null||typeof r==`function`||typeof r==`symbol`||isNaN(r)?e.removeAttribute(n):e.setAttribute(n,r);break;case`popover`:Ed(`beforetoggle`,e),Ed(`toggle`,e),xt(e,`popover`,r);break;case`xlinkActuate`:Ct(e,`http://www.w3.org/1999/xlink`,`xlink:actuate`,r);break;case`xlinkArcrole`:Ct(e,`http://www.w3.org/1999/xlink`,`xlink:arcrole`,r);break;case`xlinkRole`:Ct(e,`http://www.w3.org/1999/xlink`,`xlink:role`,r);break;case`xlinkShow`:Ct(e,`http://www.w3.org/1999/xlink`,`xlink:show`,r);break;case`xlinkTitle`:Ct(e,`http://www.w3.org/1999/xlink`,`xlink:title`,r);break;case`xlinkType`:Ct(e,`http://www.w3.org/1999/xlink`,`xlink:type`,r);break;case`xmlBase`:Ct(e,`http://www.w3.org/XML/1998/namespace`,`xml:base`,r);break;case`xmlLang`:Ct(e,`http://www.w3.org/XML/1998/namespace`,`xml:lang`,r);break;case`xmlSpace`:Ct(e,`http://www.w3.org/XML/1998/namespace`,`xml:space`,r);break;case`is`:xt(e,`is`,r);break;case`innerText`:case`textContent`:break;default:(!(2s)break;var u=c.transferSize,d=c.initiatorType;u&&Wd(d)&&(c=c.responseEnd,o+=u*(c`u`?null:document;function kf(e,t,n){var r=Of;if(r&&typeof t==`string`&&t){var i=jt(t);i=`link[rel="`+e+`"][href="`+i+`"]`,typeof n==`string`&&(i+=`[crossorigin="`+n+`"]`),Cf.has(i)||(Cf.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement(`link`),Hd(t,`link`,e),ft(t),r.head.appendChild(t)))}}function Af(e){Tf.D(e),kf(`dns-prefetch`,e,null)}function jf(e,t){Tf.C(e,t),kf(`preconnect`,e,t)}function Mf(e,t,n){Tf.L(e,t,n);var r=Of;if(r&&e&&t){var i=`link[rel="preload"][as="`+jt(t)+`"]`;t===`image`&&n&&n.imageSrcSet?(i+=`[imagesrcset="`+jt(n.imageSrcSet)+`"]`,typeof n.imageSizes==`string`&&(i+=`[imagesizes="`+jt(n.imageSizes)+`"]`)):i+=`[href="`+jt(e)+`"]`;var a=i;switch(t){case`style`:a=Rf(e);break;case`script`:a=Hf(e)}Sf.has(a)||(e=f({rel:`preload`,href:t===`image`&&n&&n.imageSrcSet?void 0:e,as:t},n),Sf.set(a,e),r.querySelector(i)!==null||t===`style`&&r.querySelector(zf(a))||t===`script`&&r.querySelector(Uf(a))||(t=r.createElement(`link`),Hd(t,`link`,e),ft(t),r.head.appendChild(t)))}}function Nf(e,t){Tf.m(e,t);var n=Of;if(n&&e){var r=t&&typeof t.as==`string`?t.as:`script`,i=`link[rel="modulepreload"][as="`+jt(r)+`"][href="`+jt(e)+`"]`,a=i;switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:a=Hf(e)}if(!Sf.has(a)&&(e=f({rel:`modulepreload`,href:e},t),Sf.set(a,e),n.querySelector(i)===null)){switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:if(n.querySelector(Uf(a)))return}r=n.createElement(`link`),Hd(r,`link`,e),ft(r),n.head.appendChild(r)}}}function Pf(e,t,n){Tf.S(e,t,n);var r=Of;if(r&&e){var i=dt(r).hoistableStyles,a=Rf(e);t||=`default`;var o=i.get(a);if(!o){var s={loading:0,preload:null};if(o=r.querySelector(zf(a)))s.loading=5;else{e=f({rel:`stylesheet`,href:e,"data-precedence":t},n),(n=Sf.get(a))&&Kf(e,n);var c=o=r.createElement(`link`);ft(c),Hd(c,`link`,e),c._p=new Promise(function(e,t){c.onload=e,c.onerror=t}),c.addEventListener(`load`,function(){s.loading|=1}),c.addEventListener(`error`,function(){s.loading|=2}),s.loading|=4,Gf(o,t,r)}o={type:`stylesheet`,instance:o,count:1,state:s},i.set(a,o)}}}function Ff(e,t){Tf.X(e,t);var n=Of;if(n&&e){var r=dt(n).hoistableScripts,i=Hf(e),a=r.get(i);a||(a=n.querySelector(Uf(i)),a||(e=f({src:e,async:!0},t),(t=Sf.get(i))&&qf(e,t),a=n.createElement(`script`),ft(a),Hd(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function If(e,t){Tf.M(e,t);var n=Of;if(n&&e){var r=dt(n).hoistableScripts,i=Hf(e),a=r.get(i);a||(a=n.querySelector(Uf(i)),a||(e=f({src:e,async:!0,type:`module`},t),(t=Sf.get(i))&&qf(e,t),a=n.createElement(`script`),ft(a),Hd(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Lf(e,t,n,r){var a=(a=ae.current)?wf(a):null;if(!a)throw Error(i(446));switch(e){case`meta`:case`title`:return null;case`style`:return typeof n.precedence==`string`&&typeof n.href==`string`?(t=Rf(n.href),n=dt(a).hoistableStyles,r=n.get(t),r||(r={type:`style`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};case`link`:if(n.rel===`stylesheet`&&typeof n.href==`string`&&typeof n.precedence==`string`){e=Rf(n.href);var o=dt(a).hoistableStyles,s=o.get(e);if(s||(a=a.ownerDocument||a,s={type:`stylesheet`,instance:null,count:0,state:{loading:0,preload:null}},o.set(e,s),(o=a.querySelector(zf(e)))&&!o._p&&(s.instance=o,s.state.loading=5),Sf.has(e)||(n={rel:`preload`,as:`style`,href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},Sf.set(e,n),o||Vf(a,e,n,s.state))),t&&r===null)throw Error(i(528,``));return s}if(t&&r!==null)throw Error(i(529,``));return null;case`script`:return t=n.async,n=n.src,typeof n==`string`&&t&&typeof t!=`function`&&typeof t!=`symbol`?(t=Hf(n),n=dt(a).hoistableScripts,r=n.get(t),r||(r={type:`script`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};default:throw Error(i(444,e))}}function Rf(e){return`href="`+jt(e)+`"`}function zf(e){return`link[rel="stylesheet"][`+e+`]`}function Bf(e){return f({},e,{"data-precedence":e.precedence,precedence:null})}function Vf(e,t,n,r){e.querySelector(`link[rel="preload"][as="style"][`+t+`]`)?r.loading=1:(t=e.createElement(`link`),r.preload=t,t.addEventListener(`load`,function(){return r.loading|=1}),t.addEventListener(`error`,function(){return r.loading|=2}),Hd(t,`link`,n),ft(t),e.head.appendChild(t))}function Hf(e){return`[src="`+jt(e)+`"]`}function Uf(e){return`script[async]`+e}function Wf(e,t,n){if(t.count++,t.instance===null)switch(t.type){case`style`:var r=e.querySelector(`style[data-href~="`+jt(n.href)+`"]`);if(r)return t.instance=r,ft(r),r;var a=f({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement(`style`),ft(r),Hd(r,`style`,a),Gf(r,n.precedence,e),t.instance=r;case`stylesheet`:a=Rf(n.href);var o=e.querySelector(zf(a));if(o)return t.state.loading|=4,t.instance=o,ft(o),o;r=Bf(n),(a=Sf.get(a))&&Kf(r,a),o=(e.ownerDocument||e).createElement(`link`),ft(o);var s=o;return s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),Hd(o,`link`,r),t.state.loading|=4,Gf(o,n.precedence,e),t.instance=o;case`script`:return o=Hf(n.src),(a=e.querySelector(Uf(o)))?(t.instance=a,ft(a),a):(r=n,(a=Sf.get(o))&&(r=f({},n),qf(r,a)),e=e.ownerDocument||e,a=e.createElement(`script`),ft(a),Hd(a,`link`,r),e.head.appendChild(a),t.instance=a);case`void`:return null;default:throw Error(i(443,t.type))}else t.type===`stylesheet`&&!(t.state.loading&4)&&(r=t.instance,t.state.loading|=4,Gf(r,n.precedence,e));return t.instance}function Gf(e,t,n){for(var r=n.querySelectorAll(`link[rel="stylesheet"][data-precedence],style[data-precedence]`),i=r.length?r[r.length-1]:null,a=i,o=0;o title`):null)}function Zf(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case`meta`:case`title`:return!0;case`style`:if(typeof t.precedence!=`string`||typeof t.href!=`string`||t.href===``)break;return!0;case`link`:if(typeof t.rel!=`string`||typeof t.href!=`string`||t.href===``||t.onLoad||t.onError)break;switch(t.rel){case`stylesheet`:return e=t.disabled,typeof t.precedence==`string`&&e==null;default:return!0}case`script`:if(t.async&&typeof t.async!=`function`&&typeof t.async!=`symbol`&&!t.onLoad&&!t.onError&&t.src&&typeof t.src==`string`)return!0}return!1}function Qf(e){return!(e.type===`stylesheet`&&!(e.state.loading&3))}function $f(e,t,n,r){if(n.type===`stylesheet`&&(typeof r.media!=`string`||!1!==matchMedia(r.media).matches)&&!(n.state.loading&4)){if(n.instance===null){var i=Rf(r.href),a=t.querySelector(zf(i));if(a){t=a._p,typeof t==`object`&&t&&typeof t.then==`function`&&(e.count++,e=np.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=a,ft(a);return}a=t.ownerDocument||t,r=Bf(r),(i=Sf.get(i))&&Kf(r,i),a=a.createElement(`link`),ft(a);var o=a;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),Hd(a,`link`,r),n.instance=a}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&!(n.state.loading&3)&&(e.count++,n=np.bind(e),t.addEventListener(`load`,n),t.addEventListener(`error`,n))}}var ep=0;function tp(e,t){return e.stylesheets&&e.count===0&&ip(e,e.stylesheets),0ep?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}function np(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)ip(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var rp=null;function ip(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,rp=new Map,t.forEach(ap,e),rp=null,np.call(e))}function ap(e,t){if(!(t.state.loading&4)){var n=rp.get(e);if(n)var r=n.get(null);else{n=new Map,rp.set(e,n);for(var i=e.querySelectorAll(`link[data-precedence],style[data-precedence]`),a=0;a{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=wV()}))(),EV=[`#fafafa`,`#e6e4de`,`#bfbdb6`,`#8b8e99`,`#565b69`,`#1d2433`,`#131721`,`#0b0e14`,`#080a10`,`#05070b`],DV=[`#f3ecfd`,`#ece3fb`,`#dcc9f7`,`#d2a6ff`,`#bf94ec`,`#a97ce0`,`#9163d6`,`#7c4dcc`,`#5b32a3`,`#40236f`],OV=[`#eefbe6`,`#dcf7cc`,`#c2f0a6`,`#a5e880`,`#8fe06c`,`#7fd962`,`#66c04b`,`#4f9c3a`,`#3b7a2c`,`#2a5a1f`],kV=[`#fff5e6`,`#ffe9c9`,`#ffd79b`,`#ffc571`,`#ffbc62`,`#ffb454`,`#ef9c33`,`#c87d21`,`#9c5f16`,`#74460f`],AV=[`#fdecee`,`#fbd9dc`,`#f8b6bc`,`#f59099`,`#f37d87`,`#f26d78`,`#e04d5a`,`#c03642`,`#96262f`,`#6f1a21`],jV=[`#e8f6ff`,`#ccebff`,`#a3daff`,`#7dcbff`,`#66c5ff`,`#59c2ff`,`#33a7e6`,`#1e86bd`,`#146694`,`#0d4a6d`],MV={dark:{text:`#bfbdb6`,muted:`#8b8e99`,grid:`#1d2433`,surface:`#131721`,border:`#565b69`},light:{text:`#4a5058`,muted:`#6b7280`,grid:`#eceef0`,surface:`#fcfcfc`,border:`#a4abb4`}},NV={display:`"IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace`,body:`"IBM Plex Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif`},PV={primaryColor:`brand`,primaryShade:{light:7,dark:5},autoContrast:!0,colors:{dark:EV,brand:DV,ok:OV,warn:kV,bad:AV,info:jV},defaultRadius:`md`,fontFamily:NV.body,fontFamilyMonospace:NV.display,headings:{fontFamily:NV.display,fontWeight:`500`},cursorType:`pointer`},FV=()=>({variables:{"--mantine-color-error":`var(--mantine-color-bad-filled)`},light:{},dark:{}}),IV=IM(PV);function LV({dark:e,children:t}){return(0,K.jsx)(PM,{theme:IV,cssVariablesResolver:FV,forceColorScheme:e?`dark`:`light`,children:(0,K.jsx)(YL,{withBorder:!0,radius:`lg`,style:{overflow:`hidden`},children:t})})}function RV({eyebrow:e,title:t,summary:n,onRefresh:r,disabled:i}){return(0,K.jsxs)(HR,{justify:`space-between`,align:`flex-start`,wrap:`nowrap`,px:{base:`md`,sm:`lg`},pt:`md`,pb:`sm`,children:[(0,K.jsxs)(zN,{miw:0,children:[(0,K.jsx)(Dz,{c:`dimmed`,size:`xs`,fw:700,tt:`uppercase`,lts:`0.1em`,children:e}),(0,K.jsx)(sV,{order:1,fz:`lg`,mt:2,style:{overflow:`hidden`,textOverflow:`ellipsis`,whiteSpace:`nowrap`},children:t}),n&&(0,K.jsx)(Dz,{c:`dimmed`,size:`sm`,mt:4,children:n})]}),(0,K.jsx)(zz,{variant:`default`,size:`xs`,leftSection:(0,K.jsx)(hV,{size:15,weight:`bold`}),onClick:()=>void r(),disabled:i,children:`Refresh`})]})}function zV({error:e,loading:t}){return e?(0,K.jsx)(Sz,{color:`bad`,m:`md`,children:e}):t?(0,K.jsxs)(Vz,{mih:160,p:`xl`,children:[(0,K.jsx)(wR,{size:`sm`}),(0,K.jsx)(Dz,{c:`dimmed`,size:`sm`,ml:`sm`,children:t})]}):null}function BV({icon:e,title:t,children:n,tall:r=!1}){return(0,K.jsx)(Vz,{mih:r?220:130,p:`xl`,children:(0,K.jsxs)(HR,{wrap:`nowrap`,children:[(0,K.jsx)(eV,{variant:`light`,size:`xl`,radius:`md`,children:e}),(0,K.jsxs)(zN,{children:[(0,K.jsx)(Dz,{fw:700,size:`sm`,children:t}),(0,K.jsx)(Dz,{c:`dimmed`,size:`xs`,mt:3,children:n})]})]})})}function VV({left:e,right:t}){return(0,K.jsxs)(HR,{justify:`space-between`,px:{base:`md`,sm:`lg`},py:`xs`,style:{borderTop:`1px solid var(--mantine-color-default-border)`},children:[(0,K.jsx)(Dz,{c:`dimmed`,size:`xs`,children:e}),(0,K.jsx)(Dz,{c:`dimmed`,size:`xs`,ta:`right`,children:t})]})}function HV(e,t=8){let[n,r]=(0,G.useState)(1),i=Math.max(1,Math.ceil(e.length/t));(0,G.useEffect)(()=>{n>i&&r(i)},[n,i]);let a=(n-1)*t;return{page:n,setPage:r,totalPages:i,pageItems:e.slice(a,a+t),from:e.length===0?0:a+1,to:Math.min(a+t,e.length),total:e.length}}function UV({page:e,totalPages:t,from:n,to:r,total:i,onChange:a}){return t<=1?null:(0,K.jsxs)(HR,{justify:`space-between`,gap:`sm`,px:{base:`md`,sm:`lg`},py:`xs`,style:{borderTop:`1px solid var(--mantine-color-default-border)`},children:[(0,K.jsxs)(Dz,{c:`dimmed`,size:`xs`,children:[n,`–`,r,` of `,i]}),(0,K.jsx)(pB,{value:e,total:t,onChange:a,size:`xs`,withEdges:!0,"aria-label":`Table pages`})]})}function WV(e){return MV[e?`dark`:`light`]}function GV(e){let t=e?5:7;return{ok:OV[t],warn:kV[t],bad:AV[t],info:jV[t]}}var KV=Cc(),qV=P,JV=fe,YV=function(){function e(){this._dragging=!1,this.animationThreshold=15}return e.prototype.render=function(e,t,n,r){var i=t.get(`value`),a=t.get(`status`);if(this._axisModel=e,this._axisPointerModel=t,this._api=n,!(!r&&this._lastValue===i&&this._lastStatus===a)){this._lastValue=i,this._lastStatus=a;var o=this._group,s=this._handle;if(!a||a===`hide`){o&&o.hide(),s&&s.hide();return}o&&o.show(),s&&s.show();var c={};this.makeElOption(c,i,e,t,n);var l=c.graphicKey;l!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=l;var u=this._moveAnimation=this.determineAnimation(e,t);if(!o)o=this._group=new Lu,this.createPointerEl(o,c,e,t),this.createLabelEl(o,c,e,t),n.getZr().add(o);else{var d=pe(XV,t,u);this.updatePointerEl(o,c,d),this.updateLabelEl(o,c,d,t)}eH(o,t,!0),this._renderHandle(i)}},e.prototype.remove=function(e){this.clear(e)},e.prototype.dispose=function(e){this.clear(e)},e.prototype.determineAnimation=function(e,t){var n=t.get(`animation`),r=e.axis,i=r.type===`category`,a=t.get(`snap`);if(!a&&!i)return!1;if(n===`auto`||n==null){var o=this.animationThreshold;if(i&&Zb(r).w>o)return!0;if(a){var s=Uk(e).seriesDataCount,c=r.getExtent();return Math.abs(c[0]-c[1])/s>o}return!1}return n===!0},e.prototype.makeElOption=function(e,t,n,r,i){},e.prototype.createPointerEl=function(e,t,n,r){var i=t.pointer;if(i){var a=KV(e).pointerEl=new qd[i.type](qV(t.pointer));e.add(a)}},e.prototype.createLabelEl=function(e,t,n,r){if(t.label){var i=KV(e).labelEl=new Jo(qV(t.label));e.add(i),QV(i,r)}},e.prototype.updatePointerEl=function(e,t,n){var r=KV(e).pointerEl;r&&t.pointer&&(r.setStyle(t.pointer.style),n(r,{shape:t.pointer.shape}))},e.prototype.updateLabelEl=function(e,t,n,r){var i=KV(e).labelEl;i&&(i.setStyle(t.label.style),n(i,{x:t.label.x,y:t.label.y}),QV(i,r))},e.prototype._renderHandle=function(e){if(!(this._dragging||!this.updateHandleTransform)){var t=this._axisPointerModel,n=this._api.getZr(),r=this._handle,i=t.getModel(`handle`),a=t.get(`status`);if(!i.get(`show`)||!a||a===`hide`){r&&n.remove(r),this._handle=null;return}var o;this._handle||(o=!0,r=this._handle=yf(i.get(`icon`),{cursor:`move`,draggable:!0,onmousemove:function(e){RC(e.event)},onmousedown:JV(this._onHandleDragMove,this,0,0),drift:JV(this._onHandleDragMove,this),ondragend:JV(this._onHandleDragEnd,this)}),n.add(r)),eH(r,t,!1),r.setStyle(i.getItemStyle(null,[`color`,`borderColor`,`borderWidth`,`opacity`,`shadowColor`,`shadowBlur`,`shadowOffsetX`,`shadowOffsetY`]));var s=i.get(`size`);B(s)||(s=[s,s]),r.scaleX=s[0]/2,r.scaleY=s[1]/2,KS(this,`_doDispatchAxisPointer`,i.get(`throttle`)||0,`fixRate`),this._moveHandleToValue(e,o)}},e.prototype._moveHandleToValue=function(e,t){XV(this._axisPointerModel,!t&&this._moveAnimation,this._handle,$V(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},e.prototype._onHandleDragMove=function(e,t){var n=this._handle;if(n){this._dragging=!0;var r=this.updateHandleTransform($V(n),[e,t],this._axisModel,this._axisPointerModel);this._payloadInfo=r,n.stopAnimation(),n.attr($V(r)),KV(n).lastProp=null,this._doDispatchAxisPointer()}},e.prototype._doDispatchAxisPointer=function(){if(this._handle){var e=this._payloadInfo,t=this._axisModel;this._api.dispatchAction({type:`updateAxisPointer`,x:e.cursorPoint[0],y:e.cursorPoint[1],tooltipOption:e.tooltipOption,axesInfo:[{axisDim:t.axis.dim,axisIndex:t.componentIndex}]})}},e.prototype._onHandleDragEnd=function(){if(this._dragging=!1,this._handle){var e=this._axisPointerModel.get(`value`);this._moveHandleToValue(e),this._api.dispatchAction({type:`hideTip`})}},e.prototype.clear=function(e){this._lastValue=null,this._lastStatus=null;var t=e.getZr(),n=this._group,r=this._handle;t&&n&&(this._lastGraphicKey=null,n&&t.remove(n),r&&t.remove(r),this._group=null,this._handle=null,this._payloadInfo=null),qS(this,`_doDispatchAxisPointer`)},e.prototype.doClear=function(){},e.prototype.buildLabel=function(e,t,n){return n||=0,{x:e[n],y:e[1-n],width:t[n],height:t[1-n]}},e}();function XV(e,t,n,r){ZV(KV(n).lastProp,r)||(KV(n).lastProp=r,t?Bd(n,r,e):(n.stopAnimation(),n.attr(r)))}function ZV(e,t){if(H(e)&&H(t)){var n=!0;return R(t,function(t,r){n&&=ZV(e[r],t)}),!!n}return e===t}function QV(e,t){e[t.get([`label`,`show`])?`show`:`hide`]()}function $V(e){return{x:e.x||0,y:e.y||0,rotation:e.rotation||0}}function eH(e,t,n){var r=t.get(`z`),i=t.get(`zlevel`);e&&e.traverse(function(e){e.type!==`group`&&(r!=null&&(e.z=r),i!=null&&(e.zlevel=i),e.silent=n)})}function tH(e){var t=e.get(`type`),n=e.getModel(t+`Style`),r;return t===`line`?(r=n.getLineStyle(),r.fill=null):t===`shadow`&&(r=n.getAreaStyle(),r.stroke=null),r}function nH(e,t,n,r,i){var a=iH(n.get(`value`),t.axis,t.ecModel,n.get(`seriesDataIndices`),{precision:n.get([`label`,`precision`]),formatter:n.get([`label`,`formatter`])}),o=n.getModel(`label`),s=Ng(o.get(`padding`)||0),c=o.getFont(),l=vn(a,c),u=i.position,d=l.width+s[1]+s[3],f=l.height+s[0]+s[2],p=i.align;p===`right`&&(u[0]-=d),p===`center`&&(u[0]-=d/2);var m=i.verticalAlign;m===`bottom`&&(u[1]-=f),m===`middle`&&(u[1]-=f/2),rH(u,d,f,r);var h=o.get(`backgroundColor`);(!h||h===`auto`)&&(h=t.get([`axisLine`,`lineStyle`,`color`])),e.label={x:u[0],y:u[1],style:qf(o,{text:a,font:c,fill:o.getTextColor(),padding:s,backgroundColor:h}),z2:10}}function rH(e,t,n,r){var i=r.getWidth(),a=r.getHeight();e[0]=Math.min(e[0]+t,i)-t,e[1]=Math.min(e[1]+n,a)-n,e[0]=Math.max(e[0],0),e[1]=Math.max(e[1],0)}function iH(e,t,n,r,i){e=t.scale.parse(e);var a=t.scale.getLabel({value:e},{precision:i.precision}),o=i.formatter;if(o){var s={value:Uy(t,{value:e}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};R(r,function(e){var t=n.getSeriesByIndex(e.seriesIndex),r=e.dataIndexInside,i=t&&t.getDataParams(r);i&&s.seriesData.push(i)}),V(o)?a=o.replace(`{value}`,a):me(o)&&(a=o(s))}return a}function aH(e,t,n){var r=gt();return xt(r,r,n.rotation),bt(r,r,n.position),ff([e.dataToCoord(t),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],r)}function oH(e,t,n,r,i,a){var o=Ix.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=i.get([`label`,`margin`]),nH(t,r,i,a,{position:aH(r.axis,e,n),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function sH(e,t,n){return n||=0,{x1:e[n],y1:e[1-n],x2:t[n],y2:t[1-n]}}function cH(e,t,n){return n||=0,{x:e[n],y:e[1-n],width:t[n],height:t[1-n]}}function lH(e,t,n){return Zb(e,{fromStat:{sers:z(t,function(e){return n.getSeriesByIndex(e.seriesIndex)})},min:1}).w}function uH(e,t,n){return[fs(ds(t[0],t[1]),e-n/2),ds(e+n/2,fs(t[0],t[1]))]}var dH=function(e){p(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.makeElOption=function(e,t,n,r,i){var a=n.axis,o=a.grid,s=r.get(`type`),c=a.getGlobalExtent(),l=fH(o,a).getOtherAxis(a).getGlobalExtent(),u=a.toGlobalCoord(a.dataToCoord(t,!0));if(s&&s!==`none`){var d=tH(r),f=pH[s](a,u,c,l,r.get(`seriesDataIndices`),r.ecModel);f.style=d,e.graphicKey=f.type,e.pointer=f}oH(t,e,rS(o.getRect(),n),n,r,i)},t.prototype.getHandleTransform=function(e,t,n){var r=rS(t.axis.grid.getRect(),t,{labelInside:!1});r.labelMargin=n.get([`handle`,`margin`]);var i=aH(t.axis,e,r);return{x:i[0],y:i[1],rotation:r.rotation+(r.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,t,n,r){var i=n.axis,a=i.grid,o=i.getGlobalExtent(!0),s=fH(a,i).getOtherAxis(i).getGlobalExtent(),c=i.dim===`x`?0:1,l=[e.x,e.y];l[c]+=t[c],l[c]=ds(o[1],l[c]),l[c]=fs(o[0],l[c]);var u=(s[1]+s[0])/2,d=[u,u];return d[c]=l[c],{x:l[0],y:l[1],rotation:e.rotation,cursorPoint:d,tooltipOption:[{verticalAlign:`middle`},{align:`center`}][c]}},t}(YV);function fH(e,t){var n={};return n[t.dim+`AxisIndex`]=t.index,e.getCartesian(n)}var pH={line:function(e,t,n,r){return{type:`Line`,subPixelOptimize:!0,shape:sH([t,r[0]],[t,r[1]],mH(e))}},shadow:function(e,t,n,r,i,a){var o=lH(e,i,a),s=r[1]-r[0],c=uH(t,n,o),l=c[0],u=c[1];return{type:`Rect`,shape:cH([l,r[0]],[u-l,s],mH(e))}}};function mH(e){return e.dim===`x`?0:1}var hH=function(e){p(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type=`axisPointer`,t.defaultOption={show:`auto`,z:50,type:`line`,snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:D_.color.border,width:1,type:`dashed`},shadowStyle:{color:D_.color.shadowTint},label:{show:!0,formatter:null,precision:`auto`,margin:3,color:D_.color.neutral00,padding:[5,7,5,7],backgroundColor:D_.color.accent60,borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:`M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z`,size:45,margin:50,color:D_.color.accent40,throttle:40}},t}(t_),gH=Cc(),_H=R;function vH(e,t,n){if(!Ue.node){var r=t.getZr();gH(r).records||(gH(r).records={}),yH(r,t);var i=gH(r).records[e]||(gH(r).records[e]={});i.handler=n}}function yH(e,t){if(gH(e).initialized)return;gH(e).initialized=!0,n(`click`,pe(SH,`click`)),n(`mousemove`,pe(SH,`mousemove`)),n(`mousewheel`,pe(SH,`mousewheel`)),n(`globalout`,xH);function n(n,r){e.on(n,function(n){var i=CH(t);_H(gH(e).records,function(e){e&&r(e,n,i.dispatchAction)}),bH(i.pendings,t)})}}function bH(e,t){var n=e.showTip.length,r=e.hideTip.length,i;n?i=e.showTip[n-1]:r&&(i=e.hideTip[r-1]),i&&(i.dispatchAction=null,t.dispatchAction(i))}function xH(e,t,n){e.handler(`leave`,null,n)}function SH(e,t,n,r){t.handler(e,n,r)}function CH(e){var t={showTip:[],hideTip:[]},n=function(r){var i=t[r.type];i?i.push(r):(r.dispatchAction=n,e.dispatchAction(r))};return{dispatchAction:n,pendings:t}}function wH(e,t){if(!Ue.node){var n=t.getZr();(gH(n).records||{})[e]&&(gH(n).records[e]=null)}}var TH=function(e){p(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(e,t,n){var r=t.getComponent(`tooltip`),i=e.get(`triggerOn`)||r&&r.get(`triggerOn`)||`mousemove|click|mousewheel`;vH(`axisPointer`,n,function(e,t,n){i!==`none`&&(e===`leave`||i.indexOf(e)>=0)&&n({type:`updateAxisPointer`,currTrigger:e,x:t&&t.offsetX,y:t&&t.offsetY})})},t.prototype.remove=function(e,t){wH(`axisPointer`,t)},t.prototype.dispose=function(e,t){wH(`axisPointer`,t)},t.type=`axisPointer`,t}(FT);function EH(e,t){var n=[],r=e.seriesIndex,i;if(r==null||!(i=t.getSeriesByIndex(r)))return{point:[]};var a=i.getData(),o=Sc(a,e);if(o==null||o<0||B(o))return{point:[]};var s=a.getItemGraphicEl(o),c=i.coordinateSystem;if(i.getTooltipPosition)n=i.getTooltipPosition(o)||[];else if(c&&c.dataToPoint)if(e.isStacked){var l=c.getBaseAxis(),u=c.getOtherAxis(l).dim,d=l.dim,f=+(u===`x`||u===`radius`),p=a.mapDimension(d),m=[];m[f]=a.get(p,o),m[1-f]=a.get(a.getCalculationInfo(`stackResultDimension`),o),n=c.dataToPoint(m)||[]}else n=c.dataToPoint(a.getValues(z(c.dimensions,function(e){return a.mapDimension(e)}),o))||[];else if(s){var h=s.getBoundingRect().clone();h.applyTransform(s.transform),n=[h.x+h.width/2,h.y+h.height/2]}return{point:n,el:s}}var DH=Cc();function OH(e,t,n){var r=e.currTrigger,i=[e.x,e.y],a=e,o=e.dispatchAction||fe(n.dispatchAction,n),s=t.getComponent(`axisPointer`).coordSysAxesInfo;if(s){RH(i)&&(i=EH({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},t).point);var c=RH(i),l=a.axesInfo,u=s.axesInfo,d=r===`leave`||RH(i),f={},p={},m={list:[],map:{}},h={showPointer:pe(jH,p),showTooltip:pe(MH,m)};R(s.coordSysMap,function(e,t){var n=c||e.containPoint(i);R(s.coordSysAxesInfo[t],function(e,t){var r=e.axis,a=IH(l,e);if(!d&&n&&(!l||a)){var o=a&&a.value;o==null&&!c&&(o=r.pointToData(i)),o!=null&&kH(e,o,h,!1,f)}})});var g={};return R(u,function(e,t){var n=e.linkGroup;n&&!p[t]&&R(n.axesInfo,function(t,r){var i=p[r];if(t!==e&&i){var a=i.value;n.mapper&&(a=e.axis.scale.parse(n.mapper(a,LH(t),LH(e)))),g[e.key]=a}})}),R(g,function(e,t){kH(u[t],e,h,!0,f)}),NH(p,u,f),PH(m,i,e,o),FH(u,o,n),f}}function kH(e,t,n,r,i){var a=e.axis;if(!(a.scale.isBlank()||!a.containData(t))){if(!e.involveSeries){n.showPointer(e,t);return}var o=AH(t,e),s=o.payloadBatch,c=o.snapToValue;s[0]&&i.seriesIndex==null&&I(i,s[0]),!r&&e.snap&&a.containData(c)&&c!=null&&(t=c),n.showPointer(e,t,s),n.showTooltip(e,o,c)}}function AH(e,t){var n=t.axis,r=n.dim,i=e,a=[],o=Number.MAX_VALUE,s=-1;return R(t.seriesModels,function(t,c){var l=t.getData().mapDimensionsAll(r),u,d;if(t.getAxisTooltipData){var f=t.getAxisTooltipData(l,e,n);d=f.dataIndices,u=f.nestestValue}else{if(d=t.indicesOfNearest(r,l[0],e,n.type===`category`?.5:null),!d.length)return;u=t.getData().get(l[0],d[0])}if(qs(u)){var p=e-u,m=Math.abs(p);m<=o&&((m=0&&s<0)&&(o=m,s=p,i=u,a.length=0),R(d,function(e){a.push({seriesIndex:t.seriesIndex,dataIndexInside:e,dataIndex:t.getData().getRawIndex(e)})}))}}),{payloadBatch:a,snapToValue:i}}function jH(e,t,n,r){e[t.key]={value:n,payloadBatch:r}}function MH(e,t,n,r){var i=n.payloadBatch,a=t.axis,o=a.model,s=t.axisPointerModel;if(!(!t.triggerTooltip||!i.length)){var c=t.coordSys.model,l=Kk(c),u=e.map[l];u||(u=e.map[l]={coordSysId:c.id,coordSysIndex:c.componentIndex,coordSysType:c.type,coordSysMainType:c.mainType,dataByAxis:[]},e.list.push(u)),u.dataByAxis.push({axisDim:a.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:r,valueLabelOpt:{precision:s.get([`label`,`precision`]),formatter:s.get([`label`,`formatter`])},seriesDataIndices:i.slice()})}}function NH(e,t,n){var r=n.axesInfo=[];R(t,function(t,n){var i=t.axisPointerModel.option,a=e[n];a?(!t.useHandle&&(i.status=`show`),i.value=a.value,i.seriesDataIndices=(a.payloadBatch||[]).slice()):!t.useHandle&&(i.status=`hide`),i.status===`show`&&r.push({axisDim:t.axis.dim,axisIndex:t.axis.model.componentIndex,value:i.value})})}function PH(e,t,n,r){if(RH(t)||!e.list.length){r({type:`hideTip`});return}var i=((e.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};r({type:`showTip`,escapeConnect:!0,x:t[0],y:t[1],tooltipOption:n.tooltipOption,position:n.position,dataIndexInside:i.dataIndexInside,dataIndex:i.dataIndex,seriesIndex:i.seriesIndex,dataByCoordSys:e.list})}function FH(e,t,n){var r=n.getZr(),i=`axisPointerLastHighlights`,a=DH(r)[i]||{},o=DH(r)[i]={};R(e,function(e,t){var n=e.axisPointerModel.option;n.status===`show`&&e.triggerEmphasis&&R(n.seriesDataIndices,function(e){o[e.seriesIndex+`|`+e.dataIndex]=e})});var s=[],c=[];function l(e){return{seriesIndex:e.seriesIndex,dataIndex:e.dataIndex}}R(a,function(e,t){!o[t]&&c.push(l(e))}),R(o,function(e,t){!a[t]&&s.push(l(e))}),c.length&&n.dispatchAction({type:`downplay`,escapeConnect:!0,notBlur:!0,batch:c}),s.length&&n.dispatchAction({type:`highlight`,escapeConnect:!0,notBlur:!0,batch:s})}function IH(e,t){for(var n=0;n<(e||[]).length;n++){var r=e[n];if(t.axis.dim===r.axisDim&&t.axis.model.componentIndex===r.axisIndex)return r}}function LH(e){var t=e.axis.model,n={},r=n.axisDim=e.axis.dim;return n.axisIndex=n[r+`AxisIndex`]=t.componentIndex,n.axisName=n[r+`AxisName`]=t.name,n.axisId=n[r+`AxisId`]=t.id,n}function RH(e){return!e||e[0]==null||isNaN(e[0])||e[1]==null||isNaN(e[1])}function zH(e){Jk.registerAxisPointerClass(`CartesianAxisPointer`,dH),e.registerComponentModel(hH),e.registerComponentView(TH),e.registerPreprocessor(function(e){if(e){(!e.axisPointer||e.axisPointer.length===0)&&(e.axisPointer={});var t=e.axisPointer.link;t&&!B(t)&&(e.axisPointer.link=[t])}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,{overallReset:function(e,t){e.getComponent(`axisPointer`).coordSysAxesInfo=Ik(e,t)}}),e.registerAction({type:`updateAxisPointer`,event:`updateAxisPointer`,update:`:updateAxisPointer`},OH)}function BH(e){$O(iA),$O(zH)}function VH(e,t){var n=Ng(t.get(`padding`)),r=t.getItemStyle([`color`,`opacity`]);return r.fill=t.get(`backgroundColor`),new Uo({shape:{x:e.x-n[3],y:e.y-n[0],width:e.width+n[1]+n[3],height:e.height+n[0]+n[2],r:t.get(`borderRadius`)},style:r,silent:!0,z2:-1})}var HH=function(e){p(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type=`tooltip`,t.dependencies=[`axisPointer`],t.defaultOption={z:60,show:!0,showContent:!0,trigger:`item`,triggerOn:`mousemove|click|mousewheel`,alwaysShowContent:!1,renderMode:`auto`,confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,displayTransition:!0,enterable:!1,backgroundColor:D_.color.neutral00,shadowBlur:10,shadowColor:`rgba(0, 0, 0, .2)`,shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,defaultBorderColor:D_.color.border,padding:null,extraCssText:``,axisPointer:{type:`line`,axis:`auto`,animation:`auto`,animationDurationUpdate:200,animationEasingUpdate:`exponentialOut`,crossStyle:{color:D_.color.borderShade,width:1,type:`dashed`,textStyle:{}}},textStyle:{color:D_.color.tertiary,fontSize:14}},t}(t_);function UH(e){var t=e.get(`confine`);return t==null?e.get(`renderMode`)===`richText`:!!t}function WH(e){if(Ue.domSupported){for(var t=document.documentElement.style,n=0,r=e.length;n-1?(s+=`top:50%`,c+=`translateY(-50%) rotate(`+(l=a===`left`?-225:-45)+`deg)`):(s+=`left:50%`,c+=`translateX(-50%) rotate(`+(l=a===`top`?225:45)+`deg)`);var u=l*Math.PI/180,d=o+i,f=d*Math.abs(Math.cos(u))+d*Math.abs(Math.sin(u)),p=Math.round(((f-Math.SQRT2*i)/2+Math.SQRT2*i-(f-d)/2)*100)/100;s+=`;`+a+`:-`+p+`px`;var m=t+` solid `+i+`px;`;return`
`}function eU(e,t,n){var r=`cubic-bezier(0.23,1,0.32,1)`,i=``,a=``;return n&&(i=` `+e/2+`s `+r,a=`opacity`+i+`,visibility`+i),t||(i=` `+e+`s `+r,a+=(a.length?`,`:``)+(Ue.transformSupported?``+XH+i:`,left`+i+`,top`+i)),YH+`:`+a}function tU(e,t,n){var r=e.toFixed(0)+`px`,i=t.toFixed(0)+`px`;if(!Ue.transformSupported)return n?`top:`+i+`;left:`+r+`;`:[[`top`,i],[`left`,r]];var a=Ue.transform3dSupported,o=`translate`+(a?`3d`:``)+`(`+r+`,`+i+(a?`,0`:``)+`)`;return n?`top:0;left:0;`+XH+`:`+o+`;`:[[`top`,0],[`left`,0],[GH,o]]}function nU(e){var t=[],n=e.get(`fontSize`),r=e.getTextColor();r&&t.push(`color:`+r),t.push(`font:`+e.getFont());var i=Ce(e.get(`lineHeight`),Math.round(n*3/2));n&&t.push(`line-height:`+i+`px`);var a=e.get(`textShadowColor`),o=e.get(`textShadowBlur`)||0,s=e.get(`textShadowOffsetX`)||0,c=e.get(`textShadowOffsetY`)||0;return a&&o&&t.push(`text-shadow:`+s+`px `+c+`px `+o+`px `+a),R([`decoration`,`align`],function(n){var r=e.get(n);r&&t.push(`text-`+n+`:`+r)}),t.join(`;`)}function rU(e,t,n,r){var i=[],a=e.get(`transitionDuration`),o=e.get(`backgroundColor`),s=e.get(`shadowBlur`),c=e.get(`shadowColor`),l=e.get(`shadowOffsetX`),u=e.get(`shadowOffsetY`),d=e.getModel(`textStyle`),f=X_(e,`html`),p=l+`px `+u+`px `+s+`px `+c;return i.push(`box-shadow:`+p),t&&a>0&&i.push(eU(a,n,r)),o&&i.push(`background-color:`+o),R([`width`,`color`,`radius`],function(t){var n=`border-`+t,r=Mg(n),a=e.get(r);a!=null&&i.push(n+`:`+a+(t===`color`?``:`px`))}),i.push(nU(d)),f!=null&&i.push(`padding:`+Ng(f).join(`px `)+`px`),i.join(`;`)+`;`}function iU(e,t,n,r,i){var a=t&&t.painter;if(n){var o=a&&a.getViewportRoot();o&&Ch(e,o,n,r,i)}else{e[0]=r,e[1]=i;var s=a&&a.getViewportRootOffset();s&&(e[0]+=s.offsetLeft,e[1]+=s.offsetTop)}e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var aU=function(){function e(e,t){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,Ue.wxa)return null;var n=document.createElement(`div`);n.domBelongToZr=!0,this.el=n;var r=this._zr=e.getZr(),i=t.appendTo,a=i&&(V(i)?document.querySelector(i):ye(i)?i:me(i)&&i(e.getDom()));iU(this._styleCoord,r,a,e.getWidth()/2,e.getHeight()/2),(a||e.getDom()).appendChild(n),this._api=e,this._container=a;var o=this;n.onmouseenter=function(){o._enterable&&(clearTimeout(o._hideTimeout),o._show=!0),o._inContent=!0},n.onmousemove=function(e){if(e||=window.event,!o._enterable){var t=r.handler;PC(r.painter.getViewportRoot(),e,!0),t.dispatch(`mousemove`,e)}},n.onmouseleave=function(){o._inContent=!1,o._enterable&&o._show&&o.hideLater(o._hideDelay)}}return e.prototype.update=function(e){if(!this._container){var t=this._api.getDom(),n=JH(t,`position`),r=t.style;r.position!==`absolute`&&n!==`absolute`&&(r.position=`relative`)}var i=e.get(`alwaysShowContent`);i&&this._moveIfResized(),this._alwaysShowContent=i,this._enableDisplayTransition=e.get(`displayTransition`)&&e.get(`transitionDuration`)>0,this.el.className=e.get(`className`)||``},e.prototype.show=function(e,t){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,r=n.style,i=this._styleCoord;n.innerHTML?r.cssText=ZH+rU(e,!this._firstShow,this._longHide,this._enableDisplayTransition)+tU(i[0],i[1],!0)+(`border-color:`+zg(t)+`;`)+(e.get(`extraCssText`)||``)+(`;pointer-events:`+(this._enterable?`auto`:`none`)):r.display=`none`,this._show=!0,this._firstShow=!1,this._longHide=!1},e.prototype.setContent=function(e,t,n,r,i){var a=this.el;if(e==null){a.innerHTML=``;return}var o=``;if(V(i)&&n.get(`trigger`)===`item`&&!UH(n)&&(o=$H(n,r,i)),V(e))a.innerHTML=e+o;else if(e){a.innerHTML=``,B(e)||(e=[e]);for(var s=0;s=0?this._tryShow(n,r):t===`leave`&&this._hide(r))},this))},t.prototype._keepShow=function(){var e=this._tooltipModel,t=this._ecModel,n=this._api,r=e.get(`triggerOn`);if(e.get(`trigger`)!==`axis`&&(this._lastDataByCoordSys=null,this._cbParamsList=null),this._lastX!=null&&this._lastY!=null&&r!==`none`&&r!==`click`){var i=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!n.isDisposed()&&i.manuallyShowTip(e,t,n,{x:i._lastX,y:i._lastY,dataByCoordSys:i._lastDataByCoordSys})})}},t.prototype.manuallyShowTip=function(e,t,n,r){if(!(r.from===this.uid||Ue.node||!n.getDom())){var i=pU(r,n);this._ticket=``;var a=r.dataByCoordSys,o=vU(r,t,n);if(o){var s=o.el.getBoundingRect().clone();s.applyTransform(o.el.transform),this._tryShow({offsetX:s.x+s.width/2,offsetY:s.y+s.height/2,target:o.el,position:r.position,positionDefault:`bottom`},i)}else if(r.tooltip&&r.x!=null&&r.y!=null){var c=uU;c.x=r.x,c.y=r.y,c.update(),Xc(c).tooltipConfig={name:null,option:r.tooltip},this._tryShow({offsetX:r.x,offsetY:r.y,target:c},i)}else if(a)this._tryShow({offsetX:r.x,offsetY:r.y,position:r.position,dataByCoordSys:a,tooltipOption:r.tooltipOption},i);else if(r.seriesIndex!=null){if(this._manuallyAxisShowTip(e,t,n,r))return;var l=EH(r,t),u=l.point[0],d=l.point[1];u!=null&&d!=null&&this._tryShow({offsetX:u,offsetY:d,target:l.el,position:r.position,positionDefault:`bottom`},i)}else r.x!=null&&r.y!=null&&(n.dispatchAction({type:`updateAxisPointer`,x:r.x,y:r.y}),this._tryShow({offsetX:r.x,offsetY:r.y,position:r.position,target:n.getZr().findHover(r.x,r.y).target},i))}},t.prototype.manuallyHideTip=function(e,t,n,r){var i=this._tooltipContent;this._tooltipModel&&i.hideLater(this._tooltipModel.get(`hideDelay`)),this._lastX=this._lastY=this._lastDataByCoordSys=null,this._cbParamsList=null,r.from!==this.uid&&this._hide(pU(r,n))},t.prototype._manuallyAxisShowTip=function(e,t,n,r){var i=r.seriesIndex,a=r.dataIndex,o=t.getComponent(`axisPointer`).coordSysAxesInfo;if(i!=null&&a!=null&&o!=null){var s=t.getSeriesByIndex(i);if(s&&fU([s.getData().getItemModel(a),s,(s.coordinateSystem||{}).model],this._tooltipModel).get(`trigger`)===`axis`)return n.dispatchAction({type:`updateAxisPointer`,seriesIndex:i,dataIndex:a,position:r.position}),!0}},t.prototype._tryShow=function(e,t){var n=e.target;if(this._tooltipModel){this._lastX=e.offsetX,this._lastY=e.offsetY;var r=e.dataByCoordSys;if(r&&r.length)this._showAxisTooltip(r,e);else if(n){if(Xc(n).ssrType===`legend`)return;this._lastDataByCoordSys=null,this._cbParamsList=null;var i,a;bE(n,function(e){if(e.tooltipDisabled)return i=a=null,!0;i||a||(Xc(e).dataIndex==null?Xc(e).tooltipConfig!=null&&(a=e):i=e)},!0),i?this._showSeriesItemTooltip(e,i,t):a?this._showComponentItemTooltip(e,a,t):this._hide(t)}else this._lastDataByCoordSys=null,this._cbParamsList=null,this._hide(t)}},t.prototype._showOrMove=function(e,t){var n=e.get(`showDelay`);t=fe(t,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(t,n):t()},t.prototype._showAxisTooltip=function(e,t){var n=this._ecModel,r=this._tooltipModel,i=[t.offsetX,t.offsetY],a=fU([t.tooltipOption],r),o=this._renderMode,s=[],c=I_(`section`,{blocks:[],noHeader:!0}),l=[],u=new Z_;R(e,function(e){R(e.dataByAxis,function(e){var t=n.getComponent(e.axisDim+`Axis`,e.axisIndex),i=e.value,a=t.axis,d=a.scale.parse(i);if(!(!t||i==null)){var f=iH(i,a,n,e.seriesDataIndices,e.valueLabelOpt),p=I_(`section`,{header:f,noHeader:!Oe(f),sortBlocks:!0,blocks:[]});c.blocks.push(p),R(e.seriesDataIndices,function(i){var a=n.getSeriesByIndex(i.seriesIndex),c=i.dataIndexInside,m=a.getDataParams(c);if(!(m.dataIndex<0)){m.axisDim=e.axisDim,m.axisIndex=e.axisIndex,m.axisType=e.axisType,m.axisId=e.axisId,m.axisValue=Uy(t.axis,{value:d}),m.axisValueLabel=f,m.marker=u.makeTooltipMarker(`item`,zg(m.color),o);var h=f_(a.formatTooltip(c,!0,null)),g=h.frag;if(g){var _=fU([a],r).get(`valueFormatter`);p.blocks.push(_?I({valueFormatter:_},g):g)}h.text&&l.push(h.text),s.push(m)}})}})}),c.blocks.reverse(),l.reverse();var d=t.position,f=H_(c,u,o,a.get(`order`),n.get(`useUTC`),a.get(`textStyle`));f&&l.unshift(f);var p=o===`richText`?` + +`:`
`,m=l.join(p);this._showOrMove(a,function(){this._updateContentNotChangedOnAxis(e,s)?this._updatePosition(a,d,i[0],i[1],this._tooltipContent,s):this._showTooltipContent(a,m,s,Math.random()+``,i[0],i[1],d,null,u)})},t.prototype._showSeriesItemTooltip=function(e,t,n){var r=this._ecModel,i=Xc(t),a=i.seriesIndex,o=r.getSeriesByIndex(a),s=i.dataModel||o,c=i.dataIndex,l=i.dataType,u=s.getData(l),d=this._renderMode,f=e.positionDefault,p=fU([u.getItemModel(c),s,o&&(o.coordinateSystem||{}).model],this._tooltipModel,f?{position:f}:null),m=p.get(`trigger`);if(m==null||m===`item`){var h=s.getDataParams(c,l),g=new Z_;h.marker=g.makeTooltipMarker(`item`,zg(h.color),d);var _=f_(s.formatTooltip(c,!1,l)),v=p.get(`order`),y=p.get(`valueFormatter`),b=_.frag,x=b?H_(y?I({valueFormatter:y},b):b,g,d,v,r.get(`useUTC`),p.get(`textStyle`)):_.text,S=`item_`+s.name+`_`+c;this._showOrMove(p,function(){this._showTooltipContent(p,x,h,S,e.offsetX,e.offsetY,e.position,e.target,g)}),n({type:`showTip`,dataIndexInside:c,dataIndex:u.getRawIndex(c),seriesIndex:a,from:this.uid})}},t.prototype._showComponentItemTooltip=function(e,t,n){var r=this._renderMode===`html`,i=Xc(t),a=i.tooltipConfig.option||{},o=a.encodeHTMLContent;if(V(a)){var s=a;a={content:s,formatter:s},o=!0}o&&r&&a.content&&(a=P(a),a.content=jh(a.content));var c=[a],l=this._ecModel.getComponent(i.componentMainType,i.componentIndex);l&&c.push(l),c.push({formatter:a.content});var u=e.positionDefault,d=fU(c,this._tooltipModel,u?{position:u}:null),f=d.get(`content`),p=Math.random()+``,m=new Z_;this._showOrMove(d,function(){var n=P(d.get(`formatterParams`)||{});this._showTooltipContent(d,f,n,p,e.offsetX,e.offsetY,e.position,t,m)}),n({type:`showTip`,from:this.uid})},t.prototype._showTooltipContent=function(e,t,n,r,i,a,o,s,c){if(this._ticket=``,!(!e.get(`showContent`)||!e.get(`show`))){var l=this._tooltipContent;l.setEnterable(e.get(`enterable`));var u=e.get(`formatter`);o||=e.get(`position`);var d=t,f=this._getNearestPoint([i,a],n,e.get(`trigger`),e.get(`borderColor`),e.get(`defaultBorderColor`,!0)).color;if(u)if(V(u)){var p=e.ecModel.get(`useUTC`),m=B(n)?n[0]:n,h=m&&m.axisType&&m.axisType.indexOf(`time`)>=0;d=u,h&&(d=pg(m.axisValue,d,p)),d=Lg(d,n,!0)}else if(me(u)){var g=fe(function(t,r){t===this._ticket&&(l.setContent(r,c,e,f,o),this._updatePosition(e,o,i,a,l,n,s))},this);this._ticket=r,d=u(n,r,g)}else d=u;l.setContent(d,c,e,f,o),l.show(e,f),this._updatePosition(e,o,i,a,l,n,s)}},t.prototype._getNearestPoint=function(e,t,n,r,i){if(n===`axis`||B(t))return{color:r||i};if(!B(t))return{color:r||t.color||t.borderColor}},t.prototype._updatePosition=function(e,t,n,r,i,a,o){var s=this._api.getWidth(),c=this._api.getHeight();t||=e.get(`position`);var l=i.getSize(),u=e.get(`align`),d=e.get(`verticalAlign`),f=o&&o.getBoundingRect().clone();if(o&&f.applyTransform(o.transform),me(t)&&(t=t([n,r],a,i.el,f,{viewSize:[s,c],contentSize:l.slice()})),B(t))n=Cs(t[0],s),r=Cs(t[1],c);else if(H(t)){var p=t;p.width=l[0],p.height=l[1];var m=Kg(p,{width:s,height:c});n=m.x,r=m.y,u=null,d=null}else if(V(t)&&o){var h=gU(t,f,l,e.get(`borderWidth`));n=h[0],r=h[1]}else{var h=mU(n,r,i,s,c,u?null:20,d?null:20);n=h[0],r=h[1]}if(u&&(n-=_U(u)?l[0]/2:u===`right`?l[0]:0),d&&(r-=_U(d)?l[1]/2:d===`bottom`?l[1]:0),UH(e)){var h=hU(n,r,i,s,c);n=h[0],r=h[1]}i.moveTo(n,r)},t.prototype._updateContentNotChangedOnAxis=function(e,t){var n=this._lastDataByCoordSys,r=this._cbParamsList,i=!!n&&n.length===e.length;return i&&R(n,function(n,a){var o=n.dataByAxis||[],s=(e[a]||{}).dataByAxis||[];i&&=o.length===s.length,i&&R(o,function(e,n){var a=s[n]||{},o=e.seriesDataIndices||[],c=a.seriesDataIndices||[];i=i&&e.value===a.value&&e.axisType===a.axisType&&e.axisId===a.axisId&&o.length===c.length,i&&R(o,function(e,t){var n=c[t];i=i&&e.seriesIndex===n.seriesIndex&&e.dataIndex===n.dataIndex}),r&&R(e.seriesDataIndices,function(e){var n=e.seriesIndex,a=t[n],o=r[n];a&&o&&o.data!==a.data&&(i=!1)})})}),this._lastDataByCoordSys=e,this._cbParamsList=t,!!i},t.prototype._hide=function(e){this._lastDataByCoordSys=null,this._cbParamsList=null,e({type:`hideTip`,from:this.uid})},t.prototype.dispose=function(e,t){Ue.node||!t.getDom()||(qS(this,`_updatePosition`),this._tooltipContent.dispose(),wH(`itemTooltip`,t),this._tooltipContent=null,this._tooltipModel=null,this._lastDataByCoordSys=null,this._cbParamsList=null)},t.type=`tooltip`,t}(FT);function fU(e,t,n){var r=t.ecModel,i;n?(i=new hp(n,r,r),i=new hp(t.option,i,r)):i=t;for(var a=e.length-1;a>=0;a--){var o=e[a];o&&(o instanceof hp&&(o=o.get(`tooltip`,!0)),V(o)&&(o={formatter:o}),o&&(i=new hp(o,i,r)))}return i}function pU(e,t){return e.dispatchAction||fe(t.dispatchAction,t)}function mU(e,t,n,r,i,a,o){var s=n.getSize(),c=s[0],l=s[1];return a!=null&&(e+c+a+2>r?e-=c+a:e+=a),o!=null&&(t+l+o>i?t-=l+o:t+=o),[e,t]}function hU(e,t,n,r,i){var a=n.getSize(),o=a[0],s=a[1];return e=Math.min(e+o,r)-o,t=Math.min(t+s,i)-s,e=Math.max(e,0),t=Math.max(t,0),[e,t]}function gU(e,t,n,r){var i=n[0],a=n[1],o=Math.ceil(Math.SQRT2*r)+8,s=0,c=0,l=t.width,u=t.height;switch(e){case`inside`:s=t.x+l/2-i/2,c=t.y+u/2-a/2;break;case`top`:s=t.x+l/2-i/2,c=t.y-a-o;break;case`bottom`:s=t.x+l/2-i/2,c=t.y+u+o;break;case`left`:s=t.x-i-o,c=t.y+u/2-a/2;break;case`right`:s=t.x+l+o,c=t.y+u/2-a/2}return[s,c]}function _U(e){return e===`center`||e===`middle`}function vU(e,t,n){var r=Ec(e).queryOptionMap,i=r.keys()[0];if(!(!i||i===`series`)){var a=Oc(t,i,r.get(i),{useDefault:!1,enableAll:!1,enableNone:!1}).models[0];if(a){var o=n.getViewOfComponentModel(a),s;if(o.group.traverse(function(t){var n=Xc(t).tooltipConfig;if(n&&n.name===e.name)return s=t,!0}),s)return{componentMainType:i,componentIndex:a.componentIndex,el:s}}}}function yU(e){$O(zH),e.registerComponentModel(HH),e.registerComponentView(dU),e.registerAction({type:`showTip`,event:`showTip`,update:`tooltip:manuallyShowTip`},Be),e.registerAction({type:`hideTip`,event:`hideTip`,update:`tooltip:manuallyHideTip`},Be)}var bU=R;function xU(e){if(e){for(var t in e)if(e.hasOwnProperty(t))return!0}}function SU(e,t,n){var r={};return bU(t,function(t){var a=r[t]=i();bU(e[t],function(e,r){if(cA.isValidType(r)){var i={type:r,visual:e};n&&n(i,t),a[r]=new cA(i),r===`opacity`&&(i=P(i),i.type=`colorAlpha`,a.__hidden.__alphaForOpacity=new cA(i))}})}),r;function i(){var e=function(){};return e.prototype.__hidden=e.prototype,new e}}function CU(e,t,n){var r;R(n,function(e){t.hasOwnProperty(e)&&xU(t[e])&&(r=!0)}),r&&R(n,function(n){t.hasOwnProperty(n)&&xU(t[n])?e[n]=P(t[n]):delete e[n]})}function wU(e,t,n,r){var i={};return R(e,function(e){i[e]=cA.prepareVisualTypes(t[e])}),{progress:function(e,a){var o;r!=null&&(o=a.getDimensionIndex(r));function s(e){return _E(a,l,e)}function c(e,t){yE(a,l,e,t)}for(var l,u=a.getStore();(l=e.next())!=null;){var d=a.getRawDataItem(l);if(!(d&&d.visualMap===!1))for(var f=r==null?l:u.get(o,l),p=n(f),m=t[p],h=i[p],g=0,_=h.length;g<_;g++){var v=h[g];m[v]&&m[v].applyVisual(f,s,c)}}}}}var TU=function(e,t){if(t===`all`)return{type:`all`,title:e.getLocaleModel().get([`legend`,`selector`,`all`])};if(t===`inverse`)return{type:`inverse`,title:e.getLocaleModel().get([`legend`,`selector`,`inverse`])}},EU=function(e){p(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.layoutMode={type:`box`,ignoreSize:!0},n}return t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n),e.selected=e.selected||{},this._updateSelector(e)},t.prototype.mergeOption=function(t,n){e.prototype.mergeOption.call(this,t,n),this._updateSelector(t)},t.prototype._updateSelector=function(e){var t=e.selector,n=this.ecModel;t===!0&&(t=e.selector=[`all`,`inverse`]),B(t)&&R(t,function(e,r){V(e)&&(e={type:e}),t[r]=F(e,TU(n,e.type))})},t.prototype.optionUpdated=function(){this._updateData(this.ecModel);var e=this._data;if(e[0]&&this.get(`selectedMode`)===`single`){for(var t=!1,n=0;n=0},t.prototype.getOrient=function(){return this.get(`orient`)===`vertical`?{index:1,name:`vertical`}:{index:0,name:`horizontal`}},t.type=`legend.plain`,t.dependencies=[`series`],t.defaultOption={z:4,show:!0,orient:`horizontal`,left:`center`,bottom:D_.size.m,align:`auto`,backgroundColor:D_.color.transparent,borderColor:D_.color.border,borderRadius:0,borderWidth:0,padding:5,itemGap:8,itemWidth:25,itemHeight:14,symbolRotate:`inherit`,symbolKeepAspect:!0,inactiveColor:D_.color.disabled,inactiveBorderColor:D_.color.disabled,inactiveBorderWidth:`auto`,itemStyle:{color:`inherit`,opacity:`inherit`,borderColor:`inherit`,borderWidth:`auto`,borderCap:`inherit`,borderJoin:`inherit`,borderDashOffset:`inherit`,borderMiterLimit:`inherit`},lineStyle:{width:`auto`,color:`inherit`,inactiveColor:D_.color.disabled,inactiveWidth:2,opacity:`inherit`,type:`inherit`,cap:`inherit`,join:`inherit`,dashOffset:`inherit`,miterLimit:`inherit`},textStyle:{color:D_.color.secondary},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:`sans-serif`,color:D_.color.tertiary,borderWidth:1,borderColor:D_.color.border},emphasis:{selectorLabel:{show:!0,color:D_.color.quaternary}},selectorPosition:`auto`,selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1},triggerEvent:!1},t}(t_),DU=pe,OU=R,kU=Lu,AU=function(e){p(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.newlineDisabled=!1,n}return t.prototype.init=function(){this.group.add(this._contentGroup=new kU),this.group.add(this._selectorGroup=new kU),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(e,t,n){var r=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),e.get(`show`,!0)){var i=e.get(`align`),a=e.get(`orient`);(!i||i===`auto`)&&(i=e.get(`left`)===`right`&&a===`vertical`?`right`:`left`);var o=e.get(`selector`,!0),s=e.get(`selectorPosition`,!0);o&&(!s||s===`auto`)&&(s=a===`horizontal`?`end`:`start`),this.renderInner(i,e,t,n,o,a,s);var c=Jg(e,n).refContainer,l=e.getBoxLayoutParams(),u=e.get(`padding`),d=Kg(l,c,u),f=this.layoutInner(e,i,d,r,o,s),p=Kg(L({width:f.width,height:f.height},l),c,u);this.group.x=p.x-f.x,this.group.y=p.y-f.y,this.group.markRedraw(),this.group.add(this._backgroundEl=VH(f,e))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(e,t,n,r,i,a,o){var s=this.getContentGroup(),c=Ie(),l=t.get(`selectedMode`),u=t.get(`triggerEvent`),d=[];n.eachRawSeries(function(e){!e.get(`legendHoverLink`)&&d.push(e.id)}),OU(t.getData(),function(i,a){var o=this,f=i.get(`name`);if(!this.newlineDisabled&&(f===``||f===` +`)){var p=new kU;p.newline=!0,s.add(p);return}var m=n.getSeriesByName(f)[0];if(!c.get(f))if(m){var h=m.getData(),g=h.getVisual(`legendLineStyle`)||{},_=h.getVisual(`legendIcon`),v=h.getVisual(`style`),y=this._createItem(m,f,a,i,t,e,g,v,_,l,r);y.on(`click`,DU(NU,f,null,r,d)).on(`mouseover`,DU(PU,m.name,null,r,d)).on(`mouseout`,DU(FU,m.name,null,r,d)),n.ssr&&y.eachChild(function(e){var t=Xc(e);t.seriesIndex=m.seriesIndex,t.dataIndex=a,t.ssrType=`legend`}),u&&y.eachChild(function(e){o.packEventData(e,t,m,a,f)}),c.set(f,!0)}else n.eachRawSeries(function(o){var s=this;if(!c.get(f)&&o.legendVisualProvider){var p=o.legendVisualProvider;if(!p.containName(f))return;var m=p.indexOfName(f),h=p.getItemVisual(m,`style`),g=p.getItemVisual(m,`legendIcon`),_=Gr(h.fill);_&&_[3]===0&&(_[3]=.2,h=I(I({},h),{fill:Qr(_,`rgba`)}));var v=this._createItem(o,f,a,i,t,e,{},h,g,l,r);v.on(`click`,DU(NU,null,f,r,d)).on(`mouseover`,DU(PU,null,f,r,d)).on(`mouseout`,DU(FU,null,f,r,d)),n.ssr&&v.eachChild(function(e){var t=Xc(e);t.seriesIndex=o.seriesIndex,t.dataIndex=a,t.ssrType=`legend`}),u&&v.eachChild(function(e){s.packEventData(e,t,o,a,f)}),c.set(f,!0)}},this)},this),i&&this._createSelector(i,t,r,a,o)},t.prototype.packEventData=function(e,t,n,r,i){var a={componentType:`legend`,componentIndex:t.componentIndex,dataIndex:r,value:i,seriesIndex:n.seriesIndex};Xc(e).eventData=a},t.prototype._createSelector=function(e,t,n,r,i){var a=this.getSelectorGroup();OU(e,function(e){var r=e.type,i=new Jo({style:{x:0,y:0,align:`center`,verticalAlign:`middle`},onclick:function(){n.dispatchAction({type:r===`all`?`legendAllSelect`:`legendInverseSelect`,legendId:t.id})}});a.add(i),Gf(i,{normal:t.getModel(`selectorLabel`),emphasis:t.getModel([`emphasis`,`selectorLabel`])},{defaultText:e.title}),nu(i)})},t.prototype._createItem=function(e,t,n,r,i,a,o,s,c,l,u){var d=e.visualDrawType,f=i.get(`itemWidth`),p=i.get(`itemHeight`),m=i.isSelected(t),h=r.get(`symbolRotate`),g=r.get(`symbolKeepAspect`),_=r.get(`icon`);c=_||c||`roundRect`;var v=jU(c,r,o,s,d,m,u),y=new kU,b=r.getModel(`textStyle`);if(me(e.getLegendIcon)&&(!_||_===`inherit`))y.add(e.getLegendIcon({itemWidth:f,itemHeight:p,icon:c,iconRotate:h,itemStyle:v.itemStyle,lineStyle:v.lineStyle,symbolKeepAspect:g}));else{var x=_===`inherit`&&e.getData().getVisual(`symbol`)?h===`inherit`?e.getData().getVisual(`symbolRotate`):h:0;y.add(MU({itemWidth:f,itemHeight:p,icon:c,iconRotate:x,itemStyle:v.itemStyle,lineStyle:v.lineStyle,symbolKeepAspect:g}))}var S=a===`left`?f+5:-5,C=a,w=i.get(`formatter`),T=t;V(w)&&w?T=w.replace(`{name}`,t??``):me(w)&&(T=w(t));var E=m?b.getTextColor():r.get(`inactiveColor`);y.add(new Jo({style:qf(b,{text:T,x:S,y:p/2,fill:E,align:C,verticalAlign:`middle`},{inheritColor:E})}));var D=new Uo({shape:y.getBoundingRect(),style:{fill:`transparent`}}),O=r.getModel(`tooltip`);return O.get(`show`)&&Df({el:D,componentModel:i,itemName:t,itemTooltipOption:O.option}),y.add(D),y.eachChild(function(e){e.silent=!0}),D.silent=!l,this.getContentGroup().add(y),nu(y),y.__legendDataIndex=n,y},t.prototype.layoutInner=function(e,t,n,r,i,a){var o=this.getContentGroup(),s=this.getSelectorGroup();Wg(e.get(`orient`),o,e.get(`itemGap`),n.width,n.height);var c=o.getBoundingRect(),l=[-c.x,-c.y];if(s.markRedraw(),o.markRedraw(),i){Wg(`horizontal`,s,e.get(`selectorItemGap`,!0));var u=s.getBoundingRect(),d=[-u.x,-u.y],f=e.get(`selectorButtonGap`,!0),p=e.getOrient().index,m=p===0?`width`:`height`,h=p===0?`height`:`width`,g=p===0?`y`:`x`;a===`end`?d[p]+=c[m]+f:l[p]+=u[m]+f,d[1-p]+=c[h]/2-u[h]/2,s.x=d[0],s.y=d[1],o.x=l[0],o.y=l[1];var _={x:0,y:0};return _[m]=c[m]+f+u[m],_[h]=Math.max(c[h],u[h]),_[g]=Math.min(0,u[g]+d[1-p]),_}return o.x=l[0],o.y=l[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type=`legend.plain`,t}(FT);function jU(e,t,n,r,i,a,o){function s(e,t){e.lineWidth===`auto`&&(e.lineWidth=t.lineWidth>0?2:0),OU(e,function(n,r){e[r]===`inherit`&&(e[r]=t[r])})}var c=t.getModel(`itemStyle`),l=c.getItemStyle(),u=e.lastIndexOf(`empty`,0)===0?`fill`:`stroke`,d=c.getShallow(`decal`);l.decal=!d||d===`inherit`?r.decal:pD(d,o),l.fill===`inherit`&&(l.fill=r[i]),l.stroke===`inherit`&&(l.stroke=r[u]),l.opacity===`inherit`&&(l.opacity=(i===`fill`?r:n).opacity),s(l,r);var f=t.getModel(`lineStyle`),p=f.getLineStyle();if(s(p,n),l.fill===`auto`&&(l.fill=r.fill),l.stroke===`auto`&&(l.stroke=r.fill),p.stroke===`auto`&&(p.stroke=r.fill),!a){var m=t.get(`inactiveBorderWidth`),h=l[u];l.lineWidth=m===`auto`?r.lineWidth>0&&h?2:0:l.lineWidth,l.fill=t.get(`inactiveColor`),l.stroke=t.get(`inactiveBorderColor`),p.stroke=f.get(`inactiveColor`),p.lineWidth=f.get(`inactiveWidth`)}return{itemStyle:l,lineStyle:p}}function MU(e){var t=e.icon||`roundRect`,n=_v(t,0,0,e.itemWidth,e.itemHeight,e.itemStyle.fill,e.symbolKeepAspect);return n.setStyle(e.itemStyle),n.rotation=(e.iconRotate||0)*Math.PI/180,n.setOrigin([e.itemWidth/2,e.itemHeight/2]),t.indexOf(`empty`)>-1&&(n.style.stroke=n.style.fill,n.style.fill=D_.color.neutral00,n.style.lineWidth=2),n}function NU(e,t,n,r){FU(e,t,n,r),n.dispatchAction({type:`legendToggleSelect`,name:e??t}),PU(e,t,n,r)}function PU(e,t,n,r){n.usingTHL()||n.dispatchAction({type:`highlight`,seriesName:e,name:t,excludeSeriesId:r})}function FU(e,t,n,r){n.usingTHL()||n.dispatchAction({type:`downplay`,seriesName:e,name:t,excludeSeriesId:r})}function IU(e,t,n){var r=e===`allSelect`||e===`inverseSelect`,i={},a=[];n.eachComponent({mainType:`legend`,query:t},function(n){r?n[e]():n[e](t.name),LU(n,i),a.push(n.componentIndex)});var o={};return n.eachComponent(`legend`,function(e){R(i,function(t,n){e[t?`select`:`unSelect`](n)}),LU(e,o)}),r?{selected:o,legendIndex:a}:{name:t.name,selected:o}}function LU(e,t){var n=t||{};return R(e.getData(),function(t){var r=t.get(`name`);if(r!==` +`&&r!==``){var i=e.isSelected(r);n[r]=ze(n,r)?n[r]&&i:i}}),n}function RU(e){e.registerAction(`legendToggleSelect`,`legendselectchanged`,pe(IU,`toggleSelected`)),e.registerAction(`legendAllSelect`,`legendselectall`,pe(IU,`allSelect`)),e.registerAction(`legendInverseSelect`,`legendinverseselect`,pe(IU,`inverseSelect`)),e.registerAction(`legendSelect`,`legendselected`,pe(IU,`select`)),e.registerAction(`legendUnSelect`,`legendunselected`,pe(IU,`unSelect`))}var zU=Yc(BU);function BU(e){var t=e.findComponents({mainType:`legend`});t&&t.length&&e.filterSeries(function(e){for(var n=0;nn[i],m=[-d.x,-d.y];t||(m[r]=c[s]);var h=[0,0],g=[-f.x,-f.y],_=Ce(e.get(`pageButtonGap`,!0),e.get(`itemGap`,!0));p&&(e.get(`pageButtonPosition`,!0)===`end`?g[r]+=n[i]-f[i]:h[r]+=f[i]+_),g[1-r]+=d[a]/2-f[a]/2,c.setPosition(m),l.setPosition(h),u.setPosition(g);var v={x:0,y:0};if(v[i]=p?n[i]:d[i],v[a]=Math.max(d[a],f[a]),v[o]=Math.min(0,f[o]+g[1-r]),l.__rectSize=n[i],p){var y={x:0,y:0};y[i]=Math.max(n[i]-f[i]-_,0),y[a]=v[a],l.setClipPath(new Uo({shape:y})),l.__rectSize=y[i]}else u.eachChild(function(e){e.attr({invisible:!0,silent:!0})});var b=this._getPageInfo(e);return b.pageIndex!=null&&Bd(c,{x:b.contentPosition[0],y:b.contentPosition[1]},p?e:null),this._updatePageInfoView(e,b),v},t.prototype._pageGo=function(e,t,n){var r=this._getPageInfo(t)[e];r!=null&&n.dispatchAction({type:`legendScroll`,scrollDataIndex:r,legendId:t.id})},t.prototype._updatePageInfoView=function(e,t){var n=this._controllerGroup;R([`pagePrev`,`pageNext`],function(r){var i=t[r+`DataIndex`]!=null,a=n.childOfName(r);a&&(a.setStyle(`fill`,i?e.get(`pageIconColor`,!0):e.get(`pageIconInactiveColor`,!0)),a.cursor=i?`pointer`:`default`)});var r=n.childOfName(`pageText`),i=e.get(`pageFormatter`),a=t.pageIndex,o=a==null?0:a+1,s=t.pageCount;r&&i&&r.setStyle(`text`,V(i)?i.replace(`{current}`,o==null?``:o+``).replace(`{total}`,s==null?``:s+``):i({current:o,total:s}))},t.prototype._getPageInfo=function(e){var t=e.get(`scrollDataIndex`,!0),n=this.getContentGroup(),r=this._containerGroup.__rectSize,i=e.getOrient().index,a=GU[i],o=KU[i],s=this._findTargetItemIndex(t),c=n.children(),l=c[s],u=c.length,d=+!!u,f={contentPosition:[n.x,n.y],pageCount:d,pageIndex:d-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!l)return f;var p=v(l);f.contentPosition[i]=-p.s;for(var m=s+1,h=p,g=p,_=null;m<=u;++m)_=v(c[m]),(!_&&g.e>h.s+r||_&&!y(_,h.s))&&(h=g.i>h.i?g:_,h&&(f.pageNextDataIndex??=h.i,++f.pageCount)),g=_;for(var m=s-1,h=p,g=p,_=null;m>=-1;--m)_=v(c[m]),(!_||!y(g,_.s))&&h.i=t&&e.s<=t+r}},t.prototype._findTargetItemIndex=function(e){if(!this._showController)return 0;var t,n=this.getContentGroup(),r;return n.eachChild(function(n,i){var a=n.__legendDataIndex;r==null&&a!=null&&(r=i),a===e&&(t=i)}),t??r},t.type=`legend.scroll`,t}(AU);function JU(e){e.registerAction(`legendScroll`,`legendscroll`,function(e,t){var n=e.scrollDataIndex;n!=null&&t.eachComponent({mainType:`legend`,subType:`scroll`,query:e},function(e){e.setScrollDataIndex(n)})})}function YU(e){$O(VU),e.registerComponentModel(HU),e.registerComponentView(qU),JU(e)}function XU(e){$O(VU),$O(YU)}var ZU={get:function(e,t,n){var r=P((QU[e]||{})[t]);return n&&B(r)?r[r.length-1]:r}},QU={color:{active:[`#006edd`,`#e0ffff`],inactive:[D_.color.transparent]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:[`circle`,`roundRect`,`diamond`],inactive:[`none`]},symbolSize:{active:[10,50],inactive:[0,0]}},$U=cA.mapVisual,eW=cA.eachVisual,tW=B,nW=R,rW=Os,iW=Ss,aW=function(e){p(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.stateList=[`inRange`,`outOfRange`],n.replacableOptionKeys=[`inRange`,`outOfRange`,`target`,`controller`,`color`],n.layoutMode={type:`box`,ignoreSize:!0},n.dataBound=[-1/0,1/0],n.targetVisuals={},n.controllerVisuals={},n}return t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n)},t.prototype.optionUpdated=function(e,t){var n=this.option;!t&&CU(n,e,this.replacableOptionKeys),this.textStyleModel=this.getModel(`textStyle`),this.resetItemSize(),this.completeVisualOption()},t.prototype.resetVisual=function(e){var t=this.stateList;e=fe(e,this),this.controllerVisuals=SU(this.option.controller,t,e),this.targetVisuals=SU(this.option.target,t,e)},t.prototype.getItemSymbol=function(){return null},t.prototype.getTargetSeriesIndices=function(){var e=this,t=this.option.seriesTargets;if(t){var n=[];return nW(t,function(t){if(t.seriesIndex!=null)n.push(t.seriesIndex);else if(t.seriesId!=null){var r;e.ecModel.eachSeries(function(e){e.id===t.seriesId&&(r=e)}),r&&n.push(r.componentIndex)}}),n}var r=this.option.seriesId,i=this.option.seriesIndex;i==null&&r==null&&(i=`all`);var a=Oc(this.ecModel,`series`,{index:i,id:r},{useDefault:!1,enableAll:!0,enableNone:!1}).models;return z(a,function(e){return e.componentIndex})},t.prototype.eachTargetSeries=function(e,t){R(this.getTargetSeriesIndices(),function(n){var r=this.ecModel.getSeriesByIndex(n);r&&e.call(t,r)},this)},t.prototype.isTargetSeries=function(e){var t=!1;return this.eachTargetSeries(function(n){n===e&&(t=!0)}),t},t.prototype.formatValueText=function(e,t,n){var r=this.option,i=r.precision,a=this.dataBound,o=r.formatter,s;n||=[`<`,`>`],B(e)&&(e=e.slice(),s=!0);var c=t?e:s?[l(e[0]),l(e[1])]:l(e);if(V(o))return o.replace(`{value}`,s?c[0]:c).replace(`{value2}`,s?c[1]:c);if(me(o))return s?o(e[0],e[1]):o(e);if(s)return e[0]===a[0]?n[0]+` `+c[1]:e[1]===a[1]?n[1]+` `+c[0]:c[0]+` - `+c[1];return c;function l(e){return e===a[0]?`min`:e===a[1]?`max`:(+e).toFixed(Math.min(i,20))}},t.prototype.resetExtent=function(){var e=this.option,t=rW([e.min,e.max]);this._dataExtent=t},t.prototype.getDimension=function(e){var t=this,n=this.option.seriesTargets;if(n){var r=le(n,function(n){return n.seriesIndex!=null&&n.seriesIndex===e||n.seriesId!=null&&n.seriesId===t.ecModel.getSeriesByIndex(e).id});if(r)return r.dimension}return this.option.dimension},t.prototype.getDataDimensionIndex=function(e){var t=e.hostModel.seriesIndex,n=this.getDimension(t);if(n!=null)return e.getDimensionIndex(n);for(var r=e.dimensions,i=r.length-1;i>=0;i--){var a=r[i],o=e.getDimensionInfo(a);if(!o.isCalculationCoord)return o.storeDimIndex}},t.prototype.getExtent=function(){return this._dataExtent.slice()},t.prototype.completeVisualOption=function(){var e=this.ecModel,t=this.option,n={inRange:t.inRange,outOfRange:t.outOfRange},r=t.target||={},i=t.controller||={};F(r,n),F(i,n);var a=this.isCategory();o.call(this,r),o.call(this,i),s.call(this,r,`inRange`,`outOfRange`),c.call(this,i);function o(n){tW(t.color)&&!n.inRange&&(n.inRange={color:t.color.slice().reverse()}),n.inRange=n.inRange||{color:e.get(`gradientColor`)}}function s(e,t,n){var r=e[t],i=e[n];r&&!i&&(i=e[n]={},nW(r,function(e,t){if(cA.isValidType(t)){var n=ZU.get(t,`inactive`,a);n!=null&&(i[t]=n,t===`color`&&!i.hasOwnProperty(`opacity`)&&!i.hasOwnProperty(`colorAlpha`)&&(i.opacity=[0,0]))}}))}function c(e){var t=(e.inRange||{}).symbol||(e.outOfRange||{}).symbol,n=(e.inRange||{}).symbolSize||(e.outOfRange||{}).symbolSize,r=this.get(`inactiveColor`),i=this.getItemSymbol()||`roundRect`;nW(this.stateList,function(o){var s=this.itemSize,c=e[o];c||=e[o]={color:a?r:[r]},c.symbol??(c.symbol=t&&P(t)||(a?i:[i])),c.symbolSize??(c.symbolSize=n&&P(n)||(a?s[0]:[s[0],s[0]])),c.symbol=$U(c.symbol,function(e){return e===`none`?i:e});var l=c.symbolSize;if(l!=null){var u=-1/0;eW(l,function(e){e>u&&(u=e)}),c.symbolSize=$U(l,function(e){return iW(e,[0,u],[0,s[0]],!0)})}},this)}},t.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get(`itemWidth`)),parseFloat(this.get(`itemHeight`))]},t.prototype.isCategory=function(){return!!this.option.categories},t.prototype.setSelected=function(e){},t.prototype.getSelected=function(){return null},t.prototype.getValueState=function(e){return null},t.prototype.getVisualMeta=function(e){return null},t.type=`visualMap`,t.dependencies=[`series`],t.defaultOption={show:!0,z:4,min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:`vertical`,backgroundColor:D_.color.transparent,borderColor:D_.color.borderTint,contentColor:D_.color.theme[0],inactiveColor:D_.color.disabled,borderWidth:0,padding:D_.size.m,textGap:10,precision:0,textStyle:{color:D_.color.secondary}},t}(t_),oW=[20,140],sW=function(e){p(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.optionUpdated=function(t,n){e.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(e){e.mappingMethod=`linear`,e.dataExtent=this.getExtent()}),this._resetRange()},t.prototype.resetItemSize=function(){e.prototype.resetItemSize.apply(this,arguments);var t=this.itemSize;(t[0]==null||isNaN(t[0]))&&(t[0]=oW[0]),(t[1]==null||isNaN(t[1]))&&(t[1]=oW[1])},t.prototype._resetRange=function(){var e=this.getExtent(),t=this.option.range;!t||t.auto?(e.auto=1,this.option.range=e):B(t)&&(t[0]>t[1]&&t.reverse(),t[0]=Math.max(t[0],e[0]),t[1]=Math.min(t[1],e[1]))},t.prototype.completeVisualOption=function(){e.prototype.completeVisualOption.apply(this,arguments),R(this.stateList,function(e){var t=this.option.controller[e].symbolSize;t&&t[0]!==t[1]&&(t[0]=t[1]/3)},this)},t.prototype.setSelected=function(e){this.option.range=e.slice(),this._resetRange()},t.prototype.getSelected=function(){var e=this.getExtent(),t=Os((this.get(`range`)||[]).slice());return t[0]>e[1]&&(t[0]=e[1]),t[1]>e[1]&&(t[1]=e[1]),t[0]=n[1]||e<=t[1])?`inRange`:`outOfRange`},t.prototype.findTargetDataIndices=function(e){var t=[];return this.eachTargetSeries(function(n){var r=[],i=n.getData();i.each(this.getDataDimensionIndex(i),function(t,n){e[0]<=t&&t<=e[1]&&r.push(n)},this),t.push({seriesId:n.id,dataIndex:r})},this),t},t.prototype.getVisualMeta=function(e){var t=cW(this,`outOfRange`,this.getExtent()),n=cW(this,`inRange`,this.option.range.slice()),r=[];function i(t,n){r.push({value:t,color:e(t,n)})}for(var a=0,o=0,s=n.length,c=t.length;oe[1])break;r.push({color:this.getControllerVisual(o,`color`,t),offset:a/n})}return r.push({color:this.getControllerVisual(e[1],`color`,t),offset:1}),r},t.prototype._createBarPoints=function(e,t){var n=this.visualMapModel.itemSize;return[[n[0]-t[0],e[0]],[n[0],e[0]],[n[0],e[1]],[n[0]-t[1],e[1]]]},t.prototype._createBarGroup=function(e){var t=this._orient,n=this.visualMapModel.get(`inverse`);return new Lu(t===`horizontal`&&!n?{scaleX:e===`bottom`?1:-1,rotation:Math.PI/2}:t===`horizontal`&&n?{scaleX:e===`bottom`?-1:1,rotation:-Math.PI/2}:t===`vertical`&&!n?{scaleX:e===`left`?1:-1,scaleY:-1}:{scaleX:e===`left`?1:-1})},t.prototype._updateHandle=function(e,t){if(this._useHandle){var n=this._shapes,r=this.visualMapModel,i=n.handleThumbs,a=n.handleLabels,o=r.itemSize,s=r.getExtent(),c=this._applyTransform(`left`,n.mainGroup);mW([0,1],function(l){var u=i[l];u.setStyle(`fill`,t.handlesColor[l]),u.y=e[l];var d=pW(e[l],[0,o[1]],s,!0),f=this.getControllerVisual(d,`symbolSize`);u.scaleX=u.scaleY=f/o[0],u.x=o[0]-f/2;var p=ff(n.handleLabelPoints[l],df(u,this.group));if(this._orient===`horizontal`){var m=c===`left`||c===`top`?(o[0]-f)/2:(o[0]-f)/-2;p[1]+=m}a[l].setStyle({x:p[0],y:p[1],text:r.formatValueText(this._dataInterval[l]),verticalAlign:`middle`,align:this._orient===`vertical`?this._applyTransform(`left`,n.mainGroup):`center`})},this)}},t.prototype._showIndicator=function(e,t,n,r){var i=this.visualMapModel,a=i.getExtent(),o=i.itemSize,s=[0,o[1]],c=this._shapes,l=c.indicator;if(l){l.attr(`invisible`,!1);var u=this.getControllerVisual(e,`color`,{convertOpacityToAlpha:!0}),d=this.getControllerVisual(e,`symbolSize`),f=pW(e,a,s,!0),p=o[0]-d/2,m={x:l.x,y:l.y};l.y=f,l.x=p;var h=ff(c.indicatorLabelPoint,df(l,this.group)),g=c.indicatorLabel;g.attr(`invisible`,!1);var _=this._applyTransform(`left`,c.mainGroup),v=this._orient===`horizontal`;g.setStyle({text:(n||``)+i.formatValueText(t),verticalAlign:v?_:`middle`,align:v?`center`:_});var y={x:p,y:f,style:{fill:u}},b={style:{x:h[0],y:h[1]}};if(i.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var x={duration:100,easing:`cubicInOut`,additive:!0};l.x=m.x,l.y=m.y,l.animateTo(y,x),g.animateTo(b,x)}else l.attr(y),g.attr(b);this._firstShowIndicator=!1;var S=this._shapes.handleLabels;if(S)for(var C=0;Ci[1]&&(l[1]=1/0),t&&(l[0]===-1/0?this._showIndicator(c,l[1],`< `,o):l[1]===1/0?this._showIndicator(c,l[0],`> `,o):this._showIndicator(c,c,`≈ `,o));var u=this._hoverLinkDataIndices,d=[];(t||SW(n))&&(d=this._hoverLinkDataIndices=n.findTargetDataIndices(l));var f=xc(u,d);this._dispatchHighDown(`downplay`,fW(f[0],n)),this._dispatchHighDown(`highlight`,fW(f[1],n))}},t.prototype._hoverLinkFromSeriesMouseOver=function(e){var t;if(bE(e.target,function(e){var n=Xc(e);if(n.dataIndex!=null)return t=n,!0},!0),t){var n=this.ecModel.getSeriesByIndex(t.seriesIndex),r=this.visualMapModel;if(r.isTargetSeries(n)){var i=n.getData(t.dataType),a=i.getStore().get(r.getDataDimensionIndex(i),t.dataIndex);isNaN(a)||this._showIndicator(a,a)}}},t.prototype._hideIndicator=function(){var e=this._shapes;e.indicator&&e.indicator.attr(`invisible`,!0),e.indicatorLabel&&e.indicatorLabel.attr(`invisible`,!0);var t=this._shapes.handleLabels;if(t)for(var n=0;n=0&&(i.dimension=a,r.push(i))}}),e.getData().setVisual(`visualMeta`,r)}}];function DW(e,t,n,r){for(var i=t.targetVisuals[r],a=cA.prepareVisualTypes(i),o={color:vE(e.getData(),`color`)},s=0,c=a.length;s0:e.splitNumber>0)||e.calculable)?`continuous`:`piecewise`}),e.registerAction(wW,TW),R(EW,function(t){e.registerVisual(e.PRIORITY.VISUAL.COMPONENT,t)}),e.registerPreprocessor(kW))}function NW(e){e.registerComponentModel(sW),e.registerComponentView(yW),MW(e)}var PW=function(e){p(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n._pieceList=[],n}return t.prototype.optionUpdated=function(t,n){e.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var r=this._mode=this._determineMode();this._pieceList=[],FW[this._mode].call(this,this._pieceList),this._resetSelected(t,n);var i=this.option.categories;this.resetVisual(function(e,t){r===`categories`?(e.mappingMethod=`category`,e.categories=P(i)):(e.dataExtent=this.getExtent(),e.mappingMethod=`piecewise`,e.pieceList=z(this._pieceList,function(e){return e=P(e),t!==`inRange`&&(e.visual=null),e}))})},t.prototype.completeVisualOption=function(){var t=this.option,n={},r=cA.listVisualTypes(),i=this.isCategory();R(t.pieces,function(e){R(r,function(t){e.hasOwnProperty(t)&&(n[t]=1)})}),R(n,function(e,n){var r=!1;R(this.stateList,function(e){r=r||a(t,e,n)||a(t.target,e,n)},this),!r&&R(this.stateList,function(e){(t[e]||(t[e]={}))[n]=ZU.get(n,e===`inRange`?`active`:`inactive`,i)})},this);function a(e,t,n){return e&&e[t]&&e[t].hasOwnProperty(n)}e.prototype.completeVisualOption.apply(this,arguments)},t.prototype._resetSelected=function(e,t){var n=this.option,r=this._pieceList,i=(t?n:e).selected||{};if(n.selected=i,R(r,function(e,t){var n=this.getSelectedMapKey(e);i.hasOwnProperty(n)||(i[n]=!0)},this),n.selectedMode===`single`){var a=!1;R(r,function(e,t){var n=this.getSelectedMapKey(e);i[n]&&(a?i[n]=!1:a=!0)},this)}},t.prototype.getItemSymbol=function(){return this.get(`itemSymbol`)},t.prototype.getSelectedMapKey=function(e){return this._mode===`categories`?e.value+``:e.index+``},t.prototype.getPieceList=function(){return this._pieceList},t.prototype._determineMode=function(){var e=this.option;return e.pieces&&e.pieces.length>0?`pieces`:this.option.categories?`categories`:`splitNumber`},t.prototype.setSelected=function(e){this.option.selected=P(e)},t.prototype.getValueState=function(e){var t=cA.findPieceIndex(e,this._pieceList);return t==null?`outOfRange`:this.option.selected[this.getSelectedMapKey(this._pieceList[t])]?`inRange`:`outOfRange`},t.prototype.findTargetDataIndices=function(e){var t=[],n=this._pieceList;return this.eachTargetSeries(function(r){var i=[],a=r.getData();a.each(this.getDataDimensionIndex(a),function(t,r){cA.findPieceIndex(t,n)===e&&i.push(r)},this),t.push({seriesId:r.id,dataIndex:i})},this),t},t.prototype.getRepresentValue=function(e){var t;if(this.isCategory())t=e.value;else if(e.value!=null)t=e.value;else{var n=e.interval||[];t=n[0]===-1/0&&n[1]===1/0?0:(n[0]+n[1])/2}return t},t.prototype.getVisualMeta=function(e){if(this.isCategory())return;var t=[],n=[``,``],r=this;function i(i,a){var o=r.getRepresentValue({interval:i});a||=r.getValueState(o);var s=e(o,a);i[0]===-1/0?n[0]=s:i[1]===1/0?n[1]=s:t.push({value:i[0],color:s},{value:i[1],color:s})}var a=this._pieceList.slice();if(!a.length)a.push({interval:[-1/0,1/0]});else{var o=a[0].interval[0];o!==-1/0&&a.unshift({interval:[-1/0,o]}),o=a[a.length-1].interval[1],o!==1/0&&a.push({interval:[o,1/0]})}var s=-1/0;return R(a,function(e){var t=e.interval;t&&(t[0]>s&&i([s,t[0]],`outOfRange`),i(t.slice()),s=t[1])},this),{stops:t,outerColors:n}},t.type=`visualMap.piecewise`,t.defaultOption=_h(aW.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:`auto`,itemWidth:20,itemHeight:14,itemSymbol:`roundRect`,pieces:null,categories:null,splitNumber:5,selectedMode:`multiple`,itemGap:10,hoverLink:!0}),t}(aW),FW={splitNumber:function(e){var t=this.option,n=Math.min(t.precision,20),r=this.getExtent(),i=t.splitNumber;i=Math.max(parseInt(i,10),1),t.splitNumber=i;for(var a=(r[1]-r[0])/i;+a.toFixed(n)!==a&&n<5;)n++;t.precision=n,a=+a.toFixed(n),t.minOpen&&e.push({interval:[-1/0,r[0]],close:[0,0]});for(var o=0,s=r[0];o`,`≥`][t[0]]];e.text=e.text||this.formatValueText(e.value==null?e.interval:e.value,!1,n)},this)}};function IW(e,t){var n=e.inverse;(e.orient===`vertical`?!n:n)&&t.reverse()}var LW=function(e){p(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.doRender=function(){var e=this.group;e.removeAll();var t=this.visualMapModel,n=t.get(`textGap`),r=t.textStyleModel,i=this._getItemAlign(),a=t.itemSize,o=this._getViewData(),s=o.endsText,c=Se(t.get(`showLabel`,!0),!s),l=!t.get(`selectedMode`);s&&this._renderEndsText(e,s[0],a,c,i),R(o.viewPieceList,function(o){var s=o.piece,u=new Lu;u.onclick=fe(this._onItemClick,this,s),this._enableHoverLink(u,o.indexInModelPieceList);var d=t.getRepresentValue(s);if(this._createItemSymbol(u,d,[0,0,a[0],a[1]],l),c){var f=this.visualMapModel.getValueState(d),p=r.get(`align`)||i;u.add(new Jo({style:qf(r,{x:p===`right`?-n:a[0]+n,y:a[1]/2,text:s.text,verticalAlign:r.get(`verticalAlign`)||`middle`,align:p,opacity:Ce(r.get(`opacity`),f===`outOfRange`?.5:1)}),silent:l}))}e.add(u)},this),s&&this._renderEndsText(e,s[1],a,c,i),Wg(t.get(`orient`),e,t.get(`itemGap`)),this.renderBackground(e),this.positionGroup(e)},t.prototype._enableHoverLink=function(e,t){var n=this;e.on(`mouseover`,function(){return r(`highlight`)}).on(`mouseout`,function(){return r(`downplay`)});var r=function(e){var r=n.visualMapModel;r.option.hoverLink&&n.api.dispatchAction({type:e,batch:fW(r.findTargetDataIndices(t),r)})}},t.prototype._getItemAlign=function(){var e=this.visualMapModel,t=e.option;if(t.orient===`vertical`)return dW(e,this.api,e.itemSize);var n=t.align;return(!n||n===`auto`)&&(n=`left`),n},t.prototype._renderEndsText=function(e,t,n,r,i){if(t){var a=new Lu,o=this.visualMapModel.textStyleModel;a.add(new Jo({style:qf(o,{x:r?i===`right`?n[0]:0:n[0]/2,y:n[1]/2,verticalAlign:`middle`,align:r?i:`center`,text:t})})),e.add(a)}},t.prototype._getViewData=function(){var e=this.visualMapModel,t=z(e.getPieceList(),function(e,t){return{piece:e,indexInModelPieceList:t}}),n=e.get(`text`),r=e.get(`orient`),i=e.get(`inverse`);return(r===`horizontal`?i:!i)?t.reverse():n&&=n.slice().reverse(),{viewPieceList:t,endsText:n}},t.prototype._createItemSymbol=function(e,t,n,r){var i=_v(this.getControllerVisual(t,`symbol`),n[0],n[1],n[2],n[3],this.getControllerVisual(t,`color`));i.silent=r,e.add(i)},t.prototype._onItemClick=function(e){var t=this.visualMapModel,n=t.option,r=n.selectedMode;if(r){var i=P(n.selected),a=t.getSelectedMapKey(e);r===`single`||r===!0?(i[a]=!0,R(i,function(e,t){i[t]=t===a})):i[a]=!i[a],this.api.dispatchAction({type:`selectDataRange`,from:this.uid,visualMapId:this.visualMapModel.id,selected:i})}},t.type=`visualMap.piecewise`,t}(lW);function RW(e){e.registerComponentModel(PW),e.registerComponentView(LW),MW(e)}function zW(e){$O(NW),$O(RW)}var BW={label:{enabled:!0},decal:{show:!1}},VW=Cc(),HW=Cc(),UW=Yc(WW);function WW(e,t){var n=e.getModel(`aria`);if(!n.get(`enabled`))return;var r=HW(e).scope||(HW(e).scope={}),i=P(BW);F(i.label,e.getLocaleModel().get(`aria`),!1),F(n.option,i,!1),a(),o();function a(){if(n.getModel(`decal`).get(`show`)){var t=Ie();e.eachSeries(function(e){e.isColorBySeries()||(VW(e).scope=t.get(e.type)||t.set(e.type,{}))}),e.eachSeries(function(t){if(me(t.enableAriaDecal)){t.enableAriaDecal();return}var n=t.getData();if(t.isColorBySeries()){var i=o_(t.ecModel,t.name,r,e.getSeriesCount()),a=n.getVisual(`decal`);n.setVisual(`decal`,u(a,i))}else{var o=t.getRawData(),s={},c=VW(t).scope;n.each(function(e){var t=n.getRawIndex(e);s[t]=e});var l=o.count();o.each(function(e){var r=s[e],i=o.getName(e)||e+``,a=o_(t.ecModel,i,c,l),d=n.getItemVisual(r,`decal`);n.setItemVisual(r,`decal`,u(d,a))})}function u(e,t){var n=e?I(I({},t),e):t;return n.dirty=!0,n}})}}function o(){var r=t.getZr().dom;if(r){var i=e.getLocaleModel().get(`aria`),a=n.getModel(`label`);if(a.option=L(a.option,i),a.get(`enabled`)){if(r.setAttribute(`role`,`img`),a.get(`description`)){r.setAttribute(`aria-label`,a.get(`description`));return}var o=e.getSeriesCount(),u=a.get([`data`,`maxCount`])||10,d=a.get([`series`,`maxCount`])||10,f=Math.min(o,d),p;if(!(o<1)){var m=c();p=m?s(a.get([`general`,`withTitle`]),{title:m}):a.get([`general`,`withoutTitle`]);var h=[],g=o>1?a.get([`series`,`multiple`,`prefix`]):a.get([`series`,`single`,`prefix`]);p+=s(g,{seriesCount:o}),e.eachSeries(function(e,t){if(t1?a.get([`series`,`multiple`,r]):a.get([`series`,`single`,r]),n=s(n,{seriesId:e.seriesIndex,seriesName:e.get(`name`),seriesType:l(e.subType)});var i=e.getData();if(i.count()>u){var c=a.get([`data`,`partialData`]);n+=s(c,{displayCnt:u})}else n+=a.get([`data`,`allData`]);for(var d=a.get([`data`,`separator`,`middle`]),p=a.get([`data`,`separator`,`end`]),m=a.get([`data`,`excludeDimensionId`]),g=[],_=0;_=XW:-c>=XW),f=c>0?c%XW:c%XW+XW,p=!1;p=d?!0:!ai(u)&&f>=YW==!!l;var m=e+n*JW(a),h=t+r*qW(a);this._start&&this._add(`M`,m,h);var g=Math.round(i*ZW);if(d){var _=1/this._p,v=(l?1:-1)*(XW-_);this._add(`A`,n,r,g,1,+l,e+n*JW(a+v),t+r*qW(a+v)),_>.01&&this._add(`A`,n,r,g,0,+l,m,h)}else{var y=e+n*JW(o),b=t+r*qW(o);this._add(`A`,n,r,g,+p,+l,y,b)}},e.prototype.rect=function(e,t,n,r){this._add(`M`,e,t),this._add(`l`,n,0),this._add(`l`,0,r),this._add(`l`,-n,0),this._add(`Z`)},e.prototype.closePath=function(){this._d.length>0&&this._add(`Z`)},e.prototype._add=function(e,t,n,r,i,a,o,s,c){for(var l=[],u=this._p,d=1;d`}function mG(e){return``}function hG(e,t){t||={};var n=t.newline?` +`:``;function r(e){var t=e.children,i=e.tag,a=e.attrs,o=e.text;return pG(i,a)+(i===`style`?o||``:jh(o))+(t?``+n+z(t,function(e){return r(e)}).join(n)+n:``)+mG(i)}return r(e)}function gG(e,t,n){n||={};var r=n.newline?` +`:``,i=` {`+r,a=r+`}`,o=z(ue(e),function(t){return t+i+z(ue(e[t]),function(n){return n+`:`+e[t][n]+`;`}).join(r)+a}).join(r),s=z(ue(t),function(e){return`@keyframes `+e+i+z(ue(t[e]),function(n){return n+i+z(ue(t[e][n]),function(r){var i=t[e][n][r];return r===`d`&&(i=`path("`+i+`")`),r+`:`+i+`;`}).join(r)+a}).join(r)+a}).join(r);return!o&&!s?``:[``].join(r)}function _G(e){return{zrId:e,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function vG(e,t,n,r){return fG(`svg`,`root`,{width:e,height:t,xmlns:oG,"xmlns:xlink":sG,version:`1.1`,baseProfile:`full`,viewBox:r?`0 0 `+e+` `+t:!1},n)}var yG=0;function bG(){return yG++}var xG={cubicIn:`0.32,0,0.67,0`,cubicOut:`0.33,1,0.68,1`,cubicInOut:`0.65,0,0.35,1`,quadraticIn:`0.11,0,0.5,0`,quadraticOut:`0.5,1,0.89,1`,quadraticInOut:`0.45,0,0.55,1`,quarticIn:`0.5,0,0.75,0`,quarticOut:`0.25,1,0.5,1`,quarticInOut:`0.76,0,0.24,1`,quinticIn:`0.64,0,0.78,0`,quinticOut:`0.22,1,0.36,1`,quinticInOut:`0.83,0,0.17,1`,sinusoidalIn:`0.12,0,0.39,0`,sinusoidalOut:`0.61,1,0.88,1`,sinusoidalInOut:`0.37,0,0.63,1`,exponentialIn:`0.7,0,0.84,0`,exponentialOut:`0.16,1,0.3,1`,exponentialInOut:`0.87,0,0.13,1`,circularIn:`0.55,0,1,0.45`,circularOut:`0,0.55,0.45,1`,circularInOut:`0.85,0,0.15,1`},SG=`transform-origin`;function CG(e,t,n){var r=I({},e.shape);I(r,t),e.buildPath(n,r);var i=new QW;return i.reset(bi(e)),n.rebuildPath(i,1),i.generateStr(),i.getStr()}function wG(e,t){var n=t.originX,r=t.originY;(n||r)&&(e[SG]=n+`px `+r+`px`)}var TG={fill:`fill`,opacity:`opacity`,lineWidth:`stroke-width`,lineDashOffset:`stroke-dashoffset`};function EG(e,t){var n=t.zrId+`-ani-`+t.cssAnimIdx++;return t.cssAnims[n]=e,n}function DG(e,t,n){var r=e.shape.paths,i={},a,o;if(R(r,function(e){var t=_G(n.zrId);t.animation=!0,kG(e,{},t,!0);var r=t.cssAnims,s=t.cssNodes,c=ue(r),l=c.length;if(l){o=c[l-1];var u=r[o];for(var d in u){var f=u[d];i[d]=i[d]||{d:``},i[d].d+=f.d||``}for(var p in s){var m=s[p].animation;m.indexOf(o)>=0&&(a=m)}}}),a){t.d=!1;var s=EG(i,n);return a.replace(o,s)}}function OG(e){return V(e)?xG[e]?`cubic-bezier(`+xG[e]+`)`:Ar(e)?e:``:``}function kG(e,t,n,r){var i=e.animators,a=i.length,o=[];if(e instanceof Sd){var s=DG(e,t,n);if(s)o.push(s);else if(!a)return}else if(!a)return;for(var c={},l=0;l0}).length)return EG(l,n)+` `+i[0]+` both`}for(var g in c){var s=h(c[g]);s&&o.push(s)}if(o.length){var _=n.zrId+`-cls-`+bG();n.cssNodes[`.`+_]={animation:o.join(`,`)},t.class=_}}function AG(e,t,n){if(!e.ignore)if(e.isSilent()){var r={"pointer-events":`none`};jG(r,t,n,!0)}else{var i=e.states.emphasis&&e.states.emphasis.style?e.states.emphasis.style:{},a=i.fill;if(!a){var o=e.style&&e.style.fill,s=e.states.select&&e.states.select.style&&e.states.select.style.fill,c=e.currentStates.indexOf(`select`)>=0&&s||o;c&&(a=ti(c))}var l=i.lineWidth;if(l){var u=!i.strokeNoScale&&e.transform?e.transform[0]:1;l/=u}var r={cursor:`pointer`};a&&(r.fill=a),i.stroke&&(r.stroke=i.stroke),l&&(r[`stroke-width`]=l),jG(r,t,n,!0)}}function jG(e,t,n,r){var i=JSON.stringify(e),a=n.cssStyleCache[i];a||(a=n.zrId+`-cls-`+bG(),n.cssStyleCache[i]=a,n.cssNodes[`.`+a+(r?`:hover`:``)]=e),t.class=t.class?t.class+` `+a:a}var MG=Math.round;function NG(e){return e&&V(e.src)}function PG(e){return e&&me(e.toDataURL)}function FG(e,t,n,r){aG(function(i,a){var o=i===`fill`||i===`stroke`;o&&vi(a)?UG(t,e,i,r):o&&hi(a)?WG(n,e,i,r):e[i]=a,o&&r.ssr&&a===`none`&&(e[`pointer-events`]=`visible`)},t,n,!1),Jee(n,e,r)}function IG(e,t){var n=Bw(t);n&&(n.each(function(t,n){t!=null&&(e[(`ecmeta_`+n).toLowerCase()]=t+``)}),t.isSilent()&&(e[uG+`silent`]=`true`))}function LG(e){return ai(e[0]-1)&&ai(e[1])&&ai(e[2])&&ai(e[3]-1)}function Hee(e){return ai(e[4])&&ai(e[5])}function RG(e,t,n){if(t&&!(Hee(t)&&LG(t))){var r=n?10:1e4;e.transform=LG(t)?`translate(`+MG(t[4]*r)/r+` `+MG(t[5]*r)/r+`)`:ci(t)}}function zG(e,t,n){for(var r=e.points,i=[],a=0;a`u`){var g=`Image width/height must been given explictly in svg-ssr renderer.`;De(f,g),De(p,g)}else if(f==null||p==null){var _=function(e,t){if(e){var n=e.elm,r=f||t.width,i=p||t.height;e.tag===`pattern`&&(l?(i=1,r/=a.width):u&&(r=1,i/=a.height)),e.attrs.width=r,e.attrs.height=i,n&&(n.setAttribute(`width`,r),n.setAttribute(`height`,i))}},v=pt(m,null,e,function(e){c||_(S,e),_(d,e)});v&&v.width&&v.height&&(f||=v.width,p||=v.height)}d=fG(`image`,`img`,{href:m,width:f,height:p}),o.width=f,o.height=p}else i.svgElement&&(d=P(i.svgElement),o.width=i.svgWidth,o.height=i.svgHeight);if(d){var y,b;c?y=b=1:l?(b=1,y=o.width/a.width):u?(y=1,b=o.height/a.height):o.patternUnits=`userSpaceOnUse`,y!=null&&!isNaN(y)&&(o.width=y),b!=null&&!isNaN(b)&&(o.height=b);var x=xi(i);x&&(o.patternTransform=x);var S=fG(`pattern`,``,o,[d]),C=hG(S),w=r.patternCache,T=w[C];T||(T=r.zrId+`-p`+r.patternIdx++,w[C]=T,o.id=T,S=r.defs[T]=fG(`pattern`,T,o,[d])),t[n]=yi(T)}}function Yee(e,t,n){var r=n.clipPathCache,i=n.defs,a=r[e.id];if(!a){a=n.zrId+`-c`+n.clipPathIdx++;var o={id:a};r[e.id]=a,i[a]=fG(`clipPath`,a,o,[VG(e,n)])}t[`clip-path`]=yi(a)}function GG(e){return document.createTextNode(e)}function KG(e,t,n){e.insertBefore(t,n)}function qG(e,t){e.removeChild(t)}function JG(e,t){e.appendChild(t)}function YG(e){return e.parentNode}function XG(e){return e.nextSibling}function ZG(e,t){e.textContent=t}var QG=58,Xee=120,Zee=fG(``,``);function $G(e){return e===void 0}function eK(e){return e!==void 0}function Qee(e,t,n){for(var r={},i=t;i<=n;++i){var a=e[i].key;a!==void 0&&(r[a]=i)}return r}function tK(e,t){var n=e.key===t.key;return e.tag===t.tag&&n}function nK(e){var t,n=e.children,r=e.tag;if(eK(r)){var i=e.elm=dG(r);if(aK(Zee,e),B(n))for(t=0;ta?(m=n[c+1]==null?null:n[c+1].elm,rK(e,m,n,i,c)):iK(e,t,r,a))}function sK(e,t){var n=t.elm=e.elm,r=e.children,i=t.children;e!==t&&(aK(e,t),$G(t.text)?eK(r)&&eK(i)?r!==i&&oK(n,r,i):eK(i)?(eK(e.text)&&ZG(n,``),rK(n,null,i,0,i.length-1)):eK(r)?iK(n,r,0,r.length-1):eK(e.text)&&ZG(n,``):e.text!==t.text&&(eK(r)&&iK(n,r,0,r.length-1),ZG(n,t.text)))}function cK(e,t){if(tK(e,t))sK(e,t);else{var n=e.elm,r=YG(n);nK(t),r!==null&&(KG(r,t.elm,XG(n)),iK(r,[e],0,0))}return t}var lK=0,uK=function(){function e(e,t,n){if(this.type=`svg`,this.configLayer=dK(`configLayer`),this.storage=t,this._opts=n=I({},n),this.root=e,this._id=`zr`+lK++,this._oldVNode=vG(n.width,n.height),e&&!n.ssr){var r=this._viewport=document.createElement(`div`);r.style.cssText=`position:relative;overflow:hidden`;var i=this._svgDom=this._oldVNode.elm=dG(`svg`);aK(null,this._oldVNode),r.appendChild(i),e.appendChild(r)}this.resize(n.width,n.height)}return e.prototype.getType=function(){return this.type},e.prototype.getViewportRoot=function(){return this._viewport},e.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},e.prototype.getSvgDom=function(){return this._svgDom},e.prototype.refresh=function(){if(this.root){var e=this.renderToVNode({willUpdate:!0});e.attrs.style=`position:absolute;left:0;top:0;user-select:none`,cK(this._oldVNode,e),this._oldVNode=e}},e.prototype.renderOneToVNode=function(e){return HG(e,_G(this._id))},e.prototype.renderToVNode=function(e){e||={};var t=this.storage.getDisplayList(!0),n=this._width,r=this._height,i=_G(this._id);i.animation=e.animation,i.willUpdate=e.willUpdate,i.compress=e.compress,i.emphasis=e.emphasis,i.ssr=this._opts.ssr;var a=[],o=this._bgVNode=fK(n,r,this._backgroundColor,i);o&&a.push(o);var s=e.compress?null:this._mainVNode=fG(`g`,`main`,{},[]);this._paintList(t,i,s?s.children:a),s&&a.push(s);var c=z(ue(i.defs),function(e){return i.defs[e]});if(c.length&&a.push(fG(`defs`,`defs`,{},c)),e.animation){var l=gG(i.cssNodes,i.cssAnims,{newline:!0});if(l){var u=fG(`style`,`stl`,{},[],l);a.push(u)}}return vG(n,r,a,e.useViewBox)},e.prototype.renderToString=function(e){return e||={},hG(this.renderToVNode({animation:Ce(e.cssAnimation,!0),emphasis:Ce(e.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:Ce(e.useViewBox,!0)}),{newline:!0})},e.prototype.setBackgroundColor=function(e){this._backgroundColor=e},e.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},e.prototype._paintList=function(e,t,n){for(var r=e.length,i=[],a=0,o,s,c=0,l=0;l=0&&!(d&&s&&d[m]===s[m]);m--);for(var h=p-1;h>m;h--)a--,o=i[a-1];for(var g=m+1;g{if(!i.current)return;let t=NO(i.current,void 0,{renderer:`svg`});t.setOption({animationDuration:280,aria:{enabled:!0,decal:{show:!0},description:n},...e}),r&&t.on(`click`,r);let a=new ResizeObserver(()=>t.resize());return a.observe(i.current),()=>{a.disconnect(),t.dispose()}},[n,r,e]),(0,K.jsx)(`div`,{ref:i,className:`echart`,style:{height:t},role:`img`,"aria-label":n})}new Intl.NumberFormat(void 0,{maximumFractionDigits:0});function hK(e){let[t,n]=e.split(`/`),r=new Date(t),i=new Date(n);if(Number.isNaN(r.valueOf())||Number.isNaN(i.valueOf()))return e;let a=Math.round((i.valueOf()-r.valueOf())/6e4);return a>=60&&a%60==0?`Last ${a/60}h`:`Last ${Math.max(a,1)}m`}function q(e,t,n){function r(n,r){if(n._zod||Object.defineProperty(n,"_zod",{value:{def:r,constr:o,traits:new Set},enumerable:!1}),n._zod.traits.has(e))return;n._zod.traits.add(e),t(n,r);let i=o.prototype,a=Object.keys(i);for(let e=0;en?.Parent&&t instanceof n.Parent?!0:t?._zod?.traits?.has(e)}),Object.defineProperty(o,"name",{value:e}),o}function gK(e){return e&&Object.assign(SK,e),SK}var _K,vK,yK,bK,xK,SK,CK=o((()=>{vK=Object.freeze({status:`aborted`}),yK=Symbol(`zod_brand`),bK=class extends Error{constructor(){super(`Encountered Promise during synchronous parse. Use .parseAsync() instead.`)}},xK=class extends Error{constructor(e){super(`Encountered unidirectional transform during encode: ${e}`),this.name=`ZodEncodeError`}},(_K=globalThis).__zod_globalConfig??(_K.__zod_globalConfig={}),SK=globalThis.__zod_globalConfig})),wK=c({BIGINT_FORMAT_RANGES:()=>jq,Class:()=>Mq,NUMBER_FORMAT_RANGES:()=>Aq,aborted:()=>cq,allowsEval:()=>Eq,assert:()=>kK,assertEqual:()=>TK,assertIs:()=>DK,assertNever:()=>OK,assertNotEqual:()=>EK,assignProp:()=>RK,base64ToUint8Array:()=>vq,base64urlToUint8Array:()=>bq,cached:()=>MK,captureStackTrace:()=>Tq,cleanEnum:()=>_q,cleanRegex:()=>PK,clone:()=>ZK,cloneDef:()=>BK,createTransparentProxy:()=>QK,defineLazy:()=>IK,esc:()=>WK,escapeRegex:()=>XK,explicitlyAborted:()=>lq,extend:()=>rq,finalizeIssue:()=>fq,floatSafeRemainder:()=>FK,getElementAtPath:()=>VK,getEnumValues:()=>AK,getLengthableOrigin:()=>mq,getParsedType:()=>Dq,getSizableOrigin:()=>pq,hexToUint8Array:()=>Sq,isObject:()=>KK,isPlainObject:()=>qK,issue:()=>gq,joinValues:()=>J,jsonStringifyReplacer:()=>jK,merge:()=>aq,mergeDefs:()=>zK,normalizeParams:()=>Y,nullish:()=>NK,numKeys:()=>YK,objectClone:()=>LK,omit:()=>nq,optionalKeys:()=>eq,parsedType:()=>hq,partial:()=>oq,pick:()=>tq,prefixIssues:()=>uq,primitiveTypes:()=>kq,promiseAllObject:()=>HK,propertyKeyTypes:()=>Oq,randomString:()=>UK,required:()=>sq,safeExtend:()=>iq,shallowClone:()=>JK,slugify:()=>GK,stringifyPrimitive:()=>$K,uint8ArrayToBase64:()=>yq,uint8ArrayToBase64url:()=>xq,uint8ArrayToHex:()=>Cq,unwrapMessage:()=>dq});function TK(e){return e}function EK(e){return e}function DK(e){}function OK(e){throw Error(`Unexpected value in exhaustive check`)}function kK(e){}function AK(e){let t=Object.values(e).filter(e=>typeof e==`number`);return Object.entries(e).filter(([e,n])=>t.indexOf(+e)===-1).map(([e,t])=>t)}function J(e,t=`|`){return e.map(e=>$K(e)).join(t)}function jK(e,t){return typeof t==`bigint`?t.toString():t}function MK(e){return{get value(){{let t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function NK(e){return e==null}function PK(e){let t=+!!e.startsWith(`^`),n=e.endsWith(`$`)?e.length-1:e.length;return e.slice(t,n)}function FK(e,t){let n=e/t,r=Math.round(n),i=2**-52*Math.max(Math.abs(n),1);return Math.abs(n-r)e?.[t],e):e}function HK(e){let t=Object.keys(e),n=t.map(t=>e[t]);return Promise.all(n).then(e=>{let n={};for(let r=0;rt};if(t?.message!==void 0){if(t?.error!==void 0)throw Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error==`string`?{...t,error:()=>t.error}:t}function QK(e){let t;return new Proxy({},{get(n,r,i){return t??=e(),Reflect.get(t,r,i)},set(n,r,i,a){return t??=e(),Reflect.set(t,r,i,a)},has(n,r){return t??=e(),Reflect.has(t,r)},deleteProperty(n,r){return t??=e(),Reflect.deleteProperty(t,r)},ownKeys(n){return t??=e(),Reflect.ownKeys(t)},getOwnPropertyDescriptor(n,r){return t??=e(),Reflect.getOwnPropertyDescriptor(t,r)},defineProperty(n,r,i){return t??=e(),Reflect.defineProperty(t,r,i)}})}function $K(e){return typeof e==`bigint`?e.toString()+`n`:typeof e==`string`?`"${e}"`:`${e}`}function eq(e){return Object.keys(e).filter(t=>e[t]._zod.optin===`optional`&&e[t]._zod.optout===`optional`)}function tq(e,t){let n=e._zod.def,r=n.checks;if(r&&r.length>0)throw Error(`.pick() cannot be used on object schemas containing refinements`);return ZK(e,zK(e._zod.def,{get shape(){let e={};for(let r in t){if(!(r in n.shape))throw Error(`Unrecognized key: "${r}"`);t[r]&&(e[r]=n.shape[r])}return RK(this,`shape`,e),e},checks:[]}))}function nq(e,t){let n=e._zod.def,r=n.checks;if(r&&r.length>0)throw Error(`.omit() cannot be used on object schemas containing refinements`);return ZK(e,zK(e._zod.def,{get shape(){let r={...e._zod.def.shape};for(let e in t){if(!(e in n.shape))throw Error(`Unrecognized key: "${e}"`);t[e]&&delete r[e]}return RK(this,`shape`,r),r},checks:[]}))}function rq(e,t){if(!qK(t))throw Error(`Invalid input to extend: expected a plain object`);let n=e._zod.def.checks;if(n&&n.length>0){let n=e._zod.def.shape;for(let e in t)if(Object.getOwnPropertyDescriptor(n,e)!==void 0)throw Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}return ZK(e,zK(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t};return RK(this,`shape`,n),n}}))}function iq(e,t){if(!qK(t))throw Error(`Invalid input to safeExtend: expected a plain object`);return ZK(e,zK(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t};return RK(this,`shape`,n),n}}))}function aq(e,t){if(e._zod.def.checks?.length)throw Error(`.merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.`);return ZK(e,zK(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t._zod.def.shape};return RK(this,`shape`,n),n},get catchall(){return t._zod.def.catchall},checks:t._zod.def.checks??[]}))}function oq(e,t,n){let r=t._zod.def.checks;if(r&&r.length>0)throw Error(`.partial() cannot be used on object schemas containing refinements`);return ZK(t,zK(t._zod.def,{get shape(){let r=t._zod.def.shape,i={...r};if(n)for(let t in n){if(!(t in r))throw Error(`Unrecognized key: "${t}"`);n[t]&&(i[t]=e?new e({type:`optional`,innerType:r[t]}):r[t])}else for(let t in r)i[t]=e?new e({type:`optional`,innerType:r[t]}):r[t];return RK(this,`shape`,i),i},checks:[]}))}function sq(e,t,n){return ZK(t,zK(t._zod.def,{get shape(){let r=t._zod.def.shape,i={...r};if(n)for(let t in n){if(!(t in i))throw Error(`Unrecognized key: "${t}"`);n[t]&&(i[t]=new e({type:`nonoptional`,innerType:r[t]}))}else for(let t in r)i[t]=new e({type:`nonoptional`,innerType:r[t]});return RK(this,`shape`,i),i}}))}function cq(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n{var n;return(n=t).path??(n.path=[]),t.path.unshift(e),t})}function dq(e){return typeof e==`string`?e:e?.message}function fq(e,t,n){let r=e.message?e.message:dq(e.inst?._zod.def?.error?.(e))??dq(t?.error?.(e))??dq(n.customError?.(e))??dq(n.localeError?.(e))??`Invalid input`,{inst:i,continue:a,input:o,...s}=e;return s.path??=[],s.message=r,t?.reportInput&&(s.input=o),s}function pq(e){return e instanceof Set?`set`:e instanceof Map?`map`:e instanceof File?`file`:`unknown`}function mq(e){return Array.isArray(e)?`array`:typeof e==`string`?`string`:`unknown`}function hq(e){let t=typeof e;switch(t){case`number`:return Number.isNaN(e)?`nan`:`number`;case`object`:{if(e===null)return`null`;if(Array.isArray(e))return`array`;let t=e;if(t&&Object.getPrototypeOf(t)!==Object.prototype&&`constructor`in t&&t.constructor)return t.constructor.name}}return t}function gq(...e){let[t,n,r]=e;return typeof t==`string`?{message:t,code:`custom`,input:n,inst:r}:{...t}}function _q(e){return Object.entries(e).filter(([e,t])=>Number.isNaN(Number.parseInt(e,10))).map(e=>e[1])}function vq(e){let t=atob(e),n=new Uint8Array(t.length);for(let e=0;ee.toString(16).padStart(2,`0`)).join(``)}var wq,Tq,Eq,Dq,Oq,kq,Aq,jq,Mq,Nq=o((()=>{CK(),wq=Symbol(`evaluating`),Tq=`captureStackTrace`in Error?Error.captureStackTrace:(...e)=>{},Eq=MK(()=>{if(SK.jitless||typeof navigator<`u`&&navigator?.userAgent?.includes(`Cloudflare`))return!1;try{return Function(``),!0}catch{return!1}}),Dq=e=>{let t=typeof e;switch(t){case`undefined`:return`undefined`;case`string`:return`string`;case`number`:return Number.isNaN(e)?`nan`:`number`;case`boolean`:return`boolean`;case`function`:return`function`;case`bigint`:return`bigint`;case`symbol`:return`symbol`;case`object`:return Array.isArray(e)?`array`:e===null?`null`:e.then&&typeof e.then==`function`&&e.catch&&typeof e.catch==`function`?`promise`:typeof Map<`u`&&e instanceof Map?`map`:typeof Set<`u`&&e instanceof Set?`set`:typeof Date<`u`&&e instanceof Date?`date`:typeof File<`u`&&e instanceof File?`file`:`object`;default:throw Error(`Unknown data type: ${t}`)}},Oq=new Set([`string`,`number`,`symbol`]),kq=new Set([`string`,`number`,`bigint`,`boolean`,`symbol`,`undefined`]),Aq={safeint:[-(2**53-1),2**53-1],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]},jq={int64:[BigInt(`-9223372036854775808`),BigInt(`9223372036854775807`)],uint64:[BigInt(0),BigInt(`18446744073709551615`)]},Mq=class{constructor(...e){}}}));function Pq(e,t=e=>e.message){let n={},r=[];for(let i of e.issues)i.path.length>0?(n[i.path[0]]=n[i.path[0]]||[],n[i.path[0]].push(t(i))):r.push(t(i));return{formErrors:r,fieldErrors:n}}function Fq(e,t=e=>e.message){let n={_errors:[]},r=(e,i=[])=>{for(let a of e.issues)if(a.code===`invalid_union`&&a.errors.length)a.errors.map(e=>r({issues:e},[...i,...a.path]));else if(a.code===`invalid_key`)r({issues:a.issues},[...i,...a.path]);else if(a.code===`invalid_element`)r({issues:a.issues},[...i,...a.path]);else{let e=[...i,...a.path];if(e.length===0)n._errors.push(t(a));else{let r=n,i=0;for(;ie.message){let n={errors:[]},r=(e,i=[])=>{var a,o;for(let s of e.issues)if(s.code===`invalid_union`&&s.errors.length)s.errors.map(e=>r({issues:e},[...i,...s.path]));else if(s.code===`invalid_key`)r({issues:s.issues},[...i,...s.path]);else if(s.code===`invalid_element`)r({issues:s.issues},[...i,...s.path]);else{let e=[...i,...s.path];if(e.length===0){n.errors.push(t(s));continue}let r=n,c=0;for(;ctypeof e==`object`?e.key:e);for(let e of n)typeof e==`number`?t.push(`[${e}]`):typeof e==`symbol`?t.push(`[${JSON.stringify(String(e))}]`):/[^\w$]/.test(e)?t.push(`[${JSON.stringify(e)}]`):(t.length&&t.push(`.`),t.push(e));return t.join(``)}function Rq(e){let t=[],n=[...e.issues].sort((e,t)=>(e.path??[]).length-(t.path??[]).length);for(let e of n)t.push(`✖ ${e.message}`),e.path?.length&&t.push(` → at ${Lq(e.path)}`);return t.join(` +`)}var zq,Bq,Vq,Hq=o((()=>{CK(),Nq(),zq=(e,t)=>{e.name=`$ZodError`,Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,jK,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},Bq=q(`$ZodError`,zq),Vq=q(`$ZodError`,zq,{Parent:Error})})),Uq,Wq,Gq,Kq,qq,Jq,Yq,Xq,Zq,Qq,$q,eJ,tJ,nJ,rJ,iJ,aJ,oJ,sJ,cJ,lJ,uJ,dJ,fJ,pJ=o((()=>{CK(),Hq(),Nq(),Uq=e=>(t,n,r,i)=>{let a=r?{...r,async:!1}:{async:!1},o=t._zod.run({value:n,issues:[]},a);if(o instanceof Promise)throw new bK;if(o.issues.length){let t=new((i?.Err)??e)(o.issues.map(e=>fq(e,a,gK())));throw Tq(t,i?.callee),t}return o.value},Wq=Uq(Vq),Gq=e=>async(t,n,r,i)=>{let a=r?{...r,async:!0}:{async:!0},o=t._zod.run({value:n,issues:[]},a);if(o instanceof Promise&&(o=await o),o.issues.length){let t=new((i?.Err)??e)(o.issues.map(e=>fq(e,a,gK())));throw Tq(t,i?.callee),t}return o.value},Kq=Gq(Vq),qq=e=>(t,n,r)=>{let i=r?{...r,async:!1}:{async:!1},a=t._zod.run({value:n,issues:[]},i);if(a instanceof Promise)throw new bK;return a.issues.length?{success:!1,error:new(e??Bq)(a.issues.map(e=>fq(e,i,gK())))}:{success:!0,data:a.value}},Jq=qq(Vq),Yq=e=>async(t,n,r)=>{let i=r?{...r,async:!0}:{async:!0},a=t._zod.run({value:n,issues:[]},i);return a instanceof Promise&&(a=await a),a.issues.length?{success:!1,error:new e(a.issues.map(e=>fq(e,i,gK())))}:{success:!0,data:a.value}},Xq=Yq(Vq),Zq=e=>(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return Uq(e)(t,n,i)},Qq=Zq(Vq),$q=e=>(t,n,r)=>Uq(e)(t,n,r),eJ=$q(Vq),tJ=e=>async(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return Gq(e)(t,n,i)},nJ=tJ(Vq),rJ=e=>async(t,n,r)=>Gq(e)(t,n,r),iJ=rJ(Vq),aJ=e=>(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return qq(e)(t,n,i)},oJ=aJ(Vq),sJ=e=>(t,n,r)=>qq(e)(t,n,r),cJ=sJ(Vq),lJ=e=>async(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return Yq(e)(t,n,i)},uJ=lJ(Vq),dJ=e=>async(t,n,r)=>Yq(e)(t,n,r),fJ=dJ(Vq)})),mJ=c({base64:()=>KJ,base64url:()=>qJ,bigint:()=>tY,boolean:()=>iY,browserEmail:()=>zJ,cidrv4:()=>WJ,cidrv6:()=>GJ,cuid:()=>xJ,cuid2:()=>SJ,date:()=>$J,datetime:()=>vJ,domain:()=>YJ,duration:()=>DJ,e164:()=>ZJ,email:()=>PJ,emoji:()=>hJ,extendedDuration:()=>OJ,guid:()=>kJ,hex:()=>lY,hostname:()=>JJ,html5Email:()=>FJ,httpProtocol:()=>XJ,idnEmail:()=>RJ,integer:()=>nY,ipv4:()=>VJ,ipv6:()=>HJ,ksuid:()=>TJ,lowercase:()=>sY,mac:()=>UJ,md5_base64:()=>dY,md5_base64url:()=>fY,md5_hex:()=>uY,nanoid:()=>EJ,null:()=>aY,number:()=>rY,rfc5322Email:()=>IJ,sha1_base64:()=>mY,sha1_base64url:()=>hY,sha1_hex:()=>pY,sha256_base64:()=>_Y,sha256_base64url:()=>vY,sha256_hex:()=>gY,sha384_base64:()=>bY,sha384_base64url:()=>xY,sha384_hex:()=>yY,sha512_base64:()=>CY,sha512_base64url:()=>wY,sha512_hex:()=>SY,string:()=>eY,time:()=>_J,ulid:()=>CJ,undefined:()=>oY,unicodeEmail:()=>LJ,uppercase:()=>cY,uuid:()=>AJ,uuid4:()=>jJ,uuid6:()=>MJ,uuid7:()=>NJ,xid:()=>wJ});function hJ(){return new RegExp(BJ,`u`)}function gJ(e){let t=`(?:[01]\\d|2[0-3]):[0-5]\\d`;return typeof e.precision==`number`?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function _J(e){return RegExp(`^${gJ(e)}$`)}function vJ(e){let t=gJ({precision:e.precision}),n=[`Z`];e.local&&n.push(``),e.offset&&n.push(`([+-](?:[01]\\d|2[0-3]):[0-5]\\d)`);let r=`${t}(?:${n.join(`|`)})`;return RegExp(`^${QJ}T(?:${r})$`)}function yJ(e,t){return RegExp(`^[A-Za-z0-9+/]{${e}}${t}$`)}function bJ(e){return RegExp(`^[A-Za-z0-9_-]{${e}}$`)}var xJ,SJ,CJ,wJ,TJ,EJ,DJ,OJ,kJ,AJ,jJ,MJ,NJ,PJ,FJ,IJ,LJ,RJ,zJ,BJ,VJ,HJ,UJ,WJ,GJ,KJ,qJ,JJ,YJ,XJ,ZJ,QJ,$J,eY,tY,nY,rY,iY,aY,oY,sY,cY,lY,uY,dY,fY,pY,mY,hY,gY,_Y,vY,yY,bY,xY,SY,CY,wY,TY=o((()=>{Nq(),xJ=/^[cC][0-9a-z]{6,}$/,SJ=/^[0-9a-z]+$/,CJ=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,wJ=/^[0-9a-vA-V]{20}$/,TJ=/^[A-Za-z0-9]{27}$/,EJ=/^[a-zA-Z0-9_-]{21}$/,DJ=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,OJ=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,kJ=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,AJ=e=>e?RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,jJ=AJ(4),MJ=AJ(6),NJ=AJ(7),PJ=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,FJ=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,IJ=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,LJ=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,RJ=LJ,zJ=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,BJ=`^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$`,VJ=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,HJ=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,UJ=e=>{let t=XK(e??`:`);return RegExp(`^(?:[0-9A-F]{2}${t}){5}[0-9A-F]{2}$|^(?:[0-9a-f]{2}${t}){5}[0-9a-f]{2}$`)},WJ=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,GJ=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,KJ=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,qJ=/^[A-Za-z0-9_-]*$/,JJ=/^(?=.{1,253}\.?$)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?)*\.?$/,YJ=/^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/,XJ=/^https?$/,ZJ=/^\+[1-9]\d{6,14}$/,QJ=`(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))`,$J=RegExp(`^${QJ}$`),eY=e=>{let t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??``}}`:`[\\s\\S]*`;return RegExp(`^${t}$`)},tY=/^-?\d+n?$/,nY=/^-?\d+$/,rY=/^-?\d+(?:\.\d+)?$/,iY=/^(?:true|false)$/i,aY=/^null$/i,oY=/^undefined$/i,sY=/^[^A-Z]*$/,cY=/^[^a-z]*$/,lY=/^[0-9a-fA-F]*$/,uY=/^[0-9a-fA-F]{32}$/,dY=yJ(22,`==`),fY=bJ(22),pY=/^[0-9a-fA-F]{40}$/,mY=yJ(27,`=`),hY=bJ(27),gY=/^[0-9a-fA-F]{64}$/,_Y=yJ(43,`=`),vY=bJ(43),yY=/^[0-9a-fA-F]{96}$/,bY=yJ(64,``),xY=bJ(64),SY=/^[0-9a-fA-F]{128}$/,CY=yJ(86,`==`),wY=bJ(86)}));function EY(e,t,n){e.issues.length&&t.issues.push(...uq(n,e.issues))}var DY,OY,kY,AY,jY,MY,NY,PY,FY,IY,LY,RY,zY,BY,VY,HY,UY,WY,GY,KY,qY,JY,YY,XY=o((()=>{CK(),TY(),Nq(),DY=q(`$ZodCheck`,(e,t)=>{var n;e._zod??={},e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),OY={number:`number`,bigint:`bigint`,object:`date`},kY=q(`$ZodCheckLessThan`,(e,t)=>{DY.init(e,t);let n=OY[typeof t.value];e._zod.onattach.push(e=>{let n=e._zod.bag,r=(t.inclusive?n.maximum:n.exclusiveMaximum)??1/0;t.value{(t.inclusive?r.value<=t.value:r.value{DY.init(e,t);let n=OY[typeof t.value];e._zod.onattach.push(e=>{let n=e._zod.bag,r=(t.inclusive?n.minimum:n.exclusiveMinimum)??-1/0;t.value>r&&(t.inclusive?n.minimum=t.value:n.exclusiveMinimum=t.value)}),e._zod.check=r=>{(t.inclusive?r.value>=t.value:r.value>t.value)||r.issues.push({origin:n,code:`too_small`,minimum:typeof t.value==`object`?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),jY=q(`$ZodCheckMultipleOf`,(e,t)=>{DY.init(e,t),e._zod.onattach.push(e=>{var n;(n=e._zod.bag).multipleOf??(n.multipleOf=t.value)}),e._zod.check=n=>{if(typeof n.value!=typeof t.value)throw Error(`Cannot mix number and bigint in multiple_of check.`);(typeof n.value==`bigint`?n.value%t.value===BigInt(0):FK(n.value,t.value)===0)||n.issues.push({origin:typeof n.value,code:`not_multiple_of`,divisor:t.value,input:n.value,inst:e,continue:!t.abort})}}),MY=q(`$ZodCheckNumberFormat`,(e,t)=>{DY.init(e,t),t.format=t.format||`float64`;let n=t.format?.includes(`int`),r=n?`int`:`number`,[i,a]=Aq[t.format];e._zod.onattach.push(e=>{let r=e._zod.bag;r.format=t.format,r.minimum=i,r.maximum=a,n&&(r.pattern=nY)}),e._zod.check=o=>{let s=o.value;if(n){if(!Number.isInteger(s)){o.issues.push({expected:r,format:t.format,code:`invalid_type`,continue:!1,input:s,inst:e});return}if(!Number.isSafeInteger(s)){s>0?o.issues.push({input:s,code:`too_big`,maximum:2**53-1,note:`Integers must be within the safe integer range.`,inst:e,origin:r,inclusive:!0,continue:!t.abort}):o.issues.push({input:s,code:`too_small`,minimum:-(2**53-1),note:`Integers must be within the safe integer range.`,inst:e,origin:r,inclusive:!0,continue:!t.abort});return}}sa&&o.issues.push({origin:`number`,input:s,code:`too_big`,maximum:a,inclusive:!0,inst:e,continue:!t.abort})}}),NY=q(`$ZodCheckBigIntFormat`,(e,t)=>{DY.init(e,t);let[n,r]=jq[t.format];e._zod.onattach.push(e=>{let i=e._zod.bag;i.format=t.format,i.minimum=n,i.maximum=r}),e._zod.check=i=>{let a=i.value;ar&&i.issues.push({origin:`bigint`,input:a,code:`too_big`,maximum:r,inclusive:!0,inst:e,continue:!t.abort})}}),PY=q(`$ZodCheckMaxSize`,(e,t)=>{var n;DY.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!NK(t)&&t.size!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag.maximum??1/0;t.maximum{let r=n.value;r.size<=t.maximum||n.issues.push({origin:pq(r),code:`too_big`,maximum:t.maximum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),FY=q(`$ZodCheckMinSize`,(e,t)=>{var n;DY.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!NK(t)&&t.size!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag.minimum??-1/0;t.minimum>n&&(e._zod.bag.minimum=t.minimum)}),e._zod.check=n=>{let r=n.value;r.size>=t.minimum||n.issues.push({origin:pq(r),code:`too_small`,minimum:t.minimum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),IY=q(`$ZodCheckSizeEquals`,(e,t)=>{var n;DY.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!NK(t)&&t.size!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag;n.minimum=t.size,n.maximum=t.size,n.size=t.size}),e._zod.check=n=>{let r=n.value,i=r.size;if(i===t.size)return;let a=i>t.size;n.issues.push({origin:pq(r),...a?{code:`too_big`,maximum:t.size}:{code:`too_small`,minimum:t.size},inclusive:!0,exact:!0,input:n.value,inst:e,continue:!t.abort})}}),LY=q(`$ZodCheckMaxLength`,(e,t)=>{var n;DY.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!NK(t)&&t.length!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag.maximum??1/0;t.maximum{let r=n.value;if(r.length<=t.maximum)return;let i=mq(r);n.issues.push({origin:i,code:`too_big`,maximum:t.maximum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),RY=q(`$ZodCheckMinLength`,(e,t)=>{var n;DY.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!NK(t)&&t.length!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag.minimum??-1/0;t.minimum>n&&(e._zod.bag.minimum=t.minimum)}),e._zod.check=n=>{let r=n.value;if(r.length>=t.minimum)return;let i=mq(r);n.issues.push({origin:i,code:`too_small`,minimum:t.minimum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),zY=q(`$ZodCheckLengthEquals`,(e,t)=>{var n;DY.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!NK(t)&&t.length!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag;n.minimum=t.length,n.maximum=t.length,n.length=t.length}),e._zod.check=n=>{let r=n.value,i=r.length;if(i===t.length)return;let a=mq(r),o=i>t.length;n.issues.push({origin:a,...o?{code:`too_big`,maximum:t.length}:{code:`too_small`,minimum:t.length},inclusive:!0,exact:!0,input:n.value,inst:e,continue:!t.abort})}}),BY=q(`$ZodCheckStringFormat`,(e,t)=>{var n,r;DY.init(e,t),e._zod.onattach.push(e=>{let n=e._zod.bag;n.format=t.format,t.pattern&&(n.patterns??=new Set,n.patterns.add(t.pattern))}),t.pattern?(n=e._zod).check??(n.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:`string`,code:`invalid_format`,format:t.format,input:n.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(r=e._zod).check??(r.check=()=>{})}),VY=q(`$ZodCheckRegex`,(e,t)=>{BY.init(e,t),e._zod.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:`string`,code:`invalid_format`,format:`regex`,input:n.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),HY=q(`$ZodCheckLowerCase`,(e,t)=>{t.pattern??=sY,BY.init(e,t)}),UY=q(`$ZodCheckUpperCase`,(e,t)=>{t.pattern??=cY,BY.init(e,t)}),WY=q(`$ZodCheckIncludes`,(e,t)=>{DY.init(e,t);let n=XK(t.includes),r=new RegExp(typeof t.position==`number`?`^.{${t.position}}${n}`:n);t.pattern=r,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??=new Set,t.patterns.add(r)}),e._zod.check=n=>{n.value.includes(t.includes,t.position)||n.issues.push({origin:`string`,code:`invalid_format`,format:`includes`,includes:t.includes,input:n.value,inst:e,continue:!t.abort})}}),GY=q(`$ZodCheckStartsWith`,(e,t)=>{DY.init(e,t);let n=RegExp(`^${XK(t.prefix)}.*`);t.pattern??=n,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??=new Set,t.patterns.add(n)}),e._zod.check=n=>{n.value.startsWith(t.prefix)||n.issues.push({origin:`string`,code:`invalid_format`,format:`starts_with`,prefix:t.prefix,input:n.value,inst:e,continue:!t.abort})}}),KY=q(`$ZodCheckEndsWith`,(e,t)=>{DY.init(e,t);let n=RegExp(`.*${XK(t.suffix)}$`);t.pattern??=n,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??=new Set,t.patterns.add(n)}),e._zod.check=n=>{n.value.endsWith(t.suffix)||n.issues.push({origin:`string`,code:`invalid_format`,format:`ends_with`,suffix:t.suffix,input:n.value,inst:e,continue:!t.abort})}}),qY=q(`$ZodCheckProperty`,(e,t)=>{DY.init(e,t),e._zod.check=e=>{let n=t.schema._zod.run({value:e.value[t.property],issues:[]},{});if(n instanceof Promise)return n.then(n=>EY(n,e,t.property));EY(n,e,t.property)}}),JY=q(`$ZodCheckMimeType`,(e,t)=>{DY.init(e,t);let n=new Set(t.mime);e._zod.onattach.push(e=>{e._zod.bag.mime=t.mime}),e._zod.check=r=>{n.has(r.value.type)||r.issues.push({code:`invalid_value`,values:t.mime,input:r.value.type,inst:e,continue:!t.abort})}}),YY=q(`$ZodCheckOverwrite`,(e,t)=>{DY.init(e,t),e._zod.check=e=>{e.value=t.tx(e.value)}})})),ZY,QY=o((()=>{ZY=class{constructor(e=[]){this.content=[],this.indent=0,this&&(this.args=e)}indented(e){this.indent+=1,e(this),--this.indent}write(e){if(typeof e==`function`){e(this,{execution:`sync`}),e(this,{execution:`async`});return}let t=e.split(` `).filter(e=>e),n=Math.min(...t.map(e=>e.length-e.trimStart().length)),r=t.map(e=>e.slice(n)).map(e=>` `.repeat(this.indent*2)+e);for(let e of r)this.content.push(e)}compile(){let e=Function,t=this?.args,n=[...(this?.content??[``]).map(e=>` ${e}`)];return new e(...t,n.join(` -`))}}})),KY,qY=o((()=>{KY={major:4,minor:4,patch:3}}));function JY(e){if(e===``)return!0;if(/\s/.test(e)||e.length%4!=0)return!1;try{return atob(e),!0}catch{return!1}}function YY(e){if(!BJ.test(e))return!1;let t=e.replace(/[-_]/g,e=>e===`-`?`+`:`/`);return JY(t.padEnd(Math.ceil(t.length/4)*4,`=`))}function XY(e,t=null){try{let n=e.split(`.`);if(n.length!==3)return!1;let[r]=n;if(!r)return!1;let i=JSON.parse(atob(r));return!(`typ`in i&&i?.typ!==`JWT`||!i.alg||t&&(!(`alg`in i)||i.alg!==t))}catch{return!1}}function ZY(e,t,n){e.issues.length&&t.issues.push(...rq(n,e.issues)),t.value[n]=e.value}function QY(e,t,n,r,i,a){let o=n in r;if(e.issues.length){if(i&&a&&!o)return;t.issues.push(...rq(n,e.issues))}if(!o&&!i){e.issues.length||t.issues.push({code:`invalid_type`,expected:`nonoptional`,input:void 0,path:[n]});return}e.value===void 0?o&&(t.value[n]=void 0):t.value[n]=e.value}function $Y(e){let t=Object.keys(e.shape);for(let n of t)if(!e.shape?.[n]?._zod?.traits?.has(`$ZodType`))throw Error(`Invalid element at key "${n}": expected a Zod schema`);let n=qK(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(n)}}function eX(e,t,n,r,i,a){let o=[],s=i.keySet,c=i.catchall._zod,l=c.def.type,u=c.optin===`optional`,d=c.optout===`optional`;for(let i in t){if(i===`__proto__`||s.has(i))continue;if(l===`never`){o.push(i);continue}let a=c.run({value:t[i],issues:[]},r);a instanceof Promise?e.push(a.then(e=>QY(e,n,i,t,u,d))):QY(a,n,i,t,u,d)}return o.length&&n.issues.push({code:`unrecognized_keys`,keys:o,input:t,inst:a}),e.length?Promise.all(e).then(()=>n):n}function tX(e,t,n,r){for(let n of e)if(n.issues.length===0)return t.value=n.value,t;let i=e.filter(e=>!tq(e));return i.length===1?(t.value=i[0].value,i[0]):(t.issues.push({code:`invalid_union`,input:t.value,inst:n,errors:e.map(e=>e.issues.map(e=>aq(e,r,lK())))}),t)}function nX(e,t,n,r){let i=e.filter(e=>e.issues.length===0);return i.length===1?(t.value=i[0].value,t):(i.length===0?t.issues.push({code:`invalid_union`,input:t.value,inst:n,errors:e.map(e=>e.issues.map(e=>aq(e,r,lK())))}):t.issues.push({code:`invalid_union`,input:t.value,inst:n,errors:[],inclusive:!1}),t)}function rX(e,t){if(e===t||e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(BK(e)&&BK(t)){let n=Object.keys(t),r=Object.keys(e).filter(e=>n.indexOf(e)!==-1),i={...e,...t};for(let n of r){let r=rX(e[n],t[n]);if(!r.valid)return{valid:!1,mergeErrorPath:[n,...r.mergeErrorPath]};i[n]=r.data}return{valid:!0,data:i}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};let n=[];for(let r=0;re.l&&e.r).map(([e])=>e);if(a.length&&i&&e.issues.push({...i,keys:a}),tq(e))return e;let o=rX(t.value,n.value);if(!o.valid)throw Error(`Unmergable intersection. Error path: ${JSON.stringify(o.mergeErrorPath)}`);return e.value=o.data,e}function aX(e,t){for(let n=e.length-1;n>=0;n--)if(e[n]._zod[t]!==`optional`)return n+1;return 0}function oX(e,t,n){e.issues.length&&t.issues.push(...rq(n,e.issues)),t.value[n]=e.value}function sX(e,t,n,r,i){for(let a=0;a=i){t.value.length=a;break}t.issues.push(...rq(a,n.issues))}t.value[a]=n.value}for(let e=t.value.length-1;e>=r.length&&n[e]._zod.optout===`optional`&&t.value[e]===void 0;e--)t.value.length=e;return t}function cX(e,t,n,r,i,a,o){e.issues.length&&(xq.has(typeof r)?n.issues.push(...rq(r,e.issues)):n.issues.push({code:`invalid_key`,origin:`map`,input:i,inst:a,issues:e.issues.map(e=>aq(e,o,lK()))})),t.issues.length&&(xq.has(typeof r)?n.issues.push(...rq(r,t.issues)):n.issues.push({origin:`map`,code:`invalid_element`,input:i,inst:a,key:r,issues:t.issues.map(e=>aq(e,o,lK()))})),n.value.set(e.value,t.value)}function lX(e,t){e.issues.length&&t.issues.push(...e.issues),t.value.add(e.value)}function uX(e,t){return t===void 0&&(e.issues.length||e.fallback)?{issues:[],value:void 0}:e}function dX(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}function fX(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:`invalid_type`,expected:`nonoptional`,input:e.value,inst:t}),e}function pX(e,t,n){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues,fallback:e.fallback},n)}function mX(e,t,n){if(e.issues.length)return e.aborted=!0,e;if((n.direction||`forward`)===`forward`){let r=t.transform(e.value,e);return r instanceof Promise?r.then(r=>hX(e,r,t.out,n)):hX(e,r,t.out,n)}{let r=t.reverseTransform(e.value,e);return r instanceof Promise?r.then(r=>hX(e,r,t.in,n)):hX(e,r,t.in,n)}}function hX(e,t,n,r){return e.issues.length?(e.aborted=!0,e):n._zod.run({value:t,issues:e.issues},r)}function gX(e){return e.value=Object.freeze(e.value),e}function _X(e,t,n,r){if(!e){let e={code:`custom`,input:n,inst:r,path:[...r._zod.def.path??[]],continue:!r._zod.def.abort};r._zod.def.params&&(e.params=r._zod.def.params),t.issues.push(lq(e))}}var vX,yX,bX,xX,SX,CX,wX,TX,EX,DX,OX,kX,AX,jX,MX,NX,PX,FX,IX,LX,RX,zX,BX,VX,HX,UX,WX,GX,KX,qX,JX,YX,XX,ZX,QX,$X,eZ,tZ,nZ,rZ,iZ,aZ,oZ,sZ,cZ,lZ,uZ,dZ,fZ,pZ,mZ,hZ,gZ,_Z,vZ,yZ,bZ,xZ,SZ,CZ,wZ,TZ,EZ,DZ,OZ,kZ,AZ,jZ,MZ,NZ,PZ,FZ,IZ,LZ,RZ=o((()=>{UY(),gK(),GY(),oJ(),vY(),Eq(),qY(),vX=q(`$ZodType`,(e,t)=>{var n;e??={},e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=KY;let r=[...e._zod.def.checks??[]];e._zod.traits.has(`$ZodCheck`)&&r.unshift(e);for(let t of r)for(let n of t._zod.onattach)n(e);if(r.length===0)(n=e._zod).deferred??(n.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{let t=(e,t,n)=>{let r=tq(e),i;for(let a of t){if(a._zod.def.when){if(nq(e)||!a._zod.def.when(e))continue}else if(r)continue;let t=e.issues.length,o=a._zod.check(e);if(o instanceof Promise&&n?.async===!1)throw new pK;if(i||o instanceof Promise)i=(i??Promise.resolve()).then(async()=>{await o,e.issues.length!==t&&(r||=tq(e,t))});else{if(e.issues.length===t)continue;r||=tq(e,t)}}return i?i.then(()=>e):e},n=(n,i,a)=>{if(tq(n))return n.aborted=!0,n;let o=t(i,r,a);if(o instanceof Promise){if(a.async===!1)throw new pK;return o.then(t=>e._zod.parse(t,a))}return e._zod.parse(o,a)};e._zod.run=(i,a)=>{if(a.skipChecks)return e._zod.parse(i,a);if(a.direction===`backward`){let t=e._zod.parse({value:i.value,issues:[]},{...a,skipChecks:!0});return t instanceof Promise?t.then(e=>n(e,i,a)):n(t,i,a)}let o=e._zod.parse(i,a);if(o instanceof Promise){if(a.async===!1)throw new pK;return o.then(e=>t(e,r,a))}return t(o,r,a)}}kK(e,`~standard`,()=>({validate:t=>{try{let n=Vq(e,t);return n.success?{value:n.data}:{issues:n.error?.issues}}catch{return Uq(e,t).then(e=>e.success?{value:e.data}:{issues:e.error?.issues})}},vendor:`zod`,version:1}))}),yX=q(`$ZodString`,(e,t)=>{vX.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??qJ(e._zod.bag),e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=String(n.value)}catch{}return typeof n.value==`string`||n.issues.push({expected:`string`,code:`invalid_type`,input:n.value,inst:e}),n}}),bX=q(`$ZodStringFormat`,(e,t)=>{NY.init(e,t),yX.init(e,t)}),xX=q(`$ZodGUID`,(e,t)=>{t.pattern??=SJ,bX.init(e,t)}),SX=q(`$ZodUUID`,(e,t)=>{if(t.version){let e={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(e===void 0)throw Error(`Invalid UUID version: "${t.version}"`);t.pattern??=CJ(e)}else t.pattern??=CJ();bX.init(e,t)}),CX=q(`$ZodEmail`,(e,t)=>{t.pattern??=DJ,bX.init(e,t)}),wX=q(`$ZodURL`,(e,t)=>{bX.init(e,t),e._zod.check=n=>{try{let r=n.value.trim();if(!t.normalize&&t.protocol?.source===UJ.source&&!/^https?:\/\//i.test(r)){n.issues.push({code:`invalid_format`,format:`url`,note:`Invalid URL format`,input:n.value,inst:e,continue:!t.abort});return}let i=new URL(r);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(i.hostname)||n.issues.push({code:`invalid_format`,format:`url`,note:`Invalid hostname`,pattern:t.hostname.source,input:n.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(i.protocol.endsWith(`:`)?i.protocol.slice(0,-1):i.protocol)||n.issues.push({code:`invalid_format`,format:`url`,note:`Invalid protocol`,pattern:t.protocol.source,input:n.value,inst:e,continue:!t.abort})),n.value=t.normalize?i.href:r;return}catch{n.issues.push({code:`invalid_format`,format:`url`,input:n.value,inst:e,continue:!t.abort})}}}),TX=q(`$ZodEmoji`,(e,t)=>{t.pattern??=cJ(),bX.init(e,t)}),EX=q(`$ZodNanoID`,(e,t)=>{t.pattern??=yJ,bX.init(e,t)}),DX=q(`$ZodCUID`,(e,t)=>{t.pattern??=mJ,bX.init(e,t)}),OX=q(`$ZodCUID2`,(e,t)=>{t.pattern??=hJ,bX.init(e,t)}),kX=q(`$ZodULID`,(e,t)=>{t.pattern??=gJ,bX.init(e,t)}),AX=q(`$ZodXID`,(e,t)=>{t.pattern??=_J,bX.init(e,t)}),jX=q(`$ZodKSUID`,(e,t)=>{t.pattern??=vJ,bX.init(e,t)}),MX=q(`$ZodISODateTime`,(e,t)=>{t.pattern??=dJ(t),bX.init(e,t)}),NX=q(`$ZodISODate`,(e,t)=>{t.pattern??=KJ,bX.init(e,t)}),PX=q(`$ZodISOTime`,(e,t)=>{t.pattern??=uJ(t),bX.init(e,t)}),FX=q(`$ZodISODuration`,(e,t)=>{t.pattern??=bJ,bX.init(e,t)}),IX=q(`$ZodIPv4`,(e,t)=>{t.pattern??=PJ,bX.init(e,t),e._zod.bag.format=`ipv4`}),LX=q(`$ZodIPv6`,(e,t)=>{t.pattern??=FJ,bX.init(e,t),e._zod.bag.format=`ipv6`,e._zod.check=n=>{try{new URL(`http://[${n.value}]`)}catch{n.issues.push({code:`invalid_format`,format:`ipv6`,input:n.value,inst:e,continue:!t.abort})}}}),RX=q(`$ZodMAC`,(e,t)=>{t.pattern??=IJ(t.delimiter),bX.init(e,t),e._zod.bag.format=`mac`}),zX=q(`$ZodCIDRv4`,(e,t)=>{t.pattern??=LJ,bX.init(e,t)}),BX=q(`$ZodCIDRv6`,(e,t)=>{t.pattern??=RJ,bX.init(e,t),e._zod.check=n=>{let r=n.value.split(`/`);try{if(r.length!==2)throw Error();let[e,t]=r;if(!t)throw Error();let n=Number(t);if(`${n}`!==t||n<0||n>128)throw Error();new URL(`http://[${e}]`)}catch{n.issues.push({code:`invalid_format`,format:`cidrv6`,input:n.value,inst:e,continue:!t.abort})}}}),VX=q(`$ZodBase64`,(e,t)=>{t.pattern??=zJ,bX.init(e,t),e._zod.bag.contentEncoding=`base64`,e._zod.check=n=>{JY(n.value)||n.issues.push({code:`invalid_format`,format:`base64`,input:n.value,inst:e,continue:!t.abort})}}),HX=q(`$ZodBase64URL`,(e,t)=>{t.pattern??=BJ,bX.init(e,t),e._zod.bag.contentEncoding=`base64url`,e._zod.check=n=>{YY(n.value)||n.issues.push({code:`invalid_format`,format:`base64url`,input:n.value,inst:e,continue:!t.abort})}}),UX=q(`$ZodE164`,(e,t)=>{t.pattern??=WJ,bX.init(e,t)}),WX=q(`$ZodJWT`,(e,t)=>{bX.init(e,t),e._zod.check=n=>{XY(n.value,t.alg)||n.issues.push({code:`invalid_format`,format:`jwt`,input:n.value,inst:e,continue:!t.abort})}}),GX=q(`$ZodCustomStringFormat`,(e,t)=>{bX.init(e,t),e._zod.check=n=>{t.fn(n.value)||n.issues.push({code:`invalid_format`,format:t.format,input:n.value,inst:e,continue:!t.abort})}}),KX=q(`$ZodNumber`,(e,t)=>{vX.init(e,t),e._zod.pattern=e._zod.bag.pattern??XJ,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=Number(n.value)}catch{}let i=n.value;if(typeof i==`number`&&!Number.isNaN(i)&&Number.isFinite(i))return n;let a=typeof i==`number`?Number.isNaN(i)?`NaN`:Number.isFinite(i)?void 0:`Infinity`:void 0;return n.issues.push({expected:`number`,code:`invalid_type`,input:i,inst:e,...a?{received:a}:{}}),n}}),qX=q(`$ZodNumberFormat`,(e,t)=>{TY.init(e,t),KX.init(e,t)}),JX=q(`$ZodBoolean`,(e,t)=>{vX.init(e,t),e._zod.pattern=ZJ,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=!!n.value}catch{}let i=n.value;return typeof i==`boolean`||n.issues.push({expected:`boolean`,code:`invalid_type`,input:i,inst:e}),n}}),YX=q(`$ZodBigInt`,(e,t)=>{vX.init(e,t),e._zod.pattern=JJ,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=BigInt(n.value)}catch{}return typeof n.value==`bigint`||n.issues.push({expected:`bigint`,code:`invalid_type`,input:n.value,inst:e}),n}}),XX=q(`$ZodBigIntFormat`,(e,t)=>{EY.init(e,t),YX.init(e,t)}),ZX=q(`$ZodSymbol`,(e,t)=>{vX.init(e,t),e._zod.parse=(t,n)=>{let r=t.value;return typeof r==`symbol`||t.issues.push({expected:`symbol`,code:`invalid_type`,input:r,inst:e}),t}}),QX=q(`$ZodUndefined`,(e,t)=>{vX.init(e,t),e._zod.pattern=$J,e._zod.values=new Set([void 0]),e._zod.parse=(t,n)=>{let r=t.value;return r===void 0||t.issues.push({expected:`undefined`,code:`invalid_type`,input:r,inst:e}),t}}),$X=q(`$ZodNull`,(e,t)=>{vX.init(e,t),e._zod.pattern=QJ,e._zod.values=new Set([null]),e._zod.parse=(t,n)=>{let r=t.value;return r===null||t.issues.push({expected:`null`,code:`invalid_type`,input:r,inst:e}),t}}),eZ=q(`$ZodAny`,(e,t)=>{vX.init(e,t),e._zod.parse=e=>e}),tZ=q(`$ZodUnknown`,(e,t)=>{vX.init(e,t),e._zod.parse=e=>e}),nZ=q(`$ZodNever`,(e,t)=>{vX.init(e,t),e._zod.parse=(t,n)=>(t.issues.push({expected:`never`,code:`invalid_type`,input:t.value,inst:e}),t)}),rZ=q(`$ZodVoid`,(e,t)=>{vX.init(e,t),e._zod.parse=(t,n)=>{let r=t.value;return r===void 0||t.issues.push({expected:`void`,code:`invalid_type`,input:r,inst:e}),t}}),iZ=q(`$ZodDate`,(e,t)=>{vX.init(e,t),e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=new Date(n.value)}catch{}let i=n.value,a=i instanceof Date;return a&&!Number.isNaN(i.getTime())||n.issues.push({expected:`date`,code:`invalid_type`,input:i,...a?{received:`Invalid Date`}:{},inst:e}),n}}),aZ=q(`$ZodArray`,(e,t)=>{vX.init(e,t),e._zod.parse=(n,r)=>{let i=n.value;if(!Array.isArray(i))return n.issues.push({expected:`array`,code:`invalid_type`,input:i,inst:e}),n;n.value=Array(i.length);let a=[];for(let e=0;eZY(t,n,e))):ZY(s,n,e)}return a.length?Promise.all(a).then(()=>n):n}}),oZ=q(`$ZodObject`,(e,t)=>{if(vX.init(e,t),!Object.getOwnPropertyDescriptor(t,`shape`)?.get){let e=t.shape;Object.defineProperty(t,"shape",{get:()=>{let n={...e};return Object.defineProperty(t,"shape",{value:n}),n}})}let n=TK(()=>$Y(t));kK(e._zod,`propValues`,()=>{let e=t.shape,n={};for(let t in e){let r=e[t]._zod;if(r.values){n[t]??(n[t]=new Set);for(let e of r.values)n[t].add(e)}}return n});let r=zK,i=t.catchall,a;e._zod.parse=(t,o)=>{a??=n.value;let s=t.value;if(!r(s))return t.issues.push({expected:`object`,code:`invalid_type`,input:s,inst:e}),t;t.value={};let c=[],l=a.shape;for(let e of a.keys){let n=l[e],r=n._zod.optin===`optional`,i=n._zod.optout===`optional`,a=n._zod.run({value:s[e],issues:[]},o);a instanceof Promise?c.push(a.then(n=>QY(n,t,e,s,r,i))):QY(a,t,e,s,r,i)}return i?eX(c,s,t,o,n.value,e):c.length?Promise.all(c).then(()=>t):t}}),sZ=q(`$ZodObjectJIT`,(e,t)=>{oZ.init(e,t);let n=e._zod.parse,r=TK(()=>$Y(t)),i=e=>{let t=new WY([`shape`,`payload`,`ctx`]),n=r.value,i=e=>{let t=LK(e);return`shape[${t}]._zod.run({ value: input[${t}], issues: [] }, ctx)`};t.write(`const input = payload.value;`);let a=Object.create(null),o=0;for(let e of n.keys)a[e]=`key_${o++}`;t.write(`const newResult = {};`);for(let r of n.keys){let n=a[r],o=LK(r),s=e[r],c=s?._zod?.optin===`optional`,l=s?._zod?.optout===`optional`;t.write(`const ${n} = ${i(r)};`),c&&l?t.write(` +`))}}})),$Y,eX=o((()=>{$Y={major:4,minor:4,patch:3}}));function tX(e){if(e===``)return!0;if(/\s/.test(e)||e.length%4!=0)return!1;try{return atob(e),!0}catch{return!1}}function nX(e){if(!qJ.test(e))return!1;let t=e.replace(/[-_]/g,e=>e===`-`?`+`:`/`);return tX(t.padEnd(Math.ceil(t.length/4)*4,`=`))}function rX(e,t=null){try{let n=e.split(`.`);if(n.length!==3)return!1;let[r]=n;if(!r)return!1;let i=JSON.parse(atob(r));return!(`typ`in i&&i?.typ!==`JWT`||!i.alg||t&&(!(`alg`in i)||i.alg!==t))}catch{return!1}}function iX(e,t,n){e.issues.length&&t.issues.push(...uq(n,e.issues)),t.value[n]=e.value}function aX(e,t,n,r,i,a){let o=n in r;if(e.issues.length){if(i&&a&&!o)return;t.issues.push(...uq(n,e.issues))}if(!o&&!i){e.issues.length||t.issues.push({code:`invalid_type`,expected:`nonoptional`,input:void 0,path:[n]});return}e.value===void 0?o&&(t.value[n]=void 0):t.value[n]=e.value}function oX(e){let t=Object.keys(e.shape);for(let n of t)if(!e.shape?.[n]?._zod?.traits?.has(`$ZodType`))throw Error(`Invalid element at key "${n}": expected a Zod schema`);let n=eq(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(n)}}function sX(e,t,n,r,i,a){let o=[],s=i.keySet,c=i.catchall._zod,l=c.def.type,u=c.optin===`optional`,d=c.optout===`optional`;for(let i in t){if(i===`__proto__`||s.has(i))continue;if(l===`never`){o.push(i);continue}let a=c.run({value:t[i],issues:[]},r);a instanceof Promise?e.push(a.then(e=>aX(e,n,i,t,u,d))):aX(a,n,i,t,u,d)}return o.length&&n.issues.push({code:`unrecognized_keys`,keys:o,input:t,inst:a}),e.length?Promise.all(e).then(()=>n):n}function cX(e,t,n,r){for(let n of e)if(n.issues.length===0)return t.value=n.value,t;let i=e.filter(e=>!cq(e));return i.length===1?(t.value=i[0].value,i[0]):(t.issues.push({code:`invalid_union`,input:t.value,inst:n,errors:e.map(e=>e.issues.map(e=>fq(e,r,gK())))}),t)}function lX(e,t,n,r){let i=e.filter(e=>e.issues.length===0);return i.length===1?(t.value=i[0].value,t):(i.length===0?t.issues.push({code:`invalid_union`,input:t.value,inst:n,errors:e.map(e=>e.issues.map(e=>fq(e,r,gK())))}):t.issues.push({code:`invalid_union`,input:t.value,inst:n,errors:[],inclusive:!1}),t)}function uX(e,t){if(e===t||e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(qK(e)&&qK(t)){let n=Object.keys(t),r=Object.keys(e).filter(e=>n.indexOf(e)!==-1),i={...e,...t};for(let n of r){let r=uX(e[n],t[n]);if(!r.valid)return{valid:!1,mergeErrorPath:[n,...r.mergeErrorPath]};i[n]=r.data}return{valid:!0,data:i}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};let n=[];for(let r=0;re.l&&e.r).map(([e])=>e);if(a.length&&i&&e.issues.push({...i,keys:a}),cq(e))return e;let o=uX(t.value,n.value);if(!o.valid)throw Error(`Unmergable intersection. Error path: ${JSON.stringify(o.mergeErrorPath)}`);return e.value=o.data,e}function fX(e,t){for(let n=e.length-1;n>=0;n--)if(e[n]._zod[t]!==`optional`)return n+1;return 0}function pX(e,t,n){e.issues.length&&t.issues.push(...uq(n,e.issues)),t.value[n]=e.value}function mX(e,t,n,r,i){for(let a=0;a=i){t.value.length=a;break}t.issues.push(...uq(a,n.issues))}t.value[a]=n.value}for(let e=t.value.length-1;e>=r.length&&n[e]._zod.optout===`optional`&&t.value[e]===void 0;e--)t.value.length=e;return t}function hX(e,t,n,r,i,a,o){e.issues.length&&(Oq.has(typeof r)?n.issues.push(...uq(r,e.issues)):n.issues.push({code:`invalid_key`,origin:`map`,input:i,inst:a,issues:e.issues.map(e=>fq(e,o,gK()))})),t.issues.length&&(Oq.has(typeof r)?n.issues.push(...uq(r,t.issues)):n.issues.push({origin:`map`,code:`invalid_element`,input:i,inst:a,key:r,issues:t.issues.map(e=>fq(e,o,gK()))})),n.value.set(e.value,t.value)}function gX(e,t){e.issues.length&&t.issues.push(...e.issues),t.value.add(e.value)}function _X(e,t){return t===void 0&&(e.issues.length||e.fallback)?{issues:[],value:void 0}:e}function vX(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}function yX(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:`invalid_type`,expected:`nonoptional`,input:e.value,inst:t}),e}function bX(e,t,n){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues,fallback:e.fallback},n)}function xX(e,t,n){if(e.issues.length)return e.aborted=!0,e;if((n.direction||`forward`)===`forward`){let r=t.transform(e.value,e);return r instanceof Promise?r.then(r=>SX(e,r,t.out,n)):SX(e,r,t.out,n)}{let r=t.reverseTransform(e.value,e);return r instanceof Promise?r.then(r=>SX(e,r,t.in,n)):SX(e,r,t.in,n)}}function SX(e,t,n,r){return e.issues.length?(e.aborted=!0,e):n._zod.run({value:t,issues:e.issues},r)}function CX(e){return e.value=Object.freeze(e.value),e}function wX(e,t,n,r){if(!e){let e={code:`custom`,input:n,inst:r,path:[...r._zod.def.path??[]],continue:!r._zod.def.abort};r._zod.def.params&&(e.params=r._zod.def.params),t.issues.push(gq(e))}}var TX,EX,DX,OX,kX,AX,jX,MX,NX,PX,FX,IX,LX,RX,zX,BX,VX,HX,UX,WX,GX,KX,qX,JX,YX,XX,ZX,QX,$X,eZ,tZ,nZ,rZ,iZ,aZ,oZ,sZ,cZ,lZ,uZ,dZ,fZ,pZ,mZ,hZ,gZ,_Z,vZ,yZ,bZ,xZ,SZ,CZ,wZ,TZ,EZ,DZ,OZ,kZ,AZ,jZ,MZ,NZ,PZ,FZ,IZ,LZ,RZ,zZ,BZ,VZ,HZ,UZ,WZ,GZ=o((()=>{XY(),CK(),QY(),pJ(),TY(),Nq(),eX(),TX=q(`$ZodType`,(e,t)=>{var n;e??={},e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=$Y;let r=[...e._zod.def.checks??[]];e._zod.traits.has(`$ZodCheck`)&&r.unshift(e);for(let t of r)for(let n of t._zod.onattach)n(e);if(r.length===0)(n=e._zod).deferred??(n.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{let t=(e,t,n)=>{let r=cq(e),i;for(let a of t){if(a._zod.def.when){if(lq(e)||!a._zod.def.when(e))continue}else if(r)continue;let t=e.issues.length,o=a._zod.check(e);if(o instanceof Promise&&n?.async===!1)throw new bK;if(i||o instanceof Promise)i=(i??Promise.resolve()).then(async()=>{await o,e.issues.length!==t&&(r||=cq(e,t))});else{if(e.issues.length===t)continue;r||=cq(e,t)}}return i?i.then(()=>e):e},n=(n,i,a)=>{if(cq(n))return n.aborted=!0,n;let o=t(i,r,a);if(o instanceof Promise){if(a.async===!1)throw new bK;return o.then(t=>e._zod.parse(t,a))}return e._zod.parse(o,a)};e._zod.run=(i,a)=>{if(a.skipChecks)return e._zod.parse(i,a);if(a.direction===`backward`){let t=e._zod.parse({value:i.value,issues:[]},{...a,skipChecks:!0});return t instanceof Promise?t.then(e=>n(e,i,a)):n(t,i,a)}let o=e._zod.parse(i,a);if(o instanceof Promise){if(a.async===!1)throw new bK;return o.then(e=>t(e,r,a))}return t(o,r,a)}}IK(e,`~standard`,()=>({validate:t=>{try{let n=Jq(e,t);return n.success?{value:n.data}:{issues:n.error?.issues}}catch{return Xq(e,t).then(e=>e.success?{value:e.data}:{issues:e.error?.issues})}},vendor:`zod`,version:1}))}),EX=q(`$ZodString`,(e,t)=>{TX.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??eY(e._zod.bag),e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=String(n.value)}catch{}return typeof n.value==`string`||n.issues.push({expected:`string`,code:`invalid_type`,input:n.value,inst:e}),n}}),DX=q(`$ZodStringFormat`,(e,t)=>{BY.init(e,t),EX.init(e,t)}),OX=q(`$ZodGUID`,(e,t)=>{t.pattern??=kJ,DX.init(e,t)}),kX=q(`$ZodUUID`,(e,t)=>{if(t.version){let e={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(e===void 0)throw Error(`Invalid UUID version: "${t.version}"`);t.pattern??=AJ(e)}else t.pattern??=AJ();DX.init(e,t)}),AX=q(`$ZodEmail`,(e,t)=>{t.pattern??=PJ,DX.init(e,t)}),jX=q(`$ZodURL`,(e,t)=>{DX.init(e,t),e._zod.check=n=>{try{let r=n.value.trim();if(!t.normalize&&t.protocol?.source===XJ.source&&!/^https?:\/\//i.test(r)){n.issues.push({code:`invalid_format`,format:`url`,note:`Invalid URL format`,input:n.value,inst:e,continue:!t.abort});return}let i=new URL(r);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(i.hostname)||n.issues.push({code:`invalid_format`,format:`url`,note:`Invalid hostname`,pattern:t.hostname.source,input:n.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(i.protocol.endsWith(`:`)?i.protocol.slice(0,-1):i.protocol)||n.issues.push({code:`invalid_format`,format:`url`,note:`Invalid protocol`,pattern:t.protocol.source,input:n.value,inst:e,continue:!t.abort})),n.value=t.normalize?i.href:r;return}catch{n.issues.push({code:`invalid_format`,format:`url`,input:n.value,inst:e,continue:!t.abort})}}}),MX=q(`$ZodEmoji`,(e,t)=>{t.pattern??=hJ(),DX.init(e,t)}),NX=q(`$ZodNanoID`,(e,t)=>{t.pattern??=EJ,DX.init(e,t)}),PX=q(`$ZodCUID`,(e,t)=>{t.pattern??=xJ,DX.init(e,t)}),FX=q(`$ZodCUID2`,(e,t)=>{t.pattern??=SJ,DX.init(e,t)}),IX=q(`$ZodULID`,(e,t)=>{t.pattern??=CJ,DX.init(e,t)}),LX=q(`$ZodXID`,(e,t)=>{t.pattern??=wJ,DX.init(e,t)}),RX=q(`$ZodKSUID`,(e,t)=>{t.pattern??=TJ,DX.init(e,t)}),zX=q(`$ZodISODateTime`,(e,t)=>{t.pattern??=vJ(t),DX.init(e,t)}),BX=q(`$ZodISODate`,(e,t)=>{t.pattern??=$J,DX.init(e,t)}),VX=q(`$ZodISOTime`,(e,t)=>{t.pattern??=_J(t),DX.init(e,t)}),HX=q(`$ZodISODuration`,(e,t)=>{t.pattern??=DJ,DX.init(e,t)}),UX=q(`$ZodIPv4`,(e,t)=>{t.pattern??=VJ,DX.init(e,t),e._zod.bag.format=`ipv4`}),WX=q(`$ZodIPv6`,(e,t)=>{t.pattern??=HJ,DX.init(e,t),e._zod.bag.format=`ipv6`,e._zod.check=n=>{try{new URL(`http://[${n.value}]`)}catch{n.issues.push({code:`invalid_format`,format:`ipv6`,input:n.value,inst:e,continue:!t.abort})}}}),GX=q(`$ZodMAC`,(e,t)=>{t.pattern??=UJ(t.delimiter),DX.init(e,t),e._zod.bag.format=`mac`}),KX=q(`$ZodCIDRv4`,(e,t)=>{t.pattern??=WJ,DX.init(e,t)}),qX=q(`$ZodCIDRv6`,(e,t)=>{t.pattern??=GJ,DX.init(e,t),e._zod.check=n=>{let r=n.value.split(`/`);try{if(r.length!==2)throw Error();let[e,t]=r;if(!t)throw Error();let n=Number(t);if(`${n}`!==t||n<0||n>128)throw Error();new URL(`http://[${e}]`)}catch{n.issues.push({code:`invalid_format`,format:`cidrv6`,input:n.value,inst:e,continue:!t.abort})}}}),JX=q(`$ZodBase64`,(e,t)=>{t.pattern??=KJ,DX.init(e,t),e._zod.bag.contentEncoding=`base64`,e._zod.check=n=>{tX(n.value)||n.issues.push({code:`invalid_format`,format:`base64`,input:n.value,inst:e,continue:!t.abort})}}),YX=q(`$ZodBase64URL`,(e,t)=>{t.pattern??=qJ,DX.init(e,t),e._zod.bag.contentEncoding=`base64url`,e._zod.check=n=>{nX(n.value)||n.issues.push({code:`invalid_format`,format:`base64url`,input:n.value,inst:e,continue:!t.abort})}}),XX=q(`$ZodE164`,(e,t)=>{t.pattern??=ZJ,DX.init(e,t)}),ZX=q(`$ZodJWT`,(e,t)=>{DX.init(e,t),e._zod.check=n=>{rX(n.value,t.alg)||n.issues.push({code:`invalid_format`,format:`jwt`,input:n.value,inst:e,continue:!t.abort})}}),QX=q(`$ZodCustomStringFormat`,(e,t)=>{DX.init(e,t),e._zod.check=n=>{t.fn(n.value)||n.issues.push({code:`invalid_format`,format:t.format,input:n.value,inst:e,continue:!t.abort})}}),$X=q(`$ZodNumber`,(e,t)=>{TX.init(e,t),e._zod.pattern=e._zod.bag.pattern??rY,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=Number(n.value)}catch{}let i=n.value;if(typeof i==`number`&&!Number.isNaN(i)&&Number.isFinite(i))return n;let a=typeof i==`number`?Number.isNaN(i)?`NaN`:Number.isFinite(i)?void 0:`Infinity`:void 0;return n.issues.push({expected:`number`,code:`invalid_type`,input:i,inst:e,...a?{received:a}:{}}),n}}),eZ=q(`$ZodNumberFormat`,(e,t)=>{MY.init(e,t),$X.init(e,t)}),tZ=q(`$ZodBoolean`,(e,t)=>{TX.init(e,t),e._zod.pattern=iY,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=!!n.value}catch{}let i=n.value;return typeof i==`boolean`||n.issues.push({expected:`boolean`,code:`invalid_type`,input:i,inst:e}),n}}),nZ=q(`$ZodBigInt`,(e,t)=>{TX.init(e,t),e._zod.pattern=tY,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=BigInt(n.value)}catch{}return typeof n.value==`bigint`||n.issues.push({expected:`bigint`,code:`invalid_type`,input:n.value,inst:e}),n}}),rZ=q(`$ZodBigIntFormat`,(e,t)=>{NY.init(e,t),nZ.init(e,t)}),iZ=q(`$ZodSymbol`,(e,t)=>{TX.init(e,t),e._zod.parse=(t,n)=>{let r=t.value;return typeof r==`symbol`||t.issues.push({expected:`symbol`,code:`invalid_type`,input:r,inst:e}),t}}),aZ=q(`$ZodUndefined`,(e,t)=>{TX.init(e,t),e._zod.pattern=oY,e._zod.values=new Set([void 0]),e._zod.parse=(t,n)=>{let r=t.value;return r===void 0||t.issues.push({expected:`undefined`,code:`invalid_type`,input:r,inst:e}),t}}),oZ=q(`$ZodNull`,(e,t)=>{TX.init(e,t),e._zod.pattern=aY,e._zod.values=new Set([null]),e._zod.parse=(t,n)=>{let r=t.value;return r===null||t.issues.push({expected:`null`,code:`invalid_type`,input:r,inst:e}),t}}),sZ=q(`$ZodAny`,(e,t)=>{TX.init(e,t),e._zod.parse=e=>e}),cZ=q(`$ZodUnknown`,(e,t)=>{TX.init(e,t),e._zod.parse=e=>e}),lZ=q(`$ZodNever`,(e,t)=>{TX.init(e,t),e._zod.parse=(t,n)=>(t.issues.push({expected:`never`,code:`invalid_type`,input:t.value,inst:e}),t)}),uZ=q(`$ZodVoid`,(e,t)=>{TX.init(e,t),e._zod.parse=(t,n)=>{let r=t.value;return r===void 0||t.issues.push({expected:`void`,code:`invalid_type`,input:r,inst:e}),t}}),dZ=q(`$ZodDate`,(e,t)=>{TX.init(e,t),e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=new Date(n.value)}catch{}let i=n.value,a=i instanceof Date;return a&&!Number.isNaN(i.getTime())||n.issues.push({expected:`date`,code:`invalid_type`,input:i,...a?{received:`Invalid Date`}:{},inst:e}),n}}),fZ=q(`$ZodArray`,(e,t)=>{TX.init(e,t),e._zod.parse=(n,r)=>{let i=n.value;if(!Array.isArray(i))return n.issues.push({expected:`array`,code:`invalid_type`,input:i,inst:e}),n;n.value=Array(i.length);let a=[];for(let e=0;eiX(t,n,e))):iX(s,n,e)}return a.length?Promise.all(a).then(()=>n):n}}),pZ=q(`$ZodObject`,(e,t)=>{if(TX.init(e,t),!Object.getOwnPropertyDescriptor(t,`shape`)?.get){let e=t.shape;Object.defineProperty(t,"shape",{get:()=>{let n={...e};return Object.defineProperty(t,"shape",{value:n}),n}})}let n=MK(()=>oX(t));IK(e._zod,`propValues`,()=>{let e=t.shape,n={};for(let t in e){let r=e[t]._zod;if(r.values){n[t]??(n[t]=new Set);for(let e of r.values)n[t].add(e)}}return n});let r=KK,i=t.catchall,a;e._zod.parse=(t,o)=>{a??=n.value;let s=t.value;if(!r(s))return t.issues.push({expected:`object`,code:`invalid_type`,input:s,inst:e}),t;t.value={};let c=[],l=a.shape;for(let e of a.keys){let n=l[e],r=n._zod.optin===`optional`,i=n._zod.optout===`optional`,a=n._zod.run({value:s[e],issues:[]},o);a instanceof Promise?c.push(a.then(n=>aX(n,t,e,s,r,i))):aX(a,t,e,s,r,i)}return i?sX(c,s,t,o,n.value,e):c.length?Promise.all(c).then(()=>t):t}}),mZ=q(`$ZodObjectJIT`,(e,t)=>{pZ.init(e,t);let n=e._zod.parse,r=MK(()=>oX(t)),i=e=>{let t=new ZY([`shape`,`payload`,`ctx`]),n=r.value,i=e=>{let t=WK(e);return`shape[${t}]._zod.run({ value: input[${t}], issues: [] }, ctx)`};t.write(`const input = payload.value;`);let a=Object.create(null),o=0;for(let e of n.keys)a[e]=`key_${o++}`;t.write(`const newResult = {};`);for(let r of n.keys){let n=a[r],o=WK(r),s=e[r],c=s?._zod?.optin===`optional`,l=s?._zod?.optout===`optional`;t.write(`const ${n} = ${i(r)};`),c&&l?t.write(` if (${n}.issues.length) { if (${o} in input) { payload.issues = payload.issues.concat(${n}.issues.map(iss => ({ @@ -87,15 +87,15 @@ } } - `)}t.write(`payload.value = newResult;`),t.write(`return payload;`);let s=t.compile();return(t,n)=>s(e,t,n)},a,o=zK,s=!hK.jitless,c=s&&yq.value,l=t.catchall,u;e._zod.parse=(d,f)=>{u??=r.value;let p=d.value;return o(p)?s&&c&&f?.async===!1&&f.jitless!==!0?(a||=i(t.shape),d=a(d,f),l?eX([],p,d,f,u,e):d):n(d,f):(d.issues.push({expected:`object`,code:`invalid_type`,input:p,inst:e}),d)}}),cZ=q(`$ZodUnion`,(e,t)=>{vX.init(e,t),kK(e._zod,`optin`,()=>t.options.some(e=>e._zod.optin===`optional`)?`optional`:void 0),kK(e._zod,`optout`,()=>t.options.some(e=>e._zod.optout===`optional`)?`optional`:void 0),kK(e._zod,`values`,()=>{if(t.options.every(e=>e._zod.values))return new Set(t.options.flatMap(e=>Array.from(e._zod.values)))}),kK(e._zod,`pattern`,()=>{if(t.options.every(e=>e._zod.pattern)){let e=t.options.map(e=>e._zod.pattern);return RegExp(`^(${e.map(e=>DK(e.source)).join(`|`)})$`)}});let n=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(r,i)=>{if(n)return n(r,i);let a=!1,o=[];for(let e of t.options){let t=e._zod.run({value:r.value,issues:[]},i);if(t instanceof Promise)o.push(t),a=!0;else{if(t.issues.length===0)return t;o.push(t)}}return a?Promise.all(o).then(t=>tX(t,r,e,i)):tX(o,r,e,i)}}),lZ=q(`$ZodXor`,(e,t)=>{cZ.init(e,t),t.inclusive=!1;let n=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(r,i)=>{if(n)return n(r,i);let a=!1,o=[];for(let e of t.options){let t=e._zod.run({value:r.value,issues:[]},i);t instanceof Promise?(o.push(t),a=!0):o.push(t)}return a?Promise.all(o).then(t=>nX(t,r,e,i)):nX(o,r,e,i)}}),uZ=q(`$ZodDiscriminatedUnion`,(e,t)=>{t.inclusive=!1,cZ.init(e,t);let n=e._zod.parse;kK(e._zod,`propValues`,()=>{let e={};for(let n of t.options){let r=n._zod.propValues;if(!r||Object.keys(r).length===0)throw Error(`Invalid discriminated union option at index "${t.options.indexOf(n)}"`);for(let[t,n]of Object.entries(r)){e[t]||(e[t]=new Set);for(let r of n)e[t].add(r)}}return e});let r=TK(()=>{let e=t.options,n=new Map;for(let r of e){let e=r._zod.propValues?.[t.discriminator];if(!e||e.size===0)throw Error(`Invalid discriminated union option at index "${t.options.indexOf(r)}"`);for(let t of e){if(n.has(t))throw Error(`Duplicate discriminator value "${String(t)}"`);n.set(t,r)}}return n});e._zod.parse=(i,a)=>{let o=i.value;if(!zK(o))return i.issues.push({code:`invalid_type`,expected:`object`,input:o,inst:e}),i;let s=r.value.get(o?.[t.discriminator]);return s?s._zod.run(i,a):t.unionFallback||a.direction===`backward`?n(i,a):(i.issues.push({code:`invalid_union`,errors:[],note:`No matching discriminator`,discriminator:t.discriminator,options:Array.from(r.value.keys()),input:o,path:[t.discriminator],inst:e}),i)}}),dZ=q(`$ZodIntersection`,(e,t)=>{vX.init(e,t),e._zod.parse=(e,n)=>{let r=e.value,i=t.left._zod.run({value:r,issues:[]},n),a=t.right._zod.run({value:r,issues:[]},n);return i instanceof Promise||a instanceof Promise?Promise.all([i,a]).then(([t,n])=>iX(e,t,n)):iX(e,i,a)}}),fZ=q(`$ZodTuple`,(e,t)=>{vX.init(e,t);let n=t.items;e._zod.parse=(r,i)=>{let a=r.value;if(!Array.isArray(a))return r.issues.push({input:a,inst:e,expected:`tuple`,code:`invalid_type`}),r;r.value=[];let o=[],s=aX(n,`optin`),c=aX(n,`optout`);if(!t.rest){if(a.lengthn.length&&r.issues.push({code:`too_big`,maximum:n.length,inclusive:!0,input:a,inst:e,origin:`array`})}let l=Array(n.length);for(let e=0;e{l[e]=t})):l[e]=t}if(t.rest){let e=n.length-1,s=a.slice(n.length);for(let n of s){e++;let a=t.rest._zod.run({value:n,issues:[]},i);a instanceof Promise?o.push(a.then(t=>oX(t,r,e))):oX(a,r,e)}}return o.length?Promise.all(o).then(()=>sX(l,r,n,a,c)):sX(l,r,n,a,c)}}),pZ=q(`$ZodRecord`,(e,t)=>{vX.init(e,t),e._zod.parse=(n,r)=>{let i=n.value;if(!BK(i))return n.issues.push({expected:`record`,code:`invalid_type`,input:i,inst:e}),n;let a=[],o=t.keyType._zod.values;if(o){n.value={};let s=new Set;for(let c of o)if(typeof c==`string`||typeof c==`number`||typeof c==`symbol`){s.add(typeof c==`number`?c.toString():c);let o=t.keyType._zod.run({value:c,issues:[]},r);if(o instanceof Promise)throw Error(`Async schemas not supported in object keys currently`);if(o.issues.length){n.issues.push({code:`invalid_key`,origin:`record`,issues:o.issues.map(e=>aq(e,r,lK())),input:c,path:[c],inst:e});continue}let l=o.value,u=t.valueType._zod.run({value:i[c],issues:[]},r);u instanceof Promise?a.push(u.then(e=>{e.issues.length&&n.issues.push(...rq(c,e.issues)),n.value[l]=e.value})):(u.issues.length&&n.issues.push(...rq(c,u.issues)),n.value[l]=u.value)}let c;for(let e in i)s.has(e)||(c??=[],c.push(e));c&&c.length>0&&n.issues.push({code:`unrecognized_keys`,input:i,inst:e,keys:c})}else{n.value={};for(let o of Reflect.ownKeys(i)){if(o===`__proto__`||!Object.prototype.propertyIsEnumerable.call(i,o))continue;let s=t.keyType._zod.run({value:o,issues:[]},r);if(s instanceof Promise)throw Error(`Async schemas not supported in object keys currently`);if(typeof o==`string`&&XJ.test(o)&&s.issues.length){let e=t.keyType._zod.run({value:Number(o),issues:[]},r);if(e instanceof Promise)throw Error(`Async schemas not supported in object keys currently`);e.issues.length===0&&(s=e)}if(s.issues.length){t.mode===`loose`?n.value[o]=i[o]:n.issues.push({code:`invalid_key`,origin:`record`,issues:s.issues.map(e=>aq(e,r,lK())),input:o,path:[o],inst:e});continue}let c=t.valueType._zod.run({value:i[o],issues:[]},r);c instanceof Promise?a.push(c.then(e=>{e.issues.length&&n.issues.push(...rq(o,e.issues)),n.value[s.value]=e.value})):(c.issues.length&&n.issues.push(...rq(o,c.issues)),n.value[s.value]=c.value)}}return a.length?Promise.all(a).then(()=>n):n}}),mZ=q(`$ZodMap`,(e,t)=>{vX.init(e,t),e._zod.parse=(n,r)=>{let i=n.value;if(!(i instanceof Map))return n.issues.push({expected:`map`,code:`invalid_type`,input:i,inst:e}),n;let a=[];n.value=new Map;for(let[o,s]of i){let c=t.keyType._zod.run({value:o,issues:[]},r),l=t.valueType._zod.run({value:s,issues:[]},r);c instanceof Promise||l instanceof Promise?a.push(Promise.all([c,l]).then(([t,a])=>{cX(t,a,n,o,i,e,r)})):cX(c,l,n,o,i,e,r)}return a.length?Promise.all(a).then(()=>n):n}}),hZ=q(`$ZodSet`,(e,t)=>{vX.init(e,t),e._zod.parse=(n,r)=>{let i=n.value;if(!(i instanceof Set))return n.issues.push({input:i,inst:e,expected:`set`,code:`invalid_type`}),n;let a=[];n.value=new Set;for(let e of i){let i=t.valueType._zod.run({value:e,issues:[]},r);i instanceof Promise?a.push(i.then(e=>lX(e,n))):lX(i,n)}return a.length?Promise.all(a).then(()=>n):n}}),gZ=q(`$ZodEnum`,(e,t)=>{vX.init(e,t);let n=CK(t.entries),r=new Set(n);e._zod.values=r,e._zod.pattern=RegExp(`^(${n.filter(e=>xq.has(typeof e)).map(e=>typeof e==`string`?UK(e):e.toString()).join(`|`)})$`),e._zod.parse=(t,i)=>{let a=t.value;return r.has(a)||t.issues.push({code:`invalid_value`,values:n,input:a,inst:e}),t}}),_Z=q(`$ZodLiteral`,(e,t)=>{if(vX.init(e,t),t.values.length===0)throw Error(`Cannot create literal schema with no valid values`);let n=new Set(t.values);e._zod.values=n,e._zod.pattern=RegExp(`^(${t.values.map(e=>typeof e==`string`?UK(e):e?UK(e.toString()):String(e)).join(`|`)})$`),e._zod.parse=(r,i)=>{let a=r.value;return n.has(a)||r.issues.push({code:`invalid_value`,values:t.values,input:a,inst:e}),r}}),vZ=q(`$ZodFile`,(e,t)=>{vX.init(e,t),e._zod.parse=(t,n)=>{let r=t.value;return r instanceof File||t.issues.push({expected:`file`,code:`invalid_type`,input:r,inst:e}),t}}),yZ=q(`$ZodTransform`,(e,t)=>{vX.init(e,t),e._zod.optin=`optional`,e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new mK(e.constructor.name);let i=t.transform(n.value,n);if(r.async)return(i instanceof Promise?i:Promise.resolve(i)).then(e=>(n.value=e,n.fallback=!0,n));if(i instanceof Promise)throw new pK;return n.value=i,n.fallback=!0,n}}),bZ=q(`$ZodOptional`,(e,t)=>{vX.init(e,t),e._zod.optin=`optional`,e._zod.optout=`optional`,kK(e._zod,`values`,()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),kK(e._zod,`pattern`,()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${DK(e.source)})?$`):void 0}),e._zod.parse=(e,n)=>{if(t.innerType._zod.optin===`optional`){let r=e.value,i=t.innerType._zod.run(e,n);return i instanceof Promise?i.then(e=>uX(e,r)):uX(i,r)}return e.value===void 0?e:t.innerType._zod.run(e,n)}}),xZ=q(`$ZodExactOptional`,(e,t)=>{bZ.init(e,t),kK(e._zod,`values`,()=>t.innerType._zod.values),kK(e._zod,`pattern`,()=>t.innerType._zod.pattern),e._zod.parse=(e,n)=>t.innerType._zod.run(e,n)}),SZ=q(`$ZodNullable`,(e,t)=>{vX.init(e,t),kK(e._zod,`optin`,()=>t.innerType._zod.optin),kK(e._zod,`optout`,()=>t.innerType._zod.optout),kK(e._zod,`pattern`,()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${DK(e.source)}|null)$`):void 0}),kK(e._zod,`values`,()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(e,n)=>e.value===null?e:t.innerType._zod.run(e,n)}),CZ=q(`$ZodDefault`,(e,t)=>{vX.init(e,t),e._zod.optin=`optional`,kK(e._zod,`values`,()=>t.innerType._zod.values),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);if(e.value===void 0)return e.value=t.defaultValue,e;let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(e=>dX(e,t)):dX(r,t)}}),wZ=q(`$ZodPrefault`,(e,t)=>{vX.init(e,t),e._zod.optin=`optional`,kK(e._zod,`values`,()=>t.innerType._zod.values),e._zod.parse=(e,n)=>(n.direction===`backward`||e.value===void 0&&(e.value=t.defaultValue),t.innerType._zod.run(e,n))}),TZ=q(`$ZodNonOptional`,(e,t)=>{vX.init(e,t),kK(e._zod,`values`,()=>{let e=t.innerType._zod.values;return e?new Set([...e].filter(e=>e!==void 0)):void 0}),e._zod.parse=(n,r)=>{let i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(t=>fX(t,e)):fX(i,e)}}),EZ=q(`$ZodSuccess`,(e,t)=>{vX.init(e,t),e._zod.parse=(e,n)=>{if(n.direction===`backward`)throw new mK(`ZodSuccess`);let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(t=>(e.value=t.issues.length===0,e)):(e.value=r.issues.length===0,e)}}),DZ=q(`$ZodCatch`,(e,t)=>{vX.init(e,t),e._zod.optin=`optional`,kK(e._zod,`optout`,()=>t.innerType._zod.optout),kK(e._zod,`values`,()=>t.innerType._zod.values),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(r=>(e.value=r.value,r.issues.length&&(e.value=t.catchValue({...e,error:{issues:r.issues.map(e=>aq(e,n,lK()))},input:e.value}),e.issues=[],e.fallback=!0),e)):(e.value=r.value,r.issues.length&&(e.value=t.catchValue({...e,error:{issues:r.issues.map(e=>aq(e,n,lK()))},input:e.value}),e.issues=[],e.fallback=!0),e)}}),OZ=q(`$ZodNaN`,(e,t)=>{vX.init(e,t),e._zod.parse=(t,n)=>((typeof t.value!=`number`||!Number.isNaN(t.value))&&t.issues.push({input:t.value,inst:e,expected:`nan`,code:`invalid_type`}),t)}),kZ=q(`$ZodPipe`,(e,t)=>{vX.init(e,t),kK(e._zod,`values`,()=>t.in._zod.values),kK(e._zod,`optin`,()=>t.in._zod.optin),kK(e._zod,`optout`,()=>t.out._zod.optout),kK(e._zod,`propValues`,()=>t.in._zod.propValues),e._zod.parse=(e,n)=>{if(n.direction===`backward`){let r=t.out._zod.run(e,n);return r instanceof Promise?r.then(e=>pX(e,t.in,n)):pX(r,t.in,n)}let r=t.in._zod.run(e,n);return r instanceof Promise?r.then(e=>pX(e,t.out,n)):pX(r,t.out,n)}}),AZ=q(`$ZodCodec`,(e,t)=>{vX.init(e,t),kK(e._zod,`values`,()=>t.in._zod.values),kK(e._zod,`optin`,()=>t.in._zod.optin),kK(e._zod,`optout`,()=>t.out._zod.optout),kK(e._zod,`propValues`,()=>t.in._zod.propValues),e._zod.parse=(e,n)=>{if((n.direction||`forward`)===`forward`){let r=t.in._zod.run(e,n);return r instanceof Promise?r.then(e=>mX(e,t,n)):mX(r,t,n)}{let r=t.out._zod.run(e,n);return r instanceof Promise?r.then(e=>mX(e,t,n)):mX(r,t,n)}}}),jZ=q(`$ZodPreprocess`,(e,t)=>{kZ.init(e,t)}),MZ=q(`$ZodReadonly`,(e,t)=>{vX.init(e,t),kK(e._zod,`propValues`,()=>t.innerType._zod.propValues),kK(e._zod,`values`,()=>t.innerType._zod.values),kK(e._zod,`optin`,()=>t.innerType?._zod?.optin),kK(e._zod,`optout`,()=>t.innerType?._zod?.optout),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(gX):gX(r)}}),NZ=q(`$ZodTemplateLiteral`,(e,t)=>{vX.init(e,t);let n=[];for(let e of t.parts)if(typeof e==`object`&&e){if(!e._zod.pattern)throw Error(`Invalid template literal part, no pattern found: ${[...e._zod.traits].shift()}`);let t=e._zod.pattern instanceof RegExp?e._zod.pattern.source:e._zod.pattern;if(!t)throw Error(`Invalid template literal part: ${e._zod.traits}`);let r=+!!t.startsWith(`^`),i=t.endsWith(`$`)?t.length-1:t.length;n.push(t.slice(r,i))}else if(e===null||Sq.has(typeof e))n.push(UK(`${e}`));else throw Error(`Invalid template literal part: ${e}`);e._zod.pattern=RegExp(`^${n.join(``)}$`),e._zod.parse=(n,r)=>typeof n.value==`string`?(e._zod.pattern.lastIndex=0,e._zod.pattern.test(n.value)||n.issues.push({input:n.value,inst:e,code:`invalid_format`,format:t.format??`template_literal`,pattern:e._zod.pattern.source}),n):(n.issues.push({input:n.value,inst:e,expected:`string`,code:`invalid_type`}),n)}),PZ=q(`$ZodFunction`,(e,t)=>(vX.init(e,t),e._def=t,e._zod.def=t,e.implement=t=>{if(typeof t!=`function`)throw Error(`implement() must be called with a function`);return function(...n){let r=e._def.input?Lq(e._def.input,n):n,i=Reflect.apply(t,this,r);return e._def.output?Lq(e._def.output,i):i}},e.implementAsync=t=>{if(typeof t!=`function`)throw Error(`implementAsync() must be called with a function`);return async function(...n){let r=e._def.input?await zq(e._def.input,n):n,i=await Reflect.apply(t,this,r);return e._def.output?await zq(e._def.output,i):i}},e._zod.parse=(t,n)=>typeof t.value==`function`?(t.value=e._def.output&&e._def.output._zod.def.type===`promise`?e.implementAsync(t.value):e.implement(t.value),t):(t.issues.push({code:`invalid_type`,expected:`function`,input:t.value,inst:e}),t),e.input=(...t)=>{let n=e.constructor;return Array.isArray(t[0])?new n({type:`function`,input:new fZ({type:`tuple`,items:t[0],rest:t[1]}),output:e._def.output}):new n({type:`function`,input:t[0],output:e._def.output})},e.output=t=>{let n=e.constructor;return new n({type:`function`,input:e._def.input,output:t})},e)),FZ=q(`$ZodPromise`,(e,t)=>{vX.init(e,t),e._zod.parse=(e,n)=>Promise.resolve(e.value).then(e=>t.innerType._zod.run({value:e,issues:[]},n))}),IZ=q(`$ZodLazy`,(e,t)=>{vX.init(e,t),kK(e._zod,`innerType`,()=>{let e=t;return e._cachedInner||=t.getter(),e._cachedInner}),kK(e._zod,`pattern`,()=>e._zod.innerType?._zod?.pattern),kK(e._zod,`propValues`,()=>e._zod.innerType?._zod?.propValues),kK(e._zod,`optin`,()=>e._zod.innerType?._zod?.optin??void 0),kK(e._zod,`optout`,()=>e._zod.innerType?._zod?.optout??void 0),e._zod.parse=(t,n)=>e._zod.innerType._zod.run(t,n)}),LZ=q(`$ZodCustom`,(e,t)=>{bY.init(e,t),vX.init(e,t),e._zod.parse=(e,t)=>e,e._zod.check=n=>{let r=n.value,i=t.fn(r);if(i instanceof Promise)return i.then(t=>_X(t,n,r,e));_X(i,n,r,e)}})}));function zZ(){return{localeError:BZ()}}var BZ,VZ=o((()=>{Eq(),BZ=()=>{let e={string:{unit:`حرف`,verb:`أن يحوي`},file:{unit:`بايت`,verb:`أن يحوي`},array:{unit:`عنصر`,verb:`أن يحوي`},set:{unit:`عنصر`,verb:`أن يحوي`}};function t(t){return e[t]??null}let n={regex:`مدخل`,email:`بريد إلكتروني`,url:`رابط`,emoji:`إيموجي`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`تاريخ ووقت بمعيار ISO`,date:`تاريخ بمعيار ISO`,time:`وقت بمعيار ISO`,duration:`مدة بمعيار ISO`,ipv4:`عنوان IPv4`,ipv6:`عنوان IPv6`,cidrv4:`مدى عناوين بصيغة IPv4`,cidrv6:`مدى عناوين بصيغة IPv6`,base64:`نَص بترميز base64-encoded`,base64url:`نَص بترميز base64url-encoded`,json_string:`نَص على هيئة JSON`,e164:`رقم هاتف بمعيار E.164`,jwt:`JWT`,template_literal:`مدخل`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=cq(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`مدخلات غير مقبولة: يفترض إدخال instanceof ${e.expected}، ولكن تم إدخال ${i}`:`مدخلات غير مقبولة: يفترض إدخال ${t}، ولكن تم إدخال ${i}`}case`invalid_value`:return e.values.length===1?`مدخلات غير مقبولة: يفترض إدخال ${KK(e.values[0])}`:`اختيار غير مقبول: يتوقع انتقاء أحد هذه الخيارات: ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?` أكبر من اللازم: يفترض أن تكون ${e.origin??`القيمة`} ${n} ${e.maximum.toString()} ${r.unit??`عنصر`}`:`أكبر من اللازم: يفترض أن تكون ${e.origin??`القيمة`} ${n} ${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`أصغر من اللازم: يفترض لـ ${e.origin} أن يكون ${n} ${e.minimum.toString()} ${r.unit}`:`أصغر من اللازم: يفترض لـ ${e.origin} أن يكون ${n} ${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`نَص غير مقبول: يجب أن يبدأ بـ "${e.prefix}"`:t.format===`ends_with`?`نَص غير مقبول: يجب أن ينتهي بـ "${t.suffix}"`:t.format===`includes`?`نَص غير مقبول: يجب أن يتضمَّن "${t.includes}"`:t.format===`regex`?`نَص غير مقبول: يجب أن يطابق النمط ${t.pattern}`:`${n[t.format]??e.format} غير مقبول`}case`not_multiple_of`:return`رقم غير مقبول: يجب أن يكون من مضاعفات ${e.divisor}`;case`unrecognized_keys`:return`معرف${e.keys.length>1?`ات`:``} غريب${e.keys.length>1?`ة`:``}: ${J(e.keys,`، `)}`;case`invalid_key`:return`معرف غير مقبول في ${e.origin}`;case`invalid_union`:return`مدخل غير مقبول`;case`invalid_element`:return`مدخل غير مقبول في ${e.origin}`;default:return`مدخل غير مقبول`}}}}));function HZ(){return{localeError:UZ()}}var UZ,WZ=o((()=>{Eq(),UZ=()=>{let e={string:{unit:`simvol`,verb:`olmalıdır`},file:{unit:`bayt`,verb:`olmalıdır`},array:{unit:`element`,verb:`olmalıdır`},set:{unit:`element`,verb:`olmalıdır`}};function t(t){return e[t]??null}let n={regex:`input`,email:`email address`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO datetime`,date:`ISO date`,time:`ISO time`,duration:`ISO duration`,ipv4:`IPv4 address`,ipv6:`IPv6 address`,cidrv4:`IPv4 range`,cidrv6:`IPv6 range`,base64:`base64-encoded string`,base64url:`base64url-encoded string`,json_string:`JSON string`,e164:`E.164 number`,jwt:`JWT`,template_literal:`input`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=cq(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Yanlış dəyər: gözlənilən instanceof ${e.expected}, daxil olan ${i}`:`Yanlış dəyər: gözlənilən ${t}, daxil olan ${i}`}case`invalid_value`:return e.values.length===1?`Yanlış dəyər: gözlənilən ${KK(e.values[0])}`:`Yanlış seçim: aşağıdakılardan biri olmalıdır: ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Çox böyük: gözlənilən ${e.origin??`dəyər`} ${n}${e.maximum.toString()} ${r.unit??`element`}`:`Çox böyük: gözlənilən ${e.origin??`dəyər`} ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Çox kiçik: gözlənilən ${e.origin} ${n}${e.minimum.toString()} ${r.unit}`:`Çox kiçik: gözlənilən ${e.origin} ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Yanlış mətn: "${t.prefix}" ilə başlamalıdır`:t.format===`ends_with`?`Yanlış mətn: "${t.suffix}" ilə bitməlidir`:t.format===`includes`?`Yanlış mətn: "${t.includes}" daxil olmalıdır`:t.format===`regex`?`Yanlış mətn: ${t.pattern} şablonuna uyğun olmalıdır`:`Yanlış ${n[t.format]??e.format}`}case`not_multiple_of`:return`Yanlış ədəd: ${e.divisor} ilə bölünə bilən olmalıdır`;case`unrecognized_keys`:return`Tanınmayan açar${e.keys.length>1?`lar`:``}: ${J(e.keys,`, `)}`;case`invalid_key`:return`${e.origin} daxilində yanlış açar`;case`invalid_union`:return`Yanlış dəyər`;case`invalid_element`:return`${e.origin} daxilində yanlış dəyər`;default:return`Yanlış dəyər`}}}}));function GZ(e,t,n,r){let i=Math.abs(e),a=i%10,o=i%100;return o>=11&&o<=19?r:a===1?t:a>=2&&a<=4?n:r}function KZ(){return{localeError:qZ()}}var qZ,JZ=o((()=>{Eq(),qZ=()=>{let e={string:{unit:{one:`сімвал`,few:`сімвалы`,many:`сімвалаў`},verb:`мець`},array:{unit:{one:`элемент`,few:`элементы`,many:`элементаў`},verb:`мець`},set:{unit:{one:`элемент`,few:`элементы`,many:`элементаў`},verb:`мець`},file:{unit:{one:`байт`,few:`байты`,many:`байтаў`},verb:`мець`}};function t(t){return e[t]??null}let n={regex:`увод`,email:`email адрас`,url:`URL`,emoji:`эмодзі`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO дата і час`,date:`ISO дата`,time:`ISO час`,duration:`ISO працягласць`,ipv4:`IPv4 адрас`,ipv6:`IPv6 адрас`,cidrv4:`IPv4 дыяпазон`,cidrv6:`IPv6 дыяпазон`,base64:`радок у фармаце base64`,base64url:`радок у фармаце base64url`,json_string:`JSON радок`,e164:`нумар E.164`,jwt:`JWT`,template_literal:`увод`},r={nan:`NaN`,number:`лік`,array:`масіў`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=cq(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Няправільны ўвод: чакаўся instanceof ${e.expected}, атрымана ${i}`:`Няправільны ўвод: чакаўся ${t}, атрымана ${i}`}case`invalid_value`:return e.values.length===1?`Няправільны ўвод: чакалася ${KK(e.values[0])}`:`Няправільны варыянт: чакаўся адзін з ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);if(r){let t=GZ(Number(e.maximum),r.unit.one,r.unit.few,r.unit.many);return`Занадта вялікі: чакалася, што ${e.origin??`значэнне`} павінна ${r.verb} ${n}${e.maximum.toString()} ${t}`}return`Занадта вялікі: чакалася, што ${e.origin??`значэнне`} павінна быць ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);if(r){let t=GZ(Number(e.minimum),r.unit.one,r.unit.few,r.unit.many);return`Занадта малы: чакалася, што ${e.origin} павінна ${r.verb} ${n}${e.minimum.toString()} ${t}`}return`Занадта малы: чакалася, што ${e.origin} павінна быць ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Няправільны радок: павінен пачынацца з "${t.prefix}"`:t.format===`ends_with`?`Няправільны радок: павінен заканчвацца на "${t.suffix}"`:t.format===`includes`?`Няправільны радок: павінен змяшчаць "${t.includes}"`:t.format===`regex`?`Няправільны радок: павінен адпавядаць шаблону ${t.pattern}`:`Няправільны ${n[t.format]??e.format}`}case`not_multiple_of`:return`Няправільны лік: павінен быць кратным ${e.divisor}`;case`unrecognized_keys`:return`Нераспазнаны ${e.keys.length>1?`ключы`:`ключ`}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Няправільны ключ у ${e.origin}`;case`invalid_union`:return`Няправільны ўвод`;case`invalid_element`:return`Няправільнае значэнне ў ${e.origin}`;default:return`Няправільны ўвод`}}}}));function YZ(){return{localeError:XZ()}}var XZ,ZZ=o((()=>{Eq(),XZ=()=>{let e={string:{unit:`символа`,verb:`да съдържа`},file:{unit:`байта`,verb:`да съдържа`},array:{unit:`елемента`,verb:`да съдържа`},set:{unit:`елемента`,verb:`да съдържа`}};function t(t){return e[t]??null}let n={regex:`вход`,email:`имейл адрес`,url:`URL`,emoji:`емоджи`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO време`,date:`ISO дата`,time:`ISO време`,duration:`ISO продължителност`,ipv4:`IPv4 адрес`,ipv6:`IPv6 адрес`,cidrv4:`IPv4 диапазон`,cidrv6:`IPv6 диапазон`,base64:`base64-кодиран низ`,base64url:`base64url-кодиран низ`,json_string:`JSON низ`,e164:`E.164 номер`,jwt:`JWT`,template_literal:`вход`},r={nan:`NaN`,number:`число`,array:`масив`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=cq(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Невалиден вход: очакван instanceof ${e.expected}, получен ${i}`:`Невалиден вход: очакван ${t}, получен ${i}`}case`invalid_value`:return e.values.length===1?`Невалиден вход: очакван ${KK(e.values[0])}`:`Невалидна опция: очаквано едно от ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Твърде голямо: очаква се ${e.origin??`стойност`} да съдържа ${n}${e.maximum.toString()} ${r.unit??`елемента`}`:`Твърде голямо: очаква се ${e.origin??`стойност`} да бъде ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Твърде малко: очаква се ${e.origin} да съдържа ${n}${e.minimum.toString()} ${r.unit}`:`Твърде малко: очаква се ${e.origin} да бъде ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;if(t.format===`starts_with`)return`Невалиден низ: трябва да започва с "${t.prefix}"`;if(t.format===`ends_with`)return`Невалиден низ: трябва да завършва с "${t.suffix}"`;if(t.format===`includes`)return`Невалиден низ: трябва да включва "${t.includes}"`;if(t.format===`regex`)return`Невалиден низ: трябва да съвпада с ${t.pattern}`;let r=`Невалиден`;return t.format===`emoji`&&(r=`Невалидно`),t.format===`datetime`&&(r=`Невалидно`),t.format===`date`&&(r=`Невалидна`),t.format===`time`&&(r=`Невалидно`),t.format===`duration`&&(r=`Невалидна`),`${r} ${n[t.format]??e.format}`}case`not_multiple_of`:return`Невалидно число: трябва да бъде кратно на ${e.divisor}`;case`unrecognized_keys`:return`Неразпознат${e.keys.length>1?`и`:``} ключ${e.keys.length>1?`ове`:``}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Невалиден ключ в ${e.origin}`;case`invalid_union`:return`Невалиден вход`;case`invalid_element`:return`Невалидна стойност в ${e.origin}`;default:return`Невалиден вход`}}}}));function QZ(){return{localeError:$Z()}}var $Z,eQ=o((()=>{Eq(),$Z=()=>{let e={string:{unit:`caràcters`,verb:`contenir`},file:{unit:`bytes`,verb:`contenir`},array:{unit:`elements`,verb:`contenir`},set:{unit:`elements`,verb:`contenir`}};function t(t){return e[t]??null}let n={regex:`entrada`,email:`adreça electrònica`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`data i hora ISO`,date:`data ISO`,time:`hora ISO`,duration:`durada ISO`,ipv4:`adreça IPv4`,ipv6:`adreça IPv6`,cidrv4:`rang IPv4`,cidrv6:`rang IPv6`,base64:`cadena codificada en base64`,base64url:`cadena codificada en base64url`,json_string:`cadena JSON`,e164:`número E.164`,jwt:`JWT`,template_literal:`entrada`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=cq(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Tipus invàlid: s'esperava instanceof ${e.expected}, s'ha rebut ${i}`:`Tipus invàlid: s'esperava ${t}, s'ha rebut ${i}`}case`invalid_value`:return e.values.length===1?`Valor invàlid: s'esperava ${KK(e.values[0])}`:`Opció invàlida: s'esperava una de ${J(e.values,` o `)}`;case`too_big`:{let n=e.inclusive?`com a màxim`:`menys de`,r=t(e.origin);return r?`Massa gran: s'esperava que ${e.origin??`el valor`} contingués ${n} ${e.maximum.toString()} ${r.unit??`elements`}`:`Massa gran: s'esperava que ${e.origin??`el valor`} fos ${n} ${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`com a mínim`:`més de`,r=t(e.origin);return r?`Massa petit: s'esperava que ${e.origin} contingués ${n} ${e.minimum.toString()} ${r.unit}`:`Massa petit: s'esperava que ${e.origin} fos ${n} ${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Format invàlid: ha de començar amb "${t.prefix}"`:t.format===`ends_with`?`Format invàlid: ha d'acabar amb "${t.suffix}"`:t.format===`includes`?`Format invàlid: ha d'incloure "${t.includes}"`:t.format===`regex`?`Format invàlid: ha de coincidir amb el patró ${t.pattern}`:`Format invàlid per a ${n[t.format]??e.format}`}case`not_multiple_of`:return`Número invàlid: ha de ser múltiple de ${e.divisor}`;case`unrecognized_keys`:return`Clau${e.keys.length>1?`s`:``} no reconeguda${e.keys.length>1?`s`:``}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Clau invàlida a ${e.origin}`;case`invalid_union`:return`Entrada invàlida`;case`invalid_element`:return`Element invàlid a ${e.origin}`;default:return`Entrada invàlida`}}}}));function tQ(){return{localeError:nQ()}}var nQ,rQ=o((()=>{Eq(),nQ=()=>{let e={string:{unit:`znaků`,verb:`mít`},file:{unit:`bajtů`,verb:`mít`},array:{unit:`prvků`,verb:`mít`},set:{unit:`prvků`,verb:`mít`}};function t(t){return e[t]??null}let n={regex:`regulární výraz`,email:`e-mailová adresa`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`datum a čas ve formátu ISO`,date:`datum ve formátu ISO`,time:`čas ve formátu ISO`,duration:`doba trvání ISO`,ipv4:`IPv4 adresa`,ipv6:`IPv6 adresa`,cidrv4:`rozsah IPv4`,cidrv6:`rozsah IPv6`,base64:`řetězec zakódovaný ve formátu base64`,base64url:`řetězec zakódovaný ve formátu base64url`,json_string:`řetězec ve formátu JSON`,e164:`číslo E.164`,jwt:`JWT`,template_literal:`vstup`},r={nan:`NaN`,number:`číslo`,string:`řetězec`,function:`funkce`,array:`pole`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=cq(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Neplatný vstup: očekáváno instanceof ${e.expected}, obdrženo ${i}`:`Neplatný vstup: očekáváno ${t}, obdrženo ${i}`}case`invalid_value`:return e.values.length===1?`Neplatný vstup: očekáváno ${KK(e.values[0])}`:`Neplatná možnost: očekávána jedna z hodnot ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Hodnota je příliš velká: ${e.origin??`hodnota`} musí mít ${n}${e.maximum.toString()} ${r.unit??`prvků`}`:`Hodnota je příliš velká: ${e.origin??`hodnota`} musí být ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Hodnota je příliš malá: ${e.origin??`hodnota`} musí mít ${n}${e.minimum.toString()} ${r.unit??`prvků`}`:`Hodnota je příliš malá: ${e.origin??`hodnota`} musí být ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Neplatný řetězec: musí začínat na "${t.prefix}"`:t.format===`ends_with`?`Neplatný řetězec: musí končit na "${t.suffix}"`:t.format===`includes`?`Neplatný řetězec: musí obsahovat "${t.includes}"`:t.format===`regex`?`Neplatný řetězec: musí odpovídat vzoru ${t.pattern}`:`Neplatný formát ${n[t.format]??e.format}`}case`not_multiple_of`:return`Neplatné číslo: musí být násobkem ${e.divisor}`;case`unrecognized_keys`:return`Neznámé klíče: ${J(e.keys,`, `)}`;case`invalid_key`:return`Neplatný klíč v ${e.origin}`;case`invalid_union`:return`Neplatný vstup`;case`invalid_element`:return`Neplatná hodnota v ${e.origin}`;default:return`Neplatný vstup`}}}}));function iQ(){return{localeError:aQ()}}var aQ,oQ=o((()=>{Eq(),aQ=()=>{let e={string:{unit:`tegn`,verb:`havde`},file:{unit:`bytes`,verb:`havde`},array:{unit:`elementer`,verb:`indeholdt`},set:{unit:`elementer`,verb:`indeholdt`}};function t(t){return e[t]??null}let n={regex:`input`,email:`e-mailadresse`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO dato- og klokkeslæt`,date:`ISO-dato`,time:`ISO-klokkeslæt`,duration:`ISO-varighed`,ipv4:`IPv4-område`,ipv6:`IPv6-område`,cidrv4:`IPv4-spektrum`,cidrv6:`IPv6-spektrum`,base64:`base64-kodet streng`,base64url:`base64url-kodet streng`,json_string:`JSON-streng`,e164:`E.164-nummer`,jwt:`JWT`,template_literal:`input`},r={nan:`NaN`,string:`streng`,number:`tal`,boolean:`boolean`,array:`liste`,object:`objekt`,set:`sæt`,file:`fil`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=cq(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Ugyldigt input: forventede instanceof ${e.expected}, fik ${i}`:`Ugyldigt input: forventede ${t}, fik ${i}`}case`invalid_value`:return e.values.length===1?`Ugyldig værdi: forventede ${KK(e.values[0])}`:`Ugyldigt valg: forventede en af følgende ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,i=t(e.origin),a=r[e.origin]??e.origin;return i?`For stor: forventede ${a??`value`} ${i.verb} ${n} ${e.maximum.toString()} ${i.unit??`elementer`}`:`For stor: forventede ${a??`value`} havde ${n} ${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,i=t(e.origin),a=r[e.origin]??e.origin;return i?`For lille: forventede ${a} ${i.verb} ${n} ${e.minimum.toString()} ${i.unit}`:`For lille: forventede ${a} havde ${n} ${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Ugyldig streng: skal starte med "${t.prefix}"`:t.format===`ends_with`?`Ugyldig streng: skal ende med "${t.suffix}"`:t.format===`includes`?`Ugyldig streng: skal indeholde "${t.includes}"`:t.format===`regex`?`Ugyldig streng: skal matche mønsteret ${t.pattern}`:`Ugyldig ${n[t.format]??e.format}`}case`not_multiple_of`:return`Ugyldigt tal: skal være deleligt med ${e.divisor}`;case`unrecognized_keys`:return`${e.keys.length>1?`Ukendte nøgler`:`Ukendt nøgle`}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Ugyldig nøgle i ${e.origin}`;case`invalid_union`:return`Ugyldigt input: matcher ingen af de tilladte typer`;case`invalid_element`:return`Ugyldig værdi i ${e.origin}`;default:return`Ugyldigt input`}}}}));function sQ(){return{localeError:cQ()}}var cQ,lQ=o((()=>{Eq(),cQ=()=>{let e={string:{unit:`Zeichen`,verb:`zu haben`},file:{unit:`Bytes`,verb:`zu haben`},array:{unit:`Elemente`,verb:`zu haben`},set:{unit:`Elemente`,verb:`zu haben`}};function t(t){return e[t]??null}let n={regex:`Eingabe`,email:`E-Mail-Adresse`,url:`URL`,emoji:`Emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO-Datum und -Uhrzeit`,date:`ISO-Datum`,time:`ISO-Uhrzeit`,duration:`ISO-Dauer`,ipv4:`IPv4-Adresse`,ipv6:`IPv6-Adresse`,cidrv4:`IPv4-Bereich`,cidrv6:`IPv6-Bereich`,base64:`Base64-codierter String`,base64url:`Base64-URL-codierter String`,json_string:`JSON-String`,e164:`E.164-Nummer`,jwt:`JWT`,template_literal:`Eingabe`},r={nan:`NaN`,number:`Zahl`,array:`Array`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=cq(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Ungültige Eingabe: erwartet instanceof ${e.expected}, erhalten ${i}`:`Ungültige Eingabe: erwartet ${t}, erhalten ${i}`}case`invalid_value`:return e.values.length===1?`Ungültige Eingabe: erwartet ${KK(e.values[0])}`:`Ungültige Option: erwartet eine von ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Zu groß: erwartet, dass ${e.origin??`Wert`} ${n}${e.maximum.toString()} ${r.unit??`Elemente`} hat`:`Zu groß: erwartet, dass ${e.origin??`Wert`} ${n}${e.maximum.toString()} ist`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Zu klein: erwartet, dass ${e.origin} ${n}${e.minimum.toString()} ${r.unit} hat`:`Zu klein: erwartet, dass ${e.origin} ${n}${e.minimum.toString()} ist`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Ungültiger String: muss mit "${t.prefix}" beginnen`:t.format===`ends_with`?`Ungültiger String: muss mit "${t.suffix}" enden`:t.format===`includes`?`Ungültiger String: muss "${t.includes}" enthalten`:t.format===`regex`?`Ungültiger String: muss dem Muster ${t.pattern} entsprechen`:`Ungültig: ${n[t.format]??e.format}`}case`not_multiple_of`:return`Ungültige Zahl: muss ein Vielfaches von ${e.divisor} sein`;case`unrecognized_keys`:return`${e.keys.length>1?`Unbekannte Schlüssel`:`Unbekannter Schlüssel`}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Ungültiger Schlüssel in ${e.origin}`;case`invalid_union`:return`Ungültige Eingabe`;case`invalid_element`:return`Ungültiger Wert in ${e.origin}`;default:return`Ungültige Eingabe`}}}}));function uQ(){return{localeError:dQ()}}var dQ,fQ=o((()=>{Eq(),dQ=()=>{let e={string:{unit:`χαρακτήρες`,verb:`να έχει`},file:{unit:`bytes`,verb:`να έχει`},array:{unit:`στοιχεία`,verb:`να έχει`},set:{unit:`στοιχεία`,verb:`να έχει`},map:{unit:`καταχωρήσεις`,verb:`να έχει`}};function t(t){return e[t]??null}let n={regex:`είσοδος`,email:`διεύθυνση email`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO ημερομηνία και ώρα`,date:`ISO ημερομηνία`,time:`ISO ώρα`,duration:`ISO διάρκεια`,ipv4:`διεύθυνση IPv4`,ipv6:`διεύθυνση IPv6`,mac:`διεύθυνση MAC`,cidrv4:`εύρος IPv4`,cidrv6:`εύρος IPv6`,base64:`συμβολοσειρά κωδικοποιημένη σε base64`,base64url:`συμβολοσειρά κωδικοποιημένη σε base64url`,json_string:`συμβολοσειρά JSON`,e164:`αριθμός E.164`,jwt:`JWT`,template_literal:`είσοδος`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=cq(e.input),i=r[n]??n;return typeof e.expected==`string`&&/^[A-Z]/.test(e.expected)?`Μη έγκυρη είσοδος: αναμενόταν instanceof ${e.expected}, λήφθηκε ${i}`:`Μη έγκυρη είσοδος: αναμενόταν ${t}, λήφθηκε ${i}`}case`invalid_value`:return e.values.length===1?`Μη έγκυρη είσοδος: αναμενόταν ${KK(e.values[0])}`:`Μη έγκυρη επιλογή: αναμενόταν ένα από ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Πολύ μεγάλο: αναμενόταν ${e.origin??`τιμή`} να έχει ${n}${e.maximum.toString()} ${r.unit??`στοιχεία`}`:`Πολύ μεγάλο: αναμενόταν ${e.origin??`τιμή`} να είναι ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Πολύ μικρό: αναμενόταν ${e.origin} να έχει ${n}${e.minimum.toString()} ${r.unit}`:`Πολύ μικρό: αναμενόταν ${e.origin} να είναι ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Μη έγκυρη συμβολοσειρά: πρέπει να ξεκινά με "${t.prefix}"`:t.format===`ends_with`?`Μη έγκυρη συμβολοσειρά: πρέπει να τελειώνει με "${t.suffix}"`:t.format===`includes`?`Μη έγκυρη συμβολοσειρά: πρέπει να περιέχει "${t.includes}"`:t.format===`regex`?`Μη έγκυρη συμβολοσειρά: πρέπει να ταιριάζει με το μοτίβο ${t.pattern}`:`Μη έγκυρο: ${n[t.format]??e.format}`}case`not_multiple_of`:return`Μη έγκυρος αριθμός: πρέπει να είναι πολλαπλάσιο του ${e.divisor}`;case`unrecognized_keys`:return`Άγνωστ${e.keys.length>1?`α`:`ο`} κλειδ${e.keys.length>1?`ιά`:`ί`}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Μη έγκυρο κλειδί στο ${e.origin}`;case`invalid_union`:return`Μη έγκυρη είσοδος`;case`invalid_element`:return`Μη έγκυρη τιμή στο ${e.origin}`;default:return`Μη έγκυρη είσοδος`}}}}));function pQ(){return{localeError:mQ()}}var mQ,hQ=o((()=>{Eq(),mQ=()=>{let e={string:{unit:`characters`,verb:`to have`},file:{unit:`bytes`,verb:`to have`},array:{unit:`items`,verb:`to have`},set:{unit:`items`,verb:`to have`},map:{unit:`entries`,verb:`to have`}};function t(t){return e[t]??null}let n={regex:`input`,email:`email address`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO datetime`,date:`ISO date`,time:`ISO time`,duration:`ISO duration`,ipv4:`IPv4 address`,ipv6:`IPv6 address`,mac:`MAC address`,cidrv4:`IPv4 range`,cidrv6:`IPv6 range`,base64:`base64-encoded string`,base64url:`base64url-encoded string`,json_string:`JSON string`,e164:`E.164 number`,jwt:`JWT`,template_literal:`input`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=cq(e.input);return`Invalid input: expected ${t}, received ${r[n]??n}`}case`invalid_value`:return e.values.length===1?`Invalid input: expected ${KK(e.values[0])}`:`Invalid option: expected one of ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Too big: expected ${e.origin??`value`} to have ${n}${e.maximum.toString()} ${r.unit??`elements`}`:`Too big: expected ${e.origin??`value`} to be ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Too small: expected ${e.origin} to have ${n}${e.minimum.toString()} ${r.unit}`:`Too small: expected ${e.origin} to be ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Invalid string: must start with "${t.prefix}"`:t.format===`ends_with`?`Invalid string: must end with "${t.suffix}"`:t.format===`includes`?`Invalid string: must include "${t.includes}"`:t.format===`regex`?`Invalid string: must match pattern ${t.pattern}`:`Invalid ${n[t.format]??e.format}`}case`not_multiple_of`:return`Invalid number: must be a multiple of ${e.divisor}`;case`unrecognized_keys`:return`Unrecognized key${e.keys.length>1?`s`:``}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Invalid key in ${e.origin}`;case`invalid_union`:return e.options&&Array.isArray(e.options)&&e.options.length>0?`Invalid discriminator value. Expected ${e.options.map(e=>`'${e}'`).join(` | `)}`:`Invalid input`;case`invalid_element`:return`Invalid value in ${e.origin}`;default:return`Invalid input`}}}}));function gQ(){return{localeError:_Q()}}var _Q,vQ=o((()=>{Eq(),_Q=()=>{let e={string:{unit:`karaktrojn`,verb:`havi`},file:{unit:`bajtojn`,verb:`havi`},array:{unit:`elementojn`,verb:`havi`},set:{unit:`elementojn`,verb:`havi`}};function t(t){return e[t]??null}let n={regex:`enigo`,email:`retadreso`,url:`URL`,emoji:`emoĝio`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO-datotempo`,date:`ISO-dato`,time:`ISO-tempo`,duration:`ISO-daŭro`,ipv4:`IPv4-adreso`,ipv6:`IPv6-adreso`,cidrv4:`IPv4-rango`,cidrv6:`IPv6-rango`,base64:`64-ume kodita karaktraro`,base64url:`URL-64-ume kodita karaktraro`,json_string:`JSON-karaktraro`,e164:`E.164-nombro`,jwt:`JWT`,template_literal:`enigo`},r={nan:`NaN`,number:`nombro`,array:`tabelo`,null:`senvalora`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=cq(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Nevalida enigo: atendiĝis instanceof ${e.expected}, riceviĝis ${i}`:`Nevalida enigo: atendiĝis ${t}, riceviĝis ${i}`}case`invalid_value`:return e.values.length===1?`Nevalida enigo: atendiĝis ${KK(e.values[0])}`:`Nevalida opcio: atendiĝis unu el ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Tro granda: atendiĝis ke ${e.origin??`valoro`} havu ${n}${e.maximum.toString()} ${r.unit??`elementojn`}`:`Tro granda: atendiĝis ke ${e.origin??`valoro`} havu ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Tro malgranda: atendiĝis ke ${e.origin} havu ${n}${e.minimum.toString()} ${r.unit}`:`Tro malgranda: atendiĝis ke ${e.origin} estu ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Nevalida karaktraro: devas komenciĝi per "${t.prefix}"`:t.format===`ends_with`?`Nevalida karaktraro: devas finiĝi per "${t.suffix}"`:t.format===`includes`?`Nevalida karaktraro: devas inkluzivi "${t.includes}"`:t.format===`regex`?`Nevalida karaktraro: devas kongrui kun la modelo ${t.pattern}`:`Nevalida ${n[t.format]??e.format}`}case`not_multiple_of`:return`Nevalida nombro: devas esti oblo de ${e.divisor}`;case`unrecognized_keys`:return`Nekonata${e.keys.length>1?`j`:``} ŝlosilo${e.keys.length>1?`j`:``}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Nevalida ŝlosilo en ${e.origin}`;case`invalid_union`:return`Nevalida enigo`;case`invalid_element`:return`Nevalida valoro en ${e.origin}`;default:return`Nevalida enigo`}}}}));function yQ(){return{localeError:bQ()}}var bQ,xQ=o((()=>{Eq(),bQ=()=>{let e={string:{unit:`caracteres`,verb:`tener`},file:{unit:`bytes`,verb:`tener`},array:{unit:`elementos`,verb:`tener`},set:{unit:`elementos`,verb:`tener`}};function t(t){return e[t]??null}let n={regex:`entrada`,email:`dirección de correo electrónico`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`fecha y hora ISO`,date:`fecha ISO`,time:`hora ISO`,duration:`duración ISO`,ipv4:`dirección IPv4`,ipv6:`dirección IPv6`,cidrv4:`rango IPv4`,cidrv6:`rango IPv6`,base64:`cadena codificada en base64`,base64url:`URL codificada en base64`,json_string:`cadena JSON`,e164:`número E.164`,jwt:`JWT`,template_literal:`entrada`},r={nan:`NaN`,string:`texto`,number:`número`,boolean:`booleano`,array:`arreglo`,object:`objeto`,set:`conjunto`,file:`archivo`,date:`fecha`,bigint:`número grande`,symbol:`símbolo`,undefined:`indefinido`,null:`nulo`,function:`función`,map:`mapa`,record:`registro`,tuple:`tupla`,enum:`enumeración`,union:`unión`,literal:`literal`,promise:`promesa`,void:`vacío`,never:`nunca`,unknown:`desconocido`,any:`cualquiera`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=cq(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Entrada inválida: se esperaba instanceof ${e.expected}, recibido ${i}`:`Entrada inválida: se esperaba ${t}, recibido ${i}`}case`invalid_value`:return e.values.length===1?`Entrada inválida: se esperaba ${KK(e.values[0])}`:`Opción inválida: se esperaba una de ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,i=t(e.origin),a=r[e.origin]??e.origin;return i?`Demasiado grande: se esperaba que ${a??`valor`} tuviera ${n}${e.maximum.toString()} ${i.unit??`elementos`}`:`Demasiado grande: se esperaba que ${a??`valor`} fuera ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,i=t(e.origin),a=r[e.origin]??e.origin;return i?`Demasiado pequeño: se esperaba que ${a} tuviera ${n}${e.minimum.toString()} ${i.unit}`:`Demasiado pequeño: se esperaba que ${a} fuera ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Cadena inválida: debe comenzar con "${t.prefix}"`:t.format===`ends_with`?`Cadena inválida: debe terminar en "${t.suffix}"`:t.format===`includes`?`Cadena inválida: debe incluir "${t.includes}"`:t.format===`regex`?`Cadena inválida: debe coincidir con el patrón ${t.pattern}`:`Inválido ${n[t.format]??e.format}`}case`not_multiple_of`:return`Número inválido: debe ser múltiplo de ${e.divisor}`;case`unrecognized_keys`:return`Llave${e.keys.length>1?`s`:``} desconocida${e.keys.length>1?`s`:``}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Llave inválida en ${r[e.origin]??e.origin}`;case`invalid_union`:return`Entrada inválida`;case`invalid_element`:return`Valor inválido en ${r[e.origin]??e.origin}`;default:return`Entrada inválida`}}}}));function SQ(){return{localeError:CQ()}}var CQ,wQ=o((()=>{Eq(),CQ=()=>{let e={string:{unit:`کاراکتر`,verb:`داشته باشد`},file:{unit:`بایت`,verb:`داشته باشد`},array:{unit:`آیتم`,verb:`داشته باشد`},set:{unit:`آیتم`,verb:`داشته باشد`}};function t(t){return e[t]??null}let n={regex:`ورودی`,email:`آدرس ایمیل`,url:`URL`,emoji:`ایموجی`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`تاریخ و زمان ایزو`,date:`تاریخ ایزو`,time:`زمان ایزو`,duration:`مدت زمان ایزو`,ipv4:`IPv4 آدرس`,ipv6:`IPv6 آدرس`,cidrv4:`IPv4 دامنه`,cidrv6:`IPv6 دامنه`,base64:`base64-encoded رشته`,base64url:`base64url-encoded رشته`,json_string:`JSON رشته`,e164:`E.164 عدد`,jwt:`JWT`,template_literal:`ورودی`},r={nan:`NaN`,number:`عدد`,array:`آرایه`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=cq(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`ورودی نامعتبر: می‌بایست instanceof ${e.expected} می‌بود، ${i} دریافت شد`:`ورودی نامعتبر: می‌بایست ${t} می‌بود، ${i} دریافت شد`}case`invalid_value`:return e.values.length===1?`ورودی نامعتبر: می‌بایست ${KK(e.values[0])} می‌بود`:`گزینه نامعتبر: می‌بایست یکی از ${J(e.values,`|`)} می‌بود`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`خیلی بزرگ: ${e.origin??`مقدار`} باید ${n}${e.maximum.toString()} ${r.unit??`عنصر`} باشد`:`خیلی بزرگ: ${e.origin??`مقدار`} باید ${n}${e.maximum.toString()} باشد`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`خیلی کوچک: ${e.origin} باید ${n}${e.minimum.toString()} ${r.unit} باشد`:`خیلی کوچک: ${e.origin} باید ${n}${e.minimum.toString()} باشد`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`رشته نامعتبر: باید با "${t.prefix}" شروع شود`:t.format===`ends_with`?`رشته نامعتبر: باید با "${t.suffix}" تمام شود`:t.format===`includes`?`رشته نامعتبر: باید شامل "${t.includes}" باشد`:t.format===`regex`?`رشته نامعتبر: باید با الگوی ${t.pattern} مطابقت داشته باشد`:`${n[t.format]??e.format} نامعتبر`}case`not_multiple_of`:return`عدد نامعتبر: باید مضرب ${e.divisor} باشد`;case`unrecognized_keys`:return`کلید${e.keys.length>1?`های`:``} ناشناس: ${J(e.keys,`, `)}`;case`invalid_key`:return`کلید ناشناس در ${e.origin}`;case`invalid_union`:return`ورودی نامعتبر`;case`invalid_element`:return`مقدار نامعتبر در ${e.origin}`;default:return`ورودی نامعتبر`}}}}));function TQ(){return{localeError:EQ()}}var EQ,DQ=o((()=>{Eq(),EQ=()=>{let e={string:{unit:`merkkiä`,subject:`merkkijonon`},file:{unit:`tavua`,subject:`tiedoston`},array:{unit:`alkiota`,subject:`listan`},set:{unit:`alkiota`,subject:`joukon`},number:{unit:``,subject:`luvun`},bigint:{unit:``,subject:`suuren kokonaisluvun`},int:{unit:``,subject:`kokonaisluvun`},date:{unit:``,subject:`päivämäärän`}};function t(t){return e[t]??null}let n={regex:`säännöllinen lauseke`,email:`sähköpostiosoite`,url:`URL-osoite`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO-aikaleima`,date:`ISO-päivämäärä`,time:`ISO-aika`,duration:`ISO-kesto`,ipv4:`IPv4-osoite`,ipv6:`IPv6-osoite`,cidrv4:`IPv4-alue`,cidrv6:`IPv6-alue`,base64:`base64-koodattu merkkijono`,base64url:`base64url-koodattu merkkijono`,json_string:`JSON-merkkijono`,e164:`E.164-luku`,jwt:`JWT`,template_literal:`templaattimerkkijono`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=cq(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Virheellinen tyyppi: odotettiin instanceof ${e.expected}, oli ${i}`:`Virheellinen tyyppi: odotettiin ${t}, oli ${i}`}case`invalid_value`:return e.values.length===1?`Virheellinen syöte: täytyy olla ${KK(e.values[0])}`:`Virheellinen valinta: täytyy olla yksi seuraavista: ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Liian suuri: ${r.subject} täytyy olla ${n}${e.maximum.toString()} ${r.unit}`.trim():`Liian suuri: arvon täytyy olla ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Liian pieni: ${r.subject} täytyy olla ${n}${e.minimum.toString()} ${r.unit}`.trim():`Liian pieni: arvon täytyy olla ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Virheellinen syöte: täytyy alkaa "${t.prefix}"`:t.format===`ends_with`?`Virheellinen syöte: täytyy loppua "${t.suffix}"`:t.format===`includes`?`Virheellinen syöte: täytyy sisältää "${t.includes}"`:t.format===`regex`?`Virheellinen syöte: täytyy vastata säännöllistä lauseketta ${t.pattern}`:`Virheellinen ${n[t.format]??e.format}`}case`not_multiple_of`:return`Virheellinen luku: täytyy olla luvun ${e.divisor} monikerta`;case`unrecognized_keys`:return`${e.keys.length>1?`Tuntemattomat avaimet`:`Tuntematon avain`}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Virheellinen avain tietueessa`;case`invalid_union`:return`Virheellinen unioni`;case`invalid_element`:return`Virheellinen arvo joukossa`;default:return`Virheellinen syöte`}}}}));function OQ(){return{localeError:kQ()}}var kQ,AQ=o((()=>{Eq(),kQ=()=>{let e={string:{unit:`caractères`,verb:`avoir`},file:{unit:`octets`,verb:`avoir`},array:{unit:`éléments`,verb:`avoir`},set:{unit:`éléments`,verb:`avoir`}};function t(t){return e[t]??null}let n={regex:`entrée`,email:`adresse e-mail`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`date et heure ISO`,date:`date ISO`,time:`heure ISO`,duration:`durée ISO`,ipv4:`adresse IPv4`,ipv6:`adresse IPv6`,cidrv4:`plage IPv4`,cidrv6:`plage IPv6`,base64:`chaîne encodée en base64`,base64url:`chaîne encodée en base64url`,json_string:`chaîne JSON`,e164:`numéro E.164`,jwt:`JWT`,template_literal:`entrée`},r={string:`chaîne`,number:`nombre`,int:`entier`,boolean:`booléen`,bigint:`grand entier`,symbol:`symbole`,undefined:`indéfini`,null:`null`,never:`jamais`,void:`vide`,date:`date`,array:`tableau`,object:`objet`,tuple:`tuple`,record:`enregistrement`,map:`carte`,set:`ensemble`,file:`fichier`,nonoptional:`non-optionnel`,nan:`NaN`,function:`fonction`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=cq(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Entrée invalide : instanceof ${e.expected} attendu, ${i} reçu`:`Entrée invalide : ${t} attendu, ${i} reçu`}case`invalid_value`:return e.values.length===1?`Entrée invalide : ${KK(e.values[0])} attendu`:`Option invalide : une valeur parmi ${J(e.values,`|`)} attendue`;case`too_big`:{let n=e.inclusive?`<=`:`<`,i=t(e.origin);return i?`Trop grand : ${r[e.origin]??`valeur`} doit ${i.verb} ${n}${e.maximum.toString()} ${i.unit??`élément(s)`}`:`Trop grand : ${r[e.origin]??`valeur`} doit être ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,i=t(e.origin);return i?`Trop petit : ${r[e.origin]??`valeur`} doit ${i.verb} ${n}${e.minimum.toString()} ${i.unit}`:`Trop petit : ${r[e.origin]??`valeur`} doit être ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Chaîne invalide : doit commencer par "${t.prefix}"`:t.format===`ends_with`?`Chaîne invalide : doit se terminer par "${t.suffix}"`:t.format===`includes`?`Chaîne invalide : doit inclure "${t.includes}"`:t.format===`regex`?`Chaîne invalide : doit correspondre au modèle ${t.pattern}`:`${n[t.format]??e.format} invalide`}case`not_multiple_of`:return`Nombre invalide : doit être un multiple de ${e.divisor}`;case`unrecognized_keys`:return`Clé${e.keys.length>1?`s`:``} non reconnue${e.keys.length>1?`s`:``} : ${J(e.keys,`, `)}`;case`invalid_key`:return`Clé invalide dans ${e.origin}`;case`invalid_union`:return`Entrée invalide`;case`invalid_element`:return`Valeur invalide dans ${e.origin}`;default:return`Entrée invalide`}}}}));function jQ(){return{localeError:MQ()}}var MQ,NQ=o((()=>{Eq(),MQ=()=>{let e={string:{unit:`caractères`,verb:`avoir`},file:{unit:`octets`,verb:`avoir`},array:{unit:`éléments`,verb:`avoir`},set:{unit:`éléments`,verb:`avoir`}};function t(t){return e[t]??null}let n={regex:`entrée`,email:`adresse courriel`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`date-heure ISO`,date:`date ISO`,time:`heure ISO`,duration:`durée ISO`,ipv4:`adresse IPv4`,ipv6:`adresse IPv6`,cidrv4:`plage IPv4`,cidrv6:`plage IPv6`,base64:`chaîne encodée en base64`,base64url:`chaîne encodée en base64url`,json_string:`chaîne JSON`,e164:`numéro E.164`,jwt:`JWT`,template_literal:`entrée`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=cq(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Entrée invalide : attendu instanceof ${e.expected}, reçu ${i}`:`Entrée invalide : attendu ${t}, reçu ${i}`}case`invalid_value`:return e.values.length===1?`Entrée invalide : attendu ${KK(e.values[0])}`:`Option invalide : attendu l'une des valeurs suivantes ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`≤`:`<`,r=t(e.origin);return r?`Trop grand : attendu que ${e.origin??`la valeur`} ait ${n}${e.maximum.toString()} ${r.unit}`:`Trop grand : attendu que ${e.origin??`la valeur`} soit ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`≥`:`>`,r=t(e.origin);return r?`Trop petit : attendu que ${e.origin} ait ${n}${e.minimum.toString()} ${r.unit}`:`Trop petit : attendu que ${e.origin} soit ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Chaîne invalide : doit commencer par "${t.prefix}"`:t.format===`ends_with`?`Chaîne invalide : doit se terminer par "${t.suffix}"`:t.format===`includes`?`Chaîne invalide : doit inclure "${t.includes}"`:t.format===`regex`?`Chaîne invalide : doit correspondre au motif ${t.pattern}`:`${n[t.format]??e.format} invalide`}case`not_multiple_of`:return`Nombre invalide : doit être un multiple de ${e.divisor}`;case`unrecognized_keys`:return`Clé${e.keys.length>1?`s`:``} non reconnue${e.keys.length>1?`s`:``} : ${J(e.keys,`, `)}`;case`invalid_key`:return`Clé invalide dans ${e.origin}`;case`invalid_union`:return`Entrée invalide`;case`invalid_element`:return`Valeur invalide dans ${e.origin}`;default:return`Entrée invalide`}}}}));function PQ(){return{localeError:FQ()}}var FQ,IQ=o((()=>{Eq(),FQ=()=>{let e={string:{label:`מחרוזת`,gender:`f`},number:{label:`מספר`,gender:`m`},boolean:{label:`ערך בוליאני`,gender:`m`},bigint:{label:`BigInt`,gender:`m`},date:{label:`תאריך`,gender:`m`},array:{label:`מערך`,gender:`m`},object:{label:`אובייקט`,gender:`m`},null:{label:`ערך ריק (null)`,gender:`m`},undefined:{label:`ערך לא מוגדר (undefined)`,gender:`m`},symbol:{label:`סימבול (Symbol)`,gender:`m`},function:{label:`פונקציה`,gender:`f`},map:{label:`מפה (Map)`,gender:`f`},set:{label:`קבוצה (Set)`,gender:`f`},file:{label:`קובץ`,gender:`m`},promise:{label:`Promise`,gender:`m`},NaN:{label:`NaN`,gender:`m`},unknown:{label:`ערך לא ידוע`,gender:`m`},value:{label:`ערך`,gender:`m`}},t={string:{unit:`תווים`,shortLabel:`קצר`,longLabel:`ארוך`},file:{unit:`בייטים`,shortLabel:`קטן`,longLabel:`גדול`},array:{unit:`פריטים`,shortLabel:`קטן`,longLabel:`גדול`},set:{unit:`פריטים`,shortLabel:`קטן`,longLabel:`גדול`},number:{unit:``,shortLabel:`קטן`,longLabel:`גדול`}},n=t=>t?e[t]:void 0,r=t=>{let r=n(t);return r?r.label:t??e.unknown.label},i=e=>`ה${r(e)}`,a=e=>(n(e)?.gender??`m`)===`f`?`צריכה להיות`:`צריך להיות`,o=e=>e?t[e]??null:null,s={regex:{label:`קלט`,gender:`m`},email:{label:`כתובת אימייל`,gender:`f`},url:{label:`כתובת רשת`,gender:`f`},emoji:{label:`אימוג'י`,gender:`m`},uuid:{label:`UUID`,gender:`m`},nanoid:{label:`nanoid`,gender:`m`},guid:{label:`GUID`,gender:`m`},cuid:{label:`cuid`,gender:`m`},cuid2:{label:`cuid2`,gender:`m`},ulid:{label:`ULID`,gender:`m`},xid:{label:`XID`,gender:`m`},ksuid:{label:`KSUID`,gender:`m`},datetime:{label:`תאריך וזמן ISO`,gender:`m`},date:{label:`תאריך ISO`,gender:`m`},time:{label:`זמן ISO`,gender:`m`},duration:{label:`משך זמן ISO`,gender:`m`},ipv4:{label:`כתובת IPv4`,gender:`f`},ipv6:{label:`כתובת IPv6`,gender:`f`},cidrv4:{label:`טווח IPv4`,gender:`m`},cidrv6:{label:`טווח IPv6`,gender:`m`},base64:{label:`מחרוזת בבסיס 64`,gender:`f`},base64url:{label:`מחרוזת בבסיס 64 לכתובות רשת`,gender:`f`},json_string:{label:`מחרוזת JSON`,gender:`f`},e164:{label:`מספר E.164`,gender:`m`},jwt:{label:`JWT`,gender:`m`},ends_with:{label:`קלט`,gender:`m`},includes:{label:`קלט`,gender:`m`},lowercase:{label:`קלט`,gender:`m`},starts_with:{label:`קלט`,gender:`m`},uppercase:{label:`קלט`,gender:`m`}},c={nan:`NaN`};return t=>{switch(t.code){case`invalid_type`:{let n=t.expected,i=c[n??``]??r(n),a=cq(t.input),o=c[a]??e[a]?.label??a;return/^[A-Z]/.test(t.expected)?`קלט לא תקין: צריך להיות instanceof ${t.expected}, התקבל ${o}`:`קלט לא תקין: צריך להיות ${i}, התקבל ${o}`}case`invalid_value`:{if(t.values.length===1)return`ערך לא תקין: הערך חייב להיות ${KK(t.values[0])}`;let e=t.values.map(e=>KK(e));if(t.values.length===2)return`ערך לא תקין: האפשרויות המתאימות הן ${e[0]} או ${e[1]}`;let n=e[e.length-1];return`ערך לא תקין: האפשרויות המתאימות הן ${e.slice(0,-1).join(`, `)} או ${n}`}case`too_big`:{let e=o(t.origin),n=i(t.origin??`value`);if(t.origin===`string`)return`${e?.longLabel??`ארוך`} מדי: ${n} צריכה להכיל ${t.maximum.toString()} ${e?.unit??``} ${t.inclusive?`או פחות`:`לכל היותר`}`.trim();if(t.origin===`number`)return`גדול מדי: ${n} צריך להיות ${t.inclusive?`קטן או שווה ל-${t.maximum}`:`קטן מ-${t.maximum}`}`;if(t.origin===`array`||t.origin===`set`)return`גדול מדי: ${n} ${t.origin===`set`?`צריכה`:`צריך`} להכיל ${t.inclusive?`${t.maximum} ${e?.unit??``} או פחות`:`פחות מ-${t.maximum} ${e?.unit??``}`}`.trim();let r=t.inclusive?`<=`:`<`,s=a(t.origin??`value`);return e?.unit?`${e.longLabel} מדי: ${n} ${s} ${r}${t.maximum.toString()} ${e.unit}`:`${e?.longLabel??`גדול`} מדי: ${n} ${s} ${r}${t.maximum.toString()}`}case`too_small`:{let e=o(t.origin),n=i(t.origin??`value`);if(t.origin===`string`)return`${e?.shortLabel??`קצר`} מדי: ${n} צריכה להכיל ${t.minimum.toString()} ${e?.unit??``} ${t.inclusive?`או יותר`:`לפחות`}`.trim();if(t.origin===`number`)return`קטן מדי: ${n} צריך להיות ${t.inclusive?`גדול או שווה ל-${t.minimum}`:`גדול מ-${t.minimum}`}`;if(t.origin===`array`||t.origin===`set`){let r=t.origin===`set`?`צריכה`:`צריך`;return t.minimum===1&&t.inclusive?`קטן מדי: ${n} ${r} להכיל ${t.origin,`לפחות פריט אחד`}`:`קטן מדי: ${n} ${r} להכיל ${t.inclusive?`${t.minimum} ${e?.unit??``} או יותר`:`יותר מ-${t.minimum} ${e?.unit??``}`}`.trim()}let r=t.inclusive?`>=`:`>`,s=a(t.origin??`value`);return e?.unit?`${e.shortLabel} מדי: ${n} ${s} ${r}${t.minimum.toString()} ${e.unit}`:`${e?.shortLabel??`קטן`} מדי: ${n} ${s} ${r}${t.minimum.toString()}`}case`invalid_format`:{let e=t;if(e.format===`starts_with`)return`המחרוזת חייבת להתחיל ב "${e.prefix}"`;if(e.format===`ends_with`)return`המחרוזת חייבת להסתיים ב "${e.suffix}"`;if(e.format===`includes`)return`המחרוזת חייבת לכלול "${e.includes}"`;if(e.format===`regex`)return`המחרוזת חייבת להתאים לתבנית ${e.pattern}`;let n=s[e.format];return`${n?.label??e.format} לא ${(n?.gender??`m`)===`f`?`תקינה`:`תקין`}`}case`not_multiple_of`:return`מספר לא תקין: חייב להיות מכפלה של ${t.divisor}`;case`unrecognized_keys`:return`מפתח${t.keys.length>1?`ות`:``} לא מזוה${t.keys.length>1?`ים`:`ה`}: ${J(t.keys,`, `)}`;case`invalid_key`:return`שדה לא תקין באובייקט`;case`invalid_union`:return`קלט לא תקין`;case`invalid_element`:return`ערך לא תקין ב${i(t.origin??`array`)}`;default:return`קלט לא תקין`}}}}));function LQ(){return{localeError:RQ()}}var RQ,zQ=o((()=>{Eq(),RQ=()=>{let e={string:{unit:`znakova`,verb:`imati`},file:{unit:`bajtova`,verb:`imati`},array:{unit:`stavki`,verb:`imati`},set:{unit:`stavki`,verb:`imati`}};function t(t){return e[t]??null}let n={regex:`unos`,email:`email adresa`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO datum i vrijeme`,date:`ISO datum`,time:`ISO vrijeme`,duration:`ISO trajanje`,ipv4:`IPv4 adresa`,ipv6:`IPv6 adresa`,cidrv4:`IPv4 raspon`,cidrv6:`IPv6 raspon`,base64:`base64 kodirani tekst`,base64url:`base64url kodirani tekst`,json_string:`JSON tekst`,e164:`E.164 broj`,jwt:`JWT`,template_literal:`unos`},r={nan:`NaN`,string:`tekst`,number:`broj`,boolean:`boolean`,array:`niz`,object:`objekt`,set:`skup`,file:`datoteka`,date:`datum`,bigint:`bigint`,symbol:`simbol`,undefined:`undefined`,null:`null`,function:`funkcija`,map:`mapa`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=cq(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Neispravan unos: očekuje se instanceof ${e.expected}, a primljeno je ${i}`:`Neispravan unos: očekuje se ${t}, a primljeno je ${i}`}case`invalid_value`:return e.values.length===1?`Neispravna vrijednost: očekivano ${KK(e.values[0])}`:`Neispravna opcija: očekivano jedno od ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,i=t(e.origin),a=r[e.origin]??e.origin;return i?`Preveliko: očekivano da ${a??`vrijednost`} ima ${n}${e.maximum.toString()} ${i.unit??`elemenata`}`:`Preveliko: očekivano da ${a??`vrijednost`} bude ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,i=t(e.origin),a=r[e.origin]??e.origin;return i?`Premalo: očekivano da ${a} ima ${n}${e.minimum.toString()} ${i.unit}`:`Premalo: očekivano da ${a} bude ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Neispravan tekst: mora započinjati s "${t.prefix}"`:t.format===`ends_with`?`Neispravan tekst: mora završavati s "${t.suffix}"`:t.format===`includes`?`Neispravan tekst: mora sadržavati "${t.includes}"`:t.format===`regex`?`Neispravan tekst: mora odgovarati uzorku ${t.pattern}`:`Neispravna ${n[t.format]??e.format}`}case`not_multiple_of`:return`Neispravan broj: mora biti višekratnik od ${e.divisor}`;case`unrecognized_keys`:return`Neprepoznat${e.keys.length>1?`i ključevi`:` ključ`}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Neispravan ključ u ${r[e.origin]??e.origin}`;case`invalid_union`:return`Neispravan unos`;case`invalid_element`:return`Neispravna vrijednost u ${r[e.origin]??e.origin}`;default:return`Neispravan unos`}}}}));function BQ(){return{localeError:VQ()}}var VQ,HQ=o((()=>{Eq(),VQ=()=>{let e={string:{unit:`karakter`,verb:`legyen`},file:{unit:`byte`,verb:`legyen`},array:{unit:`elem`,verb:`legyen`},set:{unit:`elem`,verb:`legyen`}};function t(t){return e[t]??null}let n={regex:`bemenet`,email:`email cím`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO időbélyeg`,date:`ISO dátum`,time:`ISO idő`,duration:`ISO időintervallum`,ipv4:`IPv4 cím`,ipv6:`IPv6 cím`,cidrv4:`IPv4 tartomány`,cidrv6:`IPv6 tartomány`,base64:`base64-kódolt string`,base64url:`base64url-kódolt string`,json_string:`JSON string`,e164:`E.164 szám`,jwt:`JWT`,template_literal:`bemenet`},r={nan:`NaN`,number:`szám`,array:`tömb`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=cq(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Érvénytelen bemenet: a várt érték instanceof ${e.expected}, a kapott érték ${i}`:`Érvénytelen bemenet: a várt érték ${t}, a kapott érték ${i}`}case`invalid_value`:return e.values.length===1?`Érvénytelen bemenet: a várt érték ${KK(e.values[0])}`:`Érvénytelen opció: valamelyik érték várt ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Túl nagy: ${e.origin??`érték`} mérete túl nagy ${n}${e.maximum.toString()} ${r.unit??`elem`}`:`Túl nagy: a bemeneti érték ${e.origin??`érték`} túl nagy: ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Túl kicsi: a bemeneti érték ${e.origin} mérete túl kicsi ${n}${e.minimum.toString()} ${r.unit}`:`Túl kicsi: a bemeneti érték ${e.origin} túl kicsi ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Érvénytelen string: "${t.prefix}" értékkel kell kezdődnie`:t.format===`ends_with`?`Érvénytelen string: "${t.suffix}" értékkel kell végződnie`:t.format===`includes`?`Érvénytelen string: "${t.includes}" értéket kell tartalmaznia`:t.format===`regex`?`Érvénytelen string: ${t.pattern} mintának kell megfelelnie`:`Érvénytelen ${n[t.format]??e.format}`}case`not_multiple_of`:return`Érvénytelen szám: ${e.divisor} többszörösének kell lennie`;case`unrecognized_keys`:return`Ismeretlen kulcs${e.keys.length>1?`s`:``}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Érvénytelen kulcs ${e.origin}`;case`invalid_union`:return`Érvénytelen bemenet`;case`invalid_element`:return`Érvénytelen érték: ${e.origin}`;default:return`Érvénytelen bemenet`}}}}));function UQ(e,t,n){return Math.abs(e)===1?t:n}function WQ(e){if(!e)return``;let t=[`ա`,`ե`,`ը`,`ի`,`ո`,`ու`,`օ`],n=e[e.length-1];return e+(t.includes(n)?`ն`:`ը`)}function GQ(){return{localeError:KQ()}}var KQ,qQ=o((()=>{Eq(),KQ=()=>{let e={string:{unit:{one:`նշան`,many:`նշաններ`},verb:`ունենալ`},file:{unit:{one:`բայթ`,many:`բայթեր`},verb:`ունենալ`},array:{unit:{one:`տարր`,many:`տարրեր`},verb:`ունենալ`},set:{unit:{one:`տարր`,many:`տարրեր`},verb:`ունենալ`}};function t(t){return e[t]??null}let n={regex:`մուտք`,email:`էլ. հասցե`,url:`URL`,emoji:`էմոջի`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO ամսաթիվ և ժամ`,date:`ISO ամսաթիվ`,time:`ISO ժամ`,duration:`ISO տևողություն`,ipv4:`IPv4 հասցե`,ipv6:`IPv6 հասցե`,cidrv4:`IPv4 միջակայք`,cidrv6:`IPv6 միջակայք`,base64:`base64 ձևաչափով տող`,base64url:`base64url ձևաչափով տող`,json_string:`JSON տող`,e164:`E.164 համար`,jwt:`JWT`,template_literal:`մուտք`},r={nan:`NaN`,number:`թիվ`,array:`զանգված`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=cq(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Սխալ մուտքագրում․ սպասվում էր instanceof ${e.expected}, ստացվել է ${i}`:`Սխալ մուտքագրում․ սպասվում էր ${t}, ստացվել է ${i}`}case`invalid_value`:return e.values.length===1?`Սխալ մուտքագրում․ սպասվում էր ${KK(e.values[1])}`:`Սխալ տարբերակ․ սպասվում էր հետևյալներից մեկը՝ ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);if(r){let t=UQ(Number(e.maximum),r.unit.one,r.unit.many);return`Չափազանց մեծ արժեք․ սպասվում է, որ ${WQ(e.origin??`արժեք`)} կունենա ${n}${e.maximum.toString()} ${t}`}return`Չափազանց մեծ արժեք․ սպասվում է, որ ${WQ(e.origin??`արժեք`)} լինի ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);if(r){let t=UQ(Number(e.minimum),r.unit.one,r.unit.many);return`Չափազանց փոքր արժեք․ սպասվում է, որ ${WQ(e.origin)} կունենա ${n}${e.minimum.toString()} ${t}`}return`Չափազանց փոքր արժեք․ սպասվում է, որ ${WQ(e.origin)} լինի ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Սխալ տող․ պետք է սկսվի "${t.prefix}"-ով`:t.format===`ends_with`?`Սխալ տող․ պետք է ավարտվի "${t.suffix}"-ով`:t.format===`includes`?`Սխալ տող․ պետք է պարունակի "${t.includes}"`:t.format===`regex`?`Սխալ տող․ պետք է համապատասխանի ${t.pattern} ձևաչափին`:`Սխալ ${n[t.format]??e.format}`}case`not_multiple_of`:return`Սխալ թիվ․ պետք է բազմապատիկ լինի ${e.divisor}-ի`;case`unrecognized_keys`:return`Չճանաչված բանալի${e.keys.length>1?`ներ`:``}. ${J(e.keys,`, `)}`;case`invalid_key`:return`Սխալ բանալի ${WQ(e.origin)}-ում`;case`invalid_union`:return`Սխալ մուտքագրում`;case`invalid_element`:return`Սխալ արժեք ${WQ(e.origin)}-ում`;default:return`Սխալ մուտքագրում`}}}}));function JQ(){return{localeError:YQ()}}var YQ,XQ=o((()=>{Eq(),YQ=()=>{let e={string:{unit:`karakter`,verb:`memiliki`},file:{unit:`byte`,verb:`memiliki`},array:{unit:`item`,verb:`memiliki`},set:{unit:`item`,verb:`memiliki`}};function t(t){return e[t]??null}let n={regex:`input`,email:`alamat email`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`tanggal dan waktu format ISO`,date:`tanggal format ISO`,time:`jam format ISO`,duration:`durasi format ISO`,ipv4:`alamat IPv4`,ipv6:`alamat IPv6`,cidrv4:`rentang alamat IPv4`,cidrv6:`rentang alamat IPv6`,base64:`string dengan enkode base64`,base64url:`string dengan enkode base64url`,json_string:`string JSON`,e164:`angka E.164`,jwt:`JWT`,template_literal:`input`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=cq(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Input tidak valid: diharapkan instanceof ${e.expected}, diterima ${i}`:`Input tidak valid: diharapkan ${t}, diterima ${i}`}case`invalid_value`:return e.values.length===1?`Input tidak valid: diharapkan ${KK(e.values[0])}`:`Pilihan tidak valid: diharapkan salah satu dari ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Terlalu besar: diharapkan ${e.origin??`value`} memiliki ${n}${e.maximum.toString()} ${r.unit??`elemen`}`:`Terlalu besar: diharapkan ${e.origin??`value`} menjadi ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Terlalu kecil: diharapkan ${e.origin} memiliki ${n}${e.minimum.toString()} ${r.unit}`:`Terlalu kecil: diharapkan ${e.origin} menjadi ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`String tidak valid: harus dimulai dengan "${t.prefix}"`:t.format===`ends_with`?`String tidak valid: harus berakhir dengan "${t.suffix}"`:t.format===`includes`?`String tidak valid: harus menyertakan "${t.includes}"`:t.format===`regex`?`String tidak valid: harus sesuai pola ${t.pattern}`:`${n[t.format]??e.format} tidak valid`}case`not_multiple_of`:return`Angka tidak valid: harus kelipatan dari ${e.divisor}`;case`unrecognized_keys`:return`Kunci tidak dikenali ${e.keys.length>1?`s`:``}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Kunci tidak valid di ${e.origin}`;case`invalid_union`:return`Input tidak valid`;case`invalid_element`:return`Nilai tidak valid di ${e.origin}`;default:return`Input tidak valid`}}}}));function ZQ(){return{localeError:QQ()}}var QQ,$Q=o((()=>{Eq(),QQ=()=>{let e={string:{unit:`stafi`,verb:`að hafa`},file:{unit:`bæti`,verb:`að hafa`},array:{unit:`hluti`,verb:`að hafa`},set:{unit:`hluti`,verb:`að hafa`}};function t(t){return e[t]??null}let n={regex:`gildi`,email:`netfang`,url:`vefslóð`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO dagsetning og tími`,date:`ISO dagsetning`,time:`ISO tími`,duration:`ISO tímalengd`,ipv4:`IPv4 address`,ipv6:`IPv6 address`,cidrv4:`IPv4 range`,cidrv6:`IPv6 range`,base64:`base64-encoded strengur`,base64url:`base64url-encoded strengur`,json_string:`JSON strengur`,e164:`E.164 tölugildi`,jwt:`JWT`,template_literal:`gildi`},r={nan:`NaN`,number:`númer`,array:`fylki`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=cq(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Rangt gildi: Þú slóst inn ${i} þar sem á að vera instanceof ${e.expected}`:`Rangt gildi: Þú slóst inn ${i} þar sem á að vera ${t}`}case`invalid_value`:return e.values.length===1?`Rangt gildi: gert ráð fyrir ${KK(e.values[0])}`:`Ógilt val: má vera eitt af eftirfarandi ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Of stórt: gert er ráð fyrir að ${e.origin??`gildi`} hafi ${n}${e.maximum.toString()} ${r.unit??`hluti`}`:`Of stórt: gert er ráð fyrir að ${e.origin??`gildi`} sé ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Of lítið: gert er ráð fyrir að ${e.origin} hafi ${n}${e.minimum.toString()} ${r.unit}`:`Of lítið: gert er ráð fyrir að ${e.origin} sé ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Ógildur strengur: verður að byrja á "${t.prefix}"`:t.format===`ends_with`?`Ógildur strengur: verður að enda á "${t.suffix}"`:t.format===`includes`?`Ógildur strengur: verður að innihalda "${t.includes}"`:t.format===`regex`?`Ógildur strengur: verður að fylgja mynstri ${t.pattern}`:`Rangt ${n[t.format]??e.format}`}case`not_multiple_of`:return`Röng tala: verður að vera margfeldi af ${e.divisor}`;case`unrecognized_keys`:return`Óþekkt ${e.keys.length>1?`ir lyklar`:`ur lykill`}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Rangur lykill í ${e.origin}`;case`invalid_union`:return`Rangt gildi`;case`invalid_element`:return`Rangt gildi í ${e.origin}`;default:return`Rangt gildi`}}}}));function e$(){return{localeError:t$()}}var t$,n$=o((()=>{Eq(),t$=()=>{let e={string:{unit:`caratteri`,verb:`avere`},file:{unit:`byte`,verb:`avere`},array:{unit:`elementi`,verb:`avere`},set:{unit:`elementi`,verb:`avere`}};function t(t){return e[t]??null}let n={regex:`input`,email:`indirizzo email`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`data e ora ISO`,date:`data ISO`,time:`ora ISO`,duration:`durata ISO`,ipv4:`indirizzo IPv4`,ipv6:`indirizzo IPv6`,cidrv4:`intervallo IPv4`,cidrv6:`intervallo IPv6`,base64:`stringa codificata in base64`,base64url:`URL codificata in base64`,json_string:`stringa JSON`,e164:`numero E.164`,jwt:`JWT`,template_literal:`input`},r={nan:`NaN`,number:`numero`,array:`vettore`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=cq(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Input non valido: atteso instanceof ${e.expected}, ricevuto ${i}`:`Input non valido: atteso ${t}, ricevuto ${i}`}case`invalid_value`:return e.values.length===1?`Input non valido: atteso ${KK(e.values[0])}`:`Opzione non valida: atteso uno tra ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Troppo grande: ${e.origin??`valore`} deve avere ${n}${e.maximum.toString()} ${r.unit??`elementi`}`:`Troppo grande: ${e.origin??`valore`} deve essere ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Troppo piccolo: ${e.origin} deve avere ${n}${e.minimum.toString()} ${r.unit}`:`Troppo piccolo: ${e.origin} deve essere ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Stringa non valida: deve iniziare con "${t.prefix}"`:t.format===`ends_with`?`Stringa non valida: deve terminare con "${t.suffix}"`:t.format===`includes`?`Stringa non valida: deve includere "${t.includes}"`:t.format===`regex`?`Stringa non valida: deve corrispondere al pattern ${t.pattern}`:`Input non valido: ${n[t.format]??e.format}`}case`not_multiple_of`:return`Numero non valido: deve essere un multiplo di ${e.divisor}`;case`unrecognized_keys`:return`Chiav${e.keys.length>1?`i`:`e`} non riconosciut${e.keys.length>1?`e`:`a`}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Chiave non valida in ${e.origin}`;case`invalid_union`:return`Input non valido`;case`invalid_element`:return`Valore non valido in ${e.origin}`;default:return`Input non valido`}}}}));function r$(){return{localeError:i$()}}var i$,a$=o((()=>{Eq(),i$=()=>{let e={string:{unit:`文字`,verb:`である`},file:{unit:`バイト`,verb:`である`},array:{unit:`要素`,verb:`である`},set:{unit:`要素`,verb:`である`}};function t(t){return e[t]??null}let n={regex:`入力値`,email:`メールアドレス`,url:`URL`,emoji:`絵文字`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO日時`,date:`ISO日付`,time:`ISO時刻`,duration:`ISO期間`,ipv4:`IPv4アドレス`,ipv6:`IPv6アドレス`,cidrv4:`IPv4範囲`,cidrv6:`IPv6範囲`,base64:`base64エンコード文字列`,base64url:`base64urlエンコード文字列`,json_string:`JSON文字列`,e164:`E.164番号`,jwt:`JWT`,template_literal:`入力値`},r={nan:`NaN`,number:`数値`,array:`配列`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=cq(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`無効な入力: instanceof ${e.expected}が期待されましたが、${i}が入力されました`:`無効な入力: ${t}が期待されましたが、${i}が入力されました`}case`invalid_value`:return e.values.length===1?`無効な入力: ${KK(e.values[0])}が期待されました`:`無効な選択: ${J(e.values,`、`)}のいずれかである必要があります`;case`too_big`:{let n=e.inclusive?`以下である`:`より小さい`,r=t(e.origin);return r?`大きすぎる値: ${e.origin??`値`}は${e.maximum.toString()}${r.unit??`要素`}${n}必要があります`:`大きすぎる値: ${e.origin??`値`}は${e.maximum.toString()}${n}必要があります`}case`too_small`:{let n=e.inclusive?`以上である`:`より大きい`,r=t(e.origin);return r?`小さすぎる値: ${e.origin}は${e.minimum.toString()}${r.unit}${n}必要があります`:`小さすぎる値: ${e.origin}は${e.minimum.toString()}${n}必要があります`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`無効な文字列: "${t.prefix}"で始まる必要があります`:t.format===`ends_with`?`無効な文字列: "${t.suffix}"で終わる必要があります`:t.format===`includes`?`無効な文字列: "${t.includes}"を含む必要があります`:t.format===`regex`?`無効な文字列: パターン${t.pattern}に一致する必要があります`:`無効な${n[t.format]??e.format}`}case`not_multiple_of`:return`無効な数値: ${e.divisor}の倍数である必要があります`;case`unrecognized_keys`:return`認識されていないキー${e.keys.length>1?`群`:``}: ${J(e.keys,`、`)}`;case`invalid_key`:return`${e.origin}内の無効なキー`;case`invalid_union`:return`無効な入力`;case`invalid_element`:return`${e.origin}内の無効な値`;default:return`無効な入力`}}}}));function o$(){return{localeError:s$()}}var s$,c$=o((()=>{Eq(),s$=()=>{let e={string:{unit:`სიმბოლო`,verb:`უნდა შეიცავდეს`},file:{unit:`ბაიტი`,verb:`უნდა შეიცავდეს`},array:{unit:`ელემენტი`,verb:`უნდა შეიცავდეს`},set:{unit:`ელემენტი`,verb:`უნდა შეიცავდეს`}};function t(t){return e[t]??null}let n={regex:`შეყვანა`,email:`ელ-ფოსტის მისამართი`,url:`URL`,emoji:`ემოჯი`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`თარიღი-დრო`,date:`თარიღი`,time:`დრო`,duration:`ხანგრძლივობა`,ipv4:`IPv4 მისამართი`,ipv6:`IPv6 მისამართი`,cidrv4:`IPv4 დიაპაზონი`,cidrv6:`IPv6 დიაპაზონი`,base64:`base64-კოდირებული ველი`,base64url:`base64url-კოდირებული ველი`,json_string:`JSON ველი`,e164:`E.164 ნომერი`,jwt:`JWT`,template_literal:`შეყვანა`},r={nan:`NaN`,number:`რიცხვი`,string:`ველი`,boolean:`ბულეანი`,function:`ფუნქცია`,array:`მასივი`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=cq(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`არასწორი შეყვანა: მოსალოდნელი instanceof ${e.expected}, მიღებული ${i}`:`არასწორი შეყვანა: მოსალოდნელი ${t}, მიღებული ${i}`}case`invalid_value`:return e.values.length===1?`არასწორი შეყვანა: მოსალოდნელი ${KK(e.values[0])}`:`არასწორი ვარიანტი: მოსალოდნელია ერთ-ერთი ${J(e.values,`|`)}-დან`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`ზედმეტად დიდი: მოსალოდნელი ${e.origin??`მნიშვნელობა`} ${r.verb} ${n}${e.maximum.toString()} ${r.unit}`:`ზედმეტად დიდი: მოსალოდნელი ${e.origin??`მნიშვნელობა`} იყოს ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`ზედმეტად პატარა: მოსალოდნელი ${e.origin} ${r.verb} ${n}${e.minimum.toString()} ${r.unit}`:`ზედმეტად პატარა: მოსალოდნელი ${e.origin} იყოს ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`არასწორი ველი: უნდა იწყებოდეს "${t.prefix}"-ით`:t.format===`ends_with`?`არასწორი ველი: უნდა მთავრდებოდეს "${t.suffix}"-ით`:t.format===`includes`?`არასწორი ველი: უნდა შეიცავდეს "${t.includes}"-ს`:t.format===`regex`?`არასწორი ველი: უნდა შეესაბამებოდეს შაბლონს ${t.pattern}`:`არასწორი ${n[t.format]??e.format}`}case`not_multiple_of`:return`არასწორი რიცხვი: უნდა იყოს ${e.divisor}-ის ჯერადი`;case`unrecognized_keys`:return`უცნობი გასაღებ${e.keys.length>1?`ები`:`ი`}: ${J(e.keys,`, `)}`;case`invalid_key`:return`არასწორი გასაღები ${e.origin}-ში`;case`invalid_union`:return`არასწორი შეყვანა`;case`invalid_element`:return`არასწორი მნიშვნელობა ${e.origin}-ში`;default:return`არასწორი შეყვანა`}}}}));function l$(){return{localeError:u$()}}var u$,d$=o((()=>{Eq(),u$=()=>{let e={string:{unit:`តួអក្សរ`,verb:`គួរមាន`},file:{unit:`បៃ`,verb:`គួរមាន`},array:{unit:`ធាតុ`,verb:`គួរមាន`},set:{unit:`ធាតុ`,verb:`គួរមាន`}};function t(t){return e[t]??null}let n={regex:`ទិន្នន័យបញ្ចូល`,email:`អាសយដ្ឋានអ៊ីមែល`,url:`URL`,emoji:`សញ្ញាអារម្មណ៍`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`កាលបរិច្ឆេទ និងម៉ោង ISO`,date:`កាលបរិច្ឆេទ ISO`,time:`ម៉ោង ISO`,duration:`រយៈពេល ISO`,ipv4:`អាសយដ្ឋាន IPv4`,ipv6:`អាសយដ្ឋាន IPv6`,cidrv4:`ដែនអាសយដ្ឋាន IPv4`,cidrv6:`ដែនអាសយដ្ឋាន IPv6`,base64:`ខ្សែអក្សរអ៊ិកូដ base64`,base64url:`ខ្សែអក្សរអ៊ិកូដ base64url`,json_string:`ខ្សែអក្សរ JSON`,e164:`លេខ E.164`,jwt:`JWT`,template_literal:`ទិន្នន័យបញ្ចូល`},r={nan:`NaN`,number:`លេខ`,array:`អារេ (Array)`,null:`គ្មានតម្លៃ (null)`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=cq(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ instanceof ${e.expected} ប៉ុន្តែទទួលបាន ${i}`:`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ ${t} ប៉ុន្តែទទួលបាន ${i}`}case`invalid_value`:return e.values.length===1?`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ ${KK(e.values[0])}`:`ជម្រើសមិនត្រឹមត្រូវ៖ ត្រូវជាមួយក្នុងចំណោម ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`ធំពេក៖ ត្រូវការ ${e.origin??`តម្លៃ`} ${n} ${e.maximum.toString()} ${r.unit??`ធាតុ`}`:`ធំពេក៖ ត្រូវការ ${e.origin??`តម្លៃ`} ${n} ${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`តូចពេក៖ ត្រូវការ ${e.origin} ${n} ${e.minimum.toString()} ${r.unit}`:`តូចពេក៖ ត្រូវការ ${e.origin} ${n} ${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវចាប់ផ្តើមដោយ "${t.prefix}"`:t.format===`ends_with`?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវបញ្ចប់ដោយ "${t.suffix}"`:t.format===`includes`?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវមាន "${t.includes}"`:t.format===`regex`?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវតែផ្គូផ្គងនឹងទម្រង់ដែលបានកំណត់ ${t.pattern}`:`មិនត្រឹមត្រូវ៖ ${n[t.format]??e.format}`}case`not_multiple_of`:return`លេខមិនត្រឹមត្រូវ៖ ត្រូវតែជាពហុគុណនៃ ${e.divisor}`;case`unrecognized_keys`:return`រកឃើញសោមិនស្គាល់៖ ${J(e.keys,`, `)}`;case`invalid_key`:return`សោមិនត្រឹមត្រូវនៅក្នុង ${e.origin}`;case`invalid_union`:return`ទិន្នន័យមិនត្រឹមត្រូវ`;case`invalid_element`:return`ទិន្នន័យមិនត្រឹមត្រូវនៅក្នុង ${e.origin}`;default:return`ទិន្នន័យមិនត្រឹមត្រូវ`}}}}));function f$(){return l$()}var p$=o((()=>{d$()}));function m$(){return{localeError:h$()}}var h$,g$=o((()=>{Eq(),h$=()=>{let e={string:{unit:`문자`,verb:`to have`},file:{unit:`바이트`,verb:`to have`},array:{unit:`개`,verb:`to have`},set:{unit:`개`,verb:`to have`}};function t(t){return e[t]??null}let n={regex:`입력`,email:`이메일 주소`,url:`URL`,emoji:`이모지`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO 날짜시간`,date:`ISO 날짜`,time:`ISO 시간`,duration:`ISO 기간`,ipv4:`IPv4 주소`,ipv6:`IPv6 주소`,cidrv4:`IPv4 범위`,cidrv6:`IPv6 범위`,base64:`base64 인코딩 문자열`,base64url:`base64url 인코딩 문자열`,json_string:`JSON 문자열`,e164:`E.164 번호`,jwt:`JWT`,template_literal:`입력`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=cq(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`잘못된 입력: 예상 타입은 instanceof ${e.expected}, 받은 타입은 ${i}입니다`:`잘못된 입력: 예상 타입은 ${t}, 받은 타입은 ${i}입니다`}case`invalid_value`:return e.values.length===1?`잘못된 입력: 값은 ${KK(e.values[0])} 이어야 합니다`:`잘못된 옵션: ${J(e.values,`또는 `)} 중 하나여야 합니다`;case`too_big`:{let n=e.inclusive?`이하`:`미만`,r=n===`미만`?`이어야 합니다`:`여야 합니다`,i=t(e.origin),a=i?.unit??`요소`;return i?`${e.origin??`값`}이 너무 큽니다: ${e.maximum.toString()}${a} ${n}${r}`:`${e.origin??`값`}이 너무 큽니다: ${e.maximum.toString()} ${n}${r}`}case`too_small`:{let n=e.inclusive?`이상`:`초과`,r=n===`이상`?`이어야 합니다`:`여야 합니다`,i=t(e.origin),a=i?.unit??`요소`;return i?`${e.origin??`값`}이 너무 작습니다: ${e.minimum.toString()}${a} ${n}${r}`:`${e.origin??`값`}이 너무 작습니다: ${e.minimum.toString()} ${n}${r}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`잘못된 문자열: "${t.prefix}"(으)로 시작해야 합니다`:t.format===`ends_with`?`잘못된 문자열: "${t.suffix}"(으)로 끝나야 합니다`:t.format===`includes`?`잘못된 문자열: "${t.includes}"을(를) 포함해야 합니다`:t.format===`regex`?`잘못된 문자열: 정규식 ${t.pattern} 패턴과 일치해야 합니다`:`잘못된 ${n[t.format]??e.format}`}case`not_multiple_of`:return`잘못된 숫자: ${e.divisor}의 배수여야 합니다`;case`unrecognized_keys`:return`인식할 수 없는 키: ${J(e.keys,`, `)}`;case`invalid_key`:return`잘못된 키: ${e.origin}`;case`invalid_union`:return`잘못된 입력`;case`invalid_element`:return`잘못된 값: ${e.origin}`;default:return`잘못된 입력`}}}}));function _$(e){let t=Math.abs(e),n=t%10,r=t%100;return r>=11&&r<=19||n===0?`many`:n===1?`one`:`few`}function v$(){return{localeError:b$()}}var y$,b$,x$=o((()=>{Eq(),y$=e=>e.charAt(0).toUpperCase()+e.slice(1),b$=()=>{let e={string:{unit:{one:`simbolis`,few:`simboliai`,many:`simbolių`},verb:{smaller:{inclusive:`turi būti ne ilgesnė kaip`,notInclusive:`turi būti trumpesnė kaip`},bigger:{inclusive:`turi būti ne trumpesnė kaip`,notInclusive:`turi būti ilgesnė kaip`}}},file:{unit:{one:`baitas`,few:`baitai`,many:`baitų`},verb:{smaller:{inclusive:`turi būti ne didesnis kaip`,notInclusive:`turi būti mažesnis kaip`},bigger:{inclusive:`turi būti ne mažesnis kaip`,notInclusive:`turi būti didesnis kaip`}}},array:{unit:{one:`elementą`,few:`elementus`,many:`elementų`},verb:{smaller:{inclusive:`turi turėti ne daugiau kaip`,notInclusive:`turi turėti mažiau kaip`},bigger:{inclusive:`turi turėti ne mažiau kaip`,notInclusive:`turi turėti daugiau kaip`}}},set:{unit:{one:`elementą`,few:`elementus`,many:`elementų`},verb:{smaller:{inclusive:`turi turėti ne daugiau kaip`,notInclusive:`turi turėti mažiau kaip`},bigger:{inclusive:`turi turėti ne mažiau kaip`,notInclusive:`turi turėti daugiau kaip`}}}};function t(t,n,r,i){let a=e[t]??null;return a===null?a:{unit:a.unit[n],verb:a.verb[i][r?`inclusive`:`notInclusive`]}}let n={regex:`įvestis`,email:`el. pašto adresas`,url:`URL`,emoji:`jaustukas`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO data ir laikas`,date:`ISO data`,time:`ISO laikas`,duration:`ISO trukmė`,ipv4:`IPv4 adresas`,ipv6:`IPv6 adresas`,cidrv4:`IPv4 tinklo prefiksas (CIDR)`,cidrv6:`IPv6 tinklo prefiksas (CIDR)`,base64:`base64 užkoduota eilutė`,base64url:`base64url užkoduota eilutė`,json_string:`JSON eilutė`,e164:`E.164 numeris`,jwt:`JWT`,template_literal:`įvestis`},r={nan:`NaN`,number:`skaičius`,bigint:`sveikasis skaičius`,string:`eilutė`,boolean:`loginė reikšmė`,undefined:`neapibrėžta reikšmė`,function:`funkcija`,symbol:`simbolis`,array:`masyvas`,object:`objektas`,null:`nulinė reikšmė`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=cq(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Gautas tipas ${i}, o tikėtasi - instanceof ${e.expected}`:`Gautas tipas ${i}, o tikėtasi - ${t}`}case`invalid_value`:return e.values.length===1?`Privalo būti ${KK(e.values[0])}`:`Privalo būti vienas iš ${J(e.values,`|`)} pasirinkimų`;case`too_big`:{let n=r[e.origin]??e.origin,i=t(e.origin,_$(Number(e.maximum)),e.inclusive??!1,`smaller`);if(i?.verb)return`${y$(n??e.origin??`reikšmė`)} ${i.verb} ${e.maximum.toString()} ${i.unit??`elementų`}`;let a=e.inclusive?`ne didesnis kaip`:`mažesnis kaip`;return`${y$(n??e.origin??`reikšmė`)} turi būti ${a} ${e.maximum.toString()} ${i?.unit}`}case`too_small`:{let n=r[e.origin]??e.origin,i=t(e.origin,_$(Number(e.minimum)),e.inclusive??!1,`bigger`);if(i?.verb)return`${y$(n??e.origin??`reikšmė`)} ${i.verb} ${e.minimum.toString()} ${i.unit??`elementų`}`;let a=e.inclusive?`ne mažesnis kaip`:`didesnis kaip`;return`${y$(n??e.origin??`reikšmė`)} turi būti ${a} ${e.minimum.toString()} ${i?.unit}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Eilutė privalo prasidėti "${t.prefix}"`:t.format===`ends_with`?`Eilutė privalo pasibaigti "${t.suffix}"`:t.format===`includes`?`Eilutė privalo įtraukti "${t.includes}"`:t.format===`regex`?`Eilutė privalo atitikti ${t.pattern}`:`Neteisingas ${n[t.format]??e.format}`}case`not_multiple_of`:return`Skaičius privalo būti ${e.divisor} kartotinis.`;case`unrecognized_keys`:return`Neatpažint${e.keys.length>1?`i`:`as`} rakt${e.keys.length>1?`ai`:`as`}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Rastas klaidingas raktas`;case`invalid_union`:return`Klaidinga įvestis`;case`invalid_element`:{let t=r[e.origin]??e.origin;return`${y$(t??e.origin??`reikšmė`)} turi klaidingą įvestį`}default:return`Klaidinga įvestis`}}}}));function S$(){return{localeError:C$()}}var C$,w$=o((()=>{Eq(),C$=()=>{let e={string:{unit:`знаци`,verb:`да имаат`},file:{unit:`бајти`,verb:`да имаат`},array:{unit:`ставки`,verb:`да имаат`},set:{unit:`ставки`,verb:`да имаат`}};function t(t){return e[t]??null}let n={regex:`внес`,email:`адреса на е-пошта`,url:`URL`,emoji:`емоџи`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO датум и време`,date:`ISO датум`,time:`ISO време`,duration:`ISO времетраење`,ipv4:`IPv4 адреса`,ipv6:`IPv6 адреса`,cidrv4:`IPv4 опсег`,cidrv6:`IPv6 опсег`,base64:`base64-енкодирана низа`,base64url:`base64url-енкодирана низа`,json_string:`JSON низа`,e164:`E.164 број`,jwt:`JWT`,template_literal:`внес`},r={nan:`NaN`,number:`број`,array:`низа`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=cq(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Грешен внес: се очекува instanceof ${e.expected}, примено ${i}`:`Грешен внес: се очекува ${t}, примено ${i}`}case`invalid_value`:return e.values.length===1?`Invalid input: expected ${KK(e.values[0])}`:`Грешана опција: се очекува една ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Премногу голем: се очекува ${e.origin??`вредноста`} да има ${n}${e.maximum.toString()} ${r.unit??`елементи`}`:`Премногу голем: се очекува ${e.origin??`вредноста`} да биде ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Премногу мал: се очекува ${e.origin} да има ${n}${e.minimum.toString()} ${r.unit}`:`Премногу мал: се очекува ${e.origin} да биде ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Неважечка низа: мора да започнува со "${t.prefix}"`:t.format===`ends_with`?`Неважечка низа: мора да завршува со "${t.suffix}"`:t.format===`includes`?`Неважечка низа: мора да вклучува "${t.includes}"`:t.format===`regex`?`Неважечка низа: мора да одгоара на патернот ${t.pattern}`:`Invalid ${n[t.format]??e.format}`}case`not_multiple_of`:return`Грешен број: мора да биде делив со ${e.divisor}`;case`unrecognized_keys`:return`${e.keys.length>1?`Непрепознаени клучеви`:`Непрепознаен клуч`}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Грешен клуч во ${e.origin}`;case`invalid_union`:return`Грешен внес`;case`invalid_element`:return`Грешна вредност во ${e.origin}`;default:return`Грешен внес`}}}}));function T$(){return{localeError:E$()}}var E$,D$=o((()=>{Eq(),E$=()=>{let e={string:{unit:`aksara`,verb:`mempunyai`},file:{unit:`bait`,verb:`mempunyai`},array:{unit:`elemen`,verb:`mempunyai`},set:{unit:`elemen`,verb:`mempunyai`}};function t(t){return e[t]??null}let n={regex:`input`,email:`alamat e-mel`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`tarikh masa ISO`,date:`tarikh ISO`,time:`masa ISO`,duration:`tempoh ISO`,ipv4:`alamat IPv4`,ipv6:`alamat IPv6`,cidrv4:`julat IPv4`,cidrv6:`julat IPv6`,base64:`string dikodkan base64`,base64url:`string dikodkan base64url`,json_string:`string JSON`,e164:`nombor E.164`,jwt:`JWT`,template_literal:`input`},r={nan:`NaN`,number:`nombor`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=cq(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Input tidak sah: dijangka instanceof ${e.expected}, diterima ${i}`:`Input tidak sah: dijangka ${t}, diterima ${i}`}case`invalid_value`:return e.values.length===1?`Input tidak sah: dijangka ${KK(e.values[0])}`:`Pilihan tidak sah: dijangka salah satu daripada ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Terlalu besar: dijangka ${e.origin??`nilai`} ${r.verb} ${n}${e.maximum.toString()} ${r.unit??`elemen`}`:`Terlalu besar: dijangka ${e.origin??`nilai`} adalah ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Terlalu kecil: dijangka ${e.origin} ${r.verb} ${n}${e.minimum.toString()} ${r.unit}`:`Terlalu kecil: dijangka ${e.origin} adalah ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`String tidak sah: mesti bermula dengan "${t.prefix}"`:t.format===`ends_with`?`String tidak sah: mesti berakhir dengan "${t.suffix}"`:t.format===`includes`?`String tidak sah: mesti mengandungi "${t.includes}"`:t.format===`regex`?`String tidak sah: mesti sepadan dengan corak ${t.pattern}`:`${n[t.format]??e.format} tidak sah`}case`not_multiple_of`:return`Nombor tidak sah: perlu gandaan ${e.divisor}`;case`unrecognized_keys`:return`Kunci tidak dikenali: ${J(e.keys,`, `)}`;case`invalid_key`:return`Kunci tidak sah dalam ${e.origin}`;case`invalid_union`:return`Input tidak sah`;case`invalid_element`:return`Nilai tidak sah dalam ${e.origin}`;default:return`Input tidak sah`}}}}));function O$(){return{localeError:k$()}}var k$,A$=o((()=>{Eq(),k$=()=>{let e={string:{unit:`tekens`,verb:`heeft`},file:{unit:`bytes`,verb:`heeft`},array:{unit:`elementen`,verb:`heeft`},set:{unit:`elementen`,verb:`heeft`}};function t(t){return e[t]??null}let n={regex:`invoer`,email:`emailadres`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO datum en tijd`,date:`ISO datum`,time:`ISO tijd`,duration:`ISO duur`,ipv4:`IPv4-adres`,ipv6:`IPv6-adres`,cidrv4:`IPv4-bereik`,cidrv6:`IPv6-bereik`,base64:`base64-gecodeerde tekst`,base64url:`base64 URL-gecodeerde tekst`,json_string:`JSON string`,e164:`E.164-nummer`,jwt:`JWT`,template_literal:`invoer`},r={nan:`NaN`,number:`getal`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=cq(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Ongeldige invoer: verwacht instanceof ${e.expected}, ontving ${i}`:`Ongeldige invoer: verwacht ${t}, ontving ${i}`}case`invalid_value`:return e.values.length===1?`Ongeldige invoer: verwacht ${KK(e.values[0])}`:`Ongeldige optie: verwacht één van ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin),i=e.origin===`date`?`laat`:e.origin===`string`?`lang`:`groot`;return r?`Te ${i}: verwacht dat ${e.origin??`waarde`} ${n}${e.maximum.toString()} ${r.unit??`elementen`} ${r.verb}`:`Te ${i}: verwacht dat ${e.origin??`waarde`} ${n}${e.maximum.toString()} is`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin),i=e.origin===`date`?`vroeg`:e.origin===`string`?`kort`:`klein`;return r?`Te ${i}: verwacht dat ${e.origin} ${n}${e.minimum.toString()} ${r.unit} ${r.verb}`:`Te ${i}: verwacht dat ${e.origin} ${n}${e.minimum.toString()} is`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Ongeldige tekst: moet met "${t.prefix}" beginnen`:t.format===`ends_with`?`Ongeldige tekst: moet op "${t.suffix}" eindigen`:t.format===`includes`?`Ongeldige tekst: moet "${t.includes}" bevatten`:t.format===`regex`?`Ongeldige tekst: moet overeenkomen met patroon ${t.pattern}`:`Ongeldig: ${n[t.format]??e.format}`}case`not_multiple_of`:return`Ongeldig getal: moet een veelvoud van ${e.divisor} zijn`;case`unrecognized_keys`:return`Onbekende key${e.keys.length>1?`s`:``}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Ongeldige key in ${e.origin}`;case`invalid_union`:return`Ongeldige invoer`;case`invalid_element`:return`Ongeldige waarde in ${e.origin}`;default:return`Ongeldige invoer`}}}}));function j$(){return{localeError:M$()}}var M$,N$=o((()=>{Eq(),M$=()=>{let e={string:{unit:`tegn`,verb:`å ha`},file:{unit:`bytes`,verb:`å ha`},array:{unit:`elementer`,verb:`å inneholde`},set:{unit:`elementer`,verb:`å inneholde`}};function t(t){return e[t]??null}let n={regex:`input`,email:`e-postadresse`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO dato- og klokkeslett`,date:`ISO-dato`,time:`ISO-klokkeslett`,duration:`ISO-varighet`,ipv4:`IPv4-område`,ipv6:`IPv6-område`,cidrv4:`IPv4-spekter`,cidrv6:`IPv6-spekter`,base64:`base64-enkodet streng`,base64url:`base64url-enkodet streng`,json_string:`JSON-streng`,e164:`E.164-nummer`,jwt:`JWT`,template_literal:`input`},r={nan:`NaN`,number:`tall`,array:`liste`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=cq(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Ugyldig input: forventet instanceof ${e.expected}, fikk ${i}`:`Ugyldig input: forventet ${t}, fikk ${i}`}case`invalid_value`:return e.values.length===1?`Ugyldig verdi: forventet ${KK(e.values[0])}`:`Ugyldig valg: forventet en av ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`For stor(t): forventet ${e.origin??`value`} til å ha ${n}${e.maximum.toString()} ${r.unit??`elementer`}`:`For stor(t): forventet ${e.origin??`value`} til å ha ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`For lite(n): forventet ${e.origin} til å ha ${n}${e.minimum.toString()} ${r.unit}`:`For lite(n): forventet ${e.origin} til å ha ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Ugyldig streng: må starte med "${t.prefix}"`:t.format===`ends_with`?`Ugyldig streng: må ende med "${t.suffix}"`:t.format===`includes`?`Ugyldig streng: må inneholde "${t.includes}"`:t.format===`regex`?`Ugyldig streng: må matche mønsteret ${t.pattern}`:`Ugyldig ${n[t.format]??e.format}`}case`not_multiple_of`:return`Ugyldig tall: må være et multiplum av ${e.divisor}`;case`unrecognized_keys`:return`${e.keys.length>1?`Ukjente nøkler`:`Ukjent nøkkel`}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Ugyldig nøkkel i ${e.origin}`;case`invalid_union`:return`Ugyldig input`;case`invalid_element`:return`Ugyldig verdi i ${e.origin}`;default:return`Ugyldig input`}}}}));function P$(){return{localeError:F$()}}var F$,I$=o((()=>{Eq(),F$=()=>{let e={string:{unit:`harf`,verb:`olmalıdır`},file:{unit:`bayt`,verb:`olmalıdır`},array:{unit:`unsur`,verb:`olmalıdır`},set:{unit:`unsur`,verb:`olmalıdır`}};function t(t){return e[t]??null}let n={regex:`giren`,email:`epostagâh`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO hengâmı`,date:`ISO tarihi`,time:`ISO zamanı`,duration:`ISO müddeti`,ipv4:`IPv4 nişânı`,ipv6:`IPv6 nişânı`,cidrv4:`IPv4 menzili`,cidrv6:`IPv6 menzili`,base64:`base64-şifreli metin`,base64url:`base64url-şifreli metin`,json_string:`JSON metin`,e164:`E.164 sayısı`,jwt:`JWT`,template_literal:`giren`},r={nan:`NaN`,number:`numara`,array:`saf`,null:`gayb`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=cq(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Fâsit giren: umulan instanceof ${e.expected}, alınan ${i}`:`Fâsit giren: umulan ${t}, alınan ${i}`}case`invalid_value`:return e.values.length===1?`Fâsit giren: umulan ${KK(e.values[0])}`:`Fâsit tercih: mûteberler ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Fazla büyük: ${e.origin??`value`}, ${n}${e.maximum.toString()} ${r.unit??`elements`} sahip olmalıydı.`:`Fazla büyük: ${e.origin??`value`}, ${n}${e.maximum.toString()} olmalıydı.`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Fazla küçük: ${e.origin}, ${n}${e.minimum.toString()} ${r.unit} sahip olmalıydı.`:`Fazla küçük: ${e.origin}, ${n}${e.minimum.toString()} olmalıydı.`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Fâsit metin: "${t.prefix}" ile başlamalı.`:t.format===`ends_with`?`Fâsit metin: "${t.suffix}" ile bitmeli.`:t.format===`includes`?`Fâsit metin: "${t.includes}" ihtivâ etmeli.`:t.format===`regex`?`Fâsit metin: ${t.pattern} nakşına uymalı.`:`Fâsit ${n[t.format]??e.format}`}case`not_multiple_of`:return`Fâsit sayı: ${e.divisor} katı olmalıydı.`;case`unrecognized_keys`:return`Tanınmayan anahtar ${e.keys.length>1?`s`:``}: ${J(e.keys,`, `)}`;case`invalid_key`:return`${e.origin} için tanınmayan anahtar var.`;case`invalid_union`:return`Giren tanınamadı.`;case`invalid_element`:return`${e.origin} için tanınmayan kıymet var.`;default:return`Kıymet tanınamadı.`}}}}));function L$(){return{localeError:R$()}}var R$,z$=o((()=>{Eq(),R$=()=>{let e={string:{unit:`توکي`,verb:`ولري`},file:{unit:`بایټس`,verb:`ولري`},array:{unit:`توکي`,verb:`ولري`},set:{unit:`توکي`,verb:`ولري`}};function t(t){return e[t]??null}let n={regex:`ورودي`,email:`بریښنالیک`,url:`یو آر ال`,emoji:`ایموجي`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`نیټه او وخت`,date:`نېټه`,time:`وخت`,duration:`موده`,ipv4:`د IPv4 پته`,ipv6:`د IPv6 پته`,cidrv4:`د IPv4 ساحه`,cidrv6:`د IPv6 ساحه`,base64:`base64-encoded متن`,base64url:`base64url-encoded متن`,json_string:`JSON متن`,e164:`د E.164 شمېره`,jwt:`JWT`,template_literal:`ورودي`},r={nan:`NaN`,number:`عدد`,array:`ارې`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=cq(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`ناسم ورودي: باید instanceof ${e.expected} وای, مګر ${i} ترلاسه شو`:`ناسم ورودي: باید ${t} وای, مګر ${i} ترلاسه شو`}case`invalid_value`:return e.values.length===1?`ناسم ورودي: باید ${KK(e.values[0])} وای`:`ناسم انتخاب: باید یو له ${J(e.values,`|`)} څخه وای`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`ډیر لوی: ${e.origin??`ارزښت`} باید ${n}${e.maximum.toString()} ${r.unit??`عنصرونه`} ولري`:`ډیر لوی: ${e.origin??`ارزښت`} باید ${n}${e.maximum.toString()} وي`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`ډیر کوچنی: ${e.origin} باید ${n}${e.minimum.toString()} ${r.unit} ولري`:`ډیر کوچنی: ${e.origin} باید ${n}${e.minimum.toString()} وي`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`ناسم متن: باید د "${t.prefix}" سره پیل شي`:t.format===`ends_with`?`ناسم متن: باید د "${t.suffix}" سره پای ته ورسيږي`:t.format===`includes`?`ناسم متن: باید "${t.includes}" ولري`:t.format===`regex`?`ناسم متن: باید د ${t.pattern} سره مطابقت ولري`:`${n[t.format]??e.format} ناسم دی`}case`not_multiple_of`:return`ناسم عدد: باید د ${e.divisor} مضرب وي`;case`unrecognized_keys`:return`ناسم ${e.keys.length>1?`کلیډونه`:`کلیډ`}: ${J(e.keys,`, `)}`;case`invalid_key`:return`ناسم کلیډ په ${e.origin} کې`;case`invalid_union`:return`ناسمه ورودي`;case`invalid_element`:return`ناسم عنصر په ${e.origin} کې`;default:return`ناسمه ورودي`}}}}));function B$(){return{localeError:V$()}}var V$,H$=o((()=>{Eq(),V$=()=>{let e={string:{unit:`znaków`,verb:`mieć`},file:{unit:`bajtów`,verb:`mieć`},array:{unit:`elementów`,verb:`mieć`},set:{unit:`elementów`,verb:`mieć`}};function t(t){return e[t]??null}let n={regex:`wyrażenie`,email:`adres email`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`data i godzina w formacie ISO`,date:`data w formacie ISO`,time:`godzina w formacie ISO`,duration:`czas trwania ISO`,ipv4:`adres IPv4`,ipv6:`adres IPv6`,cidrv4:`zakres IPv4`,cidrv6:`zakres IPv6`,base64:`ciąg znaków zakodowany w formacie base64`,base64url:`ciąg znaków zakodowany w formacie base64url`,json_string:`ciąg znaków w formacie JSON`,e164:`liczba E.164`,jwt:`JWT`,template_literal:`wejście`},r={nan:`NaN`,number:`liczba`,array:`tablica`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=cq(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Nieprawidłowe dane wejściowe: oczekiwano instanceof ${e.expected}, otrzymano ${i}`:`Nieprawidłowe dane wejściowe: oczekiwano ${t}, otrzymano ${i}`}case`invalid_value`:return e.values.length===1?`Nieprawidłowe dane wejściowe: oczekiwano ${KK(e.values[0])}`:`Nieprawidłowa opcja: oczekiwano jednej z wartości ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Za duża wartość: oczekiwano, że ${e.origin??`wartość`} będzie mieć ${n}${e.maximum.toString()} ${r.unit??`elementów`}`:`Zbyt duż(y/a/e): oczekiwano, że ${e.origin??`wartość`} będzie wynosić ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Za mała wartość: oczekiwano, że ${e.origin??`wartość`} będzie mieć ${n}${e.minimum.toString()} ${r.unit??`elementów`}`:`Zbyt mał(y/a/e): oczekiwano, że ${e.origin??`wartość`} będzie wynosić ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Nieprawidłowy ciąg znaków: musi zaczynać się od "${t.prefix}"`:t.format===`ends_with`?`Nieprawidłowy ciąg znaków: musi kończyć się na "${t.suffix}"`:t.format===`includes`?`Nieprawidłowy ciąg znaków: musi zawierać "${t.includes}"`:t.format===`regex`?`Nieprawidłowy ciąg znaków: musi odpowiadać wzorcowi ${t.pattern}`:`Nieprawidłow(y/a/e) ${n[t.format]??e.format}`}case`not_multiple_of`:return`Nieprawidłowa liczba: musi być wielokrotnością ${e.divisor}`;case`unrecognized_keys`:return`Nierozpoznane klucze${e.keys.length>1?`s`:``}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Nieprawidłowy klucz w ${e.origin}`;case`invalid_union`:return`Nieprawidłowe dane wejściowe`;case`invalid_element`:return`Nieprawidłowa wartość w ${e.origin}`;default:return`Nieprawidłowe dane wejściowe`}}}}));function U$(){return{localeError:W$()}}var W$,G$=o((()=>{Eq(),W$=()=>{let e={string:{unit:`caracteres`,verb:`ter`},file:{unit:`bytes`,verb:`ter`},array:{unit:`itens`,verb:`ter`},set:{unit:`itens`,verb:`ter`}};function t(t){return e[t]??null}let n={regex:`padrão`,email:`endereço de e-mail`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`data e hora ISO`,date:`data ISO`,time:`hora ISO`,duration:`duração ISO`,ipv4:`endereço IPv4`,ipv6:`endereço IPv6`,cidrv4:`faixa de IPv4`,cidrv6:`faixa de IPv6`,base64:`texto codificado em base64`,base64url:`URL codificada em base64`,json_string:`texto JSON`,e164:`número E.164`,jwt:`JWT`,template_literal:`entrada`},r={nan:`NaN`,number:`número`,null:`nulo`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=cq(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Tipo inválido: esperado instanceof ${e.expected}, recebido ${i}`:`Tipo inválido: esperado ${t}, recebido ${i}`}case`invalid_value`:return e.values.length===1?`Entrada inválida: esperado ${KK(e.values[0])}`:`Opção inválida: esperada uma das ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Muito grande: esperado que ${e.origin??`valor`} tivesse ${n}${e.maximum.toString()} ${r.unit??`elementos`}`:`Muito grande: esperado que ${e.origin??`valor`} fosse ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Muito pequeno: esperado que ${e.origin} tivesse ${n}${e.minimum.toString()} ${r.unit}`:`Muito pequeno: esperado que ${e.origin} fosse ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Texto inválido: deve começar com "${t.prefix}"`:t.format===`ends_with`?`Texto inválido: deve terminar com "${t.suffix}"`:t.format===`includes`?`Texto inválido: deve incluir "${t.includes}"`:t.format===`regex`?`Texto inválido: deve corresponder ao padrão ${t.pattern}`:`${n[t.format]??e.format} inválido`}case`not_multiple_of`:return`Número inválido: deve ser múltiplo de ${e.divisor}`;case`unrecognized_keys`:return`Chave${e.keys.length>1?`s`:``} desconhecida${e.keys.length>1?`s`:``}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Chave inválida em ${e.origin}`;case`invalid_union`:return`Entrada inválida`;case`invalid_element`:return`Valor inválido em ${e.origin}`;default:return`Campo inválido`}}}}));function K$(){return{localeError:q$()}}var q$,J$=o((()=>{Eq(),q$=()=>{let e={string:{unit:`caractere`,verb:`să aibă`},file:{unit:`octeți`,verb:`să aibă`},array:{unit:`elemente`,verb:`să aibă`},set:{unit:`elemente`,verb:`să aibă`},map:{unit:`intrări`,verb:`să aibă`}};function t(t){return e[t]??null}let n={regex:`intrare`,email:`adresă de email`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`dată și oră ISO`,date:`dată ISO`,time:`oră ISO`,duration:`durată ISO`,ipv4:`adresă IPv4`,ipv6:`adresă IPv6`,mac:`adresă MAC`,cidrv4:`interval IPv4`,cidrv6:`interval IPv6`,base64:`șir codat base64`,base64url:`șir codat base64url`,json_string:`șir JSON`,e164:`număr E.164`,jwt:`JWT`,template_literal:`intrare`},r={nan:`NaN`,string:`șir`,number:`număr`,boolean:`boolean`,function:`funcție`,array:`matrice`,object:`obiect`,undefined:`nedefinit`,symbol:`simbol`,bigint:`număr mare`,void:`void`,never:`never`,map:`hartă`,set:`set`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=cq(e.input);return`Intrare invalidă: așteptat ${t}, primit ${r[n]??n}`}case`invalid_value`:return e.values.length===1?`Intrare invalidă: așteptat ${KK(e.values[0])}`:`Opțiune invalidă: așteptat una dintre ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Prea mare: așteptat ca ${e.origin??`valoarea`} ${r.verb} ${n}${e.maximum.toString()} ${r.unit??`elemente`}`:`Prea mare: așteptat ca ${e.origin??`valoarea`} să fie ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Prea mic: așteptat ca ${e.origin} ${r.verb} ${n}${e.minimum.toString()} ${r.unit}`:`Prea mic: așteptat ca ${e.origin} să fie ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Șir invalid: trebuie să înceapă cu "${t.prefix}"`:t.format===`ends_with`?`Șir invalid: trebuie să se termine cu "${t.suffix}"`:t.format===`includes`?`Șir invalid: trebuie să includă "${t.includes}"`:t.format===`regex`?`Șir invalid: trebuie să se potrivească cu modelul ${t.pattern}`:`Format invalid: ${n[t.format]??e.format}`}case`not_multiple_of`:return`Număr invalid: trebuie să fie multiplu de ${e.divisor}`;case`unrecognized_keys`:return`Chei nerecunoscute: ${J(e.keys,`, `)}`;case`invalid_key`:return`Cheie invalidă în ${e.origin}`;case`invalid_union`:return`Intrare invalidă`;case`invalid_element`:return`Valoare invalidă în ${e.origin}`;default:return`Intrare invalidă`}}}}));function Y$(e,t,n,r){let i=Math.abs(e),a=i%10,o=i%100;return o>=11&&o<=19?r:a===1?t:a>=2&&a<=4?n:r}function X$(){return{localeError:Z$()}}var Z$,Q$=o((()=>{Eq(),Z$=()=>{let e={string:{unit:{one:`символ`,few:`символа`,many:`символов`},verb:`иметь`},file:{unit:{one:`байт`,few:`байта`,many:`байт`},verb:`иметь`},array:{unit:{one:`элемент`,few:`элемента`,many:`элементов`},verb:`иметь`},set:{unit:{one:`элемент`,few:`элемента`,many:`элементов`},verb:`иметь`}};function t(t){return e[t]??null}let n={regex:`ввод`,email:`email адрес`,url:`URL`,emoji:`эмодзи`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO дата и время`,date:`ISO дата`,time:`ISO время`,duration:`ISO длительность`,ipv4:`IPv4 адрес`,ipv6:`IPv6 адрес`,cidrv4:`IPv4 диапазон`,cidrv6:`IPv6 диапазон`,base64:`строка в формате base64`,base64url:`строка в формате base64url`,json_string:`JSON строка`,e164:`номер E.164`,jwt:`JWT`,template_literal:`ввод`},r={nan:`NaN`,number:`число`,array:`массив`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=cq(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Неверный ввод: ожидалось instanceof ${e.expected}, получено ${i}`:`Неверный ввод: ожидалось ${t}, получено ${i}`}case`invalid_value`:return e.values.length===1?`Неверный ввод: ожидалось ${KK(e.values[0])}`:`Неверный вариант: ожидалось одно из ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);if(r){let t=Y$(Number(e.maximum),r.unit.one,r.unit.few,r.unit.many);return`Слишком большое значение: ожидалось, что ${e.origin??`значение`} будет иметь ${n}${e.maximum.toString()} ${t}`}return`Слишком большое значение: ожидалось, что ${e.origin??`значение`} будет ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);if(r){let t=Y$(Number(e.minimum),r.unit.one,r.unit.few,r.unit.many);return`Слишком маленькое значение: ожидалось, что ${e.origin} будет иметь ${n}${e.minimum.toString()} ${t}`}return`Слишком маленькое значение: ожидалось, что ${e.origin} будет ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Неверная строка: должна начинаться с "${t.prefix}"`:t.format===`ends_with`?`Неверная строка: должна заканчиваться на "${t.suffix}"`:t.format===`includes`?`Неверная строка: должна содержать "${t.includes}"`:t.format===`regex`?`Неверная строка: должна соответствовать шаблону ${t.pattern}`:`Неверный ${n[t.format]??e.format}`}case`not_multiple_of`:return`Неверное число: должно быть кратным ${e.divisor}`;case`unrecognized_keys`:return`Нераспознанн${e.keys.length>1?`ые`:`ый`} ключ${e.keys.length>1?`и`:``}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Неверный ключ в ${e.origin}`;case`invalid_union`:return`Неверные входные данные`;case`invalid_element`:return`Неверное значение в ${e.origin}`;default:return`Неверные входные данные`}}}}));function $$(){return{localeError:e1()}}var e1,t1=o((()=>{Eq(),e1=()=>{let e={string:{unit:`znakov`,verb:`imeti`},file:{unit:`bajtov`,verb:`imeti`},array:{unit:`elementov`,verb:`imeti`},set:{unit:`elementov`,verb:`imeti`}};function t(t){return e[t]??null}let n={regex:`vnos`,email:`e-poštni naslov`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO datum in čas`,date:`ISO datum`,time:`ISO čas`,duration:`ISO trajanje`,ipv4:`IPv4 naslov`,ipv6:`IPv6 naslov`,cidrv4:`obseg IPv4`,cidrv6:`obseg IPv6`,base64:`base64 kodiran niz`,base64url:`base64url kodiran niz`,json_string:`JSON niz`,e164:`E.164 številka`,jwt:`JWT`,template_literal:`vnos`},r={nan:`NaN`,number:`število`,array:`tabela`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=cq(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Neveljaven vnos: pričakovano instanceof ${e.expected}, prejeto ${i}`:`Neveljaven vnos: pričakovano ${t}, prejeto ${i}`}case`invalid_value`:return e.values.length===1?`Neveljaven vnos: pričakovano ${KK(e.values[0])}`:`Neveljavna možnost: pričakovano eno izmed ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Preveliko: pričakovano, da bo ${e.origin??`vrednost`} imelo ${n}${e.maximum.toString()} ${r.unit??`elementov`}`:`Preveliko: pričakovano, da bo ${e.origin??`vrednost`} ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Premajhno: pričakovano, da bo ${e.origin} imelo ${n}${e.minimum.toString()} ${r.unit}`:`Premajhno: pričakovano, da bo ${e.origin} ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Neveljaven niz: mora se začeti z "${t.prefix}"`:t.format===`ends_with`?`Neveljaven niz: mora se končati z "${t.suffix}"`:t.format===`includes`?`Neveljaven niz: mora vsebovati "${t.includes}"`:t.format===`regex`?`Neveljaven niz: mora ustrezati vzorcu ${t.pattern}`:`Neveljaven ${n[t.format]??e.format}`}case`not_multiple_of`:return`Neveljavno število: mora biti večkratnik ${e.divisor}`;case`unrecognized_keys`:return`Neprepoznan${e.keys.length>1?`i ključi`:` ključ`}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Neveljaven ključ v ${e.origin}`;case`invalid_union`:return`Neveljaven vnos`;case`invalid_element`:return`Neveljavna vrednost v ${e.origin}`;default:return`Neveljaven vnos`}}}}));function n1(){return{localeError:r1()}}var r1,i1=o((()=>{Eq(),r1=()=>{let e={string:{unit:`tecken`,verb:`att ha`},file:{unit:`bytes`,verb:`att ha`},array:{unit:`objekt`,verb:`att innehålla`},set:{unit:`objekt`,verb:`att innehålla`}};function t(t){return e[t]??null}let n={regex:`reguljärt uttryck`,email:`e-postadress`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO-datum och tid`,date:`ISO-datum`,time:`ISO-tid`,duration:`ISO-varaktighet`,ipv4:`IPv4-intervall`,ipv6:`IPv6-intervall`,cidrv4:`IPv4-spektrum`,cidrv6:`IPv6-spektrum`,base64:`base64-kodad sträng`,base64url:`base64url-kodad sträng`,json_string:`JSON-sträng`,e164:`E.164-nummer`,jwt:`JWT`,template_literal:`mall-literal`},r={nan:`NaN`,number:`antal`,array:`lista`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=cq(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Ogiltig inmatning: förväntat instanceof ${e.expected}, fick ${i}`:`Ogiltig inmatning: förväntat ${t}, fick ${i}`}case`invalid_value`:return e.values.length===1?`Ogiltig inmatning: förväntat ${KK(e.values[0])}`:`Ogiltigt val: förväntade en av ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`För stor(t): förväntade ${e.origin??`värdet`} att ha ${n}${e.maximum.toString()} ${r.unit??`element`}`:`För stor(t): förväntat ${e.origin??`värdet`} att ha ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`För lite(t): förväntade ${e.origin??`värdet`} att ha ${n}${e.minimum.toString()} ${r.unit}`:`För lite(t): förväntade ${e.origin??`värdet`} att ha ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Ogiltig sträng: måste börja med "${t.prefix}"`:t.format===`ends_with`?`Ogiltig sträng: måste sluta med "${t.suffix}"`:t.format===`includes`?`Ogiltig sträng: måste innehålla "${t.includes}"`:t.format===`regex`?`Ogiltig sträng: måste matcha mönstret "${t.pattern}"`:`Ogiltig(t) ${n[t.format]??e.format}`}case`not_multiple_of`:return`Ogiltigt tal: måste vara en multipel av ${e.divisor}`;case`unrecognized_keys`:return`${e.keys.length>1?`Okända nycklar`:`Okänd nyckel`}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Ogiltig nyckel i ${e.origin??`värdet`}`;case`invalid_union`:return`Ogiltig input`;case`invalid_element`:return`Ogiltigt värde i ${e.origin??`värdet`}`;default:return`Ogiltig input`}}}}));function a1(){return{localeError:o1()}}var o1,s1=o((()=>{Eq(),o1=()=>{let e={string:{unit:`எழுத்துக்கள்`,verb:`கொண்டிருக்க வேண்டும்`},file:{unit:`பைட்டுகள்`,verb:`கொண்டிருக்க வேண்டும்`},array:{unit:`உறுப்புகள்`,verb:`கொண்டிருக்க வேண்டும்`},set:{unit:`உறுப்புகள்`,verb:`கொண்டிருக்க வேண்டும்`}};function t(t){return e[t]??null}let n={regex:`உள்ளீடு`,email:`மின்னஞ்சல் முகவரி`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO தேதி நேரம்`,date:`ISO தேதி`,time:`ISO நேரம்`,duration:`ISO கால அளவு`,ipv4:`IPv4 முகவரி`,ipv6:`IPv6 முகவரி`,cidrv4:`IPv4 வரம்பு`,cidrv6:`IPv6 வரம்பு`,base64:`base64-encoded சரம்`,base64url:`base64url-encoded சரம்`,json_string:`JSON சரம்`,e164:`E.164 எண்`,jwt:`JWT`,template_literal:`input`},r={nan:`NaN`,number:`எண்`,array:`அணி`,null:`வெறுமை`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=cq(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது instanceof ${e.expected}, பெறப்பட்டது ${i}`:`தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது ${t}, பெறப்பட்டது ${i}`}case`invalid_value`:return e.values.length===1?`தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது ${KK(e.values[0])}`:`தவறான விருப்பம்: எதிர்பார்க்கப்பட்டது ${J(e.values,`|`)} இல் ஒன்று`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`மிக பெரியது: எதிர்பார்க்கப்பட்டது ${e.origin??`மதிப்பு`} ${n}${e.maximum.toString()} ${r.unit??`உறுப்புகள்`} ஆக இருக்க வேண்டும்`:`மிக பெரியது: எதிர்பார்க்கப்பட்டது ${e.origin??`மதிப்பு`} ${n}${e.maximum.toString()} ஆக இருக்க வேண்டும்`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`மிகச் சிறியது: எதிர்பார்க்கப்பட்டது ${e.origin} ${n}${e.minimum.toString()} ${r.unit} ஆக இருக்க வேண்டும்`:`மிகச் சிறியது: எதிர்பார்க்கப்பட்டது ${e.origin} ${n}${e.minimum.toString()} ஆக இருக்க வேண்டும்`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`தவறான சரம்: "${t.prefix}" இல் தொடங்க வேண்டும்`:t.format===`ends_with`?`தவறான சரம்: "${t.suffix}" இல் முடிவடைய வேண்டும்`:t.format===`includes`?`தவறான சரம்: "${t.includes}" ஐ உள்ளடக்க வேண்டும்`:t.format===`regex`?`தவறான சரம்: ${t.pattern} முறைபாட்டுடன் பொருந்த வேண்டும்`:`தவறான ${n[t.format]??e.format}`}case`not_multiple_of`:return`தவறான எண்: ${e.divisor} இன் பலமாக இருக்க வேண்டும்`;case`unrecognized_keys`:return`அடையாளம் தெரியாத விசை${e.keys.length>1?`கள்`:``}: ${J(e.keys,`, `)}`;case`invalid_key`:return`${e.origin} இல் தவறான விசை`;case`invalid_union`:return`தவறான உள்ளீடு`;case`invalid_element`:return`${e.origin} இல் தவறான மதிப்பு`;default:return`தவறான உள்ளீடு`}}}}));function c1(){return{localeError:l1()}}var l1,u1=o((()=>{Eq(),l1=()=>{let e={string:{unit:`ตัวอักษร`,verb:`ควรมี`},file:{unit:`ไบต์`,verb:`ควรมี`},array:{unit:`รายการ`,verb:`ควรมี`},set:{unit:`รายการ`,verb:`ควรมี`}};function t(t){return e[t]??null}let n={regex:`ข้อมูลที่ป้อน`,email:`ที่อยู่อีเมล`,url:`URL`,emoji:`อิโมจิ`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`วันที่เวลาแบบ ISO`,date:`วันที่แบบ ISO`,time:`เวลาแบบ ISO`,duration:`ช่วงเวลาแบบ ISO`,ipv4:`ที่อยู่ IPv4`,ipv6:`ที่อยู่ IPv6`,cidrv4:`ช่วง IP แบบ IPv4`,cidrv6:`ช่วง IP แบบ IPv6`,base64:`ข้อความแบบ Base64`,base64url:`ข้อความแบบ Base64 สำหรับ URL`,json_string:`ข้อความแบบ JSON`,e164:`เบอร์โทรศัพท์ระหว่างประเทศ (E.164)`,jwt:`โทเคน JWT`,template_literal:`ข้อมูลที่ป้อน`},r={nan:`NaN`,number:`ตัวเลข`,array:`อาร์เรย์ (Array)`,null:`ไม่มีค่า (null)`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=cq(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`ประเภทข้อมูลไม่ถูกต้อง: ควรเป็น instanceof ${e.expected} แต่ได้รับ ${i}`:`ประเภทข้อมูลไม่ถูกต้อง: ควรเป็น ${t} แต่ได้รับ ${i}`}case`invalid_value`:return e.values.length===1?`ค่าไม่ถูกต้อง: ควรเป็น ${KK(e.values[0])}`:`ตัวเลือกไม่ถูกต้อง: ควรเป็นหนึ่งใน ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`ไม่เกิน`:`น้อยกว่า`,r=t(e.origin);return r?`เกินกำหนด: ${e.origin??`ค่า`} ควรมี${n} ${e.maximum.toString()} ${r.unit??`รายการ`}`:`เกินกำหนด: ${e.origin??`ค่า`} ควรมี${n} ${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`อย่างน้อย`:`มากกว่า`,r=t(e.origin);return r?`น้อยกว่ากำหนด: ${e.origin} ควรมี${n} ${e.minimum.toString()} ${r.unit}`:`น้อยกว่ากำหนด: ${e.origin} ควรมี${n} ${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`รูปแบบไม่ถูกต้อง: ข้อความต้องขึ้นต้นด้วย "${t.prefix}"`:t.format===`ends_with`?`รูปแบบไม่ถูกต้อง: ข้อความต้องลงท้ายด้วย "${t.suffix}"`:t.format===`includes`?`รูปแบบไม่ถูกต้อง: ข้อความต้องมี "${t.includes}" อยู่ในข้อความ`:t.format===`regex`?`รูปแบบไม่ถูกต้อง: ต้องตรงกับรูปแบบที่กำหนด ${t.pattern}`:`รูปแบบไม่ถูกต้อง: ${n[t.format]??e.format}`}case`not_multiple_of`:return`ตัวเลขไม่ถูกต้อง: ต้องเป็นจำนวนที่หารด้วย ${e.divisor} ได้ลงตัว`;case`unrecognized_keys`:return`พบคีย์ที่ไม่รู้จัก: ${J(e.keys,`, `)}`;case`invalid_key`:return`คีย์ไม่ถูกต้องใน ${e.origin}`;case`invalid_union`:return`ข้อมูลไม่ถูกต้อง: ไม่ตรงกับรูปแบบยูเนียนที่กำหนดไว้`;case`invalid_element`:return`ข้อมูลไม่ถูกต้องใน ${e.origin}`;default:return`ข้อมูลไม่ถูกต้อง`}}}}));function d1(){return{localeError:f1()}}var f1,p1=o((()=>{Eq(),f1=()=>{let e={string:{unit:`karakter`,verb:`olmalı`},file:{unit:`bayt`,verb:`olmalı`},array:{unit:`öğe`,verb:`olmalı`},set:{unit:`öğe`,verb:`olmalı`}};function t(t){return e[t]??null}let n={regex:`girdi`,email:`e-posta adresi`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO tarih ve saat`,date:`ISO tarih`,time:`ISO saat`,duration:`ISO süre`,ipv4:`IPv4 adresi`,ipv6:`IPv6 adresi`,cidrv4:`IPv4 aralığı`,cidrv6:`IPv6 aralığı`,base64:`base64 ile şifrelenmiş metin`,base64url:`base64url ile şifrelenmiş metin`,json_string:`JSON dizesi`,e164:`E.164 sayısı`,jwt:`JWT`,template_literal:`Şablon dizesi`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=cq(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Geçersiz değer: beklenen instanceof ${e.expected}, alınan ${i}`:`Geçersiz değer: beklenen ${t}, alınan ${i}`}case`invalid_value`:return e.values.length===1?`Geçersiz değer: beklenen ${KK(e.values[0])}`:`Geçersiz seçenek: aşağıdakilerden biri olmalı: ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Çok büyük: beklenen ${e.origin??`değer`} ${n}${e.maximum.toString()} ${r.unit??`öğe`}`:`Çok büyük: beklenen ${e.origin??`değer`} ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Çok küçük: beklenen ${e.origin} ${n}${e.minimum.toString()} ${r.unit}`:`Çok küçük: beklenen ${e.origin} ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Geçersiz metin: "${t.prefix}" ile başlamalı`:t.format===`ends_with`?`Geçersiz metin: "${t.suffix}" ile bitmeli`:t.format===`includes`?`Geçersiz metin: "${t.includes}" içermeli`:t.format===`regex`?`Geçersiz metin: ${t.pattern} desenine uymalı`:`Geçersiz ${n[t.format]??e.format}`}case`not_multiple_of`:return`Geçersiz sayı: ${e.divisor} ile tam bölünebilmeli`;case`unrecognized_keys`:return`Tanınmayan anahtar${e.keys.length>1?`lar`:``}: ${J(e.keys,`, `)}`;case`invalid_key`:return`${e.origin} içinde geçersiz anahtar`;case`invalid_union`:return`Geçersiz değer`;case`invalid_element`:return`${e.origin} içinde geçersiz değer`;default:return`Geçersiz değer`}}}}));function m1(){return{localeError:h1()}}var h1,g1=o((()=>{Eq(),h1=()=>{let e={string:{unit:`символів`,verb:`матиме`},file:{unit:`байтів`,verb:`матиме`},array:{unit:`елементів`,verb:`матиме`},set:{unit:`елементів`,verb:`матиме`}};function t(t){return e[t]??null}let n={regex:`вхідні дані`,email:`адреса електронної пошти`,url:`URL`,emoji:`емодзі`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`дата та час ISO`,date:`дата ISO`,time:`час ISO`,duration:`тривалість ISO`,ipv4:`адреса IPv4`,ipv6:`адреса IPv6`,cidrv4:`діапазон IPv4`,cidrv6:`діапазон IPv6`,base64:`рядок у кодуванні base64`,base64url:`рядок у кодуванні base64url`,json_string:`рядок JSON`,e164:`номер E.164`,jwt:`JWT`,template_literal:`вхідні дані`},r={nan:`NaN`,number:`число`,array:`масив`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=cq(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Неправильні вхідні дані: очікується instanceof ${e.expected}, отримано ${i}`:`Неправильні вхідні дані: очікується ${t}, отримано ${i}`}case`invalid_value`:return e.values.length===1?`Неправильні вхідні дані: очікується ${KK(e.values[0])}`:`Неправильна опція: очікується одне з ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Занадто велике: очікується, що ${e.origin??`значення`} ${r.verb} ${n}${e.maximum.toString()} ${r.unit??`елементів`}`:`Занадто велике: очікується, що ${e.origin??`значення`} буде ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Занадто мале: очікується, що ${e.origin} ${r.verb} ${n}${e.minimum.toString()} ${r.unit}`:`Занадто мале: очікується, що ${e.origin} буде ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Неправильний рядок: повинен починатися з "${t.prefix}"`:t.format===`ends_with`?`Неправильний рядок: повинен закінчуватися на "${t.suffix}"`:t.format===`includes`?`Неправильний рядок: повинен містити "${t.includes}"`:t.format===`regex`?`Неправильний рядок: повинен відповідати шаблону ${t.pattern}`:`Неправильний ${n[t.format]??e.format}`}case`not_multiple_of`:return`Неправильне число: повинно бути кратним ${e.divisor}`;case`unrecognized_keys`:return`Нерозпізнаний ключ${e.keys.length>1?`і`:``}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Неправильний ключ у ${e.origin}`;case`invalid_union`:return`Неправильні вхідні дані`;case`invalid_element`:return`Неправильне значення у ${e.origin}`;default:return`Неправильні вхідні дані`}}}}));function _1(){return m1()}var v1=o((()=>{g1()}));function y1(){return{localeError:b1()}}var b1,x1=o((()=>{Eq(),b1=()=>{let e={string:{unit:`حروف`,verb:`ہونا`},file:{unit:`بائٹس`,verb:`ہونا`},array:{unit:`آئٹمز`,verb:`ہونا`},set:{unit:`آئٹمز`,verb:`ہونا`}};function t(t){return e[t]??null}let n={regex:`ان پٹ`,email:`ای میل ایڈریس`,url:`یو آر ایل`,emoji:`ایموجی`,uuid:`یو یو آئی ڈی`,uuidv4:`یو یو آئی ڈی وی 4`,uuidv6:`یو یو آئی ڈی وی 6`,nanoid:`نینو آئی ڈی`,guid:`جی یو آئی ڈی`,cuid:`سی یو آئی ڈی`,cuid2:`سی یو آئی ڈی 2`,ulid:`یو ایل آئی ڈی`,xid:`ایکس آئی ڈی`,ksuid:`کے ایس یو آئی ڈی`,datetime:`آئی ایس او ڈیٹ ٹائم`,date:`آئی ایس او تاریخ`,time:`آئی ایس او وقت`,duration:`آئی ایس او مدت`,ipv4:`آئی پی وی 4 ایڈریس`,ipv6:`آئی پی وی 6 ایڈریس`,cidrv4:`آئی پی وی 4 رینج`,cidrv6:`آئی پی وی 6 رینج`,base64:`بیس 64 ان کوڈڈ سٹرنگ`,base64url:`بیس 64 یو آر ایل ان کوڈڈ سٹرنگ`,json_string:`جے ایس او این سٹرنگ`,e164:`ای 164 نمبر`,jwt:`جے ڈبلیو ٹی`,template_literal:`ان پٹ`},r={nan:`NaN`,number:`نمبر`,array:`آرے`,null:`نل`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=cq(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`غلط ان پٹ: instanceof ${e.expected} متوقع تھا، ${i} موصول ہوا`:`غلط ان پٹ: ${t} متوقع تھا، ${i} موصول ہوا`}case`invalid_value`:return e.values.length===1?`غلط ان پٹ: ${KK(e.values[0])} متوقع تھا`:`غلط آپشن: ${J(e.values,`|`)} میں سے ایک متوقع تھا`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`بہت بڑا: ${e.origin??`ویلیو`} کے ${n}${e.maximum.toString()} ${r.unit??`عناصر`} ہونے متوقع تھے`:`بہت بڑا: ${e.origin??`ویلیو`} کا ${n}${e.maximum.toString()} ہونا متوقع تھا`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`بہت چھوٹا: ${e.origin} کے ${n}${e.minimum.toString()} ${r.unit} ہونے متوقع تھے`:`بہت چھوٹا: ${e.origin} کا ${n}${e.minimum.toString()} ہونا متوقع تھا`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`غلط سٹرنگ: "${t.prefix}" سے شروع ہونا چاہیے`:t.format===`ends_with`?`غلط سٹرنگ: "${t.suffix}" پر ختم ہونا چاہیے`:t.format===`includes`?`غلط سٹرنگ: "${t.includes}" شامل ہونا چاہیے`:t.format===`regex`?`غلط سٹرنگ: پیٹرن ${t.pattern} سے میچ ہونا چاہیے`:`غلط ${n[t.format]??e.format}`}case`not_multiple_of`:return`غلط نمبر: ${e.divisor} کا مضاعف ہونا چاہیے`;case`unrecognized_keys`:return`غیر تسلیم شدہ کی${e.keys.length>1?`ز`:``}: ${J(e.keys,`، `)}`;case`invalid_key`:return`${e.origin} میں غلط کی`;case`invalid_union`:return`غلط ان پٹ`;case`invalid_element`:return`${e.origin} میں غلط ویلیو`;default:return`غلط ان پٹ`}}}}));function S1(){return{localeError:C1()}}var C1,w1=o((()=>{Eq(),C1=()=>{let e={string:{unit:`belgi`,verb:`bo‘lishi kerak`},file:{unit:`bayt`,verb:`bo‘lishi kerak`},array:{unit:`element`,verb:`bo‘lishi kerak`},set:{unit:`element`,verb:`bo‘lishi kerak`},map:{unit:`yozuv`,verb:`bo‘lishi kerak`}};function t(t){return e[t]??null}let n={regex:`kirish`,email:`elektron pochta manzili`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO sana va vaqti`,date:`ISO sana`,time:`ISO vaqt`,duration:`ISO davomiylik`,ipv4:`IPv4 manzil`,ipv6:`IPv6 manzil`,mac:`MAC manzil`,cidrv4:`IPv4 diapazon`,cidrv6:`IPv6 diapazon`,base64:`base64 kodlangan satr`,base64url:`base64url kodlangan satr`,json_string:`JSON satr`,e164:`E.164 raqam`,jwt:`JWT`,template_literal:`kirish`},r={nan:`NaN`,number:`raqam`,array:`massiv`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=cq(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Noto‘g‘ri kirish: kutilgan instanceof ${e.expected}, qabul qilingan ${i}`:`Noto‘g‘ri kirish: kutilgan ${t}, qabul qilingan ${i}`}case`invalid_value`:return e.values.length===1?`Noto‘g‘ri kirish: kutilgan ${KK(e.values[0])}`:`Noto‘g‘ri variant: quyidagilardan biri kutilgan ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Juda katta: kutilgan ${e.origin??`qiymat`} ${n}${e.maximum.toString()} ${r.unit} ${r.verb}`:`Juda katta: kutilgan ${e.origin??`qiymat`} ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Juda kichik: kutilgan ${e.origin} ${n}${e.minimum.toString()} ${r.unit} ${r.verb}`:`Juda kichik: kutilgan ${e.origin} ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Noto‘g‘ri satr: "${t.prefix}" bilan boshlanishi kerak`:t.format===`ends_with`?`Noto‘g‘ri satr: "${t.suffix}" bilan tugashi kerak`:t.format===`includes`?`Noto‘g‘ri satr: "${t.includes}" ni o‘z ichiga olishi kerak`:t.format===`regex`?`Noto‘g‘ri satr: ${t.pattern} shabloniga mos kelishi kerak`:`Noto‘g‘ri ${n[t.format]??e.format}`}case`not_multiple_of`:return`Noto‘g‘ri raqam: ${e.divisor} ning karralisi bo‘lishi kerak`;case`unrecognized_keys`:return`Noma’lum kalit${e.keys.length>1?`lar`:``}: ${J(e.keys,`, `)}`;case`invalid_key`:return`${e.origin} dagi kalit noto‘g‘ri`;case`invalid_union`:return`Noto‘g‘ri kirish`;case`invalid_element`:return`${e.origin} da noto‘g‘ri qiymat`;default:return`Noto‘g‘ri kirish`}}}}));function T1(){return{localeError:E1()}}var E1,D1=o((()=>{Eq(),E1=()=>{let e={string:{unit:`ký tự`,verb:`có`},file:{unit:`byte`,verb:`có`},array:{unit:`phần tử`,verb:`có`},set:{unit:`phần tử`,verb:`có`}};function t(t){return e[t]??null}let n={regex:`đầu vào`,email:`địa chỉ email`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ngày giờ ISO`,date:`ngày ISO`,time:`giờ ISO`,duration:`khoảng thời gian ISO`,ipv4:`địa chỉ IPv4`,ipv6:`địa chỉ IPv6`,cidrv4:`dải IPv4`,cidrv6:`dải IPv6`,base64:`chuỗi mã hóa base64`,base64url:`chuỗi mã hóa base64url`,json_string:`chuỗi JSON`,e164:`số E.164`,jwt:`JWT`,template_literal:`đầu vào`},r={nan:`NaN`,number:`số`,array:`mảng`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=cq(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Đầu vào không hợp lệ: mong đợi instanceof ${e.expected}, nhận được ${i}`:`Đầu vào không hợp lệ: mong đợi ${t}, nhận được ${i}`}case`invalid_value`:return e.values.length===1?`Đầu vào không hợp lệ: mong đợi ${KK(e.values[0])}`:`Tùy chọn không hợp lệ: mong đợi một trong các giá trị ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Quá lớn: mong đợi ${e.origin??`giá trị`} ${r.verb} ${n}${e.maximum.toString()} ${r.unit??`phần tử`}`:`Quá lớn: mong đợi ${e.origin??`giá trị`} ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Quá nhỏ: mong đợi ${e.origin} ${r.verb} ${n}${e.minimum.toString()} ${r.unit}`:`Quá nhỏ: mong đợi ${e.origin} ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Chuỗi không hợp lệ: phải bắt đầu bằng "${t.prefix}"`:t.format===`ends_with`?`Chuỗi không hợp lệ: phải kết thúc bằng "${t.suffix}"`:t.format===`includes`?`Chuỗi không hợp lệ: phải bao gồm "${t.includes}"`:t.format===`regex`?`Chuỗi không hợp lệ: phải khớp với mẫu ${t.pattern}`:`${n[t.format]??e.format} không hợp lệ`}case`not_multiple_of`:return`Số không hợp lệ: phải là bội số của ${e.divisor}`;case`unrecognized_keys`:return`Khóa không được nhận dạng: ${J(e.keys,`, `)}`;case`invalid_key`:return`Khóa không hợp lệ trong ${e.origin}`;case`invalid_union`:return`Đầu vào không hợp lệ`;case`invalid_element`:return`Giá trị không hợp lệ trong ${e.origin}`;default:return`Đầu vào không hợp lệ`}}}}));function O1(){return{localeError:k1()}}var k1,A1=o((()=>{Eq(),k1=()=>{let e={string:{unit:`字符`,verb:`包含`},file:{unit:`字节`,verb:`包含`},array:{unit:`项`,verb:`包含`},set:{unit:`项`,verb:`包含`}};function t(t){return e[t]??null}let n={regex:`输入`,email:`电子邮件`,url:`URL`,emoji:`表情符号`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO日期时间`,date:`ISO日期`,time:`ISO时间`,duration:`ISO时长`,ipv4:`IPv4地址`,ipv6:`IPv6地址`,cidrv4:`IPv4网段`,cidrv6:`IPv6网段`,base64:`base64编码字符串`,base64url:`base64url编码字符串`,json_string:`JSON字符串`,e164:`E.164号码`,jwt:`JWT`,template_literal:`输入`},r={nan:`NaN`,number:`数字`,array:`数组`,null:`空值(null)`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=cq(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`无效输入:期望 instanceof ${e.expected},实际接收 ${i}`:`无效输入:期望 ${t},实际接收 ${i}`}case`invalid_value`:return e.values.length===1?`无效输入:期望 ${KK(e.values[0])}`:`无效选项:期望以下之一 ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`数值过大:期望 ${e.origin??`值`} ${n}${e.maximum.toString()} ${r.unit??`个元素`}`:`数值过大:期望 ${e.origin??`值`} ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`数值过小:期望 ${e.origin} ${n}${e.minimum.toString()} ${r.unit}`:`数值过小:期望 ${e.origin} ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`无效字符串:必须以 "${t.prefix}" 开头`:t.format===`ends_with`?`无效字符串:必须以 "${t.suffix}" 结尾`:t.format===`includes`?`无效字符串:必须包含 "${t.includes}"`:t.format===`regex`?`无效字符串:必须满足正则表达式 ${t.pattern}`:`无效${n[t.format]??e.format}`}case`not_multiple_of`:return`无效数字:必须是 ${e.divisor} 的倍数`;case`unrecognized_keys`:return`出现未知的键(key): ${J(e.keys,`, `)}`;case`invalid_key`:return`${e.origin} 中的键(key)无效`;case`invalid_union`:return`无效输入`;case`invalid_element`:return`${e.origin} 中包含无效值(value)`;default:return`无效输入`}}}}));function j1(){return{localeError:M1()}}var M1,N1=o((()=>{Eq(),M1=()=>{let e={string:{unit:`字元`,verb:`擁有`},file:{unit:`位元組`,verb:`擁有`},array:{unit:`項目`,verb:`擁有`},set:{unit:`項目`,verb:`擁有`}};function t(t){return e[t]??null}let n={regex:`輸入`,email:`郵件地址`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO 日期時間`,date:`ISO 日期`,time:`ISO 時間`,duration:`ISO 期間`,ipv4:`IPv4 位址`,ipv6:`IPv6 位址`,cidrv4:`IPv4 範圍`,cidrv6:`IPv6 範圍`,base64:`base64 編碼字串`,base64url:`base64url 編碼字串`,json_string:`JSON 字串`,e164:`E.164 數值`,jwt:`JWT`,template_literal:`輸入`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=cq(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`無效的輸入值:預期為 instanceof ${e.expected},但收到 ${i}`:`無效的輸入值:預期為 ${t},但收到 ${i}`}case`invalid_value`:return e.values.length===1?`無效的輸入值:預期為 ${KK(e.values[0])}`:`無效的選項:預期為以下其中之一 ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`數值過大:預期 ${e.origin??`值`} 應為 ${n}${e.maximum.toString()} ${r.unit??`個元素`}`:`數值過大:預期 ${e.origin??`值`} 應為 ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`數值過小:預期 ${e.origin} 應為 ${n}${e.minimum.toString()} ${r.unit}`:`數值過小:預期 ${e.origin} 應為 ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`無效的字串:必須以 "${t.prefix}" 開頭`:t.format===`ends_with`?`無效的字串:必須以 "${t.suffix}" 結尾`:t.format===`includes`?`無效的字串:必須包含 "${t.includes}"`:t.format===`regex`?`無效的字串:必須符合格式 ${t.pattern}`:`無效的 ${n[t.format]??e.format}`}case`not_multiple_of`:return`無效的數字:必須為 ${e.divisor} 的倍數`;case`unrecognized_keys`:return`無法識別的鍵值${e.keys.length>1?`們`:``}:${J(e.keys,`、`)}`;case`invalid_key`:return`${e.origin} 中有無效的鍵值`;case`invalid_union`:return`無效的輸入值`;case`invalid_element`:return`${e.origin} 中有無效的值`;default:return`無效的輸入值`}}}}));function P1(){return{localeError:F1()}}var F1,I1=o((()=>{Eq(),F1=()=>{let e={string:{unit:`àmi`,verb:`ní`},file:{unit:`bytes`,verb:`ní`},array:{unit:`nkan`,verb:`ní`},set:{unit:`nkan`,verb:`ní`}};function t(t){return e[t]??null}let n={regex:`ẹ̀rọ ìbáwọlé`,email:`àdírẹ́sì ìmẹ́lì`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`àkókò ISO`,date:`ọjọ́ ISO`,time:`àkókò ISO`,duration:`àkókò tó pé ISO`,ipv4:`àdírẹ́sì IPv4`,ipv6:`àdírẹ́sì IPv6`,cidrv4:`àgbègbè IPv4`,cidrv6:`àgbègbè IPv6`,base64:`ọ̀rọ̀ tí a kọ́ ní base64`,base64url:`ọ̀rọ̀ base64url`,json_string:`ọ̀rọ̀ JSON`,e164:`nọ́mbà E.164`,jwt:`JWT`,template_literal:`ẹ̀rọ ìbáwọlé`},r={nan:`NaN`,number:`nọ́mbà`,array:`akopọ`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=cq(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Ìbáwọlé aṣìṣe: a ní láti fi instanceof ${e.expected}, àmọ̀ a rí ${i}`:`Ìbáwọlé aṣìṣe: a ní láti fi ${t}, àmọ̀ a rí ${i}`}case`invalid_value`:return e.values.length===1?`Ìbáwọlé aṣìṣe: a ní láti fi ${KK(e.values[0])}`:`Àṣàyàn aṣìṣe: yan ọ̀kan lára ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Tó pọ̀ jù: a ní láti jẹ́ pé ${e.origin??`iye`} ${r.verb} ${n}${e.maximum} ${r.unit}`:`Tó pọ̀ jù: a ní láti jẹ́ ${n}${e.maximum}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Kéré ju: a ní láti jẹ́ pé ${e.origin} ${r.verb} ${n}${e.minimum} ${r.unit}`:`Kéré ju: a ní láti jẹ́ ${n}${e.minimum}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ bẹ̀rẹ̀ pẹ̀lú "${t.prefix}"`:t.format===`ends_with`?`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ parí pẹ̀lú "${t.suffix}"`:t.format===`includes`?`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ ní "${t.includes}"`:t.format===`regex`?`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ bá àpẹẹrẹ mu ${t.pattern}`:`Aṣìṣe: ${n[t.format]??e.format}`}case`not_multiple_of`:return`Nọ́mbà aṣìṣe: gbọ́dọ̀ jẹ́ èyà pípín ti ${e.divisor}`;case`unrecognized_keys`:return`Bọtìnì àìmọ̀: ${J(e.keys,`, `)}`;case`invalid_key`:return`Bọtìnì aṣìṣe nínú ${e.origin}`;case`invalid_union`:return`Ìbáwọlé aṣìṣe`;case`invalid_element`:return`Iye aṣìṣe nínú ${e.origin}`;default:return`Ìbáwọlé aṣìṣe`}}}})),L1=c({ar:()=>zZ,az:()=>HZ,be:()=>KZ,bg:()=>YZ,ca:()=>QZ,cs:()=>tQ,da:()=>iQ,de:()=>sQ,el:()=>uQ,en:()=>pQ,eo:()=>gQ,es:()=>yQ,fa:()=>SQ,fi:()=>TQ,fr:()=>OQ,frCA:()=>jQ,he:()=>PQ,hr:()=>LQ,hu:()=>BQ,hy:()=>GQ,id:()=>JQ,is:()=>ZQ,it:()=>e$,ja:()=>r$,ka:()=>o$,kh:()=>f$,km:()=>l$,ko:()=>m$,lt:()=>v$,mk:()=>S$,ms:()=>T$,nl:()=>O$,no:()=>j$,ota:()=>P$,pl:()=>B$,ps:()=>L$,pt:()=>U$,ro:()=>K$,ru:()=>X$,sl:()=>$$,sv:()=>n1,ta:()=>a1,th:()=>c1,tr:()=>d1,ua:()=>_1,uk:()=>m1,ur:()=>y1,uz:()=>S1,vi:()=>T1,yo:()=>P1,zhCN:()=>O1,zhTW:()=>j1}),R1=o((()=>{VZ(),WZ(),JZ(),ZZ(),eQ(),rQ(),oQ(),lQ(),fQ(),hQ(),vQ(),xQ(),wQ(),DQ(),AQ(),NQ(),IQ(),zQ(),HQ(),qQ(),XQ(),$Q(),n$(),a$(),c$(),p$(),d$(),g$(),x$(),w$(),D$(),A$(),N$(),I$(),z$(),H$(),G$(),J$(),Q$(),t1(),i1(),s1(),u1(),p1(),v1(),g1(),x1(),w1(),D1(),A1(),N1(),I1()}));function z1(){return new U1}var B1,V1,H1,U1,W1,G1=o((()=>{V1=Symbol(`ZodOutput`),H1=Symbol(`ZodInput`),U1=class{constructor(){this._map=new WeakMap,this._idmap=new Map}add(e,...t){let n=t[0];return this._map.set(e,n),n&&typeof n==`object`&&`id`in n&&this._idmap.set(n.id,e),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(e){let t=this._map.get(e);return t&&typeof t==`object`&&`id`in t&&this._idmap.delete(t.id),this._map.delete(e),this}get(e){let t=e._zod.parent;if(t){let n={...this.get(t)??{}};delete n.id;let r={...n,...this._map.get(e)};return Object.keys(r).length?r:void 0}return this._map.get(e)}has(e){return this._map.has(e)}},(B1=globalThis).__zod_globalRegistry??(B1.__zod_globalRegistry=z1()),W1=globalThis.__zod_globalRegistry}));function K1(e,t){return new e({type:`string`,...Y(t)})}function q1(e,t){return new e({type:`string`,coerce:!0,...Y(t)})}function J1(e,t){return new e({type:`string`,format:`email`,check:`string_format`,abort:!1,...Y(t)})}function Y1(e,t){return new e({type:`string`,format:`guid`,check:`string_format`,abort:!1,...Y(t)})}function X1(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,...Y(t)})}function Z1(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v4`,...Y(t)})}function Q1(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v6`,...Y(t)})}function $1(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v7`,...Y(t)})}function e0(e,t){return new e({type:`string`,format:`url`,check:`string_format`,abort:!1,...Y(t)})}function t0(e,t){return new e({type:`string`,format:`emoji`,check:`string_format`,abort:!1,...Y(t)})}function n0(e,t){return new e({type:`string`,format:`nanoid`,check:`string_format`,abort:!1,...Y(t)})}function r0(e,t){return new e({type:`string`,format:`cuid`,check:`string_format`,abort:!1,...Y(t)})}function i0(e,t){return new e({type:`string`,format:`cuid2`,check:`string_format`,abort:!1,...Y(t)})}function a0(e,t){return new e({type:`string`,format:`ulid`,check:`string_format`,abort:!1,...Y(t)})}function o0(e,t){return new e({type:`string`,format:`xid`,check:`string_format`,abort:!1,...Y(t)})}function s0(e,t){return new e({type:`string`,format:`ksuid`,check:`string_format`,abort:!1,...Y(t)})}function c0(e,t){return new e({type:`string`,format:`ipv4`,check:`string_format`,abort:!1,...Y(t)})}function l0(e,t){return new e({type:`string`,format:`ipv6`,check:`string_format`,abort:!1,...Y(t)})}function u0(e,t){return new e({type:`string`,format:`mac`,check:`string_format`,abort:!1,...Y(t)})}function d0(e,t){return new e({type:`string`,format:`cidrv4`,check:`string_format`,abort:!1,...Y(t)})}function f0(e,t){return new e({type:`string`,format:`cidrv6`,check:`string_format`,abort:!1,...Y(t)})}function p0(e,t){return new e({type:`string`,format:`base64`,check:`string_format`,abort:!1,...Y(t)})}function m0(e,t){return new e({type:`string`,format:`base64url`,check:`string_format`,abort:!1,...Y(t)})}function h0(e,t){return new e({type:`string`,format:`e164`,check:`string_format`,abort:!1,...Y(t)})}function g0(e,t){return new e({type:`string`,format:`jwt`,check:`string_format`,abort:!1,...Y(t)})}function _0(e,t){return new e({type:`string`,format:`datetime`,check:`string_format`,offset:!1,local:!1,precision:null,...Y(t)})}function v0(e,t){return new e({type:`string`,format:`date`,check:`string_format`,...Y(t)})}function y0(e,t){return new e({type:`string`,format:`time`,check:`string_format`,precision:null,...Y(t)})}function b0(e,t){return new e({type:`string`,format:`duration`,check:`string_format`,...Y(t)})}function x0(e,t){return new e({type:`number`,checks:[],...Y(t)})}function S0(e,t){return new e({type:`number`,coerce:!0,checks:[],...Y(t)})}function C0(e,t){return new e({type:`number`,check:`number_format`,abort:!1,format:`safeint`,...Y(t)})}function w0(e,t){return new e({type:`number`,check:`number_format`,abort:!1,format:`float32`,...Y(t)})}function T0(e,t){return new e({type:`number`,check:`number_format`,abort:!1,format:`float64`,...Y(t)})}function E0(e,t){return new e({type:`number`,check:`number_format`,abort:!1,format:`int32`,...Y(t)})}function D0(e,t){return new e({type:`number`,check:`number_format`,abort:!1,format:`uint32`,...Y(t)})}function O0(e,t){return new e({type:`boolean`,...Y(t)})}function k0(e,t){return new e({type:`boolean`,coerce:!0,...Y(t)})}function A0(e,t){return new e({type:`bigint`,...Y(t)})}function j0(e,t){return new e({type:`bigint`,coerce:!0,...Y(t)})}function M0(e,t){return new e({type:`bigint`,check:`bigint_format`,abort:!1,format:`int64`,...Y(t)})}function N0(e,t){return new e({type:`bigint`,check:`bigint_format`,abort:!1,format:`uint64`,...Y(t)})}function P0(e,t){return new e({type:`symbol`,...Y(t)})}function F0(e,t){return new e({type:`undefined`,...Y(t)})}function I0(e,t){return new e({type:`null`,...Y(t)})}function L0(e){return new e({type:`any`})}function R0(e){return new e({type:`unknown`})}function z0(e,t){return new e({type:`never`,...Y(t)})}function B0(e,t){return new e({type:`void`,...Y(t)})}function V0(e,t){return new e({type:`date`,...Y(t)})}function H0(e,t){return new e({type:`date`,coerce:!0,...Y(t)})}function U0(e,t){return new e({type:`nan`,...Y(t)})}function W0(e,t){return new SY({check:`less_than`,...Y(t),value:e,inclusive:!1})}function G0(e,t){return new SY({check:`less_than`,...Y(t),value:e,inclusive:!0})}function K0(e,t){return new CY({check:`greater_than`,...Y(t),value:e,inclusive:!1})}function q0(e,t){return new CY({check:`greater_than`,...Y(t),value:e,inclusive:!0})}function J0(e){return K0(0,e)}function Y0(e){return W0(0,e)}function X0(e){return G0(0,e)}function Z0(e){return q0(0,e)}function Q0(e,t){return new wY({check:`multiple_of`,...Y(t),value:e})}function $0(e,t){return new DY({check:`max_size`,...Y(t),maximum:e})}function e2(e,t){return new OY({check:`min_size`,...Y(t),minimum:e})}function t2(e,t){return new kY({check:`size_equals`,...Y(t),size:e})}function n2(e,t){return new AY({check:`max_length`,...Y(t),maximum:e})}function r2(e,t){return new jY({check:`min_length`,...Y(t),minimum:e})}function i2(e,t){return new MY({check:`length_equals`,...Y(t),length:e})}function a2(e,t){return new PY({check:`string_format`,format:`regex`,...Y(t),pattern:e})}function o2(e){return new FY({check:`string_format`,format:`lowercase`,...Y(e)})}function s2(e){return new IY({check:`string_format`,format:`uppercase`,...Y(e)})}function c2(e,t){return new LY({check:`string_format`,format:`includes`,...Y(t),includes:e})}function l2(e,t){return new RY({check:`string_format`,format:`starts_with`,...Y(t),prefix:e})}function u2(e,t){return new zY({check:`string_format`,format:`ends_with`,...Y(t),suffix:e})}function d2(e,t,n){return new BY({check:`property`,property:e,schema:t,...Y(n)})}function f2(e,t){return new VY({check:`mime_type`,mime:e,...Y(t)})}function p2(e){return new HY({check:`overwrite`,tx:e})}function m2(e){return p2(t=>t.normalize(e))}function h2(){return p2(e=>e.trim())}function g2(){return p2(e=>e.toLowerCase())}function _2(){return p2(e=>e.toUpperCase())}function v2(){return p2(e=>RK(e))}function y2(e,t,n){return new e({type:`array`,element:t,...Y(n)})}function b2(e,t,n){return new e({type:`union`,options:t,...Y(n)})}function x2(e,t,n){return new e({type:`union`,options:t,inclusive:!1,...Y(n)})}function S2(e,t,n,r){return new e({type:`union`,options:n,discriminator:t,...Y(r)})}function C2(e,t,n){return new e({type:`intersection`,left:t,right:n})}function w2(e,t,n,r){let i=n instanceof vX;return new e({type:`tuple`,items:t,rest:i?n:null,...Y(i?r:n)})}function T2(e,t,n,r){return new e({type:`record`,keyType:t,valueType:n,...Y(r)})}function E2(e,t,n,r){return new e({type:`map`,keyType:t,valueType:n,...Y(r)})}function D2(e,t,n){return new e({type:`set`,valueType:t,...Y(n)})}function O2(e,t,n){return new e({type:`enum`,entries:Array.isArray(t)?Object.fromEntries(t.map(e=>[e,e])):t,...Y(n)})}function k2(e,t,n){return new e({type:`enum`,entries:t,...Y(n)})}function A2(e,t,n){return new e({type:`literal`,values:Array.isArray(t)?t:[t],...Y(n)})}function j2(e,t){return new e({type:`file`,...Y(t)})}function M2(e,t){return new e({type:`transform`,transform:t})}function N2(e,t){return new e({type:`optional`,innerType:t})}function P2(e,t){return new e({type:`nullable`,innerType:t})}function F2(e,t,n){return new e({type:`default`,innerType:t,get defaultValue(){return typeof n==`function`?n():VK(n)}})}function I2(e,t,n){return new e({type:`nonoptional`,innerType:t,...Y(n)})}function L2(e,t){return new e({type:`success`,innerType:t})}function R2(e,t,n){return new e({type:`catch`,innerType:t,catchValue:typeof n==`function`?n:()=>n})}function z2(e,t,n){return new e({type:`pipe`,in:t,out:n})}function B2(e,t){return new e({type:`readonly`,innerType:t})}function V2(e,t,n){return new e({type:`template_literal`,parts:t,...Y(n)})}function H2(e,t){return new e({type:`lazy`,getter:t})}function U2(e,t){return new e({type:`promise`,innerType:t})}function W2(e,t,n){let r=Y(n);return r.abort??=!0,new e({type:`custom`,check:`custom`,fn:t,...r})}function G2(e,t,n){return new e({type:`custom`,check:`custom`,fn:t,...Y(n)})}function K2(e,t){let n=q2(t=>(t.addIssue=e=>{if(typeof e==`string`)t.issues.push(lq(e,t.value,n._zod.def));else{let r=e;r.fatal&&(r.continue=!1),r.code??=`custom`,r.input??=t.value,r.inst??=n,r.continue??=!n._zod.def.abort,t.issues.push(lq(r))}},e(t.value,t)),t);return n}function q2(e,t){let n=new bY({check:`custom`,...Y(t)});return n._zod.check=e,n}function J2(e){let t=new bY({check:`describe`});return t._zod.onattach=[t=>{let n=W1.get(t)??{};W1.add(t,{...n,description:e})}],t._zod.check=()=>{},t}function Y2(e){let t=new bY({check:`meta`});return t._zod.onattach=[t=>{let n=W1.get(t)??{};W1.add(t,{...n,...e})}],t._zod.check=()=>{},t}function X2(e,t){let n=Y(t),r=n.truthy??[`true`,`1`,`yes`,`on`,`y`,`enabled`],i=n.falsy??[`false`,`0`,`no`,`off`,`n`,`disabled`];n.case!==`sensitive`&&(r=r.map(e=>typeof e==`string`?e.toLowerCase():e),i=i.map(e=>typeof e==`string`?e.toLowerCase():e));let a=new Set(r),o=new Set(i),s=e.Codec??AZ,c=e.Boolean??JX,l=new s({type:`pipe`,in:new(e.String??yX)({type:`string`,error:n.error}),out:new c({type:`boolean`,error:n.error}),transform:((e,t)=>{let r=e;return n.case!==`sensitive`&&(r=r.toLowerCase()),a.has(r)?!0:!o.has(r)&&(t.issues.push({code:`invalid_value`,expected:`stringbool`,values:[...a,...o],input:t.value,inst:l,continue:!1}),{})}),reverseTransform:((e,t)=>e===!0?r[0]||`true`:i[0]||`false`),error:n.error});return l}function Z2(e,t,n,r={}){let i=Y(r),a={...Y(r),check:`string_format`,type:`string`,format:t,fn:typeof n==`function`?n:e=>n.test(e),...i};return n instanceof RegExp&&(a.pattern=n),new e(a)}var Q2,$2=o((()=>{UY(),G1(),RZ(),Eq(),Q2={Any:null,Minute:-1,Second:0,Millisecond:3,Microsecond:6}}));function e4(e){let t=e?.target??`draft-2020-12`;return t===`draft-4`&&(t=`draft-04`),t===`draft-7`&&(t=`draft-07`),{processors:e.processors??{},metadataRegistry:e?.metadata??W1,target:t,unrepresentable:e?.unrepresentable??`throw`,override:e?.override??(()=>{}),io:e?.io??`output`,counter:0,seen:new Map,cycles:e?.cycles??`ref`,reused:e?.reused??`inline`,external:e?.external??void 0}}function t4(e,t,n={path:[],schemaPath:[]}){var r;let i=e._zod.def,a=t.seen.get(e);if(a)return a.count++,n.schemaPath.includes(e)&&(a.cycle=n.path),a.schema;let o={schema:{},count:1,cycle:void 0,path:n.path};t.seen.set(e,o);let s=e._zod.toJSONSchema?.();if(s)o.schema=s;else{let r={...n,schemaPath:[...n.schemaPath,e],path:n.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,o.schema,r);else{let n=o.schema,a=t.processors[i.type];if(!a)throw Error(`[toJSONSchema]: Non-representable type encountered: ${i.type}`);a(e,t,n,r)}let a=e._zod.parent;a&&(o.ref||=a,t4(a,t,r),t.seen.get(a).isParent=!0)}let c=t.metadataRegistry.get(e);return c&&Object.assign(o.schema,c),t.io===`input`&&i4(e)&&(delete o.schema.examples,delete o.schema.default),t.io===`input`&&`_prefault`in o.schema&&((r=o.schema).default??(r.default=o.schema._prefault)),delete o.schema._prefault,t.seen.get(e).schema}function n4(e,t){let n=e.seen.get(t);if(!n)throw Error(`Unprocessed schema. This is a bug in Zod.`);let r=new Map;for(let t of e.seen.entries()){let n=e.metadataRegistry.get(t[0])?.id;if(n){let e=r.get(n);if(e&&e!==t[0])throw Error(`Duplicate schema id "${n}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);r.set(n,t[0])}}let i=t=>{let r=e.target===`draft-2020-12`?`$defs`:`definitions`;if(e.external){let n=e.external.registry.get(t[0])?.id,i=e.external.uri??(e=>e);if(n)return{ref:i(n)};let a=t[1].defId??t[1].schema.id??`schema${e.counter++}`;return t[1].defId=a,{defId:a,ref:`${i(`__shared`)}#/${r}/${a}`}}if(t[1]===n)return{ref:`#`};let i=`#/${r}/`,a=t[1].schema.id??`__schema${e.counter++}`;return{defId:a,ref:i+a}},a=e=>{if(e[1].schema.$ref)return;let t=e[1],{ref:n,defId:r}=i(e);t.def={...t.schema},r&&(t.defId=r);let a=t.schema;for(let e in a)delete a[e];a.$ref=n};if(e.cycles===`throw`)for(let t of e.seen.entries()){let e=t[1];if(e.cycle)throw Error(`Cycle detected: #/${e.cycle?.join(`/`)}/ + `)}t.write(`payload.value = newResult;`),t.write(`return payload;`);let s=t.compile();return(t,n)=>s(e,t,n)},a,o=KK,s=!SK.jitless,c=s&&Eq.value,l=t.catchall,u;e._zod.parse=(d,f)=>{u??=r.value;let p=d.value;return o(p)?s&&c&&f?.async===!1&&f.jitless!==!0?(a||=i(t.shape),d=a(d,f),l?sX([],p,d,f,u,e):d):n(d,f):(d.issues.push({expected:`object`,code:`invalid_type`,input:p,inst:e}),d)}}),hZ=q(`$ZodUnion`,(e,t)=>{TX.init(e,t),IK(e._zod,`optin`,()=>t.options.some(e=>e._zod.optin===`optional`)?`optional`:void 0),IK(e._zod,`optout`,()=>t.options.some(e=>e._zod.optout===`optional`)?`optional`:void 0),IK(e._zod,`values`,()=>{if(t.options.every(e=>e._zod.values))return new Set(t.options.flatMap(e=>Array.from(e._zod.values)))}),IK(e._zod,`pattern`,()=>{if(t.options.every(e=>e._zod.pattern)){let e=t.options.map(e=>e._zod.pattern);return RegExp(`^(${e.map(e=>PK(e.source)).join(`|`)})$`)}});let n=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(r,i)=>{if(n)return n(r,i);let a=!1,o=[];for(let e of t.options){let t=e._zod.run({value:r.value,issues:[]},i);if(t instanceof Promise)o.push(t),a=!0;else{if(t.issues.length===0)return t;o.push(t)}}return a?Promise.all(o).then(t=>cX(t,r,e,i)):cX(o,r,e,i)}}),gZ=q(`$ZodXor`,(e,t)=>{hZ.init(e,t),t.inclusive=!1;let n=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(r,i)=>{if(n)return n(r,i);let a=!1,o=[];for(let e of t.options){let t=e._zod.run({value:r.value,issues:[]},i);t instanceof Promise?(o.push(t),a=!0):o.push(t)}return a?Promise.all(o).then(t=>lX(t,r,e,i)):lX(o,r,e,i)}}),_Z=q(`$ZodDiscriminatedUnion`,(e,t)=>{t.inclusive=!1,hZ.init(e,t);let n=e._zod.parse;IK(e._zod,`propValues`,()=>{let e={};for(let n of t.options){let r=n._zod.propValues;if(!r||Object.keys(r).length===0)throw Error(`Invalid discriminated union option at index "${t.options.indexOf(n)}"`);for(let[t,n]of Object.entries(r)){e[t]||(e[t]=new Set);for(let r of n)e[t].add(r)}}return e});let r=MK(()=>{let e=t.options,n=new Map;for(let r of e){let e=r._zod.propValues?.[t.discriminator];if(!e||e.size===0)throw Error(`Invalid discriminated union option at index "${t.options.indexOf(r)}"`);for(let t of e){if(n.has(t))throw Error(`Duplicate discriminator value "${String(t)}"`);n.set(t,r)}}return n});e._zod.parse=(i,a)=>{let o=i.value;if(!KK(o))return i.issues.push({code:`invalid_type`,expected:`object`,input:o,inst:e}),i;let s=r.value.get(o?.[t.discriminator]);return s?s._zod.run(i,a):t.unionFallback||a.direction===`backward`?n(i,a):(i.issues.push({code:`invalid_union`,errors:[],note:`No matching discriminator`,discriminator:t.discriminator,options:Array.from(r.value.keys()),input:o,path:[t.discriminator],inst:e}),i)}}),vZ=q(`$ZodIntersection`,(e,t)=>{TX.init(e,t),e._zod.parse=(e,n)=>{let r=e.value,i=t.left._zod.run({value:r,issues:[]},n),a=t.right._zod.run({value:r,issues:[]},n);return i instanceof Promise||a instanceof Promise?Promise.all([i,a]).then(([t,n])=>dX(e,t,n)):dX(e,i,a)}}),yZ=q(`$ZodTuple`,(e,t)=>{TX.init(e,t);let n=t.items;e._zod.parse=(r,i)=>{let a=r.value;if(!Array.isArray(a))return r.issues.push({input:a,inst:e,expected:`tuple`,code:`invalid_type`}),r;r.value=[];let o=[],s=fX(n,`optin`),c=fX(n,`optout`);if(!t.rest){if(a.lengthn.length&&r.issues.push({code:`too_big`,maximum:n.length,inclusive:!0,input:a,inst:e,origin:`array`})}let l=Array(n.length);for(let e=0;e{l[e]=t})):l[e]=t}if(t.rest){let e=n.length-1,s=a.slice(n.length);for(let n of s){e++;let a=t.rest._zod.run({value:n,issues:[]},i);a instanceof Promise?o.push(a.then(t=>pX(t,r,e))):pX(a,r,e)}}return o.length?Promise.all(o).then(()=>mX(l,r,n,a,c)):mX(l,r,n,a,c)}}),bZ=q(`$ZodRecord`,(e,t)=>{TX.init(e,t),e._zod.parse=(n,r)=>{let i=n.value;if(!qK(i))return n.issues.push({expected:`record`,code:`invalid_type`,input:i,inst:e}),n;let a=[],o=t.keyType._zod.values;if(o){n.value={};let s=new Set;for(let c of o)if(typeof c==`string`||typeof c==`number`||typeof c==`symbol`){s.add(typeof c==`number`?c.toString():c);let o=t.keyType._zod.run({value:c,issues:[]},r);if(o instanceof Promise)throw Error(`Async schemas not supported in object keys currently`);if(o.issues.length){n.issues.push({code:`invalid_key`,origin:`record`,issues:o.issues.map(e=>fq(e,r,gK())),input:c,path:[c],inst:e});continue}let l=o.value,u=t.valueType._zod.run({value:i[c],issues:[]},r);u instanceof Promise?a.push(u.then(e=>{e.issues.length&&n.issues.push(...uq(c,e.issues)),n.value[l]=e.value})):(u.issues.length&&n.issues.push(...uq(c,u.issues)),n.value[l]=u.value)}let c;for(let e in i)s.has(e)||(c??=[],c.push(e));c&&c.length>0&&n.issues.push({code:`unrecognized_keys`,input:i,inst:e,keys:c})}else{n.value={};for(let o of Reflect.ownKeys(i)){if(o===`__proto__`||!Object.prototype.propertyIsEnumerable.call(i,o))continue;let s=t.keyType._zod.run({value:o,issues:[]},r);if(s instanceof Promise)throw Error(`Async schemas not supported in object keys currently`);if(typeof o==`string`&&rY.test(o)&&s.issues.length){let e=t.keyType._zod.run({value:Number(o),issues:[]},r);if(e instanceof Promise)throw Error(`Async schemas not supported in object keys currently`);e.issues.length===0&&(s=e)}if(s.issues.length){t.mode===`loose`?n.value[o]=i[o]:n.issues.push({code:`invalid_key`,origin:`record`,issues:s.issues.map(e=>fq(e,r,gK())),input:o,path:[o],inst:e});continue}let c=t.valueType._zod.run({value:i[o],issues:[]},r);c instanceof Promise?a.push(c.then(e=>{e.issues.length&&n.issues.push(...uq(o,e.issues)),n.value[s.value]=e.value})):(c.issues.length&&n.issues.push(...uq(o,c.issues)),n.value[s.value]=c.value)}}return a.length?Promise.all(a).then(()=>n):n}}),xZ=q(`$ZodMap`,(e,t)=>{TX.init(e,t),e._zod.parse=(n,r)=>{let i=n.value;if(!(i instanceof Map))return n.issues.push({expected:`map`,code:`invalid_type`,input:i,inst:e}),n;let a=[];n.value=new Map;for(let[o,s]of i){let c=t.keyType._zod.run({value:o,issues:[]},r),l=t.valueType._zod.run({value:s,issues:[]},r);c instanceof Promise||l instanceof Promise?a.push(Promise.all([c,l]).then(([t,a])=>{hX(t,a,n,o,i,e,r)})):hX(c,l,n,o,i,e,r)}return a.length?Promise.all(a).then(()=>n):n}}),SZ=q(`$ZodSet`,(e,t)=>{TX.init(e,t),e._zod.parse=(n,r)=>{let i=n.value;if(!(i instanceof Set))return n.issues.push({input:i,inst:e,expected:`set`,code:`invalid_type`}),n;let a=[];n.value=new Set;for(let e of i){let i=t.valueType._zod.run({value:e,issues:[]},r);i instanceof Promise?a.push(i.then(e=>gX(e,n))):gX(i,n)}return a.length?Promise.all(a).then(()=>n):n}}),CZ=q(`$ZodEnum`,(e,t)=>{TX.init(e,t);let n=AK(t.entries),r=new Set(n);e._zod.values=r,e._zod.pattern=RegExp(`^(${n.filter(e=>Oq.has(typeof e)).map(e=>typeof e==`string`?XK(e):e.toString()).join(`|`)})$`),e._zod.parse=(t,i)=>{let a=t.value;return r.has(a)||t.issues.push({code:`invalid_value`,values:n,input:a,inst:e}),t}}),wZ=q(`$ZodLiteral`,(e,t)=>{if(TX.init(e,t),t.values.length===0)throw Error(`Cannot create literal schema with no valid values`);let n=new Set(t.values);e._zod.values=n,e._zod.pattern=RegExp(`^(${t.values.map(e=>typeof e==`string`?XK(e):e?XK(e.toString()):String(e)).join(`|`)})$`),e._zod.parse=(r,i)=>{let a=r.value;return n.has(a)||r.issues.push({code:`invalid_value`,values:t.values,input:a,inst:e}),r}}),TZ=q(`$ZodFile`,(e,t)=>{TX.init(e,t),e._zod.parse=(t,n)=>{let r=t.value;return r instanceof File||t.issues.push({expected:`file`,code:`invalid_type`,input:r,inst:e}),t}}),EZ=q(`$ZodTransform`,(e,t)=>{TX.init(e,t),e._zod.optin=`optional`,e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new xK(e.constructor.name);let i=t.transform(n.value,n);if(r.async)return(i instanceof Promise?i:Promise.resolve(i)).then(e=>(n.value=e,n.fallback=!0,n));if(i instanceof Promise)throw new bK;return n.value=i,n.fallback=!0,n}}),DZ=q(`$ZodOptional`,(e,t)=>{TX.init(e,t),e._zod.optin=`optional`,e._zod.optout=`optional`,IK(e._zod,`values`,()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),IK(e._zod,`pattern`,()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${PK(e.source)})?$`):void 0}),e._zod.parse=(e,n)=>{if(t.innerType._zod.optin===`optional`){let r=e.value,i=t.innerType._zod.run(e,n);return i instanceof Promise?i.then(e=>_X(e,r)):_X(i,r)}return e.value===void 0?e:t.innerType._zod.run(e,n)}}),OZ=q(`$ZodExactOptional`,(e,t)=>{DZ.init(e,t),IK(e._zod,`values`,()=>t.innerType._zod.values),IK(e._zod,`pattern`,()=>t.innerType._zod.pattern),e._zod.parse=(e,n)=>t.innerType._zod.run(e,n)}),kZ=q(`$ZodNullable`,(e,t)=>{TX.init(e,t),IK(e._zod,`optin`,()=>t.innerType._zod.optin),IK(e._zod,`optout`,()=>t.innerType._zod.optout),IK(e._zod,`pattern`,()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${PK(e.source)}|null)$`):void 0}),IK(e._zod,`values`,()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(e,n)=>e.value===null?e:t.innerType._zod.run(e,n)}),AZ=q(`$ZodDefault`,(e,t)=>{TX.init(e,t),e._zod.optin=`optional`,IK(e._zod,`values`,()=>t.innerType._zod.values),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);if(e.value===void 0)return e.value=t.defaultValue,e;let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(e=>vX(e,t)):vX(r,t)}}),jZ=q(`$ZodPrefault`,(e,t)=>{TX.init(e,t),e._zod.optin=`optional`,IK(e._zod,`values`,()=>t.innerType._zod.values),e._zod.parse=(e,n)=>(n.direction===`backward`||e.value===void 0&&(e.value=t.defaultValue),t.innerType._zod.run(e,n))}),MZ=q(`$ZodNonOptional`,(e,t)=>{TX.init(e,t),IK(e._zod,`values`,()=>{let e=t.innerType._zod.values;return e?new Set([...e].filter(e=>e!==void 0)):void 0}),e._zod.parse=(n,r)=>{let i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(t=>yX(t,e)):yX(i,e)}}),NZ=q(`$ZodSuccess`,(e,t)=>{TX.init(e,t),e._zod.parse=(e,n)=>{if(n.direction===`backward`)throw new xK(`ZodSuccess`);let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(t=>(e.value=t.issues.length===0,e)):(e.value=r.issues.length===0,e)}}),PZ=q(`$ZodCatch`,(e,t)=>{TX.init(e,t),e._zod.optin=`optional`,IK(e._zod,`optout`,()=>t.innerType._zod.optout),IK(e._zod,`values`,()=>t.innerType._zod.values),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(r=>(e.value=r.value,r.issues.length&&(e.value=t.catchValue({...e,error:{issues:r.issues.map(e=>fq(e,n,gK()))},input:e.value}),e.issues=[],e.fallback=!0),e)):(e.value=r.value,r.issues.length&&(e.value=t.catchValue({...e,error:{issues:r.issues.map(e=>fq(e,n,gK()))},input:e.value}),e.issues=[],e.fallback=!0),e)}}),FZ=q(`$ZodNaN`,(e,t)=>{TX.init(e,t),e._zod.parse=(t,n)=>((typeof t.value!=`number`||!Number.isNaN(t.value))&&t.issues.push({input:t.value,inst:e,expected:`nan`,code:`invalid_type`}),t)}),IZ=q(`$ZodPipe`,(e,t)=>{TX.init(e,t),IK(e._zod,`values`,()=>t.in._zod.values),IK(e._zod,`optin`,()=>t.in._zod.optin),IK(e._zod,`optout`,()=>t.out._zod.optout),IK(e._zod,`propValues`,()=>t.in._zod.propValues),e._zod.parse=(e,n)=>{if(n.direction===`backward`){let r=t.out._zod.run(e,n);return r instanceof Promise?r.then(e=>bX(e,t.in,n)):bX(r,t.in,n)}let r=t.in._zod.run(e,n);return r instanceof Promise?r.then(e=>bX(e,t.out,n)):bX(r,t.out,n)}}),LZ=q(`$ZodCodec`,(e,t)=>{TX.init(e,t),IK(e._zod,`values`,()=>t.in._zod.values),IK(e._zod,`optin`,()=>t.in._zod.optin),IK(e._zod,`optout`,()=>t.out._zod.optout),IK(e._zod,`propValues`,()=>t.in._zod.propValues),e._zod.parse=(e,n)=>{if((n.direction||`forward`)===`forward`){let r=t.in._zod.run(e,n);return r instanceof Promise?r.then(e=>xX(e,t,n)):xX(r,t,n)}{let r=t.out._zod.run(e,n);return r instanceof Promise?r.then(e=>xX(e,t,n)):xX(r,t,n)}}}),RZ=q(`$ZodPreprocess`,(e,t)=>{IZ.init(e,t)}),zZ=q(`$ZodReadonly`,(e,t)=>{TX.init(e,t),IK(e._zod,`propValues`,()=>t.innerType._zod.propValues),IK(e._zod,`values`,()=>t.innerType._zod.values),IK(e._zod,`optin`,()=>t.innerType?._zod?.optin),IK(e._zod,`optout`,()=>t.innerType?._zod?.optout),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(CX):CX(r)}}),BZ=q(`$ZodTemplateLiteral`,(e,t)=>{TX.init(e,t);let n=[];for(let e of t.parts)if(typeof e==`object`&&e){if(!e._zod.pattern)throw Error(`Invalid template literal part, no pattern found: ${[...e._zod.traits].shift()}`);let t=e._zod.pattern instanceof RegExp?e._zod.pattern.source:e._zod.pattern;if(!t)throw Error(`Invalid template literal part: ${e._zod.traits}`);let r=+!!t.startsWith(`^`),i=t.endsWith(`$`)?t.length-1:t.length;n.push(t.slice(r,i))}else if(e===null||kq.has(typeof e))n.push(XK(`${e}`));else throw Error(`Invalid template literal part: ${e}`);e._zod.pattern=RegExp(`^${n.join(``)}$`),e._zod.parse=(n,r)=>typeof n.value==`string`?(e._zod.pattern.lastIndex=0,e._zod.pattern.test(n.value)||n.issues.push({input:n.value,inst:e,code:`invalid_format`,format:t.format??`template_literal`,pattern:e._zod.pattern.source}),n):(n.issues.push({input:n.value,inst:e,expected:`string`,code:`invalid_type`}),n)}),VZ=q(`$ZodFunction`,(e,t)=>(TX.init(e,t),e._def=t,e._zod.def=t,e.implement=t=>{if(typeof t!=`function`)throw Error(`implement() must be called with a function`);return function(...n){let r=e._def.input?Wq(e._def.input,n):n,i=Reflect.apply(t,this,r);return e._def.output?Wq(e._def.output,i):i}},e.implementAsync=t=>{if(typeof t!=`function`)throw Error(`implementAsync() must be called with a function`);return async function(...n){let r=e._def.input?await Kq(e._def.input,n):n,i=await Reflect.apply(t,this,r);return e._def.output?await Kq(e._def.output,i):i}},e._zod.parse=(t,n)=>typeof t.value==`function`?(t.value=e._def.output&&e._def.output._zod.def.type===`promise`?e.implementAsync(t.value):e.implement(t.value),t):(t.issues.push({code:`invalid_type`,expected:`function`,input:t.value,inst:e}),t),e.input=(...t)=>{let n=e.constructor;return Array.isArray(t[0])?new n({type:`function`,input:new yZ({type:`tuple`,items:t[0],rest:t[1]}),output:e._def.output}):new n({type:`function`,input:t[0],output:e._def.output})},e.output=t=>{let n=e.constructor;return new n({type:`function`,input:e._def.input,output:t})},e)),HZ=q(`$ZodPromise`,(e,t)=>{TX.init(e,t),e._zod.parse=(e,n)=>Promise.resolve(e.value).then(e=>t.innerType._zod.run({value:e,issues:[]},n))}),UZ=q(`$ZodLazy`,(e,t)=>{TX.init(e,t),IK(e._zod,`innerType`,()=>{let e=t;return e._cachedInner||=t.getter(),e._cachedInner}),IK(e._zod,`pattern`,()=>e._zod.innerType?._zod?.pattern),IK(e._zod,`propValues`,()=>e._zod.innerType?._zod?.propValues),IK(e._zod,`optin`,()=>e._zod.innerType?._zod?.optin??void 0),IK(e._zod,`optout`,()=>e._zod.innerType?._zod?.optout??void 0),e._zod.parse=(t,n)=>e._zod.innerType._zod.run(t,n)}),WZ=q(`$ZodCustom`,(e,t)=>{DY.init(e,t),TX.init(e,t),e._zod.parse=(e,t)=>e,e._zod.check=n=>{let r=n.value,i=t.fn(r);if(i instanceof Promise)return i.then(t=>wX(t,n,r,e));wX(i,n,r,e)}})}));function KZ(){return{localeError:qZ()}}var qZ,JZ=o((()=>{Nq(),qZ=()=>{let e={string:{unit:`حرف`,verb:`أن يحوي`},file:{unit:`بايت`,verb:`أن يحوي`},array:{unit:`عنصر`,verb:`أن يحوي`},set:{unit:`عنصر`,verb:`أن يحوي`}};function t(t){return e[t]??null}let n={regex:`مدخل`,email:`بريد إلكتروني`,url:`رابط`,emoji:`إيموجي`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`تاريخ ووقت بمعيار ISO`,date:`تاريخ بمعيار ISO`,time:`وقت بمعيار ISO`,duration:`مدة بمعيار ISO`,ipv4:`عنوان IPv4`,ipv6:`عنوان IPv6`,cidrv4:`مدى عناوين بصيغة IPv4`,cidrv6:`مدى عناوين بصيغة IPv6`,base64:`نَص بترميز base64-encoded`,base64url:`نَص بترميز base64url-encoded`,json_string:`نَص على هيئة JSON`,e164:`رقم هاتف بمعيار E.164`,jwt:`JWT`,template_literal:`مدخل`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=hq(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`مدخلات غير مقبولة: يفترض إدخال instanceof ${e.expected}، ولكن تم إدخال ${i}`:`مدخلات غير مقبولة: يفترض إدخال ${t}، ولكن تم إدخال ${i}`}case`invalid_value`:return e.values.length===1?`مدخلات غير مقبولة: يفترض إدخال ${$K(e.values[0])}`:`اختيار غير مقبول: يتوقع انتقاء أحد هذه الخيارات: ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?` أكبر من اللازم: يفترض أن تكون ${e.origin??`القيمة`} ${n} ${e.maximum.toString()} ${r.unit??`عنصر`}`:`أكبر من اللازم: يفترض أن تكون ${e.origin??`القيمة`} ${n} ${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`أصغر من اللازم: يفترض لـ ${e.origin} أن يكون ${n} ${e.minimum.toString()} ${r.unit}`:`أصغر من اللازم: يفترض لـ ${e.origin} أن يكون ${n} ${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`نَص غير مقبول: يجب أن يبدأ بـ "${e.prefix}"`:t.format===`ends_with`?`نَص غير مقبول: يجب أن ينتهي بـ "${t.suffix}"`:t.format===`includes`?`نَص غير مقبول: يجب أن يتضمَّن "${t.includes}"`:t.format===`regex`?`نَص غير مقبول: يجب أن يطابق النمط ${t.pattern}`:`${n[t.format]??e.format} غير مقبول`}case`not_multiple_of`:return`رقم غير مقبول: يجب أن يكون من مضاعفات ${e.divisor}`;case`unrecognized_keys`:return`معرف${e.keys.length>1?`ات`:``} غريب${e.keys.length>1?`ة`:``}: ${J(e.keys,`، `)}`;case`invalid_key`:return`معرف غير مقبول في ${e.origin}`;case`invalid_union`:return`مدخل غير مقبول`;case`invalid_element`:return`مدخل غير مقبول في ${e.origin}`;default:return`مدخل غير مقبول`}}}}));function YZ(){return{localeError:XZ()}}var XZ,ZZ=o((()=>{Nq(),XZ=()=>{let e={string:{unit:`simvol`,verb:`olmalıdır`},file:{unit:`bayt`,verb:`olmalıdır`},array:{unit:`element`,verb:`olmalıdır`},set:{unit:`element`,verb:`olmalıdır`}};function t(t){return e[t]??null}let n={regex:`input`,email:`email address`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO datetime`,date:`ISO date`,time:`ISO time`,duration:`ISO duration`,ipv4:`IPv4 address`,ipv6:`IPv6 address`,cidrv4:`IPv4 range`,cidrv6:`IPv6 range`,base64:`base64-encoded string`,base64url:`base64url-encoded string`,json_string:`JSON string`,e164:`E.164 number`,jwt:`JWT`,template_literal:`input`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=hq(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Yanlış dəyər: gözlənilən instanceof ${e.expected}, daxil olan ${i}`:`Yanlış dəyər: gözlənilən ${t}, daxil olan ${i}`}case`invalid_value`:return e.values.length===1?`Yanlış dəyər: gözlənilən ${$K(e.values[0])}`:`Yanlış seçim: aşağıdakılardan biri olmalıdır: ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Çox böyük: gözlənilən ${e.origin??`dəyər`} ${n}${e.maximum.toString()} ${r.unit??`element`}`:`Çox böyük: gözlənilən ${e.origin??`dəyər`} ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Çox kiçik: gözlənilən ${e.origin} ${n}${e.minimum.toString()} ${r.unit}`:`Çox kiçik: gözlənilən ${e.origin} ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Yanlış mətn: "${t.prefix}" ilə başlamalıdır`:t.format===`ends_with`?`Yanlış mətn: "${t.suffix}" ilə bitməlidir`:t.format===`includes`?`Yanlış mətn: "${t.includes}" daxil olmalıdır`:t.format===`regex`?`Yanlış mətn: ${t.pattern} şablonuna uyğun olmalıdır`:`Yanlış ${n[t.format]??e.format}`}case`not_multiple_of`:return`Yanlış ədəd: ${e.divisor} ilə bölünə bilən olmalıdır`;case`unrecognized_keys`:return`Tanınmayan açar${e.keys.length>1?`lar`:``}: ${J(e.keys,`, `)}`;case`invalid_key`:return`${e.origin} daxilində yanlış açar`;case`invalid_union`:return`Yanlış dəyər`;case`invalid_element`:return`${e.origin} daxilində yanlış dəyər`;default:return`Yanlış dəyər`}}}}));function QZ(e,t,n,r){let i=Math.abs(e),a=i%10,o=i%100;return o>=11&&o<=19?r:a===1?t:a>=2&&a<=4?n:r}function $Z(){return{localeError:eQ()}}var eQ,tQ=o((()=>{Nq(),eQ=()=>{let e={string:{unit:{one:`сімвал`,few:`сімвалы`,many:`сімвалаў`},verb:`мець`},array:{unit:{one:`элемент`,few:`элементы`,many:`элементаў`},verb:`мець`},set:{unit:{one:`элемент`,few:`элементы`,many:`элементаў`},verb:`мець`},file:{unit:{one:`байт`,few:`байты`,many:`байтаў`},verb:`мець`}};function t(t){return e[t]??null}let n={regex:`увод`,email:`email адрас`,url:`URL`,emoji:`эмодзі`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO дата і час`,date:`ISO дата`,time:`ISO час`,duration:`ISO працягласць`,ipv4:`IPv4 адрас`,ipv6:`IPv6 адрас`,cidrv4:`IPv4 дыяпазон`,cidrv6:`IPv6 дыяпазон`,base64:`радок у фармаце base64`,base64url:`радок у фармаце base64url`,json_string:`JSON радок`,e164:`нумар E.164`,jwt:`JWT`,template_literal:`увод`},r={nan:`NaN`,number:`лік`,array:`масіў`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=hq(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Няправільны ўвод: чакаўся instanceof ${e.expected}, атрымана ${i}`:`Няправільны ўвод: чакаўся ${t}, атрымана ${i}`}case`invalid_value`:return e.values.length===1?`Няправільны ўвод: чакалася ${$K(e.values[0])}`:`Няправільны варыянт: чакаўся адзін з ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);if(r){let t=QZ(Number(e.maximum),r.unit.one,r.unit.few,r.unit.many);return`Занадта вялікі: чакалася, што ${e.origin??`значэнне`} павінна ${r.verb} ${n}${e.maximum.toString()} ${t}`}return`Занадта вялікі: чакалася, што ${e.origin??`значэнне`} павінна быць ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);if(r){let t=QZ(Number(e.minimum),r.unit.one,r.unit.few,r.unit.many);return`Занадта малы: чакалася, што ${e.origin} павінна ${r.verb} ${n}${e.minimum.toString()} ${t}`}return`Занадта малы: чакалася, што ${e.origin} павінна быць ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Няправільны радок: павінен пачынацца з "${t.prefix}"`:t.format===`ends_with`?`Няправільны радок: павінен заканчвацца на "${t.suffix}"`:t.format===`includes`?`Няправільны радок: павінен змяшчаць "${t.includes}"`:t.format===`regex`?`Няправільны радок: павінен адпавядаць шаблону ${t.pattern}`:`Няправільны ${n[t.format]??e.format}`}case`not_multiple_of`:return`Няправільны лік: павінен быць кратным ${e.divisor}`;case`unrecognized_keys`:return`Нераспазнаны ${e.keys.length>1?`ключы`:`ключ`}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Няправільны ключ у ${e.origin}`;case`invalid_union`:return`Няправільны ўвод`;case`invalid_element`:return`Няправільнае значэнне ў ${e.origin}`;default:return`Няправільны ўвод`}}}}));function nQ(){return{localeError:rQ()}}var rQ,iQ=o((()=>{Nq(),rQ=()=>{let e={string:{unit:`символа`,verb:`да съдържа`},file:{unit:`байта`,verb:`да съдържа`},array:{unit:`елемента`,verb:`да съдържа`},set:{unit:`елемента`,verb:`да съдържа`}};function t(t){return e[t]??null}let n={regex:`вход`,email:`имейл адрес`,url:`URL`,emoji:`емоджи`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO време`,date:`ISO дата`,time:`ISO време`,duration:`ISO продължителност`,ipv4:`IPv4 адрес`,ipv6:`IPv6 адрес`,cidrv4:`IPv4 диапазон`,cidrv6:`IPv6 диапазон`,base64:`base64-кодиран низ`,base64url:`base64url-кодиран низ`,json_string:`JSON низ`,e164:`E.164 номер`,jwt:`JWT`,template_literal:`вход`},r={nan:`NaN`,number:`число`,array:`масив`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=hq(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Невалиден вход: очакван instanceof ${e.expected}, получен ${i}`:`Невалиден вход: очакван ${t}, получен ${i}`}case`invalid_value`:return e.values.length===1?`Невалиден вход: очакван ${$K(e.values[0])}`:`Невалидна опция: очаквано едно от ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Твърде голямо: очаква се ${e.origin??`стойност`} да съдържа ${n}${e.maximum.toString()} ${r.unit??`елемента`}`:`Твърде голямо: очаква се ${e.origin??`стойност`} да бъде ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Твърде малко: очаква се ${e.origin} да съдържа ${n}${e.minimum.toString()} ${r.unit}`:`Твърде малко: очаква се ${e.origin} да бъде ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;if(t.format===`starts_with`)return`Невалиден низ: трябва да започва с "${t.prefix}"`;if(t.format===`ends_with`)return`Невалиден низ: трябва да завършва с "${t.suffix}"`;if(t.format===`includes`)return`Невалиден низ: трябва да включва "${t.includes}"`;if(t.format===`regex`)return`Невалиден низ: трябва да съвпада с ${t.pattern}`;let r=`Невалиден`;return t.format===`emoji`&&(r=`Невалидно`),t.format===`datetime`&&(r=`Невалидно`),t.format===`date`&&(r=`Невалидна`),t.format===`time`&&(r=`Невалидно`),t.format===`duration`&&(r=`Невалидна`),`${r} ${n[t.format]??e.format}`}case`not_multiple_of`:return`Невалидно число: трябва да бъде кратно на ${e.divisor}`;case`unrecognized_keys`:return`Неразпознат${e.keys.length>1?`и`:``} ключ${e.keys.length>1?`ове`:``}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Невалиден ключ в ${e.origin}`;case`invalid_union`:return`Невалиден вход`;case`invalid_element`:return`Невалидна стойност в ${e.origin}`;default:return`Невалиден вход`}}}}));function aQ(){return{localeError:oQ()}}var oQ,sQ=o((()=>{Nq(),oQ=()=>{let e={string:{unit:`caràcters`,verb:`contenir`},file:{unit:`bytes`,verb:`contenir`},array:{unit:`elements`,verb:`contenir`},set:{unit:`elements`,verb:`contenir`}};function t(t){return e[t]??null}let n={regex:`entrada`,email:`adreça electrònica`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`data i hora ISO`,date:`data ISO`,time:`hora ISO`,duration:`durada ISO`,ipv4:`adreça IPv4`,ipv6:`adreça IPv6`,cidrv4:`rang IPv4`,cidrv6:`rang IPv6`,base64:`cadena codificada en base64`,base64url:`cadena codificada en base64url`,json_string:`cadena JSON`,e164:`número E.164`,jwt:`JWT`,template_literal:`entrada`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=hq(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Tipus invàlid: s'esperava instanceof ${e.expected}, s'ha rebut ${i}`:`Tipus invàlid: s'esperava ${t}, s'ha rebut ${i}`}case`invalid_value`:return e.values.length===1?`Valor invàlid: s'esperava ${$K(e.values[0])}`:`Opció invàlida: s'esperava una de ${J(e.values,` o `)}`;case`too_big`:{let n=e.inclusive?`com a màxim`:`menys de`,r=t(e.origin);return r?`Massa gran: s'esperava que ${e.origin??`el valor`} contingués ${n} ${e.maximum.toString()} ${r.unit??`elements`}`:`Massa gran: s'esperava que ${e.origin??`el valor`} fos ${n} ${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`com a mínim`:`més de`,r=t(e.origin);return r?`Massa petit: s'esperava que ${e.origin} contingués ${n} ${e.minimum.toString()} ${r.unit}`:`Massa petit: s'esperava que ${e.origin} fos ${n} ${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Format invàlid: ha de començar amb "${t.prefix}"`:t.format===`ends_with`?`Format invàlid: ha d'acabar amb "${t.suffix}"`:t.format===`includes`?`Format invàlid: ha d'incloure "${t.includes}"`:t.format===`regex`?`Format invàlid: ha de coincidir amb el patró ${t.pattern}`:`Format invàlid per a ${n[t.format]??e.format}`}case`not_multiple_of`:return`Número invàlid: ha de ser múltiple de ${e.divisor}`;case`unrecognized_keys`:return`Clau${e.keys.length>1?`s`:``} no reconeguda${e.keys.length>1?`s`:``}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Clau invàlida a ${e.origin}`;case`invalid_union`:return`Entrada invàlida`;case`invalid_element`:return`Element invàlid a ${e.origin}`;default:return`Entrada invàlida`}}}}));function cQ(){return{localeError:lQ()}}var lQ,uQ=o((()=>{Nq(),lQ=()=>{let e={string:{unit:`znaků`,verb:`mít`},file:{unit:`bajtů`,verb:`mít`},array:{unit:`prvků`,verb:`mít`},set:{unit:`prvků`,verb:`mít`}};function t(t){return e[t]??null}let n={regex:`regulární výraz`,email:`e-mailová adresa`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`datum a čas ve formátu ISO`,date:`datum ve formátu ISO`,time:`čas ve formátu ISO`,duration:`doba trvání ISO`,ipv4:`IPv4 adresa`,ipv6:`IPv6 adresa`,cidrv4:`rozsah IPv4`,cidrv6:`rozsah IPv6`,base64:`řetězec zakódovaný ve formátu base64`,base64url:`řetězec zakódovaný ve formátu base64url`,json_string:`řetězec ve formátu JSON`,e164:`číslo E.164`,jwt:`JWT`,template_literal:`vstup`},r={nan:`NaN`,number:`číslo`,string:`řetězec`,function:`funkce`,array:`pole`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=hq(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Neplatný vstup: očekáváno instanceof ${e.expected}, obdrženo ${i}`:`Neplatný vstup: očekáváno ${t}, obdrženo ${i}`}case`invalid_value`:return e.values.length===1?`Neplatný vstup: očekáváno ${$K(e.values[0])}`:`Neplatná možnost: očekávána jedna z hodnot ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Hodnota je příliš velká: ${e.origin??`hodnota`} musí mít ${n}${e.maximum.toString()} ${r.unit??`prvků`}`:`Hodnota je příliš velká: ${e.origin??`hodnota`} musí být ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Hodnota je příliš malá: ${e.origin??`hodnota`} musí mít ${n}${e.minimum.toString()} ${r.unit??`prvků`}`:`Hodnota je příliš malá: ${e.origin??`hodnota`} musí být ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Neplatný řetězec: musí začínat na "${t.prefix}"`:t.format===`ends_with`?`Neplatný řetězec: musí končit na "${t.suffix}"`:t.format===`includes`?`Neplatný řetězec: musí obsahovat "${t.includes}"`:t.format===`regex`?`Neplatný řetězec: musí odpovídat vzoru ${t.pattern}`:`Neplatný formát ${n[t.format]??e.format}`}case`not_multiple_of`:return`Neplatné číslo: musí být násobkem ${e.divisor}`;case`unrecognized_keys`:return`Neznámé klíče: ${J(e.keys,`, `)}`;case`invalid_key`:return`Neplatný klíč v ${e.origin}`;case`invalid_union`:return`Neplatný vstup`;case`invalid_element`:return`Neplatná hodnota v ${e.origin}`;default:return`Neplatný vstup`}}}}));function dQ(){return{localeError:fQ()}}var fQ,pQ=o((()=>{Nq(),fQ=()=>{let e={string:{unit:`tegn`,verb:`havde`},file:{unit:`bytes`,verb:`havde`},array:{unit:`elementer`,verb:`indeholdt`},set:{unit:`elementer`,verb:`indeholdt`}};function t(t){return e[t]??null}let n={regex:`input`,email:`e-mailadresse`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO dato- og klokkeslæt`,date:`ISO-dato`,time:`ISO-klokkeslæt`,duration:`ISO-varighed`,ipv4:`IPv4-område`,ipv6:`IPv6-område`,cidrv4:`IPv4-spektrum`,cidrv6:`IPv6-spektrum`,base64:`base64-kodet streng`,base64url:`base64url-kodet streng`,json_string:`JSON-streng`,e164:`E.164-nummer`,jwt:`JWT`,template_literal:`input`},r={nan:`NaN`,string:`streng`,number:`tal`,boolean:`boolean`,array:`liste`,object:`objekt`,set:`sæt`,file:`fil`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=hq(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Ugyldigt input: forventede instanceof ${e.expected}, fik ${i}`:`Ugyldigt input: forventede ${t}, fik ${i}`}case`invalid_value`:return e.values.length===1?`Ugyldig værdi: forventede ${$K(e.values[0])}`:`Ugyldigt valg: forventede en af følgende ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,i=t(e.origin),a=r[e.origin]??e.origin;return i?`For stor: forventede ${a??`value`} ${i.verb} ${n} ${e.maximum.toString()} ${i.unit??`elementer`}`:`For stor: forventede ${a??`value`} havde ${n} ${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,i=t(e.origin),a=r[e.origin]??e.origin;return i?`For lille: forventede ${a} ${i.verb} ${n} ${e.minimum.toString()} ${i.unit}`:`For lille: forventede ${a} havde ${n} ${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Ugyldig streng: skal starte med "${t.prefix}"`:t.format===`ends_with`?`Ugyldig streng: skal ende med "${t.suffix}"`:t.format===`includes`?`Ugyldig streng: skal indeholde "${t.includes}"`:t.format===`regex`?`Ugyldig streng: skal matche mønsteret ${t.pattern}`:`Ugyldig ${n[t.format]??e.format}`}case`not_multiple_of`:return`Ugyldigt tal: skal være deleligt med ${e.divisor}`;case`unrecognized_keys`:return`${e.keys.length>1?`Ukendte nøgler`:`Ukendt nøgle`}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Ugyldig nøgle i ${e.origin}`;case`invalid_union`:return`Ugyldigt input: matcher ingen af de tilladte typer`;case`invalid_element`:return`Ugyldig værdi i ${e.origin}`;default:return`Ugyldigt input`}}}}));function mQ(){return{localeError:hQ()}}var hQ,gQ=o((()=>{Nq(),hQ=()=>{let e={string:{unit:`Zeichen`,verb:`zu haben`},file:{unit:`Bytes`,verb:`zu haben`},array:{unit:`Elemente`,verb:`zu haben`},set:{unit:`Elemente`,verb:`zu haben`}};function t(t){return e[t]??null}let n={regex:`Eingabe`,email:`E-Mail-Adresse`,url:`URL`,emoji:`Emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO-Datum und -Uhrzeit`,date:`ISO-Datum`,time:`ISO-Uhrzeit`,duration:`ISO-Dauer`,ipv4:`IPv4-Adresse`,ipv6:`IPv6-Adresse`,cidrv4:`IPv4-Bereich`,cidrv6:`IPv6-Bereich`,base64:`Base64-codierter String`,base64url:`Base64-URL-codierter String`,json_string:`JSON-String`,e164:`E.164-Nummer`,jwt:`JWT`,template_literal:`Eingabe`},r={nan:`NaN`,number:`Zahl`,array:`Array`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=hq(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Ungültige Eingabe: erwartet instanceof ${e.expected}, erhalten ${i}`:`Ungültige Eingabe: erwartet ${t}, erhalten ${i}`}case`invalid_value`:return e.values.length===1?`Ungültige Eingabe: erwartet ${$K(e.values[0])}`:`Ungültige Option: erwartet eine von ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Zu groß: erwartet, dass ${e.origin??`Wert`} ${n}${e.maximum.toString()} ${r.unit??`Elemente`} hat`:`Zu groß: erwartet, dass ${e.origin??`Wert`} ${n}${e.maximum.toString()} ist`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Zu klein: erwartet, dass ${e.origin} ${n}${e.minimum.toString()} ${r.unit} hat`:`Zu klein: erwartet, dass ${e.origin} ${n}${e.minimum.toString()} ist`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Ungültiger String: muss mit "${t.prefix}" beginnen`:t.format===`ends_with`?`Ungültiger String: muss mit "${t.suffix}" enden`:t.format===`includes`?`Ungültiger String: muss "${t.includes}" enthalten`:t.format===`regex`?`Ungültiger String: muss dem Muster ${t.pattern} entsprechen`:`Ungültig: ${n[t.format]??e.format}`}case`not_multiple_of`:return`Ungültige Zahl: muss ein Vielfaches von ${e.divisor} sein`;case`unrecognized_keys`:return`${e.keys.length>1?`Unbekannte Schlüssel`:`Unbekannter Schlüssel`}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Ungültiger Schlüssel in ${e.origin}`;case`invalid_union`:return`Ungültige Eingabe`;case`invalid_element`:return`Ungültiger Wert in ${e.origin}`;default:return`Ungültige Eingabe`}}}}));function _Q(){return{localeError:vQ()}}var vQ,yQ=o((()=>{Nq(),vQ=()=>{let e={string:{unit:`χαρακτήρες`,verb:`να έχει`},file:{unit:`bytes`,verb:`να έχει`},array:{unit:`στοιχεία`,verb:`να έχει`},set:{unit:`στοιχεία`,verb:`να έχει`},map:{unit:`καταχωρήσεις`,verb:`να έχει`}};function t(t){return e[t]??null}let n={regex:`είσοδος`,email:`διεύθυνση email`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO ημερομηνία και ώρα`,date:`ISO ημερομηνία`,time:`ISO ώρα`,duration:`ISO διάρκεια`,ipv4:`διεύθυνση IPv4`,ipv6:`διεύθυνση IPv6`,mac:`διεύθυνση MAC`,cidrv4:`εύρος IPv4`,cidrv6:`εύρος IPv6`,base64:`συμβολοσειρά κωδικοποιημένη σε base64`,base64url:`συμβολοσειρά κωδικοποιημένη σε base64url`,json_string:`συμβολοσειρά JSON`,e164:`αριθμός E.164`,jwt:`JWT`,template_literal:`είσοδος`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=hq(e.input),i=r[n]??n;return typeof e.expected==`string`&&/^[A-Z]/.test(e.expected)?`Μη έγκυρη είσοδος: αναμενόταν instanceof ${e.expected}, λήφθηκε ${i}`:`Μη έγκυρη είσοδος: αναμενόταν ${t}, λήφθηκε ${i}`}case`invalid_value`:return e.values.length===1?`Μη έγκυρη είσοδος: αναμενόταν ${$K(e.values[0])}`:`Μη έγκυρη επιλογή: αναμενόταν ένα από ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Πολύ μεγάλο: αναμενόταν ${e.origin??`τιμή`} να έχει ${n}${e.maximum.toString()} ${r.unit??`στοιχεία`}`:`Πολύ μεγάλο: αναμενόταν ${e.origin??`τιμή`} να είναι ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Πολύ μικρό: αναμενόταν ${e.origin} να έχει ${n}${e.minimum.toString()} ${r.unit}`:`Πολύ μικρό: αναμενόταν ${e.origin} να είναι ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Μη έγκυρη συμβολοσειρά: πρέπει να ξεκινά με "${t.prefix}"`:t.format===`ends_with`?`Μη έγκυρη συμβολοσειρά: πρέπει να τελειώνει με "${t.suffix}"`:t.format===`includes`?`Μη έγκυρη συμβολοσειρά: πρέπει να περιέχει "${t.includes}"`:t.format===`regex`?`Μη έγκυρη συμβολοσειρά: πρέπει να ταιριάζει με το μοτίβο ${t.pattern}`:`Μη έγκυρο: ${n[t.format]??e.format}`}case`not_multiple_of`:return`Μη έγκυρος αριθμός: πρέπει να είναι πολλαπλάσιο του ${e.divisor}`;case`unrecognized_keys`:return`Άγνωστ${e.keys.length>1?`α`:`ο`} κλειδ${e.keys.length>1?`ιά`:`ί`}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Μη έγκυρο κλειδί στο ${e.origin}`;case`invalid_union`:return`Μη έγκυρη είσοδος`;case`invalid_element`:return`Μη έγκυρη τιμή στο ${e.origin}`;default:return`Μη έγκυρη είσοδος`}}}}));function bQ(){return{localeError:xQ()}}var xQ,SQ=o((()=>{Nq(),xQ=()=>{let e={string:{unit:`characters`,verb:`to have`},file:{unit:`bytes`,verb:`to have`},array:{unit:`items`,verb:`to have`},set:{unit:`items`,verb:`to have`},map:{unit:`entries`,verb:`to have`}};function t(t){return e[t]??null}let n={regex:`input`,email:`email address`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO datetime`,date:`ISO date`,time:`ISO time`,duration:`ISO duration`,ipv4:`IPv4 address`,ipv6:`IPv6 address`,mac:`MAC address`,cidrv4:`IPv4 range`,cidrv6:`IPv6 range`,base64:`base64-encoded string`,base64url:`base64url-encoded string`,json_string:`JSON string`,e164:`E.164 number`,jwt:`JWT`,template_literal:`input`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=hq(e.input);return`Invalid input: expected ${t}, received ${r[n]??n}`}case`invalid_value`:return e.values.length===1?`Invalid input: expected ${$K(e.values[0])}`:`Invalid option: expected one of ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Too big: expected ${e.origin??`value`} to have ${n}${e.maximum.toString()} ${r.unit??`elements`}`:`Too big: expected ${e.origin??`value`} to be ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Too small: expected ${e.origin} to have ${n}${e.minimum.toString()} ${r.unit}`:`Too small: expected ${e.origin} to be ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Invalid string: must start with "${t.prefix}"`:t.format===`ends_with`?`Invalid string: must end with "${t.suffix}"`:t.format===`includes`?`Invalid string: must include "${t.includes}"`:t.format===`regex`?`Invalid string: must match pattern ${t.pattern}`:`Invalid ${n[t.format]??e.format}`}case`not_multiple_of`:return`Invalid number: must be a multiple of ${e.divisor}`;case`unrecognized_keys`:return`Unrecognized key${e.keys.length>1?`s`:``}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Invalid key in ${e.origin}`;case`invalid_union`:return e.options&&Array.isArray(e.options)&&e.options.length>0?`Invalid discriminator value. Expected ${e.options.map(e=>`'${e}'`).join(` | `)}`:`Invalid input`;case`invalid_element`:return`Invalid value in ${e.origin}`;default:return`Invalid input`}}}}));function CQ(){return{localeError:wQ()}}var wQ,TQ=o((()=>{Nq(),wQ=()=>{let e={string:{unit:`karaktrojn`,verb:`havi`},file:{unit:`bajtojn`,verb:`havi`},array:{unit:`elementojn`,verb:`havi`},set:{unit:`elementojn`,verb:`havi`}};function t(t){return e[t]??null}let n={regex:`enigo`,email:`retadreso`,url:`URL`,emoji:`emoĝio`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO-datotempo`,date:`ISO-dato`,time:`ISO-tempo`,duration:`ISO-daŭro`,ipv4:`IPv4-adreso`,ipv6:`IPv6-adreso`,cidrv4:`IPv4-rango`,cidrv6:`IPv6-rango`,base64:`64-ume kodita karaktraro`,base64url:`URL-64-ume kodita karaktraro`,json_string:`JSON-karaktraro`,e164:`E.164-nombro`,jwt:`JWT`,template_literal:`enigo`},r={nan:`NaN`,number:`nombro`,array:`tabelo`,null:`senvalora`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=hq(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Nevalida enigo: atendiĝis instanceof ${e.expected}, riceviĝis ${i}`:`Nevalida enigo: atendiĝis ${t}, riceviĝis ${i}`}case`invalid_value`:return e.values.length===1?`Nevalida enigo: atendiĝis ${$K(e.values[0])}`:`Nevalida opcio: atendiĝis unu el ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Tro granda: atendiĝis ke ${e.origin??`valoro`} havu ${n}${e.maximum.toString()} ${r.unit??`elementojn`}`:`Tro granda: atendiĝis ke ${e.origin??`valoro`} havu ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Tro malgranda: atendiĝis ke ${e.origin} havu ${n}${e.minimum.toString()} ${r.unit}`:`Tro malgranda: atendiĝis ke ${e.origin} estu ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Nevalida karaktraro: devas komenciĝi per "${t.prefix}"`:t.format===`ends_with`?`Nevalida karaktraro: devas finiĝi per "${t.suffix}"`:t.format===`includes`?`Nevalida karaktraro: devas inkluzivi "${t.includes}"`:t.format===`regex`?`Nevalida karaktraro: devas kongrui kun la modelo ${t.pattern}`:`Nevalida ${n[t.format]??e.format}`}case`not_multiple_of`:return`Nevalida nombro: devas esti oblo de ${e.divisor}`;case`unrecognized_keys`:return`Nekonata${e.keys.length>1?`j`:``} ŝlosilo${e.keys.length>1?`j`:``}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Nevalida ŝlosilo en ${e.origin}`;case`invalid_union`:return`Nevalida enigo`;case`invalid_element`:return`Nevalida valoro en ${e.origin}`;default:return`Nevalida enigo`}}}}));function EQ(){return{localeError:DQ()}}var DQ,OQ=o((()=>{Nq(),DQ=()=>{let e={string:{unit:`caracteres`,verb:`tener`},file:{unit:`bytes`,verb:`tener`},array:{unit:`elementos`,verb:`tener`},set:{unit:`elementos`,verb:`tener`}};function t(t){return e[t]??null}let n={regex:`entrada`,email:`dirección de correo electrónico`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`fecha y hora ISO`,date:`fecha ISO`,time:`hora ISO`,duration:`duración ISO`,ipv4:`dirección IPv4`,ipv6:`dirección IPv6`,cidrv4:`rango IPv4`,cidrv6:`rango IPv6`,base64:`cadena codificada en base64`,base64url:`URL codificada en base64`,json_string:`cadena JSON`,e164:`número E.164`,jwt:`JWT`,template_literal:`entrada`},r={nan:`NaN`,string:`texto`,number:`número`,boolean:`booleano`,array:`arreglo`,object:`objeto`,set:`conjunto`,file:`archivo`,date:`fecha`,bigint:`número grande`,symbol:`símbolo`,undefined:`indefinido`,null:`nulo`,function:`función`,map:`mapa`,record:`registro`,tuple:`tupla`,enum:`enumeración`,union:`unión`,literal:`literal`,promise:`promesa`,void:`vacío`,never:`nunca`,unknown:`desconocido`,any:`cualquiera`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=hq(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Entrada inválida: se esperaba instanceof ${e.expected}, recibido ${i}`:`Entrada inválida: se esperaba ${t}, recibido ${i}`}case`invalid_value`:return e.values.length===1?`Entrada inválida: se esperaba ${$K(e.values[0])}`:`Opción inválida: se esperaba una de ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,i=t(e.origin),a=r[e.origin]??e.origin;return i?`Demasiado grande: se esperaba que ${a??`valor`} tuviera ${n}${e.maximum.toString()} ${i.unit??`elementos`}`:`Demasiado grande: se esperaba que ${a??`valor`} fuera ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,i=t(e.origin),a=r[e.origin]??e.origin;return i?`Demasiado pequeño: se esperaba que ${a} tuviera ${n}${e.minimum.toString()} ${i.unit}`:`Demasiado pequeño: se esperaba que ${a} fuera ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Cadena inválida: debe comenzar con "${t.prefix}"`:t.format===`ends_with`?`Cadena inválida: debe terminar en "${t.suffix}"`:t.format===`includes`?`Cadena inválida: debe incluir "${t.includes}"`:t.format===`regex`?`Cadena inválida: debe coincidir con el patrón ${t.pattern}`:`Inválido ${n[t.format]??e.format}`}case`not_multiple_of`:return`Número inválido: debe ser múltiplo de ${e.divisor}`;case`unrecognized_keys`:return`Llave${e.keys.length>1?`s`:``} desconocida${e.keys.length>1?`s`:``}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Llave inválida en ${r[e.origin]??e.origin}`;case`invalid_union`:return`Entrada inválida`;case`invalid_element`:return`Valor inválido en ${r[e.origin]??e.origin}`;default:return`Entrada inválida`}}}}));function kQ(){return{localeError:AQ()}}var AQ,jQ=o((()=>{Nq(),AQ=()=>{let e={string:{unit:`کاراکتر`,verb:`داشته باشد`},file:{unit:`بایت`,verb:`داشته باشد`},array:{unit:`آیتم`,verb:`داشته باشد`},set:{unit:`آیتم`,verb:`داشته باشد`}};function t(t){return e[t]??null}let n={regex:`ورودی`,email:`آدرس ایمیل`,url:`URL`,emoji:`ایموجی`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`تاریخ و زمان ایزو`,date:`تاریخ ایزو`,time:`زمان ایزو`,duration:`مدت زمان ایزو`,ipv4:`IPv4 آدرس`,ipv6:`IPv6 آدرس`,cidrv4:`IPv4 دامنه`,cidrv6:`IPv6 دامنه`,base64:`base64-encoded رشته`,base64url:`base64url-encoded رشته`,json_string:`JSON رشته`,e164:`E.164 عدد`,jwt:`JWT`,template_literal:`ورودی`},r={nan:`NaN`,number:`عدد`,array:`آرایه`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=hq(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`ورودی نامعتبر: می‌بایست instanceof ${e.expected} می‌بود، ${i} دریافت شد`:`ورودی نامعتبر: می‌بایست ${t} می‌بود، ${i} دریافت شد`}case`invalid_value`:return e.values.length===1?`ورودی نامعتبر: می‌بایست ${$K(e.values[0])} می‌بود`:`گزینه نامعتبر: می‌بایست یکی از ${J(e.values,`|`)} می‌بود`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`خیلی بزرگ: ${e.origin??`مقدار`} باید ${n}${e.maximum.toString()} ${r.unit??`عنصر`} باشد`:`خیلی بزرگ: ${e.origin??`مقدار`} باید ${n}${e.maximum.toString()} باشد`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`خیلی کوچک: ${e.origin} باید ${n}${e.minimum.toString()} ${r.unit} باشد`:`خیلی کوچک: ${e.origin} باید ${n}${e.minimum.toString()} باشد`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`رشته نامعتبر: باید با "${t.prefix}" شروع شود`:t.format===`ends_with`?`رشته نامعتبر: باید با "${t.suffix}" تمام شود`:t.format===`includes`?`رشته نامعتبر: باید شامل "${t.includes}" باشد`:t.format===`regex`?`رشته نامعتبر: باید با الگوی ${t.pattern} مطابقت داشته باشد`:`${n[t.format]??e.format} نامعتبر`}case`not_multiple_of`:return`عدد نامعتبر: باید مضرب ${e.divisor} باشد`;case`unrecognized_keys`:return`کلید${e.keys.length>1?`های`:``} ناشناس: ${J(e.keys,`, `)}`;case`invalid_key`:return`کلید ناشناس در ${e.origin}`;case`invalid_union`:return`ورودی نامعتبر`;case`invalid_element`:return`مقدار نامعتبر در ${e.origin}`;default:return`ورودی نامعتبر`}}}}));function MQ(){return{localeError:NQ()}}var NQ,PQ=o((()=>{Nq(),NQ=()=>{let e={string:{unit:`merkkiä`,subject:`merkkijonon`},file:{unit:`tavua`,subject:`tiedoston`},array:{unit:`alkiota`,subject:`listan`},set:{unit:`alkiota`,subject:`joukon`},number:{unit:``,subject:`luvun`},bigint:{unit:``,subject:`suuren kokonaisluvun`},int:{unit:``,subject:`kokonaisluvun`},date:{unit:``,subject:`päivämäärän`}};function t(t){return e[t]??null}let n={regex:`säännöllinen lauseke`,email:`sähköpostiosoite`,url:`URL-osoite`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO-aikaleima`,date:`ISO-päivämäärä`,time:`ISO-aika`,duration:`ISO-kesto`,ipv4:`IPv4-osoite`,ipv6:`IPv6-osoite`,cidrv4:`IPv4-alue`,cidrv6:`IPv6-alue`,base64:`base64-koodattu merkkijono`,base64url:`base64url-koodattu merkkijono`,json_string:`JSON-merkkijono`,e164:`E.164-luku`,jwt:`JWT`,template_literal:`templaattimerkkijono`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=hq(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Virheellinen tyyppi: odotettiin instanceof ${e.expected}, oli ${i}`:`Virheellinen tyyppi: odotettiin ${t}, oli ${i}`}case`invalid_value`:return e.values.length===1?`Virheellinen syöte: täytyy olla ${$K(e.values[0])}`:`Virheellinen valinta: täytyy olla yksi seuraavista: ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Liian suuri: ${r.subject} täytyy olla ${n}${e.maximum.toString()} ${r.unit}`.trim():`Liian suuri: arvon täytyy olla ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Liian pieni: ${r.subject} täytyy olla ${n}${e.minimum.toString()} ${r.unit}`.trim():`Liian pieni: arvon täytyy olla ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Virheellinen syöte: täytyy alkaa "${t.prefix}"`:t.format===`ends_with`?`Virheellinen syöte: täytyy loppua "${t.suffix}"`:t.format===`includes`?`Virheellinen syöte: täytyy sisältää "${t.includes}"`:t.format===`regex`?`Virheellinen syöte: täytyy vastata säännöllistä lauseketta ${t.pattern}`:`Virheellinen ${n[t.format]??e.format}`}case`not_multiple_of`:return`Virheellinen luku: täytyy olla luvun ${e.divisor} monikerta`;case`unrecognized_keys`:return`${e.keys.length>1?`Tuntemattomat avaimet`:`Tuntematon avain`}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Virheellinen avain tietueessa`;case`invalid_union`:return`Virheellinen unioni`;case`invalid_element`:return`Virheellinen arvo joukossa`;default:return`Virheellinen syöte`}}}}));function FQ(){return{localeError:IQ()}}var IQ,LQ=o((()=>{Nq(),IQ=()=>{let e={string:{unit:`caractères`,verb:`avoir`},file:{unit:`octets`,verb:`avoir`},array:{unit:`éléments`,verb:`avoir`},set:{unit:`éléments`,verb:`avoir`}};function t(t){return e[t]??null}let n={regex:`entrée`,email:`adresse e-mail`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`date et heure ISO`,date:`date ISO`,time:`heure ISO`,duration:`durée ISO`,ipv4:`adresse IPv4`,ipv6:`adresse IPv6`,cidrv4:`plage IPv4`,cidrv6:`plage IPv6`,base64:`chaîne encodée en base64`,base64url:`chaîne encodée en base64url`,json_string:`chaîne JSON`,e164:`numéro E.164`,jwt:`JWT`,template_literal:`entrée`},r={string:`chaîne`,number:`nombre`,int:`entier`,boolean:`booléen`,bigint:`grand entier`,symbol:`symbole`,undefined:`indéfini`,null:`null`,never:`jamais`,void:`vide`,date:`date`,array:`tableau`,object:`objet`,tuple:`tuple`,record:`enregistrement`,map:`carte`,set:`ensemble`,file:`fichier`,nonoptional:`non-optionnel`,nan:`NaN`,function:`fonction`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=hq(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Entrée invalide : instanceof ${e.expected} attendu, ${i} reçu`:`Entrée invalide : ${t} attendu, ${i} reçu`}case`invalid_value`:return e.values.length===1?`Entrée invalide : ${$K(e.values[0])} attendu`:`Option invalide : une valeur parmi ${J(e.values,`|`)} attendue`;case`too_big`:{let n=e.inclusive?`<=`:`<`,i=t(e.origin);return i?`Trop grand : ${r[e.origin]??`valeur`} doit ${i.verb} ${n}${e.maximum.toString()} ${i.unit??`élément(s)`}`:`Trop grand : ${r[e.origin]??`valeur`} doit être ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,i=t(e.origin);return i?`Trop petit : ${r[e.origin]??`valeur`} doit ${i.verb} ${n}${e.minimum.toString()} ${i.unit}`:`Trop petit : ${r[e.origin]??`valeur`} doit être ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Chaîne invalide : doit commencer par "${t.prefix}"`:t.format===`ends_with`?`Chaîne invalide : doit se terminer par "${t.suffix}"`:t.format===`includes`?`Chaîne invalide : doit inclure "${t.includes}"`:t.format===`regex`?`Chaîne invalide : doit correspondre au modèle ${t.pattern}`:`${n[t.format]??e.format} invalide`}case`not_multiple_of`:return`Nombre invalide : doit être un multiple de ${e.divisor}`;case`unrecognized_keys`:return`Clé${e.keys.length>1?`s`:``} non reconnue${e.keys.length>1?`s`:``} : ${J(e.keys,`, `)}`;case`invalid_key`:return`Clé invalide dans ${e.origin}`;case`invalid_union`:return`Entrée invalide`;case`invalid_element`:return`Valeur invalide dans ${e.origin}`;default:return`Entrée invalide`}}}}));function RQ(){return{localeError:zQ()}}var zQ,BQ=o((()=>{Nq(),zQ=()=>{let e={string:{unit:`caractères`,verb:`avoir`},file:{unit:`octets`,verb:`avoir`},array:{unit:`éléments`,verb:`avoir`},set:{unit:`éléments`,verb:`avoir`}};function t(t){return e[t]??null}let n={regex:`entrée`,email:`adresse courriel`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`date-heure ISO`,date:`date ISO`,time:`heure ISO`,duration:`durée ISO`,ipv4:`adresse IPv4`,ipv6:`adresse IPv6`,cidrv4:`plage IPv4`,cidrv6:`plage IPv6`,base64:`chaîne encodée en base64`,base64url:`chaîne encodée en base64url`,json_string:`chaîne JSON`,e164:`numéro E.164`,jwt:`JWT`,template_literal:`entrée`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=hq(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Entrée invalide : attendu instanceof ${e.expected}, reçu ${i}`:`Entrée invalide : attendu ${t}, reçu ${i}`}case`invalid_value`:return e.values.length===1?`Entrée invalide : attendu ${$K(e.values[0])}`:`Option invalide : attendu l'une des valeurs suivantes ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`≤`:`<`,r=t(e.origin);return r?`Trop grand : attendu que ${e.origin??`la valeur`} ait ${n}${e.maximum.toString()} ${r.unit}`:`Trop grand : attendu que ${e.origin??`la valeur`} soit ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`≥`:`>`,r=t(e.origin);return r?`Trop petit : attendu que ${e.origin} ait ${n}${e.minimum.toString()} ${r.unit}`:`Trop petit : attendu que ${e.origin} soit ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Chaîne invalide : doit commencer par "${t.prefix}"`:t.format===`ends_with`?`Chaîne invalide : doit se terminer par "${t.suffix}"`:t.format===`includes`?`Chaîne invalide : doit inclure "${t.includes}"`:t.format===`regex`?`Chaîne invalide : doit correspondre au motif ${t.pattern}`:`${n[t.format]??e.format} invalide`}case`not_multiple_of`:return`Nombre invalide : doit être un multiple de ${e.divisor}`;case`unrecognized_keys`:return`Clé${e.keys.length>1?`s`:``} non reconnue${e.keys.length>1?`s`:``} : ${J(e.keys,`, `)}`;case`invalid_key`:return`Clé invalide dans ${e.origin}`;case`invalid_union`:return`Entrée invalide`;case`invalid_element`:return`Valeur invalide dans ${e.origin}`;default:return`Entrée invalide`}}}}));function VQ(){return{localeError:HQ()}}var HQ,UQ=o((()=>{Nq(),HQ=()=>{let e={string:{label:`מחרוזת`,gender:`f`},number:{label:`מספר`,gender:`m`},boolean:{label:`ערך בוליאני`,gender:`m`},bigint:{label:`BigInt`,gender:`m`},date:{label:`תאריך`,gender:`m`},array:{label:`מערך`,gender:`m`},object:{label:`אובייקט`,gender:`m`},null:{label:`ערך ריק (null)`,gender:`m`},undefined:{label:`ערך לא מוגדר (undefined)`,gender:`m`},symbol:{label:`סימבול (Symbol)`,gender:`m`},function:{label:`פונקציה`,gender:`f`},map:{label:`מפה (Map)`,gender:`f`},set:{label:`קבוצה (Set)`,gender:`f`},file:{label:`קובץ`,gender:`m`},promise:{label:`Promise`,gender:`m`},NaN:{label:`NaN`,gender:`m`},unknown:{label:`ערך לא ידוע`,gender:`m`},value:{label:`ערך`,gender:`m`}},t={string:{unit:`תווים`,shortLabel:`קצר`,longLabel:`ארוך`},file:{unit:`בייטים`,shortLabel:`קטן`,longLabel:`גדול`},array:{unit:`פריטים`,shortLabel:`קטן`,longLabel:`גדול`},set:{unit:`פריטים`,shortLabel:`קטן`,longLabel:`גדול`},number:{unit:``,shortLabel:`קטן`,longLabel:`גדול`}},n=t=>t?e[t]:void 0,r=t=>{let r=n(t);return r?r.label:t??e.unknown.label},i=e=>`ה${r(e)}`,a=e=>(n(e)?.gender??`m`)===`f`?`צריכה להיות`:`צריך להיות`,o=e=>e?t[e]??null:null,s={regex:{label:`קלט`,gender:`m`},email:{label:`כתובת אימייל`,gender:`f`},url:{label:`כתובת רשת`,gender:`f`},emoji:{label:`אימוג'י`,gender:`m`},uuid:{label:`UUID`,gender:`m`},nanoid:{label:`nanoid`,gender:`m`},guid:{label:`GUID`,gender:`m`},cuid:{label:`cuid`,gender:`m`},cuid2:{label:`cuid2`,gender:`m`},ulid:{label:`ULID`,gender:`m`},xid:{label:`XID`,gender:`m`},ksuid:{label:`KSUID`,gender:`m`},datetime:{label:`תאריך וזמן ISO`,gender:`m`},date:{label:`תאריך ISO`,gender:`m`},time:{label:`זמן ISO`,gender:`m`},duration:{label:`משך זמן ISO`,gender:`m`},ipv4:{label:`כתובת IPv4`,gender:`f`},ipv6:{label:`כתובת IPv6`,gender:`f`},cidrv4:{label:`טווח IPv4`,gender:`m`},cidrv6:{label:`טווח IPv6`,gender:`m`},base64:{label:`מחרוזת בבסיס 64`,gender:`f`},base64url:{label:`מחרוזת בבסיס 64 לכתובות רשת`,gender:`f`},json_string:{label:`מחרוזת JSON`,gender:`f`},e164:{label:`מספר E.164`,gender:`m`},jwt:{label:`JWT`,gender:`m`},ends_with:{label:`קלט`,gender:`m`},includes:{label:`קלט`,gender:`m`},lowercase:{label:`קלט`,gender:`m`},starts_with:{label:`קלט`,gender:`m`},uppercase:{label:`קלט`,gender:`m`}},c={nan:`NaN`};return t=>{switch(t.code){case`invalid_type`:{let n=t.expected,i=c[n??``]??r(n),a=hq(t.input),o=c[a]??e[a]?.label??a;return/^[A-Z]/.test(t.expected)?`קלט לא תקין: צריך להיות instanceof ${t.expected}, התקבל ${o}`:`קלט לא תקין: צריך להיות ${i}, התקבל ${o}`}case`invalid_value`:{if(t.values.length===1)return`ערך לא תקין: הערך חייב להיות ${$K(t.values[0])}`;let e=t.values.map(e=>$K(e));if(t.values.length===2)return`ערך לא תקין: האפשרויות המתאימות הן ${e[0]} או ${e[1]}`;let n=e[e.length-1];return`ערך לא תקין: האפשרויות המתאימות הן ${e.slice(0,-1).join(`, `)} או ${n}`}case`too_big`:{let e=o(t.origin),n=i(t.origin??`value`);if(t.origin===`string`)return`${e?.longLabel??`ארוך`} מדי: ${n} צריכה להכיל ${t.maximum.toString()} ${e?.unit??``} ${t.inclusive?`או פחות`:`לכל היותר`}`.trim();if(t.origin===`number`)return`גדול מדי: ${n} צריך להיות ${t.inclusive?`קטן או שווה ל-${t.maximum}`:`קטן מ-${t.maximum}`}`;if(t.origin===`array`||t.origin===`set`)return`גדול מדי: ${n} ${t.origin===`set`?`צריכה`:`צריך`} להכיל ${t.inclusive?`${t.maximum} ${e?.unit??``} או פחות`:`פחות מ-${t.maximum} ${e?.unit??``}`}`.trim();let r=t.inclusive?`<=`:`<`,s=a(t.origin??`value`);return e?.unit?`${e.longLabel} מדי: ${n} ${s} ${r}${t.maximum.toString()} ${e.unit}`:`${e?.longLabel??`גדול`} מדי: ${n} ${s} ${r}${t.maximum.toString()}`}case`too_small`:{let e=o(t.origin),n=i(t.origin??`value`);if(t.origin===`string`)return`${e?.shortLabel??`קצר`} מדי: ${n} צריכה להכיל ${t.minimum.toString()} ${e?.unit??``} ${t.inclusive?`או יותר`:`לפחות`}`.trim();if(t.origin===`number`)return`קטן מדי: ${n} צריך להיות ${t.inclusive?`גדול או שווה ל-${t.minimum}`:`גדול מ-${t.minimum}`}`;if(t.origin===`array`||t.origin===`set`){let r=t.origin===`set`?`צריכה`:`צריך`;return t.minimum===1&&t.inclusive?`קטן מדי: ${n} ${r} להכיל ${t.origin,`לפחות פריט אחד`}`:`קטן מדי: ${n} ${r} להכיל ${t.inclusive?`${t.minimum} ${e?.unit??``} או יותר`:`יותר מ-${t.minimum} ${e?.unit??``}`}`.trim()}let r=t.inclusive?`>=`:`>`,s=a(t.origin??`value`);return e?.unit?`${e.shortLabel} מדי: ${n} ${s} ${r}${t.minimum.toString()} ${e.unit}`:`${e?.shortLabel??`קטן`} מדי: ${n} ${s} ${r}${t.minimum.toString()}`}case`invalid_format`:{let e=t;if(e.format===`starts_with`)return`המחרוזת חייבת להתחיל ב "${e.prefix}"`;if(e.format===`ends_with`)return`המחרוזת חייבת להסתיים ב "${e.suffix}"`;if(e.format===`includes`)return`המחרוזת חייבת לכלול "${e.includes}"`;if(e.format===`regex`)return`המחרוזת חייבת להתאים לתבנית ${e.pattern}`;let n=s[e.format];return`${n?.label??e.format} לא ${(n?.gender??`m`)===`f`?`תקינה`:`תקין`}`}case`not_multiple_of`:return`מספר לא תקין: חייב להיות מכפלה של ${t.divisor}`;case`unrecognized_keys`:return`מפתח${t.keys.length>1?`ות`:``} לא מזוה${t.keys.length>1?`ים`:`ה`}: ${J(t.keys,`, `)}`;case`invalid_key`:return`שדה לא תקין באובייקט`;case`invalid_union`:return`קלט לא תקין`;case`invalid_element`:return`ערך לא תקין ב${i(t.origin??`array`)}`;default:return`קלט לא תקין`}}}}));function WQ(){return{localeError:GQ()}}var GQ,KQ=o((()=>{Nq(),GQ=()=>{let e={string:{unit:`znakova`,verb:`imati`},file:{unit:`bajtova`,verb:`imati`},array:{unit:`stavki`,verb:`imati`},set:{unit:`stavki`,verb:`imati`}};function t(t){return e[t]??null}let n={regex:`unos`,email:`email adresa`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO datum i vrijeme`,date:`ISO datum`,time:`ISO vrijeme`,duration:`ISO trajanje`,ipv4:`IPv4 adresa`,ipv6:`IPv6 adresa`,cidrv4:`IPv4 raspon`,cidrv6:`IPv6 raspon`,base64:`base64 kodirani tekst`,base64url:`base64url kodirani tekst`,json_string:`JSON tekst`,e164:`E.164 broj`,jwt:`JWT`,template_literal:`unos`},r={nan:`NaN`,string:`tekst`,number:`broj`,boolean:`boolean`,array:`niz`,object:`objekt`,set:`skup`,file:`datoteka`,date:`datum`,bigint:`bigint`,symbol:`simbol`,undefined:`undefined`,null:`null`,function:`funkcija`,map:`mapa`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=hq(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Neispravan unos: očekuje se instanceof ${e.expected}, a primljeno je ${i}`:`Neispravan unos: očekuje se ${t}, a primljeno je ${i}`}case`invalid_value`:return e.values.length===1?`Neispravna vrijednost: očekivano ${$K(e.values[0])}`:`Neispravna opcija: očekivano jedno od ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,i=t(e.origin),a=r[e.origin]??e.origin;return i?`Preveliko: očekivano da ${a??`vrijednost`} ima ${n}${e.maximum.toString()} ${i.unit??`elemenata`}`:`Preveliko: očekivano da ${a??`vrijednost`} bude ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,i=t(e.origin),a=r[e.origin]??e.origin;return i?`Premalo: očekivano da ${a} ima ${n}${e.minimum.toString()} ${i.unit}`:`Premalo: očekivano da ${a} bude ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Neispravan tekst: mora započinjati s "${t.prefix}"`:t.format===`ends_with`?`Neispravan tekst: mora završavati s "${t.suffix}"`:t.format===`includes`?`Neispravan tekst: mora sadržavati "${t.includes}"`:t.format===`regex`?`Neispravan tekst: mora odgovarati uzorku ${t.pattern}`:`Neispravna ${n[t.format]??e.format}`}case`not_multiple_of`:return`Neispravan broj: mora biti višekratnik od ${e.divisor}`;case`unrecognized_keys`:return`Neprepoznat${e.keys.length>1?`i ključevi`:` ključ`}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Neispravan ključ u ${r[e.origin]??e.origin}`;case`invalid_union`:return`Neispravan unos`;case`invalid_element`:return`Neispravna vrijednost u ${r[e.origin]??e.origin}`;default:return`Neispravan unos`}}}}));function qQ(){return{localeError:JQ()}}var JQ,YQ=o((()=>{Nq(),JQ=()=>{let e={string:{unit:`karakter`,verb:`legyen`},file:{unit:`byte`,verb:`legyen`},array:{unit:`elem`,verb:`legyen`},set:{unit:`elem`,verb:`legyen`}};function t(t){return e[t]??null}let n={regex:`bemenet`,email:`email cím`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO időbélyeg`,date:`ISO dátum`,time:`ISO idő`,duration:`ISO időintervallum`,ipv4:`IPv4 cím`,ipv6:`IPv6 cím`,cidrv4:`IPv4 tartomány`,cidrv6:`IPv6 tartomány`,base64:`base64-kódolt string`,base64url:`base64url-kódolt string`,json_string:`JSON string`,e164:`E.164 szám`,jwt:`JWT`,template_literal:`bemenet`},r={nan:`NaN`,number:`szám`,array:`tömb`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=hq(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Érvénytelen bemenet: a várt érték instanceof ${e.expected}, a kapott érték ${i}`:`Érvénytelen bemenet: a várt érték ${t}, a kapott érték ${i}`}case`invalid_value`:return e.values.length===1?`Érvénytelen bemenet: a várt érték ${$K(e.values[0])}`:`Érvénytelen opció: valamelyik érték várt ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Túl nagy: ${e.origin??`érték`} mérete túl nagy ${n}${e.maximum.toString()} ${r.unit??`elem`}`:`Túl nagy: a bemeneti érték ${e.origin??`érték`} túl nagy: ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Túl kicsi: a bemeneti érték ${e.origin} mérete túl kicsi ${n}${e.minimum.toString()} ${r.unit}`:`Túl kicsi: a bemeneti érték ${e.origin} túl kicsi ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Érvénytelen string: "${t.prefix}" értékkel kell kezdődnie`:t.format===`ends_with`?`Érvénytelen string: "${t.suffix}" értékkel kell végződnie`:t.format===`includes`?`Érvénytelen string: "${t.includes}" értéket kell tartalmaznia`:t.format===`regex`?`Érvénytelen string: ${t.pattern} mintának kell megfelelnie`:`Érvénytelen ${n[t.format]??e.format}`}case`not_multiple_of`:return`Érvénytelen szám: ${e.divisor} többszörösének kell lennie`;case`unrecognized_keys`:return`Ismeretlen kulcs${e.keys.length>1?`s`:``}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Érvénytelen kulcs ${e.origin}`;case`invalid_union`:return`Érvénytelen bemenet`;case`invalid_element`:return`Érvénytelen érték: ${e.origin}`;default:return`Érvénytelen bemenet`}}}}));function XQ(e,t,n){return Math.abs(e)===1?t:n}function ZQ(e){if(!e)return``;let t=[`ա`,`ե`,`ը`,`ի`,`ո`,`ու`,`օ`],n=e[e.length-1];return e+(t.includes(n)?`ն`:`ը`)}function QQ(){return{localeError:$Q()}}var $Q,e$=o((()=>{Nq(),$Q=()=>{let e={string:{unit:{one:`նշան`,many:`նշաններ`},verb:`ունենալ`},file:{unit:{one:`բայթ`,many:`բայթեր`},verb:`ունենալ`},array:{unit:{one:`տարր`,many:`տարրեր`},verb:`ունենալ`},set:{unit:{one:`տարր`,many:`տարրեր`},verb:`ունենալ`}};function t(t){return e[t]??null}let n={regex:`մուտք`,email:`էլ. հասցե`,url:`URL`,emoji:`էմոջի`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO ամսաթիվ և ժամ`,date:`ISO ամսաթիվ`,time:`ISO ժամ`,duration:`ISO տևողություն`,ipv4:`IPv4 հասցե`,ipv6:`IPv6 հասցե`,cidrv4:`IPv4 միջակայք`,cidrv6:`IPv6 միջակայք`,base64:`base64 ձևաչափով տող`,base64url:`base64url ձևաչափով տող`,json_string:`JSON տող`,e164:`E.164 համար`,jwt:`JWT`,template_literal:`մուտք`},r={nan:`NaN`,number:`թիվ`,array:`զանգված`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=hq(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Սխալ մուտքագրում․ սպասվում էր instanceof ${e.expected}, ստացվել է ${i}`:`Սխալ մուտքագրում․ սպասվում էր ${t}, ստացվել է ${i}`}case`invalid_value`:return e.values.length===1?`Սխալ մուտքագրում․ սպասվում էր ${$K(e.values[1])}`:`Սխալ տարբերակ․ սպասվում էր հետևյալներից մեկը՝ ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);if(r){let t=XQ(Number(e.maximum),r.unit.one,r.unit.many);return`Չափազանց մեծ արժեք․ սպասվում է, որ ${ZQ(e.origin??`արժեք`)} կունենա ${n}${e.maximum.toString()} ${t}`}return`Չափազանց մեծ արժեք․ սպասվում է, որ ${ZQ(e.origin??`արժեք`)} լինի ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);if(r){let t=XQ(Number(e.minimum),r.unit.one,r.unit.many);return`Չափազանց փոքր արժեք․ սպասվում է, որ ${ZQ(e.origin)} կունենա ${n}${e.minimum.toString()} ${t}`}return`Չափազանց փոքր արժեք․ սպասվում է, որ ${ZQ(e.origin)} լինի ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Սխալ տող․ պետք է սկսվի "${t.prefix}"-ով`:t.format===`ends_with`?`Սխալ տող․ պետք է ավարտվի "${t.suffix}"-ով`:t.format===`includes`?`Սխալ տող․ պետք է պարունակի "${t.includes}"`:t.format===`regex`?`Սխալ տող․ պետք է համապատասխանի ${t.pattern} ձևաչափին`:`Սխալ ${n[t.format]??e.format}`}case`not_multiple_of`:return`Սխալ թիվ․ պետք է բազմապատիկ լինի ${e.divisor}-ի`;case`unrecognized_keys`:return`Չճանաչված բանալի${e.keys.length>1?`ներ`:``}. ${J(e.keys,`, `)}`;case`invalid_key`:return`Սխալ բանալի ${ZQ(e.origin)}-ում`;case`invalid_union`:return`Սխալ մուտքագրում`;case`invalid_element`:return`Սխալ արժեք ${ZQ(e.origin)}-ում`;default:return`Սխալ մուտքագրում`}}}}));function t$(){return{localeError:n$()}}var n$,r$=o((()=>{Nq(),n$=()=>{let e={string:{unit:`karakter`,verb:`memiliki`},file:{unit:`byte`,verb:`memiliki`},array:{unit:`item`,verb:`memiliki`},set:{unit:`item`,verb:`memiliki`}};function t(t){return e[t]??null}let n={regex:`input`,email:`alamat email`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`tanggal dan waktu format ISO`,date:`tanggal format ISO`,time:`jam format ISO`,duration:`durasi format ISO`,ipv4:`alamat IPv4`,ipv6:`alamat IPv6`,cidrv4:`rentang alamat IPv4`,cidrv6:`rentang alamat IPv6`,base64:`string dengan enkode base64`,base64url:`string dengan enkode base64url`,json_string:`string JSON`,e164:`angka E.164`,jwt:`JWT`,template_literal:`input`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=hq(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Input tidak valid: diharapkan instanceof ${e.expected}, diterima ${i}`:`Input tidak valid: diharapkan ${t}, diterima ${i}`}case`invalid_value`:return e.values.length===1?`Input tidak valid: diharapkan ${$K(e.values[0])}`:`Pilihan tidak valid: diharapkan salah satu dari ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Terlalu besar: diharapkan ${e.origin??`value`} memiliki ${n}${e.maximum.toString()} ${r.unit??`elemen`}`:`Terlalu besar: diharapkan ${e.origin??`value`} menjadi ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Terlalu kecil: diharapkan ${e.origin} memiliki ${n}${e.minimum.toString()} ${r.unit}`:`Terlalu kecil: diharapkan ${e.origin} menjadi ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`String tidak valid: harus dimulai dengan "${t.prefix}"`:t.format===`ends_with`?`String tidak valid: harus berakhir dengan "${t.suffix}"`:t.format===`includes`?`String tidak valid: harus menyertakan "${t.includes}"`:t.format===`regex`?`String tidak valid: harus sesuai pola ${t.pattern}`:`${n[t.format]??e.format} tidak valid`}case`not_multiple_of`:return`Angka tidak valid: harus kelipatan dari ${e.divisor}`;case`unrecognized_keys`:return`Kunci tidak dikenali ${e.keys.length>1?`s`:``}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Kunci tidak valid di ${e.origin}`;case`invalid_union`:return`Input tidak valid`;case`invalid_element`:return`Nilai tidak valid di ${e.origin}`;default:return`Input tidak valid`}}}}));function i$(){return{localeError:a$()}}var a$,o$=o((()=>{Nq(),a$=()=>{let e={string:{unit:`stafi`,verb:`að hafa`},file:{unit:`bæti`,verb:`að hafa`},array:{unit:`hluti`,verb:`að hafa`},set:{unit:`hluti`,verb:`að hafa`}};function t(t){return e[t]??null}let n={regex:`gildi`,email:`netfang`,url:`vefslóð`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO dagsetning og tími`,date:`ISO dagsetning`,time:`ISO tími`,duration:`ISO tímalengd`,ipv4:`IPv4 address`,ipv6:`IPv6 address`,cidrv4:`IPv4 range`,cidrv6:`IPv6 range`,base64:`base64-encoded strengur`,base64url:`base64url-encoded strengur`,json_string:`JSON strengur`,e164:`E.164 tölugildi`,jwt:`JWT`,template_literal:`gildi`},r={nan:`NaN`,number:`númer`,array:`fylki`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=hq(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Rangt gildi: Þú slóst inn ${i} þar sem á að vera instanceof ${e.expected}`:`Rangt gildi: Þú slóst inn ${i} þar sem á að vera ${t}`}case`invalid_value`:return e.values.length===1?`Rangt gildi: gert ráð fyrir ${$K(e.values[0])}`:`Ógilt val: má vera eitt af eftirfarandi ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Of stórt: gert er ráð fyrir að ${e.origin??`gildi`} hafi ${n}${e.maximum.toString()} ${r.unit??`hluti`}`:`Of stórt: gert er ráð fyrir að ${e.origin??`gildi`} sé ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Of lítið: gert er ráð fyrir að ${e.origin} hafi ${n}${e.minimum.toString()} ${r.unit}`:`Of lítið: gert er ráð fyrir að ${e.origin} sé ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Ógildur strengur: verður að byrja á "${t.prefix}"`:t.format===`ends_with`?`Ógildur strengur: verður að enda á "${t.suffix}"`:t.format===`includes`?`Ógildur strengur: verður að innihalda "${t.includes}"`:t.format===`regex`?`Ógildur strengur: verður að fylgja mynstri ${t.pattern}`:`Rangt ${n[t.format]??e.format}`}case`not_multiple_of`:return`Röng tala: verður að vera margfeldi af ${e.divisor}`;case`unrecognized_keys`:return`Óþekkt ${e.keys.length>1?`ir lyklar`:`ur lykill`}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Rangur lykill í ${e.origin}`;case`invalid_union`:return`Rangt gildi`;case`invalid_element`:return`Rangt gildi í ${e.origin}`;default:return`Rangt gildi`}}}}));function s$(){return{localeError:c$()}}var c$,l$=o((()=>{Nq(),c$=()=>{let e={string:{unit:`caratteri`,verb:`avere`},file:{unit:`byte`,verb:`avere`},array:{unit:`elementi`,verb:`avere`},set:{unit:`elementi`,verb:`avere`}};function t(t){return e[t]??null}let n={regex:`input`,email:`indirizzo email`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`data e ora ISO`,date:`data ISO`,time:`ora ISO`,duration:`durata ISO`,ipv4:`indirizzo IPv4`,ipv6:`indirizzo IPv6`,cidrv4:`intervallo IPv4`,cidrv6:`intervallo IPv6`,base64:`stringa codificata in base64`,base64url:`URL codificata in base64`,json_string:`stringa JSON`,e164:`numero E.164`,jwt:`JWT`,template_literal:`input`},r={nan:`NaN`,number:`numero`,array:`vettore`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=hq(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Input non valido: atteso instanceof ${e.expected}, ricevuto ${i}`:`Input non valido: atteso ${t}, ricevuto ${i}`}case`invalid_value`:return e.values.length===1?`Input non valido: atteso ${$K(e.values[0])}`:`Opzione non valida: atteso uno tra ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Troppo grande: ${e.origin??`valore`} deve avere ${n}${e.maximum.toString()} ${r.unit??`elementi`}`:`Troppo grande: ${e.origin??`valore`} deve essere ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Troppo piccolo: ${e.origin} deve avere ${n}${e.minimum.toString()} ${r.unit}`:`Troppo piccolo: ${e.origin} deve essere ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Stringa non valida: deve iniziare con "${t.prefix}"`:t.format===`ends_with`?`Stringa non valida: deve terminare con "${t.suffix}"`:t.format===`includes`?`Stringa non valida: deve includere "${t.includes}"`:t.format===`regex`?`Stringa non valida: deve corrispondere al pattern ${t.pattern}`:`Input non valido: ${n[t.format]??e.format}`}case`not_multiple_of`:return`Numero non valido: deve essere un multiplo di ${e.divisor}`;case`unrecognized_keys`:return`Chiav${e.keys.length>1?`i`:`e`} non riconosciut${e.keys.length>1?`e`:`a`}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Chiave non valida in ${e.origin}`;case`invalid_union`:return`Input non valido`;case`invalid_element`:return`Valore non valido in ${e.origin}`;default:return`Input non valido`}}}}));function u$(){return{localeError:d$()}}var d$,f$=o((()=>{Nq(),d$=()=>{let e={string:{unit:`文字`,verb:`である`},file:{unit:`バイト`,verb:`である`},array:{unit:`要素`,verb:`である`},set:{unit:`要素`,verb:`である`}};function t(t){return e[t]??null}let n={regex:`入力値`,email:`メールアドレス`,url:`URL`,emoji:`絵文字`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO日時`,date:`ISO日付`,time:`ISO時刻`,duration:`ISO期間`,ipv4:`IPv4アドレス`,ipv6:`IPv6アドレス`,cidrv4:`IPv4範囲`,cidrv6:`IPv6範囲`,base64:`base64エンコード文字列`,base64url:`base64urlエンコード文字列`,json_string:`JSON文字列`,e164:`E.164番号`,jwt:`JWT`,template_literal:`入力値`},r={nan:`NaN`,number:`数値`,array:`配列`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=hq(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`無効な入力: instanceof ${e.expected}が期待されましたが、${i}が入力されました`:`無効な入力: ${t}が期待されましたが、${i}が入力されました`}case`invalid_value`:return e.values.length===1?`無効な入力: ${$K(e.values[0])}が期待されました`:`無効な選択: ${J(e.values,`、`)}のいずれかである必要があります`;case`too_big`:{let n=e.inclusive?`以下である`:`より小さい`,r=t(e.origin);return r?`大きすぎる値: ${e.origin??`値`}は${e.maximum.toString()}${r.unit??`要素`}${n}必要があります`:`大きすぎる値: ${e.origin??`値`}は${e.maximum.toString()}${n}必要があります`}case`too_small`:{let n=e.inclusive?`以上である`:`より大きい`,r=t(e.origin);return r?`小さすぎる値: ${e.origin}は${e.minimum.toString()}${r.unit}${n}必要があります`:`小さすぎる値: ${e.origin}は${e.minimum.toString()}${n}必要があります`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`無効な文字列: "${t.prefix}"で始まる必要があります`:t.format===`ends_with`?`無効な文字列: "${t.suffix}"で終わる必要があります`:t.format===`includes`?`無効な文字列: "${t.includes}"を含む必要があります`:t.format===`regex`?`無効な文字列: パターン${t.pattern}に一致する必要があります`:`無効な${n[t.format]??e.format}`}case`not_multiple_of`:return`無効な数値: ${e.divisor}の倍数である必要があります`;case`unrecognized_keys`:return`認識されていないキー${e.keys.length>1?`群`:``}: ${J(e.keys,`、`)}`;case`invalid_key`:return`${e.origin}内の無効なキー`;case`invalid_union`:return`無効な入力`;case`invalid_element`:return`${e.origin}内の無効な値`;default:return`無効な入力`}}}}));function p$(){return{localeError:m$()}}var m$,h$=o((()=>{Nq(),m$=()=>{let e={string:{unit:`სიმბოლო`,verb:`უნდა შეიცავდეს`},file:{unit:`ბაიტი`,verb:`უნდა შეიცავდეს`},array:{unit:`ელემენტი`,verb:`უნდა შეიცავდეს`},set:{unit:`ელემენტი`,verb:`უნდა შეიცავდეს`}};function t(t){return e[t]??null}let n={regex:`შეყვანა`,email:`ელ-ფოსტის მისამართი`,url:`URL`,emoji:`ემოჯი`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`თარიღი-დრო`,date:`თარიღი`,time:`დრო`,duration:`ხანგრძლივობა`,ipv4:`IPv4 მისამართი`,ipv6:`IPv6 მისამართი`,cidrv4:`IPv4 დიაპაზონი`,cidrv6:`IPv6 დიაპაზონი`,base64:`base64-კოდირებული ველი`,base64url:`base64url-კოდირებული ველი`,json_string:`JSON ველი`,e164:`E.164 ნომერი`,jwt:`JWT`,template_literal:`შეყვანა`},r={nan:`NaN`,number:`რიცხვი`,string:`ველი`,boolean:`ბულეანი`,function:`ფუნქცია`,array:`მასივი`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=hq(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`არასწორი შეყვანა: მოსალოდნელი instanceof ${e.expected}, მიღებული ${i}`:`არასწორი შეყვანა: მოსალოდნელი ${t}, მიღებული ${i}`}case`invalid_value`:return e.values.length===1?`არასწორი შეყვანა: მოსალოდნელი ${$K(e.values[0])}`:`არასწორი ვარიანტი: მოსალოდნელია ერთ-ერთი ${J(e.values,`|`)}-დან`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`ზედმეტად დიდი: მოსალოდნელი ${e.origin??`მნიშვნელობა`} ${r.verb} ${n}${e.maximum.toString()} ${r.unit}`:`ზედმეტად დიდი: მოსალოდნელი ${e.origin??`მნიშვნელობა`} იყოს ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`ზედმეტად პატარა: მოსალოდნელი ${e.origin} ${r.verb} ${n}${e.minimum.toString()} ${r.unit}`:`ზედმეტად პატარა: მოსალოდნელი ${e.origin} იყოს ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`არასწორი ველი: უნდა იწყებოდეს "${t.prefix}"-ით`:t.format===`ends_with`?`არასწორი ველი: უნდა მთავრდებოდეს "${t.suffix}"-ით`:t.format===`includes`?`არასწორი ველი: უნდა შეიცავდეს "${t.includes}"-ს`:t.format===`regex`?`არასწორი ველი: უნდა შეესაბამებოდეს შაბლონს ${t.pattern}`:`არასწორი ${n[t.format]??e.format}`}case`not_multiple_of`:return`არასწორი რიცხვი: უნდა იყოს ${e.divisor}-ის ჯერადი`;case`unrecognized_keys`:return`უცნობი გასაღებ${e.keys.length>1?`ები`:`ი`}: ${J(e.keys,`, `)}`;case`invalid_key`:return`არასწორი გასაღები ${e.origin}-ში`;case`invalid_union`:return`არასწორი შეყვანა`;case`invalid_element`:return`არასწორი მნიშვნელობა ${e.origin}-ში`;default:return`არასწორი შეყვანა`}}}}));function g$(){return{localeError:_$()}}var _$,v$=o((()=>{Nq(),_$=()=>{let e={string:{unit:`តួអក្សរ`,verb:`គួរមាន`},file:{unit:`បៃ`,verb:`គួរមាន`},array:{unit:`ធាតុ`,verb:`គួរមាន`},set:{unit:`ធាតុ`,verb:`គួរមាន`}};function t(t){return e[t]??null}let n={regex:`ទិន្នន័យបញ្ចូល`,email:`អាសយដ្ឋានអ៊ីមែល`,url:`URL`,emoji:`សញ្ញាអារម្មណ៍`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`កាលបរិច្ឆេទ និងម៉ោង ISO`,date:`កាលបរិច្ឆេទ ISO`,time:`ម៉ោង ISO`,duration:`រយៈពេល ISO`,ipv4:`អាសយដ្ឋាន IPv4`,ipv6:`អាសយដ្ឋាន IPv6`,cidrv4:`ដែនអាសយដ្ឋាន IPv4`,cidrv6:`ដែនអាសយដ្ឋាន IPv6`,base64:`ខ្សែអក្សរអ៊ិកូដ base64`,base64url:`ខ្សែអក្សរអ៊ិកូដ base64url`,json_string:`ខ្សែអក្សរ JSON`,e164:`លេខ E.164`,jwt:`JWT`,template_literal:`ទិន្នន័យបញ្ចូល`},r={nan:`NaN`,number:`លេខ`,array:`អារេ (Array)`,null:`គ្មានតម្លៃ (null)`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=hq(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ instanceof ${e.expected} ប៉ុន្តែទទួលបាន ${i}`:`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ ${t} ប៉ុន្តែទទួលបាន ${i}`}case`invalid_value`:return e.values.length===1?`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ ${$K(e.values[0])}`:`ជម្រើសមិនត្រឹមត្រូវ៖ ត្រូវជាមួយក្នុងចំណោម ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`ធំពេក៖ ត្រូវការ ${e.origin??`តម្លៃ`} ${n} ${e.maximum.toString()} ${r.unit??`ធាតុ`}`:`ធំពេក៖ ត្រូវការ ${e.origin??`តម្លៃ`} ${n} ${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`តូចពេក៖ ត្រូវការ ${e.origin} ${n} ${e.minimum.toString()} ${r.unit}`:`តូចពេក៖ ត្រូវការ ${e.origin} ${n} ${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវចាប់ផ្តើមដោយ "${t.prefix}"`:t.format===`ends_with`?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវបញ្ចប់ដោយ "${t.suffix}"`:t.format===`includes`?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវមាន "${t.includes}"`:t.format===`regex`?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវតែផ្គូផ្គងនឹងទម្រង់ដែលបានកំណត់ ${t.pattern}`:`មិនត្រឹមត្រូវ៖ ${n[t.format]??e.format}`}case`not_multiple_of`:return`លេខមិនត្រឹមត្រូវ៖ ត្រូវតែជាពហុគុណនៃ ${e.divisor}`;case`unrecognized_keys`:return`រកឃើញសោមិនស្គាល់៖ ${J(e.keys,`, `)}`;case`invalid_key`:return`សោមិនត្រឹមត្រូវនៅក្នុង ${e.origin}`;case`invalid_union`:return`ទិន្នន័យមិនត្រឹមត្រូវ`;case`invalid_element`:return`ទិន្នន័យមិនត្រឹមត្រូវនៅក្នុង ${e.origin}`;default:return`ទិន្នន័យមិនត្រឹមត្រូវ`}}}}));function y$(){return g$()}var b$=o((()=>{v$()}));function x$(){return{localeError:S$()}}var S$,C$=o((()=>{Nq(),S$=()=>{let e={string:{unit:`문자`,verb:`to have`},file:{unit:`바이트`,verb:`to have`},array:{unit:`개`,verb:`to have`},set:{unit:`개`,verb:`to have`}};function t(t){return e[t]??null}let n={regex:`입력`,email:`이메일 주소`,url:`URL`,emoji:`이모지`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO 날짜시간`,date:`ISO 날짜`,time:`ISO 시간`,duration:`ISO 기간`,ipv4:`IPv4 주소`,ipv6:`IPv6 주소`,cidrv4:`IPv4 범위`,cidrv6:`IPv6 범위`,base64:`base64 인코딩 문자열`,base64url:`base64url 인코딩 문자열`,json_string:`JSON 문자열`,e164:`E.164 번호`,jwt:`JWT`,template_literal:`입력`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=hq(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`잘못된 입력: 예상 타입은 instanceof ${e.expected}, 받은 타입은 ${i}입니다`:`잘못된 입력: 예상 타입은 ${t}, 받은 타입은 ${i}입니다`}case`invalid_value`:return e.values.length===1?`잘못된 입력: 값은 ${$K(e.values[0])} 이어야 합니다`:`잘못된 옵션: ${J(e.values,`또는 `)} 중 하나여야 합니다`;case`too_big`:{let n=e.inclusive?`이하`:`미만`,r=n===`미만`?`이어야 합니다`:`여야 합니다`,i=t(e.origin),a=i?.unit??`요소`;return i?`${e.origin??`값`}이 너무 큽니다: ${e.maximum.toString()}${a} ${n}${r}`:`${e.origin??`값`}이 너무 큽니다: ${e.maximum.toString()} ${n}${r}`}case`too_small`:{let n=e.inclusive?`이상`:`초과`,r=n===`이상`?`이어야 합니다`:`여야 합니다`,i=t(e.origin),a=i?.unit??`요소`;return i?`${e.origin??`값`}이 너무 작습니다: ${e.minimum.toString()}${a} ${n}${r}`:`${e.origin??`값`}이 너무 작습니다: ${e.minimum.toString()} ${n}${r}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`잘못된 문자열: "${t.prefix}"(으)로 시작해야 합니다`:t.format===`ends_with`?`잘못된 문자열: "${t.suffix}"(으)로 끝나야 합니다`:t.format===`includes`?`잘못된 문자열: "${t.includes}"을(를) 포함해야 합니다`:t.format===`regex`?`잘못된 문자열: 정규식 ${t.pattern} 패턴과 일치해야 합니다`:`잘못된 ${n[t.format]??e.format}`}case`not_multiple_of`:return`잘못된 숫자: ${e.divisor}의 배수여야 합니다`;case`unrecognized_keys`:return`인식할 수 없는 키: ${J(e.keys,`, `)}`;case`invalid_key`:return`잘못된 키: ${e.origin}`;case`invalid_union`:return`잘못된 입력`;case`invalid_element`:return`잘못된 값: ${e.origin}`;default:return`잘못된 입력`}}}}));function w$(e){let t=Math.abs(e),n=t%10,r=t%100;return r>=11&&r<=19||n===0?`many`:n===1?`one`:`few`}function T$(){return{localeError:D$()}}var E$,D$,O$=o((()=>{Nq(),E$=e=>e.charAt(0).toUpperCase()+e.slice(1),D$=()=>{let e={string:{unit:{one:`simbolis`,few:`simboliai`,many:`simbolių`},verb:{smaller:{inclusive:`turi būti ne ilgesnė kaip`,notInclusive:`turi būti trumpesnė kaip`},bigger:{inclusive:`turi būti ne trumpesnė kaip`,notInclusive:`turi būti ilgesnė kaip`}}},file:{unit:{one:`baitas`,few:`baitai`,many:`baitų`},verb:{smaller:{inclusive:`turi būti ne didesnis kaip`,notInclusive:`turi būti mažesnis kaip`},bigger:{inclusive:`turi būti ne mažesnis kaip`,notInclusive:`turi būti didesnis kaip`}}},array:{unit:{one:`elementą`,few:`elementus`,many:`elementų`},verb:{smaller:{inclusive:`turi turėti ne daugiau kaip`,notInclusive:`turi turėti mažiau kaip`},bigger:{inclusive:`turi turėti ne mažiau kaip`,notInclusive:`turi turėti daugiau kaip`}}},set:{unit:{one:`elementą`,few:`elementus`,many:`elementų`},verb:{smaller:{inclusive:`turi turėti ne daugiau kaip`,notInclusive:`turi turėti mažiau kaip`},bigger:{inclusive:`turi turėti ne mažiau kaip`,notInclusive:`turi turėti daugiau kaip`}}}};function t(t,n,r,i){let a=e[t]??null;return a===null?a:{unit:a.unit[n],verb:a.verb[i][r?`inclusive`:`notInclusive`]}}let n={regex:`įvestis`,email:`el. pašto adresas`,url:`URL`,emoji:`jaustukas`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO data ir laikas`,date:`ISO data`,time:`ISO laikas`,duration:`ISO trukmė`,ipv4:`IPv4 adresas`,ipv6:`IPv6 adresas`,cidrv4:`IPv4 tinklo prefiksas (CIDR)`,cidrv6:`IPv6 tinklo prefiksas (CIDR)`,base64:`base64 užkoduota eilutė`,base64url:`base64url užkoduota eilutė`,json_string:`JSON eilutė`,e164:`E.164 numeris`,jwt:`JWT`,template_literal:`įvestis`},r={nan:`NaN`,number:`skaičius`,bigint:`sveikasis skaičius`,string:`eilutė`,boolean:`loginė reikšmė`,undefined:`neapibrėžta reikšmė`,function:`funkcija`,symbol:`simbolis`,array:`masyvas`,object:`objektas`,null:`nulinė reikšmė`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=hq(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Gautas tipas ${i}, o tikėtasi - instanceof ${e.expected}`:`Gautas tipas ${i}, o tikėtasi - ${t}`}case`invalid_value`:return e.values.length===1?`Privalo būti ${$K(e.values[0])}`:`Privalo būti vienas iš ${J(e.values,`|`)} pasirinkimų`;case`too_big`:{let n=r[e.origin]??e.origin,i=t(e.origin,w$(Number(e.maximum)),e.inclusive??!1,`smaller`);if(i?.verb)return`${E$(n??e.origin??`reikšmė`)} ${i.verb} ${e.maximum.toString()} ${i.unit??`elementų`}`;let a=e.inclusive?`ne didesnis kaip`:`mažesnis kaip`;return`${E$(n??e.origin??`reikšmė`)} turi būti ${a} ${e.maximum.toString()} ${i?.unit}`}case`too_small`:{let n=r[e.origin]??e.origin,i=t(e.origin,w$(Number(e.minimum)),e.inclusive??!1,`bigger`);if(i?.verb)return`${E$(n??e.origin??`reikšmė`)} ${i.verb} ${e.minimum.toString()} ${i.unit??`elementų`}`;let a=e.inclusive?`ne mažesnis kaip`:`didesnis kaip`;return`${E$(n??e.origin??`reikšmė`)} turi būti ${a} ${e.minimum.toString()} ${i?.unit}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Eilutė privalo prasidėti "${t.prefix}"`:t.format===`ends_with`?`Eilutė privalo pasibaigti "${t.suffix}"`:t.format===`includes`?`Eilutė privalo įtraukti "${t.includes}"`:t.format===`regex`?`Eilutė privalo atitikti ${t.pattern}`:`Neteisingas ${n[t.format]??e.format}`}case`not_multiple_of`:return`Skaičius privalo būti ${e.divisor} kartotinis.`;case`unrecognized_keys`:return`Neatpažint${e.keys.length>1?`i`:`as`} rakt${e.keys.length>1?`ai`:`as`}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Rastas klaidingas raktas`;case`invalid_union`:return`Klaidinga įvestis`;case`invalid_element`:{let t=r[e.origin]??e.origin;return`${E$(t??e.origin??`reikšmė`)} turi klaidingą įvestį`}default:return`Klaidinga įvestis`}}}}));function k$(){return{localeError:A$()}}var A$,j$=o((()=>{Nq(),A$=()=>{let e={string:{unit:`знаци`,verb:`да имаат`},file:{unit:`бајти`,verb:`да имаат`},array:{unit:`ставки`,verb:`да имаат`},set:{unit:`ставки`,verb:`да имаат`}};function t(t){return e[t]??null}let n={regex:`внес`,email:`адреса на е-пошта`,url:`URL`,emoji:`емоџи`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO датум и време`,date:`ISO датум`,time:`ISO време`,duration:`ISO времетраење`,ipv4:`IPv4 адреса`,ipv6:`IPv6 адреса`,cidrv4:`IPv4 опсег`,cidrv6:`IPv6 опсег`,base64:`base64-енкодирана низа`,base64url:`base64url-енкодирана низа`,json_string:`JSON низа`,e164:`E.164 број`,jwt:`JWT`,template_literal:`внес`},r={nan:`NaN`,number:`број`,array:`низа`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=hq(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Грешен внес: се очекува instanceof ${e.expected}, примено ${i}`:`Грешен внес: се очекува ${t}, примено ${i}`}case`invalid_value`:return e.values.length===1?`Invalid input: expected ${$K(e.values[0])}`:`Грешана опција: се очекува една ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Премногу голем: се очекува ${e.origin??`вредноста`} да има ${n}${e.maximum.toString()} ${r.unit??`елементи`}`:`Премногу голем: се очекува ${e.origin??`вредноста`} да биде ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Премногу мал: се очекува ${e.origin} да има ${n}${e.minimum.toString()} ${r.unit}`:`Премногу мал: се очекува ${e.origin} да биде ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Неважечка низа: мора да започнува со "${t.prefix}"`:t.format===`ends_with`?`Неважечка низа: мора да завршува со "${t.suffix}"`:t.format===`includes`?`Неважечка низа: мора да вклучува "${t.includes}"`:t.format===`regex`?`Неважечка низа: мора да одгоара на патернот ${t.pattern}`:`Invalid ${n[t.format]??e.format}`}case`not_multiple_of`:return`Грешен број: мора да биде делив со ${e.divisor}`;case`unrecognized_keys`:return`${e.keys.length>1?`Непрепознаени клучеви`:`Непрепознаен клуч`}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Грешен клуч во ${e.origin}`;case`invalid_union`:return`Грешен внес`;case`invalid_element`:return`Грешна вредност во ${e.origin}`;default:return`Грешен внес`}}}}));function M$(){return{localeError:N$()}}var N$,P$=o((()=>{Nq(),N$=()=>{let e={string:{unit:`aksara`,verb:`mempunyai`},file:{unit:`bait`,verb:`mempunyai`},array:{unit:`elemen`,verb:`mempunyai`},set:{unit:`elemen`,verb:`mempunyai`}};function t(t){return e[t]??null}let n={regex:`input`,email:`alamat e-mel`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`tarikh masa ISO`,date:`tarikh ISO`,time:`masa ISO`,duration:`tempoh ISO`,ipv4:`alamat IPv4`,ipv6:`alamat IPv6`,cidrv4:`julat IPv4`,cidrv6:`julat IPv6`,base64:`string dikodkan base64`,base64url:`string dikodkan base64url`,json_string:`string JSON`,e164:`nombor E.164`,jwt:`JWT`,template_literal:`input`},r={nan:`NaN`,number:`nombor`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=hq(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Input tidak sah: dijangka instanceof ${e.expected}, diterima ${i}`:`Input tidak sah: dijangka ${t}, diterima ${i}`}case`invalid_value`:return e.values.length===1?`Input tidak sah: dijangka ${$K(e.values[0])}`:`Pilihan tidak sah: dijangka salah satu daripada ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Terlalu besar: dijangka ${e.origin??`nilai`} ${r.verb} ${n}${e.maximum.toString()} ${r.unit??`elemen`}`:`Terlalu besar: dijangka ${e.origin??`nilai`} adalah ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Terlalu kecil: dijangka ${e.origin} ${r.verb} ${n}${e.minimum.toString()} ${r.unit}`:`Terlalu kecil: dijangka ${e.origin} adalah ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`String tidak sah: mesti bermula dengan "${t.prefix}"`:t.format===`ends_with`?`String tidak sah: mesti berakhir dengan "${t.suffix}"`:t.format===`includes`?`String tidak sah: mesti mengandungi "${t.includes}"`:t.format===`regex`?`String tidak sah: mesti sepadan dengan corak ${t.pattern}`:`${n[t.format]??e.format} tidak sah`}case`not_multiple_of`:return`Nombor tidak sah: perlu gandaan ${e.divisor}`;case`unrecognized_keys`:return`Kunci tidak dikenali: ${J(e.keys,`, `)}`;case`invalid_key`:return`Kunci tidak sah dalam ${e.origin}`;case`invalid_union`:return`Input tidak sah`;case`invalid_element`:return`Nilai tidak sah dalam ${e.origin}`;default:return`Input tidak sah`}}}}));function F$(){return{localeError:I$()}}var I$,L$=o((()=>{Nq(),I$=()=>{let e={string:{unit:`tekens`,verb:`heeft`},file:{unit:`bytes`,verb:`heeft`},array:{unit:`elementen`,verb:`heeft`},set:{unit:`elementen`,verb:`heeft`}};function t(t){return e[t]??null}let n={regex:`invoer`,email:`emailadres`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO datum en tijd`,date:`ISO datum`,time:`ISO tijd`,duration:`ISO duur`,ipv4:`IPv4-adres`,ipv6:`IPv6-adres`,cidrv4:`IPv4-bereik`,cidrv6:`IPv6-bereik`,base64:`base64-gecodeerde tekst`,base64url:`base64 URL-gecodeerde tekst`,json_string:`JSON string`,e164:`E.164-nummer`,jwt:`JWT`,template_literal:`invoer`},r={nan:`NaN`,number:`getal`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=hq(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Ongeldige invoer: verwacht instanceof ${e.expected}, ontving ${i}`:`Ongeldige invoer: verwacht ${t}, ontving ${i}`}case`invalid_value`:return e.values.length===1?`Ongeldige invoer: verwacht ${$K(e.values[0])}`:`Ongeldige optie: verwacht één van ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin),i=e.origin===`date`?`laat`:e.origin===`string`?`lang`:`groot`;return r?`Te ${i}: verwacht dat ${e.origin??`waarde`} ${n}${e.maximum.toString()} ${r.unit??`elementen`} ${r.verb}`:`Te ${i}: verwacht dat ${e.origin??`waarde`} ${n}${e.maximum.toString()} is`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin),i=e.origin===`date`?`vroeg`:e.origin===`string`?`kort`:`klein`;return r?`Te ${i}: verwacht dat ${e.origin} ${n}${e.minimum.toString()} ${r.unit} ${r.verb}`:`Te ${i}: verwacht dat ${e.origin} ${n}${e.minimum.toString()} is`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Ongeldige tekst: moet met "${t.prefix}" beginnen`:t.format===`ends_with`?`Ongeldige tekst: moet op "${t.suffix}" eindigen`:t.format===`includes`?`Ongeldige tekst: moet "${t.includes}" bevatten`:t.format===`regex`?`Ongeldige tekst: moet overeenkomen met patroon ${t.pattern}`:`Ongeldig: ${n[t.format]??e.format}`}case`not_multiple_of`:return`Ongeldig getal: moet een veelvoud van ${e.divisor} zijn`;case`unrecognized_keys`:return`Onbekende key${e.keys.length>1?`s`:``}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Ongeldige key in ${e.origin}`;case`invalid_union`:return`Ongeldige invoer`;case`invalid_element`:return`Ongeldige waarde in ${e.origin}`;default:return`Ongeldige invoer`}}}}));function R$(){return{localeError:z$()}}var z$,B$=o((()=>{Nq(),z$=()=>{let e={string:{unit:`tegn`,verb:`å ha`},file:{unit:`bytes`,verb:`å ha`},array:{unit:`elementer`,verb:`å inneholde`},set:{unit:`elementer`,verb:`å inneholde`}};function t(t){return e[t]??null}let n={regex:`input`,email:`e-postadresse`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO dato- og klokkeslett`,date:`ISO-dato`,time:`ISO-klokkeslett`,duration:`ISO-varighet`,ipv4:`IPv4-område`,ipv6:`IPv6-område`,cidrv4:`IPv4-spekter`,cidrv6:`IPv6-spekter`,base64:`base64-enkodet streng`,base64url:`base64url-enkodet streng`,json_string:`JSON-streng`,e164:`E.164-nummer`,jwt:`JWT`,template_literal:`input`},r={nan:`NaN`,number:`tall`,array:`liste`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=hq(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Ugyldig input: forventet instanceof ${e.expected}, fikk ${i}`:`Ugyldig input: forventet ${t}, fikk ${i}`}case`invalid_value`:return e.values.length===1?`Ugyldig verdi: forventet ${$K(e.values[0])}`:`Ugyldig valg: forventet en av ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`For stor(t): forventet ${e.origin??`value`} til å ha ${n}${e.maximum.toString()} ${r.unit??`elementer`}`:`For stor(t): forventet ${e.origin??`value`} til å ha ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`For lite(n): forventet ${e.origin} til å ha ${n}${e.minimum.toString()} ${r.unit}`:`For lite(n): forventet ${e.origin} til å ha ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Ugyldig streng: må starte med "${t.prefix}"`:t.format===`ends_with`?`Ugyldig streng: må ende med "${t.suffix}"`:t.format===`includes`?`Ugyldig streng: må inneholde "${t.includes}"`:t.format===`regex`?`Ugyldig streng: må matche mønsteret ${t.pattern}`:`Ugyldig ${n[t.format]??e.format}`}case`not_multiple_of`:return`Ugyldig tall: må være et multiplum av ${e.divisor}`;case`unrecognized_keys`:return`${e.keys.length>1?`Ukjente nøkler`:`Ukjent nøkkel`}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Ugyldig nøkkel i ${e.origin}`;case`invalid_union`:return`Ugyldig input`;case`invalid_element`:return`Ugyldig verdi i ${e.origin}`;default:return`Ugyldig input`}}}}));function V$(){return{localeError:H$()}}var H$,U$=o((()=>{Nq(),H$=()=>{let e={string:{unit:`harf`,verb:`olmalıdır`},file:{unit:`bayt`,verb:`olmalıdır`},array:{unit:`unsur`,verb:`olmalıdır`},set:{unit:`unsur`,verb:`olmalıdır`}};function t(t){return e[t]??null}let n={regex:`giren`,email:`epostagâh`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO hengâmı`,date:`ISO tarihi`,time:`ISO zamanı`,duration:`ISO müddeti`,ipv4:`IPv4 nişânı`,ipv6:`IPv6 nişânı`,cidrv4:`IPv4 menzili`,cidrv6:`IPv6 menzili`,base64:`base64-şifreli metin`,base64url:`base64url-şifreli metin`,json_string:`JSON metin`,e164:`E.164 sayısı`,jwt:`JWT`,template_literal:`giren`},r={nan:`NaN`,number:`numara`,array:`saf`,null:`gayb`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=hq(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Fâsit giren: umulan instanceof ${e.expected}, alınan ${i}`:`Fâsit giren: umulan ${t}, alınan ${i}`}case`invalid_value`:return e.values.length===1?`Fâsit giren: umulan ${$K(e.values[0])}`:`Fâsit tercih: mûteberler ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Fazla büyük: ${e.origin??`value`}, ${n}${e.maximum.toString()} ${r.unit??`elements`} sahip olmalıydı.`:`Fazla büyük: ${e.origin??`value`}, ${n}${e.maximum.toString()} olmalıydı.`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Fazla küçük: ${e.origin}, ${n}${e.minimum.toString()} ${r.unit} sahip olmalıydı.`:`Fazla küçük: ${e.origin}, ${n}${e.minimum.toString()} olmalıydı.`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Fâsit metin: "${t.prefix}" ile başlamalı.`:t.format===`ends_with`?`Fâsit metin: "${t.suffix}" ile bitmeli.`:t.format===`includes`?`Fâsit metin: "${t.includes}" ihtivâ etmeli.`:t.format===`regex`?`Fâsit metin: ${t.pattern} nakşına uymalı.`:`Fâsit ${n[t.format]??e.format}`}case`not_multiple_of`:return`Fâsit sayı: ${e.divisor} katı olmalıydı.`;case`unrecognized_keys`:return`Tanınmayan anahtar ${e.keys.length>1?`s`:``}: ${J(e.keys,`, `)}`;case`invalid_key`:return`${e.origin} için tanınmayan anahtar var.`;case`invalid_union`:return`Giren tanınamadı.`;case`invalid_element`:return`${e.origin} için tanınmayan kıymet var.`;default:return`Kıymet tanınamadı.`}}}}));function W$(){return{localeError:G$()}}var G$,K$=o((()=>{Nq(),G$=()=>{let e={string:{unit:`توکي`,verb:`ولري`},file:{unit:`بایټس`,verb:`ولري`},array:{unit:`توکي`,verb:`ولري`},set:{unit:`توکي`,verb:`ولري`}};function t(t){return e[t]??null}let n={regex:`ورودي`,email:`بریښنالیک`,url:`یو آر ال`,emoji:`ایموجي`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`نیټه او وخت`,date:`نېټه`,time:`وخت`,duration:`موده`,ipv4:`د IPv4 پته`,ipv6:`د IPv6 پته`,cidrv4:`د IPv4 ساحه`,cidrv6:`د IPv6 ساحه`,base64:`base64-encoded متن`,base64url:`base64url-encoded متن`,json_string:`JSON متن`,e164:`د E.164 شمېره`,jwt:`JWT`,template_literal:`ورودي`},r={nan:`NaN`,number:`عدد`,array:`ارې`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=hq(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`ناسم ورودي: باید instanceof ${e.expected} وای, مګر ${i} ترلاسه شو`:`ناسم ورودي: باید ${t} وای, مګر ${i} ترلاسه شو`}case`invalid_value`:return e.values.length===1?`ناسم ورودي: باید ${$K(e.values[0])} وای`:`ناسم انتخاب: باید یو له ${J(e.values,`|`)} څخه وای`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`ډیر لوی: ${e.origin??`ارزښت`} باید ${n}${e.maximum.toString()} ${r.unit??`عنصرونه`} ولري`:`ډیر لوی: ${e.origin??`ارزښت`} باید ${n}${e.maximum.toString()} وي`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`ډیر کوچنی: ${e.origin} باید ${n}${e.minimum.toString()} ${r.unit} ولري`:`ډیر کوچنی: ${e.origin} باید ${n}${e.minimum.toString()} وي`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`ناسم متن: باید د "${t.prefix}" سره پیل شي`:t.format===`ends_with`?`ناسم متن: باید د "${t.suffix}" سره پای ته ورسيږي`:t.format===`includes`?`ناسم متن: باید "${t.includes}" ولري`:t.format===`regex`?`ناسم متن: باید د ${t.pattern} سره مطابقت ولري`:`${n[t.format]??e.format} ناسم دی`}case`not_multiple_of`:return`ناسم عدد: باید د ${e.divisor} مضرب وي`;case`unrecognized_keys`:return`ناسم ${e.keys.length>1?`کلیډونه`:`کلیډ`}: ${J(e.keys,`, `)}`;case`invalid_key`:return`ناسم کلیډ په ${e.origin} کې`;case`invalid_union`:return`ناسمه ورودي`;case`invalid_element`:return`ناسم عنصر په ${e.origin} کې`;default:return`ناسمه ورودي`}}}}));function q$(){return{localeError:J$()}}var J$,Y$=o((()=>{Nq(),J$=()=>{let e={string:{unit:`znaków`,verb:`mieć`},file:{unit:`bajtów`,verb:`mieć`},array:{unit:`elementów`,verb:`mieć`},set:{unit:`elementów`,verb:`mieć`}};function t(t){return e[t]??null}let n={regex:`wyrażenie`,email:`adres email`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`data i godzina w formacie ISO`,date:`data w formacie ISO`,time:`godzina w formacie ISO`,duration:`czas trwania ISO`,ipv4:`adres IPv4`,ipv6:`adres IPv6`,cidrv4:`zakres IPv4`,cidrv6:`zakres IPv6`,base64:`ciąg znaków zakodowany w formacie base64`,base64url:`ciąg znaków zakodowany w formacie base64url`,json_string:`ciąg znaków w formacie JSON`,e164:`liczba E.164`,jwt:`JWT`,template_literal:`wejście`},r={nan:`NaN`,number:`liczba`,array:`tablica`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=hq(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Nieprawidłowe dane wejściowe: oczekiwano instanceof ${e.expected}, otrzymano ${i}`:`Nieprawidłowe dane wejściowe: oczekiwano ${t}, otrzymano ${i}`}case`invalid_value`:return e.values.length===1?`Nieprawidłowe dane wejściowe: oczekiwano ${$K(e.values[0])}`:`Nieprawidłowa opcja: oczekiwano jednej z wartości ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Za duża wartość: oczekiwano, że ${e.origin??`wartość`} będzie mieć ${n}${e.maximum.toString()} ${r.unit??`elementów`}`:`Zbyt duż(y/a/e): oczekiwano, że ${e.origin??`wartość`} będzie wynosić ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Za mała wartość: oczekiwano, że ${e.origin??`wartość`} będzie mieć ${n}${e.minimum.toString()} ${r.unit??`elementów`}`:`Zbyt mał(y/a/e): oczekiwano, że ${e.origin??`wartość`} będzie wynosić ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Nieprawidłowy ciąg znaków: musi zaczynać się od "${t.prefix}"`:t.format===`ends_with`?`Nieprawidłowy ciąg znaków: musi kończyć się na "${t.suffix}"`:t.format===`includes`?`Nieprawidłowy ciąg znaków: musi zawierać "${t.includes}"`:t.format===`regex`?`Nieprawidłowy ciąg znaków: musi odpowiadać wzorcowi ${t.pattern}`:`Nieprawidłow(y/a/e) ${n[t.format]??e.format}`}case`not_multiple_of`:return`Nieprawidłowa liczba: musi być wielokrotnością ${e.divisor}`;case`unrecognized_keys`:return`Nierozpoznane klucze${e.keys.length>1?`s`:``}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Nieprawidłowy klucz w ${e.origin}`;case`invalid_union`:return`Nieprawidłowe dane wejściowe`;case`invalid_element`:return`Nieprawidłowa wartość w ${e.origin}`;default:return`Nieprawidłowe dane wejściowe`}}}}));function X$(){return{localeError:Z$()}}var Z$,Q$=o((()=>{Nq(),Z$=()=>{let e={string:{unit:`caracteres`,verb:`ter`},file:{unit:`bytes`,verb:`ter`},array:{unit:`itens`,verb:`ter`},set:{unit:`itens`,verb:`ter`}};function t(t){return e[t]??null}let n={regex:`padrão`,email:`endereço de e-mail`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`data e hora ISO`,date:`data ISO`,time:`hora ISO`,duration:`duração ISO`,ipv4:`endereço IPv4`,ipv6:`endereço IPv6`,cidrv4:`faixa de IPv4`,cidrv6:`faixa de IPv6`,base64:`texto codificado em base64`,base64url:`URL codificada em base64`,json_string:`texto JSON`,e164:`número E.164`,jwt:`JWT`,template_literal:`entrada`},r={nan:`NaN`,number:`número`,null:`nulo`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=hq(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Tipo inválido: esperado instanceof ${e.expected}, recebido ${i}`:`Tipo inválido: esperado ${t}, recebido ${i}`}case`invalid_value`:return e.values.length===1?`Entrada inválida: esperado ${$K(e.values[0])}`:`Opção inválida: esperada uma das ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Muito grande: esperado que ${e.origin??`valor`} tivesse ${n}${e.maximum.toString()} ${r.unit??`elementos`}`:`Muito grande: esperado que ${e.origin??`valor`} fosse ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Muito pequeno: esperado que ${e.origin} tivesse ${n}${e.minimum.toString()} ${r.unit}`:`Muito pequeno: esperado que ${e.origin} fosse ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Texto inválido: deve começar com "${t.prefix}"`:t.format===`ends_with`?`Texto inválido: deve terminar com "${t.suffix}"`:t.format===`includes`?`Texto inválido: deve incluir "${t.includes}"`:t.format===`regex`?`Texto inválido: deve corresponder ao padrão ${t.pattern}`:`${n[t.format]??e.format} inválido`}case`not_multiple_of`:return`Número inválido: deve ser múltiplo de ${e.divisor}`;case`unrecognized_keys`:return`Chave${e.keys.length>1?`s`:``} desconhecida${e.keys.length>1?`s`:``}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Chave inválida em ${e.origin}`;case`invalid_union`:return`Entrada inválida`;case`invalid_element`:return`Valor inválido em ${e.origin}`;default:return`Campo inválido`}}}}));function $$(){return{localeError:e1()}}var e1,t1=o((()=>{Nq(),e1=()=>{let e={string:{unit:`caractere`,verb:`să aibă`},file:{unit:`octeți`,verb:`să aibă`},array:{unit:`elemente`,verb:`să aibă`},set:{unit:`elemente`,verb:`să aibă`},map:{unit:`intrări`,verb:`să aibă`}};function t(t){return e[t]??null}let n={regex:`intrare`,email:`adresă de email`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`dată și oră ISO`,date:`dată ISO`,time:`oră ISO`,duration:`durată ISO`,ipv4:`adresă IPv4`,ipv6:`adresă IPv6`,mac:`adresă MAC`,cidrv4:`interval IPv4`,cidrv6:`interval IPv6`,base64:`șir codat base64`,base64url:`șir codat base64url`,json_string:`șir JSON`,e164:`număr E.164`,jwt:`JWT`,template_literal:`intrare`},r={nan:`NaN`,string:`șir`,number:`număr`,boolean:`boolean`,function:`funcție`,array:`matrice`,object:`obiect`,undefined:`nedefinit`,symbol:`simbol`,bigint:`număr mare`,void:`void`,never:`never`,map:`hartă`,set:`set`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=hq(e.input);return`Intrare invalidă: așteptat ${t}, primit ${r[n]??n}`}case`invalid_value`:return e.values.length===1?`Intrare invalidă: așteptat ${$K(e.values[0])}`:`Opțiune invalidă: așteptat una dintre ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Prea mare: așteptat ca ${e.origin??`valoarea`} ${r.verb} ${n}${e.maximum.toString()} ${r.unit??`elemente`}`:`Prea mare: așteptat ca ${e.origin??`valoarea`} să fie ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Prea mic: așteptat ca ${e.origin} ${r.verb} ${n}${e.minimum.toString()} ${r.unit}`:`Prea mic: așteptat ca ${e.origin} să fie ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Șir invalid: trebuie să înceapă cu "${t.prefix}"`:t.format===`ends_with`?`Șir invalid: trebuie să se termine cu "${t.suffix}"`:t.format===`includes`?`Șir invalid: trebuie să includă "${t.includes}"`:t.format===`regex`?`Șir invalid: trebuie să se potrivească cu modelul ${t.pattern}`:`Format invalid: ${n[t.format]??e.format}`}case`not_multiple_of`:return`Număr invalid: trebuie să fie multiplu de ${e.divisor}`;case`unrecognized_keys`:return`Chei nerecunoscute: ${J(e.keys,`, `)}`;case`invalid_key`:return`Cheie invalidă în ${e.origin}`;case`invalid_union`:return`Intrare invalidă`;case`invalid_element`:return`Valoare invalidă în ${e.origin}`;default:return`Intrare invalidă`}}}}));function n1(e,t,n,r){let i=Math.abs(e),a=i%10,o=i%100;return o>=11&&o<=19?r:a===1?t:a>=2&&a<=4?n:r}function r1(){return{localeError:i1()}}var i1,a1=o((()=>{Nq(),i1=()=>{let e={string:{unit:{one:`символ`,few:`символа`,many:`символов`},verb:`иметь`},file:{unit:{one:`байт`,few:`байта`,many:`байт`},verb:`иметь`},array:{unit:{one:`элемент`,few:`элемента`,many:`элементов`},verb:`иметь`},set:{unit:{one:`элемент`,few:`элемента`,many:`элементов`},verb:`иметь`}};function t(t){return e[t]??null}let n={regex:`ввод`,email:`email адрес`,url:`URL`,emoji:`эмодзи`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO дата и время`,date:`ISO дата`,time:`ISO время`,duration:`ISO длительность`,ipv4:`IPv4 адрес`,ipv6:`IPv6 адрес`,cidrv4:`IPv4 диапазон`,cidrv6:`IPv6 диапазон`,base64:`строка в формате base64`,base64url:`строка в формате base64url`,json_string:`JSON строка`,e164:`номер E.164`,jwt:`JWT`,template_literal:`ввод`},r={nan:`NaN`,number:`число`,array:`массив`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=hq(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Неверный ввод: ожидалось instanceof ${e.expected}, получено ${i}`:`Неверный ввод: ожидалось ${t}, получено ${i}`}case`invalid_value`:return e.values.length===1?`Неверный ввод: ожидалось ${$K(e.values[0])}`:`Неверный вариант: ожидалось одно из ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);if(r){let t=n1(Number(e.maximum),r.unit.one,r.unit.few,r.unit.many);return`Слишком большое значение: ожидалось, что ${e.origin??`значение`} будет иметь ${n}${e.maximum.toString()} ${t}`}return`Слишком большое значение: ожидалось, что ${e.origin??`значение`} будет ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);if(r){let t=n1(Number(e.minimum),r.unit.one,r.unit.few,r.unit.many);return`Слишком маленькое значение: ожидалось, что ${e.origin} будет иметь ${n}${e.minimum.toString()} ${t}`}return`Слишком маленькое значение: ожидалось, что ${e.origin} будет ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Неверная строка: должна начинаться с "${t.prefix}"`:t.format===`ends_with`?`Неверная строка: должна заканчиваться на "${t.suffix}"`:t.format===`includes`?`Неверная строка: должна содержать "${t.includes}"`:t.format===`regex`?`Неверная строка: должна соответствовать шаблону ${t.pattern}`:`Неверный ${n[t.format]??e.format}`}case`not_multiple_of`:return`Неверное число: должно быть кратным ${e.divisor}`;case`unrecognized_keys`:return`Нераспознанн${e.keys.length>1?`ые`:`ый`} ключ${e.keys.length>1?`и`:``}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Неверный ключ в ${e.origin}`;case`invalid_union`:return`Неверные входные данные`;case`invalid_element`:return`Неверное значение в ${e.origin}`;default:return`Неверные входные данные`}}}}));function o1(){return{localeError:s1()}}var s1,c1=o((()=>{Nq(),s1=()=>{let e={string:{unit:`znakov`,verb:`imeti`},file:{unit:`bajtov`,verb:`imeti`},array:{unit:`elementov`,verb:`imeti`},set:{unit:`elementov`,verb:`imeti`}};function t(t){return e[t]??null}let n={regex:`vnos`,email:`e-poštni naslov`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO datum in čas`,date:`ISO datum`,time:`ISO čas`,duration:`ISO trajanje`,ipv4:`IPv4 naslov`,ipv6:`IPv6 naslov`,cidrv4:`obseg IPv4`,cidrv6:`obseg IPv6`,base64:`base64 kodiran niz`,base64url:`base64url kodiran niz`,json_string:`JSON niz`,e164:`E.164 številka`,jwt:`JWT`,template_literal:`vnos`},r={nan:`NaN`,number:`število`,array:`tabela`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=hq(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Neveljaven vnos: pričakovano instanceof ${e.expected}, prejeto ${i}`:`Neveljaven vnos: pričakovano ${t}, prejeto ${i}`}case`invalid_value`:return e.values.length===1?`Neveljaven vnos: pričakovano ${$K(e.values[0])}`:`Neveljavna možnost: pričakovano eno izmed ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Preveliko: pričakovano, da bo ${e.origin??`vrednost`} imelo ${n}${e.maximum.toString()} ${r.unit??`elementov`}`:`Preveliko: pričakovano, da bo ${e.origin??`vrednost`} ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Premajhno: pričakovano, da bo ${e.origin} imelo ${n}${e.minimum.toString()} ${r.unit}`:`Premajhno: pričakovano, da bo ${e.origin} ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Neveljaven niz: mora se začeti z "${t.prefix}"`:t.format===`ends_with`?`Neveljaven niz: mora se končati z "${t.suffix}"`:t.format===`includes`?`Neveljaven niz: mora vsebovati "${t.includes}"`:t.format===`regex`?`Neveljaven niz: mora ustrezati vzorcu ${t.pattern}`:`Neveljaven ${n[t.format]??e.format}`}case`not_multiple_of`:return`Neveljavno število: mora biti večkratnik ${e.divisor}`;case`unrecognized_keys`:return`Neprepoznan${e.keys.length>1?`i ključi`:` ključ`}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Neveljaven ključ v ${e.origin}`;case`invalid_union`:return`Neveljaven vnos`;case`invalid_element`:return`Neveljavna vrednost v ${e.origin}`;default:return`Neveljaven vnos`}}}}));function l1(){return{localeError:u1()}}var u1,d1=o((()=>{Nq(),u1=()=>{let e={string:{unit:`tecken`,verb:`att ha`},file:{unit:`bytes`,verb:`att ha`},array:{unit:`objekt`,verb:`att innehålla`},set:{unit:`objekt`,verb:`att innehålla`}};function t(t){return e[t]??null}let n={regex:`reguljärt uttryck`,email:`e-postadress`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO-datum och tid`,date:`ISO-datum`,time:`ISO-tid`,duration:`ISO-varaktighet`,ipv4:`IPv4-intervall`,ipv6:`IPv6-intervall`,cidrv4:`IPv4-spektrum`,cidrv6:`IPv6-spektrum`,base64:`base64-kodad sträng`,base64url:`base64url-kodad sträng`,json_string:`JSON-sträng`,e164:`E.164-nummer`,jwt:`JWT`,template_literal:`mall-literal`},r={nan:`NaN`,number:`antal`,array:`lista`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=hq(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Ogiltig inmatning: förväntat instanceof ${e.expected}, fick ${i}`:`Ogiltig inmatning: förväntat ${t}, fick ${i}`}case`invalid_value`:return e.values.length===1?`Ogiltig inmatning: förväntat ${$K(e.values[0])}`:`Ogiltigt val: förväntade en av ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`För stor(t): förväntade ${e.origin??`värdet`} att ha ${n}${e.maximum.toString()} ${r.unit??`element`}`:`För stor(t): förväntat ${e.origin??`värdet`} att ha ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`För lite(t): förväntade ${e.origin??`värdet`} att ha ${n}${e.minimum.toString()} ${r.unit}`:`För lite(t): förväntade ${e.origin??`värdet`} att ha ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Ogiltig sträng: måste börja med "${t.prefix}"`:t.format===`ends_with`?`Ogiltig sträng: måste sluta med "${t.suffix}"`:t.format===`includes`?`Ogiltig sträng: måste innehålla "${t.includes}"`:t.format===`regex`?`Ogiltig sträng: måste matcha mönstret "${t.pattern}"`:`Ogiltig(t) ${n[t.format]??e.format}`}case`not_multiple_of`:return`Ogiltigt tal: måste vara en multipel av ${e.divisor}`;case`unrecognized_keys`:return`${e.keys.length>1?`Okända nycklar`:`Okänd nyckel`}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Ogiltig nyckel i ${e.origin??`värdet`}`;case`invalid_union`:return`Ogiltig input`;case`invalid_element`:return`Ogiltigt värde i ${e.origin??`värdet`}`;default:return`Ogiltig input`}}}}));function f1(){return{localeError:p1()}}var p1,m1=o((()=>{Nq(),p1=()=>{let e={string:{unit:`எழுத்துக்கள்`,verb:`கொண்டிருக்க வேண்டும்`},file:{unit:`பைட்டுகள்`,verb:`கொண்டிருக்க வேண்டும்`},array:{unit:`உறுப்புகள்`,verb:`கொண்டிருக்க வேண்டும்`},set:{unit:`உறுப்புகள்`,verb:`கொண்டிருக்க வேண்டும்`}};function t(t){return e[t]??null}let n={regex:`உள்ளீடு`,email:`மின்னஞ்சல் முகவரி`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO தேதி நேரம்`,date:`ISO தேதி`,time:`ISO நேரம்`,duration:`ISO கால அளவு`,ipv4:`IPv4 முகவரி`,ipv6:`IPv6 முகவரி`,cidrv4:`IPv4 வரம்பு`,cidrv6:`IPv6 வரம்பு`,base64:`base64-encoded சரம்`,base64url:`base64url-encoded சரம்`,json_string:`JSON சரம்`,e164:`E.164 எண்`,jwt:`JWT`,template_literal:`input`},r={nan:`NaN`,number:`எண்`,array:`அணி`,null:`வெறுமை`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=hq(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது instanceof ${e.expected}, பெறப்பட்டது ${i}`:`தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது ${t}, பெறப்பட்டது ${i}`}case`invalid_value`:return e.values.length===1?`தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது ${$K(e.values[0])}`:`தவறான விருப்பம்: எதிர்பார்க்கப்பட்டது ${J(e.values,`|`)} இல் ஒன்று`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`மிக பெரியது: எதிர்பார்க்கப்பட்டது ${e.origin??`மதிப்பு`} ${n}${e.maximum.toString()} ${r.unit??`உறுப்புகள்`} ஆக இருக்க வேண்டும்`:`மிக பெரியது: எதிர்பார்க்கப்பட்டது ${e.origin??`மதிப்பு`} ${n}${e.maximum.toString()} ஆக இருக்க வேண்டும்`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`மிகச் சிறியது: எதிர்பார்க்கப்பட்டது ${e.origin} ${n}${e.minimum.toString()} ${r.unit} ஆக இருக்க வேண்டும்`:`மிகச் சிறியது: எதிர்பார்க்கப்பட்டது ${e.origin} ${n}${e.minimum.toString()} ஆக இருக்க வேண்டும்`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`தவறான சரம்: "${t.prefix}" இல் தொடங்க வேண்டும்`:t.format===`ends_with`?`தவறான சரம்: "${t.suffix}" இல் முடிவடைய வேண்டும்`:t.format===`includes`?`தவறான சரம்: "${t.includes}" ஐ உள்ளடக்க வேண்டும்`:t.format===`regex`?`தவறான சரம்: ${t.pattern} முறைபாட்டுடன் பொருந்த வேண்டும்`:`தவறான ${n[t.format]??e.format}`}case`not_multiple_of`:return`தவறான எண்: ${e.divisor} இன் பலமாக இருக்க வேண்டும்`;case`unrecognized_keys`:return`அடையாளம் தெரியாத விசை${e.keys.length>1?`கள்`:``}: ${J(e.keys,`, `)}`;case`invalid_key`:return`${e.origin} இல் தவறான விசை`;case`invalid_union`:return`தவறான உள்ளீடு`;case`invalid_element`:return`${e.origin} இல் தவறான மதிப்பு`;default:return`தவறான உள்ளீடு`}}}}));function h1(){return{localeError:g1()}}var g1,_1=o((()=>{Nq(),g1=()=>{let e={string:{unit:`ตัวอักษร`,verb:`ควรมี`},file:{unit:`ไบต์`,verb:`ควรมี`},array:{unit:`รายการ`,verb:`ควรมี`},set:{unit:`รายการ`,verb:`ควรมี`}};function t(t){return e[t]??null}let n={regex:`ข้อมูลที่ป้อน`,email:`ที่อยู่อีเมล`,url:`URL`,emoji:`อิโมจิ`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`วันที่เวลาแบบ ISO`,date:`วันที่แบบ ISO`,time:`เวลาแบบ ISO`,duration:`ช่วงเวลาแบบ ISO`,ipv4:`ที่อยู่ IPv4`,ipv6:`ที่อยู่ IPv6`,cidrv4:`ช่วง IP แบบ IPv4`,cidrv6:`ช่วง IP แบบ IPv6`,base64:`ข้อความแบบ Base64`,base64url:`ข้อความแบบ Base64 สำหรับ URL`,json_string:`ข้อความแบบ JSON`,e164:`เบอร์โทรศัพท์ระหว่างประเทศ (E.164)`,jwt:`โทเคน JWT`,template_literal:`ข้อมูลที่ป้อน`},r={nan:`NaN`,number:`ตัวเลข`,array:`อาร์เรย์ (Array)`,null:`ไม่มีค่า (null)`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=hq(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`ประเภทข้อมูลไม่ถูกต้อง: ควรเป็น instanceof ${e.expected} แต่ได้รับ ${i}`:`ประเภทข้อมูลไม่ถูกต้อง: ควรเป็น ${t} แต่ได้รับ ${i}`}case`invalid_value`:return e.values.length===1?`ค่าไม่ถูกต้อง: ควรเป็น ${$K(e.values[0])}`:`ตัวเลือกไม่ถูกต้อง: ควรเป็นหนึ่งใน ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`ไม่เกิน`:`น้อยกว่า`,r=t(e.origin);return r?`เกินกำหนด: ${e.origin??`ค่า`} ควรมี${n} ${e.maximum.toString()} ${r.unit??`รายการ`}`:`เกินกำหนด: ${e.origin??`ค่า`} ควรมี${n} ${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`อย่างน้อย`:`มากกว่า`,r=t(e.origin);return r?`น้อยกว่ากำหนด: ${e.origin} ควรมี${n} ${e.minimum.toString()} ${r.unit}`:`น้อยกว่ากำหนด: ${e.origin} ควรมี${n} ${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`รูปแบบไม่ถูกต้อง: ข้อความต้องขึ้นต้นด้วย "${t.prefix}"`:t.format===`ends_with`?`รูปแบบไม่ถูกต้อง: ข้อความต้องลงท้ายด้วย "${t.suffix}"`:t.format===`includes`?`รูปแบบไม่ถูกต้อง: ข้อความต้องมี "${t.includes}" อยู่ในข้อความ`:t.format===`regex`?`รูปแบบไม่ถูกต้อง: ต้องตรงกับรูปแบบที่กำหนด ${t.pattern}`:`รูปแบบไม่ถูกต้อง: ${n[t.format]??e.format}`}case`not_multiple_of`:return`ตัวเลขไม่ถูกต้อง: ต้องเป็นจำนวนที่หารด้วย ${e.divisor} ได้ลงตัว`;case`unrecognized_keys`:return`พบคีย์ที่ไม่รู้จัก: ${J(e.keys,`, `)}`;case`invalid_key`:return`คีย์ไม่ถูกต้องใน ${e.origin}`;case`invalid_union`:return`ข้อมูลไม่ถูกต้อง: ไม่ตรงกับรูปแบบยูเนียนที่กำหนดไว้`;case`invalid_element`:return`ข้อมูลไม่ถูกต้องใน ${e.origin}`;default:return`ข้อมูลไม่ถูกต้อง`}}}}));function v1(){return{localeError:y1()}}var y1,b1=o((()=>{Nq(),y1=()=>{let e={string:{unit:`karakter`,verb:`olmalı`},file:{unit:`bayt`,verb:`olmalı`},array:{unit:`öğe`,verb:`olmalı`},set:{unit:`öğe`,verb:`olmalı`}};function t(t){return e[t]??null}let n={regex:`girdi`,email:`e-posta adresi`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO tarih ve saat`,date:`ISO tarih`,time:`ISO saat`,duration:`ISO süre`,ipv4:`IPv4 adresi`,ipv6:`IPv6 adresi`,cidrv4:`IPv4 aralığı`,cidrv6:`IPv6 aralığı`,base64:`base64 ile şifrelenmiş metin`,base64url:`base64url ile şifrelenmiş metin`,json_string:`JSON dizesi`,e164:`E.164 sayısı`,jwt:`JWT`,template_literal:`Şablon dizesi`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=hq(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Geçersiz değer: beklenen instanceof ${e.expected}, alınan ${i}`:`Geçersiz değer: beklenen ${t}, alınan ${i}`}case`invalid_value`:return e.values.length===1?`Geçersiz değer: beklenen ${$K(e.values[0])}`:`Geçersiz seçenek: aşağıdakilerden biri olmalı: ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Çok büyük: beklenen ${e.origin??`değer`} ${n}${e.maximum.toString()} ${r.unit??`öğe`}`:`Çok büyük: beklenen ${e.origin??`değer`} ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Çok küçük: beklenen ${e.origin} ${n}${e.minimum.toString()} ${r.unit}`:`Çok küçük: beklenen ${e.origin} ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Geçersiz metin: "${t.prefix}" ile başlamalı`:t.format===`ends_with`?`Geçersiz metin: "${t.suffix}" ile bitmeli`:t.format===`includes`?`Geçersiz metin: "${t.includes}" içermeli`:t.format===`regex`?`Geçersiz metin: ${t.pattern} desenine uymalı`:`Geçersiz ${n[t.format]??e.format}`}case`not_multiple_of`:return`Geçersiz sayı: ${e.divisor} ile tam bölünebilmeli`;case`unrecognized_keys`:return`Tanınmayan anahtar${e.keys.length>1?`lar`:``}: ${J(e.keys,`, `)}`;case`invalid_key`:return`${e.origin} içinde geçersiz anahtar`;case`invalid_union`:return`Geçersiz değer`;case`invalid_element`:return`${e.origin} içinde geçersiz değer`;default:return`Geçersiz değer`}}}}));function x1(){return{localeError:S1()}}var S1,C1=o((()=>{Nq(),S1=()=>{let e={string:{unit:`символів`,verb:`матиме`},file:{unit:`байтів`,verb:`матиме`},array:{unit:`елементів`,verb:`матиме`},set:{unit:`елементів`,verb:`матиме`}};function t(t){return e[t]??null}let n={regex:`вхідні дані`,email:`адреса електронної пошти`,url:`URL`,emoji:`емодзі`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`дата та час ISO`,date:`дата ISO`,time:`час ISO`,duration:`тривалість ISO`,ipv4:`адреса IPv4`,ipv6:`адреса IPv6`,cidrv4:`діапазон IPv4`,cidrv6:`діапазон IPv6`,base64:`рядок у кодуванні base64`,base64url:`рядок у кодуванні base64url`,json_string:`рядок JSON`,e164:`номер E.164`,jwt:`JWT`,template_literal:`вхідні дані`},r={nan:`NaN`,number:`число`,array:`масив`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=hq(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Неправильні вхідні дані: очікується instanceof ${e.expected}, отримано ${i}`:`Неправильні вхідні дані: очікується ${t}, отримано ${i}`}case`invalid_value`:return e.values.length===1?`Неправильні вхідні дані: очікується ${$K(e.values[0])}`:`Неправильна опція: очікується одне з ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Занадто велике: очікується, що ${e.origin??`значення`} ${r.verb} ${n}${e.maximum.toString()} ${r.unit??`елементів`}`:`Занадто велике: очікується, що ${e.origin??`значення`} буде ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Занадто мале: очікується, що ${e.origin} ${r.verb} ${n}${e.minimum.toString()} ${r.unit}`:`Занадто мале: очікується, що ${e.origin} буде ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Неправильний рядок: повинен починатися з "${t.prefix}"`:t.format===`ends_with`?`Неправильний рядок: повинен закінчуватися на "${t.suffix}"`:t.format===`includes`?`Неправильний рядок: повинен містити "${t.includes}"`:t.format===`regex`?`Неправильний рядок: повинен відповідати шаблону ${t.pattern}`:`Неправильний ${n[t.format]??e.format}`}case`not_multiple_of`:return`Неправильне число: повинно бути кратним ${e.divisor}`;case`unrecognized_keys`:return`Нерозпізнаний ключ${e.keys.length>1?`і`:``}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Неправильний ключ у ${e.origin}`;case`invalid_union`:return`Неправильні вхідні дані`;case`invalid_element`:return`Неправильне значення у ${e.origin}`;default:return`Неправильні вхідні дані`}}}}));function w1(){return x1()}var T1=o((()=>{C1()}));function E1(){return{localeError:D1()}}var D1,O1=o((()=>{Nq(),D1=()=>{let e={string:{unit:`حروف`,verb:`ہونا`},file:{unit:`بائٹس`,verb:`ہونا`},array:{unit:`آئٹمز`,verb:`ہونا`},set:{unit:`آئٹمز`,verb:`ہونا`}};function t(t){return e[t]??null}let n={regex:`ان پٹ`,email:`ای میل ایڈریس`,url:`یو آر ایل`,emoji:`ایموجی`,uuid:`یو یو آئی ڈی`,uuidv4:`یو یو آئی ڈی وی 4`,uuidv6:`یو یو آئی ڈی وی 6`,nanoid:`نینو آئی ڈی`,guid:`جی یو آئی ڈی`,cuid:`سی یو آئی ڈی`,cuid2:`سی یو آئی ڈی 2`,ulid:`یو ایل آئی ڈی`,xid:`ایکس آئی ڈی`,ksuid:`کے ایس یو آئی ڈی`,datetime:`آئی ایس او ڈیٹ ٹائم`,date:`آئی ایس او تاریخ`,time:`آئی ایس او وقت`,duration:`آئی ایس او مدت`,ipv4:`آئی پی وی 4 ایڈریس`,ipv6:`آئی پی وی 6 ایڈریس`,cidrv4:`آئی پی وی 4 رینج`,cidrv6:`آئی پی وی 6 رینج`,base64:`بیس 64 ان کوڈڈ سٹرنگ`,base64url:`بیس 64 یو آر ایل ان کوڈڈ سٹرنگ`,json_string:`جے ایس او این سٹرنگ`,e164:`ای 164 نمبر`,jwt:`جے ڈبلیو ٹی`,template_literal:`ان پٹ`},r={nan:`NaN`,number:`نمبر`,array:`آرے`,null:`نل`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=hq(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`غلط ان پٹ: instanceof ${e.expected} متوقع تھا، ${i} موصول ہوا`:`غلط ان پٹ: ${t} متوقع تھا، ${i} موصول ہوا`}case`invalid_value`:return e.values.length===1?`غلط ان پٹ: ${$K(e.values[0])} متوقع تھا`:`غلط آپشن: ${J(e.values,`|`)} میں سے ایک متوقع تھا`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`بہت بڑا: ${e.origin??`ویلیو`} کے ${n}${e.maximum.toString()} ${r.unit??`عناصر`} ہونے متوقع تھے`:`بہت بڑا: ${e.origin??`ویلیو`} کا ${n}${e.maximum.toString()} ہونا متوقع تھا`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`بہت چھوٹا: ${e.origin} کے ${n}${e.minimum.toString()} ${r.unit} ہونے متوقع تھے`:`بہت چھوٹا: ${e.origin} کا ${n}${e.minimum.toString()} ہونا متوقع تھا`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`غلط سٹرنگ: "${t.prefix}" سے شروع ہونا چاہیے`:t.format===`ends_with`?`غلط سٹرنگ: "${t.suffix}" پر ختم ہونا چاہیے`:t.format===`includes`?`غلط سٹرنگ: "${t.includes}" شامل ہونا چاہیے`:t.format===`regex`?`غلط سٹرنگ: پیٹرن ${t.pattern} سے میچ ہونا چاہیے`:`غلط ${n[t.format]??e.format}`}case`not_multiple_of`:return`غلط نمبر: ${e.divisor} کا مضاعف ہونا چاہیے`;case`unrecognized_keys`:return`غیر تسلیم شدہ کی${e.keys.length>1?`ز`:``}: ${J(e.keys,`، `)}`;case`invalid_key`:return`${e.origin} میں غلط کی`;case`invalid_union`:return`غلط ان پٹ`;case`invalid_element`:return`${e.origin} میں غلط ویلیو`;default:return`غلط ان پٹ`}}}}));function k1(){return{localeError:A1()}}var A1,j1=o((()=>{Nq(),A1=()=>{let e={string:{unit:`belgi`,verb:`bo‘lishi kerak`},file:{unit:`bayt`,verb:`bo‘lishi kerak`},array:{unit:`element`,verb:`bo‘lishi kerak`},set:{unit:`element`,verb:`bo‘lishi kerak`},map:{unit:`yozuv`,verb:`bo‘lishi kerak`}};function t(t){return e[t]??null}let n={regex:`kirish`,email:`elektron pochta manzili`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO sana va vaqti`,date:`ISO sana`,time:`ISO vaqt`,duration:`ISO davomiylik`,ipv4:`IPv4 manzil`,ipv6:`IPv6 manzil`,mac:`MAC manzil`,cidrv4:`IPv4 diapazon`,cidrv6:`IPv6 diapazon`,base64:`base64 kodlangan satr`,base64url:`base64url kodlangan satr`,json_string:`JSON satr`,e164:`E.164 raqam`,jwt:`JWT`,template_literal:`kirish`},r={nan:`NaN`,number:`raqam`,array:`massiv`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=hq(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Noto‘g‘ri kirish: kutilgan instanceof ${e.expected}, qabul qilingan ${i}`:`Noto‘g‘ri kirish: kutilgan ${t}, qabul qilingan ${i}`}case`invalid_value`:return e.values.length===1?`Noto‘g‘ri kirish: kutilgan ${$K(e.values[0])}`:`Noto‘g‘ri variant: quyidagilardan biri kutilgan ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Juda katta: kutilgan ${e.origin??`qiymat`} ${n}${e.maximum.toString()} ${r.unit} ${r.verb}`:`Juda katta: kutilgan ${e.origin??`qiymat`} ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Juda kichik: kutilgan ${e.origin} ${n}${e.minimum.toString()} ${r.unit} ${r.verb}`:`Juda kichik: kutilgan ${e.origin} ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Noto‘g‘ri satr: "${t.prefix}" bilan boshlanishi kerak`:t.format===`ends_with`?`Noto‘g‘ri satr: "${t.suffix}" bilan tugashi kerak`:t.format===`includes`?`Noto‘g‘ri satr: "${t.includes}" ni o‘z ichiga olishi kerak`:t.format===`regex`?`Noto‘g‘ri satr: ${t.pattern} shabloniga mos kelishi kerak`:`Noto‘g‘ri ${n[t.format]??e.format}`}case`not_multiple_of`:return`Noto‘g‘ri raqam: ${e.divisor} ning karralisi bo‘lishi kerak`;case`unrecognized_keys`:return`Noma’lum kalit${e.keys.length>1?`lar`:``}: ${J(e.keys,`, `)}`;case`invalid_key`:return`${e.origin} dagi kalit noto‘g‘ri`;case`invalid_union`:return`Noto‘g‘ri kirish`;case`invalid_element`:return`${e.origin} da noto‘g‘ri qiymat`;default:return`Noto‘g‘ri kirish`}}}}));function M1(){return{localeError:N1()}}var N1,P1=o((()=>{Nq(),N1=()=>{let e={string:{unit:`ký tự`,verb:`có`},file:{unit:`byte`,verb:`có`},array:{unit:`phần tử`,verb:`có`},set:{unit:`phần tử`,verb:`có`}};function t(t){return e[t]??null}let n={regex:`đầu vào`,email:`địa chỉ email`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ngày giờ ISO`,date:`ngày ISO`,time:`giờ ISO`,duration:`khoảng thời gian ISO`,ipv4:`địa chỉ IPv4`,ipv6:`địa chỉ IPv6`,cidrv4:`dải IPv4`,cidrv6:`dải IPv6`,base64:`chuỗi mã hóa base64`,base64url:`chuỗi mã hóa base64url`,json_string:`chuỗi JSON`,e164:`số E.164`,jwt:`JWT`,template_literal:`đầu vào`},r={nan:`NaN`,number:`số`,array:`mảng`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=hq(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Đầu vào không hợp lệ: mong đợi instanceof ${e.expected}, nhận được ${i}`:`Đầu vào không hợp lệ: mong đợi ${t}, nhận được ${i}`}case`invalid_value`:return e.values.length===1?`Đầu vào không hợp lệ: mong đợi ${$K(e.values[0])}`:`Tùy chọn không hợp lệ: mong đợi một trong các giá trị ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Quá lớn: mong đợi ${e.origin??`giá trị`} ${r.verb} ${n}${e.maximum.toString()} ${r.unit??`phần tử`}`:`Quá lớn: mong đợi ${e.origin??`giá trị`} ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Quá nhỏ: mong đợi ${e.origin} ${r.verb} ${n}${e.minimum.toString()} ${r.unit}`:`Quá nhỏ: mong đợi ${e.origin} ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Chuỗi không hợp lệ: phải bắt đầu bằng "${t.prefix}"`:t.format===`ends_with`?`Chuỗi không hợp lệ: phải kết thúc bằng "${t.suffix}"`:t.format===`includes`?`Chuỗi không hợp lệ: phải bao gồm "${t.includes}"`:t.format===`regex`?`Chuỗi không hợp lệ: phải khớp với mẫu ${t.pattern}`:`${n[t.format]??e.format} không hợp lệ`}case`not_multiple_of`:return`Số không hợp lệ: phải là bội số của ${e.divisor}`;case`unrecognized_keys`:return`Khóa không được nhận dạng: ${J(e.keys,`, `)}`;case`invalid_key`:return`Khóa không hợp lệ trong ${e.origin}`;case`invalid_union`:return`Đầu vào không hợp lệ`;case`invalid_element`:return`Giá trị không hợp lệ trong ${e.origin}`;default:return`Đầu vào không hợp lệ`}}}}));function F1(){return{localeError:I1()}}var I1,L1=o((()=>{Nq(),I1=()=>{let e={string:{unit:`字符`,verb:`包含`},file:{unit:`字节`,verb:`包含`},array:{unit:`项`,verb:`包含`},set:{unit:`项`,verb:`包含`}};function t(t){return e[t]??null}let n={regex:`输入`,email:`电子邮件`,url:`URL`,emoji:`表情符号`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO日期时间`,date:`ISO日期`,time:`ISO时间`,duration:`ISO时长`,ipv4:`IPv4地址`,ipv6:`IPv6地址`,cidrv4:`IPv4网段`,cidrv6:`IPv6网段`,base64:`base64编码字符串`,base64url:`base64url编码字符串`,json_string:`JSON字符串`,e164:`E.164号码`,jwt:`JWT`,template_literal:`输入`},r={nan:`NaN`,number:`数字`,array:`数组`,null:`空值(null)`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=hq(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`无效输入:期望 instanceof ${e.expected},实际接收 ${i}`:`无效输入:期望 ${t},实际接收 ${i}`}case`invalid_value`:return e.values.length===1?`无效输入:期望 ${$K(e.values[0])}`:`无效选项:期望以下之一 ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`数值过大:期望 ${e.origin??`值`} ${n}${e.maximum.toString()} ${r.unit??`个元素`}`:`数值过大:期望 ${e.origin??`值`} ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`数值过小:期望 ${e.origin} ${n}${e.minimum.toString()} ${r.unit}`:`数值过小:期望 ${e.origin} ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`无效字符串:必须以 "${t.prefix}" 开头`:t.format===`ends_with`?`无效字符串:必须以 "${t.suffix}" 结尾`:t.format===`includes`?`无效字符串:必须包含 "${t.includes}"`:t.format===`regex`?`无效字符串:必须满足正则表达式 ${t.pattern}`:`无效${n[t.format]??e.format}`}case`not_multiple_of`:return`无效数字:必须是 ${e.divisor} 的倍数`;case`unrecognized_keys`:return`出现未知的键(key): ${J(e.keys,`, `)}`;case`invalid_key`:return`${e.origin} 中的键(key)无效`;case`invalid_union`:return`无效输入`;case`invalid_element`:return`${e.origin} 中包含无效值(value)`;default:return`无效输入`}}}}));function R1(){return{localeError:z1()}}var z1,B1=o((()=>{Nq(),z1=()=>{let e={string:{unit:`字元`,verb:`擁有`},file:{unit:`位元組`,verb:`擁有`},array:{unit:`項目`,verb:`擁有`},set:{unit:`項目`,verb:`擁有`}};function t(t){return e[t]??null}let n={regex:`輸入`,email:`郵件地址`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO 日期時間`,date:`ISO 日期`,time:`ISO 時間`,duration:`ISO 期間`,ipv4:`IPv4 位址`,ipv6:`IPv6 位址`,cidrv4:`IPv4 範圍`,cidrv6:`IPv6 範圍`,base64:`base64 編碼字串`,base64url:`base64url 編碼字串`,json_string:`JSON 字串`,e164:`E.164 數值`,jwt:`JWT`,template_literal:`輸入`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=hq(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`無效的輸入值:預期為 instanceof ${e.expected},但收到 ${i}`:`無效的輸入值:預期為 ${t},但收到 ${i}`}case`invalid_value`:return e.values.length===1?`無效的輸入值:預期為 ${$K(e.values[0])}`:`無效的選項:預期為以下其中之一 ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`數值過大:預期 ${e.origin??`值`} 應為 ${n}${e.maximum.toString()} ${r.unit??`個元素`}`:`數值過大:預期 ${e.origin??`值`} 應為 ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`數值過小:預期 ${e.origin} 應為 ${n}${e.minimum.toString()} ${r.unit}`:`數值過小:預期 ${e.origin} 應為 ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`無效的字串:必須以 "${t.prefix}" 開頭`:t.format===`ends_with`?`無效的字串:必須以 "${t.suffix}" 結尾`:t.format===`includes`?`無效的字串:必須包含 "${t.includes}"`:t.format===`regex`?`無效的字串:必須符合格式 ${t.pattern}`:`無效的 ${n[t.format]??e.format}`}case`not_multiple_of`:return`無效的數字:必須為 ${e.divisor} 的倍數`;case`unrecognized_keys`:return`無法識別的鍵值${e.keys.length>1?`們`:``}:${J(e.keys,`、`)}`;case`invalid_key`:return`${e.origin} 中有無效的鍵值`;case`invalid_union`:return`無效的輸入值`;case`invalid_element`:return`${e.origin} 中有無效的值`;default:return`無效的輸入值`}}}}));function V1(){return{localeError:H1()}}var H1,U1=o((()=>{Nq(),H1=()=>{let e={string:{unit:`àmi`,verb:`ní`},file:{unit:`bytes`,verb:`ní`},array:{unit:`nkan`,verb:`ní`},set:{unit:`nkan`,verb:`ní`}};function t(t){return e[t]??null}let n={regex:`ẹ̀rọ ìbáwọlé`,email:`àdírẹ́sì ìmẹ́lì`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`àkókò ISO`,date:`ọjọ́ ISO`,time:`àkókò ISO`,duration:`àkókò tó pé ISO`,ipv4:`àdírẹ́sì IPv4`,ipv6:`àdírẹ́sì IPv6`,cidrv4:`àgbègbè IPv4`,cidrv6:`àgbègbè IPv6`,base64:`ọ̀rọ̀ tí a kọ́ ní base64`,base64url:`ọ̀rọ̀ base64url`,json_string:`ọ̀rọ̀ JSON`,e164:`nọ́mbà E.164`,jwt:`JWT`,template_literal:`ẹ̀rọ ìbáwọlé`},r={nan:`NaN`,number:`nọ́mbà`,array:`akopọ`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=hq(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Ìbáwọlé aṣìṣe: a ní láti fi instanceof ${e.expected}, àmọ̀ a rí ${i}`:`Ìbáwọlé aṣìṣe: a ní láti fi ${t}, àmọ̀ a rí ${i}`}case`invalid_value`:return e.values.length===1?`Ìbáwọlé aṣìṣe: a ní láti fi ${$K(e.values[0])}`:`Àṣàyàn aṣìṣe: yan ọ̀kan lára ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Tó pọ̀ jù: a ní láti jẹ́ pé ${e.origin??`iye`} ${r.verb} ${n}${e.maximum} ${r.unit}`:`Tó pọ̀ jù: a ní láti jẹ́ ${n}${e.maximum}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Kéré ju: a ní láti jẹ́ pé ${e.origin} ${r.verb} ${n}${e.minimum} ${r.unit}`:`Kéré ju: a ní láti jẹ́ ${n}${e.minimum}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ bẹ̀rẹ̀ pẹ̀lú "${t.prefix}"`:t.format===`ends_with`?`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ parí pẹ̀lú "${t.suffix}"`:t.format===`includes`?`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ ní "${t.includes}"`:t.format===`regex`?`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ bá àpẹẹrẹ mu ${t.pattern}`:`Aṣìṣe: ${n[t.format]??e.format}`}case`not_multiple_of`:return`Nọ́mbà aṣìṣe: gbọ́dọ̀ jẹ́ èyà pípín ti ${e.divisor}`;case`unrecognized_keys`:return`Bọtìnì àìmọ̀: ${J(e.keys,`, `)}`;case`invalid_key`:return`Bọtìnì aṣìṣe nínú ${e.origin}`;case`invalid_union`:return`Ìbáwọlé aṣìṣe`;case`invalid_element`:return`Iye aṣìṣe nínú ${e.origin}`;default:return`Ìbáwọlé aṣìṣe`}}}})),W1=c({ar:()=>KZ,az:()=>YZ,be:()=>$Z,bg:()=>nQ,ca:()=>aQ,cs:()=>cQ,da:()=>dQ,de:()=>mQ,el:()=>_Q,en:()=>bQ,eo:()=>CQ,es:()=>EQ,fa:()=>kQ,fi:()=>MQ,fr:()=>FQ,frCA:()=>RQ,he:()=>VQ,hr:()=>WQ,hu:()=>qQ,hy:()=>QQ,id:()=>t$,is:()=>i$,it:()=>s$,ja:()=>u$,ka:()=>p$,kh:()=>y$,km:()=>g$,ko:()=>x$,lt:()=>T$,mk:()=>k$,ms:()=>M$,nl:()=>F$,no:()=>R$,ota:()=>V$,pl:()=>q$,ps:()=>W$,pt:()=>X$,ro:()=>$$,ru:()=>r1,sl:()=>o1,sv:()=>l1,ta:()=>f1,th:()=>h1,tr:()=>v1,ua:()=>w1,uk:()=>x1,ur:()=>E1,uz:()=>k1,vi:()=>M1,yo:()=>V1,zhCN:()=>F1,zhTW:()=>R1}),G1=o((()=>{JZ(),ZZ(),tQ(),iQ(),sQ(),uQ(),pQ(),gQ(),yQ(),SQ(),TQ(),OQ(),jQ(),PQ(),LQ(),BQ(),UQ(),KQ(),YQ(),e$(),r$(),o$(),l$(),f$(),h$(),b$(),v$(),C$(),O$(),j$(),P$(),L$(),B$(),U$(),K$(),Y$(),Q$(),t1(),a1(),c1(),d1(),m1(),_1(),b1(),T1(),C1(),O1(),j1(),P1(),L1(),B1(),U1()}));function K1(){return new X1}var q1,J1,Y1,X1,Z1,Q1=o((()=>{J1=Symbol(`ZodOutput`),Y1=Symbol(`ZodInput`),X1=class{constructor(){this._map=new WeakMap,this._idmap=new Map}add(e,...t){let n=t[0];return this._map.set(e,n),n&&typeof n==`object`&&`id`in n&&this._idmap.set(n.id,e),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(e){let t=this._map.get(e);return t&&typeof t==`object`&&`id`in t&&this._idmap.delete(t.id),this._map.delete(e),this}get(e){let t=e._zod.parent;if(t){let n={...this.get(t)??{}};delete n.id;let r={...n,...this._map.get(e)};return Object.keys(r).length?r:void 0}return this._map.get(e)}has(e){return this._map.has(e)}},(q1=globalThis).__zod_globalRegistry??(q1.__zod_globalRegistry=K1()),Z1=globalThis.__zod_globalRegistry}));function $1(e,t){return new e({type:`string`,...Y(t)})}function e0(e,t){return new e({type:`string`,coerce:!0,...Y(t)})}function t0(e,t){return new e({type:`string`,format:`email`,check:`string_format`,abort:!1,...Y(t)})}function n0(e,t){return new e({type:`string`,format:`guid`,check:`string_format`,abort:!1,...Y(t)})}function r0(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,...Y(t)})}function i0(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v4`,...Y(t)})}function a0(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v6`,...Y(t)})}function o0(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v7`,...Y(t)})}function s0(e,t){return new e({type:`string`,format:`url`,check:`string_format`,abort:!1,...Y(t)})}function c0(e,t){return new e({type:`string`,format:`emoji`,check:`string_format`,abort:!1,...Y(t)})}function l0(e,t){return new e({type:`string`,format:`nanoid`,check:`string_format`,abort:!1,...Y(t)})}function u0(e,t){return new e({type:`string`,format:`cuid`,check:`string_format`,abort:!1,...Y(t)})}function d0(e,t){return new e({type:`string`,format:`cuid2`,check:`string_format`,abort:!1,...Y(t)})}function f0(e,t){return new e({type:`string`,format:`ulid`,check:`string_format`,abort:!1,...Y(t)})}function p0(e,t){return new e({type:`string`,format:`xid`,check:`string_format`,abort:!1,...Y(t)})}function m0(e,t){return new e({type:`string`,format:`ksuid`,check:`string_format`,abort:!1,...Y(t)})}function h0(e,t){return new e({type:`string`,format:`ipv4`,check:`string_format`,abort:!1,...Y(t)})}function g0(e,t){return new e({type:`string`,format:`ipv6`,check:`string_format`,abort:!1,...Y(t)})}function _0(e,t){return new e({type:`string`,format:`mac`,check:`string_format`,abort:!1,...Y(t)})}function v0(e,t){return new e({type:`string`,format:`cidrv4`,check:`string_format`,abort:!1,...Y(t)})}function y0(e,t){return new e({type:`string`,format:`cidrv6`,check:`string_format`,abort:!1,...Y(t)})}function b0(e,t){return new e({type:`string`,format:`base64`,check:`string_format`,abort:!1,...Y(t)})}function x0(e,t){return new e({type:`string`,format:`base64url`,check:`string_format`,abort:!1,...Y(t)})}function S0(e,t){return new e({type:`string`,format:`e164`,check:`string_format`,abort:!1,...Y(t)})}function C0(e,t){return new e({type:`string`,format:`jwt`,check:`string_format`,abort:!1,...Y(t)})}function w0(e,t){return new e({type:`string`,format:`datetime`,check:`string_format`,offset:!1,local:!1,precision:null,...Y(t)})}function T0(e,t){return new e({type:`string`,format:`date`,check:`string_format`,...Y(t)})}function E0(e,t){return new e({type:`string`,format:`time`,check:`string_format`,precision:null,...Y(t)})}function D0(e,t){return new e({type:`string`,format:`duration`,check:`string_format`,...Y(t)})}function O0(e,t){return new e({type:`number`,checks:[],...Y(t)})}function k0(e,t){return new e({type:`number`,coerce:!0,checks:[],...Y(t)})}function A0(e,t){return new e({type:`number`,check:`number_format`,abort:!1,format:`safeint`,...Y(t)})}function j0(e,t){return new e({type:`number`,check:`number_format`,abort:!1,format:`float32`,...Y(t)})}function M0(e,t){return new e({type:`number`,check:`number_format`,abort:!1,format:`float64`,...Y(t)})}function N0(e,t){return new e({type:`number`,check:`number_format`,abort:!1,format:`int32`,...Y(t)})}function P0(e,t){return new e({type:`number`,check:`number_format`,abort:!1,format:`uint32`,...Y(t)})}function F0(e,t){return new e({type:`boolean`,...Y(t)})}function I0(e,t){return new e({type:`boolean`,coerce:!0,...Y(t)})}function L0(e,t){return new e({type:`bigint`,...Y(t)})}function R0(e,t){return new e({type:`bigint`,coerce:!0,...Y(t)})}function z0(e,t){return new e({type:`bigint`,check:`bigint_format`,abort:!1,format:`int64`,...Y(t)})}function B0(e,t){return new e({type:`bigint`,check:`bigint_format`,abort:!1,format:`uint64`,...Y(t)})}function V0(e,t){return new e({type:`symbol`,...Y(t)})}function H0(e,t){return new e({type:`undefined`,...Y(t)})}function U0(e,t){return new e({type:`null`,...Y(t)})}function W0(e){return new e({type:`any`})}function G0(e){return new e({type:`unknown`})}function K0(e,t){return new e({type:`never`,...Y(t)})}function q0(e,t){return new e({type:`void`,...Y(t)})}function J0(e,t){return new e({type:`date`,...Y(t)})}function Y0(e,t){return new e({type:`date`,coerce:!0,...Y(t)})}function X0(e,t){return new e({type:`nan`,...Y(t)})}function Z0(e,t){return new kY({check:`less_than`,...Y(t),value:e,inclusive:!1})}function Q0(e,t){return new kY({check:`less_than`,...Y(t),value:e,inclusive:!0})}function $0(e,t){return new AY({check:`greater_than`,...Y(t),value:e,inclusive:!1})}function e2(e,t){return new AY({check:`greater_than`,...Y(t),value:e,inclusive:!0})}function t2(e){return $0(0,e)}function n2(e){return Z0(0,e)}function r2(e){return Q0(0,e)}function i2(e){return e2(0,e)}function a2(e,t){return new jY({check:`multiple_of`,...Y(t),value:e})}function o2(e,t){return new PY({check:`max_size`,...Y(t),maximum:e})}function s2(e,t){return new FY({check:`min_size`,...Y(t),minimum:e})}function c2(e,t){return new IY({check:`size_equals`,...Y(t),size:e})}function l2(e,t){return new LY({check:`max_length`,...Y(t),maximum:e})}function u2(e,t){return new RY({check:`min_length`,...Y(t),minimum:e})}function d2(e,t){return new zY({check:`length_equals`,...Y(t),length:e})}function f2(e,t){return new VY({check:`string_format`,format:`regex`,...Y(t),pattern:e})}function p2(e){return new HY({check:`string_format`,format:`lowercase`,...Y(e)})}function m2(e){return new UY({check:`string_format`,format:`uppercase`,...Y(e)})}function h2(e,t){return new WY({check:`string_format`,format:`includes`,...Y(t),includes:e})}function g2(e,t){return new GY({check:`string_format`,format:`starts_with`,...Y(t),prefix:e})}function _2(e,t){return new KY({check:`string_format`,format:`ends_with`,...Y(t),suffix:e})}function v2(e,t,n){return new qY({check:`property`,property:e,schema:t,...Y(n)})}function y2(e,t){return new JY({check:`mime_type`,mime:e,...Y(t)})}function b2(e){return new YY({check:`overwrite`,tx:e})}function x2(e){return b2(t=>t.normalize(e))}function S2(){return b2(e=>e.trim())}function C2(){return b2(e=>e.toLowerCase())}function w2(){return b2(e=>e.toUpperCase())}function T2(){return b2(e=>GK(e))}function E2(e,t,n){return new e({type:`array`,element:t,...Y(n)})}function D2(e,t,n){return new e({type:`union`,options:t,...Y(n)})}function O2(e,t,n){return new e({type:`union`,options:t,inclusive:!1,...Y(n)})}function k2(e,t,n,r){return new e({type:`union`,options:n,discriminator:t,...Y(r)})}function A2(e,t,n){return new e({type:`intersection`,left:t,right:n})}function j2(e,t,n,r){let i=n instanceof TX;return new e({type:`tuple`,items:t,rest:i?n:null,...Y(i?r:n)})}function M2(e,t,n,r){return new e({type:`record`,keyType:t,valueType:n,...Y(r)})}function N2(e,t,n,r){return new e({type:`map`,keyType:t,valueType:n,...Y(r)})}function P2(e,t,n){return new e({type:`set`,valueType:t,...Y(n)})}function F2(e,t,n){return new e({type:`enum`,entries:Array.isArray(t)?Object.fromEntries(t.map(e=>[e,e])):t,...Y(n)})}function I2(e,t,n){return new e({type:`enum`,entries:t,...Y(n)})}function L2(e,t,n){return new e({type:`literal`,values:Array.isArray(t)?t:[t],...Y(n)})}function R2(e,t){return new e({type:`file`,...Y(t)})}function z2(e,t){return new e({type:`transform`,transform:t})}function B2(e,t){return new e({type:`optional`,innerType:t})}function V2(e,t){return new e({type:`nullable`,innerType:t})}function H2(e,t,n){return new e({type:`default`,innerType:t,get defaultValue(){return typeof n==`function`?n():JK(n)}})}function U2(e,t,n){return new e({type:`nonoptional`,innerType:t,...Y(n)})}function W2(e,t){return new e({type:`success`,innerType:t})}function G2(e,t,n){return new e({type:`catch`,innerType:t,catchValue:typeof n==`function`?n:()=>n})}function K2(e,t,n){return new e({type:`pipe`,in:t,out:n})}function q2(e,t){return new e({type:`readonly`,innerType:t})}function J2(e,t,n){return new e({type:`template_literal`,parts:t,...Y(n)})}function Y2(e,t){return new e({type:`lazy`,getter:t})}function X2(e,t){return new e({type:`promise`,innerType:t})}function Z2(e,t,n){let r=Y(n);return r.abort??=!0,new e({type:`custom`,check:`custom`,fn:t,...r})}function Q2(e,t,n){return new e({type:`custom`,check:`custom`,fn:t,...Y(n)})}function $2(e,t){let n=e4(t=>(t.addIssue=e=>{if(typeof e==`string`)t.issues.push(gq(e,t.value,n._zod.def));else{let r=e;r.fatal&&(r.continue=!1),r.code??=`custom`,r.input??=t.value,r.inst??=n,r.continue??=!n._zod.def.abort,t.issues.push(gq(r))}},e(t.value,t)),t);return n}function e4(e,t){let n=new DY({check:`custom`,...Y(t)});return n._zod.check=e,n}function t4(e){let t=new DY({check:`describe`});return t._zod.onattach=[t=>{let n=Z1.get(t)??{};Z1.add(t,{...n,description:e})}],t._zod.check=()=>{},t}function n4(e){let t=new DY({check:`meta`});return t._zod.onattach=[t=>{let n=Z1.get(t)??{};Z1.add(t,{...n,...e})}],t._zod.check=()=>{},t}function r4(e,t){let n=Y(t),r=n.truthy??[`true`,`1`,`yes`,`on`,`y`,`enabled`],i=n.falsy??[`false`,`0`,`no`,`off`,`n`,`disabled`];n.case!==`sensitive`&&(r=r.map(e=>typeof e==`string`?e.toLowerCase():e),i=i.map(e=>typeof e==`string`?e.toLowerCase():e));let a=new Set(r),o=new Set(i),s=e.Codec??LZ,c=e.Boolean??tZ,l=new s({type:`pipe`,in:new(e.String??EX)({type:`string`,error:n.error}),out:new c({type:`boolean`,error:n.error}),transform:((e,t)=>{let r=e;return n.case!==`sensitive`&&(r=r.toLowerCase()),a.has(r)?!0:!o.has(r)&&(t.issues.push({code:`invalid_value`,expected:`stringbool`,values:[...a,...o],input:t.value,inst:l,continue:!1}),{})}),reverseTransform:((e,t)=>e===!0?r[0]||`true`:i[0]||`false`),error:n.error});return l}function i4(e,t,n,r={}){let i=Y(r),a={...Y(r),check:`string_format`,type:`string`,format:t,fn:typeof n==`function`?n:e=>n.test(e),...i};return n instanceof RegExp&&(a.pattern=n),new e(a)}var a4,o4=o((()=>{XY(),Q1(),GZ(),Nq(),a4={Any:null,Minute:-1,Second:0,Millisecond:3,Microsecond:6}}));function s4(e){let t=e?.target??`draft-2020-12`;return t===`draft-4`&&(t=`draft-04`),t===`draft-7`&&(t=`draft-07`),{processors:e.processors??{},metadataRegistry:e?.metadata??Z1,target:t,unrepresentable:e?.unrepresentable??`throw`,override:e?.override??(()=>{}),io:e?.io??`output`,counter:0,seen:new Map,cycles:e?.cycles??`ref`,reused:e?.reused??`inline`,external:e?.external??void 0}}function c4(e,t,n={path:[],schemaPath:[]}){var r;let i=e._zod.def,a=t.seen.get(e);if(a)return a.count++,n.schemaPath.includes(e)&&(a.cycle=n.path),a.schema;let o={schema:{},count:1,cycle:void 0,path:n.path};t.seen.set(e,o);let s=e._zod.toJSONSchema?.();if(s)o.schema=s;else{let r={...n,schemaPath:[...n.schemaPath,e],path:n.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,o.schema,r);else{let n=o.schema,a=t.processors[i.type];if(!a)throw Error(`[toJSONSchema]: Non-representable type encountered: ${i.type}`);a(e,t,n,r)}let a=e._zod.parent;a&&(o.ref||=a,c4(a,t,r),t.seen.get(a).isParent=!0)}let c=t.metadataRegistry.get(e);return c&&Object.assign(o.schema,c),t.io===`input`&&d4(e)&&(delete o.schema.examples,delete o.schema.default),t.io===`input`&&`_prefault`in o.schema&&((r=o.schema).default??(r.default=o.schema._prefault)),delete o.schema._prefault,t.seen.get(e).schema}function l4(e,t){let n=e.seen.get(t);if(!n)throw Error(`Unprocessed schema. This is a bug in Zod.`);let r=new Map;for(let t of e.seen.entries()){let n=e.metadataRegistry.get(t[0])?.id;if(n){let e=r.get(n);if(e&&e!==t[0])throw Error(`Duplicate schema id "${n}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);r.set(n,t[0])}}let i=t=>{let r=e.target===`draft-2020-12`?`$defs`:`definitions`;if(e.external){let n=e.external.registry.get(t[0])?.id,i=e.external.uri??(e=>e);if(n)return{ref:i(n)};let a=t[1].defId??t[1].schema.id??`schema${e.counter++}`;return t[1].defId=a,{defId:a,ref:`${i(`__shared`)}#/${r}/${a}`}}if(t[1]===n)return{ref:`#`};let i=`#/${r}/`,a=t[1].schema.id??`__schema${e.counter++}`;return{defId:a,ref:i+a}},a=e=>{if(e[1].schema.$ref)return;let t=e[1],{ref:n,defId:r}=i(e);t.def={...t.schema},r&&(t.defId=r);let a=t.schema;for(let e in a)delete a[e];a.$ref=n};if(e.cycles===`throw`)for(let t of e.seen.entries()){let e=t[1];if(e.cycle)throw Error(`Cycle detected: #/${e.cycle?.join(`/`)}/ -Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let n of e.seen.entries()){let r=n[1];if(t===n[0]){a(n);continue}if(e.external){let r=e.external.registry.get(n[0])?.id;if(t!==n[0]&&r){a(n);continue}}if(e.metadataRegistry.get(n[0])?.id){a(n);continue}if(r.cycle){a(n);continue}if(r.count>1&&e.reused===`ref`){a(n);continue}}}function r4(e,t){let n=e.seen.get(t);if(!n)throw Error(`Unprocessed schema. This is a bug in Zod.`);let r=t=>{let n=e.seen.get(t);if(n.ref===null)return;let i=n.def??n.schema,a={...i},o=n.ref;if(n.ref=null,o){r(o);let n=e.seen.get(o),s=n.schema;if(s.$ref&&(e.target===`draft-07`||e.target===`draft-04`||e.target===`openapi-3.0`)?(i.allOf=i.allOf??[],i.allOf.push(s)):Object.assign(i,s),Object.assign(i,a),t._zod.parent===o)for(let e in i)e!==`$ref`&&e!==`allOf`&&(e in a||delete i[e]);if(s.$ref&&n.def)for(let e in i)e!==`$ref`&&e!==`allOf`&&e in n.def&&JSON.stringify(i[e])===JSON.stringify(n.def[e])&&delete i[e]}let s=t._zod.parent;if(s&&s!==o){r(s);let t=e.seen.get(s);if(t?.schema.$ref&&(i.$ref=t.schema.$ref,t.def))for(let e in i)e!==`$ref`&&e!==`allOf`&&e in t.def&&JSON.stringify(i[e])===JSON.stringify(t.def[e])&&delete i[e]}e.override({zodSchema:t,jsonSchema:i,path:n.path??[]})};for(let t of[...e.seen.entries()].reverse())r(t[0]);let i={};if(e.target===`draft-2020-12`?i.$schema=`https://json-schema.org/draft/2020-12/schema`:e.target===`draft-07`?i.$schema=`http://json-schema.org/draft-07/schema#`:e.target===`draft-04`?i.$schema=`http://json-schema.org/draft-04/schema#`:e.target,e.external?.uri){let n=e.external.registry.get(t)?.id;if(!n)throw Error("Schema is missing an `id` property");i.$id=e.external.uri(n)}Object.assign(i,n.def??n.schema);let a=e.metadataRegistry.get(t)?.id;a!==void 0&&i.id===a&&delete i.id;let o=e.external?.defs??{};for(let t of e.seen.entries()){let e=t[1];e.def&&e.defId&&(e.def.id===e.defId&&delete e.def.id,o[e.defId]=e.def)}e.external||Object.keys(o).length>0&&(e.target===`draft-2020-12`?i.$defs=o:i.definitions=o);try{let n=JSON.parse(JSON.stringify(i));return Object.defineProperty(n,"~standard",{value:{...t[`~standard`],jsonSchema:{input:o4(t,`input`,e.processors),output:o4(t,`output`,e.processors)}},enumerable:!1,writable:!1}),n}catch{throw Error(`Error converting schema to JSON.`)}}function i4(e,t){let n=t??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);let r=e._zod.def;if(r.type===`transform`)return!0;if(r.type===`array`)return i4(r.element,n);if(r.type===`set`)return i4(r.valueType,n);if(r.type===`lazy`)return i4(r.getter(),n);if(r.type===`promise`||r.type===`optional`||r.type===`nonoptional`||r.type===`nullable`||r.type===`readonly`||r.type==="default"||r.type===`prefault`)return i4(r.innerType,n);if(r.type===`intersection`)return i4(r.left,n)||i4(r.right,n);if(r.type===`record`||r.type===`map`)return i4(r.keyType,n)||i4(r.valueType,n);if(r.type===`pipe`)return e._zod.traits.has(`$ZodCodec`)?!0:i4(r.in,n)||i4(r.out,n);if(r.type===`object`){for(let e in r.shape)if(i4(r.shape[e],n))return!0;return!1}if(r.type===`union`){for(let e of r.options)if(i4(e,n))return!0;return!1}if(r.type===`tuple`){for(let e of r.items)if(i4(e,n))return!0;return!!(r.rest&&i4(r.rest,n))}return!1}var a4,o4,s4=o((()=>{G1(),a4=(e,t={})=>n=>{let r=e4({...n,processors:t});return t4(e,r),n4(r,e),r4(r,e)},o4=(e,t,n={})=>r=>{let{libraryOptions:i,target:a}=r??{},o=e4({...i??{},target:a,io:t,processors:n});return t4(e,o),n4(o,e),r4(o,e)}}));function c4(e,t){if(`_idmap`in e){let n=e,r=e4({...t,processors:Y4}),i={};for(let e of n._idmap.entries()){let[t,n]=e;t4(n,r)}let a={};r.external={registry:n,uri:t?.uri,defs:i};for(let e of n._idmap.entries()){let[t,n]=e;n4(r,n),a[t]=r4(r,n)}return Object.keys(i).length>0&&(a.__shared={[r.target===`draft-2020-12`?`$defs`:`definitions`]:i}),{schemas:a}}let n=e4({...t,processors:Y4});return t4(e,n),n4(n,e),r4(n,e)}var l4,u4,d4,f4,p4,m4,h4,g4,_4,v4,y4,b4,x4,S4,C4,w4,T4,E4,D4,O4,k4,A4,j4,M4,N4,P4,F4,I4,L4,R4,z4,B4,V4,H4,U4,W4,G4,K4,q4,J4,Y4,X4=o((()=>{s4(),Eq(),l4={guid:`uuid`,url:`uri`,datetime:`date-time`,json_string:`json-string`,regex:``},u4=(e,t,n,r)=>{let i=n;i.type=`string`;let{minimum:a,maximum:o,format:s,patterns:c,contentEncoding:l}=e._zod.bag;if(typeof a==`number`&&(i.minLength=a),typeof o==`number`&&(i.maxLength=o),s&&(i.format=l4[s]??s,i.format===``&&delete i.format,s===`time`&&delete i.format),l&&(i.contentEncoding=l),c&&c.size>0){let e=[...c];e.length===1?i.pattern=e[0].source:e.length>1&&(i.allOf=[...e.map(e=>({...t.target===`draft-07`||t.target===`draft-04`||t.target===`openapi-3.0`?{type:`string`}:{},pattern:e.source}))])}},d4=(e,t,n,r)=>{let i=n,{minimum:a,maximum:o,format:s,multipleOf:c,exclusiveMaximum:l,exclusiveMinimum:u}=e._zod.bag;i.type=typeof s==`string`&&s.includes(`int`)?`integer`:`number`;let d=typeof u==`number`&&u>=(a??-1/0),f=typeof l==`number`&&l<=(o??1/0),p=t.target===`draft-04`||t.target===`openapi-3.0`;d?p?(i.minimum=u,i.exclusiveMinimum=!0):i.exclusiveMinimum=u:typeof a==`number`&&(i.minimum=a),f?p?(i.maximum=l,i.exclusiveMaximum=!0):i.exclusiveMaximum=l:typeof o==`number`&&(i.maximum=o),typeof c==`number`&&(i.multipleOf=c)},f4=(e,t,n,r)=>{n.type=`boolean`},p4=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`BigInt cannot be represented in JSON Schema`)},m4=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Symbols cannot be represented in JSON Schema`)},h4=(e,t,n,r)=>{t.target===`openapi-3.0`?(n.type=`string`,n.nullable=!0,n.enum=[null]):n.type=`null`},g4=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Undefined cannot be represented in JSON Schema`)},_4=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Void cannot be represented in JSON Schema`)},v4=(e,t,n,r)=>{n.not={}},y4=(e,t,n,r)=>{},b4=(e,t,n,r)=>{},x4=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Date cannot be represented in JSON Schema`)},S4=(e,t,n,r)=>{let i=e._zod.def,a=CK(i.entries);a.every(e=>typeof e==`number`)&&(n.type=`number`),a.every(e=>typeof e==`string`)&&(n.type=`string`),n.enum=a},C4=(e,t,n,r)=>{let i=e._zod.def,a=[];for(let e of i.values)if(e===void 0){if(t.unrepresentable===`throw`)throw Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof e==`bigint`){if(t.unrepresentable===`throw`)throw Error(`BigInt literals cannot be represented in JSON Schema`);a.push(Number(e))}else a.push(e);if(a.length!==0)if(a.length===1){let e=a[0];n.type=e===null?`null`:typeof e,t.target===`draft-04`||t.target===`openapi-3.0`?n.enum=[e]:n.const=e}else a.every(e=>typeof e==`number`)&&(n.type=`number`),a.every(e=>typeof e==`string`)&&(n.type=`string`),a.every(e=>typeof e==`boolean`)&&(n.type=`boolean`),a.every(e=>e===null)&&(n.type=`null`),n.enum=a},w4=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`NaN cannot be represented in JSON Schema`)},T4=(e,t,n,r)=>{let i=n,a=e._zod.pattern;if(!a)throw Error(`Pattern not found in template literal`);i.type=`string`,i.pattern=a.source},E4=(e,t,n,r)=>{let i=n,a={type:`string`,format:`binary`,contentEncoding:`binary`},{minimum:o,maximum:s,mime:c}=e._zod.bag;o!==void 0&&(a.minLength=o),s!==void 0&&(a.maxLength=s),c?c.length===1?(a.contentMediaType=c[0],Object.assign(i,a)):(Object.assign(i,a),i.anyOf=c.map(e=>({contentMediaType:e}))):Object.assign(i,a)},D4=(e,t,n,r)=>{n.type=`boolean`},O4=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Custom types cannot be represented in JSON Schema`)},k4=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Function types cannot be represented in JSON Schema`)},A4=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Transforms cannot be represented in JSON Schema`)},j4=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Map cannot be represented in JSON Schema`)},M4=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Set cannot be represented in JSON Schema`)},N4=(e,t,n,r)=>{let i=n,a=e._zod.def,{minimum:o,maximum:s}=e._zod.bag;typeof o==`number`&&(i.minItems=o),typeof s==`number`&&(i.maxItems=s),i.type=`array`,i.items=t4(a.element,t,{...r,path:[...r.path,`items`]})},P4=(e,t,n,r)=>{let i=n,a=e._zod.def;i.type=`object`,i.properties={};let o=a.shape;for(let e in o)i.properties[e]=t4(o[e],t,{...r,path:[...r.path,`properties`,e]});let s=new Set(Object.keys(o)),c=new Set([...s].filter(e=>{let n=a.shape[e]._zod;return t.io===`input`?n.optin===void 0:n.optout===void 0}));c.size>0&&(i.required=Array.from(c)),a.catchall?._zod.def.type===`never`?i.additionalProperties=!1:a.catchall?a.catchall&&(i.additionalProperties=t4(a.catchall,t,{...r,path:[...r.path,`additionalProperties`]})):t.io===`output`&&(i.additionalProperties=!1)},F4=(e,t,n,r)=>{let i=e._zod.def,a=i.inclusive===!1,o=i.options.map((e,n)=>t4(e,t,{...r,path:[...r.path,a?`oneOf`:`anyOf`,n]}));a?n.oneOf=o:n.anyOf=o},I4=(e,t,n,r)=>{let i=e._zod.def,a=t4(i.left,t,{...r,path:[...r.path,`allOf`,0]}),o=t4(i.right,t,{...r,path:[...r.path,`allOf`,1]}),s=e=>`allOf`in e&&Object.keys(e).length===1;n.allOf=[...s(a)?a.allOf:[a],...s(o)?o.allOf:[o]]},L4=(e,t,n,r)=>{let i=n,a=e._zod.def;i.type=`array`;let o=t.target===`draft-2020-12`?`prefixItems`:`items`,s=t.target===`draft-2020-12`||t.target===`openapi-3.0`?`items`:`additionalItems`,c=a.items.map((e,n)=>t4(e,t,{...r,path:[...r.path,o,n]})),l=a.rest?t4(a.rest,t,{...r,path:[...r.path,s,...t.target===`openapi-3.0`?[a.items.length]:[]]}):null;t.target===`draft-2020-12`?(i.prefixItems=c,l&&(i.items=l)):t.target===`openapi-3.0`?(i.items={anyOf:c},l&&i.items.anyOf.push(l),i.minItems=c.length,l||(i.maxItems=c.length)):(i.items=c,l&&(i.additionalItems=l));let{minimum:u,maximum:d}=e._zod.bag;typeof u==`number`&&(i.minItems=u),typeof d==`number`&&(i.maxItems=d)},R4=(e,t,n,r)=>{let i=n,a=e._zod.def;i.type=`object`;let o=a.keyType,s=o._zod.bag?.patterns;if(a.mode===`loose`&&s&&s.size>0){let e=t4(a.valueType,t,{...r,path:[...r.path,`patternProperties`,`*`]});i.patternProperties={};for(let t of s)i.patternProperties[t.source]=e}else(t.target===`draft-07`||t.target===`draft-2020-12`)&&(i.propertyNames=t4(a.keyType,t,{...r,path:[...r.path,`propertyNames`]})),i.additionalProperties=t4(a.valueType,t,{...r,path:[...r.path,`additionalProperties`]});let c=o._zod.values;if(c){let e=[...c].filter(e=>typeof e==`string`||typeof e==`number`);e.length>0&&(i.required=e)}},z4=(e,t,n,r)=>{let i=e._zod.def,a=t4(i.innerType,t,r),o=t.seen.get(e);t.target===`openapi-3.0`?(o.ref=i.innerType,n.nullable=!0):n.anyOf=[a,{type:`null`}]},B4=(e,t,n,r)=>{let i=e._zod.def;t4(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},V4=(e,t,n,r)=>{let i=e._zod.def;t4(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,n.default=JSON.parse(JSON.stringify(i.defaultValue))},H4=(e,t,n,r)=>{let i=e._zod.def;t4(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,t.io===`input`&&(n._prefault=JSON.parse(JSON.stringify(i.defaultValue)))},U4=(e,t,n,r)=>{let i=e._zod.def;t4(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType;let o;try{o=i.catchValue(void 0)}catch{throw Error(`Dynamic catch values are not supported in JSON Schema`)}n.default=o},W4=(e,t,n,r)=>{let i=e._zod.def,a=i.in._zod.traits.has(`$ZodTransform`),o=t.io===`input`?a?i.out:i.in:i.out;t4(o,t,r);let s=t.seen.get(e);s.ref=o},G4=(e,t,n,r)=>{let i=e._zod.def;t4(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,n.readOnly=!0},K4=(e,t,n,r)=>{let i=e._zod.def;t4(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},q4=(e,t,n,r)=>{let i=e._zod.def;t4(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},J4=(e,t,n,r)=>{let i=e._zod.innerType;t4(i,t,r);let a=t.seen.get(e);a.ref=i},Y4={string:u4,number:d4,boolean:f4,bigint:p4,symbol:m4,null:h4,undefined:g4,void:_4,never:v4,any:y4,unknown:b4,date:x4,enum:S4,literal:C4,nan:w4,template_literal:T4,file:E4,success:D4,custom:O4,function:k4,transform:A4,map:j4,set:M4,array:N4,object:P4,union:F4,intersection:I4,tuple:L4,record:R4,nullable:z4,nonoptional:B4,default:V4,prefault:H4,catch:U4,pipe:W4,readonly:G4,promise:K4,optional:q4,lazy:J4}})),Z4,Q4=o((()=>{X4(),s4(),Z4=class{get metadataRegistry(){return this.ctx.metadataRegistry}get target(){return this.ctx.target}get unrepresentable(){return this.ctx.unrepresentable}get override(){return this.ctx.override}get io(){return this.ctx.io}get counter(){return this.ctx.counter}set counter(e){this.ctx.counter=e}get seen(){return this.ctx.seen}constructor(e){let t=e?.target??`draft-2020-12`;t===`draft-4`&&(t=`draft-04`),t===`draft-7`&&(t=`draft-07`),this.ctx=e4({processors:Y4,target:t,...e?.metadata&&{metadata:e.metadata},...e?.unrepresentable&&{unrepresentable:e.unrepresentable},...e?.override&&{override:e.override},...e?.io&&{io:e.io}})}process(e,t={path:[],schemaPath:[]}){return t4(e,this.ctx,t)}emit(e,t){t&&(t.cycles&&(this.ctx.cycles=t.cycles),t.reused&&(this.ctx.reused=t.reused),t.external&&(this.ctx.external=t.external)),n4(this.ctx,e);let{"~standard":n,...r}=r4(this.ctx,e);return r}}})),$4=c({}),e3=o((()=>{})),t3=c({$ZodAny:()=>eZ,$ZodArray:()=>aZ,$ZodAsyncError:()=>pK,$ZodBase64:()=>VX,$ZodBase64URL:()=>HX,$ZodBigInt:()=>YX,$ZodBigIntFormat:()=>XX,$ZodBoolean:()=>JX,$ZodCIDRv4:()=>zX,$ZodCIDRv6:()=>BX,$ZodCUID:()=>DX,$ZodCUID2:()=>OX,$ZodCatch:()=>DZ,$ZodCheck:()=>bY,$ZodCheckBigIntFormat:()=>EY,$ZodCheckEndsWith:()=>zY,$ZodCheckGreaterThan:()=>CY,$ZodCheckIncludes:()=>LY,$ZodCheckLengthEquals:()=>MY,$ZodCheckLessThan:()=>SY,$ZodCheckLowerCase:()=>FY,$ZodCheckMaxLength:()=>AY,$ZodCheckMaxSize:()=>DY,$ZodCheckMimeType:()=>VY,$ZodCheckMinLength:()=>jY,$ZodCheckMinSize:()=>OY,$ZodCheckMultipleOf:()=>wY,$ZodCheckNumberFormat:()=>TY,$ZodCheckOverwrite:()=>HY,$ZodCheckProperty:()=>BY,$ZodCheckRegex:()=>PY,$ZodCheckSizeEquals:()=>kY,$ZodCheckStartsWith:()=>RY,$ZodCheckStringFormat:()=>NY,$ZodCheckUpperCase:()=>IY,$ZodCodec:()=>AZ,$ZodCustom:()=>LZ,$ZodCustomStringFormat:()=>GX,$ZodDate:()=>iZ,$ZodDefault:()=>CZ,$ZodDiscriminatedUnion:()=>uZ,$ZodE164:()=>UX,$ZodEmail:()=>CX,$ZodEmoji:()=>TX,$ZodEncodeError:()=>mK,$ZodEnum:()=>gZ,$ZodError:()=>Nq,$ZodExactOptional:()=>xZ,$ZodFile:()=>vZ,$ZodFunction:()=>PZ,$ZodGUID:()=>xX,$ZodIPv4:()=>IX,$ZodIPv6:()=>LX,$ZodISODate:()=>NX,$ZodISODateTime:()=>MX,$ZodISODuration:()=>FX,$ZodISOTime:()=>PX,$ZodIntersection:()=>dZ,$ZodJWT:()=>WX,$ZodKSUID:()=>jX,$ZodLazy:()=>IZ,$ZodLiteral:()=>_Z,$ZodMAC:()=>RX,$ZodMap:()=>mZ,$ZodNaN:()=>OZ,$ZodNanoID:()=>EX,$ZodNever:()=>nZ,$ZodNonOptional:()=>TZ,$ZodNull:()=>$X,$ZodNullable:()=>SZ,$ZodNumber:()=>KX,$ZodNumberFormat:()=>qX,$ZodObject:()=>oZ,$ZodObjectJIT:()=>sZ,$ZodOptional:()=>bZ,$ZodPipe:()=>kZ,$ZodPrefault:()=>wZ,$ZodPreprocess:()=>jZ,$ZodPromise:()=>FZ,$ZodReadonly:()=>MZ,$ZodRealError:()=>Pq,$ZodRecord:()=>pZ,$ZodRegistry:()=>U1,$ZodSet:()=>hZ,$ZodString:()=>yX,$ZodStringFormat:()=>bX,$ZodSuccess:()=>EZ,$ZodSymbol:()=>ZX,$ZodTemplateLiteral:()=>NZ,$ZodTransform:()=>yZ,$ZodTuple:()=>fZ,$ZodType:()=>vX,$ZodULID:()=>kX,$ZodURL:()=>wX,$ZodUUID:()=>SX,$ZodUndefined:()=>QX,$ZodUnion:()=>cZ,$ZodUnknown:()=>tZ,$ZodVoid:()=>rZ,$ZodXID:()=>AX,$ZodXor:()=>lZ,$brand:()=>fK,$constructor:()=>q,$input:()=>H1,$output:()=>V1,Doc:()=>WY,JSONSchema:()=>$4,JSONSchemaGenerator:()=>Z4,NEVER:()=>dK,TimePrecision:()=>Q2,_any:()=>L0,_array:()=>y2,_base64:()=>p0,_base64url:()=>m0,_bigint:()=>A0,_boolean:()=>O0,_catch:()=>R2,_check:()=>q2,_cidrv4:()=>d0,_cidrv6:()=>f0,_coercedBigint:()=>j0,_coercedBoolean:()=>k0,_coercedDate:()=>H0,_coercedNumber:()=>S0,_coercedString:()=>q1,_cuid:()=>r0,_cuid2:()=>i0,_custom:()=>W2,_date:()=>V0,_decode:()=>Kq,_decodeAsync:()=>Xq,_default:()=>F2,_discriminatedUnion:()=>S2,_e164:()=>h0,_email:()=>J1,_emoji:()=>t0,_encode:()=>Wq,_encodeAsync:()=>Jq,_endsWith:()=>u2,_enum:()=>O2,_file:()=>j2,_float32:()=>w0,_float64:()=>T0,_gt:()=>K0,_gte:()=>q0,_guid:()=>Y1,_includes:()=>c2,_int:()=>C0,_int32:()=>E0,_int64:()=>M0,_intersection:()=>C2,_ipv4:()=>c0,_ipv6:()=>l0,_isoDate:()=>v0,_isoDateTime:()=>_0,_isoDuration:()=>b0,_isoTime:()=>y0,_jwt:()=>g0,_ksuid:()=>s0,_lazy:()=>H2,_length:()=>i2,_literal:()=>A2,_lowercase:()=>o2,_lt:()=>W0,_lte:()=>G0,_mac:()=>u0,_map:()=>E2,_max:()=>G0,_maxLength:()=>n2,_maxSize:()=>$0,_mime:()=>f2,_min:()=>q0,_minLength:()=>r2,_minSize:()=>e2,_multipleOf:()=>Q0,_nan:()=>U0,_nanoid:()=>n0,_nativeEnum:()=>k2,_negative:()=>Y0,_never:()=>z0,_nonnegative:()=>Z0,_nonoptional:()=>I2,_nonpositive:()=>X0,_normalize:()=>m2,_null:()=>I0,_nullable:()=>P2,_number:()=>x0,_optional:()=>N2,_overwrite:()=>p2,_parse:()=>Iq,_parseAsync:()=>Rq,_pipe:()=>z2,_positive:()=>J0,_promise:()=>U2,_property:()=>d2,_readonly:()=>B2,_record:()=>T2,_refine:()=>G2,_regex:()=>a2,_safeDecode:()=>eJ,_safeDecodeAsync:()=>iJ,_safeEncode:()=>Qq,_safeEncodeAsync:()=>nJ,_safeParse:()=>Bq,_safeParseAsync:()=>Hq,_set:()=>D2,_size:()=>t2,_slugify:()=>v2,_startsWith:()=>l2,_string:()=>K1,_stringFormat:()=>Z2,_stringbool:()=>X2,_success:()=>L2,_superRefine:()=>K2,_symbol:()=>P0,_templateLiteral:()=>V2,_toLowerCase:()=>g2,_toUpperCase:()=>_2,_transform:()=>M2,_trim:()=>h2,_tuple:()=>w2,_uint32:()=>D0,_uint64:()=>N0,_ulid:()=>a0,_undefined:()=>F0,_union:()=>b2,_unknown:()=>R0,_uppercase:()=>s2,_url:()=>e0,_uuid:()=>X1,_uuidv4:()=>Z1,_uuidv6:()=>Q1,_uuidv7:()=>$1,_void:()=>B0,_xid:()=>o0,_xor:()=>x2,clone:()=>WK,config:()=>lK,createStandardJSONSchemaMethod:()=>o4,createToJSONSchemaMethod:()=>a4,decode:()=>qq,decodeAsync:()=>Zq,describe:()=>J2,encode:()=>Gq,encodeAsync:()=>Yq,extractDefs:()=>n4,finalize:()=>r4,flattenError:()=>Dq,formatError:()=>Oq,globalConfig:()=>hK,globalRegistry:()=>W1,initializeContext:()=>e4,isValidBase64:()=>JY,isValidBase64URL:()=>YY,isValidJWT:()=>XY,locales:()=>L1,meta:()=>Y2,parse:()=>Lq,parseAsync:()=>zq,prettifyError:()=>jq,process:()=>t4,regexes:()=>sJ,registry:()=>z1,safeDecode:()=>tJ,safeDecodeAsync:()=>aJ,safeEncode:()=>$q,safeEncodeAsync:()=>rJ,safeParse:()=>Vq,safeParseAsync:()=>Uq,toDotPath:()=>Aq,toJSONSchema:()=>c4,treeifyError:()=>kq,util:()=>_K,version:()=>KY}),n3=o((()=>{gK(),oJ(),Fq(),RZ(),UY(),qY(),Eq(),vY(),R1(),G1(),GY(),$2(),s4(),X4(),Q4(),e3()}));oJ();function r3(e){return!!e._zod}function i3(e,t){return r3(e)?Vq(e,t):e.safeParse(t)}function a3(e){if(!e)return;let t;if(t=r3(e)?e._zod?.def?.shape:e.shape,t){if(typeof t==`function`)try{return t()}catch{return}return t}}function o3(e){if(r3(e)){let t=e._zod?.def;if(t){if(t.value!==void 0)return t.value;if(Array.isArray(t.values)&&t.values.length>0)return t.values[0]}}let t=e._def;if(t){if(t.value!==void 0)return t.value;if(Array.isArray(t.values)&&t.values.length>0)return t.values[0]}let n=e.value;if(n!==void 0)return n}var s3=c({endsWith:()=>u2,gt:()=>K0,gte:()=>q0,includes:()=>c2,length:()=>i2,lowercase:()=>o2,lt:()=>W0,lte:()=>G0,maxLength:()=>n2,maxSize:()=>$0,mime:()=>f2,minLength:()=>r2,minSize:()=>e2,multipleOf:()=>Q0,negative:()=>Y0,nonnegative:()=>Z0,nonpositive:()=>X0,normalize:()=>m2,overwrite:()=>p2,positive:()=>J0,property:()=>d2,regex:()=>a2,size:()=>t2,slugify:()=>v2,startsWith:()=>l2,toLowerCase:()=>g2,toUpperCase:()=>_2,trim:()=>h2,uppercase:()=>s2}),c3=o((()=>{n3()})),l3=c({ZodISODate:()=>h3,ZodISODateTime:()=>m3,ZodISODuration:()=>_3,ZodISOTime:()=>g3,date:()=>d3,datetime:()=>u3,duration:()=>p3,time:()=>f3});function u3(e){return _0(m3,e)}function d3(e){return v0(h3,e)}function f3(e){return y0(g3,e)}function p3(e){return b0(_3,e)}var m3,h3,g3,_3,v3=o((()=>{n3(),z5(),m3=q(`ZodISODateTime`,(e,t)=>{MX.init(e,t),C8.init(e,t)}),h3=q(`ZodISODate`,(e,t)=>{NX.init(e,t),C8.init(e,t)}),g3=q(`ZodISOTime`,(e,t)=>{PX.init(e,t),C8.init(e,t)}),_3=q(`ZodISODuration`,(e,t)=>{FX.init(e,t),C8.init(e,t)})})),y3,b3,x3,S3=o((()=>{n3(),Eq(),y3=(e,t)=>{Nq.init(e,t),e.name=`ZodError`,Object.defineProperties(e,{format:{value:t=>Oq(e,t)},flatten:{value:t=>Dq(e,t)},addIssue:{value:t=>{e.issues.push(t),e.message=JSON.stringify(e.issues,wK,2)}},addIssues:{value:t=>{e.issues.push(...t),e.message=JSON.stringify(e.issues,wK,2)}},isEmpty:{get(){return e.issues.length===0}}})},b3=q(`ZodError`,y3),x3=q(`ZodError`,y3,{Parent:Error})})),C3,w3,T3,E3,D3,O3,k3,A3,j3,M3,N3,P3,F3=o((()=>{n3(),S3(),C3=Iq(x3),w3=Rq(x3),T3=Bq(x3),E3=Hq(x3),D3=Wq(x3),O3=Kq(x3),k3=Jq(x3),A3=Xq(x3),j3=Qq(x3),M3=eJ(x3),N3=nJ(x3),P3=iJ(x3)})),I3=c({ZodAny:()=>$8,ZodArray:()=>i5,ZodBase64:()=>B8,ZodBase64URL:()=>V8,ZodBigInt:()=>J8,ZodBigIntFormat:()=>Y8,ZodBoolean:()=>q8,ZodCIDRv4:()=>R8,ZodCIDRv6:()=>z8,ZodCUID:()=>A8,ZodCUID2:()=>j8,ZodCatch:()=>T5,ZodCodec:()=>O5,ZodCustom:()=>F5,ZodCustomStringFormat:()=>W8,ZodDate:()=>r5,ZodDefault:()=>x5,ZodDiscriminatedUnion:()=>c5,ZodE164:()=>H8,ZodEmail:()=>w8,ZodEmoji:()=>O8,ZodEnum:()=>m5,ZodExactOptional:()=>y5,ZodFile:()=>g5,ZodFunction:()=>P5,ZodGUID:()=>T8,ZodIPv4:()=>F8,ZodIPv6:()=>L8,ZodIntersection:()=>l5,ZodJWT:()=>U8,ZodKSUID:()=>P8,ZodLazy:()=>M5,ZodLiteral:()=>h5,ZodMAC:()=>I8,ZodMap:()=>f5,ZodNaN:()=>E5,ZodNanoID:()=>k8,ZodNever:()=>t5,ZodNonOptional:()=>C5,ZodNull:()=>Q8,ZodNullable:()=>b5,ZodNumber:()=>G8,ZodNumberFormat:()=>K8,ZodObject:()=>a5,ZodOptional:()=>v5,ZodPipe:()=>D5,ZodPrefault:()=>S5,ZodPreprocess:()=>k5,ZodPromise:()=>N5,ZodReadonly:()=>A5,ZodRecord:()=>d5,ZodSet:()=>p5,ZodString:()=>S8,ZodStringFormat:()=>C8,ZodSuccess:()=>w5,ZodSymbol:()=>X8,ZodTemplateLiteral:()=>j5,ZodTransform:()=>_5,ZodTuple:()=>u5,ZodType:()=>b8,ZodULID:()=>M8,ZodURL:()=>D8,ZodUUID:()=>E8,ZodUndefined:()=>Z8,ZodUnion:()=>o5,ZodUnknown:()=>e5,ZodVoid:()=>n5,ZodXID:()=>N8,ZodXor:()=>s5,_ZodString:()=>x8,_default:()=>Q6,_function:()=>d8,any:()=>T6,array:()=>A6,base64:()=>i6,base64url:()=>a6,bigint:()=>y6,boolean:()=>v6,catch:()=>n8,check:()=>f8,cidrv4:()=>n6,cidrv6:()=>r6,codec:()=>a8,cuid:()=>J3,cuid2:()=>Y3,custom:()=>p8,date:()=>k6,describe:()=>I5,discriminatedUnion:()=>I6,e164:()=>o6,email:()=>R3,emoji:()=>K3,enum:()=>W6,exactOptional:()=>Y6,file:()=>K6,float32:()=>m6,float64:()=>h6,function:()=>d8,guid:()=>z3,hash:()=>d6,hex:()=>u6,hostname:()=>l6,httpUrl:()=>G3,instanceof:()=>g8,int:()=>p6,int32:()=>g6,int64:()=>b6,intersection:()=>L6,invertCodec:()=>o8,ipv4:()=>$3,ipv6:()=>t6,json:()=>_8,jwt:()=>s6,keyof:()=>j6,ksuid:()=>Q3,lazy:()=>l8,literal:()=>Q,looseObject:()=>N6,looseRecord:()=>V6,mac:()=>e6,map:()=>H6,meta:()=>L5,nan:()=>r8,nanoid:()=>q3,nativeEnum:()=>G6,never:()=>D6,nonoptional:()=>e8,null:()=>w6,nullable:()=>X6,nullish:()=>Z6,number:()=>f6,object:()=>Z,optional:()=>J6,partialRecord:()=>B6,pipe:()=>i8,prefault:()=>$6,preprocess:()=>v8,promise:()=>u8,readonly:()=>s8,record:()=>z6,refine:()=>m8,set:()=>U6,strictObject:()=>M6,string:()=>X,stringFormat:()=>c6,stringbool:()=>R5,success:()=>t8,superRefine:()=>h8,symbol:()=>S6,templateLiteral:()=>c8,transform:()=>q6,tuple:()=>R6,uint32:()=>_6,uint64:()=>x6,ulid:()=>X3,undefined:()=>C6,union:()=>P6,unknown:()=>E6,url:()=>W3,uuid:()=>B3,uuidv4:()=>V3,uuidv6:()=>H3,uuidv7:()=>U3,void:()=>O6,xid:()=>Z3,xor:()=>F6});function L3(e,t,n){let r=Object.getPrototypeOf(e),i=y8.get(r);if(i||(i=new Set,y8.set(r,i)),!i.has(t)){i.add(t);for(let e in n){let t=n[e];Object.defineProperty(r,e,{configurable:!0,enumerable:!1,get(){let n=t.bind(this);return Object.defineProperty(this,e,{configurable:!0,writable:!0,enumerable:!0,value:n}),n},set(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,enumerable:!0,value:t})}})}}}function X(e){return K1(S8,e)}function R3(e){return J1(w8,e)}function z3(e){return Y1(T8,e)}function B3(e){return X1(E8,e)}function V3(e){return Z1(E8,e)}function H3(e){return Q1(E8,e)}function U3(e){return $1(E8,e)}function W3(e){return e0(D8,e)}function G3(e){return e0(D8,{protocol:UJ,hostname:HJ,...Y(e)})}function K3(e){return t0(O8,e)}function q3(e){return n0(k8,e)}function J3(e){return r0(A8,e)}function Y3(e){return i0(j8,e)}function X3(e){return a0(M8,e)}function Z3(e){return o0(N8,e)}function Q3(e){return s0(P8,e)}function $3(e){return c0(F8,e)}function e6(e){return u0(I8,e)}function t6(e){return l0(L8,e)}function n6(e){return d0(R8,e)}function r6(e){return f0(z8,e)}function i6(e){return p0(B8,e)}function a6(e){return m0(V8,e)}function o6(e){return h0(H8,e)}function s6(e){return g0(U8,e)}function c6(e,t,n={}){return Z2(W8,e,t,n)}function l6(e){return Z2(W8,`hostname`,VJ,e)}function u6(e){return Z2(W8,`hex`,nY,e)}function d6(e,t){let n=`${e}_${t?.enc??`hex`}`,r=sJ[n];if(!r)throw Error(`Unrecognized hash format: ${n}`);return Z2(W8,n,r,t)}function f6(e){return x0(G8,e)}function p6(e){return C0(K8,e)}function m6(e){return w0(K8,e)}function h6(e){return T0(K8,e)}function g6(e){return E0(K8,e)}function _6(e){return D0(K8,e)}function v6(e){return O0(q8,e)}function y6(e){return A0(J8,e)}function b6(e){return M0(Y8,e)}function x6(e){return N0(Y8,e)}function S6(e){return P0(X8,e)}function C6(e){return F0(Z8,e)}function w6(e){return I0(Q8,e)}function T6(){return L0($8)}function E6(){return R0(e5)}function D6(e){return z0(t5,e)}function O6(e){return B0(n5,e)}function k6(e){return V0(r5,e)}function A6(e,t){return y2(i5,e,t)}function j6(e){let t=e._zod.def.shape;return W6(Object.keys(t))}function Z(e,t){let n={type:`object`,shape:e??{},...Y(t)};return new a5(n)}function M6(e,t){return new a5({type:`object`,shape:e,catchall:D6(),...Y(t)})}function N6(e,t){return new a5({type:`object`,shape:e,catchall:E6(),...Y(t)})}function P6(e,t){return new o5({type:`union`,options:e,...Y(t)})}function F6(e,t){return new s5({type:`union`,options:e,inclusive:!1,...Y(t)})}function I6(e,t,n){return new c5({type:`union`,options:t,discriminator:e,...Y(n)})}function L6(e,t){return new l5({type:`intersection`,left:e,right:t})}function R6(e,t,n){let r=t instanceof vX;return new u5({type:`tuple`,items:e,rest:r?t:null,...Y(r?n:t)})}function z6(e,t,n){return!t||!t._zod?new d5({type:`record`,keyType:X(),valueType:e,...Y(t)}):new d5({type:`record`,keyType:e,valueType:t,...Y(n)})}function B6(e,t,n){let r=WK(e);return r._zod.values=void 0,new d5({type:`record`,keyType:r,valueType:t,...Y(n)})}function V6(e,t,n){return new d5({type:`record`,keyType:e,valueType:t,mode:`loose`,...Y(n)})}function H6(e,t,n){return new f5({type:`map`,keyType:e,valueType:t,...Y(n)})}function U6(e,t){return new p5({type:`set`,valueType:e,...Y(t)})}function W6(e,t){let n=Array.isArray(e)?Object.fromEntries(e.map(e=>[e,e])):e;return new m5({type:`enum`,entries:n,...Y(t)})}function G6(e,t){return new m5({type:`enum`,entries:e,...Y(t)})}function Q(e,t){return new h5({type:`literal`,values:Array.isArray(e)?e:[e],...Y(t)})}function K6(e){return j2(g5,e)}function q6(e){return new _5({type:`transform`,transform:e})}function J6(e){return new v5({type:`optional`,innerType:e})}function Y6(e){return new y5({type:`optional`,innerType:e})}function X6(e){return new b5({type:`nullable`,innerType:e})}function Z6(e){return J6(X6(e))}function Q6(e,t){return new x5({type:`default`,innerType:e,get defaultValue(){return typeof t==`function`?t():VK(t)}})}function $6(e,t){return new S5({type:`prefault`,innerType:e,get defaultValue(){return typeof t==`function`?t():VK(t)}})}function e8(e,t){return new C5({type:`nonoptional`,innerType:e,...Y(t)})}function t8(e){return new w5({type:`success`,innerType:e})}function n8(e,t){return new T5({type:`catch`,innerType:e,catchValue:typeof t==`function`?t:()=>t})}function r8(e){return U0(E5,e)}function i8(e,t){return new D5({type:`pipe`,in:e,out:t})}function a8(e,t,n){return new O5({type:`pipe`,in:e,out:t,transform:n.decode,reverseTransform:n.encode})}function o8(e){let t=e._zod.def;return new O5({type:`pipe`,in:t.out,out:t.in,transform:t.reverseTransform,reverseTransform:t.transform})}function s8(e){return new A5({type:`readonly`,innerType:e})}function c8(e,t){return new j5({type:`template_literal`,parts:e,...Y(t)})}function l8(e){return new M5({type:`lazy`,getter:e})}function u8(e){return new N5({type:`promise`,innerType:e})}function d8(e){return new P5({type:`function`,input:Array.isArray(e?.input)?R6(e?.input):e?.input??A6(E6()),output:e?.output??E6()})}function f8(e){let t=new bY({check:`custom`});return t._zod.check=e,t}function p8(e,t){return W2(F5,e??(()=>!0),t)}function m8(e,t={}){return G2(F5,e,t)}function h8(e,t){return K2(e,t)}function g8(e,t={}){let n=new F5({type:`custom`,check:`custom`,fn:t=>t instanceof e,abort:!0,...Y(t)});return n._zod.bag.Class=e,n._zod.check=t=>{t.value instanceof e||t.issues.push({code:`invalid_type`,expected:e.name,input:t.value,inst:n,path:[...n._zod.def.path??[]]})},n}function _8(e){let t=l8(()=>P6([X(e),f6(),v6(),w6(),A6(t),z6(X(),t)]));return t}function v8(e,t){return new k5({type:`pipe`,in:q6(e),out:t})}var y8,b8,x8,S8,C8,w8,T8,E8,D8,O8,k8,A8,j8,M8,N8,P8,F8,I8,L8,R8,z8,B8,V8,H8,U8,W8,G8,K8,q8,J8,Y8,X8,Z8,Q8,$8,e5,t5,n5,r5,i5,a5,o5,s5,c5,l5,u5,d5,f5,p5,m5,h5,g5,_5,v5,y5,b5,x5,S5,C5,w5,T5,E5,D5,O5,k5,A5,j5,M5,N5,P5,F5,I5,L5,R5,z5=o((()=>{n3(),X4(),s4(),c3(),v3(),F3(),y8=new WeakMap,b8=q(`ZodType`,(e,t)=>(vX.init(e,t),Object.assign(e[`~standard`],{jsonSchema:{input:o4(e,`input`),output:o4(e,`output`)}}),e.toJSONSchema=a4(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.parse=(t,n)=>C3(e,t,n,{callee:e.parse}),e.safeParse=(t,n)=>T3(e,t,n),e.parseAsync=async(t,n)=>w3(e,t,n,{callee:e.parseAsync}),e.safeParseAsync=async(t,n)=>E3(e,t,n),e.spa=e.safeParseAsync,e.encode=(t,n)=>D3(e,t,n),e.decode=(t,n)=>O3(e,t,n),e.encodeAsync=async(t,n)=>k3(e,t,n),e.decodeAsync=async(t,n)=>A3(e,t,n),e.safeEncode=(t,n)=>j3(e,t,n),e.safeDecode=(t,n)=>M3(e,t,n),e.safeEncodeAsync=async(t,n)=>N3(e,t,n),e.safeDecodeAsync=async(t,n)=>P3(e,t,n),L3(e,`ZodType`,{check(...e){let t=this.def;return this.clone(MK(t,{checks:[...t.checks??[],...e.map(e=>typeof e==`function`?{_zod:{check:e,def:{check:`custom`},onattach:[]}}:e)]}),{parent:!0})},with(...e){return this.check(...e)},clone(e,t){return WK(this,e,t)},brand(){return this},register(e,t){return e.add(this,t),this},refine(e,t){return this.check(m8(e,t))},superRefine(e,t){return this.check(h8(e,t))},overwrite(e){return this.check(p2(e))},optional(){return J6(this)},exactOptional(){return Y6(this)},nullable(){return X6(this)},nullish(){return J6(X6(this))},nonoptional(e){return e8(this,e)},array(){return A6(this)},or(e){return P6([this,e])},and(e){return L6(this,e)},transform(e){return i8(this,q6(e))},default(e){return Q6(this,e)},prefault(e){return $6(this,e)},catch(e){return n8(this,e)},pipe(e){return i8(this,e)},readonly(){return s8(this)},describe(e){let t=this.clone();return W1.add(t,{description:e}),t},meta(...e){if(e.length===0)return W1.get(this);let t=this.clone();return W1.add(t,e[0]),t},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(e){return e(this)}}),Object.defineProperty(e,"description",{get(){return W1.get(e)?.description},configurable:!0}),e)),x8=q(`_ZodString`,(e,t)=>{yX.init(e,t),b8.init(e,t),e._zod.processJSONSchema=(t,n,r)=>u4(e,t,n,r);let n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,L3(e,`_ZodString`,{regex(...e){return this.check(a2(...e))},includes(...e){return this.check(c2(...e))},startsWith(...e){return this.check(l2(...e))},endsWith(...e){return this.check(u2(...e))},min(...e){return this.check(r2(...e))},max(...e){return this.check(n2(...e))},length(...e){return this.check(i2(...e))},nonempty(...e){return this.check(r2(1,...e))},lowercase(e){return this.check(o2(e))},uppercase(e){return this.check(s2(e))},trim(){return this.check(h2())},normalize(...e){return this.check(m2(...e))},toLowerCase(){return this.check(g2())},toUpperCase(){return this.check(_2())},slugify(){return this.check(v2())}})}),S8=q(`ZodString`,(e,t)=>{yX.init(e,t),x8.init(e,t),e.email=t=>e.check(J1(w8,t)),e.url=t=>e.check(e0(D8,t)),e.jwt=t=>e.check(g0(U8,t)),e.emoji=t=>e.check(t0(O8,t)),e.guid=t=>e.check(Y1(T8,t)),e.uuid=t=>e.check(X1(E8,t)),e.uuidv4=t=>e.check(Z1(E8,t)),e.uuidv6=t=>e.check(Q1(E8,t)),e.uuidv7=t=>e.check($1(E8,t)),e.nanoid=t=>e.check(n0(k8,t)),e.guid=t=>e.check(Y1(T8,t)),e.cuid=t=>e.check(r0(A8,t)),e.cuid2=t=>e.check(i0(j8,t)),e.ulid=t=>e.check(a0(M8,t)),e.base64=t=>e.check(p0(B8,t)),e.base64url=t=>e.check(m0(V8,t)),e.xid=t=>e.check(o0(N8,t)),e.ksuid=t=>e.check(s0(P8,t)),e.ipv4=t=>e.check(c0(F8,t)),e.ipv6=t=>e.check(l0(L8,t)),e.cidrv4=t=>e.check(d0(R8,t)),e.cidrv6=t=>e.check(f0(z8,t)),e.e164=t=>e.check(h0(H8,t)),e.datetime=t=>e.check(u3(t)),e.date=t=>e.check(d3(t)),e.time=t=>e.check(f3(t)),e.duration=t=>e.check(p3(t))}),C8=q(`ZodStringFormat`,(e,t)=>{bX.init(e,t),x8.init(e,t)}),w8=q(`ZodEmail`,(e,t)=>{CX.init(e,t),C8.init(e,t)}),T8=q(`ZodGUID`,(e,t)=>{xX.init(e,t),C8.init(e,t)}),E8=q(`ZodUUID`,(e,t)=>{SX.init(e,t),C8.init(e,t)}),D8=q(`ZodURL`,(e,t)=>{wX.init(e,t),C8.init(e,t)}),O8=q(`ZodEmoji`,(e,t)=>{TX.init(e,t),C8.init(e,t)}),k8=q(`ZodNanoID`,(e,t)=>{EX.init(e,t),C8.init(e,t)}),A8=q(`ZodCUID`,(e,t)=>{DX.init(e,t),C8.init(e,t)}),j8=q(`ZodCUID2`,(e,t)=>{OX.init(e,t),C8.init(e,t)}),M8=q(`ZodULID`,(e,t)=>{kX.init(e,t),C8.init(e,t)}),N8=q(`ZodXID`,(e,t)=>{AX.init(e,t),C8.init(e,t)}),P8=q(`ZodKSUID`,(e,t)=>{jX.init(e,t),C8.init(e,t)}),F8=q(`ZodIPv4`,(e,t)=>{IX.init(e,t),C8.init(e,t)}),I8=q(`ZodMAC`,(e,t)=>{RX.init(e,t),C8.init(e,t)}),L8=q(`ZodIPv6`,(e,t)=>{LX.init(e,t),C8.init(e,t)}),R8=q(`ZodCIDRv4`,(e,t)=>{zX.init(e,t),C8.init(e,t)}),z8=q(`ZodCIDRv6`,(e,t)=>{BX.init(e,t),C8.init(e,t)}),B8=q(`ZodBase64`,(e,t)=>{VX.init(e,t),C8.init(e,t)}),V8=q(`ZodBase64URL`,(e,t)=>{HX.init(e,t),C8.init(e,t)}),H8=q(`ZodE164`,(e,t)=>{UX.init(e,t),C8.init(e,t)}),U8=q(`ZodJWT`,(e,t)=>{WX.init(e,t),C8.init(e,t)}),W8=q(`ZodCustomStringFormat`,(e,t)=>{GX.init(e,t),C8.init(e,t)}),G8=q(`ZodNumber`,(e,t)=>{KX.init(e,t),b8.init(e,t),e._zod.processJSONSchema=(t,n,r)=>d4(e,t,n,r),L3(e,`ZodNumber`,{gt(e,t){return this.check(K0(e,t))},gte(e,t){return this.check(q0(e,t))},min(e,t){return this.check(q0(e,t))},lt(e,t){return this.check(W0(e,t))},lte(e,t){return this.check(G0(e,t))},max(e,t){return this.check(G0(e,t))},int(e){return this.check(p6(e))},safe(e){return this.check(p6(e))},positive(e){return this.check(K0(0,e))},nonnegative(e){return this.check(q0(0,e))},negative(e){return this.check(W0(0,e))},nonpositive(e){return this.check(G0(0,e))},multipleOf(e,t){return this.check(Q0(e,t))},step(e,t){return this.check(Q0(e,t))},finite(){return this}});let n=e._zod.bag;e.minValue=Math.max(n.minimum??-1/0,n.exclusiveMinimum??-1/0)??null,e.maxValue=Math.min(n.maximum??1/0,n.exclusiveMaximum??1/0)??null,e.isInt=(n.format??``).includes(`int`)||Number.isSafeInteger(n.multipleOf??.5),e.isFinite=!0,e.format=n.format??null}),K8=q(`ZodNumberFormat`,(e,t)=>{qX.init(e,t),G8.init(e,t)}),q8=q(`ZodBoolean`,(e,t)=>{JX.init(e,t),b8.init(e,t),e._zod.processJSONSchema=(t,n,r)=>f4(e,t,n,r)}),J8=q(`ZodBigInt`,(e,t)=>{YX.init(e,t),b8.init(e,t),e._zod.processJSONSchema=(t,n,r)=>p4(e,t,n,r),e.gte=(t,n)=>e.check(q0(t,n)),e.min=(t,n)=>e.check(q0(t,n)),e.gt=(t,n)=>e.check(K0(t,n)),e.gte=(t,n)=>e.check(q0(t,n)),e.min=(t,n)=>e.check(q0(t,n)),e.lt=(t,n)=>e.check(W0(t,n)),e.lte=(t,n)=>e.check(G0(t,n)),e.max=(t,n)=>e.check(G0(t,n)),e.positive=t=>e.check(K0(BigInt(0),t)),e.negative=t=>e.check(W0(BigInt(0),t)),e.nonpositive=t=>e.check(G0(BigInt(0),t)),e.nonnegative=t=>e.check(q0(BigInt(0),t)),e.multipleOf=(t,n)=>e.check(Q0(t,n));let n=e._zod.bag;e.minValue=n.minimum??null,e.maxValue=n.maximum??null,e.format=n.format??null}),Y8=q(`ZodBigIntFormat`,(e,t)=>{XX.init(e,t),J8.init(e,t)}),X8=q(`ZodSymbol`,(e,t)=>{ZX.init(e,t),b8.init(e,t),e._zod.processJSONSchema=(t,n,r)=>m4(e,t,n,r)}),Z8=q(`ZodUndefined`,(e,t)=>{QX.init(e,t),b8.init(e,t),e._zod.processJSONSchema=(t,n,r)=>g4(e,t,n,r)}),Q8=q(`ZodNull`,(e,t)=>{$X.init(e,t),b8.init(e,t),e._zod.processJSONSchema=(t,n,r)=>h4(e,t,n,r)}),$8=q(`ZodAny`,(e,t)=>{eZ.init(e,t),b8.init(e,t),e._zod.processJSONSchema=(t,n,r)=>y4(e,t,n,r)}),e5=q(`ZodUnknown`,(e,t)=>{tZ.init(e,t),b8.init(e,t),e._zod.processJSONSchema=(t,n,r)=>b4(e,t,n,r)}),t5=q(`ZodNever`,(e,t)=>{nZ.init(e,t),b8.init(e,t),e._zod.processJSONSchema=(t,n,r)=>v4(e,t,n,r)}),n5=q(`ZodVoid`,(e,t)=>{rZ.init(e,t),b8.init(e,t),e._zod.processJSONSchema=(t,n,r)=>_4(e,t,n,r)}),r5=q(`ZodDate`,(e,t)=>{iZ.init(e,t),b8.init(e,t),e._zod.processJSONSchema=(t,n,r)=>x4(e,t,n,r),e.min=(t,n)=>e.check(q0(t,n)),e.max=(t,n)=>e.check(G0(t,n));let n=e._zod.bag;e.minDate=n.minimum?new Date(n.minimum):null,e.maxDate=n.maximum?new Date(n.maximum):null}),i5=q(`ZodArray`,(e,t)=>{aZ.init(e,t),b8.init(e,t),e._zod.processJSONSchema=(t,n,r)=>N4(e,t,n,r),e.element=t.element,L3(e,`ZodArray`,{min(e,t){return this.check(r2(e,t))},nonempty(e){return this.check(r2(1,e))},max(e,t){return this.check(n2(e,t))},length(e,t){return this.check(i2(e,t))},unwrap(){return this.element}})}),a5=q(`ZodObject`,(e,t)=>{sZ.init(e,t),b8.init(e,t),e._zod.processJSONSchema=(t,n,r)=>P4(e,t,n,r),kK(e,`shape`,()=>t.shape),L3(e,`ZodObject`,{keyof(){return W6(Object.keys(this._zod.def.shape))},catchall(e){return this.clone({...this._zod.def,catchall:e})},passthrough(){return this.clone({...this._zod.def,catchall:E6()})},loose(){return this.clone({...this._zod.def,catchall:E6()})},strict(){return this.clone({...this._zod.def,catchall:D6()})},strip(){return this.clone({...this._zod.def,catchall:void 0})},extend(e){return XK(this,e)},safeExtend(e){return ZK(this,e)},merge(e){return QK(this,e)},pick(e){return JK(this,e)},omit(e){return YK(this,e)},partial(...e){return $K(v5,this,e[0])},required(...e){return eq(C5,this,e[0])}})}),o5=q(`ZodUnion`,(e,t)=>{cZ.init(e,t),b8.init(e,t),e._zod.processJSONSchema=(t,n,r)=>F4(e,t,n,r),e.options=t.options}),s5=q(`ZodXor`,(e,t)=>{o5.init(e,t),lZ.init(e,t),e._zod.processJSONSchema=(t,n,r)=>F4(e,t,n,r),e.options=t.options}),c5=q(`ZodDiscriminatedUnion`,(e,t)=>{o5.init(e,t),uZ.init(e,t)}),l5=q(`ZodIntersection`,(e,t)=>{dZ.init(e,t),b8.init(e,t),e._zod.processJSONSchema=(t,n,r)=>I4(e,t,n,r)}),u5=q(`ZodTuple`,(e,t)=>{fZ.init(e,t),b8.init(e,t),e._zod.processJSONSchema=(t,n,r)=>L4(e,t,n,r),e.rest=t=>e.clone({...e._zod.def,rest:t})}),d5=q(`ZodRecord`,(e,t)=>{pZ.init(e,t),b8.init(e,t),e._zod.processJSONSchema=(t,n,r)=>R4(e,t,n,r),e.keyType=t.keyType,e.valueType=t.valueType}),f5=q(`ZodMap`,(e,t)=>{mZ.init(e,t),b8.init(e,t),e._zod.processJSONSchema=(t,n,r)=>j4(e,t,n,r),e.keyType=t.keyType,e.valueType=t.valueType,e.min=(...t)=>e.check(e2(...t)),e.nonempty=t=>e.check(e2(1,t)),e.max=(...t)=>e.check($0(...t)),e.size=(...t)=>e.check(t2(...t))}),p5=q(`ZodSet`,(e,t)=>{hZ.init(e,t),b8.init(e,t),e._zod.processJSONSchema=(t,n,r)=>M4(e,t,n,r),e.min=(...t)=>e.check(e2(...t)),e.nonempty=t=>e.check(e2(1,t)),e.max=(...t)=>e.check($0(...t)),e.size=(...t)=>e.check(t2(...t))}),m5=q(`ZodEnum`,(e,t)=>{gZ.init(e,t),b8.init(e,t),e._zod.processJSONSchema=(t,n,r)=>S4(e,t,n,r),e.enum=t.entries,e.options=Object.values(t.entries);let n=new Set(Object.keys(t.entries));e.extract=(e,r)=>{let i={};for(let r of e)if(n.has(r))i[r]=t.entries[r];else throw Error(`Key ${r} not found in enum`);return new m5({...t,checks:[],...Y(r),entries:i})},e.exclude=(e,r)=>{let i={...t.entries};for(let t of e)if(n.has(t))delete i[t];else throw Error(`Key ${t} not found in enum`);return new m5({...t,checks:[],...Y(r),entries:i})}}),h5=q(`ZodLiteral`,(e,t)=>{_Z.init(e,t),b8.init(e,t),e._zod.processJSONSchema=(t,n,r)=>C4(e,t,n,r),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if(t.values.length>1)throw Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})}),g5=q(`ZodFile`,(e,t)=>{vZ.init(e,t),b8.init(e,t),e._zod.processJSONSchema=(t,n,r)=>E4(e,t,n,r),e.min=(t,n)=>e.check(e2(t,n)),e.max=(t,n)=>e.check($0(t,n)),e.mime=(t,n)=>e.check(f2(Array.isArray(t)?t:[t],n))}),_5=q(`ZodTransform`,(e,t)=>{yZ.init(e,t),b8.init(e,t),e._zod.processJSONSchema=(t,n,r)=>A4(e,t,n,r),e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new mK(e.constructor.name);n.addIssue=r=>{if(typeof r==`string`)n.issues.push(lq(r,n.value,t));else{let t=r;t.fatal&&(t.continue=!1),t.code??=`custom`,t.input??=n.value,t.inst??=e,n.issues.push(lq(t))}};let i=t.transform(n.value,n);return i instanceof Promise?i.then(e=>(n.value=e,n.fallback=!0,n)):(n.value=i,n.fallback=!0,n)}}),v5=q(`ZodOptional`,(e,t)=>{bZ.init(e,t),b8.init(e,t),e._zod.processJSONSchema=(t,n,r)=>q4(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),y5=q(`ZodExactOptional`,(e,t)=>{xZ.init(e,t),b8.init(e,t),e._zod.processJSONSchema=(t,n,r)=>q4(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),b5=q(`ZodNullable`,(e,t)=>{SZ.init(e,t),b8.init(e,t),e._zod.processJSONSchema=(t,n,r)=>z4(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),x5=q(`ZodDefault`,(e,t)=>{CZ.init(e,t),b8.init(e,t),e._zod.processJSONSchema=(t,n,r)=>V4(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap}),S5=q(`ZodPrefault`,(e,t)=>{wZ.init(e,t),b8.init(e,t),e._zod.processJSONSchema=(t,n,r)=>H4(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),C5=q(`ZodNonOptional`,(e,t)=>{TZ.init(e,t),b8.init(e,t),e._zod.processJSONSchema=(t,n,r)=>B4(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),w5=q(`ZodSuccess`,(e,t)=>{EZ.init(e,t),b8.init(e,t),e._zod.processJSONSchema=(t,n,r)=>D4(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),T5=q(`ZodCatch`,(e,t)=>{DZ.init(e,t),b8.init(e,t),e._zod.processJSONSchema=(t,n,r)=>U4(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap}),E5=q(`ZodNaN`,(e,t)=>{OZ.init(e,t),b8.init(e,t),e._zod.processJSONSchema=(t,n,r)=>w4(e,t,n,r)}),D5=q(`ZodPipe`,(e,t)=>{kZ.init(e,t),b8.init(e,t),e._zod.processJSONSchema=(t,n,r)=>W4(e,t,n,r),e.in=t.in,e.out=t.out}),O5=q(`ZodCodec`,(e,t)=>{D5.init(e,t),AZ.init(e,t)}),k5=q(`ZodPreprocess`,(e,t)=>{D5.init(e,t),jZ.init(e,t)}),A5=q(`ZodReadonly`,(e,t)=>{MZ.init(e,t),b8.init(e,t),e._zod.processJSONSchema=(t,n,r)=>G4(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),j5=q(`ZodTemplateLiteral`,(e,t)=>{NZ.init(e,t),b8.init(e,t),e._zod.processJSONSchema=(t,n,r)=>T4(e,t,n,r)}),M5=q(`ZodLazy`,(e,t)=>{IZ.init(e,t),b8.init(e,t),e._zod.processJSONSchema=(t,n,r)=>J4(e,t,n,r),e.unwrap=()=>e._zod.def.getter()}),N5=q(`ZodPromise`,(e,t)=>{FZ.init(e,t),b8.init(e,t),e._zod.processJSONSchema=(t,n,r)=>K4(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),P5=q(`ZodFunction`,(e,t)=>{PZ.init(e,t),b8.init(e,t),e._zod.processJSONSchema=(t,n,r)=>k4(e,t,n,r)}),F5=q(`ZodCustom`,(e,t)=>{LZ.init(e,t),b8.init(e,t),e._zod.processJSONSchema=(t,n,r)=>O4(e,t,n,r)}),I5=J2,L5=Y2,R5=(...e)=>X2({Codec:O5,Boolean:q8,String:S8},...e)}));function B5(e){lK({customError:e})}function V5(){return lK().customError}var H5,U5,W5=o((()=>{n3(),H5={invalid_type:`invalid_type`,too_big:`too_big`,too_small:`too_small`,invalid_format:`invalid_format`,not_multiple_of:`not_multiple_of`,unrecognized_keys:`unrecognized_keys`,invalid_union:`invalid_union`,invalid_key:`invalid_key`,invalid_element:`invalid_element`,invalid_value:`invalid_value`,custom:`custom`},U5||={}}));function G5(e,t){let n=e.$schema;return n===`https://json-schema.org/draft/2020-12/schema`?`draft-2020-12`:n===`http://json-schema.org/draft-07/schema#`?`draft-7`:n===`http://json-schema.org/draft-04/schema#`?`draft-4`:t??`draft-2020-12`}function K5(e,t){if(!e.startsWith(`#`))throw Error(`External $ref is not supported, only local refs (#/...) are allowed`);let n=e.slice(1).split(`/`).filter(Boolean);if(n.length===0)return t.rootSchema;let r=t.version===`draft-2020-12`?`$defs`:`definitions`;if(n[0]===r){let r=n[1];if(!r||!t.defs[r])throw Error(`Reference not found: ${e}`);return t.defs[r]}throw Error(`Reference not found: ${e}`)}function q5(e,t){if(e.not!==void 0){if(typeof e.not==`object`&&Object.keys(e.not).length===0)return $.never();throw Error(`not is not supported in Zod (except { not: {} } for never)`)}if(e.unevaluatedItems!==void 0)throw Error(`unevaluatedItems is not supported`);if(e.unevaluatedProperties!==void 0)throw Error(`unevaluatedProperties is not supported`);if(e.if!==void 0||e.then!==void 0||e.else!==void 0)throw Error(`Conditional schemas (if/then/else) are not supported`);if(e.dependentSchemas!==void 0||e.dependentRequired!==void 0)throw Error(`dependentSchemas and dependentRequired are not supported`);if(e.$ref){let n=e.$ref;if(t.refs.has(n))return t.refs.get(n);if(t.processing.has(n))return $.lazy(()=>{if(!t.refs.has(n))throw Error(`Circular reference not resolved: ${n}`);return t.refs.get(n)});t.processing.add(n);let r=J5(K5(n,t),t);return t.refs.set(n,r),t.processing.delete(n),r}if(e.enum!==void 0){let n=e.enum;if(t.version===`openapi-3.0`&&e.nullable===!0&&n.length===1&&n[0]===null)return $.null();if(n.length===0)return $.never();if(n.length===1)return $.literal(n[0]);if(n.every(e=>typeof e==`string`))return $.enum(n);let r=n.map(e=>$.literal(e));return r.length<2?r[0]:$.union([r[0],r[1],...r.slice(2)])}if(e.const!==void 0)return $.literal(e.const);let n=e.type;if(Array.isArray(n)){let r=n.map(n=>q5({...e,type:n},t));return r.length===0?$.never():r.length===1?r[0]:$.union(r)}if(!n)return $.any();let r;switch(n){case`string`:{let t=$.string();if(e.format){let n=e.format;n===`email`?t=t.check($.email()):n===`uri`||n===`uri-reference`?t=t.check($.url()):n===`uuid`||n===`guid`?t=t.check($.uuid()):n===`date-time`?t=t.check($.iso.datetime()):n===`date`?t=t.check($.iso.date()):n===`time`?t=t.check($.iso.time()):n===`duration`?t=t.check($.iso.duration()):n===`ipv4`?t=t.check($.ipv4()):n===`ipv6`?t=t.check($.ipv6()):n===`mac`?t=t.check($.mac()):n===`cidr`?t=t.check($.cidrv4()):n===`cidr-v6`?t=t.check($.cidrv6()):n===`base64`?t=t.check($.base64()):n===`base64url`?t=t.check($.base64url()):n===`e164`?t=t.check($.e164()):n===`jwt`?t=t.check($.jwt()):n===`emoji`?t=t.check($.emoji()):n===`nanoid`?t=t.check($.nanoid()):n===`cuid`?t=t.check($.cuid()):n===`cuid2`?t=t.check($.cuid2()):n===`ulid`?t=t.check($.ulid()):n===`xid`?t=t.check($.xid()):n===`ksuid`&&(t=t.check($.ksuid()))}typeof e.minLength==`number`&&(t=t.min(e.minLength)),typeof e.maxLength==`number`&&(t=t.max(e.maxLength)),e.pattern&&(t=t.regex(new RegExp(e.pattern))),r=t;break}case`number`:case`integer`:{let t=n===`integer`?$.number().int():$.number();typeof e.minimum==`number`&&(t=t.min(e.minimum)),typeof e.maximum==`number`&&(t=t.max(e.maximum)),typeof e.exclusiveMinimum==`number`?t=t.gt(e.exclusiveMinimum):e.exclusiveMinimum===!0&&typeof e.minimum==`number`&&(t=t.gt(e.minimum)),typeof e.exclusiveMaximum==`number`?t=t.lt(e.exclusiveMaximum):e.exclusiveMaximum===!0&&typeof e.maximum==`number`&&(t=t.lt(e.maximum)),typeof e.multipleOf==`number`&&(t=t.multipleOf(e.multipleOf)),r=t;break}case`boolean`:r=$.boolean();break;case`null`:r=$.null();break;case`object`:{let n={},i=e.properties||{},a=new Set(e.required||[]);for(let[e,r]of Object.entries(i)){let i=J5(r,t);n[e]=a.has(e)?i:i.optional()}if(e.propertyNames){let i=J5(e.propertyNames,t),a=e.additionalProperties&&typeof e.additionalProperties==`object`?J5(e.additionalProperties,t):$.any();if(Object.keys(n).length===0){r=$.record(i,a);break}let o=$.object(n).passthrough(),s=$.looseRecord(i,a);r=$.intersection(o,s);break}if(e.patternProperties){let i=e.patternProperties,a=Object.keys(i),o=[];for(let e of a){let n=J5(i[e],t),r=$.string().regex(new RegExp(e));o.push($.looseRecord(r,n))}let s=[];if(Object.keys(n).length>0&&s.push($.object(n).passthrough()),s.push(...o),s.length===0)r=$.object({}).passthrough();else if(s.length===1)r=s[0];else{let e=$.intersection(s[0],s[1]);for(let t=2;tJ5(e,t)),o=i&&typeof i==`object`&&!Array.isArray(i)?J5(i,t):void 0;r=o?$.tuple(a).rest(o):$.tuple(a),typeof e.minItems==`number`&&(r=r.check($.minLength(e.minItems))),typeof e.maxItems==`number`&&(r=r.check($.maxLength(e.maxItems)))}else if(Array.isArray(i)){let n=i.map(e=>J5(e,t)),a=e.additionalItems&&typeof e.additionalItems==`object`?J5(e.additionalItems,t):void 0;r=a?$.tuple(n).rest(a):$.tuple(n),typeof e.minItems==`number`&&(r=r.check($.minLength(e.minItems))),typeof e.maxItems==`number`&&(r=r.check($.maxLength(e.maxItems)))}else if(i!==void 0){let n=J5(i,t),a=$.array(n);typeof e.minItems==`number`&&(a=a.min(e.minItems)),typeof e.maxItems==`number`&&(a=a.max(e.maxItems)),r=a}else r=$.array($.any());break}default:throw Error(`Unsupported type: ${n}`)}return r}function J5(e,t){if(typeof e==`boolean`)return e?$.any():$.never();let n=q5(e,t),r=e.type||e.enum!==void 0||e.const!==void 0;if(e.anyOf&&Array.isArray(e.anyOf)){let i=e.anyOf.map(e=>J5(e,t)),a=$.union(i);n=r?$.intersection(n,a):a}if(e.oneOf&&Array.isArray(e.oneOf)){let i=e.oneOf.map(e=>J5(e,t)),a=$.xor(i);n=r?$.intersection(n,a):a}if(e.allOf&&Array.isArray(e.allOf))if(e.allOf.length===0)n=r?n:$.any();else{let i=r?n:J5(e.allOf[0],t),a=+!r;for(let n=a;n0&&t.registry.add(n,i),e.description&&(n=n.describe(e.description)),n}function Y5(e,t){if(typeof e==`boolean`)return e?$.any():$.never();let n;try{n=JSON.parse(JSON.stringify(e))}catch{throw Error(`fromJSONSchema input is not valid JSON (possibly cyclic); use $defs/$ref for recursive schemas`)}let r={version:G5(n,t?.defaultTarget),defs:n.$defs||n.definitions||{},refs:new Map,processing:new Set,rootSchema:n,registry:t?.registry??W1};return J5(n,r)}var $,X5,Z5=o((()=>{G1(),c3(),v3(),z5(),$={...I3,...s3,iso:l3},X5=new Set(`$schema.$ref.$defs.definitions.$id.id.$comment.$anchor.$vocabulary.$dynamicRef.$dynamicAnchor.type.enum.const.anyOf.oneOf.allOf.not.properties.required.additionalProperties.patternProperties.propertyNames.minProperties.maxProperties.items.prefixItems.additionalItems.minItems.maxItems.uniqueItems.contains.minContains.maxContains.minLength.maxLength.pattern.format.minimum.maximum.exclusiveMinimum.exclusiveMaximum.multipleOf.description.default.contentEncoding.contentMediaType.contentSchema.unevaluatedItems.unevaluatedProperties.if.then.else.dependentSchemas.dependentRequired.nullable.readOnly`.split(`.`))})),Q5=c({bigint:()=>n7,boolean:()=>t7,date:()=>r7,number:()=>e7,string:()=>$5});function $5(e){return q1(S8,e)}function e7(e){return S0(G8,e)}function t7(e){return k0(q8,e)}function n7(e){return j0(J8,e)}function r7(e){return H0(r5,e)}var i7=o((()=>{n3(),z5()})),a7=c({$brand:()=>fK,$input:()=>H1,$output:()=>V1,NEVER:()=>dK,TimePrecision:()=>Q2,ZodAny:()=>$8,ZodArray:()=>i5,ZodBase64:()=>B8,ZodBase64URL:()=>V8,ZodBigInt:()=>J8,ZodBigIntFormat:()=>Y8,ZodBoolean:()=>q8,ZodCIDRv4:()=>R8,ZodCIDRv6:()=>z8,ZodCUID:()=>A8,ZodCUID2:()=>j8,ZodCatch:()=>T5,ZodCodec:()=>O5,ZodCustom:()=>F5,ZodCustomStringFormat:()=>W8,ZodDate:()=>r5,ZodDefault:()=>x5,ZodDiscriminatedUnion:()=>c5,ZodE164:()=>H8,ZodEmail:()=>w8,ZodEmoji:()=>O8,ZodEnum:()=>m5,ZodError:()=>b3,ZodExactOptional:()=>y5,ZodFile:()=>g5,ZodFirstPartyTypeKind:()=>U5,ZodFunction:()=>P5,ZodGUID:()=>T8,ZodIPv4:()=>F8,ZodIPv6:()=>L8,ZodISODate:()=>h3,ZodISODateTime:()=>m3,ZodISODuration:()=>_3,ZodISOTime:()=>g3,ZodIntersection:()=>l5,ZodIssueCode:()=>H5,ZodJWT:()=>U8,ZodKSUID:()=>P8,ZodLazy:()=>M5,ZodLiteral:()=>h5,ZodMAC:()=>I8,ZodMap:()=>f5,ZodNaN:()=>E5,ZodNanoID:()=>k8,ZodNever:()=>t5,ZodNonOptional:()=>C5,ZodNull:()=>Q8,ZodNullable:()=>b5,ZodNumber:()=>G8,ZodNumberFormat:()=>K8,ZodObject:()=>a5,ZodOptional:()=>v5,ZodPipe:()=>D5,ZodPrefault:()=>S5,ZodPreprocess:()=>k5,ZodPromise:()=>N5,ZodReadonly:()=>A5,ZodRealError:()=>x3,ZodRecord:()=>d5,ZodSet:()=>p5,ZodString:()=>S8,ZodStringFormat:()=>C8,ZodSuccess:()=>w5,ZodSymbol:()=>X8,ZodTemplateLiteral:()=>j5,ZodTransform:()=>_5,ZodTuple:()=>u5,ZodType:()=>b8,ZodULID:()=>M8,ZodURL:()=>D8,ZodUUID:()=>E8,ZodUndefined:()=>Z8,ZodUnion:()=>o5,ZodUnknown:()=>e5,ZodVoid:()=>n5,ZodXID:()=>N8,ZodXor:()=>s5,_ZodString:()=>x8,_default:()=>Q6,_function:()=>d8,any:()=>T6,array:()=>A6,base64:()=>i6,base64url:()=>a6,bigint:()=>y6,boolean:()=>v6,catch:()=>n8,check:()=>f8,cidrv4:()=>n6,cidrv6:()=>r6,clone:()=>WK,codec:()=>a8,coerce:()=>Q5,config:()=>lK,core:()=>t3,cuid:()=>J3,cuid2:()=>Y3,custom:()=>p8,date:()=>k6,decode:()=>O3,decodeAsync:()=>A3,describe:()=>I5,discriminatedUnion:()=>I6,e164:()=>o6,email:()=>R3,emoji:()=>K3,encode:()=>D3,encodeAsync:()=>k3,endsWith:()=>u2,enum:()=>W6,exactOptional:()=>Y6,file:()=>K6,flattenError:()=>Dq,float32:()=>m6,float64:()=>h6,formatError:()=>Oq,fromJSONSchema:()=>Y5,function:()=>d8,getErrorMap:()=>V5,globalRegistry:()=>W1,gt:()=>K0,gte:()=>q0,guid:()=>z3,hash:()=>d6,hex:()=>u6,hostname:()=>l6,httpUrl:()=>G3,includes:()=>c2,instanceof:()=>g8,int:()=>p6,int32:()=>g6,int64:()=>b6,intersection:()=>L6,invertCodec:()=>o8,ipv4:()=>$3,ipv6:()=>t6,iso:()=>l3,json:()=>_8,jwt:()=>s6,keyof:()=>j6,ksuid:()=>Q3,lazy:()=>l8,length:()=>i2,literal:()=>Q,locales:()=>L1,looseObject:()=>N6,looseRecord:()=>V6,lowercase:()=>o2,lt:()=>W0,lte:()=>G0,mac:()=>e6,map:()=>H6,maxLength:()=>n2,maxSize:()=>$0,meta:()=>L5,mime:()=>f2,minLength:()=>r2,minSize:()=>e2,multipleOf:()=>Q0,nan:()=>r8,nanoid:()=>q3,nativeEnum:()=>G6,negative:()=>Y0,never:()=>D6,nonnegative:()=>Z0,nonoptional:()=>e8,nonpositive:()=>X0,normalize:()=>m2,null:()=>w6,nullable:()=>X6,nullish:()=>Z6,number:()=>f6,object:()=>Z,optional:()=>J6,overwrite:()=>p2,parse:()=>C3,parseAsync:()=>w3,partialRecord:()=>B6,pipe:()=>i8,positive:()=>J0,prefault:()=>$6,preprocess:()=>v8,prettifyError:()=>jq,promise:()=>u8,property:()=>d2,readonly:()=>s8,record:()=>z6,refine:()=>m8,regex:()=>a2,regexes:()=>sJ,registry:()=>z1,safeDecode:()=>M3,safeDecodeAsync:()=>P3,safeEncode:()=>j3,safeEncodeAsync:()=>N3,safeParse:()=>T3,safeParseAsync:()=>E3,set:()=>U6,setErrorMap:()=>B5,size:()=>t2,slugify:()=>v2,startsWith:()=>l2,strictObject:()=>M6,string:()=>X,stringFormat:()=>c6,stringbool:()=>R5,success:()=>t8,superRefine:()=>h8,symbol:()=>S6,templateLiteral:()=>c8,toJSONSchema:()=>c4,toLowerCase:()=>g2,toUpperCase:()=>_2,transform:()=>q6,treeifyError:()=>kq,trim:()=>h2,tuple:()=>R6,uint32:()=>_6,uint64:()=>x6,ulid:()=>X3,undefined:()=>C6,union:()=>P6,unknown:()=>E6,uppercase:()=>s2,url:()=>W3,util:()=>_K,uuid:()=>B3,uuidv4:()=>V3,uuidv6:()=>H3,uuidv7:()=>U3,void:()=>O6,xid:()=>Z3,xor:()=>F6}),o7=o((()=>{n3(),z5(),c3(),S3(),F3(),W5(),hQ(),X4(),Z5(),R1(),v3(),i7(),lK(pQ())})),s7,c7=o((()=>{o7(),o7(),s7=a7})),l7=c({$brand:()=>fK,$input:()=>H1,$output:()=>V1,NEVER:()=>dK,TimePrecision:()=>Q2,ZodAny:()=>$8,ZodArray:()=>i5,ZodBase64:()=>B8,ZodBase64URL:()=>V8,ZodBigInt:()=>J8,ZodBigIntFormat:()=>Y8,ZodBoolean:()=>q8,ZodCIDRv4:()=>R8,ZodCIDRv6:()=>z8,ZodCUID:()=>A8,ZodCUID2:()=>j8,ZodCatch:()=>T5,ZodCodec:()=>O5,ZodCustom:()=>F5,ZodCustomStringFormat:()=>W8,ZodDate:()=>r5,ZodDefault:()=>x5,ZodDiscriminatedUnion:()=>c5,ZodE164:()=>H8,ZodEmail:()=>w8,ZodEmoji:()=>O8,ZodEnum:()=>m5,ZodError:()=>b3,ZodExactOptional:()=>y5,ZodFile:()=>g5,ZodFirstPartyTypeKind:()=>U5,ZodFunction:()=>P5,ZodGUID:()=>T8,ZodIPv4:()=>F8,ZodIPv6:()=>L8,ZodISODate:()=>h3,ZodISODateTime:()=>m3,ZodISODuration:()=>_3,ZodISOTime:()=>g3,ZodIntersection:()=>l5,ZodIssueCode:()=>H5,ZodJWT:()=>U8,ZodKSUID:()=>P8,ZodLazy:()=>M5,ZodLiteral:()=>h5,ZodMAC:()=>I8,ZodMap:()=>f5,ZodNaN:()=>E5,ZodNanoID:()=>k8,ZodNever:()=>t5,ZodNonOptional:()=>C5,ZodNull:()=>Q8,ZodNullable:()=>b5,ZodNumber:()=>G8,ZodNumberFormat:()=>K8,ZodObject:()=>a5,ZodOptional:()=>v5,ZodPipe:()=>D5,ZodPrefault:()=>S5,ZodPreprocess:()=>k5,ZodPromise:()=>N5,ZodReadonly:()=>A5,ZodRealError:()=>x3,ZodRecord:()=>d5,ZodSet:()=>p5,ZodString:()=>S8,ZodStringFormat:()=>C8,ZodSuccess:()=>w5,ZodSymbol:()=>X8,ZodTemplateLiteral:()=>j5,ZodTransform:()=>_5,ZodTuple:()=>u5,ZodType:()=>b8,ZodULID:()=>M8,ZodURL:()=>D8,ZodUUID:()=>E8,ZodUndefined:()=>Z8,ZodUnion:()=>o5,ZodUnknown:()=>e5,ZodVoid:()=>n5,ZodXID:()=>N8,ZodXor:()=>s5,_ZodString:()=>x8,_default:()=>Q6,_function:()=>d8,any:()=>T6,array:()=>A6,base64:()=>i6,base64url:()=>a6,bigint:()=>y6,boolean:()=>v6,catch:()=>n8,check:()=>f8,cidrv4:()=>n6,cidrv6:()=>r6,clone:()=>WK,codec:()=>a8,coerce:()=>Q5,config:()=>lK,core:()=>t3,cuid:()=>J3,cuid2:()=>Y3,custom:()=>p8,date:()=>k6,decode:()=>O3,decodeAsync:()=>A3,default:()=>u7,describe:()=>I5,discriminatedUnion:()=>I6,e164:()=>o6,email:()=>R3,emoji:()=>K3,encode:()=>D3,encodeAsync:()=>k3,endsWith:()=>u2,enum:()=>W6,exactOptional:()=>Y6,file:()=>K6,flattenError:()=>Dq,float32:()=>m6,float64:()=>h6,formatError:()=>Oq,fromJSONSchema:()=>Y5,function:()=>d8,getErrorMap:()=>V5,globalRegistry:()=>W1,gt:()=>K0,gte:()=>q0,guid:()=>z3,hash:()=>d6,hex:()=>u6,hostname:()=>l6,httpUrl:()=>G3,includes:()=>c2,instanceof:()=>g8,int:()=>p6,int32:()=>g6,int64:()=>b6,intersection:()=>L6,invertCodec:()=>o8,ipv4:()=>$3,ipv6:()=>t6,iso:()=>l3,json:()=>_8,jwt:()=>s6,keyof:()=>j6,ksuid:()=>Q3,lazy:()=>l8,length:()=>i2,literal:()=>Q,locales:()=>L1,looseObject:()=>N6,looseRecord:()=>V6,lowercase:()=>o2,lt:()=>W0,lte:()=>G0,mac:()=>e6,map:()=>H6,maxLength:()=>n2,maxSize:()=>$0,meta:()=>L5,mime:()=>f2,minLength:()=>r2,minSize:()=>e2,multipleOf:()=>Q0,nan:()=>r8,nanoid:()=>q3,nativeEnum:()=>G6,negative:()=>Y0,never:()=>D6,nonnegative:()=>Z0,nonoptional:()=>e8,nonpositive:()=>X0,normalize:()=>m2,null:()=>w6,nullable:()=>X6,nullish:()=>Z6,number:()=>f6,object:()=>Z,optional:()=>J6,overwrite:()=>p2,parse:()=>C3,parseAsync:()=>w3,partialRecord:()=>B6,pipe:()=>i8,positive:()=>J0,prefault:()=>$6,preprocess:()=>v8,prettifyError:()=>jq,promise:()=>u8,property:()=>d2,readonly:()=>s8,record:()=>z6,refine:()=>m8,regex:()=>a2,regexes:()=>sJ,registry:()=>z1,safeDecode:()=>M3,safeDecodeAsync:()=>P3,safeEncode:()=>j3,safeEncodeAsync:()=>N3,safeParse:()=>T3,safeParseAsync:()=>E3,set:()=>U6,setErrorMap:()=>B5,size:()=>t2,slugify:()=>v2,startsWith:()=>l2,strictObject:()=>M6,string:()=>X,stringFormat:()=>c6,stringbool:()=>R5,success:()=>t8,superRefine:()=>h8,symbol:()=>S6,templateLiteral:()=>c8,toJSONSchema:()=>c4,toLowerCase:()=>g2,toUpperCase:()=>_2,transform:()=>q6,treeifyError:()=>kq,trim:()=>h2,tuple:()=>R6,uint32:()=>_6,uint64:()=>x6,ulid:()=>X3,undefined:()=>C6,union:()=>P6,unknown:()=>E6,uppercase:()=>s2,url:()=>W3,util:()=>_K,uuid:()=>B3,uuidv4:()=>V3,uuidv6:()=>H3,uuidv7:()=>U3,void:()=>O6,xid:()=>Z3,xor:()=>F6,z:()=>a7}),u7,d7=o((()=>{c7(),c7(),u7=s7}));d7();var f7=`io.modelcontextprotocol/related-task`,p7=p8(e=>e!==null&&(typeof e==`object`||typeof e==`function`)),m7=P6([X(),f6().int()]),h7=X();N6({ttl:f6().optional(),pollInterval:f6().optional()});var g7=Z({ttl:f6().optional()}),_7=Z({taskId:X()}),v7=N6({progressToken:m7.optional(),[f7]:_7.optional()}),y7=Z({_meta:v7.optional()}),b7=y7.extend({task:g7.optional()}),x7=e=>b7.safeParse(e).success,S7=Z({method:X(),params:y7.loose().optional()}),C7=Z({_meta:v7.optional()}),w7=Z({method:X(),params:C7.loose().optional()}),T7=N6({_meta:v7.optional()}),E7=P6([X(),f6().int()]),D7=Z({jsonrpc:Q(`2.0`),id:E7,...S7.shape}).strict(),O7=e=>D7.safeParse(e).success,k7=Z({jsonrpc:Q(`2.0`),...w7.shape}).strict(),A7=e=>k7.safeParse(e).success,j7=Z({jsonrpc:Q(`2.0`),id:E7,result:T7}).strict(),M7=e=>j7.safeParse(e).success,N7;(function(e){e[e.ConnectionClosed=-32e3]=`ConnectionClosed`,e[e.RequestTimeout=-32001]=`RequestTimeout`,e[e.ParseError=-32700]=`ParseError`,e[e.InvalidRequest=-32600]=`InvalidRequest`,e[e.MethodNotFound=-32601]=`MethodNotFound`,e[e.InvalidParams=-32602]=`InvalidParams`,e[e.InternalError=-32603]=`InternalError`,e[e.UrlElicitationRequired=-32042]=`UrlElicitationRequired`})(N7||={});var P7=Z({jsonrpc:Q(`2.0`),id:E7.optional(),error:Z({code:f6().int(),message:X(),data:E6().optional()})}).strict(),F7=e=>P7.safeParse(e).success,I7=P6([D7,k7,j7,P7]);P6([j7,P7]);var L7=T7.strict(),R7=C7.extend({requestId:E7.optional(),reason:X().optional()}),z7=w7.extend({method:Q(`notifications/cancelled`),params:R7}),B7=Z({icons:A6(Z({src:X(),mimeType:X().optional(),sizes:A6(X()).optional(),theme:W6([`light`,`dark`]).optional()})).optional()}),V7=Z({name:X(),title:X().optional()}),H7=V7.extend({...V7.shape,...B7.shape,version:X(),websiteUrl:X().optional(),description:X().optional()}),U7=v8(e=>e&&typeof e==`object`&&!Array.isArray(e)&&Object.keys(e).length===0?{form:{}}:e,L6(Z({form:L6(Z({applyDefaults:v6().optional()}),z6(X(),E6())).optional(),url:p7.optional()}),z6(X(),E6()).optional())),W7=N6({list:p7.optional(),cancel:p7.optional(),requests:N6({sampling:N6({createMessage:p7.optional()}).optional(),elicitation:N6({create:p7.optional()}).optional()}).optional()}),G7=N6({list:p7.optional(),cancel:p7.optional(),requests:N6({tools:N6({call:p7.optional()}).optional()}).optional()}),K7=Z({experimental:z6(X(),p7).optional(),sampling:Z({context:p7.optional(),tools:p7.optional()}).optional(),elicitation:U7.optional(),roots:Z({listChanged:v6().optional()}).optional(),tasks:W7.optional(),extensions:z6(X(),p7).optional()}),q7=y7.extend({protocolVersion:X(),capabilities:K7,clientInfo:H7}),J7=S7.extend({method:Q(`initialize`),params:q7}),Y7=Z({experimental:z6(X(),p7).optional(),logging:p7.optional(),completions:p7.optional(),prompts:Z({listChanged:v6().optional()}).optional(),resources:Z({subscribe:v6().optional(),listChanged:v6().optional()}).optional(),tools:Z({listChanged:v6().optional()}).optional(),tasks:G7.optional(),extensions:z6(X(),p7).optional()}),X7=T7.extend({protocolVersion:X(),capabilities:Y7,serverInfo:H7,instructions:X().optional()}),Z7=w7.extend({method:Q(`notifications/initialized`),params:C7.optional()}),Q7=S7.extend({method:Q(`ping`),params:y7.optional()}),$7=Z({progress:f6(),total:J6(f6()),message:J6(X())}),e9=Z({...C7.shape,...$7.shape,progressToken:m7}),t9=w7.extend({method:Q(`notifications/progress`),params:e9}),n9=y7.extend({cursor:h7.optional()}),r9=S7.extend({params:n9.optional()}),i9=T7.extend({nextCursor:h7.optional()}),a9=W6([`working`,`input_required`,`completed`,`failed`,`cancelled`]),o9=Z({taskId:X(),status:a9,ttl:P6([f6(),w6()]),createdAt:X(),lastUpdatedAt:X(),pollInterval:J6(f6()),statusMessage:J6(X())}),s9=T7.extend({task:o9}),Yee=C7.merge(o9),c9=w7.extend({method:Q(`notifications/tasks/status`),params:Yee}),l9=S7.extend({method:Q(`tasks/get`),params:y7.extend({taskId:X()})}),u9=T7.merge(o9),d9=S7.extend({method:Q(`tasks/result`),params:y7.extend({taskId:X()})});T7.loose();var f9=r9.extend({method:Q(`tasks/list`)}),p9=i9.extend({tasks:A6(o9)}),m9=S7.extend({method:Q(`tasks/cancel`),params:y7.extend({taskId:X()})}),Xee=T7.merge(o9),h9=Z({uri:X(),mimeType:J6(X()),_meta:z6(X(),E6()).optional()}),g9=h9.extend({text:X()}),_9=X().refine(e=>{try{return atob(e),!0}catch{return!1}},{message:`Invalid Base64 string`}),v9=h9.extend({blob:_9}),y9=W6([`user`,`assistant`]),b9=Z({audience:A6(y9).optional(),priority:f6().min(0).max(1).optional(),lastModified:u3({offset:!0}).optional()}),x9=Z({...V7.shape,...B7.shape,uri:X(),description:J6(X()),mimeType:J6(X()),size:J6(f6()),annotations:b9.optional(),_meta:J6(N6({}))}),Zee=Z({...V7.shape,...B7.shape,uriTemplate:X(),description:J6(X()),mimeType:J6(X()),annotations:b9.optional(),_meta:J6(N6({}))}),Qee=r9.extend({method:Q(`resources/list`)}),S9=i9.extend({resources:A6(x9)}),$ee=r9.extend({method:Q(`resources/templates/list`)}),ete=i9.extend({resourceTemplates:A6(Zee)}),C9=y7.extend({uri:X()}),tte=C9,nte=S7.extend({method:Q(`resources/read`),params:tte}),w9=T7.extend({contents:A6(P6([g9,v9]))}),rte=w7.extend({method:Q(`notifications/resources/list_changed`),params:C7.optional()}),ite=C9,ate=S7.extend({method:Q(`resources/subscribe`),params:ite}),ote=C9,ste=S7.extend({method:Q(`resources/unsubscribe`),params:ote}),cte=C7.extend({uri:X()}),lte=w7.extend({method:Q(`notifications/resources/updated`),params:cte}),ute=Z({name:X(),description:J6(X()),required:J6(v6())}),dte=Z({...V7.shape,...B7.shape,description:J6(X()),arguments:J6(A6(ute)),_meta:J6(N6({}))}),fte=r9.extend({method:Q(`prompts/list`)}),pte=i9.extend({prompts:A6(dte)}),mte=y7.extend({name:X(),arguments:z6(X(),X()).optional()}),hte=S7.extend({method:Q(`prompts/get`),params:mte}),T9=Z({type:Q(`text`),text:X(),annotations:b9.optional(),_meta:z6(X(),E6()).optional()}),E9=Z({type:Q(`image`),data:_9,mimeType:X(),annotations:b9.optional(),_meta:z6(X(),E6()).optional()}),D9=Z({type:Q(`audio`),data:_9,mimeType:X(),annotations:b9.optional(),_meta:z6(X(),E6()).optional()}),gte=Z({type:Q(`tool_use`),name:X(),id:X(),input:z6(X(),E6()),_meta:z6(X(),E6()).optional()}),O9=Z({type:Q(`resource`),resource:P6([g9,v9]),annotations:b9.optional(),_meta:z6(X(),E6()).optional()}),k9=x9.extend({type:Q(`resource_link`)}),A9=P6([T9,E9,D9,k9,O9]),_te=Z({role:y9,content:A9}),vte=T7.extend({description:X().optional(),messages:A6(_te)}),yte=w7.extend({method:Q(`notifications/prompts/list_changed`),params:C7.optional()}),bte=Z({title:X().optional(),readOnlyHint:v6().optional(),destructiveHint:v6().optional(),idempotentHint:v6().optional(),openWorldHint:v6().optional()}),xte=Z({taskSupport:W6([`required`,`optional`,`forbidden`]).optional()}),j9=Z({...V7.shape,...B7.shape,description:X().optional(),inputSchema:Z({type:Q(`object`),properties:z6(X(),p7).optional(),required:A6(X()).optional()}).catchall(E6()),outputSchema:Z({type:Q(`object`),properties:z6(X(),p7).optional(),required:A6(X()).optional()}).catchall(E6()).optional(),annotations:bte.optional(),execution:xte.optional(),_meta:z6(X(),E6()).optional()}),M9=r9.extend({method:Q(`tools/list`)}),Ste=i9.extend({tools:A6(j9)}),N9=T7.extend({content:A6(A9).default([]),structuredContent:z6(X(),E6()).optional(),isError:v6().optional()});N9.or(T7.extend({toolResult:E6()}));var Cte=b7.extend({name:X(),arguments:z6(X(),E6()).optional()}),P9=S7.extend({method:Q(`tools/call`),params:Cte}),wte=w7.extend({method:Q(`notifications/tools/list_changed`),params:C7.optional()});Z({autoRefresh:v6().default(!0),debounceMs:f6().int().nonnegative().default(300)});var F9=W6([`debug`,`info`,`notice`,`warning`,`error`,`critical`,`alert`,`emergency`]),Tte=y7.extend({level:F9}),Ete=S7.extend({method:Q(`logging/setLevel`),params:Tte}),Dte=C7.extend({level:F9,logger:X().optional(),data:E6()}),Ote=w7.extend({method:Q(`notifications/message`),params:Dte}),kte=Z({hints:A6(Z({name:X().optional()})).optional(),costPriority:f6().min(0).max(1).optional(),speedPriority:f6().min(0).max(1).optional(),intelligencePriority:f6().min(0).max(1).optional()}),Ate=Z({mode:W6([`auto`,`required`,`none`]).optional()}),jte=Z({type:Q(`tool_result`),toolUseId:X().describe(`The unique identifier for the corresponding tool call.`),content:A6(A9).default([]),structuredContent:Z({}).loose().optional(),isError:v6().optional(),_meta:z6(X(),E6()).optional()}),Mte=I6(`type`,[T9,E9,D9]),I9=I6(`type`,[T9,E9,D9,gte,jte]),Nte=Z({role:y9,content:P6([I9,A6(I9)]),_meta:z6(X(),E6()).optional()}),Pte=b7.extend({messages:A6(Nte),modelPreferences:kte.optional(),systemPrompt:X().optional(),includeContext:W6([`none`,`thisServer`,`allServers`]).optional(),temperature:f6().optional(),maxTokens:f6().int(),stopSequences:A6(X()).optional(),metadata:p7.optional(),tools:A6(j9).optional(),toolChoice:Ate.optional()}),Fte=S7.extend({method:Q(`sampling/createMessage`),params:Pte}),L9=T7.extend({model:X(),stopReason:J6(W6([`endTurn`,`stopSequence`,`maxTokens`]).or(X())),role:y9,content:Mte}),R9=T7.extend({model:X(),stopReason:J6(W6([`endTurn`,`stopSequence`,`maxTokens`,`toolUse`]).or(X())),role:y9,content:P6([I9,A6(I9)])}),Ite=Z({type:Q(`boolean`),title:X().optional(),description:X().optional(),default:v6().optional()}),Lte=Z({type:Q(`string`),title:X().optional(),description:X().optional(),minLength:f6().optional(),maxLength:f6().optional(),format:W6([`email`,`uri`,`date`,`date-time`]).optional(),default:X().optional()}),Rte=Z({type:W6([`number`,`integer`]),title:X().optional(),description:X().optional(),minimum:f6().optional(),maximum:f6().optional(),default:f6().optional()}),zte=Z({type:Q(`string`),title:X().optional(),description:X().optional(),enum:A6(X()),default:X().optional()}),Bte=Z({type:Q(`string`),title:X().optional(),description:X().optional(),oneOf:A6(Z({const:X(),title:X()})),default:X().optional()}),Vte=P6([P6([Z({type:Q(`string`),title:X().optional(),description:X().optional(),enum:A6(X()),enumNames:A6(X()).optional(),default:X().optional()}),P6([zte,Bte]),P6([Z({type:Q(`array`),title:X().optional(),description:X().optional(),minItems:f6().optional(),maxItems:f6().optional(),items:Z({type:Q(`string`),enum:A6(X())}),default:A6(X()).optional()}),Z({type:Q(`array`),title:X().optional(),description:X().optional(),minItems:f6().optional(),maxItems:f6().optional(),items:Z({anyOf:A6(Z({const:X(),title:X()}))}),default:A6(X()).optional()})])]),Ite,Lte,Rte]),Hte=P6([b7.extend({mode:Q(`form`).optional(),message:X(),requestedSchema:Z({type:Q(`object`),properties:z6(X(),Vte),required:A6(X()).optional()})}),b7.extend({mode:Q(`url`),message:X(),elicitationId:X(),url:X().url()})]),Ute=S7.extend({method:Q(`elicitation/create`),params:Hte}),Wte=C7.extend({elicitationId:X()}),Gte=w7.extend({method:Q(`notifications/elicitation/complete`),params:Wte}),Kte=T7.extend({action:W6([`accept`,`decline`,`cancel`]),content:v8(e=>e===null?void 0:e,z6(X(),P6([X(),f6(),v6(),A6(X())])).optional())}),qte=Z({type:Q(`ref/resource`),uri:X()}),Jte=Z({type:Q(`ref/prompt`),name:X()}),Yte=y7.extend({ref:P6([Jte,qte]),argument:Z({name:X(),value:X()}),context:Z({arguments:z6(X(),X()).optional()}).optional()}),Xte=S7.extend({method:Q(`completion/complete`),params:Yte}),Zte=T7.extend({completion:N6({values:A6(X()).max(100),total:J6(f6().int()),hasMore:J6(v6())})}),Qte=Z({uri:X().startsWith(`file://`),name:X().optional(),_meta:z6(X(),E6()).optional()}),$te=S7.extend({method:Q(`roots/list`),params:y7.optional()}),ene=T7.extend({roots:A6(Qte)}),tne=w7.extend({method:Q(`notifications/roots/list_changed`),params:C7.optional()});P6([Q7,J7,Xte,Ete,hte,fte,Qee,$ee,nte,ate,ste,P9,M9,l9,d9,f9,m9]),P6([z7,t9,Z7,tne,c9]),P6([L7,L9,R9,Kte,ene,u9,p9,s9]),P6([Q7,Fte,Ute,$te,l9,d9,f9,m9]),P6([z7,t9,Ote,lte,rte,wte,yte,c9,Gte]),P6([L7,X7,Zte,vte,pte,S9,ete,w9,N9,Ste,u9,p9,s9]);var z9=class e extends Error{constructor(e,t,n){super(`MCP error ${e}: ${t}`),this.code=e,this.data=n,this.name=`McpError`}static fromError(t,n,r){if(t===N7.UrlElicitationRequired&&r){let e=r;if(e.elicitations)return new nne(e.elicitations,n)}return new e(t,n,r)}},nne=class extends z9{constructor(e,t=`URL elicitation${e.length>1?`s`:``} required`){super(N7.UrlElicitationRequired,t,{elicitations:e})}get elicitations(){return this.data?.elicitations??[]}};function B9(e){return e===`completed`||e===`failed`||e===`cancelled`}function V9(e){let t=a3(e)?.method;if(!t)throw Error(`Schema is missing a method literal`);let n=o3(t);if(typeof n!=`string`)throw Error(`Schema method literal must be a string`);return n}function H9(e,t){let n=i3(e,t);if(!n.success)throw n.error;return n.data}var rne=class{constructor(e){this._options=e,this._requestMessageId=0,this._requestHandlers=new Map,this._requestHandlerAbortControllers=new Map,this._notificationHandlers=new Map,this._responseHandlers=new Map,this._progressHandlers=new Map,this._timeoutInfo=new Map,this._pendingDebouncedNotifications=new Set,this._taskProgressTokens=new Map,this._requestResolvers=new Map,this.setNotificationHandler(z7,e=>{this._oncancel(e)}),this.setNotificationHandler(t9,e=>{this._onprogress(e)}),this.setRequestHandler(Q7,e=>({})),this._taskStore=e?.taskStore,this._taskMessageQueue=e?.taskMessageQueue,this._taskStore&&(this.setRequestHandler(l9,async(e,t)=>{let n=await this._taskStore.getTask(e.params.taskId,t.sessionId);if(!n)throw new z9(N7.InvalidParams,`Failed to retrieve task: Task not found`);return{...n}}),this.setRequestHandler(d9,async(e,t)=>{let n=async()=>{let r=e.params.taskId;if(this._taskMessageQueue){let e;for(;e=await this._taskMessageQueue.dequeue(r,t.sessionId);){if(e.type===`response`||e.type===`error`){let t=e.message,n=t.id,r=this._requestResolvers.get(n);if(r)if(this._requestResolvers.delete(n),e.type===`response`)r(t);else{let e=t;r(new z9(e.error.code,e.error.message,e.error.data))}else{let t=e.type===`response`?`Response`:`Error`;this._onerror(Error(`${t} handler missing for request ${n}`))}continue}await this._transport?.send(e.message,{relatedRequestId:t.requestId})}}let i=await this._taskStore.getTask(r,t.sessionId);if(!i)throw new z9(N7.InvalidParams,`Task not found: ${r}`);if(!B9(i.status))return await this._waitForTaskUpdate(r,t.signal),await n();if(B9(i.status)){let e=await this._taskStore.getTaskResult(r,t.sessionId);return this._clearTaskQueue(r),{...e,_meta:{...e._meta,[f7]:{taskId:r}}}}return await n()};return await n()}),this.setRequestHandler(f9,async(e,t)=>{try{let{tasks:n,nextCursor:r}=await this._taskStore.listTasks(e.params?.cursor,t.sessionId);return{tasks:n,nextCursor:r,_meta:{}}}catch(e){throw new z9(N7.InvalidParams,`Failed to list tasks: ${e instanceof Error?e.message:String(e)}`)}}),this.setRequestHandler(m9,async(e,t)=>{try{let n=await this._taskStore.getTask(e.params.taskId,t.sessionId);if(!n)throw new z9(N7.InvalidParams,`Task not found: ${e.params.taskId}`);if(B9(n.status))throw new z9(N7.InvalidParams,`Cannot cancel task in terminal status: ${n.status}`);await this._taskStore.updateTaskStatus(e.params.taskId,`cancelled`,`Client cancelled task execution.`,t.sessionId),this._clearTaskQueue(e.params.taskId);let r=await this._taskStore.getTask(e.params.taskId,t.sessionId);if(!r)throw new z9(N7.InvalidParams,`Task not found after cancellation: ${e.params.taskId}`);return{_meta:{},...r}}catch(e){throw e instanceof z9?e:new z9(N7.InvalidRequest,`Failed to cancel task: ${e instanceof Error?e.message:String(e)}`)}}))}async _oncancel(e){e.params.requestId&&this._requestHandlerAbortControllers.get(e.params.requestId)?.abort(e.params.reason)}_setupTimeout(e,t,n,r,i=!1){this._timeoutInfo.set(e,{timeoutId:setTimeout(r,t),startTime:Date.now(),timeout:t,maxTotalTimeout:n,resetTimeoutOnProgress:i,onTimeout:r})}_resetTimeout(e){let t=this._timeoutInfo.get(e);if(!t)return!1;let n=Date.now()-t.startTime;if(t.maxTotalTimeout&&n>=t.maxTotalTimeout)throw this._timeoutInfo.delete(e),z9.fromError(N7.RequestTimeout,`Maximum total timeout exceeded`,{maxTotalTimeout:t.maxTotalTimeout,totalElapsed:n});return clearTimeout(t.timeoutId),t.timeoutId=setTimeout(t.onTimeout,t.timeout),!0}_cleanupTimeout(e){let t=this._timeoutInfo.get(e);t&&(clearTimeout(t.timeoutId),this._timeoutInfo.delete(e))}async connect(e){if(this._transport)throw Error(`Already connected to a transport. Call close() before connecting to a new transport, or use a separate Protocol instance per connection.`);this._transport=e;let t=this.transport?.onclose;this._transport.onclose=()=>{t?.(),this._onclose()};let n=this.transport?.onerror;this._transport.onerror=e=>{n?.(e),this._onerror(e)};let r=this._transport?.onmessage;this._transport.onmessage=(e,t)=>{r?.(e,t),M7(e)||F7(e)?this._onresponse(e):O7(e)?this._onrequest(e,t):A7(e)?this._onnotification(e):this._onerror(Error(`Unknown message type: ${JSON.stringify(e)}`))},await this._transport.start()}_onclose(){let e=this._responseHandlers;this._responseHandlers=new Map,this._progressHandlers.clear(),this._taskProgressTokens.clear(),this._pendingDebouncedNotifications.clear();for(let e of this._timeoutInfo.values())clearTimeout(e.timeoutId);this._timeoutInfo.clear();for(let e of this._requestHandlerAbortControllers.values())e.abort();this._requestHandlerAbortControllers.clear();let t=z9.fromError(N7.ConnectionClosed,`Connection closed`);this._transport=void 0,this.onclose?.();for(let n of e.values())n(t)}_onerror(e){this.onerror?.(e)}_onnotification(e){let t=this._notificationHandlers.get(e.method)??this.fallbackNotificationHandler;t!==void 0&&Promise.resolve().then(()=>t(e)).catch(e=>this._onerror(Error(`Uncaught error in notification handler: ${e}`)))}_onrequest(e,t){let n=this._requestHandlers.get(e.method)??this.fallbackRequestHandler,r=this._transport,i=e.params?._meta?.[f7]?.taskId;if(n===void 0){let t={jsonrpc:`2.0`,id:e.id,error:{code:N7.MethodNotFound,message:`Method not found`}};i&&this._taskMessageQueue?this._enqueueTaskMessage(i,{type:`error`,message:t,timestamp:Date.now()},r?.sessionId).catch(e=>this._onerror(Error(`Failed to enqueue error response: ${e}`))):r?.send(t).catch(e=>this._onerror(Error(`Failed to send an error response: ${e}`)));return}let a=new AbortController;this._requestHandlerAbortControllers.set(e.id,a);let o=x7(e.params)?e.params.task:void 0,s=this._taskStore?this.requestTaskStore(e,r?.sessionId):void 0,c={signal:a.signal,sessionId:r?.sessionId,_meta:e.params?._meta,sendNotification:async t=>{if(a.signal.aborted)return;let n={relatedRequestId:e.id};i&&(n.relatedTask={taskId:i}),await this.notification(t,n)},sendRequest:async(t,n,r)=>{if(a.signal.aborted)throw new z9(N7.ConnectionClosed,`Request was cancelled`);let o={...r,relatedRequestId:e.id};i&&!o.relatedTask&&(o.relatedTask={taskId:i});let c=o.relatedTask?.taskId??i;return c&&s&&await s.updateTaskStatus(c,`input_required`),await this.request(t,n,o)},authInfo:t?.authInfo,requestId:e.id,requestInfo:t?.requestInfo,taskId:i,taskStore:s,taskRequestedTtl:o?.ttl,closeSSEStream:t?.closeSSEStream,closeStandaloneSSEStream:t?.closeStandaloneSSEStream};Promise.resolve().then(()=>{o&&this.assertTaskHandlerCapability(e.method)}).then(()=>n(e,c)).then(async t=>{if(a.signal.aborted)return;let n={result:t,jsonrpc:`2.0`,id:e.id};i&&this._taskMessageQueue?await this._enqueueTaskMessage(i,{type:`response`,message:n,timestamp:Date.now()},r?.sessionId):await r?.send(n)},async t=>{if(a.signal.aborted)return;let n={jsonrpc:`2.0`,id:e.id,error:{code:Number.isSafeInteger(t.code)?t.code:N7.InternalError,message:t.message??`Internal error`,...t.data!==void 0&&{data:t.data}}};i&&this._taskMessageQueue?await this._enqueueTaskMessage(i,{type:`error`,message:n,timestamp:Date.now()},r?.sessionId):await r?.send(n)}).catch(e=>this._onerror(Error(`Failed to send response: ${e}`))).finally(()=>{this._requestHandlerAbortControllers.get(e.id)===a&&this._requestHandlerAbortControllers.delete(e.id)})}_onprogress(e){let{progressToken:t,...n}=e.params,r=Number(t),i=this._progressHandlers.get(r);if(!i){this._onerror(Error(`Received a progress notification for an unknown token: ${JSON.stringify(e)}`));return}let a=this._responseHandlers.get(r),o=this._timeoutInfo.get(r);if(o&&a&&o.resetTimeoutOnProgress)try{this._resetTimeout(r)}catch(e){this._responseHandlers.delete(r),this._progressHandlers.delete(r),this._cleanupTimeout(r),a(e);return}i(n)}_onresponse(e){let t=Number(e.id),n=this._requestResolvers.get(t);if(n){this._requestResolvers.delete(t),M7(e)?n(e):n(new z9(e.error.code,e.error.message,e.error.data));return}let r=this._responseHandlers.get(t);if(r===void 0){this._onerror(Error(`Received a response for an unknown message ID: ${JSON.stringify(e)}`));return}this._responseHandlers.delete(t),this._cleanupTimeout(t);let i=!1;if(M7(e)&&e.result&&typeof e.result==`object`){let n=e.result;if(n.task&&typeof n.task==`object`){let e=n.task;typeof e.taskId==`string`&&(i=!0,this._taskProgressTokens.set(e.taskId,t))}}i||this._progressHandlers.delete(t),M7(e)?r(e):r(z9.fromError(e.error.code,e.error.message,e.error.data))}get transport(){return this._transport}async close(){await this._transport?.close()}async*requestStream(e,t,n){let{task:r}=n??{};if(!r){try{yield{type:`result`,result:await this.request(e,t,n)}}catch(e){yield{type:`error`,error:e instanceof z9?e:new z9(N7.InternalError,String(e))}}return}let i;try{let r=await this.request(e,s9,n);if(r.task)i=r.task.taskId,yield{type:`taskCreated`,task:r.task};else throw new z9(N7.InternalError,`Task creation did not return a task`);for(;;){let e=await this.getTask({taskId:i},n);if(yield{type:`taskStatus`,task:e},B9(e.status)){e.status===`completed`?yield{type:`result`,result:await this.getTaskResult({taskId:i},t,n)}:e.status===`failed`?yield{type:`error`,error:new z9(N7.InternalError,`Task ${i} failed`)}:e.status===`cancelled`&&(yield{type:`error`,error:new z9(N7.InternalError,`Task ${i} was cancelled`)});return}if(e.status===`input_required`){yield{type:`result`,result:await this.getTaskResult({taskId:i},t,n)};return}let r=e.pollInterval??this._options?.defaultTaskPollInterval??1e3;await new Promise(e=>setTimeout(e,r)),n?.signal?.throwIfAborted()}}catch(e){yield{type:`error`,error:e instanceof z9?e:new z9(N7.InternalError,String(e))}}}request(e,t,n){let{relatedRequestId:r,resumptionToken:i,onresumptiontoken:a,task:o,relatedTask:s}=n??{};return new Promise((c,l)=>{let u=e=>{l(e)};if(!this._transport){u(Error(`Not connected`));return}if(this._options?.enforceStrictCapabilities===!0)try{this.assertCapabilityForMethod(e.method),o&&this.assertTaskCapability(e.method)}catch(e){u(e);return}n?.signal?.throwIfAborted();let d=this._requestMessageId++,f={...e,jsonrpc:`2.0`,id:d};n?.onprogress&&(this._progressHandlers.set(d,n.onprogress),f.params={...e.params,_meta:{...e.params?._meta||{},progressToken:d}}),o&&(f.params={...f.params,task:o}),s&&(f.params={...f.params,_meta:{...f.params?._meta||{},[f7]:s}});let p=e=>{this._responseHandlers.delete(d),this._progressHandlers.delete(d),this._cleanupTimeout(d),this._transport?.send({jsonrpc:`2.0`,method:`notifications/cancelled`,params:{requestId:d,reason:String(e)}},{relatedRequestId:r,resumptionToken:i,onresumptiontoken:a}).catch(e=>this._onerror(Error(`Failed to send cancellation: ${e}`))),l(e instanceof z9?e:new z9(N7.RequestTimeout,String(e)))};this._responseHandlers.set(d,e=>{if(!n?.signal?.aborted){if(e instanceof Error)return l(e);try{let n=i3(t,e.result);n.success?c(n.data):l(n.error)}catch(e){l(e)}}}),n?.signal?.addEventListener(`abort`,()=>{p(n?.signal?.reason)});let m=n?.timeout??6e4;this._setupTimeout(d,m,n?.maxTotalTimeout,()=>p(z9.fromError(N7.RequestTimeout,`Request timed out`,{timeout:m})),n?.resetTimeoutOnProgress??!1);let h=s?.taskId;h?(this._requestResolvers.set(d,e=>{let t=this._responseHandlers.get(d);t?t(e):this._onerror(Error(`Response handler missing for side-channeled request ${d}`))}),this._enqueueTaskMessage(h,{type:`request`,message:f,timestamp:Date.now()}).catch(e=>{this._cleanupTimeout(d),l(e)})):this._transport.send(f,{relatedRequestId:r,resumptionToken:i,onresumptiontoken:a}).catch(e=>{this._cleanupTimeout(d),l(e)})})}async getTask(e,t){return this.request({method:`tasks/get`,params:e},u9,t)}async getTaskResult(e,t,n){return this.request({method:`tasks/result`,params:e},t,n)}async listTasks(e,t){return this.request({method:`tasks/list`,params:e},p9,t)}async cancelTask(e,t){return this.request({method:`tasks/cancel`,params:e},Xee,t)}async notification(e,t){if(!this._transport)throw Error(`Not connected`);this.assertNotificationCapability(e.method);let n=t?.relatedTask?.taskId;if(n){let r={...e,jsonrpc:`2.0`,params:{...e.params,_meta:{...e.params?._meta||{},[f7]:t.relatedTask}}};await this._enqueueTaskMessage(n,{type:`notification`,message:r,timestamp:Date.now()});return}if((this._options?.debouncedNotificationMethods??[]).includes(e.method)&&!e.params&&!t?.relatedRequestId&&!t?.relatedTask){if(this._pendingDebouncedNotifications.has(e.method))return;this._pendingDebouncedNotifications.add(e.method),Promise.resolve().then(()=>{if(this._pendingDebouncedNotifications.delete(e.method),!this._transport)return;let n={...e,jsonrpc:`2.0`};t?.relatedTask&&(n={...n,params:{...n.params,_meta:{...n.params?._meta||{},[f7]:t.relatedTask}}}),this._transport?.send(n,t).catch(e=>this._onerror(e))});return}let r={...e,jsonrpc:`2.0`};t?.relatedTask&&(r={...r,params:{...r.params,_meta:{...r.params?._meta||{},[f7]:t.relatedTask}}}),await this._transport.send(r,t)}setRequestHandler(e,t){let n=V9(e);this.assertRequestHandlerCapability(n),this._requestHandlers.set(n,(n,r)=>{let i=H9(e,n);return Promise.resolve(t(i,r))})}removeRequestHandler(e){this._requestHandlers.delete(e)}assertCanSetRequestHandler(e){if(this._requestHandlers.has(e))throw Error(`A request handler for ${e} already exists, which would be overridden`)}setNotificationHandler(e,t){let n=V9(e);this._notificationHandlers.set(n,n=>{let r=H9(e,n);return Promise.resolve(t(r))})}removeNotificationHandler(e){this._notificationHandlers.delete(e)}_cleanupTaskProgressHandler(e){let t=this._taskProgressTokens.get(e);t!==void 0&&(this._progressHandlers.delete(t),this._taskProgressTokens.delete(e))}async _enqueueTaskMessage(e,t,n){if(!this._taskStore||!this._taskMessageQueue)throw Error(`Cannot enqueue task message: taskStore and taskMessageQueue are not configured`);let r=this._options?.maxTaskQueueSize;await this._taskMessageQueue.enqueue(e,t,n,r)}async _clearTaskQueue(e,t){if(this._taskMessageQueue){let n=await this._taskMessageQueue.dequeueAll(e,t);for(let t of n)if(t.type===`request`&&O7(t.message)){let n=t.message.id,r=this._requestResolvers.get(n);r?(r(new z9(N7.InternalError,`Task cancelled or completed`)),this._requestResolvers.delete(n)):this._onerror(Error(`Resolver missing for request ${n} during task ${e} cleanup`))}}}async _waitForTaskUpdate(e,t){let n=this._options?.defaultTaskPollInterval??1e3;try{let t=await this._taskStore?.getTask(e);t?.pollInterval&&(n=t.pollInterval)}catch{}return new Promise((e,r)=>{if(t.aborted){r(new z9(N7.InvalidRequest,`Request cancelled`));return}let i=setTimeout(e,n);t.addEventListener(`abort`,()=>{clearTimeout(i),r(new z9(N7.InvalidRequest,`Request cancelled`))},{once:!0})})}requestTaskStore(e,t){let n=this._taskStore;if(!n)throw Error(`No task store configured`);return{createTask:async r=>{if(!e)throw Error(`No request provided`);return await n.createTask(r,e.id,{method:e.method,params:e.params},t)},getTask:async e=>{let r=await n.getTask(e,t);if(!r)throw new z9(N7.InvalidParams,`Failed to retrieve task: Task not found`);return r},storeTaskResult:async(e,r,i)=>{await n.storeTaskResult(e,r,i,t);let a=await n.getTask(e,t);if(a){let t=c9.parse({method:`notifications/tasks/status`,params:a});await this.notification(t),B9(a.status)&&this._cleanupTaskProgressHandler(e)}},getTaskResult:e=>n.getTaskResult(e,t),updateTaskStatus:async(e,r,i)=>{let a=await n.getTask(e,t);if(!a)throw new z9(N7.InvalidParams,`Task "${e}" not found - it may have been cleaned up`);if(B9(a.status))throw new z9(N7.InvalidParams,`Cannot update task "${e}" from terminal status "${a.status}" to "${r}". Terminal states (completed, failed, cancelled) cannot transition to other states.`);await n.updateTaskStatus(e,r,i,t);let o=await n.getTask(e,t);if(o){let t=c9.parse({method:`notifications/tasks/status`,params:o});await this.notification(t),B9(o.status)&&this._cleanupTaskProgressHandler(e)}},listTasks:e=>n.listTasks(e,t)}}};function U9(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function ine(e,t){let n={...e};for(let e in t){let r=e,i=t[r];if(i===void 0)continue;let a=n[r];n[r]=U9(a)&&U9(i)?{...a,...i}:i}return n}var ane=`modulepreload`,one=function(e,t){return new URL(e,t).href},W9={},sne=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=document.getElementsByTagName(`link`),i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}function s(e){return import.meta.resolve?import.meta.resolve(e):new URL(e,import.meta.url).href}r=o(t.map(t=>{if(t=one(t,n),t=s(t),t in W9)return;W9[t]=!0;let r=t.endsWith(`.css`);for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.href===t&&(!r||i.rel===`stylesheet`))return}let i=document.createElement(`link`);if(i.rel=r?`stylesheet`:ane,r||(i.as=`script`),i.crossOrigin=``,i.href=t,a&&i.setAttribute(`nonce`,a),document.head.appendChild(i),r)return new Promise((e,n)=>{i.addEventListener(`load`,e),i.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${t}`)))})}))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})};d7(),(e=>typeof d<`u`?d:typeof Proxy<`u`?new Proxy(e,{get:(e,t)=>(typeof d<`u`?d:e)[t]}):e)(function(e){if(typeof d<`u`)return d.apply(this,arguments);throw Error(`Dynamic require of "`+e+`" is not supported`)});var cne=class extends rne{_registeredMethods=new Set;_eventSlots=new Map;onEventDispatch(e,t){}_ensureEventSlot(e){let t=this._eventSlots.get(e);if(!t){let n=this.eventSchemas[e];if(!n)throw Error(`Unknown event: ${String(e)}`);t={listeners:[]},this._eventSlots.set(e,t);let r=n.shape.method.value;this._registeredMethods.add(r);let i=t;super.setNotificationHandler(n,t=>{let n=t.params;this.onEventDispatch(e,n),i.onHandler?.(n);for(let e of[...i.listeners])e(n)})}return t}setEventHandler(e,t){let n=this._ensureEventSlot(e);n.onHandler&&t&&console.warn(`[MCP Apps] on${String(e)} handler replaced. Use addEventListener("${String(e)}", …) to add multiple listeners without replacing.`),n.onHandler=t}getEventHandler(e){return this._eventSlots.get(e)?.onHandler}addEventListener(e,t){this._ensureEventSlot(e).listeners.push(t)}removeEventListener(e,t){let n=this._eventSlots.get(e);if(!n)return;let r=n.listeners.indexOf(t);r!==-1&&n.listeners.splice(r,1)}setRequestHandler=(e,t)=>{this._assertMethodNotRegistered(e,`setRequestHandler`),super.setRequestHandler(e,t)};setNotificationHandler=(e,t)=>{this._assertMethodNotRegistered(e,`setNotificationHandler`),super.setNotificationHandler(e,t)};warnIfRequestHandlerReplaced(e,t,n){t&&n&&console.warn(`[MCP Apps] ${e} handler replaced. Previous handler will no longer be called.`)}replaceRequestHandler=(e,t)=>{let n=e.shape.method.value;this._registeredMethods.add(n),super.setRequestHandler(e,t)};_assertMethodNotRegistered(e,t){let n=e.shape.method.value;if(this._registeredMethods.has(n))throw Error(`Handler for "${n}" already registered (via ${t}). Use addEventListener() to attach multiple listeners, or the on* setter for replace semantics.`);this._registeredMethods.add(n)}},lne=`2026-01-26`,G9=class{eventTarget;eventSource;messageListener;constructor(e=window.parent,t){this.eventTarget=e,this.eventSource=t,this.messageListener=e=>{if(t&&e.source!==this.eventSource){console.debug(`Ignoring message from unknown source`,e);return}let n=I7.safeParse(e.data);n.success?(console.debug(`Parsed message`,n.data),this.onmessage?.(n.data)):e.data?.jsonrpc===`2.0`?(console.error(`Failed to parse message`,n.error.message,e),this.onerror?.(Error(`Invalid JSON-RPC message received: `+n.error.message))):console.debug(`Ignoring non-JSON-RPC message`,n.error.message,e)}}async start(){window.addEventListener(`message`,this.messageListener)}async send(e,t){e.method!==`ui/notifications/tool-input-partial`&&console.debug(`Sending message`,e),this.eventTarget.postMessage(e,`*`)}async close(){window.removeEventListener(`message`,this.messageListener),this.onclose?.()}onclose;onerror;onmessage;sessionId;setProtocolVersion},une=P6([Q(`light`),Q(`dark`)]).describe(`Color theme preference for the host environment.`),K9=P6([Q(`inline`),Q(`fullscreen`),Q(`pip`)]).describe(`Display mode for UI presentation.`),dne=z6(P6([Q(`--color-background-primary`),Q(`--color-background-secondary`),Q(`--color-background-tertiary`),Q(`--color-background-inverse`),Q(`--color-background-ghost`),Q(`--color-background-info`),Q(`--color-background-danger`),Q(`--color-background-success`),Q(`--color-background-warning`),Q(`--color-background-disabled`),Q(`--color-text-primary`),Q(`--color-text-secondary`),Q(`--color-text-tertiary`),Q(`--color-text-inverse`),Q(`--color-text-ghost`),Q(`--color-text-info`),Q(`--color-text-danger`),Q(`--color-text-success`),Q(`--color-text-warning`),Q(`--color-text-disabled`),Q(`--color-border-primary`),Q(`--color-border-secondary`),Q(`--color-border-tertiary`),Q(`--color-border-inverse`),Q(`--color-border-ghost`),Q(`--color-border-info`),Q(`--color-border-danger`),Q(`--color-border-success`),Q(`--color-border-warning`),Q(`--color-border-disabled`),Q(`--color-ring-primary`),Q(`--color-ring-secondary`),Q(`--color-ring-inverse`),Q(`--color-ring-info`),Q(`--color-ring-danger`),Q(`--color-ring-success`),Q(`--color-ring-warning`),Q(`--font-sans`),Q(`--font-mono`),Q(`--font-weight-normal`),Q(`--font-weight-medium`),Q(`--font-weight-semibold`),Q(`--font-weight-bold`),Q(`--font-text-xs-size`),Q(`--font-text-sm-size`),Q(`--font-text-md-size`),Q(`--font-text-lg-size`),Q(`--font-heading-xs-size`),Q(`--font-heading-sm-size`),Q(`--font-heading-md-size`),Q(`--font-heading-lg-size`),Q(`--font-heading-xl-size`),Q(`--font-heading-2xl-size`),Q(`--font-heading-3xl-size`),Q(`--font-text-xs-line-height`),Q(`--font-text-sm-line-height`),Q(`--font-text-md-line-height`),Q(`--font-text-lg-line-height`),Q(`--font-heading-xs-line-height`),Q(`--font-heading-sm-line-height`),Q(`--font-heading-md-line-height`),Q(`--font-heading-lg-line-height`),Q(`--font-heading-xl-line-height`),Q(`--font-heading-2xl-line-height`),Q(`--font-heading-3xl-line-height`),Q(`--border-radius-xs`),Q(`--border-radius-sm`),Q(`--border-radius-md`),Q(`--border-radius-lg`),Q(`--border-radius-xl`),Q(`--border-radius-full`),Q(`--border-width-regular`),Q(`--shadow-hairline`),Q(`--shadow-sm`),Q(`--shadow-md`),Q(`--shadow-lg`)]).describe(`CSS variable keys available to MCP apps for theming.`).describe(`Style variables for theming MCP apps. +Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let n of e.seen.entries()){let r=n[1];if(t===n[0]){a(n);continue}if(e.external){let r=e.external.registry.get(n[0])?.id;if(t!==n[0]&&r){a(n);continue}}if(e.metadataRegistry.get(n[0])?.id){a(n);continue}if(r.cycle){a(n);continue}if(r.count>1&&e.reused===`ref`){a(n);continue}}}function u4(e,t){let n=e.seen.get(t);if(!n)throw Error(`Unprocessed schema. This is a bug in Zod.`);let r=t=>{let n=e.seen.get(t);if(n.ref===null)return;let i=n.def??n.schema,a={...i},o=n.ref;if(n.ref=null,o){r(o);let n=e.seen.get(o),s=n.schema;if(s.$ref&&(e.target===`draft-07`||e.target===`draft-04`||e.target===`openapi-3.0`)?(i.allOf=i.allOf??[],i.allOf.push(s)):Object.assign(i,s),Object.assign(i,a),t._zod.parent===o)for(let e in i)e!==`$ref`&&e!==`allOf`&&(e in a||delete i[e]);if(s.$ref&&n.def)for(let e in i)e!==`$ref`&&e!==`allOf`&&e in n.def&&JSON.stringify(i[e])===JSON.stringify(n.def[e])&&delete i[e]}let s=t._zod.parent;if(s&&s!==o){r(s);let t=e.seen.get(s);if(t?.schema.$ref&&(i.$ref=t.schema.$ref,t.def))for(let e in i)e!==`$ref`&&e!==`allOf`&&e in t.def&&JSON.stringify(i[e])===JSON.stringify(t.def[e])&&delete i[e]}e.override({zodSchema:t,jsonSchema:i,path:n.path??[]})};for(let t of[...e.seen.entries()].reverse())r(t[0]);let i={};if(e.target===`draft-2020-12`?i.$schema=`https://json-schema.org/draft/2020-12/schema`:e.target===`draft-07`?i.$schema=`http://json-schema.org/draft-07/schema#`:e.target===`draft-04`?i.$schema=`http://json-schema.org/draft-04/schema#`:e.target,e.external?.uri){let n=e.external.registry.get(t)?.id;if(!n)throw Error("Schema is missing an `id` property");i.$id=e.external.uri(n)}Object.assign(i,n.def??n.schema);let a=e.metadataRegistry.get(t)?.id;a!==void 0&&i.id===a&&delete i.id;let o=e.external?.defs??{};for(let t of e.seen.entries()){let e=t[1];e.def&&e.defId&&(e.def.id===e.defId&&delete e.def.id,o[e.defId]=e.def)}e.external||Object.keys(o).length>0&&(e.target===`draft-2020-12`?i.$defs=o:i.definitions=o);try{let n=JSON.parse(JSON.stringify(i));return Object.defineProperty(n,"~standard",{value:{...t[`~standard`],jsonSchema:{input:p4(t,`input`,e.processors),output:p4(t,`output`,e.processors)}},enumerable:!1,writable:!1}),n}catch{throw Error(`Error converting schema to JSON.`)}}function d4(e,t){let n=t??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);let r=e._zod.def;if(r.type===`transform`)return!0;if(r.type===`array`)return d4(r.element,n);if(r.type===`set`)return d4(r.valueType,n);if(r.type===`lazy`)return d4(r.getter(),n);if(r.type===`promise`||r.type===`optional`||r.type===`nonoptional`||r.type===`nullable`||r.type===`readonly`||r.type==="default"||r.type===`prefault`)return d4(r.innerType,n);if(r.type===`intersection`)return d4(r.left,n)||d4(r.right,n);if(r.type===`record`||r.type===`map`)return d4(r.keyType,n)||d4(r.valueType,n);if(r.type===`pipe`)return e._zod.traits.has(`$ZodCodec`)?!0:d4(r.in,n)||d4(r.out,n);if(r.type===`object`){for(let e in r.shape)if(d4(r.shape[e],n))return!0;return!1}if(r.type===`union`){for(let e of r.options)if(d4(e,n))return!0;return!1}if(r.type===`tuple`){for(let e of r.items)if(d4(e,n))return!0;return!!(r.rest&&d4(r.rest,n))}return!1}var f4,p4,m4=o((()=>{Q1(),f4=(e,t={})=>n=>{let r=s4({...n,processors:t});return c4(e,r),l4(r,e),u4(r,e)},p4=(e,t,n={})=>r=>{let{libraryOptions:i,target:a}=r??{},o=s4({...i??{},target:a,io:t,processors:n});return c4(e,o),l4(o,e),u4(o,e)}}));function h4(e,t){if(`_idmap`in e){let n=e,r=s4({...t,processors:n3}),i={};for(let e of n._idmap.entries()){let[t,n]=e;c4(n,r)}let a={};r.external={registry:n,uri:t?.uri,defs:i};for(let e of n._idmap.entries()){let[t,n]=e;l4(r,n),a[t]=u4(r,n)}return Object.keys(i).length>0&&(a.__shared={[r.target===`draft-2020-12`?`$defs`:`definitions`]:i}),{schemas:a}}let n=s4({...t,processors:n3});return c4(e,n),l4(n,e),u4(n,e)}var g4,_4,v4,y4,b4,x4,S4,C4,w4,T4,E4,D4,O4,k4,A4,j4,M4,N4,P4,F4,I4,L4,R4,z4,B4,V4,H4,U4,W4,G4,K4,q4,J4,Y4,X4,Z4,Q4,$4,e3,t3,n3,r3=o((()=>{m4(),Nq(),g4={guid:`uuid`,url:`uri`,datetime:`date-time`,json_string:`json-string`,regex:``},_4=(e,t,n,r)=>{let i=n;i.type=`string`;let{minimum:a,maximum:o,format:s,patterns:c,contentEncoding:l}=e._zod.bag;if(typeof a==`number`&&(i.minLength=a),typeof o==`number`&&(i.maxLength=o),s&&(i.format=g4[s]??s,i.format===``&&delete i.format,s===`time`&&delete i.format),l&&(i.contentEncoding=l),c&&c.size>0){let e=[...c];e.length===1?i.pattern=e[0].source:e.length>1&&(i.allOf=[...e.map(e=>({...t.target===`draft-07`||t.target===`draft-04`||t.target===`openapi-3.0`?{type:`string`}:{},pattern:e.source}))])}},v4=(e,t,n,r)=>{let i=n,{minimum:a,maximum:o,format:s,multipleOf:c,exclusiveMaximum:l,exclusiveMinimum:u}=e._zod.bag;i.type=typeof s==`string`&&s.includes(`int`)?`integer`:`number`;let d=typeof u==`number`&&u>=(a??-1/0),f=typeof l==`number`&&l<=(o??1/0),p=t.target===`draft-04`||t.target===`openapi-3.0`;d?p?(i.minimum=u,i.exclusiveMinimum=!0):i.exclusiveMinimum=u:typeof a==`number`&&(i.minimum=a),f?p?(i.maximum=l,i.exclusiveMaximum=!0):i.exclusiveMaximum=l:typeof o==`number`&&(i.maximum=o),typeof c==`number`&&(i.multipleOf=c)},y4=(e,t,n,r)=>{n.type=`boolean`},b4=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`BigInt cannot be represented in JSON Schema`)},x4=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Symbols cannot be represented in JSON Schema`)},S4=(e,t,n,r)=>{t.target===`openapi-3.0`?(n.type=`string`,n.nullable=!0,n.enum=[null]):n.type=`null`},C4=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Undefined cannot be represented in JSON Schema`)},w4=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Void cannot be represented in JSON Schema`)},T4=(e,t,n,r)=>{n.not={}},E4=(e,t,n,r)=>{},D4=(e,t,n,r)=>{},O4=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Date cannot be represented in JSON Schema`)},k4=(e,t,n,r)=>{let i=e._zod.def,a=AK(i.entries);a.every(e=>typeof e==`number`)&&(n.type=`number`),a.every(e=>typeof e==`string`)&&(n.type=`string`),n.enum=a},A4=(e,t,n,r)=>{let i=e._zod.def,a=[];for(let e of i.values)if(e===void 0){if(t.unrepresentable===`throw`)throw Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof e==`bigint`){if(t.unrepresentable===`throw`)throw Error(`BigInt literals cannot be represented in JSON Schema`);a.push(Number(e))}else a.push(e);if(a.length!==0)if(a.length===1){let e=a[0];n.type=e===null?`null`:typeof e,t.target===`draft-04`||t.target===`openapi-3.0`?n.enum=[e]:n.const=e}else a.every(e=>typeof e==`number`)&&(n.type=`number`),a.every(e=>typeof e==`string`)&&(n.type=`string`),a.every(e=>typeof e==`boolean`)&&(n.type=`boolean`),a.every(e=>e===null)&&(n.type=`null`),n.enum=a},j4=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`NaN cannot be represented in JSON Schema`)},M4=(e,t,n,r)=>{let i=n,a=e._zod.pattern;if(!a)throw Error(`Pattern not found in template literal`);i.type=`string`,i.pattern=a.source},N4=(e,t,n,r)=>{let i=n,a={type:`string`,format:`binary`,contentEncoding:`binary`},{minimum:o,maximum:s,mime:c}=e._zod.bag;o!==void 0&&(a.minLength=o),s!==void 0&&(a.maxLength=s),c?c.length===1?(a.contentMediaType=c[0],Object.assign(i,a)):(Object.assign(i,a),i.anyOf=c.map(e=>({contentMediaType:e}))):Object.assign(i,a)},P4=(e,t,n,r)=>{n.type=`boolean`},F4=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Custom types cannot be represented in JSON Schema`)},I4=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Function types cannot be represented in JSON Schema`)},L4=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Transforms cannot be represented in JSON Schema`)},R4=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Map cannot be represented in JSON Schema`)},z4=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Set cannot be represented in JSON Schema`)},B4=(e,t,n,r)=>{let i=n,a=e._zod.def,{minimum:o,maximum:s}=e._zod.bag;typeof o==`number`&&(i.minItems=o),typeof s==`number`&&(i.maxItems=s),i.type=`array`,i.items=c4(a.element,t,{...r,path:[...r.path,`items`]})},V4=(e,t,n,r)=>{let i=n,a=e._zod.def;i.type=`object`,i.properties={};let o=a.shape;for(let e in o)i.properties[e]=c4(o[e],t,{...r,path:[...r.path,`properties`,e]});let s=new Set(Object.keys(o)),c=new Set([...s].filter(e=>{let n=a.shape[e]._zod;return t.io===`input`?n.optin===void 0:n.optout===void 0}));c.size>0&&(i.required=Array.from(c)),a.catchall?._zod.def.type===`never`?i.additionalProperties=!1:a.catchall?a.catchall&&(i.additionalProperties=c4(a.catchall,t,{...r,path:[...r.path,`additionalProperties`]})):t.io===`output`&&(i.additionalProperties=!1)},H4=(e,t,n,r)=>{let i=e._zod.def,a=i.inclusive===!1,o=i.options.map((e,n)=>c4(e,t,{...r,path:[...r.path,a?`oneOf`:`anyOf`,n]}));a?n.oneOf=o:n.anyOf=o},U4=(e,t,n,r)=>{let i=e._zod.def,a=c4(i.left,t,{...r,path:[...r.path,`allOf`,0]}),o=c4(i.right,t,{...r,path:[...r.path,`allOf`,1]}),s=e=>`allOf`in e&&Object.keys(e).length===1;n.allOf=[...s(a)?a.allOf:[a],...s(o)?o.allOf:[o]]},W4=(e,t,n,r)=>{let i=n,a=e._zod.def;i.type=`array`;let o=t.target===`draft-2020-12`?`prefixItems`:`items`,s=t.target===`draft-2020-12`||t.target===`openapi-3.0`?`items`:`additionalItems`,c=a.items.map((e,n)=>c4(e,t,{...r,path:[...r.path,o,n]})),l=a.rest?c4(a.rest,t,{...r,path:[...r.path,s,...t.target===`openapi-3.0`?[a.items.length]:[]]}):null;t.target===`draft-2020-12`?(i.prefixItems=c,l&&(i.items=l)):t.target===`openapi-3.0`?(i.items={anyOf:c},l&&i.items.anyOf.push(l),i.minItems=c.length,l||(i.maxItems=c.length)):(i.items=c,l&&(i.additionalItems=l));let{minimum:u,maximum:d}=e._zod.bag;typeof u==`number`&&(i.minItems=u),typeof d==`number`&&(i.maxItems=d)},G4=(e,t,n,r)=>{let i=n,a=e._zod.def;i.type=`object`;let o=a.keyType,s=o._zod.bag?.patterns;if(a.mode===`loose`&&s&&s.size>0){let e=c4(a.valueType,t,{...r,path:[...r.path,`patternProperties`,`*`]});i.patternProperties={};for(let t of s)i.patternProperties[t.source]=e}else(t.target===`draft-07`||t.target===`draft-2020-12`)&&(i.propertyNames=c4(a.keyType,t,{...r,path:[...r.path,`propertyNames`]})),i.additionalProperties=c4(a.valueType,t,{...r,path:[...r.path,`additionalProperties`]});let c=o._zod.values;if(c){let e=[...c].filter(e=>typeof e==`string`||typeof e==`number`);e.length>0&&(i.required=e)}},K4=(e,t,n,r)=>{let i=e._zod.def,a=c4(i.innerType,t,r),o=t.seen.get(e);t.target===`openapi-3.0`?(o.ref=i.innerType,n.nullable=!0):n.anyOf=[a,{type:`null`}]},q4=(e,t,n,r)=>{let i=e._zod.def;c4(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},J4=(e,t,n,r)=>{let i=e._zod.def;c4(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,n.default=JSON.parse(JSON.stringify(i.defaultValue))},Y4=(e,t,n,r)=>{let i=e._zod.def;c4(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,t.io===`input`&&(n._prefault=JSON.parse(JSON.stringify(i.defaultValue)))},X4=(e,t,n,r)=>{let i=e._zod.def;c4(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType;let o;try{o=i.catchValue(void 0)}catch{throw Error(`Dynamic catch values are not supported in JSON Schema`)}n.default=o},Z4=(e,t,n,r)=>{let i=e._zod.def,a=i.in._zod.traits.has(`$ZodTransform`),o=t.io===`input`?a?i.out:i.in:i.out;c4(o,t,r);let s=t.seen.get(e);s.ref=o},Q4=(e,t,n,r)=>{let i=e._zod.def;c4(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,n.readOnly=!0},$4=(e,t,n,r)=>{let i=e._zod.def;c4(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},e3=(e,t,n,r)=>{let i=e._zod.def;c4(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},t3=(e,t,n,r)=>{let i=e._zod.innerType;c4(i,t,r);let a=t.seen.get(e);a.ref=i},n3={string:_4,number:v4,boolean:y4,bigint:b4,symbol:x4,null:S4,undefined:C4,void:w4,never:T4,any:E4,unknown:D4,date:O4,enum:k4,literal:A4,nan:j4,template_literal:M4,file:N4,success:P4,custom:F4,function:I4,transform:L4,map:R4,set:z4,array:B4,object:V4,union:H4,intersection:U4,tuple:W4,record:G4,nullable:K4,nonoptional:q4,default:J4,prefault:Y4,catch:X4,pipe:Z4,readonly:Q4,promise:$4,optional:e3,lazy:t3}})),i3,a3=o((()=>{r3(),m4(),i3=class{get metadataRegistry(){return this.ctx.metadataRegistry}get target(){return this.ctx.target}get unrepresentable(){return this.ctx.unrepresentable}get override(){return this.ctx.override}get io(){return this.ctx.io}get counter(){return this.ctx.counter}set counter(e){this.ctx.counter=e}get seen(){return this.ctx.seen}constructor(e){let t=e?.target??`draft-2020-12`;t===`draft-4`&&(t=`draft-04`),t===`draft-7`&&(t=`draft-07`),this.ctx=s4({processors:n3,target:t,...e?.metadata&&{metadata:e.metadata},...e?.unrepresentable&&{unrepresentable:e.unrepresentable},...e?.override&&{override:e.override},...e?.io&&{io:e.io}})}process(e,t={path:[],schemaPath:[]}){return c4(e,this.ctx,t)}emit(e,t){t&&(t.cycles&&(this.ctx.cycles=t.cycles),t.reused&&(this.ctx.reused=t.reused),t.external&&(this.ctx.external=t.external)),l4(this.ctx,e);let{"~standard":n,...r}=u4(this.ctx,e);return r}}})),o3=c({}),s3=o((()=>{})),c3=c({$ZodAny:()=>sZ,$ZodArray:()=>fZ,$ZodAsyncError:()=>bK,$ZodBase64:()=>JX,$ZodBase64URL:()=>YX,$ZodBigInt:()=>nZ,$ZodBigIntFormat:()=>rZ,$ZodBoolean:()=>tZ,$ZodCIDRv4:()=>KX,$ZodCIDRv6:()=>qX,$ZodCUID:()=>PX,$ZodCUID2:()=>FX,$ZodCatch:()=>PZ,$ZodCheck:()=>DY,$ZodCheckBigIntFormat:()=>NY,$ZodCheckEndsWith:()=>KY,$ZodCheckGreaterThan:()=>AY,$ZodCheckIncludes:()=>WY,$ZodCheckLengthEquals:()=>zY,$ZodCheckLessThan:()=>kY,$ZodCheckLowerCase:()=>HY,$ZodCheckMaxLength:()=>LY,$ZodCheckMaxSize:()=>PY,$ZodCheckMimeType:()=>JY,$ZodCheckMinLength:()=>RY,$ZodCheckMinSize:()=>FY,$ZodCheckMultipleOf:()=>jY,$ZodCheckNumberFormat:()=>MY,$ZodCheckOverwrite:()=>YY,$ZodCheckProperty:()=>qY,$ZodCheckRegex:()=>VY,$ZodCheckSizeEquals:()=>IY,$ZodCheckStartsWith:()=>GY,$ZodCheckStringFormat:()=>BY,$ZodCheckUpperCase:()=>UY,$ZodCodec:()=>LZ,$ZodCustom:()=>WZ,$ZodCustomStringFormat:()=>QX,$ZodDate:()=>dZ,$ZodDefault:()=>AZ,$ZodDiscriminatedUnion:()=>_Z,$ZodE164:()=>XX,$ZodEmail:()=>AX,$ZodEmoji:()=>MX,$ZodEncodeError:()=>xK,$ZodEnum:()=>CZ,$ZodError:()=>Bq,$ZodExactOptional:()=>OZ,$ZodFile:()=>TZ,$ZodFunction:()=>VZ,$ZodGUID:()=>OX,$ZodIPv4:()=>UX,$ZodIPv6:()=>WX,$ZodISODate:()=>BX,$ZodISODateTime:()=>zX,$ZodISODuration:()=>HX,$ZodISOTime:()=>VX,$ZodIntersection:()=>vZ,$ZodJWT:()=>ZX,$ZodKSUID:()=>RX,$ZodLazy:()=>UZ,$ZodLiteral:()=>wZ,$ZodMAC:()=>GX,$ZodMap:()=>xZ,$ZodNaN:()=>FZ,$ZodNanoID:()=>NX,$ZodNever:()=>lZ,$ZodNonOptional:()=>MZ,$ZodNull:()=>oZ,$ZodNullable:()=>kZ,$ZodNumber:()=>$X,$ZodNumberFormat:()=>eZ,$ZodObject:()=>pZ,$ZodObjectJIT:()=>mZ,$ZodOptional:()=>DZ,$ZodPipe:()=>IZ,$ZodPrefault:()=>jZ,$ZodPreprocess:()=>RZ,$ZodPromise:()=>HZ,$ZodReadonly:()=>zZ,$ZodRealError:()=>Vq,$ZodRecord:()=>bZ,$ZodRegistry:()=>X1,$ZodSet:()=>SZ,$ZodString:()=>EX,$ZodStringFormat:()=>DX,$ZodSuccess:()=>NZ,$ZodSymbol:()=>iZ,$ZodTemplateLiteral:()=>BZ,$ZodTransform:()=>EZ,$ZodTuple:()=>yZ,$ZodType:()=>TX,$ZodULID:()=>IX,$ZodURL:()=>jX,$ZodUUID:()=>kX,$ZodUndefined:()=>aZ,$ZodUnion:()=>hZ,$ZodUnknown:()=>cZ,$ZodVoid:()=>uZ,$ZodXID:()=>LX,$ZodXor:()=>gZ,$brand:()=>yK,$constructor:()=>q,$input:()=>Y1,$output:()=>J1,Doc:()=>ZY,JSONSchema:()=>o3,JSONSchemaGenerator:()=>i3,NEVER:()=>vK,TimePrecision:()=>a4,_any:()=>W0,_array:()=>E2,_base64:()=>b0,_base64url:()=>x0,_bigint:()=>L0,_boolean:()=>F0,_catch:()=>G2,_check:()=>e4,_cidrv4:()=>v0,_cidrv6:()=>y0,_coercedBigint:()=>R0,_coercedBoolean:()=>I0,_coercedDate:()=>Y0,_coercedNumber:()=>k0,_coercedString:()=>e0,_cuid:()=>u0,_cuid2:()=>d0,_custom:()=>Z2,_date:()=>J0,_decode:()=>$q,_decodeAsync:()=>rJ,_default:()=>H2,_discriminatedUnion:()=>k2,_e164:()=>S0,_email:()=>t0,_emoji:()=>c0,_encode:()=>Zq,_encodeAsync:()=>tJ,_endsWith:()=>_2,_enum:()=>F2,_file:()=>R2,_float32:()=>j0,_float64:()=>M0,_gt:()=>$0,_gte:()=>e2,_guid:()=>n0,_includes:()=>h2,_int:()=>A0,_int32:()=>N0,_int64:()=>z0,_intersection:()=>A2,_ipv4:()=>h0,_ipv6:()=>g0,_isoDate:()=>T0,_isoDateTime:()=>w0,_isoDuration:()=>D0,_isoTime:()=>E0,_jwt:()=>C0,_ksuid:()=>m0,_lazy:()=>Y2,_length:()=>d2,_literal:()=>L2,_lowercase:()=>p2,_lt:()=>Z0,_lte:()=>Q0,_mac:()=>_0,_map:()=>N2,_max:()=>Q0,_maxLength:()=>l2,_maxSize:()=>o2,_mime:()=>y2,_min:()=>e2,_minLength:()=>u2,_minSize:()=>s2,_multipleOf:()=>a2,_nan:()=>X0,_nanoid:()=>l0,_nativeEnum:()=>I2,_negative:()=>n2,_never:()=>K0,_nonnegative:()=>i2,_nonoptional:()=>U2,_nonpositive:()=>r2,_normalize:()=>x2,_null:()=>U0,_nullable:()=>V2,_number:()=>O0,_optional:()=>B2,_overwrite:()=>b2,_parse:()=>Uq,_parseAsync:()=>Gq,_pipe:()=>K2,_positive:()=>t2,_promise:()=>X2,_property:()=>v2,_readonly:()=>q2,_record:()=>M2,_refine:()=>Q2,_regex:()=>f2,_safeDecode:()=>sJ,_safeDecodeAsync:()=>dJ,_safeEncode:()=>aJ,_safeEncodeAsync:()=>lJ,_safeParse:()=>qq,_safeParseAsync:()=>Yq,_set:()=>P2,_size:()=>c2,_slugify:()=>T2,_startsWith:()=>g2,_string:()=>$1,_stringFormat:()=>i4,_stringbool:()=>r4,_success:()=>W2,_superRefine:()=>$2,_symbol:()=>V0,_templateLiteral:()=>J2,_toLowerCase:()=>C2,_toUpperCase:()=>w2,_transform:()=>z2,_trim:()=>S2,_tuple:()=>j2,_uint32:()=>P0,_uint64:()=>B0,_ulid:()=>f0,_undefined:()=>H0,_union:()=>D2,_unknown:()=>G0,_uppercase:()=>m2,_url:()=>s0,_uuid:()=>r0,_uuidv4:()=>i0,_uuidv6:()=>a0,_uuidv7:()=>o0,_void:()=>q0,_xid:()=>p0,_xor:()=>O2,clone:()=>ZK,config:()=>gK,createStandardJSONSchemaMethod:()=>p4,createToJSONSchemaMethod:()=>f4,decode:()=>eJ,decodeAsync:()=>iJ,describe:()=>t4,encode:()=>Qq,encodeAsync:()=>nJ,extractDefs:()=>l4,finalize:()=>u4,flattenError:()=>Pq,formatError:()=>Fq,globalConfig:()=>SK,globalRegistry:()=>Z1,initializeContext:()=>s4,isValidBase64:()=>tX,isValidBase64URL:()=>nX,isValidJWT:()=>rX,locales:()=>W1,meta:()=>n4,parse:()=>Wq,parseAsync:()=>Kq,prettifyError:()=>Rq,process:()=>c4,regexes:()=>mJ,registry:()=>K1,safeDecode:()=>cJ,safeDecodeAsync:()=>fJ,safeEncode:()=>oJ,safeEncodeAsync:()=>uJ,safeParse:()=>Jq,safeParseAsync:()=>Xq,toDotPath:()=>Lq,toJSONSchema:()=>h4,treeifyError:()=>Iq,util:()=>wK,version:()=>$Y}),l3=o((()=>{CK(),pJ(),Hq(),GZ(),XY(),eX(),Nq(),TY(),G1(),Q1(),QY(),o4(),m4(),r3(),a3(),s3()}));pJ();function u3(e){return!!e._zod}function d3(e,t){return u3(e)?Jq(e,t):e.safeParse(t)}function f3(e){if(!e)return;let t;if(t=u3(e)?e._zod?.def?.shape:e.shape,t){if(typeof t==`function`)try{return t()}catch{return}return t}}function p3(e){if(u3(e)){let t=e._zod?.def;if(t){if(t.value!==void 0)return t.value;if(Array.isArray(t.values)&&t.values.length>0)return t.values[0]}}let t=e._def;if(t){if(t.value!==void 0)return t.value;if(Array.isArray(t.values)&&t.values.length>0)return t.values[0]}let n=e.value;if(n!==void 0)return n}var m3=c({endsWith:()=>_2,gt:()=>$0,gte:()=>e2,includes:()=>h2,length:()=>d2,lowercase:()=>p2,lt:()=>Z0,lte:()=>Q0,maxLength:()=>l2,maxSize:()=>o2,mime:()=>y2,minLength:()=>u2,minSize:()=>s2,multipleOf:()=>a2,negative:()=>n2,nonnegative:()=>i2,nonpositive:()=>r2,normalize:()=>x2,overwrite:()=>b2,positive:()=>t2,property:()=>v2,regex:()=>f2,size:()=>c2,slugify:()=>T2,startsWith:()=>g2,toLowerCase:()=>C2,toUpperCase:()=>w2,trim:()=>S2,uppercase:()=>m2}),h3=o((()=>{l3()})),g3=c({ZodISODate:()=>S3,ZodISODateTime:()=>x3,ZodISODuration:()=>w3,ZodISOTime:()=>C3,date:()=>v3,datetime:()=>_3,duration:()=>b3,time:()=>y3});function _3(e){return w0(x3,e)}function v3(e){return T0(S3,e)}function y3(e){return E0(C3,e)}function b3(e){return D0(w3,e)}var x3,S3,C3,w3,T3=o((()=>{l3(),K5(),x3=q(`ZodISODateTime`,(e,t)=>{zX.init(e,t),A8.init(e,t)}),S3=q(`ZodISODate`,(e,t)=>{BX.init(e,t),A8.init(e,t)}),C3=q(`ZodISOTime`,(e,t)=>{VX.init(e,t),A8.init(e,t)}),w3=q(`ZodISODuration`,(e,t)=>{HX.init(e,t),A8.init(e,t)})})),E3,D3,O3,k3=o((()=>{l3(),Nq(),E3=(e,t)=>{Bq.init(e,t),e.name=`ZodError`,Object.defineProperties(e,{format:{value:t=>Fq(e,t)},flatten:{value:t=>Pq(e,t)},addIssue:{value:t=>{e.issues.push(t),e.message=JSON.stringify(e.issues,jK,2)}},addIssues:{value:t=>{e.issues.push(...t),e.message=JSON.stringify(e.issues,jK,2)}},isEmpty:{get(){return e.issues.length===0}}})},D3=q(`ZodError`,E3),O3=q(`ZodError`,E3,{Parent:Error})})),A3,j3,M3,N3,P3,F3,I3,L3,R3,z3,B3,V3,H3=o((()=>{l3(),k3(),A3=Uq(O3),j3=Gq(O3),M3=qq(O3),N3=Yq(O3),P3=Zq(O3),F3=$q(O3),I3=tJ(O3),L3=rJ(O3),R3=aJ(O3),z3=sJ(O3),B3=lJ(O3),V3=dJ(O3)})),U3=c({ZodAny:()=>o5,ZodArray:()=>d5,ZodBase64:()=>q8,ZodBase64URL:()=>J8,ZodBigInt:()=>t5,ZodBigIntFormat:()=>n5,ZodBoolean:()=>e5,ZodCIDRv4:()=>G8,ZodCIDRv6:()=>K8,ZodCUID:()=>L8,ZodCUID2:()=>R8,ZodCatch:()=>M5,ZodCodec:()=>F5,ZodCustom:()=>H5,ZodCustomStringFormat:()=>Z8,ZodDate:()=>u5,ZodDefault:()=>O5,ZodDiscriminatedUnion:()=>h5,ZodE164:()=>Y8,ZodEmail:()=>j8,ZodEmoji:()=>F8,ZodEnum:()=>x5,ZodExactOptional:()=>E5,ZodFile:()=>C5,ZodFunction:()=>V5,ZodGUID:()=>M8,ZodIPv4:()=>H8,ZodIPv6:()=>W8,ZodIntersection:()=>g5,ZodJWT:()=>X8,ZodKSUID:()=>V8,ZodLazy:()=>z5,ZodLiteral:()=>S5,ZodMAC:()=>U8,ZodMap:()=>y5,ZodNaN:()=>N5,ZodNanoID:()=>I8,ZodNever:()=>c5,ZodNonOptional:()=>A5,ZodNull:()=>a5,ZodNullable:()=>D5,ZodNumber:()=>Q8,ZodNumberFormat:()=>$8,ZodObject:()=>f5,ZodOptional:()=>T5,ZodPipe:()=>P5,ZodPrefault:()=>k5,ZodPreprocess:()=>I5,ZodPromise:()=>B5,ZodReadonly:()=>L5,ZodRecord:()=>v5,ZodSet:()=>b5,ZodString:()=>k8,ZodStringFormat:()=>A8,ZodSuccess:()=>j5,ZodSymbol:()=>r5,ZodTemplateLiteral:()=>R5,ZodTransform:()=>w5,ZodTuple:()=>_5,ZodType:()=>D8,ZodULID:()=>z8,ZodURL:()=>P8,ZodUUID:()=>N8,ZodUndefined:()=>i5,ZodUnion:()=>p5,ZodUnknown:()=>s5,ZodVoid:()=>l5,ZodXID:()=>B8,ZodXor:()=>m5,_ZodString:()=>O8,_default:()=>a8,_function:()=>v8,any:()=>M6,array:()=>L6,base64:()=>d6,base64url:()=>f6,bigint:()=>E6,boolean:()=>T6,catch:()=>l8,check:()=>y8,cidrv4:()=>l6,cidrv6:()=>u6,codec:()=>f8,cuid:()=>t6,cuid2:()=>n6,custom:()=>b8,date:()=>I6,describe:()=>U5,discriminatedUnion:()=>U6,e164:()=>p6,email:()=>G3,emoji:()=>$3,enum:()=>Z6,exactOptional:()=>n8,file:()=>$6,float32:()=>x6,float64:()=>S6,function:()=>v8,guid:()=>K3,hash:()=>v6,hex:()=>_6,hostname:()=>g6,httpUrl:()=>Q3,instanceof:()=>C8,int:()=>b6,int32:()=>C6,int64:()=>D6,intersection:()=>W6,invertCodec:()=>p8,ipv4:()=>o6,ipv6:()=>c6,json:()=>w8,jwt:()=>m6,keyof:()=>R6,ksuid:()=>a6,lazy:()=>g8,literal:()=>Q,looseObject:()=>B6,looseRecord:()=>J6,mac:()=>s6,map:()=>Y6,meta:()=>W5,nan:()=>u8,nanoid:()=>e6,nativeEnum:()=>Q6,never:()=>P6,nonoptional:()=>s8,null:()=>j6,nullable:()=>r8,nullish:()=>i8,number:()=>y6,object:()=>Z,optional:()=>t8,partialRecord:()=>q6,pipe:()=>d8,prefault:()=>o8,preprocess:()=>T8,promise:()=>_8,readonly:()=>m8,record:()=>K6,refine:()=>x8,set:()=>X6,strictObject:()=>z6,string:()=>X,stringFormat:()=>h6,stringbool:()=>G5,success:()=>c8,superRefine:()=>S8,symbol:()=>k6,templateLiteral:()=>h8,transform:()=>e8,tuple:()=>G6,uint32:()=>w6,uint64:()=>O6,ulid:()=>r6,undefined:()=>A6,union:()=>V6,unknown:()=>N6,url:()=>Z3,uuid:()=>q3,uuidv4:()=>J3,uuidv6:()=>Y3,uuidv7:()=>X3,void:()=>F6,xid:()=>i6,xor:()=>H6});function W3(e,t,n){let r=Object.getPrototypeOf(e),i=E8.get(r);if(i||(i=new Set,E8.set(r,i)),!i.has(t)){i.add(t);for(let e in n){let t=n[e];Object.defineProperty(r,e,{configurable:!0,enumerable:!1,get(){let n=t.bind(this);return Object.defineProperty(this,e,{configurable:!0,writable:!0,enumerable:!0,value:n}),n},set(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,enumerable:!0,value:t})}})}}}function X(e){return $1(k8,e)}function G3(e){return t0(j8,e)}function K3(e){return n0(M8,e)}function q3(e){return r0(N8,e)}function J3(e){return i0(N8,e)}function Y3(e){return a0(N8,e)}function X3(e){return o0(N8,e)}function Z3(e){return s0(P8,e)}function Q3(e){return s0(P8,{protocol:XJ,hostname:YJ,...Y(e)})}function $3(e){return c0(F8,e)}function e6(e){return l0(I8,e)}function t6(e){return u0(L8,e)}function n6(e){return d0(R8,e)}function r6(e){return f0(z8,e)}function i6(e){return p0(B8,e)}function a6(e){return m0(V8,e)}function o6(e){return h0(H8,e)}function s6(e){return _0(U8,e)}function c6(e){return g0(W8,e)}function l6(e){return v0(G8,e)}function u6(e){return y0(K8,e)}function d6(e){return b0(q8,e)}function f6(e){return x0(J8,e)}function p6(e){return S0(Y8,e)}function m6(e){return C0(X8,e)}function h6(e,t,n={}){return i4(Z8,e,t,n)}function g6(e){return i4(Z8,`hostname`,JJ,e)}function _6(e){return i4(Z8,`hex`,lY,e)}function v6(e,t){let n=`${e}_${t?.enc??`hex`}`,r=mJ[n];if(!r)throw Error(`Unrecognized hash format: ${n}`);return i4(Z8,n,r,t)}function y6(e){return O0(Q8,e)}function b6(e){return A0($8,e)}function x6(e){return j0($8,e)}function S6(e){return M0($8,e)}function C6(e){return N0($8,e)}function w6(e){return P0($8,e)}function T6(e){return F0(e5,e)}function E6(e){return L0(t5,e)}function D6(e){return z0(n5,e)}function O6(e){return B0(n5,e)}function k6(e){return V0(r5,e)}function A6(e){return H0(i5,e)}function j6(e){return U0(a5,e)}function M6(){return W0(o5)}function N6(){return G0(s5)}function P6(e){return K0(c5,e)}function F6(e){return q0(l5,e)}function I6(e){return J0(u5,e)}function L6(e,t){return E2(d5,e,t)}function R6(e){let t=e._zod.def.shape;return Z6(Object.keys(t))}function Z(e,t){let n={type:`object`,shape:e??{},...Y(t)};return new f5(n)}function z6(e,t){return new f5({type:`object`,shape:e,catchall:P6(),...Y(t)})}function B6(e,t){return new f5({type:`object`,shape:e,catchall:N6(),...Y(t)})}function V6(e,t){return new p5({type:`union`,options:e,...Y(t)})}function H6(e,t){return new m5({type:`union`,options:e,inclusive:!1,...Y(t)})}function U6(e,t,n){return new h5({type:`union`,options:t,discriminator:e,...Y(n)})}function W6(e,t){return new g5({type:`intersection`,left:e,right:t})}function G6(e,t,n){let r=t instanceof TX;return new _5({type:`tuple`,items:e,rest:r?t:null,...Y(r?n:t)})}function K6(e,t,n){return!t||!t._zod?new v5({type:`record`,keyType:X(),valueType:e,...Y(t)}):new v5({type:`record`,keyType:e,valueType:t,...Y(n)})}function q6(e,t,n){let r=ZK(e);return r._zod.values=void 0,new v5({type:`record`,keyType:r,valueType:t,...Y(n)})}function J6(e,t,n){return new v5({type:`record`,keyType:e,valueType:t,mode:`loose`,...Y(n)})}function Y6(e,t,n){return new y5({type:`map`,keyType:e,valueType:t,...Y(n)})}function X6(e,t){return new b5({type:`set`,valueType:e,...Y(t)})}function Z6(e,t){let n=Array.isArray(e)?Object.fromEntries(e.map(e=>[e,e])):e;return new x5({type:`enum`,entries:n,...Y(t)})}function Q6(e,t){return new x5({type:`enum`,entries:e,...Y(t)})}function Q(e,t){return new S5({type:`literal`,values:Array.isArray(e)?e:[e],...Y(t)})}function $6(e){return R2(C5,e)}function e8(e){return new w5({type:`transform`,transform:e})}function t8(e){return new T5({type:`optional`,innerType:e})}function n8(e){return new E5({type:`optional`,innerType:e})}function r8(e){return new D5({type:`nullable`,innerType:e})}function i8(e){return t8(r8(e))}function a8(e,t){return new O5({type:`default`,innerType:e,get defaultValue(){return typeof t==`function`?t():JK(t)}})}function o8(e,t){return new k5({type:`prefault`,innerType:e,get defaultValue(){return typeof t==`function`?t():JK(t)}})}function s8(e,t){return new A5({type:`nonoptional`,innerType:e,...Y(t)})}function c8(e){return new j5({type:`success`,innerType:e})}function l8(e,t){return new M5({type:`catch`,innerType:e,catchValue:typeof t==`function`?t:()=>t})}function u8(e){return X0(N5,e)}function d8(e,t){return new P5({type:`pipe`,in:e,out:t})}function f8(e,t,n){return new F5({type:`pipe`,in:e,out:t,transform:n.decode,reverseTransform:n.encode})}function p8(e){let t=e._zod.def;return new F5({type:`pipe`,in:t.out,out:t.in,transform:t.reverseTransform,reverseTransform:t.transform})}function m8(e){return new L5({type:`readonly`,innerType:e})}function h8(e,t){return new R5({type:`template_literal`,parts:e,...Y(t)})}function g8(e){return new z5({type:`lazy`,getter:e})}function _8(e){return new B5({type:`promise`,innerType:e})}function v8(e){return new V5({type:`function`,input:Array.isArray(e?.input)?G6(e?.input):e?.input??L6(N6()),output:e?.output??N6()})}function y8(e){let t=new DY({check:`custom`});return t._zod.check=e,t}function b8(e,t){return Z2(H5,e??(()=>!0),t)}function x8(e,t={}){return Q2(H5,e,t)}function S8(e,t){return $2(e,t)}function C8(e,t={}){let n=new H5({type:`custom`,check:`custom`,fn:t=>t instanceof e,abort:!0,...Y(t)});return n._zod.bag.Class=e,n._zod.check=t=>{t.value instanceof e||t.issues.push({code:`invalid_type`,expected:e.name,input:t.value,inst:n,path:[...n._zod.def.path??[]]})},n}function w8(e){let t=g8(()=>V6([X(e),y6(),T6(),j6(),L6(t),K6(X(),t)]));return t}function T8(e,t){return new I5({type:`pipe`,in:e8(e),out:t})}var E8,D8,O8,k8,A8,j8,M8,N8,P8,F8,I8,L8,R8,z8,B8,V8,H8,U8,W8,G8,K8,q8,J8,Y8,X8,Z8,Q8,$8,e5,t5,n5,r5,i5,a5,o5,s5,c5,l5,u5,d5,f5,p5,m5,h5,g5,_5,v5,y5,b5,x5,S5,C5,w5,T5,E5,D5,O5,k5,A5,j5,M5,N5,P5,F5,I5,L5,R5,z5,B5,V5,H5,U5,W5,G5,K5=o((()=>{l3(),r3(),m4(),h3(),T3(),H3(),E8=new WeakMap,D8=q(`ZodType`,(e,t)=>(TX.init(e,t),Object.assign(e[`~standard`],{jsonSchema:{input:p4(e,`input`),output:p4(e,`output`)}}),e.toJSONSchema=f4(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.parse=(t,n)=>A3(e,t,n,{callee:e.parse}),e.safeParse=(t,n)=>M3(e,t,n),e.parseAsync=async(t,n)=>j3(e,t,n,{callee:e.parseAsync}),e.safeParseAsync=async(t,n)=>N3(e,t,n),e.spa=e.safeParseAsync,e.encode=(t,n)=>P3(e,t,n),e.decode=(t,n)=>F3(e,t,n),e.encodeAsync=async(t,n)=>I3(e,t,n),e.decodeAsync=async(t,n)=>L3(e,t,n),e.safeEncode=(t,n)=>R3(e,t,n),e.safeDecode=(t,n)=>z3(e,t,n),e.safeEncodeAsync=async(t,n)=>B3(e,t,n),e.safeDecodeAsync=async(t,n)=>V3(e,t,n),W3(e,`ZodType`,{check(...e){let t=this.def;return this.clone(zK(t,{checks:[...t.checks??[],...e.map(e=>typeof e==`function`?{_zod:{check:e,def:{check:`custom`},onattach:[]}}:e)]}),{parent:!0})},with(...e){return this.check(...e)},clone(e,t){return ZK(this,e,t)},brand(){return this},register(e,t){return e.add(this,t),this},refine(e,t){return this.check(x8(e,t))},superRefine(e,t){return this.check(S8(e,t))},overwrite(e){return this.check(b2(e))},optional(){return t8(this)},exactOptional(){return n8(this)},nullable(){return r8(this)},nullish(){return t8(r8(this))},nonoptional(e){return s8(this,e)},array(){return L6(this)},or(e){return V6([this,e])},and(e){return W6(this,e)},transform(e){return d8(this,e8(e))},default(e){return a8(this,e)},prefault(e){return o8(this,e)},catch(e){return l8(this,e)},pipe(e){return d8(this,e)},readonly(){return m8(this)},describe(e){let t=this.clone();return Z1.add(t,{description:e}),t},meta(...e){if(e.length===0)return Z1.get(this);let t=this.clone();return Z1.add(t,e[0]),t},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(e){return e(this)}}),Object.defineProperty(e,"description",{get(){return Z1.get(e)?.description},configurable:!0}),e)),O8=q(`_ZodString`,(e,t)=>{EX.init(e,t),D8.init(e,t),e._zod.processJSONSchema=(t,n,r)=>_4(e,t,n,r);let n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,W3(e,`_ZodString`,{regex(...e){return this.check(f2(...e))},includes(...e){return this.check(h2(...e))},startsWith(...e){return this.check(g2(...e))},endsWith(...e){return this.check(_2(...e))},min(...e){return this.check(u2(...e))},max(...e){return this.check(l2(...e))},length(...e){return this.check(d2(...e))},nonempty(...e){return this.check(u2(1,...e))},lowercase(e){return this.check(p2(e))},uppercase(e){return this.check(m2(e))},trim(){return this.check(S2())},normalize(...e){return this.check(x2(...e))},toLowerCase(){return this.check(C2())},toUpperCase(){return this.check(w2())},slugify(){return this.check(T2())}})}),k8=q(`ZodString`,(e,t)=>{EX.init(e,t),O8.init(e,t),e.email=t=>e.check(t0(j8,t)),e.url=t=>e.check(s0(P8,t)),e.jwt=t=>e.check(C0(X8,t)),e.emoji=t=>e.check(c0(F8,t)),e.guid=t=>e.check(n0(M8,t)),e.uuid=t=>e.check(r0(N8,t)),e.uuidv4=t=>e.check(i0(N8,t)),e.uuidv6=t=>e.check(a0(N8,t)),e.uuidv7=t=>e.check(o0(N8,t)),e.nanoid=t=>e.check(l0(I8,t)),e.guid=t=>e.check(n0(M8,t)),e.cuid=t=>e.check(u0(L8,t)),e.cuid2=t=>e.check(d0(R8,t)),e.ulid=t=>e.check(f0(z8,t)),e.base64=t=>e.check(b0(q8,t)),e.base64url=t=>e.check(x0(J8,t)),e.xid=t=>e.check(p0(B8,t)),e.ksuid=t=>e.check(m0(V8,t)),e.ipv4=t=>e.check(h0(H8,t)),e.ipv6=t=>e.check(g0(W8,t)),e.cidrv4=t=>e.check(v0(G8,t)),e.cidrv6=t=>e.check(y0(K8,t)),e.e164=t=>e.check(S0(Y8,t)),e.datetime=t=>e.check(_3(t)),e.date=t=>e.check(v3(t)),e.time=t=>e.check(y3(t)),e.duration=t=>e.check(b3(t))}),A8=q(`ZodStringFormat`,(e,t)=>{DX.init(e,t),O8.init(e,t)}),j8=q(`ZodEmail`,(e,t)=>{AX.init(e,t),A8.init(e,t)}),M8=q(`ZodGUID`,(e,t)=>{OX.init(e,t),A8.init(e,t)}),N8=q(`ZodUUID`,(e,t)=>{kX.init(e,t),A8.init(e,t)}),P8=q(`ZodURL`,(e,t)=>{jX.init(e,t),A8.init(e,t)}),F8=q(`ZodEmoji`,(e,t)=>{MX.init(e,t),A8.init(e,t)}),I8=q(`ZodNanoID`,(e,t)=>{NX.init(e,t),A8.init(e,t)}),L8=q(`ZodCUID`,(e,t)=>{PX.init(e,t),A8.init(e,t)}),R8=q(`ZodCUID2`,(e,t)=>{FX.init(e,t),A8.init(e,t)}),z8=q(`ZodULID`,(e,t)=>{IX.init(e,t),A8.init(e,t)}),B8=q(`ZodXID`,(e,t)=>{LX.init(e,t),A8.init(e,t)}),V8=q(`ZodKSUID`,(e,t)=>{RX.init(e,t),A8.init(e,t)}),H8=q(`ZodIPv4`,(e,t)=>{UX.init(e,t),A8.init(e,t)}),U8=q(`ZodMAC`,(e,t)=>{GX.init(e,t),A8.init(e,t)}),W8=q(`ZodIPv6`,(e,t)=>{WX.init(e,t),A8.init(e,t)}),G8=q(`ZodCIDRv4`,(e,t)=>{KX.init(e,t),A8.init(e,t)}),K8=q(`ZodCIDRv6`,(e,t)=>{qX.init(e,t),A8.init(e,t)}),q8=q(`ZodBase64`,(e,t)=>{JX.init(e,t),A8.init(e,t)}),J8=q(`ZodBase64URL`,(e,t)=>{YX.init(e,t),A8.init(e,t)}),Y8=q(`ZodE164`,(e,t)=>{XX.init(e,t),A8.init(e,t)}),X8=q(`ZodJWT`,(e,t)=>{ZX.init(e,t),A8.init(e,t)}),Z8=q(`ZodCustomStringFormat`,(e,t)=>{QX.init(e,t),A8.init(e,t)}),Q8=q(`ZodNumber`,(e,t)=>{$X.init(e,t),D8.init(e,t),e._zod.processJSONSchema=(t,n,r)=>v4(e,t,n,r),W3(e,`ZodNumber`,{gt(e,t){return this.check($0(e,t))},gte(e,t){return this.check(e2(e,t))},min(e,t){return this.check(e2(e,t))},lt(e,t){return this.check(Z0(e,t))},lte(e,t){return this.check(Q0(e,t))},max(e,t){return this.check(Q0(e,t))},int(e){return this.check(b6(e))},safe(e){return this.check(b6(e))},positive(e){return this.check($0(0,e))},nonnegative(e){return this.check(e2(0,e))},negative(e){return this.check(Z0(0,e))},nonpositive(e){return this.check(Q0(0,e))},multipleOf(e,t){return this.check(a2(e,t))},step(e,t){return this.check(a2(e,t))},finite(){return this}});let n=e._zod.bag;e.minValue=Math.max(n.minimum??-1/0,n.exclusiveMinimum??-1/0)??null,e.maxValue=Math.min(n.maximum??1/0,n.exclusiveMaximum??1/0)??null,e.isInt=(n.format??``).includes(`int`)||Number.isSafeInteger(n.multipleOf??.5),e.isFinite=!0,e.format=n.format??null}),$8=q(`ZodNumberFormat`,(e,t)=>{eZ.init(e,t),Q8.init(e,t)}),e5=q(`ZodBoolean`,(e,t)=>{tZ.init(e,t),D8.init(e,t),e._zod.processJSONSchema=(t,n,r)=>y4(e,t,n,r)}),t5=q(`ZodBigInt`,(e,t)=>{nZ.init(e,t),D8.init(e,t),e._zod.processJSONSchema=(t,n,r)=>b4(e,t,n,r),e.gte=(t,n)=>e.check(e2(t,n)),e.min=(t,n)=>e.check(e2(t,n)),e.gt=(t,n)=>e.check($0(t,n)),e.gte=(t,n)=>e.check(e2(t,n)),e.min=(t,n)=>e.check(e2(t,n)),e.lt=(t,n)=>e.check(Z0(t,n)),e.lte=(t,n)=>e.check(Q0(t,n)),e.max=(t,n)=>e.check(Q0(t,n)),e.positive=t=>e.check($0(BigInt(0),t)),e.negative=t=>e.check(Z0(BigInt(0),t)),e.nonpositive=t=>e.check(Q0(BigInt(0),t)),e.nonnegative=t=>e.check(e2(BigInt(0),t)),e.multipleOf=(t,n)=>e.check(a2(t,n));let n=e._zod.bag;e.minValue=n.minimum??null,e.maxValue=n.maximum??null,e.format=n.format??null}),n5=q(`ZodBigIntFormat`,(e,t)=>{rZ.init(e,t),t5.init(e,t)}),r5=q(`ZodSymbol`,(e,t)=>{iZ.init(e,t),D8.init(e,t),e._zod.processJSONSchema=(t,n,r)=>x4(e,t,n,r)}),i5=q(`ZodUndefined`,(e,t)=>{aZ.init(e,t),D8.init(e,t),e._zod.processJSONSchema=(t,n,r)=>C4(e,t,n,r)}),a5=q(`ZodNull`,(e,t)=>{oZ.init(e,t),D8.init(e,t),e._zod.processJSONSchema=(t,n,r)=>S4(e,t,n,r)}),o5=q(`ZodAny`,(e,t)=>{sZ.init(e,t),D8.init(e,t),e._zod.processJSONSchema=(t,n,r)=>E4(e,t,n,r)}),s5=q(`ZodUnknown`,(e,t)=>{cZ.init(e,t),D8.init(e,t),e._zod.processJSONSchema=(t,n,r)=>D4(e,t,n,r)}),c5=q(`ZodNever`,(e,t)=>{lZ.init(e,t),D8.init(e,t),e._zod.processJSONSchema=(t,n,r)=>T4(e,t,n,r)}),l5=q(`ZodVoid`,(e,t)=>{uZ.init(e,t),D8.init(e,t),e._zod.processJSONSchema=(t,n,r)=>w4(e,t,n,r)}),u5=q(`ZodDate`,(e,t)=>{dZ.init(e,t),D8.init(e,t),e._zod.processJSONSchema=(t,n,r)=>O4(e,t,n,r),e.min=(t,n)=>e.check(e2(t,n)),e.max=(t,n)=>e.check(Q0(t,n));let n=e._zod.bag;e.minDate=n.minimum?new Date(n.minimum):null,e.maxDate=n.maximum?new Date(n.maximum):null}),d5=q(`ZodArray`,(e,t)=>{fZ.init(e,t),D8.init(e,t),e._zod.processJSONSchema=(t,n,r)=>B4(e,t,n,r),e.element=t.element,W3(e,`ZodArray`,{min(e,t){return this.check(u2(e,t))},nonempty(e){return this.check(u2(1,e))},max(e,t){return this.check(l2(e,t))},length(e,t){return this.check(d2(e,t))},unwrap(){return this.element}})}),f5=q(`ZodObject`,(e,t)=>{mZ.init(e,t),D8.init(e,t),e._zod.processJSONSchema=(t,n,r)=>V4(e,t,n,r),IK(e,`shape`,()=>t.shape),W3(e,`ZodObject`,{keyof(){return Z6(Object.keys(this._zod.def.shape))},catchall(e){return this.clone({...this._zod.def,catchall:e})},passthrough(){return this.clone({...this._zod.def,catchall:N6()})},loose(){return this.clone({...this._zod.def,catchall:N6()})},strict(){return this.clone({...this._zod.def,catchall:P6()})},strip(){return this.clone({...this._zod.def,catchall:void 0})},extend(e){return rq(this,e)},safeExtend(e){return iq(this,e)},merge(e){return aq(this,e)},pick(e){return tq(this,e)},omit(e){return nq(this,e)},partial(...e){return oq(T5,this,e[0])},required(...e){return sq(A5,this,e[0])}})}),p5=q(`ZodUnion`,(e,t)=>{hZ.init(e,t),D8.init(e,t),e._zod.processJSONSchema=(t,n,r)=>H4(e,t,n,r),e.options=t.options}),m5=q(`ZodXor`,(e,t)=>{p5.init(e,t),gZ.init(e,t),e._zod.processJSONSchema=(t,n,r)=>H4(e,t,n,r),e.options=t.options}),h5=q(`ZodDiscriminatedUnion`,(e,t)=>{p5.init(e,t),_Z.init(e,t)}),g5=q(`ZodIntersection`,(e,t)=>{vZ.init(e,t),D8.init(e,t),e._zod.processJSONSchema=(t,n,r)=>U4(e,t,n,r)}),_5=q(`ZodTuple`,(e,t)=>{yZ.init(e,t),D8.init(e,t),e._zod.processJSONSchema=(t,n,r)=>W4(e,t,n,r),e.rest=t=>e.clone({...e._zod.def,rest:t})}),v5=q(`ZodRecord`,(e,t)=>{bZ.init(e,t),D8.init(e,t),e._zod.processJSONSchema=(t,n,r)=>G4(e,t,n,r),e.keyType=t.keyType,e.valueType=t.valueType}),y5=q(`ZodMap`,(e,t)=>{xZ.init(e,t),D8.init(e,t),e._zod.processJSONSchema=(t,n,r)=>R4(e,t,n,r),e.keyType=t.keyType,e.valueType=t.valueType,e.min=(...t)=>e.check(s2(...t)),e.nonempty=t=>e.check(s2(1,t)),e.max=(...t)=>e.check(o2(...t)),e.size=(...t)=>e.check(c2(...t))}),b5=q(`ZodSet`,(e,t)=>{SZ.init(e,t),D8.init(e,t),e._zod.processJSONSchema=(t,n,r)=>z4(e,t,n,r),e.min=(...t)=>e.check(s2(...t)),e.nonempty=t=>e.check(s2(1,t)),e.max=(...t)=>e.check(o2(...t)),e.size=(...t)=>e.check(c2(...t))}),x5=q(`ZodEnum`,(e,t)=>{CZ.init(e,t),D8.init(e,t),e._zod.processJSONSchema=(t,n,r)=>k4(e,t,n,r),e.enum=t.entries,e.options=Object.values(t.entries);let n=new Set(Object.keys(t.entries));e.extract=(e,r)=>{let i={};for(let r of e)if(n.has(r))i[r]=t.entries[r];else throw Error(`Key ${r} not found in enum`);return new x5({...t,checks:[],...Y(r),entries:i})},e.exclude=(e,r)=>{let i={...t.entries};for(let t of e)if(n.has(t))delete i[t];else throw Error(`Key ${t} not found in enum`);return new x5({...t,checks:[],...Y(r),entries:i})}}),S5=q(`ZodLiteral`,(e,t)=>{wZ.init(e,t),D8.init(e,t),e._zod.processJSONSchema=(t,n,r)=>A4(e,t,n,r),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if(t.values.length>1)throw Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})}),C5=q(`ZodFile`,(e,t)=>{TZ.init(e,t),D8.init(e,t),e._zod.processJSONSchema=(t,n,r)=>N4(e,t,n,r),e.min=(t,n)=>e.check(s2(t,n)),e.max=(t,n)=>e.check(o2(t,n)),e.mime=(t,n)=>e.check(y2(Array.isArray(t)?t:[t],n))}),w5=q(`ZodTransform`,(e,t)=>{EZ.init(e,t),D8.init(e,t),e._zod.processJSONSchema=(t,n,r)=>L4(e,t,n,r),e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new xK(e.constructor.name);n.addIssue=r=>{if(typeof r==`string`)n.issues.push(gq(r,n.value,t));else{let t=r;t.fatal&&(t.continue=!1),t.code??=`custom`,t.input??=n.value,t.inst??=e,n.issues.push(gq(t))}};let i=t.transform(n.value,n);return i instanceof Promise?i.then(e=>(n.value=e,n.fallback=!0,n)):(n.value=i,n.fallback=!0,n)}}),T5=q(`ZodOptional`,(e,t)=>{DZ.init(e,t),D8.init(e,t),e._zod.processJSONSchema=(t,n,r)=>e3(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),E5=q(`ZodExactOptional`,(e,t)=>{OZ.init(e,t),D8.init(e,t),e._zod.processJSONSchema=(t,n,r)=>e3(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),D5=q(`ZodNullable`,(e,t)=>{kZ.init(e,t),D8.init(e,t),e._zod.processJSONSchema=(t,n,r)=>K4(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),O5=q(`ZodDefault`,(e,t)=>{AZ.init(e,t),D8.init(e,t),e._zod.processJSONSchema=(t,n,r)=>J4(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap}),k5=q(`ZodPrefault`,(e,t)=>{jZ.init(e,t),D8.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Y4(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),A5=q(`ZodNonOptional`,(e,t)=>{MZ.init(e,t),D8.init(e,t),e._zod.processJSONSchema=(t,n,r)=>q4(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),j5=q(`ZodSuccess`,(e,t)=>{NZ.init(e,t),D8.init(e,t),e._zod.processJSONSchema=(t,n,r)=>P4(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),M5=q(`ZodCatch`,(e,t)=>{PZ.init(e,t),D8.init(e,t),e._zod.processJSONSchema=(t,n,r)=>X4(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap}),N5=q(`ZodNaN`,(e,t)=>{FZ.init(e,t),D8.init(e,t),e._zod.processJSONSchema=(t,n,r)=>j4(e,t,n,r)}),P5=q(`ZodPipe`,(e,t)=>{IZ.init(e,t),D8.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Z4(e,t,n,r),e.in=t.in,e.out=t.out}),F5=q(`ZodCodec`,(e,t)=>{P5.init(e,t),LZ.init(e,t)}),I5=q(`ZodPreprocess`,(e,t)=>{P5.init(e,t),RZ.init(e,t)}),L5=q(`ZodReadonly`,(e,t)=>{zZ.init(e,t),D8.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Q4(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),R5=q(`ZodTemplateLiteral`,(e,t)=>{BZ.init(e,t),D8.init(e,t),e._zod.processJSONSchema=(t,n,r)=>M4(e,t,n,r)}),z5=q(`ZodLazy`,(e,t)=>{UZ.init(e,t),D8.init(e,t),e._zod.processJSONSchema=(t,n,r)=>t3(e,t,n,r),e.unwrap=()=>e._zod.def.getter()}),B5=q(`ZodPromise`,(e,t)=>{HZ.init(e,t),D8.init(e,t),e._zod.processJSONSchema=(t,n,r)=>$4(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),V5=q(`ZodFunction`,(e,t)=>{VZ.init(e,t),D8.init(e,t),e._zod.processJSONSchema=(t,n,r)=>I4(e,t,n,r)}),H5=q(`ZodCustom`,(e,t)=>{WZ.init(e,t),D8.init(e,t),e._zod.processJSONSchema=(t,n,r)=>F4(e,t,n,r)}),U5=t4,W5=n4,G5=(...e)=>r4({Codec:F5,Boolean:e5,String:k8},...e)}));function q5(e){gK({customError:e})}function J5(){return gK().customError}var Y5,X5,Z5=o((()=>{l3(),Y5={invalid_type:`invalid_type`,too_big:`too_big`,too_small:`too_small`,invalid_format:`invalid_format`,not_multiple_of:`not_multiple_of`,unrecognized_keys:`unrecognized_keys`,invalid_union:`invalid_union`,invalid_key:`invalid_key`,invalid_element:`invalid_element`,invalid_value:`invalid_value`,custom:`custom`},X5||={}}));function Q5(e,t){let n=e.$schema;return n===`https://json-schema.org/draft/2020-12/schema`?`draft-2020-12`:n===`http://json-schema.org/draft-07/schema#`?`draft-7`:n===`http://json-schema.org/draft-04/schema#`?`draft-4`:t??`draft-2020-12`}function $5(e,t){if(!e.startsWith(`#`))throw Error(`External $ref is not supported, only local refs (#/...) are allowed`);let n=e.slice(1).split(`/`).filter(Boolean);if(n.length===0)return t.rootSchema;let r=t.version===`draft-2020-12`?`$defs`:`definitions`;if(n[0]===r){let r=n[1];if(!r||!t.defs[r])throw Error(`Reference not found: ${e}`);return t.defs[r]}throw Error(`Reference not found: ${e}`)}function e7(e,t){if(e.not!==void 0){if(typeof e.not==`object`&&Object.keys(e.not).length===0)return $.never();throw Error(`not is not supported in Zod (except { not: {} } for never)`)}if(e.unevaluatedItems!==void 0)throw Error(`unevaluatedItems is not supported`);if(e.unevaluatedProperties!==void 0)throw Error(`unevaluatedProperties is not supported`);if(e.if!==void 0||e.then!==void 0||e.else!==void 0)throw Error(`Conditional schemas (if/then/else) are not supported`);if(e.dependentSchemas!==void 0||e.dependentRequired!==void 0)throw Error(`dependentSchemas and dependentRequired are not supported`);if(e.$ref){let n=e.$ref;if(t.refs.has(n))return t.refs.get(n);if(t.processing.has(n))return $.lazy(()=>{if(!t.refs.has(n))throw Error(`Circular reference not resolved: ${n}`);return t.refs.get(n)});t.processing.add(n);let r=t7($5(n,t),t);return t.refs.set(n,r),t.processing.delete(n),r}if(e.enum!==void 0){let n=e.enum;if(t.version===`openapi-3.0`&&e.nullable===!0&&n.length===1&&n[0]===null)return $.null();if(n.length===0)return $.never();if(n.length===1)return $.literal(n[0]);if(n.every(e=>typeof e==`string`))return $.enum(n);let r=n.map(e=>$.literal(e));return r.length<2?r[0]:$.union([r[0],r[1],...r.slice(2)])}if(e.const!==void 0)return $.literal(e.const);let n=e.type;if(Array.isArray(n)){let r=n.map(n=>e7({...e,type:n},t));return r.length===0?$.never():r.length===1?r[0]:$.union(r)}if(!n)return $.any();let r;switch(n){case`string`:{let t=$.string();if(e.format){let n=e.format;n===`email`?t=t.check($.email()):n===`uri`||n===`uri-reference`?t=t.check($.url()):n===`uuid`||n===`guid`?t=t.check($.uuid()):n===`date-time`?t=t.check($.iso.datetime()):n===`date`?t=t.check($.iso.date()):n===`time`?t=t.check($.iso.time()):n===`duration`?t=t.check($.iso.duration()):n===`ipv4`?t=t.check($.ipv4()):n===`ipv6`?t=t.check($.ipv6()):n===`mac`?t=t.check($.mac()):n===`cidr`?t=t.check($.cidrv4()):n===`cidr-v6`?t=t.check($.cidrv6()):n===`base64`?t=t.check($.base64()):n===`base64url`?t=t.check($.base64url()):n===`e164`?t=t.check($.e164()):n===`jwt`?t=t.check($.jwt()):n===`emoji`?t=t.check($.emoji()):n===`nanoid`?t=t.check($.nanoid()):n===`cuid`?t=t.check($.cuid()):n===`cuid2`?t=t.check($.cuid2()):n===`ulid`?t=t.check($.ulid()):n===`xid`?t=t.check($.xid()):n===`ksuid`&&(t=t.check($.ksuid()))}typeof e.minLength==`number`&&(t=t.min(e.minLength)),typeof e.maxLength==`number`&&(t=t.max(e.maxLength)),e.pattern&&(t=t.regex(new RegExp(e.pattern))),r=t;break}case`number`:case`integer`:{let t=n===`integer`?$.number().int():$.number();typeof e.minimum==`number`&&(t=t.min(e.minimum)),typeof e.maximum==`number`&&(t=t.max(e.maximum)),typeof e.exclusiveMinimum==`number`?t=t.gt(e.exclusiveMinimum):e.exclusiveMinimum===!0&&typeof e.minimum==`number`&&(t=t.gt(e.minimum)),typeof e.exclusiveMaximum==`number`?t=t.lt(e.exclusiveMaximum):e.exclusiveMaximum===!0&&typeof e.maximum==`number`&&(t=t.lt(e.maximum)),typeof e.multipleOf==`number`&&(t=t.multipleOf(e.multipleOf)),r=t;break}case`boolean`:r=$.boolean();break;case`null`:r=$.null();break;case`object`:{let n={},i=e.properties||{},a=new Set(e.required||[]);for(let[e,r]of Object.entries(i)){let i=t7(r,t);n[e]=a.has(e)?i:i.optional()}if(e.propertyNames){let i=t7(e.propertyNames,t),a=e.additionalProperties&&typeof e.additionalProperties==`object`?t7(e.additionalProperties,t):$.any();if(Object.keys(n).length===0){r=$.record(i,a);break}let o=$.object(n).passthrough(),s=$.looseRecord(i,a);r=$.intersection(o,s);break}if(e.patternProperties){let i=e.patternProperties,a=Object.keys(i),o=[];for(let e of a){let n=t7(i[e],t),r=$.string().regex(new RegExp(e));o.push($.looseRecord(r,n))}let s=[];if(Object.keys(n).length>0&&s.push($.object(n).passthrough()),s.push(...o),s.length===0)r=$.object({}).passthrough();else if(s.length===1)r=s[0];else{let e=$.intersection(s[0],s[1]);for(let t=2;tt7(e,t)),o=i&&typeof i==`object`&&!Array.isArray(i)?t7(i,t):void 0;r=o?$.tuple(a).rest(o):$.tuple(a),typeof e.minItems==`number`&&(r=r.check($.minLength(e.minItems))),typeof e.maxItems==`number`&&(r=r.check($.maxLength(e.maxItems)))}else if(Array.isArray(i)){let n=i.map(e=>t7(e,t)),a=e.additionalItems&&typeof e.additionalItems==`object`?t7(e.additionalItems,t):void 0;r=a?$.tuple(n).rest(a):$.tuple(n),typeof e.minItems==`number`&&(r=r.check($.minLength(e.minItems))),typeof e.maxItems==`number`&&(r=r.check($.maxLength(e.maxItems)))}else if(i!==void 0){let n=t7(i,t),a=$.array(n);typeof e.minItems==`number`&&(a=a.min(e.minItems)),typeof e.maxItems==`number`&&(a=a.max(e.maxItems)),r=a}else r=$.array($.any());break}default:throw Error(`Unsupported type: ${n}`)}return r}function t7(e,t){if(typeof e==`boolean`)return e?$.any():$.never();let n=e7(e,t),r=e.type||e.enum!==void 0||e.const!==void 0;if(e.anyOf&&Array.isArray(e.anyOf)){let i=e.anyOf.map(e=>t7(e,t)),a=$.union(i);n=r?$.intersection(n,a):a}if(e.oneOf&&Array.isArray(e.oneOf)){let i=e.oneOf.map(e=>t7(e,t)),a=$.xor(i);n=r?$.intersection(n,a):a}if(e.allOf&&Array.isArray(e.allOf))if(e.allOf.length===0)n=r?n:$.any();else{let i=r?n:t7(e.allOf[0],t),a=+!r;for(let n=a;n0&&t.registry.add(n,i),e.description&&(n=n.describe(e.description)),n}function n7(e,t){if(typeof e==`boolean`)return e?$.any():$.never();let n;try{n=JSON.parse(JSON.stringify(e))}catch{throw Error(`fromJSONSchema input is not valid JSON (possibly cyclic); use $defs/$ref for recursive schemas`)}let r={version:Q5(n,t?.defaultTarget),defs:n.$defs||n.definitions||{},refs:new Map,processing:new Set,rootSchema:n,registry:t?.registry??Z1};return t7(n,r)}var $,r7,i7=o((()=>{Q1(),h3(),T3(),K5(),$={...U3,...m3,iso:g3},r7=new Set(`$schema.$ref.$defs.definitions.$id.id.$comment.$anchor.$vocabulary.$dynamicRef.$dynamicAnchor.type.enum.const.anyOf.oneOf.allOf.not.properties.required.additionalProperties.patternProperties.propertyNames.minProperties.maxProperties.items.prefixItems.additionalItems.minItems.maxItems.uniqueItems.contains.minContains.maxContains.minLength.maxLength.pattern.format.minimum.maximum.exclusiveMinimum.exclusiveMaximum.multipleOf.description.default.contentEncoding.contentMediaType.contentSchema.unevaluatedItems.unevaluatedProperties.if.then.else.dependentSchemas.dependentRequired.nullable.readOnly`.split(`.`))})),a7=c({bigint:()=>l7,boolean:()=>c7,date:()=>u7,number:()=>s7,string:()=>o7});function o7(e){return e0(k8,e)}function s7(e){return k0(Q8,e)}function c7(e){return I0(e5,e)}function l7(e){return R0(t5,e)}function u7(e){return Y0(u5,e)}var d7=o((()=>{l3(),K5()})),f7=c({$brand:()=>yK,$input:()=>Y1,$output:()=>J1,NEVER:()=>vK,TimePrecision:()=>a4,ZodAny:()=>o5,ZodArray:()=>d5,ZodBase64:()=>q8,ZodBase64URL:()=>J8,ZodBigInt:()=>t5,ZodBigIntFormat:()=>n5,ZodBoolean:()=>e5,ZodCIDRv4:()=>G8,ZodCIDRv6:()=>K8,ZodCUID:()=>L8,ZodCUID2:()=>R8,ZodCatch:()=>M5,ZodCodec:()=>F5,ZodCustom:()=>H5,ZodCustomStringFormat:()=>Z8,ZodDate:()=>u5,ZodDefault:()=>O5,ZodDiscriminatedUnion:()=>h5,ZodE164:()=>Y8,ZodEmail:()=>j8,ZodEmoji:()=>F8,ZodEnum:()=>x5,ZodError:()=>D3,ZodExactOptional:()=>E5,ZodFile:()=>C5,ZodFirstPartyTypeKind:()=>X5,ZodFunction:()=>V5,ZodGUID:()=>M8,ZodIPv4:()=>H8,ZodIPv6:()=>W8,ZodISODate:()=>S3,ZodISODateTime:()=>x3,ZodISODuration:()=>w3,ZodISOTime:()=>C3,ZodIntersection:()=>g5,ZodIssueCode:()=>Y5,ZodJWT:()=>X8,ZodKSUID:()=>V8,ZodLazy:()=>z5,ZodLiteral:()=>S5,ZodMAC:()=>U8,ZodMap:()=>y5,ZodNaN:()=>N5,ZodNanoID:()=>I8,ZodNever:()=>c5,ZodNonOptional:()=>A5,ZodNull:()=>a5,ZodNullable:()=>D5,ZodNumber:()=>Q8,ZodNumberFormat:()=>$8,ZodObject:()=>f5,ZodOptional:()=>T5,ZodPipe:()=>P5,ZodPrefault:()=>k5,ZodPreprocess:()=>I5,ZodPromise:()=>B5,ZodReadonly:()=>L5,ZodRealError:()=>O3,ZodRecord:()=>v5,ZodSet:()=>b5,ZodString:()=>k8,ZodStringFormat:()=>A8,ZodSuccess:()=>j5,ZodSymbol:()=>r5,ZodTemplateLiteral:()=>R5,ZodTransform:()=>w5,ZodTuple:()=>_5,ZodType:()=>D8,ZodULID:()=>z8,ZodURL:()=>P8,ZodUUID:()=>N8,ZodUndefined:()=>i5,ZodUnion:()=>p5,ZodUnknown:()=>s5,ZodVoid:()=>l5,ZodXID:()=>B8,ZodXor:()=>m5,_ZodString:()=>O8,_default:()=>a8,_function:()=>v8,any:()=>M6,array:()=>L6,base64:()=>d6,base64url:()=>f6,bigint:()=>E6,boolean:()=>T6,catch:()=>l8,check:()=>y8,cidrv4:()=>l6,cidrv6:()=>u6,clone:()=>ZK,codec:()=>f8,coerce:()=>a7,config:()=>gK,core:()=>c3,cuid:()=>t6,cuid2:()=>n6,custom:()=>b8,date:()=>I6,decode:()=>F3,decodeAsync:()=>L3,describe:()=>U5,discriminatedUnion:()=>U6,e164:()=>p6,email:()=>G3,emoji:()=>$3,encode:()=>P3,encodeAsync:()=>I3,endsWith:()=>_2,enum:()=>Z6,exactOptional:()=>n8,file:()=>$6,flattenError:()=>Pq,float32:()=>x6,float64:()=>S6,formatError:()=>Fq,fromJSONSchema:()=>n7,function:()=>v8,getErrorMap:()=>J5,globalRegistry:()=>Z1,gt:()=>$0,gte:()=>e2,guid:()=>K3,hash:()=>v6,hex:()=>_6,hostname:()=>g6,httpUrl:()=>Q3,includes:()=>h2,instanceof:()=>C8,int:()=>b6,int32:()=>C6,int64:()=>D6,intersection:()=>W6,invertCodec:()=>p8,ipv4:()=>o6,ipv6:()=>c6,iso:()=>g3,json:()=>w8,jwt:()=>m6,keyof:()=>R6,ksuid:()=>a6,lazy:()=>g8,length:()=>d2,literal:()=>Q,locales:()=>W1,looseObject:()=>B6,looseRecord:()=>J6,lowercase:()=>p2,lt:()=>Z0,lte:()=>Q0,mac:()=>s6,map:()=>Y6,maxLength:()=>l2,maxSize:()=>o2,meta:()=>W5,mime:()=>y2,minLength:()=>u2,minSize:()=>s2,multipleOf:()=>a2,nan:()=>u8,nanoid:()=>e6,nativeEnum:()=>Q6,negative:()=>n2,never:()=>P6,nonnegative:()=>i2,nonoptional:()=>s8,nonpositive:()=>r2,normalize:()=>x2,null:()=>j6,nullable:()=>r8,nullish:()=>i8,number:()=>y6,object:()=>Z,optional:()=>t8,overwrite:()=>b2,parse:()=>A3,parseAsync:()=>j3,partialRecord:()=>q6,pipe:()=>d8,positive:()=>t2,prefault:()=>o8,preprocess:()=>T8,prettifyError:()=>Rq,promise:()=>_8,property:()=>v2,readonly:()=>m8,record:()=>K6,refine:()=>x8,regex:()=>f2,regexes:()=>mJ,registry:()=>K1,safeDecode:()=>z3,safeDecodeAsync:()=>V3,safeEncode:()=>R3,safeEncodeAsync:()=>B3,safeParse:()=>M3,safeParseAsync:()=>N3,set:()=>X6,setErrorMap:()=>q5,size:()=>c2,slugify:()=>T2,startsWith:()=>g2,strictObject:()=>z6,string:()=>X,stringFormat:()=>h6,stringbool:()=>G5,success:()=>c8,superRefine:()=>S8,symbol:()=>k6,templateLiteral:()=>h8,toJSONSchema:()=>h4,toLowerCase:()=>C2,toUpperCase:()=>w2,transform:()=>e8,treeifyError:()=>Iq,trim:()=>S2,tuple:()=>G6,uint32:()=>w6,uint64:()=>O6,ulid:()=>r6,undefined:()=>A6,union:()=>V6,unknown:()=>N6,uppercase:()=>m2,url:()=>Z3,util:()=>wK,uuid:()=>q3,uuidv4:()=>J3,uuidv6:()=>Y3,uuidv7:()=>X3,void:()=>F6,xid:()=>i6,xor:()=>H6}),p7=o((()=>{l3(),K5(),h3(),k3(),H3(),Z5(),SQ(),r3(),i7(),G1(),T3(),d7(),gK(bQ())})),m7,h7=o((()=>{p7(),p7(),m7=f7})),g7=c({$brand:()=>yK,$input:()=>Y1,$output:()=>J1,NEVER:()=>vK,TimePrecision:()=>a4,ZodAny:()=>o5,ZodArray:()=>d5,ZodBase64:()=>q8,ZodBase64URL:()=>J8,ZodBigInt:()=>t5,ZodBigIntFormat:()=>n5,ZodBoolean:()=>e5,ZodCIDRv4:()=>G8,ZodCIDRv6:()=>K8,ZodCUID:()=>L8,ZodCUID2:()=>R8,ZodCatch:()=>M5,ZodCodec:()=>F5,ZodCustom:()=>H5,ZodCustomStringFormat:()=>Z8,ZodDate:()=>u5,ZodDefault:()=>O5,ZodDiscriminatedUnion:()=>h5,ZodE164:()=>Y8,ZodEmail:()=>j8,ZodEmoji:()=>F8,ZodEnum:()=>x5,ZodError:()=>D3,ZodExactOptional:()=>E5,ZodFile:()=>C5,ZodFirstPartyTypeKind:()=>X5,ZodFunction:()=>V5,ZodGUID:()=>M8,ZodIPv4:()=>H8,ZodIPv6:()=>W8,ZodISODate:()=>S3,ZodISODateTime:()=>x3,ZodISODuration:()=>w3,ZodISOTime:()=>C3,ZodIntersection:()=>g5,ZodIssueCode:()=>Y5,ZodJWT:()=>X8,ZodKSUID:()=>V8,ZodLazy:()=>z5,ZodLiteral:()=>S5,ZodMAC:()=>U8,ZodMap:()=>y5,ZodNaN:()=>N5,ZodNanoID:()=>I8,ZodNever:()=>c5,ZodNonOptional:()=>A5,ZodNull:()=>a5,ZodNullable:()=>D5,ZodNumber:()=>Q8,ZodNumberFormat:()=>$8,ZodObject:()=>f5,ZodOptional:()=>T5,ZodPipe:()=>P5,ZodPrefault:()=>k5,ZodPreprocess:()=>I5,ZodPromise:()=>B5,ZodReadonly:()=>L5,ZodRealError:()=>O3,ZodRecord:()=>v5,ZodSet:()=>b5,ZodString:()=>k8,ZodStringFormat:()=>A8,ZodSuccess:()=>j5,ZodSymbol:()=>r5,ZodTemplateLiteral:()=>R5,ZodTransform:()=>w5,ZodTuple:()=>_5,ZodType:()=>D8,ZodULID:()=>z8,ZodURL:()=>P8,ZodUUID:()=>N8,ZodUndefined:()=>i5,ZodUnion:()=>p5,ZodUnknown:()=>s5,ZodVoid:()=>l5,ZodXID:()=>B8,ZodXor:()=>m5,_ZodString:()=>O8,_default:()=>a8,_function:()=>v8,any:()=>M6,array:()=>L6,base64:()=>d6,base64url:()=>f6,bigint:()=>E6,boolean:()=>T6,catch:()=>l8,check:()=>y8,cidrv4:()=>l6,cidrv6:()=>u6,clone:()=>ZK,codec:()=>f8,coerce:()=>a7,config:()=>gK,core:()=>c3,cuid:()=>t6,cuid2:()=>n6,custom:()=>b8,date:()=>I6,decode:()=>F3,decodeAsync:()=>L3,default:()=>_7,describe:()=>U5,discriminatedUnion:()=>U6,e164:()=>p6,email:()=>G3,emoji:()=>$3,encode:()=>P3,encodeAsync:()=>I3,endsWith:()=>_2,enum:()=>Z6,exactOptional:()=>n8,file:()=>$6,flattenError:()=>Pq,float32:()=>x6,float64:()=>S6,formatError:()=>Fq,fromJSONSchema:()=>n7,function:()=>v8,getErrorMap:()=>J5,globalRegistry:()=>Z1,gt:()=>$0,gte:()=>e2,guid:()=>K3,hash:()=>v6,hex:()=>_6,hostname:()=>g6,httpUrl:()=>Q3,includes:()=>h2,instanceof:()=>C8,int:()=>b6,int32:()=>C6,int64:()=>D6,intersection:()=>W6,invertCodec:()=>p8,ipv4:()=>o6,ipv6:()=>c6,iso:()=>g3,json:()=>w8,jwt:()=>m6,keyof:()=>R6,ksuid:()=>a6,lazy:()=>g8,length:()=>d2,literal:()=>Q,locales:()=>W1,looseObject:()=>B6,looseRecord:()=>J6,lowercase:()=>p2,lt:()=>Z0,lte:()=>Q0,mac:()=>s6,map:()=>Y6,maxLength:()=>l2,maxSize:()=>o2,meta:()=>W5,mime:()=>y2,minLength:()=>u2,minSize:()=>s2,multipleOf:()=>a2,nan:()=>u8,nanoid:()=>e6,nativeEnum:()=>Q6,negative:()=>n2,never:()=>P6,nonnegative:()=>i2,nonoptional:()=>s8,nonpositive:()=>r2,normalize:()=>x2,null:()=>j6,nullable:()=>r8,nullish:()=>i8,number:()=>y6,object:()=>Z,optional:()=>t8,overwrite:()=>b2,parse:()=>A3,parseAsync:()=>j3,partialRecord:()=>q6,pipe:()=>d8,positive:()=>t2,prefault:()=>o8,preprocess:()=>T8,prettifyError:()=>Rq,promise:()=>_8,property:()=>v2,readonly:()=>m8,record:()=>K6,refine:()=>x8,regex:()=>f2,regexes:()=>mJ,registry:()=>K1,safeDecode:()=>z3,safeDecodeAsync:()=>V3,safeEncode:()=>R3,safeEncodeAsync:()=>B3,safeParse:()=>M3,safeParseAsync:()=>N3,set:()=>X6,setErrorMap:()=>q5,size:()=>c2,slugify:()=>T2,startsWith:()=>g2,strictObject:()=>z6,string:()=>X,stringFormat:()=>h6,stringbool:()=>G5,success:()=>c8,superRefine:()=>S8,symbol:()=>k6,templateLiteral:()=>h8,toJSONSchema:()=>h4,toLowerCase:()=>C2,toUpperCase:()=>w2,transform:()=>e8,treeifyError:()=>Iq,trim:()=>S2,tuple:()=>G6,uint32:()=>w6,uint64:()=>O6,ulid:()=>r6,undefined:()=>A6,union:()=>V6,unknown:()=>N6,uppercase:()=>m2,url:()=>Z3,util:()=>wK,uuid:()=>q3,uuidv4:()=>J3,uuidv6:()=>Y3,uuidv7:()=>X3,void:()=>F6,xid:()=>i6,xor:()=>H6,z:()=>f7}),_7,v7=o((()=>{h7(),h7(),_7=m7}));v7();var y7=`io.modelcontextprotocol/related-task`,b7=b8(e=>e!==null&&(typeof e==`object`||typeof e==`function`)),x7=V6([X(),y6().int()]),S7=X();B6({ttl:y6().optional(),pollInterval:y6().optional()});var C7=Z({ttl:y6().optional()}),w7=Z({taskId:X()}),T7=B6({progressToken:x7.optional(),[y7]:w7.optional()}),E7=Z({_meta:T7.optional()}),D7=E7.extend({task:C7.optional()}),O7=e=>D7.safeParse(e).success,k7=Z({method:X(),params:E7.loose().optional()}),A7=Z({_meta:T7.optional()}),j7=Z({method:X(),params:A7.loose().optional()}),M7=B6({_meta:T7.optional()}),N7=V6([X(),y6().int()]),P7=Z({jsonrpc:Q(`2.0`),id:N7,...k7.shape}).strict(),F7=e=>P7.safeParse(e).success,I7=Z({jsonrpc:Q(`2.0`),...j7.shape}).strict(),L7=e=>I7.safeParse(e).success,R7=Z({jsonrpc:Q(`2.0`),id:N7,result:M7}).strict(),z7=e=>R7.safeParse(e).success,B7;(function(e){e[e.ConnectionClosed=-32e3]=`ConnectionClosed`,e[e.RequestTimeout=-32001]=`RequestTimeout`,e[e.ParseError=-32700]=`ParseError`,e[e.InvalidRequest=-32600]=`InvalidRequest`,e[e.MethodNotFound=-32601]=`MethodNotFound`,e[e.InvalidParams=-32602]=`InvalidParams`,e[e.InternalError=-32603]=`InternalError`,e[e.UrlElicitationRequired=-32042]=`UrlElicitationRequired`})(B7||={});var V7=Z({jsonrpc:Q(`2.0`),id:N7.optional(),error:Z({code:y6().int(),message:X(),data:N6().optional()})}).strict(),H7=e=>V7.safeParse(e).success,U7=V6([P7,I7,R7,V7]);V6([R7,V7]);var W7=M7.strict(),G7=A7.extend({requestId:N7.optional(),reason:X().optional()}),K7=j7.extend({method:Q(`notifications/cancelled`),params:G7}),q7=Z({icons:L6(Z({src:X(),mimeType:X().optional(),sizes:L6(X()).optional(),theme:Z6([`light`,`dark`]).optional()})).optional()}),J7=Z({name:X(),title:X().optional()}),Y7=J7.extend({...J7.shape,...q7.shape,version:X(),websiteUrl:X().optional(),description:X().optional()}),X7=T8(e=>e&&typeof e==`object`&&!Array.isArray(e)&&Object.keys(e).length===0?{form:{}}:e,W6(Z({form:W6(Z({applyDefaults:T6().optional()}),K6(X(),N6())).optional(),url:b7.optional()}),K6(X(),N6()).optional())),Z7=B6({list:b7.optional(),cancel:b7.optional(),requests:B6({sampling:B6({createMessage:b7.optional()}).optional(),elicitation:B6({create:b7.optional()}).optional()}).optional()}),Q7=B6({list:b7.optional(),cancel:b7.optional(),requests:B6({tools:B6({call:b7.optional()}).optional()}).optional()}),$7=Z({experimental:K6(X(),b7).optional(),sampling:Z({context:b7.optional(),tools:b7.optional()}).optional(),elicitation:X7.optional(),roots:Z({listChanged:T6().optional()}).optional(),tasks:Z7.optional(),extensions:K6(X(),b7).optional()}),e9=E7.extend({protocolVersion:X(),capabilities:$7,clientInfo:Y7}),t9=k7.extend({method:Q(`initialize`),params:e9}),$ee=Z({experimental:K6(X(),b7).optional(),logging:b7.optional(),completions:b7.optional(),prompts:Z({listChanged:T6().optional()}).optional(),resources:Z({subscribe:T6().optional(),listChanged:T6().optional()}).optional(),tools:Z({listChanged:T6().optional()}).optional(),tasks:Q7.optional(),extensions:K6(X(),b7).optional()}),ete=M7.extend({protocolVersion:X(),capabilities:$ee,serverInfo:Y7,instructions:X().optional()}),tte=j7.extend({method:Q(`notifications/initialized`),params:A7.optional()}),n9=k7.extend({method:Q(`ping`),params:E7.optional()}),nte=Z({progress:y6(),total:t8(y6()),message:t8(X())}),rte=Z({...A7.shape,...nte.shape,progressToken:x7}),r9=j7.extend({method:Q(`notifications/progress`),params:rte}),ite=E7.extend({cursor:S7.optional()}),i9=k7.extend({params:ite.optional()}),a9=M7.extend({nextCursor:S7.optional()}),ate=Z6([`working`,`input_required`,`completed`,`failed`,`cancelled`]),o9=Z({taskId:X(),status:ate,ttl:V6([y6(),j6()]),createdAt:X(),lastUpdatedAt:X(),pollInterval:t8(y6()),statusMessage:t8(X())}),s9=M7.extend({task:o9}),ote=A7.merge(o9),c9=j7.extend({method:Q(`notifications/tasks/status`),params:ote}),l9=k7.extend({method:Q(`tasks/get`),params:E7.extend({taskId:X()})}),u9=M7.merge(o9),d9=k7.extend({method:Q(`tasks/result`),params:E7.extend({taskId:X()})});M7.loose();var f9=i9.extend({method:Q(`tasks/list`)}),p9=a9.extend({tasks:L6(o9)}),m9=k7.extend({method:Q(`tasks/cancel`),params:E7.extend({taskId:X()})}),ste=M7.merge(o9),h9=Z({uri:X(),mimeType:t8(X()),_meta:K6(X(),N6()).optional()}),g9=h9.extend({text:X()}),_9=X().refine(e=>{try{return atob(e),!0}catch{return!1}},{message:`Invalid Base64 string`}),v9=h9.extend({blob:_9}),y9=Z6([`user`,`assistant`]),b9=Z({audience:L6(y9).optional(),priority:y6().min(0).max(1).optional(),lastModified:_3({offset:!0}).optional()}),x9=Z({...J7.shape,...q7.shape,uri:X(),description:t8(X()),mimeType:t8(X()),size:t8(y6()),annotations:b9.optional(),_meta:t8(B6({}))}),cte=Z({...J7.shape,...q7.shape,uriTemplate:X(),description:t8(X()),mimeType:t8(X()),annotations:b9.optional(),_meta:t8(B6({}))}),lte=i9.extend({method:Q(`resources/list`)}),S9=a9.extend({resources:L6(x9)}),ute=i9.extend({method:Q(`resources/templates/list`)}),dte=a9.extend({resourceTemplates:L6(cte)}),C9=E7.extend({uri:X()}),fte=C9,pte=k7.extend({method:Q(`resources/read`),params:fte}),w9=M7.extend({contents:L6(V6([g9,v9]))}),mte=j7.extend({method:Q(`notifications/resources/list_changed`),params:A7.optional()}),hte=C9,gte=k7.extend({method:Q(`resources/subscribe`),params:hte}),_te=C9,vte=k7.extend({method:Q(`resources/unsubscribe`),params:_te}),yte=A7.extend({uri:X()}),bte=j7.extend({method:Q(`notifications/resources/updated`),params:yte}),xte=Z({name:X(),description:t8(X()),required:t8(T6())}),Ste=Z({...J7.shape,...q7.shape,description:t8(X()),arguments:t8(L6(xte)),_meta:t8(B6({}))}),T9=i9.extend({method:Q(`prompts/list`)}),Cte=a9.extend({prompts:L6(Ste)}),wte=E7.extend({name:X(),arguments:K6(X(),X()).optional()}),Tte=k7.extend({method:Q(`prompts/get`),params:wte}),E9=Z({type:Q(`text`),text:X(),annotations:b9.optional(),_meta:K6(X(),N6()).optional()}),D9=Z({type:Q(`image`),data:_9,mimeType:X(),annotations:b9.optional(),_meta:K6(X(),N6()).optional()}),O9=Z({type:Q(`audio`),data:_9,mimeType:X(),annotations:b9.optional(),_meta:K6(X(),N6()).optional()}),Ete=Z({type:Q(`tool_use`),name:X(),id:X(),input:K6(X(),N6()),_meta:K6(X(),N6()).optional()}),k9=Z({type:Q(`resource`),resource:V6([g9,v9]),annotations:b9.optional(),_meta:K6(X(),N6()).optional()}),A9=x9.extend({type:Q(`resource_link`)}),j9=V6([E9,D9,O9,A9,k9]),Dte=Z({role:y9,content:j9}),Ote=M7.extend({description:X().optional(),messages:L6(Dte)}),kte=j7.extend({method:Q(`notifications/prompts/list_changed`),params:A7.optional()}),Ate=Z({title:X().optional(),readOnlyHint:T6().optional(),destructiveHint:T6().optional(),idempotentHint:T6().optional(),openWorldHint:T6().optional()}),jte=Z({taskSupport:Z6([`required`,`optional`,`forbidden`]).optional()}),M9=Z({...J7.shape,...q7.shape,description:X().optional(),inputSchema:Z({type:Q(`object`),properties:K6(X(),b7).optional(),required:L6(X()).optional()}).catchall(N6()),outputSchema:Z({type:Q(`object`),properties:K6(X(),b7).optional(),required:L6(X()).optional()}).catchall(N6()).optional(),annotations:Ate.optional(),execution:jte.optional(),_meta:K6(X(),N6()).optional()}),N9=i9.extend({method:Q(`tools/list`)}),Mte=a9.extend({tools:L6(M9)}),P9=M7.extend({content:L6(j9).default([]),structuredContent:K6(X(),N6()).optional(),isError:T6().optional()});P9.or(M7.extend({toolResult:N6()}));var Nte=D7.extend({name:X(),arguments:K6(X(),N6()).optional()}),F9=k7.extend({method:Q(`tools/call`),params:Nte}),Pte=j7.extend({method:Q(`notifications/tools/list_changed`),params:A7.optional()});Z({autoRefresh:T6().default(!0),debounceMs:y6().int().nonnegative().default(300)});var I9=Z6([`debug`,`info`,`notice`,`warning`,`error`,`critical`,`alert`,`emergency`]),Fte=E7.extend({level:I9}),Ite=k7.extend({method:Q(`logging/setLevel`),params:Fte}),Lte=A7.extend({level:I9,logger:X().optional(),data:N6()}),Rte=j7.extend({method:Q(`notifications/message`),params:Lte}),zte=Z({hints:L6(Z({name:X().optional()})).optional(),costPriority:y6().min(0).max(1).optional(),speedPriority:y6().min(0).max(1).optional(),intelligencePriority:y6().min(0).max(1).optional()}),Bte=Z({mode:Z6([`auto`,`required`,`none`]).optional()}),Vte=Z({type:Q(`tool_result`),toolUseId:X().describe(`The unique identifier for the corresponding tool call.`),content:L6(j9).default([]),structuredContent:Z({}).loose().optional(),isError:T6().optional(),_meta:K6(X(),N6()).optional()}),Hte=U6(`type`,[E9,D9,O9]),L9=U6(`type`,[E9,D9,O9,Ete,Vte]),Ute=Z({role:y9,content:V6([L9,L6(L9)]),_meta:K6(X(),N6()).optional()}),Wte=D7.extend({messages:L6(Ute),modelPreferences:zte.optional(),systemPrompt:X().optional(),includeContext:Z6([`none`,`thisServer`,`allServers`]).optional(),temperature:y6().optional(),maxTokens:y6().int(),stopSequences:L6(X()).optional(),metadata:b7.optional(),tools:L6(M9).optional(),toolChoice:Bte.optional()}),Gte=k7.extend({method:Q(`sampling/createMessage`),params:Wte}),R9=M7.extend({model:X(),stopReason:t8(Z6([`endTurn`,`stopSequence`,`maxTokens`]).or(X())),role:y9,content:Hte}),z9=M7.extend({model:X(),stopReason:t8(Z6([`endTurn`,`stopSequence`,`maxTokens`,`toolUse`]).or(X())),role:y9,content:V6([L9,L6(L9)])}),Kte=Z({type:Q(`boolean`),title:X().optional(),description:X().optional(),default:T6().optional()}),qte=Z({type:Q(`string`),title:X().optional(),description:X().optional(),minLength:y6().optional(),maxLength:y6().optional(),format:Z6([`email`,`uri`,`date`,`date-time`]).optional(),default:X().optional()}),Jte=Z({type:Z6([`number`,`integer`]),title:X().optional(),description:X().optional(),minimum:y6().optional(),maximum:y6().optional(),default:y6().optional()}),Yte=Z({type:Q(`string`),title:X().optional(),description:X().optional(),enum:L6(X()),default:X().optional()}),Xte=Z({type:Q(`string`),title:X().optional(),description:X().optional(),oneOf:L6(Z({const:X(),title:X()})),default:X().optional()}),Zte=V6([V6([Z({type:Q(`string`),title:X().optional(),description:X().optional(),enum:L6(X()),enumNames:L6(X()).optional(),default:X().optional()}),V6([Yte,Xte]),V6([Z({type:Q(`array`),title:X().optional(),description:X().optional(),minItems:y6().optional(),maxItems:y6().optional(),items:Z({type:Q(`string`),enum:L6(X())}),default:L6(X()).optional()}),Z({type:Q(`array`),title:X().optional(),description:X().optional(),minItems:y6().optional(),maxItems:y6().optional(),items:Z({anyOf:L6(Z({const:X(),title:X()}))}),default:L6(X()).optional()})])]),Kte,qte,Jte]),Qte=V6([D7.extend({mode:Q(`form`).optional(),message:X(),requestedSchema:Z({type:Q(`object`),properties:K6(X(),Zte),required:L6(X()).optional()})}),D7.extend({mode:Q(`url`),message:X(),elicitationId:X(),url:X().url()})]),$te=k7.extend({method:Q(`elicitation/create`),params:Qte}),ene=A7.extend({elicitationId:X()}),tne=j7.extend({method:Q(`notifications/elicitation/complete`),params:ene}),nne=M7.extend({action:Z6([`accept`,`decline`,`cancel`]),content:T8(e=>e===null?void 0:e,K6(X(),V6([X(),y6(),T6(),L6(X())])).optional())}),rne=Z({type:Q(`ref/resource`),uri:X()}),ine=Z({type:Q(`ref/prompt`),name:X()}),ane=E7.extend({ref:V6([ine,rne]),argument:Z({name:X(),value:X()}),context:Z({arguments:K6(X(),X()).optional()}).optional()}),one=k7.extend({method:Q(`completion/complete`),params:ane}),sne=M7.extend({completion:B6({values:L6(X()).max(100),total:t8(y6().int()),hasMore:t8(T6())})}),cne=Z({uri:X().startsWith(`file://`),name:X().optional(),_meta:K6(X(),N6()).optional()}),lne=k7.extend({method:Q(`roots/list`),params:E7.optional()}),une=M7.extend({roots:L6(cne)}),dne=j7.extend({method:Q(`notifications/roots/list_changed`),params:A7.optional()});V6([n9,t9,one,Ite,Tte,T9,lte,ute,pte,gte,vte,F9,N9,l9,d9,f9,m9]),V6([K7,r9,tte,dne,c9]),V6([W7,R9,z9,nne,une,u9,p9,s9]),V6([n9,Gte,$te,lne,l9,d9,f9,m9]),V6([K7,r9,Rte,bte,mte,Pte,kte,c9,tne]),V6([W7,ete,sne,Ote,Cte,S9,dte,w9,P9,Mte,u9,p9,s9]);var B9=class e extends Error{constructor(e,t,n){super(`MCP error ${e}: ${t}`),this.code=e,this.data=n,this.name=`McpError`}static fromError(t,n,r){if(t===B7.UrlElicitationRequired&&r){let e=r;if(e.elicitations)return new fne(e.elicitations,n)}return new e(t,n,r)}},fne=class extends B9{constructor(e,t=`URL elicitation${e.length>1?`s`:``} required`){super(B7.UrlElicitationRequired,t,{elicitations:e})}get elicitations(){return this.data?.elicitations??[]}};function V9(e){return e===`completed`||e===`failed`||e===`cancelled`}function H9(e){let t=f3(e)?.method;if(!t)throw Error(`Schema is missing a method literal`);let n=p3(t);if(typeof n!=`string`)throw Error(`Schema method literal must be a string`);return n}function U9(e,t){let n=d3(e,t);if(!n.success)throw n.error;return n.data}var pne=class{constructor(e){this._options=e,this._requestMessageId=0,this._requestHandlers=new Map,this._requestHandlerAbortControllers=new Map,this._notificationHandlers=new Map,this._responseHandlers=new Map,this._progressHandlers=new Map,this._timeoutInfo=new Map,this._pendingDebouncedNotifications=new Set,this._taskProgressTokens=new Map,this._requestResolvers=new Map,this.setNotificationHandler(K7,e=>{this._oncancel(e)}),this.setNotificationHandler(r9,e=>{this._onprogress(e)}),this.setRequestHandler(n9,e=>({})),this._taskStore=e?.taskStore,this._taskMessageQueue=e?.taskMessageQueue,this._taskStore&&(this.setRequestHandler(l9,async(e,t)=>{let n=await this._taskStore.getTask(e.params.taskId,t.sessionId);if(!n)throw new B9(B7.InvalidParams,`Failed to retrieve task: Task not found`);return{...n}}),this.setRequestHandler(d9,async(e,t)=>{let n=async()=>{let r=e.params.taskId;if(this._taskMessageQueue){let e;for(;e=await this._taskMessageQueue.dequeue(r,t.sessionId);){if(e.type===`response`||e.type===`error`){let t=e.message,n=t.id,r=this._requestResolvers.get(n);if(r)if(this._requestResolvers.delete(n),e.type===`response`)r(t);else{let e=t;r(new B9(e.error.code,e.error.message,e.error.data))}else{let t=e.type===`response`?`Response`:`Error`;this._onerror(Error(`${t} handler missing for request ${n}`))}continue}await this._transport?.send(e.message,{relatedRequestId:t.requestId})}}let i=await this._taskStore.getTask(r,t.sessionId);if(!i)throw new B9(B7.InvalidParams,`Task not found: ${r}`);if(!V9(i.status))return await this._waitForTaskUpdate(r,t.signal),await n();if(V9(i.status)){let e=await this._taskStore.getTaskResult(r,t.sessionId);return this._clearTaskQueue(r),{...e,_meta:{...e._meta,[y7]:{taskId:r}}}}return await n()};return await n()}),this.setRequestHandler(f9,async(e,t)=>{try{let{tasks:n,nextCursor:r}=await this._taskStore.listTasks(e.params?.cursor,t.sessionId);return{tasks:n,nextCursor:r,_meta:{}}}catch(e){throw new B9(B7.InvalidParams,`Failed to list tasks: ${e instanceof Error?e.message:String(e)}`)}}),this.setRequestHandler(m9,async(e,t)=>{try{let n=await this._taskStore.getTask(e.params.taskId,t.sessionId);if(!n)throw new B9(B7.InvalidParams,`Task not found: ${e.params.taskId}`);if(V9(n.status))throw new B9(B7.InvalidParams,`Cannot cancel task in terminal status: ${n.status}`);await this._taskStore.updateTaskStatus(e.params.taskId,`cancelled`,`Client cancelled task execution.`,t.sessionId),this._clearTaskQueue(e.params.taskId);let r=await this._taskStore.getTask(e.params.taskId,t.sessionId);if(!r)throw new B9(B7.InvalidParams,`Task not found after cancellation: ${e.params.taskId}`);return{_meta:{},...r}}catch(e){throw e instanceof B9?e:new B9(B7.InvalidRequest,`Failed to cancel task: ${e instanceof Error?e.message:String(e)}`)}}))}async _oncancel(e){e.params.requestId&&this._requestHandlerAbortControllers.get(e.params.requestId)?.abort(e.params.reason)}_setupTimeout(e,t,n,r,i=!1){this._timeoutInfo.set(e,{timeoutId:setTimeout(r,t),startTime:Date.now(),timeout:t,maxTotalTimeout:n,resetTimeoutOnProgress:i,onTimeout:r})}_resetTimeout(e){let t=this._timeoutInfo.get(e);if(!t)return!1;let n=Date.now()-t.startTime;if(t.maxTotalTimeout&&n>=t.maxTotalTimeout)throw this._timeoutInfo.delete(e),B9.fromError(B7.RequestTimeout,`Maximum total timeout exceeded`,{maxTotalTimeout:t.maxTotalTimeout,totalElapsed:n});return clearTimeout(t.timeoutId),t.timeoutId=setTimeout(t.onTimeout,t.timeout),!0}_cleanupTimeout(e){let t=this._timeoutInfo.get(e);t&&(clearTimeout(t.timeoutId),this._timeoutInfo.delete(e))}async connect(e){if(this._transport)throw Error(`Already connected to a transport. Call close() before connecting to a new transport, or use a separate Protocol instance per connection.`);this._transport=e;let t=this.transport?.onclose;this._transport.onclose=()=>{t?.(),this._onclose()};let n=this.transport?.onerror;this._transport.onerror=e=>{n?.(e),this._onerror(e)};let r=this._transport?.onmessage;this._transport.onmessage=(e,t)=>{r?.(e,t),z7(e)||H7(e)?this._onresponse(e):F7(e)?this._onrequest(e,t):L7(e)?this._onnotification(e):this._onerror(Error(`Unknown message type: ${JSON.stringify(e)}`))},await this._transport.start()}_onclose(){let e=this._responseHandlers;this._responseHandlers=new Map,this._progressHandlers.clear(),this._taskProgressTokens.clear(),this._pendingDebouncedNotifications.clear();for(let e of this._timeoutInfo.values())clearTimeout(e.timeoutId);this._timeoutInfo.clear();for(let e of this._requestHandlerAbortControllers.values())e.abort();this._requestHandlerAbortControllers.clear();let t=B9.fromError(B7.ConnectionClosed,`Connection closed`);this._transport=void 0,this.onclose?.();for(let n of e.values())n(t)}_onerror(e){this.onerror?.(e)}_onnotification(e){let t=this._notificationHandlers.get(e.method)??this.fallbackNotificationHandler;t!==void 0&&Promise.resolve().then(()=>t(e)).catch(e=>this._onerror(Error(`Uncaught error in notification handler: ${e}`)))}_onrequest(e,t){let n=this._requestHandlers.get(e.method)??this.fallbackRequestHandler,r=this._transport,i=e.params?._meta?.[y7]?.taskId;if(n===void 0){let t={jsonrpc:`2.0`,id:e.id,error:{code:B7.MethodNotFound,message:`Method not found`}};i&&this._taskMessageQueue?this._enqueueTaskMessage(i,{type:`error`,message:t,timestamp:Date.now()},r?.sessionId).catch(e=>this._onerror(Error(`Failed to enqueue error response: ${e}`))):r?.send(t).catch(e=>this._onerror(Error(`Failed to send an error response: ${e}`)));return}let a=new AbortController;this._requestHandlerAbortControllers.set(e.id,a);let o=O7(e.params)?e.params.task:void 0,s=this._taskStore?this.requestTaskStore(e,r?.sessionId):void 0,c={signal:a.signal,sessionId:r?.sessionId,_meta:e.params?._meta,sendNotification:async t=>{if(a.signal.aborted)return;let n={relatedRequestId:e.id};i&&(n.relatedTask={taskId:i}),await this.notification(t,n)},sendRequest:async(t,n,r)=>{if(a.signal.aborted)throw new B9(B7.ConnectionClosed,`Request was cancelled`);let o={...r,relatedRequestId:e.id};i&&!o.relatedTask&&(o.relatedTask={taskId:i});let c=o.relatedTask?.taskId??i;return c&&s&&await s.updateTaskStatus(c,`input_required`),await this.request(t,n,o)},authInfo:t?.authInfo,requestId:e.id,requestInfo:t?.requestInfo,taskId:i,taskStore:s,taskRequestedTtl:o?.ttl,closeSSEStream:t?.closeSSEStream,closeStandaloneSSEStream:t?.closeStandaloneSSEStream};Promise.resolve().then(()=>{o&&this.assertTaskHandlerCapability(e.method)}).then(()=>n(e,c)).then(async t=>{if(a.signal.aborted)return;let n={result:t,jsonrpc:`2.0`,id:e.id};i&&this._taskMessageQueue?await this._enqueueTaskMessage(i,{type:`response`,message:n,timestamp:Date.now()},r?.sessionId):await r?.send(n)},async t=>{if(a.signal.aborted)return;let n={jsonrpc:`2.0`,id:e.id,error:{code:Number.isSafeInteger(t.code)?t.code:B7.InternalError,message:t.message??`Internal error`,...t.data!==void 0&&{data:t.data}}};i&&this._taskMessageQueue?await this._enqueueTaskMessage(i,{type:`error`,message:n,timestamp:Date.now()},r?.sessionId):await r?.send(n)}).catch(e=>this._onerror(Error(`Failed to send response: ${e}`))).finally(()=>{this._requestHandlerAbortControllers.get(e.id)===a&&this._requestHandlerAbortControllers.delete(e.id)})}_onprogress(e){let{progressToken:t,...n}=e.params,r=Number(t),i=this._progressHandlers.get(r);if(!i){this._onerror(Error(`Received a progress notification for an unknown token: ${JSON.stringify(e)}`));return}let a=this._responseHandlers.get(r),o=this._timeoutInfo.get(r);if(o&&a&&o.resetTimeoutOnProgress)try{this._resetTimeout(r)}catch(e){this._responseHandlers.delete(r),this._progressHandlers.delete(r),this._cleanupTimeout(r),a(e);return}i(n)}_onresponse(e){let t=Number(e.id),n=this._requestResolvers.get(t);if(n){this._requestResolvers.delete(t),z7(e)?n(e):n(new B9(e.error.code,e.error.message,e.error.data));return}let r=this._responseHandlers.get(t);if(r===void 0){this._onerror(Error(`Received a response for an unknown message ID: ${JSON.stringify(e)}`));return}this._responseHandlers.delete(t),this._cleanupTimeout(t);let i=!1;if(z7(e)&&e.result&&typeof e.result==`object`){let n=e.result;if(n.task&&typeof n.task==`object`){let e=n.task;typeof e.taskId==`string`&&(i=!0,this._taskProgressTokens.set(e.taskId,t))}}i||this._progressHandlers.delete(t),z7(e)?r(e):r(B9.fromError(e.error.code,e.error.message,e.error.data))}get transport(){return this._transport}async close(){await this._transport?.close()}async*requestStream(e,t,n){let{task:r}=n??{};if(!r){try{yield{type:`result`,result:await this.request(e,t,n)}}catch(e){yield{type:`error`,error:e instanceof B9?e:new B9(B7.InternalError,String(e))}}return}let i;try{let r=await this.request(e,s9,n);if(r.task)i=r.task.taskId,yield{type:`taskCreated`,task:r.task};else throw new B9(B7.InternalError,`Task creation did not return a task`);for(;;){let e=await this.getTask({taskId:i},n);if(yield{type:`taskStatus`,task:e},V9(e.status)){e.status===`completed`?yield{type:`result`,result:await this.getTaskResult({taskId:i},t,n)}:e.status===`failed`?yield{type:`error`,error:new B9(B7.InternalError,`Task ${i} failed`)}:e.status===`cancelled`&&(yield{type:`error`,error:new B9(B7.InternalError,`Task ${i} was cancelled`)});return}if(e.status===`input_required`){yield{type:`result`,result:await this.getTaskResult({taskId:i},t,n)};return}let r=e.pollInterval??this._options?.defaultTaskPollInterval??1e3;await new Promise(e=>setTimeout(e,r)),n?.signal?.throwIfAborted()}}catch(e){yield{type:`error`,error:e instanceof B9?e:new B9(B7.InternalError,String(e))}}}request(e,t,n){let{relatedRequestId:r,resumptionToken:i,onresumptiontoken:a,task:o,relatedTask:s}=n??{};return new Promise((c,l)=>{let u=e=>{l(e)};if(!this._transport){u(Error(`Not connected`));return}if(this._options?.enforceStrictCapabilities===!0)try{this.assertCapabilityForMethod(e.method),o&&this.assertTaskCapability(e.method)}catch(e){u(e);return}n?.signal?.throwIfAborted();let d=this._requestMessageId++,f={...e,jsonrpc:`2.0`,id:d};n?.onprogress&&(this._progressHandlers.set(d,n.onprogress),f.params={...e.params,_meta:{...e.params?._meta||{},progressToken:d}}),o&&(f.params={...f.params,task:o}),s&&(f.params={...f.params,_meta:{...f.params?._meta||{},[y7]:s}});let p=e=>{this._responseHandlers.delete(d),this._progressHandlers.delete(d),this._cleanupTimeout(d),this._transport?.send({jsonrpc:`2.0`,method:`notifications/cancelled`,params:{requestId:d,reason:String(e)}},{relatedRequestId:r,resumptionToken:i,onresumptiontoken:a}).catch(e=>this._onerror(Error(`Failed to send cancellation: ${e}`))),l(e instanceof B9?e:new B9(B7.RequestTimeout,String(e)))};this._responseHandlers.set(d,e=>{if(!n?.signal?.aborted){if(e instanceof Error)return l(e);try{let n=d3(t,e.result);n.success?c(n.data):l(n.error)}catch(e){l(e)}}}),n?.signal?.addEventListener(`abort`,()=>{p(n?.signal?.reason)});let m=n?.timeout??6e4;this._setupTimeout(d,m,n?.maxTotalTimeout,()=>p(B9.fromError(B7.RequestTimeout,`Request timed out`,{timeout:m})),n?.resetTimeoutOnProgress??!1);let h=s?.taskId;h?(this._requestResolvers.set(d,e=>{let t=this._responseHandlers.get(d);t?t(e):this._onerror(Error(`Response handler missing for side-channeled request ${d}`))}),this._enqueueTaskMessage(h,{type:`request`,message:f,timestamp:Date.now()}).catch(e=>{this._cleanupTimeout(d),l(e)})):this._transport.send(f,{relatedRequestId:r,resumptionToken:i,onresumptiontoken:a}).catch(e=>{this._cleanupTimeout(d),l(e)})})}async getTask(e,t){return this.request({method:`tasks/get`,params:e},u9,t)}async getTaskResult(e,t,n){return this.request({method:`tasks/result`,params:e},t,n)}async listTasks(e,t){return this.request({method:`tasks/list`,params:e},p9,t)}async cancelTask(e,t){return this.request({method:`tasks/cancel`,params:e},ste,t)}async notification(e,t){if(!this._transport)throw Error(`Not connected`);this.assertNotificationCapability(e.method);let n=t?.relatedTask?.taskId;if(n){let r={...e,jsonrpc:`2.0`,params:{...e.params,_meta:{...e.params?._meta||{},[y7]:t.relatedTask}}};await this._enqueueTaskMessage(n,{type:`notification`,message:r,timestamp:Date.now()});return}if((this._options?.debouncedNotificationMethods??[]).includes(e.method)&&!e.params&&!t?.relatedRequestId&&!t?.relatedTask){if(this._pendingDebouncedNotifications.has(e.method))return;this._pendingDebouncedNotifications.add(e.method),Promise.resolve().then(()=>{if(this._pendingDebouncedNotifications.delete(e.method),!this._transport)return;let n={...e,jsonrpc:`2.0`};t?.relatedTask&&(n={...n,params:{...n.params,_meta:{...n.params?._meta||{},[y7]:t.relatedTask}}}),this._transport?.send(n,t).catch(e=>this._onerror(e))});return}let r={...e,jsonrpc:`2.0`};t?.relatedTask&&(r={...r,params:{...r.params,_meta:{...r.params?._meta||{},[y7]:t.relatedTask}}}),await this._transport.send(r,t)}setRequestHandler(e,t){let n=H9(e);this.assertRequestHandlerCapability(n),this._requestHandlers.set(n,(n,r)=>{let i=U9(e,n);return Promise.resolve(t(i,r))})}removeRequestHandler(e){this._requestHandlers.delete(e)}assertCanSetRequestHandler(e){if(this._requestHandlers.has(e))throw Error(`A request handler for ${e} already exists, which would be overridden`)}setNotificationHandler(e,t){let n=H9(e);this._notificationHandlers.set(n,n=>{let r=U9(e,n);return Promise.resolve(t(r))})}removeNotificationHandler(e){this._notificationHandlers.delete(e)}_cleanupTaskProgressHandler(e){let t=this._taskProgressTokens.get(e);t!==void 0&&(this._progressHandlers.delete(t),this._taskProgressTokens.delete(e))}async _enqueueTaskMessage(e,t,n){if(!this._taskStore||!this._taskMessageQueue)throw Error(`Cannot enqueue task message: taskStore and taskMessageQueue are not configured`);let r=this._options?.maxTaskQueueSize;await this._taskMessageQueue.enqueue(e,t,n,r)}async _clearTaskQueue(e,t){if(this._taskMessageQueue){let n=await this._taskMessageQueue.dequeueAll(e,t);for(let t of n)if(t.type===`request`&&F7(t.message)){let n=t.message.id,r=this._requestResolvers.get(n);r?(r(new B9(B7.InternalError,`Task cancelled or completed`)),this._requestResolvers.delete(n)):this._onerror(Error(`Resolver missing for request ${n} during task ${e} cleanup`))}}}async _waitForTaskUpdate(e,t){let n=this._options?.defaultTaskPollInterval??1e3;try{let t=await this._taskStore?.getTask(e);t?.pollInterval&&(n=t.pollInterval)}catch{}return new Promise((e,r)=>{if(t.aborted){r(new B9(B7.InvalidRequest,`Request cancelled`));return}let i=setTimeout(e,n);t.addEventListener(`abort`,()=>{clearTimeout(i),r(new B9(B7.InvalidRequest,`Request cancelled`))},{once:!0})})}requestTaskStore(e,t){let n=this._taskStore;if(!n)throw Error(`No task store configured`);return{createTask:async r=>{if(!e)throw Error(`No request provided`);return await n.createTask(r,e.id,{method:e.method,params:e.params},t)},getTask:async e=>{let r=await n.getTask(e,t);if(!r)throw new B9(B7.InvalidParams,`Failed to retrieve task: Task not found`);return r},storeTaskResult:async(e,r,i)=>{await n.storeTaskResult(e,r,i,t);let a=await n.getTask(e,t);if(a){let t=c9.parse({method:`notifications/tasks/status`,params:a});await this.notification(t),V9(a.status)&&this._cleanupTaskProgressHandler(e)}},getTaskResult:e=>n.getTaskResult(e,t),updateTaskStatus:async(e,r,i)=>{let a=await n.getTask(e,t);if(!a)throw new B9(B7.InvalidParams,`Task "${e}" not found - it may have been cleaned up`);if(V9(a.status))throw new B9(B7.InvalidParams,`Cannot update task "${e}" from terminal status "${a.status}" to "${r}". Terminal states (completed, failed, cancelled) cannot transition to other states.`);await n.updateTaskStatus(e,r,i,t);let o=await n.getTask(e,t);if(o){let t=c9.parse({method:`notifications/tasks/status`,params:o});await this.notification(t),V9(o.status)&&this._cleanupTaskProgressHandler(e)}},listTasks:e=>n.listTasks(e,t)}}};function W9(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function mne(e,t){let n={...e};for(let e in t){let r=e,i=t[r];if(i===void 0)continue;let a=n[r];n[r]=W9(a)&&W9(i)?{...a,...i}:i}return n}var hne=`modulepreload`,gne=function(e,t){return new URL(e,t).href},G9={},_ne=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=document.getElementsByTagName(`link`),i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}function s(e){return import.meta.resolve?import.meta.resolve(e):new URL(e,import.meta.url).href}r=o(t.map(t=>{if(t=gne(t,n),t=s(t),t in G9)return;G9[t]=!0;let r=t.endsWith(`.css`);for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.href===t&&(!r||i.rel===`stylesheet`))return}let i=document.createElement(`link`);if(i.rel=r?`stylesheet`:hne,r||(i.as=`script`),i.crossOrigin=``,i.href=t,a&&i.setAttribute(`nonce`,a),document.head.appendChild(i),r)return new Promise((e,n)=>{i.addEventListener(`load`,e),i.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${t}`)))})}))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})};v7(),(e=>typeof d<`u`?d:typeof Proxy<`u`?new Proxy(e,{get:(e,t)=>(typeof d<`u`?d:e)[t]}):e)(function(e){if(typeof d<`u`)return d.apply(this,arguments);throw Error(`Dynamic require of "`+e+`" is not supported`)});var vne=class extends pne{_registeredMethods=new Set;_eventSlots=new Map;onEventDispatch(e,t){}_ensureEventSlot(e){let t=this._eventSlots.get(e);if(!t){let n=this.eventSchemas[e];if(!n)throw Error(`Unknown event: ${String(e)}`);t={listeners:[]},this._eventSlots.set(e,t);let r=n.shape.method.value;this._registeredMethods.add(r);let i=t;super.setNotificationHandler(n,t=>{let n=t.params;this.onEventDispatch(e,n),i.onHandler?.(n);for(let e of[...i.listeners])e(n)})}return t}setEventHandler(e,t){let n=this._ensureEventSlot(e);n.onHandler&&t&&console.warn(`[MCP Apps] on${String(e)} handler replaced. Use addEventListener("${String(e)}", …) to add multiple listeners without replacing.`),n.onHandler=t}getEventHandler(e){return this._eventSlots.get(e)?.onHandler}addEventListener(e,t){this._ensureEventSlot(e).listeners.push(t)}removeEventListener(e,t){let n=this._eventSlots.get(e);if(!n)return;let r=n.listeners.indexOf(t);r!==-1&&n.listeners.splice(r,1)}setRequestHandler=(e,t)=>{this._assertMethodNotRegistered(e,`setRequestHandler`),super.setRequestHandler(e,t)};setNotificationHandler=(e,t)=>{this._assertMethodNotRegistered(e,`setNotificationHandler`),super.setNotificationHandler(e,t)};warnIfRequestHandlerReplaced(e,t,n){t&&n&&console.warn(`[MCP Apps] ${e} handler replaced. Previous handler will no longer be called.`)}replaceRequestHandler=(e,t)=>{let n=e.shape.method.value;this._registeredMethods.add(n),super.setRequestHandler(e,t)};_assertMethodNotRegistered(e,t){let n=e.shape.method.value;if(this._registeredMethods.has(n))throw Error(`Handler for "${n}" already registered (via ${t}). Use addEventListener() to attach multiple listeners, or the on* setter for replace semantics.`);this._registeredMethods.add(n)}},yne=`2026-01-26`,K9=class{eventTarget;eventSource;messageListener;constructor(e=window.parent,t){this.eventTarget=e,this.eventSource=t,this.messageListener=e=>{if(t&&e.source!==this.eventSource){console.debug(`Ignoring message from unknown source`,e);return}let n=U7.safeParse(e.data);n.success?(console.debug(`Parsed message`,n.data),this.onmessage?.(n.data)):e.data?.jsonrpc===`2.0`?(console.error(`Failed to parse message`,n.error.message,e),this.onerror?.(Error(`Invalid JSON-RPC message received: `+n.error.message))):console.debug(`Ignoring non-JSON-RPC message`,n.error.message,e)}}async start(){window.addEventListener(`message`,this.messageListener)}async send(e,t){e.method!==`ui/notifications/tool-input-partial`&&console.debug(`Sending message`,e),this.eventTarget.postMessage(e,`*`)}async close(){window.removeEventListener(`message`,this.messageListener),this.onclose?.()}onclose;onerror;onmessage;sessionId;setProtocolVersion},bne=V6([Q(`light`),Q(`dark`)]).describe(`Color theme preference for the host environment.`),q9=V6([Q(`inline`),Q(`fullscreen`),Q(`pip`)]).describe(`Display mode for UI presentation.`),xne=K6(V6([Q(`--color-background-primary`),Q(`--color-background-secondary`),Q(`--color-background-tertiary`),Q(`--color-background-inverse`),Q(`--color-background-ghost`),Q(`--color-background-info`),Q(`--color-background-danger`),Q(`--color-background-success`),Q(`--color-background-warning`),Q(`--color-background-disabled`),Q(`--color-text-primary`),Q(`--color-text-secondary`),Q(`--color-text-tertiary`),Q(`--color-text-inverse`),Q(`--color-text-ghost`),Q(`--color-text-info`),Q(`--color-text-danger`),Q(`--color-text-success`),Q(`--color-text-warning`),Q(`--color-text-disabled`),Q(`--color-border-primary`),Q(`--color-border-secondary`),Q(`--color-border-tertiary`),Q(`--color-border-inverse`),Q(`--color-border-ghost`),Q(`--color-border-info`),Q(`--color-border-danger`),Q(`--color-border-success`),Q(`--color-border-warning`),Q(`--color-border-disabled`),Q(`--color-ring-primary`),Q(`--color-ring-secondary`),Q(`--color-ring-inverse`),Q(`--color-ring-info`),Q(`--color-ring-danger`),Q(`--color-ring-success`),Q(`--color-ring-warning`),Q(`--font-sans`),Q(`--font-mono`),Q(`--font-weight-normal`),Q(`--font-weight-medium`),Q(`--font-weight-semibold`),Q(`--font-weight-bold`),Q(`--font-text-xs-size`),Q(`--font-text-sm-size`),Q(`--font-text-md-size`),Q(`--font-text-lg-size`),Q(`--font-heading-xs-size`),Q(`--font-heading-sm-size`),Q(`--font-heading-md-size`),Q(`--font-heading-lg-size`),Q(`--font-heading-xl-size`),Q(`--font-heading-2xl-size`),Q(`--font-heading-3xl-size`),Q(`--font-text-xs-line-height`),Q(`--font-text-sm-line-height`),Q(`--font-text-md-line-height`),Q(`--font-text-lg-line-height`),Q(`--font-heading-xs-line-height`),Q(`--font-heading-sm-line-height`),Q(`--font-heading-md-line-height`),Q(`--font-heading-lg-line-height`),Q(`--font-heading-xl-line-height`),Q(`--font-heading-2xl-line-height`),Q(`--font-heading-3xl-line-height`),Q(`--border-radius-xs`),Q(`--border-radius-sm`),Q(`--border-radius-md`),Q(`--border-radius-lg`),Q(`--border-radius-xl`),Q(`--border-radius-full`),Q(`--border-width-regular`),Q(`--shadow-hairline`),Q(`--shadow-sm`),Q(`--shadow-md`),Q(`--shadow-lg`)]).describe(`CSS variable keys available to MCP apps for theming.`).describe(`Style variables for theming MCP apps. Individual style keys are optional - hosts may provide any subset of these values. Values are strings containing CSS values (colors, sizes, font stacks, etc.). Note: This type uses \`Record\` rather than \`Partial>\` -for compatibility with Zod schema generation. Both are functionally equivalent for validation.`),P6([X(),C6()]).describe(`Style variables for theming MCP apps. +for compatibility with Zod schema generation. Both are functionally equivalent for validation.`),V6([X(),A6()]).describe(`Style variables for theming MCP apps. Individual style keys are optional - hosts may provide any subset of these values. Values are strings containing CSS values (colors, sizes, font stacks, etc.). @@ -107,10 +107,10 @@ Values are strings containing CSS values (colors, sizes, font stacks, etc.). Note: This type uses \`Record\` rather than \`Partial>\` -for compatibility with Zod schema generation. Both are functionally equivalent for validation.`);Z({method:Q(`ui/open-link`),params:Z({url:X().describe(`URL to open in the host's browser`)})});var fne=Z({isError:v6().optional().describe(`True if the host failed to open the URL (e.g., due to security policy).`)}).passthrough(),pne=Z({isError:v6().optional().describe(`True if the download failed (e.g., user cancelled or host denied).`)}).passthrough(),mne=Z({isError:v6().optional().describe(`True if the host rejected or failed to deliver the message.`)}).passthrough();Z({method:Q(`ui/notifications/sandbox-proxy-ready`),params:Z({})});var q9=Z({connectDomains:A6(X()).optional().describe(`Origins for network requests (fetch/XHR/WebSocket). +for compatibility with Zod schema generation. Both are functionally equivalent for validation.`);Z({method:Q(`ui/open-link`),params:Z({url:X().describe(`URL to open in the host's browser`)})});var Sne=Z({isError:T6().optional().describe(`True if the host failed to open the URL (e.g., due to security policy).`)}).passthrough(),Cne=Z({isError:T6().optional().describe(`True if the download failed (e.g., user cancelled or host denied).`)}).passthrough(),wne=Z({isError:T6().optional().describe(`True if the host rejected or failed to deliver the message.`)}).passthrough();Z({method:Q(`ui/notifications/sandbox-proxy-ready`),params:Z({})});var J9=Z({connectDomains:L6(X()).optional().describe(`Origins for network requests (fetch/XHR/WebSocket). - Maps to CSP \`connect-src\` directive -- Empty or omitted → no network connections (secure default)`),resourceDomains:A6(X()).optional().describe("Origins for static resources (images, scripts, stylesheets, fonts, media).\n\n- Maps to CSP `img-src`, `script-src`, `style-src`, `font-src`, `media-src` directives\n- Wildcard subdomains supported: `https://*.example.com`\n- Empty or omitted → no network resources (secure default)"),frameDomains:A6(X()).optional().describe("Origins for nested iframes.\n\n- Maps to CSP `frame-src` directive\n- Empty or omitted → no nested iframes allowed (`frame-src 'none'`)"),baseUriDomains:A6(X()).optional().describe("Allowed base URIs for the document.\n\n- Maps to CSP `base-uri` directive\n- Empty or omitted → only same origin allowed (`base-uri 'self'`)")}),J9=Z({camera:Z({}).optional().describe(`Request camera access. +- Empty or omitted → no network connections (secure default)`),resourceDomains:L6(X()).optional().describe("Origins for static resources (images, scripts, stylesheets, fonts, media).\n\n- Maps to CSP `img-src`, `script-src`, `style-src`, `font-src`, `media-src` directives\n- Wildcard subdomains supported: `https://*.example.com`\n- Empty or omitted → no network resources (secure default)"),frameDomains:L6(X()).optional().describe("Origins for nested iframes.\n\n- Maps to CSP `frame-src` directive\n- Empty or omitted → no nested iframes allowed (`frame-src 'none'`)"),baseUriDomains:L6(X()).optional().describe("Allowed base URIs for the document.\n\n- Maps to CSP `base-uri` directive\n- Empty or omitted → only same origin allowed (`base-uri 'self'`)")}),Y9=Z({camera:Z({}).optional().describe(`Request camera access. Maps to Permission Policy \`camera\` feature.`),microphone:Z({}).optional().describe(`Request microphone access. @@ -118,7 +118,7 @@ Maps to Permission Policy \`geolocation\` feature.`),clipboardWrite:Z({}).optional().describe(`Request clipboard write access. -Maps to Permission Policy \`clipboard-write\` feature.`)});Z({method:Q(`ui/notifications/size-changed`),params:Z({width:f6().optional().describe(`New width in pixels.`),height:f6().optional().describe(`New height in pixels.`)})});var hne=Z({method:Q(`ui/notifications/tool-input`),params:Z({arguments:z6(X(),E6().describe(`Complete tool call arguments as key-value pairs.`)).optional().describe(`Complete tool call arguments as key-value pairs.`)})}),gne=Z({method:Q(`ui/notifications/tool-input-partial`),params:Z({arguments:z6(X(),E6().describe(`Partial tool call arguments (incomplete, may change).`)).optional().describe(`Partial tool call arguments (incomplete, may change).`)})}),_ne=Z({method:Q(`ui/notifications/tool-cancelled`),params:Z({reason:X().optional().describe(`Optional reason for the cancellation (e.g., "user action", "timeout").`)})}),vne=Z({fonts:X().optional()}),yne=Z({variables:dne.optional().describe(`CSS variables for theming the app.`),css:vne.optional().describe(`CSS blocks that apps can inject.`)}),bne=Z({method:Q(`ui/resource-teardown`),params:Z({})});z6(X(),E6());var Y9=Z({text:Z({}).optional().describe(`Host supports text content blocks.`),image:Z({}).optional().describe(`Host supports image content blocks.`),audio:Z({}).optional().describe(`Host supports audio content blocks.`),resource:Z({}).optional().describe(`Host supports resource content blocks.`),resourceLink:Z({}).optional().describe(`Host supports resource link content blocks.`),structuredContent:Z({}).optional().describe(`Host supports structured content.`)});Z({method:Q(`ui/notifications/request-teardown`),params:Z({}).optional()});var xne=Z({experimental:z6(X(),z6(X(),T6()).describe(`Experimental features keyed by identifier.`)).optional().describe(`Experimental features keyed by identifier.`),openLinks:Z({}).optional().describe(`Host supports opening external URLs.`),downloadFile:Z({}).optional().describe(`Host supports file downloads via ui/download-file.`),serverTools:Z({listChanged:v6().optional().describe(`Host supports tools/list_changed notifications.`)}).optional().describe(`Host can proxy tool calls to the MCP server.`),serverResources:Z({listChanged:v6().optional().describe(`Host supports resources/list_changed notifications.`)}).optional().describe(`Host can proxy resource reads to the MCP server.`),logging:Z({}).optional().describe(`Host accepts log messages.`),sandbox:Z({permissions:J9.optional().describe(`Permissions granted by the host (camera, microphone, geolocation).`),csp:q9.optional().describe(`CSP domains approved by the host.`)}).optional().describe(`Sandbox configuration applied by the host.`),updateModelContext:Y9.optional().describe(`Host accepts context updates (ui/update-model-context) to be included in the model's context for future turns.`),message:Y9.optional().describe(`Host supports receiving content messages (ui/message) from the view.`),sampling:Z({tools:Z({}).optional().describe("Host supports tool use via `tools` and `toolChoice` parameters.")}).optional().describe("Host supports LLM sampling (sampling/createMessage) from the view.\nMirrors the MCP `ClientCapabilities.sampling` shape so hosts can pass it through.")}),Sne=Z({experimental:z6(X(),z6(X(),T6()).describe(`Experimental features keyed by identifier.`)).optional().describe(`Experimental features keyed by identifier.`),tools:Z({listChanged:v6().optional().describe(`App supports tools/list_changed notifications.`)}).optional().describe(`App exposes MCP-style tools that the host can call.`),availableDisplayModes:A6(K9).optional().describe(`Display modes the app supports.`)});Z({method:Q(`ui/notifications/initialized`),params:Z({}).optional()}),Z({csp:q9.optional().describe(`Content Security Policy configuration for UI resources.`),permissions:J9.optional().describe(`Sandbox permissions requested by the UI resource.`),domain:X().optional().describe(`Dedicated origin for view sandbox. +Maps to Permission Policy \`clipboard-write\` feature.`)});Z({method:Q(`ui/notifications/size-changed`),params:Z({width:y6().optional().describe(`New width in pixels.`),height:y6().optional().describe(`New height in pixels.`)})});var Tne=Z({method:Q(`ui/notifications/tool-input`),params:Z({arguments:K6(X(),N6().describe(`Complete tool call arguments as key-value pairs.`)).optional().describe(`Complete tool call arguments as key-value pairs.`)})}),Ene=Z({method:Q(`ui/notifications/tool-input-partial`),params:Z({arguments:K6(X(),N6().describe(`Partial tool call arguments (incomplete, may change).`)).optional().describe(`Partial tool call arguments (incomplete, may change).`)})}),Dne=Z({method:Q(`ui/notifications/tool-cancelled`),params:Z({reason:X().optional().describe(`Optional reason for the cancellation (e.g., "user action", "timeout").`)})}),One=Z({fonts:X().optional()}),kne=Z({variables:xne.optional().describe(`CSS variables for theming the app.`),css:One.optional().describe(`CSS blocks that apps can inject.`)}),Ane=Z({method:Q(`ui/resource-teardown`),params:Z({})});K6(X(),N6());var X9=Z({text:Z({}).optional().describe(`Host supports text content blocks.`),image:Z({}).optional().describe(`Host supports image content blocks.`),audio:Z({}).optional().describe(`Host supports audio content blocks.`),resource:Z({}).optional().describe(`Host supports resource content blocks.`),resourceLink:Z({}).optional().describe(`Host supports resource link content blocks.`),structuredContent:Z({}).optional().describe(`Host supports structured content.`)});Z({method:Q(`ui/notifications/request-teardown`),params:Z({}).optional()});var jne=Z({experimental:K6(X(),K6(X(),M6()).describe(`Experimental features keyed by identifier.`)).optional().describe(`Experimental features keyed by identifier.`),openLinks:Z({}).optional().describe(`Host supports opening external URLs.`),downloadFile:Z({}).optional().describe(`Host supports file downloads via ui/download-file.`),serverTools:Z({listChanged:T6().optional().describe(`Host supports tools/list_changed notifications.`)}).optional().describe(`Host can proxy tool calls to the MCP server.`),serverResources:Z({listChanged:T6().optional().describe(`Host supports resources/list_changed notifications.`)}).optional().describe(`Host can proxy resource reads to the MCP server.`),logging:Z({}).optional().describe(`Host accepts log messages.`),sandbox:Z({permissions:Y9.optional().describe(`Permissions granted by the host (camera, microphone, geolocation).`),csp:J9.optional().describe(`CSP domains approved by the host.`)}).optional().describe(`Sandbox configuration applied by the host.`),updateModelContext:X9.optional().describe(`Host accepts context updates (ui/update-model-context) to be included in the model's context for future turns.`),message:X9.optional().describe(`Host supports receiving content messages (ui/message) from the view.`),sampling:Z({tools:Z({}).optional().describe("Host supports tool use via `tools` and `toolChoice` parameters.")}).optional().describe("Host supports LLM sampling (sampling/createMessage) from the view.\nMirrors the MCP `ClientCapabilities.sampling` shape so hosts can pass it through.")}),Mne=Z({experimental:K6(X(),K6(X(),M6()).describe(`Experimental features keyed by identifier.`)).optional().describe(`Experimental features keyed by identifier.`),tools:Z({listChanged:T6().optional().describe(`App supports tools/list_changed notifications.`)}).optional().describe(`App exposes MCP-style tools that the host can call.`),availableDisplayModes:L6(q9).optional().describe(`Display modes the app supports.`)});Z({method:Q(`ui/notifications/initialized`),params:Z({}).optional()}),Z({csp:J9.optional().describe(`Content Security Policy configuration for UI resources.`),permissions:Y9.optional().describe(`Sandbox permissions requested by the UI resource.`),domain:X().optional().describe(`Dedicated origin for view sandbox. Useful when views need stable, dedicated origins for OAuth callbacks, CORS policies, or API key allowlists. @@ -126,16 +126,16 @@ - Hash-based subdomains (e.g., \`{hash}.claudemcpcontent.com\`) - URL-derived subdomains (e.g., \`www-example-com.oaiusercontent.com\`) -If omitted, host uses default sandbox origin (typically per-conversation).`),prefersBorder:v6().optional().describe(`Visual boundary preference - true if view prefers a visible border. +If omitted, host uses default sandbox origin (typically per-conversation).`),prefersBorder:T6().optional().describe(`Visual boundary preference - true if view prefers a visible border. Boolean requesting whether a visible border and background is provided by the host. Specifying an explicit value for this is recommended because hosts' defaults may vary. - \`true\`: request visible border + background - \`false\`: request no visible border + background -- omitted: host decides border`)}),Z({method:Q(`ui/request-display-mode`),params:Z({mode:K9.describe(`The display mode being requested.`)})});var Cne=Z({mode:K9.describe(`The display mode that was actually set. May differ from requested if not supported.`)}).passthrough(),wne=P6([Q(`model`),Q(`app`)]).describe(`Tool visibility scope - who can access the tool.`);Z({resourceUri:X().optional(),visibility:A6(wne).optional().describe(`Who can access this tool. Default: ["model", "app"] +- omitted: host decides border`)}),Z({method:Q(`ui/request-display-mode`),params:Z({mode:q9.describe(`The display mode being requested.`)})});var Nne=Z({mode:q9.describe(`The display mode that was actually set. May differ from requested if not supported.`)}).passthrough(),Pne=V6([Q(`model`),Q(`app`)]).describe(`Tool visibility scope - who can access the tool.`);Z({resourceUri:X().optional(),visibility:L6(Pne).optional().describe(`Who can access this tool. Default: ["model", "app"] - "model": Tool visible to and callable by the agent -- "app": Tool callable by the app from this server only`),csp:D6().optional(),permissions:D6().optional()}),Z({mimeTypes:A6(X()).optional().describe('Array of supported MIME types for UI resources.\nMust include `"text/html;profile=mcp-app"` for MCP Apps support.')}),Z({method:Q(`ui/download-file`),params:Z({contents:A6(P6([O9,k9])).describe(`Resource contents to download — embedded (inline data) or linked (host fetches). Uses standard MCP resource types.`)})}),Z({method:Q(`ui/message`),params:Z({role:Q(`user`).describe(`Message role, currently only "user" is supported.`),content:A6(A9).describe(`Message content blocks (text, image, etc.).`)})}),Z({method:Q(`ui/notifications/sandbox-resource-ready`),params:Z({html:X().describe(`HTML content to load into the inner iframe.`),sandbox:X().optional().describe(`Optional override for the inner iframe's sandbox attribute.`),csp:q9.optional().describe(`CSP configuration from resource metadata.`),permissions:J9.optional().describe(`Sandbox permissions from resource metadata.`)})});var Tne=Z({method:Q(`ui/notifications/tool-result`),params:N9.describe(`Standard MCP tool execution result.`)}),X9=Z({toolInfo:Z({id:E7.optional().describe(`JSON-RPC id of the tools/call request.`),tool:j9.describe(`Tool definition including name, inputSchema, etc.`)}).optional().describe(`Metadata of the tool call that instantiated this App.`),theme:une.optional().describe(`Current color theme preference.`),styles:yne.optional().describe(`Style configuration for theming the app.`),displayMode:K9.optional().describe(`How the UI is currently displayed.`),availableDisplayModes:A6(K9).optional().describe(`Display modes the host supports.`),containerDimensions:P6([Z({height:f6().describe(`Fixed container height in pixels.`)}),Z({maxHeight:P6([f6(),C6()]).optional().describe(`Maximum container height in pixels.`)})]).and(P6([Z({width:f6().describe(`Fixed container width in pixels.`)}),Z({maxWidth:P6([f6(),C6()]).optional().describe(`Maximum container width in pixels.`)})])).optional().describe(`Container dimensions. Represents the dimensions of the iframe or other -container holding the app. Specify either width or maxWidth, and either height or maxHeight.`),locale:X().optional().describe(`User's language and region preference in BCP 47 format.`),timeZone:X().optional().describe(`User's timezone in IANA format.`),userAgent:X().optional().describe(`Host application identifier.`),platform:P6([Q(`web`),Q(`desktop`),Q(`mobile`)]).optional().describe(`Platform type for responsive design decisions.`),deviceCapabilities:Z({touch:v6().optional().describe(`Whether the device supports touch input.`),hover:v6().optional().describe(`Whether the device supports hover interactions.`)}).optional().describe(`Device input capabilities.`),safeAreaInsets:Z({top:f6().describe(`Top safe area inset in pixels.`),right:f6().describe(`Right safe area inset in pixels.`),bottom:f6().describe(`Bottom safe area inset in pixels.`),left:f6().describe(`Left safe area inset in pixels.`)}).optional().describe(`Mobile safe area boundaries in pixels.`)}).passthrough(),Ene=Z({method:Q(`ui/notifications/host-context-changed`),params:X9.describe(`Partial context update containing only changed fields.`)});Z({method:Q(`ui/update-model-context`),params:Z({content:A6(A9).optional().describe(`Context content blocks (text, image, etc.).`),structuredContent:z6(X(),E6().describe(`Structured content for machine-readable context data.`)).optional().describe(`Structured content for machine-readable context data.`)})}),Z({method:Q(`ui/initialize`),params:Z({appInfo:H7.describe(`App identification (name and version).`),appCapabilities:Sne.describe(`Features and capabilities this app provides.`),protocolVersion:X().describe(`Protocol version this app supports.`)})});var Dne=Z({protocolVersion:X().describe(`Negotiated protocol version string (e.g., "2025-11-21").`),hostInfo:H7.describe(`Host application identification and version.`),hostCapabilities:xne.describe(`Features and capabilities provided by the host.`),hostContext:X9.describe(`Rich context about the host environment.`)}).passthrough(),Z9={target:`draft-2020-12`};async function Q9(e,t){let n=e[`~standard`];if(n.jsonSchema)return n.jsonSchema[t](Z9);if(n.vendor===`zod`){let{z:n}=await sne(async()=>{let{z:e}=await Promise.resolve().then(()=>(d7(),l7));return{z:e}},void 0,import.meta.url);return n.toJSONSchema(e,{io:t})}throw Error(`Schema (vendor: ${n.vendor}) does not implement Standard JSON Schema (~standard.jsonSchema). Use a library that does (zod v4, ArkType, Valibot) or wrap your schema accordingly.`)}async function $9(e,t,n=``){let r=await e[`~standard`].validate(t);if(r.issues){let e=r.issues.map(e=>{let t=e.path?.map(e=>typeof e==`object`?e.key:e).join(`.`);return t?`${t}: ${e.message}`:e.message}).join(`; `);throw Error(n+e)}return r.value}var One=class e extends cne{_appInfo;_capabilities;options;_hostCapabilities;_hostInfo;_hostContext;_registeredTools={};_initializedSent=!1;_assertInitialized(e){if(this._initializedSent)return;let t=`[ext-apps] App.${e}() called before connect() completed the ui/initialize handshake. Await app.connect() before calling this method, or move data loading to an ontoolresult handler.`;if(this.options?.strict)throw Error(t);console.warn(`${t}. This will throw in a future release.`)}eventSchemas={toolinput:hne,toolinputpartial:gne,toolresult:Tne,toolcancelled:_ne,hostcontextchanged:Ene};static ONE_SHOT_EVENTS=new Set([`toolinput`,`toolinputpartial`,`toolresult`,`toolcancelled`]);_everHadListener=new Set;_assertHandlerTiming(t){if(!e.ONE_SHOT_EVENTS.has(t)||this._everHadListener.has(t)||(this._everHadListener.add(t),!this._initializedSent))return;let n=`[ext-apps] "${String(t)}" handler registered after connect() completed the ui/initialize handshake. The host may have already sent this notification. Register handlers before calling app.connect().`;if(this.options?.strict)throw Error(n);console.warn(n)}setEventHandler(e,t){t&&this._assertHandlerTiming(e),super.setEventHandler(e,t)}addEventListener(e,t){this._assertHandlerTiming(e),super.addEventListener(e,t)}onEventDispatch(e,t){e===`hostcontextchanged`&&(this._hostContext={...this._hostContext,...t})}constructor(e,t={},n={autoResize:!0}){super(n),this._appInfo=e,this._capabilities=t,this.options=n,n.allowUnsafeEval||lK({jitless:!0}),this.setRequestHandler(Q7,e=>(console.log(`Received ping:`,e.params),{})),this.setEventHandler(`hostcontextchanged`,void 0)}registerCapabilities(e){if(this.transport)throw Error(`Cannot register capabilities after transport is established`);this._capabilities=ine(this._capabilities,e)}registerTool(e,t,n){if(this._registeredTools[e])throw Error(`Tool ${e} is already registered`);let r=this,i=()=>{r._initializedSent&&r._capabilities.tools?.listChanged&&r.sendToolListChanged()},a=t.inputSchema!==void 0,o={title:t.title,description:t.description,inputSchema:t.inputSchema,outputSchema:t.outputSchema,annotations:t.annotations,_meta:t._meta,enabled:!0,enable(){this.enabled=!0,i()},disable(){this.enabled=!1,i()},update(e){Object.assign(this,e),i()},remove(){r._registeredTools[e]===o&&(delete r._registeredTools[e],i())},handler:async(t,r)=>{if(!o.enabled)throw Error(`Tool ${e} is disabled`);let i;if(a){let a=o.inputSchema;i=await n(a?await $9(a,t??{},`Invalid input for tool ${e}: `):t??{},r)}else i=await n(r);return o.outputSchema&&!i.isError&&(i.structuredContent=await $9(o.outputSchema,i.structuredContent,`Invalid output for tool ${e}: `)),i}};return this._registeredTools[e]=o,!this._capabilities.tools&&!this.transport&&this.registerCapabilities({tools:{listChanged:!0}}),this.ensureToolHandlersInitialized(),i(),o}_toolHandlersInitialized=!1;ensureToolHandlersInitialized(){this._toolHandlersInitialized||(this._toolHandlersInitialized=!0,this.oncalltool=async(e,t)=>{let n=this._registeredTools[e.name];if(!n)throw Error(`Tool ${e.name} not found`);return n.handler(e.arguments,t)},this.onlisttools=async(e,t)=>({tools:await Promise.all(Object.entries(this._registeredTools).filter(([e,t])=>t.enabled).map(async([e,t])=>{let n={name:e,title:t.title,description:t.description,inputSchema:t.inputSchema?await Q9(t.inputSchema,`input`):{type:`object`,properties:{}}};return t.outputSchema&&(n.outputSchema=await Q9(t.outputSchema,`output`)),t.annotations&&(n.annotations=t.annotations),t._meta&&(n._meta=t._meta),n}))}))}async sendToolListChanged(e={}){this._assertInitialized(`sendToolListChanged`),await this.notification({method:`notifications/tools/list_changed`,params:e})}getHostCapabilities(){return this._hostCapabilities}getHostVersion(){return this._hostInfo}getHostContext(){return this._hostContext}get ontoolinput(){return this.getEventHandler(`toolinput`)}set ontoolinput(e){this.setEventHandler(`toolinput`,e)}get ontoolinputpartial(){return this.getEventHandler(`toolinputpartial`)}set ontoolinputpartial(e){this.setEventHandler(`toolinputpartial`,e)}get ontoolresult(){return this.getEventHandler(`toolresult`)}set ontoolresult(e){this.setEventHandler(`toolresult`,e)}get ontoolcancelled(){return this.getEventHandler(`toolcancelled`)}set ontoolcancelled(e){this.setEventHandler(`toolcancelled`,e)}get onhostcontextchanged(){return this.getEventHandler(`hostcontextchanged`)}set onhostcontextchanged(e){this.setEventHandler(`hostcontextchanged`,e)}_onteardown;get onteardown(){return this._onteardown}set onteardown(e){this.warnIfRequestHandlerReplaced(`onteardown`,this._onteardown,e),this._onteardown=e,this.replaceRequestHandler(bne,(e,t)=>{if(!this._onteardown)throw Error(`No onteardown handler set`);return this._onteardown(e.params,t)})}_oncalltool;get oncalltool(){return this._oncalltool}set oncalltool(e){this.warnIfRequestHandlerReplaced(`oncalltool`,this._oncalltool,e),this._oncalltool=e,this.replaceRequestHandler(P9,(e,t)=>{if(!this._oncalltool)throw Error(`No oncalltool handler set`);return this._oncalltool(e.params,t)})}_onlisttools;get onlisttools(){return this._onlisttools}set onlisttools(e){this.warnIfRequestHandlerReplaced(`onlisttools`,this._onlisttools,e),this._onlisttools=e,this.replaceRequestHandler(M9,(e,t)=>{if(!this._onlisttools)throw Error(`No onlisttools handler set`);return this._onlisttools(e.params,t)})}assertCapabilityForMethod(e){if(e===`sampling/createMessage`&&!this._hostCapabilities?.sampling)throw Error(`Host does not support sampling (required for ${e})`)}assertRequestHandlerCapability(e){switch(e){case`tools/call`:case`tools/list`:if(!this._capabilities.tools)throw Error(`Client does not support tool capability (required for ${e})`);return;case`ping`:case`ui/resource-teardown`:return;default:throw Error(`No handler for method ${e} registered`)}}assertNotificationCapability(e){}assertTaskCapability(e){throw Error(`Tasks are not supported in MCP Apps`)}assertTaskHandlerCapability(e){throw Error(`Task handlers are not supported in MCP Apps`)}async callServerTool(e,t){if(this._assertInitialized(`callServerTool`),typeof e==`string`)throw Error(`callServerTool() expects an object as its first argument, but received a string ("${e}"). Did you mean: callServerTool({ name: "${e}", arguments: { ... } })?`);return await this.request({method:`tools/call`,params:e},N9,{onprogress:()=>{},resetTimeoutOnProgress:!0,...t})}async readServerResource(e,t){return this._assertInitialized(`readServerResource`),await this.request({method:`resources/read`,params:e},w9,t)}async listServerResources(e,t){return this._assertInitialized(`listServerResources`),await this.request({method:`resources/list`,params:e},S9,t)}async createSamplingMessage(e,t){this._assertInitialized(`createSamplingMessage`);let n=e.tools?R9:L9;return await this.request({method:`sampling/createMessage`,params:e},n,t)}sendMessage(e,t){return this._assertInitialized(`sendMessage`),this.request({method:`ui/message`,params:e},mne,t)}sendLog(e){return this.notification({method:`notifications/message`,params:e})}updateModelContext(e,t){return this._assertInitialized(`updateModelContext`),this.request({method:`ui/update-model-context`,params:e},L7,t)}openLink(e,t){return this._assertInitialized(`openLink`),this.request({method:`ui/open-link`,params:e},fne,t)}sendOpenLink=this.openLink;downloadFile(e,t){return this._assertInitialized(`downloadFile`),this.request({method:`ui/download-file`,params:e},pne,t)}requestTeardown(e={}){return this.notification({method:`ui/notifications/request-teardown`,params:e})}requestDisplayMode(e,t){return this._assertInitialized(`requestDisplayMode`),this.request({method:`ui/request-display-mode`,params:e},Cne,t)}sendSizeChanged(e){return this.notification({method:`ui/notifications/size-changed`,params:e})}setupSizeChangedNotifications(){let e=!1,t=0,n=0,r=()=>{e||(e=!0,requestAnimationFrame(()=>{e=!1;let r=document.documentElement,i=r.style.height;r.style.height=`max-content`;let a=Math.ceil(r.getBoundingClientRect().height);r.style.height=i;let o=Math.ceil(window.innerWidth);(o!==t||a!==n)&&(t=o,n=a,this.sendSizeChanged({width:o,height:a}))}))};r();let i=new ResizeObserver(r);return i.observe(document.documentElement),i.observe(document.body),()=>i.disconnect()}async connect(e=new G9(window.parent,window.parent),t){if(this.transport)throw Error(`App is already connected. Call close() before connecting again.`);this._initializedSent=!1,await super.connect(e);try{let e=await this.request({method:`ui/initialize`,params:{appCapabilities:this._capabilities,appInfo:this._appInfo,protocolVersion:lne}},Dne,t);if(e===void 0)throw Error(`Server sent invalid initialize result: ${e}`);this._hostCapabilities=e.hostCapabilities,this._hostInfo=e.hostInfo,this._hostContext=e.hostContext,await this.notification({method:`ui/notifications/initialized`}),this._initializedSent=!0,this.options?.autoResize&&this.setupSizeChangedNotifications()}catch(e){throw this.close(),e}}};function kne({appInfo:e,capabilities:t,onAppCreated:n,autoResize:r=!0,strict:i}){let[a,o]=(0,G.useState)(null),[s,c]=(0,G.useState)(!1),[l,u]=(0,G.useState)(null);return(0,G.useEffect)(()=>{let a=!0,s;async function l(){try{let l=new G9(window.parent,window.parent);if(s=new One(e,t,{autoResize:r,strict:i}),n?.(s),await s.connect(l),!a){s.close();return}o(s),c(!0),u(null)}catch(e){a&&(o(null),c(!1),u(e instanceof Error?e:Error(`Failed to connect`)))}}return l(),()=>{a=!1,s?.close()}},[]),{app:a,isConnected:s,error:l}}function Ane(e){let[t,n]=(0,G.useState)(null),[r,i]=(0,G.useState)({}),[a,o]=(0,G.useState)(),[s,c]=(0,G.useState)(null);function l(e){if(e.isError){c(`This view could not be refreshed. Please try again.`);return}c(null),n(e.structuredContent)}let u=kne({appInfo:{name:e,version:`1.0.0`},capabilities:{},onAppCreated:e=>{e.ontoolinput=e=>{i(e.arguments??{})},e.ontoolresult=l,e.onhostcontextchanged=e=>o(t=>({...t,...e})),e.onerror=e=>{console.error(`MCP app error`,e),c(`This view could not be refreshed. Please try again.`)}}});(0,G.useEffect)(()=>{u.app&&o(u.app.getHostContext())},[u.app]);async function d(e){if(u.app)try{l(await u.app.callServerTool({name:e,arguments:r}))}catch(t){console.error(`Tool call ${e} failed`,t),c(`This view could not be refreshed. Please try again.`)}}return{...u,result:t,toolInput:r,host:a,toolError:s,callTool:d}}async function jne(e,t){e&&await e.sendMessage({role:`user`,content:[{type:`text`,text:t}]})}hk([jC]);function Mne(){let{app:e,callTool:t,error:n,host:r,result:i,toolError:a}=Ane(`Fanout log explorer`),[o,s]=(0,G.useState)(`ALL`),[c,l]=(0,G.useState)(``),u=r?.theme===`dark`,d=(0,G.useMemo)(()=>(i?.data.entries??[]).filter(e=>(o===`ALL`||e.severity.toUpperCase()===o)&&(!c||e.body.toLowerCase().includes(c.toLowerCase())||e.service.toLowerCase().includes(c.toLowerCase()))),[i,c,o]);return(0,K.jsxs)(NV,{dark:u,children:[(0,K.jsx)(PV,{eyebrow:`Application activity`,title:`Logs`,summary:i?`${i.data.entries.length} entries in this time range`:void 0,onRefresh:()=>t(`search_logs`),disabled:!e}),(0,K.jsx)(FV,{error:a??(n?`This view could not be loaded. Please try again.`:null),loading:!i&&!n&&!a?`Searching logs…`:void 0}),i&&i.data.entries.length===0&&(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(IV,{tall:!0,icon:(0,K.jsx)(TV,{size:20,weight:`duotone`}),title:`No logs matched`,children:`Try a wider time window, a different service, or a less restrictive search.`}),(0,K.jsx)(LV,{left:cK(i.provenance.window),right:`No entries found`})]}),i&&i.data.entries.length>0&&(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(Nne,{data:i.data,dark:u}),(0,K.jsxs)(JR,{px:{base:`md`,sm:`lg`},py:`sm`,justify:`space-between`,align:`center`,children:[(0,K.jsx)(LB,{size:`xs`,value:o,onChange:s,data:[`ALL`,`ERROR`,`WARN`,`INFO`]}),(0,K.jsx)(rV,{"aria-label":`Filter visible logs`,type:`search`,value:c,onChange:e=>l(e.currentTarget.value),placeholder:`Filter visible logs…`,leftSection:(0,K.jsx)(DV,{size:15}),w:{base:`100%`,xs:250}})]}),(0,K.jsx)(Pne,{entries:d,onTrace:t=>jne(e,`Investigate trace ${t.trace_id} related to this ${t.severity} log from ${t.service}.`)}),(0,K.jsx)(LV,{left:cK(i.provenance.window),right:`${d.length} matching`})]})]})}function Nne({data:e,dark:t}){let n=(0,G.useMemo)(()=>{let n=BV(t),r=[...new Set(e.buckets.map(e=>e.time))],i=[...new Set(e.buckets.map(e=>e.severity))],a=new Map(e.buckets.map(e=>[`${e.time}\u0000${e.severity}`,e.count]));return{color:i.map(Ine),grid:{left:42,right:18,top:30,bottom:28},tooltip:{trigger:`axis`,axisPointer:{type:`shadow`},backgroundColor:n.surface,borderColor:n.border,textStyle:{color:n.text,fontSize:10}},legend:{top:0,right:0,textStyle:{color:n.muted,fontSize:9},itemWidth:7,itemHeight:7,icon:`circle`},xAxis:{type:`category`,data:r.map(e=>new Date(e).toLocaleTimeString([],{hour:`numeric`,minute:`2-digit`})),axisLabel:{color:n.muted,fontSize:8,hideOverlap:!0},axisLine:{lineStyle:{color:n.border}}},yAxis:{type:`value`,minInterval:1,splitLine:{lineStyle:{color:n.grid}},axisLabel:{color:n.muted,fontSize:8}},series:i.map(e=>({name:e,type:`bar`,stack:`logs`,barMaxWidth:22,data:r.map(t=>a.get(`${t}\u0000${e}`)??0),itemStyle:{borderRadius:[2,2,0,0]}}))}},[t,e.buckets]);return(0,K.jsx)(tR,{withBorder:!0,radius:`md`,mx:{base:`md`,sm:`lg`},p:`xs`,children:(0,K.jsx)(sK,{option:n,height:190,label:`Log volume by severity over time`})})}function Pne({entries:e,onTrace:t}){let n=RV(e,6);return e.length===0?(0,K.jsx)(IV,{icon:(0,K.jsx)(DV,{size:20,weight:`duotone`}),title:`No visible matches`,children:`Adjust the local severity or text filter.`}):(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(nV.ScrollContainer,{minWidth:680,children:(0,K.jsxs)(nV,{striped:!0,highlightOnHover:!0,verticalSpacing:`xs`,children:[(0,K.jsx)(nV.Thead,{children:(0,K.jsxs)(nV.Tr,{children:[(0,K.jsx)(nV.Th,{children:`Time`}),(0,K.jsx)(nV.Th,{children:`Level`}),(0,K.jsx)(nV.Th,{children:`Service`}),(0,K.jsx)(nV.Th,{children:`Message`}),(0,K.jsx)(nV.Th,{})]})}),(0,K.jsx)(nV.Tbody,{children:n.pageItems.map((e,r)=>(0,K.jsxs)(nV.Tr,{children:[(0,K.jsx)(nV.Td,{children:(0,K.jsx)(Nz,{size:`xs`,ff:`monospace`,children:new Date(e.time).toLocaleTimeString([],{hour:`numeric`,minute:`2-digit`,second:`2-digit`})})}),(0,K.jsx)(nV.Td,{children:(0,K.jsx)(Iz,{size:`sm`,color:Fne(e.severity),variant:`light`,children:e.severity||`LOG`})}),(0,K.jsx)(nV.Td,{children:(0,K.jsx)(Nz,{size:`sm`,fw:600,children:e.service})}),(0,K.jsx)(nV.Td,{children:(0,K.jsx)(Nz,{size:`sm`,lineClamp:2,title:e.body,children:e.body})}),(0,K.jsx)(nV.Td,{children:e.trace_id&&(0,K.jsx)(NB,{label:`Investigate trace`,children:(0,K.jsx)(RR,{variant:`subtle`,"aria-label":`Investigate trace ${e.trace_id}`,onClick:()=>t(e),children:(0,K.jsx)(CV,{size:15,weight:`bold`})})})})]},`${e.time}-${n.from+r}`))})]})}),(0,K.jsx)(zV,{...n,onChange:n.setPage})]})}function Fne(e){let t=e.toUpperCase();return t===`ERROR`||t===`FATAL`?`red`:t===`WARN`||t===`WARNING`?`yellow`:t===`INFO`?`teal`:`blue`}function Ine(e){let t=e.toUpperCase();return t===`ERROR`||t===`FATAL`?`#fa5252`:t===`WARN`||t===`WARNING`?`#fab005`:t===`INFO`?`#12b886`:`#228be6`}(0,jV.createRoot)(document.getElementById(`root`)).render((0,K.jsx)(G.StrictMode,{children:(0,K.jsx)(Mne,{})})); -
diff --git a/internal/mcp/apps/overview.html b/internal/mcp/apps/overview.html index 8315c162..94a758eb 100644 --- a/internal/mcp/apps/overview.html +++ b/internal/mcp/apps/overview.html @@ -7,11 +7,11 @@ `);for(i=r=0;ri||c[r]!==l[i]){var u=` `+c[r].replace(` at new `,` at `);return e.displayName&&u.includes(``)&&(u=u.replace(``,e.displayName)),u}while(1<=r&&0<=i);break}}}finally{Te=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:``)?we(n):``}function Oe(e,t){switch(e.tag){case 26:case 27:case 5:return we(e.type);case 16:return we(`Lazy`);case 13:return e.child!==t&&t!==null?we(`Suspense Fallback`):we(`Suspense`);case 19:return we(`SuspenseList`);case 0:case 15:return Ee(e.type,!1);case 11:return Ee(e.type.render,!1);case 1:return Ee(e.type,!0);case 31:return we(`Activity`);default:return``}}function ke(e){try{var t=``,n=null;do t+=Oe(e,n),n=e,e=e.return;while(e);return t}catch(e){return` Error generating stack: `+e.message+` -`+e.stack}}var Ae=Object.prototype.hasOwnProperty,je=t.unstable_scheduleCallback,Me=t.unstable_cancelCallback,Ne=t.unstable_shouldYield,Pe=t.unstable_requestPaint,Fe=t.unstable_now,Ie=t.unstable_getCurrentPriorityLevel,Le=t.unstable_ImmediatePriority,Re=t.unstable_UserBlockingPriority,ze=t.unstable_NormalPriority,Be=t.unstable_LowPriority,Ve=t.unstable_IdlePriority,He=t.log,Ue=t.unstable_setDisableYieldValue,We=null,Ge=null;function Ke(e){if(typeof He==`function`&&Ue(e),Ge&&typeof Ge.setStrictMode==`function`)try{Ge.setStrictMode(We,e)}catch{}}var qe=Math.clz32?Math.clz32:Xe,Je=Math.log,Ye=Math.LN2;function Xe(e){return e>>>=0,e===0?32:31-(Je(e)/Ye|0)|0}var Ze=256,Qe=262144,$e=4194304;function et(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function tt(e,t,n){var r=e.pendingLanes;if(r===0)return 0;var i=0,a=e.suspendedLanes,o=e.pingedLanes;e=e.warmLanes;var s=r&134217727;return s===0?(s=r&~a,s===0?o===0?n||(n=r&~e,n!==0&&(i=et(n))):i=et(o):i=et(s)):(r=s&~a,r===0?(o&=s,o===0?n||(n=s&~e,n!==0&&(i=et(n))):i=et(o)):i=et(r)),i===0?0:t!==0&&t!==i&&(t&a)===0&&(a=i&-i,n=t&-t,a>=n||a===32&&n&4194048)?t:i}function nt(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function rt(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function it(){var e=$e;return $e<<=1,!($e&62914560)&&($e=4194304),e}function at(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function ot(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function st(e,t,n,r,i,a){var o=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var s=e.entanglements,c=e.expirationTimes,l=e.hiddenUpdates;for(n=o&~n;0`u`||window.document===void 0||window.document.createElement===void 0),vn=!1;if(_n)try{var yn={};Object.defineProperty(yn,"passive",{get:function(){vn=!0}}),window.addEventListener(`test`,yn,yn),window.removeEventListener(`test`,yn,yn)}catch{vn=!1}var bn=null,xn=null,Sn=null;function Cn(){if(Sn)return Sn;var e,t=xn,n=t.length,r,i=`value`in bn?bn.value:bn.textContent,a=i.length;for(e=0;e=er),rr=` `,ir=!1;function ar(e,t){switch(e){case`keyup`:return Qn.indexOf(t.keyCode)!==-1;case`keydown`:return t.keyCode!==229;case`keypress`:case`mousedown`:case`focusout`:return!0;default:return!1}}function or(e){return e=e.detail,typeof e==`object`&&`data`in e?e.data:null}var sr=!1;function cr(e,t){switch(e){case`compositionend`:return or(t);case`keypress`:return t.which===32?(ir=!0,rr):null;case`textInput`:return e=t.data,e===rr&&ir?null:e;default:return null}}function lr(e,t){if(sr)return e===`compositionend`||!$n&&ar(e,t)?(e=Cn(),Sn=xn=bn=null,sr=!1,e):null;switch(e){case`paste`:return null;case`keypress`:if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}a:{for(;n;){if(n.nextSibling){n=n.nextSibling;break a}n=n.parentNode}n=void 0}n=jr(n)}}function Nr(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Nr(e,t.parentNode):`contains`in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Pr(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=k(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href==`string`}catch{n=!1}if(n)e=t.contentWindow;else break;t=k(e.document)}return t}function Fr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t===`input`&&(e.type===`text`||e.type===`search`||e.type===`tel`||e.type===`url`||e.type===`password`)||t===`textarea`||e.contentEditable===`true`)}var Ir=_n&&`documentMode`in document&&11>=document.documentMode,Lr=null,Rr=null,zr=null,Br=!1;function Vr(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Br||Lr==null||Lr!==k(r)||(r=Lr,`selectionStart`in r&&Fr(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),zr&&Ar(zr,r)||(zr=r,r=Pd(Rr,`onSelect`),0>=o,i-=o,Ni=1<<32-qe(t)+i|n<m?(h=d,d=null):h=d.sibling;var g=p(i,d,s[m],c);if(g===null){d===null&&(d=h);break}e&&d&&g.alternate===null&&t(i,d),a=o(g,a,m),u===null?l=g:u.sibling=g,u=g,d=h}if(m===s.length)return n(i,d),j&&Fi(i,m),l;if(d===null){for(;mh?(g=m,m=null):g=m.sibling;var y=p(a,m,v.value,l);if(y===null){m===null&&(m=g);break}e&&m&&y.alternate===null&&t(a,m),s=o(y,s,h),d===null?u=y:d.sibling=y,d=y,m=g}if(v.done)return n(a,m),j&&Fi(a,h),u;if(m===null){for(;!v.done;h++,v=c.next())v=f(a,v.value,l),v!==null&&(s=o(v,s,h),d===null?u=v:d.sibling=v,d=v);return j&&Fi(a,h),u}for(m=r(m);!v.done;h++,v=c.next())v=_(m,a,h,v.value,l),v!==null&&(e&&v.alternate!==null&&m.delete(v.key===null?h:v.key),s=o(v,s,h),d===null?u=v:d.sibling=v,d=v);return e&&m.forEach(function(e){return t(a,e)}),j&&Fi(a,h),u}function x(e,r,o,c){if(typeof o==`object`&&o&&o.type===g&&o.key===null&&(o=o.props.children),typeof o==`object`&&o){switch(o.$$typeof){case m:a:{for(var l=o.key;r!==null;){if(r.key===l){if(l=o.type,l===g){if(r.tag===7){n(e,r.sibling),c=a(r,o.props.children),c.return=e,e=c;break a}}else if(r.elementType===l||typeof l==`object`&&l&&l.$$typeof===w&&Fa(l)===r.type){n(e,r.sibling),c=a(r,o.props),Ha(c,o),c.return=e,e=c;break a}n(e,r);break}t(e,r),r=r.sibling}o.type===g?(c=bi(o.props.children,e.mode,c,o.key),c.return=e,e=c):(c=yi(o.type,o.key,o.props,null,e.mode,c),Ha(c,o),c.return=e,e=c)}return s(e);case h:a:{for(l=o.key;r!==null;){if(r.key===l)if(r.tag===4&&r.stateNode.containerInfo===o.containerInfo&&r.stateNode.implementation===o.implementation){n(e,r.sibling),c=a(r,o.children||[]),c.return=e,e=c;break a}else{n(e,r);break}t(e,r),r=r.sibling}c=Ci(o,e.mode,c),c.return=e,e=c}return s(e);case w:return o=Fa(o),x(e,r,o,c)}if(se(o))return v(e,r,o,c);if(ie(o)){if(l=ie(o),typeof l!=`function`)throw Error(i(150));return o=l.call(o),y(e,r,o,c)}if(typeof o.then==`function`)return x(e,r,Va(o),c);if(o.$$typeof===b)return x(e,r,la(e,o),c);Ua(e,o)}return typeof o==`string`&&o!==``||typeof o==`number`||typeof o==`bigint`?(o=``+o,r!==null&&r.tag===6?(n(e,r.sibling),c=a(r,o),c.return=e,e=c):(n(e,r),c=xi(o,e.mode,c),c.return=e,e=c),s(e)):n(e,r)}return function(e,t,n,r){try{Ba=0;var i=x(e,t,n,r);return za=null,i}catch(t){if(t===ka||t===ja)throw t;var a=hi(29,t,null,e.mode);return a.lanes=r,a.return=e,a}}}var Ga=Wa(!0),Ka=Wa(!1),qa=!1;function Ja(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Ya(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Xa(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Za(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,B&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,t=fi(e),di(e,null,n),t}return ci(e,r,t,n),fi(e)}function Qa(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,n&4194048)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,lt(e,n)}}function $a(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var o={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};a===null?i=a=o:a=a.next=o,n=n.next}while(n!==null);a===null?i=a=t:a=a.next=t}else i=a=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,callbacks:r.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var eo=!1;function to(){if(eo){var e=ba;if(e!==null)throw e}}function no(e,t,n,r){eo=!1;var i=e.updateQueue;qa=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var c=s,l=c.next;c.next=null,o===null?a=l:o.next=l,o=c;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==o&&(s===null?u.firstBaseUpdate=l:s.next=l,u.lastBaseUpdate=c))}if(a!==null){var d=i.baseState;o=0,u=l=c=null,s=a;do{var p=s.lane&-536870913,m=p!==s.lane;if(m?(H&p)===p:(r&p)===p){p!==0&&p===ya&&(eo=!0),u!==null&&(u=u.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});a:{var h=e,g=s;p=t;var _=n;switch(g.tag){case 1:if(h=g.payload,typeof h==`function`){d=h.call(_,d,p);break a}d=h;break a;case 3:h.flags=h.flags&-65537|128;case 0:if(h=g.payload,p=typeof h==`function`?h.call(_,d,p):h,p==null)break a;d=f({},d,p);break a;case 2:qa=!0}}p=s.callback,p!==null&&(e.flags|=64,m&&(e.flags|=8192),m=i.callbacks,m===null?i.callbacks=[p]:m.push(p))}else m={lane:p,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(l=u=m,c=d):u=u.next=m,o|=p;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;m=s,s=m.next,m.next=null,i.lastBaseUpdate=m,i.shared.pending=null}}while(1);u===null&&(c=d),i.baseState=c,i.firstBaseUpdate=l,i.lastBaseUpdate=u,a===null&&(i.shared.lanes=0),$l|=o,e.lanes=o,e.memoizedState=d}}function ro(e,t){if(typeof e!=`function`)throw Error(i(191,e));e.call(t)}function io(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;ea?a:8;var o=E.T,s={};E.T=s,zs(e,!1,t,n);try{var c=i(),l=E.S;l!==null&&l(s,c),typeof c==`object`&&c&&typeof c.then==`function`?Rs(e,t,Ca(c,r),xu(e)):Rs(e,t,r,xu(e))}catch(n){Rs(e,t,{then:function(){},status:`rejected`,reason:n},xu())}finally{D.p=a,o!==null&&s.types!==null&&(o.types=s.types),E.T=o}}function Os(){}function ks(e,t,n,r){if(e.tag!==5)throw Error(i(476));var a=As(e).queue;Ds(e,a,t,ce,n===null?Os:function(){return js(e),n(r)})}function As(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:ce,baseState:ce,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Wo,lastRenderedState:ce},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Wo,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function js(e){var t=As(e);t.next===null&&(t=e.alternate.memoizedState),Rs(e,t.next.queue,{},xu())}function Ms(){return ca(sp)}function Ns(){return Bo().memoizedState}function Ps(){return Bo().memoizedState}function Fs(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=xu();e=Xa(n);var r=Za(t,e,n);r!==null&&(Cu(r,t,n),Qa(r,t,n)),t={cache:ha()},e.payload=t;return}t=t.return}}function Is(e,t,n){var r=xu();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Bs(e)?Vs(t,n):(n=li(e,t,n,r),n!==null&&(Cu(n,e,r),z(n,t,r)))}function Ls(e,t,n){Rs(e,t,n,xu())}function Rs(e,t,n,r){var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Bs(e))Vs(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,s=a(o,n);if(i.hasEagerState=!0,i.eagerState=s,kr(s,o))return ci(e,t,i,0),Gl===null&&si(),!1}catch{}if(n=li(e,t,i,r),n!==null)return Cu(n,e,r),z(n,t,r),!0}return!1}function zs(e,t,n,r){if(r={lane:2,revertLane:yd(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},Bs(e)){if(t)throw Error(i(479))}else t=li(e,n,r,2),t!==null&&Cu(t,e,2)}function Bs(e){var t=e.alternate;return e===M||t!==null&&t===M}function Vs(e,t){To=wo=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function z(e,t,n){if(n&4194048){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,lt(e,n)}}var Hs={readContext:ca,use:P,useCallback:Ao,useContext:Ao,useEffect:Ao,useImperativeHandle:Ao,useLayoutEffect:Ao,useInsertionEffect:Ao,useMemo:Ao,useReducer:Ao,useRef:Ao,useState:Ao,useDebugValue:Ao,useDeferredValue:Ao,useTransition:Ao,useSyncExternalStore:Ao,useId:Ao,useHostTransitionStatus:Ao,useFormState:Ao,useActionState:Ao,useOptimistic:Ao,useMemoCache:Ao,useCacheRefresh:Ao};Hs.useEffectEvent=Ao;var Us={readContext:ca,use:P,useCallback:function(e,t){return zo().memoizedState=[e,t===void 0?null:t],e},useContext:ca,useEffect:hs,useImperativeHandle:function(e,t,n){n=n==null?null:n.concat([e]),ps(4194308,4,xs.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ps(4194308,4,e,t)},useInsertionEffect:function(e,t){ps(4,2,e,t)},useMemo:function(e,t){var n=zo();t=t===void 0?null:t;var r=e();if(Eo){Ke(!0);try{e()}finally{Ke(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=zo();if(n!==void 0){var i=n(t);if(Eo){Ke(!0);try{n(t)}finally{Ke(!1)}}}else i=t;return r.memoizedState=r.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},r.queue=e,e=e.dispatch=Is.bind(null,M,e),[r.memoizedState,e]},useRef:function(e){var t=zo();return e={current:e},t.memoizedState=e},useState:function(e){e=$o(e);var t=e.queue,n=Ls.bind(null,M,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:Cs,useDeferredValue:function(e,t){return Ts(zo(),e,t)},useTransition:function(){var e=$o(!1);return e=Ds.bind(null,M,e.queue,!0,!1),zo().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=M,a=zo();if(j){if(n===void 0)throw Error(i(407));n=n()}else{if(n=t(),Gl===null)throw Error(i(349));H&127||Jo(r,t,n)}a.memoizedState=n;var o={value:n,getSnapshot:t};return a.queue=o,hs(Xo.bind(null,r,o,e),[e]),r.flags|=2048,ds(9,{destroy:void 0},Yo.bind(null,r,o,n,t),null),n},useId:function(){var e=zo(),t=Gl.identifierPrefix;if(j){var n=Pi,r=Ni;n=(r&~(1<<32-qe(r)-1)).toString(32)+n,t=`_`+t+`R_`+n,n=Do++,0<\/script>`,o=o.removeChild(o.firstChild);break;case`select`:o=typeof r.is==`string`?s.createElement(`select`,{is:r.is}):s.createElement(`select`),r.multiple?o.multiple=!0:r.size&&(o.size=r.size);break;default:o=typeof r.is==`string`?s.createElement(a,{is:r.is}):s.createElement(a)}}o[gt]=t,o[_t]=r;a:for(s=t.child;s!==null;){if(s.tag===5||s.tag===6)o.appendChild(s.stateNode);else if(s.tag!==4&&s.tag!==27&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===t)break a;for(;s.sibling===null;){if(s.return===null||s.return===t)break a;s=s.return}s.sibling.return=s.return,s=s.sibling}t.stateNode=o;a:switch(Ud(o,a,r),a){case`button`:case`input`:case`select`:case`textarea`:r=!!r.autoFocus;break a;case`img`:r=!0;break a;default:r=!1}r&&Lc(t)}}return Hc(t),Rc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&Lc(t);else{if(typeof r!=`string`&&t.stateNode===null)throw Error(i(166));if(e=ge.current,Ji(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,a=Bi,a!==null)switch(a.tag){case 27:case 5:r=a.memoizedProps}e[gt]=t,e=!!(e.nodeValue===n||r!==null&&!0===r.suppressHydrationWarning||Bd(e.nodeValue,n)),e||Gi(t,!0)}else e=Yd(e).createTextNode(r),e[gt]=t,t.stateNode=e}return Hc(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(r=Ji(t),n!==null){if(e===null){if(!r)throw Error(i(318));if(e=t.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(557));e[gt]=t}else Yi(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Hc(t),e=!1}else n=Xi(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(vo(t),t):(vo(t),null);if(t.flags&128)throw Error(i(558))}return Hc(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(a=Ji(t),r!==null&&r.dehydrated!==null){if(e===null){if(!a)throw Error(i(318));if(a=t.memoizedState,a=a===null?null:a.dehydrated,!a)throw Error(i(317));a[gt]=t}else Yi(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Hc(t),a=!1}else a=Xi(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),a=!0;if(!a)return t.flags&256?(vo(t),t):(vo(t),null)}return vo(t),t.flags&128?(t.lanes=n,t):(n=r!==null,e=e!==null&&e.memoizedState!==null,n&&(r=t.child,a=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(a=r.alternate.memoizedState.cachePool.pool),o=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(o=r.memoizedState.cachePool.pool),o!==a&&(r.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),Bc(t,t.updateQueue),Hc(t),null);case 4:return ye(),e===null&&Ad(t.stateNode.containerInfo),Hc(t),null;case 10:return na(t.type),Hc(t),null;case 19:if(fe(yo),r=t.memoizedState,r===null)return Hc(t),null;if(a=!!(t.flags&128),o=r.rendering,o===null)if(a)Vc(r,!1);else{if(Ql!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=bo(e),o!==null){for(t.flags|=128,Vc(r,!1),e=o.updateQueue,t.updateQueue=e,Bc(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)vi(n,e),n=n.sibling;return pe(yo,yo.current&1|2),j&&Fi(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&Fe()>lu&&(t.flags|=128,a=!0,Vc(r,!1),t.lanes=4194304)}else{if(!a)if(e=bo(o),e!==null){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,Bc(t,e),Vc(r,!0),r.tail===null&&r.tailMode===`hidden`&&!o.alternate&&!j)return Hc(t),null}else 2*Fe()-r.renderingStartTime>lu&&n!==536870912&&(t.flags|=128,a=!0,Vc(r,!1),t.lanes=4194304);r.isBackwards?(o.sibling=t.child,t.child=o):(e=r.last,e===null?t.child=o:e.sibling=o,r.last=o)}return r.tail===null?(Hc(t),null):(e=r.tail,r.rendering=e,r.tail=e.sibling,r.renderingStartTime=Fe(),e.sibling=null,n=yo.current,pe(yo,a?n&1|2:n&1),j&&Fi(t,r.treeForkCount),e);case 22:case 23:return vo(t),lo(),r=t.memoizedState!==null,e===null?r&&(t.flags|=8192):e.memoizedState!==null!==r&&(t.flags|=8192),r?n&536870912&&!(t.flags&128)&&(Hc(t),t.subtreeFlags&6&&(t.flags|=8192)):Hc(t),n=t.updateQueue,n!==null&&Bc(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),r=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),e!==null&&fe(Ta),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),na(ma),Hc(t),null;case 25:return null;case 30:return null}throw Error(i(156,t.tag))}function Wc(e,t){switch(Ri(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return na(ma),ye(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return xe(t),null;case 31:if(t.memoizedState!==null){if(vo(t),t.alternate===null)throw Error(i(340));Yi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(vo(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(i(340));Yi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return fe(yo),null;case 4:return ye(),null;case 10:return na(t.type),null;case 22:case 23:return vo(t),lo(),e!==null&&fe(Ta),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return na(ma),null;case 25:return null;default:return null}}function Gc(e,t){switch(Ri(t),t.tag){case 3:na(ma),ye();break;case 26:case 27:case 5:xe(t);break;case 4:ye();break;case 31:t.memoizedState!==null&&vo(t);break;case 13:vo(t);break;case 19:fe(yo);break;case 10:na(t.type);break;case 22:case 23:vo(t),lo(),e!==null&&fe(Ta);break;case 24:na(ma)}}function Kc(e,t){try{var n=t.updateQueue,r=n===null?null:n.lastEffect;if(r!==null){var i=r.next;n=i;do{if((n.tag&e)===e){r=void 0;var a=n.create,o=n.inst;r=a(),o.destroy=r}n=n.next}while(n!==i)}}catch(e){Qu(t,t.return,e)}}function qc(e,t,n){try{var r=t.updateQueue,i=r===null?null:r.lastEffect;if(i!==null){var a=i.next;r=a;do{if((r.tag&e)===e){var o=r.inst,s=o.destroy;if(s!==void 0){o.destroy=void 0,i=t;var c=n,l=s;try{l()}catch(e){Qu(i,c,e)}}}r=r.next}while(r!==a)}}catch(e){Qu(t,t.return,e)}}function Jc(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{io(t,n)}catch(t){Qu(e,e.return,t)}}}function Yc(e,t,n){n.props=Xs(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(n){Qu(e,t,n)}}function Xc(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;case 30:r=e.stateNode;break;default:r=e.stateNode}typeof n==`function`?e.refCleanup=n(r):n.current=r}}catch(n){Qu(e,t,n)}}function Zc(e,t){var n=e.ref,r=e.refCleanup;if(n!==null)if(typeof r==`function`)try{r()}catch(n){Qu(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n==`function`)try{n(null)}catch(n){Qu(e,t,n)}else n.current=null}function Qc(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{a:switch(t){case`button`:case`input`:case`select`:case`textarea`:n.autoFocus&&r.focus();break a;case`img`:n.src?r.src=n.src:n.srcSet&&(r.srcset=n.srcSet)}}catch(t){Qu(e,e.return,t)}}function $c(e,t,n){try{var r=e.stateNode;Wd(r,e.type,n,t),r[_t]=t}catch(t){Qu(e,e.return,t)}}function el(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&sf(e.type)||e.tag===4}function tl(e){a:for(;;){for(;e.sibling===null;){if(e.return===null||el(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&sf(e.type)||e.flags&2||e.child===null||e.tag===4)continue a;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function nl(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=cn));else if(r!==4&&(r===27&&sf(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(nl(e,t,n),e=e.sibling;e!==null;)nl(e,t,n),e=e.sibling}function rl(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(r===27&&sf(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(rl(e,t,n),e=e.sibling;e!==null;)rl(e,t,n),e=e.sibling}function il(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);Ud(t,r,n),t[gt]=e,t[_t]=n}catch(t){Qu(e,e.return,t)}}var al=!1,ol=!1,sl=!1,cl=typeof WeakSet==`function`?WeakSet:Set,ll=null;function ul(e,t){if(e=e.containerInfo,qd=gp,e=Pr(e),Fr(e)){if(`selectionStart`in e)var n={start:e.selectionStart,end:e.selectionEnd};else a:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var a=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break a}var s=0,c=-1,l=-1,u=0,d=0,f=e,p=null;b:for(;;){for(var m;f!==n||a!==0&&f.nodeType!==3||(c=s+a),f!==o||r!==0&&f.nodeType!==3||(l=s+r),f.nodeType===3&&(s+=f.nodeValue.length),(m=f.firstChild)!==null;)p=f,f=m;for(;;){if(f===e)break b;if(p===n&&++u===a&&(c=s),p===o&&++d===r&&(l=s),(m=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=m}n=c===-1||l===-1?null:{start:c,end:l}}else n=null}n||={start:0,end:0}}else n=null;for(Jd={focusedElem:e,selectionRange:n},gp=!1,ll=t;ll!==null;)if(t=ll,e=t.child,t.subtreeFlags&1028&&e!==null)e.return=t,ll=e;else for(;ll!==null;){switch(t=ll,o=t.alternate,e=t.flags,t.tag){case 0:if(e&4&&(e=t.updateQueue,e=e===null?null:e.events,e!==null))for(n=0;n title`))),Ud(o,r,n),o[gt]=e,Ot(o),r=o;break a;case`link`:var s=Xf(`link`,`href`,a).get(r+(n.href||``));if(s){for(var c=0;cg&&(o=g,g=h,h=o);var _=Mr(s,h),v=Mr(s,g);if(_&&v&&(p.rangeCount!==1||p.anchorNode!==_.node||p.anchorOffset!==_.offset||p.focusNode!==v.node||p.focusOffset!==v.offset)){var y=d.createRange();y.setStart(_.node,_.offset),p.removeAllRanges(),h>g?(p.addRange(y),p.extend(v.node,v.offset)):(y.setEnd(v.node,v.offset),p.addRange(y))}}}}for(d=[],p=s;p=p.parentNode;)p.nodeType===1&&d.push({element:p,left:p.scrollLeft,top:p.scrollTop});for(typeof s.focus==`function`&&s.focus(),s=0;sn?32:n,E.T=null,n=_u,_u=null;var o=pu,s=hu;if(fu=0,mu=pu=null,hu=0,B&6)throw Error(i(331));var c=B;if(B|=4,Bl(o.current),Ml(o,o.current,s,n),B=c,fd(0,!1),Ge&&typeof Ge.onPostCommitFiberRoot==`function`)try{Ge.onPostCommitFiberRoot(We,o)}catch{}return!0}finally{D.p=a,E.T=r,Ju(e,t)}}function Zu(e,t,n){t=Ti(n,t),t=nc(e.stateNode,t,2),e=Za(e,t,2),e!==null&&(ot(e,2),dd(e))}function Qu(e,t,n){if(e.tag===3)Zu(e,e,n);else for(;t!==null;){if(t.tag===3){Zu(t,e,n);break}if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(du===null||!du.has(r))){e=Ti(n,e),n=rc(2),r=Za(t,n,2),r!==null&&(ic(n,r,t,e),ot(r,2),dd(r));break}}t=t.return}}function $u(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Wl;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(Xl=!0,i.add(n),e=ed.bind(null,e,t,n),t.then(e,e))}function ed(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Gl===e&&(H&n)===n&&(Ql===4||Ql===3&&(H&62914560)===H&&300>Fe()-su?!(B&2)&&U(e,0):tu|=n,ru===H&&(ru=0)),dd(e)}function td(e,t){t===0&&(t=it()),e=ui(e,t),e!==null&&(ot(e,t),dd(e))}function nd(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),td(e,n)}function rd(e,t){var n=0;switch(e.tag){case 31:case 13:var r=e.stateNode,a=e.memoizedState;a!==null&&(n=a.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(i(314))}r!==null&&r.delete(t),td(e,n)}function id(e,t){return je(e,t)}var ad=null,od=null,sd=!1,cd=!1,ld=!1,ud=0;function dd(e){e!==od&&e.next===null&&(od===null?ad=od=e:od=od.next=e),cd=!0,sd||(sd=!0,vd())}function fd(e,t){if(!ld&&cd){ld=!0;do for(var n=!1,r=ad;r!==null;){if(!t)if(e!==0){var i=r.pendingLanes;if(i===0)var a=0;else{var o=r.suspendedLanes,s=r.pingedLanes;a=(1<<31-qe(42|e)+1)-1,a&=i&~(o&~s),a=a&201326741?a&201326741|1:a?a|2:0}a!==0&&(n=!0,_d(r,a))}else a=H,a=tt(r,r===Gl?a:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),!(a&3)||nt(r,a)||(n=!0,_d(r,a));r=r.next}while(n);ld=!1}}function pd(){md()}function md(){cd=sd=!1;var e=0;ud!==0&&ef()&&(e=ud);for(var t=Fe(),n=null,r=ad;r!==null;){var i=r.next,a=hd(r,t);a===0?(r.next=null,n===null?ad=i:n.next=i,i===null&&(od=n)):(n=r,(e!==0||a&3)&&(cd=!0)),r=i}fu!==0&&fu!==5||fd(e,!1),ud!==0&&(ud=0)}function hd(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes&-62914561;0s)break;var u=c.transferSize,d=c.initiatorType;u&&Gd(d)&&(c=c.responseEnd,o+=u*(c`u`?null:document;function Af(e,t,n){var r=kf;if(r&&typeof t==`string`&&t){var i=Kt(t);i=`link[rel="`+e+`"][href="`+i+`"]`,typeof n==`string`&&(i+=`[crossorigin="`+n+`"]`),wf.has(i)||(wf.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement(`link`),Ud(t,`link`,e),Ot(t),r.head.appendChild(t)))}}function jf(e){Ef.D(e),Af(`dns-prefetch`,e,null)}function Mf(e,t){Ef.C(e,t),Af(`preconnect`,e,t)}function Nf(e,t,n){Ef.L(e,t,n);var r=kf;if(r&&e&&t){var i=`link[rel="preload"][as="`+Kt(t)+`"]`;t===`image`&&n&&n.imageSrcSet?(i+=`[imagesrcset="`+Kt(n.imageSrcSet)+`"]`,typeof n.imageSizes==`string`&&(i+=`[imagesizes="`+Kt(n.imageSizes)+`"]`)):i+=`[href="`+Kt(e)+`"]`;var a=i;switch(t){case`style`:a=zf(e);break;case`script`:a=Uf(e)}Cf.has(a)||(e=f({rel:`preload`,href:t===`image`&&n&&n.imageSrcSet?void 0:e,as:t},n),Cf.set(a,e),r.querySelector(i)!==null||t===`style`&&r.querySelector(Bf(a))||t===`script`&&r.querySelector(Wf(a))||(t=r.createElement(`link`),Ud(t,`link`,e),Ot(t),r.head.appendChild(t)))}}function Pf(e,t){Ef.m(e,t);var n=kf;if(n&&e){var r=t&&typeof t.as==`string`?t.as:`script`,i=`link[rel="modulepreload"][as="`+Kt(r)+`"][href="`+Kt(e)+`"]`,a=i;switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:a=Uf(e)}if(!Cf.has(a)&&(e=f({rel:`modulepreload`,href:e},t),Cf.set(a,e),n.querySelector(i)===null)){switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:if(n.querySelector(Wf(a)))return}r=n.createElement(`link`),Ud(r,`link`,e),Ot(r),n.head.appendChild(r)}}}function Ff(e,t,n){Ef.S(e,t,n);var r=kf;if(r&&e){var i=O(r).hoistableStyles,a=zf(e);t||=`default`;var o=i.get(a);if(!o){var s={loading:0,preload:null};if(o=r.querySelector(Bf(a)))s.loading=5;else{e=f({rel:`stylesheet`,href:e,"data-precedence":t},n),(n=Cf.get(a))&&qf(e,n);var c=o=r.createElement(`link`);Ot(c),Ud(c,`link`,e),c._p=new Promise(function(e,t){c.onload=e,c.onerror=t}),c.addEventListener(`load`,function(){s.loading|=1}),c.addEventListener(`error`,function(){s.loading|=2}),s.loading|=4,Kf(o,t,r)}o={type:`stylesheet`,instance:o,count:1,state:s},i.set(a,o)}}}function If(e,t){Ef.X(e,t);var n=kf;if(n&&e){var r=O(n).hoistableScripts,i=Uf(e),a=r.get(i);a||(a=n.querySelector(Wf(i)),a||(e=f({src:e,async:!0},t),(t=Cf.get(i))&&Jf(e,t),a=n.createElement(`script`),Ot(a),Ud(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Lf(e,t){Ef.M(e,t);var n=kf;if(n&&e){var r=O(n).hoistableScripts,i=Uf(e),a=r.get(i);a||(a=n.querySelector(Wf(i)),a||(e=f({src:e,async:!0,type:`module`},t),(t=Cf.get(i))&&Jf(e,t),a=n.createElement(`script`),Ot(a),Ud(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Rf(e,t,n,r){var a=(a=ge.current)?Tf(a):null;if(!a)throw Error(i(446));switch(e){case`meta`:case`title`:return null;case`style`:return typeof n.precedence==`string`&&typeof n.href==`string`?(t=zf(n.href),n=O(a).hoistableStyles,r=n.get(t),r||(r={type:`style`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};case`link`:if(n.rel===`stylesheet`&&typeof n.href==`string`&&typeof n.precedence==`string`){e=zf(n.href);var o=O(a).hoistableStyles,s=o.get(e);if(s||(a=a.ownerDocument||a,s={type:`stylesheet`,instance:null,count:0,state:{loading:0,preload:null}},o.set(e,s),(o=a.querySelector(Bf(e)))&&!o._p&&(s.instance=o,s.state.loading=5),Cf.has(e)||(n={rel:`preload`,as:`style`,href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},Cf.set(e,n),o||Hf(a,e,n,s.state))),t&&r===null)throw Error(i(528,``));return s}if(t&&r!==null)throw Error(i(529,``));return null;case`script`:return t=n.async,n=n.src,typeof n==`string`&&t&&typeof t!=`function`&&typeof t!=`symbol`?(t=Uf(n),n=O(a).hoistableScripts,r=n.get(t),r||(r={type:`script`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};default:throw Error(i(444,e))}}function zf(e){return`href="`+Kt(e)+`"`}function Bf(e){return`link[rel="stylesheet"][`+e+`]`}function Vf(e){return f({},e,{"data-precedence":e.precedence,precedence:null})}function Hf(e,t,n,r){e.querySelector(`link[rel="preload"][as="style"][`+t+`]`)?r.loading=1:(t=e.createElement(`link`),r.preload=t,t.addEventListener(`load`,function(){return r.loading|=1}),t.addEventListener(`error`,function(){return r.loading|=2}),Ud(t,`link`,n),Ot(t),e.head.appendChild(t))}function Uf(e){return`[src="`+Kt(e)+`"]`}function Wf(e){return`script[async]`+e}function Gf(e,t,n){if(t.count++,t.instance===null)switch(t.type){case`style`:var r=e.querySelector(`style[data-href~="`+Kt(n.href)+`"]`);if(r)return t.instance=r,Ot(r),r;var a=f({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement(`style`),Ot(r),Ud(r,`style`,a),Kf(r,n.precedence,e),t.instance=r;case`stylesheet`:a=zf(n.href);var o=e.querySelector(Bf(a));if(o)return t.state.loading|=4,t.instance=o,Ot(o),o;r=Vf(n),(a=Cf.get(a))&&qf(r,a),o=(e.ownerDocument||e).createElement(`link`),Ot(o);var s=o;return s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),Ud(o,`link`,r),t.state.loading|=4,Kf(o,n.precedence,e),t.instance=o;case`script`:return o=Uf(n.src),(a=e.querySelector(Wf(o)))?(t.instance=a,Ot(a),a):(r=n,(a=Cf.get(o))&&(r=f({},n),Jf(r,a)),e=e.ownerDocument||e,a=e.createElement(`script`),Ot(a),Ud(a,`link`,r),e.head.appendChild(a),t.instance=a);case`void`:return null;default:throw Error(i(443,t.type))}else t.type===`stylesheet`&&!(t.state.loading&4)&&(r=t.instance,t.state.loading|=4,Kf(r,n.precedence,e));return t.instance}function Kf(e,t,n){for(var r=n.querySelectorAll(`link[rel="stylesheet"][data-precedence],style[data-precedence]`),i=r.length?r[r.length-1]:null,a=i,o=0;o title`):null)}function Qf(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case`meta`:case`title`:return!0;case`style`:if(typeof t.precedence!=`string`||typeof t.href!=`string`||t.href===``)break;return!0;case`link`:if(typeof t.rel!=`string`||typeof t.href!=`string`||t.href===``||t.onLoad||t.onError)break;switch(t.rel){case`stylesheet`:return e=t.disabled,typeof t.precedence==`string`&&e==null;default:return!0}case`script`:if(t.async&&typeof t.async!=`function`&&typeof t.async!=`symbol`&&!t.onLoad&&!t.onError&&t.src&&typeof t.src==`string`)return!0}return!1}function $f(e){return!(e.type===`stylesheet`&&!(e.state.loading&3))}function ep(e,t,n,r){if(n.type===`stylesheet`&&(typeof r.media!=`string`||!1!==matchMedia(r.media).matches)&&!(n.state.loading&4)){if(n.instance===null){var i=zf(r.href),a=t.querySelector(Bf(i));if(a){t=a._p,typeof t==`object`&&t&&typeof t.then==`function`&&(e.count++,e=rp.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=a,Ot(a);return}a=t.ownerDocument||t,r=Vf(r),(i=Cf.get(i))&&qf(r,i),a=a.createElement(`link`),Ot(a);var o=a;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),Ud(a,`link`,r),n.instance=a}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&!(n.state.loading&3)&&(e.count++,n=rp.bind(e),t.addEventListener(`load`,n),t.addEventListener(`error`,n))}}var tp=0;function np(e,t){return e.stylesheets&&e.count===0&&ap(e,e.stylesheets),0tp?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}function rp(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)ap(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var ip=null;function ap(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,ip=new Map,t.forEach(op,e),ip=null,rp.call(e))}function op(e,t){if(!(t.state.loading&4)){var n=ip.get(e);if(n)var r=n.get(null);else{n=new Map,ip.set(e,n);for(var i=e.querySelectorAll(`link[data-precedence],style[data-precedence]`),a=0;a{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=po()}))(),ho=Gt({primaryColor:`teal`,defaultRadius:`md`,fontFamily:`Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, Segoe UI, sans-serif`,fontFamilyMonospace:`ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace`,headings:{fontFamily:`inherit`,fontWeight:`650`},cursorType:`pointer`});function go({dark:e,children:t}){return(0,O.jsx)(Wt,{theme:ho,forceColorScheme:e?`dark`:`light`,children:(0,O.jsx)(Gr,{withBorder:!0,radius:`lg`,style:{overflow:`hidden`},children:t})})}function _o({eyebrow:e,title:t,summary:n,onRefresh:r,disabled:i}){return(0,O.jsxs)(hi,{justify:`space-between`,align:`flex-start`,wrap:`nowrap`,px:{base:`md`,sm:`lg`},pt:`md`,pb:`sm`,children:[(0,O.jsxs)(A,{miw:0,children:[(0,O.jsx)(Ci,{c:`dimmed`,size:`xs`,fw:700,tt:`uppercase`,lts:`0.1em`,children:e}),(0,O.jsx)(to,{order:1,fz:`lg`,mt:2,style:{overflow:`hidden`,textOverflow:`ellipsis`,whiteSpace:`nowrap`},children:t}),n&&(0,O.jsx)(Ci,{c:`dimmed`,size:`sm`,mt:4,children:n})]}),(0,O.jsx)(Fi,{variant:`default`,size:`xs`,leftSection:(0,O.jsx)(so,{size:15,weight:`bold`}),onClick:()=>void r(),disabled:i,children:`Refresh`})]})}function vo({error:e,loading:t}){return e?(0,O.jsx)(vi,{color:`red`,m:`md`,children:e}):t?(0,O.jsxs)(Li,{mih:160,p:`xl`,children:[(0,O.jsx)(ai,{size:`sm`}),(0,O.jsx)(Ci,{c:`dimmed`,size:`sm`,ml:`sm`,children:t})]}):null}function yo({icon:e,title:t,children:n,tall:r=!1}){return(0,O.jsx)(Li,{mih:r?220:130,p:`xl`,children:(0,O.jsxs)(hi,{wrap:`nowrap`,children:[(0,O.jsx)(Ja,{variant:`light`,size:`xl`,radius:`md`,children:e}),(0,O.jsxs)(A,{children:[(0,O.jsx)(Ci,{fw:700,size:`sm`,children:t}),(0,O.jsx)(Ci,{c:`dimmed`,size:`xs`,mt:3,children:n})]})]})})}function bo({left:e,right:t}){return(0,O.jsxs)(hi,{justify:`space-between`,px:{base:`md`,sm:`lg`},py:`xs`,style:{borderTop:`1px solid var(--mantine-color-default-border)`},children:[(0,O.jsx)(Ci,{c:`dimmed`,size:`xs`,children:e}),(0,O.jsx)(Ci,{c:`dimmed`,size:`xs`,ta:`right`,children:t})]})}function xo({label:e,value:t,color:n}){return(0,O.jsxs)(Gr,{withBorder:!0,radius:`md`,p:`sm`,children:[(0,O.jsx)(Ci,{c:`dimmed`,size:`xs`,children:e}),(0,O.jsx)(Ci,{fw:700,fz:`xl`,c:n,mt:3,children:t})]})}function M(e,t=8){let[n,r]=(0,w.useState)(1),i=Math.max(1,Math.ceil(e.length/t));(0,w.useEffect)(()=>{n>i&&r(i)},[n,i]);let a=(n-1)*t;return{page:n,setPage:r,totalPages:i,pageItems:e.slice(a,a+t),from:e.length===0?0:a+1,to:Math.min(a+t,e.length),total:e.length}}function So({page:e,totalPages:t,from:n,to:r,total:i,onChange:a}){return t<=1?null:(0,O.jsxs)(hi,{justify:`space-between`,gap:`sm`,px:{base:`md`,sm:`lg`},py:`xs`,style:{borderTop:`1px solid var(--mantine-color-default-border)`},children:[(0,O.jsxs)(Ci,{c:`dimmed`,size:`xs`,children:[n,`–`,r,` of `,i]}),(0,O.jsx)(ca,{value:e,total:t,onChange:a,size:`xs`,withEdges:!0,"aria-label":`Table pages`})]})}function Co(e){return e===`healthy`?`teal`:e===`degraded`?`yellow`:`red`}var wo=new Intl.NumberFormat(void 0,{maximumFractionDigits:0});function To(e){return`${(e*100).toFixed(e>=.1?1:2)}%`}function Eo(e){return e>=1e3?`${(e/1e3).toFixed(2)}s`:`${e.toFixed(e>=100?0:1)}ms`}function Do(e){let[t,n]=e.split(`/`),r=new Date(t),i=new Date(n);if(Number.isNaN(r.valueOf())||Number.isNaN(i.valueOf()))return e;let a=Math.round((i.valueOf()-r.valueOf())/6e4);return a>=60&&a%60==0?`Last ${a/60}h`:`Last ${Math.max(a,1)}m`}function N(e,t,n){function r(n,r){if(n._zod||Object.defineProperty(n,"_zod",{value:{def:r,constr:o,traits:new Set},enumerable:!1}),n._zod.traits.has(e))return;n._zod.traits.add(e),t(n,r);let i=o.prototype,a=Object.keys(i);for(let e=0;en?.Parent&&t instanceof n.Parent?!0:t?._zod?.traits?.has(e)}),Object.defineProperty(o,"name",{value:e}),o}function Oo(e){return e&&Object.assign(Po,e),Po}var ko,Ao,jo,Mo,No,Po,Fo=o((()=>{Ao=Object.freeze({status:`aborted`}),jo=Symbol(`zod_brand`),Mo=class extends Error{constructor(){super(`Encountered Promise during synchronous parse. Use .parseAsync() instead.`)}},No=class extends Error{constructor(e){super(`Encountered unidirectional transform during encode: ${e}`),this.name=`ZodEncodeError`}},(ko=globalThis).__zod_globalConfig??(ko.__zod_globalConfig={}),Po=globalThis.__zod_globalConfig})),Io=c({BIGINT_FORMAT_RANGES:()=>Bs,Class:()=>Vs,NUMBER_FORMAT_RANGES:()=>zs,aborted:()=>vs,allowsEval:()=>Fs,assert:()=>Vo,assertEqual:()=>Lo,assertIs:()=>zo,assertNever:()=>Bo,assertNotEqual:()=>Ro,assignProp:()=>Yo,base64ToUint8Array:()=>Ds,base64urlToUint8Array:()=>ks,cached:()=>Wo,captureStackTrace:()=>Ps,cleanEnum:()=>Es,cleanRegex:()=>Ko,clone:()=>cs,cloneDef:()=>Zo,createTransparentProxy:()=>ls,defineLazy:()=>F,esc:()=>ts,escapeRegex:()=>ss,explicitlyAborted:()=>ys,extend:()=>ps,finalizeIssue:()=>Ss,floatSafeRemainder:()=>qo,getElementAtPath:()=>Qo,getEnumValues:()=>Ho,getLengthableOrigin:()=>ws,getParsedType:()=>Is,getSizableOrigin:()=>Cs,hexToUint8Array:()=>js,isObject:()=>rs,isPlainObject:()=>is,issue:()=>Ts,joinValues:()=>P,jsonStringifyReplacer:()=>Uo,merge:()=>hs,mergeDefs:()=>Xo,normalizeParams:()=>I,nullish:()=>Go,numKeys:()=>os,objectClone:()=>Jo,omit:()=>fs,optionalKeys:()=>us,parsedType:()=>R,partial:()=>gs,pick:()=>ds,prefixIssues:()=>bs,primitiveTypes:()=>Rs,promiseAllObject:()=>$o,propertyKeyTypes:()=>Ls,randomString:()=>es,required:()=>_s,safeExtend:()=>ms,shallowClone:()=>as,slugify:()=>ns,stringifyPrimitive:()=>L,uint8ArrayToBase64:()=>Os,uint8ArrayToBase64url:()=>As,uint8ArrayToHex:()=>Ms,unwrapMessage:()=>xs});function Lo(e){return e}function Ro(e){return e}function zo(e){}function Bo(e){throw Error(`Unexpected value in exhaustive check`)}function Vo(e){}function Ho(e){let t=Object.values(e).filter(e=>typeof e==`number`);return Object.entries(e).filter(([e,n])=>t.indexOf(+e)===-1).map(([e,t])=>t)}function P(e,t=`|`){return e.map(e=>L(e)).join(t)}function Uo(e,t){return typeof t==`bigint`?t.toString():t}function Wo(e){return{get value(){{let t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function Go(e){return e==null}function Ko(e){let t=+!!e.startsWith(`^`),n=e.endsWith(`$`)?e.length-1:e.length;return e.slice(t,n)}function qo(e,t){let n=e/t,r=Math.round(n),i=2**-52*Math.max(Math.abs(n),1);return Math.abs(n-r)e?.[t],e):e}function $o(e){let t=Object.keys(e),n=t.map(t=>e[t]);return Promise.all(n).then(e=>{let n={};for(let r=0;rt};if(t?.message!==void 0){if(t?.error!==void 0)throw Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error==`string`?{...t,error:()=>t.error}:t}function ls(e){let t;return new Proxy({},{get(n,r,i){return t??=e(),Reflect.get(t,r,i)},set(n,r,i,a){return t??=e(),Reflect.set(t,r,i,a)},has(n,r){return t??=e(),Reflect.has(t,r)},deleteProperty(n,r){return t??=e(),Reflect.deleteProperty(t,r)},ownKeys(n){return t??=e(),Reflect.ownKeys(t)},getOwnPropertyDescriptor(n,r){return t??=e(),Reflect.getOwnPropertyDescriptor(t,r)},defineProperty(n,r,i){return t??=e(),Reflect.defineProperty(t,r,i)}})}function L(e){return typeof e==`bigint`?e.toString()+`n`:typeof e==`string`?`"${e}"`:`${e}`}function us(e){return Object.keys(e).filter(t=>e[t]._zod.optin===`optional`&&e[t]._zod.optout===`optional`)}function ds(e,t){let n=e._zod.def,r=n.checks;if(r&&r.length>0)throw Error(`.pick() cannot be used on object schemas containing refinements`);return cs(e,Xo(e._zod.def,{get shape(){let e={};for(let r in t){if(!(r in n.shape))throw Error(`Unrecognized key: "${r}"`);t[r]&&(e[r]=n.shape[r])}return Yo(this,`shape`,e),e},checks:[]}))}function fs(e,t){let n=e._zod.def,r=n.checks;if(r&&r.length>0)throw Error(`.omit() cannot be used on object schemas containing refinements`);return cs(e,Xo(e._zod.def,{get shape(){let r={...e._zod.def.shape};for(let e in t){if(!(e in n.shape))throw Error(`Unrecognized key: "${e}"`);t[e]&&delete r[e]}return Yo(this,`shape`,r),r},checks:[]}))}function ps(e,t){if(!is(t))throw Error(`Invalid input to extend: expected a plain object`);let n=e._zod.def.checks;if(n&&n.length>0){let n=e._zod.def.shape;for(let e in t)if(Object.getOwnPropertyDescriptor(n,e)!==void 0)throw Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}return cs(e,Xo(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t};return Yo(this,`shape`,n),n}}))}function ms(e,t){if(!is(t))throw Error(`Invalid input to safeExtend: expected a plain object`);return cs(e,Xo(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t};return Yo(this,`shape`,n),n}}))}function hs(e,t){if(e._zod.def.checks?.length)throw Error(`.merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.`);return cs(e,Xo(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t._zod.def.shape};return Yo(this,`shape`,n),n},get catchall(){return t._zod.def.catchall},checks:t._zod.def.checks??[]}))}function gs(e,t,n){let r=t._zod.def.checks;if(r&&r.length>0)throw Error(`.partial() cannot be used on object schemas containing refinements`);return cs(t,Xo(t._zod.def,{get shape(){let r=t._zod.def.shape,i={...r};if(n)for(let t in n){if(!(t in r))throw Error(`Unrecognized key: "${t}"`);n[t]&&(i[t]=e?new e({type:`optional`,innerType:r[t]}):r[t])}else for(let t in r)i[t]=e?new e({type:`optional`,innerType:r[t]}):r[t];return Yo(this,`shape`,i),i},checks:[]}))}function _s(e,t,n){return cs(t,Xo(t._zod.def,{get shape(){let r=t._zod.def.shape,i={...r};if(n)for(let t in n){if(!(t in i))throw Error(`Unrecognized key: "${t}"`);n[t]&&(i[t]=new e({type:`nonoptional`,innerType:r[t]}))}else for(let t in r)i[t]=new e({type:`nonoptional`,innerType:r[t]});return Yo(this,`shape`,i),i}}))}function vs(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n{var n;return(n=t).path??(n.path=[]),t.path.unshift(e),t})}function xs(e){return typeof e==`string`?e:e?.message}function Ss(e,t,n){let r=e.message?e.message:xs(e.inst?._zod.def?.error?.(e))??xs(t?.error?.(e))??xs(n.customError?.(e))??xs(n.localeError?.(e))??`Invalid input`,{inst:i,continue:a,input:o,...s}=e;return s.path??=[],s.message=r,t?.reportInput&&(s.input=o),s}function Cs(e){return e instanceof Set?`set`:e instanceof Map?`map`:e instanceof File?`file`:`unknown`}function ws(e){return Array.isArray(e)?`array`:typeof e==`string`?`string`:`unknown`}function R(e){let t=typeof e;switch(t){case`number`:return Number.isNaN(e)?`nan`:`number`;case`object`:{if(e===null)return`null`;if(Array.isArray(e))return`array`;let t=e;if(t&&Object.getPrototypeOf(t)!==Object.prototype&&`constructor`in t&&t.constructor)return t.constructor.name}}return t}function Ts(...e){let[t,n,r]=e;return typeof t==`string`?{message:t,code:`custom`,input:n,inst:r}:{...t}}function Es(e){return Object.entries(e).filter(([e,t])=>Number.isNaN(Number.parseInt(e,10))).map(e=>e[1])}function Ds(e){let t=atob(e),n=new Uint8Array(t.length);for(let e=0;ee.toString(16).padStart(2,`0`)).join(``)}var Ns,Ps,Fs,Is,Ls,Rs,zs,Bs,Vs,z=o((()=>{Fo(),Ns=Symbol(`evaluating`),Ps=`captureStackTrace`in Error?Error.captureStackTrace:(...e)=>{},Fs=Wo(()=>{if(Po.jitless||typeof navigator<`u`&&navigator?.userAgent?.includes(`Cloudflare`))return!1;try{return Function(``),!0}catch{return!1}}),Is=e=>{let t=typeof e;switch(t){case`undefined`:return`undefined`;case`string`:return`string`;case`number`:return Number.isNaN(e)?`nan`:`number`;case`boolean`:return`boolean`;case`function`:return`function`;case`bigint`:return`bigint`;case`symbol`:return`symbol`;case`object`:return Array.isArray(e)?`array`:e===null?`null`:e.then&&typeof e.then==`function`&&e.catch&&typeof e.catch==`function`?`promise`:typeof Map<`u`&&e instanceof Map?`map`:typeof Set<`u`&&e instanceof Set?`set`:typeof Date<`u`&&e instanceof Date?`date`:typeof File<`u`&&e instanceof File?`file`:`object`;default:throw Error(`Unknown data type: ${t}`)}},Ls=new Set([`string`,`number`,`symbol`]),Rs=new Set([`string`,`number`,`bigint`,`boolean`,`symbol`,`undefined`]),zs={safeint:[-(2**53-1),2**53-1],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]},Bs={int64:[BigInt(`-9223372036854775808`),BigInt(`9223372036854775807`)],uint64:[BigInt(0),BigInt(`18446744073709551615`)]},Vs=class{constructor(...e){}}}));function Hs(e,t=e=>e.message){let n={},r=[];for(let i of e.issues)i.path.length>0?(n[i.path[0]]=n[i.path[0]]||[],n[i.path[0]].push(t(i))):r.push(t(i));return{formErrors:r,fieldErrors:n}}function Us(e,t=e=>e.message){let n={_errors:[]},r=(e,i=[])=>{for(let a of e.issues)if(a.code===`invalid_union`&&a.errors.length)a.errors.map(e=>r({issues:e},[...i,...a.path]));else if(a.code===`invalid_key`)r({issues:a.issues},[...i,...a.path]);else if(a.code===`invalid_element`)r({issues:a.issues},[...i,...a.path]);else{let e=[...i,...a.path];if(e.length===0)n._errors.push(t(a));else{let r=n,i=0;for(;ie.message){let n={errors:[]},r=(e,i=[])=>{var a,o;for(let s of e.issues)if(s.code===`invalid_union`&&s.errors.length)s.errors.map(e=>r({issues:e},[...i,...s.path]));else if(s.code===`invalid_key`)r({issues:s.issues},[...i,...s.path]);else if(s.code===`invalid_element`)r({issues:s.issues},[...i,...s.path]);else{let e=[...i,...s.path];if(e.length===0){n.errors.push(t(s));continue}let r=n,c=0;for(;ctypeof e==`object`?e.key:e);for(let e of n)typeof e==`number`?t.push(`[${e}]`):typeof e==`symbol`?t.push(`[${JSON.stringify(String(e))}]`):/[^\w$]/.test(e)?t.push(`[${JSON.stringify(e)}]`):(t.length&&t.push(`.`),t.push(e));return t.join(``)}function Ks(e){let t=[],n=[...e.issues].sort((e,t)=>(e.path??[]).length-(t.path??[]).length);for(let e of n)t.push(`✖ ${e.message}`),e.path?.length&&t.push(` → at ${Gs(e.path)}`);return t.join(` -`)}var qs,Js,Ys,Xs=o((()=>{Fo(),z(),qs=(e,t)=>{e.name=`$ZodError`,Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,Uo,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},Js=N(`$ZodError`,qs),Ys=N(`$ZodError`,qs,{Parent:Error})})),Zs,Qs,$s,ec,tc,nc,rc,ic,ac,oc,sc,cc,lc,uc,dc,fc,pc,mc,hc,gc,_c,vc,yc,bc,xc=o((()=>{Fo(),Xs(),z(),Zs=e=>(t,n,r,i)=>{let a=r?{...r,async:!1}:{async:!1},o=t._zod.run({value:n,issues:[]},a);if(o instanceof Promise)throw new Mo;if(o.issues.length){let t=new((i?.Err)??e)(o.issues.map(e=>Ss(e,a,Oo())));throw Ps(t,i?.callee),t}return o.value},Qs=Zs(Ys),$s=e=>async(t,n,r,i)=>{let a=r?{...r,async:!0}:{async:!0},o=t._zod.run({value:n,issues:[]},a);if(o instanceof Promise&&(o=await o),o.issues.length){let t=new((i?.Err)??e)(o.issues.map(e=>Ss(e,a,Oo())));throw Ps(t,i?.callee),t}return o.value},ec=$s(Ys),tc=e=>(t,n,r)=>{let i=r?{...r,async:!1}:{async:!1},a=t._zod.run({value:n,issues:[]},i);if(a instanceof Promise)throw new Mo;return a.issues.length?{success:!1,error:new(e??Js)(a.issues.map(e=>Ss(e,i,Oo())))}:{success:!0,data:a.value}},nc=tc(Ys),rc=e=>async(t,n,r)=>{let i=r?{...r,async:!0}:{async:!0},a=t._zod.run({value:n,issues:[]},i);return a instanceof Promise&&(a=await a),a.issues.length?{success:!1,error:new e(a.issues.map(e=>Ss(e,i,Oo())))}:{success:!0,data:a.value}},ic=rc(Ys),ac=e=>(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return Zs(e)(t,n,i)},oc=ac(Ys),sc=e=>(t,n,r)=>Zs(e)(t,n,r),cc=sc(Ys),lc=e=>async(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return $s(e)(t,n,i)},uc=lc(Ys),dc=e=>async(t,n,r)=>$s(e)(t,n,r),fc=dc(Ys),pc=e=>(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return tc(e)(t,n,i)},mc=pc(Ys),hc=e=>(t,n,r)=>tc(e)(t,n,r),gc=hc(Ys),_c=e=>async(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return rc(e)(t,n,i)},vc=_c(Ys),yc=e=>async(t,n,r)=>rc(e)(t,n,r),bc=yc(Ys)})),Sc=c({base64:()=>el,base64url:()=>tl,bigint:()=>ll,boolean:()=>fl,browserEmail:()=>qc,cidrv4:()=>Qc,cidrv6:()=>$c,cuid:()=>kc,cuid2:()=>Ac,date:()=>sl,datetime:()=>Ec,domain:()=>rl,duration:()=>Fc,e164:()=>al,email:()=>Hc,emoji:()=>Cc,extendedDuration:()=>Ic,guid:()=>Lc,hex:()=>_l,hostname:()=>nl,html5Email:()=>Uc,httpProtocol:()=>il,idnEmail:()=>Kc,integer:()=>ul,ipv4:()=>Yc,ipv6:()=>Xc,ksuid:()=>Nc,lowercase:()=>hl,mac:()=>Zc,md5_base64:()=>yl,md5_base64url:()=>bl,md5_hex:()=>vl,nanoid:()=>Pc,null:()=>pl,number:()=>dl,rfc5322Email:()=>Wc,sha1_base64:()=>Sl,sha1_base64url:()=>Cl,sha1_hex:()=>xl,sha256_base64:()=>Tl,sha256_base64url:()=>El,sha256_hex:()=>wl,sha384_base64:()=>Ol,sha384_base64url:()=>kl,sha384_hex:()=>Dl,sha512_base64:()=>jl,sha512_base64url:()=>Ml,sha512_hex:()=>Al,string:()=>cl,time:()=>Tc,ulid:()=>jc,undefined:()=>ml,unicodeEmail:()=>Gc,uppercase:()=>gl,uuid:()=>Rc,uuid4:()=>zc,uuid6:()=>Bc,uuid7:()=>Vc,xid:()=>Mc});function Cc(){return new RegExp(Jc,`u`)}function wc(e){let t=`(?:[01]\\d|2[0-3]):[0-5]\\d`;return typeof e.precision==`number`?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function Tc(e){return RegExp(`^${wc(e)}$`)}function Ec(e){let t=wc({precision:e.precision}),n=[`Z`];e.local&&n.push(``),e.offset&&n.push(`([+-](?:[01]\\d|2[0-3]):[0-5]\\d)`);let r=`${t}(?:${n.join(`|`)})`;return RegExp(`^${ol}T(?:${r})$`)}function Dc(e,t){return RegExp(`^[A-Za-z0-9+/]{${e}}${t}$`)}function Oc(e){return RegExp(`^[A-Za-z0-9_-]{${e}}$`)}var kc,Ac,jc,Mc,Nc,Pc,Fc,Ic,Lc,Rc,zc,Bc,Vc,Hc,Uc,Wc,Gc,Kc,qc,Jc,Yc,Xc,Zc,Qc,$c,el,tl,nl,rl,il,al,ol,sl,cl,ll,ul,dl,fl,pl,ml,hl,gl,_l,vl,yl,bl,xl,Sl,Cl,wl,Tl,El,Dl,Ol,kl,Al,jl,Ml,Nl=o((()=>{z(),kc=/^[cC][0-9a-z]{6,}$/,Ac=/^[0-9a-z]+$/,jc=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,Mc=/^[0-9a-vA-V]{20}$/,Nc=/^[A-Za-z0-9]{27}$/,Pc=/^[a-zA-Z0-9_-]{21}$/,Fc=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,Ic=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,Lc=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,Rc=e=>e?RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,zc=Rc(4),Bc=Rc(6),Vc=Rc(7),Hc=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,Uc=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,Wc=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,Gc=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,Kc=Gc,qc=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,Jc=`^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$`,Yc=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,Xc=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,Zc=e=>{let t=ss(e??`:`);return RegExp(`^(?:[0-9A-F]{2}${t}){5}[0-9A-F]{2}$|^(?:[0-9a-f]{2}${t}){5}[0-9a-f]{2}$`)},Qc=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,$c=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,el=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,tl=/^[A-Za-z0-9_-]*$/,nl=/^(?=.{1,253}\.?$)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?)*\.?$/,rl=/^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/,il=/^https?$/,al=/^\+[1-9]\d{6,14}$/,ol=`(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))`,sl=RegExp(`^${ol}$`),cl=e=>{let t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??``}}`:`[\\s\\S]*`;return RegExp(`^${t}$`)},ll=/^-?\d+n?$/,ul=/^-?\d+$/,dl=/^-?\d+(?:\.\d+)?$/,fl=/^(?:true|false)$/i,pl=/^null$/i,ml=/^undefined$/i,hl=/^[^A-Z]*$/,gl=/^[^a-z]*$/,_l=/^[0-9a-fA-F]*$/,vl=/^[0-9a-fA-F]{32}$/,yl=Dc(22,`==`),bl=Oc(22),xl=/^[0-9a-fA-F]{40}$/,Sl=Dc(27,`=`),Cl=Oc(27),wl=/^[0-9a-fA-F]{64}$/,Tl=Dc(43,`=`),El=Oc(43),Dl=/^[0-9a-fA-F]{96}$/,Ol=Dc(64,``),kl=Oc(64),Al=/^[0-9a-fA-F]{128}$/,jl=Dc(86,`==`),Ml=Oc(86)}));function Pl(e,t,n){e.issues.length&&t.issues.push(...bs(n,e.issues))}var Fl,Il,Ll,Rl,zl,Bl,Vl,Hl,Ul,Wl,B,Gl,V,H,Kl,ql,Jl,Yl,Xl,Zl,Ql,$l,eu,tu=o((()=>{Fo(),Nl(),z(),Fl=N(`$ZodCheck`,(e,t)=>{var n;e._zod??={},e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),Il={number:`number`,bigint:`bigint`,object:`date`},Ll=N(`$ZodCheckLessThan`,(e,t)=>{Fl.init(e,t);let n=Il[typeof t.value];e._zod.onattach.push(e=>{let n=e._zod.bag,r=(t.inclusive?n.maximum:n.exclusiveMaximum)??1/0;t.value{(t.inclusive?r.value<=t.value:r.value{Fl.init(e,t);let n=Il[typeof t.value];e._zod.onattach.push(e=>{let n=e._zod.bag,r=(t.inclusive?n.minimum:n.exclusiveMinimum)??-1/0;t.value>r&&(t.inclusive?n.minimum=t.value:n.exclusiveMinimum=t.value)}),e._zod.check=r=>{(t.inclusive?r.value>=t.value:r.value>t.value)||r.issues.push({origin:n,code:`too_small`,minimum:typeof t.value==`object`?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),zl=N(`$ZodCheckMultipleOf`,(e,t)=>{Fl.init(e,t),e._zod.onattach.push(e=>{var n;(n=e._zod.bag).multipleOf??(n.multipleOf=t.value)}),e._zod.check=n=>{if(typeof n.value!=typeof t.value)throw Error(`Cannot mix number and bigint in multiple_of check.`);(typeof n.value==`bigint`?n.value%t.value===BigInt(0):qo(n.value,t.value)===0)||n.issues.push({origin:typeof n.value,code:`not_multiple_of`,divisor:t.value,input:n.value,inst:e,continue:!t.abort})}}),Bl=N(`$ZodCheckNumberFormat`,(e,t)=>{Fl.init(e,t),t.format=t.format||`float64`;let n=t.format?.includes(`int`),r=n?`int`:`number`,[i,a]=zs[t.format];e._zod.onattach.push(e=>{let r=e._zod.bag;r.format=t.format,r.minimum=i,r.maximum=a,n&&(r.pattern=ul)}),e._zod.check=o=>{let s=o.value;if(n){if(!Number.isInteger(s)){o.issues.push({expected:r,format:t.format,code:`invalid_type`,continue:!1,input:s,inst:e});return}if(!Number.isSafeInteger(s)){s>0?o.issues.push({input:s,code:`too_big`,maximum:2**53-1,note:`Integers must be within the safe integer range.`,inst:e,origin:r,inclusive:!0,continue:!t.abort}):o.issues.push({input:s,code:`too_small`,minimum:-(2**53-1),note:`Integers must be within the safe integer range.`,inst:e,origin:r,inclusive:!0,continue:!t.abort});return}}sa&&o.issues.push({origin:`number`,input:s,code:`too_big`,maximum:a,inclusive:!0,inst:e,continue:!t.abort})}}),Vl=N(`$ZodCheckBigIntFormat`,(e,t)=>{Fl.init(e,t);let[n,r]=Bs[t.format];e._zod.onattach.push(e=>{let i=e._zod.bag;i.format=t.format,i.minimum=n,i.maximum=r}),e._zod.check=i=>{let a=i.value;ar&&i.issues.push({origin:`bigint`,input:a,code:`too_big`,maximum:r,inclusive:!0,inst:e,continue:!t.abort})}}),Hl=N(`$ZodCheckMaxSize`,(e,t)=>{var n;Fl.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!Go(t)&&t.size!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag.maximum??1/0;t.maximum{let r=n.value;r.size<=t.maximum||n.issues.push({origin:Cs(r),code:`too_big`,maximum:t.maximum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),Ul=N(`$ZodCheckMinSize`,(e,t)=>{var n;Fl.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!Go(t)&&t.size!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag.minimum??-1/0;t.minimum>n&&(e._zod.bag.minimum=t.minimum)}),e._zod.check=n=>{let r=n.value;r.size>=t.minimum||n.issues.push({origin:Cs(r),code:`too_small`,minimum:t.minimum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),Wl=N(`$ZodCheckSizeEquals`,(e,t)=>{var n;Fl.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!Go(t)&&t.size!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag;n.minimum=t.size,n.maximum=t.size,n.size=t.size}),e._zod.check=n=>{let r=n.value,i=r.size;if(i===t.size)return;let a=i>t.size;n.issues.push({origin:Cs(r),...a?{code:`too_big`,maximum:t.size}:{code:`too_small`,minimum:t.size},inclusive:!0,exact:!0,input:n.value,inst:e,continue:!t.abort})}}),B=N(`$ZodCheckMaxLength`,(e,t)=>{var n;Fl.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!Go(t)&&t.length!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag.maximum??1/0;t.maximum{let r=n.value;if(r.length<=t.maximum)return;let i=ws(r);n.issues.push({origin:i,code:`too_big`,maximum:t.maximum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),Gl=N(`$ZodCheckMinLength`,(e,t)=>{var n;Fl.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!Go(t)&&t.length!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag.minimum??-1/0;t.minimum>n&&(e._zod.bag.minimum=t.minimum)}),e._zod.check=n=>{let r=n.value;if(r.length>=t.minimum)return;let i=ws(r);n.issues.push({origin:i,code:`too_small`,minimum:t.minimum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),V=N(`$ZodCheckLengthEquals`,(e,t)=>{var n;Fl.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!Go(t)&&t.length!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag;n.minimum=t.length,n.maximum=t.length,n.length=t.length}),e._zod.check=n=>{let r=n.value,i=r.length;if(i===t.length)return;let a=ws(r),o=i>t.length;n.issues.push({origin:a,...o?{code:`too_big`,maximum:t.length}:{code:`too_small`,minimum:t.length},inclusive:!0,exact:!0,input:n.value,inst:e,continue:!t.abort})}}),H=N(`$ZodCheckStringFormat`,(e,t)=>{var n,r;Fl.init(e,t),e._zod.onattach.push(e=>{let n=e._zod.bag;n.format=t.format,t.pattern&&(n.patterns??=new Set,n.patterns.add(t.pattern))}),t.pattern?(n=e._zod).check??(n.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:`string`,code:`invalid_format`,format:t.format,input:n.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(r=e._zod).check??(r.check=()=>{})}),Kl=N(`$ZodCheckRegex`,(e,t)=>{H.init(e,t),e._zod.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:`string`,code:`invalid_format`,format:`regex`,input:n.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),ql=N(`$ZodCheckLowerCase`,(e,t)=>{t.pattern??=hl,H.init(e,t)}),Jl=N(`$ZodCheckUpperCase`,(e,t)=>{t.pattern??=gl,H.init(e,t)}),Yl=N(`$ZodCheckIncludes`,(e,t)=>{Fl.init(e,t);let n=ss(t.includes),r=new RegExp(typeof t.position==`number`?`^.{${t.position}}${n}`:n);t.pattern=r,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??=new Set,t.patterns.add(r)}),e._zod.check=n=>{n.value.includes(t.includes,t.position)||n.issues.push({origin:`string`,code:`invalid_format`,format:`includes`,includes:t.includes,input:n.value,inst:e,continue:!t.abort})}}),Xl=N(`$ZodCheckStartsWith`,(e,t)=>{Fl.init(e,t);let n=RegExp(`^${ss(t.prefix)}.*`);t.pattern??=n,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??=new Set,t.patterns.add(n)}),e._zod.check=n=>{n.value.startsWith(t.prefix)||n.issues.push({origin:`string`,code:`invalid_format`,format:`starts_with`,prefix:t.prefix,input:n.value,inst:e,continue:!t.abort})}}),Zl=N(`$ZodCheckEndsWith`,(e,t)=>{Fl.init(e,t);let n=RegExp(`.*${ss(t.suffix)}$`);t.pattern??=n,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??=new Set,t.patterns.add(n)}),e._zod.check=n=>{n.value.endsWith(t.suffix)||n.issues.push({origin:`string`,code:`invalid_format`,format:`ends_with`,suffix:t.suffix,input:n.value,inst:e,continue:!t.abort})}}),Ql=N(`$ZodCheckProperty`,(e,t)=>{Fl.init(e,t),e._zod.check=e=>{let n=t.schema._zod.run({value:e.value[t.property],issues:[]},{});if(n instanceof Promise)return n.then(n=>Pl(n,e,t.property));Pl(n,e,t.property)}}),$l=N(`$ZodCheckMimeType`,(e,t)=>{Fl.init(e,t);let n=new Set(t.mime);e._zod.onattach.push(e=>{e._zod.bag.mime=t.mime}),e._zod.check=r=>{n.has(r.value.type)||r.issues.push({code:`invalid_value`,values:t.mime,input:r.value.type,inst:e,continue:!t.abort})}}),eu=N(`$ZodCheckOverwrite`,(e,t)=>{Fl.init(e,t),e._zod.check=e=>{e.value=t.tx(e.value)}})})),nu,ru=o((()=>{nu=class{constructor(e=[]){this.content=[],this.indent=0,this&&(this.args=e)}indented(e){this.indent+=1,e(this),--this.indent}write(e){if(typeof e==`function`){e(this,{execution:`sync`}),e(this,{execution:`async`});return}let t=e.split(` +`+e.stack}}var Ae=Object.prototype.hasOwnProperty,je=t.unstable_scheduleCallback,Me=t.unstable_cancelCallback,Ne=t.unstable_shouldYield,Pe=t.unstable_requestPaint,Fe=t.unstable_now,Ie=t.unstable_getCurrentPriorityLevel,Le=t.unstable_ImmediatePriority,Re=t.unstable_UserBlockingPriority,ze=t.unstable_NormalPriority,Be=t.unstable_LowPriority,Ve=t.unstable_IdlePriority,He=t.log,Ue=t.unstable_setDisableYieldValue,We=null,Ge=null;function Ke(e){if(typeof He==`function`&&Ue(e),Ge&&typeof Ge.setStrictMode==`function`)try{Ge.setStrictMode(We,e)}catch{}}var qe=Math.clz32?Math.clz32:Xe,Je=Math.log,Ye=Math.LN2;function Xe(e){return e>>>=0,e===0?32:31-(Je(e)/Ye|0)|0}var Ze=256,Qe=262144,$e=4194304;function et(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function tt(e,t,n){var r=e.pendingLanes;if(r===0)return 0;var i=0,a=e.suspendedLanes,o=e.pingedLanes;e=e.warmLanes;var s=r&134217727;return s===0?(s=r&~a,s===0?o===0?n||(n=r&~e,n!==0&&(i=et(n))):i=et(o):i=et(s)):(r=s&~a,r===0?(o&=s,o===0?n||(n=s&~e,n!==0&&(i=et(n))):i=et(o)):i=et(r)),i===0?0:t!==0&&t!==i&&(t&a)===0&&(a=i&-i,n=t&-t,a>=n||a===32&&n&4194048)?t:i}function nt(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function rt(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function it(){var e=$e;return $e<<=1,!($e&62914560)&&($e=4194304),e}function at(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function ot(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function st(e,t,n,r,i,a){var o=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var s=e.entanglements,c=e.expirationTimes,l=e.hiddenUpdates;for(n=o&~n;0`u`||window.document===void 0||window.document.createElement===void 0),vn=!1;if(_n)try{var yn={};Object.defineProperty(yn,"passive",{get:function(){vn=!0}}),window.addEventListener(`test`,yn,yn),window.removeEventListener(`test`,yn,yn)}catch{vn=!1}var bn=null,xn=null,Sn=null;function Cn(){if(Sn)return Sn;var e,t=xn,n=t.length,r,i=`value`in bn?bn.value:bn.textContent,a=i.length;for(e=0;e=er),rr=` `,ir=!1;function ar(e,t){switch(e){case`keyup`:return Qn.indexOf(t.keyCode)!==-1;case`keydown`:return t.keyCode!==229;case`keypress`:case`mousedown`:case`focusout`:return!0;default:return!1}}function or(e){return e=e.detail,typeof e==`object`&&`data`in e?e.data:null}var sr=!1;function cr(e,t){switch(e){case`compositionend`:return or(t);case`keypress`:return t.which===32?(ir=!0,rr):null;case`textInput`:return e=t.data,e===rr&&ir?null:e;default:return null}}function lr(e,t){if(sr)return e===`compositionend`||!$n&&ar(e,t)?(e=Cn(),Sn=xn=bn=null,sr=!1,e):null;switch(e){case`paste`:return null;case`keypress`:if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}a:{for(;n;){if(n.nextSibling){n=n.nextSibling;break a}n=n.parentNode}n=void 0}n=jr(n)}}function Nr(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Nr(e,t.parentNode):`contains`in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Pr(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=k(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href==`string`}catch{n=!1}if(n)e=t.contentWindow;else break;t=k(e.document)}return t}function Fr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t===`input`&&(e.type===`text`||e.type===`search`||e.type===`tel`||e.type===`url`||e.type===`password`)||t===`textarea`||e.contentEditable===`true`)}var Ir=_n&&`documentMode`in document&&11>=document.documentMode,Lr=null,Rr=null,zr=null,Br=!1;function Vr(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Br||Lr==null||Lr!==k(r)||(r=Lr,`selectionStart`in r&&Fr(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),zr&&Ar(zr,r)||(zr=r,r=Pd(Rr,`onSelect`),0>=o,i-=o,Ni=1<<32-qe(t)+i|n<m?(h=d,d=null):h=d.sibling;var g=p(i,d,s[m],c);if(g===null){d===null&&(d=h);break}e&&d&&g.alternate===null&&t(i,d),a=o(g,a,m),u===null?l=g:u.sibling=g,u=g,d=h}if(m===s.length)return n(i,d),j&&Fi(i,m),l;if(d===null){for(;mh?(g=m,m=null):g=m.sibling;var y=p(a,m,v.value,l);if(y===null){m===null&&(m=g);break}e&&m&&y.alternate===null&&t(a,m),s=o(y,s,h),d===null?u=y:d.sibling=y,d=y,m=g}if(v.done)return n(a,m),j&&Fi(a,h),u;if(m===null){for(;!v.done;h++,v=c.next())v=f(a,v.value,l),v!==null&&(s=o(v,s,h),d===null?u=v:d.sibling=v,d=v);return j&&Fi(a,h),u}for(m=r(m);!v.done;h++,v=c.next())v=_(m,a,h,v.value,l),v!==null&&(e&&v.alternate!==null&&m.delete(v.key===null?h:v.key),s=o(v,s,h),d===null?u=v:d.sibling=v,d=v);return e&&m.forEach(function(e){return t(a,e)}),j&&Fi(a,h),u}function x(e,r,o,c){if(typeof o==`object`&&o&&o.type===g&&o.key===null&&(o=o.props.children),typeof o==`object`&&o){switch(o.$$typeof){case m:a:{for(var l=o.key;r!==null;){if(r.key===l){if(l=o.type,l===g){if(r.tag===7){n(e,r.sibling),c=a(r,o.props.children),c.return=e,e=c;break a}}else if(r.elementType===l||typeof l==`object`&&l&&l.$$typeof===w&&Fa(l)===r.type){n(e,r.sibling),c=a(r,o.props),Ha(c,o),c.return=e,e=c;break a}n(e,r);break}t(e,r),r=r.sibling}o.type===g?(c=bi(o.props.children,e.mode,c,o.key),c.return=e,e=c):(c=yi(o.type,o.key,o.props,null,e.mode,c),Ha(c,o),c.return=e,e=c)}return s(e);case h:a:{for(l=o.key;r!==null;){if(r.key===l)if(r.tag===4&&r.stateNode.containerInfo===o.containerInfo&&r.stateNode.implementation===o.implementation){n(e,r.sibling),c=a(r,o.children||[]),c.return=e,e=c;break a}else{n(e,r);break}t(e,r),r=r.sibling}c=Ci(o,e.mode,c),c.return=e,e=c}return s(e);case w:return o=Fa(o),x(e,r,o,c)}if(se(o))return v(e,r,o,c);if(ie(o)){if(l=ie(o),typeof l!=`function`)throw Error(i(150));return o=l.call(o),y(e,r,o,c)}if(typeof o.then==`function`)return x(e,r,Va(o),c);if(o.$$typeof===b)return x(e,r,la(e,o),c);Ua(e,o)}return typeof o==`string`&&o!==``||typeof o==`number`||typeof o==`bigint`?(o=``+o,r!==null&&r.tag===6?(n(e,r.sibling),c=a(r,o),c.return=e,e=c):(n(e,r),c=xi(o,e.mode,c),c.return=e,e=c),s(e)):n(e,r)}return function(e,t,n,r){try{Ba=0;var i=x(e,t,n,r);return za=null,i}catch(t){if(t===ka||t===ja)throw t;var a=hi(29,t,null,e.mode);return a.lanes=r,a.return=e,a}}}var Ga=Wa(!0),Ka=Wa(!1),qa=!1;function Ja(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Ya(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Xa(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Za(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,B&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,t=fi(e),di(e,null,n),t}return ci(e,r,t,n),fi(e)}function Qa(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,n&4194048)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,lt(e,n)}}function $a(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var o={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};a===null?i=a=o:a=a.next=o,n=n.next}while(n!==null);a===null?i=a=t:a=a.next=t}else i=a=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,callbacks:r.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var eo=!1;function to(){if(eo){var e=ba;if(e!==null)throw e}}function no(e,t,n,r){eo=!1;var i=e.updateQueue;qa=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var c=s,l=c.next;c.next=null,o===null?a=l:o.next=l,o=c;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==o&&(s===null?u.firstBaseUpdate=l:s.next=l,u.lastBaseUpdate=c))}if(a!==null){var d=i.baseState;o=0,u=l=c=null,s=a;do{var p=s.lane&-536870913,m=p!==s.lane;if(m?(H&p)===p:(r&p)===p){p!==0&&p===ya&&(eo=!0),u!==null&&(u=u.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});a:{var h=e,g=s;p=t;var _=n;switch(g.tag){case 1:if(h=g.payload,typeof h==`function`){d=h.call(_,d,p);break a}d=h;break a;case 3:h.flags=h.flags&-65537|128;case 0:if(h=g.payload,p=typeof h==`function`?h.call(_,d,p):h,p==null)break a;d=f({},d,p);break a;case 2:qa=!0}}p=s.callback,p!==null&&(e.flags|=64,m&&(e.flags|=8192),m=i.callbacks,m===null?i.callbacks=[p]:m.push(p))}else m={lane:p,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(l=u=m,c=d):u=u.next=m,o|=p;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;m=s,s=m.next,m.next=null,i.lastBaseUpdate=m,i.shared.pending=null}}while(1);u===null&&(c=d),i.baseState=c,i.firstBaseUpdate=l,i.lastBaseUpdate=u,a===null&&(i.shared.lanes=0),$l|=o,e.lanes=o,e.memoizedState=d}}function ro(e,t){if(typeof e!=`function`)throw Error(i(191,e));e.call(t)}function io(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;ea?a:8;var o=E.T,s={};E.T=s,zs(e,!1,t,n);try{var c=i(),l=E.S;l!==null&&l(s,c),typeof c==`object`&&c&&typeof c.then==`function`?Rs(e,t,Ca(c,r),xu(e)):Rs(e,t,r,xu(e))}catch(n){Rs(e,t,{then:function(){},status:`rejected`,reason:n},xu())}finally{D.p=a,o!==null&&s.types!==null&&(o.types=s.types),E.T=o}}function ks(){}function As(e,t,n,r){if(e.tag!==5)throw Error(i(476));var a=js(e).queue;Os(e,a,t,ce,n===null?ks:function(){return Ms(e),n(r)})}function js(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:ce,baseState:ce,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Go,lastRenderedState:ce},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Go,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Ms(e){var t=js(e);t.next===null&&(t=e.alternate.memoizedState),Rs(e,t.next.queue,{},xu())}function Ns(){return ca(sp)}function R(){return Bo().memoizedState}function Ps(){return Bo().memoizedState}function Fs(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=xu();e=Xa(n);var r=Za(t,e,n);r!==null&&(Cu(r,t,n),Qa(r,t,n)),t={cache:ha()},e.payload=t;return}t=t.return}}function Is(e,t,n){var r=xu();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Bs(e)?Vs(t,n):(n=li(e,t,n,r),n!==null&&(Cu(n,e,r),Hs(n,t,r)))}function Ls(e,t,n){Rs(e,t,n,xu())}function Rs(e,t,n,r){var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Bs(e))Vs(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,s=a(o,n);if(i.hasEagerState=!0,i.eagerState=s,kr(s,o))return ci(e,t,i,0),Gl===null&&si(),!1}catch{}if(n=li(e,t,i,r),n!==null)return Cu(n,e,r),Hs(n,t,r),!0}return!1}function zs(e,t,n,r){if(r={lane:2,revertLane:yd(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},Bs(e)){if(t)throw Error(i(479))}else t=li(e,n,r,2),t!==null&&Cu(t,e,2)}function Bs(e){var t=e.alternate;return e===M||t!==null&&t===M}function Vs(e,t){To=wo=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Hs(e,t,n){if(n&4194048){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,lt(e,n)}}var Us={readContext:ca,use:Uo,useCallback:jo,useContext:jo,useEffect:jo,useImperativeHandle:jo,useLayoutEffect:jo,useInsertionEffect:jo,useMemo:jo,useReducer:jo,useRef:jo,useState:jo,useDebugValue:jo,useDeferredValue:jo,useTransition:jo,useSyncExternalStore:jo,useId:jo,useHostTransitionStatus:jo,useFormState:jo,useActionState:jo,useOptimistic:jo,useMemoCache:jo,useCacheRefresh:jo};Us.useEffectEvent=jo;var Ws={readContext:ca,use:Uo,useCallback:function(e,t){return zo().memoizedState=[e,t===void 0?null:t],e},useContext:ca,useEffect:_s,useImperativeHandle:function(e,t,n){n=n==null?null:n.concat([e]),hs(4194308,4,xs.bind(null,t,e),n)},useLayoutEffect:function(e,t){return hs(4194308,4,e,t)},useInsertionEffect:function(e,t){hs(4,2,e,t)},useMemo:function(e,t){var n=zo();t=t===void 0?null:t;var r=e();if(Eo){Ke(!0);try{e()}finally{Ke(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=zo();if(n!==void 0){var i=n(t);if(Eo){Ke(!0);try{n(t)}finally{Ke(!1)}}}else i=t;return r.memoizedState=r.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},r.queue=e,e=e.dispatch=Is.bind(null,M,e),[r.memoizedState,e]},useRef:function(e){var t=zo();return e={current:e},t.memoizedState=e},useState:function(e){e=es(e);var t=e.queue,n=Ls.bind(null,M,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:Cs,useDeferredValue:function(e,t){return Es(zo(),e,t)},useTransition:function(){var e=es(!1);return e=Os.bind(null,M,e.queue,!0,!1),zo().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=M,a=zo();if(j){if(n===void 0)throw Error(i(407));n=n()}else{if(n=t(),Gl===null)throw Error(i(349));H&127||Xo(r,t,n)}a.memoizedState=n;var o={value:n,getSnapshot:t};return a.queue=o,_s(P.bind(null,r,o,e),[e]),r.flags|=2048,ps(9,{destroy:void 0},Zo.bind(null,r,o,n,t),null),n},useId:function(){var e=zo(),t=Gl.identifierPrefix;if(j){var n=Pi,r=Ni;n=(r&~(1<<32-qe(r)-1)).toString(32)+n,t=`_`+t+`R_`+n,n=Do++,0<\/script>`,o=o.removeChild(o.firstChild);break;case`select`:o=typeof r.is==`string`?s.createElement(`select`,{is:r.is}):s.createElement(`select`),r.multiple?o.multiple=!0:r.size&&(o.size=r.size);break;default:o=typeof r.is==`string`?s.createElement(a,{is:r.is}):s.createElement(a)}}o[gt]=t,o[_t]=r;a:for(s=t.child;s!==null;){if(s.tag===5||s.tag===6)o.appendChild(s.stateNode);else if(s.tag!==4&&s.tag!==27&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===t)break a;for(;s.sibling===null;){if(s.return===null||s.return===t)break a;s=s.return}s.sibling.return=s.return,s=s.sibling}t.stateNode=o;a:switch(Ud(o,a,r),a){case`button`:case`input`:case`select`:case`textarea`:r=!!r.autoFocus;break a;case`img`:r=!0;break a;default:r=!1}r&&Lc(t)}}return Hc(t),Rc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&Lc(t);else{if(typeof r!=`string`&&t.stateNode===null)throw Error(i(166));if(e=ge.current,Ji(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,a=Bi,a!==null)switch(a.tag){case 27:case 5:r=a.memoizedProps}e[gt]=t,e=!!(e.nodeValue===n||r!==null&&!0===r.suppressHydrationWarning||Bd(e.nodeValue,n)),e||Gi(t,!0)}else e=Yd(e).createTextNode(r),e[gt]=t,t.stateNode=e}return Hc(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(r=Ji(t),n!==null){if(e===null){if(!r)throw Error(i(318));if(e=t.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(557));e[gt]=t}else Yi(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Hc(t),e=!1}else n=Xi(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(vo(t),t):(vo(t),null);if(t.flags&128)throw Error(i(558))}return Hc(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(a=Ji(t),r!==null&&r.dehydrated!==null){if(e===null){if(!a)throw Error(i(318));if(a=t.memoizedState,a=a===null?null:a.dehydrated,!a)throw Error(i(317));a[gt]=t}else Yi(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Hc(t),a=!1}else a=Xi(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),a=!0;if(!a)return t.flags&256?(vo(t),t):(vo(t),null)}return vo(t),t.flags&128?(t.lanes=n,t):(n=r!==null,e=e!==null&&e.memoizedState!==null,n&&(r=t.child,a=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(a=r.alternate.memoizedState.cachePool.pool),o=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(o=r.memoizedState.cachePool.pool),o!==a&&(r.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),Bc(t,t.updateQueue),Hc(t),null);case 4:return ye(),e===null&&Ad(t.stateNode.containerInfo),Hc(t),null;case 10:return na(t.type),Hc(t),null;case 19:if(fe(yo),r=t.memoizedState,r===null)return Hc(t),null;if(a=!!(t.flags&128),o=r.rendering,o===null)if(a)Vc(r,!1);else{if(Ql!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=bo(e),o!==null){for(t.flags|=128,Vc(r,!1),e=o.updateQueue,t.updateQueue=e,Bc(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)vi(n,e),n=n.sibling;return pe(yo,yo.current&1|2),j&&Fi(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&Fe()>lu&&(t.flags|=128,a=!0,Vc(r,!1),t.lanes=4194304)}else{if(!a)if(e=bo(o),e!==null){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,Bc(t,e),Vc(r,!0),r.tail===null&&r.tailMode===`hidden`&&!o.alternate&&!j)return Hc(t),null}else 2*Fe()-r.renderingStartTime>lu&&n!==536870912&&(t.flags|=128,a=!0,Vc(r,!1),t.lanes=4194304);r.isBackwards?(o.sibling=t.child,t.child=o):(e=r.last,e===null?t.child=o:e.sibling=o,r.last=o)}return r.tail===null?(Hc(t),null):(e=r.tail,r.rendering=e,r.tail=e.sibling,r.renderingStartTime=Fe(),e.sibling=null,n=yo.current,pe(yo,a?n&1|2:n&1),j&&Fi(t,r.treeForkCount),e);case 22:case 23:return vo(t),lo(),r=t.memoizedState!==null,e===null?r&&(t.flags|=8192):e.memoizedState!==null!==r&&(t.flags|=8192),r?n&536870912&&!(t.flags&128)&&(Hc(t),t.subtreeFlags&6&&(t.flags|=8192)):Hc(t),n=t.updateQueue,n!==null&&Bc(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),r=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),e!==null&&fe(Ta),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),na(ma),Hc(t),null;case 25:return null;case 30:return null}throw Error(i(156,t.tag))}function Wc(e,t){switch(Ri(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return na(ma),ye(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return xe(t),null;case 31:if(t.memoizedState!==null){if(vo(t),t.alternate===null)throw Error(i(340));Yi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(vo(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(i(340));Yi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return fe(yo),null;case 4:return ye(),null;case 10:return na(t.type),null;case 22:case 23:return vo(t),lo(),e!==null&&fe(Ta),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return na(ma),null;case 25:return null;default:return null}}function Gc(e,t){switch(Ri(t),t.tag){case 3:na(ma),ye();break;case 26:case 27:case 5:xe(t);break;case 4:ye();break;case 31:t.memoizedState!==null&&vo(t);break;case 13:vo(t);break;case 19:fe(yo);break;case 10:na(t.type);break;case 22:case 23:vo(t),lo(),e!==null&&fe(Ta);break;case 24:na(ma)}}function Kc(e,t){try{var n=t.updateQueue,r=n===null?null:n.lastEffect;if(r!==null){var i=r.next;n=i;do{if((n.tag&e)===e){r=void 0;var a=n.create,o=n.inst;r=a(),o.destroy=r}n=n.next}while(n!==i)}}catch(e){Qu(t,t.return,e)}}function qc(e,t,n){try{var r=t.updateQueue,i=r===null?null:r.lastEffect;if(i!==null){var a=i.next;r=a;do{if((r.tag&e)===e){var o=r.inst,s=o.destroy;if(s!==void 0){o.destroy=void 0,i=t;var c=n,l=s;try{l()}catch(e){Qu(i,c,e)}}}r=r.next}while(r!==a)}}catch(e){Qu(t,t.return,e)}}function Jc(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{io(t,n)}catch(t){Qu(e,e.return,t)}}}function Yc(e,t,n){n.props=z(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(n){Qu(e,t,n)}}function Xc(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;case 30:r=e.stateNode;break;default:r=e.stateNode}typeof n==`function`?e.refCleanup=n(r):n.current=r}}catch(n){Qu(e,t,n)}}function Zc(e,t){var n=e.ref,r=e.refCleanup;if(n!==null)if(typeof r==`function`)try{r()}catch(n){Qu(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n==`function`)try{n(null)}catch(n){Qu(e,t,n)}else n.current=null}function Qc(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{a:switch(t){case`button`:case`input`:case`select`:case`textarea`:n.autoFocus&&r.focus();break a;case`img`:n.src?r.src=n.src:n.srcSet&&(r.srcset=n.srcSet)}}catch(t){Qu(e,e.return,t)}}function $c(e,t,n){try{var r=e.stateNode;Wd(r,e.type,n,t),r[_t]=t}catch(t){Qu(e,e.return,t)}}function el(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&sf(e.type)||e.tag===4}function tl(e){a:for(;;){for(;e.sibling===null;){if(e.return===null||el(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&sf(e.type)||e.flags&2||e.child===null||e.tag===4)continue a;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function nl(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=cn));else if(r!==4&&(r===27&&sf(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(nl(e,t,n),e=e.sibling;e!==null;)nl(e,t,n),e=e.sibling}function rl(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(r===27&&sf(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(rl(e,t,n),e=e.sibling;e!==null;)rl(e,t,n),e=e.sibling}function il(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);Ud(t,r,n),t[gt]=e,t[_t]=n}catch(t){Qu(e,e.return,t)}}var al=!1,ol=!1,sl=!1,cl=typeof WeakSet==`function`?WeakSet:Set,ll=null;function ul(e,t){if(e=e.containerInfo,qd=gp,e=Pr(e),Fr(e)){if(`selectionStart`in e)var n={start:e.selectionStart,end:e.selectionEnd};else a:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var a=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break a}var s=0,c=-1,l=-1,u=0,d=0,f=e,p=null;b:for(;;){for(var m;f!==n||a!==0&&f.nodeType!==3||(c=s+a),f!==o||r!==0&&f.nodeType!==3||(l=s+r),f.nodeType===3&&(s+=f.nodeValue.length),(m=f.firstChild)!==null;)p=f,f=m;for(;;){if(f===e)break b;if(p===n&&++u===a&&(c=s),p===o&&++d===r&&(l=s),(m=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=m}n=c===-1||l===-1?null:{start:c,end:l}}else n=null}n||={start:0,end:0}}else n=null;for(Jd={focusedElem:e,selectionRange:n},gp=!1,ll=t;ll!==null;)if(t=ll,e=t.child,t.subtreeFlags&1028&&e!==null)e.return=t,ll=e;else for(;ll!==null;){switch(t=ll,o=t.alternate,e=t.flags,t.tag){case 0:if(e&4&&(e=t.updateQueue,e=e===null?null:e.events,e!==null))for(n=0;n title`))),Ud(o,r,n),o[gt]=e,Ot(o),r=o;break a;case`link`:var s=Xf(`link`,`href`,a).get(r+(n.href||``));if(s){for(var c=0;cg&&(o=g,g=h,h=o);var _=Mr(s,h),v=Mr(s,g);if(_&&v&&(p.rangeCount!==1||p.anchorNode!==_.node||p.anchorOffset!==_.offset||p.focusNode!==v.node||p.focusOffset!==v.offset)){var y=d.createRange();y.setStart(_.node,_.offset),p.removeAllRanges(),h>g?(p.addRange(y),p.extend(v.node,v.offset)):(y.setEnd(v.node,v.offset),p.addRange(y))}}}}for(d=[],p=s;p=p.parentNode;)p.nodeType===1&&d.push({element:p,left:p.scrollLeft,top:p.scrollTop});for(typeof s.focus==`function`&&s.focus(),s=0;sn?32:n,E.T=null,n=_u,_u=null;var o=pu,s=hu;if(fu=0,mu=pu=null,hu=0,B&6)throw Error(i(331));var c=B;if(B|=4,Bl(o.current),Ml(o,o.current,s,n),B=c,fd(0,!1),Ge&&typeof Ge.onPostCommitFiberRoot==`function`)try{Ge.onPostCommitFiberRoot(We,o)}catch{}return!0}finally{D.p=a,E.T=r,Ju(e,t)}}function Zu(e,t,n){t=Ti(n,t),t=nc(e.stateNode,t,2),e=Za(e,t,2),e!==null&&(ot(e,2),dd(e))}function Qu(e,t,n){if(e.tag===3)Zu(e,e,n);else for(;t!==null;){if(t.tag===3){Zu(t,e,n);break}if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(du===null||!du.has(r))){e=Ti(n,e),n=rc(2),r=Za(t,n,2),r!==null&&(ic(n,r,t,e),ot(r,2),dd(r));break}}t=t.return}}function $u(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Wl;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(Xl=!0,i.add(n),e=ed.bind(null,e,t,n),t.then(e,e))}function ed(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Gl===e&&(H&n)===n&&(Ql===4||Ql===3&&(H&62914560)===H&&300>Fe()-su?!(B&2)&&Au(e,0):tu|=n,ru===H&&(ru=0)),dd(e)}function td(e,t){t===0&&(t=it()),e=ui(e,t),e!==null&&(ot(e,t),dd(e))}function nd(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),td(e,n)}function rd(e,t){var n=0;switch(e.tag){case 31:case 13:var r=e.stateNode,a=e.memoizedState;a!==null&&(n=a.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(i(314))}r!==null&&r.delete(t),td(e,n)}function id(e,t){return je(e,t)}var ad=null,od=null,sd=!1,cd=!1,ld=!1,ud=0;function dd(e){e!==od&&e.next===null&&(od===null?ad=od=e:od=od.next=e),cd=!0,sd||(sd=!0,vd())}function fd(e,t){if(!ld&&cd){ld=!0;do for(var n=!1,r=ad;r!==null;){if(!t)if(e!==0){var i=r.pendingLanes;if(i===0)var a=0;else{var o=r.suspendedLanes,s=r.pingedLanes;a=(1<<31-qe(42|e)+1)-1,a&=i&~(o&~s),a=a&201326741?a&201326741|1:a?a|2:0}a!==0&&(n=!0,_d(r,a))}else a=H,a=tt(r,r===Gl?a:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),!(a&3)||nt(r,a)||(n=!0,_d(r,a));r=r.next}while(n);ld=!1}}function pd(){md()}function md(){cd=sd=!1;var e=0;ud!==0&&ef()&&(e=ud);for(var t=Fe(),n=null,r=ad;r!==null;){var i=r.next,a=hd(r,t);a===0?(r.next=null,n===null?ad=i:n.next=i,i===null&&(od=n)):(n=r,(e!==0||a&3)&&(cd=!0)),r=i}fu!==0&&fu!==5||fd(e,!1),ud!==0&&(ud=0)}function hd(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes&-62914561;0s)break;var u=c.transferSize,d=c.initiatorType;u&&Gd(d)&&(c=c.responseEnd,o+=u*(c`u`?null:document;function Af(e,t,n){var r=kf;if(r&&typeof t==`string`&&t){var i=Kt(t);i=`link[rel="`+e+`"][href="`+i+`"]`,typeof n==`string`&&(i+=`[crossorigin="`+n+`"]`),wf.has(i)||(wf.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement(`link`),Ud(t,`link`,e),Ot(t),r.head.appendChild(t)))}}function jf(e){Ef.D(e),Af(`dns-prefetch`,e,null)}function Mf(e,t){Ef.C(e,t),Af(`preconnect`,e,t)}function Nf(e,t,n){Ef.L(e,t,n);var r=kf;if(r&&e&&t){var i=`link[rel="preload"][as="`+Kt(t)+`"]`;t===`image`&&n&&n.imageSrcSet?(i+=`[imagesrcset="`+Kt(n.imageSrcSet)+`"]`,typeof n.imageSizes==`string`&&(i+=`[imagesizes="`+Kt(n.imageSizes)+`"]`)):i+=`[href="`+Kt(e)+`"]`;var a=i;switch(t){case`style`:a=zf(e);break;case`script`:a=Uf(e)}Cf.has(a)||(e=f({rel:`preload`,href:t===`image`&&n&&n.imageSrcSet?void 0:e,as:t},n),Cf.set(a,e),r.querySelector(i)!==null||t===`style`&&r.querySelector(Bf(a))||t===`script`&&r.querySelector(Wf(a))||(t=r.createElement(`link`),Ud(t,`link`,e),Ot(t),r.head.appendChild(t)))}}function Pf(e,t){Ef.m(e,t);var n=kf;if(n&&e){var r=t&&typeof t.as==`string`?t.as:`script`,i=`link[rel="modulepreload"][as="`+Kt(r)+`"][href="`+Kt(e)+`"]`,a=i;switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:a=Uf(e)}if(!Cf.has(a)&&(e=f({rel:`modulepreload`,href:e},t),Cf.set(a,e),n.querySelector(i)===null)){switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:if(n.querySelector(Wf(a)))return}r=n.createElement(`link`),Ud(r,`link`,e),Ot(r),n.head.appendChild(r)}}}function Ff(e,t,n){Ef.S(e,t,n);var r=kf;if(r&&e){var i=O(r).hoistableStyles,a=zf(e);t||=`default`;var o=i.get(a);if(!o){var s={loading:0,preload:null};if(o=r.querySelector(Bf(a)))s.loading=5;else{e=f({rel:`stylesheet`,href:e,"data-precedence":t},n),(n=Cf.get(a))&&qf(e,n);var c=o=r.createElement(`link`);Ot(c),Ud(c,`link`,e),c._p=new Promise(function(e,t){c.onload=e,c.onerror=t}),c.addEventListener(`load`,function(){s.loading|=1}),c.addEventListener(`error`,function(){s.loading|=2}),s.loading|=4,Kf(o,t,r)}o={type:`stylesheet`,instance:o,count:1,state:s},i.set(a,o)}}}function If(e,t){Ef.X(e,t);var n=kf;if(n&&e){var r=O(n).hoistableScripts,i=Uf(e),a=r.get(i);a||(a=n.querySelector(Wf(i)),a||(e=f({src:e,async:!0},t),(t=Cf.get(i))&&Jf(e,t),a=n.createElement(`script`),Ot(a),Ud(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Lf(e,t){Ef.M(e,t);var n=kf;if(n&&e){var r=O(n).hoistableScripts,i=Uf(e),a=r.get(i);a||(a=n.querySelector(Wf(i)),a||(e=f({src:e,async:!0,type:`module`},t),(t=Cf.get(i))&&Jf(e,t),a=n.createElement(`script`),Ot(a),Ud(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Rf(e,t,n,r){var a=(a=ge.current)?Tf(a):null;if(!a)throw Error(i(446));switch(e){case`meta`:case`title`:return null;case`style`:return typeof n.precedence==`string`&&typeof n.href==`string`?(t=zf(n.href),n=O(a).hoistableStyles,r=n.get(t),r||(r={type:`style`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};case`link`:if(n.rel===`stylesheet`&&typeof n.href==`string`&&typeof n.precedence==`string`){e=zf(n.href);var o=O(a).hoistableStyles,s=o.get(e);if(s||(a=a.ownerDocument||a,s={type:`stylesheet`,instance:null,count:0,state:{loading:0,preload:null}},o.set(e,s),(o=a.querySelector(Bf(e)))&&!o._p&&(s.instance=o,s.state.loading=5),Cf.has(e)||(n={rel:`preload`,as:`style`,href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},Cf.set(e,n),o||Hf(a,e,n,s.state))),t&&r===null)throw Error(i(528,``));return s}if(t&&r!==null)throw Error(i(529,``));return null;case`script`:return t=n.async,n=n.src,typeof n==`string`&&t&&typeof t!=`function`&&typeof t!=`symbol`?(t=Uf(n),n=O(a).hoistableScripts,r=n.get(t),r||(r={type:`script`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};default:throw Error(i(444,e))}}function zf(e){return`href="`+Kt(e)+`"`}function Bf(e){return`link[rel="stylesheet"][`+e+`]`}function Vf(e){return f({},e,{"data-precedence":e.precedence,precedence:null})}function Hf(e,t,n,r){e.querySelector(`link[rel="preload"][as="style"][`+t+`]`)?r.loading=1:(t=e.createElement(`link`),r.preload=t,t.addEventListener(`load`,function(){return r.loading|=1}),t.addEventListener(`error`,function(){return r.loading|=2}),Ud(t,`link`,n),Ot(t),e.head.appendChild(t))}function Uf(e){return`[src="`+Kt(e)+`"]`}function Wf(e){return`script[async]`+e}function Gf(e,t,n){if(t.count++,t.instance===null)switch(t.type){case`style`:var r=e.querySelector(`style[data-href~="`+Kt(n.href)+`"]`);if(r)return t.instance=r,Ot(r),r;var a=f({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement(`style`),Ot(r),Ud(r,`style`,a),Kf(r,n.precedence,e),t.instance=r;case`stylesheet`:a=zf(n.href);var o=e.querySelector(Bf(a));if(o)return t.state.loading|=4,t.instance=o,Ot(o),o;r=Vf(n),(a=Cf.get(a))&&qf(r,a),o=(e.ownerDocument||e).createElement(`link`),Ot(o);var s=o;return s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),Ud(o,`link`,r),t.state.loading|=4,Kf(o,n.precedence,e),t.instance=o;case`script`:return o=Uf(n.src),(a=e.querySelector(Wf(o)))?(t.instance=a,Ot(a),a):(r=n,(a=Cf.get(o))&&(r=f({},n),Jf(r,a)),e=e.ownerDocument||e,a=e.createElement(`script`),Ot(a),Ud(a,`link`,r),e.head.appendChild(a),t.instance=a);case`void`:return null;default:throw Error(i(443,t.type))}else t.type===`stylesheet`&&!(t.state.loading&4)&&(r=t.instance,t.state.loading|=4,Kf(r,n.precedence,e));return t.instance}function Kf(e,t,n){for(var r=n.querySelectorAll(`link[rel="stylesheet"][data-precedence],style[data-precedence]`),i=r.length?r[r.length-1]:null,a=i,o=0;o title`):null)}function Qf(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case`meta`:case`title`:return!0;case`style`:if(typeof t.precedence!=`string`||typeof t.href!=`string`||t.href===``)break;return!0;case`link`:if(typeof t.rel!=`string`||typeof t.href!=`string`||t.href===``||t.onLoad||t.onError)break;switch(t.rel){case`stylesheet`:return e=t.disabled,typeof t.precedence==`string`&&e==null;default:return!0}case`script`:if(t.async&&typeof t.async!=`function`&&typeof t.async!=`symbol`&&!t.onLoad&&!t.onError&&t.src&&typeof t.src==`string`)return!0}return!1}function $f(e){return!(e.type===`stylesheet`&&!(e.state.loading&3))}function ep(e,t,n,r){if(n.type===`stylesheet`&&(typeof r.media!=`string`||!1!==matchMedia(r.media).matches)&&!(n.state.loading&4)){if(n.instance===null){var i=zf(r.href),a=t.querySelector(Bf(i));if(a){t=a._p,typeof t==`object`&&t&&typeof t.then==`function`&&(e.count++,e=rp.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=a,Ot(a);return}a=t.ownerDocument||t,r=Vf(r),(i=Cf.get(i))&&qf(r,i),a=a.createElement(`link`),Ot(a);var o=a;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),Ud(a,`link`,r),n.instance=a}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&!(n.state.loading&3)&&(e.count++,n=rp.bind(e),t.addEventListener(`load`,n),t.addEventListener(`error`,n))}}var tp=0;function np(e,t){return e.stylesheets&&e.count===0&&ap(e,e.stylesheets),0tp?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}function rp(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)ap(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var ip=null;function ap(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,ip=new Map,t.forEach(op,e),ip=null,rp.call(e))}function op(e,t){if(!(t.state.loading&4)){var n=ip.get(e);if(n)var r=n.get(null);else{n=new Map,ip.set(e,n);for(var i=e.querySelectorAll(`link[data-precedence],style[data-precedence]`),a=0;a{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=po()}))(),ho=[`#fafafa`,`#e6e4de`,`#bfbdb6`,`#8b8e99`,`#565b69`,`#1d2433`,`#131721`,`#0b0e14`,`#080a10`,`#05070b`],go=[`#f3ecfd`,`#ece3fb`,`#dcc9f7`,`#d2a6ff`,`#bf94ec`,`#a97ce0`,`#9163d6`,`#7c4dcc`,`#5b32a3`,`#40236f`],_o=[`#eefbe6`,`#dcf7cc`,`#c2f0a6`,`#a5e880`,`#8fe06c`,`#7fd962`,`#66c04b`,`#4f9c3a`,`#3b7a2c`,`#2a5a1f`],vo=[`#fff5e6`,`#ffe9c9`,`#ffd79b`,`#ffc571`,`#ffbc62`,`#ffb454`,`#ef9c33`,`#c87d21`,`#9c5f16`,`#74460f`],yo=[`#fdecee`,`#fbd9dc`,`#f8b6bc`,`#f59099`,`#f37d87`,`#f26d78`,`#e04d5a`,`#c03642`,`#96262f`,`#6f1a21`],bo=[`#e8f6ff`,`#ccebff`,`#a3daff`,`#7dcbff`,`#66c5ff`,`#59c2ff`,`#33a7e6`,`#1e86bd`,`#146694`,`#0d4a6d`],xo={display:`"IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace`,body:`"IBM Plex Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif`},M={primaryColor:`brand`,primaryShade:{light:7,dark:5},autoContrast:!0,colors:{dark:ho,brand:go,ok:_o,warn:vo,bad:yo,info:bo},defaultRadius:`md`,fontFamily:xo.body,fontFamilyMonospace:xo.display,headings:{fontFamily:xo.display,fontWeight:`500`},cursorType:`pointer`},So=()=>({variables:{"--mantine-color-error":`var(--mantine-color-bad-filled)`},light:{},dark:{}}),Co=Gt(M);function wo({dark:e,children:t}){return(0,O.jsx)(Wt,{theme:Co,cssVariablesResolver:So,forceColorScheme:e?`dark`:`light`,children:(0,O.jsx)(Gr,{withBorder:!0,radius:`lg`,style:{overflow:`hidden`},children:t})})}function To({eyebrow:e,title:t,summary:n,onRefresh:r,disabled:i}){return(0,O.jsxs)(hi,{justify:`space-between`,align:`flex-start`,wrap:`nowrap`,px:{base:`md`,sm:`lg`},pt:`md`,pb:`sm`,children:[(0,O.jsxs)(A,{miw:0,children:[(0,O.jsx)(Ci,{c:`dimmed`,size:`xs`,fw:700,tt:`uppercase`,lts:`0.1em`,children:e}),(0,O.jsx)(to,{order:1,fz:`lg`,mt:2,style:{overflow:`hidden`,textOverflow:`ellipsis`,whiteSpace:`nowrap`},children:t}),n&&(0,O.jsx)(Ci,{c:`dimmed`,size:`sm`,mt:4,children:n})]}),(0,O.jsx)(Fi,{variant:`default`,size:`xs`,leftSection:(0,O.jsx)(so,{size:15,weight:`bold`}),onClick:()=>void r(),disabled:i,children:`Refresh`})]})}function Eo({error:e,loading:t}){return e?(0,O.jsx)(vi,{color:`bad`,m:`md`,children:e}):t?(0,O.jsxs)(Li,{mih:160,p:`xl`,children:[(0,O.jsx)(ai,{size:`sm`}),(0,O.jsx)(Ci,{c:`dimmed`,size:`sm`,ml:`sm`,children:t})]}):null}function Do({icon:e,title:t,children:n,tall:r=!1}){return(0,O.jsx)(Li,{mih:r?220:130,p:`xl`,children:(0,O.jsxs)(hi,{wrap:`nowrap`,children:[(0,O.jsx)(Ja,{variant:`light`,size:`xl`,radius:`md`,children:e}),(0,O.jsxs)(A,{children:[(0,O.jsx)(Ci,{fw:700,size:`sm`,children:t}),(0,O.jsx)(Ci,{c:`dimmed`,size:`xs`,mt:3,children:n})]})]})})}function Oo({left:e,right:t}){return(0,O.jsxs)(hi,{justify:`space-between`,px:{base:`md`,sm:`lg`},py:`xs`,style:{borderTop:`1px solid var(--mantine-color-default-border)`},children:[(0,O.jsx)(Ci,{c:`dimmed`,size:`xs`,children:e}),(0,O.jsx)(Ci,{c:`dimmed`,size:`xs`,ta:`right`,children:t})]})}function ko({label:e,value:t,color:n}){return(0,O.jsxs)(Gr,{withBorder:!0,radius:`md`,p:`sm`,children:[(0,O.jsx)(Ci,{c:`dimmed`,size:`xs`,children:e}),(0,O.jsx)(Ci,{fw:700,fz:`xl`,c:n,mt:3,children:t})]})}function Ao(e,t=8){let[n,r]=(0,w.useState)(1),i=Math.max(1,Math.ceil(e.length/t));(0,w.useEffect)(()=>{n>i&&r(i)},[n,i]);let a=(n-1)*t;return{page:n,setPage:r,totalPages:i,pageItems:e.slice(a,a+t),from:e.length===0?0:a+1,to:Math.min(a+t,e.length),total:e.length}}function jo({page:e,totalPages:t,from:n,to:r,total:i,onChange:a}){return t<=1?null:(0,O.jsxs)(hi,{justify:`space-between`,gap:`sm`,px:{base:`md`,sm:`lg`},py:`xs`,style:{borderTop:`1px solid var(--mantine-color-default-border)`},children:[(0,O.jsxs)(Ci,{c:`dimmed`,size:`xs`,children:[n,`–`,r,` of `,i]}),(0,O.jsx)(ca,{value:e,total:t,onChange:a,size:`xs`,withEdges:!0,"aria-label":`Table pages`})]})}function Mo(e){return e===`healthy`?`ok`:e===`degraded`?`warn`:`bad`}var No=new Intl.NumberFormat(void 0,{maximumFractionDigits:0});function Po(e){return`${(e*100).toFixed(e>=.1?1:2)}%`}function Fo(e){return e>=1e3?`${(e/1e3).toFixed(2)}s`:`${e.toFixed(e>=100?0:1)}ms`}function Io(e){let[t,n]=e.split(`/`),r=new Date(t),i=new Date(n);if(Number.isNaN(r.valueOf())||Number.isNaN(i.valueOf()))return e;let a=Math.round((i.valueOf()-r.valueOf())/6e4);return a>=60&&a%60==0?`Last ${a/60}h`:`Last ${Math.max(a,1)}m`}function N(e,t,n){function r(n,r){if(n._zod||Object.defineProperty(n,"_zod",{value:{def:r,constr:o,traits:new Set},enumerable:!1}),n._zod.traits.has(e))return;n._zod.traits.add(e),t(n,r);let i=o.prototype,a=Object.keys(i);for(let e=0;en?.Parent&&t instanceof n.Parent?!0:t?._zod?.traits?.has(e)}),Object.defineProperty(o,"name",{value:e}),o}function Lo(e){return e&&Object.assign(Uo,e),Uo}var Ro,zo,Bo,Vo,Ho,Uo,Wo=o((()=>{zo=Object.freeze({status:`aborted`}),Bo=Symbol(`zod_brand`),Vo=class extends Error{constructor(){super(`Encountered Promise during synchronous parse. Use .parseAsync() instead.`)}},Ho=class extends Error{constructor(e){super(`Encountered unidirectional transform during encode: ${e}`),this.name=`ZodEncodeError`}},(Ro=globalThis).__zod_globalConfig??(Ro.__zod_globalConfig={}),Uo=globalThis.__zod_globalConfig})),Go=c({BIGINT_FORMAT_RANGES:()=>Ys,Class:()=>Xs,NUMBER_FORMAT_RANGES:()=>Js,aborted:()=>Ds,allowsEval:()=>Ws,assert:()=>Xo,assertEqual:()=>Ko,assertIs:()=>Jo,assertNever:()=>Yo,assertNotEqual:()=>qo,assignProp:()=>is,base64ToUint8Array:()=>Is,base64urlToUint8Array:()=>Rs,cached:()=>$o,captureStackTrace:()=>Us,cleanEnum:()=>Fs,cleanRegex:()=>ts,clone:()=>_s,cloneDef:()=>os,createTransparentProxy:()=>vs,defineLazy:()=>F,esc:()=>us,escapeRegex:()=>gs,explicitlyAborted:()=>Os,extend:()=>Ss,finalizeIssue:()=>js,floatSafeRemainder:()=>ns,getElementAtPath:()=>ss,getEnumValues:()=>Zo,getLengthableOrigin:()=>Ns,getParsedType:()=>Gs,getSizableOrigin:()=>Ms,hexToUint8Array:()=>Bs,isObject:()=>fs,isPlainObject:()=>ps,issue:()=>Ps,joinValues:()=>P,jsonStringifyReplacer:()=>Qo,merge:()=>ws,mergeDefs:()=>as,normalizeParams:()=>I,nullish:()=>es,numKeys:()=>hs,objectClone:()=>rs,omit:()=>xs,optionalKeys:()=>ys,parsedType:()=>R,partial:()=>Ts,pick:()=>bs,prefixIssues:()=>ks,primitiveTypes:()=>qs,promiseAllObject:()=>cs,propertyKeyTypes:()=>Ks,randomString:()=>ls,required:()=>Es,safeExtend:()=>Cs,shallowClone:()=>ms,slugify:()=>ds,stringifyPrimitive:()=>L,uint8ArrayToBase64:()=>Ls,uint8ArrayToBase64url:()=>zs,uint8ArrayToHex:()=>Vs,unwrapMessage:()=>As});function Ko(e){return e}function qo(e){return e}function Jo(e){}function Yo(e){throw Error(`Unexpected value in exhaustive check`)}function Xo(e){}function Zo(e){let t=Object.values(e).filter(e=>typeof e==`number`);return Object.entries(e).filter(([e,n])=>t.indexOf(+e)===-1).map(([e,t])=>t)}function P(e,t=`|`){return e.map(e=>L(e)).join(t)}function Qo(e,t){return typeof t==`bigint`?t.toString():t}function $o(e){return{get value(){{let t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function es(e){return e==null}function ts(e){let t=+!!e.startsWith(`^`),n=e.endsWith(`$`)?e.length-1:e.length;return e.slice(t,n)}function ns(e,t){let n=e/t,r=Math.round(n),i=2**-52*Math.max(Math.abs(n),1);return Math.abs(n-r)e?.[t],e):e}function cs(e){let t=Object.keys(e),n=t.map(t=>e[t]);return Promise.all(n).then(e=>{let n={};for(let r=0;rt};if(t?.message!==void 0){if(t?.error!==void 0)throw Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error==`string`?{...t,error:()=>t.error}:t}function vs(e){let t;return new Proxy({},{get(n,r,i){return t??=e(),Reflect.get(t,r,i)},set(n,r,i,a){return t??=e(),Reflect.set(t,r,i,a)},has(n,r){return t??=e(),Reflect.has(t,r)},deleteProperty(n,r){return t??=e(),Reflect.deleteProperty(t,r)},ownKeys(n){return t??=e(),Reflect.ownKeys(t)},getOwnPropertyDescriptor(n,r){return t??=e(),Reflect.getOwnPropertyDescriptor(t,r)},defineProperty(n,r,i){return t??=e(),Reflect.defineProperty(t,r,i)}})}function L(e){return typeof e==`bigint`?e.toString()+`n`:typeof e==`string`?`"${e}"`:`${e}`}function ys(e){return Object.keys(e).filter(t=>e[t]._zod.optin===`optional`&&e[t]._zod.optout===`optional`)}function bs(e,t){let n=e._zod.def,r=n.checks;if(r&&r.length>0)throw Error(`.pick() cannot be used on object schemas containing refinements`);return _s(e,as(e._zod.def,{get shape(){let e={};for(let r in t){if(!(r in n.shape))throw Error(`Unrecognized key: "${r}"`);t[r]&&(e[r]=n.shape[r])}return is(this,`shape`,e),e},checks:[]}))}function xs(e,t){let n=e._zod.def,r=n.checks;if(r&&r.length>0)throw Error(`.omit() cannot be used on object schemas containing refinements`);return _s(e,as(e._zod.def,{get shape(){let r={...e._zod.def.shape};for(let e in t){if(!(e in n.shape))throw Error(`Unrecognized key: "${e}"`);t[e]&&delete r[e]}return is(this,`shape`,r),r},checks:[]}))}function Ss(e,t){if(!ps(t))throw Error(`Invalid input to extend: expected a plain object`);let n=e._zod.def.checks;if(n&&n.length>0){let n=e._zod.def.shape;for(let e in t)if(Object.getOwnPropertyDescriptor(n,e)!==void 0)throw Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}return _s(e,as(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t};return is(this,`shape`,n),n}}))}function Cs(e,t){if(!ps(t))throw Error(`Invalid input to safeExtend: expected a plain object`);return _s(e,as(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t};return is(this,`shape`,n),n}}))}function ws(e,t){if(e._zod.def.checks?.length)throw Error(`.merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.`);return _s(e,as(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t._zod.def.shape};return is(this,`shape`,n),n},get catchall(){return t._zod.def.catchall},checks:t._zod.def.checks??[]}))}function Ts(e,t,n){let r=t._zod.def.checks;if(r&&r.length>0)throw Error(`.partial() cannot be used on object schemas containing refinements`);return _s(t,as(t._zod.def,{get shape(){let r=t._zod.def.shape,i={...r};if(n)for(let t in n){if(!(t in r))throw Error(`Unrecognized key: "${t}"`);n[t]&&(i[t]=e?new e({type:`optional`,innerType:r[t]}):r[t])}else for(let t in r)i[t]=e?new e({type:`optional`,innerType:r[t]}):r[t];return is(this,`shape`,i),i},checks:[]}))}function Es(e,t,n){return _s(t,as(t._zod.def,{get shape(){let r=t._zod.def.shape,i={...r};if(n)for(let t in n){if(!(t in i))throw Error(`Unrecognized key: "${t}"`);n[t]&&(i[t]=new e({type:`nonoptional`,innerType:r[t]}))}else for(let t in r)i[t]=new e({type:`nonoptional`,innerType:r[t]});return is(this,`shape`,i),i}}))}function Ds(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n{var n;return(n=t).path??(n.path=[]),t.path.unshift(e),t})}function As(e){return typeof e==`string`?e:e?.message}function js(e,t,n){let r=e.message?e.message:As(e.inst?._zod.def?.error?.(e))??As(t?.error?.(e))??As(n.customError?.(e))??As(n.localeError?.(e))??`Invalid input`,{inst:i,continue:a,input:o,...s}=e;return s.path??=[],s.message=r,t?.reportInput&&(s.input=o),s}function Ms(e){return e instanceof Set?`set`:e instanceof Map?`map`:e instanceof File?`file`:`unknown`}function Ns(e){return Array.isArray(e)?`array`:typeof e==`string`?`string`:`unknown`}function R(e){let t=typeof e;switch(t){case`number`:return Number.isNaN(e)?`nan`:`number`;case`object`:{if(e===null)return`null`;if(Array.isArray(e))return`array`;let t=e;if(t&&Object.getPrototypeOf(t)!==Object.prototype&&`constructor`in t&&t.constructor)return t.constructor.name}}return t}function Ps(...e){let[t,n,r]=e;return typeof t==`string`?{message:t,code:`custom`,input:n,inst:r}:{...t}}function Fs(e){return Object.entries(e).filter(([e,t])=>Number.isNaN(Number.parseInt(e,10))).map(e=>e[1])}function Is(e){let t=atob(e),n=new Uint8Array(t.length);for(let e=0;ee.toString(16).padStart(2,`0`)).join(``)}var Hs,Us,Ws,Gs,Ks,qs,Js,Ys,Xs,z=o((()=>{Wo(),Hs=Symbol(`evaluating`),Us=`captureStackTrace`in Error?Error.captureStackTrace:(...e)=>{},Ws=$o(()=>{if(Uo.jitless||typeof navigator<`u`&&navigator?.userAgent?.includes(`Cloudflare`))return!1;try{return Function(``),!0}catch{return!1}}),Gs=e=>{let t=typeof e;switch(t){case`undefined`:return`undefined`;case`string`:return`string`;case`number`:return Number.isNaN(e)?`nan`:`number`;case`boolean`:return`boolean`;case`function`:return`function`;case`bigint`:return`bigint`;case`symbol`:return`symbol`;case`object`:return Array.isArray(e)?`array`:e===null?`null`:e.then&&typeof e.then==`function`&&e.catch&&typeof e.catch==`function`?`promise`:typeof Map<`u`&&e instanceof Map?`map`:typeof Set<`u`&&e instanceof Set?`set`:typeof Date<`u`&&e instanceof Date?`date`:typeof File<`u`&&e instanceof File?`file`:`object`;default:throw Error(`Unknown data type: ${t}`)}},Ks=new Set([`string`,`number`,`symbol`]),qs=new Set([`string`,`number`,`bigint`,`boolean`,`symbol`,`undefined`]),Js={safeint:[-(2**53-1),2**53-1],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]},Ys={int64:[BigInt(`-9223372036854775808`),BigInt(`9223372036854775807`)],uint64:[BigInt(0),BigInt(`18446744073709551615`)]},Xs=class{constructor(...e){}}}));function Zs(e,t=e=>e.message){let n={},r=[];for(let i of e.issues)i.path.length>0?(n[i.path[0]]=n[i.path[0]]||[],n[i.path[0]].push(t(i))):r.push(t(i));return{formErrors:r,fieldErrors:n}}function Qs(e,t=e=>e.message){let n={_errors:[]},r=(e,i=[])=>{for(let a of e.issues)if(a.code===`invalid_union`&&a.errors.length)a.errors.map(e=>r({issues:e},[...i,...a.path]));else if(a.code===`invalid_key`)r({issues:a.issues},[...i,...a.path]);else if(a.code===`invalid_element`)r({issues:a.issues},[...i,...a.path]);else{let e=[...i,...a.path];if(e.length===0)n._errors.push(t(a));else{let r=n,i=0;for(;ie.message){let n={errors:[]},r=(e,i=[])=>{var a,o;for(let s of e.issues)if(s.code===`invalid_union`&&s.errors.length)s.errors.map(e=>r({issues:e},[...i,...s.path]));else if(s.code===`invalid_key`)r({issues:s.issues},[...i,...s.path]);else if(s.code===`invalid_element`)r({issues:s.issues},[...i,...s.path]);else{let e=[...i,...s.path];if(e.length===0){n.errors.push(t(s));continue}let r=n,c=0;for(;ctypeof e==`object`?e.key:e);for(let e of n)typeof e==`number`?t.push(`[${e}]`):typeof e==`symbol`?t.push(`[${JSON.stringify(String(e))}]`):/[^\w$]/.test(e)?t.push(`[${JSON.stringify(e)}]`):(t.length&&t.push(`.`),t.push(e));return t.join(``)}function tc(e){let t=[],n=[...e.issues].sort((e,t)=>(e.path??[]).length-(t.path??[]).length);for(let e of n)t.push(`✖ ${e.message}`),e.path?.length&&t.push(` → at ${ec(e.path)}`);return t.join(` +`)}var nc,rc,ic,ac=o((()=>{Wo(),z(),nc=(e,t)=>{e.name=`$ZodError`,Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,Qo,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},rc=N(`$ZodError`,nc),ic=N(`$ZodError`,nc,{Parent:Error})})),oc,sc,cc,lc,uc,dc,fc,pc,mc,hc,gc,_c,vc,yc,bc,xc,Sc,Cc,wc,Tc,Ec,Dc,Oc,kc,Ac=o((()=>{Wo(),ac(),z(),oc=e=>(t,n,r,i)=>{let a=r?{...r,async:!1}:{async:!1},o=t._zod.run({value:n,issues:[]},a);if(o instanceof Promise)throw new Vo;if(o.issues.length){let t=new((i?.Err)??e)(o.issues.map(e=>js(e,a,Lo())));throw Us(t,i?.callee),t}return o.value},sc=oc(ic),cc=e=>async(t,n,r,i)=>{let a=r?{...r,async:!0}:{async:!0},o=t._zod.run({value:n,issues:[]},a);if(o instanceof Promise&&(o=await o),o.issues.length){let t=new((i?.Err)??e)(o.issues.map(e=>js(e,a,Lo())));throw Us(t,i?.callee),t}return o.value},lc=cc(ic),uc=e=>(t,n,r)=>{let i=r?{...r,async:!1}:{async:!1},a=t._zod.run({value:n,issues:[]},i);if(a instanceof Promise)throw new Vo;return a.issues.length?{success:!1,error:new(e??rc)(a.issues.map(e=>js(e,i,Lo())))}:{success:!0,data:a.value}},dc=uc(ic),fc=e=>async(t,n,r)=>{let i=r?{...r,async:!0}:{async:!0},a=t._zod.run({value:n,issues:[]},i);return a instanceof Promise&&(a=await a),a.issues.length?{success:!1,error:new e(a.issues.map(e=>js(e,i,Lo())))}:{success:!0,data:a.value}},pc=fc(ic),mc=e=>(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return oc(e)(t,n,i)},hc=mc(ic),gc=e=>(t,n,r)=>oc(e)(t,n,r),_c=gc(ic),vc=e=>async(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return cc(e)(t,n,i)},yc=vc(ic),bc=e=>async(t,n,r)=>cc(e)(t,n,r),xc=bc(ic),Sc=e=>(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return uc(e)(t,n,i)},Cc=Sc(ic),wc=e=>(t,n,r)=>uc(e)(t,n,r),Tc=wc(ic),Ec=e=>async(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return fc(e)(t,n,i)},Dc=Ec(ic),Oc=e=>async(t,n,r)=>fc(e)(t,n,r),kc=Oc(ic)})),jc=c({base64:()=>ll,base64url:()=>ul,bigint:()=>vl,boolean:()=>xl,browserEmail:()=>nl,cidrv4:()=>sl,cidrv6:()=>cl,cuid:()=>Rc,cuid2:()=>zc,date:()=>gl,datetime:()=>Fc,domain:()=>fl,duration:()=>Wc,e164:()=>ml,email:()=>Zc,emoji:()=>Mc,extendedDuration:()=>Gc,guid:()=>Kc,hex:()=>El,hostname:()=>dl,html5Email:()=>Qc,httpProtocol:()=>pl,idnEmail:()=>tl,integer:()=>yl,ipv4:()=>il,ipv6:()=>al,ksuid:()=>Hc,lowercase:()=>wl,mac:()=>ol,md5_base64:()=>Ol,md5_base64url:()=>kl,md5_hex:()=>Dl,nanoid:()=>Uc,null:()=>Sl,number:()=>bl,rfc5322Email:()=>$c,sha1_base64:()=>jl,sha1_base64url:()=>Ml,sha1_hex:()=>Al,sha256_base64:()=>Pl,sha256_base64url:()=>Fl,sha256_hex:()=>Nl,sha384_base64:()=>Ll,sha384_base64url:()=>Rl,sha384_hex:()=>Il,sha512_base64:()=>Bl,sha512_base64url:()=>Vl,sha512_hex:()=>zl,string:()=>_l,time:()=>Pc,ulid:()=>Bc,undefined:()=>Cl,unicodeEmail:()=>el,uppercase:()=>Tl,uuid:()=>qc,uuid4:()=>Jc,uuid6:()=>Yc,uuid7:()=>Xc,xid:()=>Vc});function Mc(){return new RegExp(rl,`u`)}function Nc(e){let t=`(?:[01]\\d|2[0-3]):[0-5]\\d`;return typeof e.precision==`number`?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function Pc(e){return RegExp(`^${Nc(e)}$`)}function Fc(e){let t=Nc({precision:e.precision}),n=[`Z`];e.local&&n.push(``),e.offset&&n.push(`([+-](?:[01]\\d|2[0-3]):[0-5]\\d)`);let r=`${t}(?:${n.join(`|`)})`;return RegExp(`^${hl}T(?:${r})$`)}function Ic(e,t){return RegExp(`^[A-Za-z0-9+/]{${e}}${t}$`)}function Lc(e){return RegExp(`^[A-Za-z0-9_-]{${e}}$`)}var Rc,zc,Bc,Vc,Hc,Uc,Wc,Gc,Kc,qc,Jc,Yc,Xc,Zc,Qc,$c,el,tl,nl,rl,il,al,ol,sl,cl,ll,ul,dl,fl,pl,ml,hl,gl,_l,vl,yl,bl,xl,Sl,Cl,wl,Tl,El,Dl,Ol,kl,Al,jl,Ml,Nl,Pl,Fl,Il,Ll,Rl,zl,Bl,Vl,Hl=o((()=>{z(),Rc=/^[cC][0-9a-z]{6,}$/,zc=/^[0-9a-z]+$/,Bc=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,Vc=/^[0-9a-vA-V]{20}$/,Hc=/^[A-Za-z0-9]{27}$/,Uc=/^[a-zA-Z0-9_-]{21}$/,Wc=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,Gc=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,Kc=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,qc=e=>e?RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,Jc=qc(4),Yc=qc(6),Xc=qc(7),Zc=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,Qc=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,$c=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,el=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,tl=el,nl=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,rl=`^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$`,il=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,al=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,ol=e=>{let t=gs(e??`:`);return RegExp(`^(?:[0-9A-F]{2}${t}){5}[0-9A-F]{2}$|^(?:[0-9a-f]{2}${t}){5}[0-9a-f]{2}$`)},sl=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,cl=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,ll=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,ul=/^[A-Za-z0-9_-]*$/,dl=/^(?=.{1,253}\.?$)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?)*\.?$/,fl=/^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/,pl=/^https?$/,ml=/^\+[1-9]\d{6,14}$/,hl=`(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))`,gl=RegExp(`^${hl}$`),_l=e=>{let t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??``}}`:`[\\s\\S]*`;return RegExp(`^${t}$`)},vl=/^-?\d+n?$/,yl=/^-?\d+$/,bl=/^-?\d+(?:\.\d+)?$/,xl=/^(?:true|false)$/i,Sl=/^null$/i,Cl=/^undefined$/i,wl=/^[^A-Z]*$/,Tl=/^[^a-z]*$/,El=/^[0-9a-fA-F]*$/,Dl=/^[0-9a-fA-F]{32}$/,Ol=Ic(22,`==`),kl=Lc(22),Al=/^[0-9a-fA-F]{40}$/,jl=Ic(27,`=`),Ml=Lc(27),Nl=/^[0-9a-fA-F]{64}$/,Pl=Ic(43,`=`),Fl=Lc(43),Il=/^[0-9a-fA-F]{96}$/,Ll=Ic(64,``),Rl=Lc(64),zl=/^[0-9a-fA-F]{128}$/,Bl=Ic(86,`==`),Vl=Lc(86)}));function Ul(e,t,n){e.issues.length&&t.issues.push(...ks(n,e.issues))}var Wl,B,Gl,V,H,Kl,ql,Jl,Yl,Xl,Zl,Ql,$l,eu,tu,nu,ru,iu,au,ou,su,cu,lu,uu=o((()=>{Wo(),Hl(),z(),Wl=N(`$ZodCheck`,(e,t)=>{var n;e._zod??={},e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),B={number:`number`,bigint:`bigint`,object:`date`},Gl=N(`$ZodCheckLessThan`,(e,t)=>{Wl.init(e,t);let n=B[typeof t.value];e._zod.onattach.push(e=>{let n=e._zod.bag,r=(t.inclusive?n.maximum:n.exclusiveMaximum)??1/0;t.value{(t.inclusive?r.value<=t.value:r.value{Wl.init(e,t);let n=B[typeof t.value];e._zod.onattach.push(e=>{let n=e._zod.bag,r=(t.inclusive?n.minimum:n.exclusiveMinimum)??-1/0;t.value>r&&(t.inclusive?n.minimum=t.value:n.exclusiveMinimum=t.value)}),e._zod.check=r=>{(t.inclusive?r.value>=t.value:r.value>t.value)||r.issues.push({origin:n,code:`too_small`,minimum:typeof t.value==`object`?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),H=N(`$ZodCheckMultipleOf`,(e,t)=>{Wl.init(e,t),e._zod.onattach.push(e=>{var n;(n=e._zod.bag).multipleOf??(n.multipleOf=t.value)}),e._zod.check=n=>{if(typeof n.value!=typeof t.value)throw Error(`Cannot mix number and bigint in multiple_of check.`);(typeof n.value==`bigint`?n.value%t.value===BigInt(0):ns(n.value,t.value)===0)||n.issues.push({origin:typeof n.value,code:`not_multiple_of`,divisor:t.value,input:n.value,inst:e,continue:!t.abort})}}),Kl=N(`$ZodCheckNumberFormat`,(e,t)=>{Wl.init(e,t),t.format=t.format||`float64`;let n=t.format?.includes(`int`),r=n?`int`:`number`,[i,a]=Js[t.format];e._zod.onattach.push(e=>{let r=e._zod.bag;r.format=t.format,r.minimum=i,r.maximum=a,n&&(r.pattern=yl)}),e._zod.check=o=>{let s=o.value;if(n){if(!Number.isInteger(s)){o.issues.push({expected:r,format:t.format,code:`invalid_type`,continue:!1,input:s,inst:e});return}if(!Number.isSafeInteger(s)){s>0?o.issues.push({input:s,code:`too_big`,maximum:2**53-1,note:`Integers must be within the safe integer range.`,inst:e,origin:r,inclusive:!0,continue:!t.abort}):o.issues.push({input:s,code:`too_small`,minimum:-(2**53-1),note:`Integers must be within the safe integer range.`,inst:e,origin:r,inclusive:!0,continue:!t.abort});return}}sa&&o.issues.push({origin:`number`,input:s,code:`too_big`,maximum:a,inclusive:!0,inst:e,continue:!t.abort})}}),ql=N(`$ZodCheckBigIntFormat`,(e,t)=>{Wl.init(e,t);let[n,r]=Ys[t.format];e._zod.onattach.push(e=>{let i=e._zod.bag;i.format=t.format,i.minimum=n,i.maximum=r}),e._zod.check=i=>{let a=i.value;ar&&i.issues.push({origin:`bigint`,input:a,code:`too_big`,maximum:r,inclusive:!0,inst:e,continue:!t.abort})}}),Jl=N(`$ZodCheckMaxSize`,(e,t)=>{var n;Wl.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!es(t)&&t.size!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag.maximum??1/0;t.maximum{let r=n.value;r.size<=t.maximum||n.issues.push({origin:Ms(r),code:`too_big`,maximum:t.maximum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),Yl=N(`$ZodCheckMinSize`,(e,t)=>{var n;Wl.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!es(t)&&t.size!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag.minimum??-1/0;t.minimum>n&&(e._zod.bag.minimum=t.minimum)}),e._zod.check=n=>{let r=n.value;r.size>=t.minimum||n.issues.push({origin:Ms(r),code:`too_small`,minimum:t.minimum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),Xl=N(`$ZodCheckSizeEquals`,(e,t)=>{var n;Wl.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!es(t)&&t.size!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag;n.minimum=t.size,n.maximum=t.size,n.size=t.size}),e._zod.check=n=>{let r=n.value,i=r.size;if(i===t.size)return;let a=i>t.size;n.issues.push({origin:Ms(r),...a?{code:`too_big`,maximum:t.size}:{code:`too_small`,minimum:t.size},inclusive:!0,exact:!0,input:n.value,inst:e,continue:!t.abort})}}),Zl=N(`$ZodCheckMaxLength`,(e,t)=>{var n;Wl.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!es(t)&&t.length!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag.maximum??1/0;t.maximum{let r=n.value;if(r.length<=t.maximum)return;let i=Ns(r);n.issues.push({origin:i,code:`too_big`,maximum:t.maximum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),Ql=N(`$ZodCheckMinLength`,(e,t)=>{var n;Wl.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!es(t)&&t.length!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag.minimum??-1/0;t.minimum>n&&(e._zod.bag.minimum=t.minimum)}),e._zod.check=n=>{let r=n.value;if(r.length>=t.minimum)return;let i=Ns(r);n.issues.push({origin:i,code:`too_small`,minimum:t.minimum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),$l=N(`$ZodCheckLengthEquals`,(e,t)=>{var n;Wl.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!es(t)&&t.length!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag;n.minimum=t.length,n.maximum=t.length,n.length=t.length}),e._zod.check=n=>{let r=n.value,i=r.length;if(i===t.length)return;let a=Ns(r),o=i>t.length;n.issues.push({origin:a,...o?{code:`too_big`,maximum:t.length}:{code:`too_small`,minimum:t.length},inclusive:!0,exact:!0,input:n.value,inst:e,continue:!t.abort})}}),eu=N(`$ZodCheckStringFormat`,(e,t)=>{var n,r;Wl.init(e,t),e._zod.onattach.push(e=>{let n=e._zod.bag;n.format=t.format,t.pattern&&(n.patterns??=new Set,n.patterns.add(t.pattern))}),t.pattern?(n=e._zod).check??(n.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:`string`,code:`invalid_format`,format:t.format,input:n.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(r=e._zod).check??(r.check=()=>{})}),tu=N(`$ZodCheckRegex`,(e,t)=>{eu.init(e,t),e._zod.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:`string`,code:`invalid_format`,format:`regex`,input:n.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),nu=N(`$ZodCheckLowerCase`,(e,t)=>{t.pattern??=wl,eu.init(e,t)}),ru=N(`$ZodCheckUpperCase`,(e,t)=>{t.pattern??=Tl,eu.init(e,t)}),iu=N(`$ZodCheckIncludes`,(e,t)=>{Wl.init(e,t);let n=gs(t.includes),r=new RegExp(typeof t.position==`number`?`^.{${t.position}}${n}`:n);t.pattern=r,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??=new Set,t.patterns.add(r)}),e._zod.check=n=>{n.value.includes(t.includes,t.position)||n.issues.push({origin:`string`,code:`invalid_format`,format:`includes`,includes:t.includes,input:n.value,inst:e,continue:!t.abort})}}),au=N(`$ZodCheckStartsWith`,(e,t)=>{Wl.init(e,t);let n=RegExp(`^${gs(t.prefix)}.*`);t.pattern??=n,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??=new Set,t.patterns.add(n)}),e._zod.check=n=>{n.value.startsWith(t.prefix)||n.issues.push({origin:`string`,code:`invalid_format`,format:`starts_with`,prefix:t.prefix,input:n.value,inst:e,continue:!t.abort})}}),ou=N(`$ZodCheckEndsWith`,(e,t)=>{Wl.init(e,t);let n=RegExp(`.*${gs(t.suffix)}$`);t.pattern??=n,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??=new Set,t.patterns.add(n)}),e._zod.check=n=>{n.value.endsWith(t.suffix)||n.issues.push({origin:`string`,code:`invalid_format`,format:`ends_with`,suffix:t.suffix,input:n.value,inst:e,continue:!t.abort})}}),su=N(`$ZodCheckProperty`,(e,t)=>{Wl.init(e,t),e._zod.check=e=>{let n=t.schema._zod.run({value:e.value[t.property],issues:[]},{});if(n instanceof Promise)return n.then(n=>Ul(n,e,t.property));Ul(n,e,t.property)}}),cu=N(`$ZodCheckMimeType`,(e,t)=>{Wl.init(e,t);let n=new Set(t.mime);e._zod.onattach.push(e=>{e._zod.bag.mime=t.mime}),e._zod.check=r=>{n.has(r.value.type)||r.issues.push({code:`invalid_value`,values:t.mime,input:r.value.type,inst:e,continue:!t.abort})}}),lu=N(`$ZodCheckOverwrite`,(e,t)=>{Wl.init(e,t),e._zod.check=e=>{e.value=t.tx(e.value)}})})),du,fu=o((()=>{du=class{constructor(e=[]){this.content=[],this.indent=0,this&&(this.args=e)}indented(e){this.indent+=1,e(this),--this.indent}write(e){if(typeof e==`function`){e(this,{execution:`sync`}),e(this,{execution:`async`});return}let t=e.split(` `).filter(e=>e),n=Math.min(...t.map(e=>e.length-e.trimStart().length)),r=t.map(e=>e.slice(n)).map(e=>` `.repeat(this.indent*2)+e);for(let e of r)this.content.push(e)}compile(){let e=Function,t=this?.args,n=[...(this?.content??[``]).map(e=>` ${e}`)];return new e(...t,n.join(` -`))}}})),iu,au=o((()=>{iu={major:4,minor:4,patch:3}}));function ou(e){if(e===``)return!0;if(/\s/.test(e)||e.length%4!=0)return!1;try{return atob(e),!0}catch{return!1}}function su(e){if(!tl.test(e))return!1;let t=e.replace(/[-_]/g,e=>e===`-`?`+`:`/`);return ou(t.padEnd(Math.ceil(t.length/4)*4,`=`))}function cu(e,t=null){try{let n=e.split(`.`);if(n.length!==3)return!1;let[r]=n;if(!r)return!1;let i=JSON.parse(atob(r));return!(`typ`in i&&i?.typ!==`JWT`||!i.alg||t&&(!(`alg`in i)||i.alg!==t))}catch{return!1}}function lu(e,t,n){e.issues.length&&t.issues.push(...bs(n,e.issues)),t.value[n]=e.value}function uu(e,t,n,r,i,a){let o=n in r;if(e.issues.length){if(i&&a&&!o)return;t.issues.push(...bs(n,e.issues))}if(!o&&!i){e.issues.length||t.issues.push({code:`invalid_type`,expected:`nonoptional`,input:void 0,path:[n]});return}e.value===void 0?o&&(t.value[n]=void 0):t.value[n]=e.value}function du(e){let t=Object.keys(e.shape);for(let n of t)if(!e.shape?.[n]?._zod?.traits?.has(`$ZodType`))throw Error(`Invalid element at key "${n}": expected a Zod schema`);let n=us(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(n)}}function fu(e,t,n,r,i,a){let o=[],s=i.keySet,c=i.catchall._zod,l=c.def.type,u=c.optin===`optional`,d=c.optout===`optional`;for(let i in t){if(i===`__proto__`||s.has(i))continue;if(l===`never`){o.push(i);continue}let a=c.run({value:t[i],issues:[]},r);a instanceof Promise?e.push(a.then(e=>uu(e,n,i,t,u,d))):uu(a,n,i,t,u,d)}return o.length&&n.issues.push({code:`unrecognized_keys`,keys:o,input:t,inst:a}),e.length?Promise.all(e).then(()=>n):n}function pu(e,t,n,r){for(let n of e)if(n.issues.length===0)return t.value=n.value,t;let i=e.filter(e=>!vs(e));return i.length===1?(t.value=i[0].value,i[0]):(t.issues.push({code:`invalid_union`,input:t.value,inst:n,errors:e.map(e=>e.issues.map(e=>Ss(e,r,Oo())))}),t)}function mu(e,t,n,r){let i=e.filter(e=>e.issues.length===0);return i.length===1?(t.value=i[0].value,t):(i.length===0?t.issues.push({code:`invalid_union`,input:t.value,inst:n,errors:e.map(e=>e.issues.map(e=>Ss(e,r,Oo())))}):t.issues.push({code:`invalid_union`,input:t.value,inst:n,errors:[],inclusive:!1}),t)}function hu(e,t){if(e===t||e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(is(e)&&is(t)){let n=Object.keys(t),r=Object.keys(e).filter(e=>n.indexOf(e)!==-1),i={...e,...t};for(let n of r){let r=hu(e[n],t[n]);if(!r.valid)return{valid:!1,mergeErrorPath:[n,...r.mergeErrorPath]};i[n]=r.data}return{valid:!0,data:i}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};let n=[];for(let r=0;re.l&&e.r).map(([e])=>e);if(a.length&&i&&e.issues.push({...i,keys:a}),vs(e))return e;let o=hu(t.value,n.value);if(!o.valid)throw Error(`Unmergable intersection. Error path: ${JSON.stringify(o.mergeErrorPath)}`);return e.value=o.data,e}function _u(e,t){for(let n=e.length-1;n>=0;n--)if(e[n]._zod[t]!==`optional`)return n+1;return 0}function vu(e,t,n){e.issues.length&&t.issues.push(...bs(n,e.issues)),t.value[n]=e.value}function yu(e,t,n,r,i){for(let a=0;a=i){t.value.length=a;break}t.issues.push(...bs(a,n.issues))}t.value[a]=n.value}for(let e=t.value.length-1;e>=r.length&&n[e]._zod.optout===`optional`&&t.value[e]===void 0;e--)t.value.length=e;return t}function bu(e,t,n,r,i,a,o){e.issues.length&&(Ls.has(typeof r)?n.issues.push(...bs(r,e.issues)):n.issues.push({code:`invalid_key`,origin:`map`,input:i,inst:a,issues:e.issues.map(e=>Ss(e,o,Oo()))})),t.issues.length&&(Ls.has(typeof r)?n.issues.push(...bs(r,t.issues)):n.issues.push({origin:`map`,code:`invalid_element`,input:i,inst:a,key:r,issues:t.issues.map(e=>Ss(e,o,Oo()))})),n.value.set(e.value,t.value)}function xu(e,t){e.issues.length&&t.issues.push(...e.issues),t.value.add(e.value)}function Su(e,t){return t===void 0&&(e.issues.length||e.fallback)?{issues:[],value:void 0}:e}function Cu(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}function wu(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:`invalid_type`,expected:`nonoptional`,input:e.value,inst:t}),e}function Tu(e,t,n){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues,fallback:e.fallback},n)}function Eu(e,t,n){if(e.issues.length)return e.aborted=!0,e;if((n.direction||`forward`)===`forward`){let r=t.transform(e.value,e);return r instanceof Promise?r.then(r=>Du(e,r,t.out,n)):Du(e,r,t.out,n)}{let r=t.reverseTransform(e.value,e);return r instanceof Promise?r.then(r=>Du(e,r,t.in,n)):Du(e,r,t.in,n)}}function Du(e,t,n,r){return e.issues.length?(e.aborted=!0,e):n._zod.run({value:t,issues:e.issues},r)}function Ou(e){return e.value=Object.freeze(e.value),e}function ku(e,t,n,r){if(!e){let e={code:`custom`,input:n,inst:r,path:[...r._zod.def.path??[]],continue:!r._zod.def.abort};r._zod.def.params&&(e.params=r._zod.def.params),t.issues.push(Ts(e))}}var U,Au,ju,Mu,Nu,Pu,Fu,Iu,Lu,Ru,zu,Bu,Vu,Hu,Uu,Wu,Gu,Ku,qu,Ju,Yu,Xu,Zu,Qu,$u,ed,td,nd,rd,id,ad,od,sd,cd,ld,ud,dd,fd,pd,md,hd,gd,_d,vd,yd,bd,xd,Sd,Cd,wd,Td,Ed,Dd,W,Od,kd,Ad,jd,Md,Nd,Pd,Fd,Id,Ld,Rd,zd,Bd,Vd,Hd,Ud,Wd,Gd,Kd,qd,Jd=o((()=>{tu(),Fo(),ru(),xc(),Nl(),z(),au(),U=N(`$ZodType`,(e,t)=>{var n;e??={},e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=iu;let r=[...e._zod.def.checks??[]];e._zod.traits.has(`$ZodCheck`)&&r.unshift(e);for(let t of r)for(let n of t._zod.onattach)n(e);if(r.length===0)(n=e._zod).deferred??(n.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{let t=(e,t,n)=>{let r=vs(e),i;for(let a of t){if(a._zod.def.when){if(ys(e)||!a._zod.def.when(e))continue}else if(r)continue;let t=e.issues.length,o=a._zod.check(e);if(o instanceof Promise&&n?.async===!1)throw new Mo;if(i||o instanceof Promise)i=(i??Promise.resolve()).then(async()=>{await o,e.issues.length!==t&&(r||=vs(e,t))});else{if(e.issues.length===t)continue;r||=vs(e,t)}}return i?i.then(()=>e):e},n=(n,i,a)=>{if(vs(n))return n.aborted=!0,n;let o=t(i,r,a);if(o instanceof Promise){if(a.async===!1)throw new Mo;return o.then(t=>e._zod.parse(t,a))}return e._zod.parse(o,a)};e._zod.run=(i,a)=>{if(a.skipChecks)return e._zod.parse(i,a);if(a.direction===`backward`){let t=e._zod.parse({value:i.value,issues:[]},{...a,skipChecks:!0});return t instanceof Promise?t.then(e=>n(e,i,a)):n(t,i,a)}let o=e._zod.parse(i,a);if(o instanceof Promise){if(a.async===!1)throw new Mo;return o.then(e=>t(e,r,a))}return t(o,r,a)}}F(e,`~standard`,()=>({validate:t=>{try{let n=nc(e,t);return n.success?{value:n.data}:{issues:n.error?.issues}}catch{return ic(e,t).then(e=>e.success?{value:e.data}:{issues:e.error?.issues})}},vendor:`zod`,version:1}))}),Au=N(`$ZodString`,(e,t)=>{U.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??cl(e._zod.bag),e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=String(n.value)}catch{}return typeof n.value==`string`||n.issues.push({expected:`string`,code:`invalid_type`,input:n.value,inst:e}),n}}),ju=N(`$ZodStringFormat`,(e,t)=>{H.init(e,t),Au.init(e,t)}),Mu=N(`$ZodGUID`,(e,t)=>{t.pattern??=Lc,ju.init(e,t)}),Nu=N(`$ZodUUID`,(e,t)=>{if(t.version){let e={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(e===void 0)throw Error(`Invalid UUID version: "${t.version}"`);t.pattern??=Rc(e)}else t.pattern??=Rc();ju.init(e,t)}),Pu=N(`$ZodEmail`,(e,t)=>{t.pattern??=Hc,ju.init(e,t)}),Fu=N(`$ZodURL`,(e,t)=>{ju.init(e,t),e._zod.check=n=>{try{let r=n.value.trim();if(!t.normalize&&t.protocol?.source===il.source&&!/^https?:\/\//i.test(r)){n.issues.push({code:`invalid_format`,format:`url`,note:`Invalid URL format`,input:n.value,inst:e,continue:!t.abort});return}let i=new URL(r);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(i.hostname)||n.issues.push({code:`invalid_format`,format:`url`,note:`Invalid hostname`,pattern:t.hostname.source,input:n.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(i.protocol.endsWith(`:`)?i.protocol.slice(0,-1):i.protocol)||n.issues.push({code:`invalid_format`,format:`url`,note:`Invalid protocol`,pattern:t.protocol.source,input:n.value,inst:e,continue:!t.abort})),n.value=t.normalize?i.href:r;return}catch{n.issues.push({code:`invalid_format`,format:`url`,input:n.value,inst:e,continue:!t.abort})}}}),Iu=N(`$ZodEmoji`,(e,t)=>{t.pattern??=Cc(),ju.init(e,t)}),Lu=N(`$ZodNanoID`,(e,t)=>{t.pattern??=Pc,ju.init(e,t)}),Ru=N(`$ZodCUID`,(e,t)=>{t.pattern??=kc,ju.init(e,t)}),zu=N(`$ZodCUID2`,(e,t)=>{t.pattern??=Ac,ju.init(e,t)}),Bu=N(`$ZodULID`,(e,t)=>{t.pattern??=jc,ju.init(e,t)}),Vu=N(`$ZodXID`,(e,t)=>{t.pattern??=Mc,ju.init(e,t)}),Hu=N(`$ZodKSUID`,(e,t)=>{t.pattern??=Nc,ju.init(e,t)}),Uu=N(`$ZodISODateTime`,(e,t)=>{t.pattern??=Ec(t),ju.init(e,t)}),Wu=N(`$ZodISODate`,(e,t)=>{t.pattern??=sl,ju.init(e,t)}),Gu=N(`$ZodISOTime`,(e,t)=>{t.pattern??=Tc(t),ju.init(e,t)}),Ku=N(`$ZodISODuration`,(e,t)=>{t.pattern??=Fc,ju.init(e,t)}),qu=N(`$ZodIPv4`,(e,t)=>{t.pattern??=Yc,ju.init(e,t),e._zod.bag.format=`ipv4`}),Ju=N(`$ZodIPv6`,(e,t)=>{t.pattern??=Xc,ju.init(e,t),e._zod.bag.format=`ipv6`,e._zod.check=n=>{try{new URL(`http://[${n.value}]`)}catch{n.issues.push({code:`invalid_format`,format:`ipv6`,input:n.value,inst:e,continue:!t.abort})}}}),Yu=N(`$ZodMAC`,(e,t)=>{t.pattern??=Zc(t.delimiter),ju.init(e,t),e._zod.bag.format=`mac`}),Xu=N(`$ZodCIDRv4`,(e,t)=>{t.pattern??=Qc,ju.init(e,t)}),Zu=N(`$ZodCIDRv6`,(e,t)=>{t.pattern??=$c,ju.init(e,t),e._zod.check=n=>{let r=n.value.split(`/`);try{if(r.length!==2)throw Error();let[e,t]=r;if(!t)throw Error();let n=Number(t);if(`${n}`!==t||n<0||n>128)throw Error();new URL(`http://[${e}]`)}catch{n.issues.push({code:`invalid_format`,format:`cidrv6`,input:n.value,inst:e,continue:!t.abort})}}}),Qu=N(`$ZodBase64`,(e,t)=>{t.pattern??=el,ju.init(e,t),e._zod.bag.contentEncoding=`base64`,e._zod.check=n=>{ou(n.value)||n.issues.push({code:`invalid_format`,format:`base64`,input:n.value,inst:e,continue:!t.abort})}}),$u=N(`$ZodBase64URL`,(e,t)=>{t.pattern??=tl,ju.init(e,t),e._zod.bag.contentEncoding=`base64url`,e._zod.check=n=>{su(n.value)||n.issues.push({code:`invalid_format`,format:`base64url`,input:n.value,inst:e,continue:!t.abort})}}),ed=N(`$ZodE164`,(e,t)=>{t.pattern??=al,ju.init(e,t)}),td=N(`$ZodJWT`,(e,t)=>{ju.init(e,t),e._zod.check=n=>{cu(n.value,t.alg)||n.issues.push({code:`invalid_format`,format:`jwt`,input:n.value,inst:e,continue:!t.abort})}}),nd=N(`$ZodCustomStringFormat`,(e,t)=>{ju.init(e,t),e._zod.check=n=>{t.fn(n.value)||n.issues.push({code:`invalid_format`,format:t.format,input:n.value,inst:e,continue:!t.abort})}}),rd=N(`$ZodNumber`,(e,t)=>{U.init(e,t),e._zod.pattern=e._zod.bag.pattern??dl,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=Number(n.value)}catch{}let i=n.value;if(typeof i==`number`&&!Number.isNaN(i)&&Number.isFinite(i))return n;let a=typeof i==`number`?Number.isNaN(i)?`NaN`:Number.isFinite(i)?void 0:`Infinity`:void 0;return n.issues.push({expected:`number`,code:`invalid_type`,input:i,inst:e,...a?{received:a}:{}}),n}}),id=N(`$ZodNumberFormat`,(e,t)=>{Bl.init(e,t),rd.init(e,t)}),ad=N(`$ZodBoolean`,(e,t)=>{U.init(e,t),e._zod.pattern=fl,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=!!n.value}catch{}let i=n.value;return typeof i==`boolean`||n.issues.push({expected:`boolean`,code:`invalid_type`,input:i,inst:e}),n}}),od=N(`$ZodBigInt`,(e,t)=>{U.init(e,t),e._zod.pattern=ll,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=BigInt(n.value)}catch{}return typeof n.value==`bigint`||n.issues.push({expected:`bigint`,code:`invalid_type`,input:n.value,inst:e}),n}}),sd=N(`$ZodBigIntFormat`,(e,t)=>{Vl.init(e,t),od.init(e,t)}),cd=N(`$ZodSymbol`,(e,t)=>{U.init(e,t),e._zod.parse=(t,n)=>{let r=t.value;return typeof r==`symbol`||t.issues.push({expected:`symbol`,code:`invalid_type`,input:r,inst:e}),t}}),ld=N(`$ZodUndefined`,(e,t)=>{U.init(e,t),e._zod.pattern=ml,e._zod.values=new Set([void 0]),e._zod.parse=(t,n)=>{let r=t.value;return r===void 0||t.issues.push({expected:`undefined`,code:`invalid_type`,input:r,inst:e}),t}}),ud=N(`$ZodNull`,(e,t)=>{U.init(e,t),e._zod.pattern=pl,e._zod.values=new Set([null]),e._zod.parse=(t,n)=>{let r=t.value;return r===null||t.issues.push({expected:`null`,code:`invalid_type`,input:r,inst:e}),t}}),dd=N(`$ZodAny`,(e,t)=>{U.init(e,t),e._zod.parse=e=>e}),fd=N(`$ZodUnknown`,(e,t)=>{U.init(e,t),e._zod.parse=e=>e}),pd=N(`$ZodNever`,(e,t)=>{U.init(e,t),e._zod.parse=(t,n)=>(t.issues.push({expected:`never`,code:`invalid_type`,input:t.value,inst:e}),t)}),md=N(`$ZodVoid`,(e,t)=>{U.init(e,t),e._zod.parse=(t,n)=>{let r=t.value;return r===void 0||t.issues.push({expected:`void`,code:`invalid_type`,input:r,inst:e}),t}}),hd=N(`$ZodDate`,(e,t)=>{U.init(e,t),e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=new Date(n.value)}catch{}let i=n.value,a=i instanceof Date;return a&&!Number.isNaN(i.getTime())||n.issues.push({expected:`date`,code:`invalid_type`,input:i,...a?{received:`Invalid Date`}:{},inst:e}),n}}),gd=N(`$ZodArray`,(e,t)=>{U.init(e,t),e._zod.parse=(n,r)=>{let i=n.value;if(!Array.isArray(i))return n.issues.push({expected:`array`,code:`invalid_type`,input:i,inst:e}),n;n.value=Array(i.length);let a=[];for(let e=0;elu(t,n,e))):lu(s,n,e)}return a.length?Promise.all(a).then(()=>n):n}}),_d=N(`$ZodObject`,(e,t)=>{if(U.init(e,t),!Object.getOwnPropertyDescriptor(t,`shape`)?.get){let e=t.shape;Object.defineProperty(t,"shape",{get:()=>{let n={...e};return Object.defineProperty(t,"shape",{value:n}),n}})}let n=Wo(()=>du(t));F(e._zod,`propValues`,()=>{let e=t.shape,n={};for(let t in e){let r=e[t]._zod;if(r.values){n[t]??(n[t]=new Set);for(let e of r.values)n[t].add(e)}}return n});let r=rs,i=t.catchall,a;e._zod.parse=(t,o)=>{a??=n.value;let s=t.value;if(!r(s))return t.issues.push({expected:`object`,code:`invalid_type`,input:s,inst:e}),t;t.value={};let c=[],l=a.shape;for(let e of a.keys){let n=l[e],r=n._zod.optin===`optional`,i=n._zod.optout===`optional`,a=n._zod.run({value:s[e],issues:[]},o);a instanceof Promise?c.push(a.then(n=>uu(n,t,e,s,r,i))):uu(a,t,e,s,r,i)}return i?fu(c,s,t,o,n.value,e):c.length?Promise.all(c).then(()=>t):t}}),vd=N(`$ZodObjectJIT`,(e,t)=>{_d.init(e,t);let n=e._zod.parse,r=Wo(()=>du(t)),i=e=>{let t=new nu([`shape`,`payload`,`ctx`]),n=r.value,i=e=>{let t=ts(e);return`shape[${t}]._zod.run({ value: input[${t}], issues: [] }, ctx)`};t.write(`const input = payload.value;`);let a=Object.create(null),o=0;for(let e of n.keys)a[e]=`key_${o++}`;t.write(`const newResult = {};`);for(let r of n.keys){let n=a[r],o=ts(r),s=e[r],c=s?._zod?.optin===`optional`,l=s?._zod?.optout===`optional`;t.write(`const ${n} = ${i(r)};`),c&&l?t.write(` +`))}}})),pu,mu=o((()=>{pu={major:4,minor:4,patch:3}}));function hu(e){if(e===``)return!0;if(/\s/.test(e)||e.length%4!=0)return!1;try{return atob(e),!0}catch{return!1}}function gu(e){if(!ul.test(e))return!1;let t=e.replace(/[-_]/g,e=>e===`-`?`+`:`/`);return hu(t.padEnd(Math.ceil(t.length/4)*4,`=`))}function _u(e,t=null){try{let n=e.split(`.`);if(n.length!==3)return!1;let[r]=n;if(!r)return!1;let i=JSON.parse(atob(r));return!(`typ`in i&&i?.typ!==`JWT`||!i.alg||t&&(!(`alg`in i)||i.alg!==t))}catch{return!1}}function vu(e,t,n){e.issues.length&&t.issues.push(...ks(n,e.issues)),t.value[n]=e.value}function yu(e,t,n,r,i,a){let o=n in r;if(e.issues.length){if(i&&a&&!o)return;t.issues.push(...ks(n,e.issues))}if(!o&&!i){e.issues.length||t.issues.push({code:`invalid_type`,expected:`nonoptional`,input:void 0,path:[n]});return}e.value===void 0?o&&(t.value[n]=void 0):t.value[n]=e.value}function bu(e){let t=Object.keys(e.shape);for(let n of t)if(!e.shape?.[n]?._zod?.traits?.has(`$ZodType`))throw Error(`Invalid element at key "${n}": expected a Zod schema`);let n=ys(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(n)}}function xu(e,t,n,r,i,a){let o=[],s=i.keySet,c=i.catchall._zod,l=c.def.type,u=c.optin===`optional`,d=c.optout===`optional`;for(let i in t){if(i===`__proto__`||s.has(i))continue;if(l===`never`){o.push(i);continue}let a=c.run({value:t[i],issues:[]},r);a instanceof Promise?e.push(a.then(e=>yu(e,n,i,t,u,d))):yu(a,n,i,t,u,d)}return o.length&&n.issues.push({code:`unrecognized_keys`,keys:o,input:t,inst:a}),e.length?Promise.all(e).then(()=>n):n}function Su(e,t,n,r){for(let n of e)if(n.issues.length===0)return t.value=n.value,t;let i=e.filter(e=>!Ds(e));return i.length===1?(t.value=i[0].value,i[0]):(t.issues.push({code:`invalid_union`,input:t.value,inst:n,errors:e.map(e=>e.issues.map(e=>js(e,r,Lo())))}),t)}function Cu(e,t,n,r){let i=e.filter(e=>e.issues.length===0);return i.length===1?(t.value=i[0].value,t):(i.length===0?t.issues.push({code:`invalid_union`,input:t.value,inst:n,errors:e.map(e=>e.issues.map(e=>js(e,r,Lo())))}):t.issues.push({code:`invalid_union`,input:t.value,inst:n,errors:[],inclusive:!1}),t)}function wu(e,t){if(e===t||e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(ps(e)&&ps(t)){let n=Object.keys(t),r=Object.keys(e).filter(e=>n.indexOf(e)!==-1),i={...e,...t};for(let n of r){let r=wu(e[n],t[n]);if(!r.valid)return{valid:!1,mergeErrorPath:[n,...r.mergeErrorPath]};i[n]=r.data}return{valid:!0,data:i}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};let n=[];for(let r=0;re.l&&e.r).map(([e])=>e);if(a.length&&i&&e.issues.push({...i,keys:a}),Ds(e))return e;let o=wu(t.value,n.value);if(!o.valid)throw Error(`Unmergable intersection. Error path: ${JSON.stringify(o.mergeErrorPath)}`);return e.value=o.data,e}function Eu(e,t){for(let n=e.length-1;n>=0;n--)if(e[n]._zod[t]!==`optional`)return n+1;return 0}function Du(e,t,n){e.issues.length&&t.issues.push(...ks(n,e.issues)),t.value[n]=e.value}function Ou(e,t,n,r,i){for(let a=0;a=i){t.value.length=a;break}t.issues.push(...ks(a,n.issues))}t.value[a]=n.value}for(let e=t.value.length-1;e>=r.length&&n[e]._zod.optout===`optional`&&t.value[e]===void 0;e--)t.value.length=e;return t}function ku(e,t,n,r,i,a,o){e.issues.length&&(Ks.has(typeof r)?n.issues.push(...ks(r,e.issues)):n.issues.push({code:`invalid_key`,origin:`map`,input:i,inst:a,issues:e.issues.map(e=>js(e,o,Lo()))})),t.issues.length&&(Ks.has(typeof r)?n.issues.push(...ks(r,t.issues)):n.issues.push({origin:`map`,code:`invalid_element`,input:i,inst:a,key:r,issues:t.issues.map(e=>js(e,o,Lo()))})),n.value.set(e.value,t.value)}function Au(e,t){e.issues.length&&t.issues.push(...e.issues),t.value.add(e.value)}function ju(e,t){return t===void 0&&(e.issues.length||e.fallback)?{issues:[],value:void 0}:e}function Mu(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}function Nu(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:`invalid_type`,expected:`nonoptional`,input:e.value,inst:t}),e}function Pu(e,t,n){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues,fallback:e.fallback},n)}function Fu(e,t,n){if(e.issues.length)return e.aborted=!0,e;if((n.direction||`forward`)===`forward`){let r=t.transform(e.value,e);return r instanceof Promise?r.then(r=>Iu(e,r,t.out,n)):Iu(e,r,t.out,n)}{let r=t.reverseTransform(e.value,e);return r instanceof Promise?r.then(r=>Iu(e,r,t.in,n)):Iu(e,r,t.in,n)}}function Iu(e,t,n,r){return e.issues.length?(e.aborted=!0,e):n._zod.run({value:t,issues:e.issues},r)}function Lu(e){return e.value=Object.freeze(e.value),e}function Ru(e,t,n,r){if(!e){let e={code:`custom`,input:n,inst:r,path:[...r._zod.def.path??[]],continue:!r._zod.def.abort};r._zod.def.params&&(e.params=r._zod.def.params),t.issues.push(Ps(e))}}var U,zu,Bu,Vu,Hu,Uu,Wu,Gu,Ku,qu,Ju,Yu,Xu,Zu,Qu,$u,ed,td,nd,rd,id,ad,od,sd,cd,ld,ud,dd,fd,pd,md,hd,gd,_d,vd,yd,bd,xd,Sd,Cd,wd,Td,Ed,Dd,W,Od,kd,Ad,jd,Md,Nd,Pd,Fd,Id,Ld,Rd,zd,Bd,Vd,Hd,Ud,Wd,Gd,Kd,qd,Jd,Yd,Xd,Zd,Qd,$d,ef,tf,nf,rf=o((()=>{uu(),Wo(),fu(),Ac(),Hl(),z(),mu(),U=N(`$ZodType`,(e,t)=>{var n;e??={},e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=pu;let r=[...e._zod.def.checks??[]];e._zod.traits.has(`$ZodCheck`)&&r.unshift(e);for(let t of r)for(let n of t._zod.onattach)n(e);if(r.length===0)(n=e._zod).deferred??(n.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{let t=(e,t,n)=>{let r=Ds(e),i;for(let a of t){if(a._zod.def.when){if(Os(e)||!a._zod.def.when(e))continue}else if(r)continue;let t=e.issues.length,o=a._zod.check(e);if(o instanceof Promise&&n?.async===!1)throw new Vo;if(i||o instanceof Promise)i=(i??Promise.resolve()).then(async()=>{await o,e.issues.length!==t&&(r||=Ds(e,t))});else{if(e.issues.length===t)continue;r||=Ds(e,t)}}return i?i.then(()=>e):e},n=(n,i,a)=>{if(Ds(n))return n.aborted=!0,n;let o=t(i,r,a);if(o instanceof Promise){if(a.async===!1)throw new Vo;return o.then(t=>e._zod.parse(t,a))}return e._zod.parse(o,a)};e._zod.run=(i,a)=>{if(a.skipChecks)return e._zod.parse(i,a);if(a.direction===`backward`){let t=e._zod.parse({value:i.value,issues:[]},{...a,skipChecks:!0});return t instanceof Promise?t.then(e=>n(e,i,a)):n(t,i,a)}let o=e._zod.parse(i,a);if(o instanceof Promise){if(a.async===!1)throw new Vo;return o.then(e=>t(e,r,a))}return t(o,r,a)}}F(e,`~standard`,()=>({validate:t=>{try{let n=dc(e,t);return n.success?{value:n.data}:{issues:n.error?.issues}}catch{return pc(e,t).then(e=>e.success?{value:e.data}:{issues:e.error?.issues})}},vendor:`zod`,version:1}))}),zu=N(`$ZodString`,(e,t)=>{U.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??_l(e._zod.bag),e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=String(n.value)}catch{}return typeof n.value==`string`||n.issues.push({expected:`string`,code:`invalid_type`,input:n.value,inst:e}),n}}),Bu=N(`$ZodStringFormat`,(e,t)=>{eu.init(e,t),zu.init(e,t)}),Vu=N(`$ZodGUID`,(e,t)=>{t.pattern??=Kc,Bu.init(e,t)}),Hu=N(`$ZodUUID`,(e,t)=>{if(t.version){let e={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(e===void 0)throw Error(`Invalid UUID version: "${t.version}"`);t.pattern??=qc(e)}else t.pattern??=qc();Bu.init(e,t)}),Uu=N(`$ZodEmail`,(e,t)=>{t.pattern??=Zc,Bu.init(e,t)}),Wu=N(`$ZodURL`,(e,t)=>{Bu.init(e,t),e._zod.check=n=>{try{let r=n.value.trim();if(!t.normalize&&t.protocol?.source===pl.source&&!/^https?:\/\//i.test(r)){n.issues.push({code:`invalid_format`,format:`url`,note:`Invalid URL format`,input:n.value,inst:e,continue:!t.abort});return}let i=new URL(r);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(i.hostname)||n.issues.push({code:`invalid_format`,format:`url`,note:`Invalid hostname`,pattern:t.hostname.source,input:n.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(i.protocol.endsWith(`:`)?i.protocol.slice(0,-1):i.protocol)||n.issues.push({code:`invalid_format`,format:`url`,note:`Invalid protocol`,pattern:t.protocol.source,input:n.value,inst:e,continue:!t.abort})),n.value=t.normalize?i.href:r;return}catch{n.issues.push({code:`invalid_format`,format:`url`,input:n.value,inst:e,continue:!t.abort})}}}),Gu=N(`$ZodEmoji`,(e,t)=>{t.pattern??=Mc(),Bu.init(e,t)}),Ku=N(`$ZodNanoID`,(e,t)=>{t.pattern??=Uc,Bu.init(e,t)}),qu=N(`$ZodCUID`,(e,t)=>{t.pattern??=Rc,Bu.init(e,t)}),Ju=N(`$ZodCUID2`,(e,t)=>{t.pattern??=zc,Bu.init(e,t)}),Yu=N(`$ZodULID`,(e,t)=>{t.pattern??=Bc,Bu.init(e,t)}),Xu=N(`$ZodXID`,(e,t)=>{t.pattern??=Vc,Bu.init(e,t)}),Zu=N(`$ZodKSUID`,(e,t)=>{t.pattern??=Hc,Bu.init(e,t)}),Qu=N(`$ZodISODateTime`,(e,t)=>{t.pattern??=Fc(t),Bu.init(e,t)}),$u=N(`$ZodISODate`,(e,t)=>{t.pattern??=gl,Bu.init(e,t)}),ed=N(`$ZodISOTime`,(e,t)=>{t.pattern??=Pc(t),Bu.init(e,t)}),td=N(`$ZodISODuration`,(e,t)=>{t.pattern??=Wc,Bu.init(e,t)}),nd=N(`$ZodIPv4`,(e,t)=>{t.pattern??=il,Bu.init(e,t),e._zod.bag.format=`ipv4`}),rd=N(`$ZodIPv6`,(e,t)=>{t.pattern??=al,Bu.init(e,t),e._zod.bag.format=`ipv6`,e._zod.check=n=>{try{new URL(`http://[${n.value}]`)}catch{n.issues.push({code:`invalid_format`,format:`ipv6`,input:n.value,inst:e,continue:!t.abort})}}}),id=N(`$ZodMAC`,(e,t)=>{t.pattern??=ol(t.delimiter),Bu.init(e,t),e._zod.bag.format=`mac`}),ad=N(`$ZodCIDRv4`,(e,t)=>{t.pattern??=sl,Bu.init(e,t)}),od=N(`$ZodCIDRv6`,(e,t)=>{t.pattern??=cl,Bu.init(e,t),e._zod.check=n=>{let r=n.value.split(`/`);try{if(r.length!==2)throw Error();let[e,t]=r;if(!t)throw Error();let n=Number(t);if(`${n}`!==t||n<0||n>128)throw Error();new URL(`http://[${e}]`)}catch{n.issues.push({code:`invalid_format`,format:`cidrv6`,input:n.value,inst:e,continue:!t.abort})}}}),sd=N(`$ZodBase64`,(e,t)=>{t.pattern??=ll,Bu.init(e,t),e._zod.bag.contentEncoding=`base64`,e._zod.check=n=>{hu(n.value)||n.issues.push({code:`invalid_format`,format:`base64`,input:n.value,inst:e,continue:!t.abort})}}),cd=N(`$ZodBase64URL`,(e,t)=>{t.pattern??=ul,Bu.init(e,t),e._zod.bag.contentEncoding=`base64url`,e._zod.check=n=>{gu(n.value)||n.issues.push({code:`invalid_format`,format:`base64url`,input:n.value,inst:e,continue:!t.abort})}}),ld=N(`$ZodE164`,(e,t)=>{t.pattern??=ml,Bu.init(e,t)}),ud=N(`$ZodJWT`,(e,t)=>{Bu.init(e,t),e._zod.check=n=>{_u(n.value,t.alg)||n.issues.push({code:`invalid_format`,format:`jwt`,input:n.value,inst:e,continue:!t.abort})}}),dd=N(`$ZodCustomStringFormat`,(e,t)=>{Bu.init(e,t),e._zod.check=n=>{t.fn(n.value)||n.issues.push({code:`invalid_format`,format:t.format,input:n.value,inst:e,continue:!t.abort})}}),fd=N(`$ZodNumber`,(e,t)=>{U.init(e,t),e._zod.pattern=e._zod.bag.pattern??bl,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=Number(n.value)}catch{}let i=n.value;if(typeof i==`number`&&!Number.isNaN(i)&&Number.isFinite(i))return n;let a=typeof i==`number`?Number.isNaN(i)?`NaN`:Number.isFinite(i)?void 0:`Infinity`:void 0;return n.issues.push({expected:`number`,code:`invalid_type`,input:i,inst:e,...a?{received:a}:{}}),n}}),pd=N(`$ZodNumberFormat`,(e,t)=>{Kl.init(e,t),fd.init(e,t)}),md=N(`$ZodBoolean`,(e,t)=>{U.init(e,t),e._zod.pattern=xl,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=!!n.value}catch{}let i=n.value;return typeof i==`boolean`||n.issues.push({expected:`boolean`,code:`invalid_type`,input:i,inst:e}),n}}),hd=N(`$ZodBigInt`,(e,t)=>{U.init(e,t),e._zod.pattern=vl,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=BigInt(n.value)}catch{}return typeof n.value==`bigint`||n.issues.push({expected:`bigint`,code:`invalid_type`,input:n.value,inst:e}),n}}),gd=N(`$ZodBigIntFormat`,(e,t)=>{ql.init(e,t),hd.init(e,t)}),_d=N(`$ZodSymbol`,(e,t)=>{U.init(e,t),e._zod.parse=(t,n)=>{let r=t.value;return typeof r==`symbol`||t.issues.push({expected:`symbol`,code:`invalid_type`,input:r,inst:e}),t}}),vd=N(`$ZodUndefined`,(e,t)=>{U.init(e,t),e._zod.pattern=Cl,e._zod.values=new Set([void 0]),e._zod.parse=(t,n)=>{let r=t.value;return r===void 0||t.issues.push({expected:`undefined`,code:`invalid_type`,input:r,inst:e}),t}}),yd=N(`$ZodNull`,(e,t)=>{U.init(e,t),e._zod.pattern=Sl,e._zod.values=new Set([null]),e._zod.parse=(t,n)=>{let r=t.value;return r===null||t.issues.push({expected:`null`,code:`invalid_type`,input:r,inst:e}),t}}),bd=N(`$ZodAny`,(e,t)=>{U.init(e,t),e._zod.parse=e=>e}),xd=N(`$ZodUnknown`,(e,t)=>{U.init(e,t),e._zod.parse=e=>e}),Sd=N(`$ZodNever`,(e,t)=>{U.init(e,t),e._zod.parse=(t,n)=>(t.issues.push({expected:`never`,code:`invalid_type`,input:t.value,inst:e}),t)}),Cd=N(`$ZodVoid`,(e,t)=>{U.init(e,t),e._zod.parse=(t,n)=>{let r=t.value;return r===void 0||t.issues.push({expected:`void`,code:`invalid_type`,input:r,inst:e}),t}}),wd=N(`$ZodDate`,(e,t)=>{U.init(e,t),e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=new Date(n.value)}catch{}let i=n.value,a=i instanceof Date;return a&&!Number.isNaN(i.getTime())||n.issues.push({expected:`date`,code:`invalid_type`,input:i,...a?{received:`Invalid Date`}:{},inst:e}),n}}),Td=N(`$ZodArray`,(e,t)=>{U.init(e,t),e._zod.parse=(n,r)=>{let i=n.value;if(!Array.isArray(i))return n.issues.push({expected:`array`,code:`invalid_type`,input:i,inst:e}),n;n.value=Array(i.length);let a=[];for(let e=0;evu(t,n,e))):vu(s,n,e)}return a.length?Promise.all(a).then(()=>n):n}}),Ed=N(`$ZodObject`,(e,t)=>{if(U.init(e,t),!Object.getOwnPropertyDescriptor(t,`shape`)?.get){let e=t.shape;Object.defineProperty(t,"shape",{get:()=>{let n={...e};return Object.defineProperty(t,"shape",{value:n}),n}})}let n=$o(()=>bu(t));F(e._zod,`propValues`,()=>{let e=t.shape,n={};for(let t in e){let r=e[t]._zod;if(r.values){n[t]??(n[t]=new Set);for(let e of r.values)n[t].add(e)}}return n});let r=fs,i=t.catchall,a;e._zod.parse=(t,o)=>{a??=n.value;let s=t.value;if(!r(s))return t.issues.push({expected:`object`,code:`invalid_type`,input:s,inst:e}),t;t.value={};let c=[],l=a.shape;for(let e of a.keys){let n=l[e],r=n._zod.optin===`optional`,i=n._zod.optout===`optional`,a=n._zod.run({value:s[e],issues:[]},o);a instanceof Promise?c.push(a.then(n=>yu(n,t,e,s,r,i))):yu(a,t,e,s,r,i)}return i?xu(c,s,t,o,n.value,e):c.length?Promise.all(c).then(()=>t):t}}),Dd=N(`$ZodObjectJIT`,(e,t)=>{Ed.init(e,t);let n=e._zod.parse,r=$o(()=>bu(t)),i=e=>{let t=new du([`shape`,`payload`,`ctx`]),n=r.value,i=e=>{let t=us(e);return`shape[${t}]._zod.run({ value: input[${t}], issues: [] }, ctx)`};t.write(`const input = payload.value;`);let a=Object.create(null),o=0;for(let e of n.keys)a[e]=`key_${o++}`;t.write(`const newResult = {};`);for(let r of n.keys){let n=a[r],o=us(r),s=e[r],c=s?._zod?.optin===`optional`,l=s?._zod?.optout===`optional`;t.write(`const ${n} = ${i(r)};`),c&&l?t.write(` if (${n}.issues.length) { if (${o} in input) { payload.issues = payload.issues.concat(${n}.issues.map(iss => ({ @@ -70,15 +70,15 @@ } } - `)}t.write(`payload.value = newResult;`),t.write(`return payload;`);let s=t.compile();return(t,n)=>s(e,t,n)},a,o=rs,s=!Po.jitless,c=s&&Fs.value,l=t.catchall,u;e._zod.parse=(d,f)=>{u??=r.value;let p=d.value;return o(p)?s&&c&&f?.async===!1&&f.jitless!==!0?(a||=i(t.shape),d=a(d,f),l?fu([],p,d,f,u,e):d):n(d,f):(d.issues.push({expected:`object`,code:`invalid_type`,input:p,inst:e}),d)}}),yd=N(`$ZodUnion`,(e,t)=>{U.init(e,t),F(e._zod,`optin`,()=>t.options.some(e=>e._zod.optin===`optional`)?`optional`:void 0),F(e._zod,`optout`,()=>t.options.some(e=>e._zod.optout===`optional`)?`optional`:void 0),F(e._zod,`values`,()=>{if(t.options.every(e=>e._zod.values))return new Set(t.options.flatMap(e=>Array.from(e._zod.values)))}),F(e._zod,`pattern`,()=>{if(t.options.every(e=>e._zod.pattern)){let e=t.options.map(e=>e._zod.pattern);return RegExp(`^(${e.map(e=>Ko(e.source)).join(`|`)})$`)}});let n=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(r,i)=>{if(n)return n(r,i);let a=!1,o=[];for(let e of t.options){let t=e._zod.run({value:r.value,issues:[]},i);if(t instanceof Promise)o.push(t),a=!0;else{if(t.issues.length===0)return t;o.push(t)}}return a?Promise.all(o).then(t=>pu(t,r,e,i)):pu(o,r,e,i)}}),bd=N(`$ZodXor`,(e,t)=>{yd.init(e,t),t.inclusive=!1;let n=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(r,i)=>{if(n)return n(r,i);let a=!1,o=[];for(let e of t.options){let t=e._zod.run({value:r.value,issues:[]},i);t instanceof Promise?(o.push(t),a=!0):o.push(t)}return a?Promise.all(o).then(t=>mu(t,r,e,i)):mu(o,r,e,i)}}),xd=N(`$ZodDiscriminatedUnion`,(e,t)=>{t.inclusive=!1,yd.init(e,t);let n=e._zod.parse;F(e._zod,`propValues`,()=>{let e={};for(let n of t.options){let r=n._zod.propValues;if(!r||Object.keys(r).length===0)throw Error(`Invalid discriminated union option at index "${t.options.indexOf(n)}"`);for(let[t,n]of Object.entries(r)){e[t]||(e[t]=new Set);for(let r of n)e[t].add(r)}}return e});let r=Wo(()=>{let e=t.options,n=new Map;for(let r of e){let e=r._zod.propValues?.[t.discriminator];if(!e||e.size===0)throw Error(`Invalid discriminated union option at index "${t.options.indexOf(r)}"`);for(let t of e){if(n.has(t))throw Error(`Duplicate discriminator value "${String(t)}"`);n.set(t,r)}}return n});e._zod.parse=(i,a)=>{let o=i.value;if(!rs(o))return i.issues.push({code:`invalid_type`,expected:`object`,input:o,inst:e}),i;let s=r.value.get(o?.[t.discriminator]);return s?s._zod.run(i,a):t.unionFallback||a.direction===`backward`?n(i,a):(i.issues.push({code:`invalid_union`,errors:[],note:`No matching discriminator`,discriminator:t.discriminator,options:Array.from(r.value.keys()),input:o,path:[t.discriminator],inst:e}),i)}}),Sd=N(`$ZodIntersection`,(e,t)=>{U.init(e,t),e._zod.parse=(e,n)=>{let r=e.value,i=t.left._zod.run({value:r,issues:[]},n),a=t.right._zod.run({value:r,issues:[]},n);return i instanceof Promise||a instanceof Promise?Promise.all([i,a]).then(([t,n])=>gu(e,t,n)):gu(e,i,a)}}),Cd=N(`$ZodTuple`,(e,t)=>{U.init(e,t);let n=t.items;e._zod.parse=(r,i)=>{let a=r.value;if(!Array.isArray(a))return r.issues.push({input:a,inst:e,expected:`tuple`,code:`invalid_type`}),r;r.value=[];let o=[],s=_u(n,`optin`),c=_u(n,`optout`);if(!t.rest){if(a.lengthn.length&&r.issues.push({code:`too_big`,maximum:n.length,inclusive:!0,input:a,inst:e,origin:`array`})}let l=Array(n.length);for(let e=0;e{l[e]=t})):l[e]=t}if(t.rest){let e=n.length-1,s=a.slice(n.length);for(let n of s){e++;let a=t.rest._zod.run({value:n,issues:[]},i);a instanceof Promise?o.push(a.then(t=>vu(t,r,e))):vu(a,r,e)}}return o.length?Promise.all(o).then(()=>yu(l,r,n,a,c)):yu(l,r,n,a,c)}}),wd=N(`$ZodRecord`,(e,t)=>{U.init(e,t),e._zod.parse=(n,r)=>{let i=n.value;if(!is(i))return n.issues.push({expected:`record`,code:`invalid_type`,input:i,inst:e}),n;let a=[],o=t.keyType._zod.values;if(o){n.value={};let s=new Set;for(let c of o)if(typeof c==`string`||typeof c==`number`||typeof c==`symbol`){s.add(typeof c==`number`?c.toString():c);let o=t.keyType._zod.run({value:c,issues:[]},r);if(o instanceof Promise)throw Error(`Async schemas not supported in object keys currently`);if(o.issues.length){n.issues.push({code:`invalid_key`,origin:`record`,issues:o.issues.map(e=>Ss(e,r,Oo())),input:c,path:[c],inst:e});continue}let l=o.value,u=t.valueType._zod.run({value:i[c],issues:[]},r);u instanceof Promise?a.push(u.then(e=>{e.issues.length&&n.issues.push(...bs(c,e.issues)),n.value[l]=e.value})):(u.issues.length&&n.issues.push(...bs(c,u.issues)),n.value[l]=u.value)}let c;for(let e in i)s.has(e)||(c??=[],c.push(e));c&&c.length>0&&n.issues.push({code:`unrecognized_keys`,input:i,inst:e,keys:c})}else{n.value={};for(let o of Reflect.ownKeys(i)){if(o===`__proto__`||!Object.prototype.propertyIsEnumerable.call(i,o))continue;let s=t.keyType._zod.run({value:o,issues:[]},r);if(s instanceof Promise)throw Error(`Async schemas not supported in object keys currently`);if(typeof o==`string`&&dl.test(o)&&s.issues.length){let e=t.keyType._zod.run({value:Number(o),issues:[]},r);if(e instanceof Promise)throw Error(`Async schemas not supported in object keys currently`);e.issues.length===0&&(s=e)}if(s.issues.length){t.mode===`loose`?n.value[o]=i[o]:n.issues.push({code:`invalid_key`,origin:`record`,issues:s.issues.map(e=>Ss(e,r,Oo())),input:o,path:[o],inst:e});continue}let c=t.valueType._zod.run({value:i[o],issues:[]},r);c instanceof Promise?a.push(c.then(e=>{e.issues.length&&n.issues.push(...bs(o,e.issues)),n.value[s.value]=e.value})):(c.issues.length&&n.issues.push(...bs(o,c.issues)),n.value[s.value]=c.value)}}return a.length?Promise.all(a).then(()=>n):n}}),Td=N(`$ZodMap`,(e,t)=>{U.init(e,t),e._zod.parse=(n,r)=>{let i=n.value;if(!(i instanceof Map))return n.issues.push({expected:`map`,code:`invalid_type`,input:i,inst:e}),n;let a=[];n.value=new Map;for(let[o,s]of i){let c=t.keyType._zod.run({value:o,issues:[]},r),l=t.valueType._zod.run({value:s,issues:[]},r);c instanceof Promise||l instanceof Promise?a.push(Promise.all([c,l]).then(([t,a])=>{bu(t,a,n,o,i,e,r)})):bu(c,l,n,o,i,e,r)}return a.length?Promise.all(a).then(()=>n):n}}),Ed=N(`$ZodSet`,(e,t)=>{U.init(e,t),e._zod.parse=(n,r)=>{let i=n.value;if(!(i instanceof Set))return n.issues.push({input:i,inst:e,expected:`set`,code:`invalid_type`}),n;let a=[];n.value=new Set;for(let e of i){let i=t.valueType._zod.run({value:e,issues:[]},r);i instanceof Promise?a.push(i.then(e=>xu(e,n))):xu(i,n)}return a.length?Promise.all(a).then(()=>n):n}}),Dd=N(`$ZodEnum`,(e,t)=>{U.init(e,t);let n=Ho(t.entries),r=new Set(n);e._zod.values=r,e._zod.pattern=RegExp(`^(${n.filter(e=>Ls.has(typeof e)).map(e=>typeof e==`string`?ss(e):e.toString()).join(`|`)})$`),e._zod.parse=(t,i)=>{let a=t.value;return r.has(a)||t.issues.push({code:`invalid_value`,values:n,input:a,inst:e}),t}}),W=N(`$ZodLiteral`,(e,t)=>{if(U.init(e,t),t.values.length===0)throw Error(`Cannot create literal schema with no valid values`);let n=new Set(t.values);e._zod.values=n,e._zod.pattern=RegExp(`^(${t.values.map(e=>typeof e==`string`?ss(e):e?ss(e.toString()):String(e)).join(`|`)})$`),e._zod.parse=(r,i)=>{let a=r.value;return n.has(a)||r.issues.push({code:`invalid_value`,values:t.values,input:a,inst:e}),r}}),Od=N(`$ZodFile`,(e,t)=>{U.init(e,t),e._zod.parse=(t,n)=>{let r=t.value;return r instanceof File||t.issues.push({expected:`file`,code:`invalid_type`,input:r,inst:e}),t}}),kd=N(`$ZodTransform`,(e,t)=>{U.init(e,t),e._zod.optin=`optional`,e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new No(e.constructor.name);let i=t.transform(n.value,n);if(r.async)return(i instanceof Promise?i:Promise.resolve(i)).then(e=>(n.value=e,n.fallback=!0,n));if(i instanceof Promise)throw new Mo;return n.value=i,n.fallback=!0,n}}),Ad=N(`$ZodOptional`,(e,t)=>{U.init(e,t),e._zod.optin=`optional`,e._zod.optout=`optional`,F(e._zod,`values`,()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),F(e._zod,`pattern`,()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${Ko(e.source)})?$`):void 0}),e._zod.parse=(e,n)=>{if(t.innerType._zod.optin===`optional`){let r=e.value,i=t.innerType._zod.run(e,n);return i instanceof Promise?i.then(e=>Su(e,r)):Su(i,r)}return e.value===void 0?e:t.innerType._zod.run(e,n)}}),jd=N(`$ZodExactOptional`,(e,t)=>{Ad.init(e,t),F(e._zod,`values`,()=>t.innerType._zod.values),F(e._zod,`pattern`,()=>t.innerType._zod.pattern),e._zod.parse=(e,n)=>t.innerType._zod.run(e,n)}),Md=N(`$ZodNullable`,(e,t)=>{U.init(e,t),F(e._zod,`optin`,()=>t.innerType._zod.optin),F(e._zod,`optout`,()=>t.innerType._zod.optout),F(e._zod,`pattern`,()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${Ko(e.source)}|null)$`):void 0}),F(e._zod,`values`,()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(e,n)=>e.value===null?e:t.innerType._zod.run(e,n)}),Nd=N(`$ZodDefault`,(e,t)=>{U.init(e,t),e._zod.optin=`optional`,F(e._zod,`values`,()=>t.innerType._zod.values),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);if(e.value===void 0)return e.value=t.defaultValue,e;let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(e=>Cu(e,t)):Cu(r,t)}}),Pd=N(`$ZodPrefault`,(e,t)=>{U.init(e,t),e._zod.optin=`optional`,F(e._zod,`values`,()=>t.innerType._zod.values),e._zod.parse=(e,n)=>(n.direction===`backward`||e.value===void 0&&(e.value=t.defaultValue),t.innerType._zod.run(e,n))}),Fd=N(`$ZodNonOptional`,(e,t)=>{U.init(e,t),F(e._zod,`values`,()=>{let e=t.innerType._zod.values;return e?new Set([...e].filter(e=>e!==void 0)):void 0}),e._zod.parse=(n,r)=>{let i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(t=>wu(t,e)):wu(i,e)}}),Id=N(`$ZodSuccess`,(e,t)=>{U.init(e,t),e._zod.parse=(e,n)=>{if(n.direction===`backward`)throw new No(`ZodSuccess`);let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(t=>(e.value=t.issues.length===0,e)):(e.value=r.issues.length===0,e)}}),Ld=N(`$ZodCatch`,(e,t)=>{U.init(e,t),e._zod.optin=`optional`,F(e._zod,`optout`,()=>t.innerType._zod.optout),F(e._zod,`values`,()=>t.innerType._zod.values),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(r=>(e.value=r.value,r.issues.length&&(e.value=t.catchValue({...e,error:{issues:r.issues.map(e=>Ss(e,n,Oo()))},input:e.value}),e.issues=[],e.fallback=!0),e)):(e.value=r.value,r.issues.length&&(e.value=t.catchValue({...e,error:{issues:r.issues.map(e=>Ss(e,n,Oo()))},input:e.value}),e.issues=[],e.fallback=!0),e)}}),Rd=N(`$ZodNaN`,(e,t)=>{U.init(e,t),e._zod.parse=(t,n)=>((typeof t.value!=`number`||!Number.isNaN(t.value))&&t.issues.push({input:t.value,inst:e,expected:`nan`,code:`invalid_type`}),t)}),zd=N(`$ZodPipe`,(e,t)=>{U.init(e,t),F(e._zod,`values`,()=>t.in._zod.values),F(e._zod,`optin`,()=>t.in._zod.optin),F(e._zod,`optout`,()=>t.out._zod.optout),F(e._zod,`propValues`,()=>t.in._zod.propValues),e._zod.parse=(e,n)=>{if(n.direction===`backward`){let r=t.out._zod.run(e,n);return r instanceof Promise?r.then(e=>Tu(e,t.in,n)):Tu(r,t.in,n)}let r=t.in._zod.run(e,n);return r instanceof Promise?r.then(e=>Tu(e,t.out,n)):Tu(r,t.out,n)}}),Bd=N(`$ZodCodec`,(e,t)=>{U.init(e,t),F(e._zod,`values`,()=>t.in._zod.values),F(e._zod,`optin`,()=>t.in._zod.optin),F(e._zod,`optout`,()=>t.out._zod.optout),F(e._zod,`propValues`,()=>t.in._zod.propValues),e._zod.parse=(e,n)=>{if((n.direction||`forward`)===`forward`){let r=t.in._zod.run(e,n);return r instanceof Promise?r.then(e=>Eu(e,t,n)):Eu(r,t,n)}{let r=t.out._zod.run(e,n);return r instanceof Promise?r.then(e=>Eu(e,t,n)):Eu(r,t,n)}}}),Vd=N(`$ZodPreprocess`,(e,t)=>{zd.init(e,t)}),Hd=N(`$ZodReadonly`,(e,t)=>{U.init(e,t),F(e._zod,`propValues`,()=>t.innerType._zod.propValues),F(e._zod,`values`,()=>t.innerType._zod.values),F(e._zod,`optin`,()=>t.innerType?._zod?.optin),F(e._zod,`optout`,()=>t.innerType?._zod?.optout),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(Ou):Ou(r)}}),Ud=N(`$ZodTemplateLiteral`,(e,t)=>{U.init(e,t);let n=[];for(let e of t.parts)if(typeof e==`object`&&e){if(!e._zod.pattern)throw Error(`Invalid template literal part, no pattern found: ${[...e._zod.traits].shift()}`);let t=e._zod.pattern instanceof RegExp?e._zod.pattern.source:e._zod.pattern;if(!t)throw Error(`Invalid template literal part: ${e._zod.traits}`);let r=+!!t.startsWith(`^`),i=t.endsWith(`$`)?t.length-1:t.length;n.push(t.slice(r,i))}else if(e===null||Rs.has(typeof e))n.push(ss(`${e}`));else throw Error(`Invalid template literal part: ${e}`);e._zod.pattern=RegExp(`^${n.join(``)}$`),e._zod.parse=(n,r)=>typeof n.value==`string`?(e._zod.pattern.lastIndex=0,e._zod.pattern.test(n.value)||n.issues.push({input:n.value,inst:e,code:`invalid_format`,format:t.format??`template_literal`,pattern:e._zod.pattern.source}),n):(n.issues.push({input:n.value,inst:e,expected:`string`,code:`invalid_type`}),n)}),Wd=N(`$ZodFunction`,(e,t)=>(U.init(e,t),e._def=t,e._zod.def=t,e.implement=t=>{if(typeof t!=`function`)throw Error(`implement() must be called with a function`);return function(...n){let r=e._def.input?Qs(e._def.input,n):n,i=Reflect.apply(t,this,r);return e._def.output?Qs(e._def.output,i):i}},e.implementAsync=t=>{if(typeof t!=`function`)throw Error(`implementAsync() must be called with a function`);return async function(...n){let r=e._def.input?await ec(e._def.input,n):n,i=await Reflect.apply(t,this,r);return e._def.output?await ec(e._def.output,i):i}},e._zod.parse=(t,n)=>typeof t.value==`function`?(t.value=e._def.output&&e._def.output._zod.def.type===`promise`?e.implementAsync(t.value):e.implement(t.value),t):(t.issues.push({code:`invalid_type`,expected:`function`,input:t.value,inst:e}),t),e.input=(...t)=>{let n=e.constructor;return Array.isArray(t[0])?new n({type:`function`,input:new Cd({type:`tuple`,items:t[0],rest:t[1]}),output:e._def.output}):new n({type:`function`,input:t[0],output:e._def.output})},e.output=t=>{let n=e.constructor;return new n({type:`function`,input:e._def.input,output:t})},e)),Gd=N(`$ZodPromise`,(e,t)=>{U.init(e,t),e._zod.parse=(e,n)=>Promise.resolve(e.value).then(e=>t.innerType._zod.run({value:e,issues:[]},n))}),Kd=N(`$ZodLazy`,(e,t)=>{U.init(e,t),F(e._zod,`innerType`,()=>{let e=t;return e._cachedInner||=t.getter(),e._cachedInner}),F(e._zod,`pattern`,()=>e._zod.innerType?._zod?.pattern),F(e._zod,`propValues`,()=>e._zod.innerType?._zod?.propValues),F(e._zod,`optin`,()=>e._zod.innerType?._zod?.optin??void 0),F(e._zod,`optout`,()=>e._zod.innerType?._zod?.optout??void 0),e._zod.parse=(t,n)=>e._zod.innerType._zod.run(t,n)}),qd=N(`$ZodCustom`,(e,t)=>{Fl.init(e,t),U.init(e,t),e._zod.parse=(e,t)=>e,e._zod.check=n=>{let r=n.value,i=t.fn(r);if(i instanceof Promise)return i.then(t=>ku(t,n,r,e));ku(i,n,r,e)}})}));function Yd(){return{localeError:Xd()}}var Xd,Zd=o((()=>{z(),Xd=()=>{let e={string:{unit:`حرف`,verb:`أن يحوي`},file:{unit:`بايت`,verb:`أن يحوي`},array:{unit:`عنصر`,verb:`أن يحوي`},set:{unit:`عنصر`,verb:`أن يحوي`}};function t(t){return e[t]??null}let n={regex:`مدخل`,email:`بريد إلكتروني`,url:`رابط`,emoji:`إيموجي`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`تاريخ ووقت بمعيار ISO`,date:`تاريخ بمعيار ISO`,time:`وقت بمعيار ISO`,duration:`مدة بمعيار ISO`,ipv4:`عنوان IPv4`,ipv6:`عنوان IPv6`,cidrv4:`مدى عناوين بصيغة IPv4`,cidrv6:`مدى عناوين بصيغة IPv6`,base64:`نَص بترميز base64-encoded`,base64url:`نَص بترميز base64url-encoded`,json_string:`نَص على هيئة JSON`,e164:`رقم هاتف بمعيار E.164`,jwt:`JWT`,template_literal:`مدخل`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=R(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`مدخلات غير مقبولة: يفترض إدخال instanceof ${e.expected}، ولكن تم إدخال ${i}`:`مدخلات غير مقبولة: يفترض إدخال ${t}، ولكن تم إدخال ${i}`}case`invalid_value`:return e.values.length===1?`مدخلات غير مقبولة: يفترض إدخال ${L(e.values[0])}`:`اختيار غير مقبول: يتوقع انتقاء أحد هذه الخيارات: ${P(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?` أكبر من اللازم: يفترض أن تكون ${e.origin??`القيمة`} ${n} ${e.maximum.toString()} ${r.unit??`عنصر`}`:`أكبر من اللازم: يفترض أن تكون ${e.origin??`القيمة`} ${n} ${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`أصغر من اللازم: يفترض لـ ${e.origin} أن يكون ${n} ${e.minimum.toString()} ${r.unit}`:`أصغر من اللازم: يفترض لـ ${e.origin} أن يكون ${n} ${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`نَص غير مقبول: يجب أن يبدأ بـ "${e.prefix}"`:t.format===`ends_with`?`نَص غير مقبول: يجب أن ينتهي بـ "${t.suffix}"`:t.format===`includes`?`نَص غير مقبول: يجب أن يتضمَّن "${t.includes}"`:t.format===`regex`?`نَص غير مقبول: يجب أن يطابق النمط ${t.pattern}`:`${n[t.format]??e.format} غير مقبول`}case`not_multiple_of`:return`رقم غير مقبول: يجب أن يكون من مضاعفات ${e.divisor}`;case`unrecognized_keys`:return`معرف${e.keys.length>1?`ات`:``} غريب${e.keys.length>1?`ة`:``}: ${P(e.keys,`، `)}`;case`invalid_key`:return`معرف غير مقبول في ${e.origin}`;case`invalid_union`:return`مدخل غير مقبول`;case`invalid_element`:return`مدخل غير مقبول في ${e.origin}`;default:return`مدخل غير مقبول`}}}}));function Qd(){return{localeError:$d()}}var $d,ef=o((()=>{z(),$d=()=>{let e={string:{unit:`simvol`,verb:`olmalıdır`},file:{unit:`bayt`,verb:`olmalıdır`},array:{unit:`element`,verb:`olmalıdır`},set:{unit:`element`,verb:`olmalıdır`}};function t(t){return e[t]??null}let n={regex:`input`,email:`email address`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO datetime`,date:`ISO date`,time:`ISO time`,duration:`ISO duration`,ipv4:`IPv4 address`,ipv6:`IPv6 address`,cidrv4:`IPv4 range`,cidrv6:`IPv6 range`,base64:`base64-encoded string`,base64url:`base64url-encoded string`,json_string:`JSON string`,e164:`E.164 number`,jwt:`JWT`,template_literal:`input`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=R(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Yanlış dəyər: gözlənilən instanceof ${e.expected}, daxil olan ${i}`:`Yanlış dəyər: gözlənilən ${t}, daxil olan ${i}`}case`invalid_value`:return e.values.length===1?`Yanlış dəyər: gözlənilən ${L(e.values[0])}`:`Yanlış seçim: aşağıdakılardan biri olmalıdır: ${P(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Çox böyük: gözlənilən ${e.origin??`dəyər`} ${n}${e.maximum.toString()} ${r.unit??`element`}`:`Çox böyük: gözlənilən ${e.origin??`dəyər`} ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Çox kiçik: gözlənilən ${e.origin} ${n}${e.minimum.toString()} ${r.unit}`:`Çox kiçik: gözlənilən ${e.origin} ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Yanlış mətn: "${t.prefix}" ilə başlamalıdır`:t.format===`ends_with`?`Yanlış mətn: "${t.suffix}" ilə bitməlidir`:t.format===`includes`?`Yanlış mətn: "${t.includes}" daxil olmalıdır`:t.format===`regex`?`Yanlış mətn: ${t.pattern} şablonuna uyğun olmalıdır`:`Yanlış ${n[t.format]??e.format}`}case`not_multiple_of`:return`Yanlış ədəd: ${e.divisor} ilə bölünə bilən olmalıdır`;case`unrecognized_keys`:return`Tanınmayan açar${e.keys.length>1?`lar`:``}: ${P(e.keys,`, `)}`;case`invalid_key`:return`${e.origin} daxilində yanlış açar`;case`invalid_union`:return`Yanlış dəyər`;case`invalid_element`:return`${e.origin} daxilində yanlış dəyər`;default:return`Yanlış dəyər`}}}}));function tf(e,t,n,r){let i=Math.abs(e),a=i%10,o=i%100;return o>=11&&o<=19?r:a===1?t:a>=2&&a<=4?n:r}function nf(){return{localeError:rf()}}var rf,af=o((()=>{z(),rf=()=>{let e={string:{unit:{one:`сімвал`,few:`сімвалы`,many:`сімвалаў`},verb:`мець`},array:{unit:{one:`элемент`,few:`элементы`,many:`элементаў`},verb:`мець`},set:{unit:{one:`элемент`,few:`элементы`,many:`элементаў`},verb:`мець`},file:{unit:{one:`байт`,few:`байты`,many:`байтаў`},verb:`мець`}};function t(t){return e[t]??null}let n={regex:`увод`,email:`email адрас`,url:`URL`,emoji:`эмодзі`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO дата і час`,date:`ISO дата`,time:`ISO час`,duration:`ISO працягласць`,ipv4:`IPv4 адрас`,ipv6:`IPv6 адрас`,cidrv4:`IPv4 дыяпазон`,cidrv6:`IPv6 дыяпазон`,base64:`радок у фармаце base64`,base64url:`радок у фармаце base64url`,json_string:`JSON радок`,e164:`нумар E.164`,jwt:`JWT`,template_literal:`увод`},r={nan:`NaN`,number:`лік`,array:`масіў`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=R(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Няправільны ўвод: чакаўся instanceof ${e.expected}, атрымана ${i}`:`Няправільны ўвод: чакаўся ${t}, атрымана ${i}`}case`invalid_value`:return e.values.length===1?`Няправільны ўвод: чакалася ${L(e.values[0])}`:`Няправільны варыянт: чакаўся адзін з ${P(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);if(r){let t=tf(Number(e.maximum),r.unit.one,r.unit.few,r.unit.many);return`Занадта вялікі: чакалася, што ${e.origin??`значэнне`} павінна ${r.verb} ${n}${e.maximum.toString()} ${t}`}return`Занадта вялікі: чакалася, што ${e.origin??`значэнне`} павінна быць ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);if(r){let t=tf(Number(e.minimum),r.unit.one,r.unit.few,r.unit.many);return`Занадта малы: чакалася, што ${e.origin} павінна ${r.verb} ${n}${e.minimum.toString()} ${t}`}return`Занадта малы: чакалася, што ${e.origin} павінна быць ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Няправільны радок: павінен пачынацца з "${t.prefix}"`:t.format===`ends_with`?`Няправільны радок: павінен заканчвацца на "${t.suffix}"`:t.format===`includes`?`Няправільны радок: павінен змяшчаць "${t.includes}"`:t.format===`regex`?`Няправільны радок: павінен адпавядаць шаблону ${t.pattern}`:`Няправільны ${n[t.format]??e.format}`}case`not_multiple_of`:return`Няправільны лік: павінен быць кратным ${e.divisor}`;case`unrecognized_keys`:return`Нераспазнаны ${e.keys.length>1?`ключы`:`ключ`}: ${P(e.keys,`, `)}`;case`invalid_key`:return`Няправільны ключ у ${e.origin}`;case`invalid_union`:return`Няправільны ўвод`;case`invalid_element`:return`Няправільнае значэнне ў ${e.origin}`;default:return`Няправільны ўвод`}}}}));function of(){return{localeError:sf()}}var sf,cf=o((()=>{z(),sf=()=>{let e={string:{unit:`символа`,verb:`да съдържа`},file:{unit:`байта`,verb:`да съдържа`},array:{unit:`елемента`,verb:`да съдържа`},set:{unit:`елемента`,verb:`да съдържа`}};function t(t){return e[t]??null}let n={regex:`вход`,email:`имейл адрес`,url:`URL`,emoji:`емоджи`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO време`,date:`ISO дата`,time:`ISO време`,duration:`ISO продължителност`,ipv4:`IPv4 адрес`,ipv6:`IPv6 адрес`,cidrv4:`IPv4 диапазон`,cidrv6:`IPv6 диапазон`,base64:`base64-кодиран низ`,base64url:`base64url-кодиран низ`,json_string:`JSON низ`,e164:`E.164 номер`,jwt:`JWT`,template_literal:`вход`},r={nan:`NaN`,number:`число`,array:`масив`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=R(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Невалиден вход: очакван instanceof ${e.expected}, получен ${i}`:`Невалиден вход: очакван ${t}, получен ${i}`}case`invalid_value`:return e.values.length===1?`Невалиден вход: очакван ${L(e.values[0])}`:`Невалидна опция: очаквано едно от ${P(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Твърде голямо: очаква се ${e.origin??`стойност`} да съдържа ${n}${e.maximum.toString()} ${r.unit??`елемента`}`:`Твърде голямо: очаква се ${e.origin??`стойност`} да бъде ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Твърде малко: очаква се ${e.origin} да съдържа ${n}${e.minimum.toString()} ${r.unit}`:`Твърде малко: очаква се ${e.origin} да бъде ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;if(t.format===`starts_with`)return`Невалиден низ: трябва да започва с "${t.prefix}"`;if(t.format===`ends_with`)return`Невалиден низ: трябва да завършва с "${t.suffix}"`;if(t.format===`includes`)return`Невалиден низ: трябва да включва "${t.includes}"`;if(t.format===`regex`)return`Невалиден низ: трябва да съвпада с ${t.pattern}`;let r=`Невалиден`;return t.format===`emoji`&&(r=`Невалидно`),t.format===`datetime`&&(r=`Невалидно`),t.format===`date`&&(r=`Невалидна`),t.format===`time`&&(r=`Невалидно`),t.format===`duration`&&(r=`Невалидна`),`${r} ${n[t.format]??e.format}`}case`not_multiple_of`:return`Невалидно число: трябва да бъде кратно на ${e.divisor}`;case`unrecognized_keys`:return`Неразпознат${e.keys.length>1?`и`:``} ключ${e.keys.length>1?`ове`:``}: ${P(e.keys,`, `)}`;case`invalid_key`:return`Невалиден ключ в ${e.origin}`;case`invalid_union`:return`Невалиден вход`;case`invalid_element`:return`Невалидна стойност в ${e.origin}`;default:return`Невалиден вход`}}}}));function lf(){return{localeError:uf()}}var uf,df=o((()=>{z(),uf=()=>{let e={string:{unit:`caràcters`,verb:`contenir`},file:{unit:`bytes`,verb:`contenir`},array:{unit:`elements`,verb:`contenir`},set:{unit:`elements`,verb:`contenir`}};function t(t){return e[t]??null}let n={regex:`entrada`,email:`adreça electrònica`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`data i hora ISO`,date:`data ISO`,time:`hora ISO`,duration:`durada ISO`,ipv4:`adreça IPv4`,ipv6:`adreça IPv6`,cidrv4:`rang IPv4`,cidrv6:`rang IPv6`,base64:`cadena codificada en base64`,base64url:`cadena codificada en base64url`,json_string:`cadena JSON`,e164:`número E.164`,jwt:`JWT`,template_literal:`entrada`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=R(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Tipus invàlid: s'esperava instanceof ${e.expected}, s'ha rebut ${i}`:`Tipus invàlid: s'esperava ${t}, s'ha rebut ${i}`}case`invalid_value`:return e.values.length===1?`Valor invàlid: s'esperava ${L(e.values[0])}`:`Opció invàlida: s'esperava una de ${P(e.values,` o `)}`;case`too_big`:{let n=e.inclusive?`com a màxim`:`menys de`,r=t(e.origin);return r?`Massa gran: s'esperava que ${e.origin??`el valor`} contingués ${n} ${e.maximum.toString()} ${r.unit??`elements`}`:`Massa gran: s'esperava que ${e.origin??`el valor`} fos ${n} ${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`com a mínim`:`més de`,r=t(e.origin);return r?`Massa petit: s'esperava que ${e.origin} contingués ${n} ${e.minimum.toString()} ${r.unit}`:`Massa petit: s'esperava que ${e.origin} fos ${n} ${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Format invàlid: ha de començar amb "${t.prefix}"`:t.format===`ends_with`?`Format invàlid: ha d'acabar amb "${t.suffix}"`:t.format===`includes`?`Format invàlid: ha d'incloure "${t.includes}"`:t.format===`regex`?`Format invàlid: ha de coincidir amb el patró ${t.pattern}`:`Format invàlid per a ${n[t.format]??e.format}`}case`not_multiple_of`:return`Número invàlid: ha de ser múltiple de ${e.divisor}`;case`unrecognized_keys`:return`Clau${e.keys.length>1?`s`:``} no reconeguda${e.keys.length>1?`s`:``}: ${P(e.keys,`, `)}`;case`invalid_key`:return`Clau invàlida a ${e.origin}`;case`invalid_union`:return`Entrada invàlida`;case`invalid_element`:return`Element invàlid a ${e.origin}`;default:return`Entrada invàlida`}}}}));function ff(){return{localeError:pf()}}var pf,mf=o((()=>{z(),pf=()=>{let e={string:{unit:`znaků`,verb:`mít`},file:{unit:`bajtů`,verb:`mít`},array:{unit:`prvků`,verb:`mít`},set:{unit:`prvků`,verb:`mít`}};function t(t){return e[t]??null}let n={regex:`regulární výraz`,email:`e-mailová adresa`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`datum a čas ve formátu ISO`,date:`datum ve formátu ISO`,time:`čas ve formátu ISO`,duration:`doba trvání ISO`,ipv4:`IPv4 adresa`,ipv6:`IPv6 adresa`,cidrv4:`rozsah IPv4`,cidrv6:`rozsah IPv6`,base64:`řetězec zakódovaný ve formátu base64`,base64url:`řetězec zakódovaný ve formátu base64url`,json_string:`řetězec ve formátu JSON`,e164:`číslo E.164`,jwt:`JWT`,template_literal:`vstup`},r={nan:`NaN`,number:`číslo`,string:`řetězec`,function:`funkce`,array:`pole`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=R(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Neplatný vstup: očekáváno instanceof ${e.expected}, obdrženo ${i}`:`Neplatný vstup: očekáváno ${t}, obdrženo ${i}`}case`invalid_value`:return e.values.length===1?`Neplatný vstup: očekáváno ${L(e.values[0])}`:`Neplatná možnost: očekávána jedna z hodnot ${P(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Hodnota je příliš velká: ${e.origin??`hodnota`} musí mít ${n}${e.maximum.toString()} ${r.unit??`prvků`}`:`Hodnota je příliš velká: ${e.origin??`hodnota`} musí být ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Hodnota je příliš malá: ${e.origin??`hodnota`} musí mít ${n}${e.minimum.toString()} ${r.unit??`prvků`}`:`Hodnota je příliš malá: ${e.origin??`hodnota`} musí být ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Neplatný řetězec: musí začínat na "${t.prefix}"`:t.format===`ends_with`?`Neplatný řetězec: musí končit na "${t.suffix}"`:t.format===`includes`?`Neplatný řetězec: musí obsahovat "${t.includes}"`:t.format===`regex`?`Neplatný řetězec: musí odpovídat vzoru ${t.pattern}`:`Neplatný formát ${n[t.format]??e.format}`}case`not_multiple_of`:return`Neplatné číslo: musí být násobkem ${e.divisor}`;case`unrecognized_keys`:return`Neznámé klíče: ${P(e.keys,`, `)}`;case`invalid_key`:return`Neplatný klíč v ${e.origin}`;case`invalid_union`:return`Neplatný vstup`;case`invalid_element`:return`Neplatná hodnota v ${e.origin}`;default:return`Neplatný vstup`}}}}));function hf(){return{localeError:gf()}}var gf,_f=o((()=>{z(),gf=()=>{let e={string:{unit:`tegn`,verb:`havde`},file:{unit:`bytes`,verb:`havde`},array:{unit:`elementer`,verb:`indeholdt`},set:{unit:`elementer`,verb:`indeholdt`}};function t(t){return e[t]??null}let n={regex:`input`,email:`e-mailadresse`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO dato- og klokkeslæt`,date:`ISO-dato`,time:`ISO-klokkeslæt`,duration:`ISO-varighed`,ipv4:`IPv4-område`,ipv6:`IPv6-område`,cidrv4:`IPv4-spektrum`,cidrv6:`IPv6-spektrum`,base64:`base64-kodet streng`,base64url:`base64url-kodet streng`,json_string:`JSON-streng`,e164:`E.164-nummer`,jwt:`JWT`,template_literal:`input`},r={nan:`NaN`,string:`streng`,number:`tal`,boolean:`boolean`,array:`liste`,object:`objekt`,set:`sæt`,file:`fil`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=R(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Ugyldigt input: forventede instanceof ${e.expected}, fik ${i}`:`Ugyldigt input: forventede ${t}, fik ${i}`}case`invalid_value`:return e.values.length===1?`Ugyldig værdi: forventede ${L(e.values[0])}`:`Ugyldigt valg: forventede en af følgende ${P(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,i=t(e.origin),a=r[e.origin]??e.origin;return i?`For stor: forventede ${a??`value`} ${i.verb} ${n} ${e.maximum.toString()} ${i.unit??`elementer`}`:`For stor: forventede ${a??`value`} havde ${n} ${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,i=t(e.origin),a=r[e.origin]??e.origin;return i?`For lille: forventede ${a} ${i.verb} ${n} ${e.minimum.toString()} ${i.unit}`:`For lille: forventede ${a} havde ${n} ${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Ugyldig streng: skal starte med "${t.prefix}"`:t.format===`ends_with`?`Ugyldig streng: skal ende med "${t.suffix}"`:t.format===`includes`?`Ugyldig streng: skal indeholde "${t.includes}"`:t.format===`regex`?`Ugyldig streng: skal matche mønsteret ${t.pattern}`:`Ugyldig ${n[t.format]??e.format}`}case`not_multiple_of`:return`Ugyldigt tal: skal være deleligt med ${e.divisor}`;case`unrecognized_keys`:return`${e.keys.length>1?`Ukendte nøgler`:`Ukendt nøgle`}: ${P(e.keys,`, `)}`;case`invalid_key`:return`Ugyldig nøgle i ${e.origin}`;case`invalid_union`:return`Ugyldigt input: matcher ingen af de tilladte typer`;case`invalid_element`:return`Ugyldig værdi i ${e.origin}`;default:return`Ugyldigt input`}}}}));function vf(){return{localeError:yf()}}var yf,bf=o((()=>{z(),yf=()=>{let e={string:{unit:`Zeichen`,verb:`zu haben`},file:{unit:`Bytes`,verb:`zu haben`},array:{unit:`Elemente`,verb:`zu haben`},set:{unit:`Elemente`,verb:`zu haben`}};function t(t){return e[t]??null}let n={regex:`Eingabe`,email:`E-Mail-Adresse`,url:`URL`,emoji:`Emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO-Datum und -Uhrzeit`,date:`ISO-Datum`,time:`ISO-Uhrzeit`,duration:`ISO-Dauer`,ipv4:`IPv4-Adresse`,ipv6:`IPv6-Adresse`,cidrv4:`IPv4-Bereich`,cidrv6:`IPv6-Bereich`,base64:`Base64-codierter String`,base64url:`Base64-URL-codierter String`,json_string:`JSON-String`,e164:`E.164-Nummer`,jwt:`JWT`,template_literal:`Eingabe`},r={nan:`NaN`,number:`Zahl`,array:`Array`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=R(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Ungültige Eingabe: erwartet instanceof ${e.expected}, erhalten ${i}`:`Ungültige Eingabe: erwartet ${t}, erhalten ${i}`}case`invalid_value`:return e.values.length===1?`Ungültige Eingabe: erwartet ${L(e.values[0])}`:`Ungültige Option: erwartet eine von ${P(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Zu groß: erwartet, dass ${e.origin??`Wert`} ${n}${e.maximum.toString()} ${r.unit??`Elemente`} hat`:`Zu groß: erwartet, dass ${e.origin??`Wert`} ${n}${e.maximum.toString()} ist`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Zu klein: erwartet, dass ${e.origin} ${n}${e.minimum.toString()} ${r.unit} hat`:`Zu klein: erwartet, dass ${e.origin} ${n}${e.minimum.toString()} ist`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Ungültiger String: muss mit "${t.prefix}" beginnen`:t.format===`ends_with`?`Ungültiger String: muss mit "${t.suffix}" enden`:t.format===`includes`?`Ungültiger String: muss "${t.includes}" enthalten`:t.format===`regex`?`Ungültiger String: muss dem Muster ${t.pattern} entsprechen`:`Ungültig: ${n[t.format]??e.format}`}case`not_multiple_of`:return`Ungültige Zahl: muss ein Vielfaches von ${e.divisor} sein`;case`unrecognized_keys`:return`${e.keys.length>1?`Unbekannte Schlüssel`:`Unbekannter Schlüssel`}: ${P(e.keys,`, `)}`;case`invalid_key`:return`Ungültiger Schlüssel in ${e.origin}`;case`invalid_union`:return`Ungültige Eingabe`;case`invalid_element`:return`Ungültiger Wert in ${e.origin}`;default:return`Ungültige Eingabe`}}}}));function xf(){return{localeError:Sf()}}var Sf,Cf=o((()=>{z(),Sf=()=>{let e={string:{unit:`χαρακτήρες`,verb:`να έχει`},file:{unit:`bytes`,verb:`να έχει`},array:{unit:`στοιχεία`,verb:`να έχει`},set:{unit:`στοιχεία`,verb:`να έχει`},map:{unit:`καταχωρήσεις`,verb:`να έχει`}};function t(t){return e[t]??null}let n={regex:`είσοδος`,email:`διεύθυνση email`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO ημερομηνία και ώρα`,date:`ISO ημερομηνία`,time:`ISO ώρα`,duration:`ISO διάρκεια`,ipv4:`διεύθυνση IPv4`,ipv6:`διεύθυνση IPv6`,mac:`διεύθυνση MAC`,cidrv4:`εύρος IPv4`,cidrv6:`εύρος IPv6`,base64:`συμβολοσειρά κωδικοποιημένη σε base64`,base64url:`συμβολοσειρά κωδικοποιημένη σε base64url`,json_string:`συμβολοσειρά JSON`,e164:`αριθμός E.164`,jwt:`JWT`,template_literal:`είσοδος`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=R(e.input),i=r[n]??n;return typeof e.expected==`string`&&/^[A-Z]/.test(e.expected)?`Μη έγκυρη είσοδος: αναμενόταν instanceof ${e.expected}, λήφθηκε ${i}`:`Μη έγκυρη είσοδος: αναμενόταν ${t}, λήφθηκε ${i}`}case`invalid_value`:return e.values.length===1?`Μη έγκυρη είσοδος: αναμενόταν ${L(e.values[0])}`:`Μη έγκυρη επιλογή: αναμενόταν ένα από ${P(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Πολύ μεγάλο: αναμενόταν ${e.origin??`τιμή`} να έχει ${n}${e.maximum.toString()} ${r.unit??`στοιχεία`}`:`Πολύ μεγάλο: αναμενόταν ${e.origin??`τιμή`} να είναι ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Πολύ μικρό: αναμενόταν ${e.origin} να έχει ${n}${e.minimum.toString()} ${r.unit}`:`Πολύ μικρό: αναμενόταν ${e.origin} να είναι ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Μη έγκυρη συμβολοσειρά: πρέπει να ξεκινά με "${t.prefix}"`:t.format===`ends_with`?`Μη έγκυρη συμβολοσειρά: πρέπει να τελειώνει με "${t.suffix}"`:t.format===`includes`?`Μη έγκυρη συμβολοσειρά: πρέπει να περιέχει "${t.includes}"`:t.format===`regex`?`Μη έγκυρη συμβολοσειρά: πρέπει να ταιριάζει με το μοτίβο ${t.pattern}`:`Μη έγκυρο: ${n[t.format]??e.format}`}case`not_multiple_of`:return`Μη έγκυρος αριθμός: πρέπει να είναι πολλαπλάσιο του ${e.divisor}`;case`unrecognized_keys`:return`Άγνωστ${e.keys.length>1?`α`:`ο`} κλειδ${e.keys.length>1?`ιά`:`ί`}: ${P(e.keys,`, `)}`;case`invalid_key`:return`Μη έγκυρο κλειδί στο ${e.origin}`;case`invalid_union`:return`Μη έγκυρη είσοδος`;case`invalid_element`:return`Μη έγκυρη τιμή στο ${e.origin}`;default:return`Μη έγκυρη είσοδος`}}}}));function wf(){return{localeError:Tf()}}var Tf,Ef=o((()=>{z(),Tf=()=>{let e={string:{unit:`characters`,verb:`to have`},file:{unit:`bytes`,verb:`to have`},array:{unit:`items`,verb:`to have`},set:{unit:`items`,verb:`to have`},map:{unit:`entries`,verb:`to have`}};function t(t){return e[t]??null}let n={regex:`input`,email:`email address`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO datetime`,date:`ISO date`,time:`ISO time`,duration:`ISO duration`,ipv4:`IPv4 address`,ipv6:`IPv6 address`,mac:`MAC address`,cidrv4:`IPv4 range`,cidrv6:`IPv6 range`,base64:`base64-encoded string`,base64url:`base64url-encoded string`,json_string:`JSON string`,e164:`E.164 number`,jwt:`JWT`,template_literal:`input`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=R(e.input);return`Invalid input: expected ${t}, received ${r[n]??n}`}case`invalid_value`:return e.values.length===1?`Invalid input: expected ${L(e.values[0])}`:`Invalid option: expected one of ${P(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Too big: expected ${e.origin??`value`} to have ${n}${e.maximum.toString()} ${r.unit??`elements`}`:`Too big: expected ${e.origin??`value`} to be ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Too small: expected ${e.origin} to have ${n}${e.minimum.toString()} ${r.unit}`:`Too small: expected ${e.origin} to be ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Invalid string: must start with "${t.prefix}"`:t.format===`ends_with`?`Invalid string: must end with "${t.suffix}"`:t.format===`includes`?`Invalid string: must include "${t.includes}"`:t.format===`regex`?`Invalid string: must match pattern ${t.pattern}`:`Invalid ${n[t.format]??e.format}`}case`not_multiple_of`:return`Invalid number: must be a multiple of ${e.divisor}`;case`unrecognized_keys`:return`Unrecognized key${e.keys.length>1?`s`:``}: ${P(e.keys,`, `)}`;case`invalid_key`:return`Invalid key in ${e.origin}`;case`invalid_union`:return e.options&&Array.isArray(e.options)&&e.options.length>0?`Invalid discriminator value. Expected ${e.options.map(e=>`'${e}'`).join(` | `)}`:`Invalid input`;case`invalid_element`:return`Invalid value in ${e.origin}`;default:return`Invalid input`}}}}));function Df(){return{localeError:Of()}}var Of,kf=o((()=>{z(),Of=()=>{let e={string:{unit:`karaktrojn`,verb:`havi`},file:{unit:`bajtojn`,verb:`havi`},array:{unit:`elementojn`,verb:`havi`},set:{unit:`elementojn`,verb:`havi`}};function t(t){return e[t]??null}let n={regex:`enigo`,email:`retadreso`,url:`URL`,emoji:`emoĝio`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO-datotempo`,date:`ISO-dato`,time:`ISO-tempo`,duration:`ISO-daŭro`,ipv4:`IPv4-adreso`,ipv6:`IPv6-adreso`,cidrv4:`IPv4-rango`,cidrv6:`IPv6-rango`,base64:`64-ume kodita karaktraro`,base64url:`URL-64-ume kodita karaktraro`,json_string:`JSON-karaktraro`,e164:`E.164-nombro`,jwt:`JWT`,template_literal:`enigo`},r={nan:`NaN`,number:`nombro`,array:`tabelo`,null:`senvalora`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=R(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Nevalida enigo: atendiĝis instanceof ${e.expected}, riceviĝis ${i}`:`Nevalida enigo: atendiĝis ${t}, riceviĝis ${i}`}case`invalid_value`:return e.values.length===1?`Nevalida enigo: atendiĝis ${L(e.values[0])}`:`Nevalida opcio: atendiĝis unu el ${P(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Tro granda: atendiĝis ke ${e.origin??`valoro`} havu ${n}${e.maximum.toString()} ${r.unit??`elementojn`}`:`Tro granda: atendiĝis ke ${e.origin??`valoro`} havu ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Tro malgranda: atendiĝis ke ${e.origin} havu ${n}${e.minimum.toString()} ${r.unit}`:`Tro malgranda: atendiĝis ke ${e.origin} estu ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Nevalida karaktraro: devas komenciĝi per "${t.prefix}"`:t.format===`ends_with`?`Nevalida karaktraro: devas finiĝi per "${t.suffix}"`:t.format===`includes`?`Nevalida karaktraro: devas inkluzivi "${t.includes}"`:t.format===`regex`?`Nevalida karaktraro: devas kongrui kun la modelo ${t.pattern}`:`Nevalida ${n[t.format]??e.format}`}case`not_multiple_of`:return`Nevalida nombro: devas esti oblo de ${e.divisor}`;case`unrecognized_keys`:return`Nekonata${e.keys.length>1?`j`:``} ŝlosilo${e.keys.length>1?`j`:``}: ${P(e.keys,`, `)}`;case`invalid_key`:return`Nevalida ŝlosilo en ${e.origin}`;case`invalid_union`:return`Nevalida enigo`;case`invalid_element`:return`Nevalida valoro en ${e.origin}`;default:return`Nevalida enigo`}}}}));function Af(){return{localeError:jf()}}var jf,Mf=o((()=>{z(),jf=()=>{let e={string:{unit:`caracteres`,verb:`tener`},file:{unit:`bytes`,verb:`tener`},array:{unit:`elementos`,verb:`tener`},set:{unit:`elementos`,verb:`tener`}};function t(t){return e[t]??null}let n={regex:`entrada`,email:`dirección de correo electrónico`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`fecha y hora ISO`,date:`fecha ISO`,time:`hora ISO`,duration:`duración ISO`,ipv4:`dirección IPv4`,ipv6:`dirección IPv6`,cidrv4:`rango IPv4`,cidrv6:`rango IPv6`,base64:`cadena codificada en base64`,base64url:`URL codificada en base64`,json_string:`cadena JSON`,e164:`número E.164`,jwt:`JWT`,template_literal:`entrada`},r={nan:`NaN`,string:`texto`,number:`número`,boolean:`booleano`,array:`arreglo`,object:`objeto`,set:`conjunto`,file:`archivo`,date:`fecha`,bigint:`número grande`,symbol:`símbolo`,undefined:`indefinido`,null:`nulo`,function:`función`,map:`mapa`,record:`registro`,tuple:`tupla`,enum:`enumeración`,union:`unión`,literal:`literal`,promise:`promesa`,void:`vacío`,never:`nunca`,unknown:`desconocido`,any:`cualquiera`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=R(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Entrada inválida: se esperaba instanceof ${e.expected}, recibido ${i}`:`Entrada inválida: se esperaba ${t}, recibido ${i}`}case`invalid_value`:return e.values.length===1?`Entrada inválida: se esperaba ${L(e.values[0])}`:`Opción inválida: se esperaba una de ${P(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,i=t(e.origin),a=r[e.origin]??e.origin;return i?`Demasiado grande: se esperaba que ${a??`valor`} tuviera ${n}${e.maximum.toString()} ${i.unit??`elementos`}`:`Demasiado grande: se esperaba que ${a??`valor`} fuera ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,i=t(e.origin),a=r[e.origin]??e.origin;return i?`Demasiado pequeño: se esperaba que ${a} tuviera ${n}${e.minimum.toString()} ${i.unit}`:`Demasiado pequeño: se esperaba que ${a} fuera ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Cadena inválida: debe comenzar con "${t.prefix}"`:t.format===`ends_with`?`Cadena inválida: debe terminar en "${t.suffix}"`:t.format===`includes`?`Cadena inválida: debe incluir "${t.includes}"`:t.format===`regex`?`Cadena inválida: debe coincidir con el patrón ${t.pattern}`:`Inválido ${n[t.format]??e.format}`}case`not_multiple_of`:return`Número inválido: debe ser múltiplo de ${e.divisor}`;case`unrecognized_keys`:return`Llave${e.keys.length>1?`s`:``} desconocida${e.keys.length>1?`s`:``}: ${P(e.keys,`, `)}`;case`invalid_key`:return`Llave inválida en ${r[e.origin]??e.origin}`;case`invalid_union`:return`Entrada inválida`;case`invalid_element`:return`Valor inválido en ${r[e.origin]??e.origin}`;default:return`Entrada inválida`}}}}));function Nf(){return{localeError:Pf()}}var Pf,Ff=o((()=>{z(),Pf=()=>{let e={string:{unit:`کاراکتر`,verb:`داشته باشد`},file:{unit:`بایت`,verb:`داشته باشد`},array:{unit:`آیتم`,verb:`داشته باشد`},set:{unit:`آیتم`,verb:`داشته باشد`}};function t(t){return e[t]??null}let n={regex:`ورودی`,email:`آدرس ایمیل`,url:`URL`,emoji:`ایموجی`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`تاریخ و زمان ایزو`,date:`تاریخ ایزو`,time:`زمان ایزو`,duration:`مدت زمان ایزو`,ipv4:`IPv4 آدرس`,ipv6:`IPv6 آدرس`,cidrv4:`IPv4 دامنه`,cidrv6:`IPv6 دامنه`,base64:`base64-encoded رشته`,base64url:`base64url-encoded رشته`,json_string:`JSON رشته`,e164:`E.164 عدد`,jwt:`JWT`,template_literal:`ورودی`},r={nan:`NaN`,number:`عدد`,array:`آرایه`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=R(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`ورودی نامعتبر: می‌بایست instanceof ${e.expected} می‌بود، ${i} دریافت شد`:`ورودی نامعتبر: می‌بایست ${t} می‌بود، ${i} دریافت شد`}case`invalid_value`:return e.values.length===1?`ورودی نامعتبر: می‌بایست ${L(e.values[0])} می‌بود`:`گزینه نامعتبر: می‌بایست یکی از ${P(e.values,`|`)} می‌بود`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`خیلی بزرگ: ${e.origin??`مقدار`} باید ${n}${e.maximum.toString()} ${r.unit??`عنصر`} باشد`:`خیلی بزرگ: ${e.origin??`مقدار`} باید ${n}${e.maximum.toString()} باشد`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`خیلی کوچک: ${e.origin} باید ${n}${e.minimum.toString()} ${r.unit} باشد`:`خیلی کوچک: ${e.origin} باید ${n}${e.minimum.toString()} باشد`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`رشته نامعتبر: باید با "${t.prefix}" شروع شود`:t.format===`ends_with`?`رشته نامعتبر: باید با "${t.suffix}" تمام شود`:t.format===`includes`?`رشته نامعتبر: باید شامل "${t.includes}" باشد`:t.format===`regex`?`رشته نامعتبر: باید با الگوی ${t.pattern} مطابقت داشته باشد`:`${n[t.format]??e.format} نامعتبر`}case`not_multiple_of`:return`عدد نامعتبر: باید مضرب ${e.divisor} باشد`;case`unrecognized_keys`:return`کلید${e.keys.length>1?`های`:``} ناشناس: ${P(e.keys,`, `)}`;case`invalid_key`:return`کلید ناشناس در ${e.origin}`;case`invalid_union`:return`ورودی نامعتبر`;case`invalid_element`:return`مقدار نامعتبر در ${e.origin}`;default:return`ورودی نامعتبر`}}}}));function If(){return{localeError:Lf()}}var Lf,Rf=o((()=>{z(),Lf=()=>{let e={string:{unit:`merkkiä`,subject:`merkkijonon`},file:{unit:`tavua`,subject:`tiedoston`},array:{unit:`alkiota`,subject:`listan`},set:{unit:`alkiota`,subject:`joukon`},number:{unit:``,subject:`luvun`},bigint:{unit:``,subject:`suuren kokonaisluvun`},int:{unit:``,subject:`kokonaisluvun`},date:{unit:``,subject:`päivämäärän`}};function t(t){return e[t]??null}let n={regex:`säännöllinen lauseke`,email:`sähköpostiosoite`,url:`URL-osoite`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO-aikaleima`,date:`ISO-päivämäärä`,time:`ISO-aika`,duration:`ISO-kesto`,ipv4:`IPv4-osoite`,ipv6:`IPv6-osoite`,cidrv4:`IPv4-alue`,cidrv6:`IPv6-alue`,base64:`base64-koodattu merkkijono`,base64url:`base64url-koodattu merkkijono`,json_string:`JSON-merkkijono`,e164:`E.164-luku`,jwt:`JWT`,template_literal:`templaattimerkkijono`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=R(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Virheellinen tyyppi: odotettiin instanceof ${e.expected}, oli ${i}`:`Virheellinen tyyppi: odotettiin ${t}, oli ${i}`}case`invalid_value`:return e.values.length===1?`Virheellinen syöte: täytyy olla ${L(e.values[0])}`:`Virheellinen valinta: täytyy olla yksi seuraavista: ${P(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Liian suuri: ${r.subject} täytyy olla ${n}${e.maximum.toString()} ${r.unit}`.trim():`Liian suuri: arvon täytyy olla ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Liian pieni: ${r.subject} täytyy olla ${n}${e.minimum.toString()} ${r.unit}`.trim():`Liian pieni: arvon täytyy olla ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Virheellinen syöte: täytyy alkaa "${t.prefix}"`:t.format===`ends_with`?`Virheellinen syöte: täytyy loppua "${t.suffix}"`:t.format===`includes`?`Virheellinen syöte: täytyy sisältää "${t.includes}"`:t.format===`regex`?`Virheellinen syöte: täytyy vastata säännöllistä lauseketta ${t.pattern}`:`Virheellinen ${n[t.format]??e.format}`}case`not_multiple_of`:return`Virheellinen luku: täytyy olla luvun ${e.divisor} monikerta`;case`unrecognized_keys`:return`${e.keys.length>1?`Tuntemattomat avaimet`:`Tuntematon avain`}: ${P(e.keys,`, `)}`;case`invalid_key`:return`Virheellinen avain tietueessa`;case`invalid_union`:return`Virheellinen unioni`;case`invalid_element`:return`Virheellinen arvo joukossa`;default:return`Virheellinen syöte`}}}}));function zf(){return{localeError:Bf()}}var Bf,Vf=o((()=>{z(),Bf=()=>{let e={string:{unit:`caractères`,verb:`avoir`},file:{unit:`octets`,verb:`avoir`},array:{unit:`éléments`,verb:`avoir`},set:{unit:`éléments`,verb:`avoir`}};function t(t){return e[t]??null}let n={regex:`entrée`,email:`adresse e-mail`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`date et heure ISO`,date:`date ISO`,time:`heure ISO`,duration:`durée ISO`,ipv4:`adresse IPv4`,ipv6:`adresse IPv6`,cidrv4:`plage IPv4`,cidrv6:`plage IPv6`,base64:`chaîne encodée en base64`,base64url:`chaîne encodée en base64url`,json_string:`chaîne JSON`,e164:`numéro E.164`,jwt:`JWT`,template_literal:`entrée`},r={string:`chaîne`,number:`nombre`,int:`entier`,boolean:`booléen`,bigint:`grand entier`,symbol:`symbole`,undefined:`indéfini`,null:`null`,never:`jamais`,void:`vide`,date:`date`,array:`tableau`,object:`objet`,tuple:`tuple`,record:`enregistrement`,map:`carte`,set:`ensemble`,file:`fichier`,nonoptional:`non-optionnel`,nan:`NaN`,function:`fonction`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=R(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Entrée invalide : instanceof ${e.expected} attendu, ${i} reçu`:`Entrée invalide : ${t} attendu, ${i} reçu`}case`invalid_value`:return e.values.length===1?`Entrée invalide : ${L(e.values[0])} attendu`:`Option invalide : une valeur parmi ${P(e.values,`|`)} attendue`;case`too_big`:{let n=e.inclusive?`<=`:`<`,i=t(e.origin);return i?`Trop grand : ${r[e.origin]??`valeur`} doit ${i.verb} ${n}${e.maximum.toString()} ${i.unit??`élément(s)`}`:`Trop grand : ${r[e.origin]??`valeur`} doit être ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,i=t(e.origin);return i?`Trop petit : ${r[e.origin]??`valeur`} doit ${i.verb} ${n}${e.minimum.toString()} ${i.unit}`:`Trop petit : ${r[e.origin]??`valeur`} doit être ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Chaîne invalide : doit commencer par "${t.prefix}"`:t.format===`ends_with`?`Chaîne invalide : doit se terminer par "${t.suffix}"`:t.format===`includes`?`Chaîne invalide : doit inclure "${t.includes}"`:t.format===`regex`?`Chaîne invalide : doit correspondre au modèle ${t.pattern}`:`${n[t.format]??e.format} invalide`}case`not_multiple_of`:return`Nombre invalide : doit être un multiple de ${e.divisor}`;case`unrecognized_keys`:return`Clé${e.keys.length>1?`s`:``} non reconnue${e.keys.length>1?`s`:``} : ${P(e.keys,`, `)}`;case`invalid_key`:return`Clé invalide dans ${e.origin}`;case`invalid_union`:return`Entrée invalide`;case`invalid_element`:return`Valeur invalide dans ${e.origin}`;default:return`Entrée invalide`}}}}));function Hf(){return{localeError:Uf()}}var Uf,Wf=o((()=>{z(),Uf=()=>{let e={string:{unit:`caractères`,verb:`avoir`},file:{unit:`octets`,verb:`avoir`},array:{unit:`éléments`,verb:`avoir`},set:{unit:`éléments`,verb:`avoir`}};function t(t){return e[t]??null}let n={regex:`entrée`,email:`adresse courriel`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`date-heure ISO`,date:`date ISO`,time:`heure ISO`,duration:`durée ISO`,ipv4:`adresse IPv4`,ipv6:`adresse IPv6`,cidrv4:`plage IPv4`,cidrv6:`plage IPv6`,base64:`chaîne encodée en base64`,base64url:`chaîne encodée en base64url`,json_string:`chaîne JSON`,e164:`numéro E.164`,jwt:`JWT`,template_literal:`entrée`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=R(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Entrée invalide : attendu instanceof ${e.expected}, reçu ${i}`:`Entrée invalide : attendu ${t}, reçu ${i}`}case`invalid_value`:return e.values.length===1?`Entrée invalide : attendu ${L(e.values[0])}`:`Option invalide : attendu l'une des valeurs suivantes ${P(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`≤`:`<`,r=t(e.origin);return r?`Trop grand : attendu que ${e.origin??`la valeur`} ait ${n}${e.maximum.toString()} ${r.unit}`:`Trop grand : attendu que ${e.origin??`la valeur`} soit ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`≥`:`>`,r=t(e.origin);return r?`Trop petit : attendu que ${e.origin} ait ${n}${e.minimum.toString()} ${r.unit}`:`Trop petit : attendu que ${e.origin} soit ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Chaîne invalide : doit commencer par "${t.prefix}"`:t.format===`ends_with`?`Chaîne invalide : doit se terminer par "${t.suffix}"`:t.format===`includes`?`Chaîne invalide : doit inclure "${t.includes}"`:t.format===`regex`?`Chaîne invalide : doit correspondre au motif ${t.pattern}`:`${n[t.format]??e.format} invalide`}case`not_multiple_of`:return`Nombre invalide : doit être un multiple de ${e.divisor}`;case`unrecognized_keys`:return`Clé${e.keys.length>1?`s`:``} non reconnue${e.keys.length>1?`s`:``} : ${P(e.keys,`, `)}`;case`invalid_key`:return`Clé invalide dans ${e.origin}`;case`invalid_union`:return`Entrée invalide`;case`invalid_element`:return`Valeur invalide dans ${e.origin}`;default:return`Entrée invalide`}}}}));function Gf(){return{localeError:Kf()}}var Kf,qf=o((()=>{z(),Kf=()=>{let e={string:{label:`מחרוזת`,gender:`f`},number:{label:`מספר`,gender:`m`},boolean:{label:`ערך בוליאני`,gender:`m`},bigint:{label:`BigInt`,gender:`m`},date:{label:`תאריך`,gender:`m`},array:{label:`מערך`,gender:`m`},object:{label:`אובייקט`,gender:`m`},null:{label:`ערך ריק (null)`,gender:`m`},undefined:{label:`ערך לא מוגדר (undefined)`,gender:`m`},symbol:{label:`סימבול (Symbol)`,gender:`m`},function:{label:`פונקציה`,gender:`f`},map:{label:`מפה (Map)`,gender:`f`},set:{label:`קבוצה (Set)`,gender:`f`},file:{label:`קובץ`,gender:`m`},promise:{label:`Promise`,gender:`m`},NaN:{label:`NaN`,gender:`m`},unknown:{label:`ערך לא ידוע`,gender:`m`},value:{label:`ערך`,gender:`m`}},t={string:{unit:`תווים`,shortLabel:`קצר`,longLabel:`ארוך`},file:{unit:`בייטים`,shortLabel:`קטן`,longLabel:`גדול`},array:{unit:`פריטים`,shortLabel:`קטן`,longLabel:`גדול`},set:{unit:`פריטים`,shortLabel:`קטן`,longLabel:`גדול`},number:{unit:``,shortLabel:`קטן`,longLabel:`גדול`}},n=t=>t?e[t]:void 0,r=t=>{let r=n(t);return r?r.label:t??e.unknown.label},i=e=>`ה${r(e)}`,a=e=>(n(e)?.gender??`m`)===`f`?`צריכה להיות`:`צריך להיות`,o=e=>e?t[e]??null:null,s={regex:{label:`קלט`,gender:`m`},email:{label:`כתובת אימייל`,gender:`f`},url:{label:`כתובת רשת`,gender:`f`},emoji:{label:`אימוג'י`,gender:`m`},uuid:{label:`UUID`,gender:`m`},nanoid:{label:`nanoid`,gender:`m`},guid:{label:`GUID`,gender:`m`},cuid:{label:`cuid`,gender:`m`},cuid2:{label:`cuid2`,gender:`m`},ulid:{label:`ULID`,gender:`m`},xid:{label:`XID`,gender:`m`},ksuid:{label:`KSUID`,gender:`m`},datetime:{label:`תאריך וזמן ISO`,gender:`m`},date:{label:`תאריך ISO`,gender:`m`},time:{label:`זמן ISO`,gender:`m`},duration:{label:`משך זמן ISO`,gender:`m`},ipv4:{label:`כתובת IPv4`,gender:`f`},ipv6:{label:`כתובת IPv6`,gender:`f`},cidrv4:{label:`טווח IPv4`,gender:`m`},cidrv6:{label:`טווח IPv6`,gender:`m`},base64:{label:`מחרוזת בבסיס 64`,gender:`f`},base64url:{label:`מחרוזת בבסיס 64 לכתובות רשת`,gender:`f`},json_string:{label:`מחרוזת JSON`,gender:`f`},e164:{label:`מספר E.164`,gender:`m`},jwt:{label:`JWT`,gender:`m`},ends_with:{label:`קלט`,gender:`m`},includes:{label:`קלט`,gender:`m`},lowercase:{label:`קלט`,gender:`m`},starts_with:{label:`קלט`,gender:`m`},uppercase:{label:`קלט`,gender:`m`}},c={nan:`NaN`};return t=>{switch(t.code){case`invalid_type`:{let n=t.expected,i=c[n??``]??r(n),a=R(t.input),o=c[a]??e[a]?.label??a;return/^[A-Z]/.test(t.expected)?`קלט לא תקין: צריך להיות instanceof ${t.expected}, התקבל ${o}`:`קלט לא תקין: צריך להיות ${i}, התקבל ${o}`}case`invalid_value`:{if(t.values.length===1)return`ערך לא תקין: הערך חייב להיות ${L(t.values[0])}`;let e=t.values.map(e=>L(e));if(t.values.length===2)return`ערך לא תקין: האפשרויות המתאימות הן ${e[0]} או ${e[1]}`;let n=e[e.length-1];return`ערך לא תקין: האפשרויות המתאימות הן ${e.slice(0,-1).join(`, `)} או ${n}`}case`too_big`:{let e=o(t.origin),n=i(t.origin??`value`);if(t.origin===`string`)return`${e?.longLabel??`ארוך`} מדי: ${n} צריכה להכיל ${t.maximum.toString()} ${e?.unit??``} ${t.inclusive?`או פחות`:`לכל היותר`}`.trim();if(t.origin===`number`)return`גדול מדי: ${n} צריך להיות ${t.inclusive?`קטן או שווה ל-${t.maximum}`:`קטן מ-${t.maximum}`}`;if(t.origin===`array`||t.origin===`set`)return`גדול מדי: ${n} ${t.origin===`set`?`צריכה`:`צריך`} להכיל ${t.inclusive?`${t.maximum} ${e?.unit??``} או פחות`:`פחות מ-${t.maximum} ${e?.unit??``}`}`.trim();let r=t.inclusive?`<=`:`<`,s=a(t.origin??`value`);return e?.unit?`${e.longLabel} מדי: ${n} ${s} ${r}${t.maximum.toString()} ${e.unit}`:`${e?.longLabel??`גדול`} מדי: ${n} ${s} ${r}${t.maximum.toString()}`}case`too_small`:{let e=o(t.origin),n=i(t.origin??`value`);if(t.origin===`string`)return`${e?.shortLabel??`קצר`} מדי: ${n} צריכה להכיל ${t.minimum.toString()} ${e?.unit??``} ${t.inclusive?`או יותר`:`לפחות`}`.trim();if(t.origin===`number`)return`קטן מדי: ${n} צריך להיות ${t.inclusive?`גדול או שווה ל-${t.minimum}`:`גדול מ-${t.minimum}`}`;if(t.origin===`array`||t.origin===`set`){let r=t.origin===`set`?`צריכה`:`צריך`;return t.minimum===1&&t.inclusive?`קטן מדי: ${n} ${r} להכיל ${t.origin,`לפחות פריט אחד`}`:`קטן מדי: ${n} ${r} להכיל ${t.inclusive?`${t.minimum} ${e?.unit??``} או יותר`:`יותר מ-${t.minimum} ${e?.unit??``}`}`.trim()}let r=t.inclusive?`>=`:`>`,s=a(t.origin??`value`);return e?.unit?`${e.shortLabel} מדי: ${n} ${s} ${r}${t.minimum.toString()} ${e.unit}`:`${e?.shortLabel??`קטן`} מדי: ${n} ${s} ${r}${t.minimum.toString()}`}case`invalid_format`:{let e=t;if(e.format===`starts_with`)return`המחרוזת חייבת להתחיל ב "${e.prefix}"`;if(e.format===`ends_with`)return`המחרוזת חייבת להסתיים ב "${e.suffix}"`;if(e.format===`includes`)return`המחרוזת חייבת לכלול "${e.includes}"`;if(e.format===`regex`)return`המחרוזת חייבת להתאים לתבנית ${e.pattern}`;let n=s[e.format];return`${n?.label??e.format} לא ${(n?.gender??`m`)===`f`?`תקינה`:`תקין`}`}case`not_multiple_of`:return`מספר לא תקין: חייב להיות מכפלה של ${t.divisor}`;case`unrecognized_keys`:return`מפתח${t.keys.length>1?`ות`:``} לא מזוה${t.keys.length>1?`ים`:`ה`}: ${P(t.keys,`, `)}`;case`invalid_key`:return`שדה לא תקין באובייקט`;case`invalid_union`:return`קלט לא תקין`;case`invalid_element`:return`ערך לא תקין ב${i(t.origin??`array`)}`;default:return`קלט לא תקין`}}}}));function Jf(){return{localeError:Yf()}}var Yf,Xf=o((()=>{z(),Yf=()=>{let e={string:{unit:`znakova`,verb:`imati`},file:{unit:`bajtova`,verb:`imati`},array:{unit:`stavki`,verb:`imati`},set:{unit:`stavki`,verb:`imati`}};function t(t){return e[t]??null}let n={regex:`unos`,email:`email adresa`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO datum i vrijeme`,date:`ISO datum`,time:`ISO vrijeme`,duration:`ISO trajanje`,ipv4:`IPv4 adresa`,ipv6:`IPv6 adresa`,cidrv4:`IPv4 raspon`,cidrv6:`IPv6 raspon`,base64:`base64 kodirani tekst`,base64url:`base64url kodirani tekst`,json_string:`JSON tekst`,e164:`E.164 broj`,jwt:`JWT`,template_literal:`unos`},r={nan:`NaN`,string:`tekst`,number:`broj`,boolean:`boolean`,array:`niz`,object:`objekt`,set:`skup`,file:`datoteka`,date:`datum`,bigint:`bigint`,symbol:`simbol`,undefined:`undefined`,null:`null`,function:`funkcija`,map:`mapa`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=R(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Neispravan unos: očekuje se instanceof ${e.expected}, a primljeno je ${i}`:`Neispravan unos: očekuje se ${t}, a primljeno je ${i}`}case`invalid_value`:return e.values.length===1?`Neispravna vrijednost: očekivano ${L(e.values[0])}`:`Neispravna opcija: očekivano jedno od ${P(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,i=t(e.origin),a=r[e.origin]??e.origin;return i?`Preveliko: očekivano da ${a??`vrijednost`} ima ${n}${e.maximum.toString()} ${i.unit??`elemenata`}`:`Preveliko: očekivano da ${a??`vrijednost`} bude ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,i=t(e.origin),a=r[e.origin]??e.origin;return i?`Premalo: očekivano da ${a} ima ${n}${e.minimum.toString()} ${i.unit}`:`Premalo: očekivano da ${a} bude ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Neispravan tekst: mora započinjati s "${t.prefix}"`:t.format===`ends_with`?`Neispravan tekst: mora završavati s "${t.suffix}"`:t.format===`includes`?`Neispravan tekst: mora sadržavati "${t.includes}"`:t.format===`regex`?`Neispravan tekst: mora odgovarati uzorku ${t.pattern}`:`Neispravna ${n[t.format]??e.format}`}case`not_multiple_of`:return`Neispravan broj: mora biti višekratnik od ${e.divisor}`;case`unrecognized_keys`:return`Neprepoznat${e.keys.length>1?`i ključevi`:` ključ`}: ${P(e.keys,`, `)}`;case`invalid_key`:return`Neispravan ključ u ${r[e.origin]??e.origin}`;case`invalid_union`:return`Neispravan unos`;case`invalid_element`:return`Neispravna vrijednost u ${r[e.origin]??e.origin}`;default:return`Neispravan unos`}}}}));function Zf(){return{localeError:Qf()}}var Qf,$f=o((()=>{z(),Qf=()=>{let e={string:{unit:`karakter`,verb:`legyen`},file:{unit:`byte`,verb:`legyen`},array:{unit:`elem`,verb:`legyen`},set:{unit:`elem`,verb:`legyen`}};function t(t){return e[t]??null}let n={regex:`bemenet`,email:`email cím`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO időbélyeg`,date:`ISO dátum`,time:`ISO idő`,duration:`ISO időintervallum`,ipv4:`IPv4 cím`,ipv6:`IPv6 cím`,cidrv4:`IPv4 tartomány`,cidrv6:`IPv6 tartomány`,base64:`base64-kódolt string`,base64url:`base64url-kódolt string`,json_string:`JSON string`,e164:`E.164 szám`,jwt:`JWT`,template_literal:`bemenet`},r={nan:`NaN`,number:`szám`,array:`tömb`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=R(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Érvénytelen bemenet: a várt érték instanceof ${e.expected}, a kapott érték ${i}`:`Érvénytelen bemenet: a várt érték ${t}, a kapott érték ${i}`}case`invalid_value`:return e.values.length===1?`Érvénytelen bemenet: a várt érték ${L(e.values[0])}`:`Érvénytelen opció: valamelyik érték várt ${P(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Túl nagy: ${e.origin??`érték`} mérete túl nagy ${n}${e.maximum.toString()} ${r.unit??`elem`}`:`Túl nagy: a bemeneti érték ${e.origin??`érték`} túl nagy: ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Túl kicsi: a bemeneti érték ${e.origin} mérete túl kicsi ${n}${e.minimum.toString()} ${r.unit}`:`Túl kicsi: a bemeneti érték ${e.origin} túl kicsi ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Érvénytelen string: "${t.prefix}" értékkel kell kezdődnie`:t.format===`ends_with`?`Érvénytelen string: "${t.suffix}" értékkel kell végződnie`:t.format===`includes`?`Érvénytelen string: "${t.includes}" értéket kell tartalmaznia`:t.format===`regex`?`Érvénytelen string: ${t.pattern} mintának kell megfelelnie`:`Érvénytelen ${n[t.format]??e.format}`}case`not_multiple_of`:return`Érvénytelen szám: ${e.divisor} többszörösének kell lennie`;case`unrecognized_keys`:return`Ismeretlen kulcs${e.keys.length>1?`s`:``}: ${P(e.keys,`, `)}`;case`invalid_key`:return`Érvénytelen kulcs ${e.origin}`;case`invalid_union`:return`Érvénytelen bemenet`;case`invalid_element`:return`Érvénytelen érték: ${e.origin}`;default:return`Érvénytelen bemenet`}}}}));function ep(e,t,n){return Math.abs(e)===1?t:n}function tp(e){if(!e)return``;let t=[`ա`,`ե`,`ը`,`ի`,`ո`,`ու`,`օ`],n=e[e.length-1];return e+(t.includes(n)?`ն`:`ը`)}function np(){return{localeError:rp()}}var rp,ip=o((()=>{z(),rp=()=>{let e={string:{unit:{one:`նշան`,many:`նշաններ`},verb:`ունենալ`},file:{unit:{one:`բայթ`,many:`բայթեր`},verb:`ունենալ`},array:{unit:{one:`տարր`,many:`տարրեր`},verb:`ունենալ`},set:{unit:{one:`տարր`,many:`տարրեր`},verb:`ունենալ`}};function t(t){return e[t]??null}let n={regex:`մուտք`,email:`էլ. հասցե`,url:`URL`,emoji:`էմոջի`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO ամսաթիվ և ժամ`,date:`ISO ամսաթիվ`,time:`ISO ժամ`,duration:`ISO տևողություն`,ipv4:`IPv4 հասցե`,ipv6:`IPv6 հասցե`,cidrv4:`IPv4 միջակայք`,cidrv6:`IPv6 միջակայք`,base64:`base64 ձևաչափով տող`,base64url:`base64url ձևաչափով տող`,json_string:`JSON տող`,e164:`E.164 համար`,jwt:`JWT`,template_literal:`մուտք`},r={nan:`NaN`,number:`թիվ`,array:`զանգված`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=R(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Սխալ մուտքագրում․ սպասվում էր instanceof ${e.expected}, ստացվել է ${i}`:`Սխալ մուտքագրում․ սպասվում էր ${t}, ստացվել է ${i}`}case`invalid_value`:return e.values.length===1?`Սխալ մուտքագրում․ սպասվում էր ${L(e.values[1])}`:`Սխալ տարբերակ․ սպասվում էր հետևյալներից մեկը՝ ${P(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);if(r){let t=ep(Number(e.maximum),r.unit.one,r.unit.many);return`Չափազանց մեծ արժեք․ սպասվում է, որ ${tp(e.origin??`արժեք`)} կունենա ${n}${e.maximum.toString()} ${t}`}return`Չափազանց մեծ արժեք․ սպասվում է, որ ${tp(e.origin??`արժեք`)} լինի ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);if(r){let t=ep(Number(e.minimum),r.unit.one,r.unit.many);return`Չափազանց փոքր արժեք․ սպասվում է, որ ${tp(e.origin)} կունենա ${n}${e.minimum.toString()} ${t}`}return`Չափազանց փոքր արժեք․ սպասվում է, որ ${tp(e.origin)} լինի ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Սխալ տող․ պետք է սկսվի "${t.prefix}"-ով`:t.format===`ends_with`?`Սխալ տող․ պետք է ավարտվի "${t.suffix}"-ով`:t.format===`includes`?`Սխալ տող․ պետք է պարունակի "${t.includes}"`:t.format===`regex`?`Սխալ տող․ պետք է համապատասխանի ${t.pattern} ձևաչափին`:`Սխալ ${n[t.format]??e.format}`}case`not_multiple_of`:return`Սխալ թիվ․ պետք է բազմապատիկ լինի ${e.divisor}-ի`;case`unrecognized_keys`:return`Չճանաչված բանալի${e.keys.length>1?`ներ`:``}. ${P(e.keys,`, `)}`;case`invalid_key`:return`Սխալ բանալի ${tp(e.origin)}-ում`;case`invalid_union`:return`Սխալ մուտքագրում`;case`invalid_element`:return`Սխալ արժեք ${tp(e.origin)}-ում`;default:return`Սխալ մուտքագրում`}}}}));function ap(){return{localeError:op()}}var op,sp=o((()=>{z(),op=()=>{let e={string:{unit:`karakter`,verb:`memiliki`},file:{unit:`byte`,verb:`memiliki`},array:{unit:`item`,verb:`memiliki`},set:{unit:`item`,verb:`memiliki`}};function t(t){return e[t]??null}let n={regex:`input`,email:`alamat email`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`tanggal dan waktu format ISO`,date:`tanggal format ISO`,time:`jam format ISO`,duration:`durasi format ISO`,ipv4:`alamat IPv4`,ipv6:`alamat IPv6`,cidrv4:`rentang alamat IPv4`,cidrv6:`rentang alamat IPv6`,base64:`string dengan enkode base64`,base64url:`string dengan enkode base64url`,json_string:`string JSON`,e164:`angka E.164`,jwt:`JWT`,template_literal:`input`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=R(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Input tidak valid: diharapkan instanceof ${e.expected}, diterima ${i}`:`Input tidak valid: diharapkan ${t}, diterima ${i}`}case`invalid_value`:return e.values.length===1?`Input tidak valid: diharapkan ${L(e.values[0])}`:`Pilihan tidak valid: diharapkan salah satu dari ${P(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Terlalu besar: diharapkan ${e.origin??`value`} memiliki ${n}${e.maximum.toString()} ${r.unit??`elemen`}`:`Terlalu besar: diharapkan ${e.origin??`value`} menjadi ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Terlalu kecil: diharapkan ${e.origin} memiliki ${n}${e.minimum.toString()} ${r.unit}`:`Terlalu kecil: diharapkan ${e.origin} menjadi ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`String tidak valid: harus dimulai dengan "${t.prefix}"`:t.format===`ends_with`?`String tidak valid: harus berakhir dengan "${t.suffix}"`:t.format===`includes`?`String tidak valid: harus menyertakan "${t.includes}"`:t.format===`regex`?`String tidak valid: harus sesuai pola ${t.pattern}`:`${n[t.format]??e.format} tidak valid`}case`not_multiple_of`:return`Angka tidak valid: harus kelipatan dari ${e.divisor}`;case`unrecognized_keys`:return`Kunci tidak dikenali ${e.keys.length>1?`s`:``}: ${P(e.keys,`, `)}`;case`invalid_key`:return`Kunci tidak valid di ${e.origin}`;case`invalid_union`:return`Input tidak valid`;case`invalid_element`:return`Nilai tidak valid di ${e.origin}`;default:return`Input tidak valid`}}}}));function cp(){return{localeError:lp()}}var lp,up=o((()=>{z(),lp=()=>{let e={string:{unit:`stafi`,verb:`að hafa`},file:{unit:`bæti`,verb:`að hafa`},array:{unit:`hluti`,verb:`að hafa`},set:{unit:`hluti`,verb:`að hafa`}};function t(t){return e[t]??null}let n={regex:`gildi`,email:`netfang`,url:`vefslóð`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO dagsetning og tími`,date:`ISO dagsetning`,time:`ISO tími`,duration:`ISO tímalengd`,ipv4:`IPv4 address`,ipv6:`IPv6 address`,cidrv4:`IPv4 range`,cidrv6:`IPv6 range`,base64:`base64-encoded strengur`,base64url:`base64url-encoded strengur`,json_string:`JSON strengur`,e164:`E.164 tölugildi`,jwt:`JWT`,template_literal:`gildi`},r={nan:`NaN`,number:`númer`,array:`fylki`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=R(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Rangt gildi: Þú slóst inn ${i} þar sem á að vera instanceof ${e.expected}`:`Rangt gildi: Þú slóst inn ${i} þar sem á að vera ${t}`}case`invalid_value`:return e.values.length===1?`Rangt gildi: gert ráð fyrir ${L(e.values[0])}`:`Ógilt val: má vera eitt af eftirfarandi ${P(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Of stórt: gert er ráð fyrir að ${e.origin??`gildi`} hafi ${n}${e.maximum.toString()} ${r.unit??`hluti`}`:`Of stórt: gert er ráð fyrir að ${e.origin??`gildi`} sé ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Of lítið: gert er ráð fyrir að ${e.origin} hafi ${n}${e.minimum.toString()} ${r.unit}`:`Of lítið: gert er ráð fyrir að ${e.origin} sé ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Ógildur strengur: verður að byrja á "${t.prefix}"`:t.format===`ends_with`?`Ógildur strengur: verður að enda á "${t.suffix}"`:t.format===`includes`?`Ógildur strengur: verður að innihalda "${t.includes}"`:t.format===`regex`?`Ógildur strengur: verður að fylgja mynstri ${t.pattern}`:`Rangt ${n[t.format]??e.format}`}case`not_multiple_of`:return`Röng tala: verður að vera margfeldi af ${e.divisor}`;case`unrecognized_keys`:return`Óþekkt ${e.keys.length>1?`ir lyklar`:`ur lykill`}: ${P(e.keys,`, `)}`;case`invalid_key`:return`Rangur lykill í ${e.origin}`;case`invalid_union`:return`Rangt gildi`;case`invalid_element`:return`Rangt gildi í ${e.origin}`;default:return`Rangt gildi`}}}}));function dp(){return{localeError:fp()}}var fp,pp=o((()=>{z(),fp=()=>{let e={string:{unit:`caratteri`,verb:`avere`},file:{unit:`byte`,verb:`avere`},array:{unit:`elementi`,verb:`avere`},set:{unit:`elementi`,verb:`avere`}};function t(t){return e[t]??null}let n={regex:`input`,email:`indirizzo email`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`data e ora ISO`,date:`data ISO`,time:`ora ISO`,duration:`durata ISO`,ipv4:`indirizzo IPv4`,ipv6:`indirizzo IPv6`,cidrv4:`intervallo IPv4`,cidrv6:`intervallo IPv6`,base64:`stringa codificata in base64`,base64url:`URL codificata in base64`,json_string:`stringa JSON`,e164:`numero E.164`,jwt:`JWT`,template_literal:`input`},r={nan:`NaN`,number:`numero`,array:`vettore`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=R(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Input non valido: atteso instanceof ${e.expected}, ricevuto ${i}`:`Input non valido: atteso ${t}, ricevuto ${i}`}case`invalid_value`:return e.values.length===1?`Input non valido: atteso ${L(e.values[0])}`:`Opzione non valida: atteso uno tra ${P(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Troppo grande: ${e.origin??`valore`} deve avere ${n}${e.maximum.toString()} ${r.unit??`elementi`}`:`Troppo grande: ${e.origin??`valore`} deve essere ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Troppo piccolo: ${e.origin} deve avere ${n}${e.minimum.toString()} ${r.unit}`:`Troppo piccolo: ${e.origin} deve essere ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Stringa non valida: deve iniziare con "${t.prefix}"`:t.format===`ends_with`?`Stringa non valida: deve terminare con "${t.suffix}"`:t.format===`includes`?`Stringa non valida: deve includere "${t.includes}"`:t.format===`regex`?`Stringa non valida: deve corrispondere al pattern ${t.pattern}`:`Input non valido: ${n[t.format]??e.format}`}case`not_multiple_of`:return`Numero non valido: deve essere un multiplo di ${e.divisor}`;case`unrecognized_keys`:return`Chiav${e.keys.length>1?`i`:`e`} non riconosciut${e.keys.length>1?`e`:`a`}: ${P(e.keys,`, `)}`;case`invalid_key`:return`Chiave non valida in ${e.origin}`;case`invalid_union`:return`Input non valido`;case`invalid_element`:return`Valore non valido in ${e.origin}`;default:return`Input non valido`}}}}));function mp(){return{localeError:hp()}}var hp,gp=o((()=>{z(),hp=()=>{let e={string:{unit:`文字`,verb:`である`},file:{unit:`バイト`,verb:`である`},array:{unit:`要素`,verb:`である`},set:{unit:`要素`,verb:`である`}};function t(t){return e[t]??null}let n={regex:`入力値`,email:`メールアドレス`,url:`URL`,emoji:`絵文字`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO日時`,date:`ISO日付`,time:`ISO時刻`,duration:`ISO期間`,ipv4:`IPv4アドレス`,ipv6:`IPv6アドレス`,cidrv4:`IPv4範囲`,cidrv6:`IPv6範囲`,base64:`base64エンコード文字列`,base64url:`base64urlエンコード文字列`,json_string:`JSON文字列`,e164:`E.164番号`,jwt:`JWT`,template_literal:`入力値`},r={nan:`NaN`,number:`数値`,array:`配列`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=R(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`無効な入力: instanceof ${e.expected}が期待されましたが、${i}が入力されました`:`無効な入力: ${t}が期待されましたが、${i}が入力されました`}case`invalid_value`:return e.values.length===1?`無効な入力: ${L(e.values[0])}が期待されました`:`無効な選択: ${P(e.values,`、`)}のいずれかである必要があります`;case`too_big`:{let n=e.inclusive?`以下である`:`より小さい`,r=t(e.origin);return r?`大きすぎる値: ${e.origin??`値`}は${e.maximum.toString()}${r.unit??`要素`}${n}必要があります`:`大きすぎる値: ${e.origin??`値`}は${e.maximum.toString()}${n}必要があります`}case`too_small`:{let n=e.inclusive?`以上である`:`より大きい`,r=t(e.origin);return r?`小さすぎる値: ${e.origin}は${e.minimum.toString()}${r.unit}${n}必要があります`:`小さすぎる値: ${e.origin}は${e.minimum.toString()}${n}必要があります`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`無効な文字列: "${t.prefix}"で始まる必要があります`:t.format===`ends_with`?`無効な文字列: "${t.suffix}"で終わる必要があります`:t.format===`includes`?`無効な文字列: "${t.includes}"を含む必要があります`:t.format===`regex`?`無効な文字列: パターン${t.pattern}に一致する必要があります`:`無効な${n[t.format]??e.format}`}case`not_multiple_of`:return`無効な数値: ${e.divisor}の倍数である必要があります`;case`unrecognized_keys`:return`認識されていないキー${e.keys.length>1?`群`:``}: ${P(e.keys,`、`)}`;case`invalid_key`:return`${e.origin}内の無効なキー`;case`invalid_union`:return`無効な入力`;case`invalid_element`:return`${e.origin}内の無効な値`;default:return`無効な入力`}}}}));function _p(){return{localeError:vp()}}var vp,yp=o((()=>{z(),vp=()=>{let e={string:{unit:`სიმბოლო`,verb:`უნდა შეიცავდეს`},file:{unit:`ბაიტი`,verb:`უნდა შეიცავდეს`},array:{unit:`ელემენტი`,verb:`უნდა შეიცავდეს`},set:{unit:`ელემენტი`,verb:`უნდა შეიცავდეს`}};function t(t){return e[t]??null}let n={regex:`შეყვანა`,email:`ელ-ფოსტის მისამართი`,url:`URL`,emoji:`ემოჯი`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`თარიღი-დრო`,date:`თარიღი`,time:`დრო`,duration:`ხანგრძლივობა`,ipv4:`IPv4 მისამართი`,ipv6:`IPv6 მისამართი`,cidrv4:`IPv4 დიაპაზონი`,cidrv6:`IPv6 დიაპაზონი`,base64:`base64-კოდირებული ველი`,base64url:`base64url-კოდირებული ველი`,json_string:`JSON ველი`,e164:`E.164 ნომერი`,jwt:`JWT`,template_literal:`შეყვანა`},r={nan:`NaN`,number:`რიცხვი`,string:`ველი`,boolean:`ბულეანი`,function:`ფუნქცია`,array:`მასივი`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=R(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`არასწორი შეყვანა: მოსალოდნელი instanceof ${e.expected}, მიღებული ${i}`:`არასწორი შეყვანა: მოსალოდნელი ${t}, მიღებული ${i}`}case`invalid_value`:return e.values.length===1?`არასწორი შეყვანა: მოსალოდნელი ${L(e.values[0])}`:`არასწორი ვარიანტი: მოსალოდნელია ერთ-ერთი ${P(e.values,`|`)}-დან`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`ზედმეტად დიდი: მოსალოდნელი ${e.origin??`მნიშვნელობა`} ${r.verb} ${n}${e.maximum.toString()} ${r.unit}`:`ზედმეტად დიდი: მოსალოდნელი ${e.origin??`მნიშვნელობა`} იყოს ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`ზედმეტად პატარა: მოსალოდნელი ${e.origin} ${r.verb} ${n}${e.minimum.toString()} ${r.unit}`:`ზედმეტად პატარა: მოსალოდნელი ${e.origin} იყოს ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`არასწორი ველი: უნდა იწყებოდეს "${t.prefix}"-ით`:t.format===`ends_with`?`არასწორი ველი: უნდა მთავრდებოდეს "${t.suffix}"-ით`:t.format===`includes`?`არასწორი ველი: უნდა შეიცავდეს "${t.includes}"-ს`:t.format===`regex`?`არასწორი ველი: უნდა შეესაბამებოდეს შაბლონს ${t.pattern}`:`არასწორი ${n[t.format]??e.format}`}case`not_multiple_of`:return`არასწორი რიცხვი: უნდა იყოს ${e.divisor}-ის ჯერადი`;case`unrecognized_keys`:return`უცნობი გასაღებ${e.keys.length>1?`ები`:`ი`}: ${P(e.keys,`, `)}`;case`invalid_key`:return`არასწორი გასაღები ${e.origin}-ში`;case`invalid_union`:return`არასწორი შეყვანა`;case`invalid_element`:return`არასწორი მნიშვნელობა ${e.origin}-ში`;default:return`არასწორი შეყვანა`}}}}));function bp(){return{localeError:xp()}}var xp,Sp=o((()=>{z(),xp=()=>{let e={string:{unit:`តួអក្សរ`,verb:`គួរមាន`},file:{unit:`បៃ`,verb:`គួរមាន`},array:{unit:`ធាតុ`,verb:`គួរមាន`},set:{unit:`ធាតុ`,verb:`គួរមាន`}};function t(t){return e[t]??null}let n={regex:`ទិន្នន័យបញ្ចូល`,email:`អាសយដ្ឋានអ៊ីមែល`,url:`URL`,emoji:`សញ្ញាអារម្មណ៍`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`កាលបរិច្ឆេទ និងម៉ោង ISO`,date:`កាលបរិច្ឆេទ ISO`,time:`ម៉ោង ISO`,duration:`រយៈពេល ISO`,ipv4:`អាសយដ្ឋាន IPv4`,ipv6:`អាសយដ្ឋាន IPv6`,cidrv4:`ដែនអាសយដ្ឋាន IPv4`,cidrv6:`ដែនអាសយដ្ឋាន IPv6`,base64:`ខ្សែអក្សរអ៊ិកូដ base64`,base64url:`ខ្សែអក្សរអ៊ិកូដ base64url`,json_string:`ខ្សែអក្សរ JSON`,e164:`លេខ E.164`,jwt:`JWT`,template_literal:`ទិន្នន័យបញ្ចូល`},r={nan:`NaN`,number:`លេខ`,array:`អារេ (Array)`,null:`គ្មានតម្លៃ (null)`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=R(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ instanceof ${e.expected} ប៉ុន្តែទទួលបាន ${i}`:`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ ${t} ប៉ុន្តែទទួលបាន ${i}`}case`invalid_value`:return e.values.length===1?`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ ${L(e.values[0])}`:`ជម្រើសមិនត្រឹមត្រូវ៖ ត្រូវជាមួយក្នុងចំណោម ${P(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`ធំពេក៖ ត្រូវការ ${e.origin??`តម្លៃ`} ${n} ${e.maximum.toString()} ${r.unit??`ធាតុ`}`:`ធំពេក៖ ត្រូវការ ${e.origin??`តម្លៃ`} ${n} ${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`តូចពេក៖ ត្រូវការ ${e.origin} ${n} ${e.minimum.toString()} ${r.unit}`:`តូចពេក៖ ត្រូវការ ${e.origin} ${n} ${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវចាប់ផ្តើមដោយ "${t.prefix}"`:t.format===`ends_with`?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវបញ្ចប់ដោយ "${t.suffix}"`:t.format===`includes`?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវមាន "${t.includes}"`:t.format===`regex`?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវតែផ្គូផ្គងនឹងទម្រង់ដែលបានកំណត់ ${t.pattern}`:`មិនត្រឹមត្រូវ៖ ${n[t.format]??e.format}`}case`not_multiple_of`:return`លេខមិនត្រឹមត្រូវ៖ ត្រូវតែជាពហុគុណនៃ ${e.divisor}`;case`unrecognized_keys`:return`រកឃើញសោមិនស្គាល់៖ ${P(e.keys,`, `)}`;case`invalid_key`:return`សោមិនត្រឹមត្រូវនៅក្នុង ${e.origin}`;case`invalid_union`:return`ទិន្នន័យមិនត្រឹមត្រូវ`;case`invalid_element`:return`ទិន្នន័យមិនត្រឹមត្រូវនៅក្នុង ${e.origin}`;default:return`ទិន្នន័យមិនត្រឹមត្រូវ`}}}}));function Cp(){return bp()}var wp=o((()=>{Sp()}));function Tp(){return{localeError:Ep()}}var Ep,Dp=o((()=>{z(),Ep=()=>{let e={string:{unit:`문자`,verb:`to have`},file:{unit:`바이트`,verb:`to have`},array:{unit:`개`,verb:`to have`},set:{unit:`개`,verb:`to have`}};function t(t){return e[t]??null}let n={regex:`입력`,email:`이메일 주소`,url:`URL`,emoji:`이모지`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO 날짜시간`,date:`ISO 날짜`,time:`ISO 시간`,duration:`ISO 기간`,ipv4:`IPv4 주소`,ipv6:`IPv6 주소`,cidrv4:`IPv4 범위`,cidrv6:`IPv6 범위`,base64:`base64 인코딩 문자열`,base64url:`base64url 인코딩 문자열`,json_string:`JSON 문자열`,e164:`E.164 번호`,jwt:`JWT`,template_literal:`입력`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=R(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`잘못된 입력: 예상 타입은 instanceof ${e.expected}, 받은 타입은 ${i}입니다`:`잘못된 입력: 예상 타입은 ${t}, 받은 타입은 ${i}입니다`}case`invalid_value`:return e.values.length===1?`잘못된 입력: 값은 ${L(e.values[0])} 이어야 합니다`:`잘못된 옵션: ${P(e.values,`또는 `)} 중 하나여야 합니다`;case`too_big`:{let n=e.inclusive?`이하`:`미만`,r=n===`미만`?`이어야 합니다`:`여야 합니다`,i=t(e.origin),a=i?.unit??`요소`;return i?`${e.origin??`값`}이 너무 큽니다: ${e.maximum.toString()}${a} ${n}${r}`:`${e.origin??`값`}이 너무 큽니다: ${e.maximum.toString()} ${n}${r}`}case`too_small`:{let n=e.inclusive?`이상`:`초과`,r=n===`이상`?`이어야 합니다`:`여야 합니다`,i=t(e.origin),a=i?.unit??`요소`;return i?`${e.origin??`값`}이 너무 작습니다: ${e.minimum.toString()}${a} ${n}${r}`:`${e.origin??`값`}이 너무 작습니다: ${e.minimum.toString()} ${n}${r}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`잘못된 문자열: "${t.prefix}"(으)로 시작해야 합니다`:t.format===`ends_with`?`잘못된 문자열: "${t.suffix}"(으)로 끝나야 합니다`:t.format===`includes`?`잘못된 문자열: "${t.includes}"을(를) 포함해야 합니다`:t.format===`regex`?`잘못된 문자열: 정규식 ${t.pattern} 패턴과 일치해야 합니다`:`잘못된 ${n[t.format]??e.format}`}case`not_multiple_of`:return`잘못된 숫자: ${e.divisor}의 배수여야 합니다`;case`unrecognized_keys`:return`인식할 수 없는 키: ${P(e.keys,`, `)}`;case`invalid_key`:return`잘못된 키: ${e.origin}`;case`invalid_union`:return`잘못된 입력`;case`invalid_element`:return`잘못된 값: ${e.origin}`;default:return`잘못된 입력`}}}}));function Op(e){let t=Math.abs(e),n=t%10,r=t%100;return r>=11&&r<=19||n===0?`many`:n===1?`one`:`few`}function kp(){return{localeError:jp()}}var Ap,jp,Mp=o((()=>{z(),Ap=e=>e.charAt(0).toUpperCase()+e.slice(1),jp=()=>{let e={string:{unit:{one:`simbolis`,few:`simboliai`,many:`simbolių`},verb:{smaller:{inclusive:`turi būti ne ilgesnė kaip`,notInclusive:`turi būti trumpesnė kaip`},bigger:{inclusive:`turi būti ne trumpesnė kaip`,notInclusive:`turi būti ilgesnė kaip`}}},file:{unit:{one:`baitas`,few:`baitai`,many:`baitų`},verb:{smaller:{inclusive:`turi būti ne didesnis kaip`,notInclusive:`turi būti mažesnis kaip`},bigger:{inclusive:`turi būti ne mažesnis kaip`,notInclusive:`turi būti didesnis kaip`}}},array:{unit:{one:`elementą`,few:`elementus`,many:`elementų`},verb:{smaller:{inclusive:`turi turėti ne daugiau kaip`,notInclusive:`turi turėti mažiau kaip`},bigger:{inclusive:`turi turėti ne mažiau kaip`,notInclusive:`turi turėti daugiau kaip`}}},set:{unit:{one:`elementą`,few:`elementus`,many:`elementų`},verb:{smaller:{inclusive:`turi turėti ne daugiau kaip`,notInclusive:`turi turėti mažiau kaip`},bigger:{inclusive:`turi turėti ne mažiau kaip`,notInclusive:`turi turėti daugiau kaip`}}}};function t(t,n,r,i){let a=e[t]??null;return a===null?a:{unit:a.unit[n],verb:a.verb[i][r?`inclusive`:`notInclusive`]}}let n={regex:`įvestis`,email:`el. pašto adresas`,url:`URL`,emoji:`jaustukas`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO data ir laikas`,date:`ISO data`,time:`ISO laikas`,duration:`ISO trukmė`,ipv4:`IPv4 adresas`,ipv6:`IPv6 adresas`,cidrv4:`IPv4 tinklo prefiksas (CIDR)`,cidrv6:`IPv6 tinklo prefiksas (CIDR)`,base64:`base64 užkoduota eilutė`,base64url:`base64url užkoduota eilutė`,json_string:`JSON eilutė`,e164:`E.164 numeris`,jwt:`JWT`,template_literal:`įvestis`},r={nan:`NaN`,number:`skaičius`,bigint:`sveikasis skaičius`,string:`eilutė`,boolean:`loginė reikšmė`,undefined:`neapibrėžta reikšmė`,function:`funkcija`,symbol:`simbolis`,array:`masyvas`,object:`objektas`,null:`nulinė reikšmė`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=R(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Gautas tipas ${i}, o tikėtasi - instanceof ${e.expected}`:`Gautas tipas ${i}, o tikėtasi - ${t}`}case`invalid_value`:return e.values.length===1?`Privalo būti ${L(e.values[0])}`:`Privalo būti vienas iš ${P(e.values,`|`)} pasirinkimų`;case`too_big`:{let n=r[e.origin]??e.origin,i=t(e.origin,Op(Number(e.maximum)),e.inclusive??!1,`smaller`);if(i?.verb)return`${Ap(n??e.origin??`reikšmė`)} ${i.verb} ${e.maximum.toString()} ${i.unit??`elementų`}`;let a=e.inclusive?`ne didesnis kaip`:`mažesnis kaip`;return`${Ap(n??e.origin??`reikšmė`)} turi būti ${a} ${e.maximum.toString()} ${i?.unit}`}case`too_small`:{let n=r[e.origin]??e.origin,i=t(e.origin,Op(Number(e.minimum)),e.inclusive??!1,`bigger`);if(i?.verb)return`${Ap(n??e.origin??`reikšmė`)} ${i.verb} ${e.minimum.toString()} ${i.unit??`elementų`}`;let a=e.inclusive?`ne mažesnis kaip`:`didesnis kaip`;return`${Ap(n??e.origin??`reikšmė`)} turi būti ${a} ${e.minimum.toString()} ${i?.unit}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Eilutė privalo prasidėti "${t.prefix}"`:t.format===`ends_with`?`Eilutė privalo pasibaigti "${t.suffix}"`:t.format===`includes`?`Eilutė privalo įtraukti "${t.includes}"`:t.format===`regex`?`Eilutė privalo atitikti ${t.pattern}`:`Neteisingas ${n[t.format]??e.format}`}case`not_multiple_of`:return`Skaičius privalo būti ${e.divisor} kartotinis.`;case`unrecognized_keys`:return`Neatpažint${e.keys.length>1?`i`:`as`} rakt${e.keys.length>1?`ai`:`as`}: ${P(e.keys,`, `)}`;case`invalid_key`:return`Rastas klaidingas raktas`;case`invalid_union`:return`Klaidinga įvestis`;case`invalid_element`:{let t=r[e.origin]??e.origin;return`${Ap(t??e.origin??`reikšmė`)} turi klaidingą įvestį`}default:return`Klaidinga įvestis`}}}}));function Np(){return{localeError:Pp()}}var Pp,Fp=o((()=>{z(),Pp=()=>{let e={string:{unit:`знаци`,verb:`да имаат`},file:{unit:`бајти`,verb:`да имаат`},array:{unit:`ставки`,verb:`да имаат`},set:{unit:`ставки`,verb:`да имаат`}};function t(t){return e[t]??null}let n={regex:`внес`,email:`адреса на е-пошта`,url:`URL`,emoji:`емоџи`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO датум и време`,date:`ISO датум`,time:`ISO време`,duration:`ISO времетраење`,ipv4:`IPv4 адреса`,ipv6:`IPv6 адреса`,cidrv4:`IPv4 опсег`,cidrv6:`IPv6 опсег`,base64:`base64-енкодирана низа`,base64url:`base64url-енкодирана низа`,json_string:`JSON низа`,e164:`E.164 број`,jwt:`JWT`,template_literal:`внес`},r={nan:`NaN`,number:`број`,array:`низа`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=R(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Грешен внес: се очекува instanceof ${e.expected}, примено ${i}`:`Грешен внес: се очекува ${t}, примено ${i}`}case`invalid_value`:return e.values.length===1?`Invalid input: expected ${L(e.values[0])}`:`Грешана опција: се очекува една ${P(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Премногу голем: се очекува ${e.origin??`вредноста`} да има ${n}${e.maximum.toString()} ${r.unit??`елементи`}`:`Премногу голем: се очекува ${e.origin??`вредноста`} да биде ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Премногу мал: се очекува ${e.origin} да има ${n}${e.minimum.toString()} ${r.unit}`:`Премногу мал: се очекува ${e.origin} да биде ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Неважечка низа: мора да започнува со "${t.prefix}"`:t.format===`ends_with`?`Неважечка низа: мора да завршува со "${t.suffix}"`:t.format===`includes`?`Неважечка низа: мора да вклучува "${t.includes}"`:t.format===`regex`?`Неважечка низа: мора да одгоара на патернот ${t.pattern}`:`Invalid ${n[t.format]??e.format}`}case`not_multiple_of`:return`Грешен број: мора да биде делив со ${e.divisor}`;case`unrecognized_keys`:return`${e.keys.length>1?`Непрепознаени клучеви`:`Непрепознаен клуч`}: ${P(e.keys,`, `)}`;case`invalid_key`:return`Грешен клуч во ${e.origin}`;case`invalid_union`:return`Грешен внес`;case`invalid_element`:return`Грешна вредност во ${e.origin}`;default:return`Грешен внес`}}}}));function Ip(){return{localeError:Lp()}}var Lp,Rp=o((()=>{z(),Lp=()=>{let e={string:{unit:`aksara`,verb:`mempunyai`},file:{unit:`bait`,verb:`mempunyai`},array:{unit:`elemen`,verb:`mempunyai`},set:{unit:`elemen`,verb:`mempunyai`}};function t(t){return e[t]??null}let n={regex:`input`,email:`alamat e-mel`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`tarikh masa ISO`,date:`tarikh ISO`,time:`masa ISO`,duration:`tempoh ISO`,ipv4:`alamat IPv4`,ipv6:`alamat IPv6`,cidrv4:`julat IPv4`,cidrv6:`julat IPv6`,base64:`string dikodkan base64`,base64url:`string dikodkan base64url`,json_string:`string JSON`,e164:`nombor E.164`,jwt:`JWT`,template_literal:`input`},r={nan:`NaN`,number:`nombor`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=R(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Input tidak sah: dijangka instanceof ${e.expected}, diterima ${i}`:`Input tidak sah: dijangka ${t}, diterima ${i}`}case`invalid_value`:return e.values.length===1?`Input tidak sah: dijangka ${L(e.values[0])}`:`Pilihan tidak sah: dijangka salah satu daripada ${P(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Terlalu besar: dijangka ${e.origin??`nilai`} ${r.verb} ${n}${e.maximum.toString()} ${r.unit??`elemen`}`:`Terlalu besar: dijangka ${e.origin??`nilai`} adalah ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Terlalu kecil: dijangka ${e.origin} ${r.verb} ${n}${e.minimum.toString()} ${r.unit}`:`Terlalu kecil: dijangka ${e.origin} adalah ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`String tidak sah: mesti bermula dengan "${t.prefix}"`:t.format===`ends_with`?`String tidak sah: mesti berakhir dengan "${t.suffix}"`:t.format===`includes`?`String tidak sah: mesti mengandungi "${t.includes}"`:t.format===`regex`?`String tidak sah: mesti sepadan dengan corak ${t.pattern}`:`${n[t.format]??e.format} tidak sah`}case`not_multiple_of`:return`Nombor tidak sah: perlu gandaan ${e.divisor}`;case`unrecognized_keys`:return`Kunci tidak dikenali: ${P(e.keys,`, `)}`;case`invalid_key`:return`Kunci tidak sah dalam ${e.origin}`;case`invalid_union`:return`Input tidak sah`;case`invalid_element`:return`Nilai tidak sah dalam ${e.origin}`;default:return`Input tidak sah`}}}}));function zp(){return{localeError:Bp()}}var Bp,Vp=o((()=>{z(),Bp=()=>{let e={string:{unit:`tekens`,verb:`heeft`},file:{unit:`bytes`,verb:`heeft`},array:{unit:`elementen`,verb:`heeft`},set:{unit:`elementen`,verb:`heeft`}};function t(t){return e[t]??null}let n={regex:`invoer`,email:`emailadres`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO datum en tijd`,date:`ISO datum`,time:`ISO tijd`,duration:`ISO duur`,ipv4:`IPv4-adres`,ipv6:`IPv6-adres`,cidrv4:`IPv4-bereik`,cidrv6:`IPv6-bereik`,base64:`base64-gecodeerde tekst`,base64url:`base64 URL-gecodeerde tekst`,json_string:`JSON string`,e164:`E.164-nummer`,jwt:`JWT`,template_literal:`invoer`},r={nan:`NaN`,number:`getal`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=R(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Ongeldige invoer: verwacht instanceof ${e.expected}, ontving ${i}`:`Ongeldige invoer: verwacht ${t}, ontving ${i}`}case`invalid_value`:return e.values.length===1?`Ongeldige invoer: verwacht ${L(e.values[0])}`:`Ongeldige optie: verwacht één van ${P(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin),i=e.origin===`date`?`laat`:e.origin===`string`?`lang`:`groot`;return r?`Te ${i}: verwacht dat ${e.origin??`waarde`} ${n}${e.maximum.toString()} ${r.unit??`elementen`} ${r.verb}`:`Te ${i}: verwacht dat ${e.origin??`waarde`} ${n}${e.maximum.toString()} is`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin),i=e.origin===`date`?`vroeg`:e.origin===`string`?`kort`:`klein`;return r?`Te ${i}: verwacht dat ${e.origin} ${n}${e.minimum.toString()} ${r.unit} ${r.verb}`:`Te ${i}: verwacht dat ${e.origin} ${n}${e.minimum.toString()} is`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Ongeldige tekst: moet met "${t.prefix}" beginnen`:t.format===`ends_with`?`Ongeldige tekst: moet op "${t.suffix}" eindigen`:t.format===`includes`?`Ongeldige tekst: moet "${t.includes}" bevatten`:t.format===`regex`?`Ongeldige tekst: moet overeenkomen met patroon ${t.pattern}`:`Ongeldig: ${n[t.format]??e.format}`}case`not_multiple_of`:return`Ongeldig getal: moet een veelvoud van ${e.divisor} zijn`;case`unrecognized_keys`:return`Onbekende key${e.keys.length>1?`s`:``}: ${P(e.keys,`, `)}`;case`invalid_key`:return`Ongeldige key in ${e.origin}`;case`invalid_union`:return`Ongeldige invoer`;case`invalid_element`:return`Ongeldige waarde in ${e.origin}`;default:return`Ongeldige invoer`}}}}));function Hp(){return{localeError:Up()}}var Up,Wp=o((()=>{z(),Up=()=>{let e={string:{unit:`tegn`,verb:`å ha`},file:{unit:`bytes`,verb:`å ha`},array:{unit:`elementer`,verb:`å inneholde`},set:{unit:`elementer`,verb:`å inneholde`}};function t(t){return e[t]??null}let n={regex:`input`,email:`e-postadresse`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO dato- og klokkeslett`,date:`ISO-dato`,time:`ISO-klokkeslett`,duration:`ISO-varighet`,ipv4:`IPv4-område`,ipv6:`IPv6-område`,cidrv4:`IPv4-spekter`,cidrv6:`IPv6-spekter`,base64:`base64-enkodet streng`,base64url:`base64url-enkodet streng`,json_string:`JSON-streng`,e164:`E.164-nummer`,jwt:`JWT`,template_literal:`input`},r={nan:`NaN`,number:`tall`,array:`liste`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=R(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Ugyldig input: forventet instanceof ${e.expected}, fikk ${i}`:`Ugyldig input: forventet ${t}, fikk ${i}`}case`invalid_value`:return e.values.length===1?`Ugyldig verdi: forventet ${L(e.values[0])}`:`Ugyldig valg: forventet en av ${P(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`For stor(t): forventet ${e.origin??`value`} til å ha ${n}${e.maximum.toString()} ${r.unit??`elementer`}`:`For stor(t): forventet ${e.origin??`value`} til å ha ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`For lite(n): forventet ${e.origin} til å ha ${n}${e.minimum.toString()} ${r.unit}`:`For lite(n): forventet ${e.origin} til å ha ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Ugyldig streng: må starte med "${t.prefix}"`:t.format===`ends_with`?`Ugyldig streng: må ende med "${t.suffix}"`:t.format===`includes`?`Ugyldig streng: må inneholde "${t.includes}"`:t.format===`regex`?`Ugyldig streng: må matche mønsteret ${t.pattern}`:`Ugyldig ${n[t.format]??e.format}`}case`not_multiple_of`:return`Ugyldig tall: må være et multiplum av ${e.divisor}`;case`unrecognized_keys`:return`${e.keys.length>1?`Ukjente nøkler`:`Ukjent nøkkel`}: ${P(e.keys,`, `)}`;case`invalid_key`:return`Ugyldig nøkkel i ${e.origin}`;case`invalid_union`:return`Ugyldig input`;case`invalid_element`:return`Ugyldig verdi i ${e.origin}`;default:return`Ugyldig input`}}}}));function Gp(){return{localeError:Kp()}}var Kp,qp=o((()=>{z(),Kp=()=>{let e={string:{unit:`harf`,verb:`olmalıdır`},file:{unit:`bayt`,verb:`olmalıdır`},array:{unit:`unsur`,verb:`olmalıdır`},set:{unit:`unsur`,verb:`olmalıdır`}};function t(t){return e[t]??null}let n={regex:`giren`,email:`epostagâh`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO hengâmı`,date:`ISO tarihi`,time:`ISO zamanı`,duration:`ISO müddeti`,ipv4:`IPv4 nişânı`,ipv6:`IPv6 nişânı`,cidrv4:`IPv4 menzili`,cidrv6:`IPv6 menzili`,base64:`base64-şifreli metin`,base64url:`base64url-şifreli metin`,json_string:`JSON metin`,e164:`E.164 sayısı`,jwt:`JWT`,template_literal:`giren`},r={nan:`NaN`,number:`numara`,array:`saf`,null:`gayb`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=R(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Fâsit giren: umulan instanceof ${e.expected}, alınan ${i}`:`Fâsit giren: umulan ${t}, alınan ${i}`}case`invalid_value`:return e.values.length===1?`Fâsit giren: umulan ${L(e.values[0])}`:`Fâsit tercih: mûteberler ${P(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Fazla büyük: ${e.origin??`value`}, ${n}${e.maximum.toString()} ${r.unit??`elements`} sahip olmalıydı.`:`Fazla büyük: ${e.origin??`value`}, ${n}${e.maximum.toString()} olmalıydı.`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Fazla küçük: ${e.origin}, ${n}${e.minimum.toString()} ${r.unit} sahip olmalıydı.`:`Fazla küçük: ${e.origin}, ${n}${e.minimum.toString()} olmalıydı.`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Fâsit metin: "${t.prefix}" ile başlamalı.`:t.format===`ends_with`?`Fâsit metin: "${t.suffix}" ile bitmeli.`:t.format===`includes`?`Fâsit metin: "${t.includes}" ihtivâ etmeli.`:t.format===`regex`?`Fâsit metin: ${t.pattern} nakşına uymalı.`:`Fâsit ${n[t.format]??e.format}`}case`not_multiple_of`:return`Fâsit sayı: ${e.divisor} katı olmalıydı.`;case`unrecognized_keys`:return`Tanınmayan anahtar ${e.keys.length>1?`s`:``}: ${P(e.keys,`, `)}`;case`invalid_key`:return`${e.origin} için tanınmayan anahtar var.`;case`invalid_union`:return`Giren tanınamadı.`;case`invalid_element`:return`${e.origin} için tanınmayan kıymet var.`;default:return`Kıymet tanınamadı.`}}}}));function Jp(){return{localeError:Yp()}}var Yp,Xp=o((()=>{z(),Yp=()=>{let e={string:{unit:`توکي`,verb:`ولري`},file:{unit:`بایټس`,verb:`ولري`},array:{unit:`توکي`,verb:`ولري`},set:{unit:`توکي`,verb:`ولري`}};function t(t){return e[t]??null}let n={regex:`ورودي`,email:`بریښنالیک`,url:`یو آر ال`,emoji:`ایموجي`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`نیټه او وخت`,date:`نېټه`,time:`وخت`,duration:`موده`,ipv4:`د IPv4 پته`,ipv6:`د IPv6 پته`,cidrv4:`د IPv4 ساحه`,cidrv6:`د IPv6 ساحه`,base64:`base64-encoded متن`,base64url:`base64url-encoded متن`,json_string:`JSON متن`,e164:`د E.164 شمېره`,jwt:`JWT`,template_literal:`ورودي`},r={nan:`NaN`,number:`عدد`,array:`ارې`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=R(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`ناسم ورودي: باید instanceof ${e.expected} وای, مګر ${i} ترلاسه شو`:`ناسم ورودي: باید ${t} وای, مګر ${i} ترلاسه شو`}case`invalid_value`:return e.values.length===1?`ناسم ورودي: باید ${L(e.values[0])} وای`:`ناسم انتخاب: باید یو له ${P(e.values,`|`)} څخه وای`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`ډیر لوی: ${e.origin??`ارزښت`} باید ${n}${e.maximum.toString()} ${r.unit??`عنصرونه`} ولري`:`ډیر لوی: ${e.origin??`ارزښت`} باید ${n}${e.maximum.toString()} وي`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`ډیر کوچنی: ${e.origin} باید ${n}${e.minimum.toString()} ${r.unit} ولري`:`ډیر کوچنی: ${e.origin} باید ${n}${e.minimum.toString()} وي`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`ناسم متن: باید د "${t.prefix}" سره پیل شي`:t.format===`ends_with`?`ناسم متن: باید د "${t.suffix}" سره پای ته ورسيږي`:t.format===`includes`?`ناسم متن: باید "${t.includes}" ولري`:t.format===`regex`?`ناسم متن: باید د ${t.pattern} سره مطابقت ولري`:`${n[t.format]??e.format} ناسم دی`}case`not_multiple_of`:return`ناسم عدد: باید د ${e.divisor} مضرب وي`;case`unrecognized_keys`:return`ناسم ${e.keys.length>1?`کلیډونه`:`کلیډ`}: ${P(e.keys,`, `)}`;case`invalid_key`:return`ناسم کلیډ په ${e.origin} کې`;case`invalid_union`:return`ناسمه ورودي`;case`invalid_element`:return`ناسم عنصر په ${e.origin} کې`;default:return`ناسمه ورودي`}}}}));function Zp(){return{localeError:Qp()}}var Qp,$p=o((()=>{z(),Qp=()=>{let e={string:{unit:`znaków`,verb:`mieć`},file:{unit:`bajtów`,verb:`mieć`},array:{unit:`elementów`,verb:`mieć`},set:{unit:`elementów`,verb:`mieć`}};function t(t){return e[t]??null}let n={regex:`wyrażenie`,email:`adres email`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`data i godzina w formacie ISO`,date:`data w formacie ISO`,time:`godzina w formacie ISO`,duration:`czas trwania ISO`,ipv4:`adres IPv4`,ipv6:`adres IPv6`,cidrv4:`zakres IPv4`,cidrv6:`zakres IPv6`,base64:`ciąg znaków zakodowany w formacie base64`,base64url:`ciąg znaków zakodowany w formacie base64url`,json_string:`ciąg znaków w formacie JSON`,e164:`liczba E.164`,jwt:`JWT`,template_literal:`wejście`},r={nan:`NaN`,number:`liczba`,array:`tablica`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=R(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Nieprawidłowe dane wejściowe: oczekiwano instanceof ${e.expected}, otrzymano ${i}`:`Nieprawidłowe dane wejściowe: oczekiwano ${t}, otrzymano ${i}`}case`invalid_value`:return e.values.length===1?`Nieprawidłowe dane wejściowe: oczekiwano ${L(e.values[0])}`:`Nieprawidłowa opcja: oczekiwano jednej z wartości ${P(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Za duża wartość: oczekiwano, że ${e.origin??`wartość`} będzie mieć ${n}${e.maximum.toString()} ${r.unit??`elementów`}`:`Zbyt duż(y/a/e): oczekiwano, że ${e.origin??`wartość`} będzie wynosić ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Za mała wartość: oczekiwano, że ${e.origin??`wartość`} będzie mieć ${n}${e.minimum.toString()} ${r.unit??`elementów`}`:`Zbyt mał(y/a/e): oczekiwano, że ${e.origin??`wartość`} będzie wynosić ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Nieprawidłowy ciąg znaków: musi zaczynać się od "${t.prefix}"`:t.format===`ends_with`?`Nieprawidłowy ciąg znaków: musi kończyć się na "${t.suffix}"`:t.format===`includes`?`Nieprawidłowy ciąg znaków: musi zawierać "${t.includes}"`:t.format===`regex`?`Nieprawidłowy ciąg znaków: musi odpowiadać wzorcowi ${t.pattern}`:`Nieprawidłow(y/a/e) ${n[t.format]??e.format}`}case`not_multiple_of`:return`Nieprawidłowa liczba: musi być wielokrotnością ${e.divisor}`;case`unrecognized_keys`:return`Nierozpoznane klucze${e.keys.length>1?`s`:``}: ${P(e.keys,`, `)}`;case`invalid_key`:return`Nieprawidłowy klucz w ${e.origin}`;case`invalid_union`:return`Nieprawidłowe dane wejściowe`;case`invalid_element`:return`Nieprawidłowa wartość w ${e.origin}`;default:return`Nieprawidłowe dane wejściowe`}}}}));function em(){return{localeError:tm()}}var tm,nm=o((()=>{z(),tm=()=>{let e={string:{unit:`caracteres`,verb:`ter`},file:{unit:`bytes`,verb:`ter`},array:{unit:`itens`,verb:`ter`},set:{unit:`itens`,verb:`ter`}};function t(t){return e[t]??null}let n={regex:`padrão`,email:`endereço de e-mail`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`data e hora ISO`,date:`data ISO`,time:`hora ISO`,duration:`duração ISO`,ipv4:`endereço IPv4`,ipv6:`endereço IPv6`,cidrv4:`faixa de IPv4`,cidrv6:`faixa de IPv6`,base64:`texto codificado em base64`,base64url:`URL codificada em base64`,json_string:`texto JSON`,e164:`número E.164`,jwt:`JWT`,template_literal:`entrada`},r={nan:`NaN`,number:`número`,null:`nulo`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=R(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Tipo inválido: esperado instanceof ${e.expected}, recebido ${i}`:`Tipo inválido: esperado ${t}, recebido ${i}`}case`invalid_value`:return e.values.length===1?`Entrada inválida: esperado ${L(e.values[0])}`:`Opção inválida: esperada uma das ${P(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Muito grande: esperado que ${e.origin??`valor`} tivesse ${n}${e.maximum.toString()} ${r.unit??`elementos`}`:`Muito grande: esperado que ${e.origin??`valor`} fosse ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Muito pequeno: esperado que ${e.origin} tivesse ${n}${e.minimum.toString()} ${r.unit}`:`Muito pequeno: esperado que ${e.origin} fosse ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Texto inválido: deve começar com "${t.prefix}"`:t.format===`ends_with`?`Texto inválido: deve terminar com "${t.suffix}"`:t.format===`includes`?`Texto inválido: deve incluir "${t.includes}"`:t.format===`regex`?`Texto inválido: deve corresponder ao padrão ${t.pattern}`:`${n[t.format]??e.format} inválido`}case`not_multiple_of`:return`Número inválido: deve ser múltiplo de ${e.divisor}`;case`unrecognized_keys`:return`Chave${e.keys.length>1?`s`:``} desconhecida${e.keys.length>1?`s`:``}: ${P(e.keys,`, `)}`;case`invalid_key`:return`Chave inválida em ${e.origin}`;case`invalid_union`:return`Entrada inválida`;case`invalid_element`:return`Valor inválido em ${e.origin}`;default:return`Campo inválido`}}}}));function rm(){return{localeError:im()}}var im,am=o((()=>{z(),im=()=>{let e={string:{unit:`caractere`,verb:`să aibă`},file:{unit:`octeți`,verb:`să aibă`},array:{unit:`elemente`,verb:`să aibă`},set:{unit:`elemente`,verb:`să aibă`},map:{unit:`intrări`,verb:`să aibă`}};function t(t){return e[t]??null}let n={regex:`intrare`,email:`adresă de email`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`dată și oră ISO`,date:`dată ISO`,time:`oră ISO`,duration:`durată ISO`,ipv4:`adresă IPv4`,ipv6:`adresă IPv6`,mac:`adresă MAC`,cidrv4:`interval IPv4`,cidrv6:`interval IPv6`,base64:`șir codat base64`,base64url:`șir codat base64url`,json_string:`șir JSON`,e164:`număr E.164`,jwt:`JWT`,template_literal:`intrare`},r={nan:`NaN`,string:`șir`,number:`număr`,boolean:`boolean`,function:`funcție`,array:`matrice`,object:`obiect`,undefined:`nedefinit`,symbol:`simbol`,bigint:`număr mare`,void:`void`,never:`never`,map:`hartă`,set:`set`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=R(e.input);return`Intrare invalidă: așteptat ${t}, primit ${r[n]??n}`}case`invalid_value`:return e.values.length===1?`Intrare invalidă: așteptat ${L(e.values[0])}`:`Opțiune invalidă: așteptat una dintre ${P(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Prea mare: așteptat ca ${e.origin??`valoarea`} ${r.verb} ${n}${e.maximum.toString()} ${r.unit??`elemente`}`:`Prea mare: așteptat ca ${e.origin??`valoarea`} să fie ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Prea mic: așteptat ca ${e.origin} ${r.verb} ${n}${e.minimum.toString()} ${r.unit}`:`Prea mic: așteptat ca ${e.origin} să fie ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Șir invalid: trebuie să înceapă cu "${t.prefix}"`:t.format===`ends_with`?`Șir invalid: trebuie să se termine cu "${t.suffix}"`:t.format===`includes`?`Șir invalid: trebuie să includă "${t.includes}"`:t.format===`regex`?`Șir invalid: trebuie să se potrivească cu modelul ${t.pattern}`:`Format invalid: ${n[t.format]??e.format}`}case`not_multiple_of`:return`Număr invalid: trebuie să fie multiplu de ${e.divisor}`;case`unrecognized_keys`:return`Chei nerecunoscute: ${P(e.keys,`, `)}`;case`invalid_key`:return`Cheie invalidă în ${e.origin}`;case`invalid_union`:return`Intrare invalidă`;case`invalid_element`:return`Valoare invalidă în ${e.origin}`;default:return`Intrare invalidă`}}}}));function om(e,t,n,r){let i=Math.abs(e),a=i%10,o=i%100;return o>=11&&o<=19?r:a===1?t:a>=2&&a<=4?n:r}function sm(){return{localeError:cm()}}var cm,lm=o((()=>{z(),cm=()=>{let e={string:{unit:{one:`символ`,few:`символа`,many:`символов`},verb:`иметь`},file:{unit:{one:`байт`,few:`байта`,many:`байт`},verb:`иметь`},array:{unit:{one:`элемент`,few:`элемента`,many:`элементов`},verb:`иметь`},set:{unit:{one:`элемент`,few:`элемента`,many:`элементов`},verb:`иметь`}};function t(t){return e[t]??null}let n={regex:`ввод`,email:`email адрес`,url:`URL`,emoji:`эмодзи`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO дата и время`,date:`ISO дата`,time:`ISO время`,duration:`ISO длительность`,ipv4:`IPv4 адрес`,ipv6:`IPv6 адрес`,cidrv4:`IPv4 диапазон`,cidrv6:`IPv6 диапазон`,base64:`строка в формате base64`,base64url:`строка в формате base64url`,json_string:`JSON строка`,e164:`номер E.164`,jwt:`JWT`,template_literal:`ввод`},r={nan:`NaN`,number:`число`,array:`массив`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=R(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Неверный ввод: ожидалось instanceof ${e.expected}, получено ${i}`:`Неверный ввод: ожидалось ${t}, получено ${i}`}case`invalid_value`:return e.values.length===1?`Неверный ввод: ожидалось ${L(e.values[0])}`:`Неверный вариант: ожидалось одно из ${P(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);if(r){let t=om(Number(e.maximum),r.unit.one,r.unit.few,r.unit.many);return`Слишком большое значение: ожидалось, что ${e.origin??`значение`} будет иметь ${n}${e.maximum.toString()} ${t}`}return`Слишком большое значение: ожидалось, что ${e.origin??`значение`} будет ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);if(r){let t=om(Number(e.minimum),r.unit.one,r.unit.few,r.unit.many);return`Слишком маленькое значение: ожидалось, что ${e.origin} будет иметь ${n}${e.minimum.toString()} ${t}`}return`Слишком маленькое значение: ожидалось, что ${e.origin} будет ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Неверная строка: должна начинаться с "${t.prefix}"`:t.format===`ends_with`?`Неверная строка: должна заканчиваться на "${t.suffix}"`:t.format===`includes`?`Неверная строка: должна содержать "${t.includes}"`:t.format===`regex`?`Неверная строка: должна соответствовать шаблону ${t.pattern}`:`Неверный ${n[t.format]??e.format}`}case`not_multiple_of`:return`Неверное число: должно быть кратным ${e.divisor}`;case`unrecognized_keys`:return`Нераспознанн${e.keys.length>1?`ые`:`ый`} ключ${e.keys.length>1?`и`:``}: ${P(e.keys,`, `)}`;case`invalid_key`:return`Неверный ключ в ${e.origin}`;case`invalid_union`:return`Неверные входные данные`;case`invalid_element`:return`Неверное значение в ${e.origin}`;default:return`Неверные входные данные`}}}}));function um(){return{localeError:dm()}}var dm,fm=o((()=>{z(),dm=()=>{let e={string:{unit:`znakov`,verb:`imeti`},file:{unit:`bajtov`,verb:`imeti`},array:{unit:`elementov`,verb:`imeti`},set:{unit:`elementov`,verb:`imeti`}};function t(t){return e[t]??null}let n={regex:`vnos`,email:`e-poštni naslov`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO datum in čas`,date:`ISO datum`,time:`ISO čas`,duration:`ISO trajanje`,ipv4:`IPv4 naslov`,ipv6:`IPv6 naslov`,cidrv4:`obseg IPv4`,cidrv6:`obseg IPv6`,base64:`base64 kodiran niz`,base64url:`base64url kodiran niz`,json_string:`JSON niz`,e164:`E.164 številka`,jwt:`JWT`,template_literal:`vnos`},r={nan:`NaN`,number:`število`,array:`tabela`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=R(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Neveljaven vnos: pričakovano instanceof ${e.expected}, prejeto ${i}`:`Neveljaven vnos: pričakovano ${t}, prejeto ${i}`}case`invalid_value`:return e.values.length===1?`Neveljaven vnos: pričakovano ${L(e.values[0])}`:`Neveljavna možnost: pričakovano eno izmed ${P(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Preveliko: pričakovano, da bo ${e.origin??`vrednost`} imelo ${n}${e.maximum.toString()} ${r.unit??`elementov`}`:`Preveliko: pričakovano, da bo ${e.origin??`vrednost`} ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Premajhno: pričakovano, da bo ${e.origin} imelo ${n}${e.minimum.toString()} ${r.unit}`:`Premajhno: pričakovano, da bo ${e.origin} ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Neveljaven niz: mora se začeti z "${t.prefix}"`:t.format===`ends_with`?`Neveljaven niz: mora se končati z "${t.suffix}"`:t.format===`includes`?`Neveljaven niz: mora vsebovati "${t.includes}"`:t.format===`regex`?`Neveljaven niz: mora ustrezati vzorcu ${t.pattern}`:`Neveljaven ${n[t.format]??e.format}`}case`not_multiple_of`:return`Neveljavno število: mora biti večkratnik ${e.divisor}`;case`unrecognized_keys`:return`Neprepoznan${e.keys.length>1?`i ključi`:` ključ`}: ${P(e.keys,`, `)}`;case`invalid_key`:return`Neveljaven ključ v ${e.origin}`;case`invalid_union`:return`Neveljaven vnos`;case`invalid_element`:return`Neveljavna vrednost v ${e.origin}`;default:return`Neveljaven vnos`}}}}));function pm(){return{localeError:mm()}}var mm,hm=o((()=>{z(),mm=()=>{let e={string:{unit:`tecken`,verb:`att ha`},file:{unit:`bytes`,verb:`att ha`},array:{unit:`objekt`,verb:`att innehålla`},set:{unit:`objekt`,verb:`att innehålla`}};function t(t){return e[t]??null}let n={regex:`reguljärt uttryck`,email:`e-postadress`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO-datum och tid`,date:`ISO-datum`,time:`ISO-tid`,duration:`ISO-varaktighet`,ipv4:`IPv4-intervall`,ipv6:`IPv6-intervall`,cidrv4:`IPv4-spektrum`,cidrv6:`IPv6-spektrum`,base64:`base64-kodad sträng`,base64url:`base64url-kodad sträng`,json_string:`JSON-sträng`,e164:`E.164-nummer`,jwt:`JWT`,template_literal:`mall-literal`},r={nan:`NaN`,number:`antal`,array:`lista`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=R(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Ogiltig inmatning: förväntat instanceof ${e.expected}, fick ${i}`:`Ogiltig inmatning: förväntat ${t}, fick ${i}`}case`invalid_value`:return e.values.length===1?`Ogiltig inmatning: förväntat ${L(e.values[0])}`:`Ogiltigt val: förväntade en av ${P(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`För stor(t): förväntade ${e.origin??`värdet`} att ha ${n}${e.maximum.toString()} ${r.unit??`element`}`:`För stor(t): förväntat ${e.origin??`värdet`} att ha ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`För lite(t): förväntade ${e.origin??`värdet`} att ha ${n}${e.minimum.toString()} ${r.unit}`:`För lite(t): förväntade ${e.origin??`värdet`} att ha ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Ogiltig sträng: måste börja med "${t.prefix}"`:t.format===`ends_with`?`Ogiltig sträng: måste sluta med "${t.suffix}"`:t.format===`includes`?`Ogiltig sträng: måste innehålla "${t.includes}"`:t.format===`regex`?`Ogiltig sträng: måste matcha mönstret "${t.pattern}"`:`Ogiltig(t) ${n[t.format]??e.format}`}case`not_multiple_of`:return`Ogiltigt tal: måste vara en multipel av ${e.divisor}`;case`unrecognized_keys`:return`${e.keys.length>1?`Okända nycklar`:`Okänd nyckel`}: ${P(e.keys,`, `)}`;case`invalid_key`:return`Ogiltig nyckel i ${e.origin??`värdet`}`;case`invalid_union`:return`Ogiltig input`;case`invalid_element`:return`Ogiltigt värde i ${e.origin??`värdet`}`;default:return`Ogiltig input`}}}}));function gm(){return{localeError:_m()}}var _m,vm=o((()=>{z(),_m=()=>{let e={string:{unit:`எழுத்துக்கள்`,verb:`கொண்டிருக்க வேண்டும்`},file:{unit:`பைட்டுகள்`,verb:`கொண்டிருக்க வேண்டும்`},array:{unit:`உறுப்புகள்`,verb:`கொண்டிருக்க வேண்டும்`},set:{unit:`உறுப்புகள்`,verb:`கொண்டிருக்க வேண்டும்`}};function t(t){return e[t]??null}let n={regex:`உள்ளீடு`,email:`மின்னஞ்சல் முகவரி`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO தேதி நேரம்`,date:`ISO தேதி`,time:`ISO நேரம்`,duration:`ISO கால அளவு`,ipv4:`IPv4 முகவரி`,ipv6:`IPv6 முகவரி`,cidrv4:`IPv4 வரம்பு`,cidrv6:`IPv6 வரம்பு`,base64:`base64-encoded சரம்`,base64url:`base64url-encoded சரம்`,json_string:`JSON சரம்`,e164:`E.164 எண்`,jwt:`JWT`,template_literal:`input`},r={nan:`NaN`,number:`எண்`,array:`அணி`,null:`வெறுமை`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=R(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது instanceof ${e.expected}, பெறப்பட்டது ${i}`:`தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது ${t}, பெறப்பட்டது ${i}`}case`invalid_value`:return e.values.length===1?`தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது ${L(e.values[0])}`:`தவறான விருப்பம்: எதிர்பார்க்கப்பட்டது ${P(e.values,`|`)} இல் ஒன்று`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`மிக பெரியது: எதிர்பார்க்கப்பட்டது ${e.origin??`மதிப்பு`} ${n}${e.maximum.toString()} ${r.unit??`உறுப்புகள்`} ஆக இருக்க வேண்டும்`:`மிக பெரியது: எதிர்பார்க்கப்பட்டது ${e.origin??`மதிப்பு`} ${n}${e.maximum.toString()} ஆக இருக்க வேண்டும்`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`மிகச் சிறியது: எதிர்பார்க்கப்பட்டது ${e.origin} ${n}${e.minimum.toString()} ${r.unit} ஆக இருக்க வேண்டும்`:`மிகச் சிறியது: எதிர்பார்க்கப்பட்டது ${e.origin} ${n}${e.minimum.toString()} ஆக இருக்க வேண்டும்`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`தவறான சரம்: "${t.prefix}" இல் தொடங்க வேண்டும்`:t.format===`ends_with`?`தவறான சரம்: "${t.suffix}" இல் முடிவடைய வேண்டும்`:t.format===`includes`?`தவறான சரம்: "${t.includes}" ஐ உள்ளடக்க வேண்டும்`:t.format===`regex`?`தவறான சரம்: ${t.pattern} முறைபாட்டுடன் பொருந்த வேண்டும்`:`தவறான ${n[t.format]??e.format}`}case`not_multiple_of`:return`தவறான எண்: ${e.divisor} இன் பலமாக இருக்க வேண்டும்`;case`unrecognized_keys`:return`அடையாளம் தெரியாத விசை${e.keys.length>1?`கள்`:``}: ${P(e.keys,`, `)}`;case`invalid_key`:return`${e.origin} இல் தவறான விசை`;case`invalid_union`:return`தவறான உள்ளீடு`;case`invalid_element`:return`${e.origin} இல் தவறான மதிப்பு`;default:return`தவறான உள்ளீடு`}}}}));function ym(){return{localeError:bm()}}var bm,xm=o((()=>{z(),bm=()=>{let e={string:{unit:`ตัวอักษร`,verb:`ควรมี`},file:{unit:`ไบต์`,verb:`ควรมี`},array:{unit:`รายการ`,verb:`ควรมี`},set:{unit:`รายการ`,verb:`ควรมี`}};function t(t){return e[t]??null}let n={regex:`ข้อมูลที่ป้อน`,email:`ที่อยู่อีเมล`,url:`URL`,emoji:`อิโมจิ`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`วันที่เวลาแบบ ISO`,date:`วันที่แบบ ISO`,time:`เวลาแบบ ISO`,duration:`ช่วงเวลาแบบ ISO`,ipv4:`ที่อยู่ IPv4`,ipv6:`ที่อยู่ IPv6`,cidrv4:`ช่วง IP แบบ IPv4`,cidrv6:`ช่วง IP แบบ IPv6`,base64:`ข้อความแบบ Base64`,base64url:`ข้อความแบบ Base64 สำหรับ URL`,json_string:`ข้อความแบบ JSON`,e164:`เบอร์โทรศัพท์ระหว่างประเทศ (E.164)`,jwt:`โทเคน JWT`,template_literal:`ข้อมูลที่ป้อน`},r={nan:`NaN`,number:`ตัวเลข`,array:`อาร์เรย์ (Array)`,null:`ไม่มีค่า (null)`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=R(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`ประเภทข้อมูลไม่ถูกต้อง: ควรเป็น instanceof ${e.expected} แต่ได้รับ ${i}`:`ประเภทข้อมูลไม่ถูกต้อง: ควรเป็น ${t} แต่ได้รับ ${i}`}case`invalid_value`:return e.values.length===1?`ค่าไม่ถูกต้อง: ควรเป็น ${L(e.values[0])}`:`ตัวเลือกไม่ถูกต้อง: ควรเป็นหนึ่งใน ${P(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`ไม่เกิน`:`น้อยกว่า`,r=t(e.origin);return r?`เกินกำหนด: ${e.origin??`ค่า`} ควรมี${n} ${e.maximum.toString()} ${r.unit??`รายการ`}`:`เกินกำหนด: ${e.origin??`ค่า`} ควรมี${n} ${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`อย่างน้อย`:`มากกว่า`,r=t(e.origin);return r?`น้อยกว่ากำหนด: ${e.origin} ควรมี${n} ${e.minimum.toString()} ${r.unit}`:`น้อยกว่ากำหนด: ${e.origin} ควรมี${n} ${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`รูปแบบไม่ถูกต้อง: ข้อความต้องขึ้นต้นด้วย "${t.prefix}"`:t.format===`ends_with`?`รูปแบบไม่ถูกต้อง: ข้อความต้องลงท้ายด้วย "${t.suffix}"`:t.format===`includes`?`รูปแบบไม่ถูกต้อง: ข้อความต้องมี "${t.includes}" อยู่ในข้อความ`:t.format===`regex`?`รูปแบบไม่ถูกต้อง: ต้องตรงกับรูปแบบที่กำหนด ${t.pattern}`:`รูปแบบไม่ถูกต้อง: ${n[t.format]??e.format}`}case`not_multiple_of`:return`ตัวเลขไม่ถูกต้อง: ต้องเป็นจำนวนที่หารด้วย ${e.divisor} ได้ลงตัว`;case`unrecognized_keys`:return`พบคีย์ที่ไม่รู้จัก: ${P(e.keys,`, `)}`;case`invalid_key`:return`คีย์ไม่ถูกต้องใน ${e.origin}`;case`invalid_union`:return`ข้อมูลไม่ถูกต้อง: ไม่ตรงกับรูปแบบยูเนียนที่กำหนดไว้`;case`invalid_element`:return`ข้อมูลไม่ถูกต้องใน ${e.origin}`;default:return`ข้อมูลไม่ถูกต้อง`}}}}));function Sm(){return{localeError:Cm()}}var Cm,wm=o((()=>{z(),Cm=()=>{let e={string:{unit:`karakter`,verb:`olmalı`},file:{unit:`bayt`,verb:`olmalı`},array:{unit:`öğe`,verb:`olmalı`},set:{unit:`öğe`,verb:`olmalı`}};function t(t){return e[t]??null}let n={regex:`girdi`,email:`e-posta adresi`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO tarih ve saat`,date:`ISO tarih`,time:`ISO saat`,duration:`ISO süre`,ipv4:`IPv4 adresi`,ipv6:`IPv6 adresi`,cidrv4:`IPv4 aralığı`,cidrv6:`IPv6 aralığı`,base64:`base64 ile şifrelenmiş metin`,base64url:`base64url ile şifrelenmiş metin`,json_string:`JSON dizesi`,e164:`E.164 sayısı`,jwt:`JWT`,template_literal:`Şablon dizesi`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=R(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Geçersiz değer: beklenen instanceof ${e.expected}, alınan ${i}`:`Geçersiz değer: beklenen ${t}, alınan ${i}`}case`invalid_value`:return e.values.length===1?`Geçersiz değer: beklenen ${L(e.values[0])}`:`Geçersiz seçenek: aşağıdakilerden biri olmalı: ${P(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Çok büyük: beklenen ${e.origin??`değer`} ${n}${e.maximum.toString()} ${r.unit??`öğe`}`:`Çok büyük: beklenen ${e.origin??`değer`} ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Çok küçük: beklenen ${e.origin} ${n}${e.minimum.toString()} ${r.unit}`:`Çok küçük: beklenen ${e.origin} ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Geçersiz metin: "${t.prefix}" ile başlamalı`:t.format===`ends_with`?`Geçersiz metin: "${t.suffix}" ile bitmeli`:t.format===`includes`?`Geçersiz metin: "${t.includes}" içermeli`:t.format===`regex`?`Geçersiz metin: ${t.pattern} desenine uymalı`:`Geçersiz ${n[t.format]??e.format}`}case`not_multiple_of`:return`Geçersiz sayı: ${e.divisor} ile tam bölünebilmeli`;case`unrecognized_keys`:return`Tanınmayan anahtar${e.keys.length>1?`lar`:``}: ${P(e.keys,`, `)}`;case`invalid_key`:return`${e.origin} içinde geçersiz anahtar`;case`invalid_union`:return`Geçersiz değer`;case`invalid_element`:return`${e.origin} içinde geçersiz değer`;default:return`Geçersiz değer`}}}}));function Tm(){return{localeError:Em()}}var Em,Dm=o((()=>{z(),Em=()=>{let e={string:{unit:`символів`,verb:`матиме`},file:{unit:`байтів`,verb:`матиме`},array:{unit:`елементів`,verb:`матиме`},set:{unit:`елементів`,verb:`матиме`}};function t(t){return e[t]??null}let n={regex:`вхідні дані`,email:`адреса електронної пошти`,url:`URL`,emoji:`емодзі`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`дата та час ISO`,date:`дата ISO`,time:`час ISO`,duration:`тривалість ISO`,ipv4:`адреса IPv4`,ipv6:`адреса IPv6`,cidrv4:`діапазон IPv4`,cidrv6:`діапазон IPv6`,base64:`рядок у кодуванні base64`,base64url:`рядок у кодуванні base64url`,json_string:`рядок JSON`,e164:`номер E.164`,jwt:`JWT`,template_literal:`вхідні дані`},r={nan:`NaN`,number:`число`,array:`масив`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=R(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Неправильні вхідні дані: очікується instanceof ${e.expected}, отримано ${i}`:`Неправильні вхідні дані: очікується ${t}, отримано ${i}`}case`invalid_value`:return e.values.length===1?`Неправильні вхідні дані: очікується ${L(e.values[0])}`:`Неправильна опція: очікується одне з ${P(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Занадто велике: очікується, що ${e.origin??`значення`} ${r.verb} ${n}${e.maximum.toString()} ${r.unit??`елементів`}`:`Занадто велике: очікується, що ${e.origin??`значення`} буде ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Занадто мале: очікується, що ${e.origin} ${r.verb} ${n}${e.minimum.toString()} ${r.unit}`:`Занадто мале: очікується, що ${e.origin} буде ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Неправильний рядок: повинен починатися з "${t.prefix}"`:t.format===`ends_with`?`Неправильний рядок: повинен закінчуватися на "${t.suffix}"`:t.format===`includes`?`Неправильний рядок: повинен містити "${t.includes}"`:t.format===`regex`?`Неправильний рядок: повинен відповідати шаблону ${t.pattern}`:`Неправильний ${n[t.format]??e.format}`}case`not_multiple_of`:return`Неправильне число: повинно бути кратним ${e.divisor}`;case`unrecognized_keys`:return`Нерозпізнаний ключ${e.keys.length>1?`і`:``}: ${P(e.keys,`, `)}`;case`invalid_key`:return`Неправильний ключ у ${e.origin}`;case`invalid_union`:return`Неправильні вхідні дані`;case`invalid_element`:return`Неправильне значення у ${e.origin}`;default:return`Неправильні вхідні дані`}}}}));function Om(){return Tm()}var km=o((()=>{Dm()}));function Am(){return{localeError:jm()}}var jm,Mm=o((()=>{z(),jm=()=>{let e={string:{unit:`حروف`,verb:`ہونا`},file:{unit:`بائٹس`,verb:`ہونا`},array:{unit:`آئٹمز`,verb:`ہونا`},set:{unit:`آئٹمز`,verb:`ہونا`}};function t(t){return e[t]??null}let n={regex:`ان پٹ`,email:`ای میل ایڈریس`,url:`یو آر ایل`,emoji:`ایموجی`,uuid:`یو یو آئی ڈی`,uuidv4:`یو یو آئی ڈی وی 4`,uuidv6:`یو یو آئی ڈی وی 6`,nanoid:`نینو آئی ڈی`,guid:`جی یو آئی ڈی`,cuid:`سی یو آئی ڈی`,cuid2:`سی یو آئی ڈی 2`,ulid:`یو ایل آئی ڈی`,xid:`ایکس آئی ڈی`,ksuid:`کے ایس یو آئی ڈی`,datetime:`آئی ایس او ڈیٹ ٹائم`,date:`آئی ایس او تاریخ`,time:`آئی ایس او وقت`,duration:`آئی ایس او مدت`,ipv4:`آئی پی وی 4 ایڈریس`,ipv6:`آئی پی وی 6 ایڈریس`,cidrv4:`آئی پی وی 4 رینج`,cidrv6:`آئی پی وی 6 رینج`,base64:`بیس 64 ان کوڈڈ سٹرنگ`,base64url:`بیس 64 یو آر ایل ان کوڈڈ سٹرنگ`,json_string:`جے ایس او این سٹرنگ`,e164:`ای 164 نمبر`,jwt:`جے ڈبلیو ٹی`,template_literal:`ان پٹ`},r={nan:`NaN`,number:`نمبر`,array:`آرے`,null:`نل`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=R(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`غلط ان پٹ: instanceof ${e.expected} متوقع تھا، ${i} موصول ہوا`:`غلط ان پٹ: ${t} متوقع تھا، ${i} موصول ہوا`}case`invalid_value`:return e.values.length===1?`غلط ان پٹ: ${L(e.values[0])} متوقع تھا`:`غلط آپشن: ${P(e.values,`|`)} میں سے ایک متوقع تھا`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`بہت بڑا: ${e.origin??`ویلیو`} کے ${n}${e.maximum.toString()} ${r.unit??`عناصر`} ہونے متوقع تھے`:`بہت بڑا: ${e.origin??`ویلیو`} کا ${n}${e.maximum.toString()} ہونا متوقع تھا`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`بہت چھوٹا: ${e.origin} کے ${n}${e.minimum.toString()} ${r.unit} ہونے متوقع تھے`:`بہت چھوٹا: ${e.origin} کا ${n}${e.minimum.toString()} ہونا متوقع تھا`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`غلط سٹرنگ: "${t.prefix}" سے شروع ہونا چاہیے`:t.format===`ends_with`?`غلط سٹرنگ: "${t.suffix}" پر ختم ہونا چاہیے`:t.format===`includes`?`غلط سٹرنگ: "${t.includes}" شامل ہونا چاہیے`:t.format===`regex`?`غلط سٹرنگ: پیٹرن ${t.pattern} سے میچ ہونا چاہیے`:`غلط ${n[t.format]??e.format}`}case`not_multiple_of`:return`غلط نمبر: ${e.divisor} کا مضاعف ہونا چاہیے`;case`unrecognized_keys`:return`غیر تسلیم شدہ کی${e.keys.length>1?`ز`:``}: ${P(e.keys,`، `)}`;case`invalid_key`:return`${e.origin} میں غلط کی`;case`invalid_union`:return`غلط ان پٹ`;case`invalid_element`:return`${e.origin} میں غلط ویلیو`;default:return`غلط ان پٹ`}}}}));function Nm(){return{localeError:Pm()}}var Pm,Fm=o((()=>{z(),Pm=()=>{let e={string:{unit:`belgi`,verb:`bo‘lishi kerak`},file:{unit:`bayt`,verb:`bo‘lishi kerak`},array:{unit:`element`,verb:`bo‘lishi kerak`},set:{unit:`element`,verb:`bo‘lishi kerak`},map:{unit:`yozuv`,verb:`bo‘lishi kerak`}};function t(t){return e[t]??null}let n={regex:`kirish`,email:`elektron pochta manzili`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO sana va vaqti`,date:`ISO sana`,time:`ISO vaqt`,duration:`ISO davomiylik`,ipv4:`IPv4 manzil`,ipv6:`IPv6 manzil`,mac:`MAC manzil`,cidrv4:`IPv4 diapazon`,cidrv6:`IPv6 diapazon`,base64:`base64 kodlangan satr`,base64url:`base64url kodlangan satr`,json_string:`JSON satr`,e164:`E.164 raqam`,jwt:`JWT`,template_literal:`kirish`},r={nan:`NaN`,number:`raqam`,array:`massiv`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=R(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Noto‘g‘ri kirish: kutilgan instanceof ${e.expected}, qabul qilingan ${i}`:`Noto‘g‘ri kirish: kutilgan ${t}, qabul qilingan ${i}`}case`invalid_value`:return e.values.length===1?`Noto‘g‘ri kirish: kutilgan ${L(e.values[0])}`:`Noto‘g‘ri variant: quyidagilardan biri kutilgan ${P(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Juda katta: kutilgan ${e.origin??`qiymat`} ${n}${e.maximum.toString()} ${r.unit} ${r.verb}`:`Juda katta: kutilgan ${e.origin??`qiymat`} ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Juda kichik: kutilgan ${e.origin} ${n}${e.minimum.toString()} ${r.unit} ${r.verb}`:`Juda kichik: kutilgan ${e.origin} ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Noto‘g‘ri satr: "${t.prefix}" bilan boshlanishi kerak`:t.format===`ends_with`?`Noto‘g‘ri satr: "${t.suffix}" bilan tugashi kerak`:t.format===`includes`?`Noto‘g‘ri satr: "${t.includes}" ni o‘z ichiga olishi kerak`:t.format===`regex`?`Noto‘g‘ri satr: ${t.pattern} shabloniga mos kelishi kerak`:`Noto‘g‘ri ${n[t.format]??e.format}`}case`not_multiple_of`:return`Noto‘g‘ri raqam: ${e.divisor} ning karralisi bo‘lishi kerak`;case`unrecognized_keys`:return`Noma’lum kalit${e.keys.length>1?`lar`:``}: ${P(e.keys,`, `)}`;case`invalid_key`:return`${e.origin} dagi kalit noto‘g‘ri`;case`invalid_union`:return`Noto‘g‘ri kirish`;case`invalid_element`:return`${e.origin} da noto‘g‘ri qiymat`;default:return`Noto‘g‘ri kirish`}}}}));function Im(){return{localeError:Lm()}}var Lm,Rm=o((()=>{z(),Lm=()=>{let e={string:{unit:`ký tự`,verb:`có`},file:{unit:`byte`,verb:`có`},array:{unit:`phần tử`,verb:`có`},set:{unit:`phần tử`,verb:`có`}};function t(t){return e[t]??null}let n={regex:`đầu vào`,email:`địa chỉ email`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ngày giờ ISO`,date:`ngày ISO`,time:`giờ ISO`,duration:`khoảng thời gian ISO`,ipv4:`địa chỉ IPv4`,ipv6:`địa chỉ IPv6`,cidrv4:`dải IPv4`,cidrv6:`dải IPv6`,base64:`chuỗi mã hóa base64`,base64url:`chuỗi mã hóa base64url`,json_string:`chuỗi JSON`,e164:`số E.164`,jwt:`JWT`,template_literal:`đầu vào`},r={nan:`NaN`,number:`số`,array:`mảng`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=R(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Đầu vào không hợp lệ: mong đợi instanceof ${e.expected}, nhận được ${i}`:`Đầu vào không hợp lệ: mong đợi ${t}, nhận được ${i}`}case`invalid_value`:return e.values.length===1?`Đầu vào không hợp lệ: mong đợi ${L(e.values[0])}`:`Tùy chọn không hợp lệ: mong đợi một trong các giá trị ${P(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Quá lớn: mong đợi ${e.origin??`giá trị`} ${r.verb} ${n}${e.maximum.toString()} ${r.unit??`phần tử`}`:`Quá lớn: mong đợi ${e.origin??`giá trị`} ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Quá nhỏ: mong đợi ${e.origin} ${r.verb} ${n}${e.minimum.toString()} ${r.unit}`:`Quá nhỏ: mong đợi ${e.origin} ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Chuỗi không hợp lệ: phải bắt đầu bằng "${t.prefix}"`:t.format===`ends_with`?`Chuỗi không hợp lệ: phải kết thúc bằng "${t.suffix}"`:t.format===`includes`?`Chuỗi không hợp lệ: phải bao gồm "${t.includes}"`:t.format===`regex`?`Chuỗi không hợp lệ: phải khớp với mẫu ${t.pattern}`:`${n[t.format]??e.format} không hợp lệ`}case`not_multiple_of`:return`Số không hợp lệ: phải là bội số của ${e.divisor}`;case`unrecognized_keys`:return`Khóa không được nhận dạng: ${P(e.keys,`, `)}`;case`invalid_key`:return`Khóa không hợp lệ trong ${e.origin}`;case`invalid_union`:return`Đầu vào không hợp lệ`;case`invalid_element`:return`Giá trị không hợp lệ trong ${e.origin}`;default:return`Đầu vào không hợp lệ`}}}}));function zm(){return{localeError:Bm()}}var Bm,Vm=o((()=>{z(),Bm=()=>{let e={string:{unit:`字符`,verb:`包含`},file:{unit:`字节`,verb:`包含`},array:{unit:`项`,verb:`包含`},set:{unit:`项`,verb:`包含`}};function t(t){return e[t]??null}let n={regex:`输入`,email:`电子邮件`,url:`URL`,emoji:`表情符号`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO日期时间`,date:`ISO日期`,time:`ISO时间`,duration:`ISO时长`,ipv4:`IPv4地址`,ipv6:`IPv6地址`,cidrv4:`IPv4网段`,cidrv6:`IPv6网段`,base64:`base64编码字符串`,base64url:`base64url编码字符串`,json_string:`JSON字符串`,e164:`E.164号码`,jwt:`JWT`,template_literal:`输入`},r={nan:`NaN`,number:`数字`,array:`数组`,null:`空值(null)`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=R(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`无效输入:期望 instanceof ${e.expected},实际接收 ${i}`:`无效输入:期望 ${t},实际接收 ${i}`}case`invalid_value`:return e.values.length===1?`无效输入:期望 ${L(e.values[0])}`:`无效选项:期望以下之一 ${P(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`数值过大:期望 ${e.origin??`值`} ${n}${e.maximum.toString()} ${r.unit??`个元素`}`:`数值过大:期望 ${e.origin??`值`} ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`数值过小:期望 ${e.origin} ${n}${e.minimum.toString()} ${r.unit}`:`数值过小:期望 ${e.origin} ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`无效字符串:必须以 "${t.prefix}" 开头`:t.format===`ends_with`?`无效字符串:必须以 "${t.suffix}" 结尾`:t.format===`includes`?`无效字符串:必须包含 "${t.includes}"`:t.format===`regex`?`无效字符串:必须满足正则表达式 ${t.pattern}`:`无效${n[t.format]??e.format}`}case`not_multiple_of`:return`无效数字:必须是 ${e.divisor} 的倍数`;case`unrecognized_keys`:return`出现未知的键(key): ${P(e.keys,`, `)}`;case`invalid_key`:return`${e.origin} 中的键(key)无效`;case`invalid_union`:return`无效输入`;case`invalid_element`:return`${e.origin} 中包含无效值(value)`;default:return`无效输入`}}}}));function Hm(){return{localeError:Um()}}var Um,Wm=o((()=>{z(),Um=()=>{let e={string:{unit:`字元`,verb:`擁有`},file:{unit:`位元組`,verb:`擁有`},array:{unit:`項目`,verb:`擁有`},set:{unit:`項目`,verb:`擁有`}};function t(t){return e[t]??null}let n={regex:`輸入`,email:`郵件地址`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO 日期時間`,date:`ISO 日期`,time:`ISO 時間`,duration:`ISO 期間`,ipv4:`IPv4 位址`,ipv6:`IPv6 位址`,cidrv4:`IPv4 範圍`,cidrv6:`IPv6 範圍`,base64:`base64 編碼字串`,base64url:`base64url 編碼字串`,json_string:`JSON 字串`,e164:`E.164 數值`,jwt:`JWT`,template_literal:`輸入`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=R(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`無效的輸入值:預期為 instanceof ${e.expected},但收到 ${i}`:`無效的輸入值:預期為 ${t},但收到 ${i}`}case`invalid_value`:return e.values.length===1?`無效的輸入值:預期為 ${L(e.values[0])}`:`無效的選項:預期為以下其中之一 ${P(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`數值過大:預期 ${e.origin??`值`} 應為 ${n}${e.maximum.toString()} ${r.unit??`個元素`}`:`數值過大:預期 ${e.origin??`值`} 應為 ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`數值過小:預期 ${e.origin} 應為 ${n}${e.minimum.toString()} ${r.unit}`:`數值過小:預期 ${e.origin} 應為 ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`無效的字串:必須以 "${t.prefix}" 開頭`:t.format===`ends_with`?`無效的字串:必須以 "${t.suffix}" 結尾`:t.format===`includes`?`無效的字串:必須包含 "${t.includes}"`:t.format===`regex`?`無效的字串:必須符合格式 ${t.pattern}`:`無效的 ${n[t.format]??e.format}`}case`not_multiple_of`:return`無效的數字:必須為 ${e.divisor} 的倍數`;case`unrecognized_keys`:return`無法識別的鍵值${e.keys.length>1?`們`:``}:${P(e.keys,`、`)}`;case`invalid_key`:return`${e.origin} 中有無效的鍵值`;case`invalid_union`:return`無效的輸入值`;case`invalid_element`:return`${e.origin} 中有無效的值`;default:return`無效的輸入值`}}}}));function Gm(){return{localeError:Km()}}var Km,qm=o((()=>{z(),Km=()=>{let e={string:{unit:`àmi`,verb:`ní`},file:{unit:`bytes`,verb:`ní`},array:{unit:`nkan`,verb:`ní`},set:{unit:`nkan`,verb:`ní`}};function t(t){return e[t]??null}let n={regex:`ẹ̀rọ ìbáwọlé`,email:`àdírẹ́sì ìmẹ́lì`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`àkókò ISO`,date:`ọjọ́ ISO`,time:`àkókò ISO`,duration:`àkókò tó pé ISO`,ipv4:`àdírẹ́sì IPv4`,ipv6:`àdírẹ́sì IPv6`,cidrv4:`àgbègbè IPv4`,cidrv6:`àgbègbè IPv6`,base64:`ọ̀rọ̀ tí a kọ́ ní base64`,base64url:`ọ̀rọ̀ base64url`,json_string:`ọ̀rọ̀ JSON`,e164:`nọ́mbà E.164`,jwt:`JWT`,template_literal:`ẹ̀rọ ìbáwọlé`},r={nan:`NaN`,number:`nọ́mbà`,array:`akopọ`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=R(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Ìbáwọlé aṣìṣe: a ní láti fi instanceof ${e.expected}, àmọ̀ a rí ${i}`:`Ìbáwọlé aṣìṣe: a ní láti fi ${t}, àmọ̀ a rí ${i}`}case`invalid_value`:return e.values.length===1?`Ìbáwọlé aṣìṣe: a ní láti fi ${L(e.values[0])}`:`Àṣàyàn aṣìṣe: yan ọ̀kan lára ${P(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Tó pọ̀ jù: a ní láti jẹ́ pé ${e.origin??`iye`} ${r.verb} ${n}${e.maximum} ${r.unit}`:`Tó pọ̀ jù: a ní láti jẹ́ ${n}${e.maximum}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Kéré ju: a ní láti jẹ́ pé ${e.origin} ${r.verb} ${n}${e.minimum} ${r.unit}`:`Kéré ju: a ní láti jẹ́ ${n}${e.minimum}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ bẹ̀rẹ̀ pẹ̀lú "${t.prefix}"`:t.format===`ends_with`?`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ parí pẹ̀lú "${t.suffix}"`:t.format===`includes`?`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ ní "${t.includes}"`:t.format===`regex`?`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ bá àpẹẹrẹ mu ${t.pattern}`:`Aṣìṣe: ${n[t.format]??e.format}`}case`not_multiple_of`:return`Nọ́mbà aṣìṣe: gbọ́dọ̀ jẹ́ èyà pípín ti ${e.divisor}`;case`unrecognized_keys`:return`Bọtìnì àìmọ̀: ${P(e.keys,`, `)}`;case`invalid_key`:return`Bọtìnì aṣìṣe nínú ${e.origin}`;case`invalid_union`:return`Ìbáwọlé aṣìṣe`;case`invalid_element`:return`Iye aṣìṣe nínú ${e.origin}`;default:return`Ìbáwọlé aṣìṣe`}}}})),Jm=c({ar:()=>Yd,az:()=>Qd,be:()=>nf,bg:()=>of,ca:()=>lf,cs:()=>ff,da:()=>hf,de:()=>vf,el:()=>xf,en:()=>wf,eo:()=>Df,es:()=>Af,fa:()=>Nf,fi:()=>If,fr:()=>zf,frCA:()=>Hf,he:()=>Gf,hr:()=>Jf,hu:()=>Zf,hy:()=>np,id:()=>ap,is:()=>cp,it:()=>dp,ja:()=>mp,ka:()=>_p,kh:()=>Cp,km:()=>bp,ko:()=>Tp,lt:()=>kp,mk:()=>Np,ms:()=>Ip,nl:()=>zp,no:()=>Hp,ota:()=>Gp,pl:()=>Zp,ps:()=>Jp,pt:()=>em,ro:()=>rm,ru:()=>sm,sl:()=>um,sv:()=>pm,ta:()=>gm,th:()=>ym,tr:()=>Sm,ua:()=>Om,uk:()=>Tm,ur:()=>Am,uz:()=>Nm,vi:()=>Im,yo:()=>Gm,zhCN:()=>zm,zhTW:()=>Hm}),Ym=o((()=>{Zd(),ef(),af(),cf(),df(),mf(),_f(),bf(),Cf(),Ef(),kf(),Mf(),Ff(),Rf(),Vf(),Wf(),qf(),Xf(),$f(),ip(),sp(),up(),pp(),gp(),yp(),wp(),Sp(),Dp(),Mp(),Fp(),Rp(),Vp(),Wp(),qp(),Xp(),$p(),nm(),am(),lm(),fm(),hm(),vm(),xm(),wm(),km(),Dm(),Mm(),Fm(),Rm(),Vm(),Wm(),qm()}));function Xm(){return new eh}var Zm,Qm,$m,eh,th,nh=o((()=>{Qm=Symbol(`ZodOutput`),$m=Symbol(`ZodInput`),eh=class{constructor(){this._map=new WeakMap,this._idmap=new Map}add(e,...t){let n=t[0];return this._map.set(e,n),n&&typeof n==`object`&&`id`in n&&this._idmap.set(n.id,e),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(e){let t=this._map.get(e);return t&&typeof t==`object`&&`id`in t&&this._idmap.delete(t.id),this._map.delete(e),this}get(e){let t=e._zod.parent;if(t){let n={...this.get(t)??{}};delete n.id;let r={...n,...this._map.get(e)};return Object.keys(r).length?r:void 0}return this._map.get(e)}has(e){return this._map.has(e)}},(Zm=globalThis).__zod_globalRegistry??(Zm.__zod_globalRegistry=Xm()),th=globalThis.__zod_globalRegistry}));function rh(e,t){return new e({type:`string`,...I(t)})}function ih(e,t){return new e({type:`string`,coerce:!0,...I(t)})}function ah(e,t){return new e({type:`string`,format:`email`,check:`string_format`,abort:!1,...I(t)})}function oh(e,t){return new e({type:`string`,format:`guid`,check:`string_format`,abort:!1,...I(t)})}function sh(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,...I(t)})}function ch(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v4`,...I(t)})}function lh(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v6`,...I(t)})}function uh(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v7`,...I(t)})}function dh(e,t){return new e({type:`string`,format:`url`,check:`string_format`,abort:!1,...I(t)})}function fh(e,t){return new e({type:`string`,format:`emoji`,check:`string_format`,abort:!1,...I(t)})}function ph(e,t){return new e({type:`string`,format:`nanoid`,check:`string_format`,abort:!1,...I(t)})}function mh(e,t){return new e({type:`string`,format:`cuid`,check:`string_format`,abort:!1,...I(t)})}function hh(e,t){return new e({type:`string`,format:`cuid2`,check:`string_format`,abort:!1,...I(t)})}function gh(e,t){return new e({type:`string`,format:`ulid`,check:`string_format`,abort:!1,...I(t)})}function _h(e,t){return new e({type:`string`,format:`xid`,check:`string_format`,abort:!1,...I(t)})}function vh(e,t){return new e({type:`string`,format:`ksuid`,check:`string_format`,abort:!1,...I(t)})}function yh(e,t){return new e({type:`string`,format:`ipv4`,check:`string_format`,abort:!1,...I(t)})}function bh(e,t){return new e({type:`string`,format:`ipv6`,check:`string_format`,abort:!1,...I(t)})}function xh(e,t){return new e({type:`string`,format:`mac`,check:`string_format`,abort:!1,...I(t)})}function Sh(e,t){return new e({type:`string`,format:`cidrv4`,check:`string_format`,abort:!1,...I(t)})}function Ch(e,t){return new e({type:`string`,format:`cidrv6`,check:`string_format`,abort:!1,...I(t)})}function wh(e,t){return new e({type:`string`,format:`base64`,check:`string_format`,abort:!1,...I(t)})}function Th(e,t){return new e({type:`string`,format:`base64url`,check:`string_format`,abort:!1,...I(t)})}function Eh(e,t){return new e({type:`string`,format:`e164`,check:`string_format`,abort:!1,...I(t)})}function Dh(e,t){return new e({type:`string`,format:`jwt`,check:`string_format`,abort:!1,...I(t)})}function Oh(e,t){return new e({type:`string`,format:`datetime`,check:`string_format`,offset:!1,local:!1,precision:null,...I(t)})}function kh(e,t){return new e({type:`string`,format:`date`,check:`string_format`,...I(t)})}function Ah(e,t){return new e({type:`string`,format:`time`,check:`string_format`,precision:null,...I(t)})}function jh(e,t){return new e({type:`string`,format:`duration`,check:`string_format`,...I(t)})}function Mh(e,t){return new e({type:`number`,checks:[],...I(t)})}function Nh(e,t){return new e({type:`number`,coerce:!0,checks:[],...I(t)})}function Ph(e,t){return new e({type:`number`,check:`number_format`,abort:!1,format:`safeint`,...I(t)})}function Fh(e,t){return new e({type:`number`,check:`number_format`,abort:!1,format:`float32`,...I(t)})}function Ih(e,t){return new e({type:`number`,check:`number_format`,abort:!1,format:`float64`,...I(t)})}function Lh(e,t){return new e({type:`number`,check:`number_format`,abort:!1,format:`int32`,...I(t)})}function Rh(e,t){return new e({type:`number`,check:`number_format`,abort:!1,format:`uint32`,...I(t)})}function zh(e,t){return new e({type:`boolean`,...I(t)})}function Bh(e,t){return new e({type:`boolean`,coerce:!0,...I(t)})}function Vh(e,t){return new e({type:`bigint`,...I(t)})}function Hh(e,t){return new e({type:`bigint`,coerce:!0,...I(t)})}function Uh(e,t){return new e({type:`bigint`,check:`bigint_format`,abort:!1,format:`int64`,...I(t)})}function Wh(e,t){return new e({type:`bigint`,check:`bigint_format`,abort:!1,format:`uint64`,...I(t)})}function Gh(e,t){return new e({type:`symbol`,...I(t)})}function Kh(e,t){return new e({type:`undefined`,...I(t)})}function qh(e,t){return new e({type:`null`,...I(t)})}function Jh(e){return new e({type:`any`})}function Yh(e){return new e({type:`unknown`})}function Xh(e,t){return new e({type:`never`,...I(t)})}function Zh(e,t){return new e({type:`void`,...I(t)})}function Qh(e,t){return new e({type:`date`,...I(t)})}function $h(e,t){return new e({type:`date`,coerce:!0,...I(t)})}function eg(e,t){return new e({type:`nan`,...I(t)})}function tg(e,t){return new Ll({check:`less_than`,...I(t),value:e,inclusive:!1})}function ng(e,t){return new Ll({check:`less_than`,...I(t),value:e,inclusive:!0})}function rg(e,t){return new Rl({check:`greater_than`,...I(t),value:e,inclusive:!1})}function ig(e,t){return new Rl({check:`greater_than`,...I(t),value:e,inclusive:!0})}function ag(e){return rg(0,e)}function og(e){return tg(0,e)}function sg(e){return ng(0,e)}function cg(e){return ig(0,e)}function lg(e,t){return new zl({check:`multiple_of`,...I(t),value:e})}function ug(e,t){return new Hl({check:`max_size`,...I(t),maximum:e})}function dg(e,t){return new Ul({check:`min_size`,...I(t),minimum:e})}function fg(e,t){return new Wl({check:`size_equals`,...I(t),size:e})}function pg(e,t){return new B({check:`max_length`,...I(t),maximum:e})}function mg(e,t){return new Gl({check:`min_length`,...I(t),minimum:e})}function hg(e,t){return new V({check:`length_equals`,...I(t),length:e})}function gg(e,t){return new Kl({check:`string_format`,format:`regex`,...I(t),pattern:e})}function _g(e){return new ql({check:`string_format`,format:`lowercase`,...I(e)})}function vg(e){return new Jl({check:`string_format`,format:`uppercase`,...I(e)})}function yg(e,t){return new Yl({check:`string_format`,format:`includes`,...I(t),includes:e})}function bg(e,t){return new Xl({check:`string_format`,format:`starts_with`,...I(t),prefix:e})}function xg(e,t){return new Zl({check:`string_format`,format:`ends_with`,...I(t),suffix:e})}function Sg(e,t,n){return new Ql({check:`property`,property:e,schema:t,...I(n)})}function Cg(e,t){return new $l({check:`mime_type`,mime:e,...I(t)})}function wg(e){return new eu({check:`overwrite`,tx:e})}function Tg(e){return wg(t=>t.normalize(e))}function Eg(){return wg(e=>e.trim())}function Dg(){return wg(e=>e.toLowerCase())}function Og(){return wg(e=>e.toUpperCase())}function kg(){return wg(e=>ns(e))}function Ag(e,t,n){return new e({type:`array`,element:t,...I(n)})}function jg(e,t,n){return new e({type:`union`,options:t,...I(n)})}function Mg(e,t,n){return new e({type:`union`,options:t,inclusive:!1,...I(n)})}function Ng(e,t,n,r){return new e({type:`union`,options:n,discriminator:t,...I(r)})}function Pg(e,t,n){return new e({type:`intersection`,left:t,right:n})}function Fg(e,t,n,r){let i=n instanceof U;return new e({type:`tuple`,items:t,rest:i?n:null,...I(i?r:n)})}function Ig(e,t,n,r){return new e({type:`record`,keyType:t,valueType:n,...I(r)})}function Lg(e,t,n,r){return new e({type:`map`,keyType:t,valueType:n,...I(r)})}function Rg(e,t,n){return new e({type:`set`,valueType:t,...I(n)})}function zg(e,t,n){return new e({type:`enum`,entries:Array.isArray(t)?Object.fromEntries(t.map(e=>[e,e])):t,...I(n)})}function Bg(e,t,n){return new e({type:`enum`,entries:t,...I(n)})}function Vg(e,t,n){return new e({type:`literal`,values:Array.isArray(t)?t:[t],...I(n)})}function Hg(e,t){return new e({type:`file`,...I(t)})}function Ug(e,t){return new e({type:`transform`,transform:t})}function Wg(e,t){return new e({type:`optional`,innerType:t})}function Gg(e,t){return new e({type:`nullable`,innerType:t})}function Kg(e,t,n){return new e({type:`default`,innerType:t,get defaultValue(){return typeof n==`function`?n():as(n)}})}function qg(e,t,n){return new e({type:`nonoptional`,innerType:t,...I(n)})}function Jg(e,t){return new e({type:`success`,innerType:t})}function Yg(e,t,n){return new e({type:`catch`,innerType:t,catchValue:typeof n==`function`?n:()=>n})}function Xg(e,t,n){return new e({type:`pipe`,in:t,out:n})}function Zg(e,t){return new e({type:`readonly`,innerType:t})}function Qg(e,t,n){return new e({type:`template_literal`,parts:t,...I(n)})}function $g(e,t){return new e({type:`lazy`,getter:t})}function e_(e,t){return new e({type:`promise`,innerType:t})}function t_(e,t,n){let r=I(n);return r.abort??=!0,new e({type:`custom`,check:`custom`,fn:t,...r})}function n_(e,t,n){return new e({type:`custom`,check:`custom`,fn:t,...I(n)})}function r_(e,t){let n=i_(t=>(t.addIssue=e=>{if(typeof e==`string`)t.issues.push(Ts(e,t.value,n._zod.def));else{let r=e;r.fatal&&(r.continue=!1),r.code??=`custom`,r.input??=t.value,r.inst??=n,r.continue??=!n._zod.def.abort,t.issues.push(Ts(r))}},e(t.value,t)),t);return n}function i_(e,t){let n=new Fl({check:`custom`,...I(t)});return n._zod.check=e,n}function a_(e){let t=new Fl({check:`describe`});return t._zod.onattach=[t=>{let n=th.get(t)??{};th.add(t,{...n,description:e})}],t._zod.check=()=>{},t}function o_(e){let t=new Fl({check:`meta`});return t._zod.onattach=[t=>{let n=th.get(t)??{};th.add(t,{...n,...e})}],t._zod.check=()=>{},t}function s_(e,t){let n=I(t),r=n.truthy??[`true`,`1`,`yes`,`on`,`y`,`enabled`],i=n.falsy??[`false`,`0`,`no`,`off`,`n`,`disabled`];n.case!==`sensitive`&&(r=r.map(e=>typeof e==`string`?e.toLowerCase():e),i=i.map(e=>typeof e==`string`?e.toLowerCase():e));let a=new Set(r),o=new Set(i),s=e.Codec??Bd,c=e.Boolean??ad,l=new s({type:`pipe`,in:new(e.String??Au)({type:`string`,error:n.error}),out:new c({type:`boolean`,error:n.error}),transform:((e,t)=>{let r=e;return n.case!==`sensitive`&&(r=r.toLowerCase()),a.has(r)?!0:!o.has(r)&&(t.issues.push({code:`invalid_value`,expected:`stringbool`,values:[...a,...o],input:t.value,inst:l,continue:!1}),{})}),reverseTransform:((e,t)=>e===!0?r[0]||`true`:i[0]||`false`),error:n.error});return l}function c_(e,t,n,r={}){let i=I(r),a={...I(r),check:`string_format`,type:`string`,format:t,fn:typeof n==`function`?n:e=>n.test(e),...i};return n instanceof RegExp&&(a.pattern=n),new e(a)}var l_,u_=o((()=>{tu(),nh(),Jd(),z(),l_={Any:null,Minute:-1,Second:0,Millisecond:3,Microsecond:6}}));function d_(e){let t=e?.target??`draft-2020-12`;return t===`draft-4`&&(t=`draft-04`),t===`draft-7`&&(t=`draft-07`),{processors:e.processors??{},metadataRegistry:e?.metadata??th,target:t,unrepresentable:e?.unrepresentable??`throw`,override:e?.override??(()=>{}),io:e?.io??`output`,counter:0,seen:new Map,cycles:e?.cycles??`ref`,reused:e?.reused??`inline`,external:e?.external??void 0}}function f_(e,t,n={path:[],schemaPath:[]}){var r;let i=e._zod.def,a=t.seen.get(e);if(a)return a.count++,n.schemaPath.includes(e)&&(a.cycle=n.path),a.schema;let o={schema:{},count:1,cycle:void 0,path:n.path};t.seen.set(e,o);let s=e._zod.toJSONSchema?.();if(s)o.schema=s;else{let r={...n,schemaPath:[...n.schemaPath,e],path:n.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,o.schema,r);else{let n=o.schema,a=t.processors[i.type];if(!a)throw Error(`[toJSONSchema]: Non-representable type encountered: ${i.type}`);a(e,t,n,r)}let a=e._zod.parent;a&&(o.ref||=a,f_(a,t,r),t.seen.get(a).isParent=!0)}let c=t.metadataRegistry.get(e);return c&&Object.assign(o.schema,c),t.io===`input`&&h_(e)&&(delete o.schema.examples,delete o.schema.default),t.io===`input`&&`_prefault`in o.schema&&((r=o.schema).default??(r.default=o.schema._prefault)),delete o.schema._prefault,t.seen.get(e).schema}function p_(e,t){let n=e.seen.get(t);if(!n)throw Error(`Unprocessed schema. This is a bug in Zod.`);let r=new Map;for(let t of e.seen.entries()){let n=e.metadataRegistry.get(t[0])?.id;if(n){let e=r.get(n);if(e&&e!==t[0])throw Error(`Duplicate schema id "${n}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);r.set(n,t[0])}}let i=t=>{let r=e.target===`draft-2020-12`?`$defs`:`definitions`;if(e.external){let n=e.external.registry.get(t[0])?.id,i=e.external.uri??(e=>e);if(n)return{ref:i(n)};let a=t[1].defId??t[1].schema.id??`schema${e.counter++}`;return t[1].defId=a,{defId:a,ref:`${i(`__shared`)}#/${r}/${a}`}}if(t[1]===n)return{ref:`#`};let i=`#/${r}/`,a=t[1].schema.id??`__schema${e.counter++}`;return{defId:a,ref:i+a}},a=e=>{if(e[1].schema.$ref)return;let t=e[1],{ref:n,defId:r}=i(e);t.def={...t.schema},r&&(t.defId=r);let a=t.schema;for(let e in a)delete a[e];a.$ref=n};if(e.cycles===`throw`)for(let t of e.seen.entries()){let e=t[1];if(e.cycle)throw Error(`Cycle detected: #/${e.cycle?.join(`/`)}/ + `)}t.write(`payload.value = newResult;`),t.write(`return payload;`);let s=t.compile();return(t,n)=>s(e,t,n)},a,o=fs,s=!Uo.jitless,c=s&&Ws.value,l=t.catchall,u;e._zod.parse=(d,f)=>{u??=r.value;let p=d.value;return o(p)?s&&c&&f?.async===!1&&f.jitless!==!0?(a||=i(t.shape),d=a(d,f),l?xu([],p,d,f,u,e):d):n(d,f):(d.issues.push({expected:`object`,code:`invalid_type`,input:p,inst:e}),d)}}),W=N(`$ZodUnion`,(e,t)=>{U.init(e,t),F(e._zod,`optin`,()=>t.options.some(e=>e._zod.optin===`optional`)?`optional`:void 0),F(e._zod,`optout`,()=>t.options.some(e=>e._zod.optout===`optional`)?`optional`:void 0),F(e._zod,`values`,()=>{if(t.options.every(e=>e._zod.values))return new Set(t.options.flatMap(e=>Array.from(e._zod.values)))}),F(e._zod,`pattern`,()=>{if(t.options.every(e=>e._zod.pattern)){let e=t.options.map(e=>e._zod.pattern);return RegExp(`^(${e.map(e=>ts(e.source)).join(`|`)})$`)}});let n=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(r,i)=>{if(n)return n(r,i);let a=!1,o=[];for(let e of t.options){let t=e._zod.run({value:r.value,issues:[]},i);if(t instanceof Promise)o.push(t),a=!0;else{if(t.issues.length===0)return t;o.push(t)}}return a?Promise.all(o).then(t=>Su(t,r,e,i)):Su(o,r,e,i)}}),Od=N(`$ZodXor`,(e,t)=>{W.init(e,t),t.inclusive=!1;let n=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(r,i)=>{if(n)return n(r,i);let a=!1,o=[];for(let e of t.options){let t=e._zod.run({value:r.value,issues:[]},i);t instanceof Promise?(o.push(t),a=!0):o.push(t)}return a?Promise.all(o).then(t=>Cu(t,r,e,i)):Cu(o,r,e,i)}}),kd=N(`$ZodDiscriminatedUnion`,(e,t)=>{t.inclusive=!1,W.init(e,t);let n=e._zod.parse;F(e._zod,`propValues`,()=>{let e={};for(let n of t.options){let r=n._zod.propValues;if(!r||Object.keys(r).length===0)throw Error(`Invalid discriminated union option at index "${t.options.indexOf(n)}"`);for(let[t,n]of Object.entries(r)){e[t]||(e[t]=new Set);for(let r of n)e[t].add(r)}}return e});let r=$o(()=>{let e=t.options,n=new Map;for(let r of e){let e=r._zod.propValues?.[t.discriminator];if(!e||e.size===0)throw Error(`Invalid discriminated union option at index "${t.options.indexOf(r)}"`);for(let t of e){if(n.has(t))throw Error(`Duplicate discriminator value "${String(t)}"`);n.set(t,r)}}return n});e._zod.parse=(i,a)=>{let o=i.value;if(!fs(o))return i.issues.push({code:`invalid_type`,expected:`object`,input:o,inst:e}),i;let s=r.value.get(o?.[t.discriminator]);return s?s._zod.run(i,a):t.unionFallback||a.direction===`backward`?n(i,a):(i.issues.push({code:`invalid_union`,errors:[],note:`No matching discriminator`,discriminator:t.discriminator,options:Array.from(r.value.keys()),input:o,path:[t.discriminator],inst:e}),i)}}),Ad=N(`$ZodIntersection`,(e,t)=>{U.init(e,t),e._zod.parse=(e,n)=>{let r=e.value,i=t.left._zod.run({value:r,issues:[]},n),a=t.right._zod.run({value:r,issues:[]},n);return i instanceof Promise||a instanceof Promise?Promise.all([i,a]).then(([t,n])=>Tu(e,t,n)):Tu(e,i,a)}}),jd=N(`$ZodTuple`,(e,t)=>{U.init(e,t);let n=t.items;e._zod.parse=(r,i)=>{let a=r.value;if(!Array.isArray(a))return r.issues.push({input:a,inst:e,expected:`tuple`,code:`invalid_type`}),r;r.value=[];let o=[],s=Eu(n,`optin`),c=Eu(n,`optout`);if(!t.rest){if(a.lengthn.length&&r.issues.push({code:`too_big`,maximum:n.length,inclusive:!0,input:a,inst:e,origin:`array`})}let l=Array(n.length);for(let e=0;e{l[e]=t})):l[e]=t}if(t.rest){let e=n.length-1,s=a.slice(n.length);for(let n of s){e++;let a=t.rest._zod.run({value:n,issues:[]},i);a instanceof Promise?o.push(a.then(t=>Du(t,r,e))):Du(a,r,e)}}return o.length?Promise.all(o).then(()=>Ou(l,r,n,a,c)):Ou(l,r,n,a,c)}}),Md=N(`$ZodRecord`,(e,t)=>{U.init(e,t),e._zod.parse=(n,r)=>{let i=n.value;if(!ps(i))return n.issues.push({expected:`record`,code:`invalid_type`,input:i,inst:e}),n;let a=[],o=t.keyType._zod.values;if(o){n.value={};let s=new Set;for(let c of o)if(typeof c==`string`||typeof c==`number`||typeof c==`symbol`){s.add(typeof c==`number`?c.toString():c);let o=t.keyType._zod.run({value:c,issues:[]},r);if(o instanceof Promise)throw Error(`Async schemas not supported in object keys currently`);if(o.issues.length){n.issues.push({code:`invalid_key`,origin:`record`,issues:o.issues.map(e=>js(e,r,Lo())),input:c,path:[c],inst:e});continue}let l=o.value,u=t.valueType._zod.run({value:i[c],issues:[]},r);u instanceof Promise?a.push(u.then(e=>{e.issues.length&&n.issues.push(...ks(c,e.issues)),n.value[l]=e.value})):(u.issues.length&&n.issues.push(...ks(c,u.issues)),n.value[l]=u.value)}let c;for(let e in i)s.has(e)||(c??=[],c.push(e));c&&c.length>0&&n.issues.push({code:`unrecognized_keys`,input:i,inst:e,keys:c})}else{n.value={};for(let o of Reflect.ownKeys(i)){if(o===`__proto__`||!Object.prototype.propertyIsEnumerable.call(i,o))continue;let s=t.keyType._zod.run({value:o,issues:[]},r);if(s instanceof Promise)throw Error(`Async schemas not supported in object keys currently`);if(typeof o==`string`&&bl.test(o)&&s.issues.length){let e=t.keyType._zod.run({value:Number(o),issues:[]},r);if(e instanceof Promise)throw Error(`Async schemas not supported in object keys currently`);e.issues.length===0&&(s=e)}if(s.issues.length){t.mode===`loose`?n.value[o]=i[o]:n.issues.push({code:`invalid_key`,origin:`record`,issues:s.issues.map(e=>js(e,r,Lo())),input:o,path:[o],inst:e});continue}let c=t.valueType._zod.run({value:i[o],issues:[]},r);c instanceof Promise?a.push(c.then(e=>{e.issues.length&&n.issues.push(...ks(o,e.issues)),n.value[s.value]=e.value})):(c.issues.length&&n.issues.push(...ks(o,c.issues)),n.value[s.value]=c.value)}}return a.length?Promise.all(a).then(()=>n):n}}),Nd=N(`$ZodMap`,(e,t)=>{U.init(e,t),e._zod.parse=(n,r)=>{let i=n.value;if(!(i instanceof Map))return n.issues.push({expected:`map`,code:`invalid_type`,input:i,inst:e}),n;let a=[];n.value=new Map;for(let[o,s]of i){let c=t.keyType._zod.run({value:o,issues:[]},r),l=t.valueType._zod.run({value:s,issues:[]},r);c instanceof Promise||l instanceof Promise?a.push(Promise.all([c,l]).then(([t,a])=>{ku(t,a,n,o,i,e,r)})):ku(c,l,n,o,i,e,r)}return a.length?Promise.all(a).then(()=>n):n}}),Pd=N(`$ZodSet`,(e,t)=>{U.init(e,t),e._zod.parse=(n,r)=>{let i=n.value;if(!(i instanceof Set))return n.issues.push({input:i,inst:e,expected:`set`,code:`invalid_type`}),n;let a=[];n.value=new Set;for(let e of i){let i=t.valueType._zod.run({value:e,issues:[]},r);i instanceof Promise?a.push(i.then(e=>Au(e,n))):Au(i,n)}return a.length?Promise.all(a).then(()=>n):n}}),Fd=N(`$ZodEnum`,(e,t)=>{U.init(e,t);let n=Zo(t.entries),r=new Set(n);e._zod.values=r,e._zod.pattern=RegExp(`^(${n.filter(e=>Ks.has(typeof e)).map(e=>typeof e==`string`?gs(e):e.toString()).join(`|`)})$`),e._zod.parse=(t,i)=>{let a=t.value;return r.has(a)||t.issues.push({code:`invalid_value`,values:n,input:a,inst:e}),t}}),Id=N(`$ZodLiteral`,(e,t)=>{if(U.init(e,t),t.values.length===0)throw Error(`Cannot create literal schema with no valid values`);let n=new Set(t.values);e._zod.values=n,e._zod.pattern=RegExp(`^(${t.values.map(e=>typeof e==`string`?gs(e):e?gs(e.toString()):String(e)).join(`|`)})$`),e._zod.parse=(r,i)=>{let a=r.value;return n.has(a)||r.issues.push({code:`invalid_value`,values:t.values,input:a,inst:e}),r}}),Ld=N(`$ZodFile`,(e,t)=>{U.init(e,t),e._zod.parse=(t,n)=>{let r=t.value;return r instanceof File||t.issues.push({expected:`file`,code:`invalid_type`,input:r,inst:e}),t}}),Rd=N(`$ZodTransform`,(e,t)=>{U.init(e,t),e._zod.optin=`optional`,e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new Ho(e.constructor.name);let i=t.transform(n.value,n);if(r.async)return(i instanceof Promise?i:Promise.resolve(i)).then(e=>(n.value=e,n.fallback=!0,n));if(i instanceof Promise)throw new Vo;return n.value=i,n.fallback=!0,n}}),zd=N(`$ZodOptional`,(e,t)=>{U.init(e,t),e._zod.optin=`optional`,e._zod.optout=`optional`,F(e._zod,`values`,()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),F(e._zod,`pattern`,()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${ts(e.source)})?$`):void 0}),e._zod.parse=(e,n)=>{if(t.innerType._zod.optin===`optional`){let r=e.value,i=t.innerType._zod.run(e,n);return i instanceof Promise?i.then(e=>ju(e,r)):ju(i,r)}return e.value===void 0?e:t.innerType._zod.run(e,n)}}),Bd=N(`$ZodExactOptional`,(e,t)=>{zd.init(e,t),F(e._zod,`values`,()=>t.innerType._zod.values),F(e._zod,`pattern`,()=>t.innerType._zod.pattern),e._zod.parse=(e,n)=>t.innerType._zod.run(e,n)}),Vd=N(`$ZodNullable`,(e,t)=>{U.init(e,t),F(e._zod,`optin`,()=>t.innerType._zod.optin),F(e._zod,`optout`,()=>t.innerType._zod.optout),F(e._zod,`pattern`,()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${ts(e.source)}|null)$`):void 0}),F(e._zod,`values`,()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(e,n)=>e.value===null?e:t.innerType._zod.run(e,n)}),Hd=N(`$ZodDefault`,(e,t)=>{U.init(e,t),e._zod.optin=`optional`,F(e._zod,`values`,()=>t.innerType._zod.values),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);if(e.value===void 0)return e.value=t.defaultValue,e;let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(e=>Mu(e,t)):Mu(r,t)}}),Ud=N(`$ZodPrefault`,(e,t)=>{U.init(e,t),e._zod.optin=`optional`,F(e._zod,`values`,()=>t.innerType._zod.values),e._zod.parse=(e,n)=>(n.direction===`backward`||e.value===void 0&&(e.value=t.defaultValue),t.innerType._zod.run(e,n))}),Wd=N(`$ZodNonOptional`,(e,t)=>{U.init(e,t),F(e._zod,`values`,()=>{let e=t.innerType._zod.values;return e?new Set([...e].filter(e=>e!==void 0)):void 0}),e._zod.parse=(n,r)=>{let i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(t=>Nu(t,e)):Nu(i,e)}}),Gd=N(`$ZodSuccess`,(e,t)=>{U.init(e,t),e._zod.parse=(e,n)=>{if(n.direction===`backward`)throw new Ho(`ZodSuccess`);let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(t=>(e.value=t.issues.length===0,e)):(e.value=r.issues.length===0,e)}}),Kd=N(`$ZodCatch`,(e,t)=>{U.init(e,t),e._zod.optin=`optional`,F(e._zod,`optout`,()=>t.innerType._zod.optout),F(e._zod,`values`,()=>t.innerType._zod.values),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(r=>(e.value=r.value,r.issues.length&&(e.value=t.catchValue({...e,error:{issues:r.issues.map(e=>js(e,n,Lo()))},input:e.value}),e.issues=[],e.fallback=!0),e)):(e.value=r.value,r.issues.length&&(e.value=t.catchValue({...e,error:{issues:r.issues.map(e=>js(e,n,Lo()))},input:e.value}),e.issues=[],e.fallback=!0),e)}}),qd=N(`$ZodNaN`,(e,t)=>{U.init(e,t),e._zod.parse=(t,n)=>((typeof t.value!=`number`||!Number.isNaN(t.value))&&t.issues.push({input:t.value,inst:e,expected:`nan`,code:`invalid_type`}),t)}),Jd=N(`$ZodPipe`,(e,t)=>{U.init(e,t),F(e._zod,`values`,()=>t.in._zod.values),F(e._zod,`optin`,()=>t.in._zod.optin),F(e._zod,`optout`,()=>t.out._zod.optout),F(e._zod,`propValues`,()=>t.in._zod.propValues),e._zod.parse=(e,n)=>{if(n.direction===`backward`){let r=t.out._zod.run(e,n);return r instanceof Promise?r.then(e=>Pu(e,t.in,n)):Pu(r,t.in,n)}let r=t.in._zod.run(e,n);return r instanceof Promise?r.then(e=>Pu(e,t.out,n)):Pu(r,t.out,n)}}),Yd=N(`$ZodCodec`,(e,t)=>{U.init(e,t),F(e._zod,`values`,()=>t.in._zod.values),F(e._zod,`optin`,()=>t.in._zod.optin),F(e._zod,`optout`,()=>t.out._zod.optout),F(e._zod,`propValues`,()=>t.in._zod.propValues),e._zod.parse=(e,n)=>{if((n.direction||`forward`)===`forward`){let r=t.in._zod.run(e,n);return r instanceof Promise?r.then(e=>Fu(e,t,n)):Fu(r,t,n)}{let r=t.out._zod.run(e,n);return r instanceof Promise?r.then(e=>Fu(e,t,n)):Fu(r,t,n)}}}),Xd=N(`$ZodPreprocess`,(e,t)=>{Jd.init(e,t)}),Zd=N(`$ZodReadonly`,(e,t)=>{U.init(e,t),F(e._zod,`propValues`,()=>t.innerType._zod.propValues),F(e._zod,`values`,()=>t.innerType._zod.values),F(e._zod,`optin`,()=>t.innerType?._zod?.optin),F(e._zod,`optout`,()=>t.innerType?._zod?.optout),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(Lu):Lu(r)}}),Qd=N(`$ZodTemplateLiteral`,(e,t)=>{U.init(e,t);let n=[];for(let e of t.parts)if(typeof e==`object`&&e){if(!e._zod.pattern)throw Error(`Invalid template literal part, no pattern found: ${[...e._zod.traits].shift()}`);let t=e._zod.pattern instanceof RegExp?e._zod.pattern.source:e._zod.pattern;if(!t)throw Error(`Invalid template literal part: ${e._zod.traits}`);let r=+!!t.startsWith(`^`),i=t.endsWith(`$`)?t.length-1:t.length;n.push(t.slice(r,i))}else if(e===null||qs.has(typeof e))n.push(gs(`${e}`));else throw Error(`Invalid template literal part: ${e}`);e._zod.pattern=RegExp(`^${n.join(``)}$`),e._zod.parse=(n,r)=>typeof n.value==`string`?(e._zod.pattern.lastIndex=0,e._zod.pattern.test(n.value)||n.issues.push({input:n.value,inst:e,code:`invalid_format`,format:t.format??`template_literal`,pattern:e._zod.pattern.source}),n):(n.issues.push({input:n.value,inst:e,expected:`string`,code:`invalid_type`}),n)}),$d=N(`$ZodFunction`,(e,t)=>(U.init(e,t),e._def=t,e._zod.def=t,e.implement=t=>{if(typeof t!=`function`)throw Error(`implement() must be called with a function`);return function(...n){let r=e._def.input?sc(e._def.input,n):n,i=Reflect.apply(t,this,r);return e._def.output?sc(e._def.output,i):i}},e.implementAsync=t=>{if(typeof t!=`function`)throw Error(`implementAsync() must be called with a function`);return async function(...n){let r=e._def.input?await lc(e._def.input,n):n,i=await Reflect.apply(t,this,r);return e._def.output?await lc(e._def.output,i):i}},e._zod.parse=(t,n)=>typeof t.value==`function`?(t.value=e._def.output&&e._def.output._zod.def.type===`promise`?e.implementAsync(t.value):e.implement(t.value),t):(t.issues.push({code:`invalid_type`,expected:`function`,input:t.value,inst:e}),t),e.input=(...t)=>{let n=e.constructor;return Array.isArray(t[0])?new n({type:`function`,input:new jd({type:`tuple`,items:t[0],rest:t[1]}),output:e._def.output}):new n({type:`function`,input:t[0],output:e._def.output})},e.output=t=>{let n=e.constructor;return new n({type:`function`,input:e._def.input,output:t})},e)),ef=N(`$ZodPromise`,(e,t)=>{U.init(e,t),e._zod.parse=(e,n)=>Promise.resolve(e.value).then(e=>t.innerType._zod.run({value:e,issues:[]},n))}),tf=N(`$ZodLazy`,(e,t)=>{U.init(e,t),F(e._zod,`innerType`,()=>{let e=t;return e._cachedInner||=t.getter(),e._cachedInner}),F(e._zod,`pattern`,()=>e._zod.innerType?._zod?.pattern),F(e._zod,`propValues`,()=>e._zod.innerType?._zod?.propValues),F(e._zod,`optin`,()=>e._zod.innerType?._zod?.optin??void 0),F(e._zod,`optout`,()=>e._zod.innerType?._zod?.optout??void 0),e._zod.parse=(t,n)=>e._zod.innerType._zod.run(t,n)}),nf=N(`$ZodCustom`,(e,t)=>{Wl.init(e,t),U.init(e,t),e._zod.parse=(e,t)=>e,e._zod.check=n=>{let r=n.value,i=t.fn(r);if(i instanceof Promise)return i.then(t=>Ru(t,n,r,e));Ru(i,n,r,e)}})}));function af(){return{localeError:of()}}var of,sf=o((()=>{z(),of=()=>{let e={string:{unit:`حرف`,verb:`أن يحوي`},file:{unit:`بايت`,verb:`أن يحوي`},array:{unit:`عنصر`,verb:`أن يحوي`},set:{unit:`عنصر`,verb:`أن يحوي`}};function t(t){return e[t]??null}let n={regex:`مدخل`,email:`بريد إلكتروني`,url:`رابط`,emoji:`إيموجي`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`تاريخ ووقت بمعيار ISO`,date:`تاريخ بمعيار ISO`,time:`وقت بمعيار ISO`,duration:`مدة بمعيار ISO`,ipv4:`عنوان IPv4`,ipv6:`عنوان IPv6`,cidrv4:`مدى عناوين بصيغة IPv4`,cidrv6:`مدى عناوين بصيغة IPv6`,base64:`نَص بترميز base64-encoded`,base64url:`نَص بترميز base64url-encoded`,json_string:`نَص على هيئة JSON`,e164:`رقم هاتف بمعيار E.164`,jwt:`JWT`,template_literal:`مدخل`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=R(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`مدخلات غير مقبولة: يفترض إدخال instanceof ${e.expected}، ولكن تم إدخال ${i}`:`مدخلات غير مقبولة: يفترض إدخال ${t}، ولكن تم إدخال ${i}`}case`invalid_value`:return e.values.length===1?`مدخلات غير مقبولة: يفترض إدخال ${L(e.values[0])}`:`اختيار غير مقبول: يتوقع انتقاء أحد هذه الخيارات: ${P(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?` أكبر من اللازم: يفترض أن تكون ${e.origin??`القيمة`} ${n} ${e.maximum.toString()} ${r.unit??`عنصر`}`:`أكبر من اللازم: يفترض أن تكون ${e.origin??`القيمة`} ${n} ${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`أصغر من اللازم: يفترض لـ ${e.origin} أن يكون ${n} ${e.minimum.toString()} ${r.unit}`:`أصغر من اللازم: يفترض لـ ${e.origin} أن يكون ${n} ${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`نَص غير مقبول: يجب أن يبدأ بـ "${e.prefix}"`:t.format===`ends_with`?`نَص غير مقبول: يجب أن ينتهي بـ "${t.suffix}"`:t.format===`includes`?`نَص غير مقبول: يجب أن يتضمَّن "${t.includes}"`:t.format===`regex`?`نَص غير مقبول: يجب أن يطابق النمط ${t.pattern}`:`${n[t.format]??e.format} غير مقبول`}case`not_multiple_of`:return`رقم غير مقبول: يجب أن يكون من مضاعفات ${e.divisor}`;case`unrecognized_keys`:return`معرف${e.keys.length>1?`ات`:``} غريب${e.keys.length>1?`ة`:``}: ${P(e.keys,`، `)}`;case`invalid_key`:return`معرف غير مقبول في ${e.origin}`;case`invalid_union`:return`مدخل غير مقبول`;case`invalid_element`:return`مدخل غير مقبول في ${e.origin}`;default:return`مدخل غير مقبول`}}}}));function cf(){return{localeError:lf()}}var lf,uf=o((()=>{z(),lf=()=>{let e={string:{unit:`simvol`,verb:`olmalıdır`},file:{unit:`bayt`,verb:`olmalıdır`},array:{unit:`element`,verb:`olmalıdır`},set:{unit:`element`,verb:`olmalıdır`}};function t(t){return e[t]??null}let n={regex:`input`,email:`email address`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO datetime`,date:`ISO date`,time:`ISO time`,duration:`ISO duration`,ipv4:`IPv4 address`,ipv6:`IPv6 address`,cidrv4:`IPv4 range`,cidrv6:`IPv6 range`,base64:`base64-encoded string`,base64url:`base64url-encoded string`,json_string:`JSON string`,e164:`E.164 number`,jwt:`JWT`,template_literal:`input`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=R(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Yanlış dəyər: gözlənilən instanceof ${e.expected}, daxil olan ${i}`:`Yanlış dəyər: gözlənilən ${t}, daxil olan ${i}`}case`invalid_value`:return e.values.length===1?`Yanlış dəyər: gözlənilən ${L(e.values[0])}`:`Yanlış seçim: aşağıdakılardan biri olmalıdır: ${P(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Çox böyük: gözlənilən ${e.origin??`dəyər`} ${n}${e.maximum.toString()} ${r.unit??`element`}`:`Çox böyük: gözlənilən ${e.origin??`dəyər`} ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Çox kiçik: gözlənilən ${e.origin} ${n}${e.minimum.toString()} ${r.unit}`:`Çox kiçik: gözlənilən ${e.origin} ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Yanlış mətn: "${t.prefix}" ilə başlamalıdır`:t.format===`ends_with`?`Yanlış mətn: "${t.suffix}" ilə bitməlidir`:t.format===`includes`?`Yanlış mətn: "${t.includes}" daxil olmalıdır`:t.format===`regex`?`Yanlış mətn: ${t.pattern} şablonuna uyğun olmalıdır`:`Yanlış ${n[t.format]??e.format}`}case`not_multiple_of`:return`Yanlış ədəd: ${e.divisor} ilə bölünə bilən olmalıdır`;case`unrecognized_keys`:return`Tanınmayan açar${e.keys.length>1?`lar`:``}: ${P(e.keys,`, `)}`;case`invalid_key`:return`${e.origin} daxilində yanlış açar`;case`invalid_union`:return`Yanlış dəyər`;case`invalid_element`:return`${e.origin} daxilində yanlış dəyər`;default:return`Yanlış dəyər`}}}}));function df(e,t,n,r){let i=Math.abs(e),a=i%10,o=i%100;return o>=11&&o<=19?r:a===1?t:a>=2&&a<=4?n:r}function ff(){return{localeError:pf()}}var pf,mf=o((()=>{z(),pf=()=>{let e={string:{unit:{one:`сімвал`,few:`сімвалы`,many:`сімвалаў`},verb:`мець`},array:{unit:{one:`элемент`,few:`элементы`,many:`элементаў`},verb:`мець`},set:{unit:{one:`элемент`,few:`элементы`,many:`элементаў`},verb:`мець`},file:{unit:{one:`байт`,few:`байты`,many:`байтаў`},verb:`мець`}};function t(t){return e[t]??null}let n={regex:`увод`,email:`email адрас`,url:`URL`,emoji:`эмодзі`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO дата і час`,date:`ISO дата`,time:`ISO час`,duration:`ISO працягласць`,ipv4:`IPv4 адрас`,ipv6:`IPv6 адрас`,cidrv4:`IPv4 дыяпазон`,cidrv6:`IPv6 дыяпазон`,base64:`радок у фармаце base64`,base64url:`радок у фармаце base64url`,json_string:`JSON радок`,e164:`нумар E.164`,jwt:`JWT`,template_literal:`увод`},r={nan:`NaN`,number:`лік`,array:`масіў`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=R(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Няправільны ўвод: чакаўся instanceof ${e.expected}, атрымана ${i}`:`Няправільны ўвод: чакаўся ${t}, атрымана ${i}`}case`invalid_value`:return e.values.length===1?`Няправільны ўвод: чакалася ${L(e.values[0])}`:`Няправільны варыянт: чакаўся адзін з ${P(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);if(r){let t=df(Number(e.maximum),r.unit.one,r.unit.few,r.unit.many);return`Занадта вялікі: чакалася, што ${e.origin??`значэнне`} павінна ${r.verb} ${n}${e.maximum.toString()} ${t}`}return`Занадта вялікі: чакалася, што ${e.origin??`значэнне`} павінна быць ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);if(r){let t=df(Number(e.minimum),r.unit.one,r.unit.few,r.unit.many);return`Занадта малы: чакалася, што ${e.origin} павінна ${r.verb} ${n}${e.minimum.toString()} ${t}`}return`Занадта малы: чакалася, што ${e.origin} павінна быць ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Няправільны радок: павінен пачынацца з "${t.prefix}"`:t.format===`ends_with`?`Няправільны радок: павінен заканчвацца на "${t.suffix}"`:t.format===`includes`?`Няправільны радок: павінен змяшчаць "${t.includes}"`:t.format===`regex`?`Няправільны радок: павінен адпавядаць шаблону ${t.pattern}`:`Няправільны ${n[t.format]??e.format}`}case`not_multiple_of`:return`Няправільны лік: павінен быць кратным ${e.divisor}`;case`unrecognized_keys`:return`Нераспазнаны ${e.keys.length>1?`ключы`:`ключ`}: ${P(e.keys,`, `)}`;case`invalid_key`:return`Няправільны ключ у ${e.origin}`;case`invalid_union`:return`Няправільны ўвод`;case`invalid_element`:return`Няправільнае значэнне ў ${e.origin}`;default:return`Няправільны ўвод`}}}}));function hf(){return{localeError:gf()}}var gf,_f=o((()=>{z(),gf=()=>{let e={string:{unit:`символа`,verb:`да съдържа`},file:{unit:`байта`,verb:`да съдържа`},array:{unit:`елемента`,verb:`да съдържа`},set:{unit:`елемента`,verb:`да съдържа`}};function t(t){return e[t]??null}let n={regex:`вход`,email:`имейл адрес`,url:`URL`,emoji:`емоджи`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO време`,date:`ISO дата`,time:`ISO време`,duration:`ISO продължителност`,ipv4:`IPv4 адрес`,ipv6:`IPv6 адрес`,cidrv4:`IPv4 диапазон`,cidrv6:`IPv6 диапазон`,base64:`base64-кодиран низ`,base64url:`base64url-кодиран низ`,json_string:`JSON низ`,e164:`E.164 номер`,jwt:`JWT`,template_literal:`вход`},r={nan:`NaN`,number:`число`,array:`масив`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=R(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Невалиден вход: очакван instanceof ${e.expected}, получен ${i}`:`Невалиден вход: очакван ${t}, получен ${i}`}case`invalid_value`:return e.values.length===1?`Невалиден вход: очакван ${L(e.values[0])}`:`Невалидна опция: очаквано едно от ${P(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Твърде голямо: очаква се ${e.origin??`стойност`} да съдържа ${n}${e.maximum.toString()} ${r.unit??`елемента`}`:`Твърде голямо: очаква се ${e.origin??`стойност`} да бъде ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Твърде малко: очаква се ${e.origin} да съдържа ${n}${e.minimum.toString()} ${r.unit}`:`Твърде малко: очаква се ${e.origin} да бъде ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;if(t.format===`starts_with`)return`Невалиден низ: трябва да започва с "${t.prefix}"`;if(t.format===`ends_with`)return`Невалиден низ: трябва да завършва с "${t.suffix}"`;if(t.format===`includes`)return`Невалиден низ: трябва да включва "${t.includes}"`;if(t.format===`regex`)return`Невалиден низ: трябва да съвпада с ${t.pattern}`;let r=`Невалиден`;return t.format===`emoji`&&(r=`Невалидно`),t.format===`datetime`&&(r=`Невалидно`),t.format===`date`&&(r=`Невалидна`),t.format===`time`&&(r=`Невалидно`),t.format===`duration`&&(r=`Невалидна`),`${r} ${n[t.format]??e.format}`}case`not_multiple_of`:return`Невалидно число: трябва да бъде кратно на ${e.divisor}`;case`unrecognized_keys`:return`Неразпознат${e.keys.length>1?`и`:``} ключ${e.keys.length>1?`ове`:``}: ${P(e.keys,`, `)}`;case`invalid_key`:return`Невалиден ключ в ${e.origin}`;case`invalid_union`:return`Невалиден вход`;case`invalid_element`:return`Невалидна стойност в ${e.origin}`;default:return`Невалиден вход`}}}}));function vf(){return{localeError:yf()}}var yf,bf=o((()=>{z(),yf=()=>{let e={string:{unit:`caràcters`,verb:`contenir`},file:{unit:`bytes`,verb:`contenir`},array:{unit:`elements`,verb:`contenir`},set:{unit:`elements`,verb:`contenir`}};function t(t){return e[t]??null}let n={regex:`entrada`,email:`adreça electrònica`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`data i hora ISO`,date:`data ISO`,time:`hora ISO`,duration:`durada ISO`,ipv4:`adreça IPv4`,ipv6:`adreça IPv6`,cidrv4:`rang IPv4`,cidrv6:`rang IPv6`,base64:`cadena codificada en base64`,base64url:`cadena codificada en base64url`,json_string:`cadena JSON`,e164:`número E.164`,jwt:`JWT`,template_literal:`entrada`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=R(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Tipus invàlid: s'esperava instanceof ${e.expected}, s'ha rebut ${i}`:`Tipus invàlid: s'esperava ${t}, s'ha rebut ${i}`}case`invalid_value`:return e.values.length===1?`Valor invàlid: s'esperava ${L(e.values[0])}`:`Opció invàlida: s'esperava una de ${P(e.values,` o `)}`;case`too_big`:{let n=e.inclusive?`com a màxim`:`menys de`,r=t(e.origin);return r?`Massa gran: s'esperava que ${e.origin??`el valor`} contingués ${n} ${e.maximum.toString()} ${r.unit??`elements`}`:`Massa gran: s'esperava que ${e.origin??`el valor`} fos ${n} ${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`com a mínim`:`més de`,r=t(e.origin);return r?`Massa petit: s'esperava que ${e.origin} contingués ${n} ${e.minimum.toString()} ${r.unit}`:`Massa petit: s'esperava que ${e.origin} fos ${n} ${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Format invàlid: ha de començar amb "${t.prefix}"`:t.format===`ends_with`?`Format invàlid: ha d'acabar amb "${t.suffix}"`:t.format===`includes`?`Format invàlid: ha d'incloure "${t.includes}"`:t.format===`regex`?`Format invàlid: ha de coincidir amb el patró ${t.pattern}`:`Format invàlid per a ${n[t.format]??e.format}`}case`not_multiple_of`:return`Número invàlid: ha de ser múltiple de ${e.divisor}`;case`unrecognized_keys`:return`Clau${e.keys.length>1?`s`:``} no reconeguda${e.keys.length>1?`s`:``}: ${P(e.keys,`, `)}`;case`invalid_key`:return`Clau invàlida a ${e.origin}`;case`invalid_union`:return`Entrada invàlida`;case`invalid_element`:return`Element invàlid a ${e.origin}`;default:return`Entrada invàlida`}}}}));function xf(){return{localeError:Sf()}}var Sf,Cf=o((()=>{z(),Sf=()=>{let e={string:{unit:`znaků`,verb:`mít`},file:{unit:`bajtů`,verb:`mít`},array:{unit:`prvků`,verb:`mít`},set:{unit:`prvků`,verb:`mít`}};function t(t){return e[t]??null}let n={regex:`regulární výraz`,email:`e-mailová adresa`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`datum a čas ve formátu ISO`,date:`datum ve formátu ISO`,time:`čas ve formátu ISO`,duration:`doba trvání ISO`,ipv4:`IPv4 adresa`,ipv6:`IPv6 adresa`,cidrv4:`rozsah IPv4`,cidrv6:`rozsah IPv6`,base64:`řetězec zakódovaný ve formátu base64`,base64url:`řetězec zakódovaný ve formátu base64url`,json_string:`řetězec ve formátu JSON`,e164:`číslo E.164`,jwt:`JWT`,template_literal:`vstup`},r={nan:`NaN`,number:`číslo`,string:`řetězec`,function:`funkce`,array:`pole`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=R(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Neplatný vstup: očekáváno instanceof ${e.expected}, obdrženo ${i}`:`Neplatný vstup: očekáváno ${t}, obdrženo ${i}`}case`invalid_value`:return e.values.length===1?`Neplatný vstup: očekáváno ${L(e.values[0])}`:`Neplatná možnost: očekávána jedna z hodnot ${P(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Hodnota je příliš velká: ${e.origin??`hodnota`} musí mít ${n}${e.maximum.toString()} ${r.unit??`prvků`}`:`Hodnota je příliš velká: ${e.origin??`hodnota`} musí být ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Hodnota je příliš malá: ${e.origin??`hodnota`} musí mít ${n}${e.minimum.toString()} ${r.unit??`prvků`}`:`Hodnota je příliš malá: ${e.origin??`hodnota`} musí být ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Neplatný řetězec: musí začínat na "${t.prefix}"`:t.format===`ends_with`?`Neplatný řetězec: musí končit na "${t.suffix}"`:t.format===`includes`?`Neplatný řetězec: musí obsahovat "${t.includes}"`:t.format===`regex`?`Neplatný řetězec: musí odpovídat vzoru ${t.pattern}`:`Neplatný formát ${n[t.format]??e.format}`}case`not_multiple_of`:return`Neplatné číslo: musí být násobkem ${e.divisor}`;case`unrecognized_keys`:return`Neznámé klíče: ${P(e.keys,`, `)}`;case`invalid_key`:return`Neplatný klíč v ${e.origin}`;case`invalid_union`:return`Neplatný vstup`;case`invalid_element`:return`Neplatná hodnota v ${e.origin}`;default:return`Neplatný vstup`}}}}));function wf(){return{localeError:Tf()}}var Tf,Ef=o((()=>{z(),Tf=()=>{let e={string:{unit:`tegn`,verb:`havde`},file:{unit:`bytes`,verb:`havde`},array:{unit:`elementer`,verb:`indeholdt`},set:{unit:`elementer`,verb:`indeholdt`}};function t(t){return e[t]??null}let n={regex:`input`,email:`e-mailadresse`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO dato- og klokkeslæt`,date:`ISO-dato`,time:`ISO-klokkeslæt`,duration:`ISO-varighed`,ipv4:`IPv4-område`,ipv6:`IPv6-område`,cidrv4:`IPv4-spektrum`,cidrv6:`IPv6-spektrum`,base64:`base64-kodet streng`,base64url:`base64url-kodet streng`,json_string:`JSON-streng`,e164:`E.164-nummer`,jwt:`JWT`,template_literal:`input`},r={nan:`NaN`,string:`streng`,number:`tal`,boolean:`boolean`,array:`liste`,object:`objekt`,set:`sæt`,file:`fil`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=R(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Ugyldigt input: forventede instanceof ${e.expected}, fik ${i}`:`Ugyldigt input: forventede ${t}, fik ${i}`}case`invalid_value`:return e.values.length===1?`Ugyldig værdi: forventede ${L(e.values[0])}`:`Ugyldigt valg: forventede en af følgende ${P(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,i=t(e.origin),a=r[e.origin]??e.origin;return i?`For stor: forventede ${a??`value`} ${i.verb} ${n} ${e.maximum.toString()} ${i.unit??`elementer`}`:`For stor: forventede ${a??`value`} havde ${n} ${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,i=t(e.origin),a=r[e.origin]??e.origin;return i?`For lille: forventede ${a} ${i.verb} ${n} ${e.minimum.toString()} ${i.unit}`:`For lille: forventede ${a} havde ${n} ${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Ugyldig streng: skal starte med "${t.prefix}"`:t.format===`ends_with`?`Ugyldig streng: skal ende med "${t.suffix}"`:t.format===`includes`?`Ugyldig streng: skal indeholde "${t.includes}"`:t.format===`regex`?`Ugyldig streng: skal matche mønsteret ${t.pattern}`:`Ugyldig ${n[t.format]??e.format}`}case`not_multiple_of`:return`Ugyldigt tal: skal være deleligt med ${e.divisor}`;case`unrecognized_keys`:return`${e.keys.length>1?`Ukendte nøgler`:`Ukendt nøgle`}: ${P(e.keys,`, `)}`;case`invalid_key`:return`Ugyldig nøgle i ${e.origin}`;case`invalid_union`:return`Ugyldigt input: matcher ingen af de tilladte typer`;case`invalid_element`:return`Ugyldig værdi i ${e.origin}`;default:return`Ugyldigt input`}}}}));function Df(){return{localeError:Of()}}var Of,kf=o((()=>{z(),Of=()=>{let e={string:{unit:`Zeichen`,verb:`zu haben`},file:{unit:`Bytes`,verb:`zu haben`},array:{unit:`Elemente`,verb:`zu haben`},set:{unit:`Elemente`,verb:`zu haben`}};function t(t){return e[t]??null}let n={regex:`Eingabe`,email:`E-Mail-Adresse`,url:`URL`,emoji:`Emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO-Datum und -Uhrzeit`,date:`ISO-Datum`,time:`ISO-Uhrzeit`,duration:`ISO-Dauer`,ipv4:`IPv4-Adresse`,ipv6:`IPv6-Adresse`,cidrv4:`IPv4-Bereich`,cidrv6:`IPv6-Bereich`,base64:`Base64-codierter String`,base64url:`Base64-URL-codierter String`,json_string:`JSON-String`,e164:`E.164-Nummer`,jwt:`JWT`,template_literal:`Eingabe`},r={nan:`NaN`,number:`Zahl`,array:`Array`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=R(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Ungültige Eingabe: erwartet instanceof ${e.expected}, erhalten ${i}`:`Ungültige Eingabe: erwartet ${t}, erhalten ${i}`}case`invalid_value`:return e.values.length===1?`Ungültige Eingabe: erwartet ${L(e.values[0])}`:`Ungültige Option: erwartet eine von ${P(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Zu groß: erwartet, dass ${e.origin??`Wert`} ${n}${e.maximum.toString()} ${r.unit??`Elemente`} hat`:`Zu groß: erwartet, dass ${e.origin??`Wert`} ${n}${e.maximum.toString()} ist`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Zu klein: erwartet, dass ${e.origin} ${n}${e.minimum.toString()} ${r.unit} hat`:`Zu klein: erwartet, dass ${e.origin} ${n}${e.minimum.toString()} ist`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Ungültiger String: muss mit "${t.prefix}" beginnen`:t.format===`ends_with`?`Ungültiger String: muss mit "${t.suffix}" enden`:t.format===`includes`?`Ungültiger String: muss "${t.includes}" enthalten`:t.format===`regex`?`Ungültiger String: muss dem Muster ${t.pattern} entsprechen`:`Ungültig: ${n[t.format]??e.format}`}case`not_multiple_of`:return`Ungültige Zahl: muss ein Vielfaches von ${e.divisor} sein`;case`unrecognized_keys`:return`${e.keys.length>1?`Unbekannte Schlüssel`:`Unbekannter Schlüssel`}: ${P(e.keys,`, `)}`;case`invalid_key`:return`Ungültiger Schlüssel in ${e.origin}`;case`invalid_union`:return`Ungültige Eingabe`;case`invalid_element`:return`Ungültiger Wert in ${e.origin}`;default:return`Ungültige Eingabe`}}}}));function Af(){return{localeError:jf()}}var jf,Mf=o((()=>{z(),jf=()=>{let e={string:{unit:`χαρακτήρες`,verb:`να έχει`},file:{unit:`bytes`,verb:`να έχει`},array:{unit:`στοιχεία`,verb:`να έχει`},set:{unit:`στοιχεία`,verb:`να έχει`},map:{unit:`καταχωρήσεις`,verb:`να έχει`}};function t(t){return e[t]??null}let n={regex:`είσοδος`,email:`διεύθυνση email`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO ημερομηνία και ώρα`,date:`ISO ημερομηνία`,time:`ISO ώρα`,duration:`ISO διάρκεια`,ipv4:`διεύθυνση IPv4`,ipv6:`διεύθυνση IPv6`,mac:`διεύθυνση MAC`,cidrv4:`εύρος IPv4`,cidrv6:`εύρος IPv6`,base64:`συμβολοσειρά κωδικοποιημένη σε base64`,base64url:`συμβολοσειρά κωδικοποιημένη σε base64url`,json_string:`συμβολοσειρά JSON`,e164:`αριθμός E.164`,jwt:`JWT`,template_literal:`είσοδος`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=R(e.input),i=r[n]??n;return typeof e.expected==`string`&&/^[A-Z]/.test(e.expected)?`Μη έγκυρη είσοδος: αναμενόταν instanceof ${e.expected}, λήφθηκε ${i}`:`Μη έγκυρη είσοδος: αναμενόταν ${t}, λήφθηκε ${i}`}case`invalid_value`:return e.values.length===1?`Μη έγκυρη είσοδος: αναμενόταν ${L(e.values[0])}`:`Μη έγκυρη επιλογή: αναμενόταν ένα από ${P(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Πολύ μεγάλο: αναμενόταν ${e.origin??`τιμή`} να έχει ${n}${e.maximum.toString()} ${r.unit??`στοιχεία`}`:`Πολύ μεγάλο: αναμενόταν ${e.origin??`τιμή`} να είναι ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Πολύ μικρό: αναμενόταν ${e.origin} να έχει ${n}${e.minimum.toString()} ${r.unit}`:`Πολύ μικρό: αναμενόταν ${e.origin} να είναι ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Μη έγκυρη συμβολοσειρά: πρέπει να ξεκινά με "${t.prefix}"`:t.format===`ends_with`?`Μη έγκυρη συμβολοσειρά: πρέπει να τελειώνει με "${t.suffix}"`:t.format===`includes`?`Μη έγκυρη συμβολοσειρά: πρέπει να περιέχει "${t.includes}"`:t.format===`regex`?`Μη έγκυρη συμβολοσειρά: πρέπει να ταιριάζει με το μοτίβο ${t.pattern}`:`Μη έγκυρο: ${n[t.format]??e.format}`}case`not_multiple_of`:return`Μη έγκυρος αριθμός: πρέπει να είναι πολλαπλάσιο του ${e.divisor}`;case`unrecognized_keys`:return`Άγνωστ${e.keys.length>1?`α`:`ο`} κλειδ${e.keys.length>1?`ιά`:`ί`}: ${P(e.keys,`, `)}`;case`invalid_key`:return`Μη έγκυρο κλειδί στο ${e.origin}`;case`invalid_union`:return`Μη έγκυρη είσοδος`;case`invalid_element`:return`Μη έγκυρη τιμή στο ${e.origin}`;default:return`Μη έγκυρη είσοδος`}}}}));function Nf(){return{localeError:Pf()}}var Pf,Ff=o((()=>{z(),Pf=()=>{let e={string:{unit:`characters`,verb:`to have`},file:{unit:`bytes`,verb:`to have`},array:{unit:`items`,verb:`to have`},set:{unit:`items`,verb:`to have`},map:{unit:`entries`,verb:`to have`}};function t(t){return e[t]??null}let n={regex:`input`,email:`email address`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO datetime`,date:`ISO date`,time:`ISO time`,duration:`ISO duration`,ipv4:`IPv4 address`,ipv6:`IPv6 address`,mac:`MAC address`,cidrv4:`IPv4 range`,cidrv6:`IPv6 range`,base64:`base64-encoded string`,base64url:`base64url-encoded string`,json_string:`JSON string`,e164:`E.164 number`,jwt:`JWT`,template_literal:`input`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=R(e.input);return`Invalid input: expected ${t}, received ${r[n]??n}`}case`invalid_value`:return e.values.length===1?`Invalid input: expected ${L(e.values[0])}`:`Invalid option: expected one of ${P(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Too big: expected ${e.origin??`value`} to have ${n}${e.maximum.toString()} ${r.unit??`elements`}`:`Too big: expected ${e.origin??`value`} to be ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Too small: expected ${e.origin} to have ${n}${e.minimum.toString()} ${r.unit}`:`Too small: expected ${e.origin} to be ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Invalid string: must start with "${t.prefix}"`:t.format===`ends_with`?`Invalid string: must end with "${t.suffix}"`:t.format===`includes`?`Invalid string: must include "${t.includes}"`:t.format===`regex`?`Invalid string: must match pattern ${t.pattern}`:`Invalid ${n[t.format]??e.format}`}case`not_multiple_of`:return`Invalid number: must be a multiple of ${e.divisor}`;case`unrecognized_keys`:return`Unrecognized key${e.keys.length>1?`s`:``}: ${P(e.keys,`, `)}`;case`invalid_key`:return`Invalid key in ${e.origin}`;case`invalid_union`:return e.options&&Array.isArray(e.options)&&e.options.length>0?`Invalid discriminator value. Expected ${e.options.map(e=>`'${e}'`).join(` | `)}`:`Invalid input`;case`invalid_element`:return`Invalid value in ${e.origin}`;default:return`Invalid input`}}}}));function If(){return{localeError:Lf()}}var Lf,Rf=o((()=>{z(),Lf=()=>{let e={string:{unit:`karaktrojn`,verb:`havi`},file:{unit:`bajtojn`,verb:`havi`},array:{unit:`elementojn`,verb:`havi`},set:{unit:`elementojn`,verb:`havi`}};function t(t){return e[t]??null}let n={regex:`enigo`,email:`retadreso`,url:`URL`,emoji:`emoĝio`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO-datotempo`,date:`ISO-dato`,time:`ISO-tempo`,duration:`ISO-daŭro`,ipv4:`IPv4-adreso`,ipv6:`IPv6-adreso`,cidrv4:`IPv4-rango`,cidrv6:`IPv6-rango`,base64:`64-ume kodita karaktraro`,base64url:`URL-64-ume kodita karaktraro`,json_string:`JSON-karaktraro`,e164:`E.164-nombro`,jwt:`JWT`,template_literal:`enigo`},r={nan:`NaN`,number:`nombro`,array:`tabelo`,null:`senvalora`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=R(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Nevalida enigo: atendiĝis instanceof ${e.expected}, riceviĝis ${i}`:`Nevalida enigo: atendiĝis ${t}, riceviĝis ${i}`}case`invalid_value`:return e.values.length===1?`Nevalida enigo: atendiĝis ${L(e.values[0])}`:`Nevalida opcio: atendiĝis unu el ${P(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Tro granda: atendiĝis ke ${e.origin??`valoro`} havu ${n}${e.maximum.toString()} ${r.unit??`elementojn`}`:`Tro granda: atendiĝis ke ${e.origin??`valoro`} havu ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Tro malgranda: atendiĝis ke ${e.origin} havu ${n}${e.minimum.toString()} ${r.unit}`:`Tro malgranda: atendiĝis ke ${e.origin} estu ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Nevalida karaktraro: devas komenciĝi per "${t.prefix}"`:t.format===`ends_with`?`Nevalida karaktraro: devas finiĝi per "${t.suffix}"`:t.format===`includes`?`Nevalida karaktraro: devas inkluzivi "${t.includes}"`:t.format===`regex`?`Nevalida karaktraro: devas kongrui kun la modelo ${t.pattern}`:`Nevalida ${n[t.format]??e.format}`}case`not_multiple_of`:return`Nevalida nombro: devas esti oblo de ${e.divisor}`;case`unrecognized_keys`:return`Nekonata${e.keys.length>1?`j`:``} ŝlosilo${e.keys.length>1?`j`:``}: ${P(e.keys,`, `)}`;case`invalid_key`:return`Nevalida ŝlosilo en ${e.origin}`;case`invalid_union`:return`Nevalida enigo`;case`invalid_element`:return`Nevalida valoro en ${e.origin}`;default:return`Nevalida enigo`}}}}));function zf(){return{localeError:Bf()}}var Bf,Vf=o((()=>{z(),Bf=()=>{let e={string:{unit:`caracteres`,verb:`tener`},file:{unit:`bytes`,verb:`tener`},array:{unit:`elementos`,verb:`tener`},set:{unit:`elementos`,verb:`tener`}};function t(t){return e[t]??null}let n={regex:`entrada`,email:`dirección de correo electrónico`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`fecha y hora ISO`,date:`fecha ISO`,time:`hora ISO`,duration:`duración ISO`,ipv4:`dirección IPv4`,ipv6:`dirección IPv6`,cidrv4:`rango IPv4`,cidrv6:`rango IPv6`,base64:`cadena codificada en base64`,base64url:`URL codificada en base64`,json_string:`cadena JSON`,e164:`número E.164`,jwt:`JWT`,template_literal:`entrada`},r={nan:`NaN`,string:`texto`,number:`número`,boolean:`booleano`,array:`arreglo`,object:`objeto`,set:`conjunto`,file:`archivo`,date:`fecha`,bigint:`número grande`,symbol:`símbolo`,undefined:`indefinido`,null:`nulo`,function:`función`,map:`mapa`,record:`registro`,tuple:`tupla`,enum:`enumeración`,union:`unión`,literal:`literal`,promise:`promesa`,void:`vacío`,never:`nunca`,unknown:`desconocido`,any:`cualquiera`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=R(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Entrada inválida: se esperaba instanceof ${e.expected}, recibido ${i}`:`Entrada inválida: se esperaba ${t}, recibido ${i}`}case`invalid_value`:return e.values.length===1?`Entrada inválida: se esperaba ${L(e.values[0])}`:`Opción inválida: se esperaba una de ${P(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,i=t(e.origin),a=r[e.origin]??e.origin;return i?`Demasiado grande: se esperaba que ${a??`valor`} tuviera ${n}${e.maximum.toString()} ${i.unit??`elementos`}`:`Demasiado grande: se esperaba que ${a??`valor`} fuera ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,i=t(e.origin),a=r[e.origin]??e.origin;return i?`Demasiado pequeño: se esperaba que ${a} tuviera ${n}${e.minimum.toString()} ${i.unit}`:`Demasiado pequeño: se esperaba que ${a} fuera ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Cadena inválida: debe comenzar con "${t.prefix}"`:t.format===`ends_with`?`Cadena inválida: debe terminar en "${t.suffix}"`:t.format===`includes`?`Cadena inválida: debe incluir "${t.includes}"`:t.format===`regex`?`Cadena inválida: debe coincidir con el patrón ${t.pattern}`:`Inválido ${n[t.format]??e.format}`}case`not_multiple_of`:return`Número inválido: debe ser múltiplo de ${e.divisor}`;case`unrecognized_keys`:return`Llave${e.keys.length>1?`s`:``} desconocida${e.keys.length>1?`s`:``}: ${P(e.keys,`, `)}`;case`invalid_key`:return`Llave inválida en ${r[e.origin]??e.origin}`;case`invalid_union`:return`Entrada inválida`;case`invalid_element`:return`Valor inválido en ${r[e.origin]??e.origin}`;default:return`Entrada inválida`}}}}));function Hf(){return{localeError:Uf()}}var Uf,Wf=o((()=>{z(),Uf=()=>{let e={string:{unit:`کاراکتر`,verb:`داشته باشد`},file:{unit:`بایت`,verb:`داشته باشد`},array:{unit:`آیتم`,verb:`داشته باشد`},set:{unit:`آیتم`,verb:`داشته باشد`}};function t(t){return e[t]??null}let n={regex:`ورودی`,email:`آدرس ایمیل`,url:`URL`,emoji:`ایموجی`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`تاریخ و زمان ایزو`,date:`تاریخ ایزو`,time:`زمان ایزو`,duration:`مدت زمان ایزو`,ipv4:`IPv4 آدرس`,ipv6:`IPv6 آدرس`,cidrv4:`IPv4 دامنه`,cidrv6:`IPv6 دامنه`,base64:`base64-encoded رشته`,base64url:`base64url-encoded رشته`,json_string:`JSON رشته`,e164:`E.164 عدد`,jwt:`JWT`,template_literal:`ورودی`},r={nan:`NaN`,number:`عدد`,array:`آرایه`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=R(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`ورودی نامعتبر: می‌بایست instanceof ${e.expected} می‌بود، ${i} دریافت شد`:`ورودی نامعتبر: می‌بایست ${t} می‌بود، ${i} دریافت شد`}case`invalid_value`:return e.values.length===1?`ورودی نامعتبر: می‌بایست ${L(e.values[0])} می‌بود`:`گزینه نامعتبر: می‌بایست یکی از ${P(e.values,`|`)} می‌بود`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`خیلی بزرگ: ${e.origin??`مقدار`} باید ${n}${e.maximum.toString()} ${r.unit??`عنصر`} باشد`:`خیلی بزرگ: ${e.origin??`مقدار`} باید ${n}${e.maximum.toString()} باشد`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`خیلی کوچک: ${e.origin} باید ${n}${e.minimum.toString()} ${r.unit} باشد`:`خیلی کوچک: ${e.origin} باید ${n}${e.minimum.toString()} باشد`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`رشته نامعتبر: باید با "${t.prefix}" شروع شود`:t.format===`ends_with`?`رشته نامعتبر: باید با "${t.suffix}" تمام شود`:t.format===`includes`?`رشته نامعتبر: باید شامل "${t.includes}" باشد`:t.format===`regex`?`رشته نامعتبر: باید با الگوی ${t.pattern} مطابقت داشته باشد`:`${n[t.format]??e.format} نامعتبر`}case`not_multiple_of`:return`عدد نامعتبر: باید مضرب ${e.divisor} باشد`;case`unrecognized_keys`:return`کلید${e.keys.length>1?`های`:``} ناشناس: ${P(e.keys,`, `)}`;case`invalid_key`:return`کلید ناشناس در ${e.origin}`;case`invalid_union`:return`ورودی نامعتبر`;case`invalid_element`:return`مقدار نامعتبر در ${e.origin}`;default:return`ورودی نامعتبر`}}}}));function Gf(){return{localeError:Kf()}}var Kf,qf=o((()=>{z(),Kf=()=>{let e={string:{unit:`merkkiä`,subject:`merkkijonon`},file:{unit:`tavua`,subject:`tiedoston`},array:{unit:`alkiota`,subject:`listan`},set:{unit:`alkiota`,subject:`joukon`},number:{unit:``,subject:`luvun`},bigint:{unit:``,subject:`suuren kokonaisluvun`},int:{unit:``,subject:`kokonaisluvun`},date:{unit:``,subject:`päivämäärän`}};function t(t){return e[t]??null}let n={regex:`säännöllinen lauseke`,email:`sähköpostiosoite`,url:`URL-osoite`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO-aikaleima`,date:`ISO-päivämäärä`,time:`ISO-aika`,duration:`ISO-kesto`,ipv4:`IPv4-osoite`,ipv6:`IPv6-osoite`,cidrv4:`IPv4-alue`,cidrv6:`IPv6-alue`,base64:`base64-koodattu merkkijono`,base64url:`base64url-koodattu merkkijono`,json_string:`JSON-merkkijono`,e164:`E.164-luku`,jwt:`JWT`,template_literal:`templaattimerkkijono`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=R(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Virheellinen tyyppi: odotettiin instanceof ${e.expected}, oli ${i}`:`Virheellinen tyyppi: odotettiin ${t}, oli ${i}`}case`invalid_value`:return e.values.length===1?`Virheellinen syöte: täytyy olla ${L(e.values[0])}`:`Virheellinen valinta: täytyy olla yksi seuraavista: ${P(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Liian suuri: ${r.subject} täytyy olla ${n}${e.maximum.toString()} ${r.unit}`.trim():`Liian suuri: arvon täytyy olla ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Liian pieni: ${r.subject} täytyy olla ${n}${e.minimum.toString()} ${r.unit}`.trim():`Liian pieni: arvon täytyy olla ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Virheellinen syöte: täytyy alkaa "${t.prefix}"`:t.format===`ends_with`?`Virheellinen syöte: täytyy loppua "${t.suffix}"`:t.format===`includes`?`Virheellinen syöte: täytyy sisältää "${t.includes}"`:t.format===`regex`?`Virheellinen syöte: täytyy vastata säännöllistä lauseketta ${t.pattern}`:`Virheellinen ${n[t.format]??e.format}`}case`not_multiple_of`:return`Virheellinen luku: täytyy olla luvun ${e.divisor} monikerta`;case`unrecognized_keys`:return`${e.keys.length>1?`Tuntemattomat avaimet`:`Tuntematon avain`}: ${P(e.keys,`, `)}`;case`invalid_key`:return`Virheellinen avain tietueessa`;case`invalid_union`:return`Virheellinen unioni`;case`invalid_element`:return`Virheellinen arvo joukossa`;default:return`Virheellinen syöte`}}}}));function Jf(){return{localeError:Yf()}}var Yf,Xf=o((()=>{z(),Yf=()=>{let e={string:{unit:`caractères`,verb:`avoir`},file:{unit:`octets`,verb:`avoir`},array:{unit:`éléments`,verb:`avoir`},set:{unit:`éléments`,verb:`avoir`}};function t(t){return e[t]??null}let n={regex:`entrée`,email:`adresse e-mail`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`date et heure ISO`,date:`date ISO`,time:`heure ISO`,duration:`durée ISO`,ipv4:`adresse IPv4`,ipv6:`adresse IPv6`,cidrv4:`plage IPv4`,cidrv6:`plage IPv6`,base64:`chaîne encodée en base64`,base64url:`chaîne encodée en base64url`,json_string:`chaîne JSON`,e164:`numéro E.164`,jwt:`JWT`,template_literal:`entrée`},r={string:`chaîne`,number:`nombre`,int:`entier`,boolean:`booléen`,bigint:`grand entier`,symbol:`symbole`,undefined:`indéfini`,null:`null`,never:`jamais`,void:`vide`,date:`date`,array:`tableau`,object:`objet`,tuple:`tuple`,record:`enregistrement`,map:`carte`,set:`ensemble`,file:`fichier`,nonoptional:`non-optionnel`,nan:`NaN`,function:`fonction`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=R(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Entrée invalide : instanceof ${e.expected} attendu, ${i} reçu`:`Entrée invalide : ${t} attendu, ${i} reçu`}case`invalid_value`:return e.values.length===1?`Entrée invalide : ${L(e.values[0])} attendu`:`Option invalide : une valeur parmi ${P(e.values,`|`)} attendue`;case`too_big`:{let n=e.inclusive?`<=`:`<`,i=t(e.origin);return i?`Trop grand : ${r[e.origin]??`valeur`} doit ${i.verb} ${n}${e.maximum.toString()} ${i.unit??`élément(s)`}`:`Trop grand : ${r[e.origin]??`valeur`} doit être ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,i=t(e.origin);return i?`Trop petit : ${r[e.origin]??`valeur`} doit ${i.verb} ${n}${e.minimum.toString()} ${i.unit}`:`Trop petit : ${r[e.origin]??`valeur`} doit être ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Chaîne invalide : doit commencer par "${t.prefix}"`:t.format===`ends_with`?`Chaîne invalide : doit se terminer par "${t.suffix}"`:t.format===`includes`?`Chaîne invalide : doit inclure "${t.includes}"`:t.format===`regex`?`Chaîne invalide : doit correspondre au modèle ${t.pattern}`:`${n[t.format]??e.format} invalide`}case`not_multiple_of`:return`Nombre invalide : doit être un multiple de ${e.divisor}`;case`unrecognized_keys`:return`Clé${e.keys.length>1?`s`:``} non reconnue${e.keys.length>1?`s`:``} : ${P(e.keys,`, `)}`;case`invalid_key`:return`Clé invalide dans ${e.origin}`;case`invalid_union`:return`Entrée invalide`;case`invalid_element`:return`Valeur invalide dans ${e.origin}`;default:return`Entrée invalide`}}}}));function Zf(){return{localeError:Qf()}}var Qf,$f=o((()=>{z(),Qf=()=>{let e={string:{unit:`caractères`,verb:`avoir`},file:{unit:`octets`,verb:`avoir`},array:{unit:`éléments`,verb:`avoir`},set:{unit:`éléments`,verb:`avoir`}};function t(t){return e[t]??null}let n={regex:`entrée`,email:`adresse courriel`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`date-heure ISO`,date:`date ISO`,time:`heure ISO`,duration:`durée ISO`,ipv4:`adresse IPv4`,ipv6:`adresse IPv6`,cidrv4:`plage IPv4`,cidrv6:`plage IPv6`,base64:`chaîne encodée en base64`,base64url:`chaîne encodée en base64url`,json_string:`chaîne JSON`,e164:`numéro E.164`,jwt:`JWT`,template_literal:`entrée`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=R(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Entrée invalide : attendu instanceof ${e.expected}, reçu ${i}`:`Entrée invalide : attendu ${t}, reçu ${i}`}case`invalid_value`:return e.values.length===1?`Entrée invalide : attendu ${L(e.values[0])}`:`Option invalide : attendu l'une des valeurs suivantes ${P(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`≤`:`<`,r=t(e.origin);return r?`Trop grand : attendu que ${e.origin??`la valeur`} ait ${n}${e.maximum.toString()} ${r.unit}`:`Trop grand : attendu que ${e.origin??`la valeur`} soit ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`≥`:`>`,r=t(e.origin);return r?`Trop petit : attendu que ${e.origin} ait ${n}${e.minimum.toString()} ${r.unit}`:`Trop petit : attendu que ${e.origin} soit ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Chaîne invalide : doit commencer par "${t.prefix}"`:t.format===`ends_with`?`Chaîne invalide : doit se terminer par "${t.suffix}"`:t.format===`includes`?`Chaîne invalide : doit inclure "${t.includes}"`:t.format===`regex`?`Chaîne invalide : doit correspondre au motif ${t.pattern}`:`${n[t.format]??e.format} invalide`}case`not_multiple_of`:return`Nombre invalide : doit être un multiple de ${e.divisor}`;case`unrecognized_keys`:return`Clé${e.keys.length>1?`s`:``} non reconnue${e.keys.length>1?`s`:``} : ${P(e.keys,`, `)}`;case`invalid_key`:return`Clé invalide dans ${e.origin}`;case`invalid_union`:return`Entrée invalide`;case`invalid_element`:return`Valeur invalide dans ${e.origin}`;default:return`Entrée invalide`}}}}));function ep(){return{localeError:tp()}}var tp,np=o((()=>{z(),tp=()=>{let e={string:{label:`מחרוזת`,gender:`f`},number:{label:`מספר`,gender:`m`},boolean:{label:`ערך בוליאני`,gender:`m`},bigint:{label:`BigInt`,gender:`m`},date:{label:`תאריך`,gender:`m`},array:{label:`מערך`,gender:`m`},object:{label:`אובייקט`,gender:`m`},null:{label:`ערך ריק (null)`,gender:`m`},undefined:{label:`ערך לא מוגדר (undefined)`,gender:`m`},symbol:{label:`סימבול (Symbol)`,gender:`m`},function:{label:`פונקציה`,gender:`f`},map:{label:`מפה (Map)`,gender:`f`},set:{label:`קבוצה (Set)`,gender:`f`},file:{label:`קובץ`,gender:`m`},promise:{label:`Promise`,gender:`m`},NaN:{label:`NaN`,gender:`m`},unknown:{label:`ערך לא ידוע`,gender:`m`},value:{label:`ערך`,gender:`m`}},t={string:{unit:`תווים`,shortLabel:`קצר`,longLabel:`ארוך`},file:{unit:`בייטים`,shortLabel:`קטן`,longLabel:`גדול`},array:{unit:`פריטים`,shortLabel:`קטן`,longLabel:`גדול`},set:{unit:`פריטים`,shortLabel:`קטן`,longLabel:`גדול`},number:{unit:``,shortLabel:`קטן`,longLabel:`גדול`}},n=t=>t?e[t]:void 0,r=t=>{let r=n(t);return r?r.label:t??e.unknown.label},i=e=>`ה${r(e)}`,a=e=>(n(e)?.gender??`m`)===`f`?`צריכה להיות`:`צריך להיות`,o=e=>e?t[e]??null:null,s={regex:{label:`קלט`,gender:`m`},email:{label:`כתובת אימייל`,gender:`f`},url:{label:`כתובת רשת`,gender:`f`},emoji:{label:`אימוג'י`,gender:`m`},uuid:{label:`UUID`,gender:`m`},nanoid:{label:`nanoid`,gender:`m`},guid:{label:`GUID`,gender:`m`},cuid:{label:`cuid`,gender:`m`},cuid2:{label:`cuid2`,gender:`m`},ulid:{label:`ULID`,gender:`m`},xid:{label:`XID`,gender:`m`},ksuid:{label:`KSUID`,gender:`m`},datetime:{label:`תאריך וזמן ISO`,gender:`m`},date:{label:`תאריך ISO`,gender:`m`},time:{label:`זמן ISO`,gender:`m`},duration:{label:`משך זמן ISO`,gender:`m`},ipv4:{label:`כתובת IPv4`,gender:`f`},ipv6:{label:`כתובת IPv6`,gender:`f`},cidrv4:{label:`טווח IPv4`,gender:`m`},cidrv6:{label:`טווח IPv6`,gender:`m`},base64:{label:`מחרוזת בבסיס 64`,gender:`f`},base64url:{label:`מחרוזת בבסיס 64 לכתובות רשת`,gender:`f`},json_string:{label:`מחרוזת JSON`,gender:`f`},e164:{label:`מספר E.164`,gender:`m`},jwt:{label:`JWT`,gender:`m`},ends_with:{label:`קלט`,gender:`m`},includes:{label:`קלט`,gender:`m`},lowercase:{label:`קלט`,gender:`m`},starts_with:{label:`קלט`,gender:`m`},uppercase:{label:`קלט`,gender:`m`}},c={nan:`NaN`};return t=>{switch(t.code){case`invalid_type`:{let n=t.expected,i=c[n??``]??r(n),a=R(t.input),o=c[a]??e[a]?.label??a;return/^[A-Z]/.test(t.expected)?`קלט לא תקין: צריך להיות instanceof ${t.expected}, התקבל ${o}`:`קלט לא תקין: צריך להיות ${i}, התקבל ${o}`}case`invalid_value`:{if(t.values.length===1)return`ערך לא תקין: הערך חייב להיות ${L(t.values[0])}`;let e=t.values.map(e=>L(e));if(t.values.length===2)return`ערך לא תקין: האפשרויות המתאימות הן ${e[0]} או ${e[1]}`;let n=e[e.length-1];return`ערך לא תקין: האפשרויות המתאימות הן ${e.slice(0,-1).join(`, `)} או ${n}`}case`too_big`:{let e=o(t.origin),n=i(t.origin??`value`);if(t.origin===`string`)return`${e?.longLabel??`ארוך`} מדי: ${n} צריכה להכיל ${t.maximum.toString()} ${e?.unit??``} ${t.inclusive?`או פחות`:`לכל היותר`}`.trim();if(t.origin===`number`)return`גדול מדי: ${n} צריך להיות ${t.inclusive?`קטן או שווה ל-${t.maximum}`:`קטן מ-${t.maximum}`}`;if(t.origin===`array`||t.origin===`set`)return`גדול מדי: ${n} ${t.origin===`set`?`צריכה`:`צריך`} להכיל ${t.inclusive?`${t.maximum} ${e?.unit??``} או פחות`:`פחות מ-${t.maximum} ${e?.unit??``}`}`.trim();let r=t.inclusive?`<=`:`<`,s=a(t.origin??`value`);return e?.unit?`${e.longLabel} מדי: ${n} ${s} ${r}${t.maximum.toString()} ${e.unit}`:`${e?.longLabel??`גדול`} מדי: ${n} ${s} ${r}${t.maximum.toString()}`}case`too_small`:{let e=o(t.origin),n=i(t.origin??`value`);if(t.origin===`string`)return`${e?.shortLabel??`קצר`} מדי: ${n} צריכה להכיל ${t.minimum.toString()} ${e?.unit??``} ${t.inclusive?`או יותר`:`לפחות`}`.trim();if(t.origin===`number`)return`קטן מדי: ${n} צריך להיות ${t.inclusive?`גדול או שווה ל-${t.minimum}`:`גדול מ-${t.minimum}`}`;if(t.origin===`array`||t.origin===`set`){let r=t.origin===`set`?`צריכה`:`צריך`;return t.minimum===1&&t.inclusive?`קטן מדי: ${n} ${r} להכיל ${t.origin,`לפחות פריט אחד`}`:`קטן מדי: ${n} ${r} להכיל ${t.inclusive?`${t.minimum} ${e?.unit??``} או יותר`:`יותר מ-${t.minimum} ${e?.unit??``}`}`.trim()}let r=t.inclusive?`>=`:`>`,s=a(t.origin??`value`);return e?.unit?`${e.shortLabel} מדי: ${n} ${s} ${r}${t.minimum.toString()} ${e.unit}`:`${e?.shortLabel??`קטן`} מדי: ${n} ${s} ${r}${t.minimum.toString()}`}case`invalid_format`:{let e=t;if(e.format===`starts_with`)return`המחרוזת חייבת להתחיל ב "${e.prefix}"`;if(e.format===`ends_with`)return`המחרוזת חייבת להסתיים ב "${e.suffix}"`;if(e.format===`includes`)return`המחרוזת חייבת לכלול "${e.includes}"`;if(e.format===`regex`)return`המחרוזת חייבת להתאים לתבנית ${e.pattern}`;let n=s[e.format];return`${n?.label??e.format} לא ${(n?.gender??`m`)===`f`?`תקינה`:`תקין`}`}case`not_multiple_of`:return`מספר לא תקין: חייב להיות מכפלה של ${t.divisor}`;case`unrecognized_keys`:return`מפתח${t.keys.length>1?`ות`:``} לא מזוה${t.keys.length>1?`ים`:`ה`}: ${P(t.keys,`, `)}`;case`invalid_key`:return`שדה לא תקין באובייקט`;case`invalid_union`:return`קלט לא תקין`;case`invalid_element`:return`ערך לא תקין ב${i(t.origin??`array`)}`;default:return`קלט לא תקין`}}}}));function rp(){return{localeError:ip()}}var ip,ap=o((()=>{z(),ip=()=>{let e={string:{unit:`znakova`,verb:`imati`},file:{unit:`bajtova`,verb:`imati`},array:{unit:`stavki`,verb:`imati`},set:{unit:`stavki`,verb:`imati`}};function t(t){return e[t]??null}let n={regex:`unos`,email:`email adresa`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO datum i vrijeme`,date:`ISO datum`,time:`ISO vrijeme`,duration:`ISO trajanje`,ipv4:`IPv4 adresa`,ipv6:`IPv6 adresa`,cidrv4:`IPv4 raspon`,cidrv6:`IPv6 raspon`,base64:`base64 kodirani tekst`,base64url:`base64url kodirani tekst`,json_string:`JSON tekst`,e164:`E.164 broj`,jwt:`JWT`,template_literal:`unos`},r={nan:`NaN`,string:`tekst`,number:`broj`,boolean:`boolean`,array:`niz`,object:`objekt`,set:`skup`,file:`datoteka`,date:`datum`,bigint:`bigint`,symbol:`simbol`,undefined:`undefined`,null:`null`,function:`funkcija`,map:`mapa`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=R(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Neispravan unos: očekuje se instanceof ${e.expected}, a primljeno je ${i}`:`Neispravan unos: očekuje se ${t}, a primljeno je ${i}`}case`invalid_value`:return e.values.length===1?`Neispravna vrijednost: očekivano ${L(e.values[0])}`:`Neispravna opcija: očekivano jedno od ${P(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,i=t(e.origin),a=r[e.origin]??e.origin;return i?`Preveliko: očekivano da ${a??`vrijednost`} ima ${n}${e.maximum.toString()} ${i.unit??`elemenata`}`:`Preveliko: očekivano da ${a??`vrijednost`} bude ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,i=t(e.origin),a=r[e.origin]??e.origin;return i?`Premalo: očekivano da ${a} ima ${n}${e.minimum.toString()} ${i.unit}`:`Premalo: očekivano da ${a} bude ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Neispravan tekst: mora započinjati s "${t.prefix}"`:t.format===`ends_with`?`Neispravan tekst: mora završavati s "${t.suffix}"`:t.format===`includes`?`Neispravan tekst: mora sadržavati "${t.includes}"`:t.format===`regex`?`Neispravan tekst: mora odgovarati uzorku ${t.pattern}`:`Neispravna ${n[t.format]??e.format}`}case`not_multiple_of`:return`Neispravan broj: mora biti višekratnik od ${e.divisor}`;case`unrecognized_keys`:return`Neprepoznat${e.keys.length>1?`i ključevi`:` ključ`}: ${P(e.keys,`, `)}`;case`invalid_key`:return`Neispravan ključ u ${r[e.origin]??e.origin}`;case`invalid_union`:return`Neispravan unos`;case`invalid_element`:return`Neispravna vrijednost u ${r[e.origin]??e.origin}`;default:return`Neispravan unos`}}}}));function op(){return{localeError:sp()}}var sp,cp=o((()=>{z(),sp=()=>{let e={string:{unit:`karakter`,verb:`legyen`},file:{unit:`byte`,verb:`legyen`},array:{unit:`elem`,verb:`legyen`},set:{unit:`elem`,verb:`legyen`}};function t(t){return e[t]??null}let n={regex:`bemenet`,email:`email cím`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO időbélyeg`,date:`ISO dátum`,time:`ISO idő`,duration:`ISO időintervallum`,ipv4:`IPv4 cím`,ipv6:`IPv6 cím`,cidrv4:`IPv4 tartomány`,cidrv6:`IPv6 tartomány`,base64:`base64-kódolt string`,base64url:`base64url-kódolt string`,json_string:`JSON string`,e164:`E.164 szám`,jwt:`JWT`,template_literal:`bemenet`},r={nan:`NaN`,number:`szám`,array:`tömb`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=R(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Érvénytelen bemenet: a várt érték instanceof ${e.expected}, a kapott érték ${i}`:`Érvénytelen bemenet: a várt érték ${t}, a kapott érték ${i}`}case`invalid_value`:return e.values.length===1?`Érvénytelen bemenet: a várt érték ${L(e.values[0])}`:`Érvénytelen opció: valamelyik érték várt ${P(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Túl nagy: ${e.origin??`érték`} mérete túl nagy ${n}${e.maximum.toString()} ${r.unit??`elem`}`:`Túl nagy: a bemeneti érték ${e.origin??`érték`} túl nagy: ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Túl kicsi: a bemeneti érték ${e.origin} mérete túl kicsi ${n}${e.minimum.toString()} ${r.unit}`:`Túl kicsi: a bemeneti érték ${e.origin} túl kicsi ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Érvénytelen string: "${t.prefix}" értékkel kell kezdődnie`:t.format===`ends_with`?`Érvénytelen string: "${t.suffix}" értékkel kell végződnie`:t.format===`includes`?`Érvénytelen string: "${t.includes}" értéket kell tartalmaznia`:t.format===`regex`?`Érvénytelen string: ${t.pattern} mintának kell megfelelnie`:`Érvénytelen ${n[t.format]??e.format}`}case`not_multiple_of`:return`Érvénytelen szám: ${e.divisor} többszörösének kell lennie`;case`unrecognized_keys`:return`Ismeretlen kulcs${e.keys.length>1?`s`:``}: ${P(e.keys,`, `)}`;case`invalid_key`:return`Érvénytelen kulcs ${e.origin}`;case`invalid_union`:return`Érvénytelen bemenet`;case`invalid_element`:return`Érvénytelen érték: ${e.origin}`;default:return`Érvénytelen bemenet`}}}}));function lp(e,t,n){return Math.abs(e)===1?t:n}function up(e){if(!e)return``;let t=[`ա`,`ե`,`ը`,`ի`,`ո`,`ու`,`օ`],n=e[e.length-1];return e+(t.includes(n)?`ն`:`ը`)}function dp(){return{localeError:fp()}}var fp,pp=o((()=>{z(),fp=()=>{let e={string:{unit:{one:`նշան`,many:`նշաններ`},verb:`ունենալ`},file:{unit:{one:`բայթ`,many:`բայթեր`},verb:`ունենալ`},array:{unit:{one:`տարր`,many:`տարրեր`},verb:`ունենալ`},set:{unit:{one:`տարր`,many:`տարրեր`},verb:`ունենալ`}};function t(t){return e[t]??null}let n={regex:`մուտք`,email:`էլ. հասցե`,url:`URL`,emoji:`էմոջի`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO ամսաթիվ և ժամ`,date:`ISO ամսաթիվ`,time:`ISO ժամ`,duration:`ISO տևողություն`,ipv4:`IPv4 հասցե`,ipv6:`IPv6 հասցե`,cidrv4:`IPv4 միջակայք`,cidrv6:`IPv6 միջակայք`,base64:`base64 ձևաչափով տող`,base64url:`base64url ձևաչափով տող`,json_string:`JSON տող`,e164:`E.164 համար`,jwt:`JWT`,template_literal:`մուտք`},r={nan:`NaN`,number:`թիվ`,array:`զանգված`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=R(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Սխալ մուտքագրում․ սպասվում էր instanceof ${e.expected}, ստացվել է ${i}`:`Սխալ մուտքագրում․ սպասվում էր ${t}, ստացվել է ${i}`}case`invalid_value`:return e.values.length===1?`Սխալ մուտքագրում․ սպասվում էր ${L(e.values[1])}`:`Սխալ տարբերակ․ սպասվում էր հետևյալներից մեկը՝ ${P(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);if(r){let t=lp(Number(e.maximum),r.unit.one,r.unit.many);return`Չափազանց մեծ արժեք․ սպասվում է, որ ${up(e.origin??`արժեք`)} կունենա ${n}${e.maximum.toString()} ${t}`}return`Չափազանց մեծ արժեք․ սպասվում է, որ ${up(e.origin??`արժեք`)} լինի ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);if(r){let t=lp(Number(e.minimum),r.unit.one,r.unit.many);return`Չափազանց փոքր արժեք․ սպասվում է, որ ${up(e.origin)} կունենա ${n}${e.minimum.toString()} ${t}`}return`Չափազանց փոքր արժեք․ սպասվում է, որ ${up(e.origin)} լինի ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Սխալ տող․ պետք է սկսվի "${t.prefix}"-ով`:t.format===`ends_with`?`Սխալ տող․ պետք է ավարտվի "${t.suffix}"-ով`:t.format===`includes`?`Սխալ տող․ պետք է պարունակի "${t.includes}"`:t.format===`regex`?`Սխալ տող․ պետք է համապատասխանի ${t.pattern} ձևաչափին`:`Սխալ ${n[t.format]??e.format}`}case`not_multiple_of`:return`Սխալ թիվ․ պետք է բազմապատիկ լինի ${e.divisor}-ի`;case`unrecognized_keys`:return`Չճանաչված բանալի${e.keys.length>1?`ներ`:``}. ${P(e.keys,`, `)}`;case`invalid_key`:return`Սխալ բանալի ${up(e.origin)}-ում`;case`invalid_union`:return`Սխալ մուտքագրում`;case`invalid_element`:return`Սխալ արժեք ${up(e.origin)}-ում`;default:return`Սխալ մուտքագրում`}}}}));function mp(){return{localeError:hp()}}var hp,gp=o((()=>{z(),hp=()=>{let e={string:{unit:`karakter`,verb:`memiliki`},file:{unit:`byte`,verb:`memiliki`},array:{unit:`item`,verb:`memiliki`},set:{unit:`item`,verb:`memiliki`}};function t(t){return e[t]??null}let n={regex:`input`,email:`alamat email`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`tanggal dan waktu format ISO`,date:`tanggal format ISO`,time:`jam format ISO`,duration:`durasi format ISO`,ipv4:`alamat IPv4`,ipv6:`alamat IPv6`,cidrv4:`rentang alamat IPv4`,cidrv6:`rentang alamat IPv6`,base64:`string dengan enkode base64`,base64url:`string dengan enkode base64url`,json_string:`string JSON`,e164:`angka E.164`,jwt:`JWT`,template_literal:`input`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=R(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Input tidak valid: diharapkan instanceof ${e.expected}, diterima ${i}`:`Input tidak valid: diharapkan ${t}, diterima ${i}`}case`invalid_value`:return e.values.length===1?`Input tidak valid: diharapkan ${L(e.values[0])}`:`Pilihan tidak valid: diharapkan salah satu dari ${P(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Terlalu besar: diharapkan ${e.origin??`value`} memiliki ${n}${e.maximum.toString()} ${r.unit??`elemen`}`:`Terlalu besar: diharapkan ${e.origin??`value`} menjadi ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Terlalu kecil: diharapkan ${e.origin} memiliki ${n}${e.minimum.toString()} ${r.unit}`:`Terlalu kecil: diharapkan ${e.origin} menjadi ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`String tidak valid: harus dimulai dengan "${t.prefix}"`:t.format===`ends_with`?`String tidak valid: harus berakhir dengan "${t.suffix}"`:t.format===`includes`?`String tidak valid: harus menyertakan "${t.includes}"`:t.format===`regex`?`String tidak valid: harus sesuai pola ${t.pattern}`:`${n[t.format]??e.format} tidak valid`}case`not_multiple_of`:return`Angka tidak valid: harus kelipatan dari ${e.divisor}`;case`unrecognized_keys`:return`Kunci tidak dikenali ${e.keys.length>1?`s`:``}: ${P(e.keys,`, `)}`;case`invalid_key`:return`Kunci tidak valid di ${e.origin}`;case`invalid_union`:return`Input tidak valid`;case`invalid_element`:return`Nilai tidak valid di ${e.origin}`;default:return`Input tidak valid`}}}}));function _p(){return{localeError:vp()}}var vp,yp=o((()=>{z(),vp=()=>{let e={string:{unit:`stafi`,verb:`að hafa`},file:{unit:`bæti`,verb:`að hafa`},array:{unit:`hluti`,verb:`að hafa`},set:{unit:`hluti`,verb:`að hafa`}};function t(t){return e[t]??null}let n={regex:`gildi`,email:`netfang`,url:`vefslóð`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO dagsetning og tími`,date:`ISO dagsetning`,time:`ISO tími`,duration:`ISO tímalengd`,ipv4:`IPv4 address`,ipv6:`IPv6 address`,cidrv4:`IPv4 range`,cidrv6:`IPv6 range`,base64:`base64-encoded strengur`,base64url:`base64url-encoded strengur`,json_string:`JSON strengur`,e164:`E.164 tölugildi`,jwt:`JWT`,template_literal:`gildi`},r={nan:`NaN`,number:`númer`,array:`fylki`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=R(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Rangt gildi: Þú slóst inn ${i} þar sem á að vera instanceof ${e.expected}`:`Rangt gildi: Þú slóst inn ${i} þar sem á að vera ${t}`}case`invalid_value`:return e.values.length===1?`Rangt gildi: gert ráð fyrir ${L(e.values[0])}`:`Ógilt val: má vera eitt af eftirfarandi ${P(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Of stórt: gert er ráð fyrir að ${e.origin??`gildi`} hafi ${n}${e.maximum.toString()} ${r.unit??`hluti`}`:`Of stórt: gert er ráð fyrir að ${e.origin??`gildi`} sé ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Of lítið: gert er ráð fyrir að ${e.origin} hafi ${n}${e.minimum.toString()} ${r.unit}`:`Of lítið: gert er ráð fyrir að ${e.origin} sé ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Ógildur strengur: verður að byrja á "${t.prefix}"`:t.format===`ends_with`?`Ógildur strengur: verður að enda á "${t.suffix}"`:t.format===`includes`?`Ógildur strengur: verður að innihalda "${t.includes}"`:t.format===`regex`?`Ógildur strengur: verður að fylgja mynstri ${t.pattern}`:`Rangt ${n[t.format]??e.format}`}case`not_multiple_of`:return`Röng tala: verður að vera margfeldi af ${e.divisor}`;case`unrecognized_keys`:return`Óþekkt ${e.keys.length>1?`ir lyklar`:`ur lykill`}: ${P(e.keys,`, `)}`;case`invalid_key`:return`Rangur lykill í ${e.origin}`;case`invalid_union`:return`Rangt gildi`;case`invalid_element`:return`Rangt gildi í ${e.origin}`;default:return`Rangt gildi`}}}}));function bp(){return{localeError:xp()}}var xp,Sp=o((()=>{z(),xp=()=>{let e={string:{unit:`caratteri`,verb:`avere`},file:{unit:`byte`,verb:`avere`},array:{unit:`elementi`,verb:`avere`},set:{unit:`elementi`,verb:`avere`}};function t(t){return e[t]??null}let n={regex:`input`,email:`indirizzo email`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`data e ora ISO`,date:`data ISO`,time:`ora ISO`,duration:`durata ISO`,ipv4:`indirizzo IPv4`,ipv6:`indirizzo IPv6`,cidrv4:`intervallo IPv4`,cidrv6:`intervallo IPv6`,base64:`stringa codificata in base64`,base64url:`URL codificata in base64`,json_string:`stringa JSON`,e164:`numero E.164`,jwt:`JWT`,template_literal:`input`},r={nan:`NaN`,number:`numero`,array:`vettore`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=R(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Input non valido: atteso instanceof ${e.expected}, ricevuto ${i}`:`Input non valido: atteso ${t}, ricevuto ${i}`}case`invalid_value`:return e.values.length===1?`Input non valido: atteso ${L(e.values[0])}`:`Opzione non valida: atteso uno tra ${P(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Troppo grande: ${e.origin??`valore`} deve avere ${n}${e.maximum.toString()} ${r.unit??`elementi`}`:`Troppo grande: ${e.origin??`valore`} deve essere ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Troppo piccolo: ${e.origin} deve avere ${n}${e.minimum.toString()} ${r.unit}`:`Troppo piccolo: ${e.origin} deve essere ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Stringa non valida: deve iniziare con "${t.prefix}"`:t.format===`ends_with`?`Stringa non valida: deve terminare con "${t.suffix}"`:t.format===`includes`?`Stringa non valida: deve includere "${t.includes}"`:t.format===`regex`?`Stringa non valida: deve corrispondere al pattern ${t.pattern}`:`Input non valido: ${n[t.format]??e.format}`}case`not_multiple_of`:return`Numero non valido: deve essere un multiplo di ${e.divisor}`;case`unrecognized_keys`:return`Chiav${e.keys.length>1?`i`:`e`} non riconosciut${e.keys.length>1?`e`:`a`}: ${P(e.keys,`, `)}`;case`invalid_key`:return`Chiave non valida in ${e.origin}`;case`invalid_union`:return`Input non valido`;case`invalid_element`:return`Valore non valido in ${e.origin}`;default:return`Input non valido`}}}}));function Cp(){return{localeError:wp()}}var wp,Tp=o((()=>{z(),wp=()=>{let e={string:{unit:`文字`,verb:`である`},file:{unit:`バイト`,verb:`である`},array:{unit:`要素`,verb:`である`},set:{unit:`要素`,verb:`である`}};function t(t){return e[t]??null}let n={regex:`入力値`,email:`メールアドレス`,url:`URL`,emoji:`絵文字`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO日時`,date:`ISO日付`,time:`ISO時刻`,duration:`ISO期間`,ipv4:`IPv4アドレス`,ipv6:`IPv6アドレス`,cidrv4:`IPv4範囲`,cidrv6:`IPv6範囲`,base64:`base64エンコード文字列`,base64url:`base64urlエンコード文字列`,json_string:`JSON文字列`,e164:`E.164番号`,jwt:`JWT`,template_literal:`入力値`},r={nan:`NaN`,number:`数値`,array:`配列`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=R(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`無効な入力: instanceof ${e.expected}が期待されましたが、${i}が入力されました`:`無効な入力: ${t}が期待されましたが、${i}が入力されました`}case`invalid_value`:return e.values.length===1?`無効な入力: ${L(e.values[0])}が期待されました`:`無効な選択: ${P(e.values,`、`)}のいずれかである必要があります`;case`too_big`:{let n=e.inclusive?`以下である`:`より小さい`,r=t(e.origin);return r?`大きすぎる値: ${e.origin??`値`}は${e.maximum.toString()}${r.unit??`要素`}${n}必要があります`:`大きすぎる値: ${e.origin??`値`}は${e.maximum.toString()}${n}必要があります`}case`too_small`:{let n=e.inclusive?`以上である`:`より大きい`,r=t(e.origin);return r?`小さすぎる値: ${e.origin}は${e.minimum.toString()}${r.unit}${n}必要があります`:`小さすぎる値: ${e.origin}は${e.minimum.toString()}${n}必要があります`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`無効な文字列: "${t.prefix}"で始まる必要があります`:t.format===`ends_with`?`無効な文字列: "${t.suffix}"で終わる必要があります`:t.format===`includes`?`無効な文字列: "${t.includes}"を含む必要があります`:t.format===`regex`?`無効な文字列: パターン${t.pattern}に一致する必要があります`:`無効な${n[t.format]??e.format}`}case`not_multiple_of`:return`無効な数値: ${e.divisor}の倍数である必要があります`;case`unrecognized_keys`:return`認識されていないキー${e.keys.length>1?`群`:``}: ${P(e.keys,`、`)}`;case`invalid_key`:return`${e.origin}内の無効なキー`;case`invalid_union`:return`無効な入力`;case`invalid_element`:return`${e.origin}内の無効な値`;default:return`無効な入力`}}}}));function Ep(){return{localeError:Dp()}}var Dp,Op=o((()=>{z(),Dp=()=>{let e={string:{unit:`სიმბოლო`,verb:`უნდა შეიცავდეს`},file:{unit:`ბაიტი`,verb:`უნდა შეიცავდეს`},array:{unit:`ელემენტი`,verb:`უნდა შეიცავდეს`},set:{unit:`ელემენტი`,verb:`უნდა შეიცავდეს`}};function t(t){return e[t]??null}let n={regex:`შეყვანა`,email:`ელ-ფოსტის მისამართი`,url:`URL`,emoji:`ემოჯი`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`თარიღი-დრო`,date:`თარიღი`,time:`დრო`,duration:`ხანგრძლივობა`,ipv4:`IPv4 მისამართი`,ipv6:`IPv6 მისამართი`,cidrv4:`IPv4 დიაპაზონი`,cidrv6:`IPv6 დიაპაზონი`,base64:`base64-კოდირებული ველი`,base64url:`base64url-კოდირებული ველი`,json_string:`JSON ველი`,e164:`E.164 ნომერი`,jwt:`JWT`,template_literal:`შეყვანა`},r={nan:`NaN`,number:`რიცხვი`,string:`ველი`,boolean:`ბულეანი`,function:`ფუნქცია`,array:`მასივი`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=R(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`არასწორი შეყვანა: მოსალოდნელი instanceof ${e.expected}, მიღებული ${i}`:`არასწორი შეყვანა: მოსალოდნელი ${t}, მიღებული ${i}`}case`invalid_value`:return e.values.length===1?`არასწორი შეყვანა: მოსალოდნელი ${L(e.values[0])}`:`არასწორი ვარიანტი: მოსალოდნელია ერთ-ერთი ${P(e.values,`|`)}-დან`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`ზედმეტად დიდი: მოსალოდნელი ${e.origin??`მნიშვნელობა`} ${r.verb} ${n}${e.maximum.toString()} ${r.unit}`:`ზედმეტად დიდი: მოსალოდნელი ${e.origin??`მნიშვნელობა`} იყოს ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`ზედმეტად პატარა: მოსალოდნელი ${e.origin} ${r.verb} ${n}${e.minimum.toString()} ${r.unit}`:`ზედმეტად პატარა: მოსალოდნელი ${e.origin} იყოს ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`არასწორი ველი: უნდა იწყებოდეს "${t.prefix}"-ით`:t.format===`ends_with`?`არასწორი ველი: უნდა მთავრდებოდეს "${t.suffix}"-ით`:t.format===`includes`?`არასწორი ველი: უნდა შეიცავდეს "${t.includes}"-ს`:t.format===`regex`?`არასწორი ველი: უნდა შეესაბამებოდეს შაბლონს ${t.pattern}`:`არასწორი ${n[t.format]??e.format}`}case`not_multiple_of`:return`არასწორი რიცხვი: უნდა იყოს ${e.divisor}-ის ჯერადი`;case`unrecognized_keys`:return`უცნობი გასაღებ${e.keys.length>1?`ები`:`ი`}: ${P(e.keys,`, `)}`;case`invalid_key`:return`არასწორი გასაღები ${e.origin}-ში`;case`invalid_union`:return`არასწორი შეყვანა`;case`invalid_element`:return`არასწორი მნიშვნელობა ${e.origin}-ში`;default:return`არასწორი შეყვანა`}}}}));function kp(){return{localeError:Ap()}}var Ap,jp=o((()=>{z(),Ap=()=>{let e={string:{unit:`តួអក្សរ`,verb:`គួរមាន`},file:{unit:`បៃ`,verb:`គួរមាន`},array:{unit:`ធាតុ`,verb:`គួរមាន`},set:{unit:`ធាតុ`,verb:`គួរមាន`}};function t(t){return e[t]??null}let n={regex:`ទិន្នន័យបញ្ចូល`,email:`អាសយដ្ឋានអ៊ីមែល`,url:`URL`,emoji:`សញ្ញាអារម្មណ៍`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`កាលបរិច្ឆេទ និងម៉ោង ISO`,date:`កាលបរិច្ឆេទ ISO`,time:`ម៉ោង ISO`,duration:`រយៈពេល ISO`,ipv4:`អាសយដ្ឋាន IPv4`,ipv6:`អាសយដ្ឋាន IPv6`,cidrv4:`ដែនអាសយដ្ឋាន IPv4`,cidrv6:`ដែនអាសយដ្ឋាន IPv6`,base64:`ខ្សែអក្សរអ៊ិកូដ base64`,base64url:`ខ្សែអក្សរអ៊ិកូដ base64url`,json_string:`ខ្សែអក្សរ JSON`,e164:`លេខ E.164`,jwt:`JWT`,template_literal:`ទិន្នន័យបញ្ចូល`},r={nan:`NaN`,number:`លេខ`,array:`អារេ (Array)`,null:`គ្មានតម្លៃ (null)`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=R(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ instanceof ${e.expected} ប៉ុន្តែទទួលបាន ${i}`:`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ ${t} ប៉ុន្តែទទួលបាន ${i}`}case`invalid_value`:return e.values.length===1?`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ ${L(e.values[0])}`:`ជម្រើសមិនត្រឹមត្រូវ៖ ត្រូវជាមួយក្នុងចំណោម ${P(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`ធំពេក៖ ត្រូវការ ${e.origin??`តម្លៃ`} ${n} ${e.maximum.toString()} ${r.unit??`ធាតុ`}`:`ធំពេក៖ ត្រូវការ ${e.origin??`តម្លៃ`} ${n} ${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`តូចពេក៖ ត្រូវការ ${e.origin} ${n} ${e.minimum.toString()} ${r.unit}`:`តូចពេក៖ ត្រូវការ ${e.origin} ${n} ${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវចាប់ផ្តើមដោយ "${t.prefix}"`:t.format===`ends_with`?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវបញ្ចប់ដោយ "${t.suffix}"`:t.format===`includes`?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវមាន "${t.includes}"`:t.format===`regex`?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវតែផ្គូផ្គងនឹងទម្រង់ដែលបានកំណត់ ${t.pattern}`:`មិនត្រឹមត្រូវ៖ ${n[t.format]??e.format}`}case`not_multiple_of`:return`លេខមិនត្រឹមត្រូវ៖ ត្រូវតែជាពហុគុណនៃ ${e.divisor}`;case`unrecognized_keys`:return`រកឃើញសោមិនស្គាល់៖ ${P(e.keys,`, `)}`;case`invalid_key`:return`សោមិនត្រឹមត្រូវនៅក្នុង ${e.origin}`;case`invalid_union`:return`ទិន្នន័យមិនត្រឹមត្រូវ`;case`invalid_element`:return`ទិន្នន័យមិនត្រឹមត្រូវនៅក្នុង ${e.origin}`;default:return`ទិន្នន័យមិនត្រឹមត្រូវ`}}}}));function Mp(){return kp()}var Np=o((()=>{jp()}));function Pp(){return{localeError:Fp()}}var Fp,Ip=o((()=>{z(),Fp=()=>{let e={string:{unit:`문자`,verb:`to have`},file:{unit:`바이트`,verb:`to have`},array:{unit:`개`,verb:`to have`},set:{unit:`개`,verb:`to have`}};function t(t){return e[t]??null}let n={regex:`입력`,email:`이메일 주소`,url:`URL`,emoji:`이모지`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO 날짜시간`,date:`ISO 날짜`,time:`ISO 시간`,duration:`ISO 기간`,ipv4:`IPv4 주소`,ipv6:`IPv6 주소`,cidrv4:`IPv4 범위`,cidrv6:`IPv6 범위`,base64:`base64 인코딩 문자열`,base64url:`base64url 인코딩 문자열`,json_string:`JSON 문자열`,e164:`E.164 번호`,jwt:`JWT`,template_literal:`입력`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=R(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`잘못된 입력: 예상 타입은 instanceof ${e.expected}, 받은 타입은 ${i}입니다`:`잘못된 입력: 예상 타입은 ${t}, 받은 타입은 ${i}입니다`}case`invalid_value`:return e.values.length===1?`잘못된 입력: 값은 ${L(e.values[0])} 이어야 합니다`:`잘못된 옵션: ${P(e.values,`또는 `)} 중 하나여야 합니다`;case`too_big`:{let n=e.inclusive?`이하`:`미만`,r=n===`미만`?`이어야 합니다`:`여야 합니다`,i=t(e.origin),a=i?.unit??`요소`;return i?`${e.origin??`값`}이 너무 큽니다: ${e.maximum.toString()}${a} ${n}${r}`:`${e.origin??`값`}이 너무 큽니다: ${e.maximum.toString()} ${n}${r}`}case`too_small`:{let n=e.inclusive?`이상`:`초과`,r=n===`이상`?`이어야 합니다`:`여야 합니다`,i=t(e.origin),a=i?.unit??`요소`;return i?`${e.origin??`값`}이 너무 작습니다: ${e.minimum.toString()}${a} ${n}${r}`:`${e.origin??`값`}이 너무 작습니다: ${e.minimum.toString()} ${n}${r}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`잘못된 문자열: "${t.prefix}"(으)로 시작해야 합니다`:t.format===`ends_with`?`잘못된 문자열: "${t.suffix}"(으)로 끝나야 합니다`:t.format===`includes`?`잘못된 문자열: "${t.includes}"을(를) 포함해야 합니다`:t.format===`regex`?`잘못된 문자열: 정규식 ${t.pattern} 패턴과 일치해야 합니다`:`잘못된 ${n[t.format]??e.format}`}case`not_multiple_of`:return`잘못된 숫자: ${e.divisor}의 배수여야 합니다`;case`unrecognized_keys`:return`인식할 수 없는 키: ${P(e.keys,`, `)}`;case`invalid_key`:return`잘못된 키: ${e.origin}`;case`invalid_union`:return`잘못된 입력`;case`invalid_element`:return`잘못된 값: ${e.origin}`;default:return`잘못된 입력`}}}}));function Lp(e){let t=Math.abs(e),n=t%10,r=t%100;return r>=11&&r<=19||n===0?`many`:n===1?`one`:`few`}function Rp(){return{localeError:Bp()}}var zp,Bp,Vp=o((()=>{z(),zp=e=>e.charAt(0).toUpperCase()+e.slice(1),Bp=()=>{let e={string:{unit:{one:`simbolis`,few:`simboliai`,many:`simbolių`},verb:{smaller:{inclusive:`turi būti ne ilgesnė kaip`,notInclusive:`turi būti trumpesnė kaip`},bigger:{inclusive:`turi būti ne trumpesnė kaip`,notInclusive:`turi būti ilgesnė kaip`}}},file:{unit:{one:`baitas`,few:`baitai`,many:`baitų`},verb:{smaller:{inclusive:`turi būti ne didesnis kaip`,notInclusive:`turi būti mažesnis kaip`},bigger:{inclusive:`turi būti ne mažesnis kaip`,notInclusive:`turi būti didesnis kaip`}}},array:{unit:{one:`elementą`,few:`elementus`,many:`elementų`},verb:{smaller:{inclusive:`turi turėti ne daugiau kaip`,notInclusive:`turi turėti mažiau kaip`},bigger:{inclusive:`turi turėti ne mažiau kaip`,notInclusive:`turi turėti daugiau kaip`}}},set:{unit:{one:`elementą`,few:`elementus`,many:`elementų`},verb:{smaller:{inclusive:`turi turėti ne daugiau kaip`,notInclusive:`turi turėti mažiau kaip`},bigger:{inclusive:`turi turėti ne mažiau kaip`,notInclusive:`turi turėti daugiau kaip`}}}};function t(t,n,r,i){let a=e[t]??null;return a===null?a:{unit:a.unit[n],verb:a.verb[i][r?`inclusive`:`notInclusive`]}}let n={regex:`įvestis`,email:`el. pašto adresas`,url:`URL`,emoji:`jaustukas`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO data ir laikas`,date:`ISO data`,time:`ISO laikas`,duration:`ISO trukmė`,ipv4:`IPv4 adresas`,ipv6:`IPv6 adresas`,cidrv4:`IPv4 tinklo prefiksas (CIDR)`,cidrv6:`IPv6 tinklo prefiksas (CIDR)`,base64:`base64 užkoduota eilutė`,base64url:`base64url užkoduota eilutė`,json_string:`JSON eilutė`,e164:`E.164 numeris`,jwt:`JWT`,template_literal:`įvestis`},r={nan:`NaN`,number:`skaičius`,bigint:`sveikasis skaičius`,string:`eilutė`,boolean:`loginė reikšmė`,undefined:`neapibrėžta reikšmė`,function:`funkcija`,symbol:`simbolis`,array:`masyvas`,object:`objektas`,null:`nulinė reikšmė`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=R(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Gautas tipas ${i}, o tikėtasi - instanceof ${e.expected}`:`Gautas tipas ${i}, o tikėtasi - ${t}`}case`invalid_value`:return e.values.length===1?`Privalo būti ${L(e.values[0])}`:`Privalo būti vienas iš ${P(e.values,`|`)} pasirinkimų`;case`too_big`:{let n=r[e.origin]??e.origin,i=t(e.origin,Lp(Number(e.maximum)),e.inclusive??!1,`smaller`);if(i?.verb)return`${zp(n??e.origin??`reikšmė`)} ${i.verb} ${e.maximum.toString()} ${i.unit??`elementų`}`;let a=e.inclusive?`ne didesnis kaip`:`mažesnis kaip`;return`${zp(n??e.origin??`reikšmė`)} turi būti ${a} ${e.maximum.toString()} ${i?.unit}`}case`too_small`:{let n=r[e.origin]??e.origin,i=t(e.origin,Lp(Number(e.minimum)),e.inclusive??!1,`bigger`);if(i?.verb)return`${zp(n??e.origin??`reikšmė`)} ${i.verb} ${e.minimum.toString()} ${i.unit??`elementų`}`;let a=e.inclusive?`ne mažesnis kaip`:`didesnis kaip`;return`${zp(n??e.origin??`reikšmė`)} turi būti ${a} ${e.minimum.toString()} ${i?.unit}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Eilutė privalo prasidėti "${t.prefix}"`:t.format===`ends_with`?`Eilutė privalo pasibaigti "${t.suffix}"`:t.format===`includes`?`Eilutė privalo įtraukti "${t.includes}"`:t.format===`regex`?`Eilutė privalo atitikti ${t.pattern}`:`Neteisingas ${n[t.format]??e.format}`}case`not_multiple_of`:return`Skaičius privalo būti ${e.divisor} kartotinis.`;case`unrecognized_keys`:return`Neatpažint${e.keys.length>1?`i`:`as`} rakt${e.keys.length>1?`ai`:`as`}: ${P(e.keys,`, `)}`;case`invalid_key`:return`Rastas klaidingas raktas`;case`invalid_union`:return`Klaidinga įvestis`;case`invalid_element`:{let t=r[e.origin]??e.origin;return`${zp(t??e.origin??`reikšmė`)} turi klaidingą įvestį`}default:return`Klaidinga įvestis`}}}}));function Hp(){return{localeError:Up()}}var Up,Wp=o((()=>{z(),Up=()=>{let e={string:{unit:`знаци`,verb:`да имаат`},file:{unit:`бајти`,verb:`да имаат`},array:{unit:`ставки`,verb:`да имаат`},set:{unit:`ставки`,verb:`да имаат`}};function t(t){return e[t]??null}let n={regex:`внес`,email:`адреса на е-пошта`,url:`URL`,emoji:`емоџи`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO датум и време`,date:`ISO датум`,time:`ISO време`,duration:`ISO времетраење`,ipv4:`IPv4 адреса`,ipv6:`IPv6 адреса`,cidrv4:`IPv4 опсег`,cidrv6:`IPv6 опсег`,base64:`base64-енкодирана низа`,base64url:`base64url-енкодирана низа`,json_string:`JSON низа`,e164:`E.164 број`,jwt:`JWT`,template_literal:`внес`},r={nan:`NaN`,number:`број`,array:`низа`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=R(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Грешен внес: се очекува instanceof ${e.expected}, примено ${i}`:`Грешен внес: се очекува ${t}, примено ${i}`}case`invalid_value`:return e.values.length===1?`Invalid input: expected ${L(e.values[0])}`:`Грешана опција: се очекува една ${P(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Премногу голем: се очекува ${e.origin??`вредноста`} да има ${n}${e.maximum.toString()} ${r.unit??`елементи`}`:`Премногу голем: се очекува ${e.origin??`вредноста`} да биде ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Премногу мал: се очекува ${e.origin} да има ${n}${e.minimum.toString()} ${r.unit}`:`Премногу мал: се очекува ${e.origin} да биде ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Неважечка низа: мора да започнува со "${t.prefix}"`:t.format===`ends_with`?`Неважечка низа: мора да завршува со "${t.suffix}"`:t.format===`includes`?`Неважечка низа: мора да вклучува "${t.includes}"`:t.format===`regex`?`Неважечка низа: мора да одгоара на патернот ${t.pattern}`:`Invalid ${n[t.format]??e.format}`}case`not_multiple_of`:return`Грешен број: мора да биде делив со ${e.divisor}`;case`unrecognized_keys`:return`${e.keys.length>1?`Непрепознаени клучеви`:`Непрепознаен клуч`}: ${P(e.keys,`, `)}`;case`invalid_key`:return`Грешен клуч во ${e.origin}`;case`invalid_union`:return`Грешен внес`;case`invalid_element`:return`Грешна вредност во ${e.origin}`;default:return`Грешен внес`}}}}));function Gp(){return{localeError:Kp()}}var Kp,qp=o((()=>{z(),Kp=()=>{let e={string:{unit:`aksara`,verb:`mempunyai`},file:{unit:`bait`,verb:`mempunyai`},array:{unit:`elemen`,verb:`mempunyai`},set:{unit:`elemen`,verb:`mempunyai`}};function t(t){return e[t]??null}let n={regex:`input`,email:`alamat e-mel`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`tarikh masa ISO`,date:`tarikh ISO`,time:`masa ISO`,duration:`tempoh ISO`,ipv4:`alamat IPv4`,ipv6:`alamat IPv6`,cidrv4:`julat IPv4`,cidrv6:`julat IPv6`,base64:`string dikodkan base64`,base64url:`string dikodkan base64url`,json_string:`string JSON`,e164:`nombor E.164`,jwt:`JWT`,template_literal:`input`},r={nan:`NaN`,number:`nombor`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=R(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Input tidak sah: dijangka instanceof ${e.expected}, diterima ${i}`:`Input tidak sah: dijangka ${t}, diterima ${i}`}case`invalid_value`:return e.values.length===1?`Input tidak sah: dijangka ${L(e.values[0])}`:`Pilihan tidak sah: dijangka salah satu daripada ${P(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Terlalu besar: dijangka ${e.origin??`nilai`} ${r.verb} ${n}${e.maximum.toString()} ${r.unit??`elemen`}`:`Terlalu besar: dijangka ${e.origin??`nilai`} adalah ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Terlalu kecil: dijangka ${e.origin} ${r.verb} ${n}${e.minimum.toString()} ${r.unit}`:`Terlalu kecil: dijangka ${e.origin} adalah ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`String tidak sah: mesti bermula dengan "${t.prefix}"`:t.format===`ends_with`?`String tidak sah: mesti berakhir dengan "${t.suffix}"`:t.format===`includes`?`String tidak sah: mesti mengandungi "${t.includes}"`:t.format===`regex`?`String tidak sah: mesti sepadan dengan corak ${t.pattern}`:`${n[t.format]??e.format} tidak sah`}case`not_multiple_of`:return`Nombor tidak sah: perlu gandaan ${e.divisor}`;case`unrecognized_keys`:return`Kunci tidak dikenali: ${P(e.keys,`, `)}`;case`invalid_key`:return`Kunci tidak sah dalam ${e.origin}`;case`invalid_union`:return`Input tidak sah`;case`invalid_element`:return`Nilai tidak sah dalam ${e.origin}`;default:return`Input tidak sah`}}}}));function Jp(){return{localeError:Yp()}}var Yp,Xp=o((()=>{z(),Yp=()=>{let e={string:{unit:`tekens`,verb:`heeft`},file:{unit:`bytes`,verb:`heeft`},array:{unit:`elementen`,verb:`heeft`},set:{unit:`elementen`,verb:`heeft`}};function t(t){return e[t]??null}let n={regex:`invoer`,email:`emailadres`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO datum en tijd`,date:`ISO datum`,time:`ISO tijd`,duration:`ISO duur`,ipv4:`IPv4-adres`,ipv6:`IPv6-adres`,cidrv4:`IPv4-bereik`,cidrv6:`IPv6-bereik`,base64:`base64-gecodeerde tekst`,base64url:`base64 URL-gecodeerde tekst`,json_string:`JSON string`,e164:`E.164-nummer`,jwt:`JWT`,template_literal:`invoer`},r={nan:`NaN`,number:`getal`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=R(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Ongeldige invoer: verwacht instanceof ${e.expected}, ontving ${i}`:`Ongeldige invoer: verwacht ${t}, ontving ${i}`}case`invalid_value`:return e.values.length===1?`Ongeldige invoer: verwacht ${L(e.values[0])}`:`Ongeldige optie: verwacht één van ${P(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin),i=e.origin===`date`?`laat`:e.origin===`string`?`lang`:`groot`;return r?`Te ${i}: verwacht dat ${e.origin??`waarde`} ${n}${e.maximum.toString()} ${r.unit??`elementen`} ${r.verb}`:`Te ${i}: verwacht dat ${e.origin??`waarde`} ${n}${e.maximum.toString()} is`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin),i=e.origin===`date`?`vroeg`:e.origin===`string`?`kort`:`klein`;return r?`Te ${i}: verwacht dat ${e.origin} ${n}${e.minimum.toString()} ${r.unit} ${r.verb}`:`Te ${i}: verwacht dat ${e.origin} ${n}${e.minimum.toString()} is`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Ongeldige tekst: moet met "${t.prefix}" beginnen`:t.format===`ends_with`?`Ongeldige tekst: moet op "${t.suffix}" eindigen`:t.format===`includes`?`Ongeldige tekst: moet "${t.includes}" bevatten`:t.format===`regex`?`Ongeldige tekst: moet overeenkomen met patroon ${t.pattern}`:`Ongeldig: ${n[t.format]??e.format}`}case`not_multiple_of`:return`Ongeldig getal: moet een veelvoud van ${e.divisor} zijn`;case`unrecognized_keys`:return`Onbekende key${e.keys.length>1?`s`:``}: ${P(e.keys,`, `)}`;case`invalid_key`:return`Ongeldige key in ${e.origin}`;case`invalid_union`:return`Ongeldige invoer`;case`invalid_element`:return`Ongeldige waarde in ${e.origin}`;default:return`Ongeldige invoer`}}}}));function Zp(){return{localeError:Qp()}}var Qp,$p=o((()=>{z(),Qp=()=>{let e={string:{unit:`tegn`,verb:`å ha`},file:{unit:`bytes`,verb:`å ha`},array:{unit:`elementer`,verb:`å inneholde`},set:{unit:`elementer`,verb:`å inneholde`}};function t(t){return e[t]??null}let n={regex:`input`,email:`e-postadresse`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO dato- og klokkeslett`,date:`ISO-dato`,time:`ISO-klokkeslett`,duration:`ISO-varighet`,ipv4:`IPv4-område`,ipv6:`IPv6-område`,cidrv4:`IPv4-spekter`,cidrv6:`IPv6-spekter`,base64:`base64-enkodet streng`,base64url:`base64url-enkodet streng`,json_string:`JSON-streng`,e164:`E.164-nummer`,jwt:`JWT`,template_literal:`input`},r={nan:`NaN`,number:`tall`,array:`liste`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=R(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Ugyldig input: forventet instanceof ${e.expected}, fikk ${i}`:`Ugyldig input: forventet ${t}, fikk ${i}`}case`invalid_value`:return e.values.length===1?`Ugyldig verdi: forventet ${L(e.values[0])}`:`Ugyldig valg: forventet en av ${P(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`For stor(t): forventet ${e.origin??`value`} til å ha ${n}${e.maximum.toString()} ${r.unit??`elementer`}`:`For stor(t): forventet ${e.origin??`value`} til å ha ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`For lite(n): forventet ${e.origin} til å ha ${n}${e.minimum.toString()} ${r.unit}`:`For lite(n): forventet ${e.origin} til å ha ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Ugyldig streng: må starte med "${t.prefix}"`:t.format===`ends_with`?`Ugyldig streng: må ende med "${t.suffix}"`:t.format===`includes`?`Ugyldig streng: må inneholde "${t.includes}"`:t.format===`regex`?`Ugyldig streng: må matche mønsteret ${t.pattern}`:`Ugyldig ${n[t.format]??e.format}`}case`not_multiple_of`:return`Ugyldig tall: må være et multiplum av ${e.divisor}`;case`unrecognized_keys`:return`${e.keys.length>1?`Ukjente nøkler`:`Ukjent nøkkel`}: ${P(e.keys,`, `)}`;case`invalid_key`:return`Ugyldig nøkkel i ${e.origin}`;case`invalid_union`:return`Ugyldig input`;case`invalid_element`:return`Ugyldig verdi i ${e.origin}`;default:return`Ugyldig input`}}}}));function em(){return{localeError:tm()}}var tm,nm=o((()=>{z(),tm=()=>{let e={string:{unit:`harf`,verb:`olmalıdır`},file:{unit:`bayt`,verb:`olmalıdır`},array:{unit:`unsur`,verb:`olmalıdır`},set:{unit:`unsur`,verb:`olmalıdır`}};function t(t){return e[t]??null}let n={regex:`giren`,email:`epostagâh`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO hengâmı`,date:`ISO tarihi`,time:`ISO zamanı`,duration:`ISO müddeti`,ipv4:`IPv4 nişânı`,ipv6:`IPv6 nişânı`,cidrv4:`IPv4 menzili`,cidrv6:`IPv6 menzili`,base64:`base64-şifreli metin`,base64url:`base64url-şifreli metin`,json_string:`JSON metin`,e164:`E.164 sayısı`,jwt:`JWT`,template_literal:`giren`},r={nan:`NaN`,number:`numara`,array:`saf`,null:`gayb`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=R(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Fâsit giren: umulan instanceof ${e.expected}, alınan ${i}`:`Fâsit giren: umulan ${t}, alınan ${i}`}case`invalid_value`:return e.values.length===1?`Fâsit giren: umulan ${L(e.values[0])}`:`Fâsit tercih: mûteberler ${P(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Fazla büyük: ${e.origin??`value`}, ${n}${e.maximum.toString()} ${r.unit??`elements`} sahip olmalıydı.`:`Fazla büyük: ${e.origin??`value`}, ${n}${e.maximum.toString()} olmalıydı.`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Fazla küçük: ${e.origin}, ${n}${e.minimum.toString()} ${r.unit} sahip olmalıydı.`:`Fazla küçük: ${e.origin}, ${n}${e.minimum.toString()} olmalıydı.`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Fâsit metin: "${t.prefix}" ile başlamalı.`:t.format===`ends_with`?`Fâsit metin: "${t.suffix}" ile bitmeli.`:t.format===`includes`?`Fâsit metin: "${t.includes}" ihtivâ etmeli.`:t.format===`regex`?`Fâsit metin: ${t.pattern} nakşına uymalı.`:`Fâsit ${n[t.format]??e.format}`}case`not_multiple_of`:return`Fâsit sayı: ${e.divisor} katı olmalıydı.`;case`unrecognized_keys`:return`Tanınmayan anahtar ${e.keys.length>1?`s`:``}: ${P(e.keys,`, `)}`;case`invalid_key`:return`${e.origin} için tanınmayan anahtar var.`;case`invalid_union`:return`Giren tanınamadı.`;case`invalid_element`:return`${e.origin} için tanınmayan kıymet var.`;default:return`Kıymet tanınamadı.`}}}}));function rm(){return{localeError:im()}}var im,am=o((()=>{z(),im=()=>{let e={string:{unit:`توکي`,verb:`ولري`},file:{unit:`بایټس`,verb:`ولري`},array:{unit:`توکي`,verb:`ولري`},set:{unit:`توکي`,verb:`ولري`}};function t(t){return e[t]??null}let n={regex:`ورودي`,email:`بریښنالیک`,url:`یو آر ال`,emoji:`ایموجي`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`نیټه او وخت`,date:`نېټه`,time:`وخت`,duration:`موده`,ipv4:`د IPv4 پته`,ipv6:`د IPv6 پته`,cidrv4:`د IPv4 ساحه`,cidrv6:`د IPv6 ساحه`,base64:`base64-encoded متن`,base64url:`base64url-encoded متن`,json_string:`JSON متن`,e164:`د E.164 شمېره`,jwt:`JWT`,template_literal:`ورودي`},r={nan:`NaN`,number:`عدد`,array:`ارې`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=R(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`ناسم ورودي: باید instanceof ${e.expected} وای, مګر ${i} ترلاسه شو`:`ناسم ورودي: باید ${t} وای, مګر ${i} ترلاسه شو`}case`invalid_value`:return e.values.length===1?`ناسم ورودي: باید ${L(e.values[0])} وای`:`ناسم انتخاب: باید یو له ${P(e.values,`|`)} څخه وای`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`ډیر لوی: ${e.origin??`ارزښت`} باید ${n}${e.maximum.toString()} ${r.unit??`عنصرونه`} ولري`:`ډیر لوی: ${e.origin??`ارزښت`} باید ${n}${e.maximum.toString()} وي`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`ډیر کوچنی: ${e.origin} باید ${n}${e.minimum.toString()} ${r.unit} ولري`:`ډیر کوچنی: ${e.origin} باید ${n}${e.minimum.toString()} وي`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`ناسم متن: باید د "${t.prefix}" سره پیل شي`:t.format===`ends_with`?`ناسم متن: باید د "${t.suffix}" سره پای ته ورسيږي`:t.format===`includes`?`ناسم متن: باید "${t.includes}" ولري`:t.format===`regex`?`ناسم متن: باید د ${t.pattern} سره مطابقت ولري`:`${n[t.format]??e.format} ناسم دی`}case`not_multiple_of`:return`ناسم عدد: باید د ${e.divisor} مضرب وي`;case`unrecognized_keys`:return`ناسم ${e.keys.length>1?`کلیډونه`:`کلیډ`}: ${P(e.keys,`, `)}`;case`invalid_key`:return`ناسم کلیډ په ${e.origin} کې`;case`invalid_union`:return`ناسمه ورودي`;case`invalid_element`:return`ناسم عنصر په ${e.origin} کې`;default:return`ناسمه ورودي`}}}}));function om(){return{localeError:sm()}}var sm,cm=o((()=>{z(),sm=()=>{let e={string:{unit:`znaków`,verb:`mieć`},file:{unit:`bajtów`,verb:`mieć`},array:{unit:`elementów`,verb:`mieć`},set:{unit:`elementów`,verb:`mieć`}};function t(t){return e[t]??null}let n={regex:`wyrażenie`,email:`adres email`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`data i godzina w formacie ISO`,date:`data w formacie ISO`,time:`godzina w formacie ISO`,duration:`czas trwania ISO`,ipv4:`adres IPv4`,ipv6:`adres IPv6`,cidrv4:`zakres IPv4`,cidrv6:`zakres IPv6`,base64:`ciąg znaków zakodowany w formacie base64`,base64url:`ciąg znaków zakodowany w formacie base64url`,json_string:`ciąg znaków w formacie JSON`,e164:`liczba E.164`,jwt:`JWT`,template_literal:`wejście`},r={nan:`NaN`,number:`liczba`,array:`tablica`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=R(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Nieprawidłowe dane wejściowe: oczekiwano instanceof ${e.expected}, otrzymano ${i}`:`Nieprawidłowe dane wejściowe: oczekiwano ${t}, otrzymano ${i}`}case`invalid_value`:return e.values.length===1?`Nieprawidłowe dane wejściowe: oczekiwano ${L(e.values[0])}`:`Nieprawidłowa opcja: oczekiwano jednej z wartości ${P(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Za duża wartość: oczekiwano, że ${e.origin??`wartość`} będzie mieć ${n}${e.maximum.toString()} ${r.unit??`elementów`}`:`Zbyt duż(y/a/e): oczekiwano, że ${e.origin??`wartość`} będzie wynosić ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Za mała wartość: oczekiwano, że ${e.origin??`wartość`} będzie mieć ${n}${e.minimum.toString()} ${r.unit??`elementów`}`:`Zbyt mał(y/a/e): oczekiwano, że ${e.origin??`wartość`} będzie wynosić ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Nieprawidłowy ciąg znaków: musi zaczynać się od "${t.prefix}"`:t.format===`ends_with`?`Nieprawidłowy ciąg znaków: musi kończyć się na "${t.suffix}"`:t.format===`includes`?`Nieprawidłowy ciąg znaków: musi zawierać "${t.includes}"`:t.format===`regex`?`Nieprawidłowy ciąg znaków: musi odpowiadać wzorcowi ${t.pattern}`:`Nieprawidłow(y/a/e) ${n[t.format]??e.format}`}case`not_multiple_of`:return`Nieprawidłowa liczba: musi być wielokrotnością ${e.divisor}`;case`unrecognized_keys`:return`Nierozpoznane klucze${e.keys.length>1?`s`:``}: ${P(e.keys,`, `)}`;case`invalid_key`:return`Nieprawidłowy klucz w ${e.origin}`;case`invalid_union`:return`Nieprawidłowe dane wejściowe`;case`invalid_element`:return`Nieprawidłowa wartość w ${e.origin}`;default:return`Nieprawidłowe dane wejściowe`}}}}));function lm(){return{localeError:um()}}var um,dm=o((()=>{z(),um=()=>{let e={string:{unit:`caracteres`,verb:`ter`},file:{unit:`bytes`,verb:`ter`},array:{unit:`itens`,verb:`ter`},set:{unit:`itens`,verb:`ter`}};function t(t){return e[t]??null}let n={regex:`padrão`,email:`endereço de e-mail`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`data e hora ISO`,date:`data ISO`,time:`hora ISO`,duration:`duração ISO`,ipv4:`endereço IPv4`,ipv6:`endereço IPv6`,cidrv4:`faixa de IPv4`,cidrv6:`faixa de IPv6`,base64:`texto codificado em base64`,base64url:`URL codificada em base64`,json_string:`texto JSON`,e164:`número E.164`,jwt:`JWT`,template_literal:`entrada`},r={nan:`NaN`,number:`número`,null:`nulo`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=R(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Tipo inválido: esperado instanceof ${e.expected}, recebido ${i}`:`Tipo inválido: esperado ${t}, recebido ${i}`}case`invalid_value`:return e.values.length===1?`Entrada inválida: esperado ${L(e.values[0])}`:`Opção inválida: esperada uma das ${P(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Muito grande: esperado que ${e.origin??`valor`} tivesse ${n}${e.maximum.toString()} ${r.unit??`elementos`}`:`Muito grande: esperado que ${e.origin??`valor`} fosse ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Muito pequeno: esperado que ${e.origin} tivesse ${n}${e.minimum.toString()} ${r.unit}`:`Muito pequeno: esperado que ${e.origin} fosse ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Texto inválido: deve começar com "${t.prefix}"`:t.format===`ends_with`?`Texto inválido: deve terminar com "${t.suffix}"`:t.format===`includes`?`Texto inválido: deve incluir "${t.includes}"`:t.format===`regex`?`Texto inválido: deve corresponder ao padrão ${t.pattern}`:`${n[t.format]??e.format} inválido`}case`not_multiple_of`:return`Número inválido: deve ser múltiplo de ${e.divisor}`;case`unrecognized_keys`:return`Chave${e.keys.length>1?`s`:``} desconhecida${e.keys.length>1?`s`:``}: ${P(e.keys,`, `)}`;case`invalid_key`:return`Chave inválida em ${e.origin}`;case`invalid_union`:return`Entrada inválida`;case`invalid_element`:return`Valor inválido em ${e.origin}`;default:return`Campo inválido`}}}}));function fm(){return{localeError:pm()}}var pm,mm=o((()=>{z(),pm=()=>{let e={string:{unit:`caractere`,verb:`să aibă`},file:{unit:`octeți`,verb:`să aibă`},array:{unit:`elemente`,verb:`să aibă`},set:{unit:`elemente`,verb:`să aibă`},map:{unit:`intrări`,verb:`să aibă`}};function t(t){return e[t]??null}let n={regex:`intrare`,email:`adresă de email`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`dată și oră ISO`,date:`dată ISO`,time:`oră ISO`,duration:`durată ISO`,ipv4:`adresă IPv4`,ipv6:`adresă IPv6`,mac:`adresă MAC`,cidrv4:`interval IPv4`,cidrv6:`interval IPv6`,base64:`șir codat base64`,base64url:`șir codat base64url`,json_string:`șir JSON`,e164:`număr E.164`,jwt:`JWT`,template_literal:`intrare`},r={nan:`NaN`,string:`șir`,number:`număr`,boolean:`boolean`,function:`funcție`,array:`matrice`,object:`obiect`,undefined:`nedefinit`,symbol:`simbol`,bigint:`număr mare`,void:`void`,never:`never`,map:`hartă`,set:`set`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=R(e.input);return`Intrare invalidă: așteptat ${t}, primit ${r[n]??n}`}case`invalid_value`:return e.values.length===1?`Intrare invalidă: așteptat ${L(e.values[0])}`:`Opțiune invalidă: așteptat una dintre ${P(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Prea mare: așteptat ca ${e.origin??`valoarea`} ${r.verb} ${n}${e.maximum.toString()} ${r.unit??`elemente`}`:`Prea mare: așteptat ca ${e.origin??`valoarea`} să fie ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Prea mic: așteptat ca ${e.origin} ${r.verb} ${n}${e.minimum.toString()} ${r.unit}`:`Prea mic: așteptat ca ${e.origin} să fie ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Șir invalid: trebuie să înceapă cu "${t.prefix}"`:t.format===`ends_with`?`Șir invalid: trebuie să se termine cu "${t.suffix}"`:t.format===`includes`?`Șir invalid: trebuie să includă "${t.includes}"`:t.format===`regex`?`Șir invalid: trebuie să se potrivească cu modelul ${t.pattern}`:`Format invalid: ${n[t.format]??e.format}`}case`not_multiple_of`:return`Număr invalid: trebuie să fie multiplu de ${e.divisor}`;case`unrecognized_keys`:return`Chei nerecunoscute: ${P(e.keys,`, `)}`;case`invalid_key`:return`Cheie invalidă în ${e.origin}`;case`invalid_union`:return`Intrare invalidă`;case`invalid_element`:return`Valoare invalidă în ${e.origin}`;default:return`Intrare invalidă`}}}}));function hm(e,t,n,r){let i=Math.abs(e),a=i%10,o=i%100;return o>=11&&o<=19?r:a===1?t:a>=2&&a<=4?n:r}function gm(){return{localeError:_m()}}var _m,vm=o((()=>{z(),_m=()=>{let e={string:{unit:{one:`символ`,few:`символа`,many:`символов`},verb:`иметь`},file:{unit:{one:`байт`,few:`байта`,many:`байт`},verb:`иметь`},array:{unit:{one:`элемент`,few:`элемента`,many:`элементов`},verb:`иметь`},set:{unit:{one:`элемент`,few:`элемента`,many:`элементов`},verb:`иметь`}};function t(t){return e[t]??null}let n={regex:`ввод`,email:`email адрес`,url:`URL`,emoji:`эмодзи`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO дата и время`,date:`ISO дата`,time:`ISO время`,duration:`ISO длительность`,ipv4:`IPv4 адрес`,ipv6:`IPv6 адрес`,cidrv4:`IPv4 диапазон`,cidrv6:`IPv6 диапазон`,base64:`строка в формате base64`,base64url:`строка в формате base64url`,json_string:`JSON строка`,e164:`номер E.164`,jwt:`JWT`,template_literal:`ввод`},r={nan:`NaN`,number:`число`,array:`массив`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=R(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Неверный ввод: ожидалось instanceof ${e.expected}, получено ${i}`:`Неверный ввод: ожидалось ${t}, получено ${i}`}case`invalid_value`:return e.values.length===1?`Неверный ввод: ожидалось ${L(e.values[0])}`:`Неверный вариант: ожидалось одно из ${P(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);if(r){let t=hm(Number(e.maximum),r.unit.one,r.unit.few,r.unit.many);return`Слишком большое значение: ожидалось, что ${e.origin??`значение`} будет иметь ${n}${e.maximum.toString()} ${t}`}return`Слишком большое значение: ожидалось, что ${e.origin??`значение`} будет ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);if(r){let t=hm(Number(e.minimum),r.unit.one,r.unit.few,r.unit.many);return`Слишком маленькое значение: ожидалось, что ${e.origin} будет иметь ${n}${e.minimum.toString()} ${t}`}return`Слишком маленькое значение: ожидалось, что ${e.origin} будет ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Неверная строка: должна начинаться с "${t.prefix}"`:t.format===`ends_with`?`Неверная строка: должна заканчиваться на "${t.suffix}"`:t.format===`includes`?`Неверная строка: должна содержать "${t.includes}"`:t.format===`regex`?`Неверная строка: должна соответствовать шаблону ${t.pattern}`:`Неверный ${n[t.format]??e.format}`}case`not_multiple_of`:return`Неверное число: должно быть кратным ${e.divisor}`;case`unrecognized_keys`:return`Нераспознанн${e.keys.length>1?`ые`:`ый`} ключ${e.keys.length>1?`и`:``}: ${P(e.keys,`, `)}`;case`invalid_key`:return`Неверный ключ в ${e.origin}`;case`invalid_union`:return`Неверные входные данные`;case`invalid_element`:return`Неверное значение в ${e.origin}`;default:return`Неверные входные данные`}}}}));function ym(){return{localeError:bm()}}var bm,xm=o((()=>{z(),bm=()=>{let e={string:{unit:`znakov`,verb:`imeti`},file:{unit:`bajtov`,verb:`imeti`},array:{unit:`elementov`,verb:`imeti`},set:{unit:`elementov`,verb:`imeti`}};function t(t){return e[t]??null}let n={regex:`vnos`,email:`e-poštni naslov`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO datum in čas`,date:`ISO datum`,time:`ISO čas`,duration:`ISO trajanje`,ipv4:`IPv4 naslov`,ipv6:`IPv6 naslov`,cidrv4:`obseg IPv4`,cidrv6:`obseg IPv6`,base64:`base64 kodiran niz`,base64url:`base64url kodiran niz`,json_string:`JSON niz`,e164:`E.164 številka`,jwt:`JWT`,template_literal:`vnos`},r={nan:`NaN`,number:`število`,array:`tabela`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=R(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Neveljaven vnos: pričakovano instanceof ${e.expected}, prejeto ${i}`:`Neveljaven vnos: pričakovano ${t}, prejeto ${i}`}case`invalid_value`:return e.values.length===1?`Neveljaven vnos: pričakovano ${L(e.values[0])}`:`Neveljavna možnost: pričakovano eno izmed ${P(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Preveliko: pričakovano, da bo ${e.origin??`vrednost`} imelo ${n}${e.maximum.toString()} ${r.unit??`elementov`}`:`Preveliko: pričakovano, da bo ${e.origin??`vrednost`} ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Premajhno: pričakovano, da bo ${e.origin} imelo ${n}${e.minimum.toString()} ${r.unit}`:`Premajhno: pričakovano, da bo ${e.origin} ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Neveljaven niz: mora se začeti z "${t.prefix}"`:t.format===`ends_with`?`Neveljaven niz: mora se končati z "${t.suffix}"`:t.format===`includes`?`Neveljaven niz: mora vsebovati "${t.includes}"`:t.format===`regex`?`Neveljaven niz: mora ustrezati vzorcu ${t.pattern}`:`Neveljaven ${n[t.format]??e.format}`}case`not_multiple_of`:return`Neveljavno število: mora biti večkratnik ${e.divisor}`;case`unrecognized_keys`:return`Neprepoznan${e.keys.length>1?`i ključi`:` ključ`}: ${P(e.keys,`, `)}`;case`invalid_key`:return`Neveljaven ključ v ${e.origin}`;case`invalid_union`:return`Neveljaven vnos`;case`invalid_element`:return`Neveljavna vrednost v ${e.origin}`;default:return`Neveljaven vnos`}}}}));function Sm(){return{localeError:Cm()}}var Cm,wm=o((()=>{z(),Cm=()=>{let e={string:{unit:`tecken`,verb:`att ha`},file:{unit:`bytes`,verb:`att ha`},array:{unit:`objekt`,verb:`att innehålla`},set:{unit:`objekt`,verb:`att innehålla`}};function t(t){return e[t]??null}let n={regex:`reguljärt uttryck`,email:`e-postadress`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO-datum och tid`,date:`ISO-datum`,time:`ISO-tid`,duration:`ISO-varaktighet`,ipv4:`IPv4-intervall`,ipv6:`IPv6-intervall`,cidrv4:`IPv4-spektrum`,cidrv6:`IPv6-spektrum`,base64:`base64-kodad sträng`,base64url:`base64url-kodad sträng`,json_string:`JSON-sträng`,e164:`E.164-nummer`,jwt:`JWT`,template_literal:`mall-literal`},r={nan:`NaN`,number:`antal`,array:`lista`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=R(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Ogiltig inmatning: förväntat instanceof ${e.expected}, fick ${i}`:`Ogiltig inmatning: förväntat ${t}, fick ${i}`}case`invalid_value`:return e.values.length===1?`Ogiltig inmatning: förväntat ${L(e.values[0])}`:`Ogiltigt val: förväntade en av ${P(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`För stor(t): förväntade ${e.origin??`värdet`} att ha ${n}${e.maximum.toString()} ${r.unit??`element`}`:`För stor(t): förväntat ${e.origin??`värdet`} att ha ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`För lite(t): förväntade ${e.origin??`värdet`} att ha ${n}${e.minimum.toString()} ${r.unit}`:`För lite(t): förväntade ${e.origin??`värdet`} att ha ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Ogiltig sträng: måste börja med "${t.prefix}"`:t.format===`ends_with`?`Ogiltig sträng: måste sluta med "${t.suffix}"`:t.format===`includes`?`Ogiltig sträng: måste innehålla "${t.includes}"`:t.format===`regex`?`Ogiltig sträng: måste matcha mönstret "${t.pattern}"`:`Ogiltig(t) ${n[t.format]??e.format}`}case`not_multiple_of`:return`Ogiltigt tal: måste vara en multipel av ${e.divisor}`;case`unrecognized_keys`:return`${e.keys.length>1?`Okända nycklar`:`Okänd nyckel`}: ${P(e.keys,`, `)}`;case`invalid_key`:return`Ogiltig nyckel i ${e.origin??`värdet`}`;case`invalid_union`:return`Ogiltig input`;case`invalid_element`:return`Ogiltigt värde i ${e.origin??`värdet`}`;default:return`Ogiltig input`}}}}));function Tm(){return{localeError:Em()}}var Em,Dm=o((()=>{z(),Em=()=>{let e={string:{unit:`எழுத்துக்கள்`,verb:`கொண்டிருக்க வேண்டும்`},file:{unit:`பைட்டுகள்`,verb:`கொண்டிருக்க வேண்டும்`},array:{unit:`உறுப்புகள்`,verb:`கொண்டிருக்க வேண்டும்`},set:{unit:`உறுப்புகள்`,verb:`கொண்டிருக்க வேண்டும்`}};function t(t){return e[t]??null}let n={regex:`உள்ளீடு`,email:`மின்னஞ்சல் முகவரி`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO தேதி நேரம்`,date:`ISO தேதி`,time:`ISO நேரம்`,duration:`ISO கால அளவு`,ipv4:`IPv4 முகவரி`,ipv6:`IPv6 முகவரி`,cidrv4:`IPv4 வரம்பு`,cidrv6:`IPv6 வரம்பு`,base64:`base64-encoded சரம்`,base64url:`base64url-encoded சரம்`,json_string:`JSON சரம்`,e164:`E.164 எண்`,jwt:`JWT`,template_literal:`input`},r={nan:`NaN`,number:`எண்`,array:`அணி`,null:`வெறுமை`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=R(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது instanceof ${e.expected}, பெறப்பட்டது ${i}`:`தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது ${t}, பெறப்பட்டது ${i}`}case`invalid_value`:return e.values.length===1?`தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது ${L(e.values[0])}`:`தவறான விருப்பம்: எதிர்பார்க்கப்பட்டது ${P(e.values,`|`)} இல் ஒன்று`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`மிக பெரியது: எதிர்பார்க்கப்பட்டது ${e.origin??`மதிப்பு`} ${n}${e.maximum.toString()} ${r.unit??`உறுப்புகள்`} ஆக இருக்க வேண்டும்`:`மிக பெரியது: எதிர்பார்க்கப்பட்டது ${e.origin??`மதிப்பு`} ${n}${e.maximum.toString()} ஆக இருக்க வேண்டும்`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`மிகச் சிறியது: எதிர்பார்க்கப்பட்டது ${e.origin} ${n}${e.minimum.toString()} ${r.unit} ஆக இருக்க வேண்டும்`:`மிகச் சிறியது: எதிர்பார்க்கப்பட்டது ${e.origin} ${n}${e.minimum.toString()} ஆக இருக்க வேண்டும்`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`தவறான சரம்: "${t.prefix}" இல் தொடங்க வேண்டும்`:t.format===`ends_with`?`தவறான சரம்: "${t.suffix}" இல் முடிவடைய வேண்டும்`:t.format===`includes`?`தவறான சரம்: "${t.includes}" ஐ உள்ளடக்க வேண்டும்`:t.format===`regex`?`தவறான சரம்: ${t.pattern} முறைபாட்டுடன் பொருந்த வேண்டும்`:`தவறான ${n[t.format]??e.format}`}case`not_multiple_of`:return`தவறான எண்: ${e.divisor} இன் பலமாக இருக்க வேண்டும்`;case`unrecognized_keys`:return`அடையாளம் தெரியாத விசை${e.keys.length>1?`கள்`:``}: ${P(e.keys,`, `)}`;case`invalid_key`:return`${e.origin} இல் தவறான விசை`;case`invalid_union`:return`தவறான உள்ளீடு`;case`invalid_element`:return`${e.origin} இல் தவறான மதிப்பு`;default:return`தவறான உள்ளீடு`}}}}));function Om(){return{localeError:km()}}var km,Am=o((()=>{z(),km=()=>{let e={string:{unit:`ตัวอักษร`,verb:`ควรมี`},file:{unit:`ไบต์`,verb:`ควรมี`},array:{unit:`รายการ`,verb:`ควรมี`},set:{unit:`รายการ`,verb:`ควรมี`}};function t(t){return e[t]??null}let n={regex:`ข้อมูลที่ป้อน`,email:`ที่อยู่อีเมล`,url:`URL`,emoji:`อิโมจิ`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`วันที่เวลาแบบ ISO`,date:`วันที่แบบ ISO`,time:`เวลาแบบ ISO`,duration:`ช่วงเวลาแบบ ISO`,ipv4:`ที่อยู่ IPv4`,ipv6:`ที่อยู่ IPv6`,cidrv4:`ช่วง IP แบบ IPv4`,cidrv6:`ช่วง IP แบบ IPv6`,base64:`ข้อความแบบ Base64`,base64url:`ข้อความแบบ Base64 สำหรับ URL`,json_string:`ข้อความแบบ JSON`,e164:`เบอร์โทรศัพท์ระหว่างประเทศ (E.164)`,jwt:`โทเคน JWT`,template_literal:`ข้อมูลที่ป้อน`},r={nan:`NaN`,number:`ตัวเลข`,array:`อาร์เรย์ (Array)`,null:`ไม่มีค่า (null)`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=R(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`ประเภทข้อมูลไม่ถูกต้อง: ควรเป็น instanceof ${e.expected} แต่ได้รับ ${i}`:`ประเภทข้อมูลไม่ถูกต้อง: ควรเป็น ${t} แต่ได้รับ ${i}`}case`invalid_value`:return e.values.length===1?`ค่าไม่ถูกต้อง: ควรเป็น ${L(e.values[0])}`:`ตัวเลือกไม่ถูกต้อง: ควรเป็นหนึ่งใน ${P(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`ไม่เกิน`:`น้อยกว่า`,r=t(e.origin);return r?`เกินกำหนด: ${e.origin??`ค่า`} ควรมี${n} ${e.maximum.toString()} ${r.unit??`รายการ`}`:`เกินกำหนด: ${e.origin??`ค่า`} ควรมี${n} ${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`อย่างน้อย`:`มากกว่า`,r=t(e.origin);return r?`น้อยกว่ากำหนด: ${e.origin} ควรมี${n} ${e.minimum.toString()} ${r.unit}`:`น้อยกว่ากำหนด: ${e.origin} ควรมี${n} ${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`รูปแบบไม่ถูกต้อง: ข้อความต้องขึ้นต้นด้วย "${t.prefix}"`:t.format===`ends_with`?`รูปแบบไม่ถูกต้อง: ข้อความต้องลงท้ายด้วย "${t.suffix}"`:t.format===`includes`?`รูปแบบไม่ถูกต้อง: ข้อความต้องมี "${t.includes}" อยู่ในข้อความ`:t.format===`regex`?`รูปแบบไม่ถูกต้อง: ต้องตรงกับรูปแบบที่กำหนด ${t.pattern}`:`รูปแบบไม่ถูกต้อง: ${n[t.format]??e.format}`}case`not_multiple_of`:return`ตัวเลขไม่ถูกต้อง: ต้องเป็นจำนวนที่หารด้วย ${e.divisor} ได้ลงตัว`;case`unrecognized_keys`:return`พบคีย์ที่ไม่รู้จัก: ${P(e.keys,`, `)}`;case`invalid_key`:return`คีย์ไม่ถูกต้องใน ${e.origin}`;case`invalid_union`:return`ข้อมูลไม่ถูกต้อง: ไม่ตรงกับรูปแบบยูเนียนที่กำหนดไว้`;case`invalid_element`:return`ข้อมูลไม่ถูกต้องใน ${e.origin}`;default:return`ข้อมูลไม่ถูกต้อง`}}}}));function jm(){return{localeError:Mm()}}var Mm,Nm=o((()=>{z(),Mm=()=>{let e={string:{unit:`karakter`,verb:`olmalı`},file:{unit:`bayt`,verb:`olmalı`},array:{unit:`öğe`,verb:`olmalı`},set:{unit:`öğe`,verb:`olmalı`}};function t(t){return e[t]??null}let n={regex:`girdi`,email:`e-posta adresi`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO tarih ve saat`,date:`ISO tarih`,time:`ISO saat`,duration:`ISO süre`,ipv4:`IPv4 adresi`,ipv6:`IPv6 adresi`,cidrv4:`IPv4 aralığı`,cidrv6:`IPv6 aralığı`,base64:`base64 ile şifrelenmiş metin`,base64url:`base64url ile şifrelenmiş metin`,json_string:`JSON dizesi`,e164:`E.164 sayısı`,jwt:`JWT`,template_literal:`Şablon dizesi`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=R(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Geçersiz değer: beklenen instanceof ${e.expected}, alınan ${i}`:`Geçersiz değer: beklenen ${t}, alınan ${i}`}case`invalid_value`:return e.values.length===1?`Geçersiz değer: beklenen ${L(e.values[0])}`:`Geçersiz seçenek: aşağıdakilerden biri olmalı: ${P(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Çok büyük: beklenen ${e.origin??`değer`} ${n}${e.maximum.toString()} ${r.unit??`öğe`}`:`Çok büyük: beklenen ${e.origin??`değer`} ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Çok küçük: beklenen ${e.origin} ${n}${e.minimum.toString()} ${r.unit}`:`Çok küçük: beklenen ${e.origin} ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Geçersiz metin: "${t.prefix}" ile başlamalı`:t.format===`ends_with`?`Geçersiz metin: "${t.suffix}" ile bitmeli`:t.format===`includes`?`Geçersiz metin: "${t.includes}" içermeli`:t.format===`regex`?`Geçersiz metin: ${t.pattern} desenine uymalı`:`Geçersiz ${n[t.format]??e.format}`}case`not_multiple_of`:return`Geçersiz sayı: ${e.divisor} ile tam bölünebilmeli`;case`unrecognized_keys`:return`Tanınmayan anahtar${e.keys.length>1?`lar`:``}: ${P(e.keys,`, `)}`;case`invalid_key`:return`${e.origin} içinde geçersiz anahtar`;case`invalid_union`:return`Geçersiz değer`;case`invalid_element`:return`${e.origin} içinde geçersiz değer`;default:return`Geçersiz değer`}}}}));function Pm(){return{localeError:Fm()}}var Fm,Im=o((()=>{z(),Fm=()=>{let e={string:{unit:`символів`,verb:`матиме`},file:{unit:`байтів`,verb:`матиме`},array:{unit:`елементів`,verb:`матиме`},set:{unit:`елементів`,verb:`матиме`}};function t(t){return e[t]??null}let n={regex:`вхідні дані`,email:`адреса електронної пошти`,url:`URL`,emoji:`емодзі`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`дата та час ISO`,date:`дата ISO`,time:`час ISO`,duration:`тривалість ISO`,ipv4:`адреса IPv4`,ipv6:`адреса IPv6`,cidrv4:`діапазон IPv4`,cidrv6:`діапазон IPv6`,base64:`рядок у кодуванні base64`,base64url:`рядок у кодуванні base64url`,json_string:`рядок JSON`,e164:`номер E.164`,jwt:`JWT`,template_literal:`вхідні дані`},r={nan:`NaN`,number:`число`,array:`масив`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=R(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Неправильні вхідні дані: очікується instanceof ${e.expected}, отримано ${i}`:`Неправильні вхідні дані: очікується ${t}, отримано ${i}`}case`invalid_value`:return e.values.length===1?`Неправильні вхідні дані: очікується ${L(e.values[0])}`:`Неправильна опція: очікується одне з ${P(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Занадто велике: очікується, що ${e.origin??`значення`} ${r.verb} ${n}${e.maximum.toString()} ${r.unit??`елементів`}`:`Занадто велике: очікується, що ${e.origin??`значення`} буде ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Занадто мале: очікується, що ${e.origin} ${r.verb} ${n}${e.minimum.toString()} ${r.unit}`:`Занадто мале: очікується, що ${e.origin} буде ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Неправильний рядок: повинен починатися з "${t.prefix}"`:t.format===`ends_with`?`Неправильний рядок: повинен закінчуватися на "${t.suffix}"`:t.format===`includes`?`Неправильний рядок: повинен містити "${t.includes}"`:t.format===`regex`?`Неправильний рядок: повинен відповідати шаблону ${t.pattern}`:`Неправильний ${n[t.format]??e.format}`}case`not_multiple_of`:return`Неправильне число: повинно бути кратним ${e.divisor}`;case`unrecognized_keys`:return`Нерозпізнаний ключ${e.keys.length>1?`і`:``}: ${P(e.keys,`, `)}`;case`invalid_key`:return`Неправильний ключ у ${e.origin}`;case`invalid_union`:return`Неправильні вхідні дані`;case`invalid_element`:return`Неправильне значення у ${e.origin}`;default:return`Неправильні вхідні дані`}}}}));function Lm(){return Pm()}var Rm=o((()=>{Im()}));function zm(){return{localeError:Bm()}}var Bm,Vm=o((()=>{z(),Bm=()=>{let e={string:{unit:`حروف`,verb:`ہونا`},file:{unit:`بائٹس`,verb:`ہونا`},array:{unit:`آئٹمز`,verb:`ہونا`},set:{unit:`آئٹمز`,verb:`ہونا`}};function t(t){return e[t]??null}let n={regex:`ان پٹ`,email:`ای میل ایڈریس`,url:`یو آر ایل`,emoji:`ایموجی`,uuid:`یو یو آئی ڈی`,uuidv4:`یو یو آئی ڈی وی 4`,uuidv6:`یو یو آئی ڈی وی 6`,nanoid:`نینو آئی ڈی`,guid:`جی یو آئی ڈی`,cuid:`سی یو آئی ڈی`,cuid2:`سی یو آئی ڈی 2`,ulid:`یو ایل آئی ڈی`,xid:`ایکس آئی ڈی`,ksuid:`کے ایس یو آئی ڈی`,datetime:`آئی ایس او ڈیٹ ٹائم`,date:`آئی ایس او تاریخ`,time:`آئی ایس او وقت`,duration:`آئی ایس او مدت`,ipv4:`آئی پی وی 4 ایڈریس`,ipv6:`آئی پی وی 6 ایڈریس`,cidrv4:`آئی پی وی 4 رینج`,cidrv6:`آئی پی وی 6 رینج`,base64:`بیس 64 ان کوڈڈ سٹرنگ`,base64url:`بیس 64 یو آر ایل ان کوڈڈ سٹرنگ`,json_string:`جے ایس او این سٹرنگ`,e164:`ای 164 نمبر`,jwt:`جے ڈبلیو ٹی`,template_literal:`ان پٹ`},r={nan:`NaN`,number:`نمبر`,array:`آرے`,null:`نل`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=R(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`غلط ان پٹ: instanceof ${e.expected} متوقع تھا، ${i} موصول ہوا`:`غلط ان پٹ: ${t} متوقع تھا، ${i} موصول ہوا`}case`invalid_value`:return e.values.length===1?`غلط ان پٹ: ${L(e.values[0])} متوقع تھا`:`غلط آپشن: ${P(e.values,`|`)} میں سے ایک متوقع تھا`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`بہت بڑا: ${e.origin??`ویلیو`} کے ${n}${e.maximum.toString()} ${r.unit??`عناصر`} ہونے متوقع تھے`:`بہت بڑا: ${e.origin??`ویلیو`} کا ${n}${e.maximum.toString()} ہونا متوقع تھا`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`بہت چھوٹا: ${e.origin} کے ${n}${e.minimum.toString()} ${r.unit} ہونے متوقع تھے`:`بہت چھوٹا: ${e.origin} کا ${n}${e.minimum.toString()} ہونا متوقع تھا`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`غلط سٹرنگ: "${t.prefix}" سے شروع ہونا چاہیے`:t.format===`ends_with`?`غلط سٹرنگ: "${t.suffix}" پر ختم ہونا چاہیے`:t.format===`includes`?`غلط سٹرنگ: "${t.includes}" شامل ہونا چاہیے`:t.format===`regex`?`غلط سٹرنگ: پیٹرن ${t.pattern} سے میچ ہونا چاہیے`:`غلط ${n[t.format]??e.format}`}case`not_multiple_of`:return`غلط نمبر: ${e.divisor} کا مضاعف ہونا چاہیے`;case`unrecognized_keys`:return`غیر تسلیم شدہ کی${e.keys.length>1?`ز`:``}: ${P(e.keys,`، `)}`;case`invalid_key`:return`${e.origin} میں غلط کی`;case`invalid_union`:return`غلط ان پٹ`;case`invalid_element`:return`${e.origin} میں غلط ویلیو`;default:return`غلط ان پٹ`}}}}));function Hm(){return{localeError:Um()}}var Um,Wm=o((()=>{z(),Um=()=>{let e={string:{unit:`belgi`,verb:`bo‘lishi kerak`},file:{unit:`bayt`,verb:`bo‘lishi kerak`},array:{unit:`element`,verb:`bo‘lishi kerak`},set:{unit:`element`,verb:`bo‘lishi kerak`},map:{unit:`yozuv`,verb:`bo‘lishi kerak`}};function t(t){return e[t]??null}let n={regex:`kirish`,email:`elektron pochta manzili`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO sana va vaqti`,date:`ISO sana`,time:`ISO vaqt`,duration:`ISO davomiylik`,ipv4:`IPv4 manzil`,ipv6:`IPv6 manzil`,mac:`MAC manzil`,cidrv4:`IPv4 diapazon`,cidrv6:`IPv6 diapazon`,base64:`base64 kodlangan satr`,base64url:`base64url kodlangan satr`,json_string:`JSON satr`,e164:`E.164 raqam`,jwt:`JWT`,template_literal:`kirish`},r={nan:`NaN`,number:`raqam`,array:`massiv`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=R(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Noto‘g‘ri kirish: kutilgan instanceof ${e.expected}, qabul qilingan ${i}`:`Noto‘g‘ri kirish: kutilgan ${t}, qabul qilingan ${i}`}case`invalid_value`:return e.values.length===1?`Noto‘g‘ri kirish: kutilgan ${L(e.values[0])}`:`Noto‘g‘ri variant: quyidagilardan biri kutilgan ${P(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Juda katta: kutilgan ${e.origin??`qiymat`} ${n}${e.maximum.toString()} ${r.unit} ${r.verb}`:`Juda katta: kutilgan ${e.origin??`qiymat`} ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Juda kichik: kutilgan ${e.origin} ${n}${e.minimum.toString()} ${r.unit} ${r.verb}`:`Juda kichik: kutilgan ${e.origin} ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Noto‘g‘ri satr: "${t.prefix}" bilan boshlanishi kerak`:t.format===`ends_with`?`Noto‘g‘ri satr: "${t.suffix}" bilan tugashi kerak`:t.format===`includes`?`Noto‘g‘ri satr: "${t.includes}" ni o‘z ichiga olishi kerak`:t.format===`regex`?`Noto‘g‘ri satr: ${t.pattern} shabloniga mos kelishi kerak`:`Noto‘g‘ri ${n[t.format]??e.format}`}case`not_multiple_of`:return`Noto‘g‘ri raqam: ${e.divisor} ning karralisi bo‘lishi kerak`;case`unrecognized_keys`:return`Noma’lum kalit${e.keys.length>1?`lar`:``}: ${P(e.keys,`, `)}`;case`invalid_key`:return`${e.origin} dagi kalit noto‘g‘ri`;case`invalid_union`:return`Noto‘g‘ri kirish`;case`invalid_element`:return`${e.origin} da noto‘g‘ri qiymat`;default:return`Noto‘g‘ri kirish`}}}}));function Gm(){return{localeError:Km()}}var Km,qm=o((()=>{z(),Km=()=>{let e={string:{unit:`ký tự`,verb:`có`},file:{unit:`byte`,verb:`có`},array:{unit:`phần tử`,verb:`có`},set:{unit:`phần tử`,verb:`có`}};function t(t){return e[t]??null}let n={regex:`đầu vào`,email:`địa chỉ email`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ngày giờ ISO`,date:`ngày ISO`,time:`giờ ISO`,duration:`khoảng thời gian ISO`,ipv4:`địa chỉ IPv4`,ipv6:`địa chỉ IPv6`,cidrv4:`dải IPv4`,cidrv6:`dải IPv6`,base64:`chuỗi mã hóa base64`,base64url:`chuỗi mã hóa base64url`,json_string:`chuỗi JSON`,e164:`số E.164`,jwt:`JWT`,template_literal:`đầu vào`},r={nan:`NaN`,number:`số`,array:`mảng`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=R(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Đầu vào không hợp lệ: mong đợi instanceof ${e.expected}, nhận được ${i}`:`Đầu vào không hợp lệ: mong đợi ${t}, nhận được ${i}`}case`invalid_value`:return e.values.length===1?`Đầu vào không hợp lệ: mong đợi ${L(e.values[0])}`:`Tùy chọn không hợp lệ: mong đợi một trong các giá trị ${P(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Quá lớn: mong đợi ${e.origin??`giá trị`} ${r.verb} ${n}${e.maximum.toString()} ${r.unit??`phần tử`}`:`Quá lớn: mong đợi ${e.origin??`giá trị`} ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Quá nhỏ: mong đợi ${e.origin} ${r.verb} ${n}${e.minimum.toString()} ${r.unit}`:`Quá nhỏ: mong đợi ${e.origin} ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Chuỗi không hợp lệ: phải bắt đầu bằng "${t.prefix}"`:t.format===`ends_with`?`Chuỗi không hợp lệ: phải kết thúc bằng "${t.suffix}"`:t.format===`includes`?`Chuỗi không hợp lệ: phải bao gồm "${t.includes}"`:t.format===`regex`?`Chuỗi không hợp lệ: phải khớp với mẫu ${t.pattern}`:`${n[t.format]??e.format} không hợp lệ`}case`not_multiple_of`:return`Số không hợp lệ: phải là bội số của ${e.divisor}`;case`unrecognized_keys`:return`Khóa không được nhận dạng: ${P(e.keys,`, `)}`;case`invalid_key`:return`Khóa không hợp lệ trong ${e.origin}`;case`invalid_union`:return`Đầu vào không hợp lệ`;case`invalid_element`:return`Giá trị không hợp lệ trong ${e.origin}`;default:return`Đầu vào không hợp lệ`}}}}));function Jm(){return{localeError:Ym()}}var Ym,Xm=o((()=>{z(),Ym=()=>{let e={string:{unit:`字符`,verb:`包含`},file:{unit:`字节`,verb:`包含`},array:{unit:`项`,verb:`包含`},set:{unit:`项`,verb:`包含`}};function t(t){return e[t]??null}let n={regex:`输入`,email:`电子邮件`,url:`URL`,emoji:`表情符号`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO日期时间`,date:`ISO日期`,time:`ISO时间`,duration:`ISO时长`,ipv4:`IPv4地址`,ipv6:`IPv6地址`,cidrv4:`IPv4网段`,cidrv6:`IPv6网段`,base64:`base64编码字符串`,base64url:`base64url编码字符串`,json_string:`JSON字符串`,e164:`E.164号码`,jwt:`JWT`,template_literal:`输入`},r={nan:`NaN`,number:`数字`,array:`数组`,null:`空值(null)`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=R(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`无效输入:期望 instanceof ${e.expected},实际接收 ${i}`:`无效输入:期望 ${t},实际接收 ${i}`}case`invalid_value`:return e.values.length===1?`无效输入:期望 ${L(e.values[0])}`:`无效选项:期望以下之一 ${P(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`数值过大:期望 ${e.origin??`值`} ${n}${e.maximum.toString()} ${r.unit??`个元素`}`:`数值过大:期望 ${e.origin??`值`} ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`数值过小:期望 ${e.origin} ${n}${e.minimum.toString()} ${r.unit}`:`数值过小:期望 ${e.origin} ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`无效字符串:必须以 "${t.prefix}" 开头`:t.format===`ends_with`?`无效字符串:必须以 "${t.suffix}" 结尾`:t.format===`includes`?`无效字符串:必须包含 "${t.includes}"`:t.format===`regex`?`无效字符串:必须满足正则表达式 ${t.pattern}`:`无效${n[t.format]??e.format}`}case`not_multiple_of`:return`无效数字:必须是 ${e.divisor} 的倍数`;case`unrecognized_keys`:return`出现未知的键(key): ${P(e.keys,`, `)}`;case`invalid_key`:return`${e.origin} 中的键(key)无效`;case`invalid_union`:return`无效输入`;case`invalid_element`:return`${e.origin} 中包含无效值(value)`;default:return`无效输入`}}}}));function Zm(){return{localeError:Qm()}}var Qm,$m=o((()=>{z(),Qm=()=>{let e={string:{unit:`字元`,verb:`擁有`},file:{unit:`位元組`,verb:`擁有`},array:{unit:`項目`,verb:`擁有`},set:{unit:`項目`,verb:`擁有`}};function t(t){return e[t]??null}let n={regex:`輸入`,email:`郵件地址`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO 日期時間`,date:`ISO 日期`,time:`ISO 時間`,duration:`ISO 期間`,ipv4:`IPv4 位址`,ipv6:`IPv6 位址`,cidrv4:`IPv4 範圍`,cidrv6:`IPv6 範圍`,base64:`base64 編碼字串`,base64url:`base64url 編碼字串`,json_string:`JSON 字串`,e164:`E.164 數值`,jwt:`JWT`,template_literal:`輸入`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=R(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`無效的輸入值:預期為 instanceof ${e.expected},但收到 ${i}`:`無效的輸入值:預期為 ${t},但收到 ${i}`}case`invalid_value`:return e.values.length===1?`無效的輸入值:預期為 ${L(e.values[0])}`:`無效的選項:預期為以下其中之一 ${P(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`數值過大:預期 ${e.origin??`值`} 應為 ${n}${e.maximum.toString()} ${r.unit??`個元素`}`:`數值過大:預期 ${e.origin??`值`} 應為 ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`數值過小:預期 ${e.origin} 應為 ${n}${e.minimum.toString()} ${r.unit}`:`數值過小:預期 ${e.origin} 應為 ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`無效的字串:必須以 "${t.prefix}" 開頭`:t.format===`ends_with`?`無效的字串:必須以 "${t.suffix}" 結尾`:t.format===`includes`?`無效的字串:必須包含 "${t.includes}"`:t.format===`regex`?`無效的字串:必須符合格式 ${t.pattern}`:`無效的 ${n[t.format]??e.format}`}case`not_multiple_of`:return`無效的數字:必須為 ${e.divisor} 的倍數`;case`unrecognized_keys`:return`無法識別的鍵值${e.keys.length>1?`們`:``}:${P(e.keys,`、`)}`;case`invalid_key`:return`${e.origin} 中有無效的鍵值`;case`invalid_union`:return`無效的輸入值`;case`invalid_element`:return`${e.origin} 中有無效的值`;default:return`無效的輸入值`}}}}));function eh(){return{localeError:th()}}var th,nh=o((()=>{z(),th=()=>{let e={string:{unit:`àmi`,verb:`ní`},file:{unit:`bytes`,verb:`ní`},array:{unit:`nkan`,verb:`ní`},set:{unit:`nkan`,verb:`ní`}};function t(t){return e[t]??null}let n={regex:`ẹ̀rọ ìbáwọlé`,email:`àdírẹ́sì ìmẹ́lì`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`àkókò ISO`,date:`ọjọ́ ISO`,time:`àkókò ISO`,duration:`àkókò tó pé ISO`,ipv4:`àdírẹ́sì IPv4`,ipv6:`àdírẹ́sì IPv6`,cidrv4:`àgbègbè IPv4`,cidrv6:`àgbègbè IPv6`,base64:`ọ̀rọ̀ tí a kọ́ ní base64`,base64url:`ọ̀rọ̀ base64url`,json_string:`ọ̀rọ̀ JSON`,e164:`nọ́mbà E.164`,jwt:`JWT`,template_literal:`ẹ̀rọ ìbáwọlé`},r={nan:`NaN`,number:`nọ́mbà`,array:`akopọ`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=R(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Ìbáwọlé aṣìṣe: a ní láti fi instanceof ${e.expected}, àmọ̀ a rí ${i}`:`Ìbáwọlé aṣìṣe: a ní láti fi ${t}, àmọ̀ a rí ${i}`}case`invalid_value`:return e.values.length===1?`Ìbáwọlé aṣìṣe: a ní láti fi ${L(e.values[0])}`:`Àṣàyàn aṣìṣe: yan ọ̀kan lára ${P(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Tó pọ̀ jù: a ní láti jẹ́ pé ${e.origin??`iye`} ${r.verb} ${n}${e.maximum} ${r.unit}`:`Tó pọ̀ jù: a ní láti jẹ́ ${n}${e.maximum}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Kéré ju: a ní láti jẹ́ pé ${e.origin} ${r.verb} ${n}${e.minimum} ${r.unit}`:`Kéré ju: a ní láti jẹ́ ${n}${e.minimum}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ bẹ̀rẹ̀ pẹ̀lú "${t.prefix}"`:t.format===`ends_with`?`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ parí pẹ̀lú "${t.suffix}"`:t.format===`includes`?`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ ní "${t.includes}"`:t.format===`regex`?`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ bá àpẹẹrẹ mu ${t.pattern}`:`Aṣìṣe: ${n[t.format]??e.format}`}case`not_multiple_of`:return`Nọ́mbà aṣìṣe: gbọ́dọ̀ jẹ́ èyà pípín ti ${e.divisor}`;case`unrecognized_keys`:return`Bọtìnì àìmọ̀: ${P(e.keys,`, `)}`;case`invalid_key`:return`Bọtìnì aṣìṣe nínú ${e.origin}`;case`invalid_union`:return`Ìbáwọlé aṣìṣe`;case`invalid_element`:return`Iye aṣìṣe nínú ${e.origin}`;default:return`Ìbáwọlé aṣìṣe`}}}})),rh=c({ar:()=>af,az:()=>cf,be:()=>ff,bg:()=>hf,ca:()=>vf,cs:()=>xf,da:()=>wf,de:()=>Df,el:()=>Af,en:()=>Nf,eo:()=>If,es:()=>zf,fa:()=>Hf,fi:()=>Gf,fr:()=>Jf,frCA:()=>Zf,he:()=>ep,hr:()=>rp,hu:()=>op,hy:()=>dp,id:()=>mp,is:()=>_p,it:()=>bp,ja:()=>Cp,ka:()=>Ep,kh:()=>Mp,km:()=>kp,ko:()=>Pp,lt:()=>Rp,mk:()=>Hp,ms:()=>Gp,nl:()=>Jp,no:()=>Zp,ota:()=>em,pl:()=>om,ps:()=>rm,pt:()=>lm,ro:()=>fm,ru:()=>gm,sl:()=>ym,sv:()=>Sm,ta:()=>Tm,th:()=>Om,tr:()=>jm,ua:()=>Lm,uk:()=>Pm,ur:()=>zm,uz:()=>Hm,vi:()=>Gm,yo:()=>eh,zhCN:()=>Jm,zhTW:()=>Zm}),ih=o((()=>{sf(),uf(),mf(),_f(),bf(),Cf(),Ef(),kf(),Mf(),Ff(),Rf(),Vf(),Wf(),qf(),Xf(),$f(),np(),ap(),cp(),pp(),gp(),yp(),Sp(),Tp(),Op(),Np(),jp(),Ip(),Vp(),Wp(),qp(),Xp(),$p(),nm(),am(),cm(),dm(),mm(),vm(),xm(),wm(),Dm(),Am(),Nm(),Rm(),Im(),Vm(),Wm(),qm(),Xm(),$m(),nh()}));function ah(){return new lh}var oh,sh,ch,lh,uh,dh=o((()=>{sh=Symbol(`ZodOutput`),ch=Symbol(`ZodInput`),lh=class{constructor(){this._map=new WeakMap,this._idmap=new Map}add(e,...t){let n=t[0];return this._map.set(e,n),n&&typeof n==`object`&&`id`in n&&this._idmap.set(n.id,e),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(e){let t=this._map.get(e);return t&&typeof t==`object`&&`id`in t&&this._idmap.delete(t.id),this._map.delete(e),this}get(e){let t=e._zod.parent;if(t){let n={...this.get(t)??{}};delete n.id;let r={...n,...this._map.get(e)};return Object.keys(r).length?r:void 0}return this._map.get(e)}has(e){return this._map.has(e)}},(oh=globalThis).__zod_globalRegistry??(oh.__zod_globalRegistry=ah()),uh=globalThis.__zod_globalRegistry}));function fh(e,t){return new e({type:`string`,...I(t)})}function ph(e,t){return new e({type:`string`,coerce:!0,...I(t)})}function mh(e,t){return new e({type:`string`,format:`email`,check:`string_format`,abort:!1,...I(t)})}function hh(e,t){return new e({type:`string`,format:`guid`,check:`string_format`,abort:!1,...I(t)})}function gh(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,...I(t)})}function _h(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v4`,...I(t)})}function vh(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v6`,...I(t)})}function yh(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v7`,...I(t)})}function bh(e,t){return new e({type:`string`,format:`url`,check:`string_format`,abort:!1,...I(t)})}function xh(e,t){return new e({type:`string`,format:`emoji`,check:`string_format`,abort:!1,...I(t)})}function Sh(e,t){return new e({type:`string`,format:`nanoid`,check:`string_format`,abort:!1,...I(t)})}function Ch(e,t){return new e({type:`string`,format:`cuid`,check:`string_format`,abort:!1,...I(t)})}function wh(e,t){return new e({type:`string`,format:`cuid2`,check:`string_format`,abort:!1,...I(t)})}function Th(e,t){return new e({type:`string`,format:`ulid`,check:`string_format`,abort:!1,...I(t)})}function Eh(e,t){return new e({type:`string`,format:`xid`,check:`string_format`,abort:!1,...I(t)})}function Dh(e,t){return new e({type:`string`,format:`ksuid`,check:`string_format`,abort:!1,...I(t)})}function Oh(e,t){return new e({type:`string`,format:`ipv4`,check:`string_format`,abort:!1,...I(t)})}function kh(e,t){return new e({type:`string`,format:`ipv6`,check:`string_format`,abort:!1,...I(t)})}function Ah(e,t){return new e({type:`string`,format:`mac`,check:`string_format`,abort:!1,...I(t)})}function jh(e,t){return new e({type:`string`,format:`cidrv4`,check:`string_format`,abort:!1,...I(t)})}function Mh(e,t){return new e({type:`string`,format:`cidrv6`,check:`string_format`,abort:!1,...I(t)})}function Nh(e,t){return new e({type:`string`,format:`base64`,check:`string_format`,abort:!1,...I(t)})}function Ph(e,t){return new e({type:`string`,format:`base64url`,check:`string_format`,abort:!1,...I(t)})}function Fh(e,t){return new e({type:`string`,format:`e164`,check:`string_format`,abort:!1,...I(t)})}function Ih(e,t){return new e({type:`string`,format:`jwt`,check:`string_format`,abort:!1,...I(t)})}function Lh(e,t){return new e({type:`string`,format:`datetime`,check:`string_format`,offset:!1,local:!1,precision:null,...I(t)})}function Rh(e,t){return new e({type:`string`,format:`date`,check:`string_format`,...I(t)})}function zh(e,t){return new e({type:`string`,format:`time`,check:`string_format`,precision:null,...I(t)})}function Bh(e,t){return new e({type:`string`,format:`duration`,check:`string_format`,...I(t)})}function Vh(e,t){return new e({type:`number`,checks:[],...I(t)})}function Hh(e,t){return new e({type:`number`,coerce:!0,checks:[],...I(t)})}function Uh(e,t){return new e({type:`number`,check:`number_format`,abort:!1,format:`safeint`,...I(t)})}function Wh(e,t){return new e({type:`number`,check:`number_format`,abort:!1,format:`float32`,...I(t)})}function Gh(e,t){return new e({type:`number`,check:`number_format`,abort:!1,format:`float64`,...I(t)})}function Kh(e,t){return new e({type:`number`,check:`number_format`,abort:!1,format:`int32`,...I(t)})}function qh(e,t){return new e({type:`number`,check:`number_format`,abort:!1,format:`uint32`,...I(t)})}function Jh(e,t){return new e({type:`boolean`,...I(t)})}function Yh(e,t){return new e({type:`boolean`,coerce:!0,...I(t)})}function Xh(e,t){return new e({type:`bigint`,...I(t)})}function Zh(e,t){return new e({type:`bigint`,coerce:!0,...I(t)})}function Qh(e,t){return new e({type:`bigint`,check:`bigint_format`,abort:!1,format:`int64`,...I(t)})}function $h(e,t){return new e({type:`bigint`,check:`bigint_format`,abort:!1,format:`uint64`,...I(t)})}function eg(e,t){return new e({type:`symbol`,...I(t)})}function tg(e,t){return new e({type:`undefined`,...I(t)})}function ng(e,t){return new e({type:`null`,...I(t)})}function rg(e){return new e({type:`any`})}function ig(e){return new e({type:`unknown`})}function ag(e,t){return new e({type:`never`,...I(t)})}function og(e,t){return new e({type:`void`,...I(t)})}function sg(e,t){return new e({type:`date`,...I(t)})}function cg(e,t){return new e({type:`date`,coerce:!0,...I(t)})}function lg(e,t){return new e({type:`nan`,...I(t)})}function ug(e,t){return new Gl({check:`less_than`,...I(t),value:e,inclusive:!1})}function dg(e,t){return new Gl({check:`less_than`,...I(t),value:e,inclusive:!0})}function fg(e,t){return new V({check:`greater_than`,...I(t),value:e,inclusive:!1})}function pg(e,t){return new V({check:`greater_than`,...I(t),value:e,inclusive:!0})}function mg(e){return fg(0,e)}function hg(e){return ug(0,e)}function gg(e){return dg(0,e)}function _g(e){return pg(0,e)}function vg(e,t){return new H({check:`multiple_of`,...I(t),value:e})}function yg(e,t){return new Jl({check:`max_size`,...I(t),maximum:e})}function bg(e,t){return new Yl({check:`min_size`,...I(t),minimum:e})}function xg(e,t){return new Xl({check:`size_equals`,...I(t),size:e})}function Sg(e,t){return new Zl({check:`max_length`,...I(t),maximum:e})}function Cg(e,t){return new Ql({check:`min_length`,...I(t),minimum:e})}function wg(e,t){return new $l({check:`length_equals`,...I(t),length:e})}function Tg(e,t){return new tu({check:`string_format`,format:`regex`,...I(t),pattern:e})}function Eg(e){return new nu({check:`string_format`,format:`lowercase`,...I(e)})}function Dg(e){return new ru({check:`string_format`,format:`uppercase`,...I(e)})}function Og(e,t){return new iu({check:`string_format`,format:`includes`,...I(t),includes:e})}function kg(e,t){return new au({check:`string_format`,format:`starts_with`,...I(t),prefix:e})}function Ag(e,t){return new ou({check:`string_format`,format:`ends_with`,...I(t),suffix:e})}function jg(e,t,n){return new su({check:`property`,property:e,schema:t,...I(n)})}function Mg(e,t){return new cu({check:`mime_type`,mime:e,...I(t)})}function Ng(e){return new lu({check:`overwrite`,tx:e})}function Pg(e){return Ng(t=>t.normalize(e))}function Fg(){return Ng(e=>e.trim())}function Ig(){return Ng(e=>e.toLowerCase())}function Lg(){return Ng(e=>e.toUpperCase())}function Rg(){return Ng(e=>ds(e))}function zg(e,t,n){return new e({type:`array`,element:t,...I(n)})}function Bg(e,t,n){return new e({type:`union`,options:t,...I(n)})}function Vg(e,t,n){return new e({type:`union`,options:t,inclusive:!1,...I(n)})}function Hg(e,t,n,r){return new e({type:`union`,options:n,discriminator:t,...I(r)})}function Ug(e,t,n){return new e({type:`intersection`,left:t,right:n})}function Wg(e,t,n,r){let i=n instanceof U;return new e({type:`tuple`,items:t,rest:i?n:null,...I(i?r:n)})}function Gg(e,t,n,r){return new e({type:`record`,keyType:t,valueType:n,...I(r)})}function Kg(e,t,n,r){return new e({type:`map`,keyType:t,valueType:n,...I(r)})}function qg(e,t,n){return new e({type:`set`,valueType:t,...I(n)})}function Jg(e,t,n){return new e({type:`enum`,entries:Array.isArray(t)?Object.fromEntries(t.map(e=>[e,e])):t,...I(n)})}function Yg(e,t,n){return new e({type:`enum`,entries:t,...I(n)})}function Xg(e,t,n){return new e({type:`literal`,values:Array.isArray(t)?t:[t],...I(n)})}function Zg(e,t){return new e({type:`file`,...I(t)})}function Qg(e,t){return new e({type:`transform`,transform:t})}function $g(e,t){return new e({type:`optional`,innerType:t})}function e_(e,t){return new e({type:`nullable`,innerType:t})}function t_(e,t,n){return new e({type:`default`,innerType:t,get defaultValue(){return typeof n==`function`?n():ms(n)}})}function n_(e,t,n){return new e({type:`nonoptional`,innerType:t,...I(n)})}function r_(e,t){return new e({type:`success`,innerType:t})}function i_(e,t,n){return new e({type:`catch`,innerType:t,catchValue:typeof n==`function`?n:()=>n})}function a_(e,t,n){return new e({type:`pipe`,in:t,out:n})}function o_(e,t){return new e({type:`readonly`,innerType:t})}function s_(e,t,n){return new e({type:`template_literal`,parts:t,...I(n)})}function c_(e,t){return new e({type:`lazy`,getter:t})}function l_(e,t){return new e({type:`promise`,innerType:t})}function u_(e,t,n){let r=I(n);return r.abort??=!0,new e({type:`custom`,check:`custom`,fn:t,...r})}function d_(e,t,n){return new e({type:`custom`,check:`custom`,fn:t,...I(n)})}function f_(e,t){let n=p_(t=>(t.addIssue=e=>{if(typeof e==`string`)t.issues.push(Ps(e,t.value,n._zod.def));else{let r=e;r.fatal&&(r.continue=!1),r.code??=`custom`,r.input??=t.value,r.inst??=n,r.continue??=!n._zod.def.abort,t.issues.push(Ps(r))}},e(t.value,t)),t);return n}function p_(e,t){let n=new Wl({check:`custom`,...I(t)});return n._zod.check=e,n}function m_(e){let t=new Wl({check:`describe`});return t._zod.onattach=[t=>{let n=uh.get(t)??{};uh.add(t,{...n,description:e})}],t._zod.check=()=>{},t}function h_(e){let t=new Wl({check:`meta`});return t._zod.onattach=[t=>{let n=uh.get(t)??{};uh.add(t,{...n,...e})}],t._zod.check=()=>{},t}function g_(e,t){let n=I(t),r=n.truthy??[`true`,`1`,`yes`,`on`,`y`,`enabled`],i=n.falsy??[`false`,`0`,`no`,`off`,`n`,`disabled`];n.case!==`sensitive`&&(r=r.map(e=>typeof e==`string`?e.toLowerCase():e),i=i.map(e=>typeof e==`string`?e.toLowerCase():e));let a=new Set(r),o=new Set(i),s=e.Codec??Yd,c=e.Boolean??md,l=new s({type:`pipe`,in:new(e.String??zu)({type:`string`,error:n.error}),out:new c({type:`boolean`,error:n.error}),transform:((e,t)=>{let r=e;return n.case!==`sensitive`&&(r=r.toLowerCase()),a.has(r)?!0:!o.has(r)&&(t.issues.push({code:`invalid_value`,expected:`stringbool`,values:[...a,...o],input:t.value,inst:l,continue:!1}),{})}),reverseTransform:((e,t)=>e===!0?r[0]||`true`:i[0]||`false`),error:n.error});return l}function __(e,t,n,r={}){let i=I(r),a={...I(r),check:`string_format`,type:`string`,format:t,fn:typeof n==`function`?n:e=>n.test(e),...i};return n instanceof RegExp&&(a.pattern=n),new e(a)}var v_,y_=o((()=>{uu(),dh(),rf(),z(),v_={Any:null,Minute:-1,Second:0,Millisecond:3,Microsecond:6}}));function b_(e){let t=e?.target??`draft-2020-12`;return t===`draft-4`&&(t=`draft-04`),t===`draft-7`&&(t=`draft-07`),{processors:e.processors??{},metadataRegistry:e?.metadata??uh,target:t,unrepresentable:e?.unrepresentable??`throw`,override:e?.override??(()=>{}),io:e?.io??`output`,counter:0,seen:new Map,cycles:e?.cycles??`ref`,reused:e?.reused??`inline`,external:e?.external??void 0}}function x_(e,t,n={path:[],schemaPath:[]}){var r;let i=e._zod.def,a=t.seen.get(e);if(a)return a.count++,n.schemaPath.includes(e)&&(a.cycle=n.path),a.schema;let o={schema:{},count:1,cycle:void 0,path:n.path};t.seen.set(e,o);let s=e._zod.toJSONSchema?.();if(s)o.schema=s;else{let r={...n,schemaPath:[...n.schemaPath,e],path:n.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,o.schema,r);else{let n=o.schema,a=t.processors[i.type];if(!a)throw Error(`[toJSONSchema]: Non-representable type encountered: ${i.type}`);a(e,t,n,r)}let a=e._zod.parent;a&&(o.ref||=a,x_(a,t,r),t.seen.get(a).isParent=!0)}let c=t.metadataRegistry.get(e);return c&&Object.assign(o.schema,c),t.io===`input`&&w_(e)&&(delete o.schema.examples,delete o.schema.default),t.io===`input`&&`_prefault`in o.schema&&((r=o.schema).default??(r.default=o.schema._prefault)),delete o.schema._prefault,t.seen.get(e).schema}function S_(e,t){let n=e.seen.get(t);if(!n)throw Error(`Unprocessed schema. This is a bug in Zod.`);let r=new Map;for(let t of e.seen.entries()){let n=e.metadataRegistry.get(t[0])?.id;if(n){let e=r.get(n);if(e&&e!==t[0])throw Error(`Duplicate schema id "${n}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);r.set(n,t[0])}}let i=t=>{let r=e.target===`draft-2020-12`?`$defs`:`definitions`;if(e.external){let n=e.external.registry.get(t[0])?.id,i=e.external.uri??(e=>e);if(n)return{ref:i(n)};let a=t[1].defId??t[1].schema.id??`schema${e.counter++}`;return t[1].defId=a,{defId:a,ref:`${i(`__shared`)}#/${r}/${a}`}}if(t[1]===n)return{ref:`#`};let i=`#/${r}/`,a=t[1].schema.id??`__schema${e.counter++}`;return{defId:a,ref:i+a}},a=e=>{if(e[1].schema.$ref)return;let t=e[1],{ref:n,defId:r}=i(e);t.def={...t.schema},r&&(t.defId=r);let a=t.schema;for(let e in a)delete a[e];a.$ref=n};if(e.cycles===`throw`)for(let t of e.seen.entries()){let e=t[1];if(e.cycle)throw Error(`Cycle detected: #/${e.cycle?.join(`/`)}/ -Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let n of e.seen.entries()){let r=n[1];if(t===n[0]){a(n);continue}if(e.external){let r=e.external.registry.get(n[0])?.id;if(t!==n[0]&&r){a(n);continue}}if(e.metadataRegistry.get(n[0])?.id){a(n);continue}if(r.cycle){a(n);continue}if(r.count>1&&e.reused===`ref`){a(n);continue}}}function m_(e,t){let n=e.seen.get(t);if(!n)throw Error(`Unprocessed schema. This is a bug in Zod.`);let r=t=>{let n=e.seen.get(t);if(n.ref===null)return;let i=n.def??n.schema,a={...i},o=n.ref;if(n.ref=null,o){r(o);let n=e.seen.get(o),s=n.schema;if(s.$ref&&(e.target===`draft-07`||e.target===`draft-04`||e.target===`openapi-3.0`)?(i.allOf=i.allOf??[],i.allOf.push(s)):Object.assign(i,s),Object.assign(i,a),t._zod.parent===o)for(let e in i)e!==`$ref`&&e!==`allOf`&&(e in a||delete i[e]);if(s.$ref&&n.def)for(let e in i)e!==`$ref`&&e!==`allOf`&&e in n.def&&JSON.stringify(i[e])===JSON.stringify(n.def[e])&&delete i[e]}let s=t._zod.parent;if(s&&s!==o){r(s);let t=e.seen.get(s);if(t?.schema.$ref&&(i.$ref=t.schema.$ref,t.def))for(let e in i)e!==`$ref`&&e!==`allOf`&&e in t.def&&JSON.stringify(i[e])===JSON.stringify(t.def[e])&&delete i[e]}e.override({zodSchema:t,jsonSchema:i,path:n.path??[]})};for(let t of[...e.seen.entries()].reverse())r(t[0]);let i={};if(e.target===`draft-2020-12`?i.$schema=`https://json-schema.org/draft/2020-12/schema`:e.target===`draft-07`?i.$schema=`http://json-schema.org/draft-07/schema#`:e.target===`draft-04`?i.$schema=`http://json-schema.org/draft-04/schema#`:e.target,e.external?.uri){let n=e.external.registry.get(t)?.id;if(!n)throw Error("Schema is missing an `id` property");i.$id=e.external.uri(n)}Object.assign(i,n.def??n.schema);let a=e.metadataRegistry.get(t)?.id;a!==void 0&&i.id===a&&delete i.id;let o=e.external?.defs??{};for(let t of e.seen.entries()){let e=t[1];e.def&&e.defId&&(e.def.id===e.defId&&delete e.def.id,o[e.defId]=e.def)}e.external||Object.keys(o).length>0&&(e.target===`draft-2020-12`?i.$defs=o:i.definitions=o);try{let n=JSON.parse(JSON.stringify(i));return Object.defineProperty(n,"~standard",{value:{...t[`~standard`],jsonSchema:{input:__(t,`input`,e.processors),output:__(t,`output`,e.processors)}},enumerable:!1,writable:!1}),n}catch{throw Error(`Error converting schema to JSON.`)}}function h_(e,t){let n=t??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);let r=e._zod.def;if(r.type===`transform`)return!0;if(r.type===`array`)return h_(r.element,n);if(r.type===`set`)return h_(r.valueType,n);if(r.type===`lazy`)return h_(r.getter(),n);if(r.type===`promise`||r.type===`optional`||r.type===`nonoptional`||r.type===`nullable`||r.type===`readonly`||r.type==="default"||r.type===`prefault`)return h_(r.innerType,n);if(r.type===`intersection`)return h_(r.left,n)||h_(r.right,n);if(r.type===`record`||r.type===`map`)return h_(r.keyType,n)||h_(r.valueType,n);if(r.type===`pipe`)return e._zod.traits.has(`$ZodCodec`)?!0:h_(r.in,n)||h_(r.out,n);if(r.type===`object`){for(let e in r.shape)if(h_(r.shape[e],n))return!0;return!1}if(r.type===`union`){for(let e of r.options)if(h_(e,n))return!0;return!1}if(r.type===`tuple`){for(let e of r.items)if(h_(e,n))return!0;return!!(r.rest&&h_(r.rest,n))}return!1}var g_,__,v_=o((()=>{nh(),g_=(e,t={})=>n=>{let r=d_({...n,processors:t});return f_(e,r),p_(r,e),m_(r,e)},__=(e,t,n={})=>r=>{let{libraryOptions:i,target:a}=r??{},o=d_({...i??{},target:a,io:t,processors:n});return f_(e,o),p_(o,e),m_(o,e)}}));function y_(e,t){if(`_idmap`in e){let n=e,r=d_({...t,processors:ov}),i={};for(let e of n._idmap.entries()){let[t,n]=e;f_(n,r)}let a={};r.external={registry:n,uri:t?.uri,defs:i};for(let e of n._idmap.entries()){let[t,n]=e;p_(r,n),a[t]=m_(r,n)}return Object.keys(i).length>0&&(a.__shared={[r.target===`draft-2020-12`?`$defs`:`definitions`]:i}),{schemas:a}}let n=d_({...t,processors:ov});return f_(e,n),p_(n,e),m_(n,e)}var b_,x_,S_,C_,w_,T_,E_,D_,O_,k_,A_,j_,M_,N_,P_,F_,I_,L_,R_,z_,B_,V_,H_,U_,W_,G_,K_,q_,J_,Y_,X_,Z_,Q_,$_,ev,tv,nv,rv,iv,av,ov,sv=o((()=>{v_(),z(),b_={guid:`uuid`,url:`uri`,datetime:`date-time`,json_string:`json-string`,regex:``},x_=(e,t,n,r)=>{let i=n;i.type=`string`;let{minimum:a,maximum:o,format:s,patterns:c,contentEncoding:l}=e._zod.bag;if(typeof a==`number`&&(i.minLength=a),typeof o==`number`&&(i.maxLength=o),s&&(i.format=b_[s]??s,i.format===``&&delete i.format,s===`time`&&delete i.format),l&&(i.contentEncoding=l),c&&c.size>0){let e=[...c];e.length===1?i.pattern=e[0].source:e.length>1&&(i.allOf=[...e.map(e=>({...t.target===`draft-07`||t.target===`draft-04`||t.target===`openapi-3.0`?{type:`string`}:{},pattern:e.source}))])}},S_=(e,t,n,r)=>{let i=n,{minimum:a,maximum:o,format:s,multipleOf:c,exclusiveMaximum:l,exclusiveMinimum:u}=e._zod.bag;i.type=typeof s==`string`&&s.includes(`int`)?`integer`:`number`;let d=typeof u==`number`&&u>=(a??-1/0),f=typeof l==`number`&&l<=(o??1/0),p=t.target===`draft-04`||t.target===`openapi-3.0`;d?p?(i.minimum=u,i.exclusiveMinimum=!0):i.exclusiveMinimum=u:typeof a==`number`&&(i.minimum=a),f?p?(i.maximum=l,i.exclusiveMaximum=!0):i.exclusiveMaximum=l:typeof o==`number`&&(i.maximum=o),typeof c==`number`&&(i.multipleOf=c)},C_=(e,t,n,r)=>{n.type=`boolean`},w_=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`BigInt cannot be represented in JSON Schema`)},T_=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Symbols cannot be represented in JSON Schema`)},E_=(e,t,n,r)=>{t.target===`openapi-3.0`?(n.type=`string`,n.nullable=!0,n.enum=[null]):n.type=`null`},D_=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Undefined cannot be represented in JSON Schema`)},O_=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Void cannot be represented in JSON Schema`)},k_=(e,t,n,r)=>{n.not={}},A_=(e,t,n,r)=>{},j_=(e,t,n,r)=>{},M_=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Date cannot be represented in JSON Schema`)},N_=(e,t,n,r)=>{let i=e._zod.def,a=Ho(i.entries);a.every(e=>typeof e==`number`)&&(n.type=`number`),a.every(e=>typeof e==`string`)&&(n.type=`string`),n.enum=a},P_=(e,t,n,r)=>{let i=e._zod.def,a=[];for(let e of i.values)if(e===void 0){if(t.unrepresentable===`throw`)throw Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof e==`bigint`){if(t.unrepresentable===`throw`)throw Error(`BigInt literals cannot be represented in JSON Schema`);a.push(Number(e))}else a.push(e);if(a.length!==0)if(a.length===1){let e=a[0];n.type=e===null?`null`:typeof e,t.target===`draft-04`||t.target===`openapi-3.0`?n.enum=[e]:n.const=e}else a.every(e=>typeof e==`number`)&&(n.type=`number`),a.every(e=>typeof e==`string`)&&(n.type=`string`),a.every(e=>typeof e==`boolean`)&&(n.type=`boolean`),a.every(e=>e===null)&&(n.type=`null`),n.enum=a},F_=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`NaN cannot be represented in JSON Schema`)},I_=(e,t,n,r)=>{let i=n,a=e._zod.pattern;if(!a)throw Error(`Pattern not found in template literal`);i.type=`string`,i.pattern=a.source},L_=(e,t,n,r)=>{let i=n,a={type:`string`,format:`binary`,contentEncoding:`binary`},{minimum:o,maximum:s,mime:c}=e._zod.bag;o!==void 0&&(a.minLength=o),s!==void 0&&(a.maxLength=s),c?c.length===1?(a.contentMediaType=c[0],Object.assign(i,a)):(Object.assign(i,a),i.anyOf=c.map(e=>({contentMediaType:e}))):Object.assign(i,a)},R_=(e,t,n,r)=>{n.type=`boolean`},z_=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Custom types cannot be represented in JSON Schema`)},B_=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Function types cannot be represented in JSON Schema`)},V_=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Transforms cannot be represented in JSON Schema`)},H_=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Map cannot be represented in JSON Schema`)},U_=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Set cannot be represented in JSON Schema`)},W_=(e,t,n,r)=>{let i=n,a=e._zod.def,{minimum:o,maximum:s}=e._zod.bag;typeof o==`number`&&(i.minItems=o),typeof s==`number`&&(i.maxItems=s),i.type=`array`,i.items=f_(a.element,t,{...r,path:[...r.path,`items`]})},G_=(e,t,n,r)=>{let i=n,a=e._zod.def;i.type=`object`,i.properties={};let o=a.shape;for(let e in o)i.properties[e]=f_(o[e],t,{...r,path:[...r.path,`properties`,e]});let s=new Set(Object.keys(o)),c=new Set([...s].filter(e=>{let n=a.shape[e]._zod;return t.io===`input`?n.optin===void 0:n.optout===void 0}));c.size>0&&(i.required=Array.from(c)),a.catchall?._zod.def.type===`never`?i.additionalProperties=!1:a.catchall?a.catchall&&(i.additionalProperties=f_(a.catchall,t,{...r,path:[...r.path,`additionalProperties`]})):t.io===`output`&&(i.additionalProperties=!1)},K_=(e,t,n,r)=>{let i=e._zod.def,a=i.inclusive===!1,o=i.options.map((e,n)=>f_(e,t,{...r,path:[...r.path,a?`oneOf`:`anyOf`,n]}));a?n.oneOf=o:n.anyOf=o},q_=(e,t,n,r)=>{let i=e._zod.def,a=f_(i.left,t,{...r,path:[...r.path,`allOf`,0]}),o=f_(i.right,t,{...r,path:[...r.path,`allOf`,1]}),s=e=>`allOf`in e&&Object.keys(e).length===1;n.allOf=[...s(a)?a.allOf:[a],...s(o)?o.allOf:[o]]},J_=(e,t,n,r)=>{let i=n,a=e._zod.def;i.type=`array`;let o=t.target===`draft-2020-12`?`prefixItems`:`items`,s=t.target===`draft-2020-12`||t.target===`openapi-3.0`?`items`:`additionalItems`,c=a.items.map((e,n)=>f_(e,t,{...r,path:[...r.path,o,n]})),l=a.rest?f_(a.rest,t,{...r,path:[...r.path,s,...t.target===`openapi-3.0`?[a.items.length]:[]]}):null;t.target===`draft-2020-12`?(i.prefixItems=c,l&&(i.items=l)):t.target===`openapi-3.0`?(i.items={anyOf:c},l&&i.items.anyOf.push(l),i.minItems=c.length,l||(i.maxItems=c.length)):(i.items=c,l&&(i.additionalItems=l));let{minimum:u,maximum:d}=e._zod.bag;typeof u==`number`&&(i.minItems=u),typeof d==`number`&&(i.maxItems=d)},Y_=(e,t,n,r)=>{let i=n,a=e._zod.def;i.type=`object`;let o=a.keyType,s=o._zod.bag?.patterns;if(a.mode===`loose`&&s&&s.size>0){let e=f_(a.valueType,t,{...r,path:[...r.path,`patternProperties`,`*`]});i.patternProperties={};for(let t of s)i.patternProperties[t.source]=e}else(t.target===`draft-07`||t.target===`draft-2020-12`)&&(i.propertyNames=f_(a.keyType,t,{...r,path:[...r.path,`propertyNames`]})),i.additionalProperties=f_(a.valueType,t,{...r,path:[...r.path,`additionalProperties`]});let c=o._zod.values;if(c){let e=[...c].filter(e=>typeof e==`string`||typeof e==`number`);e.length>0&&(i.required=e)}},X_=(e,t,n,r)=>{let i=e._zod.def,a=f_(i.innerType,t,r),o=t.seen.get(e);t.target===`openapi-3.0`?(o.ref=i.innerType,n.nullable=!0):n.anyOf=[a,{type:`null`}]},Z_=(e,t,n,r)=>{let i=e._zod.def;f_(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},Q_=(e,t,n,r)=>{let i=e._zod.def;f_(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,n.default=JSON.parse(JSON.stringify(i.defaultValue))},$_=(e,t,n,r)=>{let i=e._zod.def;f_(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,t.io===`input`&&(n._prefault=JSON.parse(JSON.stringify(i.defaultValue)))},ev=(e,t,n,r)=>{let i=e._zod.def;f_(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType;let o;try{o=i.catchValue(void 0)}catch{throw Error(`Dynamic catch values are not supported in JSON Schema`)}n.default=o},tv=(e,t,n,r)=>{let i=e._zod.def,a=i.in._zod.traits.has(`$ZodTransform`),o=t.io===`input`?a?i.out:i.in:i.out;f_(o,t,r);let s=t.seen.get(e);s.ref=o},nv=(e,t,n,r)=>{let i=e._zod.def;f_(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,n.readOnly=!0},rv=(e,t,n,r)=>{let i=e._zod.def;f_(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},iv=(e,t,n,r)=>{let i=e._zod.def;f_(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},av=(e,t,n,r)=>{let i=e._zod.innerType;f_(i,t,r);let a=t.seen.get(e);a.ref=i},ov={string:x_,number:S_,boolean:C_,bigint:w_,symbol:T_,null:E_,undefined:D_,void:O_,never:k_,any:A_,unknown:j_,date:M_,enum:N_,literal:P_,nan:F_,template_literal:I_,file:L_,success:R_,custom:z_,function:B_,transform:V_,map:H_,set:U_,array:W_,object:G_,union:K_,intersection:q_,tuple:J_,record:Y_,nullable:X_,nonoptional:Z_,default:Q_,prefault:$_,catch:ev,pipe:tv,readonly:nv,promise:rv,optional:iv,lazy:av}})),cv,lv=o((()=>{sv(),v_(),cv=class{get metadataRegistry(){return this.ctx.metadataRegistry}get target(){return this.ctx.target}get unrepresentable(){return this.ctx.unrepresentable}get override(){return this.ctx.override}get io(){return this.ctx.io}get counter(){return this.ctx.counter}set counter(e){this.ctx.counter=e}get seen(){return this.ctx.seen}constructor(e){let t=e?.target??`draft-2020-12`;t===`draft-4`&&(t=`draft-04`),t===`draft-7`&&(t=`draft-07`),this.ctx=d_({processors:ov,target:t,...e?.metadata&&{metadata:e.metadata},...e?.unrepresentable&&{unrepresentable:e.unrepresentable},...e?.override&&{override:e.override},...e?.io&&{io:e.io}})}process(e,t={path:[],schemaPath:[]}){return f_(e,this.ctx,t)}emit(e,t){t&&(t.cycles&&(this.ctx.cycles=t.cycles),t.reused&&(this.ctx.reused=t.reused),t.external&&(this.ctx.external=t.external)),p_(this.ctx,e);let{"~standard":n,...r}=m_(this.ctx,e);return r}}})),uv=c({}),dv=o((()=>{})),fv=c({$ZodAny:()=>dd,$ZodArray:()=>gd,$ZodAsyncError:()=>Mo,$ZodBase64:()=>Qu,$ZodBase64URL:()=>$u,$ZodBigInt:()=>od,$ZodBigIntFormat:()=>sd,$ZodBoolean:()=>ad,$ZodCIDRv4:()=>Xu,$ZodCIDRv6:()=>Zu,$ZodCUID:()=>Ru,$ZodCUID2:()=>zu,$ZodCatch:()=>Ld,$ZodCheck:()=>Fl,$ZodCheckBigIntFormat:()=>Vl,$ZodCheckEndsWith:()=>Zl,$ZodCheckGreaterThan:()=>Rl,$ZodCheckIncludes:()=>Yl,$ZodCheckLengthEquals:()=>V,$ZodCheckLessThan:()=>Ll,$ZodCheckLowerCase:()=>ql,$ZodCheckMaxLength:()=>B,$ZodCheckMaxSize:()=>Hl,$ZodCheckMimeType:()=>$l,$ZodCheckMinLength:()=>Gl,$ZodCheckMinSize:()=>Ul,$ZodCheckMultipleOf:()=>zl,$ZodCheckNumberFormat:()=>Bl,$ZodCheckOverwrite:()=>eu,$ZodCheckProperty:()=>Ql,$ZodCheckRegex:()=>Kl,$ZodCheckSizeEquals:()=>Wl,$ZodCheckStartsWith:()=>Xl,$ZodCheckStringFormat:()=>H,$ZodCheckUpperCase:()=>Jl,$ZodCodec:()=>Bd,$ZodCustom:()=>qd,$ZodCustomStringFormat:()=>nd,$ZodDate:()=>hd,$ZodDefault:()=>Nd,$ZodDiscriminatedUnion:()=>xd,$ZodE164:()=>ed,$ZodEmail:()=>Pu,$ZodEmoji:()=>Iu,$ZodEncodeError:()=>No,$ZodEnum:()=>Dd,$ZodError:()=>Js,$ZodExactOptional:()=>jd,$ZodFile:()=>Od,$ZodFunction:()=>Wd,$ZodGUID:()=>Mu,$ZodIPv4:()=>qu,$ZodIPv6:()=>Ju,$ZodISODate:()=>Wu,$ZodISODateTime:()=>Uu,$ZodISODuration:()=>Ku,$ZodISOTime:()=>Gu,$ZodIntersection:()=>Sd,$ZodJWT:()=>td,$ZodKSUID:()=>Hu,$ZodLazy:()=>Kd,$ZodLiteral:()=>W,$ZodMAC:()=>Yu,$ZodMap:()=>Td,$ZodNaN:()=>Rd,$ZodNanoID:()=>Lu,$ZodNever:()=>pd,$ZodNonOptional:()=>Fd,$ZodNull:()=>ud,$ZodNullable:()=>Md,$ZodNumber:()=>rd,$ZodNumberFormat:()=>id,$ZodObject:()=>_d,$ZodObjectJIT:()=>vd,$ZodOptional:()=>Ad,$ZodPipe:()=>zd,$ZodPrefault:()=>Pd,$ZodPreprocess:()=>Vd,$ZodPromise:()=>Gd,$ZodReadonly:()=>Hd,$ZodRealError:()=>Ys,$ZodRecord:()=>wd,$ZodRegistry:()=>eh,$ZodSet:()=>Ed,$ZodString:()=>Au,$ZodStringFormat:()=>ju,$ZodSuccess:()=>Id,$ZodSymbol:()=>cd,$ZodTemplateLiteral:()=>Ud,$ZodTransform:()=>kd,$ZodTuple:()=>Cd,$ZodType:()=>U,$ZodULID:()=>Bu,$ZodURL:()=>Fu,$ZodUUID:()=>Nu,$ZodUndefined:()=>ld,$ZodUnion:()=>yd,$ZodUnknown:()=>fd,$ZodVoid:()=>md,$ZodXID:()=>Vu,$ZodXor:()=>bd,$brand:()=>jo,$constructor:()=>N,$input:()=>$m,$output:()=>Qm,Doc:()=>nu,JSONSchema:()=>uv,JSONSchemaGenerator:()=>cv,NEVER:()=>Ao,TimePrecision:()=>l_,_any:()=>Jh,_array:()=>Ag,_base64:()=>wh,_base64url:()=>Th,_bigint:()=>Vh,_boolean:()=>zh,_catch:()=>Yg,_check:()=>i_,_cidrv4:()=>Sh,_cidrv6:()=>Ch,_coercedBigint:()=>Hh,_coercedBoolean:()=>Bh,_coercedDate:()=>$h,_coercedNumber:()=>Nh,_coercedString:()=>ih,_cuid:()=>mh,_cuid2:()=>hh,_custom:()=>t_,_date:()=>Qh,_decode:()=>sc,_decodeAsync:()=>dc,_default:()=>Kg,_discriminatedUnion:()=>Ng,_e164:()=>Eh,_email:()=>ah,_emoji:()=>fh,_encode:()=>ac,_encodeAsync:()=>lc,_endsWith:()=>xg,_enum:()=>zg,_file:()=>Hg,_float32:()=>Fh,_float64:()=>Ih,_gt:()=>rg,_gte:()=>ig,_guid:()=>oh,_includes:()=>yg,_int:()=>Ph,_int32:()=>Lh,_int64:()=>Uh,_intersection:()=>Pg,_ipv4:()=>yh,_ipv6:()=>bh,_isoDate:()=>kh,_isoDateTime:()=>Oh,_isoDuration:()=>jh,_isoTime:()=>Ah,_jwt:()=>Dh,_ksuid:()=>vh,_lazy:()=>$g,_length:()=>hg,_literal:()=>Vg,_lowercase:()=>_g,_lt:()=>tg,_lte:()=>ng,_mac:()=>xh,_map:()=>Lg,_max:()=>ng,_maxLength:()=>pg,_maxSize:()=>ug,_mime:()=>Cg,_min:()=>ig,_minLength:()=>mg,_minSize:()=>dg,_multipleOf:()=>lg,_nan:()=>eg,_nanoid:()=>ph,_nativeEnum:()=>Bg,_negative:()=>og,_never:()=>Xh,_nonnegative:()=>cg,_nonoptional:()=>qg,_nonpositive:()=>sg,_normalize:()=>Tg,_null:()=>qh,_nullable:()=>Gg,_number:()=>Mh,_optional:()=>Wg,_overwrite:()=>wg,_parse:()=>Zs,_parseAsync:()=>$s,_pipe:()=>Xg,_positive:()=>ag,_promise:()=>e_,_property:()=>Sg,_readonly:()=>Zg,_record:()=>Ig,_refine:()=>n_,_regex:()=>gg,_safeDecode:()=>hc,_safeDecodeAsync:()=>yc,_safeEncode:()=>pc,_safeEncodeAsync:()=>_c,_safeParse:()=>tc,_safeParseAsync:()=>rc,_set:()=>Rg,_size:()=>fg,_slugify:()=>kg,_startsWith:()=>bg,_string:()=>rh,_stringFormat:()=>c_,_stringbool:()=>s_,_success:()=>Jg,_superRefine:()=>r_,_symbol:()=>Gh,_templateLiteral:()=>Qg,_toLowerCase:()=>Dg,_toUpperCase:()=>Og,_transform:()=>Ug,_trim:()=>Eg,_tuple:()=>Fg,_uint32:()=>Rh,_uint64:()=>Wh,_ulid:()=>gh,_undefined:()=>Kh,_union:()=>jg,_unknown:()=>Yh,_uppercase:()=>vg,_url:()=>dh,_uuid:()=>sh,_uuidv4:()=>ch,_uuidv6:()=>lh,_uuidv7:()=>uh,_void:()=>Zh,_xid:()=>_h,_xor:()=>Mg,clone:()=>cs,config:()=>Oo,createStandardJSONSchemaMethod:()=>__,createToJSONSchemaMethod:()=>g_,decode:()=>cc,decodeAsync:()=>fc,describe:()=>a_,encode:()=>oc,encodeAsync:()=>uc,extractDefs:()=>p_,finalize:()=>m_,flattenError:()=>Hs,formatError:()=>Us,globalConfig:()=>Po,globalRegistry:()=>th,initializeContext:()=>d_,isValidBase64:()=>ou,isValidBase64URL:()=>su,isValidJWT:()=>cu,locales:()=>Jm,meta:()=>o_,parse:()=>Qs,parseAsync:()=>ec,prettifyError:()=>Ks,process:()=>f_,regexes:()=>Sc,registry:()=>Xm,safeDecode:()=>gc,safeDecodeAsync:()=>bc,safeEncode:()=>mc,safeEncodeAsync:()=>vc,safeParse:()=>nc,safeParseAsync:()=>ic,toDotPath:()=>Gs,toJSONSchema:()=>y_,treeifyError:()=>Ws,util:()=>Io,version:()=>iu}),pv=o((()=>{Fo(),xc(),Xs(),Jd(),tu(),au(),z(),Nl(),Ym(),nh(),ru(),u_(),v_(),sv(),lv(),dv()}));xc();function mv(e){return!!e._zod}function hv(e,t){return mv(e)?nc(e,t):e.safeParse(t)}function gv(e){if(!e)return;let t;if(t=mv(e)?e._zod?.def?.shape:e.shape,t){if(typeof t==`function`)try{return t()}catch{return}return t}}function _v(e){if(mv(e)){let t=e._zod?.def;if(t){if(t.value!==void 0)return t.value;if(Array.isArray(t.values)&&t.values.length>0)return t.values[0]}}let t=e._def;if(t){if(t.value!==void 0)return t.value;if(Array.isArray(t.values)&&t.values.length>0)return t.values[0]}let n=e.value;if(n!==void 0)return n}var vv=c({endsWith:()=>xg,gt:()=>rg,gte:()=>ig,includes:()=>yg,length:()=>hg,lowercase:()=>_g,lt:()=>tg,lte:()=>ng,maxLength:()=>pg,maxSize:()=>ug,mime:()=>Cg,minLength:()=>mg,minSize:()=>dg,multipleOf:()=>lg,negative:()=>og,nonnegative:()=>cg,nonpositive:()=>sg,normalize:()=>Tg,overwrite:()=>wg,positive:()=>ag,property:()=>Sg,regex:()=>gg,size:()=>fg,slugify:()=>kg,startsWith:()=>bg,toLowerCase:()=>Dg,toUpperCase:()=>Og,trim:()=>Eg,uppercase:()=>vg}),yv=o((()=>{pv()})),bv=c({ZodISODate:()=>Ev,ZodISODateTime:()=>Tv,ZodISODuration:()=>Ov,ZodISOTime:()=>Dv,date:()=>Sv,datetime:()=>xv,duration:()=>wv,time:()=>Cv});function xv(e){return Oh(Tv,e)}function Sv(e){return kh(Ev,e)}function Cv(e){return Ah(Dv,e)}function wv(e){return jh(Ov,e)}var Tv,Ev,Dv,Ov,kv=o((()=>{pv(),Gx(),Tv=N(`ZodISODateTime`,(e,t)=>{Uu.init(e,t),kb.init(e,t)}),Ev=N(`ZodISODate`,(e,t)=>{Wu.init(e,t),kb.init(e,t)}),Dv=N(`ZodISOTime`,(e,t)=>{Gu.init(e,t),kb.init(e,t)}),Ov=N(`ZodISODuration`,(e,t)=>{Ku.init(e,t),kb.init(e,t)})})),Av,jv,Mv,Nv=o((()=>{pv(),z(),Av=(e,t)=>{Js.init(e,t),e.name=`ZodError`,Object.defineProperties(e,{format:{value:t=>Us(e,t)},flatten:{value:t=>Hs(e,t)},addIssue:{value:t=>{e.issues.push(t),e.message=JSON.stringify(e.issues,Uo,2)}},addIssues:{value:t=>{e.issues.push(...t),e.message=JSON.stringify(e.issues,Uo,2)}},isEmpty:{get(){return e.issues.length===0}}})},jv=N(`ZodError`,Av),Mv=N(`ZodError`,Av,{Parent:Error})})),Pv,Fv,Iv,Lv,Rv,zv,Bv,Vv,Hv,Uv,Wv,Gv,Kv=o((()=>{pv(),Nv(),Pv=Zs(Mv),Fv=$s(Mv),Iv=tc(Mv),Lv=rc(Mv),Rv=ac(Mv),zv=sc(Mv),Bv=lc(Mv),Vv=dc(Mv),Hv=pc(Mv),Uv=hc(Mv),Wv=_c(Mv),Gv=yc(Mv)})),qv=c({ZodAny:()=>ax,ZodArray:()=>ux,ZodBase64:()=>Kb,ZodBase64URL:()=>qb,ZodBigInt:()=>ex,ZodBigIntFormat:()=>tx,ZodBoolean:()=>$b,ZodCIDRv4:()=>Wb,ZodCIDRv6:()=>Gb,ZodCUID:()=>Ib,ZodCUID2:()=>Lb,ZodCatch:()=>jx,ZodCodec:()=>Px,ZodCustom:()=>Vx,ZodCustomStringFormat:()=>Xb,ZodDate:()=>lx,ZodDefault:()=>Dx,ZodDiscriminatedUnion:()=>mx,ZodE164:()=>Jb,ZodEmail:()=>Ab,ZodEmoji:()=>Pb,ZodEnum:()=>bx,ZodExactOptional:()=>Tx,ZodFile:()=>Sx,ZodFunction:()=>Bx,ZodGUID:()=>jb,ZodIPv4:()=>Vb,ZodIPv6:()=>Ub,ZodIntersection:()=>hx,ZodJWT:()=>Yb,ZodKSUID:()=>Bb,ZodLazy:()=>Rx,ZodLiteral:()=>xx,ZodMAC:()=>Hb,ZodMap:()=>vx,ZodNaN:()=>Mx,ZodNanoID:()=>Fb,ZodNever:()=>sx,ZodNonOptional:()=>kx,ZodNull:()=>ix,ZodNullable:()=>Ex,ZodNumber:()=>Zb,ZodNumberFormat:()=>Qb,ZodObject:()=>dx,ZodOptional:()=>wx,ZodPipe:()=>Nx,ZodPrefault:()=>Ox,ZodPreprocess:()=>Fx,ZodPromise:()=>zx,ZodReadonly:()=>Ix,ZodRecord:()=>_x,ZodSet:()=>yx,ZodString:()=>Ob,ZodStringFormat:()=>kb,ZodSuccess:()=>Ax,ZodSymbol:()=>nx,ZodTemplateLiteral:()=>Lx,ZodTransform:()=>Cx,ZodTuple:()=>gx,ZodType:()=>Q,ZodULID:()=>Rb,ZodURL:()=>Nb,ZodUUID:()=>Mb,ZodUndefined:()=>rx,ZodUnion:()=>fx,ZodUnknown:()=>ox,ZodVoid:()=>cx,ZodXID:()=>zb,ZodXor:()=>px,_ZodString:()=>Db,_default:()=>ab,_function:()=>vb,any:()=>Fy,array:()=>q,base64:()=>hy,base64url:()=>gy,bigint:()=>ky,boolean:()=>Oy,catch:()=>lb,check:()=>yb,cidrv4:()=>py,cidrv6:()=>my,codec:()=>fb,cuid:()=>ay,cuid2:()=>oy,custom:()=>bb,date:()=>zy,describe:()=>Hx,discriminatedUnion:()=>Wy,e164:()=>_y,email:()=>Yv,emoji:()=>ry,enum:()=>Zy,exactOptional:()=>nb,file:()=>$y,float32:()=>wy,float64:()=>Ty,function:()=>vb,guid:()=>Xv,hash:()=>Sy,hex:()=>xy,hostname:()=>by,httpUrl:()=>ny,instanceof:()=>Cb,int:()=>Cy,int32:()=>Ey,int64:()=>Ay,intersection:()=>Gy,invertCodec:()=>pb,ipv4:()=>uy,ipv6:()=>fy,json:()=>wb,jwt:()=>vy,keyof:()=>By,ksuid:()=>ly,lazy:()=>gb,literal:()=>Z,looseObject:()=>Hy,looseRecord:()=>Jy,mac:()=>dy,map:()=>Yy,meta:()=>Ux,nan:()=>ub,nanoid:()=>iy,nativeEnum:()=>Qy,never:()=>Ly,nonoptional:()=>sb,null:()=>Py,nullable:()=>rb,nullish:()=>ib,number:()=>K,object:()=>J,optional:()=>tb,partialRecord:()=>qy,pipe:()=>db,prefault:()=>ob,preprocess:()=>Tb,promise:()=>_b,readonly:()=>mb,record:()=>X,refine:()=>xb,set:()=>Xy,strictObject:()=>Vy,string:()=>G,stringFormat:()=>yy,stringbool:()=>Wx,success:()=>cb,superRefine:()=>Sb,symbol:()=>My,templateLiteral:()=>hb,transform:()=>eb,tuple:()=>Ky,uint32:()=>Dy,uint64:()=>jy,ulid:()=>sy,undefined:()=>Ny,union:()=>Y,unknown:()=>Iy,url:()=>ty,uuid:()=>Zv,uuidv4:()=>Qv,uuidv6:()=>$v,uuidv7:()=>ey,void:()=>Ry,xid:()=>cy,xor:()=>Uy});function Jv(e,t,n){let r=Object.getPrototypeOf(e),i=Eb.get(r);if(i||(i=new Set,Eb.set(r,i)),!i.has(t)){i.add(t);for(let e in n){let t=n[e];Object.defineProperty(r,e,{configurable:!0,enumerable:!1,get(){let n=t.bind(this);return Object.defineProperty(this,e,{configurable:!0,writable:!0,enumerable:!0,value:n}),n},set(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,enumerable:!0,value:t})}})}}}function G(e){return rh(Ob,e)}function Yv(e){return ah(Ab,e)}function Xv(e){return oh(jb,e)}function Zv(e){return sh(Mb,e)}function Qv(e){return ch(Mb,e)}function $v(e){return lh(Mb,e)}function ey(e){return uh(Mb,e)}function ty(e){return dh(Nb,e)}function ny(e){return dh(Nb,{protocol:il,hostname:rl,...I(e)})}function ry(e){return fh(Pb,e)}function iy(e){return ph(Fb,e)}function ay(e){return mh(Ib,e)}function oy(e){return hh(Lb,e)}function sy(e){return gh(Rb,e)}function cy(e){return _h(zb,e)}function ly(e){return vh(Bb,e)}function uy(e){return yh(Vb,e)}function dy(e){return xh(Hb,e)}function fy(e){return bh(Ub,e)}function py(e){return Sh(Wb,e)}function my(e){return Ch(Gb,e)}function hy(e){return wh(Kb,e)}function gy(e){return Th(qb,e)}function _y(e){return Eh(Jb,e)}function vy(e){return Dh(Yb,e)}function yy(e,t,n={}){return c_(Xb,e,t,n)}function by(e){return c_(Xb,`hostname`,nl,e)}function xy(e){return c_(Xb,`hex`,_l,e)}function Sy(e,t){let n=`${e}_${t?.enc??`hex`}`,r=Sc[n];if(!r)throw Error(`Unrecognized hash format: ${n}`);return c_(Xb,n,r,t)}function K(e){return Mh(Zb,e)}function Cy(e){return Ph(Qb,e)}function wy(e){return Fh(Qb,e)}function Ty(e){return Ih(Qb,e)}function Ey(e){return Lh(Qb,e)}function Dy(e){return Rh(Qb,e)}function Oy(e){return zh($b,e)}function ky(e){return Vh(ex,e)}function Ay(e){return Uh(tx,e)}function jy(e){return Wh(tx,e)}function My(e){return Gh(nx,e)}function Ny(e){return Kh(rx,e)}function Py(e){return qh(ix,e)}function Fy(){return Jh(ax)}function Iy(){return Yh(ox)}function Ly(e){return Xh(sx,e)}function Ry(e){return Zh(cx,e)}function zy(e){return Qh(lx,e)}function q(e,t){return Ag(ux,e,t)}function By(e){let t=e._zod.def.shape;return Zy(Object.keys(t))}function J(e,t){let n={type:`object`,shape:e??{},...I(t)};return new dx(n)}function Vy(e,t){return new dx({type:`object`,shape:e,catchall:Ly(),...I(t)})}function Hy(e,t){return new dx({type:`object`,shape:e,catchall:Iy(),...I(t)})}function Y(e,t){return new fx({type:`union`,options:e,...I(t)})}function Uy(e,t){return new px({type:`union`,options:e,inclusive:!1,...I(t)})}function Wy(e,t,n){return new mx({type:`union`,options:t,discriminator:e,...I(n)})}function Gy(e,t){return new hx({type:`intersection`,left:e,right:t})}function Ky(e,t,n){let r=t instanceof U;return new gx({type:`tuple`,items:e,rest:r?t:null,...I(r?n:t)})}function X(e,t,n){return!t||!t._zod?new _x({type:`record`,keyType:G(),valueType:e,...I(t)}):new _x({type:`record`,keyType:e,valueType:t,...I(n)})}function qy(e,t,n){let r=cs(e);return r._zod.values=void 0,new _x({type:`record`,keyType:r,valueType:t,...I(n)})}function Jy(e,t,n){return new _x({type:`record`,keyType:e,valueType:t,mode:`loose`,...I(n)})}function Yy(e,t,n){return new vx({type:`map`,keyType:e,valueType:t,...I(n)})}function Xy(e,t){return new yx({type:`set`,valueType:e,...I(t)})}function Zy(e,t){let n=Array.isArray(e)?Object.fromEntries(e.map(e=>[e,e])):e;return new bx({type:`enum`,entries:n,...I(t)})}function Qy(e,t){return new bx({type:`enum`,entries:e,...I(t)})}function Z(e,t){return new xx({type:`literal`,values:Array.isArray(e)?e:[e],...I(t)})}function $y(e){return Hg(Sx,e)}function eb(e){return new Cx({type:`transform`,transform:e})}function tb(e){return new wx({type:`optional`,innerType:e})}function nb(e){return new Tx({type:`optional`,innerType:e})}function rb(e){return new Ex({type:`nullable`,innerType:e})}function ib(e){return tb(rb(e))}function ab(e,t){return new Dx({type:`default`,innerType:e,get defaultValue(){return typeof t==`function`?t():as(t)}})}function ob(e,t){return new Ox({type:`prefault`,innerType:e,get defaultValue(){return typeof t==`function`?t():as(t)}})}function sb(e,t){return new kx({type:`nonoptional`,innerType:e,...I(t)})}function cb(e){return new Ax({type:`success`,innerType:e})}function lb(e,t){return new jx({type:`catch`,innerType:e,catchValue:typeof t==`function`?t:()=>t})}function ub(e){return eg(Mx,e)}function db(e,t){return new Nx({type:`pipe`,in:e,out:t})}function fb(e,t,n){return new Px({type:`pipe`,in:e,out:t,transform:n.decode,reverseTransform:n.encode})}function pb(e){let t=e._zod.def;return new Px({type:`pipe`,in:t.out,out:t.in,transform:t.reverseTransform,reverseTransform:t.transform})}function mb(e){return new Ix({type:`readonly`,innerType:e})}function hb(e,t){return new Lx({type:`template_literal`,parts:e,...I(t)})}function gb(e){return new Rx({type:`lazy`,getter:e})}function _b(e){return new zx({type:`promise`,innerType:e})}function vb(e){return new Bx({type:`function`,input:Array.isArray(e?.input)?Ky(e?.input):e?.input??q(Iy()),output:e?.output??Iy()})}function yb(e){let t=new Fl({check:`custom`});return t._zod.check=e,t}function bb(e,t){return t_(Vx,e??(()=>!0),t)}function xb(e,t={}){return n_(Vx,e,t)}function Sb(e,t){return r_(e,t)}function Cb(e,t={}){let n=new Vx({type:`custom`,check:`custom`,fn:t=>t instanceof e,abort:!0,...I(t)});return n._zod.bag.Class=e,n._zod.check=t=>{t.value instanceof e||t.issues.push({code:`invalid_type`,expected:e.name,input:t.value,inst:n,path:[...n._zod.def.path??[]]})},n}function wb(e){let t=gb(()=>Y([G(e),K(),Oy(),Py(),q(t),X(G(),t)]));return t}function Tb(e,t){return new Fx({type:`pipe`,in:eb(e),out:t})}var Eb,Q,Db,Ob,kb,Ab,jb,Mb,Nb,Pb,Fb,Ib,Lb,Rb,zb,Bb,Vb,Hb,Ub,Wb,Gb,Kb,qb,Jb,Yb,Xb,Zb,Qb,$b,ex,tx,nx,rx,ix,ax,ox,sx,cx,lx,ux,dx,fx,px,mx,hx,gx,_x,vx,yx,bx,xx,Sx,Cx,wx,Tx,Ex,Dx,Ox,kx,Ax,jx,Mx,Nx,Px,Fx,Ix,Lx,Rx,zx,Bx,Vx,Hx,Ux,Wx,Gx=o((()=>{pv(),sv(),v_(),yv(),kv(),Kv(),Eb=new WeakMap,Q=N(`ZodType`,(e,t)=>(U.init(e,t),Object.assign(e[`~standard`],{jsonSchema:{input:__(e,`input`),output:__(e,`output`)}}),e.toJSONSchema=g_(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.parse=(t,n)=>Pv(e,t,n,{callee:e.parse}),e.safeParse=(t,n)=>Iv(e,t,n),e.parseAsync=async(t,n)=>Fv(e,t,n,{callee:e.parseAsync}),e.safeParseAsync=async(t,n)=>Lv(e,t,n),e.spa=e.safeParseAsync,e.encode=(t,n)=>Rv(e,t,n),e.decode=(t,n)=>zv(e,t,n),e.encodeAsync=async(t,n)=>Bv(e,t,n),e.decodeAsync=async(t,n)=>Vv(e,t,n),e.safeEncode=(t,n)=>Hv(e,t,n),e.safeDecode=(t,n)=>Uv(e,t,n),e.safeEncodeAsync=async(t,n)=>Wv(e,t,n),e.safeDecodeAsync=async(t,n)=>Gv(e,t,n),Jv(e,`ZodType`,{check(...e){let t=this.def;return this.clone(Xo(t,{checks:[...t.checks??[],...e.map(e=>typeof e==`function`?{_zod:{check:e,def:{check:`custom`},onattach:[]}}:e)]}),{parent:!0})},with(...e){return this.check(...e)},clone(e,t){return cs(this,e,t)},brand(){return this},register(e,t){return e.add(this,t),this},refine(e,t){return this.check(xb(e,t))},superRefine(e,t){return this.check(Sb(e,t))},overwrite(e){return this.check(wg(e))},optional(){return tb(this)},exactOptional(){return nb(this)},nullable(){return rb(this)},nullish(){return tb(rb(this))},nonoptional(e){return sb(this,e)},array(){return q(this)},or(e){return Y([this,e])},and(e){return Gy(this,e)},transform(e){return db(this,eb(e))},default(e){return ab(this,e)},prefault(e){return ob(this,e)},catch(e){return lb(this,e)},pipe(e){return db(this,e)},readonly(){return mb(this)},describe(e){let t=this.clone();return th.add(t,{description:e}),t},meta(...e){if(e.length===0)return th.get(this);let t=this.clone();return th.add(t,e[0]),t},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(e){return e(this)}}),Object.defineProperty(e,"description",{get(){return th.get(e)?.description},configurable:!0}),e)),Db=N(`_ZodString`,(e,t)=>{Au.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>x_(e,t,n,r);let n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,Jv(e,`_ZodString`,{regex(...e){return this.check(gg(...e))},includes(...e){return this.check(yg(...e))},startsWith(...e){return this.check(bg(...e))},endsWith(...e){return this.check(xg(...e))},min(...e){return this.check(mg(...e))},max(...e){return this.check(pg(...e))},length(...e){return this.check(hg(...e))},nonempty(...e){return this.check(mg(1,...e))},lowercase(e){return this.check(_g(e))},uppercase(e){return this.check(vg(e))},trim(){return this.check(Eg())},normalize(...e){return this.check(Tg(...e))},toLowerCase(){return this.check(Dg())},toUpperCase(){return this.check(Og())},slugify(){return this.check(kg())}})}),Ob=N(`ZodString`,(e,t)=>{Au.init(e,t),Db.init(e,t),e.email=t=>e.check(ah(Ab,t)),e.url=t=>e.check(dh(Nb,t)),e.jwt=t=>e.check(Dh(Yb,t)),e.emoji=t=>e.check(fh(Pb,t)),e.guid=t=>e.check(oh(jb,t)),e.uuid=t=>e.check(sh(Mb,t)),e.uuidv4=t=>e.check(ch(Mb,t)),e.uuidv6=t=>e.check(lh(Mb,t)),e.uuidv7=t=>e.check(uh(Mb,t)),e.nanoid=t=>e.check(ph(Fb,t)),e.guid=t=>e.check(oh(jb,t)),e.cuid=t=>e.check(mh(Ib,t)),e.cuid2=t=>e.check(hh(Lb,t)),e.ulid=t=>e.check(gh(Rb,t)),e.base64=t=>e.check(wh(Kb,t)),e.base64url=t=>e.check(Th(qb,t)),e.xid=t=>e.check(_h(zb,t)),e.ksuid=t=>e.check(vh(Bb,t)),e.ipv4=t=>e.check(yh(Vb,t)),e.ipv6=t=>e.check(bh(Ub,t)),e.cidrv4=t=>e.check(Sh(Wb,t)),e.cidrv6=t=>e.check(Ch(Gb,t)),e.e164=t=>e.check(Eh(Jb,t)),e.datetime=t=>e.check(xv(t)),e.date=t=>e.check(Sv(t)),e.time=t=>e.check(Cv(t)),e.duration=t=>e.check(wv(t))}),kb=N(`ZodStringFormat`,(e,t)=>{ju.init(e,t),Db.init(e,t)}),Ab=N(`ZodEmail`,(e,t)=>{Pu.init(e,t),kb.init(e,t)}),jb=N(`ZodGUID`,(e,t)=>{Mu.init(e,t),kb.init(e,t)}),Mb=N(`ZodUUID`,(e,t)=>{Nu.init(e,t),kb.init(e,t)}),Nb=N(`ZodURL`,(e,t)=>{Fu.init(e,t),kb.init(e,t)}),Pb=N(`ZodEmoji`,(e,t)=>{Iu.init(e,t),kb.init(e,t)}),Fb=N(`ZodNanoID`,(e,t)=>{Lu.init(e,t),kb.init(e,t)}),Ib=N(`ZodCUID`,(e,t)=>{Ru.init(e,t),kb.init(e,t)}),Lb=N(`ZodCUID2`,(e,t)=>{zu.init(e,t),kb.init(e,t)}),Rb=N(`ZodULID`,(e,t)=>{Bu.init(e,t),kb.init(e,t)}),zb=N(`ZodXID`,(e,t)=>{Vu.init(e,t),kb.init(e,t)}),Bb=N(`ZodKSUID`,(e,t)=>{Hu.init(e,t),kb.init(e,t)}),Vb=N(`ZodIPv4`,(e,t)=>{qu.init(e,t),kb.init(e,t)}),Hb=N(`ZodMAC`,(e,t)=>{Yu.init(e,t),kb.init(e,t)}),Ub=N(`ZodIPv6`,(e,t)=>{Ju.init(e,t),kb.init(e,t)}),Wb=N(`ZodCIDRv4`,(e,t)=>{Xu.init(e,t),kb.init(e,t)}),Gb=N(`ZodCIDRv6`,(e,t)=>{Zu.init(e,t),kb.init(e,t)}),Kb=N(`ZodBase64`,(e,t)=>{Qu.init(e,t),kb.init(e,t)}),qb=N(`ZodBase64URL`,(e,t)=>{$u.init(e,t),kb.init(e,t)}),Jb=N(`ZodE164`,(e,t)=>{ed.init(e,t),kb.init(e,t)}),Yb=N(`ZodJWT`,(e,t)=>{td.init(e,t),kb.init(e,t)}),Xb=N(`ZodCustomStringFormat`,(e,t)=>{nd.init(e,t),kb.init(e,t)}),Zb=N(`ZodNumber`,(e,t)=>{rd.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>S_(e,t,n,r),Jv(e,`ZodNumber`,{gt(e,t){return this.check(rg(e,t))},gte(e,t){return this.check(ig(e,t))},min(e,t){return this.check(ig(e,t))},lt(e,t){return this.check(tg(e,t))},lte(e,t){return this.check(ng(e,t))},max(e,t){return this.check(ng(e,t))},int(e){return this.check(Cy(e))},safe(e){return this.check(Cy(e))},positive(e){return this.check(rg(0,e))},nonnegative(e){return this.check(ig(0,e))},negative(e){return this.check(tg(0,e))},nonpositive(e){return this.check(ng(0,e))},multipleOf(e,t){return this.check(lg(e,t))},step(e,t){return this.check(lg(e,t))},finite(){return this}});let n=e._zod.bag;e.minValue=Math.max(n.minimum??-1/0,n.exclusiveMinimum??-1/0)??null,e.maxValue=Math.min(n.maximum??1/0,n.exclusiveMaximum??1/0)??null,e.isInt=(n.format??``).includes(`int`)||Number.isSafeInteger(n.multipleOf??.5),e.isFinite=!0,e.format=n.format??null}),Qb=N(`ZodNumberFormat`,(e,t)=>{id.init(e,t),Zb.init(e,t)}),$b=N(`ZodBoolean`,(e,t)=>{ad.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>C_(e,t,n,r)}),ex=N(`ZodBigInt`,(e,t)=>{od.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>w_(e,t,n,r),e.gte=(t,n)=>e.check(ig(t,n)),e.min=(t,n)=>e.check(ig(t,n)),e.gt=(t,n)=>e.check(rg(t,n)),e.gte=(t,n)=>e.check(ig(t,n)),e.min=(t,n)=>e.check(ig(t,n)),e.lt=(t,n)=>e.check(tg(t,n)),e.lte=(t,n)=>e.check(ng(t,n)),e.max=(t,n)=>e.check(ng(t,n)),e.positive=t=>e.check(rg(BigInt(0),t)),e.negative=t=>e.check(tg(BigInt(0),t)),e.nonpositive=t=>e.check(ng(BigInt(0),t)),e.nonnegative=t=>e.check(ig(BigInt(0),t)),e.multipleOf=(t,n)=>e.check(lg(t,n));let n=e._zod.bag;e.minValue=n.minimum??null,e.maxValue=n.maximum??null,e.format=n.format??null}),tx=N(`ZodBigIntFormat`,(e,t)=>{sd.init(e,t),ex.init(e,t)}),nx=N(`ZodSymbol`,(e,t)=>{cd.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>T_(e,t,n,r)}),rx=N(`ZodUndefined`,(e,t)=>{ld.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>D_(e,t,n,r)}),ix=N(`ZodNull`,(e,t)=>{ud.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>E_(e,t,n,r)}),ax=N(`ZodAny`,(e,t)=>{dd.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>A_(e,t,n,r)}),ox=N(`ZodUnknown`,(e,t)=>{fd.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>j_(e,t,n,r)}),sx=N(`ZodNever`,(e,t)=>{pd.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>k_(e,t,n,r)}),cx=N(`ZodVoid`,(e,t)=>{md.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>O_(e,t,n,r)}),lx=N(`ZodDate`,(e,t)=>{hd.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>M_(e,t,n,r),e.min=(t,n)=>e.check(ig(t,n)),e.max=(t,n)=>e.check(ng(t,n));let n=e._zod.bag;e.minDate=n.minimum?new Date(n.minimum):null,e.maxDate=n.maximum?new Date(n.maximum):null}),ux=N(`ZodArray`,(e,t)=>{gd.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>W_(e,t,n,r),e.element=t.element,Jv(e,`ZodArray`,{min(e,t){return this.check(mg(e,t))},nonempty(e){return this.check(mg(1,e))},max(e,t){return this.check(pg(e,t))},length(e,t){return this.check(hg(e,t))},unwrap(){return this.element}})}),dx=N(`ZodObject`,(e,t)=>{vd.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>G_(e,t,n,r),F(e,`shape`,()=>t.shape),Jv(e,`ZodObject`,{keyof(){return Zy(Object.keys(this._zod.def.shape))},catchall(e){return this.clone({...this._zod.def,catchall:e})},passthrough(){return this.clone({...this._zod.def,catchall:Iy()})},loose(){return this.clone({...this._zod.def,catchall:Iy()})},strict(){return this.clone({...this._zod.def,catchall:Ly()})},strip(){return this.clone({...this._zod.def,catchall:void 0})},extend(e){return ps(this,e)},safeExtend(e){return ms(this,e)},merge(e){return hs(this,e)},pick(e){return ds(this,e)},omit(e){return fs(this,e)},partial(...e){return gs(wx,this,e[0])},required(...e){return _s(kx,this,e[0])}})}),fx=N(`ZodUnion`,(e,t)=>{yd.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>K_(e,t,n,r),e.options=t.options}),px=N(`ZodXor`,(e,t)=>{fx.init(e,t),bd.init(e,t),e._zod.processJSONSchema=(t,n,r)=>K_(e,t,n,r),e.options=t.options}),mx=N(`ZodDiscriminatedUnion`,(e,t)=>{fx.init(e,t),xd.init(e,t)}),hx=N(`ZodIntersection`,(e,t)=>{Sd.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>q_(e,t,n,r)}),gx=N(`ZodTuple`,(e,t)=>{Cd.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>J_(e,t,n,r),e.rest=t=>e.clone({...e._zod.def,rest:t})}),_x=N(`ZodRecord`,(e,t)=>{wd.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Y_(e,t,n,r),e.keyType=t.keyType,e.valueType=t.valueType}),vx=N(`ZodMap`,(e,t)=>{Td.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>H_(e,t,n,r),e.keyType=t.keyType,e.valueType=t.valueType,e.min=(...t)=>e.check(dg(...t)),e.nonempty=t=>e.check(dg(1,t)),e.max=(...t)=>e.check(ug(...t)),e.size=(...t)=>e.check(fg(...t))}),yx=N(`ZodSet`,(e,t)=>{Ed.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>U_(e,t,n,r),e.min=(...t)=>e.check(dg(...t)),e.nonempty=t=>e.check(dg(1,t)),e.max=(...t)=>e.check(ug(...t)),e.size=(...t)=>e.check(fg(...t))}),bx=N(`ZodEnum`,(e,t)=>{Dd.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>N_(e,t,n,r),e.enum=t.entries,e.options=Object.values(t.entries);let n=new Set(Object.keys(t.entries));e.extract=(e,r)=>{let i={};for(let r of e)if(n.has(r))i[r]=t.entries[r];else throw Error(`Key ${r} not found in enum`);return new bx({...t,checks:[],...I(r),entries:i})},e.exclude=(e,r)=>{let i={...t.entries};for(let t of e)if(n.has(t))delete i[t];else throw Error(`Key ${t} not found in enum`);return new bx({...t,checks:[],...I(r),entries:i})}}),xx=N(`ZodLiteral`,(e,t)=>{W.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>P_(e,t,n,r),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if(t.values.length>1)throw Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})}),Sx=N(`ZodFile`,(e,t)=>{Od.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>L_(e,t,n,r),e.min=(t,n)=>e.check(dg(t,n)),e.max=(t,n)=>e.check(ug(t,n)),e.mime=(t,n)=>e.check(Cg(Array.isArray(t)?t:[t],n))}),Cx=N(`ZodTransform`,(e,t)=>{kd.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>V_(e,t,n,r),e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new No(e.constructor.name);n.addIssue=r=>{if(typeof r==`string`)n.issues.push(Ts(r,n.value,t));else{let t=r;t.fatal&&(t.continue=!1),t.code??=`custom`,t.input??=n.value,t.inst??=e,n.issues.push(Ts(t))}};let i=t.transform(n.value,n);return i instanceof Promise?i.then(e=>(n.value=e,n.fallback=!0,n)):(n.value=i,n.fallback=!0,n)}}),wx=N(`ZodOptional`,(e,t)=>{Ad.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>iv(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),Tx=N(`ZodExactOptional`,(e,t)=>{jd.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>iv(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),Ex=N(`ZodNullable`,(e,t)=>{Md.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>X_(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),Dx=N(`ZodDefault`,(e,t)=>{Nd.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Q_(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap}),Ox=N(`ZodPrefault`,(e,t)=>{Pd.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>$_(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),kx=N(`ZodNonOptional`,(e,t)=>{Fd.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Z_(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),Ax=N(`ZodSuccess`,(e,t)=>{Id.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>R_(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),jx=N(`ZodCatch`,(e,t)=>{Ld.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>ev(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap}),Mx=N(`ZodNaN`,(e,t)=>{Rd.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>F_(e,t,n,r)}),Nx=N(`ZodPipe`,(e,t)=>{zd.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>tv(e,t,n,r),e.in=t.in,e.out=t.out}),Px=N(`ZodCodec`,(e,t)=>{Nx.init(e,t),Bd.init(e,t)}),Fx=N(`ZodPreprocess`,(e,t)=>{Nx.init(e,t),Vd.init(e,t)}),Ix=N(`ZodReadonly`,(e,t)=>{Hd.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>nv(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),Lx=N(`ZodTemplateLiteral`,(e,t)=>{Ud.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>I_(e,t,n,r)}),Rx=N(`ZodLazy`,(e,t)=>{Kd.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>av(e,t,n,r),e.unwrap=()=>e._zod.def.getter()}),zx=N(`ZodPromise`,(e,t)=>{Gd.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>rv(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),Bx=N(`ZodFunction`,(e,t)=>{Wd.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>B_(e,t,n,r)}),Vx=N(`ZodCustom`,(e,t)=>{qd.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>z_(e,t,n,r)}),Hx=a_,Ux=o_,Wx=(...e)=>s_({Codec:Px,Boolean:$b,String:Ob},...e)}));function Kx(e){Oo({customError:e})}function qx(){return Oo().customError}var Jx,Yx,Xx=o((()=>{pv(),Jx={invalid_type:`invalid_type`,too_big:`too_big`,too_small:`too_small`,invalid_format:`invalid_format`,not_multiple_of:`not_multiple_of`,unrecognized_keys:`unrecognized_keys`,invalid_union:`invalid_union`,invalid_key:`invalid_key`,invalid_element:`invalid_element`,invalid_value:`invalid_value`,custom:`custom`},Yx||={}}));function Zx(e,t){let n=e.$schema;return n===`https://json-schema.org/draft/2020-12/schema`?`draft-2020-12`:n===`http://json-schema.org/draft-07/schema#`?`draft-7`:n===`http://json-schema.org/draft-04/schema#`?`draft-4`:t??`draft-2020-12`}function Qx(e,t){if(!e.startsWith(`#`))throw Error(`External $ref is not supported, only local refs (#/...) are allowed`);let n=e.slice(1).split(`/`).filter(Boolean);if(n.length===0)return t.rootSchema;let r=t.version===`draft-2020-12`?`$defs`:`definitions`;if(n[0]===r){let r=n[1];if(!r||!t.defs[r])throw Error(`Reference not found: ${e}`);return t.defs[r]}throw Error(`Reference not found: ${e}`)}function $x(e,t){if(e.not!==void 0){if(typeof e.not==`object`&&Object.keys(e.not).length===0)return $.never();throw Error(`not is not supported in Zod (except { not: {} } for never)`)}if(e.unevaluatedItems!==void 0)throw Error(`unevaluatedItems is not supported`);if(e.unevaluatedProperties!==void 0)throw Error(`unevaluatedProperties is not supported`);if(e.if!==void 0||e.then!==void 0||e.else!==void 0)throw Error(`Conditional schemas (if/then/else) are not supported`);if(e.dependentSchemas!==void 0||e.dependentRequired!==void 0)throw Error(`dependentSchemas and dependentRequired are not supported`);if(e.$ref){let n=e.$ref;if(t.refs.has(n))return t.refs.get(n);if(t.processing.has(n))return $.lazy(()=>{if(!t.refs.has(n))throw Error(`Circular reference not resolved: ${n}`);return t.refs.get(n)});t.processing.add(n);let r=eS(Qx(n,t),t);return t.refs.set(n,r),t.processing.delete(n),r}if(e.enum!==void 0){let n=e.enum;if(t.version===`openapi-3.0`&&e.nullable===!0&&n.length===1&&n[0]===null)return $.null();if(n.length===0)return $.never();if(n.length===1)return $.literal(n[0]);if(n.every(e=>typeof e==`string`))return $.enum(n);let r=n.map(e=>$.literal(e));return r.length<2?r[0]:$.union([r[0],r[1],...r.slice(2)])}if(e.const!==void 0)return $.literal(e.const);let n=e.type;if(Array.isArray(n)){let r=n.map(n=>$x({...e,type:n},t));return r.length===0?$.never():r.length===1?r[0]:$.union(r)}if(!n)return $.any();let r;switch(n){case`string`:{let t=$.string();if(e.format){let n=e.format;n===`email`?t=t.check($.email()):n===`uri`||n===`uri-reference`?t=t.check($.url()):n===`uuid`||n===`guid`?t=t.check($.uuid()):n===`date-time`?t=t.check($.iso.datetime()):n===`date`?t=t.check($.iso.date()):n===`time`?t=t.check($.iso.time()):n===`duration`?t=t.check($.iso.duration()):n===`ipv4`?t=t.check($.ipv4()):n===`ipv6`?t=t.check($.ipv6()):n===`mac`?t=t.check($.mac()):n===`cidr`?t=t.check($.cidrv4()):n===`cidr-v6`?t=t.check($.cidrv6()):n===`base64`?t=t.check($.base64()):n===`base64url`?t=t.check($.base64url()):n===`e164`?t=t.check($.e164()):n===`jwt`?t=t.check($.jwt()):n===`emoji`?t=t.check($.emoji()):n===`nanoid`?t=t.check($.nanoid()):n===`cuid`?t=t.check($.cuid()):n===`cuid2`?t=t.check($.cuid2()):n===`ulid`?t=t.check($.ulid()):n===`xid`?t=t.check($.xid()):n===`ksuid`&&(t=t.check($.ksuid()))}typeof e.minLength==`number`&&(t=t.min(e.minLength)),typeof e.maxLength==`number`&&(t=t.max(e.maxLength)),e.pattern&&(t=t.regex(new RegExp(e.pattern))),r=t;break}case`number`:case`integer`:{let t=n===`integer`?$.number().int():$.number();typeof e.minimum==`number`&&(t=t.min(e.minimum)),typeof e.maximum==`number`&&(t=t.max(e.maximum)),typeof e.exclusiveMinimum==`number`?t=t.gt(e.exclusiveMinimum):e.exclusiveMinimum===!0&&typeof e.minimum==`number`&&(t=t.gt(e.minimum)),typeof e.exclusiveMaximum==`number`?t=t.lt(e.exclusiveMaximum):e.exclusiveMaximum===!0&&typeof e.maximum==`number`&&(t=t.lt(e.maximum)),typeof e.multipleOf==`number`&&(t=t.multipleOf(e.multipleOf)),r=t;break}case`boolean`:r=$.boolean();break;case`null`:r=$.null();break;case`object`:{let n={},i=e.properties||{},a=new Set(e.required||[]);for(let[e,r]of Object.entries(i)){let i=eS(r,t);n[e]=a.has(e)?i:i.optional()}if(e.propertyNames){let i=eS(e.propertyNames,t),a=e.additionalProperties&&typeof e.additionalProperties==`object`?eS(e.additionalProperties,t):$.any();if(Object.keys(n).length===0){r=$.record(i,a);break}let o=$.object(n).passthrough(),s=$.looseRecord(i,a);r=$.intersection(o,s);break}if(e.patternProperties){let i=e.patternProperties,a=Object.keys(i),o=[];for(let e of a){let n=eS(i[e],t),r=$.string().regex(new RegExp(e));o.push($.looseRecord(r,n))}let s=[];if(Object.keys(n).length>0&&s.push($.object(n).passthrough()),s.push(...o),s.length===0)r=$.object({}).passthrough();else if(s.length===1)r=s[0];else{let e=$.intersection(s[0],s[1]);for(let t=2;teS(e,t)),o=i&&typeof i==`object`&&!Array.isArray(i)?eS(i,t):void 0;r=o?$.tuple(a).rest(o):$.tuple(a),typeof e.minItems==`number`&&(r=r.check($.minLength(e.minItems))),typeof e.maxItems==`number`&&(r=r.check($.maxLength(e.maxItems)))}else if(Array.isArray(i)){let n=i.map(e=>eS(e,t)),a=e.additionalItems&&typeof e.additionalItems==`object`?eS(e.additionalItems,t):void 0;r=a?$.tuple(n).rest(a):$.tuple(n),typeof e.minItems==`number`&&(r=r.check($.minLength(e.minItems))),typeof e.maxItems==`number`&&(r=r.check($.maxLength(e.maxItems)))}else if(i!==void 0){let n=eS(i,t),a=$.array(n);typeof e.minItems==`number`&&(a=a.min(e.minItems)),typeof e.maxItems==`number`&&(a=a.max(e.maxItems)),r=a}else r=$.array($.any());break}default:throw Error(`Unsupported type: ${n}`)}return r}function eS(e,t){if(typeof e==`boolean`)return e?$.any():$.never();let n=$x(e,t),r=e.type||e.enum!==void 0||e.const!==void 0;if(e.anyOf&&Array.isArray(e.anyOf)){let i=e.anyOf.map(e=>eS(e,t)),a=$.union(i);n=r?$.intersection(n,a):a}if(e.oneOf&&Array.isArray(e.oneOf)){let i=e.oneOf.map(e=>eS(e,t)),a=$.xor(i);n=r?$.intersection(n,a):a}if(e.allOf&&Array.isArray(e.allOf))if(e.allOf.length===0)n=r?n:$.any();else{let i=r?n:eS(e.allOf[0],t),a=+!r;for(let n=a;n0&&t.registry.add(n,i),e.description&&(n=n.describe(e.description)),n}function tS(e,t){if(typeof e==`boolean`)return e?$.any():$.never();let n;try{n=JSON.parse(JSON.stringify(e))}catch{throw Error(`fromJSONSchema input is not valid JSON (possibly cyclic); use $defs/$ref for recursive schemas`)}let r={version:Zx(n,t?.defaultTarget),defs:n.$defs||n.definitions||{},refs:new Map,processing:new Set,rootSchema:n,registry:t?.registry??th};return eS(n,r)}var $,nS,rS=o((()=>{nh(),yv(),kv(),Gx(),$={...qv,...vv,iso:bv},nS=new Set(`$schema.$ref.$defs.definitions.$id.id.$comment.$anchor.$vocabulary.$dynamicRef.$dynamicAnchor.type.enum.const.anyOf.oneOf.allOf.not.properties.required.additionalProperties.patternProperties.propertyNames.minProperties.maxProperties.items.prefixItems.additionalItems.minItems.maxItems.uniqueItems.contains.minContains.maxContains.minLength.maxLength.pattern.format.minimum.maximum.exclusiveMinimum.exclusiveMaximum.multipleOf.description.default.contentEncoding.contentMediaType.contentSchema.unevaluatedItems.unevaluatedProperties.if.then.else.dependentSchemas.dependentRequired.nullable.readOnly`.split(`.`))})),iS=c({bigint:()=>cS,boolean:()=>sS,date:()=>lS,number:()=>oS,string:()=>aS});function aS(e){return ih(Ob,e)}function oS(e){return Nh(Zb,e)}function sS(e){return Bh($b,e)}function cS(e){return Hh(ex,e)}function lS(e){return $h(lx,e)}var uS=o((()=>{pv(),Gx()})),dS=c({$brand:()=>jo,$input:()=>$m,$output:()=>Qm,NEVER:()=>Ao,TimePrecision:()=>l_,ZodAny:()=>ax,ZodArray:()=>ux,ZodBase64:()=>Kb,ZodBase64URL:()=>qb,ZodBigInt:()=>ex,ZodBigIntFormat:()=>tx,ZodBoolean:()=>$b,ZodCIDRv4:()=>Wb,ZodCIDRv6:()=>Gb,ZodCUID:()=>Ib,ZodCUID2:()=>Lb,ZodCatch:()=>jx,ZodCodec:()=>Px,ZodCustom:()=>Vx,ZodCustomStringFormat:()=>Xb,ZodDate:()=>lx,ZodDefault:()=>Dx,ZodDiscriminatedUnion:()=>mx,ZodE164:()=>Jb,ZodEmail:()=>Ab,ZodEmoji:()=>Pb,ZodEnum:()=>bx,ZodError:()=>jv,ZodExactOptional:()=>Tx,ZodFile:()=>Sx,ZodFirstPartyTypeKind:()=>Yx,ZodFunction:()=>Bx,ZodGUID:()=>jb,ZodIPv4:()=>Vb,ZodIPv6:()=>Ub,ZodISODate:()=>Ev,ZodISODateTime:()=>Tv,ZodISODuration:()=>Ov,ZodISOTime:()=>Dv,ZodIntersection:()=>hx,ZodIssueCode:()=>Jx,ZodJWT:()=>Yb,ZodKSUID:()=>Bb,ZodLazy:()=>Rx,ZodLiteral:()=>xx,ZodMAC:()=>Hb,ZodMap:()=>vx,ZodNaN:()=>Mx,ZodNanoID:()=>Fb,ZodNever:()=>sx,ZodNonOptional:()=>kx,ZodNull:()=>ix,ZodNullable:()=>Ex,ZodNumber:()=>Zb,ZodNumberFormat:()=>Qb,ZodObject:()=>dx,ZodOptional:()=>wx,ZodPipe:()=>Nx,ZodPrefault:()=>Ox,ZodPreprocess:()=>Fx,ZodPromise:()=>zx,ZodReadonly:()=>Ix,ZodRealError:()=>Mv,ZodRecord:()=>_x,ZodSet:()=>yx,ZodString:()=>Ob,ZodStringFormat:()=>kb,ZodSuccess:()=>Ax,ZodSymbol:()=>nx,ZodTemplateLiteral:()=>Lx,ZodTransform:()=>Cx,ZodTuple:()=>gx,ZodType:()=>Q,ZodULID:()=>Rb,ZodURL:()=>Nb,ZodUUID:()=>Mb,ZodUndefined:()=>rx,ZodUnion:()=>fx,ZodUnknown:()=>ox,ZodVoid:()=>cx,ZodXID:()=>zb,ZodXor:()=>px,_ZodString:()=>Db,_default:()=>ab,_function:()=>vb,any:()=>Fy,array:()=>q,base64:()=>hy,base64url:()=>gy,bigint:()=>ky,boolean:()=>Oy,catch:()=>lb,check:()=>yb,cidrv4:()=>py,cidrv6:()=>my,clone:()=>cs,codec:()=>fb,coerce:()=>iS,config:()=>Oo,core:()=>fv,cuid:()=>ay,cuid2:()=>oy,custom:()=>bb,date:()=>zy,decode:()=>zv,decodeAsync:()=>Vv,describe:()=>Hx,discriminatedUnion:()=>Wy,e164:()=>_y,email:()=>Yv,emoji:()=>ry,encode:()=>Rv,encodeAsync:()=>Bv,endsWith:()=>xg,enum:()=>Zy,exactOptional:()=>nb,file:()=>$y,flattenError:()=>Hs,float32:()=>wy,float64:()=>Ty,formatError:()=>Us,fromJSONSchema:()=>tS,function:()=>vb,getErrorMap:()=>qx,globalRegistry:()=>th,gt:()=>rg,gte:()=>ig,guid:()=>Xv,hash:()=>Sy,hex:()=>xy,hostname:()=>by,httpUrl:()=>ny,includes:()=>yg,instanceof:()=>Cb,int:()=>Cy,int32:()=>Ey,int64:()=>Ay,intersection:()=>Gy,invertCodec:()=>pb,ipv4:()=>uy,ipv6:()=>fy,iso:()=>bv,json:()=>wb,jwt:()=>vy,keyof:()=>By,ksuid:()=>ly,lazy:()=>gb,length:()=>hg,literal:()=>Z,locales:()=>Jm,looseObject:()=>Hy,looseRecord:()=>Jy,lowercase:()=>_g,lt:()=>tg,lte:()=>ng,mac:()=>dy,map:()=>Yy,maxLength:()=>pg,maxSize:()=>ug,meta:()=>Ux,mime:()=>Cg,minLength:()=>mg,minSize:()=>dg,multipleOf:()=>lg,nan:()=>ub,nanoid:()=>iy,nativeEnum:()=>Qy,negative:()=>og,never:()=>Ly,nonnegative:()=>cg,nonoptional:()=>sb,nonpositive:()=>sg,normalize:()=>Tg,null:()=>Py,nullable:()=>rb,nullish:()=>ib,number:()=>K,object:()=>J,optional:()=>tb,overwrite:()=>wg,parse:()=>Pv,parseAsync:()=>Fv,partialRecord:()=>qy,pipe:()=>db,positive:()=>ag,prefault:()=>ob,preprocess:()=>Tb,prettifyError:()=>Ks,promise:()=>_b,property:()=>Sg,readonly:()=>mb,record:()=>X,refine:()=>xb,regex:()=>gg,regexes:()=>Sc,registry:()=>Xm,safeDecode:()=>Uv,safeDecodeAsync:()=>Gv,safeEncode:()=>Hv,safeEncodeAsync:()=>Wv,safeParse:()=>Iv,safeParseAsync:()=>Lv,set:()=>Xy,setErrorMap:()=>Kx,size:()=>fg,slugify:()=>kg,startsWith:()=>bg,strictObject:()=>Vy,string:()=>G,stringFormat:()=>yy,stringbool:()=>Wx,success:()=>cb,superRefine:()=>Sb,symbol:()=>My,templateLiteral:()=>hb,toJSONSchema:()=>y_,toLowerCase:()=>Dg,toUpperCase:()=>Og,transform:()=>eb,treeifyError:()=>Ws,trim:()=>Eg,tuple:()=>Ky,uint32:()=>Dy,uint64:()=>jy,ulid:()=>sy,undefined:()=>Ny,union:()=>Y,unknown:()=>Iy,uppercase:()=>vg,url:()=>ty,util:()=>Io,uuid:()=>Zv,uuidv4:()=>Qv,uuidv6:()=>$v,uuidv7:()=>ey,void:()=>Ry,xid:()=>cy,xor:()=>Uy}),fS=o((()=>{pv(),Gx(),yv(),Nv(),Kv(),Xx(),Ef(),sv(),rS(),Ym(),kv(),uS(),Oo(wf())})),pS,mS=o((()=>{fS(),fS(),pS=dS})),hS=c({$brand:()=>jo,$input:()=>$m,$output:()=>Qm,NEVER:()=>Ao,TimePrecision:()=>l_,ZodAny:()=>ax,ZodArray:()=>ux,ZodBase64:()=>Kb,ZodBase64URL:()=>qb,ZodBigInt:()=>ex,ZodBigIntFormat:()=>tx,ZodBoolean:()=>$b,ZodCIDRv4:()=>Wb,ZodCIDRv6:()=>Gb,ZodCUID:()=>Ib,ZodCUID2:()=>Lb,ZodCatch:()=>jx,ZodCodec:()=>Px,ZodCustom:()=>Vx,ZodCustomStringFormat:()=>Xb,ZodDate:()=>lx,ZodDefault:()=>Dx,ZodDiscriminatedUnion:()=>mx,ZodE164:()=>Jb,ZodEmail:()=>Ab,ZodEmoji:()=>Pb,ZodEnum:()=>bx,ZodError:()=>jv,ZodExactOptional:()=>Tx,ZodFile:()=>Sx,ZodFirstPartyTypeKind:()=>Yx,ZodFunction:()=>Bx,ZodGUID:()=>jb,ZodIPv4:()=>Vb,ZodIPv6:()=>Ub,ZodISODate:()=>Ev,ZodISODateTime:()=>Tv,ZodISODuration:()=>Ov,ZodISOTime:()=>Dv,ZodIntersection:()=>hx,ZodIssueCode:()=>Jx,ZodJWT:()=>Yb,ZodKSUID:()=>Bb,ZodLazy:()=>Rx,ZodLiteral:()=>xx,ZodMAC:()=>Hb,ZodMap:()=>vx,ZodNaN:()=>Mx,ZodNanoID:()=>Fb,ZodNever:()=>sx,ZodNonOptional:()=>kx,ZodNull:()=>ix,ZodNullable:()=>Ex,ZodNumber:()=>Zb,ZodNumberFormat:()=>Qb,ZodObject:()=>dx,ZodOptional:()=>wx,ZodPipe:()=>Nx,ZodPrefault:()=>Ox,ZodPreprocess:()=>Fx,ZodPromise:()=>zx,ZodReadonly:()=>Ix,ZodRealError:()=>Mv,ZodRecord:()=>_x,ZodSet:()=>yx,ZodString:()=>Ob,ZodStringFormat:()=>kb,ZodSuccess:()=>Ax,ZodSymbol:()=>nx,ZodTemplateLiteral:()=>Lx,ZodTransform:()=>Cx,ZodTuple:()=>gx,ZodType:()=>Q,ZodULID:()=>Rb,ZodURL:()=>Nb,ZodUUID:()=>Mb,ZodUndefined:()=>rx,ZodUnion:()=>fx,ZodUnknown:()=>ox,ZodVoid:()=>cx,ZodXID:()=>zb,ZodXor:()=>px,_ZodString:()=>Db,_default:()=>ab,_function:()=>vb,any:()=>Fy,array:()=>q,base64:()=>hy,base64url:()=>gy,bigint:()=>ky,boolean:()=>Oy,catch:()=>lb,check:()=>yb,cidrv4:()=>py,cidrv6:()=>my,clone:()=>cs,codec:()=>fb,coerce:()=>iS,config:()=>Oo,core:()=>fv,cuid:()=>ay,cuid2:()=>oy,custom:()=>bb,date:()=>zy,decode:()=>zv,decodeAsync:()=>Vv,default:()=>gS,describe:()=>Hx,discriminatedUnion:()=>Wy,e164:()=>_y,email:()=>Yv,emoji:()=>ry,encode:()=>Rv,encodeAsync:()=>Bv,endsWith:()=>xg,enum:()=>Zy,exactOptional:()=>nb,file:()=>$y,flattenError:()=>Hs,float32:()=>wy,float64:()=>Ty,formatError:()=>Us,fromJSONSchema:()=>tS,function:()=>vb,getErrorMap:()=>qx,globalRegistry:()=>th,gt:()=>rg,gte:()=>ig,guid:()=>Xv,hash:()=>Sy,hex:()=>xy,hostname:()=>by,httpUrl:()=>ny,includes:()=>yg,instanceof:()=>Cb,int:()=>Cy,int32:()=>Ey,int64:()=>Ay,intersection:()=>Gy,invertCodec:()=>pb,ipv4:()=>uy,ipv6:()=>fy,iso:()=>bv,json:()=>wb,jwt:()=>vy,keyof:()=>By,ksuid:()=>ly,lazy:()=>gb,length:()=>hg,literal:()=>Z,locales:()=>Jm,looseObject:()=>Hy,looseRecord:()=>Jy,lowercase:()=>_g,lt:()=>tg,lte:()=>ng,mac:()=>dy,map:()=>Yy,maxLength:()=>pg,maxSize:()=>ug,meta:()=>Ux,mime:()=>Cg,minLength:()=>mg,minSize:()=>dg,multipleOf:()=>lg,nan:()=>ub,nanoid:()=>iy,nativeEnum:()=>Qy,negative:()=>og,never:()=>Ly,nonnegative:()=>cg,nonoptional:()=>sb,nonpositive:()=>sg,normalize:()=>Tg,null:()=>Py,nullable:()=>rb,nullish:()=>ib,number:()=>K,object:()=>J,optional:()=>tb,overwrite:()=>wg,parse:()=>Pv,parseAsync:()=>Fv,partialRecord:()=>qy,pipe:()=>db,positive:()=>ag,prefault:()=>ob,preprocess:()=>Tb,prettifyError:()=>Ks,promise:()=>_b,property:()=>Sg,readonly:()=>mb,record:()=>X,refine:()=>xb,regex:()=>gg,regexes:()=>Sc,registry:()=>Xm,safeDecode:()=>Uv,safeDecodeAsync:()=>Gv,safeEncode:()=>Hv,safeEncodeAsync:()=>Wv,safeParse:()=>Iv,safeParseAsync:()=>Lv,set:()=>Xy,setErrorMap:()=>Kx,size:()=>fg,slugify:()=>kg,startsWith:()=>bg,strictObject:()=>Vy,string:()=>G,stringFormat:()=>yy,stringbool:()=>Wx,success:()=>cb,superRefine:()=>Sb,symbol:()=>My,templateLiteral:()=>hb,toJSONSchema:()=>y_,toLowerCase:()=>Dg,toUpperCase:()=>Og,transform:()=>eb,treeifyError:()=>Ws,trim:()=>Eg,tuple:()=>Ky,uint32:()=>Dy,uint64:()=>jy,ulid:()=>sy,undefined:()=>Ny,union:()=>Y,unknown:()=>Iy,uppercase:()=>vg,url:()=>ty,util:()=>Io,uuid:()=>Zv,uuidv4:()=>Qv,uuidv6:()=>$v,uuidv7:()=>ey,void:()=>Ry,xid:()=>cy,xor:()=>Uy,z:()=>dS}),gS,_S=o((()=>{mS(),mS(),gS=pS}));_S();var vS=`io.modelcontextprotocol/related-task`,yS=bb(e=>e!==null&&(typeof e==`object`||typeof e==`function`)),bS=Y([G(),K().int()]),xS=G();Hy({ttl:K().optional(),pollInterval:K().optional()});var SS=J({ttl:K().optional()}),CS=J({taskId:G()}),wS=Hy({progressToken:bS.optional(),[vS]:CS.optional()}),TS=J({_meta:wS.optional()}),ES=TS.extend({task:SS.optional()}),DS=e=>ES.safeParse(e).success,OS=J({method:G(),params:TS.loose().optional()}),kS=J({_meta:wS.optional()}),AS=J({method:G(),params:kS.loose().optional()}),jS=Hy({_meta:wS.optional()}),MS=Y([G(),K().int()]),NS=J({jsonrpc:Z(`2.0`),id:MS,...OS.shape}).strict(),PS=e=>NS.safeParse(e).success,FS=J({jsonrpc:Z(`2.0`),...AS.shape}).strict(),IS=e=>FS.safeParse(e).success,LS=J({jsonrpc:Z(`2.0`),id:MS,result:jS}).strict(),RS=e=>LS.safeParse(e).success,zS;(function(e){e[e.ConnectionClosed=-32e3]=`ConnectionClosed`,e[e.RequestTimeout=-32001]=`RequestTimeout`,e[e.ParseError=-32700]=`ParseError`,e[e.InvalidRequest=-32600]=`InvalidRequest`,e[e.MethodNotFound=-32601]=`MethodNotFound`,e[e.InvalidParams=-32602]=`InvalidParams`,e[e.InternalError=-32603]=`InternalError`,e[e.UrlElicitationRequired=-32042]=`UrlElicitationRequired`})(zS||={});var BS=J({jsonrpc:Z(`2.0`),id:MS.optional(),error:J({code:K().int(),message:G(),data:Iy().optional()})}).strict(),VS=e=>BS.safeParse(e).success,HS=Y([NS,FS,LS,BS]);Y([LS,BS]);var US=jS.strict(),WS=kS.extend({requestId:MS.optional(),reason:G().optional()}),GS=AS.extend({method:Z(`notifications/cancelled`),params:WS}),KS=J({icons:q(J({src:G(),mimeType:G().optional(),sizes:q(G()).optional(),theme:Zy([`light`,`dark`]).optional()})).optional()}),qS=J({name:G(),title:G().optional()}),JS=qS.extend({...qS.shape,...KS.shape,version:G(),websiteUrl:G().optional(),description:G().optional()}),YS=Tb(e=>e&&typeof e==`object`&&!Array.isArray(e)&&Object.keys(e).length===0?{form:{}}:e,Gy(J({form:Gy(J({applyDefaults:Oy().optional()}),X(G(),Iy())).optional(),url:yS.optional()}),X(G(),Iy()).optional())),XS=Hy({list:yS.optional(),cancel:yS.optional(),requests:Hy({sampling:Hy({createMessage:yS.optional()}).optional(),elicitation:Hy({create:yS.optional()}).optional()}).optional()}),ZS=Hy({list:yS.optional(),cancel:yS.optional(),requests:Hy({tools:Hy({call:yS.optional()}).optional()}).optional()}),QS=J({experimental:X(G(),yS).optional(),sampling:J({context:yS.optional(),tools:yS.optional()}).optional(),elicitation:YS.optional(),roots:J({listChanged:Oy().optional()}).optional(),tasks:XS.optional(),extensions:X(G(),yS).optional()}),$S=TS.extend({protocolVersion:G(),capabilities:QS,clientInfo:JS}),eC=OS.extend({method:Z(`initialize`),params:$S}),tC=J({experimental:X(G(),yS).optional(),logging:yS.optional(),completions:yS.optional(),prompts:J({listChanged:Oy().optional()}).optional(),resources:J({subscribe:Oy().optional(),listChanged:Oy().optional()}).optional(),tools:J({listChanged:Oy().optional()}).optional(),tasks:ZS.optional(),extensions:X(G(),yS).optional()}),nC=jS.extend({protocolVersion:G(),capabilities:tC,serverInfo:JS,instructions:G().optional()}),rC=AS.extend({method:Z(`notifications/initialized`),params:kS.optional()}),iC=OS.extend({method:Z(`ping`),params:TS.optional()}),aC=J({progress:K(),total:tb(K()),message:tb(G())}),oC=J({...kS.shape,...aC.shape,progressToken:bS}),sC=AS.extend({method:Z(`notifications/progress`),params:oC}),cC=TS.extend({cursor:xS.optional()}),lC=OS.extend({params:cC.optional()}),uC=jS.extend({nextCursor:xS.optional()}),dC=Zy([`working`,`input_required`,`completed`,`failed`,`cancelled`]),fC=J({taskId:G(),status:dC,ttl:Y([K(),Py()]),createdAt:G(),lastUpdatedAt:G(),pollInterval:tb(K()),statusMessage:tb(G())}),pC=jS.extend({task:fC}),mC=kS.merge(fC),hC=AS.extend({method:Z(`notifications/tasks/status`),params:mC}),gC=OS.extend({method:Z(`tasks/get`),params:TS.extend({taskId:G()})}),_C=jS.merge(fC),vC=OS.extend({method:Z(`tasks/result`),params:TS.extend({taskId:G()})});jS.loose();var yC=lC.extend({method:Z(`tasks/list`)}),bC=uC.extend({tasks:q(fC)}),xC=OS.extend({method:Z(`tasks/cancel`),params:TS.extend({taskId:G()})}),SC=jS.merge(fC),CC=J({uri:G(),mimeType:tb(G()),_meta:X(G(),Iy()).optional()}),wC=CC.extend({text:G()}),TC=G().refine(e=>{try{return atob(e),!0}catch{return!1}},{message:`Invalid Base64 string`}),EC=CC.extend({blob:TC}),DC=Zy([`user`,`assistant`]),OC=J({audience:q(DC).optional(),priority:K().min(0).max(1).optional(),lastModified:xv({offset:!0}).optional()}),kC=J({...qS.shape,...KS.shape,uri:G(),description:tb(G()),mimeType:tb(G()),size:tb(K()),annotations:OC.optional(),_meta:tb(Hy({}))}),AC=J({...qS.shape,...KS.shape,uriTemplate:G(),description:tb(G()),mimeType:tb(G()),annotations:OC.optional(),_meta:tb(Hy({}))}),jC=lC.extend({method:Z(`resources/list`)}),MC=uC.extend({resources:q(kC)}),NC=lC.extend({method:Z(`resources/templates/list`)}),PC=uC.extend({resourceTemplates:q(AC)}),FC=TS.extend({uri:G()}),IC=FC,LC=OS.extend({method:Z(`resources/read`),params:IC}),RC=jS.extend({contents:q(Y([wC,EC]))}),zC=AS.extend({method:Z(`notifications/resources/list_changed`),params:kS.optional()}),BC=FC,VC=OS.extend({method:Z(`resources/subscribe`),params:BC}),HC=FC,UC=OS.extend({method:Z(`resources/unsubscribe`),params:HC}),WC=kS.extend({uri:G()}),GC=AS.extend({method:Z(`notifications/resources/updated`),params:WC}),KC=J({name:G(),description:tb(G()),required:tb(Oy())}),qC=J({...qS.shape,...KS.shape,description:tb(G()),arguments:tb(q(KC)),_meta:tb(Hy({}))}),JC=lC.extend({method:Z(`prompts/list`)}),YC=uC.extend({prompts:q(qC)}),XC=TS.extend({name:G(),arguments:X(G(),G()).optional()}),ZC=OS.extend({method:Z(`prompts/get`),params:XC}),QC=J({type:Z(`text`),text:G(),annotations:OC.optional(),_meta:X(G(),Iy()).optional()}),$C=J({type:Z(`image`),data:TC,mimeType:G(),annotations:OC.optional(),_meta:X(G(),Iy()).optional()}),ew=J({type:Z(`audio`),data:TC,mimeType:G(),annotations:OC.optional(),_meta:X(G(),Iy()).optional()}),tw=J({type:Z(`tool_use`),name:G(),id:G(),input:X(G(),Iy()),_meta:X(G(),Iy()).optional()}),nw=J({type:Z(`resource`),resource:Y([wC,EC]),annotations:OC.optional(),_meta:X(G(),Iy()).optional()}),rw=kC.extend({type:Z(`resource_link`)}),iw=Y([QC,$C,ew,rw,nw]),aw=J({role:DC,content:iw}),ow=jS.extend({description:G().optional(),messages:q(aw)}),sw=AS.extend({method:Z(`notifications/prompts/list_changed`),params:kS.optional()}),cw=J({title:G().optional(),readOnlyHint:Oy().optional(),destructiveHint:Oy().optional(),idempotentHint:Oy().optional(),openWorldHint:Oy().optional()}),lw=J({taskSupport:Zy([`required`,`optional`,`forbidden`]).optional()}),uw=J({...qS.shape,...KS.shape,description:G().optional(),inputSchema:J({type:Z(`object`),properties:X(G(),yS).optional(),required:q(G()).optional()}).catchall(Iy()),outputSchema:J({type:Z(`object`),properties:X(G(),yS).optional(),required:q(G()).optional()}).catchall(Iy()).optional(),annotations:cw.optional(),execution:lw.optional(),_meta:X(G(),Iy()).optional()}),dw=lC.extend({method:Z(`tools/list`)}),fw=uC.extend({tools:q(uw)}),pw=jS.extend({content:q(iw).default([]),structuredContent:X(G(),Iy()).optional(),isError:Oy().optional()});pw.or(jS.extend({toolResult:Iy()}));var mw=ES.extend({name:G(),arguments:X(G(),Iy()).optional()}),hw=OS.extend({method:Z(`tools/call`),params:mw}),gw=AS.extend({method:Z(`notifications/tools/list_changed`),params:kS.optional()});J({autoRefresh:Oy().default(!0),debounceMs:K().int().nonnegative().default(300)});var _w=Zy([`debug`,`info`,`notice`,`warning`,`error`,`critical`,`alert`,`emergency`]),vw=TS.extend({level:_w}),yw=OS.extend({method:Z(`logging/setLevel`),params:vw}),bw=kS.extend({level:_w,logger:G().optional(),data:Iy()}),xw=AS.extend({method:Z(`notifications/message`),params:bw}),Sw=J({hints:q(J({name:G().optional()})).optional(),costPriority:K().min(0).max(1).optional(),speedPriority:K().min(0).max(1).optional(),intelligencePriority:K().min(0).max(1).optional()}),Cw=J({mode:Zy([`auto`,`required`,`none`]).optional()}),ww=J({type:Z(`tool_result`),toolUseId:G().describe(`The unique identifier for the corresponding tool call.`),content:q(iw).default([]),structuredContent:J({}).loose().optional(),isError:Oy().optional(),_meta:X(G(),Iy()).optional()}),Tw=Wy(`type`,[QC,$C,ew]),Ew=Wy(`type`,[QC,$C,ew,tw,ww]),Dw=J({role:DC,content:Y([Ew,q(Ew)]),_meta:X(G(),Iy()).optional()}),Ow=ES.extend({messages:q(Dw),modelPreferences:Sw.optional(),systemPrompt:G().optional(),includeContext:Zy([`none`,`thisServer`,`allServers`]).optional(),temperature:K().optional(),maxTokens:K().int(),stopSequences:q(G()).optional(),metadata:yS.optional(),tools:q(uw).optional(),toolChoice:Cw.optional()}),kw=OS.extend({method:Z(`sampling/createMessage`),params:Ow}),Aw=jS.extend({model:G(),stopReason:tb(Zy([`endTurn`,`stopSequence`,`maxTokens`]).or(G())),role:DC,content:Tw}),jw=jS.extend({model:G(),stopReason:tb(Zy([`endTurn`,`stopSequence`,`maxTokens`,`toolUse`]).or(G())),role:DC,content:Y([Ew,q(Ew)])}),Mw=J({type:Z(`boolean`),title:G().optional(),description:G().optional(),default:Oy().optional()}),Nw=J({type:Z(`string`),title:G().optional(),description:G().optional(),minLength:K().optional(),maxLength:K().optional(),format:Zy([`email`,`uri`,`date`,`date-time`]).optional(),default:G().optional()}),Pw=J({type:Zy([`number`,`integer`]),title:G().optional(),description:G().optional(),minimum:K().optional(),maximum:K().optional(),default:K().optional()}),Fw=J({type:Z(`string`),title:G().optional(),description:G().optional(),enum:q(G()),default:G().optional()}),Iw=J({type:Z(`string`),title:G().optional(),description:G().optional(),oneOf:q(J({const:G(),title:G()})),default:G().optional()}),Lw=Y([Y([J({type:Z(`string`),title:G().optional(),description:G().optional(),enum:q(G()),enumNames:q(G()).optional(),default:G().optional()}),Y([Fw,Iw]),Y([J({type:Z(`array`),title:G().optional(),description:G().optional(),minItems:K().optional(),maxItems:K().optional(),items:J({type:Z(`string`),enum:q(G())}),default:q(G()).optional()}),J({type:Z(`array`),title:G().optional(),description:G().optional(),minItems:K().optional(),maxItems:K().optional(),items:J({anyOf:q(J({const:G(),title:G()}))}),default:q(G()).optional()})])]),Mw,Nw,Pw]),Rw=Y([ES.extend({mode:Z(`form`).optional(),message:G(),requestedSchema:J({type:Z(`object`),properties:X(G(),Lw),required:q(G()).optional()})}),ES.extend({mode:Z(`url`),message:G(),elicitationId:G(),url:G().url()})]),zw=OS.extend({method:Z(`elicitation/create`),params:Rw}),Bw=kS.extend({elicitationId:G()}),Vw=AS.extend({method:Z(`notifications/elicitation/complete`),params:Bw}),Hw=jS.extend({action:Zy([`accept`,`decline`,`cancel`]),content:Tb(e=>e===null?void 0:e,X(G(),Y([G(),K(),Oy(),q(G())])).optional())}),Uw=J({type:Z(`ref/resource`),uri:G()}),Ww=J({type:Z(`ref/prompt`),name:G()}),Gw=TS.extend({ref:Y([Ww,Uw]),argument:J({name:G(),value:G()}),context:J({arguments:X(G(),G()).optional()}).optional()}),Kw=OS.extend({method:Z(`completion/complete`),params:Gw}),qw=jS.extend({completion:Hy({values:q(G()).max(100),total:tb(K().int()),hasMore:tb(Oy())})}),Jw=J({uri:G().startsWith(`file://`),name:G().optional(),_meta:X(G(),Iy()).optional()}),Yw=OS.extend({method:Z(`roots/list`),params:TS.optional()}),Xw=jS.extend({roots:q(Jw)}),Zw=AS.extend({method:Z(`notifications/roots/list_changed`),params:kS.optional()});Y([iC,eC,Kw,yw,ZC,JC,jC,NC,LC,VC,UC,hw,dw,gC,vC,yC,xC]),Y([GS,sC,rC,Zw,hC]),Y([US,Aw,jw,Hw,Xw,_C,bC,pC]),Y([iC,kw,zw,Yw,gC,vC,yC,xC]),Y([GS,sC,xw,GC,zC,gw,sw,hC,Vw]),Y([US,nC,qw,ow,YC,MC,PC,RC,pw,fw,_C,bC,pC]);var Qw=class e extends Error{constructor(e,t,n){super(`MCP error ${e}: ${t}`),this.code=e,this.data=n,this.name=`McpError`}static fromError(t,n,r){if(t===zS.UrlElicitationRequired&&r){let e=r;if(e.elicitations)return new $w(e.elicitations,n)}return new e(t,n,r)}},$w=class extends Qw{constructor(e,t=`URL elicitation${e.length>1?`s`:``} required`){super(zS.UrlElicitationRequired,t,{elicitations:e})}get elicitations(){return this.data?.elicitations??[]}};function eT(e){return e===`completed`||e===`failed`||e===`cancelled`}function tT(e){let t=gv(e)?.method;if(!t)throw Error(`Schema is missing a method literal`);let n=_v(t);if(typeof n!=`string`)throw Error(`Schema method literal must be a string`);return n}function nT(e,t){let n=hv(e,t);if(!n.success)throw n.error;return n.data}var rT=class{constructor(e){this._options=e,this._requestMessageId=0,this._requestHandlers=new Map,this._requestHandlerAbortControllers=new Map,this._notificationHandlers=new Map,this._responseHandlers=new Map,this._progressHandlers=new Map,this._timeoutInfo=new Map,this._pendingDebouncedNotifications=new Set,this._taskProgressTokens=new Map,this._requestResolvers=new Map,this.setNotificationHandler(GS,e=>{this._oncancel(e)}),this.setNotificationHandler(sC,e=>{this._onprogress(e)}),this.setRequestHandler(iC,e=>({})),this._taskStore=e?.taskStore,this._taskMessageQueue=e?.taskMessageQueue,this._taskStore&&(this.setRequestHandler(gC,async(e,t)=>{let n=await this._taskStore.getTask(e.params.taskId,t.sessionId);if(!n)throw new Qw(zS.InvalidParams,`Failed to retrieve task: Task not found`);return{...n}}),this.setRequestHandler(vC,async(e,t)=>{let n=async()=>{let r=e.params.taskId;if(this._taskMessageQueue){let e;for(;e=await this._taskMessageQueue.dequeue(r,t.sessionId);){if(e.type===`response`||e.type===`error`){let t=e.message,n=t.id,r=this._requestResolvers.get(n);if(r)if(this._requestResolvers.delete(n),e.type===`response`)r(t);else{let e=t;r(new Qw(e.error.code,e.error.message,e.error.data))}else{let t=e.type===`response`?`Response`:`Error`;this._onerror(Error(`${t} handler missing for request ${n}`))}continue}await this._transport?.send(e.message,{relatedRequestId:t.requestId})}}let i=await this._taskStore.getTask(r,t.sessionId);if(!i)throw new Qw(zS.InvalidParams,`Task not found: ${r}`);if(!eT(i.status))return await this._waitForTaskUpdate(r,t.signal),await n();if(eT(i.status)){let e=await this._taskStore.getTaskResult(r,t.sessionId);return this._clearTaskQueue(r),{...e,_meta:{...e._meta,[vS]:{taskId:r}}}}return await n()};return await n()}),this.setRequestHandler(yC,async(e,t)=>{try{let{tasks:n,nextCursor:r}=await this._taskStore.listTasks(e.params?.cursor,t.sessionId);return{tasks:n,nextCursor:r,_meta:{}}}catch(e){throw new Qw(zS.InvalidParams,`Failed to list tasks: ${e instanceof Error?e.message:String(e)}`)}}),this.setRequestHandler(xC,async(e,t)=>{try{let n=await this._taskStore.getTask(e.params.taskId,t.sessionId);if(!n)throw new Qw(zS.InvalidParams,`Task not found: ${e.params.taskId}`);if(eT(n.status))throw new Qw(zS.InvalidParams,`Cannot cancel task in terminal status: ${n.status}`);await this._taskStore.updateTaskStatus(e.params.taskId,`cancelled`,`Client cancelled task execution.`,t.sessionId),this._clearTaskQueue(e.params.taskId);let r=await this._taskStore.getTask(e.params.taskId,t.sessionId);if(!r)throw new Qw(zS.InvalidParams,`Task not found after cancellation: ${e.params.taskId}`);return{_meta:{},...r}}catch(e){throw e instanceof Qw?e:new Qw(zS.InvalidRequest,`Failed to cancel task: ${e instanceof Error?e.message:String(e)}`)}}))}async _oncancel(e){e.params.requestId&&this._requestHandlerAbortControllers.get(e.params.requestId)?.abort(e.params.reason)}_setupTimeout(e,t,n,r,i=!1){this._timeoutInfo.set(e,{timeoutId:setTimeout(r,t),startTime:Date.now(),timeout:t,maxTotalTimeout:n,resetTimeoutOnProgress:i,onTimeout:r})}_resetTimeout(e){let t=this._timeoutInfo.get(e);if(!t)return!1;let n=Date.now()-t.startTime;if(t.maxTotalTimeout&&n>=t.maxTotalTimeout)throw this._timeoutInfo.delete(e),Qw.fromError(zS.RequestTimeout,`Maximum total timeout exceeded`,{maxTotalTimeout:t.maxTotalTimeout,totalElapsed:n});return clearTimeout(t.timeoutId),t.timeoutId=setTimeout(t.onTimeout,t.timeout),!0}_cleanupTimeout(e){let t=this._timeoutInfo.get(e);t&&(clearTimeout(t.timeoutId),this._timeoutInfo.delete(e))}async connect(e){if(this._transport)throw Error(`Already connected to a transport. Call close() before connecting to a new transport, or use a separate Protocol instance per connection.`);this._transport=e;let t=this.transport?.onclose;this._transport.onclose=()=>{t?.(),this._onclose()};let n=this.transport?.onerror;this._transport.onerror=e=>{n?.(e),this._onerror(e)};let r=this._transport?.onmessage;this._transport.onmessage=(e,t)=>{r?.(e,t),RS(e)||VS(e)?this._onresponse(e):PS(e)?this._onrequest(e,t):IS(e)?this._onnotification(e):this._onerror(Error(`Unknown message type: ${JSON.stringify(e)}`))},await this._transport.start()}_onclose(){let e=this._responseHandlers;this._responseHandlers=new Map,this._progressHandlers.clear(),this._taskProgressTokens.clear(),this._pendingDebouncedNotifications.clear();for(let e of this._timeoutInfo.values())clearTimeout(e.timeoutId);this._timeoutInfo.clear();for(let e of this._requestHandlerAbortControllers.values())e.abort();this._requestHandlerAbortControllers.clear();let t=Qw.fromError(zS.ConnectionClosed,`Connection closed`);this._transport=void 0,this.onclose?.();for(let n of e.values())n(t)}_onerror(e){this.onerror?.(e)}_onnotification(e){let t=this._notificationHandlers.get(e.method)??this.fallbackNotificationHandler;t!==void 0&&Promise.resolve().then(()=>t(e)).catch(e=>this._onerror(Error(`Uncaught error in notification handler: ${e}`)))}_onrequest(e,t){let n=this._requestHandlers.get(e.method)??this.fallbackRequestHandler,r=this._transport,i=e.params?._meta?.[vS]?.taskId;if(n===void 0){let t={jsonrpc:`2.0`,id:e.id,error:{code:zS.MethodNotFound,message:`Method not found`}};i&&this._taskMessageQueue?this._enqueueTaskMessage(i,{type:`error`,message:t,timestamp:Date.now()},r?.sessionId).catch(e=>this._onerror(Error(`Failed to enqueue error response: ${e}`))):r?.send(t).catch(e=>this._onerror(Error(`Failed to send an error response: ${e}`)));return}let a=new AbortController;this._requestHandlerAbortControllers.set(e.id,a);let o=DS(e.params)?e.params.task:void 0,s=this._taskStore?this.requestTaskStore(e,r?.sessionId):void 0,c={signal:a.signal,sessionId:r?.sessionId,_meta:e.params?._meta,sendNotification:async t=>{if(a.signal.aborted)return;let n={relatedRequestId:e.id};i&&(n.relatedTask={taskId:i}),await this.notification(t,n)},sendRequest:async(t,n,r)=>{if(a.signal.aborted)throw new Qw(zS.ConnectionClosed,`Request was cancelled`);let o={...r,relatedRequestId:e.id};i&&!o.relatedTask&&(o.relatedTask={taskId:i});let c=o.relatedTask?.taskId??i;return c&&s&&await s.updateTaskStatus(c,`input_required`),await this.request(t,n,o)},authInfo:t?.authInfo,requestId:e.id,requestInfo:t?.requestInfo,taskId:i,taskStore:s,taskRequestedTtl:o?.ttl,closeSSEStream:t?.closeSSEStream,closeStandaloneSSEStream:t?.closeStandaloneSSEStream};Promise.resolve().then(()=>{o&&this.assertTaskHandlerCapability(e.method)}).then(()=>n(e,c)).then(async t=>{if(a.signal.aborted)return;let n={result:t,jsonrpc:`2.0`,id:e.id};i&&this._taskMessageQueue?await this._enqueueTaskMessage(i,{type:`response`,message:n,timestamp:Date.now()},r?.sessionId):await r?.send(n)},async t=>{if(a.signal.aborted)return;let n={jsonrpc:`2.0`,id:e.id,error:{code:Number.isSafeInteger(t.code)?t.code:zS.InternalError,message:t.message??`Internal error`,...t.data!==void 0&&{data:t.data}}};i&&this._taskMessageQueue?await this._enqueueTaskMessage(i,{type:`error`,message:n,timestamp:Date.now()},r?.sessionId):await r?.send(n)}).catch(e=>this._onerror(Error(`Failed to send response: ${e}`))).finally(()=>{this._requestHandlerAbortControllers.get(e.id)===a&&this._requestHandlerAbortControllers.delete(e.id)})}_onprogress(e){let{progressToken:t,...n}=e.params,r=Number(t),i=this._progressHandlers.get(r);if(!i){this._onerror(Error(`Received a progress notification for an unknown token: ${JSON.stringify(e)}`));return}let a=this._responseHandlers.get(r),o=this._timeoutInfo.get(r);if(o&&a&&o.resetTimeoutOnProgress)try{this._resetTimeout(r)}catch(e){this._responseHandlers.delete(r),this._progressHandlers.delete(r),this._cleanupTimeout(r),a(e);return}i(n)}_onresponse(e){let t=Number(e.id),n=this._requestResolvers.get(t);if(n){this._requestResolvers.delete(t),RS(e)?n(e):n(new Qw(e.error.code,e.error.message,e.error.data));return}let r=this._responseHandlers.get(t);if(r===void 0){this._onerror(Error(`Received a response for an unknown message ID: ${JSON.stringify(e)}`));return}this._responseHandlers.delete(t),this._cleanupTimeout(t);let i=!1;if(RS(e)&&e.result&&typeof e.result==`object`){let n=e.result;if(n.task&&typeof n.task==`object`){let e=n.task;typeof e.taskId==`string`&&(i=!0,this._taskProgressTokens.set(e.taskId,t))}}i||this._progressHandlers.delete(t),RS(e)?r(e):r(Qw.fromError(e.error.code,e.error.message,e.error.data))}get transport(){return this._transport}async close(){await this._transport?.close()}async*requestStream(e,t,n){let{task:r}=n??{};if(!r){try{yield{type:`result`,result:await this.request(e,t,n)}}catch(e){yield{type:`error`,error:e instanceof Qw?e:new Qw(zS.InternalError,String(e))}}return}let i;try{let r=await this.request(e,pC,n);if(r.task)i=r.task.taskId,yield{type:`taskCreated`,task:r.task};else throw new Qw(zS.InternalError,`Task creation did not return a task`);for(;;){let e=await this.getTask({taskId:i},n);if(yield{type:`taskStatus`,task:e},eT(e.status)){e.status===`completed`?yield{type:`result`,result:await this.getTaskResult({taskId:i},t,n)}:e.status===`failed`?yield{type:`error`,error:new Qw(zS.InternalError,`Task ${i} failed`)}:e.status===`cancelled`&&(yield{type:`error`,error:new Qw(zS.InternalError,`Task ${i} was cancelled`)});return}if(e.status===`input_required`){yield{type:`result`,result:await this.getTaskResult({taskId:i},t,n)};return}let r=e.pollInterval??this._options?.defaultTaskPollInterval??1e3;await new Promise(e=>setTimeout(e,r)),n?.signal?.throwIfAborted()}}catch(e){yield{type:`error`,error:e instanceof Qw?e:new Qw(zS.InternalError,String(e))}}}request(e,t,n){let{relatedRequestId:r,resumptionToken:i,onresumptiontoken:a,task:o,relatedTask:s}=n??{};return new Promise((c,l)=>{let u=e=>{l(e)};if(!this._transport){u(Error(`Not connected`));return}if(this._options?.enforceStrictCapabilities===!0)try{this.assertCapabilityForMethod(e.method),o&&this.assertTaskCapability(e.method)}catch(e){u(e);return}n?.signal?.throwIfAborted();let d=this._requestMessageId++,f={...e,jsonrpc:`2.0`,id:d};n?.onprogress&&(this._progressHandlers.set(d,n.onprogress),f.params={...e.params,_meta:{...e.params?._meta||{},progressToken:d}}),o&&(f.params={...f.params,task:o}),s&&(f.params={...f.params,_meta:{...f.params?._meta||{},[vS]:s}});let p=e=>{this._responseHandlers.delete(d),this._progressHandlers.delete(d),this._cleanupTimeout(d),this._transport?.send({jsonrpc:`2.0`,method:`notifications/cancelled`,params:{requestId:d,reason:String(e)}},{relatedRequestId:r,resumptionToken:i,onresumptiontoken:a}).catch(e=>this._onerror(Error(`Failed to send cancellation: ${e}`))),l(e instanceof Qw?e:new Qw(zS.RequestTimeout,String(e)))};this._responseHandlers.set(d,e=>{if(!n?.signal?.aborted){if(e instanceof Error)return l(e);try{let n=hv(t,e.result);n.success?c(n.data):l(n.error)}catch(e){l(e)}}}),n?.signal?.addEventListener(`abort`,()=>{p(n?.signal?.reason)});let m=n?.timeout??6e4;this._setupTimeout(d,m,n?.maxTotalTimeout,()=>p(Qw.fromError(zS.RequestTimeout,`Request timed out`,{timeout:m})),n?.resetTimeoutOnProgress??!1);let h=s?.taskId;h?(this._requestResolvers.set(d,e=>{let t=this._responseHandlers.get(d);t?t(e):this._onerror(Error(`Response handler missing for side-channeled request ${d}`))}),this._enqueueTaskMessage(h,{type:`request`,message:f,timestamp:Date.now()}).catch(e=>{this._cleanupTimeout(d),l(e)})):this._transport.send(f,{relatedRequestId:r,resumptionToken:i,onresumptiontoken:a}).catch(e=>{this._cleanupTimeout(d),l(e)})})}async getTask(e,t){return this.request({method:`tasks/get`,params:e},_C,t)}async getTaskResult(e,t,n){return this.request({method:`tasks/result`,params:e},t,n)}async listTasks(e,t){return this.request({method:`tasks/list`,params:e},bC,t)}async cancelTask(e,t){return this.request({method:`tasks/cancel`,params:e},SC,t)}async notification(e,t){if(!this._transport)throw Error(`Not connected`);this.assertNotificationCapability(e.method);let n=t?.relatedTask?.taskId;if(n){let r={...e,jsonrpc:`2.0`,params:{...e.params,_meta:{...e.params?._meta||{},[vS]:t.relatedTask}}};await this._enqueueTaskMessage(n,{type:`notification`,message:r,timestamp:Date.now()});return}if((this._options?.debouncedNotificationMethods??[]).includes(e.method)&&!e.params&&!t?.relatedRequestId&&!t?.relatedTask){if(this._pendingDebouncedNotifications.has(e.method))return;this._pendingDebouncedNotifications.add(e.method),Promise.resolve().then(()=>{if(this._pendingDebouncedNotifications.delete(e.method),!this._transport)return;let n={...e,jsonrpc:`2.0`};t?.relatedTask&&(n={...n,params:{...n.params,_meta:{...n.params?._meta||{},[vS]:t.relatedTask}}}),this._transport?.send(n,t).catch(e=>this._onerror(e))});return}let r={...e,jsonrpc:`2.0`};t?.relatedTask&&(r={...r,params:{...r.params,_meta:{...r.params?._meta||{},[vS]:t.relatedTask}}}),await this._transport.send(r,t)}setRequestHandler(e,t){let n=tT(e);this.assertRequestHandlerCapability(n),this._requestHandlers.set(n,(n,r)=>{let i=nT(e,n);return Promise.resolve(t(i,r))})}removeRequestHandler(e){this._requestHandlers.delete(e)}assertCanSetRequestHandler(e){if(this._requestHandlers.has(e))throw Error(`A request handler for ${e} already exists, which would be overridden`)}setNotificationHandler(e,t){let n=tT(e);this._notificationHandlers.set(n,n=>{let r=nT(e,n);return Promise.resolve(t(r))})}removeNotificationHandler(e){this._notificationHandlers.delete(e)}_cleanupTaskProgressHandler(e){let t=this._taskProgressTokens.get(e);t!==void 0&&(this._progressHandlers.delete(t),this._taskProgressTokens.delete(e))}async _enqueueTaskMessage(e,t,n){if(!this._taskStore||!this._taskMessageQueue)throw Error(`Cannot enqueue task message: taskStore and taskMessageQueue are not configured`);let r=this._options?.maxTaskQueueSize;await this._taskMessageQueue.enqueue(e,t,n,r)}async _clearTaskQueue(e,t){if(this._taskMessageQueue){let n=await this._taskMessageQueue.dequeueAll(e,t);for(let t of n)if(t.type===`request`&&PS(t.message)){let n=t.message.id,r=this._requestResolvers.get(n);r?(r(new Qw(zS.InternalError,`Task cancelled or completed`)),this._requestResolvers.delete(n)):this._onerror(Error(`Resolver missing for request ${n} during task ${e} cleanup`))}}}async _waitForTaskUpdate(e,t){let n=this._options?.defaultTaskPollInterval??1e3;try{let t=await this._taskStore?.getTask(e);t?.pollInterval&&(n=t.pollInterval)}catch{}return new Promise((e,r)=>{if(t.aborted){r(new Qw(zS.InvalidRequest,`Request cancelled`));return}let i=setTimeout(e,n);t.addEventListener(`abort`,()=>{clearTimeout(i),r(new Qw(zS.InvalidRequest,`Request cancelled`))},{once:!0})})}requestTaskStore(e,t){let n=this._taskStore;if(!n)throw Error(`No task store configured`);return{createTask:async r=>{if(!e)throw Error(`No request provided`);return await n.createTask(r,e.id,{method:e.method,params:e.params},t)},getTask:async e=>{let r=await n.getTask(e,t);if(!r)throw new Qw(zS.InvalidParams,`Failed to retrieve task: Task not found`);return r},storeTaskResult:async(e,r,i)=>{await n.storeTaskResult(e,r,i,t);let a=await n.getTask(e,t);if(a){let t=hC.parse({method:`notifications/tasks/status`,params:a});await this.notification(t),eT(a.status)&&this._cleanupTaskProgressHandler(e)}},getTaskResult:e=>n.getTaskResult(e,t),updateTaskStatus:async(e,r,i)=>{let a=await n.getTask(e,t);if(!a)throw new Qw(zS.InvalidParams,`Task "${e}" not found - it may have been cleaned up`);if(eT(a.status))throw new Qw(zS.InvalidParams,`Cannot update task "${e}" from terminal status "${a.status}" to "${r}". Terminal states (completed, failed, cancelled) cannot transition to other states.`);await n.updateTaskStatus(e,r,i,t);let o=await n.getTask(e,t);if(o){let t=hC.parse({method:`notifications/tasks/status`,params:o});await this.notification(t),eT(o.status)&&this._cleanupTaskProgressHandler(e)}},listTasks:e=>n.listTasks(e,t)}}};function iT(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function aT(e,t){let n={...e};for(let e in t){let r=e,i=t[r];if(i===void 0)continue;let a=n[r];n[r]=iT(a)&&iT(i)?{...a,...i}:i}return n}var oT=`modulepreload`,sT=function(e,t){return new URL(e,t).href},cT={},lT=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=document.getElementsByTagName(`link`),i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}function s(e){return import.meta.resolve?import.meta.resolve(e):new URL(e,import.meta.url).href}r=o(t.map(t=>{if(t=sT(t,n),t=s(t),t in cT)return;cT[t]=!0;let r=t.endsWith(`.css`);for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.href===t&&(!r||i.rel===`stylesheet`))return}let i=document.createElement(`link`);if(i.rel=r?`stylesheet`:oT,r||(i.as=`script`),i.crossOrigin=``,i.href=t,a&&i.setAttribute(`nonce`,a),document.head.appendChild(i),r)return new Promise((e,n)=>{i.addEventListener(`load`,e),i.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${t}`)))})}))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})};_S(),(e=>typeof d<`u`?d:typeof Proxy<`u`?new Proxy(e,{get:(e,t)=>(typeof d<`u`?d:e)[t]}):e)(function(e){if(typeof d<`u`)return d.apply(this,arguments);throw Error(`Dynamic require of "`+e+`" is not supported`)});var uT=class extends rT{_registeredMethods=new Set;_eventSlots=new Map;onEventDispatch(e,t){}_ensureEventSlot(e){let t=this._eventSlots.get(e);if(!t){let n=this.eventSchemas[e];if(!n)throw Error(`Unknown event: ${String(e)}`);t={listeners:[]},this._eventSlots.set(e,t);let r=n.shape.method.value;this._registeredMethods.add(r);let i=t;super.setNotificationHandler(n,t=>{let n=t.params;this.onEventDispatch(e,n),i.onHandler?.(n);for(let e of[...i.listeners])e(n)})}return t}setEventHandler(e,t){let n=this._ensureEventSlot(e);n.onHandler&&t&&console.warn(`[MCP Apps] on${String(e)} handler replaced. Use addEventListener("${String(e)}", …) to add multiple listeners without replacing.`),n.onHandler=t}getEventHandler(e){return this._eventSlots.get(e)?.onHandler}addEventListener(e,t){this._ensureEventSlot(e).listeners.push(t)}removeEventListener(e,t){let n=this._eventSlots.get(e);if(!n)return;let r=n.listeners.indexOf(t);r!==-1&&n.listeners.splice(r,1)}setRequestHandler=(e,t)=>{this._assertMethodNotRegistered(e,`setRequestHandler`),super.setRequestHandler(e,t)};setNotificationHandler=(e,t)=>{this._assertMethodNotRegistered(e,`setNotificationHandler`),super.setNotificationHandler(e,t)};warnIfRequestHandlerReplaced(e,t,n){t&&n&&console.warn(`[MCP Apps] ${e} handler replaced. Previous handler will no longer be called.`)}replaceRequestHandler=(e,t)=>{let n=e.shape.method.value;this._registeredMethods.add(n),super.setRequestHandler(e,t)};_assertMethodNotRegistered(e,t){let n=e.shape.method.value;if(this._registeredMethods.has(n))throw Error(`Handler for "${n}" already registered (via ${t}). Use addEventListener() to attach multiple listeners, or the on* setter for replace semantics.`);this._registeredMethods.add(n)}},dT=`2026-01-26`,fT=class{eventTarget;eventSource;messageListener;constructor(e=window.parent,t){this.eventTarget=e,this.eventSource=t,this.messageListener=e=>{if(t&&e.source!==this.eventSource){console.debug(`Ignoring message from unknown source`,e);return}let n=HS.safeParse(e.data);n.success?(console.debug(`Parsed message`,n.data),this.onmessage?.(n.data)):e.data?.jsonrpc===`2.0`?(console.error(`Failed to parse message`,n.error.message,e),this.onerror?.(Error(`Invalid JSON-RPC message received: `+n.error.message))):console.debug(`Ignoring non-JSON-RPC message`,n.error.message,e)}}async start(){window.addEventListener(`message`,this.messageListener)}async send(e,t){e.method!==`ui/notifications/tool-input-partial`&&console.debug(`Sending message`,e),this.eventTarget.postMessage(e,`*`)}async close(){window.removeEventListener(`message`,this.messageListener),this.onclose?.()}onclose;onerror;onmessage;sessionId;setProtocolVersion},pT=Y([Z(`light`),Z(`dark`)]).describe(`Color theme preference for the host environment.`),mT=Y([Z(`inline`),Z(`fullscreen`),Z(`pip`)]).describe(`Display mode for UI presentation.`),hT=X(Y([Z(`--color-background-primary`),Z(`--color-background-secondary`),Z(`--color-background-tertiary`),Z(`--color-background-inverse`),Z(`--color-background-ghost`),Z(`--color-background-info`),Z(`--color-background-danger`),Z(`--color-background-success`),Z(`--color-background-warning`),Z(`--color-background-disabled`),Z(`--color-text-primary`),Z(`--color-text-secondary`),Z(`--color-text-tertiary`),Z(`--color-text-inverse`),Z(`--color-text-ghost`),Z(`--color-text-info`),Z(`--color-text-danger`),Z(`--color-text-success`),Z(`--color-text-warning`),Z(`--color-text-disabled`),Z(`--color-border-primary`),Z(`--color-border-secondary`),Z(`--color-border-tertiary`),Z(`--color-border-inverse`),Z(`--color-border-ghost`),Z(`--color-border-info`),Z(`--color-border-danger`),Z(`--color-border-success`),Z(`--color-border-warning`),Z(`--color-border-disabled`),Z(`--color-ring-primary`),Z(`--color-ring-secondary`),Z(`--color-ring-inverse`),Z(`--color-ring-info`),Z(`--color-ring-danger`),Z(`--color-ring-success`),Z(`--color-ring-warning`),Z(`--font-sans`),Z(`--font-mono`),Z(`--font-weight-normal`),Z(`--font-weight-medium`),Z(`--font-weight-semibold`),Z(`--font-weight-bold`),Z(`--font-text-xs-size`),Z(`--font-text-sm-size`),Z(`--font-text-md-size`),Z(`--font-text-lg-size`),Z(`--font-heading-xs-size`),Z(`--font-heading-sm-size`),Z(`--font-heading-md-size`),Z(`--font-heading-lg-size`),Z(`--font-heading-xl-size`),Z(`--font-heading-2xl-size`),Z(`--font-heading-3xl-size`),Z(`--font-text-xs-line-height`),Z(`--font-text-sm-line-height`),Z(`--font-text-md-line-height`),Z(`--font-text-lg-line-height`),Z(`--font-heading-xs-line-height`),Z(`--font-heading-sm-line-height`),Z(`--font-heading-md-line-height`),Z(`--font-heading-lg-line-height`),Z(`--font-heading-xl-line-height`),Z(`--font-heading-2xl-line-height`),Z(`--font-heading-3xl-line-height`),Z(`--border-radius-xs`),Z(`--border-radius-sm`),Z(`--border-radius-md`),Z(`--border-radius-lg`),Z(`--border-radius-xl`),Z(`--border-radius-full`),Z(`--border-width-regular`),Z(`--shadow-hairline`),Z(`--shadow-sm`),Z(`--shadow-md`),Z(`--shadow-lg`)]).describe(`CSS variable keys available to MCP apps for theming.`).describe(`Style variables for theming MCP apps. +Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let n of e.seen.entries()){let r=n[1];if(t===n[0]){a(n);continue}if(e.external){let r=e.external.registry.get(n[0])?.id;if(t!==n[0]&&r){a(n);continue}}if(e.metadataRegistry.get(n[0])?.id){a(n);continue}if(r.cycle){a(n);continue}if(r.count>1&&e.reused===`ref`){a(n);continue}}}function C_(e,t){let n=e.seen.get(t);if(!n)throw Error(`Unprocessed schema. This is a bug in Zod.`);let r=t=>{let n=e.seen.get(t);if(n.ref===null)return;let i=n.def??n.schema,a={...i},o=n.ref;if(n.ref=null,o){r(o);let n=e.seen.get(o),s=n.schema;if(s.$ref&&(e.target===`draft-07`||e.target===`draft-04`||e.target===`openapi-3.0`)?(i.allOf=i.allOf??[],i.allOf.push(s)):Object.assign(i,s),Object.assign(i,a),t._zod.parent===o)for(let e in i)e!==`$ref`&&e!==`allOf`&&(e in a||delete i[e]);if(s.$ref&&n.def)for(let e in i)e!==`$ref`&&e!==`allOf`&&e in n.def&&JSON.stringify(i[e])===JSON.stringify(n.def[e])&&delete i[e]}let s=t._zod.parent;if(s&&s!==o){r(s);let t=e.seen.get(s);if(t?.schema.$ref&&(i.$ref=t.schema.$ref,t.def))for(let e in i)e!==`$ref`&&e!==`allOf`&&e in t.def&&JSON.stringify(i[e])===JSON.stringify(t.def[e])&&delete i[e]}e.override({zodSchema:t,jsonSchema:i,path:n.path??[]})};for(let t of[...e.seen.entries()].reverse())r(t[0]);let i={};if(e.target===`draft-2020-12`?i.$schema=`https://json-schema.org/draft/2020-12/schema`:e.target===`draft-07`?i.$schema=`http://json-schema.org/draft-07/schema#`:e.target===`draft-04`?i.$schema=`http://json-schema.org/draft-04/schema#`:e.target,e.external?.uri){let n=e.external.registry.get(t)?.id;if(!n)throw Error("Schema is missing an `id` property");i.$id=e.external.uri(n)}Object.assign(i,n.def??n.schema);let a=e.metadataRegistry.get(t)?.id;a!==void 0&&i.id===a&&delete i.id;let o=e.external?.defs??{};for(let t of e.seen.entries()){let e=t[1];e.def&&e.defId&&(e.def.id===e.defId&&delete e.def.id,o[e.defId]=e.def)}e.external||Object.keys(o).length>0&&(e.target===`draft-2020-12`?i.$defs=o:i.definitions=o);try{let n=JSON.parse(JSON.stringify(i));return Object.defineProperty(n,"~standard",{value:{...t[`~standard`],jsonSchema:{input:E_(t,`input`,e.processors),output:E_(t,`output`,e.processors)}},enumerable:!1,writable:!1}),n}catch{throw Error(`Error converting schema to JSON.`)}}function w_(e,t){let n=t??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);let r=e._zod.def;if(r.type===`transform`)return!0;if(r.type===`array`)return w_(r.element,n);if(r.type===`set`)return w_(r.valueType,n);if(r.type===`lazy`)return w_(r.getter(),n);if(r.type===`promise`||r.type===`optional`||r.type===`nonoptional`||r.type===`nullable`||r.type===`readonly`||r.type==="default"||r.type===`prefault`)return w_(r.innerType,n);if(r.type===`intersection`)return w_(r.left,n)||w_(r.right,n);if(r.type===`record`||r.type===`map`)return w_(r.keyType,n)||w_(r.valueType,n);if(r.type===`pipe`)return e._zod.traits.has(`$ZodCodec`)?!0:w_(r.in,n)||w_(r.out,n);if(r.type===`object`){for(let e in r.shape)if(w_(r.shape[e],n))return!0;return!1}if(r.type===`union`){for(let e of r.options)if(w_(e,n))return!0;return!1}if(r.type===`tuple`){for(let e of r.items)if(w_(e,n))return!0;return!!(r.rest&&w_(r.rest,n))}return!1}var T_,E_,D_=o((()=>{dh(),T_=(e,t={})=>n=>{let r=b_({...n,processors:t});return x_(e,r),S_(r,e),C_(r,e)},E_=(e,t,n={})=>r=>{let{libraryOptions:i,target:a}=r??{},o=b_({...i??{},target:a,io:t,processors:n});return x_(e,o),S_(o,e),C_(o,e)}}));function O_(e,t){if(`_idmap`in e){let n=e,r=b_({...t,processors:hv}),i={};for(let e of n._idmap.entries()){let[t,n]=e;x_(n,r)}let a={};r.external={registry:n,uri:t?.uri,defs:i};for(let e of n._idmap.entries()){let[t,n]=e;S_(r,n),a[t]=C_(r,n)}return Object.keys(i).length>0&&(a.__shared={[r.target===`draft-2020-12`?`$defs`:`definitions`]:i}),{schemas:a}}let n=b_({...t,processors:hv});return x_(e,n),S_(n,e),C_(n,e)}var k_,A_,j_,M_,N_,P_,F_,I_,L_,R_,z_,B_,V_,H_,U_,W_,G_,K_,q_,J_,Y_,X_,Z_,Q_,$_,ev,tv,nv,rv,iv,av,ov,sv,cv,lv,uv,dv,fv,pv,mv,hv,gv=o((()=>{D_(),z(),k_={guid:`uuid`,url:`uri`,datetime:`date-time`,json_string:`json-string`,regex:``},A_=(e,t,n,r)=>{let i=n;i.type=`string`;let{minimum:a,maximum:o,format:s,patterns:c,contentEncoding:l}=e._zod.bag;if(typeof a==`number`&&(i.minLength=a),typeof o==`number`&&(i.maxLength=o),s&&(i.format=k_[s]??s,i.format===``&&delete i.format,s===`time`&&delete i.format),l&&(i.contentEncoding=l),c&&c.size>0){let e=[...c];e.length===1?i.pattern=e[0].source:e.length>1&&(i.allOf=[...e.map(e=>({...t.target===`draft-07`||t.target===`draft-04`||t.target===`openapi-3.0`?{type:`string`}:{},pattern:e.source}))])}},j_=(e,t,n,r)=>{let i=n,{minimum:a,maximum:o,format:s,multipleOf:c,exclusiveMaximum:l,exclusiveMinimum:u}=e._zod.bag;i.type=typeof s==`string`&&s.includes(`int`)?`integer`:`number`;let d=typeof u==`number`&&u>=(a??-1/0),f=typeof l==`number`&&l<=(o??1/0),p=t.target===`draft-04`||t.target===`openapi-3.0`;d?p?(i.minimum=u,i.exclusiveMinimum=!0):i.exclusiveMinimum=u:typeof a==`number`&&(i.minimum=a),f?p?(i.maximum=l,i.exclusiveMaximum=!0):i.exclusiveMaximum=l:typeof o==`number`&&(i.maximum=o),typeof c==`number`&&(i.multipleOf=c)},M_=(e,t,n,r)=>{n.type=`boolean`},N_=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`BigInt cannot be represented in JSON Schema`)},P_=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Symbols cannot be represented in JSON Schema`)},F_=(e,t,n,r)=>{t.target===`openapi-3.0`?(n.type=`string`,n.nullable=!0,n.enum=[null]):n.type=`null`},I_=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Undefined cannot be represented in JSON Schema`)},L_=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Void cannot be represented in JSON Schema`)},R_=(e,t,n,r)=>{n.not={}},z_=(e,t,n,r)=>{},B_=(e,t,n,r)=>{},V_=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Date cannot be represented in JSON Schema`)},H_=(e,t,n,r)=>{let i=e._zod.def,a=Zo(i.entries);a.every(e=>typeof e==`number`)&&(n.type=`number`),a.every(e=>typeof e==`string`)&&(n.type=`string`),n.enum=a},U_=(e,t,n,r)=>{let i=e._zod.def,a=[];for(let e of i.values)if(e===void 0){if(t.unrepresentable===`throw`)throw Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof e==`bigint`){if(t.unrepresentable===`throw`)throw Error(`BigInt literals cannot be represented in JSON Schema`);a.push(Number(e))}else a.push(e);if(a.length!==0)if(a.length===1){let e=a[0];n.type=e===null?`null`:typeof e,t.target===`draft-04`||t.target===`openapi-3.0`?n.enum=[e]:n.const=e}else a.every(e=>typeof e==`number`)&&(n.type=`number`),a.every(e=>typeof e==`string`)&&(n.type=`string`),a.every(e=>typeof e==`boolean`)&&(n.type=`boolean`),a.every(e=>e===null)&&(n.type=`null`),n.enum=a},W_=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`NaN cannot be represented in JSON Schema`)},G_=(e,t,n,r)=>{let i=n,a=e._zod.pattern;if(!a)throw Error(`Pattern not found in template literal`);i.type=`string`,i.pattern=a.source},K_=(e,t,n,r)=>{let i=n,a={type:`string`,format:`binary`,contentEncoding:`binary`},{minimum:o,maximum:s,mime:c}=e._zod.bag;o!==void 0&&(a.minLength=o),s!==void 0&&(a.maxLength=s),c?c.length===1?(a.contentMediaType=c[0],Object.assign(i,a)):(Object.assign(i,a),i.anyOf=c.map(e=>({contentMediaType:e}))):Object.assign(i,a)},q_=(e,t,n,r)=>{n.type=`boolean`},J_=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Custom types cannot be represented in JSON Schema`)},Y_=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Function types cannot be represented in JSON Schema`)},X_=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Transforms cannot be represented in JSON Schema`)},Z_=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Map cannot be represented in JSON Schema`)},Q_=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Set cannot be represented in JSON Schema`)},$_=(e,t,n,r)=>{let i=n,a=e._zod.def,{minimum:o,maximum:s}=e._zod.bag;typeof o==`number`&&(i.minItems=o),typeof s==`number`&&(i.maxItems=s),i.type=`array`,i.items=x_(a.element,t,{...r,path:[...r.path,`items`]})},ev=(e,t,n,r)=>{let i=n,a=e._zod.def;i.type=`object`,i.properties={};let o=a.shape;for(let e in o)i.properties[e]=x_(o[e],t,{...r,path:[...r.path,`properties`,e]});let s=new Set(Object.keys(o)),c=new Set([...s].filter(e=>{let n=a.shape[e]._zod;return t.io===`input`?n.optin===void 0:n.optout===void 0}));c.size>0&&(i.required=Array.from(c)),a.catchall?._zod.def.type===`never`?i.additionalProperties=!1:a.catchall?a.catchall&&(i.additionalProperties=x_(a.catchall,t,{...r,path:[...r.path,`additionalProperties`]})):t.io===`output`&&(i.additionalProperties=!1)},tv=(e,t,n,r)=>{let i=e._zod.def,a=i.inclusive===!1,o=i.options.map((e,n)=>x_(e,t,{...r,path:[...r.path,a?`oneOf`:`anyOf`,n]}));a?n.oneOf=o:n.anyOf=o},nv=(e,t,n,r)=>{let i=e._zod.def,a=x_(i.left,t,{...r,path:[...r.path,`allOf`,0]}),o=x_(i.right,t,{...r,path:[...r.path,`allOf`,1]}),s=e=>`allOf`in e&&Object.keys(e).length===1;n.allOf=[...s(a)?a.allOf:[a],...s(o)?o.allOf:[o]]},rv=(e,t,n,r)=>{let i=n,a=e._zod.def;i.type=`array`;let o=t.target===`draft-2020-12`?`prefixItems`:`items`,s=t.target===`draft-2020-12`||t.target===`openapi-3.0`?`items`:`additionalItems`,c=a.items.map((e,n)=>x_(e,t,{...r,path:[...r.path,o,n]})),l=a.rest?x_(a.rest,t,{...r,path:[...r.path,s,...t.target===`openapi-3.0`?[a.items.length]:[]]}):null;t.target===`draft-2020-12`?(i.prefixItems=c,l&&(i.items=l)):t.target===`openapi-3.0`?(i.items={anyOf:c},l&&i.items.anyOf.push(l),i.minItems=c.length,l||(i.maxItems=c.length)):(i.items=c,l&&(i.additionalItems=l));let{minimum:u,maximum:d}=e._zod.bag;typeof u==`number`&&(i.minItems=u),typeof d==`number`&&(i.maxItems=d)},iv=(e,t,n,r)=>{let i=n,a=e._zod.def;i.type=`object`;let o=a.keyType,s=o._zod.bag?.patterns;if(a.mode===`loose`&&s&&s.size>0){let e=x_(a.valueType,t,{...r,path:[...r.path,`patternProperties`,`*`]});i.patternProperties={};for(let t of s)i.patternProperties[t.source]=e}else(t.target===`draft-07`||t.target===`draft-2020-12`)&&(i.propertyNames=x_(a.keyType,t,{...r,path:[...r.path,`propertyNames`]})),i.additionalProperties=x_(a.valueType,t,{...r,path:[...r.path,`additionalProperties`]});let c=o._zod.values;if(c){let e=[...c].filter(e=>typeof e==`string`||typeof e==`number`);e.length>0&&(i.required=e)}},av=(e,t,n,r)=>{let i=e._zod.def,a=x_(i.innerType,t,r),o=t.seen.get(e);t.target===`openapi-3.0`?(o.ref=i.innerType,n.nullable=!0):n.anyOf=[a,{type:`null`}]},ov=(e,t,n,r)=>{let i=e._zod.def;x_(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},sv=(e,t,n,r)=>{let i=e._zod.def;x_(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,n.default=JSON.parse(JSON.stringify(i.defaultValue))},cv=(e,t,n,r)=>{let i=e._zod.def;x_(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,t.io===`input`&&(n._prefault=JSON.parse(JSON.stringify(i.defaultValue)))},lv=(e,t,n,r)=>{let i=e._zod.def;x_(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType;let o;try{o=i.catchValue(void 0)}catch{throw Error(`Dynamic catch values are not supported in JSON Schema`)}n.default=o},uv=(e,t,n,r)=>{let i=e._zod.def,a=i.in._zod.traits.has(`$ZodTransform`),o=t.io===`input`?a?i.out:i.in:i.out;x_(o,t,r);let s=t.seen.get(e);s.ref=o},dv=(e,t,n,r)=>{let i=e._zod.def;x_(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,n.readOnly=!0},fv=(e,t,n,r)=>{let i=e._zod.def;x_(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},pv=(e,t,n,r)=>{let i=e._zod.def;x_(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},mv=(e,t,n,r)=>{let i=e._zod.innerType;x_(i,t,r);let a=t.seen.get(e);a.ref=i},hv={string:A_,number:j_,boolean:M_,bigint:N_,symbol:P_,null:F_,undefined:I_,void:L_,never:R_,any:z_,unknown:B_,date:V_,enum:H_,literal:U_,nan:W_,template_literal:G_,file:K_,success:q_,custom:J_,function:Y_,transform:X_,map:Z_,set:Q_,array:$_,object:ev,union:tv,intersection:nv,tuple:rv,record:iv,nullable:av,nonoptional:ov,default:sv,prefault:cv,catch:lv,pipe:uv,readonly:dv,promise:fv,optional:pv,lazy:mv}})),_v,vv=o((()=>{gv(),D_(),_v=class{get metadataRegistry(){return this.ctx.metadataRegistry}get target(){return this.ctx.target}get unrepresentable(){return this.ctx.unrepresentable}get override(){return this.ctx.override}get io(){return this.ctx.io}get counter(){return this.ctx.counter}set counter(e){this.ctx.counter=e}get seen(){return this.ctx.seen}constructor(e){let t=e?.target??`draft-2020-12`;t===`draft-4`&&(t=`draft-04`),t===`draft-7`&&(t=`draft-07`),this.ctx=b_({processors:hv,target:t,...e?.metadata&&{metadata:e.metadata},...e?.unrepresentable&&{unrepresentable:e.unrepresentable},...e?.override&&{override:e.override},...e?.io&&{io:e.io}})}process(e,t={path:[],schemaPath:[]}){return x_(e,this.ctx,t)}emit(e,t){t&&(t.cycles&&(this.ctx.cycles=t.cycles),t.reused&&(this.ctx.reused=t.reused),t.external&&(this.ctx.external=t.external)),S_(this.ctx,e);let{"~standard":n,...r}=C_(this.ctx,e);return r}}})),yv=c({}),bv=o((()=>{})),xv=c({$ZodAny:()=>bd,$ZodArray:()=>Td,$ZodAsyncError:()=>Vo,$ZodBase64:()=>sd,$ZodBase64URL:()=>cd,$ZodBigInt:()=>hd,$ZodBigIntFormat:()=>gd,$ZodBoolean:()=>md,$ZodCIDRv4:()=>ad,$ZodCIDRv6:()=>od,$ZodCUID:()=>qu,$ZodCUID2:()=>Ju,$ZodCatch:()=>Kd,$ZodCheck:()=>Wl,$ZodCheckBigIntFormat:()=>ql,$ZodCheckEndsWith:()=>ou,$ZodCheckGreaterThan:()=>V,$ZodCheckIncludes:()=>iu,$ZodCheckLengthEquals:()=>$l,$ZodCheckLessThan:()=>Gl,$ZodCheckLowerCase:()=>nu,$ZodCheckMaxLength:()=>Zl,$ZodCheckMaxSize:()=>Jl,$ZodCheckMimeType:()=>cu,$ZodCheckMinLength:()=>Ql,$ZodCheckMinSize:()=>Yl,$ZodCheckMultipleOf:()=>H,$ZodCheckNumberFormat:()=>Kl,$ZodCheckOverwrite:()=>lu,$ZodCheckProperty:()=>su,$ZodCheckRegex:()=>tu,$ZodCheckSizeEquals:()=>Xl,$ZodCheckStartsWith:()=>au,$ZodCheckStringFormat:()=>eu,$ZodCheckUpperCase:()=>ru,$ZodCodec:()=>Yd,$ZodCustom:()=>nf,$ZodCustomStringFormat:()=>dd,$ZodDate:()=>wd,$ZodDefault:()=>Hd,$ZodDiscriminatedUnion:()=>kd,$ZodE164:()=>ld,$ZodEmail:()=>Uu,$ZodEmoji:()=>Gu,$ZodEncodeError:()=>Ho,$ZodEnum:()=>Fd,$ZodError:()=>rc,$ZodExactOptional:()=>Bd,$ZodFile:()=>Ld,$ZodFunction:()=>$d,$ZodGUID:()=>Vu,$ZodIPv4:()=>nd,$ZodIPv6:()=>rd,$ZodISODate:()=>$u,$ZodISODateTime:()=>Qu,$ZodISODuration:()=>td,$ZodISOTime:()=>ed,$ZodIntersection:()=>Ad,$ZodJWT:()=>ud,$ZodKSUID:()=>Zu,$ZodLazy:()=>tf,$ZodLiteral:()=>Id,$ZodMAC:()=>id,$ZodMap:()=>Nd,$ZodNaN:()=>qd,$ZodNanoID:()=>Ku,$ZodNever:()=>Sd,$ZodNonOptional:()=>Wd,$ZodNull:()=>yd,$ZodNullable:()=>Vd,$ZodNumber:()=>fd,$ZodNumberFormat:()=>pd,$ZodObject:()=>Ed,$ZodObjectJIT:()=>Dd,$ZodOptional:()=>zd,$ZodPipe:()=>Jd,$ZodPrefault:()=>Ud,$ZodPreprocess:()=>Xd,$ZodPromise:()=>ef,$ZodReadonly:()=>Zd,$ZodRealError:()=>ic,$ZodRecord:()=>Md,$ZodRegistry:()=>lh,$ZodSet:()=>Pd,$ZodString:()=>zu,$ZodStringFormat:()=>Bu,$ZodSuccess:()=>Gd,$ZodSymbol:()=>_d,$ZodTemplateLiteral:()=>Qd,$ZodTransform:()=>Rd,$ZodTuple:()=>jd,$ZodType:()=>U,$ZodULID:()=>Yu,$ZodURL:()=>Wu,$ZodUUID:()=>Hu,$ZodUndefined:()=>vd,$ZodUnion:()=>W,$ZodUnknown:()=>xd,$ZodVoid:()=>Cd,$ZodXID:()=>Xu,$ZodXor:()=>Od,$brand:()=>Bo,$constructor:()=>N,$input:()=>ch,$output:()=>sh,Doc:()=>du,JSONSchema:()=>yv,JSONSchemaGenerator:()=>_v,NEVER:()=>zo,TimePrecision:()=>v_,_any:()=>rg,_array:()=>zg,_base64:()=>Nh,_base64url:()=>Ph,_bigint:()=>Xh,_boolean:()=>Jh,_catch:()=>i_,_check:()=>p_,_cidrv4:()=>jh,_cidrv6:()=>Mh,_coercedBigint:()=>Zh,_coercedBoolean:()=>Yh,_coercedDate:()=>cg,_coercedNumber:()=>Hh,_coercedString:()=>ph,_cuid:()=>Ch,_cuid2:()=>wh,_custom:()=>u_,_date:()=>sg,_decode:()=>gc,_decodeAsync:()=>bc,_default:()=>t_,_discriminatedUnion:()=>Hg,_e164:()=>Fh,_email:()=>mh,_emoji:()=>xh,_encode:()=>mc,_encodeAsync:()=>vc,_endsWith:()=>Ag,_enum:()=>Jg,_file:()=>Zg,_float32:()=>Wh,_float64:()=>Gh,_gt:()=>fg,_gte:()=>pg,_guid:()=>hh,_includes:()=>Og,_int:()=>Uh,_int32:()=>Kh,_int64:()=>Qh,_intersection:()=>Ug,_ipv4:()=>Oh,_ipv6:()=>kh,_isoDate:()=>Rh,_isoDateTime:()=>Lh,_isoDuration:()=>Bh,_isoTime:()=>zh,_jwt:()=>Ih,_ksuid:()=>Dh,_lazy:()=>c_,_length:()=>wg,_literal:()=>Xg,_lowercase:()=>Eg,_lt:()=>ug,_lte:()=>dg,_mac:()=>Ah,_map:()=>Kg,_max:()=>dg,_maxLength:()=>Sg,_maxSize:()=>yg,_mime:()=>Mg,_min:()=>pg,_minLength:()=>Cg,_minSize:()=>bg,_multipleOf:()=>vg,_nan:()=>lg,_nanoid:()=>Sh,_nativeEnum:()=>Yg,_negative:()=>hg,_never:()=>ag,_nonnegative:()=>_g,_nonoptional:()=>n_,_nonpositive:()=>gg,_normalize:()=>Pg,_null:()=>ng,_nullable:()=>e_,_number:()=>Vh,_optional:()=>$g,_overwrite:()=>Ng,_parse:()=>oc,_parseAsync:()=>cc,_pipe:()=>a_,_positive:()=>mg,_promise:()=>l_,_property:()=>jg,_readonly:()=>o_,_record:()=>Gg,_refine:()=>d_,_regex:()=>Tg,_safeDecode:()=>wc,_safeDecodeAsync:()=>Oc,_safeEncode:()=>Sc,_safeEncodeAsync:()=>Ec,_safeParse:()=>uc,_safeParseAsync:()=>fc,_set:()=>qg,_size:()=>xg,_slugify:()=>Rg,_startsWith:()=>kg,_string:()=>fh,_stringFormat:()=>__,_stringbool:()=>g_,_success:()=>r_,_superRefine:()=>f_,_symbol:()=>eg,_templateLiteral:()=>s_,_toLowerCase:()=>Ig,_toUpperCase:()=>Lg,_transform:()=>Qg,_trim:()=>Fg,_tuple:()=>Wg,_uint32:()=>qh,_uint64:()=>$h,_ulid:()=>Th,_undefined:()=>tg,_union:()=>Bg,_unknown:()=>ig,_uppercase:()=>Dg,_url:()=>bh,_uuid:()=>gh,_uuidv4:()=>_h,_uuidv6:()=>vh,_uuidv7:()=>yh,_void:()=>og,_xid:()=>Eh,_xor:()=>Vg,clone:()=>_s,config:()=>Lo,createStandardJSONSchemaMethod:()=>E_,createToJSONSchemaMethod:()=>T_,decode:()=>_c,decodeAsync:()=>xc,describe:()=>m_,encode:()=>hc,encodeAsync:()=>yc,extractDefs:()=>S_,finalize:()=>C_,flattenError:()=>Zs,formatError:()=>Qs,globalConfig:()=>Uo,globalRegistry:()=>uh,initializeContext:()=>b_,isValidBase64:()=>hu,isValidBase64URL:()=>gu,isValidJWT:()=>_u,locales:()=>rh,meta:()=>h_,parse:()=>sc,parseAsync:()=>lc,prettifyError:()=>tc,process:()=>x_,regexes:()=>jc,registry:()=>ah,safeDecode:()=>Tc,safeDecodeAsync:()=>kc,safeEncode:()=>Cc,safeEncodeAsync:()=>Dc,safeParse:()=>dc,safeParseAsync:()=>pc,toDotPath:()=>ec,toJSONSchema:()=>O_,treeifyError:()=>$s,util:()=>Go,version:()=>pu}),Sv=o((()=>{Wo(),Ac(),ac(),rf(),uu(),mu(),z(),Hl(),ih(),dh(),fu(),y_(),D_(),gv(),vv(),bv()}));Ac();function Cv(e){return!!e._zod}function wv(e,t){return Cv(e)?dc(e,t):e.safeParse(t)}function Tv(e){if(!e)return;let t;if(t=Cv(e)?e._zod?.def?.shape:e.shape,t){if(typeof t==`function`)try{return t()}catch{return}return t}}function Ev(e){if(Cv(e)){let t=e._zod?.def;if(t){if(t.value!==void 0)return t.value;if(Array.isArray(t.values)&&t.values.length>0)return t.values[0]}}let t=e._def;if(t){if(t.value!==void 0)return t.value;if(Array.isArray(t.values)&&t.values.length>0)return t.values[0]}let n=e.value;if(n!==void 0)return n}var Dv=c({endsWith:()=>Ag,gt:()=>fg,gte:()=>pg,includes:()=>Og,length:()=>wg,lowercase:()=>Eg,lt:()=>ug,lte:()=>dg,maxLength:()=>Sg,maxSize:()=>yg,mime:()=>Mg,minLength:()=>Cg,minSize:()=>bg,multipleOf:()=>vg,negative:()=>hg,nonnegative:()=>_g,nonpositive:()=>gg,normalize:()=>Pg,overwrite:()=>Ng,positive:()=>mg,property:()=>jg,regex:()=>Tg,size:()=>xg,slugify:()=>Rg,startsWith:()=>kg,toLowerCase:()=>Ig,toUpperCase:()=>Lg,trim:()=>Fg,uppercase:()=>Dg}),Ov=o((()=>{Sv()})),kv=c({ZodISODate:()=>Fv,ZodISODateTime:()=>Pv,ZodISODuration:()=>Lv,ZodISOTime:()=>Iv,date:()=>jv,datetime:()=>Av,duration:()=>Nv,time:()=>Mv});function Av(e){return Lh(Pv,e)}function jv(e){return Rh(Fv,e)}function Mv(e){return zh(Iv,e)}function Nv(e){return Bh(Lv,e)}var Pv,Fv,Iv,Lv,Rv=o((()=>{Sv(),eS(),Pv=N(`ZodISODateTime`,(e,t)=>{Qu.init(e,t),Rb.init(e,t)}),Fv=N(`ZodISODate`,(e,t)=>{$u.init(e,t),Rb.init(e,t)}),Iv=N(`ZodISOTime`,(e,t)=>{ed.init(e,t),Rb.init(e,t)}),Lv=N(`ZodISODuration`,(e,t)=>{td.init(e,t),Rb.init(e,t)})})),zv,Bv,Vv,Hv=o((()=>{Sv(),z(),zv=(e,t)=>{rc.init(e,t),e.name=`ZodError`,Object.defineProperties(e,{format:{value:t=>Qs(e,t)},flatten:{value:t=>Zs(e,t)},addIssue:{value:t=>{e.issues.push(t),e.message=JSON.stringify(e.issues,Qo,2)}},addIssues:{value:t=>{e.issues.push(...t),e.message=JSON.stringify(e.issues,Qo,2)}},isEmpty:{get(){return e.issues.length===0}}})},Bv=N(`ZodError`,zv),Vv=N(`ZodError`,zv,{Parent:Error})})),Uv,Wv,Gv,Kv,qv,Jv,Yv,Xv,Zv,Qv,$v,ey,ty=o((()=>{Sv(),Hv(),Uv=oc(Vv),Wv=cc(Vv),Gv=uc(Vv),Kv=fc(Vv),qv=mc(Vv),Jv=gc(Vv),Yv=vc(Vv),Xv=bc(Vv),Zv=Sc(Vv),Qv=wc(Vv),$v=Ec(Vv),ey=Oc(Vv)})),ny=c({ZodAny:()=>mx,ZodArray:()=>yx,ZodBase64:()=>tx,ZodBase64URL:()=>nx,ZodBigInt:()=>lx,ZodBigIntFormat:()=>ux,ZodBoolean:()=>cx,ZodCIDRv4:()=>$b,ZodCIDRv6:()=>ex,ZodCUID:()=>Gb,ZodCUID2:()=>Kb,ZodCatch:()=>Bx,ZodCodec:()=>Ux,ZodCustom:()=>Xx,ZodCustomStringFormat:()=>ax,ZodDate:()=>vx,ZodDefault:()=>Ix,ZodDiscriminatedUnion:()=>Cx,ZodE164:()=>rx,ZodEmail:()=>zb,ZodEmoji:()=>Ub,ZodEnum:()=>kx,ZodExactOptional:()=>Px,ZodFile:()=>jx,ZodFunction:()=>Yx,ZodGUID:()=>Bb,ZodIPv4:()=>Xb,ZodIPv6:()=>Qb,ZodIntersection:()=>wx,ZodJWT:()=>ix,ZodKSUID:()=>Yb,ZodLazy:()=>qx,ZodLiteral:()=>Ax,ZodMAC:()=>Zb,ZodMap:()=>Dx,ZodNaN:()=>Vx,ZodNanoID:()=>Wb,ZodNever:()=>gx,ZodNonOptional:()=>Rx,ZodNull:()=>px,ZodNullable:()=>Fx,ZodNumber:()=>ox,ZodNumberFormat:()=>sx,ZodObject:()=>bx,ZodOptional:()=>Nx,ZodPipe:()=>Hx,ZodPrefault:()=>Lx,ZodPreprocess:()=>Wx,ZodPromise:()=>Jx,ZodReadonly:()=>Gx,ZodRecord:()=>Ex,ZodSet:()=>Ox,ZodString:()=>Lb,ZodStringFormat:()=>Rb,ZodSuccess:()=>zx,ZodSymbol:()=>dx,ZodTemplateLiteral:()=>Kx,ZodTransform:()=>Mx,ZodTuple:()=>Tx,ZodType:()=>Q,ZodULID:()=>qb,ZodURL:()=>Hb,ZodUUID:()=>Vb,ZodUndefined:()=>fx,ZodUnion:()=>xx,ZodUnknown:()=>hx,ZodVoid:()=>_x,ZodXID:()=>Jb,ZodXor:()=>Sx,_ZodString:()=>Ib,_default:()=>mb,_function:()=>Db,any:()=>Wy,array:()=>q,base64:()=>wy,base64url:()=>Ty,bigint:()=>Ry,boolean:()=>Ly,catch:()=>vb,check:()=>Ob,cidrv4:()=>Sy,cidrv6:()=>Cy,codec:()=>xb,cuid:()=>my,cuid2:()=>hy,custom:()=>kb,date:()=>Jy,describe:()=>Zx,discriminatedUnion:()=>$y,e164:()=>Ey,email:()=>iy,emoji:()=>fy,enum:()=>ob,exactOptional:()=>db,file:()=>cb,float32:()=>Ny,float64:()=>Py,function:()=>Db,guid:()=>ay,hash:()=>jy,hex:()=>Ay,hostname:()=>ky,httpUrl:()=>dy,instanceof:()=>Mb,int:()=>My,int32:()=>Fy,int64:()=>zy,intersection:()=>eb,invertCodec:()=>Sb,ipv4:()=>yy,ipv6:()=>xy,json:()=>Nb,jwt:()=>Dy,keyof:()=>Yy,ksuid:()=>vy,lazy:()=>Tb,literal:()=>Z,looseObject:()=>Zy,looseRecord:()=>rb,mac:()=>by,map:()=>ib,meta:()=>Qx,nan:()=>yb,nanoid:()=>py,nativeEnum:()=>sb,never:()=>Ky,nonoptional:()=>gb,null:()=>Uy,nullable:()=>fb,nullish:()=>pb,number:()=>K,object:()=>J,optional:()=>ub,partialRecord:()=>nb,pipe:()=>bb,prefault:()=>hb,preprocess:()=>Pb,promise:()=>Eb,readonly:()=>Cb,record:()=>X,refine:()=>Ab,set:()=>ab,strictObject:()=>Xy,string:()=>G,stringFormat:()=>Oy,stringbool:()=>$x,success:()=>_b,superRefine:()=>jb,symbol:()=>Vy,templateLiteral:()=>wb,transform:()=>lb,tuple:()=>tb,uint32:()=>Iy,uint64:()=>By,ulid:()=>gy,undefined:()=>Hy,union:()=>Y,unknown:()=>Gy,url:()=>uy,uuid:()=>oy,uuidv4:()=>sy,uuidv6:()=>cy,uuidv7:()=>ly,void:()=>qy,xid:()=>_y,xor:()=>Qy});function ry(e,t,n){let r=Object.getPrototypeOf(e),i=Fb.get(r);if(i||(i=new Set,Fb.set(r,i)),!i.has(t)){i.add(t);for(let e in n){let t=n[e];Object.defineProperty(r,e,{configurable:!0,enumerable:!1,get(){let n=t.bind(this);return Object.defineProperty(this,e,{configurable:!0,writable:!0,enumerable:!0,value:n}),n},set(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,enumerable:!0,value:t})}})}}}function G(e){return fh(Lb,e)}function iy(e){return mh(zb,e)}function ay(e){return hh(Bb,e)}function oy(e){return gh(Vb,e)}function sy(e){return _h(Vb,e)}function cy(e){return vh(Vb,e)}function ly(e){return yh(Vb,e)}function uy(e){return bh(Hb,e)}function dy(e){return bh(Hb,{protocol:pl,hostname:fl,...I(e)})}function fy(e){return xh(Ub,e)}function py(e){return Sh(Wb,e)}function my(e){return Ch(Gb,e)}function hy(e){return wh(Kb,e)}function gy(e){return Th(qb,e)}function _y(e){return Eh(Jb,e)}function vy(e){return Dh(Yb,e)}function yy(e){return Oh(Xb,e)}function by(e){return Ah(Zb,e)}function xy(e){return kh(Qb,e)}function Sy(e){return jh($b,e)}function Cy(e){return Mh(ex,e)}function wy(e){return Nh(tx,e)}function Ty(e){return Ph(nx,e)}function Ey(e){return Fh(rx,e)}function Dy(e){return Ih(ix,e)}function Oy(e,t,n={}){return __(ax,e,t,n)}function ky(e){return __(ax,`hostname`,dl,e)}function Ay(e){return __(ax,`hex`,El,e)}function jy(e,t){let n=`${e}_${t?.enc??`hex`}`,r=jc[n];if(!r)throw Error(`Unrecognized hash format: ${n}`);return __(ax,n,r,t)}function K(e){return Vh(ox,e)}function My(e){return Uh(sx,e)}function Ny(e){return Wh(sx,e)}function Py(e){return Gh(sx,e)}function Fy(e){return Kh(sx,e)}function Iy(e){return qh(sx,e)}function Ly(e){return Jh(cx,e)}function Ry(e){return Xh(lx,e)}function zy(e){return Qh(ux,e)}function By(e){return $h(ux,e)}function Vy(e){return eg(dx,e)}function Hy(e){return tg(fx,e)}function Uy(e){return ng(px,e)}function Wy(){return rg(mx)}function Gy(){return ig(hx)}function Ky(e){return ag(gx,e)}function qy(e){return og(_x,e)}function Jy(e){return sg(vx,e)}function q(e,t){return zg(yx,e,t)}function Yy(e){let t=e._zod.def.shape;return ob(Object.keys(t))}function J(e,t){let n={type:`object`,shape:e??{},...I(t)};return new bx(n)}function Xy(e,t){return new bx({type:`object`,shape:e,catchall:Ky(),...I(t)})}function Zy(e,t){return new bx({type:`object`,shape:e,catchall:Gy(),...I(t)})}function Y(e,t){return new xx({type:`union`,options:e,...I(t)})}function Qy(e,t){return new Sx({type:`union`,options:e,inclusive:!1,...I(t)})}function $y(e,t,n){return new Cx({type:`union`,options:t,discriminator:e,...I(n)})}function eb(e,t){return new wx({type:`intersection`,left:e,right:t})}function tb(e,t,n){let r=t instanceof U;return new Tx({type:`tuple`,items:e,rest:r?t:null,...I(r?n:t)})}function X(e,t,n){return!t||!t._zod?new Ex({type:`record`,keyType:G(),valueType:e,...I(t)}):new Ex({type:`record`,keyType:e,valueType:t,...I(n)})}function nb(e,t,n){let r=_s(e);return r._zod.values=void 0,new Ex({type:`record`,keyType:r,valueType:t,...I(n)})}function rb(e,t,n){return new Ex({type:`record`,keyType:e,valueType:t,mode:`loose`,...I(n)})}function ib(e,t,n){return new Dx({type:`map`,keyType:e,valueType:t,...I(n)})}function ab(e,t){return new Ox({type:`set`,valueType:e,...I(t)})}function ob(e,t){let n=Array.isArray(e)?Object.fromEntries(e.map(e=>[e,e])):e;return new kx({type:`enum`,entries:n,...I(t)})}function sb(e,t){return new kx({type:`enum`,entries:e,...I(t)})}function Z(e,t){return new Ax({type:`literal`,values:Array.isArray(e)?e:[e],...I(t)})}function cb(e){return Zg(jx,e)}function lb(e){return new Mx({type:`transform`,transform:e})}function ub(e){return new Nx({type:`optional`,innerType:e})}function db(e){return new Px({type:`optional`,innerType:e})}function fb(e){return new Fx({type:`nullable`,innerType:e})}function pb(e){return ub(fb(e))}function mb(e,t){return new Ix({type:`default`,innerType:e,get defaultValue(){return typeof t==`function`?t():ms(t)}})}function hb(e,t){return new Lx({type:`prefault`,innerType:e,get defaultValue(){return typeof t==`function`?t():ms(t)}})}function gb(e,t){return new Rx({type:`nonoptional`,innerType:e,...I(t)})}function _b(e){return new zx({type:`success`,innerType:e})}function vb(e,t){return new Bx({type:`catch`,innerType:e,catchValue:typeof t==`function`?t:()=>t})}function yb(e){return lg(Vx,e)}function bb(e,t){return new Hx({type:`pipe`,in:e,out:t})}function xb(e,t,n){return new Ux({type:`pipe`,in:e,out:t,transform:n.decode,reverseTransform:n.encode})}function Sb(e){let t=e._zod.def;return new Ux({type:`pipe`,in:t.out,out:t.in,transform:t.reverseTransform,reverseTransform:t.transform})}function Cb(e){return new Gx({type:`readonly`,innerType:e})}function wb(e,t){return new Kx({type:`template_literal`,parts:e,...I(t)})}function Tb(e){return new qx({type:`lazy`,getter:e})}function Eb(e){return new Jx({type:`promise`,innerType:e})}function Db(e){return new Yx({type:`function`,input:Array.isArray(e?.input)?tb(e?.input):e?.input??q(Gy()),output:e?.output??Gy()})}function Ob(e){let t=new Wl({check:`custom`});return t._zod.check=e,t}function kb(e,t){return u_(Xx,e??(()=>!0),t)}function Ab(e,t={}){return d_(Xx,e,t)}function jb(e,t){return f_(e,t)}function Mb(e,t={}){let n=new Xx({type:`custom`,check:`custom`,fn:t=>t instanceof e,abort:!0,...I(t)});return n._zod.bag.Class=e,n._zod.check=t=>{t.value instanceof e||t.issues.push({code:`invalid_type`,expected:e.name,input:t.value,inst:n,path:[...n._zod.def.path??[]]})},n}function Nb(e){let t=Tb(()=>Y([G(e),K(),Ly(),Uy(),q(t),X(G(),t)]));return t}function Pb(e,t){return new Wx({type:`pipe`,in:lb(e),out:t})}var Fb,Q,Ib,Lb,Rb,zb,Bb,Vb,Hb,Ub,Wb,Gb,Kb,qb,Jb,Yb,Xb,Zb,Qb,$b,ex,tx,nx,rx,ix,ax,ox,sx,cx,lx,ux,dx,fx,px,mx,hx,gx,_x,vx,yx,bx,xx,Sx,Cx,wx,Tx,Ex,Dx,Ox,kx,Ax,jx,Mx,Nx,Px,Fx,Ix,Lx,Rx,zx,Bx,Vx,Hx,Ux,Wx,Gx,Kx,qx,Jx,Yx,Xx,Zx,Qx,$x,eS=o((()=>{Sv(),gv(),D_(),Ov(),Rv(),ty(),Fb=new WeakMap,Q=N(`ZodType`,(e,t)=>(U.init(e,t),Object.assign(e[`~standard`],{jsonSchema:{input:E_(e,`input`),output:E_(e,`output`)}}),e.toJSONSchema=T_(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.parse=(t,n)=>Uv(e,t,n,{callee:e.parse}),e.safeParse=(t,n)=>Gv(e,t,n),e.parseAsync=async(t,n)=>Wv(e,t,n,{callee:e.parseAsync}),e.safeParseAsync=async(t,n)=>Kv(e,t,n),e.spa=e.safeParseAsync,e.encode=(t,n)=>qv(e,t,n),e.decode=(t,n)=>Jv(e,t,n),e.encodeAsync=async(t,n)=>Yv(e,t,n),e.decodeAsync=async(t,n)=>Xv(e,t,n),e.safeEncode=(t,n)=>Zv(e,t,n),e.safeDecode=(t,n)=>Qv(e,t,n),e.safeEncodeAsync=async(t,n)=>$v(e,t,n),e.safeDecodeAsync=async(t,n)=>ey(e,t,n),ry(e,`ZodType`,{check(...e){let t=this.def;return this.clone(as(t,{checks:[...t.checks??[],...e.map(e=>typeof e==`function`?{_zod:{check:e,def:{check:`custom`},onattach:[]}}:e)]}),{parent:!0})},with(...e){return this.check(...e)},clone(e,t){return _s(this,e,t)},brand(){return this},register(e,t){return e.add(this,t),this},refine(e,t){return this.check(Ab(e,t))},superRefine(e,t){return this.check(jb(e,t))},overwrite(e){return this.check(Ng(e))},optional(){return ub(this)},exactOptional(){return db(this)},nullable(){return fb(this)},nullish(){return ub(fb(this))},nonoptional(e){return gb(this,e)},array(){return q(this)},or(e){return Y([this,e])},and(e){return eb(this,e)},transform(e){return bb(this,lb(e))},default(e){return mb(this,e)},prefault(e){return hb(this,e)},catch(e){return vb(this,e)},pipe(e){return bb(this,e)},readonly(){return Cb(this)},describe(e){let t=this.clone();return uh.add(t,{description:e}),t},meta(...e){if(e.length===0)return uh.get(this);let t=this.clone();return uh.add(t,e[0]),t},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(e){return e(this)}}),Object.defineProperty(e,"description",{get(){return uh.get(e)?.description},configurable:!0}),e)),Ib=N(`_ZodString`,(e,t)=>{zu.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>A_(e,t,n,r);let n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,ry(e,`_ZodString`,{regex(...e){return this.check(Tg(...e))},includes(...e){return this.check(Og(...e))},startsWith(...e){return this.check(kg(...e))},endsWith(...e){return this.check(Ag(...e))},min(...e){return this.check(Cg(...e))},max(...e){return this.check(Sg(...e))},length(...e){return this.check(wg(...e))},nonempty(...e){return this.check(Cg(1,...e))},lowercase(e){return this.check(Eg(e))},uppercase(e){return this.check(Dg(e))},trim(){return this.check(Fg())},normalize(...e){return this.check(Pg(...e))},toLowerCase(){return this.check(Ig())},toUpperCase(){return this.check(Lg())},slugify(){return this.check(Rg())}})}),Lb=N(`ZodString`,(e,t)=>{zu.init(e,t),Ib.init(e,t),e.email=t=>e.check(mh(zb,t)),e.url=t=>e.check(bh(Hb,t)),e.jwt=t=>e.check(Ih(ix,t)),e.emoji=t=>e.check(xh(Ub,t)),e.guid=t=>e.check(hh(Bb,t)),e.uuid=t=>e.check(gh(Vb,t)),e.uuidv4=t=>e.check(_h(Vb,t)),e.uuidv6=t=>e.check(vh(Vb,t)),e.uuidv7=t=>e.check(yh(Vb,t)),e.nanoid=t=>e.check(Sh(Wb,t)),e.guid=t=>e.check(hh(Bb,t)),e.cuid=t=>e.check(Ch(Gb,t)),e.cuid2=t=>e.check(wh(Kb,t)),e.ulid=t=>e.check(Th(qb,t)),e.base64=t=>e.check(Nh(tx,t)),e.base64url=t=>e.check(Ph(nx,t)),e.xid=t=>e.check(Eh(Jb,t)),e.ksuid=t=>e.check(Dh(Yb,t)),e.ipv4=t=>e.check(Oh(Xb,t)),e.ipv6=t=>e.check(kh(Qb,t)),e.cidrv4=t=>e.check(jh($b,t)),e.cidrv6=t=>e.check(Mh(ex,t)),e.e164=t=>e.check(Fh(rx,t)),e.datetime=t=>e.check(Av(t)),e.date=t=>e.check(jv(t)),e.time=t=>e.check(Mv(t)),e.duration=t=>e.check(Nv(t))}),Rb=N(`ZodStringFormat`,(e,t)=>{Bu.init(e,t),Ib.init(e,t)}),zb=N(`ZodEmail`,(e,t)=>{Uu.init(e,t),Rb.init(e,t)}),Bb=N(`ZodGUID`,(e,t)=>{Vu.init(e,t),Rb.init(e,t)}),Vb=N(`ZodUUID`,(e,t)=>{Hu.init(e,t),Rb.init(e,t)}),Hb=N(`ZodURL`,(e,t)=>{Wu.init(e,t),Rb.init(e,t)}),Ub=N(`ZodEmoji`,(e,t)=>{Gu.init(e,t),Rb.init(e,t)}),Wb=N(`ZodNanoID`,(e,t)=>{Ku.init(e,t),Rb.init(e,t)}),Gb=N(`ZodCUID`,(e,t)=>{qu.init(e,t),Rb.init(e,t)}),Kb=N(`ZodCUID2`,(e,t)=>{Ju.init(e,t),Rb.init(e,t)}),qb=N(`ZodULID`,(e,t)=>{Yu.init(e,t),Rb.init(e,t)}),Jb=N(`ZodXID`,(e,t)=>{Xu.init(e,t),Rb.init(e,t)}),Yb=N(`ZodKSUID`,(e,t)=>{Zu.init(e,t),Rb.init(e,t)}),Xb=N(`ZodIPv4`,(e,t)=>{nd.init(e,t),Rb.init(e,t)}),Zb=N(`ZodMAC`,(e,t)=>{id.init(e,t),Rb.init(e,t)}),Qb=N(`ZodIPv6`,(e,t)=>{rd.init(e,t),Rb.init(e,t)}),$b=N(`ZodCIDRv4`,(e,t)=>{ad.init(e,t),Rb.init(e,t)}),ex=N(`ZodCIDRv6`,(e,t)=>{od.init(e,t),Rb.init(e,t)}),tx=N(`ZodBase64`,(e,t)=>{sd.init(e,t),Rb.init(e,t)}),nx=N(`ZodBase64URL`,(e,t)=>{cd.init(e,t),Rb.init(e,t)}),rx=N(`ZodE164`,(e,t)=>{ld.init(e,t),Rb.init(e,t)}),ix=N(`ZodJWT`,(e,t)=>{ud.init(e,t),Rb.init(e,t)}),ax=N(`ZodCustomStringFormat`,(e,t)=>{dd.init(e,t),Rb.init(e,t)}),ox=N(`ZodNumber`,(e,t)=>{fd.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>j_(e,t,n,r),ry(e,`ZodNumber`,{gt(e,t){return this.check(fg(e,t))},gte(e,t){return this.check(pg(e,t))},min(e,t){return this.check(pg(e,t))},lt(e,t){return this.check(ug(e,t))},lte(e,t){return this.check(dg(e,t))},max(e,t){return this.check(dg(e,t))},int(e){return this.check(My(e))},safe(e){return this.check(My(e))},positive(e){return this.check(fg(0,e))},nonnegative(e){return this.check(pg(0,e))},negative(e){return this.check(ug(0,e))},nonpositive(e){return this.check(dg(0,e))},multipleOf(e,t){return this.check(vg(e,t))},step(e,t){return this.check(vg(e,t))},finite(){return this}});let n=e._zod.bag;e.minValue=Math.max(n.minimum??-1/0,n.exclusiveMinimum??-1/0)??null,e.maxValue=Math.min(n.maximum??1/0,n.exclusiveMaximum??1/0)??null,e.isInt=(n.format??``).includes(`int`)||Number.isSafeInteger(n.multipleOf??.5),e.isFinite=!0,e.format=n.format??null}),sx=N(`ZodNumberFormat`,(e,t)=>{pd.init(e,t),ox.init(e,t)}),cx=N(`ZodBoolean`,(e,t)=>{md.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>M_(e,t,n,r)}),lx=N(`ZodBigInt`,(e,t)=>{hd.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>N_(e,t,n,r),e.gte=(t,n)=>e.check(pg(t,n)),e.min=(t,n)=>e.check(pg(t,n)),e.gt=(t,n)=>e.check(fg(t,n)),e.gte=(t,n)=>e.check(pg(t,n)),e.min=(t,n)=>e.check(pg(t,n)),e.lt=(t,n)=>e.check(ug(t,n)),e.lte=(t,n)=>e.check(dg(t,n)),e.max=(t,n)=>e.check(dg(t,n)),e.positive=t=>e.check(fg(BigInt(0),t)),e.negative=t=>e.check(ug(BigInt(0),t)),e.nonpositive=t=>e.check(dg(BigInt(0),t)),e.nonnegative=t=>e.check(pg(BigInt(0),t)),e.multipleOf=(t,n)=>e.check(vg(t,n));let n=e._zod.bag;e.minValue=n.minimum??null,e.maxValue=n.maximum??null,e.format=n.format??null}),ux=N(`ZodBigIntFormat`,(e,t)=>{gd.init(e,t),lx.init(e,t)}),dx=N(`ZodSymbol`,(e,t)=>{_d.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>P_(e,t,n,r)}),fx=N(`ZodUndefined`,(e,t)=>{vd.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>I_(e,t,n,r)}),px=N(`ZodNull`,(e,t)=>{yd.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>F_(e,t,n,r)}),mx=N(`ZodAny`,(e,t)=>{bd.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>z_(e,t,n,r)}),hx=N(`ZodUnknown`,(e,t)=>{xd.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>B_(e,t,n,r)}),gx=N(`ZodNever`,(e,t)=>{Sd.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>R_(e,t,n,r)}),_x=N(`ZodVoid`,(e,t)=>{Cd.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>L_(e,t,n,r)}),vx=N(`ZodDate`,(e,t)=>{wd.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>V_(e,t,n,r),e.min=(t,n)=>e.check(pg(t,n)),e.max=(t,n)=>e.check(dg(t,n));let n=e._zod.bag;e.minDate=n.minimum?new Date(n.minimum):null,e.maxDate=n.maximum?new Date(n.maximum):null}),yx=N(`ZodArray`,(e,t)=>{Td.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>$_(e,t,n,r),e.element=t.element,ry(e,`ZodArray`,{min(e,t){return this.check(Cg(e,t))},nonempty(e){return this.check(Cg(1,e))},max(e,t){return this.check(Sg(e,t))},length(e,t){return this.check(wg(e,t))},unwrap(){return this.element}})}),bx=N(`ZodObject`,(e,t)=>{Dd.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>ev(e,t,n,r),F(e,`shape`,()=>t.shape),ry(e,`ZodObject`,{keyof(){return ob(Object.keys(this._zod.def.shape))},catchall(e){return this.clone({...this._zod.def,catchall:e})},passthrough(){return this.clone({...this._zod.def,catchall:Gy()})},loose(){return this.clone({...this._zod.def,catchall:Gy()})},strict(){return this.clone({...this._zod.def,catchall:Ky()})},strip(){return this.clone({...this._zod.def,catchall:void 0})},extend(e){return Ss(this,e)},safeExtend(e){return Cs(this,e)},merge(e){return ws(this,e)},pick(e){return bs(this,e)},omit(e){return xs(this,e)},partial(...e){return Ts(Nx,this,e[0])},required(...e){return Es(Rx,this,e[0])}})}),xx=N(`ZodUnion`,(e,t)=>{W.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>tv(e,t,n,r),e.options=t.options}),Sx=N(`ZodXor`,(e,t)=>{xx.init(e,t),Od.init(e,t),e._zod.processJSONSchema=(t,n,r)=>tv(e,t,n,r),e.options=t.options}),Cx=N(`ZodDiscriminatedUnion`,(e,t)=>{xx.init(e,t),kd.init(e,t)}),wx=N(`ZodIntersection`,(e,t)=>{Ad.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>nv(e,t,n,r)}),Tx=N(`ZodTuple`,(e,t)=>{jd.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>rv(e,t,n,r),e.rest=t=>e.clone({...e._zod.def,rest:t})}),Ex=N(`ZodRecord`,(e,t)=>{Md.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>iv(e,t,n,r),e.keyType=t.keyType,e.valueType=t.valueType}),Dx=N(`ZodMap`,(e,t)=>{Nd.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Z_(e,t,n,r),e.keyType=t.keyType,e.valueType=t.valueType,e.min=(...t)=>e.check(bg(...t)),e.nonempty=t=>e.check(bg(1,t)),e.max=(...t)=>e.check(yg(...t)),e.size=(...t)=>e.check(xg(...t))}),Ox=N(`ZodSet`,(e,t)=>{Pd.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Q_(e,t,n,r),e.min=(...t)=>e.check(bg(...t)),e.nonempty=t=>e.check(bg(1,t)),e.max=(...t)=>e.check(yg(...t)),e.size=(...t)=>e.check(xg(...t))}),kx=N(`ZodEnum`,(e,t)=>{Fd.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>H_(e,t,n,r),e.enum=t.entries,e.options=Object.values(t.entries);let n=new Set(Object.keys(t.entries));e.extract=(e,r)=>{let i={};for(let r of e)if(n.has(r))i[r]=t.entries[r];else throw Error(`Key ${r} not found in enum`);return new kx({...t,checks:[],...I(r),entries:i})},e.exclude=(e,r)=>{let i={...t.entries};for(let t of e)if(n.has(t))delete i[t];else throw Error(`Key ${t} not found in enum`);return new kx({...t,checks:[],...I(r),entries:i})}}),Ax=N(`ZodLiteral`,(e,t)=>{Id.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>U_(e,t,n,r),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if(t.values.length>1)throw Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})}),jx=N(`ZodFile`,(e,t)=>{Ld.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>K_(e,t,n,r),e.min=(t,n)=>e.check(bg(t,n)),e.max=(t,n)=>e.check(yg(t,n)),e.mime=(t,n)=>e.check(Mg(Array.isArray(t)?t:[t],n))}),Mx=N(`ZodTransform`,(e,t)=>{Rd.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>X_(e,t,n,r),e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new Ho(e.constructor.name);n.addIssue=r=>{if(typeof r==`string`)n.issues.push(Ps(r,n.value,t));else{let t=r;t.fatal&&(t.continue=!1),t.code??=`custom`,t.input??=n.value,t.inst??=e,n.issues.push(Ps(t))}};let i=t.transform(n.value,n);return i instanceof Promise?i.then(e=>(n.value=e,n.fallback=!0,n)):(n.value=i,n.fallback=!0,n)}}),Nx=N(`ZodOptional`,(e,t)=>{zd.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>pv(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),Px=N(`ZodExactOptional`,(e,t)=>{Bd.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>pv(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),Fx=N(`ZodNullable`,(e,t)=>{Vd.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>av(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),Ix=N(`ZodDefault`,(e,t)=>{Hd.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>sv(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap}),Lx=N(`ZodPrefault`,(e,t)=>{Ud.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>cv(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),Rx=N(`ZodNonOptional`,(e,t)=>{Wd.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>ov(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),zx=N(`ZodSuccess`,(e,t)=>{Gd.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>q_(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),Bx=N(`ZodCatch`,(e,t)=>{Kd.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>lv(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap}),Vx=N(`ZodNaN`,(e,t)=>{qd.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>W_(e,t,n,r)}),Hx=N(`ZodPipe`,(e,t)=>{Jd.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>uv(e,t,n,r),e.in=t.in,e.out=t.out}),Ux=N(`ZodCodec`,(e,t)=>{Hx.init(e,t),Yd.init(e,t)}),Wx=N(`ZodPreprocess`,(e,t)=>{Hx.init(e,t),Xd.init(e,t)}),Gx=N(`ZodReadonly`,(e,t)=>{Zd.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>dv(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),Kx=N(`ZodTemplateLiteral`,(e,t)=>{Qd.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>G_(e,t,n,r)}),qx=N(`ZodLazy`,(e,t)=>{tf.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>mv(e,t,n,r),e.unwrap=()=>e._zod.def.getter()}),Jx=N(`ZodPromise`,(e,t)=>{ef.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>fv(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),Yx=N(`ZodFunction`,(e,t)=>{$d.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Y_(e,t,n,r)}),Xx=N(`ZodCustom`,(e,t)=>{nf.init(e,t),Q.init(e,t),e._zod.processJSONSchema=(t,n,r)=>J_(e,t,n,r)}),Zx=m_,Qx=h_,$x=(...e)=>g_({Codec:Ux,Boolean:cx,String:Lb},...e)}));function tS(e){Lo({customError:e})}function nS(){return Lo().customError}var rS,iS,aS=o((()=>{Sv(),rS={invalid_type:`invalid_type`,too_big:`too_big`,too_small:`too_small`,invalid_format:`invalid_format`,not_multiple_of:`not_multiple_of`,unrecognized_keys:`unrecognized_keys`,invalid_union:`invalid_union`,invalid_key:`invalid_key`,invalid_element:`invalid_element`,invalid_value:`invalid_value`,custom:`custom`},iS||={}}));function oS(e,t){let n=e.$schema;return n===`https://json-schema.org/draft/2020-12/schema`?`draft-2020-12`:n===`http://json-schema.org/draft-07/schema#`?`draft-7`:n===`http://json-schema.org/draft-04/schema#`?`draft-4`:t??`draft-2020-12`}function sS(e,t){if(!e.startsWith(`#`))throw Error(`External $ref is not supported, only local refs (#/...) are allowed`);let n=e.slice(1).split(`/`).filter(Boolean);if(n.length===0)return t.rootSchema;let r=t.version===`draft-2020-12`?`$defs`:`definitions`;if(n[0]===r){let r=n[1];if(!r||!t.defs[r])throw Error(`Reference not found: ${e}`);return t.defs[r]}throw Error(`Reference not found: ${e}`)}function cS(e,t){if(e.not!==void 0){if(typeof e.not==`object`&&Object.keys(e.not).length===0)return $.never();throw Error(`not is not supported in Zod (except { not: {} } for never)`)}if(e.unevaluatedItems!==void 0)throw Error(`unevaluatedItems is not supported`);if(e.unevaluatedProperties!==void 0)throw Error(`unevaluatedProperties is not supported`);if(e.if!==void 0||e.then!==void 0||e.else!==void 0)throw Error(`Conditional schemas (if/then/else) are not supported`);if(e.dependentSchemas!==void 0||e.dependentRequired!==void 0)throw Error(`dependentSchemas and dependentRequired are not supported`);if(e.$ref){let n=e.$ref;if(t.refs.has(n))return t.refs.get(n);if(t.processing.has(n))return $.lazy(()=>{if(!t.refs.has(n))throw Error(`Circular reference not resolved: ${n}`);return t.refs.get(n)});t.processing.add(n);let r=lS(sS(n,t),t);return t.refs.set(n,r),t.processing.delete(n),r}if(e.enum!==void 0){let n=e.enum;if(t.version===`openapi-3.0`&&e.nullable===!0&&n.length===1&&n[0]===null)return $.null();if(n.length===0)return $.never();if(n.length===1)return $.literal(n[0]);if(n.every(e=>typeof e==`string`))return $.enum(n);let r=n.map(e=>$.literal(e));return r.length<2?r[0]:$.union([r[0],r[1],...r.slice(2)])}if(e.const!==void 0)return $.literal(e.const);let n=e.type;if(Array.isArray(n)){let r=n.map(n=>cS({...e,type:n},t));return r.length===0?$.never():r.length===1?r[0]:$.union(r)}if(!n)return $.any();let r;switch(n){case`string`:{let t=$.string();if(e.format){let n=e.format;n===`email`?t=t.check($.email()):n===`uri`||n===`uri-reference`?t=t.check($.url()):n===`uuid`||n===`guid`?t=t.check($.uuid()):n===`date-time`?t=t.check($.iso.datetime()):n===`date`?t=t.check($.iso.date()):n===`time`?t=t.check($.iso.time()):n===`duration`?t=t.check($.iso.duration()):n===`ipv4`?t=t.check($.ipv4()):n===`ipv6`?t=t.check($.ipv6()):n===`mac`?t=t.check($.mac()):n===`cidr`?t=t.check($.cidrv4()):n===`cidr-v6`?t=t.check($.cidrv6()):n===`base64`?t=t.check($.base64()):n===`base64url`?t=t.check($.base64url()):n===`e164`?t=t.check($.e164()):n===`jwt`?t=t.check($.jwt()):n===`emoji`?t=t.check($.emoji()):n===`nanoid`?t=t.check($.nanoid()):n===`cuid`?t=t.check($.cuid()):n===`cuid2`?t=t.check($.cuid2()):n===`ulid`?t=t.check($.ulid()):n===`xid`?t=t.check($.xid()):n===`ksuid`&&(t=t.check($.ksuid()))}typeof e.minLength==`number`&&(t=t.min(e.minLength)),typeof e.maxLength==`number`&&(t=t.max(e.maxLength)),e.pattern&&(t=t.regex(new RegExp(e.pattern))),r=t;break}case`number`:case`integer`:{let t=n===`integer`?$.number().int():$.number();typeof e.minimum==`number`&&(t=t.min(e.minimum)),typeof e.maximum==`number`&&(t=t.max(e.maximum)),typeof e.exclusiveMinimum==`number`?t=t.gt(e.exclusiveMinimum):e.exclusiveMinimum===!0&&typeof e.minimum==`number`&&(t=t.gt(e.minimum)),typeof e.exclusiveMaximum==`number`?t=t.lt(e.exclusiveMaximum):e.exclusiveMaximum===!0&&typeof e.maximum==`number`&&(t=t.lt(e.maximum)),typeof e.multipleOf==`number`&&(t=t.multipleOf(e.multipleOf)),r=t;break}case`boolean`:r=$.boolean();break;case`null`:r=$.null();break;case`object`:{let n={},i=e.properties||{},a=new Set(e.required||[]);for(let[e,r]of Object.entries(i)){let i=lS(r,t);n[e]=a.has(e)?i:i.optional()}if(e.propertyNames){let i=lS(e.propertyNames,t),a=e.additionalProperties&&typeof e.additionalProperties==`object`?lS(e.additionalProperties,t):$.any();if(Object.keys(n).length===0){r=$.record(i,a);break}let o=$.object(n).passthrough(),s=$.looseRecord(i,a);r=$.intersection(o,s);break}if(e.patternProperties){let i=e.patternProperties,a=Object.keys(i),o=[];for(let e of a){let n=lS(i[e],t),r=$.string().regex(new RegExp(e));o.push($.looseRecord(r,n))}let s=[];if(Object.keys(n).length>0&&s.push($.object(n).passthrough()),s.push(...o),s.length===0)r=$.object({}).passthrough();else if(s.length===1)r=s[0];else{let e=$.intersection(s[0],s[1]);for(let t=2;tlS(e,t)),o=i&&typeof i==`object`&&!Array.isArray(i)?lS(i,t):void 0;r=o?$.tuple(a).rest(o):$.tuple(a),typeof e.minItems==`number`&&(r=r.check($.minLength(e.minItems))),typeof e.maxItems==`number`&&(r=r.check($.maxLength(e.maxItems)))}else if(Array.isArray(i)){let n=i.map(e=>lS(e,t)),a=e.additionalItems&&typeof e.additionalItems==`object`?lS(e.additionalItems,t):void 0;r=a?$.tuple(n).rest(a):$.tuple(n),typeof e.minItems==`number`&&(r=r.check($.minLength(e.minItems))),typeof e.maxItems==`number`&&(r=r.check($.maxLength(e.maxItems)))}else if(i!==void 0){let n=lS(i,t),a=$.array(n);typeof e.minItems==`number`&&(a=a.min(e.minItems)),typeof e.maxItems==`number`&&(a=a.max(e.maxItems)),r=a}else r=$.array($.any());break}default:throw Error(`Unsupported type: ${n}`)}return r}function lS(e,t){if(typeof e==`boolean`)return e?$.any():$.never();let n=cS(e,t),r=e.type||e.enum!==void 0||e.const!==void 0;if(e.anyOf&&Array.isArray(e.anyOf)){let i=e.anyOf.map(e=>lS(e,t)),a=$.union(i);n=r?$.intersection(n,a):a}if(e.oneOf&&Array.isArray(e.oneOf)){let i=e.oneOf.map(e=>lS(e,t)),a=$.xor(i);n=r?$.intersection(n,a):a}if(e.allOf&&Array.isArray(e.allOf))if(e.allOf.length===0)n=r?n:$.any();else{let i=r?n:lS(e.allOf[0],t),a=+!r;for(let n=a;n0&&t.registry.add(n,i),e.description&&(n=n.describe(e.description)),n}function uS(e,t){if(typeof e==`boolean`)return e?$.any():$.never();let n;try{n=JSON.parse(JSON.stringify(e))}catch{throw Error(`fromJSONSchema input is not valid JSON (possibly cyclic); use $defs/$ref for recursive schemas`)}let r={version:oS(n,t?.defaultTarget),defs:n.$defs||n.definitions||{},refs:new Map,processing:new Set,rootSchema:n,registry:t?.registry??uh};return lS(n,r)}var $,dS,fS=o((()=>{dh(),Ov(),Rv(),eS(),$={...ny,...Dv,iso:kv},dS=new Set(`$schema.$ref.$defs.definitions.$id.id.$comment.$anchor.$vocabulary.$dynamicRef.$dynamicAnchor.type.enum.const.anyOf.oneOf.allOf.not.properties.required.additionalProperties.patternProperties.propertyNames.minProperties.maxProperties.items.prefixItems.additionalItems.minItems.maxItems.uniqueItems.contains.minContains.maxContains.minLength.maxLength.pattern.format.minimum.maximum.exclusiveMinimum.exclusiveMaximum.multipleOf.description.default.contentEncoding.contentMediaType.contentSchema.unevaluatedItems.unevaluatedProperties.if.then.else.dependentSchemas.dependentRequired.nullable.readOnly`.split(`.`))})),pS=c({bigint:()=>_S,boolean:()=>gS,date:()=>vS,number:()=>hS,string:()=>mS});function mS(e){return ph(Lb,e)}function hS(e){return Hh(ox,e)}function gS(e){return Yh(cx,e)}function _S(e){return Zh(lx,e)}function vS(e){return cg(vx,e)}var yS=o((()=>{Sv(),eS()})),bS=c({$brand:()=>Bo,$input:()=>ch,$output:()=>sh,NEVER:()=>zo,TimePrecision:()=>v_,ZodAny:()=>mx,ZodArray:()=>yx,ZodBase64:()=>tx,ZodBase64URL:()=>nx,ZodBigInt:()=>lx,ZodBigIntFormat:()=>ux,ZodBoolean:()=>cx,ZodCIDRv4:()=>$b,ZodCIDRv6:()=>ex,ZodCUID:()=>Gb,ZodCUID2:()=>Kb,ZodCatch:()=>Bx,ZodCodec:()=>Ux,ZodCustom:()=>Xx,ZodCustomStringFormat:()=>ax,ZodDate:()=>vx,ZodDefault:()=>Ix,ZodDiscriminatedUnion:()=>Cx,ZodE164:()=>rx,ZodEmail:()=>zb,ZodEmoji:()=>Ub,ZodEnum:()=>kx,ZodError:()=>Bv,ZodExactOptional:()=>Px,ZodFile:()=>jx,ZodFirstPartyTypeKind:()=>iS,ZodFunction:()=>Yx,ZodGUID:()=>Bb,ZodIPv4:()=>Xb,ZodIPv6:()=>Qb,ZodISODate:()=>Fv,ZodISODateTime:()=>Pv,ZodISODuration:()=>Lv,ZodISOTime:()=>Iv,ZodIntersection:()=>wx,ZodIssueCode:()=>rS,ZodJWT:()=>ix,ZodKSUID:()=>Yb,ZodLazy:()=>qx,ZodLiteral:()=>Ax,ZodMAC:()=>Zb,ZodMap:()=>Dx,ZodNaN:()=>Vx,ZodNanoID:()=>Wb,ZodNever:()=>gx,ZodNonOptional:()=>Rx,ZodNull:()=>px,ZodNullable:()=>Fx,ZodNumber:()=>ox,ZodNumberFormat:()=>sx,ZodObject:()=>bx,ZodOptional:()=>Nx,ZodPipe:()=>Hx,ZodPrefault:()=>Lx,ZodPreprocess:()=>Wx,ZodPromise:()=>Jx,ZodReadonly:()=>Gx,ZodRealError:()=>Vv,ZodRecord:()=>Ex,ZodSet:()=>Ox,ZodString:()=>Lb,ZodStringFormat:()=>Rb,ZodSuccess:()=>zx,ZodSymbol:()=>dx,ZodTemplateLiteral:()=>Kx,ZodTransform:()=>Mx,ZodTuple:()=>Tx,ZodType:()=>Q,ZodULID:()=>qb,ZodURL:()=>Hb,ZodUUID:()=>Vb,ZodUndefined:()=>fx,ZodUnion:()=>xx,ZodUnknown:()=>hx,ZodVoid:()=>_x,ZodXID:()=>Jb,ZodXor:()=>Sx,_ZodString:()=>Ib,_default:()=>mb,_function:()=>Db,any:()=>Wy,array:()=>q,base64:()=>wy,base64url:()=>Ty,bigint:()=>Ry,boolean:()=>Ly,catch:()=>vb,check:()=>Ob,cidrv4:()=>Sy,cidrv6:()=>Cy,clone:()=>_s,codec:()=>xb,coerce:()=>pS,config:()=>Lo,core:()=>xv,cuid:()=>my,cuid2:()=>hy,custom:()=>kb,date:()=>Jy,decode:()=>Jv,decodeAsync:()=>Xv,describe:()=>Zx,discriminatedUnion:()=>$y,e164:()=>Ey,email:()=>iy,emoji:()=>fy,encode:()=>qv,encodeAsync:()=>Yv,endsWith:()=>Ag,enum:()=>ob,exactOptional:()=>db,file:()=>cb,flattenError:()=>Zs,float32:()=>Ny,float64:()=>Py,formatError:()=>Qs,fromJSONSchema:()=>uS,function:()=>Db,getErrorMap:()=>nS,globalRegistry:()=>uh,gt:()=>fg,gte:()=>pg,guid:()=>ay,hash:()=>jy,hex:()=>Ay,hostname:()=>ky,httpUrl:()=>dy,includes:()=>Og,instanceof:()=>Mb,int:()=>My,int32:()=>Fy,int64:()=>zy,intersection:()=>eb,invertCodec:()=>Sb,ipv4:()=>yy,ipv6:()=>xy,iso:()=>kv,json:()=>Nb,jwt:()=>Dy,keyof:()=>Yy,ksuid:()=>vy,lazy:()=>Tb,length:()=>wg,literal:()=>Z,locales:()=>rh,looseObject:()=>Zy,looseRecord:()=>rb,lowercase:()=>Eg,lt:()=>ug,lte:()=>dg,mac:()=>by,map:()=>ib,maxLength:()=>Sg,maxSize:()=>yg,meta:()=>Qx,mime:()=>Mg,minLength:()=>Cg,minSize:()=>bg,multipleOf:()=>vg,nan:()=>yb,nanoid:()=>py,nativeEnum:()=>sb,negative:()=>hg,never:()=>Ky,nonnegative:()=>_g,nonoptional:()=>gb,nonpositive:()=>gg,normalize:()=>Pg,null:()=>Uy,nullable:()=>fb,nullish:()=>pb,number:()=>K,object:()=>J,optional:()=>ub,overwrite:()=>Ng,parse:()=>Uv,parseAsync:()=>Wv,partialRecord:()=>nb,pipe:()=>bb,positive:()=>mg,prefault:()=>hb,preprocess:()=>Pb,prettifyError:()=>tc,promise:()=>Eb,property:()=>jg,readonly:()=>Cb,record:()=>X,refine:()=>Ab,regex:()=>Tg,regexes:()=>jc,registry:()=>ah,safeDecode:()=>Qv,safeDecodeAsync:()=>ey,safeEncode:()=>Zv,safeEncodeAsync:()=>$v,safeParse:()=>Gv,safeParseAsync:()=>Kv,set:()=>ab,setErrorMap:()=>tS,size:()=>xg,slugify:()=>Rg,startsWith:()=>kg,strictObject:()=>Xy,string:()=>G,stringFormat:()=>Oy,stringbool:()=>$x,success:()=>_b,superRefine:()=>jb,symbol:()=>Vy,templateLiteral:()=>wb,toJSONSchema:()=>O_,toLowerCase:()=>Ig,toUpperCase:()=>Lg,transform:()=>lb,treeifyError:()=>$s,trim:()=>Fg,tuple:()=>tb,uint32:()=>Iy,uint64:()=>By,ulid:()=>gy,undefined:()=>Hy,union:()=>Y,unknown:()=>Gy,uppercase:()=>Dg,url:()=>uy,util:()=>Go,uuid:()=>oy,uuidv4:()=>sy,uuidv6:()=>cy,uuidv7:()=>ly,void:()=>qy,xid:()=>_y,xor:()=>Qy}),xS=o((()=>{Sv(),eS(),Ov(),Hv(),ty(),aS(),Ff(),gv(),fS(),ih(),Rv(),yS(),Lo(Nf())})),SS,CS=o((()=>{xS(),xS(),SS=bS})),wS=c({$brand:()=>Bo,$input:()=>ch,$output:()=>sh,NEVER:()=>zo,TimePrecision:()=>v_,ZodAny:()=>mx,ZodArray:()=>yx,ZodBase64:()=>tx,ZodBase64URL:()=>nx,ZodBigInt:()=>lx,ZodBigIntFormat:()=>ux,ZodBoolean:()=>cx,ZodCIDRv4:()=>$b,ZodCIDRv6:()=>ex,ZodCUID:()=>Gb,ZodCUID2:()=>Kb,ZodCatch:()=>Bx,ZodCodec:()=>Ux,ZodCustom:()=>Xx,ZodCustomStringFormat:()=>ax,ZodDate:()=>vx,ZodDefault:()=>Ix,ZodDiscriminatedUnion:()=>Cx,ZodE164:()=>rx,ZodEmail:()=>zb,ZodEmoji:()=>Ub,ZodEnum:()=>kx,ZodError:()=>Bv,ZodExactOptional:()=>Px,ZodFile:()=>jx,ZodFirstPartyTypeKind:()=>iS,ZodFunction:()=>Yx,ZodGUID:()=>Bb,ZodIPv4:()=>Xb,ZodIPv6:()=>Qb,ZodISODate:()=>Fv,ZodISODateTime:()=>Pv,ZodISODuration:()=>Lv,ZodISOTime:()=>Iv,ZodIntersection:()=>wx,ZodIssueCode:()=>rS,ZodJWT:()=>ix,ZodKSUID:()=>Yb,ZodLazy:()=>qx,ZodLiteral:()=>Ax,ZodMAC:()=>Zb,ZodMap:()=>Dx,ZodNaN:()=>Vx,ZodNanoID:()=>Wb,ZodNever:()=>gx,ZodNonOptional:()=>Rx,ZodNull:()=>px,ZodNullable:()=>Fx,ZodNumber:()=>ox,ZodNumberFormat:()=>sx,ZodObject:()=>bx,ZodOptional:()=>Nx,ZodPipe:()=>Hx,ZodPrefault:()=>Lx,ZodPreprocess:()=>Wx,ZodPromise:()=>Jx,ZodReadonly:()=>Gx,ZodRealError:()=>Vv,ZodRecord:()=>Ex,ZodSet:()=>Ox,ZodString:()=>Lb,ZodStringFormat:()=>Rb,ZodSuccess:()=>zx,ZodSymbol:()=>dx,ZodTemplateLiteral:()=>Kx,ZodTransform:()=>Mx,ZodTuple:()=>Tx,ZodType:()=>Q,ZodULID:()=>qb,ZodURL:()=>Hb,ZodUUID:()=>Vb,ZodUndefined:()=>fx,ZodUnion:()=>xx,ZodUnknown:()=>hx,ZodVoid:()=>_x,ZodXID:()=>Jb,ZodXor:()=>Sx,_ZodString:()=>Ib,_default:()=>mb,_function:()=>Db,any:()=>Wy,array:()=>q,base64:()=>wy,base64url:()=>Ty,bigint:()=>Ry,boolean:()=>Ly,catch:()=>vb,check:()=>Ob,cidrv4:()=>Sy,cidrv6:()=>Cy,clone:()=>_s,codec:()=>xb,coerce:()=>pS,config:()=>Lo,core:()=>xv,cuid:()=>my,cuid2:()=>hy,custom:()=>kb,date:()=>Jy,decode:()=>Jv,decodeAsync:()=>Xv,default:()=>TS,describe:()=>Zx,discriminatedUnion:()=>$y,e164:()=>Ey,email:()=>iy,emoji:()=>fy,encode:()=>qv,encodeAsync:()=>Yv,endsWith:()=>Ag,enum:()=>ob,exactOptional:()=>db,file:()=>cb,flattenError:()=>Zs,float32:()=>Ny,float64:()=>Py,formatError:()=>Qs,fromJSONSchema:()=>uS,function:()=>Db,getErrorMap:()=>nS,globalRegistry:()=>uh,gt:()=>fg,gte:()=>pg,guid:()=>ay,hash:()=>jy,hex:()=>Ay,hostname:()=>ky,httpUrl:()=>dy,includes:()=>Og,instanceof:()=>Mb,int:()=>My,int32:()=>Fy,int64:()=>zy,intersection:()=>eb,invertCodec:()=>Sb,ipv4:()=>yy,ipv6:()=>xy,iso:()=>kv,json:()=>Nb,jwt:()=>Dy,keyof:()=>Yy,ksuid:()=>vy,lazy:()=>Tb,length:()=>wg,literal:()=>Z,locales:()=>rh,looseObject:()=>Zy,looseRecord:()=>rb,lowercase:()=>Eg,lt:()=>ug,lte:()=>dg,mac:()=>by,map:()=>ib,maxLength:()=>Sg,maxSize:()=>yg,meta:()=>Qx,mime:()=>Mg,minLength:()=>Cg,minSize:()=>bg,multipleOf:()=>vg,nan:()=>yb,nanoid:()=>py,nativeEnum:()=>sb,negative:()=>hg,never:()=>Ky,nonnegative:()=>_g,nonoptional:()=>gb,nonpositive:()=>gg,normalize:()=>Pg,null:()=>Uy,nullable:()=>fb,nullish:()=>pb,number:()=>K,object:()=>J,optional:()=>ub,overwrite:()=>Ng,parse:()=>Uv,parseAsync:()=>Wv,partialRecord:()=>nb,pipe:()=>bb,positive:()=>mg,prefault:()=>hb,preprocess:()=>Pb,prettifyError:()=>tc,promise:()=>Eb,property:()=>jg,readonly:()=>Cb,record:()=>X,refine:()=>Ab,regex:()=>Tg,regexes:()=>jc,registry:()=>ah,safeDecode:()=>Qv,safeDecodeAsync:()=>ey,safeEncode:()=>Zv,safeEncodeAsync:()=>$v,safeParse:()=>Gv,safeParseAsync:()=>Kv,set:()=>ab,setErrorMap:()=>tS,size:()=>xg,slugify:()=>Rg,startsWith:()=>kg,strictObject:()=>Xy,string:()=>G,stringFormat:()=>Oy,stringbool:()=>$x,success:()=>_b,superRefine:()=>jb,symbol:()=>Vy,templateLiteral:()=>wb,toJSONSchema:()=>O_,toLowerCase:()=>Ig,toUpperCase:()=>Lg,transform:()=>lb,treeifyError:()=>$s,trim:()=>Fg,tuple:()=>tb,uint32:()=>Iy,uint64:()=>By,ulid:()=>gy,undefined:()=>Hy,union:()=>Y,unknown:()=>Gy,uppercase:()=>Dg,url:()=>uy,util:()=>Go,uuid:()=>oy,uuidv4:()=>sy,uuidv6:()=>cy,uuidv7:()=>ly,void:()=>qy,xid:()=>_y,xor:()=>Qy,z:()=>bS}),TS,ES=o((()=>{CS(),CS(),TS=SS}));ES();var DS=`io.modelcontextprotocol/related-task`,OS=kb(e=>e!==null&&(typeof e==`object`||typeof e==`function`)),kS=Y([G(),K().int()]),AS=G();Zy({ttl:K().optional(),pollInterval:K().optional()});var jS=J({ttl:K().optional()}),MS=J({taskId:G()}),NS=Zy({progressToken:kS.optional(),[DS]:MS.optional()}),PS=J({_meta:NS.optional()}),FS=PS.extend({task:jS.optional()}),IS=e=>FS.safeParse(e).success,LS=J({method:G(),params:PS.loose().optional()}),RS=J({_meta:NS.optional()}),zS=J({method:G(),params:RS.loose().optional()}),BS=Zy({_meta:NS.optional()}),VS=Y([G(),K().int()]),HS=J({jsonrpc:Z(`2.0`),id:VS,...LS.shape}).strict(),US=e=>HS.safeParse(e).success,WS=J({jsonrpc:Z(`2.0`),...zS.shape}).strict(),GS=e=>WS.safeParse(e).success,KS=J({jsonrpc:Z(`2.0`),id:VS,result:BS}).strict(),qS=e=>KS.safeParse(e).success,JS;(function(e){e[e.ConnectionClosed=-32e3]=`ConnectionClosed`,e[e.RequestTimeout=-32001]=`RequestTimeout`,e[e.ParseError=-32700]=`ParseError`,e[e.InvalidRequest=-32600]=`InvalidRequest`,e[e.MethodNotFound=-32601]=`MethodNotFound`,e[e.InvalidParams=-32602]=`InvalidParams`,e[e.InternalError=-32603]=`InternalError`,e[e.UrlElicitationRequired=-32042]=`UrlElicitationRequired`})(JS||={});var YS=J({jsonrpc:Z(`2.0`),id:VS.optional(),error:J({code:K().int(),message:G(),data:Gy().optional()})}).strict(),XS=e=>YS.safeParse(e).success,ZS=Y([HS,WS,KS,YS]);Y([KS,YS]);var QS=BS.strict(),$S=RS.extend({requestId:VS.optional(),reason:G().optional()}),eC=zS.extend({method:Z(`notifications/cancelled`),params:$S}),tC=J({icons:q(J({src:G(),mimeType:G().optional(),sizes:q(G()).optional(),theme:ob([`light`,`dark`]).optional()})).optional()}),nC=J({name:G(),title:G().optional()}),rC=nC.extend({...nC.shape,...tC.shape,version:G(),websiteUrl:G().optional(),description:G().optional()}),iC=Pb(e=>e&&typeof e==`object`&&!Array.isArray(e)&&Object.keys(e).length===0?{form:{}}:e,eb(J({form:eb(J({applyDefaults:Ly().optional()}),X(G(),Gy())).optional(),url:OS.optional()}),X(G(),Gy()).optional())),aC=Zy({list:OS.optional(),cancel:OS.optional(),requests:Zy({sampling:Zy({createMessage:OS.optional()}).optional(),elicitation:Zy({create:OS.optional()}).optional()}).optional()}),oC=Zy({list:OS.optional(),cancel:OS.optional(),requests:Zy({tools:Zy({call:OS.optional()}).optional()}).optional()}),sC=J({experimental:X(G(),OS).optional(),sampling:J({context:OS.optional(),tools:OS.optional()}).optional(),elicitation:iC.optional(),roots:J({listChanged:Ly().optional()}).optional(),tasks:aC.optional(),extensions:X(G(),OS).optional()}),cC=PS.extend({protocolVersion:G(),capabilities:sC,clientInfo:rC}),lC=LS.extend({method:Z(`initialize`),params:cC}),uC=J({experimental:X(G(),OS).optional(),logging:OS.optional(),completions:OS.optional(),prompts:J({listChanged:Ly().optional()}).optional(),resources:J({subscribe:Ly().optional(),listChanged:Ly().optional()}).optional(),tools:J({listChanged:Ly().optional()}).optional(),tasks:oC.optional(),extensions:X(G(),OS).optional()}),dC=BS.extend({protocolVersion:G(),capabilities:uC,serverInfo:rC,instructions:G().optional()}),fC=zS.extend({method:Z(`notifications/initialized`),params:RS.optional()}),pC=LS.extend({method:Z(`ping`),params:PS.optional()}),mC=J({progress:K(),total:ub(K()),message:ub(G())}),hC=J({...RS.shape,...mC.shape,progressToken:kS}),gC=zS.extend({method:Z(`notifications/progress`),params:hC}),_C=PS.extend({cursor:AS.optional()}),vC=LS.extend({params:_C.optional()}),yC=BS.extend({nextCursor:AS.optional()}),bC=ob([`working`,`input_required`,`completed`,`failed`,`cancelled`]),xC=J({taskId:G(),status:bC,ttl:Y([K(),Uy()]),createdAt:G(),lastUpdatedAt:G(),pollInterval:ub(K()),statusMessage:ub(G())}),SC=BS.extend({task:xC}),CC=RS.merge(xC),wC=zS.extend({method:Z(`notifications/tasks/status`),params:CC}),TC=LS.extend({method:Z(`tasks/get`),params:PS.extend({taskId:G()})}),EC=BS.merge(xC),DC=LS.extend({method:Z(`tasks/result`),params:PS.extend({taskId:G()})});BS.loose();var OC=vC.extend({method:Z(`tasks/list`)}),kC=yC.extend({tasks:q(xC)}),AC=LS.extend({method:Z(`tasks/cancel`),params:PS.extend({taskId:G()})}),jC=BS.merge(xC),MC=J({uri:G(),mimeType:ub(G()),_meta:X(G(),Gy()).optional()}),NC=MC.extend({text:G()}),PC=G().refine(e=>{try{return atob(e),!0}catch{return!1}},{message:`Invalid Base64 string`}),FC=MC.extend({blob:PC}),IC=ob([`user`,`assistant`]),LC=J({audience:q(IC).optional(),priority:K().min(0).max(1).optional(),lastModified:Av({offset:!0}).optional()}),RC=J({...nC.shape,...tC.shape,uri:G(),description:ub(G()),mimeType:ub(G()),size:ub(K()),annotations:LC.optional(),_meta:ub(Zy({}))}),zC=J({...nC.shape,...tC.shape,uriTemplate:G(),description:ub(G()),mimeType:ub(G()),annotations:LC.optional(),_meta:ub(Zy({}))}),BC=vC.extend({method:Z(`resources/list`)}),VC=yC.extend({resources:q(RC)}),HC=vC.extend({method:Z(`resources/templates/list`)}),UC=yC.extend({resourceTemplates:q(zC)}),WC=PS.extend({uri:G()}),GC=WC,KC=LS.extend({method:Z(`resources/read`),params:GC}),qC=BS.extend({contents:q(Y([NC,FC]))}),JC=zS.extend({method:Z(`notifications/resources/list_changed`),params:RS.optional()}),YC=WC,XC=LS.extend({method:Z(`resources/subscribe`),params:YC}),ZC=WC,QC=LS.extend({method:Z(`resources/unsubscribe`),params:ZC}),$C=RS.extend({uri:G()}),ew=zS.extend({method:Z(`notifications/resources/updated`),params:$C}),tw=J({name:G(),description:ub(G()),required:ub(Ly())}),nw=J({...nC.shape,...tC.shape,description:ub(G()),arguments:ub(q(tw)),_meta:ub(Zy({}))}),rw=vC.extend({method:Z(`prompts/list`)}),iw=yC.extend({prompts:q(nw)}),aw=PS.extend({name:G(),arguments:X(G(),G()).optional()}),ow=LS.extend({method:Z(`prompts/get`),params:aw}),sw=J({type:Z(`text`),text:G(),annotations:LC.optional(),_meta:X(G(),Gy()).optional()}),cw=J({type:Z(`image`),data:PC,mimeType:G(),annotations:LC.optional(),_meta:X(G(),Gy()).optional()}),lw=J({type:Z(`audio`),data:PC,mimeType:G(),annotations:LC.optional(),_meta:X(G(),Gy()).optional()}),uw=J({type:Z(`tool_use`),name:G(),id:G(),input:X(G(),Gy()),_meta:X(G(),Gy()).optional()}),dw=J({type:Z(`resource`),resource:Y([NC,FC]),annotations:LC.optional(),_meta:X(G(),Gy()).optional()}),fw=RC.extend({type:Z(`resource_link`)}),pw=Y([sw,cw,lw,fw,dw]),mw=J({role:IC,content:pw}),hw=BS.extend({description:G().optional(),messages:q(mw)}),gw=zS.extend({method:Z(`notifications/prompts/list_changed`),params:RS.optional()}),_w=J({title:G().optional(),readOnlyHint:Ly().optional(),destructiveHint:Ly().optional(),idempotentHint:Ly().optional(),openWorldHint:Ly().optional()}),vw=J({taskSupport:ob([`required`,`optional`,`forbidden`]).optional()}),yw=J({...nC.shape,...tC.shape,description:G().optional(),inputSchema:J({type:Z(`object`),properties:X(G(),OS).optional(),required:q(G()).optional()}).catchall(Gy()),outputSchema:J({type:Z(`object`),properties:X(G(),OS).optional(),required:q(G()).optional()}).catchall(Gy()).optional(),annotations:_w.optional(),execution:vw.optional(),_meta:X(G(),Gy()).optional()}),bw=vC.extend({method:Z(`tools/list`)}),xw=yC.extend({tools:q(yw)}),Sw=BS.extend({content:q(pw).default([]),structuredContent:X(G(),Gy()).optional(),isError:Ly().optional()});Sw.or(BS.extend({toolResult:Gy()}));var Cw=FS.extend({name:G(),arguments:X(G(),Gy()).optional()}),ww=LS.extend({method:Z(`tools/call`),params:Cw}),Tw=zS.extend({method:Z(`notifications/tools/list_changed`),params:RS.optional()});J({autoRefresh:Ly().default(!0),debounceMs:K().int().nonnegative().default(300)});var Ew=ob([`debug`,`info`,`notice`,`warning`,`error`,`critical`,`alert`,`emergency`]),Dw=PS.extend({level:Ew}),Ow=LS.extend({method:Z(`logging/setLevel`),params:Dw}),kw=RS.extend({level:Ew,logger:G().optional(),data:Gy()}),Aw=zS.extend({method:Z(`notifications/message`),params:kw}),jw=J({hints:q(J({name:G().optional()})).optional(),costPriority:K().min(0).max(1).optional(),speedPriority:K().min(0).max(1).optional(),intelligencePriority:K().min(0).max(1).optional()}),Mw=J({mode:ob([`auto`,`required`,`none`]).optional()}),Nw=J({type:Z(`tool_result`),toolUseId:G().describe(`The unique identifier for the corresponding tool call.`),content:q(pw).default([]),structuredContent:J({}).loose().optional(),isError:Ly().optional(),_meta:X(G(),Gy()).optional()}),Pw=$y(`type`,[sw,cw,lw]),Fw=$y(`type`,[sw,cw,lw,uw,Nw]),Iw=J({role:IC,content:Y([Fw,q(Fw)]),_meta:X(G(),Gy()).optional()}),Lw=FS.extend({messages:q(Iw),modelPreferences:jw.optional(),systemPrompt:G().optional(),includeContext:ob([`none`,`thisServer`,`allServers`]).optional(),temperature:K().optional(),maxTokens:K().int(),stopSequences:q(G()).optional(),metadata:OS.optional(),tools:q(yw).optional(),toolChoice:Mw.optional()}),Rw=LS.extend({method:Z(`sampling/createMessage`),params:Lw}),zw=BS.extend({model:G(),stopReason:ub(ob([`endTurn`,`stopSequence`,`maxTokens`]).or(G())),role:IC,content:Pw}),Bw=BS.extend({model:G(),stopReason:ub(ob([`endTurn`,`stopSequence`,`maxTokens`,`toolUse`]).or(G())),role:IC,content:Y([Fw,q(Fw)])}),Vw=J({type:Z(`boolean`),title:G().optional(),description:G().optional(),default:Ly().optional()}),Hw=J({type:Z(`string`),title:G().optional(),description:G().optional(),minLength:K().optional(),maxLength:K().optional(),format:ob([`email`,`uri`,`date`,`date-time`]).optional(),default:G().optional()}),Uw=J({type:ob([`number`,`integer`]),title:G().optional(),description:G().optional(),minimum:K().optional(),maximum:K().optional(),default:K().optional()}),Ww=J({type:Z(`string`),title:G().optional(),description:G().optional(),enum:q(G()),default:G().optional()}),Gw=J({type:Z(`string`),title:G().optional(),description:G().optional(),oneOf:q(J({const:G(),title:G()})),default:G().optional()}),Kw=Y([Y([J({type:Z(`string`),title:G().optional(),description:G().optional(),enum:q(G()),enumNames:q(G()).optional(),default:G().optional()}),Y([Ww,Gw]),Y([J({type:Z(`array`),title:G().optional(),description:G().optional(),minItems:K().optional(),maxItems:K().optional(),items:J({type:Z(`string`),enum:q(G())}),default:q(G()).optional()}),J({type:Z(`array`),title:G().optional(),description:G().optional(),minItems:K().optional(),maxItems:K().optional(),items:J({anyOf:q(J({const:G(),title:G()}))}),default:q(G()).optional()})])]),Vw,Hw,Uw]),qw=Y([FS.extend({mode:Z(`form`).optional(),message:G(),requestedSchema:J({type:Z(`object`),properties:X(G(),Kw),required:q(G()).optional()})}),FS.extend({mode:Z(`url`),message:G(),elicitationId:G(),url:G().url()})]),Jw=LS.extend({method:Z(`elicitation/create`),params:qw}),Yw=RS.extend({elicitationId:G()}),Xw=zS.extend({method:Z(`notifications/elicitation/complete`),params:Yw}),Zw=BS.extend({action:ob([`accept`,`decline`,`cancel`]),content:Pb(e=>e===null?void 0:e,X(G(),Y([G(),K(),Ly(),q(G())])).optional())}),Qw=J({type:Z(`ref/resource`),uri:G()}),$w=J({type:Z(`ref/prompt`),name:G()}),eT=PS.extend({ref:Y([$w,Qw]),argument:J({name:G(),value:G()}),context:J({arguments:X(G(),G()).optional()}).optional()}),tT=LS.extend({method:Z(`completion/complete`),params:eT}),nT=BS.extend({completion:Zy({values:q(G()).max(100),total:ub(K().int()),hasMore:ub(Ly())})}),rT=J({uri:G().startsWith(`file://`),name:G().optional(),_meta:X(G(),Gy()).optional()}),iT=LS.extend({method:Z(`roots/list`),params:PS.optional()}),aT=BS.extend({roots:q(rT)}),oT=zS.extend({method:Z(`notifications/roots/list_changed`),params:RS.optional()});Y([pC,lC,tT,Ow,ow,rw,BC,HC,KC,XC,QC,ww,bw,TC,DC,OC,AC]),Y([eC,gC,fC,oT,wC]),Y([QS,zw,Bw,Zw,aT,EC,kC,SC]),Y([pC,Rw,Jw,iT,TC,DC,OC,AC]),Y([eC,gC,Aw,ew,JC,Tw,gw,wC,Xw]),Y([QS,dC,nT,hw,iw,VC,UC,qC,Sw,xw,EC,kC,SC]);var sT=class e extends Error{constructor(e,t,n){super(`MCP error ${e}: ${t}`),this.code=e,this.data=n,this.name=`McpError`}static fromError(t,n,r){if(t===JS.UrlElicitationRequired&&r){let e=r;if(e.elicitations)return new cT(e.elicitations,n)}return new e(t,n,r)}},cT=class extends sT{constructor(e,t=`URL elicitation${e.length>1?`s`:``} required`){super(JS.UrlElicitationRequired,t,{elicitations:e})}get elicitations(){return this.data?.elicitations??[]}};function lT(e){return e===`completed`||e===`failed`||e===`cancelled`}function uT(e){let t=Tv(e)?.method;if(!t)throw Error(`Schema is missing a method literal`);let n=Ev(t);if(typeof n!=`string`)throw Error(`Schema method literal must be a string`);return n}function dT(e,t){let n=wv(e,t);if(!n.success)throw n.error;return n.data}var fT=class{constructor(e){this._options=e,this._requestMessageId=0,this._requestHandlers=new Map,this._requestHandlerAbortControllers=new Map,this._notificationHandlers=new Map,this._responseHandlers=new Map,this._progressHandlers=new Map,this._timeoutInfo=new Map,this._pendingDebouncedNotifications=new Set,this._taskProgressTokens=new Map,this._requestResolvers=new Map,this.setNotificationHandler(eC,e=>{this._oncancel(e)}),this.setNotificationHandler(gC,e=>{this._onprogress(e)}),this.setRequestHandler(pC,e=>({})),this._taskStore=e?.taskStore,this._taskMessageQueue=e?.taskMessageQueue,this._taskStore&&(this.setRequestHandler(TC,async(e,t)=>{let n=await this._taskStore.getTask(e.params.taskId,t.sessionId);if(!n)throw new sT(JS.InvalidParams,`Failed to retrieve task: Task not found`);return{...n}}),this.setRequestHandler(DC,async(e,t)=>{let n=async()=>{let r=e.params.taskId;if(this._taskMessageQueue){let e;for(;e=await this._taskMessageQueue.dequeue(r,t.sessionId);){if(e.type===`response`||e.type===`error`){let t=e.message,n=t.id,r=this._requestResolvers.get(n);if(r)if(this._requestResolvers.delete(n),e.type===`response`)r(t);else{let e=t;r(new sT(e.error.code,e.error.message,e.error.data))}else{let t=e.type===`response`?`Response`:`Error`;this._onerror(Error(`${t} handler missing for request ${n}`))}continue}await this._transport?.send(e.message,{relatedRequestId:t.requestId})}}let i=await this._taskStore.getTask(r,t.sessionId);if(!i)throw new sT(JS.InvalidParams,`Task not found: ${r}`);if(!lT(i.status))return await this._waitForTaskUpdate(r,t.signal),await n();if(lT(i.status)){let e=await this._taskStore.getTaskResult(r,t.sessionId);return this._clearTaskQueue(r),{...e,_meta:{...e._meta,[DS]:{taskId:r}}}}return await n()};return await n()}),this.setRequestHandler(OC,async(e,t)=>{try{let{tasks:n,nextCursor:r}=await this._taskStore.listTasks(e.params?.cursor,t.sessionId);return{tasks:n,nextCursor:r,_meta:{}}}catch(e){throw new sT(JS.InvalidParams,`Failed to list tasks: ${e instanceof Error?e.message:String(e)}`)}}),this.setRequestHandler(AC,async(e,t)=>{try{let n=await this._taskStore.getTask(e.params.taskId,t.sessionId);if(!n)throw new sT(JS.InvalidParams,`Task not found: ${e.params.taskId}`);if(lT(n.status))throw new sT(JS.InvalidParams,`Cannot cancel task in terminal status: ${n.status}`);await this._taskStore.updateTaskStatus(e.params.taskId,`cancelled`,`Client cancelled task execution.`,t.sessionId),this._clearTaskQueue(e.params.taskId);let r=await this._taskStore.getTask(e.params.taskId,t.sessionId);if(!r)throw new sT(JS.InvalidParams,`Task not found after cancellation: ${e.params.taskId}`);return{_meta:{},...r}}catch(e){throw e instanceof sT?e:new sT(JS.InvalidRequest,`Failed to cancel task: ${e instanceof Error?e.message:String(e)}`)}}))}async _oncancel(e){e.params.requestId&&this._requestHandlerAbortControllers.get(e.params.requestId)?.abort(e.params.reason)}_setupTimeout(e,t,n,r,i=!1){this._timeoutInfo.set(e,{timeoutId:setTimeout(r,t),startTime:Date.now(),timeout:t,maxTotalTimeout:n,resetTimeoutOnProgress:i,onTimeout:r})}_resetTimeout(e){let t=this._timeoutInfo.get(e);if(!t)return!1;let n=Date.now()-t.startTime;if(t.maxTotalTimeout&&n>=t.maxTotalTimeout)throw this._timeoutInfo.delete(e),sT.fromError(JS.RequestTimeout,`Maximum total timeout exceeded`,{maxTotalTimeout:t.maxTotalTimeout,totalElapsed:n});return clearTimeout(t.timeoutId),t.timeoutId=setTimeout(t.onTimeout,t.timeout),!0}_cleanupTimeout(e){let t=this._timeoutInfo.get(e);t&&(clearTimeout(t.timeoutId),this._timeoutInfo.delete(e))}async connect(e){if(this._transport)throw Error(`Already connected to a transport. Call close() before connecting to a new transport, or use a separate Protocol instance per connection.`);this._transport=e;let t=this.transport?.onclose;this._transport.onclose=()=>{t?.(),this._onclose()};let n=this.transport?.onerror;this._transport.onerror=e=>{n?.(e),this._onerror(e)};let r=this._transport?.onmessage;this._transport.onmessage=(e,t)=>{r?.(e,t),qS(e)||XS(e)?this._onresponse(e):US(e)?this._onrequest(e,t):GS(e)?this._onnotification(e):this._onerror(Error(`Unknown message type: ${JSON.stringify(e)}`))},await this._transport.start()}_onclose(){let e=this._responseHandlers;this._responseHandlers=new Map,this._progressHandlers.clear(),this._taskProgressTokens.clear(),this._pendingDebouncedNotifications.clear();for(let e of this._timeoutInfo.values())clearTimeout(e.timeoutId);this._timeoutInfo.clear();for(let e of this._requestHandlerAbortControllers.values())e.abort();this._requestHandlerAbortControllers.clear();let t=sT.fromError(JS.ConnectionClosed,`Connection closed`);this._transport=void 0,this.onclose?.();for(let n of e.values())n(t)}_onerror(e){this.onerror?.(e)}_onnotification(e){let t=this._notificationHandlers.get(e.method)??this.fallbackNotificationHandler;t!==void 0&&Promise.resolve().then(()=>t(e)).catch(e=>this._onerror(Error(`Uncaught error in notification handler: ${e}`)))}_onrequest(e,t){let n=this._requestHandlers.get(e.method)??this.fallbackRequestHandler,r=this._transport,i=e.params?._meta?.[DS]?.taskId;if(n===void 0){let t={jsonrpc:`2.0`,id:e.id,error:{code:JS.MethodNotFound,message:`Method not found`}};i&&this._taskMessageQueue?this._enqueueTaskMessage(i,{type:`error`,message:t,timestamp:Date.now()},r?.sessionId).catch(e=>this._onerror(Error(`Failed to enqueue error response: ${e}`))):r?.send(t).catch(e=>this._onerror(Error(`Failed to send an error response: ${e}`)));return}let a=new AbortController;this._requestHandlerAbortControllers.set(e.id,a);let o=IS(e.params)?e.params.task:void 0,s=this._taskStore?this.requestTaskStore(e,r?.sessionId):void 0,c={signal:a.signal,sessionId:r?.sessionId,_meta:e.params?._meta,sendNotification:async t=>{if(a.signal.aborted)return;let n={relatedRequestId:e.id};i&&(n.relatedTask={taskId:i}),await this.notification(t,n)},sendRequest:async(t,n,r)=>{if(a.signal.aborted)throw new sT(JS.ConnectionClosed,`Request was cancelled`);let o={...r,relatedRequestId:e.id};i&&!o.relatedTask&&(o.relatedTask={taskId:i});let c=o.relatedTask?.taskId??i;return c&&s&&await s.updateTaskStatus(c,`input_required`),await this.request(t,n,o)},authInfo:t?.authInfo,requestId:e.id,requestInfo:t?.requestInfo,taskId:i,taskStore:s,taskRequestedTtl:o?.ttl,closeSSEStream:t?.closeSSEStream,closeStandaloneSSEStream:t?.closeStandaloneSSEStream};Promise.resolve().then(()=>{o&&this.assertTaskHandlerCapability(e.method)}).then(()=>n(e,c)).then(async t=>{if(a.signal.aborted)return;let n={result:t,jsonrpc:`2.0`,id:e.id};i&&this._taskMessageQueue?await this._enqueueTaskMessage(i,{type:`response`,message:n,timestamp:Date.now()},r?.sessionId):await r?.send(n)},async t=>{if(a.signal.aborted)return;let n={jsonrpc:`2.0`,id:e.id,error:{code:Number.isSafeInteger(t.code)?t.code:JS.InternalError,message:t.message??`Internal error`,...t.data!==void 0&&{data:t.data}}};i&&this._taskMessageQueue?await this._enqueueTaskMessage(i,{type:`error`,message:n,timestamp:Date.now()},r?.sessionId):await r?.send(n)}).catch(e=>this._onerror(Error(`Failed to send response: ${e}`))).finally(()=>{this._requestHandlerAbortControllers.get(e.id)===a&&this._requestHandlerAbortControllers.delete(e.id)})}_onprogress(e){let{progressToken:t,...n}=e.params,r=Number(t),i=this._progressHandlers.get(r);if(!i){this._onerror(Error(`Received a progress notification for an unknown token: ${JSON.stringify(e)}`));return}let a=this._responseHandlers.get(r),o=this._timeoutInfo.get(r);if(o&&a&&o.resetTimeoutOnProgress)try{this._resetTimeout(r)}catch(e){this._responseHandlers.delete(r),this._progressHandlers.delete(r),this._cleanupTimeout(r),a(e);return}i(n)}_onresponse(e){let t=Number(e.id),n=this._requestResolvers.get(t);if(n){this._requestResolvers.delete(t),qS(e)?n(e):n(new sT(e.error.code,e.error.message,e.error.data));return}let r=this._responseHandlers.get(t);if(r===void 0){this._onerror(Error(`Received a response for an unknown message ID: ${JSON.stringify(e)}`));return}this._responseHandlers.delete(t),this._cleanupTimeout(t);let i=!1;if(qS(e)&&e.result&&typeof e.result==`object`){let n=e.result;if(n.task&&typeof n.task==`object`){let e=n.task;typeof e.taskId==`string`&&(i=!0,this._taskProgressTokens.set(e.taskId,t))}}i||this._progressHandlers.delete(t),qS(e)?r(e):r(sT.fromError(e.error.code,e.error.message,e.error.data))}get transport(){return this._transport}async close(){await this._transport?.close()}async*requestStream(e,t,n){let{task:r}=n??{};if(!r){try{yield{type:`result`,result:await this.request(e,t,n)}}catch(e){yield{type:`error`,error:e instanceof sT?e:new sT(JS.InternalError,String(e))}}return}let i;try{let r=await this.request(e,SC,n);if(r.task)i=r.task.taskId,yield{type:`taskCreated`,task:r.task};else throw new sT(JS.InternalError,`Task creation did not return a task`);for(;;){let e=await this.getTask({taskId:i},n);if(yield{type:`taskStatus`,task:e},lT(e.status)){e.status===`completed`?yield{type:`result`,result:await this.getTaskResult({taskId:i},t,n)}:e.status===`failed`?yield{type:`error`,error:new sT(JS.InternalError,`Task ${i} failed`)}:e.status===`cancelled`&&(yield{type:`error`,error:new sT(JS.InternalError,`Task ${i} was cancelled`)});return}if(e.status===`input_required`){yield{type:`result`,result:await this.getTaskResult({taskId:i},t,n)};return}let r=e.pollInterval??this._options?.defaultTaskPollInterval??1e3;await new Promise(e=>setTimeout(e,r)),n?.signal?.throwIfAborted()}}catch(e){yield{type:`error`,error:e instanceof sT?e:new sT(JS.InternalError,String(e))}}}request(e,t,n){let{relatedRequestId:r,resumptionToken:i,onresumptiontoken:a,task:o,relatedTask:s}=n??{};return new Promise((c,l)=>{let u=e=>{l(e)};if(!this._transport){u(Error(`Not connected`));return}if(this._options?.enforceStrictCapabilities===!0)try{this.assertCapabilityForMethod(e.method),o&&this.assertTaskCapability(e.method)}catch(e){u(e);return}n?.signal?.throwIfAborted();let d=this._requestMessageId++,f={...e,jsonrpc:`2.0`,id:d};n?.onprogress&&(this._progressHandlers.set(d,n.onprogress),f.params={...e.params,_meta:{...e.params?._meta||{},progressToken:d}}),o&&(f.params={...f.params,task:o}),s&&(f.params={...f.params,_meta:{...f.params?._meta||{},[DS]:s}});let p=e=>{this._responseHandlers.delete(d),this._progressHandlers.delete(d),this._cleanupTimeout(d),this._transport?.send({jsonrpc:`2.0`,method:`notifications/cancelled`,params:{requestId:d,reason:String(e)}},{relatedRequestId:r,resumptionToken:i,onresumptiontoken:a}).catch(e=>this._onerror(Error(`Failed to send cancellation: ${e}`))),l(e instanceof sT?e:new sT(JS.RequestTimeout,String(e)))};this._responseHandlers.set(d,e=>{if(!n?.signal?.aborted){if(e instanceof Error)return l(e);try{let n=wv(t,e.result);n.success?c(n.data):l(n.error)}catch(e){l(e)}}}),n?.signal?.addEventListener(`abort`,()=>{p(n?.signal?.reason)});let m=n?.timeout??6e4;this._setupTimeout(d,m,n?.maxTotalTimeout,()=>p(sT.fromError(JS.RequestTimeout,`Request timed out`,{timeout:m})),n?.resetTimeoutOnProgress??!1);let h=s?.taskId;h?(this._requestResolvers.set(d,e=>{let t=this._responseHandlers.get(d);t?t(e):this._onerror(Error(`Response handler missing for side-channeled request ${d}`))}),this._enqueueTaskMessage(h,{type:`request`,message:f,timestamp:Date.now()}).catch(e=>{this._cleanupTimeout(d),l(e)})):this._transport.send(f,{relatedRequestId:r,resumptionToken:i,onresumptiontoken:a}).catch(e=>{this._cleanupTimeout(d),l(e)})})}async getTask(e,t){return this.request({method:`tasks/get`,params:e},EC,t)}async getTaskResult(e,t,n){return this.request({method:`tasks/result`,params:e},t,n)}async listTasks(e,t){return this.request({method:`tasks/list`,params:e},kC,t)}async cancelTask(e,t){return this.request({method:`tasks/cancel`,params:e},jC,t)}async notification(e,t){if(!this._transport)throw Error(`Not connected`);this.assertNotificationCapability(e.method);let n=t?.relatedTask?.taskId;if(n){let r={...e,jsonrpc:`2.0`,params:{...e.params,_meta:{...e.params?._meta||{},[DS]:t.relatedTask}}};await this._enqueueTaskMessage(n,{type:`notification`,message:r,timestamp:Date.now()});return}if((this._options?.debouncedNotificationMethods??[]).includes(e.method)&&!e.params&&!t?.relatedRequestId&&!t?.relatedTask){if(this._pendingDebouncedNotifications.has(e.method))return;this._pendingDebouncedNotifications.add(e.method),Promise.resolve().then(()=>{if(this._pendingDebouncedNotifications.delete(e.method),!this._transport)return;let n={...e,jsonrpc:`2.0`};t?.relatedTask&&(n={...n,params:{...n.params,_meta:{...n.params?._meta||{},[DS]:t.relatedTask}}}),this._transport?.send(n,t).catch(e=>this._onerror(e))});return}let r={...e,jsonrpc:`2.0`};t?.relatedTask&&(r={...r,params:{...r.params,_meta:{...r.params?._meta||{},[DS]:t.relatedTask}}}),await this._transport.send(r,t)}setRequestHandler(e,t){let n=uT(e);this.assertRequestHandlerCapability(n),this._requestHandlers.set(n,(n,r)=>{let i=dT(e,n);return Promise.resolve(t(i,r))})}removeRequestHandler(e){this._requestHandlers.delete(e)}assertCanSetRequestHandler(e){if(this._requestHandlers.has(e))throw Error(`A request handler for ${e} already exists, which would be overridden`)}setNotificationHandler(e,t){let n=uT(e);this._notificationHandlers.set(n,n=>{let r=dT(e,n);return Promise.resolve(t(r))})}removeNotificationHandler(e){this._notificationHandlers.delete(e)}_cleanupTaskProgressHandler(e){let t=this._taskProgressTokens.get(e);t!==void 0&&(this._progressHandlers.delete(t),this._taskProgressTokens.delete(e))}async _enqueueTaskMessage(e,t,n){if(!this._taskStore||!this._taskMessageQueue)throw Error(`Cannot enqueue task message: taskStore and taskMessageQueue are not configured`);let r=this._options?.maxTaskQueueSize;await this._taskMessageQueue.enqueue(e,t,n,r)}async _clearTaskQueue(e,t){if(this._taskMessageQueue){let n=await this._taskMessageQueue.dequeueAll(e,t);for(let t of n)if(t.type===`request`&&US(t.message)){let n=t.message.id,r=this._requestResolvers.get(n);r?(r(new sT(JS.InternalError,`Task cancelled or completed`)),this._requestResolvers.delete(n)):this._onerror(Error(`Resolver missing for request ${n} during task ${e} cleanup`))}}}async _waitForTaskUpdate(e,t){let n=this._options?.defaultTaskPollInterval??1e3;try{let t=await this._taskStore?.getTask(e);t?.pollInterval&&(n=t.pollInterval)}catch{}return new Promise((e,r)=>{if(t.aborted){r(new sT(JS.InvalidRequest,`Request cancelled`));return}let i=setTimeout(e,n);t.addEventListener(`abort`,()=>{clearTimeout(i),r(new sT(JS.InvalidRequest,`Request cancelled`))},{once:!0})})}requestTaskStore(e,t){let n=this._taskStore;if(!n)throw Error(`No task store configured`);return{createTask:async r=>{if(!e)throw Error(`No request provided`);return await n.createTask(r,e.id,{method:e.method,params:e.params},t)},getTask:async e=>{let r=await n.getTask(e,t);if(!r)throw new sT(JS.InvalidParams,`Failed to retrieve task: Task not found`);return r},storeTaskResult:async(e,r,i)=>{await n.storeTaskResult(e,r,i,t);let a=await n.getTask(e,t);if(a){let t=wC.parse({method:`notifications/tasks/status`,params:a});await this.notification(t),lT(a.status)&&this._cleanupTaskProgressHandler(e)}},getTaskResult:e=>n.getTaskResult(e,t),updateTaskStatus:async(e,r,i)=>{let a=await n.getTask(e,t);if(!a)throw new sT(JS.InvalidParams,`Task "${e}" not found - it may have been cleaned up`);if(lT(a.status))throw new sT(JS.InvalidParams,`Cannot update task "${e}" from terminal status "${a.status}" to "${r}". Terminal states (completed, failed, cancelled) cannot transition to other states.`);await n.updateTaskStatus(e,r,i,t);let o=await n.getTask(e,t);if(o){let t=wC.parse({method:`notifications/tasks/status`,params:o});await this.notification(t),lT(o.status)&&this._cleanupTaskProgressHandler(e)}},listTasks:e=>n.listTasks(e,t)}}};function pT(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function mT(e,t){let n={...e};for(let e in t){let r=e,i=t[r];if(i===void 0)continue;let a=n[r];n[r]=pT(a)&&pT(i)?{...a,...i}:i}return n}var hT=`modulepreload`,gT=function(e,t){return new URL(e,t).href},_T={},vT=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=document.getElementsByTagName(`link`),i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}function s(e){return import.meta.resolve?import.meta.resolve(e):new URL(e,import.meta.url).href}r=o(t.map(t=>{if(t=gT(t,n),t=s(t),t in _T)return;_T[t]=!0;let r=t.endsWith(`.css`);for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.href===t&&(!r||i.rel===`stylesheet`))return}let i=document.createElement(`link`);if(i.rel=r?`stylesheet`:hT,r||(i.as=`script`),i.crossOrigin=``,i.href=t,a&&i.setAttribute(`nonce`,a),document.head.appendChild(i),r)return new Promise((e,n)=>{i.addEventListener(`load`,e),i.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${t}`)))})}))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})};ES(),(e=>typeof d<`u`?d:typeof Proxy<`u`?new Proxy(e,{get:(e,t)=>(typeof d<`u`?d:e)[t]}):e)(function(e){if(typeof d<`u`)return d.apply(this,arguments);throw Error(`Dynamic require of "`+e+`" is not supported`)});var yT=class extends fT{_registeredMethods=new Set;_eventSlots=new Map;onEventDispatch(e,t){}_ensureEventSlot(e){let t=this._eventSlots.get(e);if(!t){let n=this.eventSchemas[e];if(!n)throw Error(`Unknown event: ${String(e)}`);t={listeners:[]},this._eventSlots.set(e,t);let r=n.shape.method.value;this._registeredMethods.add(r);let i=t;super.setNotificationHandler(n,t=>{let n=t.params;this.onEventDispatch(e,n),i.onHandler?.(n);for(let e of[...i.listeners])e(n)})}return t}setEventHandler(e,t){let n=this._ensureEventSlot(e);n.onHandler&&t&&console.warn(`[MCP Apps] on${String(e)} handler replaced. Use addEventListener("${String(e)}", …) to add multiple listeners without replacing.`),n.onHandler=t}getEventHandler(e){return this._eventSlots.get(e)?.onHandler}addEventListener(e,t){this._ensureEventSlot(e).listeners.push(t)}removeEventListener(e,t){let n=this._eventSlots.get(e);if(!n)return;let r=n.listeners.indexOf(t);r!==-1&&n.listeners.splice(r,1)}setRequestHandler=(e,t)=>{this._assertMethodNotRegistered(e,`setRequestHandler`),super.setRequestHandler(e,t)};setNotificationHandler=(e,t)=>{this._assertMethodNotRegistered(e,`setNotificationHandler`),super.setNotificationHandler(e,t)};warnIfRequestHandlerReplaced(e,t,n){t&&n&&console.warn(`[MCP Apps] ${e} handler replaced. Previous handler will no longer be called.`)}replaceRequestHandler=(e,t)=>{let n=e.shape.method.value;this._registeredMethods.add(n),super.setRequestHandler(e,t)};_assertMethodNotRegistered(e,t){let n=e.shape.method.value;if(this._registeredMethods.has(n))throw Error(`Handler for "${n}" already registered (via ${t}). Use addEventListener() to attach multiple listeners, or the on* setter for replace semantics.`);this._registeredMethods.add(n)}},bT=`2026-01-26`,xT=class{eventTarget;eventSource;messageListener;constructor(e=window.parent,t){this.eventTarget=e,this.eventSource=t,this.messageListener=e=>{if(t&&e.source!==this.eventSource){console.debug(`Ignoring message from unknown source`,e);return}let n=ZS.safeParse(e.data);n.success?(console.debug(`Parsed message`,n.data),this.onmessage?.(n.data)):e.data?.jsonrpc===`2.0`?(console.error(`Failed to parse message`,n.error.message,e),this.onerror?.(Error(`Invalid JSON-RPC message received: `+n.error.message))):console.debug(`Ignoring non-JSON-RPC message`,n.error.message,e)}}async start(){window.addEventListener(`message`,this.messageListener)}async send(e,t){e.method!==`ui/notifications/tool-input-partial`&&console.debug(`Sending message`,e),this.eventTarget.postMessage(e,`*`)}async close(){window.removeEventListener(`message`,this.messageListener),this.onclose?.()}onclose;onerror;onmessage;sessionId;setProtocolVersion},ST=Y([Z(`light`),Z(`dark`)]).describe(`Color theme preference for the host environment.`),CT=Y([Z(`inline`),Z(`fullscreen`),Z(`pip`)]).describe(`Display mode for UI presentation.`),wT=X(Y([Z(`--color-background-primary`),Z(`--color-background-secondary`),Z(`--color-background-tertiary`),Z(`--color-background-inverse`),Z(`--color-background-ghost`),Z(`--color-background-info`),Z(`--color-background-danger`),Z(`--color-background-success`),Z(`--color-background-warning`),Z(`--color-background-disabled`),Z(`--color-text-primary`),Z(`--color-text-secondary`),Z(`--color-text-tertiary`),Z(`--color-text-inverse`),Z(`--color-text-ghost`),Z(`--color-text-info`),Z(`--color-text-danger`),Z(`--color-text-success`),Z(`--color-text-warning`),Z(`--color-text-disabled`),Z(`--color-border-primary`),Z(`--color-border-secondary`),Z(`--color-border-tertiary`),Z(`--color-border-inverse`),Z(`--color-border-ghost`),Z(`--color-border-info`),Z(`--color-border-danger`),Z(`--color-border-success`),Z(`--color-border-warning`),Z(`--color-border-disabled`),Z(`--color-ring-primary`),Z(`--color-ring-secondary`),Z(`--color-ring-inverse`),Z(`--color-ring-info`),Z(`--color-ring-danger`),Z(`--color-ring-success`),Z(`--color-ring-warning`),Z(`--font-sans`),Z(`--font-mono`),Z(`--font-weight-normal`),Z(`--font-weight-medium`),Z(`--font-weight-semibold`),Z(`--font-weight-bold`),Z(`--font-text-xs-size`),Z(`--font-text-sm-size`),Z(`--font-text-md-size`),Z(`--font-text-lg-size`),Z(`--font-heading-xs-size`),Z(`--font-heading-sm-size`),Z(`--font-heading-md-size`),Z(`--font-heading-lg-size`),Z(`--font-heading-xl-size`),Z(`--font-heading-2xl-size`),Z(`--font-heading-3xl-size`),Z(`--font-text-xs-line-height`),Z(`--font-text-sm-line-height`),Z(`--font-text-md-line-height`),Z(`--font-text-lg-line-height`),Z(`--font-heading-xs-line-height`),Z(`--font-heading-sm-line-height`),Z(`--font-heading-md-line-height`),Z(`--font-heading-lg-line-height`),Z(`--font-heading-xl-line-height`),Z(`--font-heading-2xl-line-height`),Z(`--font-heading-3xl-line-height`),Z(`--border-radius-xs`),Z(`--border-radius-sm`),Z(`--border-radius-md`),Z(`--border-radius-lg`),Z(`--border-radius-xl`),Z(`--border-radius-full`),Z(`--border-width-regular`),Z(`--shadow-hairline`),Z(`--shadow-sm`),Z(`--shadow-md`),Z(`--shadow-lg`)]).describe(`CSS variable keys available to MCP apps for theming.`).describe(`Style variables for theming MCP apps. Individual style keys are optional - hosts may provide any subset of these values. Values are strings containing CSS values (colors, sizes, font stacks, etc.). Note: This type uses \`Record\` rather than \`Partial>\` -for compatibility with Zod schema generation. Both are functionally equivalent for validation.`),Y([G(),Ny()]).describe(`Style variables for theming MCP apps. +for compatibility with Zod schema generation. Both are functionally equivalent for validation.`),Y([G(),Hy()]).describe(`Style variables for theming MCP apps. Individual style keys are optional - hosts may provide any subset of these values. Values are strings containing CSS values (colors, sizes, font stacks, etc.). @@ -90,10 +90,10 @@ Values are strings containing CSS values (colors, sizes, font stacks, etc.). Note: This type uses \`Record\` rather than \`Partial>\` -for compatibility with Zod schema generation. Both are functionally equivalent for validation.`);J({method:Z(`ui/open-link`),params:J({url:G().describe(`URL to open in the host's browser`)})});var gT=J({isError:Oy().optional().describe(`True if the host failed to open the URL (e.g., due to security policy).`)}).passthrough(),_T=J({isError:Oy().optional().describe(`True if the download failed (e.g., user cancelled or host denied).`)}).passthrough(),vT=J({isError:Oy().optional().describe(`True if the host rejected or failed to deliver the message.`)}).passthrough();J({method:Z(`ui/notifications/sandbox-proxy-ready`),params:J({})});var yT=J({connectDomains:q(G()).optional().describe(`Origins for network requests (fetch/XHR/WebSocket). +for compatibility with Zod schema generation. Both are functionally equivalent for validation.`);J({method:Z(`ui/open-link`),params:J({url:G().describe(`URL to open in the host's browser`)})});var TT=J({isError:Ly().optional().describe(`True if the host failed to open the URL (e.g., due to security policy).`)}).passthrough(),ET=J({isError:Ly().optional().describe(`True if the download failed (e.g., user cancelled or host denied).`)}).passthrough(),DT=J({isError:Ly().optional().describe(`True if the host rejected or failed to deliver the message.`)}).passthrough();J({method:Z(`ui/notifications/sandbox-proxy-ready`),params:J({})});var OT=J({connectDomains:q(G()).optional().describe(`Origins for network requests (fetch/XHR/WebSocket). - Maps to CSP \`connect-src\` directive -- Empty or omitted → no network connections (secure default)`),resourceDomains:q(G()).optional().describe("Origins for static resources (images, scripts, stylesheets, fonts, media).\n\n- Maps to CSP `img-src`, `script-src`, `style-src`, `font-src`, `media-src` directives\n- Wildcard subdomains supported: `https://*.example.com`\n- Empty or omitted → no network resources (secure default)"),frameDomains:q(G()).optional().describe("Origins for nested iframes.\n\n- Maps to CSP `frame-src` directive\n- Empty or omitted → no nested iframes allowed (`frame-src 'none'`)"),baseUriDomains:q(G()).optional().describe("Allowed base URIs for the document.\n\n- Maps to CSP `base-uri` directive\n- Empty or omitted → only same origin allowed (`base-uri 'self'`)")}),bT=J({camera:J({}).optional().describe(`Request camera access. +- Empty or omitted → no network connections (secure default)`),resourceDomains:q(G()).optional().describe("Origins for static resources (images, scripts, stylesheets, fonts, media).\n\n- Maps to CSP `img-src`, `script-src`, `style-src`, `font-src`, `media-src` directives\n- Wildcard subdomains supported: `https://*.example.com`\n- Empty or omitted → no network resources (secure default)"),frameDomains:q(G()).optional().describe("Origins for nested iframes.\n\n- Maps to CSP `frame-src` directive\n- Empty or omitted → no nested iframes allowed (`frame-src 'none'`)"),baseUriDomains:q(G()).optional().describe("Allowed base URIs for the document.\n\n- Maps to CSP `base-uri` directive\n- Empty or omitted → only same origin allowed (`base-uri 'self'`)")}),kT=J({camera:J({}).optional().describe(`Request camera access. Maps to Permission Policy \`camera\` feature.`),microphone:J({}).optional().describe(`Request microphone access. @@ -101,7 +101,7 @@ Maps to Permission Policy \`geolocation\` feature.`),clipboardWrite:J({}).optional().describe(`Request clipboard write access. -Maps to Permission Policy \`clipboard-write\` feature.`)});J({method:Z(`ui/notifications/size-changed`),params:J({width:K().optional().describe(`New width in pixels.`),height:K().optional().describe(`New height in pixels.`)})});var xT=J({method:Z(`ui/notifications/tool-input`),params:J({arguments:X(G(),Iy().describe(`Complete tool call arguments as key-value pairs.`)).optional().describe(`Complete tool call arguments as key-value pairs.`)})}),ST=J({method:Z(`ui/notifications/tool-input-partial`),params:J({arguments:X(G(),Iy().describe(`Partial tool call arguments (incomplete, may change).`)).optional().describe(`Partial tool call arguments (incomplete, may change).`)})}),CT=J({method:Z(`ui/notifications/tool-cancelled`),params:J({reason:G().optional().describe(`Optional reason for the cancellation (e.g., "user action", "timeout").`)})}),wT=J({fonts:G().optional()}),TT=J({variables:hT.optional().describe(`CSS variables for theming the app.`),css:wT.optional().describe(`CSS blocks that apps can inject.`)}),ET=J({method:Z(`ui/resource-teardown`),params:J({})});X(G(),Iy());var DT=J({text:J({}).optional().describe(`Host supports text content blocks.`),image:J({}).optional().describe(`Host supports image content blocks.`),audio:J({}).optional().describe(`Host supports audio content blocks.`),resource:J({}).optional().describe(`Host supports resource content blocks.`),resourceLink:J({}).optional().describe(`Host supports resource link content blocks.`),structuredContent:J({}).optional().describe(`Host supports structured content.`)});J({method:Z(`ui/notifications/request-teardown`),params:J({}).optional()});var OT=J({experimental:X(G(),X(G(),Fy()).describe(`Experimental features keyed by identifier.`)).optional().describe(`Experimental features keyed by identifier.`),openLinks:J({}).optional().describe(`Host supports opening external URLs.`),downloadFile:J({}).optional().describe(`Host supports file downloads via ui/download-file.`),serverTools:J({listChanged:Oy().optional().describe(`Host supports tools/list_changed notifications.`)}).optional().describe(`Host can proxy tool calls to the MCP server.`),serverResources:J({listChanged:Oy().optional().describe(`Host supports resources/list_changed notifications.`)}).optional().describe(`Host can proxy resource reads to the MCP server.`),logging:J({}).optional().describe(`Host accepts log messages.`),sandbox:J({permissions:bT.optional().describe(`Permissions granted by the host (camera, microphone, geolocation).`),csp:yT.optional().describe(`CSP domains approved by the host.`)}).optional().describe(`Sandbox configuration applied by the host.`),updateModelContext:DT.optional().describe(`Host accepts context updates (ui/update-model-context) to be included in the model's context for future turns.`),message:DT.optional().describe(`Host supports receiving content messages (ui/message) from the view.`),sampling:J({tools:J({}).optional().describe("Host supports tool use via `tools` and `toolChoice` parameters.")}).optional().describe("Host supports LLM sampling (sampling/createMessage) from the view.\nMirrors the MCP `ClientCapabilities.sampling` shape so hosts can pass it through.")}),kT=J({experimental:X(G(),X(G(),Fy()).describe(`Experimental features keyed by identifier.`)).optional().describe(`Experimental features keyed by identifier.`),tools:J({listChanged:Oy().optional().describe(`App supports tools/list_changed notifications.`)}).optional().describe(`App exposes MCP-style tools that the host can call.`),availableDisplayModes:q(mT).optional().describe(`Display modes the app supports.`)});J({method:Z(`ui/notifications/initialized`),params:J({}).optional()}),J({csp:yT.optional().describe(`Content Security Policy configuration for UI resources.`),permissions:bT.optional().describe(`Sandbox permissions requested by the UI resource.`),domain:G().optional().describe(`Dedicated origin for view sandbox. +Maps to Permission Policy \`clipboard-write\` feature.`)});J({method:Z(`ui/notifications/size-changed`),params:J({width:K().optional().describe(`New width in pixels.`),height:K().optional().describe(`New height in pixels.`)})});var AT=J({method:Z(`ui/notifications/tool-input`),params:J({arguments:X(G(),Gy().describe(`Complete tool call arguments as key-value pairs.`)).optional().describe(`Complete tool call arguments as key-value pairs.`)})}),jT=J({method:Z(`ui/notifications/tool-input-partial`),params:J({arguments:X(G(),Gy().describe(`Partial tool call arguments (incomplete, may change).`)).optional().describe(`Partial tool call arguments (incomplete, may change).`)})}),MT=J({method:Z(`ui/notifications/tool-cancelled`),params:J({reason:G().optional().describe(`Optional reason for the cancellation (e.g., "user action", "timeout").`)})}),NT=J({fonts:G().optional()}),PT=J({variables:wT.optional().describe(`CSS variables for theming the app.`),css:NT.optional().describe(`CSS blocks that apps can inject.`)}),FT=J({method:Z(`ui/resource-teardown`),params:J({})});X(G(),Gy());var IT=J({text:J({}).optional().describe(`Host supports text content blocks.`),image:J({}).optional().describe(`Host supports image content blocks.`),audio:J({}).optional().describe(`Host supports audio content blocks.`),resource:J({}).optional().describe(`Host supports resource content blocks.`),resourceLink:J({}).optional().describe(`Host supports resource link content blocks.`),structuredContent:J({}).optional().describe(`Host supports structured content.`)});J({method:Z(`ui/notifications/request-teardown`),params:J({}).optional()});var LT=J({experimental:X(G(),X(G(),Wy()).describe(`Experimental features keyed by identifier.`)).optional().describe(`Experimental features keyed by identifier.`),openLinks:J({}).optional().describe(`Host supports opening external URLs.`),downloadFile:J({}).optional().describe(`Host supports file downloads via ui/download-file.`),serverTools:J({listChanged:Ly().optional().describe(`Host supports tools/list_changed notifications.`)}).optional().describe(`Host can proxy tool calls to the MCP server.`),serverResources:J({listChanged:Ly().optional().describe(`Host supports resources/list_changed notifications.`)}).optional().describe(`Host can proxy resource reads to the MCP server.`),logging:J({}).optional().describe(`Host accepts log messages.`),sandbox:J({permissions:kT.optional().describe(`Permissions granted by the host (camera, microphone, geolocation).`),csp:OT.optional().describe(`CSP domains approved by the host.`)}).optional().describe(`Sandbox configuration applied by the host.`),updateModelContext:IT.optional().describe(`Host accepts context updates (ui/update-model-context) to be included in the model's context for future turns.`),message:IT.optional().describe(`Host supports receiving content messages (ui/message) from the view.`),sampling:J({tools:J({}).optional().describe("Host supports tool use via `tools` and `toolChoice` parameters.")}).optional().describe("Host supports LLM sampling (sampling/createMessage) from the view.\nMirrors the MCP `ClientCapabilities.sampling` shape so hosts can pass it through.")}),RT=J({experimental:X(G(),X(G(),Wy()).describe(`Experimental features keyed by identifier.`)).optional().describe(`Experimental features keyed by identifier.`),tools:J({listChanged:Ly().optional().describe(`App supports tools/list_changed notifications.`)}).optional().describe(`App exposes MCP-style tools that the host can call.`),availableDisplayModes:q(CT).optional().describe(`Display modes the app supports.`)});J({method:Z(`ui/notifications/initialized`),params:J({}).optional()}),J({csp:OT.optional().describe(`Content Security Policy configuration for UI resources.`),permissions:kT.optional().describe(`Sandbox permissions requested by the UI resource.`),domain:G().optional().describe(`Dedicated origin for view sandbox. Useful when views need stable, dedicated origins for OAuth callbacks, CORS policies, or API key allowlists. @@ -109,17 +109,17 @@ - Hash-based subdomains (e.g., \`{hash}.claudemcpcontent.com\`) - URL-derived subdomains (e.g., \`www-example-com.oaiusercontent.com\`) -If omitted, host uses default sandbox origin (typically per-conversation).`),prefersBorder:Oy().optional().describe(`Visual boundary preference - true if view prefers a visible border. +If omitted, host uses default sandbox origin (typically per-conversation).`),prefersBorder:Ly().optional().describe(`Visual boundary preference - true if view prefers a visible border. Boolean requesting whether a visible border and background is provided by the host. Specifying an explicit value for this is recommended because hosts' defaults may vary. - \`true\`: request visible border + background - \`false\`: request no visible border + background -- omitted: host decides border`)}),J({method:Z(`ui/request-display-mode`),params:J({mode:mT.describe(`The display mode being requested.`)})});var AT=J({mode:mT.describe(`The display mode that was actually set. May differ from requested if not supported.`)}).passthrough(),jT=Y([Z(`model`),Z(`app`)]).describe(`Tool visibility scope - who can access the tool.`);J({resourceUri:G().optional(),visibility:q(jT).optional().describe(`Who can access this tool. Default: ["model", "app"] +- omitted: host decides border`)}),J({method:Z(`ui/request-display-mode`),params:J({mode:CT.describe(`The display mode being requested.`)})});var zT=J({mode:CT.describe(`The display mode that was actually set. May differ from requested if not supported.`)}).passthrough(),BT=Y([Z(`model`),Z(`app`)]).describe(`Tool visibility scope - who can access the tool.`);J({resourceUri:G().optional(),visibility:q(BT).optional().describe(`Who can access this tool. Default: ["model", "app"] - "model": Tool visible to and callable by the agent -- "app": Tool callable by the app from this server only`),csp:Ly().optional(),permissions:Ly().optional()}),J({mimeTypes:q(G()).optional().describe('Array of supported MIME types for UI resources.\nMust include `"text/html;profile=mcp-app"` for MCP Apps support.')}),J({method:Z(`ui/download-file`),params:J({contents:q(Y([nw,rw])).describe(`Resource contents to download — embedded (inline data) or linked (host fetches). Uses standard MCP resource types.`)})}),J({method:Z(`ui/message`),params:J({role:Z(`user`).describe(`Message role, currently only "user" is supported.`),content:q(iw).describe(`Message content blocks (text, image, etc.).`)})}),J({method:Z(`ui/notifications/sandbox-resource-ready`),params:J({html:G().describe(`HTML content to load into the inner iframe.`),sandbox:G().optional().describe(`Optional override for the inner iframe's sandbox attribute.`),csp:yT.optional().describe(`CSP configuration from resource metadata.`),permissions:bT.optional().describe(`Sandbox permissions from resource metadata.`)})});var MT=J({method:Z(`ui/notifications/tool-result`),params:pw.describe(`Standard MCP tool execution result.`)}),NT=J({toolInfo:J({id:MS.optional().describe(`JSON-RPC id of the tools/call request.`),tool:uw.describe(`Tool definition including name, inputSchema, etc.`)}).optional().describe(`Metadata of the tool call that instantiated this App.`),theme:pT.optional().describe(`Current color theme preference.`),styles:TT.optional().describe(`Style configuration for theming the app.`),displayMode:mT.optional().describe(`How the UI is currently displayed.`),availableDisplayModes:q(mT).optional().describe(`Display modes the host supports.`),containerDimensions:Y([J({height:K().describe(`Fixed container height in pixels.`)}),J({maxHeight:Y([K(),Ny()]).optional().describe(`Maximum container height in pixels.`)})]).and(Y([J({width:K().describe(`Fixed container width in pixels.`)}),J({maxWidth:Y([K(),Ny()]).optional().describe(`Maximum container width in pixels.`)})])).optional().describe(`Container dimensions. Represents the dimensions of the iframe or other -container holding the app. Specify either width or maxWidth, and either height or maxHeight.`),locale:G().optional().describe(`User's language and region preference in BCP 47 format.`),timeZone:G().optional().describe(`User's timezone in IANA format.`),userAgent:G().optional().describe(`Host application identifier.`),platform:Y([Z(`web`),Z(`desktop`),Z(`mobile`)]).optional().describe(`Platform type for responsive design decisions.`),deviceCapabilities:J({touch:Oy().optional().describe(`Whether the device supports touch input.`),hover:Oy().optional().describe(`Whether the device supports hover interactions.`)}).optional().describe(`Device input capabilities.`),safeAreaInsets:J({top:K().describe(`Top safe area inset in pixels.`),right:K().describe(`Right safe area inset in pixels.`),bottom:K().describe(`Bottom safe area inset in pixels.`),left:K().describe(`Left safe area inset in pixels.`)}).optional().describe(`Mobile safe area boundaries in pixels.`)}).passthrough(),PT=J({method:Z(`ui/notifications/host-context-changed`),params:NT.describe(`Partial context update containing only changed fields.`)});J({method:Z(`ui/update-model-context`),params:J({content:q(iw).optional().describe(`Context content blocks (text, image, etc.).`),structuredContent:X(G(),Iy().describe(`Structured content for machine-readable context data.`)).optional().describe(`Structured content for machine-readable context data.`)})}),J({method:Z(`ui/initialize`),params:J({appInfo:JS.describe(`App identification (name and version).`),appCapabilities:kT.describe(`Features and capabilities this app provides.`),protocolVersion:G().describe(`Protocol version this app supports.`)})});var FT=J({protocolVersion:G().describe(`Negotiated protocol version string (e.g., "2025-11-21").`),hostInfo:JS.describe(`Host application identification and version.`),hostCapabilities:OT.describe(`Features and capabilities provided by the host.`),hostContext:NT.describe(`Rich context about the host environment.`)}).passthrough(),IT={target:`draft-2020-12`};async function LT(e,t){let n=e[`~standard`];if(n.jsonSchema)return n.jsonSchema[t](IT);if(n.vendor===`zod`){let{z:n}=await lT(async()=>{let{z:e}=await Promise.resolve().then(()=>(_S(),hS));return{z:e}},void 0,import.meta.url);return n.toJSONSchema(e,{io:t})}throw Error(`Schema (vendor: ${n.vendor}) does not implement Standard JSON Schema (~standard.jsonSchema). Use a library that does (zod v4, ArkType, Valibot) or wrap your schema accordingly.`)}async function RT(e,t,n=``){let r=await e[`~standard`].validate(t);if(r.issues){let e=r.issues.map(e=>{let t=e.path?.map(e=>typeof e==`object`?e.key:e).join(`.`);return t?`${t}: ${e.message}`:e.message}).join(`; `);throw Error(n+e)}return r.value}var zT=class e extends uT{_appInfo;_capabilities;options;_hostCapabilities;_hostInfo;_hostContext;_registeredTools={};_initializedSent=!1;_assertInitialized(e){if(this._initializedSent)return;let t=`[ext-apps] App.${e}() called before connect() completed the ui/initialize handshake. Await app.connect() before calling this method, or move data loading to an ontoolresult handler.`;if(this.options?.strict)throw Error(t);console.warn(`${t}. This will throw in a future release.`)}eventSchemas={toolinput:xT,toolinputpartial:ST,toolresult:MT,toolcancelled:CT,hostcontextchanged:PT};static ONE_SHOT_EVENTS=new Set([`toolinput`,`toolinputpartial`,`toolresult`,`toolcancelled`]);_everHadListener=new Set;_assertHandlerTiming(t){if(!e.ONE_SHOT_EVENTS.has(t)||this._everHadListener.has(t)||(this._everHadListener.add(t),!this._initializedSent))return;let n=`[ext-apps] "${String(t)}" handler registered after connect() completed the ui/initialize handshake. The host may have already sent this notification. Register handlers before calling app.connect().`;if(this.options?.strict)throw Error(n);console.warn(n)}setEventHandler(e,t){t&&this._assertHandlerTiming(e),super.setEventHandler(e,t)}addEventListener(e,t){this._assertHandlerTiming(e),super.addEventListener(e,t)}onEventDispatch(e,t){e===`hostcontextchanged`&&(this._hostContext={...this._hostContext,...t})}constructor(e,t={},n={autoResize:!0}){super(n),this._appInfo=e,this._capabilities=t,this.options=n,n.allowUnsafeEval||Oo({jitless:!0}),this.setRequestHandler(iC,e=>(console.log(`Received ping:`,e.params),{})),this.setEventHandler(`hostcontextchanged`,void 0)}registerCapabilities(e){if(this.transport)throw Error(`Cannot register capabilities after transport is established`);this._capabilities=aT(this._capabilities,e)}registerTool(e,t,n){if(this._registeredTools[e])throw Error(`Tool ${e} is already registered`);let r=this,i=()=>{r._initializedSent&&r._capabilities.tools?.listChanged&&r.sendToolListChanged()},a=t.inputSchema!==void 0,o={title:t.title,description:t.description,inputSchema:t.inputSchema,outputSchema:t.outputSchema,annotations:t.annotations,_meta:t._meta,enabled:!0,enable(){this.enabled=!0,i()},disable(){this.enabled=!1,i()},update(e){Object.assign(this,e),i()},remove(){r._registeredTools[e]===o&&(delete r._registeredTools[e],i())},handler:async(t,r)=>{if(!o.enabled)throw Error(`Tool ${e} is disabled`);let i;if(a){let a=o.inputSchema;i=await n(a?await RT(a,t??{},`Invalid input for tool ${e}: `):t??{},r)}else i=await n(r);return o.outputSchema&&!i.isError&&(i.structuredContent=await RT(o.outputSchema,i.structuredContent,`Invalid output for tool ${e}: `)),i}};return this._registeredTools[e]=o,!this._capabilities.tools&&!this.transport&&this.registerCapabilities({tools:{listChanged:!0}}),this.ensureToolHandlersInitialized(),i(),o}_toolHandlersInitialized=!1;ensureToolHandlersInitialized(){this._toolHandlersInitialized||(this._toolHandlersInitialized=!0,this.oncalltool=async(e,t)=>{let n=this._registeredTools[e.name];if(!n)throw Error(`Tool ${e.name} not found`);return n.handler(e.arguments,t)},this.onlisttools=async(e,t)=>({tools:await Promise.all(Object.entries(this._registeredTools).filter(([e,t])=>t.enabled).map(async([e,t])=>{let n={name:e,title:t.title,description:t.description,inputSchema:t.inputSchema?await LT(t.inputSchema,`input`):{type:`object`,properties:{}}};return t.outputSchema&&(n.outputSchema=await LT(t.outputSchema,`output`)),t.annotations&&(n.annotations=t.annotations),t._meta&&(n._meta=t._meta),n}))}))}async sendToolListChanged(e={}){this._assertInitialized(`sendToolListChanged`),await this.notification({method:`notifications/tools/list_changed`,params:e})}getHostCapabilities(){return this._hostCapabilities}getHostVersion(){return this._hostInfo}getHostContext(){return this._hostContext}get ontoolinput(){return this.getEventHandler(`toolinput`)}set ontoolinput(e){this.setEventHandler(`toolinput`,e)}get ontoolinputpartial(){return this.getEventHandler(`toolinputpartial`)}set ontoolinputpartial(e){this.setEventHandler(`toolinputpartial`,e)}get ontoolresult(){return this.getEventHandler(`toolresult`)}set ontoolresult(e){this.setEventHandler(`toolresult`,e)}get ontoolcancelled(){return this.getEventHandler(`toolcancelled`)}set ontoolcancelled(e){this.setEventHandler(`toolcancelled`,e)}get onhostcontextchanged(){return this.getEventHandler(`hostcontextchanged`)}set onhostcontextchanged(e){this.setEventHandler(`hostcontextchanged`,e)}_onteardown;get onteardown(){return this._onteardown}set onteardown(e){this.warnIfRequestHandlerReplaced(`onteardown`,this._onteardown,e),this._onteardown=e,this.replaceRequestHandler(ET,(e,t)=>{if(!this._onteardown)throw Error(`No onteardown handler set`);return this._onteardown(e.params,t)})}_oncalltool;get oncalltool(){return this._oncalltool}set oncalltool(e){this.warnIfRequestHandlerReplaced(`oncalltool`,this._oncalltool,e),this._oncalltool=e,this.replaceRequestHandler(hw,(e,t)=>{if(!this._oncalltool)throw Error(`No oncalltool handler set`);return this._oncalltool(e.params,t)})}_onlisttools;get onlisttools(){return this._onlisttools}set onlisttools(e){this.warnIfRequestHandlerReplaced(`onlisttools`,this._onlisttools,e),this._onlisttools=e,this.replaceRequestHandler(dw,(e,t)=>{if(!this._onlisttools)throw Error(`No onlisttools handler set`);return this._onlisttools(e.params,t)})}assertCapabilityForMethod(e){if(e===`sampling/createMessage`&&!this._hostCapabilities?.sampling)throw Error(`Host does not support sampling (required for ${e})`)}assertRequestHandlerCapability(e){switch(e){case`tools/call`:case`tools/list`:if(!this._capabilities.tools)throw Error(`Client does not support tool capability (required for ${e})`);return;case`ping`:case`ui/resource-teardown`:return;default:throw Error(`No handler for method ${e} registered`)}}assertNotificationCapability(e){}assertTaskCapability(e){throw Error(`Tasks are not supported in MCP Apps`)}assertTaskHandlerCapability(e){throw Error(`Task handlers are not supported in MCP Apps`)}async callServerTool(e,t){if(this._assertInitialized(`callServerTool`),typeof e==`string`)throw Error(`callServerTool() expects an object as its first argument, but received a string ("${e}"). Did you mean: callServerTool({ name: "${e}", arguments: { ... } })?`);return await this.request({method:`tools/call`,params:e},pw,{onprogress:()=>{},resetTimeoutOnProgress:!0,...t})}async readServerResource(e,t){return this._assertInitialized(`readServerResource`),await this.request({method:`resources/read`,params:e},RC,t)}async listServerResources(e,t){return this._assertInitialized(`listServerResources`),await this.request({method:`resources/list`,params:e},MC,t)}async createSamplingMessage(e,t){this._assertInitialized(`createSamplingMessage`);let n=e.tools?jw:Aw;return await this.request({method:`sampling/createMessage`,params:e},n,t)}sendMessage(e,t){return this._assertInitialized(`sendMessage`),this.request({method:`ui/message`,params:e},vT,t)}sendLog(e){return this.notification({method:`notifications/message`,params:e})}updateModelContext(e,t){return this._assertInitialized(`updateModelContext`),this.request({method:`ui/update-model-context`,params:e},US,t)}openLink(e,t){return this._assertInitialized(`openLink`),this.request({method:`ui/open-link`,params:e},gT,t)}sendOpenLink=this.openLink;downloadFile(e,t){return this._assertInitialized(`downloadFile`),this.request({method:`ui/download-file`,params:e},_T,t)}requestTeardown(e={}){return this.notification({method:`ui/notifications/request-teardown`,params:e})}requestDisplayMode(e,t){return this._assertInitialized(`requestDisplayMode`),this.request({method:`ui/request-display-mode`,params:e},AT,t)}sendSizeChanged(e){return this.notification({method:`ui/notifications/size-changed`,params:e})}setupSizeChangedNotifications(){let e=!1,t=0,n=0,r=()=>{e||(e=!0,requestAnimationFrame(()=>{e=!1;let r=document.documentElement,i=r.style.height;r.style.height=`max-content`;let a=Math.ceil(r.getBoundingClientRect().height);r.style.height=i;let o=Math.ceil(window.innerWidth);(o!==t||a!==n)&&(t=o,n=a,this.sendSizeChanged({width:o,height:a}))}))};r();let i=new ResizeObserver(r);return i.observe(document.documentElement),i.observe(document.body),()=>i.disconnect()}async connect(e=new fT(window.parent,window.parent),t){if(this.transport)throw Error(`App is already connected. Call close() before connecting again.`);this._initializedSent=!1,await super.connect(e);try{let e=await this.request({method:`ui/initialize`,params:{appCapabilities:this._capabilities,appInfo:this._appInfo,protocolVersion:dT}},FT,t);if(e===void 0)throw Error(`Server sent invalid initialize result: ${e}`);this._hostCapabilities=e.hostCapabilities,this._hostInfo=e.hostInfo,this._hostContext=e.hostContext,await this.notification({method:`ui/notifications/initialized`}),this._initializedSent=!0,this.options?.autoResize&&this.setupSizeChangedNotifications()}catch(e){throw this.close(),e}}};function BT({appInfo:e,capabilities:t,onAppCreated:n,autoResize:r=!0,strict:i}){let[a,o]=(0,w.useState)(null),[s,c]=(0,w.useState)(!1),[l,u]=(0,w.useState)(null);return(0,w.useEffect)(()=>{let a=!0,s;async function l(){try{let l=new fT(window.parent,window.parent);if(s=new zT(e,t,{autoResize:r,strict:i}),n?.(s),await s.connect(l),!a){s.close();return}o(s),c(!0),u(null)}catch(e){a&&(o(null),c(!1),u(e instanceof Error?e:Error(`Failed to connect`)))}}return l(),()=>{a=!1,s?.close()}},[]),{app:a,isConnected:s,error:l}}function VT(e){let[t,n]=(0,w.useState)(null),[r,i]=(0,w.useState)({}),[a,o]=(0,w.useState)(),[s,c]=(0,w.useState)(null);function l(e){if(e.isError){c(`This view could not be refreshed. Please try again.`);return}c(null),n(e.structuredContent)}let u=BT({appInfo:{name:e,version:`1.0.0`},capabilities:{},onAppCreated:e=>{e.ontoolinput=e=>{i(e.arguments??{})},e.ontoolresult=l,e.onhostcontextchanged=e=>o(t=>({...t,...e})),e.onerror=e=>{console.error(`MCP app error`,e),c(`This view could not be refreshed. Please try again.`)}}});(0,w.useEffect)(()=>{u.app&&o(u.app.getHostContext())},[u.app]);async function d(e){if(u.app)try{l(await u.app.callServerTool({name:e,arguments:r}))}catch(t){console.error(`Tool call ${e} failed`,t),c(`This view could not be refreshed. Please try again.`)}}return{...u,result:t,toolInput:r,host:a,toolError:s,callTool:d}}async function HT(e,t){e&&await e.sendMessage({role:`user`,content:[{type:`text`,text:t}]})}function UT(){let{app:e,callTool:t,error:n,host:r,result:i,toolError:a}=VT(`Fanout system health`);return(0,O.jsxs)(go,{dark:r?.theme===`dark`,children:[(0,O.jsx)(_o,{eyebrow:`Live system view`,title:`System health`,summary:i?.summary,onRefresh:()=>t(`observability_overview`),disabled:!e}),(0,O.jsx)(vo,{error:a??(n?`This view could not be loaded. Please try again.`:null),loading:!i&&!n&&!a?`Loading system health…`:void 0}),i&&(0,O.jsx)(WT,{result:i,onService:t=>HT(e,`Investigate the ${t} service. Explain its errors and latency.`)})]})}function WT({result:e,onService:t}){let{data:n}=e,r=Math.max(n.service_count,1),i=M(n.services,6);return(0,O.jsxs)(O.Fragment,{children:[(0,O.jsxs)(Ea,{cols:{base:1,xs:3},spacing:`sm`,px:{base:`md`,sm:`lg`},pb:`md`,children:[(0,O.jsx)(xo,{label:`Services`,value:wo.format(n.service_count)}),(0,O.jsx)(xo,{label:`Operations`,value:wo.format(n.total_spans)}),(0,O.jsx)(xo,{label:`Error rate`,value:To(n.error_rate),color:`${Co(n.health)}.7`})]}),(0,O.jsxs)(A,{px:{base:`md`,sm:`lg`},pb:`md`,children:[(0,O.jsxs)(_a.Root,{size:`lg`,"aria-label":`Service health distribution`,children:[(0,O.jsx)(_a.Section,{value:n.counts.healthy/r*100,color:`teal`,children:(0,O.jsx)(_a.Label,{children:n.counts.healthy})}),(0,O.jsx)(_a.Section,{value:n.counts.degraded/r*100,color:`yellow`,children:(0,O.jsx)(_a.Label,{children:n.counts.degraded})}),(0,O.jsx)(_a.Section,{value:n.counts.unhealthy/r*100,color:`red`,children:(0,O.jsx)(_a.Label,{children:n.counts.unhealthy})})]}),(0,O.jsxs)(hi,{mt:`xs`,gap:`lg`,children:[(0,O.jsx)(GT,{color:`teal`,text:`${n.counts.healthy} healthy`}),(0,O.jsx)(GT,{color:`yellow`,text:`${n.counts.degraded} degraded`}),(0,O.jsx)(GT,{color:`red`,text:`${n.counts.unhealthy} unhealthy`})]})]}),n.services.length===0?(0,O.jsx)(yo,{icon:(0,O.jsx)(lo,{size:20,weight:`duotone`}),title:`No activity in this window`,children:`Services will appear as data begins to arrive.`}):(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)(Ga.ScrollContainer,{minWidth:560,children:(0,O.jsxs)(Ga,{striped:!0,highlightOnHover:!0,verticalSpacing:`sm`,children:[(0,O.jsx)(Ga.Thead,{children:(0,O.jsxs)(Ga.Tr,{children:[(0,O.jsx)(Ga.Th,{children:`Service`}),(0,O.jsx)(Ga.Th,{children:`Traffic`}),(0,O.jsx)(Ga.Th,{children:`P95`}),(0,O.jsx)(Ga.Th,{children:`Errors`})]})}),(0,O.jsx)(Ga.Tbody,{children:i.pageItems.map(e=>(0,O.jsx)(KT,{service:e,onClick:()=>t(e.service)},e.service))})]})}),(0,O.jsx)(So,{...i,onChange:i.setPage})]}),(0,O.jsx)(bo,{left:Do(e.provenance.window),right:`Updated ${new Date(e.provenance.generated_at).toLocaleTimeString([],{hour:`numeric`,minute:`2-digit`})}`})]})}function GT({color:e,text:t}){return(0,O.jsxs)(hi,{gap:6,children:[(0,O.jsx)(A,{w:8,h:8,bg:`${e}.6`,style:{borderRadius:`50%`}}),(0,O.jsx)(Ci,{c:`dimmed`,size:`xs`,children:t})]})}function KT({service:e,onClick:t}){return(0,O.jsxs)(Ga.Tr,{onClick:t,onKeyDown:e=>{(e.key===`Enter`||e.key===` `)&&t()},tabIndex:0,style:{cursor:`pointer`},children:[(0,O.jsx)(Ga.Td,{children:(0,O.jsx)(Ei,{color:Co(e.health),variant:`light`,tt:`none`,children:e.service})}),(0,O.jsx)(Ga.Td,{children:wo.format(e.spans)}),(0,O.jsx)(Ga.Td,{children:Eo(e.p95_ms)}),(0,O.jsx)(Ga.Td,{children:To(e.error_rate)})]})}(0,mo.createRoot)(document.getElementById(`root`)).render((0,O.jsx)(w.StrictMode,{children:(0,O.jsx)(UT,{})})); -
diff --git a/internal/mcp/apps/performance.html b/internal/mcp/apps/performance.html index f296ca74..29806cd7 100644 --- a/internal/mcp/apps/performance.html +++ b/internal/mcp/apps/performance.html @@ -19,16 +19,16 @@ `+c[r].replace(` at new `,` at `);return e.displayName&&u.includes(``)&&(u=u.replace(``,e.displayName)),u}while(1<=r&&0<=i);break}}}finally{pe=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:``)?fe(n):``}function z(e,t){switch(e.tag){case 26:case 27:case 5:return fe(e.type);case 16:return fe(`Lazy`);case 13:return e.child!==t&&t!==null?fe(`Suspense Fallback`):fe(`Suspense`);case 19:return fe(`SuspenseList`);case 0:case 15:return me(e.type,!1);case 11:return me(e.type.render,!1);case 1:return me(e.type,!0);case 31:return fe(`Activity`);default:return``}}function he(e){try{var t=``,n=null;do t+=z(e,n),n=e,e=e.return;while(e);return t}catch(e){return` Error generating stack: `+e.message+` `+e.stack}}var B=Object.prototype.hasOwnProperty,ge=t.unstable_scheduleCallback,_e=t.unstable_cancelCallback,V=t.unstable_shouldYield,ve=t.unstable_requestPaint,ye=t.unstable_now,be=t.unstable_getCurrentPriorityLevel,xe=t.unstable_ImmediatePriority,Se=t.unstable_UserBlockingPriority,Ce=t.unstable_NormalPriority,we=t.unstable_LowPriority,Te=t.unstable_IdlePriority,Ee=t.log,De=t.unstable_setDisableYieldValue,Oe=null,ke=null;function Ae(e){if(typeof Ee==`function`&&De(e),ke&&typeof ke.setStrictMode==`function`)try{ke.setStrictMode(Oe,e)}catch{}}var je=Math.clz32?Math.clz32:Pe,Me=Math.log,Ne=Math.LN2;function Pe(e){return e>>>=0,e===0?32:31-(Me(e)/Ne|0)|0}var Fe=256,Ie=262144,Le=4194304;function Re(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function ze(e,t,n){var r=e.pendingLanes;if(r===0)return 0;var i=0,a=e.suspendedLanes,o=e.pingedLanes;e=e.warmLanes;var s=r&134217727;return s===0?(s=r&~a,s===0?o===0?n||(n=r&~e,n!==0&&(i=Re(n))):i=Re(o):i=Re(s)):(r=s&~a,r===0?(o&=s,o===0?n||(n=s&~e,n!==0&&(i=Re(n))):i=Re(o)):i=Re(r)),i===0?0:t!==0&&t!==i&&(t&a)===0&&(a=i&-i,n=t&-t,a>=n||a===32&&n&4194048)?t:i}function Be(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Ve(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function He(){var e=Le;return Le<<=1,!(Le&62914560)&&(Le=4194304),e}function Ue(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function We(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Ge(e,t,n,r,i,a){var o=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var s=e.entanglements,c=e.expirationTimes,l=e.hiddenUpdates;for(n=o&~n;0`u`||window.document===void 0||window.document.createElement===void 0),rn=!1;if(nn)try{var an={};Object.defineProperty(an,"passive",{get:function(){rn=!0}}),window.addEventListener(`test`,an,an),window.removeEventListener(`test`,an,an)}catch{rn=!1}var on=null,sn=null,cn=null;function ln(){if(cn)return cn;var e,t=sn,n=t.length,r,i=`value`in on?on.value:on.textContent,a=i.length;for(e=0;e=Vn),Wn=` `,Gn=!1;function Kn(e,t){switch(e){case`keyup`:return zn.indexOf(t.keyCode)!==-1;case`keydown`:return t.keyCode!==229;case`keypress`:case`mousedown`:case`focusout`:return!0;default:return!1}}function qn(e){return e=e.detail,typeof e==`object`&&`data`in e?e.data:null}var Jn=!1;function Yn(e,t){switch(e){case`compositionend`:return qn(t);case`keypress`:return t.which===32?(Gn=!0,Wn):null;case`textInput`:return e=t.data,e===Wn&&Gn?null:e;default:return null}}function Xn(e,t){if(Jn)return e===`compositionend`||!Bn&&Kn(e,t)?(e=ln(),cn=sn=on=null,Jn=!1,e):null;switch(e){case`paste`:return null;case`keypress`:if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}a:{for(;n;){if(n.nextSibling){n=n.nextSibling;break a}n=n.parentNode}n=void 0}n=vr(n)}}function br(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?br(e,t.parentNode):`contains`in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function xr(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=At(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href==`string`}catch{n=!1}if(n)e=t.contentWindow;else break;t=At(e.document)}return t}function Sr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t===`input`&&(e.type===`text`||e.type===`search`||e.type===`tel`||e.type===`url`||e.type===`password`)||t===`textarea`||e.contentEditable===`true`)}var Cr=nn&&`documentMode`in document&&11>=document.documentMode,wr=null,Tr=null,Er=null,Dr=!1;function Or(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Dr||wr==null||wr!==At(r)||(r=wr,`selectionStart`in r&&Sr(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Er&&_r(Er,r)||(Er=r,r=Pd(Tr,`onSelect`),0>=o,i-=o,bi=1<<32-je(t)+i|n<m?(h=d,d=null):h=d.sibling;var g=p(i,d,s[m],c);if(g===null){d===null&&(d=h);break}e&&d&&g.alternate===null&&t(i,d),a=o(g,a,m),u===null?l=g:u.sibling=g,u=g,d=h}if(m===s.length)return n(i,d),ki&&Si(i,m),l;if(d===null){for(;mh?(g=m,m=null):g=m.sibling;var y=p(a,m,v.value,l);if(y===null){m===null&&(m=g);break}e&&m&&y.alternate===null&&t(a,m),s=o(y,s,h),d===null?u=y:d.sibling=y,d=y,m=g}if(v.done)return n(a,m),ki&&Si(a,h),u;if(m===null){for(;!v.done;h++,v=c.next())v=f(a,v.value,l),v!==null&&(s=o(v,s,h),d===null?u=v:d.sibling=v,d=v);return ki&&Si(a,h),u}for(m=r(m);!v.done;h++,v=c.next())v=_(m,a,h,v.value,l),v!==null&&(e&&v.alternate!==null&&m.delete(v.key===null?h:v.key),s=o(v,s,h),d===null?u=v:d.sibling=v,d=v);return e&&m.forEach(function(e){return t(a,e)}),ki&&Si(a,h),u}function x(e,r,o,c){if(typeof o==`object`&&o&&o.type===g&&o.key===null&&(o=o.props.children),typeof o==`object`&&o){switch(o.$$typeof){case m:a:{for(var l=o.key;r!==null;){if(r.key===l){if(l=o.type,l===g){if(r.tag===7){n(e,r.sibling),c=a(r,o.props.children),c.return=e,e=c;break a}}else if(r.elementType===l||typeof l==`object`&&l&&l.$$typeof===T&&Ca(l)===r.type){n(e,r.sibling),c=a(r,o.props),Aa(c,o),c.return=e,e=c;break a}n(e,r);break}t(e,r),r=r.sibling}o.type===g?(c=si(o.props.children,e.mode,c,o.key),c.return=e,e=c):(c=oi(o.type,o.key,o.props,null,e.mode,c),Aa(c,o),c.return=e,e=c)}return s(e);case h:a:{for(l=o.key;r!==null;){if(r.key===l)if(r.tag===4&&r.stateNode.containerInfo===o.containerInfo&&r.stateNode.implementation===o.implementation){n(e,r.sibling),c=a(r,o.children||[]),c.return=e,e=c;break a}else{n(e,r);break}t(e,r),r=r.sibling}c=ui(o,e.mode,c),c.return=e,e=c}return s(e);case T:return o=Ca(o),x(e,r,o,c)}if(te(o))return v(e,r,o,c);if(k(o)){if(l=k(o),typeof l!=`function`)throw Error(i(150));return o=l.call(o),y(e,r,o,c)}if(typeof o.then==`function`)return x(e,r,ka(o),c);if(o.$$typeof===b)return x(e,r,Zi(e,o),c);ja(e,o)}return typeof o==`string`&&o!==``||typeof o==`number`||typeof o==`bigint`?(o=``+o,r!==null&&r.tag===6?(n(e,r.sibling),c=a(r,o),c.return=e,e=c):(n(e,r),c=ci(o,e.mode,c),c.return=e,e=c),s(e)):n(e,r)}return function(e,t,n,r){try{Oa=0;var i=x(e,t,n,r);return Da=null,i}catch(t){if(t===_a||t===ya)throw t;var a=ni(29,t,null,e.mode);return a.lanes=r,a.return=e,a}}}var Na=Ma(!0),Pa=Ma(!1),Fa=!1;function Ia(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function La(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Ra(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function za(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Bl&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,t=$r(e),Qr(e,null,n),t}return Yr(e,r,t,n),$r(e)}function Ba(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,n&4194048)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,qe(e,n)}}function Va(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var o={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};a===null?i=a=o:a=a.next=o,n=n.next}while(n!==null);a===null?i=a=t:a=a.next=t}else i=a=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,callbacks:r.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var Ha=!1;function Ua(){if(Ha){var e=ca;if(e!==null)throw e}}function Wa(e,t,n,r){Ha=!1;var i=e.updateQueue;Fa=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var c=s,l=c.next;c.next=null,o===null?a=l:o.next=l,o=c;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==o&&(s===null?u.firstBaseUpdate=l:s.next=l,u.lastBaseUpdate=c))}if(a!==null){var d=i.baseState;o=0,u=l=c=null,s=a;do{var p=s.lane&-536870913,m=p!==s.lane;if(m?(Ul&p)===p:(r&p)===p){p!==0&&p===sa&&(Ha=!0),u!==null&&(u=u.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});a:{var h=e,g=s;p=t;var _=n;switch(g.tag){case 1:if(h=g.payload,typeof h==`function`){d=h.call(_,d,p);break a}d=h;break a;case 3:h.flags=h.flags&-65537|128;case 0:if(h=g.payload,p=typeof h==`function`?h.call(_,d,p):h,p==null)break a;d=f({},d,p);break a;case 2:Fa=!0}}p=s.callback,p!==null&&(e.flags|=64,m&&(e.flags|=8192),m=i.callbacks,m===null?i.callbacks=[p]:m.push(p))}else m={lane:p,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(l=u=m,c=d):u=u.next=m,o|=p;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;m=s,s=m.next,m.next=null,i.lastBaseUpdate=m,i.shared.pending=null}}while(1);u===null&&(c=d),i.baseState=c,i.firstBaseUpdate=l,i.lastBaseUpdate=u,a===null&&(i.shared.lanes=0),Zl|=o,e.lanes=o,e.memoizedState=d}}function Ga(e,t){if(typeof e!=`function`)throw Error(i(191,e));e.call(t)}function Ka(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;ea?a:8;var o=j.T,s={};j.T=s,Ns(e,!1,t,n);try{var c=i(),l=j.S;l!==null&&l(s,c),typeof c==`object`&&c&&typeof c.then==`function`?Ms(e,t,da(c,r),yu(e)):Ms(e,t,r,yu(e))}catch(n){Ms(e,t,{then:function(){},status:`rejected`,reason:n},yu())}finally{M.p=a,o!==null&&s.types!==null&&(o.types=s.types),j.T=o}}function Ss(){}function Cs(e,t,n,r){if(e.tag!==5)throw Error(i(476));var a=ws(e).queue;xs(e,a,t,ne,n===null?Ss:function(){return Ts(e),n(r)})}function ws(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:ne,baseState:ne,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Po,lastRenderedState:ne},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Po,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Ts(e){var t=ws(e);t.next===null&&(t=e.alternate.memoizedState),Ms(e,t.next.queue,{},yu())}function Es(){return Xi(sp)}function Ds(){return ko().memoizedState}function Os(){return ko().memoizedState}function ks(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=yu();e=Ra(n);var r=za(t,e,n);r!==null&&(xu(r,t,n),Ba(r,t,n)),t={cache:ra()},e.payload=t;return}t=t.return}}function As(e,t,n){var r=yu();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Ps(e)?Fs(t,n):(n=Xr(e,t,n,r),n!==null&&(xu(n,e,r),Is(n,t,r)))}function js(e,t,n){Ms(e,t,n,yu())}function Ms(e,t,n,r){var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Ps(e))Fs(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,s=a(o,n);if(i.hasEagerState=!0,i.eagerState=s,gr(s,o))return Yr(e,t,i,0),Vl===null&&Jr(),!1}catch{}if(n=Xr(e,t,i,r),n!==null)return xu(n,e,r),Is(n,t,r),!0}return!1}function Ns(e,t,n,r){if(r={lane:2,revertLane:vd(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},Ps(e)){if(t)throw Error(i(479))}else t=Xr(e,n,r,2),t!==null&&xu(t,e,2)}function Ps(e){var t=e.alternate;return e===co||t!==null&&t===co}function Fs(e,t){po=fo=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Is(e,t,n){if(n&4194048){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,qe(e,n)}}var Ls={readContext:Xi,use:Mo,useCallback:yo,useContext:yo,useEffect:yo,useImperativeHandle:yo,useLayoutEffect:yo,useInsertionEffect:yo,useMemo:yo,useReducer:yo,useRef:yo,useState:yo,useDebugValue:yo,useDeferredValue:yo,useTransition:yo,useSyncExternalStore:yo,useId:yo,useHostTransitionStatus:yo,useFormState:yo,useActionState:yo,useOptimistic:yo,useMemoCache:yo,useCacheRefresh:yo};Ls.useEffectEvent=yo;var Rs={readContext:Xi,use:Mo,useCallback:function(e,t){return Oo().memoizedState=[e,t===void 0?null:t],e},useContext:Xi,useEffect:cs,useImperativeHandle:function(e,t,n){n=n==null?null:n.concat([e]),os(4194308,4,ms.bind(null,t,e),n)},useLayoutEffect:function(e,t){return os(4194308,4,e,t)},useInsertionEffect:function(e,t){os(4,2,e,t)},useMemo:function(e,t){var n=Oo();t=t===void 0?null:t;var r=e();if(mo){Ae(!0);try{e()}finally{Ae(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=Oo();if(n!==void 0){var i=n(t);if(mo){Ae(!0);try{n(t)}finally{Ae(!1)}}}else i=t;return r.memoizedState=r.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},r.queue=e,e=e.dispatch=As.bind(null,co,e),[r.memoizedState,e]},useRef:function(e){var t=Oo();return e={current:e},t.memoizedState=e},useState:function(e){e=Wo(e);var t=e.queue,n=js.bind(null,co,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:gs,useDeferredValue:function(e,t){return ys(Oo(),e,t)},useTransition:function(){var e=Wo(!1);return e=xs.bind(null,co,e.queue,!0,!1),Oo().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=co,a=Oo();if(ki){if(n===void 0)throw Error(i(407));n=n()}else{if(n=t(),Vl===null)throw Error(i(349));Ul&127||zo(r,t,n)}a.memoizedState=n;var o={value:n,getSnapshot:t};return a.queue=o,cs(Vo.bind(null,r,o,e),[e]),r.flags|=2048,is(9,{destroy:void 0},Bo.bind(null,r,o,n,t),null),n},useId:function(){var e=Oo(),t=Vl.identifierPrefix;if(ki){var n=xi,r=bi;n=(r&~(1<<32-je(r)-1)).toString(32)+n,t=`_`+t+`R_`+n,n=ho++,0<\/script>`,o=o.removeChild(o.firstChild);break;case`select`:o=typeof r.is==`string`?s.createElement(`select`,{is:r.is}):s.createElement(`select`),r.multiple?o.multiple=!0:r.size&&(o.size=r.size);break;default:o=typeof r.is==`string`?s.createElement(a,{is:r.is}):s.createElement(a)}}o[et]=t,o[tt]=r;a:for(s=t.child;s!==null;){if(s.tag===5||s.tag===6)o.appendChild(s.stateNode);else if(s.tag!==4&&s.tag!==27&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===t)break a;for(;s.sibling===null;){if(s.return===null||s.return===t)break a;s=s.return}s.sibling.return=s.return,s=s.sibling}t.stateNode=o;a:switch(Ud(o,a,r),a){case`button`:case`input`:case`select`:case`textarea`:r=!!r.autoFocus;break a;case`img`:r=!0;break a;default:r=!1}r&&Mc(t)}}return Lc(t),Nc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&Mc(t);else{if(typeof r!=`string`&&t.stateNode===null)throw Error(i(166));if(e=oe.current,Ii(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,a=Di,a!==null)switch(a.tag){case 27:case 5:r=a.memoizedProps}e[et]=t,e=!!(e.nodeValue===n||r!==null&&!0===r.suppressHydrationWarning||Bd(e.nodeValue,n)),e||Ni(t,!0)}else e=Yd(e).createTextNode(r),e[et]=t,t.stateNode=e}return Lc(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(r=Ii(t),n!==null){if(e===null){if(!r)throw Error(i(318));if(e=t.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(557));e[et]=t}else Li(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Lc(t),e=!1}else n=Ri(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(io(t),t):(io(t),null);if(t.flags&128)throw Error(i(558))}return Lc(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(a=Ii(t),r!==null&&r.dehydrated!==null){if(e===null){if(!a)throw Error(i(318));if(a=t.memoizedState,a=a===null?null:a.dehydrated,!a)throw Error(i(317));a[et]=t}else Li(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Lc(t),a=!1}else a=Ri(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),a=!0;if(!a)return t.flags&256?(io(t),t):(io(t),null)}return io(t),t.flags&128?(t.lanes=n,t):(n=r!==null,e=e!==null&&e.memoizedState!==null,n&&(r=t.child,a=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(a=r.alternate.memoizedState.cachePool.pool),o=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(o=r.memoizedState.cachePool.pool),o!==a&&(r.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),Fc(t,t.updateQueue),Lc(t),null);case 4:return R(),e===null&&Ad(t.stateNode.containerInfo),Lc(t),null;case 10:return Wi(t.type),Lc(t),null;case 19:if(re(ao),r=t.memoizedState,r===null)return Lc(t),null;if(a=!!(t.flags&128),o=r.rendering,o===null)if(a)Ic(r,!1);else{if(Xl!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=oo(e),o!==null){for(t.flags|=128,Ic(r,!1),e=o.updateQueue,t.updateQueue=e,Fc(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)ai(n,e),n=n.sibling;return I(ao,ao.current&1|2),ki&&Si(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&ye()>su&&(t.flags|=128,a=!0,Ic(r,!1),t.lanes=4194304)}else{if(!a)if(e=oo(o),e!==null){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,Fc(t,e),Ic(r,!0),r.tail===null&&r.tailMode===`hidden`&&!o.alternate&&!ki)return Lc(t),null}else 2*ye()-r.renderingStartTime>su&&n!==536870912&&(t.flags|=128,a=!0,Ic(r,!1),t.lanes=4194304);r.isBackwards?(o.sibling=t.child,t.child=o):(e=r.last,e===null?t.child=o:e.sibling=o,r.last=o)}return r.tail===null?(Lc(t),null):(e=r.tail,r.rendering=e,r.tail=e.sibling,r.renderingStartTime=ye(),e.sibling=null,n=ao.current,I(ao,a?n&1|2:n&1),ki&&Si(t,r.treeForkCount),e);case 22:case 23:return io(t),Za(),r=t.memoizedState!==null,e===null?r&&(t.flags|=8192):e.memoizedState!==null!==r&&(t.flags|=8192),r?n&536870912&&!(t.flags&128)&&(Lc(t),t.subtreeFlags&6&&(t.flags|=8192)):Lc(t),n=t.updateQueue,n!==null&&Fc(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),r=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),e!==null&&re(pa),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Wi(na),Lc(t),null;case 25:return null;case 30:return null}throw Error(i(156,t.tag))}function zc(e,t){switch(Ti(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Wi(na),R(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return le(t),null;case 31:if(t.memoizedState!==null){if(io(t),t.alternate===null)throw Error(i(340));Li()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(io(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(i(340));Li()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return re(ao),null;case 4:return R(),null;case 10:return Wi(t.type),null;case 22:case 23:return io(t),Za(),e!==null&&re(pa),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Wi(na),null;case 25:return null;default:return null}}function Bc(e,t){switch(Ti(t),t.tag){case 3:Wi(na),R();break;case 26:case 27:case 5:le(t);break;case 4:R();break;case 31:t.memoizedState!==null&&io(t);break;case 13:io(t);break;case 19:re(ao);break;case 10:Wi(t.type);break;case 22:case 23:io(t),Za(),e!==null&&re(pa);break;case 24:Wi(na)}}function Vc(e,t){try{var n=t.updateQueue,r=n===null?null:n.lastEffect;if(r!==null){var i=r.next;n=i;do{if((n.tag&e)===e){r=void 0;var a=n.create,o=n.inst;r=a(),o.destroy=r}n=n.next}while(n!==i)}}catch(e){Zu(t,t.return,e)}}function Hc(e,t,n){try{var r=t.updateQueue,i=r===null?null:r.lastEffect;if(i!==null){var a=i.next;r=a;do{if((r.tag&e)===e){var o=r.inst,s=o.destroy;if(s!==void 0){o.destroy=void 0,i=t;var c=n,l=s;try{l()}catch(e){Zu(i,c,e)}}}r=r.next}while(r!==a)}}catch(e){Zu(t,t.return,e)}}function Uc(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{Ka(t,n)}catch(t){Zu(e,e.return,t)}}}function Wc(e,t,n){n.props=Gs(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(n){Zu(e,t,n)}}function Gc(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;case 30:r=e.stateNode;break;default:r=e.stateNode}typeof n==`function`?e.refCleanup=n(r):n.current=r}}catch(n){Zu(e,t,n)}}function Kc(e,t){var n=e.ref,r=e.refCleanup;if(n!==null)if(typeof r==`function`)try{r()}catch(n){Zu(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n==`function`)try{n(null)}catch(n){Zu(e,t,n)}else n.current=null}function qc(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{a:switch(t){case`button`:case`input`:case`select`:case`textarea`:n.autoFocus&&r.focus();break a;case`img`:n.src?r.src=n.src:n.srcSet&&(r.srcset=n.srcSet)}}catch(t){Zu(e,e.return,t)}}function Jc(e,t,n){try{var r=e.stateNode;Wd(r,e.type,n,t),r[tt]=t}catch(t){Zu(e,e.return,t)}}function Yc(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&sf(e.type)||e.tag===4}function Xc(e){a:for(;;){for(;e.sibling===null;){if(e.return===null||Yc(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&sf(e.type)||e.flags&2||e.child===null||e.tag===4)continue a;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Zc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=qt));else if(r!==4&&(r===27&&sf(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(Zc(e,t,n),e=e.sibling;e!==null;)Zc(e,t,n),e=e.sibling}function Qc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(r===27&&sf(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(Qc(e,t,n),e=e.sibling;e!==null;)Qc(e,t,n),e=e.sibling}function $c(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);Ud(t,r,n),t[et]=e,t[tt]=n}catch(t){Zu(e,e.return,t)}}var el=!1,tl=!1,nl=!1,rl=typeof WeakSet==`function`?WeakSet:Set,il=null;function al(e,t){if(e=e.containerInfo,qd=gp,e=xr(e),Sr(e)){if(`selectionStart`in e)var n={start:e.selectionStart,end:e.selectionEnd};else a:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var a=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break a}var s=0,c=-1,l=-1,u=0,d=0,f=e,p=null;b:for(;;){for(var m;f!==n||a!==0&&f.nodeType!==3||(c=s+a),f!==o||r!==0&&f.nodeType!==3||(l=s+r),f.nodeType===3&&(s+=f.nodeValue.length),(m=f.firstChild)!==null;)p=f,f=m;for(;;){if(f===e)break b;if(p===n&&++u===a&&(c=s),p===o&&++d===r&&(l=s),(m=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=m}n=c===-1||l===-1?null:{start:c,end:l}}else n=null}n||={start:0,end:0}}else n=null;for(Jd={focusedElem:e,selectionRange:n},gp=!1,il=t;il!==null;)if(t=il,e=t.child,t.subtreeFlags&1028&&e!==null)e.return=t,il=e;else for(;il!==null;){switch(t=il,o=t.alternate,e=t.flags,t.tag){case 0:if(e&4&&(e=t.updateQueue,e=e===null?null:e.events,e!==null))for(n=0;n title`))),Ud(o,r,n),o[et]=e,pt(o),r=o;break a;case`link`:var s=Xf(`link`,`href`,a).get(r+(n.href||``));if(s){for(var c=0;cg&&(o=g,g=h,h=o);var _=yr(s,h),v=yr(s,g);if(_&&v&&(p.rangeCount!==1||p.anchorNode!==_.node||p.anchorOffset!==_.offset||p.focusNode!==v.node||p.focusOffset!==v.offset)){var y=d.createRange();y.setStart(_.node,_.offset),p.removeAllRanges(),h>g?(p.addRange(y),p.extend(v.node,v.offset)):(y.setEnd(v.node,v.offset),p.addRange(y))}}}}for(d=[],p=s;p=p.parentNode;)p.nodeType===1&&d.push({element:p,left:p.scrollLeft,top:p.scrollTop});for(typeof s.focus==`function`&&s.focus(),s=0;sn?32:n,j.T=null,n=hu,hu=null;var o=du,s=pu;if(uu=0,fu=du=null,pu=0,Bl&6)throw Error(i(331));var c=Bl;if(Bl|=4,Fl(o.current),Dl(o,o.current,s,n),Bl=c,dd(0,!1),ke&&typeof ke.onPostCommitFiberRoot==`function`)try{ke.onPostCommitFiberRoot(Oe,o)}catch{}return!0}finally{M.p=a,j.T=r,qu(e,t)}}function Xu(e,t,n){t=fi(n,t),t=Zs(e.stateNode,t,2),e=za(e,t,2),e!==null&&(We(e,2),ud(e))}function Zu(e,t,n){if(e.tag===3)Xu(e,e,n);else for(;t!==null;){if(t.tag===3){Xu(t,e,n);break}if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(lu===null||!lu.has(r))){e=fi(n,e),n=Qs(2),r=za(t,n,2),r!==null&&($s(n,r,t,e),We(r,2),ud(r));break}}t=t.return}}function Qu(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new zl;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(Jl=!0,i.add(n),e=$u.bind(null,e,t,n),t.then(e,e))}function $u(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Vl===e&&(Ul&n)===n&&(Xl===4||Xl===3&&(Ul&62914560)===Ul&&300>ye()-au?!(Bl&2)&&Ou(e,0):$l|=n,tu===Ul&&(tu=0)),ud(e)}function ed(e,t){t===0&&(t=He()),e=Zr(e,t),e!==null&&(We(e,t),ud(e))}function td(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),ed(e,n)}function nd(e,t){var n=0;switch(e.tag){case 31:case 13:var r=e.stateNode,a=e.memoizedState;a!==null&&(n=a.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(i(314))}r!==null&&r.delete(t),ed(e,n)}function rd(e,t){return ge(e,t)}var id=null,ad=null,od=!1,sd=!1,cd=!1,ld=0;function ud(e){e!==ad&&e.next===null&&(ad===null?id=ad=e:ad=ad.next=e),sd=!0,od||(od=!0,_d())}function dd(e,t){if(!cd&&sd){cd=!0;do for(var n=!1,r=id;r!==null;){if(!t)if(e!==0){var i=r.pendingLanes;if(i===0)var a=0;else{var o=r.suspendedLanes,s=r.pingedLanes;a=(1<<31-je(42|e)+1)-1,a&=i&~(o&~s),a=a&201326741?a&201326741|1:a?a|2:0}a!==0&&(n=!0,gd(r,a))}else a=Ul,a=ze(r,r===Vl?a:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),!(a&3)||Be(r,a)||(n=!0,gd(r,a));r=r.next}while(n);cd=!1}}function fd(){pd()}function pd(){sd=od=!1;var e=0;ld!==0&&ef()&&(e=ld);for(var t=ye(),n=null,r=id;r!==null;){var i=r.next,a=md(r,t);a===0?(r.next=null,n===null?id=i:n.next=i,i===null&&(ad=n)):(n=r,(e!==0||a&3)&&(sd=!0)),r=i}uu!==0&&uu!==5||dd(e,!1),ld!==0&&(ld=0)}function md(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes&-62914561;0s)break;var u=c.transferSize,d=c.initiatorType;u&&Gd(d)&&(c=c.responseEnd,o+=u*(c`u`?null:document;function Af(e,t,n){var r=kf;if(r&&typeof t==`string`&&t){var i=Mt(t);i=`link[rel="`+e+`"][href="`+i+`"]`,typeof n==`string`&&(i+=`[crossorigin="`+n+`"]`),wf.has(i)||(wf.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement(`link`),Ud(t,`link`,e),pt(t),r.head.appendChild(t)))}}function jf(e){Ef.D(e),Af(`dns-prefetch`,e,null)}function Mf(e,t){Ef.C(e,t),Af(`preconnect`,e,t)}function Nf(e,t,n){Ef.L(e,t,n);var r=kf;if(r&&e&&t){var i=`link[rel="preload"][as="`+Mt(t)+`"]`;t===`image`&&n&&n.imageSrcSet?(i+=`[imagesrcset="`+Mt(n.imageSrcSet)+`"]`,typeof n.imageSizes==`string`&&(i+=`[imagesizes="`+Mt(n.imageSizes)+`"]`)):i+=`[href="`+Mt(e)+`"]`;var a=i;switch(t){case`style`:a=zf(e);break;case`script`:a=Uf(e)}Cf.has(a)||(e=f({rel:`preload`,href:t===`image`&&n&&n.imageSrcSet?void 0:e,as:t},n),Cf.set(a,e),r.querySelector(i)!==null||t===`style`&&r.querySelector(Bf(a))||t===`script`&&r.querySelector(Wf(a))||(t=r.createElement(`link`),Ud(t,`link`,e),pt(t),r.head.appendChild(t)))}}function Pf(e,t){Ef.m(e,t);var n=kf;if(n&&e){var r=t&&typeof t.as==`string`?t.as:`script`,i=`link[rel="modulepreload"][as="`+Mt(r)+`"][href="`+Mt(e)+`"]`,a=i;switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:a=Uf(e)}if(!Cf.has(a)&&(e=f({rel:`modulepreload`,href:e},t),Cf.set(a,e),n.querySelector(i)===null)){switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:if(n.querySelector(Wf(a)))return}r=n.createElement(`link`),Ud(r,`link`,e),pt(r),n.head.appendChild(r)}}}function Ff(e,t,n){Ef.S(e,t,n);var r=kf;if(r&&e){var i=ft(r).hoistableStyles,a=zf(e);t||=`default`;var o=i.get(a);if(!o){var s={loading:0,preload:null};if(o=r.querySelector(Bf(a)))s.loading=5;else{e=f({rel:`stylesheet`,href:e,"data-precedence":t},n),(n=Cf.get(a))&&qf(e,n);var c=o=r.createElement(`link`);pt(c),Ud(c,`link`,e),c._p=new Promise(function(e,t){c.onload=e,c.onerror=t}),c.addEventListener(`load`,function(){s.loading|=1}),c.addEventListener(`error`,function(){s.loading|=2}),s.loading|=4,Kf(o,t,r)}o={type:`stylesheet`,instance:o,count:1,state:s},i.set(a,o)}}}function If(e,t){Ef.X(e,t);var n=kf;if(n&&e){var r=ft(n).hoistableScripts,i=Uf(e),a=r.get(i);a||(a=n.querySelector(Wf(i)),a||(e=f({src:e,async:!0},t),(t=Cf.get(i))&&Jf(e,t),a=n.createElement(`script`),pt(a),Ud(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Lf(e,t){Ef.M(e,t);var n=kf;if(n&&e){var r=ft(n).hoistableScripts,i=Uf(e),a=r.get(i);a||(a=n.querySelector(Wf(i)),a||(e=f({src:e,async:!0,type:`module`},t),(t=Cf.get(i))&&Jf(e,t),a=n.createElement(`script`),pt(a),Ud(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Rf(e,t,n,r){var a=(a=oe.current)?Tf(a):null;if(!a)throw Error(i(446));switch(e){case`meta`:case`title`:return null;case`style`:return typeof n.precedence==`string`&&typeof n.href==`string`?(t=zf(n.href),n=ft(a).hoistableStyles,r=n.get(t),r||(r={type:`style`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};case`link`:if(n.rel===`stylesheet`&&typeof n.href==`string`&&typeof n.precedence==`string`){e=zf(n.href);var o=ft(a).hoistableStyles,s=o.get(e);if(s||(a=a.ownerDocument||a,s={type:`stylesheet`,instance:null,count:0,state:{loading:0,preload:null}},o.set(e,s),(o=a.querySelector(Bf(e)))&&!o._p&&(s.instance=o,s.state.loading=5),Cf.has(e)||(n={rel:`preload`,as:`style`,href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},Cf.set(e,n),o||Hf(a,e,n,s.state))),t&&r===null)throw Error(i(528,``));return s}if(t&&r!==null)throw Error(i(529,``));return null;case`script`:return t=n.async,n=n.src,typeof n==`string`&&t&&typeof t!=`function`&&typeof t!=`symbol`?(t=Uf(n),n=ft(a).hoistableScripts,r=n.get(t),r||(r={type:`script`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};default:throw Error(i(444,e))}}function zf(e){return`href="`+Mt(e)+`"`}function Bf(e){return`link[rel="stylesheet"][`+e+`]`}function Vf(e){return f({},e,{"data-precedence":e.precedence,precedence:null})}function Hf(e,t,n,r){e.querySelector(`link[rel="preload"][as="style"][`+t+`]`)?r.loading=1:(t=e.createElement(`link`),r.preload=t,t.addEventListener(`load`,function(){return r.loading|=1}),t.addEventListener(`error`,function(){return r.loading|=2}),Ud(t,`link`,n),pt(t),e.head.appendChild(t))}function Uf(e){return`[src="`+Mt(e)+`"]`}function Wf(e){return`script[async]`+e}function Gf(e,t,n){if(t.count++,t.instance===null)switch(t.type){case`style`:var r=e.querySelector(`style[data-href~="`+Mt(n.href)+`"]`);if(r)return t.instance=r,pt(r),r;var a=f({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement(`style`),pt(r),Ud(r,`style`,a),Kf(r,n.precedence,e),t.instance=r;case`stylesheet`:a=zf(n.href);var o=e.querySelector(Bf(a));if(o)return t.state.loading|=4,t.instance=o,pt(o),o;r=Vf(n),(a=Cf.get(a))&&qf(r,a),o=(e.ownerDocument||e).createElement(`link`),pt(o);var s=o;return s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),Ud(o,`link`,r),t.state.loading|=4,Kf(o,n.precedence,e),t.instance=o;case`script`:return o=Uf(n.src),(a=e.querySelector(Wf(o)))?(t.instance=a,pt(a),a):(r=n,(a=Cf.get(o))&&(r=f({},n),Jf(r,a)),e=e.ownerDocument||e,a=e.createElement(`script`),pt(a),Ud(a,`link`,r),e.head.appendChild(a),t.instance=a);case`void`:return null;default:throw Error(i(443,t.type))}else t.type===`stylesheet`&&!(t.state.loading&4)&&(r=t.instance,t.state.loading|=4,Kf(r,n.precedence,e));return t.instance}function Kf(e,t,n){for(var r=n.querySelectorAll(`link[rel="stylesheet"][data-precedence],style[data-precedence]`),i=r.length?r[r.length-1]:null,a=i,o=0;o title`):null)}function Qf(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case`meta`:case`title`:return!0;case`style`:if(typeof t.precedence!=`string`||typeof t.href!=`string`||t.href===``)break;return!0;case`link`:if(typeof t.rel!=`string`||typeof t.href!=`string`||t.href===``||t.onLoad||t.onError)break;switch(t.rel){case`stylesheet`:return e=t.disabled,typeof t.precedence==`string`&&e==null;default:return!0}case`script`:if(t.async&&typeof t.async!=`function`&&typeof t.async!=`symbol`&&!t.onLoad&&!t.onError&&t.src&&typeof t.src==`string`)return!0}return!1}function $f(e){return!(e.type===`stylesheet`&&!(e.state.loading&3))}function ep(e,t,n,r){if(n.type===`stylesheet`&&(typeof r.media!=`string`||!1!==matchMedia(r.media).matches)&&!(n.state.loading&4)){if(n.instance===null){var i=zf(r.href),a=t.querySelector(Bf(i));if(a){t=a._p,typeof t==`object`&&t&&typeof t.then==`function`&&(e.count++,e=rp.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=a,pt(a);return}a=t.ownerDocument||t,r=Vf(r),(i=Cf.get(i))&&qf(r,i),a=a.createElement(`link`),pt(a);var o=a;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),Ud(a,`link`,r),n.instance=a}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&!(n.state.loading&3)&&(e.count++,n=rp.bind(e),t.addEventListener(`load`,n),t.addEventListener(`error`,n))}}var tp=0;function np(e,t){return e.stylesheets&&e.count===0&&ap(e,e.stylesheets),0tp?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}function rp(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)ap(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var ip=null;function ap(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,ip=new Map,t.forEach(op,e),ip=null,rp.call(e))}function op(e,t){if(!(t.state.loading&4)){var n=ip.get(e);if(n)var r=n.get(null);else{n=new Map,ip.set(e,n);for(var i=e.querySelectorAll(`link[data-precedence],style[data-precedence]`),a=0;a{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=FL()}))(),LL=eN({primaryColor:`teal`,defaultRadius:`md`,fontFamily:`Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, Segoe UI, sans-serif`,fontFamilyMonospace:`ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace`,headings:{fontFamily:`inherit`,fontWeight:`650`},cursorType:`pointer`});function RL({dark:e,children:t}){return(0,K.jsx)(QM,{theme:LL,forceColorScheme:e?`dark`:`light`,children:(0,K.jsx)($P,{withBorder:!0,radius:`lg`,style:{overflow:`hidden`},children:t})})}function zL({eyebrow:e,title:t,summary:n,onRefresh:r,disabled:i}){return(0,K.jsxs)(CF,{justify:`space-between`,align:`flex-start`,wrap:`nowrap`,px:{base:`md`,sm:`lg`},pt:`md`,pb:`sm`,children:[(0,K.jsxs)(nP,{miw:0,children:[(0,K.jsx)(jF,{c:`dimmed`,size:`xs`,fw:700,tt:`uppercase`,lts:`0.1em`,children:e}),(0,K.jsx)(hL,{order:1,fz:`lg`,mt:2,style:{overflow:`hidden`,textOverflow:`ellipsis`,whiteSpace:`nowrap`},children:t}),n&&(0,K.jsx)(jF,{c:`dimmed`,size:`sm`,mt:4,children:n})]}),(0,K.jsx)(UF,{variant:`default`,size:`xs`,leftSection:(0,K.jsx)(wL,{size:15,weight:`bold`}),onClick:()=>void r(),disabled:i,children:`Refresh`})]})}function BL({error:e,loading:t}){return e?(0,K.jsx)(EF,{color:`red`,m:`md`,children:e}):t?(0,K.jsxs)(GF,{mih:160,p:`xl`,children:[(0,K.jsx)(pF,{size:`sm`}),(0,K.jsx)(jF,{c:`dimmed`,size:`sm`,ml:`sm`,children:t})]}):null}function VL({active:e,items:t,onChange:n}){return(0,K.jsx)(KP,{type:`auto`,offsetScrollbars:!0,scrollbarSize:6,children:(0,K.jsx)(aL,{value:e,onChange:e=>e&&n(e),variant:`pills`,px:{base:`md`,sm:`lg`},pb:`sm`,children:(0,K.jsx)(aL.List,{style:{flexWrap:`nowrap`},children:t.map(e=>(0,K.jsx)(aL.Tab,{value:e.id,rightSection:e.count===void 0?void 0:(0,K.jsx)(PF,{size:`xs`,variant:`light`,circle:!0,children:e.count}),children:e.label},e.id))})})})}function HL({icon:e,title:t,children:n,tall:r=!1}){return(0,K.jsx)(GF,{mih:r?220:130,p:`xl`,children:(0,K.jsxs)(CF,{wrap:`nowrap`,children:[(0,K.jsx)(cL,{variant:`light`,size:`xl`,radius:`md`,children:e}),(0,K.jsxs)(nP,{children:[(0,K.jsx)(jF,{fw:700,size:`sm`,children:t}),(0,K.jsx)(jF,{c:`dimmed`,size:`xs`,mt:3,children:n})]})]})})}function UL({left:e,right:t}){return(0,K.jsxs)(CF,{justify:`space-between`,px:{base:`md`,sm:`lg`},py:`xs`,style:{borderTop:`1px solid var(--mantine-color-default-border)`},children:[(0,K.jsx)(jF,{c:`dimmed`,size:`xs`,children:e}),(0,K.jsx)(jF,{c:`dimmed`,size:`xs`,ta:`right`,children:t})]})}function WL({label:e,value:t,color:n}){return(0,K.jsxs)($P,{withBorder:!0,radius:`md`,p:`sm`,children:[(0,K.jsx)(jF,{c:`dimmed`,size:`xs`,children:e}),(0,K.jsx)(jF,{fw:700,fz:`xl`,c:n,mt:3,children:t})]})}function GL(e,t=8){let[n,r]=(0,G.useState)(1),i=Math.max(1,Math.ceil(e.length/t));(0,G.useEffect)(()=>{n>i&&r(i)},[n,i]);let a=(n-1)*t;return{page:n,setPage:r,totalPages:i,pageItems:e.slice(a,a+t),from:e.length===0?0:a+1,to:Math.min(a+t,e.length),total:e.length}}function KL({page:e,totalPages:t,from:n,to:r,total:i,onChange:a}){return t<=1?null:(0,K.jsxs)(CF,{justify:`space-between`,gap:`sm`,px:{base:`md`,sm:`lg`},py:`xs`,style:{borderTop:`1px solid var(--mantine-color-default-border)`},children:[(0,K.jsxs)(jF,{c:`dimmed`,size:`xs`,children:[n,`–`,r,` of `,i]}),(0,K.jsx)(_I,{value:e,total:t,onChange:a,size:`xs`,withEdges:!0,"aria-label":`Table pages`})]})}function qL(e){return e===`healthy`?`teal`:e===`degraded`?`yellow`:`red`}function JL(e){return e?{text:`#c1c9c5`,muted:`#8c9892`,grid:`#303a35`,surface:`#1b211e`,border:`#38443e`}:{text:`#344039`,muted:`#748078`,grid:`#e5e9e6`,surface:`#ffffff`,border:`#d7ddd9`}}var YL=Ec(),XL=N,ZL=pe,QL=function(){function e(){this._dragging=!1,this.animationThreshold=15}return e.prototype.render=function(e,t,n,r){var i=t.get(`value`),a=t.get(`status`);if(this._axisModel=e,this._axisPointerModel=t,this._api=n,!(!r&&this._lastValue===i&&this._lastStatus===a)){this._lastValue=i,this._lastStatus=a;var o=this._group,s=this._handle;if(!a||a===`hide`){o&&o.hide(),s&&s.hide();return}o&&o.show(),s&&s.show();var c={};this.makeElOption(c,i,e,t,n);var l=c.graphicKey;l!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=l;var u=this._moveAnimation=this.determineAnimation(e,t);if(!o)o=this._group=new Hu,this.createPointerEl(o,c,e,t),this.createLabelEl(o,c,e,t),n.getZr().add(o);else{var d=me($L,t,u);this.updatePointerEl(o,c,d),this.updateLabelEl(o,c,d,t)}rR(o,t,!0),this._renderHandle(i)}},e.prototype.remove=function(e){this.clear(e)},e.prototype.dispose=function(e){this.clear(e)},e.prototype.determineAnimation=function(e,t){var n=t.get(`animation`),r=e.axis,i=r.type===`category`,a=t.get(`snap`);if(!a&&!i)return!1;if(n===`auto`||n==null){var o=this.animationThreshold;if(i&&Rx(r).w>o)return!0;if(a){var s=Xk(e).seriesDataCount,c=r.getExtent();return Math.abs(c[0]-c[1])/s>o}return!1}return n===!0},e.prototype.makeElOption=function(e,t,n,r,i){},e.prototype.createPointerEl=function(e,t,n,r){var i=t.pointer;if(i){var a=YL(e).pointerEl=new Qd[i.type](XL(t.pointer));e.add(a)}},e.prototype.createLabelEl=function(e,t,n,r){if(t.label){var i=YL(e).labelEl=new Xo(XL(t.label));e.add(i),tR(i,r)}},e.prototype.updatePointerEl=function(e,t,n){var r=YL(e).pointerEl;r&&t.pointer&&(r.setStyle(t.pointer.style),n(r,{shape:t.pointer.shape}))},e.prototype.updateLabelEl=function(e,t,n,r){var i=YL(e).labelEl;i&&(i.setStyle(t.label.style),n(i,{x:t.label.x,y:t.label.y}),tR(i,r))},e.prototype._renderHandle=function(e){if(!(this._dragging||!this.updateHandleTransform)){var t=this._axisPointerModel,n=this._api.getZr(),r=this._handle,i=t.getModel(`handle`),a=t.get(`status`);if(!i.get(`show`)||!a||a===`hide`){r&&n.remove(r),this._handle=null;return}var o;this._handle||(o=!0,r=this._handle=wf(i.get(`icon`),{cursor:`move`,draggable:!0,onmousemove:function(e){PC(e.event)},onmousedown:ZL(this._onHandleDragMove,this,0,0),drift:ZL(this._onHandleDragMove,this),ondragend:ZL(this._onHandleDragEnd,this)}),n.add(r)),rR(r,t,!1),r.setStyle(i.getItemStyle(null,[`color`,`borderColor`,`borderWidth`,`opacity`,`shadowColor`,`shadowBlur`,`shadowOffsetX`,`shadowOffsetY`]));var s=i.get(`size`);z(s)||(s=[s,s]),r.scaleX=s[0]/2,r.scaleY=s[1]/2,vC(this,`_doDispatchAxisPointer`,i.get(`throttle`)||0,`fixRate`),this._moveHandleToValue(e,o)}},e.prototype._moveHandleToValue=function(e,t){$L(this._axisPointerModel,!t&&this._moveAnimation,this._handle,nR(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},e.prototype._onHandleDragMove=function(e,t){var n=this._handle;if(n){this._dragging=!0;var r=this.updateHandleTransform(nR(n),[e,t],this._axisModel,this._axisPointerModel);this._payloadInfo=r,n.stopAnimation(),n.attr(nR(r)),YL(n).lastProp=null,this._doDispatchAxisPointer()}},e.prototype._doDispatchAxisPointer=function(){if(this._handle){var e=this._payloadInfo,t=this._axisModel;this._api.dispatchAction({type:`updateAxisPointer`,x:e.cursorPoint[0],y:e.cursorPoint[1],tooltipOption:e.tooltipOption,axesInfo:[{axisDim:t.axis.dim,axisIndex:t.componentIndex}]})}},e.prototype._onHandleDragEnd=function(){if(this._dragging=!1,this._handle){var e=this._axisPointerModel.get(`value`);this._moveHandleToValue(e),this._api.dispatchAction({type:`hideTip`})}},e.prototype.clear=function(e){this._lastValue=null,this._lastStatus=null;var t=e.getZr(),n=this._group,r=this._handle;t&&n&&(this._lastGraphicKey=null,n&&t.remove(n),r&&t.remove(r),this._group=null,this._handle=null,this._payloadInfo=null),yC(this,`_doDispatchAxisPointer`)},e.prototype.doClear=function(){},e.prototype.buildLabel=function(e,t,n){return n||=0,{x:e[n],y:e[1-n],width:t[n],height:t[1-n]}},e}();function $L(e,t,n,r){eR(YL(n).lastProp,r)||(YL(n).lastProp=r,t?Gd(n,r,e):(n.stopAnimation(),n.attr(r)))}function eR(e,t){if(V(e)&&V(t)){var n=!0;return L(t,function(t,r){n&&=eR(e[r],t)}),!!n}return e===t}function tR(e,t){e[t.get([`label`,`show`])?`show`:`hide`]()}function nR(e){return{x:e.x||0,y:e.y||0,rotation:e.rotation||0}}function rR(e,t,n){var r=t.get(`z`),i=t.get(`zlevel`);e&&e.traverse(function(e){e.type!==`group`&&(r!=null&&(e.z=r),i!=null&&(e.zlevel=i),e.silent=n)})}function iR(e){var t=e.get(`type`),n=e.getModel(t+`Style`),r;return t===`line`?(r=n.getLineStyle(),r.fill=null):t===`shadow`&&(r=n.getAreaStyle(),r.stroke=null),r}function aR(e,t,n,r,i){var a=sR(n.get(`value`),t.axis,t.ecModel,n.get(`seriesDataIndices`),{precision:n.get([`label`,`precision`]),formatter:n.get([`label`,`formatter`])}),o=n.getModel(`label`),s=Bg(o.get(`padding`)||0),c=o.getFont(),l=yn(a,c),u=i.position,d=l.width+s[1]+s[3],f=l.height+s[0]+s[2],p=i.align;p===`right`&&(u[0]-=d),p===`center`&&(u[0]-=d/2);var m=i.verticalAlign;m===`bottom`&&(u[1]-=f),m===`middle`&&(u[1]-=f/2),oR(u,d,f,r);var h=o.get(`backgroundColor`);(!h||h===`auto`)&&(h=t.get([`axisLine`,`lineStyle`,`color`])),e.label={x:u[0],y:u[1],style:Qf(o,{text:a,font:c,fill:o.getTextColor(),padding:s,backgroundColor:h}),z2:10}}function oR(e,t,n,r){var i=r.getWidth(),a=r.getHeight();e[0]=Math.min(e[0]+t,i)-t,e[1]=Math.min(e[1]+n,a)-n,e[0]=Math.max(e[0],0),e[1]=Math.max(e[1],0)}function sR(e,t,n,r,i){e=t.scale.parse(e);var a=t.scale.getLabel({value:e},{precision:i.precision}),o=i.formatter;if(o){var s={value:yb(t,{value:e}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};L(r,function(e){var t=n.getSeriesByIndex(e.seriesIndex),r=e.dataIndexInside,i=t&&t.getDataParams(r);i&&s.seriesData.push(i)}),B(o)?a=o.replace(`{value}`,a):he(o)&&(a=o(s))}return a}function cR(e,t,n){var r=_t();return St(r,r,n.rotation),xt(r,r,n.position),_f([e.dataToCoord(t),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],r)}function lR(e,t,n,r,i,a){var o=SS.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=i.get([`label`,`margin`]),aR(t,r,i,a,{position:cR(r.axis,e,n),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function uR(e,t,n){return n||=0,{x1:e[n],y1:e[1-n],x2:t[n],y2:t[1-n]}}function dR(e,t,n){return n||=0,{x:e[n],y:e[1-n],width:t[n],height:t[1-n]}}function fR(e,t,n){return Rx(e,{fromStat:{sers:R(t,function(e){return n.getSeriesByIndex(e.seriesIndex)})},min:1}).w}function pR(e,t,n){return[ms(ps(t[0],t[1]),e-n/2),ps(e+n/2,ms(t[0],t[1]))]}var mR=function(e){p(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.makeElOption=function(e,t,n,r,i){var a=n.axis,o=a.grid,s=r.get(`type`),c=a.getGlobalExtent(),l=hR(o,a).getOtherAxis(a).getGlobalExtent(),u=a.toGlobalCoord(a.dataToCoord(t,!0));if(s&&s!==`none`){var d=iR(r),f=gR[s](a,u,c,l,r.get(`seriesDataIndices`),r.ecModel);f.style=d,e.graphicKey=f.type,e.pointer=f}lR(t,e,US(o.getRect(),n),n,r,i)},t.prototype.getHandleTransform=function(e,t,n){var r=US(t.axis.grid.getRect(),t,{labelInside:!1});r.labelMargin=n.get([`handle`,`margin`]);var i=cR(t.axis,e,r);return{x:i[0],y:i[1],rotation:r.rotation+(r.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,t,n,r){var i=n.axis,a=i.grid,o=i.getGlobalExtent(!0),s=hR(a,i).getOtherAxis(i).getGlobalExtent(),c=i.dim===`x`?0:1,l=[e.x,e.y];l[c]+=t[c],l[c]=ps(o[1],l[c]),l[c]=ms(o[0],l[c]);var u=(s[1]+s[0])/2,d=[u,u];return d[c]=l[c],{x:l[0],y:l[1],rotation:e.rotation,cursorPoint:d,tooltipOption:[{verticalAlign:`middle`},{align:`center`}][c]}},t}(QL);function hR(e,t){var n={};return n[t.dim+`AxisIndex`]=t.index,e.getCartesian(n)}var gR={line:function(e,t,n,r){return{type:`Line`,subPixelOptimize:!0,shape:uR([t,r[0]],[t,r[1]],_R(e))}},shadow:function(e,t,n,r,i,a){var o=fR(e,i,a),s=r[1]-r[0],c=pR(t,n,o),l=c[0],u=c[1];return{type:`Rect`,shape:dR([l,r[0]],[u-l,s],_R(e))}}};function _R(e){return e.dim===`x`?0:1}var vR=function(e){p(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type=`axisPointer`,t.defaultOption={show:`auto`,z:50,type:`line`,snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:H.color.border,width:1,type:`dashed`},shadowStyle:{color:H.color.shadowTint},label:{show:!0,formatter:null,precision:`auto`,margin:3,color:H.color.neutral00,padding:[5,7,5,7],backgroundColor:H.color.accent60,borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:`M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z`,size:45,margin:50,color:H.color.accent40,throttle:40}},t}(c_),yR=Ec(),bR=L;function xR(e,t,n){if(!We.node){var r=t.getZr();yR(r).records||(yR(r).records={}),SR(r,t);var i=yR(r).records[e]||(yR(r).records[e]={});i.handler=n}}function SR(e,t){if(yR(e).initialized)return;yR(e).initialized=!0,n(`click`,me(TR,`click`)),n(`mousemove`,me(TR,`mousemove`)),n(`mousewheel`,me(TR,`mousewheel`)),n(`globalout`,wR);function n(n,r){e.on(n,function(n){var i=ER(t);bR(yR(e).records,function(e){e&&r(e,n,i.dispatchAction)}),CR(i.pendings,t)})}}function CR(e,t){var n=e.showTip.length,r=e.hideTip.length,i;n?i=e.showTip[n-1]:r&&(i=e.hideTip[r-1]),i&&(i.dispatchAction=null,t.dispatchAction(i))}function wR(e,t,n){e.handler(`leave`,null,n)}function TR(e,t,n,r){t.handler(e,n,r)}function ER(e){var t={showTip:[],hideTip:[]},n=function(r){var i=t[r.type];i?i.push(r):(r.dispatchAction=n,e.dispatchAction(r))};return{dispatchAction:n,pendings:t}}function DR(e,t){if(!We.node){var n=t.getZr();(yR(n).records||{})[e]&&(yR(n).records[e]=null)}}var OR=function(e){p(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(e,t,n){var r=t.getComponent(`tooltip`),i=e.get(`triggerOn`)||r&&r.get(`triggerOn`)||`mousemove|click|mousewheel`;xR(`axisPointer`,n,function(e,t,n){i!==`none`&&(e===`leave`||i.indexOf(e)>=0)&&n({type:`updateAxisPointer`,currTrigger:e,x:t&&t.offsetX,y:t&&t.offsetY})})},t.prototype.remove=function(e,t){DR(`axisPointer`,t)},t.prototype.dispose=function(e,t){DR(`axisPointer`,t)},t.type=`axisPointer`,t}(zT);function kR(e,t){var n=[],r=e.seriesIndex,i;if(r==null||!(i=t.getSeriesByIndex(r)))return{point:[]};var a=i.getData(),o=Tc(a,e);if(o==null||o<0||z(o))return{point:[]};var s=a.getItemGraphicEl(o),c=i.coordinateSystem;if(i.getTooltipPosition)n=i.getTooltipPosition(o)||[];else if(c&&c.dataToPoint)if(e.isStacked){var l=c.getBaseAxis(),u=c.getOtherAxis(l).dim,d=l.dim,f=+(u===`x`||u===`radius`),p=a.mapDimension(d),m=[];m[f]=a.get(p,o),m[1-f]=a.get(a.getCalculationInfo(`stackResultDimension`),o),n=c.dataToPoint(m)||[]}else n=c.dataToPoint(a.getValues(R(c.dimensions,function(e){return a.mapDimension(e)}),o))||[];else if(s){var h=s.getBoundingRect().clone();h.applyTransform(s.transform),n=[h.x+h.width/2,h.y+h.height/2]}return{point:n,el:s}}var AR=Ec();function jR(e,t,n){var r=e.currTrigger,i=[e.x,e.y],a=e,o=e.dispatchAction||pe(n.dispatchAction,n),s=t.getComponent(`axisPointer`).coordSysAxesInfo;if(s){VR(i)&&(i=kR({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},t).point);var c=VR(i),l=a.axesInfo,u=s.axesInfo,d=r===`leave`||VR(i),f={},p={},m={list:[],map:{}},h={showPointer:me(PR,p),showTooltip:me(FR,m)};L(s.coordSysMap,function(e,t){var n=c||e.containPoint(i);L(s.coordSysAxesInfo[t],function(e,t){var r=e.axis,a=zR(l,e);if(!d&&n&&(!l||a)){var o=a&&a.value;o==null&&!c&&(o=r.pointToData(i)),o!=null&&MR(e,o,h,!1,f)}})});var g={};return L(u,function(e,t){var n=e.linkGroup;n&&!p[t]&&L(n.axesInfo,function(t,r){var i=p[r];if(t!==e&&i){var a=i.value;n.mapper&&(a=e.axis.scale.parse(n.mapper(a,BR(t),BR(e)))),g[e.key]=a}})}),L(g,function(e,t){MR(u[t],e,h,!0,f)}),IR(p,u,f),LR(m,i,e,o),RR(u,o,n),f}}function MR(e,t,n,r,i){var a=e.axis;if(!(a.scale.isBlank()||!a.containData(t))){if(!e.involveSeries){n.showPointer(e,t);return}var o=NR(t,e),s=o.payloadBatch,c=o.snapToValue;s[0]&&i.seriesIndex==null&&F(i,s[0]),!r&&e.snap&&a.containData(c)&&c!=null&&(t=c),n.showPointer(e,t,s),n.showTooltip(e,o,c)}}function NR(e,t){var n=t.axis,r=n.dim,i=e,a=[],o=Number.MAX_VALUE,s=-1;return L(t.seriesModels,function(t,c){var l=t.getData().mapDimensionsAll(r),u,d;if(t.getAxisTooltipData){var f=t.getAxisTooltipData(l,e,n);d=f.dataIndices,u=f.nestestValue}else{if(d=t.indicesOfNearest(r,l[0],e,n.type===`category`?.5:null),!d.length)return;u=t.getData().get(l[0],d[0])}if(Ys(u)){var p=e-u,m=Math.abs(p);m<=o&&((m=0&&s<0)&&(o=m,s=p,i=u,a.length=0),L(d,function(e){a.push({seriesIndex:t.seriesIndex,dataIndexInside:e,dataIndex:t.getData().getRawIndex(e)})}))}}),{payloadBatch:a,snapToValue:i}}function PR(e,t,n,r){e[t.key]={value:n,payloadBatch:r}}function FR(e,t,n,r){var i=n.payloadBatch,a=t.axis,o=a.model,s=t.axisPointerModel;if(!(!t.triggerTooltip||!i.length)){var c=t.coordSys.model,l=$k(c),u=e.map[l];u||(u=e.map[l]={coordSysId:c.id,coordSysIndex:c.componentIndex,coordSysType:c.type,coordSysMainType:c.mainType,dataByAxis:[]},e.list.push(u)),u.dataByAxis.push({axisDim:a.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:r,valueLabelOpt:{precision:s.get([`label`,`precision`]),formatter:s.get([`label`,`formatter`])},seriesDataIndices:i.slice()})}}function IR(e,t,n){var r=n.axesInfo=[];L(t,function(t,n){var i=t.axisPointerModel.option,a=e[n];a?(!t.useHandle&&(i.status=`show`),i.value=a.value,i.seriesDataIndices=(a.payloadBatch||[]).slice()):!t.useHandle&&(i.status=`hide`),i.status===`show`&&r.push({axisDim:t.axis.dim,axisIndex:t.axis.model.componentIndex,value:i.value})})}function LR(e,t,n,r){if(VR(t)||!e.list.length){r({type:`hideTip`});return}var i=((e.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};r({type:`showTip`,escapeConnect:!0,x:t[0],y:t[1],tooltipOption:n.tooltipOption,position:n.position,dataIndexInside:i.dataIndexInside,dataIndex:i.dataIndex,seriesIndex:i.seriesIndex,dataByCoordSys:e.list})}function RR(e,t,n){var r=n.getZr(),i=`axisPointerLastHighlights`,a=AR(r)[i]||{},o=AR(r)[i]={};L(e,function(e,t){var n=e.axisPointerModel.option;n.status===`show`&&e.triggerEmphasis&&L(n.seriesDataIndices,function(e){o[e.seriesIndex+`|`+e.dataIndex]=e})});var s=[],c=[];function l(e){return{seriesIndex:e.seriesIndex,dataIndex:e.dataIndex}}L(a,function(e,t){!o[t]&&c.push(l(e))}),L(o,function(e,t){!a[t]&&s.push(l(e))}),c.length&&n.dispatchAction({type:`downplay`,escapeConnect:!0,notBlur:!0,batch:c}),s.length&&n.dispatchAction({type:`highlight`,escapeConnect:!0,notBlur:!0,batch:s})}function zR(e,t){for(var n=0;n<(e||[]).length;n++){var r=e[n];if(t.axis.dim===r.axisDim&&t.axis.model.componentIndex===r.axisIndex)return r}}function BR(e){var t=e.axis.model,n={},r=n.axisDim=e.axis.dim;return n.axisIndex=n[r+`AxisIndex`]=t.componentIndex,n.axisName=n[r+`AxisName`]=t.name,n.axisId=n[r+`AxisId`]=t.id,n}function VR(e){return!e||e[0]==null||isNaN(e[0])||e[1]==null||isNaN(e[1])}function HR(e){tA.registerAxisPointerClass(`CartesianAxisPointer`,mR),e.registerComponentModel(vR),e.registerComponentView(OR),e.registerPreprocessor(function(e){if(e){(!e.axisPointer||e.axisPointer.length===0)&&(e.axisPointer={});var t=e.axisPointer.link;t&&!z(t)&&(e.axisPointer.link=[t])}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,{overallReset:function(e,t){e.getComponent(`axisPointer`).coordSysAxesInfo=Uk(e,t)}}),e.registerAction({type:`updateAxisPointer`,event:`updateAxisPointer`,update:`:updateAxisPointer`},jR)}function UR(e){ok(fA),ok(HR)}function WR(e,t){var n=Bg(t.get(`padding`)),r=t.getItemStyle([`color`,`opacity`]);return r.fill=t.get(`backgroundColor`),new Go({shape:{x:e.x-n[3],y:e.y-n[0],width:e.width+n[1]+n[3],height:e.height+n[0]+n[2],r:t.get(`borderRadius`)},style:r,silent:!0,z2:-1})}var GR=function(e){p(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type=`tooltip`,t.dependencies=[`axisPointer`],t.defaultOption={z:60,show:!0,showContent:!0,trigger:`item`,triggerOn:`mousemove|click|mousewheel`,alwaysShowContent:!1,renderMode:`auto`,confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,displayTransition:!0,enterable:!1,backgroundColor:H.color.neutral00,shadowBlur:10,shadowColor:`rgba(0, 0, 0, .2)`,shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,defaultBorderColor:H.color.border,padding:null,extraCssText:``,axisPointer:{type:`line`,axis:`auto`,animation:`auto`,animationDurationUpdate:200,animationEasingUpdate:`exponentialOut`,crossStyle:{color:H.color.borderShade,width:1,type:`dashed`,textStyle:{}}},textStyle:{color:H.color.tertiary,fontSize:14}},t}(c_);function KR(e){var t=e.get(`confine`);return t==null?e.get(`renderMode`)===`richText`:!!t}function qR(e){if(We.domSupported){for(var t=document.documentElement.style,n=0,r=e.length;n-1?(s+=`top:50%`,c+=`translateY(-50%) rotate(`+(l=a===`left`?-225:-45)+`deg)`):(s+=`left:50%`,c+=`translateX(-50%) rotate(`+(l=a===`top`?225:45)+`deg)`);var u=l*Math.PI/180,d=o+i,f=d*Math.abs(Math.cos(u))+d*Math.abs(Math.sin(u)),p=Math.round(((f-Math.SQRT2*i)/2+Math.SQRT2*i-(f-d)/2)*100)/100;s+=`;`+a+`:-`+p+`px`;var m=t+` solid `+i+`px;`;return`
`}function rz(e,t,n){var r=`cubic-bezier(0.23,1,0.32,1)`,i=``,a=``;return n&&(i=` `+e/2+`s `+r,a=`opacity`+i+`,visibility`+i),t||(i=` `+e+`s `+r,a+=(a.length?`,`:``)+(We.transformSupported?``+$R+i:`,left`+i+`,top`+i)),QR+`:`+a}function iz(e,t,n){var r=e.toFixed(0)+`px`,i=t.toFixed(0)+`px`;if(!We.transformSupported)return n?`top:`+i+`;left:`+r+`;`:[[`top`,i],[`left`,r]];var a=We.transform3dSupported,o=`translate`+(a?`3d`:``)+`(`+r+`,`+i+(a?`,0`:``)+`)`;return n?`top:0;left:0;`+$R+`:`+o+`;`:[[`top`,0],[`left`,0],[JR,o]]}function az(e){var t=[],n=e.get(`fontSize`),r=e.getTextColor();r&&t.push(`color:`+r),t.push(`font:`+e.getFont());var i=we(e.get(`lineHeight`),Math.round(n*3/2));n&&t.push(`line-height:`+i+`px`);var a=e.get(`textShadowColor`),o=e.get(`textShadowBlur`)||0,s=e.get(`textShadowOffsetX`)||0,c=e.get(`textShadowOffsetY`)||0;return a&&o&&t.push(`text-shadow:`+s+`px `+c+`px `+o+`px `+a),L([`decoration`,`align`],function(n){var r=e.get(n);r&&t.push(`text-`+n+`:`+r)}),t.join(`;`)}function oz(e,t,n,r){var i=[],a=e.get(`transitionDuration`),o=e.get(`backgroundColor`),s=e.get(`shadowBlur`),c=e.get(`shadowColor`),l=e.get(`shadowOffsetX`),u=e.get(`shadowOffsetY`),d=e.getModel(`textStyle`),f=av(e,`html`),p=l+`px `+u+`px `+s+`px `+c;return i.push(`box-shadow:`+p),t&&a>0&&i.push(rz(a,n,r)),o&&i.push(`background-color:`+o),L([`width`,`color`,`radius`],function(t){var n=`border-`+t,r=zg(n),a=e.get(r);a!=null&&i.push(n+`:`+a+(t===`color`?``:`px`))}),i.push(az(d)),f!=null&&i.push(`padding:`+Bg(f).join(`px `)+`px`),i.join(`;`)+`;`}function sz(e,t,n,r,i){var a=t&&t.painter;if(n){var o=a&&a.getViewportRoot();o&&Ah(e,o,n,r,i)}else{e[0]=r,e[1]=i;var s=a&&a.getViewportRootOffset();s&&(e[0]+=s.offsetLeft,e[1]+=s.offsetTop)}e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var cz=function(){function e(e,t){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,We.wxa)return null;var n=document.createElement(`div`);n.domBelongToZr=!0,this.el=n;var r=this._zr=e.getZr(),i=t.appendTo,a=i&&(B(i)?document.querySelector(i):be(i)?i:he(i)&&i(e.getDom()));sz(this._styleCoord,r,a,e.getWidth()/2,e.getHeight()/2),(a||e.getDom()).appendChild(n),this._api=e,this._container=a;var o=this;n.onmouseenter=function(){o._enterable&&(clearTimeout(o._hideTimeout),o._show=!0),o._inContent=!0},n.onmousemove=function(e){if(e||=window.event,!o._enterable){var t=r.handler;AC(r.painter.getViewportRoot(),e,!0),t.dispatch(`mousemove`,e)}},n.onmouseleave=function(){o._inContent=!1,o._enterable&&o._show&&o.hideLater(o._hideDelay)}}return e.prototype.update=function(e){if(!this._container){var t=this._api.getDom(),n=ZR(t,`position`),r=t.style;r.position!==`absolute`&&n!==`absolute`&&(r.position=`relative`)}var i=e.get(`alwaysShowContent`);i&&this._moveIfResized(),this._alwaysShowContent=i,this._enableDisplayTransition=e.get(`displayTransition`)&&e.get(`transitionDuration`)>0,this.el.className=e.get(`className`)||``},e.prototype.show=function(e,t){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,r=n.style,i=this._styleCoord;n.innerHTML?r.cssText=ez+oz(e,!this._firstShow,this._longHide,this._enableDisplayTransition)+iz(i[0],i[1],!0)+(`border-color:`+Kg(t)+`;`)+(e.get(`extraCssText`)||``)+(`;pointer-events:`+(this._enterable?`auto`:`none`)):r.display=`none`,this._show=!0,this._firstShow=!1,this._longHide=!1},e.prototype.setContent=function(e,t,n,r,i){var a=this.el;if(e==null){a.innerHTML=``;return}var o=``;if(B(i)&&n.get(`trigger`)===`item`&&!KR(n)&&(o=nz(n,r,i)),B(e))a.innerHTML=e+o;else if(e){a.innerHTML=``,z(e)||(e=[e]);for(var s=0;s=0?this._tryShow(n,r):t===`leave`&&this._hide(r))},this))},t.prototype._keepShow=function(){var e=this._tooltipModel,t=this._ecModel,n=this._api,r=e.get(`triggerOn`);if(e.get(`trigger`)!==`axis`&&(this._lastDataByCoordSys=null,this._cbParamsList=null),this._lastX!=null&&this._lastY!=null&&r!==`none`&&r!==`click`){var i=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!n.isDisposed()&&i.manuallyShowTip(e,t,n,{x:i._lastX,y:i._lastY,dataByCoordSys:i._lastDataByCoordSys})})}},t.prototype.manuallyShowTip=function(e,t,n,r){if(!(r.from===this.uid||We.node||!n.getDom())){var i=gz(r,n);this._ticket=``;var a=r.dataByCoordSys,o=xz(r,t,n);if(o){var s=o.el.getBoundingRect().clone();s.applyTransform(o.el.transform),this._tryShow({offsetX:s.x+s.width/2,offsetY:s.y+s.height/2,target:o.el,position:r.position,positionDefault:`bottom`},i)}else if(r.tooltip&&r.x!=null&&r.y!=null){var c=pz;c.x=r.x,c.y=r.y,c.update(),el(c).tooltipConfig={name:null,option:r.tooltip},this._tryShow({offsetX:r.x,offsetY:r.y,target:c},i)}else if(a)this._tryShow({offsetX:r.x,offsetY:r.y,position:r.position,dataByCoordSys:a,tooltipOption:r.tooltipOption},i);else if(r.seriesIndex!=null){if(this._manuallyAxisShowTip(e,t,n,r))return;var l=kR(r,t),u=l.point[0],d=l.point[1];u!=null&&d!=null&&this._tryShow({offsetX:u,offsetY:d,target:l.el,position:r.position,positionDefault:`bottom`},i)}else r.x!=null&&r.y!=null&&(n.dispatchAction({type:`updateAxisPointer`,x:r.x,y:r.y}),this._tryShow({offsetX:r.x,offsetY:r.y,position:r.position,target:n.getZr().findHover(r.x,r.y).target},i))}},t.prototype.manuallyHideTip=function(e,t,n,r){var i=this._tooltipContent;this._tooltipModel&&i.hideLater(this._tooltipModel.get(`hideDelay`)),this._lastX=this._lastY=this._lastDataByCoordSys=null,this._cbParamsList=null,r.from!==this.uid&&this._hide(gz(r,n))},t.prototype._manuallyAxisShowTip=function(e,t,n,r){var i=r.seriesIndex,a=r.dataIndex,o=t.getComponent(`axisPointer`).coordSysAxesInfo;if(i!=null&&a!=null&&o!=null){var s=t.getSeriesByIndex(i);if(s&&hz([s.getData().getItemModel(a),s,(s.coordinateSystem||{}).model],this._tooltipModel).get(`trigger`)===`axis`)return n.dispatchAction({type:`updateAxisPointer`,seriesIndex:i,dataIndex:a,position:r.position}),!0}},t.prototype._tryShow=function(e,t){var n=e.target;if(this._tooltipModel){this._lastX=e.offsetX,this._lastY=e.offsetY;var r=e.dataByCoordSys;if(r&&r.length)this._showAxisTooltip(r,e);else if(n){if(el(n).ssrType===`legend`)return;this._lastDataByCoordSys=null,this._cbParamsList=null;var i,a;wE(n,function(e){if(e.tooltipDisabled)return i=a=null,!0;i||a||(el(e).dataIndex==null?el(e).tooltipConfig!=null&&(a=e):i=e)},!0),i?this._showSeriesItemTooltip(e,i,t):a?this._showComponentItemTooltip(e,a,t):this._hide(t)}else this._lastDataByCoordSys=null,this._cbParamsList=null,this._hide(t)}},t.prototype._showOrMove=function(e,t){var n=e.get(`showDelay`);t=pe(t,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(t,n):t()},t.prototype._showAxisTooltip=function(e,t){var n=this._ecModel,r=this._tooltipModel,i=[t.offsetX,t.offsetY],a=hz([t.tooltipOption],r),o=this._renderMode,s=[],c=G_(`section`,{blocks:[],noHeader:!0}),l=[],u=new ov;L(e,function(e){L(e.dataByAxis,function(e){var t=n.getComponent(e.axisDim+`Axis`,e.axisIndex),i=e.value,a=t.axis,d=a.scale.parse(i);if(!(!t||i==null)){var f=sR(i,a,n,e.seriesDataIndices,e.valueLabelOpt),p=G_(`section`,{header:f,noHeader:!ke(f),sortBlocks:!0,blocks:[]});c.blocks.push(p),L(e.seriesDataIndices,function(i){var a=n.getSeriesByIndex(i.seriesIndex),c=i.dataIndexInside,m=a.getDataParams(c);if(!(m.dataIndex<0)){m.axisDim=e.axisDim,m.axisIndex=e.axisIndex,m.axisType=e.axisType,m.axisId=e.axisId,m.axisValue=yb(t.axis,{value:d}),m.axisValueLabel=f,m.marker=u.makeTooltipMarker(`item`,Kg(m.color),o);var h=y_(a.formatTooltip(c,!0,null)),g=h.frag;if(g){var _=hz([a],r).get(`valueFormatter`);p.blocks.push(_?F({valueFormatter:_},g):g)}h.text&&l.push(h.text),s.push(m)}})}})}),c.blocks.reverse(),l.reverse();var d=t.position,f=Z_(c,u,o,a.get(`order`),n.get(`useUTC`),a.get(`textStyle`));f&&l.unshift(f);var p=o===`richText`?` - -`:`
`,m=l.join(p);this._showOrMove(a,function(){this._updateContentNotChangedOnAxis(e,s)?this._updatePosition(a,d,i[0],i[1],this._tooltipContent,s):this._showTooltipContent(a,m,s,Math.random()+``,i[0],i[1],d,null,u)})},t.prototype._showSeriesItemTooltip=function(e,t,n){var r=this._ecModel,i=el(t),a=i.seriesIndex,o=r.getSeriesByIndex(a),s=i.dataModel||o,c=i.dataIndex,l=i.dataType,u=s.getData(l),d=this._renderMode,f=e.positionDefault,p=hz([u.getItemModel(c),s,o&&(o.coordinateSystem||{}).model],this._tooltipModel,f?{position:f}:null),m=p.get(`trigger`);if(m==null||m===`item`){var h=s.getDataParams(c,l),g=new ov;h.marker=g.makeTooltipMarker(`item`,Kg(h.color),d);var _=y_(s.formatTooltip(c,!1,l)),v=p.get(`order`),y=p.get(`valueFormatter`),b=_.frag,x=b?Z_(y?F({valueFormatter:y},b):b,g,d,v,r.get(`useUTC`),p.get(`textStyle`)):_.text,S=`item_`+s.name+`_`+c;this._showOrMove(p,function(){this._showTooltipContent(p,x,h,S,e.offsetX,e.offsetY,e.position,e.target,g)}),n({type:`showTip`,dataIndexInside:c,dataIndex:u.getRawIndex(c),seriesIndex:a,from:this.uid})}},t.prototype._showComponentItemTooltip=function(e,t,n){var r=this._renderMode===`html`,i=el(t),a=i.tooltipConfig.option||{},o=a.encodeHTMLContent;if(B(a)){var s=a;a={content:s,formatter:s},o=!0}o&&r&&a.content&&(a=N(a),a.content=Rh(a.content));var c=[a],l=this._ecModel.getComponent(i.componentMainType,i.componentIndex);l&&c.push(l),c.push({formatter:a.content});var u=e.positionDefault,d=hz(c,this._tooltipModel,u?{position:u}:null),f=d.get(`content`),p=Math.random()+``,m=new ov;this._showOrMove(d,function(){var n=N(d.get(`formatterParams`)||{});this._showTooltipContent(d,f,n,p,e.offsetX,e.offsetY,e.position,t,m)}),n({type:`showTip`,from:this.uid})},t.prototype._showTooltipContent=function(e,t,n,r,i,a,o,s,c){if(this._ticket=``,!(!e.get(`showContent`)||!e.get(`show`))){var l=this._tooltipContent;l.setEnterable(e.get(`enterable`));var u=e.get(`formatter`);o||=e.get(`position`);var d=t,f=this._getNearestPoint([i,a],n,e.get(`trigger`),e.get(`borderColor`),e.get(`defaultBorderColor`,!0)).color;if(u)if(B(u)){var p=e.ecModel.get(`useUTC`),m=z(n)?n[0]:n,h=m&&m.axisType&&m.axisType.indexOf(`time`)>=0;d=u,h&&(d=bg(m.axisValue,d,p)),d=Wg(d,n,!0)}else if(he(u)){var g=pe(function(t,r){t===this._ticket&&(l.setContent(r,c,e,f,o),this._updatePosition(e,o,i,a,l,n,s))},this);this._ticket=r,d=u(n,r,g)}else d=u;l.setContent(d,c,e,f,o),l.show(e,f),this._updatePosition(e,o,i,a,l,n,s)}},t.prototype._getNearestPoint=function(e,t,n,r,i){if(n===`axis`||z(t))return{color:r||i};if(!z(t))return{color:r||t.color||t.borderColor}},t.prototype._updatePosition=function(e,t,n,r,i,a,o){var s=this._api.getWidth(),c=this._api.getHeight();t||=e.get(`position`);var l=i.getSize(),u=e.get(`align`),d=e.get(`verticalAlign`),f=o&&o.getBoundingRect().clone();if(o&&f.applyTransform(o.transform),he(t)&&(t=t([n,r],a,i.el,f,{viewSize:[s,c],contentSize:l.slice()})),z(t))n=Ts(t[0],s),r=Ts(t[1],c);else if(V(t)){var p=t;p.width=l[0],p.height=l[1];var m=$g(p,{width:s,height:c});n=m.x,r=m.y,u=null,d=null}else if(B(t)&&o){var h=yz(t,f,l,e.get(`borderWidth`));n=h[0],r=h[1]}else{var h=_z(n,r,i,s,c,u?null:20,d?null:20);n=h[0],r=h[1]}if(u&&(n-=bz(u)?l[0]/2:u===`right`?l[0]:0),d&&(r-=bz(d)?l[1]/2:d===`bottom`?l[1]:0),KR(e)){var h=vz(n,r,i,s,c);n=h[0],r=h[1]}i.moveTo(n,r)},t.prototype._updateContentNotChangedOnAxis=function(e,t){var n=this._lastDataByCoordSys,r=this._cbParamsList,i=!!n&&n.length===e.length;return i&&L(n,function(n,a){var o=n.dataByAxis||[],s=(e[a]||{}).dataByAxis||[];i&&=o.length===s.length,i&&L(o,function(e,n){var a=s[n]||{},o=e.seriesDataIndices||[],c=a.seriesDataIndices||[];i=i&&e.value===a.value&&e.axisType===a.axisType&&e.axisId===a.axisId&&o.length===c.length,i&&L(o,function(e,t){var n=c[t];i=i&&e.seriesIndex===n.seriesIndex&&e.dataIndex===n.dataIndex}),r&&L(e.seriesDataIndices,function(e){var n=e.seriesIndex,a=t[n],o=r[n];a&&o&&o.data!==a.data&&(i=!1)})})}),this._lastDataByCoordSys=e,this._cbParamsList=t,!!i},t.prototype._hide=function(e){this._lastDataByCoordSys=null,this._cbParamsList=null,e({type:`hideTip`,from:this.uid})},t.prototype.dispose=function(e,t){We.node||!t.getDom()||(yC(this,`_updatePosition`),this._tooltipContent.dispose(),DR(`itemTooltip`,t),this._tooltipContent=null,this._tooltipModel=null,this._lastDataByCoordSys=null,this._cbParamsList=null)},t.type=`tooltip`,t}(zT);function hz(e,t,n){var r=t.ecModel,i;n?(i=new yp(n,r,r),i=new yp(t.option,i,r)):i=t;for(var a=e.length-1;a>=0;a--){var o=e[a];o&&(o instanceof yp&&(o=o.get(`tooltip`,!0)),B(o)&&(o={formatter:o}),o&&(i=new yp(o,i,r)))}return i}function gz(e,t){return e.dispatchAction||pe(t.dispatchAction,t)}function _z(e,t,n,r,i,a,o){var s=n.getSize(),c=s[0],l=s[1];return a!=null&&(e+c+a+2>r?e-=c+a:e+=a),o!=null&&(t+l+o>i?t-=l+o:t+=o),[e,t]}function vz(e,t,n,r,i){var a=n.getSize(),o=a[0],s=a[1];return e=Math.min(e+o,r)-o,t=Math.min(t+s,i)-s,e=Math.max(e,0),t=Math.max(t,0),[e,t]}function yz(e,t,n,r){var i=n[0],a=n[1],o=Math.ceil(Math.SQRT2*r)+8,s=0,c=0,l=t.width,u=t.height;switch(e){case`inside`:s=t.x+l/2-i/2,c=t.y+u/2-a/2;break;case`top`:s=t.x+l/2-i/2,c=t.y-a-o;break;case`bottom`:s=t.x+l/2-i/2,c=t.y+u+o;break;case`left`:s=t.x-i-o,c=t.y+u/2-a/2;break;case`right`:s=t.x+l+o,c=t.y+u/2-a/2}return[s,c]}function bz(e){return e===`center`||e===`middle`}function xz(e,t,n){var r=kc(e).queryOptionMap,i=r.keys()[0];if(!(!i||i===`series`)){var a=jc(t,i,r.get(i),{useDefault:!1,enableAll:!1,enableNone:!1}).models[0];if(a){var o=n.getViewOfComponentModel(a),s;if(o.group.traverse(function(t){var n=el(t).tooltipConfig;if(n&&n.name===e.name)return s=t,!0}),s)return{componentMainType:i,componentIndex:a.componentIndex,el:s}}}}function Sz(e){ok(HR),e.registerComponentModel(GR),e.registerComponentView(mz),e.registerAction({type:`showTip`,event:`showTip`,update:`tooltip:manuallyShowTip`},Ve),e.registerAction({type:`hideTip`,event:`hideTip`,update:`tooltip:manuallyHideTip`},Ve)}var Cz=L;function wz(e){if(e){for(var t in e)if(e.hasOwnProperty(t))return!0}}function Tz(e,t,n){var r={};return Cz(t,function(t){var a=r[t]=i();Cz(e[t],function(e,r){if(gA.isValidType(r)){var i={type:r,visual:e};n&&n(i,t),a[r]=new gA(i),r===`opacity`&&(i=N(i),i.type=`colorAlpha`,a.__hidden.__alphaForOpacity=new gA(i))}})}),r;function i(){var e=function(){};return e.prototype.__hidden=e.prototype,new e}}function Ez(e,t,n){var r;L(n,function(e){t.hasOwnProperty(e)&&wz(t[e])&&(r=!0)}),r&&L(n,function(n){t.hasOwnProperty(n)&&wz(t[n])?e[n]=N(t[n]):delete e[n]})}function Dz(e,t,n,r){var i={};return L(e,function(e){i[e]=gA.prepareVisualTypes(t[e])}),{progress:function(e,a){var o;r!=null&&(o=a.getDimensionIndex(r));function s(e){return xE(a,l,e)}function c(e,t){CE(a,l,e,t)}for(var l,u=a.getStore();(l=e.next())!=null;){var d=a.getRawDataItem(l);if(!(d&&d.visualMap===!1))for(var f=r==null?l:u.get(o,l),p=n(f),m=t[p],h=i[p],g=0,_=h.length;g<_;g++){var v=h[g];m[v]&&m[v].applyVisual(f,s,c)}}}}}var Oz=function(e,t){if(t===`all`)return{type:`all`,title:e.getLocaleModel().get([`legend`,`selector`,`all`])};if(t===`inverse`)return{type:`inverse`,title:e.getLocaleModel().get([`legend`,`selector`,`inverse`])}},kz=function(e){p(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.layoutMode={type:`box`,ignoreSize:!0},n}return t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n),e.selected=e.selected||{},this._updateSelector(e)},t.prototype.mergeOption=function(t,n){e.prototype.mergeOption.call(this,t,n),this._updateSelector(t)},t.prototype._updateSelector=function(e){var t=e.selector,n=this.ecModel;t===!0&&(t=e.selector=[`all`,`inverse`]),z(t)&&L(t,function(e,r){B(e)&&(e={type:e}),t[r]=P(e,Oz(n,e.type))})},t.prototype.optionUpdated=function(){this._updateData(this.ecModel);var e=this._data;if(e[0]&&this.get(`selectedMode`)===`single`){for(var t=!1,n=0;n=0},t.prototype.getOrient=function(){return this.get(`orient`)===`vertical`?{index:1,name:`vertical`}:{index:0,name:`horizontal`}},t.type=`legend.plain`,t.dependencies=[`series`],t.defaultOption={z:4,show:!0,orient:`horizontal`,left:`center`,bottom:H.size.m,align:`auto`,backgroundColor:H.color.transparent,borderColor:H.color.border,borderRadius:0,borderWidth:0,padding:5,itemGap:8,itemWidth:25,itemHeight:14,symbolRotate:`inherit`,symbolKeepAspect:!0,inactiveColor:H.color.disabled,inactiveBorderColor:H.color.disabled,inactiveBorderWidth:`auto`,itemStyle:{color:`inherit`,opacity:`inherit`,borderColor:`inherit`,borderWidth:`auto`,borderCap:`inherit`,borderJoin:`inherit`,borderDashOffset:`inherit`,borderMiterLimit:`inherit`},lineStyle:{width:`auto`,color:`inherit`,inactiveColor:H.color.disabled,inactiveWidth:2,opacity:`inherit`,type:`inherit`,cap:`inherit`,join:`inherit`,dashOffset:`inherit`,miterLimit:`inherit`},textStyle:{color:H.color.secondary},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:`sans-serif`,color:H.color.tertiary,borderWidth:1,borderColor:H.color.border},emphasis:{selectorLabel:{show:!0,color:H.color.quaternary}},selectorPosition:`auto`,selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1},triggerEvent:!1},t}(c_),Az=me,jz=L,Mz=Hu,Nz=function(e){p(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.newlineDisabled=!1,n}return t.prototype.init=function(){this.group.add(this._contentGroup=new Mz),this.group.add(this._selectorGroup=new Mz),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(e,t,n){var r=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),e.get(`show`,!0)){var i=e.get(`align`),a=e.get(`orient`);(!i||i===`auto`)&&(i=e.get(`left`)===`right`&&a===`vertical`?`right`:`left`);var o=e.get(`selector`,!0),s=e.get(`selectorPosition`,!0);o&&(!s||s===`auto`)&&(s=a===`horizontal`?`end`:`start`),this.renderInner(i,e,t,n,o,a,s);var c=t_(e,n).refContainer,l=e.getBoxLayoutParams(),u=e.get(`padding`),d=$g(l,c,u),f=this.layoutInner(e,i,d,r,o,s),p=$g(I({width:f.width,height:f.height},l),c,u);this.group.x=p.x-f.x,this.group.y=p.y-f.y,this.group.markRedraw(),this.group.add(this._backgroundEl=WR(f,e))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(e,t,n,r,i,a,o){var s=this.getContentGroup(),c=Le(),l=t.get(`selectedMode`),u=t.get(`triggerEvent`),d=[];n.eachRawSeries(function(e){!e.get(`legendHoverLink`)&&d.push(e.id)}),jz(t.getData(),function(i,a){var o=this,f=i.get(`name`);if(!this.newlineDisabled&&(f===``||f===` -`)){var p=new Mz;p.newline=!0,s.add(p);return}var m=n.getSeriesByName(f)[0];if(!c.get(f))if(m){var h=m.getData(),g=h.getVisual(`legendLineStyle`)||{},_=h.getVisual(`legendIcon`),v=h.getVisual(`style`),y=this._createItem(m,f,a,i,t,e,g,v,_,l,r);y.on(`click`,Az(Iz,f,null,r,d)).on(`mouseover`,Az(Lz,m.name,null,r,d)).on(`mouseout`,Az(Rz,m.name,null,r,d)),n.ssr&&y.eachChild(function(e){var t=el(e);t.seriesIndex=m.seriesIndex,t.dataIndex=a,t.ssrType=`legend`}),u&&y.eachChild(function(e){o.packEventData(e,t,m,a,f)}),c.set(f,!0)}else n.eachRawSeries(function(o){var s=this;if(!c.get(f)&&o.legendVisualProvider){var p=o.legendVisualProvider;if(!p.containName(f))return;var m=p.indexOfName(f),h=p.getItemVisual(m,`style`),g=p.getItemVisual(m,`legendIcon`),_=Kr(h.fill);_&&_[3]===0&&(_[3]=.2,h=F(F({},h),{fill:ei(_,`rgba`)}));var v=this._createItem(o,f,a,i,t,e,{},h,g,l,r);v.on(`click`,Az(Iz,null,f,r,d)).on(`mouseover`,Az(Lz,null,f,r,d)).on(`mouseout`,Az(Rz,null,f,r,d)),n.ssr&&v.eachChild(function(e){var t=el(e);t.seriesIndex=o.seriesIndex,t.dataIndex=a,t.ssrType=`legend`}),u&&v.eachChild(function(e){s.packEventData(e,t,o,a,f)}),c.set(f,!0)}},this)},this),i&&this._createSelector(i,t,r,a,o)},t.prototype.packEventData=function(e,t,n,r,i){var a={componentType:`legend`,componentIndex:t.componentIndex,dataIndex:r,value:i,seriesIndex:n.seriesIndex};el(e).eventData=a},t.prototype._createSelector=function(e,t,n,r,i){var a=this.getSelectorGroup();jz(e,function(e){var r=e.type,i=new Xo({style:{x:0,y:0,align:`center`,verticalAlign:`middle`},onclick:function(){n.dispatchAction({type:r===`all`?`legendAllSelect`:`legendInverseSelect`,legendId:t.id})}});a.add(i),Xf(i,{normal:t.getModel(`selectorLabel`),emphasis:t.getModel([`emphasis`,`selectorLabel`])},{defaultText:e.title}),su(i)})},t.prototype._createItem=function(e,t,n,r,i,a,o,s,c,l,u){var d=e.visualDrawType,f=i.get(`itemWidth`),p=i.get(`itemHeight`),m=i.isSelected(t),h=r.get(`symbolRotate`),g=r.get(`symbolKeepAspect`),_=r.get(`icon`);c=_||c||`roundRect`;var v=Pz(c,r,o,s,d,m,u),y=new Mz,b=r.getModel(`textStyle`);if(he(e.getLegendIcon)&&(!_||_===`inherit`))y.add(e.getLegendIcon({itemWidth:f,itemHeight:p,icon:c,iconRotate:h,itemStyle:v.itemStyle,lineStyle:v.lineStyle,symbolKeepAspect:g}));else{var x=_===`inherit`&&e.getData().getVisual(`symbol`)?h===`inherit`?e.getData().getVisual(`symbolRotate`):h:0;y.add(Fz({itemWidth:f,itemHeight:p,icon:c,iconRotate:x,itemStyle:v.itemStyle,lineStyle:v.lineStyle,symbolKeepAspect:g}))}var S=a===`left`?f+5:-5,C=a,w=i.get(`formatter`),T=t;B(w)&&w?T=w.replace(`{name}`,t??``):he(w)&&(T=w(t));var E=m?b.getTextColor():r.get(`inactiveColor`);y.add(new Xo({style:Qf(b,{text:T,x:S,y:p/2,fill:E,align:C,verticalAlign:`middle`},{inheritColor:E})}));var D=new Go({shape:y.getBoundingRect(),style:{fill:`transparent`}}),O=r.getModel(`tooltip`);return O.get(`show`)&&Mf({el:D,componentModel:i,itemName:t,itemTooltipOption:O.option}),y.add(D),y.eachChild(function(e){e.silent=!0}),D.silent=!l,this.getContentGroup().add(y),su(y),y.__legendDataIndex=n,y},t.prototype.layoutInner=function(e,t,n,r,i,a){var o=this.getContentGroup(),s=this.getSelectorGroup();Zg(e.get(`orient`),o,e.get(`itemGap`),n.width,n.height);var c=o.getBoundingRect(),l=[-c.x,-c.y];if(s.markRedraw(),o.markRedraw(),i){Zg(`horizontal`,s,e.get(`selectorItemGap`,!0));var u=s.getBoundingRect(),d=[-u.x,-u.y],f=e.get(`selectorButtonGap`,!0),p=e.getOrient().index,m=p===0?`width`:`height`,h=p===0?`height`:`width`,g=p===0?`y`:`x`;a===`end`?d[p]+=c[m]+f:l[p]+=u[m]+f,d[1-p]+=c[h]/2-u[h]/2,s.x=d[0],s.y=d[1],o.x=l[0],o.y=l[1];var _={x:0,y:0};return _[m]=c[m]+f+u[m],_[h]=Math.max(c[h],u[h]),_[g]=Math.min(0,u[g]+d[1-p]),_}return o.x=l[0],o.y=l[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type=`legend.plain`,t}(zT);function Pz(e,t,n,r,i,a,o){function s(e,t){e.lineWidth===`auto`&&(e.lineWidth=t.lineWidth>0?2:0),jz(e,function(n,r){e[r]===`inherit`&&(e[r]=t[r])})}var c=t.getModel(`itemStyle`),l=c.getItemStyle(),u=e.lastIndexOf(`empty`,0)===0?`fill`:`stroke`,d=c.getShallow(`decal`);l.decal=!d||d===`inherit`?r.decal:bD(d,o),l.fill===`inherit`&&(l.fill=r[i]),l.stroke===`inherit`&&(l.stroke=r[u]),l.opacity===`inherit`&&(l.opacity=(i===`fill`?r:n).opacity),s(l,r);var f=t.getModel(`lineStyle`),p=f.getLineStyle();if(s(p,n),l.fill===`auto`&&(l.fill=r.fill),l.stroke===`auto`&&(l.stroke=r.fill),p.stroke===`auto`&&(p.stroke=r.fill),!a){var m=t.get(`inactiveBorderWidth`),h=l[u];l.lineWidth=m===`auto`?r.lineWidth>0&&h?2:0:l.lineWidth,l.fill=t.get(`inactiveColor`),l.stroke=t.get(`inactiveBorderColor`),p.stroke=f.get(`inactiveColor`),p.lineWidth=f.get(`inactiveWidth`)}return{itemStyle:l,lineStyle:p}}function Fz(e){var t=e.icon||`roundRect`,n=Ev(t,0,0,e.itemWidth,e.itemHeight,e.itemStyle.fill,e.symbolKeepAspect);return n.setStyle(e.itemStyle),n.rotation=(e.iconRotate||0)*Math.PI/180,n.setOrigin([e.itemWidth/2,e.itemHeight/2]),t.indexOf(`empty`)>-1&&(n.style.stroke=n.style.fill,n.style.fill=H.color.neutral00,n.style.lineWidth=2),n}function Iz(e,t,n,r){Rz(e,t,n,r),n.dispatchAction({type:`legendToggleSelect`,name:e??t}),Lz(e,t,n,r)}function Lz(e,t,n,r){n.usingTHL()||n.dispatchAction({type:`highlight`,seriesName:e,name:t,excludeSeriesId:r})}function Rz(e,t,n,r){n.usingTHL()||n.dispatchAction({type:`downplay`,seriesName:e,name:t,excludeSeriesId:r})}function zz(e,t,n){var r=e===`allSelect`||e===`inverseSelect`,i={},a=[];n.eachComponent({mainType:`legend`,query:t},function(n){r?n[e]():n[e](t.name),Bz(n,i),a.push(n.componentIndex)});var o={};return n.eachComponent(`legend`,function(e){L(i,function(t,n){e[t?`select`:`unSelect`](n)}),Bz(e,o)}),r?{selected:o,legendIndex:a}:{name:t.name,selected:o}}function Bz(e,t){var n=t||{};return L(e.getData(),function(t){var r=t.get(`name`);if(r!==` -`&&r!==``){var i=e.isSelected(r);n[r]=Be(n,r)?n[r]&&i:i}}),n}function Vz(e){e.registerAction(`legendToggleSelect`,`legendselectchanged`,me(zz,`toggleSelected`)),e.registerAction(`legendAllSelect`,`legendselectall`,me(zz,`allSelect`)),e.registerAction(`legendInverseSelect`,`legendinverseselect`,me(zz,`inverseSelect`)),e.registerAction(`legendSelect`,`legendselected`,me(zz,`select`)),e.registerAction(`legendUnSelect`,`legendunselected`,me(zz,`unSelect`))}var Hz=$c(Uz);function Uz(e){var t=e.findComponents({mainType:`legend`});t&&t.length&&e.filterSeries(function(e){for(var n=0;nn[i],m=[-d.x,-d.y];t||(m[r]=c[s]);var h=[0,0],g=[-f.x,-f.y],_=we(e.get(`pageButtonGap`,!0),e.get(`itemGap`,!0));p&&(e.get(`pageButtonPosition`,!0)===`end`?g[r]+=n[i]-f[i]:h[r]+=f[i]+_),g[1-r]+=d[a]/2-f[a]/2,c.setPosition(m),l.setPosition(h),u.setPosition(g);var v={x:0,y:0};if(v[i]=p?n[i]:d[i],v[a]=Math.max(d[a],f[a]),v[o]=Math.min(0,f[o]+g[1-r]),l.__rectSize=n[i],p){var y={x:0,y:0};y[i]=Math.max(n[i]-f[i]-_,0),y[a]=v[a],l.setClipPath(new Go({shape:y})),l.__rectSize=y[i]}else u.eachChild(function(e){e.attr({invisible:!0,silent:!0})});var b=this._getPageInfo(e);return b.pageIndex!=null&&Gd(c,{x:b.contentPosition[0],y:b.contentPosition[1]},p?e:null),this._updatePageInfoView(e,b),v},t.prototype._pageGo=function(e,t,n){var r=this._getPageInfo(t)[e];r!=null&&n.dispatchAction({type:`legendScroll`,scrollDataIndex:r,legendId:t.id})},t.prototype._updatePageInfoView=function(e,t){var n=this._controllerGroup;L([`pagePrev`,`pageNext`],function(r){var i=t[r+`DataIndex`]!=null,a=n.childOfName(r);a&&(a.setStyle(`fill`,i?e.get(`pageIconColor`,!0):e.get(`pageIconInactiveColor`,!0)),a.cursor=i?`pointer`:`default`)});var r=n.childOfName(`pageText`),i=e.get(`pageFormatter`),a=t.pageIndex,o=a==null?0:a+1,s=t.pageCount;r&&i&&r.setStyle(`text`,B(i)?i.replace(`{current}`,o==null?``:o+``).replace(`{total}`,s==null?``:s+``):i({current:o,total:s}))},t.prototype._getPageInfo=function(e){var t=e.get(`scrollDataIndex`,!0),n=this.getContentGroup(),r=this._containerGroup.__rectSize,i=e.getOrient().index,a=Jz[i],o=Yz[i],s=this._findTargetItemIndex(t),c=n.children(),l=c[s],u=c.length,d=+!!u,f={contentPosition:[n.x,n.y],pageCount:d,pageIndex:d-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!l)return f;var p=v(l);f.contentPosition[i]=-p.s;for(var m=s+1,h=p,g=p,_=null;m<=u;++m)_=v(c[m]),(!_&&g.e>h.s+r||_&&!y(_,h.s))&&(h=g.i>h.i?g:_,h&&(f.pageNextDataIndex??=h.i,++f.pageCount)),g=_;for(var m=s-1,h=p,g=p,_=null;m>=-1;--m)_=v(c[m]),(!_||!y(g,_.s))&&h.i=t&&e.s<=t+r}},t.prototype._findTargetItemIndex=function(e){if(!this._showController)return 0;var t,n=this.getContentGroup(),r;return n.eachChild(function(n,i){var a=n.__legendDataIndex;r==null&&a!=null&&(r=i),a===e&&(t=i)}),t??r},t.type=`legend.scroll`,t}(Nz);function Zz(e){e.registerAction(`legendScroll`,`legendscroll`,function(e,t){var n=e.scrollDataIndex;n!=null&&t.eachComponent({mainType:`legend`,subType:`scroll`,query:e},function(e){e.setScrollDataIndex(n)})})}function Qz(e){ok(Wz),e.registerComponentModel(Gz),e.registerComponentView(Xz),Zz(e)}function $z(e){ok(Wz),ok(Qz)}var eB={get:function(e,t,n){var r=N((tB[e]||{})[t]);return n&&z(r)?r[r.length-1]:r}},tB={color:{active:[`#006edd`,`#e0ffff`],inactive:[H.color.transparent]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:[`circle`,`roundRect`,`diamond`],inactive:[`none`]},symbolSize:{active:[10,50],inactive:[0,0]}},nB=gA.mapVisual,rB=gA.eachVisual,iB=z,aB=L,oB=As,sB=ws,cB=function(e){p(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.stateList=[`inRange`,`outOfRange`],n.replacableOptionKeys=[`inRange`,`outOfRange`,`target`,`controller`,`color`],n.layoutMode={type:`box`,ignoreSize:!0},n.dataBound=[-1/0,1/0],n.targetVisuals={},n.controllerVisuals={},n}return t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n)},t.prototype.optionUpdated=function(e,t){var n=this.option;!t&&Ez(n,e,this.replacableOptionKeys),this.textStyleModel=this.getModel(`textStyle`),this.resetItemSize(),this.completeVisualOption()},t.prototype.resetVisual=function(e){var t=this.stateList;e=pe(e,this),this.controllerVisuals=Tz(this.option.controller,t,e),this.targetVisuals=Tz(this.option.target,t,e)},t.prototype.getItemSymbol=function(){return null},t.prototype.getTargetSeriesIndices=function(){var e=this,t=this.option.seriesTargets;if(t){var n=[];return aB(t,function(t){if(t.seriesIndex!=null)n.push(t.seriesIndex);else if(t.seriesId!=null){var r;e.ecModel.eachSeries(function(e){e.id===t.seriesId&&(r=e)}),r&&n.push(r.componentIndex)}}),n}var r=this.option.seriesId,i=this.option.seriesIndex;i==null&&r==null&&(i=`all`);var a=jc(this.ecModel,`series`,{index:i,id:r},{useDefault:!1,enableAll:!0,enableNone:!1}).models;return R(a,function(e){return e.componentIndex})},t.prototype.eachTargetSeries=function(e,t){L(this.getTargetSeriesIndices(),function(n){var r=this.ecModel.getSeriesByIndex(n);r&&e.call(t,r)},this)},t.prototype.isTargetSeries=function(e){var t=!1;return this.eachTargetSeries(function(n){n===e&&(t=!0)}),t},t.prototype.formatValueText=function(e,t,n){var r=this.option,i=r.precision,a=this.dataBound,o=r.formatter,s;n||=[`<`,`>`],z(e)&&(e=e.slice(),s=!0);var c=t?e:s?[l(e[0]),l(e[1])]:l(e);if(B(o))return o.replace(`{value}`,s?c[0]:c).replace(`{value2}`,s?c[1]:c);if(he(o))return s?o(e[0],e[1]):o(e);if(s)return e[0]===a[0]?n[0]+` `+c[1]:e[1]===a[1]?n[1]+` `+c[0]:c[0]+` - `+c[1];return c;function l(e){return e===a[0]?`min`:e===a[1]?`max`:(+e).toFixed(Math.min(i,20))}},t.prototype.resetExtent=function(){var e=this.option,t=oB([e.min,e.max]);this._dataExtent=t},t.prototype.getDimension=function(e){var t=this,n=this.option.seriesTargets;if(n){var r=ue(n,function(n){return n.seriesIndex!=null&&n.seriesIndex===e||n.seriesId!=null&&n.seriesId===t.ecModel.getSeriesByIndex(e).id});if(r)return r.dimension}return this.option.dimension},t.prototype.getDataDimensionIndex=function(e){var t=e.hostModel.seriesIndex,n=this.getDimension(t);if(n!=null)return e.getDimensionIndex(n);for(var r=e.dimensions,i=r.length-1;i>=0;i--){var a=r[i],o=e.getDimensionInfo(a);if(!o.isCalculationCoord)return o.storeDimIndex}},t.prototype.getExtent=function(){return this._dataExtent.slice()},t.prototype.completeVisualOption=function(){var e=this.ecModel,t=this.option,n={inRange:t.inRange,outOfRange:t.outOfRange},r=t.target||={},i=t.controller||={};P(r,n),P(i,n);var a=this.isCategory();o.call(this,r),o.call(this,i),s.call(this,r,`inRange`,`outOfRange`),c.call(this,i);function o(n){iB(t.color)&&!n.inRange&&(n.inRange={color:t.color.slice().reverse()}),n.inRange=n.inRange||{color:e.get(`gradientColor`)}}function s(e,t,n){var r=e[t],i=e[n];r&&!i&&(i=e[n]={},aB(r,function(e,t){if(gA.isValidType(t)){var n=eB.get(t,`inactive`,a);n!=null&&(i[t]=n,t===`color`&&!i.hasOwnProperty(`opacity`)&&!i.hasOwnProperty(`colorAlpha`)&&(i.opacity=[0,0]))}}))}function c(e){var t=(e.inRange||{}).symbol||(e.outOfRange||{}).symbol,n=(e.inRange||{}).symbolSize||(e.outOfRange||{}).symbolSize,r=this.get(`inactiveColor`),i=this.getItemSymbol()||`roundRect`;aB(this.stateList,function(o){var s=this.itemSize,c=e[o];c||=e[o]={color:a?r:[r]},c.symbol??(c.symbol=t&&N(t)||(a?i:[i])),c.symbolSize??(c.symbolSize=n&&N(n)||(a?s[0]:[s[0],s[0]])),c.symbol=nB(c.symbol,function(e){return e===`none`?i:e});var l=c.symbolSize;if(l!=null){var u=-1/0;rB(l,function(e){e>u&&(u=e)}),c.symbolSize=nB(l,function(e){return sB(e,[0,u],[0,s[0]],!0)})}},this)}},t.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get(`itemWidth`)),parseFloat(this.get(`itemHeight`))]},t.prototype.isCategory=function(){return!!this.option.categories},t.prototype.setSelected=function(e){},t.prototype.getSelected=function(){return null},t.prototype.getValueState=function(e){return null},t.prototype.getVisualMeta=function(e){return null},t.type=`visualMap`,t.dependencies=[`series`],t.defaultOption={show:!0,z:4,min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:`vertical`,backgroundColor:H.color.transparent,borderColor:H.color.borderTint,contentColor:H.color.theme[0],inactiveColor:H.color.disabled,borderWidth:0,padding:H.size.m,textGap:10,precision:0,textStyle:{color:H.color.secondary}},t}(c_),lB=[20,140],uB=function(e){p(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.optionUpdated=function(t,n){e.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(e){e.mappingMethod=`linear`,e.dataExtent=this.getExtent()}),this._resetRange()},t.prototype.resetItemSize=function(){e.prototype.resetItemSize.apply(this,arguments);var t=this.itemSize;(t[0]==null||isNaN(t[0]))&&(t[0]=lB[0]),(t[1]==null||isNaN(t[1]))&&(t[1]=lB[1])},t.prototype._resetRange=function(){var e=this.getExtent(),t=this.option.range;!t||t.auto?(e.auto=1,this.option.range=e):z(t)&&(t[0]>t[1]&&t.reverse(),t[0]=Math.max(t[0],e[0]),t[1]=Math.min(t[1],e[1]))},t.prototype.completeVisualOption=function(){e.prototype.completeVisualOption.apply(this,arguments),L(this.stateList,function(e){var t=this.option.controller[e].symbolSize;t&&t[0]!==t[1]&&(t[0]=t[1]/3)},this)},t.prototype.setSelected=function(e){this.option.range=e.slice(),this._resetRange()},t.prototype.getSelected=function(){var e=this.getExtent(),t=As((this.get(`range`)||[]).slice());return t[0]>e[1]&&(t[0]=e[1]),t[1]>e[1]&&(t[1]=e[1]),t[0]=n[1]||e<=t[1])?`inRange`:`outOfRange`},t.prototype.findTargetDataIndices=function(e){var t=[];return this.eachTargetSeries(function(n){var r=[],i=n.getData();i.each(this.getDataDimensionIndex(i),function(t,n){e[0]<=t&&t<=e[1]&&r.push(n)},this),t.push({seriesId:n.id,dataIndex:r})},this),t},t.prototype.getVisualMeta=function(e){var t=dB(this,`outOfRange`,this.getExtent()),n=dB(this,`inRange`,this.option.range.slice()),r=[];function i(t,n){r.push({value:t,color:e(t,n)})}for(var a=0,o=0,s=n.length,c=t.length;oe[1])break;r.push({color:this.getControllerVisual(o,`color`,t),offset:a/n})}return r.push({color:this.getControllerVisual(e[1],`color`,t),offset:1}),r},t.prototype._createBarPoints=function(e,t){var n=this.visualMapModel.itemSize;return[[n[0]-t[0],e[0]],[n[0],e[0]],[n[0],e[1]],[n[0]-t[1],e[1]]]},t.prototype._createBarGroup=function(e){var t=this._orient,n=this.visualMapModel.get(`inverse`);return new Hu(t===`horizontal`&&!n?{scaleX:e===`bottom`?1:-1,rotation:Math.PI/2}:t===`horizontal`&&n?{scaleX:e===`bottom`?-1:1,rotation:-Math.PI/2}:t===`vertical`&&!n?{scaleX:e===`left`?1:-1,scaleY:-1}:{scaleX:e===`left`?1:-1})},t.prototype._updateHandle=function(e,t){if(this._useHandle){var n=this._shapes,r=this.visualMapModel,i=n.handleThumbs,a=n.handleLabels,o=r.itemSize,s=r.getExtent(),c=this._applyTransform(`left`,n.mainGroup);_B([0,1],function(l){var u=i[l];u.setStyle(`fill`,t.handlesColor[l]),u.y=e[l];var d=gB(e[l],[0,o[1]],s,!0),f=this.getControllerVisual(d,`symbolSize`);u.scaleX=u.scaleY=f/o[0],u.x=o[0]-f/2;var p=_f(n.handleLabelPoints[l],gf(u,this.group));if(this._orient===`horizontal`){var m=c===`left`||c===`top`?(o[0]-f)/2:(o[0]-f)/-2;p[1]+=m}a[l].setStyle({x:p[0],y:p[1],text:r.formatValueText(this._dataInterval[l]),verticalAlign:`middle`,align:this._orient===`vertical`?this._applyTransform(`left`,n.mainGroup):`center`})},this)}},t.prototype._showIndicator=function(e,t,n,r){var i=this.visualMapModel,a=i.getExtent(),o=i.itemSize,s=[0,o[1]],c=this._shapes,l=c.indicator;if(l){l.attr(`invisible`,!1);var u=this.getControllerVisual(e,`color`,{convertOpacityToAlpha:!0}),d=this.getControllerVisual(e,`symbolSize`),f=gB(e,a,s,!0),p=o[0]-d/2,m={x:l.x,y:l.y};l.y=f,l.x=p;var h=_f(c.indicatorLabelPoint,gf(l,this.group)),g=c.indicatorLabel;g.attr(`invisible`,!1);var _=this._applyTransform(`left`,c.mainGroup),v=this._orient===`horizontal`;g.setStyle({text:(n||``)+i.formatValueText(t),verticalAlign:v?_:`middle`,align:v?`center`:_});var y={x:p,y:f,style:{fill:u}},b={style:{x:h[0],y:h[1]}};if(i.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var x={duration:100,easing:`cubicInOut`,additive:!0};l.x=m.x,l.y=m.y,l.animateTo(y,x),g.animateTo(b,x)}else l.attr(y),g.attr(b);this._firstShowIndicator=!1;var S=this._shapes.handleLabels;if(S)for(var C=0;Ci[1]&&(l[1]=1/0),t&&(l[0]===-1/0?this._showIndicator(c,l[1],`< `,o):l[1]===1/0?this._showIndicator(c,l[0],`> `,o):this._showIndicator(c,c,`≈ `,o));var u=this._hoverLinkDataIndices,d=[];(t||TB(n))&&(d=this._hoverLinkDataIndices=n.findTargetDataIndices(l));var f=wc(u,d);this._dispatchHighDown(`downplay`,hB(f[0],n)),this._dispatchHighDown(`highlight`,hB(f[1],n))}},t.prototype._hoverLinkFromSeriesMouseOver=function(e){var t;if(wE(e.target,function(e){var n=el(e);if(n.dataIndex!=null)return t=n,!0},!0),t){var n=this.ecModel.getSeriesByIndex(t.seriesIndex),r=this.visualMapModel;if(r.isTargetSeries(n)){var i=n.getData(t.dataType),a=i.getStore().get(r.getDataDimensionIndex(i),t.dataIndex);isNaN(a)||this._showIndicator(a,a)}}},t.prototype._hideIndicator=function(){var e=this._shapes;e.indicator&&e.indicator.attr(`invisible`,!0),e.indicatorLabel&&e.indicatorLabel.attr(`invisible`,!0);var t=this._shapes.handleLabels;if(t)for(var n=0;n=0&&(i.dimension=a,r.push(i))}}),e.getData().setVisual(`visualMeta`,r)}}];function AB(e,t,n,r){for(var i=t.targetVisuals[r],a=gA.prepareVisualTypes(i),o={color:SE(e.getData(),`color`)},s=0,c=a.length;s0:e.splitNumber>0)||e.calculable)?`continuous`:`piecewise`}),e.registerAction(DB,OB),L(kB,function(t){e.registerVisual(e.PRIORITY.VISUAL.COMPONENT,t)}),e.registerPreprocessor(MB))}function IB(e){e.registerComponentModel(uB),e.registerComponentView(SB),FB(e)}var LB=function(e){p(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n._pieceList=[],n}return t.prototype.optionUpdated=function(t,n){e.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var r=this._mode=this._determineMode();this._pieceList=[],RB[this._mode].call(this,this._pieceList),this._resetSelected(t,n);var i=this.option.categories;this.resetVisual(function(e,t){r===`categories`?(e.mappingMethod=`category`,e.categories=N(i)):(e.dataExtent=this.getExtent(),e.mappingMethod=`piecewise`,e.pieceList=R(this._pieceList,function(e){return e=N(e),t!==`inRange`&&(e.visual=null),e}))})},t.prototype.completeVisualOption=function(){var t=this.option,n={},r=gA.listVisualTypes(),i=this.isCategory();L(t.pieces,function(e){L(r,function(t){e.hasOwnProperty(t)&&(n[t]=1)})}),L(n,function(e,n){var r=!1;L(this.stateList,function(e){r=r||a(t,e,n)||a(t.target,e,n)},this),!r&&L(this.stateList,function(e){(t[e]||(t[e]={}))[n]=eB.get(n,e===`inRange`?`active`:`inactive`,i)})},this);function a(e,t,n){return e&&e[t]&&e[t].hasOwnProperty(n)}e.prototype.completeVisualOption.apply(this,arguments)},t.prototype._resetSelected=function(e,t){var n=this.option,r=this._pieceList,i=(t?n:e).selected||{};if(n.selected=i,L(r,function(e,t){var n=this.getSelectedMapKey(e);i.hasOwnProperty(n)||(i[n]=!0)},this),n.selectedMode===`single`){var a=!1;L(r,function(e,t){var n=this.getSelectedMapKey(e);i[n]&&(a?i[n]=!1:a=!0)},this)}},t.prototype.getItemSymbol=function(){return this.get(`itemSymbol`)},t.prototype.getSelectedMapKey=function(e){return this._mode===`categories`?e.value+``:e.index+``},t.prototype.getPieceList=function(){return this._pieceList},t.prototype._determineMode=function(){var e=this.option;return e.pieces&&e.pieces.length>0?`pieces`:this.option.categories?`categories`:`splitNumber`},t.prototype.setSelected=function(e){this.option.selected=N(e)},t.prototype.getValueState=function(e){var t=gA.findPieceIndex(e,this._pieceList);return t==null?`outOfRange`:this.option.selected[this.getSelectedMapKey(this._pieceList[t])]?`inRange`:`outOfRange`},t.prototype.findTargetDataIndices=function(e){var t=[],n=this._pieceList;return this.eachTargetSeries(function(r){var i=[],a=r.getData();a.each(this.getDataDimensionIndex(a),function(t,r){gA.findPieceIndex(t,n)===e&&i.push(r)},this),t.push({seriesId:r.id,dataIndex:i})},this),t},t.prototype.getRepresentValue=function(e){var t;if(this.isCategory())t=e.value;else if(e.value!=null)t=e.value;else{var n=e.interval||[];t=n[0]===-1/0&&n[1]===1/0?0:(n[0]+n[1])/2}return t},t.prototype.getVisualMeta=function(e){if(this.isCategory())return;var t=[],n=[``,``],r=this;function i(i,a){var o=r.getRepresentValue({interval:i});a||=r.getValueState(o);var s=e(o,a);i[0]===-1/0?n[0]=s:i[1]===1/0?n[1]=s:t.push({value:i[0],color:s},{value:i[1],color:s})}var a=this._pieceList.slice();if(!a.length)a.push({interval:[-1/0,1/0]});else{var o=a[0].interval[0];o!==-1/0&&a.unshift({interval:[-1/0,o]}),o=a[a.length-1].interval[1],o!==1/0&&a.push({interval:[o,1/0]})}var s=-1/0;return L(a,function(e){var t=e.interval;t&&(t[0]>s&&i([s,t[0]],`outOfRange`),i(t.slice()),s=t[1])},this),{stops:t,outerColors:n}},t.type=`visualMap.piecewise`,t.defaultOption=wh(cB.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:`auto`,itemWidth:20,itemHeight:14,itemSymbol:`roundRect`,pieces:null,categories:null,splitNumber:5,selectedMode:`multiple`,itemGap:10,hoverLink:!0}),t}(cB),RB={splitNumber:function(e){var t=this.option,n=Math.min(t.precision,20),r=this.getExtent(),i=t.splitNumber;i=Math.max(parseInt(i,10),1),t.splitNumber=i;for(var a=(r[1]-r[0])/i;+a.toFixed(n)!==a&&n<5;)n++;t.precision=n,a=+a.toFixed(n),t.minOpen&&e.push({interval:[-1/0,r[0]],close:[0,0]});for(var o=0,s=r[0];o`,`≥`][t[0]]];e.text=e.text||this.formatValueText(e.value==null?e.interval:e.value,!1,n)},this)}};function zB(e,t){var n=e.inverse;(e.orient===`vertical`?!n:n)&&t.reverse()}var BB=function(e){p(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.doRender=function(){var e=this.group;e.removeAll();var t=this.visualMapModel,n=t.get(`textGap`),r=t.textStyleModel,i=this._getItemAlign(),a=t.itemSize,o=this._getViewData(),s=o.endsText,c=Ce(t.get(`showLabel`,!0),!s),l=!t.get(`selectedMode`);s&&this._renderEndsText(e,s[0],a,c,i),L(o.viewPieceList,function(o){var s=o.piece,u=new Hu;u.onclick=pe(this._onItemClick,this,s),this._enableHoverLink(u,o.indexInModelPieceList);var d=t.getRepresentValue(s);if(this._createItemSymbol(u,d,[0,0,a[0],a[1]],l),c){var f=this.visualMapModel.getValueState(d),p=r.get(`align`)||i;u.add(new Xo({style:Qf(r,{x:p===`right`?-n:a[0]+n,y:a[1]/2,text:s.text,verticalAlign:r.get(`verticalAlign`)||`middle`,align:p,opacity:we(r.get(`opacity`),f===`outOfRange`?.5:1)}),silent:l}))}e.add(u)},this),s&&this._renderEndsText(e,s[1],a,c,i),Zg(t.get(`orient`),e,t.get(`itemGap`)),this.renderBackground(e),this.positionGroup(e)},t.prototype._enableHoverLink=function(e,t){var n=this;e.on(`mouseover`,function(){return r(`highlight`)}).on(`mouseout`,function(){return r(`downplay`)});var r=function(e){var r=n.visualMapModel;r.option.hoverLink&&n.api.dispatchAction({type:e,batch:hB(r.findTargetDataIndices(t),r)})}},t.prototype._getItemAlign=function(){var e=this.visualMapModel,t=e.option;if(t.orient===`vertical`)return mB(e,this.api,e.itemSize);var n=t.align;return(!n||n===`auto`)&&(n=`left`),n},t.prototype._renderEndsText=function(e,t,n,r,i){if(t){var a=new Hu,o=this.visualMapModel.textStyleModel;a.add(new Xo({style:Qf(o,{x:r?i===`right`?n[0]:0:n[0]/2,y:n[1]/2,verticalAlign:`middle`,align:r?i:`center`,text:t})})),e.add(a)}},t.prototype._getViewData=function(){var e=this.visualMapModel,t=R(e.getPieceList(),function(e,t){return{piece:e,indexInModelPieceList:t}}),n=e.get(`text`),r=e.get(`orient`),i=e.get(`inverse`);return(r===`horizontal`?i:!i)?t.reverse():n&&=n.slice().reverse(),{viewPieceList:t,endsText:n}},t.prototype._createItemSymbol=function(e,t,n,r){var i=Ev(this.getControllerVisual(t,`symbol`),n[0],n[1],n[2],n[3],this.getControllerVisual(t,`color`));i.silent=r,e.add(i)},t.prototype._onItemClick=function(e){var t=this.visualMapModel,n=t.option,r=n.selectedMode;if(r){var i=N(n.selected),a=t.getSelectedMapKey(e);r===`single`||r===!0?(i[a]=!0,L(i,function(e,t){i[t]=t===a})):i[a]=!i[a],this.api.dispatchAction({type:`selectDataRange`,from:this.uid,visualMapId:this.visualMapModel.id,selected:i})}},t.type=`visualMap.piecewise`,t}(fB);function VB(e){e.registerComponentModel(LB),e.registerComponentView(BB),FB(e)}function HB(e){ok(IB),ok(VB)}var UB={label:{enabled:!0},decal:{show:!1}},WB=Ec(),GB=Ec(),KB=$c(qB);function qB(e,t){var n=e.getModel(`aria`);if(!n.get(`enabled`))return;var r=GB(e).scope||(GB(e).scope={}),i=N(UB);P(i.label,e.getLocaleModel().get(`aria`),!1),P(n.option,i,!1),a(),o();function a(){if(n.getModel(`decal`).get(`show`)){var t=Le();e.eachSeries(function(e){e.isColorBySeries()||(WB(e).scope=t.get(e.type)||t.set(e.type,{}))}),e.eachSeries(function(t){if(he(t.enableAriaDecal)){t.enableAriaDecal();return}var n=t.getData();if(t.isColorBySeries()){var i=p_(t.ecModel,t.name,r,e.getSeriesCount()),a=n.getVisual(`decal`);n.setVisual(`decal`,u(a,i))}else{var o=t.getRawData(),s={},c=WB(t).scope;n.each(function(e){var t=n.getRawIndex(e);s[t]=e});var l=o.count();o.each(function(e){var r=s[e],i=o.getName(e)||e+``,a=p_(t.ecModel,i,c,l),d=n.getItemVisual(r,`decal`);n.setItemVisual(r,`decal`,u(d,a))})}function u(e,t){var n=e?F(F({},t),e):t;return n.dirty=!0,n}})}}function o(){var r=t.getZr().dom;if(r){var i=e.getLocaleModel().get(`aria`),a=n.getModel(`label`);if(a.option=I(a.option,i),a.get(`enabled`)){if(r.setAttribute(`role`,`img`),a.get(`description`)){r.setAttribute(`aria-label`,a.get(`description`));return}var o=e.getSeriesCount(),u=a.get([`data`,`maxCount`])||10,d=a.get([`series`,`maxCount`])||10,f=Math.min(o,d),p;if(!(o<1)){var m=c();p=m?s(a.get([`general`,`withTitle`]),{title:m}):a.get([`general`,`withoutTitle`]);var h=[],g=o>1?a.get([`series`,`multiple`,`prefix`]):a.get([`series`,`single`,`prefix`]);p+=s(g,{seriesCount:o}),e.eachSeries(function(e,t){if(t1?a.get([`series`,`multiple`,r]):a.get([`series`,`single`,r]),n=s(n,{seriesId:e.seriesIndex,seriesName:e.get(`name`),seriesType:l(e.subType)});var i=e.getData();if(i.count()>u){var c=a.get([`data`,`partialData`]);n+=s(c,{displayCnt:u})}else n+=a.get([`data`,`allData`]);for(var d=a.get([`data`,`separator`,`middle`]),p=a.get([`data`,`separator`,`end`]),m=a.get([`data`,`excludeDimensionId`]),g=[],_=0;_=$B:-c>=$B),f=c>0?c%$B:c%$B+$B,p=!1;p=d?!0:!si(u)&&f>=QB==!!l;var m=e+n*ZB(a),h=t+r*XB(a);this._start&&this._add(`M`,m,h);var g=Math.round(i*eV);if(d){var _=1/this._p,v=(l?1:-1)*($B-_);this._add(`A`,n,r,g,1,+l,e+n*ZB(a+v),t+r*XB(a+v)),_>.01&&this._add(`A`,n,r,g,0,+l,m,h)}else{var y=e+n*ZB(o),b=t+r*XB(o);this._add(`A`,n,r,g,+p,+l,y,b)}},e.prototype.rect=function(e,t,n,r){this._add(`M`,e,t),this._add(`l`,n,0),this._add(`l`,0,r),this._add(`l`,-n,0),this._add(`Z`)},e.prototype.closePath=function(){this._d.length>0&&this._add(`Z`)},e.prototype._add=function(e,t,n,r,i,a,o,s,c){for(var l=[],u=this._p,d=1;d`}function _V(e){return``}function vV(e,t){t||={};var n=t.newline?` -`:``;function r(e){var t=e.children,i=e.tag,a=e.attrs,o=e.text;return gV(i,a)+(i===`style`?o||``:Rh(o))+(t?``+n+R(t,function(e){return r(e)}).join(n)+n:``)+_V(i)}return r(e)}function yV(e,t,n){n||={};var r=n.newline?` -`:``,i=` {`+r,a=r+`}`,o=R(de(e),function(t){return t+i+R(de(e[t]),function(n){return n+`:`+e[t][n]+`;`}).join(r)+a}).join(r),s=R(de(t),function(e){return`@keyframes `+e+i+R(de(t[e]),function(n){return n+i+R(de(t[e][n]),function(r){var i=t[e][n][r];return r===`d`&&(i=`path("`+i+`")`),r+`:`+i+`;`}).join(r)+a}).join(r)+a}).join(r);return!o&&!s?``:[``].join(r)}function bV(e){return{zrId:e,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function xV(e,t,n,r){return hV(`svg`,`root`,{width:e,height:t,xmlns:lV,"xmlns:xlink":uV,version:`1.1`,baseProfile:`full`,viewBox:r?`0 0 `+e+` `+t:!1},n)}var SV=0;function CV(){return SV++}var wV={cubicIn:`0.32,0,0.67,0`,cubicOut:`0.33,1,0.68,1`,cubicInOut:`0.65,0,0.35,1`,quadraticIn:`0.11,0,0.5,0`,quadraticOut:`0.5,1,0.89,1`,quadraticInOut:`0.45,0,0.55,1`,quarticIn:`0.5,0,0.75,0`,quarticOut:`0.25,1,0.5,1`,quarticInOut:`0.76,0,0.24,1`,quinticIn:`0.64,0,0.78,0`,quinticOut:`0.22,1,0.36,1`,quinticInOut:`0.83,0,0.17,1`,sinusoidalIn:`0.12,0,0.39,0`,sinusoidalOut:`0.61,1,0.88,1`,sinusoidalInOut:`0.37,0,0.63,1`,exponentialIn:`0.7,0,0.84,0`,exponentialOut:`0.16,1,0.3,1`,exponentialInOut:`0.87,0,0.13,1`,circularIn:`0.55,0,1,0.45`,circularOut:`0,0.55,0.45,1`,circularInOut:`0.85,0,0.15,1`},TV=`transform-origin`;function EV(e,t,n){var r=F({},e.shape);F(r,t),e.buildPath(n,r);var i=new tV;return i.reset(Si(e)),n.rebuildPath(i,1),i.generateStr(),i.getStr()}function DV(e,t){var n=t.originX,r=t.originY;(n||r)&&(e[TV]=n+`px `+r+`px`)}var OV={fill:`fill`,opacity:`opacity`,lineWidth:`stroke-width`,lineDashOffset:`stroke-dashoffset`};function kV(e,t){var n=t.zrId+`-ani-`+t.cssAnimIdx++;return t.cssAnims[n]=e,n}function AV(e,t,n){var r=e.shape.paths,i={},a,o;if(L(r,function(e){var t=bV(n.zrId);t.animation=!0,MV(e,{},t,!0);var r=t.cssAnims,s=t.cssNodes,c=de(r),l=c.length;if(l){o=c[l-1];var u=r[o];for(var d in u){var f=u[d];i[d]=i[d]||{d:``},i[d].d+=f.d||``}for(var p in s){var m=s[p].animation;m.indexOf(o)>=0&&(a=m)}}}),a){t.d=!1;var s=kV(i,n);return a.replace(o,s)}}function jV(e){return B(e)?wV[e]?`cubic-bezier(`+wV[e]+`)`:jr(e)?e:``:``}function MV(e,t,n,r){var i=e.animators,a=i.length,o=[];if(e instanceof Dd){var s=AV(e,t,n);if(s)o.push(s);else if(!a)return}else if(!a)return;for(var c={},l=0;l0}).length)return kV(l,n)+` `+i[0]+` both`}for(var g in c){var s=h(c[g]);s&&o.push(s)}if(o.length){var _=n.zrId+`-cls-`+CV();n.cssNodes[`.`+_]={animation:o.join(`,`)},t.class=_}}function NV(e,t,n){if(!e.ignore)if(e.isSilent()){var r={"pointer-events":`none`};PV(r,t,n,!0)}else{var i=e.states.emphasis&&e.states.emphasis.style?e.states.emphasis.style:{},a=i.fill;if(!a){var o=e.style&&e.style.fill,s=e.states.select&&e.states.select.style&&e.states.select.style.fill,c=e.currentStates.indexOf(`select`)>=0&&s||o;c&&(a=ri(c))}var l=i.lineWidth;if(l){var u=!i.strokeNoScale&&e.transform?e.transform[0]:1;l/=u}var r={cursor:`pointer`};a&&(r.fill=a),i.stroke&&(r.stroke=i.stroke),l&&(r[`stroke-width`]=l),PV(r,t,n,!0)}}function PV(e,t,n,r){var i=JSON.stringify(e),a=n.cssStyleCache[i];a||(a=n.zrId+`-cls-`+CV(),n.cssStyleCache[i]=a,n.cssNodes[`.`+a+(r?`:hover`:``)]=e),t.class=t.class?t.class+` `+a:a}var FV=Math.round;function IV(e){return e&&B(e.src)}function LV(e){return e&&he(e.toDataURL)}function RV(e,t,n,r){cV(function(i,a){var o=i===`fill`||i===`stroke`;o&&bi(a)?$V(t,e,i,r):o&&_i(a)?eH(n,e,i,r):e[i]=a,o&&r.ssr&&a===`none`&&(e[`pointer-events`]=`visible`)},t,n,!1),QV(n,e,r)}function zV(e,t){var n=Bw(t);n&&(n.each(function(t,n){t!=null&&(e[(`ecmeta_`+n).toLowerCase()]=t+``)}),t.isSilent()&&(e[pV+`silent`]=`true`))}function BV(e){return si(e[0]-1)&&si(e[1])&&si(e[2])&&si(e[3]-1)}function VV(e){return si(e[4])&&si(e[5])}function HV(e,t,n){if(t&&!(VV(t)&&BV(t))){var r=n?10:1e4;e.transform=BV(t)?`translate(`+FV(t[4]*r)/r+` `+FV(t[5]*r)/r+`)`:ui(t)}}function UV(e,t,n){for(var r=e.points,i=[],a=0;a`u`){var g=`Image width/height must been given explictly in svg-ssr renderer.`;Oe(f,g),Oe(p,g)}else if(f==null||p==null){var _=function(e,t){if(e){var n=e.elm,r=f||t.width,i=p||t.height;e.tag===`pattern`&&(l?(i=1,r/=a.width):u&&(r=1,i/=a.height)),e.attrs.width=r,e.attrs.height=i,n&&(n.setAttribute(`width`,r),n.setAttribute(`height`,i))}},v=mt(m,null,e,function(e){c||_(S,e),_(d,e)});v&&v.width&&v.height&&(f||=v.width,p||=v.height)}d=hV(`image`,`img`,{href:m,width:f,height:p}),o.width=f,o.height=p}else i.svgElement&&(d=N(i.svgElement),o.width=i.svgWidth,o.height=i.svgHeight);if(d){var y,b;c?y=b=1:l?(b=1,y=o.width/a.width):u?(y=1,b=o.height/a.height):o.patternUnits=`userSpaceOnUse`,y!=null&&!isNaN(y)&&(o.width=y),b!=null&&!isNaN(b)&&(o.height=b);var x=Ci(i);x&&(o.patternTransform=x);var S=hV(`pattern`,``,o,[d]),C=vV(S),w=r.patternCache,T=w[C];T||(T=r.zrId+`-p`+r.patternIdx++,w[C]=T,o.id=T,S=r.defs[T]=hV(`pattern`,T,o,[d])),t[n]=xi(T)}}function tH(e,t,n){var r=n.clipPathCache,i=n.defs,a=r[e.id];if(!a){a=n.zrId+`-c`+n.clipPathIdx++;var o={id:a};r[e.id]=a,i[a]=hV(`clipPath`,a,o,[JV(e,n)])}t[`clip-path`]=xi(a)}function nH(e){return document.createTextNode(e)}function rH(e,t,n){e.insertBefore(t,n)}function iH(e,t){e.removeChild(t)}function aH(e,t){e.appendChild(t)}function oH(e){return e.parentNode}function sH(e){return e.nextSibling}function cH(e,t){e.textContent=t}var lH=58,uH=120,dH=hV(``,``);function fH(e){return e===void 0}function pH(e){return e!==void 0}function mH(e,t,n){for(var r={},i=t;i<=n;++i){var a=e[i].key;a!==void 0&&(r[a]=i)}return r}function hH(e,t){var n=e.key===t.key;return e.tag===t.tag&&n}function gH(e){var t,n=e.children,r=e.tag;if(pH(r)){var i=e.elm=mV(r);if(yH(dH,e),z(n))for(t=0;ta?(m=n[c+1]==null?null:n[c+1].elm,_H(e,m,n,i,c)):vH(e,t,r,a))}function xH(e,t){var n=t.elm=e.elm,r=e.children,i=t.children;e!==t&&(yH(e,t),fH(t.text)?pH(r)&&pH(i)?r!==i&&bH(n,r,i):pH(i)?(pH(e.text)&&cH(n,``),_H(n,null,i,0,i.length-1)):pH(r)?vH(n,r,0,r.length-1):pH(e.text)&&cH(n,``):e.text!==t.text&&(pH(r)&&vH(n,r,0,r.length-1),cH(n,t.text)))}function SH(e,t){if(hH(e,t))xH(e,t);else{var n=e.elm,r=oH(n);gH(t),r!==null&&(rH(r,t.elm,sH(n)),vH(r,[e],0,0))}return t}var CH=0,wH=function(){function e(e,t,n){if(this.type=`svg`,this.configLayer=TH(`configLayer`),this.storage=t,this._opts=n=F({},n),this.root=e,this._id=`zr`+CH++,this._oldVNode=xV(n.width,n.height),e&&!n.ssr){var r=this._viewport=document.createElement(`div`);r.style.cssText=`position:relative;overflow:hidden`;var i=this._svgDom=this._oldVNode.elm=mV(`svg`);yH(null,this._oldVNode),r.appendChild(i),e.appendChild(r)}this.resize(n.width,n.height)}return e.prototype.getType=function(){return this.type},e.prototype.getViewportRoot=function(){return this._viewport},e.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},e.prototype.getSvgDom=function(){return this._svgDom},e.prototype.refresh=function(){if(this.root){var e=this.renderToVNode({willUpdate:!0});e.attrs.style=`position:absolute;left:0;top:0;user-select:none`,SH(this._oldVNode,e),this._oldVNode=e}},e.prototype.renderOneToVNode=function(e){return ZV(e,bV(this._id))},e.prototype.renderToVNode=function(e){e||={};var t=this.storage.getDisplayList(!0),n=this._width,r=this._height,i=bV(this._id);i.animation=e.animation,i.willUpdate=e.willUpdate,i.compress=e.compress,i.emphasis=e.emphasis,i.ssr=this._opts.ssr;var a=[],o=this._bgVNode=EH(n,r,this._backgroundColor,i);o&&a.push(o);var s=e.compress?null:this._mainVNode=hV(`g`,`main`,{},[]);this._paintList(t,i,s?s.children:a),s&&a.push(s);var c=R(de(i.defs),function(e){return i.defs[e]});if(c.length&&a.push(hV(`defs`,`defs`,{},c)),e.animation){var l=yV(i.cssNodes,i.cssAnims,{newline:!0});if(l){var u=hV(`style`,`stl`,{},[],l);a.push(u)}}return xV(n,r,a,e.useViewBox)},e.prototype.renderToString=function(e){return e||={},vV(this.renderToVNode({animation:we(e.cssAnimation,!0),emphasis:we(e.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:we(e.useViewBox,!0)}),{newline:!0})},e.prototype.setBackgroundColor=function(e){this._backgroundColor=e},e.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},e.prototype._paintList=function(e,t,n){for(var r=e.length,i=[],a=0,o,s,c=0,l=0;l=0&&!(d&&s&&d[m]===s[m]);m--);for(var h=p-1;h>m;h--)a--,o=i[a-1];for(var g=m+1;g{if(!i.current)return;let t=BO(i.current,void 0,{renderer:`svg`});t.setOption({animationDuration:280,aria:{enabled:!0,decal:{show:!0},description:n},...e}),r&&t.on(`click`,r);let a=new ResizeObserver(()=>t.resize());return a.observe(i.current),()=>{a.disconnect(),t.dispose()}},[n,r,e]),(0,K.jsx)(`div`,{ref:i,className:`echart`,style:{height:t},role:`img`,"aria-label":n})}var kH=new Intl.NumberFormat(void 0,{maximumFractionDigits:0});function AH(e){return`${(e*100).toFixed(e>=.1?1:2)}%`}function jH(e){return e>=1e3?`${(e/1e3).toFixed(2)}s`:`${e.toFixed(e>=100?0:1)}ms`}function MH(e){let[t,n]=e.split(`/`),r=new Date(t),i=new Date(n);if(Number.isNaN(r.valueOf())||Number.isNaN(i.valueOf()))return e;let a=Math.round((i.valueOf()-r.valueOf())/6e4);return a>=60&&a%60==0?`Last ${a/60}h`:`Last ${Math.max(a,1)}m`}function q(e,t,n){function r(n,r){if(n._zod||Object.defineProperty(n,"_zod",{value:{def:r,constr:o,traits:new Set},enumerable:!1}),n._zod.traits.has(e))return;n._zod.traits.add(e),t(n,r);let i=o.prototype,a=Object.keys(i);for(let e=0;en?.Parent&&t instanceof n.Parent?!0:t?._zod?.traits?.has(e)}),Object.defineProperty(o,"name",{value:e}),o}function NH(e){return e&&Object.assign(zH,e),zH}var PH,FH,IH,LH,RH,zH,BH=o((()=>{FH=Object.freeze({status:`aborted`}),IH=Symbol(`zod_brand`),LH=class extends Error{constructor(){super(`Encountered Promise during synchronous parse. Use .parseAsync() instead.`)}},RH=class extends Error{constructor(e){super(`Encountered unidirectional transform during encode: ${e}`),this.name=`ZodEncodeError`}},(PH=globalThis).__zod_globalConfig??(PH.__zod_globalConfig={}),zH=globalThis.__zod_globalConfig})),VH=c({BIGINT_FORMAT_RANGES:()=>JU,Class:()=>YU,NUMBER_FORMAT_RANGES:()=>qU,aborted:()=>TU,allowsEval:()=>UU,assert:()=>KH,assertEqual:()=>HH,assertIs:()=>WH,assertNever:()=>GH,assertNotEqual:()=>UH,assignProp:()=>tU,base64ToUint8Array:()=>FU,base64urlToUint8Array:()=>LU,cached:()=>YH,captureStackTrace:()=>HU,cleanEnum:()=>PU,cleanRegex:()=>ZH,clone:()=>mU,cloneDef:()=>rU,createTransparentProxy:()=>hU,defineLazy:()=>$H,esc:()=>sU,escapeRegex:()=>pU,explicitlyAborted:()=>EU,extend:()=>bU,finalizeIssue:()=>kU,floatSafeRemainder:()=>QH,getElementAtPath:()=>iU,getEnumValues:()=>qH,getLengthableOrigin:()=>jU,getParsedType:()=>WU,getSizableOrigin:()=>AU,hexToUint8Array:()=>zU,isObject:()=>lU,isPlainObject:()=>uU,issue:()=>NU,joinValues:()=>J,jsonStringifyReplacer:()=>JH,merge:()=>SU,mergeDefs:()=>nU,normalizeParams:()=>Y,nullish:()=>XH,numKeys:()=>fU,objectClone:()=>eU,omit:()=>yU,optionalKeys:()=>_U,parsedType:()=>MU,partial:()=>CU,pick:()=>vU,prefixIssues:()=>DU,primitiveTypes:()=>KU,promiseAllObject:()=>aU,propertyKeyTypes:()=>GU,randomString:()=>oU,required:()=>wU,safeExtend:()=>xU,shallowClone:()=>dU,slugify:()=>cU,stringifyPrimitive:()=>gU,uint8ArrayToBase64:()=>IU,uint8ArrayToBase64url:()=>RU,uint8ArrayToHex:()=>BU,unwrapMessage:()=>OU});function HH(e){return e}function UH(e){return e}function WH(e){}function GH(e){throw Error(`Unexpected value in exhaustive check`)}function KH(e){}function qH(e){let t=Object.values(e).filter(e=>typeof e==`number`);return Object.entries(e).filter(([e,n])=>t.indexOf(+e)===-1).map(([e,t])=>t)}function J(e,t=`|`){return e.map(e=>gU(e)).join(t)}function JH(e,t){return typeof t==`bigint`?t.toString():t}function YH(e){return{get value(){{let t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function XH(e){return e==null}function ZH(e){let t=+!!e.startsWith(`^`),n=e.endsWith(`$`)?e.length-1:e.length;return e.slice(t,n)}function QH(e,t){let n=e/t,r=Math.round(n),i=2**-52*Math.max(Math.abs(n),1);return Math.abs(n-r)e?.[t],e):e}function aU(e){let t=Object.keys(e),n=t.map(t=>e[t]);return Promise.all(n).then(e=>{let n={};for(let r=0;rt};if(t?.message!==void 0){if(t?.error!==void 0)throw Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error==`string`?{...t,error:()=>t.error}:t}function hU(e){let t;return new Proxy({},{get(n,r,i){return t??=e(),Reflect.get(t,r,i)},set(n,r,i,a){return t??=e(),Reflect.set(t,r,i,a)},has(n,r){return t??=e(),Reflect.has(t,r)},deleteProperty(n,r){return t??=e(),Reflect.deleteProperty(t,r)},ownKeys(n){return t??=e(),Reflect.ownKeys(t)},getOwnPropertyDescriptor(n,r){return t??=e(),Reflect.getOwnPropertyDescriptor(t,r)},defineProperty(n,r,i){return t??=e(),Reflect.defineProperty(t,r,i)}})}function gU(e){return typeof e==`bigint`?e.toString()+`n`:typeof e==`string`?`"${e}"`:`${e}`}function _U(e){return Object.keys(e).filter(t=>e[t]._zod.optin===`optional`&&e[t]._zod.optout===`optional`)}function vU(e,t){let n=e._zod.def,r=n.checks;if(r&&r.length>0)throw Error(`.pick() cannot be used on object schemas containing refinements`);return mU(e,nU(e._zod.def,{get shape(){let e={};for(let r in t){if(!(r in n.shape))throw Error(`Unrecognized key: "${r}"`);t[r]&&(e[r]=n.shape[r])}return tU(this,`shape`,e),e},checks:[]}))}function yU(e,t){let n=e._zod.def,r=n.checks;if(r&&r.length>0)throw Error(`.omit() cannot be used on object schemas containing refinements`);return mU(e,nU(e._zod.def,{get shape(){let r={...e._zod.def.shape};for(let e in t){if(!(e in n.shape))throw Error(`Unrecognized key: "${e}"`);t[e]&&delete r[e]}return tU(this,`shape`,r),r},checks:[]}))}function bU(e,t){if(!uU(t))throw Error(`Invalid input to extend: expected a plain object`);let n=e._zod.def.checks;if(n&&n.length>0){let n=e._zod.def.shape;for(let e in t)if(Object.getOwnPropertyDescriptor(n,e)!==void 0)throw Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}return mU(e,nU(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t};return tU(this,`shape`,n),n}}))}function xU(e,t){if(!uU(t))throw Error(`Invalid input to safeExtend: expected a plain object`);return mU(e,nU(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t};return tU(this,`shape`,n),n}}))}function SU(e,t){if(e._zod.def.checks?.length)throw Error(`.merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.`);return mU(e,nU(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t._zod.def.shape};return tU(this,`shape`,n),n},get catchall(){return t._zod.def.catchall},checks:t._zod.def.checks??[]}))}function CU(e,t,n){let r=t._zod.def.checks;if(r&&r.length>0)throw Error(`.partial() cannot be used on object schemas containing refinements`);return mU(t,nU(t._zod.def,{get shape(){let r=t._zod.def.shape,i={...r};if(n)for(let t in n){if(!(t in r))throw Error(`Unrecognized key: "${t}"`);n[t]&&(i[t]=e?new e({type:`optional`,innerType:r[t]}):r[t])}else for(let t in r)i[t]=e?new e({type:`optional`,innerType:r[t]}):r[t];return tU(this,`shape`,i),i},checks:[]}))}function wU(e,t,n){return mU(t,nU(t._zod.def,{get shape(){let r=t._zod.def.shape,i={...r};if(n)for(let t in n){if(!(t in i))throw Error(`Unrecognized key: "${t}"`);n[t]&&(i[t]=new e({type:`nonoptional`,innerType:r[t]}))}else for(let t in r)i[t]=new e({type:`nonoptional`,innerType:r[t]});return tU(this,`shape`,i),i}}))}function TU(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n{var n;return(n=t).path??(n.path=[]),t.path.unshift(e),t})}function OU(e){return typeof e==`string`?e:e?.message}function kU(e,t,n){let r=e.message?e.message:OU(e.inst?._zod.def?.error?.(e))??OU(t?.error?.(e))??OU(n.customError?.(e))??OU(n.localeError?.(e))??`Invalid input`,{inst:i,continue:a,input:o,...s}=e;return s.path??=[],s.message=r,t?.reportInput&&(s.input=o),s}function AU(e){return e instanceof Set?`set`:e instanceof Map?`map`:e instanceof File?`file`:`unknown`}function jU(e){return Array.isArray(e)?`array`:typeof e==`string`?`string`:`unknown`}function MU(e){let t=typeof e;switch(t){case`number`:return Number.isNaN(e)?`nan`:`number`;case`object`:{if(e===null)return`null`;if(Array.isArray(e))return`array`;let t=e;if(t&&Object.getPrototypeOf(t)!==Object.prototype&&`constructor`in t&&t.constructor)return t.constructor.name}}return t}function NU(...e){let[t,n,r]=e;return typeof t==`string`?{message:t,code:`custom`,input:n,inst:r}:{...t}}function PU(e){return Object.entries(e).filter(([e,t])=>Number.isNaN(Number.parseInt(e,10))).map(e=>e[1])}function FU(e){let t=atob(e),n=new Uint8Array(t.length);for(let e=0;ee.toString(16).padStart(2,`0`)).join(``)}var VU,HU,UU,WU,GU,KU,qU,JU,YU,XU=o((()=>{BH(),VU=Symbol(`evaluating`),HU=`captureStackTrace`in Error?Error.captureStackTrace:(...e)=>{},UU=YH(()=>{if(zH.jitless||typeof navigator<`u`&&navigator?.userAgent?.includes(`Cloudflare`))return!1;try{return Function(``),!0}catch{return!1}}),WU=e=>{let t=typeof e;switch(t){case`undefined`:return`undefined`;case`string`:return`string`;case`number`:return Number.isNaN(e)?`nan`:`number`;case`boolean`:return`boolean`;case`function`:return`function`;case`bigint`:return`bigint`;case`symbol`:return`symbol`;case`object`:return Array.isArray(e)?`array`:e===null?`null`:e.then&&typeof e.then==`function`&&e.catch&&typeof e.catch==`function`?`promise`:typeof Map<`u`&&e instanceof Map?`map`:typeof Set<`u`&&e instanceof Set?`set`:typeof Date<`u`&&e instanceof Date?`date`:typeof File<`u`&&e instanceof File?`file`:`object`;default:throw Error(`Unknown data type: ${t}`)}},GU=new Set([`string`,`number`,`symbol`]),KU=new Set([`string`,`number`,`bigint`,`boolean`,`symbol`,`undefined`]),qU={safeint:[-(2**53-1),2**53-1],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]},JU={int64:[BigInt(`-9223372036854775808`),BigInt(`9223372036854775807`)],uint64:[BigInt(0),BigInt(`18446744073709551615`)]},YU=class{constructor(...e){}}}));function ZU(e,t=e=>e.message){let n={},r=[];for(let i of e.issues)i.path.length>0?(n[i.path[0]]=n[i.path[0]]||[],n[i.path[0]].push(t(i))):r.push(t(i));return{formErrors:r,fieldErrors:n}}function QU(e,t=e=>e.message){let n={_errors:[]},r=(e,i=[])=>{for(let a of e.issues)if(a.code===`invalid_union`&&a.errors.length)a.errors.map(e=>r({issues:e},[...i,...a.path]));else if(a.code===`invalid_key`)r({issues:a.issues},[...i,...a.path]);else if(a.code===`invalid_element`)r({issues:a.issues},[...i,...a.path]);else{let e=[...i,...a.path];if(e.length===0)n._errors.push(t(a));else{let r=n,i=0;for(;ie.message){let n={errors:[]},r=(e,i=[])=>{var a,o;for(let s of e.issues)if(s.code===`invalid_union`&&s.errors.length)s.errors.map(e=>r({issues:e},[...i,...s.path]));else if(s.code===`invalid_key`)r({issues:s.issues},[...i,...s.path]);else if(s.code===`invalid_element`)r({issues:s.issues},[...i,...s.path]);else{let e=[...i,...s.path];if(e.length===0){n.errors.push(t(s));continue}let r=n,c=0;for(;ctypeof e==`object`?e.key:e);for(let e of n)typeof e==`number`?t.push(`[${e}]`):typeof e==`symbol`?t.push(`[${JSON.stringify(String(e))}]`):/[^\w$]/.test(e)?t.push(`[${JSON.stringify(e)}]`):(t.length&&t.push(`.`),t.push(e));return t.join(``)}function tW(e){let t=[],n=[...e.issues].sort((e,t)=>(e.path??[]).length-(t.path??[]).length);for(let e of n)t.push(`✖ ${e.message}`),e.path?.length&&t.push(` → at ${eW(e.path)}`);return t.join(` -`)}var nW,rW,iW,aW=o((()=>{BH(),XU(),nW=(e,t)=>{e.name=`$ZodError`,Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,JH,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},rW=q(`$ZodError`,nW),iW=q(`$ZodError`,nW,{Parent:Error})})),oW,sW,cW,lW,uW,dW,fW,pW,mW,hW,gW,_W,vW,yW,bW,xW,SW,CW,wW,TW,EW,DW,OW,kW,AW=o((()=>{BH(),aW(),XU(),oW=e=>(t,n,r,i)=>{let a=r?{...r,async:!1}:{async:!1},o=t._zod.run({value:n,issues:[]},a);if(o instanceof Promise)throw new LH;if(o.issues.length){let t=new((i?.Err)??e)(o.issues.map(e=>kU(e,a,NH())));throw HU(t,i?.callee),t}return o.value},sW=oW(iW),cW=e=>async(t,n,r,i)=>{let a=r?{...r,async:!0}:{async:!0},o=t._zod.run({value:n,issues:[]},a);if(o instanceof Promise&&(o=await o),o.issues.length){let t=new((i?.Err)??e)(o.issues.map(e=>kU(e,a,NH())));throw HU(t,i?.callee),t}return o.value},lW=cW(iW),uW=e=>(t,n,r)=>{let i=r?{...r,async:!1}:{async:!1},a=t._zod.run({value:n,issues:[]},i);if(a instanceof Promise)throw new LH;return a.issues.length?{success:!1,error:new(e??rW)(a.issues.map(e=>kU(e,i,NH())))}:{success:!0,data:a.value}},dW=uW(iW),fW=e=>async(t,n,r)=>{let i=r?{...r,async:!0}:{async:!0},a=t._zod.run({value:n,issues:[]},i);return a instanceof Promise&&(a=await a),a.issues.length?{success:!1,error:new e(a.issues.map(e=>kU(e,i,NH())))}:{success:!0,data:a.value}},pW=fW(iW),mW=e=>(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return oW(e)(t,n,i)},hW=mW(iW),gW=e=>(t,n,r)=>oW(e)(t,n,r),_W=gW(iW),vW=e=>async(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return cW(e)(t,n,i)},yW=vW(iW),bW=e=>async(t,n,r)=>cW(e)(t,n,r),xW=bW(iW),SW=e=>(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return uW(e)(t,n,i)},CW=SW(iW),wW=e=>(t,n,r)=>uW(e)(t,n,r),TW=wW(iW),EW=e=>async(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return fW(e)(t,n,i)},DW=EW(iW),OW=e=>async(t,n,r)=>fW(e)(t,n,r),kW=OW(iW)})),jW=c({base64:()=>lG,base64url:()=>uG,bigint:()=>vG,boolean:()=>xG,browserEmail:()=>nG,cidrv4:()=>sG,cidrv6:()=>cG,cuid:()=>RW,cuid2:()=>zW,date:()=>gG,datetime:()=>FW,domain:()=>fG,duration:()=>WW,e164:()=>mG,email:()=>ZW,emoji:()=>MW,extendedDuration:()=>GW,guid:()=>KW,hex:()=>EG,hostname:()=>dG,html5Email:()=>QW,httpProtocol:()=>pG,idnEmail:()=>tG,integer:()=>yG,ipv4:()=>iG,ipv6:()=>aG,ksuid:()=>HW,lowercase:()=>wG,mac:()=>oG,md5_base64:()=>OG,md5_base64url:()=>kG,md5_hex:()=>DG,nanoid:()=>UW,null:()=>SG,number:()=>bG,rfc5322Email:()=>$W,sha1_base64:()=>jG,sha1_base64url:()=>MG,sha1_hex:()=>AG,sha256_base64:()=>PG,sha256_base64url:()=>FG,sha256_hex:()=>NG,sha384_base64:()=>LG,sha384_base64url:()=>RG,sha384_hex:()=>IG,sha512_base64:()=>BG,sha512_base64url:()=>VG,sha512_hex:()=>zG,string:()=>_G,time:()=>PW,ulid:()=>BW,undefined:()=>CG,unicodeEmail:()=>eG,uppercase:()=>TG,uuid:()=>qW,uuid4:()=>JW,uuid6:()=>YW,uuid7:()=>XW,xid:()=>VW});function MW(){return new RegExp(rG,`u`)}function NW(e){let t=`(?:[01]\\d|2[0-3]):[0-5]\\d`;return typeof e.precision==`number`?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function PW(e){return RegExp(`^${NW(e)}$`)}function FW(e){let t=NW({precision:e.precision}),n=[`Z`];e.local&&n.push(``),e.offset&&n.push(`([+-](?:[01]\\d|2[0-3]):[0-5]\\d)`);let r=`${t}(?:${n.join(`|`)})`;return RegExp(`^${hG}T(?:${r})$`)}function IW(e,t){return RegExp(`^[A-Za-z0-9+/]{${e}}${t}$`)}function LW(e){return RegExp(`^[A-Za-z0-9_-]{${e}}$`)}var RW,zW,BW,VW,HW,UW,WW,GW,KW,qW,JW,YW,XW,ZW,QW,$W,eG,tG,nG,rG,iG,aG,oG,sG,cG,lG,uG,dG,fG,pG,mG,hG,gG,_G,vG,yG,bG,xG,SG,CG,wG,TG,EG,DG,OG,kG,AG,jG,MG,NG,PG,FG,IG,LG,RG,zG,BG,VG,HG=o((()=>{XU(),RW=/^[cC][0-9a-z]{6,}$/,zW=/^[0-9a-z]+$/,BW=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,VW=/^[0-9a-vA-V]{20}$/,HW=/^[A-Za-z0-9]{27}$/,UW=/^[a-zA-Z0-9_-]{21}$/,WW=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,GW=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,KW=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,qW=e=>e?RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,JW=qW(4),YW=qW(6),XW=qW(7),ZW=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,QW=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,$W=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,eG=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,tG=eG,nG=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,rG=`^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$`,iG=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,aG=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,oG=e=>{let t=pU(e??`:`);return RegExp(`^(?:[0-9A-F]{2}${t}){5}[0-9A-F]{2}$|^(?:[0-9a-f]{2}${t}){5}[0-9a-f]{2}$`)},sG=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,cG=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,lG=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,uG=/^[A-Za-z0-9_-]*$/,dG=/^(?=.{1,253}\.?$)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?)*\.?$/,fG=/^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/,pG=/^https?$/,mG=/^\+[1-9]\d{6,14}$/,hG=`(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))`,gG=RegExp(`^${hG}$`),_G=e=>{let t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??``}}`:`[\\s\\S]*`;return RegExp(`^${t}$`)},vG=/^-?\d+n?$/,yG=/^-?\d+$/,bG=/^-?\d+(?:\.\d+)?$/,xG=/^(?:true|false)$/i,SG=/^null$/i,CG=/^undefined$/i,wG=/^[^A-Z]*$/,TG=/^[^a-z]*$/,EG=/^[0-9a-fA-F]*$/,DG=/^[0-9a-fA-F]{32}$/,OG=IW(22,`==`),kG=LW(22),AG=/^[0-9a-fA-F]{40}$/,jG=IW(27,`=`),MG=LW(27),NG=/^[0-9a-fA-F]{64}$/,PG=IW(43,`=`),FG=LW(43),IG=/^[0-9a-fA-F]{96}$/,LG=IW(64,``),RG=LW(64),zG=/^[0-9a-fA-F]{128}$/,BG=IW(86,`==`),VG=LW(86)}));function UG(e,t,n){e.issues.length&&t.issues.push(...DU(n,e.issues))}var WG,GG,KG,qG,JG,YG,XG,ZG,QG,$G,eK,tK,nK,rK,iK,aK,oK,sK,cK,lK,uK,dK,fK,pK=o((()=>{BH(),HG(),XU(),WG=q(`$ZodCheck`,(e,t)=>{var n;e._zod??={},e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),GG={number:`number`,bigint:`bigint`,object:`date`},KG=q(`$ZodCheckLessThan`,(e,t)=>{WG.init(e,t);let n=GG[typeof t.value];e._zod.onattach.push(e=>{let n=e._zod.bag,r=(t.inclusive?n.maximum:n.exclusiveMaximum)??1/0;t.value{(t.inclusive?r.value<=t.value:r.value{WG.init(e,t);let n=GG[typeof t.value];e._zod.onattach.push(e=>{let n=e._zod.bag,r=(t.inclusive?n.minimum:n.exclusiveMinimum)??-1/0;t.value>r&&(t.inclusive?n.minimum=t.value:n.exclusiveMinimum=t.value)}),e._zod.check=r=>{(t.inclusive?r.value>=t.value:r.value>t.value)||r.issues.push({origin:n,code:`too_small`,minimum:typeof t.value==`object`?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),JG=q(`$ZodCheckMultipleOf`,(e,t)=>{WG.init(e,t),e._zod.onattach.push(e=>{var n;(n=e._zod.bag).multipleOf??(n.multipleOf=t.value)}),e._zod.check=n=>{if(typeof n.value!=typeof t.value)throw Error(`Cannot mix number and bigint in multiple_of check.`);(typeof n.value==`bigint`?n.value%t.value===BigInt(0):QH(n.value,t.value)===0)||n.issues.push({origin:typeof n.value,code:`not_multiple_of`,divisor:t.value,input:n.value,inst:e,continue:!t.abort})}}),YG=q(`$ZodCheckNumberFormat`,(e,t)=>{WG.init(e,t),t.format=t.format||`float64`;let n=t.format?.includes(`int`),r=n?`int`:`number`,[i,a]=qU[t.format];e._zod.onattach.push(e=>{let r=e._zod.bag;r.format=t.format,r.minimum=i,r.maximum=a,n&&(r.pattern=yG)}),e._zod.check=o=>{let s=o.value;if(n){if(!Number.isInteger(s)){o.issues.push({expected:r,format:t.format,code:`invalid_type`,continue:!1,input:s,inst:e});return}if(!Number.isSafeInteger(s)){s>0?o.issues.push({input:s,code:`too_big`,maximum:2**53-1,note:`Integers must be within the safe integer range.`,inst:e,origin:r,inclusive:!0,continue:!t.abort}):o.issues.push({input:s,code:`too_small`,minimum:-(2**53-1),note:`Integers must be within the safe integer range.`,inst:e,origin:r,inclusive:!0,continue:!t.abort});return}}sa&&o.issues.push({origin:`number`,input:s,code:`too_big`,maximum:a,inclusive:!0,inst:e,continue:!t.abort})}}),XG=q(`$ZodCheckBigIntFormat`,(e,t)=>{WG.init(e,t);let[n,r]=JU[t.format];e._zod.onattach.push(e=>{let i=e._zod.bag;i.format=t.format,i.minimum=n,i.maximum=r}),e._zod.check=i=>{let a=i.value;ar&&i.issues.push({origin:`bigint`,input:a,code:`too_big`,maximum:r,inclusive:!0,inst:e,continue:!t.abort})}}),ZG=q(`$ZodCheckMaxSize`,(e,t)=>{var n;WG.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!XH(t)&&t.size!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag.maximum??1/0;t.maximum{let r=n.value;r.size<=t.maximum||n.issues.push({origin:AU(r),code:`too_big`,maximum:t.maximum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),QG=q(`$ZodCheckMinSize`,(e,t)=>{var n;WG.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!XH(t)&&t.size!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag.minimum??-1/0;t.minimum>n&&(e._zod.bag.minimum=t.minimum)}),e._zod.check=n=>{let r=n.value;r.size>=t.minimum||n.issues.push({origin:AU(r),code:`too_small`,minimum:t.minimum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),$G=q(`$ZodCheckSizeEquals`,(e,t)=>{var n;WG.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!XH(t)&&t.size!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag;n.minimum=t.size,n.maximum=t.size,n.size=t.size}),e._zod.check=n=>{let r=n.value,i=r.size;if(i===t.size)return;let a=i>t.size;n.issues.push({origin:AU(r),...a?{code:`too_big`,maximum:t.size}:{code:`too_small`,minimum:t.size},inclusive:!0,exact:!0,input:n.value,inst:e,continue:!t.abort})}}),eK=q(`$ZodCheckMaxLength`,(e,t)=>{var n;WG.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!XH(t)&&t.length!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag.maximum??1/0;t.maximum{let r=n.value;if(r.length<=t.maximum)return;let i=jU(r);n.issues.push({origin:i,code:`too_big`,maximum:t.maximum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),tK=q(`$ZodCheckMinLength`,(e,t)=>{var n;WG.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!XH(t)&&t.length!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag.minimum??-1/0;t.minimum>n&&(e._zod.bag.minimum=t.minimum)}),e._zod.check=n=>{let r=n.value;if(r.length>=t.minimum)return;let i=jU(r);n.issues.push({origin:i,code:`too_small`,minimum:t.minimum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),nK=q(`$ZodCheckLengthEquals`,(e,t)=>{var n;WG.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!XH(t)&&t.length!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag;n.minimum=t.length,n.maximum=t.length,n.length=t.length}),e._zod.check=n=>{let r=n.value,i=r.length;if(i===t.length)return;let a=jU(r),o=i>t.length;n.issues.push({origin:a,...o?{code:`too_big`,maximum:t.length}:{code:`too_small`,minimum:t.length},inclusive:!0,exact:!0,input:n.value,inst:e,continue:!t.abort})}}),rK=q(`$ZodCheckStringFormat`,(e,t)=>{var n,r;WG.init(e,t),e._zod.onattach.push(e=>{let n=e._zod.bag;n.format=t.format,t.pattern&&(n.patterns??=new Set,n.patterns.add(t.pattern))}),t.pattern?(n=e._zod).check??(n.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:`string`,code:`invalid_format`,format:t.format,input:n.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(r=e._zod).check??(r.check=()=>{})}),iK=q(`$ZodCheckRegex`,(e,t)=>{rK.init(e,t),e._zod.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:`string`,code:`invalid_format`,format:`regex`,input:n.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),aK=q(`$ZodCheckLowerCase`,(e,t)=>{t.pattern??=wG,rK.init(e,t)}),oK=q(`$ZodCheckUpperCase`,(e,t)=>{t.pattern??=TG,rK.init(e,t)}),sK=q(`$ZodCheckIncludes`,(e,t)=>{WG.init(e,t);let n=pU(t.includes),r=new RegExp(typeof t.position==`number`?`^.{${t.position}}${n}`:n);t.pattern=r,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??=new Set,t.patterns.add(r)}),e._zod.check=n=>{n.value.includes(t.includes,t.position)||n.issues.push({origin:`string`,code:`invalid_format`,format:`includes`,includes:t.includes,input:n.value,inst:e,continue:!t.abort})}}),cK=q(`$ZodCheckStartsWith`,(e,t)=>{WG.init(e,t);let n=RegExp(`^${pU(t.prefix)}.*`);t.pattern??=n,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??=new Set,t.patterns.add(n)}),e._zod.check=n=>{n.value.startsWith(t.prefix)||n.issues.push({origin:`string`,code:`invalid_format`,format:`starts_with`,prefix:t.prefix,input:n.value,inst:e,continue:!t.abort})}}),lK=q(`$ZodCheckEndsWith`,(e,t)=>{WG.init(e,t);let n=RegExp(`.*${pU(t.suffix)}$`);t.pattern??=n,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??=new Set,t.patterns.add(n)}),e._zod.check=n=>{n.value.endsWith(t.suffix)||n.issues.push({origin:`string`,code:`invalid_format`,format:`ends_with`,suffix:t.suffix,input:n.value,inst:e,continue:!t.abort})}}),uK=q(`$ZodCheckProperty`,(e,t)=>{WG.init(e,t),e._zod.check=e=>{let n=t.schema._zod.run({value:e.value[t.property],issues:[]},{});if(n instanceof Promise)return n.then(n=>UG(n,e,t.property));UG(n,e,t.property)}}),dK=q(`$ZodCheckMimeType`,(e,t)=>{WG.init(e,t);let n=new Set(t.mime);e._zod.onattach.push(e=>{e._zod.bag.mime=t.mime}),e._zod.check=r=>{n.has(r.value.type)||r.issues.push({code:`invalid_value`,values:t.mime,input:r.value.type,inst:e,continue:!t.abort})}}),fK=q(`$ZodCheckOverwrite`,(e,t)=>{WG.init(e,t),e._zod.check=e=>{e.value=t.tx(e.value)}})})),mK,hK=o((()=>{mK=class{constructor(e=[]){this.content=[],this.indent=0,this&&(this.args=e)}indented(e){this.indent+=1,e(this),--this.indent}write(e){if(typeof e==`function`){e(this,{execution:`sync`}),e(this,{execution:`async`});return}let t=e.split(` +`).replace(Rd,``)}function Bd(e,t){return t=zd(t),zd(e)===t}function Vd(e,t,n,r,a,o){switch(n){case`children`:typeof r==`string`?t===`body`||t===`textarea`&&r===``||zt(e,r):(typeof r==`number`||typeof r==`bigint`)&&t!==`body`&&zt(e,``+r);break;case`className`:Ct(e,`class`,r);break;case`tabIndex`:Ct(e,`tabindex`,r);break;case`dir`:case`role`:case`viewBox`:case`width`:case`height`:Ct(e,n,r);break;case`style`:Ht(e,r,o);break;case`data`:if(t!==`object`){Ct(e,`data`,r);break}case`src`:case`href`:if(r===``&&(t!==`a`||n!==`href`)){e.removeAttribute(n);break}if(r==null||typeof r==`function`||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=Kt(``+r),e.setAttribute(n,r);break;case`action`:case`formAction`:if(typeof r==`function`){e.setAttribute(n,`javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')`);break}if(typeof o==`function`&&(n===`formAction`?(t!==`input`&&Vd(e,t,`name`,a.name,a,null),Vd(e,t,`formEncType`,a.formEncType,a,null),Vd(e,t,`formMethod`,a.formMethod,a,null),Vd(e,t,`formTarget`,a.formTarget,a,null)):(Vd(e,t,`encType`,a.encType,a,null),Vd(e,t,`method`,a.method,a,null),Vd(e,t,`target`,a.target,a,null))),r==null||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=Kt(``+r),e.setAttribute(n,r);break;case`onClick`:r!=null&&(e.onclick=qt);break;case`onScroll`:r!=null&&Dd(`scroll`,e);break;case`onScrollEnd`:r!=null&&Dd(`scrollend`,e);break;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(i(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(i(60));e.innerHTML=n}}break;case`multiple`:e.multiple=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`muted`:e.muted=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`defaultValue`:case`defaultChecked`:case`innerHTML`:case`ref`:break;case`autoFocus`:break;case`xlinkHref`:if(r==null||typeof r==`function`||typeof r==`boolean`||typeof r==`symbol`){e.removeAttribute(`xlink:href`);break}n=Kt(``+r),e.setAttributeNS(`http://www.w3.org/1999/xlink`,`xlink:href`,n);break;case`contentEditable`:case`spellCheck`:case`draggable`:case`value`:case`autoReverse`:case`externalResourcesRequired`:case`focusable`:case`preserveAlpha`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``+r):e.removeAttribute(n);break;case`inert`:case`allowFullScreen`:case`async`:case`autoPlay`:case`controls`:case`default`:case`defer`:case`disabled`:case`disablePictureInPicture`:case`disableRemotePlayback`:case`formNoValidate`:case`hidden`:case`loop`:case`noModule`:case`noValidate`:case`open`:case`playsInline`:case`readOnly`:case`required`:case`reversed`:case`scoped`:case`seamless`:case`itemScope`:r&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``):e.removeAttribute(n);break;case`capture`:case`download`:!0===r?e.setAttribute(n,``):!1!==r&&r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,r):e.removeAttribute(n);break;case`cols`:case`rows`:case`size`:case`span`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`&&!isNaN(r)&&1<=r?e.setAttribute(n,r):e.removeAttribute(n);break;case`rowSpan`:case`start`:r==null||typeof r==`function`||typeof r==`symbol`||isNaN(r)?e.removeAttribute(n):e.setAttribute(n,r);break;case`popover`:Dd(`beforetoggle`,e),Dd(`toggle`,e),St(e,`popover`,r);break;case`xlinkActuate`:wt(e,`http://www.w3.org/1999/xlink`,`xlink:actuate`,r);break;case`xlinkArcrole`:wt(e,`http://www.w3.org/1999/xlink`,`xlink:arcrole`,r);break;case`xlinkRole`:wt(e,`http://www.w3.org/1999/xlink`,`xlink:role`,r);break;case`xlinkShow`:wt(e,`http://www.w3.org/1999/xlink`,`xlink:show`,r);break;case`xlinkTitle`:wt(e,`http://www.w3.org/1999/xlink`,`xlink:title`,r);break;case`xlinkType`:wt(e,`http://www.w3.org/1999/xlink`,`xlink:type`,r);break;case`xmlBase`:wt(e,`http://www.w3.org/XML/1998/namespace`,`xml:base`,r);break;case`xmlLang`:wt(e,`http://www.w3.org/XML/1998/namespace`,`xml:lang`,r);break;case`xmlSpace`:wt(e,`http://www.w3.org/XML/1998/namespace`,`xml:space`,r);break;case`is`:St(e,`is`,r);break;case`innerText`:case`textContent`:break;default:(!(2s)break;var u=c.transferSize,d=c.initiatorType;u&&Gd(d)&&(c=c.responseEnd,o+=u*(c`u`?null:document;function Af(e,t,n){var r=kf;if(r&&typeof t==`string`&&t){var i=Mt(t);i=`link[rel="`+e+`"][href="`+i+`"]`,typeof n==`string`&&(i+=`[crossorigin="`+n+`"]`),wf.has(i)||(wf.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement(`link`),Ud(t,`link`,e),pt(t),r.head.appendChild(t)))}}function jf(e){Ef.D(e),Af(`dns-prefetch`,e,null)}function Mf(e,t){Ef.C(e,t),Af(`preconnect`,e,t)}function Nf(e,t,n){Ef.L(e,t,n);var r=kf;if(r&&e&&t){var i=`link[rel="preload"][as="`+Mt(t)+`"]`;t===`image`&&n&&n.imageSrcSet?(i+=`[imagesrcset="`+Mt(n.imageSrcSet)+`"]`,typeof n.imageSizes==`string`&&(i+=`[imagesizes="`+Mt(n.imageSizes)+`"]`)):i+=`[href="`+Mt(e)+`"]`;var a=i;switch(t){case`style`:a=zf(e);break;case`script`:a=Uf(e)}Cf.has(a)||(e=f({rel:`preload`,href:t===`image`&&n&&n.imageSrcSet?void 0:e,as:t},n),Cf.set(a,e),r.querySelector(i)!==null||t===`style`&&r.querySelector(Bf(a))||t===`script`&&r.querySelector(Wf(a))||(t=r.createElement(`link`),Ud(t,`link`,e),pt(t),r.head.appendChild(t)))}}function Pf(e,t){Ef.m(e,t);var n=kf;if(n&&e){var r=t&&typeof t.as==`string`?t.as:`script`,i=`link[rel="modulepreload"][as="`+Mt(r)+`"][href="`+Mt(e)+`"]`,a=i;switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:a=Uf(e)}if(!Cf.has(a)&&(e=f({rel:`modulepreload`,href:e},t),Cf.set(a,e),n.querySelector(i)===null)){switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:if(n.querySelector(Wf(a)))return}r=n.createElement(`link`),Ud(r,`link`,e),pt(r),n.head.appendChild(r)}}}function Ff(e,t,n){Ef.S(e,t,n);var r=kf;if(r&&e){var i=ft(r).hoistableStyles,a=zf(e);t||=`default`;var o=i.get(a);if(!o){var s={loading:0,preload:null};if(o=r.querySelector(Bf(a)))s.loading=5;else{e=f({rel:`stylesheet`,href:e,"data-precedence":t},n),(n=Cf.get(a))&&qf(e,n);var c=o=r.createElement(`link`);pt(c),Ud(c,`link`,e),c._p=new Promise(function(e,t){c.onload=e,c.onerror=t}),c.addEventListener(`load`,function(){s.loading|=1}),c.addEventListener(`error`,function(){s.loading|=2}),s.loading|=4,Kf(o,t,r)}o={type:`stylesheet`,instance:o,count:1,state:s},i.set(a,o)}}}function If(e,t){Ef.X(e,t);var n=kf;if(n&&e){var r=ft(n).hoistableScripts,i=Uf(e),a=r.get(i);a||(a=n.querySelector(Wf(i)),a||(e=f({src:e,async:!0},t),(t=Cf.get(i))&&Jf(e,t),a=n.createElement(`script`),pt(a),Ud(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Lf(e,t){Ef.M(e,t);var n=kf;if(n&&e){var r=ft(n).hoistableScripts,i=Uf(e),a=r.get(i);a||(a=n.querySelector(Wf(i)),a||(e=f({src:e,async:!0,type:`module`},t),(t=Cf.get(i))&&Jf(e,t),a=n.createElement(`script`),pt(a),Ud(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Rf(e,t,n,r){var a=(a=oe.current)?Tf(a):null;if(!a)throw Error(i(446));switch(e){case`meta`:case`title`:return null;case`style`:return typeof n.precedence==`string`&&typeof n.href==`string`?(t=zf(n.href),n=ft(a).hoistableStyles,r=n.get(t),r||(r={type:`style`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};case`link`:if(n.rel===`stylesheet`&&typeof n.href==`string`&&typeof n.precedence==`string`){e=zf(n.href);var o=ft(a).hoistableStyles,s=o.get(e);if(s||(a=a.ownerDocument||a,s={type:`stylesheet`,instance:null,count:0,state:{loading:0,preload:null}},o.set(e,s),(o=a.querySelector(Bf(e)))&&!o._p&&(s.instance=o,s.state.loading=5),Cf.has(e)||(n={rel:`preload`,as:`style`,href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},Cf.set(e,n),o||Hf(a,e,n,s.state))),t&&r===null)throw Error(i(528,``));return s}if(t&&r!==null)throw Error(i(529,``));return null;case`script`:return t=n.async,n=n.src,typeof n==`string`&&t&&typeof t!=`function`&&typeof t!=`symbol`?(t=Uf(n),n=ft(a).hoistableScripts,r=n.get(t),r||(r={type:`script`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};default:throw Error(i(444,e))}}function zf(e){return`href="`+Mt(e)+`"`}function Bf(e){return`link[rel="stylesheet"][`+e+`]`}function Vf(e){return f({},e,{"data-precedence":e.precedence,precedence:null})}function Hf(e,t,n,r){e.querySelector(`link[rel="preload"][as="style"][`+t+`]`)?r.loading=1:(t=e.createElement(`link`),r.preload=t,t.addEventListener(`load`,function(){return r.loading|=1}),t.addEventListener(`error`,function(){return r.loading|=2}),Ud(t,`link`,n),pt(t),e.head.appendChild(t))}function Uf(e){return`[src="`+Mt(e)+`"]`}function Wf(e){return`script[async]`+e}function Gf(e,t,n){if(t.count++,t.instance===null)switch(t.type){case`style`:var r=e.querySelector(`style[data-href~="`+Mt(n.href)+`"]`);if(r)return t.instance=r,pt(r),r;var a=f({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement(`style`),pt(r),Ud(r,`style`,a),Kf(r,n.precedence,e),t.instance=r;case`stylesheet`:a=zf(n.href);var o=e.querySelector(Bf(a));if(o)return t.state.loading|=4,t.instance=o,pt(o),o;r=Vf(n),(a=Cf.get(a))&&qf(r,a),o=(e.ownerDocument||e).createElement(`link`),pt(o);var s=o;return s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),Ud(o,`link`,r),t.state.loading|=4,Kf(o,n.precedence,e),t.instance=o;case`script`:return o=Uf(n.src),(a=e.querySelector(Wf(o)))?(t.instance=a,pt(a),a):(r=n,(a=Cf.get(o))&&(r=f({},n),Jf(r,a)),e=e.ownerDocument||e,a=e.createElement(`script`),pt(a),Ud(a,`link`,r),e.head.appendChild(a),t.instance=a);case`void`:return null;default:throw Error(i(443,t.type))}else t.type===`stylesheet`&&!(t.state.loading&4)&&(r=t.instance,t.state.loading|=4,Kf(r,n.precedence,e));return t.instance}function Kf(e,t,n){for(var r=n.querySelectorAll(`link[rel="stylesheet"][data-precedence],style[data-precedence]`),i=r.length?r[r.length-1]:null,a=i,o=0;o title`):null)}function Qf(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case`meta`:case`title`:return!0;case`style`:if(typeof t.precedence!=`string`||typeof t.href!=`string`||t.href===``)break;return!0;case`link`:if(typeof t.rel!=`string`||typeof t.href!=`string`||t.href===``||t.onLoad||t.onError)break;switch(t.rel){case`stylesheet`:return e=t.disabled,typeof t.precedence==`string`&&e==null;default:return!0}case`script`:if(t.async&&typeof t.async!=`function`&&typeof t.async!=`symbol`&&!t.onLoad&&!t.onError&&t.src&&typeof t.src==`string`)return!0}return!1}function $f(e){return!(e.type===`stylesheet`&&!(e.state.loading&3))}function ep(e,t,n,r){if(n.type===`stylesheet`&&(typeof r.media!=`string`||!1!==matchMedia(r.media).matches)&&!(n.state.loading&4)){if(n.instance===null){var i=zf(r.href),a=t.querySelector(Bf(i));if(a){t=a._p,typeof t==`object`&&t&&typeof t.then==`function`&&(e.count++,e=rp.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=a,pt(a);return}a=t.ownerDocument||t,r=Vf(r),(i=Cf.get(i))&&qf(r,i),a=a.createElement(`link`),pt(a);var o=a;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),Ud(a,`link`,r),n.instance=a}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&!(n.state.loading&3)&&(e.count++,n=rp.bind(e),t.addEventListener(`load`,n),t.addEventListener(`error`,n))}}var tp=0;function np(e,t){return e.stylesheets&&e.count===0&&ap(e,e.stylesheets),0tp?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}function rp(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)ap(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var ip=null;function ap(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,ip=new Map,t.forEach(op,e),ip=null,rp.call(e))}function op(e,t){if(!(t.state.loading&4)){var n=ip.get(e);if(n)var r=n.get(null);else{n=new Map,ip.set(e,n);for(var i=e.querySelectorAll(`link[data-precedence],style[data-precedence]`),a=0;a{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=FL()}))(),LL=[`#fafafa`,`#e6e4de`,`#bfbdb6`,`#8b8e99`,`#565b69`,`#1d2433`,`#131721`,`#0b0e14`,`#080a10`,`#05070b`],RL=[`#f3ecfd`,`#ece3fb`,`#dcc9f7`,`#d2a6ff`,`#bf94ec`,`#a97ce0`,`#9163d6`,`#7c4dcc`,`#5b32a3`,`#40236f`],zL=[`#eefbe6`,`#dcf7cc`,`#c2f0a6`,`#a5e880`,`#8fe06c`,`#7fd962`,`#66c04b`,`#4f9c3a`,`#3b7a2c`,`#2a5a1f`],BL=[`#fff5e6`,`#ffe9c9`,`#ffd79b`,`#ffc571`,`#ffbc62`,`#ffb454`,`#ef9c33`,`#c87d21`,`#9c5f16`,`#74460f`],VL=[`#fdecee`,`#fbd9dc`,`#f8b6bc`,`#f59099`,`#f37d87`,`#f26d78`,`#e04d5a`,`#c03642`,`#96262f`,`#6f1a21`],HL=[`#e8f6ff`,`#ccebff`,`#a3daff`,`#7dcbff`,`#66c5ff`,`#59c2ff`,`#33a7e6`,`#1e86bd`,`#146694`,`#0d4a6d`],UL={dark:{text:`#bfbdb6`,muted:`#8b8e99`,grid:`#1d2433`,surface:`#131721`,border:`#565b69`},light:{text:`#4a5058`,muted:`#6b7280`,grid:`#eceef0`,surface:`#fcfcfc`,border:`#a4abb4`}},WL={dark:[`#66d0ee`,`#a97ce0`,`#5fe8ce`,`#cb55e8`,`#41b6f8`,`#d2a6ff`],light:[`#2b93b5`,`#7c4dcc`,`#1a9c86`,`#a12fbf`,`#2f7fd4`,`#9163d6`]},GL={display:`"IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace`,body:`"IBM Plex Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif`},KL={primaryColor:`brand`,primaryShade:{light:7,dark:5},autoContrast:!0,colors:{dark:LL,brand:RL,ok:zL,warn:BL,bad:VL,info:HL},defaultRadius:`md`,fontFamily:GL.body,fontFamilyMonospace:GL.display,headings:{fontFamily:GL.display,fontWeight:`500`},cursorType:`pointer`},qL=()=>({variables:{"--mantine-color-error":`var(--mantine-color-bad-filled)`},light:{},dark:{}}),JL=eN(KL);function YL({dark:e,children:t}){return(0,K.jsx)(QM,{theme:JL,cssVariablesResolver:qL,forceColorScheme:e?`dark`:`light`,children:(0,K.jsx)($P,{withBorder:!0,radius:`lg`,style:{overflow:`hidden`},children:t})})}function XL({eyebrow:e,title:t,summary:n,onRefresh:r,disabled:i}){return(0,K.jsxs)(CF,{justify:`space-between`,align:`flex-start`,wrap:`nowrap`,px:{base:`md`,sm:`lg`},pt:`md`,pb:`sm`,children:[(0,K.jsxs)(nP,{miw:0,children:[(0,K.jsx)(jF,{c:`dimmed`,size:`xs`,fw:700,tt:`uppercase`,lts:`0.1em`,children:e}),(0,K.jsx)(hL,{order:1,fz:`lg`,mt:2,style:{overflow:`hidden`,textOverflow:`ellipsis`,whiteSpace:`nowrap`},children:t}),n&&(0,K.jsx)(jF,{c:`dimmed`,size:`sm`,mt:4,children:n})]}),(0,K.jsx)(UF,{variant:`default`,size:`xs`,leftSection:(0,K.jsx)(wL,{size:15,weight:`bold`}),onClick:()=>void r(),disabled:i,children:`Refresh`})]})}function ZL({error:e,loading:t}){return e?(0,K.jsx)(EF,{color:`bad`,m:`md`,children:e}):t?(0,K.jsxs)(GF,{mih:160,p:`xl`,children:[(0,K.jsx)(pF,{size:`sm`}),(0,K.jsx)(jF,{c:`dimmed`,size:`sm`,ml:`sm`,children:t})]}):null}function QL({active:e,items:t,onChange:n}){return(0,K.jsx)(KP,{type:`auto`,offsetScrollbars:!0,scrollbarSize:6,children:(0,K.jsx)(aL,{value:e,onChange:e=>e&&n(e),variant:`pills`,px:{base:`md`,sm:`lg`},pb:`sm`,children:(0,K.jsx)(aL.List,{style:{flexWrap:`nowrap`},children:t.map(e=>(0,K.jsx)(aL.Tab,{value:e.id,rightSection:e.count===void 0?void 0:(0,K.jsx)(PF,{size:`xs`,variant:`light`,circle:!0,children:e.count}),children:e.label},e.id))})})})}function $L({icon:e,title:t,children:n,tall:r=!1}){return(0,K.jsx)(GF,{mih:r?220:130,p:`xl`,children:(0,K.jsxs)(CF,{wrap:`nowrap`,children:[(0,K.jsx)(cL,{variant:`light`,size:`xl`,radius:`md`,children:e}),(0,K.jsxs)(nP,{children:[(0,K.jsx)(jF,{fw:700,size:`sm`,children:t}),(0,K.jsx)(jF,{c:`dimmed`,size:`xs`,mt:3,children:n})]})]})})}function eR({left:e,right:t}){return(0,K.jsxs)(CF,{justify:`space-between`,px:{base:`md`,sm:`lg`},py:`xs`,style:{borderTop:`1px solid var(--mantine-color-default-border)`},children:[(0,K.jsx)(jF,{c:`dimmed`,size:`xs`,children:e}),(0,K.jsx)(jF,{c:`dimmed`,size:`xs`,ta:`right`,children:t})]})}function tR({label:e,value:t,color:n}){return(0,K.jsxs)($P,{withBorder:!0,radius:`md`,p:`sm`,children:[(0,K.jsx)(jF,{c:`dimmed`,size:`xs`,children:e}),(0,K.jsx)(jF,{fw:700,fz:`xl`,c:n,mt:3,children:t})]})}function nR(e,t=8){let[n,r]=(0,G.useState)(1),i=Math.max(1,Math.ceil(e.length/t));(0,G.useEffect)(()=>{n>i&&r(i)},[n,i]);let a=(n-1)*t;return{page:n,setPage:r,totalPages:i,pageItems:e.slice(a,a+t),from:e.length===0?0:a+1,to:Math.min(a+t,e.length),total:e.length}}function rR({page:e,totalPages:t,from:n,to:r,total:i,onChange:a}){return t<=1?null:(0,K.jsxs)(CF,{justify:`space-between`,gap:`sm`,px:{base:`md`,sm:`lg`},py:`xs`,style:{borderTop:`1px solid var(--mantine-color-default-border)`},children:[(0,K.jsxs)(jF,{c:`dimmed`,size:`xs`,children:[n,`–`,r,` of `,i]}),(0,K.jsx)(_I,{value:e,total:t,onChange:a,size:`xs`,withEdges:!0,"aria-label":`Table pages`})]})}function iR(e){return e===`healthy`?`ok`:e===`degraded`?`warn`:`bad`}function aR(e){return UL[e?`dark`:`light`]}function oR(e){let t=e?5:7;return{ok:zL[t],warn:BL[t],bad:VL[t],info:HL[t]}}function sR(e,t){let n=WL[t?`dark`:`light`],r=0;for(let t of e)r=r*31+t.charCodeAt(0)|0;return n[Math.abs(r)%n.length]}var cR=Ec(),lR=N,uR=pe,dR=function(){function e(){this._dragging=!1,this.animationThreshold=15}return e.prototype.render=function(e,t,n,r){var i=t.get(`value`),a=t.get(`status`);if(this._axisModel=e,this._axisPointerModel=t,this._api=n,!(!r&&this._lastValue===i&&this._lastStatus===a)){this._lastValue=i,this._lastStatus=a;var o=this._group,s=this._handle;if(!a||a===`hide`){o&&o.hide(),s&&s.hide();return}o&&o.show(),s&&s.show();var c={};this.makeElOption(c,i,e,t,n);var l=c.graphicKey;l!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=l;var u=this._moveAnimation=this.determineAnimation(e,t);if(!o)o=this._group=new Hu,this.createPointerEl(o,c,e,t),this.createLabelEl(o,c,e,t),n.getZr().add(o);else{var d=me(fR,t,u);this.updatePointerEl(o,c,d),this.updateLabelEl(o,c,d,t)}gR(o,t,!0),this._renderHandle(i)}},e.prototype.remove=function(e){this.clear(e)},e.prototype.dispose=function(e){this.clear(e)},e.prototype.determineAnimation=function(e,t){var n=t.get(`animation`),r=e.axis,i=r.type===`category`,a=t.get(`snap`);if(!a&&!i)return!1;if(n===`auto`||n==null){var o=this.animationThreshold;if(i&&Rx(r).w>o)return!0;if(a){var s=Xk(e).seriesDataCount,c=r.getExtent();return Math.abs(c[0]-c[1])/s>o}return!1}return n===!0},e.prototype.makeElOption=function(e,t,n,r,i){},e.prototype.createPointerEl=function(e,t,n,r){var i=t.pointer;if(i){var a=cR(e).pointerEl=new Qd[i.type](lR(t.pointer));e.add(a)}},e.prototype.createLabelEl=function(e,t,n,r){if(t.label){var i=cR(e).labelEl=new Xo(lR(t.label));e.add(i),mR(i,r)}},e.prototype.updatePointerEl=function(e,t,n){var r=cR(e).pointerEl;r&&t.pointer&&(r.setStyle(t.pointer.style),n(r,{shape:t.pointer.shape}))},e.prototype.updateLabelEl=function(e,t,n,r){var i=cR(e).labelEl;i&&(i.setStyle(t.label.style),n(i,{x:t.label.x,y:t.label.y}),mR(i,r))},e.prototype._renderHandle=function(e){if(!(this._dragging||!this.updateHandleTransform)){var t=this._axisPointerModel,n=this._api.getZr(),r=this._handle,i=t.getModel(`handle`),a=t.get(`status`);if(!i.get(`show`)||!a||a===`hide`){r&&n.remove(r),this._handle=null;return}var o;this._handle||(o=!0,r=this._handle=wf(i.get(`icon`),{cursor:`move`,draggable:!0,onmousemove:function(e){PC(e.event)},onmousedown:uR(this._onHandleDragMove,this,0,0),drift:uR(this._onHandleDragMove,this),ondragend:uR(this._onHandleDragEnd,this)}),n.add(r)),gR(r,t,!1),r.setStyle(i.getItemStyle(null,[`color`,`borderColor`,`borderWidth`,`opacity`,`shadowColor`,`shadowBlur`,`shadowOffsetX`,`shadowOffsetY`]));var s=i.get(`size`);z(s)||(s=[s,s]),r.scaleX=s[0]/2,r.scaleY=s[1]/2,vC(this,`_doDispatchAxisPointer`,i.get(`throttle`)||0,`fixRate`),this._moveHandleToValue(e,o)}},e.prototype._moveHandleToValue=function(e,t){fR(this._axisPointerModel,!t&&this._moveAnimation,this._handle,hR(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},e.prototype._onHandleDragMove=function(e,t){var n=this._handle;if(n){this._dragging=!0;var r=this.updateHandleTransform(hR(n),[e,t],this._axisModel,this._axisPointerModel);this._payloadInfo=r,n.stopAnimation(),n.attr(hR(r)),cR(n).lastProp=null,this._doDispatchAxisPointer()}},e.prototype._doDispatchAxisPointer=function(){if(this._handle){var e=this._payloadInfo,t=this._axisModel;this._api.dispatchAction({type:`updateAxisPointer`,x:e.cursorPoint[0],y:e.cursorPoint[1],tooltipOption:e.tooltipOption,axesInfo:[{axisDim:t.axis.dim,axisIndex:t.componentIndex}]})}},e.prototype._onHandleDragEnd=function(){if(this._dragging=!1,this._handle){var e=this._axisPointerModel.get(`value`);this._moveHandleToValue(e),this._api.dispatchAction({type:`hideTip`})}},e.prototype.clear=function(e){this._lastValue=null,this._lastStatus=null;var t=e.getZr(),n=this._group,r=this._handle;t&&n&&(this._lastGraphicKey=null,n&&t.remove(n),r&&t.remove(r),this._group=null,this._handle=null,this._payloadInfo=null),yC(this,`_doDispatchAxisPointer`)},e.prototype.doClear=function(){},e.prototype.buildLabel=function(e,t,n){return n||=0,{x:e[n],y:e[1-n],width:t[n],height:t[1-n]}},e}();function fR(e,t,n,r){pR(cR(n).lastProp,r)||(cR(n).lastProp=r,t?Gd(n,r,e):(n.stopAnimation(),n.attr(r)))}function pR(e,t){if(V(e)&&V(t)){var n=!0;return L(t,function(t,r){n&&=pR(e[r],t)}),!!n}return e===t}function mR(e,t){e[t.get([`label`,`show`])?`show`:`hide`]()}function hR(e){return{x:e.x||0,y:e.y||0,rotation:e.rotation||0}}function gR(e,t,n){var r=t.get(`z`),i=t.get(`zlevel`);e&&e.traverse(function(e){e.type!==`group`&&(r!=null&&(e.z=r),i!=null&&(e.zlevel=i),e.silent=n)})}function _R(e){var t=e.get(`type`),n=e.getModel(t+`Style`),r;return t===`line`?(r=n.getLineStyle(),r.fill=null):t===`shadow`&&(r=n.getAreaStyle(),r.stroke=null),r}function vR(e,t,n,r,i){var a=bR(n.get(`value`),t.axis,t.ecModel,n.get(`seriesDataIndices`),{precision:n.get([`label`,`precision`]),formatter:n.get([`label`,`formatter`])}),o=n.getModel(`label`),s=Bg(o.get(`padding`)||0),c=o.getFont(),l=yn(a,c),u=i.position,d=l.width+s[1]+s[3],f=l.height+s[0]+s[2],p=i.align;p===`right`&&(u[0]-=d),p===`center`&&(u[0]-=d/2);var m=i.verticalAlign;m===`bottom`&&(u[1]-=f),m===`middle`&&(u[1]-=f/2),yR(u,d,f,r);var h=o.get(`backgroundColor`);(!h||h===`auto`)&&(h=t.get([`axisLine`,`lineStyle`,`color`])),e.label={x:u[0],y:u[1],style:Qf(o,{text:a,font:c,fill:o.getTextColor(),padding:s,backgroundColor:h}),z2:10}}function yR(e,t,n,r){var i=r.getWidth(),a=r.getHeight();e[0]=Math.min(e[0]+t,i)-t,e[1]=Math.min(e[1]+n,a)-n,e[0]=Math.max(e[0],0),e[1]=Math.max(e[1],0)}function bR(e,t,n,r,i){e=t.scale.parse(e);var a=t.scale.getLabel({value:e},{precision:i.precision}),o=i.formatter;if(o){var s={value:yb(t,{value:e}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};L(r,function(e){var t=n.getSeriesByIndex(e.seriesIndex),r=e.dataIndexInside,i=t&&t.getDataParams(r);i&&s.seriesData.push(i)}),B(o)?a=o.replace(`{value}`,a):he(o)&&(a=o(s))}return a}function xR(e,t,n){var r=_t();return St(r,r,n.rotation),xt(r,r,n.position),_f([e.dataToCoord(t),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],r)}function SR(e,t,n,r,i,a){var o=SS.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=i.get([`label`,`margin`]),vR(t,r,i,a,{position:xR(r.axis,e,n),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function CR(e,t,n){return n||=0,{x1:e[n],y1:e[1-n],x2:t[n],y2:t[1-n]}}function wR(e,t,n){return n||=0,{x:e[n],y:e[1-n],width:t[n],height:t[1-n]}}function TR(e,t,n){return Rx(e,{fromStat:{sers:R(t,function(e){return n.getSeriesByIndex(e.seriesIndex)})},min:1}).w}function ER(e,t,n){return[ms(ps(t[0],t[1]),e-n/2),ps(e+n/2,ms(t[0],t[1]))]}var DR=function(e){p(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.makeElOption=function(e,t,n,r,i){var a=n.axis,o=a.grid,s=r.get(`type`),c=a.getGlobalExtent(),l=OR(o,a).getOtherAxis(a).getGlobalExtent(),u=a.toGlobalCoord(a.dataToCoord(t,!0));if(s&&s!==`none`){var d=_R(r),f=kR[s](a,u,c,l,r.get(`seriesDataIndices`),r.ecModel);f.style=d,e.graphicKey=f.type,e.pointer=f}SR(t,e,US(o.getRect(),n),n,r,i)},t.prototype.getHandleTransform=function(e,t,n){var r=US(t.axis.grid.getRect(),t,{labelInside:!1});r.labelMargin=n.get([`handle`,`margin`]);var i=xR(t.axis,e,r);return{x:i[0],y:i[1],rotation:r.rotation+(r.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,t,n,r){var i=n.axis,a=i.grid,o=i.getGlobalExtent(!0),s=OR(a,i).getOtherAxis(i).getGlobalExtent(),c=i.dim===`x`?0:1,l=[e.x,e.y];l[c]+=t[c],l[c]=ps(o[1],l[c]),l[c]=ms(o[0],l[c]);var u=(s[1]+s[0])/2,d=[u,u];return d[c]=l[c],{x:l[0],y:l[1],rotation:e.rotation,cursorPoint:d,tooltipOption:[{verticalAlign:`middle`},{align:`center`}][c]}},t}(dR);function OR(e,t){var n={};return n[t.dim+`AxisIndex`]=t.index,e.getCartesian(n)}var kR={line:function(e,t,n,r){return{type:`Line`,subPixelOptimize:!0,shape:CR([t,r[0]],[t,r[1]],AR(e))}},shadow:function(e,t,n,r,i,a){var o=TR(e,i,a),s=r[1]-r[0],c=ER(t,n,o),l=c[0],u=c[1];return{type:`Rect`,shape:wR([l,r[0]],[u-l,s],AR(e))}}};function AR(e){return e.dim===`x`?0:1}var jR=function(e){p(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type=`axisPointer`,t.defaultOption={show:`auto`,z:50,type:`line`,snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:H.color.border,width:1,type:`dashed`},shadowStyle:{color:H.color.shadowTint},label:{show:!0,formatter:null,precision:`auto`,margin:3,color:H.color.neutral00,padding:[5,7,5,7],backgroundColor:H.color.accent60,borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:`M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z`,size:45,margin:50,color:H.color.accent40,throttle:40}},t}(c_),MR=Ec(),NR=L;function PR(e,t,n){if(!We.node){var r=t.getZr();MR(r).records||(MR(r).records={}),FR(r,t);var i=MR(r).records[e]||(MR(r).records[e]={});i.handler=n}}function FR(e,t){if(MR(e).initialized)return;MR(e).initialized=!0,n(`click`,me(RR,`click`)),n(`mousemove`,me(RR,`mousemove`)),n(`mousewheel`,me(RR,`mousewheel`)),n(`globalout`,LR);function n(n,r){e.on(n,function(n){var i=zR(t);NR(MR(e).records,function(e){e&&r(e,n,i.dispatchAction)}),IR(i.pendings,t)})}}function IR(e,t){var n=e.showTip.length,r=e.hideTip.length,i;n?i=e.showTip[n-1]:r&&(i=e.hideTip[r-1]),i&&(i.dispatchAction=null,t.dispatchAction(i))}function LR(e,t,n){e.handler(`leave`,null,n)}function RR(e,t,n,r){t.handler(e,n,r)}function zR(e){var t={showTip:[],hideTip:[]},n=function(r){var i=t[r.type];i?i.push(r):(r.dispatchAction=n,e.dispatchAction(r))};return{dispatchAction:n,pendings:t}}function BR(e,t){if(!We.node){var n=t.getZr();(MR(n).records||{})[e]&&(MR(n).records[e]=null)}}var VR=function(e){p(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(e,t,n){var r=t.getComponent(`tooltip`),i=e.get(`triggerOn`)||r&&r.get(`triggerOn`)||`mousemove|click|mousewheel`;PR(`axisPointer`,n,function(e,t,n){i!==`none`&&(e===`leave`||i.indexOf(e)>=0)&&n({type:`updateAxisPointer`,currTrigger:e,x:t&&t.offsetX,y:t&&t.offsetY})})},t.prototype.remove=function(e,t){BR(`axisPointer`,t)},t.prototype.dispose=function(e,t){BR(`axisPointer`,t)},t.type=`axisPointer`,t}(zT);function HR(e,t){var n=[],r=e.seriesIndex,i;if(r==null||!(i=t.getSeriesByIndex(r)))return{point:[]};var a=i.getData(),o=Tc(a,e);if(o==null||o<0||z(o))return{point:[]};var s=a.getItemGraphicEl(o),c=i.coordinateSystem;if(i.getTooltipPosition)n=i.getTooltipPosition(o)||[];else if(c&&c.dataToPoint)if(e.isStacked){var l=c.getBaseAxis(),u=c.getOtherAxis(l).dim,d=l.dim,f=+(u===`x`||u===`radius`),p=a.mapDimension(d),m=[];m[f]=a.get(p,o),m[1-f]=a.get(a.getCalculationInfo(`stackResultDimension`),o),n=c.dataToPoint(m)||[]}else n=c.dataToPoint(a.getValues(R(c.dimensions,function(e){return a.mapDimension(e)}),o))||[];else if(s){var h=s.getBoundingRect().clone();h.applyTransform(s.transform),n=[h.x+h.width/2,h.y+h.height/2]}return{point:n,el:s}}var UR=Ec();function WR(e,t,n){var r=e.currTrigger,i=[e.x,e.y],a=e,o=e.dispatchAction||pe(n.dispatchAction,n),s=t.getComponent(`axisPointer`).coordSysAxesInfo;if(s){ez(i)&&(i=HR({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},t).point);var c=ez(i),l=a.axesInfo,u=s.axesInfo,d=r===`leave`||ez(i),f={},p={},m={list:[],map:{}},h={showPointer:me(qR,p),showTooltip:me(JR,m)};L(s.coordSysMap,function(e,t){var n=c||e.containPoint(i);L(s.coordSysAxesInfo[t],function(e,t){var r=e.axis,a=QR(l,e);if(!d&&n&&(!l||a)){var o=a&&a.value;o==null&&!c&&(o=r.pointToData(i)),o!=null&&GR(e,o,h,!1,f)}})});var g={};return L(u,function(e,t){var n=e.linkGroup;n&&!p[t]&&L(n.axesInfo,function(t,r){var i=p[r];if(t!==e&&i){var a=i.value;n.mapper&&(a=e.axis.scale.parse(n.mapper(a,$R(t),$R(e)))),g[e.key]=a}})}),L(g,function(e,t){GR(u[t],e,h,!0,f)}),YR(p,u,f),XR(m,i,e,o),ZR(u,o,n),f}}function GR(e,t,n,r,i){var a=e.axis;if(!(a.scale.isBlank()||!a.containData(t))){if(!e.involveSeries){n.showPointer(e,t);return}var o=KR(t,e),s=o.payloadBatch,c=o.snapToValue;s[0]&&i.seriesIndex==null&&F(i,s[0]),!r&&e.snap&&a.containData(c)&&c!=null&&(t=c),n.showPointer(e,t,s),n.showTooltip(e,o,c)}}function KR(e,t){var n=t.axis,r=n.dim,i=e,a=[],o=Number.MAX_VALUE,s=-1;return L(t.seriesModels,function(t,c){var l=t.getData().mapDimensionsAll(r),u,d;if(t.getAxisTooltipData){var f=t.getAxisTooltipData(l,e,n);d=f.dataIndices,u=f.nestestValue}else{if(d=t.indicesOfNearest(r,l[0],e,n.type===`category`?.5:null),!d.length)return;u=t.getData().get(l[0],d[0])}if(Ys(u)){var p=e-u,m=Math.abs(p);m<=o&&((m=0&&s<0)&&(o=m,s=p,i=u,a.length=0),L(d,function(e){a.push({seriesIndex:t.seriesIndex,dataIndexInside:e,dataIndex:t.getData().getRawIndex(e)})}))}}),{payloadBatch:a,snapToValue:i}}function qR(e,t,n,r){e[t.key]={value:n,payloadBatch:r}}function JR(e,t,n,r){var i=n.payloadBatch,a=t.axis,o=a.model,s=t.axisPointerModel;if(!(!t.triggerTooltip||!i.length)){var c=t.coordSys.model,l=$k(c),u=e.map[l];u||(u=e.map[l]={coordSysId:c.id,coordSysIndex:c.componentIndex,coordSysType:c.type,coordSysMainType:c.mainType,dataByAxis:[]},e.list.push(u)),u.dataByAxis.push({axisDim:a.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:r,valueLabelOpt:{precision:s.get([`label`,`precision`]),formatter:s.get([`label`,`formatter`])},seriesDataIndices:i.slice()})}}function YR(e,t,n){var r=n.axesInfo=[];L(t,function(t,n){var i=t.axisPointerModel.option,a=e[n];a?(!t.useHandle&&(i.status=`show`),i.value=a.value,i.seriesDataIndices=(a.payloadBatch||[]).slice()):!t.useHandle&&(i.status=`hide`),i.status===`show`&&r.push({axisDim:t.axis.dim,axisIndex:t.axis.model.componentIndex,value:i.value})})}function XR(e,t,n,r){if(ez(t)||!e.list.length){r({type:`hideTip`});return}var i=((e.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};r({type:`showTip`,escapeConnect:!0,x:t[0],y:t[1],tooltipOption:n.tooltipOption,position:n.position,dataIndexInside:i.dataIndexInside,dataIndex:i.dataIndex,seriesIndex:i.seriesIndex,dataByCoordSys:e.list})}function ZR(e,t,n){var r=n.getZr(),i=`axisPointerLastHighlights`,a=UR(r)[i]||{},o=UR(r)[i]={};L(e,function(e,t){var n=e.axisPointerModel.option;n.status===`show`&&e.triggerEmphasis&&L(n.seriesDataIndices,function(e){o[e.seriesIndex+`|`+e.dataIndex]=e})});var s=[],c=[];function l(e){return{seriesIndex:e.seriesIndex,dataIndex:e.dataIndex}}L(a,function(e,t){!o[t]&&c.push(l(e))}),L(o,function(e,t){!a[t]&&s.push(l(e))}),c.length&&n.dispatchAction({type:`downplay`,escapeConnect:!0,notBlur:!0,batch:c}),s.length&&n.dispatchAction({type:`highlight`,escapeConnect:!0,notBlur:!0,batch:s})}function QR(e,t){for(var n=0;n<(e||[]).length;n++){var r=e[n];if(t.axis.dim===r.axisDim&&t.axis.model.componentIndex===r.axisIndex)return r}}function $R(e){var t=e.axis.model,n={},r=n.axisDim=e.axis.dim;return n.axisIndex=n[r+`AxisIndex`]=t.componentIndex,n.axisName=n[r+`AxisName`]=t.name,n.axisId=n[r+`AxisId`]=t.id,n}function ez(e){return!e||e[0]==null||isNaN(e[0])||e[1]==null||isNaN(e[1])}function tz(e){tA.registerAxisPointerClass(`CartesianAxisPointer`,DR),e.registerComponentModel(jR),e.registerComponentView(VR),e.registerPreprocessor(function(e){if(e){(!e.axisPointer||e.axisPointer.length===0)&&(e.axisPointer={});var t=e.axisPointer.link;t&&!z(t)&&(e.axisPointer.link=[t])}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,{overallReset:function(e,t){e.getComponent(`axisPointer`).coordSysAxesInfo=Uk(e,t)}}),e.registerAction({type:`updateAxisPointer`,event:`updateAxisPointer`,update:`:updateAxisPointer`},WR)}function nz(e){ok(fA),ok(tz)}function rz(e,t){var n=Bg(t.get(`padding`)),r=t.getItemStyle([`color`,`opacity`]);return r.fill=t.get(`backgroundColor`),new Go({shape:{x:e.x-n[3],y:e.y-n[0],width:e.width+n[1]+n[3],height:e.height+n[0]+n[2],r:t.get(`borderRadius`)},style:r,silent:!0,z2:-1})}var iz=function(e){p(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type=`tooltip`,t.dependencies=[`axisPointer`],t.defaultOption={z:60,show:!0,showContent:!0,trigger:`item`,triggerOn:`mousemove|click|mousewheel`,alwaysShowContent:!1,renderMode:`auto`,confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,displayTransition:!0,enterable:!1,backgroundColor:H.color.neutral00,shadowBlur:10,shadowColor:`rgba(0, 0, 0, .2)`,shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,defaultBorderColor:H.color.border,padding:null,extraCssText:``,axisPointer:{type:`line`,axis:`auto`,animation:`auto`,animationDurationUpdate:200,animationEasingUpdate:`exponentialOut`,crossStyle:{color:H.color.borderShade,width:1,type:`dashed`,textStyle:{}}},textStyle:{color:H.color.tertiary,fontSize:14}},t}(c_);function az(e){var t=e.get(`confine`);return t==null?e.get(`renderMode`)===`richText`:!!t}function oz(e){if(We.domSupported){for(var t=document.documentElement.style,n=0,r=e.length;n-1?(s+=`top:50%`,c+=`translateY(-50%) rotate(`+(l=a===`left`?-225:-45)+`deg)`):(s+=`left:50%`,c+=`translateX(-50%) rotate(`+(l=a===`top`?225:45)+`deg)`);var u=l*Math.PI/180,d=o+i,f=d*Math.abs(Math.cos(u))+d*Math.abs(Math.sin(u)),p=Math.round(((f-Math.SQRT2*i)/2+Math.SQRT2*i-(f-d)/2)*100)/100;s+=`;`+a+`:-`+p+`px`;var m=t+` solid `+i+`px;`;return`
`}function gz(e,t,n){var r=`cubic-bezier(0.23,1,0.32,1)`,i=``,a=``;return n&&(i=` `+e/2+`s `+r,a=`opacity`+i+`,visibility`+i),t||(i=` `+e+`s `+r,a+=(a.length?`,`:``)+(We.transformSupported?``+fz+i:`,left`+i+`,top`+i)),dz+`:`+a}function _z(e,t,n){var r=e.toFixed(0)+`px`,i=t.toFixed(0)+`px`;if(!We.transformSupported)return n?`top:`+i+`;left:`+r+`;`:[[`top`,i],[`left`,r]];var a=We.transform3dSupported,o=`translate`+(a?`3d`:``)+`(`+r+`,`+i+(a?`,0`:``)+`)`;return n?`top:0;left:0;`+fz+`:`+o+`;`:[[`top`,0],[`left`,0],[sz,o]]}function vz(e){var t=[],n=e.get(`fontSize`),r=e.getTextColor();r&&t.push(`color:`+r),t.push(`font:`+e.getFont());var i=we(e.get(`lineHeight`),Math.round(n*3/2));n&&t.push(`line-height:`+i+`px`);var a=e.get(`textShadowColor`),o=e.get(`textShadowBlur`)||0,s=e.get(`textShadowOffsetX`)||0,c=e.get(`textShadowOffsetY`)||0;return a&&o&&t.push(`text-shadow:`+s+`px `+c+`px `+o+`px `+a),L([`decoration`,`align`],function(n){var r=e.get(n);r&&t.push(`text-`+n+`:`+r)}),t.join(`;`)}function yz(e,t,n,r){var i=[],a=e.get(`transitionDuration`),o=e.get(`backgroundColor`),s=e.get(`shadowBlur`),c=e.get(`shadowColor`),l=e.get(`shadowOffsetX`),u=e.get(`shadowOffsetY`),d=e.getModel(`textStyle`),f=av(e,`html`),p=l+`px `+u+`px `+s+`px `+c;return i.push(`box-shadow:`+p),t&&a>0&&i.push(gz(a,n,r)),o&&i.push(`background-color:`+o),L([`width`,`color`,`radius`],function(t){var n=`border-`+t,r=zg(n),a=e.get(r);a!=null&&i.push(n+`:`+a+(t===`color`?``:`px`))}),i.push(vz(d)),f!=null&&i.push(`padding:`+Bg(f).join(`px `)+`px`),i.join(`;`)+`;`}function bz(e,t,n,r,i){var a=t&&t.painter;if(n){var o=a&&a.getViewportRoot();o&&Ah(e,o,n,r,i)}else{e[0]=r,e[1]=i;var s=a&&a.getViewportRootOffset();s&&(e[0]+=s.offsetLeft,e[1]+=s.offsetTop)}e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var xz=function(){function e(e,t){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,We.wxa)return null;var n=document.createElement(`div`);n.domBelongToZr=!0,this.el=n;var r=this._zr=e.getZr(),i=t.appendTo,a=i&&(B(i)?document.querySelector(i):be(i)?i:he(i)&&i(e.getDom()));bz(this._styleCoord,r,a,e.getWidth()/2,e.getHeight()/2),(a||e.getDom()).appendChild(n),this._api=e,this._container=a;var o=this;n.onmouseenter=function(){o._enterable&&(clearTimeout(o._hideTimeout),o._show=!0),o._inContent=!0},n.onmousemove=function(e){if(e||=window.event,!o._enterable){var t=r.handler;AC(r.painter.getViewportRoot(),e,!0),t.dispatch(`mousemove`,e)}},n.onmouseleave=function(){o._inContent=!1,o._enterable&&o._show&&o.hideLater(o._hideDelay)}}return e.prototype.update=function(e){if(!this._container){var t=this._api.getDom(),n=uz(t,`position`),r=t.style;r.position!==`absolute`&&n!==`absolute`&&(r.position=`relative`)}var i=e.get(`alwaysShowContent`);i&&this._moveIfResized(),this._alwaysShowContent=i,this._enableDisplayTransition=e.get(`displayTransition`)&&e.get(`transitionDuration`)>0,this.el.className=e.get(`className`)||``},e.prototype.show=function(e,t){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,r=n.style,i=this._styleCoord;n.innerHTML?r.cssText=pz+yz(e,!this._firstShow,this._longHide,this._enableDisplayTransition)+_z(i[0],i[1],!0)+(`border-color:`+Kg(t)+`;`)+(e.get(`extraCssText`)||``)+(`;pointer-events:`+(this._enterable?`auto`:`none`)):r.display=`none`,this._show=!0,this._firstShow=!1,this._longHide=!1},e.prototype.setContent=function(e,t,n,r,i){var a=this.el;if(e==null){a.innerHTML=``;return}var o=``;if(B(i)&&n.get(`trigger`)===`item`&&!az(n)&&(o=hz(n,r,i)),B(e))a.innerHTML=e+o;else if(e){a.innerHTML=``,z(e)||(e=[e]);for(var s=0;s=0?this._tryShow(n,r):t===`leave`&&this._hide(r))},this))},t.prototype._keepShow=function(){var e=this._tooltipModel,t=this._ecModel,n=this._api,r=e.get(`triggerOn`);if(e.get(`trigger`)!==`axis`&&(this._lastDataByCoordSys=null,this._cbParamsList=null),this._lastX!=null&&this._lastY!=null&&r!==`none`&&r!==`click`){var i=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!n.isDisposed()&&i.manuallyShowTip(e,t,n,{x:i._lastX,y:i._lastY,dataByCoordSys:i._lastDataByCoordSys})})}},t.prototype.manuallyShowTip=function(e,t,n,r){if(!(r.from===this.uid||We.node||!n.getDom())){var i=kz(r,n);this._ticket=``;var a=r.dataByCoordSys,o=Pz(r,t,n);if(o){var s=o.el.getBoundingRect().clone();s.applyTransform(o.el.transform),this._tryShow({offsetX:s.x+s.width/2,offsetY:s.y+s.height/2,target:o.el,position:r.position,positionDefault:`bottom`},i)}else if(r.tooltip&&r.x!=null&&r.y!=null){var c=Ez;c.x=r.x,c.y=r.y,c.update(),el(c).tooltipConfig={name:null,option:r.tooltip},this._tryShow({offsetX:r.x,offsetY:r.y,target:c},i)}else if(a)this._tryShow({offsetX:r.x,offsetY:r.y,position:r.position,dataByCoordSys:a,tooltipOption:r.tooltipOption},i);else if(r.seriesIndex!=null){if(this._manuallyAxisShowTip(e,t,n,r))return;var l=HR(r,t),u=l.point[0],d=l.point[1];u!=null&&d!=null&&this._tryShow({offsetX:u,offsetY:d,target:l.el,position:r.position,positionDefault:`bottom`},i)}else r.x!=null&&r.y!=null&&(n.dispatchAction({type:`updateAxisPointer`,x:r.x,y:r.y}),this._tryShow({offsetX:r.x,offsetY:r.y,position:r.position,target:n.getZr().findHover(r.x,r.y).target},i))}},t.prototype.manuallyHideTip=function(e,t,n,r){var i=this._tooltipContent;this._tooltipModel&&i.hideLater(this._tooltipModel.get(`hideDelay`)),this._lastX=this._lastY=this._lastDataByCoordSys=null,this._cbParamsList=null,r.from!==this.uid&&this._hide(kz(r,n))},t.prototype._manuallyAxisShowTip=function(e,t,n,r){var i=r.seriesIndex,a=r.dataIndex,o=t.getComponent(`axisPointer`).coordSysAxesInfo;if(i!=null&&a!=null&&o!=null){var s=t.getSeriesByIndex(i);if(s&&Oz([s.getData().getItemModel(a),s,(s.coordinateSystem||{}).model],this._tooltipModel).get(`trigger`)===`axis`)return n.dispatchAction({type:`updateAxisPointer`,seriesIndex:i,dataIndex:a,position:r.position}),!0}},t.prototype._tryShow=function(e,t){var n=e.target;if(this._tooltipModel){this._lastX=e.offsetX,this._lastY=e.offsetY;var r=e.dataByCoordSys;if(r&&r.length)this._showAxisTooltip(r,e);else if(n){if(el(n).ssrType===`legend`)return;this._lastDataByCoordSys=null,this._cbParamsList=null;var i,a;wE(n,function(e){if(e.tooltipDisabled)return i=a=null,!0;i||a||(el(e).dataIndex==null?el(e).tooltipConfig!=null&&(a=e):i=e)},!0),i?this._showSeriesItemTooltip(e,i,t):a?this._showComponentItemTooltip(e,a,t):this._hide(t)}else this._lastDataByCoordSys=null,this._cbParamsList=null,this._hide(t)}},t.prototype._showOrMove=function(e,t){var n=e.get(`showDelay`);t=pe(t,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(t,n):t()},t.prototype._showAxisTooltip=function(e,t){var n=this._ecModel,r=this._tooltipModel,i=[t.offsetX,t.offsetY],a=Oz([t.tooltipOption],r),o=this._renderMode,s=[],c=G_(`section`,{blocks:[],noHeader:!0}),l=[],u=new ov;L(e,function(e){L(e.dataByAxis,function(e){var t=n.getComponent(e.axisDim+`Axis`,e.axisIndex),i=e.value,a=t.axis,d=a.scale.parse(i);if(!(!t||i==null)){var f=bR(i,a,n,e.seriesDataIndices,e.valueLabelOpt),p=G_(`section`,{header:f,noHeader:!ke(f),sortBlocks:!0,blocks:[]});c.blocks.push(p),L(e.seriesDataIndices,function(i){var a=n.getSeriesByIndex(i.seriesIndex),c=i.dataIndexInside,m=a.getDataParams(c);if(!(m.dataIndex<0)){m.axisDim=e.axisDim,m.axisIndex=e.axisIndex,m.axisType=e.axisType,m.axisId=e.axisId,m.axisValue=yb(t.axis,{value:d}),m.axisValueLabel=f,m.marker=u.makeTooltipMarker(`item`,Kg(m.color),o);var h=y_(a.formatTooltip(c,!0,null)),g=h.frag;if(g){var _=Oz([a],r).get(`valueFormatter`);p.blocks.push(_?F({valueFormatter:_},g):g)}h.text&&l.push(h.text),s.push(m)}})}})}),c.blocks.reverse(),l.reverse();var d=t.position,f=Z_(c,u,o,a.get(`order`),n.get(`useUTC`),a.get(`textStyle`));f&&l.unshift(f);var p=o===`richText`?` + +`:`
`,m=l.join(p);this._showOrMove(a,function(){this._updateContentNotChangedOnAxis(e,s)?this._updatePosition(a,d,i[0],i[1],this._tooltipContent,s):this._showTooltipContent(a,m,s,Math.random()+``,i[0],i[1],d,null,u)})},t.prototype._showSeriesItemTooltip=function(e,t,n){var r=this._ecModel,i=el(t),a=i.seriesIndex,o=r.getSeriesByIndex(a),s=i.dataModel||o,c=i.dataIndex,l=i.dataType,u=s.getData(l),d=this._renderMode,f=e.positionDefault,p=Oz([u.getItemModel(c),s,o&&(o.coordinateSystem||{}).model],this._tooltipModel,f?{position:f}:null),m=p.get(`trigger`);if(m==null||m===`item`){var h=s.getDataParams(c,l),g=new ov;h.marker=g.makeTooltipMarker(`item`,Kg(h.color),d);var _=y_(s.formatTooltip(c,!1,l)),v=p.get(`order`),y=p.get(`valueFormatter`),b=_.frag,x=b?Z_(y?F({valueFormatter:y},b):b,g,d,v,r.get(`useUTC`),p.get(`textStyle`)):_.text,S=`item_`+s.name+`_`+c;this._showOrMove(p,function(){this._showTooltipContent(p,x,h,S,e.offsetX,e.offsetY,e.position,e.target,g)}),n({type:`showTip`,dataIndexInside:c,dataIndex:u.getRawIndex(c),seriesIndex:a,from:this.uid})}},t.prototype._showComponentItemTooltip=function(e,t,n){var r=this._renderMode===`html`,i=el(t),a=i.tooltipConfig.option||{},o=a.encodeHTMLContent;if(B(a)){var s=a;a={content:s,formatter:s},o=!0}o&&r&&a.content&&(a=N(a),a.content=Rh(a.content));var c=[a],l=this._ecModel.getComponent(i.componentMainType,i.componentIndex);l&&c.push(l),c.push({formatter:a.content});var u=e.positionDefault,d=Oz(c,this._tooltipModel,u?{position:u}:null),f=d.get(`content`),p=Math.random()+``,m=new ov;this._showOrMove(d,function(){var n=N(d.get(`formatterParams`)||{});this._showTooltipContent(d,f,n,p,e.offsetX,e.offsetY,e.position,t,m)}),n({type:`showTip`,from:this.uid})},t.prototype._showTooltipContent=function(e,t,n,r,i,a,o,s,c){if(this._ticket=``,!(!e.get(`showContent`)||!e.get(`show`))){var l=this._tooltipContent;l.setEnterable(e.get(`enterable`));var u=e.get(`formatter`);o||=e.get(`position`);var d=t,f=this._getNearestPoint([i,a],n,e.get(`trigger`),e.get(`borderColor`),e.get(`defaultBorderColor`,!0)).color;if(u)if(B(u)){var p=e.ecModel.get(`useUTC`),m=z(n)?n[0]:n,h=m&&m.axisType&&m.axisType.indexOf(`time`)>=0;d=u,h&&(d=bg(m.axisValue,d,p)),d=Wg(d,n,!0)}else if(he(u)){var g=pe(function(t,r){t===this._ticket&&(l.setContent(r,c,e,f,o),this._updatePosition(e,o,i,a,l,n,s))},this);this._ticket=r,d=u(n,r,g)}else d=u;l.setContent(d,c,e,f,o),l.show(e,f),this._updatePosition(e,o,i,a,l,n,s)}},t.prototype._getNearestPoint=function(e,t,n,r,i){if(n===`axis`||z(t))return{color:r||i};if(!z(t))return{color:r||t.color||t.borderColor}},t.prototype._updatePosition=function(e,t,n,r,i,a,o){var s=this._api.getWidth(),c=this._api.getHeight();t||=e.get(`position`);var l=i.getSize(),u=e.get(`align`),d=e.get(`verticalAlign`),f=o&&o.getBoundingRect().clone();if(o&&f.applyTransform(o.transform),he(t)&&(t=t([n,r],a,i.el,f,{viewSize:[s,c],contentSize:l.slice()})),z(t))n=Ts(t[0],s),r=Ts(t[1],c);else if(V(t)){var p=t;p.width=l[0],p.height=l[1];var m=$g(p,{width:s,height:c});n=m.x,r=m.y,u=null,d=null}else if(B(t)&&o){var h=Mz(t,f,l,e.get(`borderWidth`));n=h[0],r=h[1]}else{var h=Az(n,r,i,s,c,u?null:20,d?null:20);n=h[0],r=h[1]}if(u&&(n-=Nz(u)?l[0]/2:u===`right`?l[0]:0),d&&(r-=Nz(d)?l[1]/2:d===`bottom`?l[1]:0),az(e)){var h=jz(n,r,i,s,c);n=h[0],r=h[1]}i.moveTo(n,r)},t.prototype._updateContentNotChangedOnAxis=function(e,t){var n=this._lastDataByCoordSys,r=this._cbParamsList,i=!!n&&n.length===e.length;return i&&L(n,function(n,a){var o=n.dataByAxis||[],s=(e[a]||{}).dataByAxis||[];i&&=o.length===s.length,i&&L(o,function(e,n){var a=s[n]||{},o=e.seriesDataIndices||[],c=a.seriesDataIndices||[];i=i&&e.value===a.value&&e.axisType===a.axisType&&e.axisId===a.axisId&&o.length===c.length,i&&L(o,function(e,t){var n=c[t];i=i&&e.seriesIndex===n.seriesIndex&&e.dataIndex===n.dataIndex}),r&&L(e.seriesDataIndices,function(e){var n=e.seriesIndex,a=t[n],o=r[n];a&&o&&o.data!==a.data&&(i=!1)})})}),this._lastDataByCoordSys=e,this._cbParamsList=t,!!i},t.prototype._hide=function(e){this._lastDataByCoordSys=null,this._cbParamsList=null,e({type:`hideTip`,from:this.uid})},t.prototype.dispose=function(e,t){We.node||!t.getDom()||(yC(this,`_updatePosition`),this._tooltipContent.dispose(),BR(`itemTooltip`,t),this._tooltipContent=null,this._tooltipModel=null,this._lastDataByCoordSys=null,this._cbParamsList=null)},t.type=`tooltip`,t}(zT);function Oz(e,t,n){var r=t.ecModel,i;n?(i=new yp(n,r,r),i=new yp(t.option,i,r)):i=t;for(var a=e.length-1;a>=0;a--){var o=e[a];o&&(o instanceof yp&&(o=o.get(`tooltip`,!0)),B(o)&&(o={formatter:o}),o&&(i=new yp(o,i,r)))}return i}function kz(e,t){return e.dispatchAction||pe(t.dispatchAction,t)}function Az(e,t,n,r,i,a,o){var s=n.getSize(),c=s[0],l=s[1];return a!=null&&(e+c+a+2>r?e-=c+a:e+=a),o!=null&&(t+l+o>i?t-=l+o:t+=o),[e,t]}function jz(e,t,n,r,i){var a=n.getSize(),o=a[0],s=a[1];return e=Math.min(e+o,r)-o,t=Math.min(t+s,i)-s,e=Math.max(e,0),t=Math.max(t,0),[e,t]}function Mz(e,t,n,r){var i=n[0],a=n[1],o=Math.ceil(Math.SQRT2*r)+8,s=0,c=0,l=t.width,u=t.height;switch(e){case`inside`:s=t.x+l/2-i/2,c=t.y+u/2-a/2;break;case`top`:s=t.x+l/2-i/2,c=t.y-a-o;break;case`bottom`:s=t.x+l/2-i/2,c=t.y+u+o;break;case`left`:s=t.x-i-o,c=t.y+u/2-a/2;break;case`right`:s=t.x+l+o,c=t.y+u/2-a/2}return[s,c]}function Nz(e){return e===`center`||e===`middle`}function Pz(e,t,n){var r=kc(e).queryOptionMap,i=r.keys()[0];if(!(!i||i===`series`)){var a=jc(t,i,r.get(i),{useDefault:!1,enableAll:!1,enableNone:!1}).models[0];if(a){var o=n.getViewOfComponentModel(a),s;if(o.group.traverse(function(t){var n=el(t).tooltipConfig;if(n&&n.name===e.name)return s=t,!0}),s)return{componentMainType:i,componentIndex:a.componentIndex,el:s}}}}function Fz(e){ok(tz),e.registerComponentModel(iz),e.registerComponentView(Dz),e.registerAction({type:`showTip`,event:`showTip`,update:`tooltip:manuallyShowTip`},Ve),e.registerAction({type:`hideTip`,event:`hideTip`,update:`tooltip:manuallyHideTip`},Ve)}var Iz=L;function Lz(e){if(e){for(var t in e)if(e.hasOwnProperty(t))return!0}}function Rz(e,t,n){var r={};return Iz(t,function(t){var a=r[t]=i();Iz(e[t],function(e,r){if(gA.isValidType(r)){var i={type:r,visual:e};n&&n(i,t),a[r]=new gA(i),r===`opacity`&&(i=N(i),i.type=`colorAlpha`,a.__hidden.__alphaForOpacity=new gA(i))}})}),r;function i(){var e=function(){};return e.prototype.__hidden=e.prototype,new e}}function zz(e,t,n){var r;L(n,function(e){t.hasOwnProperty(e)&&Lz(t[e])&&(r=!0)}),r&&L(n,function(n){t.hasOwnProperty(n)&&Lz(t[n])?e[n]=N(t[n]):delete e[n]})}function Bz(e,t,n,r){var i={};return L(e,function(e){i[e]=gA.prepareVisualTypes(t[e])}),{progress:function(e,a){var o;r!=null&&(o=a.getDimensionIndex(r));function s(e){return xE(a,l,e)}function c(e,t){CE(a,l,e,t)}for(var l,u=a.getStore();(l=e.next())!=null;){var d=a.getRawDataItem(l);if(!(d&&d.visualMap===!1))for(var f=r==null?l:u.get(o,l),p=n(f),m=t[p],h=i[p],g=0,_=h.length;g<_;g++){var v=h[g];m[v]&&m[v].applyVisual(f,s,c)}}}}}var Vz=function(e,t){if(t===`all`)return{type:`all`,title:e.getLocaleModel().get([`legend`,`selector`,`all`])};if(t===`inverse`)return{type:`inverse`,title:e.getLocaleModel().get([`legend`,`selector`,`inverse`])}},Hz=function(e){p(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.layoutMode={type:`box`,ignoreSize:!0},n}return t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n),e.selected=e.selected||{},this._updateSelector(e)},t.prototype.mergeOption=function(t,n){e.prototype.mergeOption.call(this,t,n),this._updateSelector(t)},t.prototype._updateSelector=function(e){var t=e.selector,n=this.ecModel;t===!0&&(t=e.selector=[`all`,`inverse`]),z(t)&&L(t,function(e,r){B(e)&&(e={type:e}),t[r]=P(e,Vz(n,e.type))})},t.prototype.optionUpdated=function(){this._updateData(this.ecModel);var e=this._data;if(e[0]&&this.get(`selectedMode`)===`single`){for(var t=!1,n=0;n=0},t.prototype.getOrient=function(){return this.get(`orient`)===`vertical`?{index:1,name:`vertical`}:{index:0,name:`horizontal`}},t.type=`legend.plain`,t.dependencies=[`series`],t.defaultOption={z:4,show:!0,orient:`horizontal`,left:`center`,bottom:H.size.m,align:`auto`,backgroundColor:H.color.transparent,borderColor:H.color.border,borderRadius:0,borderWidth:0,padding:5,itemGap:8,itemWidth:25,itemHeight:14,symbolRotate:`inherit`,symbolKeepAspect:!0,inactiveColor:H.color.disabled,inactiveBorderColor:H.color.disabled,inactiveBorderWidth:`auto`,itemStyle:{color:`inherit`,opacity:`inherit`,borderColor:`inherit`,borderWidth:`auto`,borderCap:`inherit`,borderJoin:`inherit`,borderDashOffset:`inherit`,borderMiterLimit:`inherit`},lineStyle:{width:`auto`,color:`inherit`,inactiveColor:H.color.disabled,inactiveWidth:2,opacity:`inherit`,type:`inherit`,cap:`inherit`,join:`inherit`,dashOffset:`inherit`,miterLimit:`inherit`},textStyle:{color:H.color.secondary},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:`sans-serif`,color:H.color.tertiary,borderWidth:1,borderColor:H.color.border},emphasis:{selectorLabel:{show:!0,color:H.color.quaternary}},selectorPosition:`auto`,selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1},triggerEvent:!1},t}(c_),Uz=me,Wz=L,Gz=Hu,Kz=function(e){p(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.newlineDisabled=!1,n}return t.prototype.init=function(){this.group.add(this._contentGroup=new Gz),this.group.add(this._selectorGroup=new Gz),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(e,t,n){var r=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),e.get(`show`,!0)){var i=e.get(`align`),a=e.get(`orient`);(!i||i===`auto`)&&(i=e.get(`left`)===`right`&&a===`vertical`?`right`:`left`);var o=e.get(`selector`,!0),s=e.get(`selectorPosition`,!0);o&&(!s||s===`auto`)&&(s=a===`horizontal`?`end`:`start`),this.renderInner(i,e,t,n,o,a,s);var c=t_(e,n).refContainer,l=e.getBoxLayoutParams(),u=e.get(`padding`),d=$g(l,c,u),f=this.layoutInner(e,i,d,r,o,s),p=$g(I({width:f.width,height:f.height},l),c,u);this.group.x=p.x-f.x,this.group.y=p.y-f.y,this.group.markRedraw(),this.group.add(this._backgroundEl=rz(f,e))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(e,t,n,r,i,a,o){var s=this.getContentGroup(),c=Le(),l=t.get(`selectedMode`),u=t.get(`triggerEvent`),d=[];n.eachRawSeries(function(e){!e.get(`legendHoverLink`)&&d.push(e.id)}),Wz(t.getData(),function(i,a){var o=this,f=i.get(`name`);if(!this.newlineDisabled&&(f===``||f===` +`)){var p=new Gz;p.newline=!0,s.add(p);return}var m=n.getSeriesByName(f)[0];if(!c.get(f))if(m){var h=m.getData(),g=h.getVisual(`legendLineStyle`)||{},_=h.getVisual(`legendIcon`),v=h.getVisual(`style`),y=this._createItem(m,f,a,i,t,e,g,v,_,l,r);y.on(`click`,Uz(Yz,f,null,r,d)).on(`mouseover`,Uz(Xz,m.name,null,r,d)).on(`mouseout`,Uz(Zz,m.name,null,r,d)),n.ssr&&y.eachChild(function(e){var t=el(e);t.seriesIndex=m.seriesIndex,t.dataIndex=a,t.ssrType=`legend`}),u&&y.eachChild(function(e){o.packEventData(e,t,m,a,f)}),c.set(f,!0)}else n.eachRawSeries(function(o){var s=this;if(!c.get(f)&&o.legendVisualProvider){var p=o.legendVisualProvider;if(!p.containName(f))return;var m=p.indexOfName(f),h=p.getItemVisual(m,`style`),g=p.getItemVisual(m,`legendIcon`),_=Kr(h.fill);_&&_[3]===0&&(_[3]=.2,h=F(F({},h),{fill:ei(_,`rgba`)}));var v=this._createItem(o,f,a,i,t,e,{},h,g,l,r);v.on(`click`,Uz(Yz,null,f,r,d)).on(`mouseover`,Uz(Xz,null,f,r,d)).on(`mouseout`,Uz(Zz,null,f,r,d)),n.ssr&&v.eachChild(function(e){var t=el(e);t.seriesIndex=o.seriesIndex,t.dataIndex=a,t.ssrType=`legend`}),u&&v.eachChild(function(e){s.packEventData(e,t,o,a,f)}),c.set(f,!0)}},this)},this),i&&this._createSelector(i,t,r,a,o)},t.prototype.packEventData=function(e,t,n,r,i){var a={componentType:`legend`,componentIndex:t.componentIndex,dataIndex:r,value:i,seriesIndex:n.seriesIndex};el(e).eventData=a},t.prototype._createSelector=function(e,t,n,r,i){var a=this.getSelectorGroup();Wz(e,function(e){var r=e.type,i=new Xo({style:{x:0,y:0,align:`center`,verticalAlign:`middle`},onclick:function(){n.dispatchAction({type:r===`all`?`legendAllSelect`:`legendInverseSelect`,legendId:t.id})}});a.add(i),Xf(i,{normal:t.getModel(`selectorLabel`),emphasis:t.getModel([`emphasis`,`selectorLabel`])},{defaultText:e.title}),su(i)})},t.prototype._createItem=function(e,t,n,r,i,a,o,s,c,l,u){var d=e.visualDrawType,f=i.get(`itemWidth`),p=i.get(`itemHeight`),m=i.isSelected(t),h=r.get(`symbolRotate`),g=r.get(`symbolKeepAspect`),_=r.get(`icon`);c=_||c||`roundRect`;var v=qz(c,r,o,s,d,m,u),y=new Gz,b=r.getModel(`textStyle`);if(he(e.getLegendIcon)&&(!_||_===`inherit`))y.add(e.getLegendIcon({itemWidth:f,itemHeight:p,icon:c,iconRotate:h,itemStyle:v.itemStyle,lineStyle:v.lineStyle,symbolKeepAspect:g}));else{var x=_===`inherit`&&e.getData().getVisual(`symbol`)?h===`inherit`?e.getData().getVisual(`symbolRotate`):h:0;y.add(Jz({itemWidth:f,itemHeight:p,icon:c,iconRotate:x,itemStyle:v.itemStyle,lineStyle:v.lineStyle,symbolKeepAspect:g}))}var S=a===`left`?f+5:-5,C=a,w=i.get(`formatter`),T=t;B(w)&&w?T=w.replace(`{name}`,t??``):he(w)&&(T=w(t));var E=m?b.getTextColor():r.get(`inactiveColor`);y.add(new Xo({style:Qf(b,{text:T,x:S,y:p/2,fill:E,align:C,verticalAlign:`middle`},{inheritColor:E})}));var D=new Go({shape:y.getBoundingRect(),style:{fill:`transparent`}}),O=r.getModel(`tooltip`);return O.get(`show`)&&Mf({el:D,componentModel:i,itemName:t,itemTooltipOption:O.option}),y.add(D),y.eachChild(function(e){e.silent=!0}),D.silent=!l,this.getContentGroup().add(y),su(y),y.__legendDataIndex=n,y},t.prototype.layoutInner=function(e,t,n,r,i,a){var o=this.getContentGroup(),s=this.getSelectorGroup();Zg(e.get(`orient`),o,e.get(`itemGap`),n.width,n.height);var c=o.getBoundingRect(),l=[-c.x,-c.y];if(s.markRedraw(),o.markRedraw(),i){Zg(`horizontal`,s,e.get(`selectorItemGap`,!0));var u=s.getBoundingRect(),d=[-u.x,-u.y],f=e.get(`selectorButtonGap`,!0),p=e.getOrient().index,m=p===0?`width`:`height`,h=p===0?`height`:`width`,g=p===0?`y`:`x`;a===`end`?d[p]+=c[m]+f:l[p]+=u[m]+f,d[1-p]+=c[h]/2-u[h]/2,s.x=d[0],s.y=d[1],o.x=l[0],o.y=l[1];var _={x:0,y:0};return _[m]=c[m]+f+u[m],_[h]=Math.max(c[h],u[h]),_[g]=Math.min(0,u[g]+d[1-p]),_}return o.x=l[0],o.y=l[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type=`legend.plain`,t}(zT);function qz(e,t,n,r,i,a,o){function s(e,t){e.lineWidth===`auto`&&(e.lineWidth=t.lineWidth>0?2:0),Wz(e,function(n,r){e[r]===`inherit`&&(e[r]=t[r])})}var c=t.getModel(`itemStyle`),l=c.getItemStyle(),u=e.lastIndexOf(`empty`,0)===0?`fill`:`stroke`,d=c.getShallow(`decal`);l.decal=!d||d===`inherit`?r.decal:bD(d,o),l.fill===`inherit`&&(l.fill=r[i]),l.stroke===`inherit`&&(l.stroke=r[u]),l.opacity===`inherit`&&(l.opacity=(i===`fill`?r:n).opacity),s(l,r);var f=t.getModel(`lineStyle`),p=f.getLineStyle();if(s(p,n),l.fill===`auto`&&(l.fill=r.fill),l.stroke===`auto`&&(l.stroke=r.fill),p.stroke===`auto`&&(p.stroke=r.fill),!a){var m=t.get(`inactiveBorderWidth`),h=l[u];l.lineWidth=m===`auto`?r.lineWidth>0&&h?2:0:l.lineWidth,l.fill=t.get(`inactiveColor`),l.stroke=t.get(`inactiveBorderColor`),p.stroke=f.get(`inactiveColor`),p.lineWidth=f.get(`inactiveWidth`)}return{itemStyle:l,lineStyle:p}}function Jz(e){var t=e.icon||`roundRect`,n=Ev(t,0,0,e.itemWidth,e.itemHeight,e.itemStyle.fill,e.symbolKeepAspect);return n.setStyle(e.itemStyle),n.rotation=(e.iconRotate||0)*Math.PI/180,n.setOrigin([e.itemWidth/2,e.itemHeight/2]),t.indexOf(`empty`)>-1&&(n.style.stroke=n.style.fill,n.style.fill=H.color.neutral00,n.style.lineWidth=2),n}function Yz(e,t,n,r){Zz(e,t,n,r),n.dispatchAction({type:`legendToggleSelect`,name:e??t}),Xz(e,t,n,r)}function Xz(e,t,n,r){n.usingTHL()||n.dispatchAction({type:`highlight`,seriesName:e,name:t,excludeSeriesId:r})}function Zz(e,t,n,r){n.usingTHL()||n.dispatchAction({type:`downplay`,seriesName:e,name:t,excludeSeriesId:r})}function Qz(e,t,n){var r=e===`allSelect`||e===`inverseSelect`,i={},a=[];n.eachComponent({mainType:`legend`,query:t},function(n){r?n[e]():n[e](t.name),$z(n,i),a.push(n.componentIndex)});var o={};return n.eachComponent(`legend`,function(e){L(i,function(t,n){e[t?`select`:`unSelect`](n)}),$z(e,o)}),r?{selected:o,legendIndex:a}:{name:t.name,selected:o}}function $z(e,t){var n=t||{};return L(e.getData(),function(t){var r=t.get(`name`);if(r!==` +`&&r!==``){var i=e.isSelected(r);n[r]=Be(n,r)?n[r]&&i:i}}),n}function eB(e){e.registerAction(`legendToggleSelect`,`legendselectchanged`,me(Qz,`toggleSelected`)),e.registerAction(`legendAllSelect`,`legendselectall`,me(Qz,`allSelect`)),e.registerAction(`legendInverseSelect`,`legendinverseselect`,me(Qz,`inverseSelect`)),e.registerAction(`legendSelect`,`legendselected`,me(Qz,`select`)),e.registerAction(`legendUnSelect`,`legendunselected`,me(Qz,`unSelect`))}var tB=$c(nB);function nB(e){var t=e.findComponents({mainType:`legend`});t&&t.length&&e.filterSeries(function(e){for(var n=0;nn[i],m=[-d.x,-d.y];t||(m[r]=c[s]);var h=[0,0],g=[-f.x,-f.y],_=we(e.get(`pageButtonGap`,!0),e.get(`itemGap`,!0));p&&(e.get(`pageButtonPosition`,!0)===`end`?g[r]+=n[i]-f[i]:h[r]+=f[i]+_),g[1-r]+=d[a]/2-f[a]/2,c.setPosition(m),l.setPosition(h),u.setPosition(g);var v={x:0,y:0};if(v[i]=p?n[i]:d[i],v[a]=Math.max(d[a],f[a]),v[o]=Math.min(0,f[o]+g[1-r]),l.__rectSize=n[i],p){var y={x:0,y:0};y[i]=Math.max(n[i]-f[i]-_,0),y[a]=v[a],l.setClipPath(new Go({shape:y})),l.__rectSize=y[i]}else u.eachChild(function(e){e.attr({invisible:!0,silent:!0})});var b=this._getPageInfo(e);return b.pageIndex!=null&&Gd(c,{x:b.contentPosition[0],y:b.contentPosition[1]},p?e:null),this._updatePageInfoView(e,b),v},t.prototype._pageGo=function(e,t,n){var r=this._getPageInfo(t)[e];r!=null&&n.dispatchAction({type:`legendScroll`,scrollDataIndex:r,legendId:t.id})},t.prototype._updatePageInfoView=function(e,t){var n=this._controllerGroup;L([`pagePrev`,`pageNext`],function(r){var i=t[r+`DataIndex`]!=null,a=n.childOfName(r);a&&(a.setStyle(`fill`,i?e.get(`pageIconColor`,!0):e.get(`pageIconInactiveColor`,!0)),a.cursor=i?`pointer`:`default`)});var r=n.childOfName(`pageText`),i=e.get(`pageFormatter`),a=t.pageIndex,o=a==null?0:a+1,s=t.pageCount;r&&i&&r.setStyle(`text`,B(i)?i.replace(`{current}`,o==null?``:o+``).replace(`{total}`,s==null?``:s+``):i({current:o,total:s}))},t.prototype._getPageInfo=function(e){var t=e.get(`scrollDataIndex`,!0),n=this.getContentGroup(),r=this._containerGroup.__rectSize,i=e.getOrient().index,a=sB[i],o=cB[i],s=this._findTargetItemIndex(t),c=n.children(),l=c[s],u=c.length,d=+!!u,f={contentPosition:[n.x,n.y],pageCount:d,pageIndex:d-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!l)return f;var p=v(l);f.contentPosition[i]=-p.s;for(var m=s+1,h=p,g=p,_=null;m<=u;++m)_=v(c[m]),(!_&&g.e>h.s+r||_&&!y(_,h.s))&&(h=g.i>h.i?g:_,h&&(f.pageNextDataIndex??=h.i,++f.pageCount)),g=_;for(var m=s-1,h=p,g=p,_=null;m>=-1;--m)_=v(c[m]),(!_||!y(g,_.s))&&h.i=t&&e.s<=t+r}},t.prototype._findTargetItemIndex=function(e){if(!this._showController)return 0;var t,n=this.getContentGroup(),r;return n.eachChild(function(n,i){var a=n.__legendDataIndex;r==null&&a!=null&&(r=i),a===e&&(t=i)}),t??r},t.type=`legend.scroll`,t}(Kz);function uB(e){e.registerAction(`legendScroll`,`legendscroll`,function(e,t){var n=e.scrollDataIndex;n!=null&&t.eachComponent({mainType:`legend`,subType:`scroll`,query:e},function(e){e.setScrollDataIndex(n)})})}function dB(e){ok(rB),e.registerComponentModel(iB),e.registerComponentView(lB),uB(e)}function fB(e){ok(rB),ok(dB)}var pB={get:function(e,t,n){var r=N((mB[e]||{})[t]);return n&&z(r)?r[r.length-1]:r}},mB={color:{active:[`#006edd`,`#e0ffff`],inactive:[H.color.transparent]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:[`circle`,`roundRect`,`diamond`],inactive:[`none`]},symbolSize:{active:[10,50],inactive:[0,0]}},hB=gA.mapVisual,gB=gA.eachVisual,_B=z,vB=L,yB=As,bB=ws,xB=function(e){p(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.stateList=[`inRange`,`outOfRange`],n.replacableOptionKeys=[`inRange`,`outOfRange`,`target`,`controller`,`color`],n.layoutMode={type:`box`,ignoreSize:!0},n.dataBound=[-1/0,1/0],n.targetVisuals={},n.controllerVisuals={},n}return t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n)},t.prototype.optionUpdated=function(e,t){var n=this.option;!t&&zz(n,e,this.replacableOptionKeys),this.textStyleModel=this.getModel(`textStyle`),this.resetItemSize(),this.completeVisualOption()},t.prototype.resetVisual=function(e){var t=this.stateList;e=pe(e,this),this.controllerVisuals=Rz(this.option.controller,t,e),this.targetVisuals=Rz(this.option.target,t,e)},t.prototype.getItemSymbol=function(){return null},t.prototype.getTargetSeriesIndices=function(){var e=this,t=this.option.seriesTargets;if(t){var n=[];return vB(t,function(t){if(t.seriesIndex!=null)n.push(t.seriesIndex);else if(t.seriesId!=null){var r;e.ecModel.eachSeries(function(e){e.id===t.seriesId&&(r=e)}),r&&n.push(r.componentIndex)}}),n}var r=this.option.seriesId,i=this.option.seriesIndex;i==null&&r==null&&(i=`all`);var a=jc(this.ecModel,`series`,{index:i,id:r},{useDefault:!1,enableAll:!0,enableNone:!1}).models;return R(a,function(e){return e.componentIndex})},t.prototype.eachTargetSeries=function(e,t){L(this.getTargetSeriesIndices(),function(n){var r=this.ecModel.getSeriesByIndex(n);r&&e.call(t,r)},this)},t.prototype.isTargetSeries=function(e){var t=!1;return this.eachTargetSeries(function(n){n===e&&(t=!0)}),t},t.prototype.formatValueText=function(e,t,n){var r=this.option,i=r.precision,a=this.dataBound,o=r.formatter,s;n||=[`<`,`>`],z(e)&&(e=e.slice(),s=!0);var c=t?e:s?[l(e[0]),l(e[1])]:l(e);if(B(o))return o.replace(`{value}`,s?c[0]:c).replace(`{value2}`,s?c[1]:c);if(he(o))return s?o(e[0],e[1]):o(e);if(s)return e[0]===a[0]?n[0]+` `+c[1]:e[1]===a[1]?n[1]+` `+c[0]:c[0]+` - `+c[1];return c;function l(e){return e===a[0]?`min`:e===a[1]?`max`:(+e).toFixed(Math.min(i,20))}},t.prototype.resetExtent=function(){var e=this.option,t=yB([e.min,e.max]);this._dataExtent=t},t.prototype.getDimension=function(e){var t=this,n=this.option.seriesTargets;if(n){var r=ue(n,function(n){return n.seriesIndex!=null&&n.seriesIndex===e||n.seriesId!=null&&n.seriesId===t.ecModel.getSeriesByIndex(e).id});if(r)return r.dimension}return this.option.dimension},t.prototype.getDataDimensionIndex=function(e){var t=e.hostModel.seriesIndex,n=this.getDimension(t);if(n!=null)return e.getDimensionIndex(n);for(var r=e.dimensions,i=r.length-1;i>=0;i--){var a=r[i],o=e.getDimensionInfo(a);if(!o.isCalculationCoord)return o.storeDimIndex}},t.prototype.getExtent=function(){return this._dataExtent.slice()},t.prototype.completeVisualOption=function(){var e=this.ecModel,t=this.option,n={inRange:t.inRange,outOfRange:t.outOfRange},r=t.target||={},i=t.controller||={};P(r,n),P(i,n);var a=this.isCategory();o.call(this,r),o.call(this,i),s.call(this,r,`inRange`,`outOfRange`),c.call(this,i);function o(n){_B(t.color)&&!n.inRange&&(n.inRange={color:t.color.slice().reverse()}),n.inRange=n.inRange||{color:e.get(`gradientColor`)}}function s(e,t,n){var r=e[t],i=e[n];r&&!i&&(i=e[n]={},vB(r,function(e,t){if(gA.isValidType(t)){var n=pB.get(t,`inactive`,a);n!=null&&(i[t]=n,t===`color`&&!i.hasOwnProperty(`opacity`)&&!i.hasOwnProperty(`colorAlpha`)&&(i.opacity=[0,0]))}}))}function c(e){var t=(e.inRange||{}).symbol||(e.outOfRange||{}).symbol,n=(e.inRange||{}).symbolSize||(e.outOfRange||{}).symbolSize,r=this.get(`inactiveColor`),i=this.getItemSymbol()||`roundRect`;vB(this.stateList,function(o){var s=this.itemSize,c=e[o];c||=e[o]={color:a?r:[r]},c.symbol??(c.symbol=t&&N(t)||(a?i:[i])),c.symbolSize??(c.symbolSize=n&&N(n)||(a?s[0]:[s[0],s[0]])),c.symbol=hB(c.symbol,function(e){return e===`none`?i:e});var l=c.symbolSize;if(l!=null){var u=-1/0;gB(l,function(e){e>u&&(u=e)}),c.symbolSize=hB(l,function(e){return bB(e,[0,u],[0,s[0]],!0)})}},this)}},t.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get(`itemWidth`)),parseFloat(this.get(`itemHeight`))]},t.prototype.isCategory=function(){return!!this.option.categories},t.prototype.setSelected=function(e){},t.prototype.getSelected=function(){return null},t.prototype.getValueState=function(e){return null},t.prototype.getVisualMeta=function(e){return null},t.type=`visualMap`,t.dependencies=[`series`],t.defaultOption={show:!0,z:4,min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:`vertical`,backgroundColor:H.color.transparent,borderColor:H.color.borderTint,contentColor:H.color.theme[0],inactiveColor:H.color.disabled,borderWidth:0,padding:H.size.m,textGap:10,precision:0,textStyle:{color:H.color.secondary}},t}(c_),SB=[20,140],CB=function(e){p(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.optionUpdated=function(t,n){e.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(e){e.mappingMethod=`linear`,e.dataExtent=this.getExtent()}),this._resetRange()},t.prototype.resetItemSize=function(){e.prototype.resetItemSize.apply(this,arguments);var t=this.itemSize;(t[0]==null||isNaN(t[0]))&&(t[0]=SB[0]),(t[1]==null||isNaN(t[1]))&&(t[1]=SB[1])},t.prototype._resetRange=function(){var e=this.getExtent(),t=this.option.range;!t||t.auto?(e.auto=1,this.option.range=e):z(t)&&(t[0]>t[1]&&t.reverse(),t[0]=Math.max(t[0],e[0]),t[1]=Math.min(t[1],e[1]))},t.prototype.completeVisualOption=function(){e.prototype.completeVisualOption.apply(this,arguments),L(this.stateList,function(e){var t=this.option.controller[e].symbolSize;t&&t[0]!==t[1]&&(t[0]=t[1]/3)},this)},t.prototype.setSelected=function(e){this.option.range=e.slice(),this._resetRange()},t.prototype.getSelected=function(){var e=this.getExtent(),t=As((this.get(`range`)||[]).slice());return t[0]>e[1]&&(t[0]=e[1]),t[1]>e[1]&&(t[1]=e[1]),t[0]=n[1]||e<=t[1])?`inRange`:`outOfRange`},t.prototype.findTargetDataIndices=function(e){var t=[];return this.eachTargetSeries(function(n){var r=[],i=n.getData();i.each(this.getDataDimensionIndex(i),function(t,n){e[0]<=t&&t<=e[1]&&r.push(n)},this),t.push({seriesId:n.id,dataIndex:r})},this),t},t.prototype.getVisualMeta=function(e){var t=wB(this,`outOfRange`,this.getExtent()),n=wB(this,`inRange`,this.option.range.slice()),r=[];function i(t,n){r.push({value:t,color:e(t,n)})}for(var a=0,o=0,s=n.length,c=t.length;oe[1])break;r.push({color:this.getControllerVisual(o,`color`,t),offset:a/n})}return r.push({color:this.getControllerVisual(e[1],`color`,t),offset:1}),r},t.prototype._createBarPoints=function(e,t){var n=this.visualMapModel.itemSize;return[[n[0]-t[0],e[0]],[n[0],e[0]],[n[0],e[1]],[n[0]-t[1],e[1]]]},t.prototype._createBarGroup=function(e){var t=this._orient,n=this.visualMapModel.get(`inverse`);return new Hu(t===`horizontal`&&!n?{scaleX:e===`bottom`?1:-1,rotation:Math.PI/2}:t===`horizontal`&&n?{scaleX:e===`bottom`?-1:1,rotation:-Math.PI/2}:t===`vertical`&&!n?{scaleX:e===`left`?1:-1,scaleY:-1}:{scaleX:e===`left`?1:-1})},t.prototype._updateHandle=function(e,t){if(this._useHandle){var n=this._shapes,r=this.visualMapModel,i=n.handleThumbs,a=n.handleLabels,o=r.itemSize,s=r.getExtent(),c=this._applyTransform(`left`,n.mainGroup);AB([0,1],function(l){var u=i[l];u.setStyle(`fill`,t.handlesColor[l]),u.y=e[l];var d=kB(e[l],[0,o[1]],s,!0),f=this.getControllerVisual(d,`symbolSize`);u.scaleX=u.scaleY=f/o[0],u.x=o[0]-f/2;var p=_f(n.handleLabelPoints[l],gf(u,this.group));if(this._orient===`horizontal`){var m=c===`left`||c===`top`?(o[0]-f)/2:(o[0]-f)/-2;p[1]+=m}a[l].setStyle({x:p[0],y:p[1],text:r.formatValueText(this._dataInterval[l]),verticalAlign:`middle`,align:this._orient===`vertical`?this._applyTransform(`left`,n.mainGroup):`center`})},this)}},t.prototype._showIndicator=function(e,t,n,r){var i=this.visualMapModel,a=i.getExtent(),o=i.itemSize,s=[0,o[1]],c=this._shapes,l=c.indicator;if(l){l.attr(`invisible`,!1);var u=this.getControllerVisual(e,`color`,{convertOpacityToAlpha:!0}),d=this.getControllerVisual(e,`symbolSize`),f=kB(e,a,s,!0),p=o[0]-d/2,m={x:l.x,y:l.y};l.y=f,l.x=p;var h=_f(c.indicatorLabelPoint,gf(l,this.group)),g=c.indicatorLabel;g.attr(`invisible`,!1);var _=this._applyTransform(`left`,c.mainGroup),v=this._orient===`horizontal`;g.setStyle({text:(n||``)+i.formatValueText(t),verticalAlign:v?_:`middle`,align:v?`center`:_});var y={x:p,y:f,style:{fill:u}},b={style:{x:h[0],y:h[1]}};if(i.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var x={duration:100,easing:`cubicInOut`,additive:!0};l.x=m.x,l.y=m.y,l.animateTo(y,x),g.animateTo(b,x)}else l.attr(y),g.attr(b);this._firstShowIndicator=!1;var S=this._shapes.handleLabels;if(S)for(var C=0;Ci[1]&&(l[1]=1/0),t&&(l[0]===-1/0?this._showIndicator(c,l[1],`< `,o):l[1]===1/0?this._showIndicator(c,l[0],`> `,o):this._showIndicator(c,c,`≈ `,o));var u=this._hoverLinkDataIndices,d=[];(t||RB(n))&&(d=this._hoverLinkDataIndices=n.findTargetDataIndices(l));var f=wc(u,d);this._dispatchHighDown(`downplay`,OB(f[0],n)),this._dispatchHighDown(`highlight`,OB(f[1],n))}},t.prototype._hoverLinkFromSeriesMouseOver=function(e){var t;if(wE(e.target,function(e){var n=el(e);if(n.dataIndex!=null)return t=n,!0},!0),t){var n=this.ecModel.getSeriesByIndex(t.seriesIndex),r=this.visualMapModel;if(r.isTargetSeries(n)){var i=n.getData(t.dataType),a=i.getStore().get(r.getDataDimensionIndex(i),t.dataIndex);isNaN(a)||this._showIndicator(a,a)}}},t.prototype._hideIndicator=function(){var e=this._shapes;e.indicator&&e.indicator.attr(`invisible`,!0),e.indicatorLabel&&e.indicatorLabel.attr(`invisible`,!0);var t=this._shapes.handleLabels;if(t)for(var n=0;n=0&&(i.dimension=a,r.push(i))}}),e.getData().setVisual(`visualMeta`,r)}}];function UB(e,t,n,r){for(var i=t.targetVisuals[r],a=gA.prepareVisualTypes(i),o={color:SE(e.getData(),`color`)},s=0,c=a.length;s0:e.splitNumber>0)||e.calculable)?`continuous`:`piecewise`}),e.registerAction(BB,VB),L(HB,function(t){e.registerVisual(e.PRIORITY.VISUAL.COMPONENT,t)}),e.registerPreprocessor(GB))}function YB(e){e.registerComponentModel(CB),e.registerComponentView(FB),JB(e)}var XB=function(e){p(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n._pieceList=[],n}return t.prototype.optionUpdated=function(t,n){e.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var r=this._mode=this._determineMode();this._pieceList=[],ZB[this._mode].call(this,this._pieceList),this._resetSelected(t,n);var i=this.option.categories;this.resetVisual(function(e,t){r===`categories`?(e.mappingMethod=`category`,e.categories=N(i)):(e.dataExtent=this.getExtent(),e.mappingMethod=`piecewise`,e.pieceList=R(this._pieceList,function(e){return e=N(e),t!==`inRange`&&(e.visual=null),e}))})},t.prototype.completeVisualOption=function(){var t=this.option,n={},r=gA.listVisualTypes(),i=this.isCategory();L(t.pieces,function(e){L(r,function(t){e.hasOwnProperty(t)&&(n[t]=1)})}),L(n,function(e,n){var r=!1;L(this.stateList,function(e){r=r||a(t,e,n)||a(t.target,e,n)},this),!r&&L(this.stateList,function(e){(t[e]||(t[e]={}))[n]=pB.get(n,e===`inRange`?`active`:`inactive`,i)})},this);function a(e,t,n){return e&&e[t]&&e[t].hasOwnProperty(n)}e.prototype.completeVisualOption.apply(this,arguments)},t.prototype._resetSelected=function(e,t){var n=this.option,r=this._pieceList,i=(t?n:e).selected||{};if(n.selected=i,L(r,function(e,t){var n=this.getSelectedMapKey(e);i.hasOwnProperty(n)||(i[n]=!0)},this),n.selectedMode===`single`){var a=!1;L(r,function(e,t){var n=this.getSelectedMapKey(e);i[n]&&(a?i[n]=!1:a=!0)},this)}},t.prototype.getItemSymbol=function(){return this.get(`itemSymbol`)},t.prototype.getSelectedMapKey=function(e){return this._mode===`categories`?e.value+``:e.index+``},t.prototype.getPieceList=function(){return this._pieceList},t.prototype._determineMode=function(){var e=this.option;return e.pieces&&e.pieces.length>0?`pieces`:this.option.categories?`categories`:`splitNumber`},t.prototype.setSelected=function(e){this.option.selected=N(e)},t.prototype.getValueState=function(e){var t=gA.findPieceIndex(e,this._pieceList);return t==null?`outOfRange`:this.option.selected[this.getSelectedMapKey(this._pieceList[t])]?`inRange`:`outOfRange`},t.prototype.findTargetDataIndices=function(e){var t=[],n=this._pieceList;return this.eachTargetSeries(function(r){var i=[],a=r.getData();a.each(this.getDataDimensionIndex(a),function(t,r){gA.findPieceIndex(t,n)===e&&i.push(r)},this),t.push({seriesId:r.id,dataIndex:i})},this),t},t.prototype.getRepresentValue=function(e){var t;if(this.isCategory())t=e.value;else if(e.value!=null)t=e.value;else{var n=e.interval||[];t=n[0]===-1/0&&n[1]===1/0?0:(n[0]+n[1])/2}return t},t.prototype.getVisualMeta=function(e){if(this.isCategory())return;var t=[],n=[``,``],r=this;function i(i,a){var o=r.getRepresentValue({interval:i});a||=r.getValueState(o);var s=e(o,a);i[0]===-1/0?n[0]=s:i[1]===1/0?n[1]=s:t.push({value:i[0],color:s},{value:i[1],color:s})}var a=this._pieceList.slice();if(!a.length)a.push({interval:[-1/0,1/0]});else{var o=a[0].interval[0];o!==-1/0&&a.unshift({interval:[-1/0,o]}),o=a[a.length-1].interval[1],o!==1/0&&a.push({interval:[o,1/0]})}var s=-1/0;return L(a,function(e){var t=e.interval;t&&(t[0]>s&&i([s,t[0]],`outOfRange`),i(t.slice()),s=t[1])},this),{stops:t,outerColors:n}},t.type=`visualMap.piecewise`,t.defaultOption=wh(xB.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:`auto`,itemWidth:20,itemHeight:14,itemSymbol:`roundRect`,pieces:null,categories:null,splitNumber:5,selectedMode:`multiple`,itemGap:10,hoverLink:!0}),t}(xB),ZB={splitNumber:function(e){var t=this.option,n=Math.min(t.precision,20),r=this.getExtent(),i=t.splitNumber;i=Math.max(parseInt(i,10),1),t.splitNumber=i;for(var a=(r[1]-r[0])/i;+a.toFixed(n)!==a&&n<5;)n++;t.precision=n,a=+a.toFixed(n),t.minOpen&&e.push({interval:[-1/0,r[0]],close:[0,0]});for(var o=0,s=r[0];o`,`≥`][t[0]]];e.text=e.text||this.formatValueText(e.value==null?e.interval:e.value,!1,n)},this)}};function QB(e,t){var n=e.inverse;(e.orient===`vertical`?!n:n)&&t.reverse()}var $B=function(e){p(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.doRender=function(){var e=this.group;e.removeAll();var t=this.visualMapModel,n=t.get(`textGap`),r=t.textStyleModel,i=this._getItemAlign(),a=t.itemSize,o=this._getViewData(),s=o.endsText,c=Ce(t.get(`showLabel`,!0),!s),l=!t.get(`selectedMode`);s&&this._renderEndsText(e,s[0],a,c,i),L(o.viewPieceList,function(o){var s=o.piece,u=new Hu;u.onclick=pe(this._onItemClick,this,s),this._enableHoverLink(u,o.indexInModelPieceList);var d=t.getRepresentValue(s);if(this._createItemSymbol(u,d,[0,0,a[0],a[1]],l),c){var f=this.visualMapModel.getValueState(d),p=r.get(`align`)||i;u.add(new Xo({style:Qf(r,{x:p===`right`?-n:a[0]+n,y:a[1]/2,text:s.text,verticalAlign:r.get(`verticalAlign`)||`middle`,align:p,opacity:we(r.get(`opacity`),f===`outOfRange`?.5:1)}),silent:l}))}e.add(u)},this),s&&this._renderEndsText(e,s[1],a,c,i),Zg(t.get(`orient`),e,t.get(`itemGap`)),this.renderBackground(e),this.positionGroup(e)},t.prototype._enableHoverLink=function(e,t){var n=this;e.on(`mouseover`,function(){return r(`highlight`)}).on(`mouseout`,function(){return r(`downplay`)});var r=function(e){var r=n.visualMapModel;r.option.hoverLink&&n.api.dispatchAction({type:e,batch:OB(r.findTargetDataIndices(t),r)})}},t.prototype._getItemAlign=function(){var e=this.visualMapModel,t=e.option;if(t.orient===`vertical`)return DB(e,this.api,e.itemSize);var n=t.align;return(!n||n===`auto`)&&(n=`left`),n},t.prototype._renderEndsText=function(e,t,n,r,i){if(t){var a=new Hu,o=this.visualMapModel.textStyleModel;a.add(new Xo({style:Qf(o,{x:r?i===`right`?n[0]:0:n[0]/2,y:n[1]/2,verticalAlign:`middle`,align:r?i:`center`,text:t})})),e.add(a)}},t.prototype._getViewData=function(){var e=this.visualMapModel,t=R(e.getPieceList(),function(e,t){return{piece:e,indexInModelPieceList:t}}),n=e.get(`text`),r=e.get(`orient`),i=e.get(`inverse`);return(r===`horizontal`?i:!i)?t.reverse():n&&=n.slice().reverse(),{viewPieceList:t,endsText:n}},t.prototype._createItemSymbol=function(e,t,n,r){var i=Ev(this.getControllerVisual(t,`symbol`),n[0],n[1],n[2],n[3],this.getControllerVisual(t,`color`));i.silent=r,e.add(i)},t.prototype._onItemClick=function(e){var t=this.visualMapModel,n=t.option,r=n.selectedMode;if(r){var i=N(n.selected),a=t.getSelectedMapKey(e);r===`single`||r===!0?(i[a]=!0,L(i,function(e,t){i[t]=t===a})):i[a]=!i[a],this.api.dispatchAction({type:`selectDataRange`,from:this.uid,visualMapId:this.visualMapModel.id,selected:i})}},t.type=`visualMap.piecewise`,t}(TB);function eV(e){e.registerComponentModel(XB),e.registerComponentView($B),JB(e)}function tV(e){ok(YB),ok(eV)}var nV={label:{enabled:!0},decal:{show:!1}},rV=Ec(),iV=Ec(),aV=$c(oV);function oV(e,t){var n=e.getModel(`aria`);if(!n.get(`enabled`))return;var r=iV(e).scope||(iV(e).scope={}),i=N(nV);P(i.label,e.getLocaleModel().get(`aria`),!1),P(n.option,i,!1),a(),o();function a(){if(n.getModel(`decal`).get(`show`)){var t=Le();e.eachSeries(function(e){e.isColorBySeries()||(rV(e).scope=t.get(e.type)||t.set(e.type,{}))}),e.eachSeries(function(t){if(he(t.enableAriaDecal)){t.enableAriaDecal();return}var n=t.getData();if(t.isColorBySeries()){var i=p_(t.ecModel,t.name,r,e.getSeriesCount()),a=n.getVisual(`decal`);n.setVisual(`decal`,u(a,i))}else{var o=t.getRawData(),s={},c=rV(t).scope;n.each(function(e){var t=n.getRawIndex(e);s[t]=e});var l=o.count();o.each(function(e){var r=s[e],i=o.getName(e)||e+``,a=p_(t.ecModel,i,c,l),d=n.getItemVisual(r,`decal`);n.setItemVisual(r,`decal`,u(d,a))})}function u(e,t){var n=e?F(F({},t),e):t;return n.dirty=!0,n}})}}function o(){var r=t.getZr().dom;if(r){var i=e.getLocaleModel().get(`aria`),a=n.getModel(`label`);if(a.option=I(a.option,i),a.get(`enabled`)){if(r.setAttribute(`role`,`img`),a.get(`description`)){r.setAttribute(`aria-label`,a.get(`description`));return}var o=e.getSeriesCount(),u=a.get([`data`,`maxCount`])||10,d=a.get([`series`,`maxCount`])||10,f=Math.min(o,d),p;if(!(o<1)){var m=c();p=m?s(a.get([`general`,`withTitle`]),{title:m}):a.get([`general`,`withoutTitle`]);var h=[],g=o>1?a.get([`series`,`multiple`,`prefix`]):a.get([`series`,`single`,`prefix`]);p+=s(g,{seriesCount:o}),e.eachSeries(function(e,t){if(t1?a.get([`series`,`multiple`,r]):a.get([`series`,`single`,r]),n=s(n,{seriesId:e.seriesIndex,seriesName:e.get(`name`),seriesType:l(e.subType)});var i=e.getData();if(i.count()>u){var c=a.get([`data`,`partialData`]);n+=s(c,{displayCnt:u})}else n+=a.get([`data`,`allData`]);for(var d=a.get([`data`,`separator`,`middle`]),p=a.get([`data`,`separator`,`end`]),m=a.get([`data`,`excludeDimensionId`]),g=[],_=0;_=fV:-c>=fV),f=c>0?c%fV:c%fV+fV,p=!1;p=d?!0:!si(u)&&f>=dV==!!l;var m=e+n*uV(a),h=t+r*lV(a);this._start&&this._add(`M`,m,h);var g=Math.round(i*pV);if(d){var _=1/this._p,v=(l?1:-1)*(fV-_);this._add(`A`,n,r,g,1,+l,e+n*uV(a+v),t+r*lV(a+v)),_>.01&&this._add(`A`,n,r,g,0,+l,m,h)}else{var y=e+n*uV(o),b=t+r*lV(o);this._add(`A`,n,r,g,+p,+l,y,b)}},e.prototype.rect=function(e,t,n,r){this._add(`M`,e,t),this._add(`l`,n,0),this._add(`l`,0,r),this._add(`l`,-n,0),this._add(`Z`)},e.prototype.closePath=function(){this._d.length>0&&this._add(`Z`)},e.prototype._add=function(e,t,n,r,i,a,o,s,c){for(var l=[],u=this._p,d=1;d`}function AV(e){return``}function jV(e,t){t||={};var n=t.newline?` +`:``;function r(e){var t=e.children,i=e.tag,a=e.attrs,o=e.text;return kV(i,a)+(i===`style`?o||``:Rh(o))+(t?``+n+R(t,function(e){return r(e)}).join(n)+n:``)+AV(i)}return r(e)}function MV(e,t,n){n||={};var r=n.newline?` +`:``,i=` {`+r,a=r+`}`,o=R(de(e),function(t){return t+i+R(de(e[t]),function(n){return n+`:`+e[t][n]+`;`}).join(r)+a}).join(r),s=R(de(t),function(e){return`@keyframes `+e+i+R(de(t[e]),function(n){return n+i+R(de(t[e][n]),function(r){var i=t[e][n][r];return r===`d`&&(i=`path("`+i+`")`),r+`:`+i+`;`}).join(r)+a}).join(r)+a}).join(r);return!o&&!s?``:[``].join(r)}function NV(e){return{zrId:e,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function PV(e,t,n,r){return OV(`svg`,`root`,{width:e,height:t,xmlns:SV,"xmlns:xlink":CV,version:`1.1`,baseProfile:`full`,viewBox:r?`0 0 `+e+` `+t:!1},n)}var FV=0;function IV(){return FV++}var LV={cubicIn:`0.32,0,0.67,0`,cubicOut:`0.33,1,0.68,1`,cubicInOut:`0.65,0,0.35,1`,quadraticIn:`0.11,0,0.5,0`,quadraticOut:`0.5,1,0.89,1`,quadraticInOut:`0.45,0,0.55,1`,quarticIn:`0.5,0,0.75,0`,quarticOut:`0.25,1,0.5,1`,quarticInOut:`0.76,0,0.24,1`,quinticIn:`0.64,0,0.78,0`,quinticOut:`0.22,1,0.36,1`,quinticInOut:`0.83,0,0.17,1`,sinusoidalIn:`0.12,0,0.39,0`,sinusoidalOut:`0.61,1,0.88,1`,sinusoidalInOut:`0.37,0,0.63,1`,exponentialIn:`0.7,0,0.84,0`,exponentialOut:`0.16,1,0.3,1`,exponentialInOut:`0.87,0,0.13,1`,circularIn:`0.55,0,1,0.45`,circularOut:`0,0.55,0.45,1`,circularInOut:`0.85,0,0.15,1`},RV=`transform-origin`;function zV(e,t,n){var r=F({},e.shape);F(r,t),e.buildPath(n,r);var i=new mV;return i.reset(Si(e)),n.rebuildPath(i,1),i.generateStr(),i.getStr()}function BV(e,t){var n=t.originX,r=t.originY;(n||r)&&(e[RV]=n+`px `+r+`px`)}var VV={fill:`fill`,opacity:`opacity`,lineWidth:`stroke-width`,lineDashOffset:`stroke-dashoffset`};function HV(e,t){var n=t.zrId+`-ani-`+t.cssAnimIdx++;return t.cssAnims[n]=e,n}function UV(e,t,n){var r=e.shape.paths,i={},a,o;if(L(r,function(e){var t=NV(n.zrId);t.animation=!0,GV(e,{},t,!0);var r=t.cssAnims,s=t.cssNodes,c=de(r),l=c.length;if(l){o=c[l-1];var u=r[o];for(var d in u){var f=u[d];i[d]=i[d]||{d:``},i[d].d+=f.d||``}for(var p in s){var m=s[p].animation;m.indexOf(o)>=0&&(a=m)}}}),a){t.d=!1;var s=HV(i,n);return a.replace(o,s)}}function WV(e){return B(e)?LV[e]?`cubic-bezier(`+LV[e]+`)`:jr(e)?e:``:``}function GV(e,t,n,r){var i=e.animators,a=i.length,o=[];if(e instanceof Dd){var s=UV(e,t,n);if(s)o.push(s);else if(!a)return}else if(!a)return;for(var c={},l=0;l0}).length)return HV(l,n)+` `+i[0]+` both`}for(var g in c){var s=h(c[g]);s&&o.push(s)}if(o.length){var _=n.zrId+`-cls-`+IV();n.cssNodes[`.`+_]={animation:o.join(`,`)},t.class=_}}function KV(e,t,n){if(!e.ignore)if(e.isSilent()){var r={"pointer-events":`none`};qV(r,t,n,!0)}else{var i=e.states.emphasis&&e.states.emphasis.style?e.states.emphasis.style:{},a=i.fill;if(!a){var o=e.style&&e.style.fill,s=e.states.select&&e.states.select.style&&e.states.select.style.fill,c=e.currentStates.indexOf(`select`)>=0&&s||o;c&&(a=ri(c))}var l=i.lineWidth;if(l){var u=!i.strokeNoScale&&e.transform?e.transform[0]:1;l/=u}var r={cursor:`pointer`};a&&(r.fill=a),i.stroke&&(r.stroke=i.stroke),l&&(r[`stroke-width`]=l),qV(r,t,n,!0)}}function qV(e,t,n,r){var i=JSON.stringify(e),a=n.cssStyleCache[i];a||(a=n.zrId+`-cls-`+IV(),n.cssStyleCache[i]=a,n.cssNodes[`.`+a+(r?`:hover`:``)]=e),t.class=t.class?t.class+` `+a:a}var JV=Math.round;function YV(e){return e&&B(e.src)}function XV(e){return e&&he(e.toDataURL)}function ZV(e,t,n,r){xV(function(i,a){var o=i===`fill`||i===`stroke`;o&&bi(a)?fH(t,e,i,r):o&&_i(a)?pH(n,e,i,r):e[i]=a,o&&r.ssr&&a===`none`&&(e[`pointer-events`]=`visible`)},t,n,!1),dH(n,e,r)}function QV(e,t){var n=Bw(t);n&&(n.each(function(t,n){t!=null&&(e[(`ecmeta_`+n).toLowerCase()]=t+``)}),t.isSilent()&&(e[EV+`silent`]=`true`))}function $V(e){return si(e[0]-1)&&si(e[1])&&si(e[2])&&si(e[3]-1)}function eH(e){return si(e[4])&&si(e[5])}function tH(e,t,n){if(t&&!(eH(t)&&$V(t))){var r=n?10:1e4;e.transform=$V(t)?`translate(`+JV(t[4]*r)/r+` `+JV(t[5]*r)/r+`)`:ui(t)}}function nH(e,t,n){for(var r=e.points,i=[],a=0;a`u`){var g=`Image width/height must been given explictly in svg-ssr renderer.`;Oe(f,g),Oe(p,g)}else if(f==null||p==null){var _=function(e,t){if(e){var n=e.elm,r=f||t.width,i=p||t.height;e.tag===`pattern`&&(l?(i=1,r/=a.width):u&&(r=1,i/=a.height)),e.attrs.width=r,e.attrs.height=i,n&&(n.setAttribute(`width`,r),n.setAttribute(`height`,i))}},v=mt(m,null,e,function(e){c||_(S,e),_(d,e)});v&&v.width&&v.height&&(f||=v.width,p||=v.height)}d=OV(`image`,`img`,{href:m,width:f,height:p}),o.width=f,o.height=p}else i.svgElement&&(d=N(i.svgElement),o.width=i.svgWidth,o.height=i.svgHeight);if(d){var y,b;c?y=b=1:l?(b=1,y=o.width/a.width):u?(y=1,b=o.height/a.height):o.patternUnits=`userSpaceOnUse`,y!=null&&!isNaN(y)&&(o.width=y),b!=null&&!isNaN(b)&&(o.height=b);var x=Ci(i);x&&(o.patternTransform=x);var S=OV(`pattern`,``,o,[d]),C=jV(S),w=r.patternCache,T=w[C];T||(T=r.zrId+`-p`+r.patternIdx++,w[C]=T,o.id=T,S=r.defs[T]=OV(`pattern`,T,o,[d])),t[n]=xi(T)}}function mH(e,t,n){var r=n.clipPathCache,i=n.defs,a=r[e.id];if(!a){a=n.zrId+`-c`+n.clipPathIdx++;var o={id:a};r[e.id]=a,i[a]=OV(`clipPath`,a,o,[sH(e,n)])}t[`clip-path`]=xi(a)}function hH(e){return document.createTextNode(e)}function gH(e,t,n){e.insertBefore(t,n)}function _H(e,t){e.removeChild(t)}function vH(e,t){e.appendChild(t)}function yH(e){return e.parentNode}function bH(e){return e.nextSibling}function xH(e,t){e.textContent=t}var SH=58,CH=120,wH=OV(``,``);function TH(e){return e===void 0}function EH(e){return e!==void 0}function DH(e,t,n){for(var r={},i=t;i<=n;++i){var a=e[i].key;a!==void 0&&(r[a]=i)}return r}function OH(e,t){var n=e.key===t.key;return e.tag===t.tag&&n}function kH(e){var t,n=e.children,r=e.tag;if(EH(r)){var i=e.elm=DV(r);if(MH(wH,e),z(n))for(t=0;ta?(m=n[c+1]==null?null:n[c+1].elm,AH(e,m,n,i,c)):jH(e,t,r,a))}function PH(e,t){var n=t.elm=e.elm,r=e.children,i=t.children;e!==t&&(MH(e,t),TH(t.text)?EH(r)&&EH(i)?r!==i&&NH(n,r,i):EH(i)?(EH(e.text)&&xH(n,``),AH(n,null,i,0,i.length-1)):EH(r)?jH(n,r,0,r.length-1):EH(e.text)&&xH(n,``):e.text!==t.text&&(EH(r)&&jH(n,r,0,r.length-1),xH(n,t.text)))}function FH(e,t){if(OH(e,t))PH(e,t);else{var n=e.elm,r=yH(n);kH(t),r!==null&&(gH(r,t.elm,bH(n)),jH(r,[e],0,0))}return t}var IH=0,LH=function(){function e(e,t,n){if(this.type=`svg`,this.configLayer=RH(`configLayer`),this.storage=t,this._opts=n=F({},n),this.root=e,this._id=`zr`+IH++,this._oldVNode=PV(n.width,n.height),e&&!n.ssr){var r=this._viewport=document.createElement(`div`);r.style.cssText=`position:relative;overflow:hidden`;var i=this._svgDom=this._oldVNode.elm=DV(`svg`);MH(null,this._oldVNode),r.appendChild(i),e.appendChild(r)}this.resize(n.width,n.height)}return e.prototype.getType=function(){return this.type},e.prototype.getViewportRoot=function(){return this._viewport},e.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},e.prototype.getSvgDom=function(){return this._svgDom},e.prototype.refresh=function(){if(this.root){var e=this.renderToVNode({willUpdate:!0});e.attrs.style=`position:absolute;left:0;top:0;user-select:none`,FH(this._oldVNode,e),this._oldVNode=e}},e.prototype.renderOneToVNode=function(e){return uH(e,NV(this._id))},e.prototype.renderToVNode=function(e){e||={};var t=this.storage.getDisplayList(!0),n=this._width,r=this._height,i=NV(this._id);i.animation=e.animation,i.willUpdate=e.willUpdate,i.compress=e.compress,i.emphasis=e.emphasis,i.ssr=this._opts.ssr;var a=[],o=this._bgVNode=zH(n,r,this._backgroundColor,i);o&&a.push(o);var s=e.compress?null:this._mainVNode=OV(`g`,`main`,{},[]);this._paintList(t,i,s?s.children:a),s&&a.push(s);var c=R(de(i.defs),function(e){return i.defs[e]});if(c.length&&a.push(OV(`defs`,`defs`,{},c)),e.animation){var l=MV(i.cssNodes,i.cssAnims,{newline:!0});if(l){var u=OV(`style`,`stl`,{},[],l);a.push(u)}}return PV(n,r,a,e.useViewBox)},e.prototype.renderToString=function(e){return e||={},jV(this.renderToVNode({animation:we(e.cssAnimation,!0),emphasis:we(e.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:we(e.useViewBox,!0)}),{newline:!0})},e.prototype.setBackgroundColor=function(e){this._backgroundColor=e},e.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},e.prototype._paintList=function(e,t,n){for(var r=e.length,i=[],a=0,o,s,c=0,l=0;l=0&&!(d&&s&&d[m]===s[m]);m--);for(var h=p-1;h>m;h--)a--,o=i[a-1];for(var g=m+1;g{if(!i.current)return;let t=BO(i.current,void 0,{renderer:`svg`});t.setOption({animationDuration:280,aria:{enabled:!0,decal:{show:!0},description:n},...e}),r&&t.on(`click`,r);let a=new ResizeObserver(()=>t.resize());return a.observe(i.current),()=>{a.disconnect(),t.dispose()}},[n,r,e]),(0,K.jsx)(`div`,{ref:i,className:`echart`,style:{height:t},role:`img`,"aria-label":n})}var HH=new Intl.NumberFormat(void 0,{maximumFractionDigits:0});function UH(e){return`${(e*100).toFixed(e>=.1?1:2)}%`}function WH(e){return e>=1e3?`${(e/1e3).toFixed(2)}s`:`${e.toFixed(e>=100?0:1)}ms`}function GH(e){let[t,n]=e.split(`/`),r=new Date(t),i=new Date(n);if(Number.isNaN(r.valueOf())||Number.isNaN(i.valueOf()))return e;let a=Math.round((i.valueOf()-r.valueOf())/6e4);return a>=60&&a%60==0?`Last ${a/60}h`:`Last ${Math.max(a,1)}m`}function q(e,t,n){function r(n,r){if(n._zod||Object.defineProperty(n,"_zod",{value:{def:r,constr:o,traits:new Set},enumerable:!1}),n._zod.traits.has(e))return;n._zod.traits.add(e),t(n,r);let i=o.prototype,a=Object.keys(i);for(let e=0;en?.Parent&&t instanceof n.Parent?!0:t?._zod?.traits?.has(e)}),Object.defineProperty(o,"name",{value:e}),o}function KH(e){return e&&Object.assign(QH,e),QH}var qH,JH,YH,XH,ZH,QH,$H=o((()=>{JH=Object.freeze({status:`aborted`}),YH=Symbol(`zod_brand`),XH=class extends Error{constructor(){super(`Encountered Promise during synchronous parse. Use .parseAsync() instead.`)}},ZH=class extends Error{constructor(e){super(`Encountered unidirectional transform during encode: ${e}`),this.name=`ZodEncodeError`}},(qH=globalThis).__zod_globalConfig??(qH.__zod_globalConfig={}),QH=globalThis.__zod_globalConfig})),eU=c({BIGINT_FORMAT_RANGES:()=>sW,Class:()=>cW,NUMBER_FORMAT_RANGES:()=>oW,aborted:()=>RU,allowsEval:()=>nW,assert:()=>aU,assertEqual:()=>tU,assertIs:()=>rU,assertNever:()=>iU,assertNotEqual:()=>nU,assignProp:()=>mU,base64ToUint8Array:()=>JU,base64urlToUint8Array:()=>XU,cached:()=>cU,captureStackTrace:()=>tW,cleanEnum:()=>qU,cleanRegex:()=>uU,clone:()=>DU,cloneDef:()=>gU,createTransparentProxy:()=>OU,defineLazy:()=>fU,esc:()=>bU,escapeRegex:()=>EU,explicitlyAborted:()=>zU,extend:()=>NU,finalizeIssue:()=>HU,floatSafeRemainder:()=>dU,getElementAtPath:()=>_U,getEnumValues:()=>oU,getLengthableOrigin:()=>WU,getParsedType:()=>rW,getSizableOrigin:()=>UU,hexToUint8Array:()=>QU,isObject:()=>SU,isPlainObject:()=>CU,issue:()=>KU,joinValues:()=>J,jsonStringifyReplacer:()=>sU,merge:()=>FU,mergeDefs:()=>hU,normalizeParams:()=>Y,nullish:()=>lU,numKeys:()=>TU,objectClone:()=>pU,omit:()=>MU,optionalKeys:()=>AU,parsedType:()=>GU,partial:()=>IU,pick:()=>jU,prefixIssues:()=>BU,primitiveTypes:()=>aW,promiseAllObject:()=>vU,propertyKeyTypes:()=>iW,randomString:()=>yU,required:()=>LU,safeExtend:()=>PU,shallowClone:()=>wU,slugify:()=>xU,stringifyPrimitive:()=>kU,uint8ArrayToBase64:()=>YU,uint8ArrayToBase64url:()=>ZU,uint8ArrayToHex:()=>$U,unwrapMessage:()=>VU});function tU(e){return e}function nU(e){return e}function rU(e){}function iU(e){throw Error(`Unexpected value in exhaustive check`)}function aU(e){}function oU(e){let t=Object.values(e).filter(e=>typeof e==`number`);return Object.entries(e).filter(([e,n])=>t.indexOf(+e)===-1).map(([e,t])=>t)}function J(e,t=`|`){return e.map(e=>kU(e)).join(t)}function sU(e,t){return typeof t==`bigint`?t.toString():t}function cU(e){return{get value(){{let t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function lU(e){return e==null}function uU(e){let t=+!!e.startsWith(`^`),n=e.endsWith(`$`)?e.length-1:e.length;return e.slice(t,n)}function dU(e,t){let n=e/t,r=Math.round(n),i=2**-52*Math.max(Math.abs(n),1);return Math.abs(n-r)e?.[t],e):e}function vU(e){let t=Object.keys(e),n=t.map(t=>e[t]);return Promise.all(n).then(e=>{let n={};for(let r=0;rt};if(t?.message!==void 0){if(t?.error!==void 0)throw Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error==`string`?{...t,error:()=>t.error}:t}function OU(e){let t;return new Proxy({},{get(n,r,i){return t??=e(),Reflect.get(t,r,i)},set(n,r,i,a){return t??=e(),Reflect.set(t,r,i,a)},has(n,r){return t??=e(),Reflect.has(t,r)},deleteProperty(n,r){return t??=e(),Reflect.deleteProperty(t,r)},ownKeys(n){return t??=e(),Reflect.ownKeys(t)},getOwnPropertyDescriptor(n,r){return t??=e(),Reflect.getOwnPropertyDescriptor(t,r)},defineProperty(n,r,i){return t??=e(),Reflect.defineProperty(t,r,i)}})}function kU(e){return typeof e==`bigint`?e.toString()+`n`:typeof e==`string`?`"${e}"`:`${e}`}function AU(e){return Object.keys(e).filter(t=>e[t]._zod.optin===`optional`&&e[t]._zod.optout===`optional`)}function jU(e,t){let n=e._zod.def,r=n.checks;if(r&&r.length>0)throw Error(`.pick() cannot be used on object schemas containing refinements`);return DU(e,hU(e._zod.def,{get shape(){let e={};for(let r in t){if(!(r in n.shape))throw Error(`Unrecognized key: "${r}"`);t[r]&&(e[r]=n.shape[r])}return mU(this,`shape`,e),e},checks:[]}))}function MU(e,t){let n=e._zod.def,r=n.checks;if(r&&r.length>0)throw Error(`.omit() cannot be used on object schemas containing refinements`);return DU(e,hU(e._zod.def,{get shape(){let r={...e._zod.def.shape};for(let e in t){if(!(e in n.shape))throw Error(`Unrecognized key: "${e}"`);t[e]&&delete r[e]}return mU(this,`shape`,r),r},checks:[]}))}function NU(e,t){if(!CU(t))throw Error(`Invalid input to extend: expected a plain object`);let n=e._zod.def.checks;if(n&&n.length>0){let n=e._zod.def.shape;for(let e in t)if(Object.getOwnPropertyDescriptor(n,e)!==void 0)throw Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}return DU(e,hU(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t};return mU(this,`shape`,n),n}}))}function PU(e,t){if(!CU(t))throw Error(`Invalid input to safeExtend: expected a plain object`);return DU(e,hU(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t};return mU(this,`shape`,n),n}}))}function FU(e,t){if(e._zod.def.checks?.length)throw Error(`.merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.`);return DU(e,hU(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t._zod.def.shape};return mU(this,`shape`,n),n},get catchall(){return t._zod.def.catchall},checks:t._zod.def.checks??[]}))}function IU(e,t,n){let r=t._zod.def.checks;if(r&&r.length>0)throw Error(`.partial() cannot be used on object schemas containing refinements`);return DU(t,hU(t._zod.def,{get shape(){let r=t._zod.def.shape,i={...r};if(n)for(let t in n){if(!(t in r))throw Error(`Unrecognized key: "${t}"`);n[t]&&(i[t]=e?new e({type:`optional`,innerType:r[t]}):r[t])}else for(let t in r)i[t]=e?new e({type:`optional`,innerType:r[t]}):r[t];return mU(this,`shape`,i),i},checks:[]}))}function LU(e,t,n){return DU(t,hU(t._zod.def,{get shape(){let r=t._zod.def.shape,i={...r};if(n)for(let t in n){if(!(t in i))throw Error(`Unrecognized key: "${t}"`);n[t]&&(i[t]=new e({type:`nonoptional`,innerType:r[t]}))}else for(let t in r)i[t]=new e({type:`nonoptional`,innerType:r[t]});return mU(this,`shape`,i),i}}))}function RU(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n{var n;return(n=t).path??(n.path=[]),t.path.unshift(e),t})}function VU(e){return typeof e==`string`?e:e?.message}function HU(e,t,n){let r=e.message?e.message:VU(e.inst?._zod.def?.error?.(e))??VU(t?.error?.(e))??VU(n.customError?.(e))??VU(n.localeError?.(e))??`Invalid input`,{inst:i,continue:a,input:o,...s}=e;return s.path??=[],s.message=r,t?.reportInput&&(s.input=o),s}function UU(e){return e instanceof Set?`set`:e instanceof Map?`map`:e instanceof File?`file`:`unknown`}function WU(e){return Array.isArray(e)?`array`:typeof e==`string`?`string`:`unknown`}function GU(e){let t=typeof e;switch(t){case`number`:return Number.isNaN(e)?`nan`:`number`;case`object`:{if(e===null)return`null`;if(Array.isArray(e))return`array`;let t=e;if(t&&Object.getPrototypeOf(t)!==Object.prototype&&`constructor`in t&&t.constructor)return t.constructor.name}}return t}function KU(...e){let[t,n,r]=e;return typeof t==`string`?{message:t,code:`custom`,input:n,inst:r}:{...t}}function qU(e){return Object.entries(e).filter(([e,t])=>Number.isNaN(Number.parseInt(e,10))).map(e=>e[1])}function JU(e){let t=atob(e),n=new Uint8Array(t.length);for(let e=0;ee.toString(16).padStart(2,`0`)).join(``)}var eW,tW,nW,rW,iW,aW,oW,sW,cW,lW=o((()=>{$H(),eW=Symbol(`evaluating`),tW=`captureStackTrace`in Error?Error.captureStackTrace:(...e)=>{},nW=cU(()=>{if(QH.jitless||typeof navigator<`u`&&navigator?.userAgent?.includes(`Cloudflare`))return!1;try{return Function(``),!0}catch{return!1}}),rW=e=>{let t=typeof e;switch(t){case`undefined`:return`undefined`;case`string`:return`string`;case`number`:return Number.isNaN(e)?`nan`:`number`;case`boolean`:return`boolean`;case`function`:return`function`;case`bigint`:return`bigint`;case`symbol`:return`symbol`;case`object`:return Array.isArray(e)?`array`:e===null?`null`:e.then&&typeof e.then==`function`&&e.catch&&typeof e.catch==`function`?`promise`:typeof Map<`u`&&e instanceof Map?`map`:typeof Set<`u`&&e instanceof Set?`set`:typeof Date<`u`&&e instanceof Date?`date`:typeof File<`u`&&e instanceof File?`file`:`object`;default:throw Error(`Unknown data type: ${t}`)}},iW=new Set([`string`,`number`,`symbol`]),aW=new Set([`string`,`number`,`bigint`,`boolean`,`symbol`,`undefined`]),oW={safeint:[-(2**53-1),2**53-1],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]},sW={int64:[BigInt(`-9223372036854775808`),BigInt(`9223372036854775807`)],uint64:[BigInt(0),BigInt(`18446744073709551615`)]},cW=class{constructor(...e){}}}));function uW(e,t=e=>e.message){let n={},r=[];for(let i of e.issues)i.path.length>0?(n[i.path[0]]=n[i.path[0]]||[],n[i.path[0]].push(t(i))):r.push(t(i));return{formErrors:r,fieldErrors:n}}function dW(e,t=e=>e.message){let n={_errors:[]},r=(e,i=[])=>{for(let a of e.issues)if(a.code===`invalid_union`&&a.errors.length)a.errors.map(e=>r({issues:e},[...i,...a.path]));else if(a.code===`invalid_key`)r({issues:a.issues},[...i,...a.path]);else if(a.code===`invalid_element`)r({issues:a.issues},[...i,...a.path]);else{let e=[...i,...a.path];if(e.length===0)n._errors.push(t(a));else{let r=n,i=0;for(;ie.message){let n={errors:[]},r=(e,i=[])=>{var a,o;for(let s of e.issues)if(s.code===`invalid_union`&&s.errors.length)s.errors.map(e=>r({issues:e},[...i,...s.path]));else if(s.code===`invalid_key`)r({issues:s.issues},[...i,...s.path]);else if(s.code===`invalid_element`)r({issues:s.issues},[...i,...s.path]);else{let e=[...i,...s.path];if(e.length===0){n.errors.push(t(s));continue}let r=n,c=0;for(;ctypeof e==`object`?e.key:e);for(let e of n)typeof e==`number`?t.push(`[${e}]`):typeof e==`symbol`?t.push(`[${JSON.stringify(String(e))}]`):/[^\w$]/.test(e)?t.push(`[${JSON.stringify(e)}]`):(t.length&&t.push(`.`),t.push(e));return t.join(``)}function mW(e){let t=[],n=[...e.issues].sort((e,t)=>(e.path??[]).length-(t.path??[]).length);for(let e of n)t.push(`✖ ${e.message}`),e.path?.length&&t.push(` → at ${pW(e.path)}`);return t.join(` +`)}var hW,gW,_W,vW=o((()=>{$H(),lW(),hW=(e,t)=>{e.name=`$ZodError`,Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,sU,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},gW=q(`$ZodError`,hW),_W=q(`$ZodError`,hW,{Parent:Error})})),yW,bW,xW,SW,CW,wW,TW,EW,DW,OW,kW,AW,jW,MW,NW,PW,FW,IW,LW,RW,zW,BW,VW,HW,UW=o((()=>{$H(),vW(),lW(),yW=e=>(t,n,r,i)=>{let a=r?{...r,async:!1}:{async:!1},o=t._zod.run({value:n,issues:[]},a);if(o instanceof Promise)throw new XH;if(o.issues.length){let t=new((i?.Err)??e)(o.issues.map(e=>HU(e,a,KH())));throw tW(t,i?.callee),t}return o.value},bW=yW(_W),xW=e=>async(t,n,r,i)=>{let a=r?{...r,async:!0}:{async:!0},o=t._zod.run({value:n,issues:[]},a);if(o instanceof Promise&&(o=await o),o.issues.length){let t=new((i?.Err)??e)(o.issues.map(e=>HU(e,a,KH())));throw tW(t,i?.callee),t}return o.value},SW=xW(_W),CW=e=>(t,n,r)=>{let i=r?{...r,async:!1}:{async:!1},a=t._zod.run({value:n,issues:[]},i);if(a instanceof Promise)throw new XH;return a.issues.length?{success:!1,error:new(e??gW)(a.issues.map(e=>HU(e,i,KH())))}:{success:!0,data:a.value}},wW=CW(_W),TW=e=>async(t,n,r)=>{let i=r?{...r,async:!0}:{async:!0},a=t._zod.run({value:n,issues:[]},i);return a instanceof Promise&&(a=await a),a.issues.length?{success:!1,error:new e(a.issues.map(e=>HU(e,i,KH())))}:{success:!0,data:a.value}},EW=TW(_W),DW=e=>(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return yW(e)(t,n,i)},OW=DW(_W),kW=e=>(t,n,r)=>yW(e)(t,n,r),AW=kW(_W),jW=e=>async(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return xW(e)(t,n,i)},MW=jW(_W),NW=e=>async(t,n,r)=>xW(e)(t,n,r),PW=NW(_W),FW=e=>(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return CW(e)(t,n,i)},IW=FW(_W),LW=e=>(t,n,r)=>CW(e)(t,n,r),RW=LW(_W),zW=e=>async(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return TW(e)(t,n,i)},BW=zW(_W),VW=e=>async(t,n,r)=>TW(e)(t,n,r),HW=VW(_W)})),WW=c({base64:()=>SG,base64url:()=>CG,bigint:()=>jG,boolean:()=>PG,browserEmail:()=>hG,cidrv4:()=>bG,cidrv6:()=>xG,cuid:()=>ZW,cuid2:()=>QW,date:()=>kG,datetime:()=>JW,domain:()=>TG,duration:()=>rG,e164:()=>DG,email:()=>uG,emoji:()=>GW,extendedDuration:()=>iG,guid:()=>aG,hex:()=>zG,hostname:()=>wG,html5Email:()=>dG,httpProtocol:()=>EG,idnEmail:()=>mG,integer:()=>MG,ipv4:()=>_G,ipv6:()=>vG,ksuid:()=>tG,lowercase:()=>LG,mac:()=>yG,md5_base64:()=>VG,md5_base64url:()=>HG,md5_hex:()=>BG,nanoid:()=>nG,null:()=>FG,number:()=>NG,rfc5322Email:()=>fG,sha1_base64:()=>WG,sha1_base64url:()=>GG,sha1_hex:()=>UG,sha256_base64:()=>qG,sha256_base64url:()=>JG,sha256_hex:()=>KG,sha384_base64:()=>XG,sha384_base64url:()=>ZG,sha384_hex:()=>YG,sha512_base64:()=>$G,sha512_base64url:()=>eK,sha512_hex:()=>QG,string:()=>AG,time:()=>qW,ulid:()=>$W,undefined:()=>IG,unicodeEmail:()=>pG,uppercase:()=>RG,uuid:()=>oG,uuid4:()=>sG,uuid6:()=>cG,uuid7:()=>lG,xid:()=>eG});function GW(){return new RegExp(gG,`u`)}function KW(e){let t=`(?:[01]\\d|2[0-3]):[0-5]\\d`;return typeof e.precision==`number`?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function qW(e){return RegExp(`^${KW(e)}$`)}function JW(e){let t=KW({precision:e.precision}),n=[`Z`];e.local&&n.push(``),e.offset&&n.push(`([+-](?:[01]\\d|2[0-3]):[0-5]\\d)`);let r=`${t}(?:${n.join(`|`)})`;return RegExp(`^${OG}T(?:${r})$`)}function YW(e,t){return RegExp(`^[A-Za-z0-9+/]{${e}}${t}$`)}function XW(e){return RegExp(`^[A-Za-z0-9_-]{${e}}$`)}var ZW,QW,$W,eG,tG,nG,rG,iG,aG,oG,sG,cG,lG,uG,dG,fG,pG,mG,hG,gG,_G,vG,yG,bG,xG,SG,CG,wG,TG,EG,DG,OG,kG,AG,jG,MG,NG,PG,FG,IG,LG,RG,zG,BG,VG,HG,UG,WG,GG,KG,qG,JG,YG,XG,ZG,QG,$G,eK,tK=o((()=>{lW(),ZW=/^[cC][0-9a-z]{6,}$/,QW=/^[0-9a-z]+$/,$W=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,eG=/^[0-9a-vA-V]{20}$/,tG=/^[A-Za-z0-9]{27}$/,nG=/^[a-zA-Z0-9_-]{21}$/,rG=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,iG=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,aG=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,oG=e=>e?RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,sG=oG(4),cG=oG(6),lG=oG(7),uG=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,dG=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,fG=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,pG=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,mG=pG,hG=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,gG=`^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$`,_G=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,vG=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,yG=e=>{let t=EU(e??`:`);return RegExp(`^(?:[0-9A-F]{2}${t}){5}[0-9A-F]{2}$|^(?:[0-9a-f]{2}${t}){5}[0-9a-f]{2}$`)},bG=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,xG=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,SG=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,CG=/^[A-Za-z0-9_-]*$/,wG=/^(?=.{1,253}\.?$)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?)*\.?$/,TG=/^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/,EG=/^https?$/,DG=/^\+[1-9]\d{6,14}$/,OG=`(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))`,kG=RegExp(`^${OG}$`),AG=e=>{let t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??``}}`:`[\\s\\S]*`;return RegExp(`^${t}$`)},jG=/^-?\d+n?$/,MG=/^-?\d+$/,NG=/^-?\d+(?:\.\d+)?$/,PG=/^(?:true|false)$/i,FG=/^null$/i,IG=/^undefined$/i,LG=/^[^A-Z]*$/,RG=/^[^a-z]*$/,zG=/^[0-9a-fA-F]*$/,BG=/^[0-9a-fA-F]{32}$/,VG=YW(22,`==`),HG=XW(22),UG=/^[0-9a-fA-F]{40}$/,WG=YW(27,`=`),GG=XW(27),KG=/^[0-9a-fA-F]{64}$/,qG=YW(43,`=`),JG=XW(43),YG=/^[0-9a-fA-F]{96}$/,XG=YW(64,``),ZG=XW(64),QG=/^[0-9a-fA-F]{128}$/,$G=YW(86,`==`),eK=XW(86)}));function nK(e,t,n){e.issues.length&&t.issues.push(...BU(n,e.issues))}var rK,iK,aK,oK,sK,cK,lK,uK,dK,fK,pK,mK,hK,gK,_K,vK,yK,bK,xK,SK,CK,wK,TK,EK=o((()=>{$H(),tK(),lW(),rK=q(`$ZodCheck`,(e,t)=>{var n;e._zod??={},e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),iK={number:`number`,bigint:`bigint`,object:`date`},aK=q(`$ZodCheckLessThan`,(e,t)=>{rK.init(e,t);let n=iK[typeof t.value];e._zod.onattach.push(e=>{let n=e._zod.bag,r=(t.inclusive?n.maximum:n.exclusiveMaximum)??1/0;t.value{(t.inclusive?r.value<=t.value:r.value{rK.init(e,t);let n=iK[typeof t.value];e._zod.onattach.push(e=>{let n=e._zod.bag,r=(t.inclusive?n.minimum:n.exclusiveMinimum)??-1/0;t.value>r&&(t.inclusive?n.minimum=t.value:n.exclusiveMinimum=t.value)}),e._zod.check=r=>{(t.inclusive?r.value>=t.value:r.value>t.value)||r.issues.push({origin:n,code:`too_small`,minimum:typeof t.value==`object`?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),sK=q(`$ZodCheckMultipleOf`,(e,t)=>{rK.init(e,t),e._zod.onattach.push(e=>{var n;(n=e._zod.bag).multipleOf??(n.multipleOf=t.value)}),e._zod.check=n=>{if(typeof n.value!=typeof t.value)throw Error(`Cannot mix number and bigint in multiple_of check.`);(typeof n.value==`bigint`?n.value%t.value===BigInt(0):dU(n.value,t.value)===0)||n.issues.push({origin:typeof n.value,code:`not_multiple_of`,divisor:t.value,input:n.value,inst:e,continue:!t.abort})}}),cK=q(`$ZodCheckNumberFormat`,(e,t)=>{rK.init(e,t),t.format=t.format||`float64`;let n=t.format?.includes(`int`),r=n?`int`:`number`,[i,a]=oW[t.format];e._zod.onattach.push(e=>{let r=e._zod.bag;r.format=t.format,r.minimum=i,r.maximum=a,n&&(r.pattern=MG)}),e._zod.check=o=>{let s=o.value;if(n){if(!Number.isInteger(s)){o.issues.push({expected:r,format:t.format,code:`invalid_type`,continue:!1,input:s,inst:e});return}if(!Number.isSafeInteger(s)){s>0?o.issues.push({input:s,code:`too_big`,maximum:2**53-1,note:`Integers must be within the safe integer range.`,inst:e,origin:r,inclusive:!0,continue:!t.abort}):o.issues.push({input:s,code:`too_small`,minimum:-(2**53-1),note:`Integers must be within the safe integer range.`,inst:e,origin:r,inclusive:!0,continue:!t.abort});return}}sa&&o.issues.push({origin:`number`,input:s,code:`too_big`,maximum:a,inclusive:!0,inst:e,continue:!t.abort})}}),lK=q(`$ZodCheckBigIntFormat`,(e,t)=>{rK.init(e,t);let[n,r]=sW[t.format];e._zod.onattach.push(e=>{let i=e._zod.bag;i.format=t.format,i.minimum=n,i.maximum=r}),e._zod.check=i=>{let a=i.value;ar&&i.issues.push({origin:`bigint`,input:a,code:`too_big`,maximum:r,inclusive:!0,inst:e,continue:!t.abort})}}),uK=q(`$ZodCheckMaxSize`,(e,t)=>{var n;rK.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!lU(t)&&t.size!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag.maximum??1/0;t.maximum{let r=n.value;r.size<=t.maximum||n.issues.push({origin:UU(r),code:`too_big`,maximum:t.maximum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),dK=q(`$ZodCheckMinSize`,(e,t)=>{var n;rK.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!lU(t)&&t.size!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag.minimum??-1/0;t.minimum>n&&(e._zod.bag.minimum=t.minimum)}),e._zod.check=n=>{let r=n.value;r.size>=t.minimum||n.issues.push({origin:UU(r),code:`too_small`,minimum:t.minimum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),fK=q(`$ZodCheckSizeEquals`,(e,t)=>{var n;rK.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!lU(t)&&t.size!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag;n.minimum=t.size,n.maximum=t.size,n.size=t.size}),e._zod.check=n=>{let r=n.value,i=r.size;if(i===t.size)return;let a=i>t.size;n.issues.push({origin:UU(r),...a?{code:`too_big`,maximum:t.size}:{code:`too_small`,minimum:t.size},inclusive:!0,exact:!0,input:n.value,inst:e,continue:!t.abort})}}),pK=q(`$ZodCheckMaxLength`,(e,t)=>{var n;rK.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!lU(t)&&t.length!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag.maximum??1/0;t.maximum{let r=n.value;if(r.length<=t.maximum)return;let i=WU(r);n.issues.push({origin:i,code:`too_big`,maximum:t.maximum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),mK=q(`$ZodCheckMinLength`,(e,t)=>{var n;rK.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!lU(t)&&t.length!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag.minimum??-1/0;t.minimum>n&&(e._zod.bag.minimum=t.minimum)}),e._zod.check=n=>{let r=n.value;if(r.length>=t.minimum)return;let i=WU(r);n.issues.push({origin:i,code:`too_small`,minimum:t.minimum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),hK=q(`$ZodCheckLengthEquals`,(e,t)=>{var n;rK.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!lU(t)&&t.length!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag;n.minimum=t.length,n.maximum=t.length,n.length=t.length}),e._zod.check=n=>{let r=n.value,i=r.length;if(i===t.length)return;let a=WU(r),o=i>t.length;n.issues.push({origin:a,...o?{code:`too_big`,maximum:t.length}:{code:`too_small`,minimum:t.length},inclusive:!0,exact:!0,input:n.value,inst:e,continue:!t.abort})}}),gK=q(`$ZodCheckStringFormat`,(e,t)=>{var n,r;rK.init(e,t),e._zod.onattach.push(e=>{let n=e._zod.bag;n.format=t.format,t.pattern&&(n.patterns??=new Set,n.patterns.add(t.pattern))}),t.pattern?(n=e._zod).check??(n.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:`string`,code:`invalid_format`,format:t.format,input:n.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(r=e._zod).check??(r.check=()=>{})}),_K=q(`$ZodCheckRegex`,(e,t)=>{gK.init(e,t),e._zod.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:`string`,code:`invalid_format`,format:`regex`,input:n.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),vK=q(`$ZodCheckLowerCase`,(e,t)=>{t.pattern??=LG,gK.init(e,t)}),yK=q(`$ZodCheckUpperCase`,(e,t)=>{t.pattern??=RG,gK.init(e,t)}),bK=q(`$ZodCheckIncludes`,(e,t)=>{rK.init(e,t);let n=EU(t.includes),r=new RegExp(typeof t.position==`number`?`^.{${t.position}}${n}`:n);t.pattern=r,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??=new Set,t.patterns.add(r)}),e._zod.check=n=>{n.value.includes(t.includes,t.position)||n.issues.push({origin:`string`,code:`invalid_format`,format:`includes`,includes:t.includes,input:n.value,inst:e,continue:!t.abort})}}),xK=q(`$ZodCheckStartsWith`,(e,t)=>{rK.init(e,t);let n=RegExp(`^${EU(t.prefix)}.*`);t.pattern??=n,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??=new Set,t.patterns.add(n)}),e._zod.check=n=>{n.value.startsWith(t.prefix)||n.issues.push({origin:`string`,code:`invalid_format`,format:`starts_with`,prefix:t.prefix,input:n.value,inst:e,continue:!t.abort})}}),SK=q(`$ZodCheckEndsWith`,(e,t)=>{rK.init(e,t);let n=RegExp(`.*${EU(t.suffix)}$`);t.pattern??=n,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??=new Set,t.patterns.add(n)}),e._zod.check=n=>{n.value.endsWith(t.suffix)||n.issues.push({origin:`string`,code:`invalid_format`,format:`ends_with`,suffix:t.suffix,input:n.value,inst:e,continue:!t.abort})}}),CK=q(`$ZodCheckProperty`,(e,t)=>{rK.init(e,t),e._zod.check=e=>{let n=t.schema._zod.run({value:e.value[t.property],issues:[]},{});if(n instanceof Promise)return n.then(n=>nK(n,e,t.property));nK(n,e,t.property)}}),wK=q(`$ZodCheckMimeType`,(e,t)=>{rK.init(e,t);let n=new Set(t.mime);e._zod.onattach.push(e=>{e._zod.bag.mime=t.mime}),e._zod.check=r=>{n.has(r.value.type)||r.issues.push({code:`invalid_value`,values:t.mime,input:r.value.type,inst:e,continue:!t.abort})}}),TK=q(`$ZodCheckOverwrite`,(e,t)=>{rK.init(e,t),e._zod.check=e=>{e.value=t.tx(e.value)}})})),DK,OK=o((()=>{DK=class{constructor(e=[]){this.content=[],this.indent=0,this&&(this.args=e)}indented(e){this.indent+=1,e(this),--this.indent}write(e){if(typeof e==`function`){e(this,{execution:`sync`}),e(this,{execution:`async`});return}let t=e.split(` `).filter(e=>e),n=Math.min(...t.map(e=>e.length-e.trimStart().length)),r=t.map(e=>e.slice(n)).map(e=>` `.repeat(this.indent*2)+e);for(let e of r)this.content.push(e)}compile(){let e=Function,t=this?.args,n=[...(this?.content??[``]).map(e=>` ${e}`)];return new e(...t,n.join(` -`))}}})),gK,_K=o((()=>{gK={major:4,minor:4,patch:3}}));function vK(e){if(e===``)return!0;if(/\s/.test(e)||e.length%4!=0)return!1;try{return atob(e),!0}catch{return!1}}function yK(e){if(!uG.test(e))return!1;let t=e.replace(/[-_]/g,e=>e===`-`?`+`:`/`);return vK(t.padEnd(Math.ceil(t.length/4)*4,`=`))}function bK(e,t=null){try{let n=e.split(`.`);if(n.length!==3)return!1;let[r]=n;if(!r)return!1;let i=JSON.parse(atob(r));return!(`typ`in i&&i?.typ!==`JWT`||!i.alg||t&&(!(`alg`in i)||i.alg!==t))}catch{return!1}}function xK(e,t,n){e.issues.length&&t.issues.push(...DU(n,e.issues)),t.value[n]=e.value}function SK(e,t,n,r,i,a){let o=n in r;if(e.issues.length){if(i&&a&&!o)return;t.issues.push(...DU(n,e.issues))}if(!o&&!i){e.issues.length||t.issues.push({code:`invalid_type`,expected:`nonoptional`,input:void 0,path:[n]});return}e.value===void 0?o&&(t.value[n]=void 0):t.value[n]=e.value}function CK(e){let t=Object.keys(e.shape);for(let n of t)if(!e.shape?.[n]?._zod?.traits?.has(`$ZodType`))throw Error(`Invalid element at key "${n}": expected a Zod schema`);let n=_U(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(n)}}function wK(e,t,n,r,i,a){let o=[],s=i.keySet,c=i.catchall._zod,l=c.def.type,u=c.optin===`optional`,d=c.optout===`optional`;for(let i in t){if(i===`__proto__`||s.has(i))continue;if(l===`never`){o.push(i);continue}let a=c.run({value:t[i],issues:[]},r);a instanceof Promise?e.push(a.then(e=>SK(e,n,i,t,u,d))):SK(a,n,i,t,u,d)}return o.length&&n.issues.push({code:`unrecognized_keys`,keys:o,input:t,inst:a}),e.length?Promise.all(e).then(()=>n):n}function TK(e,t,n,r){for(let n of e)if(n.issues.length===0)return t.value=n.value,t;let i=e.filter(e=>!TU(e));return i.length===1?(t.value=i[0].value,i[0]):(t.issues.push({code:`invalid_union`,input:t.value,inst:n,errors:e.map(e=>e.issues.map(e=>kU(e,r,NH())))}),t)}function EK(e,t,n,r){let i=e.filter(e=>e.issues.length===0);return i.length===1?(t.value=i[0].value,t):(i.length===0?t.issues.push({code:`invalid_union`,input:t.value,inst:n,errors:e.map(e=>e.issues.map(e=>kU(e,r,NH())))}):t.issues.push({code:`invalid_union`,input:t.value,inst:n,errors:[],inclusive:!1}),t)}function DK(e,t){if(e===t||e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(uU(e)&&uU(t)){let n=Object.keys(t),r=Object.keys(e).filter(e=>n.indexOf(e)!==-1),i={...e,...t};for(let n of r){let r=DK(e[n],t[n]);if(!r.valid)return{valid:!1,mergeErrorPath:[n,...r.mergeErrorPath]};i[n]=r.data}return{valid:!0,data:i}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};let n=[];for(let r=0;re.l&&e.r).map(([e])=>e);if(a.length&&i&&e.issues.push({...i,keys:a}),TU(e))return e;let o=DK(t.value,n.value);if(!o.valid)throw Error(`Unmergable intersection. Error path: ${JSON.stringify(o.mergeErrorPath)}`);return e.value=o.data,e}function kK(e,t){for(let n=e.length-1;n>=0;n--)if(e[n]._zod[t]!==`optional`)return n+1;return 0}function AK(e,t,n){e.issues.length&&t.issues.push(...DU(n,e.issues)),t.value[n]=e.value}function jK(e,t,n,r,i){for(let a=0;a=i){t.value.length=a;break}t.issues.push(...DU(a,n.issues))}t.value[a]=n.value}for(let e=t.value.length-1;e>=r.length&&n[e]._zod.optout===`optional`&&t.value[e]===void 0;e--)t.value.length=e;return t}function MK(e,t,n,r,i,a,o){e.issues.length&&(GU.has(typeof r)?n.issues.push(...DU(r,e.issues)):n.issues.push({code:`invalid_key`,origin:`map`,input:i,inst:a,issues:e.issues.map(e=>kU(e,o,NH()))})),t.issues.length&&(GU.has(typeof r)?n.issues.push(...DU(r,t.issues)):n.issues.push({origin:`map`,code:`invalid_element`,input:i,inst:a,key:r,issues:t.issues.map(e=>kU(e,o,NH()))})),n.value.set(e.value,t.value)}function NK(e,t){e.issues.length&&t.issues.push(...e.issues),t.value.add(e.value)}function PK(e,t){return t===void 0&&(e.issues.length||e.fallback)?{issues:[],value:void 0}:e}function FK(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}function IK(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:`invalid_type`,expected:`nonoptional`,input:e.value,inst:t}),e}function LK(e,t,n){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues,fallback:e.fallback},n)}function RK(e,t,n){if(e.issues.length)return e.aborted=!0,e;if((n.direction||`forward`)===`forward`){let r=t.transform(e.value,e);return r instanceof Promise?r.then(r=>zK(e,r,t.out,n)):zK(e,r,t.out,n)}{let r=t.reverseTransform(e.value,e);return r instanceof Promise?r.then(r=>zK(e,r,t.in,n)):zK(e,r,t.in,n)}}function zK(e,t,n,r){return e.issues.length?(e.aborted=!0,e):n._zod.run({value:t,issues:e.issues},r)}function BK(e){return e.value=Object.freeze(e.value),e}function VK(e,t,n,r){if(!e){let e={code:`custom`,input:n,inst:r,path:[...r._zod.def.path??[]],continue:!r._zod.def.abort};r._zod.def.params&&(e.params=r._zod.def.params),t.issues.push(NU(e))}}var HK,UK,WK,GK,KK,qK,JK,YK,XK,ZK,QK,$K,eq,tq,nq,rq,iq,aq,oq,sq,cq,lq,uq,dq,fq,pq,mq,hq,gq,_q,vq,yq,bq,xq,Sq,Cq,wq,Tq,Eq,Dq,Oq,kq,Aq,jq,Mq,Nq,Pq,Fq,Iq,Lq,Rq,zq,Bq,Vq,Hq,Uq,Wq,Gq,Kq,qq,Jq,Yq,Xq,Zq,Qq,$q,eJ,tJ,nJ,rJ,iJ,aJ,oJ,sJ,cJ=o((()=>{pK(),BH(),hK(),AW(),HG(),XU(),_K(),HK=q(`$ZodType`,(e,t)=>{var n;e??={},e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=gK;let r=[...e._zod.def.checks??[]];e._zod.traits.has(`$ZodCheck`)&&r.unshift(e);for(let t of r)for(let n of t._zod.onattach)n(e);if(r.length===0)(n=e._zod).deferred??(n.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{let t=(e,t,n)=>{let r=TU(e),i;for(let a of t){if(a._zod.def.when){if(EU(e)||!a._zod.def.when(e))continue}else if(r)continue;let t=e.issues.length,o=a._zod.check(e);if(o instanceof Promise&&n?.async===!1)throw new LH;if(i||o instanceof Promise)i=(i??Promise.resolve()).then(async()=>{await o,e.issues.length!==t&&(r||=TU(e,t))});else{if(e.issues.length===t)continue;r||=TU(e,t)}}return i?i.then(()=>e):e},n=(n,i,a)=>{if(TU(n))return n.aborted=!0,n;let o=t(i,r,a);if(o instanceof Promise){if(a.async===!1)throw new LH;return o.then(t=>e._zod.parse(t,a))}return e._zod.parse(o,a)};e._zod.run=(i,a)=>{if(a.skipChecks)return e._zod.parse(i,a);if(a.direction===`backward`){let t=e._zod.parse({value:i.value,issues:[]},{...a,skipChecks:!0});return t instanceof Promise?t.then(e=>n(e,i,a)):n(t,i,a)}let o=e._zod.parse(i,a);if(o instanceof Promise){if(a.async===!1)throw new LH;return o.then(e=>t(e,r,a))}return t(o,r,a)}}$H(e,`~standard`,()=>({validate:t=>{try{let n=dW(e,t);return n.success?{value:n.data}:{issues:n.error?.issues}}catch{return pW(e,t).then(e=>e.success?{value:e.data}:{issues:e.error?.issues})}},vendor:`zod`,version:1}))}),UK=q(`$ZodString`,(e,t)=>{HK.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??_G(e._zod.bag),e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=String(n.value)}catch{}return typeof n.value==`string`||n.issues.push({expected:`string`,code:`invalid_type`,input:n.value,inst:e}),n}}),WK=q(`$ZodStringFormat`,(e,t)=>{rK.init(e,t),UK.init(e,t)}),GK=q(`$ZodGUID`,(e,t)=>{t.pattern??=KW,WK.init(e,t)}),KK=q(`$ZodUUID`,(e,t)=>{if(t.version){let e={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(e===void 0)throw Error(`Invalid UUID version: "${t.version}"`);t.pattern??=qW(e)}else t.pattern??=qW();WK.init(e,t)}),qK=q(`$ZodEmail`,(e,t)=>{t.pattern??=ZW,WK.init(e,t)}),JK=q(`$ZodURL`,(e,t)=>{WK.init(e,t),e._zod.check=n=>{try{let r=n.value.trim();if(!t.normalize&&t.protocol?.source===pG.source&&!/^https?:\/\//i.test(r)){n.issues.push({code:`invalid_format`,format:`url`,note:`Invalid URL format`,input:n.value,inst:e,continue:!t.abort});return}let i=new URL(r);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(i.hostname)||n.issues.push({code:`invalid_format`,format:`url`,note:`Invalid hostname`,pattern:t.hostname.source,input:n.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(i.protocol.endsWith(`:`)?i.protocol.slice(0,-1):i.protocol)||n.issues.push({code:`invalid_format`,format:`url`,note:`Invalid protocol`,pattern:t.protocol.source,input:n.value,inst:e,continue:!t.abort})),n.value=t.normalize?i.href:r;return}catch{n.issues.push({code:`invalid_format`,format:`url`,input:n.value,inst:e,continue:!t.abort})}}}),YK=q(`$ZodEmoji`,(e,t)=>{t.pattern??=MW(),WK.init(e,t)}),XK=q(`$ZodNanoID`,(e,t)=>{t.pattern??=UW,WK.init(e,t)}),ZK=q(`$ZodCUID`,(e,t)=>{t.pattern??=RW,WK.init(e,t)}),QK=q(`$ZodCUID2`,(e,t)=>{t.pattern??=zW,WK.init(e,t)}),$K=q(`$ZodULID`,(e,t)=>{t.pattern??=BW,WK.init(e,t)}),eq=q(`$ZodXID`,(e,t)=>{t.pattern??=VW,WK.init(e,t)}),tq=q(`$ZodKSUID`,(e,t)=>{t.pattern??=HW,WK.init(e,t)}),nq=q(`$ZodISODateTime`,(e,t)=>{t.pattern??=FW(t),WK.init(e,t)}),rq=q(`$ZodISODate`,(e,t)=>{t.pattern??=gG,WK.init(e,t)}),iq=q(`$ZodISOTime`,(e,t)=>{t.pattern??=PW(t),WK.init(e,t)}),aq=q(`$ZodISODuration`,(e,t)=>{t.pattern??=WW,WK.init(e,t)}),oq=q(`$ZodIPv4`,(e,t)=>{t.pattern??=iG,WK.init(e,t),e._zod.bag.format=`ipv4`}),sq=q(`$ZodIPv6`,(e,t)=>{t.pattern??=aG,WK.init(e,t),e._zod.bag.format=`ipv6`,e._zod.check=n=>{try{new URL(`http://[${n.value}]`)}catch{n.issues.push({code:`invalid_format`,format:`ipv6`,input:n.value,inst:e,continue:!t.abort})}}}),cq=q(`$ZodMAC`,(e,t)=>{t.pattern??=oG(t.delimiter),WK.init(e,t),e._zod.bag.format=`mac`}),lq=q(`$ZodCIDRv4`,(e,t)=>{t.pattern??=sG,WK.init(e,t)}),uq=q(`$ZodCIDRv6`,(e,t)=>{t.pattern??=cG,WK.init(e,t),e._zod.check=n=>{let r=n.value.split(`/`);try{if(r.length!==2)throw Error();let[e,t]=r;if(!t)throw Error();let n=Number(t);if(`${n}`!==t||n<0||n>128)throw Error();new URL(`http://[${e}]`)}catch{n.issues.push({code:`invalid_format`,format:`cidrv6`,input:n.value,inst:e,continue:!t.abort})}}}),dq=q(`$ZodBase64`,(e,t)=>{t.pattern??=lG,WK.init(e,t),e._zod.bag.contentEncoding=`base64`,e._zod.check=n=>{vK(n.value)||n.issues.push({code:`invalid_format`,format:`base64`,input:n.value,inst:e,continue:!t.abort})}}),fq=q(`$ZodBase64URL`,(e,t)=>{t.pattern??=uG,WK.init(e,t),e._zod.bag.contentEncoding=`base64url`,e._zod.check=n=>{yK(n.value)||n.issues.push({code:`invalid_format`,format:`base64url`,input:n.value,inst:e,continue:!t.abort})}}),pq=q(`$ZodE164`,(e,t)=>{t.pattern??=mG,WK.init(e,t)}),mq=q(`$ZodJWT`,(e,t)=>{WK.init(e,t),e._zod.check=n=>{bK(n.value,t.alg)||n.issues.push({code:`invalid_format`,format:`jwt`,input:n.value,inst:e,continue:!t.abort})}}),hq=q(`$ZodCustomStringFormat`,(e,t)=>{WK.init(e,t),e._zod.check=n=>{t.fn(n.value)||n.issues.push({code:`invalid_format`,format:t.format,input:n.value,inst:e,continue:!t.abort})}}),gq=q(`$ZodNumber`,(e,t)=>{HK.init(e,t),e._zod.pattern=e._zod.bag.pattern??bG,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=Number(n.value)}catch{}let i=n.value;if(typeof i==`number`&&!Number.isNaN(i)&&Number.isFinite(i))return n;let a=typeof i==`number`?Number.isNaN(i)?`NaN`:Number.isFinite(i)?void 0:`Infinity`:void 0;return n.issues.push({expected:`number`,code:`invalid_type`,input:i,inst:e,...a?{received:a}:{}}),n}}),_q=q(`$ZodNumberFormat`,(e,t)=>{YG.init(e,t),gq.init(e,t)}),vq=q(`$ZodBoolean`,(e,t)=>{HK.init(e,t),e._zod.pattern=xG,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=!!n.value}catch{}let i=n.value;return typeof i==`boolean`||n.issues.push({expected:`boolean`,code:`invalid_type`,input:i,inst:e}),n}}),yq=q(`$ZodBigInt`,(e,t)=>{HK.init(e,t),e._zod.pattern=vG,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=BigInt(n.value)}catch{}return typeof n.value==`bigint`||n.issues.push({expected:`bigint`,code:`invalid_type`,input:n.value,inst:e}),n}}),bq=q(`$ZodBigIntFormat`,(e,t)=>{XG.init(e,t),yq.init(e,t)}),xq=q(`$ZodSymbol`,(e,t)=>{HK.init(e,t),e._zod.parse=(t,n)=>{let r=t.value;return typeof r==`symbol`||t.issues.push({expected:`symbol`,code:`invalid_type`,input:r,inst:e}),t}}),Sq=q(`$ZodUndefined`,(e,t)=>{HK.init(e,t),e._zod.pattern=CG,e._zod.values=new Set([void 0]),e._zod.parse=(t,n)=>{let r=t.value;return r===void 0||t.issues.push({expected:`undefined`,code:`invalid_type`,input:r,inst:e}),t}}),Cq=q(`$ZodNull`,(e,t)=>{HK.init(e,t),e._zod.pattern=SG,e._zod.values=new Set([null]),e._zod.parse=(t,n)=>{let r=t.value;return r===null||t.issues.push({expected:`null`,code:`invalid_type`,input:r,inst:e}),t}}),wq=q(`$ZodAny`,(e,t)=>{HK.init(e,t),e._zod.parse=e=>e}),Tq=q(`$ZodUnknown`,(e,t)=>{HK.init(e,t),e._zod.parse=e=>e}),Eq=q(`$ZodNever`,(e,t)=>{HK.init(e,t),e._zod.parse=(t,n)=>(t.issues.push({expected:`never`,code:`invalid_type`,input:t.value,inst:e}),t)}),Dq=q(`$ZodVoid`,(e,t)=>{HK.init(e,t),e._zod.parse=(t,n)=>{let r=t.value;return r===void 0||t.issues.push({expected:`void`,code:`invalid_type`,input:r,inst:e}),t}}),Oq=q(`$ZodDate`,(e,t)=>{HK.init(e,t),e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=new Date(n.value)}catch{}let i=n.value,a=i instanceof Date;return a&&!Number.isNaN(i.getTime())||n.issues.push({expected:`date`,code:`invalid_type`,input:i,...a?{received:`Invalid Date`}:{},inst:e}),n}}),kq=q(`$ZodArray`,(e,t)=>{HK.init(e,t),e._zod.parse=(n,r)=>{let i=n.value;if(!Array.isArray(i))return n.issues.push({expected:`array`,code:`invalid_type`,input:i,inst:e}),n;n.value=Array(i.length);let a=[];for(let e=0;exK(t,n,e))):xK(s,n,e)}return a.length?Promise.all(a).then(()=>n):n}}),Aq=q(`$ZodObject`,(e,t)=>{if(HK.init(e,t),!Object.getOwnPropertyDescriptor(t,`shape`)?.get){let e=t.shape;Object.defineProperty(t,"shape",{get:()=>{let n={...e};return Object.defineProperty(t,"shape",{value:n}),n}})}let n=YH(()=>CK(t));$H(e._zod,`propValues`,()=>{let e=t.shape,n={};for(let t in e){let r=e[t]._zod;if(r.values){n[t]??(n[t]=new Set);for(let e of r.values)n[t].add(e)}}return n});let r=lU,i=t.catchall,a;e._zod.parse=(t,o)=>{a??=n.value;let s=t.value;if(!r(s))return t.issues.push({expected:`object`,code:`invalid_type`,input:s,inst:e}),t;t.value={};let c=[],l=a.shape;for(let e of a.keys){let n=l[e],r=n._zod.optin===`optional`,i=n._zod.optout===`optional`,a=n._zod.run({value:s[e],issues:[]},o);a instanceof Promise?c.push(a.then(n=>SK(n,t,e,s,r,i))):SK(a,t,e,s,r,i)}return i?wK(c,s,t,o,n.value,e):c.length?Promise.all(c).then(()=>t):t}}),jq=q(`$ZodObjectJIT`,(e,t)=>{Aq.init(e,t);let n=e._zod.parse,r=YH(()=>CK(t)),i=e=>{let t=new mK([`shape`,`payload`,`ctx`]),n=r.value,i=e=>{let t=sU(e);return`shape[${t}]._zod.run({ value: input[${t}], issues: [] }, ctx)`};t.write(`const input = payload.value;`);let a=Object.create(null),o=0;for(let e of n.keys)a[e]=`key_${o++}`;t.write(`const newResult = {};`);for(let r of n.keys){let n=a[r],o=sU(r),s=e[r],c=s?._zod?.optin===`optional`,l=s?._zod?.optout===`optional`;t.write(`const ${n} = ${i(r)};`),c&&l?t.write(` +`))}}})),kK,AK=o((()=>{kK={major:4,minor:4,patch:3}}));function jK(e){if(e===``)return!0;if(/\s/.test(e)||e.length%4!=0)return!1;try{return atob(e),!0}catch{return!1}}function MK(e){if(!CG.test(e))return!1;let t=e.replace(/[-_]/g,e=>e===`-`?`+`:`/`);return jK(t.padEnd(Math.ceil(t.length/4)*4,`=`))}function NK(e,t=null){try{let n=e.split(`.`);if(n.length!==3)return!1;let[r]=n;if(!r)return!1;let i=JSON.parse(atob(r));return!(`typ`in i&&i?.typ!==`JWT`||!i.alg||t&&(!(`alg`in i)||i.alg!==t))}catch{return!1}}function PK(e,t,n){e.issues.length&&t.issues.push(...BU(n,e.issues)),t.value[n]=e.value}function FK(e,t,n,r,i,a){let o=n in r;if(e.issues.length){if(i&&a&&!o)return;t.issues.push(...BU(n,e.issues))}if(!o&&!i){e.issues.length||t.issues.push({code:`invalid_type`,expected:`nonoptional`,input:void 0,path:[n]});return}e.value===void 0?o&&(t.value[n]=void 0):t.value[n]=e.value}function IK(e){let t=Object.keys(e.shape);for(let n of t)if(!e.shape?.[n]?._zod?.traits?.has(`$ZodType`))throw Error(`Invalid element at key "${n}": expected a Zod schema`);let n=AU(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(n)}}function LK(e,t,n,r,i,a){let o=[],s=i.keySet,c=i.catchall._zod,l=c.def.type,u=c.optin===`optional`,d=c.optout===`optional`;for(let i in t){if(i===`__proto__`||s.has(i))continue;if(l===`never`){o.push(i);continue}let a=c.run({value:t[i],issues:[]},r);a instanceof Promise?e.push(a.then(e=>FK(e,n,i,t,u,d))):FK(a,n,i,t,u,d)}return o.length&&n.issues.push({code:`unrecognized_keys`,keys:o,input:t,inst:a}),e.length?Promise.all(e).then(()=>n):n}function RK(e,t,n,r){for(let n of e)if(n.issues.length===0)return t.value=n.value,t;let i=e.filter(e=>!RU(e));return i.length===1?(t.value=i[0].value,i[0]):(t.issues.push({code:`invalid_union`,input:t.value,inst:n,errors:e.map(e=>e.issues.map(e=>HU(e,r,KH())))}),t)}function zK(e,t,n,r){let i=e.filter(e=>e.issues.length===0);return i.length===1?(t.value=i[0].value,t):(i.length===0?t.issues.push({code:`invalid_union`,input:t.value,inst:n,errors:e.map(e=>e.issues.map(e=>HU(e,r,KH())))}):t.issues.push({code:`invalid_union`,input:t.value,inst:n,errors:[],inclusive:!1}),t)}function BK(e,t){if(e===t||e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(CU(e)&&CU(t)){let n=Object.keys(t),r=Object.keys(e).filter(e=>n.indexOf(e)!==-1),i={...e,...t};for(let n of r){let r=BK(e[n],t[n]);if(!r.valid)return{valid:!1,mergeErrorPath:[n,...r.mergeErrorPath]};i[n]=r.data}return{valid:!0,data:i}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};let n=[];for(let r=0;re.l&&e.r).map(([e])=>e);if(a.length&&i&&e.issues.push({...i,keys:a}),RU(e))return e;let o=BK(t.value,n.value);if(!o.valid)throw Error(`Unmergable intersection. Error path: ${JSON.stringify(o.mergeErrorPath)}`);return e.value=o.data,e}function HK(e,t){for(let n=e.length-1;n>=0;n--)if(e[n]._zod[t]!==`optional`)return n+1;return 0}function UK(e,t,n){e.issues.length&&t.issues.push(...BU(n,e.issues)),t.value[n]=e.value}function WK(e,t,n,r,i){for(let a=0;a=i){t.value.length=a;break}t.issues.push(...BU(a,n.issues))}t.value[a]=n.value}for(let e=t.value.length-1;e>=r.length&&n[e]._zod.optout===`optional`&&t.value[e]===void 0;e--)t.value.length=e;return t}function GK(e,t,n,r,i,a,o){e.issues.length&&(iW.has(typeof r)?n.issues.push(...BU(r,e.issues)):n.issues.push({code:`invalid_key`,origin:`map`,input:i,inst:a,issues:e.issues.map(e=>HU(e,o,KH()))})),t.issues.length&&(iW.has(typeof r)?n.issues.push(...BU(r,t.issues)):n.issues.push({origin:`map`,code:`invalid_element`,input:i,inst:a,key:r,issues:t.issues.map(e=>HU(e,o,KH()))})),n.value.set(e.value,t.value)}function KK(e,t){e.issues.length&&t.issues.push(...e.issues),t.value.add(e.value)}function qK(e,t){return t===void 0&&(e.issues.length||e.fallback)?{issues:[],value:void 0}:e}function JK(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}function YK(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:`invalid_type`,expected:`nonoptional`,input:e.value,inst:t}),e}function XK(e,t,n){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues,fallback:e.fallback},n)}function ZK(e,t,n){if(e.issues.length)return e.aborted=!0,e;if((n.direction||`forward`)===`forward`){let r=t.transform(e.value,e);return r instanceof Promise?r.then(r=>QK(e,r,t.out,n)):QK(e,r,t.out,n)}{let r=t.reverseTransform(e.value,e);return r instanceof Promise?r.then(r=>QK(e,r,t.in,n)):QK(e,r,t.in,n)}}function QK(e,t,n,r){return e.issues.length?(e.aborted=!0,e):n._zod.run({value:t,issues:e.issues},r)}function $K(e){return e.value=Object.freeze(e.value),e}function eq(e,t,n,r){if(!e){let e={code:`custom`,input:n,inst:r,path:[...r._zod.def.path??[]],continue:!r._zod.def.abort};r._zod.def.params&&(e.params=r._zod.def.params),t.issues.push(KU(e))}}var tq,nq,rq,iq,aq,oq,sq,cq,lq,uq,dq,fq,pq,mq,hq,gq,_q,vq,yq,bq,xq,Sq,Cq,wq,Tq,Eq,Dq,Oq,kq,Aq,jq,Mq,Nq,Pq,Fq,Iq,Lq,Rq,zq,Bq,Vq,Hq,Uq,Wq,Gq,Kq,qq,Jq,Yq,Xq,Zq,Qq,$q,eJ,tJ,nJ,rJ,iJ,aJ,oJ,sJ,cJ,lJ,uJ,dJ,fJ,pJ,mJ,hJ,gJ,_J,vJ,yJ,bJ,xJ=o((()=>{EK(),$H(),OK(),UW(),tK(),lW(),AK(),tq=q(`$ZodType`,(e,t)=>{var n;e??={},e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=kK;let r=[...e._zod.def.checks??[]];e._zod.traits.has(`$ZodCheck`)&&r.unshift(e);for(let t of r)for(let n of t._zod.onattach)n(e);if(r.length===0)(n=e._zod).deferred??(n.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{let t=(e,t,n)=>{let r=RU(e),i;for(let a of t){if(a._zod.def.when){if(zU(e)||!a._zod.def.when(e))continue}else if(r)continue;let t=e.issues.length,o=a._zod.check(e);if(o instanceof Promise&&n?.async===!1)throw new XH;if(i||o instanceof Promise)i=(i??Promise.resolve()).then(async()=>{await o,e.issues.length!==t&&(r||=RU(e,t))});else{if(e.issues.length===t)continue;r||=RU(e,t)}}return i?i.then(()=>e):e},n=(n,i,a)=>{if(RU(n))return n.aborted=!0,n;let o=t(i,r,a);if(o instanceof Promise){if(a.async===!1)throw new XH;return o.then(t=>e._zod.parse(t,a))}return e._zod.parse(o,a)};e._zod.run=(i,a)=>{if(a.skipChecks)return e._zod.parse(i,a);if(a.direction===`backward`){let t=e._zod.parse({value:i.value,issues:[]},{...a,skipChecks:!0});return t instanceof Promise?t.then(e=>n(e,i,a)):n(t,i,a)}let o=e._zod.parse(i,a);if(o instanceof Promise){if(a.async===!1)throw new XH;return o.then(e=>t(e,r,a))}return t(o,r,a)}}fU(e,`~standard`,()=>({validate:t=>{try{let n=wW(e,t);return n.success?{value:n.data}:{issues:n.error?.issues}}catch{return EW(e,t).then(e=>e.success?{value:e.data}:{issues:e.error?.issues})}},vendor:`zod`,version:1}))}),nq=q(`$ZodString`,(e,t)=>{tq.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??AG(e._zod.bag),e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=String(n.value)}catch{}return typeof n.value==`string`||n.issues.push({expected:`string`,code:`invalid_type`,input:n.value,inst:e}),n}}),rq=q(`$ZodStringFormat`,(e,t)=>{gK.init(e,t),nq.init(e,t)}),iq=q(`$ZodGUID`,(e,t)=>{t.pattern??=aG,rq.init(e,t)}),aq=q(`$ZodUUID`,(e,t)=>{if(t.version){let e={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(e===void 0)throw Error(`Invalid UUID version: "${t.version}"`);t.pattern??=oG(e)}else t.pattern??=oG();rq.init(e,t)}),oq=q(`$ZodEmail`,(e,t)=>{t.pattern??=uG,rq.init(e,t)}),sq=q(`$ZodURL`,(e,t)=>{rq.init(e,t),e._zod.check=n=>{try{let r=n.value.trim();if(!t.normalize&&t.protocol?.source===EG.source&&!/^https?:\/\//i.test(r)){n.issues.push({code:`invalid_format`,format:`url`,note:`Invalid URL format`,input:n.value,inst:e,continue:!t.abort});return}let i=new URL(r);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(i.hostname)||n.issues.push({code:`invalid_format`,format:`url`,note:`Invalid hostname`,pattern:t.hostname.source,input:n.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(i.protocol.endsWith(`:`)?i.protocol.slice(0,-1):i.protocol)||n.issues.push({code:`invalid_format`,format:`url`,note:`Invalid protocol`,pattern:t.protocol.source,input:n.value,inst:e,continue:!t.abort})),n.value=t.normalize?i.href:r;return}catch{n.issues.push({code:`invalid_format`,format:`url`,input:n.value,inst:e,continue:!t.abort})}}}),cq=q(`$ZodEmoji`,(e,t)=>{t.pattern??=GW(),rq.init(e,t)}),lq=q(`$ZodNanoID`,(e,t)=>{t.pattern??=nG,rq.init(e,t)}),uq=q(`$ZodCUID`,(e,t)=>{t.pattern??=ZW,rq.init(e,t)}),dq=q(`$ZodCUID2`,(e,t)=>{t.pattern??=QW,rq.init(e,t)}),fq=q(`$ZodULID`,(e,t)=>{t.pattern??=$W,rq.init(e,t)}),pq=q(`$ZodXID`,(e,t)=>{t.pattern??=eG,rq.init(e,t)}),mq=q(`$ZodKSUID`,(e,t)=>{t.pattern??=tG,rq.init(e,t)}),hq=q(`$ZodISODateTime`,(e,t)=>{t.pattern??=JW(t),rq.init(e,t)}),gq=q(`$ZodISODate`,(e,t)=>{t.pattern??=kG,rq.init(e,t)}),_q=q(`$ZodISOTime`,(e,t)=>{t.pattern??=qW(t),rq.init(e,t)}),vq=q(`$ZodISODuration`,(e,t)=>{t.pattern??=rG,rq.init(e,t)}),yq=q(`$ZodIPv4`,(e,t)=>{t.pattern??=_G,rq.init(e,t),e._zod.bag.format=`ipv4`}),bq=q(`$ZodIPv6`,(e,t)=>{t.pattern??=vG,rq.init(e,t),e._zod.bag.format=`ipv6`,e._zod.check=n=>{try{new URL(`http://[${n.value}]`)}catch{n.issues.push({code:`invalid_format`,format:`ipv6`,input:n.value,inst:e,continue:!t.abort})}}}),xq=q(`$ZodMAC`,(e,t)=>{t.pattern??=yG(t.delimiter),rq.init(e,t),e._zod.bag.format=`mac`}),Sq=q(`$ZodCIDRv4`,(e,t)=>{t.pattern??=bG,rq.init(e,t)}),Cq=q(`$ZodCIDRv6`,(e,t)=>{t.pattern??=xG,rq.init(e,t),e._zod.check=n=>{let r=n.value.split(`/`);try{if(r.length!==2)throw Error();let[e,t]=r;if(!t)throw Error();let n=Number(t);if(`${n}`!==t||n<0||n>128)throw Error();new URL(`http://[${e}]`)}catch{n.issues.push({code:`invalid_format`,format:`cidrv6`,input:n.value,inst:e,continue:!t.abort})}}}),wq=q(`$ZodBase64`,(e,t)=>{t.pattern??=SG,rq.init(e,t),e._zod.bag.contentEncoding=`base64`,e._zod.check=n=>{jK(n.value)||n.issues.push({code:`invalid_format`,format:`base64`,input:n.value,inst:e,continue:!t.abort})}}),Tq=q(`$ZodBase64URL`,(e,t)=>{t.pattern??=CG,rq.init(e,t),e._zod.bag.contentEncoding=`base64url`,e._zod.check=n=>{MK(n.value)||n.issues.push({code:`invalid_format`,format:`base64url`,input:n.value,inst:e,continue:!t.abort})}}),Eq=q(`$ZodE164`,(e,t)=>{t.pattern??=DG,rq.init(e,t)}),Dq=q(`$ZodJWT`,(e,t)=>{rq.init(e,t),e._zod.check=n=>{NK(n.value,t.alg)||n.issues.push({code:`invalid_format`,format:`jwt`,input:n.value,inst:e,continue:!t.abort})}}),Oq=q(`$ZodCustomStringFormat`,(e,t)=>{rq.init(e,t),e._zod.check=n=>{t.fn(n.value)||n.issues.push({code:`invalid_format`,format:t.format,input:n.value,inst:e,continue:!t.abort})}}),kq=q(`$ZodNumber`,(e,t)=>{tq.init(e,t),e._zod.pattern=e._zod.bag.pattern??NG,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=Number(n.value)}catch{}let i=n.value;if(typeof i==`number`&&!Number.isNaN(i)&&Number.isFinite(i))return n;let a=typeof i==`number`?Number.isNaN(i)?`NaN`:Number.isFinite(i)?void 0:`Infinity`:void 0;return n.issues.push({expected:`number`,code:`invalid_type`,input:i,inst:e,...a?{received:a}:{}}),n}}),Aq=q(`$ZodNumberFormat`,(e,t)=>{cK.init(e,t),kq.init(e,t)}),jq=q(`$ZodBoolean`,(e,t)=>{tq.init(e,t),e._zod.pattern=PG,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=!!n.value}catch{}let i=n.value;return typeof i==`boolean`||n.issues.push({expected:`boolean`,code:`invalid_type`,input:i,inst:e}),n}}),Mq=q(`$ZodBigInt`,(e,t)=>{tq.init(e,t),e._zod.pattern=jG,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=BigInt(n.value)}catch{}return typeof n.value==`bigint`||n.issues.push({expected:`bigint`,code:`invalid_type`,input:n.value,inst:e}),n}}),Nq=q(`$ZodBigIntFormat`,(e,t)=>{lK.init(e,t),Mq.init(e,t)}),Pq=q(`$ZodSymbol`,(e,t)=>{tq.init(e,t),e._zod.parse=(t,n)=>{let r=t.value;return typeof r==`symbol`||t.issues.push({expected:`symbol`,code:`invalid_type`,input:r,inst:e}),t}}),Fq=q(`$ZodUndefined`,(e,t)=>{tq.init(e,t),e._zod.pattern=IG,e._zod.values=new Set([void 0]),e._zod.parse=(t,n)=>{let r=t.value;return r===void 0||t.issues.push({expected:`undefined`,code:`invalid_type`,input:r,inst:e}),t}}),Iq=q(`$ZodNull`,(e,t)=>{tq.init(e,t),e._zod.pattern=FG,e._zod.values=new Set([null]),e._zod.parse=(t,n)=>{let r=t.value;return r===null||t.issues.push({expected:`null`,code:`invalid_type`,input:r,inst:e}),t}}),Lq=q(`$ZodAny`,(e,t)=>{tq.init(e,t),e._zod.parse=e=>e}),Rq=q(`$ZodUnknown`,(e,t)=>{tq.init(e,t),e._zod.parse=e=>e}),zq=q(`$ZodNever`,(e,t)=>{tq.init(e,t),e._zod.parse=(t,n)=>(t.issues.push({expected:`never`,code:`invalid_type`,input:t.value,inst:e}),t)}),Bq=q(`$ZodVoid`,(e,t)=>{tq.init(e,t),e._zod.parse=(t,n)=>{let r=t.value;return r===void 0||t.issues.push({expected:`void`,code:`invalid_type`,input:r,inst:e}),t}}),Vq=q(`$ZodDate`,(e,t)=>{tq.init(e,t),e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=new Date(n.value)}catch{}let i=n.value,a=i instanceof Date;return a&&!Number.isNaN(i.getTime())||n.issues.push({expected:`date`,code:`invalid_type`,input:i,...a?{received:`Invalid Date`}:{},inst:e}),n}}),Hq=q(`$ZodArray`,(e,t)=>{tq.init(e,t),e._zod.parse=(n,r)=>{let i=n.value;if(!Array.isArray(i))return n.issues.push({expected:`array`,code:`invalid_type`,input:i,inst:e}),n;n.value=Array(i.length);let a=[];for(let e=0;ePK(t,n,e))):PK(s,n,e)}return a.length?Promise.all(a).then(()=>n):n}}),Uq=q(`$ZodObject`,(e,t)=>{if(tq.init(e,t),!Object.getOwnPropertyDescriptor(t,`shape`)?.get){let e=t.shape;Object.defineProperty(t,"shape",{get:()=>{let n={...e};return Object.defineProperty(t,"shape",{value:n}),n}})}let n=cU(()=>IK(t));fU(e._zod,`propValues`,()=>{let e=t.shape,n={};for(let t in e){let r=e[t]._zod;if(r.values){n[t]??(n[t]=new Set);for(let e of r.values)n[t].add(e)}}return n});let r=SU,i=t.catchall,a;e._zod.parse=(t,o)=>{a??=n.value;let s=t.value;if(!r(s))return t.issues.push({expected:`object`,code:`invalid_type`,input:s,inst:e}),t;t.value={};let c=[],l=a.shape;for(let e of a.keys){let n=l[e],r=n._zod.optin===`optional`,i=n._zod.optout===`optional`,a=n._zod.run({value:s[e],issues:[]},o);a instanceof Promise?c.push(a.then(n=>FK(n,t,e,s,r,i))):FK(a,t,e,s,r,i)}return i?LK(c,s,t,o,n.value,e):c.length?Promise.all(c).then(()=>t):t}}),Wq=q(`$ZodObjectJIT`,(e,t)=>{Uq.init(e,t);let n=e._zod.parse,r=cU(()=>IK(t)),i=e=>{let t=new DK([`shape`,`payload`,`ctx`]),n=r.value,i=e=>{let t=bU(e);return`shape[${t}]._zod.run({ value: input[${t}], issues: [] }, ctx)`};t.write(`const input = payload.value;`);let a=Object.create(null),o=0;for(let e of n.keys)a[e]=`key_${o++}`;t.write(`const newResult = {};`);for(let r of n.keys){let n=a[r],o=bU(r),s=e[r],c=s?._zod?.optin===`optional`,l=s?._zod?.optout===`optional`;t.write(`const ${n} = ${i(r)};`),c&&l?t.write(` if (${n}.issues.length) { if (${o} in input) { payload.issues = payload.issues.concat(${n}.issues.map(iss => ({ @@ -87,15 +87,15 @@ } } - `)}t.write(`payload.value = newResult;`),t.write(`return payload;`);let s=t.compile();return(t,n)=>s(e,t,n)},a,o=lU,s=!zH.jitless,c=s&&UU.value,l=t.catchall,u;e._zod.parse=(d,f)=>{u??=r.value;let p=d.value;return o(p)?s&&c&&f?.async===!1&&f.jitless!==!0?(a||=i(t.shape),d=a(d,f),l?wK([],p,d,f,u,e):d):n(d,f):(d.issues.push({expected:`object`,code:`invalid_type`,input:p,inst:e}),d)}}),Mq=q(`$ZodUnion`,(e,t)=>{HK.init(e,t),$H(e._zod,`optin`,()=>t.options.some(e=>e._zod.optin===`optional`)?`optional`:void 0),$H(e._zod,`optout`,()=>t.options.some(e=>e._zod.optout===`optional`)?`optional`:void 0),$H(e._zod,`values`,()=>{if(t.options.every(e=>e._zod.values))return new Set(t.options.flatMap(e=>Array.from(e._zod.values)))}),$H(e._zod,`pattern`,()=>{if(t.options.every(e=>e._zod.pattern)){let e=t.options.map(e=>e._zod.pattern);return RegExp(`^(${e.map(e=>ZH(e.source)).join(`|`)})$`)}});let n=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(r,i)=>{if(n)return n(r,i);let a=!1,o=[];for(let e of t.options){let t=e._zod.run({value:r.value,issues:[]},i);if(t instanceof Promise)o.push(t),a=!0;else{if(t.issues.length===0)return t;o.push(t)}}return a?Promise.all(o).then(t=>TK(t,r,e,i)):TK(o,r,e,i)}}),Nq=q(`$ZodXor`,(e,t)=>{Mq.init(e,t),t.inclusive=!1;let n=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(r,i)=>{if(n)return n(r,i);let a=!1,o=[];for(let e of t.options){let t=e._zod.run({value:r.value,issues:[]},i);t instanceof Promise?(o.push(t),a=!0):o.push(t)}return a?Promise.all(o).then(t=>EK(t,r,e,i)):EK(o,r,e,i)}}),Pq=q(`$ZodDiscriminatedUnion`,(e,t)=>{t.inclusive=!1,Mq.init(e,t);let n=e._zod.parse;$H(e._zod,`propValues`,()=>{let e={};for(let n of t.options){let r=n._zod.propValues;if(!r||Object.keys(r).length===0)throw Error(`Invalid discriminated union option at index "${t.options.indexOf(n)}"`);for(let[t,n]of Object.entries(r)){e[t]||(e[t]=new Set);for(let r of n)e[t].add(r)}}return e});let r=YH(()=>{let e=t.options,n=new Map;for(let r of e){let e=r._zod.propValues?.[t.discriminator];if(!e||e.size===0)throw Error(`Invalid discriminated union option at index "${t.options.indexOf(r)}"`);for(let t of e){if(n.has(t))throw Error(`Duplicate discriminator value "${String(t)}"`);n.set(t,r)}}return n});e._zod.parse=(i,a)=>{let o=i.value;if(!lU(o))return i.issues.push({code:`invalid_type`,expected:`object`,input:o,inst:e}),i;let s=r.value.get(o?.[t.discriminator]);return s?s._zod.run(i,a):t.unionFallback||a.direction===`backward`?n(i,a):(i.issues.push({code:`invalid_union`,errors:[],note:`No matching discriminator`,discriminator:t.discriminator,options:Array.from(r.value.keys()),input:o,path:[t.discriminator],inst:e}),i)}}),Fq=q(`$ZodIntersection`,(e,t)=>{HK.init(e,t),e._zod.parse=(e,n)=>{let r=e.value,i=t.left._zod.run({value:r,issues:[]},n),a=t.right._zod.run({value:r,issues:[]},n);return i instanceof Promise||a instanceof Promise?Promise.all([i,a]).then(([t,n])=>OK(e,t,n)):OK(e,i,a)}}),Iq=q(`$ZodTuple`,(e,t)=>{HK.init(e,t);let n=t.items;e._zod.parse=(r,i)=>{let a=r.value;if(!Array.isArray(a))return r.issues.push({input:a,inst:e,expected:`tuple`,code:`invalid_type`}),r;r.value=[];let o=[],s=kK(n,`optin`),c=kK(n,`optout`);if(!t.rest){if(a.lengthn.length&&r.issues.push({code:`too_big`,maximum:n.length,inclusive:!0,input:a,inst:e,origin:`array`})}let l=Array(n.length);for(let e=0;e{l[e]=t})):l[e]=t}if(t.rest){let e=n.length-1,s=a.slice(n.length);for(let n of s){e++;let a=t.rest._zod.run({value:n,issues:[]},i);a instanceof Promise?o.push(a.then(t=>AK(t,r,e))):AK(a,r,e)}}return o.length?Promise.all(o).then(()=>jK(l,r,n,a,c)):jK(l,r,n,a,c)}}),Lq=q(`$ZodRecord`,(e,t)=>{HK.init(e,t),e._zod.parse=(n,r)=>{let i=n.value;if(!uU(i))return n.issues.push({expected:`record`,code:`invalid_type`,input:i,inst:e}),n;let a=[],o=t.keyType._zod.values;if(o){n.value={};let s=new Set;for(let c of o)if(typeof c==`string`||typeof c==`number`||typeof c==`symbol`){s.add(typeof c==`number`?c.toString():c);let o=t.keyType._zod.run({value:c,issues:[]},r);if(o instanceof Promise)throw Error(`Async schemas not supported in object keys currently`);if(o.issues.length){n.issues.push({code:`invalid_key`,origin:`record`,issues:o.issues.map(e=>kU(e,r,NH())),input:c,path:[c],inst:e});continue}let l=o.value,u=t.valueType._zod.run({value:i[c],issues:[]},r);u instanceof Promise?a.push(u.then(e=>{e.issues.length&&n.issues.push(...DU(c,e.issues)),n.value[l]=e.value})):(u.issues.length&&n.issues.push(...DU(c,u.issues)),n.value[l]=u.value)}let c;for(let e in i)s.has(e)||(c??=[],c.push(e));c&&c.length>0&&n.issues.push({code:`unrecognized_keys`,input:i,inst:e,keys:c})}else{n.value={};for(let o of Reflect.ownKeys(i)){if(o===`__proto__`||!Object.prototype.propertyIsEnumerable.call(i,o))continue;let s=t.keyType._zod.run({value:o,issues:[]},r);if(s instanceof Promise)throw Error(`Async schemas not supported in object keys currently`);if(typeof o==`string`&&bG.test(o)&&s.issues.length){let e=t.keyType._zod.run({value:Number(o),issues:[]},r);if(e instanceof Promise)throw Error(`Async schemas not supported in object keys currently`);e.issues.length===0&&(s=e)}if(s.issues.length){t.mode===`loose`?n.value[o]=i[o]:n.issues.push({code:`invalid_key`,origin:`record`,issues:s.issues.map(e=>kU(e,r,NH())),input:o,path:[o],inst:e});continue}let c=t.valueType._zod.run({value:i[o],issues:[]},r);c instanceof Promise?a.push(c.then(e=>{e.issues.length&&n.issues.push(...DU(o,e.issues)),n.value[s.value]=e.value})):(c.issues.length&&n.issues.push(...DU(o,c.issues)),n.value[s.value]=c.value)}}return a.length?Promise.all(a).then(()=>n):n}}),Rq=q(`$ZodMap`,(e,t)=>{HK.init(e,t),e._zod.parse=(n,r)=>{let i=n.value;if(!(i instanceof Map))return n.issues.push({expected:`map`,code:`invalid_type`,input:i,inst:e}),n;let a=[];n.value=new Map;for(let[o,s]of i){let c=t.keyType._zod.run({value:o,issues:[]},r),l=t.valueType._zod.run({value:s,issues:[]},r);c instanceof Promise||l instanceof Promise?a.push(Promise.all([c,l]).then(([t,a])=>{MK(t,a,n,o,i,e,r)})):MK(c,l,n,o,i,e,r)}return a.length?Promise.all(a).then(()=>n):n}}),zq=q(`$ZodSet`,(e,t)=>{HK.init(e,t),e._zod.parse=(n,r)=>{let i=n.value;if(!(i instanceof Set))return n.issues.push({input:i,inst:e,expected:`set`,code:`invalid_type`}),n;let a=[];n.value=new Set;for(let e of i){let i=t.valueType._zod.run({value:e,issues:[]},r);i instanceof Promise?a.push(i.then(e=>NK(e,n))):NK(i,n)}return a.length?Promise.all(a).then(()=>n):n}}),Bq=q(`$ZodEnum`,(e,t)=>{HK.init(e,t);let n=qH(t.entries),r=new Set(n);e._zod.values=r,e._zod.pattern=RegExp(`^(${n.filter(e=>GU.has(typeof e)).map(e=>typeof e==`string`?pU(e):e.toString()).join(`|`)})$`),e._zod.parse=(t,i)=>{let a=t.value;return r.has(a)||t.issues.push({code:`invalid_value`,values:n,input:a,inst:e}),t}}),Vq=q(`$ZodLiteral`,(e,t)=>{if(HK.init(e,t),t.values.length===0)throw Error(`Cannot create literal schema with no valid values`);let n=new Set(t.values);e._zod.values=n,e._zod.pattern=RegExp(`^(${t.values.map(e=>typeof e==`string`?pU(e):e?pU(e.toString()):String(e)).join(`|`)})$`),e._zod.parse=(r,i)=>{let a=r.value;return n.has(a)||r.issues.push({code:`invalid_value`,values:t.values,input:a,inst:e}),r}}),Hq=q(`$ZodFile`,(e,t)=>{HK.init(e,t),e._zod.parse=(t,n)=>{let r=t.value;return r instanceof File||t.issues.push({expected:`file`,code:`invalid_type`,input:r,inst:e}),t}}),Uq=q(`$ZodTransform`,(e,t)=>{HK.init(e,t),e._zod.optin=`optional`,e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new RH(e.constructor.name);let i=t.transform(n.value,n);if(r.async)return(i instanceof Promise?i:Promise.resolve(i)).then(e=>(n.value=e,n.fallback=!0,n));if(i instanceof Promise)throw new LH;return n.value=i,n.fallback=!0,n}}),Wq=q(`$ZodOptional`,(e,t)=>{HK.init(e,t),e._zod.optin=`optional`,e._zod.optout=`optional`,$H(e._zod,`values`,()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),$H(e._zod,`pattern`,()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${ZH(e.source)})?$`):void 0}),e._zod.parse=(e,n)=>{if(t.innerType._zod.optin===`optional`){let r=e.value,i=t.innerType._zod.run(e,n);return i instanceof Promise?i.then(e=>PK(e,r)):PK(i,r)}return e.value===void 0?e:t.innerType._zod.run(e,n)}}),Gq=q(`$ZodExactOptional`,(e,t)=>{Wq.init(e,t),$H(e._zod,`values`,()=>t.innerType._zod.values),$H(e._zod,`pattern`,()=>t.innerType._zod.pattern),e._zod.parse=(e,n)=>t.innerType._zod.run(e,n)}),Kq=q(`$ZodNullable`,(e,t)=>{HK.init(e,t),$H(e._zod,`optin`,()=>t.innerType._zod.optin),$H(e._zod,`optout`,()=>t.innerType._zod.optout),$H(e._zod,`pattern`,()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${ZH(e.source)}|null)$`):void 0}),$H(e._zod,`values`,()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(e,n)=>e.value===null?e:t.innerType._zod.run(e,n)}),qq=q(`$ZodDefault`,(e,t)=>{HK.init(e,t),e._zod.optin=`optional`,$H(e._zod,`values`,()=>t.innerType._zod.values),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);if(e.value===void 0)return e.value=t.defaultValue,e;let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(e=>FK(e,t)):FK(r,t)}}),Jq=q(`$ZodPrefault`,(e,t)=>{HK.init(e,t),e._zod.optin=`optional`,$H(e._zod,`values`,()=>t.innerType._zod.values),e._zod.parse=(e,n)=>(n.direction===`backward`||e.value===void 0&&(e.value=t.defaultValue),t.innerType._zod.run(e,n))}),Yq=q(`$ZodNonOptional`,(e,t)=>{HK.init(e,t),$H(e._zod,`values`,()=>{let e=t.innerType._zod.values;return e?new Set([...e].filter(e=>e!==void 0)):void 0}),e._zod.parse=(n,r)=>{let i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(t=>IK(t,e)):IK(i,e)}}),Xq=q(`$ZodSuccess`,(e,t)=>{HK.init(e,t),e._zod.parse=(e,n)=>{if(n.direction===`backward`)throw new RH(`ZodSuccess`);let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(t=>(e.value=t.issues.length===0,e)):(e.value=r.issues.length===0,e)}}),Zq=q(`$ZodCatch`,(e,t)=>{HK.init(e,t),e._zod.optin=`optional`,$H(e._zod,`optout`,()=>t.innerType._zod.optout),$H(e._zod,`values`,()=>t.innerType._zod.values),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(r=>(e.value=r.value,r.issues.length&&(e.value=t.catchValue({...e,error:{issues:r.issues.map(e=>kU(e,n,NH()))},input:e.value}),e.issues=[],e.fallback=!0),e)):(e.value=r.value,r.issues.length&&(e.value=t.catchValue({...e,error:{issues:r.issues.map(e=>kU(e,n,NH()))},input:e.value}),e.issues=[],e.fallback=!0),e)}}),Qq=q(`$ZodNaN`,(e,t)=>{HK.init(e,t),e._zod.parse=(t,n)=>((typeof t.value!=`number`||!Number.isNaN(t.value))&&t.issues.push({input:t.value,inst:e,expected:`nan`,code:`invalid_type`}),t)}),$q=q(`$ZodPipe`,(e,t)=>{HK.init(e,t),$H(e._zod,`values`,()=>t.in._zod.values),$H(e._zod,`optin`,()=>t.in._zod.optin),$H(e._zod,`optout`,()=>t.out._zod.optout),$H(e._zod,`propValues`,()=>t.in._zod.propValues),e._zod.parse=(e,n)=>{if(n.direction===`backward`){let r=t.out._zod.run(e,n);return r instanceof Promise?r.then(e=>LK(e,t.in,n)):LK(r,t.in,n)}let r=t.in._zod.run(e,n);return r instanceof Promise?r.then(e=>LK(e,t.out,n)):LK(r,t.out,n)}}),eJ=q(`$ZodCodec`,(e,t)=>{HK.init(e,t),$H(e._zod,`values`,()=>t.in._zod.values),$H(e._zod,`optin`,()=>t.in._zod.optin),$H(e._zod,`optout`,()=>t.out._zod.optout),$H(e._zod,`propValues`,()=>t.in._zod.propValues),e._zod.parse=(e,n)=>{if((n.direction||`forward`)===`forward`){let r=t.in._zod.run(e,n);return r instanceof Promise?r.then(e=>RK(e,t,n)):RK(r,t,n)}{let r=t.out._zod.run(e,n);return r instanceof Promise?r.then(e=>RK(e,t,n)):RK(r,t,n)}}}),tJ=q(`$ZodPreprocess`,(e,t)=>{$q.init(e,t)}),nJ=q(`$ZodReadonly`,(e,t)=>{HK.init(e,t),$H(e._zod,`propValues`,()=>t.innerType._zod.propValues),$H(e._zod,`values`,()=>t.innerType._zod.values),$H(e._zod,`optin`,()=>t.innerType?._zod?.optin),$H(e._zod,`optout`,()=>t.innerType?._zod?.optout),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(BK):BK(r)}}),rJ=q(`$ZodTemplateLiteral`,(e,t)=>{HK.init(e,t);let n=[];for(let e of t.parts)if(typeof e==`object`&&e){if(!e._zod.pattern)throw Error(`Invalid template literal part, no pattern found: ${[...e._zod.traits].shift()}`);let t=e._zod.pattern instanceof RegExp?e._zod.pattern.source:e._zod.pattern;if(!t)throw Error(`Invalid template literal part: ${e._zod.traits}`);let r=+!!t.startsWith(`^`),i=t.endsWith(`$`)?t.length-1:t.length;n.push(t.slice(r,i))}else if(e===null||KU.has(typeof e))n.push(pU(`${e}`));else throw Error(`Invalid template literal part: ${e}`);e._zod.pattern=RegExp(`^${n.join(``)}$`),e._zod.parse=(n,r)=>typeof n.value==`string`?(e._zod.pattern.lastIndex=0,e._zod.pattern.test(n.value)||n.issues.push({input:n.value,inst:e,code:`invalid_format`,format:t.format??`template_literal`,pattern:e._zod.pattern.source}),n):(n.issues.push({input:n.value,inst:e,expected:`string`,code:`invalid_type`}),n)}),iJ=q(`$ZodFunction`,(e,t)=>(HK.init(e,t),e._def=t,e._zod.def=t,e.implement=t=>{if(typeof t!=`function`)throw Error(`implement() must be called with a function`);return function(...n){let r=e._def.input?sW(e._def.input,n):n,i=Reflect.apply(t,this,r);return e._def.output?sW(e._def.output,i):i}},e.implementAsync=t=>{if(typeof t!=`function`)throw Error(`implementAsync() must be called with a function`);return async function(...n){let r=e._def.input?await lW(e._def.input,n):n,i=await Reflect.apply(t,this,r);return e._def.output?await lW(e._def.output,i):i}},e._zod.parse=(t,n)=>typeof t.value==`function`?(t.value=e._def.output&&e._def.output._zod.def.type===`promise`?e.implementAsync(t.value):e.implement(t.value),t):(t.issues.push({code:`invalid_type`,expected:`function`,input:t.value,inst:e}),t),e.input=(...t)=>{let n=e.constructor;return Array.isArray(t[0])?new n({type:`function`,input:new Iq({type:`tuple`,items:t[0],rest:t[1]}),output:e._def.output}):new n({type:`function`,input:t[0],output:e._def.output})},e.output=t=>{let n=e.constructor;return new n({type:`function`,input:e._def.input,output:t})},e)),aJ=q(`$ZodPromise`,(e,t)=>{HK.init(e,t),e._zod.parse=(e,n)=>Promise.resolve(e.value).then(e=>t.innerType._zod.run({value:e,issues:[]},n))}),oJ=q(`$ZodLazy`,(e,t)=>{HK.init(e,t),$H(e._zod,`innerType`,()=>{let e=t;return e._cachedInner||=t.getter(),e._cachedInner}),$H(e._zod,`pattern`,()=>e._zod.innerType?._zod?.pattern),$H(e._zod,`propValues`,()=>e._zod.innerType?._zod?.propValues),$H(e._zod,`optin`,()=>e._zod.innerType?._zod?.optin??void 0),$H(e._zod,`optout`,()=>e._zod.innerType?._zod?.optout??void 0),e._zod.parse=(t,n)=>e._zod.innerType._zod.run(t,n)}),sJ=q(`$ZodCustom`,(e,t)=>{WG.init(e,t),HK.init(e,t),e._zod.parse=(e,t)=>e,e._zod.check=n=>{let r=n.value,i=t.fn(r);if(i instanceof Promise)return i.then(t=>VK(t,n,r,e));VK(i,n,r,e)}})}));function lJ(){return{localeError:uJ()}}var uJ,dJ=o((()=>{XU(),uJ=()=>{let e={string:{unit:`حرف`,verb:`أن يحوي`},file:{unit:`بايت`,verb:`أن يحوي`},array:{unit:`عنصر`,verb:`أن يحوي`},set:{unit:`عنصر`,verb:`أن يحوي`}};function t(t){return e[t]??null}let n={regex:`مدخل`,email:`بريد إلكتروني`,url:`رابط`,emoji:`إيموجي`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`تاريخ ووقت بمعيار ISO`,date:`تاريخ بمعيار ISO`,time:`وقت بمعيار ISO`,duration:`مدة بمعيار ISO`,ipv4:`عنوان IPv4`,ipv6:`عنوان IPv6`,cidrv4:`مدى عناوين بصيغة IPv4`,cidrv6:`مدى عناوين بصيغة IPv6`,base64:`نَص بترميز base64-encoded`,base64url:`نَص بترميز base64url-encoded`,json_string:`نَص على هيئة JSON`,e164:`رقم هاتف بمعيار E.164`,jwt:`JWT`,template_literal:`مدخل`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=MU(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`مدخلات غير مقبولة: يفترض إدخال instanceof ${e.expected}، ولكن تم إدخال ${i}`:`مدخلات غير مقبولة: يفترض إدخال ${t}، ولكن تم إدخال ${i}`}case`invalid_value`:return e.values.length===1?`مدخلات غير مقبولة: يفترض إدخال ${gU(e.values[0])}`:`اختيار غير مقبول: يتوقع انتقاء أحد هذه الخيارات: ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?` أكبر من اللازم: يفترض أن تكون ${e.origin??`القيمة`} ${n} ${e.maximum.toString()} ${r.unit??`عنصر`}`:`أكبر من اللازم: يفترض أن تكون ${e.origin??`القيمة`} ${n} ${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`أصغر من اللازم: يفترض لـ ${e.origin} أن يكون ${n} ${e.minimum.toString()} ${r.unit}`:`أصغر من اللازم: يفترض لـ ${e.origin} أن يكون ${n} ${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`نَص غير مقبول: يجب أن يبدأ بـ "${e.prefix}"`:t.format===`ends_with`?`نَص غير مقبول: يجب أن ينتهي بـ "${t.suffix}"`:t.format===`includes`?`نَص غير مقبول: يجب أن يتضمَّن "${t.includes}"`:t.format===`regex`?`نَص غير مقبول: يجب أن يطابق النمط ${t.pattern}`:`${n[t.format]??e.format} غير مقبول`}case`not_multiple_of`:return`رقم غير مقبول: يجب أن يكون من مضاعفات ${e.divisor}`;case`unrecognized_keys`:return`معرف${e.keys.length>1?`ات`:``} غريب${e.keys.length>1?`ة`:``}: ${J(e.keys,`، `)}`;case`invalid_key`:return`معرف غير مقبول في ${e.origin}`;case`invalid_union`:return`مدخل غير مقبول`;case`invalid_element`:return`مدخل غير مقبول في ${e.origin}`;default:return`مدخل غير مقبول`}}}}));function fJ(){return{localeError:pJ()}}var pJ,mJ=o((()=>{XU(),pJ=()=>{let e={string:{unit:`simvol`,verb:`olmalıdır`},file:{unit:`bayt`,verb:`olmalıdır`},array:{unit:`element`,verb:`olmalıdır`},set:{unit:`element`,verb:`olmalıdır`}};function t(t){return e[t]??null}let n={regex:`input`,email:`email address`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO datetime`,date:`ISO date`,time:`ISO time`,duration:`ISO duration`,ipv4:`IPv4 address`,ipv6:`IPv6 address`,cidrv4:`IPv4 range`,cidrv6:`IPv6 range`,base64:`base64-encoded string`,base64url:`base64url-encoded string`,json_string:`JSON string`,e164:`E.164 number`,jwt:`JWT`,template_literal:`input`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=MU(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Yanlış dəyər: gözlənilən instanceof ${e.expected}, daxil olan ${i}`:`Yanlış dəyər: gözlənilən ${t}, daxil olan ${i}`}case`invalid_value`:return e.values.length===1?`Yanlış dəyər: gözlənilən ${gU(e.values[0])}`:`Yanlış seçim: aşağıdakılardan biri olmalıdır: ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Çox böyük: gözlənilən ${e.origin??`dəyər`} ${n}${e.maximum.toString()} ${r.unit??`element`}`:`Çox böyük: gözlənilən ${e.origin??`dəyər`} ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Çox kiçik: gözlənilən ${e.origin} ${n}${e.minimum.toString()} ${r.unit}`:`Çox kiçik: gözlənilən ${e.origin} ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Yanlış mətn: "${t.prefix}" ilə başlamalıdır`:t.format===`ends_with`?`Yanlış mətn: "${t.suffix}" ilə bitməlidir`:t.format===`includes`?`Yanlış mətn: "${t.includes}" daxil olmalıdır`:t.format===`regex`?`Yanlış mətn: ${t.pattern} şablonuna uyğun olmalıdır`:`Yanlış ${n[t.format]??e.format}`}case`not_multiple_of`:return`Yanlış ədəd: ${e.divisor} ilə bölünə bilən olmalıdır`;case`unrecognized_keys`:return`Tanınmayan açar${e.keys.length>1?`lar`:``}: ${J(e.keys,`, `)}`;case`invalid_key`:return`${e.origin} daxilində yanlış açar`;case`invalid_union`:return`Yanlış dəyər`;case`invalid_element`:return`${e.origin} daxilində yanlış dəyər`;default:return`Yanlış dəyər`}}}}));function hJ(e,t,n,r){let i=Math.abs(e),a=i%10,o=i%100;return o>=11&&o<=19?r:a===1?t:a>=2&&a<=4?n:r}function gJ(){return{localeError:_J()}}var _J,vJ=o((()=>{XU(),_J=()=>{let e={string:{unit:{one:`сімвал`,few:`сімвалы`,many:`сімвалаў`},verb:`мець`},array:{unit:{one:`элемент`,few:`элементы`,many:`элементаў`},verb:`мець`},set:{unit:{one:`элемент`,few:`элементы`,many:`элементаў`},verb:`мець`},file:{unit:{one:`байт`,few:`байты`,many:`байтаў`},verb:`мець`}};function t(t){return e[t]??null}let n={regex:`увод`,email:`email адрас`,url:`URL`,emoji:`эмодзі`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO дата і час`,date:`ISO дата`,time:`ISO час`,duration:`ISO працягласць`,ipv4:`IPv4 адрас`,ipv6:`IPv6 адрас`,cidrv4:`IPv4 дыяпазон`,cidrv6:`IPv6 дыяпазон`,base64:`радок у фармаце base64`,base64url:`радок у фармаце base64url`,json_string:`JSON радок`,e164:`нумар E.164`,jwt:`JWT`,template_literal:`увод`},r={nan:`NaN`,number:`лік`,array:`масіў`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=MU(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Няправільны ўвод: чакаўся instanceof ${e.expected}, атрымана ${i}`:`Няправільны ўвод: чакаўся ${t}, атрымана ${i}`}case`invalid_value`:return e.values.length===1?`Няправільны ўвод: чакалася ${gU(e.values[0])}`:`Няправільны варыянт: чакаўся адзін з ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);if(r){let t=hJ(Number(e.maximum),r.unit.one,r.unit.few,r.unit.many);return`Занадта вялікі: чакалася, што ${e.origin??`значэнне`} павінна ${r.verb} ${n}${e.maximum.toString()} ${t}`}return`Занадта вялікі: чакалася, што ${e.origin??`значэнне`} павінна быць ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);if(r){let t=hJ(Number(e.minimum),r.unit.one,r.unit.few,r.unit.many);return`Занадта малы: чакалася, што ${e.origin} павінна ${r.verb} ${n}${e.minimum.toString()} ${t}`}return`Занадта малы: чакалася, што ${e.origin} павінна быць ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Няправільны радок: павінен пачынацца з "${t.prefix}"`:t.format===`ends_with`?`Няправільны радок: павінен заканчвацца на "${t.suffix}"`:t.format===`includes`?`Няправільны радок: павінен змяшчаць "${t.includes}"`:t.format===`regex`?`Няправільны радок: павінен адпавядаць шаблону ${t.pattern}`:`Няправільны ${n[t.format]??e.format}`}case`not_multiple_of`:return`Няправільны лік: павінен быць кратным ${e.divisor}`;case`unrecognized_keys`:return`Нераспазнаны ${e.keys.length>1?`ключы`:`ключ`}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Няправільны ключ у ${e.origin}`;case`invalid_union`:return`Няправільны ўвод`;case`invalid_element`:return`Няправільнае значэнне ў ${e.origin}`;default:return`Няправільны ўвод`}}}}));function yJ(){return{localeError:bJ()}}var bJ,xJ=o((()=>{XU(),bJ=()=>{let e={string:{unit:`символа`,verb:`да съдържа`},file:{unit:`байта`,verb:`да съдържа`},array:{unit:`елемента`,verb:`да съдържа`},set:{unit:`елемента`,verb:`да съдържа`}};function t(t){return e[t]??null}let n={regex:`вход`,email:`имейл адрес`,url:`URL`,emoji:`емоджи`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO време`,date:`ISO дата`,time:`ISO време`,duration:`ISO продължителност`,ipv4:`IPv4 адрес`,ipv6:`IPv6 адрес`,cidrv4:`IPv4 диапазон`,cidrv6:`IPv6 диапазон`,base64:`base64-кодиран низ`,base64url:`base64url-кодиран низ`,json_string:`JSON низ`,e164:`E.164 номер`,jwt:`JWT`,template_literal:`вход`},r={nan:`NaN`,number:`число`,array:`масив`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=MU(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Невалиден вход: очакван instanceof ${e.expected}, получен ${i}`:`Невалиден вход: очакван ${t}, получен ${i}`}case`invalid_value`:return e.values.length===1?`Невалиден вход: очакван ${gU(e.values[0])}`:`Невалидна опция: очаквано едно от ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Твърде голямо: очаква се ${e.origin??`стойност`} да съдържа ${n}${e.maximum.toString()} ${r.unit??`елемента`}`:`Твърде голямо: очаква се ${e.origin??`стойност`} да бъде ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Твърде малко: очаква се ${e.origin} да съдържа ${n}${e.minimum.toString()} ${r.unit}`:`Твърде малко: очаква се ${e.origin} да бъде ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;if(t.format===`starts_with`)return`Невалиден низ: трябва да започва с "${t.prefix}"`;if(t.format===`ends_with`)return`Невалиден низ: трябва да завършва с "${t.suffix}"`;if(t.format===`includes`)return`Невалиден низ: трябва да включва "${t.includes}"`;if(t.format===`regex`)return`Невалиден низ: трябва да съвпада с ${t.pattern}`;let r=`Невалиден`;return t.format===`emoji`&&(r=`Невалидно`),t.format===`datetime`&&(r=`Невалидно`),t.format===`date`&&(r=`Невалидна`),t.format===`time`&&(r=`Невалидно`),t.format===`duration`&&(r=`Невалидна`),`${r} ${n[t.format]??e.format}`}case`not_multiple_of`:return`Невалидно число: трябва да бъде кратно на ${e.divisor}`;case`unrecognized_keys`:return`Неразпознат${e.keys.length>1?`и`:``} ключ${e.keys.length>1?`ове`:``}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Невалиден ключ в ${e.origin}`;case`invalid_union`:return`Невалиден вход`;case`invalid_element`:return`Невалидна стойност в ${e.origin}`;default:return`Невалиден вход`}}}}));function SJ(){return{localeError:CJ()}}var CJ,wJ=o((()=>{XU(),CJ=()=>{let e={string:{unit:`caràcters`,verb:`contenir`},file:{unit:`bytes`,verb:`contenir`},array:{unit:`elements`,verb:`contenir`},set:{unit:`elements`,verb:`contenir`}};function t(t){return e[t]??null}let n={regex:`entrada`,email:`adreça electrònica`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`data i hora ISO`,date:`data ISO`,time:`hora ISO`,duration:`durada ISO`,ipv4:`adreça IPv4`,ipv6:`adreça IPv6`,cidrv4:`rang IPv4`,cidrv6:`rang IPv6`,base64:`cadena codificada en base64`,base64url:`cadena codificada en base64url`,json_string:`cadena JSON`,e164:`número E.164`,jwt:`JWT`,template_literal:`entrada`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=MU(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Tipus invàlid: s'esperava instanceof ${e.expected}, s'ha rebut ${i}`:`Tipus invàlid: s'esperava ${t}, s'ha rebut ${i}`}case`invalid_value`:return e.values.length===1?`Valor invàlid: s'esperava ${gU(e.values[0])}`:`Opció invàlida: s'esperava una de ${J(e.values,` o `)}`;case`too_big`:{let n=e.inclusive?`com a màxim`:`menys de`,r=t(e.origin);return r?`Massa gran: s'esperava que ${e.origin??`el valor`} contingués ${n} ${e.maximum.toString()} ${r.unit??`elements`}`:`Massa gran: s'esperava que ${e.origin??`el valor`} fos ${n} ${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`com a mínim`:`més de`,r=t(e.origin);return r?`Massa petit: s'esperava que ${e.origin} contingués ${n} ${e.minimum.toString()} ${r.unit}`:`Massa petit: s'esperava que ${e.origin} fos ${n} ${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Format invàlid: ha de començar amb "${t.prefix}"`:t.format===`ends_with`?`Format invàlid: ha d'acabar amb "${t.suffix}"`:t.format===`includes`?`Format invàlid: ha d'incloure "${t.includes}"`:t.format===`regex`?`Format invàlid: ha de coincidir amb el patró ${t.pattern}`:`Format invàlid per a ${n[t.format]??e.format}`}case`not_multiple_of`:return`Número invàlid: ha de ser múltiple de ${e.divisor}`;case`unrecognized_keys`:return`Clau${e.keys.length>1?`s`:``} no reconeguda${e.keys.length>1?`s`:``}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Clau invàlida a ${e.origin}`;case`invalid_union`:return`Entrada invàlida`;case`invalid_element`:return`Element invàlid a ${e.origin}`;default:return`Entrada invàlida`}}}}));function TJ(){return{localeError:EJ()}}var EJ,DJ=o((()=>{XU(),EJ=()=>{let e={string:{unit:`znaků`,verb:`mít`},file:{unit:`bajtů`,verb:`mít`},array:{unit:`prvků`,verb:`mít`},set:{unit:`prvků`,verb:`mít`}};function t(t){return e[t]??null}let n={regex:`regulární výraz`,email:`e-mailová adresa`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`datum a čas ve formátu ISO`,date:`datum ve formátu ISO`,time:`čas ve formátu ISO`,duration:`doba trvání ISO`,ipv4:`IPv4 adresa`,ipv6:`IPv6 adresa`,cidrv4:`rozsah IPv4`,cidrv6:`rozsah IPv6`,base64:`řetězec zakódovaný ve formátu base64`,base64url:`řetězec zakódovaný ve formátu base64url`,json_string:`řetězec ve formátu JSON`,e164:`číslo E.164`,jwt:`JWT`,template_literal:`vstup`},r={nan:`NaN`,number:`číslo`,string:`řetězec`,function:`funkce`,array:`pole`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=MU(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Neplatný vstup: očekáváno instanceof ${e.expected}, obdrženo ${i}`:`Neplatný vstup: očekáváno ${t}, obdrženo ${i}`}case`invalid_value`:return e.values.length===1?`Neplatný vstup: očekáváno ${gU(e.values[0])}`:`Neplatná možnost: očekávána jedna z hodnot ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Hodnota je příliš velká: ${e.origin??`hodnota`} musí mít ${n}${e.maximum.toString()} ${r.unit??`prvků`}`:`Hodnota je příliš velká: ${e.origin??`hodnota`} musí být ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Hodnota je příliš malá: ${e.origin??`hodnota`} musí mít ${n}${e.minimum.toString()} ${r.unit??`prvků`}`:`Hodnota je příliš malá: ${e.origin??`hodnota`} musí být ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Neplatný řetězec: musí začínat na "${t.prefix}"`:t.format===`ends_with`?`Neplatný řetězec: musí končit na "${t.suffix}"`:t.format===`includes`?`Neplatný řetězec: musí obsahovat "${t.includes}"`:t.format===`regex`?`Neplatný řetězec: musí odpovídat vzoru ${t.pattern}`:`Neplatný formát ${n[t.format]??e.format}`}case`not_multiple_of`:return`Neplatné číslo: musí být násobkem ${e.divisor}`;case`unrecognized_keys`:return`Neznámé klíče: ${J(e.keys,`, `)}`;case`invalid_key`:return`Neplatný klíč v ${e.origin}`;case`invalid_union`:return`Neplatný vstup`;case`invalid_element`:return`Neplatná hodnota v ${e.origin}`;default:return`Neplatný vstup`}}}}));function OJ(){return{localeError:kJ()}}var kJ,AJ=o((()=>{XU(),kJ=()=>{let e={string:{unit:`tegn`,verb:`havde`},file:{unit:`bytes`,verb:`havde`},array:{unit:`elementer`,verb:`indeholdt`},set:{unit:`elementer`,verb:`indeholdt`}};function t(t){return e[t]??null}let n={regex:`input`,email:`e-mailadresse`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO dato- og klokkeslæt`,date:`ISO-dato`,time:`ISO-klokkeslæt`,duration:`ISO-varighed`,ipv4:`IPv4-område`,ipv6:`IPv6-område`,cidrv4:`IPv4-spektrum`,cidrv6:`IPv6-spektrum`,base64:`base64-kodet streng`,base64url:`base64url-kodet streng`,json_string:`JSON-streng`,e164:`E.164-nummer`,jwt:`JWT`,template_literal:`input`},r={nan:`NaN`,string:`streng`,number:`tal`,boolean:`boolean`,array:`liste`,object:`objekt`,set:`sæt`,file:`fil`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=MU(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Ugyldigt input: forventede instanceof ${e.expected}, fik ${i}`:`Ugyldigt input: forventede ${t}, fik ${i}`}case`invalid_value`:return e.values.length===1?`Ugyldig værdi: forventede ${gU(e.values[0])}`:`Ugyldigt valg: forventede en af følgende ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,i=t(e.origin),a=r[e.origin]??e.origin;return i?`For stor: forventede ${a??`value`} ${i.verb} ${n} ${e.maximum.toString()} ${i.unit??`elementer`}`:`For stor: forventede ${a??`value`} havde ${n} ${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,i=t(e.origin),a=r[e.origin]??e.origin;return i?`For lille: forventede ${a} ${i.verb} ${n} ${e.minimum.toString()} ${i.unit}`:`For lille: forventede ${a} havde ${n} ${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Ugyldig streng: skal starte med "${t.prefix}"`:t.format===`ends_with`?`Ugyldig streng: skal ende med "${t.suffix}"`:t.format===`includes`?`Ugyldig streng: skal indeholde "${t.includes}"`:t.format===`regex`?`Ugyldig streng: skal matche mønsteret ${t.pattern}`:`Ugyldig ${n[t.format]??e.format}`}case`not_multiple_of`:return`Ugyldigt tal: skal være deleligt med ${e.divisor}`;case`unrecognized_keys`:return`${e.keys.length>1?`Ukendte nøgler`:`Ukendt nøgle`}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Ugyldig nøgle i ${e.origin}`;case`invalid_union`:return`Ugyldigt input: matcher ingen af de tilladte typer`;case`invalid_element`:return`Ugyldig værdi i ${e.origin}`;default:return`Ugyldigt input`}}}}));function jJ(){return{localeError:MJ()}}var MJ,NJ=o((()=>{XU(),MJ=()=>{let e={string:{unit:`Zeichen`,verb:`zu haben`},file:{unit:`Bytes`,verb:`zu haben`},array:{unit:`Elemente`,verb:`zu haben`},set:{unit:`Elemente`,verb:`zu haben`}};function t(t){return e[t]??null}let n={regex:`Eingabe`,email:`E-Mail-Adresse`,url:`URL`,emoji:`Emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO-Datum und -Uhrzeit`,date:`ISO-Datum`,time:`ISO-Uhrzeit`,duration:`ISO-Dauer`,ipv4:`IPv4-Adresse`,ipv6:`IPv6-Adresse`,cidrv4:`IPv4-Bereich`,cidrv6:`IPv6-Bereich`,base64:`Base64-codierter String`,base64url:`Base64-URL-codierter String`,json_string:`JSON-String`,e164:`E.164-Nummer`,jwt:`JWT`,template_literal:`Eingabe`},r={nan:`NaN`,number:`Zahl`,array:`Array`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=MU(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Ungültige Eingabe: erwartet instanceof ${e.expected}, erhalten ${i}`:`Ungültige Eingabe: erwartet ${t}, erhalten ${i}`}case`invalid_value`:return e.values.length===1?`Ungültige Eingabe: erwartet ${gU(e.values[0])}`:`Ungültige Option: erwartet eine von ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Zu groß: erwartet, dass ${e.origin??`Wert`} ${n}${e.maximum.toString()} ${r.unit??`Elemente`} hat`:`Zu groß: erwartet, dass ${e.origin??`Wert`} ${n}${e.maximum.toString()} ist`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Zu klein: erwartet, dass ${e.origin} ${n}${e.minimum.toString()} ${r.unit} hat`:`Zu klein: erwartet, dass ${e.origin} ${n}${e.minimum.toString()} ist`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Ungültiger String: muss mit "${t.prefix}" beginnen`:t.format===`ends_with`?`Ungültiger String: muss mit "${t.suffix}" enden`:t.format===`includes`?`Ungültiger String: muss "${t.includes}" enthalten`:t.format===`regex`?`Ungültiger String: muss dem Muster ${t.pattern} entsprechen`:`Ungültig: ${n[t.format]??e.format}`}case`not_multiple_of`:return`Ungültige Zahl: muss ein Vielfaches von ${e.divisor} sein`;case`unrecognized_keys`:return`${e.keys.length>1?`Unbekannte Schlüssel`:`Unbekannter Schlüssel`}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Ungültiger Schlüssel in ${e.origin}`;case`invalid_union`:return`Ungültige Eingabe`;case`invalid_element`:return`Ungültiger Wert in ${e.origin}`;default:return`Ungültige Eingabe`}}}}));function PJ(){return{localeError:FJ()}}var FJ,IJ=o((()=>{XU(),FJ=()=>{let e={string:{unit:`χαρακτήρες`,verb:`να έχει`},file:{unit:`bytes`,verb:`να έχει`},array:{unit:`στοιχεία`,verb:`να έχει`},set:{unit:`στοιχεία`,verb:`να έχει`},map:{unit:`καταχωρήσεις`,verb:`να έχει`}};function t(t){return e[t]??null}let n={regex:`είσοδος`,email:`διεύθυνση email`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO ημερομηνία και ώρα`,date:`ISO ημερομηνία`,time:`ISO ώρα`,duration:`ISO διάρκεια`,ipv4:`διεύθυνση IPv4`,ipv6:`διεύθυνση IPv6`,mac:`διεύθυνση MAC`,cidrv4:`εύρος IPv4`,cidrv6:`εύρος IPv6`,base64:`συμβολοσειρά κωδικοποιημένη σε base64`,base64url:`συμβολοσειρά κωδικοποιημένη σε base64url`,json_string:`συμβολοσειρά JSON`,e164:`αριθμός E.164`,jwt:`JWT`,template_literal:`είσοδος`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=MU(e.input),i=r[n]??n;return typeof e.expected==`string`&&/^[A-Z]/.test(e.expected)?`Μη έγκυρη είσοδος: αναμενόταν instanceof ${e.expected}, λήφθηκε ${i}`:`Μη έγκυρη είσοδος: αναμενόταν ${t}, λήφθηκε ${i}`}case`invalid_value`:return e.values.length===1?`Μη έγκυρη είσοδος: αναμενόταν ${gU(e.values[0])}`:`Μη έγκυρη επιλογή: αναμενόταν ένα από ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Πολύ μεγάλο: αναμενόταν ${e.origin??`τιμή`} να έχει ${n}${e.maximum.toString()} ${r.unit??`στοιχεία`}`:`Πολύ μεγάλο: αναμενόταν ${e.origin??`τιμή`} να είναι ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Πολύ μικρό: αναμενόταν ${e.origin} να έχει ${n}${e.minimum.toString()} ${r.unit}`:`Πολύ μικρό: αναμενόταν ${e.origin} να είναι ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Μη έγκυρη συμβολοσειρά: πρέπει να ξεκινά με "${t.prefix}"`:t.format===`ends_with`?`Μη έγκυρη συμβολοσειρά: πρέπει να τελειώνει με "${t.suffix}"`:t.format===`includes`?`Μη έγκυρη συμβολοσειρά: πρέπει να περιέχει "${t.includes}"`:t.format===`regex`?`Μη έγκυρη συμβολοσειρά: πρέπει να ταιριάζει με το μοτίβο ${t.pattern}`:`Μη έγκυρο: ${n[t.format]??e.format}`}case`not_multiple_of`:return`Μη έγκυρος αριθμός: πρέπει να είναι πολλαπλάσιο του ${e.divisor}`;case`unrecognized_keys`:return`Άγνωστ${e.keys.length>1?`α`:`ο`} κλειδ${e.keys.length>1?`ιά`:`ί`}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Μη έγκυρο κλειδί στο ${e.origin}`;case`invalid_union`:return`Μη έγκυρη είσοδος`;case`invalid_element`:return`Μη έγκυρη τιμή στο ${e.origin}`;default:return`Μη έγκυρη είσοδος`}}}}));function LJ(){return{localeError:RJ()}}var RJ,zJ=o((()=>{XU(),RJ=()=>{let e={string:{unit:`characters`,verb:`to have`},file:{unit:`bytes`,verb:`to have`},array:{unit:`items`,verb:`to have`},set:{unit:`items`,verb:`to have`},map:{unit:`entries`,verb:`to have`}};function t(t){return e[t]??null}let n={regex:`input`,email:`email address`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO datetime`,date:`ISO date`,time:`ISO time`,duration:`ISO duration`,ipv4:`IPv4 address`,ipv6:`IPv6 address`,mac:`MAC address`,cidrv4:`IPv4 range`,cidrv6:`IPv6 range`,base64:`base64-encoded string`,base64url:`base64url-encoded string`,json_string:`JSON string`,e164:`E.164 number`,jwt:`JWT`,template_literal:`input`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=MU(e.input);return`Invalid input: expected ${t}, received ${r[n]??n}`}case`invalid_value`:return e.values.length===1?`Invalid input: expected ${gU(e.values[0])}`:`Invalid option: expected one of ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Too big: expected ${e.origin??`value`} to have ${n}${e.maximum.toString()} ${r.unit??`elements`}`:`Too big: expected ${e.origin??`value`} to be ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Too small: expected ${e.origin} to have ${n}${e.minimum.toString()} ${r.unit}`:`Too small: expected ${e.origin} to be ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Invalid string: must start with "${t.prefix}"`:t.format===`ends_with`?`Invalid string: must end with "${t.suffix}"`:t.format===`includes`?`Invalid string: must include "${t.includes}"`:t.format===`regex`?`Invalid string: must match pattern ${t.pattern}`:`Invalid ${n[t.format]??e.format}`}case`not_multiple_of`:return`Invalid number: must be a multiple of ${e.divisor}`;case`unrecognized_keys`:return`Unrecognized key${e.keys.length>1?`s`:``}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Invalid key in ${e.origin}`;case`invalid_union`:return e.options&&Array.isArray(e.options)&&e.options.length>0?`Invalid discriminator value. Expected ${e.options.map(e=>`'${e}'`).join(` | `)}`:`Invalid input`;case`invalid_element`:return`Invalid value in ${e.origin}`;default:return`Invalid input`}}}}));function BJ(){return{localeError:VJ()}}var VJ,HJ=o((()=>{XU(),VJ=()=>{let e={string:{unit:`karaktrojn`,verb:`havi`},file:{unit:`bajtojn`,verb:`havi`},array:{unit:`elementojn`,verb:`havi`},set:{unit:`elementojn`,verb:`havi`}};function t(t){return e[t]??null}let n={regex:`enigo`,email:`retadreso`,url:`URL`,emoji:`emoĝio`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO-datotempo`,date:`ISO-dato`,time:`ISO-tempo`,duration:`ISO-daŭro`,ipv4:`IPv4-adreso`,ipv6:`IPv6-adreso`,cidrv4:`IPv4-rango`,cidrv6:`IPv6-rango`,base64:`64-ume kodita karaktraro`,base64url:`URL-64-ume kodita karaktraro`,json_string:`JSON-karaktraro`,e164:`E.164-nombro`,jwt:`JWT`,template_literal:`enigo`},r={nan:`NaN`,number:`nombro`,array:`tabelo`,null:`senvalora`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=MU(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Nevalida enigo: atendiĝis instanceof ${e.expected}, riceviĝis ${i}`:`Nevalida enigo: atendiĝis ${t}, riceviĝis ${i}`}case`invalid_value`:return e.values.length===1?`Nevalida enigo: atendiĝis ${gU(e.values[0])}`:`Nevalida opcio: atendiĝis unu el ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Tro granda: atendiĝis ke ${e.origin??`valoro`} havu ${n}${e.maximum.toString()} ${r.unit??`elementojn`}`:`Tro granda: atendiĝis ke ${e.origin??`valoro`} havu ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Tro malgranda: atendiĝis ke ${e.origin} havu ${n}${e.minimum.toString()} ${r.unit}`:`Tro malgranda: atendiĝis ke ${e.origin} estu ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Nevalida karaktraro: devas komenciĝi per "${t.prefix}"`:t.format===`ends_with`?`Nevalida karaktraro: devas finiĝi per "${t.suffix}"`:t.format===`includes`?`Nevalida karaktraro: devas inkluzivi "${t.includes}"`:t.format===`regex`?`Nevalida karaktraro: devas kongrui kun la modelo ${t.pattern}`:`Nevalida ${n[t.format]??e.format}`}case`not_multiple_of`:return`Nevalida nombro: devas esti oblo de ${e.divisor}`;case`unrecognized_keys`:return`Nekonata${e.keys.length>1?`j`:``} ŝlosilo${e.keys.length>1?`j`:``}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Nevalida ŝlosilo en ${e.origin}`;case`invalid_union`:return`Nevalida enigo`;case`invalid_element`:return`Nevalida valoro en ${e.origin}`;default:return`Nevalida enigo`}}}}));function UJ(){return{localeError:WJ()}}var WJ,GJ=o((()=>{XU(),WJ=()=>{let e={string:{unit:`caracteres`,verb:`tener`},file:{unit:`bytes`,verb:`tener`},array:{unit:`elementos`,verb:`tener`},set:{unit:`elementos`,verb:`tener`}};function t(t){return e[t]??null}let n={regex:`entrada`,email:`dirección de correo electrónico`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`fecha y hora ISO`,date:`fecha ISO`,time:`hora ISO`,duration:`duración ISO`,ipv4:`dirección IPv4`,ipv6:`dirección IPv6`,cidrv4:`rango IPv4`,cidrv6:`rango IPv6`,base64:`cadena codificada en base64`,base64url:`URL codificada en base64`,json_string:`cadena JSON`,e164:`número E.164`,jwt:`JWT`,template_literal:`entrada`},r={nan:`NaN`,string:`texto`,number:`número`,boolean:`booleano`,array:`arreglo`,object:`objeto`,set:`conjunto`,file:`archivo`,date:`fecha`,bigint:`número grande`,symbol:`símbolo`,undefined:`indefinido`,null:`nulo`,function:`función`,map:`mapa`,record:`registro`,tuple:`tupla`,enum:`enumeración`,union:`unión`,literal:`literal`,promise:`promesa`,void:`vacío`,never:`nunca`,unknown:`desconocido`,any:`cualquiera`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=MU(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Entrada inválida: se esperaba instanceof ${e.expected}, recibido ${i}`:`Entrada inválida: se esperaba ${t}, recibido ${i}`}case`invalid_value`:return e.values.length===1?`Entrada inválida: se esperaba ${gU(e.values[0])}`:`Opción inválida: se esperaba una de ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,i=t(e.origin),a=r[e.origin]??e.origin;return i?`Demasiado grande: se esperaba que ${a??`valor`} tuviera ${n}${e.maximum.toString()} ${i.unit??`elementos`}`:`Demasiado grande: se esperaba que ${a??`valor`} fuera ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,i=t(e.origin),a=r[e.origin]??e.origin;return i?`Demasiado pequeño: se esperaba que ${a} tuviera ${n}${e.minimum.toString()} ${i.unit}`:`Demasiado pequeño: se esperaba que ${a} fuera ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Cadena inválida: debe comenzar con "${t.prefix}"`:t.format===`ends_with`?`Cadena inválida: debe terminar en "${t.suffix}"`:t.format===`includes`?`Cadena inválida: debe incluir "${t.includes}"`:t.format===`regex`?`Cadena inválida: debe coincidir con el patrón ${t.pattern}`:`Inválido ${n[t.format]??e.format}`}case`not_multiple_of`:return`Número inválido: debe ser múltiplo de ${e.divisor}`;case`unrecognized_keys`:return`Llave${e.keys.length>1?`s`:``} desconocida${e.keys.length>1?`s`:``}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Llave inválida en ${r[e.origin]??e.origin}`;case`invalid_union`:return`Entrada inválida`;case`invalid_element`:return`Valor inválido en ${r[e.origin]??e.origin}`;default:return`Entrada inválida`}}}}));function KJ(){return{localeError:qJ()}}var qJ,JJ=o((()=>{XU(),qJ=()=>{let e={string:{unit:`کاراکتر`,verb:`داشته باشد`},file:{unit:`بایت`,verb:`داشته باشد`},array:{unit:`آیتم`,verb:`داشته باشد`},set:{unit:`آیتم`,verb:`داشته باشد`}};function t(t){return e[t]??null}let n={regex:`ورودی`,email:`آدرس ایمیل`,url:`URL`,emoji:`ایموجی`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`تاریخ و زمان ایزو`,date:`تاریخ ایزو`,time:`زمان ایزو`,duration:`مدت زمان ایزو`,ipv4:`IPv4 آدرس`,ipv6:`IPv6 آدرس`,cidrv4:`IPv4 دامنه`,cidrv6:`IPv6 دامنه`,base64:`base64-encoded رشته`,base64url:`base64url-encoded رشته`,json_string:`JSON رشته`,e164:`E.164 عدد`,jwt:`JWT`,template_literal:`ورودی`},r={nan:`NaN`,number:`عدد`,array:`آرایه`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=MU(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`ورودی نامعتبر: می‌بایست instanceof ${e.expected} می‌بود، ${i} دریافت شد`:`ورودی نامعتبر: می‌بایست ${t} می‌بود، ${i} دریافت شد`}case`invalid_value`:return e.values.length===1?`ورودی نامعتبر: می‌بایست ${gU(e.values[0])} می‌بود`:`گزینه نامعتبر: می‌بایست یکی از ${J(e.values,`|`)} می‌بود`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`خیلی بزرگ: ${e.origin??`مقدار`} باید ${n}${e.maximum.toString()} ${r.unit??`عنصر`} باشد`:`خیلی بزرگ: ${e.origin??`مقدار`} باید ${n}${e.maximum.toString()} باشد`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`خیلی کوچک: ${e.origin} باید ${n}${e.minimum.toString()} ${r.unit} باشد`:`خیلی کوچک: ${e.origin} باید ${n}${e.minimum.toString()} باشد`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`رشته نامعتبر: باید با "${t.prefix}" شروع شود`:t.format===`ends_with`?`رشته نامعتبر: باید با "${t.suffix}" تمام شود`:t.format===`includes`?`رشته نامعتبر: باید شامل "${t.includes}" باشد`:t.format===`regex`?`رشته نامعتبر: باید با الگوی ${t.pattern} مطابقت داشته باشد`:`${n[t.format]??e.format} نامعتبر`}case`not_multiple_of`:return`عدد نامعتبر: باید مضرب ${e.divisor} باشد`;case`unrecognized_keys`:return`کلید${e.keys.length>1?`های`:``} ناشناس: ${J(e.keys,`, `)}`;case`invalid_key`:return`کلید ناشناس در ${e.origin}`;case`invalid_union`:return`ورودی نامعتبر`;case`invalid_element`:return`مقدار نامعتبر در ${e.origin}`;default:return`ورودی نامعتبر`}}}}));function YJ(){return{localeError:XJ()}}var XJ,ZJ=o((()=>{XU(),XJ=()=>{let e={string:{unit:`merkkiä`,subject:`merkkijonon`},file:{unit:`tavua`,subject:`tiedoston`},array:{unit:`alkiota`,subject:`listan`},set:{unit:`alkiota`,subject:`joukon`},number:{unit:``,subject:`luvun`},bigint:{unit:``,subject:`suuren kokonaisluvun`},int:{unit:``,subject:`kokonaisluvun`},date:{unit:``,subject:`päivämäärän`}};function t(t){return e[t]??null}let n={regex:`säännöllinen lauseke`,email:`sähköpostiosoite`,url:`URL-osoite`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO-aikaleima`,date:`ISO-päivämäärä`,time:`ISO-aika`,duration:`ISO-kesto`,ipv4:`IPv4-osoite`,ipv6:`IPv6-osoite`,cidrv4:`IPv4-alue`,cidrv6:`IPv6-alue`,base64:`base64-koodattu merkkijono`,base64url:`base64url-koodattu merkkijono`,json_string:`JSON-merkkijono`,e164:`E.164-luku`,jwt:`JWT`,template_literal:`templaattimerkkijono`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=MU(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Virheellinen tyyppi: odotettiin instanceof ${e.expected}, oli ${i}`:`Virheellinen tyyppi: odotettiin ${t}, oli ${i}`}case`invalid_value`:return e.values.length===1?`Virheellinen syöte: täytyy olla ${gU(e.values[0])}`:`Virheellinen valinta: täytyy olla yksi seuraavista: ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Liian suuri: ${r.subject} täytyy olla ${n}${e.maximum.toString()} ${r.unit}`.trim():`Liian suuri: arvon täytyy olla ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Liian pieni: ${r.subject} täytyy olla ${n}${e.minimum.toString()} ${r.unit}`.trim():`Liian pieni: arvon täytyy olla ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Virheellinen syöte: täytyy alkaa "${t.prefix}"`:t.format===`ends_with`?`Virheellinen syöte: täytyy loppua "${t.suffix}"`:t.format===`includes`?`Virheellinen syöte: täytyy sisältää "${t.includes}"`:t.format===`regex`?`Virheellinen syöte: täytyy vastata säännöllistä lauseketta ${t.pattern}`:`Virheellinen ${n[t.format]??e.format}`}case`not_multiple_of`:return`Virheellinen luku: täytyy olla luvun ${e.divisor} monikerta`;case`unrecognized_keys`:return`${e.keys.length>1?`Tuntemattomat avaimet`:`Tuntematon avain`}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Virheellinen avain tietueessa`;case`invalid_union`:return`Virheellinen unioni`;case`invalid_element`:return`Virheellinen arvo joukossa`;default:return`Virheellinen syöte`}}}}));function QJ(){return{localeError:$J()}}var $J,eY=o((()=>{XU(),$J=()=>{let e={string:{unit:`caractères`,verb:`avoir`},file:{unit:`octets`,verb:`avoir`},array:{unit:`éléments`,verb:`avoir`},set:{unit:`éléments`,verb:`avoir`}};function t(t){return e[t]??null}let n={regex:`entrée`,email:`adresse e-mail`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`date et heure ISO`,date:`date ISO`,time:`heure ISO`,duration:`durée ISO`,ipv4:`adresse IPv4`,ipv6:`adresse IPv6`,cidrv4:`plage IPv4`,cidrv6:`plage IPv6`,base64:`chaîne encodée en base64`,base64url:`chaîne encodée en base64url`,json_string:`chaîne JSON`,e164:`numéro E.164`,jwt:`JWT`,template_literal:`entrée`},r={string:`chaîne`,number:`nombre`,int:`entier`,boolean:`booléen`,bigint:`grand entier`,symbol:`symbole`,undefined:`indéfini`,null:`null`,never:`jamais`,void:`vide`,date:`date`,array:`tableau`,object:`objet`,tuple:`tuple`,record:`enregistrement`,map:`carte`,set:`ensemble`,file:`fichier`,nonoptional:`non-optionnel`,nan:`NaN`,function:`fonction`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=MU(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Entrée invalide : instanceof ${e.expected} attendu, ${i} reçu`:`Entrée invalide : ${t} attendu, ${i} reçu`}case`invalid_value`:return e.values.length===1?`Entrée invalide : ${gU(e.values[0])} attendu`:`Option invalide : une valeur parmi ${J(e.values,`|`)} attendue`;case`too_big`:{let n=e.inclusive?`<=`:`<`,i=t(e.origin);return i?`Trop grand : ${r[e.origin]??`valeur`} doit ${i.verb} ${n}${e.maximum.toString()} ${i.unit??`élément(s)`}`:`Trop grand : ${r[e.origin]??`valeur`} doit être ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,i=t(e.origin);return i?`Trop petit : ${r[e.origin]??`valeur`} doit ${i.verb} ${n}${e.minimum.toString()} ${i.unit}`:`Trop petit : ${r[e.origin]??`valeur`} doit être ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Chaîne invalide : doit commencer par "${t.prefix}"`:t.format===`ends_with`?`Chaîne invalide : doit se terminer par "${t.suffix}"`:t.format===`includes`?`Chaîne invalide : doit inclure "${t.includes}"`:t.format===`regex`?`Chaîne invalide : doit correspondre au modèle ${t.pattern}`:`${n[t.format]??e.format} invalide`}case`not_multiple_of`:return`Nombre invalide : doit être un multiple de ${e.divisor}`;case`unrecognized_keys`:return`Clé${e.keys.length>1?`s`:``} non reconnue${e.keys.length>1?`s`:``} : ${J(e.keys,`, `)}`;case`invalid_key`:return`Clé invalide dans ${e.origin}`;case`invalid_union`:return`Entrée invalide`;case`invalid_element`:return`Valeur invalide dans ${e.origin}`;default:return`Entrée invalide`}}}}));function tY(){return{localeError:nY()}}var nY,rY=o((()=>{XU(),nY=()=>{let e={string:{unit:`caractères`,verb:`avoir`},file:{unit:`octets`,verb:`avoir`},array:{unit:`éléments`,verb:`avoir`},set:{unit:`éléments`,verb:`avoir`}};function t(t){return e[t]??null}let n={regex:`entrée`,email:`adresse courriel`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`date-heure ISO`,date:`date ISO`,time:`heure ISO`,duration:`durée ISO`,ipv4:`adresse IPv4`,ipv6:`adresse IPv6`,cidrv4:`plage IPv4`,cidrv6:`plage IPv6`,base64:`chaîne encodée en base64`,base64url:`chaîne encodée en base64url`,json_string:`chaîne JSON`,e164:`numéro E.164`,jwt:`JWT`,template_literal:`entrée`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=MU(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Entrée invalide : attendu instanceof ${e.expected}, reçu ${i}`:`Entrée invalide : attendu ${t}, reçu ${i}`}case`invalid_value`:return e.values.length===1?`Entrée invalide : attendu ${gU(e.values[0])}`:`Option invalide : attendu l'une des valeurs suivantes ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`≤`:`<`,r=t(e.origin);return r?`Trop grand : attendu que ${e.origin??`la valeur`} ait ${n}${e.maximum.toString()} ${r.unit}`:`Trop grand : attendu que ${e.origin??`la valeur`} soit ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`≥`:`>`,r=t(e.origin);return r?`Trop petit : attendu que ${e.origin} ait ${n}${e.minimum.toString()} ${r.unit}`:`Trop petit : attendu que ${e.origin} soit ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Chaîne invalide : doit commencer par "${t.prefix}"`:t.format===`ends_with`?`Chaîne invalide : doit se terminer par "${t.suffix}"`:t.format===`includes`?`Chaîne invalide : doit inclure "${t.includes}"`:t.format===`regex`?`Chaîne invalide : doit correspondre au motif ${t.pattern}`:`${n[t.format]??e.format} invalide`}case`not_multiple_of`:return`Nombre invalide : doit être un multiple de ${e.divisor}`;case`unrecognized_keys`:return`Clé${e.keys.length>1?`s`:``} non reconnue${e.keys.length>1?`s`:``} : ${J(e.keys,`, `)}`;case`invalid_key`:return`Clé invalide dans ${e.origin}`;case`invalid_union`:return`Entrée invalide`;case`invalid_element`:return`Valeur invalide dans ${e.origin}`;default:return`Entrée invalide`}}}}));function iY(){return{localeError:aY()}}var aY,oY=o((()=>{XU(),aY=()=>{let e={string:{label:`מחרוזת`,gender:`f`},number:{label:`מספר`,gender:`m`},boolean:{label:`ערך בוליאני`,gender:`m`},bigint:{label:`BigInt`,gender:`m`},date:{label:`תאריך`,gender:`m`},array:{label:`מערך`,gender:`m`},object:{label:`אובייקט`,gender:`m`},null:{label:`ערך ריק (null)`,gender:`m`},undefined:{label:`ערך לא מוגדר (undefined)`,gender:`m`},symbol:{label:`סימבול (Symbol)`,gender:`m`},function:{label:`פונקציה`,gender:`f`},map:{label:`מפה (Map)`,gender:`f`},set:{label:`קבוצה (Set)`,gender:`f`},file:{label:`קובץ`,gender:`m`},promise:{label:`Promise`,gender:`m`},NaN:{label:`NaN`,gender:`m`},unknown:{label:`ערך לא ידוע`,gender:`m`},value:{label:`ערך`,gender:`m`}},t={string:{unit:`תווים`,shortLabel:`קצר`,longLabel:`ארוך`},file:{unit:`בייטים`,shortLabel:`קטן`,longLabel:`גדול`},array:{unit:`פריטים`,shortLabel:`קטן`,longLabel:`גדול`},set:{unit:`פריטים`,shortLabel:`קטן`,longLabel:`גדול`},number:{unit:``,shortLabel:`קטן`,longLabel:`גדול`}},n=t=>t?e[t]:void 0,r=t=>{let r=n(t);return r?r.label:t??e.unknown.label},i=e=>`ה${r(e)}`,a=e=>(n(e)?.gender??`m`)===`f`?`צריכה להיות`:`צריך להיות`,o=e=>e?t[e]??null:null,s={regex:{label:`קלט`,gender:`m`},email:{label:`כתובת אימייל`,gender:`f`},url:{label:`כתובת רשת`,gender:`f`},emoji:{label:`אימוג'י`,gender:`m`},uuid:{label:`UUID`,gender:`m`},nanoid:{label:`nanoid`,gender:`m`},guid:{label:`GUID`,gender:`m`},cuid:{label:`cuid`,gender:`m`},cuid2:{label:`cuid2`,gender:`m`},ulid:{label:`ULID`,gender:`m`},xid:{label:`XID`,gender:`m`},ksuid:{label:`KSUID`,gender:`m`},datetime:{label:`תאריך וזמן ISO`,gender:`m`},date:{label:`תאריך ISO`,gender:`m`},time:{label:`זמן ISO`,gender:`m`},duration:{label:`משך זמן ISO`,gender:`m`},ipv4:{label:`כתובת IPv4`,gender:`f`},ipv6:{label:`כתובת IPv6`,gender:`f`},cidrv4:{label:`טווח IPv4`,gender:`m`},cidrv6:{label:`טווח IPv6`,gender:`m`},base64:{label:`מחרוזת בבסיס 64`,gender:`f`},base64url:{label:`מחרוזת בבסיס 64 לכתובות רשת`,gender:`f`},json_string:{label:`מחרוזת JSON`,gender:`f`},e164:{label:`מספר E.164`,gender:`m`},jwt:{label:`JWT`,gender:`m`},ends_with:{label:`קלט`,gender:`m`},includes:{label:`קלט`,gender:`m`},lowercase:{label:`קלט`,gender:`m`},starts_with:{label:`קלט`,gender:`m`},uppercase:{label:`קלט`,gender:`m`}},c={nan:`NaN`};return t=>{switch(t.code){case`invalid_type`:{let n=t.expected,i=c[n??``]??r(n),a=MU(t.input),o=c[a]??e[a]?.label??a;return/^[A-Z]/.test(t.expected)?`קלט לא תקין: צריך להיות instanceof ${t.expected}, התקבל ${o}`:`קלט לא תקין: צריך להיות ${i}, התקבל ${o}`}case`invalid_value`:{if(t.values.length===1)return`ערך לא תקין: הערך חייב להיות ${gU(t.values[0])}`;let e=t.values.map(e=>gU(e));if(t.values.length===2)return`ערך לא תקין: האפשרויות המתאימות הן ${e[0]} או ${e[1]}`;let n=e[e.length-1];return`ערך לא תקין: האפשרויות המתאימות הן ${e.slice(0,-1).join(`, `)} או ${n}`}case`too_big`:{let e=o(t.origin),n=i(t.origin??`value`);if(t.origin===`string`)return`${e?.longLabel??`ארוך`} מדי: ${n} צריכה להכיל ${t.maximum.toString()} ${e?.unit??``} ${t.inclusive?`או פחות`:`לכל היותר`}`.trim();if(t.origin===`number`)return`גדול מדי: ${n} צריך להיות ${t.inclusive?`קטן או שווה ל-${t.maximum}`:`קטן מ-${t.maximum}`}`;if(t.origin===`array`||t.origin===`set`)return`גדול מדי: ${n} ${t.origin===`set`?`צריכה`:`צריך`} להכיל ${t.inclusive?`${t.maximum} ${e?.unit??``} או פחות`:`פחות מ-${t.maximum} ${e?.unit??``}`}`.trim();let r=t.inclusive?`<=`:`<`,s=a(t.origin??`value`);return e?.unit?`${e.longLabel} מדי: ${n} ${s} ${r}${t.maximum.toString()} ${e.unit}`:`${e?.longLabel??`גדול`} מדי: ${n} ${s} ${r}${t.maximum.toString()}`}case`too_small`:{let e=o(t.origin),n=i(t.origin??`value`);if(t.origin===`string`)return`${e?.shortLabel??`קצר`} מדי: ${n} צריכה להכיל ${t.minimum.toString()} ${e?.unit??``} ${t.inclusive?`או יותר`:`לפחות`}`.trim();if(t.origin===`number`)return`קטן מדי: ${n} צריך להיות ${t.inclusive?`גדול או שווה ל-${t.minimum}`:`גדול מ-${t.minimum}`}`;if(t.origin===`array`||t.origin===`set`){let r=t.origin===`set`?`צריכה`:`צריך`;return t.minimum===1&&t.inclusive?`קטן מדי: ${n} ${r} להכיל ${t.origin,`לפחות פריט אחד`}`:`קטן מדי: ${n} ${r} להכיל ${t.inclusive?`${t.minimum} ${e?.unit??``} או יותר`:`יותר מ-${t.minimum} ${e?.unit??``}`}`.trim()}let r=t.inclusive?`>=`:`>`,s=a(t.origin??`value`);return e?.unit?`${e.shortLabel} מדי: ${n} ${s} ${r}${t.minimum.toString()} ${e.unit}`:`${e?.shortLabel??`קטן`} מדי: ${n} ${s} ${r}${t.minimum.toString()}`}case`invalid_format`:{let e=t;if(e.format===`starts_with`)return`המחרוזת חייבת להתחיל ב "${e.prefix}"`;if(e.format===`ends_with`)return`המחרוזת חייבת להסתיים ב "${e.suffix}"`;if(e.format===`includes`)return`המחרוזת חייבת לכלול "${e.includes}"`;if(e.format===`regex`)return`המחרוזת חייבת להתאים לתבנית ${e.pattern}`;let n=s[e.format];return`${n?.label??e.format} לא ${(n?.gender??`m`)===`f`?`תקינה`:`תקין`}`}case`not_multiple_of`:return`מספר לא תקין: חייב להיות מכפלה של ${t.divisor}`;case`unrecognized_keys`:return`מפתח${t.keys.length>1?`ות`:``} לא מזוה${t.keys.length>1?`ים`:`ה`}: ${J(t.keys,`, `)}`;case`invalid_key`:return`שדה לא תקין באובייקט`;case`invalid_union`:return`קלט לא תקין`;case`invalid_element`:return`ערך לא תקין ב${i(t.origin??`array`)}`;default:return`קלט לא תקין`}}}}));function sY(){return{localeError:cY()}}var cY,lY=o((()=>{XU(),cY=()=>{let e={string:{unit:`znakova`,verb:`imati`},file:{unit:`bajtova`,verb:`imati`},array:{unit:`stavki`,verb:`imati`},set:{unit:`stavki`,verb:`imati`}};function t(t){return e[t]??null}let n={regex:`unos`,email:`email adresa`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO datum i vrijeme`,date:`ISO datum`,time:`ISO vrijeme`,duration:`ISO trajanje`,ipv4:`IPv4 adresa`,ipv6:`IPv6 adresa`,cidrv4:`IPv4 raspon`,cidrv6:`IPv6 raspon`,base64:`base64 kodirani tekst`,base64url:`base64url kodirani tekst`,json_string:`JSON tekst`,e164:`E.164 broj`,jwt:`JWT`,template_literal:`unos`},r={nan:`NaN`,string:`tekst`,number:`broj`,boolean:`boolean`,array:`niz`,object:`objekt`,set:`skup`,file:`datoteka`,date:`datum`,bigint:`bigint`,symbol:`simbol`,undefined:`undefined`,null:`null`,function:`funkcija`,map:`mapa`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=MU(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Neispravan unos: očekuje se instanceof ${e.expected}, a primljeno je ${i}`:`Neispravan unos: očekuje se ${t}, a primljeno je ${i}`}case`invalid_value`:return e.values.length===1?`Neispravna vrijednost: očekivano ${gU(e.values[0])}`:`Neispravna opcija: očekivano jedno od ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,i=t(e.origin),a=r[e.origin]??e.origin;return i?`Preveliko: očekivano da ${a??`vrijednost`} ima ${n}${e.maximum.toString()} ${i.unit??`elemenata`}`:`Preveliko: očekivano da ${a??`vrijednost`} bude ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,i=t(e.origin),a=r[e.origin]??e.origin;return i?`Premalo: očekivano da ${a} ima ${n}${e.minimum.toString()} ${i.unit}`:`Premalo: očekivano da ${a} bude ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Neispravan tekst: mora započinjati s "${t.prefix}"`:t.format===`ends_with`?`Neispravan tekst: mora završavati s "${t.suffix}"`:t.format===`includes`?`Neispravan tekst: mora sadržavati "${t.includes}"`:t.format===`regex`?`Neispravan tekst: mora odgovarati uzorku ${t.pattern}`:`Neispravna ${n[t.format]??e.format}`}case`not_multiple_of`:return`Neispravan broj: mora biti višekratnik od ${e.divisor}`;case`unrecognized_keys`:return`Neprepoznat${e.keys.length>1?`i ključevi`:` ključ`}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Neispravan ključ u ${r[e.origin]??e.origin}`;case`invalid_union`:return`Neispravan unos`;case`invalid_element`:return`Neispravna vrijednost u ${r[e.origin]??e.origin}`;default:return`Neispravan unos`}}}}));function uY(){return{localeError:dY()}}var dY,fY=o((()=>{XU(),dY=()=>{let e={string:{unit:`karakter`,verb:`legyen`},file:{unit:`byte`,verb:`legyen`},array:{unit:`elem`,verb:`legyen`},set:{unit:`elem`,verb:`legyen`}};function t(t){return e[t]??null}let n={regex:`bemenet`,email:`email cím`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO időbélyeg`,date:`ISO dátum`,time:`ISO idő`,duration:`ISO időintervallum`,ipv4:`IPv4 cím`,ipv6:`IPv6 cím`,cidrv4:`IPv4 tartomány`,cidrv6:`IPv6 tartomány`,base64:`base64-kódolt string`,base64url:`base64url-kódolt string`,json_string:`JSON string`,e164:`E.164 szám`,jwt:`JWT`,template_literal:`bemenet`},r={nan:`NaN`,number:`szám`,array:`tömb`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=MU(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Érvénytelen bemenet: a várt érték instanceof ${e.expected}, a kapott érték ${i}`:`Érvénytelen bemenet: a várt érték ${t}, a kapott érték ${i}`}case`invalid_value`:return e.values.length===1?`Érvénytelen bemenet: a várt érték ${gU(e.values[0])}`:`Érvénytelen opció: valamelyik érték várt ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Túl nagy: ${e.origin??`érték`} mérete túl nagy ${n}${e.maximum.toString()} ${r.unit??`elem`}`:`Túl nagy: a bemeneti érték ${e.origin??`érték`} túl nagy: ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Túl kicsi: a bemeneti érték ${e.origin} mérete túl kicsi ${n}${e.minimum.toString()} ${r.unit}`:`Túl kicsi: a bemeneti érték ${e.origin} túl kicsi ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Érvénytelen string: "${t.prefix}" értékkel kell kezdődnie`:t.format===`ends_with`?`Érvénytelen string: "${t.suffix}" értékkel kell végződnie`:t.format===`includes`?`Érvénytelen string: "${t.includes}" értéket kell tartalmaznia`:t.format===`regex`?`Érvénytelen string: ${t.pattern} mintának kell megfelelnie`:`Érvénytelen ${n[t.format]??e.format}`}case`not_multiple_of`:return`Érvénytelen szám: ${e.divisor} többszörösének kell lennie`;case`unrecognized_keys`:return`Ismeretlen kulcs${e.keys.length>1?`s`:``}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Érvénytelen kulcs ${e.origin}`;case`invalid_union`:return`Érvénytelen bemenet`;case`invalid_element`:return`Érvénytelen érték: ${e.origin}`;default:return`Érvénytelen bemenet`}}}}));function pY(e,t,n){return Math.abs(e)===1?t:n}function mY(e){if(!e)return``;let t=[`ա`,`ե`,`ը`,`ի`,`ո`,`ու`,`օ`],n=e[e.length-1];return e+(t.includes(n)?`ն`:`ը`)}function hY(){return{localeError:gY()}}var gY,_Y=o((()=>{XU(),gY=()=>{let e={string:{unit:{one:`նշան`,many:`նշաններ`},verb:`ունենալ`},file:{unit:{one:`բայթ`,many:`բայթեր`},verb:`ունենալ`},array:{unit:{one:`տարր`,many:`տարրեր`},verb:`ունենալ`},set:{unit:{one:`տարր`,many:`տարրեր`},verb:`ունենալ`}};function t(t){return e[t]??null}let n={regex:`մուտք`,email:`էլ. հասցե`,url:`URL`,emoji:`էմոջի`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO ամսաթիվ և ժամ`,date:`ISO ամսաթիվ`,time:`ISO ժամ`,duration:`ISO տևողություն`,ipv4:`IPv4 հասցե`,ipv6:`IPv6 հասցե`,cidrv4:`IPv4 միջակայք`,cidrv6:`IPv6 միջակայք`,base64:`base64 ձևաչափով տող`,base64url:`base64url ձևաչափով տող`,json_string:`JSON տող`,e164:`E.164 համար`,jwt:`JWT`,template_literal:`մուտք`},r={nan:`NaN`,number:`թիվ`,array:`զանգված`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=MU(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Սխալ մուտքագրում․ սպասվում էր instanceof ${e.expected}, ստացվել է ${i}`:`Սխալ մուտքագրում․ սպասվում էր ${t}, ստացվել է ${i}`}case`invalid_value`:return e.values.length===1?`Սխալ մուտքագրում․ սպասվում էր ${gU(e.values[1])}`:`Սխալ տարբերակ․ սպասվում էր հետևյալներից մեկը՝ ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);if(r){let t=pY(Number(e.maximum),r.unit.one,r.unit.many);return`Չափազանց մեծ արժեք․ սպասվում է, որ ${mY(e.origin??`արժեք`)} կունենա ${n}${e.maximum.toString()} ${t}`}return`Չափազանց մեծ արժեք․ սպասվում է, որ ${mY(e.origin??`արժեք`)} լինի ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);if(r){let t=pY(Number(e.minimum),r.unit.one,r.unit.many);return`Չափազանց փոքր արժեք․ սպասվում է, որ ${mY(e.origin)} կունենա ${n}${e.minimum.toString()} ${t}`}return`Չափազանց փոքր արժեք․ սպասվում է, որ ${mY(e.origin)} լինի ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Սխալ տող․ պետք է սկսվի "${t.prefix}"-ով`:t.format===`ends_with`?`Սխալ տող․ պետք է ավարտվի "${t.suffix}"-ով`:t.format===`includes`?`Սխալ տող․ պետք է պարունակի "${t.includes}"`:t.format===`regex`?`Սխալ տող․ պետք է համապատասխանի ${t.pattern} ձևաչափին`:`Սխալ ${n[t.format]??e.format}`}case`not_multiple_of`:return`Սխալ թիվ․ պետք է բազմապատիկ լինի ${e.divisor}-ի`;case`unrecognized_keys`:return`Չճանաչված բանալի${e.keys.length>1?`ներ`:``}. ${J(e.keys,`, `)}`;case`invalid_key`:return`Սխալ բանալի ${mY(e.origin)}-ում`;case`invalid_union`:return`Սխալ մուտքագրում`;case`invalid_element`:return`Սխալ արժեք ${mY(e.origin)}-ում`;default:return`Սխալ մուտքագրում`}}}}));function vY(){return{localeError:yY()}}var yY,bY=o((()=>{XU(),yY=()=>{let e={string:{unit:`karakter`,verb:`memiliki`},file:{unit:`byte`,verb:`memiliki`},array:{unit:`item`,verb:`memiliki`},set:{unit:`item`,verb:`memiliki`}};function t(t){return e[t]??null}let n={regex:`input`,email:`alamat email`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`tanggal dan waktu format ISO`,date:`tanggal format ISO`,time:`jam format ISO`,duration:`durasi format ISO`,ipv4:`alamat IPv4`,ipv6:`alamat IPv6`,cidrv4:`rentang alamat IPv4`,cidrv6:`rentang alamat IPv6`,base64:`string dengan enkode base64`,base64url:`string dengan enkode base64url`,json_string:`string JSON`,e164:`angka E.164`,jwt:`JWT`,template_literal:`input`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=MU(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Input tidak valid: diharapkan instanceof ${e.expected}, diterima ${i}`:`Input tidak valid: diharapkan ${t}, diterima ${i}`}case`invalid_value`:return e.values.length===1?`Input tidak valid: diharapkan ${gU(e.values[0])}`:`Pilihan tidak valid: diharapkan salah satu dari ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Terlalu besar: diharapkan ${e.origin??`value`} memiliki ${n}${e.maximum.toString()} ${r.unit??`elemen`}`:`Terlalu besar: diharapkan ${e.origin??`value`} menjadi ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Terlalu kecil: diharapkan ${e.origin} memiliki ${n}${e.minimum.toString()} ${r.unit}`:`Terlalu kecil: diharapkan ${e.origin} menjadi ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`String tidak valid: harus dimulai dengan "${t.prefix}"`:t.format===`ends_with`?`String tidak valid: harus berakhir dengan "${t.suffix}"`:t.format===`includes`?`String tidak valid: harus menyertakan "${t.includes}"`:t.format===`regex`?`String tidak valid: harus sesuai pola ${t.pattern}`:`${n[t.format]??e.format} tidak valid`}case`not_multiple_of`:return`Angka tidak valid: harus kelipatan dari ${e.divisor}`;case`unrecognized_keys`:return`Kunci tidak dikenali ${e.keys.length>1?`s`:``}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Kunci tidak valid di ${e.origin}`;case`invalid_union`:return`Input tidak valid`;case`invalid_element`:return`Nilai tidak valid di ${e.origin}`;default:return`Input tidak valid`}}}}));function xY(){return{localeError:SY()}}var SY,CY=o((()=>{XU(),SY=()=>{let e={string:{unit:`stafi`,verb:`að hafa`},file:{unit:`bæti`,verb:`að hafa`},array:{unit:`hluti`,verb:`að hafa`},set:{unit:`hluti`,verb:`að hafa`}};function t(t){return e[t]??null}let n={regex:`gildi`,email:`netfang`,url:`vefslóð`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO dagsetning og tími`,date:`ISO dagsetning`,time:`ISO tími`,duration:`ISO tímalengd`,ipv4:`IPv4 address`,ipv6:`IPv6 address`,cidrv4:`IPv4 range`,cidrv6:`IPv6 range`,base64:`base64-encoded strengur`,base64url:`base64url-encoded strengur`,json_string:`JSON strengur`,e164:`E.164 tölugildi`,jwt:`JWT`,template_literal:`gildi`},r={nan:`NaN`,number:`númer`,array:`fylki`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=MU(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Rangt gildi: Þú slóst inn ${i} þar sem á að vera instanceof ${e.expected}`:`Rangt gildi: Þú slóst inn ${i} þar sem á að vera ${t}`}case`invalid_value`:return e.values.length===1?`Rangt gildi: gert ráð fyrir ${gU(e.values[0])}`:`Ógilt val: má vera eitt af eftirfarandi ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Of stórt: gert er ráð fyrir að ${e.origin??`gildi`} hafi ${n}${e.maximum.toString()} ${r.unit??`hluti`}`:`Of stórt: gert er ráð fyrir að ${e.origin??`gildi`} sé ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Of lítið: gert er ráð fyrir að ${e.origin} hafi ${n}${e.minimum.toString()} ${r.unit}`:`Of lítið: gert er ráð fyrir að ${e.origin} sé ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Ógildur strengur: verður að byrja á "${t.prefix}"`:t.format===`ends_with`?`Ógildur strengur: verður að enda á "${t.suffix}"`:t.format===`includes`?`Ógildur strengur: verður að innihalda "${t.includes}"`:t.format===`regex`?`Ógildur strengur: verður að fylgja mynstri ${t.pattern}`:`Rangt ${n[t.format]??e.format}`}case`not_multiple_of`:return`Röng tala: verður að vera margfeldi af ${e.divisor}`;case`unrecognized_keys`:return`Óþekkt ${e.keys.length>1?`ir lyklar`:`ur lykill`}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Rangur lykill í ${e.origin}`;case`invalid_union`:return`Rangt gildi`;case`invalid_element`:return`Rangt gildi í ${e.origin}`;default:return`Rangt gildi`}}}}));function wY(){return{localeError:TY()}}var TY,EY=o((()=>{XU(),TY=()=>{let e={string:{unit:`caratteri`,verb:`avere`},file:{unit:`byte`,verb:`avere`},array:{unit:`elementi`,verb:`avere`},set:{unit:`elementi`,verb:`avere`}};function t(t){return e[t]??null}let n={regex:`input`,email:`indirizzo email`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`data e ora ISO`,date:`data ISO`,time:`ora ISO`,duration:`durata ISO`,ipv4:`indirizzo IPv4`,ipv6:`indirizzo IPv6`,cidrv4:`intervallo IPv4`,cidrv6:`intervallo IPv6`,base64:`stringa codificata in base64`,base64url:`URL codificata in base64`,json_string:`stringa JSON`,e164:`numero E.164`,jwt:`JWT`,template_literal:`input`},r={nan:`NaN`,number:`numero`,array:`vettore`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=MU(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Input non valido: atteso instanceof ${e.expected}, ricevuto ${i}`:`Input non valido: atteso ${t}, ricevuto ${i}`}case`invalid_value`:return e.values.length===1?`Input non valido: atteso ${gU(e.values[0])}`:`Opzione non valida: atteso uno tra ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Troppo grande: ${e.origin??`valore`} deve avere ${n}${e.maximum.toString()} ${r.unit??`elementi`}`:`Troppo grande: ${e.origin??`valore`} deve essere ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Troppo piccolo: ${e.origin} deve avere ${n}${e.minimum.toString()} ${r.unit}`:`Troppo piccolo: ${e.origin} deve essere ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Stringa non valida: deve iniziare con "${t.prefix}"`:t.format===`ends_with`?`Stringa non valida: deve terminare con "${t.suffix}"`:t.format===`includes`?`Stringa non valida: deve includere "${t.includes}"`:t.format===`regex`?`Stringa non valida: deve corrispondere al pattern ${t.pattern}`:`Input non valido: ${n[t.format]??e.format}`}case`not_multiple_of`:return`Numero non valido: deve essere un multiplo di ${e.divisor}`;case`unrecognized_keys`:return`Chiav${e.keys.length>1?`i`:`e`} non riconosciut${e.keys.length>1?`e`:`a`}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Chiave non valida in ${e.origin}`;case`invalid_union`:return`Input non valido`;case`invalid_element`:return`Valore non valido in ${e.origin}`;default:return`Input non valido`}}}}));function DY(){return{localeError:OY()}}var OY,kY=o((()=>{XU(),OY=()=>{let e={string:{unit:`文字`,verb:`である`},file:{unit:`バイト`,verb:`である`},array:{unit:`要素`,verb:`である`},set:{unit:`要素`,verb:`である`}};function t(t){return e[t]??null}let n={regex:`入力値`,email:`メールアドレス`,url:`URL`,emoji:`絵文字`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO日時`,date:`ISO日付`,time:`ISO時刻`,duration:`ISO期間`,ipv4:`IPv4アドレス`,ipv6:`IPv6アドレス`,cidrv4:`IPv4範囲`,cidrv6:`IPv6範囲`,base64:`base64エンコード文字列`,base64url:`base64urlエンコード文字列`,json_string:`JSON文字列`,e164:`E.164番号`,jwt:`JWT`,template_literal:`入力値`},r={nan:`NaN`,number:`数値`,array:`配列`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=MU(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`無効な入力: instanceof ${e.expected}が期待されましたが、${i}が入力されました`:`無効な入力: ${t}が期待されましたが、${i}が入力されました`}case`invalid_value`:return e.values.length===1?`無効な入力: ${gU(e.values[0])}が期待されました`:`無効な選択: ${J(e.values,`、`)}のいずれかである必要があります`;case`too_big`:{let n=e.inclusive?`以下である`:`より小さい`,r=t(e.origin);return r?`大きすぎる値: ${e.origin??`値`}は${e.maximum.toString()}${r.unit??`要素`}${n}必要があります`:`大きすぎる値: ${e.origin??`値`}は${e.maximum.toString()}${n}必要があります`}case`too_small`:{let n=e.inclusive?`以上である`:`より大きい`,r=t(e.origin);return r?`小さすぎる値: ${e.origin}は${e.minimum.toString()}${r.unit}${n}必要があります`:`小さすぎる値: ${e.origin}は${e.minimum.toString()}${n}必要があります`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`無効な文字列: "${t.prefix}"で始まる必要があります`:t.format===`ends_with`?`無効な文字列: "${t.suffix}"で終わる必要があります`:t.format===`includes`?`無効な文字列: "${t.includes}"を含む必要があります`:t.format===`regex`?`無効な文字列: パターン${t.pattern}に一致する必要があります`:`無効な${n[t.format]??e.format}`}case`not_multiple_of`:return`無効な数値: ${e.divisor}の倍数である必要があります`;case`unrecognized_keys`:return`認識されていないキー${e.keys.length>1?`群`:``}: ${J(e.keys,`、`)}`;case`invalid_key`:return`${e.origin}内の無効なキー`;case`invalid_union`:return`無効な入力`;case`invalid_element`:return`${e.origin}内の無効な値`;default:return`無効な入力`}}}}));function AY(){return{localeError:jY()}}var jY,MY=o((()=>{XU(),jY=()=>{let e={string:{unit:`სიმბოლო`,verb:`უნდა შეიცავდეს`},file:{unit:`ბაიტი`,verb:`უნდა შეიცავდეს`},array:{unit:`ელემენტი`,verb:`უნდა შეიცავდეს`},set:{unit:`ელემენტი`,verb:`უნდა შეიცავდეს`}};function t(t){return e[t]??null}let n={regex:`შეყვანა`,email:`ელ-ფოსტის მისამართი`,url:`URL`,emoji:`ემოჯი`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`თარიღი-დრო`,date:`თარიღი`,time:`დრო`,duration:`ხანგრძლივობა`,ipv4:`IPv4 მისამართი`,ipv6:`IPv6 მისამართი`,cidrv4:`IPv4 დიაპაზონი`,cidrv6:`IPv6 დიაპაზონი`,base64:`base64-კოდირებული ველი`,base64url:`base64url-კოდირებული ველი`,json_string:`JSON ველი`,e164:`E.164 ნომერი`,jwt:`JWT`,template_literal:`შეყვანა`},r={nan:`NaN`,number:`რიცხვი`,string:`ველი`,boolean:`ბულეანი`,function:`ფუნქცია`,array:`მასივი`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=MU(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`არასწორი შეყვანა: მოსალოდნელი instanceof ${e.expected}, მიღებული ${i}`:`არასწორი შეყვანა: მოსალოდნელი ${t}, მიღებული ${i}`}case`invalid_value`:return e.values.length===1?`არასწორი შეყვანა: მოსალოდნელი ${gU(e.values[0])}`:`არასწორი ვარიანტი: მოსალოდნელია ერთ-ერთი ${J(e.values,`|`)}-დან`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`ზედმეტად დიდი: მოსალოდნელი ${e.origin??`მნიშვნელობა`} ${r.verb} ${n}${e.maximum.toString()} ${r.unit}`:`ზედმეტად დიდი: მოსალოდნელი ${e.origin??`მნიშვნელობა`} იყოს ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`ზედმეტად პატარა: მოსალოდნელი ${e.origin} ${r.verb} ${n}${e.minimum.toString()} ${r.unit}`:`ზედმეტად პატარა: მოსალოდნელი ${e.origin} იყოს ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`არასწორი ველი: უნდა იწყებოდეს "${t.prefix}"-ით`:t.format===`ends_with`?`არასწორი ველი: უნდა მთავრდებოდეს "${t.suffix}"-ით`:t.format===`includes`?`არასწორი ველი: უნდა შეიცავდეს "${t.includes}"-ს`:t.format===`regex`?`არასწორი ველი: უნდა შეესაბამებოდეს შაბლონს ${t.pattern}`:`არასწორი ${n[t.format]??e.format}`}case`not_multiple_of`:return`არასწორი რიცხვი: უნდა იყოს ${e.divisor}-ის ჯერადი`;case`unrecognized_keys`:return`უცნობი გასაღებ${e.keys.length>1?`ები`:`ი`}: ${J(e.keys,`, `)}`;case`invalid_key`:return`არასწორი გასაღები ${e.origin}-ში`;case`invalid_union`:return`არასწორი შეყვანა`;case`invalid_element`:return`არასწორი მნიშვნელობა ${e.origin}-ში`;default:return`არასწორი შეყვანა`}}}}));function NY(){return{localeError:PY()}}var PY,FY=o((()=>{XU(),PY=()=>{let e={string:{unit:`តួអក្សរ`,verb:`គួរមាន`},file:{unit:`បៃ`,verb:`គួរមាន`},array:{unit:`ធាតុ`,verb:`គួរមាន`},set:{unit:`ធាតុ`,verb:`គួរមាន`}};function t(t){return e[t]??null}let n={regex:`ទិន្នន័យបញ្ចូល`,email:`អាសយដ្ឋានអ៊ីមែល`,url:`URL`,emoji:`សញ្ញាអារម្មណ៍`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`កាលបរិច្ឆេទ និងម៉ោង ISO`,date:`កាលបរិច្ឆេទ ISO`,time:`ម៉ោង ISO`,duration:`រយៈពេល ISO`,ipv4:`អាសយដ្ឋាន IPv4`,ipv6:`អាសយដ្ឋាន IPv6`,cidrv4:`ដែនអាសយដ្ឋាន IPv4`,cidrv6:`ដែនអាសយដ្ឋាន IPv6`,base64:`ខ្សែអក្សរអ៊ិកូដ base64`,base64url:`ខ្សែអក្សរអ៊ិកូដ base64url`,json_string:`ខ្សែអក្សរ JSON`,e164:`លេខ E.164`,jwt:`JWT`,template_literal:`ទិន្នន័យបញ្ចូល`},r={nan:`NaN`,number:`លេខ`,array:`អារេ (Array)`,null:`គ្មានតម្លៃ (null)`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=MU(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ instanceof ${e.expected} ប៉ុន្តែទទួលបាន ${i}`:`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ ${t} ប៉ុន្តែទទួលបាន ${i}`}case`invalid_value`:return e.values.length===1?`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ ${gU(e.values[0])}`:`ជម្រើសមិនត្រឹមត្រូវ៖ ត្រូវជាមួយក្នុងចំណោម ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`ធំពេក៖ ត្រូវការ ${e.origin??`តម្លៃ`} ${n} ${e.maximum.toString()} ${r.unit??`ធាតុ`}`:`ធំពេក៖ ត្រូវការ ${e.origin??`តម្លៃ`} ${n} ${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`តូចពេក៖ ត្រូវការ ${e.origin} ${n} ${e.minimum.toString()} ${r.unit}`:`តូចពេក៖ ត្រូវការ ${e.origin} ${n} ${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវចាប់ផ្តើមដោយ "${t.prefix}"`:t.format===`ends_with`?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវបញ្ចប់ដោយ "${t.suffix}"`:t.format===`includes`?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវមាន "${t.includes}"`:t.format===`regex`?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវតែផ្គូផ្គងនឹងទម្រង់ដែលបានកំណត់ ${t.pattern}`:`មិនត្រឹមត្រូវ៖ ${n[t.format]??e.format}`}case`not_multiple_of`:return`លេខមិនត្រឹមត្រូវ៖ ត្រូវតែជាពហុគុណនៃ ${e.divisor}`;case`unrecognized_keys`:return`រកឃើញសោមិនស្គាល់៖ ${J(e.keys,`, `)}`;case`invalid_key`:return`សោមិនត្រឹមត្រូវនៅក្នុង ${e.origin}`;case`invalid_union`:return`ទិន្នន័យមិនត្រឹមត្រូវ`;case`invalid_element`:return`ទិន្នន័យមិនត្រឹមត្រូវនៅក្នុង ${e.origin}`;default:return`ទិន្នន័យមិនត្រឹមត្រូវ`}}}}));function IY(){return NY()}var LY=o((()=>{FY()}));function RY(){return{localeError:zY()}}var zY,BY=o((()=>{XU(),zY=()=>{let e={string:{unit:`문자`,verb:`to have`},file:{unit:`바이트`,verb:`to have`},array:{unit:`개`,verb:`to have`},set:{unit:`개`,verb:`to have`}};function t(t){return e[t]??null}let n={regex:`입력`,email:`이메일 주소`,url:`URL`,emoji:`이모지`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO 날짜시간`,date:`ISO 날짜`,time:`ISO 시간`,duration:`ISO 기간`,ipv4:`IPv4 주소`,ipv6:`IPv6 주소`,cidrv4:`IPv4 범위`,cidrv6:`IPv6 범위`,base64:`base64 인코딩 문자열`,base64url:`base64url 인코딩 문자열`,json_string:`JSON 문자열`,e164:`E.164 번호`,jwt:`JWT`,template_literal:`입력`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=MU(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`잘못된 입력: 예상 타입은 instanceof ${e.expected}, 받은 타입은 ${i}입니다`:`잘못된 입력: 예상 타입은 ${t}, 받은 타입은 ${i}입니다`}case`invalid_value`:return e.values.length===1?`잘못된 입력: 값은 ${gU(e.values[0])} 이어야 합니다`:`잘못된 옵션: ${J(e.values,`또는 `)} 중 하나여야 합니다`;case`too_big`:{let n=e.inclusive?`이하`:`미만`,r=n===`미만`?`이어야 합니다`:`여야 합니다`,i=t(e.origin),a=i?.unit??`요소`;return i?`${e.origin??`값`}이 너무 큽니다: ${e.maximum.toString()}${a} ${n}${r}`:`${e.origin??`값`}이 너무 큽니다: ${e.maximum.toString()} ${n}${r}`}case`too_small`:{let n=e.inclusive?`이상`:`초과`,r=n===`이상`?`이어야 합니다`:`여야 합니다`,i=t(e.origin),a=i?.unit??`요소`;return i?`${e.origin??`값`}이 너무 작습니다: ${e.minimum.toString()}${a} ${n}${r}`:`${e.origin??`값`}이 너무 작습니다: ${e.minimum.toString()} ${n}${r}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`잘못된 문자열: "${t.prefix}"(으)로 시작해야 합니다`:t.format===`ends_with`?`잘못된 문자열: "${t.suffix}"(으)로 끝나야 합니다`:t.format===`includes`?`잘못된 문자열: "${t.includes}"을(를) 포함해야 합니다`:t.format===`regex`?`잘못된 문자열: 정규식 ${t.pattern} 패턴과 일치해야 합니다`:`잘못된 ${n[t.format]??e.format}`}case`not_multiple_of`:return`잘못된 숫자: ${e.divisor}의 배수여야 합니다`;case`unrecognized_keys`:return`인식할 수 없는 키: ${J(e.keys,`, `)}`;case`invalid_key`:return`잘못된 키: ${e.origin}`;case`invalid_union`:return`잘못된 입력`;case`invalid_element`:return`잘못된 값: ${e.origin}`;default:return`잘못된 입력`}}}}));function VY(e){let t=Math.abs(e),n=t%10,r=t%100;return r>=11&&r<=19||n===0?`many`:n===1?`one`:`few`}function HY(){return{localeError:WY()}}var UY,WY,GY=o((()=>{XU(),UY=e=>e.charAt(0).toUpperCase()+e.slice(1),WY=()=>{let e={string:{unit:{one:`simbolis`,few:`simboliai`,many:`simbolių`},verb:{smaller:{inclusive:`turi būti ne ilgesnė kaip`,notInclusive:`turi būti trumpesnė kaip`},bigger:{inclusive:`turi būti ne trumpesnė kaip`,notInclusive:`turi būti ilgesnė kaip`}}},file:{unit:{one:`baitas`,few:`baitai`,many:`baitų`},verb:{smaller:{inclusive:`turi būti ne didesnis kaip`,notInclusive:`turi būti mažesnis kaip`},bigger:{inclusive:`turi būti ne mažesnis kaip`,notInclusive:`turi būti didesnis kaip`}}},array:{unit:{one:`elementą`,few:`elementus`,many:`elementų`},verb:{smaller:{inclusive:`turi turėti ne daugiau kaip`,notInclusive:`turi turėti mažiau kaip`},bigger:{inclusive:`turi turėti ne mažiau kaip`,notInclusive:`turi turėti daugiau kaip`}}},set:{unit:{one:`elementą`,few:`elementus`,many:`elementų`},verb:{smaller:{inclusive:`turi turėti ne daugiau kaip`,notInclusive:`turi turėti mažiau kaip`},bigger:{inclusive:`turi turėti ne mažiau kaip`,notInclusive:`turi turėti daugiau kaip`}}}};function t(t,n,r,i){let a=e[t]??null;return a===null?a:{unit:a.unit[n],verb:a.verb[i][r?`inclusive`:`notInclusive`]}}let n={regex:`įvestis`,email:`el. pašto adresas`,url:`URL`,emoji:`jaustukas`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO data ir laikas`,date:`ISO data`,time:`ISO laikas`,duration:`ISO trukmė`,ipv4:`IPv4 adresas`,ipv6:`IPv6 adresas`,cidrv4:`IPv4 tinklo prefiksas (CIDR)`,cidrv6:`IPv6 tinklo prefiksas (CIDR)`,base64:`base64 užkoduota eilutė`,base64url:`base64url užkoduota eilutė`,json_string:`JSON eilutė`,e164:`E.164 numeris`,jwt:`JWT`,template_literal:`įvestis`},r={nan:`NaN`,number:`skaičius`,bigint:`sveikasis skaičius`,string:`eilutė`,boolean:`loginė reikšmė`,undefined:`neapibrėžta reikšmė`,function:`funkcija`,symbol:`simbolis`,array:`masyvas`,object:`objektas`,null:`nulinė reikšmė`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=MU(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Gautas tipas ${i}, o tikėtasi - instanceof ${e.expected}`:`Gautas tipas ${i}, o tikėtasi - ${t}`}case`invalid_value`:return e.values.length===1?`Privalo būti ${gU(e.values[0])}`:`Privalo būti vienas iš ${J(e.values,`|`)} pasirinkimų`;case`too_big`:{let n=r[e.origin]??e.origin,i=t(e.origin,VY(Number(e.maximum)),e.inclusive??!1,`smaller`);if(i?.verb)return`${UY(n??e.origin??`reikšmė`)} ${i.verb} ${e.maximum.toString()} ${i.unit??`elementų`}`;let a=e.inclusive?`ne didesnis kaip`:`mažesnis kaip`;return`${UY(n??e.origin??`reikšmė`)} turi būti ${a} ${e.maximum.toString()} ${i?.unit}`}case`too_small`:{let n=r[e.origin]??e.origin,i=t(e.origin,VY(Number(e.minimum)),e.inclusive??!1,`bigger`);if(i?.verb)return`${UY(n??e.origin??`reikšmė`)} ${i.verb} ${e.minimum.toString()} ${i.unit??`elementų`}`;let a=e.inclusive?`ne mažesnis kaip`:`didesnis kaip`;return`${UY(n??e.origin??`reikšmė`)} turi būti ${a} ${e.minimum.toString()} ${i?.unit}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Eilutė privalo prasidėti "${t.prefix}"`:t.format===`ends_with`?`Eilutė privalo pasibaigti "${t.suffix}"`:t.format===`includes`?`Eilutė privalo įtraukti "${t.includes}"`:t.format===`regex`?`Eilutė privalo atitikti ${t.pattern}`:`Neteisingas ${n[t.format]??e.format}`}case`not_multiple_of`:return`Skaičius privalo būti ${e.divisor} kartotinis.`;case`unrecognized_keys`:return`Neatpažint${e.keys.length>1?`i`:`as`} rakt${e.keys.length>1?`ai`:`as`}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Rastas klaidingas raktas`;case`invalid_union`:return`Klaidinga įvestis`;case`invalid_element`:{let t=r[e.origin]??e.origin;return`${UY(t??e.origin??`reikšmė`)} turi klaidingą įvestį`}default:return`Klaidinga įvestis`}}}}));function KY(){return{localeError:qY()}}var qY,JY=o((()=>{XU(),qY=()=>{let e={string:{unit:`знаци`,verb:`да имаат`},file:{unit:`бајти`,verb:`да имаат`},array:{unit:`ставки`,verb:`да имаат`},set:{unit:`ставки`,verb:`да имаат`}};function t(t){return e[t]??null}let n={regex:`внес`,email:`адреса на е-пошта`,url:`URL`,emoji:`емоџи`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO датум и време`,date:`ISO датум`,time:`ISO време`,duration:`ISO времетраење`,ipv4:`IPv4 адреса`,ipv6:`IPv6 адреса`,cidrv4:`IPv4 опсег`,cidrv6:`IPv6 опсег`,base64:`base64-енкодирана низа`,base64url:`base64url-енкодирана низа`,json_string:`JSON низа`,e164:`E.164 број`,jwt:`JWT`,template_literal:`внес`},r={nan:`NaN`,number:`број`,array:`низа`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=MU(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Грешен внес: се очекува instanceof ${e.expected}, примено ${i}`:`Грешен внес: се очекува ${t}, примено ${i}`}case`invalid_value`:return e.values.length===1?`Invalid input: expected ${gU(e.values[0])}`:`Грешана опција: се очекува една ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Премногу голем: се очекува ${e.origin??`вредноста`} да има ${n}${e.maximum.toString()} ${r.unit??`елементи`}`:`Премногу голем: се очекува ${e.origin??`вредноста`} да биде ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Премногу мал: се очекува ${e.origin} да има ${n}${e.minimum.toString()} ${r.unit}`:`Премногу мал: се очекува ${e.origin} да биде ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Неважечка низа: мора да започнува со "${t.prefix}"`:t.format===`ends_with`?`Неважечка низа: мора да завршува со "${t.suffix}"`:t.format===`includes`?`Неважечка низа: мора да вклучува "${t.includes}"`:t.format===`regex`?`Неважечка низа: мора да одгоара на патернот ${t.pattern}`:`Invalid ${n[t.format]??e.format}`}case`not_multiple_of`:return`Грешен број: мора да биде делив со ${e.divisor}`;case`unrecognized_keys`:return`${e.keys.length>1?`Непрепознаени клучеви`:`Непрепознаен клуч`}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Грешен клуч во ${e.origin}`;case`invalid_union`:return`Грешен внес`;case`invalid_element`:return`Грешна вредност во ${e.origin}`;default:return`Грешен внес`}}}}));function YY(){return{localeError:XY()}}var XY,ZY=o((()=>{XU(),XY=()=>{let e={string:{unit:`aksara`,verb:`mempunyai`},file:{unit:`bait`,verb:`mempunyai`},array:{unit:`elemen`,verb:`mempunyai`},set:{unit:`elemen`,verb:`mempunyai`}};function t(t){return e[t]??null}let n={regex:`input`,email:`alamat e-mel`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`tarikh masa ISO`,date:`tarikh ISO`,time:`masa ISO`,duration:`tempoh ISO`,ipv4:`alamat IPv4`,ipv6:`alamat IPv6`,cidrv4:`julat IPv4`,cidrv6:`julat IPv6`,base64:`string dikodkan base64`,base64url:`string dikodkan base64url`,json_string:`string JSON`,e164:`nombor E.164`,jwt:`JWT`,template_literal:`input`},r={nan:`NaN`,number:`nombor`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=MU(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Input tidak sah: dijangka instanceof ${e.expected}, diterima ${i}`:`Input tidak sah: dijangka ${t}, diterima ${i}`}case`invalid_value`:return e.values.length===1?`Input tidak sah: dijangka ${gU(e.values[0])}`:`Pilihan tidak sah: dijangka salah satu daripada ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Terlalu besar: dijangka ${e.origin??`nilai`} ${r.verb} ${n}${e.maximum.toString()} ${r.unit??`elemen`}`:`Terlalu besar: dijangka ${e.origin??`nilai`} adalah ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Terlalu kecil: dijangka ${e.origin} ${r.verb} ${n}${e.minimum.toString()} ${r.unit}`:`Terlalu kecil: dijangka ${e.origin} adalah ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`String tidak sah: mesti bermula dengan "${t.prefix}"`:t.format===`ends_with`?`String tidak sah: mesti berakhir dengan "${t.suffix}"`:t.format===`includes`?`String tidak sah: mesti mengandungi "${t.includes}"`:t.format===`regex`?`String tidak sah: mesti sepadan dengan corak ${t.pattern}`:`${n[t.format]??e.format} tidak sah`}case`not_multiple_of`:return`Nombor tidak sah: perlu gandaan ${e.divisor}`;case`unrecognized_keys`:return`Kunci tidak dikenali: ${J(e.keys,`, `)}`;case`invalid_key`:return`Kunci tidak sah dalam ${e.origin}`;case`invalid_union`:return`Input tidak sah`;case`invalid_element`:return`Nilai tidak sah dalam ${e.origin}`;default:return`Input tidak sah`}}}}));function QY(){return{localeError:$Y()}}var $Y,eX=o((()=>{XU(),$Y=()=>{let e={string:{unit:`tekens`,verb:`heeft`},file:{unit:`bytes`,verb:`heeft`},array:{unit:`elementen`,verb:`heeft`},set:{unit:`elementen`,verb:`heeft`}};function t(t){return e[t]??null}let n={regex:`invoer`,email:`emailadres`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO datum en tijd`,date:`ISO datum`,time:`ISO tijd`,duration:`ISO duur`,ipv4:`IPv4-adres`,ipv6:`IPv6-adres`,cidrv4:`IPv4-bereik`,cidrv6:`IPv6-bereik`,base64:`base64-gecodeerde tekst`,base64url:`base64 URL-gecodeerde tekst`,json_string:`JSON string`,e164:`E.164-nummer`,jwt:`JWT`,template_literal:`invoer`},r={nan:`NaN`,number:`getal`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=MU(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Ongeldige invoer: verwacht instanceof ${e.expected}, ontving ${i}`:`Ongeldige invoer: verwacht ${t}, ontving ${i}`}case`invalid_value`:return e.values.length===1?`Ongeldige invoer: verwacht ${gU(e.values[0])}`:`Ongeldige optie: verwacht één van ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin),i=e.origin===`date`?`laat`:e.origin===`string`?`lang`:`groot`;return r?`Te ${i}: verwacht dat ${e.origin??`waarde`} ${n}${e.maximum.toString()} ${r.unit??`elementen`} ${r.verb}`:`Te ${i}: verwacht dat ${e.origin??`waarde`} ${n}${e.maximum.toString()} is`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin),i=e.origin===`date`?`vroeg`:e.origin===`string`?`kort`:`klein`;return r?`Te ${i}: verwacht dat ${e.origin} ${n}${e.minimum.toString()} ${r.unit} ${r.verb}`:`Te ${i}: verwacht dat ${e.origin} ${n}${e.minimum.toString()} is`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Ongeldige tekst: moet met "${t.prefix}" beginnen`:t.format===`ends_with`?`Ongeldige tekst: moet op "${t.suffix}" eindigen`:t.format===`includes`?`Ongeldige tekst: moet "${t.includes}" bevatten`:t.format===`regex`?`Ongeldige tekst: moet overeenkomen met patroon ${t.pattern}`:`Ongeldig: ${n[t.format]??e.format}`}case`not_multiple_of`:return`Ongeldig getal: moet een veelvoud van ${e.divisor} zijn`;case`unrecognized_keys`:return`Onbekende key${e.keys.length>1?`s`:``}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Ongeldige key in ${e.origin}`;case`invalid_union`:return`Ongeldige invoer`;case`invalid_element`:return`Ongeldige waarde in ${e.origin}`;default:return`Ongeldige invoer`}}}}));function tX(){return{localeError:nX()}}var nX,rX=o((()=>{XU(),nX=()=>{let e={string:{unit:`tegn`,verb:`å ha`},file:{unit:`bytes`,verb:`å ha`},array:{unit:`elementer`,verb:`å inneholde`},set:{unit:`elementer`,verb:`å inneholde`}};function t(t){return e[t]??null}let n={regex:`input`,email:`e-postadresse`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO dato- og klokkeslett`,date:`ISO-dato`,time:`ISO-klokkeslett`,duration:`ISO-varighet`,ipv4:`IPv4-område`,ipv6:`IPv6-område`,cidrv4:`IPv4-spekter`,cidrv6:`IPv6-spekter`,base64:`base64-enkodet streng`,base64url:`base64url-enkodet streng`,json_string:`JSON-streng`,e164:`E.164-nummer`,jwt:`JWT`,template_literal:`input`},r={nan:`NaN`,number:`tall`,array:`liste`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=MU(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Ugyldig input: forventet instanceof ${e.expected}, fikk ${i}`:`Ugyldig input: forventet ${t}, fikk ${i}`}case`invalid_value`:return e.values.length===1?`Ugyldig verdi: forventet ${gU(e.values[0])}`:`Ugyldig valg: forventet en av ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`For stor(t): forventet ${e.origin??`value`} til å ha ${n}${e.maximum.toString()} ${r.unit??`elementer`}`:`For stor(t): forventet ${e.origin??`value`} til å ha ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`For lite(n): forventet ${e.origin} til å ha ${n}${e.minimum.toString()} ${r.unit}`:`For lite(n): forventet ${e.origin} til å ha ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Ugyldig streng: må starte med "${t.prefix}"`:t.format===`ends_with`?`Ugyldig streng: må ende med "${t.suffix}"`:t.format===`includes`?`Ugyldig streng: må inneholde "${t.includes}"`:t.format===`regex`?`Ugyldig streng: må matche mønsteret ${t.pattern}`:`Ugyldig ${n[t.format]??e.format}`}case`not_multiple_of`:return`Ugyldig tall: må være et multiplum av ${e.divisor}`;case`unrecognized_keys`:return`${e.keys.length>1?`Ukjente nøkler`:`Ukjent nøkkel`}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Ugyldig nøkkel i ${e.origin}`;case`invalid_union`:return`Ugyldig input`;case`invalid_element`:return`Ugyldig verdi i ${e.origin}`;default:return`Ugyldig input`}}}}));function iX(){return{localeError:aX()}}var aX,oX=o((()=>{XU(),aX=()=>{let e={string:{unit:`harf`,verb:`olmalıdır`},file:{unit:`bayt`,verb:`olmalıdır`},array:{unit:`unsur`,verb:`olmalıdır`},set:{unit:`unsur`,verb:`olmalıdır`}};function t(t){return e[t]??null}let n={regex:`giren`,email:`epostagâh`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO hengâmı`,date:`ISO tarihi`,time:`ISO zamanı`,duration:`ISO müddeti`,ipv4:`IPv4 nişânı`,ipv6:`IPv6 nişânı`,cidrv4:`IPv4 menzili`,cidrv6:`IPv6 menzili`,base64:`base64-şifreli metin`,base64url:`base64url-şifreli metin`,json_string:`JSON metin`,e164:`E.164 sayısı`,jwt:`JWT`,template_literal:`giren`},r={nan:`NaN`,number:`numara`,array:`saf`,null:`gayb`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=MU(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Fâsit giren: umulan instanceof ${e.expected}, alınan ${i}`:`Fâsit giren: umulan ${t}, alınan ${i}`}case`invalid_value`:return e.values.length===1?`Fâsit giren: umulan ${gU(e.values[0])}`:`Fâsit tercih: mûteberler ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Fazla büyük: ${e.origin??`value`}, ${n}${e.maximum.toString()} ${r.unit??`elements`} sahip olmalıydı.`:`Fazla büyük: ${e.origin??`value`}, ${n}${e.maximum.toString()} olmalıydı.`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Fazla küçük: ${e.origin}, ${n}${e.minimum.toString()} ${r.unit} sahip olmalıydı.`:`Fazla küçük: ${e.origin}, ${n}${e.minimum.toString()} olmalıydı.`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Fâsit metin: "${t.prefix}" ile başlamalı.`:t.format===`ends_with`?`Fâsit metin: "${t.suffix}" ile bitmeli.`:t.format===`includes`?`Fâsit metin: "${t.includes}" ihtivâ etmeli.`:t.format===`regex`?`Fâsit metin: ${t.pattern} nakşına uymalı.`:`Fâsit ${n[t.format]??e.format}`}case`not_multiple_of`:return`Fâsit sayı: ${e.divisor} katı olmalıydı.`;case`unrecognized_keys`:return`Tanınmayan anahtar ${e.keys.length>1?`s`:``}: ${J(e.keys,`, `)}`;case`invalid_key`:return`${e.origin} için tanınmayan anahtar var.`;case`invalid_union`:return`Giren tanınamadı.`;case`invalid_element`:return`${e.origin} için tanınmayan kıymet var.`;default:return`Kıymet tanınamadı.`}}}}));function sX(){return{localeError:cX()}}var cX,lX=o((()=>{XU(),cX=()=>{let e={string:{unit:`توکي`,verb:`ولري`},file:{unit:`بایټس`,verb:`ولري`},array:{unit:`توکي`,verb:`ولري`},set:{unit:`توکي`,verb:`ولري`}};function t(t){return e[t]??null}let n={regex:`ورودي`,email:`بریښنالیک`,url:`یو آر ال`,emoji:`ایموجي`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`نیټه او وخت`,date:`نېټه`,time:`وخت`,duration:`موده`,ipv4:`د IPv4 پته`,ipv6:`د IPv6 پته`,cidrv4:`د IPv4 ساحه`,cidrv6:`د IPv6 ساحه`,base64:`base64-encoded متن`,base64url:`base64url-encoded متن`,json_string:`JSON متن`,e164:`د E.164 شمېره`,jwt:`JWT`,template_literal:`ورودي`},r={nan:`NaN`,number:`عدد`,array:`ارې`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=MU(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`ناسم ورودي: باید instanceof ${e.expected} وای, مګر ${i} ترلاسه شو`:`ناسم ورودي: باید ${t} وای, مګر ${i} ترلاسه شو`}case`invalid_value`:return e.values.length===1?`ناسم ورودي: باید ${gU(e.values[0])} وای`:`ناسم انتخاب: باید یو له ${J(e.values,`|`)} څخه وای`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`ډیر لوی: ${e.origin??`ارزښت`} باید ${n}${e.maximum.toString()} ${r.unit??`عنصرونه`} ولري`:`ډیر لوی: ${e.origin??`ارزښت`} باید ${n}${e.maximum.toString()} وي`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`ډیر کوچنی: ${e.origin} باید ${n}${e.minimum.toString()} ${r.unit} ولري`:`ډیر کوچنی: ${e.origin} باید ${n}${e.minimum.toString()} وي`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`ناسم متن: باید د "${t.prefix}" سره پیل شي`:t.format===`ends_with`?`ناسم متن: باید د "${t.suffix}" سره پای ته ورسيږي`:t.format===`includes`?`ناسم متن: باید "${t.includes}" ولري`:t.format===`regex`?`ناسم متن: باید د ${t.pattern} سره مطابقت ولري`:`${n[t.format]??e.format} ناسم دی`}case`not_multiple_of`:return`ناسم عدد: باید د ${e.divisor} مضرب وي`;case`unrecognized_keys`:return`ناسم ${e.keys.length>1?`کلیډونه`:`کلیډ`}: ${J(e.keys,`, `)}`;case`invalid_key`:return`ناسم کلیډ په ${e.origin} کې`;case`invalid_union`:return`ناسمه ورودي`;case`invalid_element`:return`ناسم عنصر په ${e.origin} کې`;default:return`ناسمه ورودي`}}}}));function uX(){return{localeError:dX()}}var dX,fX=o((()=>{XU(),dX=()=>{let e={string:{unit:`znaków`,verb:`mieć`},file:{unit:`bajtów`,verb:`mieć`},array:{unit:`elementów`,verb:`mieć`},set:{unit:`elementów`,verb:`mieć`}};function t(t){return e[t]??null}let n={regex:`wyrażenie`,email:`adres email`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`data i godzina w formacie ISO`,date:`data w formacie ISO`,time:`godzina w formacie ISO`,duration:`czas trwania ISO`,ipv4:`adres IPv4`,ipv6:`adres IPv6`,cidrv4:`zakres IPv4`,cidrv6:`zakres IPv6`,base64:`ciąg znaków zakodowany w formacie base64`,base64url:`ciąg znaków zakodowany w formacie base64url`,json_string:`ciąg znaków w formacie JSON`,e164:`liczba E.164`,jwt:`JWT`,template_literal:`wejście`},r={nan:`NaN`,number:`liczba`,array:`tablica`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=MU(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Nieprawidłowe dane wejściowe: oczekiwano instanceof ${e.expected}, otrzymano ${i}`:`Nieprawidłowe dane wejściowe: oczekiwano ${t}, otrzymano ${i}`}case`invalid_value`:return e.values.length===1?`Nieprawidłowe dane wejściowe: oczekiwano ${gU(e.values[0])}`:`Nieprawidłowa opcja: oczekiwano jednej z wartości ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Za duża wartość: oczekiwano, że ${e.origin??`wartość`} będzie mieć ${n}${e.maximum.toString()} ${r.unit??`elementów`}`:`Zbyt duż(y/a/e): oczekiwano, że ${e.origin??`wartość`} będzie wynosić ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Za mała wartość: oczekiwano, że ${e.origin??`wartość`} będzie mieć ${n}${e.minimum.toString()} ${r.unit??`elementów`}`:`Zbyt mał(y/a/e): oczekiwano, że ${e.origin??`wartość`} będzie wynosić ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Nieprawidłowy ciąg znaków: musi zaczynać się od "${t.prefix}"`:t.format===`ends_with`?`Nieprawidłowy ciąg znaków: musi kończyć się na "${t.suffix}"`:t.format===`includes`?`Nieprawidłowy ciąg znaków: musi zawierać "${t.includes}"`:t.format===`regex`?`Nieprawidłowy ciąg znaków: musi odpowiadać wzorcowi ${t.pattern}`:`Nieprawidłow(y/a/e) ${n[t.format]??e.format}`}case`not_multiple_of`:return`Nieprawidłowa liczba: musi być wielokrotnością ${e.divisor}`;case`unrecognized_keys`:return`Nierozpoznane klucze${e.keys.length>1?`s`:``}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Nieprawidłowy klucz w ${e.origin}`;case`invalid_union`:return`Nieprawidłowe dane wejściowe`;case`invalid_element`:return`Nieprawidłowa wartość w ${e.origin}`;default:return`Nieprawidłowe dane wejściowe`}}}}));function pX(){return{localeError:mX()}}var mX,hX=o((()=>{XU(),mX=()=>{let e={string:{unit:`caracteres`,verb:`ter`},file:{unit:`bytes`,verb:`ter`},array:{unit:`itens`,verb:`ter`},set:{unit:`itens`,verb:`ter`}};function t(t){return e[t]??null}let n={regex:`padrão`,email:`endereço de e-mail`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`data e hora ISO`,date:`data ISO`,time:`hora ISO`,duration:`duração ISO`,ipv4:`endereço IPv4`,ipv6:`endereço IPv6`,cidrv4:`faixa de IPv4`,cidrv6:`faixa de IPv6`,base64:`texto codificado em base64`,base64url:`URL codificada em base64`,json_string:`texto JSON`,e164:`número E.164`,jwt:`JWT`,template_literal:`entrada`},r={nan:`NaN`,number:`número`,null:`nulo`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=MU(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Tipo inválido: esperado instanceof ${e.expected}, recebido ${i}`:`Tipo inválido: esperado ${t}, recebido ${i}`}case`invalid_value`:return e.values.length===1?`Entrada inválida: esperado ${gU(e.values[0])}`:`Opção inválida: esperada uma das ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Muito grande: esperado que ${e.origin??`valor`} tivesse ${n}${e.maximum.toString()} ${r.unit??`elementos`}`:`Muito grande: esperado que ${e.origin??`valor`} fosse ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Muito pequeno: esperado que ${e.origin} tivesse ${n}${e.minimum.toString()} ${r.unit}`:`Muito pequeno: esperado que ${e.origin} fosse ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Texto inválido: deve começar com "${t.prefix}"`:t.format===`ends_with`?`Texto inválido: deve terminar com "${t.suffix}"`:t.format===`includes`?`Texto inválido: deve incluir "${t.includes}"`:t.format===`regex`?`Texto inválido: deve corresponder ao padrão ${t.pattern}`:`${n[t.format]??e.format} inválido`}case`not_multiple_of`:return`Número inválido: deve ser múltiplo de ${e.divisor}`;case`unrecognized_keys`:return`Chave${e.keys.length>1?`s`:``} desconhecida${e.keys.length>1?`s`:``}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Chave inválida em ${e.origin}`;case`invalid_union`:return`Entrada inválida`;case`invalid_element`:return`Valor inválido em ${e.origin}`;default:return`Campo inválido`}}}}));function gX(){return{localeError:_X()}}var _X,vX=o((()=>{XU(),_X=()=>{let e={string:{unit:`caractere`,verb:`să aibă`},file:{unit:`octeți`,verb:`să aibă`},array:{unit:`elemente`,verb:`să aibă`},set:{unit:`elemente`,verb:`să aibă`},map:{unit:`intrări`,verb:`să aibă`}};function t(t){return e[t]??null}let n={regex:`intrare`,email:`adresă de email`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`dată și oră ISO`,date:`dată ISO`,time:`oră ISO`,duration:`durată ISO`,ipv4:`adresă IPv4`,ipv6:`adresă IPv6`,mac:`adresă MAC`,cidrv4:`interval IPv4`,cidrv6:`interval IPv6`,base64:`șir codat base64`,base64url:`șir codat base64url`,json_string:`șir JSON`,e164:`număr E.164`,jwt:`JWT`,template_literal:`intrare`},r={nan:`NaN`,string:`șir`,number:`număr`,boolean:`boolean`,function:`funcție`,array:`matrice`,object:`obiect`,undefined:`nedefinit`,symbol:`simbol`,bigint:`număr mare`,void:`void`,never:`never`,map:`hartă`,set:`set`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=MU(e.input);return`Intrare invalidă: așteptat ${t}, primit ${r[n]??n}`}case`invalid_value`:return e.values.length===1?`Intrare invalidă: așteptat ${gU(e.values[0])}`:`Opțiune invalidă: așteptat una dintre ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Prea mare: așteptat ca ${e.origin??`valoarea`} ${r.verb} ${n}${e.maximum.toString()} ${r.unit??`elemente`}`:`Prea mare: așteptat ca ${e.origin??`valoarea`} să fie ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Prea mic: așteptat ca ${e.origin} ${r.verb} ${n}${e.minimum.toString()} ${r.unit}`:`Prea mic: așteptat ca ${e.origin} să fie ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Șir invalid: trebuie să înceapă cu "${t.prefix}"`:t.format===`ends_with`?`Șir invalid: trebuie să se termine cu "${t.suffix}"`:t.format===`includes`?`Șir invalid: trebuie să includă "${t.includes}"`:t.format===`regex`?`Șir invalid: trebuie să se potrivească cu modelul ${t.pattern}`:`Format invalid: ${n[t.format]??e.format}`}case`not_multiple_of`:return`Număr invalid: trebuie să fie multiplu de ${e.divisor}`;case`unrecognized_keys`:return`Chei nerecunoscute: ${J(e.keys,`, `)}`;case`invalid_key`:return`Cheie invalidă în ${e.origin}`;case`invalid_union`:return`Intrare invalidă`;case`invalid_element`:return`Valoare invalidă în ${e.origin}`;default:return`Intrare invalidă`}}}}));function yX(e,t,n,r){let i=Math.abs(e),a=i%10,o=i%100;return o>=11&&o<=19?r:a===1?t:a>=2&&a<=4?n:r}function bX(){return{localeError:xX()}}var xX,SX=o((()=>{XU(),xX=()=>{let e={string:{unit:{one:`символ`,few:`символа`,many:`символов`},verb:`иметь`},file:{unit:{one:`байт`,few:`байта`,many:`байт`},verb:`иметь`},array:{unit:{one:`элемент`,few:`элемента`,many:`элементов`},verb:`иметь`},set:{unit:{one:`элемент`,few:`элемента`,many:`элементов`},verb:`иметь`}};function t(t){return e[t]??null}let n={regex:`ввод`,email:`email адрес`,url:`URL`,emoji:`эмодзи`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO дата и время`,date:`ISO дата`,time:`ISO время`,duration:`ISO длительность`,ipv4:`IPv4 адрес`,ipv6:`IPv6 адрес`,cidrv4:`IPv4 диапазон`,cidrv6:`IPv6 диапазон`,base64:`строка в формате base64`,base64url:`строка в формате base64url`,json_string:`JSON строка`,e164:`номер E.164`,jwt:`JWT`,template_literal:`ввод`},r={nan:`NaN`,number:`число`,array:`массив`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=MU(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Неверный ввод: ожидалось instanceof ${e.expected}, получено ${i}`:`Неверный ввод: ожидалось ${t}, получено ${i}`}case`invalid_value`:return e.values.length===1?`Неверный ввод: ожидалось ${gU(e.values[0])}`:`Неверный вариант: ожидалось одно из ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);if(r){let t=yX(Number(e.maximum),r.unit.one,r.unit.few,r.unit.many);return`Слишком большое значение: ожидалось, что ${e.origin??`значение`} будет иметь ${n}${e.maximum.toString()} ${t}`}return`Слишком большое значение: ожидалось, что ${e.origin??`значение`} будет ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);if(r){let t=yX(Number(e.minimum),r.unit.one,r.unit.few,r.unit.many);return`Слишком маленькое значение: ожидалось, что ${e.origin} будет иметь ${n}${e.minimum.toString()} ${t}`}return`Слишком маленькое значение: ожидалось, что ${e.origin} будет ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Неверная строка: должна начинаться с "${t.prefix}"`:t.format===`ends_with`?`Неверная строка: должна заканчиваться на "${t.suffix}"`:t.format===`includes`?`Неверная строка: должна содержать "${t.includes}"`:t.format===`regex`?`Неверная строка: должна соответствовать шаблону ${t.pattern}`:`Неверный ${n[t.format]??e.format}`}case`not_multiple_of`:return`Неверное число: должно быть кратным ${e.divisor}`;case`unrecognized_keys`:return`Нераспознанн${e.keys.length>1?`ые`:`ый`} ключ${e.keys.length>1?`и`:``}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Неверный ключ в ${e.origin}`;case`invalid_union`:return`Неверные входные данные`;case`invalid_element`:return`Неверное значение в ${e.origin}`;default:return`Неверные входные данные`}}}}));function CX(){return{localeError:wX()}}var wX,TX=o((()=>{XU(),wX=()=>{let e={string:{unit:`znakov`,verb:`imeti`},file:{unit:`bajtov`,verb:`imeti`},array:{unit:`elementov`,verb:`imeti`},set:{unit:`elementov`,verb:`imeti`}};function t(t){return e[t]??null}let n={regex:`vnos`,email:`e-poštni naslov`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO datum in čas`,date:`ISO datum`,time:`ISO čas`,duration:`ISO trajanje`,ipv4:`IPv4 naslov`,ipv6:`IPv6 naslov`,cidrv4:`obseg IPv4`,cidrv6:`obseg IPv6`,base64:`base64 kodiran niz`,base64url:`base64url kodiran niz`,json_string:`JSON niz`,e164:`E.164 številka`,jwt:`JWT`,template_literal:`vnos`},r={nan:`NaN`,number:`število`,array:`tabela`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=MU(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Neveljaven vnos: pričakovano instanceof ${e.expected}, prejeto ${i}`:`Neveljaven vnos: pričakovano ${t}, prejeto ${i}`}case`invalid_value`:return e.values.length===1?`Neveljaven vnos: pričakovano ${gU(e.values[0])}`:`Neveljavna možnost: pričakovano eno izmed ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Preveliko: pričakovano, da bo ${e.origin??`vrednost`} imelo ${n}${e.maximum.toString()} ${r.unit??`elementov`}`:`Preveliko: pričakovano, da bo ${e.origin??`vrednost`} ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Premajhno: pričakovano, da bo ${e.origin} imelo ${n}${e.minimum.toString()} ${r.unit}`:`Premajhno: pričakovano, da bo ${e.origin} ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Neveljaven niz: mora se začeti z "${t.prefix}"`:t.format===`ends_with`?`Neveljaven niz: mora se končati z "${t.suffix}"`:t.format===`includes`?`Neveljaven niz: mora vsebovati "${t.includes}"`:t.format===`regex`?`Neveljaven niz: mora ustrezati vzorcu ${t.pattern}`:`Neveljaven ${n[t.format]??e.format}`}case`not_multiple_of`:return`Neveljavno število: mora biti večkratnik ${e.divisor}`;case`unrecognized_keys`:return`Neprepoznan${e.keys.length>1?`i ključi`:` ključ`}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Neveljaven ključ v ${e.origin}`;case`invalid_union`:return`Neveljaven vnos`;case`invalid_element`:return`Neveljavna vrednost v ${e.origin}`;default:return`Neveljaven vnos`}}}}));function EX(){return{localeError:DX()}}var DX,OX=o((()=>{XU(),DX=()=>{let e={string:{unit:`tecken`,verb:`att ha`},file:{unit:`bytes`,verb:`att ha`},array:{unit:`objekt`,verb:`att innehålla`},set:{unit:`objekt`,verb:`att innehålla`}};function t(t){return e[t]??null}let n={regex:`reguljärt uttryck`,email:`e-postadress`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO-datum och tid`,date:`ISO-datum`,time:`ISO-tid`,duration:`ISO-varaktighet`,ipv4:`IPv4-intervall`,ipv6:`IPv6-intervall`,cidrv4:`IPv4-spektrum`,cidrv6:`IPv6-spektrum`,base64:`base64-kodad sträng`,base64url:`base64url-kodad sträng`,json_string:`JSON-sträng`,e164:`E.164-nummer`,jwt:`JWT`,template_literal:`mall-literal`},r={nan:`NaN`,number:`antal`,array:`lista`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=MU(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Ogiltig inmatning: förväntat instanceof ${e.expected}, fick ${i}`:`Ogiltig inmatning: förväntat ${t}, fick ${i}`}case`invalid_value`:return e.values.length===1?`Ogiltig inmatning: förväntat ${gU(e.values[0])}`:`Ogiltigt val: förväntade en av ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`För stor(t): förväntade ${e.origin??`värdet`} att ha ${n}${e.maximum.toString()} ${r.unit??`element`}`:`För stor(t): förväntat ${e.origin??`värdet`} att ha ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`För lite(t): förväntade ${e.origin??`värdet`} att ha ${n}${e.minimum.toString()} ${r.unit}`:`För lite(t): förväntade ${e.origin??`värdet`} att ha ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Ogiltig sträng: måste börja med "${t.prefix}"`:t.format===`ends_with`?`Ogiltig sträng: måste sluta med "${t.suffix}"`:t.format===`includes`?`Ogiltig sträng: måste innehålla "${t.includes}"`:t.format===`regex`?`Ogiltig sträng: måste matcha mönstret "${t.pattern}"`:`Ogiltig(t) ${n[t.format]??e.format}`}case`not_multiple_of`:return`Ogiltigt tal: måste vara en multipel av ${e.divisor}`;case`unrecognized_keys`:return`${e.keys.length>1?`Okända nycklar`:`Okänd nyckel`}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Ogiltig nyckel i ${e.origin??`värdet`}`;case`invalid_union`:return`Ogiltig input`;case`invalid_element`:return`Ogiltigt värde i ${e.origin??`värdet`}`;default:return`Ogiltig input`}}}}));function kX(){return{localeError:AX()}}var AX,jX=o((()=>{XU(),AX=()=>{let e={string:{unit:`எழுத்துக்கள்`,verb:`கொண்டிருக்க வேண்டும்`},file:{unit:`பைட்டுகள்`,verb:`கொண்டிருக்க வேண்டும்`},array:{unit:`உறுப்புகள்`,verb:`கொண்டிருக்க வேண்டும்`},set:{unit:`உறுப்புகள்`,verb:`கொண்டிருக்க வேண்டும்`}};function t(t){return e[t]??null}let n={regex:`உள்ளீடு`,email:`மின்னஞ்சல் முகவரி`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO தேதி நேரம்`,date:`ISO தேதி`,time:`ISO நேரம்`,duration:`ISO கால அளவு`,ipv4:`IPv4 முகவரி`,ipv6:`IPv6 முகவரி`,cidrv4:`IPv4 வரம்பு`,cidrv6:`IPv6 வரம்பு`,base64:`base64-encoded சரம்`,base64url:`base64url-encoded சரம்`,json_string:`JSON சரம்`,e164:`E.164 எண்`,jwt:`JWT`,template_literal:`input`},r={nan:`NaN`,number:`எண்`,array:`அணி`,null:`வெறுமை`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=MU(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது instanceof ${e.expected}, பெறப்பட்டது ${i}`:`தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது ${t}, பெறப்பட்டது ${i}`}case`invalid_value`:return e.values.length===1?`தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது ${gU(e.values[0])}`:`தவறான விருப்பம்: எதிர்பார்க்கப்பட்டது ${J(e.values,`|`)} இல் ஒன்று`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`மிக பெரியது: எதிர்பார்க்கப்பட்டது ${e.origin??`மதிப்பு`} ${n}${e.maximum.toString()} ${r.unit??`உறுப்புகள்`} ஆக இருக்க வேண்டும்`:`மிக பெரியது: எதிர்பார்க்கப்பட்டது ${e.origin??`மதிப்பு`} ${n}${e.maximum.toString()} ஆக இருக்க வேண்டும்`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`மிகச் சிறியது: எதிர்பார்க்கப்பட்டது ${e.origin} ${n}${e.minimum.toString()} ${r.unit} ஆக இருக்க வேண்டும்`:`மிகச் சிறியது: எதிர்பார்க்கப்பட்டது ${e.origin} ${n}${e.minimum.toString()} ஆக இருக்க வேண்டும்`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`தவறான சரம்: "${t.prefix}" இல் தொடங்க வேண்டும்`:t.format===`ends_with`?`தவறான சரம்: "${t.suffix}" இல் முடிவடைய வேண்டும்`:t.format===`includes`?`தவறான சரம்: "${t.includes}" ஐ உள்ளடக்க வேண்டும்`:t.format===`regex`?`தவறான சரம்: ${t.pattern} முறைபாட்டுடன் பொருந்த வேண்டும்`:`தவறான ${n[t.format]??e.format}`}case`not_multiple_of`:return`தவறான எண்: ${e.divisor} இன் பலமாக இருக்க வேண்டும்`;case`unrecognized_keys`:return`அடையாளம் தெரியாத விசை${e.keys.length>1?`கள்`:``}: ${J(e.keys,`, `)}`;case`invalid_key`:return`${e.origin} இல் தவறான விசை`;case`invalid_union`:return`தவறான உள்ளீடு`;case`invalid_element`:return`${e.origin} இல் தவறான மதிப்பு`;default:return`தவறான உள்ளீடு`}}}}));function MX(){return{localeError:NX()}}var NX,PX=o((()=>{XU(),NX=()=>{let e={string:{unit:`ตัวอักษร`,verb:`ควรมี`},file:{unit:`ไบต์`,verb:`ควรมี`},array:{unit:`รายการ`,verb:`ควรมี`},set:{unit:`รายการ`,verb:`ควรมี`}};function t(t){return e[t]??null}let n={regex:`ข้อมูลที่ป้อน`,email:`ที่อยู่อีเมล`,url:`URL`,emoji:`อิโมจิ`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`วันที่เวลาแบบ ISO`,date:`วันที่แบบ ISO`,time:`เวลาแบบ ISO`,duration:`ช่วงเวลาแบบ ISO`,ipv4:`ที่อยู่ IPv4`,ipv6:`ที่อยู่ IPv6`,cidrv4:`ช่วง IP แบบ IPv4`,cidrv6:`ช่วง IP แบบ IPv6`,base64:`ข้อความแบบ Base64`,base64url:`ข้อความแบบ Base64 สำหรับ URL`,json_string:`ข้อความแบบ JSON`,e164:`เบอร์โทรศัพท์ระหว่างประเทศ (E.164)`,jwt:`โทเคน JWT`,template_literal:`ข้อมูลที่ป้อน`},r={nan:`NaN`,number:`ตัวเลข`,array:`อาร์เรย์ (Array)`,null:`ไม่มีค่า (null)`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=MU(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`ประเภทข้อมูลไม่ถูกต้อง: ควรเป็น instanceof ${e.expected} แต่ได้รับ ${i}`:`ประเภทข้อมูลไม่ถูกต้อง: ควรเป็น ${t} แต่ได้รับ ${i}`}case`invalid_value`:return e.values.length===1?`ค่าไม่ถูกต้อง: ควรเป็น ${gU(e.values[0])}`:`ตัวเลือกไม่ถูกต้อง: ควรเป็นหนึ่งใน ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`ไม่เกิน`:`น้อยกว่า`,r=t(e.origin);return r?`เกินกำหนด: ${e.origin??`ค่า`} ควรมี${n} ${e.maximum.toString()} ${r.unit??`รายการ`}`:`เกินกำหนด: ${e.origin??`ค่า`} ควรมี${n} ${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`อย่างน้อย`:`มากกว่า`,r=t(e.origin);return r?`น้อยกว่ากำหนด: ${e.origin} ควรมี${n} ${e.minimum.toString()} ${r.unit}`:`น้อยกว่ากำหนด: ${e.origin} ควรมี${n} ${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`รูปแบบไม่ถูกต้อง: ข้อความต้องขึ้นต้นด้วย "${t.prefix}"`:t.format===`ends_with`?`รูปแบบไม่ถูกต้อง: ข้อความต้องลงท้ายด้วย "${t.suffix}"`:t.format===`includes`?`รูปแบบไม่ถูกต้อง: ข้อความต้องมี "${t.includes}" อยู่ในข้อความ`:t.format===`regex`?`รูปแบบไม่ถูกต้อง: ต้องตรงกับรูปแบบที่กำหนด ${t.pattern}`:`รูปแบบไม่ถูกต้อง: ${n[t.format]??e.format}`}case`not_multiple_of`:return`ตัวเลขไม่ถูกต้อง: ต้องเป็นจำนวนที่หารด้วย ${e.divisor} ได้ลงตัว`;case`unrecognized_keys`:return`พบคีย์ที่ไม่รู้จัก: ${J(e.keys,`, `)}`;case`invalid_key`:return`คีย์ไม่ถูกต้องใน ${e.origin}`;case`invalid_union`:return`ข้อมูลไม่ถูกต้อง: ไม่ตรงกับรูปแบบยูเนียนที่กำหนดไว้`;case`invalid_element`:return`ข้อมูลไม่ถูกต้องใน ${e.origin}`;default:return`ข้อมูลไม่ถูกต้อง`}}}}));function FX(){return{localeError:IX()}}var IX,LX=o((()=>{XU(),IX=()=>{let e={string:{unit:`karakter`,verb:`olmalı`},file:{unit:`bayt`,verb:`olmalı`},array:{unit:`öğe`,verb:`olmalı`},set:{unit:`öğe`,verb:`olmalı`}};function t(t){return e[t]??null}let n={regex:`girdi`,email:`e-posta adresi`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO tarih ve saat`,date:`ISO tarih`,time:`ISO saat`,duration:`ISO süre`,ipv4:`IPv4 adresi`,ipv6:`IPv6 adresi`,cidrv4:`IPv4 aralığı`,cidrv6:`IPv6 aralığı`,base64:`base64 ile şifrelenmiş metin`,base64url:`base64url ile şifrelenmiş metin`,json_string:`JSON dizesi`,e164:`E.164 sayısı`,jwt:`JWT`,template_literal:`Şablon dizesi`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=MU(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Geçersiz değer: beklenen instanceof ${e.expected}, alınan ${i}`:`Geçersiz değer: beklenen ${t}, alınan ${i}`}case`invalid_value`:return e.values.length===1?`Geçersiz değer: beklenen ${gU(e.values[0])}`:`Geçersiz seçenek: aşağıdakilerden biri olmalı: ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Çok büyük: beklenen ${e.origin??`değer`} ${n}${e.maximum.toString()} ${r.unit??`öğe`}`:`Çok büyük: beklenen ${e.origin??`değer`} ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Çok küçük: beklenen ${e.origin} ${n}${e.minimum.toString()} ${r.unit}`:`Çok küçük: beklenen ${e.origin} ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Geçersiz metin: "${t.prefix}" ile başlamalı`:t.format===`ends_with`?`Geçersiz metin: "${t.suffix}" ile bitmeli`:t.format===`includes`?`Geçersiz metin: "${t.includes}" içermeli`:t.format===`regex`?`Geçersiz metin: ${t.pattern} desenine uymalı`:`Geçersiz ${n[t.format]??e.format}`}case`not_multiple_of`:return`Geçersiz sayı: ${e.divisor} ile tam bölünebilmeli`;case`unrecognized_keys`:return`Tanınmayan anahtar${e.keys.length>1?`lar`:``}: ${J(e.keys,`, `)}`;case`invalid_key`:return`${e.origin} içinde geçersiz anahtar`;case`invalid_union`:return`Geçersiz değer`;case`invalid_element`:return`${e.origin} içinde geçersiz değer`;default:return`Geçersiz değer`}}}}));function RX(){return{localeError:zX()}}var zX,BX=o((()=>{XU(),zX=()=>{let e={string:{unit:`символів`,verb:`матиме`},file:{unit:`байтів`,verb:`матиме`},array:{unit:`елементів`,verb:`матиме`},set:{unit:`елементів`,verb:`матиме`}};function t(t){return e[t]??null}let n={regex:`вхідні дані`,email:`адреса електронної пошти`,url:`URL`,emoji:`емодзі`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`дата та час ISO`,date:`дата ISO`,time:`час ISO`,duration:`тривалість ISO`,ipv4:`адреса IPv4`,ipv6:`адреса IPv6`,cidrv4:`діапазон IPv4`,cidrv6:`діапазон IPv6`,base64:`рядок у кодуванні base64`,base64url:`рядок у кодуванні base64url`,json_string:`рядок JSON`,e164:`номер E.164`,jwt:`JWT`,template_literal:`вхідні дані`},r={nan:`NaN`,number:`число`,array:`масив`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=MU(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Неправильні вхідні дані: очікується instanceof ${e.expected}, отримано ${i}`:`Неправильні вхідні дані: очікується ${t}, отримано ${i}`}case`invalid_value`:return e.values.length===1?`Неправильні вхідні дані: очікується ${gU(e.values[0])}`:`Неправильна опція: очікується одне з ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Занадто велике: очікується, що ${e.origin??`значення`} ${r.verb} ${n}${e.maximum.toString()} ${r.unit??`елементів`}`:`Занадто велике: очікується, що ${e.origin??`значення`} буде ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Занадто мале: очікується, що ${e.origin} ${r.verb} ${n}${e.minimum.toString()} ${r.unit}`:`Занадто мале: очікується, що ${e.origin} буде ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Неправильний рядок: повинен починатися з "${t.prefix}"`:t.format===`ends_with`?`Неправильний рядок: повинен закінчуватися на "${t.suffix}"`:t.format===`includes`?`Неправильний рядок: повинен містити "${t.includes}"`:t.format===`regex`?`Неправильний рядок: повинен відповідати шаблону ${t.pattern}`:`Неправильний ${n[t.format]??e.format}`}case`not_multiple_of`:return`Неправильне число: повинно бути кратним ${e.divisor}`;case`unrecognized_keys`:return`Нерозпізнаний ключ${e.keys.length>1?`і`:``}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Неправильний ключ у ${e.origin}`;case`invalid_union`:return`Неправильні вхідні дані`;case`invalid_element`:return`Неправильне значення у ${e.origin}`;default:return`Неправильні вхідні дані`}}}}));function VX(){return RX()}var HX=o((()=>{BX()}));function UX(){return{localeError:WX()}}var WX,GX=o((()=>{XU(),WX=()=>{let e={string:{unit:`حروف`,verb:`ہونا`},file:{unit:`بائٹس`,verb:`ہونا`},array:{unit:`آئٹمز`,verb:`ہونا`},set:{unit:`آئٹمز`,verb:`ہونا`}};function t(t){return e[t]??null}let n={regex:`ان پٹ`,email:`ای میل ایڈریس`,url:`یو آر ایل`,emoji:`ایموجی`,uuid:`یو یو آئی ڈی`,uuidv4:`یو یو آئی ڈی وی 4`,uuidv6:`یو یو آئی ڈی وی 6`,nanoid:`نینو آئی ڈی`,guid:`جی یو آئی ڈی`,cuid:`سی یو آئی ڈی`,cuid2:`سی یو آئی ڈی 2`,ulid:`یو ایل آئی ڈی`,xid:`ایکس آئی ڈی`,ksuid:`کے ایس یو آئی ڈی`,datetime:`آئی ایس او ڈیٹ ٹائم`,date:`آئی ایس او تاریخ`,time:`آئی ایس او وقت`,duration:`آئی ایس او مدت`,ipv4:`آئی پی وی 4 ایڈریس`,ipv6:`آئی پی وی 6 ایڈریس`,cidrv4:`آئی پی وی 4 رینج`,cidrv6:`آئی پی وی 6 رینج`,base64:`بیس 64 ان کوڈڈ سٹرنگ`,base64url:`بیس 64 یو آر ایل ان کوڈڈ سٹرنگ`,json_string:`جے ایس او این سٹرنگ`,e164:`ای 164 نمبر`,jwt:`جے ڈبلیو ٹی`,template_literal:`ان پٹ`},r={nan:`NaN`,number:`نمبر`,array:`آرے`,null:`نل`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=MU(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`غلط ان پٹ: instanceof ${e.expected} متوقع تھا، ${i} موصول ہوا`:`غلط ان پٹ: ${t} متوقع تھا، ${i} موصول ہوا`}case`invalid_value`:return e.values.length===1?`غلط ان پٹ: ${gU(e.values[0])} متوقع تھا`:`غلط آپشن: ${J(e.values,`|`)} میں سے ایک متوقع تھا`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`بہت بڑا: ${e.origin??`ویلیو`} کے ${n}${e.maximum.toString()} ${r.unit??`عناصر`} ہونے متوقع تھے`:`بہت بڑا: ${e.origin??`ویلیو`} کا ${n}${e.maximum.toString()} ہونا متوقع تھا`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`بہت چھوٹا: ${e.origin} کے ${n}${e.minimum.toString()} ${r.unit} ہونے متوقع تھے`:`بہت چھوٹا: ${e.origin} کا ${n}${e.minimum.toString()} ہونا متوقع تھا`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`غلط سٹرنگ: "${t.prefix}" سے شروع ہونا چاہیے`:t.format===`ends_with`?`غلط سٹرنگ: "${t.suffix}" پر ختم ہونا چاہیے`:t.format===`includes`?`غلط سٹرنگ: "${t.includes}" شامل ہونا چاہیے`:t.format===`regex`?`غلط سٹرنگ: پیٹرن ${t.pattern} سے میچ ہونا چاہیے`:`غلط ${n[t.format]??e.format}`}case`not_multiple_of`:return`غلط نمبر: ${e.divisor} کا مضاعف ہونا چاہیے`;case`unrecognized_keys`:return`غیر تسلیم شدہ کی${e.keys.length>1?`ز`:``}: ${J(e.keys,`، `)}`;case`invalid_key`:return`${e.origin} میں غلط کی`;case`invalid_union`:return`غلط ان پٹ`;case`invalid_element`:return`${e.origin} میں غلط ویلیو`;default:return`غلط ان پٹ`}}}}));function KX(){return{localeError:qX()}}var qX,JX=o((()=>{XU(),qX=()=>{let e={string:{unit:`belgi`,verb:`bo‘lishi kerak`},file:{unit:`bayt`,verb:`bo‘lishi kerak`},array:{unit:`element`,verb:`bo‘lishi kerak`},set:{unit:`element`,verb:`bo‘lishi kerak`},map:{unit:`yozuv`,verb:`bo‘lishi kerak`}};function t(t){return e[t]??null}let n={regex:`kirish`,email:`elektron pochta manzili`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO sana va vaqti`,date:`ISO sana`,time:`ISO vaqt`,duration:`ISO davomiylik`,ipv4:`IPv4 manzil`,ipv6:`IPv6 manzil`,mac:`MAC manzil`,cidrv4:`IPv4 diapazon`,cidrv6:`IPv6 diapazon`,base64:`base64 kodlangan satr`,base64url:`base64url kodlangan satr`,json_string:`JSON satr`,e164:`E.164 raqam`,jwt:`JWT`,template_literal:`kirish`},r={nan:`NaN`,number:`raqam`,array:`massiv`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=MU(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Noto‘g‘ri kirish: kutilgan instanceof ${e.expected}, qabul qilingan ${i}`:`Noto‘g‘ri kirish: kutilgan ${t}, qabul qilingan ${i}`}case`invalid_value`:return e.values.length===1?`Noto‘g‘ri kirish: kutilgan ${gU(e.values[0])}`:`Noto‘g‘ri variant: quyidagilardan biri kutilgan ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Juda katta: kutilgan ${e.origin??`qiymat`} ${n}${e.maximum.toString()} ${r.unit} ${r.verb}`:`Juda katta: kutilgan ${e.origin??`qiymat`} ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Juda kichik: kutilgan ${e.origin} ${n}${e.minimum.toString()} ${r.unit} ${r.verb}`:`Juda kichik: kutilgan ${e.origin} ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Noto‘g‘ri satr: "${t.prefix}" bilan boshlanishi kerak`:t.format===`ends_with`?`Noto‘g‘ri satr: "${t.suffix}" bilan tugashi kerak`:t.format===`includes`?`Noto‘g‘ri satr: "${t.includes}" ni o‘z ichiga olishi kerak`:t.format===`regex`?`Noto‘g‘ri satr: ${t.pattern} shabloniga mos kelishi kerak`:`Noto‘g‘ri ${n[t.format]??e.format}`}case`not_multiple_of`:return`Noto‘g‘ri raqam: ${e.divisor} ning karralisi bo‘lishi kerak`;case`unrecognized_keys`:return`Noma’lum kalit${e.keys.length>1?`lar`:``}: ${J(e.keys,`, `)}`;case`invalid_key`:return`${e.origin} dagi kalit noto‘g‘ri`;case`invalid_union`:return`Noto‘g‘ri kirish`;case`invalid_element`:return`${e.origin} da noto‘g‘ri qiymat`;default:return`Noto‘g‘ri kirish`}}}}));function YX(){return{localeError:XX()}}var XX,ZX=o((()=>{XU(),XX=()=>{let e={string:{unit:`ký tự`,verb:`có`},file:{unit:`byte`,verb:`có`},array:{unit:`phần tử`,verb:`có`},set:{unit:`phần tử`,verb:`có`}};function t(t){return e[t]??null}let n={regex:`đầu vào`,email:`địa chỉ email`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ngày giờ ISO`,date:`ngày ISO`,time:`giờ ISO`,duration:`khoảng thời gian ISO`,ipv4:`địa chỉ IPv4`,ipv6:`địa chỉ IPv6`,cidrv4:`dải IPv4`,cidrv6:`dải IPv6`,base64:`chuỗi mã hóa base64`,base64url:`chuỗi mã hóa base64url`,json_string:`chuỗi JSON`,e164:`số E.164`,jwt:`JWT`,template_literal:`đầu vào`},r={nan:`NaN`,number:`số`,array:`mảng`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=MU(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Đầu vào không hợp lệ: mong đợi instanceof ${e.expected}, nhận được ${i}`:`Đầu vào không hợp lệ: mong đợi ${t}, nhận được ${i}`}case`invalid_value`:return e.values.length===1?`Đầu vào không hợp lệ: mong đợi ${gU(e.values[0])}`:`Tùy chọn không hợp lệ: mong đợi một trong các giá trị ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Quá lớn: mong đợi ${e.origin??`giá trị`} ${r.verb} ${n}${e.maximum.toString()} ${r.unit??`phần tử`}`:`Quá lớn: mong đợi ${e.origin??`giá trị`} ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Quá nhỏ: mong đợi ${e.origin} ${r.verb} ${n}${e.minimum.toString()} ${r.unit}`:`Quá nhỏ: mong đợi ${e.origin} ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Chuỗi không hợp lệ: phải bắt đầu bằng "${t.prefix}"`:t.format===`ends_with`?`Chuỗi không hợp lệ: phải kết thúc bằng "${t.suffix}"`:t.format===`includes`?`Chuỗi không hợp lệ: phải bao gồm "${t.includes}"`:t.format===`regex`?`Chuỗi không hợp lệ: phải khớp với mẫu ${t.pattern}`:`${n[t.format]??e.format} không hợp lệ`}case`not_multiple_of`:return`Số không hợp lệ: phải là bội số của ${e.divisor}`;case`unrecognized_keys`:return`Khóa không được nhận dạng: ${J(e.keys,`, `)}`;case`invalid_key`:return`Khóa không hợp lệ trong ${e.origin}`;case`invalid_union`:return`Đầu vào không hợp lệ`;case`invalid_element`:return`Giá trị không hợp lệ trong ${e.origin}`;default:return`Đầu vào không hợp lệ`}}}}));function QX(){return{localeError:$X()}}var $X,eZ=o((()=>{XU(),$X=()=>{let e={string:{unit:`字符`,verb:`包含`},file:{unit:`字节`,verb:`包含`},array:{unit:`项`,verb:`包含`},set:{unit:`项`,verb:`包含`}};function t(t){return e[t]??null}let n={regex:`输入`,email:`电子邮件`,url:`URL`,emoji:`表情符号`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO日期时间`,date:`ISO日期`,time:`ISO时间`,duration:`ISO时长`,ipv4:`IPv4地址`,ipv6:`IPv6地址`,cidrv4:`IPv4网段`,cidrv6:`IPv6网段`,base64:`base64编码字符串`,base64url:`base64url编码字符串`,json_string:`JSON字符串`,e164:`E.164号码`,jwt:`JWT`,template_literal:`输入`},r={nan:`NaN`,number:`数字`,array:`数组`,null:`空值(null)`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=MU(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`无效输入:期望 instanceof ${e.expected},实际接收 ${i}`:`无效输入:期望 ${t},实际接收 ${i}`}case`invalid_value`:return e.values.length===1?`无效输入:期望 ${gU(e.values[0])}`:`无效选项:期望以下之一 ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`数值过大:期望 ${e.origin??`值`} ${n}${e.maximum.toString()} ${r.unit??`个元素`}`:`数值过大:期望 ${e.origin??`值`} ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`数值过小:期望 ${e.origin} ${n}${e.minimum.toString()} ${r.unit}`:`数值过小:期望 ${e.origin} ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`无效字符串:必须以 "${t.prefix}" 开头`:t.format===`ends_with`?`无效字符串:必须以 "${t.suffix}" 结尾`:t.format===`includes`?`无效字符串:必须包含 "${t.includes}"`:t.format===`regex`?`无效字符串:必须满足正则表达式 ${t.pattern}`:`无效${n[t.format]??e.format}`}case`not_multiple_of`:return`无效数字:必须是 ${e.divisor} 的倍数`;case`unrecognized_keys`:return`出现未知的键(key): ${J(e.keys,`, `)}`;case`invalid_key`:return`${e.origin} 中的键(key)无效`;case`invalid_union`:return`无效输入`;case`invalid_element`:return`${e.origin} 中包含无效值(value)`;default:return`无效输入`}}}}));function tZ(){return{localeError:nZ()}}var nZ,rZ=o((()=>{XU(),nZ=()=>{let e={string:{unit:`字元`,verb:`擁有`},file:{unit:`位元組`,verb:`擁有`},array:{unit:`項目`,verb:`擁有`},set:{unit:`項目`,verb:`擁有`}};function t(t){return e[t]??null}let n={regex:`輸入`,email:`郵件地址`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO 日期時間`,date:`ISO 日期`,time:`ISO 時間`,duration:`ISO 期間`,ipv4:`IPv4 位址`,ipv6:`IPv6 位址`,cidrv4:`IPv4 範圍`,cidrv6:`IPv6 範圍`,base64:`base64 編碼字串`,base64url:`base64url 編碼字串`,json_string:`JSON 字串`,e164:`E.164 數值`,jwt:`JWT`,template_literal:`輸入`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=MU(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`無效的輸入值:預期為 instanceof ${e.expected},但收到 ${i}`:`無效的輸入值:預期為 ${t},但收到 ${i}`}case`invalid_value`:return e.values.length===1?`無效的輸入值:預期為 ${gU(e.values[0])}`:`無效的選項:預期為以下其中之一 ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`數值過大:預期 ${e.origin??`值`} 應為 ${n}${e.maximum.toString()} ${r.unit??`個元素`}`:`數值過大:預期 ${e.origin??`值`} 應為 ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`數值過小:預期 ${e.origin} 應為 ${n}${e.minimum.toString()} ${r.unit}`:`數值過小:預期 ${e.origin} 應為 ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`無效的字串:必須以 "${t.prefix}" 開頭`:t.format===`ends_with`?`無效的字串:必須以 "${t.suffix}" 結尾`:t.format===`includes`?`無效的字串:必須包含 "${t.includes}"`:t.format===`regex`?`無效的字串:必須符合格式 ${t.pattern}`:`無效的 ${n[t.format]??e.format}`}case`not_multiple_of`:return`無效的數字:必須為 ${e.divisor} 的倍數`;case`unrecognized_keys`:return`無法識別的鍵值${e.keys.length>1?`們`:``}:${J(e.keys,`、`)}`;case`invalid_key`:return`${e.origin} 中有無效的鍵值`;case`invalid_union`:return`無效的輸入值`;case`invalid_element`:return`${e.origin} 中有無效的值`;default:return`無效的輸入值`}}}}));function iZ(){return{localeError:aZ()}}var aZ,oZ=o((()=>{XU(),aZ=()=>{let e={string:{unit:`àmi`,verb:`ní`},file:{unit:`bytes`,verb:`ní`},array:{unit:`nkan`,verb:`ní`},set:{unit:`nkan`,verb:`ní`}};function t(t){return e[t]??null}let n={regex:`ẹ̀rọ ìbáwọlé`,email:`àdírẹ́sì ìmẹ́lì`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`àkókò ISO`,date:`ọjọ́ ISO`,time:`àkókò ISO`,duration:`àkókò tó pé ISO`,ipv4:`àdírẹ́sì IPv4`,ipv6:`àdírẹ́sì IPv6`,cidrv4:`àgbègbè IPv4`,cidrv6:`àgbègbè IPv6`,base64:`ọ̀rọ̀ tí a kọ́ ní base64`,base64url:`ọ̀rọ̀ base64url`,json_string:`ọ̀rọ̀ JSON`,e164:`nọ́mbà E.164`,jwt:`JWT`,template_literal:`ẹ̀rọ ìbáwọlé`},r={nan:`NaN`,number:`nọ́mbà`,array:`akopọ`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=MU(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Ìbáwọlé aṣìṣe: a ní láti fi instanceof ${e.expected}, àmọ̀ a rí ${i}`:`Ìbáwọlé aṣìṣe: a ní láti fi ${t}, àmọ̀ a rí ${i}`}case`invalid_value`:return e.values.length===1?`Ìbáwọlé aṣìṣe: a ní láti fi ${gU(e.values[0])}`:`Àṣàyàn aṣìṣe: yan ọ̀kan lára ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Tó pọ̀ jù: a ní láti jẹ́ pé ${e.origin??`iye`} ${r.verb} ${n}${e.maximum} ${r.unit}`:`Tó pọ̀ jù: a ní láti jẹ́ ${n}${e.maximum}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Kéré ju: a ní láti jẹ́ pé ${e.origin} ${r.verb} ${n}${e.minimum} ${r.unit}`:`Kéré ju: a ní láti jẹ́ ${n}${e.minimum}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ bẹ̀rẹ̀ pẹ̀lú "${t.prefix}"`:t.format===`ends_with`?`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ parí pẹ̀lú "${t.suffix}"`:t.format===`includes`?`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ ní "${t.includes}"`:t.format===`regex`?`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ bá àpẹẹrẹ mu ${t.pattern}`:`Aṣìṣe: ${n[t.format]??e.format}`}case`not_multiple_of`:return`Nọ́mbà aṣìṣe: gbọ́dọ̀ jẹ́ èyà pípín ti ${e.divisor}`;case`unrecognized_keys`:return`Bọtìnì àìmọ̀: ${J(e.keys,`, `)}`;case`invalid_key`:return`Bọtìnì aṣìṣe nínú ${e.origin}`;case`invalid_union`:return`Ìbáwọlé aṣìṣe`;case`invalid_element`:return`Iye aṣìṣe nínú ${e.origin}`;default:return`Ìbáwọlé aṣìṣe`}}}})),sZ=c({ar:()=>lJ,az:()=>fJ,be:()=>gJ,bg:()=>yJ,ca:()=>SJ,cs:()=>TJ,da:()=>OJ,de:()=>jJ,el:()=>PJ,en:()=>LJ,eo:()=>BJ,es:()=>UJ,fa:()=>KJ,fi:()=>YJ,fr:()=>QJ,frCA:()=>tY,he:()=>iY,hr:()=>sY,hu:()=>uY,hy:()=>hY,id:()=>vY,is:()=>xY,it:()=>wY,ja:()=>DY,ka:()=>AY,kh:()=>IY,km:()=>NY,ko:()=>RY,lt:()=>HY,mk:()=>KY,ms:()=>YY,nl:()=>QY,no:()=>tX,ota:()=>iX,pl:()=>uX,ps:()=>sX,pt:()=>pX,ro:()=>gX,ru:()=>bX,sl:()=>CX,sv:()=>EX,ta:()=>kX,th:()=>MX,tr:()=>FX,ua:()=>VX,uk:()=>RX,ur:()=>UX,uz:()=>KX,vi:()=>YX,yo:()=>iZ,zhCN:()=>QX,zhTW:()=>tZ}),cZ=o((()=>{dJ(),mJ(),vJ(),xJ(),wJ(),DJ(),AJ(),NJ(),IJ(),zJ(),HJ(),GJ(),JJ(),ZJ(),eY(),rY(),oY(),lY(),fY(),_Y(),bY(),CY(),EY(),kY(),MY(),LY(),FY(),BY(),GY(),JY(),ZY(),eX(),rX(),oX(),lX(),fX(),hX(),vX(),SX(),TX(),OX(),jX(),PX(),LX(),HX(),BX(),GX(),JX(),ZX(),eZ(),rZ(),oZ()}));function lZ(){return new pZ}var uZ,dZ,fZ,pZ,mZ,hZ=o((()=>{dZ=Symbol(`ZodOutput`),fZ=Symbol(`ZodInput`),pZ=class{constructor(){this._map=new WeakMap,this._idmap=new Map}add(e,...t){let n=t[0];return this._map.set(e,n),n&&typeof n==`object`&&`id`in n&&this._idmap.set(n.id,e),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(e){let t=this._map.get(e);return t&&typeof t==`object`&&`id`in t&&this._idmap.delete(t.id),this._map.delete(e),this}get(e){let t=e._zod.parent;if(t){let n={...this.get(t)??{}};delete n.id;let r={...n,...this._map.get(e)};return Object.keys(r).length?r:void 0}return this._map.get(e)}has(e){return this._map.has(e)}},(uZ=globalThis).__zod_globalRegistry??(uZ.__zod_globalRegistry=lZ()),mZ=globalThis.__zod_globalRegistry}));function gZ(e,t){return new e({type:`string`,...Y(t)})}function _Z(e,t){return new e({type:`string`,coerce:!0,...Y(t)})}function vZ(e,t){return new e({type:`string`,format:`email`,check:`string_format`,abort:!1,...Y(t)})}function yZ(e,t){return new e({type:`string`,format:`guid`,check:`string_format`,abort:!1,...Y(t)})}function bZ(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,...Y(t)})}function xZ(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v4`,...Y(t)})}function SZ(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v6`,...Y(t)})}function CZ(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v7`,...Y(t)})}function wZ(e,t){return new e({type:`string`,format:`url`,check:`string_format`,abort:!1,...Y(t)})}function TZ(e,t){return new e({type:`string`,format:`emoji`,check:`string_format`,abort:!1,...Y(t)})}function EZ(e,t){return new e({type:`string`,format:`nanoid`,check:`string_format`,abort:!1,...Y(t)})}function DZ(e,t){return new e({type:`string`,format:`cuid`,check:`string_format`,abort:!1,...Y(t)})}function OZ(e,t){return new e({type:`string`,format:`cuid2`,check:`string_format`,abort:!1,...Y(t)})}function kZ(e,t){return new e({type:`string`,format:`ulid`,check:`string_format`,abort:!1,...Y(t)})}function AZ(e,t){return new e({type:`string`,format:`xid`,check:`string_format`,abort:!1,...Y(t)})}function jZ(e,t){return new e({type:`string`,format:`ksuid`,check:`string_format`,abort:!1,...Y(t)})}function MZ(e,t){return new e({type:`string`,format:`ipv4`,check:`string_format`,abort:!1,...Y(t)})}function NZ(e,t){return new e({type:`string`,format:`ipv6`,check:`string_format`,abort:!1,...Y(t)})}function PZ(e,t){return new e({type:`string`,format:`mac`,check:`string_format`,abort:!1,...Y(t)})}function FZ(e,t){return new e({type:`string`,format:`cidrv4`,check:`string_format`,abort:!1,...Y(t)})}function IZ(e,t){return new e({type:`string`,format:`cidrv6`,check:`string_format`,abort:!1,...Y(t)})}function LZ(e,t){return new e({type:`string`,format:`base64`,check:`string_format`,abort:!1,...Y(t)})}function RZ(e,t){return new e({type:`string`,format:`base64url`,check:`string_format`,abort:!1,...Y(t)})}function zZ(e,t){return new e({type:`string`,format:`e164`,check:`string_format`,abort:!1,...Y(t)})}function BZ(e,t){return new e({type:`string`,format:`jwt`,check:`string_format`,abort:!1,...Y(t)})}function VZ(e,t){return new e({type:`string`,format:`datetime`,check:`string_format`,offset:!1,local:!1,precision:null,...Y(t)})}function HZ(e,t){return new e({type:`string`,format:`date`,check:`string_format`,...Y(t)})}function UZ(e,t){return new e({type:`string`,format:`time`,check:`string_format`,precision:null,...Y(t)})}function WZ(e,t){return new e({type:`string`,format:`duration`,check:`string_format`,...Y(t)})}function GZ(e,t){return new e({type:`number`,checks:[],...Y(t)})}function KZ(e,t){return new e({type:`number`,coerce:!0,checks:[],...Y(t)})}function qZ(e,t){return new e({type:`number`,check:`number_format`,abort:!1,format:`safeint`,...Y(t)})}function JZ(e,t){return new e({type:`number`,check:`number_format`,abort:!1,format:`float32`,...Y(t)})}function YZ(e,t){return new e({type:`number`,check:`number_format`,abort:!1,format:`float64`,...Y(t)})}function XZ(e,t){return new e({type:`number`,check:`number_format`,abort:!1,format:`int32`,...Y(t)})}function ZZ(e,t){return new e({type:`number`,check:`number_format`,abort:!1,format:`uint32`,...Y(t)})}function QZ(e,t){return new e({type:`boolean`,...Y(t)})}function $Z(e,t){return new e({type:`boolean`,coerce:!0,...Y(t)})}function eQ(e,t){return new e({type:`bigint`,...Y(t)})}function tQ(e,t){return new e({type:`bigint`,coerce:!0,...Y(t)})}function nQ(e,t){return new e({type:`bigint`,check:`bigint_format`,abort:!1,format:`int64`,...Y(t)})}function rQ(e,t){return new e({type:`bigint`,check:`bigint_format`,abort:!1,format:`uint64`,...Y(t)})}function iQ(e,t){return new e({type:`symbol`,...Y(t)})}function aQ(e,t){return new e({type:`undefined`,...Y(t)})}function oQ(e,t){return new e({type:`null`,...Y(t)})}function sQ(e){return new e({type:`any`})}function cQ(e){return new e({type:`unknown`})}function lQ(e,t){return new e({type:`never`,...Y(t)})}function uQ(e,t){return new e({type:`void`,...Y(t)})}function dQ(e,t){return new e({type:`date`,...Y(t)})}function fQ(e,t){return new e({type:`date`,coerce:!0,...Y(t)})}function pQ(e,t){return new e({type:`nan`,...Y(t)})}function mQ(e,t){return new KG({check:`less_than`,...Y(t),value:e,inclusive:!1})}function hQ(e,t){return new KG({check:`less_than`,...Y(t),value:e,inclusive:!0})}function gQ(e,t){return new qG({check:`greater_than`,...Y(t),value:e,inclusive:!1})}function _Q(e,t){return new qG({check:`greater_than`,...Y(t),value:e,inclusive:!0})}function vQ(e){return gQ(0,e)}function yQ(e){return mQ(0,e)}function bQ(e){return hQ(0,e)}function xQ(e){return _Q(0,e)}function SQ(e,t){return new JG({check:`multiple_of`,...Y(t),value:e})}function CQ(e,t){return new ZG({check:`max_size`,...Y(t),maximum:e})}function wQ(e,t){return new QG({check:`min_size`,...Y(t),minimum:e})}function TQ(e,t){return new $G({check:`size_equals`,...Y(t),size:e})}function EQ(e,t){return new eK({check:`max_length`,...Y(t),maximum:e})}function DQ(e,t){return new tK({check:`min_length`,...Y(t),minimum:e})}function OQ(e,t){return new nK({check:`length_equals`,...Y(t),length:e})}function kQ(e,t){return new iK({check:`string_format`,format:`regex`,...Y(t),pattern:e})}function AQ(e){return new aK({check:`string_format`,format:`lowercase`,...Y(e)})}function jQ(e){return new oK({check:`string_format`,format:`uppercase`,...Y(e)})}function MQ(e,t){return new sK({check:`string_format`,format:`includes`,...Y(t),includes:e})}function NQ(e,t){return new cK({check:`string_format`,format:`starts_with`,...Y(t),prefix:e})}function PQ(e,t){return new lK({check:`string_format`,format:`ends_with`,...Y(t),suffix:e})}function FQ(e,t,n){return new uK({check:`property`,property:e,schema:t,...Y(n)})}function IQ(e,t){return new dK({check:`mime_type`,mime:e,...Y(t)})}function LQ(e){return new fK({check:`overwrite`,tx:e})}function RQ(e){return LQ(t=>t.normalize(e))}function zQ(){return LQ(e=>e.trim())}function BQ(){return LQ(e=>e.toLowerCase())}function VQ(){return LQ(e=>e.toUpperCase())}function HQ(){return LQ(e=>cU(e))}function UQ(e,t,n){return new e({type:`array`,element:t,...Y(n)})}function WQ(e,t,n){return new e({type:`union`,options:t,...Y(n)})}function GQ(e,t,n){return new e({type:`union`,options:t,inclusive:!1,...Y(n)})}function KQ(e,t,n,r){return new e({type:`union`,options:n,discriminator:t,...Y(r)})}function qQ(e,t,n){return new e({type:`intersection`,left:t,right:n})}function JQ(e,t,n,r){let i=n instanceof HK;return new e({type:`tuple`,items:t,rest:i?n:null,...Y(i?r:n)})}function YQ(e,t,n,r){return new e({type:`record`,keyType:t,valueType:n,...Y(r)})}function XQ(e,t,n,r){return new e({type:`map`,keyType:t,valueType:n,...Y(r)})}function ZQ(e,t,n){return new e({type:`set`,valueType:t,...Y(n)})}function QQ(e,t,n){return new e({type:`enum`,entries:Array.isArray(t)?Object.fromEntries(t.map(e=>[e,e])):t,...Y(n)})}function $Q(e,t,n){return new e({type:`enum`,entries:t,...Y(n)})}function e$(e,t,n){return new e({type:`literal`,values:Array.isArray(t)?t:[t],...Y(n)})}function t$(e,t){return new e({type:`file`,...Y(t)})}function n$(e,t){return new e({type:`transform`,transform:t})}function r$(e,t){return new e({type:`optional`,innerType:t})}function i$(e,t){return new e({type:`nullable`,innerType:t})}function a$(e,t,n){return new e({type:`default`,innerType:t,get defaultValue(){return typeof n==`function`?n():dU(n)}})}function o$(e,t,n){return new e({type:`nonoptional`,innerType:t,...Y(n)})}function s$(e,t){return new e({type:`success`,innerType:t})}function c$(e,t,n){return new e({type:`catch`,innerType:t,catchValue:typeof n==`function`?n:()=>n})}function l$(e,t,n){return new e({type:`pipe`,in:t,out:n})}function u$(e,t){return new e({type:`readonly`,innerType:t})}function d$(e,t,n){return new e({type:`template_literal`,parts:t,...Y(n)})}function f$(e,t){return new e({type:`lazy`,getter:t})}function p$(e,t){return new e({type:`promise`,innerType:t})}function m$(e,t,n){let r=Y(n);return r.abort??=!0,new e({type:`custom`,check:`custom`,fn:t,...r})}function h$(e,t,n){return new e({type:`custom`,check:`custom`,fn:t,...Y(n)})}function g$(e,t){let n=_$(t=>(t.addIssue=e=>{if(typeof e==`string`)t.issues.push(NU(e,t.value,n._zod.def));else{let r=e;r.fatal&&(r.continue=!1),r.code??=`custom`,r.input??=t.value,r.inst??=n,r.continue??=!n._zod.def.abort,t.issues.push(NU(r))}},e(t.value,t)),t);return n}function _$(e,t){let n=new WG({check:`custom`,...Y(t)});return n._zod.check=e,n}function v$(e){let t=new WG({check:`describe`});return t._zod.onattach=[t=>{let n=mZ.get(t)??{};mZ.add(t,{...n,description:e})}],t._zod.check=()=>{},t}function y$(e){let t=new WG({check:`meta`});return t._zod.onattach=[t=>{let n=mZ.get(t)??{};mZ.add(t,{...n,...e})}],t._zod.check=()=>{},t}function b$(e,t){let n=Y(t),r=n.truthy??[`true`,`1`,`yes`,`on`,`y`,`enabled`],i=n.falsy??[`false`,`0`,`no`,`off`,`n`,`disabled`];n.case!==`sensitive`&&(r=r.map(e=>typeof e==`string`?e.toLowerCase():e),i=i.map(e=>typeof e==`string`?e.toLowerCase():e));let a=new Set(r),o=new Set(i),s=e.Codec??eJ,c=e.Boolean??vq,l=new s({type:`pipe`,in:new(e.String??UK)({type:`string`,error:n.error}),out:new c({type:`boolean`,error:n.error}),transform:((e,t)=>{let r=e;return n.case!==`sensitive`&&(r=r.toLowerCase()),a.has(r)?!0:!o.has(r)&&(t.issues.push({code:`invalid_value`,expected:`stringbool`,values:[...a,...o],input:t.value,inst:l,continue:!1}),{})}),reverseTransform:((e,t)=>e===!0?r[0]||`true`:i[0]||`false`),error:n.error});return l}function x$(e,t,n,r={}){let i=Y(r),a={...Y(r),check:`string_format`,type:`string`,format:t,fn:typeof n==`function`?n:e=>n.test(e),...i};return n instanceof RegExp&&(a.pattern=n),new e(a)}var S$,C$=o((()=>{pK(),hZ(),cJ(),XU(),S$={Any:null,Minute:-1,Second:0,Millisecond:3,Microsecond:6}}));function w$(e){let t=e?.target??`draft-2020-12`;return t===`draft-4`&&(t=`draft-04`),t===`draft-7`&&(t=`draft-07`),{processors:e.processors??{},metadataRegistry:e?.metadata??mZ,target:t,unrepresentable:e?.unrepresentable??`throw`,override:e?.override??(()=>{}),io:e?.io??`output`,counter:0,seen:new Map,cycles:e?.cycles??`ref`,reused:e?.reused??`inline`,external:e?.external??void 0}}function T$(e,t,n={path:[],schemaPath:[]}){var r;let i=e._zod.def,a=t.seen.get(e);if(a)return a.count++,n.schemaPath.includes(e)&&(a.cycle=n.path),a.schema;let o={schema:{},count:1,cycle:void 0,path:n.path};t.seen.set(e,o);let s=e._zod.toJSONSchema?.();if(s)o.schema=s;else{let r={...n,schemaPath:[...n.schemaPath,e],path:n.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,o.schema,r);else{let n=o.schema,a=t.processors[i.type];if(!a)throw Error(`[toJSONSchema]: Non-representable type encountered: ${i.type}`);a(e,t,n,r)}let a=e._zod.parent;a&&(o.ref||=a,T$(a,t,r),t.seen.get(a).isParent=!0)}let c=t.metadataRegistry.get(e);return c&&Object.assign(o.schema,c),t.io===`input`&&O$(e)&&(delete o.schema.examples,delete o.schema.default),t.io===`input`&&`_prefault`in o.schema&&((r=o.schema).default??(r.default=o.schema._prefault)),delete o.schema._prefault,t.seen.get(e).schema}function E$(e,t){let n=e.seen.get(t);if(!n)throw Error(`Unprocessed schema. This is a bug in Zod.`);let r=new Map;for(let t of e.seen.entries()){let n=e.metadataRegistry.get(t[0])?.id;if(n){let e=r.get(n);if(e&&e!==t[0])throw Error(`Duplicate schema id "${n}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);r.set(n,t[0])}}let i=t=>{let r=e.target===`draft-2020-12`?`$defs`:`definitions`;if(e.external){let n=e.external.registry.get(t[0])?.id,i=e.external.uri??(e=>e);if(n)return{ref:i(n)};let a=t[1].defId??t[1].schema.id??`schema${e.counter++}`;return t[1].defId=a,{defId:a,ref:`${i(`__shared`)}#/${r}/${a}`}}if(t[1]===n)return{ref:`#`};let i=`#/${r}/`,a=t[1].schema.id??`__schema${e.counter++}`;return{defId:a,ref:i+a}},a=e=>{if(e[1].schema.$ref)return;let t=e[1],{ref:n,defId:r}=i(e);t.def={...t.schema},r&&(t.defId=r);let a=t.schema;for(let e in a)delete a[e];a.$ref=n};if(e.cycles===`throw`)for(let t of e.seen.entries()){let e=t[1];if(e.cycle)throw Error(`Cycle detected: #/${e.cycle?.join(`/`)}/ + `)}t.write(`payload.value = newResult;`),t.write(`return payload;`);let s=t.compile();return(t,n)=>s(e,t,n)},a,o=SU,s=!QH.jitless,c=s&&nW.value,l=t.catchall,u;e._zod.parse=(d,f)=>{u??=r.value;let p=d.value;return o(p)?s&&c&&f?.async===!1&&f.jitless!==!0?(a||=i(t.shape),d=a(d,f),l?LK([],p,d,f,u,e):d):n(d,f):(d.issues.push({expected:`object`,code:`invalid_type`,input:p,inst:e}),d)}}),Gq=q(`$ZodUnion`,(e,t)=>{tq.init(e,t),fU(e._zod,`optin`,()=>t.options.some(e=>e._zod.optin===`optional`)?`optional`:void 0),fU(e._zod,`optout`,()=>t.options.some(e=>e._zod.optout===`optional`)?`optional`:void 0),fU(e._zod,`values`,()=>{if(t.options.every(e=>e._zod.values))return new Set(t.options.flatMap(e=>Array.from(e._zod.values)))}),fU(e._zod,`pattern`,()=>{if(t.options.every(e=>e._zod.pattern)){let e=t.options.map(e=>e._zod.pattern);return RegExp(`^(${e.map(e=>uU(e.source)).join(`|`)})$`)}});let n=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(r,i)=>{if(n)return n(r,i);let a=!1,o=[];for(let e of t.options){let t=e._zod.run({value:r.value,issues:[]},i);if(t instanceof Promise)o.push(t),a=!0;else{if(t.issues.length===0)return t;o.push(t)}}return a?Promise.all(o).then(t=>RK(t,r,e,i)):RK(o,r,e,i)}}),Kq=q(`$ZodXor`,(e,t)=>{Gq.init(e,t),t.inclusive=!1;let n=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(r,i)=>{if(n)return n(r,i);let a=!1,o=[];for(let e of t.options){let t=e._zod.run({value:r.value,issues:[]},i);t instanceof Promise?(o.push(t),a=!0):o.push(t)}return a?Promise.all(o).then(t=>zK(t,r,e,i)):zK(o,r,e,i)}}),qq=q(`$ZodDiscriminatedUnion`,(e,t)=>{t.inclusive=!1,Gq.init(e,t);let n=e._zod.parse;fU(e._zod,`propValues`,()=>{let e={};for(let n of t.options){let r=n._zod.propValues;if(!r||Object.keys(r).length===0)throw Error(`Invalid discriminated union option at index "${t.options.indexOf(n)}"`);for(let[t,n]of Object.entries(r)){e[t]||(e[t]=new Set);for(let r of n)e[t].add(r)}}return e});let r=cU(()=>{let e=t.options,n=new Map;for(let r of e){let e=r._zod.propValues?.[t.discriminator];if(!e||e.size===0)throw Error(`Invalid discriminated union option at index "${t.options.indexOf(r)}"`);for(let t of e){if(n.has(t))throw Error(`Duplicate discriminator value "${String(t)}"`);n.set(t,r)}}return n});e._zod.parse=(i,a)=>{let o=i.value;if(!SU(o))return i.issues.push({code:`invalid_type`,expected:`object`,input:o,inst:e}),i;let s=r.value.get(o?.[t.discriminator]);return s?s._zod.run(i,a):t.unionFallback||a.direction===`backward`?n(i,a):(i.issues.push({code:`invalid_union`,errors:[],note:`No matching discriminator`,discriminator:t.discriminator,options:Array.from(r.value.keys()),input:o,path:[t.discriminator],inst:e}),i)}}),Jq=q(`$ZodIntersection`,(e,t)=>{tq.init(e,t),e._zod.parse=(e,n)=>{let r=e.value,i=t.left._zod.run({value:r,issues:[]},n),a=t.right._zod.run({value:r,issues:[]},n);return i instanceof Promise||a instanceof Promise?Promise.all([i,a]).then(([t,n])=>VK(e,t,n)):VK(e,i,a)}}),Yq=q(`$ZodTuple`,(e,t)=>{tq.init(e,t);let n=t.items;e._zod.parse=(r,i)=>{let a=r.value;if(!Array.isArray(a))return r.issues.push({input:a,inst:e,expected:`tuple`,code:`invalid_type`}),r;r.value=[];let o=[],s=HK(n,`optin`),c=HK(n,`optout`);if(!t.rest){if(a.lengthn.length&&r.issues.push({code:`too_big`,maximum:n.length,inclusive:!0,input:a,inst:e,origin:`array`})}let l=Array(n.length);for(let e=0;e{l[e]=t})):l[e]=t}if(t.rest){let e=n.length-1,s=a.slice(n.length);for(let n of s){e++;let a=t.rest._zod.run({value:n,issues:[]},i);a instanceof Promise?o.push(a.then(t=>UK(t,r,e))):UK(a,r,e)}}return o.length?Promise.all(o).then(()=>WK(l,r,n,a,c)):WK(l,r,n,a,c)}}),Xq=q(`$ZodRecord`,(e,t)=>{tq.init(e,t),e._zod.parse=(n,r)=>{let i=n.value;if(!CU(i))return n.issues.push({expected:`record`,code:`invalid_type`,input:i,inst:e}),n;let a=[],o=t.keyType._zod.values;if(o){n.value={};let s=new Set;for(let c of o)if(typeof c==`string`||typeof c==`number`||typeof c==`symbol`){s.add(typeof c==`number`?c.toString():c);let o=t.keyType._zod.run({value:c,issues:[]},r);if(o instanceof Promise)throw Error(`Async schemas not supported in object keys currently`);if(o.issues.length){n.issues.push({code:`invalid_key`,origin:`record`,issues:o.issues.map(e=>HU(e,r,KH())),input:c,path:[c],inst:e});continue}let l=o.value,u=t.valueType._zod.run({value:i[c],issues:[]},r);u instanceof Promise?a.push(u.then(e=>{e.issues.length&&n.issues.push(...BU(c,e.issues)),n.value[l]=e.value})):(u.issues.length&&n.issues.push(...BU(c,u.issues)),n.value[l]=u.value)}let c;for(let e in i)s.has(e)||(c??=[],c.push(e));c&&c.length>0&&n.issues.push({code:`unrecognized_keys`,input:i,inst:e,keys:c})}else{n.value={};for(let o of Reflect.ownKeys(i)){if(o===`__proto__`||!Object.prototype.propertyIsEnumerable.call(i,o))continue;let s=t.keyType._zod.run({value:o,issues:[]},r);if(s instanceof Promise)throw Error(`Async schemas not supported in object keys currently`);if(typeof o==`string`&&NG.test(o)&&s.issues.length){let e=t.keyType._zod.run({value:Number(o),issues:[]},r);if(e instanceof Promise)throw Error(`Async schemas not supported in object keys currently`);e.issues.length===0&&(s=e)}if(s.issues.length){t.mode===`loose`?n.value[o]=i[o]:n.issues.push({code:`invalid_key`,origin:`record`,issues:s.issues.map(e=>HU(e,r,KH())),input:o,path:[o],inst:e});continue}let c=t.valueType._zod.run({value:i[o],issues:[]},r);c instanceof Promise?a.push(c.then(e=>{e.issues.length&&n.issues.push(...BU(o,e.issues)),n.value[s.value]=e.value})):(c.issues.length&&n.issues.push(...BU(o,c.issues)),n.value[s.value]=c.value)}}return a.length?Promise.all(a).then(()=>n):n}}),Zq=q(`$ZodMap`,(e,t)=>{tq.init(e,t),e._zod.parse=(n,r)=>{let i=n.value;if(!(i instanceof Map))return n.issues.push({expected:`map`,code:`invalid_type`,input:i,inst:e}),n;let a=[];n.value=new Map;for(let[o,s]of i){let c=t.keyType._zod.run({value:o,issues:[]},r),l=t.valueType._zod.run({value:s,issues:[]},r);c instanceof Promise||l instanceof Promise?a.push(Promise.all([c,l]).then(([t,a])=>{GK(t,a,n,o,i,e,r)})):GK(c,l,n,o,i,e,r)}return a.length?Promise.all(a).then(()=>n):n}}),Qq=q(`$ZodSet`,(e,t)=>{tq.init(e,t),e._zod.parse=(n,r)=>{let i=n.value;if(!(i instanceof Set))return n.issues.push({input:i,inst:e,expected:`set`,code:`invalid_type`}),n;let a=[];n.value=new Set;for(let e of i){let i=t.valueType._zod.run({value:e,issues:[]},r);i instanceof Promise?a.push(i.then(e=>KK(e,n))):KK(i,n)}return a.length?Promise.all(a).then(()=>n):n}}),$q=q(`$ZodEnum`,(e,t)=>{tq.init(e,t);let n=oU(t.entries),r=new Set(n);e._zod.values=r,e._zod.pattern=RegExp(`^(${n.filter(e=>iW.has(typeof e)).map(e=>typeof e==`string`?EU(e):e.toString()).join(`|`)})$`),e._zod.parse=(t,i)=>{let a=t.value;return r.has(a)||t.issues.push({code:`invalid_value`,values:n,input:a,inst:e}),t}}),eJ=q(`$ZodLiteral`,(e,t)=>{if(tq.init(e,t),t.values.length===0)throw Error(`Cannot create literal schema with no valid values`);let n=new Set(t.values);e._zod.values=n,e._zod.pattern=RegExp(`^(${t.values.map(e=>typeof e==`string`?EU(e):e?EU(e.toString()):String(e)).join(`|`)})$`),e._zod.parse=(r,i)=>{let a=r.value;return n.has(a)||r.issues.push({code:`invalid_value`,values:t.values,input:a,inst:e}),r}}),tJ=q(`$ZodFile`,(e,t)=>{tq.init(e,t),e._zod.parse=(t,n)=>{let r=t.value;return r instanceof File||t.issues.push({expected:`file`,code:`invalid_type`,input:r,inst:e}),t}}),nJ=q(`$ZodTransform`,(e,t)=>{tq.init(e,t),e._zod.optin=`optional`,e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new ZH(e.constructor.name);let i=t.transform(n.value,n);if(r.async)return(i instanceof Promise?i:Promise.resolve(i)).then(e=>(n.value=e,n.fallback=!0,n));if(i instanceof Promise)throw new XH;return n.value=i,n.fallback=!0,n}}),rJ=q(`$ZodOptional`,(e,t)=>{tq.init(e,t),e._zod.optin=`optional`,e._zod.optout=`optional`,fU(e._zod,`values`,()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),fU(e._zod,`pattern`,()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${uU(e.source)})?$`):void 0}),e._zod.parse=(e,n)=>{if(t.innerType._zod.optin===`optional`){let r=e.value,i=t.innerType._zod.run(e,n);return i instanceof Promise?i.then(e=>qK(e,r)):qK(i,r)}return e.value===void 0?e:t.innerType._zod.run(e,n)}}),iJ=q(`$ZodExactOptional`,(e,t)=>{rJ.init(e,t),fU(e._zod,`values`,()=>t.innerType._zod.values),fU(e._zod,`pattern`,()=>t.innerType._zod.pattern),e._zod.parse=(e,n)=>t.innerType._zod.run(e,n)}),aJ=q(`$ZodNullable`,(e,t)=>{tq.init(e,t),fU(e._zod,`optin`,()=>t.innerType._zod.optin),fU(e._zod,`optout`,()=>t.innerType._zod.optout),fU(e._zod,`pattern`,()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${uU(e.source)}|null)$`):void 0}),fU(e._zod,`values`,()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(e,n)=>e.value===null?e:t.innerType._zod.run(e,n)}),oJ=q(`$ZodDefault`,(e,t)=>{tq.init(e,t),e._zod.optin=`optional`,fU(e._zod,`values`,()=>t.innerType._zod.values),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);if(e.value===void 0)return e.value=t.defaultValue,e;let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(e=>JK(e,t)):JK(r,t)}}),sJ=q(`$ZodPrefault`,(e,t)=>{tq.init(e,t),e._zod.optin=`optional`,fU(e._zod,`values`,()=>t.innerType._zod.values),e._zod.parse=(e,n)=>(n.direction===`backward`||e.value===void 0&&(e.value=t.defaultValue),t.innerType._zod.run(e,n))}),cJ=q(`$ZodNonOptional`,(e,t)=>{tq.init(e,t),fU(e._zod,`values`,()=>{let e=t.innerType._zod.values;return e?new Set([...e].filter(e=>e!==void 0)):void 0}),e._zod.parse=(n,r)=>{let i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(t=>YK(t,e)):YK(i,e)}}),lJ=q(`$ZodSuccess`,(e,t)=>{tq.init(e,t),e._zod.parse=(e,n)=>{if(n.direction===`backward`)throw new ZH(`ZodSuccess`);let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(t=>(e.value=t.issues.length===0,e)):(e.value=r.issues.length===0,e)}}),uJ=q(`$ZodCatch`,(e,t)=>{tq.init(e,t),e._zod.optin=`optional`,fU(e._zod,`optout`,()=>t.innerType._zod.optout),fU(e._zod,`values`,()=>t.innerType._zod.values),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(r=>(e.value=r.value,r.issues.length&&(e.value=t.catchValue({...e,error:{issues:r.issues.map(e=>HU(e,n,KH()))},input:e.value}),e.issues=[],e.fallback=!0),e)):(e.value=r.value,r.issues.length&&(e.value=t.catchValue({...e,error:{issues:r.issues.map(e=>HU(e,n,KH()))},input:e.value}),e.issues=[],e.fallback=!0),e)}}),dJ=q(`$ZodNaN`,(e,t)=>{tq.init(e,t),e._zod.parse=(t,n)=>((typeof t.value!=`number`||!Number.isNaN(t.value))&&t.issues.push({input:t.value,inst:e,expected:`nan`,code:`invalid_type`}),t)}),fJ=q(`$ZodPipe`,(e,t)=>{tq.init(e,t),fU(e._zod,`values`,()=>t.in._zod.values),fU(e._zod,`optin`,()=>t.in._zod.optin),fU(e._zod,`optout`,()=>t.out._zod.optout),fU(e._zod,`propValues`,()=>t.in._zod.propValues),e._zod.parse=(e,n)=>{if(n.direction===`backward`){let r=t.out._zod.run(e,n);return r instanceof Promise?r.then(e=>XK(e,t.in,n)):XK(r,t.in,n)}let r=t.in._zod.run(e,n);return r instanceof Promise?r.then(e=>XK(e,t.out,n)):XK(r,t.out,n)}}),pJ=q(`$ZodCodec`,(e,t)=>{tq.init(e,t),fU(e._zod,`values`,()=>t.in._zod.values),fU(e._zod,`optin`,()=>t.in._zod.optin),fU(e._zod,`optout`,()=>t.out._zod.optout),fU(e._zod,`propValues`,()=>t.in._zod.propValues),e._zod.parse=(e,n)=>{if((n.direction||`forward`)===`forward`){let r=t.in._zod.run(e,n);return r instanceof Promise?r.then(e=>ZK(e,t,n)):ZK(r,t,n)}{let r=t.out._zod.run(e,n);return r instanceof Promise?r.then(e=>ZK(e,t,n)):ZK(r,t,n)}}}),mJ=q(`$ZodPreprocess`,(e,t)=>{fJ.init(e,t)}),hJ=q(`$ZodReadonly`,(e,t)=>{tq.init(e,t),fU(e._zod,`propValues`,()=>t.innerType._zod.propValues),fU(e._zod,`values`,()=>t.innerType._zod.values),fU(e._zod,`optin`,()=>t.innerType?._zod?.optin),fU(e._zod,`optout`,()=>t.innerType?._zod?.optout),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then($K):$K(r)}}),gJ=q(`$ZodTemplateLiteral`,(e,t)=>{tq.init(e,t);let n=[];for(let e of t.parts)if(typeof e==`object`&&e){if(!e._zod.pattern)throw Error(`Invalid template literal part, no pattern found: ${[...e._zod.traits].shift()}`);let t=e._zod.pattern instanceof RegExp?e._zod.pattern.source:e._zod.pattern;if(!t)throw Error(`Invalid template literal part: ${e._zod.traits}`);let r=+!!t.startsWith(`^`),i=t.endsWith(`$`)?t.length-1:t.length;n.push(t.slice(r,i))}else if(e===null||aW.has(typeof e))n.push(EU(`${e}`));else throw Error(`Invalid template literal part: ${e}`);e._zod.pattern=RegExp(`^${n.join(``)}$`),e._zod.parse=(n,r)=>typeof n.value==`string`?(e._zod.pattern.lastIndex=0,e._zod.pattern.test(n.value)||n.issues.push({input:n.value,inst:e,code:`invalid_format`,format:t.format??`template_literal`,pattern:e._zod.pattern.source}),n):(n.issues.push({input:n.value,inst:e,expected:`string`,code:`invalid_type`}),n)}),_J=q(`$ZodFunction`,(e,t)=>(tq.init(e,t),e._def=t,e._zod.def=t,e.implement=t=>{if(typeof t!=`function`)throw Error(`implement() must be called with a function`);return function(...n){let r=e._def.input?bW(e._def.input,n):n,i=Reflect.apply(t,this,r);return e._def.output?bW(e._def.output,i):i}},e.implementAsync=t=>{if(typeof t!=`function`)throw Error(`implementAsync() must be called with a function`);return async function(...n){let r=e._def.input?await SW(e._def.input,n):n,i=await Reflect.apply(t,this,r);return e._def.output?await SW(e._def.output,i):i}},e._zod.parse=(t,n)=>typeof t.value==`function`?(t.value=e._def.output&&e._def.output._zod.def.type===`promise`?e.implementAsync(t.value):e.implement(t.value),t):(t.issues.push({code:`invalid_type`,expected:`function`,input:t.value,inst:e}),t),e.input=(...t)=>{let n=e.constructor;return Array.isArray(t[0])?new n({type:`function`,input:new Yq({type:`tuple`,items:t[0],rest:t[1]}),output:e._def.output}):new n({type:`function`,input:t[0],output:e._def.output})},e.output=t=>{let n=e.constructor;return new n({type:`function`,input:e._def.input,output:t})},e)),vJ=q(`$ZodPromise`,(e,t)=>{tq.init(e,t),e._zod.parse=(e,n)=>Promise.resolve(e.value).then(e=>t.innerType._zod.run({value:e,issues:[]},n))}),yJ=q(`$ZodLazy`,(e,t)=>{tq.init(e,t),fU(e._zod,`innerType`,()=>{let e=t;return e._cachedInner||=t.getter(),e._cachedInner}),fU(e._zod,`pattern`,()=>e._zod.innerType?._zod?.pattern),fU(e._zod,`propValues`,()=>e._zod.innerType?._zod?.propValues),fU(e._zod,`optin`,()=>e._zod.innerType?._zod?.optin??void 0),fU(e._zod,`optout`,()=>e._zod.innerType?._zod?.optout??void 0),e._zod.parse=(t,n)=>e._zod.innerType._zod.run(t,n)}),bJ=q(`$ZodCustom`,(e,t)=>{rK.init(e,t),tq.init(e,t),e._zod.parse=(e,t)=>e,e._zod.check=n=>{let r=n.value,i=t.fn(r);if(i instanceof Promise)return i.then(t=>eq(t,n,r,e));eq(i,n,r,e)}})}));function SJ(){return{localeError:CJ()}}var CJ,wJ=o((()=>{lW(),CJ=()=>{let e={string:{unit:`حرف`,verb:`أن يحوي`},file:{unit:`بايت`,verb:`أن يحوي`},array:{unit:`عنصر`,verb:`أن يحوي`},set:{unit:`عنصر`,verb:`أن يحوي`}};function t(t){return e[t]??null}let n={regex:`مدخل`,email:`بريد إلكتروني`,url:`رابط`,emoji:`إيموجي`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`تاريخ ووقت بمعيار ISO`,date:`تاريخ بمعيار ISO`,time:`وقت بمعيار ISO`,duration:`مدة بمعيار ISO`,ipv4:`عنوان IPv4`,ipv6:`عنوان IPv6`,cidrv4:`مدى عناوين بصيغة IPv4`,cidrv6:`مدى عناوين بصيغة IPv6`,base64:`نَص بترميز base64-encoded`,base64url:`نَص بترميز base64url-encoded`,json_string:`نَص على هيئة JSON`,e164:`رقم هاتف بمعيار E.164`,jwt:`JWT`,template_literal:`مدخل`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=GU(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`مدخلات غير مقبولة: يفترض إدخال instanceof ${e.expected}، ولكن تم إدخال ${i}`:`مدخلات غير مقبولة: يفترض إدخال ${t}، ولكن تم إدخال ${i}`}case`invalid_value`:return e.values.length===1?`مدخلات غير مقبولة: يفترض إدخال ${kU(e.values[0])}`:`اختيار غير مقبول: يتوقع انتقاء أحد هذه الخيارات: ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?` أكبر من اللازم: يفترض أن تكون ${e.origin??`القيمة`} ${n} ${e.maximum.toString()} ${r.unit??`عنصر`}`:`أكبر من اللازم: يفترض أن تكون ${e.origin??`القيمة`} ${n} ${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`أصغر من اللازم: يفترض لـ ${e.origin} أن يكون ${n} ${e.minimum.toString()} ${r.unit}`:`أصغر من اللازم: يفترض لـ ${e.origin} أن يكون ${n} ${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`نَص غير مقبول: يجب أن يبدأ بـ "${e.prefix}"`:t.format===`ends_with`?`نَص غير مقبول: يجب أن ينتهي بـ "${t.suffix}"`:t.format===`includes`?`نَص غير مقبول: يجب أن يتضمَّن "${t.includes}"`:t.format===`regex`?`نَص غير مقبول: يجب أن يطابق النمط ${t.pattern}`:`${n[t.format]??e.format} غير مقبول`}case`not_multiple_of`:return`رقم غير مقبول: يجب أن يكون من مضاعفات ${e.divisor}`;case`unrecognized_keys`:return`معرف${e.keys.length>1?`ات`:``} غريب${e.keys.length>1?`ة`:``}: ${J(e.keys,`، `)}`;case`invalid_key`:return`معرف غير مقبول في ${e.origin}`;case`invalid_union`:return`مدخل غير مقبول`;case`invalid_element`:return`مدخل غير مقبول في ${e.origin}`;default:return`مدخل غير مقبول`}}}}));function TJ(){return{localeError:EJ()}}var EJ,DJ=o((()=>{lW(),EJ=()=>{let e={string:{unit:`simvol`,verb:`olmalıdır`},file:{unit:`bayt`,verb:`olmalıdır`},array:{unit:`element`,verb:`olmalıdır`},set:{unit:`element`,verb:`olmalıdır`}};function t(t){return e[t]??null}let n={regex:`input`,email:`email address`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO datetime`,date:`ISO date`,time:`ISO time`,duration:`ISO duration`,ipv4:`IPv4 address`,ipv6:`IPv6 address`,cidrv4:`IPv4 range`,cidrv6:`IPv6 range`,base64:`base64-encoded string`,base64url:`base64url-encoded string`,json_string:`JSON string`,e164:`E.164 number`,jwt:`JWT`,template_literal:`input`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=GU(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Yanlış dəyər: gözlənilən instanceof ${e.expected}, daxil olan ${i}`:`Yanlış dəyər: gözlənilən ${t}, daxil olan ${i}`}case`invalid_value`:return e.values.length===1?`Yanlış dəyər: gözlənilən ${kU(e.values[0])}`:`Yanlış seçim: aşağıdakılardan biri olmalıdır: ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Çox böyük: gözlənilən ${e.origin??`dəyər`} ${n}${e.maximum.toString()} ${r.unit??`element`}`:`Çox böyük: gözlənilən ${e.origin??`dəyər`} ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Çox kiçik: gözlənilən ${e.origin} ${n}${e.minimum.toString()} ${r.unit}`:`Çox kiçik: gözlənilən ${e.origin} ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Yanlış mətn: "${t.prefix}" ilə başlamalıdır`:t.format===`ends_with`?`Yanlış mətn: "${t.suffix}" ilə bitməlidir`:t.format===`includes`?`Yanlış mətn: "${t.includes}" daxil olmalıdır`:t.format===`regex`?`Yanlış mətn: ${t.pattern} şablonuna uyğun olmalıdır`:`Yanlış ${n[t.format]??e.format}`}case`not_multiple_of`:return`Yanlış ədəd: ${e.divisor} ilə bölünə bilən olmalıdır`;case`unrecognized_keys`:return`Tanınmayan açar${e.keys.length>1?`lar`:``}: ${J(e.keys,`, `)}`;case`invalid_key`:return`${e.origin} daxilində yanlış açar`;case`invalid_union`:return`Yanlış dəyər`;case`invalid_element`:return`${e.origin} daxilində yanlış dəyər`;default:return`Yanlış dəyər`}}}}));function OJ(e,t,n,r){let i=Math.abs(e),a=i%10,o=i%100;return o>=11&&o<=19?r:a===1?t:a>=2&&a<=4?n:r}function kJ(){return{localeError:AJ()}}var AJ,jJ=o((()=>{lW(),AJ=()=>{let e={string:{unit:{one:`сімвал`,few:`сімвалы`,many:`сімвалаў`},verb:`мець`},array:{unit:{one:`элемент`,few:`элементы`,many:`элементаў`},verb:`мець`},set:{unit:{one:`элемент`,few:`элементы`,many:`элементаў`},verb:`мець`},file:{unit:{one:`байт`,few:`байты`,many:`байтаў`},verb:`мець`}};function t(t){return e[t]??null}let n={regex:`увод`,email:`email адрас`,url:`URL`,emoji:`эмодзі`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO дата і час`,date:`ISO дата`,time:`ISO час`,duration:`ISO працягласць`,ipv4:`IPv4 адрас`,ipv6:`IPv6 адрас`,cidrv4:`IPv4 дыяпазон`,cidrv6:`IPv6 дыяпазон`,base64:`радок у фармаце base64`,base64url:`радок у фармаце base64url`,json_string:`JSON радок`,e164:`нумар E.164`,jwt:`JWT`,template_literal:`увод`},r={nan:`NaN`,number:`лік`,array:`масіў`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=GU(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Няправільны ўвод: чакаўся instanceof ${e.expected}, атрымана ${i}`:`Няправільны ўвод: чакаўся ${t}, атрымана ${i}`}case`invalid_value`:return e.values.length===1?`Няправільны ўвод: чакалася ${kU(e.values[0])}`:`Няправільны варыянт: чакаўся адзін з ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);if(r){let t=OJ(Number(e.maximum),r.unit.one,r.unit.few,r.unit.many);return`Занадта вялікі: чакалася, што ${e.origin??`значэнне`} павінна ${r.verb} ${n}${e.maximum.toString()} ${t}`}return`Занадта вялікі: чакалася, што ${e.origin??`значэнне`} павінна быць ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);if(r){let t=OJ(Number(e.minimum),r.unit.one,r.unit.few,r.unit.many);return`Занадта малы: чакалася, што ${e.origin} павінна ${r.verb} ${n}${e.minimum.toString()} ${t}`}return`Занадта малы: чакалася, што ${e.origin} павінна быць ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Няправільны радок: павінен пачынацца з "${t.prefix}"`:t.format===`ends_with`?`Няправільны радок: павінен заканчвацца на "${t.suffix}"`:t.format===`includes`?`Няправільны радок: павінен змяшчаць "${t.includes}"`:t.format===`regex`?`Няправільны радок: павінен адпавядаць шаблону ${t.pattern}`:`Няправільны ${n[t.format]??e.format}`}case`not_multiple_of`:return`Няправільны лік: павінен быць кратным ${e.divisor}`;case`unrecognized_keys`:return`Нераспазнаны ${e.keys.length>1?`ключы`:`ключ`}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Няправільны ключ у ${e.origin}`;case`invalid_union`:return`Няправільны ўвод`;case`invalid_element`:return`Няправільнае значэнне ў ${e.origin}`;default:return`Няправільны ўвод`}}}}));function MJ(){return{localeError:NJ()}}var NJ,PJ=o((()=>{lW(),NJ=()=>{let e={string:{unit:`символа`,verb:`да съдържа`},file:{unit:`байта`,verb:`да съдържа`},array:{unit:`елемента`,verb:`да съдържа`},set:{unit:`елемента`,verb:`да съдържа`}};function t(t){return e[t]??null}let n={regex:`вход`,email:`имейл адрес`,url:`URL`,emoji:`емоджи`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO време`,date:`ISO дата`,time:`ISO време`,duration:`ISO продължителност`,ipv4:`IPv4 адрес`,ipv6:`IPv6 адрес`,cidrv4:`IPv4 диапазон`,cidrv6:`IPv6 диапазон`,base64:`base64-кодиран низ`,base64url:`base64url-кодиран низ`,json_string:`JSON низ`,e164:`E.164 номер`,jwt:`JWT`,template_literal:`вход`},r={nan:`NaN`,number:`число`,array:`масив`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=GU(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Невалиден вход: очакван instanceof ${e.expected}, получен ${i}`:`Невалиден вход: очакван ${t}, получен ${i}`}case`invalid_value`:return e.values.length===1?`Невалиден вход: очакван ${kU(e.values[0])}`:`Невалидна опция: очаквано едно от ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Твърде голямо: очаква се ${e.origin??`стойност`} да съдържа ${n}${e.maximum.toString()} ${r.unit??`елемента`}`:`Твърде голямо: очаква се ${e.origin??`стойност`} да бъде ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Твърде малко: очаква се ${e.origin} да съдържа ${n}${e.minimum.toString()} ${r.unit}`:`Твърде малко: очаква се ${e.origin} да бъде ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;if(t.format===`starts_with`)return`Невалиден низ: трябва да започва с "${t.prefix}"`;if(t.format===`ends_with`)return`Невалиден низ: трябва да завършва с "${t.suffix}"`;if(t.format===`includes`)return`Невалиден низ: трябва да включва "${t.includes}"`;if(t.format===`regex`)return`Невалиден низ: трябва да съвпада с ${t.pattern}`;let r=`Невалиден`;return t.format===`emoji`&&(r=`Невалидно`),t.format===`datetime`&&(r=`Невалидно`),t.format===`date`&&(r=`Невалидна`),t.format===`time`&&(r=`Невалидно`),t.format===`duration`&&(r=`Невалидна`),`${r} ${n[t.format]??e.format}`}case`not_multiple_of`:return`Невалидно число: трябва да бъде кратно на ${e.divisor}`;case`unrecognized_keys`:return`Неразпознат${e.keys.length>1?`и`:``} ключ${e.keys.length>1?`ове`:``}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Невалиден ключ в ${e.origin}`;case`invalid_union`:return`Невалиден вход`;case`invalid_element`:return`Невалидна стойност в ${e.origin}`;default:return`Невалиден вход`}}}}));function FJ(){return{localeError:IJ()}}var IJ,LJ=o((()=>{lW(),IJ=()=>{let e={string:{unit:`caràcters`,verb:`contenir`},file:{unit:`bytes`,verb:`contenir`},array:{unit:`elements`,verb:`contenir`},set:{unit:`elements`,verb:`contenir`}};function t(t){return e[t]??null}let n={regex:`entrada`,email:`adreça electrònica`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`data i hora ISO`,date:`data ISO`,time:`hora ISO`,duration:`durada ISO`,ipv4:`adreça IPv4`,ipv6:`adreça IPv6`,cidrv4:`rang IPv4`,cidrv6:`rang IPv6`,base64:`cadena codificada en base64`,base64url:`cadena codificada en base64url`,json_string:`cadena JSON`,e164:`número E.164`,jwt:`JWT`,template_literal:`entrada`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=GU(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Tipus invàlid: s'esperava instanceof ${e.expected}, s'ha rebut ${i}`:`Tipus invàlid: s'esperava ${t}, s'ha rebut ${i}`}case`invalid_value`:return e.values.length===1?`Valor invàlid: s'esperava ${kU(e.values[0])}`:`Opció invàlida: s'esperava una de ${J(e.values,` o `)}`;case`too_big`:{let n=e.inclusive?`com a màxim`:`menys de`,r=t(e.origin);return r?`Massa gran: s'esperava que ${e.origin??`el valor`} contingués ${n} ${e.maximum.toString()} ${r.unit??`elements`}`:`Massa gran: s'esperava que ${e.origin??`el valor`} fos ${n} ${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`com a mínim`:`més de`,r=t(e.origin);return r?`Massa petit: s'esperava que ${e.origin} contingués ${n} ${e.minimum.toString()} ${r.unit}`:`Massa petit: s'esperava que ${e.origin} fos ${n} ${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Format invàlid: ha de començar amb "${t.prefix}"`:t.format===`ends_with`?`Format invàlid: ha d'acabar amb "${t.suffix}"`:t.format===`includes`?`Format invàlid: ha d'incloure "${t.includes}"`:t.format===`regex`?`Format invàlid: ha de coincidir amb el patró ${t.pattern}`:`Format invàlid per a ${n[t.format]??e.format}`}case`not_multiple_of`:return`Número invàlid: ha de ser múltiple de ${e.divisor}`;case`unrecognized_keys`:return`Clau${e.keys.length>1?`s`:``} no reconeguda${e.keys.length>1?`s`:``}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Clau invàlida a ${e.origin}`;case`invalid_union`:return`Entrada invàlida`;case`invalid_element`:return`Element invàlid a ${e.origin}`;default:return`Entrada invàlida`}}}}));function RJ(){return{localeError:zJ()}}var zJ,BJ=o((()=>{lW(),zJ=()=>{let e={string:{unit:`znaků`,verb:`mít`},file:{unit:`bajtů`,verb:`mít`},array:{unit:`prvků`,verb:`mít`},set:{unit:`prvků`,verb:`mít`}};function t(t){return e[t]??null}let n={regex:`regulární výraz`,email:`e-mailová adresa`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`datum a čas ve formátu ISO`,date:`datum ve formátu ISO`,time:`čas ve formátu ISO`,duration:`doba trvání ISO`,ipv4:`IPv4 adresa`,ipv6:`IPv6 adresa`,cidrv4:`rozsah IPv4`,cidrv6:`rozsah IPv6`,base64:`řetězec zakódovaný ve formátu base64`,base64url:`řetězec zakódovaný ve formátu base64url`,json_string:`řetězec ve formátu JSON`,e164:`číslo E.164`,jwt:`JWT`,template_literal:`vstup`},r={nan:`NaN`,number:`číslo`,string:`řetězec`,function:`funkce`,array:`pole`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=GU(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Neplatný vstup: očekáváno instanceof ${e.expected}, obdrženo ${i}`:`Neplatný vstup: očekáváno ${t}, obdrženo ${i}`}case`invalid_value`:return e.values.length===1?`Neplatný vstup: očekáváno ${kU(e.values[0])}`:`Neplatná možnost: očekávána jedna z hodnot ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Hodnota je příliš velká: ${e.origin??`hodnota`} musí mít ${n}${e.maximum.toString()} ${r.unit??`prvků`}`:`Hodnota je příliš velká: ${e.origin??`hodnota`} musí být ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Hodnota je příliš malá: ${e.origin??`hodnota`} musí mít ${n}${e.minimum.toString()} ${r.unit??`prvků`}`:`Hodnota je příliš malá: ${e.origin??`hodnota`} musí být ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Neplatný řetězec: musí začínat na "${t.prefix}"`:t.format===`ends_with`?`Neplatný řetězec: musí končit na "${t.suffix}"`:t.format===`includes`?`Neplatný řetězec: musí obsahovat "${t.includes}"`:t.format===`regex`?`Neplatný řetězec: musí odpovídat vzoru ${t.pattern}`:`Neplatný formát ${n[t.format]??e.format}`}case`not_multiple_of`:return`Neplatné číslo: musí být násobkem ${e.divisor}`;case`unrecognized_keys`:return`Neznámé klíče: ${J(e.keys,`, `)}`;case`invalid_key`:return`Neplatný klíč v ${e.origin}`;case`invalid_union`:return`Neplatný vstup`;case`invalid_element`:return`Neplatná hodnota v ${e.origin}`;default:return`Neplatný vstup`}}}}));function VJ(){return{localeError:HJ()}}var HJ,UJ=o((()=>{lW(),HJ=()=>{let e={string:{unit:`tegn`,verb:`havde`},file:{unit:`bytes`,verb:`havde`},array:{unit:`elementer`,verb:`indeholdt`},set:{unit:`elementer`,verb:`indeholdt`}};function t(t){return e[t]??null}let n={regex:`input`,email:`e-mailadresse`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO dato- og klokkeslæt`,date:`ISO-dato`,time:`ISO-klokkeslæt`,duration:`ISO-varighed`,ipv4:`IPv4-område`,ipv6:`IPv6-område`,cidrv4:`IPv4-spektrum`,cidrv6:`IPv6-spektrum`,base64:`base64-kodet streng`,base64url:`base64url-kodet streng`,json_string:`JSON-streng`,e164:`E.164-nummer`,jwt:`JWT`,template_literal:`input`},r={nan:`NaN`,string:`streng`,number:`tal`,boolean:`boolean`,array:`liste`,object:`objekt`,set:`sæt`,file:`fil`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=GU(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Ugyldigt input: forventede instanceof ${e.expected}, fik ${i}`:`Ugyldigt input: forventede ${t}, fik ${i}`}case`invalid_value`:return e.values.length===1?`Ugyldig værdi: forventede ${kU(e.values[0])}`:`Ugyldigt valg: forventede en af følgende ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,i=t(e.origin),a=r[e.origin]??e.origin;return i?`For stor: forventede ${a??`value`} ${i.verb} ${n} ${e.maximum.toString()} ${i.unit??`elementer`}`:`For stor: forventede ${a??`value`} havde ${n} ${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,i=t(e.origin),a=r[e.origin]??e.origin;return i?`For lille: forventede ${a} ${i.verb} ${n} ${e.minimum.toString()} ${i.unit}`:`For lille: forventede ${a} havde ${n} ${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Ugyldig streng: skal starte med "${t.prefix}"`:t.format===`ends_with`?`Ugyldig streng: skal ende med "${t.suffix}"`:t.format===`includes`?`Ugyldig streng: skal indeholde "${t.includes}"`:t.format===`regex`?`Ugyldig streng: skal matche mønsteret ${t.pattern}`:`Ugyldig ${n[t.format]??e.format}`}case`not_multiple_of`:return`Ugyldigt tal: skal være deleligt med ${e.divisor}`;case`unrecognized_keys`:return`${e.keys.length>1?`Ukendte nøgler`:`Ukendt nøgle`}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Ugyldig nøgle i ${e.origin}`;case`invalid_union`:return`Ugyldigt input: matcher ingen af de tilladte typer`;case`invalid_element`:return`Ugyldig værdi i ${e.origin}`;default:return`Ugyldigt input`}}}}));function WJ(){return{localeError:GJ()}}var GJ,KJ=o((()=>{lW(),GJ=()=>{let e={string:{unit:`Zeichen`,verb:`zu haben`},file:{unit:`Bytes`,verb:`zu haben`},array:{unit:`Elemente`,verb:`zu haben`},set:{unit:`Elemente`,verb:`zu haben`}};function t(t){return e[t]??null}let n={regex:`Eingabe`,email:`E-Mail-Adresse`,url:`URL`,emoji:`Emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO-Datum und -Uhrzeit`,date:`ISO-Datum`,time:`ISO-Uhrzeit`,duration:`ISO-Dauer`,ipv4:`IPv4-Adresse`,ipv6:`IPv6-Adresse`,cidrv4:`IPv4-Bereich`,cidrv6:`IPv6-Bereich`,base64:`Base64-codierter String`,base64url:`Base64-URL-codierter String`,json_string:`JSON-String`,e164:`E.164-Nummer`,jwt:`JWT`,template_literal:`Eingabe`},r={nan:`NaN`,number:`Zahl`,array:`Array`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=GU(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Ungültige Eingabe: erwartet instanceof ${e.expected}, erhalten ${i}`:`Ungültige Eingabe: erwartet ${t}, erhalten ${i}`}case`invalid_value`:return e.values.length===1?`Ungültige Eingabe: erwartet ${kU(e.values[0])}`:`Ungültige Option: erwartet eine von ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Zu groß: erwartet, dass ${e.origin??`Wert`} ${n}${e.maximum.toString()} ${r.unit??`Elemente`} hat`:`Zu groß: erwartet, dass ${e.origin??`Wert`} ${n}${e.maximum.toString()} ist`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Zu klein: erwartet, dass ${e.origin} ${n}${e.minimum.toString()} ${r.unit} hat`:`Zu klein: erwartet, dass ${e.origin} ${n}${e.minimum.toString()} ist`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Ungültiger String: muss mit "${t.prefix}" beginnen`:t.format===`ends_with`?`Ungültiger String: muss mit "${t.suffix}" enden`:t.format===`includes`?`Ungültiger String: muss "${t.includes}" enthalten`:t.format===`regex`?`Ungültiger String: muss dem Muster ${t.pattern} entsprechen`:`Ungültig: ${n[t.format]??e.format}`}case`not_multiple_of`:return`Ungültige Zahl: muss ein Vielfaches von ${e.divisor} sein`;case`unrecognized_keys`:return`${e.keys.length>1?`Unbekannte Schlüssel`:`Unbekannter Schlüssel`}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Ungültiger Schlüssel in ${e.origin}`;case`invalid_union`:return`Ungültige Eingabe`;case`invalid_element`:return`Ungültiger Wert in ${e.origin}`;default:return`Ungültige Eingabe`}}}}));function qJ(){return{localeError:JJ()}}var JJ,YJ=o((()=>{lW(),JJ=()=>{let e={string:{unit:`χαρακτήρες`,verb:`να έχει`},file:{unit:`bytes`,verb:`να έχει`},array:{unit:`στοιχεία`,verb:`να έχει`},set:{unit:`στοιχεία`,verb:`να έχει`},map:{unit:`καταχωρήσεις`,verb:`να έχει`}};function t(t){return e[t]??null}let n={regex:`είσοδος`,email:`διεύθυνση email`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO ημερομηνία και ώρα`,date:`ISO ημερομηνία`,time:`ISO ώρα`,duration:`ISO διάρκεια`,ipv4:`διεύθυνση IPv4`,ipv6:`διεύθυνση IPv6`,mac:`διεύθυνση MAC`,cidrv4:`εύρος IPv4`,cidrv6:`εύρος IPv6`,base64:`συμβολοσειρά κωδικοποιημένη σε base64`,base64url:`συμβολοσειρά κωδικοποιημένη σε base64url`,json_string:`συμβολοσειρά JSON`,e164:`αριθμός E.164`,jwt:`JWT`,template_literal:`είσοδος`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=GU(e.input),i=r[n]??n;return typeof e.expected==`string`&&/^[A-Z]/.test(e.expected)?`Μη έγκυρη είσοδος: αναμενόταν instanceof ${e.expected}, λήφθηκε ${i}`:`Μη έγκυρη είσοδος: αναμενόταν ${t}, λήφθηκε ${i}`}case`invalid_value`:return e.values.length===1?`Μη έγκυρη είσοδος: αναμενόταν ${kU(e.values[0])}`:`Μη έγκυρη επιλογή: αναμενόταν ένα από ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Πολύ μεγάλο: αναμενόταν ${e.origin??`τιμή`} να έχει ${n}${e.maximum.toString()} ${r.unit??`στοιχεία`}`:`Πολύ μεγάλο: αναμενόταν ${e.origin??`τιμή`} να είναι ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Πολύ μικρό: αναμενόταν ${e.origin} να έχει ${n}${e.minimum.toString()} ${r.unit}`:`Πολύ μικρό: αναμενόταν ${e.origin} να είναι ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Μη έγκυρη συμβολοσειρά: πρέπει να ξεκινά με "${t.prefix}"`:t.format===`ends_with`?`Μη έγκυρη συμβολοσειρά: πρέπει να τελειώνει με "${t.suffix}"`:t.format===`includes`?`Μη έγκυρη συμβολοσειρά: πρέπει να περιέχει "${t.includes}"`:t.format===`regex`?`Μη έγκυρη συμβολοσειρά: πρέπει να ταιριάζει με το μοτίβο ${t.pattern}`:`Μη έγκυρο: ${n[t.format]??e.format}`}case`not_multiple_of`:return`Μη έγκυρος αριθμός: πρέπει να είναι πολλαπλάσιο του ${e.divisor}`;case`unrecognized_keys`:return`Άγνωστ${e.keys.length>1?`α`:`ο`} κλειδ${e.keys.length>1?`ιά`:`ί`}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Μη έγκυρο κλειδί στο ${e.origin}`;case`invalid_union`:return`Μη έγκυρη είσοδος`;case`invalid_element`:return`Μη έγκυρη τιμή στο ${e.origin}`;default:return`Μη έγκυρη είσοδος`}}}}));function XJ(){return{localeError:ZJ()}}var ZJ,QJ=o((()=>{lW(),ZJ=()=>{let e={string:{unit:`characters`,verb:`to have`},file:{unit:`bytes`,verb:`to have`},array:{unit:`items`,verb:`to have`},set:{unit:`items`,verb:`to have`},map:{unit:`entries`,verb:`to have`}};function t(t){return e[t]??null}let n={regex:`input`,email:`email address`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO datetime`,date:`ISO date`,time:`ISO time`,duration:`ISO duration`,ipv4:`IPv4 address`,ipv6:`IPv6 address`,mac:`MAC address`,cidrv4:`IPv4 range`,cidrv6:`IPv6 range`,base64:`base64-encoded string`,base64url:`base64url-encoded string`,json_string:`JSON string`,e164:`E.164 number`,jwt:`JWT`,template_literal:`input`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=GU(e.input);return`Invalid input: expected ${t}, received ${r[n]??n}`}case`invalid_value`:return e.values.length===1?`Invalid input: expected ${kU(e.values[0])}`:`Invalid option: expected one of ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Too big: expected ${e.origin??`value`} to have ${n}${e.maximum.toString()} ${r.unit??`elements`}`:`Too big: expected ${e.origin??`value`} to be ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Too small: expected ${e.origin} to have ${n}${e.minimum.toString()} ${r.unit}`:`Too small: expected ${e.origin} to be ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Invalid string: must start with "${t.prefix}"`:t.format===`ends_with`?`Invalid string: must end with "${t.suffix}"`:t.format===`includes`?`Invalid string: must include "${t.includes}"`:t.format===`regex`?`Invalid string: must match pattern ${t.pattern}`:`Invalid ${n[t.format]??e.format}`}case`not_multiple_of`:return`Invalid number: must be a multiple of ${e.divisor}`;case`unrecognized_keys`:return`Unrecognized key${e.keys.length>1?`s`:``}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Invalid key in ${e.origin}`;case`invalid_union`:return e.options&&Array.isArray(e.options)&&e.options.length>0?`Invalid discriminator value. Expected ${e.options.map(e=>`'${e}'`).join(` | `)}`:`Invalid input`;case`invalid_element`:return`Invalid value in ${e.origin}`;default:return`Invalid input`}}}}));function $J(){return{localeError:eY()}}var eY,tY=o((()=>{lW(),eY=()=>{let e={string:{unit:`karaktrojn`,verb:`havi`},file:{unit:`bajtojn`,verb:`havi`},array:{unit:`elementojn`,verb:`havi`},set:{unit:`elementojn`,verb:`havi`}};function t(t){return e[t]??null}let n={regex:`enigo`,email:`retadreso`,url:`URL`,emoji:`emoĝio`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO-datotempo`,date:`ISO-dato`,time:`ISO-tempo`,duration:`ISO-daŭro`,ipv4:`IPv4-adreso`,ipv6:`IPv6-adreso`,cidrv4:`IPv4-rango`,cidrv6:`IPv6-rango`,base64:`64-ume kodita karaktraro`,base64url:`URL-64-ume kodita karaktraro`,json_string:`JSON-karaktraro`,e164:`E.164-nombro`,jwt:`JWT`,template_literal:`enigo`},r={nan:`NaN`,number:`nombro`,array:`tabelo`,null:`senvalora`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=GU(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Nevalida enigo: atendiĝis instanceof ${e.expected}, riceviĝis ${i}`:`Nevalida enigo: atendiĝis ${t}, riceviĝis ${i}`}case`invalid_value`:return e.values.length===1?`Nevalida enigo: atendiĝis ${kU(e.values[0])}`:`Nevalida opcio: atendiĝis unu el ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Tro granda: atendiĝis ke ${e.origin??`valoro`} havu ${n}${e.maximum.toString()} ${r.unit??`elementojn`}`:`Tro granda: atendiĝis ke ${e.origin??`valoro`} havu ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Tro malgranda: atendiĝis ke ${e.origin} havu ${n}${e.minimum.toString()} ${r.unit}`:`Tro malgranda: atendiĝis ke ${e.origin} estu ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Nevalida karaktraro: devas komenciĝi per "${t.prefix}"`:t.format===`ends_with`?`Nevalida karaktraro: devas finiĝi per "${t.suffix}"`:t.format===`includes`?`Nevalida karaktraro: devas inkluzivi "${t.includes}"`:t.format===`regex`?`Nevalida karaktraro: devas kongrui kun la modelo ${t.pattern}`:`Nevalida ${n[t.format]??e.format}`}case`not_multiple_of`:return`Nevalida nombro: devas esti oblo de ${e.divisor}`;case`unrecognized_keys`:return`Nekonata${e.keys.length>1?`j`:``} ŝlosilo${e.keys.length>1?`j`:``}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Nevalida ŝlosilo en ${e.origin}`;case`invalid_union`:return`Nevalida enigo`;case`invalid_element`:return`Nevalida valoro en ${e.origin}`;default:return`Nevalida enigo`}}}}));function nY(){return{localeError:rY()}}var rY,iY=o((()=>{lW(),rY=()=>{let e={string:{unit:`caracteres`,verb:`tener`},file:{unit:`bytes`,verb:`tener`},array:{unit:`elementos`,verb:`tener`},set:{unit:`elementos`,verb:`tener`}};function t(t){return e[t]??null}let n={regex:`entrada`,email:`dirección de correo electrónico`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`fecha y hora ISO`,date:`fecha ISO`,time:`hora ISO`,duration:`duración ISO`,ipv4:`dirección IPv4`,ipv6:`dirección IPv6`,cidrv4:`rango IPv4`,cidrv6:`rango IPv6`,base64:`cadena codificada en base64`,base64url:`URL codificada en base64`,json_string:`cadena JSON`,e164:`número E.164`,jwt:`JWT`,template_literal:`entrada`},r={nan:`NaN`,string:`texto`,number:`número`,boolean:`booleano`,array:`arreglo`,object:`objeto`,set:`conjunto`,file:`archivo`,date:`fecha`,bigint:`número grande`,symbol:`símbolo`,undefined:`indefinido`,null:`nulo`,function:`función`,map:`mapa`,record:`registro`,tuple:`tupla`,enum:`enumeración`,union:`unión`,literal:`literal`,promise:`promesa`,void:`vacío`,never:`nunca`,unknown:`desconocido`,any:`cualquiera`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=GU(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Entrada inválida: se esperaba instanceof ${e.expected}, recibido ${i}`:`Entrada inválida: se esperaba ${t}, recibido ${i}`}case`invalid_value`:return e.values.length===1?`Entrada inválida: se esperaba ${kU(e.values[0])}`:`Opción inválida: se esperaba una de ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,i=t(e.origin),a=r[e.origin]??e.origin;return i?`Demasiado grande: se esperaba que ${a??`valor`} tuviera ${n}${e.maximum.toString()} ${i.unit??`elementos`}`:`Demasiado grande: se esperaba que ${a??`valor`} fuera ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,i=t(e.origin),a=r[e.origin]??e.origin;return i?`Demasiado pequeño: se esperaba que ${a} tuviera ${n}${e.minimum.toString()} ${i.unit}`:`Demasiado pequeño: se esperaba que ${a} fuera ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Cadena inválida: debe comenzar con "${t.prefix}"`:t.format===`ends_with`?`Cadena inválida: debe terminar en "${t.suffix}"`:t.format===`includes`?`Cadena inválida: debe incluir "${t.includes}"`:t.format===`regex`?`Cadena inválida: debe coincidir con el patrón ${t.pattern}`:`Inválido ${n[t.format]??e.format}`}case`not_multiple_of`:return`Número inválido: debe ser múltiplo de ${e.divisor}`;case`unrecognized_keys`:return`Llave${e.keys.length>1?`s`:``} desconocida${e.keys.length>1?`s`:``}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Llave inválida en ${r[e.origin]??e.origin}`;case`invalid_union`:return`Entrada inválida`;case`invalid_element`:return`Valor inválido en ${r[e.origin]??e.origin}`;default:return`Entrada inválida`}}}}));function aY(){return{localeError:oY()}}var oY,sY=o((()=>{lW(),oY=()=>{let e={string:{unit:`کاراکتر`,verb:`داشته باشد`},file:{unit:`بایت`,verb:`داشته باشد`},array:{unit:`آیتم`,verb:`داشته باشد`},set:{unit:`آیتم`,verb:`داشته باشد`}};function t(t){return e[t]??null}let n={regex:`ورودی`,email:`آدرس ایمیل`,url:`URL`,emoji:`ایموجی`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`تاریخ و زمان ایزو`,date:`تاریخ ایزو`,time:`زمان ایزو`,duration:`مدت زمان ایزو`,ipv4:`IPv4 آدرس`,ipv6:`IPv6 آدرس`,cidrv4:`IPv4 دامنه`,cidrv6:`IPv6 دامنه`,base64:`base64-encoded رشته`,base64url:`base64url-encoded رشته`,json_string:`JSON رشته`,e164:`E.164 عدد`,jwt:`JWT`,template_literal:`ورودی`},r={nan:`NaN`,number:`عدد`,array:`آرایه`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=GU(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`ورودی نامعتبر: می‌بایست instanceof ${e.expected} می‌بود، ${i} دریافت شد`:`ورودی نامعتبر: می‌بایست ${t} می‌بود، ${i} دریافت شد`}case`invalid_value`:return e.values.length===1?`ورودی نامعتبر: می‌بایست ${kU(e.values[0])} می‌بود`:`گزینه نامعتبر: می‌بایست یکی از ${J(e.values,`|`)} می‌بود`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`خیلی بزرگ: ${e.origin??`مقدار`} باید ${n}${e.maximum.toString()} ${r.unit??`عنصر`} باشد`:`خیلی بزرگ: ${e.origin??`مقدار`} باید ${n}${e.maximum.toString()} باشد`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`خیلی کوچک: ${e.origin} باید ${n}${e.minimum.toString()} ${r.unit} باشد`:`خیلی کوچک: ${e.origin} باید ${n}${e.minimum.toString()} باشد`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`رشته نامعتبر: باید با "${t.prefix}" شروع شود`:t.format===`ends_with`?`رشته نامعتبر: باید با "${t.suffix}" تمام شود`:t.format===`includes`?`رشته نامعتبر: باید شامل "${t.includes}" باشد`:t.format===`regex`?`رشته نامعتبر: باید با الگوی ${t.pattern} مطابقت داشته باشد`:`${n[t.format]??e.format} نامعتبر`}case`not_multiple_of`:return`عدد نامعتبر: باید مضرب ${e.divisor} باشد`;case`unrecognized_keys`:return`کلید${e.keys.length>1?`های`:``} ناشناس: ${J(e.keys,`, `)}`;case`invalid_key`:return`کلید ناشناس در ${e.origin}`;case`invalid_union`:return`ورودی نامعتبر`;case`invalid_element`:return`مقدار نامعتبر در ${e.origin}`;default:return`ورودی نامعتبر`}}}}));function cY(){return{localeError:lY()}}var lY,uY=o((()=>{lW(),lY=()=>{let e={string:{unit:`merkkiä`,subject:`merkkijonon`},file:{unit:`tavua`,subject:`tiedoston`},array:{unit:`alkiota`,subject:`listan`},set:{unit:`alkiota`,subject:`joukon`},number:{unit:``,subject:`luvun`},bigint:{unit:``,subject:`suuren kokonaisluvun`},int:{unit:``,subject:`kokonaisluvun`},date:{unit:``,subject:`päivämäärän`}};function t(t){return e[t]??null}let n={regex:`säännöllinen lauseke`,email:`sähköpostiosoite`,url:`URL-osoite`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO-aikaleima`,date:`ISO-päivämäärä`,time:`ISO-aika`,duration:`ISO-kesto`,ipv4:`IPv4-osoite`,ipv6:`IPv6-osoite`,cidrv4:`IPv4-alue`,cidrv6:`IPv6-alue`,base64:`base64-koodattu merkkijono`,base64url:`base64url-koodattu merkkijono`,json_string:`JSON-merkkijono`,e164:`E.164-luku`,jwt:`JWT`,template_literal:`templaattimerkkijono`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=GU(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Virheellinen tyyppi: odotettiin instanceof ${e.expected}, oli ${i}`:`Virheellinen tyyppi: odotettiin ${t}, oli ${i}`}case`invalid_value`:return e.values.length===1?`Virheellinen syöte: täytyy olla ${kU(e.values[0])}`:`Virheellinen valinta: täytyy olla yksi seuraavista: ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Liian suuri: ${r.subject} täytyy olla ${n}${e.maximum.toString()} ${r.unit}`.trim():`Liian suuri: arvon täytyy olla ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Liian pieni: ${r.subject} täytyy olla ${n}${e.minimum.toString()} ${r.unit}`.trim():`Liian pieni: arvon täytyy olla ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Virheellinen syöte: täytyy alkaa "${t.prefix}"`:t.format===`ends_with`?`Virheellinen syöte: täytyy loppua "${t.suffix}"`:t.format===`includes`?`Virheellinen syöte: täytyy sisältää "${t.includes}"`:t.format===`regex`?`Virheellinen syöte: täytyy vastata säännöllistä lauseketta ${t.pattern}`:`Virheellinen ${n[t.format]??e.format}`}case`not_multiple_of`:return`Virheellinen luku: täytyy olla luvun ${e.divisor} monikerta`;case`unrecognized_keys`:return`${e.keys.length>1?`Tuntemattomat avaimet`:`Tuntematon avain`}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Virheellinen avain tietueessa`;case`invalid_union`:return`Virheellinen unioni`;case`invalid_element`:return`Virheellinen arvo joukossa`;default:return`Virheellinen syöte`}}}}));function dY(){return{localeError:fY()}}var fY,pY=o((()=>{lW(),fY=()=>{let e={string:{unit:`caractères`,verb:`avoir`},file:{unit:`octets`,verb:`avoir`},array:{unit:`éléments`,verb:`avoir`},set:{unit:`éléments`,verb:`avoir`}};function t(t){return e[t]??null}let n={regex:`entrée`,email:`adresse e-mail`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`date et heure ISO`,date:`date ISO`,time:`heure ISO`,duration:`durée ISO`,ipv4:`adresse IPv4`,ipv6:`adresse IPv6`,cidrv4:`plage IPv4`,cidrv6:`plage IPv6`,base64:`chaîne encodée en base64`,base64url:`chaîne encodée en base64url`,json_string:`chaîne JSON`,e164:`numéro E.164`,jwt:`JWT`,template_literal:`entrée`},r={string:`chaîne`,number:`nombre`,int:`entier`,boolean:`booléen`,bigint:`grand entier`,symbol:`symbole`,undefined:`indéfini`,null:`null`,never:`jamais`,void:`vide`,date:`date`,array:`tableau`,object:`objet`,tuple:`tuple`,record:`enregistrement`,map:`carte`,set:`ensemble`,file:`fichier`,nonoptional:`non-optionnel`,nan:`NaN`,function:`fonction`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=GU(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Entrée invalide : instanceof ${e.expected} attendu, ${i} reçu`:`Entrée invalide : ${t} attendu, ${i} reçu`}case`invalid_value`:return e.values.length===1?`Entrée invalide : ${kU(e.values[0])} attendu`:`Option invalide : une valeur parmi ${J(e.values,`|`)} attendue`;case`too_big`:{let n=e.inclusive?`<=`:`<`,i=t(e.origin);return i?`Trop grand : ${r[e.origin]??`valeur`} doit ${i.verb} ${n}${e.maximum.toString()} ${i.unit??`élément(s)`}`:`Trop grand : ${r[e.origin]??`valeur`} doit être ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,i=t(e.origin);return i?`Trop petit : ${r[e.origin]??`valeur`} doit ${i.verb} ${n}${e.minimum.toString()} ${i.unit}`:`Trop petit : ${r[e.origin]??`valeur`} doit être ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Chaîne invalide : doit commencer par "${t.prefix}"`:t.format===`ends_with`?`Chaîne invalide : doit se terminer par "${t.suffix}"`:t.format===`includes`?`Chaîne invalide : doit inclure "${t.includes}"`:t.format===`regex`?`Chaîne invalide : doit correspondre au modèle ${t.pattern}`:`${n[t.format]??e.format} invalide`}case`not_multiple_of`:return`Nombre invalide : doit être un multiple de ${e.divisor}`;case`unrecognized_keys`:return`Clé${e.keys.length>1?`s`:``} non reconnue${e.keys.length>1?`s`:``} : ${J(e.keys,`, `)}`;case`invalid_key`:return`Clé invalide dans ${e.origin}`;case`invalid_union`:return`Entrée invalide`;case`invalid_element`:return`Valeur invalide dans ${e.origin}`;default:return`Entrée invalide`}}}}));function mY(){return{localeError:hY()}}var hY,gY=o((()=>{lW(),hY=()=>{let e={string:{unit:`caractères`,verb:`avoir`},file:{unit:`octets`,verb:`avoir`},array:{unit:`éléments`,verb:`avoir`},set:{unit:`éléments`,verb:`avoir`}};function t(t){return e[t]??null}let n={regex:`entrée`,email:`adresse courriel`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`date-heure ISO`,date:`date ISO`,time:`heure ISO`,duration:`durée ISO`,ipv4:`adresse IPv4`,ipv6:`adresse IPv6`,cidrv4:`plage IPv4`,cidrv6:`plage IPv6`,base64:`chaîne encodée en base64`,base64url:`chaîne encodée en base64url`,json_string:`chaîne JSON`,e164:`numéro E.164`,jwt:`JWT`,template_literal:`entrée`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=GU(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Entrée invalide : attendu instanceof ${e.expected}, reçu ${i}`:`Entrée invalide : attendu ${t}, reçu ${i}`}case`invalid_value`:return e.values.length===1?`Entrée invalide : attendu ${kU(e.values[0])}`:`Option invalide : attendu l'une des valeurs suivantes ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`≤`:`<`,r=t(e.origin);return r?`Trop grand : attendu que ${e.origin??`la valeur`} ait ${n}${e.maximum.toString()} ${r.unit}`:`Trop grand : attendu que ${e.origin??`la valeur`} soit ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`≥`:`>`,r=t(e.origin);return r?`Trop petit : attendu que ${e.origin} ait ${n}${e.minimum.toString()} ${r.unit}`:`Trop petit : attendu que ${e.origin} soit ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Chaîne invalide : doit commencer par "${t.prefix}"`:t.format===`ends_with`?`Chaîne invalide : doit se terminer par "${t.suffix}"`:t.format===`includes`?`Chaîne invalide : doit inclure "${t.includes}"`:t.format===`regex`?`Chaîne invalide : doit correspondre au motif ${t.pattern}`:`${n[t.format]??e.format} invalide`}case`not_multiple_of`:return`Nombre invalide : doit être un multiple de ${e.divisor}`;case`unrecognized_keys`:return`Clé${e.keys.length>1?`s`:``} non reconnue${e.keys.length>1?`s`:``} : ${J(e.keys,`, `)}`;case`invalid_key`:return`Clé invalide dans ${e.origin}`;case`invalid_union`:return`Entrée invalide`;case`invalid_element`:return`Valeur invalide dans ${e.origin}`;default:return`Entrée invalide`}}}}));function _Y(){return{localeError:vY()}}var vY,yY=o((()=>{lW(),vY=()=>{let e={string:{label:`מחרוזת`,gender:`f`},number:{label:`מספר`,gender:`m`},boolean:{label:`ערך בוליאני`,gender:`m`},bigint:{label:`BigInt`,gender:`m`},date:{label:`תאריך`,gender:`m`},array:{label:`מערך`,gender:`m`},object:{label:`אובייקט`,gender:`m`},null:{label:`ערך ריק (null)`,gender:`m`},undefined:{label:`ערך לא מוגדר (undefined)`,gender:`m`},symbol:{label:`סימבול (Symbol)`,gender:`m`},function:{label:`פונקציה`,gender:`f`},map:{label:`מפה (Map)`,gender:`f`},set:{label:`קבוצה (Set)`,gender:`f`},file:{label:`קובץ`,gender:`m`},promise:{label:`Promise`,gender:`m`},NaN:{label:`NaN`,gender:`m`},unknown:{label:`ערך לא ידוע`,gender:`m`},value:{label:`ערך`,gender:`m`}},t={string:{unit:`תווים`,shortLabel:`קצר`,longLabel:`ארוך`},file:{unit:`בייטים`,shortLabel:`קטן`,longLabel:`גדול`},array:{unit:`פריטים`,shortLabel:`קטן`,longLabel:`גדול`},set:{unit:`פריטים`,shortLabel:`קטן`,longLabel:`גדול`},number:{unit:``,shortLabel:`קטן`,longLabel:`גדול`}},n=t=>t?e[t]:void 0,r=t=>{let r=n(t);return r?r.label:t??e.unknown.label},i=e=>`ה${r(e)}`,a=e=>(n(e)?.gender??`m`)===`f`?`צריכה להיות`:`צריך להיות`,o=e=>e?t[e]??null:null,s={regex:{label:`קלט`,gender:`m`},email:{label:`כתובת אימייל`,gender:`f`},url:{label:`כתובת רשת`,gender:`f`},emoji:{label:`אימוג'י`,gender:`m`},uuid:{label:`UUID`,gender:`m`},nanoid:{label:`nanoid`,gender:`m`},guid:{label:`GUID`,gender:`m`},cuid:{label:`cuid`,gender:`m`},cuid2:{label:`cuid2`,gender:`m`},ulid:{label:`ULID`,gender:`m`},xid:{label:`XID`,gender:`m`},ksuid:{label:`KSUID`,gender:`m`},datetime:{label:`תאריך וזמן ISO`,gender:`m`},date:{label:`תאריך ISO`,gender:`m`},time:{label:`זמן ISO`,gender:`m`},duration:{label:`משך זמן ISO`,gender:`m`},ipv4:{label:`כתובת IPv4`,gender:`f`},ipv6:{label:`כתובת IPv6`,gender:`f`},cidrv4:{label:`טווח IPv4`,gender:`m`},cidrv6:{label:`טווח IPv6`,gender:`m`},base64:{label:`מחרוזת בבסיס 64`,gender:`f`},base64url:{label:`מחרוזת בבסיס 64 לכתובות רשת`,gender:`f`},json_string:{label:`מחרוזת JSON`,gender:`f`},e164:{label:`מספר E.164`,gender:`m`},jwt:{label:`JWT`,gender:`m`},ends_with:{label:`קלט`,gender:`m`},includes:{label:`קלט`,gender:`m`},lowercase:{label:`קלט`,gender:`m`},starts_with:{label:`קלט`,gender:`m`},uppercase:{label:`קלט`,gender:`m`}},c={nan:`NaN`};return t=>{switch(t.code){case`invalid_type`:{let n=t.expected,i=c[n??``]??r(n),a=GU(t.input),o=c[a]??e[a]?.label??a;return/^[A-Z]/.test(t.expected)?`קלט לא תקין: צריך להיות instanceof ${t.expected}, התקבל ${o}`:`קלט לא תקין: צריך להיות ${i}, התקבל ${o}`}case`invalid_value`:{if(t.values.length===1)return`ערך לא תקין: הערך חייב להיות ${kU(t.values[0])}`;let e=t.values.map(e=>kU(e));if(t.values.length===2)return`ערך לא תקין: האפשרויות המתאימות הן ${e[0]} או ${e[1]}`;let n=e[e.length-1];return`ערך לא תקין: האפשרויות המתאימות הן ${e.slice(0,-1).join(`, `)} או ${n}`}case`too_big`:{let e=o(t.origin),n=i(t.origin??`value`);if(t.origin===`string`)return`${e?.longLabel??`ארוך`} מדי: ${n} צריכה להכיל ${t.maximum.toString()} ${e?.unit??``} ${t.inclusive?`או פחות`:`לכל היותר`}`.trim();if(t.origin===`number`)return`גדול מדי: ${n} צריך להיות ${t.inclusive?`קטן או שווה ל-${t.maximum}`:`קטן מ-${t.maximum}`}`;if(t.origin===`array`||t.origin===`set`)return`גדול מדי: ${n} ${t.origin===`set`?`צריכה`:`צריך`} להכיל ${t.inclusive?`${t.maximum} ${e?.unit??``} או פחות`:`פחות מ-${t.maximum} ${e?.unit??``}`}`.trim();let r=t.inclusive?`<=`:`<`,s=a(t.origin??`value`);return e?.unit?`${e.longLabel} מדי: ${n} ${s} ${r}${t.maximum.toString()} ${e.unit}`:`${e?.longLabel??`גדול`} מדי: ${n} ${s} ${r}${t.maximum.toString()}`}case`too_small`:{let e=o(t.origin),n=i(t.origin??`value`);if(t.origin===`string`)return`${e?.shortLabel??`קצר`} מדי: ${n} צריכה להכיל ${t.minimum.toString()} ${e?.unit??``} ${t.inclusive?`או יותר`:`לפחות`}`.trim();if(t.origin===`number`)return`קטן מדי: ${n} צריך להיות ${t.inclusive?`גדול או שווה ל-${t.minimum}`:`גדול מ-${t.minimum}`}`;if(t.origin===`array`||t.origin===`set`){let r=t.origin===`set`?`צריכה`:`צריך`;return t.minimum===1&&t.inclusive?`קטן מדי: ${n} ${r} להכיל ${t.origin,`לפחות פריט אחד`}`:`קטן מדי: ${n} ${r} להכיל ${t.inclusive?`${t.minimum} ${e?.unit??``} או יותר`:`יותר מ-${t.minimum} ${e?.unit??``}`}`.trim()}let r=t.inclusive?`>=`:`>`,s=a(t.origin??`value`);return e?.unit?`${e.shortLabel} מדי: ${n} ${s} ${r}${t.minimum.toString()} ${e.unit}`:`${e?.shortLabel??`קטן`} מדי: ${n} ${s} ${r}${t.minimum.toString()}`}case`invalid_format`:{let e=t;if(e.format===`starts_with`)return`המחרוזת חייבת להתחיל ב "${e.prefix}"`;if(e.format===`ends_with`)return`המחרוזת חייבת להסתיים ב "${e.suffix}"`;if(e.format===`includes`)return`המחרוזת חייבת לכלול "${e.includes}"`;if(e.format===`regex`)return`המחרוזת חייבת להתאים לתבנית ${e.pattern}`;let n=s[e.format];return`${n?.label??e.format} לא ${(n?.gender??`m`)===`f`?`תקינה`:`תקין`}`}case`not_multiple_of`:return`מספר לא תקין: חייב להיות מכפלה של ${t.divisor}`;case`unrecognized_keys`:return`מפתח${t.keys.length>1?`ות`:``} לא מזוה${t.keys.length>1?`ים`:`ה`}: ${J(t.keys,`, `)}`;case`invalid_key`:return`שדה לא תקין באובייקט`;case`invalid_union`:return`קלט לא תקין`;case`invalid_element`:return`ערך לא תקין ב${i(t.origin??`array`)}`;default:return`קלט לא תקין`}}}}));function bY(){return{localeError:xY()}}var xY,SY=o((()=>{lW(),xY=()=>{let e={string:{unit:`znakova`,verb:`imati`},file:{unit:`bajtova`,verb:`imati`},array:{unit:`stavki`,verb:`imati`},set:{unit:`stavki`,verb:`imati`}};function t(t){return e[t]??null}let n={regex:`unos`,email:`email adresa`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO datum i vrijeme`,date:`ISO datum`,time:`ISO vrijeme`,duration:`ISO trajanje`,ipv4:`IPv4 adresa`,ipv6:`IPv6 adresa`,cidrv4:`IPv4 raspon`,cidrv6:`IPv6 raspon`,base64:`base64 kodirani tekst`,base64url:`base64url kodirani tekst`,json_string:`JSON tekst`,e164:`E.164 broj`,jwt:`JWT`,template_literal:`unos`},r={nan:`NaN`,string:`tekst`,number:`broj`,boolean:`boolean`,array:`niz`,object:`objekt`,set:`skup`,file:`datoteka`,date:`datum`,bigint:`bigint`,symbol:`simbol`,undefined:`undefined`,null:`null`,function:`funkcija`,map:`mapa`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=GU(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Neispravan unos: očekuje se instanceof ${e.expected}, a primljeno je ${i}`:`Neispravan unos: očekuje se ${t}, a primljeno je ${i}`}case`invalid_value`:return e.values.length===1?`Neispravna vrijednost: očekivano ${kU(e.values[0])}`:`Neispravna opcija: očekivano jedno od ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,i=t(e.origin),a=r[e.origin]??e.origin;return i?`Preveliko: očekivano da ${a??`vrijednost`} ima ${n}${e.maximum.toString()} ${i.unit??`elemenata`}`:`Preveliko: očekivano da ${a??`vrijednost`} bude ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,i=t(e.origin),a=r[e.origin]??e.origin;return i?`Premalo: očekivano da ${a} ima ${n}${e.minimum.toString()} ${i.unit}`:`Premalo: očekivano da ${a} bude ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Neispravan tekst: mora započinjati s "${t.prefix}"`:t.format===`ends_with`?`Neispravan tekst: mora završavati s "${t.suffix}"`:t.format===`includes`?`Neispravan tekst: mora sadržavati "${t.includes}"`:t.format===`regex`?`Neispravan tekst: mora odgovarati uzorku ${t.pattern}`:`Neispravna ${n[t.format]??e.format}`}case`not_multiple_of`:return`Neispravan broj: mora biti višekratnik od ${e.divisor}`;case`unrecognized_keys`:return`Neprepoznat${e.keys.length>1?`i ključevi`:` ključ`}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Neispravan ključ u ${r[e.origin]??e.origin}`;case`invalid_union`:return`Neispravan unos`;case`invalid_element`:return`Neispravna vrijednost u ${r[e.origin]??e.origin}`;default:return`Neispravan unos`}}}}));function CY(){return{localeError:wY()}}var wY,TY=o((()=>{lW(),wY=()=>{let e={string:{unit:`karakter`,verb:`legyen`},file:{unit:`byte`,verb:`legyen`},array:{unit:`elem`,verb:`legyen`},set:{unit:`elem`,verb:`legyen`}};function t(t){return e[t]??null}let n={regex:`bemenet`,email:`email cím`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO időbélyeg`,date:`ISO dátum`,time:`ISO idő`,duration:`ISO időintervallum`,ipv4:`IPv4 cím`,ipv6:`IPv6 cím`,cidrv4:`IPv4 tartomány`,cidrv6:`IPv6 tartomány`,base64:`base64-kódolt string`,base64url:`base64url-kódolt string`,json_string:`JSON string`,e164:`E.164 szám`,jwt:`JWT`,template_literal:`bemenet`},r={nan:`NaN`,number:`szám`,array:`tömb`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=GU(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Érvénytelen bemenet: a várt érték instanceof ${e.expected}, a kapott érték ${i}`:`Érvénytelen bemenet: a várt érték ${t}, a kapott érték ${i}`}case`invalid_value`:return e.values.length===1?`Érvénytelen bemenet: a várt érték ${kU(e.values[0])}`:`Érvénytelen opció: valamelyik érték várt ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Túl nagy: ${e.origin??`érték`} mérete túl nagy ${n}${e.maximum.toString()} ${r.unit??`elem`}`:`Túl nagy: a bemeneti érték ${e.origin??`érték`} túl nagy: ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Túl kicsi: a bemeneti érték ${e.origin} mérete túl kicsi ${n}${e.minimum.toString()} ${r.unit}`:`Túl kicsi: a bemeneti érték ${e.origin} túl kicsi ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Érvénytelen string: "${t.prefix}" értékkel kell kezdődnie`:t.format===`ends_with`?`Érvénytelen string: "${t.suffix}" értékkel kell végződnie`:t.format===`includes`?`Érvénytelen string: "${t.includes}" értéket kell tartalmaznia`:t.format===`regex`?`Érvénytelen string: ${t.pattern} mintának kell megfelelnie`:`Érvénytelen ${n[t.format]??e.format}`}case`not_multiple_of`:return`Érvénytelen szám: ${e.divisor} többszörösének kell lennie`;case`unrecognized_keys`:return`Ismeretlen kulcs${e.keys.length>1?`s`:``}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Érvénytelen kulcs ${e.origin}`;case`invalid_union`:return`Érvénytelen bemenet`;case`invalid_element`:return`Érvénytelen érték: ${e.origin}`;default:return`Érvénytelen bemenet`}}}}));function EY(e,t,n){return Math.abs(e)===1?t:n}function DY(e){if(!e)return``;let t=[`ա`,`ե`,`ը`,`ի`,`ո`,`ու`,`օ`],n=e[e.length-1];return e+(t.includes(n)?`ն`:`ը`)}function OY(){return{localeError:kY()}}var kY,AY=o((()=>{lW(),kY=()=>{let e={string:{unit:{one:`նշան`,many:`նշաններ`},verb:`ունենալ`},file:{unit:{one:`բայթ`,many:`բայթեր`},verb:`ունենալ`},array:{unit:{one:`տարր`,many:`տարրեր`},verb:`ունենալ`},set:{unit:{one:`տարր`,many:`տարրեր`},verb:`ունենալ`}};function t(t){return e[t]??null}let n={regex:`մուտք`,email:`էլ. հասցե`,url:`URL`,emoji:`էմոջի`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO ամսաթիվ և ժամ`,date:`ISO ամսաթիվ`,time:`ISO ժամ`,duration:`ISO տևողություն`,ipv4:`IPv4 հասցե`,ipv6:`IPv6 հասցե`,cidrv4:`IPv4 միջակայք`,cidrv6:`IPv6 միջակայք`,base64:`base64 ձևաչափով տող`,base64url:`base64url ձևաչափով տող`,json_string:`JSON տող`,e164:`E.164 համար`,jwt:`JWT`,template_literal:`մուտք`},r={nan:`NaN`,number:`թիվ`,array:`զանգված`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=GU(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Սխալ մուտքագրում․ սպասվում էր instanceof ${e.expected}, ստացվել է ${i}`:`Սխալ մուտքագրում․ սպասվում էր ${t}, ստացվել է ${i}`}case`invalid_value`:return e.values.length===1?`Սխալ մուտքագրում․ սպասվում էր ${kU(e.values[1])}`:`Սխալ տարբերակ․ սպասվում էր հետևյալներից մեկը՝ ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);if(r){let t=EY(Number(e.maximum),r.unit.one,r.unit.many);return`Չափազանց մեծ արժեք․ սպասվում է, որ ${DY(e.origin??`արժեք`)} կունենա ${n}${e.maximum.toString()} ${t}`}return`Չափազանց մեծ արժեք․ սպասվում է, որ ${DY(e.origin??`արժեք`)} լինի ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);if(r){let t=EY(Number(e.minimum),r.unit.one,r.unit.many);return`Չափազանց փոքր արժեք․ սպասվում է, որ ${DY(e.origin)} կունենա ${n}${e.minimum.toString()} ${t}`}return`Չափազանց փոքր արժեք․ սպասվում է, որ ${DY(e.origin)} լինի ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Սխալ տող․ պետք է սկսվի "${t.prefix}"-ով`:t.format===`ends_with`?`Սխալ տող․ պետք է ավարտվի "${t.suffix}"-ով`:t.format===`includes`?`Սխալ տող․ պետք է պարունակի "${t.includes}"`:t.format===`regex`?`Սխալ տող․ պետք է համապատասխանի ${t.pattern} ձևաչափին`:`Սխալ ${n[t.format]??e.format}`}case`not_multiple_of`:return`Սխալ թիվ․ պետք է բազմապատիկ լինի ${e.divisor}-ի`;case`unrecognized_keys`:return`Չճանաչված բանալի${e.keys.length>1?`ներ`:``}. ${J(e.keys,`, `)}`;case`invalid_key`:return`Սխալ բանալի ${DY(e.origin)}-ում`;case`invalid_union`:return`Սխալ մուտքագրում`;case`invalid_element`:return`Սխալ արժեք ${DY(e.origin)}-ում`;default:return`Սխալ մուտքագրում`}}}}));function jY(){return{localeError:MY()}}var MY,NY=o((()=>{lW(),MY=()=>{let e={string:{unit:`karakter`,verb:`memiliki`},file:{unit:`byte`,verb:`memiliki`},array:{unit:`item`,verb:`memiliki`},set:{unit:`item`,verb:`memiliki`}};function t(t){return e[t]??null}let n={regex:`input`,email:`alamat email`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`tanggal dan waktu format ISO`,date:`tanggal format ISO`,time:`jam format ISO`,duration:`durasi format ISO`,ipv4:`alamat IPv4`,ipv6:`alamat IPv6`,cidrv4:`rentang alamat IPv4`,cidrv6:`rentang alamat IPv6`,base64:`string dengan enkode base64`,base64url:`string dengan enkode base64url`,json_string:`string JSON`,e164:`angka E.164`,jwt:`JWT`,template_literal:`input`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=GU(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Input tidak valid: diharapkan instanceof ${e.expected}, diterima ${i}`:`Input tidak valid: diharapkan ${t}, diterima ${i}`}case`invalid_value`:return e.values.length===1?`Input tidak valid: diharapkan ${kU(e.values[0])}`:`Pilihan tidak valid: diharapkan salah satu dari ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Terlalu besar: diharapkan ${e.origin??`value`} memiliki ${n}${e.maximum.toString()} ${r.unit??`elemen`}`:`Terlalu besar: diharapkan ${e.origin??`value`} menjadi ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Terlalu kecil: diharapkan ${e.origin} memiliki ${n}${e.minimum.toString()} ${r.unit}`:`Terlalu kecil: diharapkan ${e.origin} menjadi ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`String tidak valid: harus dimulai dengan "${t.prefix}"`:t.format===`ends_with`?`String tidak valid: harus berakhir dengan "${t.suffix}"`:t.format===`includes`?`String tidak valid: harus menyertakan "${t.includes}"`:t.format===`regex`?`String tidak valid: harus sesuai pola ${t.pattern}`:`${n[t.format]??e.format} tidak valid`}case`not_multiple_of`:return`Angka tidak valid: harus kelipatan dari ${e.divisor}`;case`unrecognized_keys`:return`Kunci tidak dikenali ${e.keys.length>1?`s`:``}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Kunci tidak valid di ${e.origin}`;case`invalid_union`:return`Input tidak valid`;case`invalid_element`:return`Nilai tidak valid di ${e.origin}`;default:return`Input tidak valid`}}}}));function PY(){return{localeError:FY()}}var FY,IY=o((()=>{lW(),FY=()=>{let e={string:{unit:`stafi`,verb:`að hafa`},file:{unit:`bæti`,verb:`að hafa`},array:{unit:`hluti`,verb:`að hafa`},set:{unit:`hluti`,verb:`að hafa`}};function t(t){return e[t]??null}let n={regex:`gildi`,email:`netfang`,url:`vefslóð`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO dagsetning og tími`,date:`ISO dagsetning`,time:`ISO tími`,duration:`ISO tímalengd`,ipv4:`IPv4 address`,ipv6:`IPv6 address`,cidrv4:`IPv4 range`,cidrv6:`IPv6 range`,base64:`base64-encoded strengur`,base64url:`base64url-encoded strengur`,json_string:`JSON strengur`,e164:`E.164 tölugildi`,jwt:`JWT`,template_literal:`gildi`},r={nan:`NaN`,number:`númer`,array:`fylki`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=GU(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Rangt gildi: Þú slóst inn ${i} þar sem á að vera instanceof ${e.expected}`:`Rangt gildi: Þú slóst inn ${i} þar sem á að vera ${t}`}case`invalid_value`:return e.values.length===1?`Rangt gildi: gert ráð fyrir ${kU(e.values[0])}`:`Ógilt val: má vera eitt af eftirfarandi ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Of stórt: gert er ráð fyrir að ${e.origin??`gildi`} hafi ${n}${e.maximum.toString()} ${r.unit??`hluti`}`:`Of stórt: gert er ráð fyrir að ${e.origin??`gildi`} sé ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Of lítið: gert er ráð fyrir að ${e.origin} hafi ${n}${e.minimum.toString()} ${r.unit}`:`Of lítið: gert er ráð fyrir að ${e.origin} sé ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Ógildur strengur: verður að byrja á "${t.prefix}"`:t.format===`ends_with`?`Ógildur strengur: verður að enda á "${t.suffix}"`:t.format===`includes`?`Ógildur strengur: verður að innihalda "${t.includes}"`:t.format===`regex`?`Ógildur strengur: verður að fylgja mynstri ${t.pattern}`:`Rangt ${n[t.format]??e.format}`}case`not_multiple_of`:return`Röng tala: verður að vera margfeldi af ${e.divisor}`;case`unrecognized_keys`:return`Óþekkt ${e.keys.length>1?`ir lyklar`:`ur lykill`}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Rangur lykill í ${e.origin}`;case`invalid_union`:return`Rangt gildi`;case`invalid_element`:return`Rangt gildi í ${e.origin}`;default:return`Rangt gildi`}}}}));function LY(){return{localeError:RY()}}var RY,zY=o((()=>{lW(),RY=()=>{let e={string:{unit:`caratteri`,verb:`avere`},file:{unit:`byte`,verb:`avere`},array:{unit:`elementi`,verb:`avere`},set:{unit:`elementi`,verb:`avere`}};function t(t){return e[t]??null}let n={regex:`input`,email:`indirizzo email`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`data e ora ISO`,date:`data ISO`,time:`ora ISO`,duration:`durata ISO`,ipv4:`indirizzo IPv4`,ipv6:`indirizzo IPv6`,cidrv4:`intervallo IPv4`,cidrv6:`intervallo IPv6`,base64:`stringa codificata in base64`,base64url:`URL codificata in base64`,json_string:`stringa JSON`,e164:`numero E.164`,jwt:`JWT`,template_literal:`input`},r={nan:`NaN`,number:`numero`,array:`vettore`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=GU(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Input non valido: atteso instanceof ${e.expected}, ricevuto ${i}`:`Input non valido: atteso ${t}, ricevuto ${i}`}case`invalid_value`:return e.values.length===1?`Input non valido: atteso ${kU(e.values[0])}`:`Opzione non valida: atteso uno tra ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Troppo grande: ${e.origin??`valore`} deve avere ${n}${e.maximum.toString()} ${r.unit??`elementi`}`:`Troppo grande: ${e.origin??`valore`} deve essere ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Troppo piccolo: ${e.origin} deve avere ${n}${e.minimum.toString()} ${r.unit}`:`Troppo piccolo: ${e.origin} deve essere ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Stringa non valida: deve iniziare con "${t.prefix}"`:t.format===`ends_with`?`Stringa non valida: deve terminare con "${t.suffix}"`:t.format===`includes`?`Stringa non valida: deve includere "${t.includes}"`:t.format===`regex`?`Stringa non valida: deve corrispondere al pattern ${t.pattern}`:`Input non valido: ${n[t.format]??e.format}`}case`not_multiple_of`:return`Numero non valido: deve essere un multiplo di ${e.divisor}`;case`unrecognized_keys`:return`Chiav${e.keys.length>1?`i`:`e`} non riconosciut${e.keys.length>1?`e`:`a`}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Chiave non valida in ${e.origin}`;case`invalid_union`:return`Input non valido`;case`invalid_element`:return`Valore non valido in ${e.origin}`;default:return`Input non valido`}}}}));function BY(){return{localeError:VY()}}var VY,HY=o((()=>{lW(),VY=()=>{let e={string:{unit:`文字`,verb:`である`},file:{unit:`バイト`,verb:`である`},array:{unit:`要素`,verb:`である`},set:{unit:`要素`,verb:`である`}};function t(t){return e[t]??null}let n={regex:`入力値`,email:`メールアドレス`,url:`URL`,emoji:`絵文字`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO日時`,date:`ISO日付`,time:`ISO時刻`,duration:`ISO期間`,ipv4:`IPv4アドレス`,ipv6:`IPv6アドレス`,cidrv4:`IPv4範囲`,cidrv6:`IPv6範囲`,base64:`base64エンコード文字列`,base64url:`base64urlエンコード文字列`,json_string:`JSON文字列`,e164:`E.164番号`,jwt:`JWT`,template_literal:`入力値`},r={nan:`NaN`,number:`数値`,array:`配列`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=GU(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`無効な入力: instanceof ${e.expected}が期待されましたが、${i}が入力されました`:`無効な入力: ${t}が期待されましたが、${i}が入力されました`}case`invalid_value`:return e.values.length===1?`無効な入力: ${kU(e.values[0])}が期待されました`:`無効な選択: ${J(e.values,`、`)}のいずれかである必要があります`;case`too_big`:{let n=e.inclusive?`以下である`:`より小さい`,r=t(e.origin);return r?`大きすぎる値: ${e.origin??`値`}は${e.maximum.toString()}${r.unit??`要素`}${n}必要があります`:`大きすぎる値: ${e.origin??`値`}は${e.maximum.toString()}${n}必要があります`}case`too_small`:{let n=e.inclusive?`以上である`:`より大きい`,r=t(e.origin);return r?`小さすぎる値: ${e.origin}は${e.minimum.toString()}${r.unit}${n}必要があります`:`小さすぎる値: ${e.origin}は${e.minimum.toString()}${n}必要があります`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`無効な文字列: "${t.prefix}"で始まる必要があります`:t.format===`ends_with`?`無効な文字列: "${t.suffix}"で終わる必要があります`:t.format===`includes`?`無効な文字列: "${t.includes}"を含む必要があります`:t.format===`regex`?`無効な文字列: パターン${t.pattern}に一致する必要があります`:`無効な${n[t.format]??e.format}`}case`not_multiple_of`:return`無効な数値: ${e.divisor}の倍数である必要があります`;case`unrecognized_keys`:return`認識されていないキー${e.keys.length>1?`群`:``}: ${J(e.keys,`、`)}`;case`invalid_key`:return`${e.origin}内の無効なキー`;case`invalid_union`:return`無効な入力`;case`invalid_element`:return`${e.origin}内の無効な値`;default:return`無効な入力`}}}}));function UY(){return{localeError:WY()}}var WY,GY=o((()=>{lW(),WY=()=>{let e={string:{unit:`სიმბოლო`,verb:`უნდა შეიცავდეს`},file:{unit:`ბაიტი`,verb:`უნდა შეიცავდეს`},array:{unit:`ელემენტი`,verb:`უნდა შეიცავდეს`},set:{unit:`ელემენტი`,verb:`უნდა შეიცავდეს`}};function t(t){return e[t]??null}let n={regex:`შეყვანა`,email:`ელ-ფოსტის მისამართი`,url:`URL`,emoji:`ემოჯი`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`თარიღი-დრო`,date:`თარიღი`,time:`დრო`,duration:`ხანგრძლივობა`,ipv4:`IPv4 მისამართი`,ipv6:`IPv6 მისამართი`,cidrv4:`IPv4 დიაპაზონი`,cidrv6:`IPv6 დიაპაზონი`,base64:`base64-კოდირებული ველი`,base64url:`base64url-კოდირებული ველი`,json_string:`JSON ველი`,e164:`E.164 ნომერი`,jwt:`JWT`,template_literal:`შეყვანა`},r={nan:`NaN`,number:`რიცხვი`,string:`ველი`,boolean:`ბულეანი`,function:`ფუნქცია`,array:`მასივი`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=GU(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`არასწორი შეყვანა: მოსალოდნელი instanceof ${e.expected}, მიღებული ${i}`:`არასწორი შეყვანა: მოსალოდნელი ${t}, მიღებული ${i}`}case`invalid_value`:return e.values.length===1?`არასწორი შეყვანა: მოსალოდნელი ${kU(e.values[0])}`:`არასწორი ვარიანტი: მოსალოდნელია ერთ-ერთი ${J(e.values,`|`)}-დან`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`ზედმეტად დიდი: მოსალოდნელი ${e.origin??`მნიშვნელობა`} ${r.verb} ${n}${e.maximum.toString()} ${r.unit}`:`ზედმეტად დიდი: მოსალოდნელი ${e.origin??`მნიშვნელობა`} იყოს ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`ზედმეტად პატარა: მოსალოდნელი ${e.origin} ${r.verb} ${n}${e.minimum.toString()} ${r.unit}`:`ზედმეტად პატარა: მოსალოდნელი ${e.origin} იყოს ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`არასწორი ველი: უნდა იწყებოდეს "${t.prefix}"-ით`:t.format===`ends_with`?`არასწორი ველი: უნდა მთავრდებოდეს "${t.suffix}"-ით`:t.format===`includes`?`არასწორი ველი: უნდა შეიცავდეს "${t.includes}"-ს`:t.format===`regex`?`არასწორი ველი: უნდა შეესაბამებოდეს შაბლონს ${t.pattern}`:`არასწორი ${n[t.format]??e.format}`}case`not_multiple_of`:return`არასწორი რიცხვი: უნდა იყოს ${e.divisor}-ის ჯერადი`;case`unrecognized_keys`:return`უცნობი გასაღებ${e.keys.length>1?`ები`:`ი`}: ${J(e.keys,`, `)}`;case`invalid_key`:return`არასწორი გასაღები ${e.origin}-ში`;case`invalid_union`:return`არასწორი შეყვანა`;case`invalid_element`:return`არასწორი მნიშვნელობა ${e.origin}-ში`;default:return`არასწორი შეყვანა`}}}}));function KY(){return{localeError:qY()}}var qY,JY=o((()=>{lW(),qY=()=>{let e={string:{unit:`តួអក្សរ`,verb:`គួរមាន`},file:{unit:`បៃ`,verb:`គួរមាន`},array:{unit:`ធាតុ`,verb:`គួរមាន`},set:{unit:`ធាតុ`,verb:`គួរមាន`}};function t(t){return e[t]??null}let n={regex:`ទិន្នន័យបញ្ចូល`,email:`អាសយដ្ឋានអ៊ីមែល`,url:`URL`,emoji:`សញ្ញាអារម្មណ៍`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`កាលបរិច្ឆេទ និងម៉ោង ISO`,date:`កាលបរិច្ឆេទ ISO`,time:`ម៉ោង ISO`,duration:`រយៈពេល ISO`,ipv4:`អាសយដ្ឋាន IPv4`,ipv6:`អាសយដ្ឋាន IPv6`,cidrv4:`ដែនអាសយដ្ឋាន IPv4`,cidrv6:`ដែនអាសយដ្ឋាន IPv6`,base64:`ខ្សែអក្សរអ៊ិកូដ base64`,base64url:`ខ្សែអក្សរអ៊ិកូដ base64url`,json_string:`ខ្សែអក្សរ JSON`,e164:`លេខ E.164`,jwt:`JWT`,template_literal:`ទិន្នន័យបញ្ចូល`},r={nan:`NaN`,number:`លេខ`,array:`អារេ (Array)`,null:`គ្មានតម្លៃ (null)`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=GU(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ instanceof ${e.expected} ប៉ុន្តែទទួលបាន ${i}`:`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ ${t} ប៉ុន្តែទទួលបាន ${i}`}case`invalid_value`:return e.values.length===1?`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ ${kU(e.values[0])}`:`ជម្រើសមិនត្រឹមត្រូវ៖ ត្រូវជាមួយក្នុងចំណោម ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`ធំពេក៖ ត្រូវការ ${e.origin??`តម្លៃ`} ${n} ${e.maximum.toString()} ${r.unit??`ធាតុ`}`:`ធំពេក៖ ត្រូវការ ${e.origin??`តម្លៃ`} ${n} ${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`តូចពេក៖ ត្រូវការ ${e.origin} ${n} ${e.minimum.toString()} ${r.unit}`:`តូចពេក៖ ត្រូវការ ${e.origin} ${n} ${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវចាប់ផ្តើមដោយ "${t.prefix}"`:t.format===`ends_with`?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវបញ្ចប់ដោយ "${t.suffix}"`:t.format===`includes`?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវមាន "${t.includes}"`:t.format===`regex`?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវតែផ្គូផ្គងនឹងទម្រង់ដែលបានកំណត់ ${t.pattern}`:`មិនត្រឹមត្រូវ៖ ${n[t.format]??e.format}`}case`not_multiple_of`:return`លេខមិនត្រឹមត្រូវ៖ ត្រូវតែជាពហុគុណនៃ ${e.divisor}`;case`unrecognized_keys`:return`រកឃើញសោមិនស្គាល់៖ ${J(e.keys,`, `)}`;case`invalid_key`:return`សោមិនត្រឹមត្រូវនៅក្នុង ${e.origin}`;case`invalid_union`:return`ទិន្នន័យមិនត្រឹមត្រូវ`;case`invalid_element`:return`ទិន្នន័យមិនត្រឹមត្រូវនៅក្នុង ${e.origin}`;default:return`ទិន្នន័យមិនត្រឹមត្រូវ`}}}}));function YY(){return KY()}var XY=o((()=>{JY()}));function ZY(){return{localeError:QY()}}var QY,$Y=o((()=>{lW(),QY=()=>{let e={string:{unit:`문자`,verb:`to have`},file:{unit:`바이트`,verb:`to have`},array:{unit:`개`,verb:`to have`},set:{unit:`개`,verb:`to have`}};function t(t){return e[t]??null}let n={regex:`입력`,email:`이메일 주소`,url:`URL`,emoji:`이모지`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO 날짜시간`,date:`ISO 날짜`,time:`ISO 시간`,duration:`ISO 기간`,ipv4:`IPv4 주소`,ipv6:`IPv6 주소`,cidrv4:`IPv4 범위`,cidrv6:`IPv6 범위`,base64:`base64 인코딩 문자열`,base64url:`base64url 인코딩 문자열`,json_string:`JSON 문자열`,e164:`E.164 번호`,jwt:`JWT`,template_literal:`입력`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=GU(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`잘못된 입력: 예상 타입은 instanceof ${e.expected}, 받은 타입은 ${i}입니다`:`잘못된 입력: 예상 타입은 ${t}, 받은 타입은 ${i}입니다`}case`invalid_value`:return e.values.length===1?`잘못된 입력: 값은 ${kU(e.values[0])} 이어야 합니다`:`잘못된 옵션: ${J(e.values,`또는 `)} 중 하나여야 합니다`;case`too_big`:{let n=e.inclusive?`이하`:`미만`,r=n===`미만`?`이어야 합니다`:`여야 합니다`,i=t(e.origin),a=i?.unit??`요소`;return i?`${e.origin??`값`}이 너무 큽니다: ${e.maximum.toString()}${a} ${n}${r}`:`${e.origin??`값`}이 너무 큽니다: ${e.maximum.toString()} ${n}${r}`}case`too_small`:{let n=e.inclusive?`이상`:`초과`,r=n===`이상`?`이어야 합니다`:`여야 합니다`,i=t(e.origin),a=i?.unit??`요소`;return i?`${e.origin??`값`}이 너무 작습니다: ${e.minimum.toString()}${a} ${n}${r}`:`${e.origin??`값`}이 너무 작습니다: ${e.minimum.toString()} ${n}${r}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`잘못된 문자열: "${t.prefix}"(으)로 시작해야 합니다`:t.format===`ends_with`?`잘못된 문자열: "${t.suffix}"(으)로 끝나야 합니다`:t.format===`includes`?`잘못된 문자열: "${t.includes}"을(를) 포함해야 합니다`:t.format===`regex`?`잘못된 문자열: 정규식 ${t.pattern} 패턴과 일치해야 합니다`:`잘못된 ${n[t.format]??e.format}`}case`not_multiple_of`:return`잘못된 숫자: ${e.divisor}의 배수여야 합니다`;case`unrecognized_keys`:return`인식할 수 없는 키: ${J(e.keys,`, `)}`;case`invalid_key`:return`잘못된 키: ${e.origin}`;case`invalid_union`:return`잘못된 입력`;case`invalid_element`:return`잘못된 값: ${e.origin}`;default:return`잘못된 입력`}}}}));function eX(e){let t=Math.abs(e),n=t%10,r=t%100;return r>=11&&r<=19||n===0?`many`:n===1?`one`:`few`}function tX(){return{localeError:rX()}}var nX,rX,iX=o((()=>{lW(),nX=e=>e.charAt(0).toUpperCase()+e.slice(1),rX=()=>{let e={string:{unit:{one:`simbolis`,few:`simboliai`,many:`simbolių`},verb:{smaller:{inclusive:`turi būti ne ilgesnė kaip`,notInclusive:`turi būti trumpesnė kaip`},bigger:{inclusive:`turi būti ne trumpesnė kaip`,notInclusive:`turi būti ilgesnė kaip`}}},file:{unit:{one:`baitas`,few:`baitai`,many:`baitų`},verb:{smaller:{inclusive:`turi būti ne didesnis kaip`,notInclusive:`turi būti mažesnis kaip`},bigger:{inclusive:`turi būti ne mažesnis kaip`,notInclusive:`turi būti didesnis kaip`}}},array:{unit:{one:`elementą`,few:`elementus`,many:`elementų`},verb:{smaller:{inclusive:`turi turėti ne daugiau kaip`,notInclusive:`turi turėti mažiau kaip`},bigger:{inclusive:`turi turėti ne mažiau kaip`,notInclusive:`turi turėti daugiau kaip`}}},set:{unit:{one:`elementą`,few:`elementus`,many:`elementų`},verb:{smaller:{inclusive:`turi turėti ne daugiau kaip`,notInclusive:`turi turėti mažiau kaip`},bigger:{inclusive:`turi turėti ne mažiau kaip`,notInclusive:`turi turėti daugiau kaip`}}}};function t(t,n,r,i){let a=e[t]??null;return a===null?a:{unit:a.unit[n],verb:a.verb[i][r?`inclusive`:`notInclusive`]}}let n={regex:`įvestis`,email:`el. pašto adresas`,url:`URL`,emoji:`jaustukas`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO data ir laikas`,date:`ISO data`,time:`ISO laikas`,duration:`ISO trukmė`,ipv4:`IPv4 adresas`,ipv6:`IPv6 adresas`,cidrv4:`IPv4 tinklo prefiksas (CIDR)`,cidrv6:`IPv6 tinklo prefiksas (CIDR)`,base64:`base64 užkoduota eilutė`,base64url:`base64url užkoduota eilutė`,json_string:`JSON eilutė`,e164:`E.164 numeris`,jwt:`JWT`,template_literal:`įvestis`},r={nan:`NaN`,number:`skaičius`,bigint:`sveikasis skaičius`,string:`eilutė`,boolean:`loginė reikšmė`,undefined:`neapibrėžta reikšmė`,function:`funkcija`,symbol:`simbolis`,array:`masyvas`,object:`objektas`,null:`nulinė reikšmė`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=GU(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Gautas tipas ${i}, o tikėtasi - instanceof ${e.expected}`:`Gautas tipas ${i}, o tikėtasi - ${t}`}case`invalid_value`:return e.values.length===1?`Privalo būti ${kU(e.values[0])}`:`Privalo būti vienas iš ${J(e.values,`|`)} pasirinkimų`;case`too_big`:{let n=r[e.origin]??e.origin,i=t(e.origin,eX(Number(e.maximum)),e.inclusive??!1,`smaller`);if(i?.verb)return`${nX(n??e.origin??`reikšmė`)} ${i.verb} ${e.maximum.toString()} ${i.unit??`elementų`}`;let a=e.inclusive?`ne didesnis kaip`:`mažesnis kaip`;return`${nX(n??e.origin??`reikšmė`)} turi būti ${a} ${e.maximum.toString()} ${i?.unit}`}case`too_small`:{let n=r[e.origin]??e.origin,i=t(e.origin,eX(Number(e.minimum)),e.inclusive??!1,`bigger`);if(i?.verb)return`${nX(n??e.origin??`reikšmė`)} ${i.verb} ${e.minimum.toString()} ${i.unit??`elementų`}`;let a=e.inclusive?`ne mažesnis kaip`:`didesnis kaip`;return`${nX(n??e.origin??`reikšmė`)} turi būti ${a} ${e.minimum.toString()} ${i?.unit}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Eilutė privalo prasidėti "${t.prefix}"`:t.format===`ends_with`?`Eilutė privalo pasibaigti "${t.suffix}"`:t.format===`includes`?`Eilutė privalo įtraukti "${t.includes}"`:t.format===`regex`?`Eilutė privalo atitikti ${t.pattern}`:`Neteisingas ${n[t.format]??e.format}`}case`not_multiple_of`:return`Skaičius privalo būti ${e.divisor} kartotinis.`;case`unrecognized_keys`:return`Neatpažint${e.keys.length>1?`i`:`as`} rakt${e.keys.length>1?`ai`:`as`}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Rastas klaidingas raktas`;case`invalid_union`:return`Klaidinga įvestis`;case`invalid_element`:{let t=r[e.origin]??e.origin;return`${nX(t??e.origin??`reikšmė`)} turi klaidingą įvestį`}default:return`Klaidinga įvestis`}}}}));function aX(){return{localeError:oX()}}var oX,sX=o((()=>{lW(),oX=()=>{let e={string:{unit:`знаци`,verb:`да имаат`},file:{unit:`бајти`,verb:`да имаат`},array:{unit:`ставки`,verb:`да имаат`},set:{unit:`ставки`,verb:`да имаат`}};function t(t){return e[t]??null}let n={regex:`внес`,email:`адреса на е-пошта`,url:`URL`,emoji:`емоџи`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO датум и време`,date:`ISO датум`,time:`ISO време`,duration:`ISO времетраење`,ipv4:`IPv4 адреса`,ipv6:`IPv6 адреса`,cidrv4:`IPv4 опсег`,cidrv6:`IPv6 опсег`,base64:`base64-енкодирана низа`,base64url:`base64url-енкодирана низа`,json_string:`JSON низа`,e164:`E.164 број`,jwt:`JWT`,template_literal:`внес`},r={nan:`NaN`,number:`број`,array:`низа`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=GU(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Грешен внес: се очекува instanceof ${e.expected}, примено ${i}`:`Грешен внес: се очекува ${t}, примено ${i}`}case`invalid_value`:return e.values.length===1?`Invalid input: expected ${kU(e.values[0])}`:`Грешана опција: се очекува една ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Премногу голем: се очекува ${e.origin??`вредноста`} да има ${n}${e.maximum.toString()} ${r.unit??`елементи`}`:`Премногу голем: се очекува ${e.origin??`вредноста`} да биде ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Премногу мал: се очекува ${e.origin} да има ${n}${e.minimum.toString()} ${r.unit}`:`Премногу мал: се очекува ${e.origin} да биде ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Неважечка низа: мора да започнува со "${t.prefix}"`:t.format===`ends_with`?`Неважечка низа: мора да завршува со "${t.suffix}"`:t.format===`includes`?`Неважечка низа: мора да вклучува "${t.includes}"`:t.format===`regex`?`Неважечка низа: мора да одгоара на патернот ${t.pattern}`:`Invalid ${n[t.format]??e.format}`}case`not_multiple_of`:return`Грешен број: мора да биде делив со ${e.divisor}`;case`unrecognized_keys`:return`${e.keys.length>1?`Непрепознаени клучеви`:`Непрепознаен клуч`}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Грешен клуч во ${e.origin}`;case`invalid_union`:return`Грешен внес`;case`invalid_element`:return`Грешна вредност во ${e.origin}`;default:return`Грешен внес`}}}}));function cX(){return{localeError:lX()}}var lX,uX=o((()=>{lW(),lX=()=>{let e={string:{unit:`aksara`,verb:`mempunyai`},file:{unit:`bait`,verb:`mempunyai`},array:{unit:`elemen`,verb:`mempunyai`},set:{unit:`elemen`,verb:`mempunyai`}};function t(t){return e[t]??null}let n={regex:`input`,email:`alamat e-mel`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`tarikh masa ISO`,date:`tarikh ISO`,time:`masa ISO`,duration:`tempoh ISO`,ipv4:`alamat IPv4`,ipv6:`alamat IPv6`,cidrv4:`julat IPv4`,cidrv6:`julat IPv6`,base64:`string dikodkan base64`,base64url:`string dikodkan base64url`,json_string:`string JSON`,e164:`nombor E.164`,jwt:`JWT`,template_literal:`input`},r={nan:`NaN`,number:`nombor`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=GU(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Input tidak sah: dijangka instanceof ${e.expected}, diterima ${i}`:`Input tidak sah: dijangka ${t}, diterima ${i}`}case`invalid_value`:return e.values.length===1?`Input tidak sah: dijangka ${kU(e.values[0])}`:`Pilihan tidak sah: dijangka salah satu daripada ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Terlalu besar: dijangka ${e.origin??`nilai`} ${r.verb} ${n}${e.maximum.toString()} ${r.unit??`elemen`}`:`Terlalu besar: dijangka ${e.origin??`nilai`} adalah ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Terlalu kecil: dijangka ${e.origin} ${r.verb} ${n}${e.minimum.toString()} ${r.unit}`:`Terlalu kecil: dijangka ${e.origin} adalah ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`String tidak sah: mesti bermula dengan "${t.prefix}"`:t.format===`ends_with`?`String tidak sah: mesti berakhir dengan "${t.suffix}"`:t.format===`includes`?`String tidak sah: mesti mengandungi "${t.includes}"`:t.format===`regex`?`String tidak sah: mesti sepadan dengan corak ${t.pattern}`:`${n[t.format]??e.format} tidak sah`}case`not_multiple_of`:return`Nombor tidak sah: perlu gandaan ${e.divisor}`;case`unrecognized_keys`:return`Kunci tidak dikenali: ${J(e.keys,`, `)}`;case`invalid_key`:return`Kunci tidak sah dalam ${e.origin}`;case`invalid_union`:return`Input tidak sah`;case`invalid_element`:return`Nilai tidak sah dalam ${e.origin}`;default:return`Input tidak sah`}}}}));function dX(){return{localeError:fX()}}var fX,pX=o((()=>{lW(),fX=()=>{let e={string:{unit:`tekens`,verb:`heeft`},file:{unit:`bytes`,verb:`heeft`},array:{unit:`elementen`,verb:`heeft`},set:{unit:`elementen`,verb:`heeft`}};function t(t){return e[t]??null}let n={regex:`invoer`,email:`emailadres`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO datum en tijd`,date:`ISO datum`,time:`ISO tijd`,duration:`ISO duur`,ipv4:`IPv4-adres`,ipv6:`IPv6-adres`,cidrv4:`IPv4-bereik`,cidrv6:`IPv6-bereik`,base64:`base64-gecodeerde tekst`,base64url:`base64 URL-gecodeerde tekst`,json_string:`JSON string`,e164:`E.164-nummer`,jwt:`JWT`,template_literal:`invoer`},r={nan:`NaN`,number:`getal`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=GU(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Ongeldige invoer: verwacht instanceof ${e.expected}, ontving ${i}`:`Ongeldige invoer: verwacht ${t}, ontving ${i}`}case`invalid_value`:return e.values.length===1?`Ongeldige invoer: verwacht ${kU(e.values[0])}`:`Ongeldige optie: verwacht één van ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin),i=e.origin===`date`?`laat`:e.origin===`string`?`lang`:`groot`;return r?`Te ${i}: verwacht dat ${e.origin??`waarde`} ${n}${e.maximum.toString()} ${r.unit??`elementen`} ${r.verb}`:`Te ${i}: verwacht dat ${e.origin??`waarde`} ${n}${e.maximum.toString()} is`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin),i=e.origin===`date`?`vroeg`:e.origin===`string`?`kort`:`klein`;return r?`Te ${i}: verwacht dat ${e.origin} ${n}${e.minimum.toString()} ${r.unit} ${r.verb}`:`Te ${i}: verwacht dat ${e.origin} ${n}${e.minimum.toString()} is`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Ongeldige tekst: moet met "${t.prefix}" beginnen`:t.format===`ends_with`?`Ongeldige tekst: moet op "${t.suffix}" eindigen`:t.format===`includes`?`Ongeldige tekst: moet "${t.includes}" bevatten`:t.format===`regex`?`Ongeldige tekst: moet overeenkomen met patroon ${t.pattern}`:`Ongeldig: ${n[t.format]??e.format}`}case`not_multiple_of`:return`Ongeldig getal: moet een veelvoud van ${e.divisor} zijn`;case`unrecognized_keys`:return`Onbekende key${e.keys.length>1?`s`:``}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Ongeldige key in ${e.origin}`;case`invalid_union`:return`Ongeldige invoer`;case`invalid_element`:return`Ongeldige waarde in ${e.origin}`;default:return`Ongeldige invoer`}}}}));function mX(){return{localeError:hX()}}var hX,gX=o((()=>{lW(),hX=()=>{let e={string:{unit:`tegn`,verb:`å ha`},file:{unit:`bytes`,verb:`å ha`},array:{unit:`elementer`,verb:`å inneholde`},set:{unit:`elementer`,verb:`å inneholde`}};function t(t){return e[t]??null}let n={regex:`input`,email:`e-postadresse`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO dato- og klokkeslett`,date:`ISO-dato`,time:`ISO-klokkeslett`,duration:`ISO-varighet`,ipv4:`IPv4-område`,ipv6:`IPv6-område`,cidrv4:`IPv4-spekter`,cidrv6:`IPv6-spekter`,base64:`base64-enkodet streng`,base64url:`base64url-enkodet streng`,json_string:`JSON-streng`,e164:`E.164-nummer`,jwt:`JWT`,template_literal:`input`},r={nan:`NaN`,number:`tall`,array:`liste`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=GU(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Ugyldig input: forventet instanceof ${e.expected}, fikk ${i}`:`Ugyldig input: forventet ${t}, fikk ${i}`}case`invalid_value`:return e.values.length===1?`Ugyldig verdi: forventet ${kU(e.values[0])}`:`Ugyldig valg: forventet en av ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`For stor(t): forventet ${e.origin??`value`} til å ha ${n}${e.maximum.toString()} ${r.unit??`elementer`}`:`For stor(t): forventet ${e.origin??`value`} til å ha ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`For lite(n): forventet ${e.origin} til å ha ${n}${e.minimum.toString()} ${r.unit}`:`For lite(n): forventet ${e.origin} til å ha ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Ugyldig streng: må starte med "${t.prefix}"`:t.format===`ends_with`?`Ugyldig streng: må ende med "${t.suffix}"`:t.format===`includes`?`Ugyldig streng: må inneholde "${t.includes}"`:t.format===`regex`?`Ugyldig streng: må matche mønsteret ${t.pattern}`:`Ugyldig ${n[t.format]??e.format}`}case`not_multiple_of`:return`Ugyldig tall: må være et multiplum av ${e.divisor}`;case`unrecognized_keys`:return`${e.keys.length>1?`Ukjente nøkler`:`Ukjent nøkkel`}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Ugyldig nøkkel i ${e.origin}`;case`invalid_union`:return`Ugyldig input`;case`invalid_element`:return`Ugyldig verdi i ${e.origin}`;default:return`Ugyldig input`}}}}));function _X(){return{localeError:vX()}}var vX,yX=o((()=>{lW(),vX=()=>{let e={string:{unit:`harf`,verb:`olmalıdır`},file:{unit:`bayt`,verb:`olmalıdır`},array:{unit:`unsur`,verb:`olmalıdır`},set:{unit:`unsur`,verb:`olmalıdır`}};function t(t){return e[t]??null}let n={regex:`giren`,email:`epostagâh`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO hengâmı`,date:`ISO tarihi`,time:`ISO zamanı`,duration:`ISO müddeti`,ipv4:`IPv4 nişânı`,ipv6:`IPv6 nişânı`,cidrv4:`IPv4 menzili`,cidrv6:`IPv6 menzili`,base64:`base64-şifreli metin`,base64url:`base64url-şifreli metin`,json_string:`JSON metin`,e164:`E.164 sayısı`,jwt:`JWT`,template_literal:`giren`},r={nan:`NaN`,number:`numara`,array:`saf`,null:`gayb`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=GU(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Fâsit giren: umulan instanceof ${e.expected}, alınan ${i}`:`Fâsit giren: umulan ${t}, alınan ${i}`}case`invalid_value`:return e.values.length===1?`Fâsit giren: umulan ${kU(e.values[0])}`:`Fâsit tercih: mûteberler ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Fazla büyük: ${e.origin??`value`}, ${n}${e.maximum.toString()} ${r.unit??`elements`} sahip olmalıydı.`:`Fazla büyük: ${e.origin??`value`}, ${n}${e.maximum.toString()} olmalıydı.`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Fazla küçük: ${e.origin}, ${n}${e.minimum.toString()} ${r.unit} sahip olmalıydı.`:`Fazla küçük: ${e.origin}, ${n}${e.minimum.toString()} olmalıydı.`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Fâsit metin: "${t.prefix}" ile başlamalı.`:t.format===`ends_with`?`Fâsit metin: "${t.suffix}" ile bitmeli.`:t.format===`includes`?`Fâsit metin: "${t.includes}" ihtivâ etmeli.`:t.format===`regex`?`Fâsit metin: ${t.pattern} nakşına uymalı.`:`Fâsit ${n[t.format]??e.format}`}case`not_multiple_of`:return`Fâsit sayı: ${e.divisor} katı olmalıydı.`;case`unrecognized_keys`:return`Tanınmayan anahtar ${e.keys.length>1?`s`:``}: ${J(e.keys,`, `)}`;case`invalid_key`:return`${e.origin} için tanınmayan anahtar var.`;case`invalid_union`:return`Giren tanınamadı.`;case`invalid_element`:return`${e.origin} için tanınmayan kıymet var.`;default:return`Kıymet tanınamadı.`}}}}));function bX(){return{localeError:xX()}}var xX,SX=o((()=>{lW(),xX=()=>{let e={string:{unit:`توکي`,verb:`ولري`},file:{unit:`بایټس`,verb:`ولري`},array:{unit:`توکي`,verb:`ولري`},set:{unit:`توکي`,verb:`ولري`}};function t(t){return e[t]??null}let n={regex:`ورودي`,email:`بریښنالیک`,url:`یو آر ال`,emoji:`ایموجي`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`نیټه او وخت`,date:`نېټه`,time:`وخت`,duration:`موده`,ipv4:`د IPv4 پته`,ipv6:`د IPv6 پته`,cidrv4:`د IPv4 ساحه`,cidrv6:`د IPv6 ساحه`,base64:`base64-encoded متن`,base64url:`base64url-encoded متن`,json_string:`JSON متن`,e164:`د E.164 شمېره`,jwt:`JWT`,template_literal:`ورودي`},r={nan:`NaN`,number:`عدد`,array:`ارې`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=GU(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`ناسم ورودي: باید instanceof ${e.expected} وای, مګر ${i} ترلاسه شو`:`ناسم ورودي: باید ${t} وای, مګر ${i} ترلاسه شو`}case`invalid_value`:return e.values.length===1?`ناسم ورودي: باید ${kU(e.values[0])} وای`:`ناسم انتخاب: باید یو له ${J(e.values,`|`)} څخه وای`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`ډیر لوی: ${e.origin??`ارزښت`} باید ${n}${e.maximum.toString()} ${r.unit??`عنصرونه`} ولري`:`ډیر لوی: ${e.origin??`ارزښت`} باید ${n}${e.maximum.toString()} وي`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`ډیر کوچنی: ${e.origin} باید ${n}${e.minimum.toString()} ${r.unit} ولري`:`ډیر کوچنی: ${e.origin} باید ${n}${e.minimum.toString()} وي`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`ناسم متن: باید د "${t.prefix}" سره پیل شي`:t.format===`ends_with`?`ناسم متن: باید د "${t.suffix}" سره پای ته ورسيږي`:t.format===`includes`?`ناسم متن: باید "${t.includes}" ولري`:t.format===`regex`?`ناسم متن: باید د ${t.pattern} سره مطابقت ولري`:`${n[t.format]??e.format} ناسم دی`}case`not_multiple_of`:return`ناسم عدد: باید د ${e.divisor} مضرب وي`;case`unrecognized_keys`:return`ناسم ${e.keys.length>1?`کلیډونه`:`کلیډ`}: ${J(e.keys,`, `)}`;case`invalid_key`:return`ناسم کلیډ په ${e.origin} کې`;case`invalid_union`:return`ناسمه ورودي`;case`invalid_element`:return`ناسم عنصر په ${e.origin} کې`;default:return`ناسمه ورودي`}}}}));function CX(){return{localeError:wX()}}var wX,TX=o((()=>{lW(),wX=()=>{let e={string:{unit:`znaków`,verb:`mieć`},file:{unit:`bajtów`,verb:`mieć`},array:{unit:`elementów`,verb:`mieć`},set:{unit:`elementów`,verb:`mieć`}};function t(t){return e[t]??null}let n={regex:`wyrażenie`,email:`adres email`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`data i godzina w formacie ISO`,date:`data w formacie ISO`,time:`godzina w formacie ISO`,duration:`czas trwania ISO`,ipv4:`adres IPv4`,ipv6:`adres IPv6`,cidrv4:`zakres IPv4`,cidrv6:`zakres IPv6`,base64:`ciąg znaków zakodowany w formacie base64`,base64url:`ciąg znaków zakodowany w formacie base64url`,json_string:`ciąg znaków w formacie JSON`,e164:`liczba E.164`,jwt:`JWT`,template_literal:`wejście`},r={nan:`NaN`,number:`liczba`,array:`tablica`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=GU(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Nieprawidłowe dane wejściowe: oczekiwano instanceof ${e.expected}, otrzymano ${i}`:`Nieprawidłowe dane wejściowe: oczekiwano ${t}, otrzymano ${i}`}case`invalid_value`:return e.values.length===1?`Nieprawidłowe dane wejściowe: oczekiwano ${kU(e.values[0])}`:`Nieprawidłowa opcja: oczekiwano jednej z wartości ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Za duża wartość: oczekiwano, że ${e.origin??`wartość`} będzie mieć ${n}${e.maximum.toString()} ${r.unit??`elementów`}`:`Zbyt duż(y/a/e): oczekiwano, że ${e.origin??`wartość`} będzie wynosić ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Za mała wartość: oczekiwano, że ${e.origin??`wartość`} będzie mieć ${n}${e.minimum.toString()} ${r.unit??`elementów`}`:`Zbyt mał(y/a/e): oczekiwano, że ${e.origin??`wartość`} będzie wynosić ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Nieprawidłowy ciąg znaków: musi zaczynać się od "${t.prefix}"`:t.format===`ends_with`?`Nieprawidłowy ciąg znaków: musi kończyć się na "${t.suffix}"`:t.format===`includes`?`Nieprawidłowy ciąg znaków: musi zawierać "${t.includes}"`:t.format===`regex`?`Nieprawidłowy ciąg znaków: musi odpowiadać wzorcowi ${t.pattern}`:`Nieprawidłow(y/a/e) ${n[t.format]??e.format}`}case`not_multiple_of`:return`Nieprawidłowa liczba: musi być wielokrotnością ${e.divisor}`;case`unrecognized_keys`:return`Nierozpoznane klucze${e.keys.length>1?`s`:``}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Nieprawidłowy klucz w ${e.origin}`;case`invalid_union`:return`Nieprawidłowe dane wejściowe`;case`invalid_element`:return`Nieprawidłowa wartość w ${e.origin}`;default:return`Nieprawidłowe dane wejściowe`}}}}));function EX(){return{localeError:DX()}}var DX,OX=o((()=>{lW(),DX=()=>{let e={string:{unit:`caracteres`,verb:`ter`},file:{unit:`bytes`,verb:`ter`},array:{unit:`itens`,verb:`ter`},set:{unit:`itens`,verb:`ter`}};function t(t){return e[t]??null}let n={regex:`padrão`,email:`endereço de e-mail`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`data e hora ISO`,date:`data ISO`,time:`hora ISO`,duration:`duração ISO`,ipv4:`endereço IPv4`,ipv6:`endereço IPv6`,cidrv4:`faixa de IPv4`,cidrv6:`faixa de IPv6`,base64:`texto codificado em base64`,base64url:`URL codificada em base64`,json_string:`texto JSON`,e164:`número E.164`,jwt:`JWT`,template_literal:`entrada`},r={nan:`NaN`,number:`número`,null:`nulo`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=GU(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Tipo inválido: esperado instanceof ${e.expected}, recebido ${i}`:`Tipo inválido: esperado ${t}, recebido ${i}`}case`invalid_value`:return e.values.length===1?`Entrada inválida: esperado ${kU(e.values[0])}`:`Opção inválida: esperada uma das ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Muito grande: esperado que ${e.origin??`valor`} tivesse ${n}${e.maximum.toString()} ${r.unit??`elementos`}`:`Muito grande: esperado que ${e.origin??`valor`} fosse ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Muito pequeno: esperado que ${e.origin} tivesse ${n}${e.minimum.toString()} ${r.unit}`:`Muito pequeno: esperado que ${e.origin} fosse ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Texto inválido: deve começar com "${t.prefix}"`:t.format===`ends_with`?`Texto inválido: deve terminar com "${t.suffix}"`:t.format===`includes`?`Texto inválido: deve incluir "${t.includes}"`:t.format===`regex`?`Texto inválido: deve corresponder ao padrão ${t.pattern}`:`${n[t.format]??e.format} inválido`}case`not_multiple_of`:return`Número inválido: deve ser múltiplo de ${e.divisor}`;case`unrecognized_keys`:return`Chave${e.keys.length>1?`s`:``} desconhecida${e.keys.length>1?`s`:``}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Chave inválida em ${e.origin}`;case`invalid_union`:return`Entrada inválida`;case`invalid_element`:return`Valor inválido em ${e.origin}`;default:return`Campo inválido`}}}}));function kX(){return{localeError:AX()}}var AX,jX=o((()=>{lW(),AX=()=>{let e={string:{unit:`caractere`,verb:`să aibă`},file:{unit:`octeți`,verb:`să aibă`},array:{unit:`elemente`,verb:`să aibă`},set:{unit:`elemente`,verb:`să aibă`},map:{unit:`intrări`,verb:`să aibă`}};function t(t){return e[t]??null}let n={regex:`intrare`,email:`adresă de email`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`dată și oră ISO`,date:`dată ISO`,time:`oră ISO`,duration:`durată ISO`,ipv4:`adresă IPv4`,ipv6:`adresă IPv6`,mac:`adresă MAC`,cidrv4:`interval IPv4`,cidrv6:`interval IPv6`,base64:`șir codat base64`,base64url:`șir codat base64url`,json_string:`șir JSON`,e164:`număr E.164`,jwt:`JWT`,template_literal:`intrare`},r={nan:`NaN`,string:`șir`,number:`număr`,boolean:`boolean`,function:`funcție`,array:`matrice`,object:`obiect`,undefined:`nedefinit`,symbol:`simbol`,bigint:`număr mare`,void:`void`,never:`never`,map:`hartă`,set:`set`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=GU(e.input);return`Intrare invalidă: așteptat ${t}, primit ${r[n]??n}`}case`invalid_value`:return e.values.length===1?`Intrare invalidă: așteptat ${kU(e.values[0])}`:`Opțiune invalidă: așteptat una dintre ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Prea mare: așteptat ca ${e.origin??`valoarea`} ${r.verb} ${n}${e.maximum.toString()} ${r.unit??`elemente`}`:`Prea mare: așteptat ca ${e.origin??`valoarea`} să fie ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Prea mic: așteptat ca ${e.origin} ${r.verb} ${n}${e.minimum.toString()} ${r.unit}`:`Prea mic: așteptat ca ${e.origin} să fie ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Șir invalid: trebuie să înceapă cu "${t.prefix}"`:t.format===`ends_with`?`Șir invalid: trebuie să se termine cu "${t.suffix}"`:t.format===`includes`?`Șir invalid: trebuie să includă "${t.includes}"`:t.format===`regex`?`Șir invalid: trebuie să se potrivească cu modelul ${t.pattern}`:`Format invalid: ${n[t.format]??e.format}`}case`not_multiple_of`:return`Număr invalid: trebuie să fie multiplu de ${e.divisor}`;case`unrecognized_keys`:return`Chei nerecunoscute: ${J(e.keys,`, `)}`;case`invalid_key`:return`Cheie invalidă în ${e.origin}`;case`invalid_union`:return`Intrare invalidă`;case`invalid_element`:return`Valoare invalidă în ${e.origin}`;default:return`Intrare invalidă`}}}}));function MX(e,t,n,r){let i=Math.abs(e),a=i%10,o=i%100;return o>=11&&o<=19?r:a===1?t:a>=2&&a<=4?n:r}function NX(){return{localeError:PX()}}var PX,FX=o((()=>{lW(),PX=()=>{let e={string:{unit:{one:`символ`,few:`символа`,many:`символов`},verb:`иметь`},file:{unit:{one:`байт`,few:`байта`,many:`байт`},verb:`иметь`},array:{unit:{one:`элемент`,few:`элемента`,many:`элементов`},verb:`иметь`},set:{unit:{one:`элемент`,few:`элемента`,many:`элементов`},verb:`иметь`}};function t(t){return e[t]??null}let n={regex:`ввод`,email:`email адрес`,url:`URL`,emoji:`эмодзи`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO дата и время`,date:`ISO дата`,time:`ISO время`,duration:`ISO длительность`,ipv4:`IPv4 адрес`,ipv6:`IPv6 адрес`,cidrv4:`IPv4 диапазон`,cidrv6:`IPv6 диапазон`,base64:`строка в формате base64`,base64url:`строка в формате base64url`,json_string:`JSON строка`,e164:`номер E.164`,jwt:`JWT`,template_literal:`ввод`},r={nan:`NaN`,number:`число`,array:`массив`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=GU(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Неверный ввод: ожидалось instanceof ${e.expected}, получено ${i}`:`Неверный ввод: ожидалось ${t}, получено ${i}`}case`invalid_value`:return e.values.length===1?`Неверный ввод: ожидалось ${kU(e.values[0])}`:`Неверный вариант: ожидалось одно из ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);if(r){let t=MX(Number(e.maximum),r.unit.one,r.unit.few,r.unit.many);return`Слишком большое значение: ожидалось, что ${e.origin??`значение`} будет иметь ${n}${e.maximum.toString()} ${t}`}return`Слишком большое значение: ожидалось, что ${e.origin??`значение`} будет ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);if(r){let t=MX(Number(e.minimum),r.unit.one,r.unit.few,r.unit.many);return`Слишком маленькое значение: ожидалось, что ${e.origin} будет иметь ${n}${e.minimum.toString()} ${t}`}return`Слишком маленькое значение: ожидалось, что ${e.origin} будет ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Неверная строка: должна начинаться с "${t.prefix}"`:t.format===`ends_with`?`Неверная строка: должна заканчиваться на "${t.suffix}"`:t.format===`includes`?`Неверная строка: должна содержать "${t.includes}"`:t.format===`regex`?`Неверная строка: должна соответствовать шаблону ${t.pattern}`:`Неверный ${n[t.format]??e.format}`}case`not_multiple_of`:return`Неверное число: должно быть кратным ${e.divisor}`;case`unrecognized_keys`:return`Нераспознанн${e.keys.length>1?`ые`:`ый`} ключ${e.keys.length>1?`и`:``}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Неверный ключ в ${e.origin}`;case`invalid_union`:return`Неверные входные данные`;case`invalid_element`:return`Неверное значение в ${e.origin}`;default:return`Неверные входные данные`}}}}));function IX(){return{localeError:LX()}}var LX,RX=o((()=>{lW(),LX=()=>{let e={string:{unit:`znakov`,verb:`imeti`},file:{unit:`bajtov`,verb:`imeti`},array:{unit:`elementov`,verb:`imeti`},set:{unit:`elementov`,verb:`imeti`}};function t(t){return e[t]??null}let n={regex:`vnos`,email:`e-poštni naslov`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO datum in čas`,date:`ISO datum`,time:`ISO čas`,duration:`ISO trajanje`,ipv4:`IPv4 naslov`,ipv6:`IPv6 naslov`,cidrv4:`obseg IPv4`,cidrv6:`obseg IPv6`,base64:`base64 kodiran niz`,base64url:`base64url kodiran niz`,json_string:`JSON niz`,e164:`E.164 številka`,jwt:`JWT`,template_literal:`vnos`},r={nan:`NaN`,number:`število`,array:`tabela`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=GU(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Neveljaven vnos: pričakovano instanceof ${e.expected}, prejeto ${i}`:`Neveljaven vnos: pričakovano ${t}, prejeto ${i}`}case`invalid_value`:return e.values.length===1?`Neveljaven vnos: pričakovano ${kU(e.values[0])}`:`Neveljavna možnost: pričakovano eno izmed ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Preveliko: pričakovano, da bo ${e.origin??`vrednost`} imelo ${n}${e.maximum.toString()} ${r.unit??`elementov`}`:`Preveliko: pričakovano, da bo ${e.origin??`vrednost`} ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Premajhno: pričakovano, da bo ${e.origin} imelo ${n}${e.minimum.toString()} ${r.unit}`:`Premajhno: pričakovano, da bo ${e.origin} ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Neveljaven niz: mora se začeti z "${t.prefix}"`:t.format===`ends_with`?`Neveljaven niz: mora se končati z "${t.suffix}"`:t.format===`includes`?`Neveljaven niz: mora vsebovati "${t.includes}"`:t.format===`regex`?`Neveljaven niz: mora ustrezati vzorcu ${t.pattern}`:`Neveljaven ${n[t.format]??e.format}`}case`not_multiple_of`:return`Neveljavno število: mora biti večkratnik ${e.divisor}`;case`unrecognized_keys`:return`Neprepoznan${e.keys.length>1?`i ključi`:` ključ`}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Neveljaven ključ v ${e.origin}`;case`invalid_union`:return`Neveljaven vnos`;case`invalid_element`:return`Neveljavna vrednost v ${e.origin}`;default:return`Neveljaven vnos`}}}}));function zX(){return{localeError:BX()}}var BX,VX=o((()=>{lW(),BX=()=>{let e={string:{unit:`tecken`,verb:`att ha`},file:{unit:`bytes`,verb:`att ha`},array:{unit:`objekt`,verb:`att innehålla`},set:{unit:`objekt`,verb:`att innehålla`}};function t(t){return e[t]??null}let n={regex:`reguljärt uttryck`,email:`e-postadress`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO-datum och tid`,date:`ISO-datum`,time:`ISO-tid`,duration:`ISO-varaktighet`,ipv4:`IPv4-intervall`,ipv6:`IPv6-intervall`,cidrv4:`IPv4-spektrum`,cidrv6:`IPv6-spektrum`,base64:`base64-kodad sträng`,base64url:`base64url-kodad sträng`,json_string:`JSON-sträng`,e164:`E.164-nummer`,jwt:`JWT`,template_literal:`mall-literal`},r={nan:`NaN`,number:`antal`,array:`lista`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=GU(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Ogiltig inmatning: förväntat instanceof ${e.expected}, fick ${i}`:`Ogiltig inmatning: förväntat ${t}, fick ${i}`}case`invalid_value`:return e.values.length===1?`Ogiltig inmatning: förväntat ${kU(e.values[0])}`:`Ogiltigt val: förväntade en av ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`För stor(t): förväntade ${e.origin??`värdet`} att ha ${n}${e.maximum.toString()} ${r.unit??`element`}`:`För stor(t): förväntat ${e.origin??`värdet`} att ha ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`För lite(t): förväntade ${e.origin??`värdet`} att ha ${n}${e.minimum.toString()} ${r.unit}`:`För lite(t): förväntade ${e.origin??`värdet`} att ha ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Ogiltig sträng: måste börja med "${t.prefix}"`:t.format===`ends_with`?`Ogiltig sträng: måste sluta med "${t.suffix}"`:t.format===`includes`?`Ogiltig sträng: måste innehålla "${t.includes}"`:t.format===`regex`?`Ogiltig sträng: måste matcha mönstret "${t.pattern}"`:`Ogiltig(t) ${n[t.format]??e.format}`}case`not_multiple_of`:return`Ogiltigt tal: måste vara en multipel av ${e.divisor}`;case`unrecognized_keys`:return`${e.keys.length>1?`Okända nycklar`:`Okänd nyckel`}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Ogiltig nyckel i ${e.origin??`värdet`}`;case`invalid_union`:return`Ogiltig input`;case`invalid_element`:return`Ogiltigt värde i ${e.origin??`värdet`}`;default:return`Ogiltig input`}}}}));function HX(){return{localeError:UX()}}var UX,WX=o((()=>{lW(),UX=()=>{let e={string:{unit:`எழுத்துக்கள்`,verb:`கொண்டிருக்க வேண்டும்`},file:{unit:`பைட்டுகள்`,verb:`கொண்டிருக்க வேண்டும்`},array:{unit:`உறுப்புகள்`,verb:`கொண்டிருக்க வேண்டும்`},set:{unit:`உறுப்புகள்`,verb:`கொண்டிருக்க வேண்டும்`}};function t(t){return e[t]??null}let n={regex:`உள்ளீடு`,email:`மின்னஞ்சல் முகவரி`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO தேதி நேரம்`,date:`ISO தேதி`,time:`ISO நேரம்`,duration:`ISO கால அளவு`,ipv4:`IPv4 முகவரி`,ipv6:`IPv6 முகவரி`,cidrv4:`IPv4 வரம்பு`,cidrv6:`IPv6 வரம்பு`,base64:`base64-encoded சரம்`,base64url:`base64url-encoded சரம்`,json_string:`JSON சரம்`,e164:`E.164 எண்`,jwt:`JWT`,template_literal:`input`},r={nan:`NaN`,number:`எண்`,array:`அணி`,null:`வெறுமை`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=GU(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது instanceof ${e.expected}, பெறப்பட்டது ${i}`:`தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது ${t}, பெறப்பட்டது ${i}`}case`invalid_value`:return e.values.length===1?`தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது ${kU(e.values[0])}`:`தவறான விருப்பம்: எதிர்பார்க்கப்பட்டது ${J(e.values,`|`)} இல் ஒன்று`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`மிக பெரியது: எதிர்பார்க்கப்பட்டது ${e.origin??`மதிப்பு`} ${n}${e.maximum.toString()} ${r.unit??`உறுப்புகள்`} ஆக இருக்க வேண்டும்`:`மிக பெரியது: எதிர்பார்க்கப்பட்டது ${e.origin??`மதிப்பு`} ${n}${e.maximum.toString()} ஆக இருக்க வேண்டும்`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`மிகச் சிறியது: எதிர்பார்க்கப்பட்டது ${e.origin} ${n}${e.minimum.toString()} ${r.unit} ஆக இருக்க வேண்டும்`:`மிகச் சிறியது: எதிர்பார்க்கப்பட்டது ${e.origin} ${n}${e.minimum.toString()} ஆக இருக்க வேண்டும்`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`தவறான சரம்: "${t.prefix}" இல் தொடங்க வேண்டும்`:t.format===`ends_with`?`தவறான சரம்: "${t.suffix}" இல் முடிவடைய வேண்டும்`:t.format===`includes`?`தவறான சரம்: "${t.includes}" ஐ உள்ளடக்க வேண்டும்`:t.format===`regex`?`தவறான சரம்: ${t.pattern} முறைபாட்டுடன் பொருந்த வேண்டும்`:`தவறான ${n[t.format]??e.format}`}case`not_multiple_of`:return`தவறான எண்: ${e.divisor} இன் பலமாக இருக்க வேண்டும்`;case`unrecognized_keys`:return`அடையாளம் தெரியாத விசை${e.keys.length>1?`கள்`:``}: ${J(e.keys,`, `)}`;case`invalid_key`:return`${e.origin} இல் தவறான விசை`;case`invalid_union`:return`தவறான உள்ளீடு`;case`invalid_element`:return`${e.origin} இல் தவறான மதிப்பு`;default:return`தவறான உள்ளீடு`}}}}));function GX(){return{localeError:KX()}}var KX,qX=o((()=>{lW(),KX=()=>{let e={string:{unit:`ตัวอักษร`,verb:`ควรมี`},file:{unit:`ไบต์`,verb:`ควรมี`},array:{unit:`รายการ`,verb:`ควรมี`},set:{unit:`รายการ`,verb:`ควรมี`}};function t(t){return e[t]??null}let n={regex:`ข้อมูลที่ป้อน`,email:`ที่อยู่อีเมล`,url:`URL`,emoji:`อิโมจิ`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`วันที่เวลาแบบ ISO`,date:`วันที่แบบ ISO`,time:`เวลาแบบ ISO`,duration:`ช่วงเวลาแบบ ISO`,ipv4:`ที่อยู่ IPv4`,ipv6:`ที่อยู่ IPv6`,cidrv4:`ช่วง IP แบบ IPv4`,cidrv6:`ช่วง IP แบบ IPv6`,base64:`ข้อความแบบ Base64`,base64url:`ข้อความแบบ Base64 สำหรับ URL`,json_string:`ข้อความแบบ JSON`,e164:`เบอร์โทรศัพท์ระหว่างประเทศ (E.164)`,jwt:`โทเคน JWT`,template_literal:`ข้อมูลที่ป้อน`},r={nan:`NaN`,number:`ตัวเลข`,array:`อาร์เรย์ (Array)`,null:`ไม่มีค่า (null)`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=GU(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`ประเภทข้อมูลไม่ถูกต้อง: ควรเป็น instanceof ${e.expected} แต่ได้รับ ${i}`:`ประเภทข้อมูลไม่ถูกต้อง: ควรเป็น ${t} แต่ได้รับ ${i}`}case`invalid_value`:return e.values.length===1?`ค่าไม่ถูกต้อง: ควรเป็น ${kU(e.values[0])}`:`ตัวเลือกไม่ถูกต้อง: ควรเป็นหนึ่งใน ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`ไม่เกิน`:`น้อยกว่า`,r=t(e.origin);return r?`เกินกำหนด: ${e.origin??`ค่า`} ควรมี${n} ${e.maximum.toString()} ${r.unit??`รายการ`}`:`เกินกำหนด: ${e.origin??`ค่า`} ควรมี${n} ${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`อย่างน้อย`:`มากกว่า`,r=t(e.origin);return r?`น้อยกว่ากำหนด: ${e.origin} ควรมี${n} ${e.minimum.toString()} ${r.unit}`:`น้อยกว่ากำหนด: ${e.origin} ควรมี${n} ${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`รูปแบบไม่ถูกต้อง: ข้อความต้องขึ้นต้นด้วย "${t.prefix}"`:t.format===`ends_with`?`รูปแบบไม่ถูกต้อง: ข้อความต้องลงท้ายด้วย "${t.suffix}"`:t.format===`includes`?`รูปแบบไม่ถูกต้อง: ข้อความต้องมี "${t.includes}" อยู่ในข้อความ`:t.format===`regex`?`รูปแบบไม่ถูกต้อง: ต้องตรงกับรูปแบบที่กำหนด ${t.pattern}`:`รูปแบบไม่ถูกต้อง: ${n[t.format]??e.format}`}case`not_multiple_of`:return`ตัวเลขไม่ถูกต้อง: ต้องเป็นจำนวนที่หารด้วย ${e.divisor} ได้ลงตัว`;case`unrecognized_keys`:return`พบคีย์ที่ไม่รู้จัก: ${J(e.keys,`, `)}`;case`invalid_key`:return`คีย์ไม่ถูกต้องใน ${e.origin}`;case`invalid_union`:return`ข้อมูลไม่ถูกต้อง: ไม่ตรงกับรูปแบบยูเนียนที่กำหนดไว้`;case`invalid_element`:return`ข้อมูลไม่ถูกต้องใน ${e.origin}`;default:return`ข้อมูลไม่ถูกต้อง`}}}}));function JX(){return{localeError:YX()}}var YX,XX=o((()=>{lW(),YX=()=>{let e={string:{unit:`karakter`,verb:`olmalı`},file:{unit:`bayt`,verb:`olmalı`},array:{unit:`öğe`,verb:`olmalı`},set:{unit:`öğe`,verb:`olmalı`}};function t(t){return e[t]??null}let n={regex:`girdi`,email:`e-posta adresi`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO tarih ve saat`,date:`ISO tarih`,time:`ISO saat`,duration:`ISO süre`,ipv4:`IPv4 adresi`,ipv6:`IPv6 adresi`,cidrv4:`IPv4 aralığı`,cidrv6:`IPv6 aralığı`,base64:`base64 ile şifrelenmiş metin`,base64url:`base64url ile şifrelenmiş metin`,json_string:`JSON dizesi`,e164:`E.164 sayısı`,jwt:`JWT`,template_literal:`Şablon dizesi`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=GU(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Geçersiz değer: beklenen instanceof ${e.expected}, alınan ${i}`:`Geçersiz değer: beklenen ${t}, alınan ${i}`}case`invalid_value`:return e.values.length===1?`Geçersiz değer: beklenen ${kU(e.values[0])}`:`Geçersiz seçenek: aşağıdakilerden biri olmalı: ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Çok büyük: beklenen ${e.origin??`değer`} ${n}${e.maximum.toString()} ${r.unit??`öğe`}`:`Çok büyük: beklenen ${e.origin??`değer`} ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Çok küçük: beklenen ${e.origin} ${n}${e.minimum.toString()} ${r.unit}`:`Çok küçük: beklenen ${e.origin} ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Geçersiz metin: "${t.prefix}" ile başlamalı`:t.format===`ends_with`?`Geçersiz metin: "${t.suffix}" ile bitmeli`:t.format===`includes`?`Geçersiz metin: "${t.includes}" içermeli`:t.format===`regex`?`Geçersiz metin: ${t.pattern} desenine uymalı`:`Geçersiz ${n[t.format]??e.format}`}case`not_multiple_of`:return`Geçersiz sayı: ${e.divisor} ile tam bölünebilmeli`;case`unrecognized_keys`:return`Tanınmayan anahtar${e.keys.length>1?`lar`:``}: ${J(e.keys,`, `)}`;case`invalid_key`:return`${e.origin} içinde geçersiz anahtar`;case`invalid_union`:return`Geçersiz değer`;case`invalid_element`:return`${e.origin} içinde geçersiz değer`;default:return`Geçersiz değer`}}}}));function ZX(){return{localeError:QX()}}var QX,$X=o((()=>{lW(),QX=()=>{let e={string:{unit:`символів`,verb:`матиме`},file:{unit:`байтів`,verb:`матиме`},array:{unit:`елементів`,verb:`матиме`},set:{unit:`елементів`,verb:`матиме`}};function t(t){return e[t]??null}let n={regex:`вхідні дані`,email:`адреса електронної пошти`,url:`URL`,emoji:`емодзі`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`дата та час ISO`,date:`дата ISO`,time:`час ISO`,duration:`тривалість ISO`,ipv4:`адреса IPv4`,ipv6:`адреса IPv6`,cidrv4:`діапазон IPv4`,cidrv6:`діапазон IPv6`,base64:`рядок у кодуванні base64`,base64url:`рядок у кодуванні base64url`,json_string:`рядок JSON`,e164:`номер E.164`,jwt:`JWT`,template_literal:`вхідні дані`},r={nan:`NaN`,number:`число`,array:`масив`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=GU(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Неправильні вхідні дані: очікується instanceof ${e.expected}, отримано ${i}`:`Неправильні вхідні дані: очікується ${t}, отримано ${i}`}case`invalid_value`:return e.values.length===1?`Неправильні вхідні дані: очікується ${kU(e.values[0])}`:`Неправильна опція: очікується одне з ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Занадто велике: очікується, що ${e.origin??`значення`} ${r.verb} ${n}${e.maximum.toString()} ${r.unit??`елементів`}`:`Занадто велике: очікується, що ${e.origin??`значення`} буде ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Занадто мале: очікується, що ${e.origin} ${r.verb} ${n}${e.minimum.toString()} ${r.unit}`:`Занадто мале: очікується, що ${e.origin} буде ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Неправильний рядок: повинен починатися з "${t.prefix}"`:t.format===`ends_with`?`Неправильний рядок: повинен закінчуватися на "${t.suffix}"`:t.format===`includes`?`Неправильний рядок: повинен містити "${t.includes}"`:t.format===`regex`?`Неправильний рядок: повинен відповідати шаблону ${t.pattern}`:`Неправильний ${n[t.format]??e.format}`}case`not_multiple_of`:return`Неправильне число: повинно бути кратним ${e.divisor}`;case`unrecognized_keys`:return`Нерозпізнаний ключ${e.keys.length>1?`і`:``}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Неправильний ключ у ${e.origin}`;case`invalid_union`:return`Неправильні вхідні дані`;case`invalid_element`:return`Неправильне значення у ${e.origin}`;default:return`Неправильні вхідні дані`}}}}));function eZ(){return ZX()}var tZ=o((()=>{$X()}));function nZ(){return{localeError:rZ()}}var rZ,iZ=o((()=>{lW(),rZ=()=>{let e={string:{unit:`حروف`,verb:`ہونا`},file:{unit:`بائٹس`,verb:`ہونا`},array:{unit:`آئٹمز`,verb:`ہونا`},set:{unit:`آئٹمز`,verb:`ہونا`}};function t(t){return e[t]??null}let n={regex:`ان پٹ`,email:`ای میل ایڈریس`,url:`یو آر ایل`,emoji:`ایموجی`,uuid:`یو یو آئی ڈی`,uuidv4:`یو یو آئی ڈی وی 4`,uuidv6:`یو یو آئی ڈی وی 6`,nanoid:`نینو آئی ڈی`,guid:`جی یو آئی ڈی`,cuid:`سی یو آئی ڈی`,cuid2:`سی یو آئی ڈی 2`,ulid:`یو ایل آئی ڈی`,xid:`ایکس آئی ڈی`,ksuid:`کے ایس یو آئی ڈی`,datetime:`آئی ایس او ڈیٹ ٹائم`,date:`آئی ایس او تاریخ`,time:`آئی ایس او وقت`,duration:`آئی ایس او مدت`,ipv4:`آئی پی وی 4 ایڈریس`,ipv6:`آئی پی وی 6 ایڈریس`,cidrv4:`آئی پی وی 4 رینج`,cidrv6:`آئی پی وی 6 رینج`,base64:`بیس 64 ان کوڈڈ سٹرنگ`,base64url:`بیس 64 یو آر ایل ان کوڈڈ سٹرنگ`,json_string:`جے ایس او این سٹرنگ`,e164:`ای 164 نمبر`,jwt:`جے ڈبلیو ٹی`,template_literal:`ان پٹ`},r={nan:`NaN`,number:`نمبر`,array:`آرے`,null:`نل`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=GU(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`غلط ان پٹ: instanceof ${e.expected} متوقع تھا، ${i} موصول ہوا`:`غلط ان پٹ: ${t} متوقع تھا، ${i} موصول ہوا`}case`invalid_value`:return e.values.length===1?`غلط ان پٹ: ${kU(e.values[0])} متوقع تھا`:`غلط آپشن: ${J(e.values,`|`)} میں سے ایک متوقع تھا`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`بہت بڑا: ${e.origin??`ویلیو`} کے ${n}${e.maximum.toString()} ${r.unit??`عناصر`} ہونے متوقع تھے`:`بہت بڑا: ${e.origin??`ویلیو`} کا ${n}${e.maximum.toString()} ہونا متوقع تھا`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`بہت چھوٹا: ${e.origin} کے ${n}${e.minimum.toString()} ${r.unit} ہونے متوقع تھے`:`بہت چھوٹا: ${e.origin} کا ${n}${e.minimum.toString()} ہونا متوقع تھا`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`غلط سٹرنگ: "${t.prefix}" سے شروع ہونا چاہیے`:t.format===`ends_with`?`غلط سٹرنگ: "${t.suffix}" پر ختم ہونا چاہیے`:t.format===`includes`?`غلط سٹرنگ: "${t.includes}" شامل ہونا چاہیے`:t.format===`regex`?`غلط سٹرنگ: پیٹرن ${t.pattern} سے میچ ہونا چاہیے`:`غلط ${n[t.format]??e.format}`}case`not_multiple_of`:return`غلط نمبر: ${e.divisor} کا مضاعف ہونا چاہیے`;case`unrecognized_keys`:return`غیر تسلیم شدہ کی${e.keys.length>1?`ز`:``}: ${J(e.keys,`، `)}`;case`invalid_key`:return`${e.origin} میں غلط کی`;case`invalid_union`:return`غلط ان پٹ`;case`invalid_element`:return`${e.origin} میں غلط ویلیو`;default:return`غلط ان پٹ`}}}}));function aZ(){return{localeError:oZ()}}var oZ,sZ=o((()=>{lW(),oZ=()=>{let e={string:{unit:`belgi`,verb:`bo‘lishi kerak`},file:{unit:`bayt`,verb:`bo‘lishi kerak`},array:{unit:`element`,verb:`bo‘lishi kerak`},set:{unit:`element`,verb:`bo‘lishi kerak`},map:{unit:`yozuv`,verb:`bo‘lishi kerak`}};function t(t){return e[t]??null}let n={regex:`kirish`,email:`elektron pochta manzili`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO sana va vaqti`,date:`ISO sana`,time:`ISO vaqt`,duration:`ISO davomiylik`,ipv4:`IPv4 manzil`,ipv6:`IPv6 manzil`,mac:`MAC manzil`,cidrv4:`IPv4 diapazon`,cidrv6:`IPv6 diapazon`,base64:`base64 kodlangan satr`,base64url:`base64url kodlangan satr`,json_string:`JSON satr`,e164:`E.164 raqam`,jwt:`JWT`,template_literal:`kirish`},r={nan:`NaN`,number:`raqam`,array:`massiv`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=GU(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Noto‘g‘ri kirish: kutilgan instanceof ${e.expected}, qabul qilingan ${i}`:`Noto‘g‘ri kirish: kutilgan ${t}, qabul qilingan ${i}`}case`invalid_value`:return e.values.length===1?`Noto‘g‘ri kirish: kutilgan ${kU(e.values[0])}`:`Noto‘g‘ri variant: quyidagilardan biri kutilgan ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Juda katta: kutilgan ${e.origin??`qiymat`} ${n}${e.maximum.toString()} ${r.unit} ${r.verb}`:`Juda katta: kutilgan ${e.origin??`qiymat`} ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Juda kichik: kutilgan ${e.origin} ${n}${e.minimum.toString()} ${r.unit} ${r.verb}`:`Juda kichik: kutilgan ${e.origin} ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Noto‘g‘ri satr: "${t.prefix}" bilan boshlanishi kerak`:t.format===`ends_with`?`Noto‘g‘ri satr: "${t.suffix}" bilan tugashi kerak`:t.format===`includes`?`Noto‘g‘ri satr: "${t.includes}" ni o‘z ichiga olishi kerak`:t.format===`regex`?`Noto‘g‘ri satr: ${t.pattern} shabloniga mos kelishi kerak`:`Noto‘g‘ri ${n[t.format]??e.format}`}case`not_multiple_of`:return`Noto‘g‘ri raqam: ${e.divisor} ning karralisi bo‘lishi kerak`;case`unrecognized_keys`:return`Noma’lum kalit${e.keys.length>1?`lar`:``}: ${J(e.keys,`, `)}`;case`invalid_key`:return`${e.origin} dagi kalit noto‘g‘ri`;case`invalid_union`:return`Noto‘g‘ri kirish`;case`invalid_element`:return`${e.origin} da noto‘g‘ri qiymat`;default:return`Noto‘g‘ri kirish`}}}}));function cZ(){return{localeError:lZ()}}var lZ,uZ=o((()=>{lW(),lZ=()=>{let e={string:{unit:`ký tự`,verb:`có`},file:{unit:`byte`,verb:`có`},array:{unit:`phần tử`,verb:`có`},set:{unit:`phần tử`,verb:`có`}};function t(t){return e[t]??null}let n={regex:`đầu vào`,email:`địa chỉ email`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ngày giờ ISO`,date:`ngày ISO`,time:`giờ ISO`,duration:`khoảng thời gian ISO`,ipv4:`địa chỉ IPv4`,ipv6:`địa chỉ IPv6`,cidrv4:`dải IPv4`,cidrv6:`dải IPv6`,base64:`chuỗi mã hóa base64`,base64url:`chuỗi mã hóa base64url`,json_string:`chuỗi JSON`,e164:`số E.164`,jwt:`JWT`,template_literal:`đầu vào`},r={nan:`NaN`,number:`số`,array:`mảng`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=GU(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Đầu vào không hợp lệ: mong đợi instanceof ${e.expected}, nhận được ${i}`:`Đầu vào không hợp lệ: mong đợi ${t}, nhận được ${i}`}case`invalid_value`:return e.values.length===1?`Đầu vào không hợp lệ: mong đợi ${kU(e.values[0])}`:`Tùy chọn không hợp lệ: mong đợi một trong các giá trị ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Quá lớn: mong đợi ${e.origin??`giá trị`} ${r.verb} ${n}${e.maximum.toString()} ${r.unit??`phần tử`}`:`Quá lớn: mong đợi ${e.origin??`giá trị`} ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Quá nhỏ: mong đợi ${e.origin} ${r.verb} ${n}${e.minimum.toString()} ${r.unit}`:`Quá nhỏ: mong đợi ${e.origin} ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Chuỗi không hợp lệ: phải bắt đầu bằng "${t.prefix}"`:t.format===`ends_with`?`Chuỗi không hợp lệ: phải kết thúc bằng "${t.suffix}"`:t.format===`includes`?`Chuỗi không hợp lệ: phải bao gồm "${t.includes}"`:t.format===`regex`?`Chuỗi không hợp lệ: phải khớp với mẫu ${t.pattern}`:`${n[t.format]??e.format} không hợp lệ`}case`not_multiple_of`:return`Số không hợp lệ: phải là bội số của ${e.divisor}`;case`unrecognized_keys`:return`Khóa không được nhận dạng: ${J(e.keys,`, `)}`;case`invalid_key`:return`Khóa không hợp lệ trong ${e.origin}`;case`invalid_union`:return`Đầu vào không hợp lệ`;case`invalid_element`:return`Giá trị không hợp lệ trong ${e.origin}`;default:return`Đầu vào không hợp lệ`}}}}));function dZ(){return{localeError:fZ()}}var fZ,pZ=o((()=>{lW(),fZ=()=>{let e={string:{unit:`字符`,verb:`包含`},file:{unit:`字节`,verb:`包含`},array:{unit:`项`,verb:`包含`},set:{unit:`项`,verb:`包含`}};function t(t){return e[t]??null}let n={regex:`输入`,email:`电子邮件`,url:`URL`,emoji:`表情符号`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO日期时间`,date:`ISO日期`,time:`ISO时间`,duration:`ISO时长`,ipv4:`IPv4地址`,ipv6:`IPv6地址`,cidrv4:`IPv4网段`,cidrv6:`IPv6网段`,base64:`base64编码字符串`,base64url:`base64url编码字符串`,json_string:`JSON字符串`,e164:`E.164号码`,jwt:`JWT`,template_literal:`输入`},r={nan:`NaN`,number:`数字`,array:`数组`,null:`空值(null)`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=GU(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`无效输入:期望 instanceof ${e.expected},实际接收 ${i}`:`无效输入:期望 ${t},实际接收 ${i}`}case`invalid_value`:return e.values.length===1?`无效输入:期望 ${kU(e.values[0])}`:`无效选项:期望以下之一 ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`数值过大:期望 ${e.origin??`值`} ${n}${e.maximum.toString()} ${r.unit??`个元素`}`:`数值过大:期望 ${e.origin??`值`} ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`数值过小:期望 ${e.origin} ${n}${e.minimum.toString()} ${r.unit}`:`数值过小:期望 ${e.origin} ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`无效字符串:必须以 "${t.prefix}" 开头`:t.format===`ends_with`?`无效字符串:必须以 "${t.suffix}" 结尾`:t.format===`includes`?`无效字符串:必须包含 "${t.includes}"`:t.format===`regex`?`无效字符串:必须满足正则表达式 ${t.pattern}`:`无效${n[t.format]??e.format}`}case`not_multiple_of`:return`无效数字:必须是 ${e.divisor} 的倍数`;case`unrecognized_keys`:return`出现未知的键(key): ${J(e.keys,`, `)}`;case`invalid_key`:return`${e.origin} 中的键(key)无效`;case`invalid_union`:return`无效输入`;case`invalid_element`:return`${e.origin} 中包含无效值(value)`;default:return`无效输入`}}}}));function mZ(){return{localeError:hZ()}}var hZ,gZ=o((()=>{lW(),hZ=()=>{let e={string:{unit:`字元`,verb:`擁有`},file:{unit:`位元組`,verb:`擁有`},array:{unit:`項目`,verb:`擁有`},set:{unit:`項目`,verb:`擁有`}};function t(t){return e[t]??null}let n={regex:`輸入`,email:`郵件地址`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO 日期時間`,date:`ISO 日期`,time:`ISO 時間`,duration:`ISO 期間`,ipv4:`IPv4 位址`,ipv6:`IPv6 位址`,cidrv4:`IPv4 範圍`,cidrv6:`IPv6 範圍`,base64:`base64 編碼字串`,base64url:`base64url 編碼字串`,json_string:`JSON 字串`,e164:`E.164 數值`,jwt:`JWT`,template_literal:`輸入`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=GU(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`無效的輸入值:預期為 instanceof ${e.expected},但收到 ${i}`:`無效的輸入值:預期為 ${t},但收到 ${i}`}case`invalid_value`:return e.values.length===1?`無效的輸入值:預期為 ${kU(e.values[0])}`:`無效的選項:預期為以下其中之一 ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`數值過大:預期 ${e.origin??`值`} 應為 ${n}${e.maximum.toString()} ${r.unit??`個元素`}`:`數值過大:預期 ${e.origin??`值`} 應為 ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`數值過小:預期 ${e.origin} 應為 ${n}${e.minimum.toString()} ${r.unit}`:`數值過小:預期 ${e.origin} 應為 ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`無效的字串:必須以 "${t.prefix}" 開頭`:t.format===`ends_with`?`無效的字串:必須以 "${t.suffix}" 結尾`:t.format===`includes`?`無效的字串:必須包含 "${t.includes}"`:t.format===`regex`?`無效的字串:必須符合格式 ${t.pattern}`:`無效的 ${n[t.format]??e.format}`}case`not_multiple_of`:return`無效的數字:必須為 ${e.divisor} 的倍數`;case`unrecognized_keys`:return`無法識別的鍵值${e.keys.length>1?`們`:``}:${J(e.keys,`、`)}`;case`invalid_key`:return`${e.origin} 中有無效的鍵值`;case`invalid_union`:return`無效的輸入值`;case`invalid_element`:return`${e.origin} 中有無效的值`;default:return`無效的輸入值`}}}}));function _Z(){return{localeError:vZ()}}var vZ,yZ=o((()=>{lW(),vZ=()=>{let e={string:{unit:`àmi`,verb:`ní`},file:{unit:`bytes`,verb:`ní`},array:{unit:`nkan`,verb:`ní`},set:{unit:`nkan`,verb:`ní`}};function t(t){return e[t]??null}let n={regex:`ẹ̀rọ ìbáwọlé`,email:`àdírẹ́sì ìmẹ́lì`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`àkókò ISO`,date:`ọjọ́ ISO`,time:`àkókò ISO`,duration:`àkókò tó pé ISO`,ipv4:`àdírẹ́sì IPv4`,ipv6:`àdírẹ́sì IPv6`,cidrv4:`àgbègbè IPv4`,cidrv6:`àgbègbè IPv6`,base64:`ọ̀rọ̀ tí a kọ́ ní base64`,base64url:`ọ̀rọ̀ base64url`,json_string:`ọ̀rọ̀ JSON`,e164:`nọ́mbà E.164`,jwt:`JWT`,template_literal:`ẹ̀rọ ìbáwọlé`},r={nan:`NaN`,number:`nọ́mbà`,array:`akopọ`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=GU(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Ìbáwọlé aṣìṣe: a ní láti fi instanceof ${e.expected}, àmọ̀ a rí ${i}`:`Ìbáwọlé aṣìṣe: a ní láti fi ${t}, àmọ̀ a rí ${i}`}case`invalid_value`:return e.values.length===1?`Ìbáwọlé aṣìṣe: a ní láti fi ${kU(e.values[0])}`:`Àṣàyàn aṣìṣe: yan ọ̀kan lára ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Tó pọ̀ jù: a ní láti jẹ́ pé ${e.origin??`iye`} ${r.verb} ${n}${e.maximum} ${r.unit}`:`Tó pọ̀ jù: a ní láti jẹ́ ${n}${e.maximum}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Kéré ju: a ní láti jẹ́ pé ${e.origin} ${r.verb} ${n}${e.minimum} ${r.unit}`:`Kéré ju: a ní láti jẹ́ ${n}${e.minimum}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ bẹ̀rẹ̀ pẹ̀lú "${t.prefix}"`:t.format===`ends_with`?`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ parí pẹ̀lú "${t.suffix}"`:t.format===`includes`?`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ ní "${t.includes}"`:t.format===`regex`?`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ bá àpẹẹrẹ mu ${t.pattern}`:`Aṣìṣe: ${n[t.format]??e.format}`}case`not_multiple_of`:return`Nọ́mbà aṣìṣe: gbọ́dọ̀ jẹ́ èyà pípín ti ${e.divisor}`;case`unrecognized_keys`:return`Bọtìnì àìmọ̀: ${J(e.keys,`, `)}`;case`invalid_key`:return`Bọtìnì aṣìṣe nínú ${e.origin}`;case`invalid_union`:return`Ìbáwọlé aṣìṣe`;case`invalid_element`:return`Iye aṣìṣe nínú ${e.origin}`;default:return`Ìbáwọlé aṣìṣe`}}}})),bZ=c({ar:()=>SJ,az:()=>TJ,be:()=>kJ,bg:()=>MJ,ca:()=>FJ,cs:()=>RJ,da:()=>VJ,de:()=>WJ,el:()=>qJ,en:()=>XJ,eo:()=>$J,es:()=>nY,fa:()=>aY,fi:()=>cY,fr:()=>dY,frCA:()=>mY,he:()=>_Y,hr:()=>bY,hu:()=>CY,hy:()=>OY,id:()=>jY,is:()=>PY,it:()=>LY,ja:()=>BY,ka:()=>UY,kh:()=>YY,km:()=>KY,ko:()=>ZY,lt:()=>tX,mk:()=>aX,ms:()=>cX,nl:()=>dX,no:()=>mX,ota:()=>_X,pl:()=>CX,ps:()=>bX,pt:()=>EX,ro:()=>kX,ru:()=>NX,sl:()=>IX,sv:()=>zX,ta:()=>HX,th:()=>GX,tr:()=>JX,ua:()=>eZ,uk:()=>ZX,ur:()=>nZ,uz:()=>aZ,vi:()=>cZ,yo:()=>_Z,zhCN:()=>dZ,zhTW:()=>mZ}),xZ=o((()=>{wJ(),DJ(),jJ(),PJ(),LJ(),BJ(),UJ(),KJ(),YJ(),QJ(),tY(),iY(),sY(),uY(),pY(),gY(),yY(),SY(),TY(),AY(),NY(),IY(),zY(),HY(),GY(),XY(),JY(),$Y(),iX(),sX(),uX(),pX(),gX(),yX(),SX(),TX(),OX(),jX(),FX(),RX(),VX(),WX(),qX(),XX(),tZ(),$X(),iZ(),sZ(),uZ(),pZ(),gZ(),yZ()}));function SZ(){return new EZ}var CZ,wZ,TZ,EZ,DZ,OZ=o((()=>{wZ=Symbol(`ZodOutput`),TZ=Symbol(`ZodInput`),EZ=class{constructor(){this._map=new WeakMap,this._idmap=new Map}add(e,...t){let n=t[0];return this._map.set(e,n),n&&typeof n==`object`&&`id`in n&&this._idmap.set(n.id,e),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(e){let t=this._map.get(e);return t&&typeof t==`object`&&`id`in t&&this._idmap.delete(t.id),this._map.delete(e),this}get(e){let t=e._zod.parent;if(t){let n={...this.get(t)??{}};delete n.id;let r={...n,...this._map.get(e)};return Object.keys(r).length?r:void 0}return this._map.get(e)}has(e){return this._map.has(e)}},(CZ=globalThis).__zod_globalRegistry??(CZ.__zod_globalRegistry=SZ()),DZ=globalThis.__zod_globalRegistry}));function kZ(e,t){return new e({type:`string`,...Y(t)})}function AZ(e,t){return new e({type:`string`,coerce:!0,...Y(t)})}function jZ(e,t){return new e({type:`string`,format:`email`,check:`string_format`,abort:!1,...Y(t)})}function MZ(e,t){return new e({type:`string`,format:`guid`,check:`string_format`,abort:!1,...Y(t)})}function NZ(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,...Y(t)})}function PZ(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v4`,...Y(t)})}function FZ(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v6`,...Y(t)})}function IZ(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v7`,...Y(t)})}function LZ(e,t){return new e({type:`string`,format:`url`,check:`string_format`,abort:!1,...Y(t)})}function RZ(e,t){return new e({type:`string`,format:`emoji`,check:`string_format`,abort:!1,...Y(t)})}function zZ(e,t){return new e({type:`string`,format:`nanoid`,check:`string_format`,abort:!1,...Y(t)})}function BZ(e,t){return new e({type:`string`,format:`cuid`,check:`string_format`,abort:!1,...Y(t)})}function VZ(e,t){return new e({type:`string`,format:`cuid2`,check:`string_format`,abort:!1,...Y(t)})}function HZ(e,t){return new e({type:`string`,format:`ulid`,check:`string_format`,abort:!1,...Y(t)})}function UZ(e,t){return new e({type:`string`,format:`xid`,check:`string_format`,abort:!1,...Y(t)})}function WZ(e,t){return new e({type:`string`,format:`ksuid`,check:`string_format`,abort:!1,...Y(t)})}function GZ(e,t){return new e({type:`string`,format:`ipv4`,check:`string_format`,abort:!1,...Y(t)})}function KZ(e,t){return new e({type:`string`,format:`ipv6`,check:`string_format`,abort:!1,...Y(t)})}function qZ(e,t){return new e({type:`string`,format:`mac`,check:`string_format`,abort:!1,...Y(t)})}function JZ(e,t){return new e({type:`string`,format:`cidrv4`,check:`string_format`,abort:!1,...Y(t)})}function YZ(e,t){return new e({type:`string`,format:`cidrv6`,check:`string_format`,abort:!1,...Y(t)})}function XZ(e,t){return new e({type:`string`,format:`base64`,check:`string_format`,abort:!1,...Y(t)})}function ZZ(e,t){return new e({type:`string`,format:`base64url`,check:`string_format`,abort:!1,...Y(t)})}function QZ(e,t){return new e({type:`string`,format:`e164`,check:`string_format`,abort:!1,...Y(t)})}function $Z(e,t){return new e({type:`string`,format:`jwt`,check:`string_format`,abort:!1,...Y(t)})}function eQ(e,t){return new e({type:`string`,format:`datetime`,check:`string_format`,offset:!1,local:!1,precision:null,...Y(t)})}function tQ(e,t){return new e({type:`string`,format:`date`,check:`string_format`,...Y(t)})}function nQ(e,t){return new e({type:`string`,format:`time`,check:`string_format`,precision:null,...Y(t)})}function rQ(e,t){return new e({type:`string`,format:`duration`,check:`string_format`,...Y(t)})}function iQ(e,t){return new e({type:`number`,checks:[],...Y(t)})}function aQ(e,t){return new e({type:`number`,coerce:!0,checks:[],...Y(t)})}function oQ(e,t){return new e({type:`number`,check:`number_format`,abort:!1,format:`safeint`,...Y(t)})}function sQ(e,t){return new e({type:`number`,check:`number_format`,abort:!1,format:`float32`,...Y(t)})}function cQ(e,t){return new e({type:`number`,check:`number_format`,abort:!1,format:`float64`,...Y(t)})}function lQ(e,t){return new e({type:`number`,check:`number_format`,abort:!1,format:`int32`,...Y(t)})}function uQ(e,t){return new e({type:`number`,check:`number_format`,abort:!1,format:`uint32`,...Y(t)})}function dQ(e,t){return new e({type:`boolean`,...Y(t)})}function fQ(e,t){return new e({type:`boolean`,coerce:!0,...Y(t)})}function pQ(e,t){return new e({type:`bigint`,...Y(t)})}function mQ(e,t){return new e({type:`bigint`,coerce:!0,...Y(t)})}function hQ(e,t){return new e({type:`bigint`,check:`bigint_format`,abort:!1,format:`int64`,...Y(t)})}function gQ(e,t){return new e({type:`bigint`,check:`bigint_format`,abort:!1,format:`uint64`,...Y(t)})}function _Q(e,t){return new e({type:`symbol`,...Y(t)})}function vQ(e,t){return new e({type:`undefined`,...Y(t)})}function yQ(e,t){return new e({type:`null`,...Y(t)})}function bQ(e){return new e({type:`any`})}function xQ(e){return new e({type:`unknown`})}function SQ(e,t){return new e({type:`never`,...Y(t)})}function CQ(e,t){return new e({type:`void`,...Y(t)})}function wQ(e,t){return new e({type:`date`,...Y(t)})}function TQ(e,t){return new e({type:`date`,coerce:!0,...Y(t)})}function EQ(e,t){return new e({type:`nan`,...Y(t)})}function DQ(e,t){return new aK({check:`less_than`,...Y(t),value:e,inclusive:!1})}function OQ(e,t){return new aK({check:`less_than`,...Y(t),value:e,inclusive:!0})}function kQ(e,t){return new oK({check:`greater_than`,...Y(t),value:e,inclusive:!1})}function AQ(e,t){return new oK({check:`greater_than`,...Y(t),value:e,inclusive:!0})}function jQ(e){return kQ(0,e)}function MQ(e){return DQ(0,e)}function NQ(e){return OQ(0,e)}function PQ(e){return AQ(0,e)}function FQ(e,t){return new sK({check:`multiple_of`,...Y(t),value:e})}function IQ(e,t){return new uK({check:`max_size`,...Y(t),maximum:e})}function LQ(e,t){return new dK({check:`min_size`,...Y(t),minimum:e})}function RQ(e,t){return new fK({check:`size_equals`,...Y(t),size:e})}function zQ(e,t){return new pK({check:`max_length`,...Y(t),maximum:e})}function BQ(e,t){return new mK({check:`min_length`,...Y(t),minimum:e})}function VQ(e,t){return new hK({check:`length_equals`,...Y(t),length:e})}function HQ(e,t){return new _K({check:`string_format`,format:`regex`,...Y(t),pattern:e})}function UQ(e){return new vK({check:`string_format`,format:`lowercase`,...Y(e)})}function WQ(e){return new yK({check:`string_format`,format:`uppercase`,...Y(e)})}function GQ(e,t){return new bK({check:`string_format`,format:`includes`,...Y(t),includes:e})}function KQ(e,t){return new xK({check:`string_format`,format:`starts_with`,...Y(t),prefix:e})}function qQ(e,t){return new SK({check:`string_format`,format:`ends_with`,...Y(t),suffix:e})}function JQ(e,t,n){return new CK({check:`property`,property:e,schema:t,...Y(n)})}function YQ(e,t){return new wK({check:`mime_type`,mime:e,...Y(t)})}function XQ(e){return new TK({check:`overwrite`,tx:e})}function ZQ(e){return XQ(t=>t.normalize(e))}function QQ(){return XQ(e=>e.trim())}function $Q(){return XQ(e=>e.toLowerCase())}function e$(){return XQ(e=>e.toUpperCase())}function t$(){return XQ(e=>xU(e))}function n$(e,t,n){return new e({type:`array`,element:t,...Y(n)})}function r$(e,t,n){return new e({type:`union`,options:t,...Y(n)})}function i$(e,t,n){return new e({type:`union`,options:t,inclusive:!1,...Y(n)})}function a$(e,t,n,r){return new e({type:`union`,options:n,discriminator:t,...Y(r)})}function o$(e,t,n){return new e({type:`intersection`,left:t,right:n})}function s$(e,t,n,r){let i=n instanceof tq;return new e({type:`tuple`,items:t,rest:i?n:null,...Y(i?r:n)})}function c$(e,t,n,r){return new e({type:`record`,keyType:t,valueType:n,...Y(r)})}function l$(e,t,n,r){return new e({type:`map`,keyType:t,valueType:n,...Y(r)})}function u$(e,t,n){return new e({type:`set`,valueType:t,...Y(n)})}function d$(e,t,n){return new e({type:`enum`,entries:Array.isArray(t)?Object.fromEntries(t.map(e=>[e,e])):t,...Y(n)})}function f$(e,t,n){return new e({type:`enum`,entries:t,...Y(n)})}function p$(e,t,n){return new e({type:`literal`,values:Array.isArray(t)?t:[t],...Y(n)})}function m$(e,t){return new e({type:`file`,...Y(t)})}function h$(e,t){return new e({type:`transform`,transform:t})}function g$(e,t){return new e({type:`optional`,innerType:t})}function _$(e,t){return new e({type:`nullable`,innerType:t})}function v$(e,t,n){return new e({type:`default`,innerType:t,get defaultValue(){return typeof n==`function`?n():wU(n)}})}function y$(e,t,n){return new e({type:`nonoptional`,innerType:t,...Y(n)})}function b$(e,t){return new e({type:`success`,innerType:t})}function x$(e,t,n){return new e({type:`catch`,innerType:t,catchValue:typeof n==`function`?n:()=>n})}function S$(e,t,n){return new e({type:`pipe`,in:t,out:n})}function C$(e,t){return new e({type:`readonly`,innerType:t})}function w$(e,t,n){return new e({type:`template_literal`,parts:t,...Y(n)})}function T$(e,t){return new e({type:`lazy`,getter:t})}function E$(e,t){return new e({type:`promise`,innerType:t})}function D$(e,t,n){let r=Y(n);return r.abort??=!0,new e({type:`custom`,check:`custom`,fn:t,...r})}function O$(e,t,n){return new e({type:`custom`,check:`custom`,fn:t,...Y(n)})}function k$(e,t){let n=A$(t=>(t.addIssue=e=>{if(typeof e==`string`)t.issues.push(KU(e,t.value,n._zod.def));else{let r=e;r.fatal&&(r.continue=!1),r.code??=`custom`,r.input??=t.value,r.inst??=n,r.continue??=!n._zod.def.abort,t.issues.push(KU(r))}},e(t.value,t)),t);return n}function A$(e,t){let n=new rK({check:`custom`,...Y(t)});return n._zod.check=e,n}function j$(e){let t=new rK({check:`describe`});return t._zod.onattach=[t=>{let n=DZ.get(t)??{};DZ.add(t,{...n,description:e})}],t._zod.check=()=>{},t}function M$(e){let t=new rK({check:`meta`});return t._zod.onattach=[t=>{let n=DZ.get(t)??{};DZ.add(t,{...n,...e})}],t._zod.check=()=>{},t}function N$(e,t){let n=Y(t),r=n.truthy??[`true`,`1`,`yes`,`on`,`y`,`enabled`],i=n.falsy??[`false`,`0`,`no`,`off`,`n`,`disabled`];n.case!==`sensitive`&&(r=r.map(e=>typeof e==`string`?e.toLowerCase():e),i=i.map(e=>typeof e==`string`?e.toLowerCase():e));let a=new Set(r),o=new Set(i),s=e.Codec??pJ,c=e.Boolean??jq,l=new s({type:`pipe`,in:new(e.String??nq)({type:`string`,error:n.error}),out:new c({type:`boolean`,error:n.error}),transform:((e,t)=>{let r=e;return n.case!==`sensitive`&&(r=r.toLowerCase()),a.has(r)?!0:!o.has(r)&&(t.issues.push({code:`invalid_value`,expected:`stringbool`,values:[...a,...o],input:t.value,inst:l,continue:!1}),{})}),reverseTransform:((e,t)=>e===!0?r[0]||`true`:i[0]||`false`),error:n.error});return l}function P$(e,t,n,r={}){let i=Y(r),a={...Y(r),check:`string_format`,type:`string`,format:t,fn:typeof n==`function`?n:e=>n.test(e),...i};return n instanceof RegExp&&(a.pattern=n),new e(a)}var F$,I$=o((()=>{EK(),OZ(),xJ(),lW(),F$={Any:null,Minute:-1,Second:0,Millisecond:3,Microsecond:6}}));function L$(e){let t=e?.target??`draft-2020-12`;return t===`draft-4`&&(t=`draft-04`),t===`draft-7`&&(t=`draft-07`),{processors:e.processors??{},metadataRegistry:e?.metadata??DZ,target:t,unrepresentable:e?.unrepresentable??`throw`,override:e?.override??(()=>{}),io:e?.io??`output`,counter:0,seen:new Map,cycles:e?.cycles??`ref`,reused:e?.reused??`inline`,external:e?.external??void 0}}function R$(e,t,n={path:[],schemaPath:[]}){var r;let i=e._zod.def,a=t.seen.get(e);if(a)return a.count++,n.schemaPath.includes(e)&&(a.cycle=n.path),a.schema;let o={schema:{},count:1,cycle:void 0,path:n.path};t.seen.set(e,o);let s=e._zod.toJSONSchema?.();if(s)o.schema=s;else{let r={...n,schemaPath:[...n.schemaPath,e],path:n.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,o.schema,r);else{let n=o.schema,a=t.processors[i.type];if(!a)throw Error(`[toJSONSchema]: Non-representable type encountered: ${i.type}`);a(e,t,n,r)}let a=e._zod.parent;a&&(o.ref||=a,R$(a,t,r),t.seen.get(a).isParent=!0)}let c=t.metadataRegistry.get(e);return c&&Object.assign(o.schema,c),t.io===`input`&&V$(e)&&(delete o.schema.examples,delete o.schema.default),t.io===`input`&&`_prefault`in o.schema&&((r=o.schema).default??(r.default=o.schema._prefault)),delete o.schema._prefault,t.seen.get(e).schema}function z$(e,t){let n=e.seen.get(t);if(!n)throw Error(`Unprocessed schema. This is a bug in Zod.`);let r=new Map;for(let t of e.seen.entries()){let n=e.metadataRegistry.get(t[0])?.id;if(n){let e=r.get(n);if(e&&e!==t[0])throw Error(`Duplicate schema id "${n}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);r.set(n,t[0])}}let i=t=>{let r=e.target===`draft-2020-12`?`$defs`:`definitions`;if(e.external){let n=e.external.registry.get(t[0])?.id,i=e.external.uri??(e=>e);if(n)return{ref:i(n)};let a=t[1].defId??t[1].schema.id??`schema${e.counter++}`;return t[1].defId=a,{defId:a,ref:`${i(`__shared`)}#/${r}/${a}`}}if(t[1]===n)return{ref:`#`};let i=`#/${r}/`,a=t[1].schema.id??`__schema${e.counter++}`;return{defId:a,ref:i+a}},a=e=>{if(e[1].schema.$ref)return;let t=e[1],{ref:n,defId:r}=i(e);t.def={...t.schema},r&&(t.defId=r);let a=t.schema;for(let e in a)delete a[e];a.$ref=n};if(e.cycles===`throw`)for(let t of e.seen.entries()){let e=t[1];if(e.cycle)throw Error(`Cycle detected: #/${e.cycle?.join(`/`)}/ -Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let n of e.seen.entries()){let r=n[1];if(t===n[0]){a(n);continue}if(e.external){let r=e.external.registry.get(n[0])?.id;if(t!==n[0]&&r){a(n);continue}}if(e.metadataRegistry.get(n[0])?.id){a(n);continue}if(r.cycle){a(n);continue}if(r.count>1&&e.reused===`ref`){a(n);continue}}}function D$(e,t){let n=e.seen.get(t);if(!n)throw Error(`Unprocessed schema. This is a bug in Zod.`);let r=t=>{let n=e.seen.get(t);if(n.ref===null)return;let i=n.def??n.schema,a={...i},o=n.ref;if(n.ref=null,o){r(o);let n=e.seen.get(o),s=n.schema;if(s.$ref&&(e.target===`draft-07`||e.target===`draft-04`||e.target===`openapi-3.0`)?(i.allOf=i.allOf??[],i.allOf.push(s)):Object.assign(i,s),Object.assign(i,a),t._zod.parent===o)for(let e in i)e!==`$ref`&&e!==`allOf`&&(e in a||delete i[e]);if(s.$ref&&n.def)for(let e in i)e!==`$ref`&&e!==`allOf`&&e in n.def&&JSON.stringify(i[e])===JSON.stringify(n.def[e])&&delete i[e]}let s=t._zod.parent;if(s&&s!==o){r(s);let t=e.seen.get(s);if(t?.schema.$ref&&(i.$ref=t.schema.$ref,t.def))for(let e in i)e!==`$ref`&&e!==`allOf`&&e in t.def&&JSON.stringify(i[e])===JSON.stringify(t.def[e])&&delete i[e]}e.override({zodSchema:t,jsonSchema:i,path:n.path??[]})};for(let t of[...e.seen.entries()].reverse())r(t[0]);let i={};if(e.target===`draft-2020-12`?i.$schema=`https://json-schema.org/draft/2020-12/schema`:e.target===`draft-07`?i.$schema=`http://json-schema.org/draft-07/schema#`:e.target===`draft-04`?i.$schema=`http://json-schema.org/draft-04/schema#`:e.target,e.external?.uri){let n=e.external.registry.get(t)?.id;if(!n)throw Error("Schema is missing an `id` property");i.$id=e.external.uri(n)}Object.assign(i,n.def??n.schema);let a=e.metadataRegistry.get(t)?.id;a!==void 0&&i.id===a&&delete i.id;let o=e.external?.defs??{};for(let t of e.seen.entries()){let e=t[1];e.def&&e.defId&&(e.def.id===e.defId&&delete e.def.id,o[e.defId]=e.def)}e.external||Object.keys(o).length>0&&(e.target===`draft-2020-12`?i.$defs=o:i.definitions=o);try{let n=JSON.parse(JSON.stringify(i));return Object.defineProperty(n,"~standard",{value:{...t[`~standard`],jsonSchema:{input:A$(t,`input`,e.processors),output:A$(t,`output`,e.processors)}},enumerable:!1,writable:!1}),n}catch{throw Error(`Error converting schema to JSON.`)}}function O$(e,t){let n=t??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);let r=e._zod.def;if(r.type===`transform`)return!0;if(r.type===`array`)return O$(r.element,n);if(r.type===`set`)return O$(r.valueType,n);if(r.type===`lazy`)return O$(r.getter(),n);if(r.type===`promise`||r.type===`optional`||r.type===`nonoptional`||r.type===`nullable`||r.type===`readonly`||r.type==="default"||r.type===`prefault`)return O$(r.innerType,n);if(r.type===`intersection`)return O$(r.left,n)||O$(r.right,n);if(r.type===`record`||r.type===`map`)return O$(r.keyType,n)||O$(r.valueType,n);if(r.type===`pipe`)return e._zod.traits.has(`$ZodCodec`)?!0:O$(r.in,n)||O$(r.out,n);if(r.type===`object`){for(let e in r.shape)if(O$(r.shape[e],n))return!0;return!1}if(r.type===`union`){for(let e of r.options)if(O$(e,n))return!0;return!1}if(r.type===`tuple`){for(let e of r.items)if(O$(e,n))return!0;return!!(r.rest&&O$(r.rest,n))}return!1}var k$,A$,j$=o((()=>{hZ(),k$=(e,t={})=>n=>{let r=w$({...n,processors:t});return T$(e,r),E$(r,e),D$(r,e)},A$=(e,t,n={})=>r=>{let{libraryOptions:i,target:a}=r??{},o=w$({...i??{},target:a,io:t,processors:n});return T$(e,o),E$(o,e),D$(o,e)}}));function M$(e,t){if(`_idmap`in e){let n=e,r=w$({...t,processors:y1}),i={};for(let e of n._idmap.entries()){let[t,n]=e;T$(n,r)}let a={};r.external={registry:n,uri:t?.uri,defs:i};for(let e of n._idmap.entries()){let[t,n]=e;E$(r,n),a[t]=D$(r,n)}return Object.keys(i).length>0&&(a.__shared={[r.target===`draft-2020-12`?`$defs`:`definitions`]:i}),{schemas:a}}let n=w$({...t,processors:y1});return T$(e,n),E$(n,e),D$(n,e)}var N$,P$,F$,I$,L$,R$,z$,B$,V$,H$,U$,W$,G$,K$,q$,J$,Y$,X$,Z$,Q$,$$,e1,t1,n1,r1,i1,a1,o1,s1,c1,l1,u1,d1,f1,p1,m1,h1,g1,_1,v1,y1,b1=o((()=>{j$(),XU(),N$={guid:`uuid`,url:`uri`,datetime:`date-time`,json_string:`json-string`,regex:``},P$=(e,t,n,r)=>{let i=n;i.type=`string`;let{minimum:a,maximum:o,format:s,patterns:c,contentEncoding:l}=e._zod.bag;if(typeof a==`number`&&(i.minLength=a),typeof o==`number`&&(i.maxLength=o),s&&(i.format=N$[s]??s,i.format===``&&delete i.format,s===`time`&&delete i.format),l&&(i.contentEncoding=l),c&&c.size>0){let e=[...c];e.length===1?i.pattern=e[0].source:e.length>1&&(i.allOf=[...e.map(e=>({...t.target===`draft-07`||t.target===`draft-04`||t.target===`openapi-3.0`?{type:`string`}:{},pattern:e.source}))])}},F$=(e,t,n,r)=>{let i=n,{minimum:a,maximum:o,format:s,multipleOf:c,exclusiveMaximum:l,exclusiveMinimum:u}=e._zod.bag;i.type=typeof s==`string`&&s.includes(`int`)?`integer`:`number`;let d=typeof u==`number`&&u>=(a??-1/0),f=typeof l==`number`&&l<=(o??1/0),p=t.target===`draft-04`||t.target===`openapi-3.0`;d?p?(i.minimum=u,i.exclusiveMinimum=!0):i.exclusiveMinimum=u:typeof a==`number`&&(i.minimum=a),f?p?(i.maximum=l,i.exclusiveMaximum=!0):i.exclusiveMaximum=l:typeof o==`number`&&(i.maximum=o),typeof c==`number`&&(i.multipleOf=c)},I$=(e,t,n,r)=>{n.type=`boolean`},L$=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`BigInt cannot be represented in JSON Schema`)},R$=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Symbols cannot be represented in JSON Schema`)},z$=(e,t,n,r)=>{t.target===`openapi-3.0`?(n.type=`string`,n.nullable=!0,n.enum=[null]):n.type=`null`},B$=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Undefined cannot be represented in JSON Schema`)},V$=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Void cannot be represented in JSON Schema`)},H$=(e,t,n,r)=>{n.not={}},U$=(e,t,n,r)=>{},W$=(e,t,n,r)=>{},G$=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Date cannot be represented in JSON Schema`)},K$=(e,t,n,r)=>{let i=e._zod.def,a=qH(i.entries);a.every(e=>typeof e==`number`)&&(n.type=`number`),a.every(e=>typeof e==`string`)&&(n.type=`string`),n.enum=a},q$=(e,t,n,r)=>{let i=e._zod.def,a=[];for(let e of i.values)if(e===void 0){if(t.unrepresentable===`throw`)throw Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof e==`bigint`){if(t.unrepresentable===`throw`)throw Error(`BigInt literals cannot be represented in JSON Schema`);a.push(Number(e))}else a.push(e);if(a.length!==0)if(a.length===1){let e=a[0];n.type=e===null?`null`:typeof e,t.target===`draft-04`||t.target===`openapi-3.0`?n.enum=[e]:n.const=e}else a.every(e=>typeof e==`number`)&&(n.type=`number`),a.every(e=>typeof e==`string`)&&(n.type=`string`),a.every(e=>typeof e==`boolean`)&&(n.type=`boolean`),a.every(e=>e===null)&&(n.type=`null`),n.enum=a},J$=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`NaN cannot be represented in JSON Schema`)},Y$=(e,t,n,r)=>{let i=n,a=e._zod.pattern;if(!a)throw Error(`Pattern not found in template literal`);i.type=`string`,i.pattern=a.source},X$=(e,t,n,r)=>{let i=n,a={type:`string`,format:`binary`,contentEncoding:`binary`},{minimum:o,maximum:s,mime:c}=e._zod.bag;o!==void 0&&(a.minLength=o),s!==void 0&&(a.maxLength=s),c?c.length===1?(a.contentMediaType=c[0],Object.assign(i,a)):(Object.assign(i,a),i.anyOf=c.map(e=>({contentMediaType:e}))):Object.assign(i,a)},Z$=(e,t,n,r)=>{n.type=`boolean`},Q$=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Custom types cannot be represented in JSON Schema`)},$$=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Function types cannot be represented in JSON Schema`)},e1=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Transforms cannot be represented in JSON Schema`)},t1=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Map cannot be represented in JSON Schema`)},n1=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Set cannot be represented in JSON Schema`)},r1=(e,t,n,r)=>{let i=n,a=e._zod.def,{minimum:o,maximum:s}=e._zod.bag;typeof o==`number`&&(i.minItems=o),typeof s==`number`&&(i.maxItems=s),i.type=`array`,i.items=T$(a.element,t,{...r,path:[...r.path,`items`]})},i1=(e,t,n,r)=>{let i=n,a=e._zod.def;i.type=`object`,i.properties={};let o=a.shape;for(let e in o)i.properties[e]=T$(o[e],t,{...r,path:[...r.path,`properties`,e]});let s=new Set(Object.keys(o)),c=new Set([...s].filter(e=>{let n=a.shape[e]._zod;return t.io===`input`?n.optin===void 0:n.optout===void 0}));c.size>0&&(i.required=Array.from(c)),a.catchall?._zod.def.type===`never`?i.additionalProperties=!1:a.catchall?a.catchall&&(i.additionalProperties=T$(a.catchall,t,{...r,path:[...r.path,`additionalProperties`]})):t.io===`output`&&(i.additionalProperties=!1)},a1=(e,t,n,r)=>{let i=e._zod.def,a=i.inclusive===!1,o=i.options.map((e,n)=>T$(e,t,{...r,path:[...r.path,a?`oneOf`:`anyOf`,n]}));a?n.oneOf=o:n.anyOf=o},o1=(e,t,n,r)=>{let i=e._zod.def,a=T$(i.left,t,{...r,path:[...r.path,`allOf`,0]}),o=T$(i.right,t,{...r,path:[...r.path,`allOf`,1]}),s=e=>`allOf`in e&&Object.keys(e).length===1;n.allOf=[...s(a)?a.allOf:[a],...s(o)?o.allOf:[o]]},s1=(e,t,n,r)=>{let i=n,a=e._zod.def;i.type=`array`;let o=t.target===`draft-2020-12`?`prefixItems`:`items`,s=t.target===`draft-2020-12`||t.target===`openapi-3.0`?`items`:`additionalItems`,c=a.items.map((e,n)=>T$(e,t,{...r,path:[...r.path,o,n]})),l=a.rest?T$(a.rest,t,{...r,path:[...r.path,s,...t.target===`openapi-3.0`?[a.items.length]:[]]}):null;t.target===`draft-2020-12`?(i.prefixItems=c,l&&(i.items=l)):t.target===`openapi-3.0`?(i.items={anyOf:c},l&&i.items.anyOf.push(l),i.minItems=c.length,l||(i.maxItems=c.length)):(i.items=c,l&&(i.additionalItems=l));let{minimum:u,maximum:d}=e._zod.bag;typeof u==`number`&&(i.minItems=u),typeof d==`number`&&(i.maxItems=d)},c1=(e,t,n,r)=>{let i=n,a=e._zod.def;i.type=`object`;let o=a.keyType,s=o._zod.bag?.patterns;if(a.mode===`loose`&&s&&s.size>0){let e=T$(a.valueType,t,{...r,path:[...r.path,`patternProperties`,`*`]});i.patternProperties={};for(let t of s)i.patternProperties[t.source]=e}else(t.target===`draft-07`||t.target===`draft-2020-12`)&&(i.propertyNames=T$(a.keyType,t,{...r,path:[...r.path,`propertyNames`]})),i.additionalProperties=T$(a.valueType,t,{...r,path:[...r.path,`additionalProperties`]});let c=o._zod.values;if(c){let e=[...c].filter(e=>typeof e==`string`||typeof e==`number`);e.length>0&&(i.required=e)}},l1=(e,t,n,r)=>{let i=e._zod.def,a=T$(i.innerType,t,r),o=t.seen.get(e);t.target===`openapi-3.0`?(o.ref=i.innerType,n.nullable=!0):n.anyOf=[a,{type:`null`}]},u1=(e,t,n,r)=>{let i=e._zod.def;T$(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},d1=(e,t,n,r)=>{let i=e._zod.def;T$(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,n.default=JSON.parse(JSON.stringify(i.defaultValue))},f1=(e,t,n,r)=>{let i=e._zod.def;T$(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,t.io===`input`&&(n._prefault=JSON.parse(JSON.stringify(i.defaultValue)))},p1=(e,t,n,r)=>{let i=e._zod.def;T$(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType;let o;try{o=i.catchValue(void 0)}catch{throw Error(`Dynamic catch values are not supported in JSON Schema`)}n.default=o},m1=(e,t,n,r)=>{let i=e._zod.def,a=i.in._zod.traits.has(`$ZodTransform`),o=t.io===`input`?a?i.out:i.in:i.out;T$(o,t,r);let s=t.seen.get(e);s.ref=o},h1=(e,t,n,r)=>{let i=e._zod.def;T$(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,n.readOnly=!0},g1=(e,t,n,r)=>{let i=e._zod.def;T$(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},_1=(e,t,n,r)=>{let i=e._zod.def;T$(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},v1=(e,t,n,r)=>{let i=e._zod.innerType;T$(i,t,r);let a=t.seen.get(e);a.ref=i},y1={string:P$,number:F$,boolean:I$,bigint:L$,symbol:R$,null:z$,undefined:B$,void:V$,never:H$,any:U$,unknown:W$,date:G$,enum:K$,literal:q$,nan:J$,template_literal:Y$,file:X$,success:Z$,custom:Q$,function:$$,transform:e1,map:t1,set:n1,array:r1,object:i1,union:a1,intersection:o1,tuple:s1,record:c1,nullable:l1,nonoptional:u1,default:d1,prefault:f1,catch:p1,pipe:m1,readonly:h1,promise:g1,optional:_1,lazy:v1}})),x1,S1=o((()=>{b1(),j$(),x1=class{get metadataRegistry(){return this.ctx.metadataRegistry}get target(){return this.ctx.target}get unrepresentable(){return this.ctx.unrepresentable}get override(){return this.ctx.override}get io(){return this.ctx.io}get counter(){return this.ctx.counter}set counter(e){this.ctx.counter=e}get seen(){return this.ctx.seen}constructor(e){let t=e?.target??`draft-2020-12`;t===`draft-4`&&(t=`draft-04`),t===`draft-7`&&(t=`draft-07`),this.ctx=w$({processors:y1,target:t,...e?.metadata&&{metadata:e.metadata},...e?.unrepresentable&&{unrepresentable:e.unrepresentable},...e?.override&&{override:e.override},...e?.io&&{io:e.io}})}process(e,t={path:[],schemaPath:[]}){return T$(e,this.ctx,t)}emit(e,t){t&&(t.cycles&&(this.ctx.cycles=t.cycles),t.reused&&(this.ctx.reused=t.reused),t.external&&(this.ctx.external=t.external)),E$(this.ctx,e);let{"~standard":n,...r}=D$(this.ctx,e);return r}}})),C1=c({}),w1=o((()=>{})),T1=c({$ZodAny:()=>wq,$ZodArray:()=>kq,$ZodAsyncError:()=>LH,$ZodBase64:()=>dq,$ZodBase64URL:()=>fq,$ZodBigInt:()=>yq,$ZodBigIntFormat:()=>bq,$ZodBoolean:()=>vq,$ZodCIDRv4:()=>lq,$ZodCIDRv6:()=>uq,$ZodCUID:()=>ZK,$ZodCUID2:()=>QK,$ZodCatch:()=>Zq,$ZodCheck:()=>WG,$ZodCheckBigIntFormat:()=>XG,$ZodCheckEndsWith:()=>lK,$ZodCheckGreaterThan:()=>qG,$ZodCheckIncludes:()=>sK,$ZodCheckLengthEquals:()=>nK,$ZodCheckLessThan:()=>KG,$ZodCheckLowerCase:()=>aK,$ZodCheckMaxLength:()=>eK,$ZodCheckMaxSize:()=>ZG,$ZodCheckMimeType:()=>dK,$ZodCheckMinLength:()=>tK,$ZodCheckMinSize:()=>QG,$ZodCheckMultipleOf:()=>JG,$ZodCheckNumberFormat:()=>YG,$ZodCheckOverwrite:()=>fK,$ZodCheckProperty:()=>uK,$ZodCheckRegex:()=>iK,$ZodCheckSizeEquals:()=>$G,$ZodCheckStartsWith:()=>cK,$ZodCheckStringFormat:()=>rK,$ZodCheckUpperCase:()=>oK,$ZodCodec:()=>eJ,$ZodCustom:()=>sJ,$ZodCustomStringFormat:()=>hq,$ZodDate:()=>Oq,$ZodDefault:()=>qq,$ZodDiscriminatedUnion:()=>Pq,$ZodE164:()=>pq,$ZodEmail:()=>qK,$ZodEmoji:()=>YK,$ZodEncodeError:()=>RH,$ZodEnum:()=>Bq,$ZodError:()=>rW,$ZodExactOptional:()=>Gq,$ZodFile:()=>Hq,$ZodFunction:()=>iJ,$ZodGUID:()=>GK,$ZodIPv4:()=>oq,$ZodIPv6:()=>sq,$ZodISODate:()=>rq,$ZodISODateTime:()=>nq,$ZodISODuration:()=>aq,$ZodISOTime:()=>iq,$ZodIntersection:()=>Fq,$ZodJWT:()=>mq,$ZodKSUID:()=>tq,$ZodLazy:()=>oJ,$ZodLiteral:()=>Vq,$ZodMAC:()=>cq,$ZodMap:()=>Rq,$ZodNaN:()=>Qq,$ZodNanoID:()=>XK,$ZodNever:()=>Eq,$ZodNonOptional:()=>Yq,$ZodNull:()=>Cq,$ZodNullable:()=>Kq,$ZodNumber:()=>gq,$ZodNumberFormat:()=>_q,$ZodObject:()=>Aq,$ZodObjectJIT:()=>jq,$ZodOptional:()=>Wq,$ZodPipe:()=>$q,$ZodPrefault:()=>Jq,$ZodPreprocess:()=>tJ,$ZodPromise:()=>aJ,$ZodReadonly:()=>nJ,$ZodRealError:()=>iW,$ZodRecord:()=>Lq,$ZodRegistry:()=>pZ,$ZodSet:()=>zq,$ZodString:()=>UK,$ZodStringFormat:()=>WK,$ZodSuccess:()=>Xq,$ZodSymbol:()=>xq,$ZodTemplateLiteral:()=>rJ,$ZodTransform:()=>Uq,$ZodTuple:()=>Iq,$ZodType:()=>HK,$ZodULID:()=>$K,$ZodURL:()=>JK,$ZodUUID:()=>KK,$ZodUndefined:()=>Sq,$ZodUnion:()=>Mq,$ZodUnknown:()=>Tq,$ZodVoid:()=>Dq,$ZodXID:()=>eq,$ZodXor:()=>Nq,$brand:()=>IH,$constructor:()=>q,$input:()=>fZ,$output:()=>dZ,Doc:()=>mK,JSONSchema:()=>C1,JSONSchemaGenerator:()=>x1,NEVER:()=>FH,TimePrecision:()=>S$,_any:()=>sQ,_array:()=>UQ,_base64:()=>LZ,_base64url:()=>RZ,_bigint:()=>eQ,_boolean:()=>QZ,_catch:()=>c$,_check:()=>_$,_cidrv4:()=>FZ,_cidrv6:()=>IZ,_coercedBigint:()=>tQ,_coercedBoolean:()=>$Z,_coercedDate:()=>fQ,_coercedNumber:()=>KZ,_coercedString:()=>_Z,_cuid:()=>DZ,_cuid2:()=>OZ,_custom:()=>m$,_date:()=>dQ,_decode:()=>gW,_decodeAsync:()=>bW,_default:()=>a$,_discriminatedUnion:()=>KQ,_e164:()=>zZ,_email:()=>vZ,_emoji:()=>TZ,_encode:()=>mW,_encodeAsync:()=>vW,_endsWith:()=>PQ,_enum:()=>QQ,_file:()=>t$,_float32:()=>JZ,_float64:()=>YZ,_gt:()=>gQ,_gte:()=>_Q,_guid:()=>yZ,_includes:()=>MQ,_int:()=>qZ,_int32:()=>XZ,_int64:()=>nQ,_intersection:()=>qQ,_ipv4:()=>MZ,_ipv6:()=>NZ,_isoDate:()=>HZ,_isoDateTime:()=>VZ,_isoDuration:()=>WZ,_isoTime:()=>UZ,_jwt:()=>BZ,_ksuid:()=>jZ,_lazy:()=>f$,_length:()=>OQ,_literal:()=>e$,_lowercase:()=>AQ,_lt:()=>mQ,_lte:()=>hQ,_mac:()=>PZ,_map:()=>XQ,_max:()=>hQ,_maxLength:()=>EQ,_maxSize:()=>CQ,_mime:()=>IQ,_min:()=>_Q,_minLength:()=>DQ,_minSize:()=>wQ,_multipleOf:()=>SQ,_nan:()=>pQ,_nanoid:()=>EZ,_nativeEnum:()=>$Q,_negative:()=>yQ,_never:()=>lQ,_nonnegative:()=>xQ,_nonoptional:()=>o$,_nonpositive:()=>bQ,_normalize:()=>RQ,_null:()=>oQ,_nullable:()=>i$,_number:()=>GZ,_optional:()=>r$,_overwrite:()=>LQ,_parse:()=>oW,_parseAsync:()=>cW,_pipe:()=>l$,_positive:()=>vQ,_promise:()=>p$,_property:()=>FQ,_readonly:()=>u$,_record:()=>YQ,_refine:()=>h$,_regex:()=>kQ,_safeDecode:()=>wW,_safeDecodeAsync:()=>OW,_safeEncode:()=>SW,_safeEncodeAsync:()=>EW,_safeParse:()=>uW,_safeParseAsync:()=>fW,_set:()=>ZQ,_size:()=>TQ,_slugify:()=>HQ,_startsWith:()=>NQ,_string:()=>gZ,_stringFormat:()=>x$,_stringbool:()=>b$,_success:()=>s$,_superRefine:()=>g$,_symbol:()=>iQ,_templateLiteral:()=>d$,_toLowerCase:()=>BQ,_toUpperCase:()=>VQ,_transform:()=>n$,_trim:()=>zQ,_tuple:()=>JQ,_uint32:()=>ZZ,_uint64:()=>rQ,_ulid:()=>kZ,_undefined:()=>aQ,_union:()=>WQ,_unknown:()=>cQ,_uppercase:()=>jQ,_url:()=>wZ,_uuid:()=>bZ,_uuidv4:()=>xZ,_uuidv6:()=>SZ,_uuidv7:()=>CZ,_void:()=>uQ,_xid:()=>AZ,_xor:()=>GQ,clone:()=>mU,config:()=>NH,createStandardJSONSchemaMethod:()=>A$,createToJSONSchemaMethod:()=>k$,decode:()=>_W,decodeAsync:()=>xW,describe:()=>v$,encode:()=>hW,encodeAsync:()=>yW,extractDefs:()=>E$,finalize:()=>D$,flattenError:()=>ZU,formatError:()=>QU,globalConfig:()=>zH,globalRegistry:()=>mZ,initializeContext:()=>w$,isValidBase64:()=>vK,isValidBase64URL:()=>yK,isValidJWT:()=>bK,locales:()=>sZ,meta:()=>y$,parse:()=>sW,parseAsync:()=>lW,prettifyError:()=>tW,process:()=>T$,regexes:()=>jW,registry:()=>lZ,safeDecode:()=>TW,safeDecodeAsync:()=>kW,safeEncode:()=>CW,safeEncodeAsync:()=>DW,safeParse:()=>dW,safeParseAsync:()=>pW,toDotPath:()=>eW,toJSONSchema:()=>M$,treeifyError:()=>$U,util:()=>VH,version:()=>gK}),E1=o((()=>{BH(),AW(),aW(),cJ(),pK(),_K(),XU(),HG(),cZ(),hZ(),hK(),C$(),j$(),b1(),S1(),w1()}));AW();function D1(e){return!!e._zod}function O1(e,t){return D1(e)?dW(e,t):e.safeParse(t)}function k1(e){if(!e)return;let t;if(t=D1(e)?e._zod?.def?.shape:e.shape,t){if(typeof t==`function`)try{return t()}catch{return}return t}}function A1(e){if(D1(e)){let t=e._zod?.def;if(t){if(t.value!==void 0)return t.value;if(Array.isArray(t.values)&&t.values.length>0)return t.values[0]}}let t=e._def;if(t){if(t.value!==void 0)return t.value;if(Array.isArray(t.values)&&t.values.length>0)return t.values[0]}let n=e.value;if(n!==void 0)return n}var j1=c({endsWith:()=>PQ,gt:()=>gQ,gte:()=>_Q,includes:()=>MQ,length:()=>OQ,lowercase:()=>AQ,lt:()=>mQ,lte:()=>hQ,maxLength:()=>EQ,maxSize:()=>CQ,mime:()=>IQ,minLength:()=>DQ,minSize:()=>wQ,multipleOf:()=>SQ,negative:()=>yQ,nonnegative:()=>xQ,nonpositive:()=>bQ,normalize:()=>RQ,overwrite:()=>LQ,positive:()=>vQ,property:()=>FQ,regex:()=>kQ,size:()=>TQ,slugify:()=>HQ,startsWith:()=>NQ,toLowerCase:()=>BQ,toUpperCase:()=>VQ,trim:()=>zQ,uppercase:()=>jQ}),M1=o((()=>{E1()})),N1=c({ZodISODate:()=>z1,ZodISODateTime:()=>R1,ZodISODuration:()=>V1,ZodISOTime:()=>B1,date:()=>F1,datetime:()=>P1,duration:()=>L1,time:()=>I1});function P1(e){return VZ(R1,e)}function F1(e){return HZ(z1,e)}function I1(e){return UZ(B1,e)}function L1(e){return WZ(V1,e)}var R1,z1,B1,V1,H1=o((()=>{E1(),l3(),R1=q(`ZodISODateTime`,(e,t)=>{nq.init(e,t),q2.init(e,t)}),z1=q(`ZodISODate`,(e,t)=>{rq.init(e,t),q2.init(e,t)}),B1=q(`ZodISOTime`,(e,t)=>{iq.init(e,t),q2.init(e,t)}),V1=q(`ZodISODuration`,(e,t)=>{aq.init(e,t),q2.init(e,t)})})),U1,W1,G1,K1=o((()=>{E1(),XU(),U1=(e,t)=>{rW.init(e,t),e.name=`ZodError`,Object.defineProperties(e,{format:{value:t=>QU(e,t)},flatten:{value:t=>ZU(e,t)},addIssue:{value:t=>{e.issues.push(t),e.message=JSON.stringify(e.issues,JH,2)}},addIssues:{value:t=>{e.issues.push(...t),e.message=JSON.stringify(e.issues,JH,2)}},isEmpty:{get(){return e.issues.length===0}}})},W1=q(`ZodError`,U1),G1=q(`ZodError`,U1,{Parent:Error})})),q1,J1,Y1,X1,Z1,Q1,$1,e0,t0,n0,r0,i0,a0=o((()=>{E1(),K1(),q1=oW(G1),J1=cW(G1),Y1=uW(G1),X1=fW(G1),Z1=mW(G1),Q1=gW(G1),$1=vW(G1),e0=bW(G1),t0=SW(G1),n0=wW(G1),r0=EW(G1),i0=OW(G1)})),o0=c({ZodAny:()=>C4,ZodArray:()=>O4,ZodBase64:()=>u4,ZodBase64URL:()=>d4,ZodBigInt:()=>v4,ZodBigIntFormat:()=>y4,ZodBoolean:()=>_4,ZodCIDRv4:()=>c4,ZodCIDRv6:()=>l4,ZodCUID:()=>e4,ZodCUID2:()=>t4,ZodCatch:()=>Y4,ZodCodec:()=>Q4,ZodCustom:()=>a3,ZodCustomStringFormat:()=>m4,ZodDate:()=>D4,ZodDefault:()=>G4,ZodDiscriminatedUnion:()=>M4,ZodE164:()=>f4,ZodEmail:()=>J2,ZodEmoji:()=>Q2,ZodEnum:()=>R4,ZodExactOptional:()=>U4,ZodFile:()=>B4,ZodFunction:()=>i3,ZodGUID:()=>Y2,ZodIPv4:()=>a4,ZodIPv6:()=>s4,ZodIntersection:()=>N4,ZodJWT:()=>p4,ZodKSUID:()=>i4,ZodLazy:()=>n3,ZodLiteral:()=>z4,ZodMAC:()=>o4,ZodMap:()=>I4,ZodNaN:()=>X4,ZodNanoID:()=>$2,ZodNever:()=>T4,ZodNonOptional:()=>q4,ZodNull:()=>S4,ZodNullable:()=>W4,ZodNumber:()=>h4,ZodNumberFormat:()=>g4,ZodObject:()=>k4,ZodOptional:()=>H4,ZodPipe:()=>Z4,ZodPrefault:()=>K4,ZodPreprocess:()=>$4,ZodPromise:()=>r3,ZodReadonly:()=>e3,ZodRecord:()=>F4,ZodSet:()=>L4,ZodString:()=>K2,ZodStringFormat:()=>q2,ZodSuccess:()=>J4,ZodSymbol:()=>b4,ZodTemplateLiteral:()=>t3,ZodTransform:()=>V4,ZodTuple:()=>P4,ZodType:()=>W2,ZodULID:()=>n4,ZodURL:()=>Z2,ZodUUID:()=>X2,ZodUndefined:()=>x4,ZodUnion:()=>A4,ZodUnknown:()=>w4,ZodVoid:()=>E4,ZodXID:()=>r4,ZodXor:()=>j4,_ZodString:()=>G2,_default:()=>S2,_function:()=>F2,any:()=>Y0,array:()=>e2,base64:()=>O0,base64url:()=>k0,bigint:()=>U0,boolean:()=>H0,catch:()=>E2,check:()=>I2,cidrv4:()=>E0,cidrv6:()=>D0,codec:()=>k2,cuid:()=>v0,cuid2:()=>y0,custom:()=>L2,date:()=>$0,describe:()=>o3,discriminatedUnion:()=>o2,e164:()=>A0,email:()=>c0,emoji:()=>g0,enum:()=>m2,exactOptional:()=>y2,file:()=>g2,float32:()=>R0,float64:()=>z0,function:()=>F2,guid:()=>l0,hash:()=>F0,hex:()=>P0,hostname:()=>N0,httpUrl:()=>h0,instanceof:()=>B2,int:()=>L0,int32:()=>B0,int64:()=>W0,intersection:()=>s2,invertCodec:()=>A2,ipv4:()=>C0,ipv6:()=>T0,json:()=>V2,jwt:()=>j0,keyof:()=>t2,ksuid:()=>S0,lazy:()=>N2,literal:()=>Q,looseObject:()=>r2,looseRecord:()=>d2,mac:()=>w0,map:()=>f2,meta:()=>s3,nan:()=>D2,nanoid:()=>_0,nativeEnum:()=>h2,never:()=>Z0,nonoptional:()=>w2,null:()=>J0,nullable:()=>b2,nullish:()=>x2,number:()=>I0,object:()=>Z,optional:()=>v2,partialRecord:()=>u2,pipe:()=>O2,prefault:()=>C2,preprocess:()=>H2,promise:()=>P2,readonly:()=>j2,record:()=>l2,refine:()=>R2,set:()=>p2,strictObject:()=>n2,string:()=>X,stringFormat:()=>M0,stringbool:()=>c3,success:()=>T2,superRefine:()=>z2,symbol:()=>K0,templateLiteral:()=>M2,transform:()=>_2,tuple:()=>c2,uint32:()=>V0,uint64:()=>G0,ulid:()=>b0,undefined:()=>q0,union:()=>i2,unknown:()=>X0,url:()=>m0,uuid:()=>u0,uuidv4:()=>d0,uuidv6:()=>f0,uuidv7:()=>p0,void:()=>Q0,xid:()=>x0,xor:()=>a2});function s0(e,t,n){let r=Object.getPrototypeOf(e),i=U2.get(r);if(i||(i=new Set,U2.set(r,i)),!i.has(t)){i.add(t);for(let e in n){let t=n[e];Object.defineProperty(r,e,{configurable:!0,enumerable:!1,get(){let n=t.bind(this);return Object.defineProperty(this,e,{configurable:!0,writable:!0,enumerable:!0,value:n}),n},set(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,enumerable:!0,value:t})}})}}}function X(e){return gZ(K2,e)}function c0(e){return vZ(J2,e)}function l0(e){return yZ(Y2,e)}function u0(e){return bZ(X2,e)}function d0(e){return xZ(X2,e)}function f0(e){return SZ(X2,e)}function p0(e){return CZ(X2,e)}function m0(e){return wZ(Z2,e)}function h0(e){return wZ(Z2,{protocol:pG,hostname:fG,...Y(e)})}function g0(e){return TZ(Q2,e)}function _0(e){return EZ($2,e)}function v0(e){return DZ(e4,e)}function y0(e){return OZ(t4,e)}function b0(e){return kZ(n4,e)}function x0(e){return AZ(r4,e)}function S0(e){return jZ(i4,e)}function C0(e){return MZ(a4,e)}function w0(e){return PZ(o4,e)}function T0(e){return NZ(s4,e)}function E0(e){return FZ(c4,e)}function D0(e){return IZ(l4,e)}function O0(e){return LZ(u4,e)}function k0(e){return RZ(d4,e)}function A0(e){return zZ(f4,e)}function j0(e){return BZ(p4,e)}function M0(e,t,n={}){return x$(m4,e,t,n)}function N0(e){return x$(m4,`hostname`,dG,e)}function P0(e){return x$(m4,`hex`,EG,e)}function F0(e,t){let n=`${e}_${t?.enc??`hex`}`,r=jW[n];if(!r)throw Error(`Unrecognized hash format: ${n}`);return x$(m4,n,r,t)}function I0(e){return GZ(h4,e)}function L0(e){return qZ(g4,e)}function R0(e){return JZ(g4,e)}function z0(e){return YZ(g4,e)}function B0(e){return XZ(g4,e)}function V0(e){return ZZ(g4,e)}function H0(e){return QZ(_4,e)}function U0(e){return eQ(v4,e)}function W0(e){return nQ(y4,e)}function G0(e){return rQ(y4,e)}function K0(e){return iQ(b4,e)}function q0(e){return aQ(x4,e)}function J0(e){return oQ(S4,e)}function Y0(){return sQ(C4)}function X0(){return cQ(w4)}function Z0(e){return lQ(T4,e)}function Q0(e){return uQ(E4,e)}function $0(e){return dQ(D4,e)}function e2(e,t){return UQ(O4,e,t)}function t2(e){let t=e._zod.def.shape;return m2(Object.keys(t))}function Z(e,t){let n={type:`object`,shape:e??{},...Y(t)};return new k4(n)}function n2(e,t){return new k4({type:`object`,shape:e,catchall:Z0(),...Y(t)})}function r2(e,t){return new k4({type:`object`,shape:e,catchall:X0(),...Y(t)})}function i2(e,t){return new A4({type:`union`,options:e,...Y(t)})}function a2(e,t){return new j4({type:`union`,options:e,inclusive:!1,...Y(t)})}function o2(e,t,n){return new M4({type:`union`,options:t,discriminator:e,...Y(n)})}function s2(e,t){return new N4({type:`intersection`,left:e,right:t})}function c2(e,t,n){let r=t instanceof HK;return new P4({type:`tuple`,items:e,rest:r?t:null,...Y(r?n:t)})}function l2(e,t,n){return!t||!t._zod?new F4({type:`record`,keyType:X(),valueType:e,...Y(t)}):new F4({type:`record`,keyType:e,valueType:t,...Y(n)})}function u2(e,t,n){let r=mU(e);return r._zod.values=void 0,new F4({type:`record`,keyType:r,valueType:t,...Y(n)})}function d2(e,t,n){return new F4({type:`record`,keyType:e,valueType:t,mode:`loose`,...Y(n)})}function f2(e,t,n){return new I4({type:`map`,keyType:e,valueType:t,...Y(n)})}function p2(e,t){return new L4({type:`set`,valueType:e,...Y(t)})}function m2(e,t){let n=Array.isArray(e)?Object.fromEntries(e.map(e=>[e,e])):e;return new R4({type:`enum`,entries:n,...Y(t)})}function h2(e,t){return new R4({type:`enum`,entries:e,...Y(t)})}function Q(e,t){return new z4({type:`literal`,values:Array.isArray(e)?e:[e],...Y(t)})}function g2(e){return t$(B4,e)}function _2(e){return new V4({type:`transform`,transform:e})}function v2(e){return new H4({type:`optional`,innerType:e})}function y2(e){return new U4({type:`optional`,innerType:e})}function b2(e){return new W4({type:`nullable`,innerType:e})}function x2(e){return v2(b2(e))}function S2(e,t){return new G4({type:`default`,innerType:e,get defaultValue(){return typeof t==`function`?t():dU(t)}})}function C2(e,t){return new K4({type:`prefault`,innerType:e,get defaultValue(){return typeof t==`function`?t():dU(t)}})}function w2(e,t){return new q4({type:`nonoptional`,innerType:e,...Y(t)})}function T2(e){return new J4({type:`success`,innerType:e})}function E2(e,t){return new Y4({type:`catch`,innerType:e,catchValue:typeof t==`function`?t:()=>t})}function D2(e){return pQ(X4,e)}function O2(e,t){return new Z4({type:`pipe`,in:e,out:t})}function k2(e,t,n){return new Q4({type:`pipe`,in:e,out:t,transform:n.decode,reverseTransform:n.encode})}function A2(e){let t=e._zod.def;return new Q4({type:`pipe`,in:t.out,out:t.in,transform:t.reverseTransform,reverseTransform:t.transform})}function j2(e){return new e3({type:`readonly`,innerType:e})}function M2(e,t){return new t3({type:`template_literal`,parts:e,...Y(t)})}function N2(e){return new n3({type:`lazy`,getter:e})}function P2(e){return new r3({type:`promise`,innerType:e})}function F2(e){return new i3({type:`function`,input:Array.isArray(e?.input)?c2(e?.input):e?.input??e2(X0()),output:e?.output??X0()})}function I2(e){let t=new WG({check:`custom`});return t._zod.check=e,t}function L2(e,t){return m$(a3,e??(()=>!0),t)}function R2(e,t={}){return h$(a3,e,t)}function z2(e,t){return g$(e,t)}function B2(e,t={}){let n=new a3({type:`custom`,check:`custom`,fn:t=>t instanceof e,abort:!0,...Y(t)});return n._zod.bag.Class=e,n._zod.check=t=>{t.value instanceof e||t.issues.push({code:`invalid_type`,expected:e.name,input:t.value,inst:n,path:[...n._zod.def.path??[]]})},n}function V2(e){let t=N2(()=>i2([X(e),I0(),H0(),J0(),e2(t),l2(X(),t)]));return t}function H2(e,t){return new $4({type:`pipe`,in:_2(e),out:t})}var U2,W2,G2,K2,q2,J2,Y2,X2,Z2,Q2,$2,e4,t4,n4,r4,i4,a4,o4,s4,c4,l4,u4,d4,f4,p4,m4,h4,g4,_4,v4,y4,b4,x4,S4,C4,w4,T4,E4,D4,O4,k4,A4,j4,M4,N4,P4,F4,I4,L4,R4,z4,B4,V4,H4,U4,W4,G4,K4,q4,J4,Y4,X4,Z4,Q4,$4,e3,t3,n3,r3,i3,a3,o3,s3,c3,l3=o((()=>{E1(),b1(),j$(),M1(),H1(),a0(),U2=new WeakMap,W2=q(`ZodType`,(e,t)=>(HK.init(e,t),Object.assign(e[`~standard`],{jsonSchema:{input:A$(e,`input`),output:A$(e,`output`)}}),e.toJSONSchema=k$(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.parse=(t,n)=>q1(e,t,n,{callee:e.parse}),e.safeParse=(t,n)=>Y1(e,t,n),e.parseAsync=async(t,n)=>J1(e,t,n,{callee:e.parseAsync}),e.safeParseAsync=async(t,n)=>X1(e,t,n),e.spa=e.safeParseAsync,e.encode=(t,n)=>Z1(e,t,n),e.decode=(t,n)=>Q1(e,t,n),e.encodeAsync=async(t,n)=>$1(e,t,n),e.decodeAsync=async(t,n)=>e0(e,t,n),e.safeEncode=(t,n)=>t0(e,t,n),e.safeDecode=(t,n)=>n0(e,t,n),e.safeEncodeAsync=async(t,n)=>r0(e,t,n),e.safeDecodeAsync=async(t,n)=>i0(e,t,n),s0(e,`ZodType`,{check(...e){let t=this.def;return this.clone(nU(t,{checks:[...t.checks??[],...e.map(e=>typeof e==`function`?{_zod:{check:e,def:{check:`custom`},onattach:[]}}:e)]}),{parent:!0})},with(...e){return this.check(...e)},clone(e,t){return mU(this,e,t)},brand(){return this},register(e,t){return e.add(this,t),this},refine(e,t){return this.check(R2(e,t))},superRefine(e,t){return this.check(z2(e,t))},overwrite(e){return this.check(LQ(e))},optional(){return v2(this)},exactOptional(){return y2(this)},nullable(){return b2(this)},nullish(){return v2(b2(this))},nonoptional(e){return w2(this,e)},array(){return e2(this)},or(e){return i2([this,e])},and(e){return s2(this,e)},transform(e){return O2(this,_2(e))},default(e){return S2(this,e)},prefault(e){return C2(this,e)},catch(e){return E2(this,e)},pipe(e){return O2(this,e)},readonly(){return j2(this)},describe(e){let t=this.clone();return mZ.add(t,{description:e}),t},meta(...e){if(e.length===0)return mZ.get(this);let t=this.clone();return mZ.add(t,e[0]),t},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(e){return e(this)}}),Object.defineProperty(e,"description",{get(){return mZ.get(e)?.description},configurable:!0}),e)),G2=q(`_ZodString`,(e,t)=>{UK.init(e,t),W2.init(e,t),e._zod.processJSONSchema=(t,n,r)=>P$(e,t,n,r);let n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,s0(e,`_ZodString`,{regex(...e){return this.check(kQ(...e))},includes(...e){return this.check(MQ(...e))},startsWith(...e){return this.check(NQ(...e))},endsWith(...e){return this.check(PQ(...e))},min(...e){return this.check(DQ(...e))},max(...e){return this.check(EQ(...e))},length(...e){return this.check(OQ(...e))},nonempty(...e){return this.check(DQ(1,...e))},lowercase(e){return this.check(AQ(e))},uppercase(e){return this.check(jQ(e))},trim(){return this.check(zQ())},normalize(...e){return this.check(RQ(...e))},toLowerCase(){return this.check(BQ())},toUpperCase(){return this.check(VQ())},slugify(){return this.check(HQ())}})}),K2=q(`ZodString`,(e,t)=>{UK.init(e,t),G2.init(e,t),e.email=t=>e.check(vZ(J2,t)),e.url=t=>e.check(wZ(Z2,t)),e.jwt=t=>e.check(BZ(p4,t)),e.emoji=t=>e.check(TZ(Q2,t)),e.guid=t=>e.check(yZ(Y2,t)),e.uuid=t=>e.check(bZ(X2,t)),e.uuidv4=t=>e.check(xZ(X2,t)),e.uuidv6=t=>e.check(SZ(X2,t)),e.uuidv7=t=>e.check(CZ(X2,t)),e.nanoid=t=>e.check(EZ($2,t)),e.guid=t=>e.check(yZ(Y2,t)),e.cuid=t=>e.check(DZ(e4,t)),e.cuid2=t=>e.check(OZ(t4,t)),e.ulid=t=>e.check(kZ(n4,t)),e.base64=t=>e.check(LZ(u4,t)),e.base64url=t=>e.check(RZ(d4,t)),e.xid=t=>e.check(AZ(r4,t)),e.ksuid=t=>e.check(jZ(i4,t)),e.ipv4=t=>e.check(MZ(a4,t)),e.ipv6=t=>e.check(NZ(s4,t)),e.cidrv4=t=>e.check(FZ(c4,t)),e.cidrv6=t=>e.check(IZ(l4,t)),e.e164=t=>e.check(zZ(f4,t)),e.datetime=t=>e.check(P1(t)),e.date=t=>e.check(F1(t)),e.time=t=>e.check(I1(t)),e.duration=t=>e.check(L1(t))}),q2=q(`ZodStringFormat`,(e,t)=>{WK.init(e,t),G2.init(e,t)}),J2=q(`ZodEmail`,(e,t)=>{qK.init(e,t),q2.init(e,t)}),Y2=q(`ZodGUID`,(e,t)=>{GK.init(e,t),q2.init(e,t)}),X2=q(`ZodUUID`,(e,t)=>{KK.init(e,t),q2.init(e,t)}),Z2=q(`ZodURL`,(e,t)=>{JK.init(e,t),q2.init(e,t)}),Q2=q(`ZodEmoji`,(e,t)=>{YK.init(e,t),q2.init(e,t)}),$2=q(`ZodNanoID`,(e,t)=>{XK.init(e,t),q2.init(e,t)}),e4=q(`ZodCUID`,(e,t)=>{ZK.init(e,t),q2.init(e,t)}),t4=q(`ZodCUID2`,(e,t)=>{QK.init(e,t),q2.init(e,t)}),n4=q(`ZodULID`,(e,t)=>{$K.init(e,t),q2.init(e,t)}),r4=q(`ZodXID`,(e,t)=>{eq.init(e,t),q2.init(e,t)}),i4=q(`ZodKSUID`,(e,t)=>{tq.init(e,t),q2.init(e,t)}),a4=q(`ZodIPv4`,(e,t)=>{oq.init(e,t),q2.init(e,t)}),o4=q(`ZodMAC`,(e,t)=>{cq.init(e,t),q2.init(e,t)}),s4=q(`ZodIPv6`,(e,t)=>{sq.init(e,t),q2.init(e,t)}),c4=q(`ZodCIDRv4`,(e,t)=>{lq.init(e,t),q2.init(e,t)}),l4=q(`ZodCIDRv6`,(e,t)=>{uq.init(e,t),q2.init(e,t)}),u4=q(`ZodBase64`,(e,t)=>{dq.init(e,t),q2.init(e,t)}),d4=q(`ZodBase64URL`,(e,t)=>{fq.init(e,t),q2.init(e,t)}),f4=q(`ZodE164`,(e,t)=>{pq.init(e,t),q2.init(e,t)}),p4=q(`ZodJWT`,(e,t)=>{mq.init(e,t),q2.init(e,t)}),m4=q(`ZodCustomStringFormat`,(e,t)=>{hq.init(e,t),q2.init(e,t)}),h4=q(`ZodNumber`,(e,t)=>{gq.init(e,t),W2.init(e,t),e._zod.processJSONSchema=(t,n,r)=>F$(e,t,n,r),s0(e,`ZodNumber`,{gt(e,t){return this.check(gQ(e,t))},gte(e,t){return this.check(_Q(e,t))},min(e,t){return this.check(_Q(e,t))},lt(e,t){return this.check(mQ(e,t))},lte(e,t){return this.check(hQ(e,t))},max(e,t){return this.check(hQ(e,t))},int(e){return this.check(L0(e))},safe(e){return this.check(L0(e))},positive(e){return this.check(gQ(0,e))},nonnegative(e){return this.check(_Q(0,e))},negative(e){return this.check(mQ(0,e))},nonpositive(e){return this.check(hQ(0,e))},multipleOf(e,t){return this.check(SQ(e,t))},step(e,t){return this.check(SQ(e,t))},finite(){return this}});let n=e._zod.bag;e.minValue=Math.max(n.minimum??-1/0,n.exclusiveMinimum??-1/0)??null,e.maxValue=Math.min(n.maximum??1/0,n.exclusiveMaximum??1/0)??null,e.isInt=(n.format??``).includes(`int`)||Number.isSafeInteger(n.multipleOf??.5),e.isFinite=!0,e.format=n.format??null}),g4=q(`ZodNumberFormat`,(e,t)=>{_q.init(e,t),h4.init(e,t)}),_4=q(`ZodBoolean`,(e,t)=>{vq.init(e,t),W2.init(e,t),e._zod.processJSONSchema=(t,n,r)=>I$(e,t,n,r)}),v4=q(`ZodBigInt`,(e,t)=>{yq.init(e,t),W2.init(e,t),e._zod.processJSONSchema=(t,n,r)=>L$(e,t,n,r),e.gte=(t,n)=>e.check(_Q(t,n)),e.min=(t,n)=>e.check(_Q(t,n)),e.gt=(t,n)=>e.check(gQ(t,n)),e.gte=(t,n)=>e.check(_Q(t,n)),e.min=(t,n)=>e.check(_Q(t,n)),e.lt=(t,n)=>e.check(mQ(t,n)),e.lte=(t,n)=>e.check(hQ(t,n)),e.max=(t,n)=>e.check(hQ(t,n)),e.positive=t=>e.check(gQ(BigInt(0),t)),e.negative=t=>e.check(mQ(BigInt(0),t)),e.nonpositive=t=>e.check(hQ(BigInt(0),t)),e.nonnegative=t=>e.check(_Q(BigInt(0),t)),e.multipleOf=(t,n)=>e.check(SQ(t,n));let n=e._zod.bag;e.minValue=n.minimum??null,e.maxValue=n.maximum??null,e.format=n.format??null}),y4=q(`ZodBigIntFormat`,(e,t)=>{bq.init(e,t),v4.init(e,t)}),b4=q(`ZodSymbol`,(e,t)=>{xq.init(e,t),W2.init(e,t),e._zod.processJSONSchema=(t,n,r)=>R$(e,t,n,r)}),x4=q(`ZodUndefined`,(e,t)=>{Sq.init(e,t),W2.init(e,t),e._zod.processJSONSchema=(t,n,r)=>B$(e,t,n,r)}),S4=q(`ZodNull`,(e,t)=>{Cq.init(e,t),W2.init(e,t),e._zod.processJSONSchema=(t,n,r)=>z$(e,t,n,r)}),C4=q(`ZodAny`,(e,t)=>{wq.init(e,t),W2.init(e,t),e._zod.processJSONSchema=(t,n,r)=>U$(e,t,n,r)}),w4=q(`ZodUnknown`,(e,t)=>{Tq.init(e,t),W2.init(e,t),e._zod.processJSONSchema=(t,n,r)=>W$(e,t,n,r)}),T4=q(`ZodNever`,(e,t)=>{Eq.init(e,t),W2.init(e,t),e._zod.processJSONSchema=(t,n,r)=>H$(e,t,n,r)}),E4=q(`ZodVoid`,(e,t)=>{Dq.init(e,t),W2.init(e,t),e._zod.processJSONSchema=(t,n,r)=>V$(e,t,n,r)}),D4=q(`ZodDate`,(e,t)=>{Oq.init(e,t),W2.init(e,t),e._zod.processJSONSchema=(t,n,r)=>G$(e,t,n,r),e.min=(t,n)=>e.check(_Q(t,n)),e.max=(t,n)=>e.check(hQ(t,n));let n=e._zod.bag;e.minDate=n.minimum?new Date(n.minimum):null,e.maxDate=n.maximum?new Date(n.maximum):null}),O4=q(`ZodArray`,(e,t)=>{kq.init(e,t),W2.init(e,t),e._zod.processJSONSchema=(t,n,r)=>r1(e,t,n,r),e.element=t.element,s0(e,`ZodArray`,{min(e,t){return this.check(DQ(e,t))},nonempty(e){return this.check(DQ(1,e))},max(e,t){return this.check(EQ(e,t))},length(e,t){return this.check(OQ(e,t))},unwrap(){return this.element}})}),k4=q(`ZodObject`,(e,t)=>{jq.init(e,t),W2.init(e,t),e._zod.processJSONSchema=(t,n,r)=>i1(e,t,n,r),$H(e,`shape`,()=>t.shape),s0(e,`ZodObject`,{keyof(){return m2(Object.keys(this._zod.def.shape))},catchall(e){return this.clone({...this._zod.def,catchall:e})},passthrough(){return this.clone({...this._zod.def,catchall:X0()})},loose(){return this.clone({...this._zod.def,catchall:X0()})},strict(){return this.clone({...this._zod.def,catchall:Z0()})},strip(){return this.clone({...this._zod.def,catchall:void 0})},extend(e){return bU(this,e)},safeExtend(e){return xU(this,e)},merge(e){return SU(this,e)},pick(e){return vU(this,e)},omit(e){return yU(this,e)},partial(...e){return CU(H4,this,e[0])},required(...e){return wU(q4,this,e[0])}})}),A4=q(`ZodUnion`,(e,t)=>{Mq.init(e,t),W2.init(e,t),e._zod.processJSONSchema=(t,n,r)=>a1(e,t,n,r),e.options=t.options}),j4=q(`ZodXor`,(e,t)=>{A4.init(e,t),Nq.init(e,t),e._zod.processJSONSchema=(t,n,r)=>a1(e,t,n,r),e.options=t.options}),M4=q(`ZodDiscriminatedUnion`,(e,t)=>{A4.init(e,t),Pq.init(e,t)}),N4=q(`ZodIntersection`,(e,t)=>{Fq.init(e,t),W2.init(e,t),e._zod.processJSONSchema=(t,n,r)=>o1(e,t,n,r)}),P4=q(`ZodTuple`,(e,t)=>{Iq.init(e,t),W2.init(e,t),e._zod.processJSONSchema=(t,n,r)=>s1(e,t,n,r),e.rest=t=>e.clone({...e._zod.def,rest:t})}),F4=q(`ZodRecord`,(e,t)=>{Lq.init(e,t),W2.init(e,t),e._zod.processJSONSchema=(t,n,r)=>c1(e,t,n,r),e.keyType=t.keyType,e.valueType=t.valueType}),I4=q(`ZodMap`,(e,t)=>{Rq.init(e,t),W2.init(e,t),e._zod.processJSONSchema=(t,n,r)=>t1(e,t,n,r),e.keyType=t.keyType,e.valueType=t.valueType,e.min=(...t)=>e.check(wQ(...t)),e.nonempty=t=>e.check(wQ(1,t)),e.max=(...t)=>e.check(CQ(...t)),e.size=(...t)=>e.check(TQ(...t))}),L4=q(`ZodSet`,(e,t)=>{zq.init(e,t),W2.init(e,t),e._zod.processJSONSchema=(t,n,r)=>n1(e,t,n,r),e.min=(...t)=>e.check(wQ(...t)),e.nonempty=t=>e.check(wQ(1,t)),e.max=(...t)=>e.check(CQ(...t)),e.size=(...t)=>e.check(TQ(...t))}),R4=q(`ZodEnum`,(e,t)=>{Bq.init(e,t),W2.init(e,t),e._zod.processJSONSchema=(t,n,r)=>K$(e,t,n,r),e.enum=t.entries,e.options=Object.values(t.entries);let n=new Set(Object.keys(t.entries));e.extract=(e,r)=>{let i={};for(let r of e)if(n.has(r))i[r]=t.entries[r];else throw Error(`Key ${r} not found in enum`);return new R4({...t,checks:[],...Y(r),entries:i})},e.exclude=(e,r)=>{let i={...t.entries};for(let t of e)if(n.has(t))delete i[t];else throw Error(`Key ${t} not found in enum`);return new R4({...t,checks:[],...Y(r),entries:i})}}),z4=q(`ZodLiteral`,(e,t)=>{Vq.init(e,t),W2.init(e,t),e._zod.processJSONSchema=(t,n,r)=>q$(e,t,n,r),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if(t.values.length>1)throw Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})}),B4=q(`ZodFile`,(e,t)=>{Hq.init(e,t),W2.init(e,t),e._zod.processJSONSchema=(t,n,r)=>X$(e,t,n,r),e.min=(t,n)=>e.check(wQ(t,n)),e.max=(t,n)=>e.check(CQ(t,n)),e.mime=(t,n)=>e.check(IQ(Array.isArray(t)?t:[t],n))}),V4=q(`ZodTransform`,(e,t)=>{Uq.init(e,t),W2.init(e,t),e._zod.processJSONSchema=(t,n,r)=>e1(e,t,n,r),e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new RH(e.constructor.name);n.addIssue=r=>{if(typeof r==`string`)n.issues.push(NU(r,n.value,t));else{let t=r;t.fatal&&(t.continue=!1),t.code??=`custom`,t.input??=n.value,t.inst??=e,n.issues.push(NU(t))}};let i=t.transform(n.value,n);return i instanceof Promise?i.then(e=>(n.value=e,n.fallback=!0,n)):(n.value=i,n.fallback=!0,n)}}),H4=q(`ZodOptional`,(e,t)=>{Wq.init(e,t),W2.init(e,t),e._zod.processJSONSchema=(t,n,r)=>_1(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),U4=q(`ZodExactOptional`,(e,t)=>{Gq.init(e,t),W2.init(e,t),e._zod.processJSONSchema=(t,n,r)=>_1(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),W4=q(`ZodNullable`,(e,t)=>{Kq.init(e,t),W2.init(e,t),e._zod.processJSONSchema=(t,n,r)=>l1(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),G4=q(`ZodDefault`,(e,t)=>{qq.init(e,t),W2.init(e,t),e._zod.processJSONSchema=(t,n,r)=>d1(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap}),K4=q(`ZodPrefault`,(e,t)=>{Jq.init(e,t),W2.init(e,t),e._zod.processJSONSchema=(t,n,r)=>f1(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),q4=q(`ZodNonOptional`,(e,t)=>{Yq.init(e,t),W2.init(e,t),e._zod.processJSONSchema=(t,n,r)=>u1(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),J4=q(`ZodSuccess`,(e,t)=>{Xq.init(e,t),W2.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Z$(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),Y4=q(`ZodCatch`,(e,t)=>{Zq.init(e,t),W2.init(e,t),e._zod.processJSONSchema=(t,n,r)=>p1(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap}),X4=q(`ZodNaN`,(e,t)=>{Qq.init(e,t),W2.init(e,t),e._zod.processJSONSchema=(t,n,r)=>J$(e,t,n,r)}),Z4=q(`ZodPipe`,(e,t)=>{$q.init(e,t),W2.init(e,t),e._zod.processJSONSchema=(t,n,r)=>m1(e,t,n,r),e.in=t.in,e.out=t.out}),Q4=q(`ZodCodec`,(e,t)=>{Z4.init(e,t),eJ.init(e,t)}),$4=q(`ZodPreprocess`,(e,t)=>{Z4.init(e,t),tJ.init(e,t)}),e3=q(`ZodReadonly`,(e,t)=>{nJ.init(e,t),W2.init(e,t),e._zod.processJSONSchema=(t,n,r)=>h1(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),t3=q(`ZodTemplateLiteral`,(e,t)=>{rJ.init(e,t),W2.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Y$(e,t,n,r)}),n3=q(`ZodLazy`,(e,t)=>{oJ.init(e,t),W2.init(e,t),e._zod.processJSONSchema=(t,n,r)=>v1(e,t,n,r),e.unwrap=()=>e._zod.def.getter()}),r3=q(`ZodPromise`,(e,t)=>{aJ.init(e,t),W2.init(e,t),e._zod.processJSONSchema=(t,n,r)=>g1(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),i3=q(`ZodFunction`,(e,t)=>{iJ.init(e,t),W2.init(e,t),e._zod.processJSONSchema=(t,n,r)=>$$(e,t,n,r)}),a3=q(`ZodCustom`,(e,t)=>{sJ.init(e,t),W2.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Q$(e,t,n,r)}),o3=v$,s3=y$,c3=(...e)=>b$({Codec:Q4,Boolean:_4,String:K2},...e)}));function u3(e){NH({customError:e})}function d3(){return NH().customError}var f3,p3,m3=o((()=>{E1(),f3={invalid_type:`invalid_type`,too_big:`too_big`,too_small:`too_small`,invalid_format:`invalid_format`,not_multiple_of:`not_multiple_of`,unrecognized_keys:`unrecognized_keys`,invalid_union:`invalid_union`,invalid_key:`invalid_key`,invalid_element:`invalid_element`,invalid_value:`invalid_value`,custom:`custom`},p3||={}}));function h3(e,t){let n=e.$schema;return n===`https://json-schema.org/draft/2020-12/schema`?`draft-2020-12`:n===`http://json-schema.org/draft-07/schema#`?`draft-7`:n===`http://json-schema.org/draft-04/schema#`?`draft-4`:t??`draft-2020-12`}function g3(e,t){if(!e.startsWith(`#`))throw Error(`External $ref is not supported, only local refs (#/...) are allowed`);let n=e.slice(1).split(`/`).filter(Boolean);if(n.length===0)return t.rootSchema;let r=t.version===`draft-2020-12`?`$defs`:`definitions`;if(n[0]===r){let r=n[1];if(!r||!t.defs[r])throw Error(`Reference not found: ${e}`);return t.defs[r]}throw Error(`Reference not found: ${e}`)}function _3(e,t){if(e.not!==void 0){if(typeof e.not==`object`&&Object.keys(e.not).length===0)return $.never();throw Error(`not is not supported in Zod (except { not: {} } for never)`)}if(e.unevaluatedItems!==void 0)throw Error(`unevaluatedItems is not supported`);if(e.unevaluatedProperties!==void 0)throw Error(`unevaluatedProperties is not supported`);if(e.if!==void 0||e.then!==void 0||e.else!==void 0)throw Error(`Conditional schemas (if/then/else) are not supported`);if(e.dependentSchemas!==void 0||e.dependentRequired!==void 0)throw Error(`dependentSchemas and dependentRequired are not supported`);if(e.$ref){let n=e.$ref;if(t.refs.has(n))return t.refs.get(n);if(t.processing.has(n))return $.lazy(()=>{if(!t.refs.has(n))throw Error(`Circular reference not resolved: ${n}`);return t.refs.get(n)});t.processing.add(n);let r=v3(g3(n,t),t);return t.refs.set(n,r),t.processing.delete(n),r}if(e.enum!==void 0){let n=e.enum;if(t.version===`openapi-3.0`&&e.nullable===!0&&n.length===1&&n[0]===null)return $.null();if(n.length===0)return $.never();if(n.length===1)return $.literal(n[0]);if(n.every(e=>typeof e==`string`))return $.enum(n);let r=n.map(e=>$.literal(e));return r.length<2?r[0]:$.union([r[0],r[1],...r.slice(2)])}if(e.const!==void 0)return $.literal(e.const);let n=e.type;if(Array.isArray(n)){let r=n.map(n=>_3({...e,type:n},t));return r.length===0?$.never():r.length===1?r[0]:$.union(r)}if(!n)return $.any();let r;switch(n){case`string`:{let t=$.string();if(e.format){let n=e.format;n===`email`?t=t.check($.email()):n===`uri`||n===`uri-reference`?t=t.check($.url()):n===`uuid`||n===`guid`?t=t.check($.uuid()):n===`date-time`?t=t.check($.iso.datetime()):n===`date`?t=t.check($.iso.date()):n===`time`?t=t.check($.iso.time()):n===`duration`?t=t.check($.iso.duration()):n===`ipv4`?t=t.check($.ipv4()):n===`ipv6`?t=t.check($.ipv6()):n===`mac`?t=t.check($.mac()):n===`cidr`?t=t.check($.cidrv4()):n===`cidr-v6`?t=t.check($.cidrv6()):n===`base64`?t=t.check($.base64()):n===`base64url`?t=t.check($.base64url()):n===`e164`?t=t.check($.e164()):n===`jwt`?t=t.check($.jwt()):n===`emoji`?t=t.check($.emoji()):n===`nanoid`?t=t.check($.nanoid()):n===`cuid`?t=t.check($.cuid()):n===`cuid2`?t=t.check($.cuid2()):n===`ulid`?t=t.check($.ulid()):n===`xid`?t=t.check($.xid()):n===`ksuid`&&(t=t.check($.ksuid()))}typeof e.minLength==`number`&&(t=t.min(e.minLength)),typeof e.maxLength==`number`&&(t=t.max(e.maxLength)),e.pattern&&(t=t.regex(new RegExp(e.pattern))),r=t;break}case`number`:case`integer`:{let t=n===`integer`?$.number().int():$.number();typeof e.minimum==`number`&&(t=t.min(e.minimum)),typeof e.maximum==`number`&&(t=t.max(e.maximum)),typeof e.exclusiveMinimum==`number`?t=t.gt(e.exclusiveMinimum):e.exclusiveMinimum===!0&&typeof e.minimum==`number`&&(t=t.gt(e.minimum)),typeof e.exclusiveMaximum==`number`?t=t.lt(e.exclusiveMaximum):e.exclusiveMaximum===!0&&typeof e.maximum==`number`&&(t=t.lt(e.maximum)),typeof e.multipleOf==`number`&&(t=t.multipleOf(e.multipleOf)),r=t;break}case`boolean`:r=$.boolean();break;case`null`:r=$.null();break;case`object`:{let n={},i=e.properties||{},a=new Set(e.required||[]);for(let[e,r]of Object.entries(i)){let i=v3(r,t);n[e]=a.has(e)?i:i.optional()}if(e.propertyNames){let i=v3(e.propertyNames,t),a=e.additionalProperties&&typeof e.additionalProperties==`object`?v3(e.additionalProperties,t):$.any();if(Object.keys(n).length===0){r=$.record(i,a);break}let o=$.object(n).passthrough(),s=$.looseRecord(i,a);r=$.intersection(o,s);break}if(e.patternProperties){let i=e.patternProperties,a=Object.keys(i),o=[];for(let e of a){let n=v3(i[e],t),r=$.string().regex(new RegExp(e));o.push($.looseRecord(r,n))}let s=[];if(Object.keys(n).length>0&&s.push($.object(n).passthrough()),s.push(...o),s.length===0)r=$.object({}).passthrough();else if(s.length===1)r=s[0];else{let e=$.intersection(s[0],s[1]);for(let t=2;tv3(e,t)),o=i&&typeof i==`object`&&!Array.isArray(i)?v3(i,t):void 0;r=o?$.tuple(a).rest(o):$.tuple(a),typeof e.minItems==`number`&&(r=r.check($.minLength(e.minItems))),typeof e.maxItems==`number`&&(r=r.check($.maxLength(e.maxItems)))}else if(Array.isArray(i)){let n=i.map(e=>v3(e,t)),a=e.additionalItems&&typeof e.additionalItems==`object`?v3(e.additionalItems,t):void 0;r=a?$.tuple(n).rest(a):$.tuple(n),typeof e.minItems==`number`&&(r=r.check($.minLength(e.minItems))),typeof e.maxItems==`number`&&(r=r.check($.maxLength(e.maxItems)))}else if(i!==void 0){let n=v3(i,t),a=$.array(n);typeof e.minItems==`number`&&(a=a.min(e.minItems)),typeof e.maxItems==`number`&&(a=a.max(e.maxItems)),r=a}else r=$.array($.any());break}default:throw Error(`Unsupported type: ${n}`)}return r}function v3(e,t){if(typeof e==`boolean`)return e?$.any():$.never();let n=_3(e,t),r=e.type||e.enum!==void 0||e.const!==void 0;if(e.anyOf&&Array.isArray(e.anyOf)){let i=e.anyOf.map(e=>v3(e,t)),a=$.union(i);n=r?$.intersection(n,a):a}if(e.oneOf&&Array.isArray(e.oneOf)){let i=e.oneOf.map(e=>v3(e,t)),a=$.xor(i);n=r?$.intersection(n,a):a}if(e.allOf&&Array.isArray(e.allOf))if(e.allOf.length===0)n=r?n:$.any();else{let i=r?n:v3(e.allOf[0],t),a=+!r;for(let n=a;n0&&t.registry.add(n,i),e.description&&(n=n.describe(e.description)),n}function y3(e,t){if(typeof e==`boolean`)return e?$.any():$.never();let n;try{n=JSON.parse(JSON.stringify(e))}catch{throw Error(`fromJSONSchema input is not valid JSON (possibly cyclic); use $defs/$ref for recursive schemas`)}let r={version:h3(n,t?.defaultTarget),defs:n.$defs||n.definitions||{},refs:new Map,processing:new Set,rootSchema:n,registry:t?.registry??mZ};return v3(n,r)}var $,b3,x3=o((()=>{hZ(),M1(),H1(),l3(),$={...o0,...j1,iso:N1},b3=new Set(`$schema.$ref.$defs.definitions.$id.id.$comment.$anchor.$vocabulary.$dynamicRef.$dynamicAnchor.type.enum.const.anyOf.oneOf.allOf.not.properties.required.additionalProperties.patternProperties.propertyNames.minProperties.maxProperties.items.prefixItems.additionalItems.minItems.maxItems.uniqueItems.contains.minContains.maxContains.minLength.maxLength.pattern.format.minimum.maximum.exclusiveMinimum.exclusiveMaximum.multipleOf.description.default.contentEncoding.contentMediaType.contentSchema.unevaluatedItems.unevaluatedProperties.if.then.else.dependentSchemas.dependentRequired.nullable.readOnly`.split(`.`))})),S3=c({bigint:()=>E3,boolean:()=>T3,date:()=>D3,number:()=>w3,string:()=>C3});function C3(e){return _Z(K2,e)}function w3(e){return KZ(h4,e)}function T3(e){return $Z(_4,e)}function E3(e){return tQ(v4,e)}function D3(e){return fQ(D4,e)}var O3=o((()=>{E1(),l3()})),k3=c({$brand:()=>IH,$input:()=>fZ,$output:()=>dZ,NEVER:()=>FH,TimePrecision:()=>S$,ZodAny:()=>C4,ZodArray:()=>O4,ZodBase64:()=>u4,ZodBase64URL:()=>d4,ZodBigInt:()=>v4,ZodBigIntFormat:()=>y4,ZodBoolean:()=>_4,ZodCIDRv4:()=>c4,ZodCIDRv6:()=>l4,ZodCUID:()=>e4,ZodCUID2:()=>t4,ZodCatch:()=>Y4,ZodCodec:()=>Q4,ZodCustom:()=>a3,ZodCustomStringFormat:()=>m4,ZodDate:()=>D4,ZodDefault:()=>G4,ZodDiscriminatedUnion:()=>M4,ZodE164:()=>f4,ZodEmail:()=>J2,ZodEmoji:()=>Q2,ZodEnum:()=>R4,ZodError:()=>W1,ZodExactOptional:()=>U4,ZodFile:()=>B4,ZodFirstPartyTypeKind:()=>p3,ZodFunction:()=>i3,ZodGUID:()=>Y2,ZodIPv4:()=>a4,ZodIPv6:()=>s4,ZodISODate:()=>z1,ZodISODateTime:()=>R1,ZodISODuration:()=>V1,ZodISOTime:()=>B1,ZodIntersection:()=>N4,ZodIssueCode:()=>f3,ZodJWT:()=>p4,ZodKSUID:()=>i4,ZodLazy:()=>n3,ZodLiteral:()=>z4,ZodMAC:()=>o4,ZodMap:()=>I4,ZodNaN:()=>X4,ZodNanoID:()=>$2,ZodNever:()=>T4,ZodNonOptional:()=>q4,ZodNull:()=>S4,ZodNullable:()=>W4,ZodNumber:()=>h4,ZodNumberFormat:()=>g4,ZodObject:()=>k4,ZodOptional:()=>H4,ZodPipe:()=>Z4,ZodPrefault:()=>K4,ZodPreprocess:()=>$4,ZodPromise:()=>r3,ZodReadonly:()=>e3,ZodRealError:()=>G1,ZodRecord:()=>F4,ZodSet:()=>L4,ZodString:()=>K2,ZodStringFormat:()=>q2,ZodSuccess:()=>J4,ZodSymbol:()=>b4,ZodTemplateLiteral:()=>t3,ZodTransform:()=>V4,ZodTuple:()=>P4,ZodType:()=>W2,ZodULID:()=>n4,ZodURL:()=>Z2,ZodUUID:()=>X2,ZodUndefined:()=>x4,ZodUnion:()=>A4,ZodUnknown:()=>w4,ZodVoid:()=>E4,ZodXID:()=>r4,ZodXor:()=>j4,_ZodString:()=>G2,_default:()=>S2,_function:()=>F2,any:()=>Y0,array:()=>e2,base64:()=>O0,base64url:()=>k0,bigint:()=>U0,boolean:()=>H0,catch:()=>E2,check:()=>I2,cidrv4:()=>E0,cidrv6:()=>D0,clone:()=>mU,codec:()=>k2,coerce:()=>S3,config:()=>NH,core:()=>T1,cuid:()=>v0,cuid2:()=>y0,custom:()=>L2,date:()=>$0,decode:()=>Q1,decodeAsync:()=>e0,describe:()=>o3,discriminatedUnion:()=>o2,e164:()=>A0,email:()=>c0,emoji:()=>g0,encode:()=>Z1,encodeAsync:()=>$1,endsWith:()=>PQ,enum:()=>m2,exactOptional:()=>y2,file:()=>g2,flattenError:()=>ZU,float32:()=>R0,float64:()=>z0,formatError:()=>QU,fromJSONSchema:()=>y3,function:()=>F2,getErrorMap:()=>d3,globalRegistry:()=>mZ,gt:()=>gQ,gte:()=>_Q,guid:()=>l0,hash:()=>F0,hex:()=>P0,hostname:()=>N0,httpUrl:()=>h0,includes:()=>MQ,instanceof:()=>B2,int:()=>L0,int32:()=>B0,int64:()=>W0,intersection:()=>s2,invertCodec:()=>A2,ipv4:()=>C0,ipv6:()=>T0,iso:()=>N1,json:()=>V2,jwt:()=>j0,keyof:()=>t2,ksuid:()=>S0,lazy:()=>N2,length:()=>OQ,literal:()=>Q,locales:()=>sZ,looseObject:()=>r2,looseRecord:()=>d2,lowercase:()=>AQ,lt:()=>mQ,lte:()=>hQ,mac:()=>w0,map:()=>f2,maxLength:()=>EQ,maxSize:()=>CQ,meta:()=>s3,mime:()=>IQ,minLength:()=>DQ,minSize:()=>wQ,multipleOf:()=>SQ,nan:()=>D2,nanoid:()=>_0,nativeEnum:()=>h2,negative:()=>yQ,never:()=>Z0,nonnegative:()=>xQ,nonoptional:()=>w2,nonpositive:()=>bQ,normalize:()=>RQ,null:()=>J0,nullable:()=>b2,nullish:()=>x2,number:()=>I0,object:()=>Z,optional:()=>v2,overwrite:()=>LQ,parse:()=>q1,parseAsync:()=>J1,partialRecord:()=>u2,pipe:()=>O2,positive:()=>vQ,prefault:()=>C2,preprocess:()=>H2,prettifyError:()=>tW,promise:()=>P2,property:()=>FQ,readonly:()=>j2,record:()=>l2,refine:()=>R2,regex:()=>kQ,regexes:()=>jW,registry:()=>lZ,safeDecode:()=>n0,safeDecodeAsync:()=>i0,safeEncode:()=>t0,safeEncodeAsync:()=>r0,safeParse:()=>Y1,safeParseAsync:()=>X1,set:()=>p2,setErrorMap:()=>u3,size:()=>TQ,slugify:()=>HQ,startsWith:()=>NQ,strictObject:()=>n2,string:()=>X,stringFormat:()=>M0,stringbool:()=>c3,success:()=>T2,superRefine:()=>z2,symbol:()=>K0,templateLiteral:()=>M2,toJSONSchema:()=>M$,toLowerCase:()=>BQ,toUpperCase:()=>VQ,transform:()=>_2,treeifyError:()=>$U,trim:()=>zQ,tuple:()=>c2,uint32:()=>V0,uint64:()=>G0,ulid:()=>b0,undefined:()=>q0,union:()=>i2,unknown:()=>X0,uppercase:()=>jQ,url:()=>m0,util:()=>VH,uuid:()=>u0,uuidv4:()=>d0,uuidv6:()=>f0,uuidv7:()=>p0,void:()=>Q0,xid:()=>x0,xor:()=>a2}),A3=o((()=>{E1(),l3(),M1(),K1(),a0(),m3(),zJ(),b1(),x3(),cZ(),H1(),O3(),NH(LJ())})),j3,M3=o((()=>{A3(),A3(),j3=k3})),N3=c({$brand:()=>IH,$input:()=>fZ,$output:()=>dZ,NEVER:()=>FH,TimePrecision:()=>S$,ZodAny:()=>C4,ZodArray:()=>O4,ZodBase64:()=>u4,ZodBase64URL:()=>d4,ZodBigInt:()=>v4,ZodBigIntFormat:()=>y4,ZodBoolean:()=>_4,ZodCIDRv4:()=>c4,ZodCIDRv6:()=>l4,ZodCUID:()=>e4,ZodCUID2:()=>t4,ZodCatch:()=>Y4,ZodCodec:()=>Q4,ZodCustom:()=>a3,ZodCustomStringFormat:()=>m4,ZodDate:()=>D4,ZodDefault:()=>G4,ZodDiscriminatedUnion:()=>M4,ZodE164:()=>f4,ZodEmail:()=>J2,ZodEmoji:()=>Q2,ZodEnum:()=>R4,ZodError:()=>W1,ZodExactOptional:()=>U4,ZodFile:()=>B4,ZodFirstPartyTypeKind:()=>p3,ZodFunction:()=>i3,ZodGUID:()=>Y2,ZodIPv4:()=>a4,ZodIPv6:()=>s4,ZodISODate:()=>z1,ZodISODateTime:()=>R1,ZodISODuration:()=>V1,ZodISOTime:()=>B1,ZodIntersection:()=>N4,ZodIssueCode:()=>f3,ZodJWT:()=>p4,ZodKSUID:()=>i4,ZodLazy:()=>n3,ZodLiteral:()=>z4,ZodMAC:()=>o4,ZodMap:()=>I4,ZodNaN:()=>X4,ZodNanoID:()=>$2,ZodNever:()=>T4,ZodNonOptional:()=>q4,ZodNull:()=>S4,ZodNullable:()=>W4,ZodNumber:()=>h4,ZodNumberFormat:()=>g4,ZodObject:()=>k4,ZodOptional:()=>H4,ZodPipe:()=>Z4,ZodPrefault:()=>K4,ZodPreprocess:()=>$4,ZodPromise:()=>r3,ZodReadonly:()=>e3,ZodRealError:()=>G1,ZodRecord:()=>F4,ZodSet:()=>L4,ZodString:()=>K2,ZodStringFormat:()=>q2,ZodSuccess:()=>J4,ZodSymbol:()=>b4,ZodTemplateLiteral:()=>t3,ZodTransform:()=>V4,ZodTuple:()=>P4,ZodType:()=>W2,ZodULID:()=>n4,ZodURL:()=>Z2,ZodUUID:()=>X2,ZodUndefined:()=>x4,ZodUnion:()=>A4,ZodUnknown:()=>w4,ZodVoid:()=>E4,ZodXID:()=>r4,ZodXor:()=>j4,_ZodString:()=>G2,_default:()=>S2,_function:()=>F2,any:()=>Y0,array:()=>e2,base64:()=>O0,base64url:()=>k0,bigint:()=>U0,boolean:()=>H0,catch:()=>E2,check:()=>I2,cidrv4:()=>E0,cidrv6:()=>D0,clone:()=>mU,codec:()=>k2,coerce:()=>S3,config:()=>NH,core:()=>T1,cuid:()=>v0,cuid2:()=>y0,custom:()=>L2,date:()=>$0,decode:()=>Q1,decodeAsync:()=>e0,default:()=>P3,describe:()=>o3,discriminatedUnion:()=>o2,e164:()=>A0,email:()=>c0,emoji:()=>g0,encode:()=>Z1,encodeAsync:()=>$1,endsWith:()=>PQ,enum:()=>m2,exactOptional:()=>y2,file:()=>g2,flattenError:()=>ZU,float32:()=>R0,float64:()=>z0,formatError:()=>QU,fromJSONSchema:()=>y3,function:()=>F2,getErrorMap:()=>d3,globalRegistry:()=>mZ,gt:()=>gQ,gte:()=>_Q,guid:()=>l0,hash:()=>F0,hex:()=>P0,hostname:()=>N0,httpUrl:()=>h0,includes:()=>MQ,instanceof:()=>B2,int:()=>L0,int32:()=>B0,int64:()=>W0,intersection:()=>s2,invertCodec:()=>A2,ipv4:()=>C0,ipv6:()=>T0,iso:()=>N1,json:()=>V2,jwt:()=>j0,keyof:()=>t2,ksuid:()=>S0,lazy:()=>N2,length:()=>OQ,literal:()=>Q,locales:()=>sZ,looseObject:()=>r2,looseRecord:()=>d2,lowercase:()=>AQ,lt:()=>mQ,lte:()=>hQ,mac:()=>w0,map:()=>f2,maxLength:()=>EQ,maxSize:()=>CQ,meta:()=>s3,mime:()=>IQ,minLength:()=>DQ,minSize:()=>wQ,multipleOf:()=>SQ,nan:()=>D2,nanoid:()=>_0,nativeEnum:()=>h2,negative:()=>yQ,never:()=>Z0,nonnegative:()=>xQ,nonoptional:()=>w2,nonpositive:()=>bQ,normalize:()=>RQ,null:()=>J0,nullable:()=>b2,nullish:()=>x2,number:()=>I0,object:()=>Z,optional:()=>v2,overwrite:()=>LQ,parse:()=>q1,parseAsync:()=>J1,partialRecord:()=>u2,pipe:()=>O2,positive:()=>vQ,prefault:()=>C2,preprocess:()=>H2,prettifyError:()=>tW,promise:()=>P2,property:()=>FQ,readonly:()=>j2,record:()=>l2,refine:()=>R2,regex:()=>kQ,regexes:()=>jW,registry:()=>lZ,safeDecode:()=>n0,safeDecodeAsync:()=>i0,safeEncode:()=>t0,safeEncodeAsync:()=>r0,safeParse:()=>Y1,safeParseAsync:()=>X1,set:()=>p2,setErrorMap:()=>u3,size:()=>TQ,slugify:()=>HQ,startsWith:()=>NQ,strictObject:()=>n2,string:()=>X,stringFormat:()=>M0,stringbool:()=>c3,success:()=>T2,superRefine:()=>z2,symbol:()=>K0,templateLiteral:()=>M2,toJSONSchema:()=>M$,toLowerCase:()=>BQ,toUpperCase:()=>VQ,transform:()=>_2,treeifyError:()=>$U,trim:()=>zQ,tuple:()=>c2,uint32:()=>V0,uint64:()=>G0,ulid:()=>b0,undefined:()=>q0,union:()=>i2,unknown:()=>X0,uppercase:()=>jQ,url:()=>m0,util:()=>VH,uuid:()=>u0,uuidv4:()=>d0,uuidv6:()=>f0,uuidv7:()=>p0,void:()=>Q0,xid:()=>x0,xor:()=>a2,z:()=>k3}),P3,F3=o((()=>{M3(),M3(),P3=j3}));F3();var I3=`io.modelcontextprotocol/related-task`,L3=L2(e=>e!==null&&(typeof e==`object`||typeof e==`function`)),R3=i2([X(),I0().int()]),z3=X();r2({ttl:I0().optional(),pollInterval:I0().optional()});var B3=Z({ttl:I0().optional()}),V3=Z({taskId:X()}),H3=r2({progressToken:R3.optional(),[I3]:V3.optional()}),U3=Z({_meta:H3.optional()}),W3=U3.extend({task:B3.optional()}),G3=e=>W3.safeParse(e).success,K3=Z({method:X(),params:U3.loose().optional()}),q3=Z({_meta:H3.optional()}),J3=Z({method:X(),params:q3.loose().optional()}),Y3=r2({_meta:H3.optional()}),X3=i2([X(),I0().int()]),Z3=Z({jsonrpc:Q(`2.0`),id:X3,...K3.shape}).strict(),Q3=e=>Z3.safeParse(e).success,$3=Z({jsonrpc:Q(`2.0`),...J3.shape}).strict(),e6=e=>$3.safeParse(e).success,t6=Z({jsonrpc:Q(`2.0`),id:X3,result:Y3}).strict(),n6=e=>t6.safeParse(e).success,r6;(function(e){e[e.ConnectionClosed=-32e3]=`ConnectionClosed`,e[e.RequestTimeout=-32001]=`RequestTimeout`,e[e.ParseError=-32700]=`ParseError`,e[e.InvalidRequest=-32600]=`InvalidRequest`,e[e.MethodNotFound=-32601]=`MethodNotFound`,e[e.InvalidParams=-32602]=`InvalidParams`,e[e.InternalError=-32603]=`InternalError`,e[e.UrlElicitationRequired=-32042]=`UrlElicitationRequired`})(r6||={});var i6=Z({jsonrpc:Q(`2.0`),id:X3.optional(),error:Z({code:I0().int(),message:X(),data:X0().optional()})}).strict(),a6=e=>i6.safeParse(e).success,o6=i2([Z3,$3,t6,i6]);i2([t6,i6]);var s6=Y3.strict(),c6=q3.extend({requestId:X3.optional(),reason:X().optional()}),l6=J3.extend({method:Q(`notifications/cancelled`),params:c6}),u6=Z({icons:e2(Z({src:X(),mimeType:X().optional(),sizes:e2(X()).optional(),theme:m2([`light`,`dark`]).optional()})).optional()}),d6=Z({name:X(),title:X().optional()}),f6=d6.extend({...d6.shape,...u6.shape,version:X(),websiteUrl:X().optional(),description:X().optional()}),p6=H2(e=>e&&typeof e==`object`&&!Array.isArray(e)&&Object.keys(e).length===0?{form:{}}:e,s2(Z({form:s2(Z({applyDefaults:H0().optional()}),l2(X(),X0())).optional(),url:L3.optional()}),l2(X(),X0()).optional())),m6=r2({list:L3.optional(),cancel:L3.optional(),requests:r2({sampling:r2({createMessage:L3.optional()}).optional(),elicitation:r2({create:L3.optional()}).optional()}).optional()}),h6=r2({list:L3.optional(),cancel:L3.optional(),requests:r2({tools:r2({call:L3.optional()}).optional()}).optional()}),g6=Z({experimental:l2(X(),L3).optional(),sampling:Z({context:L3.optional(),tools:L3.optional()}).optional(),elicitation:p6.optional(),roots:Z({listChanged:H0().optional()}).optional(),tasks:m6.optional(),extensions:l2(X(),L3).optional()}),_6=U3.extend({protocolVersion:X(),capabilities:g6,clientInfo:f6}),v6=K3.extend({method:Q(`initialize`),params:_6}),y6=Z({experimental:l2(X(),L3).optional(),logging:L3.optional(),completions:L3.optional(),prompts:Z({listChanged:H0().optional()}).optional(),resources:Z({subscribe:H0().optional(),listChanged:H0().optional()}).optional(),tools:Z({listChanged:H0().optional()}).optional(),tasks:h6.optional(),extensions:l2(X(),L3).optional()}),b6=Y3.extend({protocolVersion:X(),capabilities:y6,serverInfo:f6,instructions:X().optional()}),x6=J3.extend({method:Q(`notifications/initialized`),params:q3.optional()}),S6=K3.extend({method:Q(`ping`),params:U3.optional()}),C6=Z({progress:I0(),total:v2(I0()),message:v2(X())}),w6=Z({...q3.shape,...C6.shape,progressToken:R3}),T6=J3.extend({method:Q(`notifications/progress`),params:w6}),E6=U3.extend({cursor:z3.optional()}),D6=K3.extend({params:E6.optional()}),O6=Y3.extend({nextCursor:z3.optional()}),k6=m2([`working`,`input_required`,`completed`,`failed`,`cancelled`]),A6=Z({taskId:X(),status:k6,ttl:i2([I0(),J0()]),createdAt:X(),lastUpdatedAt:X(),pollInterval:v2(I0()),statusMessage:v2(X())}),j6=Y3.extend({task:A6}),M6=q3.merge(A6),N6=J3.extend({method:Q(`notifications/tasks/status`),params:M6}),P6=K3.extend({method:Q(`tasks/get`),params:U3.extend({taskId:X()})}),F6=Y3.merge(A6),I6=K3.extend({method:Q(`tasks/result`),params:U3.extend({taskId:X()})});Y3.loose();var L6=D6.extend({method:Q(`tasks/list`)}),R6=O6.extend({tasks:e2(A6)}),z6=K3.extend({method:Q(`tasks/cancel`),params:U3.extend({taskId:X()})}),B6=Y3.merge(A6),V6=Z({uri:X(),mimeType:v2(X()),_meta:l2(X(),X0()).optional()}),H6=V6.extend({text:X()}),U6=X().refine(e=>{try{return atob(e),!0}catch{return!1}},{message:`Invalid Base64 string`}),W6=V6.extend({blob:U6}),G6=m2([`user`,`assistant`]),K6=Z({audience:e2(G6).optional(),priority:I0().min(0).max(1).optional(),lastModified:P1({offset:!0}).optional()}),q6=Z({...d6.shape,...u6.shape,uri:X(),description:v2(X()),mimeType:v2(X()),size:v2(I0()),annotations:K6.optional(),_meta:v2(r2({}))}),J6=Z({...d6.shape,...u6.shape,uriTemplate:X(),description:v2(X()),mimeType:v2(X()),annotations:K6.optional(),_meta:v2(r2({}))}),Y6=D6.extend({method:Q(`resources/list`)}),X6=O6.extend({resources:e2(q6)}),Z6=D6.extend({method:Q(`resources/templates/list`)}),Q6=O6.extend({resourceTemplates:e2(J6)}),$6=U3.extend({uri:X()}),e8=$6,t8=K3.extend({method:Q(`resources/read`),params:e8}),n8=Y3.extend({contents:e2(i2([H6,W6]))}),r8=J3.extend({method:Q(`notifications/resources/list_changed`),params:q3.optional()}),i8=$6,a8=K3.extend({method:Q(`resources/subscribe`),params:i8}),o8=$6,s8=K3.extend({method:Q(`resources/unsubscribe`),params:o8}),c8=q3.extend({uri:X()}),l8=J3.extend({method:Q(`notifications/resources/updated`),params:c8}),u8=Z({name:X(),description:v2(X()),required:v2(H0())}),d8=Z({...d6.shape,...u6.shape,description:v2(X()),arguments:v2(e2(u8)),_meta:v2(r2({}))}),f8=D6.extend({method:Q(`prompts/list`)}),p8=O6.extend({prompts:e2(d8)}),m8=U3.extend({name:X(),arguments:l2(X(),X()).optional()}),h8=K3.extend({method:Q(`prompts/get`),params:m8}),g8=Z({type:Q(`text`),text:X(),annotations:K6.optional(),_meta:l2(X(),X0()).optional()}),_8=Z({type:Q(`image`),data:U6,mimeType:X(),annotations:K6.optional(),_meta:l2(X(),X0()).optional()}),v8=Z({type:Q(`audio`),data:U6,mimeType:X(),annotations:K6.optional(),_meta:l2(X(),X0()).optional()}),y8=Z({type:Q(`tool_use`),name:X(),id:X(),input:l2(X(),X0()),_meta:l2(X(),X0()).optional()}),b8=Z({type:Q(`resource`),resource:i2([H6,W6]),annotations:K6.optional(),_meta:l2(X(),X0()).optional()}),x8=q6.extend({type:Q(`resource_link`)}),S8=i2([g8,_8,v8,x8,b8]),C8=Z({role:G6,content:S8}),w8=Y3.extend({description:X().optional(),messages:e2(C8)}),T8=J3.extend({method:Q(`notifications/prompts/list_changed`),params:q3.optional()}),E8=Z({title:X().optional(),readOnlyHint:H0().optional(),destructiveHint:H0().optional(),idempotentHint:H0().optional(),openWorldHint:H0().optional()}),D8=Z({taskSupport:m2([`required`,`optional`,`forbidden`]).optional()}),O8=Z({...d6.shape,...u6.shape,description:X().optional(),inputSchema:Z({type:Q(`object`),properties:l2(X(),L3).optional(),required:e2(X()).optional()}).catchall(X0()),outputSchema:Z({type:Q(`object`),properties:l2(X(),L3).optional(),required:e2(X()).optional()}).catchall(X0()).optional(),annotations:E8.optional(),execution:D8.optional(),_meta:l2(X(),X0()).optional()}),k8=D6.extend({method:Q(`tools/list`)}),A8=O6.extend({tools:e2(O8)}),j8=Y3.extend({content:e2(S8).default([]),structuredContent:l2(X(),X0()).optional(),isError:H0().optional()});j8.or(Y3.extend({toolResult:X0()}));var M8=W3.extend({name:X(),arguments:l2(X(),X0()).optional()}),N8=K3.extend({method:Q(`tools/call`),params:M8}),P8=J3.extend({method:Q(`notifications/tools/list_changed`),params:q3.optional()});Z({autoRefresh:H0().default(!0),debounceMs:I0().int().nonnegative().default(300)});var F8=m2([`debug`,`info`,`notice`,`warning`,`error`,`critical`,`alert`,`emergency`]),I8=U3.extend({level:F8}),L8=K3.extend({method:Q(`logging/setLevel`),params:I8}),R8=q3.extend({level:F8,logger:X().optional(),data:X0()}),z8=J3.extend({method:Q(`notifications/message`),params:R8}),B8=Z({hints:e2(Z({name:X().optional()})).optional(),costPriority:I0().min(0).max(1).optional(),speedPriority:I0().min(0).max(1).optional(),intelligencePriority:I0().min(0).max(1).optional()}),V8=Z({mode:m2([`auto`,`required`,`none`]).optional()}),H8=Z({type:Q(`tool_result`),toolUseId:X().describe(`The unique identifier for the corresponding tool call.`),content:e2(S8).default([]),structuredContent:Z({}).loose().optional(),isError:H0().optional(),_meta:l2(X(),X0()).optional()}),U8=o2(`type`,[g8,_8,v8]),W8=o2(`type`,[g8,_8,v8,y8,H8]),G8=Z({role:G6,content:i2([W8,e2(W8)]),_meta:l2(X(),X0()).optional()}),K8=W3.extend({messages:e2(G8),modelPreferences:B8.optional(),systemPrompt:X().optional(),includeContext:m2([`none`,`thisServer`,`allServers`]).optional(),temperature:I0().optional(),maxTokens:I0().int(),stopSequences:e2(X()).optional(),metadata:L3.optional(),tools:e2(O8).optional(),toolChoice:V8.optional()}),q8=K3.extend({method:Q(`sampling/createMessage`),params:K8}),J8=Y3.extend({model:X(),stopReason:v2(m2([`endTurn`,`stopSequence`,`maxTokens`]).or(X())),role:G6,content:U8}),Y8=Y3.extend({model:X(),stopReason:v2(m2([`endTurn`,`stopSequence`,`maxTokens`,`toolUse`]).or(X())),role:G6,content:i2([W8,e2(W8)])}),X8=Z({type:Q(`boolean`),title:X().optional(),description:X().optional(),default:H0().optional()}),Z8=Z({type:Q(`string`),title:X().optional(),description:X().optional(),minLength:I0().optional(),maxLength:I0().optional(),format:m2([`email`,`uri`,`date`,`date-time`]).optional(),default:X().optional()}),Q8=Z({type:m2([`number`,`integer`]),title:X().optional(),description:X().optional(),minimum:I0().optional(),maximum:I0().optional(),default:I0().optional()}),$8=Z({type:Q(`string`),title:X().optional(),description:X().optional(),enum:e2(X()),default:X().optional()}),e5=Z({type:Q(`string`),title:X().optional(),description:X().optional(),oneOf:e2(Z({const:X(),title:X()})),default:X().optional()}),t5=i2([i2([Z({type:Q(`string`),title:X().optional(),description:X().optional(),enum:e2(X()),enumNames:e2(X()).optional(),default:X().optional()}),i2([$8,e5]),i2([Z({type:Q(`array`),title:X().optional(),description:X().optional(),minItems:I0().optional(),maxItems:I0().optional(),items:Z({type:Q(`string`),enum:e2(X())}),default:e2(X()).optional()}),Z({type:Q(`array`),title:X().optional(),description:X().optional(),minItems:I0().optional(),maxItems:I0().optional(),items:Z({anyOf:e2(Z({const:X(),title:X()}))}),default:e2(X()).optional()})])]),X8,Z8,Q8]),n5=i2([W3.extend({mode:Q(`form`).optional(),message:X(),requestedSchema:Z({type:Q(`object`),properties:l2(X(),t5),required:e2(X()).optional()})}),W3.extend({mode:Q(`url`),message:X(),elicitationId:X(),url:X().url()})]),r5=K3.extend({method:Q(`elicitation/create`),params:n5}),i5=q3.extend({elicitationId:X()}),a5=J3.extend({method:Q(`notifications/elicitation/complete`),params:i5}),o5=Y3.extend({action:m2([`accept`,`decline`,`cancel`]),content:H2(e=>e===null?void 0:e,l2(X(),i2([X(),I0(),H0(),e2(X())])).optional())}),s5=Z({type:Q(`ref/resource`),uri:X()}),c5=Z({type:Q(`ref/prompt`),name:X()}),l5=U3.extend({ref:i2([c5,s5]),argument:Z({name:X(),value:X()}),context:Z({arguments:l2(X(),X()).optional()}).optional()}),u5=K3.extend({method:Q(`completion/complete`),params:l5}),d5=Y3.extend({completion:r2({values:e2(X()).max(100),total:v2(I0().int()),hasMore:v2(H0())})}),f5=Z({uri:X().startsWith(`file://`),name:X().optional(),_meta:l2(X(),X0()).optional()}),p5=K3.extend({method:Q(`roots/list`),params:U3.optional()}),m5=Y3.extend({roots:e2(f5)}),h5=J3.extend({method:Q(`notifications/roots/list_changed`),params:q3.optional()});i2([S6,v6,u5,L8,h8,f8,Y6,Z6,t8,a8,s8,N8,k8,P6,I6,L6,z6]),i2([l6,T6,x6,h5,N6]),i2([s6,J8,Y8,o5,m5,F6,R6,j6]),i2([S6,q8,r5,p5,P6,I6,L6,z6]),i2([l6,T6,z8,l8,r8,P8,T8,N6,a5]),i2([s6,b6,d5,w8,p8,X6,Q6,n8,j8,A8,F6,R6,j6]);var g5=class e extends Error{constructor(e,t,n){super(`MCP error ${e}: ${t}`),this.code=e,this.data=n,this.name=`McpError`}static fromError(t,n,r){if(t===r6.UrlElicitationRequired&&r){let e=r;if(e.elicitations)return new _5(e.elicitations,n)}return new e(t,n,r)}},_5=class extends g5{constructor(e,t=`URL elicitation${e.length>1?`s`:``} required`){super(r6.UrlElicitationRequired,t,{elicitations:e})}get elicitations(){return this.data?.elicitations??[]}};function v5(e){return e===`completed`||e===`failed`||e===`cancelled`}function y5(e){let t=k1(e)?.method;if(!t)throw Error(`Schema is missing a method literal`);let n=A1(t);if(typeof n!=`string`)throw Error(`Schema method literal must be a string`);return n}function b5(e,t){let n=O1(e,t);if(!n.success)throw n.error;return n.data}var x5=class{constructor(e){this._options=e,this._requestMessageId=0,this._requestHandlers=new Map,this._requestHandlerAbortControllers=new Map,this._notificationHandlers=new Map,this._responseHandlers=new Map,this._progressHandlers=new Map,this._timeoutInfo=new Map,this._pendingDebouncedNotifications=new Set,this._taskProgressTokens=new Map,this._requestResolvers=new Map,this.setNotificationHandler(l6,e=>{this._oncancel(e)}),this.setNotificationHandler(T6,e=>{this._onprogress(e)}),this.setRequestHandler(S6,e=>({})),this._taskStore=e?.taskStore,this._taskMessageQueue=e?.taskMessageQueue,this._taskStore&&(this.setRequestHandler(P6,async(e,t)=>{let n=await this._taskStore.getTask(e.params.taskId,t.sessionId);if(!n)throw new g5(r6.InvalidParams,`Failed to retrieve task: Task not found`);return{...n}}),this.setRequestHandler(I6,async(e,t)=>{let n=async()=>{let r=e.params.taskId;if(this._taskMessageQueue){let e;for(;e=await this._taskMessageQueue.dequeue(r,t.sessionId);){if(e.type===`response`||e.type===`error`){let t=e.message,n=t.id,r=this._requestResolvers.get(n);if(r)if(this._requestResolvers.delete(n),e.type===`response`)r(t);else{let e=t;r(new g5(e.error.code,e.error.message,e.error.data))}else{let t=e.type===`response`?`Response`:`Error`;this._onerror(Error(`${t} handler missing for request ${n}`))}continue}await this._transport?.send(e.message,{relatedRequestId:t.requestId})}}let i=await this._taskStore.getTask(r,t.sessionId);if(!i)throw new g5(r6.InvalidParams,`Task not found: ${r}`);if(!v5(i.status))return await this._waitForTaskUpdate(r,t.signal),await n();if(v5(i.status)){let e=await this._taskStore.getTaskResult(r,t.sessionId);return this._clearTaskQueue(r),{...e,_meta:{...e._meta,[I3]:{taskId:r}}}}return await n()};return await n()}),this.setRequestHandler(L6,async(e,t)=>{try{let{tasks:n,nextCursor:r}=await this._taskStore.listTasks(e.params?.cursor,t.sessionId);return{tasks:n,nextCursor:r,_meta:{}}}catch(e){throw new g5(r6.InvalidParams,`Failed to list tasks: ${e instanceof Error?e.message:String(e)}`)}}),this.setRequestHandler(z6,async(e,t)=>{try{let n=await this._taskStore.getTask(e.params.taskId,t.sessionId);if(!n)throw new g5(r6.InvalidParams,`Task not found: ${e.params.taskId}`);if(v5(n.status))throw new g5(r6.InvalidParams,`Cannot cancel task in terminal status: ${n.status}`);await this._taskStore.updateTaskStatus(e.params.taskId,`cancelled`,`Client cancelled task execution.`,t.sessionId),this._clearTaskQueue(e.params.taskId);let r=await this._taskStore.getTask(e.params.taskId,t.sessionId);if(!r)throw new g5(r6.InvalidParams,`Task not found after cancellation: ${e.params.taskId}`);return{_meta:{},...r}}catch(e){throw e instanceof g5?e:new g5(r6.InvalidRequest,`Failed to cancel task: ${e instanceof Error?e.message:String(e)}`)}}))}async _oncancel(e){e.params.requestId&&this._requestHandlerAbortControllers.get(e.params.requestId)?.abort(e.params.reason)}_setupTimeout(e,t,n,r,i=!1){this._timeoutInfo.set(e,{timeoutId:setTimeout(r,t),startTime:Date.now(),timeout:t,maxTotalTimeout:n,resetTimeoutOnProgress:i,onTimeout:r})}_resetTimeout(e){let t=this._timeoutInfo.get(e);if(!t)return!1;let n=Date.now()-t.startTime;if(t.maxTotalTimeout&&n>=t.maxTotalTimeout)throw this._timeoutInfo.delete(e),g5.fromError(r6.RequestTimeout,`Maximum total timeout exceeded`,{maxTotalTimeout:t.maxTotalTimeout,totalElapsed:n});return clearTimeout(t.timeoutId),t.timeoutId=setTimeout(t.onTimeout,t.timeout),!0}_cleanupTimeout(e){let t=this._timeoutInfo.get(e);t&&(clearTimeout(t.timeoutId),this._timeoutInfo.delete(e))}async connect(e){if(this._transport)throw Error(`Already connected to a transport. Call close() before connecting to a new transport, or use a separate Protocol instance per connection.`);this._transport=e;let t=this.transport?.onclose;this._transport.onclose=()=>{t?.(),this._onclose()};let n=this.transport?.onerror;this._transport.onerror=e=>{n?.(e),this._onerror(e)};let r=this._transport?.onmessage;this._transport.onmessage=(e,t)=>{r?.(e,t),n6(e)||a6(e)?this._onresponse(e):Q3(e)?this._onrequest(e,t):e6(e)?this._onnotification(e):this._onerror(Error(`Unknown message type: ${JSON.stringify(e)}`))},await this._transport.start()}_onclose(){let e=this._responseHandlers;this._responseHandlers=new Map,this._progressHandlers.clear(),this._taskProgressTokens.clear(),this._pendingDebouncedNotifications.clear();for(let e of this._timeoutInfo.values())clearTimeout(e.timeoutId);this._timeoutInfo.clear();for(let e of this._requestHandlerAbortControllers.values())e.abort();this._requestHandlerAbortControllers.clear();let t=g5.fromError(r6.ConnectionClosed,`Connection closed`);this._transport=void 0,this.onclose?.();for(let n of e.values())n(t)}_onerror(e){this.onerror?.(e)}_onnotification(e){let t=this._notificationHandlers.get(e.method)??this.fallbackNotificationHandler;t!==void 0&&Promise.resolve().then(()=>t(e)).catch(e=>this._onerror(Error(`Uncaught error in notification handler: ${e}`)))}_onrequest(e,t){let n=this._requestHandlers.get(e.method)??this.fallbackRequestHandler,r=this._transport,i=e.params?._meta?.[I3]?.taskId;if(n===void 0){let t={jsonrpc:`2.0`,id:e.id,error:{code:r6.MethodNotFound,message:`Method not found`}};i&&this._taskMessageQueue?this._enqueueTaskMessage(i,{type:`error`,message:t,timestamp:Date.now()},r?.sessionId).catch(e=>this._onerror(Error(`Failed to enqueue error response: ${e}`))):r?.send(t).catch(e=>this._onerror(Error(`Failed to send an error response: ${e}`)));return}let a=new AbortController;this._requestHandlerAbortControllers.set(e.id,a);let o=G3(e.params)?e.params.task:void 0,s=this._taskStore?this.requestTaskStore(e,r?.sessionId):void 0,c={signal:a.signal,sessionId:r?.sessionId,_meta:e.params?._meta,sendNotification:async t=>{if(a.signal.aborted)return;let n={relatedRequestId:e.id};i&&(n.relatedTask={taskId:i}),await this.notification(t,n)},sendRequest:async(t,n,r)=>{if(a.signal.aborted)throw new g5(r6.ConnectionClosed,`Request was cancelled`);let o={...r,relatedRequestId:e.id};i&&!o.relatedTask&&(o.relatedTask={taskId:i});let c=o.relatedTask?.taskId??i;return c&&s&&await s.updateTaskStatus(c,`input_required`),await this.request(t,n,o)},authInfo:t?.authInfo,requestId:e.id,requestInfo:t?.requestInfo,taskId:i,taskStore:s,taskRequestedTtl:o?.ttl,closeSSEStream:t?.closeSSEStream,closeStandaloneSSEStream:t?.closeStandaloneSSEStream};Promise.resolve().then(()=>{o&&this.assertTaskHandlerCapability(e.method)}).then(()=>n(e,c)).then(async t=>{if(a.signal.aborted)return;let n={result:t,jsonrpc:`2.0`,id:e.id};i&&this._taskMessageQueue?await this._enqueueTaskMessage(i,{type:`response`,message:n,timestamp:Date.now()},r?.sessionId):await r?.send(n)},async t=>{if(a.signal.aborted)return;let n={jsonrpc:`2.0`,id:e.id,error:{code:Number.isSafeInteger(t.code)?t.code:r6.InternalError,message:t.message??`Internal error`,...t.data!==void 0&&{data:t.data}}};i&&this._taskMessageQueue?await this._enqueueTaskMessage(i,{type:`error`,message:n,timestamp:Date.now()},r?.sessionId):await r?.send(n)}).catch(e=>this._onerror(Error(`Failed to send response: ${e}`))).finally(()=>{this._requestHandlerAbortControllers.get(e.id)===a&&this._requestHandlerAbortControllers.delete(e.id)})}_onprogress(e){let{progressToken:t,...n}=e.params,r=Number(t),i=this._progressHandlers.get(r);if(!i){this._onerror(Error(`Received a progress notification for an unknown token: ${JSON.stringify(e)}`));return}let a=this._responseHandlers.get(r),o=this._timeoutInfo.get(r);if(o&&a&&o.resetTimeoutOnProgress)try{this._resetTimeout(r)}catch(e){this._responseHandlers.delete(r),this._progressHandlers.delete(r),this._cleanupTimeout(r),a(e);return}i(n)}_onresponse(e){let t=Number(e.id),n=this._requestResolvers.get(t);if(n){this._requestResolvers.delete(t),n6(e)?n(e):n(new g5(e.error.code,e.error.message,e.error.data));return}let r=this._responseHandlers.get(t);if(r===void 0){this._onerror(Error(`Received a response for an unknown message ID: ${JSON.stringify(e)}`));return}this._responseHandlers.delete(t),this._cleanupTimeout(t);let i=!1;if(n6(e)&&e.result&&typeof e.result==`object`){let n=e.result;if(n.task&&typeof n.task==`object`){let e=n.task;typeof e.taskId==`string`&&(i=!0,this._taskProgressTokens.set(e.taskId,t))}}i||this._progressHandlers.delete(t),n6(e)?r(e):r(g5.fromError(e.error.code,e.error.message,e.error.data))}get transport(){return this._transport}async close(){await this._transport?.close()}async*requestStream(e,t,n){let{task:r}=n??{};if(!r){try{yield{type:`result`,result:await this.request(e,t,n)}}catch(e){yield{type:`error`,error:e instanceof g5?e:new g5(r6.InternalError,String(e))}}return}let i;try{let r=await this.request(e,j6,n);if(r.task)i=r.task.taskId,yield{type:`taskCreated`,task:r.task};else throw new g5(r6.InternalError,`Task creation did not return a task`);for(;;){let e=await this.getTask({taskId:i},n);if(yield{type:`taskStatus`,task:e},v5(e.status)){e.status===`completed`?yield{type:`result`,result:await this.getTaskResult({taskId:i},t,n)}:e.status===`failed`?yield{type:`error`,error:new g5(r6.InternalError,`Task ${i} failed`)}:e.status===`cancelled`&&(yield{type:`error`,error:new g5(r6.InternalError,`Task ${i} was cancelled`)});return}if(e.status===`input_required`){yield{type:`result`,result:await this.getTaskResult({taskId:i},t,n)};return}let r=e.pollInterval??this._options?.defaultTaskPollInterval??1e3;await new Promise(e=>setTimeout(e,r)),n?.signal?.throwIfAborted()}}catch(e){yield{type:`error`,error:e instanceof g5?e:new g5(r6.InternalError,String(e))}}}request(e,t,n){let{relatedRequestId:r,resumptionToken:i,onresumptiontoken:a,task:o,relatedTask:s}=n??{};return new Promise((c,l)=>{let u=e=>{l(e)};if(!this._transport){u(Error(`Not connected`));return}if(this._options?.enforceStrictCapabilities===!0)try{this.assertCapabilityForMethod(e.method),o&&this.assertTaskCapability(e.method)}catch(e){u(e);return}n?.signal?.throwIfAborted();let d=this._requestMessageId++,f={...e,jsonrpc:`2.0`,id:d};n?.onprogress&&(this._progressHandlers.set(d,n.onprogress),f.params={...e.params,_meta:{...e.params?._meta||{},progressToken:d}}),o&&(f.params={...f.params,task:o}),s&&(f.params={...f.params,_meta:{...f.params?._meta||{},[I3]:s}});let p=e=>{this._responseHandlers.delete(d),this._progressHandlers.delete(d),this._cleanupTimeout(d),this._transport?.send({jsonrpc:`2.0`,method:`notifications/cancelled`,params:{requestId:d,reason:String(e)}},{relatedRequestId:r,resumptionToken:i,onresumptiontoken:a}).catch(e=>this._onerror(Error(`Failed to send cancellation: ${e}`))),l(e instanceof g5?e:new g5(r6.RequestTimeout,String(e)))};this._responseHandlers.set(d,e=>{if(!n?.signal?.aborted){if(e instanceof Error)return l(e);try{let n=O1(t,e.result);n.success?c(n.data):l(n.error)}catch(e){l(e)}}}),n?.signal?.addEventListener(`abort`,()=>{p(n?.signal?.reason)});let m=n?.timeout??6e4;this._setupTimeout(d,m,n?.maxTotalTimeout,()=>p(g5.fromError(r6.RequestTimeout,`Request timed out`,{timeout:m})),n?.resetTimeoutOnProgress??!1);let h=s?.taskId;h?(this._requestResolvers.set(d,e=>{let t=this._responseHandlers.get(d);t?t(e):this._onerror(Error(`Response handler missing for side-channeled request ${d}`))}),this._enqueueTaskMessage(h,{type:`request`,message:f,timestamp:Date.now()}).catch(e=>{this._cleanupTimeout(d),l(e)})):this._transport.send(f,{relatedRequestId:r,resumptionToken:i,onresumptiontoken:a}).catch(e=>{this._cleanupTimeout(d),l(e)})})}async getTask(e,t){return this.request({method:`tasks/get`,params:e},F6,t)}async getTaskResult(e,t,n){return this.request({method:`tasks/result`,params:e},t,n)}async listTasks(e,t){return this.request({method:`tasks/list`,params:e},R6,t)}async cancelTask(e,t){return this.request({method:`tasks/cancel`,params:e},B6,t)}async notification(e,t){if(!this._transport)throw Error(`Not connected`);this.assertNotificationCapability(e.method);let n=t?.relatedTask?.taskId;if(n){let r={...e,jsonrpc:`2.0`,params:{...e.params,_meta:{...e.params?._meta||{},[I3]:t.relatedTask}}};await this._enqueueTaskMessage(n,{type:`notification`,message:r,timestamp:Date.now()});return}if((this._options?.debouncedNotificationMethods??[]).includes(e.method)&&!e.params&&!t?.relatedRequestId&&!t?.relatedTask){if(this._pendingDebouncedNotifications.has(e.method))return;this._pendingDebouncedNotifications.add(e.method),Promise.resolve().then(()=>{if(this._pendingDebouncedNotifications.delete(e.method),!this._transport)return;let n={...e,jsonrpc:`2.0`};t?.relatedTask&&(n={...n,params:{...n.params,_meta:{...n.params?._meta||{},[I3]:t.relatedTask}}}),this._transport?.send(n,t).catch(e=>this._onerror(e))});return}let r={...e,jsonrpc:`2.0`};t?.relatedTask&&(r={...r,params:{...r.params,_meta:{...r.params?._meta||{},[I3]:t.relatedTask}}}),await this._transport.send(r,t)}setRequestHandler(e,t){let n=y5(e);this.assertRequestHandlerCapability(n),this._requestHandlers.set(n,(n,r)=>{let i=b5(e,n);return Promise.resolve(t(i,r))})}removeRequestHandler(e){this._requestHandlers.delete(e)}assertCanSetRequestHandler(e){if(this._requestHandlers.has(e))throw Error(`A request handler for ${e} already exists, which would be overridden`)}setNotificationHandler(e,t){let n=y5(e);this._notificationHandlers.set(n,n=>{let r=b5(e,n);return Promise.resolve(t(r))})}removeNotificationHandler(e){this._notificationHandlers.delete(e)}_cleanupTaskProgressHandler(e){let t=this._taskProgressTokens.get(e);t!==void 0&&(this._progressHandlers.delete(t),this._taskProgressTokens.delete(e))}async _enqueueTaskMessage(e,t,n){if(!this._taskStore||!this._taskMessageQueue)throw Error(`Cannot enqueue task message: taskStore and taskMessageQueue are not configured`);let r=this._options?.maxTaskQueueSize;await this._taskMessageQueue.enqueue(e,t,n,r)}async _clearTaskQueue(e,t){if(this._taskMessageQueue){let n=await this._taskMessageQueue.dequeueAll(e,t);for(let t of n)if(t.type===`request`&&Q3(t.message)){let n=t.message.id,r=this._requestResolvers.get(n);r?(r(new g5(r6.InternalError,`Task cancelled or completed`)),this._requestResolvers.delete(n)):this._onerror(Error(`Resolver missing for request ${n} during task ${e} cleanup`))}}}async _waitForTaskUpdate(e,t){let n=this._options?.defaultTaskPollInterval??1e3;try{let t=await this._taskStore?.getTask(e);t?.pollInterval&&(n=t.pollInterval)}catch{}return new Promise((e,r)=>{if(t.aborted){r(new g5(r6.InvalidRequest,`Request cancelled`));return}let i=setTimeout(e,n);t.addEventListener(`abort`,()=>{clearTimeout(i),r(new g5(r6.InvalidRequest,`Request cancelled`))},{once:!0})})}requestTaskStore(e,t){let n=this._taskStore;if(!n)throw Error(`No task store configured`);return{createTask:async r=>{if(!e)throw Error(`No request provided`);return await n.createTask(r,e.id,{method:e.method,params:e.params},t)},getTask:async e=>{let r=await n.getTask(e,t);if(!r)throw new g5(r6.InvalidParams,`Failed to retrieve task: Task not found`);return r},storeTaskResult:async(e,r,i)=>{await n.storeTaskResult(e,r,i,t);let a=await n.getTask(e,t);if(a){let t=N6.parse({method:`notifications/tasks/status`,params:a});await this.notification(t),v5(a.status)&&this._cleanupTaskProgressHandler(e)}},getTaskResult:e=>n.getTaskResult(e,t),updateTaskStatus:async(e,r,i)=>{let a=await n.getTask(e,t);if(!a)throw new g5(r6.InvalidParams,`Task "${e}" not found - it may have been cleaned up`);if(v5(a.status))throw new g5(r6.InvalidParams,`Cannot update task "${e}" from terminal status "${a.status}" to "${r}". Terminal states (completed, failed, cancelled) cannot transition to other states.`);await n.updateTaskStatus(e,r,i,t);let o=await n.getTask(e,t);if(o){let t=N6.parse({method:`notifications/tasks/status`,params:o});await this.notification(t),v5(o.status)&&this._cleanupTaskProgressHandler(e)}},listTasks:e=>n.listTasks(e,t)}}};function S5(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function C5(e,t){let n={...e};for(let e in t){let r=e,i=t[r];if(i===void 0)continue;let a=n[r];n[r]=S5(a)&&S5(i)?{...a,...i}:i}return n}var w5=`modulepreload`,T5=function(e,t){return new URL(e,t).href},E5={},D5=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=document.getElementsByTagName(`link`),i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}function s(e){return import.meta.resolve?import.meta.resolve(e):new URL(e,import.meta.url).href}r=o(t.map(t=>{if(t=T5(t,n),t=s(t),t in E5)return;E5[t]=!0;let r=t.endsWith(`.css`);for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.href===t&&(!r||i.rel===`stylesheet`))return}let i=document.createElement(`link`);if(i.rel=r?`stylesheet`:w5,r||(i.as=`script`),i.crossOrigin=``,i.href=t,a&&i.setAttribute(`nonce`,a),document.head.appendChild(i),r)return new Promise((e,n)=>{i.addEventListener(`load`,e),i.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${t}`)))})}))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})};F3(),(e=>typeof d<`u`?d:typeof Proxy<`u`?new Proxy(e,{get:(e,t)=>(typeof d<`u`?d:e)[t]}):e)(function(e){if(typeof d<`u`)return d.apply(this,arguments);throw Error(`Dynamic require of "`+e+`" is not supported`)});var O5=class extends x5{_registeredMethods=new Set;_eventSlots=new Map;onEventDispatch(e,t){}_ensureEventSlot(e){let t=this._eventSlots.get(e);if(!t){let n=this.eventSchemas[e];if(!n)throw Error(`Unknown event: ${String(e)}`);t={listeners:[]},this._eventSlots.set(e,t);let r=n.shape.method.value;this._registeredMethods.add(r);let i=t;super.setNotificationHandler(n,t=>{let n=t.params;this.onEventDispatch(e,n),i.onHandler?.(n);for(let e of[...i.listeners])e(n)})}return t}setEventHandler(e,t){let n=this._ensureEventSlot(e);n.onHandler&&t&&console.warn(`[MCP Apps] on${String(e)} handler replaced. Use addEventListener("${String(e)}", …) to add multiple listeners without replacing.`),n.onHandler=t}getEventHandler(e){return this._eventSlots.get(e)?.onHandler}addEventListener(e,t){this._ensureEventSlot(e).listeners.push(t)}removeEventListener(e,t){let n=this._eventSlots.get(e);if(!n)return;let r=n.listeners.indexOf(t);r!==-1&&n.listeners.splice(r,1)}setRequestHandler=(e,t)=>{this._assertMethodNotRegistered(e,`setRequestHandler`),super.setRequestHandler(e,t)};setNotificationHandler=(e,t)=>{this._assertMethodNotRegistered(e,`setNotificationHandler`),super.setNotificationHandler(e,t)};warnIfRequestHandlerReplaced(e,t,n){t&&n&&console.warn(`[MCP Apps] ${e} handler replaced. Previous handler will no longer be called.`)}replaceRequestHandler=(e,t)=>{let n=e.shape.method.value;this._registeredMethods.add(n),super.setRequestHandler(e,t)};_assertMethodNotRegistered(e,t){let n=e.shape.method.value;if(this._registeredMethods.has(n))throw Error(`Handler for "${n}" already registered (via ${t}). Use addEventListener() to attach multiple listeners, or the on* setter for replace semantics.`);this._registeredMethods.add(n)}},k5=`2026-01-26`,A5=class{eventTarget;eventSource;messageListener;constructor(e=window.parent,t){this.eventTarget=e,this.eventSource=t,this.messageListener=e=>{if(t&&e.source!==this.eventSource){console.debug(`Ignoring message from unknown source`,e);return}let n=o6.safeParse(e.data);n.success?(console.debug(`Parsed message`,n.data),this.onmessage?.(n.data)):e.data?.jsonrpc===`2.0`?(console.error(`Failed to parse message`,n.error.message,e),this.onerror?.(Error(`Invalid JSON-RPC message received: `+n.error.message))):console.debug(`Ignoring non-JSON-RPC message`,n.error.message,e)}}async start(){window.addEventListener(`message`,this.messageListener)}async send(e,t){e.method!==`ui/notifications/tool-input-partial`&&console.debug(`Sending message`,e),this.eventTarget.postMessage(e,`*`)}async close(){window.removeEventListener(`message`,this.messageListener),this.onclose?.()}onclose;onerror;onmessage;sessionId;setProtocolVersion},j5=i2([Q(`light`),Q(`dark`)]).describe(`Color theme preference for the host environment.`),M5=i2([Q(`inline`),Q(`fullscreen`),Q(`pip`)]).describe(`Display mode for UI presentation.`),N5=l2(i2([Q(`--color-background-primary`),Q(`--color-background-secondary`),Q(`--color-background-tertiary`),Q(`--color-background-inverse`),Q(`--color-background-ghost`),Q(`--color-background-info`),Q(`--color-background-danger`),Q(`--color-background-success`),Q(`--color-background-warning`),Q(`--color-background-disabled`),Q(`--color-text-primary`),Q(`--color-text-secondary`),Q(`--color-text-tertiary`),Q(`--color-text-inverse`),Q(`--color-text-ghost`),Q(`--color-text-info`),Q(`--color-text-danger`),Q(`--color-text-success`),Q(`--color-text-warning`),Q(`--color-text-disabled`),Q(`--color-border-primary`),Q(`--color-border-secondary`),Q(`--color-border-tertiary`),Q(`--color-border-inverse`),Q(`--color-border-ghost`),Q(`--color-border-info`),Q(`--color-border-danger`),Q(`--color-border-success`),Q(`--color-border-warning`),Q(`--color-border-disabled`),Q(`--color-ring-primary`),Q(`--color-ring-secondary`),Q(`--color-ring-inverse`),Q(`--color-ring-info`),Q(`--color-ring-danger`),Q(`--color-ring-success`),Q(`--color-ring-warning`),Q(`--font-sans`),Q(`--font-mono`),Q(`--font-weight-normal`),Q(`--font-weight-medium`),Q(`--font-weight-semibold`),Q(`--font-weight-bold`),Q(`--font-text-xs-size`),Q(`--font-text-sm-size`),Q(`--font-text-md-size`),Q(`--font-text-lg-size`),Q(`--font-heading-xs-size`),Q(`--font-heading-sm-size`),Q(`--font-heading-md-size`),Q(`--font-heading-lg-size`),Q(`--font-heading-xl-size`),Q(`--font-heading-2xl-size`),Q(`--font-heading-3xl-size`),Q(`--font-text-xs-line-height`),Q(`--font-text-sm-line-height`),Q(`--font-text-md-line-height`),Q(`--font-text-lg-line-height`),Q(`--font-heading-xs-line-height`),Q(`--font-heading-sm-line-height`),Q(`--font-heading-md-line-height`),Q(`--font-heading-lg-line-height`),Q(`--font-heading-xl-line-height`),Q(`--font-heading-2xl-line-height`),Q(`--font-heading-3xl-line-height`),Q(`--border-radius-xs`),Q(`--border-radius-sm`),Q(`--border-radius-md`),Q(`--border-radius-lg`),Q(`--border-radius-xl`),Q(`--border-radius-full`),Q(`--border-width-regular`),Q(`--shadow-hairline`),Q(`--shadow-sm`),Q(`--shadow-md`),Q(`--shadow-lg`)]).describe(`CSS variable keys available to MCP apps for theming.`).describe(`Style variables for theming MCP apps. +Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let n of e.seen.entries()){let r=n[1];if(t===n[0]){a(n);continue}if(e.external){let r=e.external.registry.get(n[0])?.id;if(t!==n[0]&&r){a(n);continue}}if(e.metadataRegistry.get(n[0])?.id){a(n);continue}if(r.cycle){a(n);continue}if(r.count>1&&e.reused===`ref`){a(n);continue}}}function B$(e,t){let n=e.seen.get(t);if(!n)throw Error(`Unprocessed schema. This is a bug in Zod.`);let r=t=>{let n=e.seen.get(t);if(n.ref===null)return;let i=n.def??n.schema,a={...i},o=n.ref;if(n.ref=null,o){r(o);let n=e.seen.get(o),s=n.schema;if(s.$ref&&(e.target===`draft-07`||e.target===`draft-04`||e.target===`openapi-3.0`)?(i.allOf=i.allOf??[],i.allOf.push(s)):Object.assign(i,s),Object.assign(i,a),t._zod.parent===o)for(let e in i)e!==`$ref`&&e!==`allOf`&&(e in a||delete i[e]);if(s.$ref&&n.def)for(let e in i)e!==`$ref`&&e!==`allOf`&&e in n.def&&JSON.stringify(i[e])===JSON.stringify(n.def[e])&&delete i[e]}let s=t._zod.parent;if(s&&s!==o){r(s);let t=e.seen.get(s);if(t?.schema.$ref&&(i.$ref=t.schema.$ref,t.def))for(let e in i)e!==`$ref`&&e!==`allOf`&&e in t.def&&JSON.stringify(i[e])===JSON.stringify(t.def[e])&&delete i[e]}e.override({zodSchema:t,jsonSchema:i,path:n.path??[]})};for(let t of[...e.seen.entries()].reverse())r(t[0]);let i={};if(e.target===`draft-2020-12`?i.$schema=`https://json-schema.org/draft/2020-12/schema`:e.target===`draft-07`?i.$schema=`http://json-schema.org/draft-07/schema#`:e.target===`draft-04`?i.$schema=`http://json-schema.org/draft-04/schema#`:e.target,e.external?.uri){let n=e.external.registry.get(t)?.id;if(!n)throw Error("Schema is missing an `id` property");i.$id=e.external.uri(n)}Object.assign(i,n.def??n.schema);let a=e.metadataRegistry.get(t)?.id;a!==void 0&&i.id===a&&delete i.id;let o=e.external?.defs??{};for(let t of e.seen.entries()){let e=t[1];e.def&&e.defId&&(e.def.id===e.defId&&delete e.def.id,o[e.defId]=e.def)}e.external||Object.keys(o).length>0&&(e.target===`draft-2020-12`?i.$defs=o:i.definitions=o);try{let n=JSON.parse(JSON.stringify(i));return Object.defineProperty(n,"~standard",{value:{...t[`~standard`],jsonSchema:{input:U$(t,`input`,e.processors),output:U$(t,`output`,e.processors)}},enumerable:!1,writable:!1}),n}catch{throw Error(`Error converting schema to JSON.`)}}function V$(e,t){let n=t??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);let r=e._zod.def;if(r.type===`transform`)return!0;if(r.type===`array`)return V$(r.element,n);if(r.type===`set`)return V$(r.valueType,n);if(r.type===`lazy`)return V$(r.getter(),n);if(r.type===`promise`||r.type===`optional`||r.type===`nonoptional`||r.type===`nullable`||r.type===`readonly`||r.type==="default"||r.type===`prefault`)return V$(r.innerType,n);if(r.type===`intersection`)return V$(r.left,n)||V$(r.right,n);if(r.type===`record`||r.type===`map`)return V$(r.keyType,n)||V$(r.valueType,n);if(r.type===`pipe`)return e._zod.traits.has(`$ZodCodec`)?!0:V$(r.in,n)||V$(r.out,n);if(r.type===`object`){for(let e in r.shape)if(V$(r.shape[e],n))return!0;return!1}if(r.type===`union`){for(let e of r.options)if(V$(e,n))return!0;return!1}if(r.type===`tuple`){for(let e of r.items)if(V$(e,n))return!0;return!!(r.rest&&V$(r.rest,n))}return!1}var H$,U$,W$=o((()=>{OZ(),H$=(e,t={})=>n=>{let r=L$({...n,processors:t});return R$(e,r),z$(r,e),B$(r,e)},U$=(e,t,n={})=>r=>{let{libraryOptions:i,target:a}=r??{},o=L$({...i??{},target:a,io:t,processors:n});return R$(e,o),z$(o,e),B$(o,e)}}));function G$(e,t){if(`_idmap`in e){let n=e,r=L$({...t,processors:M1}),i={};for(let e of n._idmap.entries()){let[t,n]=e;R$(n,r)}let a={};r.external={registry:n,uri:t?.uri,defs:i};for(let e of n._idmap.entries()){let[t,n]=e;z$(r,n),a[t]=B$(r,n)}return Object.keys(i).length>0&&(a.__shared={[r.target===`draft-2020-12`?`$defs`:`definitions`]:i}),{schemas:a}}let n=L$({...t,processors:M1});return R$(e,n),z$(n,e),B$(n,e)}var K$,q$,J$,Y$,X$,Z$,Q$,$$,e1,t1,n1,r1,i1,a1,o1,s1,c1,l1,u1,d1,f1,p1,m1,h1,g1,_1,v1,y1,b1,x1,S1,C1,w1,T1,E1,D1,O1,k1,A1,j1,M1,N1=o((()=>{W$(),lW(),K$={guid:`uuid`,url:`uri`,datetime:`date-time`,json_string:`json-string`,regex:``},q$=(e,t,n,r)=>{let i=n;i.type=`string`;let{minimum:a,maximum:o,format:s,patterns:c,contentEncoding:l}=e._zod.bag;if(typeof a==`number`&&(i.minLength=a),typeof o==`number`&&(i.maxLength=o),s&&(i.format=K$[s]??s,i.format===``&&delete i.format,s===`time`&&delete i.format),l&&(i.contentEncoding=l),c&&c.size>0){let e=[...c];e.length===1?i.pattern=e[0].source:e.length>1&&(i.allOf=[...e.map(e=>({...t.target===`draft-07`||t.target===`draft-04`||t.target===`openapi-3.0`?{type:`string`}:{},pattern:e.source}))])}},J$=(e,t,n,r)=>{let i=n,{minimum:a,maximum:o,format:s,multipleOf:c,exclusiveMaximum:l,exclusiveMinimum:u}=e._zod.bag;i.type=typeof s==`string`&&s.includes(`int`)?`integer`:`number`;let d=typeof u==`number`&&u>=(a??-1/0),f=typeof l==`number`&&l<=(o??1/0),p=t.target===`draft-04`||t.target===`openapi-3.0`;d?p?(i.minimum=u,i.exclusiveMinimum=!0):i.exclusiveMinimum=u:typeof a==`number`&&(i.minimum=a),f?p?(i.maximum=l,i.exclusiveMaximum=!0):i.exclusiveMaximum=l:typeof o==`number`&&(i.maximum=o),typeof c==`number`&&(i.multipleOf=c)},Y$=(e,t,n,r)=>{n.type=`boolean`},X$=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`BigInt cannot be represented in JSON Schema`)},Z$=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Symbols cannot be represented in JSON Schema`)},Q$=(e,t,n,r)=>{t.target===`openapi-3.0`?(n.type=`string`,n.nullable=!0,n.enum=[null]):n.type=`null`},$$=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Undefined cannot be represented in JSON Schema`)},e1=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Void cannot be represented in JSON Schema`)},t1=(e,t,n,r)=>{n.not={}},n1=(e,t,n,r)=>{},r1=(e,t,n,r)=>{},i1=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Date cannot be represented in JSON Schema`)},a1=(e,t,n,r)=>{let i=e._zod.def,a=oU(i.entries);a.every(e=>typeof e==`number`)&&(n.type=`number`),a.every(e=>typeof e==`string`)&&(n.type=`string`),n.enum=a},o1=(e,t,n,r)=>{let i=e._zod.def,a=[];for(let e of i.values)if(e===void 0){if(t.unrepresentable===`throw`)throw Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof e==`bigint`){if(t.unrepresentable===`throw`)throw Error(`BigInt literals cannot be represented in JSON Schema`);a.push(Number(e))}else a.push(e);if(a.length!==0)if(a.length===1){let e=a[0];n.type=e===null?`null`:typeof e,t.target===`draft-04`||t.target===`openapi-3.0`?n.enum=[e]:n.const=e}else a.every(e=>typeof e==`number`)&&(n.type=`number`),a.every(e=>typeof e==`string`)&&(n.type=`string`),a.every(e=>typeof e==`boolean`)&&(n.type=`boolean`),a.every(e=>e===null)&&(n.type=`null`),n.enum=a},s1=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`NaN cannot be represented in JSON Schema`)},c1=(e,t,n,r)=>{let i=n,a=e._zod.pattern;if(!a)throw Error(`Pattern not found in template literal`);i.type=`string`,i.pattern=a.source},l1=(e,t,n,r)=>{let i=n,a={type:`string`,format:`binary`,contentEncoding:`binary`},{minimum:o,maximum:s,mime:c}=e._zod.bag;o!==void 0&&(a.minLength=o),s!==void 0&&(a.maxLength=s),c?c.length===1?(a.contentMediaType=c[0],Object.assign(i,a)):(Object.assign(i,a),i.anyOf=c.map(e=>({contentMediaType:e}))):Object.assign(i,a)},u1=(e,t,n,r)=>{n.type=`boolean`},d1=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Custom types cannot be represented in JSON Schema`)},f1=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Function types cannot be represented in JSON Schema`)},p1=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Transforms cannot be represented in JSON Schema`)},m1=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Map cannot be represented in JSON Schema`)},h1=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Set cannot be represented in JSON Schema`)},g1=(e,t,n,r)=>{let i=n,a=e._zod.def,{minimum:o,maximum:s}=e._zod.bag;typeof o==`number`&&(i.minItems=o),typeof s==`number`&&(i.maxItems=s),i.type=`array`,i.items=R$(a.element,t,{...r,path:[...r.path,`items`]})},_1=(e,t,n,r)=>{let i=n,a=e._zod.def;i.type=`object`,i.properties={};let o=a.shape;for(let e in o)i.properties[e]=R$(o[e],t,{...r,path:[...r.path,`properties`,e]});let s=new Set(Object.keys(o)),c=new Set([...s].filter(e=>{let n=a.shape[e]._zod;return t.io===`input`?n.optin===void 0:n.optout===void 0}));c.size>0&&(i.required=Array.from(c)),a.catchall?._zod.def.type===`never`?i.additionalProperties=!1:a.catchall?a.catchall&&(i.additionalProperties=R$(a.catchall,t,{...r,path:[...r.path,`additionalProperties`]})):t.io===`output`&&(i.additionalProperties=!1)},v1=(e,t,n,r)=>{let i=e._zod.def,a=i.inclusive===!1,o=i.options.map((e,n)=>R$(e,t,{...r,path:[...r.path,a?`oneOf`:`anyOf`,n]}));a?n.oneOf=o:n.anyOf=o},y1=(e,t,n,r)=>{let i=e._zod.def,a=R$(i.left,t,{...r,path:[...r.path,`allOf`,0]}),o=R$(i.right,t,{...r,path:[...r.path,`allOf`,1]}),s=e=>`allOf`in e&&Object.keys(e).length===1;n.allOf=[...s(a)?a.allOf:[a],...s(o)?o.allOf:[o]]},b1=(e,t,n,r)=>{let i=n,a=e._zod.def;i.type=`array`;let o=t.target===`draft-2020-12`?`prefixItems`:`items`,s=t.target===`draft-2020-12`||t.target===`openapi-3.0`?`items`:`additionalItems`,c=a.items.map((e,n)=>R$(e,t,{...r,path:[...r.path,o,n]})),l=a.rest?R$(a.rest,t,{...r,path:[...r.path,s,...t.target===`openapi-3.0`?[a.items.length]:[]]}):null;t.target===`draft-2020-12`?(i.prefixItems=c,l&&(i.items=l)):t.target===`openapi-3.0`?(i.items={anyOf:c},l&&i.items.anyOf.push(l),i.minItems=c.length,l||(i.maxItems=c.length)):(i.items=c,l&&(i.additionalItems=l));let{minimum:u,maximum:d}=e._zod.bag;typeof u==`number`&&(i.minItems=u),typeof d==`number`&&(i.maxItems=d)},x1=(e,t,n,r)=>{let i=n,a=e._zod.def;i.type=`object`;let o=a.keyType,s=o._zod.bag?.patterns;if(a.mode===`loose`&&s&&s.size>0){let e=R$(a.valueType,t,{...r,path:[...r.path,`patternProperties`,`*`]});i.patternProperties={};for(let t of s)i.patternProperties[t.source]=e}else(t.target===`draft-07`||t.target===`draft-2020-12`)&&(i.propertyNames=R$(a.keyType,t,{...r,path:[...r.path,`propertyNames`]})),i.additionalProperties=R$(a.valueType,t,{...r,path:[...r.path,`additionalProperties`]});let c=o._zod.values;if(c){let e=[...c].filter(e=>typeof e==`string`||typeof e==`number`);e.length>0&&(i.required=e)}},S1=(e,t,n,r)=>{let i=e._zod.def,a=R$(i.innerType,t,r),o=t.seen.get(e);t.target===`openapi-3.0`?(o.ref=i.innerType,n.nullable=!0):n.anyOf=[a,{type:`null`}]},C1=(e,t,n,r)=>{let i=e._zod.def;R$(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},w1=(e,t,n,r)=>{let i=e._zod.def;R$(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,n.default=JSON.parse(JSON.stringify(i.defaultValue))},T1=(e,t,n,r)=>{let i=e._zod.def;R$(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,t.io===`input`&&(n._prefault=JSON.parse(JSON.stringify(i.defaultValue)))},E1=(e,t,n,r)=>{let i=e._zod.def;R$(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType;let o;try{o=i.catchValue(void 0)}catch{throw Error(`Dynamic catch values are not supported in JSON Schema`)}n.default=o},D1=(e,t,n,r)=>{let i=e._zod.def,a=i.in._zod.traits.has(`$ZodTransform`),o=t.io===`input`?a?i.out:i.in:i.out;R$(o,t,r);let s=t.seen.get(e);s.ref=o},O1=(e,t,n,r)=>{let i=e._zod.def;R$(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,n.readOnly=!0},k1=(e,t,n,r)=>{let i=e._zod.def;R$(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},A1=(e,t,n,r)=>{let i=e._zod.def;R$(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},j1=(e,t,n,r)=>{let i=e._zod.innerType;R$(i,t,r);let a=t.seen.get(e);a.ref=i},M1={string:q$,number:J$,boolean:Y$,bigint:X$,symbol:Z$,null:Q$,undefined:$$,void:e1,never:t1,any:n1,unknown:r1,date:i1,enum:a1,literal:o1,nan:s1,template_literal:c1,file:l1,success:u1,custom:d1,function:f1,transform:p1,map:m1,set:h1,array:g1,object:_1,union:v1,intersection:y1,tuple:b1,record:x1,nullable:S1,nonoptional:C1,default:w1,prefault:T1,catch:E1,pipe:D1,readonly:O1,promise:k1,optional:A1,lazy:j1}})),P1,F1=o((()=>{N1(),W$(),P1=class{get metadataRegistry(){return this.ctx.metadataRegistry}get target(){return this.ctx.target}get unrepresentable(){return this.ctx.unrepresentable}get override(){return this.ctx.override}get io(){return this.ctx.io}get counter(){return this.ctx.counter}set counter(e){this.ctx.counter=e}get seen(){return this.ctx.seen}constructor(e){let t=e?.target??`draft-2020-12`;t===`draft-4`&&(t=`draft-04`),t===`draft-7`&&(t=`draft-07`),this.ctx=L$({processors:M1,target:t,...e?.metadata&&{metadata:e.metadata},...e?.unrepresentable&&{unrepresentable:e.unrepresentable},...e?.override&&{override:e.override},...e?.io&&{io:e.io}})}process(e,t={path:[],schemaPath:[]}){return R$(e,this.ctx,t)}emit(e,t){t&&(t.cycles&&(this.ctx.cycles=t.cycles),t.reused&&(this.ctx.reused=t.reused),t.external&&(this.ctx.external=t.external)),z$(this.ctx,e);let{"~standard":n,...r}=B$(this.ctx,e);return r}}})),I1=c({}),L1=o((()=>{})),R1=c({$ZodAny:()=>Lq,$ZodArray:()=>Hq,$ZodAsyncError:()=>XH,$ZodBase64:()=>wq,$ZodBase64URL:()=>Tq,$ZodBigInt:()=>Mq,$ZodBigIntFormat:()=>Nq,$ZodBoolean:()=>jq,$ZodCIDRv4:()=>Sq,$ZodCIDRv6:()=>Cq,$ZodCUID:()=>uq,$ZodCUID2:()=>dq,$ZodCatch:()=>uJ,$ZodCheck:()=>rK,$ZodCheckBigIntFormat:()=>lK,$ZodCheckEndsWith:()=>SK,$ZodCheckGreaterThan:()=>oK,$ZodCheckIncludes:()=>bK,$ZodCheckLengthEquals:()=>hK,$ZodCheckLessThan:()=>aK,$ZodCheckLowerCase:()=>vK,$ZodCheckMaxLength:()=>pK,$ZodCheckMaxSize:()=>uK,$ZodCheckMimeType:()=>wK,$ZodCheckMinLength:()=>mK,$ZodCheckMinSize:()=>dK,$ZodCheckMultipleOf:()=>sK,$ZodCheckNumberFormat:()=>cK,$ZodCheckOverwrite:()=>TK,$ZodCheckProperty:()=>CK,$ZodCheckRegex:()=>_K,$ZodCheckSizeEquals:()=>fK,$ZodCheckStartsWith:()=>xK,$ZodCheckStringFormat:()=>gK,$ZodCheckUpperCase:()=>yK,$ZodCodec:()=>pJ,$ZodCustom:()=>bJ,$ZodCustomStringFormat:()=>Oq,$ZodDate:()=>Vq,$ZodDefault:()=>oJ,$ZodDiscriminatedUnion:()=>qq,$ZodE164:()=>Eq,$ZodEmail:()=>oq,$ZodEmoji:()=>cq,$ZodEncodeError:()=>ZH,$ZodEnum:()=>$q,$ZodError:()=>gW,$ZodExactOptional:()=>iJ,$ZodFile:()=>tJ,$ZodFunction:()=>_J,$ZodGUID:()=>iq,$ZodIPv4:()=>yq,$ZodIPv6:()=>bq,$ZodISODate:()=>gq,$ZodISODateTime:()=>hq,$ZodISODuration:()=>vq,$ZodISOTime:()=>_q,$ZodIntersection:()=>Jq,$ZodJWT:()=>Dq,$ZodKSUID:()=>mq,$ZodLazy:()=>yJ,$ZodLiteral:()=>eJ,$ZodMAC:()=>xq,$ZodMap:()=>Zq,$ZodNaN:()=>dJ,$ZodNanoID:()=>lq,$ZodNever:()=>zq,$ZodNonOptional:()=>cJ,$ZodNull:()=>Iq,$ZodNullable:()=>aJ,$ZodNumber:()=>kq,$ZodNumberFormat:()=>Aq,$ZodObject:()=>Uq,$ZodObjectJIT:()=>Wq,$ZodOptional:()=>rJ,$ZodPipe:()=>fJ,$ZodPrefault:()=>sJ,$ZodPreprocess:()=>mJ,$ZodPromise:()=>vJ,$ZodReadonly:()=>hJ,$ZodRealError:()=>_W,$ZodRecord:()=>Xq,$ZodRegistry:()=>EZ,$ZodSet:()=>Qq,$ZodString:()=>nq,$ZodStringFormat:()=>rq,$ZodSuccess:()=>lJ,$ZodSymbol:()=>Pq,$ZodTemplateLiteral:()=>gJ,$ZodTransform:()=>nJ,$ZodTuple:()=>Yq,$ZodType:()=>tq,$ZodULID:()=>fq,$ZodURL:()=>sq,$ZodUUID:()=>aq,$ZodUndefined:()=>Fq,$ZodUnion:()=>Gq,$ZodUnknown:()=>Rq,$ZodVoid:()=>Bq,$ZodXID:()=>pq,$ZodXor:()=>Kq,$brand:()=>YH,$constructor:()=>q,$input:()=>TZ,$output:()=>wZ,Doc:()=>DK,JSONSchema:()=>I1,JSONSchemaGenerator:()=>P1,NEVER:()=>JH,TimePrecision:()=>F$,_any:()=>bQ,_array:()=>n$,_base64:()=>XZ,_base64url:()=>ZZ,_bigint:()=>pQ,_boolean:()=>dQ,_catch:()=>x$,_check:()=>A$,_cidrv4:()=>JZ,_cidrv6:()=>YZ,_coercedBigint:()=>mQ,_coercedBoolean:()=>fQ,_coercedDate:()=>TQ,_coercedNumber:()=>aQ,_coercedString:()=>AZ,_cuid:()=>BZ,_cuid2:()=>VZ,_custom:()=>D$,_date:()=>wQ,_decode:()=>kW,_decodeAsync:()=>NW,_default:()=>v$,_discriminatedUnion:()=>a$,_e164:()=>QZ,_email:()=>jZ,_emoji:()=>RZ,_encode:()=>DW,_encodeAsync:()=>jW,_endsWith:()=>qQ,_enum:()=>d$,_file:()=>m$,_float32:()=>sQ,_float64:()=>cQ,_gt:()=>kQ,_gte:()=>AQ,_guid:()=>MZ,_includes:()=>GQ,_int:()=>oQ,_int32:()=>lQ,_int64:()=>hQ,_intersection:()=>o$,_ipv4:()=>GZ,_ipv6:()=>KZ,_isoDate:()=>tQ,_isoDateTime:()=>eQ,_isoDuration:()=>rQ,_isoTime:()=>nQ,_jwt:()=>$Z,_ksuid:()=>WZ,_lazy:()=>T$,_length:()=>VQ,_literal:()=>p$,_lowercase:()=>UQ,_lt:()=>DQ,_lte:()=>OQ,_mac:()=>qZ,_map:()=>l$,_max:()=>OQ,_maxLength:()=>zQ,_maxSize:()=>IQ,_mime:()=>YQ,_min:()=>AQ,_minLength:()=>BQ,_minSize:()=>LQ,_multipleOf:()=>FQ,_nan:()=>EQ,_nanoid:()=>zZ,_nativeEnum:()=>f$,_negative:()=>MQ,_never:()=>SQ,_nonnegative:()=>PQ,_nonoptional:()=>y$,_nonpositive:()=>NQ,_normalize:()=>ZQ,_null:()=>yQ,_nullable:()=>_$,_number:()=>iQ,_optional:()=>g$,_overwrite:()=>XQ,_parse:()=>yW,_parseAsync:()=>xW,_pipe:()=>S$,_positive:()=>jQ,_promise:()=>E$,_property:()=>JQ,_readonly:()=>C$,_record:()=>c$,_refine:()=>O$,_regex:()=>HQ,_safeDecode:()=>LW,_safeDecodeAsync:()=>VW,_safeEncode:()=>FW,_safeEncodeAsync:()=>zW,_safeParse:()=>CW,_safeParseAsync:()=>TW,_set:()=>u$,_size:()=>RQ,_slugify:()=>t$,_startsWith:()=>KQ,_string:()=>kZ,_stringFormat:()=>P$,_stringbool:()=>N$,_success:()=>b$,_superRefine:()=>k$,_symbol:()=>_Q,_templateLiteral:()=>w$,_toLowerCase:()=>$Q,_toUpperCase:()=>e$,_transform:()=>h$,_trim:()=>QQ,_tuple:()=>s$,_uint32:()=>uQ,_uint64:()=>gQ,_ulid:()=>HZ,_undefined:()=>vQ,_union:()=>r$,_unknown:()=>xQ,_uppercase:()=>WQ,_url:()=>LZ,_uuid:()=>NZ,_uuidv4:()=>PZ,_uuidv6:()=>FZ,_uuidv7:()=>IZ,_void:()=>CQ,_xid:()=>UZ,_xor:()=>i$,clone:()=>DU,config:()=>KH,createStandardJSONSchemaMethod:()=>U$,createToJSONSchemaMethod:()=>H$,decode:()=>AW,decodeAsync:()=>PW,describe:()=>j$,encode:()=>OW,encodeAsync:()=>MW,extractDefs:()=>z$,finalize:()=>B$,flattenError:()=>uW,formatError:()=>dW,globalConfig:()=>QH,globalRegistry:()=>DZ,initializeContext:()=>L$,isValidBase64:()=>jK,isValidBase64URL:()=>MK,isValidJWT:()=>NK,locales:()=>bZ,meta:()=>M$,parse:()=>bW,parseAsync:()=>SW,prettifyError:()=>mW,process:()=>R$,regexes:()=>WW,registry:()=>SZ,safeDecode:()=>RW,safeDecodeAsync:()=>HW,safeEncode:()=>IW,safeEncodeAsync:()=>BW,safeParse:()=>wW,safeParseAsync:()=>EW,toDotPath:()=>pW,toJSONSchema:()=>G$,treeifyError:()=>fW,util:()=>eU,version:()=>kK}),z1=o((()=>{$H(),UW(),vW(),xJ(),EK(),AK(),lW(),tK(),xZ(),OZ(),OK(),I$(),W$(),N1(),F1(),L1()}));UW();function B1(e){return!!e._zod}function V1(e,t){return B1(e)?wW(e,t):e.safeParse(t)}function H1(e){if(!e)return;let t;if(t=B1(e)?e._zod?.def?.shape:e.shape,t){if(typeof t==`function`)try{return t()}catch{return}return t}}function U1(e){if(B1(e)){let t=e._zod?.def;if(t){if(t.value!==void 0)return t.value;if(Array.isArray(t.values)&&t.values.length>0)return t.values[0]}}let t=e._def;if(t){if(t.value!==void 0)return t.value;if(Array.isArray(t.values)&&t.values.length>0)return t.values[0]}let n=e.value;if(n!==void 0)return n}var W1=c({endsWith:()=>qQ,gt:()=>kQ,gte:()=>AQ,includes:()=>GQ,length:()=>VQ,lowercase:()=>UQ,lt:()=>DQ,lte:()=>OQ,maxLength:()=>zQ,maxSize:()=>IQ,mime:()=>YQ,minLength:()=>BQ,minSize:()=>LQ,multipleOf:()=>FQ,negative:()=>MQ,nonnegative:()=>PQ,nonpositive:()=>NQ,normalize:()=>ZQ,overwrite:()=>XQ,positive:()=>jQ,property:()=>JQ,regex:()=>HQ,size:()=>RQ,slugify:()=>t$,startsWith:()=>KQ,toLowerCase:()=>$Q,toUpperCase:()=>e$,trim:()=>QQ,uppercase:()=>WQ}),G1=o((()=>{z1()})),K1=c({ZodISODate:()=>Q1,ZodISODateTime:()=>Z1,ZodISODuration:()=>e0,ZodISOTime:()=>$1,date:()=>J1,datetime:()=>q1,duration:()=>X1,time:()=>Y1});function q1(e){return eQ(Z1,e)}function J1(e){return tQ(Q1,e)}function Y1(e){return nQ($1,e)}function X1(e){return rQ(e0,e)}var Z1,Q1,$1,e0,t0=o((()=>{z1(),S3(),Z1=q(`ZodISODateTime`,(e,t)=>{hq.init(e,t),o4.init(e,t)}),Q1=q(`ZodISODate`,(e,t)=>{gq.init(e,t),o4.init(e,t)}),$1=q(`ZodISOTime`,(e,t)=>{_q.init(e,t),o4.init(e,t)}),e0=q(`ZodISODuration`,(e,t)=>{vq.init(e,t),o4.init(e,t)})})),n0,r0,i0,a0=o((()=>{z1(),lW(),n0=(e,t)=>{gW.init(e,t),e.name=`ZodError`,Object.defineProperties(e,{format:{value:t=>dW(e,t)},flatten:{value:t=>uW(e,t)},addIssue:{value:t=>{e.issues.push(t),e.message=JSON.stringify(e.issues,sU,2)}},addIssues:{value:t=>{e.issues.push(...t),e.message=JSON.stringify(e.issues,sU,2)}},isEmpty:{get(){return e.issues.length===0}}})},r0=q(`ZodError`,n0),i0=q(`ZodError`,n0,{Parent:Error})})),o0,s0,c0,l0,u0,d0,f0,p0,m0,h0,g0,_0,v0=o((()=>{z1(),a0(),o0=yW(i0),s0=xW(i0),c0=CW(i0),l0=TW(i0),u0=DW(i0),d0=kW(i0),f0=jW(i0),p0=NW(i0),m0=FW(i0),h0=LW(i0),g0=zW(i0),_0=VW(i0)})),y0=c({ZodAny:()=>I4,ZodArray:()=>V4,ZodBase64:()=>C4,ZodBase64URL:()=>w4,ZodBigInt:()=>j4,ZodBigIntFormat:()=>M4,ZodBoolean:()=>A4,ZodCIDRv4:()=>x4,ZodCIDRv6:()=>S4,ZodCUID:()=>p4,ZodCUID2:()=>m4,ZodCatch:()=>c3,ZodCodec:()=>d3,ZodCustom:()=>v3,ZodCustomStringFormat:()=>D4,ZodDate:()=>B4,ZodDefault:()=>i3,ZodDiscriminatedUnion:()=>G4,ZodE164:()=>T4,ZodEmail:()=>s4,ZodEmoji:()=>d4,ZodEnum:()=>Z4,ZodExactOptional:()=>n3,ZodFile:()=>$4,ZodFunction:()=>_3,ZodGUID:()=>c4,ZodIPv4:()=>v4,ZodIPv6:()=>b4,ZodIntersection:()=>K4,ZodJWT:()=>E4,ZodKSUID:()=>_4,ZodLazy:()=>h3,ZodLiteral:()=>Q4,ZodMAC:()=>y4,ZodMap:()=>Y4,ZodNaN:()=>l3,ZodNanoID:()=>f4,ZodNever:()=>R4,ZodNonOptional:()=>o3,ZodNull:()=>F4,ZodNullable:()=>r3,ZodNumber:()=>O4,ZodNumberFormat:()=>k4,ZodObject:()=>H4,ZodOptional:()=>t3,ZodPipe:()=>u3,ZodPrefault:()=>a3,ZodPreprocess:()=>f3,ZodPromise:()=>g3,ZodReadonly:()=>p3,ZodRecord:()=>J4,ZodSet:()=>X4,ZodString:()=>a4,ZodStringFormat:()=>o4,ZodSuccess:()=>s3,ZodSymbol:()=>N4,ZodTemplateLiteral:()=>m3,ZodTransform:()=>e3,ZodTuple:()=>q4,ZodType:()=>r4,ZodULID:()=>h4,ZodURL:()=>u4,ZodUUID:()=>l4,ZodUndefined:()=>P4,ZodUnion:()=>U4,ZodUnknown:()=>L4,ZodVoid:()=>z4,ZodXID:()=>g4,ZodXor:()=>W4,_ZodString:()=>i4,_default:()=>F2,_function:()=>J2,any:()=>c2,array:()=>p2,base64:()=>V0,base64url:()=>H0,bigint:()=>n2,boolean:()=>t2,catch:()=>z2,check:()=>Y2,cidrv4:()=>z0,cidrv6:()=>B0,codec:()=>H2,cuid:()=>j0,cuid2:()=>M0,custom:()=>X2,date:()=>f2,describe:()=>y3,discriminatedUnion:()=>y2,e164:()=>U0,email:()=>x0,emoji:()=>k0,enum:()=>D2,exactOptional:()=>M2,file:()=>k2,float32:()=>Z0,float64:()=>Q0,function:()=>J2,guid:()=>S0,hash:()=>J0,hex:()=>q0,hostname:()=>K0,httpUrl:()=>O0,instanceof:()=>$2,int:()=>X0,int32:()=>$0,int64:()=>r2,intersection:()=>b2,invertCodec:()=>U2,ipv4:()=>I0,ipv6:()=>R0,json:()=>e4,jwt:()=>W0,keyof:()=>m2,ksuid:()=>F0,lazy:()=>K2,literal:()=>Q,looseObject:()=>g2,looseRecord:()=>w2,mac:()=>L0,map:()=>T2,meta:()=>b3,nan:()=>B2,nanoid:()=>A0,nativeEnum:()=>O2,never:()=>u2,nonoptional:()=>L2,null:()=>s2,nullable:()=>N2,nullish:()=>P2,number:()=>Y0,object:()=>Z,optional:()=>j2,partialRecord:()=>C2,pipe:()=>V2,prefault:()=>I2,preprocess:()=>t4,promise:()=>q2,readonly:()=>W2,record:()=>S2,refine:()=>Z2,set:()=>E2,strictObject:()=>h2,string:()=>X,stringFormat:()=>G0,stringbool:()=>x3,success:()=>R2,superRefine:()=>Q2,symbol:()=>a2,templateLiteral:()=>G2,transform:()=>A2,tuple:()=>x2,uint32:()=>e2,uint64:()=>i2,ulid:()=>N0,undefined:()=>o2,union:()=>_2,unknown:()=>l2,url:()=>D0,uuid:()=>C0,uuidv4:()=>w0,uuidv6:()=>T0,uuidv7:()=>E0,void:()=>d2,xid:()=>P0,xor:()=>v2});function b0(e,t,n){let r=Object.getPrototypeOf(e),i=n4.get(r);if(i||(i=new Set,n4.set(r,i)),!i.has(t)){i.add(t);for(let e in n){let t=n[e];Object.defineProperty(r,e,{configurable:!0,enumerable:!1,get(){let n=t.bind(this);return Object.defineProperty(this,e,{configurable:!0,writable:!0,enumerable:!0,value:n}),n},set(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,enumerable:!0,value:t})}})}}}function X(e){return kZ(a4,e)}function x0(e){return jZ(s4,e)}function S0(e){return MZ(c4,e)}function C0(e){return NZ(l4,e)}function w0(e){return PZ(l4,e)}function T0(e){return FZ(l4,e)}function E0(e){return IZ(l4,e)}function D0(e){return LZ(u4,e)}function O0(e){return LZ(u4,{protocol:EG,hostname:TG,...Y(e)})}function k0(e){return RZ(d4,e)}function A0(e){return zZ(f4,e)}function j0(e){return BZ(p4,e)}function M0(e){return VZ(m4,e)}function N0(e){return HZ(h4,e)}function P0(e){return UZ(g4,e)}function F0(e){return WZ(_4,e)}function I0(e){return GZ(v4,e)}function L0(e){return qZ(y4,e)}function R0(e){return KZ(b4,e)}function z0(e){return JZ(x4,e)}function B0(e){return YZ(S4,e)}function V0(e){return XZ(C4,e)}function H0(e){return ZZ(w4,e)}function U0(e){return QZ(T4,e)}function W0(e){return $Z(E4,e)}function G0(e,t,n={}){return P$(D4,e,t,n)}function K0(e){return P$(D4,`hostname`,wG,e)}function q0(e){return P$(D4,`hex`,zG,e)}function J0(e,t){let n=`${e}_${t?.enc??`hex`}`,r=WW[n];if(!r)throw Error(`Unrecognized hash format: ${n}`);return P$(D4,n,r,t)}function Y0(e){return iQ(O4,e)}function X0(e){return oQ(k4,e)}function Z0(e){return sQ(k4,e)}function Q0(e){return cQ(k4,e)}function $0(e){return lQ(k4,e)}function e2(e){return uQ(k4,e)}function t2(e){return dQ(A4,e)}function n2(e){return pQ(j4,e)}function r2(e){return hQ(M4,e)}function i2(e){return gQ(M4,e)}function a2(e){return _Q(N4,e)}function o2(e){return vQ(P4,e)}function s2(e){return yQ(F4,e)}function c2(){return bQ(I4)}function l2(){return xQ(L4)}function u2(e){return SQ(R4,e)}function d2(e){return CQ(z4,e)}function f2(e){return wQ(B4,e)}function p2(e,t){return n$(V4,e,t)}function m2(e){let t=e._zod.def.shape;return D2(Object.keys(t))}function Z(e,t){let n={type:`object`,shape:e??{},...Y(t)};return new H4(n)}function h2(e,t){return new H4({type:`object`,shape:e,catchall:u2(),...Y(t)})}function g2(e,t){return new H4({type:`object`,shape:e,catchall:l2(),...Y(t)})}function _2(e,t){return new U4({type:`union`,options:e,...Y(t)})}function v2(e,t){return new W4({type:`union`,options:e,inclusive:!1,...Y(t)})}function y2(e,t,n){return new G4({type:`union`,options:t,discriminator:e,...Y(n)})}function b2(e,t){return new K4({type:`intersection`,left:e,right:t})}function x2(e,t,n){let r=t instanceof tq;return new q4({type:`tuple`,items:e,rest:r?t:null,...Y(r?n:t)})}function S2(e,t,n){return!t||!t._zod?new J4({type:`record`,keyType:X(),valueType:e,...Y(t)}):new J4({type:`record`,keyType:e,valueType:t,...Y(n)})}function C2(e,t,n){let r=DU(e);return r._zod.values=void 0,new J4({type:`record`,keyType:r,valueType:t,...Y(n)})}function w2(e,t,n){return new J4({type:`record`,keyType:e,valueType:t,mode:`loose`,...Y(n)})}function T2(e,t,n){return new Y4({type:`map`,keyType:e,valueType:t,...Y(n)})}function E2(e,t){return new X4({type:`set`,valueType:e,...Y(t)})}function D2(e,t){let n=Array.isArray(e)?Object.fromEntries(e.map(e=>[e,e])):e;return new Z4({type:`enum`,entries:n,...Y(t)})}function O2(e,t){return new Z4({type:`enum`,entries:e,...Y(t)})}function Q(e,t){return new Q4({type:`literal`,values:Array.isArray(e)?e:[e],...Y(t)})}function k2(e){return m$($4,e)}function A2(e){return new e3({type:`transform`,transform:e})}function j2(e){return new t3({type:`optional`,innerType:e})}function M2(e){return new n3({type:`optional`,innerType:e})}function N2(e){return new r3({type:`nullable`,innerType:e})}function P2(e){return j2(N2(e))}function F2(e,t){return new i3({type:`default`,innerType:e,get defaultValue(){return typeof t==`function`?t():wU(t)}})}function I2(e,t){return new a3({type:`prefault`,innerType:e,get defaultValue(){return typeof t==`function`?t():wU(t)}})}function L2(e,t){return new o3({type:`nonoptional`,innerType:e,...Y(t)})}function R2(e){return new s3({type:`success`,innerType:e})}function z2(e,t){return new c3({type:`catch`,innerType:e,catchValue:typeof t==`function`?t:()=>t})}function B2(e){return EQ(l3,e)}function V2(e,t){return new u3({type:`pipe`,in:e,out:t})}function H2(e,t,n){return new d3({type:`pipe`,in:e,out:t,transform:n.decode,reverseTransform:n.encode})}function U2(e){let t=e._zod.def;return new d3({type:`pipe`,in:t.out,out:t.in,transform:t.reverseTransform,reverseTransform:t.transform})}function W2(e){return new p3({type:`readonly`,innerType:e})}function G2(e,t){return new m3({type:`template_literal`,parts:e,...Y(t)})}function K2(e){return new h3({type:`lazy`,getter:e})}function q2(e){return new g3({type:`promise`,innerType:e})}function J2(e){return new _3({type:`function`,input:Array.isArray(e?.input)?x2(e?.input):e?.input??p2(l2()),output:e?.output??l2()})}function Y2(e){let t=new rK({check:`custom`});return t._zod.check=e,t}function X2(e,t){return D$(v3,e??(()=>!0),t)}function Z2(e,t={}){return O$(v3,e,t)}function Q2(e,t){return k$(e,t)}function $2(e,t={}){let n=new v3({type:`custom`,check:`custom`,fn:t=>t instanceof e,abort:!0,...Y(t)});return n._zod.bag.Class=e,n._zod.check=t=>{t.value instanceof e||t.issues.push({code:`invalid_type`,expected:e.name,input:t.value,inst:n,path:[...n._zod.def.path??[]]})},n}function e4(e){let t=K2(()=>_2([X(e),Y0(),t2(),s2(),p2(t),S2(X(),t)]));return t}function t4(e,t){return new f3({type:`pipe`,in:A2(e),out:t})}var n4,r4,i4,a4,o4,s4,c4,l4,u4,d4,f4,p4,m4,h4,g4,_4,v4,y4,b4,x4,S4,C4,w4,T4,E4,D4,O4,k4,A4,j4,M4,N4,P4,F4,I4,L4,R4,z4,B4,V4,H4,U4,W4,G4,K4,q4,J4,Y4,X4,Z4,Q4,$4,e3,t3,n3,r3,i3,a3,o3,s3,c3,l3,u3,d3,f3,p3,m3,h3,g3,_3,v3,y3,b3,x3,S3=o((()=>{z1(),N1(),W$(),G1(),t0(),v0(),n4=new WeakMap,r4=q(`ZodType`,(e,t)=>(tq.init(e,t),Object.assign(e[`~standard`],{jsonSchema:{input:U$(e,`input`),output:U$(e,`output`)}}),e.toJSONSchema=H$(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.parse=(t,n)=>o0(e,t,n,{callee:e.parse}),e.safeParse=(t,n)=>c0(e,t,n),e.parseAsync=async(t,n)=>s0(e,t,n,{callee:e.parseAsync}),e.safeParseAsync=async(t,n)=>l0(e,t,n),e.spa=e.safeParseAsync,e.encode=(t,n)=>u0(e,t,n),e.decode=(t,n)=>d0(e,t,n),e.encodeAsync=async(t,n)=>f0(e,t,n),e.decodeAsync=async(t,n)=>p0(e,t,n),e.safeEncode=(t,n)=>m0(e,t,n),e.safeDecode=(t,n)=>h0(e,t,n),e.safeEncodeAsync=async(t,n)=>g0(e,t,n),e.safeDecodeAsync=async(t,n)=>_0(e,t,n),b0(e,`ZodType`,{check(...e){let t=this.def;return this.clone(hU(t,{checks:[...t.checks??[],...e.map(e=>typeof e==`function`?{_zod:{check:e,def:{check:`custom`},onattach:[]}}:e)]}),{parent:!0})},with(...e){return this.check(...e)},clone(e,t){return DU(this,e,t)},brand(){return this},register(e,t){return e.add(this,t),this},refine(e,t){return this.check(Z2(e,t))},superRefine(e,t){return this.check(Q2(e,t))},overwrite(e){return this.check(XQ(e))},optional(){return j2(this)},exactOptional(){return M2(this)},nullable(){return N2(this)},nullish(){return j2(N2(this))},nonoptional(e){return L2(this,e)},array(){return p2(this)},or(e){return _2([this,e])},and(e){return b2(this,e)},transform(e){return V2(this,A2(e))},default(e){return F2(this,e)},prefault(e){return I2(this,e)},catch(e){return z2(this,e)},pipe(e){return V2(this,e)},readonly(){return W2(this)},describe(e){let t=this.clone();return DZ.add(t,{description:e}),t},meta(...e){if(e.length===0)return DZ.get(this);let t=this.clone();return DZ.add(t,e[0]),t},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(e){return e(this)}}),Object.defineProperty(e,"description",{get(){return DZ.get(e)?.description},configurable:!0}),e)),i4=q(`_ZodString`,(e,t)=>{nq.init(e,t),r4.init(e,t),e._zod.processJSONSchema=(t,n,r)=>q$(e,t,n,r);let n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,b0(e,`_ZodString`,{regex(...e){return this.check(HQ(...e))},includes(...e){return this.check(GQ(...e))},startsWith(...e){return this.check(KQ(...e))},endsWith(...e){return this.check(qQ(...e))},min(...e){return this.check(BQ(...e))},max(...e){return this.check(zQ(...e))},length(...e){return this.check(VQ(...e))},nonempty(...e){return this.check(BQ(1,...e))},lowercase(e){return this.check(UQ(e))},uppercase(e){return this.check(WQ(e))},trim(){return this.check(QQ())},normalize(...e){return this.check(ZQ(...e))},toLowerCase(){return this.check($Q())},toUpperCase(){return this.check(e$())},slugify(){return this.check(t$())}})}),a4=q(`ZodString`,(e,t)=>{nq.init(e,t),i4.init(e,t),e.email=t=>e.check(jZ(s4,t)),e.url=t=>e.check(LZ(u4,t)),e.jwt=t=>e.check($Z(E4,t)),e.emoji=t=>e.check(RZ(d4,t)),e.guid=t=>e.check(MZ(c4,t)),e.uuid=t=>e.check(NZ(l4,t)),e.uuidv4=t=>e.check(PZ(l4,t)),e.uuidv6=t=>e.check(FZ(l4,t)),e.uuidv7=t=>e.check(IZ(l4,t)),e.nanoid=t=>e.check(zZ(f4,t)),e.guid=t=>e.check(MZ(c4,t)),e.cuid=t=>e.check(BZ(p4,t)),e.cuid2=t=>e.check(VZ(m4,t)),e.ulid=t=>e.check(HZ(h4,t)),e.base64=t=>e.check(XZ(C4,t)),e.base64url=t=>e.check(ZZ(w4,t)),e.xid=t=>e.check(UZ(g4,t)),e.ksuid=t=>e.check(WZ(_4,t)),e.ipv4=t=>e.check(GZ(v4,t)),e.ipv6=t=>e.check(KZ(b4,t)),e.cidrv4=t=>e.check(JZ(x4,t)),e.cidrv6=t=>e.check(YZ(S4,t)),e.e164=t=>e.check(QZ(T4,t)),e.datetime=t=>e.check(q1(t)),e.date=t=>e.check(J1(t)),e.time=t=>e.check(Y1(t)),e.duration=t=>e.check(X1(t))}),o4=q(`ZodStringFormat`,(e,t)=>{rq.init(e,t),i4.init(e,t)}),s4=q(`ZodEmail`,(e,t)=>{oq.init(e,t),o4.init(e,t)}),c4=q(`ZodGUID`,(e,t)=>{iq.init(e,t),o4.init(e,t)}),l4=q(`ZodUUID`,(e,t)=>{aq.init(e,t),o4.init(e,t)}),u4=q(`ZodURL`,(e,t)=>{sq.init(e,t),o4.init(e,t)}),d4=q(`ZodEmoji`,(e,t)=>{cq.init(e,t),o4.init(e,t)}),f4=q(`ZodNanoID`,(e,t)=>{lq.init(e,t),o4.init(e,t)}),p4=q(`ZodCUID`,(e,t)=>{uq.init(e,t),o4.init(e,t)}),m4=q(`ZodCUID2`,(e,t)=>{dq.init(e,t),o4.init(e,t)}),h4=q(`ZodULID`,(e,t)=>{fq.init(e,t),o4.init(e,t)}),g4=q(`ZodXID`,(e,t)=>{pq.init(e,t),o4.init(e,t)}),_4=q(`ZodKSUID`,(e,t)=>{mq.init(e,t),o4.init(e,t)}),v4=q(`ZodIPv4`,(e,t)=>{yq.init(e,t),o4.init(e,t)}),y4=q(`ZodMAC`,(e,t)=>{xq.init(e,t),o4.init(e,t)}),b4=q(`ZodIPv6`,(e,t)=>{bq.init(e,t),o4.init(e,t)}),x4=q(`ZodCIDRv4`,(e,t)=>{Sq.init(e,t),o4.init(e,t)}),S4=q(`ZodCIDRv6`,(e,t)=>{Cq.init(e,t),o4.init(e,t)}),C4=q(`ZodBase64`,(e,t)=>{wq.init(e,t),o4.init(e,t)}),w4=q(`ZodBase64URL`,(e,t)=>{Tq.init(e,t),o4.init(e,t)}),T4=q(`ZodE164`,(e,t)=>{Eq.init(e,t),o4.init(e,t)}),E4=q(`ZodJWT`,(e,t)=>{Dq.init(e,t),o4.init(e,t)}),D4=q(`ZodCustomStringFormat`,(e,t)=>{Oq.init(e,t),o4.init(e,t)}),O4=q(`ZodNumber`,(e,t)=>{kq.init(e,t),r4.init(e,t),e._zod.processJSONSchema=(t,n,r)=>J$(e,t,n,r),b0(e,`ZodNumber`,{gt(e,t){return this.check(kQ(e,t))},gte(e,t){return this.check(AQ(e,t))},min(e,t){return this.check(AQ(e,t))},lt(e,t){return this.check(DQ(e,t))},lte(e,t){return this.check(OQ(e,t))},max(e,t){return this.check(OQ(e,t))},int(e){return this.check(X0(e))},safe(e){return this.check(X0(e))},positive(e){return this.check(kQ(0,e))},nonnegative(e){return this.check(AQ(0,e))},negative(e){return this.check(DQ(0,e))},nonpositive(e){return this.check(OQ(0,e))},multipleOf(e,t){return this.check(FQ(e,t))},step(e,t){return this.check(FQ(e,t))},finite(){return this}});let n=e._zod.bag;e.minValue=Math.max(n.minimum??-1/0,n.exclusiveMinimum??-1/0)??null,e.maxValue=Math.min(n.maximum??1/0,n.exclusiveMaximum??1/0)??null,e.isInt=(n.format??``).includes(`int`)||Number.isSafeInteger(n.multipleOf??.5),e.isFinite=!0,e.format=n.format??null}),k4=q(`ZodNumberFormat`,(e,t)=>{Aq.init(e,t),O4.init(e,t)}),A4=q(`ZodBoolean`,(e,t)=>{jq.init(e,t),r4.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Y$(e,t,n,r)}),j4=q(`ZodBigInt`,(e,t)=>{Mq.init(e,t),r4.init(e,t),e._zod.processJSONSchema=(t,n,r)=>X$(e,t,n,r),e.gte=(t,n)=>e.check(AQ(t,n)),e.min=(t,n)=>e.check(AQ(t,n)),e.gt=(t,n)=>e.check(kQ(t,n)),e.gte=(t,n)=>e.check(AQ(t,n)),e.min=(t,n)=>e.check(AQ(t,n)),e.lt=(t,n)=>e.check(DQ(t,n)),e.lte=(t,n)=>e.check(OQ(t,n)),e.max=(t,n)=>e.check(OQ(t,n)),e.positive=t=>e.check(kQ(BigInt(0),t)),e.negative=t=>e.check(DQ(BigInt(0),t)),e.nonpositive=t=>e.check(OQ(BigInt(0),t)),e.nonnegative=t=>e.check(AQ(BigInt(0),t)),e.multipleOf=(t,n)=>e.check(FQ(t,n));let n=e._zod.bag;e.minValue=n.minimum??null,e.maxValue=n.maximum??null,e.format=n.format??null}),M4=q(`ZodBigIntFormat`,(e,t)=>{Nq.init(e,t),j4.init(e,t)}),N4=q(`ZodSymbol`,(e,t)=>{Pq.init(e,t),r4.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Z$(e,t,n,r)}),P4=q(`ZodUndefined`,(e,t)=>{Fq.init(e,t),r4.init(e,t),e._zod.processJSONSchema=(t,n,r)=>$$(e,t,n,r)}),F4=q(`ZodNull`,(e,t)=>{Iq.init(e,t),r4.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Q$(e,t,n,r)}),I4=q(`ZodAny`,(e,t)=>{Lq.init(e,t),r4.init(e,t),e._zod.processJSONSchema=(t,n,r)=>n1(e,t,n,r)}),L4=q(`ZodUnknown`,(e,t)=>{Rq.init(e,t),r4.init(e,t),e._zod.processJSONSchema=(t,n,r)=>r1(e,t,n,r)}),R4=q(`ZodNever`,(e,t)=>{zq.init(e,t),r4.init(e,t),e._zod.processJSONSchema=(t,n,r)=>t1(e,t,n,r)}),z4=q(`ZodVoid`,(e,t)=>{Bq.init(e,t),r4.init(e,t),e._zod.processJSONSchema=(t,n,r)=>e1(e,t,n,r)}),B4=q(`ZodDate`,(e,t)=>{Vq.init(e,t),r4.init(e,t),e._zod.processJSONSchema=(t,n,r)=>i1(e,t,n,r),e.min=(t,n)=>e.check(AQ(t,n)),e.max=(t,n)=>e.check(OQ(t,n));let n=e._zod.bag;e.minDate=n.minimum?new Date(n.minimum):null,e.maxDate=n.maximum?new Date(n.maximum):null}),V4=q(`ZodArray`,(e,t)=>{Hq.init(e,t),r4.init(e,t),e._zod.processJSONSchema=(t,n,r)=>g1(e,t,n,r),e.element=t.element,b0(e,`ZodArray`,{min(e,t){return this.check(BQ(e,t))},nonempty(e){return this.check(BQ(1,e))},max(e,t){return this.check(zQ(e,t))},length(e,t){return this.check(VQ(e,t))},unwrap(){return this.element}})}),H4=q(`ZodObject`,(e,t)=>{Wq.init(e,t),r4.init(e,t),e._zod.processJSONSchema=(t,n,r)=>_1(e,t,n,r),fU(e,`shape`,()=>t.shape),b0(e,`ZodObject`,{keyof(){return D2(Object.keys(this._zod.def.shape))},catchall(e){return this.clone({...this._zod.def,catchall:e})},passthrough(){return this.clone({...this._zod.def,catchall:l2()})},loose(){return this.clone({...this._zod.def,catchall:l2()})},strict(){return this.clone({...this._zod.def,catchall:u2()})},strip(){return this.clone({...this._zod.def,catchall:void 0})},extend(e){return NU(this,e)},safeExtend(e){return PU(this,e)},merge(e){return FU(this,e)},pick(e){return jU(this,e)},omit(e){return MU(this,e)},partial(...e){return IU(t3,this,e[0])},required(...e){return LU(o3,this,e[0])}})}),U4=q(`ZodUnion`,(e,t)=>{Gq.init(e,t),r4.init(e,t),e._zod.processJSONSchema=(t,n,r)=>v1(e,t,n,r),e.options=t.options}),W4=q(`ZodXor`,(e,t)=>{U4.init(e,t),Kq.init(e,t),e._zod.processJSONSchema=(t,n,r)=>v1(e,t,n,r),e.options=t.options}),G4=q(`ZodDiscriminatedUnion`,(e,t)=>{U4.init(e,t),qq.init(e,t)}),K4=q(`ZodIntersection`,(e,t)=>{Jq.init(e,t),r4.init(e,t),e._zod.processJSONSchema=(t,n,r)=>y1(e,t,n,r)}),q4=q(`ZodTuple`,(e,t)=>{Yq.init(e,t),r4.init(e,t),e._zod.processJSONSchema=(t,n,r)=>b1(e,t,n,r),e.rest=t=>e.clone({...e._zod.def,rest:t})}),J4=q(`ZodRecord`,(e,t)=>{Xq.init(e,t),r4.init(e,t),e._zod.processJSONSchema=(t,n,r)=>x1(e,t,n,r),e.keyType=t.keyType,e.valueType=t.valueType}),Y4=q(`ZodMap`,(e,t)=>{Zq.init(e,t),r4.init(e,t),e._zod.processJSONSchema=(t,n,r)=>m1(e,t,n,r),e.keyType=t.keyType,e.valueType=t.valueType,e.min=(...t)=>e.check(LQ(...t)),e.nonempty=t=>e.check(LQ(1,t)),e.max=(...t)=>e.check(IQ(...t)),e.size=(...t)=>e.check(RQ(...t))}),X4=q(`ZodSet`,(e,t)=>{Qq.init(e,t),r4.init(e,t),e._zod.processJSONSchema=(t,n,r)=>h1(e,t,n,r),e.min=(...t)=>e.check(LQ(...t)),e.nonempty=t=>e.check(LQ(1,t)),e.max=(...t)=>e.check(IQ(...t)),e.size=(...t)=>e.check(RQ(...t))}),Z4=q(`ZodEnum`,(e,t)=>{$q.init(e,t),r4.init(e,t),e._zod.processJSONSchema=(t,n,r)=>a1(e,t,n,r),e.enum=t.entries,e.options=Object.values(t.entries);let n=new Set(Object.keys(t.entries));e.extract=(e,r)=>{let i={};for(let r of e)if(n.has(r))i[r]=t.entries[r];else throw Error(`Key ${r} not found in enum`);return new Z4({...t,checks:[],...Y(r),entries:i})},e.exclude=(e,r)=>{let i={...t.entries};for(let t of e)if(n.has(t))delete i[t];else throw Error(`Key ${t} not found in enum`);return new Z4({...t,checks:[],...Y(r),entries:i})}}),Q4=q(`ZodLiteral`,(e,t)=>{eJ.init(e,t),r4.init(e,t),e._zod.processJSONSchema=(t,n,r)=>o1(e,t,n,r),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if(t.values.length>1)throw Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})}),$4=q(`ZodFile`,(e,t)=>{tJ.init(e,t),r4.init(e,t),e._zod.processJSONSchema=(t,n,r)=>l1(e,t,n,r),e.min=(t,n)=>e.check(LQ(t,n)),e.max=(t,n)=>e.check(IQ(t,n)),e.mime=(t,n)=>e.check(YQ(Array.isArray(t)?t:[t],n))}),e3=q(`ZodTransform`,(e,t)=>{nJ.init(e,t),r4.init(e,t),e._zod.processJSONSchema=(t,n,r)=>p1(e,t,n,r),e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new ZH(e.constructor.name);n.addIssue=r=>{if(typeof r==`string`)n.issues.push(KU(r,n.value,t));else{let t=r;t.fatal&&(t.continue=!1),t.code??=`custom`,t.input??=n.value,t.inst??=e,n.issues.push(KU(t))}};let i=t.transform(n.value,n);return i instanceof Promise?i.then(e=>(n.value=e,n.fallback=!0,n)):(n.value=i,n.fallback=!0,n)}}),t3=q(`ZodOptional`,(e,t)=>{rJ.init(e,t),r4.init(e,t),e._zod.processJSONSchema=(t,n,r)=>A1(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),n3=q(`ZodExactOptional`,(e,t)=>{iJ.init(e,t),r4.init(e,t),e._zod.processJSONSchema=(t,n,r)=>A1(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),r3=q(`ZodNullable`,(e,t)=>{aJ.init(e,t),r4.init(e,t),e._zod.processJSONSchema=(t,n,r)=>S1(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),i3=q(`ZodDefault`,(e,t)=>{oJ.init(e,t),r4.init(e,t),e._zod.processJSONSchema=(t,n,r)=>w1(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap}),a3=q(`ZodPrefault`,(e,t)=>{sJ.init(e,t),r4.init(e,t),e._zod.processJSONSchema=(t,n,r)=>T1(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),o3=q(`ZodNonOptional`,(e,t)=>{cJ.init(e,t),r4.init(e,t),e._zod.processJSONSchema=(t,n,r)=>C1(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),s3=q(`ZodSuccess`,(e,t)=>{lJ.init(e,t),r4.init(e,t),e._zod.processJSONSchema=(t,n,r)=>u1(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),c3=q(`ZodCatch`,(e,t)=>{uJ.init(e,t),r4.init(e,t),e._zod.processJSONSchema=(t,n,r)=>E1(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap}),l3=q(`ZodNaN`,(e,t)=>{dJ.init(e,t),r4.init(e,t),e._zod.processJSONSchema=(t,n,r)=>s1(e,t,n,r)}),u3=q(`ZodPipe`,(e,t)=>{fJ.init(e,t),r4.init(e,t),e._zod.processJSONSchema=(t,n,r)=>D1(e,t,n,r),e.in=t.in,e.out=t.out}),d3=q(`ZodCodec`,(e,t)=>{u3.init(e,t),pJ.init(e,t)}),f3=q(`ZodPreprocess`,(e,t)=>{u3.init(e,t),mJ.init(e,t)}),p3=q(`ZodReadonly`,(e,t)=>{hJ.init(e,t),r4.init(e,t),e._zod.processJSONSchema=(t,n,r)=>O1(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),m3=q(`ZodTemplateLiteral`,(e,t)=>{gJ.init(e,t),r4.init(e,t),e._zod.processJSONSchema=(t,n,r)=>c1(e,t,n,r)}),h3=q(`ZodLazy`,(e,t)=>{yJ.init(e,t),r4.init(e,t),e._zod.processJSONSchema=(t,n,r)=>j1(e,t,n,r),e.unwrap=()=>e._zod.def.getter()}),g3=q(`ZodPromise`,(e,t)=>{vJ.init(e,t),r4.init(e,t),e._zod.processJSONSchema=(t,n,r)=>k1(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),_3=q(`ZodFunction`,(e,t)=>{_J.init(e,t),r4.init(e,t),e._zod.processJSONSchema=(t,n,r)=>f1(e,t,n,r)}),v3=q(`ZodCustom`,(e,t)=>{bJ.init(e,t),r4.init(e,t),e._zod.processJSONSchema=(t,n,r)=>d1(e,t,n,r)}),y3=j$,b3=M$,x3=(...e)=>N$({Codec:d3,Boolean:A4,String:a4},...e)}));function C3(e){KH({customError:e})}function w3(){return KH().customError}var T3,E3,D3=o((()=>{z1(),T3={invalid_type:`invalid_type`,too_big:`too_big`,too_small:`too_small`,invalid_format:`invalid_format`,not_multiple_of:`not_multiple_of`,unrecognized_keys:`unrecognized_keys`,invalid_union:`invalid_union`,invalid_key:`invalid_key`,invalid_element:`invalid_element`,invalid_value:`invalid_value`,custom:`custom`},E3||={}}));function O3(e,t){let n=e.$schema;return n===`https://json-schema.org/draft/2020-12/schema`?`draft-2020-12`:n===`http://json-schema.org/draft-07/schema#`?`draft-7`:n===`http://json-schema.org/draft-04/schema#`?`draft-4`:t??`draft-2020-12`}function k3(e,t){if(!e.startsWith(`#`))throw Error(`External $ref is not supported, only local refs (#/...) are allowed`);let n=e.slice(1).split(`/`).filter(Boolean);if(n.length===0)return t.rootSchema;let r=t.version===`draft-2020-12`?`$defs`:`definitions`;if(n[0]===r){let r=n[1];if(!r||!t.defs[r])throw Error(`Reference not found: ${e}`);return t.defs[r]}throw Error(`Reference not found: ${e}`)}function A3(e,t){if(e.not!==void 0){if(typeof e.not==`object`&&Object.keys(e.not).length===0)return $.never();throw Error(`not is not supported in Zod (except { not: {} } for never)`)}if(e.unevaluatedItems!==void 0)throw Error(`unevaluatedItems is not supported`);if(e.unevaluatedProperties!==void 0)throw Error(`unevaluatedProperties is not supported`);if(e.if!==void 0||e.then!==void 0||e.else!==void 0)throw Error(`Conditional schemas (if/then/else) are not supported`);if(e.dependentSchemas!==void 0||e.dependentRequired!==void 0)throw Error(`dependentSchemas and dependentRequired are not supported`);if(e.$ref){let n=e.$ref;if(t.refs.has(n))return t.refs.get(n);if(t.processing.has(n))return $.lazy(()=>{if(!t.refs.has(n))throw Error(`Circular reference not resolved: ${n}`);return t.refs.get(n)});t.processing.add(n);let r=j3(k3(n,t),t);return t.refs.set(n,r),t.processing.delete(n),r}if(e.enum!==void 0){let n=e.enum;if(t.version===`openapi-3.0`&&e.nullable===!0&&n.length===1&&n[0]===null)return $.null();if(n.length===0)return $.never();if(n.length===1)return $.literal(n[0]);if(n.every(e=>typeof e==`string`))return $.enum(n);let r=n.map(e=>$.literal(e));return r.length<2?r[0]:$.union([r[0],r[1],...r.slice(2)])}if(e.const!==void 0)return $.literal(e.const);let n=e.type;if(Array.isArray(n)){let r=n.map(n=>A3({...e,type:n},t));return r.length===0?$.never():r.length===1?r[0]:$.union(r)}if(!n)return $.any();let r;switch(n){case`string`:{let t=$.string();if(e.format){let n=e.format;n===`email`?t=t.check($.email()):n===`uri`||n===`uri-reference`?t=t.check($.url()):n===`uuid`||n===`guid`?t=t.check($.uuid()):n===`date-time`?t=t.check($.iso.datetime()):n===`date`?t=t.check($.iso.date()):n===`time`?t=t.check($.iso.time()):n===`duration`?t=t.check($.iso.duration()):n===`ipv4`?t=t.check($.ipv4()):n===`ipv6`?t=t.check($.ipv6()):n===`mac`?t=t.check($.mac()):n===`cidr`?t=t.check($.cidrv4()):n===`cidr-v6`?t=t.check($.cidrv6()):n===`base64`?t=t.check($.base64()):n===`base64url`?t=t.check($.base64url()):n===`e164`?t=t.check($.e164()):n===`jwt`?t=t.check($.jwt()):n===`emoji`?t=t.check($.emoji()):n===`nanoid`?t=t.check($.nanoid()):n===`cuid`?t=t.check($.cuid()):n===`cuid2`?t=t.check($.cuid2()):n===`ulid`?t=t.check($.ulid()):n===`xid`?t=t.check($.xid()):n===`ksuid`&&(t=t.check($.ksuid()))}typeof e.minLength==`number`&&(t=t.min(e.minLength)),typeof e.maxLength==`number`&&(t=t.max(e.maxLength)),e.pattern&&(t=t.regex(new RegExp(e.pattern))),r=t;break}case`number`:case`integer`:{let t=n===`integer`?$.number().int():$.number();typeof e.minimum==`number`&&(t=t.min(e.minimum)),typeof e.maximum==`number`&&(t=t.max(e.maximum)),typeof e.exclusiveMinimum==`number`?t=t.gt(e.exclusiveMinimum):e.exclusiveMinimum===!0&&typeof e.minimum==`number`&&(t=t.gt(e.minimum)),typeof e.exclusiveMaximum==`number`?t=t.lt(e.exclusiveMaximum):e.exclusiveMaximum===!0&&typeof e.maximum==`number`&&(t=t.lt(e.maximum)),typeof e.multipleOf==`number`&&(t=t.multipleOf(e.multipleOf)),r=t;break}case`boolean`:r=$.boolean();break;case`null`:r=$.null();break;case`object`:{let n={},i=e.properties||{},a=new Set(e.required||[]);for(let[e,r]of Object.entries(i)){let i=j3(r,t);n[e]=a.has(e)?i:i.optional()}if(e.propertyNames){let i=j3(e.propertyNames,t),a=e.additionalProperties&&typeof e.additionalProperties==`object`?j3(e.additionalProperties,t):$.any();if(Object.keys(n).length===0){r=$.record(i,a);break}let o=$.object(n).passthrough(),s=$.looseRecord(i,a);r=$.intersection(o,s);break}if(e.patternProperties){let i=e.patternProperties,a=Object.keys(i),o=[];for(let e of a){let n=j3(i[e],t),r=$.string().regex(new RegExp(e));o.push($.looseRecord(r,n))}let s=[];if(Object.keys(n).length>0&&s.push($.object(n).passthrough()),s.push(...o),s.length===0)r=$.object({}).passthrough();else if(s.length===1)r=s[0];else{let e=$.intersection(s[0],s[1]);for(let t=2;tj3(e,t)),o=i&&typeof i==`object`&&!Array.isArray(i)?j3(i,t):void 0;r=o?$.tuple(a).rest(o):$.tuple(a),typeof e.minItems==`number`&&(r=r.check($.minLength(e.minItems))),typeof e.maxItems==`number`&&(r=r.check($.maxLength(e.maxItems)))}else if(Array.isArray(i)){let n=i.map(e=>j3(e,t)),a=e.additionalItems&&typeof e.additionalItems==`object`?j3(e.additionalItems,t):void 0;r=a?$.tuple(n).rest(a):$.tuple(n),typeof e.minItems==`number`&&(r=r.check($.minLength(e.minItems))),typeof e.maxItems==`number`&&(r=r.check($.maxLength(e.maxItems)))}else if(i!==void 0){let n=j3(i,t),a=$.array(n);typeof e.minItems==`number`&&(a=a.min(e.minItems)),typeof e.maxItems==`number`&&(a=a.max(e.maxItems)),r=a}else r=$.array($.any());break}default:throw Error(`Unsupported type: ${n}`)}return r}function j3(e,t){if(typeof e==`boolean`)return e?$.any():$.never();let n=A3(e,t),r=e.type||e.enum!==void 0||e.const!==void 0;if(e.anyOf&&Array.isArray(e.anyOf)){let i=e.anyOf.map(e=>j3(e,t)),a=$.union(i);n=r?$.intersection(n,a):a}if(e.oneOf&&Array.isArray(e.oneOf)){let i=e.oneOf.map(e=>j3(e,t)),a=$.xor(i);n=r?$.intersection(n,a):a}if(e.allOf&&Array.isArray(e.allOf))if(e.allOf.length===0)n=r?n:$.any();else{let i=r?n:j3(e.allOf[0],t),a=+!r;for(let n=a;n0&&t.registry.add(n,i),e.description&&(n=n.describe(e.description)),n}function M3(e,t){if(typeof e==`boolean`)return e?$.any():$.never();let n;try{n=JSON.parse(JSON.stringify(e))}catch{throw Error(`fromJSONSchema input is not valid JSON (possibly cyclic); use $defs/$ref for recursive schemas`)}let r={version:O3(n,t?.defaultTarget),defs:n.$defs||n.definitions||{},refs:new Map,processing:new Set,rootSchema:n,registry:t?.registry??DZ};return j3(n,r)}var $,N3,P3=o((()=>{OZ(),G1(),t0(),S3(),$={...y0,...W1,iso:K1},N3=new Set(`$schema.$ref.$defs.definitions.$id.id.$comment.$anchor.$vocabulary.$dynamicRef.$dynamicAnchor.type.enum.const.anyOf.oneOf.allOf.not.properties.required.additionalProperties.patternProperties.propertyNames.minProperties.maxProperties.items.prefixItems.additionalItems.minItems.maxItems.uniqueItems.contains.minContains.maxContains.minLength.maxLength.pattern.format.minimum.maximum.exclusiveMinimum.exclusiveMaximum.multipleOf.description.default.contentEncoding.contentMediaType.contentSchema.unevaluatedItems.unevaluatedProperties.if.then.else.dependentSchemas.dependentRequired.nullable.readOnly`.split(`.`))})),F3=c({bigint:()=>z3,boolean:()=>R3,date:()=>B3,number:()=>L3,string:()=>I3});function I3(e){return AZ(a4,e)}function L3(e){return aQ(O4,e)}function R3(e){return fQ(A4,e)}function z3(e){return mQ(j4,e)}function B3(e){return TQ(B4,e)}var V3=o((()=>{z1(),S3()})),H3=c({$brand:()=>YH,$input:()=>TZ,$output:()=>wZ,NEVER:()=>JH,TimePrecision:()=>F$,ZodAny:()=>I4,ZodArray:()=>V4,ZodBase64:()=>C4,ZodBase64URL:()=>w4,ZodBigInt:()=>j4,ZodBigIntFormat:()=>M4,ZodBoolean:()=>A4,ZodCIDRv4:()=>x4,ZodCIDRv6:()=>S4,ZodCUID:()=>p4,ZodCUID2:()=>m4,ZodCatch:()=>c3,ZodCodec:()=>d3,ZodCustom:()=>v3,ZodCustomStringFormat:()=>D4,ZodDate:()=>B4,ZodDefault:()=>i3,ZodDiscriminatedUnion:()=>G4,ZodE164:()=>T4,ZodEmail:()=>s4,ZodEmoji:()=>d4,ZodEnum:()=>Z4,ZodError:()=>r0,ZodExactOptional:()=>n3,ZodFile:()=>$4,ZodFirstPartyTypeKind:()=>E3,ZodFunction:()=>_3,ZodGUID:()=>c4,ZodIPv4:()=>v4,ZodIPv6:()=>b4,ZodISODate:()=>Q1,ZodISODateTime:()=>Z1,ZodISODuration:()=>e0,ZodISOTime:()=>$1,ZodIntersection:()=>K4,ZodIssueCode:()=>T3,ZodJWT:()=>E4,ZodKSUID:()=>_4,ZodLazy:()=>h3,ZodLiteral:()=>Q4,ZodMAC:()=>y4,ZodMap:()=>Y4,ZodNaN:()=>l3,ZodNanoID:()=>f4,ZodNever:()=>R4,ZodNonOptional:()=>o3,ZodNull:()=>F4,ZodNullable:()=>r3,ZodNumber:()=>O4,ZodNumberFormat:()=>k4,ZodObject:()=>H4,ZodOptional:()=>t3,ZodPipe:()=>u3,ZodPrefault:()=>a3,ZodPreprocess:()=>f3,ZodPromise:()=>g3,ZodReadonly:()=>p3,ZodRealError:()=>i0,ZodRecord:()=>J4,ZodSet:()=>X4,ZodString:()=>a4,ZodStringFormat:()=>o4,ZodSuccess:()=>s3,ZodSymbol:()=>N4,ZodTemplateLiteral:()=>m3,ZodTransform:()=>e3,ZodTuple:()=>q4,ZodType:()=>r4,ZodULID:()=>h4,ZodURL:()=>u4,ZodUUID:()=>l4,ZodUndefined:()=>P4,ZodUnion:()=>U4,ZodUnknown:()=>L4,ZodVoid:()=>z4,ZodXID:()=>g4,ZodXor:()=>W4,_ZodString:()=>i4,_default:()=>F2,_function:()=>J2,any:()=>c2,array:()=>p2,base64:()=>V0,base64url:()=>H0,bigint:()=>n2,boolean:()=>t2,catch:()=>z2,check:()=>Y2,cidrv4:()=>z0,cidrv6:()=>B0,clone:()=>DU,codec:()=>H2,coerce:()=>F3,config:()=>KH,core:()=>R1,cuid:()=>j0,cuid2:()=>M0,custom:()=>X2,date:()=>f2,decode:()=>d0,decodeAsync:()=>p0,describe:()=>y3,discriminatedUnion:()=>y2,e164:()=>U0,email:()=>x0,emoji:()=>k0,encode:()=>u0,encodeAsync:()=>f0,endsWith:()=>qQ,enum:()=>D2,exactOptional:()=>M2,file:()=>k2,flattenError:()=>uW,float32:()=>Z0,float64:()=>Q0,formatError:()=>dW,fromJSONSchema:()=>M3,function:()=>J2,getErrorMap:()=>w3,globalRegistry:()=>DZ,gt:()=>kQ,gte:()=>AQ,guid:()=>S0,hash:()=>J0,hex:()=>q0,hostname:()=>K0,httpUrl:()=>O0,includes:()=>GQ,instanceof:()=>$2,int:()=>X0,int32:()=>$0,int64:()=>r2,intersection:()=>b2,invertCodec:()=>U2,ipv4:()=>I0,ipv6:()=>R0,iso:()=>K1,json:()=>e4,jwt:()=>W0,keyof:()=>m2,ksuid:()=>F0,lazy:()=>K2,length:()=>VQ,literal:()=>Q,locales:()=>bZ,looseObject:()=>g2,looseRecord:()=>w2,lowercase:()=>UQ,lt:()=>DQ,lte:()=>OQ,mac:()=>L0,map:()=>T2,maxLength:()=>zQ,maxSize:()=>IQ,meta:()=>b3,mime:()=>YQ,minLength:()=>BQ,minSize:()=>LQ,multipleOf:()=>FQ,nan:()=>B2,nanoid:()=>A0,nativeEnum:()=>O2,negative:()=>MQ,never:()=>u2,nonnegative:()=>PQ,nonoptional:()=>L2,nonpositive:()=>NQ,normalize:()=>ZQ,null:()=>s2,nullable:()=>N2,nullish:()=>P2,number:()=>Y0,object:()=>Z,optional:()=>j2,overwrite:()=>XQ,parse:()=>o0,parseAsync:()=>s0,partialRecord:()=>C2,pipe:()=>V2,positive:()=>jQ,prefault:()=>I2,preprocess:()=>t4,prettifyError:()=>mW,promise:()=>q2,property:()=>JQ,readonly:()=>W2,record:()=>S2,refine:()=>Z2,regex:()=>HQ,regexes:()=>WW,registry:()=>SZ,safeDecode:()=>h0,safeDecodeAsync:()=>_0,safeEncode:()=>m0,safeEncodeAsync:()=>g0,safeParse:()=>c0,safeParseAsync:()=>l0,set:()=>E2,setErrorMap:()=>C3,size:()=>RQ,slugify:()=>t$,startsWith:()=>KQ,strictObject:()=>h2,string:()=>X,stringFormat:()=>G0,stringbool:()=>x3,success:()=>R2,superRefine:()=>Q2,symbol:()=>a2,templateLiteral:()=>G2,toJSONSchema:()=>G$,toLowerCase:()=>$Q,toUpperCase:()=>e$,transform:()=>A2,treeifyError:()=>fW,trim:()=>QQ,tuple:()=>x2,uint32:()=>e2,uint64:()=>i2,ulid:()=>N0,undefined:()=>o2,union:()=>_2,unknown:()=>l2,uppercase:()=>WQ,url:()=>D0,util:()=>eU,uuid:()=>C0,uuidv4:()=>w0,uuidv6:()=>T0,uuidv7:()=>E0,void:()=>d2,xid:()=>P0,xor:()=>v2}),U3=o((()=>{z1(),S3(),G1(),a0(),v0(),D3(),QJ(),N1(),P3(),xZ(),t0(),V3(),KH(XJ())})),W3,G3=o((()=>{U3(),U3(),W3=H3})),K3=c({$brand:()=>YH,$input:()=>TZ,$output:()=>wZ,NEVER:()=>JH,TimePrecision:()=>F$,ZodAny:()=>I4,ZodArray:()=>V4,ZodBase64:()=>C4,ZodBase64URL:()=>w4,ZodBigInt:()=>j4,ZodBigIntFormat:()=>M4,ZodBoolean:()=>A4,ZodCIDRv4:()=>x4,ZodCIDRv6:()=>S4,ZodCUID:()=>p4,ZodCUID2:()=>m4,ZodCatch:()=>c3,ZodCodec:()=>d3,ZodCustom:()=>v3,ZodCustomStringFormat:()=>D4,ZodDate:()=>B4,ZodDefault:()=>i3,ZodDiscriminatedUnion:()=>G4,ZodE164:()=>T4,ZodEmail:()=>s4,ZodEmoji:()=>d4,ZodEnum:()=>Z4,ZodError:()=>r0,ZodExactOptional:()=>n3,ZodFile:()=>$4,ZodFirstPartyTypeKind:()=>E3,ZodFunction:()=>_3,ZodGUID:()=>c4,ZodIPv4:()=>v4,ZodIPv6:()=>b4,ZodISODate:()=>Q1,ZodISODateTime:()=>Z1,ZodISODuration:()=>e0,ZodISOTime:()=>$1,ZodIntersection:()=>K4,ZodIssueCode:()=>T3,ZodJWT:()=>E4,ZodKSUID:()=>_4,ZodLazy:()=>h3,ZodLiteral:()=>Q4,ZodMAC:()=>y4,ZodMap:()=>Y4,ZodNaN:()=>l3,ZodNanoID:()=>f4,ZodNever:()=>R4,ZodNonOptional:()=>o3,ZodNull:()=>F4,ZodNullable:()=>r3,ZodNumber:()=>O4,ZodNumberFormat:()=>k4,ZodObject:()=>H4,ZodOptional:()=>t3,ZodPipe:()=>u3,ZodPrefault:()=>a3,ZodPreprocess:()=>f3,ZodPromise:()=>g3,ZodReadonly:()=>p3,ZodRealError:()=>i0,ZodRecord:()=>J4,ZodSet:()=>X4,ZodString:()=>a4,ZodStringFormat:()=>o4,ZodSuccess:()=>s3,ZodSymbol:()=>N4,ZodTemplateLiteral:()=>m3,ZodTransform:()=>e3,ZodTuple:()=>q4,ZodType:()=>r4,ZodULID:()=>h4,ZodURL:()=>u4,ZodUUID:()=>l4,ZodUndefined:()=>P4,ZodUnion:()=>U4,ZodUnknown:()=>L4,ZodVoid:()=>z4,ZodXID:()=>g4,ZodXor:()=>W4,_ZodString:()=>i4,_default:()=>F2,_function:()=>J2,any:()=>c2,array:()=>p2,base64:()=>V0,base64url:()=>H0,bigint:()=>n2,boolean:()=>t2,catch:()=>z2,check:()=>Y2,cidrv4:()=>z0,cidrv6:()=>B0,clone:()=>DU,codec:()=>H2,coerce:()=>F3,config:()=>KH,core:()=>R1,cuid:()=>j0,cuid2:()=>M0,custom:()=>X2,date:()=>f2,decode:()=>d0,decodeAsync:()=>p0,default:()=>q3,describe:()=>y3,discriminatedUnion:()=>y2,e164:()=>U0,email:()=>x0,emoji:()=>k0,encode:()=>u0,encodeAsync:()=>f0,endsWith:()=>qQ,enum:()=>D2,exactOptional:()=>M2,file:()=>k2,flattenError:()=>uW,float32:()=>Z0,float64:()=>Q0,formatError:()=>dW,fromJSONSchema:()=>M3,function:()=>J2,getErrorMap:()=>w3,globalRegistry:()=>DZ,gt:()=>kQ,gte:()=>AQ,guid:()=>S0,hash:()=>J0,hex:()=>q0,hostname:()=>K0,httpUrl:()=>O0,includes:()=>GQ,instanceof:()=>$2,int:()=>X0,int32:()=>$0,int64:()=>r2,intersection:()=>b2,invertCodec:()=>U2,ipv4:()=>I0,ipv6:()=>R0,iso:()=>K1,json:()=>e4,jwt:()=>W0,keyof:()=>m2,ksuid:()=>F0,lazy:()=>K2,length:()=>VQ,literal:()=>Q,locales:()=>bZ,looseObject:()=>g2,looseRecord:()=>w2,lowercase:()=>UQ,lt:()=>DQ,lte:()=>OQ,mac:()=>L0,map:()=>T2,maxLength:()=>zQ,maxSize:()=>IQ,meta:()=>b3,mime:()=>YQ,minLength:()=>BQ,minSize:()=>LQ,multipleOf:()=>FQ,nan:()=>B2,nanoid:()=>A0,nativeEnum:()=>O2,negative:()=>MQ,never:()=>u2,nonnegative:()=>PQ,nonoptional:()=>L2,nonpositive:()=>NQ,normalize:()=>ZQ,null:()=>s2,nullable:()=>N2,nullish:()=>P2,number:()=>Y0,object:()=>Z,optional:()=>j2,overwrite:()=>XQ,parse:()=>o0,parseAsync:()=>s0,partialRecord:()=>C2,pipe:()=>V2,positive:()=>jQ,prefault:()=>I2,preprocess:()=>t4,prettifyError:()=>mW,promise:()=>q2,property:()=>JQ,readonly:()=>W2,record:()=>S2,refine:()=>Z2,regex:()=>HQ,regexes:()=>WW,registry:()=>SZ,safeDecode:()=>h0,safeDecodeAsync:()=>_0,safeEncode:()=>m0,safeEncodeAsync:()=>g0,safeParse:()=>c0,safeParseAsync:()=>l0,set:()=>E2,setErrorMap:()=>C3,size:()=>RQ,slugify:()=>t$,startsWith:()=>KQ,strictObject:()=>h2,string:()=>X,stringFormat:()=>G0,stringbool:()=>x3,success:()=>R2,superRefine:()=>Q2,symbol:()=>a2,templateLiteral:()=>G2,toJSONSchema:()=>G$,toLowerCase:()=>$Q,toUpperCase:()=>e$,transform:()=>A2,treeifyError:()=>fW,trim:()=>QQ,tuple:()=>x2,uint32:()=>e2,uint64:()=>i2,ulid:()=>N0,undefined:()=>o2,union:()=>_2,unknown:()=>l2,uppercase:()=>WQ,url:()=>D0,util:()=>eU,uuid:()=>C0,uuidv4:()=>w0,uuidv6:()=>T0,uuidv7:()=>E0,void:()=>d2,xid:()=>P0,xor:()=>v2,z:()=>H3}),q3,J3=o((()=>{G3(),G3(),q3=W3}));J3();var Y3=`io.modelcontextprotocol/related-task`,X3=X2(e=>e!==null&&(typeof e==`object`||typeof e==`function`)),Z3=_2([X(),Y0().int()]),Q3=X();g2({ttl:Y0().optional(),pollInterval:Y0().optional()});var $3=Z({ttl:Y0().optional()}),e6=Z({taskId:X()}),t6=g2({progressToken:Z3.optional(),[Y3]:e6.optional()}),n6=Z({_meta:t6.optional()}),r6=n6.extend({task:$3.optional()}),i6=e=>r6.safeParse(e).success,a6=Z({method:X(),params:n6.loose().optional()}),o6=Z({_meta:t6.optional()}),s6=Z({method:X(),params:o6.loose().optional()}),c6=g2({_meta:t6.optional()}),l6=_2([X(),Y0().int()]),u6=Z({jsonrpc:Q(`2.0`),id:l6,...a6.shape}).strict(),d6=e=>u6.safeParse(e).success,f6=Z({jsonrpc:Q(`2.0`),...s6.shape}).strict(),p6=e=>f6.safeParse(e).success,m6=Z({jsonrpc:Q(`2.0`),id:l6,result:c6}).strict(),h6=e=>m6.safeParse(e).success,g6;(function(e){e[e.ConnectionClosed=-32e3]=`ConnectionClosed`,e[e.RequestTimeout=-32001]=`RequestTimeout`,e[e.ParseError=-32700]=`ParseError`,e[e.InvalidRequest=-32600]=`InvalidRequest`,e[e.MethodNotFound=-32601]=`MethodNotFound`,e[e.InvalidParams=-32602]=`InvalidParams`,e[e.InternalError=-32603]=`InternalError`,e[e.UrlElicitationRequired=-32042]=`UrlElicitationRequired`})(g6||={});var _6=Z({jsonrpc:Q(`2.0`),id:l6.optional(),error:Z({code:Y0().int(),message:X(),data:l2().optional()})}).strict(),v6=e=>_6.safeParse(e).success,y6=_2([u6,f6,m6,_6]);_2([m6,_6]);var b6=c6.strict(),x6=o6.extend({requestId:l6.optional(),reason:X().optional()}),S6=s6.extend({method:Q(`notifications/cancelled`),params:x6}),C6=Z({icons:p2(Z({src:X(),mimeType:X().optional(),sizes:p2(X()).optional(),theme:D2([`light`,`dark`]).optional()})).optional()}),w6=Z({name:X(),title:X().optional()}),T6=w6.extend({...w6.shape,...C6.shape,version:X(),websiteUrl:X().optional(),description:X().optional()}),E6=t4(e=>e&&typeof e==`object`&&!Array.isArray(e)&&Object.keys(e).length===0?{form:{}}:e,b2(Z({form:b2(Z({applyDefaults:t2().optional()}),S2(X(),l2())).optional(),url:X3.optional()}),S2(X(),l2()).optional())),D6=g2({list:X3.optional(),cancel:X3.optional(),requests:g2({sampling:g2({createMessage:X3.optional()}).optional(),elicitation:g2({create:X3.optional()}).optional()}).optional()}),O6=g2({list:X3.optional(),cancel:X3.optional(),requests:g2({tools:g2({call:X3.optional()}).optional()}).optional()}),k6=Z({experimental:S2(X(),X3).optional(),sampling:Z({context:X3.optional(),tools:X3.optional()}).optional(),elicitation:E6.optional(),roots:Z({listChanged:t2().optional()}).optional(),tasks:D6.optional(),extensions:S2(X(),X3).optional()}),A6=n6.extend({protocolVersion:X(),capabilities:k6,clientInfo:T6}),j6=a6.extend({method:Q(`initialize`),params:A6}),M6=Z({experimental:S2(X(),X3).optional(),logging:X3.optional(),completions:X3.optional(),prompts:Z({listChanged:t2().optional()}).optional(),resources:Z({subscribe:t2().optional(),listChanged:t2().optional()}).optional(),tools:Z({listChanged:t2().optional()}).optional(),tasks:O6.optional(),extensions:S2(X(),X3).optional()}),N6=c6.extend({protocolVersion:X(),capabilities:M6,serverInfo:T6,instructions:X().optional()}),P6=s6.extend({method:Q(`notifications/initialized`),params:o6.optional()}),F6=a6.extend({method:Q(`ping`),params:n6.optional()}),I6=Z({progress:Y0(),total:j2(Y0()),message:j2(X())}),L6=Z({...o6.shape,...I6.shape,progressToken:Z3}),R6=s6.extend({method:Q(`notifications/progress`),params:L6}),z6=n6.extend({cursor:Q3.optional()}),B6=a6.extend({params:z6.optional()}),V6=c6.extend({nextCursor:Q3.optional()}),H6=D2([`working`,`input_required`,`completed`,`failed`,`cancelled`]),U6=Z({taskId:X(),status:H6,ttl:_2([Y0(),s2()]),createdAt:X(),lastUpdatedAt:X(),pollInterval:j2(Y0()),statusMessage:j2(X())}),W6=c6.extend({task:U6}),G6=o6.merge(U6),K6=s6.extend({method:Q(`notifications/tasks/status`),params:G6}),q6=a6.extend({method:Q(`tasks/get`),params:n6.extend({taskId:X()})}),J6=c6.merge(U6),Y6=a6.extend({method:Q(`tasks/result`),params:n6.extend({taskId:X()})});c6.loose();var X6=B6.extend({method:Q(`tasks/list`)}),Z6=V6.extend({tasks:p2(U6)}),Q6=a6.extend({method:Q(`tasks/cancel`),params:n6.extend({taskId:X()})}),$6=c6.merge(U6),e8=Z({uri:X(),mimeType:j2(X()),_meta:S2(X(),l2()).optional()}),t8=e8.extend({text:X()}),n8=X().refine(e=>{try{return atob(e),!0}catch{return!1}},{message:`Invalid Base64 string`}),r8=e8.extend({blob:n8}),i8=D2([`user`,`assistant`]),a8=Z({audience:p2(i8).optional(),priority:Y0().min(0).max(1).optional(),lastModified:q1({offset:!0}).optional()}),o8=Z({...w6.shape,...C6.shape,uri:X(),description:j2(X()),mimeType:j2(X()),size:j2(Y0()),annotations:a8.optional(),_meta:j2(g2({}))}),s8=Z({...w6.shape,...C6.shape,uriTemplate:X(),description:j2(X()),mimeType:j2(X()),annotations:a8.optional(),_meta:j2(g2({}))}),c8=B6.extend({method:Q(`resources/list`)}),l8=V6.extend({resources:p2(o8)}),u8=B6.extend({method:Q(`resources/templates/list`)}),d8=V6.extend({resourceTemplates:p2(s8)}),f8=n6.extend({uri:X()}),p8=f8,m8=a6.extend({method:Q(`resources/read`),params:p8}),h8=c6.extend({contents:p2(_2([t8,r8]))}),g8=s6.extend({method:Q(`notifications/resources/list_changed`),params:o6.optional()}),_8=f8,v8=a6.extend({method:Q(`resources/subscribe`),params:_8}),y8=f8,b8=a6.extend({method:Q(`resources/unsubscribe`),params:y8}),x8=o6.extend({uri:X()}),S8=s6.extend({method:Q(`notifications/resources/updated`),params:x8}),C8=Z({name:X(),description:j2(X()),required:j2(t2())}),w8=Z({...w6.shape,...C6.shape,description:j2(X()),arguments:j2(p2(C8)),_meta:j2(g2({}))}),T8=B6.extend({method:Q(`prompts/list`)}),E8=V6.extend({prompts:p2(w8)}),D8=n6.extend({name:X(),arguments:S2(X(),X()).optional()}),O8=a6.extend({method:Q(`prompts/get`),params:D8}),k8=Z({type:Q(`text`),text:X(),annotations:a8.optional(),_meta:S2(X(),l2()).optional()}),A8=Z({type:Q(`image`),data:n8,mimeType:X(),annotations:a8.optional(),_meta:S2(X(),l2()).optional()}),j8=Z({type:Q(`audio`),data:n8,mimeType:X(),annotations:a8.optional(),_meta:S2(X(),l2()).optional()}),M8=Z({type:Q(`tool_use`),name:X(),id:X(),input:S2(X(),l2()),_meta:S2(X(),l2()).optional()}),N8=Z({type:Q(`resource`),resource:_2([t8,r8]),annotations:a8.optional(),_meta:S2(X(),l2()).optional()}),P8=o8.extend({type:Q(`resource_link`)}),F8=_2([k8,A8,j8,P8,N8]),I8=Z({role:i8,content:F8}),L8=c6.extend({description:X().optional(),messages:p2(I8)}),R8=s6.extend({method:Q(`notifications/prompts/list_changed`),params:o6.optional()}),z8=Z({title:X().optional(),readOnlyHint:t2().optional(),destructiveHint:t2().optional(),idempotentHint:t2().optional(),openWorldHint:t2().optional()}),B8=Z({taskSupport:D2([`required`,`optional`,`forbidden`]).optional()}),V8=Z({...w6.shape,...C6.shape,description:X().optional(),inputSchema:Z({type:Q(`object`),properties:S2(X(),X3).optional(),required:p2(X()).optional()}).catchall(l2()),outputSchema:Z({type:Q(`object`),properties:S2(X(),X3).optional(),required:p2(X()).optional()}).catchall(l2()).optional(),annotations:z8.optional(),execution:B8.optional(),_meta:S2(X(),l2()).optional()}),H8=B6.extend({method:Q(`tools/list`)}),U8=V6.extend({tools:p2(V8)}),W8=c6.extend({content:p2(F8).default([]),structuredContent:S2(X(),l2()).optional(),isError:t2().optional()});W8.or(c6.extend({toolResult:l2()}));var G8=r6.extend({name:X(),arguments:S2(X(),l2()).optional()}),K8=a6.extend({method:Q(`tools/call`),params:G8}),q8=s6.extend({method:Q(`notifications/tools/list_changed`),params:o6.optional()});Z({autoRefresh:t2().default(!0),debounceMs:Y0().int().nonnegative().default(300)});var J8=D2([`debug`,`info`,`notice`,`warning`,`error`,`critical`,`alert`,`emergency`]),Y8=n6.extend({level:J8}),X8=a6.extend({method:Q(`logging/setLevel`),params:Y8}),Z8=o6.extend({level:J8,logger:X().optional(),data:l2()}),Q8=s6.extend({method:Q(`notifications/message`),params:Z8}),$8=Z({hints:p2(Z({name:X().optional()})).optional(),costPriority:Y0().min(0).max(1).optional(),speedPriority:Y0().min(0).max(1).optional(),intelligencePriority:Y0().min(0).max(1).optional()}),e5=Z({mode:D2([`auto`,`required`,`none`]).optional()}),t5=Z({type:Q(`tool_result`),toolUseId:X().describe(`The unique identifier for the corresponding tool call.`),content:p2(F8).default([]),structuredContent:Z({}).loose().optional(),isError:t2().optional(),_meta:S2(X(),l2()).optional()}),n5=y2(`type`,[k8,A8,j8]),r5=y2(`type`,[k8,A8,j8,M8,t5]),i5=Z({role:i8,content:_2([r5,p2(r5)]),_meta:S2(X(),l2()).optional()}),a5=r6.extend({messages:p2(i5),modelPreferences:$8.optional(),systemPrompt:X().optional(),includeContext:D2([`none`,`thisServer`,`allServers`]).optional(),temperature:Y0().optional(),maxTokens:Y0().int(),stopSequences:p2(X()).optional(),metadata:X3.optional(),tools:p2(V8).optional(),toolChoice:e5.optional()}),o5=a6.extend({method:Q(`sampling/createMessage`),params:a5}),s5=c6.extend({model:X(),stopReason:j2(D2([`endTurn`,`stopSequence`,`maxTokens`]).or(X())),role:i8,content:n5}),c5=c6.extend({model:X(),stopReason:j2(D2([`endTurn`,`stopSequence`,`maxTokens`,`toolUse`]).or(X())),role:i8,content:_2([r5,p2(r5)])}),l5=Z({type:Q(`boolean`),title:X().optional(),description:X().optional(),default:t2().optional()}),u5=Z({type:Q(`string`),title:X().optional(),description:X().optional(),minLength:Y0().optional(),maxLength:Y0().optional(),format:D2([`email`,`uri`,`date`,`date-time`]).optional(),default:X().optional()}),d5=Z({type:D2([`number`,`integer`]),title:X().optional(),description:X().optional(),minimum:Y0().optional(),maximum:Y0().optional(),default:Y0().optional()}),f5=Z({type:Q(`string`),title:X().optional(),description:X().optional(),enum:p2(X()),default:X().optional()}),p5=Z({type:Q(`string`),title:X().optional(),description:X().optional(),oneOf:p2(Z({const:X(),title:X()})),default:X().optional()}),m5=_2([_2([Z({type:Q(`string`),title:X().optional(),description:X().optional(),enum:p2(X()),enumNames:p2(X()).optional(),default:X().optional()}),_2([f5,p5]),_2([Z({type:Q(`array`),title:X().optional(),description:X().optional(),minItems:Y0().optional(),maxItems:Y0().optional(),items:Z({type:Q(`string`),enum:p2(X())}),default:p2(X()).optional()}),Z({type:Q(`array`),title:X().optional(),description:X().optional(),minItems:Y0().optional(),maxItems:Y0().optional(),items:Z({anyOf:p2(Z({const:X(),title:X()}))}),default:p2(X()).optional()})])]),l5,u5,d5]),h5=_2([r6.extend({mode:Q(`form`).optional(),message:X(),requestedSchema:Z({type:Q(`object`),properties:S2(X(),m5),required:p2(X()).optional()})}),r6.extend({mode:Q(`url`),message:X(),elicitationId:X(),url:X().url()})]),g5=a6.extend({method:Q(`elicitation/create`),params:h5}),_5=o6.extend({elicitationId:X()}),v5=s6.extend({method:Q(`notifications/elicitation/complete`),params:_5}),y5=c6.extend({action:D2([`accept`,`decline`,`cancel`]),content:t4(e=>e===null?void 0:e,S2(X(),_2([X(),Y0(),t2(),p2(X())])).optional())}),b5=Z({type:Q(`ref/resource`),uri:X()}),x5=Z({type:Q(`ref/prompt`),name:X()}),S5=n6.extend({ref:_2([x5,b5]),argument:Z({name:X(),value:X()}),context:Z({arguments:S2(X(),X()).optional()}).optional()}),C5=a6.extend({method:Q(`completion/complete`),params:S5}),w5=c6.extend({completion:g2({values:p2(X()).max(100),total:j2(Y0().int()),hasMore:j2(t2())})}),T5=Z({uri:X().startsWith(`file://`),name:X().optional(),_meta:S2(X(),l2()).optional()}),E5=a6.extend({method:Q(`roots/list`),params:n6.optional()}),D5=c6.extend({roots:p2(T5)}),O5=s6.extend({method:Q(`notifications/roots/list_changed`),params:o6.optional()});_2([F6,j6,C5,X8,O8,T8,c8,u8,m8,v8,b8,K8,H8,q6,Y6,X6,Q6]),_2([S6,R6,P6,O5,K6]),_2([b6,s5,c5,y5,D5,J6,Z6,W6]),_2([F6,o5,g5,E5,q6,Y6,X6,Q6]),_2([S6,R6,Q8,S8,g8,q8,R8,K6,v5]),_2([b6,N6,w5,L8,E8,l8,d8,h8,W8,U8,J6,Z6,W6]);var k5=class e extends Error{constructor(e,t,n){super(`MCP error ${e}: ${t}`),this.code=e,this.data=n,this.name=`McpError`}static fromError(t,n,r){if(t===g6.UrlElicitationRequired&&r){let e=r;if(e.elicitations)return new A5(e.elicitations,n)}return new e(t,n,r)}},A5=class extends k5{constructor(e,t=`URL elicitation${e.length>1?`s`:``} required`){super(g6.UrlElicitationRequired,t,{elicitations:e})}get elicitations(){return this.data?.elicitations??[]}};function j5(e){return e===`completed`||e===`failed`||e===`cancelled`}function M5(e){let t=H1(e)?.method;if(!t)throw Error(`Schema is missing a method literal`);let n=U1(t);if(typeof n!=`string`)throw Error(`Schema method literal must be a string`);return n}function N5(e,t){let n=V1(e,t);if(!n.success)throw n.error;return n.data}var P5=class{constructor(e){this._options=e,this._requestMessageId=0,this._requestHandlers=new Map,this._requestHandlerAbortControllers=new Map,this._notificationHandlers=new Map,this._responseHandlers=new Map,this._progressHandlers=new Map,this._timeoutInfo=new Map,this._pendingDebouncedNotifications=new Set,this._taskProgressTokens=new Map,this._requestResolvers=new Map,this.setNotificationHandler(S6,e=>{this._oncancel(e)}),this.setNotificationHandler(R6,e=>{this._onprogress(e)}),this.setRequestHandler(F6,e=>({})),this._taskStore=e?.taskStore,this._taskMessageQueue=e?.taskMessageQueue,this._taskStore&&(this.setRequestHandler(q6,async(e,t)=>{let n=await this._taskStore.getTask(e.params.taskId,t.sessionId);if(!n)throw new k5(g6.InvalidParams,`Failed to retrieve task: Task not found`);return{...n}}),this.setRequestHandler(Y6,async(e,t)=>{let n=async()=>{let r=e.params.taskId;if(this._taskMessageQueue){let e;for(;e=await this._taskMessageQueue.dequeue(r,t.sessionId);){if(e.type===`response`||e.type===`error`){let t=e.message,n=t.id,r=this._requestResolvers.get(n);if(r)if(this._requestResolvers.delete(n),e.type===`response`)r(t);else{let e=t;r(new k5(e.error.code,e.error.message,e.error.data))}else{let t=e.type===`response`?`Response`:`Error`;this._onerror(Error(`${t} handler missing for request ${n}`))}continue}await this._transport?.send(e.message,{relatedRequestId:t.requestId})}}let i=await this._taskStore.getTask(r,t.sessionId);if(!i)throw new k5(g6.InvalidParams,`Task not found: ${r}`);if(!j5(i.status))return await this._waitForTaskUpdate(r,t.signal),await n();if(j5(i.status)){let e=await this._taskStore.getTaskResult(r,t.sessionId);return this._clearTaskQueue(r),{...e,_meta:{...e._meta,[Y3]:{taskId:r}}}}return await n()};return await n()}),this.setRequestHandler(X6,async(e,t)=>{try{let{tasks:n,nextCursor:r}=await this._taskStore.listTasks(e.params?.cursor,t.sessionId);return{tasks:n,nextCursor:r,_meta:{}}}catch(e){throw new k5(g6.InvalidParams,`Failed to list tasks: ${e instanceof Error?e.message:String(e)}`)}}),this.setRequestHandler(Q6,async(e,t)=>{try{let n=await this._taskStore.getTask(e.params.taskId,t.sessionId);if(!n)throw new k5(g6.InvalidParams,`Task not found: ${e.params.taskId}`);if(j5(n.status))throw new k5(g6.InvalidParams,`Cannot cancel task in terminal status: ${n.status}`);await this._taskStore.updateTaskStatus(e.params.taskId,`cancelled`,`Client cancelled task execution.`,t.sessionId),this._clearTaskQueue(e.params.taskId);let r=await this._taskStore.getTask(e.params.taskId,t.sessionId);if(!r)throw new k5(g6.InvalidParams,`Task not found after cancellation: ${e.params.taskId}`);return{_meta:{},...r}}catch(e){throw e instanceof k5?e:new k5(g6.InvalidRequest,`Failed to cancel task: ${e instanceof Error?e.message:String(e)}`)}}))}async _oncancel(e){e.params.requestId&&this._requestHandlerAbortControllers.get(e.params.requestId)?.abort(e.params.reason)}_setupTimeout(e,t,n,r,i=!1){this._timeoutInfo.set(e,{timeoutId:setTimeout(r,t),startTime:Date.now(),timeout:t,maxTotalTimeout:n,resetTimeoutOnProgress:i,onTimeout:r})}_resetTimeout(e){let t=this._timeoutInfo.get(e);if(!t)return!1;let n=Date.now()-t.startTime;if(t.maxTotalTimeout&&n>=t.maxTotalTimeout)throw this._timeoutInfo.delete(e),k5.fromError(g6.RequestTimeout,`Maximum total timeout exceeded`,{maxTotalTimeout:t.maxTotalTimeout,totalElapsed:n});return clearTimeout(t.timeoutId),t.timeoutId=setTimeout(t.onTimeout,t.timeout),!0}_cleanupTimeout(e){let t=this._timeoutInfo.get(e);t&&(clearTimeout(t.timeoutId),this._timeoutInfo.delete(e))}async connect(e){if(this._transport)throw Error(`Already connected to a transport. Call close() before connecting to a new transport, or use a separate Protocol instance per connection.`);this._transport=e;let t=this.transport?.onclose;this._transport.onclose=()=>{t?.(),this._onclose()};let n=this.transport?.onerror;this._transport.onerror=e=>{n?.(e),this._onerror(e)};let r=this._transport?.onmessage;this._transport.onmessage=(e,t)=>{r?.(e,t),h6(e)||v6(e)?this._onresponse(e):d6(e)?this._onrequest(e,t):p6(e)?this._onnotification(e):this._onerror(Error(`Unknown message type: ${JSON.stringify(e)}`))},await this._transport.start()}_onclose(){let e=this._responseHandlers;this._responseHandlers=new Map,this._progressHandlers.clear(),this._taskProgressTokens.clear(),this._pendingDebouncedNotifications.clear();for(let e of this._timeoutInfo.values())clearTimeout(e.timeoutId);this._timeoutInfo.clear();for(let e of this._requestHandlerAbortControllers.values())e.abort();this._requestHandlerAbortControllers.clear();let t=k5.fromError(g6.ConnectionClosed,`Connection closed`);this._transport=void 0,this.onclose?.();for(let n of e.values())n(t)}_onerror(e){this.onerror?.(e)}_onnotification(e){let t=this._notificationHandlers.get(e.method)??this.fallbackNotificationHandler;t!==void 0&&Promise.resolve().then(()=>t(e)).catch(e=>this._onerror(Error(`Uncaught error in notification handler: ${e}`)))}_onrequest(e,t){let n=this._requestHandlers.get(e.method)??this.fallbackRequestHandler,r=this._transport,i=e.params?._meta?.[Y3]?.taskId;if(n===void 0){let t={jsonrpc:`2.0`,id:e.id,error:{code:g6.MethodNotFound,message:`Method not found`}};i&&this._taskMessageQueue?this._enqueueTaskMessage(i,{type:`error`,message:t,timestamp:Date.now()},r?.sessionId).catch(e=>this._onerror(Error(`Failed to enqueue error response: ${e}`))):r?.send(t).catch(e=>this._onerror(Error(`Failed to send an error response: ${e}`)));return}let a=new AbortController;this._requestHandlerAbortControllers.set(e.id,a);let o=i6(e.params)?e.params.task:void 0,s=this._taskStore?this.requestTaskStore(e,r?.sessionId):void 0,c={signal:a.signal,sessionId:r?.sessionId,_meta:e.params?._meta,sendNotification:async t=>{if(a.signal.aborted)return;let n={relatedRequestId:e.id};i&&(n.relatedTask={taskId:i}),await this.notification(t,n)},sendRequest:async(t,n,r)=>{if(a.signal.aborted)throw new k5(g6.ConnectionClosed,`Request was cancelled`);let o={...r,relatedRequestId:e.id};i&&!o.relatedTask&&(o.relatedTask={taskId:i});let c=o.relatedTask?.taskId??i;return c&&s&&await s.updateTaskStatus(c,`input_required`),await this.request(t,n,o)},authInfo:t?.authInfo,requestId:e.id,requestInfo:t?.requestInfo,taskId:i,taskStore:s,taskRequestedTtl:o?.ttl,closeSSEStream:t?.closeSSEStream,closeStandaloneSSEStream:t?.closeStandaloneSSEStream};Promise.resolve().then(()=>{o&&this.assertTaskHandlerCapability(e.method)}).then(()=>n(e,c)).then(async t=>{if(a.signal.aborted)return;let n={result:t,jsonrpc:`2.0`,id:e.id};i&&this._taskMessageQueue?await this._enqueueTaskMessage(i,{type:`response`,message:n,timestamp:Date.now()},r?.sessionId):await r?.send(n)},async t=>{if(a.signal.aborted)return;let n={jsonrpc:`2.0`,id:e.id,error:{code:Number.isSafeInteger(t.code)?t.code:g6.InternalError,message:t.message??`Internal error`,...t.data!==void 0&&{data:t.data}}};i&&this._taskMessageQueue?await this._enqueueTaskMessage(i,{type:`error`,message:n,timestamp:Date.now()},r?.sessionId):await r?.send(n)}).catch(e=>this._onerror(Error(`Failed to send response: ${e}`))).finally(()=>{this._requestHandlerAbortControllers.get(e.id)===a&&this._requestHandlerAbortControllers.delete(e.id)})}_onprogress(e){let{progressToken:t,...n}=e.params,r=Number(t),i=this._progressHandlers.get(r);if(!i){this._onerror(Error(`Received a progress notification for an unknown token: ${JSON.stringify(e)}`));return}let a=this._responseHandlers.get(r),o=this._timeoutInfo.get(r);if(o&&a&&o.resetTimeoutOnProgress)try{this._resetTimeout(r)}catch(e){this._responseHandlers.delete(r),this._progressHandlers.delete(r),this._cleanupTimeout(r),a(e);return}i(n)}_onresponse(e){let t=Number(e.id),n=this._requestResolvers.get(t);if(n){this._requestResolvers.delete(t),h6(e)?n(e):n(new k5(e.error.code,e.error.message,e.error.data));return}let r=this._responseHandlers.get(t);if(r===void 0){this._onerror(Error(`Received a response for an unknown message ID: ${JSON.stringify(e)}`));return}this._responseHandlers.delete(t),this._cleanupTimeout(t);let i=!1;if(h6(e)&&e.result&&typeof e.result==`object`){let n=e.result;if(n.task&&typeof n.task==`object`){let e=n.task;typeof e.taskId==`string`&&(i=!0,this._taskProgressTokens.set(e.taskId,t))}}i||this._progressHandlers.delete(t),h6(e)?r(e):r(k5.fromError(e.error.code,e.error.message,e.error.data))}get transport(){return this._transport}async close(){await this._transport?.close()}async*requestStream(e,t,n){let{task:r}=n??{};if(!r){try{yield{type:`result`,result:await this.request(e,t,n)}}catch(e){yield{type:`error`,error:e instanceof k5?e:new k5(g6.InternalError,String(e))}}return}let i;try{let r=await this.request(e,W6,n);if(r.task)i=r.task.taskId,yield{type:`taskCreated`,task:r.task};else throw new k5(g6.InternalError,`Task creation did not return a task`);for(;;){let e=await this.getTask({taskId:i},n);if(yield{type:`taskStatus`,task:e},j5(e.status)){e.status===`completed`?yield{type:`result`,result:await this.getTaskResult({taskId:i},t,n)}:e.status===`failed`?yield{type:`error`,error:new k5(g6.InternalError,`Task ${i} failed`)}:e.status===`cancelled`&&(yield{type:`error`,error:new k5(g6.InternalError,`Task ${i} was cancelled`)});return}if(e.status===`input_required`){yield{type:`result`,result:await this.getTaskResult({taskId:i},t,n)};return}let r=e.pollInterval??this._options?.defaultTaskPollInterval??1e3;await new Promise(e=>setTimeout(e,r)),n?.signal?.throwIfAborted()}}catch(e){yield{type:`error`,error:e instanceof k5?e:new k5(g6.InternalError,String(e))}}}request(e,t,n){let{relatedRequestId:r,resumptionToken:i,onresumptiontoken:a,task:o,relatedTask:s}=n??{};return new Promise((c,l)=>{let u=e=>{l(e)};if(!this._transport){u(Error(`Not connected`));return}if(this._options?.enforceStrictCapabilities===!0)try{this.assertCapabilityForMethod(e.method),o&&this.assertTaskCapability(e.method)}catch(e){u(e);return}n?.signal?.throwIfAborted();let d=this._requestMessageId++,f={...e,jsonrpc:`2.0`,id:d};n?.onprogress&&(this._progressHandlers.set(d,n.onprogress),f.params={...e.params,_meta:{...e.params?._meta||{},progressToken:d}}),o&&(f.params={...f.params,task:o}),s&&(f.params={...f.params,_meta:{...f.params?._meta||{},[Y3]:s}});let p=e=>{this._responseHandlers.delete(d),this._progressHandlers.delete(d),this._cleanupTimeout(d),this._transport?.send({jsonrpc:`2.0`,method:`notifications/cancelled`,params:{requestId:d,reason:String(e)}},{relatedRequestId:r,resumptionToken:i,onresumptiontoken:a}).catch(e=>this._onerror(Error(`Failed to send cancellation: ${e}`))),l(e instanceof k5?e:new k5(g6.RequestTimeout,String(e)))};this._responseHandlers.set(d,e=>{if(!n?.signal?.aborted){if(e instanceof Error)return l(e);try{let n=V1(t,e.result);n.success?c(n.data):l(n.error)}catch(e){l(e)}}}),n?.signal?.addEventListener(`abort`,()=>{p(n?.signal?.reason)});let m=n?.timeout??6e4;this._setupTimeout(d,m,n?.maxTotalTimeout,()=>p(k5.fromError(g6.RequestTimeout,`Request timed out`,{timeout:m})),n?.resetTimeoutOnProgress??!1);let h=s?.taskId;h?(this._requestResolvers.set(d,e=>{let t=this._responseHandlers.get(d);t?t(e):this._onerror(Error(`Response handler missing for side-channeled request ${d}`))}),this._enqueueTaskMessage(h,{type:`request`,message:f,timestamp:Date.now()}).catch(e=>{this._cleanupTimeout(d),l(e)})):this._transport.send(f,{relatedRequestId:r,resumptionToken:i,onresumptiontoken:a}).catch(e=>{this._cleanupTimeout(d),l(e)})})}async getTask(e,t){return this.request({method:`tasks/get`,params:e},J6,t)}async getTaskResult(e,t,n){return this.request({method:`tasks/result`,params:e},t,n)}async listTasks(e,t){return this.request({method:`tasks/list`,params:e},Z6,t)}async cancelTask(e,t){return this.request({method:`tasks/cancel`,params:e},$6,t)}async notification(e,t){if(!this._transport)throw Error(`Not connected`);this.assertNotificationCapability(e.method);let n=t?.relatedTask?.taskId;if(n){let r={...e,jsonrpc:`2.0`,params:{...e.params,_meta:{...e.params?._meta||{},[Y3]:t.relatedTask}}};await this._enqueueTaskMessage(n,{type:`notification`,message:r,timestamp:Date.now()});return}if((this._options?.debouncedNotificationMethods??[]).includes(e.method)&&!e.params&&!t?.relatedRequestId&&!t?.relatedTask){if(this._pendingDebouncedNotifications.has(e.method))return;this._pendingDebouncedNotifications.add(e.method),Promise.resolve().then(()=>{if(this._pendingDebouncedNotifications.delete(e.method),!this._transport)return;let n={...e,jsonrpc:`2.0`};t?.relatedTask&&(n={...n,params:{...n.params,_meta:{...n.params?._meta||{},[Y3]:t.relatedTask}}}),this._transport?.send(n,t).catch(e=>this._onerror(e))});return}let r={...e,jsonrpc:`2.0`};t?.relatedTask&&(r={...r,params:{...r.params,_meta:{...r.params?._meta||{},[Y3]:t.relatedTask}}}),await this._transport.send(r,t)}setRequestHandler(e,t){let n=M5(e);this.assertRequestHandlerCapability(n),this._requestHandlers.set(n,(n,r)=>{let i=N5(e,n);return Promise.resolve(t(i,r))})}removeRequestHandler(e){this._requestHandlers.delete(e)}assertCanSetRequestHandler(e){if(this._requestHandlers.has(e))throw Error(`A request handler for ${e} already exists, which would be overridden`)}setNotificationHandler(e,t){let n=M5(e);this._notificationHandlers.set(n,n=>{let r=N5(e,n);return Promise.resolve(t(r))})}removeNotificationHandler(e){this._notificationHandlers.delete(e)}_cleanupTaskProgressHandler(e){let t=this._taskProgressTokens.get(e);t!==void 0&&(this._progressHandlers.delete(t),this._taskProgressTokens.delete(e))}async _enqueueTaskMessage(e,t,n){if(!this._taskStore||!this._taskMessageQueue)throw Error(`Cannot enqueue task message: taskStore and taskMessageQueue are not configured`);let r=this._options?.maxTaskQueueSize;await this._taskMessageQueue.enqueue(e,t,n,r)}async _clearTaskQueue(e,t){if(this._taskMessageQueue){let n=await this._taskMessageQueue.dequeueAll(e,t);for(let t of n)if(t.type===`request`&&d6(t.message)){let n=t.message.id,r=this._requestResolvers.get(n);r?(r(new k5(g6.InternalError,`Task cancelled or completed`)),this._requestResolvers.delete(n)):this._onerror(Error(`Resolver missing for request ${n} during task ${e} cleanup`))}}}async _waitForTaskUpdate(e,t){let n=this._options?.defaultTaskPollInterval??1e3;try{let t=await this._taskStore?.getTask(e);t?.pollInterval&&(n=t.pollInterval)}catch{}return new Promise((e,r)=>{if(t.aborted){r(new k5(g6.InvalidRequest,`Request cancelled`));return}let i=setTimeout(e,n);t.addEventListener(`abort`,()=>{clearTimeout(i),r(new k5(g6.InvalidRequest,`Request cancelled`))},{once:!0})})}requestTaskStore(e,t){let n=this._taskStore;if(!n)throw Error(`No task store configured`);return{createTask:async r=>{if(!e)throw Error(`No request provided`);return await n.createTask(r,e.id,{method:e.method,params:e.params},t)},getTask:async e=>{let r=await n.getTask(e,t);if(!r)throw new k5(g6.InvalidParams,`Failed to retrieve task: Task not found`);return r},storeTaskResult:async(e,r,i)=>{await n.storeTaskResult(e,r,i,t);let a=await n.getTask(e,t);if(a){let t=K6.parse({method:`notifications/tasks/status`,params:a});await this.notification(t),j5(a.status)&&this._cleanupTaskProgressHandler(e)}},getTaskResult:e=>n.getTaskResult(e,t),updateTaskStatus:async(e,r,i)=>{let a=await n.getTask(e,t);if(!a)throw new k5(g6.InvalidParams,`Task "${e}" not found - it may have been cleaned up`);if(j5(a.status))throw new k5(g6.InvalidParams,`Cannot update task "${e}" from terminal status "${a.status}" to "${r}". Terminal states (completed, failed, cancelled) cannot transition to other states.`);await n.updateTaskStatus(e,r,i,t);let o=await n.getTask(e,t);if(o){let t=K6.parse({method:`notifications/tasks/status`,params:o});await this.notification(t),j5(o.status)&&this._cleanupTaskProgressHandler(e)}},listTasks:e=>n.listTasks(e,t)}}};function F5(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function I5(e,t){let n={...e};for(let e in t){let r=e,i=t[r];if(i===void 0)continue;let a=n[r];n[r]=F5(a)&&F5(i)?{...a,...i}:i}return n}var L5=`modulepreload`,R5=function(e,t){return new URL(e,t).href},z5={},B5=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=document.getElementsByTagName(`link`),i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}function s(e){return import.meta.resolve?import.meta.resolve(e):new URL(e,import.meta.url).href}r=o(t.map(t=>{if(t=R5(t,n),t=s(t),t in z5)return;z5[t]=!0;let r=t.endsWith(`.css`);for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.href===t&&(!r||i.rel===`stylesheet`))return}let i=document.createElement(`link`);if(i.rel=r?`stylesheet`:L5,r||(i.as=`script`),i.crossOrigin=``,i.href=t,a&&i.setAttribute(`nonce`,a),document.head.appendChild(i),r)return new Promise((e,n)=>{i.addEventListener(`load`,e),i.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${t}`)))})}))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})};J3(),(e=>typeof d<`u`?d:typeof Proxy<`u`?new Proxy(e,{get:(e,t)=>(typeof d<`u`?d:e)[t]}):e)(function(e){if(typeof d<`u`)return d.apply(this,arguments);throw Error(`Dynamic require of "`+e+`" is not supported`)});var V5=class extends P5{_registeredMethods=new Set;_eventSlots=new Map;onEventDispatch(e,t){}_ensureEventSlot(e){let t=this._eventSlots.get(e);if(!t){let n=this.eventSchemas[e];if(!n)throw Error(`Unknown event: ${String(e)}`);t={listeners:[]},this._eventSlots.set(e,t);let r=n.shape.method.value;this._registeredMethods.add(r);let i=t;super.setNotificationHandler(n,t=>{let n=t.params;this.onEventDispatch(e,n),i.onHandler?.(n);for(let e of[...i.listeners])e(n)})}return t}setEventHandler(e,t){let n=this._ensureEventSlot(e);n.onHandler&&t&&console.warn(`[MCP Apps] on${String(e)} handler replaced. Use addEventListener("${String(e)}", …) to add multiple listeners without replacing.`),n.onHandler=t}getEventHandler(e){return this._eventSlots.get(e)?.onHandler}addEventListener(e,t){this._ensureEventSlot(e).listeners.push(t)}removeEventListener(e,t){let n=this._eventSlots.get(e);if(!n)return;let r=n.listeners.indexOf(t);r!==-1&&n.listeners.splice(r,1)}setRequestHandler=(e,t)=>{this._assertMethodNotRegistered(e,`setRequestHandler`),super.setRequestHandler(e,t)};setNotificationHandler=(e,t)=>{this._assertMethodNotRegistered(e,`setNotificationHandler`),super.setNotificationHandler(e,t)};warnIfRequestHandlerReplaced(e,t,n){t&&n&&console.warn(`[MCP Apps] ${e} handler replaced. Previous handler will no longer be called.`)}replaceRequestHandler=(e,t)=>{let n=e.shape.method.value;this._registeredMethods.add(n),super.setRequestHandler(e,t)};_assertMethodNotRegistered(e,t){let n=e.shape.method.value;if(this._registeredMethods.has(n))throw Error(`Handler for "${n}" already registered (via ${t}). Use addEventListener() to attach multiple listeners, or the on* setter for replace semantics.`);this._registeredMethods.add(n)}},H5=`2026-01-26`,U5=class{eventTarget;eventSource;messageListener;constructor(e=window.parent,t){this.eventTarget=e,this.eventSource=t,this.messageListener=e=>{if(t&&e.source!==this.eventSource){console.debug(`Ignoring message from unknown source`,e);return}let n=y6.safeParse(e.data);n.success?(console.debug(`Parsed message`,n.data),this.onmessage?.(n.data)):e.data?.jsonrpc===`2.0`?(console.error(`Failed to parse message`,n.error.message,e),this.onerror?.(Error(`Invalid JSON-RPC message received: `+n.error.message))):console.debug(`Ignoring non-JSON-RPC message`,n.error.message,e)}}async start(){window.addEventListener(`message`,this.messageListener)}async send(e,t){e.method!==`ui/notifications/tool-input-partial`&&console.debug(`Sending message`,e),this.eventTarget.postMessage(e,`*`)}async close(){window.removeEventListener(`message`,this.messageListener),this.onclose?.()}onclose;onerror;onmessage;sessionId;setProtocolVersion},W5=_2([Q(`light`),Q(`dark`)]).describe(`Color theme preference for the host environment.`),G5=_2([Q(`inline`),Q(`fullscreen`),Q(`pip`)]).describe(`Display mode for UI presentation.`),K5=S2(_2([Q(`--color-background-primary`),Q(`--color-background-secondary`),Q(`--color-background-tertiary`),Q(`--color-background-inverse`),Q(`--color-background-ghost`),Q(`--color-background-info`),Q(`--color-background-danger`),Q(`--color-background-success`),Q(`--color-background-warning`),Q(`--color-background-disabled`),Q(`--color-text-primary`),Q(`--color-text-secondary`),Q(`--color-text-tertiary`),Q(`--color-text-inverse`),Q(`--color-text-ghost`),Q(`--color-text-info`),Q(`--color-text-danger`),Q(`--color-text-success`),Q(`--color-text-warning`),Q(`--color-text-disabled`),Q(`--color-border-primary`),Q(`--color-border-secondary`),Q(`--color-border-tertiary`),Q(`--color-border-inverse`),Q(`--color-border-ghost`),Q(`--color-border-info`),Q(`--color-border-danger`),Q(`--color-border-success`),Q(`--color-border-warning`),Q(`--color-border-disabled`),Q(`--color-ring-primary`),Q(`--color-ring-secondary`),Q(`--color-ring-inverse`),Q(`--color-ring-info`),Q(`--color-ring-danger`),Q(`--color-ring-success`),Q(`--color-ring-warning`),Q(`--font-sans`),Q(`--font-mono`),Q(`--font-weight-normal`),Q(`--font-weight-medium`),Q(`--font-weight-semibold`),Q(`--font-weight-bold`),Q(`--font-text-xs-size`),Q(`--font-text-sm-size`),Q(`--font-text-md-size`),Q(`--font-text-lg-size`),Q(`--font-heading-xs-size`),Q(`--font-heading-sm-size`),Q(`--font-heading-md-size`),Q(`--font-heading-lg-size`),Q(`--font-heading-xl-size`),Q(`--font-heading-2xl-size`),Q(`--font-heading-3xl-size`),Q(`--font-text-xs-line-height`),Q(`--font-text-sm-line-height`),Q(`--font-text-md-line-height`),Q(`--font-text-lg-line-height`),Q(`--font-heading-xs-line-height`),Q(`--font-heading-sm-line-height`),Q(`--font-heading-md-line-height`),Q(`--font-heading-lg-line-height`),Q(`--font-heading-xl-line-height`),Q(`--font-heading-2xl-line-height`),Q(`--font-heading-3xl-line-height`),Q(`--border-radius-xs`),Q(`--border-radius-sm`),Q(`--border-radius-md`),Q(`--border-radius-lg`),Q(`--border-radius-xl`),Q(`--border-radius-full`),Q(`--border-width-regular`),Q(`--shadow-hairline`),Q(`--shadow-sm`),Q(`--shadow-md`),Q(`--shadow-lg`)]).describe(`CSS variable keys available to MCP apps for theming.`).describe(`Style variables for theming MCP apps. Individual style keys are optional - hosts may provide any subset of these values. Values are strings containing CSS values (colors, sizes, font stacks, etc.). Note: This type uses \`Record\` rather than \`Partial>\` -for compatibility with Zod schema generation. Both are functionally equivalent for validation.`),i2([X(),q0()]).describe(`Style variables for theming MCP apps. +for compatibility with Zod schema generation. Both are functionally equivalent for validation.`),_2([X(),o2()]).describe(`Style variables for theming MCP apps. Individual style keys are optional - hosts may provide any subset of these values. Values are strings containing CSS values (colors, sizes, font stacks, etc.). @@ -107,10 +107,10 @@ Values are strings containing CSS values (colors, sizes, font stacks, etc.). Note: This type uses \`Record\` rather than \`Partial>\` -for compatibility with Zod schema generation. Both are functionally equivalent for validation.`);Z({method:Q(`ui/open-link`),params:Z({url:X().describe(`URL to open in the host's browser`)})});var P5=Z({isError:H0().optional().describe(`True if the host failed to open the URL (e.g., due to security policy).`)}).passthrough(),F5=Z({isError:H0().optional().describe(`True if the download failed (e.g., user cancelled or host denied).`)}).passthrough(),I5=Z({isError:H0().optional().describe(`True if the host rejected or failed to deliver the message.`)}).passthrough();Z({method:Q(`ui/notifications/sandbox-proxy-ready`),params:Z({})});var L5=Z({connectDomains:e2(X()).optional().describe(`Origins for network requests (fetch/XHR/WebSocket). +for compatibility with Zod schema generation. Both are functionally equivalent for validation.`);Z({method:Q(`ui/open-link`),params:Z({url:X().describe(`URL to open in the host's browser`)})});var q5=Z({isError:t2().optional().describe(`True if the host failed to open the URL (e.g., due to security policy).`)}).passthrough(),J5=Z({isError:t2().optional().describe(`True if the download failed (e.g., user cancelled or host denied).`)}).passthrough(),Y5=Z({isError:t2().optional().describe(`True if the host rejected or failed to deliver the message.`)}).passthrough();Z({method:Q(`ui/notifications/sandbox-proxy-ready`),params:Z({})});var X5=Z({connectDomains:p2(X()).optional().describe(`Origins for network requests (fetch/XHR/WebSocket). - Maps to CSP \`connect-src\` directive -- Empty or omitted → no network connections (secure default)`),resourceDomains:e2(X()).optional().describe("Origins for static resources (images, scripts, stylesheets, fonts, media).\n\n- Maps to CSP `img-src`, `script-src`, `style-src`, `font-src`, `media-src` directives\n- Wildcard subdomains supported: `https://*.example.com`\n- Empty or omitted → no network resources (secure default)"),frameDomains:e2(X()).optional().describe("Origins for nested iframes.\n\n- Maps to CSP `frame-src` directive\n- Empty or omitted → no nested iframes allowed (`frame-src 'none'`)"),baseUriDomains:e2(X()).optional().describe("Allowed base URIs for the document.\n\n- Maps to CSP `base-uri` directive\n- Empty or omitted → only same origin allowed (`base-uri 'self'`)")}),R5=Z({camera:Z({}).optional().describe(`Request camera access. +- Empty or omitted → no network connections (secure default)`),resourceDomains:p2(X()).optional().describe("Origins for static resources (images, scripts, stylesheets, fonts, media).\n\n- Maps to CSP `img-src`, `script-src`, `style-src`, `font-src`, `media-src` directives\n- Wildcard subdomains supported: `https://*.example.com`\n- Empty or omitted → no network resources (secure default)"),frameDomains:p2(X()).optional().describe("Origins for nested iframes.\n\n- Maps to CSP `frame-src` directive\n- Empty or omitted → no nested iframes allowed (`frame-src 'none'`)"),baseUriDomains:p2(X()).optional().describe("Allowed base URIs for the document.\n\n- Maps to CSP `base-uri` directive\n- Empty or omitted → only same origin allowed (`base-uri 'self'`)")}),Z5=Z({camera:Z({}).optional().describe(`Request camera access. Maps to Permission Policy \`camera\` feature.`),microphone:Z({}).optional().describe(`Request microphone access. @@ -118,7 +118,7 @@ Maps to Permission Policy \`geolocation\` feature.`),clipboardWrite:Z({}).optional().describe(`Request clipboard write access. -Maps to Permission Policy \`clipboard-write\` feature.`)});Z({method:Q(`ui/notifications/size-changed`),params:Z({width:I0().optional().describe(`New width in pixels.`),height:I0().optional().describe(`New height in pixels.`)})});var z5=Z({method:Q(`ui/notifications/tool-input`),params:Z({arguments:l2(X(),X0().describe(`Complete tool call arguments as key-value pairs.`)).optional().describe(`Complete tool call arguments as key-value pairs.`)})}),B5=Z({method:Q(`ui/notifications/tool-input-partial`),params:Z({arguments:l2(X(),X0().describe(`Partial tool call arguments (incomplete, may change).`)).optional().describe(`Partial tool call arguments (incomplete, may change).`)})}),V5=Z({method:Q(`ui/notifications/tool-cancelled`),params:Z({reason:X().optional().describe(`Optional reason for the cancellation (e.g., "user action", "timeout").`)})}),H5=Z({fonts:X().optional()}),U5=Z({variables:N5.optional().describe(`CSS variables for theming the app.`),css:H5.optional().describe(`CSS blocks that apps can inject.`)}),W5=Z({method:Q(`ui/resource-teardown`),params:Z({})});l2(X(),X0());var G5=Z({text:Z({}).optional().describe(`Host supports text content blocks.`),image:Z({}).optional().describe(`Host supports image content blocks.`),audio:Z({}).optional().describe(`Host supports audio content blocks.`),resource:Z({}).optional().describe(`Host supports resource content blocks.`),resourceLink:Z({}).optional().describe(`Host supports resource link content blocks.`),structuredContent:Z({}).optional().describe(`Host supports structured content.`)});Z({method:Q(`ui/notifications/request-teardown`),params:Z({}).optional()});var K5=Z({experimental:l2(X(),l2(X(),Y0()).describe(`Experimental features keyed by identifier.`)).optional().describe(`Experimental features keyed by identifier.`),openLinks:Z({}).optional().describe(`Host supports opening external URLs.`),downloadFile:Z({}).optional().describe(`Host supports file downloads via ui/download-file.`),serverTools:Z({listChanged:H0().optional().describe(`Host supports tools/list_changed notifications.`)}).optional().describe(`Host can proxy tool calls to the MCP server.`),serverResources:Z({listChanged:H0().optional().describe(`Host supports resources/list_changed notifications.`)}).optional().describe(`Host can proxy resource reads to the MCP server.`),logging:Z({}).optional().describe(`Host accepts log messages.`),sandbox:Z({permissions:R5.optional().describe(`Permissions granted by the host (camera, microphone, geolocation).`),csp:L5.optional().describe(`CSP domains approved by the host.`)}).optional().describe(`Sandbox configuration applied by the host.`),updateModelContext:G5.optional().describe(`Host accepts context updates (ui/update-model-context) to be included in the model's context for future turns.`),message:G5.optional().describe(`Host supports receiving content messages (ui/message) from the view.`),sampling:Z({tools:Z({}).optional().describe("Host supports tool use via `tools` and `toolChoice` parameters.")}).optional().describe("Host supports LLM sampling (sampling/createMessage) from the view.\nMirrors the MCP `ClientCapabilities.sampling` shape so hosts can pass it through.")}),q5=Z({experimental:l2(X(),l2(X(),Y0()).describe(`Experimental features keyed by identifier.`)).optional().describe(`Experimental features keyed by identifier.`),tools:Z({listChanged:H0().optional().describe(`App supports tools/list_changed notifications.`)}).optional().describe(`App exposes MCP-style tools that the host can call.`),availableDisplayModes:e2(M5).optional().describe(`Display modes the app supports.`)});Z({method:Q(`ui/notifications/initialized`),params:Z({}).optional()}),Z({csp:L5.optional().describe(`Content Security Policy configuration for UI resources.`),permissions:R5.optional().describe(`Sandbox permissions requested by the UI resource.`),domain:X().optional().describe(`Dedicated origin for view sandbox. +Maps to Permission Policy \`clipboard-write\` feature.`)});Z({method:Q(`ui/notifications/size-changed`),params:Z({width:Y0().optional().describe(`New width in pixels.`),height:Y0().optional().describe(`New height in pixels.`)})});var Q5=Z({method:Q(`ui/notifications/tool-input`),params:Z({arguments:S2(X(),l2().describe(`Complete tool call arguments as key-value pairs.`)).optional().describe(`Complete tool call arguments as key-value pairs.`)})}),$5=Z({method:Q(`ui/notifications/tool-input-partial`),params:Z({arguments:S2(X(),l2().describe(`Partial tool call arguments (incomplete, may change).`)).optional().describe(`Partial tool call arguments (incomplete, may change).`)})}),e7=Z({method:Q(`ui/notifications/tool-cancelled`),params:Z({reason:X().optional().describe(`Optional reason for the cancellation (e.g., "user action", "timeout").`)})}),t7=Z({fonts:X().optional()}),n7=Z({variables:K5.optional().describe(`CSS variables for theming the app.`),css:t7.optional().describe(`CSS blocks that apps can inject.`)}),r7=Z({method:Q(`ui/resource-teardown`),params:Z({})});S2(X(),l2());var i7=Z({text:Z({}).optional().describe(`Host supports text content blocks.`),image:Z({}).optional().describe(`Host supports image content blocks.`),audio:Z({}).optional().describe(`Host supports audio content blocks.`),resource:Z({}).optional().describe(`Host supports resource content blocks.`),resourceLink:Z({}).optional().describe(`Host supports resource link content blocks.`),structuredContent:Z({}).optional().describe(`Host supports structured content.`)});Z({method:Q(`ui/notifications/request-teardown`),params:Z({}).optional()});var a7=Z({experimental:S2(X(),S2(X(),c2()).describe(`Experimental features keyed by identifier.`)).optional().describe(`Experimental features keyed by identifier.`),openLinks:Z({}).optional().describe(`Host supports opening external URLs.`),downloadFile:Z({}).optional().describe(`Host supports file downloads via ui/download-file.`),serverTools:Z({listChanged:t2().optional().describe(`Host supports tools/list_changed notifications.`)}).optional().describe(`Host can proxy tool calls to the MCP server.`),serverResources:Z({listChanged:t2().optional().describe(`Host supports resources/list_changed notifications.`)}).optional().describe(`Host can proxy resource reads to the MCP server.`),logging:Z({}).optional().describe(`Host accepts log messages.`),sandbox:Z({permissions:Z5.optional().describe(`Permissions granted by the host (camera, microphone, geolocation).`),csp:X5.optional().describe(`CSP domains approved by the host.`)}).optional().describe(`Sandbox configuration applied by the host.`),updateModelContext:i7.optional().describe(`Host accepts context updates (ui/update-model-context) to be included in the model's context for future turns.`),message:i7.optional().describe(`Host supports receiving content messages (ui/message) from the view.`),sampling:Z({tools:Z({}).optional().describe("Host supports tool use via `tools` and `toolChoice` parameters.")}).optional().describe("Host supports LLM sampling (sampling/createMessage) from the view.\nMirrors the MCP `ClientCapabilities.sampling` shape so hosts can pass it through.")}),o7=Z({experimental:S2(X(),S2(X(),c2()).describe(`Experimental features keyed by identifier.`)).optional().describe(`Experimental features keyed by identifier.`),tools:Z({listChanged:t2().optional().describe(`App supports tools/list_changed notifications.`)}).optional().describe(`App exposes MCP-style tools that the host can call.`),availableDisplayModes:p2(G5).optional().describe(`Display modes the app supports.`)});Z({method:Q(`ui/notifications/initialized`),params:Z({}).optional()}),Z({csp:X5.optional().describe(`Content Security Policy configuration for UI resources.`),permissions:Z5.optional().describe(`Sandbox permissions requested by the UI resource.`),domain:X().optional().describe(`Dedicated origin for view sandbox. Useful when views need stable, dedicated origins for OAuth callbacks, CORS policies, or API key allowlists. @@ -126,16 +126,16 @@ - Hash-based subdomains (e.g., \`{hash}.claudemcpcontent.com\`) - URL-derived subdomains (e.g., \`www-example-com.oaiusercontent.com\`) -If omitted, host uses default sandbox origin (typically per-conversation).`),prefersBorder:H0().optional().describe(`Visual boundary preference - true if view prefers a visible border. +If omitted, host uses default sandbox origin (typically per-conversation).`),prefersBorder:t2().optional().describe(`Visual boundary preference - true if view prefers a visible border. Boolean requesting whether a visible border and background is provided by the host. Specifying an explicit value for this is recommended because hosts' defaults may vary. - \`true\`: request visible border + background - \`false\`: request no visible border + background -- omitted: host decides border`)}),Z({method:Q(`ui/request-display-mode`),params:Z({mode:M5.describe(`The display mode being requested.`)})});var J5=Z({mode:M5.describe(`The display mode that was actually set. May differ from requested if not supported.`)}).passthrough(),Y5=i2([Q(`model`),Q(`app`)]).describe(`Tool visibility scope - who can access the tool.`);Z({resourceUri:X().optional(),visibility:e2(Y5).optional().describe(`Who can access this tool. Default: ["model", "app"] +- omitted: host decides border`)}),Z({method:Q(`ui/request-display-mode`),params:Z({mode:G5.describe(`The display mode being requested.`)})});var s7=Z({mode:G5.describe(`The display mode that was actually set. May differ from requested if not supported.`)}).passthrough(),c7=_2([Q(`model`),Q(`app`)]).describe(`Tool visibility scope - who can access the tool.`);Z({resourceUri:X().optional(),visibility:p2(c7).optional().describe(`Who can access this tool. Default: ["model", "app"] - "model": Tool visible to and callable by the agent -- "app": Tool callable by the app from this server only`),csp:Z0().optional(),permissions:Z0().optional()}),Z({mimeTypes:e2(X()).optional().describe('Array of supported MIME types for UI resources.\nMust include `"text/html;profile=mcp-app"` for MCP Apps support.')}),Z({method:Q(`ui/download-file`),params:Z({contents:e2(i2([b8,x8])).describe(`Resource contents to download — embedded (inline data) or linked (host fetches). Uses standard MCP resource types.`)})}),Z({method:Q(`ui/message`),params:Z({role:Q(`user`).describe(`Message role, currently only "user" is supported.`),content:e2(S8).describe(`Message content blocks (text, image, etc.).`)})}),Z({method:Q(`ui/notifications/sandbox-resource-ready`),params:Z({html:X().describe(`HTML content to load into the inner iframe.`),sandbox:X().optional().describe(`Optional override for the inner iframe's sandbox attribute.`),csp:L5.optional().describe(`CSP configuration from resource metadata.`),permissions:R5.optional().describe(`Sandbox permissions from resource metadata.`)})});var X5=Z({method:Q(`ui/notifications/tool-result`),params:j8.describe(`Standard MCP tool execution result.`)}),Z5=Z({toolInfo:Z({id:X3.optional().describe(`JSON-RPC id of the tools/call request.`),tool:O8.describe(`Tool definition including name, inputSchema, etc.`)}).optional().describe(`Metadata of the tool call that instantiated this App.`),theme:j5.optional().describe(`Current color theme preference.`),styles:U5.optional().describe(`Style configuration for theming the app.`),displayMode:M5.optional().describe(`How the UI is currently displayed.`),availableDisplayModes:e2(M5).optional().describe(`Display modes the host supports.`),containerDimensions:i2([Z({height:I0().describe(`Fixed container height in pixels.`)}),Z({maxHeight:i2([I0(),q0()]).optional().describe(`Maximum container height in pixels.`)})]).and(i2([Z({width:I0().describe(`Fixed container width in pixels.`)}),Z({maxWidth:i2([I0(),q0()]).optional().describe(`Maximum container width in pixels.`)})])).optional().describe(`Container dimensions. Represents the dimensions of the iframe or other -container holding the app. Specify either width or maxWidth, and either height or maxHeight.`),locale:X().optional().describe(`User's language and region preference in BCP 47 format.`),timeZone:X().optional().describe(`User's timezone in IANA format.`),userAgent:X().optional().describe(`Host application identifier.`),platform:i2([Q(`web`),Q(`desktop`),Q(`mobile`)]).optional().describe(`Platform type for responsive design decisions.`),deviceCapabilities:Z({touch:H0().optional().describe(`Whether the device supports touch input.`),hover:H0().optional().describe(`Whether the device supports hover interactions.`)}).optional().describe(`Device input capabilities.`),safeAreaInsets:Z({top:I0().describe(`Top safe area inset in pixels.`),right:I0().describe(`Right safe area inset in pixels.`),bottom:I0().describe(`Bottom safe area inset in pixels.`),left:I0().describe(`Left safe area inset in pixels.`)}).optional().describe(`Mobile safe area boundaries in pixels.`)}).passthrough(),Q5=Z({method:Q(`ui/notifications/host-context-changed`),params:Z5.describe(`Partial context update containing only changed fields.`)});Z({method:Q(`ui/update-model-context`),params:Z({content:e2(S8).optional().describe(`Context content blocks (text, image, etc.).`),structuredContent:l2(X(),X0().describe(`Structured content for machine-readable context data.`)).optional().describe(`Structured content for machine-readable context data.`)})}),Z({method:Q(`ui/initialize`),params:Z({appInfo:f6.describe(`App identification (name and version).`),appCapabilities:q5.describe(`Features and capabilities this app provides.`),protocolVersion:X().describe(`Protocol version this app supports.`)})});var $5=Z({protocolVersion:X().describe(`Negotiated protocol version string (e.g., "2025-11-21").`),hostInfo:f6.describe(`Host application identification and version.`),hostCapabilities:K5.describe(`Features and capabilities provided by the host.`),hostContext:Z5.describe(`Rich context about the host environment.`)}).passthrough(),e7={target:`draft-2020-12`};async function t7(e,t){let n=e[`~standard`];if(n.jsonSchema)return n.jsonSchema[t](e7);if(n.vendor===`zod`){let{z:n}=await D5(async()=>{let{z:e}=await Promise.resolve().then(()=>(F3(),N3));return{z:e}},void 0,import.meta.url);return n.toJSONSchema(e,{io:t})}throw Error(`Schema (vendor: ${n.vendor}) does not implement Standard JSON Schema (~standard.jsonSchema). Use a library that does (zod v4, ArkType, Valibot) or wrap your schema accordingly.`)}async function n7(e,t,n=``){let r=await e[`~standard`].validate(t);if(r.issues){let e=r.issues.map(e=>{let t=e.path?.map(e=>typeof e==`object`?e.key:e).join(`.`);return t?`${t}: ${e.message}`:e.message}).join(`; `);throw Error(n+e)}return r.value}var r7=class e extends O5{_appInfo;_capabilities;options;_hostCapabilities;_hostInfo;_hostContext;_registeredTools={};_initializedSent=!1;_assertInitialized(e){if(this._initializedSent)return;let t=`[ext-apps] App.${e}() called before connect() completed the ui/initialize handshake. Await app.connect() before calling this method, or move data loading to an ontoolresult handler.`;if(this.options?.strict)throw Error(t);console.warn(`${t}. This will throw in a future release.`)}eventSchemas={toolinput:z5,toolinputpartial:B5,toolresult:X5,toolcancelled:V5,hostcontextchanged:Q5};static ONE_SHOT_EVENTS=new Set([`toolinput`,`toolinputpartial`,`toolresult`,`toolcancelled`]);_everHadListener=new Set;_assertHandlerTiming(t){if(!e.ONE_SHOT_EVENTS.has(t)||this._everHadListener.has(t)||(this._everHadListener.add(t),!this._initializedSent))return;let n=`[ext-apps] "${String(t)}" handler registered after connect() completed the ui/initialize handshake. The host may have already sent this notification. Register handlers before calling app.connect().`;if(this.options?.strict)throw Error(n);console.warn(n)}setEventHandler(e,t){t&&this._assertHandlerTiming(e),super.setEventHandler(e,t)}addEventListener(e,t){this._assertHandlerTiming(e),super.addEventListener(e,t)}onEventDispatch(e,t){e===`hostcontextchanged`&&(this._hostContext={...this._hostContext,...t})}constructor(e,t={},n={autoResize:!0}){super(n),this._appInfo=e,this._capabilities=t,this.options=n,n.allowUnsafeEval||NH({jitless:!0}),this.setRequestHandler(S6,e=>(console.log(`Received ping:`,e.params),{})),this.setEventHandler(`hostcontextchanged`,void 0)}registerCapabilities(e){if(this.transport)throw Error(`Cannot register capabilities after transport is established`);this._capabilities=C5(this._capabilities,e)}registerTool(e,t,n){if(this._registeredTools[e])throw Error(`Tool ${e} is already registered`);let r=this,i=()=>{r._initializedSent&&r._capabilities.tools?.listChanged&&r.sendToolListChanged()},a=t.inputSchema!==void 0,o={title:t.title,description:t.description,inputSchema:t.inputSchema,outputSchema:t.outputSchema,annotations:t.annotations,_meta:t._meta,enabled:!0,enable(){this.enabled=!0,i()},disable(){this.enabled=!1,i()},update(e){Object.assign(this,e),i()},remove(){r._registeredTools[e]===o&&(delete r._registeredTools[e],i())},handler:async(t,r)=>{if(!o.enabled)throw Error(`Tool ${e} is disabled`);let i;if(a){let a=o.inputSchema;i=await n(a?await n7(a,t??{},`Invalid input for tool ${e}: `):t??{},r)}else i=await n(r);return o.outputSchema&&!i.isError&&(i.structuredContent=await n7(o.outputSchema,i.structuredContent,`Invalid output for tool ${e}: `)),i}};return this._registeredTools[e]=o,!this._capabilities.tools&&!this.transport&&this.registerCapabilities({tools:{listChanged:!0}}),this.ensureToolHandlersInitialized(),i(),o}_toolHandlersInitialized=!1;ensureToolHandlersInitialized(){this._toolHandlersInitialized||(this._toolHandlersInitialized=!0,this.oncalltool=async(e,t)=>{let n=this._registeredTools[e.name];if(!n)throw Error(`Tool ${e.name} not found`);return n.handler(e.arguments,t)},this.onlisttools=async(e,t)=>({tools:await Promise.all(Object.entries(this._registeredTools).filter(([e,t])=>t.enabled).map(async([e,t])=>{let n={name:e,title:t.title,description:t.description,inputSchema:t.inputSchema?await t7(t.inputSchema,`input`):{type:`object`,properties:{}}};return t.outputSchema&&(n.outputSchema=await t7(t.outputSchema,`output`)),t.annotations&&(n.annotations=t.annotations),t._meta&&(n._meta=t._meta),n}))}))}async sendToolListChanged(e={}){this._assertInitialized(`sendToolListChanged`),await this.notification({method:`notifications/tools/list_changed`,params:e})}getHostCapabilities(){return this._hostCapabilities}getHostVersion(){return this._hostInfo}getHostContext(){return this._hostContext}get ontoolinput(){return this.getEventHandler(`toolinput`)}set ontoolinput(e){this.setEventHandler(`toolinput`,e)}get ontoolinputpartial(){return this.getEventHandler(`toolinputpartial`)}set ontoolinputpartial(e){this.setEventHandler(`toolinputpartial`,e)}get ontoolresult(){return this.getEventHandler(`toolresult`)}set ontoolresult(e){this.setEventHandler(`toolresult`,e)}get ontoolcancelled(){return this.getEventHandler(`toolcancelled`)}set ontoolcancelled(e){this.setEventHandler(`toolcancelled`,e)}get onhostcontextchanged(){return this.getEventHandler(`hostcontextchanged`)}set onhostcontextchanged(e){this.setEventHandler(`hostcontextchanged`,e)}_onteardown;get onteardown(){return this._onteardown}set onteardown(e){this.warnIfRequestHandlerReplaced(`onteardown`,this._onteardown,e),this._onteardown=e,this.replaceRequestHandler(W5,(e,t)=>{if(!this._onteardown)throw Error(`No onteardown handler set`);return this._onteardown(e.params,t)})}_oncalltool;get oncalltool(){return this._oncalltool}set oncalltool(e){this.warnIfRequestHandlerReplaced(`oncalltool`,this._oncalltool,e),this._oncalltool=e,this.replaceRequestHandler(N8,(e,t)=>{if(!this._oncalltool)throw Error(`No oncalltool handler set`);return this._oncalltool(e.params,t)})}_onlisttools;get onlisttools(){return this._onlisttools}set onlisttools(e){this.warnIfRequestHandlerReplaced(`onlisttools`,this._onlisttools,e),this._onlisttools=e,this.replaceRequestHandler(k8,(e,t)=>{if(!this._onlisttools)throw Error(`No onlisttools handler set`);return this._onlisttools(e.params,t)})}assertCapabilityForMethod(e){if(e===`sampling/createMessage`&&!this._hostCapabilities?.sampling)throw Error(`Host does not support sampling (required for ${e})`)}assertRequestHandlerCapability(e){switch(e){case`tools/call`:case`tools/list`:if(!this._capabilities.tools)throw Error(`Client does not support tool capability (required for ${e})`);return;case`ping`:case`ui/resource-teardown`:return;default:throw Error(`No handler for method ${e} registered`)}}assertNotificationCapability(e){}assertTaskCapability(e){throw Error(`Tasks are not supported in MCP Apps`)}assertTaskHandlerCapability(e){throw Error(`Task handlers are not supported in MCP Apps`)}async callServerTool(e,t){if(this._assertInitialized(`callServerTool`),typeof e==`string`)throw Error(`callServerTool() expects an object as its first argument, but received a string ("${e}"). Did you mean: callServerTool({ name: "${e}", arguments: { ... } })?`);return await this.request({method:`tools/call`,params:e},j8,{onprogress:()=>{},resetTimeoutOnProgress:!0,...t})}async readServerResource(e,t){return this._assertInitialized(`readServerResource`),await this.request({method:`resources/read`,params:e},n8,t)}async listServerResources(e,t){return this._assertInitialized(`listServerResources`),await this.request({method:`resources/list`,params:e},X6,t)}async createSamplingMessage(e,t){this._assertInitialized(`createSamplingMessage`);let n=e.tools?Y8:J8;return await this.request({method:`sampling/createMessage`,params:e},n,t)}sendMessage(e,t){return this._assertInitialized(`sendMessage`),this.request({method:`ui/message`,params:e},I5,t)}sendLog(e){return this.notification({method:`notifications/message`,params:e})}updateModelContext(e,t){return this._assertInitialized(`updateModelContext`),this.request({method:`ui/update-model-context`,params:e},s6,t)}openLink(e,t){return this._assertInitialized(`openLink`),this.request({method:`ui/open-link`,params:e},P5,t)}sendOpenLink=this.openLink;downloadFile(e,t){return this._assertInitialized(`downloadFile`),this.request({method:`ui/download-file`,params:e},F5,t)}requestTeardown(e={}){return this.notification({method:`ui/notifications/request-teardown`,params:e})}requestDisplayMode(e,t){return this._assertInitialized(`requestDisplayMode`),this.request({method:`ui/request-display-mode`,params:e},J5,t)}sendSizeChanged(e){return this.notification({method:`ui/notifications/size-changed`,params:e})}setupSizeChangedNotifications(){let e=!1,t=0,n=0,r=()=>{e||(e=!0,requestAnimationFrame(()=>{e=!1;let r=document.documentElement,i=r.style.height;r.style.height=`max-content`;let a=Math.ceil(r.getBoundingClientRect().height);r.style.height=i;let o=Math.ceil(window.innerWidth);(o!==t||a!==n)&&(t=o,n=a,this.sendSizeChanged({width:o,height:a}))}))};r();let i=new ResizeObserver(r);return i.observe(document.documentElement),i.observe(document.body),()=>i.disconnect()}async connect(e=new A5(window.parent,window.parent),t){if(this.transport)throw Error(`App is already connected. Call close() before connecting again.`);this._initializedSent=!1,await super.connect(e);try{let e=await this.request({method:`ui/initialize`,params:{appCapabilities:this._capabilities,appInfo:this._appInfo,protocolVersion:k5}},$5,t);if(e===void 0)throw Error(`Server sent invalid initialize result: ${e}`);this._hostCapabilities=e.hostCapabilities,this._hostInfo=e.hostInfo,this._hostContext=e.hostContext,await this.notification({method:`ui/notifications/initialized`}),this._initializedSent=!0,this.options?.autoResize&&this.setupSizeChangedNotifications()}catch(e){throw this.close(),e}}};function i7({appInfo:e,capabilities:t,onAppCreated:n,autoResize:r=!0,strict:i}){let[a,o]=(0,G.useState)(null),[s,c]=(0,G.useState)(!1),[l,u]=(0,G.useState)(null);return(0,G.useEffect)(()=>{let a=!0,s;async function l(){try{let l=new A5(window.parent,window.parent);if(s=new r7(e,t,{autoResize:r,strict:i}),n?.(s),await s.connect(l),!a){s.close();return}o(s),c(!0),u(null)}catch(e){a&&(o(null),c(!1),u(e instanceof Error?e:Error(`Failed to connect`)))}}return l(),()=>{a=!1,s?.close()}},[]),{app:a,isConnected:s,error:l}}function a7(e){let[t,n]=(0,G.useState)(null),[r,i]=(0,G.useState)({}),[a,o]=(0,G.useState)(),[s,c]=(0,G.useState)(null);function l(e){if(e.isError){c(`This view could not be refreshed. Please try again.`);return}c(null),n(e.structuredContent)}let u=i7({appInfo:{name:e,version:`1.0.0`},capabilities:{},onAppCreated:e=>{e.ontoolinput=e=>{i(e.arguments??{})},e.ontoolresult=l,e.onhostcontextchanged=e=>o(t=>({...t,...e})),e.onerror=e=>{console.error(`MCP app error`,e),c(`This view could not be refreshed. Please try again.`)}}});(0,G.useEffect)(()=>{u.app&&o(u.app.getHostContext())},[u.app]);async function d(e){if(u.app)try{l(await u.app.callServerTool({name:e,arguments:r}))}catch(t){console.error(`Tool call ${e} failed`,t),c(`This view could not be refreshed. Please try again.`)}}return{...u,result:t,toolInput:r,host:a,toolError:s,callTool:d}}async function o7(e,t){e&&await e.sendMessage({role:`user`,content:[{type:`text`,text:t}]})}ok([Zb,zA]);function s7(){let{app:e,callTool:t,error:n,host:r,result:i,toolError:a}=a7(`Fanout service performance`),[o,s]=(0,G.useState)(`activity`),c=r?.theme===`dark`;return(0,K.jsxs)(RL,{dark:c,children:[(0,K.jsx)(zL,{eyebrow:`Trends and latency`,title:i?.data.service||`System performance`,summary:i?`Traffic, latency, and errors ${i.data.service?`for ${i.data.service}`:`across all services`}`:void 0,onRefresh:()=>t(`service_performance`),disabled:!e}),(0,K.jsx)(BL,{error:a??(n?`This view could not be loaded. Please try again.`:null),loading:!i&&!n&&!a?`Loading performance signals…`:void 0}),i&&(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(VL,{active:o,onChange:s,items:[{id:`activity`,label:`Activity`},{id:`latency`,label:`Latency map`},{id:`endpoints`,label:`Endpoints`,count:i.data.endpoints.length},{id:`compare`,label:`Compare`}]}),o===`activity`&&(0,K.jsx)(c7,{data:i.data,dark:c}),o===`latency`&&(0,K.jsx)(u7,{data:i.data,dark:c}),o===`endpoints`&&(0,K.jsx)(d7,{endpoints:i.data.endpoints,onEndpoint:t=>o7(e,`Investigate ${t.method} ${t.path}. Explain its latency and errors.`)}),o===`compare`&&(0,K.jsx)(f7,{data:i.data}),(0,K.jsx)(UL,{left:MH(i.provenance.window),right:`Updated ${new Date(i.provenance.generated_at).toLocaleTimeString([],{hour:`numeric`,minute:`2-digit`})}`})]})]})}function c7({data:e,dark:t}){let n=e.points.at(-1);if(!n)return(0,K.jsx)(HL,{tall:!0,icon:(0,K.jsx)(ML,{size:20,weight:`duotone`}),title:`No activity in this window`,children:`Trends will appear as activity is recorded.`});let r=e.points.map(e=>e.time);return(0,K.jsxs)(AI,{px:{base:`md`,sm:`lg`},pb:`md`,children:[(0,K.jsxs)(EI,{cols:{base:1,xs:3},spacing:`sm`,children:[(0,K.jsx)(WL,{label:`Operations`,value:kH.format(n.spans)}),(0,K.jsx)(WL,{label:`P95 latency`,value:jH(n.p95_ms),color:n.p95_ms>=750?`yellow.7`:`teal.7`}),(0,K.jsx)(WL,{label:`Error rate`,value:AH(n.error_rate),color:n.error_rate>=.01?`red.7`:`teal.7`})]}),(0,K.jsx)(l7,{dark:t,labels:r,title:`Traffic and logs`,series:[{name:`Operations`,data:e.points.map(e=>e.spans),color:`#228be6`},{name:`Logs`,data:e.points.map(e=>e.log_count),color:`#12b886`}]}),(0,K.jsx)(l7,{dark:t,labels:r,title:`Latency and error correlation`,series:[{name:`P95 latency`,data:e.points.map(e=>e.p95_ms),color:`#fab005`},{name:`Error rate × 1000`,data:e.points.map(e=>e.error_rate*1e3),color:`#fa5252`}]})]})}function l7({labels:e,title:t,series:n,dark:r}){let i=(0,G.useMemo)(()=>{let t=JL(r);return{color:n.map(e=>e.color),grid:{left:42,right:18,top:42,bottom:30},legend:{top:5,left:0,textStyle:{color:t.muted,fontSize:10},icon:`circle`,itemWidth:7,itemHeight:7},tooltip:{trigger:`axis`,backgroundColor:t.surface,borderColor:t.border,textStyle:{color:t.text,fontSize:10}},xAxis:{type:`category`,data:e.map(e=>new Date(e).toLocaleTimeString([],{hour:`numeric`,minute:`2-digit`})),boundaryGap:!1,axisLine:{lineStyle:{color:t.border}},axisTick:{show:!1},axisLabel:{color:t.muted,fontSize:9,hideOverlap:!0}},yAxis:{type:`value`,splitLine:{lineStyle:{color:t.grid}},axisLabel:{color:t.muted,fontSize:9}},series:n.map(e=>({name:e.name,type:`line`,data:e.data,smooth:.22,showSymbol:!1,lineStyle:{width:2},areaStyle:{opacity:.045}}))}},[r,e,n]);return(0,K.jsxs)($P,{withBorder:!0,radius:`md`,p:`sm`,children:[(0,K.jsx)(jF,{fw:650,size:`sm`,mb:`xs`,children:t}),(0,K.jsx)(OH,{option:i,height:210,label:t})]})}function u7({data:e,dark:t}){let n=(0,G.useMemo)(()=>({services:[...new Set(e.heatmap.map(e=>e.service))],times:[...new Set(e.heatmap.map(e=>e.time))],values:new Map(e.heatmap.map(e=>[`${e.service}\u0000${e.time}`,e.p95_ms])),max:Math.max(...e.heatmap.map(e=>e.p95_ms),1)}),[e.heatmap]);if(n.services.length===0)return(0,K.jsx)(HL,{tall:!0,icon:(0,K.jsx)(AL,{size:20,weight:`duotone`}),title:`No latency samples yet`,children:`The heatmap will compare service latency across time buckets.`});let r=JL(t),i={grid:{left:105,right:20,top:20,bottom:45},tooltip:{position:`top`,backgroundColor:r.surface,borderColor:r.border,textStyle:{color:r.text,fontSize:10},formatter:e=>`${n.services[e.data[1]]}
${jH(e.data[2])}`},xAxis:{type:`category`,data:n.times.map(e=>new Date(e).toLocaleTimeString([],{hour:`numeric`,minute:`2-digit`})),splitArea:{show:!0},axisLabel:{color:r.muted,fontSize:9,hideOverlap:!0},axisLine:{lineStyle:{color:r.border}}},yAxis:{type:`category`,data:n.services,splitArea:{show:!0},axisLabel:{color:r.text,fontSize:9},axisLine:{lineStyle:{color:r.border}}},visualMap:{min:0,max:n.max,calculable:!0,orient:`horizontal`,left:`center`,bottom:0,textStyle:{color:r.muted,fontSize:8},inRange:{color:[t?`#18211d`:`#e6fcf5`,`#fab005`,`#fa5252`]}},series:[{type:`heatmap`,data:n.services.flatMap((e,t)=>n.times.map((r,i)=>[i,t,n.values.get(`${e}\u0000${r}`)??0]))}]};return(0,K.jsx)($P,{withBorder:!0,radius:`md`,mx:{base:`md`,sm:`lg`},mb:`md`,p:`xs`,children:(0,K.jsx)(OH,{option:i,height:Math.max(280,n.services.length*32+110),label:`Service P95 latency heatmap`})})}function d7({endpoints:e,onEndpoint:t}){let n=GL(e,8);return e.length===0?(0,K.jsx)(HL,{tall:!0,icon:(0,K.jsx)(EL,{size:20,weight:`duotone`}),title:`No endpoints detected`,children:`HTTP routes and span operations will appear here as traffic arrives.`}):(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(YI.ScrollContainer,{minWidth:700,children:(0,K.jsxs)(YI,{striped:!0,highlightOnHover:!0,verticalSpacing:`sm`,children:[(0,K.jsx)(YI.Thead,{children:(0,K.jsxs)(YI.Tr,{children:[(0,K.jsx)(YI.Th,{children:`Endpoint`}),(0,K.jsx)(YI.Th,{children:`Calls`}),(0,K.jsx)(YI.Th,{children:`P50`}),(0,K.jsx)(YI.Th,{children:`P95`}),(0,K.jsx)(YI.Th,{children:`P99`}),(0,K.jsx)(YI.Th,{children:`Errors`})]})}),(0,K.jsx)(YI.Tbody,{children:n.pageItems.map(e=>(0,K.jsxs)(YI.Tr,{tabIndex:0,onClick:()=>t(e),onKeyDown:n=>{(n.key===`Enter`||n.key===` `)&&t(e)},style:{cursor:`pointer`},children:[(0,K.jsxs)(YI.Td,{children:[(0,K.jsx)(PF,{variant:`light`,mr:`xs`,children:e.method}),(0,K.jsx)(jF,{component:`code`,size:`sm`,children:e.path})]}),(0,K.jsx)(YI.Td,{children:kH.format(e.calls)}),(0,K.jsx)(YI.Td,{children:jH(e.p50_ms)}),(0,K.jsx)(YI.Td,{children:jH(e.p95_ms)}),(0,K.jsx)(YI.Td,{children:jH(e.p99_ms)}),(0,K.jsx)(YI.Td,{children:(0,K.jsx)(jF,{c:`${qL(e.health)}.7`,children:AH(e.error_rate)})})]},`${e.method}-${e.path}`))})]})}),(0,K.jsx)(KL,{...n,onChange:n.setPage})]})}function f7({data:e}){return e.comparison.length===0?(0,K.jsx)(HL,{tall:!0,icon:(0,K.jsx)(OL,{size:20,weight:`duotone`}),title:`Nothing to compare yet`,children:`Fanout compares the first and second half of the selected window.`}):(0,K.jsx)(YI.ScrollContainer,{minWidth:620,children:(0,K.jsxs)(YI,{striped:!0,verticalSpacing:`sm`,children:[(0,K.jsx)(YI.Thead,{children:(0,K.jsxs)(YI.Tr,{children:[(0,K.jsx)(YI.Th,{children:`Signal`}),(0,K.jsx)(YI.Th,{children:`Earlier`}),(0,K.jsx)(YI.Th,{children:`Change`}),(0,K.jsx)(YI.Th,{children:`Recent`})]})}),(0,K.jsx)(YI.Tbody,{children:e.comparison.map(e=>(0,K.jsxs)(YI.Tr,{children:[(0,K.jsxs)(YI.Td,{children:[(0,K.jsx)(jF,{fw:650,children:e.label}),(0,K.jsx)(jF,{c:`dimmed`,size:`xs`,children:e.unit})]}),(0,K.jsx)(YI.Td,{children:p7(e.before,e.unit)}),(0,K.jsxs)(YI.Td,{children:[(0,K.jsxs)(PF,{color:e.direction===`improvement`?`teal`:e.direction===`regression`?`red`:`gray`,variant:`light`,children:[e.change_pct>0?`↑`:e.change_pct<0?`↓`:`→`,` `,Math.abs(e.change_pct).toFixed(1),`%`]}),e.significant&&(0,K.jsx)(jF,{c:`dimmed`,size:`xs`,mt:3,children:`notable`})]}),(0,K.jsx)(YI.Td,{children:p7(e.after,e.unit)})]},e.label))})]})})}function p7(e,t){return t===`ms`?jH(e):t===`%`?`${e.toFixed(2)}%`:kH.format(e)}(0,IL.createRoot)(document.getElementById(`root`)).render((0,K.jsx)(G.StrictMode,{children:(0,K.jsx)(s7,{})})); -
diff --git a/internal/mcp/apps/topology.html b/internal/mcp/apps/topology.html index a64ab50d..86fccc43 100644 --- a/internal/mcp/apps/topology.html +++ b/internal/mcp/apps/topology.html @@ -7,13 +7,13 @@ `):[],v=_.length*f;if(g??=v,v>g&&p){var y=Math.floor(g/f);m||=_.length>y,_=_.slice(0,y),v=_.length*f}if(i&&u&&h!=null)for(var b=Mn(h,l,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),x={},S=0;S<_.length;S++)Nn(x,_[S],b),_[S]=x.textLine,m||=x.isTruncated;for(var C=g,w=0,T=gn(l),S=0;S<_.length;S++)w=Math.max(Sn(T,_[S]),w);h??=w;var E=h;return C+=c,E+=s,{lines:_,height:g,outerWidth:E,outerHeight:C,lineHeight:f,calculatedLineHeight:d,contentWidth:w,contentHeight:v,width:h,isTruncated:m}}var In=function(){function e(){}return e}(),Ln=function(){function e(e){this.tokens=[],e&&(this.tokens=e)}return e}(),Rn=function(){function e(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[],this.isTruncated=!1}return e}();function zn(e,t,n,r,i){var a=new Rn,o=Jn(e);if(!o)return a;var s=t.padding,c=s?s[1]+s[3]:0,l=s?s[0]+s[2]:0,u=t.width;u==null&&n!=null&&(u=n-c);var d=t.height;d==null&&r!=null&&(d=r-l);for(var f=t.overflow,p=(f===`break`||f===`breakAll`)&&u!=null?{width:u,accumWidth:0,breakAll:f===`breakAll`}:null,m=An.lastIndex=0,h;(h=An.exec(o))!=null;){var g=h.index;g>m&&Bn(a,o.substring(m,g),t,p),Bn(a,h[2],t,p,h[1]),m=An.lastIndex}md){var re=a.lines.length;O>0?(T.tokens=T.tokens.slice(0,O),C(T,D,E),a.lines=a.lines.slice(0,w+1)):a.lines=a.lines.slice(0,w),a.isTruncated=a.isTruncated||a.lines.length0&&m+r.accumWidth>r.width&&(u=t.split(` `),l=!0),r.accumWidth=m}else{var h=Wn(t,c,r.width,r.breakAll,r.accumWidth);r.accumWidth=h.accumWidth+p,d=h.linesWidths,u=h.lines}}u||=t.split(` `);for(var g=gn(c),_=0;_=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}var Hn=le(`,&?/;] `.split(``),function(e,t){return e[t]=!0,e},{});function Un(e){return!Vn(e)||!!Hn[e]}function Wn(e,t,n,r,i){for(var a=[],o=[],s=``,c=``,l=0,u=0,d=gn(t),f=0;fn:i+u+m>n){u?(s||c)&&(h?(s||(s=c,c=``,l=0,u=l),a.push(s),o.push(u-l),c+=p,l+=m,s=``,u=l):(c&&(s+=c,c=``,l=0),a.push(s),o.push(u),s=p,u=m)):h?(a.push(c),o.push(l),c=p,l=m):(a.push(p),o.push(m));continue}u+=m,h?(c+=p,l+=m):(c&&(s+=c,c=``,l=0),s+=p)}return c&&(s+=c),s&&(a.push(s),o.push(u)),a.length===1&&(u+=i),{accumWidth:u,lines:a,linesWidths:o}}function Gn(e,t,n,r,i,a){if(e.baseX=n,e.baseY=r,e.outerWidth=e.outerHeight=null,t){var o=t.width*2,s=t.height*2;rn.set(Kn,Tn(n,o,i),En(r,s,a),o,s),rn.intersect(t,Kn,null,qn);var c=qn.outIntersectRect;e.outerWidth=c.width,e.outerHeight=c.height,e.baseX=Tn(c.x,c.width,i,!0),e.baseY=En(c.y,c.height,a,!0)}}var Kn=new rn(0,0,0,0),qn={outIntersectRect:{},clamp:!0};function Jn(e){return e==null?e=``:e+=``}function Yn(e){var t=Jn(e.text),n=e.font;return Xn(e,Sn(gn(n),t),Dn(n),null)}function Xn(e,t,n,r){var i=new rn(Tn(e.x||0,t,e.textAlign),En(e.y||0,n,e.textBaseline),t,n),a=r??(Zn(e)?e.lineWidth:0);return a>0&&(i.x-=a/2,i.y-=a/2,i.width+=a,i.height+=a),i}function Zn(e){var t=e.stroke;return t!=null&&t!==`none`&&e.lineWidth>0}var Qn=vt,$n=5e-5;function er(e){return e>$n||e<-$n}var tr=[],nr=[],rr=_t(),ir=Math.abs,ar=function(){function e(){}return e.prototype.getLocalTransform=function(e){return or(this,e)},e.prototype.setPosition=function(e){this.x=e[0],this.y=e[1]},e.prototype.setScale=function(e){this.scaleX=e[0],this.scaleY=e[1]},e.prototype.setSkew=function(e){this.skewX=e[0],this.skewY=e[1]},e.prototype.setOrigin=function(e){this.originX=e[0],this.originY=e[1]},e.prototype.needLocalTransform=function(){return er(this.rotation)||er(this.x)||er(this.y)||er(this.scaleX-1)||er(this.scaleY-1)||er(this.skewX)||er(this.skewY)},e.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,t=this.needLocalTransform(),n=this.transform;if(!(t||e)){n&&(Qn(n),this.invTransform=null);return}n||=_t(),t?this.getLocalTransform(n):Qn(n),e&&(t?bt(n,e,n):yt(n,e)),this.transform=n,this._resolveGlobalScaleRatio(n),this.invTransform=this.invTransform||_t(),wt(this.invTransform,n)},e.prototype._resolveGlobalScaleRatio=function(e){var t=this.globalScaleRatio;if(t!=null&&t!==1){this.getGlobalScale(tr);var n=tr[0]<0?-1:1,r=tr[1]<0?-1:1,i=((tr[0]-n)*t+n)/tr[0]||0,a=((tr[1]-r)*t+r)/tr[1]||0;e[0]*=i,e[1]*=i,e[2]*=a,e[3]*=a}},e.prototype.getComputedTransform=function(){for(var e=this,t=[];e;)t.push(e),e=e.parent;for(;e=t.pop();)e.updateTransform();return this.transform},e.prototype.setLocalTransform=function(e){if(e){var t=e[0]*e[0]+e[1]*e[1],n=e[2]*e[2]+e[3]*e[3],r=Math.atan2(e[1],e[0]),i=Math.PI/2+r-Math.atan2(e[3],e[2]);n=Math.sqrt(n)*Math.cos(i),t=Math.sqrt(t),this.skewX=i,this.skewY=0,this.rotation=-r,this.x=+e[4],this.y=+e[5],this.scaleX=t,this.scaleY=n,this.originX=0,this.originY=0}},e.prototype.decomposeTransform=function(){if(this.transform){var e=this.parent,t=this.transform;e&&e.transform&&(e.invTransform=e.invTransform||_t(),bt(nr,e.invTransform,t),t=nr);var n=this.originX,r=this.originY;(n||r)&&(rr[4]=n,rr[5]=r,bt(nr,t,rr),nr[4]-=n,nr[5]-=r,t=nr),this.setLocalTransform(t)}},e.prototype.getGlobalScale=function(e){var t=this.transform;return e||=[],t?(e[0]=Math.sqrt(t[0]*t[0]+t[1]*t[1]),e[1]=Math.sqrt(t[2]*t[2]+t[3]*t[3]),t[0]<0&&(e[0]=-e[0]),t[3]<0&&(e[1]=-e[1]),e):(e[0]=1,e[1]=1,e)},e.prototype.transformCoordToLocal=function(e,t){var n=[e,t],r=this.invTransform;return r&&Bt(n,n,r),n},e.prototype.transformCoordToGlobal=function(e,t){var n=[e,t],r=this.transform;return r&&Bt(n,n,r),n},e.prototype.getLineScale=function(){var e=this.transform;return e&&ir(e[0]-1)>1e-10&&ir(e[3]-1)>1e-10?Math.sqrt(ir(e[0]*e[3]-e[2]*e[1])):1},e.prototype.copyTransform=function(e){lr(this,e)},e.getLocalTransform=function(e,t){t||=[];var n=e.originX||0,r=e.originY||0,i=e.scaleX,a=e.scaleY,o=e.anchorX,s=e.anchorY,c=e.rotation||0,l=e.x,u=e.y,d=e.skewX?Math.tan(e.skewX):0,f=e.skewY?Math.tan(-e.skewY):0;if(n||r||o||s){var p=n+o,m=r+s;t[4]=-p*i-d*m*a,t[5]=-m*a-f*p*i}else t[4]=t[5]=0;return t[0]=i,t[3]=a,t[1]=f*i,t[2]=d*a,c&&St(t,t,c),t[4]+=n+l,t[5]+=r+u,t},e.initDefaultProps=(function(){var t=e.prototype;t.scaleX=t.scaleY=t.globalScaleRatio=1,t.x=t.y=t.originX=t.originY=t.skewX=t.skewY=t.rotation=t.anchorX=t.anchorY=0})(),e}(),or=ar.getLocalTransform;function sr(){return new ar}var cr=[`x`,`y`,`originX`,`originY`,`anchorX`,`anchorY`,`rotation`,`scaleX`,`scaleY`,`skewX`,`skewY`];function lr(e,t){return ie(e,t,cr)}var ur={linear:function(e){return e},quadraticIn:function(e){return e*e},quadraticOut:function(e){return e*(2-e)},quadraticInOut:function(e){return(e*=2)<1?.5*e*e:-.5*(--e*(e-2)-1)},cubicIn:function(e){return e*e*e},cubicOut:function(e){return--e*e*e+1},cubicInOut:function(e){return(e*=2)<1?.5*e*e*e:.5*((e-=2)*e*e+2)},quarticIn:function(e){return e*e*e*e},quarticOut:function(e){return 1- --e*e*e*e},quarticInOut:function(e){return(e*=2)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)},quinticIn:function(e){return e*e*e*e*e},quinticOut:function(e){return--e*e*e*e*e+1},quinticInOut:function(e){return(e*=2)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)},sinusoidalIn:function(e){return 1-Math.cos(e*Math.PI/2)},sinusoidalOut:function(e){return Math.sin(e*Math.PI/2)},sinusoidalInOut:function(e){return .5*(1-Math.cos(Math.PI*e))},exponentialIn:function(e){return e===0?0:1024**(e-1)},exponentialOut:function(e){return e===1?1:1-2**(-10*e)},exponentialInOut:function(e){return e===0?0:e===1?1:(e*=2)<1?.5*1024**(e-1):.5*(-(2**(-10*(e-1)))+2)},circularIn:function(e){return 1-Math.sqrt(1-e*e)},circularOut:function(e){return Math.sqrt(1- --e*e)},circularInOut:function(e){return(e*=2)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},elasticIn:function(e){var t,n=.1,r=.4;return e===0?0:e===1?1:(!n||n<1?(n=1,t=r/4):t=r*Math.asin(1/n)/(2*Math.PI),-(n*2**(10*--e)*Math.sin((e-t)*(2*Math.PI)/r)))},elasticOut:function(e){var t,n=.1,r=.4;return e===0?0:e===1?1:(!n||n<1?(n=1,t=r/4):t=r*Math.asin(1/n)/(2*Math.PI),n*2**(-10*e)*Math.sin((e-t)*(2*Math.PI)/r)+1)},elasticInOut:function(e){var t,n=.1,r=.4;return e===0?0:e===1?1:(!n||n<1?(n=1,t=r/4):t=r*Math.asin(1/n)/(2*Math.PI),(e*=2)<1?-.5*(n*2**(10*--e)*Math.sin((e-t)*(2*Math.PI)/r)):n*2**(-10*--e)*Math.sin((e-t)*(2*Math.PI)/r)*.5+1)},backIn:function(e){var t=1.70158;return e*e*((t+1)*e-t)},backOut:function(e){var t=1.70158;return--e*e*((t+1)*e+t)+1},backInOut:function(e){var t=2.5949095;return(e*=2)<1?.5*(e*e*((t+1)*e-t)):.5*((e-=2)*e*((t+1)*e+t)+2)},bounceIn:function(e){return 1-ur.bounceOut(1-e)},bounceOut:function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},bounceInOut:function(e){return e<.5?ur.bounceIn(e*2)*.5:ur.bounceOut(e*2-1)*.5+.5}},dr=Math.pow,fr=Math.sqrt,pr=1e-8,mr=1e-4,hr=fr(3),gr=1/3,_r=Tt(),vr=Tt(),yr=Tt();function br(e){return e>-pr&&epr||e<-pr}function Sr(e,t,n,r,i){var a=1-i;return a*a*(a*e+3*i*t)+i*i*(i*r+3*a*n)}function Cr(e,t,n,r,i){var a=1-i;return 3*(((t-e)*a+2*(n-t)*i)*a+(r-n)*i*i)}function wr(e,t,n,r,i,a){var o=r+3*(t-n)-e,s=3*(n-t*2+e),c=3*(t-e),l=e-i,u=s*s-3*o*c,d=s*c-9*o*l,f=c*c-3*s*l,p=0;if(br(u)&&br(d))if(br(s))a[0]=0;else{var m=-c/s;m>=0&&m<=1&&(a[p++]=m)}else{var h=d*d-4*u*f;if(br(h)){var g=d/u,m=-s/o+g,_=-g/2;m>=0&&m<=1&&(a[p++]=m),_>=0&&_<=1&&(a[p++]=_)}else if(h>0){var v=fr(h),y=u*s+1.5*o*(-d+v),b=u*s+1.5*o*(-d-v);y=y<0?-dr(-y,gr):dr(y,gr),b=b<0?-dr(-b,gr):dr(b,gr);var m=(-s-(y+b))/(3*o);m>=0&&m<=1&&(a[p++]=m)}else{var x=(2*u*s-3*o*d)/(2*fr(u*u*u)),S=Math.acos(x)/3,C=fr(u),w=Math.cos(S),m=(-s-2*C*w)/(3*o),_=(-s+C*(w+hr*Math.sin(S)))/(3*o),T=(-s+C*(w-hr*Math.sin(S)))/(3*o);m>=0&&m<=1&&(a[p++]=m),_>=0&&_<=1&&(a[p++]=_),T>=0&&T<=1&&(a[p++]=T)}}return p}function Tr(e,t,n,r,i){var a=6*n-12*t+6*e,o=9*t+3*r-3*e-9*n,s=3*t-3*e,c=0;if(br(o)){if(xr(a)){var l=-s/a;l>=0&&l<=1&&(i[c++]=l)}}else{var u=a*a-4*o*s;if(br(u))i[0]=-a/(2*o);else if(u>0){var d=fr(u),l=(-a+d)/(2*o),f=(-a-d)/(2*o);l>=0&&l<=1&&(i[c++]=l),f>=0&&f<=1&&(i[c++]=f)}}return c}function Er(e,t,n,r,i,a){var o=(t-e)*i+e,s=(n-t)*i+t,c=(r-n)*i+n,l=(s-o)*i+o,u=(c-s)*i+s,d=(u-l)*i+l;a[0]=e,a[1]=o,a[2]=l,a[3]=d,a[4]=d,a[5]=u,a[6]=c,a[7]=r}function Dr(e,t,n,r,i,a,o,s,c,l,u){var d,f=.005,p=1/0,m,h,g,_;_r[0]=c,_r[1]=l;for(var v=0;v<1;v+=.05)vr[0]=Sr(e,n,i,o,v),vr[1]=Sr(t,r,a,s,v),g=zt(_r,vr),g=0&&g=0&&l<=1&&(i[c++]=l)}}else{var u=o*o-4*a*s;if(br(u)){var l=-o/(2*a);l>=0&&l<=1&&(i[c++]=l)}else if(u>0){var d=fr(u),l=(-o+d)/(2*a),f=(-o-d)/(2*a);l>=0&&l<=1&&(i[c++]=l),f>=0&&f<=1&&(i[c++]=f)}}return c}function Mr(e,t,n){var r=e+n-2*t;return r===0?.5:(e-t)/r}function Nr(e,t,n,r,i){var a=(t-e)*r+e,o=(n-t)*r+t,s=(o-a)*r+a;i[0]=e,i[1]=a,i[2]=s,i[3]=s,i[4]=o,i[5]=n}function Pr(e,t,n,r,i,a,o,s,c){var l,u=.005,d=1/0;_r[0]=o,_r[1]=s;for(var f=0;f<1;f+=.05){vr[0]=kr(e,n,i,f),vr[1]=kr(t,r,a,f);var p=zt(_r,vr);p=0&&p=1?1:wr(0,r,a,1,e,s)&&Sr(0,i,o,1,s[0])}}}var Rr=function(){function e(e){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=e.life||1e3,this._delay=e.delay||0,this.loop=e.loop||!1,this.onframe=e.onframe||Ve,this.ondestroy=e.ondestroy||Ve,this.onrestart=e.onrestart||Ve,e.easing&&this.setEasing(e.easing)}return e.prototype.step=function(e,t){if(this._inited||=(this._startTime=e+this._delay,!0),this._paused){this._pausedTime+=t;return}var n=this._life,r=e-this._startTime-this._pausedTime,i=r/n;i<0&&(i=0),i=Math.min(i,1);var a=this.easingFunc,o=a?a(i):i;if(this.onframe(o),i===1)if(this.loop){var s=r%n;this._startTime=e-s,this._pausedTime=0,this.onrestart()}else return!0;return!1},e.prototype.pause=function(){this._paused=!0},e.prototype.resume=function(){this._paused=!1},e.prototype.setEasing=function(e){this.easing=e,this.easingFunc=ge(e)?e:ur[e]||Lr(e)},e}(),zr={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function Br(e){return e=Math.round(e),e<0?0:e>255?255:e}function Vr(e){return e=Math.round(e),e<0?0:e>360?360:e}function Hr(e){return e<0?0:e>1?1:e}function Ur(e){var t=e;return t.length&&t.charAt(t.length-1)===`%`?Br(parseFloat(t)/100*255):Br(parseInt(t,10))}function Wr(e){var t=e;return t.length&&t.charAt(t.length-1)===`%`?Hr(parseFloat(t)/100):Hr(parseFloat(t))}function Gr(e,t,n){return n<0?n+=1:n>1&&--n,n*6<1?e+(t-e)*n*6:n*2<1?t:n*3<2?e+(t-e)*(2/3-n)*6:e}function Kr(e,t,n){return e+(t-e)*n}function qr(e,t,n,r,i){return e[0]=t,e[1]=n,e[2]=r,e[3]=i,e}function Jr(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var Yr=new dt(20),Xr=null;function Zr(e,t){Xr&&Jr(Xr,t),Xr=Yr.put(e,Xr||t.slice())}function Qr(e,t){if(e){t||=[];var n=Yr.get(e);if(n)return Jr(t,n);e+=``;var r=e.replace(/ /g,``).toLowerCase();if(r in zr)return Jr(t,zr[r]),Zr(e,t),t;var i=r.length;if(r.charAt(0)===`#`){if(i===4||i===5){var a=parseInt(r.slice(1,4),16);if(!(a>=0&&a<=4095)){qr(t,0,0,0,1);return}return qr(t,(a&3840)>>4|(a&3840)>>8,a&240|(a&240)>>4,a&15|(a&15)<<4,i===5?parseInt(r.slice(4),16)/15:1),Zr(e,t),t}if(i===7||i===9){var a=parseInt(r.slice(1,7),16);if(!(a>=0&&a<=16777215)){qr(t,0,0,0,1);return}return qr(t,(a&16711680)>>16,(a&65280)>>8,a&255,i===9?parseInt(r.slice(7),16)/255:1),Zr(e,t),t}return}var o=r.indexOf(`(`),s=r.indexOf(`)`);if(o!==-1&&s+1===i){var c=r.substr(0,o),l=r.substr(o+1,s-(o+1)).split(`,`),u=1;switch(c){case`rgba`:if(l.length!==4)return l.length===3?qr(t,+l[0],+l[1],+l[2],1):qr(t,0,0,0,1);u=Wr(l.pop());case`rgb`:if(l.length>=3)return qr(t,Ur(l[0]),Ur(l[1]),Ur(l[2]),l.length===3?u:Wr(l[3])),Zr(e,t),t;qr(t,0,0,0,1);return;case`hsla`:if(l.length!==4){qr(t,0,0,0,1);return}return l[3]=Wr(l[3]),$r(l,t),Zr(e,t),t;case`hsl`:if(l.length!==3){qr(t,0,0,0,1);return}return $r(l,t),Zr(e,t),t;default:return}}qr(t,0,0,0,1)}}function $r(e,t){var n=(parseFloat(e[0])%360+360)%360/360,r=Wr(e[1]),i=Wr(e[2]),a=i<=.5?i*(r+1):i+r-i*r,o=i*2-a;return t||=[],qr(t,Br(Gr(o,a,n+1/3)*255),Br(Gr(o,a,n)*255),Br(Gr(o,a,n-1/3)*255),1),e.length===4&&(t[3]=e[3]),t}function ei(e){if(e){var t=e[0]/255,n=e[1]/255,r=e[2]/255,i=Math.min(t,n,r),a=Math.max(t,n,r),o=a-i,s=(a+i)/2,c,l;if(o===0)c=0,l=0;else{l=s<.5?o/(a+i):o/(2-a-i);var u=((a-t)/6+o/2)/o,d=((a-n)/6+o/2)/o,f=((a-r)/6+o/2)/o;t===a?c=f-d:n===a?c=1/3+u-f:r===a&&(c=2/3+d-u),c<0&&(c+=1),c>1&&--c}var p=[c*360,l,s];return e[3]!=null&&p.push(e[3]),p}}function ti(e,t){var n=Qr(e);if(n){for(var r=0;r<3;r++)t<0?n[r]=n[r]*(1-t)|0:n[r]=(255-n[r])*t+n[r]|0,n[r]>255?n[r]=255:n[r]<0&&(n[r]=0);return ai(n,n.length===4?`rgba`:`rgb`)}}function ni(e,t,n){if(!(!(t&&t.length)||!(e>=0&&e<=1))){n||=[];var r=e*(t.length-1),i=Math.floor(r),a=Math.ceil(r),o=t[i],s=t[a],c=r-i;return n[0]=Br(Kr(o[0],s[0],c)),n[1]=Br(Kr(o[1],s[1],c)),n[2]=Br(Kr(o[2],s[2],c)),n[3]=Hr(Kr(o[3],s[3],c)),n}}function ri(e,t,n,r){var i=Qr(e);if(e)return i=ei(i),t!=null&&(i[0]=Vr(ge(t)?t(i[0]):t)),n!=null&&(i[1]=Wr(ge(n)?n(i[1]):n)),r!=null&&(i[2]=Wr(ge(r)?r(i[2]):r)),ai($r(i),`rgba`)}function ii(e,t){var n=Qr(e);if(n&&t!=null)return n[3]=Hr(t),ai(n,`rgba`)}function ai(e,t){if(!(!e||!e.length)){var n=e[0]+`,`+e[1]+`,`+e[2];return(t===`rgba`||t===`hsva`||t===`hsla`)&&(n+=`,`+e[3]),t+`(`+n+`)`}}function oi(e,t){var n=Qr(e);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*t:0}var si=new dt(100);function ci(e){if(z(e)){var t=si.get(e);return t||(t=ti(e,-.1),si.put(e,t)),t}if(Se(e)){var n=P({},e);return n.colorStops=L(e.colorStops,function(e){return{offset:e.offset,color:ti(e.color,-.1)}}),n}return e}var li=Math.round;function ui(e){var t;if(!e||e===`transparent`)e=`none`;else if(typeof e==`string`&&e.indexOf(`rgba`)>-1){var n=Qr(e);n&&(e=`rgb(`+n[0]+`,`+n[1]+`,`+n[2]+`)`,t=n[3])}return{color:e,opacity:t??1}}var di=1e-4;function fi(e){return e-di}function pi(e){return li(e*1e3)/1e3}function mi(e){return li(e*1e4)/1e4}function hi(e){return`matrix(`+pi(e[0])+`,`+pi(e[1])+`,`+pi(e[2])+`,`+pi(e[3])+`,`+mi(e[4])+`,`+mi(e[5])+`)`}var gi={left:`start`,right:`end`,center:`middle`,middle:`middle`};function _i(e,t,n){return n===`top`?e+=t/2:n===`bottom`&&(e-=t/2),e}function vi(e){return e&&(e.shadowBlur||e.shadowOffsetX||e.shadowOffsetY)}function yi(e){var t=e.style,n=e.getGlobalScale();return[t.shadowColor,(t.shadowBlur||0).toFixed(2),(t.shadowOffsetX||0).toFixed(2),(t.shadowOffsetY||0).toFixed(2),n[0],n[1]].join(`,`)}function bi(e){return e&&!!e.image}function xi(e){return e&&!!e.svgElement}function Si(e){return bi(e)||xi(e)}function Ci(e){return e.type===`linear`}function wi(e){return e.type===`radial`}function Ti(e){return e&&(e.type===`linear`||e.type===`radial`)}function Ei(e){return`url(#`+e+`)`}function Di(e){var t=e.getGlobalScale(),n=Math.max(t[0],t[1]);return Math.max(Math.ceil(Math.log(n)/Math.log(10)),1)}function Oi(e){var t=e.x||0,n=e.y||0,r=(e.rotation||0)*He,i=V(e.scaleX,1),a=V(e.scaleY,1),o=e.skewX||0,s=e.skewY||0,c=[];return(t||n)&&c.push(`translate(`+t+`px,`+n+`px)`),r&&c.push(`rotate(`+r+`)`),(i!==1||a!==1)&&c.push(`scale(`+i+`,`+a+`)`),(o||s)&&c.push(`skew(`+li(o*He)+`deg, `+li(s*He)+`deg)`),c.join(` `)}var ki=(function(){return typeof Buffer<`u`&&typeof Buffer.from==`function`?function(e){return Buffer.from(e).toString(`base64`)}:typeof btoa==`function`&&typeof unescape==`function`&&typeof encodeURIComponent==`function`?function(e){return btoa(unescape(encodeURIComponent(e)))}:function(e){return null}})(),Ai=Array.prototype.slice;function ji(e,t,n){return(t-e)*n+e}function Mi(e,t,n,r){for(var i=t.length,a=0;ar?t:e,a=Math.min(n,r),o=i[a-1]||{color:[0,0,0,0],offset:0},s=a;so)r.length=o;else for(var s=a;s=1},e.prototype.getAdditiveTrack=function(){return this._additiveTrack},e.prototype.addKeyframe=function(e,t,n){this._needsSort=!0;var r=this.keyframes,i=r.length,a=!1,o=qi,s=t;if(ce(t)){var c=Bi(t);o=c,(c===1&&!ve(t[0])||c===2&&!ve(t[0][0]))&&(a=!0)}else if(ve(t)&&!Ce(t))o=Vi;else if(z(t))if(!isNaN(+t))o=Vi;else{var l=Qr(t);l&&(s=l,o=Wi)}else if(Se(t)){var u=P({},s);u.colorStops=L(t.colorStops,function(e){return{offset:e.offset,color:Qr(e.color)}}),Ci(t)?o=Gi:wi(t)&&(o=Ki),s=u}i===0?this.valType=o:(o!==this.valType||o===qi)&&(a=!0),this.discrete=this.discrete||a;var d={time:e,value:s,rawValue:t,percent:0};return n&&(d.easing=n,d.easingFunc=ge(n)?n:ur[n]||Lr(n)),r.push(d),d},e.prototype.prepare=function(e,t){var n=this.keyframes;this._needsSort&&n.sort(function(e,t){return e.time-t.time});for(var r=this.valType,i=n.length,a=n[i-1],o=this.discrete,s=Yi(r),c=Ji(r),l=0;l=0&&!(a[l].percent<=t);l--);l=d(l,o-2)}else{for(l=u;lt);l++);l=d(l-1,o-2)}p=a[l+1],f=a[l]}if(f&&p){this._lastFr=l,this._lastFrP=t;var m=p.percent-f.percent,h=m===0?1:d((t-f.percent)/m,1);p.easingFunc&&(h=p.easingFunc(h));var g=n?this._additiveValue:c?Xi:e[s];if((Yi(i)||c)&&!g&&(g=this._additiveValue=[]),this.discrete)e[s]=h<1?f.rawValue:p.rawValue;else if(Yi(i))i===Hi?Mi(g,f[r],p[r],h):Ni(g,f[r],p[r],h);else if(Ji(i)){var _=f[r],v=p[r],y=i===Gi;e[s]={type:y?`linear`:`radial`,x:ji(_.x,v.x,h),y:ji(_.y,v.y,h),colorStops:L(_.colorStops,function(e,t){var n=v.colorStops[t];return{offset:ji(e.offset,n.offset,h),color:zi(Mi([],e.color,n.color,h))}}),global:v.global},y?(e[s].x2=ji(_.x2,v.x2,h),e[s].y2=ji(_.y2,v.y2,h)):e[s].r=ji(_.r,v.r,h)}else if(c)Mi(g,f[r],p[r],h),n||(e[s]=zi(g));else{var b=ji(f[r],p[r],h);n?this._additiveValue=b:e[s]=b}n&&this._addToTarget(e)}}},e.prototype._addToTarget=function(e){var t=this.valType,n=this.propName,r=this._additiveValue;t===Vi?e[n]=e[n]+r:t===Wi?(Qr(e[n],Xi),Pi(Xi,Xi,r,1),e[n]=zi(Xi)):t===Hi?Pi(e[n],e[n],r,1):t===Ui&&Fi(e[n],e[n],r,1)},e}(),Qi=function(){function e(e,t,n,r){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=t,t&&r){re(`Can' use additive animation on looped animation.`);return}this._additiveAnimators=r,this._allowDiscrete=n}return e.prototype.getMaxTime=function(){return this._maxTime},e.prototype.getDelay=function(){return this._delay},e.prototype.getLoop=function(){return this._loop},e.prototype.getTarget=function(){return this._target},e.prototype.changeTarget=function(e){this._target=e},e.prototype.when=function(e,t,n){return this.whenWithKeys(e,t,fe(t),n)},e.prototype.whenWithKeys=function(e,t,n,r){for(var i=this._tracks,a=0;a0&&s.addKeyframe(0,Ri(c),r),this._trackKeys.push(o)}s.addKeyframe(e,Ri(t[o]),r)}return this._maxTime=Math.max(this._maxTime,e),this},e.prototype.pause=function(){this._clip.pause(),this._paused=!0},e.prototype.resume=function(){this._clip.resume(),this._paused=!1},e.prototype.isPaused=function(){return!!this._paused},e.prototype.duration=function(e){return this._maxTime=e,this._force=!0,this},e.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var e=this._doneCbs;if(e)for(var t=e.length,n=0;n0)){this._started=1;for(var t=this,n=[],r=this._maxTime||0,i=0;i1){var o=a.pop();i.addKeyframe(o.time,e[r]),i.prepare(this._maxTime,i.getAdditiveTrack())}}}},e}(),$i=function(){function e(e){e&&(this._$eventProcessor=e)}return e.prototype.on=function(e,t,n,r){this._$handlers||={};var i=this._$handlers;if(typeof t==`function`&&(r=n,n=t,t=null),!n||!e)return this;var a=this._$eventProcessor;t!=null&&a&&a.normalizeQuery&&(t=a.normalizeQuery(t)),i[e]||(i[e]=[]);for(var o=0;o=0:n.inside,y=void 0,b=void 0,x=void 0;v&&this.canBeInsideText()?(y=n.insideFill,b=n.insideStroke,(y==null||y===`auto`)&&(y=this.getInsideTextFill()),(b==null||b===`auto`)&&(b=this.getInsideTextStroke(y),x=!0)):(y=n.outsideFill,b=n.outsideStroke,(y==null||y===`auto`)&&(y=this.getOutsideFill()),(b==null||b===`auto`)&&(b=this.getOutsideStroke(y),x=!0)),y||=`#000`,(y!==g.fill||b!==g.stroke||x!==g.autoStroke||a!==g.align||o!==g.verticalAlign)&&(s=!0,g.fill=y,g.stroke=b,g.autoStroke=x,g.align=a,g.verticalAlign=o,t.setDefaultTextStyle(g)),t.__dirty|=1,s&&t.dirtyStyle(!0)}},e.prototype.canBeInsideText=function(){return!0},e.prototype.getInsideTextFill=function(){return`#fff`},e.prototype.getInsideTextStroke=function(e){return`#000`},e.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?ia:ra},e.prototype.getOutsideStroke=function(e){var t=this.__zr&&this.__zr.getBackgroundColor(),n=typeof t==`string`&&Qr(t);n||=[255,255,255,1];for(var r=n[3],i=this.__zr.isDarkMode(),a=0;a<3;a++)n[a]=n[a]*r+(i?0:255)*(1-r);return n[3]=1,ai(n,`rgba`)},e.prototype.traverse=function(e,t){},e.prototype.attrKV=function(e,t){e===`textConfig`?this.setTextConfig(t):e===`textContent`?this.setTextContent(t):e===`clipPath`?this.setClipPath(t):e===`extra`?(this.extra=this.extra||{},P(this.extra,t)):this[e]=t},e.prototype.hide=function(){this.ignore=!0,this.markRedraw()},e.prototype.show=function(){this.ignore=!1,this.markRedraw()},e.prototype.attr=function(e,t){if(typeof e==`string`)this.attrKV(e,t);else if(B(e))for(var n=fe(e),r=0;r0},e.prototype.getState=function(e){return this.states[e]},e.prototype.ensureState=function(e){var t=this.states;return t[e]||(t[e]={}),t[e]},e.prototype.clearStates=function(e){this.useState(oa,!1,e)},e.prototype.useState=function(e,t,n,r){var i=e===oa;if(!(!this.hasState()&&i)){var a=this.currentStates,o=this.stateTransition;if(!(ae(a,e)>=0&&(t||a.length===1))){var s;if(this.stateProxy&&!i&&(s=this.stateProxy(e)),s||=this.states&&this.states[e],!s&&!i){re(`State `+e+` not exists.`);return}i||this.saveCurrentToNormalState(s);var c=this._textContent,l=ba(this,c,s,r);l&&!this.__inHover&&(this.__inHover=l),this._applyStateObj(e,s,this._normalState,t,Sa(this,n,o),o);var u=this._textGuide;return c&&c.useState(e,t,n,!!l),u&&u.useState(e,t,n,!!l),i?(this.currentStates=[],this._normalState={}):t?this.currentStates.push(e):this.currentStates=[e],this._updateAnimationTargets(),this.markRedraw(),!l&&this.__inHover&&(this.__inHover=0,this.__dirty&=-2),s}}},e.prototype.useStates=function(e,t,n){if(!e.length)this.clearStates();else{var r=[],i=this.currentStates,a=e.length,o=a===i.length;if(o){for(var s=0;s=0){var n=this.currentStates.slice();n.splice(t,1),this.useStates(n)}},e.prototype.replaceState=function(e,t,n){var r=this.currentStates.slice(),i=ae(r,e),a=ae(r,t)>=0;i>=0?a?r.splice(i,1):r[i]=t:n&&!a&&r.push(t),this.useStates(r)},e.prototype.toggleState=function(e,t){t?this.useState(e,!0):this.removeState(e)},e.prototype._mergeStates=function(e){for(var t={},n,r=0;r=0&&t.splice(n,1)}),this.animators.push(e),n&&n.animation.addAnimator(e),n&&n.wakeUp()},e.prototype.updateDuringAnimation=function(e){this.markRedraw()},e.prototype.stopAnimation=function(e,t){for(var n=this.animators,r=n.length,i=[],a=0;a0&&n.during&&a[0].during(function(e,t){n.during(t)});for(var f=0;f0||i.force&&!o.length){var C=void 0,w=void 0,T=void 0;if(s){w={},f&&(C={});for(var b=0;b0}var Ca=`__zr_style_`+Math.round(Math.random()*10),wa={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:`#000`,opacity:1,blend:`source-over`},Ta={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};wa[Ca]=!0;var Ea=[`z`,`z2`,`invisible`],Da=[`invisible`],Oa=function(e){p(t,e);function t(t){return e.call(this,t)||this}return t.prototype._init=function(t){for(var n=fe(t),r=0;r1e-4){s[0]=e-n,s[1]=t-r,c[0]=e+n,c[1]=t+r;return}if(La[0]=Fa(i)*n+e,La[1]=Pa(i)*r+t,Ra[0]=Fa(a)*n+e,Ra[1]=Pa(a)*r+t,l(s,La,Ra),u(c,La,Ra),i%=Ia,i<0&&(i+=Ia),a%=Ia,a<0&&(a+=Ia),i>a&&!o?a+=Ia:ii&&(za[0]=Fa(p)*n+e,za[1]=Pa(p)*r+t,l(s,za,s),u(c,za,c))}var qa={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},Ja=[],Ya=[],Xa=[],Za=[],Qa=[],$a=[],eo=Math.min,to=Math.max,no=Math.cos,ro=Math.sin,io=Math.abs,ao=Math.PI,oo=ao*2,so=typeof Float32Array<`u`,co=[];function lo(e){return Math.round(e/ao*1e8)/1e8%2*ao}function uo(e,t){var n=lo(e[0]);n<0&&(n+=oo);var r=n-e[0],i=e[1];i+=r,!t&&i-n>=oo?i=n+oo:t&&n-i>=oo?i=n-oo:!t&&n>i?i=n+(oo-lo(n-i)):t&&n0&&(this._ux=io(n/ta/e)||0,this._uy=io(n/ta/t)||0)},e.prototype.setDPR=function(e){this.dpr=e},e.prototype.setContext=function(e){this._ctx=e},e.prototype.getContext=function(){return this._ctx},e.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},e.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},e.prototype.moveTo=function(e,t){return this._drawPendingPt(),this.addData(qa.M,e,t),this._ctx&&this._ctx.moveTo(e,t),this._x0=e,this._y0=t,this._xi=e,this._yi=t,this},e.prototype.lineTo=function(e,t){var n=io(e-this._xi),r=io(t-this._yi),i=n>this._ux||r>this._uy;if(this.addData(qa.L,e,t),this._ctx&&i&&this._ctx.lineTo(e,t),i)this._xi=e,this._yi=t,this._pendingPtDist=0;else{var a=n*n+r*r;a>this._pendingPtDist&&(this._pendingPtX=e,this._pendingPtY=t,this._pendingPtDist=a)}return this},e.prototype.bezierCurveTo=function(e,t,n,r,i,a){return this._drawPendingPt(),this.addData(qa.C,e,t,n,r,i,a),this._ctx&&this._ctx.bezierCurveTo(e,t,n,r,i,a),this._xi=i,this._yi=a,this},e.prototype.quadraticCurveTo=function(e,t,n,r){return this._drawPendingPt(),this.addData(qa.Q,e,t,n,r),this._ctx&&this._ctx.quadraticCurveTo(e,t,n,r),this._xi=n,this._yi=r,this},e.prototype.arc=function(e,t,n,r,i,a){this._drawPendingPt(),co[0]=r,co[1]=i,uo(co,a),r=co[0],i=co[1];var o=i-r;return this.addData(qa.A,e,t,n,n,r,o,0,+!a),this._ctx&&this._ctx.arc(e,t,n,r,i,a),this._xi=no(i)*n+e,this._yi=ro(i)*n+t,this},e.prototype.arcTo=function(e,t,n,r,i){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(e,t,n,r,i),this},e.prototype.rect=function(e,t,n,r){return this._drawPendingPt(),this._ctx&&this._ctx.rect(e,t,n,r),this.addData(qa.R,e,t,n,r),this},e.prototype.closePath=function(){this._drawPendingPt(),this.addData(qa.Z);var e=this._ctx,t=this._x0,n=this._y0;return e&&e.closePath(),this._xi=t,this._yi=n,this},e.prototype.fill=function(e){e&&e.fill(),this.toStatic()},e.prototype.stroke=function(e){e&&e.stroke(),this.toStatic()},e.prototype.len=function(){return this._len},e.prototype.setData=function(e){if(this._saveData){var t=e.length;!(this.data&&this.data.length===t)&&so&&(this.data=new Float32Array(t));for(var n=0;n0&&a))for(var o=0;ol.length&&(this._expandData(),l=this.data);for(var u=0;u0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},e.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var e=[],t=0;t11&&(this.data=new Float32Array(e)))}},e.prototype.getBoundingRect=function(){Xa[0]=Xa[1]=Qa[0]=Qa[1]=Number.MAX_VALUE,Za[0]=Za[1]=$a[0]=$a[1]=-Number.MAX_VALUE;var e=this.data,t=0,n=0,r=0,i=0,a;for(a=0;an||io(v)>r||d===t-1)&&(m=Math.sqrt(_*_+v*v),i=h,a=g);break;case qa.C:var y=e[d++],b=e[d++],h=e[d++],g=e[d++],x=e[d++],S=e[d++];m=Or(i,a,y,b,h,g,x,S,10),i=x,a=S;break;case qa.Q:var y=e[d++],b=e[d++],h=e[d++],g=e[d++];m=Fr(i,a,y,b,h,g,10),i=h,a=g;break;case qa.A:var C=e[d++],w=e[d++],T=e[d++],E=e[d++],D=e[d++],O=e[d++],k=O+D;d+=1,p&&(o=no(D)*T+C,s=ro(D)*E+w),m=to(T,E)*eo(oo,Math.abs(O)),i=no(k)*T+C,a=ro(k)*E+w;break;case qa.R:o=i=e[d++],s=a=e[d++];var ee=e[d++],te=e[d++];m=ee*2+te*2;break;case qa.Z:var _=o-i,v=s-a;m=Math.sqrt(_*_+v*v),i=o,a=s}m>=0&&(c[u++]=m,l+=m)}return this._pathLen=l,l},e.prototype.rebuildPath=function(e,t){var n=this.data,r=this._ux,i=this._uy,a=this._len,o,s,c,l,u,d,f=t<1,p,m,h=0,g=0,_,v=0,y,b;if(!(f&&(this._pathSegLen||this._calculateLength(),p=this._pathSegLen,m=this._pathLen,_=t*m,!_)))lo:for(var x=0;x0&&(e.lineTo(y,b),v=0),S){case qa.M:o=c=n[x++],s=l=n[x++],e.moveTo(c,l);break;case qa.L:u=n[x++],d=n[x++];var w=io(u-c),T=io(d-l);if(w>r||T>i){if(f){var E=p[g++];if(h+E>_){var D=(_-h)/E;e.lineTo(c*(1-D)+u*D,l*(1-D)+d*D);break lo}h+=E}e.lineTo(u,d),c=u,l=d,v=0}else{var O=w*w+T*T;O>v&&(y=u,b=d,v=O)}break;case qa.C:var k=n[x++],ee=n[x++],te=n[x++],ne=n[x++],A=n[x++],j=n[x++];if(f){var E=p[g++];if(h+E>_){var D=(_-h)/E;Er(c,k,te,A,D,Ja),Er(l,ee,ne,j,D,Ya),e.bezierCurveTo(Ja[1],Ya[1],Ja[2],Ya[2],Ja[3],Ya[3]);break lo}h+=E}e.bezierCurveTo(k,ee,te,ne,A,j),c=A,l=j;break;case qa.Q:var k=n[x++],ee=n[x++],te=n[x++],ne=n[x++];if(f){var E=p[g++];if(h+E>_){var D=(_-h)/E;Nr(c,k,te,D,Ja),Nr(l,ee,ne,D,Ya),e.quadraticCurveTo(Ja[1],Ya[1],Ja[2],Ya[2]);break lo}h+=E}e.quadraticCurveTo(k,ee,te,ne),c=te,l=ne;break;case qa.A:var re=n[x++],M=n[x++],N=n[x++],P=n[x++],ie=n[x++],F=n[x++],ae=n[x++],oe=!n[x++],se=N>P?N:P,ce=io(N-P)>.001,I=ie+F,L=!1;if(f){var E=p[g++];h+E>_&&(I=ie+F*(_-h)/E,L=!0),h+=E}if(ce&&e.ellipse?e.ellipse(re,M,N,P,ae,ie,I,oe):e.arc(re,M,se,ie,I,oe),L)break lo;C&&(o=no(ie)*N+re,s=ro(ie)*P+M),c=no(I)*N+re,l=ro(I)*P+M;break;case qa.R:o=c=n[x],s=l=n[x+1],u=n[x++],d=n[x++];var le=n[x++],ue=n[x++];if(f){var E=p[g++];if(h+E>_){var de=_-h;e.moveTo(u,d),e.lineTo(u+eo(de,le),d),de-=le,de>0&&e.lineTo(u+le,d+eo(de,ue)),de-=ue,de>0&&e.lineTo(u+to(le-de,0),d+ue),de-=le,de>0&&e.lineTo(u,d+to(ue-de,0));break lo}h+=E}e.rect(u,d,le,ue);break;case qa.Z:if(f){var E=p[g++];if(h+E>_){var D=(_-h)/E;e.lineTo(c*(1-D)+o*D,l*(1-D)+s*D);break lo}h+=E}e.closePath(),c=o,l=s}}},e.prototype.clone=function(){var t=new e,n=this.data;return t.data=n.slice?n.slice():Array.prototype.slice.call(n),t._len=this._len,t},e.prototype.canSave=function(){return!!this._saveData},e.CMD=qa,e.initDefaultProps=(function(){var t=e.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0})(),e}();function po(e,t,n,r,i,a,o){if(i===0)return!1;var s=i,c=0,l=e;if(o>t+s&&o>r+s||oe+s&&a>n+s||at+d&&u>r+d&&u>a+d&&u>s+d||ue+d&&l>n+d&&l>i+d&&l>o+d||lt+l&&c>r+l&&c>a+l||ce+l&&s>n+l&&s>i+l||sn||u+li&&(i+=vo);var f=Math.atan2(c,s);return f<0&&(f+=vo),f>=r&&f<=i||f+vo>=r&&f+vo<=i}function bo(e,t,n,r,i,a){if(a>t&&a>r||ai?s:0}var xo=fo.CMD,So=Math.PI*2,Co=1e-4;function wo(e,t){return Math.abs(e-t)t&&l>r&&l>a&&l>s||l1&&Do(),p=Sr(t,r,a,s,Eo[0]),f>1&&(m=Sr(t,r,a,s,Eo[1]))),f===2?gt&&s>r&&s>a||s=0&&l<=1){for(var u=0,d=kr(t,r,a,l),f=0;fn||s<-n)return 0;var c=Math.sqrt(n*n-s*s);To[0]=-c,To[1]=c;var l=Math.abs(r-i);if(l<1e-4)return 0;if(l>=So-1e-4){r=0,i=So;var u=a?1:-1;return o>=To[0]+e&&o<=To[1]+e?u:0}if(r>i){var d=r;r=i,i=d}r<0&&(r+=So,i+=So);for(var f=0,p=0;p<2;p++){var m=To[p];if(m+e>o){var h=Math.atan2(s,m),u=a?1:-1;h<0&&(h=So+h),(h>=r&&h<=i||h+So>=r&&h+So<=i)&&(h>Math.PI/2&&h1&&(n||(s+=bo(c,l,u,d,r,i))),g&&(c=a[m],l=a[m+1],u=c,d=l),h){case xo.M:u=a[m++],d=a[m++],c=u,l=d;break;case xo.L:if(n){if(po(c,l,a[m],a[m+1],t,r,i))return!0}else s+=bo(c,l,a[m],a[m+1],r,i)||0;c=a[m++],l=a[m++];break;case xo.C:if(n){if(mo(c,l,a[m++],a[m++],a[m++],a[m++],a[m],a[m+1],t,r,i))return!0}else s+=Oo(c,l,a[m++],a[m++],a[m++],a[m++],a[m],a[m+1],r,i)||0;c=a[m++],l=a[m++];break;case xo.Q:if(n){if(ho(c,l,a[m++],a[m++],a[m],a[m+1],t,r,i))return!0}else s+=ko(c,l,a[m++],a[m++],a[m],a[m+1],r,i)||0;c=a[m++],l=a[m++];break;case xo.A:var _=a[m++],v=a[m++],y=a[m++],b=a[m++],x=a[m++],S=a[m++];m+=1;var C=!!(1-a[m++]);f=Math.cos(x)*y+_,p=Math.sin(x)*b+v,g?(u=f,d=p):s+=bo(c,l,f,p,r,i);var w=(r-_)*b/y+_;if(n){if(yo(_,v,b,x,x+S,C,t,w,i))return!0}else s+=Ao(_,v,b,x,x+S,C,w,i);c=Math.cos(x+S)*y+_,l=Math.sin(x+S)*b+v;break;case xo.R:u=c=a[m++],d=l=a[m++];var T=a[m++],E=a[m++];if(f=u+T,p=d+E,n){if(po(u,d,f,d,t,r,i)||po(f,d,f,p,t,r,i)||po(f,p,u,p,t,r,i)||po(u,p,u,d,t,r,i))return!0}else s+=bo(f,d,f,p,r,i),s+=bo(u,p,u,d,r,i);break;case xo.Z:if(n){if(po(c,l,u,d,t,r,i))return!0}else s+=bo(c,l,u,d,r,i);c=u,l=d}}return!n&&!wo(l,d)&&(s+=bo(c,l,u,d,r,i)||0),s!==0}function Mo(e,t,n){return jo(e,0,!1,t,n)}function No(e,t,n,r){return jo(e,t,!0,n,r)}var Po=F({fill:`#000`,stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:`butt`,miterLimit:10,strokeNoScale:!1,strokeFirst:!1},wa),Fo={style:F({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Ta.style)},Io=cr.concat([`invisible`,`culling`,`z`,`z2`,`zlevel`,`parent`]),Lo=function(e){p(t,e);function t(t){return e.call(this,t)||this}return t.prototype.update=function(){var n=this;e.prototype.update.call(this);var r=this.style;if(r.decal){var i=this._decalEl=this._decalEl||new t;i.buildPath===t.prototype.buildPath&&(i.buildPath=function(e){n.buildPath(e,n.shape)}),i.silent=!0;var a=i.style;for(var o in r)a[o]!==r[o]&&(a[o]=r[o]);a.fill=r.fill?r.decal:null,a.decal=null,a.shadowColor=null,r.strokeFirst&&(a.stroke=null);for(var s=0;s.5?ra:t>.2?aa:ia}if(e)return ia}return ra},t.prototype.getInsideTextStroke=function(e){var t=this.style.fill;if(z(t)){var n=this.__zr;if(!!(n&&n.isDarkMode())==oi(e,0)<.4)return t}},t.prototype.buildPath=function(e,t,n){},t.prototype.pathUpdated=function(){this.__dirty&=-5},t.prototype.getUpdatedPathProxy=function(e){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,e),this.path},t.prototype.createPathProxy=function(){this.path=new fo(!1)},t.prototype.hasStroke=function(){var e=this.style,t=e.stroke;return!(t==null||t===`none`||!(e.lineWidth>0))},t.prototype.hasFill=function(){var e=this.style.fill;return e!=null&&e!==`none`},t.prototype.getBoundingRect=function(){var e=this._rect,t=this.style,n=!e;if(n){var r=!1;this.path||(r=!0,this.createPathProxy());var i=this.path;(r||this.__dirty&4)&&(i.beginPath(),this.buildPath(i,this.shape,!1),this.pathUpdated()),e=i.getBoundingRect()}if(this._rect=e,this.hasStroke()&&this.path&&this.path.len()>0){var a=this._rectStroke||=e.clone();if(this.__dirty||n){a.copy(e);var o=t.strokeNoScale?this.getLineScale():1,s=t.lineWidth;if(!this.hasFill()){var c=this.strokeContainThreshold;s=Math.max(s,c??4)}o>1e-10&&(a.width+=s/o,a.height+=s/o,a.x-=s/o/2,a.y-=s/o/2)}return a}return e},t.prototype.contain=function(e,t){var n=this.transformCoordToLocal(e,t),r=this.getBoundingRect(),i=this.style;if(e=n[0],t=n[1],r.contain(e,t)){var a=this.path;if(this.hasStroke()){var o=i.lineWidth,s=i.strokeNoScale?this.getLineScale():1;if(s>1e-10&&(this.hasFill()||(o=Math.max(o,this.strokeContainThreshold)),No(a,o/s,e,t)))return!0}if(this.hasFill())return Mo(a,e,t)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=4,this._rect&&=null,this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},t.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},t.prototype.animateShape=function(e){return this.animate(`shape`,e)},t.prototype.updateDuringAnimation=function(e){e===`style`?this.dirtyStyle():e===`shape`?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(t,n){t===`shape`?this.setShape(n):e.prototype.attrKV.call(this,t,n)},t.prototype.setShape=function(e,t){var n=this.shape;return n||=this.shape={},typeof e==`string`?n[e]=t:P(n,e),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&4)},t.prototype.createStyle=function(e){return ze(Po,e)},t.prototype._innerSaveToNormal=function(t){e.prototype._innerSaveToNormal.call(this,t);var n=this._normalState;t.shape&&!n.shape&&(n.shape=P({},this.shape))},t.prototype._applyStateObj=function(t,n,r,i,a,o){if(e.prototype._applyStateObj.call(this,t,n,r,i,a,o),this.__inHover!==1){var s=!(n&&i),c;if(n&&n.shape?a?i?c=n.shape:(c=P({},r.shape),P(c,n.shape)):(c=P({},i?this.shape:r.shape),P(c,n.shape)):s&&(c=r.shape),c)if(a){this.shape=P({},this.shape);for(var l={},u=fe(c),d=0;di&&(d=s+c,s*=i/d,c*=i/d),l+u>i&&(d=l+u,l*=i/d,u*=i/d),c+l>a&&(d=c+l,c*=a/d,l*=a/d),s+u>a&&(d=s+u,s*=a/d,u*=a/d),e.moveTo(n+s,r),e.lineTo(n+i-c,r),c!==0&&e.arc(n+i-c,r+c,c,-Math.PI/2,0),e.lineTo(n+i,r+a-l),l!==0&&e.arc(n+i-l,r+a-l,l,0,Math.PI/2),e.lineTo(n+u,r+a),u!==0&&e.arc(n+u,r+a-u,u,Math.PI/2,Math.PI),e.lineTo(n,r+s),s!==0&&e.arc(n+s,r+s,s,Math.PI,Math.PI*1.5),e.closePath()}var Go=Math.round;function Ko(e,t,n){if(t){var r=t.x1,i=t.x2,a=t.y1,o=t.y2;e.x1=r,e.x2=i,e.y1=a,e.y2=o;var s=n&&n.lineWidth;return s?(Go(r*2)===Go(i*2)&&(e.x1=e.x2=Jo(r,s,!0)),Go(a*2)===Go(o*2)&&(e.y1=e.y2=Jo(a,s,!0)),e):e}}function qo(e,t,n){if(t){var r=t.x,i=t.y,a=t.width,o=t.height;e.x=r,e.y=i,e.width=a,e.height=o;var s=n&&n.lineWidth;return s?(e.x=Jo(r,s,!0),e.y=Jo(i,s,!0),e.width=Math.max(Jo(r+a,s,!1)-e.x,a===0?0:1),e.height=Math.max(Jo(i+o,s,!1)-e.y,o===0?0:1),e):e}}function Jo(e,t,n){if(!t)return e;var r=Go(e*2);return(r+Go(t))%2==0?r/2:(r+(n?1:-1))/2}var Yo=function(){function e(){this.x=0,this.y=0,this.width=0,this.height=0}return e}(),Xo={},Zo=function(e){p(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new Yo},t.prototype.buildPath=function(e,t){var n,r,i,a;if(this.subPixelOptimize){var o=qo(Xo,t,this.style);n=o.x,r=o.y,i=o.width,a=o.height,o.r=t.r,t=o}else n=t.x,r=t.y,i=t.width,a=t.height;t.r?Wo(e,t):e.rect(n,r,i,a)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(Lo);Zo.prototype.type=`rect`;var Qo={fill:`#000`},$o=2,es={},ts={style:F({fill:!0,stroke:!0,fillOpacity:!0,strokeOpacity:!0,lineWidth:!0,fontSize:!0,lineHeight:!0,width:!0,height:!0,textShadowColor:!0,textShadowBlur:!0,textShadowOffsetX:!0,textShadowOffsetY:!0,backgroundColor:!0,padding:!0,borderColor:!0,borderWidth:!0,borderRadius:!0},Ta.style)},ns=function(e){p(t,e);function t(t){var n=e.call(this)||this;return n.type=`text`,n._children=[],n._defaultStyle=Qo,n.attr(t),n}return t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){e.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var t=0;t0,T=0;T=0&&(D=y[E],D.align===`right`);)this._placeToken(D,e,x,m,T,`right`,g),S-=D.width,T-=D.width,E--;for(w+=(s-(w-p)-(h-T)-S)/2;C<=E;)D=y[C],this._placeToken(D,e,x,m,w+D.width/2,`center`,g),w+=D.width,C++;m+=x}},t.prototype._placeToken=function(e,t,n,r,i,a,o){var s=t.rich[e.styleName]||{};s.text=e.text;var c=e.verticalAlign,l=r+n/2;c===`top`?l=r+e.height/2:c===`bottom`&&(l=r+n-e.height/2),!e.isLineHolder&&hs(s)&&this._renderBackground(s,t,a===`right`?i-e.width:a===`center`?i-e.width/2:i,l-e.height/2,e.width,e.height);var u=!!s.backgroundColor,d=e.textPadding;d&&(i=ps(i,a,d),l-=e.height/2-d[0]-e.innerHeight/2);var f=this._getOrCreateChild(zo),p=f.createStyle();f.useStyle(p);var m=this._defaultStyle,h=!1,g=0,_=!1,v=fs(`fill`in s?s.fill:`fill`in t?t.fill:(h=!0,m.fill)),y=ds(`stroke`in s?s.stroke:`stroke`in t?t.stroke:!u&&!o&&(!m.autoStroke||h)?(g=$o,_=!0,m.stroke):null),b=s.textShadowBlur>0||t.textShadowBlur>0;p.text=e.text,p.x=i,p.y=l,b&&(p.shadowBlur=s.textShadowBlur||t.textShadowBlur||0,p.shadowColor=s.textShadowColor||t.textShadowColor||`transparent`,p.shadowOffsetX=s.textShadowOffsetX||t.textShadowOffsetX||0,p.shadowOffsetY=s.textShadowOffsetY||t.textShadowOffsetY||0),p.textAlign=a,p.textBaseline=`middle`,p.font=e.font||`12px sans-serif`,p.opacity=Te(s.opacity,t.opacity,1),ss(p,s),y&&(p.lineWidth=Te(s.lineWidth,t.lineWidth,g),p.lineDash=V(s.lineDash,t.lineDash),p.lineDashOffset=t.lineDashOffset||0,p.stroke=y),v&&(p.fill=v),f.setBoundingRect(Xn(p,e.contentWidth,e.contentHeight,_?0:null))},t.prototype._renderBackground=function(e,t,n,r,i,a){var o=e.backgroundColor,s=e.borderWidth,c=e.borderColor,l=o&&o.image,u=o&&!l,d=e.borderRadius,f=this,p,m;if(u||e.lineHeight||s&&c){p=this._getOrCreateChild(Zo),p.useStyle(p.createStyle()),p.style.fill=null;var h=p.shape;h.x=n,h.y=r,h.width=i,h.height=a,h.r=d,p.dirtyShape()}if(u){var g=p.style;g.fill=o||null,g.fillOpacity=V(e.fillOpacity,1)}else if(l){m=this._getOrCreateChild(Uo),m.onload=function(){f.dirtyStyle()};var _=m.style;_.image=o.image,_.x=n,_.y=r,_.width=i,_.height=a}if(s&&c){var g=p.style;g.lineWidth=s,g.stroke=c,g.strokeOpacity=V(e.strokeOpacity,1),g.lineDash=e.borderDash,g.lineDashOffset=e.borderDashOffset||0,p.strokeContainThreshold=0,p.hasFill()&&p.hasStroke()&&(g.strokeFirst=!0,g.lineWidth*=2)}var v=(p||m).style;v.shadowBlur=e.shadowBlur||0,v.shadowColor=e.shadowColor||`transparent`,v.shadowOffsetX=e.shadowOffsetX||0,v.shadowOffsetY=e.shadowOffsetY||0,v.opacity=Te(e.opacity,t.opacity,1)},t.makeFont=function(e){var t=``;return cs(e)&&(t=[e.fontStyle,e.fontWeight,os(e.fontSize),e.fontFamily||`sans-serif`].join(` `)),t&&ke(t)||e.textFont||e.font},t}(Oa),rs={left:!0,right:1,center:1},is={top:1,bottom:1,middle:1},as=[`fontStyle`,`fontWeight`,`fontSize`,`fontFamily`];function os(e){return typeof e==`string`&&(e.indexOf(`px`)!==-1||e.indexOf(`rem`)!==-1||e.indexOf(`em`)!==-1)?e:isNaN(+e)?`12px`:e+`px`}function ss(e,t){for(var n=0;n0){if(e<=i)return o;if(e>=a)return s}else if(e>=i)return o;else if(e<=a)return s}else{if(e===i)return o;if(e===a)return s}return(e-i)/c*l+o}var js=Ms;function Ms(e,t,n){switch(e){case`center`:case`middle`:e=`50%`;break;case`left`:case`top`:e=`0%`;break;case`right`:case`bottom`:e=`100%`}return Ns(e,t,n)}function Ns(e,t,n){return z(e)?Fs(e)?parseFloat(e)/100*t+(n||0):parseFloat(e):e==null?NaN:+e}function Ps(e){return z(e)&&Fs(e)}function Fs(e){return!!vs(e).match(/%$/)}function Is(e,t,n){return isNaN(t)?n?``+e:+e:(t=ys(bs(0,t),_s),e=(+e).toFixed(t),n?e:+e)}function Ls(e){return e.sort(function(e,t){return e-t}),e}function Rs(e){if(e=+e,isNaN(e))return 0;if(e>1e-14){for(var t=1,n=0;n<15;n++,t*=10)if(Ss(e*t)/t===e)return n}return zs(e)}function zs(e){var t=e.toString().toLowerCase(),n=t.indexOf(`e`),r=n>0?+t.slice(n+1):0,i=n>0?n:t.length,a=t.indexOf(`.`);return bs(0,(a<0?0:i-1-a)-r)}function Bs(e,t,n){var r=xs(e[1]-e[0]);if(!isFinite(r)||r===0)return NaN;var i=Es(2*xs(n||1)*xs(r))/Ds,a=Es(xs(t))/Ds,o=bs(0,ws(-i+a));return isFinite(o)||(o=NaN),o}function Vs(e,t){var n=bs(Rs(e),Rs(t)),r=e+t;return n>_s?r:Is(r,n)}Ts(2,53)-1;function Hs(e){var t=Os*2;return(e%t+t)%t}function Us(e){return e>-gs&&e=10&&t++,t}function Js(e,t){var n=qs(e),r=Ts(10,n),i=e/r;return e=(t===2?1:t?i<1.5?1:i<2.5?2:i<4?3:i<7?5:10:i<1?1:i<2?2:i<3?3:i<5?5:10)*r,Is(e,-n)}function Ys(e){e.sort(function(e,t){return s(e,t,0)?-1:1});for(var t=-1/0,n=1,r=0;r0?e.length:0),this.item=null,this.key=NaN,this},e.prototype.next=function(){return(this._step>0?this._idx=this._end)&&(this.item=this._list[this._idx],this.key=this._idx+=this._step,!0)},e})();function Hc(){return[1/0,-1/0]}function Uc(e,t){qc(t)&&(te[1]&&(e[1]=t))}function Wc(e,t){qc(t)&&te[1]&&(e[1]=t)}function Kc(e,t){Jc(t[0],t[1])&&(t[0]e[1]&&(e[1]=t[1]))}function qc(e){return e!=null&&isFinite(e)}function Jc(e,t){return qc(e)&&qc(t)&&e<=t}function Yc(e){var t=e[1]-e[0];return isFinite(t)&&t>=0}function Xc(e){Jc(e[0],e[1])&&e[0]>e[1]&&(e[0]=e[1])}function Zc(){var e=`__ec_once_`+Qc++;return function(t,n){Be(t,e)||(t[e]=1,n())}}var Qc=Qs();function $c(e,t,n){var r=Le(),i=0;I(e,function(a){var o=t(a),s=r.get(o)||0;n&&n(a,s),!s&&!n&&(e[i++]=a),r.set(o,s+1)}),n||(e.length=i)}function el(e){return e.value+``}function tl(e){return e+``}function nl(e,t){return V(t,!0)?e.seriesIndex+2:0}function rl(e,t,n){var r=e.getData().count();return{progressiveRender:n.progressiveEnabled&&t.incrementalPrepareRender&&r>=n.threshold,large:e.get(`large`)&&r>=e.get(`largeThreshold`),modDataCount:e.get(`progressiveChunkMode`)===`mod`?e.getData().count():null}}function il(e,t){return{seriesType:e,overallReset:t}}function al(e){return{overallReset:e}}var ol=jc(),sl=function(e,t,n,r){if(r){var i=ol(r);i.dataIndex=n,i.dataType=t,i.seriesIndex=e,i.ssrType=`chart`,r.type===`group`&&r.traverse(function(r){var i=ol(r);i.seriesIndex=e,i.dataIndex=n,i.dataType=t,i.ssrType=`chart`})}},cl=`series`,ll=Le([`tooltip`,`label`,`itemName`,`itemId`,`itemGroupId`,`itemChildGroupId`,`seriesName`]),ul=`original`,dl=`arrayRows`,fl=`objectRows`,pl=`keyedColumns`,ml=`typedArray`,hl=`unknown`,gl=`column`,_l=`Roam`,vl=[`getDom`,`getZr`,`getWidth`,`getHeight`,`getDevicePixelRatio`,`dispatchAction`,`isSSR`,`isDisposed`,`on`,`off`,`getDataURL`,`getConnectedDataURL`,`getOption`,`getId`,`updateLabelLayout`],yl=function(){function e(e){I(vl,function(t){this[t]=me(e[t],e)},this)}return e}();function bl(e,t){return t.mainType===`series`?e.getViewOfSeriesModel(t):e.getViewOfComponentModel(t)}var xl=1,Sl={},Cl=jc(),wl=jc(),Tl=[`emphasis`,`blur`,`select`],El=[`normal`,`emphasis`,`blur`,`select`],Dl=`highlight`,Ol=`downplay`,kl=`select`,Al=`unselect`,jl=`toggleSelect`,Ml=`selectchanged`;function Nl(e){return e!=null&&e!==`none`}function Pl(e,t,n){e.onHoverStateChange&&(e.hoverState||0)!==n&&e.onHoverStateChange(t),e.hoverState=n}function Fl(e){Pl(e,`emphasis`,2)}function Il(e){e.hoverState===2&&Pl(e,`normal`,0)}function Ll(e){Pl(e,`blur`,1)}function Rl(e){e.hoverState===1&&Pl(e,`normal`,0)}function zl(e){e.selected=!0}function Bl(e){e.selected=!1}function Vl(e,t,n){t(e,n)}function Hl(e,t,n){Vl(e,t,n),e.isGroup&&e.traverse(function(e){Vl(e,t,n)})}function Ul(e,t,n,r){for(var i=e.style,a={},o=0;o=0,a=!1;if(e instanceof Lo){var o=Cl(e),s=i&&o.selectFill||o.normalFill,c=i&&o.selectStroke||o.normalStroke;if(Nl(s)||Nl(c)){r||={};var l=r.style||{};l.fill===`inherit`?(a=!0,r=P({},r),l=P({},l),l.fill=s):!Nl(l.fill)&&Nl(s)?(a=!0,r=P({},r),l=P({},l),l.fill=ci(s)):!Nl(l.stroke)&&Nl(c)&&(a||(r=P({},r),l=P({},l)),l.stroke=ci(c)),r.style=l}}if(r&&r.z2==null){a||(r=P({},r));var u=e.z2EmphasisLift;r.z2=e.z2+(u??10)}return r}function Gl(e,t,n){if(n&&n.z2==null){n=P({},n);var r=e.z2SelectLift;n.z2=e.z2+(r??9)}return n}function Kl(e,t,n){var r=ae(e.currentStates,t)>=0,i=e.style.opacity,a=r?null:Ul(e,[`opacity`],t,{opacity:1});n||={};var o=n.style||{};return o.opacity??(n=P({},n),o=P({opacity:r?i:a.opacity*.1},o),n.style=o),n}function ql(e,t){var n=this.states[e];if(this.style){if(e===`emphasis`)return Wl(this,e,t,n);if(e===`blur`)return Kl(this,e,n);if(e===`select`)return Gl(this,e,n)}return n}function Jl(e){e.stateProxy=ql;var t=e.getTextContent(),n=e.getTextGuideLine();t&&(t.stateProxy=ql),n&&(n.stateProxy=ql)}function Yl(e,t){!ru(e,t)&&!e.__highByOuter&&Hl(e,Fl)}function Xl(e,t){!ru(e,t)&&!e.__highByOuter&&Hl(e,Il)}function Zl(e,t){e.__highByOuter|=1<<(t||0),Hl(e,Fl)}function Ql(e,t){!(e.__highByOuter&=~(1<<(t||0)))&&Hl(e,Il)}function $l(e){Hl(e,Ll)}function eu(e){Hl(e,Rl)}function tu(e){Hl(e,zl)}function nu(e){Hl(e,Bl)}function ru(e,t){return e.__highDownSilentOnTouch&&t.zrByTouch}function iu(e){var t=e.getModel(),n=[],r=[];t.eachComponent(function(t,i){var a=wl(i),o=bl(e,i),s=t===`series`;!s&&r.push(o),a.isBlured&&(o.group.traverse(function(e){Rl(e)}),s&&n.push(i)),a.isBlured=!1}),I(r,function(e){e&&e.toggleBlurSeries&&e.toggleBlurSeries(n,!1,t)})}function au(e,t,n,r){var i=r.getModel();n||=`coordinateSystem`;function a(e,t){for(var n=0;n0){var a={dataIndex:i,seriesIndex:e.seriesIndex};r!=null&&(a.dataType=r),t.push(a)}})}),t}function mu(e,t,n){xu(e,!0),Hl(e,Jl),_u(e,t,n)}function hu(e){xu(e,!1)}function gu(e,t,n,r){r?hu(e):mu(e,t,n)}function _u(e,t,n){var r=ol(e);t==null?r.focus&&=null:(r.focus=t,r.blurScope=n)}var vu=[`emphasis`,`blur`,`select`],yu={itemStyle:`getItemStyle`,lineStyle:`getLineStyle`,areaStyle:`getAreaStyle`};function bu(e,t,n,r){n||=`itemStyle`;for(var i=0;i1&&(o*=Mu(m),s*=Mu(m));var h=(i===a?-1:1)*Mu((o*o*(s*s)-o*o*(p*p)-s*s*(f*f))/(o*o*(p*p)+s*s*(f*f)))||0,g=h*o*p/s,_=h*-s*f/o,v=(e+n)/2+Pu(d)*g-Nu(d)*_,y=(t+r)/2+Nu(d)*g+Pu(d)*_,b=Ru([1,0],[(f-g)/o,(p-_)/s]),x=[(f-g)/o,(p-_)/s],S=[(-1*f-g)/o,(-1*p-_)/s],C=Ru(x,S);if(Lu(x,S)<=-1&&(C=Fu),Lu(x,S)>=1&&(C=0),C<0){var w=Math.round(C/Fu*1e6)/1e6;C=Fu*2+w%2*Fu}u.addData(l,v,y,o,s,b,C,d,a)}var Bu=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,Vu=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function Hu(e){var t=new fo;if(!e)return t;var n=0,r=0,i=n,a=r,o,s=fo.CMD,c=e.match(Bu);if(!c)return t;for(var l=0;l=0&&(n.splice(r,0,e),this._doAdd(e))}return this},t.prototype.replace=function(e,t){var n=ae(this._children,e);return n>=0&&this.replaceAt(t,n),this},t.prototype.replaceAt=function(e,t){var n=this._children,r=n[t];if(e&&e!==this&&e.parent!==this&&e!==r){n[t]=e,r.parent=null;var i=this.__zr;i&&r.removeSelfFromZr(i),this._doAdd(e)}return this},t.prototype._doAdd=function(e){e.parent&&e.parent.remove(e),e.parent=this;var t=this.__zr;t&&t!==e.__zr&&e.addSelfToZr(t),t&&t.refresh()},t.prototype.remove=function(e){var t=this.__zr,n=this._children,r=ae(n,e);return r<0?this:(n.splice(r,1),e.parent=null,t&&e.removeSelfFromZr(t),t&&t.refresh(),this)},t.prototype.removeAll=function(){for(var e=this._children,t=this.__zr,n=0;nee*ee+te*te&&(w=E,T=D),{cx:w,cy:T,x0:-u,y0:-d,x1:w*(i/x-1),y1:T*(i/x-1)}}function pd(e){var t;if(R(e)){var n=e.length;if(!n)return e;t=n===1?[e[0],e[0],0,0]:n===2?[e[0],e[0],e[1],e[1]]:n===3?e.concat(e[2]):e}else t=[e,e,e,e];return t}function md(e,t){var n,r=cd(t.r,0),i=cd(t.r0||0,0),a=r>0;if(!(!a&&!(i>0))){if(a||(r=i,i=0),i>r){var o=r;r=i,i=o}var s=t.startAngle,c=t.endAngle;if(!(isNaN(s)||isNaN(c))){var l=t.cx,u=t.cy,d=!!t.clockwise,f=od(c-s),p=f>td&&f%td;if(p>ud&&(f=p),!(r>ud))e.moveTo(l,u);else if(f>td-ud)e.moveTo(l+r*rd(s),u+r*nd(s)),e.arc(l,u,r,s,c,!d),i>ud&&(e.moveTo(l+i*rd(c),u+i*nd(c)),e.arc(l,u,i,c,s,d));else{var m=void 0,h=void 0,g=void 0,_=void 0,v=void 0,y=void 0,b=void 0,x=void 0,S=void 0,C=void 0,w=void 0,T=void 0,E=void 0,D=void 0,O=void 0,k=void 0,ee=r*rd(s),te=r*nd(s),ne=i*rd(c),A=i*nd(c),j=f>ud;if(j){var re=t.cornerRadius;re&&(n=pd(re),m=n[0],h=n[1],g=n[2],_=n[3]);var M=od(r-i)/2;if(v=ld(M,g),y=ld(M,_),b=ld(M,m),x=ld(M,h),w=S=cd(v,y),T=C=cd(b,x),(S>ud||C>ud)&&(E=r*rd(c),D=r*nd(c),O=i*rd(s),k=i*nd(s),fud){var ce=ld(g,w),I=ld(_,w),L=fd(O,k,ee,te,r,ce,d),le=fd(E,D,ne,A,r,I,d);e.moveTo(l+L.cx+L.x0,u+L.cy+L.y0),w0&&e.arc(l+L.cx,u+L.cy,ce,ad(L.y0,L.x0),ad(L.y1,L.x1),!d),e.arc(l,u,r,ad(L.cy+L.y1,L.cx+L.x1),ad(le.cy+le.y1,le.cx+le.x1),!d),I>0&&e.arc(l+le.cx,u+le.cy,I,ad(le.y1,le.x1),ad(le.y0,le.x0),!d))}else e.moveTo(l+ee,u+te),e.arc(l,u,r,s,c,!d);if(!(i>ud)||!j)e.lineTo(l+ne,u+A);else if(T>ud){var ce=ld(m,T),I=ld(h,T),L=fd(ne,A,E,D,i,-I,d),le=fd(ee,te,O,k,i,-ce,d);e.lineTo(l+L.cx+L.x0,u+L.cy+L.y0),T0&&e.arc(l+L.cx,u+L.cy,I,ad(L.y0,L.x0),ad(L.y1,L.x1),!d),e.arc(l,u,i,ad(L.cy+L.y1,L.cx+L.x1),ad(le.cy+le.y1,le.cx+le.x1),d),ce>0&&e.arc(l+le.cx,u+le.cy,ce,ad(le.y1,le.x1),ad(le.y0,le.x0),!d))}else e.lineTo(l+ne,u+A),e.arc(l,u,i,c,s,d)}e.closePath()}}}var hd=function(){function e(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0,this.cornerRadius=0}return e}(),gd=function(e){p(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new hd},t.prototype.buildPath=function(e,t){md(e,t)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(Lo);gd.prototype.type=`sector`;var _d=function(){function e(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return e}(),vd=function(e){p(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new _d},t.prototype.buildPath=function(e,t){var n=t.cx,r=t.cy,i=Math.PI*2;e.moveTo(n+t.r,r),e.arc(n,r,t.r,0,i,!1),e.moveTo(n+t.r0,r),e.arc(n,r,t.r0,0,i,!0)},t}(Lo);vd.prototype.type=`ring`;function yd(e,t,n,r){var i=[],a=[],o=[],s=[],c,l,u,d;if(r){u=[1/0,1/0],d=[-1/0,-1/0];for(var f=0,p=e.length;f=2){if(r){var a=yd(i,r,n,t.smoothConstraint);e.moveTo(i[0][0],i[0][1]);for(var o=i.length,s=0;s<(n?o:o-1);s++){var c=a[s*2],l=a[s*2+1],u=i[(s+1)%o];e.bezierCurveTo(c[0],c[1],l[0],l[1],u[0],u[1])}}else{e.moveTo(i[0][0],i[0][1]);for(var s=1,d=i.length;sHd[1]){if(i=!1,Ud.negativeSize||n)return i;var s=Bd(Hd[0]-Vd[1]),c=Bd(Vd[0]-Hd[1]);Rd(s,c)>Gd.len()&&(s=c||!Ud.bidirectional)&&(Ut.scale(Wd,o,-c*r),Ud.useDir&&Ud.calcDirMTV()))}}return i},e.prototype._getProjMinMaxOnAxis=function(e,t,n){for(var r=this._axes[e],i=this._origin,a=t[0].dot(r)+i[e],o=a,s=a,c=1;c0){var d=u.duration,f=u.delay,p=u.easing,m={duration:d,delay:f||0,easing:p,done:a,force:!!a||!!o,setToFinal:!l,scope:e,during:o};s?t.animateFrom(n,m):t.animateTo(n,m)}else t.stopAnimation(),!s&&t.attr(n),o&&o(1),a&&a()}function Qd(e,t,n,r,i,a){Zd(`update`,e,t,n,r,i,a)}function $d(e,t,n,r,i,a){Zd(`enter`,e,t,n,r,i,a)}function ef(e){if(!e.__zr)return!0;for(var t=0;tNd,BezierCurve:()=>jd,BoundingRect:()=>rn,Circle:()=>Zu,CompoundPath:()=>Pd,Ellipse:()=>$u,Group:()=>Yu,HOVER_LAYER_FOR_INCREMENTAL:()=>2,HOVER_LAYER_FROM_THRESHOLD:()=>1,HOVER_LAYER_NO:()=>0,Image:()=>Uo,IncrementalDisplayable:()=>Jd,Line:()=>Dd,LinearGradient:()=>Id,OrientedBoundingRect:()=>Kd,Path:()=>Lo,Point:()=>Ut,Polygon:()=>Sd,Polyline:()=>wd,RadialGradient:()=>Ld,Rect:()=>Zo,Ring:()=>vd,Sector:()=>gd,Text:()=>ns,WH:()=>lf,XY:()=>cf,applyTransform:()=>wf,calcZ2Range:()=>qf,clipPointsByRect:()=>kf,clipRectByRect:()=>Af,createIcon:()=>jf,decomposeTransform:()=>Zf,ensureCopyRect:()=>Wf,ensureCopyTransform:()=>Gf,expandOrShrinkRect:()=>If,extendPath:()=>ff,extendShape:()=>uf,getCurrentCanvasPainter:()=>$f,getShapeClass:()=>mf,getTransform:()=>Cf,groupTransition:()=>Of,initProps:()=>$d,isBoundingRectAxisAligned:()=>Hf,isElementRemoved:()=>ef,lineLineIntersect:()=>Nf,linePolygonIntersect:()=>Mf,makeImage:()=>gf,makePath:()=>hf,mergePath:()=>vf,payloadDisableAnimation:()=>Xf,registerShape:()=>pf,removeElement:()=>tf,removeElementWithFadeOut:()=>rf,resizePath:()=>yf,retrieveZInfo:()=>Kf,setTooltipConfig:()=>zf,subPixelOptimize:()=>Sf,subPixelOptimizeLine:()=>bf,subPixelOptimizeRect:()=>xf,transformDirection:()=>Tf,traverseElements:()=>Vf,traverseUpdateZ:()=>Jf,updateProps:()=>Qd}),sf={},cf=[`x`,`y`],lf=[`width`,`height`];function uf(e){return Lo.extend(e)}var df=qu;function ff(e,t){return df(e,t)}function pf(e,t){sf[e]=t}function mf(e){if(sf.hasOwnProperty(e))return sf[e]}function hf(e,t,n,r){var i=Ku(e,t);return n&&(r===`center`&&(n=_f(n,i.getBoundingRect())),yf(i,n)),i}function gf(e,t,n){var r=new Uo({style:{image:e,x:t.x,y:t.y,width:t.width,height:t.height},onload:function(e){if(n===`center`){var i={width:e.width,height:e.height};r.setStyle(_f(t,i))}}});return r}function _f(e,t){var n=t.width/t.height,r=e.height*n,i;r<=e.width?i=e.height:(r=e.width,i=r/n);var a=e.x+e.width/2,o=e.y+e.height/2;return{x:a-r/2,y:o-i/2,width:r,height:i}}var vf=Ju;function yf(e,t){if(e.applyTransform){var n=e.getBoundingRect().calculateTransform(t);e.applyTransform(n)}}function bf(e,t){return Ko(e,e,{lineWidth:t}),e}function xf(e,t){return qo(e,e,t),e}var Sf=Jo;function Cf(e,t){for(var n=vt([]);e&&e!==t;)bt(n,e.getLocalTransform(),n),e=e.parent;return n}function wf(e,t,n){return t&&!ce(t)&&(t=ar.getLocalTransform(t)),n&&(t=wt([],t)),Bt([],e,t)}function Tf(e,t,n){var r=t[4]===0||t[5]===0||t[0]===0?1:xs(2*t[4]/t[0]),i=t[4]===0||t[5]===0||t[2]===0?1:xs(2*t[4]/t[2]),a=[e===`left`?-r:e===`right`?r:0,e===`top`?-i:e===`bottom`?i:0];return a=wf(a,t,n),xs(a[0])>xs(a[1])?a[0]>0?`right`:`left`:a[1]>0?`bottom`:`top`}function Ef(e){return!e.isGroup}function Df(e){return e.shape!=null}function Of(e,t,n){if(!e||!t)return;function r(e){var t={};return e.traverse(function(e){Ef(e)&&e.anid&&(t[e.anid]=e)}),t}function i(e){var t={x:e.x,y:e.y,rotation:e.rotation};return Df(e)&&(t.shape=M(e.shape)),t}var a=r(e);t.traverse(function(e){if(Ef(e)&&e.anid){var t=a[e.anid];if(t){var r=i(e);e.attr(i(t)),Qd(e,r,n,ol(e).dataIndex)}}})}function kf(e,t){return L(e,function(e){var n=e[0];n=bs(n,t.x),n=ys(n,t.x+t.width);var r=e[1];return r=bs(r,t.y),r=ys(r,t.y+t.height),[n,r]})}function Af(e,t){var n=bs(e.x,t.x),r=ys(e.x+e.width,t.x+t.width),i=bs(e.y,t.y),a=ys(e.y+e.height,t.y+t.height);if(r>=n&&a>=i)return{x:n,y:i,width:r-n,height:a-i}}function jf(e,t,n){var r=P({rectHover:!0},t),i=r.style={strokeNoScale:!0};if(n||={x:-1,y:-1,width:2,height:2},e)return e.indexOf(`image://`)===0?(i.image=e.slice(8),F(i,n),new Uo(r)):hf(e.replace(`path://`,``),r,n,`center`)}function Mf(e,t,n,r,i){for(var a=0,o=i[i.length-1];a1)return!1;var g=Pf(p,m,u,d)/f;return!(g<0||g>1)}function Pf(e,t,n,r){return e*r-n*t}function Ff(e){return e<=1e-6&&e>=-1e-6}function If(e,t,n,r,i){return t==null?e:(ve(t)?Lf[0]=Lf[1]=Lf[2]=Lf[3]=t:(Lf[0]=t[0],Lf[1]=t[1],Lf[2]=t[2],Lf[3]=t[3]),r&&(Lf[0]=bs(0,Lf[0]),Lf[1]=bs(0,Lf[1]),Lf[2]=bs(0,Lf[2]),Lf[3]=bs(0,Lf[3])),n&&(Lf[0]=-Lf[0],Lf[1]=-Lf[1],Lf[2]=-Lf[2],Lf[3]=-Lf[3]),Rf(e,Lf,`x`,`width`,3,1,i&&i[0]||0),Rf(e,Lf,`y`,`height`,0,2,i&&i[1]||0),e)}var Lf=[0,0,0,0];function Rf(e,t,n,r,i,a,o){var s=t[a]+t[i],c=e[r];e[r]+=s,o=bs(0,ys(o,c)),e[r]=0?-t[i]:t[a]>=0?c+t[a]:xs(s)>1e-8?(c-o)*t[i]/s:0):e[n]-=t[i]}function zf(e){var t=e.itemTooltipOption,n=e.componentModel,r=e.itemName,i=z(t)?{formatter:t}:t,a=n.mainType,o=n.componentIndex,s={componentType:a,name:r,$vars:[`name`]};s[a+`Index`]=o;var c=e.formatterParamsExtra;c&&I(fe(c),function(e){Be(s,e)||(s[e]=c[e],s.$vars.push(e))});var l=ol(e.el);l.componentMainType=a,l.componentIndex=o,l.tooltipConfig={name:r,option:F({content:r,encodeHTMLContent:!0,formatterParams:s},i)}}function Bf(e,t){var n;e.isGroup&&(n=t(e)),n||e.traverse(t)}function Vf(e,t){if(e)if(R(e))for(var n=0;nt&&(t=r),rt&&(n=t=0),{min:n,max:t}}function Jf(e,t,n){Yf(e,t,n,-1/0)}function Yf(e,t,n,r){if(e.ignoreModelZ)return r;var i=e.getTextContent(),a=e.getTextGuideLine();if(e.isGroup)for(var o=e.childrenRef(),s=0;s1){var l=s.shift();s.length===1&&(n[o]=s[0]),this._update&&this._update(l,a)}else c===1?(n[o]=null,this._update&&this._update(s,a)):this._remove&&this._remove(a)}this._performRestAdd(i,n)},e.prototype._executeMultiple=function(){var e=this._old,t=this._new,n={},r={},i=[],a=[];this._initIndexMap(e,n,i,`_oldKeyGetter`),this._initIndexMap(t,r,a,`_newKeyGetter`);for(var o=0;o1&&d===1)this._updateManyToOne&&this._updateManyToOne(l,c),r[s]=null;else if(u===1&&d>1)this._updateOneToMany&&this._updateOneToMany(l,c),r[s]=null;else if(u===1&&d===1)this._update&&this._update(l,c),r[s]=null;else if(u>1&&d>1)this._updateManyToMany&&this._updateManyToMany(l,c),r[s]=null;else if(u>1)for(var f=0;f1)for(var o=0;ol&&(l=p)}s[0]=c,s[1]=l}},r=function(){return this._data?this._data.length/this._dimSize:0};$p=(e={},e[dl+`_`+gl]={pure:!0,appendData:i},e[dl+`_row`]={pure:!0,appendData:function(){throw Error(`Do not support appendData when set seriesLayoutBy: "row".`)}},e[fl]={pure:!0,appendData:i},e[pl]={pure:!0,appendData:function(e){var t=this._data;I(e,function(e,n){for(var r=t[n]||(t[n]=[]),i=0;i<(e||[]).length;i++)r.push(e[i])})}},e[ul]={appendData:i},e[ml]={persistent:!1,pure:!0,appendData:function(e){this._data=e},clean:function(){this._offset+=this.count(),this._data=null}},e);function i(e){for(var t=0;tt},gte:function(e,t){return e>=t}};(function(){function e(e,t){ve(t)||sc(``),this._opFn=xm[e],this._rvalFloat=Xs(t)}return e.prototype.evaluate=function(e){return ve(e)?this._opFn(e,this._rvalFloat):this._opFn(Xs(e),this._rvalFloat)},e})();var Sm=function(){function e(e,t){var n=e===`desc`;this._resultLT=n?1:-1,t??=n?`min`:`max`,this._incomparable=t===`min`?-1/0:1/0}return e.prototype.evaluate=function(e,t){var n=ve(e)?e:Xs(e),r=ve(t)?t:Xs(t),i=isNaN(n),a=isNaN(r);if(i&&(n=this._incomparable),a&&(r=this._incomparable),i&&a){var o=z(e),s=z(t);o&&(n=s?e:0),s&&(r=o?t:0)}return nr?-this._resultLT:0},e}();(function(){function e(e,t){this._rval=t,this._isEQ=e,this._rvalTypeof=typeof t,this._rvalFloat=Xs(t)}return e.prototype.evaluate=function(e){var t=e===this._rval;if(!t){var n=typeof e;n!==this._rvalTypeof&&(n===`number`||this._rvalTypeof===`number`)&&(t=Xs(e)===this._rvalFloat)}return this._isEQ?t:!t},e})();function Cm(e){var t=``,n=-1/0,r=-1/0,i=1/0,a=1/0;return e&&(e.g!=null&&(t+=`G`+e.g,n=e.g),e.ge!=null&&(t+=`GE`+e.ge,r=e.ge),e.l!=null&&(t+=`L`+e.l,i=e.l),e.le!=null&&(t+=`LE`+e.le,a=e.le)),{key:t,g:n,ge:r,l:i,le:a}}function wm(e,t){return t>e.g&&t>=e.ge&&t`u`?Array:Uint32Array,eee=typeof Uint16Array>`u`?Array:Uint16Array,Em=typeof Int32Array>`u`?Array:Int32Array,Dm=typeof Float64Array>`u`?Array:Float64Array,Om={float:Dm,int:Em,ordinal:Array,number:Array,time:Dm},km;function Am(e){return e>65535?Tm:eee}function jm(e){var t=e.constructor;return t===Array?e.slice():new t(e)}function Mm(e,t,n,r,i){var a=Om[n||`float`];if(i){var o=e[t],s=o&&o.length;if(s!==r){for(var c=new a(r),l=0;lh[1]&&(h[1]=m)}return this._rawCount=this._count=s,{start:o,end:s}},e.prototype._initDataFromProvider=function(e,t,n){for(var r=this._provider,i=this._chunks,a=this._dimensions,o=a.length,s=this._rawExtent,c=L(a,function(e){return e.property}),l=0;lg[1]&&(g[1]=h)}}!r.persistent&&r.clean&&r.clean(),this._rawCount=this._count=t,this._extent=[]},e.prototype.count=function(){return this._count},e.prototype.get=function(e,t){if(!(t>=0&&t=0&&t=this._rawCount||e<0)return-1;if(!this._indices)return e;var t=this._indices,n=t[e];if(n!=null&&ne)i=a-1;else return a}return-1},e.prototype.getIndices=function(){var e,t=this._indices;if(t){var n=t.constructor,r=this._count;if(n===Array){e=new n(r);for(var i=0;i=l&&g<=u||isNaN(g))&&(o[s++]=p),p++}f=!0}else if(i===2){for(var m=d[r[0]],_=d[r[1]],v=e[r[1]][0],y=e[r[1]][1],h=0;h=l&&g<=u||isNaN(g))&&(b>=v&&b<=y||isNaN(b))&&(o[s++]=p),p++}f=!0}}if(!f)if(i===1)for(var h=0;h=l&&g<=u||isNaN(g))&&(o[s++]=x)}else for(var h=0;he[w][1])&&(S=!1)}S&&(o[s++]=t.getRawIndex(h))}return sg[1]&&(g[1]=h)}}}},e.prototype.lttbDownSample=function(e,t){var n=this.clone([e],!0),r=n._chunks[e],i=this.count(),a=0,o=Math.floor(1/t),s=this.getRawIndex(0),c,l,u,d=new(Am(this._rawCount))(Math.min((Math.ceil(i/o)+2)*2,i));d[a++]=s;for(var f=1;fc&&(c=l,u=v)}T>0&&To&&(m=o-l);for(var h=0;hp&&(p=g,f=l+h)}var _=this.getRawIndex(u),v=this.getRawIndex(f);ul-p&&(s=l-p,o.length=s);for(var m=0;mu[1]&&(u[1]=g),d[f++]=_}return i._count=f,i._indices=d,i._updateGetRawIdx(),i},e.prototype.each=function(e,t){if(this._count)for(var n=e.length,r=this._chunks,i=0,a=this.count();id&&(d=p))}return o[c]=[u,d]},e.prototype.getRawDataItem=function(e){var t=this.getRawIndex(e);if(this._provider.persistent)return this._provider.getItem(t);for(var n=[],r=this._chunks,i=0;i=0?this._indices[e]:-1},e.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},e.internalField=function(){function e(e,t,n,r){return bm(e[r],this._dimensions[r])}km={arrayRows:e,objectRows:function(e,t,n,r){return bm(e[t],this._dimensions[r])},keyedColumns:e,original:function(e,t,n,r){var i=e&&(e.value==null?e:e.value);return bm(i instanceof Array?i[r]:i,this._dimensions[r])},typedArray:function(e,t,n,r){return e[r]}}}(),e}(),Pm=jc(),Fm={float:`f`,int:`i`,ordinal:`o`,number:`n`,time:`t`},Im=function(){function e(e){this.dimensions=e.dimensions,this._dimOmitted=e.dimensionOmitted,this.source=e.source,this._fullDimCount=e.fullDimensionCount,this._updateDimOmitted(e.dimensionOmitted)}return e.prototype.isDimensionOmitted=function(){return this._dimOmitted},e.prototype._updateDimOmitted=function(e){this._dimOmitted=e,e&&(this._dimNameMap||=zm(this.source))},e.prototype.getSourceDimensionIndex=function(e){return V(this._dimNameMap.get(e),-1)},e.prototype.getSourceDimension=function(e){var t=this.source.dimensionsDefine;if(t)return t[e]},e.prototype.makeStoreSchema=function(){for(var e=this._fullDimCount,t=Jp(this.source),n=!Bm(e),r=``,i=[],a=0,o=0;a30}var Vm=B,Hm=L,Um=typeof Int32Array>`u`?Array:Int32Array,Wm=`e\0\0`,Gm=-1,Km=[`hasItemOption`,`_nameList`,`_idList`,`_invertedIndicesMap`,`_dimSummary`,`userOutput`,`_rawData`,`_dimValueGetter`,`_nameDimIdx`,`_idDimIdx`,`_nameRepeatCount`],qm=[`_approximateExtent`],Jm,Ym,Xm,Zm,Qm,$m,eh,th=function(){function e(e,t){this.type=`list`,this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=[`cloneShallow`,`downSample`,`minmaxDownSample`,`lttbDownSample`,`map`],this.CHANGABLE_METHODS=[`filterSelf`,`selectRange`],this.DOWNSAMPLE_METHODS=[`downSample`,`minmaxDownSample`,`lttbDownSample`];var n,r=!1;Lm(e)?(n=e.dimensions,this._dimOmitted=e.isDimensionOmitted(),this._schema=e):(r=!0,n=e),n||=[`x`,`y`];for(var i={},a=[],o={},s=!1,c={},l=0;l=t)){var n=this._store.getProvider();this._updateOrdinalMeta();var r=this._nameList,i=this._idList;if(n.getSource().sourceFormat===`original`&&!n.pure)for(var a=[],o=e;o0},e.prototype.ensureUniqueItemVisual=function(e,t){var n=this._itemVisuals,r=n[e];r||=n[e]={};var i=r[t];return i??(i=this.getVisual(t),R(i)?i=i.slice():Vm(i)&&(i=P({},i)),r[t]=i),i},e.prototype.setItemVisual=function(e,t,n){var r=this._itemVisuals[e]||{};this._itemVisuals[e]=r,Vm(t)?P(r,t):r[t]=n},e.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},e.prototype.setLayout=function(e,t){Vm(e)?P(this._layout,e):this._layout[e]=t},e.prototype.getLayout=function(e){return this._layout[e]},e.prototype.getItemLayout=function(e){return this._itemLayouts[e]},e.prototype.setItemLayout=function(e,t,n){this._itemLayouts[e]=n?P(this._itemLayouts[e]||{},t):t},e.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},e.prototype.setItemGraphicEl=function(e,t){sl(this.hostModel&&this.hostModel.seriesIndex,this.dataType,e,t),this._graphicEls[e]=t},e.prototype.getItemGraphicEl=function(e){return this._graphicEls[e]},e.prototype.eachItemGraphicEl=function(e,t){I(this._graphicEls,function(n,r){n&&e&&e.call(t,n,r)})},e.prototype.cloneShallow=function(t){return t||=new e(this._schema?this._schema:Hm(this.dimensions,this._getDimInfo,this),this.hostModel),Qm(t,this),t._store=this._store,t},e.prototype.wrapMethod=function(e,t){var n=this[e];ge(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var e=n.apply(this,arguments);return t.apply(this,[e].concat(Ee(arguments)))})},e.internalField=function(){Jm=function(e){var t=e._invertedIndicesMap;I(t,function(n,r){var i=e._dimInfos[r],a=i.ordinalMeta,o=e._store;if(a){n=t[r]=new Um(a.categories.length);for(var s=0;s1&&(s+=`__ec__`+l),r[t]=s}}}(),e}();function nh(e,t){zp(e)||(e=Vp(e)),t||={};var n=t.coordDimensions||[],r=t.dimensionsDefine||e.dimensionsDefine||[],i=Le(),a=[],o=rh(e,n,r,t.dimensionsCount),s=t.canOmitUnusedDimensions&&Bm(o),c=r===e.dimensionsDefine,l=c?zm(e):Rm(r),u=t.encodeDefine;!u&&t.encodeDefaulter&&(u=t.encodeDefaulter(e,o));for(var d=Le(u),f=new Em(o),p=0;p0&&(e.name+=t-1)}),new Im({source:e,dimensions:a,fullDimensionCount:o,dimensionOmitted:s})}function rh(e,t,n,r){var i=Math.max(e.dimensionsDetectedCount||1,t.length,n.length,r||0);return I(t,function(e){var t;B(e)&&(t=e.dimsDef)&&(i=Math.max(i,t.length))}),i}function ih(e,t,n){if(n||t.hasKey(e)){for(var r=0;t.hasKey(e+r);)r++;e+=r}return t.set(e,!0),e}var ah={},oh={},sh=function(){function e(){this._normalMasterList=[],this._nonSeriesBoxMasterList=[]}return e.prototype.create=function(e,t){this._nonSeriesBoxMasterList=n(ah,!0),this._normalMasterList=n(oh,!1);function n(n,r){var i=[];return I(n,function(n,r){var a=n.create(e,t);i=i.concat(a||[])}),i}},e.prototype.update=function(e,t){I(this._normalMasterList,function(n){n.update&&n.update(e,t)})},e.prototype.getCoordinateSystems=function(){return this._normalMasterList.concat(this._nonSeriesBoxMasterList)},e.register=function(e,t){if(e===`matrix`||e===`calendar`){ah[e]=t;return}oh[e]=t},e.get=function(e){return oh[e]||ah[e]},e}();function ch(e){return!!ah[e]}var lh=Le();function uh(e){var t=e.getShallow(`coord`,!0),n=1;if(t==null){var r=lh.get(e.type);r&&r.getCoord2&&(n=2,t=r.getCoord2(e))}return{coord:t,from:n}}function dh(e,t){var n=e.getShallow(`coordinateSystem`),r=e.getShallow(`coordinateSystemUsage`,!0),i=0;if(n){var a=e.mainType===`series`;r??=a?`data`:`box`,r===`data`?(i=1,a||(i=0)):r===`box`&&(i=2,!a&&!ch(n)&&(i=0))}return{coordSysType:n,kind:i}}function fh(e){var t=e.targetModel,n=e.coordSysType,r=e.coordSysProvider,i=e.isDefaultDataCoordSys;e.allowNotFound;var a=dh(t,!0),o=a.kind,s=a.coordSysType;if(i&&o!==1&&(o=1,s=n),o===0||s!==n)return 0;var c=r(n,t);return c?(o===1?t.coordinateSystem=c:t.boxCoordinateSystem=c,o):0}var ph=function(){function e(e){this.coordSysDims=[],this.axisMap=Le(),this.categoryAxisMap=Le(),this.coordSysName=e}return e}();function mh(e){var t=e.get(`coordinateSystem`),n=new ph(t),r=hh[t];if(r)return r(e,n,n.axisMap,n.categoryAxisMap),n}var hh={cartesian2d:function(e,t,n,r){var i=e.getReferringComponents(`xAxis`,Fc).models[0],a=e.getReferringComponents(`yAxis`,Fc).models[0];t.coordSysDims=[`x`,`y`],n.set(`x`,i),n.set(`y`,a),gh(i)&&(r.set(`x`,i),t.firstCategoryDimIndex=0),gh(a)&&(r.set(`y`,a),t.firstCategoryDimIndex??=1)},singleAxis:function(e,t,n,r){var i=e.getReferringComponents(`singleAxis`,Fc).models[0];t.coordSysDims=[`single`],n.set(`single`,i),gh(i)&&(r.set(`single`,i),t.firstCategoryDimIndex=0)},polar:function(e,t,n,r){var i=e.getReferringComponents(`polar`,Fc).models[0],a=i.findAxisModel(`radiusAxis`),o=i.findAxisModel(`angleAxis`);t.coordSysDims=[`radius`,`angle`],n.set(`radius`,a),n.set(`angle`,o),gh(a)&&(r.set(`radius`,a),t.firstCategoryDimIndex=0),gh(o)&&(r.set(`angle`,o),t.firstCategoryDimIndex??=1)},geo:function(e,t,n,r){t.coordSysDims=[`lng`,`lat`]},parallel:function(e,t,n,r){var i=e.ecModel,a=i.getComponent(`parallel`,e.get(`parallelIndex`)),o=t.coordSysDims=a.dimensions.slice();I(a.parallelAxisIndex,function(e,a){var s=i.getComponent(`parallelAxis`,e),c=o[a];n.set(c,s),gh(s)&&(r.set(c,s),t.firstCategoryDimIndex??=a)})},matrix:function(e,t,n,r){var i=e.getReferringComponents(`matrix`,Fc).models[0];t.coordSysDims=[`x`,`y`];var a=i.getDimensionModel(`x`),o=i.getDimensionModel(`y`);n.set(`x`,a),n.set(`y`,o),r.set(`x`,a),r.set(`y`,o)}};function gh(e){return e.get(`type`)===`category`}function _h(e,t,n){n||={};var r=n.byIndex,i=n.stackedCoordDimension,a,o,s;vh(t)?a=t:(o=t.schema,a=o.dimensions,s=t.store);var c=!!(e&&e.get(`stack`)),l,u,d,f,p=!0;function m(e){return e.type!==`ordinal`&&e.type!==`time`}if(I(a,function(e,t){z(e)&&(a[t]=e={name:e}),m(e)||(p=!1)}),I(a,function(e,t){c&&!e.isExtraCoord&&(!r&&!l&&e.ordinalMeta&&(l=e),!u&&m(e)&&(!p||e.coordDim!==`x`&&e.coordDim!==`angle`)&&(!i||i===e.coordDim)&&(u=e))}),u&&!r&&!l&&(r=!0),u){d=`__\0ecstackresult_`+e.id,f=`__\0ecstackedover_`+e.id,l&&(l.createInvertedIndices=!0);var h=u.coordDim,g=u.type,_=0;I(a,function(e){e.coordDim===h&&_++});var v={name:d,coordDim:h,coordDimIndex:_,type:g,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length},y={name:f,coordDim:f,coordDimIndex:_+1,type:g,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length+1};o?(s&&(v.storeDimIndex=s.ensureCalculationDimension(f,g),y.storeDimIndex=s.ensureCalculationDimension(d,g)),o.appendCalculationDimension(v),o.appendCalculationDimension(y)):(a.push(v),a.push(y))}return{stackedDimension:u&&u.name,stackedByDimension:l&&l.name,isStackedByIndex:r,stackedOverDimension:f,stackResultDimension:d}}function vh(e){return!Lm(e.schema)}function yh(e,t){return!!t&&t===e.getCalculationInfo(`stackedDimension`)}function bh(e,t){return yh(e,t)?e.getCalculationInfo(`stackResultDimension`):t}function xh(e,t){var n=e.get(`coordinateSystem`),r=sh.get(n),i;return t&&t.coordSysDims&&(i=L(t.coordSysDims,function(e){var n={name:e},r=t.axisMap.get(e);return r&&(n.type=_m(r.get(`type`))),n})),i||=r&&(r.getDimensionsInfo?r.getDimensionsInfo():r.dimensions.slice())||[`x`,`y`],i}function Sh(e,t,n){var r,i;return n&&I(e,function(e,a){var o=e.coordDim,s=n.categoryAxisMap.get(o);s&&(r??=a,e.ordinalMeta=s.getOrdinalMeta(),t&&(e.createInvertedIndices=!0)),e.otherDims.itemName!=null&&(i=!0)}),!i&&r!=null&&(e[r].otherDims.itemName=0),r}function Ch(e,t,n){n||={};var r=t.getSourceManager(),i,a=!1;e?(a=!0,i=Vp(e)):(i=r.getSource(),a=i.sourceFormat===ul);var o=mh(t),s=xh(t,o),c=n.useEncodeDefaulter,l=ge(c)?c:c?he(Np,s,t):null,u={coordDimensions:s,generateCoord:n.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:l,canOmitUnusedDimensions:!a},d=nh(i,u),f=Sh(d.dimensions,n.createInvertedIndices,o),p=a?null:r.getSharedDataStore(d),m=_h(t,{schema:d,store:p}),h=new th(d,t);h.setCalculationInfo(m);var g=f!=null&&wh(i)?function(e,t,n,r){return r===f?n:this.defaultDimValueGetter(e,t,n,r)}:null;return h.hasItemOption=!1,h.initData(a?i:p,null,g),h}function wh(e){if(e.sourceFormat===`original`)return!R(pc(tee(e.data||[])))}function tee(e){for(var t=0;t=0&&n.push(e)}),n}}function kh(e,t){return N(N({},e,!0),t,!0)}var Ah=Math.log(2);function jh(e,t,n,r,i,a){var o=r+`-`+i,s=e.length;if(a.hasOwnProperty(o))return a[o];if(t===1){var c=Math.round(Math.log((1<>1)%2;s.cssText=[`position: absolute`,`visibility: hidden`,`padding: 0`,`margin: 0`,`border-width: 0`,`user-select: none`,`width:0`,`height:0`,r[c]+`:0`,i[l]+`:0`,r[1-c]+`:auto`,i[1-l]+`:auto`,``].join(`!important;`),e.appendChild(o),n.push(o)}return t.clearMarkers=function(){I(n,function(e){e.parentNode&&e.parentNode.removeChild(e)})},n}function zh(e,t,n){for(var r=n?`invTrans`:`trans`,i=t[r],a=t.srcCoords,o=[],s=[],c=!0,l=0;l<4;l++){var u=e[l].getBoundingClientRect(),d=2*l,f=u.left,p=u.top;o.push(f,p),c=c&&a&&f===a[d]&&p===a[d+1],s.push(e[l].offsetLeft,e[l].offsetTop)}return c&&i?i:(t.srcCoords=o,t[r]=n?Mh(s,o):Mh(o,s))}function Bh(e){return e.nodeName.toUpperCase()===`CANVAS`}var Vh=/([&<>"'])/g,Hh={"&":`&`,"<":`<`,">":`>`,'"':`"`,"'":`'`};function Uh(e){return e==null?``:(e+``).replace(Vh,function(e,t){return Hh[t]})}var Wh={time:{month:[`January`,`February`,`March`,`April`,`May`,`June`,`July`,`August`,`September`,`October`,`November`,`December`],monthAbbr:[`Jan`,`Feb`,`Mar`,`Apr`,`May`,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`],dayOfWeek:[`Sunday`,`Monday`,`Tuesday`,`Wednesday`,`Thursday`,`Friday`,`Saturday`],dayOfWeekAbbr:[`Sun`,`Mon`,`Tue`,`Wed`,`Thu`,`Fri`,`Sat`]},legend:{selector:{all:`All`,inverse:`Inv`}},toolbox:{brush:{title:{rect:`Box Select`,polygon:`Lasso Select`,lineX:`Horizontally Select`,lineY:`Vertically Select`,keep:`Keep Selections`,clear:`Clear Selections`}},dataView:{title:`Data View`,lang:[`Data View`,`Close`,`Refresh`]},dataZoom:{title:{zoom:`Zoom`,back:`Zoom Reset`}},magicType:{title:{line:`Switch to Line Chart`,bar:`Switch to Bar Chart`,stack:`Stack`,tiled:`Tile`}},restore:{title:`Restore`},saveAsImage:{title:`Save as Image`,lang:[`Right Click to Save Image`]}},series:{typeNames:{pie:`Pie chart`,bar:`Bar chart`,line:`Line chart`,scatter:`Scatter plot`,effectScatter:`Ripple scatter plot`,radar:`Radar chart`,tree:`Tree`,treemap:`Treemap`,boxplot:`Boxplot`,candlestick:`Candlestick`,k:`K line chart`,heatmap:`Heat map`,map:`Map`,parallel:`Parallel coordinate map`,lines:`Line graph`,graph:`Relationship graph`,sankey:`Sankey diagram`,funnel:`Funnel chart`,gauge:`Gauge`,pictorialBar:`Pictorial bar`,themeRiver:`Theme River Map`,sunburst:`Sunburst`,custom:`Custom chart`,chart:`Chart`}},aria:{general:{withTitle:`This is a chart about "{title}"`,withoutTitle:`This is a chart`},series:{single:{prefix:``,withName:` with type {seriesType} named {seriesName}.`,withoutName:` with type {seriesType}.`},multiple:{prefix:`. It consists of {seriesCount} series count.`,withName:` The {seriesId} series is a {seriesType} representing {seriesName}.`,withoutName:` The {seriesId} series is a {seriesType}.`,separator:{middle:``,end:``}}},data:{allData:`The data is as follows: `,partialData:`The first {displayCnt} items are: `,withName:`the data for {name} is {value}`,withoutName:`{value}`,separator:{middle:`, `,end:`. `}}}},Gh={time:{month:[`一月`,`二月`,`三月`,`四月`,`五月`,`六月`,`七月`,`八月`,`九月`,`十月`,`十一月`,`十二月`],monthAbbr:[`1月`,`2月`,`3月`,`4月`,`5月`,`6月`,`7月`,`8月`,`9月`,`10月`,`11月`,`12月`],dayOfWeek:[`星期日`,`星期一`,`星期二`,`星期三`,`星期四`,`星期五`,`星期六`],dayOfWeekAbbr:[`日`,`一`,`二`,`三`,`四`,`五`,`六`]},legend:{selector:{all:`全选`,inverse:`反选`}},toolbox:{brush:{title:{rect:`矩形选择`,polygon:`圈选`,lineX:`横向选择`,lineY:`纵向选择`,keep:`保持选择`,clear:`清除选择`}},dataView:{title:`数据视图`,lang:[`数据视图`,`关闭`,`刷新`]},dataZoom:{title:{zoom:`区域缩放`,back:`区域缩放还原`}},magicType:{title:{line:`切换为折线图`,bar:`切换为柱状图`,stack:`切换为堆叠`,tiled:`切换为平铺`}},restore:{title:`还原`},saveAsImage:{title:`保存为图片`,lang:[`右键另存为图片`]}},series:{typeNames:{pie:`饼图`,bar:`柱状图`,line:`折线图`,scatter:`散点图`,effectScatter:`涟漪散点图`,radar:`雷达图`,tree:`树图`,treemap:`矩形树图`,boxplot:`箱型图`,candlestick:`K线图`,k:`K线图`,heatmap:`热力图`,map:`地图`,parallel:`平行坐标图`,lines:`线图`,graph:`关系图`,sankey:`桑基图`,funnel:`漏斗图`,gauge:`仪表盘图`,pictorialBar:`象形柱图`,themeRiver:`主题河流图`,sunburst:`旭日图`,custom:`自定义图表`,chart:`图表`}},aria:{general:{withTitle:`这是一个关于“{title}”的图表。`,withoutTitle:`这是一个图表,`},series:{single:{prefix:``,withName:`图表类型是{seriesType},表示{seriesName}。`,withoutName:`图表类型是{seriesType}。`},multiple:{prefix:`它由{seriesCount}个图表系列组成。`,withName:`第{seriesId}个系列是一个表示{seriesName}的{seriesType},`,withoutName:`第{seriesId}个系列是一个{seriesType},`,separator:{middle:`;`,end:`。`}}},data:{allData:`其数据是——`,partialData:`其中,前{displayCnt}项是——`,withName:`{name}的数据是{value}`,withoutName:`{value}`,separator:{middle:`,`,end:``}}}},Kh=`ZH`,qh=`EN`,Jh=qh,Yh={},Xh={},Zh=We.domSupported?function(){return(document.documentElement.lang||navigator.language||navigator.browserLanguage||Jh).toUpperCase().indexOf(Kh)>-1?Kh:Jh}():Jh;function Qh(e,t){e=e.toUpperCase(),Xh[e]=new Ep(t),Yh[e]=t}function $h(e){if(z(e)){var t=Yh[e.toUpperCase()]||{};return e===Kh||e===qh?M(t):N(M(t),M(Yh[Jh]),!1)}return N(M(e),M(Yh[Jh]),!1)}function eg(e){return Xh[e]}function tg(){return Xh[Jh]}Qh(qh,Wh),Qh(Kh,Gh);var ng=null;function rg(){return ng}function ig(e,t){var n=rg(),r=t.breakOption,i=t.breakParsed;return!i&&n&&(i=n.parseAxisBreakOption(r,e)),i}function ag(e){var t=e.brk;return t?t.breaks:[]}function og(e){var t=e.brk;return t?t.hasBreaks():!1}var sg=1e3,cg=sg*60,lg=cg*60,ug=lg*24,dg=ug*365,fg={year:/({yyyy}|{yy})/,month:/({MMMM}|{MMM}|{MM}|{M})/,day:/({dd}|{d})/,hour:/({HH}|{H}|{hh}|{h})/,minute:/({mm}|{m})/,second:/({ss}|{s})/,millisecond:/({SSS}|{S})/},pg={year:`{yyyy}`,month:`{MMM}`,day:`{d}`,hour:`{HH}:{mm}`,minute:`{HH}:{mm}`,second:`{HH}:{mm}:{ss}`,millisecond:`{HH}:{mm}:{ss} {SSS}`},mg=`{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}`,hg=`{yyyy}-{MM}-{dd}`,gg={year:`{yyyy}`,month:`{yyyy}-{MM}`,day:hg,hour:hg+` `+pg.hour,minute:hg+` `+pg.minute,second:hg+` `+pg.second,millisecond:mg},_g=[`year`,`month`,`day`,`hour`,`minute`,`second`,`millisecond`],vg=[`year`,`half-year`,`quarter`,`month`,`week`,`half-week`,`day`,`half-day`,`quarter-day`,`hour`,`minute`,`second`,`millisecond`];function yg(e){return!z(e)&&!ge(e)?bg(e):e}function bg(e){e||={};var t={},n=!0;return I(_g,function(t){n&&=e[t]==null}),I(_g,function(r,i){var a=e[r];t[r]={};for(var o=null,s=i;s>=0;s--){var c=_g[s],l=B(a)&&!R(a)?a[c]:a,u=void 0;R(l)?(u=l.slice(),o=u[0]||``):z(l)?(o=l,u=[o]):(o==null?o=pg[r]:fg[c].test(o)||(o=t[c][c][0]+` `+o),u=[o],n&&(u[1]=`{primary|`+o+`}`)),t[r][c]=u}}),t}function xg(e,t){return e+=``,`0000`.substr(0,t-e.length)+e}function Sg(e){switch(e){case`half-year`:case`quarter`:return`month`;case`week`:case`half-week`:return`day`;case`half-day`:case`quarter-day`:return`hour`;default:return e}}function Cg(e){return e===Sg(e)}function wg(e){switch(e){case`year`:case`month`:return`day`;case`millisecond`:return`millisecond`;default:return`second`}}function Tg(e,t,n,r){var i=Gs(e),a=i[kg(n)](),o=i[Ag(n)]()+1,s=Math.floor((o-1)/3)+1,c=i[jg(n)](),l=i[`get`+(n?`UTC`:``)+`Day`](),u=i[Mg(n)](),d=(u-1)%12+1,f=i[Ng(n)](),p=i[Pg(n)](),m=i[Fg(n)](),h=u>=12?`pm`:`am`,g=h.toUpperCase(),_=(r instanceof Ep?r:eg(r||Zh)||tg()).getModel(`time`),v=_.get(`month`),y=_.get(`monthAbbr`),b=_.get(`dayOfWeek`),x=_.get(`dayOfWeekAbbr`);return(t||``).replace(/{a}/g,h+``).replace(/{A}/g,g+``).replace(/{yyyy}/g,a+``).replace(/{yy}/g,xg(a%100+``,2)).replace(/{Q}/g,s+``).replace(/{MMMM}/g,v[o-1]).replace(/{MMM}/g,y[o-1]).replace(/{MM}/g,xg(o,2)).replace(/{M}/g,o+``).replace(/{dd}/g,xg(c,2)).replace(/{d}/g,c+``).replace(/{eeee}/g,b[l]).replace(/{ee}/g,x[l]).replace(/{e}/g,l+``).replace(/{HH}/g,xg(u,2)).replace(/{H}/g,u+``).replace(/{hh}/g,xg(d+``,2)).replace(/{h}/g,d+``).replace(/{mm}/g,xg(f,2)).replace(/{m}/g,f+``).replace(/{ss}/g,xg(p,2)).replace(/{s}/g,p+``).replace(/{SSS}/g,xg(m,3)).replace(/{S}/g,m+``)}function Eg(e,t,n,r,i){var a=null;if(z(n))a=n;else if(ge(n)){var o={time:e.time,level:e.time?e.time.level:0},s=rg();s&&s.makeAxisLabelFormatterParamBreak(o,e.break),a=n(e.value,t,o)}else{var c=e.time;if(c){var l=n[c.lowerTimeUnit][c.upperTimeUnit];a=l[Math.min(c.level,l.length-1)]||``}else{var u=Dg(e.value,i);a=n[u][u][0]}}return Tg(new Date(e.value),a,i,r)}function Dg(e,t){var n=Gs(e),r=n[Ag(t)]()+1,i=n[jg(t)](),a=n[Mg(t)](),o=n[Ng(t)](),s=n[Pg(t)](),c=n[Fg(t)]()===0,l=c&&s===0,u=l&&o===0,d=u&&a===0,f=d&&i===1;return f&&r===1?`year`:f?`month`:d?`day`:u?`hour`:l?`minute`:c?`second`:`millisecond`}function Og(e,t,n){switch(t){case`year`:e[Lg(n)](0);case`month`:e[Rg(n)](1);case`day`:e[zg(n)](0);case`hour`:e[Bg(n)](0);case`minute`:e[Vg(n)](0);case`second`:e[Hg(n)](0)}return e}function kg(e){return e?`getUTCFullYear`:`getFullYear`}function Ag(e){return e?`getUTCMonth`:`getMonth`}function jg(e){return e?`getUTCDate`:`getDate`}function Mg(e){return e?`getUTCHours`:`getHours`}function Ng(e){return e?`getUTCMinutes`:`getMinutes`}function Pg(e){return e?`getUTCSeconds`:`getSeconds`}function Fg(e){return e?`getUTCMilliseconds`:`getMilliseconds`}function Ig(e){return e?`setUTCFullYear`:`setFullYear`}function Lg(e){return e?`setUTCMonth`:`setMonth`}function Rg(e){return e?`setUTCDate`:`setDate`}function zg(e){return e?`setUTCHours`:`setHours`}function Bg(e){return e?`setUTCMinutes`:`setMinutes`}function Vg(e){return e?`setUTCSeconds`:`setSeconds`}function Hg(e){return e?`setUTCMilliseconds`:`setMilliseconds`}function Ug(e){if(!Zs(e))return z(e)?e:`-`;var t=(e+``).split(`.`);return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,`$1,`)+(t.length>1?`.`+t[1]:``)}function Wg(e,t){return e=(e||``).toLowerCase().replace(/-(.)/g,function(e,t){return t.toUpperCase()}),t&&e&&(e=e.charAt(0).toUpperCase()+e.slice(1)),e}var Gg=De;function Kg(e,t,n){var r=`{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}`;function i(e){return e&&ke(e)?e:`-`}function a(e){return tc(e)}var o=t===`time`,s=e instanceof Date;if(o||s){var c=o?Gs(e):e;if(!isNaN(+c))return Tg(c,r,n);if(s)return`-`}if(t===`ordinal`)return _e(e)?i(e):ve(e)&&a(e)?e+``:`-`;var l=Xs(e);return a(l)?Ug(l):_e(e)?i(e):typeof e==`boolean`?e+``:`-`}var qg=[`a`,`b`,`c`,`d`,`e`,`f`,`g`],Jg=function(e,t){return`{`+e+(t??``)+`}`};function Yg(e,t,n){R(t)||(t=[t]);var r=t.length;if(!r)return``;for(var i=t[0].$vars||[],a=0;a`:``:{renderMode:a,content:`{`+(n.markerId||`markerX`)+`|} `,style:i===`subItem`?{width:4,height:4,borderRadius:2,backgroundColor:r}:{width:10,height:10,borderRadius:5,backgroundColor:r}}:``}function Zg(e,t){return t||=`transparent`,z(e)?e:B(e)&&e.colorStops&&(e.colorStops[0]||{}).color||t}var Qg=I,$g=[`left`,`right`,`top`,`bottom`,`width`,`height`],e_=[[`width`,`left`,`right`],[`height`,`top`,`bottom`]];function t_(e,t,n,r,i){var a=0,o=0;r??=1/0,i??=1/0;var s=0;t.eachChild(function(c,l){var u=c.getBoundingRect(),d=t.childAt(l+1),f=d&&d.getBoundingRect(),p,m;if(e===`horizontal`){var h=u.width+(f?-f.x+u.x:0);p=a+h,p>r||c.newline?(a=0,p=h,o+=s+n,s=u.height):s=Math.max(s,u.height)}else{var g=u.height+(f?-f.y+u.y:0);m=o+g,m>i||c.newline?(a+=s+n,o=0,m=g,s=u.width):s=Math.max(s,u.width)}c.newline||(c.x=a,c.y=o,c.markRedraw(),e===`horizontal`?a=p+n:o=m+n)})}var n_=t_;he(t_,`vertical`),he(t_,`horizontal`);function r_(e,t){return{left:e.getShallow(`left`,t),top:e.getShallow(`top`,t),right:e.getShallow(`right`,t),bottom:e.getShallow(`bottom`,t),width:e.getShallow(`width`,t),height:e.getShallow(`height`,t)}}function i_(e,t,n){n=Gg(n||0);var r=t.width,i=t.height,a=js(e.left,r),o=js(e.top,i),s=js(e.right,r),c=js(e.bottom,i),l=js(e.width,r),u=js(e.height,i),d=n[2]+n[0],f=n[1]+n[3],p=e.aspect;switch(isNaN(l)&&(l=r-s-f-a),isNaN(u)&&(u=i-c-d-o),p!=null&&(isNaN(l)&&isNaN(u)&&(p>r/i?l=r*.8:u=i*.8),isNaN(l)&&(l=p*u),isNaN(u)&&(u=l/p)),isNaN(a)&&(a=r-s-l-f),isNaN(o)&&(o=i-c-u-d),e.left||e.right){case`center`:a=r/2-l/2-n[3];break;case`right`:a=r-l-f}switch(e.top||e.bottom){case`middle`:case`center`:o=i/2-u/2-n[0];break;case`bottom`:o=i-u-d}a||=0,o||=0,isNaN(l)&&(l=r-f-a-(s||0)),isNaN(u)&&(u=i-d-o-(c||0));var m=new rn((t.x||0)+a+n[3],(t.y||0)+o+n[0],l,u);return m.margin=n,m}function a_(e,t,n){var r=e.getShallow(`preserveAspect`,!0);if(!r)return t;var i=t.width/t.height;if(Math.abs(Math.atan(n)-Math.atan(i))<1e-9)return t;var a=e.getShallow(`preserveAspectAlign`,!0),o=e.getShallow(`preserveAspectVerticalAlign`,!0),s={width:t.width,height:t.height},c=r===`cover`;return i>n&&!c||i=u)return a;for(var d=0;d=0;o--)a=N(a,n[o],!0);t.defaultOption=a}return t.defaultOption},t.prototype.getReferringComponents=function(e,t){var n=e+`Index`,r=e+`Id`;return Ic(this.ecModel,e,{index:this.get(n,!0),id:this.get(r,!0)},t)},t.prototype.getBoxLayoutParams=function(){return r_(this,!1)},t.prototype.getZLevelKey=function(){return``},t.prototype.setZLevel=function(e){this.option.zlevel=e},t.protoInitialize=function(){var e=t.prototype;e.type=`component`,e.id=``,e.name=``,e.mainType=``,e.subType=``,e.componentIndex=0}(),t}(Ep);et(m_,Ep),at(m_),Dh(m_),Oh(m_,h_);function h_(e){var t=[];return I(m_.getClassesByMainType(e),function(e){t=t.concat(e.dependencies||e.prototype.dependencies||[])}),t=L(t,function(e){return Ye(e).main}),e!==`dataset`&&ae(t,`dataset`)<=0&&t.unshift(`dataset`),t}var g_=jc(),__=jc(),v_=function(){function e(){}return e.prototype.getColorFromPalette=function(e,t,n){var r=uc(this.get(`color`,!0)),i=this.get(`colorLayer`,!0);return x_(this,g_,r,i,e,t,n)},e.prototype.clearColorPalette=function(){S_(this,g_)},e}();function y_(e,t,n,r){return x_(e,__,uc(e.get([`aria`,`decal`,`decals`])),null,t,n,r)}function b_(e,t){for(var n=e.length,r=0;rt)return e[r];return e[n-1]}function x_(e,t,n,r,i,a,o){a||=e;var s=t(a),c=s.paletteIdx||0,l=s.paletteNameMap=s.paletteNameMap||{};if(l.hasOwnProperty(i))return l[i];var u=o==null||!r?n:b_(r,o);if(u||=n,!(!u||!u.length)){var d=u[c];return i&&(l[i]=d),s.paletteIdx=(c+1)%u.length,d}}function S_(e,t){t(e).paletteIdx=0,t(e).paletteNameMap={}}var C_=/\{@(.+?)\}/g,w_=function(){function e(){}return e.prototype.getDataParams=function(e,t){var n=this.getData(t),r=this.getRawValue(e,t),i=n.getRawIndex(e),a=n.getName(e),o=n.getRawDataItem(e),s=n.getItemVisual(e,`style`),c=s&&s[n.getItemVisual(e,`drawType`)||`fill`],l=s&&s.stroke,u=this.mainType,d=u===`series`,f=n.userOutput&&n.userOutput.get();return{componentType:u,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:d?this.subType:null,seriesIndex:this.seriesIndex,seriesId:d?this.id:null,seriesName:d?this.name:null,name:a,dataIndex:i,data:o,dataType:t,value:r,color:c,borderColor:l,dimensionNames:f?f.fullDimensions:null,encode:f?f.encode:null,$vars:[`seriesName`,`name`,`value`]}},e.prototype.getFormattedLabel=function(e,t,n,r,i,a){t||=`normal`;var o=this.getData(n),s=this.getDataParams(e,n);if(a&&(s.value=a.interpolatedValue),r!=null&&R(s.value)&&(s.value=s.value[r]),i||=o.getItemModel(e).get(t===`normal`?[`label`,`formatter`]:[t,`label`,`formatter`]),ge(i))return s.status=t,s.dimensionIndex=r,i(s);if(z(i))return Yg(i,s).replace(C_,function(t,n){var r=n.length,i=n;i.charAt(0)===`[`&&i.charAt(r-1)===`]`&&(i=+i.slice(1,r-1));var s=pm(o,e,i);if(a&&R(a.interpolatedValue)){var c=o.getDimensionIndex(i);c>=0&&(s=a.interpolatedValue[c])}return s==null?``:s+``})},e.prototype.getRawValue=function(e,t){return pm(this.getData(t),e)},e.prototype.formatTooltip=function(e,t,n){},e}();function T_(e){var t,n;return B(e)?e.type&&(n=e):t=e,{text:t,frag:n}}function E_(e){return new D_(e)}var D_=function(){function e(e){e||={},this._reset=e.reset,this._plan=e.plan,this._count=e.count,this._onDirty=e.onDirty,this._dirty=!0}return e.prototype.perform=function(e){var t=this._upstream,n=e&&e.skip;if(this._dirty&&t){var r=this.context;r.data=r.outputData=t.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var i;this._plan&&!n&&(i=this._plan(this.context));var a=l(this._modBy),o=this._modDataCount||0,s=l(e&&e.modBy),c=e&&e.modDataCount||0;(a!==s||o!==c)&&(i=`reset`);function l(e){return!(e>=1)&&(e=1),e}var u;(this._dirty||i===`reset`)&&(this._dirty=!1,u=this._doReset(n)),this._modBy=s,this._modDataCount=c;var d=e&&e.step;if(this._dueEnd=t?t._outputDueEnd:this._count?this._count(this.context):1/0,this._progress){var f=this._dueIndex,p=Math.min(d==null?1/0:this._dueIndex+d,this._dueEnd);if(!n&&(u||f1&&r>0?s:o}};return a;function o(){return t=e?null:a9e10&&(this._versionSignBase=0)},e.prototype._getVersionSign=function(){return this._sourceHost.uid+`_`+this._versionSignBase},e.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},e.prototype._createSource=function(){this._setLocalSource([],[]);var e=this._sourceHost,t=this._getUpstreamSourceManagers(),n=!!t.length,r,i;if(F_(e)){var a=e,o=void 0,s=void 0,c=void 0;if(n){var l=t[0];l.prepareSource(),c=l.getSource(),o=c.data,s=c.sourceFormat,i=[l._getVersionSign()]}else o=a.get(`data`,!0),s=be(o)?ml:ul,i=[];var u=this._getSourceMetaRawOption()||{},d=c&&c.metaRawOption||{},f=V(u.seriesLayoutBy,d.seriesLayoutBy)||null,p=V(u.sourceHeader,d.sourceHeader),m=V(u.dimensions,d.dimensions);r=f!==d.seriesLayoutBy||!!p!=!!d.sourceHeader||m?[Bp(o,{seriesLayoutBy:f,sourceHeader:p,dimensions:m},s)]:[]}else{var h=e;if(n){var g=this._applyTransform(t);r=g.sourceList,i=g.upstreamSignList}else r=[Bp(h.get(`source`,!0),this._getSourceMetaRawOption(),null)],i=[]}this._setLocalSource(r,i)},e.prototype._applyTransform=function(e){var t=this._sourceHost,n=t.get(`transform`,!0),r=t.get(`fromTransformResult`,!0);r!=null&&e.length!==1&&I_(``);var i,a=[],o=[];return I(e,function(e){e.prepareSource();var t=e.getSource(r||0);r!=null&&!t&&I_(``),a.push(t),o.push(e._getVersionSign())}),n?i=j_(n,a,{datasetIndex:t.componentIndex}):r!=null&&(i=[Hp(a[0])]),{sourceList:i,upstreamSignList:o}},e.prototype._isDirty=function(){if(this._dirty)return!0;for(var e=this._getUpstreamSourceManagers(),t=0;tn:i+u+m>n){u?(s||c)&&(h?(s||(s=c,c=``,l=0,u=l),a.push(s),o.push(u-l),c+=p,l+=m,s=``,u=l):(c&&(s+=c,c=``,l=0),a.push(s),o.push(u),s=p,u=m)):h?(a.push(c),o.push(l),c=p,l=m):(a.push(p),o.push(m));continue}u+=m,h?(c+=p,l+=m):(c&&(s+=c,c=``,l=0),s+=p)}return c&&(s+=c),s&&(a.push(s),o.push(u)),a.length===1&&(u+=i),{accumWidth:u,lines:a,linesWidths:o}}function Gn(e,t,n,r,i,a){if(e.baseX=n,e.baseY=r,e.outerWidth=e.outerHeight=null,t){var o=t.width*2,s=t.height*2;rn.set(Kn,Tn(n,o,i),En(r,s,a),o,s),rn.intersect(t,Kn,null,qn);var c=qn.outIntersectRect;e.outerWidth=c.width,e.outerHeight=c.height,e.baseX=Tn(c.x,c.width,i,!0),e.baseY=En(c.y,c.height,a,!0)}}var Kn=new rn(0,0,0,0),qn={outIntersectRect:{},clamp:!0};function Jn(e){return e==null?e=``:e+=``}function Yn(e){var t=Jn(e.text),n=e.font;return Xn(e,Sn(gn(n),t),Dn(n),null)}function Xn(e,t,n,r){var i=new rn(Tn(e.x||0,t,e.textAlign),En(e.y||0,n,e.textBaseline),t,n),a=r??(Zn(e)?e.lineWidth:0);return a>0&&(i.x-=a/2,i.y-=a/2,i.width+=a,i.height+=a),i}function Zn(e){var t=e.stroke;return t!=null&&t!==`none`&&e.lineWidth>0}var Qn=vt,$n=5e-5;function er(e){return e>$n||e<-$n}var tr=[],nr=[],rr=_t(),ir=Math.abs,ar=function(){function e(){}return e.prototype.getLocalTransform=function(e){return or(this,e)},e.prototype.setPosition=function(e){this.x=e[0],this.y=e[1]},e.prototype.setScale=function(e){this.scaleX=e[0],this.scaleY=e[1]},e.prototype.setSkew=function(e){this.skewX=e[0],this.skewY=e[1]},e.prototype.setOrigin=function(e){this.originX=e[0],this.originY=e[1]},e.prototype.needLocalTransform=function(){return er(this.rotation)||er(this.x)||er(this.y)||er(this.scaleX-1)||er(this.scaleY-1)||er(this.skewX)||er(this.skewY)},e.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,t=this.needLocalTransform(),n=this.transform;if(!(t||e)){n&&(Qn(n),this.invTransform=null);return}n||=_t(),t?this.getLocalTransform(n):Qn(n),e&&(t?bt(n,e,n):yt(n,e)),this.transform=n,this._resolveGlobalScaleRatio(n),this.invTransform=this.invTransform||_t(),wt(this.invTransform,n)},e.prototype._resolveGlobalScaleRatio=function(e){var t=this.globalScaleRatio;if(t!=null&&t!==1){this.getGlobalScale(tr);var n=tr[0]<0?-1:1,r=tr[1]<0?-1:1,i=((tr[0]-n)*t+n)/tr[0]||0,a=((tr[1]-r)*t+r)/tr[1]||0;e[0]*=i,e[1]*=i,e[2]*=a,e[3]*=a}},e.prototype.getComputedTransform=function(){for(var e=this,t=[];e;)t.push(e),e=e.parent;for(;e=t.pop();)e.updateTransform();return this.transform},e.prototype.setLocalTransform=function(e){if(e){var t=e[0]*e[0]+e[1]*e[1],n=e[2]*e[2]+e[3]*e[3],r=Math.atan2(e[1],e[0]),i=Math.PI/2+r-Math.atan2(e[3],e[2]);n=Math.sqrt(n)*Math.cos(i),t=Math.sqrt(t),this.skewX=i,this.skewY=0,this.rotation=-r,this.x=+e[4],this.y=+e[5],this.scaleX=t,this.scaleY=n,this.originX=0,this.originY=0}},e.prototype.decomposeTransform=function(){if(this.transform){var e=this.parent,t=this.transform;e&&e.transform&&(e.invTransform=e.invTransform||_t(),bt(nr,e.invTransform,t),t=nr);var n=this.originX,r=this.originY;(n||r)&&(rr[4]=n,rr[5]=r,bt(nr,t,rr),nr[4]-=n,nr[5]-=r,t=nr),this.setLocalTransform(t)}},e.prototype.getGlobalScale=function(e){var t=this.transform;return e||=[],t?(e[0]=Math.sqrt(t[0]*t[0]+t[1]*t[1]),e[1]=Math.sqrt(t[2]*t[2]+t[3]*t[3]),t[0]<0&&(e[0]=-e[0]),t[3]<0&&(e[1]=-e[1]),e):(e[0]=1,e[1]=1,e)},e.prototype.transformCoordToLocal=function(e,t){var n=[e,t],r=this.invTransform;return r&&Bt(n,n,r),n},e.prototype.transformCoordToGlobal=function(e,t){var n=[e,t],r=this.transform;return r&&Bt(n,n,r),n},e.prototype.getLineScale=function(){var e=this.transform;return e&&ir(e[0]-1)>1e-10&&ir(e[3]-1)>1e-10?Math.sqrt(ir(e[0]*e[3]-e[2]*e[1])):1},e.prototype.copyTransform=function(e){lr(this,e)},e.getLocalTransform=function(e,t){t||=[];var n=e.originX||0,r=e.originY||0,i=e.scaleX,a=e.scaleY,o=e.anchorX,s=e.anchorY,c=e.rotation||0,l=e.x,u=e.y,d=e.skewX?Math.tan(e.skewX):0,f=e.skewY?Math.tan(-e.skewY):0;if(n||r||o||s){var p=n+o,m=r+s;t[4]=-p*i-d*m*a,t[5]=-m*a-f*p*i}else t[4]=t[5]=0;return t[0]=i,t[3]=a,t[1]=f*i,t[2]=d*a,c&&St(t,t,c),t[4]+=n+l,t[5]+=r+u,t},e.initDefaultProps=(function(){var t=e.prototype;t.scaleX=t.scaleY=t.globalScaleRatio=1,t.x=t.y=t.originX=t.originY=t.skewX=t.skewY=t.rotation=t.anchorX=t.anchorY=0})(),e}(),or=ar.getLocalTransform;function sr(){return new ar}var cr=[`x`,`y`,`originX`,`originY`,`anchorX`,`anchorY`,`rotation`,`scaleX`,`scaleY`,`skewX`,`skewY`];function lr(e,t){return ie(e,t,cr)}var ur={linear:function(e){return e},quadraticIn:function(e){return e*e},quadraticOut:function(e){return e*(2-e)},quadraticInOut:function(e){return(e*=2)<1?.5*e*e:-.5*(--e*(e-2)-1)},cubicIn:function(e){return e*e*e},cubicOut:function(e){return--e*e*e+1},cubicInOut:function(e){return(e*=2)<1?.5*e*e*e:.5*((e-=2)*e*e+2)},quarticIn:function(e){return e*e*e*e},quarticOut:function(e){return 1- --e*e*e*e},quarticInOut:function(e){return(e*=2)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)},quinticIn:function(e){return e*e*e*e*e},quinticOut:function(e){return--e*e*e*e*e+1},quinticInOut:function(e){return(e*=2)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)},sinusoidalIn:function(e){return 1-Math.cos(e*Math.PI/2)},sinusoidalOut:function(e){return Math.sin(e*Math.PI/2)},sinusoidalInOut:function(e){return .5*(1-Math.cos(Math.PI*e))},exponentialIn:function(e){return e===0?0:1024**(e-1)},exponentialOut:function(e){return e===1?1:1-2**(-10*e)},exponentialInOut:function(e){return e===0?0:e===1?1:(e*=2)<1?.5*1024**(e-1):.5*(-(2**(-10*(e-1)))+2)},circularIn:function(e){return 1-Math.sqrt(1-e*e)},circularOut:function(e){return Math.sqrt(1- --e*e)},circularInOut:function(e){return(e*=2)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},elasticIn:function(e){var t,n=.1,r=.4;return e===0?0:e===1?1:(!n||n<1?(n=1,t=r/4):t=r*Math.asin(1/n)/(2*Math.PI),-(n*2**(10*--e)*Math.sin((e-t)*(2*Math.PI)/r)))},elasticOut:function(e){var t,n=.1,r=.4;return e===0?0:e===1?1:(!n||n<1?(n=1,t=r/4):t=r*Math.asin(1/n)/(2*Math.PI),n*2**(-10*e)*Math.sin((e-t)*(2*Math.PI)/r)+1)},elasticInOut:function(e){var t,n=.1,r=.4;return e===0?0:e===1?1:(!n||n<1?(n=1,t=r/4):t=r*Math.asin(1/n)/(2*Math.PI),(e*=2)<1?-.5*(n*2**(10*--e)*Math.sin((e-t)*(2*Math.PI)/r)):n*2**(-10*--e)*Math.sin((e-t)*(2*Math.PI)/r)*.5+1)},backIn:function(e){var t=1.70158;return e*e*((t+1)*e-t)},backOut:function(e){var t=1.70158;return--e*e*((t+1)*e+t)+1},backInOut:function(e){var t=2.5949095;return(e*=2)<1?.5*(e*e*((t+1)*e-t)):.5*((e-=2)*e*((t+1)*e+t)+2)},bounceIn:function(e){return 1-ur.bounceOut(1-e)},bounceOut:function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},bounceInOut:function(e){return e<.5?ur.bounceIn(e*2)*.5:ur.bounceOut(e*2-1)*.5+.5}},dr=Math.pow,fr=Math.sqrt,pr=1e-8,mr=1e-4,hr=fr(3),gr=1/3,_r=Tt(),vr=Tt(),yr=Tt();function br(e){return e>-pr&&epr||e<-pr}function Sr(e,t,n,r,i){var a=1-i;return a*a*(a*e+3*i*t)+i*i*(i*r+3*a*n)}function Cr(e,t,n,r,i){var a=1-i;return 3*(((t-e)*a+2*(n-t)*i)*a+(r-n)*i*i)}function wr(e,t,n,r,i,a){var o=r+3*(t-n)-e,s=3*(n-t*2+e),c=3*(t-e),l=e-i,u=s*s-3*o*c,d=s*c-9*o*l,f=c*c-3*s*l,p=0;if(br(u)&&br(d))if(br(s))a[0]=0;else{var m=-c/s;m>=0&&m<=1&&(a[p++]=m)}else{var h=d*d-4*u*f;if(br(h)){var g=d/u,m=-s/o+g,_=-g/2;m>=0&&m<=1&&(a[p++]=m),_>=0&&_<=1&&(a[p++]=_)}else if(h>0){var v=fr(h),y=u*s+1.5*o*(-d+v),b=u*s+1.5*o*(-d-v);y=y<0?-dr(-y,gr):dr(y,gr),b=b<0?-dr(-b,gr):dr(b,gr);var m=(-s-(y+b))/(3*o);m>=0&&m<=1&&(a[p++]=m)}else{var x=(2*u*s-3*o*d)/(2*fr(u*u*u)),S=Math.acos(x)/3,C=fr(u),w=Math.cos(S),m=(-s-2*C*w)/(3*o),_=(-s+C*(w+hr*Math.sin(S)))/(3*o),T=(-s+C*(w-hr*Math.sin(S)))/(3*o);m>=0&&m<=1&&(a[p++]=m),_>=0&&_<=1&&(a[p++]=_),T>=0&&T<=1&&(a[p++]=T)}}return p}function Tr(e,t,n,r,i){var a=6*n-12*t+6*e,o=9*t+3*r-3*e-9*n,s=3*t-3*e,c=0;if(br(o)){if(xr(a)){var l=-s/a;l>=0&&l<=1&&(i[c++]=l)}}else{var u=a*a-4*o*s;if(br(u))i[0]=-a/(2*o);else if(u>0){var d=fr(u),l=(-a+d)/(2*o),f=(-a-d)/(2*o);l>=0&&l<=1&&(i[c++]=l),f>=0&&f<=1&&(i[c++]=f)}}return c}function Er(e,t,n,r,i,a){var o=(t-e)*i+e,s=(n-t)*i+t,c=(r-n)*i+n,l=(s-o)*i+o,u=(c-s)*i+s,d=(u-l)*i+l;a[0]=e,a[1]=o,a[2]=l,a[3]=d,a[4]=d,a[5]=u,a[6]=c,a[7]=r}function Dr(e,t,n,r,i,a,o,s,c,l,u){var d,f=.005,p=1/0,m,h,g,_;_r[0]=c,_r[1]=l;for(var v=0;v<1;v+=.05)vr[0]=Sr(e,n,i,o,v),vr[1]=Sr(t,r,a,s,v),g=zt(_r,vr),g=0&&g=0&&l<=1&&(i[c++]=l)}}else{var u=o*o-4*a*s;if(br(u)){var l=-o/(2*a);l>=0&&l<=1&&(i[c++]=l)}else if(u>0){var d=fr(u),l=(-o+d)/(2*a),f=(-o-d)/(2*a);l>=0&&l<=1&&(i[c++]=l),f>=0&&f<=1&&(i[c++]=f)}}return c}function Mr(e,t,n){var r=e+n-2*t;return r===0?.5:(e-t)/r}function Nr(e,t,n,r,i){var a=(t-e)*r+e,o=(n-t)*r+t,s=(o-a)*r+a;i[0]=e,i[1]=a,i[2]=s,i[3]=s,i[4]=o,i[5]=n}function Pr(e,t,n,r,i,a,o,s,c){var l,u=.005,d=1/0;_r[0]=o,_r[1]=s;for(var f=0;f<1;f+=.05){vr[0]=kr(e,n,i,f),vr[1]=kr(t,r,a,f);var p=zt(_r,vr);p=0&&p=1?1:wr(0,r,a,1,e,s)&&Sr(0,i,o,1,s[0])}}}var Rr=function(){function e(e){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=e.life||1e3,this._delay=e.delay||0,this.loop=e.loop||!1,this.onframe=e.onframe||Ve,this.ondestroy=e.ondestroy||Ve,this.onrestart=e.onrestart||Ve,e.easing&&this.setEasing(e.easing)}return e.prototype.step=function(e,t){if(this._inited||=(this._startTime=e+this._delay,!0),this._paused){this._pausedTime+=t;return}var n=this._life,r=e-this._startTime-this._pausedTime,i=r/n;i<0&&(i=0),i=Math.min(i,1);var a=this.easingFunc,o=a?a(i):i;if(this.onframe(o),i===1)if(this.loop){var s=r%n;this._startTime=e-s,this._pausedTime=0,this.onrestart()}else return!0;return!1},e.prototype.pause=function(){this._paused=!0},e.prototype.resume=function(){this._paused=!1},e.prototype.setEasing=function(e){this.easing=e,this.easingFunc=ge(e)?e:ur[e]||Lr(e)},e}(),zr={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function Br(e){return e=Math.round(e),e<0?0:e>255?255:e}function Vr(e){return e=Math.round(e),e<0?0:e>360?360:e}function Hr(e){return e<0?0:e>1?1:e}function Ur(e){var t=e;return t.length&&t.charAt(t.length-1)===`%`?Br(parseFloat(t)/100*255):Br(parseInt(t,10))}function Wr(e){var t=e;return t.length&&t.charAt(t.length-1)===`%`?Hr(parseFloat(t)/100):Hr(parseFloat(t))}function Gr(e,t,n){return n<0?n+=1:n>1&&--n,n*6<1?e+(t-e)*n*6:n*2<1?t:n*3<2?e+(t-e)*(2/3-n)*6:e}function Kr(e,t,n){return e+(t-e)*n}function qr(e,t,n,r,i){return e[0]=t,e[1]=n,e[2]=r,e[3]=i,e}function Jr(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var Yr=new dt(20),Xr=null;function Zr(e,t){Xr&&Jr(Xr,t),Xr=Yr.put(e,Xr||t.slice())}function Qr(e,t){if(e){t||=[];var n=Yr.get(e);if(n)return Jr(t,n);e+=``;var r=e.replace(/ /g,``).toLowerCase();if(r in zr)return Jr(t,zr[r]),Zr(e,t),t;var i=r.length;if(r.charAt(0)===`#`){if(i===4||i===5){var a=parseInt(r.slice(1,4),16);if(!(a>=0&&a<=4095)){qr(t,0,0,0,1);return}return qr(t,(a&3840)>>4|(a&3840)>>8,a&240|(a&240)>>4,a&15|(a&15)<<4,i===5?parseInt(r.slice(4),16)/15:1),Zr(e,t),t}if(i===7||i===9){var a=parseInt(r.slice(1,7),16);if(!(a>=0&&a<=16777215)){qr(t,0,0,0,1);return}return qr(t,(a&16711680)>>16,(a&65280)>>8,a&255,i===9?parseInt(r.slice(7),16)/255:1),Zr(e,t),t}return}var o=r.indexOf(`(`),s=r.indexOf(`)`);if(o!==-1&&s+1===i){var c=r.substr(0,o),l=r.substr(o+1,s-(o+1)).split(`,`),u=1;switch(c){case`rgba`:if(l.length!==4)return l.length===3?qr(t,+l[0],+l[1],+l[2],1):qr(t,0,0,0,1);u=Wr(l.pop());case`rgb`:if(l.length>=3)return qr(t,Ur(l[0]),Ur(l[1]),Ur(l[2]),l.length===3?u:Wr(l[3])),Zr(e,t),t;qr(t,0,0,0,1);return;case`hsla`:if(l.length!==4){qr(t,0,0,0,1);return}return l[3]=Wr(l[3]),$r(l,t),Zr(e,t),t;case`hsl`:if(l.length!==3){qr(t,0,0,0,1);return}return $r(l,t),Zr(e,t),t;default:return}}qr(t,0,0,0,1)}}function $r(e,t){var n=(parseFloat(e[0])%360+360)%360/360,r=Wr(e[1]),i=Wr(e[2]),a=i<=.5?i*(r+1):i+r-i*r,o=i*2-a;return t||=[],qr(t,Br(Gr(o,a,n+1/3)*255),Br(Gr(o,a,n)*255),Br(Gr(o,a,n-1/3)*255),1),e.length===4&&(t[3]=e[3]),t}function ei(e){if(e){var t=e[0]/255,n=e[1]/255,r=e[2]/255,i=Math.min(t,n,r),a=Math.max(t,n,r),o=a-i,s=(a+i)/2,c,l;if(o===0)c=0,l=0;else{l=s<.5?o/(a+i):o/(2-a-i);var u=((a-t)/6+o/2)/o,d=((a-n)/6+o/2)/o,f=((a-r)/6+o/2)/o;t===a?c=f-d:n===a?c=1/3+u-f:r===a&&(c=2/3+d-u),c<0&&(c+=1),c>1&&--c}var p=[c*360,l,s];return e[3]!=null&&p.push(e[3]),p}}function ti(e,t){var n=Qr(e);if(n){for(var r=0;r<3;r++)t<0?n[r]=n[r]*(1-t)|0:n[r]=(255-n[r])*t+n[r]|0,n[r]>255?n[r]=255:n[r]<0&&(n[r]=0);return ai(n,n.length===4?`rgba`:`rgb`)}}function ni(e,t,n){if(!(!(t&&t.length)||!(e>=0&&e<=1))){n||=[];var r=e*(t.length-1),i=Math.floor(r),a=Math.ceil(r),o=t[i],s=t[a],c=r-i;return n[0]=Br(Kr(o[0],s[0],c)),n[1]=Br(Kr(o[1],s[1],c)),n[2]=Br(Kr(o[2],s[2],c)),n[3]=Hr(Kr(o[3],s[3],c)),n}}function ri(e,t,n,r){var i=Qr(e);if(e)return i=ei(i),t!=null&&(i[0]=Vr(ge(t)?t(i[0]):t)),n!=null&&(i[1]=Wr(ge(n)?n(i[1]):n)),r!=null&&(i[2]=Wr(ge(r)?r(i[2]):r)),ai($r(i),`rgba`)}function ii(e,t){var n=Qr(e);if(n&&t!=null)return n[3]=Hr(t),ai(n,`rgba`)}function ai(e,t){if(!(!e||!e.length)){var n=e[0]+`,`+e[1]+`,`+e[2];return(t===`rgba`||t===`hsva`||t===`hsla`)&&(n+=`,`+e[3]),t+`(`+n+`)`}}function oi(e,t){var n=Qr(e);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*t:0}var si=new dt(100);function ci(e){if(z(e)){var t=si.get(e);return t||(t=ti(e,-.1),si.put(e,t)),t}if(Se(e)){var n=P({},e);return n.colorStops=L(e.colorStops,function(e){return{offset:e.offset,color:ti(e.color,-.1)}}),n}return e}var li=Math.round;function ui(e){var t;if(!e||e===`transparent`)e=`none`;else if(typeof e==`string`&&e.indexOf(`rgba`)>-1){var n=Qr(e);n&&(e=`rgb(`+n[0]+`,`+n[1]+`,`+n[2]+`)`,t=n[3])}return{color:e,opacity:t??1}}var di=1e-4;function fi(e){return e-di}function pi(e){return li(e*1e3)/1e3}function mi(e){return li(e*1e4)/1e4}function hi(e){return`matrix(`+pi(e[0])+`,`+pi(e[1])+`,`+pi(e[2])+`,`+pi(e[3])+`,`+mi(e[4])+`,`+mi(e[5])+`)`}var gi={left:`start`,right:`end`,center:`middle`,middle:`middle`};function _i(e,t,n){return n===`top`?e+=t/2:n===`bottom`&&(e-=t/2),e}function vi(e){return e&&(e.shadowBlur||e.shadowOffsetX||e.shadowOffsetY)}function yi(e){var t=e.style,n=e.getGlobalScale();return[t.shadowColor,(t.shadowBlur||0).toFixed(2),(t.shadowOffsetX||0).toFixed(2),(t.shadowOffsetY||0).toFixed(2),n[0],n[1]].join(`,`)}function bi(e){return e&&!!e.image}function xi(e){return e&&!!e.svgElement}function Si(e){return bi(e)||xi(e)}function Ci(e){return e.type===`linear`}function wi(e){return e.type===`radial`}function Ti(e){return e&&(e.type===`linear`||e.type===`radial`)}function Ei(e){return`url(#`+e+`)`}function Di(e){var t=e.getGlobalScale(),n=Math.max(t[0],t[1]);return Math.max(Math.ceil(Math.log(n)/Math.log(10)),1)}function Oi(e){var t=e.x||0,n=e.y||0,r=(e.rotation||0)*He,i=V(e.scaleX,1),a=V(e.scaleY,1),o=e.skewX||0,s=e.skewY||0,c=[];return(t||n)&&c.push(`translate(`+t+`px,`+n+`px)`),r&&c.push(`rotate(`+r+`)`),(i!==1||a!==1)&&c.push(`scale(`+i+`,`+a+`)`),(o||s)&&c.push(`skew(`+li(o*He)+`deg, `+li(s*He)+`deg)`),c.join(` `)}var ki=(function(){return typeof Buffer<`u`&&typeof Buffer.from==`function`?function(e){return Buffer.from(e).toString(`base64`)}:typeof btoa==`function`&&typeof unescape==`function`&&typeof encodeURIComponent==`function`?function(e){return btoa(unescape(encodeURIComponent(e)))}:function(e){return null}})(),Ai=Array.prototype.slice;function ji(e,t,n){return(t-e)*n+e}function Mi(e,t,n,r){for(var i=t.length,a=0;ar?t:e,a=Math.min(n,r),o=i[a-1]||{color:[0,0,0,0],offset:0},s=a;so)r.length=o;else for(var s=a;s=1},e.prototype.getAdditiveTrack=function(){return this._additiveTrack},e.prototype.addKeyframe=function(e,t,n){this._needsSort=!0;var r=this.keyframes,i=r.length,a=!1,o=qi,s=t;if(ce(t)){var c=Bi(t);o=c,(c===1&&!ve(t[0])||c===2&&!ve(t[0][0]))&&(a=!0)}else if(ve(t)&&!Ce(t))o=Vi;else if(z(t))if(!isNaN(+t))o=Vi;else{var l=Qr(t);l&&(s=l,o=Wi)}else if(Se(t)){var u=P({},s);u.colorStops=L(t.colorStops,function(e){return{offset:e.offset,color:Qr(e.color)}}),Ci(t)?o=Gi:wi(t)&&(o=Ki),s=u}i===0?this.valType=o:(o!==this.valType||o===qi)&&(a=!0),this.discrete=this.discrete||a;var d={time:e,value:s,rawValue:t,percent:0};return n&&(d.easing=n,d.easingFunc=ge(n)?n:ur[n]||Lr(n)),r.push(d),d},e.prototype.prepare=function(e,t){var n=this.keyframes;this._needsSort&&n.sort(function(e,t){return e.time-t.time});for(var r=this.valType,i=n.length,a=n[i-1],o=this.discrete,s=Yi(r),c=Ji(r),l=0;l=0&&!(a[l].percent<=t);l--);l=d(l,o-2)}else{for(l=u;lt);l++);l=d(l-1,o-2)}p=a[l+1],f=a[l]}if(f&&p){this._lastFr=l,this._lastFrP=t;var m=p.percent-f.percent,h=m===0?1:d((t-f.percent)/m,1);p.easingFunc&&(h=p.easingFunc(h));var g=n?this._additiveValue:c?Xi:e[s];if((Yi(i)||c)&&!g&&(g=this._additiveValue=[]),this.discrete)e[s]=h<1?f.rawValue:p.rawValue;else if(Yi(i))i===Hi?Mi(g,f[r],p[r],h):Ni(g,f[r],p[r],h);else if(Ji(i)){var _=f[r],v=p[r],y=i===Gi;e[s]={type:y?`linear`:`radial`,x:ji(_.x,v.x,h),y:ji(_.y,v.y,h),colorStops:L(_.colorStops,function(e,t){var n=v.colorStops[t];return{offset:ji(e.offset,n.offset,h),color:zi(Mi([],e.color,n.color,h))}}),global:v.global},y?(e[s].x2=ji(_.x2,v.x2,h),e[s].y2=ji(_.y2,v.y2,h)):e[s].r=ji(_.r,v.r,h)}else if(c)Mi(g,f[r],p[r],h),n||(e[s]=zi(g));else{var b=ji(f[r],p[r],h);n?this._additiveValue=b:e[s]=b}n&&this._addToTarget(e)}}},e.prototype._addToTarget=function(e){var t=this.valType,n=this.propName,r=this._additiveValue;t===Vi?e[n]=e[n]+r:t===Wi?(Qr(e[n],Xi),Pi(Xi,Xi,r,1),e[n]=zi(Xi)):t===Hi?Pi(e[n],e[n],r,1):t===Ui&&Fi(e[n],e[n],r,1)},e}(),Qi=function(){function e(e,t,n,r){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=t,t&&r){re(`Can' use additive animation on looped animation.`);return}this._additiveAnimators=r,this._allowDiscrete=n}return e.prototype.getMaxTime=function(){return this._maxTime},e.prototype.getDelay=function(){return this._delay},e.prototype.getLoop=function(){return this._loop},e.prototype.getTarget=function(){return this._target},e.prototype.changeTarget=function(e){this._target=e},e.prototype.when=function(e,t,n){return this.whenWithKeys(e,t,fe(t),n)},e.prototype.whenWithKeys=function(e,t,n,r){for(var i=this._tracks,a=0;a0&&s.addKeyframe(0,Ri(c),r),this._trackKeys.push(o)}s.addKeyframe(e,Ri(t[o]),r)}return this._maxTime=Math.max(this._maxTime,e),this},e.prototype.pause=function(){this._clip.pause(),this._paused=!0},e.prototype.resume=function(){this._clip.resume(),this._paused=!1},e.prototype.isPaused=function(){return!!this._paused},e.prototype.duration=function(e){return this._maxTime=e,this._force=!0,this},e.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var e=this._doneCbs;if(e)for(var t=e.length,n=0;n0)){this._started=1;for(var t=this,n=[],r=this._maxTime||0,i=0;i1){var o=a.pop();i.addKeyframe(o.time,e[r]),i.prepare(this._maxTime,i.getAdditiveTrack())}}}},e}(),$i=function(){function e(e){e&&(this._$eventProcessor=e)}return e.prototype.on=function(e,t,n,r){this._$handlers||={};var i=this._$handlers;if(typeof t==`function`&&(r=n,n=t,t=null),!n||!e)return this;var a=this._$eventProcessor;t!=null&&a&&a.normalizeQuery&&(t=a.normalizeQuery(t)),i[e]||(i[e]=[]);for(var o=0;o=0:n.inside,y=void 0,b=void 0,x=void 0;v&&this.canBeInsideText()?(y=n.insideFill,b=n.insideStroke,(y==null||y===`auto`)&&(y=this.getInsideTextFill()),(b==null||b===`auto`)&&(b=this.getInsideTextStroke(y),x=!0)):(y=n.outsideFill,b=n.outsideStroke,(y==null||y===`auto`)&&(y=this.getOutsideFill()),(b==null||b===`auto`)&&(b=this.getOutsideStroke(y),x=!0)),y||=`#000`,(y!==g.fill||b!==g.stroke||x!==g.autoStroke||a!==g.align||o!==g.verticalAlign)&&(s=!0,g.fill=y,g.stroke=b,g.autoStroke=x,g.align=a,g.verticalAlign=o,t.setDefaultTextStyle(g)),t.__dirty|=1,s&&t.dirtyStyle(!0)}},e.prototype.canBeInsideText=function(){return!0},e.prototype.getInsideTextFill=function(){return`#fff`},e.prototype.getInsideTextStroke=function(e){return`#000`},e.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?ia:ra},e.prototype.getOutsideStroke=function(e){var t=this.__zr&&this.__zr.getBackgroundColor(),n=typeof t==`string`&&Qr(t);n||=[255,255,255,1];for(var r=n[3],i=this.__zr.isDarkMode(),a=0;a<3;a++)n[a]=n[a]*r+(i?0:255)*(1-r);return n[3]=1,ai(n,`rgba`)},e.prototype.traverse=function(e,t){},e.prototype.attrKV=function(e,t){e===`textConfig`?this.setTextConfig(t):e===`textContent`?this.setTextContent(t):e===`clipPath`?this.setClipPath(t):e===`extra`?(this.extra=this.extra||{},P(this.extra,t)):this[e]=t},e.prototype.hide=function(){this.ignore=!0,this.markRedraw()},e.prototype.show=function(){this.ignore=!1,this.markRedraw()},e.prototype.attr=function(e,t){if(typeof e==`string`)this.attrKV(e,t);else if(B(e))for(var n=fe(e),r=0;r0},e.prototype.getState=function(e){return this.states[e]},e.prototype.ensureState=function(e){var t=this.states;return t[e]||(t[e]={}),t[e]},e.prototype.clearStates=function(e){this.useState(oa,!1,e)},e.prototype.useState=function(e,t,n,r){var i=e===oa;if(!(!this.hasState()&&i)){var a=this.currentStates,o=this.stateTransition;if(!(ae(a,e)>=0&&(t||a.length===1))){var s;if(this.stateProxy&&!i&&(s=this.stateProxy(e)),s||=this.states&&this.states[e],!s&&!i){re(`State `+e+` not exists.`);return}i||this.saveCurrentToNormalState(s);var c=this._textContent,l=ba(this,c,s,r);l&&!this.__inHover&&(this.__inHover=l),this._applyStateObj(e,s,this._normalState,t,Sa(this,n,o),o);var u=this._textGuide;return c&&c.useState(e,t,n,!!l),u&&u.useState(e,t,n,!!l),i?(this.currentStates=[],this._normalState={}):t?this.currentStates.push(e):this.currentStates=[e],this._updateAnimationTargets(),this.markRedraw(),!l&&this.__inHover&&(this.__inHover=0,this.__dirty&=-2),s}}},e.prototype.useStates=function(e,t,n){if(!e.length)this.clearStates();else{var r=[],i=this.currentStates,a=e.length,o=a===i.length;if(o){for(var s=0;s=0){var n=this.currentStates.slice();n.splice(t,1),this.useStates(n)}},e.prototype.replaceState=function(e,t,n){var r=this.currentStates.slice(),i=ae(r,e),a=ae(r,t)>=0;i>=0?a?r.splice(i,1):r[i]=t:n&&!a&&r.push(t),this.useStates(r)},e.prototype.toggleState=function(e,t){t?this.useState(e,!0):this.removeState(e)},e.prototype._mergeStates=function(e){for(var t={},n,r=0;r=0&&t.splice(n,1)}),this.animators.push(e),n&&n.animation.addAnimator(e),n&&n.wakeUp()},e.prototype.updateDuringAnimation=function(e){this.markRedraw()},e.prototype.stopAnimation=function(e,t){for(var n=this.animators,r=n.length,i=[],a=0;a0&&n.during&&a[0].during(function(e,t){n.during(t)});for(var f=0;f0||i.force&&!o.length){var C=void 0,w=void 0,T=void 0;if(s){w={},f&&(C={});for(var b=0;b0}var Ca=`__zr_style_`+Math.round(Math.random()*10),wa={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:`#000`,opacity:1,blend:`source-over`},Ta={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};wa[Ca]=!0;var Ea=[`z`,`z2`,`invisible`],Da=[`invisible`],Oa=function(e){p(t,e);function t(t){return e.call(this,t)||this}return t.prototype._init=function(t){for(var n=fe(t),r=0;r1e-4){s[0]=e-n,s[1]=t-r,c[0]=e+n,c[1]=t+r;return}if(La[0]=Fa(i)*n+e,La[1]=Pa(i)*r+t,Ra[0]=Fa(a)*n+e,Ra[1]=Pa(a)*r+t,l(s,La,Ra),u(c,La,Ra),i%=Ia,i<0&&(i+=Ia),a%=Ia,a<0&&(a+=Ia),i>a&&!o?a+=Ia:ii&&(za[0]=Fa(p)*n+e,za[1]=Pa(p)*r+t,l(s,za,s),u(c,za,c))}var qa={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},Ja=[],Ya=[],Xa=[],Za=[],Qa=[],$a=[],eo=Math.min,to=Math.max,no=Math.cos,ro=Math.sin,io=Math.abs,ao=Math.PI,oo=ao*2,so=typeof Float32Array<`u`,co=[];function lo(e){return Math.round(e/ao*1e8)/1e8%2*ao}function uo(e,t){var n=lo(e[0]);n<0&&(n+=oo);var r=n-e[0],i=e[1];i+=r,!t&&i-n>=oo?i=n+oo:t&&n-i>=oo?i=n-oo:!t&&n>i?i=n+(oo-lo(n-i)):t&&n0&&(this._ux=io(n/ta/e)||0,this._uy=io(n/ta/t)||0)},e.prototype.setDPR=function(e){this.dpr=e},e.prototype.setContext=function(e){this._ctx=e},e.prototype.getContext=function(){return this._ctx},e.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},e.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},e.prototype.moveTo=function(e,t){return this._drawPendingPt(),this.addData(qa.M,e,t),this._ctx&&this._ctx.moveTo(e,t),this._x0=e,this._y0=t,this._xi=e,this._yi=t,this},e.prototype.lineTo=function(e,t){var n=io(e-this._xi),r=io(t-this._yi),i=n>this._ux||r>this._uy;if(this.addData(qa.L,e,t),this._ctx&&i&&this._ctx.lineTo(e,t),i)this._xi=e,this._yi=t,this._pendingPtDist=0;else{var a=n*n+r*r;a>this._pendingPtDist&&(this._pendingPtX=e,this._pendingPtY=t,this._pendingPtDist=a)}return this},e.prototype.bezierCurveTo=function(e,t,n,r,i,a){return this._drawPendingPt(),this.addData(qa.C,e,t,n,r,i,a),this._ctx&&this._ctx.bezierCurveTo(e,t,n,r,i,a),this._xi=i,this._yi=a,this},e.prototype.quadraticCurveTo=function(e,t,n,r){return this._drawPendingPt(),this.addData(qa.Q,e,t,n,r),this._ctx&&this._ctx.quadraticCurveTo(e,t,n,r),this._xi=n,this._yi=r,this},e.prototype.arc=function(e,t,n,r,i,a){this._drawPendingPt(),co[0]=r,co[1]=i,uo(co,a),r=co[0],i=co[1];var o=i-r;return this.addData(qa.A,e,t,n,n,r,o,0,+!a),this._ctx&&this._ctx.arc(e,t,n,r,i,a),this._xi=no(i)*n+e,this._yi=ro(i)*n+t,this},e.prototype.arcTo=function(e,t,n,r,i){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(e,t,n,r,i),this},e.prototype.rect=function(e,t,n,r){return this._drawPendingPt(),this._ctx&&this._ctx.rect(e,t,n,r),this.addData(qa.R,e,t,n,r),this},e.prototype.closePath=function(){this._drawPendingPt(),this.addData(qa.Z);var e=this._ctx,t=this._x0,n=this._y0;return e&&e.closePath(),this._xi=t,this._yi=n,this},e.prototype.fill=function(e){e&&e.fill(),this.toStatic()},e.prototype.stroke=function(e){e&&e.stroke(),this.toStatic()},e.prototype.len=function(){return this._len},e.prototype.setData=function(e){if(this._saveData){var t=e.length;!(this.data&&this.data.length===t)&&so&&(this.data=new Float32Array(t));for(var n=0;n0&&a))for(var o=0;ol.length&&(this._expandData(),l=this.data);for(var u=0;u0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},e.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var e=[],t=0;t11&&(this.data=new Float32Array(e)))}},e.prototype.getBoundingRect=function(){Xa[0]=Xa[1]=Qa[0]=Qa[1]=Number.MAX_VALUE,Za[0]=Za[1]=$a[0]=$a[1]=-Number.MAX_VALUE;var e=this.data,t=0,n=0,r=0,i=0,a;for(a=0;an||io(v)>r||d===t-1)&&(m=Math.sqrt(_*_+v*v),i=h,a=g);break;case qa.C:var y=e[d++],b=e[d++],h=e[d++],g=e[d++],x=e[d++],S=e[d++];m=Or(i,a,y,b,h,g,x,S,10),i=x,a=S;break;case qa.Q:var y=e[d++],b=e[d++],h=e[d++],g=e[d++];m=Fr(i,a,y,b,h,g,10),i=h,a=g;break;case qa.A:var C=e[d++],w=e[d++],T=e[d++],E=e[d++],D=e[d++],O=e[d++],k=O+D;d+=1,p&&(o=no(D)*T+C,s=ro(D)*E+w),m=to(T,E)*eo(oo,Math.abs(O)),i=no(k)*T+C,a=ro(k)*E+w;break;case qa.R:o=i=e[d++],s=a=e[d++];var ee=e[d++],te=e[d++];m=ee*2+te*2;break;case qa.Z:var _=o-i,v=s-a;m=Math.sqrt(_*_+v*v),i=o,a=s}m>=0&&(c[u++]=m,l+=m)}return this._pathLen=l,l},e.prototype.rebuildPath=function(e,t){var n=this.data,r=this._ux,i=this._uy,a=this._len,o,s,c,l,u,d,f=t<1,p,m,h=0,g=0,_,v=0,y,b;if(!(f&&(this._pathSegLen||this._calculateLength(),p=this._pathSegLen,m=this._pathLen,_=t*m,!_)))lo:for(var x=0;x0&&(e.lineTo(y,b),v=0),S){case qa.M:o=c=n[x++],s=l=n[x++],e.moveTo(c,l);break;case qa.L:u=n[x++],d=n[x++];var w=io(u-c),T=io(d-l);if(w>r||T>i){if(f){var E=p[g++];if(h+E>_){var D=(_-h)/E;e.lineTo(c*(1-D)+u*D,l*(1-D)+d*D);break lo}h+=E}e.lineTo(u,d),c=u,l=d,v=0}else{var O=w*w+T*T;O>v&&(y=u,b=d,v=O)}break;case qa.C:var k=n[x++],ee=n[x++],te=n[x++],ne=n[x++],A=n[x++],j=n[x++];if(f){var E=p[g++];if(h+E>_){var D=(_-h)/E;Er(c,k,te,A,D,Ja),Er(l,ee,ne,j,D,Ya),e.bezierCurveTo(Ja[1],Ya[1],Ja[2],Ya[2],Ja[3],Ya[3]);break lo}h+=E}e.bezierCurveTo(k,ee,te,ne,A,j),c=A,l=j;break;case qa.Q:var k=n[x++],ee=n[x++],te=n[x++],ne=n[x++];if(f){var E=p[g++];if(h+E>_){var D=(_-h)/E;Nr(c,k,te,D,Ja),Nr(l,ee,ne,D,Ya),e.quadraticCurveTo(Ja[1],Ya[1],Ja[2],Ya[2]);break lo}h+=E}e.quadraticCurveTo(k,ee,te,ne),c=te,l=ne;break;case qa.A:var re=n[x++],M=n[x++],N=n[x++],P=n[x++],ie=n[x++],F=n[x++],ae=n[x++],oe=!n[x++],se=N>P?N:P,ce=io(N-P)>.001,I=ie+F,L=!1;if(f){var E=p[g++];h+E>_&&(I=ie+F*(_-h)/E,L=!0),h+=E}if(ce&&e.ellipse?e.ellipse(re,M,N,P,ae,ie,I,oe):e.arc(re,M,se,ie,I,oe),L)break lo;C&&(o=no(ie)*N+re,s=ro(ie)*P+M),c=no(I)*N+re,l=ro(I)*P+M;break;case qa.R:o=c=n[x],s=l=n[x+1],u=n[x++],d=n[x++];var le=n[x++],ue=n[x++];if(f){var E=p[g++];if(h+E>_){var de=_-h;e.moveTo(u,d),e.lineTo(u+eo(de,le),d),de-=le,de>0&&e.lineTo(u+le,d+eo(de,ue)),de-=ue,de>0&&e.lineTo(u+to(le-de,0),d+ue),de-=le,de>0&&e.lineTo(u,d+to(ue-de,0));break lo}h+=E}e.rect(u,d,le,ue);break;case qa.Z:if(f){var E=p[g++];if(h+E>_){var D=(_-h)/E;e.lineTo(c*(1-D)+o*D,l*(1-D)+s*D);break lo}h+=E}e.closePath(),c=o,l=s}}},e.prototype.clone=function(){var t=new e,n=this.data;return t.data=n.slice?n.slice():Array.prototype.slice.call(n),t._len=this._len,t},e.prototype.canSave=function(){return!!this._saveData},e.CMD=qa,e.initDefaultProps=(function(){var t=e.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0})(),e}();function po(e,t,n,r,i,a,o){if(i===0)return!1;var s=i,c=0,l=e;if(o>t+s&&o>r+s||oe+s&&a>n+s||at+d&&u>r+d&&u>a+d&&u>s+d||ue+d&&l>n+d&&l>i+d&&l>o+d||lt+l&&c>r+l&&c>a+l||ce+l&&s>n+l&&s>i+l||sn||u+li&&(i+=vo);var f=Math.atan2(c,s);return f<0&&(f+=vo),f>=r&&f<=i||f+vo>=r&&f+vo<=i}function bo(e,t,n,r,i,a){if(a>t&&a>r||ai?s:0}var xo=fo.CMD,So=Math.PI*2,Co=1e-4;function wo(e,t){return Math.abs(e-t)t&&l>r&&l>a&&l>s||l1&&Do(),p=Sr(t,r,a,s,Eo[0]),f>1&&(m=Sr(t,r,a,s,Eo[1]))),f===2?gt&&s>r&&s>a||s=0&&l<=1){for(var u=0,d=kr(t,r,a,l),f=0;fn||s<-n)return 0;var c=Math.sqrt(n*n-s*s);To[0]=-c,To[1]=c;var l=Math.abs(r-i);if(l<1e-4)return 0;if(l>=So-1e-4){r=0,i=So;var u=a?1:-1;return o>=To[0]+e&&o<=To[1]+e?u:0}if(r>i){var d=r;r=i,i=d}r<0&&(r+=So,i+=So);for(var f=0,p=0;p<2;p++){var m=To[p];if(m+e>o){var h=Math.atan2(s,m),u=a?1:-1;h<0&&(h=So+h),(h>=r&&h<=i||h+So>=r&&h+So<=i)&&(h>Math.PI/2&&h1&&(n||(s+=bo(c,l,u,d,r,i))),g&&(c=a[m],l=a[m+1],u=c,d=l),h){case xo.M:u=a[m++],d=a[m++],c=u,l=d;break;case xo.L:if(n){if(po(c,l,a[m],a[m+1],t,r,i))return!0}else s+=bo(c,l,a[m],a[m+1],r,i)||0;c=a[m++],l=a[m++];break;case xo.C:if(n){if(mo(c,l,a[m++],a[m++],a[m++],a[m++],a[m],a[m+1],t,r,i))return!0}else s+=Oo(c,l,a[m++],a[m++],a[m++],a[m++],a[m],a[m+1],r,i)||0;c=a[m++],l=a[m++];break;case xo.Q:if(n){if(ho(c,l,a[m++],a[m++],a[m],a[m+1],t,r,i))return!0}else s+=ko(c,l,a[m++],a[m++],a[m],a[m+1],r,i)||0;c=a[m++],l=a[m++];break;case xo.A:var _=a[m++],v=a[m++],y=a[m++],b=a[m++],x=a[m++],S=a[m++];m+=1;var C=!!(1-a[m++]);f=Math.cos(x)*y+_,p=Math.sin(x)*b+v,g?(u=f,d=p):s+=bo(c,l,f,p,r,i);var w=(r-_)*b/y+_;if(n){if(yo(_,v,b,x,x+S,C,t,w,i))return!0}else s+=Ao(_,v,b,x,x+S,C,w,i);c=Math.cos(x+S)*y+_,l=Math.sin(x+S)*b+v;break;case xo.R:u=c=a[m++],d=l=a[m++];var T=a[m++],E=a[m++];if(f=u+T,p=d+E,n){if(po(u,d,f,d,t,r,i)||po(f,d,f,p,t,r,i)||po(f,p,u,p,t,r,i)||po(u,p,u,d,t,r,i))return!0}else s+=bo(f,d,f,p,r,i),s+=bo(u,p,u,d,r,i);break;case xo.Z:if(n){if(po(c,l,u,d,t,r,i))return!0}else s+=bo(c,l,u,d,r,i);c=u,l=d}}return!n&&!wo(l,d)&&(s+=bo(c,l,u,d,r,i)||0),s!==0}function Mo(e,t,n){return jo(e,0,!1,t,n)}function No(e,t,n,r){return jo(e,t,!0,n,r)}var Po=F({fill:`#000`,stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:`butt`,miterLimit:10,strokeNoScale:!1,strokeFirst:!1},wa),Fo={style:F({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Ta.style)},Io=cr.concat([`invisible`,`culling`,`z`,`z2`,`zlevel`,`parent`]),Lo=function(e){p(t,e);function t(t){return e.call(this,t)||this}return t.prototype.update=function(){var n=this;e.prototype.update.call(this);var r=this.style;if(r.decal){var i=this._decalEl=this._decalEl||new t;i.buildPath===t.prototype.buildPath&&(i.buildPath=function(e){n.buildPath(e,n.shape)}),i.silent=!0;var a=i.style;for(var o in r)a[o]!==r[o]&&(a[o]=r[o]);a.fill=r.fill?r.decal:null,a.decal=null,a.shadowColor=null,r.strokeFirst&&(a.stroke=null);for(var s=0;s.5?ra:t>.2?aa:ia}if(e)return ia}return ra},t.prototype.getInsideTextStroke=function(e){var t=this.style.fill;if(z(t)){var n=this.__zr;if(!!(n&&n.isDarkMode())==oi(e,0)<.4)return t}},t.prototype.buildPath=function(e,t,n){},t.prototype.pathUpdated=function(){this.__dirty&=-5},t.prototype.getUpdatedPathProxy=function(e){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,e),this.path},t.prototype.createPathProxy=function(){this.path=new fo(!1)},t.prototype.hasStroke=function(){var e=this.style,t=e.stroke;return!(t==null||t===`none`||!(e.lineWidth>0))},t.prototype.hasFill=function(){var e=this.style.fill;return e!=null&&e!==`none`},t.prototype.getBoundingRect=function(){var e=this._rect,t=this.style,n=!e;if(n){var r=!1;this.path||(r=!0,this.createPathProxy());var i=this.path;(r||this.__dirty&4)&&(i.beginPath(),this.buildPath(i,this.shape,!1),this.pathUpdated()),e=i.getBoundingRect()}if(this._rect=e,this.hasStroke()&&this.path&&this.path.len()>0){var a=this._rectStroke||=e.clone();if(this.__dirty||n){a.copy(e);var o=t.strokeNoScale?this.getLineScale():1,s=t.lineWidth;if(!this.hasFill()){var c=this.strokeContainThreshold;s=Math.max(s,c??4)}o>1e-10&&(a.width+=s/o,a.height+=s/o,a.x-=s/o/2,a.y-=s/o/2)}return a}return e},t.prototype.contain=function(e,t){var n=this.transformCoordToLocal(e,t),r=this.getBoundingRect(),i=this.style;if(e=n[0],t=n[1],r.contain(e,t)){var a=this.path;if(this.hasStroke()){var o=i.lineWidth,s=i.strokeNoScale?this.getLineScale():1;if(s>1e-10&&(this.hasFill()||(o=Math.max(o,this.strokeContainThreshold)),No(a,o/s,e,t)))return!0}if(this.hasFill())return Mo(a,e,t)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=4,this._rect&&=null,this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},t.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},t.prototype.animateShape=function(e){return this.animate(`shape`,e)},t.prototype.updateDuringAnimation=function(e){e===`style`?this.dirtyStyle():e===`shape`?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(t,n){t===`shape`?this.setShape(n):e.prototype.attrKV.call(this,t,n)},t.prototype.setShape=function(e,t){var n=this.shape;return n||=this.shape={},typeof e==`string`?n[e]=t:P(n,e),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&4)},t.prototype.createStyle=function(e){return ze(Po,e)},t.prototype._innerSaveToNormal=function(t){e.prototype._innerSaveToNormal.call(this,t);var n=this._normalState;t.shape&&!n.shape&&(n.shape=P({},this.shape))},t.prototype._applyStateObj=function(t,n,r,i,a,o){if(e.prototype._applyStateObj.call(this,t,n,r,i,a,o),this.__inHover!==1){var s=!(n&&i),c;if(n&&n.shape?a?i?c=n.shape:(c=P({},r.shape),P(c,n.shape)):(c=P({},i?this.shape:r.shape),P(c,n.shape)):s&&(c=r.shape),c)if(a){this.shape=P({},this.shape);for(var l={},u=fe(c),d=0;di&&(d=s+c,s*=i/d,c*=i/d),l+u>i&&(d=l+u,l*=i/d,u*=i/d),c+l>a&&(d=c+l,c*=a/d,l*=a/d),s+u>a&&(d=s+u,s*=a/d,u*=a/d),e.moveTo(n+s,r),e.lineTo(n+i-c,r),c!==0&&e.arc(n+i-c,r+c,c,-Math.PI/2,0),e.lineTo(n+i,r+a-l),l!==0&&e.arc(n+i-l,r+a-l,l,0,Math.PI/2),e.lineTo(n+u,r+a),u!==0&&e.arc(n+u,r+a-u,u,Math.PI/2,Math.PI),e.lineTo(n,r+s),s!==0&&e.arc(n+s,r+s,s,Math.PI,Math.PI*1.5),e.closePath()}var Go=Math.round;function Ko(e,t,n){if(t){var r=t.x1,i=t.x2,a=t.y1,o=t.y2;e.x1=r,e.x2=i,e.y1=a,e.y2=o;var s=n&&n.lineWidth;return s?(Go(r*2)===Go(i*2)&&(e.x1=e.x2=Jo(r,s,!0)),Go(a*2)===Go(o*2)&&(e.y1=e.y2=Jo(a,s,!0)),e):e}}function qo(e,t,n){if(t){var r=t.x,i=t.y,a=t.width,o=t.height;e.x=r,e.y=i,e.width=a,e.height=o;var s=n&&n.lineWidth;return s?(e.x=Jo(r,s,!0),e.y=Jo(i,s,!0),e.width=Math.max(Jo(r+a,s,!1)-e.x,a===0?0:1),e.height=Math.max(Jo(i+o,s,!1)-e.y,o===0?0:1),e):e}}function Jo(e,t,n){if(!t)return e;var r=Go(e*2);return(r+Go(t))%2==0?r/2:(r+(n?1:-1))/2}var Yo=function(){function e(){this.x=0,this.y=0,this.width=0,this.height=0}return e}(),Xo={},Zo=function(e){p(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new Yo},t.prototype.buildPath=function(e,t){var n,r,i,a;if(this.subPixelOptimize){var o=qo(Xo,t,this.style);n=o.x,r=o.y,i=o.width,a=o.height,o.r=t.r,t=o}else n=t.x,r=t.y,i=t.width,a=t.height;t.r?Wo(e,t):e.rect(n,r,i,a)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(Lo);Zo.prototype.type=`rect`;var Qo={fill:`#000`},$o=2,es={},ts={style:F({fill:!0,stroke:!0,fillOpacity:!0,strokeOpacity:!0,lineWidth:!0,fontSize:!0,lineHeight:!0,width:!0,height:!0,textShadowColor:!0,textShadowBlur:!0,textShadowOffsetX:!0,textShadowOffsetY:!0,backgroundColor:!0,padding:!0,borderColor:!0,borderWidth:!0,borderRadius:!0},Ta.style)},ns=function(e){p(t,e);function t(t){var n=e.call(this)||this;return n.type=`text`,n._children=[],n._defaultStyle=Qo,n.attr(t),n}return t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){e.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var t=0;t0,T=0;T=0&&(D=y[E],D.align===`right`);)this._placeToken(D,e,x,m,T,`right`,g),S-=D.width,T-=D.width,E--;for(w+=(s-(w-p)-(h-T)-S)/2;C<=E;)D=y[C],this._placeToken(D,e,x,m,w+D.width/2,`center`,g),w+=D.width,C++;m+=x}},t.prototype._placeToken=function(e,t,n,r,i,a,o){var s=t.rich[e.styleName]||{};s.text=e.text;var c=e.verticalAlign,l=r+n/2;c===`top`?l=r+e.height/2:c===`bottom`&&(l=r+n-e.height/2),!e.isLineHolder&&hs(s)&&this._renderBackground(s,t,a===`right`?i-e.width:a===`center`?i-e.width/2:i,l-e.height/2,e.width,e.height);var u=!!s.backgroundColor,d=e.textPadding;d&&(i=ps(i,a,d),l-=e.height/2-d[0]-e.innerHeight/2);var f=this._getOrCreateChild(zo),p=f.createStyle();f.useStyle(p);var m=this._defaultStyle,h=!1,g=0,_=!1,v=fs(`fill`in s?s.fill:`fill`in t?t.fill:(h=!0,m.fill)),y=ds(`stroke`in s?s.stroke:`stroke`in t?t.stroke:!u&&!o&&(!m.autoStroke||h)?(g=$o,_=!0,m.stroke):null),b=s.textShadowBlur>0||t.textShadowBlur>0;p.text=e.text,p.x=i,p.y=l,b&&(p.shadowBlur=s.textShadowBlur||t.textShadowBlur||0,p.shadowColor=s.textShadowColor||t.textShadowColor||`transparent`,p.shadowOffsetX=s.textShadowOffsetX||t.textShadowOffsetX||0,p.shadowOffsetY=s.textShadowOffsetY||t.textShadowOffsetY||0),p.textAlign=a,p.textBaseline=`middle`,p.font=e.font||`12px sans-serif`,p.opacity=Te(s.opacity,t.opacity,1),ss(p,s),y&&(p.lineWidth=Te(s.lineWidth,t.lineWidth,g),p.lineDash=V(s.lineDash,t.lineDash),p.lineDashOffset=t.lineDashOffset||0,p.stroke=y),v&&(p.fill=v),f.setBoundingRect(Xn(p,e.contentWidth,e.contentHeight,_?0:null))},t.prototype._renderBackground=function(e,t,n,r,i,a){var o=e.backgroundColor,s=e.borderWidth,c=e.borderColor,l=o&&o.image,u=o&&!l,d=e.borderRadius,f=this,p,m;if(u||e.lineHeight||s&&c){p=this._getOrCreateChild(Zo),p.useStyle(p.createStyle()),p.style.fill=null;var h=p.shape;h.x=n,h.y=r,h.width=i,h.height=a,h.r=d,p.dirtyShape()}if(u){var g=p.style;g.fill=o||null,g.fillOpacity=V(e.fillOpacity,1)}else if(l){m=this._getOrCreateChild(Uo),m.onload=function(){f.dirtyStyle()};var _=m.style;_.image=o.image,_.x=n,_.y=r,_.width=i,_.height=a}if(s&&c){var g=p.style;g.lineWidth=s,g.stroke=c,g.strokeOpacity=V(e.strokeOpacity,1),g.lineDash=e.borderDash,g.lineDashOffset=e.borderDashOffset||0,p.strokeContainThreshold=0,p.hasFill()&&p.hasStroke()&&(g.strokeFirst=!0,g.lineWidth*=2)}var v=(p||m).style;v.shadowBlur=e.shadowBlur||0,v.shadowColor=e.shadowColor||`transparent`,v.shadowOffsetX=e.shadowOffsetX||0,v.shadowOffsetY=e.shadowOffsetY||0,v.opacity=Te(e.opacity,t.opacity,1)},t.makeFont=function(e){var t=``;return cs(e)&&(t=[e.fontStyle,e.fontWeight,os(e.fontSize),e.fontFamily||`sans-serif`].join(` `)),t&&ke(t)||e.textFont||e.font},t}(Oa),rs={left:!0,right:1,center:1},is={top:1,bottom:1,middle:1},as=[`fontStyle`,`fontWeight`,`fontSize`,`fontFamily`];function os(e){return typeof e==`string`&&(e.indexOf(`px`)!==-1||e.indexOf(`rem`)!==-1||e.indexOf(`em`)!==-1)?e:isNaN(+e)?`12px`:e+`px`}function ss(e,t){for(var n=0;n0){if(e<=i)return o;if(e>=a)return s}else if(e>=i)return o;else if(e<=a)return s}else{if(e===i)return o;if(e===a)return s}return(e-i)/c*l+o}var js=Ms;function Ms(e,t,n){switch(e){case`center`:case`middle`:e=`50%`;break;case`left`:case`top`:e=`0%`;break;case`right`:case`bottom`:e=`100%`}return Ns(e,t,n)}function Ns(e,t,n){return z(e)?Fs(e)?parseFloat(e)/100*t+(n||0):parseFloat(e):e==null?NaN:+e}function Ps(e){return z(e)&&Fs(e)}function Fs(e){return!!vs(e).match(/%$/)}function Is(e,t,n){return isNaN(t)?n?``+e:+e:(t=ys(bs(0,t),_s),e=(+e).toFixed(t),n?e:+e)}function Ls(e){return e.sort(function(e,t){return e-t}),e}function Rs(e){if(e=+e,isNaN(e))return 0;if(e>1e-14){for(var t=1,n=0;n<15;n++,t*=10)if(Ss(e*t)/t===e)return n}return zs(e)}function zs(e){var t=e.toString().toLowerCase(),n=t.indexOf(`e`),r=n>0?+t.slice(n+1):0,i=n>0?n:t.length,a=t.indexOf(`.`);return bs(0,(a<0?0:i-1-a)-r)}function Bs(e,t,n){var r=xs(e[1]-e[0]);if(!isFinite(r)||r===0)return NaN;var i=Es(2*xs(n||1)*xs(r))/Ds,a=Es(xs(t))/Ds,o=bs(0,ws(-i+a));return isFinite(o)||(o=NaN),o}function Vs(e,t){var n=bs(Rs(e),Rs(t)),r=e+t;return n>_s?r:Is(r,n)}Ts(2,53)-1;function Hs(e){var t=Os*2;return(e%t+t)%t}function Us(e){return e>-gs&&e=10&&t++,t}function Js(e,t){var n=qs(e),r=Ts(10,n),i=e/r;return e=(t===2?1:t?i<1.5?1:i<2.5?2:i<4?3:i<7?5:10:i<1?1:i<2?2:i<3?3:i<5?5:10)*r,Is(e,-n)}function Ys(e){e.sort(function(e,t){return s(e,t,0)?-1:1});for(var t=-1/0,n=1,r=0;r0?e.length:0),this.item=null,this.key=NaN,this},e.prototype.next=function(){return(this._step>0?this._idx=this._end)&&(this.item=this._list[this._idx],this.key=this._idx+=this._step,!0)},e})();function Hc(){return[1/0,-1/0]}function Uc(e,t){qc(t)&&(te[1]&&(e[1]=t))}function Wc(e,t){qc(t)&&te[1]&&(e[1]=t)}function Kc(e,t){Jc(t[0],t[1])&&(t[0]e[1]&&(e[1]=t[1]))}function qc(e){return e!=null&&isFinite(e)}function Jc(e,t){return qc(e)&&qc(t)&&e<=t}function Yc(e){var t=e[1]-e[0];return isFinite(t)&&t>=0}function Xc(e){Jc(e[0],e[1])&&e[0]>e[1]&&(e[0]=e[1])}function Zc(){var e=`__ec_once_`+Qc++;return function(t,n){Be(t,e)||(t[e]=1,n())}}var Qc=Qs();function $c(e,t,n){var r=Le(),i=0;I(e,function(a){var o=t(a),s=r.get(o)||0;n&&n(a,s),!s&&!n&&(e[i++]=a),r.set(o,s+1)}),n||(e.length=i)}function el(e){return e.value+``}function tl(e){return e+``}function nl(e,t){return V(t,!0)?e.seriesIndex+2:0}function rl(e,t,n){var r=e.getData().count();return{progressiveRender:n.progressiveEnabled&&t.incrementalPrepareRender&&r>=n.threshold,large:e.get(`large`)&&r>=e.get(`largeThreshold`),modDataCount:e.get(`progressiveChunkMode`)===`mod`?e.getData().count():null}}function il(e,t){return{seriesType:e,overallReset:t}}function al(e){return{overallReset:e}}var ol=jc(),sl=function(e,t,n,r){if(r){var i=ol(r);i.dataIndex=n,i.dataType=t,i.seriesIndex=e,i.ssrType=`chart`,r.type===`group`&&r.traverse(function(r){var i=ol(r);i.seriesIndex=e,i.dataIndex=n,i.dataType=t,i.ssrType=`chart`})}},cl=`series`,ll=Le([`tooltip`,`label`,`itemName`,`itemId`,`itemGroupId`,`itemChildGroupId`,`seriesName`]),ul=`original`,dl=`arrayRows`,fl=`objectRows`,pl=`keyedColumns`,ml=`typedArray`,hl=`unknown`,gl=`column`,_l=`Roam`,vl=[`getDom`,`getZr`,`getWidth`,`getHeight`,`getDevicePixelRatio`,`dispatchAction`,`isSSR`,`isDisposed`,`on`,`off`,`getDataURL`,`getConnectedDataURL`,`getOption`,`getId`,`updateLabelLayout`],yl=function(){function e(e){I(vl,function(t){this[t]=me(e[t],e)},this)}return e}();function bl(e,t){return t.mainType===`series`?e.getViewOfSeriesModel(t):e.getViewOfComponentModel(t)}var xl=1,Sl={},Cl=jc(),wl=jc(),Tl=[`emphasis`,`blur`,`select`],El=[`normal`,`emphasis`,`blur`,`select`],Dl=`highlight`,Ol=`downplay`,kl=`select`,Al=`unselect`,jl=`toggleSelect`,Ml=`selectchanged`;function Nl(e){return e!=null&&e!==`none`}function Pl(e,t,n){e.onHoverStateChange&&(e.hoverState||0)!==n&&e.onHoverStateChange(t),e.hoverState=n}function Fl(e){Pl(e,`emphasis`,2)}function Il(e){e.hoverState===2&&Pl(e,`normal`,0)}function Ll(e){Pl(e,`blur`,1)}function Rl(e){e.hoverState===1&&Pl(e,`normal`,0)}function zl(e){e.selected=!0}function Bl(e){e.selected=!1}function Vl(e,t,n){t(e,n)}function Hl(e,t,n){Vl(e,t,n),e.isGroup&&e.traverse(function(e){Vl(e,t,n)})}function Ul(e,t,n,r){for(var i=e.style,a={},o=0;o=0,a=!1;if(e instanceof Lo){var o=Cl(e),s=i&&o.selectFill||o.normalFill,c=i&&o.selectStroke||o.normalStroke;if(Nl(s)||Nl(c)){r||={};var l=r.style||{};l.fill===`inherit`?(a=!0,r=P({},r),l=P({},l),l.fill=s):!Nl(l.fill)&&Nl(s)?(a=!0,r=P({},r),l=P({},l),l.fill=ci(s)):!Nl(l.stroke)&&Nl(c)&&(a||(r=P({},r),l=P({},l)),l.stroke=ci(c)),r.style=l}}if(r&&r.z2==null){a||(r=P({},r));var u=e.z2EmphasisLift;r.z2=e.z2+(u??10)}return r}function Gl(e,t,n){if(n&&n.z2==null){n=P({},n);var r=e.z2SelectLift;n.z2=e.z2+(r??9)}return n}function Kl(e,t,n){var r=ae(e.currentStates,t)>=0,i=e.style.opacity,a=r?null:Ul(e,[`opacity`],t,{opacity:1});n||={};var o=n.style||{};return o.opacity??(n=P({},n),o=P({opacity:r?i:a.opacity*.1},o),n.style=o),n}function ql(e,t){var n=this.states[e];if(this.style){if(e===`emphasis`)return Wl(this,e,t,n);if(e===`blur`)return Kl(this,e,n);if(e===`select`)return Gl(this,e,n)}return n}function Jl(e){e.stateProxy=ql;var t=e.getTextContent(),n=e.getTextGuideLine();t&&(t.stateProxy=ql),n&&(n.stateProxy=ql)}function Yl(e,t){!ru(e,t)&&!e.__highByOuter&&Hl(e,Fl)}function Xl(e,t){!ru(e,t)&&!e.__highByOuter&&Hl(e,Il)}function Zl(e,t){e.__highByOuter|=1<<(t||0),Hl(e,Fl)}function Ql(e,t){!(e.__highByOuter&=~(1<<(t||0)))&&Hl(e,Il)}function $l(e){Hl(e,Ll)}function eu(e){Hl(e,Rl)}function tu(e){Hl(e,zl)}function nu(e){Hl(e,Bl)}function ru(e,t){return e.__highDownSilentOnTouch&&t.zrByTouch}function iu(e){var t=e.getModel(),n=[],r=[];t.eachComponent(function(t,i){var a=wl(i),o=bl(e,i),s=t===`series`;!s&&r.push(o),a.isBlured&&(o.group.traverse(function(e){Rl(e)}),s&&n.push(i)),a.isBlured=!1}),I(r,function(e){e&&e.toggleBlurSeries&&e.toggleBlurSeries(n,!1,t)})}function au(e,t,n,r){var i=r.getModel();n||=`coordinateSystem`;function a(e,t){for(var n=0;n0){var a={dataIndex:i,seriesIndex:e.seriesIndex};r!=null&&(a.dataType=r),t.push(a)}})}),t}function mu(e,t,n){xu(e,!0),Hl(e,Jl),_u(e,t,n)}function hu(e){xu(e,!1)}function gu(e,t,n,r){r?hu(e):mu(e,t,n)}function _u(e,t,n){var r=ol(e);t==null?r.focus&&=null:(r.focus=t,r.blurScope=n)}var vu=[`emphasis`,`blur`,`select`],yu={itemStyle:`getItemStyle`,lineStyle:`getLineStyle`,areaStyle:`getAreaStyle`};function bu(e,t,n,r){n||=`itemStyle`;for(var i=0;i1&&(o*=Mu(m),s*=Mu(m));var h=(i===a?-1:1)*Mu((o*o*(s*s)-o*o*(p*p)-s*s*(f*f))/(o*o*(p*p)+s*s*(f*f)))||0,g=h*o*p/s,_=h*-s*f/o,v=(e+n)/2+Pu(d)*g-Nu(d)*_,y=(t+r)/2+Nu(d)*g+Pu(d)*_,b=Ru([1,0],[(f-g)/o,(p-_)/s]),x=[(f-g)/o,(p-_)/s],S=[(-1*f-g)/o,(-1*p-_)/s],C=Ru(x,S);if(Lu(x,S)<=-1&&(C=Fu),Lu(x,S)>=1&&(C=0),C<0){var w=Math.round(C/Fu*1e6)/1e6;C=Fu*2+w%2*Fu}u.addData(l,v,y,o,s,b,C,d,a)}var Bu=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,Vu=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function Hu(e){var t=new fo;if(!e)return t;var n=0,r=0,i=n,a=r,o,s=fo.CMD,c=e.match(Bu);if(!c)return t;for(var l=0;l=0&&(n.splice(r,0,e),this._doAdd(e))}return this},t.prototype.replace=function(e,t){var n=ae(this._children,e);return n>=0&&this.replaceAt(t,n),this},t.prototype.replaceAt=function(e,t){var n=this._children,r=n[t];if(e&&e!==this&&e.parent!==this&&e!==r){n[t]=e,r.parent=null;var i=this.__zr;i&&r.removeSelfFromZr(i),this._doAdd(e)}return this},t.prototype._doAdd=function(e){e.parent&&e.parent.remove(e),e.parent=this;var t=this.__zr;t&&t!==e.__zr&&e.addSelfToZr(t),t&&t.refresh()},t.prototype.remove=function(e){var t=this.__zr,n=this._children,r=ae(n,e);return r<0?this:(n.splice(r,1),e.parent=null,t&&e.removeSelfFromZr(t),t&&t.refresh(),this)},t.prototype.removeAll=function(){for(var e=this._children,t=this.__zr,n=0;nee*ee+te*te&&(w=E,T=D),{cx:w,cy:T,x0:-u,y0:-d,x1:w*(i/x-1),y1:T*(i/x-1)}}function pd(e){var t;if(R(e)){var n=e.length;if(!n)return e;t=n===1?[e[0],e[0],0,0]:n===2?[e[0],e[0],e[1],e[1]]:n===3?e.concat(e[2]):e}else t=[e,e,e,e];return t}function md(e,t){var n,r=cd(t.r,0),i=cd(t.r0||0,0),a=r>0;if(!(!a&&!(i>0))){if(a||(r=i,i=0),i>r){var o=r;r=i,i=o}var s=t.startAngle,c=t.endAngle;if(!(isNaN(s)||isNaN(c))){var l=t.cx,u=t.cy,d=!!t.clockwise,f=od(c-s),p=f>td&&f%td;if(p>ud&&(f=p),!(r>ud))e.moveTo(l,u);else if(f>td-ud)e.moveTo(l+r*rd(s),u+r*nd(s)),e.arc(l,u,r,s,c,!d),i>ud&&(e.moveTo(l+i*rd(c),u+i*nd(c)),e.arc(l,u,i,c,s,d));else{var m=void 0,h=void 0,g=void 0,_=void 0,v=void 0,y=void 0,b=void 0,x=void 0,S=void 0,C=void 0,w=void 0,T=void 0,E=void 0,D=void 0,O=void 0,k=void 0,ee=r*rd(s),te=r*nd(s),ne=i*rd(c),A=i*nd(c),j=f>ud;if(j){var re=t.cornerRadius;re&&(n=pd(re),m=n[0],h=n[1],g=n[2],_=n[3]);var M=od(r-i)/2;if(v=ld(M,g),y=ld(M,_),b=ld(M,m),x=ld(M,h),w=S=cd(v,y),T=C=cd(b,x),(S>ud||C>ud)&&(E=r*rd(c),D=r*nd(c),O=i*rd(s),k=i*nd(s),fud){var ce=ld(g,w),I=ld(_,w),L=fd(O,k,ee,te,r,ce,d),le=fd(E,D,ne,A,r,I,d);e.moveTo(l+L.cx+L.x0,u+L.cy+L.y0),w0&&e.arc(l+L.cx,u+L.cy,ce,ad(L.y0,L.x0),ad(L.y1,L.x1),!d),e.arc(l,u,r,ad(L.cy+L.y1,L.cx+L.x1),ad(le.cy+le.y1,le.cx+le.x1),!d),I>0&&e.arc(l+le.cx,u+le.cy,I,ad(le.y1,le.x1),ad(le.y0,le.x0),!d))}else e.moveTo(l+ee,u+te),e.arc(l,u,r,s,c,!d);if(!(i>ud)||!j)e.lineTo(l+ne,u+A);else if(T>ud){var ce=ld(m,T),I=ld(h,T),L=fd(ne,A,E,D,i,-I,d),le=fd(ee,te,O,k,i,-ce,d);e.lineTo(l+L.cx+L.x0,u+L.cy+L.y0),T0&&e.arc(l+L.cx,u+L.cy,I,ad(L.y0,L.x0),ad(L.y1,L.x1),!d),e.arc(l,u,i,ad(L.cy+L.y1,L.cx+L.x1),ad(le.cy+le.y1,le.cx+le.x1),d),ce>0&&e.arc(l+le.cx,u+le.cy,ce,ad(le.y1,le.x1),ad(le.y0,le.x0),!d))}else e.lineTo(l+ne,u+A),e.arc(l,u,i,c,s,d)}e.closePath()}}}var hd=function(){function e(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0,this.cornerRadius=0}return e}(),gd=function(e){p(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new hd},t.prototype.buildPath=function(e,t){md(e,t)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(Lo);gd.prototype.type=`sector`;var _d=function(){function e(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return e}(),vd=function(e){p(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new _d},t.prototype.buildPath=function(e,t){var n=t.cx,r=t.cy,i=Math.PI*2;e.moveTo(n+t.r,r),e.arc(n,r,t.r,0,i,!1),e.moveTo(n+t.r0,r),e.arc(n,r,t.r0,0,i,!0)},t}(Lo);vd.prototype.type=`ring`;function yd(e,t,n,r){var i=[],a=[],o=[],s=[],c,l,u,d;if(r){u=[1/0,1/0],d=[-1/0,-1/0];for(var f=0,p=e.length;f=2){if(r){var a=yd(i,r,n,t.smoothConstraint);e.moveTo(i[0][0],i[0][1]);for(var o=i.length,s=0;s<(n?o:o-1);s++){var c=a[s*2],l=a[s*2+1],u=i[(s+1)%o];e.bezierCurveTo(c[0],c[1],l[0],l[1],u[0],u[1])}}else{e.moveTo(i[0][0],i[0][1]);for(var s=1,d=i.length;sHd[1]){if(i=!1,Ud.negativeSize||n)return i;var s=Bd(Hd[0]-Vd[1]),c=Bd(Vd[0]-Hd[1]);Rd(s,c)>Gd.len()&&(s=c||!Ud.bidirectional)&&(Ut.scale(Wd,o,-c*r),Ud.useDir&&Ud.calcDirMTV()))}}return i},e.prototype._getProjMinMaxOnAxis=function(e,t,n){for(var r=this._axes[e],i=this._origin,a=t[0].dot(r)+i[e],o=a,s=a,c=1;c0){var d=u.duration,f=u.delay,p=u.easing,m={duration:d,delay:f||0,easing:p,done:a,force:!!a||!!o,setToFinal:!l,scope:e,during:o};s?t.animateFrom(n,m):t.animateTo(n,m)}else t.stopAnimation(),!s&&t.attr(n),o&&o(1),a&&a()}function Qd(e,t,n,r,i,a){Zd(`update`,e,t,n,r,i,a)}function $d(e,t,n,r,i,a){Zd(`enter`,e,t,n,r,i,a)}function ef(e){if(!e.__zr)return!0;for(var t=0;tNd,BezierCurve:()=>jd,BoundingRect:()=>rn,Circle:()=>Zu,CompoundPath:()=>Pd,Ellipse:()=>$u,Group:()=>Yu,HOVER_LAYER_FOR_INCREMENTAL:()=>2,HOVER_LAYER_FROM_THRESHOLD:()=>1,HOVER_LAYER_NO:()=>0,Image:()=>Uo,IncrementalDisplayable:()=>Jd,Line:()=>Dd,LinearGradient:()=>Id,OrientedBoundingRect:()=>Kd,Path:()=>Lo,Point:()=>Ut,Polygon:()=>Sd,Polyline:()=>wd,RadialGradient:()=>Ld,Rect:()=>Zo,Ring:()=>vd,Sector:()=>gd,Text:()=>ns,WH:()=>lf,XY:()=>cf,applyTransform:()=>wf,calcZ2Range:()=>qf,clipPointsByRect:()=>kf,clipRectByRect:()=>Af,createIcon:()=>jf,decomposeTransform:()=>Zf,ensureCopyRect:()=>Wf,ensureCopyTransform:()=>Gf,expandOrShrinkRect:()=>If,extendPath:()=>ff,extendShape:()=>uf,getCurrentCanvasPainter:()=>$f,getShapeClass:()=>mf,getTransform:()=>Cf,groupTransition:()=>Of,initProps:()=>$d,isBoundingRectAxisAligned:()=>Hf,isElementRemoved:()=>ef,lineLineIntersect:()=>Nf,linePolygonIntersect:()=>Mf,makeImage:()=>gf,makePath:()=>hf,mergePath:()=>vf,payloadDisableAnimation:()=>Xf,registerShape:()=>pf,removeElement:()=>tf,removeElementWithFadeOut:()=>rf,resizePath:()=>yf,retrieveZInfo:()=>Kf,setTooltipConfig:()=>zf,subPixelOptimize:()=>Sf,subPixelOptimizeLine:()=>bf,subPixelOptimizeRect:()=>xf,transformDirection:()=>Tf,traverseElements:()=>Vf,traverseUpdateZ:()=>Jf,updateProps:()=>Qd}),sf={},cf=[`x`,`y`],lf=[`width`,`height`];function uf(e){return Lo.extend(e)}var df=qu;function ff(e,t){return df(e,t)}function pf(e,t){sf[e]=t}function mf(e){if(sf.hasOwnProperty(e))return sf[e]}function hf(e,t,n,r){var i=Ku(e,t);return n&&(r===`center`&&(n=_f(n,i.getBoundingRect())),yf(i,n)),i}function gf(e,t,n){var r=new Uo({style:{image:e,x:t.x,y:t.y,width:t.width,height:t.height},onload:function(e){if(n===`center`){var i={width:e.width,height:e.height};r.setStyle(_f(t,i))}}});return r}function _f(e,t){var n=t.width/t.height,r=e.height*n,i;r<=e.width?i=e.height:(r=e.width,i=r/n);var a=e.x+e.width/2,o=e.y+e.height/2;return{x:a-r/2,y:o-i/2,width:r,height:i}}var vf=Ju;function yf(e,t){if(e.applyTransform){var n=e.getBoundingRect().calculateTransform(t);e.applyTransform(n)}}function bf(e,t){return Ko(e,e,{lineWidth:t}),e}function xf(e,t){return qo(e,e,t),e}var Sf=Jo;function Cf(e,t){for(var n=vt([]);e&&e!==t;)bt(n,e.getLocalTransform(),n),e=e.parent;return n}function wf(e,t,n){return t&&!ce(t)&&(t=ar.getLocalTransform(t)),n&&(t=wt([],t)),Bt([],e,t)}function Tf(e,t,n){var r=t[4]===0||t[5]===0||t[0]===0?1:xs(2*t[4]/t[0]),i=t[4]===0||t[5]===0||t[2]===0?1:xs(2*t[4]/t[2]),a=[e===`left`?-r:e===`right`?r:0,e===`top`?-i:e===`bottom`?i:0];return a=wf(a,t,n),xs(a[0])>xs(a[1])?a[0]>0?`right`:`left`:a[1]>0?`bottom`:`top`}function Ef(e){return!e.isGroup}function Df(e){return e.shape!=null}function Of(e,t,n){if(!e||!t)return;function r(e){var t={};return e.traverse(function(e){Ef(e)&&e.anid&&(t[e.anid]=e)}),t}function i(e){var t={x:e.x,y:e.y,rotation:e.rotation};return Df(e)&&(t.shape=M(e.shape)),t}var a=r(e);t.traverse(function(e){if(Ef(e)&&e.anid){var t=a[e.anid];if(t){var r=i(e);e.attr(i(t)),Qd(e,r,n,ol(e).dataIndex)}}})}function kf(e,t){return L(e,function(e){var n=e[0];n=bs(n,t.x),n=ys(n,t.x+t.width);var r=e[1];return r=bs(r,t.y),r=ys(r,t.y+t.height),[n,r]})}function Af(e,t){var n=bs(e.x,t.x),r=ys(e.x+e.width,t.x+t.width),i=bs(e.y,t.y),a=ys(e.y+e.height,t.y+t.height);if(r>=n&&a>=i)return{x:n,y:i,width:r-n,height:a-i}}function jf(e,t,n){var r=P({rectHover:!0},t),i=r.style={strokeNoScale:!0};if(n||={x:-1,y:-1,width:2,height:2},e)return e.indexOf(`image://`)===0?(i.image=e.slice(8),F(i,n),new Uo(r)):hf(e.replace(`path://`,``),r,n,`center`)}function Mf(e,t,n,r,i){for(var a=0,o=i[i.length-1];a1)return!1;var g=Pf(p,m,u,d)/f;return!(g<0||g>1)}function Pf(e,t,n,r){return e*r-n*t}function Ff(e){return e<=1e-6&&e>=-1e-6}function If(e,t,n,r,i){return t==null?e:(ve(t)?Lf[0]=Lf[1]=Lf[2]=Lf[3]=t:(Lf[0]=t[0],Lf[1]=t[1],Lf[2]=t[2],Lf[3]=t[3]),r&&(Lf[0]=bs(0,Lf[0]),Lf[1]=bs(0,Lf[1]),Lf[2]=bs(0,Lf[2]),Lf[3]=bs(0,Lf[3])),n&&(Lf[0]=-Lf[0],Lf[1]=-Lf[1],Lf[2]=-Lf[2],Lf[3]=-Lf[3]),Rf(e,Lf,`x`,`width`,3,1,i&&i[0]||0),Rf(e,Lf,`y`,`height`,0,2,i&&i[1]||0),e)}var Lf=[0,0,0,0];function Rf(e,t,n,r,i,a,o){var s=t[a]+t[i],c=e[r];e[r]+=s,o=bs(0,ys(o,c)),e[r]=0?-t[i]:t[a]>=0?c+t[a]:xs(s)>1e-8?(c-o)*t[i]/s:0):e[n]-=t[i]}function zf(e){var t=e.itemTooltipOption,n=e.componentModel,r=e.itemName,i=z(t)?{formatter:t}:t,a=n.mainType,o=n.componentIndex,s={componentType:a,name:r,$vars:[`name`]};s[a+`Index`]=o;var c=e.formatterParamsExtra;c&&I(fe(c),function(e){Be(s,e)||(s[e]=c[e],s.$vars.push(e))});var l=ol(e.el);l.componentMainType=a,l.componentIndex=o,l.tooltipConfig={name:r,option:F({content:r,encodeHTMLContent:!0,formatterParams:s},i)}}function Bf(e,t){var n;e.isGroup&&(n=t(e)),n||e.traverse(t)}function Vf(e,t){if(e)if(R(e))for(var n=0;nt&&(t=r),rt&&(n=t=0),{min:n,max:t}}function Jf(e,t,n){Yf(e,t,n,-1/0)}function Yf(e,t,n,r){if(e.ignoreModelZ)return r;var i=e.getTextContent(),a=e.getTextGuideLine();if(e.isGroup)for(var o=e.childrenRef(),s=0;s1){var l=s.shift();s.length===1&&(n[o]=s[0]),this._update&&this._update(l,a)}else c===1?(n[o]=null,this._update&&this._update(s,a)):this._remove&&this._remove(a)}this._performRestAdd(i,n)},e.prototype._executeMultiple=function(){var e=this._old,t=this._new,n={},r={},i=[],a=[];this._initIndexMap(e,n,i,`_oldKeyGetter`),this._initIndexMap(t,r,a,`_newKeyGetter`);for(var o=0;o1&&d===1)this._updateManyToOne&&this._updateManyToOne(l,c),r[s]=null;else if(u===1&&d>1)this._updateOneToMany&&this._updateOneToMany(l,c),r[s]=null;else if(u===1&&d===1)this._update&&this._update(l,c),r[s]=null;else if(u>1&&d>1)this._updateManyToMany&&this._updateManyToMany(l,c),r[s]=null;else if(u>1)for(var f=0;f1)for(var o=0;ol&&(l=p)}s[0]=c,s[1]=l}},r=function(){return this._data?this._data.length/this._dimSize:0};$p=(e={},e[dl+`_`+gl]={pure:!0,appendData:i},e[dl+`_row`]={pure:!0,appendData:function(){throw Error(`Do not support appendData when set seriesLayoutBy: "row".`)}},e[fl]={pure:!0,appendData:i},e[pl]={pure:!0,appendData:function(e){var t=this._data;I(e,function(e,n){for(var r=t[n]||(t[n]=[]),i=0;i<(e||[]).length;i++)r.push(e[i])})}},e[ul]={appendData:i},e[ml]={persistent:!1,pure:!0,appendData:function(e){this._data=e},clean:function(){this._offset+=this.count(),this._data=null}},e);function i(e){for(var t=0;tt},gte:function(e,t){return e>=t}};(function(){function e(e,t){ve(t)||sc(``),this._opFn=xm[e],this._rvalFloat=Xs(t)}return e.prototype.evaluate=function(e){return ve(e)?this._opFn(e,this._rvalFloat):this._opFn(Xs(e),this._rvalFloat)},e})();var Sm=function(){function e(e,t){var n=e===`desc`;this._resultLT=n?1:-1,t??=n?`min`:`max`,this._incomparable=t===`min`?-1/0:1/0}return e.prototype.evaluate=function(e,t){var n=ve(e)?e:Xs(e),r=ve(t)?t:Xs(t),i=isNaN(n),a=isNaN(r);if(i&&(n=this._incomparable),a&&(r=this._incomparable),i&&a){var o=z(e),s=z(t);o&&(n=s?e:0),s&&(r=o?t:0)}return nr?-this._resultLT:0},e}();(function(){function e(e,t){this._rval=t,this._isEQ=e,this._rvalTypeof=typeof t,this._rvalFloat=Xs(t)}return e.prototype.evaluate=function(e){var t=e===this._rval;if(!t){var n=typeof e;n!==this._rvalTypeof&&(n===`number`||this._rvalTypeof===`number`)&&(t=Xs(e)===this._rvalFloat)}return this._isEQ?t:!t},e})();function Cm(e){var t=``,n=-1/0,r=-1/0,i=1/0,a=1/0;return e&&(e.g!=null&&(t+=`G`+e.g,n=e.g),e.ge!=null&&(t+=`GE`+e.ge,r=e.ge),e.l!=null&&(t+=`L`+e.l,i=e.l),e.le!=null&&(t+=`LE`+e.le,a=e.le)),{key:t,g:n,ge:r,l:i,le:a}}function wm(e,t){return t>e.g&&t>=e.ge&&t`u`?Array:Uint32Array,Em=typeof Uint16Array>`u`?Array:Uint16Array,Dm=typeof Int32Array>`u`?Array:Int32Array,Om=typeof Float64Array>`u`?Array:Float64Array,km={float:Om,int:Dm,ordinal:Array,number:Array,time:Om},Am;function jm(e){return e>65535?Tm:Em}function Mm(e){var t=e.constructor;return t===Array?e.slice():new t(e)}function Nm(e,t,n,r,i){var a=km[n||`float`];if(i){var o=e[t],s=o&&o.length;if(s!==r){for(var c=new a(r),l=0;lh[1]&&(h[1]=m)}return this._rawCount=this._count=s,{start:o,end:s}},e.prototype._initDataFromProvider=function(e,t,n){for(var r=this._provider,i=this._chunks,a=this._dimensions,o=a.length,s=this._rawExtent,c=L(a,function(e){return e.property}),l=0;lg[1]&&(g[1]=h)}}!r.persistent&&r.clean&&r.clean(),this._rawCount=this._count=t,this._extent=[]},e.prototype.count=function(){return this._count},e.prototype.get=function(e,t){if(!(t>=0&&t=0&&t=this._rawCount||e<0)return-1;if(!this._indices)return e;var t=this._indices,n=t[e];if(n!=null&&ne)i=a-1;else return a}return-1},e.prototype.getIndices=function(){var e,t=this._indices;if(t){var n=t.constructor,r=this._count;if(n===Array){e=new n(r);for(var i=0;i=l&&g<=u||isNaN(g))&&(o[s++]=p),p++}f=!0}else if(i===2){for(var m=d[r[0]],_=d[r[1]],v=e[r[1]][0],y=e[r[1]][1],h=0;h=l&&g<=u||isNaN(g))&&(b>=v&&b<=y||isNaN(b))&&(o[s++]=p),p++}f=!0}}if(!f)if(i===1)for(var h=0;h=l&&g<=u||isNaN(g))&&(o[s++]=x)}else for(var h=0;he[w][1])&&(S=!1)}S&&(o[s++]=t.getRawIndex(h))}return sg[1]&&(g[1]=h)}}}},e.prototype.lttbDownSample=function(e,t){var n=this.clone([e],!0),r=n._chunks[e],i=this.count(),a=0,o=Math.floor(1/t),s=this.getRawIndex(0),c,l,u,d=new(jm(this._rawCount))(Math.min((Math.ceil(i/o)+2)*2,i));d[a++]=s;for(var f=1;fc&&(c=l,u=v)}T>0&&To&&(m=o-l);for(var h=0;hp&&(p=g,f=l+h)}var _=this.getRawIndex(u),v=this.getRawIndex(f);ul-p&&(s=l-p,o.length=s);for(var m=0;mu[1]&&(u[1]=g),d[f++]=_}return i._count=f,i._indices=d,i._updateGetRawIdx(),i},e.prototype.each=function(e,t){if(this._count)for(var n=e.length,r=this._chunks,i=0,a=this.count();id&&(d=p))}return o[c]=[u,d]},e.prototype.getRawDataItem=function(e){var t=this.getRawIndex(e);if(this._provider.persistent)return this._provider.getItem(t);for(var n=[],r=this._chunks,i=0;i=0?this._indices[e]:-1},e.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},e.internalField=function(){function e(e,t,n,r){return bm(e[r],this._dimensions[r])}Am={arrayRows:e,objectRows:function(e,t,n,r){return bm(e[t],this._dimensions[r])},keyedColumns:e,original:function(e,t,n,r){var i=e&&(e.value==null?e:e.value);return bm(i instanceof Array?i[r]:i,this._dimensions[r])},typedArray:function(e,t,n,r){return e[r]}}}(),e}(),Fm=jc(),Im={float:`f`,int:`i`,ordinal:`o`,number:`n`,time:`t`},Lm=function(){function e(e){this.dimensions=e.dimensions,this._dimOmitted=e.dimensionOmitted,this.source=e.source,this._fullDimCount=e.fullDimensionCount,this._updateDimOmitted(e.dimensionOmitted)}return e.prototype.isDimensionOmitted=function(){return this._dimOmitted},e.prototype._updateDimOmitted=function(e){this._dimOmitted=e,e&&(this._dimNameMap||=Bm(this.source))},e.prototype.getSourceDimensionIndex=function(e){return V(this._dimNameMap.get(e),-1)},e.prototype.getSourceDimension=function(e){var t=this.source.dimensionsDefine;if(t)return t[e]},e.prototype.makeStoreSchema=function(){for(var e=this._fullDimCount,t=Jp(this.source),n=!Vm(e),r=``,i=[],a=0,o=0;a30}var Hm=B,Um=L,Wm=typeof Int32Array>`u`?Array:Int32Array,Gm=`e\0\0`,Km=-1,qm=[`hasItemOption`,`_nameList`,`_idList`,`_invertedIndicesMap`,`_dimSummary`,`userOutput`,`_rawData`,`_dimValueGetter`,`_nameDimIdx`,`_idDimIdx`,`_nameRepeatCount`],Jm=[`_approximateExtent`],Ym,Xm,Zm,Qm,$m,eh,th,nh=function(){function e(e,t){this.type=`list`,this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=[`cloneShallow`,`downSample`,`minmaxDownSample`,`lttbDownSample`,`map`],this.CHANGABLE_METHODS=[`filterSelf`,`selectRange`],this.DOWNSAMPLE_METHODS=[`downSample`,`minmaxDownSample`,`lttbDownSample`];var n,r=!1;Rm(e)?(n=e.dimensions,this._dimOmitted=e.isDimensionOmitted(),this._schema=e):(r=!0,n=e),n||=[`x`,`y`];for(var i={},a=[],o={},s=!1,c={},l=0;l=t)){var n=this._store.getProvider();this._updateOrdinalMeta();var r=this._nameList,i=this._idList;if(n.getSource().sourceFormat===`original`&&!n.pure)for(var a=[],o=e;o0},e.prototype.ensureUniqueItemVisual=function(e,t){var n=this._itemVisuals,r=n[e];r||=n[e]={};var i=r[t];return i??(i=this.getVisual(t),R(i)?i=i.slice():Hm(i)&&(i=P({},i)),r[t]=i),i},e.prototype.setItemVisual=function(e,t,n){var r=this._itemVisuals[e]||{};this._itemVisuals[e]=r,Hm(t)?P(r,t):r[t]=n},e.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},e.prototype.setLayout=function(e,t){Hm(e)?P(this._layout,e):this._layout[e]=t},e.prototype.getLayout=function(e){return this._layout[e]},e.prototype.getItemLayout=function(e){return this._itemLayouts[e]},e.prototype.setItemLayout=function(e,t,n){this._itemLayouts[e]=n?P(this._itemLayouts[e]||{},t):t},e.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},e.prototype.setItemGraphicEl=function(e,t){sl(this.hostModel&&this.hostModel.seriesIndex,this.dataType,e,t),this._graphicEls[e]=t},e.prototype.getItemGraphicEl=function(e){return this._graphicEls[e]},e.prototype.eachItemGraphicEl=function(e,t){I(this._graphicEls,function(n,r){n&&e&&e.call(t,n,r)})},e.prototype.cloneShallow=function(t){return t||=new e(this._schema?this._schema:Um(this.dimensions,this._getDimInfo,this),this.hostModel),$m(t,this),t._store=this._store,t},e.prototype.wrapMethod=function(e,t){var n=this[e];ge(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var e=n.apply(this,arguments);return t.apply(this,[e].concat(Ee(arguments)))})},e.internalField=function(){Ym=function(e){var t=e._invertedIndicesMap;I(t,function(n,r){var i=e._dimInfos[r],a=i.ordinalMeta,o=e._store;if(a){n=t[r]=new Wm(a.categories.length);for(var s=0;s1&&(s+=`__ec__`+l),r[t]=s}}}(),e}();function rh(e,t){zp(e)||(e=Vp(e)),t||={};var n=t.coordDimensions||[],r=t.dimensionsDefine||e.dimensionsDefine||[],i=Le(),a=[],o=ih(e,n,r,t.dimensionsCount),s=t.canOmitUnusedDimensions&&Vm(o),c=r===e.dimensionsDefine,l=c?Bm(e):zm(r),u=t.encodeDefine;!u&&t.encodeDefaulter&&(u=t.encodeDefaulter(e,o));for(var d=Le(u),f=new Dm(o),p=0;p0&&(e.name+=t-1)}),new Lm({source:e,dimensions:a,fullDimensionCount:o,dimensionOmitted:s})}function ih(e,t,n,r){var i=Math.max(e.dimensionsDetectedCount||1,t.length,n.length,r||0);return I(t,function(e){var t;B(e)&&(t=e.dimsDef)&&(i=Math.max(i,t.length))}),i}function ah(e,t,n){if(n||t.hasKey(e)){for(var r=0;t.hasKey(e+r);)r++;e+=r}return t.set(e,!0),e}var oh={},sh={},ch=function(){function e(){this._normalMasterList=[],this._nonSeriesBoxMasterList=[]}return e.prototype.create=function(e,t){this._nonSeriesBoxMasterList=n(oh,!0),this._normalMasterList=n(sh,!1);function n(n,r){var i=[];return I(n,function(n,r){var a=n.create(e,t);i=i.concat(a||[])}),i}},e.prototype.update=function(e,t){I(this._normalMasterList,function(n){n.update&&n.update(e,t)})},e.prototype.getCoordinateSystems=function(){return this._normalMasterList.concat(this._nonSeriesBoxMasterList)},e.register=function(e,t){if(e===`matrix`||e===`calendar`){oh[e]=t;return}sh[e]=t},e.get=function(e){return sh[e]||oh[e]},e}();function lh(e){return!!oh[e]}var uh=Le();function dh(e){var t=e.getShallow(`coord`,!0),n=1;if(t==null){var r=uh.get(e.type);r&&r.getCoord2&&(n=2,t=r.getCoord2(e))}return{coord:t,from:n}}function fh(e,t){var n=e.getShallow(`coordinateSystem`),r=e.getShallow(`coordinateSystemUsage`,!0),i=0;if(n){var a=e.mainType===`series`;r??=a?`data`:`box`,r===`data`?(i=1,a||(i=0)):r===`box`&&(i=2,!a&&!lh(n)&&(i=0))}return{coordSysType:n,kind:i}}function ph(e){var t=e.targetModel,n=e.coordSysType,r=e.coordSysProvider,i=e.isDefaultDataCoordSys;e.allowNotFound;var a=fh(t,!0),o=a.kind,s=a.coordSysType;if(i&&o!==1&&(o=1,s=n),o===0||s!==n)return 0;var c=r(n,t);return c?(o===1?t.coordinateSystem=c:t.boxCoordinateSystem=c,o):0}var mh=function(){function e(e){this.coordSysDims=[],this.axisMap=Le(),this.categoryAxisMap=Le(),this.coordSysName=e}return e}();function hh(e){var t=e.get(`coordinateSystem`),n=new mh(t),r=gh[t];if(r)return r(e,n,n.axisMap,n.categoryAxisMap),n}var gh={cartesian2d:function(e,t,n,r){var i=e.getReferringComponents(`xAxis`,Fc).models[0],a=e.getReferringComponents(`yAxis`,Fc).models[0];t.coordSysDims=[`x`,`y`],n.set(`x`,i),n.set(`y`,a),_h(i)&&(r.set(`x`,i),t.firstCategoryDimIndex=0),_h(a)&&(r.set(`y`,a),t.firstCategoryDimIndex??=1)},singleAxis:function(e,t,n,r){var i=e.getReferringComponents(`singleAxis`,Fc).models[0];t.coordSysDims=[`single`],n.set(`single`,i),_h(i)&&(r.set(`single`,i),t.firstCategoryDimIndex=0)},polar:function(e,t,n,r){var i=e.getReferringComponents(`polar`,Fc).models[0],a=i.findAxisModel(`radiusAxis`),o=i.findAxisModel(`angleAxis`);t.coordSysDims=[`radius`,`angle`],n.set(`radius`,a),n.set(`angle`,o),_h(a)&&(r.set(`radius`,a),t.firstCategoryDimIndex=0),_h(o)&&(r.set(`angle`,o),t.firstCategoryDimIndex??=1)},geo:function(e,t,n,r){t.coordSysDims=[`lng`,`lat`]},parallel:function(e,t,n,r){var i=e.ecModel,a=i.getComponent(`parallel`,e.get(`parallelIndex`)),o=t.coordSysDims=a.dimensions.slice();I(a.parallelAxisIndex,function(e,a){var s=i.getComponent(`parallelAxis`,e),c=o[a];n.set(c,s),_h(s)&&(r.set(c,s),t.firstCategoryDimIndex??=a)})},matrix:function(e,t,n,r){var i=e.getReferringComponents(`matrix`,Fc).models[0];t.coordSysDims=[`x`,`y`];var a=i.getDimensionModel(`x`),o=i.getDimensionModel(`y`);n.set(`x`,a),n.set(`y`,o),r.set(`x`,a),r.set(`y`,o)}};function _h(e){return e.get(`type`)===`category`}function vh(e,t,n){n||={};var r=n.byIndex,i=n.stackedCoordDimension,a,o,s;yh(t)?a=t:(o=t.schema,a=o.dimensions,s=t.store);var c=!!(e&&e.get(`stack`)),l,u,d,f,p=!0;function m(e){return e.type!==`ordinal`&&e.type!==`time`}if(I(a,function(e,t){z(e)&&(a[t]=e={name:e}),m(e)||(p=!1)}),I(a,function(e,t){c&&!e.isExtraCoord&&(!r&&!l&&e.ordinalMeta&&(l=e),!u&&m(e)&&(!p||e.coordDim!==`x`&&e.coordDim!==`angle`)&&(!i||i===e.coordDim)&&(u=e))}),u&&!r&&!l&&(r=!0),u){d=`__\0ecstackresult_`+e.id,f=`__\0ecstackedover_`+e.id,l&&(l.createInvertedIndices=!0);var h=u.coordDim,g=u.type,_=0;I(a,function(e){e.coordDim===h&&_++});var v={name:d,coordDim:h,coordDimIndex:_,type:g,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length},y={name:f,coordDim:f,coordDimIndex:_+1,type:g,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length+1};o?(s&&(v.storeDimIndex=s.ensureCalculationDimension(f,g),y.storeDimIndex=s.ensureCalculationDimension(d,g)),o.appendCalculationDimension(v),o.appendCalculationDimension(y)):(a.push(v),a.push(y))}return{stackedDimension:u&&u.name,stackedByDimension:l&&l.name,isStackedByIndex:r,stackedOverDimension:f,stackResultDimension:d}}function yh(e){return!Rm(e.schema)}function bh(e,t){return!!t&&t===e.getCalculationInfo(`stackedDimension`)}function xh(e,t){return bh(e,t)?e.getCalculationInfo(`stackResultDimension`):t}function Sh(e,t){var n=e.get(`coordinateSystem`),r=ch.get(n),i;return t&&t.coordSysDims&&(i=L(t.coordSysDims,function(e){var n={name:e},r=t.axisMap.get(e);return r&&(n.type=_m(r.get(`type`))),n})),i||=r&&(r.getDimensionsInfo?r.getDimensionsInfo():r.dimensions.slice())||[`x`,`y`],i}function Ch(e,t,n){var r,i;return n&&I(e,function(e,a){var o=e.coordDim,s=n.categoryAxisMap.get(o);s&&(r??=a,e.ordinalMeta=s.getOrdinalMeta(),t&&(e.createInvertedIndices=!0)),e.otherDims.itemName!=null&&(i=!0)}),!i&&r!=null&&(e[r].otherDims.itemName=0),r}function wh(e,t,n){n||={};var r=t.getSourceManager(),i,a=!1;e?(a=!0,i=Vp(e)):(i=r.getSource(),a=i.sourceFormat===ul);var o=hh(t),s=Sh(t,o),c=n.useEncodeDefaulter,l=ge(c)?c:c?he(Np,s,t):null,u={coordDimensions:s,generateCoord:n.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:l,canOmitUnusedDimensions:!a},d=rh(i,u),f=Ch(d.dimensions,n.createInvertedIndices,o),p=a?null:r.getSharedDataStore(d),m=vh(t,{schema:d,store:p}),h=new nh(d,t);h.setCalculationInfo(m);var g=f!=null&&Th(i)?function(e,t,n,r){return r===f?n:this.defaultDimValueGetter(e,t,n,r)}:null;return h.hasItemOption=!1,h.initData(a?i:p,null,g),h}function Th(e){if(e.sourceFormat===`original`)return!R(pc(Eh(e.data||[])))}function Eh(e){for(var t=0;t=0&&n.push(e)}),n}}function jh(e,t){return N(N({},e,!0),t,!0)}var Mh=Math.log(2);function Nh(e,t,n,r,i,a){var o=r+`-`+i,s=e.length;if(a.hasOwnProperty(o))return a[o];if(t===1){var c=Math.round(Math.log((1<>1)%2;s.cssText=[`position: absolute`,`visibility: hidden`,`padding: 0`,`margin: 0`,`border-width: 0`,`user-select: none`,`width:0`,`height:0`,r[c]+`:0`,i[l]+`:0`,r[1-c]+`:auto`,i[1-l]+`:auto`,``].join(`!important;`),e.appendChild(o),n.push(o)}return t.clearMarkers=function(){I(n,function(e){e.parentNode&&e.parentNode.removeChild(e)})},n}function Vh(e,t,n){for(var r=n?`invTrans`:`trans`,i=t[r],a=t.srcCoords,o=[],s=[],c=!0,l=0;l<4;l++){var u=e[l].getBoundingClientRect(),d=2*l,f=u.left,p=u.top;o.push(f,p),c=c&&a&&f===a[d]&&p===a[d+1],s.push(e[l].offsetLeft,e[l].offsetTop)}return c&&i?i:(t.srcCoords=o,t[r]=n?Ph(s,o):Ph(o,s))}function Hh(e){return e.nodeName.toUpperCase()===`CANVAS`}var Uh=/([&<>"'])/g,Wh={"&":`&`,"<":`<`,">":`>`,'"':`"`,"'":`'`};function Gh(e){return e==null?``:(e+``).replace(Uh,function(e,t){return Wh[t]})}var Kh={time:{month:[`January`,`February`,`March`,`April`,`May`,`June`,`July`,`August`,`September`,`October`,`November`,`December`],monthAbbr:[`Jan`,`Feb`,`Mar`,`Apr`,`May`,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`],dayOfWeek:[`Sunday`,`Monday`,`Tuesday`,`Wednesday`,`Thursday`,`Friday`,`Saturday`],dayOfWeekAbbr:[`Sun`,`Mon`,`Tue`,`Wed`,`Thu`,`Fri`,`Sat`]},legend:{selector:{all:`All`,inverse:`Inv`}},toolbox:{brush:{title:{rect:`Box Select`,polygon:`Lasso Select`,lineX:`Horizontally Select`,lineY:`Vertically Select`,keep:`Keep Selections`,clear:`Clear Selections`}},dataView:{title:`Data View`,lang:[`Data View`,`Close`,`Refresh`]},dataZoom:{title:{zoom:`Zoom`,back:`Zoom Reset`}},magicType:{title:{line:`Switch to Line Chart`,bar:`Switch to Bar Chart`,stack:`Stack`,tiled:`Tile`}},restore:{title:`Restore`},saveAsImage:{title:`Save as Image`,lang:[`Right Click to Save Image`]}},series:{typeNames:{pie:`Pie chart`,bar:`Bar chart`,line:`Line chart`,scatter:`Scatter plot`,effectScatter:`Ripple scatter plot`,radar:`Radar chart`,tree:`Tree`,treemap:`Treemap`,boxplot:`Boxplot`,candlestick:`Candlestick`,k:`K line chart`,heatmap:`Heat map`,map:`Map`,parallel:`Parallel coordinate map`,lines:`Line graph`,graph:`Relationship graph`,sankey:`Sankey diagram`,funnel:`Funnel chart`,gauge:`Gauge`,pictorialBar:`Pictorial bar`,themeRiver:`Theme River Map`,sunburst:`Sunburst`,custom:`Custom chart`,chart:`Chart`}},aria:{general:{withTitle:`This is a chart about "{title}"`,withoutTitle:`This is a chart`},series:{single:{prefix:``,withName:` with type {seriesType} named {seriesName}.`,withoutName:` with type {seriesType}.`},multiple:{prefix:`. It consists of {seriesCount} series count.`,withName:` The {seriesId} series is a {seriesType} representing {seriesName}.`,withoutName:` The {seriesId} series is a {seriesType}.`,separator:{middle:``,end:``}}},data:{allData:`The data is as follows: `,partialData:`The first {displayCnt} items are: `,withName:`the data for {name} is {value}`,withoutName:`{value}`,separator:{middle:`, `,end:`. `}}}},qh={time:{month:[`一月`,`二月`,`三月`,`四月`,`五月`,`六月`,`七月`,`八月`,`九月`,`十月`,`十一月`,`十二月`],monthAbbr:[`1月`,`2月`,`3月`,`4月`,`5月`,`6月`,`7月`,`8月`,`9月`,`10月`,`11月`,`12月`],dayOfWeek:[`星期日`,`星期一`,`星期二`,`星期三`,`星期四`,`星期五`,`星期六`],dayOfWeekAbbr:[`日`,`一`,`二`,`三`,`四`,`五`,`六`]},legend:{selector:{all:`全选`,inverse:`反选`}},toolbox:{brush:{title:{rect:`矩形选择`,polygon:`圈选`,lineX:`横向选择`,lineY:`纵向选择`,keep:`保持选择`,clear:`清除选择`}},dataView:{title:`数据视图`,lang:[`数据视图`,`关闭`,`刷新`]},dataZoom:{title:{zoom:`区域缩放`,back:`区域缩放还原`}},magicType:{title:{line:`切换为折线图`,bar:`切换为柱状图`,stack:`切换为堆叠`,tiled:`切换为平铺`}},restore:{title:`还原`},saveAsImage:{title:`保存为图片`,lang:[`右键另存为图片`]}},series:{typeNames:{pie:`饼图`,bar:`柱状图`,line:`折线图`,scatter:`散点图`,effectScatter:`涟漪散点图`,radar:`雷达图`,tree:`树图`,treemap:`矩形树图`,boxplot:`箱型图`,candlestick:`K线图`,k:`K线图`,heatmap:`热力图`,map:`地图`,parallel:`平行坐标图`,lines:`线图`,graph:`关系图`,sankey:`桑基图`,funnel:`漏斗图`,gauge:`仪表盘图`,pictorialBar:`象形柱图`,themeRiver:`主题河流图`,sunburst:`旭日图`,custom:`自定义图表`,chart:`图表`}},aria:{general:{withTitle:`这是一个关于“{title}”的图表。`,withoutTitle:`这是一个图表,`},series:{single:{prefix:``,withName:`图表类型是{seriesType},表示{seriesName}。`,withoutName:`图表类型是{seriesType}。`},multiple:{prefix:`它由{seriesCount}个图表系列组成。`,withName:`第{seriesId}个系列是一个表示{seriesName}的{seriesType},`,withoutName:`第{seriesId}个系列是一个{seriesType},`,separator:{middle:`;`,end:`。`}}},data:{allData:`其数据是——`,partialData:`其中,前{displayCnt}项是——`,withName:`{name}的数据是{value}`,withoutName:`{value}`,separator:{middle:`,`,end:``}}}},Jh=`ZH`,Yh=`EN`,Xh=Yh,Zh={},Qh={},$h=We.domSupported?function(){return(document.documentElement.lang||navigator.language||navigator.browserLanguage||Xh).toUpperCase().indexOf(Jh)>-1?Jh:Xh}():Xh;function eg(e,t){e=e.toUpperCase(),Qh[e]=new Ep(t),Zh[e]=t}function tg(e){if(z(e)){var t=Zh[e.toUpperCase()]||{};return e===Jh||e===Yh?M(t):N(M(t),M(Zh[Xh]),!1)}return N(M(e),M(Zh[Xh]),!1)}function ng(e){return Qh[e]}function rg(){return Qh[Xh]}eg(Yh,Kh),eg(Jh,qh);var ig=null;function ag(){return ig}function og(e,t){var n=ag(),r=t.breakOption,i=t.breakParsed;return!i&&n&&(i=n.parseAxisBreakOption(r,e)),i}function sg(e){var t=e.brk;return t?t.breaks:[]}function cg(e){var t=e.brk;return t?t.hasBreaks():!1}var lg=1e3,ug=lg*60,dg=ug*60,fg=dg*24,pg=fg*365,mg={year:/({yyyy}|{yy})/,month:/({MMMM}|{MMM}|{MM}|{M})/,day:/({dd}|{d})/,hour:/({HH}|{H}|{hh}|{h})/,minute:/({mm}|{m})/,second:/({ss}|{s})/,millisecond:/({SSS}|{S})/},hg={year:`{yyyy}`,month:`{MMM}`,day:`{d}`,hour:`{HH}:{mm}`,minute:`{HH}:{mm}`,second:`{HH}:{mm}:{ss}`,millisecond:`{HH}:{mm}:{ss} {SSS}`},gg=`{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}`,_g=`{yyyy}-{MM}-{dd}`,vg={year:`{yyyy}`,month:`{yyyy}-{MM}`,day:_g,hour:_g+` `+hg.hour,minute:_g+` `+hg.minute,second:_g+` `+hg.second,millisecond:gg},yg=[`year`,`month`,`day`,`hour`,`minute`,`second`,`millisecond`],bg=[`year`,`half-year`,`quarter`,`month`,`week`,`half-week`,`day`,`half-day`,`quarter-day`,`hour`,`minute`,`second`,`millisecond`];function xg(e){return!z(e)&&!ge(e)?Sg(e):e}function Sg(e){e||={};var t={},n=!0;return I(yg,function(t){n&&=e[t]==null}),I(yg,function(r,i){var a=e[r];t[r]={};for(var o=null,s=i;s>=0;s--){var c=yg[s],l=B(a)&&!R(a)?a[c]:a,u=void 0;R(l)?(u=l.slice(),o=u[0]||``):z(l)?(o=l,u=[o]):(o==null?o=hg[r]:mg[c].test(o)||(o=t[c][c][0]+` `+o),u=[o],n&&(u[1]=`{primary|`+o+`}`)),t[r][c]=u}}),t}function Cg(e,t){return e+=``,`0000`.substr(0,t-e.length)+e}function wg(e){switch(e){case`half-year`:case`quarter`:return`month`;case`week`:case`half-week`:return`day`;case`half-day`:case`quarter-day`:return`hour`;default:return e}}function Tg(e){return e===wg(e)}function Eg(e){switch(e){case`year`:case`month`:return`day`;case`millisecond`:return`millisecond`;default:return`second`}}function Dg(e,t,n,r){var i=Gs(e),a=i[jg(n)](),o=i[Mg(n)]()+1,s=Math.floor((o-1)/3)+1,c=i[Ng(n)](),l=i[`get`+(n?`UTC`:``)+`Day`](),u=i[Pg(n)](),d=(u-1)%12+1,f=i[Fg(n)](),p=i[Ig(n)](),m=i[Lg(n)](),h=u>=12?`pm`:`am`,g=h.toUpperCase(),_=(r instanceof Ep?r:ng(r||$h)||rg()).getModel(`time`),v=_.get(`month`),y=_.get(`monthAbbr`),b=_.get(`dayOfWeek`),x=_.get(`dayOfWeekAbbr`);return(t||``).replace(/{a}/g,h+``).replace(/{A}/g,g+``).replace(/{yyyy}/g,a+``).replace(/{yy}/g,Cg(a%100+``,2)).replace(/{Q}/g,s+``).replace(/{MMMM}/g,v[o-1]).replace(/{MMM}/g,y[o-1]).replace(/{MM}/g,Cg(o,2)).replace(/{M}/g,o+``).replace(/{dd}/g,Cg(c,2)).replace(/{d}/g,c+``).replace(/{eeee}/g,b[l]).replace(/{ee}/g,x[l]).replace(/{e}/g,l+``).replace(/{HH}/g,Cg(u,2)).replace(/{H}/g,u+``).replace(/{hh}/g,Cg(d+``,2)).replace(/{h}/g,d+``).replace(/{mm}/g,Cg(f,2)).replace(/{m}/g,f+``).replace(/{ss}/g,Cg(p,2)).replace(/{s}/g,p+``).replace(/{SSS}/g,Cg(m,3)).replace(/{S}/g,m+``)}function Og(e,t,n,r,i){var a=null;if(z(n))a=n;else if(ge(n)){var o={time:e.time,level:e.time?e.time.level:0},s=ag();s&&s.makeAxisLabelFormatterParamBreak(o,e.break),a=n(e.value,t,o)}else{var c=e.time;if(c){var l=n[c.lowerTimeUnit][c.upperTimeUnit];a=l[Math.min(c.level,l.length-1)]||``}else{var u=kg(e.value,i);a=n[u][u][0]}}return Dg(new Date(e.value),a,i,r)}function kg(e,t){var n=Gs(e),r=n[Mg(t)]()+1,i=n[Ng(t)](),a=n[Pg(t)](),o=n[Fg(t)](),s=n[Ig(t)](),c=n[Lg(t)]()===0,l=c&&s===0,u=l&&o===0,d=u&&a===0,f=d&&i===1;return f&&r===1?`year`:f?`month`:d?`day`:u?`hour`:l?`minute`:c?`second`:`millisecond`}function Ag(e,t,n){switch(t){case`year`:e[zg(n)](0);case`month`:e[Bg(n)](1);case`day`:e[Vg(n)](0);case`hour`:e[Hg(n)](0);case`minute`:e[Ug(n)](0);case`second`:e[Wg(n)](0)}return e}function jg(e){return e?`getUTCFullYear`:`getFullYear`}function Mg(e){return e?`getUTCMonth`:`getMonth`}function Ng(e){return e?`getUTCDate`:`getDate`}function Pg(e){return e?`getUTCHours`:`getHours`}function Fg(e){return e?`getUTCMinutes`:`getMinutes`}function Ig(e){return e?`getUTCSeconds`:`getSeconds`}function Lg(e){return e?`getUTCMilliseconds`:`getMilliseconds`}function Rg(e){return e?`setUTCFullYear`:`setFullYear`}function zg(e){return e?`setUTCMonth`:`setMonth`}function Bg(e){return e?`setUTCDate`:`setDate`}function Vg(e){return e?`setUTCHours`:`setHours`}function Hg(e){return e?`setUTCMinutes`:`setMinutes`}function Ug(e){return e?`setUTCSeconds`:`setSeconds`}function Wg(e){return e?`setUTCMilliseconds`:`setMilliseconds`}function Gg(e){if(!Zs(e))return z(e)?e:`-`;var t=(e+``).split(`.`);return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,`$1,`)+(t.length>1?`.`+t[1]:``)}function Kg(e,t){return e=(e||``).toLowerCase().replace(/-(.)/g,function(e,t){return t.toUpperCase()}),t&&e&&(e=e.charAt(0).toUpperCase()+e.slice(1)),e}var qg=De;function Jg(e,t,n){var r=`{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}`;function i(e){return e&&ke(e)?e:`-`}function a(e){return tc(e)}var o=t===`time`,s=e instanceof Date;if(o||s){var c=o?Gs(e):e;if(!isNaN(+c))return Dg(c,r,n);if(s)return`-`}if(t===`ordinal`)return _e(e)?i(e):ve(e)&&a(e)?e+``:`-`;var l=Xs(e);return a(l)?Gg(l):_e(e)?i(e):typeof e==`boolean`?e+``:`-`}var Yg=[`a`,`b`,`c`,`d`,`e`,`f`,`g`],Xg=function(e,t){return`{`+e+(t??``)+`}`};function Zg(e,t,n){R(t)||(t=[t]);var r=t.length;if(!r)return``;for(var i=t[0].$vars||[],a=0;a`:``:{renderMode:a,content:`{`+(n.markerId||`markerX`)+`|} `,style:i===`subItem`?{width:4,height:4,borderRadius:2,backgroundColor:r}:{width:10,height:10,borderRadius:5,backgroundColor:r}}:``}function Qg(e,t){return t||=`transparent`,z(e)?e:B(e)&&e.colorStops&&(e.colorStops[0]||{}).color||t}var $g=I,e_=[`left`,`right`,`top`,`bottom`,`width`,`height`],t_=[[`width`,`left`,`right`],[`height`,`top`,`bottom`]];function n_(e,t,n,r,i){var a=0,o=0;r??=1/0,i??=1/0;var s=0;t.eachChild(function(c,l){var u=c.getBoundingRect(),d=t.childAt(l+1),f=d&&d.getBoundingRect(),p,m;if(e===`horizontal`){var h=u.width+(f?-f.x+u.x:0);p=a+h,p>r||c.newline?(a=0,p=h,o+=s+n,s=u.height):s=Math.max(s,u.height)}else{var g=u.height+(f?-f.y+u.y:0);m=o+g,m>i||c.newline?(a+=s+n,o=0,m=g,s=u.width):s=Math.max(s,u.width)}c.newline||(c.x=a,c.y=o,c.markRedraw(),e===`horizontal`?a=p+n:o=m+n)})}var r_=n_;he(n_,`vertical`),he(n_,`horizontal`);function i_(e,t){return{left:e.getShallow(`left`,t),top:e.getShallow(`top`,t),right:e.getShallow(`right`,t),bottom:e.getShallow(`bottom`,t),width:e.getShallow(`width`,t),height:e.getShallow(`height`,t)}}function a_(e,t,n){n=qg(n||0);var r=t.width,i=t.height,a=js(e.left,r),o=js(e.top,i),s=js(e.right,r),c=js(e.bottom,i),l=js(e.width,r),u=js(e.height,i),d=n[2]+n[0],f=n[1]+n[3],p=e.aspect;switch(isNaN(l)&&(l=r-s-f-a),isNaN(u)&&(u=i-c-d-o),p!=null&&(isNaN(l)&&isNaN(u)&&(p>r/i?l=r*.8:u=i*.8),isNaN(l)&&(l=p*u),isNaN(u)&&(u=l/p)),isNaN(a)&&(a=r-s-l-f),isNaN(o)&&(o=i-c-u-d),e.left||e.right){case`center`:a=r/2-l/2-n[3];break;case`right`:a=r-l-f}switch(e.top||e.bottom){case`middle`:case`center`:o=i/2-u/2-n[0];break;case`bottom`:o=i-u-d}a||=0,o||=0,isNaN(l)&&(l=r-f-a-(s||0)),isNaN(u)&&(u=i-d-o-(c||0));var m=new rn((t.x||0)+a+n[3],(t.y||0)+o+n[0],l,u);return m.margin=n,m}function o_(e,t,n){var r=e.getShallow(`preserveAspect`,!0);if(!r)return t;var i=t.width/t.height;if(Math.abs(Math.atan(n)-Math.atan(i))<1e-9)return t;var a=e.getShallow(`preserveAspectAlign`,!0),o=e.getShallow(`preserveAspectVerticalAlign`,!0),s={width:t.width,height:t.height},c=r===`cover`;return i>n&&!c||i=u)return a;for(var d=0;d=0;o--)a=N(a,n[o],!0);t.defaultOption=a}return t.defaultOption},t.prototype.getReferringComponents=function(e,t){var n=e+`Index`,r=e+`Id`;return Ic(this.ecModel,e,{index:this.get(n,!0),id:this.get(r,!0)},t)},t.prototype.getBoxLayoutParams=function(){return i_(this,!1)},t.prototype.getZLevelKey=function(){return``},t.prototype.setZLevel=function(e){this.option.zlevel=e},t.protoInitialize=function(){var e=t.prototype;e.type=`component`,e.id=``,e.name=``,e.mainType=``,e.subType=``,e.componentIndex=0}(),t}(Ep);et(h_,Ep),at(h_),kh(h_),Ah(h_,g_);function g_(e){var t=[];return I(h_.getClassesByMainType(e),function(e){t=t.concat(e.dependencies||e.prototype.dependencies||[])}),t=L(t,function(e){return Ye(e).main}),e!==`dataset`&&ae(t,`dataset`)<=0&&t.unshift(`dataset`),t}var __=jc(),tee=jc(),v_=function(){function e(){}return e.prototype.getColorFromPalette=function(e,t,n){var r=uc(this.get(`color`,!0)),i=this.get(`colorLayer`,!0);return x_(this,__,r,i,e,t,n)},e.prototype.clearColorPalette=function(){S_(this,__)},e}();function y_(e,t,n,r){return x_(e,tee,uc(e.get([`aria`,`decal`,`decals`])),null,t,n,r)}function b_(e,t){for(var n=e.length,r=0;rt)return e[r];return e[n-1]}function x_(e,t,n,r,i,a,o){a||=e;var s=t(a),c=s.paletteIdx||0,l=s.paletteNameMap=s.paletteNameMap||{};if(l.hasOwnProperty(i))return l[i];var u=o==null||!r?n:b_(r,o);if(u||=n,!(!u||!u.length)){var d=u[c];return i&&(l[i]=d),s.paletteIdx=(c+1)%u.length,d}}function S_(e,t){t(e).paletteIdx=0,t(e).paletteNameMap={}}var C_=/\{@(.+?)\}/g,w_=function(){function e(){}return e.prototype.getDataParams=function(e,t){var n=this.getData(t),r=this.getRawValue(e,t),i=n.getRawIndex(e),a=n.getName(e),o=n.getRawDataItem(e),s=n.getItemVisual(e,`style`),c=s&&s[n.getItemVisual(e,`drawType`)||`fill`],l=s&&s.stroke,u=this.mainType,d=u===`series`,f=n.userOutput&&n.userOutput.get();return{componentType:u,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:d?this.subType:null,seriesIndex:this.seriesIndex,seriesId:d?this.id:null,seriesName:d?this.name:null,name:a,dataIndex:i,data:o,dataType:t,value:r,color:c,borderColor:l,dimensionNames:f?f.fullDimensions:null,encode:f?f.encode:null,$vars:[`seriesName`,`name`,`value`]}},e.prototype.getFormattedLabel=function(e,t,n,r,i,a){t||=`normal`;var o=this.getData(n),s=this.getDataParams(e,n);if(a&&(s.value=a.interpolatedValue),r!=null&&R(s.value)&&(s.value=s.value[r]),i||=o.getItemModel(e).get(t===`normal`?[`label`,`formatter`]:[t,`label`,`formatter`]),ge(i))return s.status=t,s.dimensionIndex=r,i(s);if(z(i))return Zg(i,s).replace(C_,function(t,n){var r=n.length,i=n;i.charAt(0)===`[`&&i.charAt(r-1)===`]`&&(i=+i.slice(1,r-1));var s=pm(o,e,i);if(a&&R(a.interpolatedValue)){var c=o.getDimensionIndex(i);c>=0&&(s=a.interpolatedValue[c])}return s==null?``:s+``})},e.prototype.getRawValue=function(e,t){return pm(this.getData(t),e)},e.prototype.formatTooltip=function(e,t,n){},e}();function T_(e){var t,n;return B(e)?e.type&&(n=e):t=e,{text:t,frag:n}}function E_(e){return new D_(e)}var D_=function(){function e(e){e||={},this._reset=e.reset,this._plan=e.plan,this._count=e.count,this._onDirty=e.onDirty,this._dirty=!0}return e.prototype.perform=function(e){var t=this._upstream,n=e&&e.skip;if(this._dirty&&t){var r=this.context;r.data=r.outputData=t.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var i;this._plan&&!n&&(i=this._plan(this.context));var a=l(this._modBy),o=this._modDataCount||0,s=l(e&&e.modBy),c=e&&e.modDataCount||0;(a!==s||o!==c)&&(i=`reset`);function l(e){return!(e>=1)&&(e=1),e}var u;(this._dirty||i===`reset`)&&(this._dirty=!1,u=this._doReset(n)),this._modBy=s,this._modDataCount=c;var d=e&&e.step;if(this._dueEnd=t?t._outputDueEnd:this._count?this._count(this.context):1/0,this._progress){var f=this._dueIndex,p=Math.min(d==null?1/0:this._dueIndex+d,this._dueEnd);if(!n&&(u||f1&&r>0?s:o}};return a;function o(){return t=e?null:a9e10&&(this._versionSignBase=0)},e.prototype._getVersionSign=function(){return this._sourceHost.uid+`_`+this._versionSignBase},e.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},e.prototype._createSource=function(){this._setLocalSource([],[]);var e=this._sourceHost,t=this._getUpstreamSourceManagers(),n=!!t.length,r,i;if(V_(e)){var a=e,o=void 0,s=void 0,c=void 0;if(n){var l=t[0];l.prepareSource(),c=l.getSource(),o=c.data,s=c.sourceFormat,i=[l._getVersionSign()]}else o=a.get(`data`,!0),s=be(o)?ml:ul,i=[];var u=this._getSourceMetaRawOption()||{},d=c&&c.metaRawOption||{},f=V(u.seriesLayoutBy,d.seriesLayoutBy)||null,p=V(u.sourceHeader,d.sourceHeader),m=V(u.dimensions,d.dimensions);r=f!==d.seriesLayoutBy||!!p!=!!d.sourceHeader||m?[Bp(o,{seriesLayoutBy:f,sourceHeader:p,dimensions:m},s)]:[]}else{var h=e;if(n){var g=this._applyTransform(t);r=g.sourceList,i=g.upstreamSignList}else r=[Bp(h.get(`source`,!0),this._getSourceMetaRawOption(),null)],i=[]}this._setLocalSource(r,i)},e.prototype._applyTransform=function(e){var t=this._sourceHost,n=t.get(`transform`,!0),r=t.get(`fromTransformResult`,!0);r!=null&&e.length!==1&&H_(``);var i,a=[],o=[];return I(e,function(e){e.prepareSource();var t=e.getSource(r||0);r!=null&&!t&&H_(``),a.push(t),o.push(e._getVersionSign())}),n?i=L_(n,a,{datasetIndex:t.componentIndex}):r!=null&&(i=[Hp(a[0])]),{sourceList:i,upstreamSignList:o}},e.prototype._isDirty=function(){if(this._dirty)return!0;for(var e=this._getUpstreamSourceManagers(),t=0;t1||n>0&&!e.noHeader;return I(e.blocks,function(e){var n=J_(e);n>=t&&(t=n+ +(r&&(!n||K_(e)&&!e.noHeader)))}),t}return 0}function Y_(e,t,n,r){var i=t.noHeader,a=Q_(J_(t)),o=[],s=t.blocks||[];Oe(!s||R(s)),s||=[];var c=e.orderMode;if(t.sortBlocks&&c){s=s.slice();var l={valueAsc:`asc`,valueDesc:`desc`};if(Be(l,c)){var u=new Sm(l[c],null);s.sort(function(e,t){return u.evaluate(e.sortParam,t.sortParam)})}else c===`seriesDesc`&&s.reverse()}I(s,function(n,i){var s=t.valueFormatter,c=q_(n)(s?P(P({},e),{valueFormatter:s}):e,n,i>0?a.html:0,r);c!=null&&o.push(c)});var d=e.renderMode===`richText`?o.join(a.richText):$_(r,o.join(``),i?n:a.html);if(i)return d;var f=Kg(t.header,`ordinal`,e.useUTC),p=H_(r,e.renderMode).nameStyle,m=V_(r);return e.renderMode===`richText`?nv(e,f,p)+a.richText+d:$_(r,`
`+Uh(f)+`
`+d,n)}function X_(e,t,n,r){var i=e.renderMode,a=t.noName,o=t.noValue,s=!t.markerType,c=t.name,l=e.useUTC,u=t.valueFormatter||e.valueFormatter||function(e){return e=R(e)?e:[e],L(e,function(e,t){return Kg(e,R(p)?p[t]:p,l)})};if(!(a&&o)){var d=s?``:e.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||H.color.secondary,i),f=a?``:Kg(c,`ordinal`,l),p=t.valueType,m=o?[]:u(t.value,t.rawDataIndex),h=!s||!a,g=!s&&a,_=H_(r,i),v=_.nameStyle,y=_.valueStyle;return i===`richText`?(s?``:d)+(a?``:nv(e,f,v))+(o?``:rv(e,m,h,g,y)):$_(r,(s?``:d)+(a?``:ev(f,!s,v))+(o?``:tv(m,h,g,y)),n)}}function Z_(e,t,n,r,i,a){if(e)return q_(e)({useUTC:i,renderMode:n,orderMode:r,markupStyleCreator:t,valueFormatter:e.valueFormatter},e,0,a)}function Q_(e){return{html:U_[e],richText:W_[e]}}function $_(e,t,n){var r=`
`,i=`margin: `+n+`px 0 0`,a=V_(e);return`
`+t+r+`
`}function ev(e,t,n){var r=t?`margin-left:2px`:``;return``+Uh(e)+``}function tv(e,t,n,r){var i=t?`float:right;margin-left:`+(n?`10px`:`20px`):``;return e=R(e)?e:[e],``+L(e,function(e){return Uh(e)}).join(`  `)+``}function nv(e,t,n){return e.markupStyleCreator.wrapRichTextStyle(t,n)}function rv(e,t,n,r,i){var a=[i],o=r?10:20;return n&&a.push({padding:[0,0,0,o],align:`right`}),e.markupStyleCreator.wrapRichTextStyle(R(t)?t.join(` `):t,a)}function iv(e,t){var n=e.getData().getItemVisual(t,`style`)[e.visualDrawType];return Zg(n)}function av(e,t){return e.get(`padding`)??(t===`richText`?[8,10]:10)}var ov=function(){function e(){this.richTextStyles={},this._nextStyleNameId=Qs()}return e.prototype._generateStyleName=function(){return`__EC_aUTo_`+this._nextStyleNameId++},e.prototype.makeTooltipMarker=function(e,t,n){var r=n===`richText`?this._generateStyleName():null,i=Xg({color:t,type:e,renderMode:n,markerId:r});return z(i)?i:(this.richTextStyles[r]=i.style,i.content)},e.prototype.wrapRichTextStyle=function(e,t){var n={};R(t)?I(t,function(e){return P(n,e)}):P(n,t);var r=this._generateStyleName();return this.richTextStyles[r]=n,`{`+r+`|`+e+`}`},e}();function sv(e){var t=e.series,n=e.dataIndex,r=e.multipleSeries,i=t.getData(),a=i.mapDimensionsAll(`defaultedTooltip`),o=a.length,s=t.getRawValue(n),c=R(s),l=iv(t,n),u,d,f,p;if(o>1||c&&!o){var m=cv(s,t,n,a,l);u=m.inlineValues,d=m.inlineValueTypes,f=m.blocks,p=m.inlineValues[0]}else if(o){var h=i.getDimensionInfo(a[0]);p=u=pm(i,n,a[0]),d=h.type}else p=u=c?s[0]:s;var g=Tc(t),_=g&&t.name||``,v=i.getName(n),y=r?_:v;return G_(`section`,{header:_,noHeader:r||!g,sortParam:p,blocks:[G_(`nameValue`,{markerType:`item`,markerColor:l,name:y,noName:!ke(y),value:u,valueType:d,rawDataIndex:i.getRawIndex(n)})].concat(f||[])})}function cv(e,t,n,r,i){var a=t.getData(),o=le(e,function(e,t,n){var r=a.getDimensionInfo(n);return e||=r&&r.tooltip!==!1&&r.displayName!=null},!1),s=[],c=[],l=[];r.length?I(r,function(e){u(pm(a,n,e),e)}):I(e,u);function u(e,t){var n=a.getDimensionInfo(t);!n||n.otherDims.tooltip===!1||(o?l.push(G_(`nameValue`,{markerType:`subItem`,markerColor:i,name:n.displayName,value:e,valueType:n.type})):(s.push(e),c.push(n.type)))}return{inlineValues:s,inlineValueTypes:c,blocks:l}}var lv=jc();function uv(e,t){return e.getName(t)||e.getId(t)}var dv=function(e){p(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t._selectedDataIndicesMap={},t}return t.prototype.init=function(e,t,n){this.seriesIndex=this.componentIndex,this.dataTask=E_({count:mv,reset:hv}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(e,n),(lv(this).sourceManager=new P_(this)).prepareSource();var r=this.getInitialData(e,n);_v(r,this),this.dataTask.context.data=r,lv(this).dataBeforeProcessed=r,fv(this),this._initSelectedMapFromData(r)},t.prototype.mergeDefaultAndTheme=function(e,t){var n=l_(this),r=n?d_(e):{},i=this.subType;m_.hasClass(i)&&(i+=`Series`),N(e,t.getTheme().get(this.subType)),N(e,this.getDefaultOption()),dc(e,`label`,[`show`]),this.fillDataTextStyle(e.data),n&&u_(e,r,n)},t.prototype.mergeOption=function(e,t){e=N(this.option,e,!0),this.fillDataTextStyle(e.data);var n=l_(this);n&&u_(this.option,e,n);var r=lv(this).sourceManager;r.dirty(),r.prepareSource();var i=this.getInitialData(e,t);_v(i,this),this.dataTask.dirty(),this.dataTask.context.data=i,lv(this).dataBeforeProcessed=i,fv(this),this._initSelectedMapFromData(i)},t.prototype.fillDataTextStyle=function(e){if(e&&!be(e))for(var t=[`show`],n=0;n=0&&u<0)&&(l=v,u=_,d=0),_===u&&(c[d++]=m))}return c.length=d,c},t.prototype.formatTooltip=function(e,t,n){return sv({series:this,dataIndex:e,multipleSeries:t})},t.prototype.isAnimationEnabled=function(){var e=this.ecModel;if(We.node&&!(e&&e.ssr))return!1;var t=this.getShallow(`animation`);return t&&this.getData().count()>this.getShallow(`animationThreshold`)&&(t=!1),!!t},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(e,t,n){var r=this.ecModel,i=v_.prototype.getColorFromPalette.call(this,e,t,n);return i||=r.getColorFromPalette(e,t,n),i},t.prototype.coordDimToDataDim=function(e){return this.getRawData().mapDimensionsAll(e)},t.prototype.getProgressive=function(){return this.get(`progressive`)},t.prototype.getProgressiveThreshold=function(){return this.get(`progressiveThreshold`)},t.prototype.select=function(e,t){this._innerSelect(this.getData(t),e)},t.prototype.unselect=function(e,t){var n=this.option.selectedMap;if(n){var r=this.option.selectedMode,i=this.getData(t);if(r===`series`||n===`all`){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var a=0;a=0&&n.push(i)}return n},t.prototype.isSelected=function(e,t){var n=this.option.selectedMap;if(!n)return!1;var r=this.getData(t);return(n===`all`||n[uv(r,e)])&&!r.getItemModel(e).get([`select`,`disabled`])},t.prototype.isUniversalTransitionEnabled=function(){if(this.__universalTransitionEnabled)return!0;var e=this.option.universalTransition;return e?e===!0||e&&e.enabled:!1},t.prototype._innerSelect=function(e,t){var n,r,i=this.option,a=i.selectedMode,o=t.length;if(!(!a||!o)){if(a===`series`)i.selectedMap=`all`;else if(a===`multiple`){B(i.selectedMap)||(i.selectedMap={});for(var s=i.selectedMap,c=0;c0&&this._innerSelect(e,t)}},t.registerClass=function(e){return m_.registerClass(e)},t.protoInitialize=function(){var e=t.prototype;e.type=`series.__base__`,e.seriesIndex=0,e.ignoreStyleOnData=!1,e.hasSymbolVisual=!1,e.defaultSymbol=`circle`,e.visualStyleAccessPath=`itemStyle`,e.visualDrawType=`fill`}(),t}(m_);se(dv,w_),se(dv,v_),et(dv,m_);function fv(e){var t=e.name;Tc(e)||(e.name=pv(e)||t)}function pv(e){var t=e.getRawData(),n=t.mapDimensionsAll(`seriesName`),r=[];return I(n,function(e){var n=t.getDimensionInfo(e);n.displayName&&r.push(n.displayName)}),r.join(` `)}function mv(e){return e.model.getRawData().count()}function hv(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),gv}function gv(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function _v(e,t){I(Re(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),function(n){e.wrapMethod(n,he(vv,t))})}function vv(e,t){var n=yv(e);return n&&n.setOutputEnd((t||this).count()),t}function yv(e){var t=(e.ecModel||{}).scheduler,n=t&&t.getPipeline(e.uid);if(n){var r=n.currentTask;if(r){var i=r.agentStubMap;i&&(r=i.get(e.uid))}return r}}var bv=Lo.extend({type:`triangle`,shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var n=t.cx,r=t.cy,i=t.width/2,a=t.height/2;e.moveTo(n,r-a),e.lineTo(n+i,r+a),e.lineTo(n-i,r+a),e.closePath()}}),xv={line:Dd,rect:Zo,roundRect:Zo,square:Zo,circle:Zu,diamond:Lo.extend({type:`diamond`,shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var n=t.cx,r=t.cy,i=t.width/2,a=t.height/2;e.moveTo(n,r-a),e.lineTo(n+i,r),e.lineTo(n,r+a),e.lineTo(n-i,r),e.closePath()}}),pin:Lo.extend({type:`pin`,shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var n=t.x,r=t.y,i=t.width/5*3,a=Math.max(i,t.height),o=i/2,s=o*o/(a-o),c=r-a+o+s,l=Math.asin(s/o),u=Math.cos(l)*o,d=Math.sin(l),f=Math.cos(l),p=o*.6,m=o*.7;e.moveTo(n-u,c+s),e.arc(n,c,o,Math.PI-l,Math.PI*2+l),e.bezierCurveTo(n+u-d*p,c+s+f*p,n,r-m,n,r),e.bezierCurveTo(n,r-m,n-u+d*p,c+s+f*p,n-u,c+s),e.closePath()}}),arrow:Lo.extend({type:`arrow`,shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var n=t.height,r=t.width,i=t.x,a=t.y,o=r/3*2;e.moveTo(i,a),e.lineTo(i+o,a+n),e.lineTo(i,a+n/4*3),e.lineTo(i-o,a+n),e.lineTo(i,a),e.closePath()}}),triangle:bv},Sv={line:function(e,t,n,r,i){i.x1=e,i.y1=t+r/2,i.x2=e+n,i.y2=t+r/2},rect:function(e,t,n,r,i){i.x=e,i.y=t,i.width=n,i.height=r},roundRect:function(e,t,n,r,i){i.x=e,i.y=t,i.width=n,i.height=r,i.r=Math.min(n,r)/4},square:function(e,t,n,r,i){var a=Math.min(n,r);i.x=e,i.y=t,i.width=a,i.height=a},circle:function(e,t,n,r,i){i.cx=e+n/2,i.cy=t+r/2,i.r=Math.min(n,r)/2},diamond:function(e,t,n,r,i){i.cx=e+n/2,i.cy=t+r/2,i.width=n,i.height=r},pin:function(e,t,n,r,i){i.x=e+n/2,i.y=t+r/2,i.width=n,i.height=r},arrow:function(e,t,n,r,i){i.x=e+n/2,i.y=t+r/2,i.width=n,i.height=r},triangle:function(e,t,n,r,i){i.cx=e+n/2,i.cy=t+r/2,i.width=n,i.height=r}},Cv={};I(xv,function(e,t){Cv[t]=new e});var wv=Lo.extend({type:`symbol`,shape:{symbolType:``,x:0,y:0,width:0,height:0},calculateTextPosition:function(e,t,n){var r=kn(e,t,n),i=this.shape;return i&&i.symbolType===`pin`&&t.position===`inside`&&(r.y=n.y+n.height*.4),r},buildPath:function(e,t,n){var r=t.symbolType;if(r!==`none`){var i=Cv[r];i||=(r=`rect`,Cv[r]),Sv[r](t.x,t.y,t.width,t.height,i.shape),i.buildPath(e,i.shape,n)}}});function Tv(e,t){if(this.type!==`image`){var n=this.style;this.__isEmptyBrush?(n.stroke=e,n.fill=t||H.color.neutral00,n.lineWidth=2):this.shape.symbolType===`line`?n.stroke=e:n.fill=e,this.markRedraw()}}function Ev(e,t,n,r,i,a,o){var s=e.indexOf(`empty`)===0;s&&(e=e.substr(5,1).toLowerCase()+e.substr(6));var c=e.indexOf(`image://`)===0?gf(e.slice(8),new rn(t,n,r,i),o?`center`:`cover`):e.indexOf(`path://`)===0?hf(e.slice(7),{},new rn(t,n,r,i),o?`center`:`cover`):new wv({shape:{symbolType:e,x:t,y:n,width:r,height:i}});return c.__isEmptyBrush=s,c.setColor=Tv,a&&c.setColor(a),c}function Dv(e){return R(e)||(e=[+e,+e]),[e[0]||0,e[1]||0]}function Ov(e,t){if(e!=null)return R(e)||(e=[e,e]),[js(e[0],t[0])||0,js(V(e[1],e[0]),t[1])||0]}function kv(e,t){var n=e.mapDimensionsAll(`defaultedLabel`),r=n.length;if(r===1){var i=pm(e,t,n[0]);return i==null?null:i+``}if(r){for(var a=[],o=0;o0?+m:1;D.scaleX=this._sizeX*O,D.scaleY=this._sizeY*O,this.setSymbolScale(1),gu(this,u,d,f)},t.prototype.setSymbolScale=function(e){this.scaleX=this.scaleY=e},t.prototype.fadeOut=function(e,t,n){var r=this.childAt(0),i=ol(this).dataIndex,a=n&&n.animation;if(this.silent=r.silent=!0,n&&n.fadeLabel){var o=r.getTextContent();o&&tf(o,{style:{opacity:0}},t,{dataIndex:i,removeOpt:a,cb:function(){r.removeTextContent()}})}else r.removeTextContent();tf(r,{style:{opacity:0},scaleX:0,scaleY:0},t,{dataIndex:i,cb:e,removeOpt:a})},t.getSymbolSize=function(e,t){return Dv(e.getItemVisual(t,`symbolSize`))},t.getSymbolZ2=function(e,t){return e.getItemVisual(t,`z2`)},t}(Yu);function jv(e,t){this.parent.drift(e,t)}function Mv(e,t,n,r){return t&&!isNaN(t[0])&&!isNaN(t[1])&&!(r&&r.isIgnore&&r.isIgnore(n))&&!(r&&r.clipShape&&!r.clipShape.contain(t[0],t[1]))&&e.getItemVisual(n,`symbol`)!==`none`}function Nv(e){return e!=null&&!B(e)&&(e={isIgnore:e}),e||{}}function Pv(e){var t=e.hostModel,n=t.getModel(`emphasis`);return{emphasisItemStyle:n.getModel(`itemStyle`).getItemStyle(),blurItemStyle:t.getModel([`blur`,`itemStyle`]).getItemStyle(),selectItemStyle:t.getModel([`select`,`itemStyle`]).getItemStyle(),focus:n.get(`focus`),blurScope:n.get(`blurScope`),emphasisDisabled:n.get(`disabled`),hoverScale:n.get(`scale`),labelStatesModels:ip(t),cursorStyle:t.get(`cursor`)}}function Fv(e,t,n,r,i,a,o){var s=new e(t,n,r,i);return s.setPosition(a),t.setItemGraphicEl(n,s),o.add(s),s}var Iv=function(){function e(e){this.group=new Yu,this._SymbolCtor=e||Av}return e.prototype.updateData=function(e,t){this._progressiveEls=null,t=Nv(t);var n=this.group,r=e.hostModel,i=this._data,a=this._SymbolCtor,o=t.disableAnimation,s=this._seriesScope=Pv(e),c={disableAnimation:o},l=t.getSymbolPoint||function(t){return e.getItemLayout(t)};i||n.removeAll(),e.diff(i).add(function(r){var i=l(r);Mv(e,i,r,t)&&Fv(a,e,r,s,c,i,n)}).update(function(u,d){var f=i.getItemGraphicEl(d),p=l(u);if(!Mv(e,p,u,t)){n.remove(f);return}var m=e.getItemVisual(u,`symbol`)||`circle`,h=f&&f.getSymbolType&&f.getSymbolType();if(!f||h&&h!==m)n.remove(f),f=new a(e,u,s,c),f.setPosition(p);else{f.updateData(e,u,s,c);var g={x:p[0],y:p[1]};o?f.attr(g):Qd(f,g,r)}n.add(f),e.setItemGraphicEl(u,f)}).remove(function(e){var t=i.getItemGraphicEl(e);t&&t.fadeOut(function(){n.remove(t)},r)}).execute(),this._getSymbolPoint=l,this._data=e},e.prototype.updateLayout=function(e){var t=this._data;if(t)for(var n=this,r=t.getStore(),i=0,a=r.count();i=t[0]&&e<=t[1]},getExtent:function(){return this._extents[0].slice()},getExtentUnsafe:function(e){return this._extents[e]},setExtent:function(e,t){cy(this._extents,0,e,t)},setExtent2:function(e,t,n){var r=this._extents;r[e]||(r[e]=r[0].slice()),cy(r,e,t,n)},freeze:function(){}};function cy(e,t,n,r){Jc(n,r)&&(e[t][0]=n,e[t][1]=r)}function ly(e){return uy(e)||fy(e)}function uy(e){return e.type===`interval`}function dy(e){return e.type===`time`}function fy(e){return e.type===`log`}function py(e){return e.type===`ordinal`}function my(e){var t=qs(e),n=Ts(10,t),r=Ss(e/n);return r?r===2?r=3:r===3?r=5:r*=2:r=1,Is(r*n,-t)}function hy(e){return Rs(e)+2}function gy(e,t){return Es(e)/Es(t)}function _y(e,t,n){var r=n&&n.lookup;if(r){for(var i=0;i1&&a/o>2&&(i=Math.round(Math.ceil(i/o)*o)),i!==r[0]&&c(r[0],!0,!0);for(var s=i;s<=r[1];s+=o)c(s,!1,s===r[0]||s===r[1]);s-o!==r[1]&&c(r[1],!0,!0);function c(e,t,r){n({value:e,offInterval:t},r)}}var Sy=function(e){p(t,e);function t(n){var r=e.call(this)||this;r.type=`ordinal`,r.parse=t.parse,ey(r,t.decoratedMethods);var i=n.ordinalMeta;i||=new Xv({}),R(i)&&(i=new Xv({categories:L(i,function(e){return B(e)?e.value:e})})),r._ordinalMeta=i;var a=$v(null,null,n.extent||[0,i.categories.length-1]);return r._mapper=a.mapper,ty(r,a.mapper),r}return t.parse=function(e){return e==null?e=NaN:z(e)?(e=this._ordinalMeta.getOrdinal(e),e??=NaN):e=Ss(e),e},t.prototype.getTicks=function(){var e=[];return xy(this,0,function(t){e.push(t)}),e},t.prototype.getMinorTicks=function(e){},t.prototype.setSortInfo=function(e){if(e==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var t=e.ordinalNumbers,n=this._ordinalNumbersByTick=[],r=this._ticksByOrdinalNumber=[],i=0,a=this._ordinalMeta.categories.length,o=ys(a,t.length);i=0&&e=0&&e=0&&eo[0]&&mi[1]||!isFinite(p)||!isFinite(i[1]))break}else{if(m>f)break;p=ys(p,i[1]),m===f&&(p=i[1])}if(l.push({value:p}),p=Is(p+n,a),s){var h=s.calcNiceTickMultiple(p,d);h>=0&&(p=Is(p+h*n,a))}if(l.length>0&&p===l[l.length-1].value)break;if(l.length>u)return[]}var g=l.length?l[l.length-1].value:i[1];return r[1]>g&&l.push({value:e.expandToNicedExtent?Is(g+n,a):r[1]}),c&&o.pruneTicksByBreak(e.pruneByBreak,l,s.breaks,function(e){return e.value},t.interval,r),c&&e.breakTicks!==`none`&&o.addBreaksToTicks(l,s.breaks,r),l},t.prototype.getMinorTicks=function(e){return Cy(this,e,ag(this),this._cfg.interval)},t.prototype.getLabel=function(e,t){if(e==null)return``;var n=t&&t.precision;return n==null?n=Rs(e.value)||0:n===`auto`&&(n=this._cfg.intervalPrecision),Ug(Is(e.value,n,!0))},t.type=`interval`,t}(Jv);Jv.registerClass(wy);var Ty=function(e,t,n,r){for(;n>>1;e[i][1]16?16:e>7.5?7:e>3.5?4:e>1.5?2:1}function Ay(e){var t=30*ug;return e/=t,e>6?6:e>3?3:e>2?2:1}function jy(e){return e/=lg,e>12?12:e>6?6:e>3.5?4:e>2?2:1}function My(e,t){return e/=t?cg:sg,e>30?30:e>20?20:e>15?15:e>10?10:e>5?5:e>2?2:1}function Ny(e){return bs(Js(e,!0),1)}function Py(e,t,n){var r=Math.max(0,ae(_g,t)-1);return Og(new Date(e),_g[r],n).getTime()}function Fy(e,t){var n=new Date(0);n[e](1);var r=n.getTime();n[e](1+t);var i=n.getTime()-r;return function(e,t){return Math.max(0,Math.round((t-e)/i))}}function Iy(e,t,n,r,i,a){var o=vg,s=0;function c(e,t,n,i,o,c,l){for(var u=Fy(o,e),d=t,f=new Date(d);d3e3));)if(f[o](f[i]()+e),d=f.getTime(),a){var p=a.calcNiceTickMultiple(d,u);p>0&&(f[o](f[i]()+p*e),d=f.getTime())}l.push({value:d,notAdd:d>r[1]})}function l(e,i,a){var o=[],s=!i.length;if(!Oy(Sg(e),r[0],r[1],n)){s&&(i=[{value:Py(r[0],e,n)},{value:r[1]}]);for(var l=0;l=r[0]&&u<=r[1]&&c(f,u,d,p,m,h,o),e===`year`&&a.length>1&&l===0&&a.unshift({value:a[0].value-f})}}for(var l=0;l=r[0]&&v<=r[1]&&f++)}var y=i/t;if(f>y*1.5&&p>y/1.5||(u.push(g),f>y||e===o[m]))break}d=[]}}for(var b=ue(L(u,function(e){return ue(e,function(e){return e.value>=r[0]&&e.value<=r[1]&&!e.notAdd})}),function(e){return e.length>0}),x=b.length-1,S=[],m=0;mr[0])&&S.unshift({value:r[0],time:{level:0,upperTimeUnit:O,lowerTimeUnit:O},notNice:!0}),(!D||D.values&&(a=s);var c=Dy.length,l=Math.min(Ty(Dy,a,0,c),c-1),u=Dy[l][1],d=Dy[Math.max(l-1,0)][0];e.setTimeInterval({approxInterval:a,interval:u,minLevelUnit:d})};Jv.registerClass(Ey);var Ry=0,zy=1,By=2,Vy=function(e){p(t,e);function t(n){var r=e.call(this)||this;r.type=`log`,r.parse=wy.parse,r.base=n.logBase||10;var i=[],a=[],o=r._lookup={from:i,to:a};i[Ry]=i[zy]=a[Ry]=a[zy]=NaN,ey(r,t.mapperMethods);var s=rg(),c=n.breakOption,l={lookup:o};return s&&s.parseAxisBreakOptionInwardTransform(c,r,{noNegative:!0},By,l),r.powStub=new wy({breakParsed:l.original}),r.intervalStub=new wy({breakParsed:l.transformed}),ty(r,r.intervalStub),r}return t.prototype.getTicks=function(e){var t=this.base,n=this.powStub,r=rg(),i=this.intervalStub,a={lookup:{from:i.getExtent(),to:n.getExtent()}};return L(i.getTicks(e||{}),function(e){var i=e.value,o=_y(i,t,a),s;if(r){var c=r.getTicksBreakOutwardTransform(this,e,ag(n),this._lookup);c&&(s=c.vBreak,o=c.tickVal)}return{value:o,break:s}},this)},t.prototype.getMinorTicks=function(e){return Cy(this,e,ag(this.powStub),this.intervalStub.getConfig().interval)},t.prototype.getLabel=function(e,t){return this.intervalStub.getLabel(e,t)},t.type=`log`,t.mapperMethods={needTransform:function(){return!0},normalize:function(e){return this.intervalStub.normalize(gy(e,this.base))},scale:function(e){return _y(this.intervalStub.scale(e),this.base,null)},transformIn:function(e,t){return e=gy(e,this.base),t&&t.depth===2?e:this.intervalStub.transformIn(e,t)},transformOut:function(e,t){var n=t?t.depth:null;return Hy.depth=n,Uy.lookup=this._lookup,_y(n===2?e:this.intervalStub.transformOut(e,Hy),this.base,Uy)},contain:function(e){return this.powStub.contain(e)},setExtent:function(e,t){this.setExtent2(0,e,t)},setExtent2:function(e,t,n){if(!(!Jc(t,n)||t<=0||n<=0)){var r=Wy,i=Wy;if(e===0){var a=this._lookup;r=a.to,i=a.from}this.powStub.setExtent2(e,r[Ry]=t,r[zy]=n);var o=this.base;this.intervalStub.setExtent2(e,i[Ry]=gy(t,o),i[zy]=gy(n,o))}},getFilter:function(){return{g:0}},sanitize:function(e,t){return Jc(t[0],t[1])&&tc(e)&&e<=0&&(e=t[0]),e},getDefaultStartValue:function(){return 1},getExtent:function(){return this.powStub.getExtent()},getExtentUnsafe:function(e,t){return t===null?this.powStub.getExtentUnsafe(e,null):this.intervalStub.getExtentUnsafe(e,t)}},t}(Jv);Jv.registerClass(Vy);var Hy={},Uy={},Wy=[],Gy={value:1,category:1,time:1,log:1},Ky=jc();function qy(e){var t=e.get(`type`);return(t==null||!Be(Gy,t)&&!Jv.getClass(t))&&(t=`value`),t}function Jy(e,t,n){var r=rg(),i;switch(r&&(i=ab(e,t,n)),t){case`category`:return new Sy({ordinalMeta:e.getOrdinalMeta?e.getOrdinalMeta():e.getCategories(),extent:Hc()});case`time`:return new Ey({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get(`useUTC`),breakOption:i});case`log`:return new Vy({logBase:e.get(`logBase`),breakOption:i});case`value`:return new wy({breakOption:i});default:return new((Jv.getClass(t))||wy)({})}}function Yy(e,t,n){var r=n?ry(e,null):e.getExtentUnsafe(0,null),i=r[0],a=r[1];return Jc(i,a)?i===t||a===t?2:it?1:3:3}function Xy(e){Ky(e).noOnMyZero=!0}function Zy(e){return Ky(e).noOnMyZero}function Qy(e){var t=e.getLabelModel().get(`formatter`);if(e.type===`time`){var n=yg(t);return function(t,r){return e.scale.getFormattedLabel(t,r,n)}}if(z(t))return function(n){var r=e.scale.getLabel(n);return t.replace(`{value}`,r??``)};if(ge(t)){if(e.type===`category`)return function(n,r){return t($y(e,n),n.value-e.scale.getExtent()[0],null)};var r=rg();return function(n,i){var a=null;return r&&(a=r.makeAxisLabelFormatterParamBreak(a,n.break)),t($y(e,n),i,a)}}return function(t){return e.scale.getLabel(t)}}function $y(e,t){var n=e.scale;return py(n)?n.getLabel(t):t.value}function eb(e){return e.get(`interval`)??`auto`}function tb(e){return e.type===`category`&&eb(e.getLabelModel())===0}function nb(e,t){var n={};return I(e.mapDimensionsAll(t),function(t){n[bh(e,t)]=!0}),fe(n)}function rb(e){return e===`middle`||e===`center`}function ib(e){return e.getShallow(`show`)}function ab(e,t,n){var r=e.get(`breaks`,!0);if(r!=null)return!rg()||!n||!ob(t)?void 0:r}function ob(e){return e!==`category`}function sb(e,t,n,r,i,a){var o=fy(e),s=o?e.intervalStub:e;if(s.setExtent(r[0],r[1]),o){var c=e.powStub,l={depth:2},u=e.transformOut(r[0],l),d=e.transformOut(r[1],l),f=yy(n,r);t[0]&&!f[0]&&(u=i[0]),t[1]&&!f[1]&&(d=i[1]),c.setExtent(u,d)}s.setConfig(a)}function cb(e,t){return py(e)?e.getRawOrdinalNumber(t.value):t.value}function lb(e,t){return py(e)&&!!t.get(`boundaryGap`)}var ub=jc(),db=jc(),fb={estimate:1,determine:2};function pb(e){return{out:{noPxChangeTryDetermine:[]},kind:e}}function mb(e,t){var n=e.getLabelModel().get(`customValues`);if(n){var r=e.scale;return{labels:L(gb(n,r),function(t,n){return{formattedLabel:Qy(e)(t,n),rawLabel:r.getLabel(t),tick:t}})}}return e.type===`category`?_b(e,t):bb(e)}function hb(e,t,n){var r=e.scale,i=e.getTickModel().get(`customValues`);return i?{ticks:gb(i,r)}:e.type===`category`?yb(e,t):{ticks:r.getTicks(n)}}function gb(e,t){var n=t.getExtent(),r=[];return I(e,function(e){e=t.parse(e),e>=n[0]&&e<=n[1]&&r.push(e)}),$c(r,tl,null),Ls(r),L(r,function(e){return{value:e}})}function _b(e,t){var n=e.getLabelModel(),r=vb(e,n,t);return!n.get(`show`)||e.scale.isBlank()?{labels:[]}:r}function vb(e,t,n){var r=Sb(e),i=eb(t),a=n.kind===fb.estimate;if(!a){var o=wb(r,i);if(o)return o}var s,c;ge(i)?s=jb(e,i,!1):(c=i===`auto`?Eb(e,n):i,s=jb(e,c,!1));var l={labels:s,labelCategoryInterval:c};return a?n.out.noPxChangeTryDetermine.push(function(){return Tb(r,i,l),!0}):Tb(r,i,l),l}function yb(e,t){var n=xb(e),r=eb(t),i=wb(n,r);if(i)return i;var a,o;if((!t.get(`show`)||e.scale.isBlank())&&(a=[]),ge(r))a=jb(e,r,!0);else if(r===`auto`){var s=vb(e,e.getLabelModel(),pb(fb.determine));o=s.labelCategoryInterval,a=L(s.labels,function(e){return e.tick})}else o=r,a=jb(e,o,!0);return Tb(n,r,{ticks:a,tickCategoryInterval:o})}function bb(e){var t=e.scale.getTicks(),n=Qy(e);return{labels:L(t,function(t,r){return{formattedLabel:n(t,r),rawLabel:e.scale.getLabel(t),tick:t}})}}var xb=Cb(`axisTick`),Sb=Cb(`axisLabel`);function Cb(e){return function(t){return db(t)[e]||(db(t)[e]={list:[]})}}function wb(e,t){for(var n=0;nu&&(l=Math.max(1,Math.floor(c/u)));for(var d=s[0],f=e.dataToCoord(d+1)-e.dataToCoord(d),p=Math.abs(f*Math.cos(a)),m=Math.abs(f*Math.sin(a)),h=0,g=0;d<=s[1];d+=l){var _=0,v=0,y=wn(i({value:d}),r.font,`center`,`top`);_=y.width*1.3,v=y.height*1.3,h=Math.max(h,_,7),g=Math.max(g,v,7)}var b=h/p,x=g/m;isNaN(b)&&(b=1/0),isNaN(x)&&(x=1/0);var S=Math.max(0,Math.floor(Math.min(b,x)));return n===fb.estimate?(t.out.noPxChangeTryDetermine.push(me(Ob,null,e,S,c)),S):kb(e,S,c)??S}function Ob(e,t,n){return kb(e,t,n)==null}function kb(e,t,n){var r=ub(e.model),i=e.getExtent(),a=r.lastAutoInterval,o=r.lastTickCount;if(a!=null&&o!=null&&Math.abs(a-t)<=1&&Math.abs(o-n)<=1&&a>t&&r.axisExtent0===i[0]&&r.axisExtent1===i[1])return a;r.lastTickCount=n,r.lastAutoInterval=t,r.axisExtent0=i[0],r.axisExtent1=i[1]}function Ab(e){var t=e.getLabelModel();return{axisRotate:e.getRotate?e.getRotate():e.isHorizontal&&!e.isHorizontal()?90:0,labelRotate:t.get(`rotate`)||0,font:t.getFont()}}function jb(e,t,n){var r=Qy(e),i=e.scale,a=[],o=ge(t);return xy(i,o?0:t,function(e,s){var c=i.getLabel(e);if(o){var l=!!t(e.value,c);if(e.offInterval=!l,!l&&!s)return}a.push(n?e:{formattedLabel:r(e),rawLabel:c,tick:e})}),a}var Mb=jc();function Nb(e){Mb(e).prepare={}}function Pb(e){Mb(e).fullUpdate={}}function Fb(e){return Mb(e).fullUpdate}Zc();var Ib=jc();jc();function Lb(e,t){var n=e.model,r=Ib(Fb(n.ecModel)).keyed,i=r&&r.get(t);return i&&i.get(n.uid)}function Rb(e,t){return Vb(Lb(e,t))}function zb(e,t){var n=[];return Bb(e.model.ecModel,function(e){for(var r=0;r0?(t>o&&(o=t),a=!1):t===-2&&(a=!0))}),tc(n)&&n>0&&tc(o)?(e.w=r/n*o,e.w2=o):a&&(e.w=r*Jb,e.w2=e.w*n/r)}var Qb=[0,1],$b=function(){function e(e,t,n){this.onBand=!1,this.inverse=!1,this.dim=e,this.scale=t,this._extent=n||[0,0]}return e.prototype.contain=function(e){var t=this._extent,n=Math.min(t[0],t[1]),r=Math.max(t[0],t[1]);return e>=n&&e<=r},e.prototype.containData=function(e){return this.scale.contain(this.scale.parse(e))},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.setExtent=function(e,t){var n=this._extent;n[0]=e,n[1]=t},e.prototype.dataToCoord=function(e,t){var n=this.scale;return e=n.normalize(n.parse(e)),As(e,Qb,ex(this),t)},e.prototype.coordToData=function(e,t){var n=As(e,ex(this),Qb,t);return this.scale.scale(n)},e.prototype.pointToData=function(e,t){},e.prototype.getTicksCoords=function(e){e||={};var t=e.tickModel||this.getTickModel(),n=L(hb(this,t,{breakTicks:e.breakTicks,pruneByBreak:e.pruneByBreak}).ticks,function(e){return{coord:this.dataToCoord(cb(this.scale,e)),tick:e}},this),r=t.get(`alignWithLabel`),i=tx(this,n,r);return L(n,function(e){return{coord:e.coord,tickValue:e.tick.value,onBand:i}})},e.prototype.getMinorTicksCoords=function(){if(py(this.scale))return[];var e=this.model.getModel(`minorTick`).get(`splitNumber`);return e>0&&e<100||(e=5),L(this.scale.getMinorTicks(e),function(e){return L(e,function(e){return{coord:this.dataToCoord(e),tickValue:e}},this)},this)},e.prototype.getViewLabels=function(e){return e||=pb(fb.determine),mb(this,e).labels},e.prototype.getLabelModel=function(){return this.model.getModel(`axisLabel`)},e.prototype.getTickModel=function(){return this.model.getModel(`axisTick`)},e.prototype.getBandWidth=function(){return Yb(this,{min:1}).w},e.prototype.calculateCategoryInterval=function(e){return e||=pb(fb.determine),Db(this,e)},e}();function ex(e){var t=e.getExtent();if(e.onBand){var n=(t[1]-t[0])/e.scale.count()/2;t[0]+=n,t[1]-=n}return t}function tx(e,t,n){var r=t.length;if(!e.onBand||n||!r)return!1;var i=Yb(e).w;if(!i)return!1;I(t,function(e){e.coord-=i/2});var a=e.scale.getExtent(),o=t[r-1];return o.tick.offInterval&&t.pop(),t.push({coord:o.coord+i,tick:{value:a[1]+1}}),!0}var nx=function(e){p(t,e);function t(t,n,r,i,a){var o=e.call(this,t,n,r)||this;return o.index=0,o.type=i||`value`,o.position=a||`bottom`,o}return t.prototype.isHorizontal=function(){var e=this.position;return e===`top`||e===`bottom`},t.prototype.getGlobalExtent=function(e){var t=this.getExtent();return t[0]=this.toGlobalCoord(t[0]),t[1]=this.toGlobalCoord(t[1]),e&&t[0]>t[1]&&t.reverse(),t},t.prototype.pointToData=function(e,t){return this.coordToData(this.toLocalCoord(e[this.dim===`x`?0:1]),t)},t.prototype.setCategorySortInfo=function(e){if(this.type!==`category`)return!1;this.model.option.categorySortInfo=e,this.scale.setSortInfo(e)},t}($b),rx=[`label`,`labelLine`,`layoutOption`,`priority`,`defaultAttr`,`marginForce`,`minMarginForce`,`marginDefault`,`suggestIgnore`],ix=1,ax=2,ox=ix|ax;function sx(e,t,n){n||=ox,t?e.dirty|=n:e.dirty&=~n}function cx(e,t){return t||=ox,e.dirty==null||!!(e.dirty&t)}function lx(e){if(e)return cx(e)&&ux(e,e.label,e),e}function ux(e,t,n){var r=t.getComputedTransform();e.transform=Gf(e.transform,r);var i=e.localRect=Wf(e.localRect,t.getBoundingRect()),a=t.style,o=a.margin,s=n&&n.marginForce,c=n&&n.minMarginForce,l=n&&n.marginDefault,u=a.__marginType;u==null&&l&&(o=l,u=hp.textMargin);for(var d=0;d<4;d++)dx[d]=u===hp.minMargin&&c&&c[d]!=null?c[d]:s&&s[d]!=null?s[d]:o?o[d]:0;u===hp.textMargin&&If(i,dx,!1,!1);var f=e.rect=Wf(e.rect,i);return r&&f.applyTransform(r),u===hp.minMargin&&If(f,dx,!1,!1),e.axisAligned=Hf(r),(e.label=e.label||{}).ignore=t.ignore,sx(e,!1),sx(e,!0,ax),e}var dx=[0,0,0,0];function fx(e,t,n){return e.transform=Gf(e.transform,n),e.localRect=Wf(e.localRect,t),e.rect=Wf(e.rect,t),n&&e.rect.applyTransform(n),e.axisAligned=Hf(n),e.obb=void 0,(e.label=e.label||{}).ignore=!1,e}function px(e,t){if(e){e.label.x+=t.x,e.label.y+=t.y,e.label.markRedraw();var n=e.transform;n&&(n[4]+=t.x,n[5]+=t.y);var r=e.rect;r&&(r.x+=t.x,r.y+=t.y);var i=e.obb;i&&i.fromBoundingRect(e.localRect,n)}}function mx(e,t){for(var n=0;n.1?`x`:`y`,u=a.transGroup[l];if(o.sort(function(e,t){return Math.abs(e.label[l]-u)-Math.abs(t.label[l]-u)}),c&&s){var d=i.getExtent(),f=Math.min(d[0],d[1]),p=Math.max(d[0],d[1])-f;s.union(new rn(f,0,p,1))}a.stOccupiedRect=s,a.labelInfoList=o}var kx=_t(),Ax=new rn(0,0,0,0),jx=function(e,t,n,r,i,a){if(rb(e.nameLocation)){var o=a.stOccupiedRect;o&&Mx(fx({},o,a.transGroup.transform),r,i)}else Nx(a.labelInfoList,a.dirVec,r,i)};function Mx(e,t,n){var r=new Ut;_x(e,t,r,{direction:Math.atan2(n.y,n.x),bidirectional:!1,touchThreshold:.05})&&px(t,r)}function Nx(e,t,n,r){for(var i=Ut.dot(r,t)>=0,a=0,o=e.length;a0?`top`:`bottom`,i=`center`):Us(r-xx)?(a=n>0?`bottom`:`top`,i=`center`):(a=`middle`,i=r>0&&r0?`right`:`left`:n>0?`left`:`right`),{rotation:r,textAlign:i,textVerticalAlign:a}},e.makeAxisEventDataBase=function(e){var t={componentType:e.mainType,componentIndex:e.componentIndex};return t[e.mainType+`Index`]=e.componentIndex,t},e.isLabelSilent=function(e){var t=e.get(`tooltip`);return e.get(`silent`)||!(e.get(`triggerEvent`)||t&&t.show)},e}(),Fx=[`axisLine`,`axisTickLabelEstimate`,`axisTickLabelDetermine`,`axisName`],Ix={axisLine:function(e,t,n,r,i,a,o){var s=r.get([`axisLine`,`show`]);if(s===`auto`&&(s=!0,e.raw.axisLineAutoShow!=null&&(s=!!e.raw.axisLineAutoShow)),s){var c=r.axis.getExtent(),l=a.transform,u=[c[0],0],d=[c[1],0],f=u[0]>d[0];l&&(Bt(u,u,l),Bt(d,d,l));var p=P({lineCap:`round`},r.getModel([`axisLine`,`lineStyle`]).getLineStyle()),m={strokeContainThreshold:e.raw.strokeContainThreshold||5,silent:!0,z2:1,style:p};if(r.get([`axisLine`,`breakLine`])&&og(r.axis.scale))yx().buildAxisBreakLine(r,i,a,m);else{var h=new Dd(P({shape:{x1:u[0],y1:u[1],x2:d[0],y2:d[1]}},m));bf(h.shape,h.style.lineWidth),h.anid=`line`,i.add(h)}var g=r.get([`axisLine`,`symbol`]);if(g!=null){var _=r.get([`axisLine`,`symbolSize`]);z(g)&&(g=[g,g]),(z(_)||ve(_))&&(_=[_,_]);var v=Ov(r.get([`axisLine`,`symbolOffset`])||0,_),y=_[0],b=_[1];I([{rotate:e.rotation+Math.PI/2,offset:v[0],r:0},{rotate:e.rotation-Math.PI/2,offset:v[1],r:Math.sqrt((u[0]-d[0])*(u[0]-d[0])+(u[1]-d[1])*(u[1]-d[1]))}],function(t,n){if(g[n]!==`none`&&g[n]!=null){var r=Ev(g[n],-y/2,-b/2,y,b,p.stroke,!0),a=t.r+t.offset,o=f?d:u;r.attr({rotation:t.rotate,x:o[0]+a*Math.cos(e.rotation),y:o[1]-a*Math.sin(e.rotation),silent:!0,z2:11}),i.add(r)}})}}},axisTickLabelEstimate:function(e,t,n,r,i,a,o,s){Gx(t,i,s)&&Lx(e,t,n,r,i,a,o,fb.estimate)},axisTickLabelDetermine:function(e,t,n,r,i,a,o,s){Gx(t,i,s)&&Lx(e,t,n,r,i,a,o,fb.determine);var c=Ux(e,i,a,r);Bx(e,t.labelLayoutList,c),Wx(e,i,a,r,e.tickDirection)},axisName:function(e,t,n,r,i,a,o,s){var c=n.ensureRecord(r);t.nameEl&&=(i.remove(t.nameEl),c.nameLayout=c.nameLocation=null);var l=e.axisName;if(Qx(l)){var u=e.nameLocation,d=e.nameDirection,f=r.getModel(`nameTextStyle`),p=r.get(`nameGap`)||0,m=r.axis.getExtent(),h=r.axis.inverse?-1:1,g=new Ut(0,0),_=new Ut(0,0);u===`start`?(g.x=m[0]-h*p,_.x=-h):u===`end`?(g.x=m[1]+h*p,_.x=h):(g.x=(m[0]+m[1])/2,g.y=e.labelOffset+d*p,_.y=d);var v=_t();_.transform(St(v,v,e.rotation));var y=r.get(`nameRotate`);y!=null&&(y=y*xx/180);var b,x;rb(u)?b=Px.innerTextLayout(e.rotation,y??e.rotation,d):(b=Rx(e.rotation,u,y||0,m),x=e.raw.axisNameAvailableWidth,x!=null&&(x=Math.abs(x/Math.sin(b.rotation)),!isFinite(x)&&(x=null)));var S=f.getFont(),C=r.get(`nameTruncate`,!0)||{},w=C.ellipsis,T=we(e.raw.nameTruncateMaxWidth,C.maxWidth,x),E=s.nameMarginLevel||0,D=new ns({x:g.x,y:g.y,rotation:b.rotation,silent:Px.isLabelSilent(r),style:ap(f,{text:l,font:S,overflow:`truncate`,width:T,ellipsis:w,fill:f.getTextColor()||r.get([`axisLine`,`lineStyle`,`color`]),align:f.get(`align`)||b.textAlign,verticalAlign:f.get(`verticalAlign`)||b.textVerticalAlign}),z2:1});if(zf({el:D,componentModel:r,itemName:l}),D.__fullText=l,D.anid=`name`,r.get(`triggerEvent`)){var O=Px.makeAxisEventDataBase(r);O.targetType=`axisName`,O.name=l,ol(D).eventData=O}a.add(D),D.updateTransform(),t.nameEl=D;var k=c.nameLayout=lx({label:D,priority:D.z2,defaultAttr:{ignore:D.ignore},marginDefault:rb(u)?Sx[E]:Cx[E]});if(c.nameLocation=u,i.add(D),D.decomposeTransform(),e.shouldNameMoveOverlap&&k){var ee=n.ensureRecord(r);n.resolveAxisNameOverlap(e,n,r,k,_,ee)}}}};function Lx(e,t,n,r,i,a,o,s){qx(t)||Kx(e,t,i,s,r,o);var c=t.labelLayoutList;Yx(e,r,c,a),eS(r,e.rotation,c);var l=e.optionHideOverlap;zx(r,c,l),l&&gx(ue(c,function(e){return e&&!e.label.ignore})),Ox(e,n,r,c)}function Rx(e,t,n,r){var i=Hs(n-e),a,o,s=r[0]>r[1],c=t===`start`&&!s||t!==`start`&&s;return Us(i-xx/2)?(o=c?`bottom`:`top`,a=`center`):Us(i-xx*1.5)?(o=c?`top`:`bottom`,a=`center`):(o=`middle`,a=ixx/2?c?`left`:`right`:c?`right`:`left`),{rotation:i,textAlign:a,textVerticalAlign:o}}function zx(e,t,n){var r=e.axis,i=e.get([`axisLabel`,`customValues`]);if(tb(r))return;function a(e,a,o){var s=lx(t[a]),c=lx(t[o]),l=r.scale;if(!(!s||!c)){if(e==null){if(!n&&i)return;var u=Tx(s.label).labelInfo.tick;if(dy(l)&&u.notNice||py(l)&&u.offInterval){Vx(s.label);return}}if(e===!1||s.suggestIgnore){Vx(s.label);return}if(c.suggestIgnore){Vx(c.label);return}var d=.1;if(!n){var f=[0,0,0,0];s=mx({marginForce:f},s),c=mx({marginForce:f},c)}_x(s,c,null,{touchThreshold:d})&&Vx(e?c.label:s.label)}}var o=e.get([`axisLabel`,`showMinLabel`]),s=e.get([`axisLabel`,`showMaxLabel`]),c=t.length;a(o,0,1),a(s,c-1,c-2)}function Bx(e,t,n){e.showMinorTicks||I(t,function(e){if(e&&e.label.ignore)for(var t=0;t0&&u[1]>0&&!d[0]&&(u[0]=0),u[0]<0&&u[1]<0&&!d[1]&&(u[1]=0));var y=!1;u[0]>u[1]&&(u.reverse(),y=!0);var b=lS(e,t.get(`startValue`,!0)),x=b!=null;!tc(b)&&r&&(b=e.getDefaultStartValue?e.getDefaultStartValue():0),tc(b)&&(x||!_||v)&&(bu[1]&&!d[1]&&(u[1]=b,d[1]=!0)),cS(this._i={scale:e,dataMM:l,noZoomEffMM:u,zoomMM:[],fixMM:d,zoomFixMM:[!1,!1],startValue:b,isBlank:g,incl0:v,tggAxInv:y,ctnShp:i},u)}return e.prototype.makeNoZoom=function(){return this._i.noZoomEffMM.slice()},e.prototype.makeFinal=function(){var e=this._i,t=e.zoomMM,n=e.noZoomEffMM,r=e.zoomFixMM,i=e.fixMM,a={fixMM:i,zoomFixMM:r,isBlank:e.isBlank,incl0:e.incl0,tggAxInv:e.tggAxInv,ctnShp:e.ctnShp,effMM:n.slice()},o=a.effMM;return t[0]!=null&&(o[0]=t[0],i[0]=r[0]=!0),t[1]!=null&&(o[1]=t[1],i[1]=r[1]=!0),cS(e,o),a},e.prototype.makeRenderInfo=function(){return{startValue:this._i.startValue}},e.prototype.setZoomMM=function(e,t){this._i.zoomMM[e]=t},e}();function cS(e,t){var n=e.scale,r=e.dataMM;n.sanitize&&(t[0]=n.sanitize(t[0],r),t[1]=n.sanitize(t[1],r),Xc(t))}function lS(e,t){return t==null?null:Ce(t)?NaN:e.parse(t)}function uS(e,t){var n;if(py(e))n=[0,0];else{var r=t.get(`boundaryGap`);typeof r==`boolean`&&(r=null),n=R(r)?r:[r,r]}return[dS(n[0]),dS(n[1])]}function dS(e){return On(typeof e==`boolean`?0:e,1)||0}function fS(e){var t=aS(e.scale);return t.extent||=Hc(),t}function pS(e,t){fS(e).dimIdxInCoord=t.get(e.dim)}function mS(e,t){var n=e.scale,r=e.model,i=e.dim;n.rawExtentInfo||hS(n,e,i,r,t)}function hS(e,t,n,r,i){var a=fS(t),o=a.extent,s=!1;Hb(t,function(r){if(r.boxCoordinateSystem){var i=uh(r).coord,c=a.dimIdxInCoord;if(c>=0&&R(i)){var l=i[c];l!=null&&!R(l)&&Uc(o,e.parse(l))}}else if(r.coordinateSystem){var u=r.getData();if(u){var d=e.getFilter?e.getFilter():null;I(nb(u,n),function(e){Kc(o,u.getApproximateExtent(e,d))})}r.__requireStartValue&&r.__requireStartValue(t)&&(s=!0)}});var c=bS(e,t,r);_S(e,new sS(e,r,o,s,c),i),a.extent=null}function gS(e,t){var n=e.scale;_S(n,new sS(n,e.model,t,!1,!1),oS)}function _S(e,t,n){e.rawExtentInfo=t,t.from=n}var vS=Le();function yS(e,t,n,r,i){e.rawExtentInfo||gS({scale:e,model:t},i||Hc());var a=e.rawExtentInfo.makeFinal(),o=a.effMM;return e.setExtent(o[0],o[1]),e.setBlank(a.isBlank),r&&a.tggAxInv&&n&&!n.get(`legacyMinMaxDontInverseAxis`)&&(r.inverse=!r.inverse),a}function bS(e,t,n){var r=lb(e,n),i=n.get(`containShape`,!0);if(i==null&&!r&&(i=!0),!i)return!1;var a=!1;return Wb(t,function(e){a=!!vS.get(e)||a}),a}function xS(e,t,n,r){if(n.ctnShp){var i;if(Wb(e,function(t){var n=vS.get(t);if(n){var a=n(e,r);a&&(i||=[0,0],Wc(i,a[0]),Gc(i,a[1]),Xy(e))}}),i){var a=t.getExtent();if(py(t))e.onBand||t.setExtent2(1,ys(a[0],a[0]+i[0]),bs(a[1],a[1]+i[1]));else{var o=a.slice();n.zoomFixMM[0]||(o[0]=ys(o[0],t.transformOut(t.transformIn(o[0],null)+i[0],null))),n.zoomFixMM[1]||(o[1]=bs(o[1],t.transformOut(t.transformIn(o[1],null)+i[1],null))),(o[0]a[1])&&t.setExtent2(1,o[0],o[1])}}}}var SS={left:0,right:0,top:0,bottom:0},CS=[`25%`,`25%`],wS=`cartesian2d`,TS=function(e){p(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.mergeDefaultAndTheme=function(t,n){var r=d_(t.outerBounds);e.prototype.mergeDefaultAndTheme.apply(this,arguments),r&&t.outerBounds&&u_(t.outerBounds,r)},t.prototype.mergeOption=function(t,n){e.prototype.mergeOption.apply(this,arguments),this.option.outerBounds&&t.outerBounds&&u_(this.option.outerBounds,t.outerBounds)},t.type=`grid`,t.dependencies=[`xAxis`,`yAxis`],t.layoutMode=`box`,t.defaultOption={show:!1,z:0,left:`15%`,top:65,right:`10%`,bottom:80,containLabel:!1,outerBoundsMode:`auto`,outerBounds:SS,outerBoundsContain:`all`,outerBoundsClampWidth:CS[0],outerBoundsClampHeight:CS[1],backgroundColor:H.color.transparent,borderWidth:1,borderColor:H.color.neutral30},t}(m_),ES=`\0__throttleOriginMethod`,DS=`\0__throttleRate`,OS=`\0__throttleType`;function kS(e,t,n){var r,i=0,a=0,o=null,s,c,l,u;t||=0;function d(){a=new Date().getTime(),o=null,e.apply(c,l||[])}var f=function(){var e=[...arguments];r=new Date().getTime(),c=this,l=e;var f=u||t,p=u||n;u=null,s=r-(p?i:a)-f,clearTimeout(o),p?o=setTimeout(d,f):s>=0?d():o=setTimeout(d,-s),i=r};return f.clear=function(){o&&=(clearTimeout(o),null)},f.debounceNextCall=function(e){u=e},f}function AS(e,t,n,r){var i=e[t];if(i){var a=i[ES]||i,o=i[OS];if(i[DS]!==n||o!==r){if(n==null||!r)return e[t]=a;i=e[t]=kS(a,n,r===`debounce`),i[ES]=a,i[OS]=r,i[DS]=n}return i}}function jS(e,t){var n=e[t];n&&n[ES]&&(n.clear&&n.clear(),e[t]=n[ES])}function MS(e,t,n,r,i){var a=e+t;n.isSilent(a)||r.eachComponent({mainType:`series`,subType:`pie`},function(e){for(var t=e.seriesIndex,r=e.option.selectedMap,o=i.selected,s=0;s=0},e.prototype.indexOfName=function(e){return this._getDataWithEncodedVisual().indexOfName(e)},e.prototype.getItemVisual=function(e,t){return this._getDataWithEncodedVisual().getItemVisual(e,t)},e}(),FS=function(){function e(e,t){this.target=e,this.topTarget=t&&t.topTarget}return e}(),IS=function(){function e(e){this.handler=e,e.on(`mousedown`,this._dragStart,this),e.on(`mousemove`,this._drag,this),e.on(`mouseup`,this._dragEnd,this)}return e.prototype._dragStart=function(e){for(var t=e.target;t&&!t.draggable;)t=t.parent||t.__hostTarget;t&&(this._draggingTarget=t,t.dragging=!0,this._x=e.offsetX,this._y=e.offsetY,this.handler.dispatchToElement(new FS(t,e),`dragstart`,e.event))},e.prototype._drag=function(e){var t=this._draggingTarget;if(t){var n=e.offsetX,r=e.offsetY,i=n-this._x,a=r-this._y;this._x=n,this._y=r,t.drift(i,a,e),this.handler.dispatchToElement(new FS(t,e),`drag`,e.event);var o=this.handler.findHover(n,r,t).target,s=this._dropTarget;this._dropTarget=o,t!==o&&(s&&o!==s&&this.handler.dispatchToElement(new FS(s,e),`dragleave`,e.event),o&&o!==s&&this.handler.dispatchToElement(new FS(o,e),`dragenter`,e.event))}},e.prototype._dragEnd=function(e){var t=this._draggingTarget;t&&(t.dragging=!1),this.handler.dispatchToElement(new FS(t,e),`dragend`,e.event),this._dropTarget&&this.handler.dispatchToElement(new FS(this._dropTarget,e),`drop`,e.event),this._draggingTarget=null,this._dropTarget=null},e}(),LS=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,RS=[],zS=We.browser.firefox&&+We.browser.version.split(`.`)[0]<39;function BS(e,t,n,r){return n||={},r?VS(e,t,n):zS&&t.layerX!=null&&t.layerX!==t.offsetX?(n.zrX=t.layerX,n.zrY=t.layerY):t.offsetX==null?VS(e,t,n):(n.zrX=t.offsetX,n.zrY=t.offsetY),n}function VS(e,t,n){if(We.domSupported&&e.getBoundingClientRect){var r=t.clientX,i=t.clientY;if(Bh(e)){var a=e.getBoundingClientRect();n.zrX=r-a.left,n.zrY=i-a.top;return}if(Lh(RS,e,r,i)){n.zrX=RS[0],n.zrY=RS[1];return}}n.zrX=n.zrY=0}function HS(e){return e||window.event}function US(e,t,n){if(t=HS(t),t.zrX!=null)return t;var r=t.type;if(r&&r.indexOf(`touch`)>=0){var i=r===`touchend`?t.changedTouches[0]:t.targetTouches[0];i&&BS(e,i,t,n)}else{BS(e,t,t,n);var a=WS(t);t.zrDelta=a?a/120:-(t.detail||0)/3}var o=t.button;return t.which==null&&o!==void 0&&LS.test(t.type)&&(t.which=o&1?1:o&2?3:o&4?2:0),t}function WS(e){var t=e.wheelDelta;if(t)return t;var n=e.deltaX,r=e.deltaY;if(n==null||r==null)return t;var i=Math.abs(r===0?n:r),a=r>0?-1:r<0?1:n>0?-1:1;return 3*i*a}function GS(e,t,n,r){e.addEventListener(t,n,r)}function KS(e,t,n,r){e.removeEventListener(t,n,r)}var qS=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0};function JS(e){return e.which===2||e.which===3}var YS=function(){function e(){this._track=[]}return e.prototype.recognize=function(e,t,n){return this._doTrack(e,t,n),this._recognize(e)},e.prototype.clear=function(){return this._track.length=0,this},e.prototype._doTrack=function(e,t,n){var r=e.touches;if(r){for(var i={points:[],touches:[],target:t,event:e},a=0,o=r.length;a1&&r&&r.length>1){var a=XS(r)/XS(i);!isFinite(a)&&(a=1),t.pinchScale=a;var o=ZS(r);return t.pinchX=o[0],t.pinchY=o[1],{type:`pinch`,target:e[0].target,event:t}}}}},$S=`silent`;function eC(e,t,n){return{type:e,event:n,target:t.target,topTarget:t.topTarget,cancelBubble:!1,offsetX:n.zrX,offsetY:n.zrY,gestureEvent:n.gestureEvent,pinchX:n.pinchX,pinchY:n.pinchY,pinchScale:n.pinchScale,wheelDelta:n.zrDelta,zrByTouch:n.zrByTouch,which:n.which,stop:tC}}function tC(){qS(this.event)}var nC=function(e){p(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.handler=null,t}return t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t}($i),rC=function(){function e(e,t){this.x=e,this.y=t}return e}(),iC=[`click`,`dblclick`,`mousewheel`,`mouseout`,`mouseup`,`mousedown`,`mousemove`,`contextmenu`],aC=new rn(0,0,0,0),oC=function(e){p(t,e);function t(t,n,r,i,a){var o=e.call(this)||this;return o._hovered=new rC(0,0),o.storage=t,o.painter=n,o.painterRoot=i,o._pointerSize=a,r||=new nC,o.proxy=null,o.setHandlerProxy(r),o._draggingMgr=new IS(o),o}return t.prototype.setHandlerProxy=function(e){this.proxy&&this.proxy.dispose(),e&&(I(iC,function(t){e.on&&e.on(t,this[t],this)},this),e.handler=this),this.proxy=e},t.prototype.mousemove=function(e){var t=e.zrX,n=e.zrY,r=lC(this,t,n),i=this._hovered,a=i.target;a&&!a.__zr&&(i=this.findHover(i.x,i.y),a=i.target);var o=this._hovered=r?new rC(t,n):this.findHover(t,n),s=o.target,c=this.proxy;c.setCursor&&c.setCursor(s?s.cursor:`default`),a&&s!==a&&this.dispatchToElement(i,`mouseout`,e),this.dispatchToElement(o,`mousemove`,e),s&&s!==a&&this.dispatchToElement(o,`mouseover`,e)},t.prototype.mouseout=function(e){var t=e.zrEventControl;t!==`only_globalout`&&this.dispatchToElement(this._hovered,`mouseout`,e),t!==`no_globalout`&&this.trigger(`globalout`,{type:`globalout`,event:e})},t.prototype.resize=function(){this._hovered=new rC(0,0)},t.prototype.dispatch=function(e,t){var n=this[e];n&&n.call(this,t)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(e){var t=this.proxy;t.setCursor&&t.setCursor(e)},t.prototype.dispatchToElement=function(e,t,n){e||={};var r=e.target;if(!(r&&r.silent)){for(var i=`on`+t,a=eC(t,e,n);r&&(r[i]&&(a.cancelBubble=!!r[i].call(r,a)),r.trigger(t,a),r=r.__hostTarget?r.__hostTarget:r.parent,!a.cancelBubble););a.cancelBubble||(this.trigger(t,a),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(e){typeof e[i]==`function`&&e[i].call(e,a),e.trigger&&e.trigger(t,a)}))}},t.prototype.findHover=function(e,t,n){var r=this.storage.getDisplayList(),i=new rC(e,t);if(cC(r,i,e,t,n),this._pointerSize&&!i.target){for(var a=[],o=this._pointerSize,s=o/2,c=new rn(e-s,t-s,o,o),l=r.length-1;l>=0;l--){var u=r[l];u!==n&&!u.ignore&&!u.ignoreCoarsePointer&&(!u.parent||!u.parent.ignoreCoarsePointer)&&(aC.copy(u.getBoundingRect()),u.transform&&aC.applyTransform(u.transform),aC.intersect(c)&&a.push(u))}if(a.length){for(var d=4,f=Math.PI/12,p=Math.PI*2,m=0;m4)return;this._downPoint=null}this.dispatchToElement(a,e,t)}});function sC(e,t,n){if(e[e.rectHover?`rectContain`:`contain`](t,n)){for(var r=e,i=void 0,a=!1;r;){if(r.ignoreClip&&(a=!0),!a){var o=r.getClipPath();if(o&&!o.contain(t,n))return!1}r.silent&&(i=!0);var s=r.__hostTarget;r=s?r.ignoreHostSilent?null:s:r.parent}return!i||$S}return!1}function cC(e,t,n,r,i){for(var a=e.length-1;a>=0;a--){var o=e[a],s=void 0;if(o!==i&&!o.ignore&&(s=sC(o,n,r))&&(!t.topTarget&&(t.topTarget=o),s!==$S)){t.target=o;break}}}function lC(e,t,n){var r=e.painter;return t<0||t>r.getWidth()||n<0||n>r.getHeight()}var uC=32,dC=7;function fC(e){for(var t=0;e>=uC;)t|=e&1,e>>=1;return e+t}function pC(e,t,n,r){var i=t+1;if(i===n)return 1;if(r(e[i++],e[t])<0){for(;i=0;)i++;return i-t}function mC(e,t,n){for(n--;t>>1,i(a,e[c])<0?s=c:o=c+1;var l=r-o;switch(l){case 3:e[o+3]=e[o+2];case 2:e[o+2]=e[o+1];case 1:e[o+1]=e[o];break;default:for(;l>0;)e[o+l]=e[o+l-1],l--}e[o]=a}}function gC(e,t,n,r,i,a){var o=0,s=0,c=1;if(a(e,t[n+i])>0){for(s=r-i;c0;)o=c,c=(c<<1)+1,c<=0&&(c=s);c>s&&(c=s),o+=i,c+=i}else{for(s=i+1;cs&&(c=s);var l=o;o=i-c,c=i-l}for(o++;o>>1);a(e,t[n+u])>0?o=u+1:c=u}return c}function _C(e,t,n,r,i,a){var o=0,s=0,c=1;if(a(e,t[n+i])<0){for(s=i+1;cs&&(c=s);var l=o;o=i-c,c=i-l}else{for(s=r-i;c=0;)o=c,c=(c<<1)+1,c<=0&&(c=s);c>s&&(c=s),o+=i,c+=i}for(o++;o>>1);a(e,t[n+u])<0?c=u:o=u+1}return c}function vC(e,t){var n=dC,r,i,a=0,o=[];r=[],i=[];function s(e,t){r[a]=e,i[a]=t,a+=1}function c(){for(;a>1;){var e=a-2;if(e>=1&&i[e-1]<=i[e]+i[e+1]||e>=2&&i[e-2]<=i[e]+i[e-1])i[e-1]i[e+1])break;u(e)}}function l(){for(;a>1;){var e=a-2;e>0&&i[e-1]=dC||m>=dC);if(h)break;f<0&&(f=0),f+=2}if(n=f,n<1&&(n=1),i===1){for(c=0;c=0;c--)e[p+c]=e[f+c];e[d]=o[u];return}for(var m=n;;){var h=0,g=0,_=!1;do if(t(o[u],e[l])<0){if(e[d--]=e[l--],h++,g=0,--i===0){_=!0;break}}else if(e[d--]=o[u--],g++,h=0,--s===1){_=!0;break}while((h|g)=0;c--)e[p+c]=e[f+c];if(i===0){_=!0;break}}if(e[d--]=o[u--],--s===1){_=!0;break}if(g=s-gC(e[l],o,0,s,s-1,t),g!==0){for(d-=g,u-=g,s-=g,p=d+1,f=u+1,c=0;c=dC||g>=dC);if(_)break;m<0&&(m=0),m+=2}if(n=m,n<1&&(n=1),s===1){for(d-=i,l-=i,p=d+1,f=l+1,c=i-1;c>=0;c--)e[p+c]=e[f+c];e[d]=o[u]}else if(s===0)throw Error();else for(f=d-(s-1),c=0;cs&&(c=s),hC(e,n,n+c,n+a,t),a=c}o.pushRun(n,a),o.mergeRuns(),i-=a,n+=a}while(i!==0);o.forceMergeRuns()}}var bC=!1;function xC(){bC||(bC=!0,console.warn(`z / z2 / zlevel of displayable is invalid, which may cause unexpected errors`))}function SC(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var CC=function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=SC}return e.prototype.traverse=function(e,t){for(var n=0;n=0&&this._roots.splice(r,1)},e.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},e.prototype.getRoots=function(){return this._roots},e.prototype.dispose=function(){this._displayList=null,this._roots=null},e}(),wC=We.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(e){return setTimeout(e,16)};function TC(){return new Date().getTime()}var EC=function(e){p(t,e);function t(t){var n=e.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,t||={},n.stage=t.stage||{},n}return t.prototype.addClip=function(e){e.animation&&this.removeClip(e),this._head?(this._tail.next=e,e.prev=this._tail,e.next=null,this._tail=e):this._head=this._tail=e,e.animation=this},t.prototype.addAnimator=function(e){e.animation=this;var t=e.getClip();t&&this.addClip(t)},t.prototype.removeClip=function(e){if(e.animation){var t=e.prev,n=e.next;t?t.next=n:this._head=n,n?n.prev=t:this._tail=t,e.next=e.prev=e.animation=null}},t.prototype.removeAnimator=function(e){var t=e.getClip();t&&this.removeClip(t),e.animation=null},t.prototype.update=function(e){for(var t=TC()-this._pausedTime,n=t-this._time,r=this._head;r;){var i=r.next;r.step(t,n)?(r.ondestroy(),this.removeClip(r),r=i):r=i}this._time=t,e||(this.trigger(`frame`,n),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var e=this;this._running=!0;function t(){e._running&&(wC(t),!e._paused&&e.update())}wC(t)},t.prototype.start=function(){this._running||(this._time=TC(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||=(this._pauseStart=TC(),!0)},t.prototype.resume=function(){this._paused&&=(this._pausedTime+=TC()-this._pauseStart,!1)},t.prototype.clear=function(){for(var e=this._head;e;){var t=e.next;e.prev=e.next=e.animation=null,e=t}this._head=this._tail=null},t.prototype.isFinished=function(){return this._head==null},t.prototype.animate=function(e,t){t||={},this.start();var n=new Qi(e,t.loop);return this.addAnimator(n),n},t}($i),DC=300,OC=We.domSupported,kC=(function(){var e=[`click`,`dblclick`,`mousewheel`,`wheel`,`mouseout`,`mouseup`,`mousedown`,`mousemove`,`contextmenu`],t=[`touchstart`,`touchend`,`touchmove`],n={pointerdown:1,pointerup:1,pointermove:1,pointerout:1};return{mouse:e,touch:t,pointer:L(e,function(e){var t=e.replace(`mouse`,`pointer`);return n.hasOwnProperty(t)?t:e})}})(),AC={mouse:[`mousemove`,`mouseup`],pointer:[`pointermove`,`pointerup`]},jC=!1;function MC(e){var t=e.pointerType;return t===`pen`||t===`touch`}function NC(e){e.touching=!0,e.touchTimer!=null&&(clearTimeout(e.touchTimer),e.touchTimer=null),e.touchTimer=setTimeout(function(){e.touching=!1,e.touchTimer=null},700)}function PC(e){e&&(e.zrByTouch=!0)}function FC(e,t){return US(e.dom,new LC(e,t),!0)}function IC(e,t){for(var n=t,r=!1;n&&n.nodeType!==9&&!(r=n.domBelongToZr||n!==t&&n===e.painterRoot);)n=n.parentNode;return r}var LC=function(){function e(e,t){this.stopPropagation=Ve,this.stopImmediatePropagation=Ve,this.preventDefault=Ve,this.type=t.type,this.target=this.currentTarget=e.dom,this.pointerType=t.pointerType,this.clientX=t.clientX,this.clientY=t.clientY}return e}(),RC={mousedown:function(e){e=US(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger(`mousedown`,e)},mousemove:function(e){e=US(this.dom,e);var t=this.__mayPointerCapture;t&&(e.zrX!==t[0]||e.zrY!==t[1])&&this.__togglePointerCapture(!0),this.trigger(`mousemove`,e)},mouseup:function(e){e=US(this.dom,e),this.__togglePointerCapture(!1),this.trigger(`mouseup`,e)},mouseout:function(e){e=US(this.dom,e);var t=e.toElement||e.relatedTarget;IC(this,t)||(this.__pointerCapturing&&(e.zrEventControl=`no_globalout`),this.trigger(`mouseout`,e))},wheel:function(e){jC=!0,e=US(this.dom,e),this.trigger(`mousewheel`,e)},mousewheel:function(e){jC||(e=US(this.dom,e),this.trigger(`mousewheel`,e))},touchstart:function(e){e=US(this.dom,e),PC(e),this.__lastTouchMoment=new Date,this.handler.processGesture(e,`start`),RC.mousemove.call(this,e),RC.mousedown.call(this,e)},touchmove:function(e){e=US(this.dom,e),PC(e),this.handler.processGesture(e,`change`),RC.mousemove.call(this,e)},touchend:function(e){e=US(this.dom,e),PC(e),this.handler.processGesture(e,`end`),RC.mouseup.call(this,e),new Date-+this.__lastTouchMoment0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},e.prototype.setSleepAfterStill=function(e){this._sleepAfterStill=e},e.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},e.prototype.refreshHover=function(){this._needsRefreshHover=!0},e.prototype.refreshHoverImmediately=function(){this._disposed||this._refresh({animUpdate:!1,refresh:!1,refreshHover:!0})},e.prototype.resize=function(e){this._disposed||(e||={},this.painter.resize(e.width,e.height),this.handler.resize())},e.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},e.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},e.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},e.prototype.setCursorStyle=function(e){this._disposed||this.handler.setCursorStyle(e)},e.prototype.findHover=function(e,t){if(!this._disposed)return this.handler.findHover(e,t)},e.prototype.on=function(e,t,n){return this._disposed||this.handler.on(e,t,n),this},e.prototype.off=function(e,t){this._disposed||this.handler.off(e,t)},e.prototype.trigger=function(e,t){this._disposed||this.handler.trigger(e,t)},e.prototype.clear=function(){if(!this._disposed){for(var e=this.storage.getRoots(),t=0;t=0;o--)r[o]&&!Ec(r[o])?a=!0:(r[o]=null,!a&&i--);r.length=i,e[n]=r}}),delete e[fw],e},t.prototype.setTheme=function(e){this._theme=new Ep(e),this._resetOption(`recreate`,null)},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(e){this._payload=e},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(e,t){var n=this._componentsMap.get(e);if(n){var r=n[t||0];if(r)return r;if(t==null){for(var i=0;i=t:n===`max`?e<=t:e===t}function Tw(e,t){return e.join(`,`)===t.join(`,`)}var Ew=I,Dw=B,Ow=[`areaStyle`,`lineStyle`,`nodeStyle`,`linkStyle`,`chordStyle`,`label`,`labelLine`];function kw(e){var t=e&&e.itemStyle;if(t)for(var n=0,r=Ow.length;n0?e[n-1].seriesModel:null)}),Qw(e))})}function Qw(e){I(e,function(t,n){var r=[],i=[NaN,NaN],a=[t.stackResultDimension,t.stackedOverDimension],o=t.data,s=t.isStackedByIndex,c=t.seriesModel.get(`stackStrategy`)||`samesign`;o.modify(a,function(a,l,u){var d=o.get(t.stackedDimension,u);if(isNaN(d))return i;var f,p;s?p=o.getRawIndex(u):f=o.get(t.stackedByDimension,u);for(var m=NaN,h=n-1;h>=0;h--){var g=e[h];if(s||(p=g.data.rawIndexOf(g.stackedByDimension,f)),p>=0){var _=g.data.getByRawIndex(g.stackResultDimension,p);if(c===`all`||c===`positive`&&_>0||c===`negative`&&_<0||c===`samesign`&&d>=0&&_>0||c===`samesign`&&d<=0&&_<0){d=Vs(d,_),m=_;break}}}return r[0]=d,r[1]=m,r})})}var $w=function(){function e(){this.group=new Yu,this.uid=Eh(`viewComponent`)}return e.prototype.init=function(e,t){},e.prototype.render=function(e,t,n,r){},e.prototype.dispose=function(e,t){},e.prototype.updateView=function(e,t,n,r){},e.prototype.updateLayout=function(e,t,n,r){},e.prototype.updateVisual=function(e,t,n,r){},e.prototype.toggleBlurSeries=function(e,t,n){},e.prototype.eachRendered=function(e){var t=this.group;t&&t.traverse(e)},e}();Qe($w),at($w);var eT=jc(),tT={itemStyle:ot(Cp,!0),lineStyle:ot(bp,!0)},nT={lineStyle:`stroke`,itemStyle:`fill`};function rT(e,t){return e.visualStyleMapper||tT[t]||(console.warn(`Unknown style type '`+t+`'.`),tT.itemStyle)}function iT(e,t){return e.visualDrawType||nT[t]||(console.warn(`Unknown style type '`+t+`'.`),`fill`)}var aT={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData(),r=e.visualStyleAccessPath||`itemStyle`,i=e.getModel(r),a=rT(e,r)(i),o=i.getShallow(`decal`);o&&(n.setVisual(`decal`,o),o.dirty=!0);var s=iT(e,r),c=a[s],l=ge(c)?c:null,u=a.fill===`auto`||a.stroke===`auto`;if(!a[s]||l||u){var d=e.getColorFromPalette(e.name,null,t.getSeriesCount());a[s]||(a[s]=d,n.setVisual(`colorFromPalette`,!0)),a.fill=a.fill===`auto`||ge(a.fill)?d:a.fill,a.stroke=a.stroke===`auto`||ge(a.stroke)?d:a.stroke}if(n.setVisual(`style`,a),n.setVisual(`drawType`,s),!t.isSeriesFiltered(e)&&l)return n.setVisual(`colorFromPalette`,!1),{dataEach:function(t,n){var r=e.getDataParams(n),i=P({},a);i[s]=l(r),t.setItemVisual(n,`style`,i)}}}},oT=new Ep,sT={createOnAllSeries:!0,reset:function(e,t){if(!e.ignoreStyleOnData){var n=e.getData(),r=e.visualStyleAccessPath||`itemStyle`,i=rT(e,r),a=n.getVisual(`drawType`);return{dataEach:n.hasItemOption?function(e,t){var n=e.getRawDataItem(t);if(n&&n[r]){oT.option=n[r];var o=i(oT);P(e.ensureUniqueItemVisual(t,`style`),o),oT.option.decal&&(e.setItemVisual(t,`decal`,oT.option.decal),oT.option.decal.dirty=!0),a in o&&e.setItemVisual(t,`colorFromPalette`,!1)}}:null}}}},cT={performRawSeries:!0,overallReset:function(e){var t=Le();e.eachSeries(function(e){if(!e.isColorBySeries()){var n=e.type+`-`+e.getColorBy();eT(e).scope=t.get(n)||t.set(n,{})}}),e.eachSeries(function(e){if(!e.isColorBySeries()){var t=e.getRawData(),n={},r=e.getData(),i=eT(e).scope,a=iT(e,e.visualStyleAccessPath||`itemStyle`);r.each(function(e){var t=r.getRawIndex(e);n[t]=e}),t.each(function(o){var s=n[o];if(r.getItemVisual(s,`colorFromPalette`)){var c=r.ensureUniqueItemVisual(s,`style`),l=t.getName(o)||o+``,u=t.count();c[a]=e.getColorFromPalette(l,i,u)}})}})}},lT=Math.PI;function uT(e,t){t||={},F(t,{text:`loading`,textColor:H.color.primary,fontSize:12,fontWeight:`normal`,fontStyle:`normal`,fontFamily:`sans-serif`,maskColor:`rgba(255,255,255,0.8)`,showSpinner:!0,color:H.color.theme[0],spinnerRadius:10,lineWidth:5,zlevel:0});var n=new Yu,r=new Zo({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});n.add(r);var i=new ns({style:{text:t.text,fill:t.textColor,fontSize:t.fontSize,fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:t.fontFamily},zlevel:t.zlevel,z:10001}),a=new Zo({style:{fill:`none`},textContent:i,textConfig:{position:`right`,distance:10},zlevel:t.zlevel,z:10001});n.add(a);var o;return t.showSpinner&&(o=new Nd({shape:{startAngle:-lT/2,endAngle:-lT/2+.1,r:t.spinnerRadius},style:{stroke:t.color,lineCap:`round`,lineWidth:t.lineWidth},zlevel:t.zlevel,z:10001}),o.animateShape(!0).when(1e3,{endAngle:lT*3/2}).start(`circularInOut`),o.animateShape(!0).when(1e3,{startAngle:lT*3/2}).delay(300).start(`circularInOut`),n.add(o)),n.resize=function(){var n=i.getBoundingRect().width,s=t.showSpinner?t.spinnerRadius:0,c=(e.getWidth()-s*2-(t.showSpinner&&n?10:0)-n)/2-(t.showSpinner&&n?0:5+n/2)+(t.showSpinner?0:n/2)+(n?0:s),l=e.getHeight()/2;t.showSpinner&&o.setShape({cx:c,cy:l}),a.setShape({x:c-s,y:l-s,width:s*2,height:s*2}),r.setShape({x:0,y:0,width:e.getWidth(),height:e.getHeight()})},n.resize(),n}var dT=function(){function e(e,t,n,r){this._stageTaskMap=Le(),this.ecInstance=e,this.api=t,n=this._dataProcessorHandlers=n.slice(),r=this._visualHandlers=r.slice(),this._allHandlers=n.concat(r)}return e.prototype.restoreData=function(e,t){e.restoreData(t),this._stageTaskMap.each(function(e){var t=e.overallTask;t&&t.dirty()})},e.prototype.getPerformArgs=function(e,t){if(e.__pipeline){var n=this._pipelineMap.get(e.__pipeline.id),r=n.context,i=!t&&n.progressiveEnabled&&(!r||r.progressiveRender)&&e.__idxInPipeline>n.blockIndex?n.step:null,a=r&&r.modDataCount;return{step:i,modBy:a==null?null:Math.ceil(a/i),modDataCount:a}}},e.prototype.getPipeline=function(e){return this._pipelineMap.get(e)},e.prototype.updateStreamModes=function(e,t){var n=this._pipelineMap.get(e.uid);e.pipelineContext=n.context=e.__preparePipelineContext?e.__preparePipelineContext(t,n):rl(e,t,n)},e.prototype.restorePipelines=function(e,t){var n=this,r=n._pipelineMap=Le();t.eachSeries(function(t){var i=e.painter.type===`canvas`&&t.getProgressive(),a=t.uid;r.set(a,{id:a,head:null,tail:null,threshold:t.getProgressiveThreshold(),progressiveEnabled:i&&!(t.preventIncremental&&t.preventIncremental()),blockIndex:-1,step:Math.round(i||700),count:0}),n._pipe(t,t.dataTask)})},e.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,t=this.api.getModel(),n=this.api;I(this._allHandlers,function(r){var i=e.get(r.uid)||e.set(r.uid,{});Oe(!(r.reset&&r.overallReset),``),r.reset&&this._createSeriesStageTask(r,i,t,n),r.overallReset&&this._createOverallStageTask(r,i,t,n)},this)},e.prototype.prepareView=function(e,t,n,r){var i=e.renderTask,a=i.context;a.model=t,a.ecModel=n,a.api=r,i.__block=!e.incrementalPrepareRender,this._pipe(t,i)},e.prototype.performDataProcessorTasks=function(e,t){this._performStageTasks(this._dataProcessorHandlers,e,t,{block:!0})},e.prototype.performVisualTasks=function(e,t,n){this._performStageTasks(this._visualHandlers,e,t,n)},e.prototype._performStageTasks=function(e,t,n,r){r||={};var i=!1,a=this;I(e,function(e,s){if(!(r.visualType&&r.visualType!==e.visualType)){var c=a._stageTaskMap.get(e.uid),l=c.seriesTaskMap,u=c.overallTask;if(u){var d,f=u.agentStubMap;f.each(function(e){o(r,e)&&(e.dirty(),d=!0)}),d&&u.dirty(),a.updatePayload(u,n);var p=a.getPerformArgs(u,r.block);f.each(function(e){e.perform(p)}),u.perform(p)&&(i=!0)}else l&&l.each(function(s,c){o(r,s)&&s.dirty();var l=a.getPerformArgs(s,r.block);l.skip=!e.performRawSeries&&t.isSeriesFiltered(s.context.model),a.updatePayload(s,n),s.perform(l)&&(i=!0)})}});function o(e,t){return e.setDirty&&(!e.dirtyMap||e.dirtyMap.get(t.__pipeline.id))}this.unfinished=i||this.unfinished},e.prototype.performSeriesTasks=function(e){var t;e.eachSeries(function(e){t=e.dataTask.perform()||t}),this.unfinished=t||this.unfinished},e.prototype.plan=function(){this._pipelineMap.each(function(e){var t=e.tail;do{if(t.__block){e.blockIndex=t.__idxInPipeline;break}t=t.getUpstream()}while(t)})},e.prototype.updatePayload=function(e,t){t!==`remain`&&(e.context.payload=t)},e.prototype._createSeriesStageTask=function(e,t,n,r){var i=this,a=t.seriesTaskMap,o=t.seriesTaskMap=Le(),s=e.seriesType,c=e.getTargetSeries;e.createOnAllSeries?n.eachRawSeries(l):s?n.eachRawSeriesByType(s,l):c&&c(n,r).each(l);function l(t){var s=t.uid,c=o.set(s,a&&a.get(s)||E_({plan:gT,reset:_T,count:bT}));c.context={model:t,ecModel:n,api:r,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:i},i._pipe(t,c)}},e.prototype._createOverallStageTask=function(e,t,n,r){var i=this,a=t.overallTask=t.overallTask||E_({reset:fT});a.context={ecModel:n,api:r,overallReset:e.overallReset,scheduler:i};var o=a.agentStubMap,s=a.agentStubMap=Le(),c=e.seriesType,l=e.getTargetSeries,u=e.dirtyOnOverallProgress,d=!1;Oe(!e.createOnAllSeries,``),c?n.eachRawSeriesByType(c,f):l?l(n,r).each(f):I(n.getSeries(),f);function f(e){var t=e.uid,n=s.set(t,o&&o.get(t)||(d=!0,E_({reset:pT,onDirty:hT})));n.context={model:e,dirtyOnOverallProgress:u},n.agent=a,n.__block=u,i._pipe(e,n)}d&&a.dirty()},e.prototype._pipe=function(e,t){var n=e.uid,r=this._pipelineMap.get(n);!r.head&&(r.head=t),r.tail&&r.tail.pipe(t),r.tail=t,t.__idxInPipeline=r.count++,t.__pipeline=r},e.wrapStageHandler=function(e,t){return ge(e)&&(e={overallReset:e,seriesType:xT(e)}),e.uid=Eh(`stageHandler`),t&&(e.visualType=t),e},e}();function fT(e){e.overallReset(e.ecModel,e.api,e.payload)}function pT(e){return e.dirtyOnOverallProgress&&mT}function mT(){this.agent.dirty(),this.getDownstream().dirty()}function hT(){this.agent&&this.agent.dirty()}function gT(e){return e.plan?e.plan(e.model,e.ecModel,e.api,e.payload):null}function _T(e){e.useClearVisual&&e.data.clearAllVisual();var t=e.resetDefines=uc(e.reset(e.model,e.ecModel,e.api,e.payload));return t.length>1?L(t,function(e,t){return yT(t)}):vT}var vT=yT(0);function yT(e){return function(t,n){var r=n.data,i=n.resetDefines[e];if(i&&i.dataEach)for(var a=t.start;a0&&u===i.length-l.length){var d=i.slice(0,u);d!==`data`&&(t.mainType=d,t[l.toLowerCase()]=e,s=!0)}}o.hasOwnProperty(i)&&(n[i]=e,s=!0),s||(r[i]=e)})}return{cptQuery:t,dataQuery:n,otherQuery:r}},e.prototype.filter=function(e,t){var n=this.eventInfo;if(!n)return!0;var r=n.targetEl,i=n.packedEvent,a=n.model,o=n.view;if(!a||!o)return!0;var s=t.cptQuery,c=t.dataQuery;return l(s,a,`mainType`)&&l(s,a,`subType`)&&l(s,a,`index`,`componentIndex`)&&l(s,a,`name`)&&l(s,a,`id`)&&l(c,i,`name`)&&l(c,i,`dataIndex`)&&l(c,i,`dataType`)&&(!o.filterForExposedEvent||o.filterForExposedEvent(e,t.otherQuery,r,i));function l(e,t,n,r){return e[n]==null||t[r||n]===e[n]}},e.prototype.afterTrigger=function(){this.eventInfo=null},e}(),jT=[`symbol`,`symbolSize`,`symbolRotate`,`symbolOffset`],MT=jT.concat([`symbolKeepAspect`]),NT={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData();if(e.legendIcon&&n.setVisual(`legendIcon`,e.legendIcon),!e.hasSymbolVisual)return;for(var r={},i={},a=!1,o=0;o=0&&JT(c)?c:.5,e.createRadialGradient(o,s,0,o,s,c)}function ZT(e,t,n){for(var r=t.type===`radial`?XT(e,t,n):YT(e,t,n),i=t.colorStops,a=0;a0)?null:e===`dashed`?[4*t,2*t]:e===`dotted`?[t]:ve(e)?[e]:R(e)?e:null}function nE(e){var t=e.style,n=t.lineDash&&t.lineWidth>0&&tE(t.lineDash,t.lineWidth),r=t.lineDashOffset;if(n){var i=t.strokeNoScale&&e.getLineScale?e.getLineScale():1;i&&i!==1&&(n=L(n,function(e){return e/i}),r/=i)}return[n,r]}var rE=new fo(!0);function iE(e){var t=e.stroke;return!(t==null||t===`none`||!(e.lineWidth>0))}function aE(e){return typeof e==`string`&&e!==`none`}function oE(e){var t=e.fill;return t!=null&&t!==`none`}function sE(e,t){if(t.fillOpacity!=null&&t.fillOpacity!==1){var n=e.globalAlpha;e.globalAlpha=t.fillOpacity*t.opacity,e.fill(),e.globalAlpha=n}else e.fill()}function cE(e,t){if(t.strokeOpacity!=null&&t.strokeOpacity!==1){var n=e.globalAlpha;e.globalAlpha=t.strokeOpacity*t.opacity,e.stroke(),e.globalAlpha=n}else e.stroke()}function lE(e,t,n){var r=mt(t.image,t.__image,n);if(gt(r)){var i=e.createPattern(r,t.repeat||`repeat`);if(typeof DOMMatrix==`function`&&i&&i.setTransform){var a=new DOMMatrix;a.translateSelf(t.x||0,t.y||0),a.rotateSelf(0,0,(t.rotation||0)*He),a.scaleSelf(t.scaleX||1,t.scaleY||1),i.setTransform(a)}return i}}function uE(e,t,n,r,i){var a,o=iE(n),s=oE(n),c=n.strokePercent,l=c<1,u=!t.path;(!t.silent||l)&&u&&t.createPathProxy();var d=t.path||rE,f=t.__dirty;if(!r){var p=n.fill,m=n.stroke,h=s&&!!p.colorStops,g=o&&!!m.colorStops,_=s&&!!p.image,v=o&&!!m.image,y=void 0,b=void 0,x=void 0,S=void 0,C=void 0;(h||g)&&(C=t.getBoundingRect()),h&&(y=f?ZT(e,p,C):t.__canvasFillGradient,t.__canvasFillGradient=y),g&&(b=f?ZT(e,m,C):t.__canvasStrokeGradient,t.__canvasStrokeGradient=b),_&&(x=f||!t.__canvasFillPattern?lE(e,p,t):t.__canvasFillPattern,t.__canvasFillPattern=x),v&&(S=f||!t.__canvasStrokePattern?lE(e,m,t):t.__canvasStrokePattern,t.__canvasStrokePattern=S),h?e.fillStyle=y:_&&(x?e.fillStyle=x:s=!1),g?e.strokeStyle=b:v&&(S?e.strokeStyle=S:o=!1)}var w=t.getGlobalScale();d.setScale(w[0],w[1],t.segmentIgnoreThreshold);var T,E;e.setLineDash&&n.lineDash&&(a=nE(t),T=a[0],E=a[1]);var D=!0;(u||f&4)&&(d.setDPR(e.dpr),l?d.setContext(null):(d.setContext(e),D=!1),d.reset(),t.buildPath(d,t.shape,r),d.toStatic(),t.pathUpdated()),D&&d.rebuildPath(e,l?c:1),T&&(e.setLineDash(T),e.lineDashOffset=E),r?(i.batchFill=s,i.batchStroke=o):n.strokeFirst?(o&&cE(e,n),s&&sE(e,n)):(s&&sE(e,n),o&&cE(e,n)),T&&e.setLineDash([])}function dE(e,t,n){var r=t.__image=mt(n.image,t.__image,t,t.onload);if(!(!r||!gt(r))){var i=n.x||0,a=n.y||0,o=t.getWidth(),s=t.getHeight(),c=r.width/r.height;if(o==null&&s!=null?o=s*c:s==null&&o!=null?s=o/c:o==null&&s==null&&(o=r.width,s=r.height),n.sWidth&&n.sHeight){var l=n.sx||0,u=n.sy||0;e.drawImage(r,l,u,n.sWidth,n.sHeight,i,a,o,s)}else if(n.sx&&n.sy){var l=n.sx,u=n.sy,d=o-l,f=s-u;e.drawImage(r,l,u,d,f,i,a,o,s)}else e.drawImage(r,i,a,o,s)}}function fE(e,t,n){var r,i=n.text;if(i!=null&&(i+=``),i){e.font=n.font||`12px sans-serif`,e.textAlign=n.textAlign,e.textBaseline=n.textBaseline;var a=void 0,o=void 0;e.setLineDash&&n.lineDash&&(r=nE(t),a=r[0],o=r[1]),a&&(e.setLineDash(a),e.lineDashOffset=o),n.strokeFirst?(iE(n)&&e.strokeText(i,n.x,n.y),oE(n)&&e.fillText(i,n.x,n.y)):(oE(n)&&e.fillText(i,n.x,n.y),iE(n)&&e.strokeText(i,n.x,n.y)),a&&e.setLineDash([])}}var pE=[`shadowBlur`,`shadowOffsetX`,`shadowOffsetY`],mE=[[`lineCap`,`butt`],[`lineJoin`,`miter`],[`miterLimit`,10]];function hE(e,t,n,r,i){var a=!1;if(!r&&(n||={},t===n))return!1;if(r||t.opacity!==n.opacity){EE(e,i),a=!0;var o=Math.max(Math.min(t.opacity,1),0);e.globalAlpha=isNaN(o)?wa.opacity:o}(r||t.blend!==n.blend)&&(a||=(EE(e,i),!0),e.globalCompositeOperation=t.blend||wa.blend);for(var s=0;s0&&e.unfinished);e.unfinished||this._zr.flush()}}},t.prototype.getDom=function(){return this._dom},t.prototype.getId=function(){return this.id},t.prototype.getZr=function(){return this._zr},t.prototype.isSSR=function(){return this._ssr},t.prototype.setOption=function(e,t,n){if(!this[oD]){if(this._disposed){this.id;return}var r,i,a;if(B(t)&&(n=t.lazyUpdate,r=t.silent,i=t.replaceMerge,a=t.transition,t=t.notMerge),this[oD]=!0,RD(this),!this._model||t){var o=new xw(this._api),s=this._theme,c=this._model=new mw;c.scheduler=this._scheduler,c.ssr=this._ssr,c.init(null,null,null,s,this._locale,o)}this._model.setOption(e,{replaceMerge:i},KD);var l={seriesTransition:a,optionChanged:!0};if(n)this[cD]={silent:r,updateParams:l},this[oD]=!1,this.getZr().wakeUp();else{try{bD(this),CD.update.call(this,null,l)}catch(e){throw this[cD]=null,this[oD]=!1,e}this._ssr||this._zr.flush(),this[cD]=null,this[oD]=!1,DD.call(this,r),OD.call(this,r)}}},t.prototype.setTheme=function(e,t){if(!this[oD]){if(this._disposed){this.id;return}var n=this._model;if(n){var r=t&&t.silent,i=null;this[cD]&&(r??=this[cD].silent,i=this[cD].updateParams,this[cD]=null),this[oD]=!0,RD(this);try{this._updateTheme(e),n.setTheme(this._theme),bD(this),CD.update.call(this,{type:`setTheme`},i)}catch(e){throw this[oD]=!1,e}this[oD]=!1,DD.call(this,r),OD.call(this,r)}}},t.prototype._updateTheme=function(e){z(e)&&(e=JD[e]),e&&(e=M(e),e&&Yw(e,!0),this._theme=e)},t.prototype.getModel=function(){return this._model},t.prototype.getOption=function(){return this._model&&this._model.getOption()},t.prototype.getWidth=function(){return this._zr.getWidth()},t.prototype.getHeight=function(){return this._zr.getHeight()},t.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||We.hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(e){return this.renderToCanvas(e)},t.prototype.renderToCanvas=function(e){return e||={},this._zr.painter.getRenderedCanvas({backgroundColor:e.backgroundColor||this._model.get(`backgroundColor`),pixelRatio:e.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(e){return e||={},this._zr.painter.renderToString({useViewBox:e.useViewBox})},t.prototype.getSvgDataURL=function(){var e=this._zr;return I(e.storage.getDisplayList(),function(e){e.stopAnimation(null,!0)}),e.painter.toDataURL()},t.prototype.getDataURL=function(e){if(this._disposed){this.id;return}e||={};var t=e.excludeComponents,n=this._model,r=[],i=this;I(t,function(e){n.eachComponent({mainType:e},function(e){var t=i._componentsMap[e.__viewId];t.group.ignore||(r.push(t),t.group.ignore=!0)})});var a=this._zr.painter.getType()===`svg`?this.getSvgDataURL():this.renderToCanvas(e).toDataURL(`image/`+(e&&e.type||`png`));return I(r,function(e){e.group.ignore=!1}),a},t.prototype.getConnectedDataURL=function(e){if(this._disposed){this.id;return}var t=e.type===`svg`,n=this.group,r=Math.min,i=Math.max,a=1/0;if(ZD[n]){var o=a,s=a,c=-a,l=-a,u=[],d=e&&e.pixelRatio||this.getDevicePixelRatio();I(XD,function(a,d){if(a.group===n){var f=t?a.getZr().painter.getSvgDom().innerHTML:a.renderToCanvas(M(e)),p=a.getDom().getBoundingClientRect();o=r(p.left,o),s=r(p.top,s),c=i(p.right,c),l=i(p.bottom,l),u.push({dom:f,left:p.left,top:p.top})}}),o*=d,s*=d,c*=d,l*=d;var f=c-o,p=l-s,m=b.createCanvas(),h=ZC(m,{renderer:t?`svg`:`canvas`});if(h.resize({width:f,height:p}),t){var g=``;return I(u,function(e){var t=e.left-o,n=e.top-s;g+=``+e.dom+``}),h.painter.getSvgRoot().innerHTML=g,e.connectedBackgroundColor&&h.painter.setBackgroundColor(e.connectedBackgroundColor),h.refreshImmediately(),h.painter.toDataURL()}return e.connectedBackgroundColor&&h.add(new Zo({shape:{x:0,y:0,width:f,height:p},style:{fill:e.connectedBackgroundColor}})),I(u,function(e){var t=new Uo({style:{x:e.left*d-o,y:e.top*d-s,image:e.dom}});h.add(t)}),h.refreshImmediately(),m.toDataURL(`image/`+(e&&e.type||`png`))}return this.getDataURL(e)},t.prototype.convertToPixel=function(e,t,n){return wD(this,`convertToPixel`,e,t,n)},t.prototype.convertToLayout=function(e,t,n){return wD(this,`convertToLayout`,e,t,n)},t.prototype.convertFromPixel=function(e,t,n){return wD(this,`convertFromPixel`,e,t,n)},t.prototype.containPixel=function(e,t){if(this._disposed){this.id;return}var n=this._model,r;return I(Nc(n,e),function(e,n){n.indexOf(`Models`)>=0&&I(e,function(e){var i=e.coordinateSystem;if(i&&i.containPoint)r||=!!i.containPoint(t);else if(n===`seriesModels`){var a=this._chartsMap[e.__viewId];a&&a.containPoint&&(r||=a.containPoint(t,e))}},this)},this),!!r},t.prototype.getVisual=function(e,t){var n=this._model,r=Nc(n,e,{defaultMainType:`series`}),i=r.seriesModel.getData(),a=r.hasOwnProperty(`dataIndexInside`)?r.dataIndexInside:r.hasOwnProperty(`dataIndex`)?i.indexOfRawIndex(r.dataIndex):null;return a==null?IT(i,t):FT(i,a,t)},t.prototype.getViewOfComponentModel=function(e){return this._componentsMap[e.__viewId]},t.prototype.getViewOfSeriesModel=function(e){return this._chartsMap[e.__viewId]},t.prototype._initEvents=function(){var e=this;I(VD,function(t){var n=function(n){var r=e.getModel(),i=n.target,a;if(t===`globalout`?a={}:i&&RT(i,function(e){var t=ol(e);if(t&&t.dataIndex!=null){var n=t.dataModel||r.getSeriesByIndex(t.seriesIndex);return a=n&&n.getDataParams(t.dataIndex,t.dataType,i)||{},!0}if(t.eventData)return a=P({},t.eventData),!0},!0),a){var o=a.componentType,s=a.componentIndex;(o===`markLine`||o===`markPoint`||o===`markArea`)&&(o=`series`,s=a.seriesIndex);var c=o&&s!=null&&r.getComponent(o,s),l=c&&e[c.mainType===`series`?`_chartsMap`:`_componentsMap`][c.__viewId];a.event=n,a.type=t,e._$eventProcessor.eventInfo={targetEl:i,packedEvent:a,model:c,view:l},e.trigger(t,a)}};n.zrEventfulCallAtLast=!0,e._zr.on(t,n,e)});var t=this._messageCenter;I(WD,function(n,r){t.on(r,function(t){e.trigger(r,t)})}),NS(t,this,this._api)},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0,this.getDom()&&Rc(this.getDom(),$D,``);var e=this,t=e._api,n=e._model;I(e._componentsViews,function(e){e.dispose(n,t)}),I(e._chartsViews,function(e){e.dispose(n,t)}),e._zr.dispose(),e._dom=e._model=e._chartsMap=e._componentsMap=e._chartsViews=e._componentsViews=e._scheduler=e._api=e._zr=e._throttledZrFlush=e._theme=e._coordSysMgr=e._messageCenter=null,delete XD[e.id]},t.prototype.resize=function(e){if(!this[oD]){if(this._disposed){this.id;return}this._zr.resize(e);var t=this._model;if(this._loadingFX&&this._loadingFX.resize(),t){var n=t.resetOption(`media`),r=e&&e.silent;this[cD]&&(r??=this[cD].silent,n=!0,this[cD]=null),this[oD]=!0,RD(this);try{n&&bD(this),CD.update.call(this,{type:`resize`,animation:P({duration:0},e&&e.animation)})}catch(e){throw this[oD]=!1,e}this[oD]=!1,DD.call(this,r),OD.call(this,r)}}},t.prototype.showLoading=function(e,t){if(this._disposed){this.id;return}if(B(e)&&(t=e,e=``),e||=`default`,this.hideLoading(),YD[e]){var n=YD[e](this._api,t),r=this._zr;this._loadingFX=n,r.add(n)}},t.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},t.prototype.makeActionFromEvent=function(e){var t=P({},e);return t.type=UD[e.type],t},t.prototype.dispatchAction=function(e,t){if(this._disposed){this.id;return}if(B(t)||(t={silent:!!t}),HD[e.type]&&this._model){if(this[oD]){this._pendingActions.push(e);return}var n=t.silent;ED.call(this,e,n);var r=t.flush;r?this._zr.flush():r!==!1&&We.browser.weChat&&this._throttledZrFlush(),DD.call(this,n),OD.call(this,n)}},t.prototype.updateLabelLayout=function(){zT.trigger(`series:layoutlabels`,this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(e){if(this._disposed){this.id;return}var t=e.seriesIndex;this.getModel().getSeriesByIndex(t).appendData(e),this._scheduler.unfinished=!0,this.getZr().wakeUp()},t.internalField=function(){bD=function(e){Nb(e._model);var t=e._scheduler;t.restorePipelines(e._zr,e._model),t.prepareStageTasks(),xD(e,!0),xD(e,!1),t.plan()},xD=function(e,t){for(var n=e._model,r=e._scheduler,i=t?e._componentsViews:e._chartsViews,a=t?e._componentsMap:e._chartsMap,o=e._zr,s=e._api,c=0;cV(t.get(`hoverLayerThreshold`),ow.hoverLayerThreshold)&&!We.node&&!We.worker;(e._usingTHL||a)&&(t.eachSeries(function(t){if(!t.preventUsingHoverLayer){var n=e._chartsMap[t.__viewId];n.__alive&&n.eachRendered(function(e){var t=e.states.emphasis;t&&t.hoverLayer!==2&&(t.hoverLayer=+!!a)})}}),e._usingTHL=a)}}function a(e,t){var n=e.get(`blendMode`)||null;t.eachRendered(function(e){e.isGroup||(e.style.blend=n)})}function o(e,t){if(!e.preventAutoZ){var n=Kf(e);t.eachRendered(function(e){return Jf(e,n.z,n.zlevel),!0})}}function s(e,t){t.eachRendered(function(e){if(!ef(e)){var t=e.getTextContent(),n=e.getTextGuideLine();e.stateTransition&&=null,t&&t.stateTransition&&(t.stateTransition=null),n&&n.stateTransition&&(n.stateTransition=null),e.hasState()?(e.prevStates=e.currentStates,e.clearStates()):e.prevStates&&=null}})}function c(e,t){var n=e.getModel(`stateAnimation`),i=e.isAnimationEnabled(),a=n.get(`duration`),o=a>0?{duration:a,delay:n.get(`delay`),easing:n.get(`easing`)}:null;t.eachRendered(function(e){if(e.states&&e.states.emphasis){if(ef(e))return;if(e instanceof Lo&&Eu(e),e.__dirty){var t=e.prevStates;t&&e.useStates(t)}if(i){e.stateTransition=o;var n=e.getTextContent(),a=e.getTextGuideLine();n&&(n.stateTransition=o),a&&(a.stateTransition=o)}e.__dirty&&r(e)}})}PD=function(e){return new(function(t){p(n,t);function n(){return t!==null&&t.apply(this,arguments)||this}return n.prototype.getCoordinateSystems=function(){return e._coordSysMgr.getCoordinateSystems()},n.prototype.getComponentByElement=function(t){for(;t;){var n=t.__ecComponentInfo;if(n!=null)return e._model.getComponent(n.mainType,n.index);t=t.parent}},n.prototype.enterEmphasis=function(t,n){Zl(t,n),ID(e)},n.prototype.leaveEmphasis=function(t,n){Ql(t,n),ID(e)},n.prototype.enterBlur=function(t){$l(t),ID(e)},n.prototype.leaveBlur=function(t){eu(t),ID(e)},n.prototype.enterSelect=function(t){tu(t),ID(e)},n.prototype.leaveSelect=function(t){nu(t),ID(e)},n.prototype.getModel=function(){return e.getModel()},n.prototype.getViewOfComponentModel=function(t){return e.getViewOfComponentModel(t)},n.prototype.getViewOfSeriesModel=function(t){return e.getViewOfSeriesModel(t)},n.prototype.getECUpdateCycleVersion=function(){return e[sD]},n.prototype.usingTHL=function(){return e._usingTHL},n}(yl))(e)},FD=function(e){function t(e,t){for(var n=0;n=0)){fO.push(n);var o=dT.wrapStageHandler(n,i);o.__prio=t,o.__raw=n,e.push(o)}}function mO(e,t){YD[e]=t}function hO(e,t,n){var r=HT(`registerMap`);r&&r(e,t,n)}var gO=A_;dO(ZE,aT),dO(eD,sT),dO(eD,cT),dO(ZE,NT),dO(eD,PT),dO(iD,BE),rO(Yw),iO(WE,Xw),mO(`default`,uT),cO({type:Dl,event:Dl,update:Dl},Ve),cO({type:Ol,event:Ol,update:Ol},Ve),cO({type:kl,event:Ml,update:kl,action:Ve,refineEvent:_O,publishNonRefinedEvent:!0}),cO({type:Al,event:Ml,update:Al,action:Ve,refineEvent:_O,publishNonRefinedEvent:!0}),cO({type:jl,event:Ml,update:jl,action:Ve,refineEvent:_O,publishNonRefinedEvent:!0});function _O(e,t,n,r){return{eventContent:{selected:pu(n),isFromClick:t.isFromClick||!1}}}nO(`default`,{}),nO(`dark`,kT);var vO=[],yO={registerPreprocessor:rO,registerProcessor:iO,registerPostInit:aO,registerPostUpdate:oO,registerUpdateLifecycle:sO,registerAction:cO,registerCoordinateSystem:lO,registerLayout:uO,registerVisual:dO,registerTransform:gO,registerLoading:mO,registerMap:hO,registerImpl:VT,PRIORITY:aD,ComponentModel:m_,ComponentView:$w,SeriesModel:dv,ChartView:Bv,registerComponentModel:function(e){m_.registerClass(e)},registerComponentView:function(e){$w.registerClass(e)},registerSeriesModel:function(e){dv.registerClass(e)},registerChartView:function(e){Bv.registerClass(e)},registerCustomSeries:function(e,t){WT(e,t)},registerSubTypeDefaulter:function(e,t){m_.registerSubTypeDefaulter(e,t)},registerPainter:function(e,t){QC(e,t)}};function bO(e){if(R(e)){I(e,function(e){bO(e)});return}ae(vO,e)>=0||(vO.push(e),ge(e)&&(e={install:e}),e.install(yO))}var xO=function(){function e(){}return e.prototype.needIncludeZero=function(){return!this.option.scale},e.prototype.getCoordSysModel=function(){},e}(),SO=function(e){p(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents(`grid`,Fc).models[0]},t.type=`cartesian2dAxis`,t}(m_);se(SO,xO);var CO={show:!0,z:0,inverse:!1,name:``,nameLocation:`end`,nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:`...`,placeholder:`.`},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:`auto`,onZeroAxisIndex:null,lineStyle:{color:H.color.axisLine,width:1,type:`solid`},symbol:[`none`,`none`],symbolSize:[10,15],breakLine:!0},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12,color:H.color.axisLabel,textMargin:[0,3]},splitLine:{show:!0,showMinLine:!0,showMaxLine:!0,lineStyle:{color:H.color.axisSplitLine,width:1,type:`solid`}},splitArea:{show:!1,areaStyle:{color:[H.color.backgroundTint,H.color.backgroundTransparent]}},breakArea:{show:!0,itemStyle:{color:H.color.neutral00,borderColor:H.color.border,borderWidth:1,borderType:[3,3],opacity:.6},zigzagAmplitude:4,zigzagMinSpan:4,zigzagMaxSpan:20,zigzagZ:100,expandOnClick:!0},breakLabelLayout:{moveOverlap:`auto`}},wO=N({boundaryGap:!0,deduplication:null,jitter:0,jitterOverlap:!0,jitterMargin:2,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:`auto`,show:`auto`},axisLabel:{interval:`auto`}},CO),TO=N({boundaryGap:[0,0],axisLine:{show:`auto`},axisTick:{show:`auto`},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:H.color.axisMinorSplitLine,width:1}}},CO),EO={category:wO,value:TO,time:N({splitNumber:6,axisLabel:{rich:{primary:{fontWeight:`bold`}}},splitLine:{show:!1}},TO),log:F({logBase:10},TO)};function DO(e,t,n,r){I(Gy,function(i,a){var o=N(N({},EO[a],!0),r,!0),s=function(e){p(n,e);function n(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t+`Axis.`+a,n}return n.prototype.mergeDefaultAndTheme=function(e,t){var n=l_(this),r=n?d_(e):{};N(e,t.getTheme().get(a+`Axis`)),N(e,this.getDefaultOption()),e.type=OO(e),n&&u_(e,r,n)},n.prototype.optionUpdated=function(){this.option.type===`category`&&(this.__ordinalMeta=Xv.createByAxisModel(this))},n.prototype.getCategories=function(e){var t=this.option;if(t.type===`category`)return e?t.data:this.__ordinalMeta.categories},n.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},n.prototype.updateAxisBreaks=function(e){var t=yx();return t?t.updateModelAxisBreak(this,e):{breaks:[]}},n.type=t+`Axis.`+a,n.defaultOption=o,n}(n);e.registerComponentModel(s)}),e.registerSubTypeDefaulter(t+`Axis`,OO)}function OO(e){return e.type||(e.data?`category`:`value`)}var kO=function(){function e(e){this.type=`cartesian`,this._dimList=[],this._axes={},this.name=e||``}return e.prototype.getAxis=function(e){return this._axes[e]},e.prototype.getAxes=function(){return L(this._dimList,function(e){return this._axes[e]},this)},e.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),ue(this.getAxes(),function(t){return t.scale.type===e})},e.prototype.addAxis=function(e){var t=e.dim;this._axes[t]=e,this._dimList.push(t)},e}(),AO=[`x`,`y`];function jO(e){return(e.type===`interval`||e.type===`time`)&&!og(e)}var MO=function(e){p(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=wS,t.dimensions=AO,t}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var e=this.getAxis(`x`).scale,t=this.getAxis(`y`).scale;if(!(!jO(e)||!jO(t))){var n=ry(e,null),r=ry(t,null),i=this.dataToPoint([n[0],r[0]]),a=this.dataToPoint([n[1],r[1]]),o=n[1]-n[0],s=r[1]-r[0];if(!(!o||!s)){var c=(a[0]-i[0])/o,l=(a[1]-i[1])/s,u=i[0]-n[0]*c,d=i[1]-r[0]*l,f=this._transform=[c,0,0,l,u,d];this._invTransform=wt([],f)}}},t.prototype.getBaseAxis=function(){return this.getAxesByScale(`ordinal`)[0]||this.getAxesByScale(`time`)[0]||this.getAxis(`x`)},t.prototype.containPoint=function(e){var t=this.getAxis(`x`),n=this.getAxis(`y`);return t.contain(t.toLocalCoord(e[0]))&&n.contain(n.toLocalCoord(e[1]))},t.prototype.containData=function(e){return this.getAxis(`x`).containData(e[0])&&this.getAxis(`y`).containData(e[1])},t.prototype.containZone=function(e,t){var n=this.dataToPoint(e),r=this.dataToPoint(t),i=this.getArea(),a=new rn(n[0],n[1],r[0]-n[0],r[1]-n[1]);return i.intersect(a)},t.prototype.dataToPoint=function(e,t,n){n||=[];var r=e[0],i=e[1];if(this._transform&&r!=null&&isFinite(r)&&i!=null&&isFinite(i))return Bt(n,e,this._transform);var a=this.getAxis(`x`),o=this.getAxis(`y`);return n[0]=a.toGlobalCoord(a.dataToCoord(r,t)),n[1]=o.toGlobalCoord(o.dataToCoord(i,t)),n},t.prototype.clampData=function(e,t){var n=this.getAxis(`x`).scale,r=this.getAxis(`y`).scale,i=n.getExtent(),a=r.getExtent(),o=n.parse(e[0]),s=r.parse(e[1]);return t||=[],t[0]=Math.min(Math.max(Math.min(i[0],i[1]),o),Math.max(i[0],i[1])),t[1]=Math.min(Math.max(Math.min(a[0],a[1]),s),Math.max(a[0],a[1])),t},t.prototype.pointToData=function(e,t,n){if(n||=[],this._invTransform)return Bt(n,e,this._invTransform);var r=this.getAxis(`x`),i=this.getAxis(`y`);return n[0]=r.coordToData(r.toLocalCoord(e[0]),t),n[1]=i.coordToData(i.toLocalCoord(e[1]),t),n},t.prototype.getOtherAxis=function(e){return this.getAxis(e.dim===`x`?`y`:`x`)},t.prototype.getArea=function(e){e||=0;var t=this.getAxis(`x`).getGlobalExtent(),n=this.getAxis(`y`).getGlobalExtent(),r=Math.min(t[0],t[1])-e,i=Math.min(n[0],n[1])-e;return new rn(r,i,Math.max(t[0],t[1])-r+e,Math.max(n[0],n[1])-i+e)},t}(kO);function NO(e,t){var n=e.scale,r=e.model,i=yS(n,r,r.ecModel,e,null),a=fy(n),o=fy(t)?t.intervalStub:t,s=a?n.intervalStub:n,c=n.base,l=o.getTicks(),u=o.getTicks({expandToNicedExtent:!0}),d=l.length-1,f,p,m;if(d===1)f=p=0,m=1;else if(d===2){var h=xs(l[0].value-l[1].value),g=xs(l[1].value-l[2].value);f=p=0,h===g?m=2:(m=1,h=C[1])return!0})):b[1]?(T=C[1],ee(function(){if(j(),k=Is(O-E*m,D),te(),w<=C[0])return!0})):ee(function(){k=Is(ws(C[0]/E)*E,D),O=Is(Cs(C[1]/E)*E,D);var e=Ss((O-k)/E);if(e<=m){var t=m-e,n=void 0,r=i.incl0||a;if(r&&C[0]===0)n=[0,t];else if(r&&C[1]===0)n=[t,0];else{var o=Cs(t/2);n=t%2==0?[o,o]:w+T=C[1])return!0}})}sb(n,b,S,[w,T],x,{interval:E,intervalCount:m,intervalPrecision:D,niceExtent:[k,O]})}function PO(e,t){var n=fy(e),r=n?e.intervalStub:e,i=t.fixMinMax||[],a=n?e.getExtent():null,o=r.getExtent(),s=vy(o,i,t.rawExtentResult);r.setExtent(s[0],s[1]),s=r.getExtent();var c=n?IO(r,t):FO(r,t),l=c.intervalPrecision,u=c.interval,d=t.userInterval;d!=null&&(c.interval=d,c.intervalPrecision=hy(d)),i[0]||(s[0]=Is(Cs(s[0]/u)*u,l)),i[1]||(s[1]=Is(ws(s[1]/u)*u,l)),d!=null&&(c.niceExtent=s.slice()),sb(e,i,o,s,a,c)}function FO(e,t){var n=by(t.splitNumber,5),r=ay(e),i=t.minInterval,a=t.maxInterval,o=Js(r/n,!0);i!=null&&oa&&(o=a);var s=hy(o),c=e.getExtent(),l=[Is(ws(c[0]/o)*o,s),Is(Cs(c[1]/o)*o,s)];return{interval:o,intervalPrecision:s,niceExtent:l}}function IO(e,t){var n=by(t.splitNumber,10),r=e.getExtent(),i=ay(e),a=bs(Ks(i),1);n/i*a<=.5&&(a*=10);var o=hy(a),s=[Is(ws(r[0]/a)*a,o),Is(Cs(r[1]/a)*a,o)];return{intervalPrecision:o,interval:a,niceExtent:s}}function LO(e){var t=e.scale,n=e.model,r=n.axis,i=n.ecModel;RO(t,n,r,i,null)}function RO(e,t,n,r,i){var a=yS(e,t,r,n,i),o=uy(e)||dy(e);zO(e,{splitNumber:t.get(`splitNumber`),fixMinMax:a.fixMM,userInterval:t.get(`interval`),minInterval:o?t.get(`minInterval`):null,maxInterval:o?t.get(`maxInterval`):null,rawExtentResult:a}),n&&r&&xS(n,e,a,r)}function zO(e,t){BO[e.type](e,t)}var BO={interval:PO,log:PO,time:Ly,ordinal:Ve},VO=[[3,1],[0,2]],HO=function(){function e(e,t,n){this.type=`grid`,this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=AO,this._initCartesian(e,t,n),this.model=e}return e.prototype.getRect=function(){return this._rect},e.prototype.update=function(e,t){var n=this._axesMap;I(this._axesList,function(e){mS(e,1);var t=e.scale;py(t)&&t.setSortInfo(e.model.get(`categorySortInfo`))});function r(e){for(var t=fe(e),n=[],r=t.length-1;r>=0;r--){var i=e[+t[r]];i.__alignTo?n.push(i):LO(i)}I(n,function(e){qO(e,e.__alignTo)?LO(e):NO(e,e.__alignTo.scale)})}r(n.x),r(n.y);var i={};I(n.x,function(e){WO(n,`y`,e,i)}),I(n.y,function(e){WO(n,`x`,e,i)}),this.resize(this.model,t)},e.prototype.resize=function(e,t,n){var r=s_(e,t),i=this._rect=i_(e.getBoxLayoutParams(),r.refContainer),a=this._axesMap,o=this._coordsList,s=e.get(`containLabel`);if(YO(a,i),!n){var c=$O(i,o,a,s,t),l=void 0;if(s)ZO?(ZO(this._axesList,i),YO(a,i)):l=QO(i.clone(),`axisLabel`,null,i,a,c,r);else{var u=tk(e,i,r),d=u.outerBoundsRect,f=u.parsedOuterBoundsContain,p=u.outerBoundsClamp;d&&(l=QO(d,f,p,i,a,c,r))}ek(i,a,fb.determine,null,l,r),I(this._coordsList,function(e){e.calcAffineTransform()})}},e.prototype.getAxis=function(e,t){var n=this._axesMap[e];if(n!=null)return n[t||0]},e.prototype.getAxes=function(){return this._axesList.slice()},e.prototype.getCartesian=function(e,t){if(e!=null&&t!=null){var n=`x`+e+`y`+t;return this._coordsMap[n]}B(e)&&(t=e.yAxisIndex,e=e.xAxisIndex);for(var r=0,i=this._coordsList;r=0;i--){var a=e[+t[i]];ly(a.scale)&&ab(a.model,a.type,!0)==null&&(a.model.get(`alignTicks`)&&a.model.get(`interval`)==null?r.push(a):n=a)}n||=r.pop(),n&&I(r,function(e){e.__alignTo=n})}function qO(e,t){return og(e.scale)||og(t.scale)||t.scale.getTicks().length<2}function JO(e,t){var n=e.getExtent(),r=n[0]+n[1];e.toGlobalCoord=e.dim===`x`?function(e){return e+t}:function(e){return r-e+t},e.toLocalCoord=e.dim===`x`?function(e){return e-t}:function(e){return r-e+t}}function YO(e,t){I(e.x,function(e){return XO(e,t.x,t.width)}),I(e.y,function(e){return XO(e,t.y,t.height)})}function XO(e,t,n){var r=[0,n],i=+!!e.inverse;e.setExtent(r[i],r[1-i]),JO(e,t)}var ZO;function QO(e,t,n,r,i,a,o){ek(r,i,fb.estimate,t,!1,o);var s=[0,0,0,0];l(0),l(1),u(r,0,NaN),u(r,1,NaN);var c=de(s,function(e){return e>0})==null;return If(r,s,!0,!0,n),YO(i,r),c;function l(e){I(i[cf[e]],function(t){if(ib(t.model)){var n=a.ensureRecord(t.model),r=n.labelInfoList;if(r)for(var i=0;i0&&!Ce(t)&&t>1e-4&&(e/=t),e}}function $O(e,t,n,r,i){var a=new Dx(nk);return I(n,function(n){return I(n,function(n){if(ib(n.model)){var o=!r;n.axisBuilder=rS(e,t,n.model,i,a,o)}})}),a}function ek(e,t,n,r,i,a){var o=n===fb.determine;I(t,function(t){return I(t,function(t){ib(t.model)&&(iS(t.axisBuilder,e,t.model),t.axisBuilder.build(o?{axisTickLabelDetermine:!0}:{axisTickLabelEstimate:!0},{noPxChange:i}))})});var s={x:0,y:0};c(0),c(1);function c(t){s[cf[1-t]]=e[lf[t]]<=a.refContainer[lf[t]]*.5?0:1-t==1?2:1}I(t,function(e,t){return I(e,function(e){ib(e.model)&&((r===`all`||o)&&e.axisBuilder.build({axisName:!0},{nameMarginLevel:s[t]}),o&&e.axisBuilder.build({axisLine:!0}))})})}function tk(e,t,n){var r,i=e.get(`outerBoundsMode`,!0);i===`same`?r=t.clone():(i==null||i===`auto`)&&(r=i_(e.get(`outerBounds`,!0)||SS,n.refContainer));var a=e.get(`outerBoundsContain`,!0),o=a==null||a===`auto`||ae([`all`,`axisLabel`],a)<0?`all`:a,s=[Ns(V(e.get(`outerBoundsClampWidth`,!0),CS[0]),t.width),Ns(V(e.get(`outerBoundsClampHeight`,!0),CS[1]),t.height)];return{outerBoundsRect:r,parsedOuterBoundsContain:o,outerBoundsClamp:s}}var nk=function(e,t,n,r,i,a){var o=n.axis.dim===`x`?`y`:`x`;jx(e,t,n,r,i,a),rb(e.nameLocation)||I(t.recordMap[o],function(e){e&&e.labelInfoList&&e.dirVec&&Nx(e.labelInfoList,e.dirVec,r,i)})};function rk(e,t){var n={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return ik(n,e,t),n.seriesInvolved&&ok(n,e),n}function ik(e,t,n){var r=t.getComponent(`tooltip`),i=t.getComponent(`axisPointer`),a=i.get(`link`,!0)||[],o=[];I(n.getCoordinateSystems(),function(n){if(!n.axisPointerEnabled)return;var s=pk(n.model),c=e.coordSysAxesInfo[s]={};e.coordSysMap[s]=n;var l=n.model.getModel(`tooltip`,r);if(I(n.getAxes(),he(p,!1,null)),n.getTooltipAxes&&r&&l.get(`show`)){var u=l.get(`trigger`)===`axis`,d=l.get([`axisPointer`,`type`])===`cross`,f=n.getTooltipAxes(l.get([`axisPointer`,`axis`]));(u||d)&&I(f.baseAxes,he(p,!d||`cross`,u)),d&&I(f.otherAxes,he(p,`cross`,!1))}function p(r,s,u){var d=u.model.getModel(`axisPointer`,i),f=d.get(`show`);if(!(!f||f===`auto`&&!r&&!fk(d))){s??=d.get(`triggerTooltip`),d=r?ak(u,l,i,t,r,s):d;var p=d.get(`snap`),m=d.get(`triggerEmphasis`),h=pk(u.model),g=s||p||u.type===`category`,_=e.axesInfo[h]={key:h,axis:u,coordSys:n,axisPointerModel:d,triggerTooltip:s,triggerEmphasis:m,involveSeries:g,snap:p,useHandle:fk(d),seriesModels:[],linkGroup:null};c[h]=_,e.seriesInvolved=e.seriesInvolved||g;var v=sk(a,u);if(v!=null){var y=o[v]||(o[v]={axesInfo:{}});y.axesInfo[h]=_,y.mapper=a[v].mapper,_.linkGroup=y}}}})}function ak(e,t,n,r,i,a){var o=t.getModel(`axisPointer`),s=[`type`,`snap`,`lineStyle`,`shadowStyle`,`label`,`animation`,`animationDurationUpdate`,`animationEasingUpdate`,`z`],c={};I(s,function(e){c[e]=M(o.get(e))}),c.snap=e.type!==`category`&&!!a,o.get(`type`)===`cross`&&(c.type=`line`);var l=c.label||={};if(l.show??=!1,i===`cross`&&(l.show=o.get([`label`,`show`])??!0,!a)){var u=c.lineStyle=o.get(`crossStyle`);u&&F(l,u.textStyle)}return e.model.getModel(`axisPointer`,new Ep(c,n,r))}function ok(e,t){t.eachSeries(function(t){var n=t.coordinateSystem,r=t.get([`tooltip`,`trigger`],!0),i=t.get([`tooltip`,`show`],!0);!n||!n.model||r===`none`||r===!1||r===`item`||i===!1||t.get([`axisPointer`,`show`],!0)===!1||I(e.coordSysAxesInfo[pk(n.model)],function(e){var r=e.axis;n.getAxis(r.dim)===r&&(e.seriesModels.push(t),e.seriesDataCount??=0,e.seriesDataCount+=t.getData().count())})})}function sk(e,t){for(var n=t.model,r=t.dim,i=0;i=0||e===t}function lk(e){var t=uk(e);if(t){var n=t.axisPointerModel,r=t.axis.scale,i=n.option,a=n.get(`status`),o=n.get(`value`);o!=null&&(o=r.parse(o));var s=fk(n);a??(i.status=s?`show`:`hide`);var c=r.getExtent();(o==null||o>c[1])&&(o=c[1]),o3?1.4:i>1?1.2:1.1,c=r>0?s:1/s;this._checkTriggerMoveZoom(this,`zoom`,`zoomOnMouseWheel`,e,{scale:c,originX:a,originY:o,isAvailableBehavior:null})}if(n){var l=Math.abs(r),u=(r>0?1:-1)*(l>3?.4:l>1?.15:.05);this._checkTriggerMoveZoom(this,`scrollMove`,`moveOnMouseWheel`,e,{scrollDelta:u,originX:a,originY:o,isAvailableBehavior:null})}}}},t.prototype._pinchHandler=function(e){if(!(Ok(this._zr,`globalPan`)||Mk(e))){var t=e.pinchScale>1?1.1:1/1.1;this._checkTriggerMoveZoom(this,`zoom`,null,e,{scale:t,originX:e.pinchX,originY:e.pinchY,isAvailableBehavior:null})}},t.prototype._checkTriggerMoveZoom=function(e,t,n,r,i){e._checkPointer(r,i.originX,i.originY)&&(qS(r.event),r.__ecRoamConsumed=!0,zk(e,t,n,r,i))},t}($i);function Mk(e){return e.__ecRoamConsumed}var Nk=jc();function Pk(e){var t=Nk(e);return t.roam=t.roam||{},t.uniform=t.uniform||{},t}function Fk(e,t,n,r){for(var i=Pk(e).roam,a=i[t]=i[t]||[],o=0;o1e-6;jA[0]=o?(i[0]-r.x)/a:i[0],jA[1]=o?(i[1]-r.y)/a:i[1],Bt(jA,jA,e.mtRawInv);var s=DA(e,jA);MA(t,s,a),I(n,function(e){e!==t&&MA(e,s.slice(),a)})}var jA=[];function MA(e,t,n){var r=e.option;r.center=t,r.zoom=n}function NA(e,t){if(t){var n=t.min||0,r=t.max||1/0;e=Math.max(Math.min(r,e),n)}return e}function PA(e,t){var n=t.getShallow(`nodeScaleRatio`,!0)||1,r=Vk(e);return((r.zoom-1)*n+1)/(r.trans[2].scaleX||1)}function FA(e,t,n,r,i,a,o,s){if(!SA(e)){n.disable();return}n.enable(V(e.get(`roam`),o),{api:t,zInfo:{component:e},triggerInfo:{roamTrigger:e.get(`roamTrigger`),isInSelf:r,isInClip:function(e,t,n){return!i||i.contain(t,n)}}});function c(n){var r=e.mainType,i=Xf(F({type:zA(r,e.subType,_l)},n));s&&(i.componentType=r),i[r+`Id`]=e.id,t.dispatchAction(i)}n.off(`pan`).off(`zoom`).on(`pan`,function(e){a&&a(`pan`),c({dx:e.dx,dy:e.dy})}).on(`zoom`,function(e){a&&a(`zoom`),c({zoom:e.scale,originX:e.originX,originY:e.originY})})}function IA(e){return function(t,n,r){return LA.copy(e.getBoundingRect()),LA.applyTransform(e.getComputedTransform()),LA.contain(n,r)}}var LA=new rn(0,0,0,0);function RA(e,t,n){var r=zA(t,n,_l);e.registerAction({type:r,event:r,update:`none`},function(e,r,i){r.eachComponent(Lc(e,t,n),function(t){xA(e,t),CA(e,t,r,i)})})}function zA(e,t,n){return(e===`series`?t===`map`?`geo`:t:e)+n}function BA(e){return e.zoom!=null}function VA(e,t,n,r,i,a,o){var s=new Uk(null,kA(e.ecModel,t));return eA(s,n,r,i,a),o?tA(s,o.x,o.y,o.width,o.height):tA(s,n,r,i,a),$k(s,e),s}var HA=jc();function UA(e){var t=e.mainData,n=e.datas;n||(n={main:t},e.datasAttr={main:`data`}),e.datas=e.mainData=null,XA(t,n,e),I(n,function(n){I(t.TRANSFERABLE_METHODS,function(t){n.wrapMethod(t,he(WA,e))})}),t.wrapMethod(`cloneShallow`,he(KA,e)),I(t.CHANGABLE_METHODS,function(n){t.wrapMethod(n,he(GA,e))}),Oe(n[t.dataType]===t)}function WA(e,t){if(YA(this)){var n=P({},HA(this).datas);n[this.dataType]=t,XA(t,n,e)}else ZA(t,this.dataType,HA(this).mainData,e);return t}function GA(e,t){return e.struct&&e.struct.update(),t}function KA(e,t){return I(HA(t).datas,function(n,r){n!==t&&ZA(n.cloneShallow(),r,t,e)}),t}function qA(e){var t=HA(this).mainData;return e==null||t==null?t:HA(t).datas[e]}function JA(){var e=HA(this).mainData;return e==null?[{data:e}]:L(fe(HA(e).datas),function(t){return{type:t,data:HA(e).datas[t]}})}function YA(e){return HA(e).mainData===e}function XA(e,t,n){HA(e).datas={},I(t,function(t,r){ZA(t,r,e,n)})}function ZA(e,t,n,r){HA(n).datas[t]=e,HA(e).mainData=n,e.dataType=t,r.struct&&(e[r.structAttr]=r.struct,r.struct[r.datasAttr[t]]=e),e.getLinkedData=qA,e.getLinkedDataAll=JA}var QA=I,$A=B,ej=-1,tj=function(){function e(t){var n=t.mappingMethod,r=t.type,i=this.option=M(t);this.type=r,this.mappingMethod=n,this._normalizeData=pj[n];var a=e.visualHandlers[r];this.applyVisual=a.applyVisual,this.getColorMapper=a.getColorMapper,this._normalizedToVisual=a._normalizedToVisual[n],n===`piecewise`?(ij(i),nj(i)):n===`category`?i.categories?rj(i):ij(i,!0):(Oe(n!==`linear`||i.dataExtent),ij(i))}return e.prototype.mapValueToVisual=function(e){var t=this._normalizeData(e);return this._normalizedToVisual(t,e)},e.prototype.getNormalizer=function(){return me(this._normalizeData,this)},e.listVisualTypes=function(){return fe(e.visualHandlers)},e.isValidType=function(t){return e.visualHandlers.hasOwnProperty(t)},e.eachVisual=function(e,t,n){B(e)?I(e,t,n):t.call(n,e)},e.mapVisual=function(t,n,r){var i,a=R(t)?[]:B(t)?{}:(i=!0,null);return e.eachVisual(t,function(e,t){var o=n.call(r,e,t);i?a=o:a[t]=o}),a},e.retrieveVisuals=function(t){var n={},r;return t&&QA(e.visualHandlers,function(e,i){t.hasOwnProperty(i)&&(n[i]=t[i],r=!0)}),r?n:null},e.prepareVisualTypes=function(e){if(R(e))e=e.slice();else if($A(e)){var t=[];QA(e,function(e,n){t.push(n)}),e=t}else return[];return e.sort(function(e,t){return t===`color`&&e!==`color`&&e.indexOf(`color`)===0?1:-1}),e},e.dependsOn=function(e,t){return t===`color`?!!(e&&e.indexOf(t)===0):e===t},e.findPieceIndex=function(e,t,n){for(var r,i=1/0,a=0,o=t.length;a=0;a--)r[a]??(delete n[t[a]],t.pop())}function ij(e,t){var n=e.visual,r=[];B(n)?QA(n,function(e){r.push(e)}):n!=null&&r.push(n),!t&&r.length===1&&!{color:1,symbol:1}.hasOwnProperty(e.type)&&(r[1]=r[0]),fj(e,r)}function aj(e){return{applyVisual:function(t,n,r){var i=this.mapValueToVisual(t);r(`color`,e(n(`color`),i))},_normalizedToVisual:uj([0,1])}}function oj(e){var t=this.option.visual;return t[Math.round(As(e,[0,1],[0,t.length-1],!0))]||{}}function sj(e){return function(t,n,r){r(e,this.mapValueToVisual(t))}}function cj(e){var t=this.option.visual;return t[this.option.loop&&e!==ej?e%t.length:e]}function lj(){return this.option.visual[0]}function uj(e){return{linear:function(t){return As(t,e,this.option.visual,!0)},category:cj,piecewise:function(t,n){var r=dj.call(this,n);return r??=As(t,e,this.option.visual,!0),r},fixed:lj}}function dj(e){var t=this.option,n=t.pieceList;if(t.hasSpecialVisual){var r=n[tj.findPieceIndex(e,n)];if(r&&r.visual)return r.visual[this.type]}}function fj(e,t){return e.visual=t,e.type===`color`&&(e.parsedVisual=L(t,function(e){return Qr(e)||[0,0,0,1]})),t}var pj={linear:function(e){return As(e,this.option.dataExtent,[0,1],!0)},piecewise:function(e){var t=this.option.pieceList,n=tj.findPieceIndex(e,t,!0);if(n!=null)return As(n,[0,t.length-1],[0,1],!0)},category:function(e){return(this.option.categories?this.option.categoryMap[e]:e)??ej},fixed:Ve};function mj(e,t,n){return e?t<=n:t=0&&e.call(t,n[i],i)},e.prototype.eachEdge=function(e,t){for(var n=this.edges,r=n.length,i=0;i=0&&n[i].node1.dataIndex>=0&&n[i].node2.dataIndex>=0&&e.call(t,n[i],i)},e.prototype.breadthFirstTraverse=function(e,t,n,r){if(t instanceof _j||(t=this._nodesMap[hj(t)]),t){for(var i=n===`out`?`outEdges`:n===`in`?`inEdges`:`edges`,a=0;a=0&&n.node2.dataIndex>=0});for(var i=0,a=r.length;i=0&&!e.hasKey(p)&&(e.set(p,!0),a.push(f.node1))}for(s=0;s=0&&!e.hasKey(v)&&(e.set(v,!0),o.push(_.node2))}}}return{edge:e.keys(),node:t.keys()}},e}(),vj=function(){function e(e,t,n){this.dataIndex=-1,this.node1=e,this.node2=t,this.dataIndex=n??-1}return e.prototype.getModel=function(e){if(!(this.dataIndex<0))return this.hostGraph.edgeData.getItemModel(this.dataIndex).getModel(e)},e.prototype.getAdjacentDataIndices=function(){return{edge:[this.dataIndex],node:[this.node1.dataIndex,this.node2.dataIndex]}},e.prototype.getTrajectoryDataIndices=function(){var e=Le(),t=Le();e.set(this.dataIndex,!0);for(var n=[this.node1],r=[this.node2],i=0;i=0&&!e.hasKey(u)&&(e.set(u,!0),n.push(l.node1))}for(i=0;i=0&&!e.hasKey(m)&&(e.set(m,!0),r.push(p.node2))}return{edge:e.keys(),node:t.keys()}},e}();function yj(e,t){return{getValue:function(n){var r=this[e][t];return r.getStore().get(r.getDimensionIndex(n||`value`),this.dataIndex)},setVisual:function(n,r){this.dataIndex>=0&&this[e][t].setItemVisual(this.dataIndex,n,r)},getVisual:function(n){return this[e][t].getItemVisual(this.dataIndex,n)},setLayout:function(n,r){this.dataIndex>=0&&this[e][t].setItemLayout(this.dataIndex,n,r)},getLayout:function(){return this[e][t].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[e][t].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[e][t].getRawIndex(this.dataIndex)}}}se(_j,yj(`hostGraph`,`data`)),se(vj,yj(`hostGraph`,`edgeData`));function bj(e,t,n,r,i){for(var a=new gj(r),o=0;o `+f)),l++)}var p=n.get(`coordinateSystem`),m;if(p===`cartesian2d`||p===`polar`||p===`matrix`)m=Ch(e,n);else{var h=sh.get(p),g=h&&h.dimensions||[];ae(g,`value`)<0&&g.concat([`value`]);var _=nh(e,{coordDimensions:g,encodeDefine:n.getEncode()}).dimensions;m=new th(_,n),m.initData(e)}var v=new th([`value`],n);return v.initData(c,s),i&&i(m,v),UA({mainData:m,struct:a,structAttr:`graph`,datas:{node:m,edge:v},datasAttr:{node:`data`,edge:`edgeData`}}),a.update(),a}var xj=`-->`,Sj=function(e){return e.get(`autoCurveness`)||null},Cj=function(e,t){var n=Sj(e),r=20,i=[];if(ve(n))r=n;else if(R(n)){e.__curvenessList=n;return}t>r&&(r=t);var a=r%2?r+2:r+3;i=[];for(var o=0;o `),value:i.value,noValue:i.value==null})}return sv({series:this,dataIndex:e,multipleSeries:t})},t.prototype._updateCategoriesData=function(){var e=L(this.option.categories||[],function(e){return e.value==null?P({value:0},e):e}),t=new th([`value`],this);t.initData(e),this._categoriesData=t,this._categoriesModels=t.mapArray(function(e){return t.getItemModel(e)})},t.prototype.isAnimationEnabled=function(){return e.prototype.isAnimationEnabled.call(this)&&!(this.get(`layout`)===`force`&&this.get([`force`,`layoutAnimation`]))},t.prototype.__ownRoamView=function(){var e=this.coordinateSystem;return gA(e)&&e},t.type=`series.`+Mj,t.dependencies=[`grid`,`polar`,`geo`,`singleAxis`,`calendar`],t.defaultOption={z:2,coordinateSystem:`view`,legendHoverLink:!0,layout:null,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,friction:.6,edgeLength:30,layoutAnimation:!0},left:`center`,top:`center`,symbol:`circle`,symbolSize:10,edgeSymbol:[`none`,`none`],edgeSymbolSize:10,edgeLabel:{position:`middle`,distance:5},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:`{b}`},itemStyle:{},lineStyle:{color:H.color.neutral50,width:1,opacity:.5},emphasis:{scale:!0,label:{show:!0}},select:{itemStyle:{borderColor:H.color.primary}}},t}(dv);function Pj(e){return e instanceof Array||(e=[e,e]),e}var Fj=il(Mj,Ij);function Ij(e){e.eachSeriesByType(Mj,function(e){var t=e.getGraph(),n=e.getEdgeData(),r=Pj(e.get(`edgeSymbol`)),i=Pj(e.get(`edgeSymbolSize`));n.setVisual(`fromSymbol`,r&&r[0]),n.setVisual(`toSymbol`,r&&r[1]),n.setVisual(`fromSymbolSize`,i&&i[0]),n.setVisual(`toSymbolSize`,i&&i[1]),n.setVisual(`style`,e.getModel(`lineStyle`).getLineStyle()),n.each(function(e){var r=n.getItemModel(e),i=t.getEdgeByIndex(e),a=Pj(r.getShallow(`symbol`,!0)),o=Pj(r.getShallow(`symbolSize`,!0)),s=r.getModel(`lineStyle`).getLineStyle(),c=n.ensureUniqueItemVisual(e,`style`);switch(P(c,s),c.stroke){case`source`:var l=i.node1.getVisual(`style`);c.stroke=l&&l.fill;break;case`target`:var l=i.node2.getVisual(`style`);c.stroke=l&&l.fill}a[0]&&i.setVisual(`fromSymbol`,a[0]),a[1]&&i.setVisual(`toSymbol`,a[1]),o[0]&&i.setVisual(`fromSymbolSize`,o[0]),o[1]&&i.setVisual(`toSymbolSize`,o[1])})})}function Lj(e){var t=e.coordinateSystem;if(!(t&&t.type!==`view`)){var n=e.getGraph();n.eachNode(function(e){var t=e.getModel();e.setLayout([+t.get(`x`),+t.get(`y`)])}),Rj(n,e)}}function Rj(e,t){e.eachEdge(function(e,n){var r=Te(e.getModel().get([`lineStyle`,`curveness`]),-jj(e,t,n,!0),0),i=Dt(e.node1.getLayout()),a=Dt(e.node2.getLayout()),o=[i,a];+r&&o.push([(i[0]+a[0])/2-(i[1]-a[1])*r,(i[1]+a[1])/2-(a[0]-i[0])*r]),e.setLayout(o)})}var zj=il(Mj,Bj);function Bj(e,t){e.eachSeriesByType(Mj,function(e){var t=e.get(`layout`),n=e.coordinateSystem;if(n&&n.type!==`view`){var r=e.getData(),i=[];I(n.dimensions,function(e){i=i.concat(r.mapDimensionsAll(e))});for(var a=0;a0&&(y[0]=-y[0],y[1]=-y[1]);var x=v[0]<0?-1:1;if(r.__position!==`start`&&r.__position!==`end`){var S=-Math.atan2(v[1],v[0]);l[0].8?`left`:u[0]<-.8?`right`:`center`,p=u[1]>.8?`top`:u[1]<-.8?`bottom`:`middle`;break;case`start`:r.x=-u[0]*h+c[0],r.y=-u[1]*g+c[1],f=u[0]>.8?`right`:u[0]<-.8?`left`:`center`,p=u[1]>.8?`bottom`:u[1]<-.8?`top`:`middle`;break;case`insideStartTop`:case`insideStart`:case`insideStartBottom`:r.x=h*x+c[0],r.y=c[1]+C,f=v[0]<0?`right`:`left`,r.originX=-h*x,r.originY=-C;break;case`insideMiddleTop`:case`insideMiddle`:case`insideMiddleBottom`:case`middle`:r.x=b[0],r.y=b[1]+C,f=`center`,r.originY=-C;break;case`insideEndTop`:case`insideEnd`:case`insideEndBottom`:r.x=-h*x+l[0],r.y=l[1]+C,f=v[0]>=0?`right`:`left`,r.originX=h*x,r.originY=-C}r.scaleX=r.scaleY=i,r.setStyle({verticalAlign:r.__verticalAlign||p,align:r.__align||f})}},t}(Yu),mM=function(){function e(e){this.group=new Yu,this._LineCtor=e||pM}return e.prototype.updateData=function(e){var t=this;this._progressiveEls=null;var n=this,r=n.group,i=n._lineData;n._lineData=e,i||r.removeAll();var a=gM(e);e.diff(i).add(function(n){t._doAdd(e,n,a)}).update(function(n,r){t._doUpdate(i,e,r,n,a)}).remove(function(e){r.remove(i.getItemGraphicEl(e))}).execute()},e.prototype.updateLayout=function(){var e=this._lineData;e&&e.eachItemGraphicEl(function(t,n){t.updateLayout(e,n)},this)},e.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=gM(e),this._lineData=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(e,t,n){this._progressiveEls=[];function r(e){!e.isGroup&&!hM(e)&&(e.incremental=n,e.ensureState(`emphasis`).hoverLayer=2)}for(var i=e.start;i0}function gM(e){var t=e.hostModel,n=t.getModel(`emphasis`);return{lineStyle:t.getModel(`lineStyle`).getLineStyle(),emphasisLineStyle:n.getModel([`lineStyle`]).getLineStyle(),blurLineStyle:t.getModel([`blur`,`lineStyle`]).getLineStyle(),selectLineStyle:t.getModel([`select`,`lineStyle`]).getLineStyle(),emphasisDisabled:n.get(`disabled`),blurScope:n.get(`blurScope`),focus:n.get(`focus`),labelStatesModels:ip(t)}}function _M(e){return isNaN(e[0])||isNaN(e[1])}function vM(e){return e&&!_M(e[0])&&!_M(e[1])}var yM=[],bM=[],xM=[],SM=kr,CM=zt,wM=Math.abs;function TM(e,t,n){for(var r=e[0],i=e[1],a=e[2],o=1/0,s,c=n*n,l=.1,u=.1;u<=.9;u+=.1){yM[0]=SM(r[0],i[0],a[0],u),yM[1]=SM(r[1],i[1],a[1],u);var d=wM(CM(yM,t)-c);d=0?s+=l:s-=l:m>=0?s-=l:s+=l}return s}function EM(e,t){var n=[],r=Nr,i=[[],[],[]],a=[[],[]],o=[];t/=2,e.eachEdge(function(e,s){var c=e.getLayout(),l=e.getVisual(`fromSymbol`),u=e.getVisual(`toSymbol`);c.__original||(c.__original=[Dt(c[0]),Dt(c[1])],c[2]&&c.__original.push(Dt(c[2])));var d=c.__original;if(c[2]!=null){if(Et(i[0],d[0]),Et(i[1],d[2]),Et(i[2],d[1]),l&&l!==`none`){var f=Hj(e.node1),p=TM(i,d[0],f*t);r(i[0][0],i[1][0],i[2][0],p,n),i[0][0]=n[3],i[1][0]=n[4],r(i[0][1],i[1][1],i[2][1],p,n),i[0][1]=n[3],i[1][1]=n[4]}if(u&&u!==`none`){var f=Hj(e.node2),p=TM(i,d[1],f*t);r(i[0][0],i[1][0],i[2][0],p,n),i[1][0]=n[1],i[2][0]=n[2],r(i[0][1],i[1][1],i[2][1],p,n),i[1][1]=n[1],i[2][1]=n[2]}Et(c[0],i[0]),Et(c[1],i[2]),Et(c[2],i[1])}else{if(Et(a[0],d[0]),Et(a[1],d[1]),jt(o,a[1],a[0]),Ft(o,o),l&&l!==`none`){var f=Hj(e.node1);At(a[0],a[0],o,f*t)}if(u&&u!==`none`){var f=Hj(e.node2);At(a[1],a[1],o,-f*t)}Et(c[0],a[0]),Et(c[1],a[1])}})}var DM=jc();function OM(e){if(e)return DM(e).bridge}var kM=function(e){p(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=Mj,t}return t.prototype.init=function(e,t){var n=new Iv,r=new mM,i=this.group,a=new Yu;this._controller=new jk(t.getZr()),a.add(n.group),a.add(r.group),i.add(a),this._symbolDraw=n,this._lineDraw=r,this._mainGroup=a,this._firstRender=!0},t.prototype.render=function(e,t,n){var r=this,i=SA(e),a=!1;this._model=e,this._api=n,this._active=!0;var o=this._mainGroup,s=this._getThumbnailInfo();s&&s.bridge.reset(n);var c=this._symbolDraw,l=this._lineDraw;i&&_A(o,2,i,this._firstRender?null:e),EM(e.getGraph(),Vj(e));var u=e.getData();c.updateData(u);var d=e.getEdgeData();l.updateData(d),this._updateNodeAndLinkScale(),i&&FA(e,n,this._controller,function(t,n,r){return e.coordinateSystem.containPoint([n,r])},null),clearTimeout(this._layoutTimeout);var f=e.forceLayout,p=e.get([`force`,`layoutAnimation`]);f&&(a=!0,this._startForceLayoutIteration(f,n,p));var m=e.get(`layout`);u.graph.eachNode(function(t){var i=t.dataIndex,a=t.getGraphicEl(),o=t.getModel();if(a){a.off(`drag`).off(`dragend`);var s=o.get(`draggable`);s&&a.on(`drag`,function(o){switch(m){case`force`:f.warmUp(),!r._layouting&&r._startForceLayoutIteration(f,n,p),f.setFixed(i),u.setItemLayout(i,[a.x,a.y]);break;case`circular`:u.setItemLayout(i,[a.x,a.y]),t.setLayout({fixed:!0},!0),Gj(e,`symbolSize`,t,[o.offsetX,o.offsetY]),r.updateLayout(e);break;default:u.setItemLayout(i,[a.x,a.y]),Rj(e.getGraph(),e),r.updateLayout(e)}}).on(`dragend`,function(){f&&f.setUnfixed(i)}),a.setDraggable(s,!!o.get(`cursor`)),o.get([`emphasis`,`focus`])===`adjacency`&&(ol(a).focus=t.getAdjacentDataIndices())}}),u.graph.eachEdge(function(e){var t=e.getGraphicEl(),n=e.getModel().get([`emphasis`,`focus`]);t&&n===`adjacency`&&(ol(t).focus={edge:[e.dataIndex],node:[e.node1.dataIndex,e.node2.dataIndex]})});var h=e.get(`layout`)===`circular`&&e.get([`circular`,`rotateLabel`]),g=u.getLayout(`cx`),_=u.getLayout(`cy`);u.graph.eachNode(function(e){qj(e,h,g,_)}),this._firstRender=!1,a||this._renderThumbnail(e,n,this._symbolDraw,this._lineDraw)},t.prototype.dispose=function(){this.remove(),this._controller&&this._controller.dispose()},t.prototype._startForceLayoutIteration=function(e,t,n){var r=this,i=!1;(function a(){e.step(function(e){r.updateLayout(r._model),(e||!i)&&(i=!0,r._renderThumbnail(r._model,t,r._symbolDraw,r._lineDraw)),(r._layouting=!e)&&(n?r._layoutTimeout=setTimeout(a,16):a())})})()},t.prototype.__updateOnOwnRoam=function(e,t,n){var r=SA(t);!this._active||!r||(_A(this._mainGroup,2,r,null),BA(e)&&(this._updateNodeAndLinkScale(),EM(t.getGraph(),Vj(t)),this._lineDraw.updateLayout(),n.updateLabelLayout()),this._updateThumbnailWindow())},t.prototype._updateNodeAndLinkScale=function(){var e=this._model,t=e.getData(),n=Vj(e);t.eachItemGraphicEl(function(e,t){e&&e.setSymbolScale(n)})},t.prototype.updateLayout=function(e){this._active&&(EM(e.getGraph(),Vj(e)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout())},t.prototype.remove=function(){this._active=!1,clearTimeout(this._layoutTimeout),this._layouting=!1,this._layoutTimeout=null,this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove(),this._controller&&this._controller.disable()},t.prototype._getThumbnailInfo=function(){var e=this._model,t=e.coordinateSystem;if(t.type===`view`){var n=OM(e);if(n)return{bridge:n,coordSys:t}}},t.prototype._updateThumbnailWindow=function(){var e=this._getThumbnailInfo();e&&e.bridge.updateWindow(Gk(null,e.coordSys),this._api)},t.prototype._renderThumbnail=function(e,t,n,r){var i=this._getThumbnailInfo();if(i){var a=new Yu,o=n.group.children(),s=r.group.children(),c=new Yu,l=new Yu;a.add(l),a.add(c);for(var u=0;ua&&(t[1-r]=Vs(t[r],d.sign*a)),t}function IM(e,t){var n=e[t]-e[1-t];return{span:Math.abs(n),sign:n>0?-1:n<0?1:t?-1:1}}function LM(e,t){return Math.min(t[1]==null?1/0:t[1],Math.max(t[0]==null?-1/0:t[0],e))}var RM=`sankey`,zM=function(e){p(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.getInitialData=function(e,t){var n=e.edges||e.links||[],r=e.data||e.nodes||[],i=e.levels||[];this.levelModels=[];for(var a=this.levelModels,o=0;o=0&&(a[i[o].depth]=new Ep(i[o],this,t));return bj(r,n,this,!0,s).data;function s(e,t){e.wrapMethod(`getItemModel`,function(e,t){var n=e.parentModel,r=n.getData().getItemLayout(t);if(r){var i=r.depth,a=n.levelModels[i];a&&(e.parentModel=a)}return e}),t.wrapMethod(`getItemModel`,function(e,t){var n=e.parentModel,r=n.getGraph().getEdgeByIndex(t).node1.getLayout();if(r){var i=r.depth,a=n.levelModels[i];a&&(e.parentModel=a)}return e})}},t.prototype.setNodePosition=function(e,t){var n=(this.option.data||this.option.nodes)[e];n.localX=t[0],n.localY=t[1]},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.formatTooltip=function(e,t,n){function r(e){return isNaN(e)||e==null}if(n===`edge`){var i=this.getDataParams(e,n),a=i.data,o=i.value;return G_(`nameValue`,{name:a.source+` -- `+a.target,value:o,noValue:r(o)})}var s=this.getGraph().getNodeByIndex(e).getLayout().value,c=this.getDataParams(e,n).data.name;return G_(`nameValue`,{name:c==null?null:c+``,value:s,noValue:r(s)})},t.prototype.optionUpdated=function(){},t.prototype.getDataParams=function(t,n){var r=e.prototype.getDataParams.call(this,t,n);return r.value==null&&n===`node`&&(r.value=this.getGraph().getNodeByIndex(t).getLayout().value),r},t.prototype.__ownRoamView=function(){return this.coordinateSystem},t.type=`series.`+RM,t.layoutMode=`box`,t.defaultOption={z:2,coordinateSystemUsage:`box`,left:`5%`,top:`5%`,right:`20%`,bottom:`5%`,orient:`horizontal`,nodeWidth:20,nodeGap:8,draggable:!0,layoutIterations:32,roam:!1,roamTrigger:`global`,center:null,zoom:1,label:{show:!0,position:`right`,fontSize:12},edgeLabel:{show:!1,fontSize:12},levels:[],nodeAlign:`justify`,lineStyle:{color:H.color.neutral50,opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},select:{itemStyle:{borderColor:H.color.primary}},animationEasing:`linear`,animationDuration:1e3},t}(dv),BM=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.cpx2=0,this.cpy2=0,this.extent=0}return e}(),VM=function(e){p(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new BM},t.prototype.buildPath=function(e,t){var n=t.extent;e.moveTo(t.x1,t.y1),e.bezierCurveTo(t.cpx1,t.cpy1,t.cpx2,t.cpy2,t.x2,t.y2),t.orient===`vertical`?(e.lineTo(t.x2+n,t.y2),e.bezierCurveTo(t.cpx2+n,t.cpy2,t.cpx1+n,t.cpy1,t.x1+n,t.y1)):(e.lineTo(t.x2,t.y2+n),e.bezierCurveTo(t.cpx2,t.cpy2+n,t.cpx1,t.cpy1+n,t.x1,t.y1+n)),e.closePath()},t.prototype.highlight=function(){Zl(this)},t.prototype.downplay=function(){Ql(this)},t}(Lo),HM=function(e){p(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=RM,t._mainGroup=new Yu,t}return t.prototype.init=function(e,t){this._controller=new jk(t.getZr()),this.group.add(this._mainGroup),this._firstRender=!0},t.prototype.render=function(e,t,n){var r=e.getGraph(),i=this._mainGroup,a=e.layoutInfo,o=a.width,s=a.height,c=e.getData(),l=e.getData(`edge`),u=e.get(`orient`);i.removeAll(),i.x=a.x,i.y=a.y,this._updateViewCoordSys(e,n),FA(e,n,this._controller,IA(i),null),r.eachEdge(function(t){var n=new VM,r=ol(n);r.dataIndex=t.dataIndex,r.seriesIndex=e.seriesIndex,r.dataType=`edge`;var a=t.getModel(),c=a.getModel(`lineStyle`),d=c.get(`curveness`),f=t.node1.getLayout(),p=t.node1.getModel(),m=p.get(`localX`),h=p.get(`localY`),g=t.node2.getLayout(),_=t.node2.getModel(),v=_.get(`localX`),y=_.get(`localY`),b=t.getLayout(),x,S,C,w,T,E,D,O;n.shape.extent=Math.max(1,b.dy),n.shape.orient=u,u===`vertical`?(x=(m==null?f.x:m*o)+b.sy,S=(h==null?f.y:h*s)+f.dy,C=(v==null?g.x:v*o)+b.ty,w=y==null?g.y:y*s,T=x,E=S*(1-d)+w*d,D=C,O=S*d+w*(1-d)):(x=(m==null?f.x:m*o)+f.dx,S=(h==null?f.y:h*s)+b.sy,C=v==null?g.x:v*o,w=(y==null?g.y:y*s)+b.ty,T=x*(1-d)+C*d,E=S,D=x*d+C*(1-d),O=w),n.setShape({x1:x,y1:S,x2:C,y2:w,cpx1:T,cpy1:E,cpx2:D,cpy2:O}),n.useStyle(c.getItemStyle()),UM(n.style,u,t);var k=``+a.get(`value`),ee=ip(a,`edgeLabel`);rp(n,ee,{labelFetcher:{getFormattedLabel:function(t,n,r,i,a,o){return e.getFormattedLabel(t,n,`edge`,i,Te(a,ee.normal&&ee.normal.get(`formatter`),k),o)}},labelDataIndex:t.dataIndex,defaultText:k}),n.setTextConfig({position:`inside`});var te=a.getModel(`emphasis`);bu(n,a,`lineStyle`,function(e){var n=e.getItemStyle();return UM(n,u,t),n}),i.add(n),l.setItemGraphicEl(t.dataIndex,n);var ne=te.get(`focus`);gu(n,ne===`adjacency`?t.getAdjacentDataIndices():ne===`trajectory`?t.getTrajectoryDataIndices():ne,te.get(`blurScope`),te.get(`disabled`))}),r.eachNode(function(t){var n=t.getLayout(),r=t.getModel(),a=r.get(`localX`),l=r.get(`localY`),u=r.getModel(`emphasis`),d=r.get([`itemStyle`,`borderRadius`])||0,f=new Zo({shape:{x:a==null?n.x:a*o,y:l==null?n.y:l*s,width:n.dx,height:n.dy,r:d},style:r.getModel(`itemStyle`).getItemStyle(),z2:10});rp(f,ip(r),{labelFetcher:{getFormattedLabel:function(t,n){return e.getFormattedLabel(t,n,`node`)}},labelDataIndex:t.dataIndex,defaultText:t.id}),f.disableLabelAnimation=!0,f.setStyle(`fill`,t.getVisual(`color`)),f.setStyle(`decal`,t.getVisual(`style`).decal),bu(f,r),i.add(f),c.setItemGraphicEl(t.dataIndex,f),ol(f).dataType=`node`;var p=u.get(`focus`);gu(f,p===`adjacency`?t.getAdjacentDataIndices():p===`trajectory`?t.getTrajectoryDataIndices():p,u.get(`blurScope`),u.get(`disabled`))}),c.eachItemGraphicEl(function(t,r){c.getItemModel(r).get(`draggable`)&&(t.drift=function(t,i){this.shape.x+=t,this.shape.y+=i,this.dirty(),n.dispatchAction({type:`dragNode`,seriesId:e.id,dataIndex:c.getRawIndex(r),localX:this.shape.x/o,localY:this.shape.y/s})},t.draggable=!0,t.cursor=`move`)}),!this._data&&e.isAnimationEnabled()&&i.setClipPath(WM(i.getBoundingRect(),e,function(){i.removeClipPath()})),this._data=e.getData(),this._firstRender=!1},t.prototype.__updateOnOwnRoam=function(e,t,n){_A(this.group,2,t.coordinateSystem,null)},t.prototype.dispose=function(){this._controller&&this._controller.dispose()},t.prototype._updateViewCoordSys=function(e,t){var n=e.layoutInfo,r=e.coordinateSystem=VA(e,t,n.x,n.y,n.width,n.height);_A(this.group,2,r,this._firstRender?null:e)},t.type=RM,t}(Bv);function UM(e,t,n){switch(e.fill){case`source`:e.fill=n.node1.getVisual(`color`),e.decal=n.node1.getVisual(`style`).decal;break;case`target`:e.fill=n.node2.getVisual(`color`),e.decal=n.node2.getVisual(`style`).decal;break;case`gradient`:var r=n.node1.getVisual(`color`),i=n.node2.getVisual(`color`);z(r)&&z(i)&&(e.fill=new Id(0,0,+(t===`horizontal`),+(t===`vertical`),[{color:r,offset:0},{color:i,offset:1}]))}}function WM(e,t,n){var r=new Zo({shape:{x:e.x-10,y:e.y-10,width:0,height:e.height+20}});return $d(r,{shape:{width:e.width+20}},t,n),r}var GM=il(RM,KM);function KM(e,t){e.eachSeriesByType(RM,function(e){var n=e.get(`nodeWidth`),r=e.get(`nodeGap`),i=s_(e,t).refContainer,a=i_(e.getBoxLayoutParams(),i);e.layoutInfo=a;var o=a.width,s=a.height,c=e.getGraph(),l=c.nodes,u=c.edges;JM(l),qM(l,u,n,r,o,s,ue(l,function(e){return e.getLayout().value===0}).length===0?e.get(`layoutIterations`):0,e.get(`orient`),e.get(`nodeAlign`))})}function qM(e,t,n,r,i,a,o,s,c){YM(e,t,n,i,a,s,c),eN(e,t,a,i,r,o,s),pN(e,s)}function JM(e){I(e,function(e){var t=dN(e.outEdges,uN),n=dN(e.inEdges,uN),r=e.getValue()||0,i=Math.max(t,n,r);e.setLayout({value:i},!0)})}function YM(e,t,n,r,i,a,o){for(var s=[],c=[],l=[],u=[],d=0,f=0;f=0;_&&g.depth>p&&(p=g.depth),h.setLayout({depth:_?g.depth:d},!0),a===`vertical`?h.setLayout({dy:n},!0):h.setLayout({dx:n},!0);for(var v=0;vd-1?p:d-1;o&&o!==`left`&&ZM(e,o,a,C),$M(e,a===`vertical`?(i-n)/C:(r-n)/C,a)}function XM(e){var t=e.hostGraph.data.getRawDataItem(e.dataIndex);return t.depth!=null&&t.depth>=0}function ZM(e,t,n,r){if(t===`right`){for(var i=[],a=e,o=0;a.length;){for(var s=0;s0;a--)c*=.99,iN(s,c,o),rN(s,i,n,r,o),fN(s,c,o),rN(s,i,n,r,o)}function tN(e,t){var n=[],r=t===`vertical`?`y`:`x`,i=Vc(e,function(e){return e.getLayout()[r]});return Ls(i.keys),I(i.keys,function(e){n.push(i.buckets.get(e))}),n}function nN(e,t,n,r,i,a){var o=1/0;I(e,function(e){var t=e.length,s=0;I(e,function(e){s+=e.getLayout().value});var c=a===`vertical`?(r-(t-1)*i)/s:(n-(t-1)*i)/s;c0&&(o=s.getLayout()[a]+c,i===`vertical`?s.setLayout({x:o},!0):s.setLayout({y:o},!0)),l=s.getLayout()[a]+s.getLayout()[d]+t;var p=i===`vertical`?r:n;if(c=l-t-p,c>0){o=s.getLayout()[a]-c,i===`vertical`?s.setLayout({x:o},!0):s.setLayout({y:o},!0),l=o;for(var f=u-2;f>=0;--f)s=e[f],c=s.getLayout()[a]+s.getLayout()[d]+t-l,c>0&&(o=s.getLayout()[a]-c,i===`vertical`?s.setLayout({x:o},!0):s.setLayout({y:o},!0)),l=s.getLayout()[a]}})}function iN(e,t,n){I(e.slice().reverse(),function(e){I(e,function(e){if(e.outEdges.length){var r=dN(e.outEdges,aN,n)/dN(e.outEdges,uN);if(isNaN(r)){var i=e.outEdges.length;r=i?dN(e.outEdges,oN,n)/i:0}if(n===`vertical`){var a=e.getLayout().x+(r-lN(e,n))*t;e.setLayout({x:a},!0)}else{var o=e.getLayout().y+(r-lN(e,n))*t;e.setLayout({y:o},!0)}}})})}function aN(e,t){return lN(e.node2,t)*e.getValue()}function oN(e,t){return lN(e.node2,t)}function sN(e,t){return lN(e.node1,t)*e.getValue()}function cN(e,t){return lN(e.node1,t)}function lN(e,t){return t===`vertical`?e.getLayout().x+e.getLayout().dx/2:e.getLayout().y+e.getLayout().dy/2}function uN(e){return e.getValue()}function dN(e,t,n){for(var r=0,i=e.length,a=-1;++aa&&(a=t)}),I(n,function(t){var n=new tj({type:`color`,mappingMethod:`linear`,dataExtent:[i,a],visual:e.get(`color`)}).mapValueToVisual(t.getLayout().value),r=t.getModel().get([`itemStyle`,`color`]);r==null?(t.setVisual(`color`,n),t.setVisual(`style`,{fill:n})):(t.setVisual(`color`,r),t.setVisual(`style`,{fill:r}))})}r.length&&I(r,function(e){var t=e.getModel().get(`lineStyle`);e.setVisual(`style`,t)})})}function gN(e){e.registerChartView(HM),e.registerSeriesModel(zM),e.registerLayout(GM),e.registerVisual(mN),e.registerAction({type:`dragNode`,event:`dragnode`,update:`update`},function(e,t){t.eachComponent({mainType:cl,subType:RM,query:e},function(t){t.setNodePosition(e.dataIndex,[e.localX,e.localY])})}),RA(e,cl,RM)}var _N=256,vN=function(){function e(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var e=b.createCanvas();this.canvas=e}return e.prototype.update=function(e,t,n,r,i,a){var o=this._getBrush(),s=this._getGradient(i,`inRange`),c=this._getGradient(i,`outOfRange`),l=this.pointSize+this.blurSize,u=this.canvas,d=u.getContext(`2d`),f=e.length;u.width=t,u.height=n;for(var p=0;p0){var E=a(v)?s:c;v>0&&(v=v*w+C),b[x++]=E[T],b[x++]=E[T+1],b[x++]=E[T+2],b[x++]=E[T+3]*v*256}else x+=4}return d.putImageData(y,0,0),u},e.prototype._getBrush=function(){var e=this._brushCanvas||=b.createCanvas(),t=this.pointSize+this.blurSize,n=t*2;e.width=n,e.height=n;var r=e.getContext(`2d`);return r.clearRect(0,0,n,n),r.shadowOffsetX=n,r.shadowBlur=this.blurSize,r.shadowColor=H.color.neutral99,r.beginPath(),r.arc(-t,t,this.pointSize,0,Math.PI*2,!0),r.closePath(),r.fill(),e},e.prototype._getGradient=function(e,t){for(var n=this._gradientPixels,r=n[t]||(n[t]=new Uint8ClampedArray(1024)),i=[0,0,0,0],a=0,o=0;o<256;o++)e[t](o/255,!0,i),r[a++]=i[0],r[a++]=i[1],r[a++]=i[2],r[a++]=i[3];return r},e}();function yN(e,t,n){var r=e[1]-e[0];t=L(t,function(t){return{interval:[(t.interval[0]-e[0])/r,(t.interval[1]-e[0])/r]}});var i=t.length,a=0;return function(e){var r;for(r=a;r=0;r--){var o=t[r].interval;if(o[0]<=e&&e<=o[1]){a=r;break}}return r>=0&&r=t[0]&&e<=t[1]}}var xN=function(e){p(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(e,t,n){var r;t.eachComponent(`visualMap`,function(t){t.eachTargetSeries(function(n){n===e&&(r=t)})}),this._progressiveEls=null,this.group.removeAll();var i=e.coordinateSystem;i.type===`cartesian2d`||i.type===`calendar`||i.type===`matrix`?this._renderOnGridLike(e,n,0,e.getData().count()):qv(i)&&this._renderOnGeo(i,e,r,n)},t.prototype.incrementalPrepareRender=function(e,t,n){this.group.removeAll()},t.prototype.incrementalRender=function(e,t,n,r){var i=t.coordinateSystem;i&&(qv(i)?this.render(t,n,r):(this._progressiveEls=[],this._renderOnGridLike(t,r,e.start,e.end,!0)))},t.prototype.eachRendered=function(e){Vf(this._progressiveEls||this.group,e)},t.prototype._renderOnGridLike=function(e,t,n,r,i){var a=e.coordinateSystem,o=Kv(a,`cartesian2d`),s=Kv(a,`matrix`),c,l,u,d;if(o){var f=a.getAxis(`x`),p=a.getAxis(`y`);c=Yb(f).w+.5,l=Yb(p).w+.5,u=f.scale.getExtent(),d=p.scale.getExtent()}for(var m=this.group,h=e.getData(),g=e.getModel([`emphasis`,`itemStyle`]).getItemStyle(),_=e.getModel([`blur`,`itemStyle`]).getItemStyle(),v=e.getModel([`select`,`itemStyle`]).getItemStyle(),y=e.get([`itemStyle`,`borderRadius`]),b=ip(e),x=e.getModel(`emphasis`),S=x.get(`focus`),C=x.get(`blurScope`),w=x.get(`disabled`),T=o||s?[h.mapDimension(`x`),h.mapDimension(`y`),h.mapDimension(`value`)]:[h.mapDimension(`time`),h.mapDimension(`value`)],E=n;Eu[1]||eed[1])continue;var te=a.dataToPoint([k,ee]);D=new Zo({shape:{x:te[0]-c/2,y:te[1]-l/2,width:c,height:l},style:O})}else if(s){var ne=a.dataToLayout([h.get(T[0],E),h.get(T[1],E)]).rect;if(Ce(ne.x))continue;D=new Zo({z2:1,shape:ne,style:O})}else{if(isNaN(h.get(T[1],E)))continue;var A=a.dataToLayout([h.get(T[0],E)]),ne=A.contentRect||A.rect;if(Ce(ne.x)||Ce(ne.y))continue;D=new Zo({z2:1,shape:ne,style:O})}if(h.hasItemOption){var j=h.getItemModel(E),re=j.getModel(`emphasis`);g=re.getModel(`itemStyle`).getItemStyle(),_=j.getModel([`blur`,`itemStyle`]).getItemStyle(),v=j.getModel([`select`,`itemStyle`]).getItemStyle(),y=j.get([`itemStyle`,`borderRadius`]),S=re.get(`focus`),C=re.get(`blurScope`),w=re.get(`disabled`),b=ip(j)}D.shape.r=y;var M=e.getRawValue(E),N=`-`;M&&M[2]!=null&&(N=M[2]+``),rp(D,b,{labelFetcher:e,labelDataIndex:E,defaultOpacity:O.opacity,defaultText:N}),D.ensureState(`emphasis`).style=g,D.ensureState(`blur`).style=_,D.ensureState(`select`).style=v,gu(D,S,C,w),D.incremental=nl(e,i),i&&(D.states.emphasis.hoverLayer=2),m.add(D),h.setItemGraphicEl(E,D),this._progressiveEls&&this._progressiveEls.push(D)}},t.prototype._renderOnGeo=function(e,t,n,r){var i=n.targetVisuals.inRange,a=n.targetVisuals.outOfRange,o=t.getData(),s=this._hmLayer||this._hmLayer||new vN;s.blurSize=t.get(`blurSize`),s.pointSize=t.get(`pointSize`),s.minOpacity=t.get(`minOpacity`),s.maxOpacity=t.get(`maxOpacity`);var c=e.getViewRect().clone(),l=e.getRoamTransform();c.applyTransform(l);var u=Math.max(c.x,0),d=Math.max(c.y,0),f=Math.min(c.width+c.x,r.getWidth()),p=Math.min(c.height+c.y,r.getHeight()),m=f-u,h=p-d,g=[o.mapDimension(`lng`),o.mapDimension(`lat`),o.mapDimension(`value`)],_=o.mapArray(g,function(t,n,r){var i=e.dataToPoint([t,n]);return i[0]-=u,i[1]-=d,i.push(r),i}),v=n.getExtent(),y=n.type===`visualMap.continuous`?bN(v,n.option.range):yN(v,n.getPieceList(),n.option.selected);s.update(_,m,h,i.color.getNormalizer(),{inRange:i.color.getColorMapper(),outOfRange:a.color.getColorMapper()},y);var b=new Uo({style:{width:m,height:h,x:u,y:d,image:s.canvas},silent:!0});this.group.add(b)},t.type=`heatmap`,t}(Bv),SN=function(e){p(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.getInitialData=function(e,t){return Ch(null,this,{generateCoord:`value`})},t.prototype.preventIncremental=function(){var e=sh.get(this.get(`coordinateSystem`));if(e&&e.dimensions)return e.dimensions[0]===`lng`&&e.dimensions[1]===`lat`},t.type=`series.heatmap`,t.dependencies=[`grid`,`geo`,`calendar`,`matrix`],t.defaultOption={coordinateSystem:`cartesian2d`,z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:H.color.primary}}},t}(dv);function CN(e){e.registerChartView(xN),e.registerSeriesModel(SN)}function wN(e){return Object.keys(e)}function TN(e){return e&&typeof e==`object`&&!Array.isArray(e)}function EN(e,t){let n={...e},r=t;return TN(e)&&TN(t)&&Object.keys(t).forEach(t=>{TN(r[t])&&t in e?n[t]=EN(n[t],r[t]):n[t]=r[t]}),n}function DN(e){return e.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)}function ON(e){return typeof e!=`string`||!e.includes(`var(--mantine-scale)`)?e:e.match(/^calc\((.*?)\)$/)?.[1].split(`*`)[0].trim()}function kN(e){let t=ON(e);return typeof t==`number`?t:typeof t==`string`?t.includes(`calc`)||t.includes(`var`)?t:t.includes(`px`)?Number(t.replace(`px`,``)):t.includes(`rem`)?Number(t.replace(`rem`,``))*16:t.includes(`em`)?Number(t.replace(`em`,``))*16:Number(t):NaN}function AN(e){return e===`0rem`?`0rem`:`calc(${e} * var(--mantine-scale))`}function jN(e,{shouldScale:t=!1}={}){function n(r){if(r===0||r===`0`)return`0${e}`;if(typeof r==`number`){let n=`${r/16}${e}`;return t?AN(n):n}if(typeof r==`string`){if(r===``||r.startsWith(`calc(`)||r.startsWith(`clamp(`)||r.includes(`rgba(`))return r;if(r.includes(`,`))return r.split(`,`).map(e=>n(e)).join(`,`);if(r.includes(` `))return r.split(` `).map(e=>n(e)).join(` `);let i=r.replace(`px`,``);if(!Number.isNaN(Number(i))){let n=`${Number(i)/16}${e}`;return t?AN(n):n}}return r}return n}var W=jN(`rem`,{shouldScale:!0}),MN=jN(`em`);function NN(e){return Object.keys(e).reduce((t,n)=>(e[n]!==void 0&&(t[n]=e[n]),t),{})}function PN(e){if(typeof e==`number`)return!0;if(typeof e==`string`){if(e.startsWith(`calc(`)||e.startsWith(`var(`)||e.includes(` `)&&e.trim()!==``)return!0;let t=/^[+-]?[0-9]+(\.[0-9]+)?(px|em|rem|ex|ch|lh|rlh|vw|vh|vmin|vmax|vb|vi|svw|svh|lvw|lvh|dvw|dvh|cm|mm|in|pt|pc|q|cqw|cqh|cqi|cqb|cqmin|cqmax|%)?$/;return e.trim().split(/\s+/).every(e=>t.test(e))}return!1}var FN=s((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.portal`),r=Symbol.for(`react.fragment`),i=Symbol.for(`react.strict_mode`),a=Symbol.for(`react.profiler`),o=Symbol.for(`react.consumer`),s=Symbol.for(`react.context`),c=Symbol.for(`react.forward_ref`),l=Symbol.for(`react.suspense`),u=Symbol.for(`react.memo`),d=Symbol.for(`react.lazy`),f=Symbol.for(`react.activity`),p=Symbol.iterator;function m(e){return typeof e!=`object`||!e?null:(e=p&&e[p]||e[`@@iterator`],typeof e==`function`?e:null)}var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,_={};function v(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||h}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if(typeof e!=`object`&&typeof e!=`function`&&e!=null)throw Error(`takes an object of state variables to update or a function which returns an object of state variables.`);this.updater.enqueueSetState(this,e,t,`setState`)},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,`forceUpdate`)};function y(){}y.prototype=v.prototype;function b(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||h}var x=b.prototype=new y;x.constructor=b,g(x,v.prototype),x.isPureReactComponent=!0;var S=Array.isArray;function C(){}var w={H:null,A:null,T:null,S:null},T=Object.prototype.hasOwnProperty;function E(e,n,r){var i=r.ref;return{$$typeof:t,type:e,key:n,ref:i===void 0?null:i,props:r}}function D(e,t){return E(e.type,t,e.props)}function O(e){return typeof e==`object`&&!!e&&e.$$typeof===t}function k(e){var t={"=":`=0`,":":`=2`};return`$`+e.replace(/[=:]/g,function(e){return t[e]})}var ee=/\/+/g;function te(e,t){return typeof e==`object`&&e&&e.key!=null?k(``+e.key):t.toString(36)}function ne(e){switch(e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason;default:switch(typeof e.status==`string`?e.then(C,C):(e.status=`pending`,e.then(function(t){e.status===`pending`&&(e.status=`fulfilled`,e.value=t)},function(t){e.status===`pending`&&(e.status=`rejected`,e.reason=t)})),e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason}}throw e}function A(e,r,i,a,o){var s=typeof e;(s===`undefined`||s===`boolean`)&&(e=null);var c=!1;if(e===null)c=!0;else switch(s){case`bigint`:case`string`:case`number`:c=!0;break;case`object`:switch(e.$$typeof){case t:case n:c=!0;break;case d:return c=e._init,A(c(e._payload),r,i,a,o)}}if(c)return o=o(e),c=a===``?`.`+te(e,0):a,S(o)?(i=``,c!=null&&(i=c.replace(ee,`$&/`)+`/`),A(o,r,i,``,function(e){return e})):o!=null&&(O(o)&&(o=D(o,i+(o.key==null||e&&e.key===o.key?``:(``+o.key).replace(ee,`$&/`)+`/`)+c)),r.push(o)),1;c=0;var l=a===``?`.`:a+`:`;if(S(e))for(var u=0;u{t.exports=FN()})),G=u(IN(),1);function LN(e){let t=(0,G.createContext)(null);return[t,()=>{let n=(0,G.use)(t);if(n===null)throw Error(e);return n}]}function RN(e,t){return n=>{if(typeof n!=`string`||n.trim().length===0)throw Error(t);return`${e}-${n}`}}function zN(e,t){let n=e;for(;(n=n.parentElement)&&!n.matches(t););return n}function BN(e,t,n){for(let n=e-1;n>=0;--n)if(!t[n].disabled)return n;if(n){for(let e=t.length-1;e>-1;--e)if(!t[e].disabled)return e}return e}function VN(e,t,n){for(let n=e+1;n{n?.(s);let c=Array.from(zN(s.currentTarget,e)?.querySelectorAll(t)||[]).filter(t=>HN(s.currentTarget,t,e)),l=c.findIndex(e=>s.currentTarget===e),u=VN(l,c,r),d=BN(l,c,r),f=a===`rtl`?d:u,p=a===`rtl`?u:d;switch(s.key){case`ArrowRight`:o===`horizontal`&&(s.stopPropagation(),s.preventDefault(),c[f].focus(),i&&c[f].click());break;case`ArrowLeft`:o===`horizontal`&&(s.stopPropagation(),s.preventDefault(),c[p].focus(),i&&c[p].click());break;case`ArrowUp`:o===`vertical`&&(s.stopPropagation(),s.preventDefault(),c[d].focus(),i&&c[d].click());break;case`ArrowDown`:o===`vertical`&&(s.stopPropagation(),s.preventDefault(),c[u].focus(),i&&c[u].click());break;case`Home`:s.stopPropagation(),s.preventDefault(),c[VN(-1,c,!1)]?.focus();break;case`End`:s.stopPropagation(),s.preventDefault(),c[BN(c.length,c,!1)]?.focus()}}}function WN(e,t=`size`,n=!0){if(e!==void 0)return PN(e)?n?W(e):e:`var(--${t}-${e})`}function GN(e){return WN(e,`mantine-spacing`)}function KN(e){return e===void 0?`var(--mantine-radius-default)`:WN(e,`mantine-radius`)}function qN(e){return WN(e,`mantine-font-size`)}function JN(e){return WN(e,`mantine-line-height`,!1)}function YN(e){if(e)return WN(e,`mantine-shadow`,!1)}function XN(e,t){return n=>{e?.(n),t?.(n)}}function ZN(e=`mantine-`){return`${e}${Math.random().toString(36).slice(2,11)}`}function QN(e){let t=(0,G.useRef)(e);return(0,G.useEffect)(()=>{t.current=e}),(0,G.useMemo)(()=>((...e)=>t.current?.(...e)),[])}function $N(e,t){let{delay:n,flushOnUnmount:r,leading:i,maxWait:a}=typeof t==`number`?{delay:t,flushOnUnmount:!1,leading:!1,maxWait:void 0}:t,o=QN(e),s=(0,G.useRef)(0),c=(0,G.useRef)(0),l=(0,G.useRef)(null),u=(0,G.useMemo)(()=>{let e=Object.assign((...t)=>{window.clearTimeout(s.current),l.current=t;let r=e._isFirstCall;e._isFirstCall=!1;function u(){window.clearTimeout(s.current),window.clearTimeout(c.current),s.current=0,c.current=0,e._isFirstCall=!0,e._hasPendingCallback=!1}function d(){a!==void 0&&c.current===0&&(c.current=window.setTimeout(()=>{if(s.current!==0){let e=l.current;u(),o(...e)}},a))}if(i&&r){o(...t),e.flush=()=>{s.current!==0&&(u(),o(...t))},e.cancel=()=>{u()},s.current=window.setTimeout(()=>{u()},n),d();return}if(i&&!r){e._hasPendingCallback=!0,e.flush=()=>{s.current!==0&&(u(),o(...t))},e.cancel=()=>{u()},s.current=window.setTimeout(()=>{u()},n),d();return}e._hasPendingCallback=!0;let f=()=>{s.current!==0&&(u(),o(...t))};e.flush=f,e.cancel=()=>{u()},s.current=window.setTimeout(f,n),d()},{flush:()=>{},cancel:()=>{},isPending:()=>e._hasPendingCallback,_isFirstCall:!0,_hasPendingCallback:!1});return e},[o,n,i,a]);return(0,G.useEffect)(()=>()=>{r?u.flush():u.cancel()},[u,r]),u}function eP(e,t){return typeof t==`boolean`?t:typeof window<`u`&&`matchMedia`in window&&window.matchMedia(e).matches}function tP(e,t,{getInitialValueInEffect:n}={getInitialValueInEffect:!0}){let[r,i]=(0,G.useState)(n?t:eP(e));return(0,G.useEffect)(()=>{try{if(`matchMedia`in window){let t=window.matchMedia(e);i(t.matches);let n=e=>i(e.matches);return t.addEventListener(`change`,n),()=>{t.removeEventListener(`change`,n)}}}catch{return}},[e]),r||!1}var nP=typeof document<`u`?G.useLayoutEffect:G.useEffect;function rP(e,t){let n=(0,G.useRef)(!1);(0,G.useEffect)(()=>()=>{n.current=!1},[]),(0,G.useEffect)(()=>{if(n.current)return e();n.current=!0},t)}var iP=e=>(e+1)%1e6;function aP(){let[,e]=(0,G.useReducer)(iP,0);return e}function oP(e){let[t,n]=(0,G.useState)(`mantine-${(0,G.useId)().replace(/:/g,``)}`),r=(0,G.useRef)(!1);return nP(()=>{r.current||(r.current=!0,n(ZN()))},[]),typeof e==`string`?e:t}function sP(e,t){if(typeof e==`function`)return e(t);typeof e==`object`&&e&&`current`in e&&(e.current=t)}function cP(...e){let t=new Map;return n=>{if(e.forEach(e=>{let r=sP(e,n);r&&t.set(e,r)}),t.size>0)return()=>{e.forEach(e=>{let n=t.get(e);n&&typeof n==`function`?n():sP(e,null)}),t.clear()}}}function lP(...e){return(0,G.useCallback)(cP(...e),e)}function uP({value:e,defaultValue:t,finalValue:n,onChange:r=()=>{}}){let[i,a]=(0,G.useState)(t===void 0?n:t);return e===void 0?[i,(e,...t)=>{a(e),r?.(e,...t)},!1]:[e,r,!0]}function dP(e,t){let n=t-e+1;return Array.from({length:n},(t,n)=>n+e)}var fP=`dots`;function pP({total:e,siblings:t=1,boundaries:n=1,page:r,initialPage:i,onChange:a,startValue:o=1}){let s=Math.max(Math.trunc(o),1),c=Math.max(Math.trunc(e),s),l=c-s+1,u=i??s,[d,f]=uP({value:r,onChange:a,defaultValue:u,finalValue:u}),p=(0,G.useCallback)(e=>{f(ec?c:e)},[s,c,f]),m=(0,G.useCallback)(()=>p(d+1),[d,p]),h=(0,G.useCallback)(()=>p(d-1),[d,p]),g=(0,G.useCallback)(()=>p(s),[p,s]),_=(0,G.useCallback)(()=>p(c),[c,p]);return{range:(0,G.useMemo)(()=>{if(t*2+3+n*2>=l)return dP(s,c);let e=Math.max(d-t,s+n-1),r=Math.min(d+t,c-n),i=e>s+n+1,a=r{var t=IN();function n(e){var t=`https://react.dev/errors/`+e;if(1{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=lee()}));function hP(e){return e}function gP(e){var t,n,r=``;if(typeof e==`string`||typeof e==`number`)r+=e;else if(typeof e==`object`)if(Array.isArray(e)){var i=e.length;for(t=0;t{Object.entries(e).forEach(([e,n])=>{t[e]?t[e]=_P(t[e],n):t[e]=n})}),t}function bP({theme:e,classNames:t,props:n,stylesCtx:r}){return yP((Array.isArray(t)?t:[t]).map(t=>typeof t==`function`?t(e,n,r):t||vP))}function xP({theme:e,styles:t,props:n,stylesCtx:r}){let i=Array.isArray(t)?t:[t],a={};for(let t of i)typeof t==`function`?Object.assign(a,t(e,n,r)):t&&Object.assign(a,t);return a}function SP(e){return e===`auto`||e===`dark`||e===`light`}function CP({key:e=`mantine-color-scheme-value`}={}){let t;return{get:t=>{if(typeof window>`u`)return t;try{let n=window.localStorage.getItem(e);return SP(n)?n:t}catch{return t}},set:t=>{try{window.localStorage.setItem(e,t)}catch(e){console.warn(`[@mantine/core] Local storage color scheme manager was unable to save color scheme.`,e)}},subscribe:n=>{t=t=>{t.storageArea===window.localStorage&&t.key===e&&SP(t.newValue)&&n(t.newValue)},window.addEventListener(`storage`,t)},unsubscribe:()=>{window.removeEventListener(`storage`,t)},clear:()=>{window.localStorage.removeItem(e)}}}function wP(e,t){return typeof e.primaryShade==`number`?e.primaryShade:t===`dark`?e.primaryShade.dark:e.primaryShade.light}function TP(e){return/^#?([0-9A-F]{3}){1,2}([0-9A-F]{2})?$/i.test(e)}function EP(e){let t=e.replace(`#`,``);if(t.length===3){let e=t.split(``);t=[e[0],e[0],e[1],e[1],e[2],e[2]].join(``)}if(t.length===8){let e=parseInt(t.slice(6,8),16)/255;return{r:parseInt(t.slice(0,2),16),g:parseInt(t.slice(2,4),16),b:parseInt(t.slice(4,6),16),a:e}}let n=parseInt(t,16);return{r:n>>16&255,g:n>>8&255,b:n&255,a:1}}function DP(e){let[t,n,r,i]=e.replace(/[^0-9,./]/g,``).split(/[/,]/).map(Number);return{r:t,g:n,b:r,a:i===void 0?1:i}}function OP(e){let t=e.match(/^hsla?\(\s*(\d+)\s*,\s*(\d+%)\s*,\s*(\d+%)\s*(,\s*(0?\.\d+|\d+(\.\d+)?))?\s*\)$/i);if(!t)return{r:0,g:0,b:0,a:1};let n=parseInt(t[1],10),r=parseInt(t[2],10)/100,i=parseInt(t[3],10)/100,a=t[5]?parseFloat(t[5]):void 0,o=(1-Math.abs(2*i-1))*r,s=n/60,c=o*(1-Math.abs(s%2-1)),l=i-o/2,u,d,f;return s>=0&&s<1?(u=o,d=c,f=0):s>=1&&s<2?(u=c,d=o,f=0):s>=2&&s<3?(u=0,d=o,f=c):s>=3&&s<4?(u=0,d=c,f=o):s>=4&&s<5?(u=c,d=0,f=o):(u=o,d=0,f=c),{r:Math.round((u+l)*255),g:Math.round((d+l)*255),b:Math.round((f+l)*255),a:a||1}}function kP(e){return TP(e)?EP(e):e.startsWith(`rgb`)?DP(e):e.startsWith(`hsl`)?OP(e):{r:0,g:0,b:0,a:1}}function AP(e){return e<=.03928?e/12.92:((e+.055)/1.055)**2.4}function jP(e){let t=e.match(/oklch\((.*?)%\s/);return t?parseFloat(t[1]):null}function MP(e){if(e.startsWith(`oklch(`))return(jP(e)||0)/100;let{r:t,g:n,b:r}=kP(e),i=t/255,a=n/255,o=r/255,s=AP(i),c=AP(a),l=AP(o);return .2126*s+.7152*c+.0722*l}function NP(e,t=.179){return!e.startsWith(`var(`)&&MP(e)>t}function PP({color:e,theme:t,colorScheme:n}){if(typeof e!=`string`)throw Error(`[@mantine/core] Failed to parse color. Expected color to be a string, instead got ${typeof e}`);if(e===`bright`)return{color:e,value:n===`dark`?t.white:t.black,shade:void 0,isThemeColor:!1,isLight:NP(n===`dark`?t.white:t.black,t.luminanceThreshold),variable:`--mantine-color-bright`};if(e===`dimmed`)return{color:e,value:n===`dark`?t.colors.dark[2]:t.colors.gray[7],shade:void 0,isThemeColor:!1,isLight:NP(n===`dark`?t.colors.dark[2]:t.colors.gray[6],t.luminanceThreshold),variable:`--mantine-color-dimmed`};if(e===`white`||e===`black`)return{color:e,value:e===`white`?t.white:t.black,shade:void 0,isThemeColor:!1,isLight:NP(e===`white`?t.white:t.black,t.luminanceThreshold),variable:`--mantine-color-${e}`};let[r,i]=e.split(`.`),a=i?Number(i):void 0,o=r in t.colors;if(o){let e=a===void 0?t.colors[r][wP(t,n||`light`)]:t.colors[r][a];return{color:r,value:e,shade:a,isThemeColor:o,isLight:NP(e,t.luminanceThreshold),variable:i?`--mantine-color-${r}-${a}`:`--mantine-color-${r}-filled`}}return{color:e,value:e,isThemeColor:o,isLight:NP(e,t.luminanceThreshold),shade:a,variable:void 0}}function FP(e,t){let n=PP({color:e||t.primaryColor,theme:t});return n.variable?`var(${n.variable})`:e}function IP(e){return!!e&&typeof e==`object`&&`mantine-virtual-color`in e}function LP(e,t){if(e.startsWith(`var(`))return`color-mix(in srgb, ${e}, black ${t*100}%)`;let{r:n,g:r,b:i,a}=kP(e),o=1-t,s=e=>Math.round(e*o);return`rgba(${s(n)}, ${s(r)}, ${s(i)}, ${a})`}function RP(e,t){let n={from:e?.from||t.defaultGradient.from,to:e?.to||t.defaultGradient.to,deg:e?.deg??t.defaultGradient.deg??0},r=FP(n.from,t),i=FP(n.to,t);return`linear-gradient(${n.deg}deg, ${r} 0%, ${i} 100%)`}function zP(e,t){if(typeof e!=`string`||t>1||t<0)return`rgba(0, 0, 0, 1)`;if(e.startsWith(`var(`))return`color-mix(in srgb, ${e}, transparent ${(1-t)*100}%)`;if(e.startsWith(`oklch`))return e.includes(`/`)?e.replace(/\/\s*[\d.]+\s*\)/,`/ ${t})`):e.replace(`)`,` / ${t})`);let{r:n,g:r,b:i}=kP(e);return`rgba(${n}, ${r}, ${i}, ${t})`}var BP=zP,VP=({color:e,theme:t,variant:n,gradient:r,autoContrast:i})=>{let a=PP({color:e,theme:t}),o=typeof i==`boolean`?i:t.autoContrast;if(n===`none`)return{background:`transparent`,hover:`transparent`,color:`inherit`,border:`none`};if(n===`filled`){let n=a.isThemeColor&&a.shade===void 0&&IP(t.colors[a.color]),r=o?n?`var(--mantine-color-${a.color}-contrast)`:a.isLight?`var(--mantine-color-black)`:`var(--mantine-color-white)`:`var(--mantine-color-white)`;return a.isThemeColor?a.shade===void 0?{background:`var(--mantine-color-${e}-filled)`,hover:`var(--mantine-color-${e}-filled-hover)`,color:r,border:`${W(1)} solid transparent`}:{background:`var(--mantine-color-${a.color}-${a.shade})`,hover:`var(--mantine-color-${a.color}-${a.shade===9?8:a.shade+1})`,color:r,border:`${W(1)} solid transparent`}:{background:e,hover:LP(e,.1),color:r,border:`${W(1)} solid transparent`}}if(n===`light`){if(a.isThemeColor){if(a.shade===void 0)return{background:`var(--mantine-color-${e}-light)`,hover:`var(--mantine-color-${e}-light-hover)`,color:`var(--mantine-color-${e}-light-color)`,border:`${W(1)} solid transparent`};let n=t.colors[a.color][a.shade];return{background:n,hover:LP(n,.1),color:`var(--mantine-color-${a.color}-light-color)`,border:`${W(1)} solid transparent`}}return{background:zP(e,.1),hover:zP(e,.12),color:e,border:`${W(1)} solid transparent`}}if(n===`outline`)return a.isThemeColor?a.shade===void 0?{background:`transparent`,hover:`var(--mantine-color-${e}-outline-hover)`,color:`var(--mantine-color-${e}-outline)`,border:`${W(1)} solid var(--mantine-color-${e}-outline)`}:{background:`transparent`,hover:zP(t.colors[a.color][a.shade],.05),color:`var(--mantine-color-${a.color}-${a.shade})`,border:`${W(1)} solid var(--mantine-color-${a.color}-${a.shade})`}:{background:`transparent`,hover:zP(e,.05),color:e,border:`${W(1)} solid ${e}`};if(n===`subtle`){if(a.isThemeColor){if(a.shade===void 0)return{background:`transparent`,hover:`var(--mantine-color-${e}-light-hover)`,color:`var(--mantine-color-${e}-light-color)`,border:`${W(1)} solid transparent`};let n=t.colors[a.color][a.shade];return{background:`transparent`,hover:zP(n,.12),color:`var(--mantine-color-${a.color}-${Math.min(a.shade,6)})`,border:`${W(1)} solid transparent`}}return{background:`transparent`,hover:zP(e,.12),color:e,border:`${W(1)} solid transparent`}}return n===`transparent`?a.isThemeColor?a.shade===void 0?{background:`transparent`,hover:`transparent`,color:`var(--mantine-color-${e}-light-color)`,border:`${W(1)} solid transparent`}:{background:`transparent`,hover:`transparent`,color:`var(--mantine-color-${a.color}-${Math.min(a.shade,6)})`,border:`${W(1)} solid transparent`}:{background:`transparent`,hover:`transparent`,color:e,border:`${W(1)} solid transparent`}:n===`white`?a.isThemeColor?a.shade===void 0?{background:`var(--mantine-color-white)`,hover:LP(t.white,.01),color:`var(--mantine-color-${e}-filled)`,border:`${W(1)} solid transparent`}:{background:`var(--mantine-color-white)`,hover:LP(t.white,.01),color:`var(--mantine-color-${a.color}-${a.shade})`,border:`${W(1)} solid transparent`}:{background:`var(--mantine-color-white)`,hover:LP(t.white,.01),color:e,border:`${W(1)} solid transparent`}:n===`gradient`?{background:RP(r,t),hover:RP(r,t),color:`var(--mantine-color-white)`,border:`none`}:n==="default"?{background:`var(--mantine-color-default)`,hover:`var(--mantine-color-default-hover)`,color:`var(--mantine-color-default-color)`,border:`${W(1)} solid var(--mantine-color-default-border)`}:{}};function HP({color:e,theme:t,autoContrast:n,colorScheme:r}){return(typeof n==`boolean`?n:t.autoContrast)&&PP({color:e||t.primaryColor,theme:t,colorScheme:r}).isLight?`var(--mantine-color-black)`:`var(--mantine-color-white)`}function UP(e,t,n){return HP({color:n===`dark`?e.dark:e.light,theme:t,colorScheme:n,autoContrast:!0})}function WP(e,t){let n=e.colors[e.primaryColor];return IP(n)?e.autoContrast?UP(n,e,t):`var(--mantine-color-white)`:HP({color:n[wP(e,t)],theme:e,autoContrast:null})}function GP(e,t){return typeof e==`boolean`?e:t.autoContrast}var KP=(0,G.createContext)(null);function qP(){let e=(0,G.use)(KP);if(!e)throw Error(`[@mantine/core] MantineProvider was not found in tree`);return e}function JP(){return qP().cssVariablesResolver}function YP(){return qP().classNamesPrefix}function XP(){return qP().getStyleNonce}function ZP(){return qP().withStaticClasses}function QP(){return qP().headless}function $P(){return qP().stylesTransform?.sx}function eF(){return qP().stylesTransform?.styles}function tF(){return qP().env||`default`}function nF(){return qP().deduplicateInlineStyles}function rF(e,t){let n=typeof window<`u`&&`matchMedia`in window&&window.matchMedia(`(prefers-color-scheme: dark)`)?.matches,r=e===`auto`?n?`dark`:`light`:e;t()?.setAttribute(`data-mantine-color-scheme`,r)}function iF({manager:e,defaultColorScheme:t,getRootElement:n,forceColorScheme:r}){let i=(0,G.useRef)(null),[a,o]=(0,G.useState)(()=>e.get(t)),s=r||a,c=(0,G.useCallback)(t=>{r||(rF(t,n),o(t),e.set(t))},[e.set,s,r]),l=(0,G.useCallback)(()=>{o(t),rF(t,n),e.clear()},[e.clear,t]);return(0,G.useEffect)(()=>(e.subscribe(c),e.unsubscribe),[e.subscribe,e.unsubscribe]),nP(()=>{rF(e.get(t),n)},[]),(0,G.useEffect)(()=>{if(r)return rF(r,n),()=>{};r===void 0&&rF(a,n),typeof window<`u`&&`matchMedia`in window&&(i.current=window.matchMedia(`(prefers-color-scheme: dark)`));let e=e=>{a===`auto`&&rF(e.matches?`dark`:`light`,n)};return i.current?.addEventListener(`change`,e),()=>i.current?.removeEventListener(`change`,e)},[a,r]),{colorScheme:s,setColorScheme:c,clearColorScheme:l}}var aF=s((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.fragment`);function r(e,n,r){var i=null;if(r!==void 0&&(i=``+r),n.key!==void 0&&(i=``+n.key),`key`in n)for(var a in r={},n)a!==`key`&&(r[a]=n[a]);else r=n;return n=r.ref,{$$typeof:t,type:e,key:i,ref:n===void 0?null:n,props:r}}e.Fragment=n,e.jsx=r,e.jsxs=r})),oF=s(((e,t)=>{t.exports=aF()})),sF={dark:[`#C9C9C9`,`#b8b8b8`,`#828282`,`#696969`,`#424242`,`#3b3b3b`,`#2e2e2e`,`#242424`,`#1f1f1f`,`#141414`],gray:[`#f8f9fa`,`#f1f3f5`,`#e9ecef`,`#dee2e6`,`#ced4da`,`#adb5bd`,`#868e96`,`#495057`,`#343a40`,`#212529`],red:[`#fff5f5`,`#ffe3e3`,`#ffc9c9`,`#ffa8a8`,`#ff8787`,`#ff6b6b`,`#fa5252`,`#f03e3e`,`#e03131`,`#c92a2a`],pink:[`#fff0f6`,`#ffdeeb`,`#fcc2d7`,`#faa2c1`,`#f783ac`,`#f06595`,`#e64980`,`#d6336c`,`#c2255c`,`#a61e4d`],grape:[`#f8f0fc`,`#f3d9fa`,`#eebefa`,`#e599f7`,`#da77f2`,`#cc5de8`,`#be4bdb`,`#ae3ec9`,`#9c36b5`,`#862e9c`],violet:[`#f3f0ff`,`#e5dbff`,`#d0bfff`,`#b197fc`,`#9775fa`,`#845ef7`,`#7950f2`,`#7048e8`,`#6741d9`,`#5f3dc4`],indigo:[`#edf2ff`,`#dbe4ff`,`#bac8ff`,`#91a7ff`,`#748ffc`,`#5c7cfa`,`#4c6ef5`,`#4263eb`,`#3b5bdb`,`#364fc7`],blue:[`#e7f5ff`,`#d0ebff`,`#a5d8ff`,`#74c0fc`,`#4dabf7`,`#339af0`,`#228be6`,`#1c7ed6`,`#1971c2`,`#1864ab`],cyan:[`#e3fafc`,`#c5f6fa`,`#99e9f2`,`#66d9e8`,`#3bc9db`,`#22b8cf`,`#15aabf`,`#1098ad`,`#0c8599`,`#0b7285`],teal:[`#e6fcf5`,`#c3fae8`,`#96f2d7`,`#63e6be`,`#38d9a9`,`#20c997`,`#12b886`,`#0ca678`,`#099268`,`#087f5b`],green:[`#ebfbee`,`#d3f9d8`,`#b2f2bb`,`#8ce99a`,`#69db7c`,`#51cf66`,`#40c057`,`#37b24d`,`#2f9e44`,`#2b8a3e`],lime:[`#f4fce3`,`#e9fac8`,`#d8f5a2`,`#c0eb75`,`#a9e34b`,`#94d82d`,`#82c91e`,`#74b816`,`#66a80f`,`#5c940d`],yellow:[`#fff9db`,`#fff3bf`,`#ffec99`,`#ffe066`,`#ffd43b`,`#fcc419`,`#fab005`,`#f59f00`,`#f08c00`,`#e67700`],orange:[`#fff4e6`,`#ffe8cc`,`#ffd8a8`,`#ffc078`,`#ffa94d`,`#ff922b`,`#fd7e14`,`#f76707`,`#e8590c`,`#d9480f`]},cF=`-apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji`,lF={scale:1,fontSmoothing:!0,focusRing:`auto`,white:`#fff`,black:`#000`,colors:sF,primaryShade:{light:6,dark:8},primaryColor:`blue`,variantColorResolver:VP,autoContrast:!1,luminanceThreshold:.3,fontFamily:cF,fontFamilyMonospace:`ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, Courier New, monospace`,respectReducedMotion:!1,cursorType:`default`,defaultGradient:{from:`blue`,to:`cyan`,deg:45},defaultRadius:`md`,activeClassName:`mantine-active`,focusClassName:``,headings:{fontFamily:cF,fontWeight:`700`,textWrap:`wrap`,sizes:{h1:{fontSize:W(34),lineHeight:`1.3`},h2:{fontSize:W(26),lineHeight:`1.35`},h3:{fontSize:W(22),lineHeight:`1.4`},h4:{fontSize:W(18),lineHeight:`1.45`},h5:{fontSize:W(16),lineHeight:`1.5`},h6:{fontSize:W(14),lineHeight:`1.5`}}},fontSizes:{xs:W(12),sm:W(14),md:W(16),lg:W(18),xl:W(20)},lineHeights:{xs:`1.4`,sm:`1.45`,md:`1.55`,lg:`1.6`,xl:`1.65`},fontWeights:{regular:`400`,medium:`600`,bold:`700`},radius:{xs:W(2),sm:W(4),md:W(8),lg:W(16),xl:W(32)},spacing:{xs:W(10),sm:W(12),md:W(16),lg:W(20),xl:W(32)},breakpoints:{xs:`36em`,sm:`48em`,md:`62em`,lg:`75em`,xl:`88em`},shadows:{xs:`0 ${W(1)} ${W(3)} rgba(0, 0, 0, 0.05), 0 ${W(1)} ${W(2)} rgba(0, 0, 0, 0.1)`,sm:`0 ${W(1)} ${W(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${W(10)} ${W(15)} ${W(-5)}, rgba(0, 0, 0, 0.04) 0 ${W(7)} ${W(7)} ${W(-5)}`,md:`0 ${W(1)} ${W(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${W(20)} ${W(25)} ${W(-5)}, rgba(0, 0, 0, 0.04) 0 ${W(10)} ${W(10)} ${W(-5)}`,lg:`0 ${W(1)} ${W(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${W(28)} ${W(23)} ${W(-7)}, rgba(0, 0, 0, 0.04) 0 ${W(12)} ${W(12)} ${W(-7)}`,xl:`0 ${W(1)} ${W(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${W(36)} ${W(28)} ${W(-7)}, rgba(0, 0, 0, 0.04) 0 ${W(17)} ${W(17)} ${W(-7)}`},other:{},components:{}},uF=`[@mantine/core] MantineProvider: Invalid theme.primaryColor, it accepts only key of theme.colors, learn more – https://mantine.dev/theming/colors/#primary-color`,dF=`[@mantine/core] MantineProvider: Invalid theme.primaryShade, it accepts only 0-9 integers or an object { light: 0-9, dark: 0-9 }`;function fF(e){return e<0||e>9?!1:parseInt(e.toString(),10)===e}function pF(e){if(!(e.primaryColor in e.colors))throw Error(uF);if(typeof e.primaryShade==`object`&&(!fF(e.primaryShade.dark)||!fF(e.primaryShade.light))||typeof e.primaryShade==`number`&&!fF(e.primaryShade))throw Error(dF)}function mF(e,t){if(!t)return pF(e),e;let n=EN(e,t);return t.fontFamily&&!t.headings?.fontFamily&&(n.headings={...n.headings,fontFamily:t.fontFamily}),pF(n),n}var K=oF(),hF=(0,G.createContext)(null),gF=()=>(0,G.use)(hF)||lF;function _F(){let e=(0,G.use)(hF);if(!e)throw Error(`@mantine/core: MantineProvider was not found in component tree, make sure you have it in your app`);return e}function vF({theme:e,children:t,inherit:n=!0}){let r=gF(),i=(0,G.useMemo)(()=>mF(n?r:lF,e),[e,r,n]);return(0,K.jsx)(hF,{value:i,children:t})}vF.displayName=`@mantine/core/MantineThemeProvider`;function yF(e){return Object.entries(e).map(([e,t])=>`${e}: ${t};`).join(``)}function bF(e,t){let n=t?[t]:[`:root`,`:host`],r=yF(e.variables),i=r?`${n.join(`, `)}{${r}}`:``,a=yF(e.dark),o=yF(e.light),s=e=>n.map(t=>t===`:host`?`${t}([data-mantine-color-scheme="${e}"])`:`${t}[data-mantine-color-scheme="${e}"]`).join(`, `);return`${i}\n\n${a?`${s(`dark`)}{${a}}`:``}\n\n${o?`${s(`light`)}{${o}}`:``}`}function xF({theme:e,color:t,colorScheme:n,name:r=t,withColorValues:i=!0}){if(!e.colors[t])return{};if(n===`light`){let n=wP(e,`light`),a={[`--mantine-color-${r}-text`]:`var(--mantine-color-${r}-filled)`,[`--mantine-color-${r}-filled`]:`var(--mantine-color-${r}-${n})`,[`--mantine-color-${r}-filled-hover`]:`var(--mantine-color-${r}-${n===9?8:n+1})`,[`--mantine-color-${r}-light`]:`var(--mantine-color-${r}-1)`,[`--mantine-color-${r}-light-hover`]:`var(--mantine-color-${r}-2)`,[`--mantine-color-${r}-light-color`]:`var(--mantine-color-${r}-9)`,[`--mantine-color-${r}-outline`]:`var(--mantine-color-${r}-${n})`,[`--mantine-color-${r}-outline-hover`]:BP(e.colors[t][n],.05)};return i?{[`--mantine-color-${r}-0`]:e.colors[t][0],[`--mantine-color-${r}-1`]:e.colors[t][1],[`--mantine-color-${r}-2`]:e.colors[t][2],[`--mantine-color-${r}-3`]:e.colors[t][3],[`--mantine-color-${r}-4`]:e.colors[t][4],[`--mantine-color-${r}-5`]:e.colors[t][5],[`--mantine-color-${r}-6`]:e.colors[t][6],[`--mantine-color-${r}-7`]:e.colors[t][7],[`--mantine-color-${r}-8`]:e.colors[t][8],[`--mantine-color-${r}-9`]:e.colors[t][9],...a}:a}let a=wP(e,`dark`),o={[`--mantine-color-${r}-text`]:`var(--mantine-color-${r}-4)`,[`--mantine-color-${r}-filled`]:`var(--mantine-color-${r}-${a})`,[`--mantine-color-${r}-filled-hover`]:`var(--mantine-color-${r}-${a===9?8:a+1})`,[`--mantine-color-${r}-light`]:LP(e.colors[t][9],.5),[`--mantine-color-${r}-light-hover`]:LP(e.colors[t][9],.3),[`--mantine-color-${r}-light-color`]:`var(--mantine-color-${r}-0)`,[`--mantine-color-${r}-outline`]:`var(--mantine-color-${r}-${Math.max(a-4,0)})`,[`--mantine-color-${r}-outline-hover`]:BP(e.colors[t][Math.max(a-4,0)],.05)};return i?{[`--mantine-color-${r}-0`]:e.colors[t][0],[`--mantine-color-${r}-1`]:e.colors[t][1],[`--mantine-color-${r}-2`]:e.colors[t][2],[`--mantine-color-${r}-3`]:e.colors[t][3],[`--mantine-color-${r}-4`]:e.colors[t][4],[`--mantine-color-${r}-5`]:e.colors[t][5],[`--mantine-color-${r}-6`]:e.colors[t][6],[`--mantine-color-${r}-7`]:e.colors[t][7],[`--mantine-color-${r}-8`]:e.colors[t][8],[`--mantine-color-${r}-9`]:e.colors[t][9],...o}:o}function SF(e,t,n){wN(t).forEach(r=>Object.assign(e,{[`--mantine-${n}-${r}`]:t[r]}))}var CF=e=>{let t=wP(e,`light`),n=e.defaultRadius in e.radius?e.radius[e.defaultRadius]:W(e.defaultRadius),r={variables:{"--mantine-z-index-app":`100`,"--mantine-z-index-modal":`200`,"--mantine-z-index-popover":`300`,"--mantine-z-index-overlay":`400`,"--mantine-z-index-max":`9999`,"--mantine-scale":e.scale.toString(),"--mantine-cursor-type":e.cursorType,"--mantine-webkit-font-smoothing":e.fontSmoothing?`antialiased`:`unset`,"--mantine-moz-font-smoothing":e.fontSmoothing?`grayscale`:`unset`,"--mantine-color-white":e.white,"--mantine-color-black":e.black,"--mantine-line-height":e.lineHeights.md,"--mantine-font-family":e.fontFamily,"--mantine-font-family-monospace":e.fontFamilyMonospace,"--mantine-font-family-headings":e.headings.fontFamily,"--mantine-heading-font-weight":e.headings.fontWeight,"--mantine-heading-text-wrap":e.headings.textWrap,"--mantine-radius-default":n,"--mantine-primary-color-filled":`var(--mantine-color-${e.primaryColor}-filled)`,"--mantine-primary-color-filled-hover":`var(--mantine-color-${e.primaryColor}-filled-hover)`,"--mantine-primary-color-light":`var(--mantine-color-${e.primaryColor}-light)`,"--mantine-primary-color-light-hover":`var(--mantine-color-${e.primaryColor}-light-hover)`,"--mantine-primary-color-light-color":`var(--mantine-color-${e.primaryColor}-light-color)`},light:{"--mantine-color-scheme":`light`,"--mantine-primary-color-contrast":WP(e,`light`),"--mantine-color-bright":`var(--mantine-color-black)`,"--mantine-color-text":e.black,"--mantine-color-body":e.white,"--mantine-color-error":`var(--mantine-color-red-6)`,"--mantine-color-success":`var(--mantine-color-teal-8)`,"--mantine-color-placeholder":`var(--mantine-color-gray-5)`,"--mantine-color-anchor":`var(--mantine-color-${e.primaryColor}-${t})`,"--mantine-color-default":`var(--mantine-color-white)`,"--mantine-color-default-hover":`var(--mantine-color-gray-0)`,"--mantine-color-default-color":`var(--mantine-color-black)`,"--mantine-color-default-border":`var(--mantine-color-gray-4)`,"--mantine-color-dimmed":`var(--mantine-color-gray-6)`,"--mantine-color-disabled":`var(--mantine-color-gray-2)`,"--mantine-color-disabled-color":`var(--mantine-color-gray-5)`,"--mantine-color-disabled-border":`var(--mantine-color-gray-3)`},dark:{"--mantine-color-scheme":`dark`,"--mantine-primary-color-contrast":WP(e,`dark`),"--mantine-color-bright":`var(--mantine-color-white)`,"--mantine-color-text":`var(--mantine-color-dark-0)`,"--mantine-color-body":`var(--mantine-color-dark-7)`,"--mantine-color-error":`var(--mantine-color-red-8)`,"--mantine-color-success":`var(--mantine-color-teal-8)`,"--mantine-color-placeholder":`var(--mantine-color-dark-3)`,"--mantine-color-anchor":`var(--mantine-color-${e.primaryColor}-4)`,"--mantine-color-default":`var(--mantine-color-dark-6)`,"--mantine-color-default-hover":`var(--mantine-color-dark-5)`,"--mantine-color-default-color":`var(--mantine-color-white)`,"--mantine-color-default-border":`var(--mantine-color-dark-4)`,"--mantine-color-dimmed":`var(--mantine-color-dark-2)`,"--mantine-color-disabled":`var(--mantine-color-dark-6)`,"--mantine-color-disabled-color":`var(--mantine-color-dark-3)`,"--mantine-color-disabled-border":`var(--mantine-color-dark-4)`}};SF(r.variables,e.breakpoints,`breakpoint`),SF(r.variables,e.spacing,`spacing`),SF(r.variables,e.fontSizes,`font-size`),SF(r.variables,e.lineHeights,`line-height`),SF(r.variables,e.shadows,`shadow`),SF(r.variables,e.radius,`radius`),SF(r.variables,e.fontWeights,`font-weight`),e.colors[e.primaryColor].forEach((t,n)=>{r.variables[`--mantine-primary-color-${n}`]=`var(--mantine-color-${e.primaryColor}-${n})`}),wN(e.colors).forEach(t=>{let n=e.colors[t];if(IP(n)){Object.assign(r.light,xF({theme:e,name:n.name,color:n.light,colorScheme:`light`,withColorValues:!0})),Object.assign(r.dark,xF({theme:e,name:n.name,color:n.dark,colorScheme:`dark`,withColorValues:!0})),r.light[`--mantine-color-${n.name}-contrast`]=UP(n,e,`light`),r.dark[`--mantine-color-${n.name}-contrast`]=UP(n,e,`dark`);return}n.forEach((e,n)=>{r.variables[`--mantine-color-${t}-${n}`]=e}),Object.assign(r.light,xF({theme:e,color:t,colorScheme:`light`,withColorValues:!1})),Object.assign(r.dark,xF({theme:e,color:t,colorScheme:`dark`,withColorValues:!1}))});let i=e.headings.sizes;return wN(i).forEach(t=>{r.variables[`--mantine-${t}-font-size`]=i[t].fontSize,r.variables[`--mantine-${t}-line-height`]=i[t].lineHeight,r.variables[`--mantine-${t}-font-weight`]=i[t].fontWeight||e.headings.fontWeight}),r};function wF(){let e=_F(),t=XP(),n=wN(e.breakpoints).reduce((t,n)=>{let r=e.breakpoints[n].includes(`px`),i=kN(e.breakpoints[n]);return`${t}@media (max-width: ${r?`${i-.1}px`:MN(i-.1)}) {.mantine-visible-from-${n} {display: none !important;}}@media (min-width: ${r?`${i}px`:MN(i)}) {.mantine-hidden-from-${n} {display: none !important;}}`},``);return(0,K.jsx)(`style`,{"data-mantine-styles":`classes`,nonce:t?.(),dangerouslySetInnerHTML:{__html:n}})}function TF({theme:e,generator:t}){let n=CF(e),r=t?.(e);return r?EN(n,r):n}var EF=CF(lF);function DF(e){let t={variables:{},light:{},dark:{}};return wN(e.variables).forEach(n=>{EF.variables[n]!==e.variables[n]&&(t.variables[n]=e.variables[n])}),wN(e.light).forEach(n=>{EF.light[n]!==e.light[n]&&(t.light[n]=e.light[n])}),wN(e.dark).forEach(n=>{EF.dark[n]!==e.dark[n]&&(t.dark[n]=e.dark[n])}),t}function OF(e){return bF({variables:{},dark:{"--mantine-color-scheme":`dark`},light:{"--mantine-color-scheme":`light`}},e)}function kF({cssVariablesSelector:e,deduplicateCssVariables:t}){let n=_F(),r=XP(),i=TF({theme:n,generator:JP()}),a=(e===void 0||e===`:root`||e===`:host`)&&t,o=bF(a?DF(i):i,e);return o?(0,K.jsx)(`style`,{"data-mantine-styles":!0,nonce:r?.(),dangerouslySetInnerHTML:{__html:`${o}${a?``:OF(e)}`}}):null}kF.displayName=`@mantine/CssVariables`;function AF({respectReducedMotion:e,getRootElement:t}){nP(()=>{e&&t()?.setAttribute(`data-respect-reduced-motion`,`true`)},[e])}function jF({theme:e,children:t,getStyleNonce:n,withStaticClasses:r=!0,withGlobalClasses:i=!0,deduplicateCssVariables:a=!0,withCssVariables:o=!0,cssVariablesSelector:s,classNamesPrefix:c=`mantine`,colorSchemeManager:l=CP(),defaultColorScheme:u=`light`,getRootElement:d=()=>document.documentElement,cssVariablesResolver:f,forceColorScheme:p,stylesTransform:m,env:h,deduplicateInlineStyles:g=!1}){let{colorScheme:_,setColorScheme:v,clearColorScheme:y}=iF({defaultColorScheme:u,forceColorScheme:p,manager:l,getRootElement:d});return AF({respectReducedMotion:e?.respectReducedMotion||!1,getRootElement:d}),(0,K.jsx)(KP,{value:{colorScheme:_,setColorScheme:v,clearColorScheme:y,getRootElement:d,classNamesPrefix:c,getStyleNonce:n,cssVariablesResolver:f,cssVariablesSelector:s??`:root`,withStaticClasses:r,stylesTransform:m,env:h,deduplicateInlineStyles:g},children:(0,K.jsxs)(vF,{theme:e,children:[o&&(0,K.jsx)(kF,{cssVariablesSelector:s,deduplicateCssVariables:a}),i&&(0,K.jsx)(wF,{}),t]})})}jF.displayName=`@mantine/core/MantineProvider`;function MF(e,t,n){let r=_F(),i=(Array.isArray(e)?e:[e]).filter(Boolean),a={};for(let e of i){let t=r.components[e]?.defaultProps,n=typeof t==`function`?t(r):t;n&&(a={...a,...n})}return{...t,...a,...NN(n)}}function NF(e){return e}var PF={always:`mantine-focus-always`,auto:`mantine-focus-auto`,never:`mantine-focus-never`};function FF({theme:e,options:t,unstyled:n}){return _P(t?.focusable&&!n&&(e.focusClassName||PF[e.focusRing]),t?.active&&!n&&e.activeClassName)}function IF({selector:e,stylesCtx:t,options:n,props:r,theme:i}){return bP({theme:i,classNames:n?.classNames,props:n?.props||r,stylesCtx:t})[e]}function LF({selector:e,stylesCtx:t,theme:n,classNames:r,props:i}){return bP({theme:n,classNames:r,props:i,stylesCtx:t})[e]}function RF({rootSelector:e,selector:t,className:n}){return e===t?n:void 0}function zF({selector:e,classes:t,unstyled:n}){return n?void 0:t[e]}function BF({themeName:e,classNamesPrefix:t,selector:n,withStaticClass:r}){return r===!1?[]:e.map(e=>`${t}-${e}-${n}`)}function VF({options:e,classes:t,selector:n,unstyled:r}){return e?.variant&&!r?t[`${n}--${e.variant}`]:void 0}function HF({theme:e,options:t,themeName:n,selector:r,classNamesPrefix:i,resolvedClassNames:a,resolvedThemeClassNames:o,classes:s,unstyled:c,className:l,rootSelector:u,props:d,stylesCtx:f,withStaticClasses:p,headless:m,transformedStyles:h}){return _P(FF({theme:e,options:t,unstyled:c||m}),o.map(e=>e[r]),VF({options:t,classes:s,selector:r,unstyled:c||m}),a[r],LF({selector:r,stylesCtx:f,theme:e,classNames:h,props:d}),IF({selector:r,stylesCtx:f,options:t,props:d,theme:e}),RF({rootSelector:u,selector:r,className:l}),zF({selector:r,classes:s,unstyled:c||m}),p&&!m&&BF({themeName:n,classNamesPrefix:i,selector:r,withStaticClass:t?.withStaticClass}),t?.className)}function UF({style:e,theme:t}){return Array.isArray(e)?e.reduce((e,n)=>({...e,...UF({style:n,theme:t})}),{}):typeof e==`function`?e(t):e??{}}function WF({theme:e,selector:t,options:n,props:r,stylesCtx:i,rootSelector:a,withStylesTransform:o,resolvedStyles:s,resolvedThemeStyles:c,resolvedVars:l,resolvedRootStyle:u}){return{...c[t],...s[t],...!o&&xP({theme:e,styles:n?.styles,props:n?.props||r,stylesCtx:i})[t],...l[t],...a===t?u:null,...UF({style:n?.style,theme:e})}}function GF(e){return e.reduce((e,t)=>(t&&Object.keys(t).forEach(n=>{e[n]={...e[n],...NN(t[n])}}),e),{})}function KF({props:e,stylesCtx:t,themeName:n,theme:r}){let i=eF()?.();return{getTransformedStyles:a=>i?[...a.map(n=>i(n,{props:e,theme:r,ctx:t})),...n.map(n=>i(r.components[n]?.styles,{props:e,theme:r,ctx:t}))].filter(Boolean):[],withStylesTransform:!!i}}function qF({name:e,classes:t,props:n,stylesCtx:r,className:i,style:a,rootSelector:o=`root`,unstyled:s,classNames:c,styles:l,vars:u,varsResolver:d,attributes:f}){let p=_F(),m=YP(),h=ZP(),g=QP(),_=(Array.isArray(e)?e:[e]).filter(e=>e),{withStylesTransform:v,getTransformedStyles:y}=KF({props:n,stylesCtx:r,themeName:_,theme:p}),b=bP({theme:p,classNames:c,props:n,stylesCtx:r}),x=_.map(e=>bP({theme:p,classNames:p.components[e]?.classNames,props:n,stylesCtx:r})),S=v?{}:xP({theme:p,styles:l,props:n,stylesCtx:r}),C={};if(!v)for(let e of _){let t=xP({theme:p,styles:p.components[e]?.styles,props:n,stylesCtx:r});for(let e of Object.keys(t))C[e]={...C[e],...t[e]}}let w=GF([g?{}:d?.(p,n,r),..._.map(e=>p.components?.[e]?.vars?.(p,n,r)),u?.(p,n,r)]),T=UF({style:a,theme:p});return(e,a)=>({...f?.[e],className:HF({theme:p,options:a,themeName:_,selector:e,classNamesPrefix:m,resolvedClassNames:b,resolvedThemeClassNames:x,classes:t,unstyled:s,className:i,rootSelector:o,props:n,stylesCtx:r,withStaticClasses:h,headless:g,transformedStyles:y([a?.styles,l])}),style:WF({theme:p,selector:e,options:a,props:n,stylesCtx:r,rootSelector:o,withStylesTransform:v,resolvedStyles:S,resolvedThemeStyles:C,resolvedVars:w,resolvedRootStyle:T})})}function JF(e){return wN(e).reduce((t,n)=>e[n]===void 0?t:`${t}${DN(n)}:${e[n]};`,``).trim()}function YF({selector:e,styles:t,media:n,container:r}){let i=t?JF(t):``,a=Array.isArray(n)?n.map(t=>`@media${t.query}{${e}{${JF(t.styles)}}}`):[],o=Array.isArray(r)?r.map(t=>`@container ${t.query}{${e}{${JF(t.styles)}}}`):[];return`${i?`${e}{${i}}`:``}${a.join(``)}${o.join(``)}`.trim()}function XF(e){let t=5381;for(let n=0;n>>0).toString(36)}function ZF({deduplicate:e,...t}){let n=XP(),r=YF(t);return e?(0,K.jsx)(`style`,{href:`mantine-${XF(r)}`,precedence:`mantine`,nonce:n?.(),children:r}):(0,K.jsx)(`style`,{"data-mantine-styles":`inline`,nonce:n?.(),dangerouslySetInnerHTML:{__html:r}})}function QF(e){let t=5381;for(let n=0;n>>0).toString(36)}function $F(e,t){return`__mdi__-${QF(`${e?JF(e):``}|${Array.isArray(t)?t.map(e=>`${e.query}:${JF(e.styles)}`).join(`|`):``}`)}`}function eI(e){let{m:t,mx:n,my:r,mt:i,mb:a,ml:o,mr:s,me:c,ms:l,mis:u,mie:d,p:f,px:p,py:m,pt:h,pb:g,pl:_,pr:v,pe:y,ps:b,pis:x,pie:S,bd:C,bdrs:w,bg:T,c:E,opacity:D,ff:O,fz:k,fw:ee,lts:te,ta:ne,lh:A,fs:j,tt:re,td:M,w:N,miw:P,maw:ie,h:F,mih:ae,mah:oe,bgsz:se,bgp:ce,bgr:I,bga:L,pos:le,top:ue,left:de,bottom:fe,right:pe,inset:me,display:he,flex:R,hiddenFrom:ge,visibleFrom:z,lightHidden:_e,darkHidden:ve,sx:B,...ye}=e;return{styleProps:NN({m:t,mx:n,my:r,mt:i,mb:a,ml:o,mr:s,me:c,ms:l,mis:u,mie:d,p:f,px:p,py:m,pt:h,pb:g,pl:_,pr:v,pis:x,pie:S,pe:y,ps:b,bd:C,bg:T,c:E,opacity:D,ff:O,fz:k,fw:ee,lts:te,ta:ne,lh:A,fs:j,tt:re,td:M,w:N,miw:P,maw:ie,h:F,mih:ae,mah:oe,bgsz:se,bgp:ce,bgr:I,bga:L,pos:le,top:ue,left:de,bottom:fe,right:pe,inset:me,display:he,flex:R,bdrs:w,hiddenFrom:ge,visibleFrom:z,lightHidden:_e,darkHidden:ve,sx:B}),rest:ye}}var tI={m:{type:`spacing`,property:`margin`},mt:{type:`spacing`,property:`marginTop`},mb:{type:`spacing`,property:`marginBottom`},ml:{type:`spacing`,property:`marginLeft`},mr:{type:`spacing`,property:`marginRight`},ms:{type:`spacing`,property:`marginInlineStart`},me:{type:`spacing`,property:`marginInlineEnd`},mis:{type:`spacing`,property:`marginInlineStart`},mie:{type:`spacing`,property:`marginInlineEnd`},mx:{type:`spacing`,property:`marginInline`},my:{type:`spacing`,property:`marginBlock`},p:{type:`spacing`,property:`padding`},pt:{type:`spacing`,property:`paddingTop`},pb:{type:`spacing`,property:`paddingBottom`},pl:{type:`spacing`,property:`paddingLeft`},pr:{type:`spacing`,property:`paddingRight`},ps:{type:`spacing`,property:`paddingInlineStart`},pe:{type:`spacing`,property:`paddingInlineEnd`},pis:{type:`spacing`,property:`paddingInlineStart`},pie:{type:`spacing`,property:`paddingInlineEnd`},px:{type:`spacing`,property:`paddingInline`},py:{type:`spacing`,property:`paddingBlock`},bd:{type:`border`,property:`border`},bdrs:{type:`radius`,property:`borderRadius`},bg:{type:`color`,property:`background`},c:{type:`textColor`,property:`color`},opacity:{type:`identity`,property:`opacity`},ff:{type:`fontFamily`,property:`fontFamily`},fz:{type:`fontSize`,property:`fontSize`},fw:{type:`identity`,property:`fontWeight`},lts:{type:`size`,property:`letterSpacing`},ta:{type:`identity`,property:`textAlign`},lh:{type:`lineHeight`,property:`lineHeight`},fs:{type:`identity`,property:`fontStyle`},tt:{type:`identity`,property:`textTransform`},td:{type:`identity`,property:`textDecoration`},w:{type:`spacing`,property:`width`},miw:{type:`spacing`,property:`minWidth`},maw:{type:`spacing`,property:`maxWidth`},h:{type:`spacing`,property:`height`},mih:{type:`spacing`,property:`minHeight`},mah:{type:`spacing`,property:`maxHeight`},bgsz:{type:`size`,property:`backgroundSize`},bgp:{type:`identity`,property:`backgroundPosition`},bgr:{type:`identity`,property:`backgroundRepeat`},bga:{type:`identity`,property:`backgroundAttachment`},pos:{type:`identity`,property:`position`},top:{type:`size`,property:`top`},left:{type:`size`,property:`left`},bottom:{type:`size`,property:`bottom`},right:{type:`size`,property:`right`},inset:{type:`size`,property:`inset`},display:{type:`identity`,property:`display`},flex:{type:`identity`,property:`flex`}};function nI(e,t){let n=PP({color:e,theme:t});return n.color===`dimmed`?`var(--mantine-color-dimmed)`:n.color===`bright`?`var(--mantine-color-bright)`:n.variable?`var(${n.variable})`:n.color}function rI(e,t){let n=PP({color:e,theme:t});return n.isThemeColor&&n.shade===void 0?`var(--mantine-color-${n.color}-text)`:nI(e,t)}function iI(e,t){if(typeof e==`number`)return W(e);if(typeof e==`string`){let[n,r,...i]=e.split(` `).filter(e=>e.trim()!==``),a=`${W(n)}`;return r&&(a+=` ${r}`),i.length>0&&(a+=` ${nI(i.join(` `),t)}`),a.trim()}return e}var aI={text:`var(--mantine-font-family)`,mono:`var(--mantine-font-family-monospace)`,monospace:`var(--mantine-font-family-monospace)`,heading:`var(--mantine-font-family-headings)`,headings:`var(--mantine-font-family-headings)`};function oI(e){return typeof e==`string`&&e in aI?aI[e]:e}var sI=[`h1`,`h2`,`h3`,`h4`,`h5`,`h6`];function cI(e,t){return typeof e==`string`&&e in t.fontSizes?`var(--mantine-font-size-${e})`:typeof e==`string`&&sI.includes(e)?`var(--mantine-${e}-font-size)`:typeof e==`number`||typeof e==`string`?W(e):e}function lI(e){return e}var uI=[`h1`,`h2`,`h3`,`h4`,`h5`,`h6`];function dI(e,t){return typeof e==`string`&&e in t.lineHeights?`var(--mantine-line-height-${e})`:typeof e==`string`&&uI.includes(e)?`var(--mantine-${e}-line-height)`:e}function fI(e,t){return typeof e==`string`&&e in t.radius?`var(--mantine-radius-${e})`:typeof e==`number`||typeof e==`string`?W(e):e}function pI(e){return typeof e==`number`?W(e):e}function mI(e,t){if(typeof e==`number`)return W(e);if(typeof e==`string`){let n=e.replace(`-`,``);if(!(n in t.spacing))return W(e);let r=`--mantine-spacing-${n}`;return e.startsWith(`-`)?`calc(var(${r}) * -1)`:`var(${r})`}return e}var hI={color:nI,textColor:rI,fontSize:cI,spacing:mI,radius:fI,identity:lI,size:pI,lineHeight:dI,fontFamily:oI,border:iI};function gI(e){return e.replace(`(min-width: `,``).replace(`em)`,``)}function _I({media:e,...t}){let n=Object.keys(e).sort((e,t)=>Number(gI(e))-Number(gI(t))).map(t=>({query:t,styles:e[t]}));return{...t,media:n}}function vI(e){if(typeof e!=`object`||!e)return!1;let t=Object.keys(e);return t.length!==1||t[0]!==`base`}function yI(e){return typeof e==`object`&&e?`base`in e?e.base:void 0:e}function bI(e){return typeof e==`object`&&e?wN(e).filter(e=>e!==`base`):[]}function xI(e,t){return typeof e==`object`&&e&&t in e?e[t]:e}function SI({styleProps:e,data:t,theme:n}){return _I(wN(e).reduce((r,i)=>{if(i===`hiddenFrom`||i===`visibleFrom`||i===`sx`)return r;let a=t[i],o=Array.isArray(a.property)?a.property:[a.property],s=yI(e[i]);if(!vI(e[i]))return o.forEach(e=>{r.inlineStyles[e]=hI[a.type](s,n)}),r;r.hasResponsiveStyles=!0;let c=bI(e[i]);return o.forEach(t=>{s!=null&&(r.styles[t]=hI[a.type](s,n)),c.forEach(o=>{let s=`(min-width: ${n.breakpoints[o]})`;r.media[s]={...r.media[s],[t]:hI[a.type](xI(e[i],o),n)}})}),r},{hasResponsiveStyles:!1,styles:{},inlineStyles:{},media:{}}))}function CI(){return`__m__-${(0,G.useId)().replace(/[:«»]/g,``)}`}function wI(e){return e}var TI=wI;function EI(e){return e}function DI(e){let t=e;return t.extend=EI,t.withProps=e=>{let n=n=>(0,K.jsx)(t,{...e,...n});return n.extend=t.extend,n.displayName=`WithProps(${t.displayName})`,n},t}function OI(e){let t=e;return t.withProps=e=>{let n=n=>(0,K.jsx)(t,{...e,...n});return n.extend=t.extend,n.displayName=`WithProps(${t.displayName})`,n},t.extend=EI,t}function kI(e){return`data-${(e.startsWith(`data-`)?e.slice(5):e).replace(/([a-z])([A-Z])/g,`$1-$2`).toLowerCase()}`}function AI(e){return Object.keys(e).reduce((t,n)=>{let r=e[n];return r===void 0||r===``||r===!1||r===null||(t[kI(n)]=e[n]),t},{})}function jI(e){return e?typeof e==`string`?{[kI(e)]:!0}:Array.isArray(e)?[...e].reduce((e,t)=>({...e,...jI(t)}),{}):AI(e):null}function MI(e,t){return Array.isArray(e)?[...e].reduce((e,n)=>({...e,...MI(n,t)}),{}):typeof e==`function`?e(t):e??{}}function NI({theme:e,style:t,vars:n,styleProps:r}){let i=MI(t,e),a=MI(n,e);return{...i,...a,...r}}function PI({component:e,style:t,__vars:n,className:r,variant:i,mod:a,size:o,hiddenFrom:s,visibleFrom:c,lightHidden:l,darkHidden:u,renderRoot:d,__size:f,ref:p,...m}){let h=_F(),g=e||`div`,{styleProps:_,rest:v}=eI(m),y=$P()?.()?.(_.sx),b=CI(),x=SI({styleProps:_,theme:h,data:tI}),S=nF(),C=S&&x.hasResponsiveStyles?$F(x.styles,x.media):b,w={ref:p,style:NI({theme:h,style:t,vars:n,styleProps:x.inlineStyles}),className:_P(r,y,{[C]:x.hasResponsiveStyles,"mantine-light-hidden":l,"mantine-dark-hidden":u,[`mantine-hidden-from-${s}`]:s,[`mantine-visible-from-${c}`]:c}),"data-variant":i,"data-size":PN(o)?void 0:o||void 0,size:f,...jI(a),...v};return(0,K.jsxs)(K.Fragment,{children:[x.hasResponsiveStyles&&(0,K.jsx)(ZF,{selector:`.${C}`,styles:x.styles,media:x.media,deduplicate:S}),typeof d==`function`?d(w):(0,K.jsx)(g,{...w})]})}PI.displayName=`@mantine/core/Box`;var FI=TI(PI),II=(0,G.createContext)({dir:`ltr`,toggleDirection:()=>{},setDirection:()=>{}});function LI(){return(0,G.use)(II)}var[RI,zI]=LN(`ScrollArea.Root component was not found in tree`);function BI(e,t){let n=(0,G.useEffectEvent)(t);nP(()=>{let t=0;if(e){let r=new ResizeObserver(()=>{cancelAnimationFrame(t),t=window.requestAnimationFrame(n)});return r.observe(e),()=>{window.cancelAnimationFrame(t),r.unobserve(e)}}},[e])}function VI(e){let{style:t,...n}=e,r=zI(),[i,a]=(0,G.useState)(0),[o,s]=(0,G.useState)(0),c=!!(i&&o);return BI(r.scrollbarX,()=>{let e=r.scrollbarX?.offsetHeight||0;r.onCornerHeightChange(e),s(e)}),BI(r.scrollbarY,()=>{let e=r.scrollbarY?.offsetWidth||0;r.onCornerWidthChange(e),a(e)}),c?(0,K.jsx)(`div`,{...n,style:{...t,width:i,height:o}}):null}function HI(e){let t=zI(),n=!!(t.scrollbarX&&t.scrollbarY);return t.type!==`scroll`&&n?(0,K.jsx)(VI,{...e}):null}var UI={scrollHideDelay:1e3,type:`hover`};function WI(e){let{type:t,scrollHideDelay:n,scrollbars:r,getStyles:i,ref:a,...o}=MF(`ScrollAreaRoot`,UI,e),[s,c]=(0,G.useState)(null),[l,u]=(0,G.useState)(null),[d,f]=(0,G.useState)(null),[p,m]=(0,G.useState)(null),[h,g]=(0,G.useState)(null),[_,v]=(0,G.useState)(0),[y,b]=(0,G.useState)(0),[x,S]=(0,G.useState)(!1),[C,w]=(0,G.useState)(!1),T=lP(a,c);return(0,K.jsx)(RI,{value:{type:t,scrollHideDelay:n,scrollArea:s,viewport:l,onViewportChange:u,content:d,onContentChange:f,scrollbarX:p,onScrollbarXChange:m,scrollbarXEnabled:x,onScrollbarXEnabledChange:S,scrollbarY:h,onScrollbarYChange:g,scrollbarYEnabled:C,onScrollbarYEnabledChange:w,onCornerWidthChange:v,onCornerHeightChange:b,getStyles:i},children:(0,K.jsx)(FI,{...o,ref:T,__vars:{"--sa-corner-width":r===`xy`?`${_}px`:`0px`,"--sa-corner-height":r===`xy`?`${y}px`:`0px`}})})}WI.displayName=`@mantine/core/ScrollAreaRoot`;function GI(e,t){let n=e/t;return Number.isNaN(n)?0:n}function KI(e){let t=GI(e.viewport,e.content),n=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,r=(e.scrollbar.size-n)*t;return Math.max(r,18)}function qI(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];let r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}function JI(e,[t,n]){return Math.min(n,Math.max(t,e))}function YI(e,t,n=`ltr`){let r=KI(t),i=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,a=t.scrollbar.size-i,o=t.content-t.viewport,s=a-r,c=JI(e,n===`ltr`?[0,o]:[o*-1,0]);return qI([0,o],[0,s])(c)}function XI(e,t,n,r=`ltr`){let i=KI(n),a=i/2,o=t||a,s=i-o,c=n.scrollbar.paddingStart+o,l=n.scrollbar.size-n.scrollbar.paddingEnd-s,u=n.content-n.viewport,d=r===`ltr`?[0,u]:[u*-1,0];return qI([c,l],d)(e)}function ZI(e,t){return e>0&&e{e?.(r),(n===!1||!r.defaultPrevented)&&t?.(r)}}var[eL,tL]=LN(`ScrollAreaScrollbar was not found in tree`);function nL(e){let{sizes:t,hasThumb:n,onThumbChange:r,onThumbPointerUp:i,onThumbPointerDown:a,onThumbPositionChange:o,onDragScroll:s,onWheelScroll:c,onResize:l,ref:u,...d}=e,f=zI(),[p,m]=(0,G.useState)(null),h=lP(u,m),g=(0,G.useRef)(null),_=(0,G.useRef)(``),{viewport:v}=f,y=t.content-t.viewport,b=(0,G.useEffectEvent)(c),x=QN(o),S=$N(l,10),C=e=>{if(g.current){let t=e.clientX-g.current.left,n=e.clientY-g.current.top;s({x:t,y:n})}};return(0,G.useEffect)(()=>{let e=e=>{let t=e.target;p?.contains(t)&&b(e,y)};return document.addEventListener(`wheel`,e,{passive:!1}),()=>document.removeEventListener(`wheel`,e,{passive:!1})},[v,p,y]),(0,G.useEffect)(x,[t,x]),BI(p,S),BI(f.content,S),(0,K.jsx)(eL,{value:{scrollbar:p,hasThumb:n,onThumbChange:QN(r),onThumbPointerUp:QN(i),onThumbPositionChange:x,onThumbPointerDown:QN(a)},children:(0,K.jsx)(`div`,{...d,ref:h,"data-mantine-scrollbar":!0,style:{position:`absolute`,...d.style},onPointerDown:$I(e.onPointerDown,e=>{e.preventDefault(),e.button===0&&(e.target.setPointerCapture(e.pointerId),g.current=p.getBoundingClientRect(),_.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect=`none`,C(e))}),onPointerMove:$I(e.onPointerMove,C),onPointerUp:$I(e.onPointerUp,e=>{let t=e.target;t.hasPointerCapture(e.pointerId)&&(e.preventDefault(),t.releasePointerCapture(e.pointerId))}),onLostPointerCapture:()=>{document.body.style.webkitUserSelect=_.current,g.current=null}})})}var rL=e=>{let{sizes:t,onSizesChange:n,style:r,ref:i,...a}=e,o=zI(),[s,c]=(0,G.useState)(),l=(0,G.useRef)(null),u=lP(i,l,o.onScrollbarXChange);return(0,G.useEffect)(()=>{l.current&&c(getComputedStyle(l.current))},[l]),(0,K.jsx)(nL,{"data-orientation":`horizontal`,...a,ref:u,sizes:t,style:{...r,"--sa-thumb-width":`${KI(t)}px`},onThumbPointerDown:t=>e.onThumbPointerDown(t.x),onDragScroll:t=>e.onDragScroll(t.x),onWheelScroll:(t,n)=>{if(o.viewport){let r=o.viewport.scrollLeft+t.deltaX;e.onWheelScroll(r),ZI(r,n)&&t.preventDefault()}},onResize:()=>{l.current&&o.viewport&&s&&n({content:o.viewport.scrollWidth,viewport:o.viewport.offsetWidth,scrollbar:{size:l.current.clientWidth,paddingStart:QI(s.paddingLeft),paddingEnd:QI(s.paddingRight)}})}})};rL.displayName=`@mantine/core/ScrollAreaScrollbarX`;function iL(e){let{sizes:t,onSizesChange:n,style:r,ref:i,...a}=e,o=zI(),[s,c]=(0,G.useState)(),l=(0,G.useRef)(null),u=lP(i,l,o.onScrollbarYChange);return(0,G.useEffect)(()=>{l.current&&c(window.getComputedStyle(l.current))},[]),(0,K.jsx)(nL,{...a,"data-orientation":`vertical`,ref:u,sizes:t,style:{"--sa-thumb-height":`${KI(t)}px`,...r},onThumbPointerDown:t=>e.onThumbPointerDown(t.y),onDragScroll:t=>e.onDragScroll(t.y),onWheelScroll:(t,n)=>{if(o.viewport){let r=o.viewport.scrollTop+t.deltaY;e.onWheelScroll(r),ZI(r,n)&&t.preventDefault()}},onResize:()=>{l.current&&o.viewport&&s&&n({content:o.viewport.scrollHeight,viewport:o.viewport.offsetHeight,scrollbar:{size:l.current.clientHeight,paddingStart:QI(s.paddingTop),paddingEnd:QI(s.paddingBottom)}})}})}iL.displayName=`@mantine/core/ScrollAreaScrollbarY`;function aL(e){let{orientation:t=`vertical`,...n}=e,{dir:r}=LI(),i=zI(),a=(0,G.useRef)(null),o=(0,G.useRef)(0),[s,c]=(0,G.useState)({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),l=GI(s.viewport,s.content),u={...n,sizes:s,onSizesChange:c,hasThumb:l>0&&l<1,onThumbChange:e=>{a.current=e},onThumbPointerUp:()=>{o.current=0},onThumbPointerDown:e=>{o.current=e}},d=(e,t)=>XI(e,o.current,s,t);return t===`horizontal`?(0,K.jsx)(rL,{...u,onThumbPositionChange:()=>{if(i.viewport&&a.current){let e=i.viewport.scrollLeft,t=YI(e,s,r);a.current.style.transform=`translate3d(${t}px, 0, 0)`}},onWheelScroll:e=>{i.viewport&&(i.viewport.scrollLeft=e)},onDragScroll:e=>{i.viewport&&(i.viewport.scrollLeft=d(e,r))}}):t===`vertical`?(0,K.jsx)(iL,{...u,onThumbPositionChange:()=>{if(i.viewport&&a.current){let e=i.viewport.scrollTop,t=YI(e,s);s.scrollbar.size===0?a.current.style.setProperty(`--thumb-opacity`,`0`):a.current.style.setProperty(`--thumb-opacity`,`1`),a.current.style.transform=`translate3d(0, ${t}px, 0)`}},onWheelScroll:e=>{i.viewport&&(i.viewport.scrollTop=e)},onDragScroll:e=>{i.viewport&&(i.viewport.scrollTop=d(e))}}):null}aL.displayName=`@mantine/core/ScrollAreaScrollbarVisible`;function oL(e){let t=zI(),{forceMount:n,...r}=e,[i,a]=(0,G.useState)(!1),o=e.orientation===`horizontal`,s=$N(()=>{if(t.viewport){let e=t.viewport.offsetWidth{let{scrollArea:e}=r,t=0;if(e){let n=()=>{window.clearTimeout(t),a(!0)},i=()=>{t=window.setTimeout(()=>a(!1),r.scrollHideDelay)};return e.addEventListener(`pointerenter`,n),e.addEventListener(`pointerleave`,i),()=>{window.clearTimeout(t),e.removeEventListener(`pointerenter`,n),e.removeEventListener(`pointerleave`,i)}}},[r.scrollArea,r.scrollHideDelay]),t||i?(0,K.jsx)(oL,{"data-state":i?`visible`:`hidden`,...n}):null}sL.displayName=`@mantine/core/ScrollAreaScrollbarHover`;function cL(e){let{forceMount:t,...n}=e,r=zI(),i=e.orientation===`horizontal`,[a,o]=(0,G.useState)(`hidden`),s=$N(()=>o(`idle`),100);return(0,G.useEffect)(()=>{if(a===`idle`){let e=window.setTimeout(()=>o(`hidden`),r.scrollHideDelay);return()=>window.clearTimeout(e)}},[a,r.scrollHideDelay]),(0,G.useEffect)(()=>{let{viewport:e}=r,t=i?`scrollLeft`:`scrollTop`;if(e){let n=e[t],r=()=>{let r=e[t];n!==r&&(o(`scrolling`),s()),n=r};return e.addEventListener(`scroll`,r),()=>e.removeEventListener(`scroll`,r)}},[r.viewport,i,s]),t||a!==`hidden`?(0,K.jsx)(aL,{"data-state":a===`hidden`?`hidden`:`visible`,...n,onPointerEnter:$I(e.onPointerEnter,()=>o(`interacting`)),onPointerLeave:$I(e.onPointerLeave,()=>o(`idle`))}):null}function lL(e){let{forceMount:t,...n}=e,r=zI(),{onScrollbarXEnabledChange:i,onScrollbarYEnabledChange:a}=r,o=e.orientation===`horizontal`;return(0,G.useEffect)(()=>(o?i(!0):a(!0),()=>{o?i(!1):a(!1)}),[o,i,a]),r.type===`hover`?(0,K.jsx)(sL,{...n,forceMount:t}):r.type===`scroll`?(0,K.jsx)(cL,{...n,forceMount:t}):r.type===`auto`?(0,K.jsx)(oL,{...n,forceMount:t}):r.type===`always`?(0,K.jsx)(aL,{...n}):null}lL.displayName=`@mantine/core/ScrollAreaScrollbar`;function uL(e,t=()=>{}){let n={left:e.scrollLeft,top:e.scrollTop},r=0;return(function i(){let a={left:e.scrollLeft,top:e.scrollTop},o=n.left!==a.left,s=n.top!==a.top;(o||s)&&t(),n=a,r=window.requestAnimationFrame(i)})(),()=>window.cancelAnimationFrame(r)}function dL(e){let{style:t,ref:n,...r}=e,i=zI(),a=tL(),{onThumbPositionChange:o}=a,s=lP(n,a.onThumbChange),c=(0,G.useRef)(void 0),l=$N(()=>{c.current&&=(c.current(),void 0)},100);return(0,G.useEffect)(()=>{let{viewport:e}=i;if(e){let t=()=>{if(l(),!c.current){let t=uL(e,o);c.current=t,o()}};return o(),e.addEventListener(`scroll`,t),()=>e.removeEventListener(`scroll`,t)}},[i.viewport,l,o]),(0,K.jsx)(`div`,{"data-state":a.hasThumb?`visible`:`hidden`,...r,ref:s,style:{width:`var(--sa-thumb-width)`,height:`var(--sa-thumb-height)`,...t},onPointerDownCapture:$I(e.onPointerDownCapture,e=>{let t=e.target.getBoundingClientRect(),n=e.clientX-t.left,r=e.clientY-t.top;a.onThumbPointerDown({x:n,y:r})}),onPointerUp:$I(e.onPointerUp,a.onThumbPointerUp)})}dL.displayName=`@mantine/core/ScrollAreaThumb`;function fL(e){let{forceMount:t,...n}=e,r=tL();return t||r.hasThumb?(0,K.jsx)(dL,{...n}):null}fL.displayName=`@mantine/core/ScrollAreaThumb`;function pL({children:e,style:t,ref:n,onWheel:r,...i}){let a=zI(),o=lP(n,a.onViewportChange),s=e=>{if(r?.(e),a.scrollbarXEnabled&&a.viewport&&e.shiftKey){let{scrollTop:t,scrollHeight:n,clientHeight:r,scrollWidth:i,clientWidth:o}=a.viewport,s=t<1,c=t>=n-r-1;i>o&&(s||c)&&e.stopPropagation()}};return(0,K.jsx)(FI,{...i,ref:o,onWheel:s,"data-scrollarea-viewport":!0,style:{overflowX:a.scrollbarXEnabled?`scroll`:`hidden`,overflowY:a.scrollbarYEnabled?`scroll`:`hidden`,...t},children:(0,K.jsx)(`div`,{...a.getStyles(`content`),ref:a.onContentChange,children:e})})}pL.displayName=`@mantine/core/ScrollAreaViewport`;var mL={root:`m_d57069b5`,content:`m_b1336c6`,viewport:`m_c0783ff9`,viewportInner:`m_f8f631dd`,scrollbar:`m_c44ba933`,thumb:`m_d8b5e363`,corner:`m_21657268`};typeof document<`u`&&G.useLayoutEffect,{...G}.useInsertionEffect;var hL=u(mP(),1);function gL(e){let t=G.useRef(void 0),n=G.useCallback(t=>{let n=e.map(e=>{if(e!=null){if(typeof e==`function`){let n=e,r=n(t);return typeof r==`function`?r:()=>{n(null)}}return e.current=t,()=>{e.current=null}}});return()=>{n.forEach(e=>e?.())}},e);return G.useMemo(()=>e.every(e=>e==null)?null:e=>{t.current&&=(t.current(),void 0),e!=null&&(t.current=n(e))},e)}var _L=`ArrowLeft`,vL=`ArrowRight`,yL=`ArrowUp`,bL=`ArrowDown`,xL=[_L,vL],SL=[yL,bL];[...xL,...SL],{...G}.useId;var CL={scrollHideDelay:1e3,type:`hover`,scrollbars:`xy`},wL=hP((e,{scrollbarSize:t,overscrollBehavior:n,scrollbars:r})=>{let i=n;return n&&r&&(r===`x`?i=`${n} auto`:r===`y`&&(i=`auto ${n}`)),{root:{"--scrollarea-scrollbar-size":W(t),"--scrollarea-over-scroll-behavior":i}}}),TL=DI(e=>{let t=MF(`ScrollArea`,CL,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,scrollbarSize:s,vars:c,type:l,scrollHideDelay:u,viewportProps:d,viewportRef:f,onScrollPositionChange:p,children:m,offsetScrollbars:h,scrollbars:g,onBottomReached:_,onTopReached:v,onLeftReached:y,onRightReached:b,overscrollBehavior:x,startScrollPosition:S,verticalScrollbarPosition:C,attributes:w,...T}=t,[E,D]=(0,G.useState)(!1),[O,k]=(0,G.useState)(!1),[ee,te]=(0,G.useState)(!1),ne=(0,G.useRef)(!0),A=(0,G.useRef)(!1),j=(0,G.useRef)(!0),re=(0,G.useRef)(!1),M=qF({name:`ScrollArea`,props:t,classes:mL,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:w,vars:c,varsResolver:wL}),N=(0,G.useRef)(null),[P,ie]=(0,G.useState)(null),F=gL([f,N,(0,G.useCallback)(e=>{ie(t=>t===e?t:e)},[])]);return BI(h===`present`?P:null,()=>{let e=N.current;e&&(k(e.scrollHeight>e.clientHeight),te(e.scrollWidth>e.clientWidth))}),nP(()=>{S&&N.current&&N.current.scrollTo({left:S.x??0,top:S.y??0})},[]),(0,K.jsxs)(WI,{getStyles:M,type:l===`never`?`always`:l,scrollHideDelay:u,scrollbars:g,...M(`root`),...T,children:[(0,K.jsx)(pL,{...d,...M(`viewport`,{style:d?.style}),ref:F,"data-offset-scrollbars":h===!0?`xy`:h||void 0,"data-scrollbars":g||void 0,"data-vertical-scrollbar-position":C||void 0,"data-horizontal-hidden":h===`present`&&!ee?`true`:void 0,"data-vertical-hidden":h===`present`&&!O?`true`:void 0,onScroll:e=>{d?.onScroll?.(e),p?.({x:e.currentTarget.scrollLeft,y:e.currentTarget.scrollTop});let{scrollTop:t,scrollHeight:n,clientHeight:r,scrollLeft:i,scrollWidth:a,clientWidth:o}=e.currentTarget,s=t-(n-r)>=-.8,c=t===0;s&&!A.current&&_?.(),c&&!ne.current&&v?.(),A.current=s,ne.current=c;let l=i-(a-o)>=-.8,u=i===0;l&&!re.current&&b?.(),u&&!j.current&&y?.(),re.current=l,j.current=u},children:m}),(g===`xy`||g===`x`)&&(0,K.jsx)(lL,{...M(`scrollbar`),orientation:`horizontal`,"data-vertical-scrollbar-position":C||void 0,"data-hidden":l===`never`||h===`present`&&!ee||void 0,forceMount:!0,onMouseEnter:()=>D(!0),onMouseLeave:()=>D(!1),children:(0,K.jsx)(fL,{...M(`thumb`)})}),(g===`xy`||g===`y`)&&(0,K.jsx)(lL,{...M(`scrollbar`),orientation:`vertical`,"data-vertical-scrollbar-position":C||void 0,"data-hidden":l===`never`||h===`present`&&!O||void 0,forceMount:!0,onMouseEnter:()=>D(!0),onMouseLeave:()=>D(!1),children:(0,K.jsx)(fL,{...M(`thumb`)})}),(0,K.jsx)(HI,{...M(`corner`),"data-vertical-scrollbar-position":C||void 0,"data-hovered":E||void 0,"data-hidden":l===`never`||void 0})]})});TL.displayName=`@mantine/core/ScrollArea`;var EL=DI(e=>{let{children:t,classNames:n,styles:r,scrollbarSize:i,scrollHideDelay:a,type:o,dir:s,offsetScrollbars:c,overscrollBehavior:l,viewportRef:u,onScrollPositionChange:d,unstyled:f,variant:p,viewportProps:m,scrollbars:h,style:g,vars:_,onBottomReached:v,onTopReached:y,startScrollPosition:b,verticalScrollbarPosition:x,onOverflowChange:S,...C}=MF(`ScrollAreaAutosize`,CL,e),w=(0,G.useRef)(null),[T,E]=(0,G.useState)(null),D=gL([u,w,(0,G.useCallback)(e=>{E(t=>t===e?t:e)},[])]),O=(0,G.useRef)(!1),k=(0,G.useRef)(!1),ee=(0,G.useEffectEvent)(()=>{let e=w.current;if(!e||!S)return;let t=e.scrollHeight>e.clientHeight;t!==O.current&&(k.current?S(t):(k.current=!0,t&&S(!0)),O.current=t)});return BI(S?T:null,ee),(0,K.jsx)(FI,{...C,variant:p,style:[{display:`flex`,overflow:`hidden`},g],children:(0,K.jsx)(FI,{style:{display:`flex`,flexDirection:`column`,flex:1,overflow:`hidden`,...h===`y`&&{minWidth:0},...h===`x`&&{minHeight:0},...h===`xy`&&{minWidth:0,minHeight:0},...h===!1&&{minWidth:0,minHeight:0}},children:(0,K.jsx)(TL,{classNames:n,styles:r,scrollHideDelay:a,scrollbarSize:i,type:o,dir:s,offsetScrollbars:c,overscrollBehavior:l,viewportRef:D,onScrollPositionChange:d,unstyled:f,variant:p,viewportProps:m,vars:_,scrollbars:h,onBottomReached:v,onTopReached:y,startScrollPosition:b,verticalScrollbarPosition:x,"data-autosize":`true`,children:t})})})});TL.classes=mL,TL.varsResolver=wL,EL.displayName=`@mantine/core/ScrollAreaAutosize`,EL.classes=mL,TL.Autosize=EL;var DL={root:`m_87cf2631`},OL={__staticSelector:`UnstyledButton`},kL=OI(e=>{let t=MF(`UnstyledButton`,OL,e),{className:n,component:r=`button`,__staticSelector:i,unstyled:a,classNames:o,styles:s,style:c,attributes:l,...u}=t;return(0,K.jsx)(FI,{...qF({name:i,props:t,classes:DL,className:n,style:c,classNames:o,styles:s,unstyled:a,attributes:l})(`root`,{focusable:!0}),component:r,type:r===`button`?`button`:void 0,...u})});kL.classes=DL,kL.displayName=`@mantine/core/UnstyledButton`;var AL={root:`m_1b7284a3`},jL=hP((e,{radius:t,shadow:n})=>({root:{"--paper-radius":t===void 0?void 0:KN(t),"--paper-shadow":YN(n)}})),ML=OI(e=>{let t=MF(`Paper`,null,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,withBorder:s,vars:c,radius:l,shadow:u,variant:d,mod:f,attributes:p,...m}=t,h=qF({name:`Paper`,props:t,classes:AL,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:p,vars:c,varsResolver:jL});return(0,K.jsx)(FI,{mod:[{"data-with-border":s},f],...h(`root`),variant:d,...m})});ML.classes=AL,ML.varsResolver=jL,ML.displayName=`@mantine/core/Paper`;var NL=e=>({in:{opacity:1,transform:`scale(1)`},out:{opacity:0,transform:`scale(.9) translateY(${e===`bottom`?10:-10}px)`},transitionProperty:`transform, opacity`}),PL={fade:{in:{opacity:1},out:{opacity:0},transitionProperty:`opacity`},"fade-up":{in:{opacity:1,transform:`translateY(0)`},out:{opacity:0,transform:`translateY(30px)`},transitionProperty:`opacity, transform`},"fade-down":{in:{opacity:1,transform:`translateY(0)`},out:{opacity:0,transform:`translateY(-30px)`},transitionProperty:`opacity, transform`},"fade-left":{in:{opacity:1,transform:`translateX(0)`},out:{opacity:0,transform:`translateX(30px)`},transitionProperty:`opacity, transform`},"fade-right":{in:{opacity:1,transform:`translateX(0)`},out:{opacity:0,transform:`translateX(-30px)`},transitionProperty:`opacity, transform`},scale:{in:{opacity:1,transform:`scale(1)`},out:{opacity:0,transform:`scale(0)`},common:{transformOrigin:`top`},transitionProperty:`transform, opacity`},"scale-y":{in:{opacity:1,transform:`scaleY(1)`},out:{opacity:0,transform:`scaleY(0)`},common:{transformOrigin:`top`},transitionProperty:`transform, opacity`},"scale-x":{in:{opacity:1,transform:`scaleX(1)`},out:{opacity:0,transform:`scaleX(0)`},common:{transformOrigin:`left`},transitionProperty:`transform, opacity`},"skew-up":{in:{opacity:1,transform:`translateY(0) skew(0deg, 0deg)`},out:{opacity:0,transform:`translateY(-20px) skew(-10deg, -5deg)`},common:{transformOrigin:`top`},transitionProperty:`transform, opacity`},"skew-down":{in:{opacity:1,transform:`translateY(0) skew(0deg, 0deg)`},out:{opacity:0,transform:`translateY(20px) skew(-10deg, -5deg)`},common:{transformOrigin:`bottom`},transitionProperty:`transform, opacity`},"rotate-left":{in:{opacity:1,transform:`translateY(0) rotate(0deg)`},out:{opacity:0,transform:`translateY(20px) rotate(-5deg)`},common:{transformOrigin:`bottom`},transitionProperty:`transform, opacity`},"rotate-right":{in:{opacity:1,transform:`translateY(0) rotate(0deg)`},out:{opacity:0,transform:`translateY(20px) rotate(5deg)`},common:{transformOrigin:`top`},transitionProperty:`transform, opacity`},"slide-down":{in:{opacity:1,transform:`translateY(0)`},out:{opacity:0,transform:`translateY(-100%)`},common:{transformOrigin:`top`},transitionProperty:`transform, opacity`},"slide-up":{in:{opacity:1,transform:`translateY(0)`},out:{opacity:0,transform:`translateY(100%)`},common:{transformOrigin:`bottom`},transitionProperty:`transform, opacity`},"slide-left":{in:{opacity:1,transform:`translateX(0)`},out:{opacity:0,transform:`translateX(100%)`},common:{transformOrigin:`left`},transitionProperty:`transform, opacity`},"slide-right":{in:{opacity:1,transform:`translateX(0)`},out:{opacity:0,transform:`translateX(-100%)`},common:{transformOrigin:`right`},transitionProperty:`transform, opacity`},pop:{...NL(`bottom`),common:{transformOrigin:`center center`}},"pop-bottom-left":{...NL(`bottom`),common:{transformOrigin:`bottom left`}},"pop-bottom-right":{...NL(`bottom`),common:{transformOrigin:`bottom right`}},"pop-top-left":{...NL(`top`),common:{transformOrigin:`top left`}},"pop-top-right":{...NL(`top`),common:{transformOrigin:`top right`}}},FL={entering:`in`,entered:`in`,exiting:`out`,exited:`out`,"pre-exiting":`out`,"pre-entering":`out`};function IL({transition:e,state:t,duration:n,timingFunction:r}){let i={WebkitBackfaceVisibility:`hidden`,transitionDuration:`${n}ms`,transitionTimingFunction:r};return typeof e==`string`?e in PL?{transitionProperty:PL[e].transitionProperty,...i,...PL[e].common,...PL[e][FL[t]]}:{}:{transitionProperty:e.transitionProperty,...i,...e.common,...e[FL[t]]}}function LL({duration:e,exitDuration:t,timingFunction:n,mounted:r,onEnter:i,onExit:a,onEntered:o,onExited:s,enterDelay:c,exitDelay:l}){let u=_F(),d=cee(),f=u.respectReducedMotion?d:!1,[p,m]=(0,G.useState)(f?0:e),[h,g]=(0,G.useState)(r?`entered`:`exited`),_=(0,G.useRef)(-1),v=(0,G.useRef)(-1),y=(0,G.useRef)(-1);function b(){window.clearTimeout(_.current),window.clearTimeout(v.current),cancelAnimationFrame(y.current)}let x=n=>{b();let r=n?i:a,c=n?o:s,l=f?0:n?e:t;m(l),l===0?(typeof r==`function`&&r(),typeof c==`function`&&c(),g(n?`entered`:`exited`)):y.current=requestAnimationFrame(()=>{hL.flushSync(()=>{g(n?`pre-entering`:`pre-exiting`)}),y.current=requestAnimationFrame(()=>{typeof r==`function`&&r(),g(n?`entering`:`exiting`),_.current=window.setTimeout(()=>{typeof c==`function`&&c(),g(n?`entered`:`exited`)},l)})})},S=e=>{if(b(),typeof(e?c:l)!=`number`){x(e);return}v.current=window.setTimeout(()=>{x(e)},e?c:l)};return rP(()=>{S(r)},[r]),(0,G.useEffect)(()=>()=>{b()},[]),{transitionDuration:p,transitionStatus:h,transitionTimingFunction:n||`ease`}}function RL({keepMounted:e,keepMountedMode:t=`activity`,transition:n=`fade`,duration:r=250,exitDuration:i=r,mounted:a,children:o,timingFunction:s=`ease`,onExit:c,onEntered:l,onEnter:u,onExited:d,enterDelay:f,exitDelay:p}){let m=tF(),{transitionDuration:h,transitionStatus:g,transitionTimingFunction:_}=LL({mounted:a,exitDuration:i,duration:r,timingFunction:s,onExit:c,onEntered:l,onEnter:u,onExited:d,enterDelay:f,exitDelay:p});if(m===`test`)return a?(0,K.jsx)(K.Fragment,{children:o({})}):e?o({display:`none`}):null;if(h===0)return e?t===`display-none`?a?(0,K.jsx)(K.Fragment,{children:o({})}):o({display:`none`}):(0,K.jsx)(G.Activity,{mode:a?`visible`:`hidden`,children:o({})}):a?(0,K.jsx)(K.Fragment,{children:o({})}):null;let v=g===`exited`;if(e){let e=o(v?t===`display-none`?{display:`none`}:{}:IL({transition:n,duration:h,state:g,timingFunction:_}));return t===`display-none`?e:(0,K.jsx)(G.Activity,{mode:v?`hidden`:`visible`,children:e})}return v?null:(0,K.jsx)(K.Fragment,{children:o(IL({transition:n,duration:h,state:g,timingFunction:_}))})}RL.displayName=`@mantine/core/Transition`;var zL={root:`m_5ae2e3c`,barsLoader:`m_7a2bd4cd`,bar:`m_870bb79`,"bars-loader-animation":`m_5d2b3b9d`,dotsLoader:`m_4e3f22d7`,dot:`m_870c4af`,"loader-dots-animation":`m_aac34a1`,ovalLoader:`m_b34414df`,"oval-loader-animation":`m_f8e89c4b`},BL=({className:e,...t})=>(0,K.jsxs)(FI,{component:`span`,className:_P(zL.barsLoader,e),...t,children:[(0,K.jsx)(`span`,{className:zL.bar}),(0,K.jsx)(`span`,{className:zL.bar}),(0,K.jsx)(`span`,{className:zL.bar})]});BL.displayName=`@mantine/core/Bars`;var VL=({className:e,...t})=>(0,K.jsxs)(FI,{component:`span`,className:_P(zL.dotsLoader,e),...t,children:[(0,K.jsx)(`span`,{className:zL.dot}),(0,K.jsx)(`span`,{className:zL.dot}),(0,K.jsx)(`span`,{className:zL.dot})]});VL.displayName=`@mantine/core/Dots`;var HL=({className:e,...t})=>(0,K.jsx)(FI,{component:`span`,className:_P(zL.ovalLoader,e),...t});HL.displayName=`@mantine/core/Oval`;var UL={bars:BL,oval:HL,dots:VL},WL={loaders:UL,type:`oval`},GL=hP((e,{size:t,color:n})=>({root:{"--loader-size":WN(t,`loader-size`),"--loader-color":n?FP(n,e):void 0}})),KL=DI(e=>{let t=MF(`Loader`,WL,e),{size:n,color:r,type:i,vars:a,className:o,style:s,classNames:c,styles:l,unstyled:u,loaders:d,variant:f,children:p,attributes:m,...h}=t,g=qF({name:`Loader`,props:t,classes:zL,className:o,style:s,classNames:c,styles:l,unstyled:u,attributes:m,vars:a,varsResolver:GL});return p?(0,K.jsx)(FI,{...g(`root`),...h,children:p}):(0,K.jsx)(FI,{...g(`root`),component:d[i],variant:f,size:n,...h})});KL.defaultLoaders=UL,KL.classes=zL,KL.varsResolver=GL,KL.displayName=`@mantine/core/Loader`;function qL({size:e=`var(--cb-icon-size, 70%)`,style:t,...n}){return(0,K.jsx)(`svg`,{viewBox:`0 0 15 15`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,style:{...t,width:e,height:e},...n,children:(0,K.jsx)(`path`,{d:`M11.7816 4.03157C12.0062 3.80702 12.0062 3.44295 11.7816 3.2184C11.5571 2.99385 11.193 2.99385 10.9685 3.2184L7.50005 6.68682L4.03164 3.2184C3.80708 2.99385 3.44301 2.99385 3.21846 3.2184C2.99391 3.44295 2.99391 3.80702 3.21846 4.03157L6.68688 7.49999L3.21846 10.9684C2.99391 11.193 2.99391 11.557 3.21846 11.7816C3.44301 12.0061 3.80708 12.0061 4.03164 11.7816L7.50005 8.31316L10.9685 11.7816C11.193 12.0061 11.5571 12.0061 11.7816 11.7816C12.0062 11.557 12.0062 11.193 11.7816 10.9684L8.31322 7.49999L11.7816 4.03157Z`,fill:`currentColor`,fillRule:`evenodd`,clipRule:`evenodd`})})}qL.displayName=`@mantine/core/CloseIcon`;var JL={root:`m_86a44da5`,"root--subtle":`m_220c80f2`},YL={variant:`subtle`},XL=hP((e,{size:t,radius:n,iconSize:r})=>({root:{"--cb-size":WN(t,`cb-size`),"--cb-radius":n===void 0?void 0:KN(n),"--cb-icon-size":W(r)}})),ZL=OI(e=>{let t=MF(`CloseButton`,YL,e),{iconSize:n,children:r,vars:i,radius:a,className:o,classNames:s,style:c,styles:l,unstyled:u,"data-disabled":d,disabled:f,variant:p,icon:m,mod:h,attributes:g,__staticSelector:_,...v}=t,y=qF({name:_||`CloseButton`,props:t,className:o,style:c,classes:JL,classNames:s,styles:l,unstyled:u,attributes:g,vars:i,varsResolver:XL});return(0,K.jsxs)(kL,{...v,unstyled:u,variant:p,disabled:f,mod:[{disabled:f||d},h],...y(`root`,{variant:p,active:!f&&!d}),children:[m||(0,K.jsx)(qL,{}),r]})});ZL.classes=JL,ZL.varsResolver=XL,ZL.displayName=`@mantine/core/CloseButton`;function QL(e){return G.Children.toArray(e).filter(Boolean)}var $L={root:`m_4081bf90`},eR={preventGrowOverflow:!0,gap:`md`,align:`center`,justify:`flex-start`,wrap:`wrap`},tR=hP((e,{grow:t,preventGrowOverflow:n,gap:r,align:i,justify:a,wrap:o},{childWidth:s})=>({root:{"--group-child-width":t&&n?s:void 0,"--group-gap":GN(r),"--group-align":i,"--group-justify":a,"--group-wrap":o}})),nR=DI(e=>{let t=MF(`Group`,eR,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,children:s,gap:c,align:l,justify:u,wrap:d,grow:f,preventGrowOverflow:p,vars:m,variant:h,__size:g,mod:_,attributes:v,...y}=t,b=QL(s),x=b.length,S=GN(c??`md`);return(0,K.jsx)(FI,{...qF({name:`Group`,props:t,stylesCtx:{childWidth:`calc(${100/x}% - (${S} - ${S} / ${x}))`},className:r,style:i,classes:$L,classNames:n,styles:a,unstyled:o,attributes:v,vars:m,varsResolver:tR})(`root`),variant:h,mod:[{grow:f},_],size:g,...y,children:b})});nR.classes=$L,nR.varsResolver=tR,nR.displayName=`@mantine/core/Group`;var rR={root:`m_66836ed3`,wrapper:`m_a5d60502`,body:`m_667c2793`,title:`m_6a03f287`,label:`m_698f4f23`,icon:`m_667f2a6a`,message:`m_7fa78076`,closeButton:`m_87f54839`},iR=hP((e,{radius:t,color:n,variant:r,autoContrast:i})=>{let a=e.variantColorResolver({color:n||e.primaryColor,theme:e,variant:r||`light`,autoContrast:i});return{root:{"--alert-radius":t===void 0?void 0:KN(t),"--alert-bg":n||r?a.background:void 0,"--alert-color":a.color,"--alert-bd":n||r?a.border:void 0}}}),aR=DI(e=>{let t=MF(`Alert`,null,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,radius:c,color:l,title:u,children:d,id:f,icon:p,withCloseButton:m,onClose:h,closeButtonLabel:g,variant:_,autoContrast:v,role:y,attributes:b,...x}=t,S=qF({name:`Alert`,classes:rR,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:b,vars:s,varsResolver:iR}),C=oP(f),w=u&&`${C}-title`||void 0,T=`${C}-body`;return(0,K.jsx)(FI,{id:C,...S(`root`,{variant:_}),variant:_,...x,role:y||`alert`,"aria-describedby":d?T:void 0,"aria-labelledby":u?w:void 0,children:(0,K.jsxs)(`div`,{...S(`wrapper`),children:[p&&(0,K.jsx)(`div`,{...S(`icon`),children:p}),(0,K.jsxs)(`div`,{...S(`body`),children:[u&&(0,K.jsx)(`div`,{...S(`title`),"data-with-close-button":m||void 0,children:(0,K.jsx)(`span`,{id:w,...S(`label`),children:u})}),d&&(0,K.jsx)(`div`,{id:T,...S(`message`),"data-variant":_,children:d})]}),m&&(0,K.jsx)(ZL,{...S(`closeButton`),onClick:h,variant:`transparent`,size:16,iconSize:16,"aria-label":g,unstyled:o})]})})});aR.classes=rR,aR.varsResolver=iR,aR.displayName=`@mantine/core/Alert`;var oR={root:`m_b6d8b162`};function sR(e){if(e===`start`)return`start`;if(e===`end`||e)return`end`}var cR={inherit:!1},lR=hP((e,{variant:t,lineClamp:n,gradient:r,size:i,textWrap:a})=>({root:{"--text-fz":qN(i),"--text-lh":JN(i),"--text-gradient":t===`gradient`?RP(r,e):void 0,"--text-line-clamp":typeof n==`number`?n.toString():void 0,"--text-text-wrap":a}})),uR=OI(e=>{let t=MF(`Text`,cR,e),{lineClamp:n,truncate:r,inline:i,inherit:a,gradient:o,span:s,textWrap:c,__staticSelector:l,vars:u,className:d,style:f,classNames:p,styles:m,unstyled:h,variant:g,mod:_,size:v,attributes:y,...b}=t;return(0,K.jsx)(FI,{...qF({name:[`Text`,l],props:t,classes:oR,className:d,style:f,classNames:p,styles:m,unstyled:h,attributes:y,vars:u,varsResolver:lR})(`root`,{focusable:!0}),component:s?`span`:`p`,variant:g,mod:[{"data-truncate":sR(r),"data-line-clamp":typeof n==`number`,"data-inline":i,"data-inherit":a},_],size:v,...b})});uR.classes=oR,uR.varsResolver=lR,uR.displayName=`@mantine/core/Text`;var dR={root:`m_347db0ec`,"root--dot":`m_fbd81e3d`,label:`m_5add502a`,section:`m_91fdda9b`},fR=hP((e,{radius:t,color:n,gradient:r,variant:i,size:a,autoContrast:o,circle:s})=>{let c=e.variantColorResolver({color:n||e.primaryColor,theme:e,gradient:r,variant:i||`filled`,autoContrast:o});return{root:{"--badge-height":WN(a,`badge-height`),"--badge-padding-x":WN(a,`badge-padding-x`),"--badge-fz":WN(a,`badge-fz`),"--badge-radius":s||t===void 0?void 0:KN(t),"--badge-bg":n||i?c.background:void 0,"--badge-color":n||i?c.color:void 0,"--badge-bd":n||i?c.border:void 0,"--badge-dot-color":i===`dot`?FP(n,e):void 0}}}),pR=OI(e=>{let t=MF(`Badge`,null,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,radius:c,color:l,gradient:u,leftSection:d,rightSection:f,children:p,variant:m,fullWidth:h,autoContrast:g,circle:_,mod:v,attributes:y,...b}=t,x=qF({name:`Badge`,props:t,classes:dR,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:y,vars:s,varsResolver:fR});return(0,K.jsxs)(FI,{variant:m,mod:[{block:h,circle:_,"with-right-section":!!f,"with-left-section":!!d},v],...x(`root`,{variant:m}),...b,children:[d&&(0,K.jsx)(`span`,{...x(`section`),"data-position":`left`,children:d}),(0,K.jsx)(`span`,{...x(`label`),children:p}),f&&(0,K.jsx)(`span`,{...x(`section`),"data-position":`right`,children:f})]})});pR.classes=dR,pR.varsResolver=fR,pR.displayName=`@mantine/core/Badge`;var mR={root:`m_77c9d27d`,inner:`m_80f1301b`,label:`m_811560b9`,section:`m_a74036a`,loader:`m_a25b86ee`,group:`m_80d6d844`,groupSection:`m_70be2a01`},hR={orientation:`horizontal`},gR=hP((e,{borderWidth:t})=>({group:{"--button-border-width":W(t)}})),_R=DI(e=>{let t=MF(`ButtonGroup`,hR,e),{className:n,style:r,classNames:i,styles:a,unstyled:o,orientation:s,vars:c,borderWidth:l,mod:u,attributes:d,...f}=MF(`ButtonGroup`,hR,e);return(0,K.jsx)(FI,{...qF({name:`ButtonGroup`,props:t,classes:mR,className:n,style:r,classNames:i,styles:a,unstyled:o,attributes:d,vars:c,varsResolver:gR,rootSelector:`group`})(`group`),mod:[{"data-orientation":s},u],role:`group`,...f})});_R.classes=mR,_R.varsResolver=gR,_R.displayName=`@mantine/core/ButtonGroup`;var vR=hP((e,{radius:t,color:n,gradient:r,variant:i,autoContrast:a,size:o})=>{let s=e.variantColorResolver({color:n||e.primaryColor,theme:e,gradient:r,variant:i||`filled`,autoContrast:a});return{groupSection:{"--section-height":WN(o,`section-height`),"--section-padding-x":WN(o,`section-padding-x`),"--section-fz":o?.includes(`compact`)?qN(o.replace(`compact-`,``)):qN(o),"--section-radius":t===void 0?void 0:KN(t),"--section-bg":n||i?s.background:void 0,"--section-color":s.color,"--section-bd":n||i?s.border:void 0}}}),yR=DI(e=>{let t=MF(`ButtonGroupSection`,null,e),{className:n,style:r,classNames:i,styles:a,unstyled:o,vars:s,gradient:c,radius:l,autoContrast:u,attributes:d,...f}=t;return(0,K.jsx)(FI,{...qF({name:`ButtonGroupSection`,props:t,classes:mR,className:n,style:r,classNames:i,styles:a,unstyled:o,attributes:d,vars:s,varsResolver:vR,rootSelector:`groupSection`})(`groupSection`),...f})});yR.classes=mR,yR.varsResolver=vR,yR.displayName=`@mantine/core/ButtonGroupSection`;var bR={in:{opacity:1,transform:`translate(-50%, calc(-50% + ${W(1)}))`},out:{opacity:0,transform:`translate(-50%, -200%)`},common:{transformOrigin:`center`},transitionProperty:`transform, opacity`},xR=hP((e,{radius:t,color:n,gradient:r,variant:i,size:a,justify:o,autoContrast:s})=>{let c=e.variantColorResolver({color:n||e.primaryColor,theme:e,gradient:r,variant:i||`filled`,autoContrast:s});return{root:{"--button-justify":o,"--button-height":WN(a,`button-height`),"--button-padding-x":WN(a,`button-padding-x`),"--button-fz":a?.includes(`compact`)?qN(a.replace(`compact-`,``)):qN(a),"--button-radius":t===void 0?void 0:KN(t),"--button-bg":n||i?c.background:void 0,"--button-hover":n||i?c.hover:void 0,"--button-color":c.color,"--button-bd":n||i?c.border:void 0,"--button-hover-color":n||i?c.hoverColor:void 0}}}),SR=OI(e=>{let t=MF(`Button`,null,e),{style:n,vars:r,className:i,color:a,disabled:o,children:s,leftSection:c,rightSection:l,fullWidth:u,variant:d,radius:f,loading:p,loaderProps:m,gradient:h,classNames:g,styles:_,unstyled:v,"data-disabled":y,autoContrast:b,mod:x,attributes:S,...C}=t,w=qF({name:`Button`,props:t,classes:mR,className:i,style:n,classNames:g,styles:_,unstyled:v,attributes:S,vars:r,varsResolver:xR}),T=!!c,E=!!l;return(0,K.jsxs)(kL,{...w(`root`,{active:!o&&!p&&!y}),unstyled:v,variant:d,disabled:o||p,mod:[{disabled:o||y,loading:p,block:u,"with-left-section":T,"with-right-section":E},x],...C,children:[typeof p==`boolean`&&(0,K.jsx)(RL,{mounted:p,transition:bR,duration:150,children:e=>(0,K.jsx)(FI,{component:`span`,...w(`loader`,{style:e}),"aria-hidden":!0,children:(0,K.jsx)(KL,{color:`var(--button-color)`,size:`calc(var(--button-height) / 1.8)`,...m})})}),(0,K.jsxs)(`span`,{...w(`inner`),children:[c&&(0,K.jsx)(FI,{component:`span`,...w(`section`),mod:{position:`left`},children:c}),(0,K.jsx)(FI,{component:`span`,mod:{loading:p},...w(`label`),children:s}),l&&(0,K.jsx)(FI,{component:`span`,...w(`section`),mod:{position:`right`},children:l})]})]})});SR.classes=mR,SR.varsResolver=xR,SR.displayName=`@mantine/core/Button`,SR.Group=_R,SR.GroupSection=yR;var CR={root:`m_4451eb3a`},wR=OI(e=>{let t=MF(`Center`,null,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,inline:c,mod:l,attributes:u,...d}=t,f=qF({name:`Center`,props:t,classes:CR,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:u,vars:s});return(0,K.jsx)(FI,{mod:[{inline:c},l],...f(`root`),...d})});wR.classes=CR,wR.displayName=`@mantine/core/Center`;var[TR,ER]=LN(`Pagination.Root component was not found in tree`),DR={root:`m_4addd315`,control:`m_326d024a`,dots:`m_4ad7767d`,items:`m_105fdbed`,label:`m_10817321`},OR={withPadding:!0},kR=DI(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,active:o,disabled:s,withPadding:c,mod:l,...u}=MF(`PaginationControl`,OR,e),d=ER(),f=s||d.disabled;return(0,K.jsx)(kL,{disabled:f,mod:[{active:o,disabled:f,"with-padding":c},l],...d.getStyles(`control`,{className:n,style:r,classNames:t,styles:i,active:!f}),...u})});kR.classes=DR,kR.displayName=`@mantine/core/PaginationControl`;function AR({style:e,children:t,path:n,...r}){return(0,K.jsx)(`svg`,{viewBox:`0 0 16 16`,xmlns:`http://www.w3.org/2000/svg`,style:{width:`calc(var(--pagination-control-size) / 1.8)`,height:`calc(var(--pagination-control-size) / 1.8)`,...e},...r,children:(0,K.jsx)(`path`,{d:n,fill:`currentColor`})})}var jR=e=>(0,K.jsx)(AR,{...e,path:`M8.781 8l-3.3-3.3.943-.943L10.667 8l-4.243 4.243-.943-.943 3.3-3.3z`}),MR=e=>(0,K.jsx)(AR,{...e,path:`M7.219 8l3.3 3.3-.943.943L5.333 8l4.243-4.243.943.943-3.3 3.3z`}),NR=e=>(0,K.jsx)(AR,{...e,path:`M6.85355 3.85355C7.04882 3.65829 7.04882 3.34171 6.85355 3.14645C6.65829 2.95118 6.34171 2.95118 6.14645 3.14645L2.14645 7.14645C1.95118 7.34171 1.95118 7.65829 2.14645 7.85355L6.14645 11.8536C6.34171 12.0488 6.65829 12.0488 6.85355 11.8536C7.04882 11.6583 7.04882 11.3417 6.85355 11.1464L3.20711 7.5L6.85355 3.85355ZM12.8536 3.85355C13.0488 3.65829 13.0488 3.34171 12.8536 3.14645C12.6583 2.95118 12.3417 2.95118 12.1464 3.14645L8.14645 7.14645C7.95118 7.34171 7.95118 7.65829 8.14645 7.85355L12.1464 11.8536C12.3417 12.0488 12.6583 12.0488 12.8536 11.8536C13.0488 11.6583 13.0488 11.3417 12.8536 11.1464L9.20711 7.5L12.8536 3.85355Z`}),PR=e=>(0,K.jsx)(AR,{...e,path:`M2.14645 11.1464C1.95118 11.3417 1.95118 11.6583 2.14645 11.8536C2.34171 12.0488 2.65829 12.0488 2.85355 11.8536L6.85355 7.85355C7.04882 7.65829 7.04882 7.34171 6.85355 7.14645L2.85355 3.14645C2.65829 2.95118 2.34171 2.95118 2.14645 3.14645C1.95118 3.34171 1.95118 3.65829 2.14645 3.85355L5.79289 7.5L2.14645 11.1464ZM8.14645 11.1464C7.95118 11.3417 7.95118 11.6583 8.14645 11.8536C8.34171 12.0488 8.65829 12.0488 8.85355 11.8536L12.8536 7.85355C13.0488 7.65829 13.0488 7.34171 12.8536 7.14645L8.85355 3.14645C8.65829 2.95118 8.34171 2.95118 8.14645 3.14645C7.95118 3.34171 7.95118 3.65829 8.14645 3.85355L11.7929 7.5L8.14645 11.1464Z`}),FR={icon:e=>(0,K.jsx)(AR,{...e,path:`M2 8c0-.733.6-1.333 1.333-1.333.734 0 1.334.6 1.334 1.333s-.6 1.333-1.334 1.333C2.6 9.333 2 8.733 2 8zm9.333 0c0-.733.6-1.333 1.334-1.333C13.4 6.667 14 7.267 14 8s-.6 1.333-1.333 1.333c-.734 0-1.334-.6-1.334-1.333zM6.667 8c0-.733.6-1.333 1.333-1.333s1.333.6 1.333 1.333S8.733 9.333 8 9.333 6.667 8.733 6.667 8z`})},IR=DI(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,icon:o,...s}=MF(`PaginationDots`,FR,e);return(0,K.jsx)(FI,{...ER().getStyles(`dots`,{className:n,style:r,styles:i,classNames:t}),...s,children:(0,K.jsx)(o,{style:{width:`calc(var(--pagination-control-size) / 1.8)`,height:`calc(var(--pagination-control-size) / 1.8)`}})})});IR.classes=DR,IR.displayName=`@mantine/core/PaginationDots`;function LR({icon:e,name:t,action:n,type:r}){let i={icon:e},a=e=>{let{icon:a,...o}=MF(t,i,e),s=ER(),c=r===`next`?s.active===s.total:s.active===1;return(0,K.jsx)(kR,{disabled:s.disabled||c,onClick:s[n],withPadding:!1,...o,children:(0,K.jsx)(a,{className:`mantine-rotate-rtl`,style:{width:`calc(var(--pagination-control-size) / 1.8)`,height:`calc(var(--pagination-control-size) / 1.8)`}})})};return a.displayName=`@mantine/core/${t}`,TI(a)}var RR=LR({icon:jR,name:`PaginationNext`,action:`onNext`,type:`next`}),zR=LR({icon:MR,name:`PaginationPrevious`,action:`onPrevious`,type:`previous`}),BR=LR({icon:NR,name:`PaginationFirst`,action:`onFirst`,type:`previous`}),VR=LR({icon:PR,name:`PaginationLast`,action:`onLast`,type:`next`});function HR({dotsIcon:e}){let t=ER();return(0,K.jsx)(K.Fragment,{children:t.range.map((n,r)=>n===`dots`?(0,K.jsx)(IR,{icon:e},r):(0,K.jsx)(kR,{active:n===t.active,"aria-current":n===t.active?`page`:void 0,onClick:()=>t.onChange(n),disabled:t.disabled,...t.getItemProps?.(n),children:t.getItemProps?.(n)?.children??n},r))})}HR.displayName=`@mantine/core/PaginationItems`;var UR={formatLabel:({page:e,totalPages:t})=>`Page ${e} of ${t}`},WR=DI(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,formatLabel:o,...s}=MF(`PaginationLabel`,UR,e),c=ER();return(0,K.jsx)(FI,{...c.getStyles(`label`,{className:n,style:r,styles:i,classNames:t}),...s,children:o({page:c.active,totalPages:c.total})})});WR.classes=DR,WR.displayName=`@mantine/core/PaginationLabel`;var GR={siblings:1,boundaries:1},KR=hP((e,{size:t,radius:n,color:r,autoContrast:i})=>({root:{"--pagination-control-radius":n===void 0?void 0:KN(n),"--pagination-control-size":WN(t,`pagination-control-size`),"--pagination-control-fz":qN(t),"--pagination-active-bg":r?FP(r,e):void 0,"--pagination-active-color":GP(i,e)?HP({color:r,theme:e,autoContrast:i}):void 0}})),qR=DI(e=>{let t=MF(`PaginationRoot`,GR,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,total:c,value:l,defaultValue:u,onChange:d,disabled:f,siblings:p,boundaries:m,color:h,radius:g,onNextPage:_,onPreviousPage:v,onFirstPage:y,onLastPage:b,getItemProps:x,autoContrast:S,startValue:C,layout:w,mod:T,attributes:E,...D}=t,O=qF({name:`Pagination`,classes:DR,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:E,vars:s,varsResolver:KR}),{range:k,setPage:ee,next:te,previous:ne,active:A,first:j,last:re}=pP({page:l,initialPage:u,onChange:d,total:c,siblings:p,boundaries:m,startValue:C});return(0,K.jsx)(TR,{value:{total:c,range:k,active:A,disabled:f,layout:w,getItemProps:x,onChange:ee,onNext:XN(_,te),onPrevious:XN(v,ne),onFirst:XN(y,j),onLast:XN(b,re),getStyles:O},children:(0,K.jsx)(FI,{...O(`root`),mod:[{layout:w},T],...D})})});qR.classes=DR,qR.varsResolver=KR,qR.displayName=`@mantine/core/PaginationRoot`;var JR={withControls:!0,withPages:!0,siblings:1,boundaries:1,gap:8};function YR({children:e}){return(0,K.jsx)(FI,{...ER().getStyles(`items`),children:e})}var XR=DI(e=>{let{withEdges:t,withControls:n,getControlProps:r,nextIcon:i,previousIcon:a,lastIcon:o,firstIcon:s,dotsIcon:c,total:l,gap:u,hideWithOnePage:d,withPages:f,layout:p,formatLabel:m,...h}=MF(`Pagination`,JR,e);if(l<=0||d&&l===1)return null;let g=f?p===`responsive`?(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(YR,{children:(0,K.jsx)(HR,{dotsIcon:c})}),(0,K.jsx)(WR,{formatLabel:m})]}):(0,K.jsx)(HR,{dotsIcon:c}):null;return(0,K.jsx)(qR,{total:l,layout:p,...h,children:(0,K.jsxs)(nR,{gap:u,children:[t&&(0,K.jsx)(BR,{icon:s,...r?.(`first`)}),n&&(0,K.jsx)(zR,{icon:a,...r?.(`previous`)}),g,n&&(0,K.jsx)(RR,{icon:i,...r?.(`next`)}),t&&(0,K.jsx)(VR,{icon:o,...r?.(`last`)})]})})});XR.classes=DR,XR.displayName=`@mantine/core/Pagination`,XR.Root=qR,XR.Control=kR,XR.Dots=IR,XR.First=BR,XR.Last=VR,XR.Next=RR,XR.Previous=zR,XR.Items=HR,XR.Label=WR;var ZR={root:`m_6d731127`},QR={gap:`md`,align:`stretch`,justify:`flex-start`},$R=hP((e,{gap:t,align:n,justify:r})=>({root:{"--stack-gap":GN(t),"--stack-align":n,"--stack-justify":r}})),ez=DI(e=>{let t=MF(`Stack`,QR,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,align:c,justify:l,gap:u,variant:d,attributes:f,...p}=t;return(0,K.jsx)(FI,{...qF({name:`Stack`,props:t,classes:ZR,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:f,vars:s,varsResolver:$R})(`root`),variant:d,...p})});ez.classes=ZR,ez.varsResolver=$R,ez.displayName=`@mantine/core/Stack`;var[tz,nz]=LN(`Table component was not found in the tree`),rz={table:`m_b23fa0ef`,th:`m_4e7aa4f3`,tr:`m_4e7aa4fd`,td:`m_4e7aa4ef`,tbody:`m_b2404537`,thead:`m_b242d975`,caption:`m_9e5a3ac7`,scrollContainer:`m_a100c15`,scrollContainerInner:`m_62259741`};function iz(e,t){if(!t)return;let n={};return t.columnBorder&&e.withColumnBorders&&(n[`data-with-column-border`]=!0),t.rowBorder&&e.withRowBorders&&(n[`data-with-row-border`]=!0),t.striped&&e.striped&&(n[`data-striped`]=e.striped),t.highlightOnHover&&e.highlightOnHover&&(n[`data-hover`]=!0),t.captionSide&&e.captionSide&&(n[`data-side`]=e.captionSide),t.stickyHeader&&e.stickyHeader&&(n[`data-sticky`]=!0),n}function az(e,t){let n=`Table${e.charAt(0).toUpperCase()}${e.slice(1)}`,r=DI(r=>{let i=MF(n,{},r),{classNames:a,className:o,style:s,styles:c,...l}=i,u=nz();return(0,K.jsx)(FI,{component:e,...iz(u,t),...u.getStyles(e,{className:o,classNames:a,style:s,styles:c,props:i}),...l})});return r.displayName=`@mantine/core/${n}`,r.classes=rz,r}var oz=az(`th`,{columnBorder:!0}),sz=az(`td`,{columnBorder:!0}),cz=az(`tr`,{rowBorder:!0,striped:!0,highlightOnHover:!0}),lz=az(`thead`,{stickyHeader:!0}),uz=az(`tbody`),dz=az(`tfoot`),fz=az(`caption`,{captionSide:!0}),pz={type:`scrollarea`},mz=hP((e,{minWidth:t,maxHeight:n,type:r})=>({scrollContainer:{"--table-min-width":W(t),"--table-max-height":W(n),"--table-overflow":r===`native`?`auto`:void 0}})),hz=DI(e=>{let t=MF(`TableScrollContainer`,pz,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,children:c,minWidth:l,maxHeight:u,type:d,scrollAreaProps:f,attributes:p,...m}=t,h=qF({name:`TableScrollContainer`,classes:rz,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:p,vars:s,varsResolver:mz,rootSelector:`scrollContainer`});return(0,K.jsx)(FI,{component:d===`scrollarea`?TL:`div`,...d===`scrollarea`?u?{offsetScrollbars:`xy`,...f}:{offsetScrollbars:`x`,...f}:{},...h(`scrollContainer`),...m,children:(0,K.jsx)(`div`,{...h(`scrollContainerInner`),children:c})})});hz.classes=rz,hz.varsResolver=mz,hz.displayName=`@mantine/core/TableScrollContainer`;function gz({data:e}){return(0,K.jsxs)(K.Fragment,{children:[e.caption&&(0,K.jsx)(fz,{children:e.caption}),e.head&&(0,K.jsx)(lz,{children:(0,K.jsx)(cz,{children:e.head.map((e,t)=>(0,K.jsx)(oz,{children:e},t))})}),e.body&&(0,K.jsx)(uz,{children:e.body.map((e,t)=>(0,K.jsx)(cz,{children:e.map((e,t)=>(0,K.jsx)(sz,{children:e},t))},t))}),e.foot&&(0,K.jsx)(dz,{children:(0,K.jsx)(cz,{children:e.foot.map((e,t)=>(0,K.jsx)(oz,{children:e},t))})})]})}gz.displayName=`@mantine/core/TableDataRenderer`;var _z={withRowBorders:!0,verticalSpacing:7},vz=hP((e,{layout:t,captionSide:n,horizontalSpacing:r,verticalSpacing:i,borderColor:a,stripedColor:o,highlightOnHoverColor:s,striped:c,highlightOnHover:l,stickyHeaderOffset:u,stickyHeader:d})=>({table:{"--table-layout":t,"--table-caption-side":n,"--table-horizontal-spacing":GN(r),"--table-vertical-spacing":GN(i),"--table-border-color":a?FP(a,e):void 0,"--table-striped-color":c&&o?FP(o,e):void 0,"--table-highlight-on-hover-color":l&&s?FP(s,e):void 0,"--table-sticky-header-offset":d?W(u):void 0}})),yz=DI(e=>{let t=MF(`Table`,_z,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,horizontalSpacing:c,verticalSpacing:l,captionSide:u,stripedColor:d,highlightOnHoverColor:f,striped:p,highlightOnHover:m,withColumnBorders:h,withRowBorders:g,withTableBorder:_,borderColor:v,layout:y,data:b,children:x,stickyHeader:S,stickyHeaderOffset:C,mod:w,tabularNums:T,attributes:E,...D}=t,O=qF({name:`Table`,props:t,className:r,style:i,classes:rz,classNames:n,styles:a,unstyled:o,attributes:E,rootSelector:`table`,vars:s,varsResolver:vz});return(0,K.jsx)(tz,{value:{getStyles:O,stickyHeader:S,striped:p===!0?`odd`:p||void 0,highlightOnHover:m,withColumnBorders:h,withRowBorders:g,captionSide:u||`bottom`},children:(0,K.jsx)(FI,{component:`table`,mod:[{"data-with-table-border":_,"data-tabular-nums":T},w],...O(`table`),...D,children:x||!!b&&(0,K.jsx)(gz,{data:b})})})});yz.classes=rz,yz.varsResolver=vz,yz.displayName=`@mantine/core/Table`,yz.Td=sz,yz.Th=oz,yz.Tr=cz,yz.Thead=lz,yz.Tbody=uz,yz.Tfoot=dz,yz.Caption=fz,yz.ScrollContainer=hz,yz.DataRenderer=gz;var[bz,xz]=LN(`Tabs component was not found in the tree`),Sz={root:`m_89d60db1`,"list--default":`m_576c9d4`,list:`m_89d33d6d`,tab:`m_4ec4dce6`,panel:`m_b0c91715`,tabSection:`m_fc420b1f`,tabLabel:`m_42bbd1ae`,"tab--default":`m_539e827b`,"list--outline":`m_6772fbd5`,"tab--outline":`m_b59ab47c`,"tab--pills":`m_c3381914`},Cz=DI(e=>{let t=MF(`TabsList`,null,e),{children:n,className:r,grow:i,justify:a,classNames:o,styles:s,style:c,mod:l,...u}=t,d=xz();return(0,K.jsx)(FI,{...d.getStyles(`list`,{className:r,style:c,classNames:o,styles:s,props:t,variant:d.variant}),role:`tablist`,variant:d.variant,mod:[{grow:i,orientation:d.orientation,placement:d.orientation===`vertical`&&d.placement,inverted:d.inverted},l],"aria-orientation":d.orientation,__vars:{"--tabs-justify":a},...u,children:n})});Cz.classes=Sz,Cz.displayName=`@mantine/core/TabsList`;var wz=DI(e=>{let t=MF(`TabsPanel`,null,e),{children:n,className:r,value:i,classNames:a,styles:o,style:s,mod:c,keepMounted:l,...u}=t,d=tF(),f=xz();(0,G.useEffect)(()=>(f.setMountedPanel(i,!0),()=>{f.setMountedPanel(i,!1)}),[i]);let p=f.value===i,m=f.keepMounted||l,h=f.keepMountedMode!==`display-none`,g=m&&h&&d!==`test`?(0,K.jsx)(G.Activity,{mode:p?`visible`:`hidden`,children:n}):m||p?n:null;return(0,K.jsx)(FI,{...f.getStyles(`panel`,{className:r,classNames:a,styles:o,style:[s,p?void 0:{display:`none`}],props:t}),mod:[{orientation:f.orientation},c],role:`tabpanel`,id:f.getPanelId(i),"aria-labelledby":f.getTabId(i),...u,children:g})});wz.classes=Sz,wz.displayName=`@mantine/core/TabsPanel`;var Tz=DI(e=>{let t=MF(`TabsTab`,null,e),{className:n,children:r,rightSection:i,leftSection:a,value:o,onClick:s,onKeyDown:c,disabled:l,color:u,style:d,classNames:f,styles:p,vars:m,mod:h,tabIndex:g,..._}=t,v=_F(),{dir:y}=LI(),b=xz(),x=o===b.value,S=e=>{b.onChange(b.allowTabDeactivation&&o===b.value?null:o),s?.(e)},C={classNames:f,styles:p,props:t};return(0,K.jsxs)(kL,{...b.getStyles(`tab`,{className:n,style:d,variant:b.variant,...C}),disabled:l,unstyled:b.unstyled,variant:b.variant,mod:[{active:x,disabled:l,orientation:b.orientation,inverted:b.inverted,placement:b.orientation===`vertical`&&b.placement},h],role:`tab`,id:b.getTabId(o),"aria-selected":x,tabIndex:g===void 0?x||b.value===null?0:-1:g,"aria-controls":b.mountedPanels.current.has(o)?b.getPanelId(o):void 0,onClick:S,__vars:{"--tabs-color":u?FP(u,v):void 0},onKeyDown:UN({siblingSelector:`[role="tab"]`,parentSelector:`[role="tablist"]`,activateOnFocus:b.activateTabWithKeyboard,loop:b.loop,orientation:b.orientation||`horizontal`,dir:y,onKeyDown:c}),..._,children:[a&&(0,K.jsx)(`span`,{...b.getStyles(`tabSection`,C),"data-position":`left`,children:a}),r&&(0,K.jsx)(`span`,{...b.getStyles(`tabLabel`,C),children:r}),i&&(0,K.jsx)(`span`,{...b.getStyles(`tabSection`,C),"data-position":`right`,children:i})]})});Tz.classes=Sz,Tz.displayName=`@mantine/core/TabsTab`;var Ez=`Tabs.Tab or Tabs.Panel component was rendered with invalid value or without value`,Dz={keepMounted:!0,keepMountedMode:`activity`,orientation:`horizontal`,loop:!0,activateTabWithKeyboard:!0,variant:`default`,placement:`left`},Oz=hP((e,{radius:t,color:n,autoContrast:r})=>({root:{"--tabs-radius":KN(t),"--tabs-color":FP(n,e),"--tabs-text-color":GP(r,e)?HP({color:n,theme:e,autoContrast:r}):void 0}})),kz=DI(e=>{let t=MF(`Tabs`,Dz,e),{defaultValue:n,value:r,onChange:i,orientation:a,children:o,loop:s,id:c,activateTabWithKeyboard:l,allowTabDeactivation:u,variant:d,color:f,radius:p,inverted:m,placement:h,keepMounted:g,keepMountedMode:_,classNames:v,styles:y,unstyled:b,className:x,style:S,vars:C,autoContrast:w,mod:T,attributes:E,...D}=t,O=oP(c),k=(0,G.useRef)(new Set),ee=aP(),te=(0,G.useCallback)((e,t)=>{let n=k.current;t&&!n.has(e)?(n.add(e),ee()):!t&&n.has(e)&&(n.delete(e),ee())},[]),[ne,A]=uP({value:r,defaultValue:n,finalValue:null,onChange:i}),j=qF({name:`Tabs`,props:t,classes:Sz,className:x,style:S,classNames:v,styles:y,unstyled:b,attributes:E,vars:C,varsResolver:Oz});return(0,K.jsx)(bz,{value:{placement:h,value:ne,orientation:a,id:O,loop:s,activateTabWithKeyboard:l,getTabId:RN(`${O}-tab`,Ez),getPanelId:RN(`${O}-panel`,Ez),onChange:A,allowTabDeactivation:u,variant:d,color:f,radius:p,inverted:m,keepMounted:g,keepMountedMode:_,unstyled:b,getStyles:j,mountedPanels:k,setMountedPanel:te},children:(0,K.jsx)(FI,{id:O,variant:d,mod:[{orientation:a,inverted:a===`horizontal`&&m,placement:a===`vertical`&&h},T],...j(`root`),...D,children:o})})});kz.classes=Sz,kz.varsResolver=Oz,kz.displayName=`@mantine/core/Tabs`,kz.Tab=Tz,kz.Panel=wz,kz.List=Cz;var Az={root:`m_7341320d`},jz=hP((e,{size:t,radius:n,variant:r,gradient:i,color:a,autoContrast:o})=>{let s=e.variantColorResolver({color:a||e.primaryColor,theme:e,gradient:i,variant:r||`filled`,autoContrast:o});return{root:{"--ti-size":WN(t,`ti-size`),"--ti-radius":n===void 0?void 0:KN(n),"--ti-bg":a||r?s.background:void 0,"--ti-color":a||r?s.color:void 0,"--ti-bd":a||r?s.border:void 0}}}),Mz=DI(e=>{let t=MF(`ThemeIcon`,null,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,autoContrast:c,attributes:l,...u}=t;return(0,K.jsx)(FI,{...qF({name:`ThemeIcon`,classes:Az,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:l,vars:s,varsResolver:jz})(`root`),...u})});Mz.classes=Az,Mz.varsResolver=jz,Mz.displayName=`@mantine/core/ThemeIcon`;var Nz=[`h1`,`h2`,`h3`,`h4`,`h5`,`h6`],Pz=[`xs`,`sm`,`md`,`lg`,`xl`];function Fz(e,t){let n=t===void 0?`h${e}`:t;return Nz.includes(n)?{fontSize:`var(--mantine-${n}-font-size)`,fontWeight:`var(--mantine-${n}-font-weight)`,lineHeight:`var(--mantine-${n}-line-height)`}:Pz.includes(n)?{fontSize:`var(--mantine-font-size-${n})`,fontWeight:`var(--mantine-h${e}-font-weight)`,lineHeight:`var(--mantine-h${e}-line-height)`}:{fontSize:W(n),fontWeight:`var(--mantine-h${e}-font-weight)`,lineHeight:`var(--mantine-h${e}-line-height)`}}var Iz={root:`m_8a5d1357`},Lz={order:1},Rz=hP((e,{order:t,size:n,lineClamp:r,textWrap:i})=>{let a=Fz(t||1,n);return{root:{"--title-fw":a.fontWeight,"--title-lh":a.lineHeight,"--title-fz":a.fontSize,"--title-line-clamp":typeof r==`number`?r.toString():void 0,"--title-text-wrap":i}}}),zz=DI(e=>{let t=MF(`Title`,Lz,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,order:s,vars:c,size:l,variant:u,lineClamp:d,textWrap:f,mod:p,attributes:m,...h}=t,g=qF({name:`Title`,props:t,classes:Iz,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:m,vars:c,varsResolver:Rz});return[1,2,3,4,5,6].includes(s)?(0,K.jsx)(FI,{...g(`root`),component:`h${s}`,variant:u,mod:[{order:s,"data-line-clamp":typeof d==`number`},p],size:l,...h}):null});zz.classes=Iz,zz.varsResolver=Rz,zz.displayName=`@mantine/core/Title`;var Bz=new Map([[`bold`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M244,56v48a12,12,0,0,1-12,12H184a12,12,0,1,1,0-24H201.1l-19-17.38c-.13-.12-.26-.24-.38-.37A76,76,0,1,0,127,204h1a75.53,75.53,0,0,0,52.15-20.72,12,12,0,0,1,16.49,17.45A99.45,99.45,0,0,1,128,228h-1.37A100,100,0,1,1,198.51,57.06L220,76.72V56a12,12,0,0,1,24,0Z`}))],[`duotone`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M216,128a88,88,0,1,1-88-88A88,88,0,0,1,216,128Z`,opacity:`0.2`}),G.createElement(`path`,{d:`M240,56v48a8,8,0,0,1-8,8H184a8,8,0,0,1,0-16H211.4L184.81,71.64l-.25-.24a80,80,0,1,0-1.67,114.78,8,8,0,0,1,11,11.63A95.44,95.44,0,0,1,128,224h-1.32A96,96,0,1,1,195.75,60L224,85.8V56a8,8,0,1,1,16,0Z`}))],[`fill`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M240,56v48a8,8,0,0,1-8,8H184a8,8,0,0,1-5.66-13.66l17-17-10.55-9.65-.25-.24a80,80,0,1,0-1.67,114.78,8,8,0,1,1,11,11.63A95.44,95.44,0,0,1,128,224h-1.32A96,96,0,1,1,195.75,60l10.93,10L226.34,50.3A8,8,0,0,1,240,56Z`}))],[`light`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M238,56v48a6,6,0,0,1-6,6H184a6,6,0,0,1,0-12h32.55l-30.38-27.8c-.06-.06-.12-.13-.19-.19a82,82,0,1,0-1.7,117.65,6,6,0,0,1,8.24,8.73A93.46,93.46,0,0,1,128,222h-1.28A94,94,0,1,1,194.37,61.4L226,90.35V56a6,6,0,1,1,12,0Z`}))],[`regular`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M240,56v48a8,8,0,0,1-8,8H184a8,8,0,0,1,0-16H211.4L184.81,71.64l-.25-.24a80,80,0,1,0-1.67,114.78,8,8,0,0,1,11,11.63A95.44,95.44,0,0,1,128,224h-1.32A96,96,0,1,1,195.75,60L224,85.8V56a8,8,0,1,1,16,0Z`}))],[`thin`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M236,56v48a4,4,0,0,1-4,4H184a4,4,0,0,1,0-8h37.7L187.53,68.69l-.13-.12a84,84,0,1,0-1.75,120.51,4,4,0,0,1,5.5,5.82A91.43,91.43,0,0,1,128,220h-1.26A92,92,0,1,1,193,62.84l35,32.05V56a4,4,0,1,1,8,0Z`}))]]),Vz=new Map([[`bold`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M248.49,71.51l-32-32a12,12,0,0,0-17,17L211,68h-3c-52,0-64.8,30.71-75.08,55.38-8.82,21.17-15.45,37.05-42.75,40.09a44,44,0,1,0,.28,24.08c43.34-3.87,55.07-32,64.63-54.93C164.9,109,172,92,208,92h3l-11.52,11.51a12,12,0,0,0,17,17l32-32A12,12,0,0,0,248.49,71.51ZM48,196a20,20,0,1,1,20-20A20,20,0,0,1,48,196Z`}))],[`duotone`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M80,176a32,32,0,1,1-32-32A32,32,0,0,1,80,176Z`,opacity:`0.2`}),G.createElement(`path`,{d:`M245.66,74.34l-32-32a8,8,0,0,0-11.32,11.32L220.69,72H208c-49.33,0-61.05,28.12-71.38,52.92-9.38,22.51-16.92,40.59-49.48,42.84a40,40,0,1,0,.1,16c43.26-2.65,54.34-29.15,64.14-52.69C161.41,107,169.33,88,208,88h12.69l-18.35,18.34a8,8,0,0,0,11.32,11.32l32-32A8,8,0,0,0,245.66,74.34ZM48,200a24,24,0,1,1,24-24A24,24,0,0,1,48,200Z`}))],[`fill`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M245.66,85.66l-32,32a8,8,0,0,1-11.32-11.32L220.69,88H208c-38.67,0-46.59,19-56.62,43.08C141.05,155.88,129.33,184,80,184H79a32,32,0,1,1,0-16h1c38.67,0,46.59-19,56.62-43.08C147,100.12,158.67,72,208,72h12.69L202.34,53.66a8,8,0,0,1,11.32-11.32l32,32A8,8,0,0,1,245.66,85.66Z`}))],[`light`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M244.24,75.76l-32-32a6,6,0,0,0-8.48,8.48L225.51,74H208c-48,0-59.44,27.46-69.54,51.69-9.43,22.64-17.66,42.33-53,44.16a38,38,0,1,0,.06,12c43.34-2.06,54.29-28.29,64-51.55C159.44,106.53,168,86,208,86h17.51l-21.75,21.76a6,6,0,1,0,8.48,8.48l32-32A6,6,0,0,0,244.24,75.76ZM48,202a26,26,0,1,1,26-26A26,26,0,0,1,48,202Z`}))],[`regular`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M245.66,74.34l-32-32a8,8,0,0,0-11.32,11.32L220.69,72H208c-49.33,0-61.05,28.12-71.38,52.92-9.38,22.51-16.92,40.59-49.48,42.84a40,40,0,1,0,.1,16c43.26-2.65,54.34-29.15,64.14-52.69C161.41,107,169.33,88,208,88h12.69l-18.35,18.34a8,8,0,0,0,11.32,11.32l32-32A8,8,0,0,0,245.66,74.34ZM48,200a24,24,0,1,1,24-24A24,24,0,0,1,48,200Z`}))],[`thin`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M242.83,77.17l-32-32a4,4,0,0,0-5.66,5.66L230.34,76H208c-46.67,0-57.84,26.81-67.69,50.46-9.46,22.69-18.4,44.16-56.55,45.48a36,36,0,1,0,0,8c43.49-1.42,54.33-27.39,63.91-50.39C157.45,106.12,166.67,84,208,84h22.34l-25.17,25.17a4,4,0,0,0,5.66,5.66l32-32A4,4,0,0,0,242.83,77.17ZM48,204a28,28,0,1,1,28-28A28,28,0,0,1,48,204Z`}))]]),Hz=new Map([[`bold`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M232.49,215.51,185,168a92.12,92.12,0,1,0-17,17l47.53,47.54a12,12,0,0,0,17-17ZM44,112a68,68,0,1,1,68,68A68.07,68.07,0,0,1,44,112Z`}))],[`duotone`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M192,112a80,80,0,1,1-80-80A80,80,0,0,1,192,112Z`,opacity:`0.2`}),G.createElement(`path`,{d:`M229.66,218.34,179.6,168.28a88.21,88.21,0,1,0-11.32,11.31l50.06,50.07a8,8,0,0,0,11.32-11.32ZM40,112a72,72,0,1,1,72,72A72.08,72.08,0,0,1,40,112Z`}))],[`fill`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M168,112a56,56,0,1,1-56-56A56,56,0,0,1,168,112Zm61.66,117.66a8,8,0,0,1-11.32,0l-50.06-50.07a88,88,0,1,1,11.32-11.31l50.06,50.06A8,8,0,0,1,229.66,229.66ZM112,184a72,72,0,1,0-72-72A72.08,72.08,0,0,0,112,184Z`}))],[`light`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M228.24,219.76l-51.38-51.38a86.15,86.15,0,1,0-8.48,8.48l51.38,51.38a6,6,0,0,0,8.48-8.48ZM38,112a74,74,0,1,1,74,74A74.09,74.09,0,0,1,38,112Z`}))],[`regular`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M229.66,218.34l-50.07-50.06a88.11,88.11,0,1,0-11.31,11.31l50.06,50.07a8,8,0,0,0,11.32-11.32ZM40,112a72,72,0,1,1,72,72A72.08,72.08,0,0,1,40,112Z`}))],[`thin`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M226.83,221.17l-52.7-52.7a84.1,84.1,0,1,0-5.66,5.66l52.7,52.7a4,4,0,0,0,5.66-5.66ZM36,112a76,76,0,1,1,76,76A76.08,76.08,0,0,1,36,112Z`}))]]),Uz=new Map([[`bold`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M176,156a43.78,43.78,0,0,0-29.09,11L106.1,140.8a44.07,44.07,0,0,0,0-25.6L146.91,89a43.83,43.83,0,1,0-13-20.17L93.09,95a44,44,0,1,0,0,65.94L133.9,187.2A44,44,0,1,0,176,156Zm0-120a20,20,0,1,1-20,20A20,20,0,0,1,176,36ZM64,148a20,20,0,1,1,20-20A20,20,0,0,1,64,148Zm112,72a20,20,0,1,1,20-20A20,20,0,0,1,176,220Z`}))],[`duotone`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M208,200a32,32,0,1,1-32-32A32,32,0,0,1,208,200ZM176,88a32,32,0,1,0-32-32A32,32,0,0,0,176,88Z`,opacity:`0.2`}),G.createElement(`path`,{d:`M176,160a39.89,39.89,0,0,0-28.62,12.09l-46.1-29.63a39.8,39.8,0,0,0,0-28.92l46.1-29.63a40,40,0,1,0-8.66-13.45l-46.1,29.63a40,40,0,1,0,0,55.82l46.1,29.63A40,40,0,1,0,176,160Zm0-128a24,24,0,1,1-24,24A24,24,0,0,1,176,32ZM64,152a24,24,0,1,1,24-24A24,24,0,0,1,64,152Zm112,72a24,24,0,1,1,24-24A24,24,0,0,1,176,224Z`}))],[`fill`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M212,200a36,36,0,1,1-69.85-12.25l-53-34.05a36,36,0,1,1,0-51.4l53-34a36.09,36.09,0,1,1,8.67,13.45l-53,34.05a36,36,0,0,1,0,24.5l53,34.05A36,36,0,0,1,212,200Z`}))],[`light`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M176,162a37.91,37.91,0,0,0-28.3,12.67L98.8,143.24a37.89,37.89,0,0,0,0-30.48l48.9-31.43a38,38,0,1,0-6.5-10.09L92.3,102.67a38,38,0,1,0,0,50.66l48.9,31.43A38,38,0,1,0,176,162Zm0-132a26,26,0,1,1-26,26A26,26,0,0,1,176,30ZM64,154a26,26,0,1,1,26-26A26,26,0,0,1,64,154Zm112,72a26,26,0,1,1,26-26A26,26,0,0,1,176,226Z`}))],[`regular`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M176,160a39.89,39.89,0,0,0-28.62,12.09l-46.1-29.63a39.8,39.8,0,0,0,0-28.92l46.1-29.63a40,40,0,1,0-8.66-13.45l-46.1,29.63a40,40,0,1,0,0,55.82l46.1,29.63A40,40,0,1,0,176,160Zm0-128a24,24,0,1,1-24,24A24,24,0,0,1,176,32ZM64,152a24,24,0,1,1,24-24A24,24,0,0,1,64,152Zm112,72a24,24,0,1,1,24-24A24,24,0,0,1,176,224Z`}))],[`thin`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M176,164a36,36,0,0,0-27.92,13.3L96.25,144a35.92,35.92,0,0,0,0-32L148.08,78.7A35.93,35.93,0,1,0,143.75,72L91.92,105.3a36,36,0,1,0,0,45.4L143.75,184A36,36,0,1,0,176,164Zm0-136a28,28,0,1,1-28,28A28,28,0,0,1,176,28ZM64,156a28,28,0,1,1,28-28A28,28,0,0,1,64,156Zm112,72a28,28,0,1,1,28-28A28,28,0,0,1,176,228Z`}))]]),Wz=(0,G.createContext)({color:`currentColor`,size:`1em`,weight:`regular`,mirrored:!1}),Gz=G.forwardRef((e,t)=>{let{alt:n,color:r,size:i,weight:a,mirrored:o,children:s,weights:c,...l}=e,{color:u=`currentColor`,size:d,weight:f=`regular`,mirrored:p=!1,...m}=G.useContext(Wz);return G.createElement(`svg`,{ref:t,xmlns:`http://www.w3.org/2000/svg`,width:i??d,height:i??d,fill:r??u,viewBox:`0 0 256 256`,transform:o||p?`scale(-1, 1)`:void 0,...m,...l},!!n&&G.createElement(`title`,null,n),s,c.get(a??f))});Gz.displayName=`IconBase`;var Kz=G.forwardRef((e,t)=>G.createElement(Gz,{ref:t,...e,weights:Bz}));Kz.displayName=`ArrowClockwiseIcon`;var qz=Kz,Jz=G.forwardRef((e,t)=>G.createElement(Gz,{ref:t,...e,weights:Vz}));Jz.displayName=`FlowArrowIcon`;var Yz=Jz,Xz=G.forwardRef((e,t)=>G.createElement(Gz,{ref:t,...e,weights:Hz}));Xz.displayName=`MagnifyingGlassIcon`;var Zz=Xz,Qz=G.forwardRef((e,t)=>G.createElement(Gz,{ref:t,...e,weights:Uz}));Qz.displayName=`ShareNetworkIcon`;var $z=Qz,eB=s((e=>{function t(e,t){var n=e.length;e.push(t);a:for(;0>>1,a=e[r];if(0>>1;ri(c,n))li(u,c)?(e[r]=u,e[l]=n,r=l):(e[r]=c,e[s]=n,r=s);else if(li(u,n))e[r]=u,e[l]=n,r=l;else break a}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return n===0?e.id-t.id:n}if(e.unstable_now=void 0,typeof performance==`object`&&typeof performance.now==`function`){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var c=[],l=[],u=1,d=null,f=3,p=!1,m=!1,h=!1,g=!1,_=typeof setTimeout==`function`?setTimeout:null,v=typeof clearTimeout==`function`?clearTimeout:null,y=typeof setImmediate<`u`?setImmediate:null;function b(e){for(var i=n(l);i!==null;){if(i.callback===null)r(l);else if(i.startTime<=e)r(l),i.sortIndex=i.expirationTime,t(c,i);else break;i=n(l)}}function x(e){if(h=!1,b(e),!m)if(n(c)!==null)m=!0,S||(S=!0,O());else{var t=n(l);t!==null&&te(x,t.startTime-e)}}var S=!1,C=-1,w=5,T=-1;function E(){return g?!0:!(e.unstable_now()-Tt&&E());){var o=d.callback;if(typeof o==`function`){d.callback=null,f=d.priorityLevel;var s=o(d.expirationTime<=t);if(t=e.unstable_now(),typeof s==`function`){d.callback=s,b(t),i=!0;break b}d===n(c)&&r(c),b(t)}else r(c);d=n(c)}if(d!==null)i=!0;else{var u=n(l);u!==null&&te(x,u.startTime-t),i=!1}}break a}finally{d=null,f=a,p=!1}}}finally{i?O():S=!1}}}var O;if(typeof y==`function`)O=function(){y(D)};else if(typeof MessageChannel<`u`){var k=new MessageChannel,ee=k.port2;k.port1.onmessage=D,O=function(){ee.postMessage(null)}}else O=function(){_(D,0)};function te(t,n){C=_(function(){t(e.unstable_now())},n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_forceFrameRate=function(e){0>e||125o?(r.sortIndex=a,t(l,r),n(c)===null&&r===n(l)&&(h?(v(C),C=-1):h=!0,te(x,a-o))):(r.sortIndex=s,t(c,r),m||p||(m=!0,S||(S=!0,O()))),r},e.unstable_shouldYield=E,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}})),tB=s(((e,t)=>{t.exports=eB()})),nB=s((e=>{var t=tB(),n=IN(),r=mP();function i(e){var t=`https://react.dev/errors/`+e;if(1N||(e.current=M[N],M[N]=null,N--)}function F(e,t){N++,M[N]=e.current,e.current=t}var ae=P(null),oe=P(null),se=P(null),ce=P(null);function I(e,t){switch(F(se,t),F(oe,e),F(ae,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Xd(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Xd(t),e=Zd(t,e);else switch(e){case`svg`:e=1;break;case`math`:e=2;break;default:e=0}}ie(ae),F(ae,e)}function L(){ie(ae),ie(oe),ie(se)}function le(e){e.memoizedState!==null&&F(ce,e);var t=ae.current,n=Zd(t,e.type);t!==n&&(F(oe,e),F(ae,n))}function ue(e){oe.current===e&&(ie(ae),ie(oe)),ce.current===e&&(ie(ce),sp._currentValue=re)}var de,fe;function pe(e){if(de===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);de=t&&t[1]||``,fe=-11||n>0&&!e.noHeader;return I(e.blocks,function(e){var n=ev(e);n>=t&&(t=n+ +(r&&(!n||Q_(e)&&!e.noHeader)))}),t}return 0}function tv(e,t,n,r){var i=t.noHeader,a=iv(ev(t)),o=[],s=t.blocks||[];Oe(!s||R(s)),s||=[];var c=e.orderMode;if(t.sortBlocks&&c){s=s.slice();var l={valueAsc:`asc`,valueDesc:`desc`};if(Be(l,c)){var u=new Sm(l[c],null);s.sort(function(e,t){return u.evaluate(e.sortParam,t.sortParam)})}else c===`seriesDesc`&&s.reverse()}I(s,function(n,i){var s=t.valueFormatter,c=$_(n)(s?P(P({},e),{valueFormatter:s}):e,n,i>0?a.html:0,r);c!=null&&o.push(c)});var d=e.renderMode===`richText`?o.join(a.richText):av(r,o.join(``),i?n:a.html);if(i)return d;var f=Jg(t.header,`ordinal`,e.useUTC),p=J_(r,e.renderMode).nameStyle,m=q_(r);return e.renderMode===`richText`?cv(e,f,p)+a.richText+d:av(r,`
`+Gh(f)+`
`+d,n)}function nv(e,t,n,r){var i=e.renderMode,a=t.noName,o=t.noValue,s=!t.markerType,c=t.name,l=e.useUTC,u=t.valueFormatter||e.valueFormatter||function(e){return e=R(e)?e:[e],L(e,function(e,t){return Jg(e,R(p)?p[t]:p,l)})};if(!(a&&o)){var d=s?``:e.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||H.color.secondary,i),f=a?``:Jg(c,`ordinal`,l),p=t.valueType,m=o?[]:u(t.value,t.rawDataIndex),h=!s||!a,g=!s&&a,_=J_(r,i),v=_.nameStyle,y=_.valueStyle;return i===`richText`?(s?``:d)+(a?``:cv(e,f,v))+(o?``:lv(e,m,h,g,y)):av(r,(s?``:d)+(a?``:ov(f,!s,v))+(o?``:sv(m,h,g,y)),n)}}function rv(e,t,n,r,i,a){if(e)return $_(e)({useUTC:i,renderMode:n,orderMode:r,markupStyleCreator:t,valueFormatter:e.valueFormatter},e,0,a)}function iv(e){return{html:Y_[e],richText:X_[e]}}function av(e,t,n){var r=`
`,i=`margin: `+n+`px 0 0`,a=q_(e);return`
`+t+r+`
`}function ov(e,t,n){var r=t?`margin-left:2px`:``;return``+Gh(e)+``}function sv(e,t,n,r){var i=t?`float:right;margin-left:`+(n?`10px`:`20px`):``;return e=R(e)?e:[e],``+L(e,function(e){return Gh(e)}).join(`  `)+``}function cv(e,t,n){return e.markupStyleCreator.wrapRichTextStyle(t,n)}function lv(e,t,n,r,i){var a=[i],o=r?10:20;return n&&a.push({padding:[0,0,0,o],align:`right`}),e.markupStyleCreator.wrapRichTextStyle(R(t)?t.join(` `):t,a)}function uv(e,t){var n=e.getData().getItemVisual(t,`style`)[e.visualDrawType];return Qg(n)}function dv(e,t){return e.get(`padding`)??(t===`richText`?[8,10]:10)}var fv=function(){function e(){this.richTextStyles={},this._nextStyleNameId=Qs()}return e.prototype._generateStyleName=function(){return`__EC_aUTo_`+this._nextStyleNameId++},e.prototype.makeTooltipMarker=function(e,t,n){var r=n===`richText`?this._generateStyleName():null,i=eee({color:t,type:e,renderMode:n,markerId:r});return z(i)?i:(this.richTextStyles[r]=i.style,i.content)},e.prototype.wrapRichTextStyle=function(e,t){var n={};R(t)?I(t,function(e){return P(n,e)}):P(n,t);var r=this._generateStyleName();return this.richTextStyles[r]=n,`{`+r+`|`+e+`}`},e}();function pv(e){var t=e.series,n=e.dataIndex,r=e.multipleSeries,i=t.getData(),a=i.mapDimensionsAll(`defaultedTooltip`),o=a.length,s=t.getRawValue(n),c=R(s),l=uv(t,n),u,d,f,p;if(o>1||c&&!o){var m=mv(s,t,n,a,l);u=m.inlineValues,d=m.inlineValueTypes,f=m.blocks,p=m.inlineValues[0]}else if(o){var h=i.getDimensionInfo(a[0]);p=u=pm(i,n,a[0]),d=h.type}else p=u=c?s[0]:s;var g=Tc(t),_=g&&t.name||``,v=i.getName(n),y=r?_:v;return Z_(`section`,{header:_,noHeader:r||!g,sortParam:p,blocks:[Z_(`nameValue`,{markerType:`item`,markerColor:l,name:y,noName:!ke(y),value:u,valueType:d,rawDataIndex:i.getRawIndex(n)})].concat(f||[])})}function mv(e,t,n,r,i){var a=t.getData(),o=le(e,function(e,t,n){var r=a.getDimensionInfo(n);return e||=r&&r.tooltip!==!1&&r.displayName!=null},!1),s=[],c=[],l=[];r.length?I(r,function(e){u(pm(a,n,e),e)}):I(e,u);function u(e,t){var n=a.getDimensionInfo(t);!n||n.otherDims.tooltip===!1||(o?l.push(Z_(`nameValue`,{markerType:`subItem`,markerColor:i,name:n.displayName,value:e,valueType:n.type})):(s.push(e),c.push(n.type)))}return{inlineValues:s,inlineValueTypes:c,blocks:l}}var hv=jc();function gv(e,t){return e.getName(t)||e.getId(t)}var _v=function(e){p(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t._selectedDataIndicesMap={},t}return t.prototype.init=function(e,t,n){this.seriesIndex=this.componentIndex,this.dataTask=E_({count:bv,reset:xv}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(e,n),(hv(this).sourceManager=new B_(this)).prepareSource();var r=this.getInitialData(e,n);Cv(r,this),this.dataTask.context.data=r,hv(this).dataBeforeProcessed=r,vv(this),this._initSelectedMapFromData(r)},t.prototype.mergeDefaultAndTheme=function(e,t){var n=u_(this),r=n?f_(e):{},i=this.subType;h_.hasClass(i)&&(i+=`Series`),N(e,t.getTheme().get(this.subType)),N(e,this.getDefaultOption()),dc(e,`label`,[`show`]),this.fillDataTextStyle(e.data),n&&d_(e,r,n)},t.prototype.mergeOption=function(e,t){e=N(this.option,e,!0),this.fillDataTextStyle(e.data);var n=u_(this);n&&d_(this.option,e,n);var r=hv(this).sourceManager;r.dirty(),r.prepareSource();var i=this.getInitialData(e,t);Cv(i,this),this.dataTask.dirty(),this.dataTask.context.data=i,hv(this).dataBeforeProcessed=i,vv(this),this._initSelectedMapFromData(i)},t.prototype.fillDataTextStyle=function(e){if(e&&!be(e))for(var t=[`show`],n=0;n=0&&u<0)&&(l=v,u=_,d=0),_===u&&(c[d++]=m))}return c.length=d,c},t.prototype.formatTooltip=function(e,t,n){return pv({series:this,dataIndex:e,multipleSeries:t})},t.prototype.isAnimationEnabled=function(){var e=this.ecModel;if(We.node&&!(e&&e.ssr))return!1;var t=this.getShallow(`animation`);return t&&this.getData().count()>this.getShallow(`animationThreshold`)&&(t=!1),!!t},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(e,t,n){var r=this.ecModel,i=v_.prototype.getColorFromPalette.call(this,e,t,n);return i||=r.getColorFromPalette(e,t,n),i},t.prototype.coordDimToDataDim=function(e){return this.getRawData().mapDimensionsAll(e)},t.prototype.getProgressive=function(){return this.get(`progressive`)},t.prototype.getProgressiveThreshold=function(){return this.get(`progressiveThreshold`)},t.prototype.select=function(e,t){this._innerSelect(this.getData(t),e)},t.prototype.unselect=function(e,t){var n=this.option.selectedMap;if(n){var r=this.option.selectedMode,i=this.getData(t);if(r===`series`||n===`all`){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var a=0;a=0&&n.push(i)}return n},t.prototype.isSelected=function(e,t){var n=this.option.selectedMap;if(!n)return!1;var r=this.getData(t);return(n===`all`||n[gv(r,e)])&&!r.getItemModel(e).get([`select`,`disabled`])},t.prototype.isUniversalTransitionEnabled=function(){if(this.__universalTransitionEnabled)return!0;var e=this.option.universalTransition;return e?e===!0||e&&e.enabled:!1},t.prototype._innerSelect=function(e,t){var n,r,i=this.option,a=i.selectedMode,o=t.length;if(!(!a||!o)){if(a===`series`)i.selectedMap=`all`;else if(a===`multiple`){B(i.selectedMap)||(i.selectedMap={});for(var s=i.selectedMap,c=0;c0&&this._innerSelect(e,t)}},t.registerClass=function(e){return h_.registerClass(e)},t.protoInitialize=function(){var e=t.prototype;e.type=`series.__base__`,e.seriesIndex=0,e.ignoreStyleOnData=!1,e.hasSymbolVisual=!1,e.defaultSymbol=`circle`,e.visualStyleAccessPath=`itemStyle`,e.visualDrawType=`fill`}(),t}(h_);se(_v,w_),se(_v,v_),et(_v,h_);function vv(e){var t=e.name;Tc(e)||(e.name=yv(e)||t)}function yv(e){var t=e.getRawData(),n=t.mapDimensionsAll(`seriesName`),r=[];return I(n,function(e){var n=t.getDimensionInfo(e);n.displayName&&r.push(n.displayName)}),r.join(` `)}function bv(e){return e.model.getRawData().count()}function xv(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),Sv}function Sv(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function Cv(e,t){I(Re(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),function(n){e.wrapMethod(n,he(wv,t))})}function wv(e,t){var n=Tv(e);return n&&n.setOutputEnd((t||this).count()),t}function Tv(e){var t=(e.ecModel||{}).scheduler,n=t&&t.getPipeline(e.uid);if(n){var r=n.currentTask;if(r){var i=r.agentStubMap;i&&(r=i.get(e.uid))}return r}}var nee=Lo.extend({type:`triangle`,shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var n=t.cx,r=t.cy,i=t.width/2,a=t.height/2;e.moveTo(n,r-a),e.lineTo(n+i,r+a),e.lineTo(n-i,r+a),e.closePath()}}),Ev={line:Dd,rect:Zo,roundRect:Zo,square:Zo,circle:Zu,diamond:Lo.extend({type:`diamond`,shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var n=t.cx,r=t.cy,i=t.width/2,a=t.height/2;e.moveTo(n,r-a),e.lineTo(n+i,r),e.lineTo(n,r+a),e.lineTo(n-i,r),e.closePath()}}),pin:Lo.extend({type:`pin`,shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var n=t.x,r=t.y,i=t.width/5*3,a=Math.max(i,t.height),o=i/2,s=o*o/(a-o),c=r-a+o+s,l=Math.asin(s/o),u=Math.cos(l)*o,d=Math.sin(l),f=Math.cos(l),p=o*.6,m=o*.7;e.moveTo(n-u,c+s),e.arc(n,c,o,Math.PI-l,Math.PI*2+l),e.bezierCurveTo(n+u-d*p,c+s+f*p,n,r-m,n,r),e.bezierCurveTo(n,r-m,n-u+d*p,c+s+f*p,n-u,c+s),e.closePath()}}),arrow:Lo.extend({type:`arrow`,shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var n=t.height,r=t.width,i=t.x,a=t.y,o=r/3*2;e.moveTo(i,a),e.lineTo(i+o,a+n),e.lineTo(i,a+n/4*3),e.lineTo(i-o,a+n),e.lineTo(i,a),e.closePath()}}),triangle:nee},Dv={line:function(e,t,n,r,i){i.x1=e,i.y1=t+r/2,i.x2=e+n,i.y2=t+r/2},rect:function(e,t,n,r,i){i.x=e,i.y=t,i.width=n,i.height=r},roundRect:function(e,t,n,r,i){i.x=e,i.y=t,i.width=n,i.height=r,i.r=Math.min(n,r)/4},square:function(e,t,n,r,i){var a=Math.min(n,r);i.x=e,i.y=t,i.width=a,i.height=a},circle:function(e,t,n,r,i){i.cx=e+n/2,i.cy=t+r/2,i.r=Math.min(n,r)/2},diamond:function(e,t,n,r,i){i.cx=e+n/2,i.cy=t+r/2,i.width=n,i.height=r},pin:function(e,t,n,r,i){i.x=e+n/2,i.y=t+r/2,i.width=n,i.height=r},arrow:function(e,t,n,r,i){i.x=e+n/2,i.y=t+r/2,i.width=n,i.height=r},triangle:function(e,t,n,r,i){i.cx=e+n/2,i.cy=t+r/2,i.width=n,i.height=r}},Ov={};I(Ev,function(e,t){Ov[t]=new e});var kv=Lo.extend({type:`symbol`,shape:{symbolType:``,x:0,y:0,width:0,height:0},calculateTextPosition:function(e,t,n){var r=kn(e,t,n),i=this.shape;return i&&i.symbolType===`pin`&&t.position===`inside`&&(r.y=n.y+n.height*.4),r},buildPath:function(e,t,n){var r=t.symbolType;if(r!==`none`){var i=Ov[r];i||=(r=`rect`,Ov[r]),Dv[r](t.x,t.y,t.width,t.height,i.shape),i.buildPath(e,i.shape,n)}}});function Av(e,t){if(this.type!==`image`){var n=this.style;this.__isEmptyBrush?(n.stroke=e,n.fill=t||H.color.neutral00,n.lineWidth=2):this.shape.symbolType===`line`?n.stroke=e:n.fill=e,this.markRedraw()}}function jv(e,t,n,r,i,a,o){var s=e.indexOf(`empty`)===0;s&&(e=e.substr(5,1).toLowerCase()+e.substr(6));var c=e.indexOf(`image://`)===0?gf(e.slice(8),new rn(t,n,r,i),o?`center`:`cover`):e.indexOf(`path://`)===0?hf(e.slice(7),{},new rn(t,n,r,i),o?`center`:`cover`):new kv({shape:{symbolType:e,x:t,y:n,width:r,height:i}});return c.__isEmptyBrush=s,c.setColor=Av,a&&c.setColor(a),c}function Mv(e){return R(e)||(e=[+e,+e]),[e[0]||0,e[1]||0]}function Nv(e,t){if(e!=null)return R(e)||(e=[e,e]),[js(e[0],t[0])||0,js(V(e[1],e[0]),t[1])||0]}function Pv(e,t){var n=e.mapDimensionsAll(`defaultedLabel`),r=n.length;if(r===1){var i=pm(e,t,n[0]);return i==null?null:i+``}if(r){for(var a=[],o=0;o0?+m:1;D.scaleX=this._sizeX*O,D.scaleY=this._sizeY*O,this.setSymbolScale(1),gu(this,u,d,f)},t.prototype.setSymbolScale=function(e){this.scaleX=this.scaleY=e},t.prototype.fadeOut=function(e,t,n){var r=this.childAt(0),i=ol(this).dataIndex,a=n&&n.animation;if(this.silent=r.silent=!0,n&&n.fadeLabel){var o=r.getTextContent();o&&tf(o,{style:{opacity:0}},t,{dataIndex:i,removeOpt:a,cb:function(){r.removeTextContent()}})}else r.removeTextContent();tf(r,{style:{opacity:0},scaleX:0,scaleY:0},t,{dataIndex:i,cb:e,removeOpt:a})},t.getSymbolSize=function(e,t){return Mv(e.getItemVisual(t,`symbolSize`))},t.getSymbolZ2=function(e,t){return e.getItemVisual(t,`z2`)},t}(Yu);function Iv(e,t){this.parent.drift(e,t)}function Lv(e,t,n,r){return t&&!isNaN(t[0])&&!isNaN(t[1])&&!(r&&r.isIgnore&&r.isIgnore(n))&&!(r&&r.clipShape&&!r.clipShape.contain(t[0],t[1]))&&e.getItemVisual(n,`symbol`)!==`none`}function Rv(e){return e!=null&&!B(e)&&(e={isIgnore:e}),e||{}}function zv(e){var t=e.hostModel,n=t.getModel(`emphasis`);return{emphasisItemStyle:n.getModel(`itemStyle`).getItemStyle(),blurItemStyle:t.getModel([`blur`,`itemStyle`]).getItemStyle(),selectItemStyle:t.getModel([`select`,`itemStyle`]).getItemStyle(),focus:n.get(`focus`),blurScope:n.get(`blurScope`),emphasisDisabled:n.get(`disabled`),hoverScale:n.get(`scale`),labelStatesModels:ip(t),cursorStyle:t.get(`cursor`)}}function Bv(e,t,n,r,i,a,o){var s=new e(t,n,r,i);return s.setPosition(a),t.setItemGraphicEl(n,s),o.add(s),s}var Vv=function(){function e(e){this.group=new Yu,this._SymbolCtor=e||Fv}return e.prototype.updateData=function(e,t){this._progressiveEls=null,t=Rv(t);var n=this.group,r=e.hostModel,i=this._data,a=this._SymbolCtor,o=t.disableAnimation,s=this._seriesScope=zv(e),c={disableAnimation:o},l=t.getSymbolPoint||function(t){return e.getItemLayout(t)};i||n.removeAll(),e.diff(i).add(function(r){var i=l(r);Lv(e,i,r,t)&&Bv(a,e,r,s,c,i,n)}).update(function(u,d){var f=i.getItemGraphicEl(d),p=l(u);if(!Lv(e,p,u,t)){n.remove(f);return}var m=e.getItemVisual(u,`symbol`)||`circle`,h=f&&f.getSymbolType&&f.getSymbolType();if(!f||h&&h!==m)n.remove(f),f=new a(e,u,s,c),f.setPosition(p);else{f.updateData(e,u,s,c);var g={x:p[0],y:p[1]};o?f.attr(g):Qd(f,g,r)}n.add(f),e.setItemGraphicEl(u,f)}).remove(function(e){var t=i.getItemGraphicEl(e);t&&t.fadeOut(function(){n.remove(t)},r)}).execute(),this._getSymbolPoint=l,this._data=e},e.prototype.updateLayout=function(e){var t=this._data;if(t)for(var n=this,r=t.getStore(),i=0,a=r.count();i=t[0]&&e<=t[1]},getExtent:function(){return this._extents[0].slice()},getExtentUnsafe:function(e){return this._extents[e]},setExtent:function(e,t){py(this._extents,0,e,t)},setExtent2:function(e,t,n){var r=this._extents;r[e]||(r[e]=r[0].slice()),py(r,e,t,n)},freeze:function(){}};function py(e,t,n,r){Jc(n,r)&&(e[t][0]=n,e[t][1]=r)}function my(e){return hy(e)||_y(e)}function hy(e){return e.type===`interval`}function gy(e){return e.type===`time`}function _y(e){return e.type===`log`}function vy(e){return e.type===`ordinal`}function yy(e){var t=qs(e),n=Ts(10,t),r=Ss(e/n);return r?r===2?r=3:r===3?r=5:r*=2:r=1,Is(r*n,-t)}function by(e){return Rs(e)+2}function xy(e,t){return Es(e)/Es(t)}function Sy(e,t,n){var r=n&&n.lookup;if(r){for(var i=0;i1&&a/o>2&&(i=Math.round(Math.ceil(i/o)*o)),i!==r[0]&&c(r[0],!0,!0);for(var s=i;s<=r[1];s+=o)c(s,!1,s===r[0]||s===r[1]);s-o!==r[1]&&c(r[1],!0,!0);function c(e,t,r){n({value:e,offInterval:t},r)}}var Dy=function(e){p(t,e);function t(n){var r=e.call(this)||this;r.type=`ordinal`,r.parse=t.parse,ay(r,t.decoratedMethods);var i=n.ordinalMeta;i||=new ty({}),R(i)&&(i=new ty({categories:L(i,function(e){return B(e)?e.value:e})})),r._ordinalMeta=i;var a=iy(null,null,n.extent||[0,i.categories.length-1]);return r._mapper=a.mapper,oy(r,a.mapper),r}return t.parse=function(e){return e==null?e=NaN:z(e)?(e=this._ordinalMeta.getOrdinal(e),e??=NaN):e=Ss(e),e},t.prototype.getTicks=function(){var e=[];return Ey(this,0,function(t){e.push(t)}),e},t.prototype.getMinorTicks=function(e){},t.prototype.setSortInfo=function(e){if(e==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var t=e.ordinalNumbers,n=this._ordinalNumbersByTick=[],r=this._ticksByOrdinalNumber=[],i=0,a=this._ordinalMeta.categories.length,o=ys(a,t.length);i=0&&e=0&&e=0&&eo[0]&&mi[1]||!isFinite(p)||!isFinite(i[1]))break}else{if(m>f)break;p=ys(p,i[1]),m===f&&(p=i[1])}if(l.push({value:p}),p=Is(p+n,a),s){var h=s.calcNiceTickMultiple(p,d);h>=0&&(p=Is(p+h*n,a))}if(l.length>0&&p===l[l.length-1].value)break;if(l.length>u)return[]}var g=l.length?l[l.length-1].value:i[1];return r[1]>g&&l.push({value:e.expandToNicedExtent?Is(g+n,a):r[1]}),c&&o.pruneTicksByBreak(e.pruneByBreak,l,s.breaks,function(e){return e.value},t.interval,r),c&&e.breakTicks!==`none`&&o.addBreaksToTicks(l,s.breaks,r),l},t.prototype.getMinorTicks=function(e){return Oy(this,e,sg(this),this._cfg.interval)},t.prototype.getLabel=function(e,t){if(e==null)return``;var n=t&&t.precision;return n==null?n=Rs(e.value)||0:n===`auto`&&(n=this._cfg.intervalPrecision),Gg(Is(e.value,n,!0))},t.type=`interval`,t}($v);$v.registerClass(ky);var Ay=function(e,t,n,r){for(;n>>1;e[i][1]16?16:e>7.5?7:e>3.5?4:e>1.5?2:1}function Fy(e){var t=30*fg;return e/=t,e>6?6:e>3?3:e>2?2:1}function Iy(e){return e/=dg,e>12?12:e>6?6:e>3.5?4:e>2?2:1}function Ly(e,t){return e/=t?ug:lg,e>30?30:e>20?20:e>15?15:e>10?10:e>5?5:e>2?2:1}function Ry(e){return bs(Js(e,!0),1)}function zy(e,t,n){var r=Math.max(0,ae(yg,t)-1);return Ag(new Date(e),yg[r],n).getTime()}function By(e,t){var n=new Date(0);n[e](1);var r=n.getTime();n[e](1+t);var i=n.getTime()-r;return function(e,t){return Math.max(0,Math.round((t-e)/i))}}function Vy(e,t,n,r,i,a){var o=bg,s=0;function c(e,t,n,i,o,c,l){for(var u=By(o,e),d=t,f=new Date(d);d3e3));)if(f[o](f[i]()+e),d=f.getTime(),a){var p=a.calcNiceTickMultiple(d,u);p>0&&(f[o](f[i]()+p*e),d=f.getTime())}l.push({value:d,notAdd:d>r[1]})}function l(e,i,a){var o=[],s=!i.length;if(!Ny(wg(e),r[0],r[1],n)){s&&(i=[{value:zy(r[0],e,n)},{value:r[1]}]);for(var l=0;l=r[0]&&u<=r[1]&&c(f,u,d,p,m,h,o),e===`year`&&a.length>1&&l===0&&a.unshift({value:a[0].value-f})}}for(var l=0;l=r[0]&&v<=r[1]&&f++)}var y=i/t;if(f>y*1.5&&p>y/1.5||(u.push(g),f>y||e===o[m]))break}d=[]}}for(var b=ue(L(u,function(e){return ue(e,function(e){return e.value>=r[0]&&e.value<=r[1]&&!e.notAdd})}),function(e){return e.length>0}),x=b.length-1,S=[],m=0;mr[0])&&S.unshift({value:r[0],time:{level:0,upperTimeUnit:O,lowerTimeUnit:O},notNice:!0}),(!D||D.values&&(a=s);var c=My.length,l=Math.min(Ay(My,a,0,c),c-1),u=My[l][1],d=My[Math.max(l-1,0)][0];e.setTimeInterval({approxInterval:a,interval:u,minLevelUnit:d})};$v.registerClass(jy);var Uy=0,Wy=1,Gy=2,Ky=function(e){p(t,e);function t(n){var r=e.call(this)||this;r.type=`log`,r.parse=ky.parse,r.base=n.logBase||10;var i=[],a=[],o=r._lookup={from:i,to:a};i[Uy]=i[Wy]=a[Uy]=a[Wy]=NaN,ay(r,t.mapperMethods);var s=ag(),c=n.breakOption,l={lookup:o};return s&&s.parseAxisBreakOptionInwardTransform(c,r,{noNegative:!0},Gy,l),r.powStub=new ky({breakParsed:l.original}),r.intervalStub=new ky({breakParsed:l.transformed}),oy(r,r.intervalStub),r}return t.prototype.getTicks=function(e){var t=this.base,n=this.powStub,r=ag(),i=this.intervalStub,a={lookup:{from:i.getExtent(),to:n.getExtent()}};return L(i.getTicks(e||{}),function(e){var i=e.value,o=Sy(i,t,a),s;if(r){var c=r.getTicksBreakOutwardTransform(this,e,sg(n),this._lookup);c&&(s=c.vBreak,o=c.tickVal)}return{value:o,break:s}},this)},t.prototype.getMinorTicks=function(e){return Oy(this,e,sg(this.powStub),this.intervalStub.getConfig().interval)},t.prototype.getLabel=function(e,t){return this.intervalStub.getLabel(e,t)},t.type=`log`,t.mapperMethods={needTransform:function(){return!0},normalize:function(e){return this.intervalStub.normalize(xy(e,this.base))},scale:function(e){return Sy(this.intervalStub.scale(e),this.base,null)},transformIn:function(e,t){return e=xy(e,this.base),t&&t.depth===2?e:this.intervalStub.transformIn(e,t)},transformOut:function(e,t){var n=t?t.depth:null;return qy.depth=n,Jy.lookup=this._lookup,Sy(n===2?e:this.intervalStub.transformOut(e,qy),this.base,Jy)},contain:function(e){return this.powStub.contain(e)},setExtent:function(e,t){this.setExtent2(0,e,t)},setExtent2:function(e,t,n){if(!(!Jc(t,n)||t<=0||n<=0)){var r=Yy,i=Yy;if(e===0){var a=this._lookup;r=a.to,i=a.from}this.powStub.setExtent2(e,r[Uy]=t,r[Wy]=n);var o=this.base;this.intervalStub.setExtent2(e,i[Uy]=xy(t,o),i[Wy]=xy(n,o))}},getFilter:function(){return{g:0}},sanitize:function(e,t){return Jc(t[0],t[1])&&tc(e)&&e<=0&&(e=t[0]),e},getDefaultStartValue:function(){return 1},getExtent:function(){return this.powStub.getExtent()},getExtentUnsafe:function(e,t){return t===null?this.powStub.getExtentUnsafe(e,null):this.intervalStub.getExtentUnsafe(e,t)}},t}($v);$v.registerClass(Ky);var qy={},Jy={},Yy=[],Xy={value:1,category:1,time:1,log:1},Zy=jc();function Qy(e){var t=e.get(`type`);return(t==null||!Be(Xy,t)&&!$v.getClass(t))&&(t=`value`),t}function $y(e,t,n){var r=ag(),i;switch(r&&(i=ub(e,t,n)),t){case`category`:return new Dy({ordinalMeta:e.getOrdinalMeta?e.getOrdinalMeta():e.getCategories(),extent:Hc()});case`time`:return new jy({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get(`useUTC`),breakOption:i});case`log`:return new Ky({logBase:e.get(`logBase`),breakOption:i});case`value`:return new ky({breakOption:i});default:return new(($v.getClass(t))||ky)({})}}function eb(e,t,n){var r=n?cy(e,null):e.getExtentUnsafe(0,null),i=r[0],a=r[1];return Jc(i,a)?i===t||a===t?2:it?1:3:3}function tb(e){Zy(e).noOnMyZero=!0}function nb(e){return Zy(e).noOnMyZero}function rb(e){var t=e.getLabelModel().get(`formatter`);if(e.type===`time`){var n=xg(t);return function(t,r){return e.scale.getFormattedLabel(t,r,n)}}if(z(t))return function(n){var r=e.scale.getLabel(n);return t.replace(`{value}`,r??``)};if(ge(t)){if(e.type===`category`)return function(n,r){return t(ib(e,n),n.value-e.scale.getExtent()[0],null)};var r=ag();return function(n,i){var a=null;return r&&(a=r.makeAxisLabelFormatterParamBreak(a,n.break)),t(ib(e,n),i,a)}}return function(t){return e.scale.getLabel(t)}}function ib(e,t){var n=e.scale;return vy(n)?n.getLabel(t):t.value}function ab(e){return e.get(`interval`)??`auto`}function ob(e){return e.type===`category`&&ab(e.getLabelModel())===0}function sb(e,t){var n={};return I(e.mapDimensionsAll(t),function(t){n[xh(e,t)]=!0}),fe(n)}function cb(e){return e===`middle`||e===`center`}function lb(e){return e.getShallow(`show`)}function ub(e,t,n){var r=e.get(`breaks`,!0);if(r!=null)return!ag()||!n||!db(t)?void 0:r}function db(e){return e!==`category`}function fb(e,t,n,r,i,a){var o=_y(e),s=o?e.intervalStub:e;if(s.setExtent(r[0],r[1]),o){var c=e.powStub,l={depth:2},u=e.transformOut(r[0],l),d=e.transformOut(r[1],l),f=wy(n,r);t[0]&&!f[0]&&(u=i[0]),t[1]&&!f[1]&&(d=i[1]),c.setExtent(u,d)}s.setConfig(a)}function pb(e,t){return vy(e)?e.getRawOrdinalNumber(t.value):t.value}function mb(e,t){return vy(e)&&!!t.get(`boundaryGap`)}var hb=jc(),gb=jc(),_b={estimate:1,determine:2};function vb(e){return{out:{noPxChangeTryDetermine:[]},kind:e}}function yb(e,t){var n=e.getLabelModel().get(`customValues`);if(n){var r=e.scale;return{labels:L(xb(n,r),function(t,n){return{formattedLabel:rb(e)(t,n),rawLabel:r.getLabel(t),tick:t}})}}return e.type===`category`?Sb(e,t):Tb(e)}function bb(e,t,n){var r=e.scale,i=e.getTickModel().get(`customValues`);return i?{ticks:xb(i,r)}:e.type===`category`?wb(e,t):{ticks:r.getTicks(n)}}function xb(e,t){var n=t.getExtent(),r=[];return I(e,function(e){e=t.parse(e),e>=n[0]&&e<=n[1]&&r.push(e)}),$c(r,tl,null),Ls(r),L(r,function(e){return{value:e}})}function Sb(e,t){var n=e.getLabelModel(),r=Cb(e,n,t);return!n.get(`show`)||e.scale.isBlank()?{labels:[]}:r}function Cb(e,t,n){var r=Db(e),i=ab(t),a=n.kind===_b.estimate;if(!a){var o=kb(r,i);if(o)return o}var s,c;ge(i)?s=Ib(e,i,!1):(c=i===`auto`?jb(e,n):i,s=Ib(e,c,!1));var l={labels:s,labelCategoryInterval:c};return a?n.out.noPxChangeTryDetermine.push(function(){return Ab(r,i,l),!0}):Ab(r,i,l),l}function wb(e,t){var n=Eb(e),r=ab(t),i=kb(n,r);if(i)return i;var a,o;if((!t.get(`show`)||e.scale.isBlank())&&(a=[]),ge(r))a=Ib(e,r,!0);else if(r===`auto`){var s=Cb(e,e.getLabelModel(),vb(_b.determine));o=s.labelCategoryInterval,a=L(s.labels,function(e){return e.tick})}else o=r,a=Ib(e,o,!0);return Ab(n,r,{ticks:a,tickCategoryInterval:o})}function Tb(e){var t=e.scale.getTicks(),n=rb(e);return{labels:L(t,function(t,r){return{formattedLabel:n(t,r),rawLabel:e.scale.getLabel(t),tick:t}})}}var Eb=Ob(`axisTick`),Db=Ob(`axisLabel`);function Ob(e){return function(t){return gb(t)[e]||(gb(t)[e]={list:[]})}}function kb(e,t){for(var n=0;nu&&(l=Math.max(1,Math.floor(c/u)));for(var d=s[0],f=e.dataToCoord(d+1)-e.dataToCoord(d),p=Math.abs(f*Math.cos(a)),m=Math.abs(f*Math.sin(a)),h=0,g=0;d<=s[1];d+=l){var _=0,v=0,y=wn(i({value:d}),r.font,`center`,`top`);_=y.width*1.3,v=y.height*1.3,h=Math.max(h,_,7),g=Math.max(g,v,7)}var b=h/p,x=g/m;isNaN(b)&&(b=1/0),isNaN(x)&&(x=1/0);var S=Math.max(0,Math.floor(Math.min(b,x)));return n===_b.estimate?(t.out.noPxChangeTryDetermine.push(me(Nb,null,e,S,c)),S):Pb(e,S,c)??S}function Nb(e,t,n){return Pb(e,t,n)==null}function Pb(e,t,n){var r=hb(e.model),i=e.getExtent(),a=r.lastAutoInterval,o=r.lastTickCount;if(a!=null&&o!=null&&Math.abs(a-t)<=1&&Math.abs(o-n)<=1&&a>t&&r.axisExtent0===i[0]&&r.axisExtent1===i[1])return a;r.lastTickCount=n,r.lastAutoInterval=t,r.axisExtent0=i[0],r.axisExtent1=i[1]}function Fb(e){var t=e.getLabelModel();return{axisRotate:e.getRotate?e.getRotate():e.isHorizontal&&!e.isHorizontal()?90:0,labelRotate:t.get(`rotate`)||0,font:t.getFont()}}function Ib(e,t,n){var r=rb(e),i=e.scale,a=[],o=ge(t);return Ey(i,o?0:t,function(e,s){var c=i.getLabel(e);if(o){var l=!!t(e.value,c);if(e.offInterval=!l,!l&&!s)return}a.push(n?e:{formattedLabel:r(e),rawLabel:c,tick:e})}),a}var Lb=jc();function Rb(e){Lb(e).prepare={}}function zb(e){Lb(e).fullUpdate={}}function Bb(e){return Lb(e).fullUpdate}Zc();var Vb=jc();jc();function Hb(e,t){var n=e.model,r=Vb(Bb(n.ecModel)).keyed,i=r&&r.get(t);return i&&i.get(n.uid)}function Ub(e,t){return Kb(Hb(e,t))}function Wb(e,t){var n=[];return Gb(e.model.ecModel,function(e){for(var r=0;r0?(t>o&&(o=t),a=!1):t===-2&&(a=!0))}),tc(n)&&n>0&&tc(o)?(e.w=r/n*o,e.w2=o):a&&(e.w=r*$b,e.w2=e.w*n/r)}var rx=[0,1],ix=function(){function e(e,t,n){this.onBand=!1,this.inverse=!1,this.dim=e,this.scale=t,this._extent=n||[0,0]}return e.prototype.contain=function(e){var t=this._extent,n=Math.min(t[0],t[1]),r=Math.max(t[0],t[1]);return e>=n&&e<=r},e.prototype.containData=function(e){return this.scale.contain(this.scale.parse(e))},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.setExtent=function(e,t){var n=this._extent;n[0]=e,n[1]=t},e.prototype.dataToCoord=function(e,t){var n=this.scale;return e=n.normalize(n.parse(e)),As(e,rx,ax(this),t)},e.prototype.coordToData=function(e,t){var n=As(e,ax(this),rx,t);return this.scale.scale(n)},e.prototype.pointToData=function(e,t){},e.prototype.getTicksCoords=function(e){e||={};var t=e.tickModel||this.getTickModel(),n=L(bb(this,t,{breakTicks:e.breakTicks,pruneByBreak:e.pruneByBreak}).ticks,function(e){return{coord:this.dataToCoord(pb(this.scale,e)),tick:e}},this),r=t.get(`alignWithLabel`),i=ox(this,n,r);return L(n,function(e){return{coord:e.coord,tickValue:e.tick.value,onBand:i}})},e.prototype.getMinorTicksCoords=function(){if(vy(this.scale))return[];var e=this.model.getModel(`minorTick`).get(`splitNumber`);return e>0&&e<100||(e=5),L(this.scale.getMinorTicks(e),function(e){return L(e,function(e){return{coord:this.dataToCoord(e),tickValue:e}},this)},this)},e.prototype.getViewLabels=function(e){return e||=vb(_b.determine),yb(this,e).labels},e.prototype.getLabelModel=function(){return this.model.getModel(`axisLabel`)},e.prototype.getTickModel=function(){return this.model.getModel(`axisTick`)},e.prototype.getBandWidth=function(){return ex(this,{min:1}).w},e.prototype.calculateCategoryInterval=function(e){return e||=vb(_b.determine),Mb(this,e)},e}();function ax(e){var t=e.getExtent();if(e.onBand){var n=(t[1]-t[0])/e.scale.count()/2;t[0]+=n,t[1]-=n}return t}function ox(e,t,n){var r=t.length;if(!e.onBand||n||!r)return!1;var i=ex(e).w;if(!i)return!1;I(t,function(e){e.coord-=i/2});var a=e.scale.getExtent(),o=t[r-1];return o.tick.offInterval&&t.pop(),t.push({coord:o.coord+i,tick:{value:a[1]+1}}),!0}var sx=function(e){p(t,e);function t(t,n,r,i,a){var o=e.call(this,t,n,r)||this;return o.index=0,o.type=i||`value`,o.position=a||`bottom`,o}return t.prototype.isHorizontal=function(){var e=this.position;return e===`top`||e===`bottom`},t.prototype.getGlobalExtent=function(e){var t=this.getExtent();return t[0]=this.toGlobalCoord(t[0]),t[1]=this.toGlobalCoord(t[1]),e&&t[0]>t[1]&&t.reverse(),t},t.prototype.pointToData=function(e,t){return this.coordToData(this.toLocalCoord(e[this.dim===`x`?0:1]),t)},t.prototype.setCategorySortInfo=function(e){if(this.type!==`category`)return!1;this.model.option.categorySortInfo=e,this.scale.setSortInfo(e)},t}(ix),cx=[`label`,`labelLine`,`layoutOption`,`priority`,`defaultAttr`,`marginForce`,`minMarginForce`,`marginDefault`,`suggestIgnore`],lx=1,ux=2,dx=lx|ux;function fx(e,t,n){n||=dx,t?e.dirty|=n:e.dirty&=~n}function px(e,t){return t||=dx,e.dirty==null||!!(e.dirty&t)}function mx(e){if(e)return px(e)&&hx(e,e.label,e),e}function hx(e,t,n){var r=t.getComputedTransform();e.transform=Gf(e.transform,r);var i=e.localRect=Wf(e.localRect,t.getBoundingRect()),a=t.style,o=a.margin,s=n&&n.marginForce,c=n&&n.minMarginForce,l=n&&n.marginDefault,u=a.__marginType;u==null&&l&&(o=l,u=hp.textMargin);for(var d=0;d<4;d++)gx[d]=u===hp.minMargin&&c&&c[d]!=null?c[d]:s&&s[d]!=null?s[d]:o?o[d]:0;u===hp.textMargin&&If(i,gx,!1,!1);var f=e.rect=Wf(e.rect,i);return r&&f.applyTransform(r),u===hp.minMargin&&If(f,gx,!1,!1),e.axisAligned=Hf(r),(e.label=e.label||{}).ignore=t.ignore,fx(e,!1),fx(e,!0,ux),e}var gx=[0,0,0,0];function _x(e,t,n){return e.transform=Gf(e.transform,n),e.localRect=Wf(e.localRect,t),e.rect=Wf(e.rect,t),n&&e.rect.applyTransform(n),e.axisAligned=Hf(n),e.obb=void 0,(e.label=e.label||{}).ignore=!1,e}function vx(e,t){if(e){e.label.x+=t.x,e.label.y+=t.y,e.label.markRedraw();var n=e.transform;n&&(n[4]+=t.x,n[5]+=t.y);var r=e.rect;r&&(r.x+=t.x,r.y+=t.y);var i=e.obb;i&&i.fromBoundingRect(e.localRect,n)}}function yx(e,t){for(var n=0;n.1?`x`:`y`,u=a.transGroup[l];if(o.sort(function(e,t){return Math.abs(e.label[l]-u)-Math.abs(t.label[l]-u)}),c&&s){var d=i.getExtent(),f=Math.min(d[0],d[1]),p=Math.max(d[0],d[1])-f;s.union(new rn(f,0,p,1))}a.stOccupiedRect=s,a.labelInfoList=o}var Px=_t(),Fx=new rn(0,0,0,0),Ix=function(e,t,n,r,i,a){if(cb(e.nameLocation)){var o=a.stOccupiedRect;o&&Lx(_x({},o,a.transGroup.transform),r,i)}else Rx(a.labelInfoList,a.dirVec,r,i)};function Lx(e,t,n){var r=new Ut;Sx(e,t,r,{direction:Math.atan2(n.y,n.x),bidirectional:!1,touchThreshold:.05})&&vx(t,r)}function Rx(e,t,n,r){for(var i=Ut.dot(r,t)>=0,a=0,o=e.length;a0?`top`:`bottom`,i=`center`):Us(r-Dx)?(a=n>0?`bottom`:`top`,i=`center`):(a=`middle`,i=r>0&&r0?`right`:`left`:n>0?`left`:`right`),{rotation:r,textAlign:i,textVerticalAlign:a}},e.makeAxisEventDataBase=function(e){var t={componentType:e.mainType,componentIndex:e.componentIndex};return t[e.mainType+`Index`]=e.componentIndex,t},e.isLabelSilent=function(e){var t=e.get(`tooltip`);return e.get(`silent`)||!(e.get(`triggerEvent`)||t&&t.show)},e}(),Bx=[`axisLine`,`axisTickLabelEstimate`,`axisTickLabelDetermine`,`axisName`],Vx={axisLine:function(e,t,n,r,i,a,o){var s=r.get([`axisLine`,`show`]);if(s===`auto`&&(s=!0,e.raw.axisLineAutoShow!=null&&(s=!!e.raw.axisLineAutoShow)),s){var c=r.axis.getExtent(),l=a.transform,u=[c[0],0],d=[c[1],0],f=u[0]>d[0];l&&(Bt(u,u,l),Bt(d,d,l));var p=P({lineCap:`round`},r.getModel([`axisLine`,`lineStyle`]).getLineStyle()),m={strokeContainThreshold:e.raw.strokeContainThreshold||5,silent:!0,z2:1,style:p};if(r.get([`axisLine`,`breakLine`])&&cg(r.axis.scale))Tx().buildAxisBreakLine(r,i,a,m);else{var h=new Dd(P({shape:{x1:u[0],y1:u[1],x2:d[0],y2:d[1]}},m));bf(h.shape,h.style.lineWidth),h.anid=`line`,i.add(h)}var g=r.get([`axisLine`,`symbol`]);if(g!=null){var _=r.get([`axisLine`,`symbolSize`]);z(g)&&(g=[g,g]),(z(_)||ve(_))&&(_=[_,_]);var v=Nv(r.get([`axisLine`,`symbolOffset`])||0,_),y=_[0],b=_[1];I([{rotate:e.rotation+Math.PI/2,offset:v[0],r:0},{rotate:e.rotation-Math.PI/2,offset:v[1],r:Math.sqrt((u[0]-d[0])*(u[0]-d[0])+(u[1]-d[1])*(u[1]-d[1]))}],function(t,n){if(g[n]!==`none`&&g[n]!=null){var r=jv(g[n],-y/2,-b/2,y,b,p.stroke,!0),a=t.r+t.offset,o=f?d:u;r.attr({rotation:t.rotate,x:o[0]+a*Math.cos(e.rotation),y:o[1]-a*Math.sin(e.rotation),silent:!0,z2:11}),i.add(r)}})}}},axisTickLabelEstimate:function(e,t,n,r,i,a,o,s){Xx(t,i,s)&&Hx(e,t,n,r,i,a,o,_b.estimate)},axisTickLabelDetermine:function(e,t,n,r,i,a,o,s){Xx(t,i,s)&&Hx(e,t,n,r,i,a,o,_b.determine);var c=Jx(e,i,a,r);Gx(e,t.labelLayoutList,c),Yx(e,i,a,r,e.tickDirection)},axisName:function(e,t,n,r,i,a,o,s){var c=n.ensureRecord(r);t.nameEl&&=(i.remove(t.nameEl),c.nameLayout=c.nameLocation=null);var l=e.axisName;if(nS(l)){var u=e.nameLocation,d=e.nameDirection,f=r.getModel(`nameTextStyle`),p=r.get(`nameGap`)||0,m=r.axis.getExtent(),h=r.axis.inverse?-1:1,g=new Ut(0,0),_=new Ut(0,0);u===`start`?(g.x=m[0]-h*p,_.x=-h):u===`end`?(g.x=m[1]+h*p,_.x=h):(g.x=(m[0]+m[1])/2,g.y=e.labelOffset+d*p,_.y=d);var v=_t();_.transform(St(v,v,e.rotation));var y=r.get(`nameRotate`);y!=null&&(y=y*Dx/180);var b,x;cb(u)?b=zx.innerTextLayout(e.rotation,y??e.rotation,d):(b=Ux(e.rotation,u,y||0,m),x=e.raw.axisNameAvailableWidth,x!=null&&(x=Math.abs(x/Math.sin(b.rotation)),!isFinite(x)&&(x=null)));var S=f.getFont(),C=r.get(`nameTruncate`,!0)||{},w=C.ellipsis,T=we(e.raw.nameTruncateMaxWidth,C.maxWidth,x),E=s.nameMarginLevel||0,D=new ns({x:g.x,y:g.y,rotation:b.rotation,silent:zx.isLabelSilent(r),style:ap(f,{text:l,font:S,overflow:`truncate`,width:T,ellipsis:w,fill:f.getTextColor()||r.get([`axisLine`,`lineStyle`,`color`]),align:f.get(`align`)||b.textAlign,verticalAlign:f.get(`verticalAlign`)||b.textVerticalAlign}),z2:1});if(zf({el:D,componentModel:r,itemName:l}),D.__fullText=l,D.anid=`name`,r.get(`triggerEvent`)){var O=zx.makeAxisEventDataBase(r);O.targetType=`axisName`,O.name=l,ol(D).eventData=O}a.add(D),D.updateTransform(),t.nameEl=D;var k=c.nameLayout=mx({label:D,priority:D.z2,defaultAttr:{ignore:D.ignore},marginDefault:cb(u)?Ox[E]:kx[E]});if(c.nameLocation=u,i.add(D),D.decomposeTransform(),e.shouldNameMoveOverlap&&k){var ee=n.ensureRecord(r);n.resolveAxisNameOverlap(e,n,r,k,_,ee)}}}};function Hx(e,t,n,r,i,a,o,s){Qx(t)||Zx(e,t,i,s,r,o);var c=t.labelLayoutList;ree(e,r,c,a),iS(r,e.rotation,c);var l=e.optionHideOverlap;Wx(r,c,l),l&&xx(ue(c,function(e){return e&&!e.label.ignore})),Nx(e,n,r,c)}function Ux(e,t,n,r){var i=Hs(n-e),a,o,s=r[0]>r[1],c=t===`start`&&!s||t!==`start`&&s;return Us(i-Dx/2)?(o=c?`bottom`:`top`,a=`center`):Us(i-Dx*1.5)?(o=c?`top`:`bottom`,a=`center`):(o=`middle`,a=iDx/2?c?`left`:`right`:c?`right`:`left`),{rotation:i,textAlign:a,textVerticalAlign:o}}function Wx(e,t,n){var r=e.axis,i=e.get([`axisLabel`,`customValues`]);if(ob(r))return;function a(e,a,o){var s=mx(t[a]),c=mx(t[o]),l=r.scale;if(!(!s||!c)){if(e==null){if(!n&&i)return;var u=Ax(s.label).labelInfo.tick;if(gy(l)&&u.notNice||vy(l)&&u.offInterval){Kx(s.label);return}}if(e===!1||s.suggestIgnore){Kx(s.label);return}if(c.suggestIgnore){Kx(c.label);return}var d=.1;if(!n){var f=[0,0,0,0];s=yx({marginForce:f},s),c=yx({marginForce:f},c)}Sx(s,c,null,{touchThreshold:d})&&Kx(e?c.label:s.label)}}var o=e.get([`axisLabel`,`showMinLabel`]),s=e.get([`axisLabel`,`showMaxLabel`]),c=t.length;a(o,0,1),a(s,c-1,c-2)}function Gx(e,t,n){e.showMinorTicks||I(t,function(e){if(e&&e.label.ignore)for(var t=0;t0&&u[1]>0&&!d[0]&&(u[0]=0),u[0]<0&&u[1]<0&&!d[1]&&(u[1]=0));var y=!1;u[0]>u[1]&&(u.reverse(),y=!0);var b=pS(e,t.get(`startValue`,!0)),x=b!=null;!tc(b)&&r&&(b=e.getDefaultStartValue?e.getDefaultStartValue():0),tc(b)&&(x||!_||v)&&(bu[1]&&!d[1]&&(u[1]=b,d[1]=!0)),fS(this._i={scale:e,dataMM:l,noZoomEffMM:u,zoomMM:[],fixMM:d,zoomFixMM:[!1,!1],startValue:b,isBlank:g,incl0:v,tggAxInv:y,ctnShp:i},u)}return e.prototype.makeNoZoom=function(){return this._i.noZoomEffMM.slice()},e.prototype.makeFinal=function(){var e=this._i,t=e.zoomMM,n=e.noZoomEffMM,r=e.zoomFixMM,i=e.fixMM,a={fixMM:i,zoomFixMM:r,isBlank:e.isBlank,incl0:e.incl0,tggAxInv:e.tggAxInv,ctnShp:e.ctnShp,effMM:n.slice()},o=a.effMM;return t[0]!=null&&(o[0]=t[0],i[0]=r[0]=!0),t[1]!=null&&(o[1]=t[1],i[1]=r[1]=!0),fS(e,o),a},e.prototype.makeRenderInfo=function(){return{startValue:this._i.startValue}},e.prototype.setZoomMM=function(e,t){this._i.zoomMM[e]=t},e}();function fS(e,t){var n=e.scale,r=e.dataMM;n.sanitize&&(t[0]=n.sanitize(t[0],r),t[1]=n.sanitize(t[1],r),Xc(t))}function pS(e,t){return t==null?null:Ce(t)?NaN:e.parse(t)}function mS(e,t){var n;if(vy(e))n=[0,0];else{var r=t.get(`boundaryGap`);typeof r==`boolean`&&(r=null),n=R(r)?r:[r,r]}return[hS(n[0]),hS(n[1])]}function hS(e){return On(typeof e==`boolean`?0:e,1)||0}function gS(e){var t=lS(e.scale);return t.extent||=Hc(),t}function _S(e,t){gS(e).dimIdxInCoord=t.get(e.dim)}function vS(e,t){var n=e.scale,r=e.model,i=e.dim;n.rawExtentInfo||yS(n,e,i,r,t)}function yS(e,t,n,r,i){var a=gS(t),o=a.extent,s=!1;qb(t,function(r){if(r.boxCoordinateSystem){var i=dh(r).coord,c=a.dimIdxInCoord;if(c>=0&&R(i)){var l=i[c];l!=null&&!R(l)&&Uc(o,e.parse(l))}}else if(r.coordinateSystem){var u=r.getData();if(u){var d=e.getFilter?e.getFilter():null;I(sb(u,n),function(e){Kc(o,u.getApproximateExtent(e,d))})}r.__requireStartValue&&r.__requireStartValue(t)&&(s=!0)}});var c=wS(e,t,r);xS(e,new dS(e,r,o,s,c),i),a.extent=null}function bS(e,t){var n=e.scale;xS(n,new dS(n,e.model,t,!1,!1),uS)}function xS(e,t,n){e.rawExtentInfo=t,t.from=n}var SS=Le();function CS(e,t,n,r,i){e.rawExtentInfo||bS({scale:e,model:t},i||Hc());var a=e.rawExtentInfo.makeFinal(),o=a.effMM;return e.setExtent(o[0],o[1]),e.setBlank(a.isBlank),r&&a.tggAxInv&&n&&!n.get(`legacyMinMaxDontInverseAxis`)&&(r.inverse=!r.inverse),a}function wS(e,t,n){var r=mb(e,n),i=n.get(`containShape`,!0);if(i==null&&!r&&(i=!0),!i)return!1;var a=!1;return Yb(t,function(e){a=!!SS.get(e)||a}),a}function TS(e,t,n,r){if(n.ctnShp){var i;if(Yb(e,function(t){var n=SS.get(t);if(n){var a=n(e,r);a&&(i||=[0,0],Wc(i,a[0]),Gc(i,a[1]),tb(e))}}),i){var a=t.getExtent();if(vy(t))e.onBand||t.setExtent2(1,ys(a[0],a[0]+i[0]),bs(a[1],a[1]+i[1]));else{var o=a.slice();n.zoomFixMM[0]||(o[0]=ys(o[0],t.transformOut(t.transformIn(o[0],null)+i[0],null))),n.zoomFixMM[1]||(o[1]=bs(o[1],t.transformOut(t.transformIn(o[1],null)+i[1],null))),(o[0]a[1])&&t.setExtent2(1,o[0],o[1])}}}}var ES={left:0,right:0,top:0,bottom:0},DS=[`25%`,`25%`],OS=`cartesian2d`,kS=function(e){p(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.mergeDefaultAndTheme=function(t,n){var r=f_(t.outerBounds);e.prototype.mergeDefaultAndTheme.apply(this,arguments),r&&t.outerBounds&&d_(t.outerBounds,r)},t.prototype.mergeOption=function(t,n){e.prototype.mergeOption.apply(this,arguments),this.option.outerBounds&&t.outerBounds&&d_(this.option.outerBounds,t.outerBounds)},t.type=`grid`,t.dependencies=[`xAxis`,`yAxis`],t.layoutMode=`box`,t.defaultOption={show:!1,z:0,left:`15%`,top:65,right:`10%`,bottom:80,containLabel:!1,outerBoundsMode:`auto`,outerBounds:ES,outerBoundsContain:`all`,outerBoundsClampWidth:DS[0],outerBoundsClampHeight:DS[1],backgroundColor:H.color.transparent,borderWidth:1,borderColor:H.color.neutral30},t}(h_),AS=`\0__throttleOriginMethod`,jS=`\0__throttleRate`,MS=`\0__throttleType`;function NS(e,t,n){var r,i=0,a=0,o=null,s,c,l,u;t||=0;function d(){a=new Date().getTime(),o=null,e.apply(c,l||[])}var f=function(){var e=[...arguments];r=new Date().getTime(),c=this,l=e;var f=u||t,p=u||n;u=null,s=r-(p?i:a)-f,clearTimeout(o),p?o=setTimeout(d,f):s>=0?d():o=setTimeout(d,-s),i=r};return f.clear=function(){o&&=(clearTimeout(o),null)},f.debounceNextCall=function(e){u=e},f}function PS(e,t,n,r){var i=e[t];if(i){var a=i[AS]||i,o=i[MS];if(i[jS]!==n||o!==r){if(n==null||!r)return e[t]=a;i=e[t]=NS(a,n,r===`debounce`),i[AS]=a,i[MS]=r,i[jS]=n}return i}}function FS(e,t){var n=e[t];n&&n[AS]&&(n.clear&&n.clear(),e[t]=n[AS])}function IS(e,t,n,r,i){var a=e+t;n.isSilent(a)||r.eachComponent({mainType:`series`,subType:`pie`},function(e){for(var t=e.seriesIndex,r=e.option.selectedMap,o=i.selected,s=0;s=0},e.prototype.indexOfName=function(e){return this._getDataWithEncodedVisual().indexOfName(e)},e.prototype.getItemVisual=function(e,t){return this._getDataWithEncodedVisual().getItemVisual(e,t)},e}(),zS=function(){function e(e,t){this.target=e,this.topTarget=t&&t.topTarget}return e}(),BS=function(){function e(e){this.handler=e,e.on(`mousedown`,this._dragStart,this),e.on(`mousemove`,this._drag,this),e.on(`mouseup`,this._dragEnd,this)}return e.prototype._dragStart=function(e){for(var t=e.target;t&&!t.draggable;)t=t.parent||t.__hostTarget;t&&(this._draggingTarget=t,t.dragging=!0,this._x=e.offsetX,this._y=e.offsetY,this.handler.dispatchToElement(new zS(t,e),`dragstart`,e.event))},e.prototype._drag=function(e){var t=this._draggingTarget;if(t){var n=e.offsetX,r=e.offsetY,i=n-this._x,a=r-this._y;this._x=n,this._y=r,t.drift(i,a,e),this.handler.dispatchToElement(new zS(t,e),`drag`,e.event);var o=this.handler.findHover(n,r,t).target,s=this._dropTarget;this._dropTarget=o,t!==o&&(s&&o!==s&&this.handler.dispatchToElement(new zS(s,e),`dragleave`,e.event),o&&o!==s&&this.handler.dispatchToElement(new zS(o,e),`dragenter`,e.event))}},e.prototype._dragEnd=function(e){var t=this._draggingTarget;t&&(t.dragging=!1),this.handler.dispatchToElement(new zS(t,e),`dragend`,e.event),this._dropTarget&&this.handler.dispatchToElement(new zS(this._dropTarget,e),`drop`,e.event),this._draggingTarget=null,this._dropTarget=null},e}(),VS=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,HS=[],iee=We.browser.firefox&&+We.browser.version.split(`.`)[0]<39;function US(e,t,n,r){return n||={},r?WS(e,t,n):iee&&t.layerX!=null&&t.layerX!==t.offsetX?(n.zrX=t.layerX,n.zrY=t.layerY):t.offsetX==null?WS(e,t,n):(n.zrX=t.offsetX,n.zrY=t.offsetY),n}function WS(e,t,n){if(We.domSupported&&e.getBoundingClientRect){var r=t.clientX,i=t.clientY;if(Hh(e)){var a=e.getBoundingClientRect();n.zrX=r-a.left,n.zrY=i-a.top;return}if(zh(HS,e,r,i)){n.zrX=HS[0],n.zrY=HS[1];return}}n.zrX=n.zrY=0}function GS(e){return e||window.event}function KS(e,t,n){if(t=GS(t),t.zrX!=null)return t;var r=t.type;if(r&&r.indexOf(`touch`)>=0){var i=r===`touchend`?t.changedTouches[0]:t.targetTouches[0];i&&US(e,i,t,n)}else{US(e,t,t,n);var a=qS(t);t.zrDelta=a?a/120:-(t.detail||0)/3}var o=t.button;return t.which==null&&o!==void 0&&VS.test(t.type)&&(t.which=o&1?1:o&2?3:o&4?2:0),t}function qS(e){var t=e.wheelDelta;if(t)return t;var n=e.deltaX,r=e.deltaY;if(n==null||r==null)return t;var i=Math.abs(r===0?n:r),a=r>0?-1:r<0?1:n>0?-1:1;return 3*i*a}function JS(e,t,n,r){e.addEventListener(t,n,r)}function YS(e,t,n,r){e.removeEventListener(t,n,r)}var XS=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0};function ZS(e){return e.which===2||e.which===3}var QS=function(){function e(){this._track=[]}return e.prototype.recognize=function(e,t,n){return this._doTrack(e,t,n),this._recognize(e)},e.prototype.clear=function(){return this._track.length=0,this},e.prototype._doTrack=function(e,t,n){var r=e.touches;if(r){for(var i={points:[],touches:[],target:t,event:e},a=0,o=r.length;a1&&r&&r.length>1){var a=$S(r)/$S(i);!isFinite(a)&&(a=1),t.pinchScale=a;var o=eC(r);return t.pinchX=o[0],t.pinchY=o[1],{type:`pinch`,target:e[0].target,event:t}}}}},nC=`silent`;function rC(e,t,n){return{type:e,event:n,target:t.target,topTarget:t.topTarget,cancelBubble:!1,offsetX:n.zrX,offsetY:n.zrY,gestureEvent:n.gestureEvent,pinchX:n.pinchX,pinchY:n.pinchY,pinchScale:n.pinchScale,wheelDelta:n.zrDelta,zrByTouch:n.zrByTouch,which:n.which,stop:iC}}function iC(){XS(this.event)}var aC=function(e){p(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.handler=null,t}return t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t}($i),oC=function(){function e(e,t){this.x=e,this.y=t}return e}(),sC=[`click`,`dblclick`,`mousewheel`,`mouseout`,`mouseup`,`mousedown`,`mousemove`,`contextmenu`],cC=new rn(0,0,0,0),lC=function(e){p(t,e);function t(t,n,r,i,a){var o=e.call(this)||this;return o._hovered=new oC(0,0),o.storage=t,o.painter=n,o.painterRoot=i,o._pointerSize=a,r||=new aC,o.proxy=null,o.setHandlerProxy(r),o._draggingMgr=new BS(o),o}return t.prototype.setHandlerProxy=function(e){this.proxy&&this.proxy.dispose(),e&&(I(sC,function(t){e.on&&e.on(t,this[t],this)},this),e.handler=this),this.proxy=e},t.prototype.mousemove=function(e){var t=e.zrX,n=e.zrY,r=fC(this,t,n),i=this._hovered,a=i.target;a&&!a.__zr&&(i=this.findHover(i.x,i.y),a=i.target);var o=this._hovered=r?new oC(t,n):this.findHover(t,n),s=o.target,c=this.proxy;c.setCursor&&c.setCursor(s?s.cursor:`default`),a&&s!==a&&this.dispatchToElement(i,`mouseout`,e),this.dispatchToElement(o,`mousemove`,e),s&&s!==a&&this.dispatchToElement(o,`mouseover`,e)},t.prototype.mouseout=function(e){var t=e.zrEventControl;t!==`only_globalout`&&this.dispatchToElement(this._hovered,`mouseout`,e),t!==`no_globalout`&&this.trigger(`globalout`,{type:`globalout`,event:e})},t.prototype.resize=function(){this._hovered=new oC(0,0)},t.prototype.dispatch=function(e,t){var n=this[e];n&&n.call(this,t)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(e){var t=this.proxy;t.setCursor&&t.setCursor(e)},t.prototype.dispatchToElement=function(e,t,n){e||={};var r=e.target;if(!(r&&r.silent)){for(var i=`on`+t,a=rC(t,e,n);r&&(r[i]&&(a.cancelBubble=!!r[i].call(r,a)),r.trigger(t,a),r=r.__hostTarget?r.__hostTarget:r.parent,!a.cancelBubble););a.cancelBubble||(this.trigger(t,a),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(e){typeof e[i]==`function`&&e[i].call(e,a),e.trigger&&e.trigger(t,a)}))}},t.prototype.findHover=function(e,t,n){var r=this.storage.getDisplayList(),i=new oC(e,t);if(dC(r,i,e,t,n),this._pointerSize&&!i.target){for(var a=[],o=this._pointerSize,s=o/2,c=new rn(e-s,t-s,o,o),l=r.length-1;l>=0;l--){var u=r[l];u!==n&&!u.ignore&&!u.ignoreCoarsePointer&&(!u.parent||!u.parent.ignoreCoarsePointer)&&(cC.copy(u.getBoundingRect()),u.transform&&cC.applyTransform(u.transform),cC.intersect(c)&&a.push(u))}if(a.length){for(var d=4,f=Math.PI/12,p=Math.PI*2,m=0;m4)return;this._downPoint=null}this.dispatchToElement(a,e,t)}});function uC(e,t,n){if(e[e.rectHover?`rectContain`:`contain`](t,n)){for(var r=e,i=void 0,a=!1;r;){if(r.ignoreClip&&(a=!0),!a){var o=r.getClipPath();if(o&&!o.contain(t,n))return!1}r.silent&&(i=!0);var s=r.__hostTarget;r=s?r.ignoreHostSilent?null:s:r.parent}return!i||nC}return!1}function dC(e,t,n,r,i){for(var a=e.length-1;a>=0;a--){var o=e[a],s=void 0;if(o!==i&&!o.ignore&&(s=uC(o,n,r))&&(!t.topTarget&&(t.topTarget=o),s!==nC)){t.target=o;break}}}function fC(e,t,n){var r=e.painter;return t<0||t>r.getWidth()||n<0||n>r.getHeight()}var pC=32,mC=7;function hC(e){for(var t=0;e>=pC;)t|=e&1,e>>=1;return e+t}function gC(e,t,n,r){var i=t+1;if(i===n)return 1;if(r(e[i++],e[t])<0){for(;i=0;)i++;return i-t}function _C(e,t,n){for(n--;t>>1,i(a,e[c])<0?s=c:o=c+1;var l=r-o;switch(l){case 3:e[o+3]=e[o+2];case 2:e[o+2]=e[o+1];case 1:e[o+1]=e[o];break;default:for(;l>0;)e[o+l]=e[o+l-1],l--}e[o]=a}}function yC(e,t,n,r,i,a){var o=0,s=0,c=1;if(a(e,t[n+i])>0){for(s=r-i;c0;)o=c,c=(c<<1)+1,c<=0&&(c=s);c>s&&(c=s),o+=i,c+=i}else{for(s=i+1;cs&&(c=s);var l=o;o=i-c,c=i-l}for(o++;o>>1);a(e,t[n+u])>0?o=u+1:c=u}return c}function bC(e,t,n,r,i,a){var o=0,s=0,c=1;if(a(e,t[n+i])<0){for(s=i+1;cs&&(c=s);var l=o;o=i-c,c=i-l}else{for(s=r-i;c=0;)o=c,c=(c<<1)+1,c<=0&&(c=s);c>s&&(c=s),o+=i,c+=i}for(o++;o>>1);a(e,t[n+u])<0?c=u:o=u+1}return c}function xC(e,t){var n=mC,r,i,a=0,o=[];r=[],i=[];function s(e,t){r[a]=e,i[a]=t,a+=1}function c(){for(;a>1;){var e=a-2;if(e>=1&&i[e-1]<=i[e]+i[e+1]||e>=2&&i[e-2]<=i[e]+i[e-1])i[e-1]i[e+1])break;u(e)}}function l(){for(;a>1;){var e=a-2;e>0&&i[e-1]=mC||m>=mC);if(h)break;f<0&&(f=0),f+=2}if(n=f,n<1&&(n=1),i===1){for(c=0;c=0;c--)e[p+c]=e[f+c];e[d]=o[u];return}for(var m=n;;){var h=0,g=0,_=!1;do if(t(o[u],e[l])<0){if(e[d--]=e[l--],h++,g=0,--i===0){_=!0;break}}else if(e[d--]=o[u--],g++,h=0,--s===1){_=!0;break}while((h|g)=0;c--)e[p+c]=e[f+c];if(i===0){_=!0;break}}if(e[d--]=o[u--],--s===1){_=!0;break}if(g=s-yC(e[l],o,0,s,s-1,t),g!==0){for(d-=g,u-=g,s-=g,p=d+1,f=u+1,c=0;c=mC||g>=mC);if(_)break;m<0&&(m=0),m+=2}if(n=m,n<1&&(n=1),s===1){for(d-=i,l-=i,p=d+1,f=l+1,c=i-1;c>=0;c--)e[p+c]=e[f+c];e[d]=o[u]}else if(s===0)throw Error();else for(f=d-(s-1),c=0;cs&&(c=s),vC(e,n,n+c,n+a,t),a=c}o.pushRun(n,a),o.mergeRuns(),i-=a,n+=a}while(i!==0);o.forceMergeRuns()}}var CC=!1;function wC(){CC||(CC=!0,console.warn(`z / z2 / zlevel of displayable is invalid, which may cause unexpected errors`))}function TC(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var EC=function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=TC}return e.prototype.traverse=function(e,t){for(var n=0;n=0&&this._roots.splice(r,1)},e.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},e.prototype.getRoots=function(){return this._roots},e.prototype.dispose=function(){this._displayList=null,this._roots=null},e}(),DC=We.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(e){return setTimeout(e,16)};function OC(){return new Date().getTime()}var kC=function(e){p(t,e);function t(t){var n=e.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,t||={},n.stage=t.stage||{},n}return t.prototype.addClip=function(e){e.animation&&this.removeClip(e),this._head?(this._tail.next=e,e.prev=this._tail,e.next=null,this._tail=e):this._head=this._tail=e,e.animation=this},t.prototype.addAnimator=function(e){e.animation=this;var t=e.getClip();t&&this.addClip(t)},t.prototype.removeClip=function(e){if(e.animation){var t=e.prev,n=e.next;t?t.next=n:this._head=n,n?n.prev=t:this._tail=t,e.next=e.prev=e.animation=null}},t.prototype.removeAnimator=function(e){var t=e.getClip();t&&this.removeClip(t),e.animation=null},t.prototype.update=function(e){for(var t=OC()-this._pausedTime,n=t-this._time,r=this._head;r;){var i=r.next;r.step(t,n)?(r.ondestroy(),this.removeClip(r),r=i):r=i}this._time=t,e||(this.trigger(`frame`,n),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var e=this;this._running=!0;function t(){e._running&&(DC(t),!e._paused&&e.update())}DC(t)},t.prototype.start=function(){this._running||(this._time=OC(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||=(this._pauseStart=OC(),!0)},t.prototype.resume=function(){this._paused&&=(this._pausedTime+=OC()-this._pauseStart,!1)},t.prototype.clear=function(){for(var e=this._head;e;){var t=e.next;e.prev=e.next=e.animation=null,e=t}this._head=this._tail=null},t.prototype.isFinished=function(){return this._head==null},t.prototype.animate=function(e,t){t||={},this.start();var n=new Qi(e,t.loop);return this.addAnimator(n),n},t}($i),AC=300,jC=We.domSupported,MC=(function(){var e=[`click`,`dblclick`,`mousewheel`,`wheel`,`mouseout`,`mouseup`,`mousedown`,`mousemove`,`contextmenu`],t=[`touchstart`,`touchend`,`touchmove`],n={pointerdown:1,pointerup:1,pointermove:1,pointerout:1};return{mouse:e,touch:t,pointer:L(e,function(e){var t=e.replace(`mouse`,`pointer`);return n.hasOwnProperty(t)?t:e})}})(),NC={mouse:[`mousemove`,`mouseup`],pointer:[`pointermove`,`pointerup`]},PC=!1;function FC(e){var t=e.pointerType;return t===`pen`||t===`touch`}function IC(e){e.touching=!0,e.touchTimer!=null&&(clearTimeout(e.touchTimer),e.touchTimer=null),e.touchTimer=setTimeout(function(){e.touching=!1,e.touchTimer=null},700)}function LC(e){e&&(e.zrByTouch=!0)}function RC(e,t){return KS(e.dom,new BC(e,t),!0)}function zC(e,t){for(var n=t,r=!1;n&&n.nodeType!==9&&!(r=n.domBelongToZr||n!==t&&n===e.painterRoot);)n=n.parentNode;return r}var BC=function(){function e(e,t){this.stopPropagation=Ve,this.stopImmediatePropagation=Ve,this.preventDefault=Ve,this.type=t.type,this.target=this.currentTarget=e.dom,this.pointerType=t.pointerType,this.clientX=t.clientX,this.clientY=t.clientY}return e}(),VC={mousedown:function(e){e=KS(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger(`mousedown`,e)},mousemove:function(e){e=KS(this.dom,e);var t=this.__mayPointerCapture;t&&(e.zrX!==t[0]||e.zrY!==t[1])&&this.__togglePointerCapture(!0),this.trigger(`mousemove`,e)},mouseup:function(e){e=KS(this.dom,e),this.__togglePointerCapture(!1),this.trigger(`mouseup`,e)},mouseout:function(e){e=KS(this.dom,e);var t=e.toElement||e.relatedTarget;zC(this,t)||(this.__pointerCapturing&&(e.zrEventControl=`no_globalout`),this.trigger(`mouseout`,e))},wheel:function(e){PC=!0,e=KS(this.dom,e),this.trigger(`mousewheel`,e)},mousewheel:function(e){PC||(e=KS(this.dom,e),this.trigger(`mousewheel`,e))},touchstart:function(e){e=KS(this.dom,e),LC(e),this.__lastTouchMoment=new Date,this.handler.processGesture(e,`start`),VC.mousemove.call(this,e),VC.mousedown.call(this,e)},touchmove:function(e){e=KS(this.dom,e),LC(e),this.handler.processGesture(e,`change`),VC.mousemove.call(this,e)},touchend:function(e){e=KS(this.dom,e),LC(e),this.handler.processGesture(e,`end`),VC.mouseup.call(this,e),new Date-+this.__lastTouchMoment0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},e.prototype.setSleepAfterStill=function(e){this._sleepAfterStill=e},e.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},e.prototype.refreshHover=function(){this._needsRefreshHover=!0},e.prototype.refreshHoverImmediately=function(){this._disposed||this._refresh({animUpdate:!1,refresh:!1,refreshHover:!0})},e.prototype.resize=function(e){this._disposed||(e||={},this.painter.resize(e.width,e.height),this.handler.resize())},e.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},e.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},e.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},e.prototype.setCursorStyle=function(e){this._disposed||this.handler.setCursorStyle(e)},e.prototype.findHover=function(e,t){if(!this._disposed)return this.handler.findHover(e,t)},e.prototype.on=function(e,t,n){return this._disposed||this.handler.on(e,t,n),this},e.prototype.off=function(e,t){this._disposed||this.handler.off(e,t)},e.prototype.trigger=function(e,t){this._disposed||this.handler.trigger(e,t)},e.prototype.clear=function(){if(!this._disposed){for(var e=this.storage.getRoots(),t=0;t=0;o--)r[o]&&!Ec(r[o])?a=!0:(r[o]=null,!a&&i--);r.length=i,e[n]=r}}),delete e[hw],e},t.prototype.setTheme=function(e){this._theme=new Ep(e),this._resetOption(`recreate`,null)},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(e){this._payload=e},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(e,t){var n=this._componentsMap.get(e);if(n){var r=n[t||0];if(r)return r;if(t==null){for(var i=0;i=t:n===`max`?e<=t:e===t}function Ow(e,t){return e.join(`,`)===t.join(`,`)}var kw=I,Aw=B,jw=[`areaStyle`,`lineStyle`,`nodeStyle`,`linkStyle`,`chordStyle`,`label`,`labelLine`];function Mw(e){var t=e&&e.itemStyle;if(t)for(var n=0,r=jw.length;n0?e[n-1].seriesModel:null)}),$w(e))})}function $w(e){I(e,function(t,n){var r=[],i=[NaN,NaN],a=[t.stackResultDimension,t.stackedOverDimension],o=t.data,s=t.isStackedByIndex,c=t.seriesModel.get(`stackStrategy`)||`samesign`;o.modify(a,function(a,l,u){var d=o.get(t.stackedDimension,u);if(isNaN(d))return i;var f,p;s?p=o.getRawIndex(u):f=o.get(t.stackedByDimension,u);for(var m=NaN,h=n-1;h>=0;h--){var g=e[h];if(s||(p=g.data.rawIndexOf(g.stackedByDimension,f)),p>=0){var _=g.data.getByRawIndex(g.stackResultDimension,p);if(c===`all`||c===`positive`&&_>0||c===`negative`&&_<0||c===`samesign`&&d>=0&&_>0||c===`samesign`&&d<=0&&_<0){d=Vs(d,_),m=_;break}}}return r[0]=d,r[1]=m,r})})}var eT=function(){function e(){this.group=new Yu,this.uid=Oh(`viewComponent`)}return e.prototype.init=function(e,t){},e.prototype.render=function(e,t,n,r){},e.prototype.dispose=function(e,t){},e.prototype.updateView=function(e,t,n,r){},e.prototype.updateLayout=function(e,t,n,r){},e.prototype.updateVisual=function(e,t,n,r){},e.prototype.toggleBlurSeries=function(e,t,n){},e.prototype.eachRendered=function(e){var t=this.group;t&&t.traverse(e)},e}();Qe(eT),at(eT);var tT=jc(),nT={itemStyle:ot(Cp,!0),lineStyle:ot(bp,!0)},rT={lineStyle:`stroke`,itemStyle:`fill`};function iT(e,t){return e.visualStyleMapper||nT[t]||(console.warn(`Unknown style type '`+t+`'.`),nT.itemStyle)}function aT(e,t){return e.visualDrawType||rT[t]||(console.warn(`Unknown style type '`+t+`'.`),`fill`)}var oT={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData(),r=e.visualStyleAccessPath||`itemStyle`,i=e.getModel(r),a=iT(e,r)(i),o=i.getShallow(`decal`);o&&(n.setVisual(`decal`,o),o.dirty=!0);var s=aT(e,r),c=a[s],l=ge(c)?c:null,u=a.fill===`auto`||a.stroke===`auto`;if(!a[s]||l||u){var d=e.getColorFromPalette(e.name,null,t.getSeriesCount());a[s]||(a[s]=d,n.setVisual(`colorFromPalette`,!0)),a.fill=a.fill===`auto`||ge(a.fill)?d:a.fill,a.stroke=a.stroke===`auto`||ge(a.stroke)?d:a.stroke}if(n.setVisual(`style`,a),n.setVisual(`drawType`,s),!t.isSeriesFiltered(e)&&l)return n.setVisual(`colorFromPalette`,!1),{dataEach:function(t,n){var r=e.getDataParams(n),i=P({},a);i[s]=l(r),t.setItemVisual(n,`style`,i)}}}},sT=new Ep,cT={createOnAllSeries:!0,reset:function(e,t){if(!e.ignoreStyleOnData){var n=e.getData(),r=e.visualStyleAccessPath||`itemStyle`,i=iT(e,r),a=n.getVisual(`drawType`);return{dataEach:n.hasItemOption?function(e,t){var n=e.getRawDataItem(t);if(n&&n[r]){sT.option=n[r];var o=i(sT);P(e.ensureUniqueItemVisual(t,`style`),o),sT.option.decal&&(e.setItemVisual(t,`decal`,sT.option.decal),sT.option.decal.dirty=!0),a in o&&e.setItemVisual(t,`colorFromPalette`,!1)}}:null}}}},lT={performRawSeries:!0,overallReset:function(e){var t=Le();e.eachSeries(function(e){if(!e.isColorBySeries()){var n=e.type+`-`+e.getColorBy();tT(e).scope=t.get(n)||t.set(n,{})}}),e.eachSeries(function(e){if(!e.isColorBySeries()){var t=e.getRawData(),n={},r=e.getData(),i=tT(e).scope,a=aT(e,e.visualStyleAccessPath||`itemStyle`);r.each(function(e){var t=r.getRawIndex(e);n[t]=e}),t.each(function(o){var s=n[o];if(r.getItemVisual(s,`colorFromPalette`)){var c=r.ensureUniqueItemVisual(s,`style`),l=t.getName(o)||o+``,u=t.count();c[a]=e.getColorFromPalette(l,i,u)}})}})}},uT=Math.PI;function dT(e,t){t||={},F(t,{text:`loading`,textColor:H.color.primary,fontSize:12,fontWeight:`normal`,fontStyle:`normal`,fontFamily:`sans-serif`,maskColor:`rgba(255,255,255,0.8)`,showSpinner:!0,color:H.color.theme[0],spinnerRadius:10,lineWidth:5,zlevel:0});var n=new Yu,r=new Zo({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});n.add(r);var i=new ns({style:{text:t.text,fill:t.textColor,fontSize:t.fontSize,fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:t.fontFamily},zlevel:t.zlevel,z:10001}),a=new Zo({style:{fill:`none`},textContent:i,textConfig:{position:`right`,distance:10},zlevel:t.zlevel,z:10001});n.add(a);var o;return t.showSpinner&&(o=new Nd({shape:{startAngle:-uT/2,endAngle:-uT/2+.1,r:t.spinnerRadius},style:{stroke:t.color,lineCap:`round`,lineWidth:t.lineWidth},zlevel:t.zlevel,z:10001}),o.animateShape(!0).when(1e3,{endAngle:uT*3/2}).start(`circularInOut`),o.animateShape(!0).when(1e3,{startAngle:uT*3/2}).delay(300).start(`circularInOut`),n.add(o)),n.resize=function(){var n=i.getBoundingRect().width,s=t.showSpinner?t.spinnerRadius:0,c=(e.getWidth()-s*2-(t.showSpinner&&n?10:0)-n)/2-(t.showSpinner&&n?0:5+n/2)+(t.showSpinner?0:n/2)+(n?0:s),l=e.getHeight()/2;t.showSpinner&&o.setShape({cx:c,cy:l}),a.setShape({x:c-s,y:l-s,width:s*2,height:s*2}),r.setShape({x:0,y:0,width:e.getWidth(),height:e.getHeight()})},n.resize(),n}var fT=function(){function e(e,t,n,r){this._stageTaskMap=Le(),this.ecInstance=e,this.api=t,n=this._dataProcessorHandlers=n.slice(),r=this._visualHandlers=r.slice(),this._allHandlers=n.concat(r)}return e.prototype.restoreData=function(e,t){e.restoreData(t),this._stageTaskMap.each(function(e){var t=e.overallTask;t&&t.dirty()})},e.prototype.getPerformArgs=function(e,t){if(e.__pipeline){var n=this._pipelineMap.get(e.__pipeline.id),r=n.context,i=!t&&n.progressiveEnabled&&(!r||r.progressiveRender)&&e.__idxInPipeline>n.blockIndex?n.step:null,a=r&&r.modDataCount;return{step:i,modBy:a==null?null:Math.ceil(a/i),modDataCount:a}}},e.prototype.getPipeline=function(e){return this._pipelineMap.get(e)},e.prototype.updateStreamModes=function(e,t){var n=this._pipelineMap.get(e.uid);e.pipelineContext=n.context=e.__preparePipelineContext?e.__preparePipelineContext(t,n):rl(e,t,n)},e.prototype.restorePipelines=function(e,t){var n=this,r=n._pipelineMap=Le();t.eachSeries(function(t){var i=e.painter.type===`canvas`&&t.getProgressive(),a=t.uid;r.set(a,{id:a,head:null,tail:null,threshold:t.getProgressiveThreshold(),progressiveEnabled:i&&!(t.preventIncremental&&t.preventIncremental()),blockIndex:-1,step:Math.round(i||700),count:0}),n._pipe(t,t.dataTask)})},e.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,t=this.api.getModel(),n=this.api;I(this._allHandlers,function(r){var i=e.get(r.uid)||e.set(r.uid,{});Oe(!(r.reset&&r.overallReset),``),r.reset&&this._createSeriesStageTask(r,i,t,n),r.overallReset&&this._createOverallStageTask(r,i,t,n)},this)},e.prototype.prepareView=function(e,t,n,r){var i=e.renderTask,a=i.context;a.model=t,a.ecModel=n,a.api=r,i.__block=!e.incrementalPrepareRender,this._pipe(t,i)},e.prototype.performDataProcessorTasks=function(e,t){this._performStageTasks(this._dataProcessorHandlers,e,t,{block:!0})},e.prototype.performVisualTasks=function(e,t,n){this._performStageTasks(this._visualHandlers,e,t,n)},e.prototype._performStageTasks=function(e,t,n,r){r||={};var i=!1,a=this;I(e,function(e,s){if(!(r.visualType&&r.visualType!==e.visualType)){var c=a._stageTaskMap.get(e.uid),l=c.seriesTaskMap,u=c.overallTask;if(u){var d,f=u.agentStubMap;f.each(function(e){o(r,e)&&(e.dirty(),d=!0)}),d&&u.dirty(),a.updatePayload(u,n);var p=a.getPerformArgs(u,r.block);f.each(function(e){e.perform(p)}),u.perform(p)&&(i=!0)}else l&&l.each(function(s,c){o(r,s)&&s.dirty();var l=a.getPerformArgs(s,r.block);l.skip=!e.performRawSeries&&t.isSeriesFiltered(s.context.model),a.updatePayload(s,n),s.perform(l)&&(i=!0)})}});function o(e,t){return e.setDirty&&(!e.dirtyMap||e.dirtyMap.get(t.__pipeline.id))}this.unfinished=i||this.unfinished},e.prototype.performSeriesTasks=function(e){var t;e.eachSeries(function(e){t=e.dataTask.perform()||t}),this.unfinished=t||this.unfinished},e.prototype.plan=function(){this._pipelineMap.each(function(e){var t=e.tail;do{if(t.__block){e.blockIndex=t.__idxInPipeline;break}t=t.getUpstream()}while(t)})},e.prototype.updatePayload=function(e,t){t!==`remain`&&(e.context.payload=t)},e.prototype._createSeriesStageTask=function(e,t,n,r){var i=this,a=t.seriesTaskMap,o=t.seriesTaskMap=Le(),s=e.seriesType,c=e.getTargetSeries;e.createOnAllSeries?n.eachRawSeries(l):s?n.eachRawSeriesByType(s,l):c&&c(n,r).each(l);function l(t){var s=t.uid,c=o.set(s,a&&a.get(s)||E_({plan:_T,reset:vT,count:xT}));c.context={model:t,ecModel:n,api:r,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:i},i._pipe(t,c)}},e.prototype._createOverallStageTask=function(e,t,n,r){var i=this,a=t.overallTask=t.overallTask||E_({reset:pT});a.context={ecModel:n,api:r,overallReset:e.overallReset,scheduler:i};var o=a.agentStubMap,s=a.agentStubMap=Le(),c=e.seriesType,l=e.getTargetSeries,u=e.dirtyOnOverallProgress,d=!1;Oe(!e.createOnAllSeries,``),c?n.eachRawSeriesByType(c,f):l?l(n,r).each(f):I(n.getSeries(),f);function f(e){var t=e.uid,n=s.set(t,o&&o.get(t)||(d=!0,E_({reset:mT,onDirty:gT})));n.context={model:e,dirtyOnOverallProgress:u},n.agent=a,n.__block=u,i._pipe(e,n)}d&&a.dirty()},e.prototype._pipe=function(e,t){var n=e.uid,r=this._pipelineMap.get(n);!r.head&&(r.head=t),r.tail&&r.tail.pipe(t),r.tail=t,t.__idxInPipeline=r.count++,t.__pipeline=r},e.wrapStageHandler=function(e,t){return ge(e)&&(e={overallReset:e,seriesType:ST(e)}),e.uid=Oh(`stageHandler`),t&&(e.visualType=t),e},e}();function pT(e){e.overallReset(e.ecModel,e.api,e.payload)}function mT(e){return e.dirtyOnOverallProgress&&hT}function hT(){this.agent.dirty(),this.getDownstream().dirty()}function gT(){this.agent&&this.agent.dirty()}function _T(e){return e.plan?e.plan(e.model,e.ecModel,e.api,e.payload):null}function vT(e){e.useClearVisual&&e.data.clearAllVisual();var t=e.resetDefines=uc(e.reset(e.model,e.ecModel,e.api,e.payload));return t.length>1?L(t,function(e,t){return bT(t)}):yT}var yT=bT(0);function bT(e){return function(t,n){var r=n.data,i=n.resetDefines[e];if(i&&i.dataEach)for(var a=t.start;a0&&u===i.length-l.length){var d=i.slice(0,u);d!==`data`&&(t.mainType=d,t[l.toLowerCase()]=e,s=!0)}}o.hasOwnProperty(i)&&(n[i]=e,s=!0),s||(r[i]=e)})}return{cptQuery:t,dataQuery:n,otherQuery:r}},e.prototype.filter=function(e,t){var n=this.eventInfo;if(!n)return!0;var r=n.targetEl,i=n.packedEvent,a=n.model,o=n.view;if(!a||!o)return!0;var s=t.cptQuery,c=t.dataQuery;return l(s,a,`mainType`)&&l(s,a,`subType`)&&l(s,a,`index`,`componentIndex`)&&l(s,a,`name`)&&l(s,a,`id`)&&l(c,i,`name`)&&l(c,i,`dataIndex`)&&l(c,i,`dataType`)&&(!o.filterForExposedEvent||o.filterForExposedEvent(e,t.otherQuery,r,i));function l(e,t,n,r){return e[n]==null||t[r||n]===e[n]}},e.prototype.afterTrigger=function(){this.eventInfo=null},e}(),MT=[`symbol`,`symbolSize`,`symbolRotate`,`symbolOffset`],NT=MT.concat([`symbolKeepAspect`]),PT={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData();if(e.legendIcon&&n.setVisual(`legendIcon`,e.legendIcon),!e.hasSymbolVisual)return;for(var r={},i={},a=!1,o=0;o=0&&YT(c)?c:.5,e.createRadialGradient(o,s,0,o,s,c)}function QT(e,t,n){for(var r=t.type===`radial`?ZT(e,t,n):XT(e,t,n),i=t.colorStops,a=0;a0)?null:e===`dashed`?[4*t,2*t]:e===`dotted`?[t]:ve(e)?[e]:R(e)?e:null}function rE(e){var t=e.style,n=t.lineDash&&t.lineWidth>0&&nE(t.lineDash,t.lineWidth),r=t.lineDashOffset;if(n){var i=t.strokeNoScale&&e.getLineScale?e.getLineScale():1;i&&i!==1&&(n=L(n,function(e){return e/i}),r/=i)}return[n,r]}var iE=new fo(!0);function aE(e){var t=e.stroke;return!(t==null||t===`none`||!(e.lineWidth>0))}function oE(e){return typeof e==`string`&&e!==`none`}function sE(e){var t=e.fill;return t!=null&&t!==`none`}function cE(e,t){if(t.fillOpacity!=null&&t.fillOpacity!==1){var n=e.globalAlpha;e.globalAlpha=t.fillOpacity*t.opacity,e.fill(),e.globalAlpha=n}else e.fill()}function lE(e,t){if(t.strokeOpacity!=null&&t.strokeOpacity!==1){var n=e.globalAlpha;e.globalAlpha=t.strokeOpacity*t.opacity,e.stroke(),e.globalAlpha=n}else e.stroke()}function uE(e,t,n){var r=mt(t.image,t.__image,n);if(gt(r)){var i=e.createPattern(r,t.repeat||`repeat`);if(typeof DOMMatrix==`function`&&i&&i.setTransform){var a=new DOMMatrix;a.translateSelf(t.x||0,t.y||0),a.rotateSelf(0,0,(t.rotation||0)*He),a.scaleSelf(t.scaleX||1,t.scaleY||1),i.setTransform(a)}return i}}function dE(e,t,n,r,i){var a,o=aE(n),s=sE(n),c=n.strokePercent,l=c<1,u=!t.path;(!t.silent||l)&&u&&t.createPathProxy();var d=t.path||iE,f=t.__dirty;if(!r){var p=n.fill,m=n.stroke,h=s&&!!p.colorStops,g=o&&!!m.colorStops,_=s&&!!p.image,v=o&&!!m.image,y=void 0,b=void 0,x=void 0,S=void 0,C=void 0;(h||g)&&(C=t.getBoundingRect()),h&&(y=f?QT(e,p,C):t.__canvasFillGradient,t.__canvasFillGradient=y),g&&(b=f?QT(e,m,C):t.__canvasStrokeGradient,t.__canvasStrokeGradient=b),_&&(x=f||!t.__canvasFillPattern?uE(e,p,t):t.__canvasFillPattern,t.__canvasFillPattern=x),v&&(S=f||!t.__canvasStrokePattern?uE(e,m,t):t.__canvasStrokePattern,t.__canvasStrokePattern=S),h?e.fillStyle=y:_&&(x?e.fillStyle=x:s=!1),g?e.strokeStyle=b:v&&(S?e.strokeStyle=S:o=!1)}var w=t.getGlobalScale();d.setScale(w[0],w[1],t.segmentIgnoreThreshold);var T,E;e.setLineDash&&n.lineDash&&(a=rE(t),T=a[0],E=a[1]);var D=!0;(u||f&4)&&(d.setDPR(e.dpr),l?d.setContext(null):(d.setContext(e),D=!1),d.reset(),t.buildPath(d,t.shape,r),d.toStatic(),t.pathUpdated()),D&&d.rebuildPath(e,l?c:1),T&&(e.setLineDash(T),e.lineDashOffset=E),r?(i.batchFill=s,i.batchStroke=o):n.strokeFirst?(o&&lE(e,n),s&&cE(e,n)):(s&&cE(e,n),o&&lE(e,n)),T&&e.setLineDash([])}function fE(e,t,n){var r=t.__image=mt(n.image,t.__image,t,t.onload);if(!(!r||!gt(r))){var i=n.x||0,a=n.y||0,o=t.getWidth(),s=t.getHeight(),c=r.width/r.height;if(o==null&&s!=null?o=s*c:s==null&&o!=null?s=o/c:o==null&&s==null&&(o=r.width,s=r.height),n.sWidth&&n.sHeight){var l=n.sx||0,u=n.sy||0;e.drawImage(r,l,u,n.sWidth,n.sHeight,i,a,o,s)}else if(n.sx&&n.sy){var l=n.sx,u=n.sy,d=o-l,f=s-u;e.drawImage(r,l,u,d,f,i,a,o,s)}else e.drawImage(r,i,a,o,s)}}function pE(e,t,n){var r,i=n.text;if(i!=null&&(i+=``),i){e.font=n.font||`12px sans-serif`,e.textAlign=n.textAlign,e.textBaseline=n.textBaseline;var a=void 0,o=void 0;e.setLineDash&&n.lineDash&&(r=rE(t),a=r[0],o=r[1]),a&&(e.setLineDash(a),e.lineDashOffset=o),n.strokeFirst?(aE(n)&&e.strokeText(i,n.x,n.y),sE(n)&&e.fillText(i,n.x,n.y)):(sE(n)&&e.fillText(i,n.x,n.y),aE(n)&&e.strokeText(i,n.x,n.y)),a&&e.setLineDash([])}}var mE=[`shadowBlur`,`shadowOffsetX`,`shadowOffsetY`],hE=[[`lineCap`,`butt`],[`lineJoin`,`miter`],[`miterLimit`,10]];function gE(e,t,n,r,i){var a=!1;if(!r&&(n||={},t===n))return!1;if(r||t.opacity!==n.opacity){DE(e,i),a=!0;var o=Math.max(Math.min(t.opacity,1),0);e.globalAlpha=isNaN(o)?wa.opacity:o}(r||t.blend!==n.blend)&&(a||=(DE(e,i),!0),e.globalCompositeOperation=t.blend||wa.blend);for(var s=0;s0&&e.unfinished);e.unfinished||this._zr.flush()}}},t.prototype.getDom=function(){return this._dom},t.prototype.getId=function(){return this.id},t.prototype.getZr=function(){return this._zr},t.prototype.isSSR=function(){return this._ssr},t.prototype.setOption=function(e,t,n){if(!this[sD]){if(this._disposed){this.id;return}var r,i,a;if(B(t)&&(n=t.lazyUpdate,r=t.silent,i=t.replaceMerge,a=t.transition,t=t.notMerge),this[sD]=!0,zD(this),!this._model||t){var o=new ww(this._api),s=this._theme,c=this._model=new _w;c.scheduler=this._scheduler,c.ssr=this._ssr,c.init(null,null,null,s,this._locale,o)}this._model.setOption(e,{replaceMerge:i},qD);var l={seriesTransition:a,optionChanged:!0};if(n)this[lD]={silent:r,updateParams:l},this[sD]=!1,this.getZr().wakeUp();else{try{xD(this),wD.update.call(this,null,l)}catch(e){throw this[lD]=null,this[sD]=!1,e}this._ssr||this._zr.flush(),this[lD]=null,this[sD]=!1,OD.call(this,r),kD.call(this,r)}}},t.prototype.setTheme=function(e,t){if(!this[sD]){if(this._disposed){this.id;return}var n=this._model;if(n){var r=t&&t.silent,i=null;this[lD]&&(r??=this[lD].silent,i=this[lD].updateParams,this[lD]=null),this[sD]=!0,zD(this);try{this._updateTheme(e),n.setTheme(this._theme),xD(this),wD.update.call(this,{type:`setTheme`},i)}catch(e){throw this[sD]=!1,e}this[sD]=!1,OD.call(this,r),kD.call(this,r)}}},t.prototype._updateTheme=function(e){z(e)&&(e=YD[e]),e&&(e=M(e),e&&Xw(e,!0),this._theme=e)},t.prototype.getModel=function(){return this._model},t.prototype.getOption=function(){return this._model&&this._model.getOption()},t.prototype.getWidth=function(){return this._zr.getWidth()},t.prototype.getHeight=function(){return this._zr.getHeight()},t.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||We.hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(e){return this.renderToCanvas(e)},t.prototype.renderToCanvas=function(e){return e||={},this._zr.painter.getRenderedCanvas({backgroundColor:e.backgroundColor||this._model.get(`backgroundColor`),pixelRatio:e.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(e){return e||={},this._zr.painter.renderToString({useViewBox:e.useViewBox})},t.prototype.getSvgDataURL=function(){var e=this._zr;return I(e.storage.getDisplayList(),function(e){e.stopAnimation(null,!0)}),e.painter.toDataURL()},t.prototype.getDataURL=function(e){if(this._disposed){this.id;return}e||={};var t=e.excludeComponents,n=this._model,r=[],i=this;I(t,function(e){n.eachComponent({mainType:e},function(e){var t=i._componentsMap[e.__viewId];t.group.ignore||(r.push(t),t.group.ignore=!0)})});var a=this._zr.painter.getType()===`svg`?this.getSvgDataURL():this.renderToCanvas(e).toDataURL(`image/`+(e&&e.type||`png`));return I(r,function(e){e.group.ignore=!1}),a},t.prototype.getConnectedDataURL=function(e){if(this._disposed){this.id;return}var t=e.type===`svg`,n=this.group,r=Math.min,i=Math.max,a=1/0;if(QD[n]){var o=a,s=a,c=-a,l=-a,u=[],d=e&&e.pixelRatio||this.getDevicePixelRatio();I(ZD,function(a,d){if(a.group===n){var f=t?a.getZr().painter.getSvgDom().innerHTML:a.renderToCanvas(M(e)),p=a.getDom().getBoundingClientRect();o=r(p.left,o),s=r(p.top,s),c=i(p.right,c),l=i(p.bottom,l),u.push({dom:f,left:p.left,top:p.top})}}),o*=d,s*=d,c*=d,l*=d;var f=c-o,p=l-s,m=b.createCanvas(),h=ew(m,{renderer:t?`svg`:`canvas`});if(h.resize({width:f,height:p}),t){var g=``;return I(u,function(e){var t=e.left-o,n=e.top-s;g+=``+e.dom+``}),h.painter.getSvgRoot().innerHTML=g,e.connectedBackgroundColor&&h.painter.setBackgroundColor(e.connectedBackgroundColor),h.refreshImmediately(),h.painter.toDataURL()}return e.connectedBackgroundColor&&h.add(new Zo({shape:{x:0,y:0,width:f,height:p},style:{fill:e.connectedBackgroundColor}})),I(u,function(e){var t=new Uo({style:{x:e.left*d-o,y:e.top*d-s,image:e.dom}});h.add(t)}),h.refreshImmediately(),m.toDataURL(`image/`+(e&&e.type||`png`))}return this.getDataURL(e)},t.prototype.convertToPixel=function(e,t,n){return TD(this,`convertToPixel`,e,t,n)},t.prototype.convertToLayout=function(e,t,n){return TD(this,`convertToLayout`,e,t,n)},t.prototype.convertFromPixel=function(e,t,n){return TD(this,`convertFromPixel`,e,t,n)},t.prototype.containPixel=function(e,t){if(this._disposed){this.id;return}var n=this._model,r;return I(Nc(n,e),function(e,n){n.indexOf(`Models`)>=0&&I(e,function(e){var i=e.coordinateSystem;if(i&&i.containPoint)r||=!!i.containPoint(t);else if(n===`seriesModels`){var a=this._chartsMap[e.__viewId];a&&a.containPoint&&(r||=a.containPoint(t,e))}},this)},this),!!r},t.prototype.getVisual=function(e,t){var n=this._model,r=Nc(n,e,{defaultMainType:`series`}),i=r.seriesModel.getData(),a=r.hasOwnProperty(`dataIndexInside`)?r.dataIndexInside:r.hasOwnProperty(`dataIndex`)?i.indexOfRawIndex(r.dataIndex):null;return a==null?LT(i,t):IT(i,a,t)},t.prototype.getViewOfComponentModel=function(e){return this._componentsMap[e.__viewId]},t.prototype.getViewOfSeriesModel=function(e){return this._chartsMap[e.__viewId]},t.prototype._initEvents=function(){var e=this;I(HD,function(t){var n=function(n){var r=e.getModel(),i=n.target,a;if(t===`globalout`?a={}:i&&zT(i,function(e){var t=ol(e);if(t&&t.dataIndex!=null){var n=t.dataModel||r.getSeriesByIndex(t.seriesIndex);return a=n&&n.getDataParams(t.dataIndex,t.dataType,i)||{},!0}if(t.eventData)return a=P({},t.eventData),!0},!0),a){var o=a.componentType,s=a.componentIndex;(o===`markLine`||o===`markPoint`||o===`markArea`)&&(o=`series`,s=a.seriesIndex);var c=o&&s!=null&&r.getComponent(o,s),l=c&&e[c.mainType===`series`?`_chartsMap`:`_componentsMap`][c.__viewId];a.event=n,a.type=t,e._$eventProcessor.eventInfo={targetEl:i,packedEvent:a,model:c,view:l},e.trigger(t,a)}};n.zrEventfulCallAtLast=!0,e._zr.on(t,n,e)});var t=this._messageCenter;I(GD,function(n,r){t.on(r,function(t){e.trigger(r,t)})}),LS(t,this,this._api)},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0,this.getDom()&&Rc(this.getDom(),eO,``);var e=this,t=e._api,n=e._model;I(e._componentsViews,function(e){e.dispose(n,t)}),I(e._chartsViews,function(e){e.dispose(n,t)}),e._zr.dispose(),e._dom=e._model=e._chartsMap=e._componentsMap=e._chartsViews=e._componentsViews=e._scheduler=e._api=e._zr=e._throttledZrFlush=e._theme=e._coordSysMgr=e._messageCenter=null,delete ZD[e.id]},t.prototype.resize=function(e){if(!this[sD]){if(this._disposed){this.id;return}this._zr.resize(e);var t=this._model;if(this._loadingFX&&this._loadingFX.resize(),t){var n=t.resetOption(`media`),r=e&&e.silent;this[lD]&&(r??=this[lD].silent,n=!0,this[lD]=null),this[sD]=!0,zD(this);try{n&&xD(this),wD.update.call(this,{type:`resize`,animation:P({duration:0},e&&e.animation)})}catch(e){throw this[sD]=!1,e}this[sD]=!1,OD.call(this,r),kD.call(this,r)}}},t.prototype.showLoading=function(e,t){if(this._disposed){this.id;return}if(B(e)&&(t=e,e=``),e||=`default`,this.hideLoading(),XD[e]){var n=XD[e](this._api,t),r=this._zr;this._loadingFX=n,r.add(n)}},t.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},t.prototype.makeActionFromEvent=function(e){var t=P({},e);return t.type=WD[e.type],t},t.prototype.dispatchAction=function(e,t){if(this._disposed){this.id;return}if(B(t)||(t={silent:!!t}),UD[e.type]&&this._model){if(this[sD]){this._pendingActions.push(e);return}var n=t.silent;DD.call(this,e,n);var r=t.flush;r?this._zr.flush():r!==!1&&We.browser.weChat&&this._throttledZrFlush(),OD.call(this,n),kD.call(this,n)}},t.prototype.updateLabelLayout=function(){BT.trigger(`series:layoutlabels`,this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(e){if(this._disposed){this.id;return}var t=e.seriesIndex;this.getModel().getSeriesByIndex(t).appendData(e),this._scheduler.unfinished=!0,this.getZr().wakeUp()},t.internalField=function(){xD=function(e){Rb(e._model);var t=e._scheduler;t.restorePipelines(e._zr,e._model),t.prepareStageTasks(),SD(e,!0),SD(e,!1),t.plan()},SD=function(e,t){for(var n=e._model,r=e._scheduler,i=t?e._componentsViews:e._chartsViews,a=t?e._componentsMap:e._chartsMap,o=e._zr,s=e._api,c=0;cV(t.get(`hoverLayerThreshold`),lw.hoverLayerThreshold)&&!We.node&&!We.worker;(e._usingTHL||a)&&(t.eachSeries(function(t){if(!t.preventUsingHoverLayer){var n=e._chartsMap[t.__viewId];n.__alive&&n.eachRendered(function(e){var t=e.states.emphasis;t&&t.hoverLayer!==2&&(t.hoverLayer=+!!a)})}}),e._usingTHL=a)}}function a(e,t){var n=e.get(`blendMode`)||null;t.eachRendered(function(e){e.isGroup||(e.style.blend=n)})}function o(e,t){if(!e.preventAutoZ){var n=Kf(e);t.eachRendered(function(e){return Jf(e,n.z,n.zlevel),!0})}}function s(e,t){t.eachRendered(function(e){if(!ef(e)){var t=e.getTextContent(),n=e.getTextGuideLine();e.stateTransition&&=null,t&&t.stateTransition&&(t.stateTransition=null),n&&n.stateTransition&&(n.stateTransition=null),e.hasState()?(e.prevStates=e.currentStates,e.clearStates()):e.prevStates&&=null}})}function c(e,t){var n=e.getModel(`stateAnimation`),i=e.isAnimationEnabled(),a=n.get(`duration`),o=a>0?{duration:a,delay:n.get(`delay`),easing:n.get(`easing`)}:null;t.eachRendered(function(e){if(e.states&&e.states.emphasis){if(ef(e))return;if(e instanceof Lo&&Eu(e),e.__dirty){var t=e.prevStates;t&&e.useStates(t)}if(i){e.stateTransition=o;var n=e.getTextContent(),a=e.getTextGuideLine();n&&(n.stateTransition=o),a&&(a.stateTransition=o)}e.__dirty&&r(e)}})}FD=function(e){return new(function(t){p(n,t);function n(){return t!==null&&t.apply(this,arguments)||this}return n.prototype.getCoordinateSystems=function(){return e._coordSysMgr.getCoordinateSystems()},n.prototype.getComponentByElement=function(t){for(;t;){var n=t.__ecComponentInfo;if(n!=null)return e._model.getComponent(n.mainType,n.index);t=t.parent}},n.prototype.enterEmphasis=function(t,n){Zl(t,n),LD(e)},n.prototype.leaveEmphasis=function(t,n){Ql(t,n),LD(e)},n.prototype.enterBlur=function(t){$l(t),LD(e)},n.prototype.leaveBlur=function(t){eu(t),LD(e)},n.prototype.enterSelect=function(t){tu(t),LD(e)},n.prototype.leaveSelect=function(t){nu(t),LD(e)},n.prototype.getModel=function(){return e.getModel()},n.prototype.getViewOfComponentModel=function(t){return e.getViewOfComponentModel(t)},n.prototype.getViewOfSeriesModel=function(t){return e.getViewOfSeriesModel(t)},n.prototype.getECUpdateCycleVersion=function(){return e[cD]},n.prototype.usingTHL=function(){return e._usingTHL},n}(yl))(e)},ID=function(e){function t(e,t){for(var n=0;n=0)){pO.push(n);var o=fT.wrapStageHandler(n,i);o.__prio=t,o.__raw=n,e.push(o)}}function hO(e,t){XD[e]=t}function gO(e,t,n){var r=UT(`registerMap`);r&&r(e,t,n)}var _O=I_;fO(QE,oT),fO(tD,cT),fO(tD,lT),fO(QE,PT),fO(tD,FT),fO(aD,VE),iO(Xw),aO(GE,Zw),hO(`default`,dT),lO({type:Dl,event:Dl,update:Dl},Ve),lO({type:Ol,event:Ol,update:Ol},Ve),lO({type:kl,event:Ml,update:kl,action:Ve,refineEvent:vO,publishNonRefinedEvent:!0}),lO({type:Al,event:Ml,update:Al,action:Ve,refineEvent:vO,publishNonRefinedEvent:!0}),lO({type:jl,event:Ml,update:jl,action:Ve,refineEvent:vO,publishNonRefinedEvent:!0});function vO(e,t,n,r){return{eventContent:{selected:pu(n),isFromClick:t.isFromClick||!1}}}rO(`default`,{}),rO(`dark`,AT);var yO=[],bO={registerPreprocessor:iO,registerProcessor:aO,registerPostInit:oO,registerPostUpdate:sO,registerUpdateLifecycle:cO,registerAction:lO,registerCoordinateSystem:uO,registerLayout:dO,registerVisual:fO,registerTransform:_O,registerLoading:hO,registerMap:gO,registerImpl:HT,PRIORITY:oD,ComponentModel:h_,ComponentView:eT,SeriesModel:_v,ChartView:Gv,registerComponentModel:function(e){h_.registerClass(e)},registerComponentView:function(e){eT.registerClass(e)},registerSeriesModel:function(e){_v.registerClass(e)},registerChartView:function(e){Gv.registerClass(e)},registerCustomSeries:function(e,t){GT(e,t)},registerSubTypeDefaulter:function(e,t){h_.registerSubTypeDefaulter(e,t)},registerPainter:function(e,t){tw(e,t)}};function xO(e){if(R(e)){I(e,function(e){xO(e)});return}ae(yO,e)>=0||(yO.push(e),ge(e)&&(e={install:e}),e.install(bO))}var SO=function(){function e(){}return e.prototype.needIncludeZero=function(){return!this.option.scale},e.prototype.getCoordSysModel=function(){},e}(),CO=function(e){p(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents(`grid`,Fc).models[0]},t.type=`cartesian2dAxis`,t}(h_);se(CO,SO);var wO={show:!0,z:0,inverse:!1,name:``,nameLocation:`end`,nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:`...`,placeholder:`.`},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:`auto`,onZeroAxisIndex:null,lineStyle:{color:H.color.axisLine,width:1,type:`solid`},symbol:[`none`,`none`],symbolSize:[10,15],breakLine:!0},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12,color:H.color.axisLabel,textMargin:[0,3]},splitLine:{show:!0,showMinLine:!0,showMaxLine:!0,lineStyle:{color:H.color.axisSplitLine,width:1,type:`solid`}},splitArea:{show:!1,areaStyle:{color:[H.color.backgroundTint,H.color.backgroundTransparent]}},breakArea:{show:!0,itemStyle:{color:H.color.neutral00,borderColor:H.color.border,borderWidth:1,borderType:[3,3],opacity:.6},zigzagAmplitude:4,zigzagMinSpan:4,zigzagMaxSpan:20,zigzagZ:100,expandOnClick:!0},breakLabelLayout:{moveOverlap:`auto`}},TO=N({boundaryGap:!0,deduplication:null,jitter:0,jitterOverlap:!0,jitterMargin:2,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:`auto`,show:`auto`},axisLabel:{interval:`auto`}},wO),EO=N({boundaryGap:[0,0],axisLine:{show:`auto`},axisTick:{show:`auto`},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:H.color.axisMinorSplitLine,width:1}}},wO),DO={category:TO,value:EO,time:N({splitNumber:6,axisLabel:{rich:{primary:{fontWeight:`bold`}}},splitLine:{show:!1}},EO),log:F({logBase:10},EO)};function OO(e,t,n,r){I(Xy,function(i,a){var o=N(N({},DO[a],!0),r,!0),s=function(e){p(n,e);function n(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t+`Axis.`+a,n}return n.prototype.mergeDefaultAndTheme=function(e,t){var n=u_(this),r=n?f_(e):{};N(e,t.getTheme().get(a+`Axis`)),N(e,this.getDefaultOption()),e.type=kO(e),n&&d_(e,r,n)},n.prototype.optionUpdated=function(){this.option.type===`category`&&(this.__ordinalMeta=ty.createByAxisModel(this))},n.prototype.getCategories=function(e){var t=this.option;if(t.type===`category`)return e?t.data:this.__ordinalMeta.categories},n.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},n.prototype.updateAxisBreaks=function(e){var t=Tx();return t?t.updateModelAxisBreak(this,e):{breaks:[]}},n.type=t+`Axis.`+a,n.defaultOption=o,n}(n);e.registerComponentModel(s)}),e.registerSubTypeDefaulter(t+`Axis`,kO)}function kO(e){return e.type||(e.data?`category`:`value`)}var AO=function(){function e(e){this.type=`cartesian`,this._dimList=[],this._axes={},this.name=e||``}return e.prototype.getAxis=function(e){return this._axes[e]},e.prototype.getAxes=function(){return L(this._dimList,function(e){return this._axes[e]},this)},e.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),ue(this.getAxes(),function(t){return t.scale.type===e})},e.prototype.addAxis=function(e){var t=e.dim;this._axes[t]=e,this._dimList.push(t)},e}(),jO=[`x`,`y`];function MO(e){return(e.type===`interval`||e.type===`time`)&&!cg(e)}var NO=function(e){p(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=OS,t.dimensions=jO,t}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var e=this.getAxis(`x`).scale,t=this.getAxis(`y`).scale;if(!(!MO(e)||!MO(t))){var n=cy(e,null),r=cy(t,null),i=this.dataToPoint([n[0],r[0]]),a=this.dataToPoint([n[1],r[1]]),o=n[1]-n[0],s=r[1]-r[0];if(!(!o||!s)){var c=(a[0]-i[0])/o,l=(a[1]-i[1])/s,u=i[0]-n[0]*c,d=i[1]-r[0]*l,f=this._transform=[c,0,0,l,u,d];this._invTransform=wt([],f)}}},t.prototype.getBaseAxis=function(){return this.getAxesByScale(`ordinal`)[0]||this.getAxesByScale(`time`)[0]||this.getAxis(`x`)},t.prototype.containPoint=function(e){var t=this.getAxis(`x`),n=this.getAxis(`y`);return t.contain(t.toLocalCoord(e[0]))&&n.contain(n.toLocalCoord(e[1]))},t.prototype.containData=function(e){return this.getAxis(`x`).containData(e[0])&&this.getAxis(`y`).containData(e[1])},t.prototype.containZone=function(e,t){var n=this.dataToPoint(e),r=this.dataToPoint(t),i=this.getArea(),a=new rn(n[0],n[1],r[0]-n[0],r[1]-n[1]);return i.intersect(a)},t.prototype.dataToPoint=function(e,t,n){n||=[];var r=e[0],i=e[1];if(this._transform&&r!=null&&isFinite(r)&&i!=null&&isFinite(i))return Bt(n,e,this._transform);var a=this.getAxis(`x`),o=this.getAxis(`y`);return n[0]=a.toGlobalCoord(a.dataToCoord(r,t)),n[1]=o.toGlobalCoord(o.dataToCoord(i,t)),n},t.prototype.clampData=function(e,t){var n=this.getAxis(`x`).scale,r=this.getAxis(`y`).scale,i=n.getExtent(),a=r.getExtent(),o=n.parse(e[0]),s=r.parse(e[1]);return t||=[],t[0]=Math.min(Math.max(Math.min(i[0],i[1]),o),Math.max(i[0],i[1])),t[1]=Math.min(Math.max(Math.min(a[0],a[1]),s),Math.max(a[0],a[1])),t},t.prototype.pointToData=function(e,t,n){if(n||=[],this._invTransform)return Bt(n,e,this._invTransform);var r=this.getAxis(`x`),i=this.getAxis(`y`);return n[0]=r.coordToData(r.toLocalCoord(e[0]),t),n[1]=i.coordToData(i.toLocalCoord(e[1]),t),n},t.prototype.getOtherAxis=function(e){return this.getAxis(e.dim===`x`?`y`:`x`)},t.prototype.getArea=function(e){e||=0;var t=this.getAxis(`x`).getGlobalExtent(),n=this.getAxis(`y`).getGlobalExtent(),r=Math.min(t[0],t[1])-e,i=Math.min(n[0],n[1])-e;return new rn(r,i,Math.max(t[0],t[1])-r+e,Math.max(n[0],n[1])-i+e)},t}(AO);function PO(e,t){var n=e.scale,r=e.model,i=CS(n,r,r.ecModel,e,null),a=_y(n),o=_y(t)?t.intervalStub:t,s=a?n.intervalStub:n,c=n.base,l=o.getTicks(),u=o.getTicks({expandToNicedExtent:!0}),d=l.length-1,f,p,m;if(d===1)f=p=0,m=1;else if(d===2){var h=xs(l[0].value-l[1].value),g=xs(l[1].value-l[2].value);f=p=0,h===g?m=2:(m=1,h=C[1])return!0})):b[1]?(T=C[1],ee(function(){if(j(),k=Is(O-E*m,D),te(),w<=C[0])return!0})):ee(function(){k=Is(ws(C[0]/E)*E,D),O=Is(Cs(C[1]/E)*E,D);var e=Ss((O-k)/E);if(e<=m){var t=m-e,n=void 0,r=i.incl0||a;if(r&&C[0]===0)n=[0,t];else if(r&&C[1]===0)n=[t,0];else{var o=Cs(t/2);n=t%2==0?[o,o]:w+T=C[1])return!0}})}fb(n,b,S,[w,T],x,{interval:E,intervalCount:m,intervalPrecision:D,niceExtent:[k,O]})}function FO(e,t){var n=_y(e),r=n?e.intervalStub:e,i=t.fixMinMax||[],a=n?e.getExtent():null,o=r.getExtent(),s=Cy(o,i,t.rawExtentResult);r.setExtent(s[0],s[1]),s=r.getExtent();var c=n?LO(r,t):IO(r,t),l=c.intervalPrecision,u=c.interval,d=t.userInterval;d!=null&&(c.interval=d,c.intervalPrecision=by(d)),i[0]||(s[0]=Is(Cs(s[0]/u)*u,l)),i[1]||(s[1]=Is(ws(s[1]/u)*u,l)),d!=null&&(c.niceExtent=s.slice()),fb(e,i,o,s,a,c)}function IO(e,t){var n=Ty(t.splitNumber,5),r=uy(e),i=t.minInterval,a=t.maxInterval,o=Js(r/n,!0);i!=null&&oa&&(o=a);var s=by(o),c=e.getExtent(),l=[Is(ws(c[0]/o)*o,s),Is(Cs(c[1]/o)*o,s)];return{interval:o,intervalPrecision:s,niceExtent:l}}function LO(e,t){var n=Ty(t.splitNumber,10),r=e.getExtent(),i=uy(e),a=bs(Ks(i),1);n/i*a<=.5&&(a*=10);var o=by(a),s=[Is(ws(r[0]/a)*a,o),Is(Cs(r[1]/a)*a,o)];return{intervalPrecision:o,interval:a,niceExtent:s}}function RO(e){var t=e.scale,n=e.model,r=n.axis,i=n.ecModel;zO(t,n,r,i,null)}function zO(e,t,n,r,i){var a=CS(e,t,r,n,i),o=hy(e)||gy(e);BO(e,{splitNumber:t.get(`splitNumber`),fixMinMax:a.fixMM,userInterval:t.get(`interval`),minInterval:o?t.get(`minInterval`):null,maxInterval:o?t.get(`maxInterval`):null,rawExtentResult:a}),n&&r&&TS(n,e,a,r)}function BO(e,t){VO[e.type](e,t)}var VO={interval:FO,log:FO,time:Hy,ordinal:Ve},HO=[[3,1],[0,2]],UO=function(){function e(e,t,n){this.type=`grid`,this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=jO,this._initCartesian(e,t,n),this.model=e}return e.prototype.getRect=function(){return this._rect},e.prototype.update=function(e,t){var n=this._axesMap;I(this._axesList,function(e){vS(e,1);var t=e.scale;vy(t)&&t.setSortInfo(e.model.get(`categorySortInfo`))});function r(e){for(var t=fe(e),n=[],r=t.length-1;r>=0;r--){var i=e[+t[r]];i.__alignTo?n.push(i):RO(i)}I(n,function(e){JO(e,e.__alignTo)?RO(e):PO(e,e.__alignTo.scale)})}r(n.x),r(n.y);var i={};I(n.x,function(e){GO(n,`y`,e,i)}),I(n.y,function(e){GO(n,`x`,e,i)}),this.resize(this.model,t)},e.prototype.resize=function(e,t,n){var r=c_(e,t),i=this._rect=a_(e.getBoxLayoutParams(),r.refContainer),a=this._axesMap,o=this._coordsList,s=e.get(`containLabel`);if(XO(a,i),!n){var c=ek(i,o,a,s,t),l=void 0;if(s)QO?(QO(this._axesList,i),XO(a,i)):l=$O(i.clone(),`axisLabel`,null,i,a,c,r);else{var u=nk(e,i,r),d=u.outerBoundsRect,f=u.parsedOuterBoundsContain,p=u.outerBoundsClamp;d&&(l=$O(d,f,p,i,a,c,r))}tk(i,a,_b.determine,null,l,r),I(this._coordsList,function(e){e.calcAffineTransform()})}},e.prototype.getAxis=function(e,t){var n=this._axesMap[e];if(n!=null)return n[t||0]},e.prototype.getAxes=function(){return this._axesList.slice()},e.prototype.getCartesian=function(e,t){if(e!=null&&t!=null){var n=`x`+e+`y`+t;return this._coordsMap[n]}B(e)&&(t=e.yAxisIndex,e=e.xAxisIndex);for(var r=0,i=this._coordsList;r=0;i--){var a=e[+t[i]];my(a.scale)&&ub(a.model,a.type,!0)==null&&(a.model.get(`alignTicks`)&&a.model.get(`interval`)==null?r.push(a):n=a)}n||=r.pop(),n&&I(r,function(e){e.__alignTo=n})}function JO(e,t){return cg(e.scale)||cg(t.scale)||t.scale.getTicks().length<2}function YO(e,t){var n=e.getExtent(),r=n[0]+n[1];e.toGlobalCoord=e.dim===`x`?function(e){return e+t}:function(e){return r-e+t},e.toLocalCoord=e.dim===`x`?function(e){return e-t}:function(e){return r-e+t}}function XO(e,t){I(e.x,function(e){return ZO(e,t.x,t.width)}),I(e.y,function(e){return ZO(e,t.y,t.height)})}function ZO(e,t,n){var r=[0,n],i=+!!e.inverse;e.setExtent(r[i],r[1-i]),YO(e,t)}var QO;function $O(e,t,n,r,i,a,o){tk(r,i,_b.estimate,t,!1,o);var s=[0,0,0,0];l(0),l(1),u(r,0,NaN),u(r,1,NaN);var c=de(s,function(e){return e>0})==null;return If(r,s,!0,!0,n),XO(i,r),c;function l(e){I(i[cf[e]],function(t){if(lb(t.model)){var n=a.ensureRecord(t.model),r=n.labelInfoList;if(r)for(var i=0;i0&&!Ce(t)&&t>1e-4&&(e/=t),e}}function ek(e,t,n,r,i){var a=new Mx(rk);return I(n,function(n){return I(n,function(n){if(lb(n.model)){var o=!r;n.axisBuilder=sS(e,t,n.model,i,a,o)}})}),a}function tk(e,t,n,r,i,a){var o=n===_b.determine;I(t,function(t){return I(t,function(t){lb(t.model)&&(cS(t.axisBuilder,e,t.model),t.axisBuilder.build(o?{axisTickLabelDetermine:!0}:{axisTickLabelEstimate:!0},{noPxChange:i}))})});var s={x:0,y:0};c(0),c(1);function c(t){s[cf[1-t]]=e[lf[t]]<=a.refContainer[lf[t]]*.5?0:1-t==1?2:1}I(t,function(e,t){return I(e,function(e){lb(e.model)&&((r===`all`||o)&&e.axisBuilder.build({axisName:!0},{nameMarginLevel:s[t]}),o&&e.axisBuilder.build({axisLine:!0}))})})}function nk(e,t,n){var r,i=e.get(`outerBoundsMode`,!0);i===`same`?r=t.clone():(i==null||i===`auto`)&&(r=a_(e.get(`outerBounds`,!0)||ES,n.refContainer));var a=e.get(`outerBoundsContain`,!0),o=a==null||a===`auto`||ae([`all`,`axisLabel`],a)<0?`all`:a,s=[Ns(V(e.get(`outerBoundsClampWidth`,!0),DS[0]),t.width),Ns(V(e.get(`outerBoundsClampHeight`,!0),DS[1]),t.height)];return{outerBoundsRect:r,parsedOuterBoundsContain:o,outerBoundsClamp:s}}var rk=function(e,t,n,r,i,a){var o=n.axis.dim===`x`?`y`:`x`;Ix(e,t,n,r,i,a),cb(e.nameLocation)||I(t.recordMap[o],function(e){e&&e.labelInfoList&&e.dirVec&&Rx(e.labelInfoList,e.dirVec,r,i)})};function ik(e,t){var n={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return ak(n,e,t),n.seriesInvolved&&sk(n,e),n}function ak(e,t,n){var r=t.getComponent(`tooltip`),i=t.getComponent(`axisPointer`),a=i.get(`link`,!0)||[],o=[];I(n.getCoordinateSystems(),function(n){if(!n.axisPointerEnabled)return;var s=mk(n.model),c=e.coordSysAxesInfo[s]={};e.coordSysMap[s]=n;var l=n.model.getModel(`tooltip`,r);if(I(n.getAxes(),he(p,!1,null)),n.getTooltipAxes&&r&&l.get(`show`)){var u=l.get(`trigger`)===`axis`,d=l.get([`axisPointer`,`type`])===`cross`,f=n.getTooltipAxes(l.get([`axisPointer`,`axis`]));(u||d)&&I(f.baseAxes,he(p,!d||`cross`,u)),d&&I(f.otherAxes,he(p,`cross`,!1))}function p(r,s,u){var d=u.model.getModel(`axisPointer`,i),f=d.get(`show`);if(!(!f||f===`auto`&&!r&&!pk(d))){s??=d.get(`triggerTooltip`),d=r?ok(u,l,i,t,r,s):d;var p=d.get(`snap`),m=d.get(`triggerEmphasis`),h=mk(u.model),g=s||p||u.type===`category`,_=e.axesInfo[h]={key:h,axis:u,coordSys:n,axisPointerModel:d,triggerTooltip:s,triggerEmphasis:m,involveSeries:g,snap:p,useHandle:pk(d),seriesModels:[],linkGroup:null};c[h]=_,e.seriesInvolved=e.seriesInvolved||g;var v=ck(a,u);if(v!=null){var y=o[v]||(o[v]={axesInfo:{}});y.axesInfo[h]=_,y.mapper=a[v].mapper,_.linkGroup=y}}}})}function ok(e,t,n,r,i,a){var o=t.getModel(`axisPointer`),s=[`type`,`snap`,`lineStyle`,`shadowStyle`,`label`,`animation`,`animationDurationUpdate`,`animationEasingUpdate`,`z`],c={};I(s,function(e){c[e]=M(o.get(e))}),c.snap=e.type!==`category`&&!!a,o.get(`type`)===`cross`&&(c.type=`line`);var l=c.label||={};if(l.show??=!1,i===`cross`&&(l.show=o.get([`label`,`show`])??!0,!a)){var u=c.lineStyle=o.get(`crossStyle`);u&&F(l,u.textStyle)}return e.model.getModel(`axisPointer`,new Ep(c,n,r))}function sk(e,t){t.eachSeries(function(t){var n=t.coordinateSystem,r=t.get([`tooltip`,`trigger`],!0),i=t.get([`tooltip`,`show`],!0);!n||!n.model||r===`none`||r===!1||r===`item`||i===!1||t.get([`axisPointer`,`show`],!0)===!1||I(e.coordSysAxesInfo[mk(n.model)],function(e){var r=e.axis;n.getAxis(r.dim)===r&&(e.seriesModels.push(t),e.seriesDataCount??=0,e.seriesDataCount+=t.getData().count())})})}function ck(e,t){for(var n=t.model,r=t.dim,i=0;i=0||e===t}function uk(e){var t=dk(e);if(t){var n=t.axisPointerModel,r=t.axis.scale,i=n.option,a=n.get(`status`),o=n.get(`value`);o!=null&&(o=r.parse(o));var s=pk(n);a??(i.status=s?`show`:`hide`);var c=r.getExtent();(o==null||o>c[1])&&(o=c[1]),o3?1.4:i>1?1.2:1.1,c=r>0?s:1/s;this._checkTriggerMoveZoom(this,`zoom`,`zoomOnMouseWheel`,e,{scale:c,originX:a,originY:o,isAvailableBehavior:null})}if(n){var l=Math.abs(r),u=(r>0?1:-1)*(l>3?.4:l>1?.15:.05);this._checkTriggerMoveZoom(this,`scrollMove`,`moveOnMouseWheel`,e,{scrollDelta:u,originX:a,originY:o,isAvailableBehavior:null})}}}},t.prototype._pinchHandler=function(e){if(!(kk(this._zr,`globalPan`)||Nk(e))){var t=e.pinchScale>1?1.1:1/1.1;this._checkTriggerMoveZoom(this,`zoom`,null,e,{scale:t,originX:e.pinchX,originY:e.pinchY,isAvailableBehavior:null})}},t.prototype._checkTriggerMoveZoom=function(e,t,n,r,i){e._checkPointer(r,i.originX,i.originY)&&(XS(r.event),r.__ecRoamConsumed=!0,Bk(e,t,n,r,i))},t}($i);function Nk(e){return e.__ecRoamConsumed}var Pk=jc();function Fk(e){var t=Pk(e);return t.roam=t.roam||{},t.uniform=t.uniform||{},t}function Ik(e,t,n,r){for(var i=Fk(e).roam,a=i[t]=i[t]||[],o=0;o1e-6;MA[0]=o?(i[0]-r.x)/a:i[0],MA[1]=o?(i[1]-r.y)/a:i[1],Bt(MA,MA,e.mtRawInv);var s=OA(e,MA);NA(t,s,a),I(n,function(e){e!==t&&NA(e,s.slice(),a)})}var MA=[];function NA(e,t,n){var r=e.option;r.center=t,r.zoom=n}function PA(e,t){if(t){var n=t.min||0,r=t.max||1/0;e=Math.max(Math.min(r,e),n)}return e}function FA(e,t){var n=t.getShallow(`nodeScaleRatio`,!0)||1,r=Hk(e);return((r.zoom-1)*n+1)/(r.trans[2].scaleX||1)}function IA(e,t,n,r,i,a,o,s){if(!CA(e)){n.disable();return}n.enable(V(e.get(`roam`),o),{api:t,zInfo:{component:e},triggerInfo:{roamTrigger:e.get(`roamTrigger`),isInSelf:r,isInClip:function(e,t,n){return!i||i.contain(t,n)}}});function c(n){var r=e.mainType,i=Xf(F({type:BA(r,e.subType,_l)},n));s&&(i.componentType=r),i[r+`Id`]=e.id,t.dispatchAction(i)}n.off(`pan`).off(`zoom`).on(`pan`,function(e){a&&a(`pan`),c({dx:e.dx,dy:e.dy})}).on(`zoom`,function(e){a&&a(`zoom`),c({zoom:e.scale,originX:e.originX,originY:e.originY})})}function LA(e){return function(t,n,r){return RA.copy(e.getBoundingRect()),RA.applyTransform(e.getComputedTransform()),RA.contain(n,r)}}var RA=new rn(0,0,0,0);function zA(e,t,n){var r=BA(t,n,_l);e.registerAction({type:r,event:r,update:`none`},function(e,r,i){r.eachComponent(Lc(e,t,n),function(t){SA(e,t),wA(e,t,r,i)})})}function BA(e,t,n){return(e===`series`?t===`map`?`geo`:t:e)+n}function VA(e){return e.zoom!=null}function HA(e,t,n,r,i,a,o){var s=new Wk(null,AA(e.ecModel,t));return tA(s,n,r,i,a),o?nA(s,o.x,o.y,o.width,o.height):nA(s,n,r,i,a),eA(s,e),s}var UA=jc();function WA(e){var t=e.mainData,n=e.datas;n||(n={main:t},e.datasAttr={main:`data`}),e.datas=e.mainData=null,ZA(t,n,e),I(n,function(n){I(t.TRANSFERABLE_METHODS,function(t){n.wrapMethod(t,he(GA,e))})}),t.wrapMethod(`cloneShallow`,he(qA,e)),I(t.CHANGABLE_METHODS,function(n){t.wrapMethod(n,he(KA,e))}),Oe(n[t.dataType]===t)}function GA(e,t){if(XA(this)){var n=P({},UA(this).datas);n[this.dataType]=t,ZA(t,n,e)}else QA(t,this.dataType,UA(this).mainData,e);return t}function KA(e,t){return e.struct&&e.struct.update(),t}function qA(e,t){return I(UA(t).datas,function(n,r){n!==t&&QA(n.cloneShallow(),r,t,e)}),t}function JA(e){var t=UA(this).mainData;return e==null||t==null?t:UA(t).datas[e]}function YA(){var e=UA(this).mainData;return e==null?[{data:e}]:L(fe(UA(e).datas),function(t){return{type:t,data:UA(e).datas[t]}})}function XA(e){return UA(e).mainData===e}function ZA(e,t,n){UA(e).datas={},I(t,function(t,r){QA(t,r,e,n)})}function QA(e,t,n,r){UA(n).datas[t]=e,UA(e).mainData=n,e.dataType=t,r.struct&&(e[r.structAttr]=r.struct,r.struct[r.datasAttr[t]]=e),e.getLinkedData=JA,e.getLinkedDataAll=YA}var $A=I,ej=B,tj=-1,nj=function(){function e(t){var n=t.mappingMethod,r=t.type,i=this.option=M(t);this.type=r,this.mappingMethod=n,this._normalizeData=mj[n];var a=e.visualHandlers[r];this.applyVisual=a.applyVisual,this.getColorMapper=a.getColorMapper,this._normalizedToVisual=a._normalizedToVisual[n],n===`piecewise`?(aj(i),rj(i)):n===`category`?i.categories?ij(i):aj(i,!0):(Oe(n!==`linear`||i.dataExtent),aj(i))}return e.prototype.mapValueToVisual=function(e){var t=this._normalizeData(e);return this._normalizedToVisual(t,e)},e.prototype.getNormalizer=function(){return me(this._normalizeData,this)},e.listVisualTypes=function(){return fe(e.visualHandlers)},e.isValidType=function(t){return e.visualHandlers.hasOwnProperty(t)},e.eachVisual=function(e,t,n){B(e)?I(e,t,n):t.call(n,e)},e.mapVisual=function(t,n,r){var i,a=R(t)?[]:B(t)?{}:(i=!0,null);return e.eachVisual(t,function(e,t){var o=n.call(r,e,t);i?a=o:a[t]=o}),a},e.retrieveVisuals=function(t){var n={},r;return t&&$A(e.visualHandlers,function(e,i){t.hasOwnProperty(i)&&(n[i]=t[i],r=!0)}),r?n:null},e.prepareVisualTypes=function(e){if(R(e))e=e.slice();else if(ej(e)){var t=[];$A(e,function(e,n){t.push(n)}),e=t}else return[];return e.sort(function(e,t){return t===`color`&&e!==`color`&&e.indexOf(`color`)===0?1:-1}),e},e.dependsOn=function(e,t){return t===`color`?!!(e&&e.indexOf(t)===0):e===t},e.findPieceIndex=function(e,t,n){for(var r,i=1/0,a=0,o=t.length;a=0;a--)r[a]??(delete n[t[a]],t.pop())}function aj(e,t){var n=e.visual,r=[];B(n)?$A(n,function(e){r.push(e)}):n!=null&&r.push(n),!t&&r.length===1&&!{color:1,symbol:1}.hasOwnProperty(e.type)&&(r[1]=r[0]),pj(e,r)}function oj(e){return{applyVisual:function(t,n,r){var i=this.mapValueToVisual(t);r(`color`,e(n(`color`),i))},_normalizedToVisual:dj([0,1])}}function sj(e){var t=this.option.visual;return t[Math.round(As(e,[0,1],[0,t.length-1],!0))]||{}}function cj(e){return function(t,n,r){r(e,this.mapValueToVisual(t))}}function lj(e){var t=this.option.visual;return t[this.option.loop&&e!==tj?e%t.length:e]}function uj(){return this.option.visual[0]}function dj(e){return{linear:function(t){return As(t,e,this.option.visual,!0)},category:lj,piecewise:function(t,n){var r=fj.call(this,n);return r??=As(t,e,this.option.visual,!0),r},fixed:uj}}function fj(e){var t=this.option,n=t.pieceList;if(t.hasSpecialVisual){var r=n[nj.findPieceIndex(e,n)];if(r&&r.visual)return r.visual[this.type]}}function pj(e,t){return e.visual=t,e.type===`color`&&(e.parsedVisual=L(t,function(e){return Qr(e)||[0,0,0,1]})),t}var mj={linear:function(e){return As(e,this.option.dataExtent,[0,1],!0)},piecewise:function(e){var t=this.option.pieceList,n=nj.findPieceIndex(e,t,!0);if(n!=null)return As(n,[0,t.length-1],[0,1],!0)},category:function(e){return(this.option.categories?this.option.categoryMap[e]:e)??tj},fixed:Ve};function hj(e,t,n){return e?t<=n:t=0&&e.call(t,n[i],i)},e.prototype.eachEdge=function(e,t){for(var n=this.edges,r=n.length,i=0;i=0&&n[i].node1.dataIndex>=0&&n[i].node2.dataIndex>=0&&e.call(t,n[i],i)},e.prototype.breadthFirstTraverse=function(e,t,n,r){if(t instanceof vj||(t=this._nodesMap[gj(t)]),t){for(var i=n===`out`?`outEdges`:n===`in`?`inEdges`:`edges`,a=0;a=0&&n.node2.dataIndex>=0});for(var i=0,a=r.length;i=0&&!e.hasKey(p)&&(e.set(p,!0),a.push(f.node1))}for(s=0;s=0&&!e.hasKey(v)&&(e.set(v,!0),o.push(_.node2))}}}return{edge:e.keys(),node:t.keys()}},e}(),yj=function(){function e(e,t,n){this.dataIndex=-1,this.node1=e,this.node2=t,this.dataIndex=n??-1}return e.prototype.getModel=function(e){if(!(this.dataIndex<0))return this.hostGraph.edgeData.getItemModel(this.dataIndex).getModel(e)},e.prototype.getAdjacentDataIndices=function(){return{edge:[this.dataIndex],node:[this.node1.dataIndex,this.node2.dataIndex]}},e.prototype.getTrajectoryDataIndices=function(){var e=Le(),t=Le();e.set(this.dataIndex,!0);for(var n=[this.node1],r=[this.node2],i=0;i=0&&!e.hasKey(u)&&(e.set(u,!0),n.push(l.node1))}for(i=0;i=0&&!e.hasKey(m)&&(e.set(m,!0),r.push(p.node2))}return{edge:e.keys(),node:t.keys()}},e}();function bj(e,t){return{getValue:function(n){var r=this[e][t];return r.getStore().get(r.getDimensionIndex(n||`value`),this.dataIndex)},setVisual:function(n,r){this.dataIndex>=0&&this[e][t].setItemVisual(this.dataIndex,n,r)},getVisual:function(n){return this[e][t].getItemVisual(this.dataIndex,n)},setLayout:function(n,r){this.dataIndex>=0&&this[e][t].setItemLayout(this.dataIndex,n,r)},getLayout:function(){return this[e][t].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[e][t].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[e][t].getRawIndex(this.dataIndex)}}}se(vj,bj(`hostGraph`,`data`)),se(yj,bj(`hostGraph`,`edgeData`));function xj(e,t,n,r,i){for(var a=new _j(r),o=0;o `+f)),l++)}var p=n.get(`coordinateSystem`),m;if(p===`cartesian2d`||p===`polar`||p===`matrix`)m=wh(e,n);else{var h=ch.get(p),g=h&&h.dimensions||[];ae(g,`value`)<0&&g.concat([`value`]);var _=rh(e,{coordDimensions:g,encodeDefine:n.getEncode()}).dimensions;m=new nh(_,n),m.initData(e)}var v=new nh([`value`],n);return v.initData(c,s),i&&i(m,v),WA({mainData:m,struct:a,structAttr:`graph`,datas:{node:m,edge:v},datasAttr:{node:`data`,edge:`edgeData`}}),a.update(),a}var Sj=`-->`,Cj=function(e){return e.get(`autoCurveness`)||null},wj=function(e,t){var n=Cj(e),r=20,i=[];if(ve(n))r=n;else if(R(n)){e.__curvenessList=n;return}t>r&&(r=t);var a=r%2?r+2:r+3;i=[];for(var o=0;o `),value:i.value,noValue:i.value==null})}return pv({series:this,dataIndex:e,multipleSeries:t})},t.prototype._updateCategoriesData=function(){var e=L(this.option.categories||[],function(e){return e.value==null?P({value:0},e):e}),t=new nh([`value`],this);t.initData(e),this._categoriesData=t,this._categoriesModels=t.mapArray(function(e){return t.getItemModel(e)})},t.prototype.isAnimationEnabled=function(){return e.prototype.isAnimationEnabled.call(this)&&!(this.get(`layout`)===`force`&&this.get([`force`,`layoutAnimation`]))},t.prototype.__ownRoamView=function(){var e=this.coordinateSystem;return _A(e)&&e},t.type=`series.`+Nj,t.dependencies=[`grid`,`polar`,`geo`,`singleAxis`,`calendar`],t.defaultOption={z:2,coordinateSystem:`view`,legendHoverLink:!0,layout:null,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,friction:.6,edgeLength:30,layoutAnimation:!0},left:`center`,top:`center`,symbol:`circle`,symbolSize:10,edgeSymbol:[`none`,`none`],edgeSymbolSize:10,edgeLabel:{position:`middle`,distance:5},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:`{b}`},itemStyle:{},lineStyle:{color:H.color.neutral50,width:1,opacity:.5},emphasis:{scale:!0,label:{show:!0}},select:{itemStyle:{borderColor:H.color.primary}}},t}(_v);function Fj(e){return e instanceof Array||(e=[e,e]),e}var Ij=il(Nj,Lj);function Lj(e){e.eachSeriesByType(Nj,function(e){var t=e.getGraph(),n=e.getEdgeData(),r=Fj(e.get(`edgeSymbol`)),i=Fj(e.get(`edgeSymbolSize`));n.setVisual(`fromSymbol`,r&&r[0]),n.setVisual(`toSymbol`,r&&r[1]),n.setVisual(`fromSymbolSize`,i&&i[0]),n.setVisual(`toSymbolSize`,i&&i[1]),n.setVisual(`style`,e.getModel(`lineStyle`).getLineStyle()),n.each(function(e){var r=n.getItemModel(e),i=t.getEdgeByIndex(e),a=Fj(r.getShallow(`symbol`,!0)),o=Fj(r.getShallow(`symbolSize`,!0)),s=r.getModel(`lineStyle`).getLineStyle(),c=n.ensureUniqueItemVisual(e,`style`);switch(P(c,s),c.stroke){case`source`:var l=i.node1.getVisual(`style`);c.stroke=l&&l.fill;break;case`target`:var l=i.node2.getVisual(`style`);c.stroke=l&&l.fill}a[0]&&i.setVisual(`fromSymbol`,a[0]),a[1]&&i.setVisual(`toSymbol`,a[1]),o[0]&&i.setVisual(`fromSymbolSize`,o[0]),o[1]&&i.setVisual(`toSymbolSize`,o[1])})})}function Rj(e){var t=e.coordinateSystem;if(!(t&&t.type!==`view`)){var n=e.getGraph();n.eachNode(function(e){var t=e.getModel();e.setLayout([+t.get(`x`),+t.get(`y`)])}),zj(n,e)}}function zj(e,t){e.eachEdge(function(e,n){var r=Te(e.getModel().get([`lineStyle`,`curveness`]),-Mj(e,t,n,!0),0),i=Dt(e.node1.getLayout()),a=Dt(e.node2.getLayout()),o=[i,a];+r&&o.push([(i[0]+a[0])/2-(i[1]-a[1])*r,(i[1]+a[1])/2-(a[0]-i[0])*r]),e.setLayout(o)})}var Bj=il(Nj,Vj);function Vj(e,t){e.eachSeriesByType(Nj,function(e){var t=e.get(`layout`),n=e.coordinateSystem;if(n&&n.type!==`view`){var r=e.getData(),i=[];I(n.dimensions,function(e){i=i.concat(r.mapDimensionsAll(e))});for(var a=0;a0&&(y[0]=-y[0],y[1]=-y[1]);var x=v[0]<0?-1:1;if(r.__position!==`start`&&r.__position!==`end`){var S=-Math.atan2(v[1],v[0]);l[0].8?`left`:u[0]<-.8?`right`:`center`,p=u[1]>.8?`top`:u[1]<-.8?`bottom`:`middle`;break;case`start`:r.x=-u[0]*h+c[0],r.y=-u[1]*g+c[1],f=u[0]>.8?`right`:u[0]<-.8?`left`:`center`,p=u[1]>.8?`bottom`:u[1]<-.8?`top`:`middle`;break;case`insideStartTop`:case`insideStart`:case`insideStartBottom`:r.x=h*x+c[0],r.y=c[1]+C,f=v[0]<0?`right`:`left`,r.originX=-h*x,r.originY=-C;break;case`insideMiddleTop`:case`insideMiddle`:case`insideMiddleBottom`:case`middle`:r.x=b[0],r.y=b[1]+C,f=`center`,r.originY=-C;break;case`insideEndTop`:case`insideEnd`:case`insideEndBottom`:r.x=-h*x+l[0],r.y=l[1]+C,f=v[0]>=0?`right`:`left`,r.originX=h*x,r.originY=-C}r.scaleX=r.scaleY=i,r.setStyle({verticalAlign:r.__verticalAlign||p,align:r.__align||f})}},t}(Yu),hM=function(){function e(e){this.group=new Yu,this._LineCtor=e||mM}return e.prototype.updateData=function(e){var t=this;this._progressiveEls=null;var n=this,r=n.group,i=n._lineData;n._lineData=e,i||r.removeAll();var a=_M(e);e.diff(i).add(function(n){t._doAdd(e,n,a)}).update(function(n,r){t._doUpdate(i,e,r,n,a)}).remove(function(e){r.remove(i.getItemGraphicEl(e))}).execute()},e.prototype.updateLayout=function(){var e=this._lineData;e&&e.eachItemGraphicEl(function(t,n){t.updateLayout(e,n)},this)},e.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=_M(e),this._lineData=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(e,t,n){this._progressiveEls=[];function r(e){!e.isGroup&&!gM(e)&&(e.incremental=n,e.ensureState(`emphasis`).hoverLayer=2)}for(var i=e.start;i0}function _M(e){var t=e.hostModel,n=t.getModel(`emphasis`);return{lineStyle:t.getModel(`lineStyle`).getLineStyle(),emphasisLineStyle:n.getModel([`lineStyle`]).getLineStyle(),blurLineStyle:t.getModel([`blur`,`lineStyle`]).getLineStyle(),selectLineStyle:t.getModel([`select`,`lineStyle`]).getLineStyle(),emphasisDisabled:n.get(`disabled`),blurScope:n.get(`blurScope`),focus:n.get(`focus`),labelStatesModels:ip(t)}}function vM(e){return isNaN(e[0])||isNaN(e[1])}function yM(e){return e&&!vM(e[0])&&!vM(e[1])}var bM=[],xM=[],SM=[],CM=kr,wM=zt,TM=Math.abs;function EM(e,t,n){for(var r=e[0],i=e[1],a=e[2],o=1/0,s,c=n*n,l=.1,u=.1;u<=.9;u+=.1){bM[0]=CM(r[0],i[0],a[0],u),bM[1]=CM(r[1],i[1],a[1],u);var d=TM(wM(bM,t)-c);d=0?s+=l:s-=l:m>=0?s-=l:s+=l}return s}function DM(e,t){var n=[],r=Nr,i=[[],[],[]],a=[[],[]],o=[];t/=2,e.eachEdge(function(e,s){var c=e.getLayout(),l=e.getVisual(`fromSymbol`),u=e.getVisual(`toSymbol`);c.__original||(c.__original=[Dt(c[0]),Dt(c[1])],c[2]&&c.__original.push(Dt(c[2])));var d=c.__original;if(c[2]!=null){if(Et(i[0],d[0]),Et(i[1],d[2]),Et(i[2],d[1]),l&&l!==`none`){var f=Uj(e.node1),p=EM(i,d[0],f*t);r(i[0][0],i[1][0],i[2][0],p,n),i[0][0]=n[3],i[1][0]=n[4],r(i[0][1],i[1][1],i[2][1],p,n),i[0][1]=n[3],i[1][1]=n[4]}if(u&&u!==`none`){var f=Uj(e.node2),p=EM(i,d[1],f*t);r(i[0][0],i[1][0],i[2][0],p,n),i[1][0]=n[1],i[2][0]=n[2],r(i[0][1],i[1][1],i[2][1],p,n),i[1][1]=n[1],i[2][1]=n[2]}Et(c[0],i[0]),Et(c[1],i[2]),Et(c[2],i[1])}else{if(Et(a[0],d[0]),Et(a[1],d[1]),jt(o,a[1],a[0]),Ft(o,o),l&&l!==`none`){var f=Uj(e.node1);At(a[0],a[0],o,f*t)}if(u&&u!==`none`){var f=Uj(e.node2);At(a[1],a[1],o,-f*t)}Et(c[0],a[0]),Et(c[1],a[1])}})}var OM=jc();function kM(e){if(e)return OM(e).bridge}var AM=function(e){p(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=Nj,t}return t.prototype.init=function(e,t){var n=new Vv,r=new hM,i=this.group,a=new Yu;this._controller=new Mk(t.getZr()),a.add(n.group),a.add(r.group),i.add(a),this._symbolDraw=n,this._lineDraw=r,this._mainGroup=a,this._firstRender=!0},t.prototype.render=function(e,t,n){var r=this,i=CA(e),a=!1;this._model=e,this._api=n,this._active=!0;var o=this._mainGroup,s=this._getThumbnailInfo();s&&s.bridge.reset(n);var c=this._symbolDraw,l=this._lineDraw;i&&vA(o,2,i,this._firstRender?null:e),DM(e.getGraph(),Hj(e));var u=e.getData();c.updateData(u);var d=e.getEdgeData();l.updateData(d),this._updateNodeAndLinkScale(),i&&IA(e,n,this._controller,function(t,n,r){return e.coordinateSystem.containPoint([n,r])},null),clearTimeout(this._layoutTimeout);var f=e.forceLayout,p=e.get([`force`,`layoutAnimation`]);f&&(a=!0,this._startForceLayoutIteration(f,n,p));var m=e.get(`layout`);u.graph.eachNode(function(t){var i=t.dataIndex,a=t.getGraphicEl(),o=t.getModel();if(a){a.off(`drag`).off(`dragend`);var s=o.get(`draggable`);s&&a.on(`drag`,function(o){switch(m){case`force`:f.warmUp(),!r._layouting&&r._startForceLayoutIteration(f,n,p),f.setFixed(i),u.setItemLayout(i,[a.x,a.y]);break;case`circular`:u.setItemLayout(i,[a.x,a.y]),t.setLayout({fixed:!0},!0),Kj(e,`symbolSize`,t,[o.offsetX,o.offsetY]),r.updateLayout(e);break;default:u.setItemLayout(i,[a.x,a.y]),zj(e.getGraph(),e),r.updateLayout(e)}}).on(`dragend`,function(){f&&f.setUnfixed(i)}),a.setDraggable(s,!!o.get(`cursor`)),o.get([`emphasis`,`focus`])===`adjacency`&&(ol(a).focus=t.getAdjacentDataIndices())}}),u.graph.eachEdge(function(e){var t=e.getGraphicEl(),n=e.getModel().get([`emphasis`,`focus`]);t&&n===`adjacency`&&(ol(t).focus={edge:[e.dataIndex],node:[e.node1.dataIndex,e.node2.dataIndex]})});var h=e.get(`layout`)===`circular`&&e.get([`circular`,`rotateLabel`]),g=u.getLayout(`cx`),_=u.getLayout(`cy`);u.graph.eachNode(function(e){Jj(e,h,g,_)}),this._firstRender=!1,a||this._renderThumbnail(e,n,this._symbolDraw,this._lineDraw)},t.prototype.dispose=function(){this.remove(),this._controller&&this._controller.dispose()},t.prototype._startForceLayoutIteration=function(e,t,n){var r=this,i=!1;(function a(){e.step(function(e){r.updateLayout(r._model),(e||!i)&&(i=!0,r._renderThumbnail(r._model,t,r._symbolDraw,r._lineDraw)),(r._layouting=!e)&&(n?r._layoutTimeout=setTimeout(a,16):a())})})()},t.prototype.__updateOnOwnRoam=function(e,t,n){var r=CA(t);!this._active||!r||(vA(this._mainGroup,2,r,null),VA(e)&&(this._updateNodeAndLinkScale(),DM(t.getGraph(),Hj(t)),this._lineDraw.updateLayout(),n.updateLabelLayout()),this._updateThumbnailWindow())},t.prototype._updateNodeAndLinkScale=function(){var e=this._model,t=e.getData(),n=Hj(e);t.eachItemGraphicEl(function(e,t){e&&e.setSymbolScale(n)})},t.prototype.updateLayout=function(e){this._active&&(DM(e.getGraph(),Hj(e)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout())},t.prototype.remove=function(){this._active=!1,clearTimeout(this._layoutTimeout),this._layouting=!1,this._layoutTimeout=null,this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove(),this._controller&&this._controller.disable()},t.prototype._getThumbnailInfo=function(){var e=this._model,t=e.coordinateSystem;if(t.type===`view`){var n=kM(e);if(n)return{bridge:n,coordSys:t}}},t.prototype._updateThumbnailWindow=function(){var e=this._getThumbnailInfo();e&&e.bridge.updateWindow(Kk(null,e.coordSys),this._api)},t.prototype._renderThumbnail=function(e,t,n,r){var i=this._getThumbnailInfo();if(i){var a=new Yu,o=n.group.children(),s=r.group.children(),c=new Yu,l=new Yu;a.add(l),a.add(c);for(var u=0;ua&&(t[1-r]=Vs(t[r],d.sign*a)),t}function LM(e,t){var n=e[t]-e[1-t];return{span:Math.abs(n),sign:n>0?-1:n<0?1:t?-1:1}}function RM(e,t){return Math.min(t[1]==null?1/0:t[1],Math.max(t[0]==null?-1/0:t[0],e))}var zM=`sankey`,BM=function(e){p(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.getInitialData=function(e,t){var n=e.edges||e.links||[],r=e.data||e.nodes||[],i=e.levels||[];this.levelModels=[];for(var a=this.levelModels,o=0;o=0&&(a[i[o].depth]=new Ep(i[o],this,t));return xj(r,n,this,!0,s).data;function s(e,t){e.wrapMethod(`getItemModel`,function(e,t){var n=e.parentModel,r=n.getData().getItemLayout(t);if(r){var i=r.depth,a=n.levelModels[i];a&&(e.parentModel=a)}return e}),t.wrapMethod(`getItemModel`,function(e,t){var n=e.parentModel,r=n.getGraph().getEdgeByIndex(t).node1.getLayout();if(r){var i=r.depth,a=n.levelModels[i];a&&(e.parentModel=a)}return e})}},t.prototype.setNodePosition=function(e,t){var n=(this.option.data||this.option.nodes)[e];n.localX=t[0],n.localY=t[1]},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.formatTooltip=function(e,t,n){function r(e){return isNaN(e)||e==null}if(n===`edge`){var i=this.getDataParams(e,n),a=i.data,o=i.value;return Z_(`nameValue`,{name:a.source+` -- `+a.target,value:o,noValue:r(o)})}var s=this.getGraph().getNodeByIndex(e).getLayout().value,c=this.getDataParams(e,n).data.name;return Z_(`nameValue`,{name:c==null?null:c+``,value:s,noValue:r(s)})},t.prototype.optionUpdated=function(){},t.prototype.getDataParams=function(t,n){var r=e.prototype.getDataParams.call(this,t,n);return r.value==null&&n===`node`&&(r.value=this.getGraph().getNodeByIndex(t).getLayout().value),r},t.prototype.__ownRoamView=function(){return this.coordinateSystem},t.type=`series.`+zM,t.layoutMode=`box`,t.defaultOption={z:2,coordinateSystemUsage:`box`,left:`5%`,top:`5%`,right:`20%`,bottom:`5%`,orient:`horizontal`,nodeWidth:20,nodeGap:8,draggable:!0,layoutIterations:32,roam:!1,roamTrigger:`global`,center:null,zoom:1,label:{show:!0,position:`right`,fontSize:12},edgeLabel:{show:!1,fontSize:12},levels:[],nodeAlign:`justify`,lineStyle:{color:H.color.neutral50,opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},select:{itemStyle:{borderColor:H.color.primary}},animationEasing:`linear`,animationDuration:1e3},t}(_v),VM=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.cpx2=0,this.cpy2=0,this.extent=0}return e}(),HM=function(e){p(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new VM},t.prototype.buildPath=function(e,t){var n=t.extent;e.moveTo(t.x1,t.y1),e.bezierCurveTo(t.cpx1,t.cpy1,t.cpx2,t.cpy2,t.x2,t.y2),t.orient===`vertical`?(e.lineTo(t.x2+n,t.y2),e.bezierCurveTo(t.cpx2+n,t.cpy2,t.cpx1+n,t.cpy1,t.x1+n,t.y1)):(e.lineTo(t.x2,t.y2+n),e.bezierCurveTo(t.cpx2,t.cpy2+n,t.cpx1,t.cpy1+n,t.x1,t.y1+n)),e.closePath()},t.prototype.highlight=function(){Zl(this)},t.prototype.downplay=function(){Ql(this)},t}(Lo),see=function(e){p(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=zM,t._mainGroup=new Yu,t}return t.prototype.init=function(e,t){this._controller=new Mk(t.getZr()),this.group.add(this._mainGroup),this._firstRender=!0},t.prototype.render=function(e,t,n){var r=e.getGraph(),i=this._mainGroup,a=e.layoutInfo,o=a.width,s=a.height,c=e.getData(),l=e.getData(`edge`),u=e.get(`orient`);i.removeAll(),i.x=a.x,i.y=a.y,this._updateViewCoordSys(e,n),IA(e,n,this._controller,LA(i),null),r.eachEdge(function(t){var n=new HM,r=ol(n);r.dataIndex=t.dataIndex,r.seriesIndex=e.seriesIndex,r.dataType=`edge`;var a=t.getModel(),c=a.getModel(`lineStyle`),d=c.get(`curveness`),f=t.node1.getLayout(),p=t.node1.getModel(),m=p.get(`localX`),h=p.get(`localY`),g=t.node2.getLayout(),_=t.node2.getModel(),v=_.get(`localX`),y=_.get(`localY`),b=t.getLayout(),x,S,C,w,T,E,D,O;n.shape.extent=Math.max(1,b.dy),n.shape.orient=u,u===`vertical`?(x=(m==null?f.x:m*o)+b.sy,S=(h==null?f.y:h*s)+f.dy,C=(v==null?g.x:v*o)+b.ty,w=y==null?g.y:y*s,T=x,E=S*(1-d)+w*d,D=C,O=S*d+w*(1-d)):(x=(m==null?f.x:m*o)+f.dx,S=(h==null?f.y:h*s)+b.sy,C=v==null?g.x:v*o,w=(y==null?g.y:y*s)+b.ty,T=x*(1-d)+C*d,E=S,D=x*d+C*(1-d),O=w),n.setShape({x1:x,y1:S,x2:C,y2:w,cpx1:T,cpy1:E,cpx2:D,cpy2:O}),n.useStyle(c.getItemStyle()),UM(n.style,u,t);var k=``+a.get(`value`),ee=ip(a,`edgeLabel`);rp(n,ee,{labelFetcher:{getFormattedLabel:function(t,n,r,i,a,o){return e.getFormattedLabel(t,n,`edge`,i,Te(a,ee.normal&&ee.normal.get(`formatter`),k),o)}},labelDataIndex:t.dataIndex,defaultText:k}),n.setTextConfig({position:`inside`});var te=a.getModel(`emphasis`);bu(n,a,`lineStyle`,function(e){var n=e.getItemStyle();return UM(n,u,t),n}),i.add(n),l.setItemGraphicEl(t.dataIndex,n);var ne=te.get(`focus`);gu(n,ne===`adjacency`?t.getAdjacentDataIndices():ne===`trajectory`?t.getTrajectoryDataIndices():ne,te.get(`blurScope`),te.get(`disabled`))}),r.eachNode(function(t){var n=t.getLayout(),r=t.getModel(),a=r.get(`localX`),l=r.get(`localY`),u=r.getModel(`emphasis`),d=r.get([`itemStyle`,`borderRadius`])||0,f=new Zo({shape:{x:a==null?n.x:a*o,y:l==null?n.y:l*s,width:n.dx,height:n.dy,r:d},style:r.getModel(`itemStyle`).getItemStyle(),z2:10});rp(f,ip(r),{labelFetcher:{getFormattedLabel:function(t,n){return e.getFormattedLabel(t,n,`node`)}},labelDataIndex:t.dataIndex,defaultText:t.id}),f.disableLabelAnimation=!0,f.setStyle(`fill`,t.getVisual(`color`)),f.setStyle(`decal`,t.getVisual(`style`).decal),bu(f,r),i.add(f),c.setItemGraphicEl(t.dataIndex,f),ol(f).dataType=`node`;var p=u.get(`focus`);gu(f,p===`adjacency`?t.getAdjacentDataIndices():p===`trajectory`?t.getTrajectoryDataIndices():p,u.get(`blurScope`),u.get(`disabled`))}),c.eachItemGraphicEl(function(t,r){c.getItemModel(r).get(`draggable`)&&(t.drift=function(t,i){this.shape.x+=t,this.shape.y+=i,this.dirty(),n.dispatchAction({type:`dragNode`,seriesId:e.id,dataIndex:c.getRawIndex(r),localX:this.shape.x/o,localY:this.shape.y/s})},t.draggable=!0,t.cursor=`move`)}),!this._data&&e.isAnimationEnabled()&&i.setClipPath(WM(i.getBoundingRect(),e,function(){i.removeClipPath()})),this._data=e.getData(),this._firstRender=!1},t.prototype.__updateOnOwnRoam=function(e,t,n){vA(this.group,2,t.coordinateSystem,null)},t.prototype.dispose=function(){this._controller&&this._controller.dispose()},t.prototype._updateViewCoordSys=function(e,t){var n=e.layoutInfo,r=e.coordinateSystem=HA(e,t,n.x,n.y,n.width,n.height);vA(this.group,2,r,this._firstRender?null:e)},t.type=zM,t}(Gv);function UM(e,t,n){switch(e.fill){case`source`:e.fill=n.node1.getVisual(`color`),e.decal=n.node1.getVisual(`style`).decal;break;case`target`:e.fill=n.node2.getVisual(`color`),e.decal=n.node2.getVisual(`style`).decal;break;case`gradient`:var r=n.node1.getVisual(`color`),i=n.node2.getVisual(`color`);z(r)&&z(i)&&(e.fill=new Id(0,0,+(t===`horizontal`),+(t===`vertical`),[{color:r,offset:0},{color:i,offset:1}]))}}function WM(e,t,n){var r=new Zo({shape:{x:e.x-10,y:e.y-10,width:0,height:e.height+20}});return $d(r,{shape:{width:e.width+20}},t,n),r}var GM=il(zM,KM);function KM(e,t){e.eachSeriesByType(zM,function(e){var n=e.get(`nodeWidth`),r=e.get(`nodeGap`),i=c_(e,t).refContainer,a=a_(e.getBoxLayoutParams(),i);e.layoutInfo=a;var o=a.width,s=a.height,c=e.getGraph(),l=c.nodes,u=c.edges;JM(l),qM(l,u,n,r,o,s,ue(l,function(e){return e.getLayout().value===0}).length===0?e.get(`layoutIterations`):0,e.get(`orient`),e.get(`nodeAlign`))})}function qM(e,t,n,r,i,a,o,s,c){YM(e,t,n,i,a,s,c),eN(e,t,a,i,r,o,s),pN(e,s)}function JM(e){I(e,function(e){var t=dN(e.outEdges,uN),n=dN(e.inEdges,uN),r=e.getValue()||0,i=Math.max(t,n,r);e.setLayout({value:i},!0)})}function YM(e,t,n,r,i,a,o){for(var s=[],c=[],l=[],u=[],d=0,f=0;f=0;_&&g.depth>p&&(p=g.depth),h.setLayout({depth:_?g.depth:d},!0),a===`vertical`?h.setLayout({dy:n},!0):h.setLayout({dx:n},!0);for(var v=0;vd-1?p:d-1;o&&o!==`left`&&ZM(e,o,a,C),$M(e,a===`vertical`?(i-n)/C:(r-n)/C,a)}function XM(e){var t=e.hostGraph.data.getRawDataItem(e.dataIndex);return t.depth!=null&&t.depth>=0}function ZM(e,t,n,r){if(t===`right`){for(var i=[],a=e,o=0;a.length;){for(var s=0;s0;a--)c*=.99,iN(s,c,o),rN(s,i,n,r,o),fN(s,c,o),rN(s,i,n,r,o)}function tN(e,t){var n=[],r=t===`vertical`?`y`:`x`,i=Vc(e,function(e){return e.getLayout()[r]});return Ls(i.keys),I(i.keys,function(e){n.push(i.buckets.get(e))}),n}function nN(e,t,n,r,i,a){var o=1/0;I(e,function(e){var t=e.length,s=0;I(e,function(e){s+=e.getLayout().value});var c=a===`vertical`?(r-(t-1)*i)/s:(n-(t-1)*i)/s;c0&&(o=s.getLayout()[a]+c,i===`vertical`?s.setLayout({x:o},!0):s.setLayout({y:o},!0)),l=s.getLayout()[a]+s.getLayout()[d]+t;var p=i===`vertical`?r:n;if(c=l-t-p,c>0){o=s.getLayout()[a]-c,i===`vertical`?s.setLayout({x:o},!0):s.setLayout({y:o},!0),l=o;for(var f=u-2;f>=0;--f)s=e[f],c=s.getLayout()[a]+s.getLayout()[d]+t-l,c>0&&(o=s.getLayout()[a]-c,i===`vertical`?s.setLayout({x:o},!0):s.setLayout({y:o},!0)),l=s.getLayout()[a]}})}function iN(e,t,n){I(e.slice().reverse(),function(e){I(e,function(e){if(e.outEdges.length){var r=dN(e.outEdges,aN,n)/dN(e.outEdges,uN);if(isNaN(r)){var i=e.outEdges.length;r=i?dN(e.outEdges,oN,n)/i:0}if(n===`vertical`){var a=e.getLayout().x+(r-lN(e,n))*t;e.setLayout({x:a},!0)}else{var o=e.getLayout().y+(r-lN(e,n))*t;e.setLayout({y:o},!0)}}})})}function aN(e,t){return lN(e.node2,t)*e.getValue()}function oN(e,t){return lN(e.node2,t)}function sN(e,t){return lN(e.node1,t)*e.getValue()}function cN(e,t){return lN(e.node1,t)}function lN(e,t){return t===`vertical`?e.getLayout().x+e.getLayout().dx/2:e.getLayout().y+e.getLayout().dy/2}function uN(e){return e.getValue()}function dN(e,t,n){for(var r=0,i=e.length,a=-1;++aa&&(a=t)}),I(n,function(t){var n=new nj({type:`color`,mappingMethod:`linear`,dataExtent:[i,a],visual:e.get(`color`)}).mapValueToVisual(t.getLayout().value),r=t.getModel().get([`itemStyle`,`color`]);r==null?(t.setVisual(`color`,n),t.setVisual(`style`,{fill:n})):(t.setVisual(`color`,r),t.setVisual(`style`,{fill:r}))})}r.length&&I(r,function(e){var t=e.getModel().get(`lineStyle`);e.setVisual(`style`,t)})})}function gN(e){e.registerChartView(see),e.registerSeriesModel(BM),e.registerLayout(GM),e.registerVisual(mN),e.registerAction({type:`dragNode`,event:`dragnode`,update:`update`},function(e,t){t.eachComponent({mainType:cl,subType:zM,query:e},function(t){t.setNodePosition(e.dataIndex,[e.localX,e.localY])})}),zA(e,cl,zM)}var _N=256,vN=function(){function e(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var e=b.createCanvas();this.canvas=e}return e.prototype.update=function(e,t,n,r,i,a){var o=this._getBrush(),s=this._getGradient(i,`inRange`),c=this._getGradient(i,`outOfRange`),l=this.pointSize+this.blurSize,u=this.canvas,d=u.getContext(`2d`),f=e.length;u.width=t,u.height=n;for(var p=0;p0){var E=a(v)?s:c;v>0&&(v=v*w+C),b[x++]=E[T],b[x++]=E[T+1],b[x++]=E[T+2],b[x++]=E[T+3]*v*256}else x+=4}return d.putImageData(y,0,0),u},e.prototype._getBrush=function(){var e=this._brushCanvas||=b.createCanvas(),t=this.pointSize+this.blurSize,n=t*2;e.width=n,e.height=n;var r=e.getContext(`2d`);return r.clearRect(0,0,n,n),r.shadowOffsetX=n,r.shadowBlur=this.blurSize,r.shadowColor=H.color.neutral99,r.beginPath(),r.arc(-t,t,this.pointSize,0,Math.PI*2,!0),r.closePath(),r.fill(),e},e.prototype._getGradient=function(e,t){for(var n=this._gradientPixels,r=n[t]||(n[t]=new Uint8ClampedArray(1024)),i=[0,0,0,0],a=0,o=0;o<256;o++)e[t](o/255,!0,i),r[a++]=i[0],r[a++]=i[1],r[a++]=i[2],r[a++]=i[3];return r},e}();function yN(e,t,n){var r=e[1]-e[0];t=L(t,function(t){return{interval:[(t.interval[0]-e[0])/r,(t.interval[1]-e[0])/r]}});var i=t.length,a=0;return function(e){var r;for(r=a;r=0;r--){var o=t[r].interval;if(o[0]<=e&&e<=o[1]){a=r;break}}return r>=0&&r=t[0]&&e<=t[1]}}var xN=function(e){p(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(e,t,n){var r;t.eachComponent(`visualMap`,function(t){t.eachTargetSeries(function(n){n===e&&(r=t)})}),this._progressiveEls=null,this.group.removeAll();var i=e.coordinateSystem;i.type===`cartesian2d`||i.type===`calendar`||i.type===`matrix`?this._renderOnGridLike(e,n,0,e.getData().count()):Qv(i)&&this._renderOnGeo(i,e,r,n)},t.prototype.incrementalPrepareRender=function(e,t,n){this.group.removeAll()},t.prototype.incrementalRender=function(e,t,n,r){var i=t.coordinateSystem;i&&(Qv(i)?this.render(t,n,r):(this._progressiveEls=[],this._renderOnGridLike(t,r,e.start,e.end,!0)))},t.prototype.eachRendered=function(e){Vf(this._progressiveEls||this.group,e)},t.prototype._renderOnGridLike=function(e,t,n,r,i){var a=e.coordinateSystem,o=Zv(a,`cartesian2d`),s=Zv(a,`matrix`),c,l,u,d;if(o){var f=a.getAxis(`x`),p=a.getAxis(`y`);c=ex(f).w+.5,l=ex(p).w+.5,u=f.scale.getExtent(),d=p.scale.getExtent()}for(var m=this.group,h=e.getData(),g=e.getModel([`emphasis`,`itemStyle`]).getItemStyle(),_=e.getModel([`blur`,`itemStyle`]).getItemStyle(),v=e.getModel([`select`,`itemStyle`]).getItemStyle(),y=e.get([`itemStyle`,`borderRadius`]),b=ip(e),x=e.getModel(`emphasis`),S=x.get(`focus`),C=x.get(`blurScope`),w=x.get(`disabled`),T=o||s?[h.mapDimension(`x`),h.mapDimension(`y`),h.mapDimension(`value`)]:[h.mapDimension(`time`),h.mapDimension(`value`)],E=n;Eu[1]||eed[1])continue;var te=a.dataToPoint([k,ee]);D=new Zo({shape:{x:te[0]-c/2,y:te[1]-l/2,width:c,height:l},style:O})}else if(s){var ne=a.dataToLayout([h.get(T[0],E),h.get(T[1],E)]).rect;if(Ce(ne.x))continue;D=new Zo({z2:1,shape:ne,style:O})}else{if(isNaN(h.get(T[1],E)))continue;var A=a.dataToLayout([h.get(T[0],E)]),ne=A.contentRect||A.rect;if(Ce(ne.x)||Ce(ne.y))continue;D=new Zo({z2:1,shape:ne,style:O})}if(h.hasItemOption){var j=h.getItemModel(E),re=j.getModel(`emphasis`);g=re.getModel(`itemStyle`).getItemStyle(),_=j.getModel([`blur`,`itemStyle`]).getItemStyle(),v=j.getModel([`select`,`itemStyle`]).getItemStyle(),y=j.get([`itemStyle`,`borderRadius`]),S=re.get(`focus`),C=re.get(`blurScope`),w=re.get(`disabled`),b=ip(j)}D.shape.r=y;var M=e.getRawValue(E),N=`-`;M&&M[2]!=null&&(N=M[2]+``),rp(D,b,{labelFetcher:e,labelDataIndex:E,defaultOpacity:O.opacity,defaultText:N}),D.ensureState(`emphasis`).style=g,D.ensureState(`blur`).style=_,D.ensureState(`select`).style=v,gu(D,S,C,w),D.incremental=nl(e,i),i&&(D.states.emphasis.hoverLayer=2),m.add(D),h.setItemGraphicEl(E,D),this._progressiveEls&&this._progressiveEls.push(D)}},t.prototype._renderOnGeo=function(e,t,n,r){var i=n.targetVisuals.inRange,a=n.targetVisuals.outOfRange,o=t.getData(),s=this._hmLayer||this._hmLayer||new vN;s.blurSize=t.get(`blurSize`),s.pointSize=t.get(`pointSize`),s.minOpacity=t.get(`minOpacity`),s.maxOpacity=t.get(`maxOpacity`);var c=e.getViewRect().clone(),l=e.getRoamTransform();c.applyTransform(l);var u=Math.max(c.x,0),d=Math.max(c.y,0),f=Math.min(c.width+c.x,r.getWidth()),p=Math.min(c.height+c.y,r.getHeight()),m=f-u,h=p-d,g=[o.mapDimension(`lng`),o.mapDimension(`lat`),o.mapDimension(`value`)],_=o.mapArray(g,function(t,n,r){var i=e.dataToPoint([t,n]);return i[0]-=u,i[1]-=d,i.push(r),i}),v=n.getExtent(),y=n.type===`visualMap.continuous`?bN(v,n.option.range):yN(v,n.getPieceList(),n.option.selected);s.update(_,m,h,i.color.getNormalizer(),{inRange:i.color.getColorMapper(),outOfRange:a.color.getColorMapper()},y);var b=new Uo({style:{width:m,height:h,x:u,y:d,image:s.canvas},silent:!0});this.group.add(b)},t.type=`heatmap`,t}(Gv),SN=function(e){p(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.getInitialData=function(e,t){return wh(null,this,{generateCoord:`value`})},t.prototype.preventIncremental=function(){var e=ch.get(this.get(`coordinateSystem`));if(e&&e.dimensions)return e.dimensions[0]===`lng`&&e.dimensions[1]===`lat`},t.type=`series.heatmap`,t.dependencies=[`grid`,`geo`,`calendar`,`matrix`],t.defaultOption={coordinateSystem:`cartesian2d`,z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:H.color.primary}}},t}(_v);function CN(e){e.registerChartView(xN),e.registerSeriesModel(SN)}function wN(e){return Object.keys(e)}function TN(e){return e&&typeof e==`object`&&!Array.isArray(e)}function EN(e,t){let n={...e},r=t;return TN(e)&&TN(t)&&Object.keys(t).forEach(t=>{TN(r[t])&&t in e?n[t]=EN(n[t],r[t]):n[t]=r[t]}),n}function DN(e){return e.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)}function ON(e){return typeof e!=`string`||!e.includes(`var(--mantine-scale)`)?e:e.match(/^calc\((.*?)\)$/)?.[1].split(`*`)[0].trim()}function kN(e){let t=ON(e);return typeof t==`number`?t:typeof t==`string`?t.includes(`calc`)||t.includes(`var`)?t:t.includes(`px`)?Number(t.replace(`px`,``)):t.includes(`rem`)?Number(t.replace(`rem`,``))*16:t.includes(`em`)?Number(t.replace(`em`,``))*16:Number(t):NaN}function AN(e){return e===`0rem`?`0rem`:`calc(${e} * var(--mantine-scale))`}function jN(e,{shouldScale:t=!1}={}){function n(r){if(r===0||r===`0`)return`0${e}`;if(typeof r==`number`){let n=`${r/16}${e}`;return t?AN(n):n}if(typeof r==`string`){if(r===``||r.startsWith(`calc(`)||r.startsWith(`clamp(`)||r.includes(`rgba(`))return r;if(r.includes(`,`))return r.split(`,`).map(e=>n(e)).join(`,`);if(r.includes(` `))return r.split(` `).map(e=>n(e)).join(` `);let i=r.replace(`px`,``);if(!Number.isNaN(Number(i))){let n=`${Number(i)/16}${e}`;return t?AN(n):n}}return r}return n}var W=jN(`rem`,{shouldScale:!0}),MN=jN(`em`);function NN(e){return Object.keys(e).reduce((t,n)=>(e[n]!==void 0&&(t[n]=e[n]),t),{})}function PN(e){if(typeof e==`number`)return!0;if(typeof e==`string`){if(e.startsWith(`calc(`)||e.startsWith(`var(`)||e.includes(` `)&&e.trim()!==``)return!0;let t=/^[+-]?[0-9]+(\.[0-9]+)?(px|em|rem|ex|ch|lh|rlh|vw|vh|vmin|vmax|vb|vi|svw|svh|lvw|lvh|dvw|dvh|cm|mm|in|pt|pc|q|cqw|cqh|cqi|cqb|cqmin|cqmax|%)?$/;return e.trim().split(/\s+/).every(e=>t.test(e))}return!1}var FN=s((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.portal`),r=Symbol.for(`react.fragment`),i=Symbol.for(`react.strict_mode`),a=Symbol.for(`react.profiler`),o=Symbol.for(`react.consumer`),s=Symbol.for(`react.context`),c=Symbol.for(`react.forward_ref`),l=Symbol.for(`react.suspense`),u=Symbol.for(`react.memo`),d=Symbol.for(`react.lazy`),f=Symbol.for(`react.activity`),p=Symbol.iterator;function m(e){return typeof e!=`object`||!e?null:(e=p&&e[p]||e[`@@iterator`],typeof e==`function`?e:null)}var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,_={};function v(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||h}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if(typeof e!=`object`&&typeof e!=`function`&&e!=null)throw Error(`takes an object of state variables to update or a function which returns an object of state variables.`);this.updater.enqueueSetState(this,e,t,`setState`)},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,`forceUpdate`)};function y(){}y.prototype=v.prototype;function b(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||h}var x=b.prototype=new y;x.constructor=b,g(x,v.prototype),x.isPureReactComponent=!0;var S=Array.isArray;function C(){}var w={H:null,A:null,T:null,S:null},T=Object.prototype.hasOwnProperty;function E(e,n,r){var i=r.ref;return{$$typeof:t,type:e,key:n,ref:i===void 0?null:i,props:r}}function D(e,t){return E(e.type,t,e.props)}function O(e){return typeof e==`object`&&!!e&&e.$$typeof===t}function k(e){var t={"=":`=0`,":":`=2`};return`$`+e.replace(/[=:]/g,function(e){return t[e]})}var ee=/\/+/g;function te(e,t){return typeof e==`object`&&e&&e.key!=null?k(``+e.key):t.toString(36)}function ne(e){switch(e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason;default:switch(typeof e.status==`string`?e.then(C,C):(e.status=`pending`,e.then(function(t){e.status===`pending`&&(e.status=`fulfilled`,e.value=t)},function(t){e.status===`pending`&&(e.status=`rejected`,e.reason=t)})),e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason}}throw e}function A(e,r,i,a,o){var s=typeof e;(s===`undefined`||s===`boolean`)&&(e=null);var c=!1;if(e===null)c=!0;else switch(s){case`bigint`:case`string`:case`number`:c=!0;break;case`object`:switch(e.$$typeof){case t:case n:c=!0;break;case d:return c=e._init,A(c(e._payload),r,i,a,o)}}if(c)return o=o(e),c=a===``?`.`+te(e,0):a,S(o)?(i=``,c!=null&&(i=c.replace(ee,`$&/`)+`/`),A(o,r,i,``,function(e){return e})):o!=null&&(O(o)&&(o=D(o,i+(o.key==null||e&&e.key===o.key?``:(``+o.key).replace(ee,`$&/`)+`/`)+c)),r.push(o)),1;c=0;var l=a===``?`.`:a+`:`;if(S(e))for(var u=0;u{t.exports=FN()})),G=u(IN(),1);function LN(e){let t=(0,G.createContext)(null);return[t,()=>{let n=(0,G.use)(t);if(n===null)throw Error(e);return n}]}function RN(e,t){return n=>{if(typeof n!=`string`||n.trim().length===0)throw Error(t);return`${e}-${n}`}}function zN(e,t){let n=e;for(;(n=n.parentElement)&&!n.matches(t););return n}function BN(e,t,n){for(let n=e-1;n>=0;--n)if(!t[n].disabled)return n;if(n){for(let e=t.length-1;e>-1;--e)if(!t[e].disabled)return e}return e}function VN(e,t,n){for(let n=e+1;n{n?.(s);let c=Array.from(zN(s.currentTarget,e)?.querySelectorAll(t)||[]).filter(t=>HN(s.currentTarget,t,e)),l=c.findIndex(e=>s.currentTarget===e),u=VN(l,c,r),d=BN(l,c,r),f=a===`rtl`?d:u,p=a===`rtl`?u:d;switch(s.key){case`ArrowRight`:o===`horizontal`&&(s.stopPropagation(),s.preventDefault(),c[f].focus(),i&&c[f].click());break;case`ArrowLeft`:o===`horizontal`&&(s.stopPropagation(),s.preventDefault(),c[p].focus(),i&&c[p].click());break;case`ArrowUp`:o===`vertical`&&(s.stopPropagation(),s.preventDefault(),c[d].focus(),i&&c[d].click());break;case`ArrowDown`:o===`vertical`&&(s.stopPropagation(),s.preventDefault(),c[u].focus(),i&&c[u].click());break;case`Home`:s.stopPropagation(),s.preventDefault(),c[VN(-1,c,!1)]?.focus();break;case`End`:s.stopPropagation(),s.preventDefault(),c[BN(c.length,c,!1)]?.focus()}}}function WN(e,t=`size`,n=!0){if(e!==void 0)return PN(e)?n?W(e):e:`var(--${t}-${e})`}function GN(e){return WN(e,`mantine-spacing`)}function KN(e){return e===void 0?`var(--mantine-radius-default)`:WN(e,`mantine-radius`)}function qN(e){return WN(e,`mantine-font-size`)}function JN(e){return WN(e,`mantine-line-height`,!1)}function YN(e){if(e)return WN(e,`mantine-shadow`,!1)}function XN(e,t){return n=>{e?.(n),t?.(n)}}function cee(e=`mantine-`){return`${e}${Math.random().toString(36).slice(2,11)}`}function ZN(e){let t=(0,G.useRef)(e);return(0,G.useEffect)(()=>{t.current=e}),(0,G.useMemo)(()=>((...e)=>t.current?.(...e)),[])}function QN(e,t){let{delay:n,flushOnUnmount:r,leading:i,maxWait:a}=typeof t==`number`?{delay:t,flushOnUnmount:!1,leading:!1,maxWait:void 0}:t,o=ZN(e),s=(0,G.useRef)(0),c=(0,G.useRef)(0),l=(0,G.useRef)(null),u=(0,G.useMemo)(()=>{let e=Object.assign((...t)=>{window.clearTimeout(s.current),l.current=t;let r=e._isFirstCall;e._isFirstCall=!1;function u(){window.clearTimeout(s.current),window.clearTimeout(c.current),s.current=0,c.current=0,e._isFirstCall=!0,e._hasPendingCallback=!1}function d(){a!==void 0&&c.current===0&&(c.current=window.setTimeout(()=>{if(s.current!==0){let e=l.current;u(),o(...e)}},a))}if(i&&r){o(...t),e.flush=()=>{s.current!==0&&(u(),o(...t))},e.cancel=()=>{u()},s.current=window.setTimeout(()=>{u()},n),d();return}if(i&&!r){e._hasPendingCallback=!0,e.flush=()=>{s.current!==0&&(u(),o(...t))},e.cancel=()=>{u()},s.current=window.setTimeout(()=>{u()},n),d();return}e._hasPendingCallback=!0;let f=()=>{s.current!==0&&(u(),o(...t))};e.flush=f,e.cancel=()=>{u()},s.current=window.setTimeout(f,n),d()},{flush:()=>{},cancel:()=>{},isPending:()=>e._hasPendingCallback,_isFirstCall:!0,_hasPendingCallback:!1});return e},[o,n,i,a]);return(0,G.useEffect)(()=>()=>{r?u.flush():u.cancel()},[u,r]),u}function $N(e,t){return typeof t==`boolean`?t:typeof window<`u`&&`matchMedia`in window&&window.matchMedia(e).matches}function eP(e,t,{getInitialValueInEffect:n}={getInitialValueInEffect:!0}){let[r,i]=(0,G.useState)(n?t:$N(e));return(0,G.useEffect)(()=>{try{if(`matchMedia`in window){let t=window.matchMedia(e);i(t.matches);let n=e=>i(e.matches);return t.addEventListener(`change`,n),()=>{t.removeEventListener(`change`,n)}}}catch{return}},[e]),r||!1}var tP=typeof document<`u`?G.useLayoutEffect:G.useEffect;function nP(e,t){let n=(0,G.useRef)(!1);(0,G.useEffect)(()=>()=>{n.current=!1},[]),(0,G.useEffect)(()=>{if(n.current)return e();n.current=!0},t)}var rP=e=>(e+1)%1e6;function iP(){let[,e]=(0,G.useReducer)(rP,0);return e}function aP(e){let[t,n]=(0,G.useState)(`mantine-${(0,G.useId)().replace(/:/g,``)}`),r=(0,G.useRef)(!1);return tP(()=>{r.current||(r.current=!0,n(cee()))},[]),typeof e==`string`?e:t}function oP(e,t){if(typeof e==`function`)return e(t);typeof e==`object`&&e&&`current`in e&&(e.current=t)}function sP(...e){let t=new Map;return n=>{if(e.forEach(e=>{let r=oP(e,n);r&&t.set(e,r)}),t.size>0)return()=>{e.forEach(e=>{let n=t.get(e);n&&typeof n==`function`?n():oP(e,null)}),t.clear()}}}function cP(...e){return(0,G.useCallback)(sP(...e),e)}function lP({value:e,defaultValue:t,finalValue:n,onChange:r=()=>{}}){let[i,a]=(0,G.useState)(t===void 0?n:t);return e===void 0?[i,(e,...t)=>{a(e),r?.(e,...t)},!1]:[e,r,!0]}function uP(e,t){let n=t-e+1;return Array.from({length:n},(t,n)=>n+e)}var dP=`dots`;function fP({total:e,siblings:t=1,boundaries:n=1,page:r,initialPage:i,onChange:a,startValue:o=1}){let s=Math.max(Math.trunc(o),1),c=Math.max(Math.trunc(e),s),l=c-s+1,u=i??s,[d,f]=lP({value:r,onChange:a,defaultValue:u,finalValue:u}),p=(0,G.useCallback)(e=>{f(ec?c:e)},[s,c,f]),m=(0,G.useCallback)(()=>p(d+1),[d,p]),h=(0,G.useCallback)(()=>p(d-1),[d,p]),g=(0,G.useCallback)(()=>p(s),[p,s]),_=(0,G.useCallback)(()=>p(c),[c,p]);return{range:(0,G.useMemo)(()=>{if(t*2+3+n*2>=l)return uP(s,c);let e=Math.max(d-t,s+n-1),r=Math.min(d+t,c-n),i=e>s+n+1,a=r{var t=IN();function n(e){var t=`https://react.dev/errors/`+e;if(1{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=mP()}));function gP(e){return e}function _P(e){var t,n,r=``;if(typeof e==`string`||typeof e==`number`)r+=e;else if(typeof e==`object`)if(Array.isArray(e)){var i=e.length;for(t=0;t{Object.entries(e).forEach(([e,n])=>{t[e]?t[e]=vP(t[e],n):t[e]=n})}),t}function xP({theme:e,classNames:t,props:n,stylesCtx:r}){return bP((Array.isArray(t)?t:[t]).map(t=>typeof t==`function`?t(e,n,r):t||yP))}function SP({theme:e,styles:t,props:n,stylesCtx:r}){let i=Array.isArray(t)?t:[t],a={};for(let t of i)typeof t==`function`?Object.assign(a,t(e,n,r)):t&&Object.assign(a,t);return a}function CP(e){return e===`auto`||e===`dark`||e===`light`}function wP({key:e=`mantine-color-scheme-value`}={}){let t;return{get:t=>{if(typeof window>`u`)return t;try{let n=window.localStorage.getItem(e);return CP(n)?n:t}catch{return t}},set:t=>{try{window.localStorage.setItem(e,t)}catch(e){console.warn(`[@mantine/core] Local storage color scheme manager was unable to save color scheme.`,e)}},subscribe:n=>{t=t=>{t.storageArea===window.localStorage&&t.key===e&&CP(t.newValue)&&n(t.newValue)},window.addEventListener(`storage`,t)},unsubscribe:()=>{window.removeEventListener(`storage`,t)},clear:()=>{window.localStorage.removeItem(e)}}}function TP(e,t){return typeof e.primaryShade==`number`?e.primaryShade:t===`dark`?e.primaryShade.dark:e.primaryShade.light}function EP(e){return/^#?([0-9A-F]{3}){1,2}([0-9A-F]{2})?$/i.test(e)}function DP(e){let t=e.replace(`#`,``);if(t.length===3){let e=t.split(``);t=[e[0],e[0],e[1],e[1],e[2],e[2]].join(``)}if(t.length===8){let e=parseInt(t.slice(6,8),16)/255;return{r:parseInt(t.slice(0,2),16),g:parseInt(t.slice(2,4),16),b:parseInt(t.slice(4,6),16),a:e}}let n=parseInt(t,16);return{r:n>>16&255,g:n>>8&255,b:n&255,a:1}}function OP(e){let[t,n,r,i]=e.replace(/[^0-9,./]/g,``).split(/[/,]/).map(Number);return{r:t,g:n,b:r,a:i===void 0?1:i}}function lee(e){let t=e.match(/^hsla?\(\s*(\d+)\s*,\s*(\d+%)\s*,\s*(\d+%)\s*(,\s*(0?\.\d+|\d+(\.\d+)?))?\s*\)$/i);if(!t)return{r:0,g:0,b:0,a:1};let n=parseInt(t[1],10),r=parseInt(t[2],10)/100,i=parseInt(t[3],10)/100,a=t[5]?parseFloat(t[5]):void 0,o=(1-Math.abs(2*i-1))*r,s=n/60,c=o*(1-Math.abs(s%2-1)),l=i-o/2,u,d,f;return s>=0&&s<1?(u=o,d=c,f=0):s>=1&&s<2?(u=c,d=o,f=0):s>=2&&s<3?(u=0,d=o,f=c):s>=3&&s<4?(u=0,d=c,f=o):s>=4&&s<5?(u=c,d=0,f=o):(u=o,d=0,f=c),{r:Math.round((u+l)*255),g:Math.round((d+l)*255),b:Math.round((f+l)*255),a:a||1}}function kP(e){return EP(e)?DP(e):e.startsWith(`rgb`)?OP(e):e.startsWith(`hsl`)?lee(e):{r:0,g:0,b:0,a:1}}function AP(e){return e<=.03928?e/12.92:((e+.055)/1.055)**2.4}function uee(e){let t=e.match(/oklch\((.*?)%\s/);return t?parseFloat(t[1]):null}function dee(e){if(e.startsWith(`oklch(`))return(uee(e)||0)/100;let{r:t,g:n,b:r}=kP(e),i=t/255,a=n/255,o=r/255,s=AP(i),c=AP(a),l=AP(o);return .2126*s+.7152*c+.0722*l}function jP(e,t=.179){return!e.startsWith(`var(`)&&dee(e)>t}function MP({color:e,theme:t,colorScheme:n}){if(typeof e!=`string`)throw Error(`[@mantine/core] Failed to parse color. Expected color to be a string, instead got ${typeof e}`);if(e===`bright`)return{color:e,value:n===`dark`?t.white:t.black,shade:void 0,isThemeColor:!1,isLight:jP(n===`dark`?t.white:t.black,t.luminanceThreshold),variable:`--mantine-color-bright`};if(e===`dimmed`)return{color:e,value:n===`dark`?t.colors.dark[2]:t.colors.gray[7],shade:void 0,isThemeColor:!1,isLight:jP(n===`dark`?t.colors.dark[2]:t.colors.gray[6],t.luminanceThreshold),variable:`--mantine-color-dimmed`};if(e===`white`||e===`black`)return{color:e,value:e===`white`?t.white:t.black,shade:void 0,isThemeColor:!1,isLight:jP(e===`white`?t.white:t.black,t.luminanceThreshold),variable:`--mantine-color-${e}`};let[r,i]=e.split(`.`),a=i?Number(i):void 0,o=r in t.colors;if(o){let e=a===void 0?t.colors[r][TP(t,n||`light`)]:t.colors[r][a];return{color:r,value:e,shade:a,isThemeColor:o,isLight:jP(e,t.luminanceThreshold),variable:i?`--mantine-color-${r}-${a}`:`--mantine-color-${r}-filled`}}return{color:e,value:e,isThemeColor:o,isLight:jP(e,t.luminanceThreshold),shade:a,variable:void 0}}function NP(e,t){let n=MP({color:e||t.primaryColor,theme:t});return n.variable?`var(${n.variable})`:e}function PP(e){return!!e&&typeof e==`object`&&`mantine-virtual-color`in e}function FP(e,t){if(e.startsWith(`var(`))return`color-mix(in srgb, ${e}, black ${t*100}%)`;let{r:n,g:r,b:i,a}=kP(e),o=1-t,s=e=>Math.round(e*o);return`rgba(${s(n)}, ${s(r)}, ${s(i)}, ${a})`}function IP(e,t){let n={from:e?.from||t.defaultGradient.from,to:e?.to||t.defaultGradient.to,deg:e?.deg??t.defaultGradient.deg??0},r=NP(n.from,t),i=NP(n.to,t);return`linear-gradient(${n.deg}deg, ${r} 0%, ${i} 100%)`}function LP(e,t){if(typeof e!=`string`||t>1||t<0)return`rgba(0, 0, 0, 1)`;if(e.startsWith(`var(`))return`color-mix(in srgb, ${e}, transparent ${(1-t)*100}%)`;if(e.startsWith(`oklch`))return e.includes(`/`)?e.replace(/\/\s*[\d.]+\s*\)/,`/ ${t})`):e.replace(`)`,` / ${t})`);let{r:n,g:r,b:i}=kP(e);return`rgba(${n}, ${r}, ${i}, ${t})`}var RP=LP,zP=({color:e,theme:t,variant:n,gradient:r,autoContrast:i})=>{let a=MP({color:e,theme:t}),o=typeof i==`boolean`?i:t.autoContrast;if(n===`none`)return{background:`transparent`,hover:`transparent`,color:`inherit`,border:`none`};if(n===`filled`){let n=a.isThemeColor&&a.shade===void 0&&PP(t.colors[a.color]),r=o?n?`var(--mantine-color-${a.color}-contrast)`:a.isLight?`var(--mantine-color-black)`:`var(--mantine-color-white)`:`var(--mantine-color-white)`;return a.isThemeColor?a.shade===void 0?{background:`var(--mantine-color-${e}-filled)`,hover:`var(--mantine-color-${e}-filled-hover)`,color:r,border:`${W(1)} solid transparent`}:{background:`var(--mantine-color-${a.color}-${a.shade})`,hover:`var(--mantine-color-${a.color}-${a.shade===9?8:a.shade+1})`,color:r,border:`${W(1)} solid transparent`}:{background:e,hover:FP(e,.1),color:r,border:`${W(1)} solid transparent`}}if(n===`light`){if(a.isThemeColor){if(a.shade===void 0)return{background:`var(--mantine-color-${e}-light)`,hover:`var(--mantine-color-${e}-light-hover)`,color:`var(--mantine-color-${e}-light-color)`,border:`${W(1)} solid transparent`};let n=t.colors[a.color][a.shade];return{background:n,hover:FP(n,.1),color:`var(--mantine-color-${a.color}-light-color)`,border:`${W(1)} solid transparent`}}return{background:LP(e,.1),hover:LP(e,.12),color:e,border:`${W(1)} solid transparent`}}if(n===`outline`)return a.isThemeColor?a.shade===void 0?{background:`transparent`,hover:`var(--mantine-color-${e}-outline-hover)`,color:`var(--mantine-color-${e}-outline)`,border:`${W(1)} solid var(--mantine-color-${e}-outline)`}:{background:`transparent`,hover:LP(t.colors[a.color][a.shade],.05),color:`var(--mantine-color-${a.color}-${a.shade})`,border:`${W(1)} solid var(--mantine-color-${a.color}-${a.shade})`}:{background:`transparent`,hover:LP(e,.05),color:e,border:`${W(1)} solid ${e}`};if(n===`subtle`){if(a.isThemeColor){if(a.shade===void 0)return{background:`transparent`,hover:`var(--mantine-color-${e}-light-hover)`,color:`var(--mantine-color-${e}-light-color)`,border:`${W(1)} solid transparent`};let n=t.colors[a.color][a.shade];return{background:`transparent`,hover:LP(n,.12),color:`var(--mantine-color-${a.color}-${Math.min(a.shade,6)})`,border:`${W(1)} solid transparent`}}return{background:`transparent`,hover:LP(e,.12),color:e,border:`${W(1)} solid transparent`}}return n===`transparent`?a.isThemeColor?a.shade===void 0?{background:`transparent`,hover:`transparent`,color:`var(--mantine-color-${e}-light-color)`,border:`${W(1)} solid transparent`}:{background:`transparent`,hover:`transparent`,color:`var(--mantine-color-${a.color}-${Math.min(a.shade,6)})`,border:`${W(1)} solid transparent`}:{background:`transparent`,hover:`transparent`,color:e,border:`${W(1)} solid transparent`}:n===`white`?a.isThemeColor?a.shade===void 0?{background:`var(--mantine-color-white)`,hover:FP(t.white,.01),color:`var(--mantine-color-${e}-filled)`,border:`${W(1)} solid transparent`}:{background:`var(--mantine-color-white)`,hover:FP(t.white,.01),color:`var(--mantine-color-${a.color}-${a.shade})`,border:`${W(1)} solid transparent`}:{background:`var(--mantine-color-white)`,hover:FP(t.white,.01),color:e,border:`${W(1)} solid transparent`}:n===`gradient`?{background:IP(r,t),hover:IP(r,t),color:`var(--mantine-color-white)`,border:`none`}:n==="default"?{background:`var(--mantine-color-default)`,hover:`var(--mantine-color-default-hover)`,color:`var(--mantine-color-default-color)`,border:`${W(1)} solid var(--mantine-color-default-border)`}:{}};function BP({color:e,theme:t,autoContrast:n,colorScheme:r}){return(typeof n==`boolean`?n:t.autoContrast)&&MP({color:e||t.primaryColor,theme:t,colorScheme:r}).isLight?`var(--mantine-color-black)`:`var(--mantine-color-white)`}function VP(e,t,n){return BP({color:n===`dark`?e.dark:e.light,theme:t,colorScheme:n,autoContrast:!0})}function HP(e,t){let n=e.colors[e.primaryColor];return PP(n)?e.autoContrast?VP(n,e,t):`var(--mantine-color-white)`:BP({color:n[TP(e,t)],theme:e,autoContrast:null})}function UP(e,t){return typeof e==`boolean`?e:t.autoContrast}var WP=(0,G.createContext)(null);function GP(){let e=(0,G.use)(WP);if(!e)throw Error(`[@mantine/core] MantineProvider was not found in tree`);return e}function KP(){return GP().cssVariablesResolver}function qP(){return GP().classNamesPrefix}function JP(){return GP().getStyleNonce}function YP(){return GP().withStaticClasses}function XP(){return GP().headless}function ZP(){return GP().stylesTransform?.sx}function QP(){return GP().stylesTransform?.styles}function $P(){return GP().env||`default`}function eF(){return GP().deduplicateInlineStyles}function tF(e,t){let n=typeof window<`u`&&`matchMedia`in window&&window.matchMedia(`(prefers-color-scheme: dark)`)?.matches,r=e===`auto`?n?`dark`:`light`:e;t()?.setAttribute(`data-mantine-color-scheme`,r)}function nF({manager:e,defaultColorScheme:t,getRootElement:n,forceColorScheme:r}){let i=(0,G.useRef)(null),[a,o]=(0,G.useState)(()=>e.get(t)),s=r||a,c=(0,G.useCallback)(t=>{r||(tF(t,n),o(t),e.set(t))},[e.set,s,r]),l=(0,G.useCallback)(()=>{o(t),tF(t,n),e.clear()},[e.clear,t]);return(0,G.useEffect)(()=>(e.subscribe(c),e.unsubscribe),[e.subscribe,e.unsubscribe]),tP(()=>{tF(e.get(t),n)},[]),(0,G.useEffect)(()=>{if(r)return tF(r,n),()=>{};r===void 0&&tF(a,n),typeof window<`u`&&`matchMedia`in window&&(i.current=window.matchMedia(`(prefers-color-scheme: dark)`));let e=e=>{a===`auto`&&tF(e.matches?`dark`:`light`,n)};return i.current?.addEventListener(`change`,e),()=>i.current?.removeEventListener(`change`,e)},[a,r]),{colorScheme:s,setColorScheme:c,clearColorScheme:l}}var rF=s((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.fragment`);function r(e,n,r){var i=null;if(r!==void 0&&(i=``+r),n.key!==void 0&&(i=``+n.key),`key`in n)for(var a in r={},n)a!==`key`&&(r[a]=n[a]);else r=n;return n=r.ref,{$$typeof:t,type:e,key:i,ref:n===void 0?null:n,props:r}}e.Fragment=n,e.jsx=r,e.jsxs=r})),iF=s(((e,t)=>{t.exports=rF()})),aF={dark:[`#C9C9C9`,`#b8b8b8`,`#828282`,`#696969`,`#424242`,`#3b3b3b`,`#2e2e2e`,`#242424`,`#1f1f1f`,`#141414`],gray:[`#f8f9fa`,`#f1f3f5`,`#e9ecef`,`#dee2e6`,`#ced4da`,`#adb5bd`,`#868e96`,`#495057`,`#343a40`,`#212529`],red:[`#fff5f5`,`#ffe3e3`,`#ffc9c9`,`#ffa8a8`,`#ff8787`,`#ff6b6b`,`#fa5252`,`#f03e3e`,`#e03131`,`#c92a2a`],pink:[`#fff0f6`,`#ffdeeb`,`#fcc2d7`,`#faa2c1`,`#f783ac`,`#f06595`,`#e64980`,`#d6336c`,`#c2255c`,`#a61e4d`],grape:[`#f8f0fc`,`#f3d9fa`,`#eebefa`,`#e599f7`,`#da77f2`,`#cc5de8`,`#be4bdb`,`#ae3ec9`,`#9c36b5`,`#862e9c`],violet:[`#f3f0ff`,`#e5dbff`,`#d0bfff`,`#b197fc`,`#9775fa`,`#845ef7`,`#7950f2`,`#7048e8`,`#6741d9`,`#5f3dc4`],indigo:[`#edf2ff`,`#dbe4ff`,`#bac8ff`,`#91a7ff`,`#748ffc`,`#5c7cfa`,`#4c6ef5`,`#4263eb`,`#3b5bdb`,`#364fc7`],blue:[`#e7f5ff`,`#d0ebff`,`#a5d8ff`,`#74c0fc`,`#4dabf7`,`#339af0`,`#228be6`,`#1c7ed6`,`#1971c2`,`#1864ab`],cyan:[`#e3fafc`,`#c5f6fa`,`#99e9f2`,`#66d9e8`,`#3bc9db`,`#22b8cf`,`#15aabf`,`#1098ad`,`#0c8599`,`#0b7285`],teal:[`#e6fcf5`,`#c3fae8`,`#96f2d7`,`#63e6be`,`#38d9a9`,`#20c997`,`#12b886`,`#0ca678`,`#099268`,`#087f5b`],green:[`#ebfbee`,`#d3f9d8`,`#b2f2bb`,`#8ce99a`,`#69db7c`,`#51cf66`,`#40c057`,`#37b24d`,`#2f9e44`,`#2b8a3e`],lime:[`#f4fce3`,`#e9fac8`,`#d8f5a2`,`#c0eb75`,`#a9e34b`,`#94d82d`,`#82c91e`,`#74b816`,`#66a80f`,`#5c940d`],yellow:[`#fff9db`,`#fff3bf`,`#ffec99`,`#ffe066`,`#ffd43b`,`#fcc419`,`#fab005`,`#f59f00`,`#f08c00`,`#e67700`],orange:[`#fff4e6`,`#ffe8cc`,`#ffd8a8`,`#ffc078`,`#ffa94d`,`#ff922b`,`#fd7e14`,`#f76707`,`#e8590c`,`#d9480f`]},oF=`-apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji`,sF={scale:1,fontSmoothing:!0,focusRing:`auto`,white:`#fff`,black:`#000`,colors:aF,primaryShade:{light:6,dark:8},primaryColor:`blue`,variantColorResolver:zP,autoContrast:!1,luminanceThreshold:.3,fontFamily:oF,fontFamilyMonospace:`ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, Courier New, monospace`,respectReducedMotion:!1,cursorType:`default`,defaultGradient:{from:`blue`,to:`cyan`,deg:45},defaultRadius:`md`,activeClassName:`mantine-active`,focusClassName:``,headings:{fontFamily:oF,fontWeight:`700`,textWrap:`wrap`,sizes:{h1:{fontSize:W(34),lineHeight:`1.3`},h2:{fontSize:W(26),lineHeight:`1.35`},h3:{fontSize:W(22),lineHeight:`1.4`},h4:{fontSize:W(18),lineHeight:`1.45`},h5:{fontSize:W(16),lineHeight:`1.5`},h6:{fontSize:W(14),lineHeight:`1.5`}}},fontSizes:{xs:W(12),sm:W(14),md:W(16),lg:W(18),xl:W(20)},lineHeights:{xs:`1.4`,sm:`1.45`,md:`1.55`,lg:`1.6`,xl:`1.65`},fontWeights:{regular:`400`,medium:`600`,bold:`700`},radius:{xs:W(2),sm:W(4),md:W(8),lg:W(16),xl:W(32)},spacing:{xs:W(10),sm:W(12),md:W(16),lg:W(20),xl:W(32)},breakpoints:{xs:`36em`,sm:`48em`,md:`62em`,lg:`75em`,xl:`88em`},shadows:{xs:`0 ${W(1)} ${W(3)} rgba(0, 0, 0, 0.05), 0 ${W(1)} ${W(2)} rgba(0, 0, 0, 0.1)`,sm:`0 ${W(1)} ${W(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${W(10)} ${W(15)} ${W(-5)}, rgba(0, 0, 0, 0.04) 0 ${W(7)} ${W(7)} ${W(-5)}`,md:`0 ${W(1)} ${W(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${W(20)} ${W(25)} ${W(-5)}, rgba(0, 0, 0, 0.04) 0 ${W(10)} ${W(10)} ${W(-5)}`,lg:`0 ${W(1)} ${W(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${W(28)} ${W(23)} ${W(-7)}, rgba(0, 0, 0, 0.04) 0 ${W(12)} ${W(12)} ${W(-7)}`,xl:`0 ${W(1)} ${W(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${W(36)} ${W(28)} ${W(-7)}, rgba(0, 0, 0, 0.04) 0 ${W(17)} ${W(17)} ${W(-7)}`},other:{},components:{}},cF=`[@mantine/core] MantineProvider: Invalid theme.primaryColor, it accepts only key of theme.colors, learn more – https://mantine.dev/theming/colors/#primary-color`,lF=`[@mantine/core] MantineProvider: Invalid theme.primaryShade, it accepts only 0-9 integers or an object { light: 0-9, dark: 0-9 }`;function uF(e){return e<0||e>9?!1:parseInt(e.toString(),10)===e}function dF(e){if(!(e.primaryColor in e.colors))throw Error(cF);if(typeof e.primaryShade==`object`&&(!uF(e.primaryShade.dark)||!uF(e.primaryShade.light))||typeof e.primaryShade==`number`&&!uF(e.primaryShade))throw Error(lF)}function fF(e,t){if(!t)return dF(e),e;let n=EN(e,t);return t.fontFamily&&!t.headings?.fontFamily&&(n.headings={...n.headings,fontFamily:t.fontFamily}),dF(n),n}var K=iF(),pF=(0,G.createContext)(null),mF=()=>(0,G.use)(pF)||sF;function hF(){let e=(0,G.use)(pF);if(!e)throw Error(`@mantine/core: MantineProvider was not found in component tree, make sure you have it in your app`);return e}function gF({theme:e,children:t,inherit:n=!0}){let r=mF(),i=(0,G.useMemo)(()=>fF(n?r:sF,e),[e,r,n]);return(0,K.jsx)(pF,{value:i,children:t})}gF.displayName=`@mantine/core/MantineThemeProvider`;function _F(e){return Object.entries(e).map(([e,t])=>`${e}: ${t};`).join(``)}function vF(e,t){let n=t?[t]:[`:root`,`:host`],r=_F(e.variables),i=r?`${n.join(`, `)}{${r}}`:``,a=_F(e.dark),o=_F(e.light),s=e=>n.map(t=>t===`:host`?`${t}([data-mantine-color-scheme="${e}"])`:`${t}[data-mantine-color-scheme="${e}"]`).join(`, `);return`${i}\n\n${a?`${s(`dark`)}{${a}}`:``}\n\n${o?`${s(`light`)}{${o}}`:``}`}function yF({theme:e,color:t,colorScheme:n,name:r=t,withColorValues:i=!0}){if(!e.colors[t])return{};if(n===`light`){let n=TP(e,`light`),a={[`--mantine-color-${r}-text`]:`var(--mantine-color-${r}-filled)`,[`--mantine-color-${r}-filled`]:`var(--mantine-color-${r}-${n})`,[`--mantine-color-${r}-filled-hover`]:`var(--mantine-color-${r}-${n===9?8:n+1})`,[`--mantine-color-${r}-light`]:`var(--mantine-color-${r}-1)`,[`--mantine-color-${r}-light-hover`]:`var(--mantine-color-${r}-2)`,[`--mantine-color-${r}-light-color`]:`var(--mantine-color-${r}-9)`,[`--mantine-color-${r}-outline`]:`var(--mantine-color-${r}-${n})`,[`--mantine-color-${r}-outline-hover`]:RP(e.colors[t][n],.05)};return i?{[`--mantine-color-${r}-0`]:e.colors[t][0],[`--mantine-color-${r}-1`]:e.colors[t][1],[`--mantine-color-${r}-2`]:e.colors[t][2],[`--mantine-color-${r}-3`]:e.colors[t][3],[`--mantine-color-${r}-4`]:e.colors[t][4],[`--mantine-color-${r}-5`]:e.colors[t][5],[`--mantine-color-${r}-6`]:e.colors[t][6],[`--mantine-color-${r}-7`]:e.colors[t][7],[`--mantine-color-${r}-8`]:e.colors[t][8],[`--mantine-color-${r}-9`]:e.colors[t][9],...a}:a}let a=TP(e,`dark`),o={[`--mantine-color-${r}-text`]:`var(--mantine-color-${r}-4)`,[`--mantine-color-${r}-filled`]:`var(--mantine-color-${r}-${a})`,[`--mantine-color-${r}-filled-hover`]:`var(--mantine-color-${r}-${a===9?8:a+1})`,[`--mantine-color-${r}-light`]:FP(e.colors[t][9],.5),[`--mantine-color-${r}-light-hover`]:FP(e.colors[t][9],.3),[`--mantine-color-${r}-light-color`]:`var(--mantine-color-${r}-0)`,[`--mantine-color-${r}-outline`]:`var(--mantine-color-${r}-${Math.max(a-4,0)})`,[`--mantine-color-${r}-outline-hover`]:RP(e.colors[t][Math.max(a-4,0)],.05)};return i?{[`--mantine-color-${r}-0`]:e.colors[t][0],[`--mantine-color-${r}-1`]:e.colors[t][1],[`--mantine-color-${r}-2`]:e.colors[t][2],[`--mantine-color-${r}-3`]:e.colors[t][3],[`--mantine-color-${r}-4`]:e.colors[t][4],[`--mantine-color-${r}-5`]:e.colors[t][5],[`--mantine-color-${r}-6`]:e.colors[t][6],[`--mantine-color-${r}-7`]:e.colors[t][7],[`--mantine-color-${r}-8`]:e.colors[t][8],[`--mantine-color-${r}-9`]:e.colors[t][9],...o}:o}function bF(e,t,n){wN(t).forEach(r=>Object.assign(e,{[`--mantine-${n}-${r}`]:t[r]}))}var xF=e=>{let t=TP(e,`light`),n=e.defaultRadius in e.radius?e.radius[e.defaultRadius]:W(e.defaultRadius),r={variables:{"--mantine-z-index-app":`100`,"--mantine-z-index-modal":`200`,"--mantine-z-index-popover":`300`,"--mantine-z-index-overlay":`400`,"--mantine-z-index-max":`9999`,"--mantine-scale":e.scale.toString(),"--mantine-cursor-type":e.cursorType,"--mantine-webkit-font-smoothing":e.fontSmoothing?`antialiased`:`unset`,"--mantine-moz-font-smoothing":e.fontSmoothing?`grayscale`:`unset`,"--mantine-color-white":e.white,"--mantine-color-black":e.black,"--mantine-line-height":e.lineHeights.md,"--mantine-font-family":e.fontFamily,"--mantine-font-family-monospace":e.fontFamilyMonospace,"--mantine-font-family-headings":e.headings.fontFamily,"--mantine-heading-font-weight":e.headings.fontWeight,"--mantine-heading-text-wrap":e.headings.textWrap,"--mantine-radius-default":n,"--mantine-primary-color-filled":`var(--mantine-color-${e.primaryColor}-filled)`,"--mantine-primary-color-filled-hover":`var(--mantine-color-${e.primaryColor}-filled-hover)`,"--mantine-primary-color-light":`var(--mantine-color-${e.primaryColor}-light)`,"--mantine-primary-color-light-hover":`var(--mantine-color-${e.primaryColor}-light-hover)`,"--mantine-primary-color-light-color":`var(--mantine-color-${e.primaryColor}-light-color)`},light:{"--mantine-color-scheme":`light`,"--mantine-primary-color-contrast":HP(e,`light`),"--mantine-color-bright":`var(--mantine-color-black)`,"--mantine-color-text":e.black,"--mantine-color-body":e.white,"--mantine-color-error":`var(--mantine-color-red-6)`,"--mantine-color-success":`var(--mantine-color-teal-8)`,"--mantine-color-placeholder":`var(--mantine-color-gray-5)`,"--mantine-color-anchor":`var(--mantine-color-${e.primaryColor}-${t})`,"--mantine-color-default":`var(--mantine-color-white)`,"--mantine-color-default-hover":`var(--mantine-color-gray-0)`,"--mantine-color-default-color":`var(--mantine-color-black)`,"--mantine-color-default-border":`var(--mantine-color-gray-4)`,"--mantine-color-dimmed":`var(--mantine-color-gray-6)`,"--mantine-color-disabled":`var(--mantine-color-gray-2)`,"--mantine-color-disabled-color":`var(--mantine-color-gray-5)`,"--mantine-color-disabled-border":`var(--mantine-color-gray-3)`},dark:{"--mantine-color-scheme":`dark`,"--mantine-primary-color-contrast":HP(e,`dark`),"--mantine-color-bright":`var(--mantine-color-white)`,"--mantine-color-text":`var(--mantine-color-dark-0)`,"--mantine-color-body":`var(--mantine-color-dark-7)`,"--mantine-color-error":`var(--mantine-color-red-8)`,"--mantine-color-success":`var(--mantine-color-teal-8)`,"--mantine-color-placeholder":`var(--mantine-color-dark-3)`,"--mantine-color-anchor":`var(--mantine-color-${e.primaryColor}-4)`,"--mantine-color-default":`var(--mantine-color-dark-6)`,"--mantine-color-default-hover":`var(--mantine-color-dark-5)`,"--mantine-color-default-color":`var(--mantine-color-white)`,"--mantine-color-default-border":`var(--mantine-color-dark-4)`,"--mantine-color-dimmed":`var(--mantine-color-dark-2)`,"--mantine-color-disabled":`var(--mantine-color-dark-6)`,"--mantine-color-disabled-color":`var(--mantine-color-dark-3)`,"--mantine-color-disabled-border":`var(--mantine-color-dark-4)`}};bF(r.variables,e.breakpoints,`breakpoint`),bF(r.variables,e.spacing,`spacing`),bF(r.variables,e.fontSizes,`font-size`),bF(r.variables,e.lineHeights,`line-height`),bF(r.variables,e.shadows,`shadow`),bF(r.variables,e.radius,`radius`),bF(r.variables,e.fontWeights,`font-weight`),e.colors[e.primaryColor].forEach((t,n)=>{r.variables[`--mantine-primary-color-${n}`]=`var(--mantine-color-${e.primaryColor}-${n})`}),wN(e.colors).forEach(t=>{let n=e.colors[t];if(PP(n)){Object.assign(r.light,yF({theme:e,name:n.name,color:n.light,colorScheme:`light`,withColorValues:!0})),Object.assign(r.dark,yF({theme:e,name:n.name,color:n.dark,colorScheme:`dark`,withColorValues:!0})),r.light[`--mantine-color-${n.name}-contrast`]=VP(n,e,`light`),r.dark[`--mantine-color-${n.name}-contrast`]=VP(n,e,`dark`);return}n.forEach((e,n)=>{r.variables[`--mantine-color-${t}-${n}`]=e}),Object.assign(r.light,yF({theme:e,color:t,colorScheme:`light`,withColorValues:!1})),Object.assign(r.dark,yF({theme:e,color:t,colorScheme:`dark`,withColorValues:!1}))});let i=e.headings.sizes;return wN(i).forEach(t=>{r.variables[`--mantine-${t}-font-size`]=i[t].fontSize,r.variables[`--mantine-${t}-line-height`]=i[t].lineHeight,r.variables[`--mantine-${t}-font-weight`]=i[t].fontWeight||e.headings.fontWeight}),r};function SF(){let e=hF(),t=JP(),n=wN(e.breakpoints).reduce((t,n)=>{let r=e.breakpoints[n].includes(`px`),i=kN(e.breakpoints[n]);return`${t}@media (max-width: ${r?`${i-.1}px`:MN(i-.1)}) {.mantine-visible-from-${n} {display: none !important;}}@media (min-width: ${r?`${i}px`:MN(i)}) {.mantine-hidden-from-${n} {display: none !important;}}`},``);return(0,K.jsx)(`style`,{"data-mantine-styles":`classes`,nonce:t?.(),dangerouslySetInnerHTML:{__html:n}})}function CF({theme:e,generator:t}){let n=xF(e),r=t?.(e);return r?EN(n,r):n}var wF=xF(sF);function TF(e){let t={variables:{},light:{},dark:{}};return wN(e.variables).forEach(n=>{wF.variables[n]!==e.variables[n]&&(t.variables[n]=e.variables[n])}),wN(e.light).forEach(n=>{wF.light[n]!==e.light[n]&&(t.light[n]=e.light[n])}),wN(e.dark).forEach(n=>{wF.dark[n]!==e.dark[n]&&(t.dark[n]=e.dark[n])}),t}function EF(e){return vF({variables:{},dark:{"--mantine-color-scheme":`dark`},light:{"--mantine-color-scheme":`light`}},e)}function DF({cssVariablesSelector:e,deduplicateCssVariables:t}){let n=hF(),r=JP(),i=CF({theme:n,generator:KP()}),a=(e===void 0||e===`:root`||e===`:host`)&&t,o=vF(a?TF(i):i,e);return o?(0,K.jsx)(`style`,{"data-mantine-styles":!0,nonce:r?.(),dangerouslySetInnerHTML:{__html:`${o}${a?``:EF(e)}`}}):null}DF.displayName=`@mantine/CssVariables`;function OF({respectReducedMotion:e,getRootElement:t}){tP(()=>{e&&t()?.setAttribute(`data-respect-reduced-motion`,`true`)},[e])}function kF({theme:e,children:t,getStyleNonce:n,withStaticClasses:r=!0,withGlobalClasses:i=!0,deduplicateCssVariables:a=!0,withCssVariables:o=!0,cssVariablesSelector:s,classNamesPrefix:c=`mantine`,colorSchemeManager:l=wP(),defaultColorScheme:u=`light`,getRootElement:d=()=>document.documentElement,cssVariablesResolver:f,forceColorScheme:p,stylesTransform:m,env:h,deduplicateInlineStyles:g=!1}){let{colorScheme:_,setColorScheme:v,clearColorScheme:y}=nF({defaultColorScheme:u,forceColorScheme:p,manager:l,getRootElement:d});return OF({respectReducedMotion:e?.respectReducedMotion||!1,getRootElement:d}),(0,K.jsx)(WP,{value:{colorScheme:_,setColorScheme:v,clearColorScheme:y,getRootElement:d,classNamesPrefix:c,getStyleNonce:n,cssVariablesResolver:f,cssVariablesSelector:s??`:root`,withStaticClasses:r,stylesTransform:m,env:h,deduplicateInlineStyles:g},children:(0,K.jsxs)(gF,{theme:e,children:[o&&(0,K.jsx)(DF,{cssVariablesSelector:s,deduplicateCssVariables:a}),i&&(0,K.jsx)(SF,{}),t]})})}kF.displayName=`@mantine/core/MantineProvider`;function AF(e,t,n){let r=hF(),i=(Array.isArray(e)?e:[e]).filter(Boolean),a={};for(let e of i){let t=r.components[e]?.defaultProps,n=typeof t==`function`?t(r):t;n&&(a={...a,...n})}return{...t,...a,...NN(n)}}function jF(e){return e}var MF={always:`mantine-focus-always`,auto:`mantine-focus-auto`,never:`mantine-focus-never`};function NF({theme:e,options:t,unstyled:n}){return vP(t?.focusable&&!n&&(e.focusClassName||MF[e.focusRing]),t?.active&&!n&&e.activeClassName)}function PF({selector:e,stylesCtx:t,options:n,props:r,theme:i}){return xP({theme:i,classNames:n?.classNames,props:n?.props||r,stylesCtx:t})[e]}function FF({selector:e,stylesCtx:t,theme:n,classNames:r,props:i}){return xP({theme:n,classNames:r,props:i,stylesCtx:t})[e]}function IF({rootSelector:e,selector:t,className:n}){return e===t?n:void 0}function LF({selector:e,classes:t,unstyled:n}){return n?void 0:t[e]}function RF({themeName:e,classNamesPrefix:t,selector:n,withStaticClass:r}){return r===!1?[]:e.map(e=>`${t}-${e}-${n}`)}function zF({options:e,classes:t,selector:n,unstyled:r}){return e?.variant&&!r?t[`${n}--${e.variant}`]:void 0}function BF({theme:e,options:t,themeName:n,selector:r,classNamesPrefix:i,resolvedClassNames:a,resolvedThemeClassNames:o,classes:s,unstyled:c,className:l,rootSelector:u,props:d,stylesCtx:f,withStaticClasses:p,headless:m,transformedStyles:h}){return vP(NF({theme:e,options:t,unstyled:c||m}),o.map(e=>e[r]),zF({options:t,classes:s,selector:r,unstyled:c||m}),a[r],FF({selector:r,stylesCtx:f,theme:e,classNames:h,props:d}),PF({selector:r,stylesCtx:f,options:t,props:d,theme:e}),IF({rootSelector:u,selector:r,className:l}),LF({selector:r,classes:s,unstyled:c||m}),p&&!m&&RF({themeName:n,classNamesPrefix:i,selector:r,withStaticClass:t?.withStaticClass}),t?.className)}function VF({style:e,theme:t}){return Array.isArray(e)?e.reduce((e,n)=>({...e,...VF({style:n,theme:t})}),{}):typeof e==`function`?e(t):e??{}}function HF({theme:e,selector:t,options:n,props:r,stylesCtx:i,rootSelector:a,withStylesTransform:o,resolvedStyles:s,resolvedThemeStyles:c,resolvedVars:l,resolvedRootStyle:u}){return{...c[t],...s[t],...!o&&SP({theme:e,styles:n?.styles,props:n?.props||r,stylesCtx:i})[t],...l[t],...a===t?u:null,...VF({style:n?.style,theme:e})}}function UF(e){return e.reduce((e,t)=>(t&&Object.keys(t).forEach(n=>{e[n]={...e[n],...NN(t[n])}}),e),{})}function WF({props:e,stylesCtx:t,themeName:n,theme:r}){let i=QP()?.();return{getTransformedStyles:a=>i?[...a.map(n=>i(n,{props:e,theme:r,ctx:t})),...n.map(n=>i(r.components[n]?.styles,{props:e,theme:r,ctx:t}))].filter(Boolean):[],withStylesTransform:!!i}}function GF({name:e,classes:t,props:n,stylesCtx:r,className:i,style:a,rootSelector:o=`root`,unstyled:s,classNames:c,styles:l,vars:u,varsResolver:d,attributes:f}){let p=hF(),m=qP(),h=YP(),g=XP(),_=(Array.isArray(e)?e:[e]).filter(e=>e),{withStylesTransform:v,getTransformedStyles:y}=WF({props:n,stylesCtx:r,themeName:_,theme:p}),b=xP({theme:p,classNames:c,props:n,stylesCtx:r}),x=_.map(e=>xP({theme:p,classNames:p.components[e]?.classNames,props:n,stylesCtx:r})),S=v?{}:SP({theme:p,styles:l,props:n,stylesCtx:r}),C={};if(!v)for(let e of _){let t=SP({theme:p,styles:p.components[e]?.styles,props:n,stylesCtx:r});for(let e of Object.keys(t))C[e]={...C[e],...t[e]}}let w=UF([g?{}:d?.(p,n,r),..._.map(e=>p.components?.[e]?.vars?.(p,n,r)),u?.(p,n,r)]),T=VF({style:a,theme:p});return(e,a)=>({...f?.[e],className:BF({theme:p,options:a,themeName:_,selector:e,classNamesPrefix:m,resolvedClassNames:b,resolvedThemeClassNames:x,classes:t,unstyled:s,className:i,rootSelector:o,props:n,stylesCtx:r,withStaticClasses:h,headless:g,transformedStyles:y([a?.styles,l])}),style:HF({theme:p,selector:e,options:a,props:n,stylesCtx:r,rootSelector:o,withStylesTransform:v,resolvedStyles:S,resolvedThemeStyles:C,resolvedVars:w,resolvedRootStyle:T})})}function KF(e){return wN(e).reduce((t,n)=>e[n]===void 0?t:`${t}${DN(n)}:${e[n]};`,``).trim()}function qF({selector:e,styles:t,media:n,container:r}){let i=t?KF(t):``,a=Array.isArray(n)?n.map(t=>`@media${t.query}{${e}{${KF(t.styles)}}}`):[],o=Array.isArray(r)?r.map(t=>`@container ${t.query}{${e}{${KF(t.styles)}}}`):[];return`${i?`${e}{${i}}`:``}${a.join(``)}${o.join(``)}`.trim()}function JF(e){let t=5381;for(let n=0;n>>0).toString(36)}function YF({deduplicate:e,...t}){let n=JP(),r=qF(t);return e?(0,K.jsx)(`style`,{href:`mantine-${JF(r)}`,precedence:`mantine`,nonce:n?.(),children:r}):(0,K.jsx)(`style`,{"data-mantine-styles":`inline`,nonce:n?.(),dangerouslySetInnerHTML:{__html:r}})}function XF(e){let t=5381;for(let n=0;n>>0).toString(36)}function ZF(e,t){return`__mdi__-${XF(`${e?KF(e):``}|${Array.isArray(t)?t.map(e=>`${e.query}:${KF(e.styles)}`).join(`|`):``}`)}`}function QF(e){let{m:t,mx:n,my:r,mt:i,mb:a,ml:o,mr:s,me:c,ms:l,mis:u,mie:d,p:f,px:p,py:m,pt:h,pb:g,pl:_,pr:v,pe:y,ps:b,pis:x,pie:S,bd:C,bdrs:w,bg:T,c:E,opacity:D,ff:O,fz:k,fw:ee,lts:te,ta:ne,lh:A,fs:j,tt:re,td:M,w:N,miw:P,maw:ie,h:F,mih:ae,mah:oe,bgsz:se,bgp:ce,bgr:I,bga:L,pos:le,top:ue,left:de,bottom:fe,right:pe,inset:me,display:he,flex:R,hiddenFrom:ge,visibleFrom:z,lightHidden:_e,darkHidden:ve,sx:B,...ye}=e;return{styleProps:NN({m:t,mx:n,my:r,mt:i,mb:a,ml:o,mr:s,me:c,ms:l,mis:u,mie:d,p:f,px:p,py:m,pt:h,pb:g,pl:_,pr:v,pis:x,pie:S,pe:y,ps:b,bd:C,bg:T,c:E,opacity:D,ff:O,fz:k,fw:ee,lts:te,ta:ne,lh:A,fs:j,tt:re,td:M,w:N,miw:P,maw:ie,h:F,mih:ae,mah:oe,bgsz:se,bgp:ce,bgr:I,bga:L,pos:le,top:ue,left:de,bottom:fe,right:pe,inset:me,display:he,flex:R,bdrs:w,hiddenFrom:ge,visibleFrom:z,lightHidden:_e,darkHidden:ve,sx:B}),rest:ye}}var $F={m:{type:`spacing`,property:`margin`},mt:{type:`spacing`,property:`marginTop`},mb:{type:`spacing`,property:`marginBottom`},ml:{type:`spacing`,property:`marginLeft`},mr:{type:`spacing`,property:`marginRight`},ms:{type:`spacing`,property:`marginInlineStart`},me:{type:`spacing`,property:`marginInlineEnd`},mis:{type:`spacing`,property:`marginInlineStart`},mie:{type:`spacing`,property:`marginInlineEnd`},mx:{type:`spacing`,property:`marginInline`},my:{type:`spacing`,property:`marginBlock`},p:{type:`spacing`,property:`padding`},pt:{type:`spacing`,property:`paddingTop`},pb:{type:`spacing`,property:`paddingBottom`},pl:{type:`spacing`,property:`paddingLeft`},pr:{type:`spacing`,property:`paddingRight`},ps:{type:`spacing`,property:`paddingInlineStart`},pe:{type:`spacing`,property:`paddingInlineEnd`},pis:{type:`spacing`,property:`paddingInlineStart`},pie:{type:`spacing`,property:`paddingInlineEnd`},px:{type:`spacing`,property:`paddingInline`},py:{type:`spacing`,property:`paddingBlock`},bd:{type:`border`,property:`border`},bdrs:{type:`radius`,property:`borderRadius`},bg:{type:`color`,property:`background`},c:{type:`textColor`,property:`color`},opacity:{type:`identity`,property:`opacity`},ff:{type:`fontFamily`,property:`fontFamily`},fz:{type:`fontSize`,property:`fontSize`},fw:{type:`identity`,property:`fontWeight`},lts:{type:`size`,property:`letterSpacing`},ta:{type:`identity`,property:`textAlign`},lh:{type:`lineHeight`,property:`lineHeight`},fs:{type:`identity`,property:`fontStyle`},tt:{type:`identity`,property:`textTransform`},td:{type:`identity`,property:`textDecoration`},w:{type:`spacing`,property:`width`},miw:{type:`spacing`,property:`minWidth`},maw:{type:`spacing`,property:`maxWidth`},h:{type:`spacing`,property:`height`},mih:{type:`spacing`,property:`minHeight`},mah:{type:`spacing`,property:`maxHeight`},bgsz:{type:`size`,property:`backgroundSize`},bgp:{type:`identity`,property:`backgroundPosition`},bgr:{type:`identity`,property:`backgroundRepeat`},bga:{type:`identity`,property:`backgroundAttachment`},pos:{type:`identity`,property:`position`},top:{type:`size`,property:`top`},left:{type:`size`,property:`left`},bottom:{type:`size`,property:`bottom`},right:{type:`size`,property:`right`},inset:{type:`size`,property:`inset`},display:{type:`identity`,property:`display`},flex:{type:`identity`,property:`flex`}};function eI(e,t){let n=MP({color:e,theme:t});return n.color===`dimmed`?`var(--mantine-color-dimmed)`:n.color===`bright`?`var(--mantine-color-bright)`:n.variable?`var(${n.variable})`:n.color}function tI(e,t){let n=MP({color:e,theme:t});return n.isThemeColor&&n.shade===void 0?`var(--mantine-color-${n.color}-text)`:eI(e,t)}function nI(e,t){if(typeof e==`number`)return W(e);if(typeof e==`string`){let[n,r,...i]=e.split(` `).filter(e=>e.trim()!==``),a=`${W(n)}`;return r&&(a+=` ${r}`),i.length>0&&(a+=` ${eI(i.join(` `),t)}`),a.trim()}return e}var rI={text:`var(--mantine-font-family)`,mono:`var(--mantine-font-family-monospace)`,monospace:`var(--mantine-font-family-monospace)`,heading:`var(--mantine-font-family-headings)`,headings:`var(--mantine-font-family-headings)`};function iI(e){return typeof e==`string`&&e in rI?rI[e]:e}var aI=[`h1`,`h2`,`h3`,`h4`,`h5`,`h6`];function oI(e,t){return typeof e==`string`&&e in t.fontSizes?`var(--mantine-font-size-${e})`:typeof e==`string`&&aI.includes(e)?`var(--mantine-${e}-font-size)`:typeof e==`number`||typeof e==`string`?W(e):e}function sI(e){return e}var cI=[`h1`,`h2`,`h3`,`h4`,`h5`,`h6`];function lI(e,t){return typeof e==`string`&&e in t.lineHeights?`var(--mantine-line-height-${e})`:typeof e==`string`&&cI.includes(e)?`var(--mantine-${e}-line-height)`:e}function uI(e,t){return typeof e==`string`&&e in t.radius?`var(--mantine-radius-${e})`:typeof e==`number`||typeof e==`string`?W(e):e}function dI(e){return typeof e==`number`?W(e):e}function fI(e,t){if(typeof e==`number`)return W(e);if(typeof e==`string`){let n=e.replace(`-`,``);if(!(n in t.spacing))return W(e);let r=`--mantine-spacing-${n}`;return e.startsWith(`-`)?`calc(var(${r}) * -1)`:`var(${r})`}return e}var pI={color:eI,textColor:tI,fontSize:oI,spacing:fI,radius:uI,identity:sI,size:dI,lineHeight:lI,fontFamily:iI,border:nI};function mI(e){return e.replace(`(min-width: `,``).replace(`em)`,``)}function hI({media:e,...t}){let n=Object.keys(e).sort((e,t)=>Number(mI(e))-Number(mI(t))).map(t=>({query:t,styles:e[t]}));return{...t,media:n}}function gI(e){if(typeof e!=`object`||!e)return!1;let t=Object.keys(e);return t.length!==1||t[0]!==`base`}function _I(e){return typeof e==`object`&&e?`base`in e?e.base:void 0:e}function vI(e){return typeof e==`object`&&e?wN(e).filter(e=>e!==`base`):[]}function yI(e,t){return typeof e==`object`&&e&&t in e?e[t]:e}function bI({styleProps:e,data:t,theme:n}){return hI(wN(e).reduce((r,i)=>{if(i===`hiddenFrom`||i===`visibleFrom`||i===`sx`)return r;let a=t[i],o=Array.isArray(a.property)?a.property:[a.property],s=_I(e[i]);if(!gI(e[i]))return o.forEach(e=>{r.inlineStyles[e]=pI[a.type](s,n)}),r;r.hasResponsiveStyles=!0;let c=vI(e[i]);return o.forEach(t=>{s!=null&&(r.styles[t]=pI[a.type](s,n)),c.forEach(o=>{let s=`(min-width: ${n.breakpoints[o]})`;r.media[s]={...r.media[s],[t]:pI[a.type](yI(e[i],o),n)}})}),r},{hasResponsiveStyles:!1,styles:{},inlineStyles:{},media:{}}))}function xI(){return`__m__-${(0,G.useId)().replace(/[:«»]/g,``)}`}function SI(e){return e}var CI=SI;function wI(e){return e}function TI(e){let t=e;return t.extend=wI,t.withProps=e=>{let n=n=>(0,K.jsx)(t,{...e,...n});return n.extend=t.extend,n.displayName=`WithProps(${t.displayName})`,n},t}function EI(e){let t=e;return t.withProps=e=>{let n=n=>(0,K.jsx)(t,{...e,...n});return n.extend=t.extend,n.displayName=`WithProps(${t.displayName})`,n},t.extend=wI,t}function DI(e){return`data-${(e.startsWith(`data-`)?e.slice(5):e).replace(/([a-z])([A-Z])/g,`$1-$2`).toLowerCase()}`}function OI(e){return Object.keys(e).reduce((t,n)=>{let r=e[n];return r===void 0||r===``||r===!1||r===null||(t[DI(n)]=e[n]),t},{})}function kI(e){return e?typeof e==`string`?{[DI(e)]:!0}:Array.isArray(e)?[...e].reduce((e,t)=>({...e,...kI(t)}),{}):OI(e):null}function AI(e,t){return Array.isArray(e)?[...e].reduce((e,n)=>({...e,...AI(n,t)}),{}):typeof e==`function`?e(t):e??{}}function jI({theme:e,style:t,vars:n,styleProps:r}){let i=AI(t,e),a=AI(n,e);return{...i,...a,...r}}function MI({component:e,style:t,__vars:n,className:r,variant:i,mod:a,size:o,hiddenFrom:s,visibleFrom:c,lightHidden:l,darkHidden:u,renderRoot:d,__size:f,ref:p,...m}){let h=hF(),g=e||`div`,{styleProps:_,rest:v}=QF(m),y=ZP()?.()?.(_.sx),b=xI(),x=bI({styleProps:_,theme:h,data:$F}),S=eF(),C=S&&x.hasResponsiveStyles?ZF(x.styles,x.media):b,w={ref:p,style:jI({theme:h,style:t,vars:n,styleProps:x.inlineStyles}),className:vP(r,y,{[C]:x.hasResponsiveStyles,"mantine-light-hidden":l,"mantine-dark-hidden":u,[`mantine-hidden-from-${s}`]:s,[`mantine-visible-from-${c}`]:c}),"data-variant":i,"data-size":PN(o)?void 0:o||void 0,size:f,...kI(a),...v};return(0,K.jsxs)(K.Fragment,{children:[x.hasResponsiveStyles&&(0,K.jsx)(YF,{selector:`.${C}`,styles:x.styles,media:x.media,deduplicate:S}),typeof d==`function`?d(w):(0,K.jsx)(g,{...w})]})}MI.displayName=`@mantine/core/Box`;var NI=CI(MI),PI=(0,G.createContext)({dir:`ltr`,toggleDirection:()=>{},setDirection:()=>{}});function FI(){return(0,G.use)(PI)}var[II,LI]=LN(`ScrollArea.Root component was not found in tree`);function RI(e,t){let n=(0,G.useEffectEvent)(t);tP(()=>{let t=0;if(e){let r=new ResizeObserver(()=>{cancelAnimationFrame(t),t=window.requestAnimationFrame(n)});return r.observe(e),()=>{window.cancelAnimationFrame(t),r.unobserve(e)}}},[e])}function zI(e){let{style:t,...n}=e,r=LI(),[i,a]=(0,G.useState)(0),[o,s]=(0,G.useState)(0),c=!!(i&&o);return RI(r.scrollbarX,()=>{let e=r.scrollbarX?.offsetHeight||0;r.onCornerHeightChange(e),s(e)}),RI(r.scrollbarY,()=>{let e=r.scrollbarY?.offsetWidth||0;r.onCornerWidthChange(e),a(e)}),c?(0,K.jsx)(`div`,{...n,style:{...t,width:i,height:o}}):null}function BI(e){let t=LI(),n=!!(t.scrollbarX&&t.scrollbarY);return t.type!==`scroll`&&n?(0,K.jsx)(zI,{...e}):null}var VI={scrollHideDelay:1e3,type:`hover`};function HI(e){let{type:t,scrollHideDelay:n,scrollbars:r,getStyles:i,ref:a,...o}=AF(`ScrollAreaRoot`,VI,e),[s,c]=(0,G.useState)(null),[l,u]=(0,G.useState)(null),[d,f]=(0,G.useState)(null),[p,m]=(0,G.useState)(null),[h,g]=(0,G.useState)(null),[_,v]=(0,G.useState)(0),[y,b]=(0,G.useState)(0),[x,S]=(0,G.useState)(!1),[C,w]=(0,G.useState)(!1),T=cP(a,c);return(0,K.jsx)(II,{value:{type:t,scrollHideDelay:n,scrollArea:s,viewport:l,onViewportChange:u,content:d,onContentChange:f,scrollbarX:p,onScrollbarXChange:m,scrollbarXEnabled:x,onScrollbarXEnabledChange:S,scrollbarY:h,onScrollbarYChange:g,scrollbarYEnabled:C,onScrollbarYEnabledChange:w,onCornerWidthChange:v,onCornerHeightChange:b,getStyles:i},children:(0,K.jsx)(NI,{...o,ref:T,__vars:{"--sa-corner-width":r===`xy`?`${_}px`:`0px`,"--sa-corner-height":r===`xy`?`${y}px`:`0px`}})})}HI.displayName=`@mantine/core/ScrollAreaRoot`;function UI(e,t){let n=e/t;return Number.isNaN(n)?0:n}function WI(e){let t=UI(e.viewport,e.content),n=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,r=(e.scrollbar.size-n)*t;return Math.max(r,18)}function GI(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];let r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}function KI(e,[t,n]){return Math.min(n,Math.max(t,e))}function qI(e,t,n=`ltr`){let r=WI(t),i=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,a=t.scrollbar.size-i,o=t.content-t.viewport,s=a-r,c=KI(e,n===`ltr`?[0,o]:[o*-1,0]);return GI([0,o],[0,s])(c)}function JI(e,t,n,r=`ltr`){let i=WI(n),a=i/2,o=t||a,s=i-o,c=n.scrollbar.paddingStart+o,l=n.scrollbar.size-n.scrollbar.paddingEnd-s,u=n.content-n.viewport,d=r===`ltr`?[0,u]:[u*-1,0];return GI([c,l],d)(e)}function YI(e,t){return e>0&&e{e?.(r),(n===!1||!r.defaultPrevented)&&t?.(r)}}var[QI,$I]=LN(`ScrollAreaScrollbar was not found in tree`);function eL(e){let{sizes:t,hasThumb:n,onThumbChange:r,onThumbPointerUp:i,onThumbPointerDown:a,onThumbPositionChange:o,onDragScroll:s,onWheelScroll:c,onResize:l,ref:u,...d}=e,f=LI(),[p,m]=(0,G.useState)(null),h=cP(u,m),g=(0,G.useRef)(null),_=(0,G.useRef)(``),{viewport:v}=f,y=t.content-t.viewport,b=(0,G.useEffectEvent)(c),x=ZN(o),S=QN(l,10),C=e=>{if(g.current){let t=e.clientX-g.current.left,n=e.clientY-g.current.top;s({x:t,y:n})}};return(0,G.useEffect)(()=>{let e=e=>{let t=e.target;p?.contains(t)&&b(e,y)};return document.addEventListener(`wheel`,e,{passive:!1}),()=>document.removeEventListener(`wheel`,e,{passive:!1})},[v,p,y]),(0,G.useEffect)(x,[t,x]),RI(p,S),RI(f.content,S),(0,K.jsx)(QI,{value:{scrollbar:p,hasThumb:n,onThumbChange:ZN(r),onThumbPointerUp:ZN(i),onThumbPositionChange:x,onThumbPointerDown:ZN(a)},children:(0,K.jsx)(`div`,{...d,ref:h,"data-mantine-scrollbar":!0,style:{position:`absolute`,...d.style},onPointerDown:ZI(e.onPointerDown,e=>{e.preventDefault(),e.button===0&&(e.target.setPointerCapture(e.pointerId),g.current=p.getBoundingClientRect(),_.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect=`none`,C(e))}),onPointerMove:ZI(e.onPointerMove,C),onPointerUp:ZI(e.onPointerUp,e=>{let t=e.target;t.hasPointerCapture(e.pointerId)&&(e.preventDefault(),t.releasePointerCapture(e.pointerId))}),onLostPointerCapture:()=>{document.body.style.webkitUserSelect=_.current,g.current=null}})})}var tL=e=>{let{sizes:t,onSizesChange:n,style:r,ref:i,...a}=e,o=LI(),[s,c]=(0,G.useState)(),l=(0,G.useRef)(null),u=cP(i,l,o.onScrollbarXChange);return(0,G.useEffect)(()=>{l.current&&c(getComputedStyle(l.current))},[l]),(0,K.jsx)(eL,{"data-orientation":`horizontal`,...a,ref:u,sizes:t,style:{...r,"--sa-thumb-width":`${WI(t)}px`},onThumbPointerDown:t=>e.onThumbPointerDown(t.x),onDragScroll:t=>e.onDragScroll(t.x),onWheelScroll:(t,n)=>{if(o.viewport){let r=o.viewport.scrollLeft+t.deltaX;e.onWheelScroll(r),YI(r,n)&&t.preventDefault()}},onResize:()=>{l.current&&o.viewport&&s&&n({content:o.viewport.scrollWidth,viewport:o.viewport.offsetWidth,scrollbar:{size:l.current.clientWidth,paddingStart:XI(s.paddingLeft),paddingEnd:XI(s.paddingRight)}})}})};tL.displayName=`@mantine/core/ScrollAreaScrollbarX`;function nL(e){let{sizes:t,onSizesChange:n,style:r,ref:i,...a}=e,o=LI(),[s,c]=(0,G.useState)(),l=(0,G.useRef)(null),u=cP(i,l,o.onScrollbarYChange);return(0,G.useEffect)(()=>{l.current&&c(window.getComputedStyle(l.current))},[]),(0,K.jsx)(eL,{...a,"data-orientation":`vertical`,ref:u,sizes:t,style:{"--sa-thumb-height":`${WI(t)}px`,...r},onThumbPointerDown:t=>e.onThumbPointerDown(t.y),onDragScroll:t=>e.onDragScroll(t.y),onWheelScroll:(t,n)=>{if(o.viewport){let r=o.viewport.scrollTop+t.deltaY;e.onWheelScroll(r),YI(r,n)&&t.preventDefault()}},onResize:()=>{l.current&&o.viewport&&s&&n({content:o.viewport.scrollHeight,viewport:o.viewport.offsetHeight,scrollbar:{size:l.current.clientHeight,paddingStart:XI(s.paddingTop),paddingEnd:XI(s.paddingBottom)}})}})}nL.displayName=`@mantine/core/ScrollAreaScrollbarY`;function rL(e){let{orientation:t=`vertical`,...n}=e,{dir:r}=FI(),i=LI(),a=(0,G.useRef)(null),o=(0,G.useRef)(0),[s,c]=(0,G.useState)({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),l=UI(s.viewport,s.content),u={...n,sizes:s,onSizesChange:c,hasThumb:l>0&&l<1,onThumbChange:e=>{a.current=e},onThumbPointerUp:()=>{o.current=0},onThumbPointerDown:e=>{o.current=e}},d=(e,t)=>JI(e,o.current,s,t);return t===`horizontal`?(0,K.jsx)(tL,{...u,onThumbPositionChange:()=>{if(i.viewport&&a.current){let e=i.viewport.scrollLeft,t=qI(e,s,r);a.current.style.transform=`translate3d(${t}px, 0, 0)`}},onWheelScroll:e=>{i.viewport&&(i.viewport.scrollLeft=e)},onDragScroll:e=>{i.viewport&&(i.viewport.scrollLeft=d(e,r))}}):t===`vertical`?(0,K.jsx)(nL,{...u,onThumbPositionChange:()=>{if(i.viewport&&a.current){let e=i.viewport.scrollTop,t=qI(e,s);s.scrollbar.size===0?a.current.style.setProperty(`--thumb-opacity`,`0`):a.current.style.setProperty(`--thumb-opacity`,`1`),a.current.style.transform=`translate3d(0, ${t}px, 0)`}},onWheelScroll:e=>{i.viewport&&(i.viewport.scrollTop=e)},onDragScroll:e=>{i.viewport&&(i.viewport.scrollTop=d(e))}}):null}rL.displayName=`@mantine/core/ScrollAreaScrollbarVisible`;function iL(e){let t=LI(),{forceMount:n,...r}=e,[i,a]=(0,G.useState)(!1),o=e.orientation===`horizontal`,s=QN(()=>{if(t.viewport){let e=t.viewport.offsetWidth{let{scrollArea:e}=r,t=0;if(e){let n=()=>{window.clearTimeout(t),a(!0)},i=()=>{t=window.setTimeout(()=>a(!1),r.scrollHideDelay)};return e.addEventListener(`pointerenter`,n),e.addEventListener(`pointerleave`,i),()=>{window.clearTimeout(t),e.removeEventListener(`pointerenter`,n),e.removeEventListener(`pointerleave`,i)}}},[r.scrollArea,r.scrollHideDelay]),t||i?(0,K.jsx)(iL,{"data-state":i?`visible`:`hidden`,...n}):null}aL.displayName=`@mantine/core/ScrollAreaScrollbarHover`;function oL(e){let{forceMount:t,...n}=e,r=LI(),i=e.orientation===`horizontal`,[a,o]=(0,G.useState)(`hidden`),s=QN(()=>o(`idle`),100);return(0,G.useEffect)(()=>{if(a===`idle`){let e=window.setTimeout(()=>o(`hidden`),r.scrollHideDelay);return()=>window.clearTimeout(e)}},[a,r.scrollHideDelay]),(0,G.useEffect)(()=>{let{viewport:e}=r,t=i?`scrollLeft`:`scrollTop`;if(e){let n=e[t],r=()=>{let r=e[t];n!==r&&(o(`scrolling`),s()),n=r};return e.addEventListener(`scroll`,r),()=>e.removeEventListener(`scroll`,r)}},[r.viewport,i,s]),t||a!==`hidden`?(0,K.jsx)(rL,{"data-state":a===`hidden`?`hidden`:`visible`,...n,onPointerEnter:ZI(e.onPointerEnter,()=>o(`interacting`)),onPointerLeave:ZI(e.onPointerLeave,()=>o(`idle`))}):null}function sL(e){let{forceMount:t,...n}=e,r=LI(),{onScrollbarXEnabledChange:i,onScrollbarYEnabledChange:a}=r,o=e.orientation===`horizontal`;return(0,G.useEffect)(()=>(o?i(!0):a(!0),()=>{o?i(!1):a(!1)}),[o,i,a]),r.type===`hover`?(0,K.jsx)(aL,{...n,forceMount:t}):r.type===`scroll`?(0,K.jsx)(oL,{...n,forceMount:t}):r.type===`auto`?(0,K.jsx)(iL,{...n,forceMount:t}):r.type===`always`?(0,K.jsx)(rL,{...n}):null}sL.displayName=`@mantine/core/ScrollAreaScrollbar`;function cL(e,t=()=>{}){let n={left:e.scrollLeft,top:e.scrollTop},r=0;return(function i(){let a={left:e.scrollLeft,top:e.scrollTop},o=n.left!==a.left,s=n.top!==a.top;(o||s)&&t(),n=a,r=window.requestAnimationFrame(i)})(),()=>window.cancelAnimationFrame(r)}function lL(e){let{style:t,ref:n,...r}=e,i=LI(),a=$I(),{onThumbPositionChange:o}=a,s=cP(n,a.onThumbChange),c=(0,G.useRef)(void 0),l=QN(()=>{c.current&&=(c.current(),void 0)},100);return(0,G.useEffect)(()=>{let{viewport:e}=i;if(e){let t=()=>{if(l(),!c.current){let t=cL(e,o);c.current=t,o()}};return o(),e.addEventListener(`scroll`,t),()=>e.removeEventListener(`scroll`,t)}},[i.viewport,l,o]),(0,K.jsx)(`div`,{"data-state":a.hasThumb?`visible`:`hidden`,...r,ref:s,style:{width:`var(--sa-thumb-width)`,height:`var(--sa-thumb-height)`,...t},onPointerDownCapture:ZI(e.onPointerDownCapture,e=>{let t=e.target.getBoundingClientRect(),n=e.clientX-t.left,r=e.clientY-t.top;a.onThumbPointerDown({x:n,y:r})}),onPointerUp:ZI(e.onPointerUp,a.onThumbPointerUp)})}lL.displayName=`@mantine/core/ScrollAreaThumb`;function uL(e){let{forceMount:t,...n}=e,r=$I();return t||r.hasThumb?(0,K.jsx)(lL,{...n}):null}uL.displayName=`@mantine/core/ScrollAreaThumb`;function dL({children:e,style:t,ref:n,onWheel:r,...i}){let a=LI(),o=cP(n,a.onViewportChange),s=e=>{if(r?.(e),a.scrollbarXEnabled&&a.viewport&&e.shiftKey){let{scrollTop:t,scrollHeight:n,clientHeight:r,scrollWidth:i,clientWidth:o}=a.viewport,s=t<1,c=t>=n-r-1;i>o&&(s||c)&&e.stopPropagation()}};return(0,K.jsx)(NI,{...i,ref:o,onWheel:s,"data-scrollarea-viewport":!0,style:{overflowX:a.scrollbarXEnabled?`scroll`:`hidden`,overflowY:a.scrollbarYEnabled?`scroll`:`hidden`,...t},children:(0,K.jsx)(`div`,{...a.getStyles(`content`),ref:a.onContentChange,children:e})})}dL.displayName=`@mantine/core/ScrollAreaViewport`;var fL={root:`m_d57069b5`,content:`m_b1336c6`,viewport:`m_c0783ff9`,viewportInner:`m_f8f631dd`,scrollbar:`m_c44ba933`,thumb:`m_d8b5e363`,corner:`m_21657268`};typeof document<`u`&&G.useLayoutEffect,{...G}.useInsertionEffect;var pL=u(hP(),1);function mL(e){let t=G.useRef(void 0),n=G.useCallback(t=>{let n=e.map(e=>{if(e!=null){if(typeof e==`function`){let n=e,r=n(t);return typeof r==`function`?r:()=>{n(null)}}return e.current=t,()=>{e.current=null}}});return()=>{n.forEach(e=>e?.())}},e);return G.useMemo(()=>e.every(e=>e==null)?null:e=>{t.current&&=(t.current(),void 0),e!=null&&(t.current=n(e))},e)}var hL=`ArrowLeft`,gL=`ArrowRight`,_L=`ArrowUp`,vL=`ArrowDown`,yL=[hL,gL],bL=[_L,vL];[...yL,...bL],{...G}.useId;var xL={scrollHideDelay:1e3,type:`hover`,scrollbars:`xy`},SL=gP((e,{scrollbarSize:t,overscrollBehavior:n,scrollbars:r})=>{let i=n;return n&&r&&(r===`x`?i=`${n} auto`:r===`y`&&(i=`auto ${n}`)),{root:{"--scrollarea-scrollbar-size":W(t),"--scrollarea-over-scroll-behavior":i}}}),CL=TI(e=>{let t=AF(`ScrollArea`,xL,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,scrollbarSize:s,vars:c,type:l,scrollHideDelay:u,viewportProps:d,viewportRef:f,onScrollPositionChange:p,children:m,offsetScrollbars:h,scrollbars:g,onBottomReached:_,onTopReached:v,onLeftReached:y,onRightReached:b,overscrollBehavior:x,startScrollPosition:S,verticalScrollbarPosition:C,attributes:w,...T}=t,[E,D]=(0,G.useState)(!1),[O,k]=(0,G.useState)(!1),[ee,te]=(0,G.useState)(!1),ne=(0,G.useRef)(!0),A=(0,G.useRef)(!1),j=(0,G.useRef)(!0),re=(0,G.useRef)(!1),M=GF({name:`ScrollArea`,props:t,classes:fL,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:w,vars:c,varsResolver:SL}),N=(0,G.useRef)(null),[P,ie]=(0,G.useState)(null),F=mL([f,N,(0,G.useCallback)(e=>{ie(t=>t===e?t:e)},[])]);return RI(h===`present`?P:null,()=>{let e=N.current;e&&(k(e.scrollHeight>e.clientHeight),te(e.scrollWidth>e.clientWidth))}),tP(()=>{S&&N.current&&N.current.scrollTo({left:S.x??0,top:S.y??0})},[]),(0,K.jsxs)(HI,{getStyles:M,type:l===`never`?`always`:l,scrollHideDelay:u,scrollbars:g,...M(`root`),...T,children:[(0,K.jsx)(dL,{...d,...M(`viewport`,{style:d?.style}),ref:F,"data-offset-scrollbars":h===!0?`xy`:h||void 0,"data-scrollbars":g||void 0,"data-vertical-scrollbar-position":C||void 0,"data-horizontal-hidden":h===`present`&&!ee?`true`:void 0,"data-vertical-hidden":h===`present`&&!O?`true`:void 0,onScroll:e=>{d?.onScroll?.(e),p?.({x:e.currentTarget.scrollLeft,y:e.currentTarget.scrollTop});let{scrollTop:t,scrollHeight:n,clientHeight:r,scrollLeft:i,scrollWidth:a,clientWidth:o}=e.currentTarget,s=t-(n-r)>=-.8,c=t===0;s&&!A.current&&_?.(),c&&!ne.current&&v?.(),A.current=s,ne.current=c;let l=i-(a-o)>=-.8,u=i===0;l&&!re.current&&b?.(),u&&!j.current&&y?.(),re.current=l,j.current=u},children:m}),(g===`xy`||g===`x`)&&(0,K.jsx)(sL,{...M(`scrollbar`),orientation:`horizontal`,"data-vertical-scrollbar-position":C||void 0,"data-hidden":l===`never`||h===`present`&&!ee||void 0,forceMount:!0,onMouseEnter:()=>D(!0),onMouseLeave:()=>D(!1),children:(0,K.jsx)(uL,{...M(`thumb`)})}),(g===`xy`||g===`y`)&&(0,K.jsx)(sL,{...M(`scrollbar`),orientation:`vertical`,"data-vertical-scrollbar-position":C||void 0,"data-hidden":l===`never`||h===`present`&&!O||void 0,forceMount:!0,onMouseEnter:()=>D(!0),onMouseLeave:()=>D(!1),children:(0,K.jsx)(uL,{...M(`thumb`)})}),(0,K.jsx)(BI,{...M(`corner`),"data-vertical-scrollbar-position":C||void 0,"data-hovered":E||void 0,"data-hidden":l===`never`||void 0})]})});CL.displayName=`@mantine/core/ScrollArea`;var wL=TI(e=>{let{children:t,classNames:n,styles:r,scrollbarSize:i,scrollHideDelay:a,type:o,dir:s,offsetScrollbars:c,overscrollBehavior:l,viewportRef:u,onScrollPositionChange:d,unstyled:f,variant:p,viewportProps:m,scrollbars:h,style:g,vars:_,onBottomReached:v,onTopReached:y,startScrollPosition:b,verticalScrollbarPosition:x,onOverflowChange:S,...C}=AF(`ScrollAreaAutosize`,xL,e),w=(0,G.useRef)(null),[T,E]=(0,G.useState)(null),D=mL([u,w,(0,G.useCallback)(e=>{E(t=>t===e?t:e)},[])]),O=(0,G.useRef)(!1),k=(0,G.useRef)(!1),ee=(0,G.useEffectEvent)(()=>{let e=w.current;if(!e||!S)return;let t=e.scrollHeight>e.clientHeight;t!==O.current&&(k.current?S(t):(k.current=!0,t&&S(!0)),O.current=t)});return RI(S?T:null,ee),(0,K.jsx)(NI,{...C,variant:p,style:[{display:`flex`,overflow:`hidden`},g],children:(0,K.jsx)(NI,{style:{display:`flex`,flexDirection:`column`,flex:1,overflow:`hidden`,...h===`y`&&{minWidth:0},...h===`x`&&{minHeight:0},...h===`xy`&&{minWidth:0,minHeight:0},...h===!1&&{minWidth:0,minHeight:0}},children:(0,K.jsx)(CL,{classNames:n,styles:r,scrollHideDelay:a,scrollbarSize:i,type:o,dir:s,offsetScrollbars:c,overscrollBehavior:l,viewportRef:D,onScrollPositionChange:d,unstyled:f,variant:p,viewportProps:m,vars:_,scrollbars:h,onBottomReached:v,onTopReached:y,startScrollPosition:b,verticalScrollbarPosition:x,"data-autosize":`true`,children:t})})})});CL.classes=fL,CL.varsResolver=SL,wL.displayName=`@mantine/core/ScrollAreaAutosize`,wL.classes=fL,CL.Autosize=wL;var TL={root:`m_87cf2631`},EL={__staticSelector:`UnstyledButton`},DL=EI(e=>{let t=AF(`UnstyledButton`,EL,e),{className:n,component:r=`button`,__staticSelector:i,unstyled:a,classNames:o,styles:s,style:c,attributes:l,...u}=t;return(0,K.jsx)(NI,{...GF({name:i,props:t,classes:TL,className:n,style:c,classNames:o,styles:s,unstyled:a,attributes:l})(`root`,{focusable:!0}),component:r,type:r===`button`?`button`:void 0,...u})});DL.classes=TL,DL.displayName=`@mantine/core/UnstyledButton`;var OL={root:`m_1b7284a3`},kL=gP((e,{radius:t,shadow:n})=>({root:{"--paper-radius":t===void 0?void 0:KN(t),"--paper-shadow":YN(n)}})),AL=EI(e=>{let t=AF(`Paper`,null,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,withBorder:s,vars:c,radius:l,shadow:u,variant:d,mod:f,attributes:p,...m}=t,h=GF({name:`Paper`,props:t,classes:OL,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:p,vars:c,varsResolver:kL});return(0,K.jsx)(NI,{mod:[{"data-with-border":s},f],...h(`root`),variant:d,...m})});AL.classes=OL,AL.varsResolver=kL,AL.displayName=`@mantine/core/Paper`;var jL=e=>({in:{opacity:1,transform:`scale(1)`},out:{opacity:0,transform:`scale(.9) translateY(${e===`bottom`?10:-10}px)`},transitionProperty:`transform, opacity`}),ML={fade:{in:{opacity:1},out:{opacity:0},transitionProperty:`opacity`},"fade-up":{in:{opacity:1,transform:`translateY(0)`},out:{opacity:0,transform:`translateY(30px)`},transitionProperty:`opacity, transform`},"fade-down":{in:{opacity:1,transform:`translateY(0)`},out:{opacity:0,transform:`translateY(-30px)`},transitionProperty:`opacity, transform`},"fade-left":{in:{opacity:1,transform:`translateX(0)`},out:{opacity:0,transform:`translateX(30px)`},transitionProperty:`opacity, transform`},"fade-right":{in:{opacity:1,transform:`translateX(0)`},out:{opacity:0,transform:`translateX(-30px)`},transitionProperty:`opacity, transform`},scale:{in:{opacity:1,transform:`scale(1)`},out:{opacity:0,transform:`scale(0)`},common:{transformOrigin:`top`},transitionProperty:`transform, opacity`},"scale-y":{in:{opacity:1,transform:`scaleY(1)`},out:{opacity:0,transform:`scaleY(0)`},common:{transformOrigin:`top`},transitionProperty:`transform, opacity`},"scale-x":{in:{opacity:1,transform:`scaleX(1)`},out:{opacity:0,transform:`scaleX(0)`},common:{transformOrigin:`left`},transitionProperty:`transform, opacity`},"skew-up":{in:{opacity:1,transform:`translateY(0) skew(0deg, 0deg)`},out:{opacity:0,transform:`translateY(-20px) skew(-10deg, -5deg)`},common:{transformOrigin:`top`},transitionProperty:`transform, opacity`},"skew-down":{in:{opacity:1,transform:`translateY(0) skew(0deg, 0deg)`},out:{opacity:0,transform:`translateY(20px) skew(-10deg, -5deg)`},common:{transformOrigin:`bottom`},transitionProperty:`transform, opacity`},"rotate-left":{in:{opacity:1,transform:`translateY(0) rotate(0deg)`},out:{opacity:0,transform:`translateY(20px) rotate(-5deg)`},common:{transformOrigin:`bottom`},transitionProperty:`transform, opacity`},"rotate-right":{in:{opacity:1,transform:`translateY(0) rotate(0deg)`},out:{opacity:0,transform:`translateY(20px) rotate(5deg)`},common:{transformOrigin:`top`},transitionProperty:`transform, opacity`},"slide-down":{in:{opacity:1,transform:`translateY(0)`},out:{opacity:0,transform:`translateY(-100%)`},common:{transformOrigin:`top`},transitionProperty:`transform, opacity`},"slide-up":{in:{opacity:1,transform:`translateY(0)`},out:{opacity:0,transform:`translateY(100%)`},common:{transformOrigin:`bottom`},transitionProperty:`transform, opacity`},"slide-left":{in:{opacity:1,transform:`translateX(0)`},out:{opacity:0,transform:`translateX(100%)`},common:{transformOrigin:`left`},transitionProperty:`transform, opacity`},"slide-right":{in:{opacity:1,transform:`translateX(0)`},out:{opacity:0,transform:`translateX(-100%)`},common:{transformOrigin:`right`},transitionProperty:`transform, opacity`},pop:{...jL(`bottom`),common:{transformOrigin:`center center`}},"pop-bottom-left":{...jL(`bottom`),common:{transformOrigin:`bottom left`}},"pop-bottom-right":{...jL(`bottom`),common:{transformOrigin:`bottom right`}},"pop-top-left":{...jL(`top`),common:{transformOrigin:`top left`}},"pop-top-right":{...jL(`top`),common:{transformOrigin:`top right`}}},NL={entering:`in`,entered:`in`,exiting:`out`,exited:`out`,"pre-exiting":`out`,"pre-entering":`out`};function PL({transition:e,state:t,duration:n,timingFunction:r}){let i={WebkitBackfaceVisibility:`hidden`,transitionDuration:`${n}ms`,transitionTimingFunction:r};return typeof e==`string`?e in ML?{transitionProperty:ML[e].transitionProperty,...i,...ML[e].common,...ML[e][NL[t]]}:{}:{transitionProperty:e.transitionProperty,...i,...e.common,...e[NL[t]]}}function FL({duration:e,exitDuration:t,timingFunction:n,mounted:r,onEnter:i,onExit:a,onEntered:o,onExited:s,enterDelay:c,exitDelay:l}){let u=hF(),d=pP(),f=u.respectReducedMotion?d:!1,[p,m]=(0,G.useState)(f?0:e),[h,g]=(0,G.useState)(r?`entered`:`exited`),_=(0,G.useRef)(-1),v=(0,G.useRef)(-1),y=(0,G.useRef)(-1);function b(){window.clearTimeout(_.current),window.clearTimeout(v.current),cancelAnimationFrame(y.current)}let x=n=>{b();let r=n?i:a,c=n?o:s,l=f?0:n?e:t;m(l),l===0?(typeof r==`function`&&r(),typeof c==`function`&&c(),g(n?`entered`:`exited`)):y.current=requestAnimationFrame(()=>{pL.flushSync(()=>{g(n?`pre-entering`:`pre-exiting`)}),y.current=requestAnimationFrame(()=>{typeof r==`function`&&r(),g(n?`entering`:`exiting`),_.current=window.setTimeout(()=>{typeof c==`function`&&c(),g(n?`entered`:`exited`)},l)})})},S=e=>{if(b(),typeof(e?c:l)!=`number`){x(e);return}v.current=window.setTimeout(()=>{x(e)},e?c:l)};return nP(()=>{S(r)},[r]),(0,G.useEffect)(()=>()=>{b()},[]),{transitionDuration:p,transitionStatus:h,transitionTimingFunction:n||`ease`}}function IL({keepMounted:e,keepMountedMode:t=`activity`,transition:n=`fade`,duration:r=250,exitDuration:i=r,mounted:a,children:o,timingFunction:s=`ease`,onExit:c,onEntered:l,onEnter:u,onExited:d,enterDelay:f,exitDelay:p}){let m=$P(),{transitionDuration:h,transitionStatus:g,transitionTimingFunction:_}=FL({mounted:a,exitDuration:i,duration:r,timingFunction:s,onExit:c,onEntered:l,onEnter:u,onExited:d,enterDelay:f,exitDelay:p});if(m===`test`)return a?(0,K.jsx)(K.Fragment,{children:o({})}):e?o({display:`none`}):null;if(h===0)return e?t===`display-none`?a?(0,K.jsx)(K.Fragment,{children:o({})}):o({display:`none`}):(0,K.jsx)(G.Activity,{mode:a?`visible`:`hidden`,children:o({})}):a?(0,K.jsx)(K.Fragment,{children:o({})}):null;let v=g===`exited`;if(e){let e=o(v?t===`display-none`?{display:`none`}:{}:PL({transition:n,duration:h,state:g,timingFunction:_}));return t===`display-none`?e:(0,K.jsx)(G.Activity,{mode:v?`hidden`:`visible`,children:e})}return v?null:(0,K.jsx)(K.Fragment,{children:o(PL({transition:n,duration:h,state:g,timingFunction:_}))})}IL.displayName=`@mantine/core/Transition`;var LL={root:`m_5ae2e3c`,barsLoader:`m_7a2bd4cd`,bar:`m_870bb79`,"bars-loader-animation":`m_5d2b3b9d`,dotsLoader:`m_4e3f22d7`,dot:`m_870c4af`,"loader-dots-animation":`m_aac34a1`,ovalLoader:`m_b34414df`,"oval-loader-animation":`m_f8e89c4b`},RL=({className:e,...t})=>(0,K.jsxs)(NI,{component:`span`,className:vP(LL.barsLoader,e),...t,children:[(0,K.jsx)(`span`,{className:LL.bar}),(0,K.jsx)(`span`,{className:LL.bar}),(0,K.jsx)(`span`,{className:LL.bar})]});RL.displayName=`@mantine/core/Bars`;var zL=({className:e,...t})=>(0,K.jsxs)(NI,{component:`span`,className:vP(LL.dotsLoader,e),...t,children:[(0,K.jsx)(`span`,{className:LL.dot}),(0,K.jsx)(`span`,{className:LL.dot}),(0,K.jsx)(`span`,{className:LL.dot})]});zL.displayName=`@mantine/core/Dots`;var BL=({className:e,...t})=>(0,K.jsx)(NI,{component:`span`,className:vP(LL.ovalLoader,e),...t});BL.displayName=`@mantine/core/Oval`;var VL={bars:RL,oval:BL,dots:zL},HL={loaders:VL,type:`oval`},UL=gP((e,{size:t,color:n})=>({root:{"--loader-size":WN(t,`loader-size`),"--loader-color":n?NP(n,e):void 0}})),WL=TI(e=>{let t=AF(`Loader`,HL,e),{size:n,color:r,type:i,vars:a,className:o,style:s,classNames:c,styles:l,unstyled:u,loaders:d,variant:f,children:p,attributes:m,...h}=t,g=GF({name:`Loader`,props:t,classes:LL,className:o,style:s,classNames:c,styles:l,unstyled:u,attributes:m,vars:a,varsResolver:UL});return p?(0,K.jsx)(NI,{...g(`root`),...h,children:p}):(0,K.jsx)(NI,{...g(`root`),component:d[i],variant:f,size:n,...h})});WL.defaultLoaders=VL,WL.classes=LL,WL.varsResolver=UL,WL.displayName=`@mantine/core/Loader`;function GL({size:e=`var(--cb-icon-size, 70%)`,style:t,...n}){return(0,K.jsx)(`svg`,{viewBox:`0 0 15 15`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,style:{...t,width:e,height:e},...n,children:(0,K.jsx)(`path`,{d:`M11.7816 4.03157C12.0062 3.80702 12.0062 3.44295 11.7816 3.2184C11.5571 2.99385 11.193 2.99385 10.9685 3.2184L7.50005 6.68682L4.03164 3.2184C3.80708 2.99385 3.44301 2.99385 3.21846 3.2184C2.99391 3.44295 2.99391 3.80702 3.21846 4.03157L6.68688 7.49999L3.21846 10.9684C2.99391 11.193 2.99391 11.557 3.21846 11.7816C3.44301 12.0061 3.80708 12.0061 4.03164 11.7816L7.50005 8.31316L10.9685 11.7816C11.193 12.0061 11.5571 12.0061 11.7816 11.7816C12.0062 11.557 12.0062 11.193 11.7816 10.9684L8.31322 7.49999L11.7816 4.03157Z`,fill:`currentColor`,fillRule:`evenodd`,clipRule:`evenodd`})})}GL.displayName=`@mantine/core/CloseIcon`;var KL={root:`m_86a44da5`,"root--subtle":`m_220c80f2`},fee={variant:`subtle`},qL=gP((e,{size:t,radius:n,iconSize:r})=>({root:{"--cb-size":WN(t,`cb-size`),"--cb-radius":n===void 0?void 0:KN(n),"--cb-icon-size":W(r)}})),JL=EI(e=>{let t=AF(`CloseButton`,fee,e),{iconSize:n,children:r,vars:i,radius:a,className:o,classNames:s,style:c,styles:l,unstyled:u,"data-disabled":d,disabled:f,variant:p,icon:m,mod:h,attributes:g,__staticSelector:_,...v}=t,y=GF({name:_||`CloseButton`,props:t,className:o,style:c,classes:KL,classNames:s,styles:l,unstyled:u,attributes:g,vars:i,varsResolver:qL});return(0,K.jsxs)(DL,{...v,unstyled:u,variant:p,disabled:f,mod:[{disabled:f||d},h],...y(`root`,{variant:p,active:!f&&!d}),children:[m||(0,K.jsx)(GL,{}),r]})});JL.classes=KL,JL.varsResolver=qL,JL.displayName=`@mantine/core/CloseButton`;function pee(e){return G.Children.toArray(e).filter(Boolean)}var YL={root:`m_4081bf90`},mee={preventGrowOverflow:!0,gap:`md`,align:`center`,justify:`flex-start`,wrap:`wrap`},XL=gP((e,{grow:t,preventGrowOverflow:n,gap:r,align:i,justify:a,wrap:o},{childWidth:s})=>({root:{"--group-child-width":t&&n?s:void 0,"--group-gap":GN(r),"--group-align":i,"--group-justify":a,"--group-wrap":o}})),ZL=TI(e=>{let t=AF(`Group`,mee,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,children:s,gap:c,align:l,justify:u,wrap:d,grow:f,preventGrowOverflow:p,vars:m,variant:h,__size:g,mod:_,attributes:v,...y}=t,b=pee(s),x=b.length,S=GN(c??`md`);return(0,K.jsx)(NI,{...GF({name:`Group`,props:t,stylesCtx:{childWidth:`calc(${100/x}% - (${S} - ${S} / ${x}))`},className:r,style:i,classes:YL,classNames:n,styles:a,unstyled:o,attributes:v,vars:m,varsResolver:XL})(`root`),variant:h,mod:[{grow:f},_],size:g,...y,children:b})});ZL.classes=YL,ZL.varsResolver=XL,ZL.displayName=`@mantine/core/Group`;var QL={root:`m_66836ed3`,wrapper:`m_a5d60502`,body:`m_667c2793`,title:`m_6a03f287`,label:`m_698f4f23`,icon:`m_667f2a6a`,message:`m_7fa78076`,closeButton:`m_87f54839`},$L=gP((e,{radius:t,color:n,variant:r,autoContrast:i})=>{let a=e.variantColorResolver({color:n||e.primaryColor,theme:e,variant:r||`light`,autoContrast:i});return{root:{"--alert-radius":t===void 0?void 0:KN(t),"--alert-bg":n||r?a.background:void 0,"--alert-color":a.color,"--alert-bd":n||r?a.border:void 0}}}),eR=TI(e=>{let t=AF(`Alert`,null,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,radius:c,color:l,title:u,children:d,id:f,icon:p,withCloseButton:m,onClose:h,closeButtonLabel:g,variant:_,autoContrast:v,role:y,attributes:b,...x}=t,S=GF({name:`Alert`,classes:QL,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:b,vars:s,varsResolver:$L}),C=aP(f),w=u&&`${C}-title`||void 0,T=`${C}-body`;return(0,K.jsx)(NI,{id:C,...S(`root`,{variant:_}),variant:_,...x,role:y||`alert`,"aria-describedby":d?T:void 0,"aria-labelledby":u?w:void 0,children:(0,K.jsxs)(`div`,{...S(`wrapper`),children:[p&&(0,K.jsx)(`div`,{...S(`icon`),children:p}),(0,K.jsxs)(`div`,{...S(`body`),children:[u&&(0,K.jsx)(`div`,{...S(`title`),"data-with-close-button":m||void 0,children:(0,K.jsx)(`span`,{id:w,...S(`label`),children:u})}),d&&(0,K.jsx)(`div`,{id:T,...S(`message`),"data-variant":_,children:d})]}),m&&(0,K.jsx)(JL,{...S(`closeButton`),onClick:h,variant:`transparent`,size:16,iconSize:16,"aria-label":g,unstyled:o})]})})});eR.classes=QL,eR.varsResolver=$L,eR.displayName=`@mantine/core/Alert`;var tR={root:`m_b6d8b162`};function nR(e){if(e===`start`)return`start`;if(e===`end`||e)return`end`}var rR={inherit:!1},iR=gP((e,{variant:t,lineClamp:n,gradient:r,size:i,textWrap:a})=>({root:{"--text-fz":qN(i),"--text-lh":JN(i),"--text-gradient":t===`gradient`?IP(r,e):void 0,"--text-line-clamp":typeof n==`number`?n.toString():void 0,"--text-text-wrap":a}})),aR=EI(e=>{let t=AF(`Text`,rR,e),{lineClamp:n,truncate:r,inline:i,inherit:a,gradient:o,span:s,textWrap:c,__staticSelector:l,vars:u,className:d,style:f,classNames:p,styles:m,unstyled:h,variant:g,mod:_,size:v,attributes:y,...b}=t;return(0,K.jsx)(NI,{...GF({name:[`Text`,l],props:t,classes:tR,className:d,style:f,classNames:p,styles:m,unstyled:h,attributes:y,vars:u,varsResolver:iR})(`root`,{focusable:!0}),component:s?`span`:`p`,variant:g,mod:[{"data-truncate":nR(r),"data-line-clamp":typeof n==`number`,"data-inline":i,"data-inherit":a},_],size:v,...b})});aR.classes=tR,aR.varsResolver=iR,aR.displayName=`@mantine/core/Text`;var oR={root:`m_347db0ec`,"root--dot":`m_fbd81e3d`,label:`m_5add502a`,section:`m_91fdda9b`},sR=gP((e,{radius:t,color:n,gradient:r,variant:i,size:a,autoContrast:o,circle:s})=>{let c=e.variantColorResolver({color:n||e.primaryColor,theme:e,gradient:r,variant:i||`filled`,autoContrast:o});return{root:{"--badge-height":WN(a,`badge-height`),"--badge-padding-x":WN(a,`badge-padding-x`),"--badge-fz":WN(a,`badge-fz`),"--badge-radius":s||t===void 0?void 0:KN(t),"--badge-bg":n||i?c.background:void 0,"--badge-color":n||i?c.color:void 0,"--badge-bd":n||i?c.border:void 0,"--badge-dot-color":i===`dot`?NP(n,e):void 0}}}),cR=EI(e=>{let t=AF(`Badge`,null,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,radius:c,color:l,gradient:u,leftSection:d,rightSection:f,children:p,variant:m,fullWidth:h,autoContrast:g,circle:_,mod:v,attributes:y,...b}=t,x=GF({name:`Badge`,props:t,classes:oR,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:y,vars:s,varsResolver:sR});return(0,K.jsxs)(NI,{variant:m,mod:[{block:h,circle:_,"with-right-section":!!f,"with-left-section":!!d},v],...x(`root`,{variant:m}),...b,children:[d&&(0,K.jsx)(`span`,{...x(`section`),"data-position":`left`,children:d}),(0,K.jsx)(`span`,{...x(`label`),children:p}),f&&(0,K.jsx)(`span`,{...x(`section`),"data-position":`right`,children:f})]})});cR.classes=oR,cR.varsResolver=sR,cR.displayName=`@mantine/core/Badge`;var lR={root:`m_77c9d27d`,inner:`m_80f1301b`,label:`m_811560b9`,section:`m_a74036a`,loader:`m_a25b86ee`,group:`m_80d6d844`,groupSection:`m_70be2a01`},uR={orientation:`horizontal`},dR=gP((e,{borderWidth:t})=>({group:{"--button-border-width":W(t)}})),fR=TI(e=>{let t=AF(`ButtonGroup`,uR,e),{className:n,style:r,classNames:i,styles:a,unstyled:o,orientation:s,vars:c,borderWidth:l,mod:u,attributes:d,...f}=AF(`ButtonGroup`,uR,e);return(0,K.jsx)(NI,{...GF({name:`ButtonGroup`,props:t,classes:lR,className:n,style:r,classNames:i,styles:a,unstyled:o,attributes:d,vars:c,varsResolver:dR,rootSelector:`group`})(`group`),mod:[{"data-orientation":s},u],role:`group`,...f})});fR.classes=lR,fR.varsResolver=dR,fR.displayName=`@mantine/core/ButtonGroup`;var pR=gP((e,{radius:t,color:n,gradient:r,variant:i,autoContrast:a,size:o})=>{let s=e.variantColorResolver({color:n||e.primaryColor,theme:e,gradient:r,variant:i||`filled`,autoContrast:a});return{groupSection:{"--section-height":WN(o,`section-height`),"--section-padding-x":WN(o,`section-padding-x`),"--section-fz":o?.includes(`compact`)?qN(o.replace(`compact-`,``)):qN(o),"--section-radius":t===void 0?void 0:KN(t),"--section-bg":n||i?s.background:void 0,"--section-color":s.color,"--section-bd":n||i?s.border:void 0}}}),mR=TI(e=>{let t=AF(`ButtonGroupSection`,null,e),{className:n,style:r,classNames:i,styles:a,unstyled:o,vars:s,gradient:c,radius:l,autoContrast:u,attributes:d,...f}=t;return(0,K.jsx)(NI,{...GF({name:`ButtonGroupSection`,props:t,classes:lR,className:n,style:r,classNames:i,styles:a,unstyled:o,attributes:d,vars:s,varsResolver:pR,rootSelector:`groupSection`})(`groupSection`),...f})});mR.classes=lR,mR.varsResolver=pR,mR.displayName=`@mantine/core/ButtonGroupSection`;var hR={in:{opacity:1,transform:`translate(-50%, calc(-50% + ${W(1)}))`},out:{opacity:0,transform:`translate(-50%, -200%)`},common:{transformOrigin:`center`},transitionProperty:`transform, opacity`},gR=gP((e,{radius:t,color:n,gradient:r,variant:i,size:a,justify:o,autoContrast:s})=>{let c=e.variantColorResolver({color:n||e.primaryColor,theme:e,gradient:r,variant:i||`filled`,autoContrast:s});return{root:{"--button-justify":o,"--button-height":WN(a,`button-height`),"--button-padding-x":WN(a,`button-padding-x`),"--button-fz":a?.includes(`compact`)?qN(a.replace(`compact-`,``)):qN(a),"--button-radius":t===void 0?void 0:KN(t),"--button-bg":n||i?c.background:void 0,"--button-hover":n||i?c.hover:void 0,"--button-color":c.color,"--button-bd":n||i?c.border:void 0,"--button-hover-color":n||i?c.hoverColor:void 0}}}),_R=EI(e=>{let t=AF(`Button`,null,e),{style:n,vars:r,className:i,color:a,disabled:o,children:s,leftSection:c,rightSection:l,fullWidth:u,variant:d,radius:f,loading:p,loaderProps:m,gradient:h,classNames:g,styles:_,unstyled:v,"data-disabled":y,autoContrast:b,mod:x,attributes:S,...C}=t,w=GF({name:`Button`,props:t,classes:lR,className:i,style:n,classNames:g,styles:_,unstyled:v,attributes:S,vars:r,varsResolver:gR}),T=!!c,E=!!l;return(0,K.jsxs)(DL,{...w(`root`,{active:!o&&!p&&!y}),unstyled:v,variant:d,disabled:o||p,mod:[{disabled:o||y,loading:p,block:u,"with-left-section":T,"with-right-section":E},x],...C,children:[typeof p==`boolean`&&(0,K.jsx)(IL,{mounted:p,transition:hR,duration:150,children:e=>(0,K.jsx)(NI,{component:`span`,...w(`loader`,{style:e}),"aria-hidden":!0,children:(0,K.jsx)(WL,{color:`var(--button-color)`,size:`calc(var(--button-height) / 1.8)`,...m})})}),(0,K.jsxs)(`span`,{...w(`inner`),children:[c&&(0,K.jsx)(NI,{component:`span`,...w(`section`),mod:{position:`left`},children:c}),(0,K.jsx)(NI,{component:`span`,mod:{loading:p},...w(`label`),children:s}),l&&(0,K.jsx)(NI,{component:`span`,...w(`section`),mod:{position:`right`},children:l})]})]})});_R.classes=lR,_R.varsResolver=gR,_R.displayName=`@mantine/core/Button`,_R.Group=fR,_R.GroupSection=mR;var vR={root:`m_4451eb3a`},yR=EI(e=>{let t=AF(`Center`,null,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,inline:c,mod:l,attributes:u,...d}=t,f=GF({name:`Center`,props:t,classes:vR,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:u,vars:s});return(0,K.jsx)(NI,{mod:[{inline:c},l],...f(`root`),...d})});yR.classes=vR,yR.displayName=`@mantine/core/Center`;var[bR,xR]=LN(`Pagination.Root component was not found in tree`),SR={root:`m_4addd315`,control:`m_326d024a`,dots:`m_4ad7767d`,items:`m_105fdbed`,label:`m_10817321`},CR={withPadding:!0},wR=TI(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,active:o,disabled:s,withPadding:c,mod:l,...u}=AF(`PaginationControl`,CR,e),d=xR(),f=s||d.disabled;return(0,K.jsx)(DL,{disabled:f,mod:[{active:o,disabled:f,"with-padding":c},l],...d.getStyles(`control`,{className:n,style:r,classNames:t,styles:i,active:!f}),...u})});wR.classes=SR,wR.displayName=`@mantine/core/PaginationControl`;function TR({style:e,children:t,path:n,...r}){return(0,K.jsx)(`svg`,{viewBox:`0 0 16 16`,xmlns:`http://www.w3.org/2000/svg`,style:{width:`calc(var(--pagination-control-size) / 1.8)`,height:`calc(var(--pagination-control-size) / 1.8)`,...e},...r,children:(0,K.jsx)(`path`,{d:n,fill:`currentColor`})})}var ER=e=>(0,K.jsx)(TR,{...e,path:`M8.781 8l-3.3-3.3.943-.943L10.667 8l-4.243 4.243-.943-.943 3.3-3.3z`}),DR=e=>(0,K.jsx)(TR,{...e,path:`M7.219 8l3.3 3.3-.943.943L5.333 8l4.243-4.243.943.943-3.3 3.3z`}),OR=e=>(0,K.jsx)(TR,{...e,path:`M6.85355 3.85355C7.04882 3.65829 7.04882 3.34171 6.85355 3.14645C6.65829 2.95118 6.34171 2.95118 6.14645 3.14645L2.14645 7.14645C1.95118 7.34171 1.95118 7.65829 2.14645 7.85355L6.14645 11.8536C6.34171 12.0488 6.65829 12.0488 6.85355 11.8536C7.04882 11.6583 7.04882 11.3417 6.85355 11.1464L3.20711 7.5L6.85355 3.85355ZM12.8536 3.85355C13.0488 3.65829 13.0488 3.34171 12.8536 3.14645C12.6583 2.95118 12.3417 2.95118 12.1464 3.14645L8.14645 7.14645C7.95118 7.34171 7.95118 7.65829 8.14645 7.85355L12.1464 11.8536C12.3417 12.0488 12.6583 12.0488 12.8536 11.8536C13.0488 11.6583 13.0488 11.3417 12.8536 11.1464L9.20711 7.5L12.8536 3.85355Z`}),kR=e=>(0,K.jsx)(TR,{...e,path:`M2.14645 11.1464C1.95118 11.3417 1.95118 11.6583 2.14645 11.8536C2.34171 12.0488 2.65829 12.0488 2.85355 11.8536L6.85355 7.85355C7.04882 7.65829 7.04882 7.34171 6.85355 7.14645L2.85355 3.14645C2.65829 2.95118 2.34171 2.95118 2.14645 3.14645C1.95118 3.34171 1.95118 3.65829 2.14645 3.85355L5.79289 7.5L2.14645 11.1464ZM8.14645 11.1464C7.95118 11.3417 7.95118 11.6583 8.14645 11.8536C8.34171 12.0488 8.65829 12.0488 8.85355 11.8536L12.8536 7.85355C13.0488 7.65829 13.0488 7.34171 12.8536 7.14645L8.85355 3.14645C8.65829 2.95118 8.34171 2.95118 8.14645 3.14645C7.95118 3.34171 7.95118 3.65829 8.14645 3.85355L11.7929 7.5L8.14645 11.1464Z`}),AR={icon:e=>(0,K.jsx)(TR,{...e,path:`M2 8c0-.733.6-1.333 1.333-1.333.734 0 1.334.6 1.334 1.333s-.6 1.333-1.334 1.333C2.6 9.333 2 8.733 2 8zm9.333 0c0-.733.6-1.333 1.334-1.333C13.4 6.667 14 7.267 14 8s-.6 1.333-1.333 1.333c-.734 0-1.334-.6-1.334-1.333zM6.667 8c0-.733.6-1.333 1.333-1.333s1.333.6 1.333 1.333S8.733 9.333 8 9.333 6.667 8.733 6.667 8z`})},jR=TI(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,icon:o,...s}=AF(`PaginationDots`,AR,e);return(0,K.jsx)(NI,{...xR().getStyles(`dots`,{className:n,style:r,styles:i,classNames:t}),...s,children:(0,K.jsx)(o,{style:{width:`calc(var(--pagination-control-size) / 1.8)`,height:`calc(var(--pagination-control-size) / 1.8)`}})})});jR.classes=SR,jR.displayName=`@mantine/core/PaginationDots`;function MR({icon:e,name:t,action:n,type:r}){let i={icon:e},a=e=>{let{icon:a,...o}=AF(t,i,e),s=xR(),c=r===`next`?s.active===s.total:s.active===1;return(0,K.jsx)(wR,{disabled:s.disabled||c,onClick:s[n],withPadding:!1,...o,children:(0,K.jsx)(a,{className:`mantine-rotate-rtl`,style:{width:`calc(var(--pagination-control-size) / 1.8)`,height:`calc(var(--pagination-control-size) / 1.8)`}})})};return a.displayName=`@mantine/core/${t}`,CI(a)}var NR=MR({icon:ER,name:`PaginationNext`,action:`onNext`,type:`next`}),PR=MR({icon:DR,name:`PaginationPrevious`,action:`onPrevious`,type:`previous`}),FR=MR({icon:OR,name:`PaginationFirst`,action:`onFirst`,type:`previous`}),IR=MR({icon:kR,name:`PaginationLast`,action:`onLast`,type:`next`});function LR({dotsIcon:e}){let t=xR();return(0,K.jsx)(K.Fragment,{children:t.range.map((n,r)=>n===`dots`?(0,K.jsx)(jR,{icon:e},r):(0,K.jsx)(wR,{active:n===t.active,"aria-current":n===t.active?`page`:void 0,onClick:()=>t.onChange(n),disabled:t.disabled,...t.getItemProps?.(n),children:t.getItemProps?.(n)?.children??n},r))})}LR.displayName=`@mantine/core/PaginationItems`;var RR={formatLabel:({page:e,totalPages:t})=>`Page ${e} of ${t}`},zR=TI(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,formatLabel:o,...s}=AF(`PaginationLabel`,RR,e),c=xR();return(0,K.jsx)(NI,{...c.getStyles(`label`,{className:n,style:r,styles:i,classNames:t}),...s,children:o({page:c.active,totalPages:c.total})})});zR.classes=SR,zR.displayName=`@mantine/core/PaginationLabel`;var BR={siblings:1,boundaries:1},VR=gP((e,{size:t,radius:n,color:r,autoContrast:i})=>({root:{"--pagination-control-radius":n===void 0?void 0:KN(n),"--pagination-control-size":WN(t,`pagination-control-size`),"--pagination-control-fz":qN(t),"--pagination-active-bg":r?NP(r,e):void 0,"--pagination-active-color":UP(i,e)?BP({color:r,theme:e,autoContrast:i}):void 0}})),HR=TI(e=>{let t=AF(`PaginationRoot`,BR,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,total:c,value:l,defaultValue:u,onChange:d,disabled:f,siblings:p,boundaries:m,color:h,radius:g,onNextPage:_,onPreviousPage:v,onFirstPage:y,onLastPage:b,getItemProps:x,autoContrast:S,startValue:C,layout:w,mod:T,attributes:E,...D}=t,O=GF({name:`Pagination`,classes:SR,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:E,vars:s,varsResolver:VR}),{range:k,setPage:ee,next:te,previous:ne,active:A,first:j,last:re}=fP({page:l,initialPage:u,onChange:d,total:c,siblings:p,boundaries:m,startValue:C});return(0,K.jsx)(bR,{value:{total:c,range:k,active:A,disabled:f,layout:w,getItemProps:x,onChange:ee,onNext:XN(_,te),onPrevious:XN(v,ne),onFirst:XN(y,j),onLast:XN(b,re),getStyles:O},children:(0,K.jsx)(NI,{...O(`root`),mod:[{layout:w},T],...D})})});HR.classes=SR,HR.varsResolver=VR,HR.displayName=`@mantine/core/PaginationRoot`;var UR={withControls:!0,withPages:!0,siblings:1,boundaries:1,gap:8};function WR({children:e}){return(0,K.jsx)(NI,{...xR().getStyles(`items`),children:e})}var GR=TI(e=>{let{withEdges:t,withControls:n,getControlProps:r,nextIcon:i,previousIcon:a,lastIcon:o,firstIcon:s,dotsIcon:c,total:l,gap:u,hideWithOnePage:d,withPages:f,layout:p,formatLabel:m,...h}=AF(`Pagination`,UR,e);if(l<=0||d&&l===1)return null;let g=f?p===`responsive`?(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(WR,{children:(0,K.jsx)(LR,{dotsIcon:c})}),(0,K.jsx)(zR,{formatLabel:m})]}):(0,K.jsx)(LR,{dotsIcon:c}):null;return(0,K.jsx)(HR,{total:l,layout:p,...h,children:(0,K.jsxs)(ZL,{gap:u,children:[t&&(0,K.jsx)(FR,{icon:s,...r?.(`first`)}),n&&(0,K.jsx)(PR,{icon:a,...r?.(`previous`)}),g,n&&(0,K.jsx)(NR,{icon:i,...r?.(`next`)}),t&&(0,K.jsx)(IR,{icon:o,...r?.(`last`)})]})})});GR.classes=SR,GR.displayName=`@mantine/core/Pagination`,GR.Root=HR,GR.Control=wR,GR.Dots=jR,GR.First=FR,GR.Last=IR,GR.Next=NR,GR.Previous=PR,GR.Items=LR,GR.Label=zR;var KR={root:`m_6d731127`},qR={gap:`md`,align:`stretch`,justify:`flex-start`},JR=gP((e,{gap:t,align:n,justify:r})=>({root:{"--stack-gap":GN(t),"--stack-align":n,"--stack-justify":r}})),YR=TI(e=>{let t=AF(`Stack`,qR,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,align:c,justify:l,gap:u,variant:d,attributes:f,...p}=t;return(0,K.jsx)(NI,{...GF({name:`Stack`,props:t,classes:KR,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:f,vars:s,varsResolver:JR})(`root`),variant:d,...p})});YR.classes=KR,YR.varsResolver=JR,YR.displayName=`@mantine/core/Stack`;var[XR,ZR]=LN(`Table component was not found in the tree`),QR={table:`m_b23fa0ef`,th:`m_4e7aa4f3`,tr:`m_4e7aa4fd`,td:`m_4e7aa4ef`,tbody:`m_b2404537`,thead:`m_b242d975`,caption:`m_9e5a3ac7`,scrollContainer:`m_a100c15`,scrollContainerInner:`m_62259741`};function $R(e,t){if(!t)return;let n={};return t.columnBorder&&e.withColumnBorders&&(n[`data-with-column-border`]=!0),t.rowBorder&&e.withRowBorders&&(n[`data-with-row-border`]=!0),t.striped&&e.striped&&(n[`data-striped`]=e.striped),t.highlightOnHover&&e.highlightOnHover&&(n[`data-hover`]=!0),t.captionSide&&e.captionSide&&(n[`data-side`]=e.captionSide),t.stickyHeader&&e.stickyHeader&&(n[`data-sticky`]=!0),n}function ez(e,t){let n=`Table${e.charAt(0).toUpperCase()}${e.slice(1)}`,r=TI(r=>{let i=AF(n,{},r),{classNames:a,className:o,style:s,styles:c,...l}=i,u=ZR();return(0,K.jsx)(NI,{component:e,...$R(u,t),...u.getStyles(e,{className:o,classNames:a,style:s,styles:c,props:i}),...l})});return r.displayName=`@mantine/core/${n}`,r.classes=QR,r}var tz=ez(`th`,{columnBorder:!0}),nz=ez(`td`,{columnBorder:!0}),rz=ez(`tr`,{rowBorder:!0,striped:!0,highlightOnHover:!0}),iz=ez(`thead`,{stickyHeader:!0}),az=ez(`tbody`),oz=ez(`tfoot`),sz=ez(`caption`,{captionSide:!0}),cz={type:`scrollarea`},lz=gP((e,{minWidth:t,maxHeight:n,type:r})=>({scrollContainer:{"--table-min-width":W(t),"--table-max-height":W(n),"--table-overflow":r===`native`?`auto`:void 0}})),uz=TI(e=>{let t=AF(`TableScrollContainer`,cz,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,children:c,minWidth:l,maxHeight:u,type:d,scrollAreaProps:f,attributes:p,...m}=t,h=GF({name:`TableScrollContainer`,classes:QR,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:p,vars:s,varsResolver:lz,rootSelector:`scrollContainer`});return(0,K.jsx)(NI,{component:d===`scrollarea`?CL:`div`,...d===`scrollarea`?u?{offsetScrollbars:`xy`,...f}:{offsetScrollbars:`x`,...f}:{},...h(`scrollContainer`),...m,children:(0,K.jsx)(`div`,{...h(`scrollContainerInner`),children:c})})});uz.classes=QR,uz.varsResolver=lz,uz.displayName=`@mantine/core/TableScrollContainer`;function dz({data:e}){return(0,K.jsxs)(K.Fragment,{children:[e.caption&&(0,K.jsx)(sz,{children:e.caption}),e.head&&(0,K.jsx)(iz,{children:(0,K.jsx)(rz,{children:e.head.map((e,t)=>(0,K.jsx)(tz,{children:e},t))})}),e.body&&(0,K.jsx)(az,{children:e.body.map((e,t)=>(0,K.jsx)(rz,{children:e.map((e,t)=>(0,K.jsx)(nz,{children:e},t))},t))}),e.foot&&(0,K.jsx)(oz,{children:(0,K.jsx)(rz,{children:e.foot.map((e,t)=>(0,K.jsx)(tz,{children:e},t))})})]})}dz.displayName=`@mantine/core/TableDataRenderer`;var fz={withRowBorders:!0,verticalSpacing:7},pz=gP((e,{layout:t,captionSide:n,horizontalSpacing:r,verticalSpacing:i,borderColor:a,stripedColor:o,highlightOnHoverColor:s,striped:c,highlightOnHover:l,stickyHeaderOffset:u,stickyHeader:d})=>({table:{"--table-layout":t,"--table-caption-side":n,"--table-horizontal-spacing":GN(r),"--table-vertical-spacing":GN(i),"--table-border-color":a?NP(a,e):void 0,"--table-striped-color":c&&o?NP(o,e):void 0,"--table-highlight-on-hover-color":l&&s?NP(s,e):void 0,"--table-sticky-header-offset":d?W(u):void 0}})),mz=TI(e=>{let t=AF(`Table`,fz,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,horizontalSpacing:c,verticalSpacing:l,captionSide:u,stripedColor:d,highlightOnHoverColor:f,striped:p,highlightOnHover:m,withColumnBorders:h,withRowBorders:g,withTableBorder:_,borderColor:v,layout:y,data:b,children:x,stickyHeader:S,stickyHeaderOffset:C,mod:w,tabularNums:T,attributes:E,...D}=t,O=GF({name:`Table`,props:t,className:r,style:i,classes:QR,classNames:n,styles:a,unstyled:o,attributes:E,rootSelector:`table`,vars:s,varsResolver:pz});return(0,K.jsx)(XR,{value:{getStyles:O,stickyHeader:S,striped:p===!0?`odd`:p||void 0,highlightOnHover:m,withColumnBorders:h,withRowBorders:g,captionSide:u||`bottom`},children:(0,K.jsx)(NI,{component:`table`,mod:[{"data-with-table-border":_,"data-tabular-nums":T},w],...O(`table`),...D,children:x||!!b&&(0,K.jsx)(dz,{data:b})})})});mz.classes=QR,mz.varsResolver=pz,mz.displayName=`@mantine/core/Table`,mz.Td=nz,mz.Th=tz,mz.Tr=rz,mz.Thead=iz,mz.Tbody=az,mz.Tfoot=oz,mz.Caption=sz,mz.ScrollContainer=uz,mz.DataRenderer=dz;var[hz,gz]=LN(`Tabs component was not found in the tree`),_z={root:`m_89d60db1`,"list--default":`m_576c9d4`,list:`m_89d33d6d`,tab:`m_4ec4dce6`,panel:`m_b0c91715`,tabSection:`m_fc420b1f`,tabLabel:`m_42bbd1ae`,"tab--default":`m_539e827b`,"list--outline":`m_6772fbd5`,"tab--outline":`m_b59ab47c`,"tab--pills":`m_c3381914`},vz=TI(e=>{let t=AF(`TabsList`,null,e),{children:n,className:r,grow:i,justify:a,classNames:o,styles:s,style:c,mod:l,...u}=t,d=gz();return(0,K.jsx)(NI,{...d.getStyles(`list`,{className:r,style:c,classNames:o,styles:s,props:t,variant:d.variant}),role:`tablist`,variant:d.variant,mod:[{grow:i,orientation:d.orientation,placement:d.orientation===`vertical`&&d.placement,inverted:d.inverted},l],"aria-orientation":d.orientation,__vars:{"--tabs-justify":a},...u,children:n})});vz.classes=_z,vz.displayName=`@mantine/core/TabsList`;var yz=TI(e=>{let t=AF(`TabsPanel`,null,e),{children:n,className:r,value:i,classNames:a,styles:o,style:s,mod:c,keepMounted:l,...u}=t,d=$P(),f=gz();(0,G.useEffect)(()=>(f.setMountedPanel(i,!0),()=>{f.setMountedPanel(i,!1)}),[i]);let p=f.value===i,m=f.keepMounted||l,h=f.keepMountedMode!==`display-none`,g=m&&h&&d!==`test`?(0,K.jsx)(G.Activity,{mode:p?`visible`:`hidden`,children:n}):m||p?n:null;return(0,K.jsx)(NI,{...f.getStyles(`panel`,{className:r,classNames:a,styles:o,style:[s,p?void 0:{display:`none`}],props:t}),mod:[{orientation:f.orientation},c],role:`tabpanel`,id:f.getPanelId(i),"aria-labelledby":f.getTabId(i),...u,children:g})});yz.classes=_z,yz.displayName=`@mantine/core/TabsPanel`;var bz=TI(e=>{let t=AF(`TabsTab`,null,e),{className:n,children:r,rightSection:i,leftSection:a,value:o,onClick:s,onKeyDown:c,disabled:l,color:u,style:d,classNames:f,styles:p,vars:m,mod:h,tabIndex:g,..._}=t,v=hF(),{dir:y}=FI(),b=gz(),x=o===b.value,S=e=>{b.onChange(b.allowTabDeactivation&&o===b.value?null:o),s?.(e)},C={classNames:f,styles:p,props:t};return(0,K.jsxs)(DL,{...b.getStyles(`tab`,{className:n,style:d,variant:b.variant,...C}),disabled:l,unstyled:b.unstyled,variant:b.variant,mod:[{active:x,disabled:l,orientation:b.orientation,inverted:b.inverted,placement:b.orientation===`vertical`&&b.placement},h],role:`tab`,id:b.getTabId(o),"aria-selected":x,tabIndex:g===void 0?x||b.value===null?0:-1:g,"aria-controls":b.mountedPanels.current.has(o)?b.getPanelId(o):void 0,onClick:S,__vars:{"--tabs-color":u?NP(u,v):void 0},onKeyDown:UN({siblingSelector:`[role="tab"]`,parentSelector:`[role="tablist"]`,activateOnFocus:b.activateTabWithKeyboard,loop:b.loop,orientation:b.orientation||`horizontal`,dir:y,onKeyDown:c}),..._,children:[a&&(0,K.jsx)(`span`,{...b.getStyles(`tabSection`,C),"data-position":`left`,children:a}),r&&(0,K.jsx)(`span`,{...b.getStyles(`tabLabel`,C),children:r}),i&&(0,K.jsx)(`span`,{...b.getStyles(`tabSection`,C),"data-position":`right`,children:i})]})});bz.classes=_z,bz.displayName=`@mantine/core/TabsTab`;var xz=`Tabs.Tab or Tabs.Panel component was rendered with invalid value or without value`,Sz={keepMounted:!0,keepMountedMode:`activity`,orientation:`horizontal`,loop:!0,activateTabWithKeyboard:!0,variant:`default`,placement:`left`},Cz=gP((e,{radius:t,color:n,autoContrast:r})=>({root:{"--tabs-radius":KN(t),"--tabs-color":NP(n,e),"--tabs-text-color":UP(r,e)?BP({color:n,theme:e,autoContrast:r}):void 0}})),wz=TI(e=>{let t=AF(`Tabs`,Sz,e),{defaultValue:n,value:r,onChange:i,orientation:a,children:o,loop:s,id:c,activateTabWithKeyboard:l,allowTabDeactivation:u,variant:d,color:f,radius:p,inverted:m,placement:h,keepMounted:g,keepMountedMode:_,classNames:v,styles:y,unstyled:b,className:x,style:S,vars:C,autoContrast:w,mod:T,attributes:E,...D}=t,O=aP(c),k=(0,G.useRef)(new Set),ee=iP(),te=(0,G.useCallback)((e,t)=>{let n=k.current;t&&!n.has(e)?(n.add(e),ee()):!t&&n.has(e)&&(n.delete(e),ee())},[]),[ne,A]=lP({value:r,defaultValue:n,finalValue:null,onChange:i}),j=GF({name:`Tabs`,props:t,classes:_z,className:x,style:S,classNames:v,styles:y,unstyled:b,attributes:E,vars:C,varsResolver:Cz});return(0,K.jsx)(hz,{value:{placement:h,value:ne,orientation:a,id:O,loop:s,activateTabWithKeyboard:l,getTabId:RN(`${O}-tab`,xz),getPanelId:RN(`${O}-panel`,xz),onChange:A,allowTabDeactivation:u,variant:d,color:f,radius:p,inverted:m,keepMounted:g,keepMountedMode:_,unstyled:b,getStyles:j,mountedPanels:k,setMountedPanel:te},children:(0,K.jsx)(NI,{id:O,variant:d,mod:[{orientation:a,inverted:a===`horizontal`&&m,placement:a===`vertical`&&h},T],...j(`root`),...D,children:o})})});wz.classes=_z,wz.varsResolver=Cz,wz.displayName=`@mantine/core/Tabs`,wz.Tab=bz,wz.Panel=yz,wz.List=vz;var Tz={root:`m_7341320d`},Ez=gP((e,{size:t,radius:n,variant:r,gradient:i,color:a,autoContrast:o})=>{let s=e.variantColorResolver({color:a||e.primaryColor,theme:e,gradient:i,variant:r||`filled`,autoContrast:o});return{root:{"--ti-size":WN(t,`ti-size`),"--ti-radius":n===void 0?void 0:KN(n),"--ti-bg":a||r?s.background:void 0,"--ti-color":a||r?s.color:void 0,"--ti-bd":a||r?s.border:void 0}}}),Dz=TI(e=>{let t=AF(`ThemeIcon`,null,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,autoContrast:c,attributes:l,...u}=t;return(0,K.jsx)(NI,{...GF({name:`ThemeIcon`,classes:Tz,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:l,vars:s,varsResolver:Ez})(`root`),...u})});Dz.classes=Tz,Dz.varsResolver=Ez,Dz.displayName=`@mantine/core/ThemeIcon`;var Oz=[`h1`,`h2`,`h3`,`h4`,`h5`,`h6`],kz=[`xs`,`sm`,`md`,`lg`,`xl`];function Az(e,t){let n=t===void 0?`h${e}`:t;return Oz.includes(n)?{fontSize:`var(--mantine-${n}-font-size)`,fontWeight:`var(--mantine-${n}-font-weight)`,lineHeight:`var(--mantine-${n}-line-height)`}:kz.includes(n)?{fontSize:`var(--mantine-font-size-${n})`,fontWeight:`var(--mantine-h${e}-font-weight)`,lineHeight:`var(--mantine-h${e}-line-height)`}:{fontSize:W(n),fontWeight:`var(--mantine-h${e}-font-weight)`,lineHeight:`var(--mantine-h${e}-line-height)`}}var jz={root:`m_8a5d1357`},Mz={order:1},Nz=gP((e,{order:t,size:n,lineClamp:r,textWrap:i})=>{let a=Az(t||1,n);return{root:{"--title-fw":a.fontWeight,"--title-lh":a.lineHeight,"--title-fz":a.fontSize,"--title-line-clamp":typeof r==`number`?r.toString():void 0,"--title-text-wrap":i}}}),Pz=TI(e=>{let t=AF(`Title`,Mz,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,order:s,vars:c,size:l,variant:u,lineClamp:d,textWrap:f,mod:p,attributes:m,...h}=t,g=GF({name:`Title`,props:t,classes:jz,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:m,vars:c,varsResolver:Nz});return[1,2,3,4,5,6].includes(s)?(0,K.jsx)(NI,{...g(`root`),component:`h${s}`,variant:u,mod:[{order:s,"data-line-clamp":typeof d==`number`},p],size:l,...h}):null});Pz.classes=jz,Pz.varsResolver=Nz,Pz.displayName=`@mantine/core/Title`;var Fz=new Map([[`bold`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M244,56v48a12,12,0,0,1-12,12H184a12,12,0,1,1,0-24H201.1l-19-17.38c-.13-.12-.26-.24-.38-.37A76,76,0,1,0,127,204h1a75.53,75.53,0,0,0,52.15-20.72,12,12,0,0,1,16.49,17.45A99.45,99.45,0,0,1,128,228h-1.37A100,100,0,1,1,198.51,57.06L220,76.72V56a12,12,0,0,1,24,0Z`}))],[`duotone`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M216,128a88,88,0,1,1-88-88A88,88,0,0,1,216,128Z`,opacity:`0.2`}),G.createElement(`path`,{d:`M240,56v48a8,8,0,0,1-8,8H184a8,8,0,0,1,0-16H211.4L184.81,71.64l-.25-.24a80,80,0,1,0-1.67,114.78,8,8,0,0,1,11,11.63A95.44,95.44,0,0,1,128,224h-1.32A96,96,0,1,1,195.75,60L224,85.8V56a8,8,0,1,1,16,0Z`}))],[`fill`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M240,56v48a8,8,0,0,1-8,8H184a8,8,0,0,1-5.66-13.66l17-17-10.55-9.65-.25-.24a80,80,0,1,0-1.67,114.78,8,8,0,1,1,11,11.63A95.44,95.44,0,0,1,128,224h-1.32A96,96,0,1,1,195.75,60l10.93,10L226.34,50.3A8,8,0,0,1,240,56Z`}))],[`light`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M238,56v48a6,6,0,0,1-6,6H184a6,6,0,0,1,0-12h32.55l-30.38-27.8c-.06-.06-.12-.13-.19-.19a82,82,0,1,0-1.7,117.65,6,6,0,0,1,8.24,8.73A93.46,93.46,0,0,1,128,222h-1.28A94,94,0,1,1,194.37,61.4L226,90.35V56a6,6,0,1,1,12,0Z`}))],[`regular`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M240,56v48a8,8,0,0,1-8,8H184a8,8,0,0,1,0-16H211.4L184.81,71.64l-.25-.24a80,80,0,1,0-1.67,114.78,8,8,0,0,1,11,11.63A95.44,95.44,0,0,1,128,224h-1.32A96,96,0,1,1,195.75,60L224,85.8V56a8,8,0,1,1,16,0Z`}))],[`thin`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M236,56v48a4,4,0,0,1-4,4H184a4,4,0,0,1,0-8h37.7L187.53,68.69l-.13-.12a84,84,0,1,0-1.75,120.51,4,4,0,0,1,5.5,5.82A91.43,91.43,0,0,1,128,220h-1.26A92,92,0,1,1,193,62.84l35,32.05V56a4,4,0,1,1,8,0Z`}))]]),Iz=new Map([[`bold`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M248.49,71.51l-32-32a12,12,0,0,0-17,17L211,68h-3c-52,0-64.8,30.71-75.08,55.38-8.82,21.17-15.45,37.05-42.75,40.09a44,44,0,1,0,.28,24.08c43.34-3.87,55.07-32,64.63-54.93C164.9,109,172,92,208,92h3l-11.52,11.51a12,12,0,0,0,17,17l32-32A12,12,0,0,0,248.49,71.51ZM48,196a20,20,0,1,1,20-20A20,20,0,0,1,48,196Z`}))],[`duotone`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M80,176a32,32,0,1,1-32-32A32,32,0,0,1,80,176Z`,opacity:`0.2`}),G.createElement(`path`,{d:`M245.66,74.34l-32-32a8,8,0,0,0-11.32,11.32L220.69,72H208c-49.33,0-61.05,28.12-71.38,52.92-9.38,22.51-16.92,40.59-49.48,42.84a40,40,0,1,0,.1,16c43.26-2.65,54.34-29.15,64.14-52.69C161.41,107,169.33,88,208,88h12.69l-18.35,18.34a8,8,0,0,0,11.32,11.32l32-32A8,8,0,0,0,245.66,74.34ZM48,200a24,24,0,1,1,24-24A24,24,0,0,1,48,200Z`}))],[`fill`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M245.66,85.66l-32,32a8,8,0,0,1-11.32-11.32L220.69,88H208c-38.67,0-46.59,19-56.62,43.08C141.05,155.88,129.33,184,80,184H79a32,32,0,1,1,0-16h1c38.67,0,46.59-19,56.62-43.08C147,100.12,158.67,72,208,72h12.69L202.34,53.66a8,8,0,0,1,11.32-11.32l32,32A8,8,0,0,1,245.66,85.66Z`}))],[`light`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M244.24,75.76l-32-32a6,6,0,0,0-8.48,8.48L225.51,74H208c-48,0-59.44,27.46-69.54,51.69-9.43,22.64-17.66,42.33-53,44.16a38,38,0,1,0,.06,12c43.34-2.06,54.29-28.29,64-51.55C159.44,106.53,168,86,208,86h17.51l-21.75,21.76a6,6,0,1,0,8.48,8.48l32-32A6,6,0,0,0,244.24,75.76ZM48,202a26,26,0,1,1,26-26A26,26,0,0,1,48,202Z`}))],[`regular`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M245.66,74.34l-32-32a8,8,0,0,0-11.32,11.32L220.69,72H208c-49.33,0-61.05,28.12-71.38,52.92-9.38,22.51-16.92,40.59-49.48,42.84a40,40,0,1,0,.1,16c43.26-2.65,54.34-29.15,64.14-52.69C161.41,107,169.33,88,208,88h12.69l-18.35,18.34a8,8,0,0,0,11.32,11.32l32-32A8,8,0,0,0,245.66,74.34ZM48,200a24,24,0,1,1,24-24A24,24,0,0,1,48,200Z`}))],[`thin`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M242.83,77.17l-32-32a4,4,0,0,0-5.66,5.66L230.34,76H208c-46.67,0-57.84,26.81-67.69,50.46-9.46,22.69-18.4,44.16-56.55,45.48a36,36,0,1,0,0,8c43.49-1.42,54.33-27.39,63.91-50.39C157.45,106.12,166.67,84,208,84h22.34l-25.17,25.17a4,4,0,0,0,5.66,5.66l32-32A4,4,0,0,0,242.83,77.17ZM48,204a28,28,0,1,1,28-28A28,28,0,0,1,48,204Z`}))]]),Lz=new Map([[`bold`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M232.49,215.51,185,168a92.12,92.12,0,1,0-17,17l47.53,47.54a12,12,0,0,0,17-17ZM44,112a68,68,0,1,1,68,68A68.07,68.07,0,0,1,44,112Z`}))],[`duotone`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M192,112a80,80,0,1,1-80-80A80,80,0,0,1,192,112Z`,opacity:`0.2`}),G.createElement(`path`,{d:`M229.66,218.34,179.6,168.28a88.21,88.21,0,1,0-11.32,11.31l50.06,50.07a8,8,0,0,0,11.32-11.32ZM40,112a72,72,0,1,1,72,72A72.08,72.08,0,0,1,40,112Z`}))],[`fill`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M168,112a56,56,0,1,1-56-56A56,56,0,0,1,168,112Zm61.66,117.66a8,8,0,0,1-11.32,0l-50.06-50.07a88,88,0,1,1,11.32-11.31l50.06,50.06A8,8,0,0,1,229.66,229.66ZM112,184a72,72,0,1,0-72-72A72.08,72.08,0,0,0,112,184Z`}))],[`light`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M228.24,219.76l-51.38-51.38a86.15,86.15,0,1,0-8.48,8.48l51.38,51.38a6,6,0,0,0,8.48-8.48ZM38,112a74,74,0,1,1,74,74A74.09,74.09,0,0,1,38,112Z`}))],[`regular`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M229.66,218.34l-50.07-50.06a88.11,88.11,0,1,0-11.31,11.31l50.06,50.07a8,8,0,0,0,11.32-11.32ZM40,112a72,72,0,1,1,72,72A72.08,72.08,0,0,1,40,112Z`}))],[`thin`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M226.83,221.17l-52.7-52.7a84.1,84.1,0,1,0-5.66,5.66l52.7,52.7a4,4,0,0,0,5.66-5.66ZM36,112a76,76,0,1,1,76,76A76.08,76.08,0,0,1,36,112Z`}))]]),Rz=new Map([[`bold`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M176,156a43.78,43.78,0,0,0-29.09,11L106.1,140.8a44.07,44.07,0,0,0,0-25.6L146.91,89a43.83,43.83,0,1,0-13-20.17L93.09,95a44,44,0,1,0,0,65.94L133.9,187.2A44,44,0,1,0,176,156Zm0-120a20,20,0,1,1-20,20A20,20,0,0,1,176,36ZM64,148a20,20,0,1,1,20-20A20,20,0,0,1,64,148Zm112,72a20,20,0,1,1,20-20A20,20,0,0,1,176,220Z`}))],[`duotone`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M208,200a32,32,0,1,1-32-32A32,32,0,0,1,208,200ZM176,88a32,32,0,1,0-32-32A32,32,0,0,0,176,88Z`,opacity:`0.2`}),G.createElement(`path`,{d:`M176,160a39.89,39.89,0,0,0-28.62,12.09l-46.1-29.63a39.8,39.8,0,0,0,0-28.92l46.1-29.63a40,40,0,1,0-8.66-13.45l-46.1,29.63a40,40,0,1,0,0,55.82l46.1,29.63A40,40,0,1,0,176,160Zm0-128a24,24,0,1,1-24,24A24,24,0,0,1,176,32ZM64,152a24,24,0,1,1,24-24A24,24,0,0,1,64,152Zm112,72a24,24,0,1,1,24-24A24,24,0,0,1,176,224Z`}))],[`fill`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M212,200a36,36,0,1,1-69.85-12.25l-53-34.05a36,36,0,1,1,0-51.4l53-34a36.09,36.09,0,1,1,8.67,13.45l-53,34.05a36,36,0,0,1,0,24.5l53,34.05A36,36,0,0,1,212,200Z`}))],[`light`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M176,162a37.91,37.91,0,0,0-28.3,12.67L98.8,143.24a37.89,37.89,0,0,0,0-30.48l48.9-31.43a38,38,0,1,0-6.5-10.09L92.3,102.67a38,38,0,1,0,0,50.66l48.9,31.43A38,38,0,1,0,176,162Zm0-132a26,26,0,1,1-26,26A26,26,0,0,1,176,30ZM64,154a26,26,0,1,1,26-26A26,26,0,0,1,64,154Zm112,72a26,26,0,1,1,26-26A26,26,0,0,1,176,226Z`}))],[`regular`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M176,160a39.89,39.89,0,0,0-28.62,12.09l-46.1-29.63a39.8,39.8,0,0,0,0-28.92l46.1-29.63a40,40,0,1,0-8.66-13.45l-46.1,29.63a40,40,0,1,0,0,55.82l46.1,29.63A40,40,0,1,0,176,160Zm0-128a24,24,0,1,1-24,24A24,24,0,0,1,176,32ZM64,152a24,24,0,1,1,24-24A24,24,0,0,1,64,152Zm112,72a24,24,0,1,1,24-24A24,24,0,0,1,176,224Z`}))],[`thin`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M176,164a36,36,0,0,0-27.92,13.3L96.25,144a35.92,35.92,0,0,0,0-32L148.08,78.7A35.93,35.93,0,1,0,143.75,72L91.92,105.3a36,36,0,1,0,0,45.4L143.75,184A36,36,0,1,0,176,164Zm0-136a28,28,0,1,1-28,28A28,28,0,0,1,176,28ZM64,156a28,28,0,1,1,28-28A28,28,0,0,1,64,156Zm112,72a28,28,0,1,1,28-28A28,28,0,0,1,176,228Z`}))]]),zz=(0,G.createContext)({color:`currentColor`,size:`1em`,weight:`regular`,mirrored:!1}),Bz=G.forwardRef((e,t)=>{let{alt:n,color:r,size:i,weight:a,mirrored:o,children:s,weights:c,...l}=e,{color:u=`currentColor`,size:d,weight:f=`regular`,mirrored:p=!1,...m}=G.useContext(zz);return G.createElement(`svg`,{ref:t,xmlns:`http://www.w3.org/2000/svg`,width:i??d,height:i??d,fill:r??u,viewBox:`0 0 256 256`,transform:o||p?`scale(-1, 1)`:void 0,...m,...l},!!n&&G.createElement(`title`,null,n),s,c.get(a??f))});Bz.displayName=`IconBase`;var Vz=G.forwardRef((e,t)=>G.createElement(Bz,{ref:t,...e,weights:Fz}));Vz.displayName=`ArrowClockwiseIcon`;var Hz=Vz,Uz=G.forwardRef((e,t)=>G.createElement(Bz,{ref:t,...e,weights:Iz}));Uz.displayName=`FlowArrowIcon`;var Wz=Uz,Gz=G.forwardRef((e,t)=>G.createElement(Bz,{ref:t,...e,weights:Lz}));Gz.displayName=`MagnifyingGlassIcon`;var Kz=Gz,qz=G.forwardRef((e,t)=>G.createElement(Bz,{ref:t,...e,weights:Rz}));qz.displayName=`ShareNetworkIcon`;var Jz=qz,Yz=s((e=>{function t(e,t){var n=e.length;e.push(t);a:for(;0>>1,a=e[r];if(0>>1;ri(c,n))li(u,c)?(e[r]=u,e[l]=n,r=l):(e[r]=c,e[s]=n,r=s);else if(li(u,n))e[r]=u,e[l]=n,r=l;else break a}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return n===0?e.id-t.id:n}if(e.unstable_now=void 0,typeof performance==`object`&&typeof performance.now==`function`){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var c=[],l=[],u=1,d=null,f=3,p=!1,m=!1,h=!1,g=!1,_=typeof setTimeout==`function`?setTimeout:null,v=typeof clearTimeout==`function`?clearTimeout:null,y=typeof setImmediate<`u`?setImmediate:null;function b(e){for(var i=n(l);i!==null;){if(i.callback===null)r(l);else if(i.startTime<=e)r(l),i.sortIndex=i.expirationTime,t(c,i);else break;i=n(l)}}function x(e){if(h=!1,b(e),!m)if(n(c)!==null)m=!0,S||(S=!0,O());else{var t=n(l);t!==null&&te(x,t.startTime-e)}}var S=!1,C=-1,w=5,T=-1;function E(){return g?!0:!(e.unstable_now()-Tt&&E());){var o=d.callback;if(typeof o==`function`){d.callback=null,f=d.priorityLevel;var s=o(d.expirationTime<=t);if(t=e.unstable_now(),typeof s==`function`){d.callback=s,b(t),i=!0;break b}d===n(c)&&r(c),b(t)}else r(c);d=n(c)}if(d!==null)i=!0;else{var u=n(l);u!==null&&te(x,u.startTime-t),i=!1}}break a}finally{d=null,f=a,p=!1}}}finally{i?O():S=!1}}}var O;if(typeof y==`function`)O=function(){y(D)};else if(typeof MessageChannel<`u`){var k=new MessageChannel,ee=k.port2;k.port1.onmessage=D,O=function(){ee.postMessage(null)}}else O=function(){_(D,0)};function te(t,n){C=_(function(){t(e.unstable_now())},n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_forceFrameRate=function(e){0>e||125o?(r.sortIndex=a,t(l,r),n(c)===null&&r===n(l)&&(h?(v(C),C=-1):h=!0,te(x,a-o))):(r.sortIndex=s,t(c,r),m||p||(m=!0,S||(S=!0,O()))),r},e.unstable_shouldYield=E,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}})),Xz=s(((e,t)=>{t.exports=Yz()})),Zz=s((e=>{var t=Xz(),n=IN(),r=hP();function i(e){var t=`https://react.dev/errors/`+e;if(1N||(e.current=M[N],M[N]=null,N--)}function F(e,t){N++,M[N]=e.current,e.current=t}var ae=P(null),oe=P(null),se=P(null),ce=P(null);function I(e,t){switch(F(se,t),F(oe,e),F(ae,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Xd(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Xd(t),e=Zd(t,e);else switch(e){case`svg`:e=1;break;case`math`:e=2;break;default:e=0}}ie(ae),F(ae,e)}function L(){ie(ae),ie(oe),ie(se)}function le(e){e.memoizedState!==null&&F(ce,e);var t=ae.current,n=Zd(t,e.type);t!==n&&(F(oe,e),F(ae,n))}function ue(e){oe.current===e&&(ie(ae),ie(oe)),ce.current===e&&(ie(ce),sp._currentValue=re)}var de,fe;function pe(e){if(de===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);de=t&&t[1]||``,fe=-1)`:-1`)&&(u=u.replace(``,e.displayName)),u}while(1<=r&&0<=i);break}}}finally{me=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:``)?pe(n):``}function R(e,t){switch(e.tag){case 26:case 27:case 5:return pe(e.type);case 16:return pe(`Lazy`);case 13:return e.child!==t&&t!==null?pe(`Suspense Fallback`):pe(`Suspense`);case 19:return pe(`SuspenseList`);case 0:case 15:return he(e.type,!1);case 11:return he(e.type.render,!1);case 1:return he(e.type,!0);case 31:return pe(`Activity`);default:return``}}function ge(e){try{var t=``,n=null;do t+=R(e,n),n=e,e=e.return;while(e);return t}catch(e){return` Error generating stack: `+e.message+` `+e.stack}}var z=Object.prototype.hasOwnProperty,_e=t.unstable_scheduleCallback,ve=t.unstable_cancelCallback,B=t.unstable_shouldYield,ye=t.unstable_requestPaint,be=t.unstable_now,xe=t.unstable_getCurrentPriorityLevel,Se=t.unstable_ImmediatePriority,Ce=t.unstable_UserBlockingPriority,we=t.unstable_NormalPriority,V=t.unstable_LowPriority,Te=t.unstable_IdlePriority,Ee=t.log,De=t.unstable_setDisableYieldValue,Oe=null,ke=null;function Ae(e){if(typeof Ee==`function`&&De(e),ke&&typeof ke.setStrictMode==`function`)try{ke.setStrictMode(Oe,e)}catch{}}var je=Math.clz32?Math.clz32:Pe,Me=Math.log,Ne=Math.LN2;function Pe(e){return e>>>=0,e===0?32:31-(Me(e)/Ne|0)|0}var Fe=256,Ie=262144,Le=4194304;function Re(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function ze(e,t,n){var r=e.pendingLanes;if(r===0)return 0;var i=0,a=e.suspendedLanes,o=e.pingedLanes;e=e.warmLanes;var s=r&134217727;return s===0?(s=r&~a,s===0?o===0?n||(n=r&~e,n!==0&&(i=Re(n))):i=Re(o):i=Re(s)):(r=s&~a,r===0?(o&=s,o===0?n||(n=s&~e,n!==0&&(i=Re(n))):i=Re(o)):i=Re(r)),i===0?0:t!==0&&t!==i&&(t&a)===0&&(a=i&-i,n=t&-t,a>=n||a===32&&n&4194048)?t:i}function Be(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Ve(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function He(){var e=Le;return Le<<=1,!(Le&62914560)&&(Le=4194304),e}function Ue(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function We(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Ge(e,t,n,r,i,a){var o=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var s=e.entanglements,c=e.expirationTimes,l=e.hiddenUpdates;for(n=o&~n;0`u`||window.document===void 0||window.document.createElement===void 0),rn=!1;if(nn)try{var an={};Object.defineProperty(an,"passive",{get:function(){rn=!0}}),window.addEventListener(`test`,an,an),window.removeEventListener(`test`,an,an)}catch{rn=!1}var on=null,sn=null,cn=null;function ln(){if(cn)return cn;var e,t=sn,n=t.length,r,i=`value`in on?on.value:on.textContent,a=i.length;for(e=0;e=Vn),Wn=` `,Gn=!1;function Kn(e,t){switch(e){case`keyup`:return zn.indexOf(t.keyCode)!==-1;case`keydown`:return t.keyCode!==229;case`keypress`:case`mousedown`:case`focusout`:return!0;default:return!1}}function qn(e){return e=e.detail,typeof e==`object`&&`data`in e?e.data:null}var Jn=!1;function Yn(e,t){switch(e){case`compositionend`:return qn(t);case`keypress`:return t.which===32?(Gn=!0,Wn):null;case`textInput`:return e=t.data,e===Wn&&Gn?null:e;default:return null}}function Xn(e,t){if(Jn)return e===`compositionend`||!Bn&&Kn(e,t)?(e=ln(),cn=sn=on=null,Jn=!1,e):null;switch(e){case`paste`:return null;case`keypress`:if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}a:{for(;n;){if(n.nextSibling){n=n.nextSibling;break a}n=n.parentNode}n=void 0}n=vr(n)}}function br(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?br(e,t.parentNode):`contains`in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function xr(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=At(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href==`string`}catch{n=!1}if(n)e=t.contentWindow;else break;t=At(e.document)}return t}function Sr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t===`input`&&(e.type===`text`||e.type===`search`||e.type===`tel`||e.type===`url`||e.type===`password`)||t===`textarea`||e.contentEditable===`true`)}var Cr=nn&&`documentMode`in document&&11>=document.documentMode,wr=null,Tr=null,Er=null,Dr=!1;function Or(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Dr||wr==null||wr!==At(r)||(r=wr,`selectionStart`in r&&Sr(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Er&&_r(Er,r)||(Er=r,r=Pd(Tr,`onSelect`),0>=o,i-=o,bi=1<<32-je(t)+i|n<m?(h=d,d=null):h=d.sibling;var g=p(i,d,s[m],c);if(g===null){d===null&&(d=h);break}e&&d&&g.alternate===null&&t(i,d),a=o(g,a,m),u===null?l=g:u.sibling=g,u=g,d=h}if(m===s.length)return n(i,d),ki&&Si(i,m),l;if(d===null){for(;mh?(g=m,m=null):g=m.sibling;var y=p(a,m,v.value,l);if(y===null){m===null&&(m=g);break}e&&m&&y.alternate===null&&t(a,m),s=o(y,s,h),d===null?u=y:d.sibling=y,d=y,m=g}if(v.done)return n(a,m),ki&&Si(a,h),u;if(m===null){for(;!v.done;h++,v=c.next())v=f(a,v.value,l),v!==null&&(s=o(v,s,h),d===null?u=v:d.sibling=v,d=v);return ki&&Si(a,h),u}for(m=r(m);!v.done;h++,v=c.next())v=_(m,a,h,v.value,l),v!==null&&(e&&v.alternate!==null&&m.delete(v.key===null?h:v.key),s=o(v,s,h),d===null?u=v:d.sibling=v,d=v);return e&&m.forEach(function(e){return t(a,e)}),ki&&Si(a,h),u}function x(e,r,o,c){if(typeof o==`object`&&o&&o.type===g&&o.key===null&&(o=o.props.children),typeof o==`object`&&o){switch(o.$$typeof){case m:a:{for(var l=o.key;r!==null;){if(r.key===l){if(l=o.type,l===g){if(r.tag===7){n(e,r.sibling),c=a(r,o.props.children),c.return=e,e=c;break a}}else if(r.elementType===l||typeof l==`object`&&l&&l.$$typeof===T&&Ca(l)===r.type){n(e,r.sibling),c=a(r,o.props),Aa(c,o),c.return=e,e=c;break a}n(e,r);break}t(e,r),r=r.sibling}o.type===g?(c=si(o.props.children,e.mode,c,o.key),c.return=e,e=c):(c=oi(o.type,o.key,o.props,null,e.mode,c),Aa(c,o),c.return=e,e=c)}return s(e);case h:a:{for(l=o.key;r!==null;){if(r.key===l)if(r.tag===4&&r.stateNode.containerInfo===o.containerInfo&&r.stateNode.implementation===o.implementation){n(e,r.sibling),c=a(r,o.children||[]),c.return=e,e=c;break a}else{n(e,r);break}t(e,r),r=r.sibling}c=ui(o,e.mode,c),c.return=e,e=c}return s(e);case T:return o=Ca(o),x(e,r,o,c)}if(ne(o))return v(e,r,o,c);if(k(o)){if(l=k(o),typeof l!=`function`)throw Error(i(150));return o=l.call(o),y(e,r,o,c)}if(typeof o.then==`function`)return x(e,r,ka(o),c);if(o.$$typeof===b)return x(e,r,Zi(e,o),c);ja(e,o)}return typeof o==`string`&&o!==``||typeof o==`number`||typeof o==`bigint`?(o=``+o,r!==null&&r.tag===6?(n(e,r.sibling),c=a(r,o),c.return=e,e=c):(n(e,r),c=ci(o,e.mode,c),c.return=e,e=c),s(e)):n(e,r)}return function(e,t,n,r){try{Oa=0;var i=x(e,t,n,r);return Da=null,i}catch(t){if(t===_a||t===ya)throw t;var a=ni(29,t,null,e.mode);return a.lanes=r,a.return=e,a}}}var Na=Ma(!0),Pa=Ma(!1),Fa=!1;function Ia(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function La(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Ra(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function za(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Bl&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,t=$r(e),Qr(e,null,n),t}return Yr(e,r,t,n),$r(e)}function Ba(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,n&4194048)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,qe(e,n)}}function Va(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var o={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};a===null?i=a=o:a=a.next=o,n=n.next}while(n!==null);a===null?i=a=t:a=a.next=t}else i=a=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,callbacks:r.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var Ha=!1;function Ua(){if(Ha){var e=ca;if(e!==null)throw e}}function Wa(e,t,n,r){Ha=!1;var i=e.updateQueue;Fa=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var c=s,l=c.next;c.next=null,o===null?a=l:o.next=l,o=c;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==o&&(s===null?u.firstBaseUpdate=l:s.next=l,u.lastBaseUpdate=c))}if(a!==null){var d=i.baseState;o=0,u=l=c=null,s=a;do{var p=s.lane&-536870913,m=p!==s.lane;if(m?(Ul&p)===p:(r&p)===p){p!==0&&p===sa&&(Ha=!0),u!==null&&(u=u.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});a:{var h=e,g=s;p=t;var _=n;switch(g.tag){case 1:if(h=g.payload,typeof h==`function`){d=h.call(_,d,p);break a}d=h;break a;case 3:h.flags=h.flags&-65537|128;case 0:if(h=g.payload,p=typeof h==`function`?h.call(_,d,p):h,p==null)break a;d=f({},d,p);break a;case 2:Fa=!0}}p=s.callback,p!==null&&(e.flags|=64,m&&(e.flags|=8192),m=i.callbacks,m===null?i.callbacks=[p]:m.push(p))}else m={lane:p,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(l=u=m,c=d):u=u.next=m,o|=p;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;m=s,s=m.next,m.next=null,i.lastBaseUpdate=m,i.shared.pending=null}}while(1);u===null&&(c=d),i.baseState=c,i.firstBaseUpdate=l,i.lastBaseUpdate=u,a===null&&(i.shared.lanes=0),Zl|=o,e.lanes=o,e.memoizedState=d}}function Ga(e,t){if(typeof e!=`function`)throw Error(i(191,e));e.call(t)}function Ka(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;ea?a:8;var o=A.T,s={};A.T=s,Ns(e,!1,t,n);try{var c=i(),l=A.S;l!==null&&l(s,c),typeof c==`object`&&c&&typeof c.then==`function`?Ms(e,t,da(c,r),yu(e)):Ms(e,t,r,yu(e))}catch(n){Ms(e,t,{then:function(){},status:`rejected`,reason:n},yu())}finally{j.p=a,o!==null&&s.types!==null&&(o.types=s.types),A.T=o}}function Ss(){}function Cs(e,t,n,r){if(e.tag!==5)throw Error(i(476));var a=ws(e).queue;xs(e,a,t,re,n===null?Ss:function(){return Ts(e),n(r)})}function ws(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:re,baseState:re,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Po,lastRenderedState:re},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Po,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Ts(e){var t=ws(e);t.next===null&&(t=e.alternate.memoizedState),Ms(e,t.next.queue,{},yu())}function Es(){return Xi(sp)}function Ds(){return ko().memoizedState}function Os(){return ko().memoizedState}function ks(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=yu();e=Ra(n);var r=za(t,e,n);r!==null&&(xu(r,t,n),Ba(r,t,n)),t={cache:ra()},e.payload=t;return}t=t.return}}function As(e,t,n){var r=yu();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Ps(e)?Fs(t,n):(n=Xr(e,t,n,r),n!==null&&(xu(n,e,r),Is(n,t,r)))}function js(e,t,n){Ms(e,t,n,yu())}function Ms(e,t,n,r){var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Ps(e))Fs(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,s=a(o,n);if(i.hasEagerState=!0,i.eagerState=s,gr(s,o))return Yr(e,t,i,0),Vl===null&&Jr(),!1}catch{}if(n=Xr(e,t,i,r),n!==null)return xu(n,e,r),Is(n,t,r),!0}return!1}function Ns(e,t,n,r){if(r={lane:2,revertLane:vd(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},Ps(e)){if(t)throw Error(i(479))}else t=Xr(e,n,r,2),t!==null&&xu(t,e,2)}function Ps(e){var t=e.alternate;return e===co||t!==null&&t===co}function Fs(e,t){po=fo=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Is(e,t,n){if(n&4194048){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,qe(e,n)}}var Ls={readContext:Xi,use:Mo,useCallback:yo,useContext:yo,useEffect:yo,useImperativeHandle:yo,useLayoutEffect:yo,useInsertionEffect:yo,useMemo:yo,useReducer:yo,useRef:yo,useState:yo,useDebugValue:yo,useDeferredValue:yo,useTransition:yo,useSyncExternalStore:yo,useId:yo,useHostTransitionStatus:yo,useFormState:yo,useActionState:yo,useOptimistic:yo,useMemoCache:yo,useCacheRefresh:yo};Ls.useEffectEvent=yo;var Rs={readContext:Xi,use:Mo,useCallback:function(e,t){return Oo().memoizedState=[e,t===void 0?null:t],e},useContext:Xi,useEffect:cs,useImperativeHandle:function(e,t,n){n=n==null?null:n.concat([e]),os(4194308,4,ms.bind(null,t,e),n)},useLayoutEffect:function(e,t){return os(4194308,4,e,t)},useInsertionEffect:function(e,t){os(4,2,e,t)},useMemo:function(e,t){var n=Oo();t=t===void 0?null:t;var r=e();if(mo){Ae(!0);try{e()}finally{Ae(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=Oo();if(n!==void 0){var i=n(t);if(mo){Ae(!0);try{n(t)}finally{Ae(!1)}}}else i=t;return r.memoizedState=r.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},r.queue=e,e=e.dispatch=As.bind(null,co,e),[r.memoizedState,e]},useRef:function(e){var t=Oo();return e={current:e},t.memoizedState=e},useState:function(e){e=Wo(e);var t=e.queue,n=js.bind(null,co,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:gs,useDeferredValue:function(e,t){return ys(Oo(),e,t)},useTransition:function(){var e=Wo(!1);return e=xs.bind(null,co,e.queue,!0,!1),Oo().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=co,a=Oo();if(ki){if(n===void 0)throw Error(i(407));n=n()}else{if(n=t(),Vl===null)throw Error(i(349));Ul&127||zo(r,t,n)}a.memoizedState=n;var o={value:n,getSnapshot:t};return a.queue=o,cs(Vo.bind(null,r,o,e),[e]),r.flags|=2048,is(9,{destroy:void 0},Bo.bind(null,r,o,n,t),null),n},useId:function(){var e=Oo(),t=Vl.identifierPrefix;if(ki){var n=xi,r=bi;n=(r&~(1<<32-je(r)-1)).toString(32)+n,t=`_`+t+`R_`+n,n=ho++,0<\/script>`,o=o.removeChild(o.firstChild);break;case`select`:o=typeof r.is==`string`?s.createElement(`select`,{is:r.is}):s.createElement(`select`),r.multiple?o.multiple=!0:r.size&&(o.size=r.size);break;default:o=typeof r.is==`string`?s.createElement(a,{is:r.is}):s.createElement(a)}}o[et]=t,o[tt]=r;a:for(s=t.child;s!==null;){if(s.tag===5||s.tag===6)o.appendChild(s.stateNode);else if(s.tag!==4&&s.tag!==27&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===t)break a;for(;s.sibling===null;){if(s.return===null||s.return===t)break a;s=s.return}s.sibling.return=s.return,s=s.sibling}t.stateNode=o;a:switch(Ud(o,a,r),a){case`button`:case`input`:case`select`:case`textarea`:r=!!r.autoFocus;break a;case`img`:r=!0;break a;default:r=!1}r&&Mc(t)}}return Lc(t),Nc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&Mc(t);else{if(typeof r!=`string`&&t.stateNode===null)throw Error(i(166));if(e=se.current,Ii(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,a=Di,a!==null)switch(a.tag){case 27:case 5:r=a.memoizedProps}e[et]=t,e=!!(e.nodeValue===n||r!==null&&!0===r.suppressHydrationWarning||Bd(e.nodeValue,n)),e||Ni(t,!0)}else e=Yd(e).createTextNode(r),e[et]=t,t.stateNode=e}return Lc(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(r=Ii(t),n!==null){if(e===null){if(!r)throw Error(i(318));if(e=t.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(557));e[et]=t}else Li(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Lc(t),e=!1}else n=Ri(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(io(t),t):(io(t),null);if(t.flags&128)throw Error(i(558))}return Lc(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(a=Ii(t),r!==null&&r.dehydrated!==null){if(e===null){if(!a)throw Error(i(318));if(a=t.memoizedState,a=a===null?null:a.dehydrated,!a)throw Error(i(317));a[et]=t}else Li(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Lc(t),a=!1}else a=Ri(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),a=!0;if(!a)return t.flags&256?(io(t),t):(io(t),null)}return io(t),t.flags&128?(t.lanes=n,t):(n=r!==null,e=e!==null&&e.memoizedState!==null,n&&(r=t.child,a=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(a=r.alternate.memoizedState.cachePool.pool),o=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(o=r.memoizedState.cachePool.pool),o!==a&&(r.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),Fc(t,t.updateQueue),Lc(t),null);case 4:return L(),e===null&&Ad(t.stateNode.containerInfo),Lc(t),null;case 10:return Wi(t.type),Lc(t),null;case 19:if(ie(ao),r=t.memoizedState,r===null)return Lc(t),null;if(a=!!(t.flags&128),o=r.rendering,o===null)if(a)Ic(r,!1);else{if(Xl!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=oo(e),o!==null){for(t.flags|=128,Ic(r,!1),e=o.updateQueue,t.updateQueue=e,Fc(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)ai(n,e),n=n.sibling;return F(ao,ao.current&1|2),ki&&Si(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&be()>su&&(t.flags|=128,a=!0,Ic(r,!1),t.lanes=4194304)}else{if(!a)if(e=oo(o),e!==null){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,Fc(t,e),Ic(r,!0),r.tail===null&&r.tailMode===`hidden`&&!o.alternate&&!ki)return Lc(t),null}else 2*be()-r.renderingStartTime>su&&n!==536870912&&(t.flags|=128,a=!0,Ic(r,!1),t.lanes=4194304);r.isBackwards?(o.sibling=t.child,t.child=o):(e=r.last,e===null?t.child=o:e.sibling=o,r.last=o)}return r.tail===null?(Lc(t),null):(e=r.tail,r.rendering=e,r.tail=e.sibling,r.renderingStartTime=be(),e.sibling=null,n=ao.current,F(ao,a?n&1|2:n&1),ki&&Si(t,r.treeForkCount),e);case 22:case 23:return io(t),Za(),r=t.memoizedState!==null,e===null?r&&(t.flags|=8192):e.memoizedState!==null!==r&&(t.flags|=8192),r?n&536870912&&!(t.flags&128)&&(Lc(t),t.subtreeFlags&6&&(t.flags|=8192)):Lc(t),n=t.updateQueue,n!==null&&Fc(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),r=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),e!==null&&ie(pa),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Wi(na),Lc(t),null;case 25:return null;case 30:return null}throw Error(i(156,t.tag))}function zc(e,t){switch(Ti(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Wi(na),L(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return ue(t),null;case 31:if(t.memoizedState!==null){if(io(t),t.alternate===null)throw Error(i(340));Li()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(io(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(i(340));Li()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ie(ao),null;case 4:return L(),null;case 10:return Wi(t.type),null;case 22:case 23:return io(t),Za(),e!==null&&ie(pa),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Wi(na),null;case 25:return null;default:return null}}function Bc(e,t){switch(Ti(t),t.tag){case 3:Wi(na),L();break;case 26:case 27:case 5:ue(t);break;case 4:L();break;case 31:t.memoizedState!==null&&io(t);break;case 13:io(t);break;case 19:ie(ao);break;case 10:Wi(t.type);break;case 22:case 23:io(t),Za(),e!==null&&ie(pa);break;case 24:Wi(na)}}function Vc(e,t){try{var n=t.updateQueue,r=n===null?null:n.lastEffect;if(r!==null){var i=r.next;n=i;do{if((n.tag&e)===e){r=void 0;var a=n.create,o=n.inst;r=a(),o.destroy=r}n=n.next}while(n!==i)}}catch(e){Zu(t,t.return,e)}}function Hc(e,t,n){try{var r=t.updateQueue,i=r===null?null:r.lastEffect;if(i!==null){var a=i.next;r=a;do{if((r.tag&e)===e){var o=r.inst,s=o.destroy;if(s!==void 0){o.destroy=void 0,i=t;var c=n,l=s;try{l()}catch(e){Zu(i,c,e)}}}r=r.next}while(r!==a)}}catch(e){Zu(t,t.return,e)}}function Uc(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{Ka(t,n)}catch(t){Zu(e,e.return,t)}}}function Wc(e,t,n){n.props=Gs(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(n){Zu(e,t,n)}}function Gc(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;case 30:r=e.stateNode;break;default:r=e.stateNode}typeof n==`function`?e.refCleanup=n(r):n.current=r}}catch(n){Zu(e,t,n)}}function Kc(e,t){var n=e.ref,r=e.refCleanup;if(n!==null)if(typeof r==`function`)try{r()}catch(n){Zu(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n==`function`)try{n(null)}catch(n){Zu(e,t,n)}else n.current=null}function qc(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{a:switch(t){case`button`:case`input`:case`select`:case`textarea`:n.autoFocus&&r.focus();break a;case`img`:n.src?r.src=n.src:n.srcSet&&(r.srcset=n.srcSet)}}catch(t){Zu(e,e.return,t)}}function Jc(e,t,n){try{var r=e.stateNode;Wd(r,e.type,n,t),r[tt]=t}catch(t){Zu(e,e.return,t)}}function Yc(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&sf(e.type)||e.tag===4}function Xc(e){a:for(;;){for(;e.sibling===null;){if(e.return===null||Yc(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&sf(e.type)||e.flags&2||e.child===null||e.tag===4)continue a;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Zc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=qt));else if(r!==4&&(r===27&&sf(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(Zc(e,t,n),e=e.sibling;e!==null;)Zc(e,t,n),e=e.sibling}function Qc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(r===27&&sf(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(Qc(e,t,n),e=e.sibling;e!==null;)Qc(e,t,n),e=e.sibling}function $c(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);Ud(t,r,n),t[et]=e,t[tt]=n}catch(t){Zu(e,e.return,t)}}var el=!1,tl=!1,nl=!1,rl=typeof WeakSet==`function`?WeakSet:Set,il=null;function al(e,t){if(e=e.containerInfo,qd=gp,e=xr(e),Sr(e)){if(`selectionStart`in e)var n={start:e.selectionStart,end:e.selectionEnd};else a:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var a=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break a}var s=0,c=-1,l=-1,u=0,d=0,f=e,p=null;b:for(;;){for(var m;f!==n||a!==0&&f.nodeType!==3||(c=s+a),f!==o||r!==0&&f.nodeType!==3||(l=s+r),f.nodeType===3&&(s+=f.nodeValue.length),(m=f.firstChild)!==null;)p=f,f=m;for(;;){if(f===e)break b;if(p===n&&++u===a&&(c=s),p===o&&++d===r&&(l=s),(m=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=m}n=c===-1||l===-1?null:{start:c,end:l}}else n=null}n||={start:0,end:0}}else n=null;for(Jd={focusedElem:e,selectionRange:n},gp=!1,il=t;il!==null;)if(t=il,e=t.child,t.subtreeFlags&1028&&e!==null)e.return=t,il=e;else for(;il!==null;){switch(t=il,o=t.alternate,e=t.flags,t.tag){case 0:if(e&4&&(e=t.updateQueue,e=e===null?null:e.events,e!==null))for(n=0;n title`))),Ud(o,r,n),o[et]=e,pt(o),r=o;break a;case`link`:var s=Xf(`link`,`href`,a).get(r+(n.href||``));if(s){for(var c=0;cg&&(o=g,g=h,h=o);var _=yr(s,h),v=yr(s,g);if(_&&v&&(p.rangeCount!==1||p.anchorNode!==_.node||p.anchorOffset!==_.offset||p.focusNode!==v.node||p.focusOffset!==v.offset)){var y=d.createRange();y.setStart(_.node,_.offset),p.removeAllRanges(),h>g?(p.addRange(y),p.extend(v.node,v.offset)):(y.setEnd(v.node,v.offset),p.addRange(y))}}}}for(d=[],p=s;p=p.parentNode;)p.nodeType===1&&d.push({element:p,left:p.scrollLeft,top:p.scrollTop});for(typeof s.focus==`function`&&s.focus(),s=0;sn?32:n,A.T=null,n=hu,hu=null;var o=du,s=pu;if(uu=0,fu=du=null,pu=0,Bl&6)throw Error(i(331));var c=Bl;if(Bl|=4,Fl(o.current),Dl(o,o.current,s,n),Bl=c,dd(0,!1),ke&&typeof ke.onPostCommitFiberRoot==`function`)try{ke.onPostCommitFiberRoot(Oe,o)}catch{}return!0}finally{j.p=a,A.T=r,qu(e,t)}}function Xu(e,t,n){t=fi(n,t),t=Zs(e.stateNode,t,2),e=za(e,t,2),e!==null&&(We(e,2),ud(e))}function Zu(e,t,n){if(e.tag===3)Xu(e,e,n);else for(;t!==null;){if(t.tag===3){Xu(t,e,n);break}if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(lu===null||!lu.has(r))){e=fi(n,e),n=Qs(2),r=za(t,n,2),r!==null&&($s(n,r,t,e),We(r,2),ud(r));break}}t=t.return}}function Qu(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new zl;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(Jl=!0,i.add(n),e=$u.bind(null,e,t,n),t.then(e,e))}function $u(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Vl===e&&(Ul&n)===n&&(Xl===4||Xl===3&&(Ul&62914560)===Ul&&300>be()-au?!(Bl&2)&&Ou(e,0):$l|=n,tu===Ul&&(tu=0)),ud(e)}function ed(e,t){t===0&&(t=He()),e=Zr(e,t),e!==null&&(We(e,t),ud(e))}function td(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),ed(e,n)}function nd(e,t){var n=0;switch(e.tag){case 31:case 13:var r=e.stateNode,a=e.memoizedState;a!==null&&(n=a.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(i(314))}r!==null&&r.delete(t),ed(e,n)}function rd(e,t){return _e(e,t)}var id=null,ad=null,od=!1,sd=!1,cd=!1,ld=0;function ud(e){e!==ad&&e.next===null&&(ad===null?id=ad=e:ad=ad.next=e),sd=!0,od||(od=!0,_d())}function dd(e,t){if(!cd&&sd){cd=!0;do for(var n=!1,r=id;r!==null;){if(!t)if(e!==0){var i=r.pendingLanes;if(i===0)var a=0;else{var o=r.suspendedLanes,s=r.pingedLanes;a=(1<<31-je(42|e)+1)-1,a&=i&~(o&~s),a=a&201326741?a&201326741|1:a?a|2:0}a!==0&&(n=!0,gd(r,a))}else a=Ul,a=ze(r,r===Vl?a:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),!(a&3)||Be(r,a)||(n=!0,gd(r,a));r=r.next}while(n);cd=!1}}function fd(){pd()}function pd(){sd=od=!1;var e=0;ld!==0&&ef()&&(e=ld);for(var t=be(),n=null,r=id;r!==null;){var i=r.next,a=md(r,t);a===0?(r.next=null,n===null?id=i:n.next=i,i===null&&(ad=n)):(n=r,(e!==0||a&3)&&(sd=!0)),r=i}uu!==0&&uu!==5||dd(e,!1),ld!==0&&(ld=0)}function md(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes&-62914561;0s)break;var u=c.transferSize,d=c.initiatorType;u&&Gd(d)&&(c=c.responseEnd,o+=u*(c`u`?null:document;function Af(e,t,n){var r=kf;if(r&&typeof t==`string`&&t){var i=Mt(t);i=`link[rel="`+e+`"][href="`+i+`"]`,typeof n==`string`&&(i+=`[crossorigin="`+n+`"]`),wf.has(i)||(wf.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement(`link`),Ud(t,`link`,e),pt(t),r.head.appendChild(t)))}}function jf(e){Ef.D(e),Af(`dns-prefetch`,e,null)}function Mf(e,t){Ef.C(e,t),Af(`preconnect`,e,t)}function Nf(e,t,n){Ef.L(e,t,n);var r=kf;if(r&&e&&t){var i=`link[rel="preload"][as="`+Mt(t)+`"]`;t===`image`&&n&&n.imageSrcSet?(i+=`[imagesrcset="`+Mt(n.imageSrcSet)+`"]`,typeof n.imageSizes==`string`&&(i+=`[imagesizes="`+Mt(n.imageSizes)+`"]`)):i+=`[href="`+Mt(e)+`"]`;var a=i;switch(t){case`style`:a=zf(e);break;case`script`:a=Uf(e)}Cf.has(a)||(e=f({rel:`preload`,href:t===`image`&&n&&n.imageSrcSet?void 0:e,as:t},n),Cf.set(a,e),r.querySelector(i)!==null||t===`style`&&r.querySelector(Bf(a))||t===`script`&&r.querySelector(Wf(a))||(t=r.createElement(`link`),Ud(t,`link`,e),pt(t),r.head.appendChild(t)))}}function Pf(e,t){Ef.m(e,t);var n=kf;if(n&&e){var r=t&&typeof t.as==`string`?t.as:`script`,i=`link[rel="modulepreload"][as="`+Mt(r)+`"][href="`+Mt(e)+`"]`,a=i;switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:a=Uf(e)}if(!Cf.has(a)&&(e=f({rel:`modulepreload`,href:e},t),Cf.set(a,e),n.querySelector(i)===null)){switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:if(n.querySelector(Wf(a)))return}r=n.createElement(`link`),Ud(r,`link`,e),pt(r),n.head.appendChild(r)}}}function Ff(e,t,n){Ef.S(e,t,n);var r=kf;if(r&&e){var i=ft(r).hoistableStyles,a=zf(e);t||=`default`;var o=i.get(a);if(!o){var s={loading:0,preload:null};if(o=r.querySelector(Bf(a)))s.loading=5;else{e=f({rel:`stylesheet`,href:e,"data-precedence":t},n),(n=Cf.get(a))&&qf(e,n);var c=o=r.createElement(`link`);pt(c),Ud(c,`link`,e),c._p=new Promise(function(e,t){c.onload=e,c.onerror=t}),c.addEventListener(`load`,function(){s.loading|=1}),c.addEventListener(`error`,function(){s.loading|=2}),s.loading|=4,Kf(o,t,r)}o={type:`stylesheet`,instance:o,count:1,state:s},i.set(a,o)}}}function If(e,t){Ef.X(e,t);var n=kf;if(n&&e){var r=ft(n).hoistableScripts,i=Uf(e),a=r.get(i);a||(a=n.querySelector(Wf(i)),a||(e=f({src:e,async:!0},t),(t=Cf.get(i))&&Jf(e,t),a=n.createElement(`script`),pt(a),Ud(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Lf(e,t){Ef.M(e,t);var n=kf;if(n&&e){var r=ft(n).hoistableScripts,i=Uf(e),a=r.get(i);a||(a=n.querySelector(Wf(i)),a||(e=f({src:e,async:!0,type:`module`},t),(t=Cf.get(i))&&Jf(e,t),a=n.createElement(`script`),pt(a),Ud(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Rf(e,t,n,r){var a=(a=se.current)?Tf(a):null;if(!a)throw Error(i(446));switch(e){case`meta`:case`title`:return null;case`style`:return typeof n.precedence==`string`&&typeof n.href==`string`?(t=zf(n.href),n=ft(a).hoistableStyles,r=n.get(t),r||(r={type:`style`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};case`link`:if(n.rel===`stylesheet`&&typeof n.href==`string`&&typeof n.precedence==`string`){e=zf(n.href);var o=ft(a).hoistableStyles,s=o.get(e);if(s||(a=a.ownerDocument||a,s={type:`stylesheet`,instance:null,count:0,state:{loading:0,preload:null}},o.set(e,s),(o=a.querySelector(Bf(e)))&&!o._p&&(s.instance=o,s.state.loading=5),Cf.has(e)||(n={rel:`preload`,as:`style`,href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},Cf.set(e,n),o||Hf(a,e,n,s.state))),t&&r===null)throw Error(i(528,``));return s}if(t&&r!==null)throw Error(i(529,``));return null;case`script`:return t=n.async,n=n.src,typeof n==`string`&&t&&typeof t!=`function`&&typeof t!=`symbol`?(t=Uf(n),n=ft(a).hoistableScripts,r=n.get(t),r||(r={type:`script`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};default:throw Error(i(444,e))}}function zf(e){return`href="`+Mt(e)+`"`}function Bf(e){return`link[rel="stylesheet"][`+e+`]`}function Vf(e){return f({},e,{"data-precedence":e.precedence,precedence:null})}function Hf(e,t,n,r){e.querySelector(`link[rel="preload"][as="style"][`+t+`]`)?r.loading=1:(t=e.createElement(`link`),r.preload=t,t.addEventListener(`load`,function(){return r.loading|=1}),t.addEventListener(`error`,function(){return r.loading|=2}),Ud(t,`link`,n),pt(t),e.head.appendChild(t))}function Uf(e){return`[src="`+Mt(e)+`"]`}function Wf(e){return`script[async]`+e}function Gf(e,t,n){if(t.count++,t.instance===null)switch(t.type){case`style`:var r=e.querySelector(`style[data-href~="`+Mt(n.href)+`"]`);if(r)return t.instance=r,pt(r),r;var a=f({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement(`style`),pt(r),Ud(r,`style`,a),Kf(r,n.precedence,e),t.instance=r;case`stylesheet`:a=zf(n.href);var o=e.querySelector(Bf(a));if(o)return t.state.loading|=4,t.instance=o,pt(o),o;r=Vf(n),(a=Cf.get(a))&&qf(r,a),o=(e.ownerDocument||e).createElement(`link`),pt(o);var s=o;return s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),Ud(o,`link`,r),t.state.loading|=4,Kf(o,n.precedence,e),t.instance=o;case`script`:return o=Uf(n.src),(a=e.querySelector(Wf(o)))?(t.instance=a,pt(a),a):(r=n,(a=Cf.get(o))&&(r=f({},n),Jf(r,a)),e=e.ownerDocument||e,a=e.createElement(`script`),pt(a),Ud(a,`link`,r),e.head.appendChild(a),t.instance=a);case`void`:return null;default:throw Error(i(443,t.type))}else t.type===`stylesheet`&&!(t.state.loading&4)&&(r=t.instance,t.state.loading|=4,Kf(r,n.precedence,e));return t.instance}function Kf(e,t,n){for(var r=n.querySelectorAll(`link[rel="stylesheet"][data-precedence],style[data-precedence]`),i=r.length?r[r.length-1]:null,a=i,o=0;o title`):null)}function Qf(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case`meta`:case`title`:return!0;case`style`:if(typeof t.precedence!=`string`||typeof t.href!=`string`||t.href===``)break;return!0;case`link`:if(typeof t.rel!=`string`||typeof t.href!=`string`||t.href===``||t.onLoad||t.onError)break;switch(t.rel){case`stylesheet`:return e=t.disabled,typeof t.precedence==`string`&&e==null;default:return!0}case`script`:if(t.async&&typeof t.async!=`function`&&typeof t.async!=`symbol`&&!t.onLoad&&!t.onError&&t.src&&typeof t.src==`string`)return!0}return!1}function $f(e){return!(e.type===`stylesheet`&&!(e.state.loading&3))}function ep(e,t,n,r){if(n.type===`stylesheet`&&(typeof r.media!=`string`||!1!==matchMedia(r.media).matches)&&!(n.state.loading&4)){if(n.instance===null){var i=zf(r.href),a=t.querySelector(Bf(i));if(a){t=a._p,typeof t==`object`&&t&&typeof t.then==`function`&&(e.count++,e=rp.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=a,pt(a);return}a=t.ownerDocument||t,r=Vf(r),(i=Cf.get(i))&&qf(r,i),a=a.createElement(`link`),pt(a);var o=a;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),Ud(a,`link`,r),n.instance=a}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&!(n.state.loading&3)&&(e.count++,n=rp.bind(e),t.addEventListener(`load`,n),t.addEventListener(`error`,n))}}var tp=0;function np(e,t){return e.stylesheets&&e.count===0&&ap(e,e.stylesheets),0tp?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}function rp(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)ap(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var ip=null;function ap(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,ip=new Map,t.forEach(op,e),ip=null,rp.call(e))}function op(e,t){if(!(t.state.loading&4)){var n=ip.get(e);if(n)var r=n.get(null);else{n=new Map,ip.set(e,n);for(var i=e.querySelectorAll(`link[data-precedence],style[data-precedence]`),a=0;a{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=nB()}))(),iB=NF({primaryColor:`teal`,defaultRadius:`md`,fontFamily:`Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, Segoe UI, sans-serif`,fontFamilyMonospace:`ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace`,headings:{fontFamily:`inherit`,fontWeight:`650`},cursorType:`pointer`});function aB({dark:e,children:t}){return(0,K.jsx)(jF,{theme:iB,forceColorScheme:e?`dark`:`light`,children:(0,K.jsx)(ML,{withBorder:!0,radius:`lg`,style:{overflow:`hidden`},children:t})})}function oB({eyebrow:e,title:t,summary:n,onRefresh:r,disabled:i}){return(0,K.jsxs)(nR,{justify:`space-between`,align:`flex-start`,wrap:`nowrap`,px:{base:`md`,sm:`lg`},pt:`md`,pb:`sm`,children:[(0,K.jsxs)(FI,{miw:0,children:[(0,K.jsx)(uR,{c:`dimmed`,size:`xs`,fw:700,tt:`uppercase`,lts:`0.1em`,children:e}),(0,K.jsx)(zz,{order:1,fz:`lg`,mt:2,style:{overflow:`hidden`,textOverflow:`ellipsis`,whiteSpace:`nowrap`},children:t}),n&&(0,K.jsx)(uR,{c:`dimmed`,size:`sm`,mt:4,children:n})]}),(0,K.jsx)(SR,{variant:`default`,size:`xs`,leftSection:(0,K.jsx)(qz,{size:15,weight:`bold`}),onClick:()=>void r(),disabled:i,children:`Refresh`})]})}function sB({error:e,loading:t}){return e?(0,K.jsx)(aR,{color:`red`,m:`md`,children:e}):t?(0,K.jsxs)(wR,{mih:160,p:`xl`,children:[(0,K.jsx)(KL,{size:`sm`}),(0,K.jsx)(uR,{c:`dimmed`,size:`sm`,ml:`sm`,children:t})]}):null}function cB({active:e,items:t,onChange:n}){return(0,K.jsx)(TL,{type:`auto`,offsetScrollbars:!0,scrollbarSize:6,children:(0,K.jsx)(kz,{value:e,onChange:e=>e&&n(e),variant:`pills`,px:{base:`md`,sm:`lg`},pb:`sm`,children:(0,K.jsx)(kz.List,{style:{flexWrap:`nowrap`},children:t.map(e=>(0,K.jsx)(kz.Tab,{value:e.id,rightSection:e.count===void 0?void 0:(0,K.jsx)(pR,{size:`xs`,variant:`light`,circle:!0,children:e.count}),children:e.label},e.id))})})})}function lB({icon:e,title:t,children:n,tall:r=!1}){return(0,K.jsx)(wR,{mih:r?220:130,p:`xl`,children:(0,K.jsxs)(nR,{wrap:`nowrap`,children:[(0,K.jsx)(Mz,{variant:`light`,size:`xl`,radius:`md`,children:e}),(0,K.jsxs)(FI,{children:[(0,K.jsx)(uR,{fw:700,size:`sm`,children:t}),(0,K.jsx)(uR,{c:`dimmed`,size:`xs`,mt:3,children:n})]})]})})}function uB({left:e,right:t}){return(0,K.jsxs)(nR,{justify:`space-between`,px:{base:`md`,sm:`lg`},py:`xs`,style:{borderTop:`1px solid var(--mantine-color-default-border)`},children:[(0,K.jsx)(uR,{c:`dimmed`,size:`xs`,children:e}),(0,K.jsx)(uR,{c:`dimmed`,size:`xs`,ta:`right`,children:t})]})}function dB(e,t=8){let[n,r]=(0,G.useState)(1),i=Math.max(1,Math.ceil(e.length/t));(0,G.useEffect)(()=>{n>i&&r(i)},[n,i]);let a=(n-1)*t;return{page:n,setPage:r,totalPages:i,pageItems:e.slice(a,a+t),from:e.length===0?0:a+1,to:Math.min(a+t,e.length),total:e.length}}function fB({page:e,totalPages:t,from:n,to:r,total:i,onChange:a}){return t<=1?null:(0,K.jsxs)(nR,{justify:`space-between`,gap:`sm`,px:{base:`md`,sm:`lg`},py:`xs`,style:{borderTop:`1px solid var(--mantine-color-default-border)`},children:[(0,K.jsxs)(uR,{c:`dimmed`,size:`xs`,children:[n,`–`,r,` of `,i]}),(0,K.jsx)(XR,{value:e,total:t,onChange:a,size:`xs`,withEdges:!0,"aria-label":`Table pages`})]})}function pB(e){return e?{text:`#c1c9c5`,muted:`#8c9892`,grid:`#303a35`,surface:`#1b211e`,border:`#38443e`}:{text:`#344039`,muted:`#748078`,grid:`#e5e9e6`,surface:`#ffffff`,border:`#d7ddd9`}}var mB=jc(),hB=M,gB=me,_B=function(){function e(){this._dragging=!1,this.animationThreshold=15}return e.prototype.render=function(e,t,n,r){var i=t.get(`value`),a=t.get(`status`);if(this._axisModel=e,this._axisPointerModel=t,this._api=n,!(!r&&this._lastValue===i&&this._lastStatus===a)){this._lastValue=i,this._lastStatus=a;var o=this._group,s=this._handle;if(!a||a===`hide`){o&&o.hide(),s&&s.hide();return}o&&o.show(),s&&s.show();var c={};this.makeElOption(c,i,e,t,n);var l=c.graphicKey;l!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=l;var u=this._moveAnimation=this.determineAnimation(e,t);if(!o)o=this._group=new Yu,this.createPointerEl(o,c,e,t),this.createLabelEl(o,c,e,t),n.getZr().add(o);else{var d=he(vB,t,u);this.updatePointerEl(o,c,d),this.updateLabelEl(o,c,d,t)}SB(o,t,!0),this._renderHandle(i)}},e.prototype.remove=function(e){this.clear(e)},e.prototype.dispose=function(e){this.clear(e)},e.prototype.determineAnimation=function(e,t){var n=t.get(`animation`),r=e.axis,i=r.type===`category`,a=t.get(`snap`);if(!a&&!i)return!1;if(n===`auto`||n==null){var o=this.animationThreshold;if(i&&Yb(r).w>o)return!0;if(a){var s=uk(e).seriesDataCount,c=r.getExtent();return Math.abs(c[0]-c[1])/s>o}return!1}return n===!0},e.prototype.makeElOption=function(e,t,n,r,i){},e.prototype.createPointerEl=function(e,t,n,r){var i=t.pointer;if(i){var a=mB(e).pointerEl=new of[i.type](hB(t.pointer));e.add(a)}},e.prototype.createLabelEl=function(e,t,n,r){if(t.label){var i=mB(e).labelEl=new ns(hB(t.label));e.add(i),bB(i,r)}},e.prototype.updatePointerEl=function(e,t,n){var r=mB(e).pointerEl;r&&t.pointer&&(r.setStyle(t.pointer.style),n(r,{shape:t.pointer.shape}))},e.prototype.updateLabelEl=function(e,t,n,r){var i=mB(e).labelEl;i&&(i.setStyle(t.label.style),n(i,{x:t.label.x,y:t.label.y}),bB(i,r))},e.prototype._renderHandle=function(e){if(!(this._dragging||!this.updateHandleTransform)){var t=this._axisPointerModel,n=this._api.getZr(),r=this._handle,i=t.getModel(`handle`),a=t.get(`status`);if(!i.get(`show`)||!a||a===`hide`){r&&n.remove(r),this._handle=null;return}var o;this._handle||(o=!0,r=this._handle=jf(i.get(`icon`),{cursor:`move`,draggable:!0,onmousemove:function(e){qS(e.event)},onmousedown:gB(this._onHandleDragMove,this,0,0),drift:gB(this._onHandleDragMove,this),ondragend:gB(this._onHandleDragEnd,this)}),n.add(r)),SB(r,t,!1),r.setStyle(i.getItemStyle(null,[`color`,`borderColor`,`borderWidth`,`opacity`,`shadowColor`,`shadowBlur`,`shadowOffsetX`,`shadowOffsetY`]));var s=i.get(`size`);R(s)||(s=[s,s]),r.scaleX=s[0]/2,r.scaleY=s[1]/2,AS(this,`_doDispatchAxisPointer`,i.get(`throttle`)||0,`fixRate`),this._moveHandleToValue(e,o)}},e.prototype._moveHandleToValue=function(e,t){vB(this._axisPointerModel,!t&&this._moveAnimation,this._handle,xB(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},e.prototype._onHandleDragMove=function(e,t){var n=this._handle;if(n){this._dragging=!0;var r=this.updateHandleTransform(xB(n),[e,t],this._axisModel,this._axisPointerModel);this._payloadInfo=r,n.stopAnimation(),n.attr(xB(r)),mB(n).lastProp=null,this._doDispatchAxisPointer()}},e.prototype._doDispatchAxisPointer=function(){if(this._handle){var e=this._payloadInfo,t=this._axisModel;this._api.dispatchAction({type:`updateAxisPointer`,x:e.cursorPoint[0],y:e.cursorPoint[1],tooltipOption:e.tooltipOption,axesInfo:[{axisDim:t.axis.dim,axisIndex:t.componentIndex}]})}},e.prototype._onHandleDragEnd=function(){if(this._dragging=!1,this._handle){var e=this._axisPointerModel.get(`value`);this._moveHandleToValue(e),this._api.dispatchAction({type:`hideTip`})}},e.prototype.clear=function(e){this._lastValue=null,this._lastStatus=null;var t=e.getZr(),n=this._group,r=this._handle;t&&n&&(this._lastGraphicKey=null,n&&t.remove(n),r&&t.remove(r),this._group=null,this._handle=null,this._payloadInfo=null),jS(this,`_doDispatchAxisPointer`)},e.prototype.doClear=function(){},e.prototype.buildLabel=function(e,t,n){return n||=0,{x:e[n],y:e[1-n],width:t[n],height:t[1-n]}},e}();function vB(e,t,n,r){yB(mB(n).lastProp,r)||(mB(n).lastProp=r,t?Qd(n,r,e):(n.stopAnimation(),n.attr(r)))}function yB(e,t){if(B(e)&&B(t)){var n=!0;return I(t,function(t,r){n&&=yB(e[r],t)}),!!n}return e===t}function bB(e,t){e[t.get([`label`,`show`])?`show`:`hide`]()}function xB(e){return{x:e.x||0,y:e.y||0,rotation:e.rotation||0}}function SB(e,t,n){var r=t.get(`z`),i=t.get(`zlevel`);e&&e.traverse(function(e){e.type!==`group`&&(r!=null&&(e.z=r),i!=null&&(e.zlevel=i),e.silent=n)})}function CB(e){var t=e.get(`type`),n=e.getModel(t+`Style`),r;return t===`line`?(r=n.getLineStyle(),r.fill=null):t===`shadow`&&(r=n.getAreaStyle(),r.stroke=null),r}function wB(e,t,n,r,i){var a=EB(n.get(`value`),t.axis,t.ecModel,n.get(`seriesDataIndices`),{precision:n.get([`label`,`precision`]),formatter:n.get([`label`,`formatter`])}),o=n.getModel(`label`),s=Gg(o.get(`padding`)||0),c=o.getFont(),l=wn(a,c),u=i.position,d=l.width+s[1]+s[3],f=l.height+s[0]+s[2],p=i.align;p===`right`&&(u[0]-=d),p===`center`&&(u[0]-=d/2);var m=i.verticalAlign;m===`bottom`&&(u[1]-=f),m===`middle`&&(u[1]-=f/2),TB(u,d,f,r);var h=o.get(`backgroundColor`);(!h||h===`auto`)&&(h=t.get([`axisLine`,`lineStyle`,`color`])),e.label={x:u[0],y:u[1],style:ap(o,{text:a,font:c,fill:o.getTextColor(),padding:s,backgroundColor:h}),z2:10}}function TB(e,t,n,r){var i=r.getWidth(),a=r.getHeight();e[0]=Math.min(e[0]+t,i)-t,e[1]=Math.min(e[1]+n,a)-n,e[0]=Math.max(e[0],0),e[1]=Math.max(e[1],0)}function EB(e,t,n,r,i){e=t.scale.parse(e);var a=t.scale.getLabel({value:e},{precision:i.precision}),o=i.formatter;if(o){var s={value:$y(t,{value:e}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};I(r,function(e){var t=n.getSeriesByIndex(e.seriesIndex),r=e.dataIndexInside,i=t&&t.getDataParams(r);i&&s.seriesData.push(i)}),z(o)?a=o.replace(`{value}`,a):ge(o)&&(a=o(s))}return a}function DB(e,t,n){var r=_t();return St(r,r,n.rotation),xt(r,r,n.position),wf([e.dataToCoord(t),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],r)}function OB(e,t,n,r,i,a){var o=Px.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=i.get([`label`,`margin`]),wB(t,r,i,a,{position:DB(r.axis,e,n),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function kB(e,t,n){return n||=0,{x1:e[n],y1:e[1-n],x2:t[n],y2:t[1-n]}}function AB(e,t,n){return n||=0,{x:e[n],y:e[1-n],width:t[n],height:t[1-n]}}function jB(e,t,n){return Yb(e,{fromStat:{sers:L(t,function(e){return n.getSeriesByIndex(e.seriesIndex)})},min:1}).w}function MB(e,t,n){return[bs(ys(t[0],t[1]),e-n/2),ys(e+n/2,bs(t[0],t[1]))]}var NB=function(e){p(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.makeElOption=function(e,t,n,r,i){var a=n.axis,o=a.grid,s=r.get(`type`),c=a.getGlobalExtent(),l=PB(o,a).getOtherAxis(a).getGlobalExtent(),u=a.toGlobalCoord(a.dataToCoord(t,!0));if(s&&s!==`none`){var d=CB(r),f=FB[s](a,u,c,l,r.get(`seriesDataIndices`),r.ecModel);f.style=d,e.graphicKey=f.type,e.pointer=f}OB(t,e,tS(o.getRect(),n),n,r,i)},t.prototype.getHandleTransform=function(e,t,n){var r=tS(t.axis.grid.getRect(),t,{labelInside:!1});r.labelMargin=n.get([`handle`,`margin`]);var i=DB(t.axis,e,r);return{x:i[0],y:i[1],rotation:r.rotation+(r.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,t,n,r){var i=n.axis,a=i.grid,o=i.getGlobalExtent(!0),s=PB(a,i).getOtherAxis(i).getGlobalExtent(),c=i.dim===`x`?0:1,l=[e.x,e.y];l[c]+=t[c],l[c]=ys(o[1],l[c]),l[c]=bs(o[0],l[c]);var u=(s[1]+s[0])/2,d=[u,u];return d[c]=l[c],{x:l[0],y:l[1],rotation:e.rotation,cursorPoint:d,tooltipOption:[{verticalAlign:`middle`},{align:`center`}][c]}},t}(_B);function PB(e,t){var n={};return n[t.dim+`AxisIndex`]=t.index,e.getCartesian(n)}var FB={line:function(e,t,n,r){return{type:`Line`,subPixelOptimize:!0,shape:kB([t,r[0]],[t,r[1]],IB(e))}},shadow:function(e,t,n,r,i,a){var o=jB(e,i,a),s=r[1]-r[0],c=MB(t,n,o),l=c[0],u=c[1];return{type:`Rect`,shape:AB([l,r[0]],[u-l,s],IB(e))}}};function IB(e){return e.dim===`x`?0:1}var LB=function(e){p(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type=`axisPointer`,t.defaultOption={show:`auto`,z:50,type:`line`,snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:H.color.border,width:1,type:`dashed`},shadowStyle:{color:H.color.shadowTint},label:{show:!0,formatter:null,precision:`auto`,margin:3,color:H.color.neutral00,padding:[5,7,5,7],backgroundColor:H.color.accent60,borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:`M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z`,size:45,margin:50,color:H.color.accent40,throttle:40}},t}(m_),RB=jc(),zB=I;function BB(e,t,n){if(!We.node){var r=t.getZr();RB(r).records||(RB(r).records={}),VB(r,t);var i=RB(r).records[e]||(RB(r).records[e]={});i.handler=n}}function VB(e,t){if(RB(e).initialized)return;RB(e).initialized=!0,n(`click`,he(WB,`click`)),n(`mousemove`,he(WB,`mousemove`)),n(`mousewheel`,he(WB,`mousewheel`)),n(`globalout`,UB);function n(n,r){e.on(n,function(n){var i=GB(t);zB(RB(e).records,function(e){e&&r(e,n,i.dispatchAction)}),HB(i.pendings,t)})}}function HB(e,t){var n=e.showTip.length,r=e.hideTip.length,i;n?i=e.showTip[n-1]:r&&(i=e.hideTip[r-1]),i&&(i.dispatchAction=null,t.dispatchAction(i))}function UB(e,t,n){e.handler(`leave`,null,n)}function WB(e,t,n,r){t.handler(e,n,r)}function GB(e){var t={showTip:[],hideTip:[]},n=function(r){var i=t[r.type];i?i.push(r):(r.dispatchAction=n,e.dispatchAction(r))};return{dispatchAction:n,pendings:t}}function KB(e,t){if(!We.node){var n=t.getZr();(RB(n).records||{})[e]&&(RB(n).records[e]=null)}}var qB=function(e){p(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(e,t,n){var r=t.getComponent(`tooltip`),i=e.get(`triggerOn`)||r&&r.get(`triggerOn`)||`mousemove|click|mousewheel`;BB(`axisPointer`,n,function(e,t,n){i!==`none`&&(e===`leave`||i.indexOf(e)>=0)&&n({type:`updateAxisPointer`,currTrigger:e,x:t&&t.offsetX,y:t&&t.offsetY})})},t.prototype.remove=function(e,t){KB(`axisPointer`,t)},t.prototype.dispose=function(e,t){KB(`axisPointer`,t)},t.type=`axisPointer`,t}($w);function JB(e,t){var n=[],r=e.seriesIndex,i;if(r==null||!(i=t.getSeriesByIndex(r)))return{point:[]};var a=i.getData(),o=Ac(a,e);if(o==null||o<0||R(o))return{point:[]};var s=a.getItemGraphicEl(o),c=i.coordinateSystem;if(i.getTooltipPosition)n=i.getTooltipPosition(o)||[];else if(c&&c.dataToPoint)if(e.isStacked){var l=c.getBaseAxis(),u=c.getOtherAxis(l).dim,d=l.dim,f=+(u===`x`||u===`radius`),p=a.mapDimension(d),m=[];m[f]=a.get(p,o),m[1-f]=a.get(a.getCalculationInfo(`stackResultDimension`),o),n=c.dataToPoint(m)||[]}else n=c.dataToPoint(a.getValues(L(c.dimensions,function(e){return a.mapDimension(e)}),o))||[];else if(s){var h=s.getBoundingRect().clone();h.applyTransform(s.transform),n=[h.x+h.width/2,h.y+h.height/2]}return{point:n,el:s}}var YB=jc();function XB(e,t,n){var r=e.currTrigger,i=[e.x,e.y],a=e,o=e.dispatchAction||me(n.dispatchAction,n),s=t.getComponent(`axisPointer`).coordSysAxesInfo;if(s){oV(i)&&(i=JB({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},t).point);var c=oV(i),l=a.axesInfo,u=s.axesInfo,d=r===`leave`||oV(i),f={},p={},m={list:[],map:{}},h={showPointer:he($B,p),showTooltip:he(eV,m)};I(s.coordSysMap,function(e,t){var n=c||e.containPoint(i);I(s.coordSysAxesInfo[t],function(e,t){var r=e.axis,a=iV(l,e);if(!d&&n&&(!l||a)){var o=a&&a.value;o==null&&!c&&(o=r.pointToData(i)),o!=null&&ZB(e,o,h,!1,f)}})});var g={};return I(u,function(e,t){var n=e.linkGroup;n&&!p[t]&&I(n.axesInfo,function(t,r){var i=p[r];if(t!==e&&i){var a=i.value;n.mapper&&(a=e.axis.scale.parse(n.mapper(a,aV(t),aV(e)))),g[e.key]=a}})}),I(g,function(e,t){ZB(u[t],e,h,!0,f)}),tV(p,u,f),nV(m,i,e,o),rV(u,o,n),f}}function ZB(e,t,n,r,i){var a=e.axis;if(!(a.scale.isBlank()||!a.containData(t))){if(!e.involveSeries){n.showPointer(e,t);return}var o=QB(t,e),s=o.payloadBatch,c=o.snapToValue;s[0]&&i.seriesIndex==null&&P(i,s[0]),!r&&e.snap&&a.containData(c)&&c!=null&&(t=c),n.showPointer(e,t,s),n.showTooltip(e,o,c)}}function QB(e,t){var n=t.axis,r=n.dim,i=e,a=[],o=Number.MAX_VALUE,s=-1;return I(t.seriesModels,function(t,c){var l=t.getData().mapDimensionsAll(r),u,d;if(t.getAxisTooltipData){var f=t.getAxisTooltipData(l,e,n);d=f.dataIndices,u=f.nestestValue}else{if(d=t.indicesOfNearest(r,l[0],e,n.type===`category`?.5:null),!d.length)return;u=t.getData().get(l[0],d[0])}if(tc(u)){var p=e-u,m=Math.abs(p);m<=o&&((m=0&&s<0)&&(o=m,s=p,i=u,a.length=0),I(d,function(e){a.push({seriesIndex:t.seriesIndex,dataIndexInside:e,dataIndex:t.getData().getRawIndex(e)})}))}}),{payloadBatch:a,snapToValue:i}}function $B(e,t,n,r){e[t.key]={value:n,payloadBatch:r}}function eV(e,t,n,r){var i=n.payloadBatch,a=t.axis,o=a.model,s=t.axisPointerModel;if(!(!t.triggerTooltip||!i.length)){var c=t.coordSys.model,l=pk(c),u=e.map[l];u||(u=e.map[l]={coordSysId:c.id,coordSysIndex:c.componentIndex,coordSysType:c.type,coordSysMainType:c.mainType,dataByAxis:[]},e.list.push(u)),u.dataByAxis.push({axisDim:a.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:r,valueLabelOpt:{precision:s.get([`label`,`precision`]),formatter:s.get([`label`,`formatter`])},seriesDataIndices:i.slice()})}}function tV(e,t,n){var r=n.axesInfo=[];I(t,function(t,n){var i=t.axisPointerModel.option,a=e[n];a?(!t.useHandle&&(i.status=`show`),i.value=a.value,i.seriesDataIndices=(a.payloadBatch||[]).slice()):!t.useHandle&&(i.status=`hide`),i.status===`show`&&r.push({axisDim:t.axis.dim,axisIndex:t.axis.model.componentIndex,value:i.value})})}function nV(e,t,n,r){if(oV(t)||!e.list.length){r({type:`hideTip`});return}var i=((e.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};r({type:`showTip`,escapeConnect:!0,x:t[0],y:t[1],tooltipOption:n.tooltipOption,position:n.position,dataIndexInside:i.dataIndexInside,dataIndex:i.dataIndex,seriesIndex:i.seriesIndex,dataByCoordSys:e.list})}function rV(e,t,n){var r=n.getZr(),i=`axisPointerLastHighlights`,a=YB(r)[i]||{},o=YB(r)[i]={};I(e,function(e,t){var n=e.axisPointerModel.option;n.status===`show`&&e.triggerEmphasis&&I(n.seriesDataIndices,function(e){o[e.seriesIndex+`|`+e.dataIndex]=e})});var s=[],c=[];function l(e){return{seriesIndex:e.seriesIndex,dataIndex:e.dataIndex}}I(a,function(e,t){!o[t]&&c.push(l(e))}),I(o,function(e,t){!a[t]&&s.push(l(e))}),c.length&&n.dispatchAction({type:`downplay`,escapeConnect:!0,notBlur:!0,batch:c}),s.length&&n.dispatchAction({type:`highlight`,escapeConnect:!0,notBlur:!0,batch:s})}function iV(e,t){for(var n=0;n<(e||[]).length;n++){var r=e[n];if(t.axis.dim===r.axisDim&&t.axis.model.componentIndex===r.axisIndex)return r}}function aV(e){var t=e.axis.model,n={},r=n.axisDim=e.axis.dim;return n.axisIndex=n[r+`AxisIndex`]=t.componentIndex,n.axisName=n[r+`AxisName`]=t.name,n.axisId=n[r+`AxisId`]=t.id,n}function oV(e){return!e||e[0]==null||isNaN(e[0])||e[1]==null||isNaN(e[1])}function sV(e){hk.registerAxisPointerClass(`CartesianAxisPointer`,NB),e.registerComponentModel(LB),e.registerComponentView(qB),e.registerPreprocessor(function(e){if(e){(!e.axisPointer||e.axisPointer.length===0)&&(e.axisPointer={});var t=e.axisPointer.link;t&&!R(t)&&(e.axisPointer.link=[t])}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,{overallReset:function(e,t){e.getComponent(`axisPointer`).coordSysAxesInfo=rk(e,t)}}),e.registerAction({type:`updateAxisPointer`,event:`updateAxisPointer`,update:`:updateAxisPointer`},XB)}function cV(e){bO(Ek),bO(sV)}function lV(e,t){var n=Gg(t.get(`padding`)),r=t.getItemStyle([`color`,`opacity`]);return r.fill=t.get(`backgroundColor`),new Zo({shape:{x:e.x-n[3],y:e.y-n[0],width:e.width+n[1]+n[3],height:e.height+n[0]+n[2],r:t.get(`borderRadius`)},style:r,silent:!0,z2:-1})}var uV=function(e){p(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type=`tooltip`,t.dependencies=[`axisPointer`],t.defaultOption={z:60,show:!0,showContent:!0,trigger:`item`,triggerOn:`mousemove|click|mousewheel`,alwaysShowContent:!1,renderMode:`auto`,confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,displayTransition:!0,enterable:!1,backgroundColor:H.color.neutral00,shadowBlur:10,shadowColor:`rgba(0, 0, 0, .2)`,shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,defaultBorderColor:H.color.border,padding:null,extraCssText:``,axisPointer:{type:`line`,axis:`auto`,animation:`auto`,animationDurationUpdate:200,animationEasingUpdate:`exponentialOut`,crossStyle:{color:H.color.borderShade,width:1,type:`dashed`,textStyle:{}}},textStyle:{color:H.color.tertiary,fontSize:14}},t}(m_);function dV(e){var t=e.get(`confine`);return t==null?e.get(`renderMode`)===`richText`:!!t}function fV(e){if(We.domSupported){for(var t=document.documentElement.style,n=0,r=e.length;n-1?(s+=`top:50%`,c+=`translateY(-50%) rotate(`+(l=a===`left`?-225:-45)+`deg)`):(s+=`left:50%`,c+=`translateX(-50%) rotate(`+(l=a===`top`?225:45)+`deg)`);var u=l*Math.PI/180,d=o+i,f=d*Math.abs(Math.cos(u))+d*Math.abs(Math.sin(u)),p=Math.round(((f-Math.SQRT2*i)/2+Math.SQRT2*i-(f-d)/2)*100)/100;s+=`;`+a+`:-`+p+`px`;var m=t+` solid `+i+`px;`;return`
`}function SV(e,t,n){var r=`cubic-bezier(0.23,1,0.32,1)`,i=``,a=``;return n&&(i=` `+e/2+`s `+r,a=`opacity`+i+`,visibility`+i),t||(i=` `+e+`s `+r,a+=(a.length?`,`:``)+(We.transformSupported?``+vV+i:`,left`+i+`,top`+i)),_V+`:`+a}function CV(e,t,n){var r=e.toFixed(0)+`px`,i=t.toFixed(0)+`px`;if(!We.transformSupported)return n?`top:`+i+`;left:`+r+`;`:[[`top`,i],[`left`,r]];var a=We.transform3dSupported,o=`translate`+(a?`3d`:``)+`(`+r+`,`+i+(a?`,0`:``)+`)`;return n?`top:0;left:0;`+vV+`:`+o+`;`:[[`top`,0],[`left`,0],[pV,o]]}function wV(e){var t=[],n=e.get(`fontSize`),r=e.getTextColor();r&&t.push(`color:`+r),t.push(`font:`+e.getFont());var i=V(e.get(`lineHeight`),Math.round(n*3/2));n&&t.push(`line-height:`+i+`px`);var a=e.get(`textShadowColor`),o=e.get(`textShadowBlur`)||0,s=e.get(`textShadowOffsetX`)||0,c=e.get(`textShadowOffsetY`)||0;return a&&o&&t.push(`text-shadow:`+s+`px `+c+`px `+o+`px `+a),I([`decoration`,`align`],function(n){var r=e.get(n);r&&t.push(`text-`+n+`:`+r)}),t.join(`;`)}function TV(e,t,n,r){var i=[],a=e.get(`transitionDuration`),o=e.get(`backgroundColor`),s=e.get(`shadowBlur`),c=e.get(`shadowColor`),l=e.get(`shadowOffsetX`),u=e.get(`shadowOffsetY`),d=e.getModel(`textStyle`),f=av(e,`html`),p=l+`px `+u+`px `+s+`px `+c;return i.push(`box-shadow:`+p),t&&a>0&&i.push(SV(a,n,r)),o&&i.push(`background-color:`+o),I([`width`,`color`,`radius`],function(t){var n=`border-`+t,r=Wg(n),a=e.get(r);a!=null&&i.push(n+`:`+a+(t===`color`?``:`px`))}),i.push(wV(d)),f!=null&&i.push(`padding:`+Gg(f).join(`px `)+`px`),i.join(`;`)+`;`}function EV(e,t,n,r,i){var a=t&&t.painter;if(n){var o=a&&a.getViewportRoot();o&&Fh(e,o,n,r,i)}else{e[0]=r,e[1]=i;var s=a&&a.getViewportRootOffset();s&&(e[0]+=s.offsetLeft,e[1]+=s.offsetTop)}e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var DV=function(){function e(e,t){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,We.wxa)return null;var n=document.createElement(`div`);n.domBelongToZr=!0,this.el=n;var r=this._zr=e.getZr(),i=t.appendTo,a=i&&(z(i)?document.querySelector(i):xe(i)?i:ge(i)&&i(e.getDom()));EV(this._styleCoord,r,a,e.getWidth()/2,e.getHeight()/2),(a||e.getDom()).appendChild(n),this._api=e,this._container=a;var o=this;n.onmouseenter=function(){o._enterable&&(clearTimeout(o._hideTimeout),o._show=!0),o._inContent=!0},n.onmousemove=function(e){if(e||=window.event,!o._enterable){var t=r.handler;US(r.painter.getViewportRoot(),e,!0),t.dispatch(`mousemove`,e)}},n.onmouseleave=function(){o._inContent=!1,o._enterable&&o._show&&o.hideLater(o._hideDelay)}}return e.prototype.update=function(e){if(!this._container){var t=this._api.getDom(),n=gV(t,`position`),r=t.style;r.position!==`absolute`&&n!==`absolute`&&(r.position=`relative`)}var i=e.get(`alwaysShowContent`);i&&this._moveIfResized(),this._alwaysShowContent=i,this._enableDisplayTransition=e.get(`displayTransition`)&&e.get(`transitionDuration`)>0,this.el.className=e.get(`className`)||``},e.prototype.show=function(e,t){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,r=n.style,i=this._styleCoord;n.innerHTML?r.cssText=yV+TV(e,!this._firstShow,this._longHide,this._enableDisplayTransition)+CV(i[0],i[1],!0)+(`border-color:`+Zg(t)+`;`)+(e.get(`extraCssText`)||``)+(`;pointer-events:`+(this._enterable?`auto`:`none`)):r.display=`none`,this._show=!0,this._firstShow=!1,this._longHide=!1},e.prototype.setContent=function(e,t,n,r,i){var a=this.el;if(e==null){a.innerHTML=``;return}var o=``;if(z(i)&&n.get(`trigger`)===`item`&&!dV(n)&&(o=xV(n,r,i)),z(e))a.innerHTML=e+o;else if(e){a.innerHTML=``,R(e)||(e=[e]);for(var s=0;s=0?this._tryShow(n,r):t===`leave`&&this._hide(r))},this))},t.prototype._keepShow=function(){var e=this._tooltipModel,t=this._ecModel,n=this._api,r=e.get(`triggerOn`);if(e.get(`trigger`)!==`axis`&&(this._lastDataByCoordSys=null,this._cbParamsList=null),this._lastX!=null&&this._lastY!=null&&r!==`none`&&r!==`click`){var i=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!n.isDisposed()&&i.manuallyShowTip(e,t,n,{x:i._lastX,y:i._lastY,dataByCoordSys:i._lastDataByCoordSys})})}},t.prototype.manuallyShowTip=function(e,t,n,r){if(!(r.from===this.uid||We.node||!n.getDom())){var i=FV(r,n);this._ticket=``;var a=r.dataByCoordSys,o=zV(r,t,n);if(o){var s=o.el.getBoundingRect().clone();s.applyTransform(o.el.transform),this._tryShow({offsetX:s.x+s.width/2,offsetY:s.y+s.height/2,target:o.el,position:r.position,positionDefault:`bottom`},i)}else if(r.tooltip&&r.x!=null&&r.y!=null){var c=MV;c.x=r.x,c.y=r.y,c.update(),ol(c).tooltipConfig={name:null,option:r.tooltip},this._tryShow({offsetX:r.x,offsetY:r.y,target:c},i)}else if(a)this._tryShow({offsetX:r.x,offsetY:r.y,position:r.position,dataByCoordSys:a,tooltipOption:r.tooltipOption},i);else if(r.seriesIndex!=null){if(this._manuallyAxisShowTip(e,t,n,r))return;var l=JB(r,t),u=l.point[0],d=l.point[1];u!=null&&d!=null&&this._tryShow({offsetX:u,offsetY:d,target:l.el,position:r.position,positionDefault:`bottom`},i)}else r.x!=null&&r.y!=null&&(n.dispatchAction({type:`updateAxisPointer`,x:r.x,y:r.y}),this._tryShow({offsetX:r.x,offsetY:r.y,position:r.position,target:n.getZr().findHover(r.x,r.y).target},i))}},t.prototype.manuallyHideTip=function(e,t,n,r){var i=this._tooltipContent;this._tooltipModel&&i.hideLater(this._tooltipModel.get(`hideDelay`)),this._lastX=this._lastY=this._lastDataByCoordSys=null,this._cbParamsList=null,r.from!==this.uid&&this._hide(FV(r,n))},t.prototype._manuallyAxisShowTip=function(e,t,n,r){var i=r.seriesIndex,a=r.dataIndex,o=t.getComponent(`axisPointer`).coordSysAxesInfo;if(i!=null&&a!=null&&o!=null){var s=t.getSeriesByIndex(i);if(s&&PV([s.getData().getItemModel(a),s,(s.coordinateSystem||{}).model],this._tooltipModel).get(`trigger`)===`axis`)return n.dispatchAction({type:`updateAxisPointer`,seriesIndex:i,dataIndex:a,position:r.position}),!0}},t.prototype._tryShow=function(e,t){var n=e.target;if(this._tooltipModel){this._lastX=e.offsetX,this._lastY=e.offsetY;var r=e.dataByCoordSys;if(r&&r.length)this._showAxisTooltip(r,e);else if(n){if(ol(n).ssrType===`legend`)return;this._lastDataByCoordSys=null,this._cbParamsList=null;var i,a;RT(n,function(e){if(e.tooltipDisabled)return i=a=null,!0;i||a||(ol(e).dataIndex==null?ol(e).tooltipConfig!=null&&(a=e):i=e)},!0),i?this._showSeriesItemTooltip(e,i,t):a?this._showComponentItemTooltip(e,a,t):this._hide(t)}else this._lastDataByCoordSys=null,this._cbParamsList=null,this._hide(t)}},t.prototype._showOrMove=function(e,t){var n=e.get(`showDelay`);t=me(t,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(t,n):t()},t.prototype._showAxisTooltip=function(e,t){var n=this._ecModel,r=this._tooltipModel,i=[t.offsetX,t.offsetY],a=PV([t.tooltipOption],r),o=this._renderMode,s=[],c=G_(`section`,{blocks:[],noHeader:!0}),l=[],u=new ov;I(e,function(e){I(e.dataByAxis,function(e){var t=n.getComponent(e.axisDim+`Axis`,e.axisIndex),i=e.value,a=t.axis,d=a.scale.parse(i);if(!(!t||i==null)){var f=EB(i,a,n,e.seriesDataIndices,e.valueLabelOpt),p=G_(`section`,{header:f,noHeader:!ke(f),sortBlocks:!0,blocks:[]});c.blocks.push(p),I(e.seriesDataIndices,function(i){var a=n.getSeriesByIndex(i.seriesIndex),c=i.dataIndexInside,m=a.getDataParams(c);if(!(m.dataIndex<0)){m.axisDim=e.axisDim,m.axisIndex=e.axisIndex,m.axisType=e.axisType,m.axisId=e.axisId,m.axisValue=$y(t.axis,{value:d}),m.axisValueLabel=f,m.marker=u.makeTooltipMarker(`item`,Zg(m.color),o);var h=T_(a.formatTooltip(c,!0,null)),g=h.frag;if(g){var _=PV([a],r).get(`valueFormatter`);p.blocks.push(_?P({valueFormatter:_},g):g)}h.text&&l.push(h.text),s.push(m)}})}})}),c.blocks.reverse(),l.reverse();var d=t.position,f=Z_(c,u,o,a.get(`order`),n.get(`useUTC`),a.get(`textStyle`));f&&l.unshift(f);var p=o===`richText`?` - -`:`
`,m=l.join(p);this._showOrMove(a,function(){this._updateContentNotChangedOnAxis(e,s)?this._updatePosition(a,d,i[0],i[1],this._tooltipContent,s):this._showTooltipContent(a,m,s,Math.random()+``,i[0],i[1],d,null,u)})},t.prototype._showSeriesItemTooltip=function(e,t,n){var r=this._ecModel,i=ol(t),a=i.seriesIndex,o=r.getSeriesByIndex(a),s=i.dataModel||o,c=i.dataIndex,l=i.dataType,u=s.getData(l),d=this._renderMode,f=e.positionDefault,p=PV([u.getItemModel(c),s,o&&(o.coordinateSystem||{}).model],this._tooltipModel,f?{position:f}:null),m=p.get(`trigger`);if(m==null||m===`item`){var h=s.getDataParams(c,l),g=new ov;h.marker=g.makeTooltipMarker(`item`,Zg(h.color),d);var _=T_(s.formatTooltip(c,!1,l)),v=p.get(`order`),y=p.get(`valueFormatter`),b=_.frag,x=b?Z_(y?P({valueFormatter:y},b):b,g,d,v,r.get(`useUTC`),p.get(`textStyle`)):_.text,S=`item_`+s.name+`_`+c;this._showOrMove(p,function(){this._showTooltipContent(p,x,h,S,e.offsetX,e.offsetY,e.position,e.target,g)}),n({type:`showTip`,dataIndexInside:c,dataIndex:u.getRawIndex(c),seriesIndex:a,from:this.uid})}},t.prototype._showComponentItemTooltip=function(e,t,n){var r=this._renderMode===`html`,i=ol(t),a=i.tooltipConfig.option||{},o=a.encodeHTMLContent;if(z(a)){var s=a;a={content:s,formatter:s},o=!0}o&&r&&a.content&&(a=M(a),a.content=Uh(a.content));var c=[a],l=this._ecModel.getComponent(i.componentMainType,i.componentIndex);l&&c.push(l),c.push({formatter:a.content});var u=e.positionDefault,d=PV(c,this._tooltipModel,u?{position:u}:null),f=d.get(`content`),p=Math.random()+``,m=new ov;this._showOrMove(d,function(){var n=M(d.get(`formatterParams`)||{});this._showTooltipContent(d,f,n,p,e.offsetX,e.offsetY,e.position,t,m)}),n({type:`showTip`,from:this.uid})},t.prototype._showTooltipContent=function(e,t,n,r,i,a,o,s,c){if(this._ticket=``,!(!e.get(`showContent`)||!e.get(`show`))){var l=this._tooltipContent;l.setEnterable(e.get(`enterable`));var u=e.get(`formatter`);o||=e.get(`position`);var d=t,f=this._getNearestPoint([i,a],n,e.get(`trigger`),e.get(`borderColor`),e.get(`defaultBorderColor`,!0)).color;if(u)if(z(u)){var p=e.ecModel.get(`useUTC`),m=R(n)?n[0]:n,h=m&&m.axisType&&m.axisType.indexOf(`time`)>=0;d=u,h&&(d=Tg(m.axisValue,d,p)),d=Yg(d,n,!0)}else if(ge(u)){var g=me(function(t,r){t===this._ticket&&(l.setContent(r,c,e,f,o),this._updatePosition(e,o,i,a,l,n,s))},this);this._ticket=r,d=u(n,r,g)}else d=u;l.setContent(d,c,e,f,o),l.show(e,f),this._updatePosition(e,o,i,a,l,n,s)}},t.prototype._getNearestPoint=function(e,t,n,r,i){if(n===`axis`||R(t))return{color:r||i};if(!R(t))return{color:r||t.color||t.borderColor}},t.prototype._updatePosition=function(e,t,n,r,i,a,o){var s=this._api.getWidth(),c=this._api.getHeight();t||=e.get(`position`);var l=i.getSize(),u=e.get(`align`),d=e.get(`verticalAlign`),f=o&&o.getBoundingRect().clone();if(o&&f.applyTransform(o.transform),ge(t)&&(t=t([n,r],a,i.el,f,{viewSize:[s,c],contentSize:l.slice()})),R(t))n=js(t[0],s),r=js(t[1],c);else if(B(t)){var p=t;p.width=l[0],p.height=l[1];var m=i_(p,{width:s,height:c});n=m.x,r=m.y,u=null,d=null}else if(z(t)&&o){var h=uee(t,f,l,e.get(`borderWidth`));n=h[0],r=h[1]}else{var h=IV(n,r,i,s,c,u?null:20,d?null:20);n=h[0],r=h[1]}if(u&&(n-=RV(u)?l[0]/2:u===`right`?l[0]:0),d&&(r-=RV(d)?l[1]/2:d===`bottom`?l[1]:0),dV(e)){var h=LV(n,r,i,s,c);n=h[0],r=h[1]}i.moveTo(n,r)},t.prototype._updateContentNotChangedOnAxis=function(e,t){var n=this._lastDataByCoordSys,r=this._cbParamsList,i=!!n&&n.length===e.length;return i&&I(n,function(n,a){var o=n.dataByAxis||[],s=(e[a]||{}).dataByAxis||[];i&&=o.length===s.length,i&&I(o,function(e,n){var a=s[n]||{},o=e.seriesDataIndices||[],c=a.seriesDataIndices||[];i=i&&e.value===a.value&&e.axisType===a.axisType&&e.axisId===a.axisId&&o.length===c.length,i&&I(o,function(e,t){var n=c[t];i=i&&e.seriesIndex===n.seriesIndex&&e.dataIndex===n.dataIndex}),r&&I(e.seriesDataIndices,function(e){var n=e.seriesIndex,a=t[n],o=r[n];a&&o&&o.data!==a.data&&(i=!1)})})}),this._lastDataByCoordSys=e,this._cbParamsList=t,!!i},t.prototype._hide=function(e){this._lastDataByCoordSys=null,this._cbParamsList=null,e({type:`hideTip`,from:this.uid})},t.prototype.dispose=function(e,t){We.node||!t.getDom()||(jS(this,`_updatePosition`),this._tooltipContent.dispose(),KB(`itemTooltip`,t),this._tooltipContent=null,this._tooltipModel=null,this._lastDataByCoordSys=null,this._cbParamsList=null)},t.type=`tooltip`,t}($w);function PV(e,t,n){var r=t.ecModel,i;n?(i=new Ep(n,r,r),i=new Ep(t.option,i,r)):i=t;for(var a=e.length-1;a>=0;a--){var o=e[a];o&&(o instanceof Ep&&(o=o.get(`tooltip`,!0)),z(o)&&(o={formatter:o}),o&&(i=new Ep(o,i,r)))}return i}function FV(e,t){return e.dispatchAction||me(t.dispatchAction,t)}function IV(e,t,n,r,i,a,o){var s=n.getSize(),c=s[0],l=s[1];return a!=null&&(e+c+a+2>r?e-=c+a:e+=a),o!=null&&(t+l+o>i?t-=l+o:t+=o),[e,t]}function LV(e,t,n,r,i){var a=n.getSize(),o=a[0],s=a[1];return e=Math.min(e+o,r)-o,t=Math.min(t+s,i)-s,e=Math.max(e,0),t=Math.max(t,0),[e,t]}function uee(e,t,n,r){var i=n[0],a=n[1],o=Math.ceil(Math.SQRT2*r)+8,s=0,c=0,l=t.width,u=t.height;switch(e){case`inside`:s=t.x+l/2-i/2,c=t.y+u/2-a/2;break;case`top`:s=t.x+l/2-i/2,c=t.y-a-o;break;case`bottom`:s=t.x+l/2-i/2,c=t.y+u+o;break;case`left`:s=t.x-i-o,c=t.y+u/2-a/2;break;case`right`:s=t.x+l+o,c=t.y+u/2-a/2}return[s,c]}function RV(e){return e===`center`||e===`middle`}function zV(e,t,n){var r=Pc(e).queryOptionMap,i=r.keys()[0];if(!(!i||i===`series`)){var a=Ic(t,i,r.get(i),{useDefault:!1,enableAll:!1,enableNone:!1}).models[0];if(a){var o=n.getViewOfComponentModel(a),s;if(o.group.traverse(function(t){var n=ol(t).tooltipConfig;if(n&&n.name===e.name)return s=t,!0}),s)return{componentMainType:i,componentIndex:a.componentIndex,el:s}}}}function BV(e){bO(sV),e.registerComponentModel(uV),e.registerComponentView(NV),e.registerAction({type:`showTip`,event:`showTip`,update:`tooltip:manuallyShowTip`},Ve),e.registerAction({type:`hideTip`,event:`hideTip`,update:`tooltip:manuallyHideTip`},Ve)}var VV=I;function HV(e){if(e){for(var t in e)if(e.hasOwnProperty(t))return!0}}function UV(e,t,n){var r={};return VV(t,function(t){var a=r[t]=i();VV(e[t],function(e,r){if(tj.isValidType(r)){var i={type:r,visual:e};n&&n(i,t),a[r]=new tj(i),r===`opacity`&&(i=M(i),i.type=`colorAlpha`,a.__hidden.__alphaForOpacity=new tj(i))}})}),r;function i(){var e=function(){};return e.prototype.__hidden=e.prototype,new e}}function WV(e,t,n){var r;I(n,function(e){t.hasOwnProperty(e)&&HV(t[e])&&(r=!0)}),r&&I(n,function(n){t.hasOwnProperty(n)&&HV(t[n])?e[n]=M(t[n]):delete e[n]})}function GV(e,t,n,r){var i={};return I(e,function(e){i[e]=tj.prepareVisualTypes(t[e])}),{progress:function(e,a){var o;r!=null&&(o=a.getDimensionIndex(r));function s(e){return FT(a,l,e)}function c(e,t){LT(a,l,e,t)}for(var l,u=a.getStore();(l=e.next())!=null;){var d=a.getRawDataItem(l);if(!(d&&d.visualMap===!1))for(var f=r==null?l:u.get(o,l),p=n(f),m=t[p],h=i[p],g=0,_=h.length;g<_;g++){var v=h[g];m[v]&&m[v].applyVisual(f,s,c)}}}}}var KV=function(e,t){if(t===`all`)return{type:`all`,title:e.getLocaleModel().get([`legend`,`selector`,`all`])};if(t===`inverse`)return{type:`inverse`,title:e.getLocaleModel().get([`legend`,`selector`,`inverse`])}},qV=function(e){p(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.layoutMode={type:`box`,ignoreSize:!0},n}return t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n),e.selected=e.selected||{},this._updateSelector(e)},t.prototype.mergeOption=function(t,n){e.prototype.mergeOption.call(this,t,n),this._updateSelector(t)},t.prototype._updateSelector=function(e){var t=e.selector,n=this.ecModel;t===!0&&(t=e.selector=[`all`,`inverse`]),R(t)&&I(t,function(e,r){z(e)&&(e={type:e}),t[r]=N(e,KV(n,e.type))})},t.prototype.optionUpdated=function(){this._updateData(this.ecModel);var e=this._data;if(e[0]&&this.get(`selectedMode`)===`single`){for(var t=!1,n=0;n=0},t.prototype.getOrient=function(){return this.get(`orient`)===`vertical`?{index:1,name:`vertical`}:{index:0,name:`horizontal`}},t.type=`legend.plain`,t.dependencies=[`series`],t.defaultOption={z:4,show:!0,orient:`horizontal`,left:`center`,bottom:H.size.m,align:`auto`,backgroundColor:H.color.transparent,borderColor:H.color.border,borderRadius:0,borderWidth:0,padding:5,itemGap:8,itemWidth:25,itemHeight:14,symbolRotate:`inherit`,symbolKeepAspect:!0,inactiveColor:H.color.disabled,inactiveBorderColor:H.color.disabled,inactiveBorderWidth:`auto`,itemStyle:{color:`inherit`,opacity:`inherit`,borderColor:`inherit`,borderWidth:`auto`,borderCap:`inherit`,borderJoin:`inherit`,borderDashOffset:`inherit`,borderMiterLimit:`inherit`},lineStyle:{width:`auto`,color:`inherit`,inactiveColor:H.color.disabled,inactiveWidth:2,opacity:`inherit`,type:`inherit`,cap:`inherit`,join:`inherit`,dashOffset:`inherit`,miterLimit:`inherit`},textStyle:{color:H.color.secondary},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:`sans-serif`,color:H.color.tertiary,borderWidth:1,borderColor:H.color.border},emphasis:{selectorLabel:{show:!0,color:H.color.quaternary}},selectorPosition:`auto`,selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1},triggerEvent:!1},t}(m_),JV=he,YV=I,XV=Yu,ZV=function(e){p(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.newlineDisabled=!1,n}return t.prototype.init=function(){this.group.add(this._contentGroup=new XV),this.group.add(this._selectorGroup=new XV),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(e,t,n){var r=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),e.get(`show`,!0)){var i=e.get(`align`),a=e.get(`orient`);(!i||i===`auto`)&&(i=e.get(`left`)===`right`&&a===`vertical`?`right`:`left`);var o=e.get(`selector`,!0),s=e.get(`selectorPosition`,!0);o&&(!s||s===`auto`)&&(s=a===`horizontal`?`end`:`start`),this.renderInner(i,e,t,n,o,a,s);var c=s_(e,n).refContainer,l=e.getBoxLayoutParams(),u=e.get(`padding`),d=i_(l,c,u),f=this.layoutInner(e,i,d,r,o,s),p=i_(F({width:f.width,height:f.height},l),c,u);this.group.x=p.x-f.x,this.group.y=p.y-f.y,this.group.markRedraw(),this.group.add(this._backgroundEl=lV(f,e))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(e,t,n,r,i,a,o){var s=this.getContentGroup(),c=Le(),l=t.get(`selectedMode`),u=t.get(`triggerEvent`),d=[];n.eachRawSeries(function(e){!e.get(`legendHoverLink`)&&d.push(e.id)}),YV(t.getData(),function(i,a){var o=this,f=i.get(`name`);if(!this.newlineDisabled&&(f===``||f===` -`)){var p=new XV;p.newline=!0,s.add(p);return}var m=n.getSeriesByName(f)[0];if(!c.get(f))if(m){var h=m.getData(),g=h.getVisual(`legendLineStyle`)||{},_=h.getVisual(`legendIcon`),v=h.getVisual(`style`),y=this._createItem(m,f,a,i,t,e,g,v,_,l,r);y.on(`click`,JV(eH,f,null,r,d)).on(`mouseover`,JV(tH,m.name,null,r,d)).on(`mouseout`,JV(nH,m.name,null,r,d)),n.ssr&&y.eachChild(function(e){var t=ol(e);t.seriesIndex=m.seriesIndex,t.dataIndex=a,t.ssrType=`legend`}),u&&y.eachChild(function(e){o.packEventData(e,t,m,a,f)}),c.set(f,!0)}else n.eachRawSeries(function(o){var s=this;if(!c.get(f)&&o.legendVisualProvider){var p=o.legendVisualProvider;if(!p.containName(f))return;var m=p.indexOfName(f),h=p.getItemVisual(m,`style`),g=p.getItemVisual(m,`legendIcon`),_=Qr(h.fill);_&&_[3]===0&&(_[3]=.2,h=P(P({},h),{fill:ai(_,`rgba`)}));var v=this._createItem(o,f,a,i,t,e,{},h,g,l,r);v.on(`click`,JV(eH,null,f,r,d)).on(`mouseover`,JV(tH,null,f,r,d)).on(`mouseout`,JV(nH,null,f,r,d)),n.ssr&&v.eachChild(function(e){var t=ol(e);t.seriesIndex=o.seriesIndex,t.dataIndex=a,t.ssrType=`legend`}),u&&v.eachChild(function(e){s.packEventData(e,t,o,a,f)}),c.set(f,!0)}},this)},this),i&&this._createSelector(i,t,r,a,o)},t.prototype.packEventData=function(e,t,n,r,i){var a={componentType:`legend`,componentIndex:t.componentIndex,dataIndex:r,value:i,seriesIndex:n.seriesIndex};ol(e).eventData=a},t.prototype._createSelector=function(e,t,n,r,i){var a=this.getSelectorGroup();YV(e,function(e){var r=e.type,i=new ns({style:{x:0,y:0,align:`center`,verticalAlign:`middle`},onclick:function(){n.dispatchAction({type:r===`all`?`legendAllSelect`:`legendInverseSelect`,legendId:t.id})}});a.add(i),rp(i,{normal:t.getModel(`selectorLabel`),emphasis:t.getModel([`emphasis`,`selectorLabel`])},{defaultText:e.title}),mu(i)})},t.prototype._createItem=function(e,t,n,r,i,a,o,s,c,l,u){var d=e.visualDrawType,f=i.get(`itemWidth`),p=i.get(`itemHeight`),m=i.isSelected(t),h=r.get(`symbolRotate`),g=r.get(`symbolKeepAspect`),_=r.get(`icon`);c=_||c||`roundRect`;var v=QV(c,r,o,s,d,m,u),y=new XV,b=r.getModel(`textStyle`);if(ge(e.getLegendIcon)&&(!_||_===`inherit`))y.add(e.getLegendIcon({itemWidth:f,itemHeight:p,icon:c,iconRotate:h,itemStyle:v.itemStyle,lineStyle:v.lineStyle,symbolKeepAspect:g}));else{var x=_===`inherit`&&e.getData().getVisual(`symbol`)?h===`inherit`?e.getData().getVisual(`symbolRotate`):h:0;y.add($V({itemWidth:f,itemHeight:p,icon:c,iconRotate:x,itemStyle:v.itemStyle,lineStyle:v.lineStyle,symbolKeepAspect:g}))}var S=a===`left`?f+5:-5,C=a,w=i.get(`formatter`),T=t;z(w)&&w?T=w.replace(`{name}`,t??``):ge(w)&&(T=w(t));var E=m?b.getTextColor():r.get(`inactiveColor`);y.add(new ns({style:ap(b,{text:T,x:S,y:p/2,fill:E,align:C,verticalAlign:`middle`},{inheritColor:E})}));var D=new Zo({shape:y.getBoundingRect(),style:{fill:`transparent`}}),O=r.getModel(`tooltip`);return O.get(`show`)&&zf({el:D,componentModel:i,itemName:t,itemTooltipOption:O.option}),y.add(D),y.eachChild(function(e){e.silent=!0}),D.silent=!l,this.getContentGroup().add(y),mu(y),y.__legendDataIndex=n,y},t.prototype.layoutInner=function(e,t,n,r,i,a){var o=this.getContentGroup(),s=this.getSelectorGroup();n_(e.get(`orient`),o,e.get(`itemGap`),n.width,n.height);var c=o.getBoundingRect(),l=[-c.x,-c.y];if(s.markRedraw(),o.markRedraw(),i){n_(`horizontal`,s,e.get(`selectorItemGap`,!0));var u=s.getBoundingRect(),d=[-u.x,-u.y],f=e.get(`selectorButtonGap`,!0),p=e.getOrient().index,m=p===0?`width`:`height`,h=p===0?`height`:`width`,g=p===0?`y`:`x`;a===`end`?d[p]+=c[m]+f:l[p]+=u[m]+f,d[1-p]+=c[h]/2-u[h]/2,s.x=d[0],s.y=d[1],o.x=l[0],o.y=l[1];var _={x:0,y:0};return _[m]=c[m]+f+u[m],_[h]=Math.max(c[h],u[h]),_[g]=Math.min(0,u[g]+d[1-p]),_}return o.x=l[0],o.y=l[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type=`legend.plain`,t}($w);function QV(e,t,n,r,i,a,o){function s(e,t){e.lineWidth===`auto`&&(e.lineWidth=t.lineWidth>0?2:0),YV(e,function(n,r){e[r]===`inherit`&&(e[r]=t[r])})}var c=t.getModel(`itemStyle`),l=c.getItemStyle(),u=e.lastIndexOf(`empty`,0)===0?`fill`:`stroke`,d=c.getShallow(`decal`);l.decal=!d||d===`inherit`?r.decal:PE(d,o),l.fill===`inherit`&&(l.fill=r[i]),l.stroke===`inherit`&&(l.stroke=r[u]),l.opacity===`inherit`&&(l.opacity=(i===`fill`?r:n).opacity),s(l,r);var f=t.getModel(`lineStyle`),p=f.getLineStyle();if(s(p,n),l.fill===`auto`&&(l.fill=r.fill),l.stroke===`auto`&&(l.stroke=r.fill),p.stroke===`auto`&&(p.stroke=r.fill),!a){var m=t.get(`inactiveBorderWidth`),h=l[u];l.lineWidth=m===`auto`?r.lineWidth>0&&h?2:0:l.lineWidth,l.fill=t.get(`inactiveColor`),l.stroke=t.get(`inactiveBorderColor`),p.stroke=f.get(`inactiveColor`),p.lineWidth=f.get(`inactiveWidth`)}return{itemStyle:l,lineStyle:p}}function $V(e){var t=e.icon||`roundRect`,n=Ev(t,0,0,e.itemWidth,e.itemHeight,e.itemStyle.fill,e.symbolKeepAspect);return n.setStyle(e.itemStyle),n.rotation=(e.iconRotate||0)*Math.PI/180,n.setOrigin([e.itemWidth/2,e.itemHeight/2]),t.indexOf(`empty`)>-1&&(n.style.stroke=n.style.fill,n.style.fill=H.color.neutral00,n.style.lineWidth=2),n}function eH(e,t,n,r){nH(e,t,n,r),n.dispatchAction({type:`legendToggleSelect`,name:e??t}),tH(e,t,n,r)}function tH(e,t,n,r){n.usingTHL()||n.dispatchAction({type:`highlight`,seriesName:e,name:t,excludeSeriesId:r})}function nH(e,t,n,r){n.usingTHL()||n.dispatchAction({type:`downplay`,seriesName:e,name:t,excludeSeriesId:r})}function rH(e,t,n){var r=e===`allSelect`||e===`inverseSelect`,i={},a=[];n.eachComponent({mainType:`legend`,query:t},function(n){r?n[e]():n[e](t.name),iH(n,i),a.push(n.componentIndex)});var o={};return n.eachComponent(`legend`,function(e){I(i,function(t,n){e[t?`select`:`unSelect`](n)}),iH(e,o)}),r?{selected:o,legendIndex:a}:{name:t.name,selected:o}}function iH(e,t){var n=t||{};return I(e.getData(),function(t){var r=t.get(`name`);if(r!==` -`&&r!==``){var i=e.isSelected(r);n[r]=Be(n,r)?n[r]&&i:i}}),n}function aH(e){e.registerAction(`legendToggleSelect`,`legendselectchanged`,he(rH,`toggleSelected`)),e.registerAction(`legendAllSelect`,`legendselectall`,he(rH,`allSelect`)),e.registerAction(`legendInverseSelect`,`legendinverseselect`,he(rH,`inverseSelect`)),e.registerAction(`legendSelect`,`legendselected`,he(rH,`select`)),e.registerAction(`legendUnSelect`,`legendunselected`,he(rH,`unSelect`))}var oH=al(sH);function sH(e){var t=e.findComponents({mainType:`legend`});t&&t.length&&e.filterSeries(function(e){for(var n=0;nn[i],m=[-d.x,-d.y];t||(m[r]=c[s]);var h=[0,0],g=[-f.x,-f.y],_=V(e.get(`pageButtonGap`,!0),e.get(`itemGap`,!0));p&&(e.get(`pageButtonPosition`,!0)===`end`?g[r]+=n[i]-f[i]:h[r]+=f[i]+_),g[1-r]+=d[a]/2-f[a]/2,c.setPosition(m),l.setPosition(h),u.setPosition(g);var v={x:0,y:0};if(v[i]=p?n[i]:d[i],v[a]=Math.max(d[a],f[a]),v[o]=Math.min(0,f[o]+g[1-r]),l.__rectSize=n[i],p){var y={x:0,y:0};y[i]=Math.max(n[i]-f[i]-_,0),y[a]=v[a],l.setClipPath(new Zo({shape:y})),l.__rectSize=y[i]}else u.eachChild(function(e){e.attr({invisible:!0,silent:!0})});var b=this._getPageInfo(e);return b.pageIndex!=null&&Qd(c,{x:b.contentPosition[0],y:b.contentPosition[1]},p?e:null),this._updatePageInfoView(e,b),v},t.prototype._pageGo=function(e,t,n){var r=this._getPageInfo(t)[e];r!=null&&n.dispatchAction({type:`legendScroll`,scrollDataIndex:r,legendId:t.id})},t.prototype._updatePageInfoView=function(e,t){var n=this._controllerGroup;I([`pagePrev`,`pageNext`],function(r){var i=t[r+`DataIndex`]!=null,a=n.childOfName(r);a&&(a.setStyle(`fill`,i?e.get(`pageIconColor`,!0):e.get(`pageIconInactiveColor`,!0)),a.cursor=i?`pointer`:`default`)});var r=n.childOfName(`pageText`),i=e.get(`pageFormatter`),a=t.pageIndex,o=a==null?0:a+1,s=t.pageCount;r&&i&&r.setStyle(`text`,z(i)?i.replace(`{current}`,o==null?``:o+``).replace(`{total}`,s==null?``:s+``):i({current:o,total:s}))},t.prototype._getPageInfo=function(e){var t=e.get(`scrollDataIndex`,!0),n=this.getContentGroup(),r=this._containerGroup.__rectSize,i=e.getOrient().index,a=fH[i],o=pH[i],s=this._findTargetItemIndex(t),c=n.children(),l=c[s],u=c.length,d=+!!u,f={contentPosition:[n.x,n.y],pageCount:d,pageIndex:d-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!l)return f;var p=v(l);f.contentPosition[i]=-p.s;for(var m=s+1,h=p,g=p,_=null;m<=u;++m)_=v(c[m]),(!_&&g.e>h.s+r||_&&!y(_,h.s))&&(h=g.i>h.i?g:_,h&&(f.pageNextDataIndex??=h.i,++f.pageCount)),g=_;for(var m=s-1,h=p,g=p,_=null;m>=-1;--m)_=v(c[m]),(!_||!y(g,_.s))&&h.i=t&&e.s<=t+r}},t.prototype._findTargetItemIndex=function(e){if(!this._showController)return 0;var t,n=this.getContentGroup(),r;return n.eachChild(function(n,i){var a=n.__legendDataIndex;r==null&&a!=null&&(r=i),a===e&&(t=i)}),t??r},t.type=`legend.scroll`,t}(ZV);function hH(e){e.registerAction(`legendScroll`,`legendscroll`,function(e,t){var n=e.scrollDataIndex;n!=null&&t.eachComponent({mainType:`legend`,subType:`scroll`,query:e},function(e){e.setScrollDataIndex(n)})})}function gH(e){bO(cH),e.registerComponentModel(lH),e.registerComponentView(mH),hH(e)}function _H(e){bO(cH),bO(gH)}var vH={get:function(e,t,n){var r=M((yH[e]||{})[t]);return n&&R(r)?r[r.length-1]:r}},yH={color:{active:[`#006edd`,`#e0ffff`],inactive:[H.color.transparent]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:[`circle`,`roundRect`,`diamond`],inactive:[`none`]},symbolSize:{active:[10,50],inactive:[0,0]}},bH=tj.mapVisual,xH=tj.eachVisual,SH=R,CH=I,wH=Ls,TH=As,EH=function(e){p(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.stateList=[`inRange`,`outOfRange`],n.replacableOptionKeys=[`inRange`,`outOfRange`,`target`,`controller`,`color`],n.layoutMode={type:`box`,ignoreSize:!0},n.dataBound=[-1/0,1/0],n.targetVisuals={},n.controllerVisuals={},n}return t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n)},t.prototype.optionUpdated=function(e,t){var n=this.option;!t&&WV(n,e,this.replacableOptionKeys),this.textStyleModel=this.getModel(`textStyle`),this.resetItemSize(),this.completeVisualOption()},t.prototype.resetVisual=function(e){var t=this.stateList;e=me(e,this),this.controllerVisuals=UV(this.option.controller,t,e),this.targetVisuals=UV(this.option.target,t,e)},t.prototype.getItemSymbol=function(){return null},t.prototype.getTargetSeriesIndices=function(){var e=this,t=this.option.seriesTargets;if(t){var n=[];return CH(t,function(t){if(t.seriesIndex!=null)n.push(t.seriesIndex);else if(t.seriesId!=null){var r;e.ecModel.eachSeries(function(e){e.id===t.seriesId&&(r=e)}),r&&n.push(r.componentIndex)}}),n}var r=this.option.seriesId,i=this.option.seriesIndex;i==null&&r==null&&(i=`all`);var a=Ic(this.ecModel,`series`,{index:i,id:r},{useDefault:!1,enableAll:!0,enableNone:!1}).models;return L(a,function(e){return e.componentIndex})},t.prototype.eachTargetSeries=function(e,t){I(this.getTargetSeriesIndices(),function(n){var r=this.ecModel.getSeriesByIndex(n);r&&e.call(t,r)},this)},t.prototype.isTargetSeries=function(e){var t=!1;return this.eachTargetSeries(function(n){n===e&&(t=!0)}),t},t.prototype.formatValueText=function(e,t,n){var r=this.option,i=r.precision,a=this.dataBound,o=r.formatter,s;n||=[`<`,`>`],R(e)&&(e=e.slice(),s=!0);var c=t?e:s?[l(e[0]),l(e[1])]:l(e);if(z(o))return o.replace(`{value}`,s?c[0]:c).replace(`{value2}`,s?c[1]:c);if(ge(o))return s?o(e[0],e[1]):o(e);if(s)return e[0]===a[0]?n[0]+` `+c[1]:e[1]===a[1]?n[1]+` `+c[0]:c[0]+` - `+c[1];return c;function l(e){return e===a[0]?`min`:e===a[1]?`max`:(+e).toFixed(Math.min(i,20))}},t.prototype.resetExtent=function(){var e=this.option,t=wH([e.min,e.max]);this._dataExtent=t},t.prototype.getDimension=function(e){var t=this,n=this.option.seriesTargets;if(n){var r=de(n,function(n){return n.seriesIndex!=null&&n.seriesIndex===e||n.seriesId!=null&&n.seriesId===t.ecModel.getSeriesByIndex(e).id});if(r)return r.dimension}return this.option.dimension},t.prototype.getDataDimensionIndex=function(e){var t=e.hostModel.seriesIndex,n=this.getDimension(t);if(n!=null)return e.getDimensionIndex(n);for(var r=e.dimensions,i=r.length-1;i>=0;i--){var a=r[i],o=e.getDimensionInfo(a);if(!o.isCalculationCoord)return o.storeDimIndex}},t.prototype.getExtent=function(){return this._dataExtent.slice()},t.prototype.completeVisualOption=function(){var e=this.ecModel,t=this.option,n={inRange:t.inRange,outOfRange:t.outOfRange},r=t.target||={},i=t.controller||={};N(r,n),N(i,n);var a=this.isCategory();o.call(this,r),o.call(this,i),s.call(this,r,`inRange`,`outOfRange`),c.call(this,i);function o(n){SH(t.color)&&!n.inRange&&(n.inRange={color:t.color.slice().reverse()}),n.inRange=n.inRange||{color:e.get(`gradientColor`)}}function s(e,t,n){var r=e[t],i=e[n];r&&!i&&(i=e[n]={},CH(r,function(e,t){if(tj.isValidType(t)){var n=vH.get(t,`inactive`,a);n!=null&&(i[t]=n,t===`color`&&!i.hasOwnProperty(`opacity`)&&!i.hasOwnProperty(`colorAlpha`)&&(i.opacity=[0,0]))}}))}function c(e){var t=(e.inRange||{}).symbol||(e.outOfRange||{}).symbol,n=(e.inRange||{}).symbolSize||(e.outOfRange||{}).symbolSize,r=this.get(`inactiveColor`),i=this.getItemSymbol()||`roundRect`;CH(this.stateList,function(o){var s=this.itemSize,c=e[o];c||=e[o]={color:a?r:[r]},c.symbol??(c.symbol=t&&M(t)||(a?i:[i])),c.symbolSize??(c.symbolSize=n&&M(n)||(a?s[0]:[s[0],s[0]])),c.symbol=bH(c.symbol,function(e){return e===`none`?i:e});var l=c.symbolSize;if(l!=null){var u=-1/0;xH(l,function(e){e>u&&(u=e)}),c.symbolSize=bH(l,function(e){return TH(e,[0,u],[0,s[0]],!0)})}},this)}},t.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get(`itemWidth`)),parseFloat(this.get(`itemHeight`))]},t.prototype.isCategory=function(){return!!this.option.categories},t.prototype.setSelected=function(e){},t.prototype.getSelected=function(){return null},t.prototype.getValueState=function(e){return null},t.prototype.getVisualMeta=function(e){return null},t.type=`visualMap`,t.dependencies=[`series`],t.defaultOption={show:!0,z:4,min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:`vertical`,backgroundColor:H.color.transparent,borderColor:H.color.borderTint,contentColor:H.color.theme[0],inactiveColor:H.color.disabled,borderWidth:0,padding:H.size.m,textGap:10,precision:0,textStyle:{color:H.color.secondary}},t}(m_),DH=[20,140],OH=function(e){p(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.optionUpdated=function(t,n){e.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(e){e.mappingMethod=`linear`,e.dataExtent=this.getExtent()}),this._resetRange()},t.prototype.resetItemSize=function(){e.prototype.resetItemSize.apply(this,arguments);var t=this.itemSize;(t[0]==null||isNaN(t[0]))&&(t[0]=DH[0]),(t[1]==null||isNaN(t[1]))&&(t[1]=DH[1])},t.prototype._resetRange=function(){var e=this.getExtent(),t=this.option.range;!t||t.auto?(e.auto=1,this.option.range=e):R(t)&&(t[0]>t[1]&&t.reverse(),t[0]=Math.max(t[0],e[0]),t[1]=Math.min(t[1],e[1]))},t.prototype.completeVisualOption=function(){e.prototype.completeVisualOption.apply(this,arguments),I(this.stateList,function(e){var t=this.option.controller[e].symbolSize;t&&t[0]!==t[1]&&(t[0]=t[1]/3)},this)},t.prototype.setSelected=function(e){this.option.range=e.slice(),this._resetRange()},t.prototype.getSelected=function(){var e=this.getExtent(),t=Ls((this.get(`range`)||[]).slice());return t[0]>e[1]&&(t[0]=e[1]),t[1]>e[1]&&(t[1]=e[1]),t[0]=n[1]||e<=t[1])?`inRange`:`outOfRange`},t.prototype.findTargetDataIndices=function(e){var t=[];return this.eachTargetSeries(function(n){var r=[],i=n.getData();i.each(this.getDataDimensionIndex(i),function(t,n){e[0]<=t&&t<=e[1]&&r.push(n)},this),t.push({seriesId:n.id,dataIndex:r})},this),t},t.prototype.getVisualMeta=function(e){var t=kH(this,`outOfRange`,this.getExtent()),n=kH(this,`inRange`,this.option.range.slice()),r=[];function i(t,n){r.push({value:t,color:e(t,n)})}for(var a=0,o=0,s=n.length,c=t.length;oe[1])break;r.push({color:this.getControllerVisual(o,`color`,t),offset:a/n})}return r.push({color:this.getControllerVisual(e[1],`color`,t),offset:1}),r},t.prototype._createBarPoints=function(e,t){var n=this.visualMapModel.itemSize;return[[n[0]-t[0],e[0]],[n[0],e[0]],[n[0],e[1]],[n[0]-t[1],e[1]]]},t.prototype._createBarGroup=function(e){var t=this._orient,n=this.visualMapModel.get(`inverse`);return new Yu(t===`horizontal`&&!n?{scaleX:e===`bottom`?1:-1,rotation:Math.PI/2}:t===`horizontal`&&n?{scaleX:e===`bottom`?-1:1,rotation:-Math.PI/2}:t===`vertical`&&!n?{scaleX:e===`left`?1:-1,scaleY:-1}:{scaleX:e===`left`?1:-1})},t.prototype._updateHandle=function(e,t){if(this._useHandle){var n=this._shapes,r=this.visualMapModel,i=n.handleThumbs,a=n.handleLabels,o=r.itemSize,s=r.getExtent(),c=this._applyTransform(`left`,n.mainGroup);FH([0,1],function(l){var u=i[l];u.setStyle(`fill`,t.handlesColor[l]),u.y=e[l];var d=PH(e[l],[0,o[1]],s,!0),f=this.getControllerVisual(d,`symbolSize`);u.scaleX=u.scaleY=f/o[0],u.x=o[0]-f/2;var p=wf(n.handleLabelPoints[l],Cf(u,this.group));if(this._orient===`horizontal`){var m=c===`left`||c===`top`?(o[0]-f)/2:(o[0]-f)/-2;p[1]+=m}a[l].setStyle({x:p[0],y:p[1],text:r.formatValueText(this._dataInterval[l]),verticalAlign:`middle`,align:this._orient===`vertical`?this._applyTransform(`left`,n.mainGroup):`center`})},this)}},t.prototype._showIndicator=function(e,t,n,r){var i=this.visualMapModel,a=i.getExtent(),o=i.itemSize,s=[0,o[1]],c=this._shapes,l=c.indicator;if(l){l.attr(`invisible`,!1);var u=this.getControllerVisual(e,`color`,{convertOpacityToAlpha:!0}),d=this.getControllerVisual(e,`symbolSize`),f=PH(e,a,s,!0),p=o[0]-d/2,m={x:l.x,y:l.y};l.y=f,l.x=p;var h=wf(c.indicatorLabelPoint,Cf(l,this.group)),g=c.indicatorLabel;g.attr(`invisible`,!1);var _=this._applyTransform(`left`,c.mainGroup),v=this._orient===`horizontal`;g.setStyle({text:(n||``)+i.formatValueText(t),verticalAlign:v?_:`middle`,align:v?`center`:_});var y={x:p,y:f,style:{fill:u}},b={style:{x:h[0],y:h[1]}};if(i.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var x={duration:100,easing:`cubicInOut`,additive:!0};l.x=m.x,l.y=m.y,l.animateTo(y,x),g.animateTo(b,x)}else l.attr(y),g.attr(b);this._firstShowIndicator=!1;var S=this._shapes.handleLabels;if(S)for(var C=0;Ci[1]&&(l[1]=1/0),t&&(l[0]===-1/0?this._showIndicator(c,l[1],`< `,o):l[1]===1/0?this._showIndicator(c,l[0],`> `,o):this._showIndicator(c,c,`≈ `,o));var u=this._hoverLinkDataIndices,d=[];(t||UH(n))&&(d=this._hoverLinkDataIndices=n.findTargetDataIndices(l));var f=kc(u,d);this._dispatchHighDown(`downplay`,NH(f[0],n)),this._dispatchHighDown(`highlight`,NH(f[1],n))}},t.prototype._hoverLinkFromSeriesMouseOver=function(e){var t;if(RT(e.target,function(e){var n=ol(e);if(n.dataIndex!=null)return t=n,!0},!0),t){var n=this.ecModel.getSeriesByIndex(t.seriesIndex),r=this.visualMapModel;if(r.isTargetSeries(n)){var i=n.getData(t.dataType),a=i.getStore().get(r.getDataDimensionIndex(i),t.dataIndex);isNaN(a)||this._showIndicator(a,a)}}},t.prototype._hideIndicator=function(){var e=this._shapes;e.indicator&&e.indicator.attr(`invisible`,!0),e.indicatorLabel&&e.indicatorLabel.attr(`invisible`,!0);var t=this._shapes.handleLabels;if(t)for(var n=0;n=0&&(i.dimension=a,r.push(i))}}),e.getData().setVisual(`visualMeta`,r)}}];function JH(e,t,n,r){for(var i=t.targetVisuals[r],a=tj.prepareVisualTypes(i),o={color:IT(e.getData(),`color`)},s=0,c=a.length;s0:e.splitNumber>0)||e.calculable)?`continuous`:`piecewise`}),e.registerAction(GH,KH),I(qH,function(t){e.registerVisual(e.PRIORITY.VISUAL.COMPONENT,t)}),e.registerPreprocessor(XH))}function eU(e){e.registerComponentModel(OH),e.registerComponentView(BH),$H(e)}var tU=function(e){p(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n._pieceList=[],n}return t.prototype.optionUpdated=function(t,n){e.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var r=this._mode=this._determineMode();this._pieceList=[],nU[this._mode].call(this,this._pieceList),this._resetSelected(t,n);var i=this.option.categories;this.resetVisual(function(e,t){r===`categories`?(e.mappingMethod=`category`,e.categories=M(i)):(e.dataExtent=this.getExtent(),e.mappingMethod=`piecewise`,e.pieceList=L(this._pieceList,function(e){return e=M(e),t!==`inRange`&&(e.visual=null),e}))})},t.prototype.completeVisualOption=function(){var t=this.option,n={},r=tj.listVisualTypes(),i=this.isCategory();I(t.pieces,function(e){I(r,function(t){e.hasOwnProperty(t)&&(n[t]=1)})}),I(n,function(e,n){var r=!1;I(this.stateList,function(e){r=r||a(t,e,n)||a(t.target,e,n)},this),!r&&I(this.stateList,function(e){(t[e]||(t[e]={}))[n]=vH.get(n,e===`inRange`?`active`:`inactive`,i)})},this);function a(e,t,n){return e&&e[t]&&e[t].hasOwnProperty(n)}e.prototype.completeVisualOption.apply(this,arguments)},t.prototype._resetSelected=function(e,t){var n=this.option,r=this._pieceList,i=(t?n:e).selected||{};if(n.selected=i,I(r,function(e,t){var n=this.getSelectedMapKey(e);i.hasOwnProperty(n)||(i[n]=!0)},this),n.selectedMode===`single`){var a=!1;I(r,function(e,t){var n=this.getSelectedMapKey(e);i[n]&&(a?i[n]=!1:a=!0)},this)}},t.prototype.getItemSymbol=function(){return this.get(`itemSymbol`)},t.prototype.getSelectedMapKey=function(e){return this._mode===`categories`?e.value+``:e.index+``},t.prototype.getPieceList=function(){return this._pieceList},t.prototype._determineMode=function(){var e=this.option;return e.pieces&&e.pieces.length>0?`pieces`:this.option.categories?`categories`:`splitNumber`},t.prototype.setSelected=function(e){this.option.selected=M(e)},t.prototype.getValueState=function(e){var t=tj.findPieceIndex(e,this._pieceList);return t==null?`outOfRange`:this.option.selected[this.getSelectedMapKey(this._pieceList[t])]?`inRange`:`outOfRange`},t.prototype.findTargetDataIndices=function(e){var t=[],n=this._pieceList;return this.eachTargetSeries(function(r){var i=[],a=r.getData();a.each(this.getDataDimensionIndex(a),function(t,r){tj.findPieceIndex(t,n)===e&&i.push(r)},this),t.push({seriesId:r.id,dataIndex:i})},this),t},t.prototype.getRepresentValue=function(e){var t;if(this.isCategory())t=e.value;else if(e.value!=null)t=e.value;else{var n=e.interval||[];t=n[0]===-1/0&&n[1]===1/0?0:(n[0]+n[1])/2}return t},t.prototype.getVisualMeta=function(e){if(this.isCategory())return;var t=[],n=[``,``],r=this;function i(i,a){var o=r.getRepresentValue({interval:i});a||=r.getValueState(o);var s=e(o,a);i[0]===-1/0?n[0]=s:i[1]===1/0?n[1]=s:t.push({value:i[0],color:s},{value:i[1],color:s})}var a=this._pieceList.slice();if(!a.length)a.push({interval:[-1/0,1/0]});else{var o=a[0].interval[0];o!==-1/0&&a.unshift({interval:[-1/0,o]}),o=a[a.length-1].interval[1],o!==1/0&&a.push({interval:[o,1/0]})}var s=-1/0;return I(a,function(e){var t=e.interval;t&&(t[0]>s&&i([s,t[0]],`outOfRange`),i(t.slice()),s=t[1])},this),{stops:t,outerColors:n}},t.type=`visualMap.piecewise`,t.defaultOption=kh(EH.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:`auto`,itemWidth:20,itemHeight:14,itemSymbol:`roundRect`,pieces:null,categories:null,splitNumber:5,selectedMode:`multiple`,itemGap:10,hoverLink:!0}),t}(EH),nU={splitNumber:function(e){var t=this.option,n=Math.min(t.precision,20),r=this.getExtent(),i=t.splitNumber;i=Math.max(parseInt(i,10),1),t.splitNumber=i;for(var a=(r[1]-r[0])/i;+a.toFixed(n)!==a&&n<5;)n++;t.precision=n,a=+a.toFixed(n),t.minOpen&&e.push({interval:[-1/0,r[0]],close:[0,0]});for(var o=0,s=r[0];o`,`≥`][t[0]]];e.text=e.text||this.formatValueText(e.value==null?e.interval:e.value,!1,n)},this)}};function rU(e,t){var n=e.inverse;(e.orient===`vertical`?!n:n)&&t.reverse()}var iU=function(e){p(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.doRender=function(){var e=this.group;e.removeAll();var t=this.visualMapModel,n=t.get(`textGap`),r=t.textStyleModel,i=this._getItemAlign(),a=t.itemSize,o=this._getViewData(),s=o.endsText,c=we(t.get(`showLabel`,!0),!s),l=!t.get(`selectedMode`);s&&this._renderEndsText(e,s[0],a,c,i),I(o.viewPieceList,function(o){var s=o.piece,u=new Yu;u.onclick=me(this._onItemClick,this,s),this._enableHoverLink(u,o.indexInModelPieceList);var d=t.getRepresentValue(s);if(this._createItemSymbol(u,d,[0,0,a[0],a[1]],l),c){var f=this.visualMapModel.getValueState(d),p=r.get(`align`)||i;u.add(new ns({style:ap(r,{x:p===`right`?-n:a[0]+n,y:a[1]/2,text:s.text,verticalAlign:r.get(`verticalAlign`)||`middle`,align:p,opacity:V(r.get(`opacity`),f===`outOfRange`?.5:1)}),silent:l}))}e.add(u)},this),s&&this._renderEndsText(e,s[1],a,c,i),n_(t.get(`orient`),e,t.get(`itemGap`)),this.renderBackground(e),this.positionGroup(e)},t.prototype._enableHoverLink=function(e,t){var n=this;e.on(`mouseover`,function(){return r(`highlight`)}).on(`mouseout`,function(){return r(`downplay`)});var r=function(e){var r=n.visualMapModel;r.option.hoverLink&&n.api.dispatchAction({type:e,batch:NH(r.findTargetDataIndices(t),r)})}},t.prototype._getItemAlign=function(){var e=this.visualMapModel,t=e.option;if(t.orient===`vertical`)return MH(e,this.api,e.itemSize);var n=t.align;return(!n||n===`auto`)&&(n=`left`),n},t.prototype._renderEndsText=function(e,t,n,r,i){if(t){var a=new Yu,o=this.visualMapModel.textStyleModel;a.add(new ns({style:ap(o,{x:r?i===`right`?n[0]:0:n[0]/2,y:n[1]/2,verticalAlign:`middle`,align:r?i:`center`,text:t})})),e.add(a)}},t.prototype._getViewData=function(){var e=this.visualMapModel,t=L(e.getPieceList(),function(e,t){return{piece:e,indexInModelPieceList:t}}),n=e.get(`text`),r=e.get(`orient`),i=e.get(`inverse`);return(r===`horizontal`?i:!i)?t.reverse():n&&=n.slice().reverse(),{viewPieceList:t,endsText:n}},t.prototype._createItemSymbol=function(e,t,n,r){var i=Ev(this.getControllerVisual(t,`symbol`),n[0],n[1],n[2],n[3],this.getControllerVisual(t,`color`));i.silent=r,e.add(i)},t.prototype._onItemClick=function(e){var t=this.visualMapModel,n=t.option,r=n.selectedMode;if(r){var i=M(n.selected),a=t.getSelectedMapKey(e);r===`single`||r===!0?(i[a]=!0,I(i,function(e,t){i[t]=t===a})):i[a]=!i[a],this.api.dispatchAction({type:`selectDataRange`,from:this.uid,visualMapId:this.visualMapModel.id,selected:i})}},t.type=`visualMap.piecewise`,t}(AH);function aU(e){e.registerComponentModel(tU),e.registerComponentView(iU),$H(e)}function oU(e){bO(eU),bO(aU)}var sU={label:{enabled:!0},decal:{show:!1}},cU=jc(),lU=jc(),uU=al(dU);function dU(e,t){var n=e.getModel(`aria`);if(!n.get(`enabled`))return;var r=lU(e).scope||(lU(e).scope={}),i=M(sU);N(i.label,e.getLocaleModel().get(`aria`),!1),N(n.option,i,!1),a(),o();function a(){if(n.getModel(`decal`).get(`show`)){var t=Le();e.eachSeries(function(e){e.isColorBySeries()||(cU(e).scope=t.get(e.type)||t.set(e.type,{}))}),e.eachSeries(function(t){if(ge(t.enableAriaDecal)){t.enableAriaDecal();return}var n=t.getData();if(t.isColorBySeries()){var i=y_(t.ecModel,t.name,r,e.getSeriesCount()),a=n.getVisual(`decal`);n.setVisual(`decal`,u(a,i))}else{var o=t.getRawData(),s={},c=cU(t).scope;n.each(function(e){var t=n.getRawIndex(e);s[t]=e});var l=o.count();o.each(function(e){var r=s[e],i=o.getName(e)||e+``,a=y_(t.ecModel,i,c,l),d=n.getItemVisual(r,`decal`);n.setItemVisual(r,`decal`,u(d,a))})}function u(e,t){var n=e?P(P({},t),e):t;return n.dirty=!0,n}})}}function o(){var r=t.getZr().dom;if(r){var i=e.getLocaleModel().get(`aria`),a=n.getModel(`label`);if(a.option=F(a.option,i),a.get(`enabled`)){if(r.setAttribute(`role`,`img`),a.get(`description`)){r.setAttribute(`aria-label`,a.get(`description`));return}var o=e.getSeriesCount(),u=a.get([`data`,`maxCount`])||10,d=a.get([`series`,`maxCount`])||10,f=Math.min(o,d),p;if(!(o<1)){var m=c();p=m?s(a.get([`general`,`withTitle`]),{title:m}):a.get([`general`,`withoutTitle`]);var h=[],g=o>1?a.get([`series`,`multiple`,`prefix`]):a.get([`series`,`single`,`prefix`]);p+=s(g,{seriesCount:o}),e.eachSeries(function(e,t){if(t1?a.get([`series`,`multiple`,r]):a.get([`series`,`single`,r]),n=s(n,{seriesId:e.seriesIndex,seriesName:e.get(`name`),seriesType:l(e.subType)});var i=e.getData();if(i.count()>u){var c=a.get([`data`,`partialData`]);n+=s(c,{displayCnt:u})}else n+=a.get([`data`,`allData`]);for(var d=a.get([`data`,`separator`,`middle`]),p=a.get([`data`,`separator`,`end`]),m=a.get([`data`,`excludeDimensionId`]),g=[],_=0;_=_U:-c>=_U),f=c>0?c%_U:c%_U+_U,p=!1;p=d?!0:!fi(u)&&f>=gU==!!l;var m=e+n*hU(a),h=t+r*mU(a);this._start&&this._add(`M`,m,h);var g=Math.round(i*vU);if(d){var _=1/this._p,v=(l?1:-1)*(_U-_);this._add(`A`,n,r,g,1,+l,e+n*hU(a+v),t+r*mU(a+v)),_>.01&&this._add(`A`,n,r,g,0,+l,m,h)}else{var y=e+n*hU(o),b=t+r*mU(o);this._add(`A`,n,r,g,+p,+l,y,b)}},e.prototype.rect=function(e,t,n,r){this._add(`M`,e,t),this._add(`l`,n,0),this._add(`l`,0,r),this._add(`l`,-n,0),this._add(`Z`)},e.prototype.closePath=function(){this._d.length>0&&this._add(`Z`)},e.prototype._add=function(e,t,n,r,i,a,o,s,c){for(var l=[],u=this._p,d=1;d`}function FU(e){return``}function IU(e,t){t||={};var n=t.newline?` -`:``;function r(e){var t=e.children,i=e.tag,a=e.attrs,o=e.text;return PU(i,a)+(i===`style`?o||``:Uh(o))+(t?``+n+L(t,function(e){return r(e)}).join(n)+n:``)+FU(i)}return r(e)}function LU(e,t,n){n||={};var r=n.newline?` -`:``,i=` {`+r,a=r+`}`,o=L(fe(e),function(t){return t+i+L(fe(e[t]),function(n){return n+`:`+e[t][n]+`;`}).join(r)+a}).join(r),s=L(fe(t),function(e){return`@keyframes `+e+i+L(fe(t[e]),function(n){return n+i+L(fe(t[e][n]),function(r){var i=t[e][n][r];return r===`d`&&(i=`path("`+i+`")`),r+`:`+i+`;`}).join(r)+a}).join(r)+a}).join(r);return!o&&!s?``:[``].join(r)}function RU(e){return{zrId:e,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function zU(e,t,n,r){return NU(`svg`,`root`,{width:e,height:t,xmlns:DU,"xmlns:xlink":OU,version:`1.1`,baseProfile:`full`,viewBox:r?`0 0 `+e+` `+t:!1},n)}var BU=0;function VU(){return BU++}var HU={cubicIn:`0.32,0,0.67,0`,cubicOut:`0.33,1,0.68,1`,cubicInOut:`0.65,0,0.35,1`,quadraticIn:`0.11,0,0.5,0`,quadraticOut:`0.5,1,0.89,1`,quadraticInOut:`0.45,0,0.55,1`,quarticIn:`0.5,0,0.75,0`,quarticOut:`0.25,1,0.5,1`,quarticInOut:`0.76,0,0.24,1`,quinticIn:`0.64,0,0.78,0`,quinticOut:`0.22,1,0.36,1`,quinticInOut:`0.83,0,0.17,1`,sinusoidalIn:`0.12,0,0.39,0`,sinusoidalOut:`0.61,1,0.88,1`,sinusoidalInOut:`0.37,0,0.63,1`,exponentialIn:`0.7,0,0.84,0`,exponentialOut:`0.16,1,0.3,1`,exponentialInOut:`0.87,0,0.13,1`,circularIn:`0.55,0,1,0.45`,circularOut:`0,0.55,0.45,1`,circularInOut:`0.85,0,0.15,1`},UU=`transform-origin`;function WU(e,t,n){var r=P({},e.shape);P(r,t),e.buildPath(n,r);var i=new yU;return i.reset(Di(e)),n.rebuildPath(i,1),i.generateStr(),i.getStr()}function GU(e,t){var n=t.originX,r=t.originY;(n||r)&&(e[UU]=n+`px `+r+`px`)}var KU={fill:`fill`,opacity:`opacity`,lineWidth:`stroke-width`,lineDashOffset:`stroke-dashoffset`};function qU(e,t){var n=t.zrId+`-ani-`+t.cssAnimIdx++;return t.cssAnims[n]=e,n}function JU(e,t,n){var r=e.shape.paths,i={},a,o;if(I(r,function(e){var t=RU(n.zrId);t.animation=!0,XU(e,{},t,!0);var r=t.cssAnims,s=t.cssNodes,c=fe(r),l=c.length;if(l){o=c[l-1];var u=r[o];for(var d in u){var f=u[d];i[d]=i[d]||{d:``},i[d].d+=f.d||``}for(var p in s){var m=s[p].animation;m.indexOf(o)>=0&&(a=m)}}}),a){t.d=!1;var s=qU(i,n);return a.replace(o,s)}}function YU(e){return z(e)?HU[e]?`cubic-bezier(`+HU[e]+`)`:Lr(e)?e:``:``}function XU(e,t,n,r){var i=e.animators,a=i.length,o=[];if(e instanceof Pd){var s=JU(e,t,n);if(s)o.push(s);else if(!a)return}else if(!a)return;for(var c={},l=0;l0}).length)return qU(l,n)+` `+i[0]+` both`}for(var g in c){var s=h(c[g]);s&&o.push(s)}if(o.length){var _=n.zrId+`-cls-`+VU();n.cssNodes[`.`+_]={animation:o.join(`,`)},t.class=_}}function ZU(e,t,n){if(!e.ignore)if(e.isSilent()){var r={"pointer-events":`none`};QU(r,t,n,!0)}else{var i=e.states.emphasis&&e.states.emphasis.style?e.states.emphasis.style:{},a=i.fill;if(!a){var o=e.style&&e.style.fill,s=e.states.select&&e.states.select.style&&e.states.select.style.fill,c=e.currentStates.indexOf(`select`)>=0&&s||o;c&&(a=ci(c))}var l=i.lineWidth;if(l){var u=!i.strokeNoScale&&e.transform?e.transform[0]:1;l/=u}var r={cursor:`pointer`};a&&(r.fill=a),i.stroke&&(r.stroke=i.stroke),l&&(r[`stroke-width`]=l),QU(r,t,n,!0)}}function QU(e,t,n,r){var i=JSON.stringify(e),a=n.cssStyleCache[i];a||(a=n.zrId+`-cls-`+VU(),n.cssStyleCache[i]=a,n.cssNodes[`.`+a+(r?`:hover`:``)]=e),t.class=t.class?t.class+` `+a:a}var $U=Math.round;function eW(e){return e&&z(e.src)}function tW(e){return e&&ge(e.toDataURL)}function nW(e,t,n,r){EU(function(i,a){var o=i===`fill`||i===`stroke`;o&&Ti(a)?_W(t,e,i,r):o&&Si(a)?vW(n,e,i,r):e[i]=a,o&&r.ssr&&a===`none`&&(e[`pointer-events`]=`visible`)},t,n,!1),gW(n,e,r)}function rW(e,t){var n=ew(t);n&&(n.each(function(t,n){t!=null&&(e[(`ecmeta_`+n).toLowerCase()]=t+``)}),t.isSilent()&&(e[jU+`silent`]=`true`))}function iW(e){return fi(e[0]-1)&&fi(e[1])&&fi(e[2])&&fi(e[3]-1)}function aW(e){return fi(e[4])&&fi(e[5])}function oW(e,t,n){if(t&&!(aW(t)&&iW(t))){var r=n?10:1e4;e.transform=iW(t)?`translate(`+$U(t[4]*r)/r+` `+$U(t[5]*r)/r+`)`:hi(t)}}function sW(e,t,n){for(var r=e.points,i=[],a=0;a`u`){var g=`Image width/height must been given explictly in svg-ssr renderer.`;Oe(f,g),Oe(p,g)}else if(f==null||p==null){var _=function(e,t){if(e){var n=e.elm,r=f||t.width,i=p||t.height;e.tag===`pattern`&&(l?(i=1,r/=a.width):u&&(r=1,i/=a.height)),e.attrs.width=r,e.attrs.height=i,n&&(n.setAttribute(`width`,r),n.setAttribute(`height`,i))}},v=mt(m,null,e,function(e){c||_(S,e),_(d,e)});v&&v.width&&v.height&&(f||=v.width,p||=v.height)}d=NU(`image`,`img`,{href:m,width:f,height:p}),o.width=f,o.height=p}else i.svgElement&&(d=M(i.svgElement),o.width=i.svgWidth,o.height=i.svgHeight);if(d){var y,b;c?y=b=1:l?(b=1,y=o.width/a.width):u?(y=1,b=o.height/a.height):o.patternUnits=`userSpaceOnUse`,y!=null&&!isNaN(y)&&(o.width=y),b!=null&&!isNaN(b)&&(o.height=b);var x=Oi(i);x&&(o.patternTransform=x);var S=NU(`pattern`,``,o,[d]),C=IU(S),w=r.patternCache,T=w[C];T||(T=r.zrId+`-p`+r.patternIdx++,w[C]=T,o.id=T,S=r.defs[T]=NU(`pattern`,T,o,[d])),t[n]=Ei(T)}}function yW(e,t,n){var r=n.clipPathCache,i=n.defs,a=r[e.id];if(!a){a=n.zrId+`-c`+n.clipPathIdx++;var o={id:a};r[e.id]=a,i[a]=NU(`clipPath`,a,o,[fW(e,n)])}t[`clip-path`]=Ei(a)}function bW(e){return document.createTextNode(e)}function xW(e,t,n){e.insertBefore(t,n)}function SW(e,t){e.removeChild(t)}function CW(e,t){e.appendChild(t)}function wW(e){return e.parentNode}function TW(e){return e.nextSibling}function EW(e,t){e.textContent=t}var DW=58,OW=120,kW=NU(``,``);function AW(e){return e===void 0}function jW(e){return e!==void 0}function MW(e,t,n){for(var r={},i=t;i<=n;++i){var a=e[i].key;a!==void 0&&(r[a]=i)}return r}function NW(e,t){var n=e.key===t.key;return e.tag===t.tag&&n}function PW(e){var t,n=e.children,r=e.tag;if(jW(r)){var i=e.elm=MU(r);if(LW(kW,e),R(n))for(t=0;ta?(m=n[c+1]==null?null:n[c+1].elm,FW(e,m,n,i,c)):IW(e,t,r,a))}function zW(e,t){var n=t.elm=e.elm,r=e.children,i=t.children;e!==t&&(LW(e,t),AW(t.text)?jW(r)&&jW(i)?r!==i&&RW(n,r,i):jW(i)?(jW(e.text)&&EW(n,``),FW(n,null,i,0,i.length-1)):jW(r)?IW(n,r,0,r.length-1):jW(e.text)&&EW(n,``):e.text!==t.text&&(jW(r)&&IW(n,r,0,r.length-1),EW(n,t.text)))}function BW(e,t){if(NW(e,t))zW(e,t);else{var n=e.elm,r=wW(n);PW(t),r!==null&&(xW(r,t.elm,TW(n)),IW(r,[e],0,0))}return t}var VW=0,HW=function(){function e(e,t,n){if(this.type=`svg`,this.configLayer=UW(`configLayer`),this.storage=t,this._opts=n=P({},n),this.root=e,this._id=`zr`+VW++,this._oldVNode=zU(n.width,n.height),e&&!n.ssr){var r=this._viewport=document.createElement(`div`);r.style.cssText=`position:relative;overflow:hidden`;var i=this._svgDom=this._oldVNode.elm=MU(`svg`);LW(null,this._oldVNode),r.appendChild(i),e.appendChild(r)}this.resize(n.width,n.height)}return e.prototype.getType=function(){return this.type},e.prototype.getViewportRoot=function(){return this._viewport},e.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},e.prototype.getSvgDom=function(){return this._svgDom},e.prototype.refresh=function(){if(this.root){var e=this.renderToVNode({willUpdate:!0});e.attrs.style=`position:absolute;left:0;top:0;user-select:none`,BW(this._oldVNode,e),this._oldVNode=e}},e.prototype.renderOneToVNode=function(e){return hW(e,RU(this._id))},e.prototype.renderToVNode=function(e){e||={};var t=this.storage.getDisplayList(!0),n=this._width,r=this._height,i=RU(this._id);i.animation=e.animation,i.willUpdate=e.willUpdate,i.compress=e.compress,i.emphasis=e.emphasis,i.ssr=this._opts.ssr;var a=[],o=this._bgVNode=WW(n,r,this._backgroundColor,i);o&&a.push(o);var s=e.compress?null:this._mainVNode=NU(`g`,`main`,{},[]);this._paintList(t,i,s?s.children:a),s&&a.push(s);var c=L(fe(i.defs),function(e){return i.defs[e]});if(c.length&&a.push(NU(`defs`,`defs`,{},c)),e.animation){var l=LU(i.cssNodes,i.cssAnims,{newline:!0});if(l){var u=NU(`style`,`stl`,{},[],l);a.push(u)}}return zU(n,r,a,e.useViewBox)},e.prototype.renderToString=function(e){return e||={},IU(this.renderToVNode({animation:V(e.cssAnimation,!0),emphasis:V(e.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:V(e.useViewBox,!0)}),{newline:!0})},e.prototype.setBackgroundColor=function(e){this._backgroundColor=e},e.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},e.prototype._paintList=function(e,t,n){for(var r=e.length,i=[],a=0,o,s,c=0,l=0;l=0&&!(d&&s&&d[m]===s[m]);m--);for(var h=p-1;h>m;h--)a--,o=i[a-1];for(var g=m+1;g{if(!i.current)return;let t=eO(i.current,void 0,{renderer:`svg`});t.setOption({animationDuration:280,aria:{enabled:!0,decal:{show:!0},description:n},...e}),r&&t.on(`click`,r);let a=new ResizeObserver(()=>t.resize());return a.observe(i.current),()=>{a.disconnect(),t.dispose()}},[n,r,e]),(0,K.jsx)(`div`,{ref:i,className:`echart`,style:{height:t},role:`img`,"aria-label":n})}var qW=new Intl.NumberFormat(void 0,{maximumFractionDigits:0});function JW(e){return`${(e*100).toFixed(e>=.1?1:2)}%`}function YW(e){return e>=1e3?`${(e/1e3).toFixed(2)}s`:`${e.toFixed(e>=100?0:1)}ms`}function XW(e){let[t,n]=e.split(`/`),r=new Date(t),i=new Date(n);if(Number.isNaN(r.valueOf())||Number.isNaN(i.valueOf()))return e;let a=Math.round((i.valueOf()-r.valueOf())/6e4);return a>=60&&a%60==0?`Last ${a/60}h`:`Last ${Math.max(a,1)}m`}function q(e,t,n){function r(n,r){if(n._zod||Object.defineProperty(n,"_zod",{value:{def:r,constr:o,traits:new Set},enumerable:!1}),n._zod.traits.has(e))return;n._zod.traits.add(e),t(n,r);let i=o.prototype,a=Object.keys(i);for(let e=0;en?.Parent&&t instanceof n.Parent?!0:t?._zod?.traits?.has(e)}),Object.defineProperty(o,"name",{value:e}),o}function ZW(e){return e&&Object.assign(rG,e),rG}var QW,$W,eG,tG,nG,rG,iG=o((()=>{$W=Object.freeze({status:`aborted`}),eG=Symbol(`zod_brand`),tG=class extends Error{constructor(){super(`Encountered Promise during synchronous parse. Use .parseAsync() instead.`)}},nG=class extends Error{constructor(e){super(`Encountered unidirectional transform during encode: ${e}`),this.name=`ZodEncodeError`}},(QW=globalThis).__zod_globalConfig??(QW.__zod_globalConfig={}),rG=globalThis.__zod_globalConfig})),aG=c({BIGINT_FORMAT_RANGES:()=>fK,Class:()=>pK,NUMBER_FORMAT_RANGES:()=>dK,aborted:()=>UG,allowsEval:()=>sK,assert:()=>uG,assertEqual:()=>oG,assertIs:()=>cG,assertNever:()=>lG,assertNotEqual:()=>sG,assignProp:()=>yG,base64ToUint8Array:()=>$G,base64urlToUint8Array:()=>tK,cached:()=>pG,captureStackTrace:()=>oK,cleanEnum:()=>QG,cleanRegex:()=>hG,clone:()=>MG,cloneDef:()=>xG,createTransparentProxy:()=>NG,defineLazy:()=>_G,esc:()=>TG,escapeRegex:()=>jG,explicitlyAborted:()=>WG,extend:()=>RG,finalizeIssue:()=>qG,floatSafeRemainder:()=>gG,getElementAtPath:()=>SG,getEnumValues:()=>dG,getLengthableOrigin:()=>YG,getParsedType:()=>cK,getSizableOrigin:()=>JG,hexToUint8Array:()=>rK,isObject:()=>DG,isPlainObject:()=>OG,issue:()=>ZG,joinValues:()=>J,jsonStringifyReplacer:()=>fG,merge:()=>BG,mergeDefs:()=>bG,normalizeParams:()=>Y,nullish:()=>mG,numKeys:()=>AG,objectClone:()=>vG,omit:()=>LG,optionalKeys:()=>FG,parsedType:()=>XG,partial:()=>VG,pick:()=>IG,prefixIssues:()=>GG,primitiveTypes:()=>uK,promiseAllObject:()=>CG,propertyKeyTypes:()=>lK,randomString:()=>wG,required:()=>HG,safeExtend:()=>zG,shallowClone:()=>kG,slugify:()=>EG,stringifyPrimitive:()=>PG,uint8ArrayToBase64:()=>eK,uint8ArrayToBase64url:()=>nK,uint8ArrayToHex:()=>iK,unwrapMessage:()=>KG});function oG(e){return e}function sG(e){return e}function cG(e){}function lG(e){throw Error(`Unexpected value in exhaustive check`)}function uG(e){}function dG(e){let t=Object.values(e).filter(e=>typeof e==`number`);return Object.entries(e).filter(([e,n])=>t.indexOf(+e)===-1).map(([e,t])=>t)}function J(e,t=`|`){return e.map(e=>PG(e)).join(t)}function fG(e,t){return typeof t==`bigint`?t.toString():t}function pG(e){return{get value(){{let t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function mG(e){return e==null}function hG(e){let t=+!!e.startsWith(`^`),n=e.endsWith(`$`)?e.length-1:e.length;return e.slice(t,n)}function gG(e,t){let n=e/t,r=Math.round(n),i=2**-52*Math.max(Math.abs(n),1);return Math.abs(n-r)e?.[t],e):e}function CG(e){let t=Object.keys(e),n=t.map(t=>e[t]);return Promise.all(n).then(e=>{let n={};for(let r=0;rt};if(t?.message!==void 0){if(t?.error!==void 0)throw Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error==`string`?{...t,error:()=>t.error}:t}function NG(e){let t;return new Proxy({},{get(n,r,i){return t??=e(),Reflect.get(t,r,i)},set(n,r,i,a){return t??=e(),Reflect.set(t,r,i,a)},has(n,r){return t??=e(),Reflect.has(t,r)},deleteProperty(n,r){return t??=e(),Reflect.deleteProperty(t,r)},ownKeys(n){return t??=e(),Reflect.ownKeys(t)},getOwnPropertyDescriptor(n,r){return t??=e(),Reflect.getOwnPropertyDescriptor(t,r)},defineProperty(n,r,i){return t??=e(),Reflect.defineProperty(t,r,i)}})}function PG(e){return typeof e==`bigint`?e.toString()+`n`:typeof e==`string`?`"${e}"`:`${e}`}function FG(e){return Object.keys(e).filter(t=>e[t]._zod.optin===`optional`&&e[t]._zod.optout===`optional`)}function IG(e,t){let n=e._zod.def,r=n.checks;if(r&&r.length>0)throw Error(`.pick() cannot be used on object schemas containing refinements`);return MG(e,bG(e._zod.def,{get shape(){let e={};for(let r in t){if(!(r in n.shape))throw Error(`Unrecognized key: "${r}"`);t[r]&&(e[r]=n.shape[r])}return yG(this,`shape`,e),e},checks:[]}))}function LG(e,t){let n=e._zod.def,r=n.checks;if(r&&r.length>0)throw Error(`.omit() cannot be used on object schemas containing refinements`);return MG(e,bG(e._zod.def,{get shape(){let r={...e._zod.def.shape};for(let e in t){if(!(e in n.shape))throw Error(`Unrecognized key: "${e}"`);t[e]&&delete r[e]}return yG(this,`shape`,r),r},checks:[]}))}function RG(e,t){if(!OG(t))throw Error(`Invalid input to extend: expected a plain object`);let n=e._zod.def.checks;if(n&&n.length>0){let n=e._zod.def.shape;for(let e in t)if(Object.getOwnPropertyDescriptor(n,e)!==void 0)throw Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}return MG(e,bG(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t};return yG(this,`shape`,n),n}}))}function zG(e,t){if(!OG(t))throw Error(`Invalid input to safeExtend: expected a plain object`);return MG(e,bG(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t};return yG(this,`shape`,n),n}}))}function BG(e,t){if(e._zod.def.checks?.length)throw Error(`.merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.`);return MG(e,bG(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t._zod.def.shape};return yG(this,`shape`,n),n},get catchall(){return t._zod.def.catchall},checks:t._zod.def.checks??[]}))}function VG(e,t,n){let r=t._zod.def.checks;if(r&&r.length>0)throw Error(`.partial() cannot be used on object schemas containing refinements`);return MG(t,bG(t._zod.def,{get shape(){let r=t._zod.def.shape,i={...r};if(n)for(let t in n){if(!(t in r))throw Error(`Unrecognized key: "${t}"`);n[t]&&(i[t]=e?new e({type:`optional`,innerType:r[t]}):r[t])}else for(let t in r)i[t]=e?new e({type:`optional`,innerType:r[t]}):r[t];return yG(this,`shape`,i),i},checks:[]}))}function HG(e,t,n){return MG(t,bG(t._zod.def,{get shape(){let r=t._zod.def.shape,i={...r};if(n)for(let t in n){if(!(t in i))throw Error(`Unrecognized key: "${t}"`);n[t]&&(i[t]=new e({type:`nonoptional`,innerType:r[t]}))}else for(let t in r)i[t]=new e({type:`nonoptional`,innerType:r[t]});return yG(this,`shape`,i),i}}))}function UG(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n{var n;return(n=t).path??(n.path=[]),t.path.unshift(e),t})}function KG(e){return typeof e==`string`?e:e?.message}function qG(e,t,n){let r=e.message?e.message:KG(e.inst?._zod.def?.error?.(e))??KG(t?.error?.(e))??KG(n.customError?.(e))??KG(n.localeError?.(e))??`Invalid input`,{inst:i,continue:a,input:o,...s}=e;return s.path??=[],s.message=r,t?.reportInput&&(s.input=o),s}function JG(e){return e instanceof Set?`set`:e instanceof Map?`map`:e instanceof File?`file`:`unknown`}function YG(e){return Array.isArray(e)?`array`:typeof e==`string`?`string`:`unknown`}function XG(e){let t=typeof e;switch(t){case`number`:return Number.isNaN(e)?`nan`:`number`;case`object`:{if(e===null)return`null`;if(Array.isArray(e))return`array`;let t=e;if(t&&Object.getPrototypeOf(t)!==Object.prototype&&`constructor`in t&&t.constructor)return t.constructor.name}}return t}function ZG(...e){let[t,n,r]=e;return typeof t==`string`?{message:t,code:`custom`,input:n,inst:r}:{...t}}function QG(e){return Object.entries(e).filter(([e,t])=>Number.isNaN(Number.parseInt(e,10))).map(e=>e[1])}function $G(e){let t=atob(e),n=new Uint8Array(t.length);for(let e=0;ee.toString(16).padStart(2,`0`)).join(``)}var aK,oK,sK,cK,lK,uK,dK,fK,pK,mK=o((()=>{iG(),aK=Symbol(`evaluating`),oK=`captureStackTrace`in Error?Error.captureStackTrace:(...e)=>{},sK=pG(()=>{if(rG.jitless||typeof navigator<`u`&&navigator?.userAgent?.includes(`Cloudflare`))return!1;try{return Function(``),!0}catch{return!1}}),cK=e=>{let t=typeof e;switch(t){case`undefined`:return`undefined`;case`string`:return`string`;case`number`:return Number.isNaN(e)?`nan`:`number`;case`boolean`:return`boolean`;case`function`:return`function`;case`bigint`:return`bigint`;case`symbol`:return`symbol`;case`object`:return Array.isArray(e)?`array`:e===null?`null`:e.then&&typeof e.then==`function`&&e.catch&&typeof e.catch==`function`?`promise`:typeof Map<`u`&&e instanceof Map?`map`:typeof Set<`u`&&e instanceof Set?`set`:typeof Date<`u`&&e instanceof Date?`date`:typeof File<`u`&&e instanceof File?`file`:`object`;default:throw Error(`Unknown data type: ${t}`)}},lK=new Set([`string`,`number`,`symbol`]),uK=new Set([`string`,`number`,`bigint`,`boolean`,`symbol`,`undefined`]),dK={safeint:[-(2**53-1),2**53-1],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]},fK={int64:[BigInt(`-9223372036854775808`),BigInt(`9223372036854775807`)],uint64:[BigInt(0),BigInt(`18446744073709551615`)]},pK=class{constructor(...e){}}}));function hK(e,t=e=>e.message){let n={},r=[];for(let i of e.issues)i.path.length>0?(n[i.path[0]]=n[i.path[0]]||[],n[i.path[0]].push(t(i))):r.push(t(i));return{formErrors:r,fieldErrors:n}}function gK(e,t=e=>e.message){let n={_errors:[]},r=(e,i=[])=>{for(let a of e.issues)if(a.code===`invalid_union`&&a.errors.length)a.errors.map(e=>r({issues:e},[...i,...a.path]));else if(a.code===`invalid_key`)r({issues:a.issues},[...i,...a.path]);else if(a.code===`invalid_element`)r({issues:a.issues},[...i,...a.path]);else{let e=[...i,...a.path];if(e.length===0)n._errors.push(t(a));else{let r=n,i=0;for(;ie.message){let n={errors:[]},r=(e,i=[])=>{var a,o;for(let s of e.issues)if(s.code===`invalid_union`&&s.errors.length)s.errors.map(e=>r({issues:e},[...i,...s.path]));else if(s.code===`invalid_key`)r({issues:s.issues},[...i,...s.path]);else if(s.code===`invalid_element`)r({issues:s.issues},[...i,...s.path]);else{let e=[...i,...s.path];if(e.length===0){n.errors.push(t(s));continue}let r=n,c=0;for(;ctypeof e==`object`?e.key:e);for(let e of n)typeof e==`number`?t.push(`[${e}]`):typeof e==`symbol`?t.push(`[${JSON.stringify(String(e))}]`):/[^\w$]/.test(e)?t.push(`[${JSON.stringify(e)}]`):(t.length&&t.push(`.`),t.push(e));return t.join(``)}function yK(e){let t=[],n=[...e.issues].sort((e,t)=>(e.path??[]).length-(t.path??[]).length);for(let e of n)t.push(`✖ ${e.message}`),e.path?.length&&t.push(` → at ${vK(e.path)}`);return t.join(` -`)}var bK,xK,SK,CK=o((()=>{iG(),mK(),bK=(e,t)=>{e.name=`$ZodError`,Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,fG,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},xK=q(`$ZodError`,bK),SK=q(`$ZodError`,bK,{Parent:Error})})),wK,TK,EK,DK,OK,kK,AK,jK,MK,NK,PK,FK,IK,LK,RK,zK,BK,VK,HK,UK,WK,GK,KK,qK,JK=o((()=>{iG(),CK(),mK(),wK=e=>(t,n,r,i)=>{let a=r?{...r,async:!1}:{async:!1},o=t._zod.run({value:n,issues:[]},a);if(o instanceof Promise)throw new tG;if(o.issues.length){let t=new((i?.Err)??e)(o.issues.map(e=>qG(e,a,ZW())));throw oK(t,i?.callee),t}return o.value},TK=wK(SK),EK=e=>async(t,n,r,i)=>{let a=r?{...r,async:!0}:{async:!0},o=t._zod.run({value:n,issues:[]},a);if(o instanceof Promise&&(o=await o),o.issues.length){let t=new((i?.Err)??e)(o.issues.map(e=>qG(e,a,ZW())));throw oK(t,i?.callee),t}return o.value},DK=EK(SK),OK=e=>(t,n,r)=>{let i=r?{...r,async:!1}:{async:!1},a=t._zod.run({value:n,issues:[]},i);if(a instanceof Promise)throw new tG;return a.issues.length?{success:!1,error:new(e??xK)(a.issues.map(e=>qG(e,i,ZW())))}:{success:!0,data:a.value}},kK=OK(SK),AK=e=>async(t,n,r)=>{let i=r?{...r,async:!0}:{async:!0},a=t._zod.run({value:n,issues:[]},i);return a instanceof Promise&&(a=await a),a.issues.length?{success:!1,error:new e(a.issues.map(e=>qG(e,i,ZW())))}:{success:!0,data:a.value}},jK=AK(SK),MK=e=>(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return wK(e)(t,n,i)},NK=MK(SK),PK=e=>(t,n,r)=>wK(e)(t,n,r),FK=PK(SK),IK=e=>async(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return EK(e)(t,n,i)},LK=IK(SK),RK=e=>async(t,n,r)=>EK(e)(t,n,r),zK=RK(SK),BK=e=>(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return OK(e)(t,n,i)},VK=BK(SK),HK=e=>(t,n,r)=>OK(e)(t,n,r),UK=HK(SK),WK=e=>async(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return AK(e)(t,n,i)},GK=WK(SK),KK=e=>async(t,n,r)=>AK(e)(t,n,r),qK=KK(SK)})),YK=c({base64:()=>Dq,base64url:()=>Oq,bigint:()=>Iq,boolean:()=>zq,browserEmail:()=>bq,cidrv4:()=>Tq,cidrv6:()=>Eq,cuid:()=>nq,cuid2:()=>rq,date:()=>Pq,datetime:()=>$K,domain:()=>Aq,duration:()=>cq,e164:()=>Mq,email:()=>hq,emoji:()=>XK,extendedDuration:()=>lq,guid:()=>uq,hex:()=>Wq,hostname:()=>kq,html5Email:()=>gq,httpProtocol:()=>jq,idnEmail:()=>yq,integer:()=>Lq,ipv4:()=>Sq,ipv6:()=>Cq,ksuid:()=>oq,lowercase:()=>Hq,mac:()=>wq,md5_base64:()=>Kq,md5_base64url:()=>qq,md5_hex:()=>Gq,nanoid:()=>sq,null:()=>Bq,number:()=>Rq,rfc5322Email:()=>_q,sha1_base64:()=>Yq,sha1_base64url:()=>Xq,sha1_hex:()=>Jq,sha256_base64:()=>Qq,sha256_base64url:()=>$q,sha256_hex:()=>Zq,sha384_base64:()=>tJ,sha384_base64url:()=>nJ,sha384_hex:()=>eJ,sha512_base64:()=>iJ,sha512_base64url:()=>aJ,sha512_hex:()=>rJ,string:()=>Fq,time:()=>QK,ulid:()=>iq,undefined:()=>Vq,unicodeEmail:()=>vq,uppercase:()=>Uq,uuid:()=>dq,uuid4:()=>fq,uuid6:()=>pq,uuid7:()=>mq,xid:()=>aq});function XK(){return new RegExp(xq,`u`)}function ZK(e){let t=`(?:[01]\\d|2[0-3]):[0-5]\\d`;return typeof e.precision==`number`?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function QK(e){return RegExp(`^${ZK(e)}$`)}function $K(e){let t=ZK({precision:e.precision}),n=[`Z`];e.local&&n.push(``),e.offset&&n.push(`([+-](?:[01]\\d|2[0-3]):[0-5]\\d)`);let r=`${t}(?:${n.join(`|`)})`;return RegExp(`^${Nq}T(?:${r})$`)}function eq(e,t){return RegExp(`^[A-Za-z0-9+/]{${e}}${t}$`)}function tq(e){return RegExp(`^[A-Za-z0-9_-]{${e}}$`)}var nq,rq,iq,aq,oq,sq,cq,lq,uq,dq,fq,pq,mq,hq,gq,_q,vq,yq,bq,xq,Sq,Cq,wq,Tq,Eq,Dq,Oq,kq,Aq,jq,Mq,Nq,Pq,Fq,Iq,Lq,Rq,zq,Bq,Vq,Hq,Uq,Wq,Gq,Kq,qq,Jq,Yq,Xq,Zq,Qq,$q,eJ,tJ,nJ,rJ,iJ,aJ,oJ=o((()=>{mK(),nq=/^[cC][0-9a-z]{6,}$/,rq=/^[0-9a-z]+$/,iq=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,aq=/^[0-9a-vA-V]{20}$/,oq=/^[A-Za-z0-9]{27}$/,sq=/^[a-zA-Z0-9_-]{21}$/,cq=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,lq=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,uq=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,dq=e=>e?RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,fq=dq(4),pq=dq(6),mq=dq(7),hq=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,gq=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,_q=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,vq=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,yq=vq,bq=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,xq=`^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$`,Sq=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,Cq=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,wq=e=>{let t=jG(e??`:`);return RegExp(`^(?:[0-9A-F]{2}${t}){5}[0-9A-F]{2}$|^(?:[0-9a-f]{2}${t}){5}[0-9a-f]{2}$`)},Tq=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,Eq=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,Dq=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,Oq=/^[A-Za-z0-9_-]*$/,kq=/^(?=.{1,253}\.?$)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?)*\.?$/,Aq=/^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/,jq=/^https?$/,Mq=/^\+[1-9]\d{6,14}$/,Nq=`(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))`,Pq=RegExp(`^${Nq}$`),Fq=e=>{let t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??``}}`:`[\\s\\S]*`;return RegExp(`^${t}$`)},Iq=/^-?\d+n?$/,Lq=/^-?\d+$/,Rq=/^-?\d+(?:\.\d+)?$/,zq=/^(?:true|false)$/i,Bq=/^null$/i,Vq=/^undefined$/i,Hq=/^[^A-Z]*$/,Uq=/^[^a-z]*$/,Wq=/^[0-9a-fA-F]*$/,Gq=/^[0-9a-fA-F]{32}$/,Kq=eq(22,`==`),qq=tq(22),Jq=/^[0-9a-fA-F]{40}$/,Yq=eq(27,`=`),Xq=tq(27),Zq=/^[0-9a-fA-F]{64}$/,Qq=eq(43,`=`),$q=tq(43),eJ=/^[0-9a-fA-F]{96}$/,tJ=eq(64,``),nJ=tq(64),rJ=/^[0-9a-fA-F]{128}$/,iJ=eq(86,`==`),aJ=tq(86)}));function sJ(e,t,n){e.issues.length&&t.issues.push(...GG(n,e.issues))}var cJ,lJ,uJ,dJ,fJ,pJ,mJ,hJ,gJ,_J,vJ,yJ,bJ,xJ,SJ,CJ,wJ,TJ,EJ,DJ,OJ,kJ,AJ,jJ=o((()=>{iG(),oJ(),mK(),cJ=q(`$ZodCheck`,(e,t)=>{var n;e._zod??={},e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),lJ={number:`number`,bigint:`bigint`,object:`date`},uJ=q(`$ZodCheckLessThan`,(e,t)=>{cJ.init(e,t);let n=lJ[typeof t.value];e._zod.onattach.push(e=>{let n=e._zod.bag,r=(t.inclusive?n.maximum:n.exclusiveMaximum)??1/0;t.value{(t.inclusive?r.value<=t.value:r.value{cJ.init(e,t);let n=lJ[typeof t.value];e._zod.onattach.push(e=>{let n=e._zod.bag,r=(t.inclusive?n.minimum:n.exclusiveMinimum)??-1/0;t.value>r&&(t.inclusive?n.minimum=t.value:n.exclusiveMinimum=t.value)}),e._zod.check=r=>{(t.inclusive?r.value>=t.value:r.value>t.value)||r.issues.push({origin:n,code:`too_small`,minimum:typeof t.value==`object`?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),fJ=q(`$ZodCheckMultipleOf`,(e,t)=>{cJ.init(e,t),e._zod.onattach.push(e=>{var n;(n=e._zod.bag).multipleOf??(n.multipleOf=t.value)}),e._zod.check=n=>{if(typeof n.value!=typeof t.value)throw Error(`Cannot mix number and bigint in multiple_of check.`);(typeof n.value==`bigint`?n.value%t.value===BigInt(0):gG(n.value,t.value)===0)||n.issues.push({origin:typeof n.value,code:`not_multiple_of`,divisor:t.value,input:n.value,inst:e,continue:!t.abort})}}),pJ=q(`$ZodCheckNumberFormat`,(e,t)=>{cJ.init(e,t),t.format=t.format||`float64`;let n=t.format?.includes(`int`),r=n?`int`:`number`,[i,a]=dK[t.format];e._zod.onattach.push(e=>{let r=e._zod.bag;r.format=t.format,r.minimum=i,r.maximum=a,n&&(r.pattern=Lq)}),e._zod.check=o=>{let s=o.value;if(n){if(!Number.isInteger(s)){o.issues.push({expected:r,format:t.format,code:`invalid_type`,continue:!1,input:s,inst:e});return}if(!Number.isSafeInteger(s)){s>0?o.issues.push({input:s,code:`too_big`,maximum:2**53-1,note:`Integers must be within the safe integer range.`,inst:e,origin:r,inclusive:!0,continue:!t.abort}):o.issues.push({input:s,code:`too_small`,minimum:-(2**53-1),note:`Integers must be within the safe integer range.`,inst:e,origin:r,inclusive:!0,continue:!t.abort});return}}sa&&o.issues.push({origin:`number`,input:s,code:`too_big`,maximum:a,inclusive:!0,inst:e,continue:!t.abort})}}),mJ=q(`$ZodCheckBigIntFormat`,(e,t)=>{cJ.init(e,t);let[n,r]=fK[t.format];e._zod.onattach.push(e=>{let i=e._zod.bag;i.format=t.format,i.minimum=n,i.maximum=r}),e._zod.check=i=>{let a=i.value;ar&&i.issues.push({origin:`bigint`,input:a,code:`too_big`,maximum:r,inclusive:!0,inst:e,continue:!t.abort})}}),hJ=q(`$ZodCheckMaxSize`,(e,t)=>{var n;cJ.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!mG(t)&&t.size!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag.maximum??1/0;t.maximum{let r=n.value;r.size<=t.maximum||n.issues.push({origin:JG(r),code:`too_big`,maximum:t.maximum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),gJ=q(`$ZodCheckMinSize`,(e,t)=>{var n;cJ.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!mG(t)&&t.size!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag.minimum??-1/0;t.minimum>n&&(e._zod.bag.minimum=t.minimum)}),e._zod.check=n=>{let r=n.value;r.size>=t.minimum||n.issues.push({origin:JG(r),code:`too_small`,minimum:t.minimum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),_J=q(`$ZodCheckSizeEquals`,(e,t)=>{var n;cJ.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!mG(t)&&t.size!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag;n.minimum=t.size,n.maximum=t.size,n.size=t.size}),e._zod.check=n=>{let r=n.value,i=r.size;if(i===t.size)return;let a=i>t.size;n.issues.push({origin:JG(r),...a?{code:`too_big`,maximum:t.size}:{code:`too_small`,minimum:t.size},inclusive:!0,exact:!0,input:n.value,inst:e,continue:!t.abort})}}),vJ=q(`$ZodCheckMaxLength`,(e,t)=>{var n;cJ.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!mG(t)&&t.length!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag.maximum??1/0;t.maximum{let r=n.value;if(r.length<=t.maximum)return;let i=YG(r);n.issues.push({origin:i,code:`too_big`,maximum:t.maximum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),yJ=q(`$ZodCheckMinLength`,(e,t)=>{var n;cJ.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!mG(t)&&t.length!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag.minimum??-1/0;t.minimum>n&&(e._zod.bag.minimum=t.minimum)}),e._zod.check=n=>{let r=n.value;if(r.length>=t.minimum)return;let i=YG(r);n.issues.push({origin:i,code:`too_small`,minimum:t.minimum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),bJ=q(`$ZodCheckLengthEquals`,(e,t)=>{var n;cJ.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!mG(t)&&t.length!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag;n.minimum=t.length,n.maximum=t.length,n.length=t.length}),e._zod.check=n=>{let r=n.value,i=r.length;if(i===t.length)return;let a=YG(r),o=i>t.length;n.issues.push({origin:a,...o?{code:`too_big`,maximum:t.length}:{code:`too_small`,minimum:t.length},inclusive:!0,exact:!0,input:n.value,inst:e,continue:!t.abort})}}),xJ=q(`$ZodCheckStringFormat`,(e,t)=>{var n,r;cJ.init(e,t),e._zod.onattach.push(e=>{let n=e._zod.bag;n.format=t.format,t.pattern&&(n.patterns??=new Set,n.patterns.add(t.pattern))}),t.pattern?(n=e._zod).check??(n.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:`string`,code:`invalid_format`,format:t.format,input:n.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(r=e._zod).check??(r.check=()=>{})}),SJ=q(`$ZodCheckRegex`,(e,t)=>{xJ.init(e,t),e._zod.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:`string`,code:`invalid_format`,format:`regex`,input:n.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),CJ=q(`$ZodCheckLowerCase`,(e,t)=>{t.pattern??=Hq,xJ.init(e,t)}),wJ=q(`$ZodCheckUpperCase`,(e,t)=>{t.pattern??=Uq,xJ.init(e,t)}),TJ=q(`$ZodCheckIncludes`,(e,t)=>{cJ.init(e,t);let n=jG(t.includes),r=new RegExp(typeof t.position==`number`?`^.{${t.position}}${n}`:n);t.pattern=r,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??=new Set,t.patterns.add(r)}),e._zod.check=n=>{n.value.includes(t.includes,t.position)||n.issues.push({origin:`string`,code:`invalid_format`,format:`includes`,includes:t.includes,input:n.value,inst:e,continue:!t.abort})}}),EJ=q(`$ZodCheckStartsWith`,(e,t)=>{cJ.init(e,t);let n=RegExp(`^${jG(t.prefix)}.*`);t.pattern??=n,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??=new Set,t.patterns.add(n)}),e._zod.check=n=>{n.value.startsWith(t.prefix)||n.issues.push({origin:`string`,code:`invalid_format`,format:`starts_with`,prefix:t.prefix,input:n.value,inst:e,continue:!t.abort})}}),DJ=q(`$ZodCheckEndsWith`,(e,t)=>{cJ.init(e,t);let n=RegExp(`.*${jG(t.suffix)}$`);t.pattern??=n,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??=new Set,t.patterns.add(n)}),e._zod.check=n=>{n.value.endsWith(t.suffix)||n.issues.push({origin:`string`,code:`invalid_format`,format:`ends_with`,suffix:t.suffix,input:n.value,inst:e,continue:!t.abort})}}),OJ=q(`$ZodCheckProperty`,(e,t)=>{cJ.init(e,t),e._zod.check=e=>{let n=t.schema._zod.run({value:e.value[t.property],issues:[]},{});if(n instanceof Promise)return n.then(n=>sJ(n,e,t.property));sJ(n,e,t.property)}}),kJ=q(`$ZodCheckMimeType`,(e,t)=>{cJ.init(e,t);let n=new Set(t.mime);e._zod.onattach.push(e=>{e._zod.bag.mime=t.mime}),e._zod.check=r=>{n.has(r.value.type)||r.issues.push({code:`invalid_value`,values:t.mime,input:r.value.type,inst:e,continue:!t.abort})}}),AJ=q(`$ZodCheckOverwrite`,(e,t)=>{cJ.init(e,t),e._zod.check=e=>{e.value=t.tx(e.value)}})})),MJ,NJ=o((()=>{MJ=class{constructor(e=[]){this.content=[],this.indent=0,this&&(this.args=e)}indented(e){this.indent+=1,e(this),--this.indent}write(e){if(typeof e==`function`){e(this,{execution:`sync`}),e(this,{execution:`async`});return}let t=e.split(` +`).replace(Rd,``)}function Bd(e,t){return t=zd(t),zd(e)===t}function Vd(e,t,n,r,a,o){switch(n){case`children`:typeof r==`string`?t===`body`||t===`textarea`&&r===``||zt(e,r):(typeof r==`number`||typeof r==`bigint`)&&t!==`body`&&zt(e,``+r);break;case`className`:Ct(e,`class`,r);break;case`tabIndex`:Ct(e,`tabindex`,r);break;case`dir`:case`role`:case`viewBox`:case`width`:case`height`:Ct(e,n,r);break;case`style`:Ht(e,r,o);break;case`data`:if(t!==`object`){Ct(e,`data`,r);break}case`src`:case`href`:if(r===``&&(t!==`a`||n!==`href`)){e.removeAttribute(n);break}if(r==null||typeof r==`function`||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=Kt(``+r),e.setAttribute(n,r);break;case`action`:case`formAction`:if(typeof r==`function`){e.setAttribute(n,`javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')`);break}if(typeof o==`function`&&(n===`formAction`?(t!==`input`&&Vd(e,t,`name`,a.name,a,null),Vd(e,t,`formEncType`,a.formEncType,a,null),Vd(e,t,`formMethod`,a.formMethod,a,null),Vd(e,t,`formTarget`,a.formTarget,a,null)):(Vd(e,t,`encType`,a.encType,a,null),Vd(e,t,`method`,a.method,a,null),Vd(e,t,`target`,a.target,a,null))),r==null||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=Kt(``+r),e.setAttribute(n,r);break;case`onClick`:r!=null&&(e.onclick=qt);break;case`onScroll`:r!=null&&Dd(`scroll`,e);break;case`onScrollEnd`:r!=null&&Dd(`scrollend`,e);break;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(i(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(i(60));e.innerHTML=n}}break;case`multiple`:e.multiple=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`muted`:e.muted=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`defaultValue`:case`defaultChecked`:case`innerHTML`:case`ref`:break;case`autoFocus`:break;case`xlinkHref`:if(r==null||typeof r==`function`||typeof r==`boolean`||typeof r==`symbol`){e.removeAttribute(`xlink:href`);break}n=Kt(``+r),e.setAttributeNS(`http://www.w3.org/1999/xlink`,`xlink:href`,n);break;case`contentEditable`:case`spellCheck`:case`draggable`:case`value`:case`autoReverse`:case`externalResourcesRequired`:case`focusable`:case`preserveAlpha`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``+r):e.removeAttribute(n);break;case`inert`:case`allowFullScreen`:case`async`:case`autoPlay`:case`controls`:case`default`:case`defer`:case`disabled`:case`disablePictureInPicture`:case`disableRemotePlayback`:case`formNoValidate`:case`hidden`:case`loop`:case`noModule`:case`noValidate`:case`open`:case`playsInline`:case`readOnly`:case`required`:case`reversed`:case`scoped`:case`seamless`:case`itemScope`:r&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``):e.removeAttribute(n);break;case`capture`:case`download`:!0===r?e.setAttribute(n,``):!1!==r&&r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,r):e.removeAttribute(n);break;case`cols`:case`rows`:case`size`:case`span`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`&&!isNaN(r)&&1<=r?e.setAttribute(n,r):e.removeAttribute(n);break;case`rowSpan`:case`start`:r==null||typeof r==`function`||typeof r==`symbol`||isNaN(r)?e.removeAttribute(n):e.setAttribute(n,r);break;case`popover`:Dd(`beforetoggle`,e),Dd(`toggle`,e),St(e,`popover`,r);break;case`xlinkActuate`:wt(e,`http://www.w3.org/1999/xlink`,`xlink:actuate`,r);break;case`xlinkArcrole`:wt(e,`http://www.w3.org/1999/xlink`,`xlink:arcrole`,r);break;case`xlinkRole`:wt(e,`http://www.w3.org/1999/xlink`,`xlink:role`,r);break;case`xlinkShow`:wt(e,`http://www.w3.org/1999/xlink`,`xlink:show`,r);break;case`xlinkTitle`:wt(e,`http://www.w3.org/1999/xlink`,`xlink:title`,r);break;case`xlinkType`:wt(e,`http://www.w3.org/1999/xlink`,`xlink:type`,r);break;case`xmlBase`:wt(e,`http://www.w3.org/XML/1998/namespace`,`xml:base`,r);break;case`xmlLang`:wt(e,`http://www.w3.org/XML/1998/namespace`,`xml:lang`,r);break;case`xmlSpace`:wt(e,`http://www.w3.org/XML/1998/namespace`,`xml:space`,r);break;case`is`:St(e,`is`,r);break;case`innerText`:case`textContent`:break;default:(!(2s)break;var u=c.transferSize,d=c.initiatorType;u&&Gd(d)&&(c=c.responseEnd,o+=u*(c`u`?null:document;function Af(e,t,n){var r=kf;if(r&&typeof t==`string`&&t){var i=Mt(t);i=`link[rel="`+e+`"][href="`+i+`"]`,typeof n==`string`&&(i+=`[crossorigin="`+n+`"]`),wf.has(i)||(wf.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement(`link`),Ud(t,`link`,e),pt(t),r.head.appendChild(t)))}}function jf(e){Ef.D(e),Af(`dns-prefetch`,e,null)}function Mf(e,t){Ef.C(e,t),Af(`preconnect`,e,t)}function Nf(e,t,n){Ef.L(e,t,n);var r=kf;if(r&&e&&t){var i=`link[rel="preload"][as="`+Mt(t)+`"]`;t===`image`&&n&&n.imageSrcSet?(i+=`[imagesrcset="`+Mt(n.imageSrcSet)+`"]`,typeof n.imageSizes==`string`&&(i+=`[imagesizes="`+Mt(n.imageSizes)+`"]`)):i+=`[href="`+Mt(e)+`"]`;var a=i;switch(t){case`style`:a=zf(e);break;case`script`:a=Uf(e)}Cf.has(a)||(e=f({rel:`preload`,href:t===`image`&&n&&n.imageSrcSet?void 0:e,as:t},n),Cf.set(a,e),r.querySelector(i)!==null||t===`style`&&r.querySelector(Bf(a))||t===`script`&&r.querySelector(Wf(a))||(t=r.createElement(`link`),Ud(t,`link`,e),pt(t),r.head.appendChild(t)))}}function Pf(e,t){Ef.m(e,t);var n=kf;if(n&&e){var r=t&&typeof t.as==`string`?t.as:`script`,i=`link[rel="modulepreload"][as="`+Mt(r)+`"][href="`+Mt(e)+`"]`,a=i;switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:a=Uf(e)}if(!Cf.has(a)&&(e=f({rel:`modulepreload`,href:e},t),Cf.set(a,e),n.querySelector(i)===null)){switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:if(n.querySelector(Wf(a)))return}r=n.createElement(`link`),Ud(r,`link`,e),pt(r),n.head.appendChild(r)}}}function Ff(e,t,n){Ef.S(e,t,n);var r=kf;if(r&&e){var i=ft(r).hoistableStyles,a=zf(e);t||=`default`;var o=i.get(a);if(!o){var s={loading:0,preload:null};if(o=r.querySelector(Bf(a)))s.loading=5;else{e=f({rel:`stylesheet`,href:e,"data-precedence":t},n),(n=Cf.get(a))&&qf(e,n);var c=o=r.createElement(`link`);pt(c),Ud(c,`link`,e),c._p=new Promise(function(e,t){c.onload=e,c.onerror=t}),c.addEventListener(`load`,function(){s.loading|=1}),c.addEventListener(`error`,function(){s.loading|=2}),s.loading|=4,Kf(o,t,r)}o={type:`stylesheet`,instance:o,count:1,state:s},i.set(a,o)}}}function If(e,t){Ef.X(e,t);var n=kf;if(n&&e){var r=ft(n).hoistableScripts,i=Uf(e),a=r.get(i);a||(a=n.querySelector(Wf(i)),a||(e=f({src:e,async:!0},t),(t=Cf.get(i))&&Jf(e,t),a=n.createElement(`script`),pt(a),Ud(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Lf(e,t){Ef.M(e,t);var n=kf;if(n&&e){var r=ft(n).hoistableScripts,i=Uf(e),a=r.get(i);a||(a=n.querySelector(Wf(i)),a||(e=f({src:e,async:!0,type:`module`},t),(t=Cf.get(i))&&Jf(e,t),a=n.createElement(`script`),pt(a),Ud(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Rf(e,t,n,r){var a=(a=se.current)?Tf(a):null;if(!a)throw Error(i(446));switch(e){case`meta`:case`title`:return null;case`style`:return typeof n.precedence==`string`&&typeof n.href==`string`?(t=zf(n.href),n=ft(a).hoistableStyles,r=n.get(t),r||(r={type:`style`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};case`link`:if(n.rel===`stylesheet`&&typeof n.href==`string`&&typeof n.precedence==`string`){e=zf(n.href);var o=ft(a).hoistableStyles,s=o.get(e);if(s||(a=a.ownerDocument||a,s={type:`stylesheet`,instance:null,count:0,state:{loading:0,preload:null}},o.set(e,s),(o=a.querySelector(Bf(e)))&&!o._p&&(s.instance=o,s.state.loading=5),Cf.has(e)||(n={rel:`preload`,as:`style`,href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},Cf.set(e,n),o||Hf(a,e,n,s.state))),t&&r===null)throw Error(i(528,``));return s}if(t&&r!==null)throw Error(i(529,``));return null;case`script`:return t=n.async,n=n.src,typeof n==`string`&&t&&typeof t!=`function`&&typeof t!=`symbol`?(t=Uf(n),n=ft(a).hoistableScripts,r=n.get(t),r||(r={type:`script`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};default:throw Error(i(444,e))}}function zf(e){return`href="`+Mt(e)+`"`}function Bf(e){return`link[rel="stylesheet"][`+e+`]`}function Vf(e){return f({},e,{"data-precedence":e.precedence,precedence:null})}function Hf(e,t,n,r){e.querySelector(`link[rel="preload"][as="style"][`+t+`]`)?r.loading=1:(t=e.createElement(`link`),r.preload=t,t.addEventListener(`load`,function(){return r.loading|=1}),t.addEventListener(`error`,function(){return r.loading|=2}),Ud(t,`link`,n),pt(t),e.head.appendChild(t))}function Uf(e){return`[src="`+Mt(e)+`"]`}function Wf(e){return`script[async]`+e}function Gf(e,t,n){if(t.count++,t.instance===null)switch(t.type){case`style`:var r=e.querySelector(`style[data-href~="`+Mt(n.href)+`"]`);if(r)return t.instance=r,pt(r),r;var a=f({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement(`style`),pt(r),Ud(r,`style`,a),Kf(r,n.precedence,e),t.instance=r;case`stylesheet`:a=zf(n.href);var o=e.querySelector(Bf(a));if(o)return t.state.loading|=4,t.instance=o,pt(o),o;r=Vf(n),(a=Cf.get(a))&&qf(r,a),o=(e.ownerDocument||e).createElement(`link`),pt(o);var s=o;return s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),Ud(o,`link`,r),t.state.loading|=4,Kf(o,n.precedence,e),t.instance=o;case`script`:return o=Uf(n.src),(a=e.querySelector(Wf(o)))?(t.instance=a,pt(a),a):(r=n,(a=Cf.get(o))&&(r=f({},n),Jf(r,a)),e=e.ownerDocument||e,a=e.createElement(`script`),pt(a),Ud(a,`link`,r),e.head.appendChild(a),t.instance=a);case`void`:return null;default:throw Error(i(443,t.type))}else t.type===`stylesheet`&&!(t.state.loading&4)&&(r=t.instance,t.state.loading|=4,Kf(r,n.precedence,e));return t.instance}function Kf(e,t,n){for(var r=n.querySelectorAll(`link[rel="stylesheet"][data-precedence],style[data-precedence]`),i=r.length?r[r.length-1]:null,a=i,o=0;o title`):null)}function Qf(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case`meta`:case`title`:return!0;case`style`:if(typeof t.precedence!=`string`||typeof t.href!=`string`||t.href===``)break;return!0;case`link`:if(typeof t.rel!=`string`||typeof t.href!=`string`||t.href===``||t.onLoad||t.onError)break;switch(t.rel){case`stylesheet`:return e=t.disabled,typeof t.precedence==`string`&&e==null;default:return!0}case`script`:if(t.async&&typeof t.async!=`function`&&typeof t.async!=`symbol`&&!t.onLoad&&!t.onError&&t.src&&typeof t.src==`string`)return!0}return!1}function $f(e){return!(e.type===`stylesheet`&&!(e.state.loading&3))}function ep(e,t,n,r){if(n.type===`stylesheet`&&(typeof r.media!=`string`||!1!==matchMedia(r.media).matches)&&!(n.state.loading&4)){if(n.instance===null){var i=zf(r.href),a=t.querySelector(Bf(i));if(a){t=a._p,typeof t==`object`&&t&&typeof t.then==`function`&&(e.count++,e=rp.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=a,pt(a);return}a=t.ownerDocument||t,r=Vf(r),(i=Cf.get(i))&&qf(r,i),a=a.createElement(`link`),pt(a);var o=a;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),Ud(a,`link`,r),n.instance=a}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&!(n.state.loading&3)&&(e.count++,n=rp.bind(e),t.addEventListener(`load`,n),t.addEventListener(`error`,n))}}var tp=0;function np(e,t){return e.stylesheets&&e.count===0&&ap(e,e.stylesheets),0tp?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}function rp(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)ap(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var ip=null;function ap(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,ip=new Map,t.forEach(op,e),ip=null,rp.call(e))}function op(e,t){if(!(t.state.loading&4)){var n=ip.get(e);if(n)var r=n.get(null);else{n=new Map,ip.set(e,n);for(var i=e.querySelectorAll(`link[data-precedence],style[data-precedence]`),a=0;a{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=Zz()}))(),$z=[`#fafafa`,`#e6e4de`,`#bfbdb6`,`#8b8e99`,`#565b69`,`#1d2433`,`#131721`,`#0b0e14`,`#080a10`,`#05070b`],eB=[`#f3ecfd`,`#ece3fb`,`#dcc9f7`,`#d2a6ff`,`#bf94ec`,`#a97ce0`,`#9163d6`,`#7c4dcc`,`#5b32a3`,`#40236f`],tB=[`#eefbe6`,`#dcf7cc`,`#c2f0a6`,`#a5e880`,`#8fe06c`,`#7fd962`,`#66c04b`,`#4f9c3a`,`#3b7a2c`,`#2a5a1f`],nB=[`#fff5e6`,`#ffe9c9`,`#ffd79b`,`#ffc571`,`#ffbc62`,`#ffb454`,`#ef9c33`,`#c87d21`,`#9c5f16`,`#74460f`],rB=[`#fdecee`,`#fbd9dc`,`#f8b6bc`,`#f59099`,`#f37d87`,`#f26d78`,`#e04d5a`,`#c03642`,`#96262f`,`#6f1a21`],iB=[`#e8f6ff`,`#ccebff`,`#a3daff`,`#7dcbff`,`#66c5ff`,`#59c2ff`,`#33a7e6`,`#1e86bd`,`#146694`,`#0d4a6d`],aB={dark:{text:`#bfbdb6`,muted:`#8b8e99`,grid:`#1d2433`,surface:`#131721`,border:`#565b69`},light:{text:`#4a5058`,muted:`#6b7280`,grid:`#eceef0`,surface:`#fcfcfc`,border:`#a4abb4`}},oB={display:`"IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace`,body:`"IBM Plex Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif`},sB={primaryColor:`brand`,primaryShade:{light:7,dark:5},autoContrast:!0,colors:{dark:$z,brand:eB,ok:tB,warn:nB,bad:rB,info:iB},defaultRadius:`md`,fontFamily:oB.body,fontFamilyMonospace:oB.display,headings:{fontFamily:oB.display,fontWeight:`500`},cursorType:`pointer`},cB=()=>({variables:{"--mantine-color-error":`var(--mantine-color-bad-filled)`},light:{},dark:{}}),lB=jF(sB);function uB({dark:e,children:t}){return(0,K.jsx)(kF,{theme:lB,cssVariablesResolver:cB,forceColorScheme:e?`dark`:`light`,children:(0,K.jsx)(AL,{withBorder:!0,radius:`lg`,style:{overflow:`hidden`},children:t})})}function dB({eyebrow:e,title:t,summary:n,onRefresh:r,disabled:i}){return(0,K.jsxs)(ZL,{justify:`space-between`,align:`flex-start`,wrap:`nowrap`,px:{base:`md`,sm:`lg`},pt:`md`,pb:`sm`,children:[(0,K.jsxs)(NI,{miw:0,children:[(0,K.jsx)(aR,{c:`dimmed`,size:`xs`,fw:700,tt:`uppercase`,lts:`0.1em`,children:e}),(0,K.jsx)(Pz,{order:1,fz:`lg`,mt:2,style:{overflow:`hidden`,textOverflow:`ellipsis`,whiteSpace:`nowrap`},children:t}),n&&(0,K.jsx)(aR,{c:`dimmed`,size:`sm`,mt:4,children:n})]}),(0,K.jsx)(_R,{variant:`default`,size:`xs`,leftSection:(0,K.jsx)(Hz,{size:15,weight:`bold`}),onClick:()=>void r(),disabled:i,children:`Refresh`})]})}function fB({error:e,loading:t}){return e?(0,K.jsx)(eR,{color:`bad`,m:`md`,children:e}):t?(0,K.jsxs)(yR,{mih:160,p:`xl`,children:[(0,K.jsx)(WL,{size:`sm`}),(0,K.jsx)(aR,{c:`dimmed`,size:`sm`,ml:`sm`,children:t})]}):null}function pB({active:e,items:t,onChange:n}){return(0,K.jsx)(CL,{type:`auto`,offsetScrollbars:!0,scrollbarSize:6,children:(0,K.jsx)(wz,{value:e,onChange:e=>e&&n(e),variant:`pills`,px:{base:`md`,sm:`lg`},pb:`sm`,children:(0,K.jsx)(wz.List,{style:{flexWrap:`nowrap`},children:t.map(e=>(0,K.jsx)(wz.Tab,{value:e.id,rightSection:e.count===void 0?void 0:(0,K.jsx)(cR,{size:`xs`,variant:`light`,circle:!0,children:e.count}),children:e.label},e.id))})})})}function mB({icon:e,title:t,children:n,tall:r=!1}){return(0,K.jsx)(yR,{mih:r?220:130,p:`xl`,children:(0,K.jsxs)(ZL,{wrap:`nowrap`,children:[(0,K.jsx)(Dz,{variant:`light`,size:`xl`,radius:`md`,children:e}),(0,K.jsxs)(NI,{children:[(0,K.jsx)(aR,{fw:700,size:`sm`,children:t}),(0,K.jsx)(aR,{c:`dimmed`,size:`xs`,mt:3,children:n})]})]})})}function hB({left:e,right:t}){return(0,K.jsxs)(ZL,{justify:`space-between`,px:{base:`md`,sm:`lg`},py:`xs`,style:{borderTop:`1px solid var(--mantine-color-default-border)`},children:[(0,K.jsx)(aR,{c:`dimmed`,size:`xs`,children:e}),(0,K.jsx)(aR,{c:`dimmed`,size:`xs`,ta:`right`,children:t})]})}function gB(e,t=8){let[n,r]=(0,G.useState)(1),i=Math.max(1,Math.ceil(e.length/t));(0,G.useEffect)(()=>{n>i&&r(i)},[n,i]);let a=(n-1)*t;return{page:n,setPage:r,totalPages:i,pageItems:e.slice(a,a+t),from:e.length===0?0:a+1,to:Math.min(a+t,e.length),total:e.length}}function _B({page:e,totalPages:t,from:n,to:r,total:i,onChange:a}){return t<=1?null:(0,K.jsxs)(ZL,{justify:`space-between`,gap:`sm`,px:{base:`md`,sm:`lg`},py:`xs`,style:{borderTop:`1px solid var(--mantine-color-default-border)`},children:[(0,K.jsxs)(aR,{c:`dimmed`,size:`xs`,children:[n,`–`,r,` of `,i]}),(0,K.jsx)(GR,{value:e,total:t,onChange:a,size:`xs`,withEdges:!0,"aria-label":`Table pages`})]})}function vB(e){return aB[e?`dark`:`light`]}function yB(e){let t=e?5:7;return{ok:tB[t],warn:nB[t],bad:rB[t],info:iB[t]}}var bB=jc(),xB=M,SB=me,CB=function(){function e(){this._dragging=!1,this.animationThreshold=15}return e.prototype.render=function(e,t,n,r){var i=t.get(`value`),a=t.get(`status`);if(this._axisModel=e,this._axisPointerModel=t,this._api=n,!(!r&&this._lastValue===i&&this._lastStatus===a)){this._lastValue=i,this._lastStatus=a;var o=this._group,s=this._handle;if(!a||a===`hide`){o&&o.hide(),s&&s.hide();return}o&&o.show(),s&&s.show();var c={};this.makeElOption(c,i,e,t,n);var l=c.graphicKey;l!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=l;var u=this._moveAnimation=this.determineAnimation(e,t);if(!o)o=this._group=new Yu,this.createPointerEl(o,c,e,t),this.createLabelEl(o,c,e,t),n.getZr().add(o);else{var d=he(wB,t,u);this.updatePointerEl(o,c,d),this.updateLabelEl(o,c,d,t)}OB(o,t,!0),this._renderHandle(i)}},e.prototype.remove=function(e){this.clear(e)},e.prototype.dispose=function(e){this.clear(e)},e.prototype.determineAnimation=function(e,t){var n=t.get(`animation`),r=e.axis,i=r.type===`category`,a=t.get(`snap`);if(!a&&!i)return!1;if(n===`auto`||n==null){var o=this.animationThreshold;if(i&&ex(r).w>o)return!0;if(a){var s=dk(e).seriesDataCount,c=r.getExtent();return Math.abs(c[0]-c[1])/s>o}return!1}return n===!0},e.prototype.makeElOption=function(e,t,n,r,i){},e.prototype.createPointerEl=function(e,t,n,r){var i=t.pointer;if(i){var a=bB(e).pointerEl=new of[i.type](xB(t.pointer));e.add(a)}},e.prototype.createLabelEl=function(e,t,n,r){if(t.label){var i=bB(e).labelEl=new ns(xB(t.label));e.add(i),EB(i,r)}},e.prototype.updatePointerEl=function(e,t,n){var r=bB(e).pointerEl;r&&t.pointer&&(r.setStyle(t.pointer.style),n(r,{shape:t.pointer.shape}))},e.prototype.updateLabelEl=function(e,t,n,r){var i=bB(e).labelEl;i&&(i.setStyle(t.label.style),n(i,{x:t.label.x,y:t.label.y}),EB(i,r))},e.prototype._renderHandle=function(e){if(!(this._dragging||!this.updateHandleTransform)){var t=this._axisPointerModel,n=this._api.getZr(),r=this._handle,i=t.getModel(`handle`),a=t.get(`status`);if(!i.get(`show`)||!a||a===`hide`){r&&n.remove(r),this._handle=null;return}var o;this._handle||(o=!0,r=this._handle=jf(i.get(`icon`),{cursor:`move`,draggable:!0,onmousemove:function(e){XS(e.event)},onmousedown:SB(this._onHandleDragMove,this,0,0),drift:SB(this._onHandleDragMove,this),ondragend:SB(this._onHandleDragEnd,this)}),n.add(r)),OB(r,t,!1),r.setStyle(i.getItemStyle(null,[`color`,`borderColor`,`borderWidth`,`opacity`,`shadowColor`,`shadowBlur`,`shadowOffsetX`,`shadowOffsetY`]));var s=i.get(`size`);R(s)||(s=[s,s]),r.scaleX=s[0]/2,r.scaleY=s[1]/2,PS(this,`_doDispatchAxisPointer`,i.get(`throttle`)||0,`fixRate`),this._moveHandleToValue(e,o)}},e.prototype._moveHandleToValue=function(e,t){wB(this._axisPointerModel,!t&&this._moveAnimation,this._handle,DB(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},e.prototype._onHandleDragMove=function(e,t){var n=this._handle;if(n){this._dragging=!0;var r=this.updateHandleTransform(DB(n),[e,t],this._axisModel,this._axisPointerModel);this._payloadInfo=r,n.stopAnimation(),n.attr(DB(r)),bB(n).lastProp=null,this._doDispatchAxisPointer()}},e.prototype._doDispatchAxisPointer=function(){if(this._handle){var e=this._payloadInfo,t=this._axisModel;this._api.dispatchAction({type:`updateAxisPointer`,x:e.cursorPoint[0],y:e.cursorPoint[1],tooltipOption:e.tooltipOption,axesInfo:[{axisDim:t.axis.dim,axisIndex:t.componentIndex}]})}},e.prototype._onHandleDragEnd=function(){if(this._dragging=!1,this._handle){var e=this._axisPointerModel.get(`value`);this._moveHandleToValue(e),this._api.dispatchAction({type:`hideTip`})}},e.prototype.clear=function(e){this._lastValue=null,this._lastStatus=null;var t=e.getZr(),n=this._group,r=this._handle;t&&n&&(this._lastGraphicKey=null,n&&t.remove(n),r&&t.remove(r),this._group=null,this._handle=null,this._payloadInfo=null),FS(this,`_doDispatchAxisPointer`)},e.prototype.doClear=function(){},e.prototype.buildLabel=function(e,t,n){return n||=0,{x:e[n],y:e[1-n],width:t[n],height:t[1-n]}},e}();function wB(e,t,n,r){TB(bB(n).lastProp,r)||(bB(n).lastProp=r,t?Qd(n,r,e):(n.stopAnimation(),n.attr(r)))}function TB(e,t){if(B(e)&&B(t)){var n=!0;return I(t,function(t,r){n&&=TB(e[r],t)}),!!n}return e===t}function EB(e,t){e[t.get([`label`,`show`])?`show`:`hide`]()}function DB(e){return{x:e.x||0,y:e.y||0,rotation:e.rotation||0}}function OB(e,t,n){var r=t.get(`z`),i=t.get(`zlevel`);e&&e.traverse(function(e){e.type!==`group`&&(r!=null&&(e.z=r),i!=null&&(e.zlevel=i),e.silent=n)})}function kB(e){var t=e.get(`type`),n=e.getModel(t+`Style`),r;return t===`line`?(r=n.getLineStyle(),r.fill=null):t===`shadow`&&(r=n.getAreaStyle(),r.stroke=null),r}function AB(e,t,n,r,i){var a=MB(n.get(`value`),t.axis,t.ecModel,n.get(`seriesDataIndices`),{precision:n.get([`label`,`precision`]),formatter:n.get([`label`,`formatter`])}),o=n.getModel(`label`),s=qg(o.get(`padding`)||0),c=o.getFont(),l=wn(a,c),u=i.position,d=l.width+s[1]+s[3],f=l.height+s[0]+s[2],p=i.align;p===`right`&&(u[0]-=d),p===`center`&&(u[0]-=d/2);var m=i.verticalAlign;m===`bottom`&&(u[1]-=f),m===`middle`&&(u[1]-=f/2),jB(u,d,f,r);var h=o.get(`backgroundColor`);(!h||h===`auto`)&&(h=t.get([`axisLine`,`lineStyle`,`color`])),e.label={x:u[0],y:u[1],style:ap(o,{text:a,font:c,fill:o.getTextColor(),padding:s,backgroundColor:h}),z2:10}}function jB(e,t,n,r){var i=r.getWidth(),a=r.getHeight();e[0]=Math.min(e[0]+t,i)-t,e[1]=Math.min(e[1]+n,a)-n,e[0]=Math.max(e[0],0),e[1]=Math.max(e[1],0)}function MB(e,t,n,r,i){e=t.scale.parse(e);var a=t.scale.getLabel({value:e},{precision:i.precision}),o=i.formatter;if(o){var s={value:ib(t,{value:e}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};I(r,function(e){var t=n.getSeriesByIndex(e.seriesIndex),r=e.dataIndexInside,i=t&&t.getDataParams(r);i&&s.seriesData.push(i)}),z(o)?a=o.replace(`{value}`,a):ge(o)&&(a=o(s))}return a}function NB(e,t,n){var r=_t();return St(r,r,n.rotation),xt(r,r,n.position),wf([e.dataToCoord(t),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],r)}function PB(e,t,n,r,i,a){var o=zx.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=i.get([`label`,`margin`]),AB(t,r,i,a,{position:NB(r.axis,e,n),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function FB(e,t,n){return n||=0,{x1:e[n],y1:e[1-n],x2:t[n],y2:t[1-n]}}function IB(e,t,n){return n||=0,{x:e[n],y:e[1-n],width:t[n],height:t[1-n]}}function LB(e,t,n){return ex(e,{fromStat:{sers:L(t,function(e){return n.getSeriesByIndex(e.seriesIndex)})},min:1}).w}function RB(e,t,n){return[bs(ys(t[0],t[1]),e-n/2),ys(e+n/2,bs(t[0],t[1]))]}var zB=function(e){p(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.makeElOption=function(e,t,n,r,i){var a=n.axis,o=a.grid,s=r.get(`type`),c=a.getGlobalExtent(),l=BB(o,a).getOtherAxis(a).getGlobalExtent(),u=a.toGlobalCoord(a.dataToCoord(t,!0));if(s&&s!==`none`){var d=kB(r),f=VB[s](a,u,c,l,r.get(`seriesDataIndices`),r.ecModel);f.style=d,e.graphicKey=f.type,e.pointer=f}PB(t,e,aS(o.getRect(),n),n,r,i)},t.prototype.getHandleTransform=function(e,t,n){var r=aS(t.axis.grid.getRect(),t,{labelInside:!1});r.labelMargin=n.get([`handle`,`margin`]);var i=NB(t.axis,e,r);return{x:i[0],y:i[1],rotation:r.rotation+(r.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,t,n,r){var i=n.axis,a=i.grid,o=i.getGlobalExtent(!0),s=BB(a,i).getOtherAxis(i).getGlobalExtent(),c=i.dim===`x`?0:1,l=[e.x,e.y];l[c]+=t[c],l[c]=ys(o[1],l[c]),l[c]=bs(o[0],l[c]);var u=(s[1]+s[0])/2,d=[u,u];return d[c]=l[c],{x:l[0],y:l[1],rotation:e.rotation,cursorPoint:d,tooltipOption:[{verticalAlign:`middle`},{align:`center`}][c]}},t}(CB);function BB(e,t){var n={};return n[t.dim+`AxisIndex`]=t.index,e.getCartesian(n)}var VB={line:function(e,t,n,r){return{type:`Line`,subPixelOptimize:!0,shape:FB([t,r[0]],[t,r[1]],HB(e))}},shadow:function(e,t,n,r,i,a){var o=LB(e,i,a),s=r[1]-r[0],c=RB(t,n,o),l=c[0],u=c[1];return{type:`Rect`,shape:IB([l,r[0]],[u-l,s],HB(e))}}};function HB(e){return e.dim===`x`?0:1}var UB=function(e){p(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type=`axisPointer`,t.defaultOption={show:`auto`,z:50,type:`line`,snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:H.color.border,width:1,type:`dashed`},shadowStyle:{color:H.color.shadowTint},label:{show:!0,formatter:null,precision:`auto`,margin:3,color:H.color.neutral00,padding:[5,7,5,7],backgroundColor:H.color.accent60,borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:`M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z`,size:45,margin:50,color:H.color.accent40,throttle:40}},t}(h_),WB=jc(),GB=I;function KB(e,t,n){if(!We.node){var r=t.getZr();WB(r).records||(WB(r).records={}),qB(r,t);var i=WB(r).records[e]||(WB(r).records[e]={});i.handler=n}}function qB(e,t){if(WB(e).initialized)return;WB(e).initialized=!0,n(`click`,he(XB,`click`)),n(`mousemove`,he(XB,`mousemove`)),n(`mousewheel`,he(XB,`mousewheel`)),n(`globalout`,YB);function n(n,r){e.on(n,function(n){var i=ZB(t);GB(WB(e).records,function(e){e&&r(e,n,i.dispatchAction)}),JB(i.pendings,t)})}}function JB(e,t){var n=e.showTip.length,r=e.hideTip.length,i;n?i=e.showTip[n-1]:r&&(i=e.hideTip[r-1]),i&&(i.dispatchAction=null,t.dispatchAction(i))}function YB(e,t,n){e.handler(`leave`,null,n)}function XB(e,t,n,r){t.handler(e,n,r)}function ZB(e){var t={showTip:[],hideTip:[]},n=function(r){var i=t[r.type];i?i.push(r):(r.dispatchAction=n,e.dispatchAction(r))};return{dispatchAction:n,pendings:t}}function QB(e,t){if(!We.node){var n=t.getZr();(WB(n).records||{})[e]&&(WB(n).records[e]=null)}}var $B=function(e){p(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(e,t,n){var r=t.getComponent(`tooltip`),i=e.get(`triggerOn`)||r&&r.get(`triggerOn`)||`mousemove|click|mousewheel`;KB(`axisPointer`,n,function(e,t,n){i!==`none`&&(e===`leave`||i.indexOf(e)>=0)&&n({type:`updateAxisPointer`,currTrigger:e,x:t&&t.offsetX,y:t&&t.offsetY})})},t.prototype.remove=function(e,t){QB(`axisPointer`,t)},t.prototype.dispose=function(e,t){QB(`axisPointer`,t)},t.type=`axisPointer`,t}(eT);function eV(e,t){var n=[],r=e.seriesIndex,i;if(r==null||!(i=t.getSeriesByIndex(r)))return{point:[]};var a=i.getData(),o=Ac(a,e);if(o==null||o<0||R(o))return{point:[]};var s=a.getItemGraphicEl(o),c=i.coordinateSystem;if(i.getTooltipPosition)n=i.getTooltipPosition(o)||[];else if(c&&c.dataToPoint)if(e.isStacked){var l=c.getBaseAxis(),u=c.getOtherAxis(l).dim,d=l.dim,f=+(u===`x`||u===`radius`),p=a.mapDimension(d),m=[];m[f]=a.get(p,o),m[1-f]=a.get(a.getCalculationInfo(`stackResultDimension`),o),n=c.dataToPoint(m)||[]}else n=c.dataToPoint(a.getValues(L(c.dimensions,function(e){return a.mapDimension(e)}),o))||[];else if(s){var h=s.getBoundingRect().clone();h.applyTransform(s.transform),n=[h.x+h.width/2,h.y+h.height/2]}return{point:n,el:s}}var tV=jc();function nV(e,t,n){var r=e.currTrigger,i=[e.x,e.y],a=e,o=e.dispatchAction||me(n.dispatchAction,n),s=t.getComponent(`axisPointer`).coordSysAxesInfo;if(s){fV(i)&&(i=eV({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},t).point);var c=fV(i),l=a.axesInfo,u=s.axesInfo,d=r===`leave`||fV(i),f={},p={},m={list:[],map:{}},h={showPointer:he(aV,p),showTooltip:he(oV,m)};I(s.coordSysMap,function(e,t){var n=c||e.containPoint(i);I(s.coordSysAxesInfo[t],function(e,t){var r=e.axis,a=uV(l,e);if(!d&&n&&(!l||a)){var o=a&&a.value;o==null&&!c&&(o=r.pointToData(i)),o!=null&&rV(e,o,h,!1,f)}})});var g={};return I(u,function(e,t){var n=e.linkGroup;n&&!p[t]&&I(n.axesInfo,function(t,r){var i=p[r];if(t!==e&&i){var a=i.value;n.mapper&&(a=e.axis.scale.parse(n.mapper(a,dV(t),dV(e)))),g[e.key]=a}})}),I(g,function(e,t){rV(u[t],e,h,!0,f)}),sV(p,u,f),cV(m,i,e,o),lV(u,o,n),f}}function rV(e,t,n,r,i){var a=e.axis;if(!(a.scale.isBlank()||!a.containData(t))){if(!e.involveSeries){n.showPointer(e,t);return}var o=iV(t,e),s=o.payloadBatch,c=o.snapToValue;s[0]&&i.seriesIndex==null&&P(i,s[0]),!r&&e.snap&&a.containData(c)&&c!=null&&(t=c),n.showPointer(e,t,s),n.showTooltip(e,o,c)}}function iV(e,t){var n=t.axis,r=n.dim,i=e,a=[],o=Number.MAX_VALUE,s=-1;return I(t.seriesModels,function(t,c){var l=t.getData().mapDimensionsAll(r),u,d;if(t.getAxisTooltipData){var f=t.getAxisTooltipData(l,e,n);d=f.dataIndices,u=f.nestestValue}else{if(d=t.indicesOfNearest(r,l[0],e,n.type===`category`?.5:null),!d.length)return;u=t.getData().get(l[0],d[0])}if(tc(u)){var p=e-u,m=Math.abs(p);m<=o&&((m=0&&s<0)&&(o=m,s=p,i=u,a.length=0),I(d,function(e){a.push({seriesIndex:t.seriesIndex,dataIndexInside:e,dataIndex:t.getData().getRawIndex(e)})}))}}),{payloadBatch:a,snapToValue:i}}function aV(e,t,n,r){e[t.key]={value:n,payloadBatch:r}}function oV(e,t,n,r){var i=n.payloadBatch,a=t.axis,o=a.model,s=t.axisPointerModel;if(!(!t.triggerTooltip||!i.length)){var c=t.coordSys.model,l=mk(c),u=e.map[l];u||(u=e.map[l]={coordSysId:c.id,coordSysIndex:c.componentIndex,coordSysType:c.type,coordSysMainType:c.mainType,dataByAxis:[]},e.list.push(u)),u.dataByAxis.push({axisDim:a.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:r,valueLabelOpt:{precision:s.get([`label`,`precision`]),formatter:s.get([`label`,`formatter`])},seriesDataIndices:i.slice()})}}function sV(e,t,n){var r=n.axesInfo=[];I(t,function(t,n){var i=t.axisPointerModel.option,a=e[n];a?(!t.useHandle&&(i.status=`show`),i.value=a.value,i.seriesDataIndices=(a.payloadBatch||[]).slice()):!t.useHandle&&(i.status=`hide`),i.status===`show`&&r.push({axisDim:t.axis.dim,axisIndex:t.axis.model.componentIndex,value:i.value})})}function cV(e,t,n,r){if(fV(t)||!e.list.length){r({type:`hideTip`});return}var i=((e.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};r({type:`showTip`,escapeConnect:!0,x:t[0],y:t[1],tooltipOption:n.tooltipOption,position:n.position,dataIndexInside:i.dataIndexInside,dataIndex:i.dataIndex,seriesIndex:i.seriesIndex,dataByCoordSys:e.list})}function lV(e,t,n){var r=n.getZr(),i=`axisPointerLastHighlights`,a=tV(r)[i]||{},o=tV(r)[i]={};I(e,function(e,t){var n=e.axisPointerModel.option;n.status===`show`&&e.triggerEmphasis&&I(n.seriesDataIndices,function(e){o[e.seriesIndex+`|`+e.dataIndex]=e})});var s=[],c=[];function l(e){return{seriesIndex:e.seriesIndex,dataIndex:e.dataIndex}}I(a,function(e,t){!o[t]&&c.push(l(e))}),I(o,function(e,t){!a[t]&&s.push(l(e))}),c.length&&n.dispatchAction({type:`downplay`,escapeConnect:!0,notBlur:!0,batch:c}),s.length&&n.dispatchAction({type:`highlight`,escapeConnect:!0,notBlur:!0,batch:s})}function uV(e,t){for(var n=0;n<(e||[]).length;n++){var r=e[n];if(t.axis.dim===r.axisDim&&t.axis.model.componentIndex===r.axisIndex)return r}}function dV(e){var t=e.axis.model,n={},r=n.axisDim=e.axis.dim;return n.axisIndex=n[r+`AxisIndex`]=t.componentIndex,n.axisName=n[r+`AxisName`]=t.name,n.axisId=n[r+`AxisId`]=t.id,n}function fV(e){return!e||e[0]==null||isNaN(e[0])||e[1]==null||isNaN(e[1])}function pV(e){gk.registerAxisPointerClass(`CartesianAxisPointer`,zB),e.registerComponentModel(UB),e.registerComponentView($B),e.registerPreprocessor(function(e){if(e){(!e.axisPointer||e.axisPointer.length===0)&&(e.axisPointer={});var t=e.axisPointer.link;t&&!R(t)&&(e.axisPointer.link=[t])}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,{overallReset:function(e,t){e.getComponent(`axisPointer`).coordSysAxesInfo=ik(e,t)}}),e.registerAction({type:`updateAxisPointer`,event:`updateAxisPointer`,update:`:updateAxisPointer`},nV)}function mV(e){xO(Dk),xO(pV)}function hV(e,t){var n=qg(t.get(`padding`)),r=t.getItemStyle([`color`,`opacity`]);return r.fill=t.get(`backgroundColor`),new Zo({shape:{x:e.x-n[3],y:e.y-n[0],width:e.width+n[1]+n[3],height:e.height+n[0]+n[2],r:t.get(`borderRadius`)},style:r,silent:!0,z2:-1})}var gV=function(e){p(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type=`tooltip`,t.dependencies=[`axisPointer`],t.defaultOption={z:60,show:!0,showContent:!0,trigger:`item`,triggerOn:`mousemove|click|mousewheel`,alwaysShowContent:!1,renderMode:`auto`,confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,displayTransition:!0,enterable:!1,backgroundColor:H.color.neutral00,shadowBlur:10,shadowColor:`rgba(0, 0, 0, .2)`,shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,defaultBorderColor:H.color.border,padding:null,extraCssText:``,axisPointer:{type:`line`,axis:`auto`,animation:`auto`,animationDurationUpdate:200,animationEasingUpdate:`exponentialOut`,crossStyle:{color:H.color.borderShade,width:1,type:`dashed`,textStyle:{}}},textStyle:{color:H.color.tertiary,fontSize:14}},t}(h_);function _V(e){var t=e.get(`confine`);return t==null?e.get(`renderMode`)===`richText`:!!t}function vV(e){if(We.domSupported){for(var t=document.documentElement.style,n=0,r=e.length;n-1?(s+=`top:50%`,c+=`translateY(-50%) rotate(`+(l=a===`left`?-225:-45)+`deg)`):(s+=`left:50%`,c+=`translateX(-50%) rotate(`+(l=a===`top`?225:45)+`deg)`);var u=l*Math.PI/180,d=o+i,f=d*Math.abs(Math.cos(u))+d*Math.abs(Math.sin(u)),p=Math.round(((f-Math.SQRT2*i)/2+Math.SQRT2*i-(f-d)/2)*100)/100;s+=`;`+a+`:-`+p+`px`;var m=t+` solid `+i+`px;`;return`
`}function OV(e,t,n){var r=`cubic-bezier(0.23,1,0.32,1)`,i=``,a=``;return n&&(i=` `+e/2+`s `+r,a=`opacity`+i+`,visibility`+i),t||(i=` `+e+`s `+r,a+=(a.length?`,`:``)+(We.transformSupported?``+wV+i:`,left`+i+`,top`+i)),CV+`:`+a}function kV(e,t,n){var r=e.toFixed(0)+`px`,i=t.toFixed(0)+`px`;if(!We.transformSupported)return n?`top:`+i+`;left:`+r+`;`:[[`top`,i],[`left`,r]];var a=We.transform3dSupported,o=`translate`+(a?`3d`:``)+`(`+r+`,`+i+(a?`,0`:``)+`)`;return n?`top:0;left:0;`+wV+`:`+o+`;`:[[`top`,0],[`left`,0],[yV,o]]}function AV(e){var t=[],n=e.get(`fontSize`),r=e.getTextColor();r&&t.push(`color:`+r),t.push(`font:`+e.getFont());var i=V(e.get(`lineHeight`),Math.round(n*3/2));n&&t.push(`line-height:`+i+`px`);var a=e.get(`textShadowColor`),o=e.get(`textShadowBlur`)||0,s=e.get(`textShadowOffsetX`)||0,c=e.get(`textShadowOffsetY`)||0;return a&&o&&t.push(`text-shadow:`+s+`px `+c+`px `+o+`px `+a),I([`decoration`,`align`],function(n){var r=e.get(n);r&&t.push(`text-`+n+`:`+r)}),t.join(`;`)}function jV(e,t,n,r){var i=[],a=e.get(`transitionDuration`),o=e.get(`backgroundColor`),s=e.get(`shadowBlur`),c=e.get(`shadowColor`),l=e.get(`shadowOffsetX`),u=e.get(`shadowOffsetY`),d=e.getModel(`textStyle`),f=dv(e,`html`),p=l+`px `+u+`px `+s+`px `+c;return i.push(`box-shadow:`+p),t&&a>0&&i.push(OV(a,n,r)),o&&i.push(`background-color:`+o),I([`width`,`color`,`radius`],function(t){var n=`border-`+t,r=Kg(n),a=e.get(r);a!=null&&i.push(n+`:`+a+(t===`color`?``:`px`))}),i.push(AV(d)),f!=null&&i.push(`padding:`+qg(f).join(`px `)+`px`),i.join(`;`)+`;`}function MV(e,t,n,r,i){var a=t&&t.painter;if(n){var o=a&&a.getViewportRoot();o&&Lh(e,o,n,r,i)}else{e[0]=r,e[1]=i;var s=a&&a.getViewportRootOffset();s&&(e[0]+=s.offsetLeft,e[1]+=s.offsetTop)}e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var NV=function(){function e(e,t){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,We.wxa)return null;var n=document.createElement(`div`);n.domBelongToZr=!0,this.el=n;var r=this._zr=e.getZr(),i=t.appendTo,a=i&&(z(i)?document.querySelector(i):xe(i)?i:ge(i)&&i(e.getDom()));MV(this._styleCoord,r,a,e.getWidth()/2,e.getHeight()/2),(a||e.getDom()).appendChild(n),this._api=e,this._container=a;var o=this;n.onmouseenter=function(){o._enterable&&(clearTimeout(o._hideTimeout),o._show=!0),o._inContent=!0},n.onmousemove=function(e){if(e||=window.event,!o._enterable){var t=r.handler;KS(r.painter.getViewportRoot(),e,!0),t.dispatch(`mousemove`,e)}},n.onmouseleave=function(){o._inContent=!1,o._enterable&&o._show&&o.hideLater(o._hideDelay)}}return e.prototype.update=function(e){if(!this._container){var t=this._api.getDom(),n=SV(t,`position`),r=t.style;r.position!==`absolute`&&n!==`absolute`&&(r.position=`relative`)}var i=e.get(`alwaysShowContent`);i&&this._moveIfResized(),this._alwaysShowContent=i,this._enableDisplayTransition=e.get(`displayTransition`)&&e.get(`transitionDuration`)>0,this.el.className=e.get(`className`)||``},e.prototype.show=function(e,t){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,r=n.style,i=this._styleCoord;n.innerHTML?r.cssText=TV+jV(e,!this._firstShow,this._longHide,this._enableDisplayTransition)+kV(i[0],i[1],!0)+(`border-color:`+Qg(t)+`;`)+(e.get(`extraCssText`)||``)+(`;pointer-events:`+(this._enterable?`auto`:`none`)):r.display=`none`,this._show=!0,this._firstShow=!1,this._longHide=!1},e.prototype.setContent=function(e,t,n,r,i){var a=this.el;if(e==null){a.innerHTML=``;return}var o=``;if(z(i)&&n.get(`trigger`)===`item`&&!_V(n)&&(o=DV(n,r,i)),z(e))a.innerHTML=e+o;else if(e){a.innerHTML=``,R(e)||(e=[e]);for(var s=0;s=0?this._tryShow(n,r):t===`leave`&&this._hide(r))},this))},t.prototype._keepShow=function(){var e=this._tooltipModel,t=this._ecModel,n=this._api,r=e.get(`triggerOn`);if(e.get(`trigger`)!==`axis`&&(this._lastDataByCoordSys=null,this._cbParamsList=null),this._lastX!=null&&this._lastY!=null&&r!==`none`&&r!==`click`){var i=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!n.isDisposed()&&i.manuallyShowTip(e,t,n,{x:i._lastX,y:i._lastY,dataByCoordSys:i._lastDataByCoordSys})})}},t.prototype.manuallyShowTip=function(e,t,n,r){if(!(r.from===this.uid||We.node||!n.getDom())){var i=VV(r,n);this._ticket=``;var a=r.dataByCoordSys,o=KV(r,t,n);if(o){var s=o.el.getBoundingRect().clone();s.applyTransform(o.el.transform),this._tryShow({offsetX:s.x+s.width/2,offsetY:s.y+s.height/2,target:o.el,position:r.position,positionDefault:`bottom`},i)}else if(r.tooltip&&r.x!=null&&r.y!=null){var c=RV;c.x=r.x,c.y=r.y,c.update(),ol(c).tooltipConfig={name:null,option:r.tooltip},this._tryShow({offsetX:r.x,offsetY:r.y,target:c},i)}else if(a)this._tryShow({offsetX:r.x,offsetY:r.y,position:r.position,dataByCoordSys:a,tooltipOption:r.tooltipOption},i);else if(r.seriesIndex!=null){if(this._manuallyAxisShowTip(e,t,n,r))return;var l=eV(r,t),u=l.point[0],d=l.point[1];u!=null&&d!=null&&this._tryShow({offsetX:u,offsetY:d,target:l.el,position:r.position,positionDefault:`bottom`},i)}else r.x!=null&&r.y!=null&&(n.dispatchAction({type:`updateAxisPointer`,x:r.x,y:r.y}),this._tryShow({offsetX:r.x,offsetY:r.y,position:r.position,target:n.getZr().findHover(r.x,r.y).target},i))}},t.prototype.manuallyHideTip=function(e,t,n,r){var i=this._tooltipContent;this._tooltipModel&&i.hideLater(this._tooltipModel.get(`hideDelay`)),this._lastX=this._lastY=this._lastDataByCoordSys=null,this._cbParamsList=null,r.from!==this.uid&&this._hide(VV(r,n))},t.prototype._manuallyAxisShowTip=function(e,t,n,r){var i=r.seriesIndex,a=r.dataIndex,o=t.getComponent(`axisPointer`).coordSysAxesInfo;if(i!=null&&a!=null&&o!=null){var s=t.getSeriesByIndex(i);if(s&&BV([s.getData().getItemModel(a),s,(s.coordinateSystem||{}).model],this._tooltipModel).get(`trigger`)===`axis`)return n.dispatchAction({type:`updateAxisPointer`,seriesIndex:i,dataIndex:a,position:r.position}),!0}},t.prototype._tryShow=function(e,t){var n=e.target;if(this._tooltipModel){this._lastX=e.offsetX,this._lastY=e.offsetY;var r=e.dataByCoordSys;if(r&&r.length)this._showAxisTooltip(r,e);else if(n){if(ol(n).ssrType===`legend`)return;this._lastDataByCoordSys=null,this._cbParamsList=null;var i,a;zT(n,function(e){if(e.tooltipDisabled)return i=a=null,!0;i||a||(ol(e).dataIndex==null?ol(e).tooltipConfig!=null&&(a=e):i=e)},!0),i?this._showSeriesItemTooltip(e,i,t):a?this._showComponentItemTooltip(e,a,t):this._hide(t)}else this._lastDataByCoordSys=null,this._cbParamsList=null,this._hide(t)}},t.prototype._showOrMove=function(e,t){var n=e.get(`showDelay`);t=me(t,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(t,n):t()},t.prototype._showAxisTooltip=function(e,t){var n=this._ecModel,r=this._tooltipModel,i=[t.offsetX,t.offsetY],a=BV([t.tooltipOption],r),o=this._renderMode,s=[],c=Z_(`section`,{blocks:[],noHeader:!0}),l=[],u=new fv;I(e,function(e){I(e.dataByAxis,function(e){var t=n.getComponent(e.axisDim+`Axis`,e.axisIndex),i=e.value,a=t.axis,d=a.scale.parse(i);if(!(!t||i==null)){var f=MB(i,a,n,e.seriesDataIndices,e.valueLabelOpt),p=Z_(`section`,{header:f,noHeader:!ke(f),sortBlocks:!0,blocks:[]});c.blocks.push(p),I(e.seriesDataIndices,function(i){var a=n.getSeriesByIndex(i.seriesIndex),c=i.dataIndexInside,m=a.getDataParams(c);if(!(m.dataIndex<0)){m.axisDim=e.axisDim,m.axisIndex=e.axisIndex,m.axisType=e.axisType,m.axisId=e.axisId,m.axisValue=ib(t.axis,{value:d}),m.axisValueLabel=f,m.marker=u.makeTooltipMarker(`item`,Qg(m.color),o);var h=T_(a.formatTooltip(c,!0,null)),g=h.frag;if(g){var _=BV([a],r).get(`valueFormatter`);p.blocks.push(_?P({valueFormatter:_},g):g)}h.text&&l.push(h.text),s.push(m)}})}})}),c.blocks.reverse(),l.reverse();var d=t.position,f=rv(c,u,o,a.get(`order`),n.get(`useUTC`),a.get(`textStyle`));f&&l.unshift(f);var p=o===`richText`?` + +`:`
`,m=l.join(p);this._showOrMove(a,function(){this._updateContentNotChangedOnAxis(e,s)?this._updatePosition(a,d,i[0],i[1],this._tooltipContent,s):this._showTooltipContent(a,m,s,Math.random()+``,i[0],i[1],d,null,u)})},t.prototype._showSeriesItemTooltip=function(e,t,n){var r=this._ecModel,i=ol(t),a=i.seriesIndex,o=r.getSeriesByIndex(a),s=i.dataModel||o,c=i.dataIndex,l=i.dataType,u=s.getData(l),d=this._renderMode,f=e.positionDefault,p=BV([u.getItemModel(c),s,o&&(o.coordinateSystem||{}).model],this._tooltipModel,f?{position:f}:null),m=p.get(`trigger`);if(m==null||m===`item`){var h=s.getDataParams(c,l),g=new fv;h.marker=g.makeTooltipMarker(`item`,Qg(h.color),d);var _=T_(s.formatTooltip(c,!1,l)),v=p.get(`order`),y=p.get(`valueFormatter`),b=_.frag,x=b?rv(y?P({valueFormatter:y},b):b,g,d,v,r.get(`useUTC`),p.get(`textStyle`)):_.text,S=`item_`+s.name+`_`+c;this._showOrMove(p,function(){this._showTooltipContent(p,x,h,S,e.offsetX,e.offsetY,e.position,e.target,g)}),n({type:`showTip`,dataIndexInside:c,dataIndex:u.getRawIndex(c),seriesIndex:a,from:this.uid})}},t.prototype._showComponentItemTooltip=function(e,t,n){var r=this._renderMode===`html`,i=ol(t),a=i.tooltipConfig.option||{},o=a.encodeHTMLContent;if(z(a)){var s=a;a={content:s,formatter:s},o=!0}o&&r&&a.content&&(a=M(a),a.content=Gh(a.content));var c=[a],l=this._ecModel.getComponent(i.componentMainType,i.componentIndex);l&&c.push(l),c.push({formatter:a.content});var u=e.positionDefault,d=BV(c,this._tooltipModel,u?{position:u}:null),f=d.get(`content`),p=Math.random()+``,m=new fv;this._showOrMove(d,function(){var n=M(d.get(`formatterParams`)||{});this._showTooltipContent(d,f,n,p,e.offsetX,e.offsetY,e.position,t,m)}),n({type:`showTip`,from:this.uid})},t.prototype._showTooltipContent=function(e,t,n,r,i,a,o,s,c){if(this._ticket=``,!(!e.get(`showContent`)||!e.get(`show`))){var l=this._tooltipContent;l.setEnterable(e.get(`enterable`));var u=e.get(`formatter`);o||=e.get(`position`);var d=t,f=this._getNearestPoint([i,a],n,e.get(`trigger`),e.get(`borderColor`),e.get(`defaultBorderColor`,!0)).color;if(u)if(z(u)){var p=e.ecModel.get(`useUTC`),m=R(n)?n[0]:n,h=m&&m.axisType&&m.axisType.indexOf(`time`)>=0;d=u,h&&(d=Dg(m.axisValue,d,p)),d=Zg(d,n,!0)}else if(ge(u)){var g=me(function(t,r){t===this._ticket&&(l.setContent(r,c,e,f,o),this._updatePosition(e,o,i,a,l,n,s))},this);this._ticket=r,d=u(n,r,g)}else d=u;l.setContent(d,c,e,f,o),l.show(e,f),this._updatePosition(e,o,i,a,l,n,s)}},t.prototype._getNearestPoint=function(e,t,n,r,i){if(n===`axis`||R(t))return{color:r||i};if(!R(t))return{color:r||t.color||t.borderColor}},t.prototype._updatePosition=function(e,t,n,r,i,a,o){var s=this._api.getWidth(),c=this._api.getHeight();t||=e.get(`position`);var l=i.getSize(),u=e.get(`align`),d=e.get(`verticalAlign`),f=o&&o.getBoundingRect().clone();if(o&&f.applyTransform(o.transform),ge(t)&&(t=t([n,r],a,i.el,f,{viewSize:[s,c],contentSize:l.slice()})),R(t))n=js(t[0],s),r=js(t[1],c);else if(B(t)){var p=t;p.width=l[0],p.height=l[1];var m=a_(p,{width:s,height:c});n=m.x,r=m.y,u=null,d=null}else if(z(t)&&o){var h=WV(t,f,l,e.get(`borderWidth`));n=h[0],r=h[1]}else{var h=HV(n,r,i,s,c,u?null:20,d?null:20);n=h[0],r=h[1]}if(u&&(n-=GV(u)?l[0]/2:u===`right`?l[0]:0),d&&(r-=GV(d)?l[1]/2:d===`bottom`?l[1]:0),_V(e)){var h=UV(n,r,i,s,c);n=h[0],r=h[1]}i.moveTo(n,r)},t.prototype._updateContentNotChangedOnAxis=function(e,t){var n=this._lastDataByCoordSys,r=this._cbParamsList,i=!!n&&n.length===e.length;return i&&I(n,function(n,a){var o=n.dataByAxis||[],s=(e[a]||{}).dataByAxis||[];i&&=o.length===s.length,i&&I(o,function(e,n){var a=s[n]||{},o=e.seriesDataIndices||[],c=a.seriesDataIndices||[];i=i&&e.value===a.value&&e.axisType===a.axisType&&e.axisId===a.axisId&&o.length===c.length,i&&I(o,function(e,t){var n=c[t];i=i&&e.seriesIndex===n.seriesIndex&&e.dataIndex===n.dataIndex}),r&&I(e.seriesDataIndices,function(e){var n=e.seriesIndex,a=t[n],o=r[n];a&&o&&o.data!==a.data&&(i=!1)})})}),this._lastDataByCoordSys=e,this._cbParamsList=t,!!i},t.prototype._hide=function(e){this._lastDataByCoordSys=null,this._cbParamsList=null,e({type:`hideTip`,from:this.uid})},t.prototype.dispose=function(e,t){We.node||!t.getDom()||(FS(this,`_updatePosition`),this._tooltipContent.dispose(),QB(`itemTooltip`,t),this._tooltipContent=null,this._tooltipModel=null,this._lastDataByCoordSys=null,this._cbParamsList=null)},t.type=`tooltip`,t}(eT);function BV(e,t,n){var r=t.ecModel,i;n?(i=new Ep(n,r,r),i=new Ep(t.option,i,r)):i=t;for(var a=e.length-1;a>=0;a--){var o=e[a];o&&(o instanceof Ep&&(o=o.get(`tooltip`,!0)),z(o)&&(o={formatter:o}),o&&(i=new Ep(o,i,r)))}return i}function VV(e,t){return e.dispatchAction||me(t.dispatchAction,t)}function HV(e,t,n,r,i,a,o){var s=n.getSize(),c=s[0],l=s[1];return a!=null&&(e+c+a+2>r?e-=c+a:e+=a),o!=null&&(t+l+o>i?t-=l+o:t+=o),[e,t]}function UV(e,t,n,r,i){var a=n.getSize(),o=a[0],s=a[1];return e=Math.min(e+o,r)-o,t=Math.min(t+s,i)-s,e=Math.max(e,0),t=Math.max(t,0),[e,t]}function WV(e,t,n,r){var i=n[0],a=n[1],o=Math.ceil(Math.SQRT2*r)+8,s=0,c=0,l=t.width,u=t.height;switch(e){case`inside`:s=t.x+l/2-i/2,c=t.y+u/2-a/2;break;case`top`:s=t.x+l/2-i/2,c=t.y-a-o;break;case`bottom`:s=t.x+l/2-i/2,c=t.y+u+o;break;case`left`:s=t.x-i-o,c=t.y+u/2-a/2;break;case`right`:s=t.x+l+o,c=t.y+u/2-a/2}return[s,c]}function GV(e){return e===`center`||e===`middle`}function KV(e,t,n){var r=Pc(e).queryOptionMap,i=r.keys()[0];if(!(!i||i===`series`)){var a=Ic(t,i,r.get(i),{useDefault:!1,enableAll:!1,enableNone:!1}).models[0];if(a){var o=n.getViewOfComponentModel(a),s;if(o.group.traverse(function(t){var n=ol(t).tooltipConfig;if(n&&n.name===e.name)return s=t,!0}),s)return{componentMainType:i,componentIndex:a.componentIndex,el:s}}}}function qV(e){xO(pV),e.registerComponentModel(gV),e.registerComponentView(zV),e.registerAction({type:`showTip`,event:`showTip`,update:`tooltip:manuallyShowTip`},Ve),e.registerAction({type:`hideTip`,event:`hideTip`,update:`tooltip:manuallyHideTip`},Ve)}var JV=I;function YV(e){if(e){for(var t in e)if(e.hasOwnProperty(t))return!0}}function XV(e,t,n){var r={};return JV(t,function(t){var a=r[t]=i();JV(e[t],function(e,r){if(nj.isValidType(r)){var i={type:r,visual:e};n&&n(i,t),a[r]=new nj(i),r===`opacity`&&(i=M(i),i.type=`colorAlpha`,a.__hidden.__alphaForOpacity=new nj(i))}})}),r;function i(){var e=function(){};return e.prototype.__hidden=e.prototype,new e}}function ZV(e,t,n){var r;I(n,function(e){t.hasOwnProperty(e)&&YV(t[e])&&(r=!0)}),r&&I(n,function(n){t.hasOwnProperty(n)&&YV(t[n])?e[n]=M(t[n]):delete e[n]})}function QV(e,t,n,r){var i={};return I(e,function(e){i[e]=nj.prepareVisualTypes(t[e])}),{progress:function(e,a){var o;r!=null&&(o=a.getDimensionIndex(r));function s(e){return IT(a,l,e)}function c(e,t){RT(a,l,e,t)}for(var l,u=a.getStore();(l=e.next())!=null;){var d=a.getRawDataItem(l);if(!(d&&d.visualMap===!1))for(var f=r==null?l:u.get(o,l),p=n(f),m=t[p],h=i[p],g=0,_=h.length;g<_;g++){var v=h[g];m[v]&&m[v].applyVisual(f,s,c)}}}}}var $V=function(e,t){if(t===`all`)return{type:`all`,title:e.getLocaleModel().get([`legend`,`selector`,`all`])};if(t===`inverse`)return{type:`inverse`,title:e.getLocaleModel().get([`legend`,`selector`,`inverse`])}},eH=function(e){p(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.layoutMode={type:`box`,ignoreSize:!0},n}return t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n),e.selected=e.selected||{},this._updateSelector(e)},t.prototype.mergeOption=function(t,n){e.prototype.mergeOption.call(this,t,n),this._updateSelector(t)},t.prototype._updateSelector=function(e){var t=e.selector,n=this.ecModel;t===!0&&(t=e.selector=[`all`,`inverse`]),R(t)&&I(t,function(e,r){z(e)&&(e={type:e}),t[r]=N(e,$V(n,e.type))})},t.prototype.optionUpdated=function(){this._updateData(this.ecModel);var e=this._data;if(e[0]&&this.get(`selectedMode`)===`single`){for(var t=!1,n=0;n=0},t.prototype.getOrient=function(){return this.get(`orient`)===`vertical`?{index:1,name:`vertical`}:{index:0,name:`horizontal`}},t.type=`legend.plain`,t.dependencies=[`series`],t.defaultOption={z:4,show:!0,orient:`horizontal`,left:`center`,bottom:H.size.m,align:`auto`,backgroundColor:H.color.transparent,borderColor:H.color.border,borderRadius:0,borderWidth:0,padding:5,itemGap:8,itemWidth:25,itemHeight:14,symbolRotate:`inherit`,symbolKeepAspect:!0,inactiveColor:H.color.disabled,inactiveBorderColor:H.color.disabled,inactiveBorderWidth:`auto`,itemStyle:{color:`inherit`,opacity:`inherit`,borderColor:`inherit`,borderWidth:`auto`,borderCap:`inherit`,borderJoin:`inherit`,borderDashOffset:`inherit`,borderMiterLimit:`inherit`},lineStyle:{width:`auto`,color:`inherit`,inactiveColor:H.color.disabled,inactiveWidth:2,opacity:`inherit`,type:`inherit`,cap:`inherit`,join:`inherit`,dashOffset:`inherit`,miterLimit:`inherit`},textStyle:{color:H.color.secondary},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:`sans-serif`,color:H.color.tertiary,borderWidth:1,borderColor:H.color.border},emphasis:{selectorLabel:{show:!0,color:H.color.quaternary}},selectorPosition:`auto`,selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1},triggerEvent:!1},t}(h_),tH=he,nH=I,rH=Yu,iH=function(e){p(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.newlineDisabled=!1,n}return t.prototype.init=function(){this.group.add(this._contentGroup=new rH),this.group.add(this._selectorGroup=new rH),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(e,t,n){var r=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),e.get(`show`,!0)){var i=e.get(`align`),a=e.get(`orient`);(!i||i===`auto`)&&(i=e.get(`left`)===`right`&&a===`vertical`?`right`:`left`);var o=e.get(`selector`,!0),s=e.get(`selectorPosition`,!0);o&&(!s||s===`auto`)&&(s=a===`horizontal`?`end`:`start`),this.renderInner(i,e,t,n,o,a,s);var c=c_(e,n).refContainer,l=e.getBoxLayoutParams(),u=e.get(`padding`),d=a_(l,c,u),f=this.layoutInner(e,i,d,r,o,s),p=a_(F({width:f.width,height:f.height},l),c,u);this.group.x=p.x-f.x,this.group.y=p.y-f.y,this.group.markRedraw(),this.group.add(this._backgroundEl=hV(f,e))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(e,t,n,r,i,a,o){var s=this.getContentGroup(),c=Le(),l=t.get(`selectedMode`),u=t.get(`triggerEvent`),d=[];n.eachRawSeries(function(e){!e.get(`legendHoverLink`)&&d.push(e.id)}),nH(t.getData(),function(i,a){var o=this,f=i.get(`name`);if(!this.newlineDisabled&&(f===``||f===` +`)){var p=new rH;p.newline=!0,s.add(p);return}var m=n.getSeriesByName(f)[0];if(!c.get(f))if(m){var h=m.getData(),g=h.getVisual(`legendLineStyle`)||{},_=h.getVisual(`legendIcon`),v=h.getVisual(`style`),y=this._createItem(m,f,a,i,t,e,g,v,_,l,r);y.on(`click`,tH(sH,f,null,r,d)).on(`mouseover`,tH(cH,m.name,null,r,d)).on(`mouseout`,tH(lH,m.name,null,r,d)),n.ssr&&y.eachChild(function(e){var t=ol(e);t.seriesIndex=m.seriesIndex,t.dataIndex=a,t.ssrType=`legend`}),u&&y.eachChild(function(e){o.packEventData(e,t,m,a,f)}),c.set(f,!0)}else n.eachRawSeries(function(o){var s=this;if(!c.get(f)&&o.legendVisualProvider){var p=o.legendVisualProvider;if(!p.containName(f))return;var m=p.indexOfName(f),h=p.getItemVisual(m,`style`),g=p.getItemVisual(m,`legendIcon`),_=Qr(h.fill);_&&_[3]===0&&(_[3]=.2,h=P(P({},h),{fill:ai(_,`rgba`)}));var v=this._createItem(o,f,a,i,t,e,{},h,g,l,r);v.on(`click`,tH(sH,null,f,r,d)).on(`mouseover`,tH(cH,null,f,r,d)).on(`mouseout`,tH(lH,null,f,r,d)),n.ssr&&v.eachChild(function(e){var t=ol(e);t.seriesIndex=o.seriesIndex,t.dataIndex=a,t.ssrType=`legend`}),u&&v.eachChild(function(e){s.packEventData(e,t,o,a,f)}),c.set(f,!0)}},this)},this),i&&this._createSelector(i,t,r,a,o)},t.prototype.packEventData=function(e,t,n,r,i){var a={componentType:`legend`,componentIndex:t.componentIndex,dataIndex:r,value:i,seriesIndex:n.seriesIndex};ol(e).eventData=a},t.prototype._createSelector=function(e,t,n,r,i){var a=this.getSelectorGroup();nH(e,function(e){var r=e.type,i=new ns({style:{x:0,y:0,align:`center`,verticalAlign:`middle`},onclick:function(){n.dispatchAction({type:r===`all`?`legendAllSelect`:`legendInverseSelect`,legendId:t.id})}});a.add(i),rp(i,{normal:t.getModel(`selectorLabel`),emphasis:t.getModel([`emphasis`,`selectorLabel`])},{defaultText:e.title}),mu(i)})},t.prototype._createItem=function(e,t,n,r,i,a,o,s,c,l,u){var d=e.visualDrawType,f=i.get(`itemWidth`),p=i.get(`itemHeight`),m=i.isSelected(t),h=r.get(`symbolRotate`),g=r.get(`symbolKeepAspect`),_=r.get(`icon`);c=_||c||`roundRect`;var v=aH(c,r,o,s,d,m,u),y=new rH,b=r.getModel(`textStyle`);if(ge(e.getLegendIcon)&&(!_||_===`inherit`))y.add(e.getLegendIcon({itemWidth:f,itemHeight:p,icon:c,iconRotate:h,itemStyle:v.itemStyle,lineStyle:v.lineStyle,symbolKeepAspect:g}));else{var x=_===`inherit`&&e.getData().getVisual(`symbol`)?h===`inherit`?e.getData().getVisual(`symbolRotate`):h:0;y.add(oH({itemWidth:f,itemHeight:p,icon:c,iconRotate:x,itemStyle:v.itemStyle,lineStyle:v.lineStyle,symbolKeepAspect:g}))}var S=a===`left`?f+5:-5,C=a,w=i.get(`formatter`),T=t;z(w)&&w?T=w.replace(`{name}`,t??``):ge(w)&&(T=w(t));var E=m?b.getTextColor():r.get(`inactiveColor`);y.add(new ns({style:ap(b,{text:T,x:S,y:p/2,fill:E,align:C,verticalAlign:`middle`},{inheritColor:E})}));var D=new Zo({shape:y.getBoundingRect(),style:{fill:`transparent`}}),O=r.getModel(`tooltip`);return O.get(`show`)&&zf({el:D,componentModel:i,itemName:t,itemTooltipOption:O.option}),y.add(D),y.eachChild(function(e){e.silent=!0}),D.silent=!l,this.getContentGroup().add(y),mu(y),y.__legendDataIndex=n,y},t.prototype.layoutInner=function(e,t,n,r,i,a){var o=this.getContentGroup(),s=this.getSelectorGroup();r_(e.get(`orient`),o,e.get(`itemGap`),n.width,n.height);var c=o.getBoundingRect(),l=[-c.x,-c.y];if(s.markRedraw(),o.markRedraw(),i){r_(`horizontal`,s,e.get(`selectorItemGap`,!0));var u=s.getBoundingRect(),d=[-u.x,-u.y],f=e.get(`selectorButtonGap`,!0),p=e.getOrient().index,m=p===0?`width`:`height`,h=p===0?`height`:`width`,g=p===0?`y`:`x`;a===`end`?d[p]+=c[m]+f:l[p]+=u[m]+f,d[1-p]+=c[h]/2-u[h]/2,s.x=d[0],s.y=d[1],o.x=l[0],o.y=l[1];var _={x:0,y:0};return _[m]=c[m]+f+u[m],_[h]=Math.max(c[h],u[h]),_[g]=Math.min(0,u[g]+d[1-p]),_}return o.x=l[0],o.y=l[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type=`legend.plain`,t}(eT);function aH(e,t,n,r,i,a,o){function s(e,t){e.lineWidth===`auto`&&(e.lineWidth=t.lineWidth>0?2:0),nH(e,function(n,r){e[r]===`inherit`&&(e[r]=t[r])})}var c=t.getModel(`itemStyle`),l=c.getItemStyle(),u=e.lastIndexOf(`empty`,0)===0?`fill`:`stroke`,d=c.getShallow(`decal`);l.decal=!d||d===`inherit`?r.decal:FE(d,o),l.fill===`inherit`&&(l.fill=r[i]),l.stroke===`inherit`&&(l.stroke=r[u]),l.opacity===`inherit`&&(l.opacity=(i===`fill`?r:n).opacity),s(l,r);var f=t.getModel(`lineStyle`),p=f.getLineStyle();if(s(p,n),l.fill===`auto`&&(l.fill=r.fill),l.stroke===`auto`&&(l.stroke=r.fill),p.stroke===`auto`&&(p.stroke=r.fill),!a){var m=t.get(`inactiveBorderWidth`),h=l[u];l.lineWidth=m===`auto`?r.lineWidth>0&&h?2:0:l.lineWidth,l.fill=t.get(`inactiveColor`),l.stroke=t.get(`inactiveBorderColor`),p.stroke=f.get(`inactiveColor`),p.lineWidth=f.get(`inactiveWidth`)}return{itemStyle:l,lineStyle:p}}function oH(e){var t=e.icon||`roundRect`,n=jv(t,0,0,e.itemWidth,e.itemHeight,e.itemStyle.fill,e.symbolKeepAspect);return n.setStyle(e.itemStyle),n.rotation=(e.iconRotate||0)*Math.PI/180,n.setOrigin([e.itemWidth/2,e.itemHeight/2]),t.indexOf(`empty`)>-1&&(n.style.stroke=n.style.fill,n.style.fill=H.color.neutral00,n.style.lineWidth=2),n}function sH(e,t,n,r){lH(e,t,n,r),n.dispatchAction({type:`legendToggleSelect`,name:e??t}),cH(e,t,n,r)}function cH(e,t,n,r){n.usingTHL()||n.dispatchAction({type:`highlight`,seriesName:e,name:t,excludeSeriesId:r})}function lH(e,t,n,r){n.usingTHL()||n.dispatchAction({type:`downplay`,seriesName:e,name:t,excludeSeriesId:r})}function uH(e,t,n){var r=e===`allSelect`||e===`inverseSelect`,i={},a=[];n.eachComponent({mainType:`legend`,query:t},function(n){r?n[e]():n[e](t.name),dH(n,i),a.push(n.componentIndex)});var o={};return n.eachComponent(`legend`,function(e){I(i,function(t,n){e[t?`select`:`unSelect`](n)}),dH(e,o)}),r?{selected:o,legendIndex:a}:{name:t.name,selected:o}}function dH(e,t){var n=t||{};return I(e.getData(),function(t){var r=t.get(`name`);if(r!==` +`&&r!==``){var i=e.isSelected(r);n[r]=Be(n,r)?n[r]&&i:i}}),n}function fH(e){e.registerAction(`legendToggleSelect`,`legendselectchanged`,he(uH,`toggleSelected`)),e.registerAction(`legendAllSelect`,`legendselectall`,he(uH,`allSelect`)),e.registerAction(`legendInverseSelect`,`legendinverseselect`,he(uH,`inverseSelect`)),e.registerAction(`legendSelect`,`legendselected`,he(uH,`select`)),e.registerAction(`legendUnSelect`,`legendunselected`,he(uH,`unSelect`))}var pH=al(mH);function mH(e){var t=e.findComponents({mainType:`legend`});t&&t.length&&e.filterSeries(function(e){for(var n=0;nn[i],m=[-d.x,-d.y];t||(m[r]=c[s]);var h=[0,0],g=[-f.x,-f.y],_=V(e.get(`pageButtonGap`,!0),e.get(`itemGap`,!0));p&&(e.get(`pageButtonPosition`,!0)===`end`?g[r]+=n[i]-f[i]:h[r]+=f[i]+_),g[1-r]+=d[a]/2-f[a]/2,c.setPosition(m),l.setPosition(h),u.setPosition(g);var v={x:0,y:0};if(v[i]=p?n[i]:d[i],v[a]=Math.max(d[a],f[a]),v[o]=Math.min(0,f[o]+g[1-r]),l.__rectSize=n[i],p){var y={x:0,y:0};y[i]=Math.max(n[i]-f[i]-_,0),y[a]=v[a],l.setClipPath(new Zo({shape:y})),l.__rectSize=y[i]}else u.eachChild(function(e){e.attr({invisible:!0,silent:!0})});var b=this._getPageInfo(e);return b.pageIndex!=null&&Qd(c,{x:b.contentPosition[0],y:b.contentPosition[1]},p?e:null),this._updatePageInfoView(e,b),v},t.prototype._pageGo=function(e,t,n){var r=this._getPageInfo(t)[e];r!=null&&n.dispatchAction({type:`legendScroll`,scrollDataIndex:r,legendId:t.id})},t.prototype._updatePageInfoView=function(e,t){var n=this._controllerGroup;I([`pagePrev`,`pageNext`],function(r){var i=t[r+`DataIndex`]!=null,a=n.childOfName(r);a&&(a.setStyle(`fill`,i?e.get(`pageIconColor`,!0):e.get(`pageIconInactiveColor`,!0)),a.cursor=i?`pointer`:`default`)});var r=n.childOfName(`pageText`),i=e.get(`pageFormatter`),a=t.pageIndex,o=a==null?0:a+1,s=t.pageCount;r&&i&&r.setStyle(`text`,z(i)?i.replace(`{current}`,o==null?``:o+``).replace(`{total}`,s==null?``:s+``):i({current:o,total:s}))},t.prototype._getPageInfo=function(e){var t=e.get(`scrollDataIndex`,!0),n=this.getContentGroup(),r=this._containerGroup.__rectSize,i=e.getOrient().index,a=yH[i],o=bH[i],s=this._findTargetItemIndex(t),c=n.children(),l=c[s],u=c.length,d=+!!u,f={contentPosition:[n.x,n.y],pageCount:d,pageIndex:d-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!l)return f;var p=v(l);f.contentPosition[i]=-p.s;for(var m=s+1,h=p,g=p,_=null;m<=u;++m)_=v(c[m]),(!_&&g.e>h.s+r||_&&!y(_,h.s))&&(h=g.i>h.i?g:_,h&&(f.pageNextDataIndex??=h.i,++f.pageCount)),g=_;for(var m=s-1,h=p,g=p,_=null;m>=-1;--m)_=v(c[m]),(!_||!y(g,_.s))&&h.i=t&&e.s<=t+r}},t.prototype._findTargetItemIndex=function(e){if(!this._showController)return 0;var t,n=this.getContentGroup(),r;return n.eachChild(function(n,i){var a=n.__legendDataIndex;r==null&&a!=null&&(r=i),a===e&&(t=i)}),t??r},t.type=`legend.scroll`,t}(iH);function SH(e){e.registerAction(`legendScroll`,`legendscroll`,function(e,t){var n=e.scrollDataIndex;n!=null&&t.eachComponent({mainType:`legend`,subType:`scroll`,query:e},function(e){e.setScrollDataIndex(n)})})}function CH(e){xO(hH),e.registerComponentModel(gH),e.registerComponentView(xH),SH(e)}function wH(e){xO(hH),xO(CH)}var TH={get:function(e,t,n){var r=M((EH[e]||{})[t]);return n&&R(r)?r[r.length-1]:r}},EH={color:{active:[`#006edd`,`#e0ffff`],inactive:[H.color.transparent]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:[`circle`,`roundRect`,`diamond`],inactive:[`none`]},symbolSize:{active:[10,50],inactive:[0,0]}},DH=nj.mapVisual,OH=nj.eachVisual,kH=R,AH=I,jH=Ls,MH=As,NH=function(e){p(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.stateList=[`inRange`,`outOfRange`],n.replacableOptionKeys=[`inRange`,`outOfRange`,`target`,`controller`,`color`],n.layoutMode={type:`box`,ignoreSize:!0},n.dataBound=[-1/0,1/0],n.targetVisuals={},n.controllerVisuals={},n}return t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n)},t.prototype.optionUpdated=function(e,t){var n=this.option;!t&&ZV(n,e,this.replacableOptionKeys),this.textStyleModel=this.getModel(`textStyle`),this.resetItemSize(),this.completeVisualOption()},t.prototype.resetVisual=function(e){var t=this.stateList;e=me(e,this),this.controllerVisuals=XV(this.option.controller,t,e),this.targetVisuals=XV(this.option.target,t,e)},t.prototype.getItemSymbol=function(){return null},t.prototype.getTargetSeriesIndices=function(){var e=this,t=this.option.seriesTargets;if(t){var n=[];return AH(t,function(t){if(t.seriesIndex!=null)n.push(t.seriesIndex);else if(t.seriesId!=null){var r;e.ecModel.eachSeries(function(e){e.id===t.seriesId&&(r=e)}),r&&n.push(r.componentIndex)}}),n}var r=this.option.seriesId,i=this.option.seriesIndex;i==null&&r==null&&(i=`all`);var a=Ic(this.ecModel,`series`,{index:i,id:r},{useDefault:!1,enableAll:!0,enableNone:!1}).models;return L(a,function(e){return e.componentIndex})},t.prototype.eachTargetSeries=function(e,t){I(this.getTargetSeriesIndices(),function(n){var r=this.ecModel.getSeriesByIndex(n);r&&e.call(t,r)},this)},t.prototype.isTargetSeries=function(e){var t=!1;return this.eachTargetSeries(function(n){n===e&&(t=!0)}),t},t.prototype.formatValueText=function(e,t,n){var r=this.option,i=r.precision,a=this.dataBound,o=r.formatter,s;n||=[`<`,`>`],R(e)&&(e=e.slice(),s=!0);var c=t?e:s?[l(e[0]),l(e[1])]:l(e);if(z(o))return o.replace(`{value}`,s?c[0]:c).replace(`{value2}`,s?c[1]:c);if(ge(o))return s?o(e[0],e[1]):o(e);if(s)return e[0]===a[0]?n[0]+` `+c[1]:e[1]===a[1]?n[1]+` `+c[0]:c[0]+` - `+c[1];return c;function l(e){return e===a[0]?`min`:e===a[1]?`max`:(+e).toFixed(Math.min(i,20))}},t.prototype.resetExtent=function(){var e=this.option,t=jH([e.min,e.max]);this._dataExtent=t},t.prototype.getDimension=function(e){var t=this,n=this.option.seriesTargets;if(n){var r=de(n,function(n){return n.seriesIndex!=null&&n.seriesIndex===e||n.seriesId!=null&&n.seriesId===t.ecModel.getSeriesByIndex(e).id});if(r)return r.dimension}return this.option.dimension},t.prototype.getDataDimensionIndex=function(e){var t=e.hostModel.seriesIndex,n=this.getDimension(t);if(n!=null)return e.getDimensionIndex(n);for(var r=e.dimensions,i=r.length-1;i>=0;i--){var a=r[i],o=e.getDimensionInfo(a);if(!o.isCalculationCoord)return o.storeDimIndex}},t.prototype.getExtent=function(){return this._dataExtent.slice()},t.prototype.completeVisualOption=function(){var e=this.ecModel,t=this.option,n={inRange:t.inRange,outOfRange:t.outOfRange},r=t.target||={},i=t.controller||={};N(r,n),N(i,n);var a=this.isCategory();o.call(this,r),o.call(this,i),s.call(this,r,`inRange`,`outOfRange`),c.call(this,i);function o(n){kH(t.color)&&!n.inRange&&(n.inRange={color:t.color.slice().reverse()}),n.inRange=n.inRange||{color:e.get(`gradientColor`)}}function s(e,t,n){var r=e[t],i=e[n];r&&!i&&(i=e[n]={},AH(r,function(e,t){if(nj.isValidType(t)){var n=TH.get(t,`inactive`,a);n!=null&&(i[t]=n,t===`color`&&!i.hasOwnProperty(`opacity`)&&!i.hasOwnProperty(`colorAlpha`)&&(i.opacity=[0,0]))}}))}function c(e){var t=(e.inRange||{}).symbol||(e.outOfRange||{}).symbol,n=(e.inRange||{}).symbolSize||(e.outOfRange||{}).symbolSize,r=this.get(`inactiveColor`),i=this.getItemSymbol()||`roundRect`;AH(this.stateList,function(o){var s=this.itemSize,c=e[o];c||=e[o]={color:a?r:[r]},c.symbol??(c.symbol=t&&M(t)||(a?i:[i])),c.symbolSize??(c.symbolSize=n&&M(n)||(a?s[0]:[s[0],s[0]])),c.symbol=DH(c.symbol,function(e){return e===`none`?i:e});var l=c.symbolSize;if(l!=null){var u=-1/0;OH(l,function(e){e>u&&(u=e)}),c.symbolSize=DH(l,function(e){return MH(e,[0,u],[0,s[0]],!0)})}},this)}},t.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get(`itemWidth`)),parseFloat(this.get(`itemHeight`))]},t.prototype.isCategory=function(){return!!this.option.categories},t.prototype.setSelected=function(e){},t.prototype.getSelected=function(){return null},t.prototype.getValueState=function(e){return null},t.prototype.getVisualMeta=function(e){return null},t.type=`visualMap`,t.dependencies=[`series`],t.defaultOption={show:!0,z:4,min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:`vertical`,backgroundColor:H.color.transparent,borderColor:H.color.borderTint,contentColor:H.color.theme[0],inactiveColor:H.color.disabled,borderWidth:0,padding:H.size.m,textGap:10,precision:0,textStyle:{color:H.color.secondary}},t}(h_),PH=[20,140],FH=function(e){p(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.optionUpdated=function(t,n){e.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(e){e.mappingMethod=`linear`,e.dataExtent=this.getExtent()}),this._resetRange()},t.prototype.resetItemSize=function(){e.prototype.resetItemSize.apply(this,arguments);var t=this.itemSize;(t[0]==null||isNaN(t[0]))&&(t[0]=PH[0]),(t[1]==null||isNaN(t[1]))&&(t[1]=PH[1])},t.prototype._resetRange=function(){var e=this.getExtent(),t=this.option.range;!t||t.auto?(e.auto=1,this.option.range=e):R(t)&&(t[0]>t[1]&&t.reverse(),t[0]=Math.max(t[0],e[0]),t[1]=Math.min(t[1],e[1]))},t.prototype.completeVisualOption=function(){e.prototype.completeVisualOption.apply(this,arguments),I(this.stateList,function(e){var t=this.option.controller[e].symbolSize;t&&t[0]!==t[1]&&(t[0]=t[1]/3)},this)},t.prototype.setSelected=function(e){this.option.range=e.slice(),this._resetRange()},t.prototype.getSelected=function(){var e=this.getExtent(),t=Ls((this.get(`range`)||[]).slice());return t[0]>e[1]&&(t[0]=e[1]),t[1]>e[1]&&(t[1]=e[1]),t[0]=n[1]||e<=t[1])?`inRange`:`outOfRange`},t.prototype.findTargetDataIndices=function(e){var t=[];return this.eachTargetSeries(function(n){var r=[],i=n.getData();i.each(this.getDataDimensionIndex(i),function(t,n){e[0]<=t&&t<=e[1]&&r.push(n)},this),t.push({seriesId:n.id,dataIndex:r})},this),t},t.prototype.getVisualMeta=function(e){var t=IH(this,`outOfRange`,this.getExtent()),n=IH(this,`inRange`,this.option.range.slice()),r=[];function i(t,n){r.push({value:t,color:e(t,n)})}for(var a=0,o=0,s=n.length,c=t.length;oe[1])break;r.push({color:this.getControllerVisual(o,`color`,t),offset:a/n})}return r.push({color:this.getControllerVisual(e[1],`color`,t),offset:1}),r},t.prototype._createBarPoints=function(e,t){var n=this.visualMapModel.itemSize;return[[n[0]-t[0],e[0]],[n[0],e[0]],[n[0],e[1]],[n[0]-t[1],e[1]]]},t.prototype._createBarGroup=function(e){var t=this._orient,n=this.visualMapModel.get(`inverse`);return new Yu(t===`horizontal`&&!n?{scaleX:e===`bottom`?1:-1,rotation:Math.PI/2}:t===`horizontal`&&n?{scaleX:e===`bottom`?-1:1,rotation:-Math.PI/2}:t===`vertical`&&!n?{scaleX:e===`left`?1:-1,scaleY:-1}:{scaleX:e===`left`?1:-1})},t.prototype._updateHandle=function(e,t){if(this._useHandle){var n=this._shapes,r=this.visualMapModel,i=n.handleThumbs,a=n.handleLabels,o=r.itemSize,s=r.getExtent(),c=this._applyTransform(`left`,n.mainGroup);HH([0,1],function(l){var u=i[l];u.setStyle(`fill`,t.handlesColor[l]),u.y=e[l];var d=VH(e[l],[0,o[1]],s,!0),f=this.getControllerVisual(d,`symbolSize`);u.scaleX=u.scaleY=f/o[0],u.x=o[0]-f/2;var p=wf(n.handleLabelPoints[l],Cf(u,this.group));if(this._orient===`horizontal`){var m=c===`left`||c===`top`?(o[0]-f)/2:(o[0]-f)/-2;p[1]+=m}a[l].setStyle({x:p[0],y:p[1],text:r.formatValueText(this._dataInterval[l]),verticalAlign:`middle`,align:this._orient===`vertical`?this._applyTransform(`left`,n.mainGroup):`center`})},this)}},t.prototype._showIndicator=function(e,t,n,r){var i=this.visualMapModel,a=i.getExtent(),o=i.itemSize,s=[0,o[1]],c=this._shapes,l=c.indicator;if(l){l.attr(`invisible`,!1);var u=this.getControllerVisual(e,`color`,{convertOpacityToAlpha:!0}),d=this.getControllerVisual(e,`symbolSize`),f=VH(e,a,s,!0),p=o[0]-d/2,m={x:l.x,y:l.y};l.y=f,l.x=p;var h=wf(c.indicatorLabelPoint,Cf(l,this.group)),g=c.indicatorLabel;g.attr(`invisible`,!1);var _=this._applyTransform(`left`,c.mainGroup),v=this._orient===`horizontal`;g.setStyle({text:(n||``)+i.formatValueText(t),verticalAlign:v?_:`middle`,align:v?`center`:_});var y={x:p,y:f,style:{fill:u}},b={style:{x:h[0],y:h[1]}};if(i.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var x={duration:100,easing:`cubicInOut`,additive:!0};l.x=m.x,l.y=m.y,l.animateTo(y,x),g.animateTo(b,x)}else l.attr(y),g.attr(b);this._firstShowIndicator=!1;var S=this._shapes.handleLabels;if(S)for(var C=0;Ci[1]&&(l[1]=1/0),t&&(l[0]===-1/0?this._showIndicator(c,l[1],`< `,o):l[1]===1/0?this._showIndicator(c,l[0],`> `,o):this._showIndicator(c,c,`≈ `,o));var u=this._hoverLinkDataIndices,d=[];(t||XH(n))&&(d=this._hoverLinkDataIndices=n.findTargetDataIndices(l));var f=kc(u,d);this._dispatchHighDown(`downplay`,BH(f[0],n)),this._dispatchHighDown(`highlight`,BH(f[1],n))}},t.prototype._hoverLinkFromSeriesMouseOver=function(e){var t;if(zT(e.target,function(e){var n=ol(e);if(n.dataIndex!=null)return t=n,!0},!0),t){var n=this.ecModel.getSeriesByIndex(t.seriesIndex),r=this.visualMapModel;if(r.isTargetSeries(n)){var i=n.getData(t.dataType),a=i.getStore().get(r.getDataDimensionIndex(i),t.dataIndex);isNaN(a)||this._showIndicator(a,a)}}},t.prototype._hideIndicator=function(){var e=this._shapes;e.indicator&&e.indicator.attr(`invisible`,!0),e.indicatorLabel&&e.indicatorLabel.attr(`invisible`,!0);var t=this._shapes.handleLabels;if(t)for(var n=0;n=0&&(i.dimension=a,r.push(i))}}),e.getData().setVisual(`visualMeta`,r)}}];function tU(e,t,n,r){for(var i=t.targetVisuals[r],a=nj.prepareVisualTypes(i),o={color:LT(e.getData(),`color`)},s=0,c=a.length;s0:e.splitNumber>0)||e.calculable)?`continuous`:`piecewise`}),e.registerAction(QH,$H),I(eU,function(t){e.registerVisual(e.PRIORITY.VISUAL.COMPONENT,t)}),e.registerPreprocessor(rU))}function sU(e){e.registerComponentModel(FH),e.registerComponentView(qH),oU(e)}var cU=function(e){p(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n._pieceList=[],n}return t.prototype.optionUpdated=function(t,n){e.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var r=this._mode=this._determineMode();this._pieceList=[],lU[this._mode].call(this,this._pieceList),this._resetSelected(t,n);var i=this.option.categories;this.resetVisual(function(e,t){r===`categories`?(e.mappingMethod=`category`,e.categories=M(i)):(e.dataExtent=this.getExtent(),e.mappingMethod=`piecewise`,e.pieceList=L(this._pieceList,function(e){return e=M(e),t!==`inRange`&&(e.visual=null),e}))})},t.prototype.completeVisualOption=function(){var t=this.option,n={},r=nj.listVisualTypes(),i=this.isCategory();I(t.pieces,function(e){I(r,function(t){e.hasOwnProperty(t)&&(n[t]=1)})}),I(n,function(e,n){var r=!1;I(this.stateList,function(e){r=r||a(t,e,n)||a(t.target,e,n)},this),!r&&I(this.stateList,function(e){(t[e]||(t[e]={}))[n]=TH.get(n,e===`inRange`?`active`:`inactive`,i)})},this);function a(e,t,n){return e&&e[t]&&e[t].hasOwnProperty(n)}e.prototype.completeVisualOption.apply(this,arguments)},t.prototype._resetSelected=function(e,t){var n=this.option,r=this._pieceList,i=(t?n:e).selected||{};if(n.selected=i,I(r,function(e,t){var n=this.getSelectedMapKey(e);i.hasOwnProperty(n)||(i[n]=!0)},this),n.selectedMode===`single`){var a=!1;I(r,function(e,t){var n=this.getSelectedMapKey(e);i[n]&&(a?i[n]=!1:a=!0)},this)}},t.prototype.getItemSymbol=function(){return this.get(`itemSymbol`)},t.prototype.getSelectedMapKey=function(e){return this._mode===`categories`?e.value+``:e.index+``},t.prototype.getPieceList=function(){return this._pieceList},t.prototype._determineMode=function(){var e=this.option;return e.pieces&&e.pieces.length>0?`pieces`:this.option.categories?`categories`:`splitNumber`},t.prototype.setSelected=function(e){this.option.selected=M(e)},t.prototype.getValueState=function(e){var t=nj.findPieceIndex(e,this._pieceList);return t==null?`outOfRange`:this.option.selected[this.getSelectedMapKey(this._pieceList[t])]?`inRange`:`outOfRange`},t.prototype.findTargetDataIndices=function(e){var t=[],n=this._pieceList;return this.eachTargetSeries(function(r){var i=[],a=r.getData();a.each(this.getDataDimensionIndex(a),function(t,r){nj.findPieceIndex(t,n)===e&&i.push(r)},this),t.push({seriesId:r.id,dataIndex:i})},this),t},t.prototype.getRepresentValue=function(e){var t;if(this.isCategory())t=e.value;else if(e.value!=null)t=e.value;else{var n=e.interval||[];t=n[0]===-1/0&&n[1]===1/0?0:(n[0]+n[1])/2}return t},t.prototype.getVisualMeta=function(e){if(this.isCategory())return;var t=[],n=[``,``],r=this;function i(i,a){var o=r.getRepresentValue({interval:i});a||=r.getValueState(o);var s=e(o,a);i[0]===-1/0?n[0]=s:i[1]===1/0?n[1]=s:t.push({value:i[0],color:s},{value:i[1],color:s})}var a=this._pieceList.slice();if(!a.length)a.push({interval:[-1/0,1/0]});else{var o=a[0].interval[0];o!==-1/0&&a.unshift({interval:[-1/0,o]}),o=a[a.length-1].interval[1],o!==1/0&&a.push({interval:[o,1/0]})}var s=-1/0;return I(a,function(e){var t=e.interval;t&&(t[0]>s&&i([s,t[0]],`outOfRange`),i(t.slice()),s=t[1])},this),{stops:t,outerColors:n}},t.type=`visualMap.piecewise`,t.defaultOption=jh(NH.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:`auto`,itemWidth:20,itemHeight:14,itemSymbol:`roundRect`,pieces:null,categories:null,splitNumber:5,selectedMode:`multiple`,itemGap:10,hoverLink:!0}),t}(NH),lU={splitNumber:function(e){var t=this.option,n=Math.min(t.precision,20),r=this.getExtent(),i=t.splitNumber;i=Math.max(parseInt(i,10),1),t.splitNumber=i;for(var a=(r[1]-r[0])/i;+a.toFixed(n)!==a&&n<5;)n++;t.precision=n,a=+a.toFixed(n),t.minOpen&&e.push({interval:[-1/0,r[0]],close:[0,0]});for(var o=0,s=r[0];o`,`≥`][t[0]]];e.text=e.text||this.formatValueText(e.value==null?e.interval:e.value,!1,n)},this)}};function uU(e,t){var n=e.inverse;(e.orient===`vertical`?!n:n)&&t.reverse()}var dU=function(e){p(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.doRender=function(){var e=this.group;e.removeAll();var t=this.visualMapModel,n=t.get(`textGap`),r=t.textStyleModel,i=this._getItemAlign(),a=t.itemSize,o=this._getViewData(),s=o.endsText,c=we(t.get(`showLabel`,!0),!s),l=!t.get(`selectedMode`);s&&this._renderEndsText(e,s[0],a,c,i),I(o.viewPieceList,function(o){var s=o.piece,u=new Yu;u.onclick=me(this._onItemClick,this,s),this._enableHoverLink(u,o.indexInModelPieceList);var d=t.getRepresentValue(s);if(this._createItemSymbol(u,d,[0,0,a[0],a[1]],l),c){var f=this.visualMapModel.getValueState(d),p=r.get(`align`)||i;u.add(new ns({style:ap(r,{x:p===`right`?-n:a[0]+n,y:a[1]/2,text:s.text,verticalAlign:r.get(`verticalAlign`)||`middle`,align:p,opacity:V(r.get(`opacity`),f===`outOfRange`?.5:1)}),silent:l}))}e.add(u)},this),s&&this._renderEndsText(e,s[1],a,c,i),r_(t.get(`orient`),e,t.get(`itemGap`)),this.renderBackground(e),this.positionGroup(e)},t.prototype._enableHoverLink=function(e,t){var n=this;e.on(`mouseover`,function(){return r(`highlight`)}).on(`mouseout`,function(){return r(`downplay`)});var r=function(e){var r=n.visualMapModel;r.option.hoverLink&&n.api.dispatchAction({type:e,batch:BH(r.findTargetDataIndices(t),r)})}},t.prototype._getItemAlign=function(){var e=this.visualMapModel,t=e.option;if(t.orient===`vertical`)return zH(e,this.api,e.itemSize);var n=t.align;return(!n||n===`auto`)&&(n=`left`),n},t.prototype._renderEndsText=function(e,t,n,r,i){if(t){var a=new Yu,o=this.visualMapModel.textStyleModel;a.add(new ns({style:ap(o,{x:r?i===`right`?n[0]:0:n[0]/2,y:n[1]/2,verticalAlign:`middle`,align:r?i:`center`,text:t})})),e.add(a)}},t.prototype._getViewData=function(){var e=this.visualMapModel,t=L(e.getPieceList(),function(e,t){return{piece:e,indexInModelPieceList:t}}),n=e.get(`text`),r=e.get(`orient`),i=e.get(`inverse`);return(r===`horizontal`?i:!i)?t.reverse():n&&=n.slice().reverse(),{viewPieceList:t,endsText:n}},t.prototype._createItemSymbol=function(e,t,n,r){var i=jv(this.getControllerVisual(t,`symbol`),n[0],n[1],n[2],n[3],this.getControllerVisual(t,`color`));i.silent=r,e.add(i)},t.prototype._onItemClick=function(e){var t=this.visualMapModel,n=t.option,r=n.selectedMode;if(r){var i=M(n.selected),a=t.getSelectedMapKey(e);r===`single`||r===!0?(i[a]=!0,I(i,function(e,t){i[t]=t===a})):i[a]=!i[a],this.api.dispatchAction({type:`selectDataRange`,from:this.uid,visualMapId:this.visualMapModel.id,selected:i})}},t.type=`visualMap.piecewise`,t}(LH);function fU(e){e.registerComponentModel(cU),e.registerComponentView(dU),oU(e)}function pU(e){xO(sU),xO(fU)}var mU={label:{enabled:!0},decal:{show:!1}},hU=jc(),gU=jc(),_U=al(vU);function vU(e,t){var n=e.getModel(`aria`);if(!n.get(`enabled`))return;var r=gU(e).scope||(gU(e).scope={}),i=M(mU);N(i.label,e.getLocaleModel().get(`aria`),!1),N(n.option,i,!1),a(),o();function a(){if(n.getModel(`decal`).get(`show`)){var t=Le();e.eachSeries(function(e){e.isColorBySeries()||(hU(e).scope=t.get(e.type)||t.set(e.type,{}))}),e.eachSeries(function(t){if(ge(t.enableAriaDecal)){t.enableAriaDecal();return}var n=t.getData();if(t.isColorBySeries()){var i=y_(t.ecModel,t.name,r,e.getSeriesCount()),a=n.getVisual(`decal`);n.setVisual(`decal`,u(a,i))}else{var o=t.getRawData(),s={},c=hU(t).scope;n.each(function(e){var t=n.getRawIndex(e);s[t]=e});var l=o.count();o.each(function(e){var r=s[e],i=o.getName(e)||e+``,a=y_(t.ecModel,i,c,l),d=n.getItemVisual(r,`decal`);n.setItemVisual(r,`decal`,u(d,a))})}function u(e,t){var n=e?P(P({},t),e):t;return n.dirty=!0,n}})}}function o(){var r=t.getZr().dom;if(r){var i=e.getLocaleModel().get(`aria`),a=n.getModel(`label`);if(a.option=F(a.option,i),a.get(`enabled`)){if(r.setAttribute(`role`,`img`),a.get(`description`)){r.setAttribute(`aria-label`,a.get(`description`));return}var o=e.getSeriesCount(),u=a.get([`data`,`maxCount`])||10,d=a.get([`series`,`maxCount`])||10,f=Math.min(o,d),p;if(!(o<1)){var m=c();p=m?s(a.get([`general`,`withTitle`]),{title:m}):a.get([`general`,`withoutTitle`]);var h=[],g=o>1?a.get([`series`,`multiple`,`prefix`]):a.get([`series`,`single`,`prefix`]);p+=s(g,{seriesCount:o}),e.eachSeries(function(e,t){if(t1?a.get([`series`,`multiple`,r]):a.get([`series`,`single`,r]),n=s(n,{seriesId:e.seriesIndex,seriesName:e.get(`name`),seriesType:l(e.subType)});var i=e.getData();if(i.count()>u){var c=a.get([`data`,`partialData`]);n+=s(c,{displayCnt:u})}else n+=a.get([`data`,`allData`]);for(var d=a.get([`data`,`separator`,`middle`]),p=a.get([`data`,`separator`,`end`]),m=a.get([`data`,`excludeDimensionId`]),g=[],_=0;_=wU:-c>=wU),f=c>0?c%wU:c%wU+wU,p=!1;p=d?!0:!fi(u)&&f>=CU==!!l;var m=e+n*SU(a),h=t+r*xU(a);this._start&&this._add(`M`,m,h);var g=Math.round(i*TU);if(d){var _=1/this._p,v=(l?1:-1)*(wU-_);this._add(`A`,n,r,g,1,+l,e+n*SU(a+v),t+r*xU(a+v)),_>.01&&this._add(`A`,n,r,g,0,+l,m,h)}else{var y=e+n*SU(o),b=t+r*xU(o);this._add(`A`,n,r,g,+p,+l,y,b)}},e.prototype.rect=function(e,t,n,r){this._add(`M`,e,t),this._add(`l`,n,0),this._add(`l`,0,r),this._add(`l`,-n,0),this._add(`Z`)},e.prototype.closePath=function(){this._d.length>0&&this._add(`Z`)},e.prototype._add=function(e,t,n,r,i,a,o,s,c){for(var l=[],u=this._p,d=1;d`}function HU(e){return``}function UU(e,t){t||={};var n=t.newline?` +`:``;function r(e){var t=e.children,i=e.tag,a=e.attrs,o=e.text;return VU(i,a)+(i===`style`?o||``:Gh(o))+(t?``+n+L(t,function(e){return r(e)}).join(n)+n:``)+HU(i)}return r(e)}function WU(e,t,n){n||={};var r=n.newline?` +`:``,i=` {`+r,a=r+`}`,o=L(fe(e),function(t){return t+i+L(fe(e[t]),function(n){return n+`:`+e[t][n]+`;`}).join(r)+a}).join(r),s=L(fe(t),function(e){return`@keyframes `+e+i+L(fe(t[e]),function(n){return n+i+L(fe(t[e][n]),function(r){var i=t[e][n][r];return r===`d`&&(i=`path("`+i+`")`),r+`:`+i+`;`}).join(r)+a}).join(r)+a}).join(r);return!o&&!s?``:[``].join(r)}function GU(e){return{zrId:e,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function KU(e,t,n,r){return BU(`svg`,`root`,{width:e,height:t,xmlns:PU,"xmlns:xlink":FU,version:`1.1`,baseProfile:`full`,viewBox:r?`0 0 `+e+` `+t:!1},n)}var qU=0;function JU(){return qU++}var YU={cubicIn:`0.32,0,0.67,0`,cubicOut:`0.33,1,0.68,1`,cubicInOut:`0.65,0,0.35,1`,quadraticIn:`0.11,0,0.5,0`,quadraticOut:`0.5,1,0.89,1`,quadraticInOut:`0.45,0,0.55,1`,quarticIn:`0.5,0,0.75,0`,quarticOut:`0.25,1,0.5,1`,quarticInOut:`0.76,0,0.24,1`,quinticIn:`0.64,0,0.78,0`,quinticOut:`0.22,1,0.36,1`,quinticInOut:`0.83,0,0.17,1`,sinusoidalIn:`0.12,0,0.39,0`,sinusoidalOut:`0.61,1,0.88,1`,sinusoidalInOut:`0.37,0,0.63,1`,exponentialIn:`0.7,0,0.84,0`,exponentialOut:`0.16,1,0.3,1`,exponentialInOut:`0.87,0,0.13,1`,circularIn:`0.55,0,1,0.45`,circularOut:`0,0.55,0.45,1`,circularInOut:`0.85,0,0.15,1`},XU=`transform-origin`;function ZU(e,t,n){var r=P({},e.shape);P(r,t),e.buildPath(n,r);var i=new EU;return i.reset(Di(e)),n.rebuildPath(i,1),i.generateStr(),i.getStr()}function QU(e,t){var n=t.originX,r=t.originY;(n||r)&&(e[XU]=n+`px `+r+`px`)}var $U={fill:`fill`,opacity:`opacity`,lineWidth:`stroke-width`,lineDashOffset:`stroke-dashoffset`};function eW(e,t){var n=t.zrId+`-ani-`+t.cssAnimIdx++;return t.cssAnims[n]=e,n}function tW(e,t,n){var r=e.shape.paths,i={},a,o;if(I(r,function(e){var t=GU(n.zrId);t.animation=!0,rW(e,{},t,!0);var r=t.cssAnims,s=t.cssNodes,c=fe(r),l=c.length;if(l){o=c[l-1];var u=r[o];for(var d in u){var f=u[d];i[d]=i[d]||{d:``},i[d].d+=f.d||``}for(var p in s){var m=s[p].animation;m.indexOf(o)>=0&&(a=m)}}}),a){t.d=!1;var s=eW(i,n);return a.replace(o,s)}}function nW(e){return z(e)?YU[e]?`cubic-bezier(`+YU[e]+`)`:Lr(e)?e:``:``}function rW(e,t,n,r){var i=e.animators,a=i.length,o=[];if(e instanceof Pd){var s=tW(e,t,n);if(s)o.push(s);else if(!a)return}else if(!a)return;for(var c={},l=0;l0}).length)return eW(l,n)+` `+i[0]+` both`}for(var g in c){var s=h(c[g]);s&&o.push(s)}if(o.length){var _=n.zrId+`-cls-`+JU();n.cssNodes[`.`+_]={animation:o.join(`,`)},t.class=_}}function iW(e,t,n){if(!e.ignore)if(e.isSilent()){var r={"pointer-events":`none`};aW(r,t,n,!0)}else{var i=e.states.emphasis&&e.states.emphasis.style?e.states.emphasis.style:{},a=i.fill;if(!a){var o=e.style&&e.style.fill,s=e.states.select&&e.states.select.style&&e.states.select.style.fill,c=e.currentStates.indexOf(`select`)>=0&&s||o;c&&(a=ci(c))}var l=i.lineWidth;if(l){var u=!i.strokeNoScale&&e.transform?e.transform[0]:1;l/=u}var r={cursor:`pointer`};a&&(r.fill=a),i.stroke&&(r.stroke=i.stroke),l&&(r[`stroke-width`]=l),aW(r,t,n,!0)}}function aW(e,t,n,r){var i=JSON.stringify(e),a=n.cssStyleCache[i];a||(a=n.zrId+`-cls-`+JU(),n.cssStyleCache[i]=a,n.cssNodes[`.`+a+(r?`:hover`:``)]=e),t.class=t.class?t.class+` `+a:a}var oW=Math.round;function sW(e){return e&&z(e.src)}function cW(e){return e&&ge(e.toDataURL)}function lW(e,t,n,r){NU(function(i,a){var o=i===`fill`||i===`stroke`;o&&Ti(a)?wW(t,e,i,r):o&&Si(a)?TW(n,e,i,r):e[i]=a,o&&r.ssr&&a===`none`&&(e[`pointer-events`]=`visible`)},t,n,!1),CW(n,e,r)}function uW(e,t){var n=rw(t);n&&(n.each(function(t,n){t!=null&&(e[(`ecmeta_`+n).toLowerCase()]=t+``)}),t.isSilent()&&(e[RU+`silent`]=`true`))}function dW(e){return fi(e[0]-1)&&fi(e[1])&&fi(e[2])&&fi(e[3]-1)}function fW(e){return fi(e[4])&&fi(e[5])}function pW(e,t,n){if(t&&!(fW(t)&&dW(t))){var r=n?10:1e4;e.transform=dW(t)?`translate(`+oW(t[4]*r)/r+` `+oW(t[5]*r)/r+`)`:hi(t)}}function mW(e,t,n){for(var r=e.points,i=[],a=0;a`u`){var g=`Image width/height must been given explictly in svg-ssr renderer.`;Oe(f,g),Oe(p,g)}else if(f==null||p==null){var _=function(e,t){if(e){var n=e.elm,r=f||t.width,i=p||t.height;e.tag===`pattern`&&(l?(i=1,r/=a.width):u&&(r=1,i/=a.height)),e.attrs.width=r,e.attrs.height=i,n&&(n.setAttribute(`width`,r),n.setAttribute(`height`,i))}},v=mt(m,null,e,function(e){c||_(S,e),_(d,e)});v&&v.width&&v.height&&(f||=v.width,p||=v.height)}d=BU(`image`,`img`,{href:m,width:f,height:p}),o.width=f,o.height=p}else i.svgElement&&(d=M(i.svgElement),o.width=i.svgWidth,o.height=i.svgHeight);if(d){var y,b;c?y=b=1:l?(b=1,y=o.width/a.width):u?(y=1,b=o.height/a.height):o.patternUnits=`userSpaceOnUse`,y!=null&&!isNaN(y)&&(o.width=y),b!=null&&!isNaN(b)&&(o.height=b);var x=Oi(i);x&&(o.patternTransform=x);var S=BU(`pattern`,``,o,[d]),C=UU(S),w=r.patternCache,T=w[C];T||(T=r.zrId+`-p`+r.patternIdx++,w[C]=T,o.id=T,S=r.defs[T]=BU(`pattern`,T,o,[d])),t[n]=Ei(T)}}function EW(e,t,n){var r=n.clipPathCache,i=n.defs,a=r[e.id];if(!a){a=n.zrId+`-c`+n.clipPathIdx++;var o={id:a};r[e.id]=a,i[a]=BU(`clipPath`,a,o,[yW(e,n)])}t[`clip-path`]=Ei(a)}function DW(e){return document.createTextNode(e)}function OW(e,t,n){e.insertBefore(t,n)}function kW(e,t){e.removeChild(t)}function AW(e,t){e.appendChild(t)}function jW(e){return e.parentNode}function MW(e){return e.nextSibling}function NW(e,t){e.textContent=t}var PW=58,FW=120,IW=BU(``,``);function LW(e){return e===void 0}function RW(e){return e!==void 0}function zW(e,t,n){for(var r={},i=t;i<=n;++i){var a=e[i].key;a!==void 0&&(r[a]=i)}return r}function BW(e,t){var n=e.key===t.key;return e.tag===t.tag&&n}function VW(e){var t,n=e.children,r=e.tag;if(RW(r)){var i=e.elm=zU(r);if(WW(IW,e),R(n))for(t=0;ta?(m=n[c+1]==null?null:n[c+1].elm,HW(e,m,n,i,c)):UW(e,t,r,a))}function KW(e,t){var n=t.elm=e.elm,r=e.children,i=t.children;e!==t&&(WW(e,t),LW(t.text)?RW(r)&&RW(i)?r!==i&&GW(n,r,i):RW(i)?(RW(e.text)&&NW(n,``),HW(n,null,i,0,i.length-1)):RW(r)?UW(n,r,0,r.length-1):RW(e.text)&&NW(n,``):e.text!==t.text&&(RW(r)&&UW(n,r,0,r.length-1),NW(n,t.text)))}function qW(e,t){if(BW(e,t))KW(e,t);else{var n=e.elm,r=jW(n);VW(t),r!==null&&(OW(r,t.elm,MW(n)),UW(r,[e],0,0))}return t}var JW=0,YW=function(){function e(e,t,n){if(this.type=`svg`,this.configLayer=XW(`configLayer`),this.storage=t,this._opts=n=P({},n),this.root=e,this._id=`zr`+JW++,this._oldVNode=KU(n.width,n.height),e&&!n.ssr){var r=this._viewport=document.createElement(`div`);r.style.cssText=`position:relative;overflow:hidden`;var i=this._svgDom=this._oldVNode.elm=zU(`svg`);WW(null,this._oldVNode),r.appendChild(i),e.appendChild(r)}this.resize(n.width,n.height)}return e.prototype.getType=function(){return this.type},e.prototype.getViewportRoot=function(){return this._viewport},e.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},e.prototype.getSvgDom=function(){return this._svgDom},e.prototype.refresh=function(){if(this.root){var e=this.renderToVNode({willUpdate:!0});e.attrs.style=`position:absolute;left:0;top:0;user-select:none`,qW(this._oldVNode,e),this._oldVNode=e}},e.prototype.renderOneToVNode=function(e){return SW(e,GU(this._id))},e.prototype.renderToVNode=function(e){e||={};var t=this.storage.getDisplayList(!0),n=this._width,r=this._height,i=GU(this._id);i.animation=e.animation,i.willUpdate=e.willUpdate,i.compress=e.compress,i.emphasis=e.emphasis,i.ssr=this._opts.ssr;var a=[],o=this._bgVNode=ZW(n,r,this._backgroundColor,i);o&&a.push(o);var s=e.compress?null:this._mainVNode=BU(`g`,`main`,{},[]);this._paintList(t,i,s?s.children:a),s&&a.push(s);var c=L(fe(i.defs),function(e){return i.defs[e]});if(c.length&&a.push(BU(`defs`,`defs`,{},c)),e.animation){var l=WU(i.cssNodes,i.cssAnims,{newline:!0});if(l){var u=BU(`style`,`stl`,{},[],l);a.push(u)}}return KU(n,r,a,e.useViewBox)},e.prototype.renderToString=function(e){return e||={},UU(this.renderToVNode({animation:V(e.cssAnimation,!0),emphasis:V(e.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:V(e.useViewBox,!0)}),{newline:!0})},e.prototype.setBackgroundColor=function(e){this._backgroundColor=e},e.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},e.prototype._paintList=function(e,t,n){for(var r=e.length,i=[],a=0,o,s,c=0,l=0;l=0&&!(d&&s&&d[m]===s[m]);m--);for(var h=p-1;h>m;h--)a--,o=i[a-1];for(var g=m+1;g{if(!i.current)return;let t=tO(i.current,void 0,{renderer:`svg`});t.setOption({animationDuration:280,aria:{enabled:!0,decal:{show:!0},description:n},...e}),r&&t.on(`click`,r);let a=new ResizeObserver(()=>t.resize());return a.observe(i.current),()=>{a.disconnect(),t.dispose()}},[n,r,e]),(0,K.jsx)(`div`,{ref:i,className:`echart`,style:{height:t},role:`img`,"aria-label":n})}var eG=new Intl.NumberFormat(void 0,{maximumFractionDigits:0});function tG(e){return`${(e*100).toFixed(e>=.1?1:2)}%`}function nG(e){return e>=1e3?`${(e/1e3).toFixed(2)}s`:`${e.toFixed(e>=100?0:1)}ms`}function rG(e){let[t,n]=e.split(`/`),r=new Date(t),i=new Date(n);if(Number.isNaN(r.valueOf())||Number.isNaN(i.valueOf()))return e;let a=Math.round((i.valueOf()-r.valueOf())/6e4);return a>=60&&a%60==0?`Last ${a/60}h`:`Last ${Math.max(a,1)}m`}function q(e,t,n){function r(n,r){if(n._zod||Object.defineProperty(n,"_zod",{value:{def:r,constr:o,traits:new Set},enumerable:!1}),n._zod.traits.has(e))return;n._zod.traits.add(e),t(n,r);let i=o.prototype,a=Object.keys(i);for(let e=0;en?.Parent&&t instanceof n.Parent?!0:t?._zod?.traits?.has(e)}),Object.defineProperty(o,"name",{value:e}),o}function iG(e){return e&&Object.assign(uG,e),uG}var aG,oG,sG,cG,lG,uG,dG=o((()=>{oG=Object.freeze({status:`aborted`}),sG=Symbol(`zod_brand`),cG=class extends Error{constructor(){super(`Encountered Promise during synchronous parse. Use .parseAsync() instead.`)}},lG=class extends Error{constructor(e){super(`Encountered unidirectional transform during encode: ${e}`),this.name=`ZodEncodeError`}},(aG=globalThis).__zod_globalConfig??(aG.__zod_globalConfig={}),uG=globalThis.__zod_globalConfig})),fG=c({BIGINT_FORMAT_RANGES:()=>vK,Class:()=>yK,NUMBER_FORMAT_RANGES:()=>_K,aborted:()=>YG,allowsEval:()=>pK,assert:()=>_G,assertEqual:()=>pG,assertIs:()=>hG,assertNever:()=>gG,assertNotEqual:()=>mG,assignProp:()=>EG,base64ToUint8Array:()=>aK,base64urlToUint8Array:()=>sK,cached:()=>bG,captureStackTrace:()=>fK,cleanEnum:()=>iK,cleanRegex:()=>SG,clone:()=>zG,cloneDef:()=>OG,createTransparentProxy:()=>hee,defineLazy:()=>wG,esc:()=>MG,escapeRegex:()=>RG,explicitlyAborted:()=>XG,extend:()=>WG,finalizeIssue:()=>$G,floatSafeRemainder:()=>CG,getElementAtPath:()=>kG,getEnumValues:()=>vG,getLengthableOrigin:()=>tK,getParsedType:()=>mK,getSizableOrigin:()=>eK,hexToUint8Array:()=>lK,isObject:()=>PG,isPlainObject:()=>FG,issue:()=>rK,joinValues:()=>J,jsonStringifyReplacer:()=>yG,merge:()=>KG,mergeDefs:()=>DG,normalizeParams:()=>Y,nullish:()=>xG,numKeys:()=>LG,objectClone:()=>TG,omit:()=>UG,optionalKeys:()=>VG,parsedType:()=>nK,partial:()=>qG,pick:()=>HG,prefixIssues:()=>ZG,primitiveTypes:()=>gK,promiseAllObject:()=>AG,propertyKeyTypes:()=>hK,randomString:()=>jG,required:()=>JG,safeExtend:()=>GG,shallowClone:()=>IG,slugify:()=>NG,stringifyPrimitive:()=>BG,uint8ArrayToBase64:()=>oK,uint8ArrayToBase64url:()=>cK,uint8ArrayToHex:()=>uK,unwrapMessage:()=>QG});function pG(e){return e}function mG(e){return e}function hG(e){}function gG(e){throw Error(`Unexpected value in exhaustive check`)}function _G(e){}function vG(e){let t=Object.values(e).filter(e=>typeof e==`number`);return Object.entries(e).filter(([e,n])=>t.indexOf(+e)===-1).map(([e,t])=>t)}function J(e,t=`|`){return e.map(e=>BG(e)).join(t)}function yG(e,t){return typeof t==`bigint`?t.toString():t}function bG(e){return{get value(){{let t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function xG(e){return e==null}function SG(e){let t=+!!e.startsWith(`^`),n=e.endsWith(`$`)?e.length-1:e.length;return e.slice(t,n)}function CG(e,t){let n=e/t,r=Math.round(n),i=2**-52*Math.max(Math.abs(n),1);return Math.abs(n-r)e?.[t],e):e}function AG(e){let t=Object.keys(e),n=t.map(t=>e[t]);return Promise.all(n).then(e=>{let n={};for(let r=0;rt};if(t?.message!==void 0){if(t?.error!==void 0)throw Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error==`string`?{...t,error:()=>t.error}:t}function hee(e){let t;return new Proxy({},{get(n,r,i){return t??=e(),Reflect.get(t,r,i)},set(n,r,i,a){return t??=e(),Reflect.set(t,r,i,a)},has(n,r){return t??=e(),Reflect.has(t,r)},deleteProperty(n,r){return t??=e(),Reflect.deleteProperty(t,r)},ownKeys(n){return t??=e(),Reflect.ownKeys(t)},getOwnPropertyDescriptor(n,r){return t??=e(),Reflect.getOwnPropertyDescriptor(t,r)},defineProperty(n,r,i){return t??=e(),Reflect.defineProperty(t,r,i)}})}function BG(e){return typeof e==`bigint`?e.toString()+`n`:typeof e==`string`?`"${e}"`:`${e}`}function VG(e){return Object.keys(e).filter(t=>e[t]._zod.optin===`optional`&&e[t]._zod.optout===`optional`)}function HG(e,t){let n=e._zod.def,r=n.checks;if(r&&r.length>0)throw Error(`.pick() cannot be used on object schemas containing refinements`);return zG(e,DG(e._zod.def,{get shape(){let e={};for(let r in t){if(!(r in n.shape))throw Error(`Unrecognized key: "${r}"`);t[r]&&(e[r]=n.shape[r])}return EG(this,`shape`,e),e},checks:[]}))}function UG(e,t){let n=e._zod.def,r=n.checks;if(r&&r.length>0)throw Error(`.omit() cannot be used on object schemas containing refinements`);return zG(e,DG(e._zod.def,{get shape(){let r={...e._zod.def.shape};for(let e in t){if(!(e in n.shape))throw Error(`Unrecognized key: "${e}"`);t[e]&&delete r[e]}return EG(this,`shape`,r),r},checks:[]}))}function WG(e,t){if(!FG(t))throw Error(`Invalid input to extend: expected a plain object`);let n=e._zod.def.checks;if(n&&n.length>0){let n=e._zod.def.shape;for(let e in t)if(Object.getOwnPropertyDescriptor(n,e)!==void 0)throw Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}return zG(e,DG(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t};return EG(this,`shape`,n),n}}))}function GG(e,t){if(!FG(t))throw Error(`Invalid input to safeExtend: expected a plain object`);return zG(e,DG(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t};return EG(this,`shape`,n),n}}))}function KG(e,t){if(e._zod.def.checks?.length)throw Error(`.merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.`);return zG(e,DG(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t._zod.def.shape};return EG(this,`shape`,n),n},get catchall(){return t._zod.def.catchall},checks:t._zod.def.checks??[]}))}function qG(e,t,n){let r=t._zod.def.checks;if(r&&r.length>0)throw Error(`.partial() cannot be used on object schemas containing refinements`);return zG(t,DG(t._zod.def,{get shape(){let r=t._zod.def.shape,i={...r};if(n)for(let t in n){if(!(t in r))throw Error(`Unrecognized key: "${t}"`);n[t]&&(i[t]=e?new e({type:`optional`,innerType:r[t]}):r[t])}else for(let t in r)i[t]=e?new e({type:`optional`,innerType:r[t]}):r[t];return EG(this,`shape`,i),i},checks:[]}))}function JG(e,t,n){return zG(t,DG(t._zod.def,{get shape(){let r=t._zod.def.shape,i={...r};if(n)for(let t in n){if(!(t in i))throw Error(`Unrecognized key: "${t}"`);n[t]&&(i[t]=new e({type:`nonoptional`,innerType:r[t]}))}else for(let t in r)i[t]=new e({type:`nonoptional`,innerType:r[t]});return EG(this,`shape`,i),i}}))}function YG(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n{var n;return(n=t).path??(n.path=[]),t.path.unshift(e),t})}function QG(e){return typeof e==`string`?e:e?.message}function $G(e,t,n){let r=e.message?e.message:QG(e.inst?._zod.def?.error?.(e))??QG(t?.error?.(e))??QG(n.customError?.(e))??QG(n.localeError?.(e))??`Invalid input`,{inst:i,continue:a,input:o,...s}=e;return s.path??=[],s.message=r,t?.reportInput&&(s.input=o),s}function eK(e){return e instanceof Set?`set`:e instanceof Map?`map`:e instanceof File?`file`:`unknown`}function tK(e){return Array.isArray(e)?`array`:typeof e==`string`?`string`:`unknown`}function nK(e){let t=typeof e;switch(t){case`number`:return Number.isNaN(e)?`nan`:`number`;case`object`:{if(e===null)return`null`;if(Array.isArray(e))return`array`;let t=e;if(t&&Object.getPrototypeOf(t)!==Object.prototype&&`constructor`in t&&t.constructor)return t.constructor.name}}return t}function rK(...e){let[t,n,r]=e;return typeof t==`string`?{message:t,code:`custom`,input:n,inst:r}:{...t}}function iK(e){return Object.entries(e).filter(([e,t])=>Number.isNaN(Number.parseInt(e,10))).map(e=>e[1])}function aK(e){let t=atob(e),n=new Uint8Array(t.length);for(let e=0;ee.toString(16).padStart(2,`0`)).join(``)}var dK,fK,pK,mK,hK,gK,_K,vK,yK,bK=o((()=>{dG(),dK=Symbol(`evaluating`),fK=`captureStackTrace`in Error?Error.captureStackTrace:(...e)=>{},pK=bG(()=>{if(uG.jitless||typeof navigator<`u`&&navigator?.userAgent?.includes(`Cloudflare`))return!1;try{return Function(``),!0}catch{return!1}}),mK=e=>{let t=typeof e;switch(t){case`undefined`:return`undefined`;case`string`:return`string`;case`number`:return Number.isNaN(e)?`nan`:`number`;case`boolean`:return`boolean`;case`function`:return`function`;case`bigint`:return`bigint`;case`symbol`:return`symbol`;case`object`:return Array.isArray(e)?`array`:e===null?`null`:e.then&&typeof e.then==`function`&&e.catch&&typeof e.catch==`function`?`promise`:typeof Map<`u`&&e instanceof Map?`map`:typeof Set<`u`&&e instanceof Set?`set`:typeof Date<`u`&&e instanceof Date?`date`:typeof File<`u`&&e instanceof File?`file`:`object`;default:throw Error(`Unknown data type: ${t}`)}},hK=new Set([`string`,`number`,`symbol`]),gK=new Set([`string`,`number`,`bigint`,`boolean`,`symbol`,`undefined`]),_K={safeint:[-(2**53-1),2**53-1],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]},vK={int64:[BigInt(`-9223372036854775808`),BigInt(`9223372036854775807`)],uint64:[BigInt(0),BigInt(`18446744073709551615`)]},yK=class{constructor(...e){}}}));function xK(e,t=e=>e.message){let n={},r=[];for(let i of e.issues)i.path.length>0?(n[i.path[0]]=n[i.path[0]]||[],n[i.path[0]].push(t(i))):r.push(t(i));return{formErrors:r,fieldErrors:n}}function SK(e,t=e=>e.message){let n={_errors:[]},r=(e,i=[])=>{for(let a of e.issues)if(a.code===`invalid_union`&&a.errors.length)a.errors.map(e=>r({issues:e},[...i,...a.path]));else if(a.code===`invalid_key`)r({issues:a.issues},[...i,...a.path]);else if(a.code===`invalid_element`)r({issues:a.issues},[...i,...a.path]);else{let e=[...i,...a.path];if(e.length===0)n._errors.push(t(a));else{let r=n,i=0;for(;ie.message){let n={errors:[]},r=(e,i=[])=>{var a,o;for(let s of e.issues)if(s.code===`invalid_union`&&s.errors.length)s.errors.map(e=>r({issues:e},[...i,...s.path]));else if(s.code===`invalid_key`)r({issues:s.issues},[...i,...s.path]);else if(s.code===`invalid_element`)r({issues:s.issues},[...i,...s.path]);else{let e=[...i,...s.path];if(e.length===0){n.errors.push(t(s));continue}let r=n,c=0;for(;ctypeof e==`object`?e.key:e);for(let e of n)typeof e==`number`?t.push(`[${e}]`):typeof e==`symbol`?t.push(`[${JSON.stringify(String(e))}]`):/[^\w$]/.test(e)?t.push(`[${JSON.stringify(e)}]`):(t.length&&t.push(`.`),t.push(e));return t.join(``)}function TK(e){let t=[],n=[...e.issues].sort((e,t)=>(e.path??[]).length-(t.path??[]).length);for(let e of n)t.push(`✖ ${e.message}`),e.path?.length&&t.push(` → at ${wK(e.path)}`);return t.join(` +`)}var EK,DK,OK,kK=o((()=>{dG(),bK(),EK=(e,t)=>{e.name=`$ZodError`,Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,yG,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},DK=q(`$ZodError`,EK),OK=q(`$ZodError`,EK,{Parent:Error})})),AK,jK,MK,NK,PK,FK,IK,LK,RK,zK,BK,VK,HK,UK,WK,GK,KK,qK,JK,YK,XK,ZK,QK,$K,eq=o((()=>{dG(),kK(),bK(),AK=e=>(t,n,r,i)=>{let a=r?{...r,async:!1}:{async:!1},o=t._zod.run({value:n,issues:[]},a);if(o instanceof Promise)throw new cG;if(o.issues.length){let t=new((i?.Err)??e)(o.issues.map(e=>$G(e,a,iG())));throw fK(t,i?.callee),t}return o.value},jK=AK(OK),MK=e=>async(t,n,r,i)=>{let a=r?{...r,async:!0}:{async:!0},o=t._zod.run({value:n,issues:[]},a);if(o instanceof Promise&&(o=await o),o.issues.length){let t=new((i?.Err)??e)(o.issues.map(e=>$G(e,a,iG())));throw fK(t,i?.callee),t}return o.value},NK=MK(OK),PK=e=>(t,n,r)=>{let i=r?{...r,async:!1}:{async:!1},a=t._zod.run({value:n,issues:[]},i);if(a instanceof Promise)throw new cG;return a.issues.length?{success:!1,error:new(e??DK)(a.issues.map(e=>$G(e,i,iG())))}:{success:!0,data:a.value}},FK=PK(OK),IK=e=>async(t,n,r)=>{let i=r?{...r,async:!0}:{async:!0},a=t._zod.run({value:n,issues:[]},i);return a instanceof Promise&&(a=await a),a.issues.length?{success:!1,error:new e(a.issues.map(e=>$G(e,i,iG())))}:{success:!0,data:a.value}},LK=IK(OK),RK=e=>(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return AK(e)(t,n,i)},zK=RK(OK),BK=e=>(t,n,r)=>AK(e)(t,n,r),VK=BK(OK),HK=e=>async(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return MK(e)(t,n,i)},UK=HK(OK),WK=e=>async(t,n,r)=>MK(e)(t,n,r),GK=WK(OK),KK=e=>(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return PK(e)(t,n,i)},qK=KK(OK),JK=e=>(t,n,r)=>PK(e)(t,n,r),YK=JK(OK),XK=e=>async(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return IK(e)(t,n,i)},ZK=XK(OK),QK=e=>async(t,n,r)=>IK(e)(t,n,r),$K=QK(OK)})),tq=c({base64:()=>Nq,base64url:()=>Pq,bigint:()=>Hq,boolean:()=>Gq,browserEmail:()=>Eq,cidrv4:()=>jq,cidrv6:()=>Mq,cuid:()=>cq,cuid2:()=>lq,date:()=>Bq,datetime:()=>aq,domain:()=>Iq,duration:()=>mq,e164:()=>Rq,email:()=>xq,emoji:()=>nq,extendedDuration:()=>hq,guid:()=>gq,hex:()=>Xq,hostname:()=>Fq,html5Email:()=>Sq,httpProtocol:()=>Lq,idnEmail:()=>Tq,integer:()=>Uq,ipv4:()=>Oq,ipv6:()=>kq,ksuid:()=>fq,lowercase:()=>Jq,mac:()=>Aq,md5_base64:()=>Qq,md5_base64url:()=>$q,md5_hex:()=>Zq,nanoid:()=>pq,null:()=>Kq,number:()=>Wq,rfc5322Email:()=>Cq,sha1_base64:()=>tJ,sha1_base64url:()=>nJ,sha1_hex:()=>eJ,sha256_base64:()=>iJ,sha256_base64url:()=>aJ,sha256_hex:()=>rJ,sha384_base64:()=>sJ,sha384_base64url:()=>cJ,sha384_hex:()=>oJ,sha512_base64:()=>uJ,sha512_base64url:()=>dJ,sha512_hex:()=>lJ,string:()=>Vq,time:()=>iq,ulid:()=>uq,undefined:()=>qq,unicodeEmail:()=>wq,uppercase:()=>Yq,uuid:()=>_q,uuid4:()=>vq,uuid6:()=>yq,uuid7:()=>bq,xid:()=>dq});function nq(){return new RegExp(Dq,`u`)}function rq(e){let t=`(?:[01]\\d|2[0-3]):[0-5]\\d`;return typeof e.precision==`number`?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function iq(e){return RegExp(`^${rq(e)}$`)}function aq(e){let t=rq({precision:e.precision}),n=[`Z`];e.local&&n.push(``),e.offset&&n.push(`([+-](?:[01]\\d|2[0-3]):[0-5]\\d)`);let r=`${t}(?:${n.join(`|`)})`;return RegExp(`^${zq}T(?:${r})$`)}function oq(e,t){return RegExp(`^[A-Za-z0-9+/]{${e}}${t}$`)}function sq(e){return RegExp(`^[A-Za-z0-9_-]{${e}}$`)}var cq,lq,uq,dq,fq,pq,mq,hq,gq,_q,vq,yq,bq,xq,Sq,Cq,wq,Tq,Eq,Dq,Oq,kq,Aq,jq,Mq,Nq,Pq,Fq,Iq,Lq,Rq,zq,Bq,Vq,Hq,Uq,Wq,Gq,Kq,qq,Jq,Yq,Xq,Zq,Qq,$q,eJ,tJ,nJ,rJ,iJ,aJ,oJ,sJ,cJ,lJ,uJ,dJ,fJ=o((()=>{bK(),cq=/^[cC][0-9a-z]{6,}$/,lq=/^[0-9a-z]+$/,uq=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,dq=/^[0-9a-vA-V]{20}$/,fq=/^[A-Za-z0-9]{27}$/,pq=/^[a-zA-Z0-9_-]{21}$/,mq=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,hq=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,gq=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,_q=e=>e?RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,vq=_q(4),yq=_q(6),bq=_q(7),xq=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,Sq=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,Cq=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,wq=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,Tq=wq,Eq=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,Dq=`^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$`,Oq=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,kq=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,Aq=e=>{let t=RG(e??`:`);return RegExp(`^(?:[0-9A-F]{2}${t}){5}[0-9A-F]{2}$|^(?:[0-9a-f]{2}${t}){5}[0-9a-f]{2}$`)},jq=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,Mq=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,Nq=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,Pq=/^[A-Za-z0-9_-]*$/,Fq=/^(?=.{1,253}\.?$)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?)*\.?$/,Iq=/^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/,Lq=/^https?$/,Rq=/^\+[1-9]\d{6,14}$/,zq=`(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))`,Bq=RegExp(`^${zq}$`),Vq=e=>{let t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??``}}`:`[\\s\\S]*`;return RegExp(`^${t}$`)},Hq=/^-?\d+n?$/,Uq=/^-?\d+$/,Wq=/^-?\d+(?:\.\d+)?$/,Gq=/^(?:true|false)$/i,Kq=/^null$/i,qq=/^undefined$/i,Jq=/^[^A-Z]*$/,Yq=/^[^a-z]*$/,Xq=/^[0-9a-fA-F]*$/,Zq=/^[0-9a-fA-F]{32}$/,Qq=oq(22,`==`),$q=sq(22),eJ=/^[0-9a-fA-F]{40}$/,tJ=oq(27,`=`),nJ=sq(27),rJ=/^[0-9a-fA-F]{64}$/,iJ=oq(43,`=`),aJ=sq(43),oJ=/^[0-9a-fA-F]{96}$/,sJ=oq(64,``),cJ=sq(64),lJ=/^[0-9a-fA-F]{128}$/,uJ=oq(86,`==`),dJ=sq(86)}));function pJ(e,t,n){e.issues.length&&t.issues.push(...ZG(n,e.issues))}var mJ,hJ,gJ,_J,vJ,yJ,bJ,xJ,SJ,CJ,wJ,TJ,EJ,DJ,OJ,kJ,AJ,jJ,MJ,NJ,PJ,FJ,IJ,LJ=o((()=>{dG(),fJ(),bK(),mJ=q(`$ZodCheck`,(e,t)=>{var n;e._zod??={},e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),hJ={number:`number`,bigint:`bigint`,object:`date`},gJ=q(`$ZodCheckLessThan`,(e,t)=>{mJ.init(e,t);let n=hJ[typeof t.value];e._zod.onattach.push(e=>{let n=e._zod.bag,r=(t.inclusive?n.maximum:n.exclusiveMaximum)??1/0;t.value{(t.inclusive?r.value<=t.value:r.value{mJ.init(e,t);let n=hJ[typeof t.value];e._zod.onattach.push(e=>{let n=e._zod.bag,r=(t.inclusive?n.minimum:n.exclusiveMinimum)??-1/0;t.value>r&&(t.inclusive?n.minimum=t.value:n.exclusiveMinimum=t.value)}),e._zod.check=r=>{(t.inclusive?r.value>=t.value:r.value>t.value)||r.issues.push({origin:n,code:`too_small`,minimum:typeof t.value==`object`?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),vJ=q(`$ZodCheckMultipleOf`,(e,t)=>{mJ.init(e,t),e._zod.onattach.push(e=>{var n;(n=e._zod.bag).multipleOf??(n.multipleOf=t.value)}),e._zod.check=n=>{if(typeof n.value!=typeof t.value)throw Error(`Cannot mix number and bigint in multiple_of check.`);(typeof n.value==`bigint`?n.value%t.value===BigInt(0):CG(n.value,t.value)===0)||n.issues.push({origin:typeof n.value,code:`not_multiple_of`,divisor:t.value,input:n.value,inst:e,continue:!t.abort})}}),yJ=q(`$ZodCheckNumberFormat`,(e,t)=>{mJ.init(e,t),t.format=t.format||`float64`;let n=t.format?.includes(`int`),r=n?`int`:`number`,[i,a]=_K[t.format];e._zod.onattach.push(e=>{let r=e._zod.bag;r.format=t.format,r.minimum=i,r.maximum=a,n&&(r.pattern=Uq)}),e._zod.check=o=>{let s=o.value;if(n){if(!Number.isInteger(s)){o.issues.push({expected:r,format:t.format,code:`invalid_type`,continue:!1,input:s,inst:e});return}if(!Number.isSafeInteger(s)){s>0?o.issues.push({input:s,code:`too_big`,maximum:2**53-1,note:`Integers must be within the safe integer range.`,inst:e,origin:r,inclusive:!0,continue:!t.abort}):o.issues.push({input:s,code:`too_small`,minimum:-(2**53-1),note:`Integers must be within the safe integer range.`,inst:e,origin:r,inclusive:!0,continue:!t.abort});return}}sa&&o.issues.push({origin:`number`,input:s,code:`too_big`,maximum:a,inclusive:!0,inst:e,continue:!t.abort})}}),bJ=q(`$ZodCheckBigIntFormat`,(e,t)=>{mJ.init(e,t);let[n,r]=vK[t.format];e._zod.onattach.push(e=>{let i=e._zod.bag;i.format=t.format,i.minimum=n,i.maximum=r}),e._zod.check=i=>{let a=i.value;ar&&i.issues.push({origin:`bigint`,input:a,code:`too_big`,maximum:r,inclusive:!0,inst:e,continue:!t.abort})}}),xJ=q(`$ZodCheckMaxSize`,(e,t)=>{var n;mJ.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!xG(t)&&t.size!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag.maximum??1/0;t.maximum{let r=n.value;r.size<=t.maximum||n.issues.push({origin:eK(r),code:`too_big`,maximum:t.maximum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),SJ=q(`$ZodCheckMinSize`,(e,t)=>{var n;mJ.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!xG(t)&&t.size!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag.minimum??-1/0;t.minimum>n&&(e._zod.bag.minimum=t.minimum)}),e._zod.check=n=>{let r=n.value;r.size>=t.minimum||n.issues.push({origin:eK(r),code:`too_small`,minimum:t.minimum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),CJ=q(`$ZodCheckSizeEquals`,(e,t)=>{var n;mJ.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!xG(t)&&t.size!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag;n.minimum=t.size,n.maximum=t.size,n.size=t.size}),e._zod.check=n=>{let r=n.value,i=r.size;if(i===t.size)return;let a=i>t.size;n.issues.push({origin:eK(r),...a?{code:`too_big`,maximum:t.size}:{code:`too_small`,minimum:t.size},inclusive:!0,exact:!0,input:n.value,inst:e,continue:!t.abort})}}),wJ=q(`$ZodCheckMaxLength`,(e,t)=>{var n;mJ.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!xG(t)&&t.length!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag.maximum??1/0;t.maximum{let r=n.value;if(r.length<=t.maximum)return;let i=tK(r);n.issues.push({origin:i,code:`too_big`,maximum:t.maximum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),TJ=q(`$ZodCheckMinLength`,(e,t)=>{var n;mJ.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!xG(t)&&t.length!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag.minimum??-1/0;t.minimum>n&&(e._zod.bag.minimum=t.minimum)}),e._zod.check=n=>{let r=n.value;if(r.length>=t.minimum)return;let i=tK(r);n.issues.push({origin:i,code:`too_small`,minimum:t.minimum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),EJ=q(`$ZodCheckLengthEquals`,(e,t)=>{var n;mJ.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!xG(t)&&t.length!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag;n.minimum=t.length,n.maximum=t.length,n.length=t.length}),e._zod.check=n=>{let r=n.value,i=r.length;if(i===t.length)return;let a=tK(r),o=i>t.length;n.issues.push({origin:a,...o?{code:`too_big`,maximum:t.length}:{code:`too_small`,minimum:t.length},inclusive:!0,exact:!0,input:n.value,inst:e,continue:!t.abort})}}),DJ=q(`$ZodCheckStringFormat`,(e,t)=>{var n,r;mJ.init(e,t),e._zod.onattach.push(e=>{let n=e._zod.bag;n.format=t.format,t.pattern&&(n.patterns??=new Set,n.patterns.add(t.pattern))}),t.pattern?(n=e._zod).check??(n.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:`string`,code:`invalid_format`,format:t.format,input:n.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(r=e._zod).check??(r.check=()=>{})}),OJ=q(`$ZodCheckRegex`,(e,t)=>{DJ.init(e,t),e._zod.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:`string`,code:`invalid_format`,format:`regex`,input:n.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),kJ=q(`$ZodCheckLowerCase`,(e,t)=>{t.pattern??=Jq,DJ.init(e,t)}),AJ=q(`$ZodCheckUpperCase`,(e,t)=>{t.pattern??=Yq,DJ.init(e,t)}),jJ=q(`$ZodCheckIncludes`,(e,t)=>{mJ.init(e,t);let n=RG(t.includes),r=new RegExp(typeof t.position==`number`?`^.{${t.position}}${n}`:n);t.pattern=r,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??=new Set,t.patterns.add(r)}),e._zod.check=n=>{n.value.includes(t.includes,t.position)||n.issues.push({origin:`string`,code:`invalid_format`,format:`includes`,includes:t.includes,input:n.value,inst:e,continue:!t.abort})}}),MJ=q(`$ZodCheckStartsWith`,(e,t)=>{mJ.init(e,t);let n=RegExp(`^${RG(t.prefix)}.*`);t.pattern??=n,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??=new Set,t.patterns.add(n)}),e._zod.check=n=>{n.value.startsWith(t.prefix)||n.issues.push({origin:`string`,code:`invalid_format`,format:`starts_with`,prefix:t.prefix,input:n.value,inst:e,continue:!t.abort})}}),NJ=q(`$ZodCheckEndsWith`,(e,t)=>{mJ.init(e,t);let n=RegExp(`.*${RG(t.suffix)}$`);t.pattern??=n,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??=new Set,t.patterns.add(n)}),e._zod.check=n=>{n.value.endsWith(t.suffix)||n.issues.push({origin:`string`,code:`invalid_format`,format:`ends_with`,suffix:t.suffix,input:n.value,inst:e,continue:!t.abort})}}),PJ=q(`$ZodCheckProperty`,(e,t)=>{mJ.init(e,t),e._zod.check=e=>{let n=t.schema._zod.run({value:e.value[t.property],issues:[]},{});if(n instanceof Promise)return n.then(n=>pJ(n,e,t.property));pJ(n,e,t.property)}}),FJ=q(`$ZodCheckMimeType`,(e,t)=>{mJ.init(e,t);let n=new Set(t.mime);e._zod.onattach.push(e=>{e._zod.bag.mime=t.mime}),e._zod.check=r=>{n.has(r.value.type)||r.issues.push({code:`invalid_value`,values:t.mime,input:r.value.type,inst:e,continue:!t.abort})}}),IJ=q(`$ZodCheckOverwrite`,(e,t)=>{mJ.init(e,t),e._zod.check=e=>{e.value=t.tx(e.value)}})})),RJ,zJ=o((()=>{RJ=class{constructor(e=[]){this.content=[],this.indent=0,this&&(this.args=e)}indented(e){this.indent+=1,e(this),--this.indent}write(e){if(typeof e==`function`){e(this,{execution:`sync`}),e(this,{execution:`async`});return}let t=e.split(` `).filter(e=>e),n=Math.min(...t.map(e=>e.length-e.trimStart().length)),r=t.map(e=>e.slice(n)).map(e=>` `.repeat(this.indent*2)+e);for(let e of r)this.content.push(e)}compile(){let e=Function,t=this?.args,n=[...(this?.content??[``]).map(e=>` ${e}`)];return new e(...t,n.join(` -`))}}})),PJ,FJ=o((()=>{PJ={major:4,minor:4,patch:3}}));function IJ(e){if(e===``)return!0;if(/\s/.test(e)||e.length%4!=0)return!1;try{return atob(e),!0}catch{return!1}}function LJ(e){if(!Oq.test(e))return!1;let t=e.replace(/[-_]/g,e=>e===`-`?`+`:`/`);return IJ(t.padEnd(Math.ceil(t.length/4)*4,`=`))}function RJ(e,t=null){try{let n=e.split(`.`);if(n.length!==3)return!1;let[r]=n;if(!r)return!1;let i=JSON.parse(atob(r));return!(`typ`in i&&i?.typ!==`JWT`||!i.alg||t&&(!(`alg`in i)||i.alg!==t))}catch{return!1}}function zJ(e,t,n){e.issues.length&&t.issues.push(...GG(n,e.issues)),t.value[n]=e.value}function BJ(e,t,n,r,i,a){let o=n in r;if(e.issues.length){if(i&&a&&!o)return;t.issues.push(...GG(n,e.issues))}if(!o&&!i){e.issues.length||t.issues.push({code:`invalid_type`,expected:`nonoptional`,input:void 0,path:[n]});return}e.value===void 0?o&&(t.value[n]=void 0):t.value[n]=e.value}function VJ(e){let t=Object.keys(e.shape);for(let n of t)if(!e.shape?.[n]?._zod?.traits?.has(`$ZodType`))throw Error(`Invalid element at key "${n}": expected a Zod schema`);let n=FG(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(n)}}function HJ(e,t,n,r,i,a){let o=[],s=i.keySet,c=i.catchall._zod,l=c.def.type,u=c.optin===`optional`,d=c.optout===`optional`;for(let i in t){if(i===`__proto__`||s.has(i))continue;if(l===`never`){o.push(i);continue}let a=c.run({value:t[i],issues:[]},r);a instanceof Promise?e.push(a.then(e=>BJ(e,n,i,t,u,d))):BJ(a,n,i,t,u,d)}return o.length&&n.issues.push({code:`unrecognized_keys`,keys:o,input:t,inst:a}),e.length?Promise.all(e).then(()=>n):n}function UJ(e,t,n,r){for(let n of e)if(n.issues.length===0)return t.value=n.value,t;let i=e.filter(e=>!UG(e));return i.length===1?(t.value=i[0].value,i[0]):(t.issues.push({code:`invalid_union`,input:t.value,inst:n,errors:e.map(e=>e.issues.map(e=>qG(e,r,ZW())))}),t)}function WJ(e,t,n,r){let i=e.filter(e=>e.issues.length===0);return i.length===1?(t.value=i[0].value,t):(i.length===0?t.issues.push({code:`invalid_union`,input:t.value,inst:n,errors:e.map(e=>e.issues.map(e=>qG(e,r,ZW())))}):t.issues.push({code:`invalid_union`,input:t.value,inst:n,errors:[],inclusive:!1}),t)}function GJ(e,t){if(e===t||e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(OG(e)&&OG(t)){let n=Object.keys(t),r=Object.keys(e).filter(e=>n.indexOf(e)!==-1),i={...e,...t};for(let n of r){let r=GJ(e[n],t[n]);if(!r.valid)return{valid:!1,mergeErrorPath:[n,...r.mergeErrorPath]};i[n]=r.data}return{valid:!0,data:i}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};let n=[];for(let r=0;re.l&&e.r).map(([e])=>e);if(a.length&&i&&e.issues.push({...i,keys:a}),UG(e))return e;let o=GJ(t.value,n.value);if(!o.valid)throw Error(`Unmergable intersection. Error path: ${JSON.stringify(o.mergeErrorPath)}`);return e.value=o.data,e}function qJ(e,t){for(let n=e.length-1;n>=0;n--)if(e[n]._zod[t]!==`optional`)return n+1;return 0}function JJ(e,t,n){e.issues.length&&t.issues.push(...GG(n,e.issues)),t.value[n]=e.value}function YJ(e,t,n,r,i){for(let a=0;a=i){t.value.length=a;break}t.issues.push(...GG(a,n.issues))}t.value[a]=n.value}for(let e=t.value.length-1;e>=r.length&&n[e]._zod.optout===`optional`&&t.value[e]===void 0;e--)t.value.length=e;return t}function XJ(e,t,n,r,i,a,o){e.issues.length&&(lK.has(typeof r)?n.issues.push(...GG(r,e.issues)):n.issues.push({code:`invalid_key`,origin:`map`,input:i,inst:a,issues:e.issues.map(e=>qG(e,o,ZW()))})),t.issues.length&&(lK.has(typeof r)?n.issues.push(...GG(r,t.issues)):n.issues.push({origin:`map`,code:`invalid_element`,input:i,inst:a,key:r,issues:t.issues.map(e=>qG(e,o,ZW()))})),n.value.set(e.value,t.value)}function ZJ(e,t){e.issues.length&&t.issues.push(...e.issues),t.value.add(e.value)}function QJ(e,t){return t===void 0&&(e.issues.length||e.fallback)?{issues:[],value:void 0}:e}function $J(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}function eY(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:`invalid_type`,expected:`nonoptional`,input:e.value,inst:t}),e}function tY(e,t,n){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues,fallback:e.fallback},n)}function nY(e,t,n){if(e.issues.length)return e.aborted=!0,e;if((n.direction||`forward`)===`forward`){let r=t.transform(e.value,e);return r instanceof Promise?r.then(r=>rY(e,r,t.out,n)):rY(e,r,t.out,n)}{let r=t.reverseTransform(e.value,e);return r instanceof Promise?r.then(r=>rY(e,r,t.in,n)):rY(e,r,t.in,n)}}function rY(e,t,n,r){return e.issues.length?(e.aborted=!0,e):n._zod.run({value:t,issues:e.issues},r)}function iY(e){return e.value=Object.freeze(e.value),e}function aY(e,t,n,r){if(!e){let e={code:`custom`,input:n,inst:r,path:[...r._zod.def.path??[]],continue:!r._zod.def.abort};r._zod.def.params&&(e.params=r._zod.def.params),t.issues.push(ZG(e))}}var oY,sY,cY,lY,uY,dY,fY,pY,mY,hY,gY,_Y,vY,yY,bY,xY,SY,CY,wY,TY,EY,DY,OY,kY,AY,jY,MY,NY,PY,FY,IY,LY,RY,zY,BY,VY,HY,UY,WY,GY,KY,qY,JY,YY,XY,ZY,QY,$Y,eX,tX,nX,rX,iX,aX,oX,sX,cX,lX,uX,dX,fX,pX,mX,hX,gX,_X,vX,yX,bX,xX,SX,CX,wX,TX,EX=o((()=>{jJ(),iG(),NJ(),JK(),oJ(),mK(),FJ(),oY=q(`$ZodType`,(e,t)=>{var n;e??={},e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=PJ;let r=[...e._zod.def.checks??[]];e._zod.traits.has(`$ZodCheck`)&&r.unshift(e);for(let t of r)for(let n of t._zod.onattach)n(e);if(r.length===0)(n=e._zod).deferred??(n.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{let t=(e,t,n)=>{let r=UG(e),i;for(let a of t){if(a._zod.def.when){if(WG(e)||!a._zod.def.when(e))continue}else if(r)continue;let t=e.issues.length,o=a._zod.check(e);if(o instanceof Promise&&n?.async===!1)throw new tG;if(i||o instanceof Promise)i=(i??Promise.resolve()).then(async()=>{await o,e.issues.length!==t&&(r||=UG(e,t))});else{if(e.issues.length===t)continue;r||=UG(e,t)}}return i?i.then(()=>e):e},n=(n,i,a)=>{if(UG(n))return n.aborted=!0,n;let o=t(i,r,a);if(o instanceof Promise){if(a.async===!1)throw new tG;return o.then(t=>e._zod.parse(t,a))}return e._zod.parse(o,a)};e._zod.run=(i,a)=>{if(a.skipChecks)return e._zod.parse(i,a);if(a.direction===`backward`){let t=e._zod.parse({value:i.value,issues:[]},{...a,skipChecks:!0});return t instanceof Promise?t.then(e=>n(e,i,a)):n(t,i,a)}let o=e._zod.parse(i,a);if(o instanceof Promise){if(a.async===!1)throw new tG;return o.then(e=>t(e,r,a))}return t(o,r,a)}}_G(e,`~standard`,()=>({validate:t=>{try{let n=kK(e,t);return n.success?{value:n.data}:{issues:n.error?.issues}}catch{return jK(e,t).then(e=>e.success?{value:e.data}:{issues:e.error?.issues})}},vendor:`zod`,version:1}))}),sY=q(`$ZodString`,(e,t)=>{oY.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??Fq(e._zod.bag),e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=String(n.value)}catch{}return typeof n.value==`string`||n.issues.push({expected:`string`,code:`invalid_type`,input:n.value,inst:e}),n}}),cY=q(`$ZodStringFormat`,(e,t)=>{xJ.init(e,t),sY.init(e,t)}),lY=q(`$ZodGUID`,(e,t)=>{t.pattern??=uq,cY.init(e,t)}),uY=q(`$ZodUUID`,(e,t)=>{if(t.version){let e={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(e===void 0)throw Error(`Invalid UUID version: "${t.version}"`);t.pattern??=dq(e)}else t.pattern??=dq();cY.init(e,t)}),dY=q(`$ZodEmail`,(e,t)=>{t.pattern??=hq,cY.init(e,t)}),fY=q(`$ZodURL`,(e,t)=>{cY.init(e,t),e._zod.check=n=>{try{let r=n.value.trim();if(!t.normalize&&t.protocol?.source===jq.source&&!/^https?:\/\//i.test(r)){n.issues.push({code:`invalid_format`,format:`url`,note:`Invalid URL format`,input:n.value,inst:e,continue:!t.abort});return}let i=new URL(r);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(i.hostname)||n.issues.push({code:`invalid_format`,format:`url`,note:`Invalid hostname`,pattern:t.hostname.source,input:n.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(i.protocol.endsWith(`:`)?i.protocol.slice(0,-1):i.protocol)||n.issues.push({code:`invalid_format`,format:`url`,note:`Invalid protocol`,pattern:t.protocol.source,input:n.value,inst:e,continue:!t.abort})),n.value=t.normalize?i.href:r;return}catch{n.issues.push({code:`invalid_format`,format:`url`,input:n.value,inst:e,continue:!t.abort})}}}),pY=q(`$ZodEmoji`,(e,t)=>{t.pattern??=XK(),cY.init(e,t)}),mY=q(`$ZodNanoID`,(e,t)=>{t.pattern??=sq,cY.init(e,t)}),hY=q(`$ZodCUID`,(e,t)=>{t.pattern??=nq,cY.init(e,t)}),gY=q(`$ZodCUID2`,(e,t)=>{t.pattern??=rq,cY.init(e,t)}),_Y=q(`$ZodULID`,(e,t)=>{t.pattern??=iq,cY.init(e,t)}),vY=q(`$ZodXID`,(e,t)=>{t.pattern??=aq,cY.init(e,t)}),yY=q(`$ZodKSUID`,(e,t)=>{t.pattern??=oq,cY.init(e,t)}),bY=q(`$ZodISODateTime`,(e,t)=>{t.pattern??=$K(t),cY.init(e,t)}),xY=q(`$ZodISODate`,(e,t)=>{t.pattern??=Pq,cY.init(e,t)}),SY=q(`$ZodISOTime`,(e,t)=>{t.pattern??=QK(t),cY.init(e,t)}),CY=q(`$ZodISODuration`,(e,t)=>{t.pattern??=cq,cY.init(e,t)}),wY=q(`$ZodIPv4`,(e,t)=>{t.pattern??=Sq,cY.init(e,t),e._zod.bag.format=`ipv4`}),TY=q(`$ZodIPv6`,(e,t)=>{t.pattern??=Cq,cY.init(e,t),e._zod.bag.format=`ipv6`,e._zod.check=n=>{try{new URL(`http://[${n.value}]`)}catch{n.issues.push({code:`invalid_format`,format:`ipv6`,input:n.value,inst:e,continue:!t.abort})}}}),EY=q(`$ZodMAC`,(e,t)=>{t.pattern??=wq(t.delimiter),cY.init(e,t),e._zod.bag.format=`mac`}),DY=q(`$ZodCIDRv4`,(e,t)=>{t.pattern??=Tq,cY.init(e,t)}),OY=q(`$ZodCIDRv6`,(e,t)=>{t.pattern??=Eq,cY.init(e,t),e._zod.check=n=>{let r=n.value.split(`/`);try{if(r.length!==2)throw Error();let[e,t]=r;if(!t)throw Error();let n=Number(t);if(`${n}`!==t||n<0||n>128)throw Error();new URL(`http://[${e}]`)}catch{n.issues.push({code:`invalid_format`,format:`cidrv6`,input:n.value,inst:e,continue:!t.abort})}}}),kY=q(`$ZodBase64`,(e,t)=>{t.pattern??=Dq,cY.init(e,t),e._zod.bag.contentEncoding=`base64`,e._zod.check=n=>{IJ(n.value)||n.issues.push({code:`invalid_format`,format:`base64`,input:n.value,inst:e,continue:!t.abort})}}),AY=q(`$ZodBase64URL`,(e,t)=>{t.pattern??=Oq,cY.init(e,t),e._zod.bag.contentEncoding=`base64url`,e._zod.check=n=>{LJ(n.value)||n.issues.push({code:`invalid_format`,format:`base64url`,input:n.value,inst:e,continue:!t.abort})}}),jY=q(`$ZodE164`,(e,t)=>{t.pattern??=Mq,cY.init(e,t)}),MY=q(`$ZodJWT`,(e,t)=>{cY.init(e,t),e._zod.check=n=>{RJ(n.value,t.alg)||n.issues.push({code:`invalid_format`,format:`jwt`,input:n.value,inst:e,continue:!t.abort})}}),NY=q(`$ZodCustomStringFormat`,(e,t)=>{cY.init(e,t),e._zod.check=n=>{t.fn(n.value)||n.issues.push({code:`invalid_format`,format:t.format,input:n.value,inst:e,continue:!t.abort})}}),PY=q(`$ZodNumber`,(e,t)=>{oY.init(e,t),e._zod.pattern=e._zod.bag.pattern??Rq,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=Number(n.value)}catch{}let i=n.value;if(typeof i==`number`&&!Number.isNaN(i)&&Number.isFinite(i))return n;let a=typeof i==`number`?Number.isNaN(i)?`NaN`:Number.isFinite(i)?void 0:`Infinity`:void 0;return n.issues.push({expected:`number`,code:`invalid_type`,input:i,inst:e,...a?{received:a}:{}}),n}}),FY=q(`$ZodNumberFormat`,(e,t)=>{pJ.init(e,t),PY.init(e,t)}),IY=q(`$ZodBoolean`,(e,t)=>{oY.init(e,t),e._zod.pattern=zq,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=!!n.value}catch{}let i=n.value;return typeof i==`boolean`||n.issues.push({expected:`boolean`,code:`invalid_type`,input:i,inst:e}),n}}),LY=q(`$ZodBigInt`,(e,t)=>{oY.init(e,t),e._zod.pattern=Iq,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=BigInt(n.value)}catch{}return typeof n.value==`bigint`||n.issues.push({expected:`bigint`,code:`invalid_type`,input:n.value,inst:e}),n}}),RY=q(`$ZodBigIntFormat`,(e,t)=>{mJ.init(e,t),LY.init(e,t)}),zY=q(`$ZodSymbol`,(e,t)=>{oY.init(e,t),e._zod.parse=(t,n)=>{let r=t.value;return typeof r==`symbol`||t.issues.push({expected:`symbol`,code:`invalid_type`,input:r,inst:e}),t}}),BY=q(`$ZodUndefined`,(e,t)=>{oY.init(e,t),e._zod.pattern=Vq,e._zod.values=new Set([void 0]),e._zod.parse=(t,n)=>{let r=t.value;return r===void 0||t.issues.push({expected:`undefined`,code:`invalid_type`,input:r,inst:e}),t}}),VY=q(`$ZodNull`,(e,t)=>{oY.init(e,t),e._zod.pattern=Bq,e._zod.values=new Set([null]),e._zod.parse=(t,n)=>{let r=t.value;return r===null||t.issues.push({expected:`null`,code:`invalid_type`,input:r,inst:e}),t}}),HY=q(`$ZodAny`,(e,t)=>{oY.init(e,t),e._zod.parse=e=>e}),UY=q(`$ZodUnknown`,(e,t)=>{oY.init(e,t),e._zod.parse=e=>e}),WY=q(`$ZodNever`,(e,t)=>{oY.init(e,t),e._zod.parse=(t,n)=>(t.issues.push({expected:`never`,code:`invalid_type`,input:t.value,inst:e}),t)}),GY=q(`$ZodVoid`,(e,t)=>{oY.init(e,t),e._zod.parse=(t,n)=>{let r=t.value;return r===void 0||t.issues.push({expected:`void`,code:`invalid_type`,input:r,inst:e}),t}}),KY=q(`$ZodDate`,(e,t)=>{oY.init(e,t),e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=new Date(n.value)}catch{}let i=n.value,a=i instanceof Date;return a&&!Number.isNaN(i.getTime())||n.issues.push({expected:`date`,code:`invalid_type`,input:i,...a?{received:`Invalid Date`}:{},inst:e}),n}}),qY=q(`$ZodArray`,(e,t)=>{oY.init(e,t),e._zod.parse=(n,r)=>{let i=n.value;if(!Array.isArray(i))return n.issues.push({expected:`array`,code:`invalid_type`,input:i,inst:e}),n;n.value=Array(i.length);let a=[];for(let e=0;ezJ(t,n,e))):zJ(s,n,e)}return a.length?Promise.all(a).then(()=>n):n}}),JY=q(`$ZodObject`,(e,t)=>{if(oY.init(e,t),!Object.getOwnPropertyDescriptor(t,`shape`)?.get){let e=t.shape;Object.defineProperty(t,"shape",{get:()=>{let n={...e};return Object.defineProperty(t,"shape",{value:n}),n}})}let n=pG(()=>VJ(t));_G(e._zod,`propValues`,()=>{let e=t.shape,n={};for(let t in e){let r=e[t]._zod;if(r.values){n[t]??(n[t]=new Set);for(let e of r.values)n[t].add(e)}}return n});let r=DG,i=t.catchall,a;e._zod.parse=(t,o)=>{a??=n.value;let s=t.value;if(!r(s))return t.issues.push({expected:`object`,code:`invalid_type`,input:s,inst:e}),t;t.value={};let c=[],l=a.shape;for(let e of a.keys){let n=l[e],r=n._zod.optin===`optional`,i=n._zod.optout===`optional`,a=n._zod.run({value:s[e],issues:[]},o);a instanceof Promise?c.push(a.then(n=>BJ(n,t,e,s,r,i))):BJ(a,t,e,s,r,i)}return i?HJ(c,s,t,o,n.value,e):c.length?Promise.all(c).then(()=>t):t}}),YY=q(`$ZodObjectJIT`,(e,t)=>{JY.init(e,t);let n=e._zod.parse,r=pG(()=>VJ(t)),i=e=>{let t=new MJ([`shape`,`payload`,`ctx`]),n=r.value,i=e=>{let t=TG(e);return`shape[${t}]._zod.run({ value: input[${t}], issues: [] }, ctx)`};t.write(`const input = payload.value;`);let a=Object.create(null),o=0;for(let e of n.keys)a[e]=`key_${o++}`;t.write(`const newResult = {};`);for(let r of n.keys){let n=a[r],o=TG(r),s=e[r],c=s?._zod?.optin===`optional`,l=s?._zod?.optout===`optional`;t.write(`const ${n} = ${i(r)};`),c&&l?t.write(` +`))}}})),BJ,VJ=o((()=>{BJ={major:4,minor:4,patch:3}}));function HJ(e){if(e===``)return!0;if(/\s/.test(e)||e.length%4!=0)return!1;try{return atob(e),!0}catch{return!1}}function UJ(e){if(!Pq.test(e))return!1;let t=e.replace(/[-_]/g,e=>e===`-`?`+`:`/`);return HJ(t.padEnd(Math.ceil(t.length/4)*4,`=`))}function WJ(e,t=null){try{let n=e.split(`.`);if(n.length!==3)return!1;let[r]=n;if(!r)return!1;let i=JSON.parse(atob(r));return!(`typ`in i&&i?.typ!==`JWT`||!i.alg||t&&(!(`alg`in i)||i.alg!==t))}catch{return!1}}function GJ(e,t,n){e.issues.length&&t.issues.push(...ZG(n,e.issues)),t.value[n]=e.value}function KJ(e,t,n,r,i,a){let o=n in r;if(e.issues.length){if(i&&a&&!o)return;t.issues.push(...ZG(n,e.issues))}if(!o&&!i){e.issues.length||t.issues.push({code:`invalid_type`,expected:`nonoptional`,input:void 0,path:[n]});return}e.value===void 0?o&&(t.value[n]=void 0):t.value[n]=e.value}function qJ(e){let t=Object.keys(e.shape);for(let n of t)if(!e.shape?.[n]?._zod?.traits?.has(`$ZodType`))throw Error(`Invalid element at key "${n}": expected a Zod schema`);let n=VG(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(n)}}function JJ(e,t,n,r,i,a){let o=[],s=i.keySet,c=i.catchall._zod,l=c.def.type,u=c.optin===`optional`,d=c.optout===`optional`;for(let i in t){if(i===`__proto__`||s.has(i))continue;if(l===`never`){o.push(i);continue}let a=c.run({value:t[i],issues:[]},r);a instanceof Promise?e.push(a.then(e=>KJ(e,n,i,t,u,d))):KJ(a,n,i,t,u,d)}return o.length&&n.issues.push({code:`unrecognized_keys`,keys:o,input:t,inst:a}),e.length?Promise.all(e).then(()=>n):n}function YJ(e,t,n,r){for(let n of e)if(n.issues.length===0)return t.value=n.value,t;let i=e.filter(e=>!YG(e));return i.length===1?(t.value=i[0].value,i[0]):(t.issues.push({code:`invalid_union`,input:t.value,inst:n,errors:e.map(e=>e.issues.map(e=>$G(e,r,iG())))}),t)}function XJ(e,t,n,r){let i=e.filter(e=>e.issues.length===0);return i.length===1?(t.value=i[0].value,t):(i.length===0?t.issues.push({code:`invalid_union`,input:t.value,inst:n,errors:e.map(e=>e.issues.map(e=>$G(e,r,iG())))}):t.issues.push({code:`invalid_union`,input:t.value,inst:n,errors:[],inclusive:!1}),t)}function ZJ(e,t){if(e===t||e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(FG(e)&&FG(t)){let n=Object.keys(t),r=Object.keys(e).filter(e=>n.indexOf(e)!==-1),i={...e,...t};for(let n of r){let r=ZJ(e[n],t[n]);if(!r.valid)return{valid:!1,mergeErrorPath:[n,...r.mergeErrorPath]};i[n]=r.data}return{valid:!0,data:i}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};let n=[];for(let r=0;re.l&&e.r).map(([e])=>e);if(a.length&&i&&e.issues.push({...i,keys:a}),YG(e))return e;let o=ZJ(t.value,n.value);if(!o.valid)throw Error(`Unmergable intersection. Error path: ${JSON.stringify(o.mergeErrorPath)}`);return e.value=o.data,e}function $J(e,t){for(let n=e.length-1;n>=0;n--)if(e[n]._zod[t]!==`optional`)return n+1;return 0}function eY(e,t,n){e.issues.length&&t.issues.push(...ZG(n,e.issues)),t.value[n]=e.value}function tY(e,t,n,r,i){for(let a=0;a=i){t.value.length=a;break}t.issues.push(...ZG(a,n.issues))}t.value[a]=n.value}for(let e=t.value.length-1;e>=r.length&&n[e]._zod.optout===`optional`&&t.value[e]===void 0;e--)t.value.length=e;return t}function nY(e,t,n,r,i,a,o){e.issues.length&&(hK.has(typeof r)?n.issues.push(...ZG(r,e.issues)):n.issues.push({code:`invalid_key`,origin:`map`,input:i,inst:a,issues:e.issues.map(e=>$G(e,o,iG()))})),t.issues.length&&(hK.has(typeof r)?n.issues.push(...ZG(r,t.issues)):n.issues.push({origin:`map`,code:`invalid_element`,input:i,inst:a,key:r,issues:t.issues.map(e=>$G(e,o,iG()))})),n.value.set(e.value,t.value)}function rY(e,t){e.issues.length&&t.issues.push(...e.issues),t.value.add(e.value)}function iY(e,t){return t===void 0&&(e.issues.length||e.fallback)?{issues:[],value:void 0}:e}function aY(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}function oY(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:`invalid_type`,expected:`nonoptional`,input:e.value,inst:t}),e}function sY(e,t,n){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues,fallback:e.fallback},n)}function cY(e,t,n){if(e.issues.length)return e.aborted=!0,e;if((n.direction||`forward`)===`forward`){let r=t.transform(e.value,e);return r instanceof Promise?r.then(r=>lY(e,r,t.out,n)):lY(e,r,t.out,n)}{let r=t.reverseTransform(e.value,e);return r instanceof Promise?r.then(r=>lY(e,r,t.in,n)):lY(e,r,t.in,n)}}function lY(e,t,n,r){return e.issues.length?(e.aborted=!0,e):n._zod.run({value:t,issues:e.issues},r)}function uY(e){return e.value=Object.freeze(e.value),e}function dY(e,t,n,r){if(!e){let e={code:`custom`,input:n,inst:r,path:[...r._zod.def.path??[]],continue:!r._zod.def.abort};r._zod.def.params&&(e.params=r._zod.def.params),t.issues.push(rK(e))}}var fY,pY,mY,hY,gY,_Y,vY,yY,bY,xY,SY,CY,wY,TY,EY,DY,OY,kY,AY,jY,MY,NY,PY,FY,IY,LY,RY,zY,BY,VY,HY,UY,WY,GY,KY,qY,JY,YY,XY,ZY,QY,$Y,eX,tX,nX,rX,iX,aX,oX,sX,cX,lX,uX,dX,fX,pX,mX,hX,gX,_X,vX,yX,bX,xX,SX,CX,wX,TX,EX,DX,OX,kX,AX,jX,MX=o((()=>{LJ(),dG(),zJ(),eq(),fJ(),bK(),VJ(),fY=q(`$ZodType`,(e,t)=>{var n;e??={},e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=BJ;let r=[...e._zod.def.checks??[]];e._zod.traits.has(`$ZodCheck`)&&r.unshift(e);for(let t of r)for(let n of t._zod.onattach)n(e);if(r.length===0)(n=e._zod).deferred??(n.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{let t=(e,t,n)=>{let r=YG(e),i;for(let a of t){if(a._zod.def.when){if(XG(e)||!a._zod.def.when(e))continue}else if(r)continue;let t=e.issues.length,o=a._zod.check(e);if(o instanceof Promise&&n?.async===!1)throw new cG;if(i||o instanceof Promise)i=(i??Promise.resolve()).then(async()=>{await o,e.issues.length!==t&&(r||=YG(e,t))});else{if(e.issues.length===t)continue;r||=YG(e,t)}}return i?i.then(()=>e):e},n=(n,i,a)=>{if(YG(n))return n.aborted=!0,n;let o=t(i,r,a);if(o instanceof Promise){if(a.async===!1)throw new cG;return o.then(t=>e._zod.parse(t,a))}return e._zod.parse(o,a)};e._zod.run=(i,a)=>{if(a.skipChecks)return e._zod.parse(i,a);if(a.direction===`backward`){let t=e._zod.parse({value:i.value,issues:[]},{...a,skipChecks:!0});return t instanceof Promise?t.then(e=>n(e,i,a)):n(t,i,a)}let o=e._zod.parse(i,a);if(o instanceof Promise){if(a.async===!1)throw new cG;return o.then(e=>t(e,r,a))}return t(o,r,a)}}wG(e,`~standard`,()=>({validate:t=>{try{let n=FK(e,t);return n.success?{value:n.data}:{issues:n.error?.issues}}catch{return LK(e,t).then(e=>e.success?{value:e.data}:{issues:e.error?.issues})}},vendor:`zod`,version:1}))}),pY=q(`$ZodString`,(e,t)=>{fY.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??Vq(e._zod.bag),e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=String(n.value)}catch{}return typeof n.value==`string`||n.issues.push({expected:`string`,code:`invalid_type`,input:n.value,inst:e}),n}}),mY=q(`$ZodStringFormat`,(e,t)=>{DJ.init(e,t),pY.init(e,t)}),hY=q(`$ZodGUID`,(e,t)=>{t.pattern??=gq,mY.init(e,t)}),gY=q(`$ZodUUID`,(e,t)=>{if(t.version){let e={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(e===void 0)throw Error(`Invalid UUID version: "${t.version}"`);t.pattern??=_q(e)}else t.pattern??=_q();mY.init(e,t)}),_Y=q(`$ZodEmail`,(e,t)=>{t.pattern??=xq,mY.init(e,t)}),vY=q(`$ZodURL`,(e,t)=>{mY.init(e,t),e._zod.check=n=>{try{let r=n.value.trim();if(!t.normalize&&t.protocol?.source===Lq.source&&!/^https?:\/\//i.test(r)){n.issues.push({code:`invalid_format`,format:`url`,note:`Invalid URL format`,input:n.value,inst:e,continue:!t.abort});return}let i=new URL(r);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(i.hostname)||n.issues.push({code:`invalid_format`,format:`url`,note:`Invalid hostname`,pattern:t.hostname.source,input:n.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(i.protocol.endsWith(`:`)?i.protocol.slice(0,-1):i.protocol)||n.issues.push({code:`invalid_format`,format:`url`,note:`Invalid protocol`,pattern:t.protocol.source,input:n.value,inst:e,continue:!t.abort})),n.value=t.normalize?i.href:r;return}catch{n.issues.push({code:`invalid_format`,format:`url`,input:n.value,inst:e,continue:!t.abort})}}}),yY=q(`$ZodEmoji`,(e,t)=>{t.pattern??=nq(),mY.init(e,t)}),bY=q(`$ZodNanoID`,(e,t)=>{t.pattern??=pq,mY.init(e,t)}),xY=q(`$ZodCUID`,(e,t)=>{t.pattern??=cq,mY.init(e,t)}),SY=q(`$ZodCUID2`,(e,t)=>{t.pattern??=lq,mY.init(e,t)}),CY=q(`$ZodULID`,(e,t)=>{t.pattern??=uq,mY.init(e,t)}),wY=q(`$ZodXID`,(e,t)=>{t.pattern??=dq,mY.init(e,t)}),TY=q(`$ZodKSUID`,(e,t)=>{t.pattern??=fq,mY.init(e,t)}),EY=q(`$ZodISODateTime`,(e,t)=>{t.pattern??=aq(t),mY.init(e,t)}),DY=q(`$ZodISODate`,(e,t)=>{t.pattern??=Bq,mY.init(e,t)}),OY=q(`$ZodISOTime`,(e,t)=>{t.pattern??=iq(t),mY.init(e,t)}),kY=q(`$ZodISODuration`,(e,t)=>{t.pattern??=mq,mY.init(e,t)}),AY=q(`$ZodIPv4`,(e,t)=>{t.pattern??=Oq,mY.init(e,t),e._zod.bag.format=`ipv4`}),jY=q(`$ZodIPv6`,(e,t)=>{t.pattern??=kq,mY.init(e,t),e._zod.bag.format=`ipv6`,e._zod.check=n=>{try{new URL(`http://[${n.value}]`)}catch{n.issues.push({code:`invalid_format`,format:`ipv6`,input:n.value,inst:e,continue:!t.abort})}}}),MY=q(`$ZodMAC`,(e,t)=>{t.pattern??=Aq(t.delimiter),mY.init(e,t),e._zod.bag.format=`mac`}),NY=q(`$ZodCIDRv4`,(e,t)=>{t.pattern??=jq,mY.init(e,t)}),PY=q(`$ZodCIDRv6`,(e,t)=>{t.pattern??=Mq,mY.init(e,t),e._zod.check=n=>{let r=n.value.split(`/`);try{if(r.length!==2)throw Error();let[e,t]=r;if(!t)throw Error();let n=Number(t);if(`${n}`!==t||n<0||n>128)throw Error();new URL(`http://[${e}]`)}catch{n.issues.push({code:`invalid_format`,format:`cidrv6`,input:n.value,inst:e,continue:!t.abort})}}}),FY=q(`$ZodBase64`,(e,t)=>{t.pattern??=Nq,mY.init(e,t),e._zod.bag.contentEncoding=`base64`,e._zod.check=n=>{HJ(n.value)||n.issues.push({code:`invalid_format`,format:`base64`,input:n.value,inst:e,continue:!t.abort})}}),IY=q(`$ZodBase64URL`,(e,t)=>{t.pattern??=Pq,mY.init(e,t),e._zod.bag.contentEncoding=`base64url`,e._zod.check=n=>{UJ(n.value)||n.issues.push({code:`invalid_format`,format:`base64url`,input:n.value,inst:e,continue:!t.abort})}}),LY=q(`$ZodE164`,(e,t)=>{t.pattern??=Rq,mY.init(e,t)}),RY=q(`$ZodJWT`,(e,t)=>{mY.init(e,t),e._zod.check=n=>{WJ(n.value,t.alg)||n.issues.push({code:`invalid_format`,format:`jwt`,input:n.value,inst:e,continue:!t.abort})}}),zY=q(`$ZodCustomStringFormat`,(e,t)=>{mY.init(e,t),e._zod.check=n=>{t.fn(n.value)||n.issues.push({code:`invalid_format`,format:t.format,input:n.value,inst:e,continue:!t.abort})}}),BY=q(`$ZodNumber`,(e,t)=>{fY.init(e,t),e._zod.pattern=e._zod.bag.pattern??Wq,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=Number(n.value)}catch{}let i=n.value;if(typeof i==`number`&&!Number.isNaN(i)&&Number.isFinite(i))return n;let a=typeof i==`number`?Number.isNaN(i)?`NaN`:Number.isFinite(i)?void 0:`Infinity`:void 0;return n.issues.push({expected:`number`,code:`invalid_type`,input:i,inst:e,...a?{received:a}:{}}),n}}),VY=q(`$ZodNumberFormat`,(e,t)=>{yJ.init(e,t),BY.init(e,t)}),HY=q(`$ZodBoolean`,(e,t)=>{fY.init(e,t),e._zod.pattern=Gq,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=!!n.value}catch{}let i=n.value;return typeof i==`boolean`||n.issues.push({expected:`boolean`,code:`invalid_type`,input:i,inst:e}),n}}),UY=q(`$ZodBigInt`,(e,t)=>{fY.init(e,t),e._zod.pattern=Hq,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=BigInt(n.value)}catch{}return typeof n.value==`bigint`||n.issues.push({expected:`bigint`,code:`invalid_type`,input:n.value,inst:e}),n}}),WY=q(`$ZodBigIntFormat`,(e,t)=>{bJ.init(e,t),UY.init(e,t)}),GY=q(`$ZodSymbol`,(e,t)=>{fY.init(e,t),e._zod.parse=(t,n)=>{let r=t.value;return typeof r==`symbol`||t.issues.push({expected:`symbol`,code:`invalid_type`,input:r,inst:e}),t}}),KY=q(`$ZodUndefined`,(e,t)=>{fY.init(e,t),e._zod.pattern=qq,e._zod.values=new Set([void 0]),e._zod.parse=(t,n)=>{let r=t.value;return r===void 0||t.issues.push({expected:`undefined`,code:`invalid_type`,input:r,inst:e}),t}}),qY=q(`$ZodNull`,(e,t)=>{fY.init(e,t),e._zod.pattern=Kq,e._zod.values=new Set([null]),e._zod.parse=(t,n)=>{let r=t.value;return r===null||t.issues.push({expected:`null`,code:`invalid_type`,input:r,inst:e}),t}}),JY=q(`$ZodAny`,(e,t)=>{fY.init(e,t),e._zod.parse=e=>e}),YY=q(`$ZodUnknown`,(e,t)=>{fY.init(e,t),e._zod.parse=e=>e}),XY=q(`$ZodNever`,(e,t)=>{fY.init(e,t),e._zod.parse=(t,n)=>(t.issues.push({expected:`never`,code:`invalid_type`,input:t.value,inst:e}),t)}),ZY=q(`$ZodVoid`,(e,t)=>{fY.init(e,t),e._zod.parse=(t,n)=>{let r=t.value;return r===void 0||t.issues.push({expected:`void`,code:`invalid_type`,input:r,inst:e}),t}}),QY=q(`$ZodDate`,(e,t)=>{fY.init(e,t),e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=new Date(n.value)}catch{}let i=n.value,a=i instanceof Date;return a&&!Number.isNaN(i.getTime())||n.issues.push({expected:`date`,code:`invalid_type`,input:i,...a?{received:`Invalid Date`}:{},inst:e}),n}}),$Y=q(`$ZodArray`,(e,t)=>{fY.init(e,t),e._zod.parse=(n,r)=>{let i=n.value;if(!Array.isArray(i))return n.issues.push({expected:`array`,code:`invalid_type`,input:i,inst:e}),n;n.value=Array(i.length);let a=[];for(let e=0;eGJ(t,n,e))):GJ(s,n,e)}return a.length?Promise.all(a).then(()=>n):n}}),eX=q(`$ZodObject`,(e,t)=>{if(fY.init(e,t),!Object.getOwnPropertyDescriptor(t,`shape`)?.get){let e=t.shape;Object.defineProperty(t,"shape",{get:()=>{let n={...e};return Object.defineProperty(t,"shape",{value:n}),n}})}let n=bG(()=>qJ(t));wG(e._zod,`propValues`,()=>{let e=t.shape,n={};for(let t in e){let r=e[t]._zod;if(r.values){n[t]??(n[t]=new Set);for(let e of r.values)n[t].add(e)}}return n});let r=PG,i=t.catchall,a;e._zod.parse=(t,o)=>{a??=n.value;let s=t.value;if(!r(s))return t.issues.push({expected:`object`,code:`invalid_type`,input:s,inst:e}),t;t.value={};let c=[],l=a.shape;for(let e of a.keys){let n=l[e],r=n._zod.optin===`optional`,i=n._zod.optout===`optional`,a=n._zod.run({value:s[e],issues:[]},o);a instanceof Promise?c.push(a.then(n=>KJ(n,t,e,s,r,i))):KJ(a,t,e,s,r,i)}return i?JJ(c,s,t,o,n.value,e):c.length?Promise.all(c).then(()=>t):t}}),tX=q(`$ZodObjectJIT`,(e,t)=>{eX.init(e,t);let n=e._zod.parse,r=bG(()=>qJ(t)),i=e=>{let t=new RJ([`shape`,`payload`,`ctx`]),n=r.value,i=e=>{let t=MG(e);return`shape[${t}]._zod.run({ value: input[${t}], issues: [] }, ctx)`};t.write(`const input = payload.value;`);let a=Object.create(null),o=0;for(let e of n.keys)a[e]=`key_${o++}`;t.write(`const newResult = {};`);for(let r of n.keys){let n=a[r],o=MG(r),s=e[r],c=s?._zod?.optin===`optional`,l=s?._zod?.optout===`optional`;t.write(`const ${n} = ${i(r)};`),c&&l?t.write(` if (${n}.issues.length) { if (${o} in input) { payload.issues = payload.issues.concat(${n}.issues.map(iss => ({ @@ -89,15 +89,15 @@ } } - `)}t.write(`payload.value = newResult;`),t.write(`return payload;`);let s=t.compile();return(t,n)=>s(e,t,n)},a,o=DG,s=!rG.jitless,c=s&&sK.value,l=t.catchall,u;e._zod.parse=(d,f)=>{u??=r.value;let p=d.value;return o(p)?s&&c&&f?.async===!1&&f.jitless!==!0?(a||=i(t.shape),d=a(d,f),l?HJ([],p,d,f,u,e):d):n(d,f):(d.issues.push({expected:`object`,code:`invalid_type`,input:p,inst:e}),d)}}),XY=q(`$ZodUnion`,(e,t)=>{oY.init(e,t),_G(e._zod,`optin`,()=>t.options.some(e=>e._zod.optin===`optional`)?`optional`:void 0),_G(e._zod,`optout`,()=>t.options.some(e=>e._zod.optout===`optional`)?`optional`:void 0),_G(e._zod,`values`,()=>{if(t.options.every(e=>e._zod.values))return new Set(t.options.flatMap(e=>Array.from(e._zod.values)))}),_G(e._zod,`pattern`,()=>{if(t.options.every(e=>e._zod.pattern)){let e=t.options.map(e=>e._zod.pattern);return RegExp(`^(${e.map(e=>hG(e.source)).join(`|`)})$`)}});let n=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(r,i)=>{if(n)return n(r,i);let a=!1,o=[];for(let e of t.options){let t=e._zod.run({value:r.value,issues:[]},i);if(t instanceof Promise)o.push(t),a=!0;else{if(t.issues.length===0)return t;o.push(t)}}return a?Promise.all(o).then(t=>UJ(t,r,e,i)):UJ(o,r,e,i)}}),ZY=q(`$ZodXor`,(e,t)=>{XY.init(e,t),t.inclusive=!1;let n=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(r,i)=>{if(n)return n(r,i);let a=!1,o=[];for(let e of t.options){let t=e._zod.run({value:r.value,issues:[]},i);t instanceof Promise?(o.push(t),a=!0):o.push(t)}return a?Promise.all(o).then(t=>WJ(t,r,e,i)):WJ(o,r,e,i)}}),QY=q(`$ZodDiscriminatedUnion`,(e,t)=>{t.inclusive=!1,XY.init(e,t);let n=e._zod.parse;_G(e._zod,`propValues`,()=>{let e={};for(let n of t.options){let r=n._zod.propValues;if(!r||Object.keys(r).length===0)throw Error(`Invalid discriminated union option at index "${t.options.indexOf(n)}"`);for(let[t,n]of Object.entries(r)){e[t]||(e[t]=new Set);for(let r of n)e[t].add(r)}}return e});let r=pG(()=>{let e=t.options,n=new Map;for(let r of e){let e=r._zod.propValues?.[t.discriminator];if(!e||e.size===0)throw Error(`Invalid discriminated union option at index "${t.options.indexOf(r)}"`);for(let t of e){if(n.has(t))throw Error(`Duplicate discriminator value "${String(t)}"`);n.set(t,r)}}return n});e._zod.parse=(i,a)=>{let o=i.value;if(!DG(o))return i.issues.push({code:`invalid_type`,expected:`object`,input:o,inst:e}),i;let s=r.value.get(o?.[t.discriminator]);return s?s._zod.run(i,a):t.unionFallback||a.direction===`backward`?n(i,a):(i.issues.push({code:`invalid_union`,errors:[],note:`No matching discriminator`,discriminator:t.discriminator,options:Array.from(r.value.keys()),input:o,path:[t.discriminator],inst:e}),i)}}),$Y=q(`$ZodIntersection`,(e,t)=>{oY.init(e,t),e._zod.parse=(e,n)=>{let r=e.value,i=t.left._zod.run({value:r,issues:[]},n),a=t.right._zod.run({value:r,issues:[]},n);return i instanceof Promise||a instanceof Promise?Promise.all([i,a]).then(([t,n])=>KJ(e,t,n)):KJ(e,i,a)}}),eX=q(`$ZodTuple`,(e,t)=>{oY.init(e,t);let n=t.items;e._zod.parse=(r,i)=>{let a=r.value;if(!Array.isArray(a))return r.issues.push({input:a,inst:e,expected:`tuple`,code:`invalid_type`}),r;r.value=[];let o=[],s=qJ(n,`optin`),c=qJ(n,`optout`);if(!t.rest){if(a.lengthn.length&&r.issues.push({code:`too_big`,maximum:n.length,inclusive:!0,input:a,inst:e,origin:`array`})}let l=Array(n.length);for(let e=0;e{l[e]=t})):l[e]=t}if(t.rest){let e=n.length-1,s=a.slice(n.length);for(let n of s){e++;let a=t.rest._zod.run({value:n,issues:[]},i);a instanceof Promise?o.push(a.then(t=>JJ(t,r,e))):JJ(a,r,e)}}return o.length?Promise.all(o).then(()=>YJ(l,r,n,a,c)):YJ(l,r,n,a,c)}}),tX=q(`$ZodRecord`,(e,t)=>{oY.init(e,t),e._zod.parse=(n,r)=>{let i=n.value;if(!OG(i))return n.issues.push({expected:`record`,code:`invalid_type`,input:i,inst:e}),n;let a=[],o=t.keyType._zod.values;if(o){n.value={};let s=new Set;for(let c of o)if(typeof c==`string`||typeof c==`number`||typeof c==`symbol`){s.add(typeof c==`number`?c.toString():c);let o=t.keyType._zod.run({value:c,issues:[]},r);if(o instanceof Promise)throw Error(`Async schemas not supported in object keys currently`);if(o.issues.length){n.issues.push({code:`invalid_key`,origin:`record`,issues:o.issues.map(e=>qG(e,r,ZW())),input:c,path:[c],inst:e});continue}let l=o.value,u=t.valueType._zod.run({value:i[c],issues:[]},r);u instanceof Promise?a.push(u.then(e=>{e.issues.length&&n.issues.push(...GG(c,e.issues)),n.value[l]=e.value})):(u.issues.length&&n.issues.push(...GG(c,u.issues)),n.value[l]=u.value)}let c;for(let e in i)s.has(e)||(c??=[],c.push(e));c&&c.length>0&&n.issues.push({code:`unrecognized_keys`,input:i,inst:e,keys:c})}else{n.value={};for(let o of Reflect.ownKeys(i)){if(o===`__proto__`||!Object.prototype.propertyIsEnumerable.call(i,o))continue;let s=t.keyType._zod.run({value:o,issues:[]},r);if(s instanceof Promise)throw Error(`Async schemas not supported in object keys currently`);if(typeof o==`string`&&Rq.test(o)&&s.issues.length){let e=t.keyType._zod.run({value:Number(o),issues:[]},r);if(e instanceof Promise)throw Error(`Async schemas not supported in object keys currently`);e.issues.length===0&&(s=e)}if(s.issues.length){t.mode===`loose`?n.value[o]=i[o]:n.issues.push({code:`invalid_key`,origin:`record`,issues:s.issues.map(e=>qG(e,r,ZW())),input:o,path:[o],inst:e});continue}let c=t.valueType._zod.run({value:i[o],issues:[]},r);c instanceof Promise?a.push(c.then(e=>{e.issues.length&&n.issues.push(...GG(o,e.issues)),n.value[s.value]=e.value})):(c.issues.length&&n.issues.push(...GG(o,c.issues)),n.value[s.value]=c.value)}}return a.length?Promise.all(a).then(()=>n):n}}),nX=q(`$ZodMap`,(e,t)=>{oY.init(e,t),e._zod.parse=(n,r)=>{let i=n.value;if(!(i instanceof Map))return n.issues.push({expected:`map`,code:`invalid_type`,input:i,inst:e}),n;let a=[];n.value=new Map;for(let[o,s]of i){let c=t.keyType._zod.run({value:o,issues:[]},r),l=t.valueType._zod.run({value:s,issues:[]},r);c instanceof Promise||l instanceof Promise?a.push(Promise.all([c,l]).then(([t,a])=>{XJ(t,a,n,o,i,e,r)})):XJ(c,l,n,o,i,e,r)}return a.length?Promise.all(a).then(()=>n):n}}),rX=q(`$ZodSet`,(e,t)=>{oY.init(e,t),e._zod.parse=(n,r)=>{let i=n.value;if(!(i instanceof Set))return n.issues.push({input:i,inst:e,expected:`set`,code:`invalid_type`}),n;let a=[];n.value=new Set;for(let e of i){let i=t.valueType._zod.run({value:e,issues:[]},r);i instanceof Promise?a.push(i.then(e=>ZJ(e,n))):ZJ(i,n)}return a.length?Promise.all(a).then(()=>n):n}}),iX=q(`$ZodEnum`,(e,t)=>{oY.init(e,t);let n=dG(t.entries),r=new Set(n);e._zod.values=r,e._zod.pattern=RegExp(`^(${n.filter(e=>lK.has(typeof e)).map(e=>typeof e==`string`?jG(e):e.toString()).join(`|`)})$`),e._zod.parse=(t,i)=>{let a=t.value;return r.has(a)||t.issues.push({code:`invalid_value`,values:n,input:a,inst:e}),t}}),aX=q(`$ZodLiteral`,(e,t)=>{if(oY.init(e,t),t.values.length===0)throw Error(`Cannot create literal schema with no valid values`);let n=new Set(t.values);e._zod.values=n,e._zod.pattern=RegExp(`^(${t.values.map(e=>typeof e==`string`?jG(e):e?jG(e.toString()):String(e)).join(`|`)})$`),e._zod.parse=(r,i)=>{let a=r.value;return n.has(a)||r.issues.push({code:`invalid_value`,values:t.values,input:a,inst:e}),r}}),oX=q(`$ZodFile`,(e,t)=>{oY.init(e,t),e._zod.parse=(t,n)=>{let r=t.value;return r instanceof File||t.issues.push({expected:`file`,code:`invalid_type`,input:r,inst:e}),t}}),sX=q(`$ZodTransform`,(e,t)=>{oY.init(e,t),e._zod.optin=`optional`,e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new nG(e.constructor.name);let i=t.transform(n.value,n);if(r.async)return(i instanceof Promise?i:Promise.resolve(i)).then(e=>(n.value=e,n.fallback=!0,n));if(i instanceof Promise)throw new tG;return n.value=i,n.fallback=!0,n}}),cX=q(`$ZodOptional`,(e,t)=>{oY.init(e,t),e._zod.optin=`optional`,e._zod.optout=`optional`,_G(e._zod,`values`,()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),_G(e._zod,`pattern`,()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${hG(e.source)})?$`):void 0}),e._zod.parse=(e,n)=>{if(t.innerType._zod.optin===`optional`){let r=e.value,i=t.innerType._zod.run(e,n);return i instanceof Promise?i.then(e=>QJ(e,r)):QJ(i,r)}return e.value===void 0?e:t.innerType._zod.run(e,n)}}),lX=q(`$ZodExactOptional`,(e,t)=>{cX.init(e,t),_G(e._zod,`values`,()=>t.innerType._zod.values),_G(e._zod,`pattern`,()=>t.innerType._zod.pattern),e._zod.parse=(e,n)=>t.innerType._zod.run(e,n)}),uX=q(`$ZodNullable`,(e,t)=>{oY.init(e,t),_G(e._zod,`optin`,()=>t.innerType._zod.optin),_G(e._zod,`optout`,()=>t.innerType._zod.optout),_G(e._zod,`pattern`,()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${hG(e.source)}|null)$`):void 0}),_G(e._zod,`values`,()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(e,n)=>e.value===null?e:t.innerType._zod.run(e,n)}),dX=q(`$ZodDefault`,(e,t)=>{oY.init(e,t),e._zod.optin=`optional`,_G(e._zod,`values`,()=>t.innerType._zod.values),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);if(e.value===void 0)return e.value=t.defaultValue,e;let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(e=>$J(e,t)):$J(r,t)}}),fX=q(`$ZodPrefault`,(e,t)=>{oY.init(e,t),e._zod.optin=`optional`,_G(e._zod,`values`,()=>t.innerType._zod.values),e._zod.parse=(e,n)=>(n.direction===`backward`||e.value===void 0&&(e.value=t.defaultValue),t.innerType._zod.run(e,n))}),pX=q(`$ZodNonOptional`,(e,t)=>{oY.init(e,t),_G(e._zod,`values`,()=>{let e=t.innerType._zod.values;return e?new Set([...e].filter(e=>e!==void 0)):void 0}),e._zod.parse=(n,r)=>{let i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(t=>eY(t,e)):eY(i,e)}}),mX=q(`$ZodSuccess`,(e,t)=>{oY.init(e,t),e._zod.parse=(e,n)=>{if(n.direction===`backward`)throw new nG(`ZodSuccess`);let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(t=>(e.value=t.issues.length===0,e)):(e.value=r.issues.length===0,e)}}),hX=q(`$ZodCatch`,(e,t)=>{oY.init(e,t),e._zod.optin=`optional`,_G(e._zod,`optout`,()=>t.innerType._zod.optout),_G(e._zod,`values`,()=>t.innerType._zod.values),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(r=>(e.value=r.value,r.issues.length&&(e.value=t.catchValue({...e,error:{issues:r.issues.map(e=>qG(e,n,ZW()))},input:e.value}),e.issues=[],e.fallback=!0),e)):(e.value=r.value,r.issues.length&&(e.value=t.catchValue({...e,error:{issues:r.issues.map(e=>qG(e,n,ZW()))},input:e.value}),e.issues=[],e.fallback=!0),e)}}),gX=q(`$ZodNaN`,(e,t)=>{oY.init(e,t),e._zod.parse=(t,n)=>((typeof t.value!=`number`||!Number.isNaN(t.value))&&t.issues.push({input:t.value,inst:e,expected:`nan`,code:`invalid_type`}),t)}),_X=q(`$ZodPipe`,(e,t)=>{oY.init(e,t),_G(e._zod,`values`,()=>t.in._zod.values),_G(e._zod,`optin`,()=>t.in._zod.optin),_G(e._zod,`optout`,()=>t.out._zod.optout),_G(e._zod,`propValues`,()=>t.in._zod.propValues),e._zod.parse=(e,n)=>{if(n.direction===`backward`){let r=t.out._zod.run(e,n);return r instanceof Promise?r.then(e=>tY(e,t.in,n)):tY(r,t.in,n)}let r=t.in._zod.run(e,n);return r instanceof Promise?r.then(e=>tY(e,t.out,n)):tY(r,t.out,n)}}),vX=q(`$ZodCodec`,(e,t)=>{oY.init(e,t),_G(e._zod,`values`,()=>t.in._zod.values),_G(e._zod,`optin`,()=>t.in._zod.optin),_G(e._zod,`optout`,()=>t.out._zod.optout),_G(e._zod,`propValues`,()=>t.in._zod.propValues),e._zod.parse=(e,n)=>{if((n.direction||`forward`)===`forward`){let r=t.in._zod.run(e,n);return r instanceof Promise?r.then(e=>nY(e,t,n)):nY(r,t,n)}{let r=t.out._zod.run(e,n);return r instanceof Promise?r.then(e=>nY(e,t,n)):nY(r,t,n)}}}),yX=q(`$ZodPreprocess`,(e,t)=>{_X.init(e,t)}),bX=q(`$ZodReadonly`,(e,t)=>{oY.init(e,t),_G(e._zod,`propValues`,()=>t.innerType._zod.propValues),_G(e._zod,`values`,()=>t.innerType._zod.values),_G(e._zod,`optin`,()=>t.innerType?._zod?.optin),_G(e._zod,`optout`,()=>t.innerType?._zod?.optout),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(iY):iY(r)}}),xX=q(`$ZodTemplateLiteral`,(e,t)=>{oY.init(e,t);let n=[];for(let e of t.parts)if(typeof e==`object`&&e){if(!e._zod.pattern)throw Error(`Invalid template literal part, no pattern found: ${[...e._zod.traits].shift()}`);let t=e._zod.pattern instanceof RegExp?e._zod.pattern.source:e._zod.pattern;if(!t)throw Error(`Invalid template literal part: ${e._zod.traits}`);let r=+!!t.startsWith(`^`),i=t.endsWith(`$`)?t.length-1:t.length;n.push(t.slice(r,i))}else if(e===null||uK.has(typeof e))n.push(jG(`${e}`));else throw Error(`Invalid template literal part: ${e}`);e._zod.pattern=RegExp(`^${n.join(``)}$`),e._zod.parse=(n,r)=>typeof n.value==`string`?(e._zod.pattern.lastIndex=0,e._zod.pattern.test(n.value)||n.issues.push({input:n.value,inst:e,code:`invalid_format`,format:t.format??`template_literal`,pattern:e._zod.pattern.source}),n):(n.issues.push({input:n.value,inst:e,expected:`string`,code:`invalid_type`}),n)}),SX=q(`$ZodFunction`,(e,t)=>(oY.init(e,t),e._def=t,e._zod.def=t,e.implement=t=>{if(typeof t!=`function`)throw Error(`implement() must be called with a function`);return function(...n){let r=e._def.input?TK(e._def.input,n):n,i=Reflect.apply(t,this,r);return e._def.output?TK(e._def.output,i):i}},e.implementAsync=t=>{if(typeof t!=`function`)throw Error(`implementAsync() must be called with a function`);return async function(...n){let r=e._def.input?await DK(e._def.input,n):n,i=await Reflect.apply(t,this,r);return e._def.output?await DK(e._def.output,i):i}},e._zod.parse=(t,n)=>typeof t.value==`function`?(t.value=e._def.output&&e._def.output._zod.def.type===`promise`?e.implementAsync(t.value):e.implement(t.value),t):(t.issues.push({code:`invalid_type`,expected:`function`,input:t.value,inst:e}),t),e.input=(...t)=>{let n=e.constructor;return Array.isArray(t[0])?new n({type:`function`,input:new eX({type:`tuple`,items:t[0],rest:t[1]}),output:e._def.output}):new n({type:`function`,input:t[0],output:e._def.output})},e.output=t=>{let n=e.constructor;return new n({type:`function`,input:e._def.input,output:t})},e)),CX=q(`$ZodPromise`,(e,t)=>{oY.init(e,t),e._zod.parse=(e,n)=>Promise.resolve(e.value).then(e=>t.innerType._zod.run({value:e,issues:[]},n))}),wX=q(`$ZodLazy`,(e,t)=>{oY.init(e,t),_G(e._zod,`innerType`,()=>{let e=t;return e._cachedInner||=t.getter(),e._cachedInner}),_G(e._zod,`pattern`,()=>e._zod.innerType?._zod?.pattern),_G(e._zod,`propValues`,()=>e._zod.innerType?._zod?.propValues),_G(e._zod,`optin`,()=>e._zod.innerType?._zod?.optin??void 0),_G(e._zod,`optout`,()=>e._zod.innerType?._zod?.optout??void 0),e._zod.parse=(t,n)=>e._zod.innerType._zod.run(t,n)}),TX=q(`$ZodCustom`,(e,t)=>{cJ.init(e,t),oY.init(e,t),e._zod.parse=(e,t)=>e,e._zod.check=n=>{let r=n.value,i=t.fn(r);if(i instanceof Promise)return i.then(t=>aY(t,n,r,e));aY(i,n,r,e)}})}));function DX(){return{localeError:OX()}}var OX,kX=o((()=>{mK(),OX=()=>{let e={string:{unit:`حرف`,verb:`أن يحوي`},file:{unit:`بايت`,verb:`أن يحوي`},array:{unit:`عنصر`,verb:`أن يحوي`},set:{unit:`عنصر`,verb:`أن يحوي`}};function t(t){return e[t]??null}let n={regex:`مدخل`,email:`بريد إلكتروني`,url:`رابط`,emoji:`إيموجي`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`تاريخ ووقت بمعيار ISO`,date:`تاريخ بمعيار ISO`,time:`وقت بمعيار ISO`,duration:`مدة بمعيار ISO`,ipv4:`عنوان IPv4`,ipv6:`عنوان IPv6`,cidrv4:`مدى عناوين بصيغة IPv4`,cidrv6:`مدى عناوين بصيغة IPv6`,base64:`نَص بترميز base64-encoded`,base64url:`نَص بترميز base64url-encoded`,json_string:`نَص على هيئة JSON`,e164:`رقم هاتف بمعيار E.164`,jwt:`JWT`,template_literal:`مدخل`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=XG(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`مدخلات غير مقبولة: يفترض إدخال instanceof ${e.expected}، ولكن تم إدخال ${i}`:`مدخلات غير مقبولة: يفترض إدخال ${t}، ولكن تم إدخال ${i}`}case`invalid_value`:return e.values.length===1?`مدخلات غير مقبولة: يفترض إدخال ${PG(e.values[0])}`:`اختيار غير مقبول: يتوقع انتقاء أحد هذه الخيارات: ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?` أكبر من اللازم: يفترض أن تكون ${e.origin??`القيمة`} ${n} ${e.maximum.toString()} ${r.unit??`عنصر`}`:`أكبر من اللازم: يفترض أن تكون ${e.origin??`القيمة`} ${n} ${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`أصغر من اللازم: يفترض لـ ${e.origin} أن يكون ${n} ${e.minimum.toString()} ${r.unit}`:`أصغر من اللازم: يفترض لـ ${e.origin} أن يكون ${n} ${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`نَص غير مقبول: يجب أن يبدأ بـ "${e.prefix}"`:t.format===`ends_with`?`نَص غير مقبول: يجب أن ينتهي بـ "${t.suffix}"`:t.format===`includes`?`نَص غير مقبول: يجب أن يتضمَّن "${t.includes}"`:t.format===`regex`?`نَص غير مقبول: يجب أن يطابق النمط ${t.pattern}`:`${n[t.format]??e.format} غير مقبول`}case`not_multiple_of`:return`رقم غير مقبول: يجب أن يكون من مضاعفات ${e.divisor}`;case`unrecognized_keys`:return`معرف${e.keys.length>1?`ات`:``} غريب${e.keys.length>1?`ة`:``}: ${J(e.keys,`، `)}`;case`invalid_key`:return`معرف غير مقبول في ${e.origin}`;case`invalid_union`:return`مدخل غير مقبول`;case`invalid_element`:return`مدخل غير مقبول في ${e.origin}`;default:return`مدخل غير مقبول`}}}}));function AX(){return{localeError:jX()}}var jX,MX=o((()=>{mK(),jX=()=>{let e={string:{unit:`simvol`,verb:`olmalıdır`},file:{unit:`bayt`,verb:`olmalıdır`},array:{unit:`element`,verb:`olmalıdır`},set:{unit:`element`,verb:`olmalıdır`}};function t(t){return e[t]??null}let n={regex:`input`,email:`email address`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO datetime`,date:`ISO date`,time:`ISO time`,duration:`ISO duration`,ipv4:`IPv4 address`,ipv6:`IPv6 address`,cidrv4:`IPv4 range`,cidrv6:`IPv6 range`,base64:`base64-encoded string`,base64url:`base64url-encoded string`,json_string:`JSON string`,e164:`E.164 number`,jwt:`JWT`,template_literal:`input`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=XG(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Yanlış dəyər: gözlənilən instanceof ${e.expected}, daxil olan ${i}`:`Yanlış dəyər: gözlənilən ${t}, daxil olan ${i}`}case`invalid_value`:return e.values.length===1?`Yanlış dəyər: gözlənilən ${PG(e.values[0])}`:`Yanlış seçim: aşağıdakılardan biri olmalıdır: ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Çox böyük: gözlənilən ${e.origin??`dəyər`} ${n}${e.maximum.toString()} ${r.unit??`element`}`:`Çox böyük: gözlənilən ${e.origin??`dəyər`} ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Çox kiçik: gözlənilən ${e.origin} ${n}${e.minimum.toString()} ${r.unit}`:`Çox kiçik: gözlənilən ${e.origin} ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Yanlış mətn: "${t.prefix}" ilə başlamalıdır`:t.format===`ends_with`?`Yanlış mətn: "${t.suffix}" ilə bitməlidir`:t.format===`includes`?`Yanlış mətn: "${t.includes}" daxil olmalıdır`:t.format===`regex`?`Yanlış mətn: ${t.pattern} şablonuna uyğun olmalıdır`:`Yanlış ${n[t.format]??e.format}`}case`not_multiple_of`:return`Yanlış ədəd: ${e.divisor} ilə bölünə bilən olmalıdır`;case`unrecognized_keys`:return`Tanınmayan açar${e.keys.length>1?`lar`:``}: ${J(e.keys,`, `)}`;case`invalid_key`:return`${e.origin} daxilində yanlış açar`;case`invalid_union`:return`Yanlış dəyər`;case`invalid_element`:return`${e.origin} daxilində yanlış dəyər`;default:return`Yanlış dəyər`}}}}));function NX(e,t,n,r){let i=Math.abs(e),a=i%10,o=i%100;return o>=11&&o<=19?r:a===1?t:a>=2&&a<=4?n:r}function PX(){return{localeError:FX()}}var FX,IX=o((()=>{mK(),FX=()=>{let e={string:{unit:{one:`сімвал`,few:`сімвалы`,many:`сімвалаў`},verb:`мець`},array:{unit:{one:`элемент`,few:`элементы`,many:`элементаў`},verb:`мець`},set:{unit:{one:`элемент`,few:`элементы`,many:`элементаў`},verb:`мець`},file:{unit:{one:`байт`,few:`байты`,many:`байтаў`},verb:`мець`}};function t(t){return e[t]??null}let n={regex:`увод`,email:`email адрас`,url:`URL`,emoji:`эмодзі`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO дата і час`,date:`ISO дата`,time:`ISO час`,duration:`ISO працягласць`,ipv4:`IPv4 адрас`,ipv6:`IPv6 адрас`,cidrv4:`IPv4 дыяпазон`,cidrv6:`IPv6 дыяпазон`,base64:`радок у фармаце base64`,base64url:`радок у фармаце base64url`,json_string:`JSON радок`,e164:`нумар E.164`,jwt:`JWT`,template_literal:`увод`},r={nan:`NaN`,number:`лік`,array:`масіў`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=XG(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Няправільны ўвод: чакаўся instanceof ${e.expected}, атрымана ${i}`:`Няправільны ўвод: чакаўся ${t}, атрымана ${i}`}case`invalid_value`:return e.values.length===1?`Няправільны ўвод: чакалася ${PG(e.values[0])}`:`Няправільны варыянт: чакаўся адзін з ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);if(r){let t=NX(Number(e.maximum),r.unit.one,r.unit.few,r.unit.many);return`Занадта вялікі: чакалася, што ${e.origin??`значэнне`} павінна ${r.verb} ${n}${e.maximum.toString()} ${t}`}return`Занадта вялікі: чакалася, што ${e.origin??`значэнне`} павінна быць ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);if(r){let t=NX(Number(e.minimum),r.unit.one,r.unit.few,r.unit.many);return`Занадта малы: чакалася, што ${e.origin} павінна ${r.verb} ${n}${e.minimum.toString()} ${t}`}return`Занадта малы: чакалася, што ${e.origin} павінна быць ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Няправільны радок: павінен пачынацца з "${t.prefix}"`:t.format===`ends_with`?`Няправільны радок: павінен заканчвацца на "${t.suffix}"`:t.format===`includes`?`Няправільны радок: павінен змяшчаць "${t.includes}"`:t.format===`regex`?`Няправільны радок: павінен адпавядаць шаблону ${t.pattern}`:`Няправільны ${n[t.format]??e.format}`}case`not_multiple_of`:return`Няправільны лік: павінен быць кратным ${e.divisor}`;case`unrecognized_keys`:return`Нераспазнаны ${e.keys.length>1?`ключы`:`ключ`}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Няправільны ключ у ${e.origin}`;case`invalid_union`:return`Няправільны ўвод`;case`invalid_element`:return`Няправільнае значэнне ў ${e.origin}`;default:return`Няправільны ўвод`}}}}));function LX(){return{localeError:RX()}}var RX,zX=o((()=>{mK(),RX=()=>{let e={string:{unit:`символа`,verb:`да съдържа`},file:{unit:`байта`,verb:`да съдържа`},array:{unit:`елемента`,verb:`да съдържа`},set:{unit:`елемента`,verb:`да съдържа`}};function t(t){return e[t]??null}let n={regex:`вход`,email:`имейл адрес`,url:`URL`,emoji:`емоджи`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO време`,date:`ISO дата`,time:`ISO време`,duration:`ISO продължителност`,ipv4:`IPv4 адрес`,ipv6:`IPv6 адрес`,cidrv4:`IPv4 диапазон`,cidrv6:`IPv6 диапазон`,base64:`base64-кодиран низ`,base64url:`base64url-кодиран низ`,json_string:`JSON низ`,e164:`E.164 номер`,jwt:`JWT`,template_literal:`вход`},r={nan:`NaN`,number:`число`,array:`масив`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=XG(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Невалиден вход: очакван instanceof ${e.expected}, получен ${i}`:`Невалиден вход: очакван ${t}, получен ${i}`}case`invalid_value`:return e.values.length===1?`Невалиден вход: очакван ${PG(e.values[0])}`:`Невалидна опция: очаквано едно от ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Твърде голямо: очаква се ${e.origin??`стойност`} да съдържа ${n}${e.maximum.toString()} ${r.unit??`елемента`}`:`Твърде голямо: очаква се ${e.origin??`стойност`} да бъде ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Твърде малко: очаква се ${e.origin} да съдържа ${n}${e.minimum.toString()} ${r.unit}`:`Твърде малко: очаква се ${e.origin} да бъде ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;if(t.format===`starts_with`)return`Невалиден низ: трябва да започва с "${t.prefix}"`;if(t.format===`ends_with`)return`Невалиден низ: трябва да завършва с "${t.suffix}"`;if(t.format===`includes`)return`Невалиден низ: трябва да включва "${t.includes}"`;if(t.format===`regex`)return`Невалиден низ: трябва да съвпада с ${t.pattern}`;let r=`Невалиден`;return t.format===`emoji`&&(r=`Невалидно`),t.format===`datetime`&&(r=`Невалидно`),t.format===`date`&&(r=`Невалидна`),t.format===`time`&&(r=`Невалидно`),t.format===`duration`&&(r=`Невалидна`),`${r} ${n[t.format]??e.format}`}case`not_multiple_of`:return`Невалидно число: трябва да бъде кратно на ${e.divisor}`;case`unrecognized_keys`:return`Неразпознат${e.keys.length>1?`и`:``} ключ${e.keys.length>1?`ове`:``}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Невалиден ключ в ${e.origin}`;case`invalid_union`:return`Невалиден вход`;case`invalid_element`:return`Невалидна стойност в ${e.origin}`;default:return`Невалиден вход`}}}}));function BX(){return{localeError:VX()}}var VX,HX=o((()=>{mK(),VX=()=>{let e={string:{unit:`caràcters`,verb:`contenir`},file:{unit:`bytes`,verb:`contenir`},array:{unit:`elements`,verb:`contenir`},set:{unit:`elements`,verb:`contenir`}};function t(t){return e[t]??null}let n={regex:`entrada`,email:`adreça electrònica`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`data i hora ISO`,date:`data ISO`,time:`hora ISO`,duration:`durada ISO`,ipv4:`adreça IPv4`,ipv6:`adreça IPv6`,cidrv4:`rang IPv4`,cidrv6:`rang IPv6`,base64:`cadena codificada en base64`,base64url:`cadena codificada en base64url`,json_string:`cadena JSON`,e164:`número E.164`,jwt:`JWT`,template_literal:`entrada`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=XG(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Tipus invàlid: s'esperava instanceof ${e.expected}, s'ha rebut ${i}`:`Tipus invàlid: s'esperava ${t}, s'ha rebut ${i}`}case`invalid_value`:return e.values.length===1?`Valor invàlid: s'esperava ${PG(e.values[0])}`:`Opció invàlida: s'esperava una de ${J(e.values,` o `)}`;case`too_big`:{let n=e.inclusive?`com a màxim`:`menys de`,r=t(e.origin);return r?`Massa gran: s'esperava que ${e.origin??`el valor`} contingués ${n} ${e.maximum.toString()} ${r.unit??`elements`}`:`Massa gran: s'esperava que ${e.origin??`el valor`} fos ${n} ${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`com a mínim`:`més de`,r=t(e.origin);return r?`Massa petit: s'esperava que ${e.origin} contingués ${n} ${e.minimum.toString()} ${r.unit}`:`Massa petit: s'esperava que ${e.origin} fos ${n} ${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Format invàlid: ha de començar amb "${t.prefix}"`:t.format===`ends_with`?`Format invàlid: ha d'acabar amb "${t.suffix}"`:t.format===`includes`?`Format invàlid: ha d'incloure "${t.includes}"`:t.format===`regex`?`Format invàlid: ha de coincidir amb el patró ${t.pattern}`:`Format invàlid per a ${n[t.format]??e.format}`}case`not_multiple_of`:return`Número invàlid: ha de ser múltiple de ${e.divisor}`;case`unrecognized_keys`:return`Clau${e.keys.length>1?`s`:``} no reconeguda${e.keys.length>1?`s`:``}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Clau invàlida a ${e.origin}`;case`invalid_union`:return`Entrada invàlida`;case`invalid_element`:return`Element invàlid a ${e.origin}`;default:return`Entrada invàlida`}}}}));function UX(){return{localeError:WX()}}var WX,GX=o((()=>{mK(),WX=()=>{let e={string:{unit:`znaků`,verb:`mít`},file:{unit:`bajtů`,verb:`mít`},array:{unit:`prvků`,verb:`mít`},set:{unit:`prvků`,verb:`mít`}};function t(t){return e[t]??null}let n={regex:`regulární výraz`,email:`e-mailová adresa`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`datum a čas ve formátu ISO`,date:`datum ve formátu ISO`,time:`čas ve formátu ISO`,duration:`doba trvání ISO`,ipv4:`IPv4 adresa`,ipv6:`IPv6 adresa`,cidrv4:`rozsah IPv4`,cidrv6:`rozsah IPv6`,base64:`řetězec zakódovaný ve formátu base64`,base64url:`řetězec zakódovaný ve formátu base64url`,json_string:`řetězec ve formátu JSON`,e164:`číslo E.164`,jwt:`JWT`,template_literal:`vstup`},r={nan:`NaN`,number:`číslo`,string:`řetězec`,function:`funkce`,array:`pole`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=XG(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Neplatný vstup: očekáváno instanceof ${e.expected}, obdrženo ${i}`:`Neplatný vstup: očekáváno ${t}, obdrženo ${i}`}case`invalid_value`:return e.values.length===1?`Neplatný vstup: očekáváno ${PG(e.values[0])}`:`Neplatná možnost: očekávána jedna z hodnot ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Hodnota je příliš velká: ${e.origin??`hodnota`} musí mít ${n}${e.maximum.toString()} ${r.unit??`prvků`}`:`Hodnota je příliš velká: ${e.origin??`hodnota`} musí být ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Hodnota je příliš malá: ${e.origin??`hodnota`} musí mít ${n}${e.minimum.toString()} ${r.unit??`prvků`}`:`Hodnota je příliš malá: ${e.origin??`hodnota`} musí být ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Neplatný řetězec: musí začínat na "${t.prefix}"`:t.format===`ends_with`?`Neplatný řetězec: musí končit na "${t.suffix}"`:t.format===`includes`?`Neplatný řetězec: musí obsahovat "${t.includes}"`:t.format===`regex`?`Neplatný řetězec: musí odpovídat vzoru ${t.pattern}`:`Neplatný formát ${n[t.format]??e.format}`}case`not_multiple_of`:return`Neplatné číslo: musí být násobkem ${e.divisor}`;case`unrecognized_keys`:return`Neznámé klíče: ${J(e.keys,`, `)}`;case`invalid_key`:return`Neplatný klíč v ${e.origin}`;case`invalid_union`:return`Neplatný vstup`;case`invalid_element`:return`Neplatná hodnota v ${e.origin}`;default:return`Neplatný vstup`}}}}));function KX(){return{localeError:qX()}}var qX,JX=o((()=>{mK(),qX=()=>{let e={string:{unit:`tegn`,verb:`havde`},file:{unit:`bytes`,verb:`havde`},array:{unit:`elementer`,verb:`indeholdt`},set:{unit:`elementer`,verb:`indeholdt`}};function t(t){return e[t]??null}let n={regex:`input`,email:`e-mailadresse`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO dato- og klokkeslæt`,date:`ISO-dato`,time:`ISO-klokkeslæt`,duration:`ISO-varighed`,ipv4:`IPv4-område`,ipv6:`IPv6-område`,cidrv4:`IPv4-spektrum`,cidrv6:`IPv6-spektrum`,base64:`base64-kodet streng`,base64url:`base64url-kodet streng`,json_string:`JSON-streng`,e164:`E.164-nummer`,jwt:`JWT`,template_literal:`input`},r={nan:`NaN`,string:`streng`,number:`tal`,boolean:`boolean`,array:`liste`,object:`objekt`,set:`sæt`,file:`fil`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=XG(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Ugyldigt input: forventede instanceof ${e.expected}, fik ${i}`:`Ugyldigt input: forventede ${t}, fik ${i}`}case`invalid_value`:return e.values.length===1?`Ugyldig værdi: forventede ${PG(e.values[0])}`:`Ugyldigt valg: forventede en af følgende ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,i=t(e.origin),a=r[e.origin]??e.origin;return i?`For stor: forventede ${a??`value`} ${i.verb} ${n} ${e.maximum.toString()} ${i.unit??`elementer`}`:`For stor: forventede ${a??`value`} havde ${n} ${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,i=t(e.origin),a=r[e.origin]??e.origin;return i?`For lille: forventede ${a} ${i.verb} ${n} ${e.minimum.toString()} ${i.unit}`:`For lille: forventede ${a} havde ${n} ${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Ugyldig streng: skal starte med "${t.prefix}"`:t.format===`ends_with`?`Ugyldig streng: skal ende med "${t.suffix}"`:t.format===`includes`?`Ugyldig streng: skal indeholde "${t.includes}"`:t.format===`regex`?`Ugyldig streng: skal matche mønsteret ${t.pattern}`:`Ugyldig ${n[t.format]??e.format}`}case`not_multiple_of`:return`Ugyldigt tal: skal være deleligt med ${e.divisor}`;case`unrecognized_keys`:return`${e.keys.length>1?`Ukendte nøgler`:`Ukendt nøgle`}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Ugyldig nøgle i ${e.origin}`;case`invalid_union`:return`Ugyldigt input: matcher ingen af de tilladte typer`;case`invalid_element`:return`Ugyldig værdi i ${e.origin}`;default:return`Ugyldigt input`}}}}));function YX(){return{localeError:XX()}}var XX,ZX=o((()=>{mK(),XX=()=>{let e={string:{unit:`Zeichen`,verb:`zu haben`},file:{unit:`Bytes`,verb:`zu haben`},array:{unit:`Elemente`,verb:`zu haben`},set:{unit:`Elemente`,verb:`zu haben`}};function t(t){return e[t]??null}let n={regex:`Eingabe`,email:`E-Mail-Adresse`,url:`URL`,emoji:`Emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO-Datum und -Uhrzeit`,date:`ISO-Datum`,time:`ISO-Uhrzeit`,duration:`ISO-Dauer`,ipv4:`IPv4-Adresse`,ipv6:`IPv6-Adresse`,cidrv4:`IPv4-Bereich`,cidrv6:`IPv6-Bereich`,base64:`Base64-codierter String`,base64url:`Base64-URL-codierter String`,json_string:`JSON-String`,e164:`E.164-Nummer`,jwt:`JWT`,template_literal:`Eingabe`},r={nan:`NaN`,number:`Zahl`,array:`Array`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=XG(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Ungültige Eingabe: erwartet instanceof ${e.expected}, erhalten ${i}`:`Ungültige Eingabe: erwartet ${t}, erhalten ${i}`}case`invalid_value`:return e.values.length===1?`Ungültige Eingabe: erwartet ${PG(e.values[0])}`:`Ungültige Option: erwartet eine von ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Zu groß: erwartet, dass ${e.origin??`Wert`} ${n}${e.maximum.toString()} ${r.unit??`Elemente`} hat`:`Zu groß: erwartet, dass ${e.origin??`Wert`} ${n}${e.maximum.toString()} ist`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Zu klein: erwartet, dass ${e.origin} ${n}${e.minimum.toString()} ${r.unit} hat`:`Zu klein: erwartet, dass ${e.origin} ${n}${e.minimum.toString()} ist`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Ungültiger String: muss mit "${t.prefix}" beginnen`:t.format===`ends_with`?`Ungültiger String: muss mit "${t.suffix}" enden`:t.format===`includes`?`Ungültiger String: muss "${t.includes}" enthalten`:t.format===`regex`?`Ungültiger String: muss dem Muster ${t.pattern} entsprechen`:`Ungültig: ${n[t.format]??e.format}`}case`not_multiple_of`:return`Ungültige Zahl: muss ein Vielfaches von ${e.divisor} sein`;case`unrecognized_keys`:return`${e.keys.length>1?`Unbekannte Schlüssel`:`Unbekannter Schlüssel`}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Ungültiger Schlüssel in ${e.origin}`;case`invalid_union`:return`Ungültige Eingabe`;case`invalid_element`:return`Ungültiger Wert in ${e.origin}`;default:return`Ungültige Eingabe`}}}}));function QX(){return{localeError:$X()}}var $X,eZ=o((()=>{mK(),$X=()=>{let e={string:{unit:`χαρακτήρες`,verb:`να έχει`},file:{unit:`bytes`,verb:`να έχει`},array:{unit:`στοιχεία`,verb:`να έχει`},set:{unit:`στοιχεία`,verb:`να έχει`},map:{unit:`καταχωρήσεις`,verb:`να έχει`}};function t(t){return e[t]??null}let n={regex:`είσοδος`,email:`διεύθυνση email`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO ημερομηνία και ώρα`,date:`ISO ημερομηνία`,time:`ISO ώρα`,duration:`ISO διάρκεια`,ipv4:`διεύθυνση IPv4`,ipv6:`διεύθυνση IPv6`,mac:`διεύθυνση MAC`,cidrv4:`εύρος IPv4`,cidrv6:`εύρος IPv6`,base64:`συμβολοσειρά κωδικοποιημένη σε base64`,base64url:`συμβολοσειρά κωδικοποιημένη σε base64url`,json_string:`συμβολοσειρά JSON`,e164:`αριθμός E.164`,jwt:`JWT`,template_literal:`είσοδος`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=XG(e.input),i=r[n]??n;return typeof e.expected==`string`&&/^[A-Z]/.test(e.expected)?`Μη έγκυρη είσοδος: αναμενόταν instanceof ${e.expected}, λήφθηκε ${i}`:`Μη έγκυρη είσοδος: αναμενόταν ${t}, λήφθηκε ${i}`}case`invalid_value`:return e.values.length===1?`Μη έγκυρη είσοδος: αναμενόταν ${PG(e.values[0])}`:`Μη έγκυρη επιλογή: αναμενόταν ένα από ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Πολύ μεγάλο: αναμενόταν ${e.origin??`τιμή`} να έχει ${n}${e.maximum.toString()} ${r.unit??`στοιχεία`}`:`Πολύ μεγάλο: αναμενόταν ${e.origin??`τιμή`} να είναι ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Πολύ μικρό: αναμενόταν ${e.origin} να έχει ${n}${e.minimum.toString()} ${r.unit}`:`Πολύ μικρό: αναμενόταν ${e.origin} να είναι ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Μη έγκυρη συμβολοσειρά: πρέπει να ξεκινά με "${t.prefix}"`:t.format===`ends_with`?`Μη έγκυρη συμβολοσειρά: πρέπει να τελειώνει με "${t.suffix}"`:t.format===`includes`?`Μη έγκυρη συμβολοσειρά: πρέπει να περιέχει "${t.includes}"`:t.format===`regex`?`Μη έγκυρη συμβολοσειρά: πρέπει να ταιριάζει με το μοτίβο ${t.pattern}`:`Μη έγκυρο: ${n[t.format]??e.format}`}case`not_multiple_of`:return`Μη έγκυρος αριθμός: πρέπει να είναι πολλαπλάσιο του ${e.divisor}`;case`unrecognized_keys`:return`Άγνωστ${e.keys.length>1?`α`:`ο`} κλειδ${e.keys.length>1?`ιά`:`ί`}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Μη έγκυρο κλειδί στο ${e.origin}`;case`invalid_union`:return`Μη έγκυρη είσοδος`;case`invalid_element`:return`Μη έγκυρη τιμή στο ${e.origin}`;default:return`Μη έγκυρη είσοδος`}}}}));function tZ(){return{localeError:nZ()}}var nZ,rZ=o((()=>{mK(),nZ=()=>{let e={string:{unit:`characters`,verb:`to have`},file:{unit:`bytes`,verb:`to have`},array:{unit:`items`,verb:`to have`},set:{unit:`items`,verb:`to have`},map:{unit:`entries`,verb:`to have`}};function t(t){return e[t]??null}let n={regex:`input`,email:`email address`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO datetime`,date:`ISO date`,time:`ISO time`,duration:`ISO duration`,ipv4:`IPv4 address`,ipv6:`IPv6 address`,mac:`MAC address`,cidrv4:`IPv4 range`,cidrv6:`IPv6 range`,base64:`base64-encoded string`,base64url:`base64url-encoded string`,json_string:`JSON string`,e164:`E.164 number`,jwt:`JWT`,template_literal:`input`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=XG(e.input);return`Invalid input: expected ${t}, received ${r[n]??n}`}case`invalid_value`:return e.values.length===1?`Invalid input: expected ${PG(e.values[0])}`:`Invalid option: expected one of ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Too big: expected ${e.origin??`value`} to have ${n}${e.maximum.toString()} ${r.unit??`elements`}`:`Too big: expected ${e.origin??`value`} to be ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Too small: expected ${e.origin} to have ${n}${e.minimum.toString()} ${r.unit}`:`Too small: expected ${e.origin} to be ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Invalid string: must start with "${t.prefix}"`:t.format===`ends_with`?`Invalid string: must end with "${t.suffix}"`:t.format===`includes`?`Invalid string: must include "${t.includes}"`:t.format===`regex`?`Invalid string: must match pattern ${t.pattern}`:`Invalid ${n[t.format]??e.format}`}case`not_multiple_of`:return`Invalid number: must be a multiple of ${e.divisor}`;case`unrecognized_keys`:return`Unrecognized key${e.keys.length>1?`s`:``}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Invalid key in ${e.origin}`;case`invalid_union`:return e.options&&Array.isArray(e.options)&&e.options.length>0?`Invalid discriminator value. Expected ${e.options.map(e=>`'${e}'`).join(` | `)}`:`Invalid input`;case`invalid_element`:return`Invalid value in ${e.origin}`;default:return`Invalid input`}}}}));function iZ(){return{localeError:aZ()}}var aZ,oZ=o((()=>{mK(),aZ=()=>{let e={string:{unit:`karaktrojn`,verb:`havi`},file:{unit:`bajtojn`,verb:`havi`},array:{unit:`elementojn`,verb:`havi`},set:{unit:`elementojn`,verb:`havi`}};function t(t){return e[t]??null}let n={regex:`enigo`,email:`retadreso`,url:`URL`,emoji:`emoĝio`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO-datotempo`,date:`ISO-dato`,time:`ISO-tempo`,duration:`ISO-daŭro`,ipv4:`IPv4-adreso`,ipv6:`IPv6-adreso`,cidrv4:`IPv4-rango`,cidrv6:`IPv6-rango`,base64:`64-ume kodita karaktraro`,base64url:`URL-64-ume kodita karaktraro`,json_string:`JSON-karaktraro`,e164:`E.164-nombro`,jwt:`JWT`,template_literal:`enigo`},r={nan:`NaN`,number:`nombro`,array:`tabelo`,null:`senvalora`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=XG(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Nevalida enigo: atendiĝis instanceof ${e.expected}, riceviĝis ${i}`:`Nevalida enigo: atendiĝis ${t}, riceviĝis ${i}`}case`invalid_value`:return e.values.length===1?`Nevalida enigo: atendiĝis ${PG(e.values[0])}`:`Nevalida opcio: atendiĝis unu el ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Tro granda: atendiĝis ke ${e.origin??`valoro`} havu ${n}${e.maximum.toString()} ${r.unit??`elementojn`}`:`Tro granda: atendiĝis ke ${e.origin??`valoro`} havu ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Tro malgranda: atendiĝis ke ${e.origin} havu ${n}${e.minimum.toString()} ${r.unit}`:`Tro malgranda: atendiĝis ke ${e.origin} estu ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Nevalida karaktraro: devas komenciĝi per "${t.prefix}"`:t.format===`ends_with`?`Nevalida karaktraro: devas finiĝi per "${t.suffix}"`:t.format===`includes`?`Nevalida karaktraro: devas inkluzivi "${t.includes}"`:t.format===`regex`?`Nevalida karaktraro: devas kongrui kun la modelo ${t.pattern}`:`Nevalida ${n[t.format]??e.format}`}case`not_multiple_of`:return`Nevalida nombro: devas esti oblo de ${e.divisor}`;case`unrecognized_keys`:return`Nekonata${e.keys.length>1?`j`:``} ŝlosilo${e.keys.length>1?`j`:``}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Nevalida ŝlosilo en ${e.origin}`;case`invalid_union`:return`Nevalida enigo`;case`invalid_element`:return`Nevalida valoro en ${e.origin}`;default:return`Nevalida enigo`}}}}));function sZ(){return{localeError:cZ()}}var cZ,lZ=o((()=>{mK(),cZ=()=>{let e={string:{unit:`caracteres`,verb:`tener`},file:{unit:`bytes`,verb:`tener`},array:{unit:`elementos`,verb:`tener`},set:{unit:`elementos`,verb:`tener`}};function t(t){return e[t]??null}let n={regex:`entrada`,email:`dirección de correo electrónico`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`fecha y hora ISO`,date:`fecha ISO`,time:`hora ISO`,duration:`duración ISO`,ipv4:`dirección IPv4`,ipv6:`dirección IPv6`,cidrv4:`rango IPv4`,cidrv6:`rango IPv6`,base64:`cadena codificada en base64`,base64url:`URL codificada en base64`,json_string:`cadena JSON`,e164:`número E.164`,jwt:`JWT`,template_literal:`entrada`},r={nan:`NaN`,string:`texto`,number:`número`,boolean:`booleano`,array:`arreglo`,object:`objeto`,set:`conjunto`,file:`archivo`,date:`fecha`,bigint:`número grande`,symbol:`símbolo`,undefined:`indefinido`,null:`nulo`,function:`función`,map:`mapa`,record:`registro`,tuple:`tupla`,enum:`enumeración`,union:`unión`,literal:`literal`,promise:`promesa`,void:`vacío`,never:`nunca`,unknown:`desconocido`,any:`cualquiera`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=XG(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Entrada inválida: se esperaba instanceof ${e.expected}, recibido ${i}`:`Entrada inválida: se esperaba ${t}, recibido ${i}`}case`invalid_value`:return e.values.length===1?`Entrada inválida: se esperaba ${PG(e.values[0])}`:`Opción inválida: se esperaba una de ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,i=t(e.origin),a=r[e.origin]??e.origin;return i?`Demasiado grande: se esperaba que ${a??`valor`} tuviera ${n}${e.maximum.toString()} ${i.unit??`elementos`}`:`Demasiado grande: se esperaba que ${a??`valor`} fuera ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,i=t(e.origin),a=r[e.origin]??e.origin;return i?`Demasiado pequeño: se esperaba que ${a} tuviera ${n}${e.minimum.toString()} ${i.unit}`:`Demasiado pequeño: se esperaba que ${a} fuera ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Cadena inválida: debe comenzar con "${t.prefix}"`:t.format===`ends_with`?`Cadena inválida: debe terminar en "${t.suffix}"`:t.format===`includes`?`Cadena inválida: debe incluir "${t.includes}"`:t.format===`regex`?`Cadena inválida: debe coincidir con el patrón ${t.pattern}`:`Inválido ${n[t.format]??e.format}`}case`not_multiple_of`:return`Número inválido: debe ser múltiplo de ${e.divisor}`;case`unrecognized_keys`:return`Llave${e.keys.length>1?`s`:``} desconocida${e.keys.length>1?`s`:``}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Llave inválida en ${r[e.origin]??e.origin}`;case`invalid_union`:return`Entrada inválida`;case`invalid_element`:return`Valor inválido en ${r[e.origin]??e.origin}`;default:return`Entrada inválida`}}}}));function uZ(){return{localeError:dZ()}}var dZ,fZ=o((()=>{mK(),dZ=()=>{let e={string:{unit:`کاراکتر`,verb:`داشته باشد`},file:{unit:`بایت`,verb:`داشته باشد`},array:{unit:`آیتم`,verb:`داشته باشد`},set:{unit:`آیتم`,verb:`داشته باشد`}};function t(t){return e[t]??null}let n={regex:`ورودی`,email:`آدرس ایمیل`,url:`URL`,emoji:`ایموجی`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`تاریخ و زمان ایزو`,date:`تاریخ ایزو`,time:`زمان ایزو`,duration:`مدت زمان ایزو`,ipv4:`IPv4 آدرس`,ipv6:`IPv6 آدرس`,cidrv4:`IPv4 دامنه`,cidrv6:`IPv6 دامنه`,base64:`base64-encoded رشته`,base64url:`base64url-encoded رشته`,json_string:`JSON رشته`,e164:`E.164 عدد`,jwt:`JWT`,template_literal:`ورودی`},r={nan:`NaN`,number:`عدد`,array:`آرایه`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=XG(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`ورودی نامعتبر: می‌بایست instanceof ${e.expected} می‌بود، ${i} دریافت شد`:`ورودی نامعتبر: می‌بایست ${t} می‌بود، ${i} دریافت شد`}case`invalid_value`:return e.values.length===1?`ورودی نامعتبر: می‌بایست ${PG(e.values[0])} می‌بود`:`گزینه نامعتبر: می‌بایست یکی از ${J(e.values,`|`)} می‌بود`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`خیلی بزرگ: ${e.origin??`مقدار`} باید ${n}${e.maximum.toString()} ${r.unit??`عنصر`} باشد`:`خیلی بزرگ: ${e.origin??`مقدار`} باید ${n}${e.maximum.toString()} باشد`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`خیلی کوچک: ${e.origin} باید ${n}${e.minimum.toString()} ${r.unit} باشد`:`خیلی کوچک: ${e.origin} باید ${n}${e.minimum.toString()} باشد`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`رشته نامعتبر: باید با "${t.prefix}" شروع شود`:t.format===`ends_with`?`رشته نامعتبر: باید با "${t.suffix}" تمام شود`:t.format===`includes`?`رشته نامعتبر: باید شامل "${t.includes}" باشد`:t.format===`regex`?`رشته نامعتبر: باید با الگوی ${t.pattern} مطابقت داشته باشد`:`${n[t.format]??e.format} نامعتبر`}case`not_multiple_of`:return`عدد نامعتبر: باید مضرب ${e.divisor} باشد`;case`unrecognized_keys`:return`کلید${e.keys.length>1?`های`:``} ناشناس: ${J(e.keys,`, `)}`;case`invalid_key`:return`کلید ناشناس در ${e.origin}`;case`invalid_union`:return`ورودی نامعتبر`;case`invalid_element`:return`مقدار نامعتبر در ${e.origin}`;default:return`ورودی نامعتبر`}}}}));function pZ(){return{localeError:mZ()}}var mZ,hZ=o((()=>{mK(),mZ=()=>{let e={string:{unit:`merkkiä`,subject:`merkkijonon`},file:{unit:`tavua`,subject:`tiedoston`},array:{unit:`alkiota`,subject:`listan`},set:{unit:`alkiota`,subject:`joukon`},number:{unit:``,subject:`luvun`},bigint:{unit:``,subject:`suuren kokonaisluvun`},int:{unit:``,subject:`kokonaisluvun`},date:{unit:``,subject:`päivämäärän`}};function t(t){return e[t]??null}let n={regex:`säännöllinen lauseke`,email:`sähköpostiosoite`,url:`URL-osoite`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO-aikaleima`,date:`ISO-päivämäärä`,time:`ISO-aika`,duration:`ISO-kesto`,ipv4:`IPv4-osoite`,ipv6:`IPv6-osoite`,cidrv4:`IPv4-alue`,cidrv6:`IPv6-alue`,base64:`base64-koodattu merkkijono`,base64url:`base64url-koodattu merkkijono`,json_string:`JSON-merkkijono`,e164:`E.164-luku`,jwt:`JWT`,template_literal:`templaattimerkkijono`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=XG(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Virheellinen tyyppi: odotettiin instanceof ${e.expected}, oli ${i}`:`Virheellinen tyyppi: odotettiin ${t}, oli ${i}`}case`invalid_value`:return e.values.length===1?`Virheellinen syöte: täytyy olla ${PG(e.values[0])}`:`Virheellinen valinta: täytyy olla yksi seuraavista: ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Liian suuri: ${r.subject} täytyy olla ${n}${e.maximum.toString()} ${r.unit}`.trim():`Liian suuri: arvon täytyy olla ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Liian pieni: ${r.subject} täytyy olla ${n}${e.minimum.toString()} ${r.unit}`.trim():`Liian pieni: arvon täytyy olla ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Virheellinen syöte: täytyy alkaa "${t.prefix}"`:t.format===`ends_with`?`Virheellinen syöte: täytyy loppua "${t.suffix}"`:t.format===`includes`?`Virheellinen syöte: täytyy sisältää "${t.includes}"`:t.format===`regex`?`Virheellinen syöte: täytyy vastata säännöllistä lauseketta ${t.pattern}`:`Virheellinen ${n[t.format]??e.format}`}case`not_multiple_of`:return`Virheellinen luku: täytyy olla luvun ${e.divisor} monikerta`;case`unrecognized_keys`:return`${e.keys.length>1?`Tuntemattomat avaimet`:`Tuntematon avain`}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Virheellinen avain tietueessa`;case`invalid_union`:return`Virheellinen unioni`;case`invalid_element`:return`Virheellinen arvo joukossa`;default:return`Virheellinen syöte`}}}}));function gZ(){return{localeError:_Z()}}var _Z,vZ=o((()=>{mK(),_Z=()=>{let e={string:{unit:`caractères`,verb:`avoir`},file:{unit:`octets`,verb:`avoir`},array:{unit:`éléments`,verb:`avoir`},set:{unit:`éléments`,verb:`avoir`}};function t(t){return e[t]??null}let n={regex:`entrée`,email:`adresse e-mail`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`date et heure ISO`,date:`date ISO`,time:`heure ISO`,duration:`durée ISO`,ipv4:`adresse IPv4`,ipv6:`adresse IPv6`,cidrv4:`plage IPv4`,cidrv6:`plage IPv6`,base64:`chaîne encodée en base64`,base64url:`chaîne encodée en base64url`,json_string:`chaîne JSON`,e164:`numéro E.164`,jwt:`JWT`,template_literal:`entrée`},r={string:`chaîne`,number:`nombre`,int:`entier`,boolean:`booléen`,bigint:`grand entier`,symbol:`symbole`,undefined:`indéfini`,null:`null`,never:`jamais`,void:`vide`,date:`date`,array:`tableau`,object:`objet`,tuple:`tuple`,record:`enregistrement`,map:`carte`,set:`ensemble`,file:`fichier`,nonoptional:`non-optionnel`,nan:`NaN`,function:`fonction`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=XG(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Entrée invalide : instanceof ${e.expected} attendu, ${i} reçu`:`Entrée invalide : ${t} attendu, ${i} reçu`}case`invalid_value`:return e.values.length===1?`Entrée invalide : ${PG(e.values[0])} attendu`:`Option invalide : une valeur parmi ${J(e.values,`|`)} attendue`;case`too_big`:{let n=e.inclusive?`<=`:`<`,i=t(e.origin);return i?`Trop grand : ${r[e.origin]??`valeur`} doit ${i.verb} ${n}${e.maximum.toString()} ${i.unit??`élément(s)`}`:`Trop grand : ${r[e.origin]??`valeur`} doit être ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,i=t(e.origin);return i?`Trop petit : ${r[e.origin]??`valeur`} doit ${i.verb} ${n}${e.minimum.toString()} ${i.unit}`:`Trop petit : ${r[e.origin]??`valeur`} doit être ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Chaîne invalide : doit commencer par "${t.prefix}"`:t.format===`ends_with`?`Chaîne invalide : doit se terminer par "${t.suffix}"`:t.format===`includes`?`Chaîne invalide : doit inclure "${t.includes}"`:t.format===`regex`?`Chaîne invalide : doit correspondre au modèle ${t.pattern}`:`${n[t.format]??e.format} invalide`}case`not_multiple_of`:return`Nombre invalide : doit être un multiple de ${e.divisor}`;case`unrecognized_keys`:return`Clé${e.keys.length>1?`s`:``} non reconnue${e.keys.length>1?`s`:``} : ${J(e.keys,`, `)}`;case`invalid_key`:return`Clé invalide dans ${e.origin}`;case`invalid_union`:return`Entrée invalide`;case`invalid_element`:return`Valeur invalide dans ${e.origin}`;default:return`Entrée invalide`}}}}));function yZ(){return{localeError:bZ()}}var bZ,xZ=o((()=>{mK(),bZ=()=>{let e={string:{unit:`caractères`,verb:`avoir`},file:{unit:`octets`,verb:`avoir`},array:{unit:`éléments`,verb:`avoir`},set:{unit:`éléments`,verb:`avoir`}};function t(t){return e[t]??null}let n={regex:`entrée`,email:`adresse courriel`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`date-heure ISO`,date:`date ISO`,time:`heure ISO`,duration:`durée ISO`,ipv4:`adresse IPv4`,ipv6:`adresse IPv6`,cidrv4:`plage IPv4`,cidrv6:`plage IPv6`,base64:`chaîne encodée en base64`,base64url:`chaîne encodée en base64url`,json_string:`chaîne JSON`,e164:`numéro E.164`,jwt:`JWT`,template_literal:`entrée`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=XG(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Entrée invalide : attendu instanceof ${e.expected}, reçu ${i}`:`Entrée invalide : attendu ${t}, reçu ${i}`}case`invalid_value`:return e.values.length===1?`Entrée invalide : attendu ${PG(e.values[0])}`:`Option invalide : attendu l'une des valeurs suivantes ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`≤`:`<`,r=t(e.origin);return r?`Trop grand : attendu que ${e.origin??`la valeur`} ait ${n}${e.maximum.toString()} ${r.unit}`:`Trop grand : attendu que ${e.origin??`la valeur`} soit ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`≥`:`>`,r=t(e.origin);return r?`Trop petit : attendu que ${e.origin} ait ${n}${e.minimum.toString()} ${r.unit}`:`Trop petit : attendu que ${e.origin} soit ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Chaîne invalide : doit commencer par "${t.prefix}"`:t.format===`ends_with`?`Chaîne invalide : doit se terminer par "${t.suffix}"`:t.format===`includes`?`Chaîne invalide : doit inclure "${t.includes}"`:t.format===`regex`?`Chaîne invalide : doit correspondre au motif ${t.pattern}`:`${n[t.format]??e.format} invalide`}case`not_multiple_of`:return`Nombre invalide : doit être un multiple de ${e.divisor}`;case`unrecognized_keys`:return`Clé${e.keys.length>1?`s`:``} non reconnue${e.keys.length>1?`s`:``} : ${J(e.keys,`, `)}`;case`invalid_key`:return`Clé invalide dans ${e.origin}`;case`invalid_union`:return`Entrée invalide`;case`invalid_element`:return`Valeur invalide dans ${e.origin}`;default:return`Entrée invalide`}}}}));function SZ(){return{localeError:CZ()}}var CZ,wZ=o((()=>{mK(),CZ=()=>{let e={string:{label:`מחרוזת`,gender:`f`},number:{label:`מספר`,gender:`m`},boolean:{label:`ערך בוליאני`,gender:`m`},bigint:{label:`BigInt`,gender:`m`},date:{label:`תאריך`,gender:`m`},array:{label:`מערך`,gender:`m`},object:{label:`אובייקט`,gender:`m`},null:{label:`ערך ריק (null)`,gender:`m`},undefined:{label:`ערך לא מוגדר (undefined)`,gender:`m`},symbol:{label:`סימבול (Symbol)`,gender:`m`},function:{label:`פונקציה`,gender:`f`},map:{label:`מפה (Map)`,gender:`f`},set:{label:`קבוצה (Set)`,gender:`f`},file:{label:`קובץ`,gender:`m`},promise:{label:`Promise`,gender:`m`},NaN:{label:`NaN`,gender:`m`},unknown:{label:`ערך לא ידוע`,gender:`m`},value:{label:`ערך`,gender:`m`}},t={string:{unit:`תווים`,shortLabel:`קצר`,longLabel:`ארוך`},file:{unit:`בייטים`,shortLabel:`קטן`,longLabel:`גדול`},array:{unit:`פריטים`,shortLabel:`קטן`,longLabel:`גדול`},set:{unit:`פריטים`,shortLabel:`קטן`,longLabel:`גדול`},number:{unit:``,shortLabel:`קטן`,longLabel:`גדול`}},n=t=>t?e[t]:void 0,r=t=>{let r=n(t);return r?r.label:t??e.unknown.label},i=e=>`ה${r(e)}`,a=e=>(n(e)?.gender??`m`)===`f`?`צריכה להיות`:`צריך להיות`,o=e=>e?t[e]??null:null,s={regex:{label:`קלט`,gender:`m`},email:{label:`כתובת אימייל`,gender:`f`},url:{label:`כתובת רשת`,gender:`f`},emoji:{label:`אימוג'י`,gender:`m`},uuid:{label:`UUID`,gender:`m`},nanoid:{label:`nanoid`,gender:`m`},guid:{label:`GUID`,gender:`m`},cuid:{label:`cuid`,gender:`m`},cuid2:{label:`cuid2`,gender:`m`},ulid:{label:`ULID`,gender:`m`},xid:{label:`XID`,gender:`m`},ksuid:{label:`KSUID`,gender:`m`},datetime:{label:`תאריך וזמן ISO`,gender:`m`},date:{label:`תאריך ISO`,gender:`m`},time:{label:`זמן ISO`,gender:`m`},duration:{label:`משך זמן ISO`,gender:`m`},ipv4:{label:`כתובת IPv4`,gender:`f`},ipv6:{label:`כתובת IPv6`,gender:`f`},cidrv4:{label:`טווח IPv4`,gender:`m`},cidrv6:{label:`טווח IPv6`,gender:`m`},base64:{label:`מחרוזת בבסיס 64`,gender:`f`},base64url:{label:`מחרוזת בבסיס 64 לכתובות רשת`,gender:`f`},json_string:{label:`מחרוזת JSON`,gender:`f`},e164:{label:`מספר E.164`,gender:`m`},jwt:{label:`JWT`,gender:`m`},ends_with:{label:`קלט`,gender:`m`},includes:{label:`קלט`,gender:`m`},lowercase:{label:`קלט`,gender:`m`},starts_with:{label:`קלט`,gender:`m`},uppercase:{label:`קלט`,gender:`m`}},c={nan:`NaN`};return t=>{switch(t.code){case`invalid_type`:{let n=t.expected,i=c[n??``]??r(n),a=XG(t.input),o=c[a]??e[a]?.label??a;return/^[A-Z]/.test(t.expected)?`קלט לא תקין: צריך להיות instanceof ${t.expected}, התקבל ${o}`:`קלט לא תקין: צריך להיות ${i}, התקבל ${o}`}case`invalid_value`:{if(t.values.length===1)return`ערך לא תקין: הערך חייב להיות ${PG(t.values[0])}`;let e=t.values.map(e=>PG(e));if(t.values.length===2)return`ערך לא תקין: האפשרויות המתאימות הן ${e[0]} או ${e[1]}`;let n=e[e.length-1];return`ערך לא תקין: האפשרויות המתאימות הן ${e.slice(0,-1).join(`, `)} או ${n}`}case`too_big`:{let e=o(t.origin),n=i(t.origin??`value`);if(t.origin===`string`)return`${e?.longLabel??`ארוך`} מדי: ${n} צריכה להכיל ${t.maximum.toString()} ${e?.unit??``} ${t.inclusive?`או פחות`:`לכל היותר`}`.trim();if(t.origin===`number`)return`גדול מדי: ${n} צריך להיות ${t.inclusive?`קטן או שווה ל-${t.maximum}`:`קטן מ-${t.maximum}`}`;if(t.origin===`array`||t.origin===`set`)return`גדול מדי: ${n} ${t.origin===`set`?`צריכה`:`צריך`} להכיל ${t.inclusive?`${t.maximum} ${e?.unit??``} או פחות`:`פחות מ-${t.maximum} ${e?.unit??``}`}`.trim();let r=t.inclusive?`<=`:`<`,s=a(t.origin??`value`);return e?.unit?`${e.longLabel} מדי: ${n} ${s} ${r}${t.maximum.toString()} ${e.unit}`:`${e?.longLabel??`גדול`} מדי: ${n} ${s} ${r}${t.maximum.toString()}`}case`too_small`:{let e=o(t.origin),n=i(t.origin??`value`);if(t.origin===`string`)return`${e?.shortLabel??`קצר`} מדי: ${n} צריכה להכיל ${t.minimum.toString()} ${e?.unit??``} ${t.inclusive?`או יותר`:`לפחות`}`.trim();if(t.origin===`number`)return`קטן מדי: ${n} צריך להיות ${t.inclusive?`גדול או שווה ל-${t.minimum}`:`גדול מ-${t.minimum}`}`;if(t.origin===`array`||t.origin===`set`){let r=t.origin===`set`?`צריכה`:`צריך`;return t.minimum===1&&t.inclusive?`קטן מדי: ${n} ${r} להכיל ${t.origin,`לפחות פריט אחד`}`:`קטן מדי: ${n} ${r} להכיל ${t.inclusive?`${t.minimum} ${e?.unit??``} או יותר`:`יותר מ-${t.minimum} ${e?.unit??``}`}`.trim()}let r=t.inclusive?`>=`:`>`,s=a(t.origin??`value`);return e?.unit?`${e.shortLabel} מדי: ${n} ${s} ${r}${t.minimum.toString()} ${e.unit}`:`${e?.shortLabel??`קטן`} מדי: ${n} ${s} ${r}${t.minimum.toString()}`}case`invalid_format`:{let e=t;if(e.format===`starts_with`)return`המחרוזת חייבת להתחיל ב "${e.prefix}"`;if(e.format===`ends_with`)return`המחרוזת חייבת להסתיים ב "${e.suffix}"`;if(e.format===`includes`)return`המחרוזת חייבת לכלול "${e.includes}"`;if(e.format===`regex`)return`המחרוזת חייבת להתאים לתבנית ${e.pattern}`;let n=s[e.format];return`${n?.label??e.format} לא ${(n?.gender??`m`)===`f`?`תקינה`:`תקין`}`}case`not_multiple_of`:return`מספר לא תקין: חייב להיות מכפלה של ${t.divisor}`;case`unrecognized_keys`:return`מפתח${t.keys.length>1?`ות`:``} לא מזוה${t.keys.length>1?`ים`:`ה`}: ${J(t.keys,`, `)}`;case`invalid_key`:return`שדה לא תקין באובייקט`;case`invalid_union`:return`קלט לא תקין`;case`invalid_element`:return`ערך לא תקין ב${i(t.origin??`array`)}`;default:return`קלט לא תקין`}}}}));function TZ(){return{localeError:EZ()}}var EZ,DZ=o((()=>{mK(),EZ=()=>{let e={string:{unit:`znakova`,verb:`imati`},file:{unit:`bajtova`,verb:`imati`},array:{unit:`stavki`,verb:`imati`},set:{unit:`stavki`,verb:`imati`}};function t(t){return e[t]??null}let n={regex:`unos`,email:`email adresa`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO datum i vrijeme`,date:`ISO datum`,time:`ISO vrijeme`,duration:`ISO trajanje`,ipv4:`IPv4 adresa`,ipv6:`IPv6 adresa`,cidrv4:`IPv4 raspon`,cidrv6:`IPv6 raspon`,base64:`base64 kodirani tekst`,base64url:`base64url kodirani tekst`,json_string:`JSON tekst`,e164:`E.164 broj`,jwt:`JWT`,template_literal:`unos`},r={nan:`NaN`,string:`tekst`,number:`broj`,boolean:`boolean`,array:`niz`,object:`objekt`,set:`skup`,file:`datoteka`,date:`datum`,bigint:`bigint`,symbol:`simbol`,undefined:`undefined`,null:`null`,function:`funkcija`,map:`mapa`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=XG(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Neispravan unos: očekuje se instanceof ${e.expected}, a primljeno je ${i}`:`Neispravan unos: očekuje se ${t}, a primljeno je ${i}`}case`invalid_value`:return e.values.length===1?`Neispravna vrijednost: očekivano ${PG(e.values[0])}`:`Neispravna opcija: očekivano jedno od ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,i=t(e.origin),a=r[e.origin]??e.origin;return i?`Preveliko: očekivano da ${a??`vrijednost`} ima ${n}${e.maximum.toString()} ${i.unit??`elemenata`}`:`Preveliko: očekivano da ${a??`vrijednost`} bude ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,i=t(e.origin),a=r[e.origin]??e.origin;return i?`Premalo: očekivano da ${a} ima ${n}${e.minimum.toString()} ${i.unit}`:`Premalo: očekivano da ${a} bude ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Neispravan tekst: mora započinjati s "${t.prefix}"`:t.format===`ends_with`?`Neispravan tekst: mora završavati s "${t.suffix}"`:t.format===`includes`?`Neispravan tekst: mora sadržavati "${t.includes}"`:t.format===`regex`?`Neispravan tekst: mora odgovarati uzorku ${t.pattern}`:`Neispravna ${n[t.format]??e.format}`}case`not_multiple_of`:return`Neispravan broj: mora biti višekratnik od ${e.divisor}`;case`unrecognized_keys`:return`Neprepoznat${e.keys.length>1?`i ključevi`:` ključ`}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Neispravan ključ u ${r[e.origin]??e.origin}`;case`invalid_union`:return`Neispravan unos`;case`invalid_element`:return`Neispravna vrijednost u ${r[e.origin]??e.origin}`;default:return`Neispravan unos`}}}}));function OZ(){return{localeError:kZ()}}var kZ,AZ=o((()=>{mK(),kZ=()=>{let e={string:{unit:`karakter`,verb:`legyen`},file:{unit:`byte`,verb:`legyen`},array:{unit:`elem`,verb:`legyen`},set:{unit:`elem`,verb:`legyen`}};function t(t){return e[t]??null}let n={regex:`bemenet`,email:`email cím`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO időbélyeg`,date:`ISO dátum`,time:`ISO idő`,duration:`ISO időintervallum`,ipv4:`IPv4 cím`,ipv6:`IPv6 cím`,cidrv4:`IPv4 tartomány`,cidrv6:`IPv6 tartomány`,base64:`base64-kódolt string`,base64url:`base64url-kódolt string`,json_string:`JSON string`,e164:`E.164 szám`,jwt:`JWT`,template_literal:`bemenet`},r={nan:`NaN`,number:`szám`,array:`tömb`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=XG(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Érvénytelen bemenet: a várt érték instanceof ${e.expected}, a kapott érték ${i}`:`Érvénytelen bemenet: a várt érték ${t}, a kapott érték ${i}`}case`invalid_value`:return e.values.length===1?`Érvénytelen bemenet: a várt érték ${PG(e.values[0])}`:`Érvénytelen opció: valamelyik érték várt ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Túl nagy: ${e.origin??`érték`} mérete túl nagy ${n}${e.maximum.toString()} ${r.unit??`elem`}`:`Túl nagy: a bemeneti érték ${e.origin??`érték`} túl nagy: ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Túl kicsi: a bemeneti érték ${e.origin} mérete túl kicsi ${n}${e.minimum.toString()} ${r.unit}`:`Túl kicsi: a bemeneti érték ${e.origin} túl kicsi ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Érvénytelen string: "${t.prefix}" értékkel kell kezdődnie`:t.format===`ends_with`?`Érvénytelen string: "${t.suffix}" értékkel kell végződnie`:t.format===`includes`?`Érvénytelen string: "${t.includes}" értéket kell tartalmaznia`:t.format===`regex`?`Érvénytelen string: ${t.pattern} mintának kell megfelelnie`:`Érvénytelen ${n[t.format]??e.format}`}case`not_multiple_of`:return`Érvénytelen szám: ${e.divisor} többszörösének kell lennie`;case`unrecognized_keys`:return`Ismeretlen kulcs${e.keys.length>1?`s`:``}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Érvénytelen kulcs ${e.origin}`;case`invalid_union`:return`Érvénytelen bemenet`;case`invalid_element`:return`Érvénytelen érték: ${e.origin}`;default:return`Érvénytelen bemenet`}}}}));function jZ(e,t,n){return Math.abs(e)===1?t:n}function MZ(e){if(!e)return``;let t=[`ա`,`ե`,`ը`,`ի`,`ո`,`ու`,`օ`],n=e[e.length-1];return e+(t.includes(n)?`ն`:`ը`)}function NZ(){return{localeError:PZ()}}var PZ,FZ=o((()=>{mK(),PZ=()=>{let e={string:{unit:{one:`նշան`,many:`նշաններ`},verb:`ունենալ`},file:{unit:{one:`բայթ`,many:`բայթեր`},verb:`ունենալ`},array:{unit:{one:`տարր`,many:`տարրեր`},verb:`ունենալ`},set:{unit:{one:`տարր`,many:`տարրեր`},verb:`ունենալ`}};function t(t){return e[t]??null}let n={regex:`մուտք`,email:`էլ. հասցե`,url:`URL`,emoji:`էմոջի`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO ամսաթիվ և ժամ`,date:`ISO ամսաթիվ`,time:`ISO ժամ`,duration:`ISO տևողություն`,ipv4:`IPv4 հասցե`,ipv6:`IPv6 հասցե`,cidrv4:`IPv4 միջակայք`,cidrv6:`IPv6 միջակայք`,base64:`base64 ձևաչափով տող`,base64url:`base64url ձևաչափով տող`,json_string:`JSON տող`,e164:`E.164 համար`,jwt:`JWT`,template_literal:`մուտք`},r={nan:`NaN`,number:`թիվ`,array:`զանգված`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=XG(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Սխալ մուտքագրում․ սպասվում էր instanceof ${e.expected}, ստացվել է ${i}`:`Սխալ մուտքագրում․ սպասվում էր ${t}, ստացվել է ${i}`}case`invalid_value`:return e.values.length===1?`Սխալ մուտքագրում․ սպասվում էր ${PG(e.values[1])}`:`Սխալ տարբերակ․ սպասվում էր հետևյալներից մեկը՝ ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);if(r){let t=jZ(Number(e.maximum),r.unit.one,r.unit.many);return`Չափազանց մեծ արժեք․ սպասվում է, որ ${MZ(e.origin??`արժեք`)} կունենա ${n}${e.maximum.toString()} ${t}`}return`Չափազանց մեծ արժեք․ սպասվում է, որ ${MZ(e.origin??`արժեք`)} լինի ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);if(r){let t=jZ(Number(e.minimum),r.unit.one,r.unit.many);return`Չափազանց փոքր արժեք․ սպասվում է, որ ${MZ(e.origin)} կունենա ${n}${e.minimum.toString()} ${t}`}return`Չափազանց փոքր արժեք․ սպասվում է, որ ${MZ(e.origin)} լինի ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Սխալ տող․ պետք է սկսվի "${t.prefix}"-ով`:t.format===`ends_with`?`Սխալ տող․ պետք է ավարտվի "${t.suffix}"-ով`:t.format===`includes`?`Սխալ տող․ պետք է պարունակի "${t.includes}"`:t.format===`regex`?`Սխալ տող․ պետք է համապատասխանի ${t.pattern} ձևաչափին`:`Սխալ ${n[t.format]??e.format}`}case`not_multiple_of`:return`Սխալ թիվ․ պետք է բազմապատիկ լինի ${e.divisor}-ի`;case`unrecognized_keys`:return`Չճանաչված բանալի${e.keys.length>1?`ներ`:``}. ${J(e.keys,`, `)}`;case`invalid_key`:return`Սխալ բանալի ${MZ(e.origin)}-ում`;case`invalid_union`:return`Սխալ մուտքագրում`;case`invalid_element`:return`Սխալ արժեք ${MZ(e.origin)}-ում`;default:return`Սխալ մուտքագրում`}}}}));function IZ(){return{localeError:LZ()}}var LZ,RZ=o((()=>{mK(),LZ=()=>{let e={string:{unit:`karakter`,verb:`memiliki`},file:{unit:`byte`,verb:`memiliki`},array:{unit:`item`,verb:`memiliki`},set:{unit:`item`,verb:`memiliki`}};function t(t){return e[t]??null}let n={regex:`input`,email:`alamat email`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`tanggal dan waktu format ISO`,date:`tanggal format ISO`,time:`jam format ISO`,duration:`durasi format ISO`,ipv4:`alamat IPv4`,ipv6:`alamat IPv6`,cidrv4:`rentang alamat IPv4`,cidrv6:`rentang alamat IPv6`,base64:`string dengan enkode base64`,base64url:`string dengan enkode base64url`,json_string:`string JSON`,e164:`angka E.164`,jwt:`JWT`,template_literal:`input`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=XG(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Input tidak valid: diharapkan instanceof ${e.expected}, diterima ${i}`:`Input tidak valid: diharapkan ${t}, diterima ${i}`}case`invalid_value`:return e.values.length===1?`Input tidak valid: diharapkan ${PG(e.values[0])}`:`Pilihan tidak valid: diharapkan salah satu dari ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Terlalu besar: diharapkan ${e.origin??`value`} memiliki ${n}${e.maximum.toString()} ${r.unit??`elemen`}`:`Terlalu besar: diharapkan ${e.origin??`value`} menjadi ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Terlalu kecil: diharapkan ${e.origin} memiliki ${n}${e.minimum.toString()} ${r.unit}`:`Terlalu kecil: diharapkan ${e.origin} menjadi ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`String tidak valid: harus dimulai dengan "${t.prefix}"`:t.format===`ends_with`?`String tidak valid: harus berakhir dengan "${t.suffix}"`:t.format===`includes`?`String tidak valid: harus menyertakan "${t.includes}"`:t.format===`regex`?`String tidak valid: harus sesuai pola ${t.pattern}`:`${n[t.format]??e.format} tidak valid`}case`not_multiple_of`:return`Angka tidak valid: harus kelipatan dari ${e.divisor}`;case`unrecognized_keys`:return`Kunci tidak dikenali ${e.keys.length>1?`s`:``}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Kunci tidak valid di ${e.origin}`;case`invalid_union`:return`Input tidak valid`;case`invalid_element`:return`Nilai tidak valid di ${e.origin}`;default:return`Input tidak valid`}}}}));function zZ(){return{localeError:BZ()}}var BZ,VZ=o((()=>{mK(),BZ=()=>{let e={string:{unit:`stafi`,verb:`að hafa`},file:{unit:`bæti`,verb:`að hafa`},array:{unit:`hluti`,verb:`að hafa`},set:{unit:`hluti`,verb:`að hafa`}};function t(t){return e[t]??null}let n={regex:`gildi`,email:`netfang`,url:`vefslóð`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO dagsetning og tími`,date:`ISO dagsetning`,time:`ISO tími`,duration:`ISO tímalengd`,ipv4:`IPv4 address`,ipv6:`IPv6 address`,cidrv4:`IPv4 range`,cidrv6:`IPv6 range`,base64:`base64-encoded strengur`,base64url:`base64url-encoded strengur`,json_string:`JSON strengur`,e164:`E.164 tölugildi`,jwt:`JWT`,template_literal:`gildi`},r={nan:`NaN`,number:`númer`,array:`fylki`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=XG(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Rangt gildi: Þú slóst inn ${i} þar sem á að vera instanceof ${e.expected}`:`Rangt gildi: Þú slóst inn ${i} þar sem á að vera ${t}`}case`invalid_value`:return e.values.length===1?`Rangt gildi: gert ráð fyrir ${PG(e.values[0])}`:`Ógilt val: má vera eitt af eftirfarandi ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Of stórt: gert er ráð fyrir að ${e.origin??`gildi`} hafi ${n}${e.maximum.toString()} ${r.unit??`hluti`}`:`Of stórt: gert er ráð fyrir að ${e.origin??`gildi`} sé ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Of lítið: gert er ráð fyrir að ${e.origin} hafi ${n}${e.minimum.toString()} ${r.unit}`:`Of lítið: gert er ráð fyrir að ${e.origin} sé ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Ógildur strengur: verður að byrja á "${t.prefix}"`:t.format===`ends_with`?`Ógildur strengur: verður að enda á "${t.suffix}"`:t.format===`includes`?`Ógildur strengur: verður að innihalda "${t.includes}"`:t.format===`regex`?`Ógildur strengur: verður að fylgja mynstri ${t.pattern}`:`Rangt ${n[t.format]??e.format}`}case`not_multiple_of`:return`Röng tala: verður að vera margfeldi af ${e.divisor}`;case`unrecognized_keys`:return`Óþekkt ${e.keys.length>1?`ir lyklar`:`ur lykill`}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Rangur lykill í ${e.origin}`;case`invalid_union`:return`Rangt gildi`;case`invalid_element`:return`Rangt gildi í ${e.origin}`;default:return`Rangt gildi`}}}}));function HZ(){return{localeError:UZ()}}var UZ,WZ=o((()=>{mK(),UZ=()=>{let e={string:{unit:`caratteri`,verb:`avere`},file:{unit:`byte`,verb:`avere`},array:{unit:`elementi`,verb:`avere`},set:{unit:`elementi`,verb:`avere`}};function t(t){return e[t]??null}let n={regex:`input`,email:`indirizzo email`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`data e ora ISO`,date:`data ISO`,time:`ora ISO`,duration:`durata ISO`,ipv4:`indirizzo IPv4`,ipv6:`indirizzo IPv6`,cidrv4:`intervallo IPv4`,cidrv6:`intervallo IPv6`,base64:`stringa codificata in base64`,base64url:`URL codificata in base64`,json_string:`stringa JSON`,e164:`numero E.164`,jwt:`JWT`,template_literal:`input`},r={nan:`NaN`,number:`numero`,array:`vettore`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=XG(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Input non valido: atteso instanceof ${e.expected}, ricevuto ${i}`:`Input non valido: atteso ${t}, ricevuto ${i}`}case`invalid_value`:return e.values.length===1?`Input non valido: atteso ${PG(e.values[0])}`:`Opzione non valida: atteso uno tra ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Troppo grande: ${e.origin??`valore`} deve avere ${n}${e.maximum.toString()} ${r.unit??`elementi`}`:`Troppo grande: ${e.origin??`valore`} deve essere ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Troppo piccolo: ${e.origin} deve avere ${n}${e.minimum.toString()} ${r.unit}`:`Troppo piccolo: ${e.origin} deve essere ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Stringa non valida: deve iniziare con "${t.prefix}"`:t.format===`ends_with`?`Stringa non valida: deve terminare con "${t.suffix}"`:t.format===`includes`?`Stringa non valida: deve includere "${t.includes}"`:t.format===`regex`?`Stringa non valida: deve corrispondere al pattern ${t.pattern}`:`Input non valido: ${n[t.format]??e.format}`}case`not_multiple_of`:return`Numero non valido: deve essere un multiplo di ${e.divisor}`;case`unrecognized_keys`:return`Chiav${e.keys.length>1?`i`:`e`} non riconosciut${e.keys.length>1?`e`:`a`}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Chiave non valida in ${e.origin}`;case`invalid_union`:return`Input non valido`;case`invalid_element`:return`Valore non valido in ${e.origin}`;default:return`Input non valido`}}}}));function GZ(){return{localeError:KZ()}}var KZ,qZ=o((()=>{mK(),KZ=()=>{let e={string:{unit:`文字`,verb:`である`},file:{unit:`バイト`,verb:`である`},array:{unit:`要素`,verb:`である`},set:{unit:`要素`,verb:`である`}};function t(t){return e[t]??null}let n={regex:`入力値`,email:`メールアドレス`,url:`URL`,emoji:`絵文字`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO日時`,date:`ISO日付`,time:`ISO時刻`,duration:`ISO期間`,ipv4:`IPv4アドレス`,ipv6:`IPv6アドレス`,cidrv4:`IPv4範囲`,cidrv6:`IPv6範囲`,base64:`base64エンコード文字列`,base64url:`base64urlエンコード文字列`,json_string:`JSON文字列`,e164:`E.164番号`,jwt:`JWT`,template_literal:`入力値`},r={nan:`NaN`,number:`数値`,array:`配列`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=XG(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`無効な入力: instanceof ${e.expected}が期待されましたが、${i}が入力されました`:`無効な入力: ${t}が期待されましたが、${i}が入力されました`}case`invalid_value`:return e.values.length===1?`無効な入力: ${PG(e.values[0])}が期待されました`:`無効な選択: ${J(e.values,`、`)}のいずれかである必要があります`;case`too_big`:{let n=e.inclusive?`以下である`:`より小さい`,r=t(e.origin);return r?`大きすぎる値: ${e.origin??`値`}は${e.maximum.toString()}${r.unit??`要素`}${n}必要があります`:`大きすぎる値: ${e.origin??`値`}は${e.maximum.toString()}${n}必要があります`}case`too_small`:{let n=e.inclusive?`以上である`:`より大きい`,r=t(e.origin);return r?`小さすぎる値: ${e.origin}は${e.minimum.toString()}${r.unit}${n}必要があります`:`小さすぎる値: ${e.origin}は${e.minimum.toString()}${n}必要があります`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`無効な文字列: "${t.prefix}"で始まる必要があります`:t.format===`ends_with`?`無効な文字列: "${t.suffix}"で終わる必要があります`:t.format===`includes`?`無効な文字列: "${t.includes}"を含む必要があります`:t.format===`regex`?`無効な文字列: パターン${t.pattern}に一致する必要があります`:`無効な${n[t.format]??e.format}`}case`not_multiple_of`:return`無効な数値: ${e.divisor}の倍数である必要があります`;case`unrecognized_keys`:return`認識されていないキー${e.keys.length>1?`群`:``}: ${J(e.keys,`、`)}`;case`invalid_key`:return`${e.origin}内の無効なキー`;case`invalid_union`:return`無効な入力`;case`invalid_element`:return`${e.origin}内の無効な値`;default:return`無効な入力`}}}}));function JZ(){return{localeError:YZ()}}var YZ,XZ=o((()=>{mK(),YZ=()=>{let e={string:{unit:`სიმბოლო`,verb:`უნდა შეიცავდეს`},file:{unit:`ბაიტი`,verb:`უნდა შეიცავდეს`},array:{unit:`ელემენტი`,verb:`უნდა შეიცავდეს`},set:{unit:`ელემენტი`,verb:`უნდა შეიცავდეს`}};function t(t){return e[t]??null}let n={regex:`შეყვანა`,email:`ელ-ფოსტის მისამართი`,url:`URL`,emoji:`ემოჯი`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`თარიღი-დრო`,date:`თარიღი`,time:`დრო`,duration:`ხანგრძლივობა`,ipv4:`IPv4 მისამართი`,ipv6:`IPv6 მისამართი`,cidrv4:`IPv4 დიაპაზონი`,cidrv6:`IPv6 დიაპაზონი`,base64:`base64-კოდირებული ველი`,base64url:`base64url-კოდირებული ველი`,json_string:`JSON ველი`,e164:`E.164 ნომერი`,jwt:`JWT`,template_literal:`შეყვანა`},r={nan:`NaN`,number:`რიცხვი`,string:`ველი`,boolean:`ბულეანი`,function:`ფუნქცია`,array:`მასივი`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=XG(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`არასწორი შეყვანა: მოსალოდნელი instanceof ${e.expected}, მიღებული ${i}`:`არასწორი შეყვანა: მოსალოდნელი ${t}, მიღებული ${i}`}case`invalid_value`:return e.values.length===1?`არასწორი შეყვანა: მოსალოდნელი ${PG(e.values[0])}`:`არასწორი ვარიანტი: მოსალოდნელია ერთ-ერთი ${J(e.values,`|`)}-დან`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`ზედმეტად დიდი: მოსალოდნელი ${e.origin??`მნიშვნელობა`} ${r.verb} ${n}${e.maximum.toString()} ${r.unit}`:`ზედმეტად დიდი: მოსალოდნელი ${e.origin??`მნიშვნელობა`} იყოს ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`ზედმეტად პატარა: მოსალოდნელი ${e.origin} ${r.verb} ${n}${e.minimum.toString()} ${r.unit}`:`ზედმეტად პატარა: მოსალოდნელი ${e.origin} იყოს ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`არასწორი ველი: უნდა იწყებოდეს "${t.prefix}"-ით`:t.format===`ends_with`?`არასწორი ველი: უნდა მთავრდებოდეს "${t.suffix}"-ით`:t.format===`includes`?`არასწორი ველი: უნდა შეიცავდეს "${t.includes}"-ს`:t.format===`regex`?`არასწორი ველი: უნდა შეესაბამებოდეს შაბლონს ${t.pattern}`:`არასწორი ${n[t.format]??e.format}`}case`not_multiple_of`:return`არასწორი რიცხვი: უნდა იყოს ${e.divisor}-ის ჯერადი`;case`unrecognized_keys`:return`უცნობი გასაღებ${e.keys.length>1?`ები`:`ი`}: ${J(e.keys,`, `)}`;case`invalid_key`:return`არასწორი გასაღები ${e.origin}-ში`;case`invalid_union`:return`არასწორი შეყვანა`;case`invalid_element`:return`არასწორი მნიშვნელობა ${e.origin}-ში`;default:return`არასწორი შეყვანა`}}}}));function ZZ(){return{localeError:QZ()}}var QZ,$Z=o((()=>{mK(),QZ=()=>{let e={string:{unit:`តួអក្សរ`,verb:`គួរមាន`},file:{unit:`បៃ`,verb:`គួរមាន`},array:{unit:`ធាតុ`,verb:`គួរមាន`},set:{unit:`ធាតុ`,verb:`គួរមាន`}};function t(t){return e[t]??null}let n={regex:`ទិន្នន័យបញ្ចូល`,email:`អាសយដ្ឋានអ៊ីមែល`,url:`URL`,emoji:`សញ្ញាអារម្មណ៍`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`កាលបរិច្ឆេទ និងម៉ោង ISO`,date:`កាលបរិច្ឆេទ ISO`,time:`ម៉ោង ISO`,duration:`រយៈពេល ISO`,ipv4:`អាសយដ្ឋាន IPv4`,ipv6:`អាសយដ្ឋាន IPv6`,cidrv4:`ដែនអាសយដ្ឋាន IPv4`,cidrv6:`ដែនអាសយដ្ឋាន IPv6`,base64:`ខ្សែអក្សរអ៊ិកូដ base64`,base64url:`ខ្សែអក្សរអ៊ិកូដ base64url`,json_string:`ខ្សែអក្សរ JSON`,e164:`លេខ E.164`,jwt:`JWT`,template_literal:`ទិន្នន័យបញ្ចូល`},r={nan:`NaN`,number:`លេខ`,array:`អារេ (Array)`,null:`គ្មានតម្លៃ (null)`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=XG(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ instanceof ${e.expected} ប៉ុន្តែទទួលបាន ${i}`:`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ ${t} ប៉ុន្តែទទួលបាន ${i}`}case`invalid_value`:return e.values.length===1?`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ ${PG(e.values[0])}`:`ជម្រើសមិនត្រឹមត្រូវ៖ ត្រូវជាមួយក្នុងចំណោម ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`ធំពេក៖ ត្រូវការ ${e.origin??`តម្លៃ`} ${n} ${e.maximum.toString()} ${r.unit??`ធាតុ`}`:`ធំពេក៖ ត្រូវការ ${e.origin??`តម្លៃ`} ${n} ${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`តូចពេក៖ ត្រូវការ ${e.origin} ${n} ${e.minimum.toString()} ${r.unit}`:`តូចពេក៖ ត្រូវការ ${e.origin} ${n} ${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវចាប់ផ្តើមដោយ "${t.prefix}"`:t.format===`ends_with`?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវបញ្ចប់ដោយ "${t.suffix}"`:t.format===`includes`?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវមាន "${t.includes}"`:t.format===`regex`?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវតែផ្គូផ្គងនឹងទម្រង់ដែលបានកំណត់ ${t.pattern}`:`មិនត្រឹមត្រូវ៖ ${n[t.format]??e.format}`}case`not_multiple_of`:return`លេខមិនត្រឹមត្រូវ៖ ត្រូវតែជាពហុគុណនៃ ${e.divisor}`;case`unrecognized_keys`:return`រកឃើញសោមិនស្គាល់៖ ${J(e.keys,`, `)}`;case`invalid_key`:return`សោមិនត្រឹមត្រូវនៅក្នុង ${e.origin}`;case`invalid_union`:return`ទិន្នន័យមិនត្រឹមត្រូវ`;case`invalid_element`:return`ទិន្នន័យមិនត្រឹមត្រូវនៅក្នុង ${e.origin}`;default:return`ទិន្នន័យមិនត្រឹមត្រូវ`}}}}));function eQ(){return ZZ()}var tQ=o((()=>{$Z()}));function nQ(){return{localeError:rQ()}}var rQ,iQ=o((()=>{mK(),rQ=()=>{let e={string:{unit:`문자`,verb:`to have`},file:{unit:`바이트`,verb:`to have`},array:{unit:`개`,verb:`to have`},set:{unit:`개`,verb:`to have`}};function t(t){return e[t]??null}let n={regex:`입력`,email:`이메일 주소`,url:`URL`,emoji:`이모지`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO 날짜시간`,date:`ISO 날짜`,time:`ISO 시간`,duration:`ISO 기간`,ipv4:`IPv4 주소`,ipv6:`IPv6 주소`,cidrv4:`IPv4 범위`,cidrv6:`IPv6 범위`,base64:`base64 인코딩 문자열`,base64url:`base64url 인코딩 문자열`,json_string:`JSON 문자열`,e164:`E.164 번호`,jwt:`JWT`,template_literal:`입력`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=XG(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`잘못된 입력: 예상 타입은 instanceof ${e.expected}, 받은 타입은 ${i}입니다`:`잘못된 입력: 예상 타입은 ${t}, 받은 타입은 ${i}입니다`}case`invalid_value`:return e.values.length===1?`잘못된 입력: 값은 ${PG(e.values[0])} 이어야 합니다`:`잘못된 옵션: ${J(e.values,`또는 `)} 중 하나여야 합니다`;case`too_big`:{let n=e.inclusive?`이하`:`미만`,r=n===`미만`?`이어야 합니다`:`여야 합니다`,i=t(e.origin),a=i?.unit??`요소`;return i?`${e.origin??`값`}이 너무 큽니다: ${e.maximum.toString()}${a} ${n}${r}`:`${e.origin??`값`}이 너무 큽니다: ${e.maximum.toString()} ${n}${r}`}case`too_small`:{let n=e.inclusive?`이상`:`초과`,r=n===`이상`?`이어야 합니다`:`여야 합니다`,i=t(e.origin),a=i?.unit??`요소`;return i?`${e.origin??`값`}이 너무 작습니다: ${e.minimum.toString()}${a} ${n}${r}`:`${e.origin??`값`}이 너무 작습니다: ${e.minimum.toString()} ${n}${r}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`잘못된 문자열: "${t.prefix}"(으)로 시작해야 합니다`:t.format===`ends_with`?`잘못된 문자열: "${t.suffix}"(으)로 끝나야 합니다`:t.format===`includes`?`잘못된 문자열: "${t.includes}"을(를) 포함해야 합니다`:t.format===`regex`?`잘못된 문자열: 정규식 ${t.pattern} 패턴과 일치해야 합니다`:`잘못된 ${n[t.format]??e.format}`}case`not_multiple_of`:return`잘못된 숫자: ${e.divisor}의 배수여야 합니다`;case`unrecognized_keys`:return`인식할 수 없는 키: ${J(e.keys,`, `)}`;case`invalid_key`:return`잘못된 키: ${e.origin}`;case`invalid_union`:return`잘못된 입력`;case`invalid_element`:return`잘못된 값: ${e.origin}`;default:return`잘못된 입력`}}}}));function aQ(e){let t=Math.abs(e),n=t%10,r=t%100;return r>=11&&r<=19||n===0?`many`:n===1?`one`:`few`}function oQ(){return{localeError:cQ()}}var sQ,cQ,lQ=o((()=>{mK(),sQ=e=>e.charAt(0).toUpperCase()+e.slice(1),cQ=()=>{let e={string:{unit:{one:`simbolis`,few:`simboliai`,many:`simbolių`},verb:{smaller:{inclusive:`turi būti ne ilgesnė kaip`,notInclusive:`turi būti trumpesnė kaip`},bigger:{inclusive:`turi būti ne trumpesnė kaip`,notInclusive:`turi būti ilgesnė kaip`}}},file:{unit:{one:`baitas`,few:`baitai`,many:`baitų`},verb:{smaller:{inclusive:`turi būti ne didesnis kaip`,notInclusive:`turi būti mažesnis kaip`},bigger:{inclusive:`turi būti ne mažesnis kaip`,notInclusive:`turi būti didesnis kaip`}}},array:{unit:{one:`elementą`,few:`elementus`,many:`elementų`},verb:{smaller:{inclusive:`turi turėti ne daugiau kaip`,notInclusive:`turi turėti mažiau kaip`},bigger:{inclusive:`turi turėti ne mažiau kaip`,notInclusive:`turi turėti daugiau kaip`}}},set:{unit:{one:`elementą`,few:`elementus`,many:`elementų`},verb:{smaller:{inclusive:`turi turėti ne daugiau kaip`,notInclusive:`turi turėti mažiau kaip`},bigger:{inclusive:`turi turėti ne mažiau kaip`,notInclusive:`turi turėti daugiau kaip`}}}};function t(t,n,r,i){let a=e[t]??null;return a===null?a:{unit:a.unit[n],verb:a.verb[i][r?`inclusive`:`notInclusive`]}}let n={regex:`įvestis`,email:`el. pašto adresas`,url:`URL`,emoji:`jaustukas`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO data ir laikas`,date:`ISO data`,time:`ISO laikas`,duration:`ISO trukmė`,ipv4:`IPv4 adresas`,ipv6:`IPv6 adresas`,cidrv4:`IPv4 tinklo prefiksas (CIDR)`,cidrv6:`IPv6 tinklo prefiksas (CIDR)`,base64:`base64 užkoduota eilutė`,base64url:`base64url užkoduota eilutė`,json_string:`JSON eilutė`,e164:`E.164 numeris`,jwt:`JWT`,template_literal:`įvestis`},r={nan:`NaN`,number:`skaičius`,bigint:`sveikasis skaičius`,string:`eilutė`,boolean:`loginė reikšmė`,undefined:`neapibrėžta reikšmė`,function:`funkcija`,symbol:`simbolis`,array:`masyvas`,object:`objektas`,null:`nulinė reikšmė`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=XG(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Gautas tipas ${i}, o tikėtasi - instanceof ${e.expected}`:`Gautas tipas ${i}, o tikėtasi - ${t}`}case`invalid_value`:return e.values.length===1?`Privalo būti ${PG(e.values[0])}`:`Privalo būti vienas iš ${J(e.values,`|`)} pasirinkimų`;case`too_big`:{let n=r[e.origin]??e.origin,i=t(e.origin,aQ(Number(e.maximum)),e.inclusive??!1,`smaller`);if(i?.verb)return`${sQ(n??e.origin??`reikšmė`)} ${i.verb} ${e.maximum.toString()} ${i.unit??`elementų`}`;let a=e.inclusive?`ne didesnis kaip`:`mažesnis kaip`;return`${sQ(n??e.origin??`reikšmė`)} turi būti ${a} ${e.maximum.toString()} ${i?.unit}`}case`too_small`:{let n=r[e.origin]??e.origin,i=t(e.origin,aQ(Number(e.minimum)),e.inclusive??!1,`bigger`);if(i?.verb)return`${sQ(n??e.origin??`reikšmė`)} ${i.verb} ${e.minimum.toString()} ${i.unit??`elementų`}`;let a=e.inclusive?`ne mažesnis kaip`:`didesnis kaip`;return`${sQ(n??e.origin??`reikšmė`)} turi būti ${a} ${e.minimum.toString()} ${i?.unit}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Eilutė privalo prasidėti "${t.prefix}"`:t.format===`ends_with`?`Eilutė privalo pasibaigti "${t.suffix}"`:t.format===`includes`?`Eilutė privalo įtraukti "${t.includes}"`:t.format===`regex`?`Eilutė privalo atitikti ${t.pattern}`:`Neteisingas ${n[t.format]??e.format}`}case`not_multiple_of`:return`Skaičius privalo būti ${e.divisor} kartotinis.`;case`unrecognized_keys`:return`Neatpažint${e.keys.length>1?`i`:`as`} rakt${e.keys.length>1?`ai`:`as`}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Rastas klaidingas raktas`;case`invalid_union`:return`Klaidinga įvestis`;case`invalid_element`:{let t=r[e.origin]??e.origin;return`${sQ(t??e.origin??`reikšmė`)} turi klaidingą įvestį`}default:return`Klaidinga įvestis`}}}}));function uQ(){return{localeError:dQ()}}var dQ,fQ=o((()=>{mK(),dQ=()=>{let e={string:{unit:`знаци`,verb:`да имаат`},file:{unit:`бајти`,verb:`да имаат`},array:{unit:`ставки`,verb:`да имаат`},set:{unit:`ставки`,verb:`да имаат`}};function t(t){return e[t]??null}let n={regex:`внес`,email:`адреса на е-пошта`,url:`URL`,emoji:`емоџи`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO датум и време`,date:`ISO датум`,time:`ISO време`,duration:`ISO времетраење`,ipv4:`IPv4 адреса`,ipv6:`IPv6 адреса`,cidrv4:`IPv4 опсег`,cidrv6:`IPv6 опсег`,base64:`base64-енкодирана низа`,base64url:`base64url-енкодирана низа`,json_string:`JSON низа`,e164:`E.164 број`,jwt:`JWT`,template_literal:`внес`},r={nan:`NaN`,number:`број`,array:`низа`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=XG(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Грешен внес: се очекува instanceof ${e.expected}, примено ${i}`:`Грешен внес: се очекува ${t}, примено ${i}`}case`invalid_value`:return e.values.length===1?`Invalid input: expected ${PG(e.values[0])}`:`Грешана опција: се очекува една ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Премногу голем: се очекува ${e.origin??`вредноста`} да има ${n}${e.maximum.toString()} ${r.unit??`елементи`}`:`Премногу голем: се очекува ${e.origin??`вредноста`} да биде ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Премногу мал: се очекува ${e.origin} да има ${n}${e.minimum.toString()} ${r.unit}`:`Премногу мал: се очекува ${e.origin} да биде ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Неважечка низа: мора да започнува со "${t.prefix}"`:t.format===`ends_with`?`Неважечка низа: мора да завршува со "${t.suffix}"`:t.format===`includes`?`Неважечка низа: мора да вклучува "${t.includes}"`:t.format===`regex`?`Неважечка низа: мора да одгоара на патернот ${t.pattern}`:`Invalid ${n[t.format]??e.format}`}case`not_multiple_of`:return`Грешен број: мора да биде делив со ${e.divisor}`;case`unrecognized_keys`:return`${e.keys.length>1?`Непрепознаени клучеви`:`Непрепознаен клуч`}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Грешен клуч во ${e.origin}`;case`invalid_union`:return`Грешен внес`;case`invalid_element`:return`Грешна вредност во ${e.origin}`;default:return`Грешен внес`}}}}));function pQ(){return{localeError:mQ()}}var mQ,hQ=o((()=>{mK(),mQ=()=>{let e={string:{unit:`aksara`,verb:`mempunyai`},file:{unit:`bait`,verb:`mempunyai`},array:{unit:`elemen`,verb:`mempunyai`},set:{unit:`elemen`,verb:`mempunyai`}};function t(t){return e[t]??null}let n={regex:`input`,email:`alamat e-mel`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`tarikh masa ISO`,date:`tarikh ISO`,time:`masa ISO`,duration:`tempoh ISO`,ipv4:`alamat IPv4`,ipv6:`alamat IPv6`,cidrv4:`julat IPv4`,cidrv6:`julat IPv6`,base64:`string dikodkan base64`,base64url:`string dikodkan base64url`,json_string:`string JSON`,e164:`nombor E.164`,jwt:`JWT`,template_literal:`input`},r={nan:`NaN`,number:`nombor`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=XG(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Input tidak sah: dijangka instanceof ${e.expected}, diterima ${i}`:`Input tidak sah: dijangka ${t}, diterima ${i}`}case`invalid_value`:return e.values.length===1?`Input tidak sah: dijangka ${PG(e.values[0])}`:`Pilihan tidak sah: dijangka salah satu daripada ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Terlalu besar: dijangka ${e.origin??`nilai`} ${r.verb} ${n}${e.maximum.toString()} ${r.unit??`elemen`}`:`Terlalu besar: dijangka ${e.origin??`nilai`} adalah ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Terlalu kecil: dijangka ${e.origin} ${r.verb} ${n}${e.minimum.toString()} ${r.unit}`:`Terlalu kecil: dijangka ${e.origin} adalah ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`String tidak sah: mesti bermula dengan "${t.prefix}"`:t.format===`ends_with`?`String tidak sah: mesti berakhir dengan "${t.suffix}"`:t.format===`includes`?`String tidak sah: mesti mengandungi "${t.includes}"`:t.format===`regex`?`String tidak sah: mesti sepadan dengan corak ${t.pattern}`:`${n[t.format]??e.format} tidak sah`}case`not_multiple_of`:return`Nombor tidak sah: perlu gandaan ${e.divisor}`;case`unrecognized_keys`:return`Kunci tidak dikenali: ${J(e.keys,`, `)}`;case`invalid_key`:return`Kunci tidak sah dalam ${e.origin}`;case`invalid_union`:return`Input tidak sah`;case`invalid_element`:return`Nilai tidak sah dalam ${e.origin}`;default:return`Input tidak sah`}}}}));function gQ(){return{localeError:_Q()}}var _Q,vQ=o((()=>{mK(),_Q=()=>{let e={string:{unit:`tekens`,verb:`heeft`},file:{unit:`bytes`,verb:`heeft`},array:{unit:`elementen`,verb:`heeft`},set:{unit:`elementen`,verb:`heeft`}};function t(t){return e[t]??null}let n={regex:`invoer`,email:`emailadres`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO datum en tijd`,date:`ISO datum`,time:`ISO tijd`,duration:`ISO duur`,ipv4:`IPv4-adres`,ipv6:`IPv6-adres`,cidrv4:`IPv4-bereik`,cidrv6:`IPv6-bereik`,base64:`base64-gecodeerde tekst`,base64url:`base64 URL-gecodeerde tekst`,json_string:`JSON string`,e164:`E.164-nummer`,jwt:`JWT`,template_literal:`invoer`},r={nan:`NaN`,number:`getal`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=XG(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Ongeldige invoer: verwacht instanceof ${e.expected}, ontving ${i}`:`Ongeldige invoer: verwacht ${t}, ontving ${i}`}case`invalid_value`:return e.values.length===1?`Ongeldige invoer: verwacht ${PG(e.values[0])}`:`Ongeldige optie: verwacht één van ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin),i=e.origin===`date`?`laat`:e.origin===`string`?`lang`:`groot`;return r?`Te ${i}: verwacht dat ${e.origin??`waarde`} ${n}${e.maximum.toString()} ${r.unit??`elementen`} ${r.verb}`:`Te ${i}: verwacht dat ${e.origin??`waarde`} ${n}${e.maximum.toString()} is`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin),i=e.origin===`date`?`vroeg`:e.origin===`string`?`kort`:`klein`;return r?`Te ${i}: verwacht dat ${e.origin} ${n}${e.minimum.toString()} ${r.unit} ${r.verb}`:`Te ${i}: verwacht dat ${e.origin} ${n}${e.minimum.toString()} is`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Ongeldige tekst: moet met "${t.prefix}" beginnen`:t.format===`ends_with`?`Ongeldige tekst: moet op "${t.suffix}" eindigen`:t.format===`includes`?`Ongeldige tekst: moet "${t.includes}" bevatten`:t.format===`regex`?`Ongeldige tekst: moet overeenkomen met patroon ${t.pattern}`:`Ongeldig: ${n[t.format]??e.format}`}case`not_multiple_of`:return`Ongeldig getal: moet een veelvoud van ${e.divisor} zijn`;case`unrecognized_keys`:return`Onbekende key${e.keys.length>1?`s`:``}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Ongeldige key in ${e.origin}`;case`invalid_union`:return`Ongeldige invoer`;case`invalid_element`:return`Ongeldige waarde in ${e.origin}`;default:return`Ongeldige invoer`}}}}));function yQ(){return{localeError:bQ()}}var bQ,xQ=o((()=>{mK(),bQ=()=>{let e={string:{unit:`tegn`,verb:`å ha`},file:{unit:`bytes`,verb:`å ha`},array:{unit:`elementer`,verb:`å inneholde`},set:{unit:`elementer`,verb:`å inneholde`}};function t(t){return e[t]??null}let n={regex:`input`,email:`e-postadresse`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO dato- og klokkeslett`,date:`ISO-dato`,time:`ISO-klokkeslett`,duration:`ISO-varighet`,ipv4:`IPv4-område`,ipv6:`IPv6-område`,cidrv4:`IPv4-spekter`,cidrv6:`IPv6-spekter`,base64:`base64-enkodet streng`,base64url:`base64url-enkodet streng`,json_string:`JSON-streng`,e164:`E.164-nummer`,jwt:`JWT`,template_literal:`input`},r={nan:`NaN`,number:`tall`,array:`liste`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=XG(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Ugyldig input: forventet instanceof ${e.expected}, fikk ${i}`:`Ugyldig input: forventet ${t}, fikk ${i}`}case`invalid_value`:return e.values.length===1?`Ugyldig verdi: forventet ${PG(e.values[0])}`:`Ugyldig valg: forventet en av ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`For stor(t): forventet ${e.origin??`value`} til å ha ${n}${e.maximum.toString()} ${r.unit??`elementer`}`:`For stor(t): forventet ${e.origin??`value`} til å ha ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`For lite(n): forventet ${e.origin} til å ha ${n}${e.minimum.toString()} ${r.unit}`:`For lite(n): forventet ${e.origin} til å ha ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Ugyldig streng: må starte med "${t.prefix}"`:t.format===`ends_with`?`Ugyldig streng: må ende med "${t.suffix}"`:t.format===`includes`?`Ugyldig streng: må inneholde "${t.includes}"`:t.format===`regex`?`Ugyldig streng: må matche mønsteret ${t.pattern}`:`Ugyldig ${n[t.format]??e.format}`}case`not_multiple_of`:return`Ugyldig tall: må være et multiplum av ${e.divisor}`;case`unrecognized_keys`:return`${e.keys.length>1?`Ukjente nøkler`:`Ukjent nøkkel`}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Ugyldig nøkkel i ${e.origin}`;case`invalid_union`:return`Ugyldig input`;case`invalid_element`:return`Ugyldig verdi i ${e.origin}`;default:return`Ugyldig input`}}}}));function SQ(){return{localeError:CQ()}}var CQ,wQ=o((()=>{mK(),CQ=()=>{let e={string:{unit:`harf`,verb:`olmalıdır`},file:{unit:`bayt`,verb:`olmalıdır`},array:{unit:`unsur`,verb:`olmalıdır`},set:{unit:`unsur`,verb:`olmalıdır`}};function t(t){return e[t]??null}let n={regex:`giren`,email:`epostagâh`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO hengâmı`,date:`ISO tarihi`,time:`ISO zamanı`,duration:`ISO müddeti`,ipv4:`IPv4 nişânı`,ipv6:`IPv6 nişânı`,cidrv4:`IPv4 menzili`,cidrv6:`IPv6 menzili`,base64:`base64-şifreli metin`,base64url:`base64url-şifreli metin`,json_string:`JSON metin`,e164:`E.164 sayısı`,jwt:`JWT`,template_literal:`giren`},r={nan:`NaN`,number:`numara`,array:`saf`,null:`gayb`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=XG(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Fâsit giren: umulan instanceof ${e.expected}, alınan ${i}`:`Fâsit giren: umulan ${t}, alınan ${i}`}case`invalid_value`:return e.values.length===1?`Fâsit giren: umulan ${PG(e.values[0])}`:`Fâsit tercih: mûteberler ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Fazla büyük: ${e.origin??`value`}, ${n}${e.maximum.toString()} ${r.unit??`elements`} sahip olmalıydı.`:`Fazla büyük: ${e.origin??`value`}, ${n}${e.maximum.toString()} olmalıydı.`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Fazla küçük: ${e.origin}, ${n}${e.minimum.toString()} ${r.unit} sahip olmalıydı.`:`Fazla küçük: ${e.origin}, ${n}${e.minimum.toString()} olmalıydı.`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Fâsit metin: "${t.prefix}" ile başlamalı.`:t.format===`ends_with`?`Fâsit metin: "${t.suffix}" ile bitmeli.`:t.format===`includes`?`Fâsit metin: "${t.includes}" ihtivâ etmeli.`:t.format===`regex`?`Fâsit metin: ${t.pattern} nakşına uymalı.`:`Fâsit ${n[t.format]??e.format}`}case`not_multiple_of`:return`Fâsit sayı: ${e.divisor} katı olmalıydı.`;case`unrecognized_keys`:return`Tanınmayan anahtar ${e.keys.length>1?`s`:``}: ${J(e.keys,`, `)}`;case`invalid_key`:return`${e.origin} için tanınmayan anahtar var.`;case`invalid_union`:return`Giren tanınamadı.`;case`invalid_element`:return`${e.origin} için tanınmayan kıymet var.`;default:return`Kıymet tanınamadı.`}}}}));function TQ(){return{localeError:EQ()}}var EQ,DQ=o((()=>{mK(),EQ=()=>{let e={string:{unit:`توکي`,verb:`ولري`},file:{unit:`بایټس`,verb:`ولري`},array:{unit:`توکي`,verb:`ولري`},set:{unit:`توکي`,verb:`ولري`}};function t(t){return e[t]??null}let n={regex:`ورودي`,email:`بریښنالیک`,url:`یو آر ال`,emoji:`ایموجي`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`نیټه او وخت`,date:`نېټه`,time:`وخت`,duration:`موده`,ipv4:`د IPv4 پته`,ipv6:`د IPv6 پته`,cidrv4:`د IPv4 ساحه`,cidrv6:`د IPv6 ساحه`,base64:`base64-encoded متن`,base64url:`base64url-encoded متن`,json_string:`JSON متن`,e164:`د E.164 شمېره`,jwt:`JWT`,template_literal:`ورودي`},r={nan:`NaN`,number:`عدد`,array:`ارې`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=XG(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`ناسم ورودي: باید instanceof ${e.expected} وای, مګر ${i} ترلاسه شو`:`ناسم ورودي: باید ${t} وای, مګر ${i} ترلاسه شو`}case`invalid_value`:return e.values.length===1?`ناسم ورودي: باید ${PG(e.values[0])} وای`:`ناسم انتخاب: باید یو له ${J(e.values,`|`)} څخه وای`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`ډیر لوی: ${e.origin??`ارزښت`} باید ${n}${e.maximum.toString()} ${r.unit??`عنصرونه`} ولري`:`ډیر لوی: ${e.origin??`ارزښت`} باید ${n}${e.maximum.toString()} وي`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`ډیر کوچنی: ${e.origin} باید ${n}${e.minimum.toString()} ${r.unit} ولري`:`ډیر کوچنی: ${e.origin} باید ${n}${e.minimum.toString()} وي`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`ناسم متن: باید د "${t.prefix}" سره پیل شي`:t.format===`ends_with`?`ناسم متن: باید د "${t.suffix}" سره پای ته ورسيږي`:t.format===`includes`?`ناسم متن: باید "${t.includes}" ولري`:t.format===`regex`?`ناسم متن: باید د ${t.pattern} سره مطابقت ولري`:`${n[t.format]??e.format} ناسم دی`}case`not_multiple_of`:return`ناسم عدد: باید د ${e.divisor} مضرب وي`;case`unrecognized_keys`:return`ناسم ${e.keys.length>1?`کلیډونه`:`کلیډ`}: ${J(e.keys,`, `)}`;case`invalid_key`:return`ناسم کلیډ په ${e.origin} کې`;case`invalid_union`:return`ناسمه ورودي`;case`invalid_element`:return`ناسم عنصر په ${e.origin} کې`;default:return`ناسمه ورودي`}}}}));function OQ(){return{localeError:kQ()}}var kQ,AQ=o((()=>{mK(),kQ=()=>{let e={string:{unit:`znaków`,verb:`mieć`},file:{unit:`bajtów`,verb:`mieć`},array:{unit:`elementów`,verb:`mieć`},set:{unit:`elementów`,verb:`mieć`}};function t(t){return e[t]??null}let n={regex:`wyrażenie`,email:`adres email`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`data i godzina w formacie ISO`,date:`data w formacie ISO`,time:`godzina w formacie ISO`,duration:`czas trwania ISO`,ipv4:`adres IPv4`,ipv6:`adres IPv6`,cidrv4:`zakres IPv4`,cidrv6:`zakres IPv6`,base64:`ciąg znaków zakodowany w formacie base64`,base64url:`ciąg znaków zakodowany w formacie base64url`,json_string:`ciąg znaków w formacie JSON`,e164:`liczba E.164`,jwt:`JWT`,template_literal:`wejście`},r={nan:`NaN`,number:`liczba`,array:`tablica`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=XG(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Nieprawidłowe dane wejściowe: oczekiwano instanceof ${e.expected}, otrzymano ${i}`:`Nieprawidłowe dane wejściowe: oczekiwano ${t}, otrzymano ${i}`}case`invalid_value`:return e.values.length===1?`Nieprawidłowe dane wejściowe: oczekiwano ${PG(e.values[0])}`:`Nieprawidłowa opcja: oczekiwano jednej z wartości ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Za duża wartość: oczekiwano, że ${e.origin??`wartość`} będzie mieć ${n}${e.maximum.toString()} ${r.unit??`elementów`}`:`Zbyt duż(y/a/e): oczekiwano, że ${e.origin??`wartość`} będzie wynosić ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Za mała wartość: oczekiwano, że ${e.origin??`wartość`} będzie mieć ${n}${e.minimum.toString()} ${r.unit??`elementów`}`:`Zbyt mał(y/a/e): oczekiwano, że ${e.origin??`wartość`} będzie wynosić ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Nieprawidłowy ciąg znaków: musi zaczynać się od "${t.prefix}"`:t.format===`ends_with`?`Nieprawidłowy ciąg znaków: musi kończyć się na "${t.suffix}"`:t.format===`includes`?`Nieprawidłowy ciąg znaków: musi zawierać "${t.includes}"`:t.format===`regex`?`Nieprawidłowy ciąg znaków: musi odpowiadać wzorcowi ${t.pattern}`:`Nieprawidłow(y/a/e) ${n[t.format]??e.format}`}case`not_multiple_of`:return`Nieprawidłowa liczba: musi być wielokrotnością ${e.divisor}`;case`unrecognized_keys`:return`Nierozpoznane klucze${e.keys.length>1?`s`:``}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Nieprawidłowy klucz w ${e.origin}`;case`invalid_union`:return`Nieprawidłowe dane wejściowe`;case`invalid_element`:return`Nieprawidłowa wartość w ${e.origin}`;default:return`Nieprawidłowe dane wejściowe`}}}}));function jQ(){return{localeError:MQ()}}var MQ,NQ=o((()=>{mK(),MQ=()=>{let e={string:{unit:`caracteres`,verb:`ter`},file:{unit:`bytes`,verb:`ter`},array:{unit:`itens`,verb:`ter`},set:{unit:`itens`,verb:`ter`}};function t(t){return e[t]??null}let n={regex:`padrão`,email:`endereço de e-mail`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`data e hora ISO`,date:`data ISO`,time:`hora ISO`,duration:`duração ISO`,ipv4:`endereço IPv4`,ipv6:`endereço IPv6`,cidrv4:`faixa de IPv4`,cidrv6:`faixa de IPv6`,base64:`texto codificado em base64`,base64url:`URL codificada em base64`,json_string:`texto JSON`,e164:`número E.164`,jwt:`JWT`,template_literal:`entrada`},r={nan:`NaN`,number:`número`,null:`nulo`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=XG(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Tipo inválido: esperado instanceof ${e.expected}, recebido ${i}`:`Tipo inválido: esperado ${t}, recebido ${i}`}case`invalid_value`:return e.values.length===1?`Entrada inválida: esperado ${PG(e.values[0])}`:`Opção inválida: esperada uma das ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Muito grande: esperado que ${e.origin??`valor`} tivesse ${n}${e.maximum.toString()} ${r.unit??`elementos`}`:`Muito grande: esperado que ${e.origin??`valor`} fosse ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Muito pequeno: esperado que ${e.origin} tivesse ${n}${e.minimum.toString()} ${r.unit}`:`Muito pequeno: esperado que ${e.origin} fosse ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Texto inválido: deve começar com "${t.prefix}"`:t.format===`ends_with`?`Texto inválido: deve terminar com "${t.suffix}"`:t.format===`includes`?`Texto inválido: deve incluir "${t.includes}"`:t.format===`regex`?`Texto inválido: deve corresponder ao padrão ${t.pattern}`:`${n[t.format]??e.format} inválido`}case`not_multiple_of`:return`Número inválido: deve ser múltiplo de ${e.divisor}`;case`unrecognized_keys`:return`Chave${e.keys.length>1?`s`:``} desconhecida${e.keys.length>1?`s`:``}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Chave inválida em ${e.origin}`;case`invalid_union`:return`Entrada inválida`;case`invalid_element`:return`Valor inválido em ${e.origin}`;default:return`Campo inválido`}}}}));function PQ(){return{localeError:FQ()}}var FQ,IQ=o((()=>{mK(),FQ=()=>{let e={string:{unit:`caractere`,verb:`să aibă`},file:{unit:`octeți`,verb:`să aibă`},array:{unit:`elemente`,verb:`să aibă`},set:{unit:`elemente`,verb:`să aibă`},map:{unit:`intrări`,verb:`să aibă`}};function t(t){return e[t]??null}let n={regex:`intrare`,email:`adresă de email`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`dată și oră ISO`,date:`dată ISO`,time:`oră ISO`,duration:`durată ISO`,ipv4:`adresă IPv4`,ipv6:`adresă IPv6`,mac:`adresă MAC`,cidrv4:`interval IPv4`,cidrv6:`interval IPv6`,base64:`șir codat base64`,base64url:`șir codat base64url`,json_string:`șir JSON`,e164:`număr E.164`,jwt:`JWT`,template_literal:`intrare`},r={nan:`NaN`,string:`șir`,number:`număr`,boolean:`boolean`,function:`funcție`,array:`matrice`,object:`obiect`,undefined:`nedefinit`,symbol:`simbol`,bigint:`număr mare`,void:`void`,never:`never`,map:`hartă`,set:`set`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=XG(e.input);return`Intrare invalidă: așteptat ${t}, primit ${r[n]??n}`}case`invalid_value`:return e.values.length===1?`Intrare invalidă: așteptat ${PG(e.values[0])}`:`Opțiune invalidă: așteptat una dintre ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Prea mare: așteptat ca ${e.origin??`valoarea`} ${r.verb} ${n}${e.maximum.toString()} ${r.unit??`elemente`}`:`Prea mare: așteptat ca ${e.origin??`valoarea`} să fie ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Prea mic: așteptat ca ${e.origin} ${r.verb} ${n}${e.minimum.toString()} ${r.unit}`:`Prea mic: așteptat ca ${e.origin} să fie ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Șir invalid: trebuie să înceapă cu "${t.prefix}"`:t.format===`ends_with`?`Șir invalid: trebuie să se termine cu "${t.suffix}"`:t.format===`includes`?`Șir invalid: trebuie să includă "${t.includes}"`:t.format===`regex`?`Șir invalid: trebuie să se potrivească cu modelul ${t.pattern}`:`Format invalid: ${n[t.format]??e.format}`}case`not_multiple_of`:return`Număr invalid: trebuie să fie multiplu de ${e.divisor}`;case`unrecognized_keys`:return`Chei nerecunoscute: ${J(e.keys,`, `)}`;case`invalid_key`:return`Cheie invalidă în ${e.origin}`;case`invalid_union`:return`Intrare invalidă`;case`invalid_element`:return`Valoare invalidă în ${e.origin}`;default:return`Intrare invalidă`}}}}));function LQ(e,t,n,r){let i=Math.abs(e),a=i%10,o=i%100;return o>=11&&o<=19?r:a===1?t:a>=2&&a<=4?n:r}function RQ(){return{localeError:zQ()}}var zQ,BQ=o((()=>{mK(),zQ=()=>{let e={string:{unit:{one:`символ`,few:`символа`,many:`символов`},verb:`иметь`},file:{unit:{one:`байт`,few:`байта`,many:`байт`},verb:`иметь`},array:{unit:{one:`элемент`,few:`элемента`,many:`элементов`},verb:`иметь`},set:{unit:{one:`элемент`,few:`элемента`,many:`элементов`},verb:`иметь`}};function t(t){return e[t]??null}let n={regex:`ввод`,email:`email адрес`,url:`URL`,emoji:`эмодзи`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO дата и время`,date:`ISO дата`,time:`ISO время`,duration:`ISO длительность`,ipv4:`IPv4 адрес`,ipv6:`IPv6 адрес`,cidrv4:`IPv4 диапазон`,cidrv6:`IPv6 диапазон`,base64:`строка в формате base64`,base64url:`строка в формате base64url`,json_string:`JSON строка`,e164:`номер E.164`,jwt:`JWT`,template_literal:`ввод`},r={nan:`NaN`,number:`число`,array:`массив`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=XG(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Неверный ввод: ожидалось instanceof ${e.expected}, получено ${i}`:`Неверный ввод: ожидалось ${t}, получено ${i}`}case`invalid_value`:return e.values.length===1?`Неверный ввод: ожидалось ${PG(e.values[0])}`:`Неверный вариант: ожидалось одно из ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);if(r){let t=LQ(Number(e.maximum),r.unit.one,r.unit.few,r.unit.many);return`Слишком большое значение: ожидалось, что ${e.origin??`значение`} будет иметь ${n}${e.maximum.toString()} ${t}`}return`Слишком большое значение: ожидалось, что ${e.origin??`значение`} будет ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);if(r){let t=LQ(Number(e.minimum),r.unit.one,r.unit.few,r.unit.many);return`Слишком маленькое значение: ожидалось, что ${e.origin} будет иметь ${n}${e.minimum.toString()} ${t}`}return`Слишком маленькое значение: ожидалось, что ${e.origin} будет ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Неверная строка: должна начинаться с "${t.prefix}"`:t.format===`ends_with`?`Неверная строка: должна заканчиваться на "${t.suffix}"`:t.format===`includes`?`Неверная строка: должна содержать "${t.includes}"`:t.format===`regex`?`Неверная строка: должна соответствовать шаблону ${t.pattern}`:`Неверный ${n[t.format]??e.format}`}case`not_multiple_of`:return`Неверное число: должно быть кратным ${e.divisor}`;case`unrecognized_keys`:return`Нераспознанн${e.keys.length>1?`ые`:`ый`} ключ${e.keys.length>1?`и`:``}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Неверный ключ в ${e.origin}`;case`invalid_union`:return`Неверные входные данные`;case`invalid_element`:return`Неверное значение в ${e.origin}`;default:return`Неверные входные данные`}}}}));function VQ(){return{localeError:HQ()}}var HQ,UQ=o((()=>{mK(),HQ=()=>{let e={string:{unit:`znakov`,verb:`imeti`},file:{unit:`bajtov`,verb:`imeti`},array:{unit:`elementov`,verb:`imeti`},set:{unit:`elementov`,verb:`imeti`}};function t(t){return e[t]??null}let n={regex:`vnos`,email:`e-poštni naslov`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO datum in čas`,date:`ISO datum`,time:`ISO čas`,duration:`ISO trajanje`,ipv4:`IPv4 naslov`,ipv6:`IPv6 naslov`,cidrv4:`obseg IPv4`,cidrv6:`obseg IPv6`,base64:`base64 kodiran niz`,base64url:`base64url kodiran niz`,json_string:`JSON niz`,e164:`E.164 številka`,jwt:`JWT`,template_literal:`vnos`},r={nan:`NaN`,number:`število`,array:`tabela`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=XG(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Neveljaven vnos: pričakovano instanceof ${e.expected}, prejeto ${i}`:`Neveljaven vnos: pričakovano ${t}, prejeto ${i}`}case`invalid_value`:return e.values.length===1?`Neveljaven vnos: pričakovano ${PG(e.values[0])}`:`Neveljavna možnost: pričakovano eno izmed ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Preveliko: pričakovano, da bo ${e.origin??`vrednost`} imelo ${n}${e.maximum.toString()} ${r.unit??`elementov`}`:`Preveliko: pričakovano, da bo ${e.origin??`vrednost`} ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Premajhno: pričakovano, da bo ${e.origin} imelo ${n}${e.minimum.toString()} ${r.unit}`:`Premajhno: pričakovano, da bo ${e.origin} ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Neveljaven niz: mora se začeti z "${t.prefix}"`:t.format===`ends_with`?`Neveljaven niz: mora se končati z "${t.suffix}"`:t.format===`includes`?`Neveljaven niz: mora vsebovati "${t.includes}"`:t.format===`regex`?`Neveljaven niz: mora ustrezati vzorcu ${t.pattern}`:`Neveljaven ${n[t.format]??e.format}`}case`not_multiple_of`:return`Neveljavno število: mora biti večkratnik ${e.divisor}`;case`unrecognized_keys`:return`Neprepoznan${e.keys.length>1?`i ključi`:` ključ`}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Neveljaven ključ v ${e.origin}`;case`invalid_union`:return`Neveljaven vnos`;case`invalid_element`:return`Neveljavna vrednost v ${e.origin}`;default:return`Neveljaven vnos`}}}}));function WQ(){return{localeError:GQ()}}var GQ,KQ=o((()=>{mK(),GQ=()=>{let e={string:{unit:`tecken`,verb:`att ha`},file:{unit:`bytes`,verb:`att ha`},array:{unit:`objekt`,verb:`att innehålla`},set:{unit:`objekt`,verb:`att innehålla`}};function t(t){return e[t]??null}let n={regex:`reguljärt uttryck`,email:`e-postadress`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO-datum och tid`,date:`ISO-datum`,time:`ISO-tid`,duration:`ISO-varaktighet`,ipv4:`IPv4-intervall`,ipv6:`IPv6-intervall`,cidrv4:`IPv4-spektrum`,cidrv6:`IPv6-spektrum`,base64:`base64-kodad sträng`,base64url:`base64url-kodad sträng`,json_string:`JSON-sträng`,e164:`E.164-nummer`,jwt:`JWT`,template_literal:`mall-literal`},r={nan:`NaN`,number:`antal`,array:`lista`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=XG(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Ogiltig inmatning: förväntat instanceof ${e.expected}, fick ${i}`:`Ogiltig inmatning: förväntat ${t}, fick ${i}`}case`invalid_value`:return e.values.length===1?`Ogiltig inmatning: förväntat ${PG(e.values[0])}`:`Ogiltigt val: förväntade en av ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`För stor(t): förväntade ${e.origin??`värdet`} att ha ${n}${e.maximum.toString()} ${r.unit??`element`}`:`För stor(t): förväntat ${e.origin??`värdet`} att ha ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`För lite(t): förväntade ${e.origin??`värdet`} att ha ${n}${e.minimum.toString()} ${r.unit}`:`För lite(t): förväntade ${e.origin??`värdet`} att ha ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Ogiltig sträng: måste börja med "${t.prefix}"`:t.format===`ends_with`?`Ogiltig sträng: måste sluta med "${t.suffix}"`:t.format===`includes`?`Ogiltig sträng: måste innehålla "${t.includes}"`:t.format===`regex`?`Ogiltig sträng: måste matcha mönstret "${t.pattern}"`:`Ogiltig(t) ${n[t.format]??e.format}`}case`not_multiple_of`:return`Ogiltigt tal: måste vara en multipel av ${e.divisor}`;case`unrecognized_keys`:return`${e.keys.length>1?`Okända nycklar`:`Okänd nyckel`}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Ogiltig nyckel i ${e.origin??`värdet`}`;case`invalid_union`:return`Ogiltig input`;case`invalid_element`:return`Ogiltigt värde i ${e.origin??`värdet`}`;default:return`Ogiltig input`}}}}));function qQ(){return{localeError:JQ()}}var JQ,YQ=o((()=>{mK(),JQ=()=>{let e={string:{unit:`எழுத்துக்கள்`,verb:`கொண்டிருக்க வேண்டும்`},file:{unit:`பைட்டுகள்`,verb:`கொண்டிருக்க வேண்டும்`},array:{unit:`உறுப்புகள்`,verb:`கொண்டிருக்க வேண்டும்`},set:{unit:`உறுப்புகள்`,verb:`கொண்டிருக்க வேண்டும்`}};function t(t){return e[t]??null}let n={regex:`உள்ளீடு`,email:`மின்னஞ்சல் முகவரி`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO தேதி நேரம்`,date:`ISO தேதி`,time:`ISO நேரம்`,duration:`ISO கால அளவு`,ipv4:`IPv4 முகவரி`,ipv6:`IPv6 முகவரி`,cidrv4:`IPv4 வரம்பு`,cidrv6:`IPv6 வரம்பு`,base64:`base64-encoded சரம்`,base64url:`base64url-encoded சரம்`,json_string:`JSON சரம்`,e164:`E.164 எண்`,jwt:`JWT`,template_literal:`input`},r={nan:`NaN`,number:`எண்`,array:`அணி`,null:`வெறுமை`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=XG(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது instanceof ${e.expected}, பெறப்பட்டது ${i}`:`தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது ${t}, பெறப்பட்டது ${i}`}case`invalid_value`:return e.values.length===1?`தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது ${PG(e.values[0])}`:`தவறான விருப்பம்: எதிர்பார்க்கப்பட்டது ${J(e.values,`|`)} இல் ஒன்று`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`மிக பெரியது: எதிர்பார்க்கப்பட்டது ${e.origin??`மதிப்பு`} ${n}${e.maximum.toString()} ${r.unit??`உறுப்புகள்`} ஆக இருக்க வேண்டும்`:`மிக பெரியது: எதிர்பார்க்கப்பட்டது ${e.origin??`மதிப்பு`} ${n}${e.maximum.toString()} ஆக இருக்க வேண்டும்`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`மிகச் சிறியது: எதிர்பார்க்கப்பட்டது ${e.origin} ${n}${e.minimum.toString()} ${r.unit} ஆக இருக்க வேண்டும்`:`மிகச் சிறியது: எதிர்பார்க்கப்பட்டது ${e.origin} ${n}${e.minimum.toString()} ஆக இருக்க வேண்டும்`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`தவறான சரம்: "${t.prefix}" இல் தொடங்க வேண்டும்`:t.format===`ends_with`?`தவறான சரம்: "${t.suffix}" இல் முடிவடைய வேண்டும்`:t.format===`includes`?`தவறான சரம்: "${t.includes}" ஐ உள்ளடக்க வேண்டும்`:t.format===`regex`?`தவறான சரம்: ${t.pattern} முறைபாட்டுடன் பொருந்த வேண்டும்`:`தவறான ${n[t.format]??e.format}`}case`not_multiple_of`:return`தவறான எண்: ${e.divisor} இன் பலமாக இருக்க வேண்டும்`;case`unrecognized_keys`:return`அடையாளம் தெரியாத விசை${e.keys.length>1?`கள்`:``}: ${J(e.keys,`, `)}`;case`invalid_key`:return`${e.origin} இல் தவறான விசை`;case`invalid_union`:return`தவறான உள்ளீடு`;case`invalid_element`:return`${e.origin} இல் தவறான மதிப்பு`;default:return`தவறான உள்ளீடு`}}}}));function XQ(){return{localeError:ZQ()}}var ZQ,QQ=o((()=>{mK(),ZQ=()=>{let e={string:{unit:`ตัวอักษร`,verb:`ควรมี`},file:{unit:`ไบต์`,verb:`ควรมี`},array:{unit:`รายการ`,verb:`ควรมี`},set:{unit:`รายการ`,verb:`ควรมี`}};function t(t){return e[t]??null}let n={regex:`ข้อมูลที่ป้อน`,email:`ที่อยู่อีเมล`,url:`URL`,emoji:`อิโมจิ`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`วันที่เวลาแบบ ISO`,date:`วันที่แบบ ISO`,time:`เวลาแบบ ISO`,duration:`ช่วงเวลาแบบ ISO`,ipv4:`ที่อยู่ IPv4`,ipv6:`ที่อยู่ IPv6`,cidrv4:`ช่วง IP แบบ IPv4`,cidrv6:`ช่วง IP แบบ IPv6`,base64:`ข้อความแบบ Base64`,base64url:`ข้อความแบบ Base64 สำหรับ URL`,json_string:`ข้อความแบบ JSON`,e164:`เบอร์โทรศัพท์ระหว่างประเทศ (E.164)`,jwt:`โทเคน JWT`,template_literal:`ข้อมูลที่ป้อน`},r={nan:`NaN`,number:`ตัวเลข`,array:`อาร์เรย์ (Array)`,null:`ไม่มีค่า (null)`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=XG(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`ประเภทข้อมูลไม่ถูกต้อง: ควรเป็น instanceof ${e.expected} แต่ได้รับ ${i}`:`ประเภทข้อมูลไม่ถูกต้อง: ควรเป็น ${t} แต่ได้รับ ${i}`}case`invalid_value`:return e.values.length===1?`ค่าไม่ถูกต้อง: ควรเป็น ${PG(e.values[0])}`:`ตัวเลือกไม่ถูกต้อง: ควรเป็นหนึ่งใน ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`ไม่เกิน`:`น้อยกว่า`,r=t(e.origin);return r?`เกินกำหนด: ${e.origin??`ค่า`} ควรมี${n} ${e.maximum.toString()} ${r.unit??`รายการ`}`:`เกินกำหนด: ${e.origin??`ค่า`} ควรมี${n} ${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`อย่างน้อย`:`มากกว่า`,r=t(e.origin);return r?`น้อยกว่ากำหนด: ${e.origin} ควรมี${n} ${e.minimum.toString()} ${r.unit}`:`น้อยกว่ากำหนด: ${e.origin} ควรมี${n} ${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`รูปแบบไม่ถูกต้อง: ข้อความต้องขึ้นต้นด้วย "${t.prefix}"`:t.format===`ends_with`?`รูปแบบไม่ถูกต้อง: ข้อความต้องลงท้ายด้วย "${t.suffix}"`:t.format===`includes`?`รูปแบบไม่ถูกต้อง: ข้อความต้องมี "${t.includes}" อยู่ในข้อความ`:t.format===`regex`?`รูปแบบไม่ถูกต้อง: ต้องตรงกับรูปแบบที่กำหนด ${t.pattern}`:`รูปแบบไม่ถูกต้อง: ${n[t.format]??e.format}`}case`not_multiple_of`:return`ตัวเลขไม่ถูกต้อง: ต้องเป็นจำนวนที่หารด้วย ${e.divisor} ได้ลงตัว`;case`unrecognized_keys`:return`พบคีย์ที่ไม่รู้จัก: ${J(e.keys,`, `)}`;case`invalid_key`:return`คีย์ไม่ถูกต้องใน ${e.origin}`;case`invalid_union`:return`ข้อมูลไม่ถูกต้อง: ไม่ตรงกับรูปแบบยูเนียนที่กำหนดไว้`;case`invalid_element`:return`ข้อมูลไม่ถูกต้องใน ${e.origin}`;default:return`ข้อมูลไม่ถูกต้อง`}}}}));function $Q(){return{localeError:e$()}}var e$,t$=o((()=>{mK(),e$=()=>{let e={string:{unit:`karakter`,verb:`olmalı`},file:{unit:`bayt`,verb:`olmalı`},array:{unit:`öğe`,verb:`olmalı`},set:{unit:`öğe`,verb:`olmalı`}};function t(t){return e[t]??null}let n={regex:`girdi`,email:`e-posta adresi`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO tarih ve saat`,date:`ISO tarih`,time:`ISO saat`,duration:`ISO süre`,ipv4:`IPv4 adresi`,ipv6:`IPv6 adresi`,cidrv4:`IPv4 aralığı`,cidrv6:`IPv6 aralığı`,base64:`base64 ile şifrelenmiş metin`,base64url:`base64url ile şifrelenmiş metin`,json_string:`JSON dizesi`,e164:`E.164 sayısı`,jwt:`JWT`,template_literal:`Şablon dizesi`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=XG(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Geçersiz değer: beklenen instanceof ${e.expected}, alınan ${i}`:`Geçersiz değer: beklenen ${t}, alınan ${i}`}case`invalid_value`:return e.values.length===1?`Geçersiz değer: beklenen ${PG(e.values[0])}`:`Geçersiz seçenek: aşağıdakilerden biri olmalı: ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Çok büyük: beklenen ${e.origin??`değer`} ${n}${e.maximum.toString()} ${r.unit??`öğe`}`:`Çok büyük: beklenen ${e.origin??`değer`} ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Çok küçük: beklenen ${e.origin} ${n}${e.minimum.toString()} ${r.unit}`:`Çok küçük: beklenen ${e.origin} ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Geçersiz metin: "${t.prefix}" ile başlamalı`:t.format===`ends_with`?`Geçersiz metin: "${t.suffix}" ile bitmeli`:t.format===`includes`?`Geçersiz metin: "${t.includes}" içermeli`:t.format===`regex`?`Geçersiz metin: ${t.pattern} desenine uymalı`:`Geçersiz ${n[t.format]??e.format}`}case`not_multiple_of`:return`Geçersiz sayı: ${e.divisor} ile tam bölünebilmeli`;case`unrecognized_keys`:return`Tanınmayan anahtar${e.keys.length>1?`lar`:``}: ${J(e.keys,`, `)}`;case`invalid_key`:return`${e.origin} içinde geçersiz anahtar`;case`invalid_union`:return`Geçersiz değer`;case`invalid_element`:return`${e.origin} içinde geçersiz değer`;default:return`Geçersiz değer`}}}}));function n$(){return{localeError:r$()}}var r$,i$=o((()=>{mK(),r$=()=>{let e={string:{unit:`символів`,verb:`матиме`},file:{unit:`байтів`,verb:`матиме`},array:{unit:`елементів`,verb:`матиме`},set:{unit:`елементів`,verb:`матиме`}};function t(t){return e[t]??null}let n={regex:`вхідні дані`,email:`адреса електронної пошти`,url:`URL`,emoji:`емодзі`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`дата та час ISO`,date:`дата ISO`,time:`час ISO`,duration:`тривалість ISO`,ipv4:`адреса IPv4`,ipv6:`адреса IPv6`,cidrv4:`діапазон IPv4`,cidrv6:`діапазон IPv6`,base64:`рядок у кодуванні base64`,base64url:`рядок у кодуванні base64url`,json_string:`рядок JSON`,e164:`номер E.164`,jwt:`JWT`,template_literal:`вхідні дані`},r={nan:`NaN`,number:`число`,array:`масив`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=XG(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Неправильні вхідні дані: очікується instanceof ${e.expected}, отримано ${i}`:`Неправильні вхідні дані: очікується ${t}, отримано ${i}`}case`invalid_value`:return e.values.length===1?`Неправильні вхідні дані: очікується ${PG(e.values[0])}`:`Неправильна опція: очікується одне з ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Занадто велике: очікується, що ${e.origin??`значення`} ${r.verb} ${n}${e.maximum.toString()} ${r.unit??`елементів`}`:`Занадто велике: очікується, що ${e.origin??`значення`} буде ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Занадто мале: очікується, що ${e.origin} ${r.verb} ${n}${e.minimum.toString()} ${r.unit}`:`Занадто мале: очікується, що ${e.origin} буде ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Неправильний рядок: повинен починатися з "${t.prefix}"`:t.format===`ends_with`?`Неправильний рядок: повинен закінчуватися на "${t.suffix}"`:t.format===`includes`?`Неправильний рядок: повинен містити "${t.includes}"`:t.format===`regex`?`Неправильний рядок: повинен відповідати шаблону ${t.pattern}`:`Неправильний ${n[t.format]??e.format}`}case`not_multiple_of`:return`Неправильне число: повинно бути кратним ${e.divisor}`;case`unrecognized_keys`:return`Нерозпізнаний ключ${e.keys.length>1?`і`:``}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Неправильний ключ у ${e.origin}`;case`invalid_union`:return`Неправильні вхідні дані`;case`invalid_element`:return`Неправильне значення у ${e.origin}`;default:return`Неправильні вхідні дані`}}}}));function a$(){return n$()}var o$=o((()=>{i$()}));function s$(){return{localeError:c$()}}var c$,l$=o((()=>{mK(),c$=()=>{let e={string:{unit:`حروف`,verb:`ہونا`},file:{unit:`بائٹس`,verb:`ہونا`},array:{unit:`آئٹمز`,verb:`ہونا`},set:{unit:`آئٹمز`,verb:`ہونا`}};function t(t){return e[t]??null}let n={regex:`ان پٹ`,email:`ای میل ایڈریس`,url:`یو آر ایل`,emoji:`ایموجی`,uuid:`یو یو آئی ڈی`,uuidv4:`یو یو آئی ڈی وی 4`,uuidv6:`یو یو آئی ڈی وی 6`,nanoid:`نینو آئی ڈی`,guid:`جی یو آئی ڈی`,cuid:`سی یو آئی ڈی`,cuid2:`سی یو آئی ڈی 2`,ulid:`یو ایل آئی ڈی`,xid:`ایکس آئی ڈی`,ksuid:`کے ایس یو آئی ڈی`,datetime:`آئی ایس او ڈیٹ ٹائم`,date:`آئی ایس او تاریخ`,time:`آئی ایس او وقت`,duration:`آئی ایس او مدت`,ipv4:`آئی پی وی 4 ایڈریس`,ipv6:`آئی پی وی 6 ایڈریس`,cidrv4:`آئی پی وی 4 رینج`,cidrv6:`آئی پی وی 6 رینج`,base64:`بیس 64 ان کوڈڈ سٹرنگ`,base64url:`بیس 64 یو آر ایل ان کوڈڈ سٹرنگ`,json_string:`جے ایس او این سٹرنگ`,e164:`ای 164 نمبر`,jwt:`جے ڈبلیو ٹی`,template_literal:`ان پٹ`},r={nan:`NaN`,number:`نمبر`,array:`آرے`,null:`نل`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=XG(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`غلط ان پٹ: instanceof ${e.expected} متوقع تھا، ${i} موصول ہوا`:`غلط ان پٹ: ${t} متوقع تھا، ${i} موصول ہوا`}case`invalid_value`:return e.values.length===1?`غلط ان پٹ: ${PG(e.values[0])} متوقع تھا`:`غلط آپشن: ${J(e.values,`|`)} میں سے ایک متوقع تھا`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`بہت بڑا: ${e.origin??`ویلیو`} کے ${n}${e.maximum.toString()} ${r.unit??`عناصر`} ہونے متوقع تھے`:`بہت بڑا: ${e.origin??`ویلیو`} کا ${n}${e.maximum.toString()} ہونا متوقع تھا`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`بہت چھوٹا: ${e.origin} کے ${n}${e.minimum.toString()} ${r.unit} ہونے متوقع تھے`:`بہت چھوٹا: ${e.origin} کا ${n}${e.minimum.toString()} ہونا متوقع تھا`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`غلط سٹرنگ: "${t.prefix}" سے شروع ہونا چاہیے`:t.format===`ends_with`?`غلط سٹرنگ: "${t.suffix}" پر ختم ہونا چاہیے`:t.format===`includes`?`غلط سٹرنگ: "${t.includes}" شامل ہونا چاہیے`:t.format===`regex`?`غلط سٹرنگ: پیٹرن ${t.pattern} سے میچ ہونا چاہیے`:`غلط ${n[t.format]??e.format}`}case`not_multiple_of`:return`غلط نمبر: ${e.divisor} کا مضاعف ہونا چاہیے`;case`unrecognized_keys`:return`غیر تسلیم شدہ کی${e.keys.length>1?`ز`:``}: ${J(e.keys,`، `)}`;case`invalid_key`:return`${e.origin} میں غلط کی`;case`invalid_union`:return`غلط ان پٹ`;case`invalid_element`:return`${e.origin} میں غلط ویلیو`;default:return`غلط ان پٹ`}}}}));function u$(){return{localeError:d$()}}var d$,f$=o((()=>{mK(),d$=()=>{let e={string:{unit:`belgi`,verb:`bo‘lishi kerak`},file:{unit:`bayt`,verb:`bo‘lishi kerak`},array:{unit:`element`,verb:`bo‘lishi kerak`},set:{unit:`element`,verb:`bo‘lishi kerak`},map:{unit:`yozuv`,verb:`bo‘lishi kerak`}};function t(t){return e[t]??null}let n={regex:`kirish`,email:`elektron pochta manzili`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO sana va vaqti`,date:`ISO sana`,time:`ISO vaqt`,duration:`ISO davomiylik`,ipv4:`IPv4 manzil`,ipv6:`IPv6 manzil`,mac:`MAC manzil`,cidrv4:`IPv4 diapazon`,cidrv6:`IPv6 diapazon`,base64:`base64 kodlangan satr`,base64url:`base64url kodlangan satr`,json_string:`JSON satr`,e164:`E.164 raqam`,jwt:`JWT`,template_literal:`kirish`},r={nan:`NaN`,number:`raqam`,array:`massiv`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=XG(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Noto‘g‘ri kirish: kutilgan instanceof ${e.expected}, qabul qilingan ${i}`:`Noto‘g‘ri kirish: kutilgan ${t}, qabul qilingan ${i}`}case`invalid_value`:return e.values.length===1?`Noto‘g‘ri kirish: kutilgan ${PG(e.values[0])}`:`Noto‘g‘ri variant: quyidagilardan biri kutilgan ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Juda katta: kutilgan ${e.origin??`qiymat`} ${n}${e.maximum.toString()} ${r.unit} ${r.verb}`:`Juda katta: kutilgan ${e.origin??`qiymat`} ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Juda kichik: kutilgan ${e.origin} ${n}${e.minimum.toString()} ${r.unit} ${r.verb}`:`Juda kichik: kutilgan ${e.origin} ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Noto‘g‘ri satr: "${t.prefix}" bilan boshlanishi kerak`:t.format===`ends_with`?`Noto‘g‘ri satr: "${t.suffix}" bilan tugashi kerak`:t.format===`includes`?`Noto‘g‘ri satr: "${t.includes}" ni o‘z ichiga olishi kerak`:t.format===`regex`?`Noto‘g‘ri satr: ${t.pattern} shabloniga mos kelishi kerak`:`Noto‘g‘ri ${n[t.format]??e.format}`}case`not_multiple_of`:return`Noto‘g‘ri raqam: ${e.divisor} ning karralisi bo‘lishi kerak`;case`unrecognized_keys`:return`Noma’lum kalit${e.keys.length>1?`lar`:``}: ${J(e.keys,`, `)}`;case`invalid_key`:return`${e.origin} dagi kalit noto‘g‘ri`;case`invalid_union`:return`Noto‘g‘ri kirish`;case`invalid_element`:return`${e.origin} da noto‘g‘ri qiymat`;default:return`Noto‘g‘ri kirish`}}}}));function p$(){return{localeError:m$()}}var m$,h$=o((()=>{mK(),m$=()=>{let e={string:{unit:`ký tự`,verb:`có`},file:{unit:`byte`,verb:`có`},array:{unit:`phần tử`,verb:`có`},set:{unit:`phần tử`,verb:`có`}};function t(t){return e[t]??null}let n={regex:`đầu vào`,email:`địa chỉ email`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ngày giờ ISO`,date:`ngày ISO`,time:`giờ ISO`,duration:`khoảng thời gian ISO`,ipv4:`địa chỉ IPv4`,ipv6:`địa chỉ IPv6`,cidrv4:`dải IPv4`,cidrv6:`dải IPv6`,base64:`chuỗi mã hóa base64`,base64url:`chuỗi mã hóa base64url`,json_string:`chuỗi JSON`,e164:`số E.164`,jwt:`JWT`,template_literal:`đầu vào`},r={nan:`NaN`,number:`số`,array:`mảng`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=XG(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Đầu vào không hợp lệ: mong đợi instanceof ${e.expected}, nhận được ${i}`:`Đầu vào không hợp lệ: mong đợi ${t}, nhận được ${i}`}case`invalid_value`:return e.values.length===1?`Đầu vào không hợp lệ: mong đợi ${PG(e.values[0])}`:`Tùy chọn không hợp lệ: mong đợi một trong các giá trị ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Quá lớn: mong đợi ${e.origin??`giá trị`} ${r.verb} ${n}${e.maximum.toString()} ${r.unit??`phần tử`}`:`Quá lớn: mong đợi ${e.origin??`giá trị`} ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Quá nhỏ: mong đợi ${e.origin} ${r.verb} ${n}${e.minimum.toString()} ${r.unit}`:`Quá nhỏ: mong đợi ${e.origin} ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Chuỗi không hợp lệ: phải bắt đầu bằng "${t.prefix}"`:t.format===`ends_with`?`Chuỗi không hợp lệ: phải kết thúc bằng "${t.suffix}"`:t.format===`includes`?`Chuỗi không hợp lệ: phải bao gồm "${t.includes}"`:t.format===`regex`?`Chuỗi không hợp lệ: phải khớp với mẫu ${t.pattern}`:`${n[t.format]??e.format} không hợp lệ`}case`not_multiple_of`:return`Số không hợp lệ: phải là bội số của ${e.divisor}`;case`unrecognized_keys`:return`Khóa không được nhận dạng: ${J(e.keys,`, `)}`;case`invalid_key`:return`Khóa không hợp lệ trong ${e.origin}`;case`invalid_union`:return`Đầu vào không hợp lệ`;case`invalid_element`:return`Giá trị không hợp lệ trong ${e.origin}`;default:return`Đầu vào không hợp lệ`}}}}));function g$(){return{localeError:_$()}}var _$,v$=o((()=>{mK(),_$=()=>{let e={string:{unit:`字符`,verb:`包含`},file:{unit:`字节`,verb:`包含`},array:{unit:`项`,verb:`包含`},set:{unit:`项`,verb:`包含`}};function t(t){return e[t]??null}let n={regex:`输入`,email:`电子邮件`,url:`URL`,emoji:`表情符号`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO日期时间`,date:`ISO日期`,time:`ISO时间`,duration:`ISO时长`,ipv4:`IPv4地址`,ipv6:`IPv6地址`,cidrv4:`IPv4网段`,cidrv6:`IPv6网段`,base64:`base64编码字符串`,base64url:`base64url编码字符串`,json_string:`JSON字符串`,e164:`E.164号码`,jwt:`JWT`,template_literal:`输入`},r={nan:`NaN`,number:`数字`,array:`数组`,null:`空值(null)`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=XG(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`无效输入:期望 instanceof ${e.expected},实际接收 ${i}`:`无效输入:期望 ${t},实际接收 ${i}`}case`invalid_value`:return e.values.length===1?`无效输入:期望 ${PG(e.values[0])}`:`无效选项:期望以下之一 ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`数值过大:期望 ${e.origin??`值`} ${n}${e.maximum.toString()} ${r.unit??`个元素`}`:`数值过大:期望 ${e.origin??`值`} ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`数值过小:期望 ${e.origin} ${n}${e.minimum.toString()} ${r.unit}`:`数值过小:期望 ${e.origin} ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`无效字符串:必须以 "${t.prefix}" 开头`:t.format===`ends_with`?`无效字符串:必须以 "${t.suffix}" 结尾`:t.format===`includes`?`无效字符串:必须包含 "${t.includes}"`:t.format===`regex`?`无效字符串:必须满足正则表达式 ${t.pattern}`:`无效${n[t.format]??e.format}`}case`not_multiple_of`:return`无效数字:必须是 ${e.divisor} 的倍数`;case`unrecognized_keys`:return`出现未知的键(key): ${J(e.keys,`, `)}`;case`invalid_key`:return`${e.origin} 中的键(key)无效`;case`invalid_union`:return`无效输入`;case`invalid_element`:return`${e.origin} 中包含无效值(value)`;default:return`无效输入`}}}}));function y$(){return{localeError:b$()}}var b$,x$=o((()=>{mK(),b$=()=>{let e={string:{unit:`字元`,verb:`擁有`},file:{unit:`位元組`,verb:`擁有`},array:{unit:`項目`,verb:`擁有`},set:{unit:`項目`,verb:`擁有`}};function t(t){return e[t]??null}let n={regex:`輸入`,email:`郵件地址`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO 日期時間`,date:`ISO 日期`,time:`ISO 時間`,duration:`ISO 期間`,ipv4:`IPv4 位址`,ipv6:`IPv6 位址`,cidrv4:`IPv4 範圍`,cidrv6:`IPv6 範圍`,base64:`base64 編碼字串`,base64url:`base64url 編碼字串`,json_string:`JSON 字串`,e164:`E.164 數值`,jwt:`JWT`,template_literal:`輸入`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=XG(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`無效的輸入值:預期為 instanceof ${e.expected},但收到 ${i}`:`無效的輸入值:預期為 ${t},但收到 ${i}`}case`invalid_value`:return e.values.length===1?`無效的輸入值:預期為 ${PG(e.values[0])}`:`無效的選項:預期為以下其中之一 ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`數值過大:預期 ${e.origin??`值`} 應為 ${n}${e.maximum.toString()} ${r.unit??`個元素`}`:`數值過大:預期 ${e.origin??`值`} 應為 ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`數值過小:預期 ${e.origin} 應為 ${n}${e.minimum.toString()} ${r.unit}`:`數值過小:預期 ${e.origin} 應為 ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`無效的字串:必須以 "${t.prefix}" 開頭`:t.format===`ends_with`?`無效的字串:必須以 "${t.suffix}" 結尾`:t.format===`includes`?`無效的字串:必須包含 "${t.includes}"`:t.format===`regex`?`無效的字串:必須符合格式 ${t.pattern}`:`無效的 ${n[t.format]??e.format}`}case`not_multiple_of`:return`無效的數字:必須為 ${e.divisor} 的倍數`;case`unrecognized_keys`:return`無法識別的鍵值${e.keys.length>1?`們`:``}:${J(e.keys,`、`)}`;case`invalid_key`:return`${e.origin} 中有無效的鍵值`;case`invalid_union`:return`無效的輸入值`;case`invalid_element`:return`${e.origin} 中有無效的值`;default:return`無效的輸入值`}}}}));function S$(){return{localeError:C$()}}var C$,w$=o((()=>{mK(),C$=()=>{let e={string:{unit:`àmi`,verb:`ní`},file:{unit:`bytes`,verb:`ní`},array:{unit:`nkan`,verb:`ní`},set:{unit:`nkan`,verb:`ní`}};function t(t){return e[t]??null}let n={regex:`ẹ̀rọ ìbáwọlé`,email:`àdírẹ́sì ìmẹ́lì`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`àkókò ISO`,date:`ọjọ́ ISO`,time:`àkókò ISO`,duration:`àkókò tó pé ISO`,ipv4:`àdírẹ́sì IPv4`,ipv6:`àdírẹ́sì IPv6`,cidrv4:`àgbègbè IPv4`,cidrv6:`àgbègbè IPv6`,base64:`ọ̀rọ̀ tí a kọ́ ní base64`,base64url:`ọ̀rọ̀ base64url`,json_string:`ọ̀rọ̀ JSON`,e164:`nọ́mbà E.164`,jwt:`JWT`,template_literal:`ẹ̀rọ ìbáwọlé`},r={nan:`NaN`,number:`nọ́mbà`,array:`akopọ`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=XG(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Ìbáwọlé aṣìṣe: a ní láti fi instanceof ${e.expected}, àmọ̀ a rí ${i}`:`Ìbáwọlé aṣìṣe: a ní láti fi ${t}, àmọ̀ a rí ${i}`}case`invalid_value`:return e.values.length===1?`Ìbáwọlé aṣìṣe: a ní láti fi ${PG(e.values[0])}`:`Àṣàyàn aṣìṣe: yan ọ̀kan lára ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Tó pọ̀ jù: a ní láti jẹ́ pé ${e.origin??`iye`} ${r.verb} ${n}${e.maximum} ${r.unit}`:`Tó pọ̀ jù: a ní láti jẹ́ ${n}${e.maximum}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Kéré ju: a ní láti jẹ́ pé ${e.origin} ${r.verb} ${n}${e.minimum} ${r.unit}`:`Kéré ju: a ní láti jẹ́ ${n}${e.minimum}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ bẹ̀rẹ̀ pẹ̀lú "${t.prefix}"`:t.format===`ends_with`?`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ parí pẹ̀lú "${t.suffix}"`:t.format===`includes`?`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ ní "${t.includes}"`:t.format===`regex`?`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ bá àpẹẹrẹ mu ${t.pattern}`:`Aṣìṣe: ${n[t.format]??e.format}`}case`not_multiple_of`:return`Nọ́mbà aṣìṣe: gbọ́dọ̀ jẹ́ èyà pípín ti ${e.divisor}`;case`unrecognized_keys`:return`Bọtìnì àìmọ̀: ${J(e.keys,`, `)}`;case`invalid_key`:return`Bọtìnì aṣìṣe nínú ${e.origin}`;case`invalid_union`:return`Ìbáwọlé aṣìṣe`;case`invalid_element`:return`Iye aṣìṣe nínú ${e.origin}`;default:return`Ìbáwọlé aṣìṣe`}}}})),T$=c({ar:()=>DX,az:()=>AX,be:()=>PX,bg:()=>LX,ca:()=>BX,cs:()=>UX,da:()=>KX,de:()=>YX,el:()=>QX,en:()=>tZ,eo:()=>iZ,es:()=>sZ,fa:()=>uZ,fi:()=>pZ,fr:()=>gZ,frCA:()=>yZ,he:()=>SZ,hr:()=>TZ,hu:()=>OZ,hy:()=>NZ,id:()=>IZ,is:()=>zZ,it:()=>HZ,ja:()=>GZ,ka:()=>JZ,kh:()=>eQ,km:()=>ZZ,ko:()=>nQ,lt:()=>oQ,mk:()=>uQ,ms:()=>pQ,nl:()=>gQ,no:()=>yQ,ota:()=>SQ,pl:()=>OQ,ps:()=>TQ,pt:()=>jQ,ro:()=>PQ,ru:()=>RQ,sl:()=>VQ,sv:()=>WQ,ta:()=>qQ,th:()=>XQ,tr:()=>$Q,ua:()=>a$,uk:()=>n$,ur:()=>s$,uz:()=>u$,vi:()=>p$,yo:()=>S$,zhCN:()=>g$,zhTW:()=>y$}),E$=o((()=>{kX(),MX(),IX(),zX(),HX(),GX(),JX(),ZX(),eZ(),rZ(),oZ(),lZ(),fZ(),hZ(),vZ(),xZ(),wZ(),DZ(),AZ(),FZ(),RZ(),VZ(),WZ(),qZ(),XZ(),tQ(),$Z(),iQ(),lQ(),fQ(),hQ(),vQ(),xQ(),wQ(),DQ(),AQ(),NQ(),IQ(),BQ(),UQ(),KQ(),YQ(),QQ(),t$(),o$(),i$(),l$(),f$(),h$(),v$(),x$(),w$()}));function D$(){return new j$}var O$,k$,A$,j$,M$,N$=o((()=>{k$=Symbol(`ZodOutput`),A$=Symbol(`ZodInput`),j$=class{constructor(){this._map=new WeakMap,this._idmap=new Map}add(e,...t){let n=t[0];return this._map.set(e,n),n&&typeof n==`object`&&`id`in n&&this._idmap.set(n.id,e),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(e){let t=this._map.get(e);return t&&typeof t==`object`&&`id`in t&&this._idmap.delete(t.id),this._map.delete(e),this}get(e){let t=e._zod.parent;if(t){let n={...this.get(t)??{}};delete n.id;let r={...n,...this._map.get(e)};return Object.keys(r).length?r:void 0}return this._map.get(e)}has(e){return this._map.has(e)}},(O$=globalThis).__zod_globalRegistry??(O$.__zod_globalRegistry=D$()),M$=globalThis.__zod_globalRegistry}));function P$(e,t){return new e({type:`string`,...Y(t)})}function F$(e,t){return new e({type:`string`,coerce:!0,...Y(t)})}function I$(e,t){return new e({type:`string`,format:`email`,check:`string_format`,abort:!1,...Y(t)})}function L$(e,t){return new e({type:`string`,format:`guid`,check:`string_format`,abort:!1,...Y(t)})}function R$(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,...Y(t)})}function z$(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v4`,...Y(t)})}function B$(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v6`,...Y(t)})}function V$(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v7`,...Y(t)})}function H$(e,t){return new e({type:`string`,format:`url`,check:`string_format`,abort:!1,...Y(t)})}function U$(e,t){return new e({type:`string`,format:`emoji`,check:`string_format`,abort:!1,...Y(t)})}function W$(e,t){return new e({type:`string`,format:`nanoid`,check:`string_format`,abort:!1,...Y(t)})}function G$(e,t){return new e({type:`string`,format:`cuid`,check:`string_format`,abort:!1,...Y(t)})}function K$(e,t){return new e({type:`string`,format:`cuid2`,check:`string_format`,abort:!1,...Y(t)})}function q$(e,t){return new e({type:`string`,format:`ulid`,check:`string_format`,abort:!1,...Y(t)})}function J$(e,t){return new e({type:`string`,format:`xid`,check:`string_format`,abort:!1,...Y(t)})}function Y$(e,t){return new e({type:`string`,format:`ksuid`,check:`string_format`,abort:!1,...Y(t)})}function X$(e,t){return new e({type:`string`,format:`ipv4`,check:`string_format`,abort:!1,...Y(t)})}function Z$(e,t){return new e({type:`string`,format:`ipv6`,check:`string_format`,abort:!1,...Y(t)})}function Q$(e,t){return new e({type:`string`,format:`mac`,check:`string_format`,abort:!1,...Y(t)})}function $$(e,t){return new e({type:`string`,format:`cidrv4`,check:`string_format`,abort:!1,...Y(t)})}function e1(e,t){return new e({type:`string`,format:`cidrv6`,check:`string_format`,abort:!1,...Y(t)})}function t1(e,t){return new e({type:`string`,format:`base64`,check:`string_format`,abort:!1,...Y(t)})}function n1(e,t){return new e({type:`string`,format:`base64url`,check:`string_format`,abort:!1,...Y(t)})}function r1(e,t){return new e({type:`string`,format:`e164`,check:`string_format`,abort:!1,...Y(t)})}function i1(e,t){return new e({type:`string`,format:`jwt`,check:`string_format`,abort:!1,...Y(t)})}function a1(e,t){return new e({type:`string`,format:`datetime`,check:`string_format`,offset:!1,local:!1,precision:null,...Y(t)})}function o1(e,t){return new e({type:`string`,format:`date`,check:`string_format`,...Y(t)})}function s1(e,t){return new e({type:`string`,format:`time`,check:`string_format`,precision:null,...Y(t)})}function c1(e,t){return new e({type:`string`,format:`duration`,check:`string_format`,...Y(t)})}function l1(e,t){return new e({type:`number`,checks:[],...Y(t)})}function u1(e,t){return new e({type:`number`,coerce:!0,checks:[],...Y(t)})}function d1(e,t){return new e({type:`number`,check:`number_format`,abort:!1,format:`safeint`,...Y(t)})}function f1(e,t){return new e({type:`number`,check:`number_format`,abort:!1,format:`float32`,...Y(t)})}function p1(e,t){return new e({type:`number`,check:`number_format`,abort:!1,format:`float64`,...Y(t)})}function m1(e,t){return new e({type:`number`,check:`number_format`,abort:!1,format:`int32`,...Y(t)})}function h1(e,t){return new e({type:`number`,check:`number_format`,abort:!1,format:`uint32`,...Y(t)})}function g1(e,t){return new e({type:`boolean`,...Y(t)})}function _1(e,t){return new e({type:`boolean`,coerce:!0,...Y(t)})}function v1(e,t){return new e({type:`bigint`,...Y(t)})}function y1(e,t){return new e({type:`bigint`,coerce:!0,...Y(t)})}function b1(e,t){return new e({type:`bigint`,check:`bigint_format`,abort:!1,format:`int64`,...Y(t)})}function x1(e,t){return new e({type:`bigint`,check:`bigint_format`,abort:!1,format:`uint64`,...Y(t)})}function S1(e,t){return new e({type:`symbol`,...Y(t)})}function C1(e,t){return new e({type:`undefined`,...Y(t)})}function w1(e,t){return new e({type:`null`,...Y(t)})}function T1(e){return new e({type:`any`})}function E1(e){return new e({type:`unknown`})}function D1(e,t){return new e({type:`never`,...Y(t)})}function O1(e,t){return new e({type:`void`,...Y(t)})}function k1(e,t){return new e({type:`date`,...Y(t)})}function A1(e,t){return new e({type:`date`,coerce:!0,...Y(t)})}function j1(e,t){return new e({type:`nan`,...Y(t)})}function M1(e,t){return new uJ({check:`less_than`,...Y(t),value:e,inclusive:!1})}function N1(e,t){return new uJ({check:`less_than`,...Y(t),value:e,inclusive:!0})}function P1(e,t){return new dJ({check:`greater_than`,...Y(t),value:e,inclusive:!1})}function F1(e,t){return new dJ({check:`greater_than`,...Y(t),value:e,inclusive:!0})}function I1(e){return P1(0,e)}function L1(e){return M1(0,e)}function R1(e){return N1(0,e)}function z1(e){return F1(0,e)}function B1(e,t){return new fJ({check:`multiple_of`,...Y(t),value:e})}function V1(e,t){return new hJ({check:`max_size`,...Y(t),maximum:e})}function H1(e,t){return new gJ({check:`min_size`,...Y(t),minimum:e})}function U1(e,t){return new _J({check:`size_equals`,...Y(t),size:e})}function W1(e,t){return new vJ({check:`max_length`,...Y(t),maximum:e})}function G1(e,t){return new yJ({check:`min_length`,...Y(t),minimum:e})}function K1(e,t){return new bJ({check:`length_equals`,...Y(t),length:e})}function q1(e,t){return new SJ({check:`string_format`,format:`regex`,...Y(t),pattern:e})}function J1(e){return new CJ({check:`string_format`,format:`lowercase`,...Y(e)})}function Y1(e){return new wJ({check:`string_format`,format:`uppercase`,...Y(e)})}function X1(e,t){return new TJ({check:`string_format`,format:`includes`,...Y(t),includes:e})}function Z1(e,t){return new EJ({check:`string_format`,format:`starts_with`,...Y(t),prefix:e})}function Q1(e,t){return new DJ({check:`string_format`,format:`ends_with`,...Y(t),suffix:e})}function $1(e,t,n){return new OJ({check:`property`,property:e,schema:t,...Y(n)})}function e0(e,t){return new kJ({check:`mime_type`,mime:e,...Y(t)})}function t0(e){return new AJ({check:`overwrite`,tx:e})}function n0(e){return t0(t=>t.normalize(e))}function r0(){return t0(e=>e.trim())}function i0(){return t0(e=>e.toLowerCase())}function a0(){return t0(e=>e.toUpperCase())}function o0(){return t0(e=>EG(e))}function s0(e,t,n){return new e({type:`array`,element:t,...Y(n)})}function c0(e,t,n){return new e({type:`union`,options:t,...Y(n)})}function l0(e,t,n){return new e({type:`union`,options:t,inclusive:!1,...Y(n)})}function u0(e,t,n,r){return new e({type:`union`,options:n,discriminator:t,...Y(r)})}function d0(e,t,n){return new e({type:`intersection`,left:t,right:n})}function f0(e,t,n,r){let i=n instanceof oY;return new e({type:`tuple`,items:t,rest:i?n:null,...Y(i?r:n)})}function p0(e,t,n,r){return new e({type:`record`,keyType:t,valueType:n,...Y(r)})}function m0(e,t,n,r){return new e({type:`map`,keyType:t,valueType:n,...Y(r)})}function h0(e,t,n){return new e({type:`set`,valueType:t,...Y(n)})}function g0(e,t,n){return new e({type:`enum`,entries:Array.isArray(t)?Object.fromEntries(t.map(e=>[e,e])):t,...Y(n)})}function _0(e,t,n){return new e({type:`enum`,entries:t,...Y(n)})}function v0(e,t,n){return new e({type:`literal`,values:Array.isArray(t)?t:[t],...Y(n)})}function y0(e,t){return new e({type:`file`,...Y(t)})}function b0(e,t){return new e({type:`transform`,transform:t})}function x0(e,t){return new e({type:`optional`,innerType:t})}function S0(e,t){return new e({type:`nullable`,innerType:t})}function C0(e,t,n){return new e({type:`default`,innerType:t,get defaultValue(){return typeof n==`function`?n():kG(n)}})}function w0(e,t,n){return new e({type:`nonoptional`,innerType:t,...Y(n)})}function T0(e,t){return new e({type:`success`,innerType:t})}function E0(e,t,n){return new e({type:`catch`,innerType:t,catchValue:typeof n==`function`?n:()=>n})}function D0(e,t,n){return new e({type:`pipe`,in:t,out:n})}function O0(e,t){return new e({type:`readonly`,innerType:t})}function k0(e,t,n){return new e({type:`template_literal`,parts:t,...Y(n)})}function A0(e,t){return new e({type:`lazy`,getter:t})}function j0(e,t){return new e({type:`promise`,innerType:t})}function M0(e,t,n){let r=Y(n);return r.abort??=!0,new e({type:`custom`,check:`custom`,fn:t,...r})}function N0(e,t,n){return new e({type:`custom`,check:`custom`,fn:t,...Y(n)})}function P0(e,t){let n=F0(t=>(t.addIssue=e=>{if(typeof e==`string`)t.issues.push(ZG(e,t.value,n._zod.def));else{let r=e;r.fatal&&(r.continue=!1),r.code??=`custom`,r.input??=t.value,r.inst??=n,r.continue??=!n._zod.def.abort,t.issues.push(ZG(r))}},e(t.value,t)),t);return n}function F0(e,t){let n=new cJ({check:`custom`,...Y(t)});return n._zod.check=e,n}function I0(e){let t=new cJ({check:`describe`});return t._zod.onattach=[t=>{let n=M$.get(t)??{};M$.add(t,{...n,description:e})}],t._zod.check=()=>{},t}function L0(e){let t=new cJ({check:`meta`});return t._zod.onattach=[t=>{let n=M$.get(t)??{};M$.add(t,{...n,...e})}],t._zod.check=()=>{},t}function R0(e,t){let n=Y(t),r=n.truthy??[`true`,`1`,`yes`,`on`,`y`,`enabled`],i=n.falsy??[`false`,`0`,`no`,`off`,`n`,`disabled`];n.case!==`sensitive`&&(r=r.map(e=>typeof e==`string`?e.toLowerCase():e),i=i.map(e=>typeof e==`string`?e.toLowerCase():e));let a=new Set(r),o=new Set(i),s=e.Codec??vX,c=e.Boolean??IY,l=new s({type:`pipe`,in:new(e.String??sY)({type:`string`,error:n.error}),out:new c({type:`boolean`,error:n.error}),transform:((e,t)=>{let r=e;return n.case!==`sensitive`&&(r=r.toLowerCase()),a.has(r)?!0:!o.has(r)&&(t.issues.push({code:`invalid_value`,expected:`stringbool`,values:[...a,...o],input:t.value,inst:l,continue:!1}),{})}),reverseTransform:((e,t)=>e===!0?r[0]||`true`:i[0]||`false`),error:n.error});return l}function z0(e,t,n,r={}){let i=Y(r),a={...Y(r),check:`string_format`,type:`string`,format:t,fn:typeof n==`function`?n:e=>n.test(e),...i};return n instanceof RegExp&&(a.pattern=n),new e(a)}var B0,V0=o((()=>{jJ(),N$(),EX(),mK(),B0={Any:null,Minute:-1,Second:0,Millisecond:3,Microsecond:6}}));function H0(e){let t=e?.target??`draft-2020-12`;return t===`draft-4`&&(t=`draft-04`),t===`draft-7`&&(t=`draft-07`),{processors:e.processors??{},metadataRegistry:e?.metadata??M$,target:t,unrepresentable:e?.unrepresentable??`throw`,override:e?.override??(()=>{}),io:e?.io??`output`,counter:0,seen:new Map,cycles:e?.cycles??`ref`,reused:e?.reused??`inline`,external:e?.external??void 0}}function U0(e,t,n={path:[],schemaPath:[]}){var r;let i=e._zod.def,a=t.seen.get(e);if(a)return a.count++,n.schemaPath.includes(e)&&(a.cycle=n.path),a.schema;let o={schema:{},count:1,cycle:void 0,path:n.path};t.seen.set(e,o);let s=e._zod.toJSONSchema?.();if(s)o.schema=s;else{let r={...n,schemaPath:[...n.schemaPath,e],path:n.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,o.schema,r);else{let n=o.schema,a=t.processors[i.type];if(!a)throw Error(`[toJSONSchema]: Non-representable type encountered: ${i.type}`);a(e,t,n,r)}let a=e._zod.parent;a&&(o.ref||=a,U0(a,t,r),t.seen.get(a).isParent=!0)}let c=t.metadataRegistry.get(e);return c&&Object.assign(o.schema,c),t.io===`input`&&K0(e)&&(delete o.schema.examples,delete o.schema.default),t.io===`input`&&`_prefault`in o.schema&&((r=o.schema).default??(r.default=o.schema._prefault)),delete o.schema._prefault,t.seen.get(e).schema}function W0(e,t){let n=e.seen.get(t);if(!n)throw Error(`Unprocessed schema. This is a bug in Zod.`);let r=new Map;for(let t of e.seen.entries()){let n=e.metadataRegistry.get(t[0])?.id;if(n){let e=r.get(n);if(e&&e!==t[0])throw Error(`Duplicate schema id "${n}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);r.set(n,t[0])}}let i=t=>{let r=e.target===`draft-2020-12`?`$defs`:`definitions`;if(e.external){let n=e.external.registry.get(t[0])?.id,i=e.external.uri??(e=>e);if(n)return{ref:i(n)};let a=t[1].defId??t[1].schema.id??`schema${e.counter++}`;return t[1].defId=a,{defId:a,ref:`${i(`__shared`)}#/${r}/${a}`}}if(t[1]===n)return{ref:`#`};let i=`#/${r}/`,a=t[1].schema.id??`__schema${e.counter++}`;return{defId:a,ref:i+a}},a=e=>{if(e[1].schema.$ref)return;let t=e[1],{ref:n,defId:r}=i(e);t.def={...t.schema},r&&(t.defId=r);let a=t.schema;for(let e in a)delete a[e];a.$ref=n};if(e.cycles===`throw`)for(let t of e.seen.entries()){let e=t[1];if(e.cycle)throw Error(`Cycle detected: #/${e.cycle?.join(`/`)}/ + `)}t.write(`payload.value = newResult;`),t.write(`return payload;`);let s=t.compile();return(t,n)=>s(e,t,n)},a,o=PG,s=!uG.jitless,c=s&&pK.value,l=t.catchall,u;e._zod.parse=(d,f)=>{u??=r.value;let p=d.value;return o(p)?s&&c&&f?.async===!1&&f.jitless!==!0?(a||=i(t.shape),d=a(d,f),l?JJ([],p,d,f,u,e):d):n(d,f):(d.issues.push({expected:`object`,code:`invalid_type`,input:p,inst:e}),d)}}),nX=q(`$ZodUnion`,(e,t)=>{fY.init(e,t),wG(e._zod,`optin`,()=>t.options.some(e=>e._zod.optin===`optional`)?`optional`:void 0),wG(e._zod,`optout`,()=>t.options.some(e=>e._zod.optout===`optional`)?`optional`:void 0),wG(e._zod,`values`,()=>{if(t.options.every(e=>e._zod.values))return new Set(t.options.flatMap(e=>Array.from(e._zod.values)))}),wG(e._zod,`pattern`,()=>{if(t.options.every(e=>e._zod.pattern)){let e=t.options.map(e=>e._zod.pattern);return RegExp(`^(${e.map(e=>SG(e.source)).join(`|`)})$`)}});let n=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(r,i)=>{if(n)return n(r,i);let a=!1,o=[];for(let e of t.options){let t=e._zod.run({value:r.value,issues:[]},i);if(t instanceof Promise)o.push(t),a=!0;else{if(t.issues.length===0)return t;o.push(t)}}return a?Promise.all(o).then(t=>YJ(t,r,e,i)):YJ(o,r,e,i)}}),rX=q(`$ZodXor`,(e,t)=>{nX.init(e,t),t.inclusive=!1;let n=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(r,i)=>{if(n)return n(r,i);let a=!1,o=[];for(let e of t.options){let t=e._zod.run({value:r.value,issues:[]},i);t instanceof Promise?(o.push(t),a=!0):o.push(t)}return a?Promise.all(o).then(t=>XJ(t,r,e,i)):XJ(o,r,e,i)}}),iX=q(`$ZodDiscriminatedUnion`,(e,t)=>{t.inclusive=!1,nX.init(e,t);let n=e._zod.parse;wG(e._zod,`propValues`,()=>{let e={};for(let n of t.options){let r=n._zod.propValues;if(!r||Object.keys(r).length===0)throw Error(`Invalid discriminated union option at index "${t.options.indexOf(n)}"`);for(let[t,n]of Object.entries(r)){e[t]||(e[t]=new Set);for(let r of n)e[t].add(r)}}return e});let r=bG(()=>{let e=t.options,n=new Map;for(let r of e){let e=r._zod.propValues?.[t.discriminator];if(!e||e.size===0)throw Error(`Invalid discriminated union option at index "${t.options.indexOf(r)}"`);for(let t of e){if(n.has(t))throw Error(`Duplicate discriminator value "${String(t)}"`);n.set(t,r)}}return n});e._zod.parse=(i,a)=>{let o=i.value;if(!PG(o))return i.issues.push({code:`invalid_type`,expected:`object`,input:o,inst:e}),i;let s=r.value.get(o?.[t.discriminator]);return s?s._zod.run(i,a):t.unionFallback||a.direction===`backward`?n(i,a):(i.issues.push({code:`invalid_union`,errors:[],note:`No matching discriminator`,discriminator:t.discriminator,options:Array.from(r.value.keys()),input:o,path:[t.discriminator],inst:e}),i)}}),aX=q(`$ZodIntersection`,(e,t)=>{fY.init(e,t),e._zod.parse=(e,n)=>{let r=e.value,i=t.left._zod.run({value:r,issues:[]},n),a=t.right._zod.run({value:r,issues:[]},n);return i instanceof Promise||a instanceof Promise?Promise.all([i,a]).then(([t,n])=>QJ(e,t,n)):QJ(e,i,a)}}),oX=q(`$ZodTuple`,(e,t)=>{fY.init(e,t);let n=t.items;e._zod.parse=(r,i)=>{let a=r.value;if(!Array.isArray(a))return r.issues.push({input:a,inst:e,expected:`tuple`,code:`invalid_type`}),r;r.value=[];let o=[],s=$J(n,`optin`),c=$J(n,`optout`);if(!t.rest){if(a.lengthn.length&&r.issues.push({code:`too_big`,maximum:n.length,inclusive:!0,input:a,inst:e,origin:`array`})}let l=Array(n.length);for(let e=0;e{l[e]=t})):l[e]=t}if(t.rest){let e=n.length-1,s=a.slice(n.length);for(let n of s){e++;let a=t.rest._zod.run({value:n,issues:[]},i);a instanceof Promise?o.push(a.then(t=>eY(t,r,e))):eY(a,r,e)}}return o.length?Promise.all(o).then(()=>tY(l,r,n,a,c)):tY(l,r,n,a,c)}}),sX=q(`$ZodRecord`,(e,t)=>{fY.init(e,t),e._zod.parse=(n,r)=>{let i=n.value;if(!FG(i))return n.issues.push({expected:`record`,code:`invalid_type`,input:i,inst:e}),n;let a=[],o=t.keyType._zod.values;if(o){n.value={};let s=new Set;for(let c of o)if(typeof c==`string`||typeof c==`number`||typeof c==`symbol`){s.add(typeof c==`number`?c.toString():c);let o=t.keyType._zod.run({value:c,issues:[]},r);if(o instanceof Promise)throw Error(`Async schemas not supported in object keys currently`);if(o.issues.length){n.issues.push({code:`invalid_key`,origin:`record`,issues:o.issues.map(e=>$G(e,r,iG())),input:c,path:[c],inst:e});continue}let l=o.value,u=t.valueType._zod.run({value:i[c],issues:[]},r);u instanceof Promise?a.push(u.then(e=>{e.issues.length&&n.issues.push(...ZG(c,e.issues)),n.value[l]=e.value})):(u.issues.length&&n.issues.push(...ZG(c,u.issues)),n.value[l]=u.value)}let c;for(let e in i)s.has(e)||(c??=[],c.push(e));c&&c.length>0&&n.issues.push({code:`unrecognized_keys`,input:i,inst:e,keys:c})}else{n.value={};for(let o of Reflect.ownKeys(i)){if(o===`__proto__`||!Object.prototype.propertyIsEnumerable.call(i,o))continue;let s=t.keyType._zod.run({value:o,issues:[]},r);if(s instanceof Promise)throw Error(`Async schemas not supported in object keys currently`);if(typeof o==`string`&&Wq.test(o)&&s.issues.length){let e=t.keyType._zod.run({value:Number(o),issues:[]},r);if(e instanceof Promise)throw Error(`Async schemas not supported in object keys currently`);e.issues.length===0&&(s=e)}if(s.issues.length){t.mode===`loose`?n.value[o]=i[o]:n.issues.push({code:`invalid_key`,origin:`record`,issues:s.issues.map(e=>$G(e,r,iG())),input:o,path:[o],inst:e});continue}let c=t.valueType._zod.run({value:i[o],issues:[]},r);c instanceof Promise?a.push(c.then(e=>{e.issues.length&&n.issues.push(...ZG(o,e.issues)),n.value[s.value]=e.value})):(c.issues.length&&n.issues.push(...ZG(o,c.issues)),n.value[s.value]=c.value)}}return a.length?Promise.all(a).then(()=>n):n}}),cX=q(`$ZodMap`,(e,t)=>{fY.init(e,t),e._zod.parse=(n,r)=>{let i=n.value;if(!(i instanceof Map))return n.issues.push({expected:`map`,code:`invalid_type`,input:i,inst:e}),n;let a=[];n.value=new Map;for(let[o,s]of i){let c=t.keyType._zod.run({value:o,issues:[]},r),l=t.valueType._zod.run({value:s,issues:[]},r);c instanceof Promise||l instanceof Promise?a.push(Promise.all([c,l]).then(([t,a])=>{nY(t,a,n,o,i,e,r)})):nY(c,l,n,o,i,e,r)}return a.length?Promise.all(a).then(()=>n):n}}),lX=q(`$ZodSet`,(e,t)=>{fY.init(e,t),e._zod.parse=(n,r)=>{let i=n.value;if(!(i instanceof Set))return n.issues.push({input:i,inst:e,expected:`set`,code:`invalid_type`}),n;let a=[];n.value=new Set;for(let e of i){let i=t.valueType._zod.run({value:e,issues:[]},r);i instanceof Promise?a.push(i.then(e=>rY(e,n))):rY(i,n)}return a.length?Promise.all(a).then(()=>n):n}}),uX=q(`$ZodEnum`,(e,t)=>{fY.init(e,t);let n=vG(t.entries),r=new Set(n);e._zod.values=r,e._zod.pattern=RegExp(`^(${n.filter(e=>hK.has(typeof e)).map(e=>typeof e==`string`?RG(e):e.toString()).join(`|`)})$`),e._zod.parse=(t,i)=>{let a=t.value;return r.has(a)||t.issues.push({code:`invalid_value`,values:n,input:a,inst:e}),t}}),dX=q(`$ZodLiteral`,(e,t)=>{if(fY.init(e,t),t.values.length===0)throw Error(`Cannot create literal schema with no valid values`);let n=new Set(t.values);e._zod.values=n,e._zod.pattern=RegExp(`^(${t.values.map(e=>typeof e==`string`?RG(e):e?RG(e.toString()):String(e)).join(`|`)})$`),e._zod.parse=(r,i)=>{let a=r.value;return n.has(a)||r.issues.push({code:`invalid_value`,values:t.values,input:a,inst:e}),r}}),fX=q(`$ZodFile`,(e,t)=>{fY.init(e,t),e._zod.parse=(t,n)=>{let r=t.value;return r instanceof File||t.issues.push({expected:`file`,code:`invalid_type`,input:r,inst:e}),t}}),pX=q(`$ZodTransform`,(e,t)=>{fY.init(e,t),e._zod.optin=`optional`,e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new lG(e.constructor.name);let i=t.transform(n.value,n);if(r.async)return(i instanceof Promise?i:Promise.resolve(i)).then(e=>(n.value=e,n.fallback=!0,n));if(i instanceof Promise)throw new cG;return n.value=i,n.fallback=!0,n}}),mX=q(`$ZodOptional`,(e,t)=>{fY.init(e,t),e._zod.optin=`optional`,e._zod.optout=`optional`,wG(e._zod,`values`,()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),wG(e._zod,`pattern`,()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${SG(e.source)})?$`):void 0}),e._zod.parse=(e,n)=>{if(t.innerType._zod.optin===`optional`){let r=e.value,i=t.innerType._zod.run(e,n);return i instanceof Promise?i.then(e=>iY(e,r)):iY(i,r)}return e.value===void 0?e:t.innerType._zod.run(e,n)}}),hX=q(`$ZodExactOptional`,(e,t)=>{mX.init(e,t),wG(e._zod,`values`,()=>t.innerType._zod.values),wG(e._zod,`pattern`,()=>t.innerType._zod.pattern),e._zod.parse=(e,n)=>t.innerType._zod.run(e,n)}),gX=q(`$ZodNullable`,(e,t)=>{fY.init(e,t),wG(e._zod,`optin`,()=>t.innerType._zod.optin),wG(e._zod,`optout`,()=>t.innerType._zod.optout),wG(e._zod,`pattern`,()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${SG(e.source)}|null)$`):void 0}),wG(e._zod,`values`,()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(e,n)=>e.value===null?e:t.innerType._zod.run(e,n)}),_X=q(`$ZodDefault`,(e,t)=>{fY.init(e,t),e._zod.optin=`optional`,wG(e._zod,`values`,()=>t.innerType._zod.values),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);if(e.value===void 0)return e.value=t.defaultValue,e;let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(e=>aY(e,t)):aY(r,t)}}),vX=q(`$ZodPrefault`,(e,t)=>{fY.init(e,t),e._zod.optin=`optional`,wG(e._zod,`values`,()=>t.innerType._zod.values),e._zod.parse=(e,n)=>(n.direction===`backward`||e.value===void 0&&(e.value=t.defaultValue),t.innerType._zod.run(e,n))}),yX=q(`$ZodNonOptional`,(e,t)=>{fY.init(e,t),wG(e._zod,`values`,()=>{let e=t.innerType._zod.values;return e?new Set([...e].filter(e=>e!==void 0)):void 0}),e._zod.parse=(n,r)=>{let i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(t=>oY(t,e)):oY(i,e)}}),bX=q(`$ZodSuccess`,(e,t)=>{fY.init(e,t),e._zod.parse=(e,n)=>{if(n.direction===`backward`)throw new lG(`ZodSuccess`);let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(t=>(e.value=t.issues.length===0,e)):(e.value=r.issues.length===0,e)}}),xX=q(`$ZodCatch`,(e,t)=>{fY.init(e,t),e._zod.optin=`optional`,wG(e._zod,`optout`,()=>t.innerType._zod.optout),wG(e._zod,`values`,()=>t.innerType._zod.values),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(r=>(e.value=r.value,r.issues.length&&(e.value=t.catchValue({...e,error:{issues:r.issues.map(e=>$G(e,n,iG()))},input:e.value}),e.issues=[],e.fallback=!0),e)):(e.value=r.value,r.issues.length&&(e.value=t.catchValue({...e,error:{issues:r.issues.map(e=>$G(e,n,iG()))},input:e.value}),e.issues=[],e.fallback=!0),e)}}),SX=q(`$ZodNaN`,(e,t)=>{fY.init(e,t),e._zod.parse=(t,n)=>((typeof t.value!=`number`||!Number.isNaN(t.value))&&t.issues.push({input:t.value,inst:e,expected:`nan`,code:`invalid_type`}),t)}),CX=q(`$ZodPipe`,(e,t)=>{fY.init(e,t),wG(e._zod,`values`,()=>t.in._zod.values),wG(e._zod,`optin`,()=>t.in._zod.optin),wG(e._zod,`optout`,()=>t.out._zod.optout),wG(e._zod,`propValues`,()=>t.in._zod.propValues),e._zod.parse=(e,n)=>{if(n.direction===`backward`){let r=t.out._zod.run(e,n);return r instanceof Promise?r.then(e=>sY(e,t.in,n)):sY(r,t.in,n)}let r=t.in._zod.run(e,n);return r instanceof Promise?r.then(e=>sY(e,t.out,n)):sY(r,t.out,n)}}),wX=q(`$ZodCodec`,(e,t)=>{fY.init(e,t),wG(e._zod,`values`,()=>t.in._zod.values),wG(e._zod,`optin`,()=>t.in._zod.optin),wG(e._zod,`optout`,()=>t.out._zod.optout),wG(e._zod,`propValues`,()=>t.in._zod.propValues),e._zod.parse=(e,n)=>{if((n.direction||`forward`)===`forward`){let r=t.in._zod.run(e,n);return r instanceof Promise?r.then(e=>cY(e,t,n)):cY(r,t,n)}{let r=t.out._zod.run(e,n);return r instanceof Promise?r.then(e=>cY(e,t,n)):cY(r,t,n)}}}),TX=q(`$ZodPreprocess`,(e,t)=>{CX.init(e,t)}),EX=q(`$ZodReadonly`,(e,t)=>{fY.init(e,t),wG(e._zod,`propValues`,()=>t.innerType._zod.propValues),wG(e._zod,`values`,()=>t.innerType._zod.values),wG(e._zod,`optin`,()=>t.innerType?._zod?.optin),wG(e._zod,`optout`,()=>t.innerType?._zod?.optout),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(uY):uY(r)}}),DX=q(`$ZodTemplateLiteral`,(e,t)=>{fY.init(e,t);let n=[];for(let e of t.parts)if(typeof e==`object`&&e){if(!e._zod.pattern)throw Error(`Invalid template literal part, no pattern found: ${[...e._zod.traits].shift()}`);let t=e._zod.pattern instanceof RegExp?e._zod.pattern.source:e._zod.pattern;if(!t)throw Error(`Invalid template literal part: ${e._zod.traits}`);let r=+!!t.startsWith(`^`),i=t.endsWith(`$`)?t.length-1:t.length;n.push(t.slice(r,i))}else if(e===null||gK.has(typeof e))n.push(RG(`${e}`));else throw Error(`Invalid template literal part: ${e}`);e._zod.pattern=RegExp(`^${n.join(``)}$`),e._zod.parse=(n,r)=>typeof n.value==`string`?(e._zod.pattern.lastIndex=0,e._zod.pattern.test(n.value)||n.issues.push({input:n.value,inst:e,code:`invalid_format`,format:t.format??`template_literal`,pattern:e._zod.pattern.source}),n):(n.issues.push({input:n.value,inst:e,expected:`string`,code:`invalid_type`}),n)}),OX=q(`$ZodFunction`,(e,t)=>(fY.init(e,t),e._def=t,e._zod.def=t,e.implement=t=>{if(typeof t!=`function`)throw Error(`implement() must be called with a function`);return function(...n){let r=e._def.input?jK(e._def.input,n):n,i=Reflect.apply(t,this,r);return e._def.output?jK(e._def.output,i):i}},e.implementAsync=t=>{if(typeof t!=`function`)throw Error(`implementAsync() must be called with a function`);return async function(...n){let r=e._def.input?await NK(e._def.input,n):n,i=await Reflect.apply(t,this,r);return e._def.output?await NK(e._def.output,i):i}},e._zod.parse=(t,n)=>typeof t.value==`function`?(t.value=e._def.output&&e._def.output._zod.def.type===`promise`?e.implementAsync(t.value):e.implement(t.value),t):(t.issues.push({code:`invalid_type`,expected:`function`,input:t.value,inst:e}),t),e.input=(...t)=>{let n=e.constructor;return Array.isArray(t[0])?new n({type:`function`,input:new oX({type:`tuple`,items:t[0],rest:t[1]}),output:e._def.output}):new n({type:`function`,input:t[0],output:e._def.output})},e.output=t=>{let n=e.constructor;return new n({type:`function`,input:e._def.input,output:t})},e)),kX=q(`$ZodPromise`,(e,t)=>{fY.init(e,t),e._zod.parse=(e,n)=>Promise.resolve(e.value).then(e=>t.innerType._zod.run({value:e,issues:[]},n))}),AX=q(`$ZodLazy`,(e,t)=>{fY.init(e,t),wG(e._zod,`innerType`,()=>{let e=t;return e._cachedInner||=t.getter(),e._cachedInner}),wG(e._zod,`pattern`,()=>e._zod.innerType?._zod?.pattern),wG(e._zod,`propValues`,()=>e._zod.innerType?._zod?.propValues),wG(e._zod,`optin`,()=>e._zod.innerType?._zod?.optin??void 0),wG(e._zod,`optout`,()=>e._zod.innerType?._zod?.optout??void 0),e._zod.parse=(t,n)=>e._zod.innerType._zod.run(t,n)}),jX=q(`$ZodCustom`,(e,t)=>{mJ.init(e,t),fY.init(e,t),e._zod.parse=(e,t)=>e,e._zod.check=n=>{let r=n.value,i=t.fn(r);if(i instanceof Promise)return i.then(t=>dY(t,n,r,e));dY(i,n,r,e)}})}));function NX(){return{localeError:PX()}}var PX,FX=o((()=>{bK(),PX=()=>{let e={string:{unit:`حرف`,verb:`أن يحوي`},file:{unit:`بايت`,verb:`أن يحوي`},array:{unit:`عنصر`,verb:`أن يحوي`},set:{unit:`عنصر`,verb:`أن يحوي`}};function t(t){return e[t]??null}let n={regex:`مدخل`,email:`بريد إلكتروني`,url:`رابط`,emoji:`إيموجي`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`تاريخ ووقت بمعيار ISO`,date:`تاريخ بمعيار ISO`,time:`وقت بمعيار ISO`,duration:`مدة بمعيار ISO`,ipv4:`عنوان IPv4`,ipv6:`عنوان IPv6`,cidrv4:`مدى عناوين بصيغة IPv4`,cidrv6:`مدى عناوين بصيغة IPv6`,base64:`نَص بترميز base64-encoded`,base64url:`نَص بترميز base64url-encoded`,json_string:`نَص على هيئة JSON`,e164:`رقم هاتف بمعيار E.164`,jwt:`JWT`,template_literal:`مدخل`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=nK(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`مدخلات غير مقبولة: يفترض إدخال instanceof ${e.expected}، ولكن تم إدخال ${i}`:`مدخلات غير مقبولة: يفترض إدخال ${t}، ولكن تم إدخال ${i}`}case`invalid_value`:return e.values.length===1?`مدخلات غير مقبولة: يفترض إدخال ${BG(e.values[0])}`:`اختيار غير مقبول: يتوقع انتقاء أحد هذه الخيارات: ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?` أكبر من اللازم: يفترض أن تكون ${e.origin??`القيمة`} ${n} ${e.maximum.toString()} ${r.unit??`عنصر`}`:`أكبر من اللازم: يفترض أن تكون ${e.origin??`القيمة`} ${n} ${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`أصغر من اللازم: يفترض لـ ${e.origin} أن يكون ${n} ${e.minimum.toString()} ${r.unit}`:`أصغر من اللازم: يفترض لـ ${e.origin} أن يكون ${n} ${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`نَص غير مقبول: يجب أن يبدأ بـ "${e.prefix}"`:t.format===`ends_with`?`نَص غير مقبول: يجب أن ينتهي بـ "${t.suffix}"`:t.format===`includes`?`نَص غير مقبول: يجب أن يتضمَّن "${t.includes}"`:t.format===`regex`?`نَص غير مقبول: يجب أن يطابق النمط ${t.pattern}`:`${n[t.format]??e.format} غير مقبول`}case`not_multiple_of`:return`رقم غير مقبول: يجب أن يكون من مضاعفات ${e.divisor}`;case`unrecognized_keys`:return`معرف${e.keys.length>1?`ات`:``} غريب${e.keys.length>1?`ة`:``}: ${J(e.keys,`، `)}`;case`invalid_key`:return`معرف غير مقبول في ${e.origin}`;case`invalid_union`:return`مدخل غير مقبول`;case`invalid_element`:return`مدخل غير مقبول في ${e.origin}`;default:return`مدخل غير مقبول`}}}}));function IX(){return{localeError:LX()}}var LX,RX=o((()=>{bK(),LX=()=>{let e={string:{unit:`simvol`,verb:`olmalıdır`},file:{unit:`bayt`,verb:`olmalıdır`},array:{unit:`element`,verb:`olmalıdır`},set:{unit:`element`,verb:`olmalıdır`}};function t(t){return e[t]??null}let n={regex:`input`,email:`email address`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO datetime`,date:`ISO date`,time:`ISO time`,duration:`ISO duration`,ipv4:`IPv4 address`,ipv6:`IPv6 address`,cidrv4:`IPv4 range`,cidrv6:`IPv6 range`,base64:`base64-encoded string`,base64url:`base64url-encoded string`,json_string:`JSON string`,e164:`E.164 number`,jwt:`JWT`,template_literal:`input`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=nK(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Yanlış dəyər: gözlənilən instanceof ${e.expected}, daxil olan ${i}`:`Yanlış dəyər: gözlənilən ${t}, daxil olan ${i}`}case`invalid_value`:return e.values.length===1?`Yanlış dəyər: gözlənilən ${BG(e.values[0])}`:`Yanlış seçim: aşağıdakılardan biri olmalıdır: ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Çox böyük: gözlənilən ${e.origin??`dəyər`} ${n}${e.maximum.toString()} ${r.unit??`element`}`:`Çox böyük: gözlənilən ${e.origin??`dəyər`} ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Çox kiçik: gözlənilən ${e.origin} ${n}${e.minimum.toString()} ${r.unit}`:`Çox kiçik: gözlənilən ${e.origin} ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Yanlış mətn: "${t.prefix}" ilə başlamalıdır`:t.format===`ends_with`?`Yanlış mətn: "${t.suffix}" ilə bitməlidir`:t.format===`includes`?`Yanlış mətn: "${t.includes}" daxil olmalıdır`:t.format===`regex`?`Yanlış mətn: ${t.pattern} şablonuna uyğun olmalıdır`:`Yanlış ${n[t.format]??e.format}`}case`not_multiple_of`:return`Yanlış ədəd: ${e.divisor} ilə bölünə bilən olmalıdır`;case`unrecognized_keys`:return`Tanınmayan açar${e.keys.length>1?`lar`:``}: ${J(e.keys,`, `)}`;case`invalid_key`:return`${e.origin} daxilində yanlış açar`;case`invalid_union`:return`Yanlış dəyər`;case`invalid_element`:return`${e.origin} daxilində yanlış dəyər`;default:return`Yanlış dəyər`}}}}));function zX(e,t,n,r){let i=Math.abs(e),a=i%10,o=i%100;return o>=11&&o<=19?r:a===1?t:a>=2&&a<=4?n:r}function BX(){return{localeError:VX()}}var VX,HX=o((()=>{bK(),VX=()=>{let e={string:{unit:{one:`сімвал`,few:`сімвалы`,many:`сімвалаў`},verb:`мець`},array:{unit:{one:`элемент`,few:`элементы`,many:`элементаў`},verb:`мець`},set:{unit:{one:`элемент`,few:`элементы`,many:`элементаў`},verb:`мець`},file:{unit:{one:`байт`,few:`байты`,many:`байтаў`},verb:`мець`}};function t(t){return e[t]??null}let n={regex:`увод`,email:`email адрас`,url:`URL`,emoji:`эмодзі`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO дата і час`,date:`ISO дата`,time:`ISO час`,duration:`ISO працягласць`,ipv4:`IPv4 адрас`,ipv6:`IPv6 адрас`,cidrv4:`IPv4 дыяпазон`,cidrv6:`IPv6 дыяпазон`,base64:`радок у фармаце base64`,base64url:`радок у фармаце base64url`,json_string:`JSON радок`,e164:`нумар E.164`,jwt:`JWT`,template_literal:`увод`},r={nan:`NaN`,number:`лік`,array:`масіў`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=nK(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Няправільны ўвод: чакаўся instanceof ${e.expected}, атрымана ${i}`:`Няправільны ўвод: чакаўся ${t}, атрымана ${i}`}case`invalid_value`:return e.values.length===1?`Няправільны ўвод: чакалася ${BG(e.values[0])}`:`Няправільны варыянт: чакаўся адзін з ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);if(r){let t=zX(Number(e.maximum),r.unit.one,r.unit.few,r.unit.many);return`Занадта вялікі: чакалася, што ${e.origin??`значэнне`} павінна ${r.verb} ${n}${e.maximum.toString()} ${t}`}return`Занадта вялікі: чакалася, што ${e.origin??`значэнне`} павінна быць ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);if(r){let t=zX(Number(e.minimum),r.unit.one,r.unit.few,r.unit.many);return`Занадта малы: чакалася, што ${e.origin} павінна ${r.verb} ${n}${e.minimum.toString()} ${t}`}return`Занадта малы: чакалася, што ${e.origin} павінна быць ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Няправільны радок: павінен пачынацца з "${t.prefix}"`:t.format===`ends_with`?`Няправільны радок: павінен заканчвацца на "${t.suffix}"`:t.format===`includes`?`Няправільны радок: павінен змяшчаць "${t.includes}"`:t.format===`regex`?`Няправільны радок: павінен адпавядаць шаблону ${t.pattern}`:`Няправільны ${n[t.format]??e.format}`}case`not_multiple_of`:return`Няправільны лік: павінен быць кратным ${e.divisor}`;case`unrecognized_keys`:return`Нераспазнаны ${e.keys.length>1?`ключы`:`ключ`}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Няправільны ключ у ${e.origin}`;case`invalid_union`:return`Няправільны ўвод`;case`invalid_element`:return`Няправільнае значэнне ў ${e.origin}`;default:return`Няправільны ўвод`}}}}));function UX(){return{localeError:WX()}}var WX,GX=o((()=>{bK(),WX=()=>{let e={string:{unit:`символа`,verb:`да съдържа`},file:{unit:`байта`,verb:`да съдържа`},array:{unit:`елемента`,verb:`да съдържа`},set:{unit:`елемента`,verb:`да съдържа`}};function t(t){return e[t]??null}let n={regex:`вход`,email:`имейл адрес`,url:`URL`,emoji:`емоджи`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO време`,date:`ISO дата`,time:`ISO време`,duration:`ISO продължителност`,ipv4:`IPv4 адрес`,ipv6:`IPv6 адрес`,cidrv4:`IPv4 диапазон`,cidrv6:`IPv6 диапазон`,base64:`base64-кодиран низ`,base64url:`base64url-кодиран низ`,json_string:`JSON низ`,e164:`E.164 номер`,jwt:`JWT`,template_literal:`вход`},r={nan:`NaN`,number:`число`,array:`масив`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=nK(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Невалиден вход: очакван instanceof ${e.expected}, получен ${i}`:`Невалиден вход: очакван ${t}, получен ${i}`}case`invalid_value`:return e.values.length===1?`Невалиден вход: очакван ${BG(e.values[0])}`:`Невалидна опция: очаквано едно от ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Твърде голямо: очаква се ${e.origin??`стойност`} да съдържа ${n}${e.maximum.toString()} ${r.unit??`елемента`}`:`Твърде голямо: очаква се ${e.origin??`стойност`} да бъде ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Твърде малко: очаква се ${e.origin} да съдържа ${n}${e.minimum.toString()} ${r.unit}`:`Твърде малко: очаква се ${e.origin} да бъде ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;if(t.format===`starts_with`)return`Невалиден низ: трябва да започва с "${t.prefix}"`;if(t.format===`ends_with`)return`Невалиден низ: трябва да завършва с "${t.suffix}"`;if(t.format===`includes`)return`Невалиден низ: трябва да включва "${t.includes}"`;if(t.format===`regex`)return`Невалиден низ: трябва да съвпада с ${t.pattern}`;let r=`Невалиден`;return t.format===`emoji`&&(r=`Невалидно`),t.format===`datetime`&&(r=`Невалидно`),t.format===`date`&&(r=`Невалидна`),t.format===`time`&&(r=`Невалидно`),t.format===`duration`&&(r=`Невалидна`),`${r} ${n[t.format]??e.format}`}case`not_multiple_of`:return`Невалидно число: трябва да бъде кратно на ${e.divisor}`;case`unrecognized_keys`:return`Неразпознат${e.keys.length>1?`и`:``} ключ${e.keys.length>1?`ове`:``}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Невалиден ключ в ${e.origin}`;case`invalid_union`:return`Невалиден вход`;case`invalid_element`:return`Невалидна стойност в ${e.origin}`;default:return`Невалиден вход`}}}}));function KX(){return{localeError:qX()}}var qX,JX=o((()=>{bK(),qX=()=>{let e={string:{unit:`caràcters`,verb:`contenir`},file:{unit:`bytes`,verb:`contenir`},array:{unit:`elements`,verb:`contenir`},set:{unit:`elements`,verb:`contenir`}};function t(t){return e[t]??null}let n={regex:`entrada`,email:`adreça electrònica`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`data i hora ISO`,date:`data ISO`,time:`hora ISO`,duration:`durada ISO`,ipv4:`adreça IPv4`,ipv6:`adreça IPv6`,cidrv4:`rang IPv4`,cidrv6:`rang IPv6`,base64:`cadena codificada en base64`,base64url:`cadena codificada en base64url`,json_string:`cadena JSON`,e164:`número E.164`,jwt:`JWT`,template_literal:`entrada`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=nK(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Tipus invàlid: s'esperava instanceof ${e.expected}, s'ha rebut ${i}`:`Tipus invàlid: s'esperava ${t}, s'ha rebut ${i}`}case`invalid_value`:return e.values.length===1?`Valor invàlid: s'esperava ${BG(e.values[0])}`:`Opció invàlida: s'esperava una de ${J(e.values,` o `)}`;case`too_big`:{let n=e.inclusive?`com a màxim`:`menys de`,r=t(e.origin);return r?`Massa gran: s'esperava que ${e.origin??`el valor`} contingués ${n} ${e.maximum.toString()} ${r.unit??`elements`}`:`Massa gran: s'esperava que ${e.origin??`el valor`} fos ${n} ${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`com a mínim`:`més de`,r=t(e.origin);return r?`Massa petit: s'esperava que ${e.origin} contingués ${n} ${e.minimum.toString()} ${r.unit}`:`Massa petit: s'esperava que ${e.origin} fos ${n} ${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Format invàlid: ha de començar amb "${t.prefix}"`:t.format===`ends_with`?`Format invàlid: ha d'acabar amb "${t.suffix}"`:t.format===`includes`?`Format invàlid: ha d'incloure "${t.includes}"`:t.format===`regex`?`Format invàlid: ha de coincidir amb el patró ${t.pattern}`:`Format invàlid per a ${n[t.format]??e.format}`}case`not_multiple_of`:return`Número invàlid: ha de ser múltiple de ${e.divisor}`;case`unrecognized_keys`:return`Clau${e.keys.length>1?`s`:``} no reconeguda${e.keys.length>1?`s`:``}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Clau invàlida a ${e.origin}`;case`invalid_union`:return`Entrada invàlida`;case`invalid_element`:return`Element invàlid a ${e.origin}`;default:return`Entrada invàlida`}}}}));function YX(){return{localeError:XX()}}var XX,ZX=o((()=>{bK(),XX=()=>{let e={string:{unit:`znaků`,verb:`mít`},file:{unit:`bajtů`,verb:`mít`},array:{unit:`prvků`,verb:`mít`},set:{unit:`prvků`,verb:`mít`}};function t(t){return e[t]??null}let n={regex:`regulární výraz`,email:`e-mailová adresa`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`datum a čas ve formátu ISO`,date:`datum ve formátu ISO`,time:`čas ve formátu ISO`,duration:`doba trvání ISO`,ipv4:`IPv4 adresa`,ipv6:`IPv6 adresa`,cidrv4:`rozsah IPv4`,cidrv6:`rozsah IPv6`,base64:`řetězec zakódovaný ve formátu base64`,base64url:`řetězec zakódovaný ve formátu base64url`,json_string:`řetězec ve formátu JSON`,e164:`číslo E.164`,jwt:`JWT`,template_literal:`vstup`},r={nan:`NaN`,number:`číslo`,string:`řetězec`,function:`funkce`,array:`pole`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=nK(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Neplatný vstup: očekáváno instanceof ${e.expected}, obdrženo ${i}`:`Neplatný vstup: očekáváno ${t}, obdrženo ${i}`}case`invalid_value`:return e.values.length===1?`Neplatný vstup: očekáváno ${BG(e.values[0])}`:`Neplatná možnost: očekávána jedna z hodnot ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Hodnota je příliš velká: ${e.origin??`hodnota`} musí mít ${n}${e.maximum.toString()} ${r.unit??`prvků`}`:`Hodnota je příliš velká: ${e.origin??`hodnota`} musí být ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Hodnota je příliš malá: ${e.origin??`hodnota`} musí mít ${n}${e.minimum.toString()} ${r.unit??`prvků`}`:`Hodnota je příliš malá: ${e.origin??`hodnota`} musí být ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Neplatný řetězec: musí začínat na "${t.prefix}"`:t.format===`ends_with`?`Neplatný řetězec: musí končit na "${t.suffix}"`:t.format===`includes`?`Neplatný řetězec: musí obsahovat "${t.includes}"`:t.format===`regex`?`Neplatný řetězec: musí odpovídat vzoru ${t.pattern}`:`Neplatný formát ${n[t.format]??e.format}`}case`not_multiple_of`:return`Neplatné číslo: musí být násobkem ${e.divisor}`;case`unrecognized_keys`:return`Neznámé klíče: ${J(e.keys,`, `)}`;case`invalid_key`:return`Neplatný klíč v ${e.origin}`;case`invalid_union`:return`Neplatný vstup`;case`invalid_element`:return`Neplatná hodnota v ${e.origin}`;default:return`Neplatný vstup`}}}}));function QX(){return{localeError:$X()}}var $X,eZ=o((()=>{bK(),$X=()=>{let e={string:{unit:`tegn`,verb:`havde`},file:{unit:`bytes`,verb:`havde`},array:{unit:`elementer`,verb:`indeholdt`},set:{unit:`elementer`,verb:`indeholdt`}};function t(t){return e[t]??null}let n={regex:`input`,email:`e-mailadresse`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO dato- og klokkeslæt`,date:`ISO-dato`,time:`ISO-klokkeslæt`,duration:`ISO-varighed`,ipv4:`IPv4-område`,ipv6:`IPv6-område`,cidrv4:`IPv4-spektrum`,cidrv6:`IPv6-spektrum`,base64:`base64-kodet streng`,base64url:`base64url-kodet streng`,json_string:`JSON-streng`,e164:`E.164-nummer`,jwt:`JWT`,template_literal:`input`},r={nan:`NaN`,string:`streng`,number:`tal`,boolean:`boolean`,array:`liste`,object:`objekt`,set:`sæt`,file:`fil`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=nK(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Ugyldigt input: forventede instanceof ${e.expected}, fik ${i}`:`Ugyldigt input: forventede ${t}, fik ${i}`}case`invalid_value`:return e.values.length===1?`Ugyldig værdi: forventede ${BG(e.values[0])}`:`Ugyldigt valg: forventede en af følgende ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,i=t(e.origin),a=r[e.origin]??e.origin;return i?`For stor: forventede ${a??`value`} ${i.verb} ${n} ${e.maximum.toString()} ${i.unit??`elementer`}`:`For stor: forventede ${a??`value`} havde ${n} ${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,i=t(e.origin),a=r[e.origin]??e.origin;return i?`For lille: forventede ${a} ${i.verb} ${n} ${e.minimum.toString()} ${i.unit}`:`For lille: forventede ${a} havde ${n} ${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Ugyldig streng: skal starte med "${t.prefix}"`:t.format===`ends_with`?`Ugyldig streng: skal ende med "${t.suffix}"`:t.format===`includes`?`Ugyldig streng: skal indeholde "${t.includes}"`:t.format===`regex`?`Ugyldig streng: skal matche mønsteret ${t.pattern}`:`Ugyldig ${n[t.format]??e.format}`}case`not_multiple_of`:return`Ugyldigt tal: skal være deleligt med ${e.divisor}`;case`unrecognized_keys`:return`${e.keys.length>1?`Ukendte nøgler`:`Ukendt nøgle`}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Ugyldig nøgle i ${e.origin}`;case`invalid_union`:return`Ugyldigt input: matcher ingen af de tilladte typer`;case`invalid_element`:return`Ugyldig værdi i ${e.origin}`;default:return`Ugyldigt input`}}}}));function tZ(){return{localeError:nZ()}}var nZ,rZ=o((()=>{bK(),nZ=()=>{let e={string:{unit:`Zeichen`,verb:`zu haben`},file:{unit:`Bytes`,verb:`zu haben`},array:{unit:`Elemente`,verb:`zu haben`},set:{unit:`Elemente`,verb:`zu haben`}};function t(t){return e[t]??null}let n={regex:`Eingabe`,email:`E-Mail-Adresse`,url:`URL`,emoji:`Emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO-Datum und -Uhrzeit`,date:`ISO-Datum`,time:`ISO-Uhrzeit`,duration:`ISO-Dauer`,ipv4:`IPv4-Adresse`,ipv6:`IPv6-Adresse`,cidrv4:`IPv4-Bereich`,cidrv6:`IPv6-Bereich`,base64:`Base64-codierter String`,base64url:`Base64-URL-codierter String`,json_string:`JSON-String`,e164:`E.164-Nummer`,jwt:`JWT`,template_literal:`Eingabe`},r={nan:`NaN`,number:`Zahl`,array:`Array`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=nK(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Ungültige Eingabe: erwartet instanceof ${e.expected}, erhalten ${i}`:`Ungültige Eingabe: erwartet ${t}, erhalten ${i}`}case`invalid_value`:return e.values.length===1?`Ungültige Eingabe: erwartet ${BG(e.values[0])}`:`Ungültige Option: erwartet eine von ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Zu groß: erwartet, dass ${e.origin??`Wert`} ${n}${e.maximum.toString()} ${r.unit??`Elemente`} hat`:`Zu groß: erwartet, dass ${e.origin??`Wert`} ${n}${e.maximum.toString()} ist`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Zu klein: erwartet, dass ${e.origin} ${n}${e.minimum.toString()} ${r.unit} hat`:`Zu klein: erwartet, dass ${e.origin} ${n}${e.minimum.toString()} ist`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Ungültiger String: muss mit "${t.prefix}" beginnen`:t.format===`ends_with`?`Ungültiger String: muss mit "${t.suffix}" enden`:t.format===`includes`?`Ungültiger String: muss "${t.includes}" enthalten`:t.format===`regex`?`Ungültiger String: muss dem Muster ${t.pattern} entsprechen`:`Ungültig: ${n[t.format]??e.format}`}case`not_multiple_of`:return`Ungültige Zahl: muss ein Vielfaches von ${e.divisor} sein`;case`unrecognized_keys`:return`${e.keys.length>1?`Unbekannte Schlüssel`:`Unbekannter Schlüssel`}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Ungültiger Schlüssel in ${e.origin}`;case`invalid_union`:return`Ungültige Eingabe`;case`invalid_element`:return`Ungültiger Wert in ${e.origin}`;default:return`Ungültige Eingabe`}}}}));function iZ(){return{localeError:aZ()}}var aZ,oZ=o((()=>{bK(),aZ=()=>{let e={string:{unit:`χαρακτήρες`,verb:`να έχει`},file:{unit:`bytes`,verb:`να έχει`},array:{unit:`στοιχεία`,verb:`να έχει`},set:{unit:`στοιχεία`,verb:`να έχει`},map:{unit:`καταχωρήσεις`,verb:`να έχει`}};function t(t){return e[t]??null}let n={regex:`είσοδος`,email:`διεύθυνση email`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO ημερομηνία και ώρα`,date:`ISO ημερομηνία`,time:`ISO ώρα`,duration:`ISO διάρκεια`,ipv4:`διεύθυνση IPv4`,ipv6:`διεύθυνση IPv6`,mac:`διεύθυνση MAC`,cidrv4:`εύρος IPv4`,cidrv6:`εύρος IPv6`,base64:`συμβολοσειρά κωδικοποιημένη σε base64`,base64url:`συμβολοσειρά κωδικοποιημένη σε base64url`,json_string:`συμβολοσειρά JSON`,e164:`αριθμός E.164`,jwt:`JWT`,template_literal:`είσοδος`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=nK(e.input),i=r[n]??n;return typeof e.expected==`string`&&/^[A-Z]/.test(e.expected)?`Μη έγκυρη είσοδος: αναμενόταν instanceof ${e.expected}, λήφθηκε ${i}`:`Μη έγκυρη είσοδος: αναμενόταν ${t}, λήφθηκε ${i}`}case`invalid_value`:return e.values.length===1?`Μη έγκυρη είσοδος: αναμενόταν ${BG(e.values[0])}`:`Μη έγκυρη επιλογή: αναμενόταν ένα από ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Πολύ μεγάλο: αναμενόταν ${e.origin??`τιμή`} να έχει ${n}${e.maximum.toString()} ${r.unit??`στοιχεία`}`:`Πολύ μεγάλο: αναμενόταν ${e.origin??`τιμή`} να είναι ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Πολύ μικρό: αναμενόταν ${e.origin} να έχει ${n}${e.minimum.toString()} ${r.unit}`:`Πολύ μικρό: αναμενόταν ${e.origin} να είναι ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Μη έγκυρη συμβολοσειρά: πρέπει να ξεκινά με "${t.prefix}"`:t.format===`ends_with`?`Μη έγκυρη συμβολοσειρά: πρέπει να τελειώνει με "${t.suffix}"`:t.format===`includes`?`Μη έγκυρη συμβολοσειρά: πρέπει να περιέχει "${t.includes}"`:t.format===`regex`?`Μη έγκυρη συμβολοσειρά: πρέπει να ταιριάζει με το μοτίβο ${t.pattern}`:`Μη έγκυρο: ${n[t.format]??e.format}`}case`not_multiple_of`:return`Μη έγκυρος αριθμός: πρέπει να είναι πολλαπλάσιο του ${e.divisor}`;case`unrecognized_keys`:return`Άγνωστ${e.keys.length>1?`α`:`ο`} κλειδ${e.keys.length>1?`ιά`:`ί`}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Μη έγκυρο κλειδί στο ${e.origin}`;case`invalid_union`:return`Μη έγκυρη είσοδος`;case`invalid_element`:return`Μη έγκυρη τιμή στο ${e.origin}`;default:return`Μη έγκυρη είσοδος`}}}}));function sZ(){return{localeError:cZ()}}var cZ,lZ=o((()=>{bK(),cZ=()=>{let e={string:{unit:`characters`,verb:`to have`},file:{unit:`bytes`,verb:`to have`},array:{unit:`items`,verb:`to have`},set:{unit:`items`,verb:`to have`},map:{unit:`entries`,verb:`to have`}};function t(t){return e[t]??null}let n={regex:`input`,email:`email address`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO datetime`,date:`ISO date`,time:`ISO time`,duration:`ISO duration`,ipv4:`IPv4 address`,ipv6:`IPv6 address`,mac:`MAC address`,cidrv4:`IPv4 range`,cidrv6:`IPv6 range`,base64:`base64-encoded string`,base64url:`base64url-encoded string`,json_string:`JSON string`,e164:`E.164 number`,jwt:`JWT`,template_literal:`input`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=nK(e.input);return`Invalid input: expected ${t}, received ${r[n]??n}`}case`invalid_value`:return e.values.length===1?`Invalid input: expected ${BG(e.values[0])}`:`Invalid option: expected one of ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Too big: expected ${e.origin??`value`} to have ${n}${e.maximum.toString()} ${r.unit??`elements`}`:`Too big: expected ${e.origin??`value`} to be ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Too small: expected ${e.origin} to have ${n}${e.minimum.toString()} ${r.unit}`:`Too small: expected ${e.origin} to be ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Invalid string: must start with "${t.prefix}"`:t.format===`ends_with`?`Invalid string: must end with "${t.suffix}"`:t.format===`includes`?`Invalid string: must include "${t.includes}"`:t.format===`regex`?`Invalid string: must match pattern ${t.pattern}`:`Invalid ${n[t.format]??e.format}`}case`not_multiple_of`:return`Invalid number: must be a multiple of ${e.divisor}`;case`unrecognized_keys`:return`Unrecognized key${e.keys.length>1?`s`:``}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Invalid key in ${e.origin}`;case`invalid_union`:return e.options&&Array.isArray(e.options)&&e.options.length>0?`Invalid discriminator value. Expected ${e.options.map(e=>`'${e}'`).join(` | `)}`:`Invalid input`;case`invalid_element`:return`Invalid value in ${e.origin}`;default:return`Invalid input`}}}}));function uZ(){return{localeError:dZ()}}var dZ,fZ=o((()=>{bK(),dZ=()=>{let e={string:{unit:`karaktrojn`,verb:`havi`},file:{unit:`bajtojn`,verb:`havi`},array:{unit:`elementojn`,verb:`havi`},set:{unit:`elementojn`,verb:`havi`}};function t(t){return e[t]??null}let n={regex:`enigo`,email:`retadreso`,url:`URL`,emoji:`emoĝio`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO-datotempo`,date:`ISO-dato`,time:`ISO-tempo`,duration:`ISO-daŭro`,ipv4:`IPv4-adreso`,ipv6:`IPv6-adreso`,cidrv4:`IPv4-rango`,cidrv6:`IPv6-rango`,base64:`64-ume kodita karaktraro`,base64url:`URL-64-ume kodita karaktraro`,json_string:`JSON-karaktraro`,e164:`E.164-nombro`,jwt:`JWT`,template_literal:`enigo`},r={nan:`NaN`,number:`nombro`,array:`tabelo`,null:`senvalora`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=nK(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Nevalida enigo: atendiĝis instanceof ${e.expected}, riceviĝis ${i}`:`Nevalida enigo: atendiĝis ${t}, riceviĝis ${i}`}case`invalid_value`:return e.values.length===1?`Nevalida enigo: atendiĝis ${BG(e.values[0])}`:`Nevalida opcio: atendiĝis unu el ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Tro granda: atendiĝis ke ${e.origin??`valoro`} havu ${n}${e.maximum.toString()} ${r.unit??`elementojn`}`:`Tro granda: atendiĝis ke ${e.origin??`valoro`} havu ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Tro malgranda: atendiĝis ke ${e.origin} havu ${n}${e.minimum.toString()} ${r.unit}`:`Tro malgranda: atendiĝis ke ${e.origin} estu ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Nevalida karaktraro: devas komenciĝi per "${t.prefix}"`:t.format===`ends_with`?`Nevalida karaktraro: devas finiĝi per "${t.suffix}"`:t.format===`includes`?`Nevalida karaktraro: devas inkluzivi "${t.includes}"`:t.format===`regex`?`Nevalida karaktraro: devas kongrui kun la modelo ${t.pattern}`:`Nevalida ${n[t.format]??e.format}`}case`not_multiple_of`:return`Nevalida nombro: devas esti oblo de ${e.divisor}`;case`unrecognized_keys`:return`Nekonata${e.keys.length>1?`j`:``} ŝlosilo${e.keys.length>1?`j`:``}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Nevalida ŝlosilo en ${e.origin}`;case`invalid_union`:return`Nevalida enigo`;case`invalid_element`:return`Nevalida valoro en ${e.origin}`;default:return`Nevalida enigo`}}}}));function pZ(){return{localeError:mZ()}}var mZ,hZ=o((()=>{bK(),mZ=()=>{let e={string:{unit:`caracteres`,verb:`tener`},file:{unit:`bytes`,verb:`tener`},array:{unit:`elementos`,verb:`tener`},set:{unit:`elementos`,verb:`tener`}};function t(t){return e[t]??null}let n={regex:`entrada`,email:`dirección de correo electrónico`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`fecha y hora ISO`,date:`fecha ISO`,time:`hora ISO`,duration:`duración ISO`,ipv4:`dirección IPv4`,ipv6:`dirección IPv6`,cidrv4:`rango IPv4`,cidrv6:`rango IPv6`,base64:`cadena codificada en base64`,base64url:`URL codificada en base64`,json_string:`cadena JSON`,e164:`número E.164`,jwt:`JWT`,template_literal:`entrada`},r={nan:`NaN`,string:`texto`,number:`número`,boolean:`booleano`,array:`arreglo`,object:`objeto`,set:`conjunto`,file:`archivo`,date:`fecha`,bigint:`número grande`,symbol:`símbolo`,undefined:`indefinido`,null:`nulo`,function:`función`,map:`mapa`,record:`registro`,tuple:`tupla`,enum:`enumeración`,union:`unión`,literal:`literal`,promise:`promesa`,void:`vacío`,never:`nunca`,unknown:`desconocido`,any:`cualquiera`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=nK(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Entrada inválida: se esperaba instanceof ${e.expected}, recibido ${i}`:`Entrada inválida: se esperaba ${t}, recibido ${i}`}case`invalid_value`:return e.values.length===1?`Entrada inválida: se esperaba ${BG(e.values[0])}`:`Opción inválida: se esperaba una de ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,i=t(e.origin),a=r[e.origin]??e.origin;return i?`Demasiado grande: se esperaba que ${a??`valor`} tuviera ${n}${e.maximum.toString()} ${i.unit??`elementos`}`:`Demasiado grande: se esperaba que ${a??`valor`} fuera ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,i=t(e.origin),a=r[e.origin]??e.origin;return i?`Demasiado pequeño: se esperaba que ${a} tuviera ${n}${e.minimum.toString()} ${i.unit}`:`Demasiado pequeño: se esperaba que ${a} fuera ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Cadena inválida: debe comenzar con "${t.prefix}"`:t.format===`ends_with`?`Cadena inválida: debe terminar en "${t.suffix}"`:t.format===`includes`?`Cadena inválida: debe incluir "${t.includes}"`:t.format===`regex`?`Cadena inválida: debe coincidir con el patrón ${t.pattern}`:`Inválido ${n[t.format]??e.format}`}case`not_multiple_of`:return`Número inválido: debe ser múltiplo de ${e.divisor}`;case`unrecognized_keys`:return`Llave${e.keys.length>1?`s`:``} desconocida${e.keys.length>1?`s`:``}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Llave inválida en ${r[e.origin]??e.origin}`;case`invalid_union`:return`Entrada inválida`;case`invalid_element`:return`Valor inválido en ${r[e.origin]??e.origin}`;default:return`Entrada inválida`}}}}));function gZ(){return{localeError:_Z()}}var _Z,vZ=o((()=>{bK(),_Z=()=>{let e={string:{unit:`کاراکتر`,verb:`داشته باشد`},file:{unit:`بایت`,verb:`داشته باشد`},array:{unit:`آیتم`,verb:`داشته باشد`},set:{unit:`آیتم`,verb:`داشته باشد`}};function t(t){return e[t]??null}let n={regex:`ورودی`,email:`آدرس ایمیل`,url:`URL`,emoji:`ایموجی`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`تاریخ و زمان ایزو`,date:`تاریخ ایزو`,time:`زمان ایزو`,duration:`مدت زمان ایزو`,ipv4:`IPv4 آدرس`,ipv6:`IPv6 آدرس`,cidrv4:`IPv4 دامنه`,cidrv6:`IPv6 دامنه`,base64:`base64-encoded رشته`,base64url:`base64url-encoded رشته`,json_string:`JSON رشته`,e164:`E.164 عدد`,jwt:`JWT`,template_literal:`ورودی`},r={nan:`NaN`,number:`عدد`,array:`آرایه`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=nK(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`ورودی نامعتبر: می‌بایست instanceof ${e.expected} می‌بود، ${i} دریافت شد`:`ورودی نامعتبر: می‌بایست ${t} می‌بود، ${i} دریافت شد`}case`invalid_value`:return e.values.length===1?`ورودی نامعتبر: می‌بایست ${BG(e.values[0])} می‌بود`:`گزینه نامعتبر: می‌بایست یکی از ${J(e.values,`|`)} می‌بود`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`خیلی بزرگ: ${e.origin??`مقدار`} باید ${n}${e.maximum.toString()} ${r.unit??`عنصر`} باشد`:`خیلی بزرگ: ${e.origin??`مقدار`} باید ${n}${e.maximum.toString()} باشد`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`خیلی کوچک: ${e.origin} باید ${n}${e.minimum.toString()} ${r.unit} باشد`:`خیلی کوچک: ${e.origin} باید ${n}${e.minimum.toString()} باشد`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`رشته نامعتبر: باید با "${t.prefix}" شروع شود`:t.format===`ends_with`?`رشته نامعتبر: باید با "${t.suffix}" تمام شود`:t.format===`includes`?`رشته نامعتبر: باید شامل "${t.includes}" باشد`:t.format===`regex`?`رشته نامعتبر: باید با الگوی ${t.pattern} مطابقت داشته باشد`:`${n[t.format]??e.format} نامعتبر`}case`not_multiple_of`:return`عدد نامعتبر: باید مضرب ${e.divisor} باشد`;case`unrecognized_keys`:return`کلید${e.keys.length>1?`های`:``} ناشناس: ${J(e.keys,`, `)}`;case`invalid_key`:return`کلید ناشناس در ${e.origin}`;case`invalid_union`:return`ورودی نامعتبر`;case`invalid_element`:return`مقدار نامعتبر در ${e.origin}`;default:return`ورودی نامعتبر`}}}}));function yZ(){return{localeError:bZ()}}var bZ,xZ=o((()=>{bK(),bZ=()=>{let e={string:{unit:`merkkiä`,subject:`merkkijonon`},file:{unit:`tavua`,subject:`tiedoston`},array:{unit:`alkiota`,subject:`listan`},set:{unit:`alkiota`,subject:`joukon`},number:{unit:``,subject:`luvun`},bigint:{unit:``,subject:`suuren kokonaisluvun`},int:{unit:``,subject:`kokonaisluvun`},date:{unit:``,subject:`päivämäärän`}};function t(t){return e[t]??null}let n={regex:`säännöllinen lauseke`,email:`sähköpostiosoite`,url:`URL-osoite`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO-aikaleima`,date:`ISO-päivämäärä`,time:`ISO-aika`,duration:`ISO-kesto`,ipv4:`IPv4-osoite`,ipv6:`IPv6-osoite`,cidrv4:`IPv4-alue`,cidrv6:`IPv6-alue`,base64:`base64-koodattu merkkijono`,base64url:`base64url-koodattu merkkijono`,json_string:`JSON-merkkijono`,e164:`E.164-luku`,jwt:`JWT`,template_literal:`templaattimerkkijono`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=nK(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Virheellinen tyyppi: odotettiin instanceof ${e.expected}, oli ${i}`:`Virheellinen tyyppi: odotettiin ${t}, oli ${i}`}case`invalid_value`:return e.values.length===1?`Virheellinen syöte: täytyy olla ${BG(e.values[0])}`:`Virheellinen valinta: täytyy olla yksi seuraavista: ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Liian suuri: ${r.subject} täytyy olla ${n}${e.maximum.toString()} ${r.unit}`.trim():`Liian suuri: arvon täytyy olla ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Liian pieni: ${r.subject} täytyy olla ${n}${e.minimum.toString()} ${r.unit}`.trim():`Liian pieni: arvon täytyy olla ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Virheellinen syöte: täytyy alkaa "${t.prefix}"`:t.format===`ends_with`?`Virheellinen syöte: täytyy loppua "${t.suffix}"`:t.format===`includes`?`Virheellinen syöte: täytyy sisältää "${t.includes}"`:t.format===`regex`?`Virheellinen syöte: täytyy vastata säännöllistä lauseketta ${t.pattern}`:`Virheellinen ${n[t.format]??e.format}`}case`not_multiple_of`:return`Virheellinen luku: täytyy olla luvun ${e.divisor} monikerta`;case`unrecognized_keys`:return`${e.keys.length>1?`Tuntemattomat avaimet`:`Tuntematon avain`}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Virheellinen avain tietueessa`;case`invalid_union`:return`Virheellinen unioni`;case`invalid_element`:return`Virheellinen arvo joukossa`;default:return`Virheellinen syöte`}}}}));function SZ(){return{localeError:CZ()}}var CZ,wZ=o((()=>{bK(),CZ=()=>{let e={string:{unit:`caractères`,verb:`avoir`},file:{unit:`octets`,verb:`avoir`},array:{unit:`éléments`,verb:`avoir`},set:{unit:`éléments`,verb:`avoir`}};function t(t){return e[t]??null}let n={regex:`entrée`,email:`adresse e-mail`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`date et heure ISO`,date:`date ISO`,time:`heure ISO`,duration:`durée ISO`,ipv4:`adresse IPv4`,ipv6:`adresse IPv6`,cidrv4:`plage IPv4`,cidrv6:`plage IPv6`,base64:`chaîne encodée en base64`,base64url:`chaîne encodée en base64url`,json_string:`chaîne JSON`,e164:`numéro E.164`,jwt:`JWT`,template_literal:`entrée`},r={string:`chaîne`,number:`nombre`,int:`entier`,boolean:`booléen`,bigint:`grand entier`,symbol:`symbole`,undefined:`indéfini`,null:`null`,never:`jamais`,void:`vide`,date:`date`,array:`tableau`,object:`objet`,tuple:`tuple`,record:`enregistrement`,map:`carte`,set:`ensemble`,file:`fichier`,nonoptional:`non-optionnel`,nan:`NaN`,function:`fonction`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=nK(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Entrée invalide : instanceof ${e.expected} attendu, ${i} reçu`:`Entrée invalide : ${t} attendu, ${i} reçu`}case`invalid_value`:return e.values.length===1?`Entrée invalide : ${BG(e.values[0])} attendu`:`Option invalide : une valeur parmi ${J(e.values,`|`)} attendue`;case`too_big`:{let n=e.inclusive?`<=`:`<`,i=t(e.origin);return i?`Trop grand : ${r[e.origin]??`valeur`} doit ${i.verb} ${n}${e.maximum.toString()} ${i.unit??`élément(s)`}`:`Trop grand : ${r[e.origin]??`valeur`} doit être ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,i=t(e.origin);return i?`Trop petit : ${r[e.origin]??`valeur`} doit ${i.verb} ${n}${e.minimum.toString()} ${i.unit}`:`Trop petit : ${r[e.origin]??`valeur`} doit être ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Chaîne invalide : doit commencer par "${t.prefix}"`:t.format===`ends_with`?`Chaîne invalide : doit se terminer par "${t.suffix}"`:t.format===`includes`?`Chaîne invalide : doit inclure "${t.includes}"`:t.format===`regex`?`Chaîne invalide : doit correspondre au modèle ${t.pattern}`:`${n[t.format]??e.format} invalide`}case`not_multiple_of`:return`Nombre invalide : doit être un multiple de ${e.divisor}`;case`unrecognized_keys`:return`Clé${e.keys.length>1?`s`:``} non reconnue${e.keys.length>1?`s`:``} : ${J(e.keys,`, `)}`;case`invalid_key`:return`Clé invalide dans ${e.origin}`;case`invalid_union`:return`Entrée invalide`;case`invalid_element`:return`Valeur invalide dans ${e.origin}`;default:return`Entrée invalide`}}}}));function TZ(){return{localeError:EZ()}}var EZ,DZ=o((()=>{bK(),EZ=()=>{let e={string:{unit:`caractères`,verb:`avoir`},file:{unit:`octets`,verb:`avoir`},array:{unit:`éléments`,verb:`avoir`},set:{unit:`éléments`,verb:`avoir`}};function t(t){return e[t]??null}let n={regex:`entrée`,email:`adresse courriel`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`date-heure ISO`,date:`date ISO`,time:`heure ISO`,duration:`durée ISO`,ipv4:`adresse IPv4`,ipv6:`adresse IPv6`,cidrv4:`plage IPv4`,cidrv6:`plage IPv6`,base64:`chaîne encodée en base64`,base64url:`chaîne encodée en base64url`,json_string:`chaîne JSON`,e164:`numéro E.164`,jwt:`JWT`,template_literal:`entrée`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=nK(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Entrée invalide : attendu instanceof ${e.expected}, reçu ${i}`:`Entrée invalide : attendu ${t}, reçu ${i}`}case`invalid_value`:return e.values.length===1?`Entrée invalide : attendu ${BG(e.values[0])}`:`Option invalide : attendu l'une des valeurs suivantes ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`≤`:`<`,r=t(e.origin);return r?`Trop grand : attendu que ${e.origin??`la valeur`} ait ${n}${e.maximum.toString()} ${r.unit}`:`Trop grand : attendu que ${e.origin??`la valeur`} soit ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`≥`:`>`,r=t(e.origin);return r?`Trop petit : attendu que ${e.origin} ait ${n}${e.minimum.toString()} ${r.unit}`:`Trop petit : attendu que ${e.origin} soit ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Chaîne invalide : doit commencer par "${t.prefix}"`:t.format===`ends_with`?`Chaîne invalide : doit se terminer par "${t.suffix}"`:t.format===`includes`?`Chaîne invalide : doit inclure "${t.includes}"`:t.format===`regex`?`Chaîne invalide : doit correspondre au motif ${t.pattern}`:`${n[t.format]??e.format} invalide`}case`not_multiple_of`:return`Nombre invalide : doit être un multiple de ${e.divisor}`;case`unrecognized_keys`:return`Clé${e.keys.length>1?`s`:``} non reconnue${e.keys.length>1?`s`:``} : ${J(e.keys,`, `)}`;case`invalid_key`:return`Clé invalide dans ${e.origin}`;case`invalid_union`:return`Entrée invalide`;case`invalid_element`:return`Valeur invalide dans ${e.origin}`;default:return`Entrée invalide`}}}}));function OZ(){return{localeError:kZ()}}var kZ,AZ=o((()=>{bK(),kZ=()=>{let e={string:{label:`מחרוזת`,gender:`f`},number:{label:`מספר`,gender:`m`},boolean:{label:`ערך בוליאני`,gender:`m`},bigint:{label:`BigInt`,gender:`m`},date:{label:`תאריך`,gender:`m`},array:{label:`מערך`,gender:`m`},object:{label:`אובייקט`,gender:`m`},null:{label:`ערך ריק (null)`,gender:`m`},undefined:{label:`ערך לא מוגדר (undefined)`,gender:`m`},symbol:{label:`סימבול (Symbol)`,gender:`m`},function:{label:`פונקציה`,gender:`f`},map:{label:`מפה (Map)`,gender:`f`},set:{label:`קבוצה (Set)`,gender:`f`},file:{label:`קובץ`,gender:`m`},promise:{label:`Promise`,gender:`m`},NaN:{label:`NaN`,gender:`m`},unknown:{label:`ערך לא ידוע`,gender:`m`},value:{label:`ערך`,gender:`m`}},t={string:{unit:`תווים`,shortLabel:`קצר`,longLabel:`ארוך`},file:{unit:`בייטים`,shortLabel:`קטן`,longLabel:`גדול`},array:{unit:`פריטים`,shortLabel:`קטן`,longLabel:`גדול`},set:{unit:`פריטים`,shortLabel:`קטן`,longLabel:`גדול`},number:{unit:``,shortLabel:`קטן`,longLabel:`גדול`}},n=t=>t?e[t]:void 0,r=t=>{let r=n(t);return r?r.label:t??e.unknown.label},i=e=>`ה${r(e)}`,a=e=>(n(e)?.gender??`m`)===`f`?`צריכה להיות`:`צריך להיות`,o=e=>e?t[e]??null:null,s={regex:{label:`קלט`,gender:`m`},email:{label:`כתובת אימייל`,gender:`f`},url:{label:`כתובת רשת`,gender:`f`},emoji:{label:`אימוג'י`,gender:`m`},uuid:{label:`UUID`,gender:`m`},nanoid:{label:`nanoid`,gender:`m`},guid:{label:`GUID`,gender:`m`},cuid:{label:`cuid`,gender:`m`},cuid2:{label:`cuid2`,gender:`m`},ulid:{label:`ULID`,gender:`m`},xid:{label:`XID`,gender:`m`},ksuid:{label:`KSUID`,gender:`m`},datetime:{label:`תאריך וזמן ISO`,gender:`m`},date:{label:`תאריך ISO`,gender:`m`},time:{label:`זמן ISO`,gender:`m`},duration:{label:`משך זמן ISO`,gender:`m`},ipv4:{label:`כתובת IPv4`,gender:`f`},ipv6:{label:`כתובת IPv6`,gender:`f`},cidrv4:{label:`טווח IPv4`,gender:`m`},cidrv6:{label:`טווח IPv6`,gender:`m`},base64:{label:`מחרוזת בבסיס 64`,gender:`f`},base64url:{label:`מחרוזת בבסיס 64 לכתובות רשת`,gender:`f`},json_string:{label:`מחרוזת JSON`,gender:`f`},e164:{label:`מספר E.164`,gender:`m`},jwt:{label:`JWT`,gender:`m`},ends_with:{label:`קלט`,gender:`m`},includes:{label:`קלט`,gender:`m`},lowercase:{label:`קלט`,gender:`m`},starts_with:{label:`קלט`,gender:`m`},uppercase:{label:`קלט`,gender:`m`}},c={nan:`NaN`};return t=>{switch(t.code){case`invalid_type`:{let n=t.expected,i=c[n??``]??r(n),a=nK(t.input),o=c[a]??e[a]?.label??a;return/^[A-Z]/.test(t.expected)?`קלט לא תקין: צריך להיות instanceof ${t.expected}, התקבל ${o}`:`קלט לא תקין: צריך להיות ${i}, התקבל ${o}`}case`invalid_value`:{if(t.values.length===1)return`ערך לא תקין: הערך חייב להיות ${BG(t.values[0])}`;let e=t.values.map(e=>BG(e));if(t.values.length===2)return`ערך לא תקין: האפשרויות המתאימות הן ${e[0]} או ${e[1]}`;let n=e[e.length-1];return`ערך לא תקין: האפשרויות המתאימות הן ${e.slice(0,-1).join(`, `)} או ${n}`}case`too_big`:{let e=o(t.origin),n=i(t.origin??`value`);if(t.origin===`string`)return`${e?.longLabel??`ארוך`} מדי: ${n} צריכה להכיל ${t.maximum.toString()} ${e?.unit??``} ${t.inclusive?`או פחות`:`לכל היותר`}`.trim();if(t.origin===`number`)return`גדול מדי: ${n} צריך להיות ${t.inclusive?`קטן או שווה ל-${t.maximum}`:`קטן מ-${t.maximum}`}`;if(t.origin===`array`||t.origin===`set`)return`גדול מדי: ${n} ${t.origin===`set`?`צריכה`:`צריך`} להכיל ${t.inclusive?`${t.maximum} ${e?.unit??``} או פחות`:`פחות מ-${t.maximum} ${e?.unit??``}`}`.trim();let r=t.inclusive?`<=`:`<`,s=a(t.origin??`value`);return e?.unit?`${e.longLabel} מדי: ${n} ${s} ${r}${t.maximum.toString()} ${e.unit}`:`${e?.longLabel??`גדול`} מדי: ${n} ${s} ${r}${t.maximum.toString()}`}case`too_small`:{let e=o(t.origin),n=i(t.origin??`value`);if(t.origin===`string`)return`${e?.shortLabel??`קצר`} מדי: ${n} צריכה להכיל ${t.minimum.toString()} ${e?.unit??``} ${t.inclusive?`או יותר`:`לפחות`}`.trim();if(t.origin===`number`)return`קטן מדי: ${n} צריך להיות ${t.inclusive?`גדול או שווה ל-${t.minimum}`:`גדול מ-${t.minimum}`}`;if(t.origin===`array`||t.origin===`set`){let r=t.origin===`set`?`צריכה`:`צריך`;return t.minimum===1&&t.inclusive?`קטן מדי: ${n} ${r} להכיל ${t.origin,`לפחות פריט אחד`}`:`קטן מדי: ${n} ${r} להכיל ${t.inclusive?`${t.minimum} ${e?.unit??``} או יותר`:`יותר מ-${t.minimum} ${e?.unit??``}`}`.trim()}let r=t.inclusive?`>=`:`>`,s=a(t.origin??`value`);return e?.unit?`${e.shortLabel} מדי: ${n} ${s} ${r}${t.minimum.toString()} ${e.unit}`:`${e?.shortLabel??`קטן`} מדי: ${n} ${s} ${r}${t.minimum.toString()}`}case`invalid_format`:{let e=t;if(e.format===`starts_with`)return`המחרוזת חייבת להתחיל ב "${e.prefix}"`;if(e.format===`ends_with`)return`המחרוזת חייבת להסתיים ב "${e.suffix}"`;if(e.format===`includes`)return`המחרוזת חייבת לכלול "${e.includes}"`;if(e.format===`regex`)return`המחרוזת חייבת להתאים לתבנית ${e.pattern}`;let n=s[e.format];return`${n?.label??e.format} לא ${(n?.gender??`m`)===`f`?`תקינה`:`תקין`}`}case`not_multiple_of`:return`מספר לא תקין: חייב להיות מכפלה של ${t.divisor}`;case`unrecognized_keys`:return`מפתח${t.keys.length>1?`ות`:``} לא מזוה${t.keys.length>1?`ים`:`ה`}: ${J(t.keys,`, `)}`;case`invalid_key`:return`שדה לא תקין באובייקט`;case`invalid_union`:return`קלט לא תקין`;case`invalid_element`:return`ערך לא תקין ב${i(t.origin??`array`)}`;default:return`קלט לא תקין`}}}}));function jZ(){return{localeError:MZ()}}var MZ,NZ=o((()=>{bK(),MZ=()=>{let e={string:{unit:`znakova`,verb:`imati`},file:{unit:`bajtova`,verb:`imati`},array:{unit:`stavki`,verb:`imati`},set:{unit:`stavki`,verb:`imati`}};function t(t){return e[t]??null}let n={regex:`unos`,email:`email adresa`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO datum i vrijeme`,date:`ISO datum`,time:`ISO vrijeme`,duration:`ISO trajanje`,ipv4:`IPv4 adresa`,ipv6:`IPv6 adresa`,cidrv4:`IPv4 raspon`,cidrv6:`IPv6 raspon`,base64:`base64 kodirani tekst`,base64url:`base64url kodirani tekst`,json_string:`JSON tekst`,e164:`E.164 broj`,jwt:`JWT`,template_literal:`unos`},r={nan:`NaN`,string:`tekst`,number:`broj`,boolean:`boolean`,array:`niz`,object:`objekt`,set:`skup`,file:`datoteka`,date:`datum`,bigint:`bigint`,symbol:`simbol`,undefined:`undefined`,null:`null`,function:`funkcija`,map:`mapa`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=nK(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Neispravan unos: očekuje se instanceof ${e.expected}, a primljeno je ${i}`:`Neispravan unos: očekuje se ${t}, a primljeno je ${i}`}case`invalid_value`:return e.values.length===1?`Neispravna vrijednost: očekivano ${BG(e.values[0])}`:`Neispravna opcija: očekivano jedno od ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,i=t(e.origin),a=r[e.origin]??e.origin;return i?`Preveliko: očekivano da ${a??`vrijednost`} ima ${n}${e.maximum.toString()} ${i.unit??`elemenata`}`:`Preveliko: očekivano da ${a??`vrijednost`} bude ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,i=t(e.origin),a=r[e.origin]??e.origin;return i?`Premalo: očekivano da ${a} ima ${n}${e.minimum.toString()} ${i.unit}`:`Premalo: očekivano da ${a} bude ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Neispravan tekst: mora započinjati s "${t.prefix}"`:t.format===`ends_with`?`Neispravan tekst: mora završavati s "${t.suffix}"`:t.format===`includes`?`Neispravan tekst: mora sadržavati "${t.includes}"`:t.format===`regex`?`Neispravan tekst: mora odgovarati uzorku ${t.pattern}`:`Neispravna ${n[t.format]??e.format}`}case`not_multiple_of`:return`Neispravan broj: mora biti višekratnik od ${e.divisor}`;case`unrecognized_keys`:return`Neprepoznat${e.keys.length>1?`i ključevi`:` ključ`}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Neispravan ključ u ${r[e.origin]??e.origin}`;case`invalid_union`:return`Neispravan unos`;case`invalid_element`:return`Neispravna vrijednost u ${r[e.origin]??e.origin}`;default:return`Neispravan unos`}}}}));function PZ(){return{localeError:FZ()}}var FZ,IZ=o((()=>{bK(),FZ=()=>{let e={string:{unit:`karakter`,verb:`legyen`},file:{unit:`byte`,verb:`legyen`},array:{unit:`elem`,verb:`legyen`},set:{unit:`elem`,verb:`legyen`}};function t(t){return e[t]??null}let n={regex:`bemenet`,email:`email cím`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO időbélyeg`,date:`ISO dátum`,time:`ISO idő`,duration:`ISO időintervallum`,ipv4:`IPv4 cím`,ipv6:`IPv6 cím`,cidrv4:`IPv4 tartomány`,cidrv6:`IPv6 tartomány`,base64:`base64-kódolt string`,base64url:`base64url-kódolt string`,json_string:`JSON string`,e164:`E.164 szám`,jwt:`JWT`,template_literal:`bemenet`},r={nan:`NaN`,number:`szám`,array:`tömb`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=nK(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Érvénytelen bemenet: a várt érték instanceof ${e.expected}, a kapott érték ${i}`:`Érvénytelen bemenet: a várt érték ${t}, a kapott érték ${i}`}case`invalid_value`:return e.values.length===1?`Érvénytelen bemenet: a várt érték ${BG(e.values[0])}`:`Érvénytelen opció: valamelyik érték várt ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Túl nagy: ${e.origin??`érték`} mérete túl nagy ${n}${e.maximum.toString()} ${r.unit??`elem`}`:`Túl nagy: a bemeneti érték ${e.origin??`érték`} túl nagy: ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Túl kicsi: a bemeneti érték ${e.origin} mérete túl kicsi ${n}${e.minimum.toString()} ${r.unit}`:`Túl kicsi: a bemeneti érték ${e.origin} túl kicsi ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Érvénytelen string: "${t.prefix}" értékkel kell kezdődnie`:t.format===`ends_with`?`Érvénytelen string: "${t.suffix}" értékkel kell végződnie`:t.format===`includes`?`Érvénytelen string: "${t.includes}" értéket kell tartalmaznia`:t.format===`regex`?`Érvénytelen string: ${t.pattern} mintának kell megfelelnie`:`Érvénytelen ${n[t.format]??e.format}`}case`not_multiple_of`:return`Érvénytelen szám: ${e.divisor} többszörösének kell lennie`;case`unrecognized_keys`:return`Ismeretlen kulcs${e.keys.length>1?`s`:``}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Érvénytelen kulcs ${e.origin}`;case`invalid_union`:return`Érvénytelen bemenet`;case`invalid_element`:return`Érvénytelen érték: ${e.origin}`;default:return`Érvénytelen bemenet`}}}}));function LZ(e,t,n){return Math.abs(e)===1?t:n}function RZ(e){if(!e)return``;let t=[`ա`,`ե`,`ը`,`ի`,`ո`,`ու`,`օ`],n=e[e.length-1];return e+(t.includes(n)?`ն`:`ը`)}function zZ(){return{localeError:BZ()}}var BZ,VZ=o((()=>{bK(),BZ=()=>{let e={string:{unit:{one:`նշան`,many:`նշաններ`},verb:`ունենալ`},file:{unit:{one:`բայթ`,many:`բայթեր`},verb:`ունենալ`},array:{unit:{one:`տարր`,many:`տարրեր`},verb:`ունենալ`},set:{unit:{one:`տարր`,many:`տարրեր`},verb:`ունենալ`}};function t(t){return e[t]??null}let n={regex:`մուտք`,email:`էլ. հասցե`,url:`URL`,emoji:`էմոջի`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO ամսաթիվ և ժամ`,date:`ISO ամսաթիվ`,time:`ISO ժամ`,duration:`ISO տևողություն`,ipv4:`IPv4 հասցե`,ipv6:`IPv6 հասցե`,cidrv4:`IPv4 միջակայք`,cidrv6:`IPv6 միջակայք`,base64:`base64 ձևաչափով տող`,base64url:`base64url ձևաչափով տող`,json_string:`JSON տող`,e164:`E.164 համար`,jwt:`JWT`,template_literal:`մուտք`},r={nan:`NaN`,number:`թիվ`,array:`զանգված`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=nK(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Սխալ մուտքագրում․ սպասվում էր instanceof ${e.expected}, ստացվել է ${i}`:`Սխալ մուտքագրում․ սպասվում էր ${t}, ստացվել է ${i}`}case`invalid_value`:return e.values.length===1?`Սխալ մուտքագրում․ սպասվում էր ${BG(e.values[1])}`:`Սխալ տարբերակ․ սպասվում էր հետևյալներից մեկը՝ ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);if(r){let t=LZ(Number(e.maximum),r.unit.one,r.unit.many);return`Չափազանց մեծ արժեք․ սպասվում է, որ ${RZ(e.origin??`արժեք`)} կունենա ${n}${e.maximum.toString()} ${t}`}return`Չափազանց մեծ արժեք․ սպասվում է, որ ${RZ(e.origin??`արժեք`)} լինի ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);if(r){let t=LZ(Number(e.minimum),r.unit.one,r.unit.many);return`Չափազանց փոքր արժեք․ սպասվում է, որ ${RZ(e.origin)} կունենա ${n}${e.minimum.toString()} ${t}`}return`Չափազանց փոքր արժեք․ սպասվում է, որ ${RZ(e.origin)} լինի ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Սխալ տող․ պետք է սկսվի "${t.prefix}"-ով`:t.format===`ends_with`?`Սխալ տող․ պետք է ավարտվի "${t.suffix}"-ով`:t.format===`includes`?`Սխալ տող․ պետք է պարունակի "${t.includes}"`:t.format===`regex`?`Սխալ տող․ պետք է համապատասխանի ${t.pattern} ձևաչափին`:`Սխալ ${n[t.format]??e.format}`}case`not_multiple_of`:return`Սխալ թիվ․ պետք է բազմապատիկ լինի ${e.divisor}-ի`;case`unrecognized_keys`:return`Չճանաչված բանալի${e.keys.length>1?`ներ`:``}. ${J(e.keys,`, `)}`;case`invalid_key`:return`Սխալ բանալի ${RZ(e.origin)}-ում`;case`invalid_union`:return`Սխալ մուտքագրում`;case`invalid_element`:return`Սխալ արժեք ${RZ(e.origin)}-ում`;default:return`Սխալ մուտքագրում`}}}}));function HZ(){return{localeError:UZ()}}var UZ,WZ=o((()=>{bK(),UZ=()=>{let e={string:{unit:`karakter`,verb:`memiliki`},file:{unit:`byte`,verb:`memiliki`},array:{unit:`item`,verb:`memiliki`},set:{unit:`item`,verb:`memiliki`}};function t(t){return e[t]??null}let n={regex:`input`,email:`alamat email`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`tanggal dan waktu format ISO`,date:`tanggal format ISO`,time:`jam format ISO`,duration:`durasi format ISO`,ipv4:`alamat IPv4`,ipv6:`alamat IPv6`,cidrv4:`rentang alamat IPv4`,cidrv6:`rentang alamat IPv6`,base64:`string dengan enkode base64`,base64url:`string dengan enkode base64url`,json_string:`string JSON`,e164:`angka E.164`,jwt:`JWT`,template_literal:`input`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=nK(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Input tidak valid: diharapkan instanceof ${e.expected}, diterima ${i}`:`Input tidak valid: diharapkan ${t}, diterima ${i}`}case`invalid_value`:return e.values.length===1?`Input tidak valid: diharapkan ${BG(e.values[0])}`:`Pilihan tidak valid: diharapkan salah satu dari ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Terlalu besar: diharapkan ${e.origin??`value`} memiliki ${n}${e.maximum.toString()} ${r.unit??`elemen`}`:`Terlalu besar: diharapkan ${e.origin??`value`} menjadi ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Terlalu kecil: diharapkan ${e.origin} memiliki ${n}${e.minimum.toString()} ${r.unit}`:`Terlalu kecil: diharapkan ${e.origin} menjadi ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`String tidak valid: harus dimulai dengan "${t.prefix}"`:t.format===`ends_with`?`String tidak valid: harus berakhir dengan "${t.suffix}"`:t.format===`includes`?`String tidak valid: harus menyertakan "${t.includes}"`:t.format===`regex`?`String tidak valid: harus sesuai pola ${t.pattern}`:`${n[t.format]??e.format} tidak valid`}case`not_multiple_of`:return`Angka tidak valid: harus kelipatan dari ${e.divisor}`;case`unrecognized_keys`:return`Kunci tidak dikenali ${e.keys.length>1?`s`:``}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Kunci tidak valid di ${e.origin}`;case`invalid_union`:return`Input tidak valid`;case`invalid_element`:return`Nilai tidak valid di ${e.origin}`;default:return`Input tidak valid`}}}}));function GZ(){return{localeError:KZ()}}var KZ,qZ=o((()=>{bK(),KZ=()=>{let e={string:{unit:`stafi`,verb:`að hafa`},file:{unit:`bæti`,verb:`að hafa`},array:{unit:`hluti`,verb:`að hafa`},set:{unit:`hluti`,verb:`að hafa`}};function t(t){return e[t]??null}let n={regex:`gildi`,email:`netfang`,url:`vefslóð`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO dagsetning og tími`,date:`ISO dagsetning`,time:`ISO tími`,duration:`ISO tímalengd`,ipv4:`IPv4 address`,ipv6:`IPv6 address`,cidrv4:`IPv4 range`,cidrv6:`IPv6 range`,base64:`base64-encoded strengur`,base64url:`base64url-encoded strengur`,json_string:`JSON strengur`,e164:`E.164 tölugildi`,jwt:`JWT`,template_literal:`gildi`},r={nan:`NaN`,number:`númer`,array:`fylki`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=nK(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Rangt gildi: Þú slóst inn ${i} þar sem á að vera instanceof ${e.expected}`:`Rangt gildi: Þú slóst inn ${i} þar sem á að vera ${t}`}case`invalid_value`:return e.values.length===1?`Rangt gildi: gert ráð fyrir ${BG(e.values[0])}`:`Ógilt val: má vera eitt af eftirfarandi ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Of stórt: gert er ráð fyrir að ${e.origin??`gildi`} hafi ${n}${e.maximum.toString()} ${r.unit??`hluti`}`:`Of stórt: gert er ráð fyrir að ${e.origin??`gildi`} sé ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Of lítið: gert er ráð fyrir að ${e.origin} hafi ${n}${e.minimum.toString()} ${r.unit}`:`Of lítið: gert er ráð fyrir að ${e.origin} sé ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Ógildur strengur: verður að byrja á "${t.prefix}"`:t.format===`ends_with`?`Ógildur strengur: verður að enda á "${t.suffix}"`:t.format===`includes`?`Ógildur strengur: verður að innihalda "${t.includes}"`:t.format===`regex`?`Ógildur strengur: verður að fylgja mynstri ${t.pattern}`:`Rangt ${n[t.format]??e.format}`}case`not_multiple_of`:return`Röng tala: verður að vera margfeldi af ${e.divisor}`;case`unrecognized_keys`:return`Óþekkt ${e.keys.length>1?`ir lyklar`:`ur lykill`}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Rangur lykill í ${e.origin}`;case`invalid_union`:return`Rangt gildi`;case`invalid_element`:return`Rangt gildi í ${e.origin}`;default:return`Rangt gildi`}}}}));function JZ(){return{localeError:YZ()}}var YZ,XZ=o((()=>{bK(),YZ=()=>{let e={string:{unit:`caratteri`,verb:`avere`},file:{unit:`byte`,verb:`avere`},array:{unit:`elementi`,verb:`avere`},set:{unit:`elementi`,verb:`avere`}};function t(t){return e[t]??null}let n={regex:`input`,email:`indirizzo email`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`data e ora ISO`,date:`data ISO`,time:`ora ISO`,duration:`durata ISO`,ipv4:`indirizzo IPv4`,ipv6:`indirizzo IPv6`,cidrv4:`intervallo IPv4`,cidrv6:`intervallo IPv6`,base64:`stringa codificata in base64`,base64url:`URL codificata in base64`,json_string:`stringa JSON`,e164:`numero E.164`,jwt:`JWT`,template_literal:`input`},r={nan:`NaN`,number:`numero`,array:`vettore`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=nK(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Input non valido: atteso instanceof ${e.expected}, ricevuto ${i}`:`Input non valido: atteso ${t}, ricevuto ${i}`}case`invalid_value`:return e.values.length===1?`Input non valido: atteso ${BG(e.values[0])}`:`Opzione non valida: atteso uno tra ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Troppo grande: ${e.origin??`valore`} deve avere ${n}${e.maximum.toString()} ${r.unit??`elementi`}`:`Troppo grande: ${e.origin??`valore`} deve essere ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Troppo piccolo: ${e.origin} deve avere ${n}${e.minimum.toString()} ${r.unit}`:`Troppo piccolo: ${e.origin} deve essere ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Stringa non valida: deve iniziare con "${t.prefix}"`:t.format===`ends_with`?`Stringa non valida: deve terminare con "${t.suffix}"`:t.format===`includes`?`Stringa non valida: deve includere "${t.includes}"`:t.format===`regex`?`Stringa non valida: deve corrispondere al pattern ${t.pattern}`:`Input non valido: ${n[t.format]??e.format}`}case`not_multiple_of`:return`Numero non valido: deve essere un multiplo di ${e.divisor}`;case`unrecognized_keys`:return`Chiav${e.keys.length>1?`i`:`e`} non riconosciut${e.keys.length>1?`e`:`a`}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Chiave non valida in ${e.origin}`;case`invalid_union`:return`Input non valido`;case`invalid_element`:return`Valore non valido in ${e.origin}`;default:return`Input non valido`}}}}));function ZZ(){return{localeError:QZ()}}var QZ,$Z=o((()=>{bK(),QZ=()=>{let e={string:{unit:`文字`,verb:`である`},file:{unit:`バイト`,verb:`である`},array:{unit:`要素`,verb:`である`},set:{unit:`要素`,verb:`である`}};function t(t){return e[t]??null}let n={regex:`入力値`,email:`メールアドレス`,url:`URL`,emoji:`絵文字`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO日時`,date:`ISO日付`,time:`ISO時刻`,duration:`ISO期間`,ipv4:`IPv4アドレス`,ipv6:`IPv6アドレス`,cidrv4:`IPv4範囲`,cidrv6:`IPv6範囲`,base64:`base64エンコード文字列`,base64url:`base64urlエンコード文字列`,json_string:`JSON文字列`,e164:`E.164番号`,jwt:`JWT`,template_literal:`入力値`},r={nan:`NaN`,number:`数値`,array:`配列`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=nK(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`無効な入力: instanceof ${e.expected}が期待されましたが、${i}が入力されました`:`無効な入力: ${t}が期待されましたが、${i}が入力されました`}case`invalid_value`:return e.values.length===1?`無効な入力: ${BG(e.values[0])}が期待されました`:`無効な選択: ${J(e.values,`、`)}のいずれかである必要があります`;case`too_big`:{let n=e.inclusive?`以下である`:`より小さい`,r=t(e.origin);return r?`大きすぎる値: ${e.origin??`値`}は${e.maximum.toString()}${r.unit??`要素`}${n}必要があります`:`大きすぎる値: ${e.origin??`値`}は${e.maximum.toString()}${n}必要があります`}case`too_small`:{let n=e.inclusive?`以上である`:`より大きい`,r=t(e.origin);return r?`小さすぎる値: ${e.origin}は${e.minimum.toString()}${r.unit}${n}必要があります`:`小さすぎる値: ${e.origin}は${e.minimum.toString()}${n}必要があります`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`無効な文字列: "${t.prefix}"で始まる必要があります`:t.format===`ends_with`?`無効な文字列: "${t.suffix}"で終わる必要があります`:t.format===`includes`?`無効な文字列: "${t.includes}"を含む必要があります`:t.format===`regex`?`無効な文字列: パターン${t.pattern}に一致する必要があります`:`無効な${n[t.format]??e.format}`}case`not_multiple_of`:return`無効な数値: ${e.divisor}の倍数である必要があります`;case`unrecognized_keys`:return`認識されていないキー${e.keys.length>1?`群`:``}: ${J(e.keys,`、`)}`;case`invalid_key`:return`${e.origin}内の無効なキー`;case`invalid_union`:return`無効な入力`;case`invalid_element`:return`${e.origin}内の無効な値`;default:return`無効な入力`}}}}));function eQ(){return{localeError:tQ()}}var tQ,nQ=o((()=>{bK(),tQ=()=>{let e={string:{unit:`სიმბოლო`,verb:`უნდა შეიცავდეს`},file:{unit:`ბაიტი`,verb:`უნდა შეიცავდეს`},array:{unit:`ელემენტი`,verb:`უნდა შეიცავდეს`},set:{unit:`ელემენტი`,verb:`უნდა შეიცავდეს`}};function t(t){return e[t]??null}let n={regex:`შეყვანა`,email:`ელ-ფოსტის მისამართი`,url:`URL`,emoji:`ემოჯი`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`თარიღი-დრო`,date:`თარიღი`,time:`დრო`,duration:`ხანგრძლივობა`,ipv4:`IPv4 მისამართი`,ipv6:`IPv6 მისამართი`,cidrv4:`IPv4 დიაპაზონი`,cidrv6:`IPv6 დიაპაზონი`,base64:`base64-კოდირებული ველი`,base64url:`base64url-კოდირებული ველი`,json_string:`JSON ველი`,e164:`E.164 ნომერი`,jwt:`JWT`,template_literal:`შეყვანა`},r={nan:`NaN`,number:`რიცხვი`,string:`ველი`,boolean:`ბულეანი`,function:`ფუნქცია`,array:`მასივი`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=nK(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`არასწორი შეყვანა: მოსალოდნელი instanceof ${e.expected}, მიღებული ${i}`:`არასწორი შეყვანა: მოსალოდნელი ${t}, მიღებული ${i}`}case`invalid_value`:return e.values.length===1?`არასწორი შეყვანა: მოსალოდნელი ${BG(e.values[0])}`:`არასწორი ვარიანტი: მოსალოდნელია ერთ-ერთი ${J(e.values,`|`)}-დან`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`ზედმეტად დიდი: მოსალოდნელი ${e.origin??`მნიშვნელობა`} ${r.verb} ${n}${e.maximum.toString()} ${r.unit}`:`ზედმეტად დიდი: მოსალოდნელი ${e.origin??`მნიშვნელობა`} იყოს ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`ზედმეტად პატარა: მოსალოდნელი ${e.origin} ${r.verb} ${n}${e.minimum.toString()} ${r.unit}`:`ზედმეტად პატარა: მოსალოდნელი ${e.origin} იყოს ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`არასწორი ველი: უნდა იწყებოდეს "${t.prefix}"-ით`:t.format===`ends_with`?`არასწორი ველი: უნდა მთავრდებოდეს "${t.suffix}"-ით`:t.format===`includes`?`არასწორი ველი: უნდა შეიცავდეს "${t.includes}"-ს`:t.format===`regex`?`არასწორი ველი: უნდა შეესაბამებოდეს შაბლონს ${t.pattern}`:`არასწორი ${n[t.format]??e.format}`}case`not_multiple_of`:return`არასწორი რიცხვი: უნდა იყოს ${e.divisor}-ის ჯერადი`;case`unrecognized_keys`:return`უცნობი გასაღებ${e.keys.length>1?`ები`:`ი`}: ${J(e.keys,`, `)}`;case`invalid_key`:return`არასწორი გასაღები ${e.origin}-ში`;case`invalid_union`:return`არასწორი შეყვანა`;case`invalid_element`:return`არასწორი მნიშვნელობა ${e.origin}-ში`;default:return`არასწორი შეყვანა`}}}}));function rQ(){return{localeError:iQ()}}var iQ,aQ=o((()=>{bK(),iQ=()=>{let e={string:{unit:`តួអក្សរ`,verb:`គួរមាន`},file:{unit:`បៃ`,verb:`គួរមាន`},array:{unit:`ធាតុ`,verb:`គួរមាន`},set:{unit:`ធាតុ`,verb:`គួរមាន`}};function t(t){return e[t]??null}let n={regex:`ទិន្នន័យបញ្ចូល`,email:`អាសយដ្ឋានអ៊ីមែល`,url:`URL`,emoji:`សញ្ញាអារម្មណ៍`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`កាលបរិច្ឆេទ និងម៉ោង ISO`,date:`កាលបរិច្ឆេទ ISO`,time:`ម៉ោង ISO`,duration:`រយៈពេល ISO`,ipv4:`អាសយដ្ឋាន IPv4`,ipv6:`អាសយដ្ឋាន IPv6`,cidrv4:`ដែនអាសយដ្ឋាន IPv4`,cidrv6:`ដែនអាសយដ្ឋាន IPv6`,base64:`ខ្សែអក្សរអ៊ិកូដ base64`,base64url:`ខ្សែអក្សរអ៊ិកូដ base64url`,json_string:`ខ្សែអក្សរ JSON`,e164:`លេខ E.164`,jwt:`JWT`,template_literal:`ទិន្នន័យបញ្ចូល`},r={nan:`NaN`,number:`លេខ`,array:`អារេ (Array)`,null:`គ្មានតម្លៃ (null)`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=nK(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ instanceof ${e.expected} ប៉ុន្តែទទួលបាន ${i}`:`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ ${t} ប៉ុន្តែទទួលបាន ${i}`}case`invalid_value`:return e.values.length===1?`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ ${BG(e.values[0])}`:`ជម្រើសមិនត្រឹមត្រូវ៖ ត្រូវជាមួយក្នុងចំណោម ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`ធំពេក៖ ត្រូវការ ${e.origin??`តម្លៃ`} ${n} ${e.maximum.toString()} ${r.unit??`ធាតុ`}`:`ធំពេក៖ ត្រូវការ ${e.origin??`តម្លៃ`} ${n} ${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`តូចពេក៖ ត្រូវការ ${e.origin} ${n} ${e.minimum.toString()} ${r.unit}`:`តូចពេក៖ ត្រូវការ ${e.origin} ${n} ${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវចាប់ផ្តើមដោយ "${t.prefix}"`:t.format===`ends_with`?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវបញ្ចប់ដោយ "${t.suffix}"`:t.format===`includes`?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវមាន "${t.includes}"`:t.format===`regex`?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវតែផ្គូផ្គងនឹងទម្រង់ដែលបានកំណត់ ${t.pattern}`:`មិនត្រឹមត្រូវ៖ ${n[t.format]??e.format}`}case`not_multiple_of`:return`លេខមិនត្រឹមត្រូវ៖ ត្រូវតែជាពហុគុណនៃ ${e.divisor}`;case`unrecognized_keys`:return`រកឃើញសោមិនស្គាល់៖ ${J(e.keys,`, `)}`;case`invalid_key`:return`សោមិនត្រឹមត្រូវនៅក្នុង ${e.origin}`;case`invalid_union`:return`ទិន្នន័យមិនត្រឹមត្រូវ`;case`invalid_element`:return`ទិន្នន័យមិនត្រឹមត្រូវនៅក្នុង ${e.origin}`;default:return`ទិន្នន័យមិនត្រឹមត្រូវ`}}}}));function oQ(){return rQ()}var sQ=o((()=>{aQ()}));function cQ(){return{localeError:lQ()}}var lQ,uQ=o((()=>{bK(),lQ=()=>{let e={string:{unit:`문자`,verb:`to have`},file:{unit:`바이트`,verb:`to have`},array:{unit:`개`,verb:`to have`},set:{unit:`개`,verb:`to have`}};function t(t){return e[t]??null}let n={regex:`입력`,email:`이메일 주소`,url:`URL`,emoji:`이모지`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO 날짜시간`,date:`ISO 날짜`,time:`ISO 시간`,duration:`ISO 기간`,ipv4:`IPv4 주소`,ipv6:`IPv6 주소`,cidrv4:`IPv4 범위`,cidrv6:`IPv6 범위`,base64:`base64 인코딩 문자열`,base64url:`base64url 인코딩 문자열`,json_string:`JSON 문자열`,e164:`E.164 번호`,jwt:`JWT`,template_literal:`입력`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=nK(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`잘못된 입력: 예상 타입은 instanceof ${e.expected}, 받은 타입은 ${i}입니다`:`잘못된 입력: 예상 타입은 ${t}, 받은 타입은 ${i}입니다`}case`invalid_value`:return e.values.length===1?`잘못된 입력: 값은 ${BG(e.values[0])} 이어야 합니다`:`잘못된 옵션: ${J(e.values,`또는 `)} 중 하나여야 합니다`;case`too_big`:{let n=e.inclusive?`이하`:`미만`,r=n===`미만`?`이어야 합니다`:`여야 합니다`,i=t(e.origin),a=i?.unit??`요소`;return i?`${e.origin??`값`}이 너무 큽니다: ${e.maximum.toString()}${a} ${n}${r}`:`${e.origin??`값`}이 너무 큽니다: ${e.maximum.toString()} ${n}${r}`}case`too_small`:{let n=e.inclusive?`이상`:`초과`,r=n===`이상`?`이어야 합니다`:`여야 합니다`,i=t(e.origin),a=i?.unit??`요소`;return i?`${e.origin??`값`}이 너무 작습니다: ${e.minimum.toString()}${a} ${n}${r}`:`${e.origin??`값`}이 너무 작습니다: ${e.minimum.toString()} ${n}${r}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`잘못된 문자열: "${t.prefix}"(으)로 시작해야 합니다`:t.format===`ends_with`?`잘못된 문자열: "${t.suffix}"(으)로 끝나야 합니다`:t.format===`includes`?`잘못된 문자열: "${t.includes}"을(를) 포함해야 합니다`:t.format===`regex`?`잘못된 문자열: 정규식 ${t.pattern} 패턴과 일치해야 합니다`:`잘못된 ${n[t.format]??e.format}`}case`not_multiple_of`:return`잘못된 숫자: ${e.divisor}의 배수여야 합니다`;case`unrecognized_keys`:return`인식할 수 없는 키: ${J(e.keys,`, `)}`;case`invalid_key`:return`잘못된 키: ${e.origin}`;case`invalid_union`:return`잘못된 입력`;case`invalid_element`:return`잘못된 값: ${e.origin}`;default:return`잘못된 입력`}}}}));function dQ(e){let t=Math.abs(e),n=t%10,r=t%100;return r>=11&&r<=19||n===0?`many`:n===1?`one`:`few`}function fQ(){return{localeError:mQ()}}var pQ,mQ,hQ=o((()=>{bK(),pQ=e=>e.charAt(0).toUpperCase()+e.slice(1),mQ=()=>{let e={string:{unit:{one:`simbolis`,few:`simboliai`,many:`simbolių`},verb:{smaller:{inclusive:`turi būti ne ilgesnė kaip`,notInclusive:`turi būti trumpesnė kaip`},bigger:{inclusive:`turi būti ne trumpesnė kaip`,notInclusive:`turi būti ilgesnė kaip`}}},file:{unit:{one:`baitas`,few:`baitai`,many:`baitų`},verb:{smaller:{inclusive:`turi būti ne didesnis kaip`,notInclusive:`turi būti mažesnis kaip`},bigger:{inclusive:`turi būti ne mažesnis kaip`,notInclusive:`turi būti didesnis kaip`}}},array:{unit:{one:`elementą`,few:`elementus`,many:`elementų`},verb:{smaller:{inclusive:`turi turėti ne daugiau kaip`,notInclusive:`turi turėti mažiau kaip`},bigger:{inclusive:`turi turėti ne mažiau kaip`,notInclusive:`turi turėti daugiau kaip`}}},set:{unit:{one:`elementą`,few:`elementus`,many:`elementų`},verb:{smaller:{inclusive:`turi turėti ne daugiau kaip`,notInclusive:`turi turėti mažiau kaip`},bigger:{inclusive:`turi turėti ne mažiau kaip`,notInclusive:`turi turėti daugiau kaip`}}}};function t(t,n,r,i){let a=e[t]??null;return a===null?a:{unit:a.unit[n],verb:a.verb[i][r?`inclusive`:`notInclusive`]}}let n={regex:`įvestis`,email:`el. pašto adresas`,url:`URL`,emoji:`jaustukas`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO data ir laikas`,date:`ISO data`,time:`ISO laikas`,duration:`ISO trukmė`,ipv4:`IPv4 adresas`,ipv6:`IPv6 adresas`,cidrv4:`IPv4 tinklo prefiksas (CIDR)`,cidrv6:`IPv6 tinklo prefiksas (CIDR)`,base64:`base64 užkoduota eilutė`,base64url:`base64url užkoduota eilutė`,json_string:`JSON eilutė`,e164:`E.164 numeris`,jwt:`JWT`,template_literal:`įvestis`},r={nan:`NaN`,number:`skaičius`,bigint:`sveikasis skaičius`,string:`eilutė`,boolean:`loginė reikšmė`,undefined:`neapibrėžta reikšmė`,function:`funkcija`,symbol:`simbolis`,array:`masyvas`,object:`objektas`,null:`nulinė reikšmė`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=nK(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Gautas tipas ${i}, o tikėtasi - instanceof ${e.expected}`:`Gautas tipas ${i}, o tikėtasi - ${t}`}case`invalid_value`:return e.values.length===1?`Privalo būti ${BG(e.values[0])}`:`Privalo būti vienas iš ${J(e.values,`|`)} pasirinkimų`;case`too_big`:{let n=r[e.origin]??e.origin,i=t(e.origin,dQ(Number(e.maximum)),e.inclusive??!1,`smaller`);if(i?.verb)return`${pQ(n??e.origin??`reikšmė`)} ${i.verb} ${e.maximum.toString()} ${i.unit??`elementų`}`;let a=e.inclusive?`ne didesnis kaip`:`mažesnis kaip`;return`${pQ(n??e.origin??`reikšmė`)} turi būti ${a} ${e.maximum.toString()} ${i?.unit}`}case`too_small`:{let n=r[e.origin]??e.origin,i=t(e.origin,dQ(Number(e.minimum)),e.inclusive??!1,`bigger`);if(i?.verb)return`${pQ(n??e.origin??`reikšmė`)} ${i.verb} ${e.minimum.toString()} ${i.unit??`elementų`}`;let a=e.inclusive?`ne mažesnis kaip`:`didesnis kaip`;return`${pQ(n??e.origin??`reikšmė`)} turi būti ${a} ${e.minimum.toString()} ${i?.unit}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Eilutė privalo prasidėti "${t.prefix}"`:t.format===`ends_with`?`Eilutė privalo pasibaigti "${t.suffix}"`:t.format===`includes`?`Eilutė privalo įtraukti "${t.includes}"`:t.format===`regex`?`Eilutė privalo atitikti ${t.pattern}`:`Neteisingas ${n[t.format]??e.format}`}case`not_multiple_of`:return`Skaičius privalo būti ${e.divisor} kartotinis.`;case`unrecognized_keys`:return`Neatpažint${e.keys.length>1?`i`:`as`} rakt${e.keys.length>1?`ai`:`as`}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Rastas klaidingas raktas`;case`invalid_union`:return`Klaidinga įvestis`;case`invalid_element`:{let t=r[e.origin]??e.origin;return`${pQ(t??e.origin??`reikšmė`)} turi klaidingą įvestį`}default:return`Klaidinga įvestis`}}}}));function gQ(){return{localeError:_Q()}}var _Q,vQ=o((()=>{bK(),_Q=()=>{let e={string:{unit:`знаци`,verb:`да имаат`},file:{unit:`бајти`,verb:`да имаат`},array:{unit:`ставки`,verb:`да имаат`},set:{unit:`ставки`,verb:`да имаат`}};function t(t){return e[t]??null}let n={regex:`внес`,email:`адреса на е-пошта`,url:`URL`,emoji:`емоџи`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO датум и време`,date:`ISO датум`,time:`ISO време`,duration:`ISO времетраење`,ipv4:`IPv4 адреса`,ipv6:`IPv6 адреса`,cidrv4:`IPv4 опсег`,cidrv6:`IPv6 опсег`,base64:`base64-енкодирана низа`,base64url:`base64url-енкодирана низа`,json_string:`JSON низа`,e164:`E.164 број`,jwt:`JWT`,template_literal:`внес`},r={nan:`NaN`,number:`број`,array:`низа`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=nK(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Грешен внес: се очекува instanceof ${e.expected}, примено ${i}`:`Грешен внес: се очекува ${t}, примено ${i}`}case`invalid_value`:return e.values.length===1?`Invalid input: expected ${BG(e.values[0])}`:`Грешана опција: се очекува една ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Премногу голем: се очекува ${e.origin??`вредноста`} да има ${n}${e.maximum.toString()} ${r.unit??`елементи`}`:`Премногу голем: се очекува ${e.origin??`вредноста`} да биде ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Премногу мал: се очекува ${e.origin} да има ${n}${e.minimum.toString()} ${r.unit}`:`Премногу мал: се очекува ${e.origin} да биде ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Неважечка низа: мора да започнува со "${t.prefix}"`:t.format===`ends_with`?`Неважечка низа: мора да завршува со "${t.suffix}"`:t.format===`includes`?`Неважечка низа: мора да вклучува "${t.includes}"`:t.format===`regex`?`Неважечка низа: мора да одгоара на патернот ${t.pattern}`:`Invalid ${n[t.format]??e.format}`}case`not_multiple_of`:return`Грешен број: мора да биде делив со ${e.divisor}`;case`unrecognized_keys`:return`${e.keys.length>1?`Непрепознаени клучеви`:`Непрепознаен клуч`}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Грешен клуч во ${e.origin}`;case`invalid_union`:return`Грешен внес`;case`invalid_element`:return`Грешна вредност во ${e.origin}`;default:return`Грешен внес`}}}}));function yQ(){return{localeError:bQ()}}var bQ,xQ=o((()=>{bK(),bQ=()=>{let e={string:{unit:`aksara`,verb:`mempunyai`},file:{unit:`bait`,verb:`mempunyai`},array:{unit:`elemen`,verb:`mempunyai`},set:{unit:`elemen`,verb:`mempunyai`}};function t(t){return e[t]??null}let n={regex:`input`,email:`alamat e-mel`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`tarikh masa ISO`,date:`tarikh ISO`,time:`masa ISO`,duration:`tempoh ISO`,ipv4:`alamat IPv4`,ipv6:`alamat IPv6`,cidrv4:`julat IPv4`,cidrv6:`julat IPv6`,base64:`string dikodkan base64`,base64url:`string dikodkan base64url`,json_string:`string JSON`,e164:`nombor E.164`,jwt:`JWT`,template_literal:`input`},r={nan:`NaN`,number:`nombor`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=nK(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Input tidak sah: dijangka instanceof ${e.expected}, diterima ${i}`:`Input tidak sah: dijangka ${t}, diterima ${i}`}case`invalid_value`:return e.values.length===1?`Input tidak sah: dijangka ${BG(e.values[0])}`:`Pilihan tidak sah: dijangka salah satu daripada ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Terlalu besar: dijangka ${e.origin??`nilai`} ${r.verb} ${n}${e.maximum.toString()} ${r.unit??`elemen`}`:`Terlalu besar: dijangka ${e.origin??`nilai`} adalah ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Terlalu kecil: dijangka ${e.origin} ${r.verb} ${n}${e.minimum.toString()} ${r.unit}`:`Terlalu kecil: dijangka ${e.origin} adalah ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`String tidak sah: mesti bermula dengan "${t.prefix}"`:t.format===`ends_with`?`String tidak sah: mesti berakhir dengan "${t.suffix}"`:t.format===`includes`?`String tidak sah: mesti mengandungi "${t.includes}"`:t.format===`regex`?`String tidak sah: mesti sepadan dengan corak ${t.pattern}`:`${n[t.format]??e.format} tidak sah`}case`not_multiple_of`:return`Nombor tidak sah: perlu gandaan ${e.divisor}`;case`unrecognized_keys`:return`Kunci tidak dikenali: ${J(e.keys,`, `)}`;case`invalid_key`:return`Kunci tidak sah dalam ${e.origin}`;case`invalid_union`:return`Input tidak sah`;case`invalid_element`:return`Nilai tidak sah dalam ${e.origin}`;default:return`Input tidak sah`}}}}));function SQ(){return{localeError:CQ()}}var CQ,wQ=o((()=>{bK(),CQ=()=>{let e={string:{unit:`tekens`,verb:`heeft`},file:{unit:`bytes`,verb:`heeft`},array:{unit:`elementen`,verb:`heeft`},set:{unit:`elementen`,verb:`heeft`}};function t(t){return e[t]??null}let n={regex:`invoer`,email:`emailadres`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO datum en tijd`,date:`ISO datum`,time:`ISO tijd`,duration:`ISO duur`,ipv4:`IPv4-adres`,ipv6:`IPv6-adres`,cidrv4:`IPv4-bereik`,cidrv6:`IPv6-bereik`,base64:`base64-gecodeerde tekst`,base64url:`base64 URL-gecodeerde tekst`,json_string:`JSON string`,e164:`E.164-nummer`,jwt:`JWT`,template_literal:`invoer`},r={nan:`NaN`,number:`getal`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=nK(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Ongeldige invoer: verwacht instanceof ${e.expected}, ontving ${i}`:`Ongeldige invoer: verwacht ${t}, ontving ${i}`}case`invalid_value`:return e.values.length===1?`Ongeldige invoer: verwacht ${BG(e.values[0])}`:`Ongeldige optie: verwacht één van ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin),i=e.origin===`date`?`laat`:e.origin===`string`?`lang`:`groot`;return r?`Te ${i}: verwacht dat ${e.origin??`waarde`} ${n}${e.maximum.toString()} ${r.unit??`elementen`} ${r.verb}`:`Te ${i}: verwacht dat ${e.origin??`waarde`} ${n}${e.maximum.toString()} is`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin),i=e.origin===`date`?`vroeg`:e.origin===`string`?`kort`:`klein`;return r?`Te ${i}: verwacht dat ${e.origin} ${n}${e.minimum.toString()} ${r.unit} ${r.verb}`:`Te ${i}: verwacht dat ${e.origin} ${n}${e.minimum.toString()} is`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Ongeldige tekst: moet met "${t.prefix}" beginnen`:t.format===`ends_with`?`Ongeldige tekst: moet op "${t.suffix}" eindigen`:t.format===`includes`?`Ongeldige tekst: moet "${t.includes}" bevatten`:t.format===`regex`?`Ongeldige tekst: moet overeenkomen met patroon ${t.pattern}`:`Ongeldig: ${n[t.format]??e.format}`}case`not_multiple_of`:return`Ongeldig getal: moet een veelvoud van ${e.divisor} zijn`;case`unrecognized_keys`:return`Onbekende key${e.keys.length>1?`s`:``}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Ongeldige key in ${e.origin}`;case`invalid_union`:return`Ongeldige invoer`;case`invalid_element`:return`Ongeldige waarde in ${e.origin}`;default:return`Ongeldige invoer`}}}}));function TQ(){return{localeError:EQ()}}var EQ,DQ=o((()=>{bK(),EQ=()=>{let e={string:{unit:`tegn`,verb:`å ha`},file:{unit:`bytes`,verb:`å ha`},array:{unit:`elementer`,verb:`å inneholde`},set:{unit:`elementer`,verb:`å inneholde`}};function t(t){return e[t]??null}let n={regex:`input`,email:`e-postadresse`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO dato- og klokkeslett`,date:`ISO-dato`,time:`ISO-klokkeslett`,duration:`ISO-varighet`,ipv4:`IPv4-område`,ipv6:`IPv6-område`,cidrv4:`IPv4-spekter`,cidrv6:`IPv6-spekter`,base64:`base64-enkodet streng`,base64url:`base64url-enkodet streng`,json_string:`JSON-streng`,e164:`E.164-nummer`,jwt:`JWT`,template_literal:`input`},r={nan:`NaN`,number:`tall`,array:`liste`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=nK(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Ugyldig input: forventet instanceof ${e.expected}, fikk ${i}`:`Ugyldig input: forventet ${t}, fikk ${i}`}case`invalid_value`:return e.values.length===1?`Ugyldig verdi: forventet ${BG(e.values[0])}`:`Ugyldig valg: forventet en av ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`For stor(t): forventet ${e.origin??`value`} til å ha ${n}${e.maximum.toString()} ${r.unit??`elementer`}`:`For stor(t): forventet ${e.origin??`value`} til å ha ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`For lite(n): forventet ${e.origin} til å ha ${n}${e.minimum.toString()} ${r.unit}`:`For lite(n): forventet ${e.origin} til å ha ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Ugyldig streng: må starte med "${t.prefix}"`:t.format===`ends_with`?`Ugyldig streng: må ende med "${t.suffix}"`:t.format===`includes`?`Ugyldig streng: må inneholde "${t.includes}"`:t.format===`regex`?`Ugyldig streng: må matche mønsteret ${t.pattern}`:`Ugyldig ${n[t.format]??e.format}`}case`not_multiple_of`:return`Ugyldig tall: må være et multiplum av ${e.divisor}`;case`unrecognized_keys`:return`${e.keys.length>1?`Ukjente nøkler`:`Ukjent nøkkel`}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Ugyldig nøkkel i ${e.origin}`;case`invalid_union`:return`Ugyldig input`;case`invalid_element`:return`Ugyldig verdi i ${e.origin}`;default:return`Ugyldig input`}}}}));function OQ(){return{localeError:kQ()}}var kQ,AQ=o((()=>{bK(),kQ=()=>{let e={string:{unit:`harf`,verb:`olmalıdır`},file:{unit:`bayt`,verb:`olmalıdır`},array:{unit:`unsur`,verb:`olmalıdır`},set:{unit:`unsur`,verb:`olmalıdır`}};function t(t){return e[t]??null}let n={regex:`giren`,email:`epostagâh`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO hengâmı`,date:`ISO tarihi`,time:`ISO zamanı`,duration:`ISO müddeti`,ipv4:`IPv4 nişânı`,ipv6:`IPv6 nişânı`,cidrv4:`IPv4 menzili`,cidrv6:`IPv6 menzili`,base64:`base64-şifreli metin`,base64url:`base64url-şifreli metin`,json_string:`JSON metin`,e164:`E.164 sayısı`,jwt:`JWT`,template_literal:`giren`},r={nan:`NaN`,number:`numara`,array:`saf`,null:`gayb`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=nK(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Fâsit giren: umulan instanceof ${e.expected}, alınan ${i}`:`Fâsit giren: umulan ${t}, alınan ${i}`}case`invalid_value`:return e.values.length===1?`Fâsit giren: umulan ${BG(e.values[0])}`:`Fâsit tercih: mûteberler ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Fazla büyük: ${e.origin??`value`}, ${n}${e.maximum.toString()} ${r.unit??`elements`} sahip olmalıydı.`:`Fazla büyük: ${e.origin??`value`}, ${n}${e.maximum.toString()} olmalıydı.`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Fazla küçük: ${e.origin}, ${n}${e.minimum.toString()} ${r.unit} sahip olmalıydı.`:`Fazla küçük: ${e.origin}, ${n}${e.minimum.toString()} olmalıydı.`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Fâsit metin: "${t.prefix}" ile başlamalı.`:t.format===`ends_with`?`Fâsit metin: "${t.suffix}" ile bitmeli.`:t.format===`includes`?`Fâsit metin: "${t.includes}" ihtivâ etmeli.`:t.format===`regex`?`Fâsit metin: ${t.pattern} nakşına uymalı.`:`Fâsit ${n[t.format]??e.format}`}case`not_multiple_of`:return`Fâsit sayı: ${e.divisor} katı olmalıydı.`;case`unrecognized_keys`:return`Tanınmayan anahtar ${e.keys.length>1?`s`:``}: ${J(e.keys,`, `)}`;case`invalid_key`:return`${e.origin} için tanınmayan anahtar var.`;case`invalid_union`:return`Giren tanınamadı.`;case`invalid_element`:return`${e.origin} için tanınmayan kıymet var.`;default:return`Kıymet tanınamadı.`}}}}));function jQ(){return{localeError:MQ()}}var MQ,NQ=o((()=>{bK(),MQ=()=>{let e={string:{unit:`توکي`,verb:`ولري`},file:{unit:`بایټس`,verb:`ولري`},array:{unit:`توکي`,verb:`ولري`},set:{unit:`توکي`,verb:`ولري`}};function t(t){return e[t]??null}let n={regex:`ورودي`,email:`بریښنالیک`,url:`یو آر ال`,emoji:`ایموجي`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`نیټه او وخت`,date:`نېټه`,time:`وخت`,duration:`موده`,ipv4:`د IPv4 پته`,ipv6:`د IPv6 پته`,cidrv4:`د IPv4 ساحه`,cidrv6:`د IPv6 ساحه`,base64:`base64-encoded متن`,base64url:`base64url-encoded متن`,json_string:`JSON متن`,e164:`د E.164 شمېره`,jwt:`JWT`,template_literal:`ورودي`},r={nan:`NaN`,number:`عدد`,array:`ارې`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=nK(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`ناسم ورودي: باید instanceof ${e.expected} وای, مګر ${i} ترلاسه شو`:`ناسم ورودي: باید ${t} وای, مګر ${i} ترلاسه شو`}case`invalid_value`:return e.values.length===1?`ناسم ورودي: باید ${BG(e.values[0])} وای`:`ناسم انتخاب: باید یو له ${J(e.values,`|`)} څخه وای`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`ډیر لوی: ${e.origin??`ارزښت`} باید ${n}${e.maximum.toString()} ${r.unit??`عنصرونه`} ولري`:`ډیر لوی: ${e.origin??`ارزښت`} باید ${n}${e.maximum.toString()} وي`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`ډیر کوچنی: ${e.origin} باید ${n}${e.minimum.toString()} ${r.unit} ولري`:`ډیر کوچنی: ${e.origin} باید ${n}${e.minimum.toString()} وي`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`ناسم متن: باید د "${t.prefix}" سره پیل شي`:t.format===`ends_with`?`ناسم متن: باید د "${t.suffix}" سره پای ته ورسيږي`:t.format===`includes`?`ناسم متن: باید "${t.includes}" ولري`:t.format===`regex`?`ناسم متن: باید د ${t.pattern} سره مطابقت ولري`:`${n[t.format]??e.format} ناسم دی`}case`not_multiple_of`:return`ناسم عدد: باید د ${e.divisor} مضرب وي`;case`unrecognized_keys`:return`ناسم ${e.keys.length>1?`کلیډونه`:`کلیډ`}: ${J(e.keys,`, `)}`;case`invalid_key`:return`ناسم کلیډ په ${e.origin} کې`;case`invalid_union`:return`ناسمه ورودي`;case`invalid_element`:return`ناسم عنصر په ${e.origin} کې`;default:return`ناسمه ورودي`}}}}));function PQ(){return{localeError:FQ()}}var FQ,IQ=o((()=>{bK(),FQ=()=>{let e={string:{unit:`znaków`,verb:`mieć`},file:{unit:`bajtów`,verb:`mieć`},array:{unit:`elementów`,verb:`mieć`},set:{unit:`elementów`,verb:`mieć`}};function t(t){return e[t]??null}let n={regex:`wyrażenie`,email:`adres email`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`data i godzina w formacie ISO`,date:`data w formacie ISO`,time:`godzina w formacie ISO`,duration:`czas trwania ISO`,ipv4:`adres IPv4`,ipv6:`adres IPv6`,cidrv4:`zakres IPv4`,cidrv6:`zakres IPv6`,base64:`ciąg znaków zakodowany w formacie base64`,base64url:`ciąg znaków zakodowany w formacie base64url`,json_string:`ciąg znaków w formacie JSON`,e164:`liczba E.164`,jwt:`JWT`,template_literal:`wejście`},r={nan:`NaN`,number:`liczba`,array:`tablica`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=nK(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Nieprawidłowe dane wejściowe: oczekiwano instanceof ${e.expected}, otrzymano ${i}`:`Nieprawidłowe dane wejściowe: oczekiwano ${t}, otrzymano ${i}`}case`invalid_value`:return e.values.length===1?`Nieprawidłowe dane wejściowe: oczekiwano ${BG(e.values[0])}`:`Nieprawidłowa opcja: oczekiwano jednej z wartości ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Za duża wartość: oczekiwano, że ${e.origin??`wartość`} będzie mieć ${n}${e.maximum.toString()} ${r.unit??`elementów`}`:`Zbyt duż(y/a/e): oczekiwano, że ${e.origin??`wartość`} będzie wynosić ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Za mała wartość: oczekiwano, że ${e.origin??`wartość`} będzie mieć ${n}${e.minimum.toString()} ${r.unit??`elementów`}`:`Zbyt mał(y/a/e): oczekiwano, że ${e.origin??`wartość`} będzie wynosić ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Nieprawidłowy ciąg znaków: musi zaczynać się od "${t.prefix}"`:t.format===`ends_with`?`Nieprawidłowy ciąg znaków: musi kończyć się na "${t.suffix}"`:t.format===`includes`?`Nieprawidłowy ciąg znaków: musi zawierać "${t.includes}"`:t.format===`regex`?`Nieprawidłowy ciąg znaków: musi odpowiadać wzorcowi ${t.pattern}`:`Nieprawidłow(y/a/e) ${n[t.format]??e.format}`}case`not_multiple_of`:return`Nieprawidłowa liczba: musi być wielokrotnością ${e.divisor}`;case`unrecognized_keys`:return`Nierozpoznane klucze${e.keys.length>1?`s`:``}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Nieprawidłowy klucz w ${e.origin}`;case`invalid_union`:return`Nieprawidłowe dane wejściowe`;case`invalid_element`:return`Nieprawidłowa wartość w ${e.origin}`;default:return`Nieprawidłowe dane wejściowe`}}}}));function LQ(){return{localeError:RQ()}}var RQ,zQ=o((()=>{bK(),RQ=()=>{let e={string:{unit:`caracteres`,verb:`ter`},file:{unit:`bytes`,verb:`ter`},array:{unit:`itens`,verb:`ter`},set:{unit:`itens`,verb:`ter`}};function t(t){return e[t]??null}let n={regex:`padrão`,email:`endereço de e-mail`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`data e hora ISO`,date:`data ISO`,time:`hora ISO`,duration:`duração ISO`,ipv4:`endereço IPv4`,ipv6:`endereço IPv6`,cidrv4:`faixa de IPv4`,cidrv6:`faixa de IPv6`,base64:`texto codificado em base64`,base64url:`URL codificada em base64`,json_string:`texto JSON`,e164:`número E.164`,jwt:`JWT`,template_literal:`entrada`},r={nan:`NaN`,number:`número`,null:`nulo`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=nK(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Tipo inválido: esperado instanceof ${e.expected}, recebido ${i}`:`Tipo inválido: esperado ${t}, recebido ${i}`}case`invalid_value`:return e.values.length===1?`Entrada inválida: esperado ${BG(e.values[0])}`:`Opção inválida: esperada uma das ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Muito grande: esperado que ${e.origin??`valor`} tivesse ${n}${e.maximum.toString()} ${r.unit??`elementos`}`:`Muito grande: esperado que ${e.origin??`valor`} fosse ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Muito pequeno: esperado que ${e.origin} tivesse ${n}${e.minimum.toString()} ${r.unit}`:`Muito pequeno: esperado que ${e.origin} fosse ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Texto inválido: deve começar com "${t.prefix}"`:t.format===`ends_with`?`Texto inválido: deve terminar com "${t.suffix}"`:t.format===`includes`?`Texto inválido: deve incluir "${t.includes}"`:t.format===`regex`?`Texto inválido: deve corresponder ao padrão ${t.pattern}`:`${n[t.format]??e.format} inválido`}case`not_multiple_of`:return`Número inválido: deve ser múltiplo de ${e.divisor}`;case`unrecognized_keys`:return`Chave${e.keys.length>1?`s`:``} desconhecida${e.keys.length>1?`s`:``}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Chave inválida em ${e.origin}`;case`invalid_union`:return`Entrada inválida`;case`invalid_element`:return`Valor inválido em ${e.origin}`;default:return`Campo inválido`}}}}));function BQ(){return{localeError:VQ()}}var VQ,HQ=o((()=>{bK(),VQ=()=>{let e={string:{unit:`caractere`,verb:`să aibă`},file:{unit:`octeți`,verb:`să aibă`},array:{unit:`elemente`,verb:`să aibă`},set:{unit:`elemente`,verb:`să aibă`},map:{unit:`intrări`,verb:`să aibă`}};function t(t){return e[t]??null}let n={regex:`intrare`,email:`adresă de email`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`dată și oră ISO`,date:`dată ISO`,time:`oră ISO`,duration:`durată ISO`,ipv4:`adresă IPv4`,ipv6:`adresă IPv6`,mac:`adresă MAC`,cidrv4:`interval IPv4`,cidrv6:`interval IPv6`,base64:`șir codat base64`,base64url:`șir codat base64url`,json_string:`șir JSON`,e164:`număr E.164`,jwt:`JWT`,template_literal:`intrare`},r={nan:`NaN`,string:`șir`,number:`număr`,boolean:`boolean`,function:`funcție`,array:`matrice`,object:`obiect`,undefined:`nedefinit`,symbol:`simbol`,bigint:`număr mare`,void:`void`,never:`never`,map:`hartă`,set:`set`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=nK(e.input);return`Intrare invalidă: așteptat ${t}, primit ${r[n]??n}`}case`invalid_value`:return e.values.length===1?`Intrare invalidă: așteptat ${BG(e.values[0])}`:`Opțiune invalidă: așteptat una dintre ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Prea mare: așteptat ca ${e.origin??`valoarea`} ${r.verb} ${n}${e.maximum.toString()} ${r.unit??`elemente`}`:`Prea mare: așteptat ca ${e.origin??`valoarea`} să fie ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Prea mic: așteptat ca ${e.origin} ${r.verb} ${n}${e.minimum.toString()} ${r.unit}`:`Prea mic: așteptat ca ${e.origin} să fie ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Șir invalid: trebuie să înceapă cu "${t.prefix}"`:t.format===`ends_with`?`Șir invalid: trebuie să se termine cu "${t.suffix}"`:t.format===`includes`?`Șir invalid: trebuie să includă "${t.includes}"`:t.format===`regex`?`Șir invalid: trebuie să se potrivească cu modelul ${t.pattern}`:`Format invalid: ${n[t.format]??e.format}`}case`not_multiple_of`:return`Număr invalid: trebuie să fie multiplu de ${e.divisor}`;case`unrecognized_keys`:return`Chei nerecunoscute: ${J(e.keys,`, `)}`;case`invalid_key`:return`Cheie invalidă în ${e.origin}`;case`invalid_union`:return`Intrare invalidă`;case`invalid_element`:return`Valoare invalidă în ${e.origin}`;default:return`Intrare invalidă`}}}}));function UQ(e,t,n,r){let i=Math.abs(e),a=i%10,o=i%100;return o>=11&&o<=19?r:a===1?t:a>=2&&a<=4?n:r}function WQ(){return{localeError:GQ()}}var GQ,KQ=o((()=>{bK(),GQ=()=>{let e={string:{unit:{one:`символ`,few:`символа`,many:`символов`},verb:`иметь`},file:{unit:{one:`байт`,few:`байта`,many:`байт`},verb:`иметь`},array:{unit:{one:`элемент`,few:`элемента`,many:`элементов`},verb:`иметь`},set:{unit:{one:`элемент`,few:`элемента`,many:`элементов`},verb:`иметь`}};function t(t){return e[t]??null}let n={regex:`ввод`,email:`email адрес`,url:`URL`,emoji:`эмодзи`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO дата и время`,date:`ISO дата`,time:`ISO время`,duration:`ISO длительность`,ipv4:`IPv4 адрес`,ipv6:`IPv6 адрес`,cidrv4:`IPv4 диапазон`,cidrv6:`IPv6 диапазон`,base64:`строка в формате base64`,base64url:`строка в формате base64url`,json_string:`JSON строка`,e164:`номер E.164`,jwt:`JWT`,template_literal:`ввод`},r={nan:`NaN`,number:`число`,array:`массив`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=nK(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Неверный ввод: ожидалось instanceof ${e.expected}, получено ${i}`:`Неверный ввод: ожидалось ${t}, получено ${i}`}case`invalid_value`:return e.values.length===1?`Неверный ввод: ожидалось ${BG(e.values[0])}`:`Неверный вариант: ожидалось одно из ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);if(r){let t=UQ(Number(e.maximum),r.unit.one,r.unit.few,r.unit.many);return`Слишком большое значение: ожидалось, что ${e.origin??`значение`} будет иметь ${n}${e.maximum.toString()} ${t}`}return`Слишком большое значение: ожидалось, что ${e.origin??`значение`} будет ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);if(r){let t=UQ(Number(e.minimum),r.unit.one,r.unit.few,r.unit.many);return`Слишком маленькое значение: ожидалось, что ${e.origin} будет иметь ${n}${e.minimum.toString()} ${t}`}return`Слишком маленькое значение: ожидалось, что ${e.origin} будет ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Неверная строка: должна начинаться с "${t.prefix}"`:t.format===`ends_with`?`Неверная строка: должна заканчиваться на "${t.suffix}"`:t.format===`includes`?`Неверная строка: должна содержать "${t.includes}"`:t.format===`regex`?`Неверная строка: должна соответствовать шаблону ${t.pattern}`:`Неверный ${n[t.format]??e.format}`}case`not_multiple_of`:return`Неверное число: должно быть кратным ${e.divisor}`;case`unrecognized_keys`:return`Нераспознанн${e.keys.length>1?`ые`:`ый`} ключ${e.keys.length>1?`и`:``}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Неверный ключ в ${e.origin}`;case`invalid_union`:return`Неверные входные данные`;case`invalid_element`:return`Неверное значение в ${e.origin}`;default:return`Неверные входные данные`}}}}));function qQ(){return{localeError:JQ()}}var JQ,YQ=o((()=>{bK(),JQ=()=>{let e={string:{unit:`znakov`,verb:`imeti`},file:{unit:`bajtov`,verb:`imeti`},array:{unit:`elementov`,verb:`imeti`},set:{unit:`elementov`,verb:`imeti`}};function t(t){return e[t]??null}let n={regex:`vnos`,email:`e-poštni naslov`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO datum in čas`,date:`ISO datum`,time:`ISO čas`,duration:`ISO trajanje`,ipv4:`IPv4 naslov`,ipv6:`IPv6 naslov`,cidrv4:`obseg IPv4`,cidrv6:`obseg IPv6`,base64:`base64 kodiran niz`,base64url:`base64url kodiran niz`,json_string:`JSON niz`,e164:`E.164 številka`,jwt:`JWT`,template_literal:`vnos`},r={nan:`NaN`,number:`število`,array:`tabela`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=nK(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Neveljaven vnos: pričakovano instanceof ${e.expected}, prejeto ${i}`:`Neveljaven vnos: pričakovano ${t}, prejeto ${i}`}case`invalid_value`:return e.values.length===1?`Neveljaven vnos: pričakovano ${BG(e.values[0])}`:`Neveljavna možnost: pričakovano eno izmed ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Preveliko: pričakovano, da bo ${e.origin??`vrednost`} imelo ${n}${e.maximum.toString()} ${r.unit??`elementov`}`:`Preveliko: pričakovano, da bo ${e.origin??`vrednost`} ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Premajhno: pričakovano, da bo ${e.origin} imelo ${n}${e.minimum.toString()} ${r.unit}`:`Premajhno: pričakovano, da bo ${e.origin} ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Neveljaven niz: mora se začeti z "${t.prefix}"`:t.format===`ends_with`?`Neveljaven niz: mora se končati z "${t.suffix}"`:t.format===`includes`?`Neveljaven niz: mora vsebovati "${t.includes}"`:t.format===`regex`?`Neveljaven niz: mora ustrezati vzorcu ${t.pattern}`:`Neveljaven ${n[t.format]??e.format}`}case`not_multiple_of`:return`Neveljavno število: mora biti večkratnik ${e.divisor}`;case`unrecognized_keys`:return`Neprepoznan${e.keys.length>1?`i ključi`:` ključ`}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Neveljaven ključ v ${e.origin}`;case`invalid_union`:return`Neveljaven vnos`;case`invalid_element`:return`Neveljavna vrednost v ${e.origin}`;default:return`Neveljaven vnos`}}}}));function XQ(){return{localeError:ZQ()}}var ZQ,QQ=o((()=>{bK(),ZQ=()=>{let e={string:{unit:`tecken`,verb:`att ha`},file:{unit:`bytes`,verb:`att ha`},array:{unit:`objekt`,verb:`att innehålla`},set:{unit:`objekt`,verb:`att innehålla`}};function t(t){return e[t]??null}let n={regex:`reguljärt uttryck`,email:`e-postadress`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO-datum och tid`,date:`ISO-datum`,time:`ISO-tid`,duration:`ISO-varaktighet`,ipv4:`IPv4-intervall`,ipv6:`IPv6-intervall`,cidrv4:`IPv4-spektrum`,cidrv6:`IPv6-spektrum`,base64:`base64-kodad sträng`,base64url:`base64url-kodad sträng`,json_string:`JSON-sträng`,e164:`E.164-nummer`,jwt:`JWT`,template_literal:`mall-literal`},r={nan:`NaN`,number:`antal`,array:`lista`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=nK(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Ogiltig inmatning: förväntat instanceof ${e.expected}, fick ${i}`:`Ogiltig inmatning: förväntat ${t}, fick ${i}`}case`invalid_value`:return e.values.length===1?`Ogiltig inmatning: förväntat ${BG(e.values[0])}`:`Ogiltigt val: förväntade en av ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`För stor(t): förväntade ${e.origin??`värdet`} att ha ${n}${e.maximum.toString()} ${r.unit??`element`}`:`För stor(t): förväntat ${e.origin??`värdet`} att ha ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`För lite(t): förväntade ${e.origin??`värdet`} att ha ${n}${e.minimum.toString()} ${r.unit}`:`För lite(t): förväntade ${e.origin??`värdet`} att ha ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Ogiltig sträng: måste börja med "${t.prefix}"`:t.format===`ends_with`?`Ogiltig sträng: måste sluta med "${t.suffix}"`:t.format===`includes`?`Ogiltig sträng: måste innehålla "${t.includes}"`:t.format===`regex`?`Ogiltig sträng: måste matcha mönstret "${t.pattern}"`:`Ogiltig(t) ${n[t.format]??e.format}`}case`not_multiple_of`:return`Ogiltigt tal: måste vara en multipel av ${e.divisor}`;case`unrecognized_keys`:return`${e.keys.length>1?`Okända nycklar`:`Okänd nyckel`}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Ogiltig nyckel i ${e.origin??`värdet`}`;case`invalid_union`:return`Ogiltig input`;case`invalid_element`:return`Ogiltigt värde i ${e.origin??`värdet`}`;default:return`Ogiltig input`}}}}));function $Q(){return{localeError:e$()}}var e$,t$=o((()=>{bK(),e$=()=>{let e={string:{unit:`எழுத்துக்கள்`,verb:`கொண்டிருக்க வேண்டும்`},file:{unit:`பைட்டுகள்`,verb:`கொண்டிருக்க வேண்டும்`},array:{unit:`உறுப்புகள்`,verb:`கொண்டிருக்க வேண்டும்`},set:{unit:`உறுப்புகள்`,verb:`கொண்டிருக்க வேண்டும்`}};function t(t){return e[t]??null}let n={regex:`உள்ளீடு`,email:`மின்னஞ்சல் முகவரி`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO தேதி நேரம்`,date:`ISO தேதி`,time:`ISO நேரம்`,duration:`ISO கால அளவு`,ipv4:`IPv4 முகவரி`,ipv6:`IPv6 முகவரி`,cidrv4:`IPv4 வரம்பு`,cidrv6:`IPv6 வரம்பு`,base64:`base64-encoded சரம்`,base64url:`base64url-encoded சரம்`,json_string:`JSON சரம்`,e164:`E.164 எண்`,jwt:`JWT`,template_literal:`input`},r={nan:`NaN`,number:`எண்`,array:`அணி`,null:`வெறுமை`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=nK(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது instanceof ${e.expected}, பெறப்பட்டது ${i}`:`தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது ${t}, பெறப்பட்டது ${i}`}case`invalid_value`:return e.values.length===1?`தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது ${BG(e.values[0])}`:`தவறான விருப்பம்: எதிர்பார்க்கப்பட்டது ${J(e.values,`|`)} இல் ஒன்று`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`மிக பெரியது: எதிர்பார்க்கப்பட்டது ${e.origin??`மதிப்பு`} ${n}${e.maximum.toString()} ${r.unit??`உறுப்புகள்`} ஆக இருக்க வேண்டும்`:`மிக பெரியது: எதிர்பார்க்கப்பட்டது ${e.origin??`மதிப்பு`} ${n}${e.maximum.toString()} ஆக இருக்க வேண்டும்`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`மிகச் சிறியது: எதிர்பார்க்கப்பட்டது ${e.origin} ${n}${e.minimum.toString()} ${r.unit} ஆக இருக்க வேண்டும்`:`மிகச் சிறியது: எதிர்பார்க்கப்பட்டது ${e.origin} ${n}${e.minimum.toString()} ஆக இருக்க வேண்டும்`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`தவறான சரம்: "${t.prefix}" இல் தொடங்க வேண்டும்`:t.format===`ends_with`?`தவறான சரம்: "${t.suffix}" இல் முடிவடைய வேண்டும்`:t.format===`includes`?`தவறான சரம்: "${t.includes}" ஐ உள்ளடக்க வேண்டும்`:t.format===`regex`?`தவறான சரம்: ${t.pattern} முறைபாட்டுடன் பொருந்த வேண்டும்`:`தவறான ${n[t.format]??e.format}`}case`not_multiple_of`:return`தவறான எண்: ${e.divisor} இன் பலமாக இருக்க வேண்டும்`;case`unrecognized_keys`:return`அடையாளம் தெரியாத விசை${e.keys.length>1?`கள்`:``}: ${J(e.keys,`, `)}`;case`invalid_key`:return`${e.origin} இல் தவறான விசை`;case`invalid_union`:return`தவறான உள்ளீடு`;case`invalid_element`:return`${e.origin} இல் தவறான மதிப்பு`;default:return`தவறான உள்ளீடு`}}}}));function n$(){return{localeError:r$()}}var r$,i$=o((()=>{bK(),r$=()=>{let e={string:{unit:`ตัวอักษร`,verb:`ควรมี`},file:{unit:`ไบต์`,verb:`ควรมี`},array:{unit:`รายการ`,verb:`ควรมี`},set:{unit:`รายการ`,verb:`ควรมี`}};function t(t){return e[t]??null}let n={regex:`ข้อมูลที่ป้อน`,email:`ที่อยู่อีเมล`,url:`URL`,emoji:`อิโมจิ`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`วันที่เวลาแบบ ISO`,date:`วันที่แบบ ISO`,time:`เวลาแบบ ISO`,duration:`ช่วงเวลาแบบ ISO`,ipv4:`ที่อยู่ IPv4`,ipv6:`ที่อยู่ IPv6`,cidrv4:`ช่วง IP แบบ IPv4`,cidrv6:`ช่วง IP แบบ IPv6`,base64:`ข้อความแบบ Base64`,base64url:`ข้อความแบบ Base64 สำหรับ URL`,json_string:`ข้อความแบบ JSON`,e164:`เบอร์โทรศัพท์ระหว่างประเทศ (E.164)`,jwt:`โทเคน JWT`,template_literal:`ข้อมูลที่ป้อน`},r={nan:`NaN`,number:`ตัวเลข`,array:`อาร์เรย์ (Array)`,null:`ไม่มีค่า (null)`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=nK(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`ประเภทข้อมูลไม่ถูกต้อง: ควรเป็น instanceof ${e.expected} แต่ได้รับ ${i}`:`ประเภทข้อมูลไม่ถูกต้อง: ควรเป็น ${t} แต่ได้รับ ${i}`}case`invalid_value`:return e.values.length===1?`ค่าไม่ถูกต้อง: ควรเป็น ${BG(e.values[0])}`:`ตัวเลือกไม่ถูกต้อง: ควรเป็นหนึ่งใน ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`ไม่เกิน`:`น้อยกว่า`,r=t(e.origin);return r?`เกินกำหนด: ${e.origin??`ค่า`} ควรมี${n} ${e.maximum.toString()} ${r.unit??`รายการ`}`:`เกินกำหนด: ${e.origin??`ค่า`} ควรมี${n} ${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`อย่างน้อย`:`มากกว่า`,r=t(e.origin);return r?`น้อยกว่ากำหนด: ${e.origin} ควรมี${n} ${e.minimum.toString()} ${r.unit}`:`น้อยกว่ากำหนด: ${e.origin} ควรมี${n} ${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`รูปแบบไม่ถูกต้อง: ข้อความต้องขึ้นต้นด้วย "${t.prefix}"`:t.format===`ends_with`?`รูปแบบไม่ถูกต้อง: ข้อความต้องลงท้ายด้วย "${t.suffix}"`:t.format===`includes`?`รูปแบบไม่ถูกต้อง: ข้อความต้องมี "${t.includes}" อยู่ในข้อความ`:t.format===`regex`?`รูปแบบไม่ถูกต้อง: ต้องตรงกับรูปแบบที่กำหนด ${t.pattern}`:`รูปแบบไม่ถูกต้อง: ${n[t.format]??e.format}`}case`not_multiple_of`:return`ตัวเลขไม่ถูกต้อง: ต้องเป็นจำนวนที่หารด้วย ${e.divisor} ได้ลงตัว`;case`unrecognized_keys`:return`พบคีย์ที่ไม่รู้จัก: ${J(e.keys,`, `)}`;case`invalid_key`:return`คีย์ไม่ถูกต้องใน ${e.origin}`;case`invalid_union`:return`ข้อมูลไม่ถูกต้อง: ไม่ตรงกับรูปแบบยูเนียนที่กำหนดไว้`;case`invalid_element`:return`ข้อมูลไม่ถูกต้องใน ${e.origin}`;default:return`ข้อมูลไม่ถูกต้อง`}}}}));function a$(){return{localeError:o$()}}var o$,s$=o((()=>{bK(),o$=()=>{let e={string:{unit:`karakter`,verb:`olmalı`},file:{unit:`bayt`,verb:`olmalı`},array:{unit:`öğe`,verb:`olmalı`},set:{unit:`öğe`,verb:`olmalı`}};function t(t){return e[t]??null}let n={regex:`girdi`,email:`e-posta adresi`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO tarih ve saat`,date:`ISO tarih`,time:`ISO saat`,duration:`ISO süre`,ipv4:`IPv4 adresi`,ipv6:`IPv6 adresi`,cidrv4:`IPv4 aralığı`,cidrv6:`IPv6 aralığı`,base64:`base64 ile şifrelenmiş metin`,base64url:`base64url ile şifrelenmiş metin`,json_string:`JSON dizesi`,e164:`E.164 sayısı`,jwt:`JWT`,template_literal:`Şablon dizesi`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=nK(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Geçersiz değer: beklenen instanceof ${e.expected}, alınan ${i}`:`Geçersiz değer: beklenen ${t}, alınan ${i}`}case`invalid_value`:return e.values.length===1?`Geçersiz değer: beklenen ${BG(e.values[0])}`:`Geçersiz seçenek: aşağıdakilerden biri olmalı: ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Çok büyük: beklenen ${e.origin??`değer`} ${n}${e.maximum.toString()} ${r.unit??`öğe`}`:`Çok büyük: beklenen ${e.origin??`değer`} ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Çok küçük: beklenen ${e.origin} ${n}${e.minimum.toString()} ${r.unit}`:`Çok küçük: beklenen ${e.origin} ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Geçersiz metin: "${t.prefix}" ile başlamalı`:t.format===`ends_with`?`Geçersiz metin: "${t.suffix}" ile bitmeli`:t.format===`includes`?`Geçersiz metin: "${t.includes}" içermeli`:t.format===`regex`?`Geçersiz metin: ${t.pattern} desenine uymalı`:`Geçersiz ${n[t.format]??e.format}`}case`not_multiple_of`:return`Geçersiz sayı: ${e.divisor} ile tam bölünebilmeli`;case`unrecognized_keys`:return`Tanınmayan anahtar${e.keys.length>1?`lar`:``}: ${J(e.keys,`, `)}`;case`invalid_key`:return`${e.origin} içinde geçersiz anahtar`;case`invalid_union`:return`Geçersiz değer`;case`invalid_element`:return`${e.origin} içinde geçersiz değer`;default:return`Geçersiz değer`}}}}));function c$(){return{localeError:l$()}}var l$,u$=o((()=>{bK(),l$=()=>{let e={string:{unit:`символів`,verb:`матиме`},file:{unit:`байтів`,verb:`матиме`},array:{unit:`елементів`,verb:`матиме`},set:{unit:`елементів`,verb:`матиме`}};function t(t){return e[t]??null}let n={regex:`вхідні дані`,email:`адреса електронної пошти`,url:`URL`,emoji:`емодзі`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`дата та час ISO`,date:`дата ISO`,time:`час ISO`,duration:`тривалість ISO`,ipv4:`адреса IPv4`,ipv6:`адреса IPv6`,cidrv4:`діапазон IPv4`,cidrv6:`діапазон IPv6`,base64:`рядок у кодуванні base64`,base64url:`рядок у кодуванні base64url`,json_string:`рядок JSON`,e164:`номер E.164`,jwt:`JWT`,template_literal:`вхідні дані`},r={nan:`NaN`,number:`число`,array:`масив`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=nK(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Неправильні вхідні дані: очікується instanceof ${e.expected}, отримано ${i}`:`Неправильні вхідні дані: очікується ${t}, отримано ${i}`}case`invalid_value`:return e.values.length===1?`Неправильні вхідні дані: очікується ${BG(e.values[0])}`:`Неправильна опція: очікується одне з ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Занадто велике: очікується, що ${e.origin??`значення`} ${r.verb} ${n}${e.maximum.toString()} ${r.unit??`елементів`}`:`Занадто велике: очікується, що ${e.origin??`значення`} буде ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Занадто мале: очікується, що ${e.origin} ${r.verb} ${n}${e.minimum.toString()} ${r.unit}`:`Занадто мале: очікується, що ${e.origin} буде ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Неправильний рядок: повинен починатися з "${t.prefix}"`:t.format===`ends_with`?`Неправильний рядок: повинен закінчуватися на "${t.suffix}"`:t.format===`includes`?`Неправильний рядок: повинен містити "${t.includes}"`:t.format===`regex`?`Неправильний рядок: повинен відповідати шаблону ${t.pattern}`:`Неправильний ${n[t.format]??e.format}`}case`not_multiple_of`:return`Неправильне число: повинно бути кратним ${e.divisor}`;case`unrecognized_keys`:return`Нерозпізнаний ключ${e.keys.length>1?`і`:``}: ${J(e.keys,`, `)}`;case`invalid_key`:return`Неправильний ключ у ${e.origin}`;case`invalid_union`:return`Неправильні вхідні дані`;case`invalid_element`:return`Неправильне значення у ${e.origin}`;default:return`Неправильні вхідні дані`}}}}));function d$(){return c$()}var f$=o((()=>{u$()}));function p$(){return{localeError:m$()}}var m$,h$=o((()=>{bK(),m$=()=>{let e={string:{unit:`حروف`,verb:`ہونا`},file:{unit:`بائٹس`,verb:`ہونا`},array:{unit:`آئٹمز`,verb:`ہونا`},set:{unit:`آئٹمز`,verb:`ہونا`}};function t(t){return e[t]??null}let n={regex:`ان پٹ`,email:`ای میل ایڈریس`,url:`یو آر ایل`,emoji:`ایموجی`,uuid:`یو یو آئی ڈی`,uuidv4:`یو یو آئی ڈی وی 4`,uuidv6:`یو یو آئی ڈی وی 6`,nanoid:`نینو آئی ڈی`,guid:`جی یو آئی ڈی`,cuid:`سی یو آئی ڈی`,cuid2:`سی یو آئی ڈی 2`,ulid:`یو ایل آئی ڈی`,xid:`ایکس آئی ڈی`,ksuid:`کے ایس یو آئی ڈی`,datetime:`آئی ایس او ڈیٹ ٹائم`,date:`آئی ایس او تاریخ`,time:`آئی ایس او وقت`,duration:`آئی ایس او مدت`,ipv4:`آئی پی وی 4 ایڈریس`,ipv6:`آئی پی وی 6 ایڈریس`,cidrv4:`آئی پی وی 4 رینج`,cidrv6:`آئی پی وی 6 رینج`,base64:`بیس 64 ان کوڈڈ سٹرنگ`,base64url:`بیس 64 یو آر ایل ان کوڈڈ سٹرنگ`,json_string:`جے ایس او این سٹرنگ`,e164:`ای 164 نمبر`,jwt:`جے ڈبلیو ٹی`,template_literal:`ان پٹ`},r={nan:`NaN`,number:`نمبر`,array:`آرے`,null:`نل`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=nK(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`غلط ان پٹ: instanceof ${e.expected} متوقع تھا، ${i} موصول ہوا`:`غلط ان پٹ: ${t} متوقع تھا، ${i} موصول ہوا`}case`invalid_value`:return e.values.length===1?`غلط ان پٹ: ${BG(e.values[0])} متوقع تھا`:`غلط آپشن: ${J(e.values,`|`)} میں سے ایک متوقع تھا`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`بہت بڑا: ${e.origin??`ویلیو`} کے ${n}${e.maximum.toString()} ${r.unit??`عناصر`} ہونے متوقع تھے`:`بہت بڑا: ${e.origin??`ویلیو`} کا ${n}${e.maximum.toString()} ہونا متوقع تھا`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`بہت چھوٹا: ${e.origin} کے ${n}${e.minimum.toString()} ${r.unit} ہونے متوقع تھے`:`بہت چھوٹا: ${e.origin} کا ${n}${e.minimum.toString()} ہونا متوقع تھا`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`غلط سٹرنگ: "${t.prefix}" سے شروع ہونا چاہیے`:t.format===`ends_with`?`غلط سٹرنگ: "${t.suffix}" پر ختم ہونا چاہیے`:t.format===`includes`?`غلط سٹرنگ: "${t.includes}" شامل ہونا چاہیے`:t.format===`regex`?`غلط سٹرنگ: پیٹرن ${t.pattern} سے میچ ہونا چاہیے`:`غلط ${n[t.format]??e.format}`}case`not_multiple_of`:return`غلط نمبر: ${e.divisor} کا مضاعف ہونا چاہیے`;case`unrecognized_keys`:return`غیر تسلیم شدہ کی${e.keys.length>1?`ز`:``}: ${J(e.keys,`، `)}`;case`invalid_key`:return`${e.origin} میں غلط کی`;case`invalid_union`:return`غلط ان پٹ`;case`invalid_element`:return`${e.origin} میں غلط ویلیو`;default:return`غلط ان پٹ`}}}}));function g$(){return{localeError:_$()}}var _$,v$=o((()=>{bK(),_$=()=>{let e={string:{unit:`belgi`,verb:`bo‘lishi kerak`},file:{unit:`bayt`,verb:`bo‘lishi kerak`},array:{unit:`element`,verb:`bo‘lishi kerak`},set:{unit:`element`,verb:`bo‘lishi kerak`},map:{unit:`yozuv`,verb:`bo‘lishi kerak`}};function t(t){return e[t]??null}let n={regex:`kirish`,email:`elektron pochta manzili`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO sana va vaqti`,date:`ISO sana`,time:`ISO vaqt`,duration:`ISO davomiylik`,ipv4:`IPv4 manzil`,ipv6:`IPv6 manzil`,mac:`MAC manzil`,cidrv4:`IPv4 diapazon`,cidrv6:`IPv6 diapazon`,base64:`base64 kodlangan satr`,base64url:`base64url kodlangan satr`,json_string:`JSON satr`,e164:`E.164 raqam`,jwt:`JWT`,template_literal:`kirish`},r={nan:`NaN`,number:`raqam`,array:`massiv`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=nK(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Noto‘g‘ri kirish: kutilgan instanceof ${e.expected}, qabul qilingan ${i}`:`Noto‘g‘ri kirish: kutilgan ${t}, qabul qilingan ${i}`}case`invalid_value`:return e.values.length===1?`Noto‘g‘ri kirish: kutilgan ${BG(e.values[0])}`:`Noto‘g‘ri variant: quyidagilardan biri kutilgan ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Juda katta: kutilgan ${e.origin??`qiymat`} ${n}${e.maximum.toString()} ${r.unit} ${r.verb}`:`Juda katta: kutilgan ${e.origin??`qiymat`} ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Juda kichik: kutilgan ${e.origin} ${n}${e.minimum.toString()} ${r.unit} ${r.verb}`:`Juda kichik: kutilgan ${e.origin} ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Noto‘g‘ri satr: "${t.prefix}" bilan boshlanishi kerak`:t.format===`ends_with`?`Noto‘g‘ri satr: "${t.suffix}" bilan tugashi kerak`:t.format===`includes`?`Noto‘g‘ri satr: "${t.includes}" ni o‘z ichiga olishi kerak`:t.format===`regex`?`Noto‘g‘ri satr: ${t.pattern} shabloniga mos kelishi kerak`:`Noto‘g‘ri ${n[t.format]??e.format}`}case`not_multiple_of`:return`Noto‘g‘ri raqam: ${e.divisor} ning karralisi bo‘lishi kerak`;case`unrecognized_keys`:return`Noma’lum kalit${e.keys.length>1?`lar`:``}: ${J(e.keys,`, `)}`;case`invalid_key`:return`${e.origin} dagi kalit noto‘g‘ri`;case`invalid_union`:return`Noto‘g‘ri kirish`;case`invalid_element`:return`${e.origin} da noto‘g‘ri qiymat`;default:return`Noto‘g‘ri kirish`}}}}));function y$(){return{localeError:b$()}}var b$,x$=o((()=>{bK(),b$=()=>{let e={string:{unit:`ký tự`,verb:`có`},file:{unit:`byte`,verb:`có`},array:{unit:`phần tử`,verb:`có`},set:{unit:`phần tử`,verb:`có`}};function t(t){return e[t]??null}let n={regex:`đầu vào`,email:`địa chỉ email`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ngày giờ ISO`,date:`ngày ISO`,time:`giờ ISO`,duration:`khoảng thời gian ISO`,ipv4:`địa chỉ IPv4`,ipv6:`địa chỉ IPv6`,cidrv4:`dải IPv4`,cidrv6:`dải IPv6`,base64:`chuỗi mã hóa base64`,base64url:`chuỗi mã hóa base64url`,json_string:`chuỗi JSON`,e164:`số E.164`,jwt:`JWT`,template_literal:`đầu vào`},r={nan:`NaN`,number:`số`,array:`mảng`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=nK(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Đầu vào không hợp lệ: mong đợi instanceof ${e.expected}, nhận được ${i}`:`Đầu vào không hợp lệ: mong đợi ${t}, nhận được ${i}`}case`invalid_value`:return e.values.length===1?`Đầu vào không hợp lệ: mong đợi ${BG(e.values[0])}`:`Tùy chọn không hợp lệ: mong đợi một trong các giá trị ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Quá lớn: mong đợi ${e.origin??`giá trị`} ${r.verb} ${n}${e.maximum.toString()} ${r.unit??`phần tử`}`:`Quá lớn: mong đợi ${e.origin??`giá trị`} ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Quá nhỏ: mong đợi ${e.origin} ${r.verb} ${n}${e.minimum.toString()} ${r.unit}`:`Quá nhỏ: mong đợi ${e.origin} ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Chuỗi không hợp lệ: phải bắt đầu bằng "${t.prefix}"`:t.format===`ends_with`?`Chuỗi không hợp lệ: phải kết thúc bằng "${t.suffix}"`:t.format===`includes`?`Chuỗi không hợp lệ: phải bao gồm "${t.includes}"`:t.format===`regex`?`Chuỗi không hợp lệ: phải khớp với mẫu ${t.pattern}`:`${n[t.format]??e.format} không hợp lệ`}case`not_multiple_of`:return`Số không hợp lệ: phải là bội số của ${e.divisor}`;case`unrecognized_keys`:return`Khóa không được nhận dạng: ${J(e.keys,`, `)}`;case`invalid_key`:return`Khóa không hợp lệ trong ${e.origin}`;case`invalid_union`:return`Đầu vào không hợp lệ`;case`invalid_element`:return`Giá trị không hợp lệ trong ${e.origin}`;default:return`Đầu vào không hợp lệ`}}}}));function S$(){return{localeError:C$()}}var C$,w$=o((()=>{bK(),C$=()=>{let e={string:{unit:`字符`,verb:`包含`},file:{unit:`字节`,verb:`包含`},array:{unit:`项`,verb:`包含`},set:{unit:`项`,verb:`包含`}};function t(t){return e[t]??null}let n={regex:`输入`,email:`电子邮件`,url:`URL`,emoji:`表情符号`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO日期时间`,date:`ISO日期`,time:`ISO时间`,duration:`ISO时长`,ipv4:`IPv4地址`,ipv6:`IPv6地址`,cidrv4:`IPv4网段`,cidrv6:`IPv6网段`,base64:`base64编码字符串`,base64url:`base64url编码字符串`,json_string:`JSON字符串`,e164:`E.164号码`,jwt:`JWT`,template_literal:`输入`},r={nan:`NaN`,number:`数字`,array:`数组`,null:`空值(null)`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=nK(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`无效输入:期望 instanceof ${e.expected},实际接收 ${i}`:`无效输入:期望 ${t},实际接收 ${i}`}case`invalid_value`:return e.values.length===1?`无效输入:期望 ${BG(e.values[0])}`:`无效选项:期望以下之一 ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`数值过大:期望 ${e.origin??`值`} ${n}${e.maximum.toString()} ${r.unit??`个元素`}`:`数值过大:期望 ${e.origin??`值`} ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`数值过小:期望 ${e.origin} ${n}${e.minimum.toString()} ${r.unit}`:`数值过小:期望 ${e.origin} ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`无效字符串:必须以 "${t.prefix}" 开头`:t.format===`ends_with`?`无效字符串:必须以 "${t.suffix}" 结尾`:t.format===`includes`?`无效字符串:必须包含 "${t.includes}"`:t.format===`regex`?`无效字符串:必须满足正则表达式 ${t.pattern}`:`无效${n[t.format]??e.format}`}case`not_multiple_of`:return`无效数字:必须是 ${e.divisor} 的倍数`;case`unrecognized_keys`:return`出现未知的键(key): ${J(e.keys,`, `)}`;case`invalid_key`:return`${e.origin} 中的键(key)无效`;case`invalid_union`:return`无效输入`;case`invalid_element`:return`${e.origin} 中包含无效值(value)`;default:return`无效输入`}}}}));function T$(){return{localeError:E$()}}var E$,D$=o((()=>{bK(),E$=()=>{let e={string:{unit:`字元`,verb:`擁有`},file:{unit:`位元組`,verb:`擁有`},array:{unit:`項目`,verb:`擁有`},set:{unit:`項目`,verb:`擁有`}};function t(t){return e[t]??null}let n={regex:`輸入`,email:`郵件地址`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO 日期時間`,date:`ISO 日期`,time:`ISO 時間`,duration:`ISO 期間`,ipv4:`IPv4 位址`,ipv6:`IPv6 位址`,cidrv4:`IPv4 範圍`,cidrv6:`IPv6 範圍`,base64:`base64 編碼字串`,base64url:`base64url 編碼字串`,json_string:`JSON 字串`,e164:`E.164 數值`,jwt:`JWT`,template_literal:`輸入`},r={nan:`NaN`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=nK(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`無效的輸入值:預期為 instanceof ${e.expected},但收到 ${i}`:`無效的輸入值:預期為 ${t},但收到 ${i}`}case`invalid_value`:return e.values.length===1?`無效的輸入值:預期為 ${BG(e.values[0])}`:`無效的選項:預期為以下其中之一 ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`數值過大:預期 ${e.origin??`值`} 應為 ${n}${e.maximum.toString()} ${r.unit??`個元素`}`:`數值過大:預期 ${e.origin??`值`} 應為 ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`數值過小:預期 ${e.origin} 應為 ${n}${e.minimum.toString()} ${r.unit}`:`數值過小:預期 ${e.origin} 應為 ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`無效的字串:必須以 "${t.prefix}" 開頭`:t.format===`ends_with`?`無效的字串:必須以 "${t.suffix}" 結尾`:t.format===`includes`?`無效的字串:必須包含 "${t.includes}"`:t.format===`regex`?`無效的字串:必須符合格式 ${t.pattern}`:`無效的 ${n[t.format]??e.format}`}case`not_multiple_of`:return`無效的數字:必須為 ${e.divisor} 的倍數`;case`unrecognized_keys`:return`無法識別的鍵值${e.keys.length>1?`們`:``}:${J(e.keys,`、`)}`;case`invalid_key`:return`${e.origin} 中有無效的鍵值`;case`invalid_union`:return`無效的輸入值`;case`invalid_element`:return`${e.origin} 中有無效的值`;default:return`無效的輸入值`}}}}));function O$(){return{localeError:k$()}}var k$,A$=o((()=>{bK(),k$=()=>{let e={string:{unit:`àmi`,verb:`ní`},file:{unit:`bytes`,verb:`ní`},array:{unit:`nkan`,verb:`ní`},set:{unit:`nkan`,verb:`ní`}};function t(t){return e[t]??null}let n={regex:`ẹ̀rọ ìbáwọlé`,email:`àdírẹ́sì ìmẹ́lì`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`àkókò ISO`,date:`ọjọ́ ISO`,time:`àkókò ISO`,duration:`àkókò tó pé ISO`,ipv4:`àdírẹ́sì IPv4`,ipv6:`àdírẹ́sì IPv6`,cidrv4:`àgbègbè IPv4`,cidrv6:`àgbègbè IPv6`,base64:`ọ̀rọ̀ tí a kọ́ ní base64`,base64url:`ọ̀rọ̀ base64url`,json_string:`ọ̀rọ̀ JSON`,e164:`nọ́mbà E.164`,jwt:`JWT`,template_literal:`ẹ̀rọ ìbáwọlé`},r={nan:`NaN`,number:`nọ́mbà`,array:`akopọ`};return e=>{switch(e.code){case`invalid_type`:{let t=r[e.expected]??e.expected,n=nK(e.input),i=r[n]??n;return/^[A-Z]/.test(e.expected)?`Ìbáwọlé aṣìṣe: a ní láti fi instanceof ${e.expected}, àmọ̀ a rí ${i}`:`Ìbáwọlé aṣìṣe: a ní láti fi ${t}, àmọ̀ a rí ${i}`}case`invalid_value`:return e.values.length===1?`Ìbáwọlé aṣìṣe: a ní láti fi ${BG(e.values[0])}`:`Àṣàyàn aṣìṣe: yan ọ̀kan lára ${J(e.values,`|`)}`;case`too_big`:{let n=e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Tó pọ̀ jù: a ní láti jẹ́ pé ${e.origin??`iye`} ${r.verb} ${n}${e.maximum} ${r.unit}`:`Tó pọ̀ jù: a ní láti jẹ́ ${n}${e.maximum}`}case`too_small`:{let n=e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Kéré ju: a ní láti jẹ́ pé ${e.origin} ${r.verb} ${n}${e.minimum} ${r.unit}`:`Kéré ju: a ní láti jẹ́ ${n}${e.minimum}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ bẹ̀rẹ̀ pẹ̀lú "${t.prefix}"`:t.format===`ends_with`?`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ parí pẹ̀lú "${t.suffix}"`:t.format===`includes`?`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ ní "${t.includes}"`:t.format===`regex`?`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ bá àpẹẹrẹ mu ${t.pattern}`:`Aṣìṣe: ${n[t.format]??e.format}`}case`not_multiple_of`:return`Nọ́mbà aṣìṣe: gbọ́dọ̀ jẹ́ èyà pípín ti ${e.divisor}`;case`unrecognized_keys`:return`Bọtìnì àìmọ̀: ${J(e.keys,`, `)}`;case`invalid_key`:return`Bọtìnì aṣìṣe nínú ${e.origin}`;case`invalid_union`:return`Ìbáwọlé aṣìṣe`;case`invalid_element`:return`Iye aṣìṣe nínú ${e.origin}`;default:return`Ìbáwọlé aṣìṣe`}}}})),j$=c({ar:()=>NX,az:()=>IX,be:()=>BX,bg:()=>UX,ca:()=>KX,cs:()=>YX,da:()=>QX,de:()=>tZ,el:()=>iZ,en:()=>sZ,eo:()=>uZ,es:()=>pZ,fa:()=>gZ,fi:()=>yZ,fr:()=>SZ,frCA:()=>TZ,he:()=>OZ,hr:()=>jZ,hu:()=>PZ,hy:()=>zZ,id:()=>HZ,is:()=>GZ,it:()=>JZ,ja:()=>ZZ,ka:()=>eQ,kh:()=>oQ,km:()=>rQ,ko:()=>cQ,lt:()=>fQ,mk:()=>gQ,ms:()=>yQ,nl:()=>SQ,no:()=>TQ,ota:()=>OQ,pl:()=>PQ,ps:()=>jQ,pt:()=>LQ,ro:()=>BQ,ru:()=>WQ,sl:()=>qQ,sv:()=>XQ,ta:()=>$Q,th:()=>n$,tr:()=>a$,ua:()=>d$,uk:()=>c$,ur:()=>p$,uz:()=>g$,vi:()=>y$,yo:()=>O$,zhCN:()=>S$,zhTW:()=>T$}),M$=o((()=>{FX(),RX(),HX(),GX(),JX(),ZX(),eZ(),rZ(),oZ(),lZ(),fZ(),hZ(),vZ(),xZ(),wZ(),DZ(),AZ(),NZ(),IZ(),VZ(),WZ(),qZ(),XZ(),$Z(),nQ(),sQ(),aQ(),uQ(),hQ(),vQ(),xQ(),wQ(),DQ(),AQ(),NQ(),IQ(),zQ(),HQ(),KQ(),YQ(),QQ(),t$(),i$(),s$(),f$(),u$(),h$(),v$(),x$(),w$(),D$(),A$()}));function N$(){return new L$}var P$,F$,I$,L$,R$,z$=o((()=>{F$=Symbol(`ZodOutput`),I$=Symbol(`ZodInput`),L$=class{constructor(){this._map=new WeakMap,this._idmap=new Map}add(e,...t){let n=t[0];return this._map.set(e,n),n&&typeof n==`object`&&`id`in n&&this._idmap.set(n.id,e),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(e){let t=this._map.get(e);return t&&typeof t==`object`&&`id`in t&&this._idmap.delete(t.id),this._map.delete(e),this}get(e){let t=e._zod.parent;if(t){let n={...this.get(t)??{}};delete n.id;let r={...n,...this._map.get(e)};return Object.keys(r).length?r:void 0}return this._map.get(e)}has(e){return this._map.has(e)}},(P$=globalThis).__zod_globalRegistry??(P$.__zod_globalRegistry=N$()),R$=globalThis.__zod_globalRegistry}));function B$(e,t){return new e({type:`string`,...Y(t)})}function V$(e,t){return new e({type:`string`,coerce:!0,...Y(t)})}function H$(e,t){return new e({type:`string`,format:`email`,check:`string_format`,abort:!1,...Y(t)})}function U$(e,t){return new e({type:`string`,format:`guid`,check:`string_format`,abort:!1,...Y(t)})}function W$(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,...Y(t)})}function G$(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v4`,...Y(t)})}function K$(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v6`,...Y(t)})}function q$(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v7`,...Y(t)})}function J$(e,t){return new e({type:`string`,format:`url`,check:`string_format`,abort:!1,...Y(t)})}function Y$(e,t){return new e({type:`string`,format:`emoji`,check:`string_format`,abort:!1,...Y(t)})}function X$(e,t){return new e({type:`string`,format:`nanoid`,check:`string_format`,abort:!1,...Y(t)})}function Z$(e,t){return new e({type:`string`,format:`cuid`,check:`string_format`,abort:!1,...Y(t)})}function Q$(e,t){return new e({type:`string`,format:`cuid2`,check:`string_format`,abort:!1,...Y(t)})}function $$(e,t){return new e({type:`string`,format:`ulid`,check:`string_format`,abort:!1,...Y(t)})}function e1(e,t){return new e({type:`string`,format:`xid`,check:`string_format`,abort:!1,...Y(t)})}function t1(e,t){return new e({type:`string`,format:`ksuid`,check:`string_format`,abort:!1,...Y(t)})}function n1(e,t){return new e({type:`string`,format:`ipv4`,check:`string_format`,abort:!1,...Y(t)})}function r1(e,t){return new e({type:`string`,format:`ipv6`,check:`string_format`,abort:!1,...Y(t)})}function i1(e,t){return new e({type:`string`,format:`mac`,check:`string_format`,abort:!1,...Y(t)})}function a1(e,t){return new e({type:`string`,format:`cidrv4`,check:`string_format`,abort:!1,...Y(t)})}function o1(e,t){return new e({type:`string`,format:`cidrv6`,check:`string_format`,abort:!1,...Y(t)})}function s1(e,t){return new e({type:`string`,format:`base64`,check:`string_format`,abort:!1,...Y(t)})}function c1(e,t){return new e({type:`string`,format:`base64url`,check:`string_format`,abort:!1,...Y(t)})}function l1(e,t){return new e({type:`string`,format:`e164`,check:`string_format`,abort:!1,...Y(t)})}function u1(e,t){return new e({type:`string`,format:`jwt`,check:`string_format`,abort:!1,...Y(t)})}function d1(e,t){return new e({type:`string`,format:`datetime`,check:`string_format`,offset:!1,local:!1,precision:null,...Y(t)})}function f1(e,t){return new e({type:`string`,format:`date`,check:`string_format`,...Y(t)})}function p1(e,t){return new e({type:`string`,format:`time`,check:`string_format`,precision:null,...Y(t)})}function m1(e,t){return new e({type:`string`,format:`duration`,check:`string_format`,...Y(t)})}function h1(e,t){return new e({type:`number`,checks:[],...Y(t)})}function g1(e,t){return new e({type:`number`,coerce:!0,checks:[],...Y(t)})}function _1(e,t){return new e({type:`number`,check:`number_format`,abort:!1,format:`safeint`,...Y(t)})}function v1(e,t){return new e({type:`number`,check:`number_format`,abort:!1,format:`float32`,...Y(t)})}function y1(e,t){return new e({type:`number`,check:`number_format`,abort:!1,format:`float64`,...Y(t)})}function b1(e,t){return new e({type:`number`,check:`number_format`,abort:!1,format:`int32`,...Y(t)})}function x1(e,t){return new e({type:`number`,check:`number_format`,abort:!1,format:`uint32`,...Y(t)})}function S1(e,t){return new e({type:`boolean`,...Y(t)})}function C1(e,t){return new e({type:`boolean`,coerce:!0,...Y(t)})}function w1(e,t){return new e({type:`bigint`,...Y(t)})}function T1(e,t){return new e({type:`bigint`,coerce:!0,...Y(t)})}function E1(e,t){return new e({type:`bigint`,check:`bigint_format`,abort:!1,format:`int64`,...Y(t)})}function D1(e,t){return new e({type:`bigint`,check:`bigint_format`,abort:!1,format:`uint64`,...Y(t)})}function O1(e,t){return new e({type:`symbol`,...Y(t)})}function k1(e,t){return new e({type:`undefined`,...Y(t)})}function A1(e,t){return new e({type:`null`,...Y(t)})}function j1(e){return new e({type:`any`})}function M1(e){return new e({type:`unknown`})}function N1(e,t){return new e({type:`never`,...Y(t)})}function P1(e,t){return new e({type:`void`,...Y(t)})}function F1(e,t){return new e({type:`date`,...Y(t)})}function I1(e,t){return new e({type:`date`,coerce:!0,...Y(t)})}function L1(e,t){return new e({type:`nan`,...Y(t)})}function R1(e,t){return new gJ({check:`less_than`,...Y(t),value:e,inclusive:!1})}function z1(e,t){return new gJ({check:`less_than`,...Y(t),value:e,inclusive:!0})}function B1(e,t){return new _J({check:`greater_than`,...Y(t),value:e,inclusive:!1})}function V1(e,t){return new _J({check:`greater_than`,...Y(t),value:e,inclusive:!0})}function H1(e){return B1(0,e)}function U1(e){return R1(0,e)}function W1(e){return z1(0,e)}function G1(e){return V1(0,e)}function K1(e,t){return new vJ({check:`multiple_of`,...Y(t),value:e})}function q1(e,t){return new xJ({check:`max_size`,...Y(t),maximum:e})}function J1(e,t){return new SJ({check:`min_size`,...Y(t),minimum:e})}function Y1(e,t){return new CJ({check:`size_equals`,...Y(t),size:e})}function X1(e,t){return new wJ({check:`max_length`,...Y(t),maximum:e})}function Z1(e,t){return new TJ({check:`min_length`,...Y(t),minimum:e})}function Q1(e,t){return new EJ({check:`length_equals`,...Y(t),length:e})}function $1(e,t){return new OJ({check:`string_format`,format:`regex`,...Y(t),pattern:e})}function e0(e){return new kJ({check:`string_format`,format:`lowercase`,...Y(e)})}function t0(e){return new AJ({check:`string_format`,format:`uppercase`,...Y(e)})}function n0(e,t){return new jJ({check:`string_format`,format:`includes`,...Y(t),includes:e})}function r0(e,t){return new MJ({check:`string_format`,format:`starts_with`,...Y(t),prefix:e})}function i0(e,t){return new NJ({check:`string_format`,format:`ends_with`,...Y(t),suffix:e})}function a0(e,t,n){return new PJ({check:`property`,property:e,schema:t,...Y(n)})}function o0(e,t){return new FJ({check:`mime_type`,mime:e,...Y(t)})}function s0(e){return new IJ({check:`overwrite`,tx:e})}function c0(e){return s0(t=>t.normalize(e))}function l0(){return s0(e=>e.trim())}function u0(){return s0(e=>e.toLowerCase())}function d0(){return s0(e=>e.toUpperCase())}function f0(){return s0(e=>NG(e))}function p0(e,t,n){return new e({type:`array`,element:t,...Y(n)})}function m0(e,t,n){return new e({type:`union`,options:t,...Y(n)})}function h0(e,t,n){return new e({type:`union`,options:t,inclusive:!1,...Y(n)})}function g0(e,t,n,r){return new e({type:`union`,options:n,discriminator:t,...Y(r)})}function _0(e,t,n){return new e({type:`intersection`,left:t,right:n})}function v0(e,t,n,r){let i=n instanceof fY;return new e({type:`tuple`,items:t,rest:i?n:null,...Y(i?r:n)})}function y0(e,t,n,r){return new e({type:`record`,keyType:t,valueType:n,...Y(r)})}function b0(e,t,n,r){return new e({type:`map`,keyType:t,valueType:n,...Y(r)})}function x0(e,t,n){return new e({type:`set`,valueType:t,...Y(n)})}function S0(e,t,n){return new e({type:`enum`,entries:Array.isArray(t)?Object.fromEntries(t.map(e=>[e,e])):t,...Y(n)})}function C0(e,t,n){return new e({type:`enum`,entries:t,...Y(n)})}function w0(e,t,n){return new e({type:`literal`,values:Array.isArray(t)?t:[t],...Y(n)})}function T0(e,t){return new e({type:`file`,...Y(t)})}function E0(e,t){return new e({type:`transform`,transform:t})}function D0(e,t){return new e({type:`optional`,innerType:t})}function O0(e,t){return new e({type:`nullable`,innerType:t})}function k0(e,t,n){return new e({type:`default`,innerType:t,get defaultValue(){return typeof n==`function`?n():IG(n)}})}function A0(e,t,n){return new e({type:`nonoptional`,innerType:t,...Y(n)})}function j0(e,t){return new e({type:`success`,innerType:t})}function M0(e,t,n){return new e({type:`catch`,innerType:t,catchValue:typeof n==`function`?n:()=>n})}function N0(e,t,n){return new e({type:`pipe`,in:t,out:n})}function P0(e,t){return new e({type:`readonly`,innerType:t})}function F0(e,t,n){return new e({type:`template_literal`,parts:t,...Y(n)})}function I0(e,t){return new e({type:`lazy`,getter:t})}function L0(e,t){return new e({type:`promise`,innerType:t})}function R0(e,t,n){let r=Y(n);return r.abort??=!0,new e({type:`custom`,check:`custom`,fn:t,...r})}function z0(e,t,n){return new e({type:`custom`,check:`custom`,fn:t,...Y(n)})}function B0(e,t){let n=V0(t=>(t.addIssue=e=>{if(typeof e==`string`)t.issues.push(rK(e,t.value,n._zod.def));else{let r=e;r.fatal&&(r.continue=!1),r.code??=`custom`,r.input??=t.value,r.inst??=n,r.continue??=!n._zod.def.abort,t.issues.push(rK(r))}},e(t.value,t)),t);return n}function V0(e,t){let n=new mJ({check:`custom`,...Y(t)});return n._zod.check=e,n}function H0(e){let t=new mJ({check:`describe`});return t._zod.onattach=[t=>{let n=R$.get(t)??{};R$.add(t,{...n,description:e})}],t._zod.check=()=>{},t}function U0(e){let t=new mJ({check:`meta`});return t._zod.onattach=[t=>{let n=R$.get(t)??{};R$.add(t,{...n,...e})}],t._zod.check=()=>{},t}function W0(e,t){let n=Y(t),r=n.truthy??[`true`,`1`,`yes`,`on`,`y`,`enabled`],i=n.falsy??[`false`,`0`,`no`,`off`,`n`,`disabled`];n.case!==`sensitive`&&(r=r.map(e=>typeof e==`string`?e.toLowerCase():e),i=i.map(e=>typeof e==`string`?e.toLowerCase():e));let a=new Set(r),o=new Set(i),s=e.Codec??wX,c=e.Boolean??HY,l=new s({type:`pipe`,in:new(e.String??pY)({type:`string`,error:n.error}),out:new c({type:`boolean`,error:n.error}),transform:((e,t)=>{let r=e;return n.case!==`sensitive`&&(r=r.toLowerCase()),a.has(r)?!0:!o.has(r)&&(t.issues.push({code:`invalid_value`,expected:`stringbool`,values:[...a,...o],input:t.value,inst:l,continue:!1}),{})}),reverseTransform:((e,t)=>e===!0?r[0]||`true`:i[0]||`false`),error:n.error});return l}function G0(e,t,n,r={}){let i=Y(r),a={...Y(r),check:`string_format`,type:`string`,format:t,fn:typeof n==`function`?n:e=>n.test(e),...i};return n instanceof RegExp&&(a.pattern=n),new e(a)}var K0,q0=o((()=>{LJ(),z$(),MX(),bK(),K0={Any:null,Minute:-1,Second:0,Millisecond:3,Microsecond:6}}));function J0(e){let t=e?.target??`draft-2020-12`;return t===`draft-4`&&(t=`draft-04`),t===`draft-7`&&(t=`draft-07`),{processors:e.processors??{},metadataRegistry:e?.metadata??R$,target:t,unrepresentable:e?.unrepresentable??`throw`,override:e?.override??(()=>{}),io:e?.io??`output`,counter:0,seen:new Map,cycles:e?.cycles??`ref`,reused:e?.reused??`inline`,external:e?.external??void 0}}function Y0(e,t,n={path:[],schemaPath:[]}){var r;let i=e._zod.def,a=t.seen.get(e);if(a)return a.count++,n.schemaPath.includes(e)&&(a.cycle=n.path),a.schema;let o={schema:{},count:1,cycle:void 0,path:n.path};t.seen.set(e,o);let s=e._zod.toJSONSchema?.();if(s)o.schema=s;else{let r={...n,schemaPath:[...n.schemaPath,e],path:n.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,o.schema,r);else{let n=o.schema,a=t.processors[i.type];if(!a)throw Error(`[toJSONSchema]: Non-representable type encountered: ${i.type}`);a(e,t,n,r)}let a=e._zod.parent;a&&(o.ref||=a,Y0(a,t,r),t.seen.get(a).isParent=!0)}let c=t.metadataRegistry.get(e);return c&&Object.assign(o.schema,c),t.io===`input`&&Q0(e)&&(delete o.schema.examples,delete o.schema.default),t.io===`input`&&`_prefault`in o.schema&&((r=o.schema).default??(r.default=o.schema._prefault)),delete o.schema._prefault,t.seen.get(e).schema}function X0(e,t){let n=e.seen.get(t);if(!n)throw Error(`Unprocessed schema. This is a bug in Zod.`);let r=new Map;for(let t of e.seen.entries()){let n=e.metadataRegistry.get(t[0])?.id;if(n){let e=r.get(n);if(e&&e!==t[0])throw Error(`Duplicate schema id "${n}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);r.set(n,t[0])}}let i=t=>{let r=e.target===`draft-2020-12`?`$defs`:`definitions`;if(e.external){let n=e.external.registry.get(t[0])?.id,i=e.external.uri??(e=>e);if(n)return{ref:i(n)};let a=t[1].defId??t[1].schema.id??`schema${e.counter++}`;return t[1].defId=a,{defId:a,ref:`${i(`__shared`)}#/${r}/${a}`}}if(t[1]===n)return{ref:`#`};let i=`#/${r}/`,a=t[1].schema.id??`__schema${e.counter++}`;return{defId:a,ref:i+a}},a=e=>{if(e[1].schema.$ref)return;let t=e[1],{ref:n,defId:r}=i(e);t.def={...t.schema},r&&(t.defId=r);let a=t.schema;for(let e in a)delete a[e];a.$ref=n};if(e.cycles===`throw`)for(let t of e.seen.entries()){let e=t[1];if(e.cycle)throw Error(`Cycle detected: #/${e.cycle?.join(`/`)}/ -Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let n of e.seen.entries()){let r=n[1];if(t===n[0]){a(n);continue}if(e.external){let r=e.external.registry.get(n[0])?.id;if(t!==n[0]&&r){a(n);continue}}if(e.metadataRegistry.get(n[0])?.id){a(n);continue}if(r.cycle){a(n);continue}if(r.count>1&&e.reused===`ref`){a(n);continue}}}function G0(e,t){let n=e.seen.get(t);if(!n)throw Error(`Unprocessed schema. This is a bug in Zod.`);let r=t=>{let n=e.seen.get(t);if(n.ref===null)return;let i=n.def??n.schema,a={...i},o=n.ref;if(n.ref=null,o){r(o);let n=e.seen.get(o),s=n.schema;if(s.$ref&&(e.target===`draft-07`||e.target===`draft-04`||e.target===`openapi-3.0`)?(i.allOf=i.allOf??[],i.allOf.push(s)):Object.assign(i,s),Object.assign(i,a),t._zod.parent===o)for(let e in i)e!==`$ref`&&e!==`allOf`&&(e in a||delete i[e]);if(s.$ref&&n.def)for(let e in i)e!==`$ref`&&e!==`allOf`&&e in n.def&&JSON.stringify(i[e])===JSON.stringify(n.def[e])&&delete i[e]}let s=t._zod.parent;if(s&&s!==o){r(s);let t=e.seen.get(s);if(t?.schema.$ref&&(i.$ref=t.schema.$ref,t.def))for(let e in i)e!==`$ref`&&e!==`allOf`&&e in t.def&&JSON.stringify(i[e])===JSON.stringify(t.def[e])&&delete i[e]}e.override({zodSchema:t,jsonSchema:i,path:n.path??[]})};for(let t of[...e.seen.entries()].reverse())r(t[0]);let i={};if(e.target===`draft-2020-12`?i.$schema=`https://json-schema.org/draft/2020-12/schema`:e.target===`draft-07`?i.$schema=`http://json-schema.org/draft-07/schema#`:e.target===`draft-04`?i.$schema=`http://json-schema.org/draft-04/schema#`:e.target,e.external?.uri){let n=e.external.registry.get(t)?.id;if(!n)throw Error("Schema is missing an `id` property");i.$id=e.external.uri(n)}Object.assign(i,n.def??n.schema);let a=e.metadataRegistry.get(t)?.id;a!==void 0&&i.id===a&&delete i.id;let o=e.external?.defs??{};for(let t of e.seen.entries()){let e=t[1];e.def&&e.defId&&(e.def.id===e.defId&&delete e.def.id,o[e.defId]=e.def)}e.external||Object.keys(o).length>0&&(e.target===`draft-2020-12`?i.$defs=o:i.definitions=o);try{let n=JSON.parse(JSON.stringify(i));return Object.defineProperty(n,"~standard",{value:{...t[`~standard`],jsonSchema:{input:J0(t,`input`,e.processors),output:J0(t,`output`,e.processors)}},enumerable:!1,writable:!1}),n}catch{throw Error(`Error converting schema to JSON.`)}}function K0(e,t){let n=t??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);let r=e._zod.def;if(r.type===`transform`)return!0;if(r.type===`array`)return K0(r.element,n);if(r.type===`set`)return K0(r.valueType,n);if(r.type===`lazy`)return K0(r.getter(),n);if(r.type===`promise`||r.type===`optional`||r.type===`nonoptional`||r.type===`nullable`||r.type===`readonly`||r.type==="default"||r.type===`prefault`)return K0(r.innerType,n);if(r.type===`intersection`)return K0(r.left,n)||K0(r.right,n);if(r.type===`record`||r.type===`map`)return K0(r.keyType,n)||K0(r.valueType,n);if(r.type===`pipe`)return e._zod.traits.has(`$ZodCodec`)?!0:K0(r.in,n)||K0(r.out,n);if(r.type===`object`){for(let e in r.shape)if(K0(r.shape[e],n))return!0;return!1}if(r.type===`union`){for(let e of r.options)if(K0(e,n))return!0;return!1}if(r.type===`tuple`){for(let e of r.items)if(K0(e,n))return!0;return!!(r.rest&&K0(r.rest,n))}return!1}var q0,J0,Y0=o((()=>{N$(),q0=(e,t={})=>n=>{let r=H0({...n,processors:t});return U0(e,r),W0(r,e),G0(r,e)},J0=(e,t,n={})=>r=>{let{libraryOptions:i,target:a}=r??{},o=H0({...i??{},target:a,io:t,processors:n});return U0(e,o),W0(o,e),G0(o,e)}}));function X0(e,t){if(`_idmap`in e){let n=e,r=H0({...t,processors:L2}),i={};for(let e of n._idmap.entries()){let[t,n]=e;U0(n,r)}let a={};r.external={registry:n,uri:t?.uri,defs:i};for(let e of n._idmap.entries()){let[t,n]=e;W0(r,n),a[t]=G0(r,n)}return Object.keys(i).length>0&&(a.__shared={[r.target===`draft-2020-12`?`$defs`:`definitions`]:i}),{schemas:a}}let n=H0({...t,processors:L2});return U0(e,n),W0(n,e),G0(n,e)}var Z0,Q0,$0,e2,t2,n2,r2,i2,a2,o2,s2,c2,l2,u2,d2,f2,p2,m2,h2,g2,_2,v2,y2,b2,x2,S2,C2,w2,T2,E2,D2,O2,k2,A2,j2,M2,N2,P2,F2,I2,L2,R2=o((()=>{Y0(),mK(),Z0={guid:`uuid`,url:`uri`,datetime:`date-time`,json_string:`json-string`,regex:``},Q0=(e,t,n,r)=>{let i=n;i.type=`string`;let{minimum:a,maximum:o,format:s,patterns:c,contentEncoding:l}=e._zod.bag;if(typeof a==`number`&&(i.minLength=a),typeof o==`number`&&(i.maxLength=o),s&&(i.format=Z0[s]??s,i.format===``&&delete i.format,s===`time`&&delete i.format),l&&(i.contentEncoding=l),c&&c.size>0){let e=[...c];e.length===1?i.pattern=e[0].source:e.length>1&&(i.allOf=[...e.map(e=>({...t.target===`draft-07`||t.target===`draft-04`||t.target===`openapi-3.0`?{type:`string`}:{},pattern:e.source}))])}},$0=(e,t,n,r)=>{let i=n,{minimum:a,maximum:o,format:s,multipleOf:c,exclusiveMaximum:l,exclusiveMinimum:u}=e._zod.bag;i.type=typeof s==`string`&&s.includes(`int`)?`integer`:`number`;let d=typeof u==`number`&&u>=(a??-1/0),f=typeof l==`number`&&l<=(o??1/0),p=t.target===`draft-04`||t.target===`openapi-3.0`;d?p?(i.minimum=u,i.exclusiveMinimum=!0):i.exclusiveMinimum=u:typeof a==`number`&&(i.minimum=a),f?p?(i.maximum=l,i.exclusiveMaximum=!0):i.exclusiveMaximum=l:typeof o==`number`&&(i.maximum=o),typeof c==`number`&&(i.multipleOf=c)},e2=(e,t,n,r)=>{n.type=`boolean`},t2=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`BigInt cannot be represented in JSON Schema`)},n2=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Symbols cannot be represented in JSON Schema`)},r2=(e,t,n,r)=>{t.target===`openapi-3.0`?(n.type=`string`,n.nullable=!0,n.enum=[null]):n.type=`null`},i2=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Undefined cannot be represented in JSON Schema`)},a2=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Void cannot be represented in JSON Schema`)},o2=(e,t,n,r)=>{n.not={}},s2=(e,t,n,r)=>{},c2=(e,t,n,r)=>{},l2=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Date cannot be represented in JSON Schema`)},u2=(e,t,n,r)=>{let i=e._zod.def,a=dG(i.entries);a.every(e=>typeof e==`number`)&&(n.type=`number`),a.every(e=>typeof e==`string`)&&(n.type=`string`),n.enum=a},d2=(e,t,n,r)=>{let i=e._zod.def,a=[];for(let e of i.values)if(e===void 0){if(t.unrepresentable===`throw`)throw Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof e==`bigint`){if(t.unrepresentable===`throw`)throw Error(`BigInt literals cannot be represented in JSON Schema`);a.push(Number(e))}else a.push(e);if(a.length!==0)if(a.length===1){let e=a[0];n.type=e===null?`null`:typeof e,t.target===`draft-04`||t.target===`openapi-3.0`?n.enum=[e]:n.const=e}else a.every(e=>typeof e==`number`)&&(n.type=`number`),a.every(e=>typeof e==`string`)&&(n.type=`string`),a.every(e=>typeof e==`boolean`)&&(n.type=`boolean`),a.every(e=>e===null)&&(n.type=`null`),n.enum=a},f2=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`NaN cannot be represented in JSON Schema`)},p2=(e,t,n,r)=>{let i=n,a=e._zod.pattern;if(!a)throw Error(`Pattern not found in template literal`);i.type=`string`,i.pattern=a.source},m2=(e,t,n,r)=>{let i=n,a={type:`string`,format:`binary`,contentEncoding:`binary`},{minimum:o,maximum:s,mime:c}=e._zod.bag;o!==void 0&&(a.minLength=o),s!==void 0&&(a.maxLength=s),c?c.length===1?(a.contentMediaType=c[0],Object.assign(i,a)):(Object.assign(i,a),i.anyOf=c.map(e=>({contentMediaType:e}))):Object.assign(i,a)},h2=(e,t,n,r)=>{n.type=`boolean`},g2=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Custom types cannot be represented in JSON Schema`)},_2=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Function types cannot be represented in JSON Schema`)},v2=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Transforms cannot be represented in JSON Schema`)},y2=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Map cannot be represented in JSON Schema`)},b2=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Set cannot be represented in JSON Schema`)},x2=(e,t,n,r)=>{let i=n,a=e._zod.def,{minimum:o,maximum:s}=e._zod.bag;typeof o==`number`&&(i.minItems=o),typeof s==`number`&&(i.maxItems=s),i.type=`array`,i.items=U0(a.element,t,{...r,path:[...r.path,`items`]})},S2=(e,t,n,r)=>{let i=n,a=e._zod.def;i.type=`object`,i.properties={};let o=a.shape;for(let e in o)i.properties[e]=U0(o[e],t,{...r,path:[...r.path,`properties`,e]});let s=new Set(Object.keys(o)),c=new Set([...s].filter(e=>{let n=a.shape[e]._zod;return t.io===`input`?n.optin===void 0:n.optout===void 0}));c.size>0&&(i.required=Array.from(c)),a.catchall?._zod.def.type===`never`?i.additionalProperties=!1:a.catchall?a.catchall&&(i.additionalProperties=U0(a.catchall,t,{...r,path:[...r.path,`additionalProperties`]})):t.io===`output`&&(i.additionalProperties=!1)},C2=(e,t,n,r)=>{let i=e._zod.def,a=i.inclusive===!1,o=i.options.map((e,n)=>U0(e,t,{...r,path:[...r.path,a?`oneOf`:`anyOf`,n]}));a?n.oneOf=o:n.anyOf=o},w2=(e,t,n,r)=>{let i=e._zod.def,a=U0(i.left,t,{...r,path:[...r.path,`allOf`,0]}),o=U0(i.right,t,{...r,path:[...r.path,`allOf`,1]}),s=e=>`allOf`in e&&Object.keys(e).length===1;n.allOf=[...s(a)?a.allOf:[a],...s(o)?o.allOf:[o]]},T2=(e,t,n,r)=>{let i=n,a=e._zod.def;i.type=`array`;let o=t.target===`draft-2020-12`?`prefixItems`:`items`,s=t.target===`draft-2020-12`||t.target===`openapi-3.0`?`items`:`additionalItems`,c=a.items.map((e,n)=>U0(e,t,{...r,path:[...r.path,o,n]})),l=a.rest?U0(a.rest,t,{...r,path:[...r.path,s,...t.target===`openapi-3.0`?[a.items.length]:[]]}):null;t.target===`draft-2020-12`?(i.prefixItems=c,l&&(i.items=l)):t.target===`openapi-3.0`?(i.items={anyOf:c},l&&i.items.anyOf.push(l),i.minItems=c.length,l||(i.maxItems=c.length)):(i.items=c,l&&(i.additionalItems=l));let{minimum:u,maximum:d}=e._zod.bag;typeof u==`number`&&(i.minItems=u),typeof d==`number`&&(i.maxItems=d)},E2=(e,t,n,r)=>{let i=n,a=e._zod.def;i.type=`object`;let o=a.keyType,s=o._zod.bag?.patterns;if(a.mode===`loose`&&s&&s.size>0){let e=U0(a.valueType,t,{...r,path:[...r.path,`patternProperties`,`*`]});i.patternProperties={};for(let t of s)i.patternProperties[t.source]=e}else(t.target===`draft-07`||t.target===`draft-2020-12`)&&(i.propertyNames=U0(a.keyType,t,{...r,path:[...r.path,`propertyNames`]})),i.additionalProperties=U0(a.valueType,t,{...r,path:[...r.path,`additionalProperties`]});let c=o._zod.values;if(c){let e=[...c].filter(e=>typeof e==`string`||typeof e==`number`);e.length>0&&(i.required=e)}},D2=(e,t,n,r)=>{let i=e._zod.def,a=U0(i.innerType,t,r),o=t.seen.get(e);t.target===`openapi-3.0`?(o.ref=i.innerType,n.nullable=!0):n.anyOf=[a,{type:`null`}]},O2=(e,t,n,r)=>{let i=e._zod.def;U0(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},k2=(e,t,n,r)=>{let i=e._zod.def;U0(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,n.default=JSON.parse(JSON.stringify(i.defaultValue))},A2=(e,t,n,r)=>{let i=e._zod.def;U0(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,t.io===`input`&&(n._prefault=JSON.parse(JSON.stringify(i.defaultValue)))},j2=(e,t,n,r)=>{let i=e._zod.def;U0(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType;let o;try{o=i.catchValue(void 0)}catch{throw Error(`Dynamic catch values are not supported in JSON Schema`)}n.default=o},M2=(e,t,n,r)=>{let i=e._zod.def,a=i.in._zod.traits.has(`$ZodTransform`),o=t.io===`input`?a?i.out:i.in:i.out;U0(o,t,r);let s=t.seen.get(e);s.ref=o},N2=(e,t,n,r)=>{let i=e._zod.def;U0(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,n.readOnly=!0},P2=(e,t,n,r)=>{let i=e._zod.def;U0(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},F2=(e,t,n,r)=>{let i=e._zod.def;U0(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},I2=(e,t,n,r)=>{let i=e._zod.innerType;U0(i,t,r);let a=t.seen.get(e);a.ref=i},L2={string:Q0,number:$0,boolean:e2,bigint:t2,symbol:n2,null:r2,undefined:i2,void:a2,never:o2,any:s2,unknown:c2,date:l2,enum:u2,literal:d2,nan:f2,template_literal:p2,file:m2,success:h2,custom:g2,function:_2,transform:v2,map:y2,set:b2,array:x2,object:S2,union:C2,intersection:w2,tuple:T2,record:E2,nullable:D2,nonoptional:O2,default:k2,prefault:A2,catch:j2,pipe:M2,readonly:N2,promise:P2,optional:F2,lazy:I2}})),z2,B2=o((()=>{R2(),Y0(),z2=class{get metadataRegistry(){return this.ctx.metadataRegistry}get target(){return this.ctx.target}get unrepresentable(){return this.ctx.unrepresentable}get override(){return this.ctx.override}get io(){return this.ctx.io}get counter(){return this.ctx.counter}set counter(e){this.ctx.counter=e}get seen(){return this.ctx.seen}constructor(e){let t=e?.target??`draft-2020-12`;t===`draft-4`&&(t=`draft-04`),t===`draft-7`&&(t=`draft-07`),this.ctx=H0({processors:L2,target:t,...e?.metadata&&{metadata:e.metadata},...e?.unrepresentable&&{unrepresentable:e.unrepresentable},...e?.override&&{override:e.override},...e?.io&&{io:e.io}})}process(e,t={path:[],schemaPath:[]}){return U0(e,this.ctx,t)}emit(e,t){t&&(t.cycles&&(this.ctx.cycles=t.cycles),t.reused&&(this.ctx.reused=t.reused),t.external&&(this.ctx.external=t.external)),W0(this.ctx,e);let{"~standard":n,...r}=G0(this.ctx,e);return r}}})),V2=c({}),H2=o((()=>{})),U2=c({$ZodAny:()=>HY,$ZodArray:()=>qY,$ZodAsyncError:()=>tG,$ZodBase64:()=>kY,$ZodBase64URL:()=>AY,$ZodBigInt:()=>LY,$ZodBigIntFormat:()=>RY,$ZodBoolean:()=>IY,$ZodCIDRv4:()=>DY,$ZodCIDRv6:()=>OY,$ZodCUID:()=>hY,$ZodCUID2:()=>gY,$ZodCatch:()=>hX,$ZodCheck:()=>cJ,$ZodCheckBigIntFormat:()=>mJ,$ZodCheckEndsWith:()=>DJ,$ZodCheckGreaterThan:()=>dJ,$ZodCheckIncludes:()=>TJ,$ZodCheckLengthEquals:()=>bJ,$ZodCheckLessThan:()=>uJ,$ZodCheckLowerCase:()=>CJ,$ZodCheckMaxLength:()=>vJ,$ZodCheckMaxSize:()=>hJ,$ZodCheckMimeType:()=>kJ,$ZodCheckMinLength:()=>yJ,$ZodCheckMinSize:()=>gJ,$ZodCheckMultipleOf:()=>fJ,$ZodCheckNumberFormat:()=>pJ,$ZodCheckOverwrite:()=>AJ,$ZodCheckProperty:()=>OJ,$ZodCheckRegex:()=>SJ,$ZodCheckSizeEquals:()=>_J,$ZodCheckStartsWith:()=>EJ,$ZodCheckStringFormat:()=>xJ,$ZodCheckUpperCase:()=>wJ,$ZodCodec:()=>vX,$ZodCustom:()=>TX,$ZodCustomStringFormat:()=>NY,$ZodDate:()=>KY,$ZodDefault:()=>dX,$ZodDiscriminatedUnion:()=>QY,$ZodE164:()=>jY,$ZodEmail:()=>dY,$ZodEmoji:()=>pY,$ZodEncodeError:()=>nG,$ZodEnum:()=>iX,$ZodError:()=>xK,$ZodExactOptional:()=>lX,$ZodFile:()=>oX,$ZodFunction:()=>SX,$ZodGUID:()=>lY,$ZodIPv4:()=>wY,$ZodIPv6:()=>TY,$ZodISODate:()=>xY,$ZodISODateTime:()=>bY,$ZodISODuration:()=>CY,$ZodISOTime:()=>SY,$ZodIntersection:()=>$Y,$ZodJWT:()=>MY,$ZodKSUID:()=>yY,$ZodLazy:()=>wX,$ZodLiteral:()=>aX,$ZodMAC:()=>EY,$ZodMap:()=>nX,$ZodNaN:()=>gX,$ZodNanoID:()=>mY,$ZodNever:()=>WY,$ZodNonOptional:()=>pX,$ZodNull:()=>VY,$ZodNullable:()=>uX,$ZodNumber:()=>PY,$ZodNumberFormat:()=>FY,$ZodObject:()=>JY,$ZodObjectJIT:()=>YY,$ZodOptional:()=>cX,$ZodPipe:()=>_X,$ZodPrefault:()=>fX,$ZodPreprocess:()=>yX,$ZodPromise:()=>CX,$ZodReadonly:()=>bX,$ZodRealError:()=>SK,$ZodRecord:()=>tX,$ZodRegistry:()=>j$,$ZodSet:()=>rX,$ZodString:()=>sY,$ZodStringFormat:()=>cY,$ZodSuccess:()=>mX,$ZodSymbol:()=>zY,$ZodTemplateLiteral:()=>xX,$ZodTransform:()=>sX,$ZodTuple:()=>eX,$ZodType:()=>oY,$ZodULID:()=>_Y,$ZodURL:()=>fY,$ZodUUID:()=>uY,$ZodUndefined:()=>BY,$ZodUnion:()=>XY,$ZodUnknown:()=>UY,$ZodVoid:()=>GY,$ZodXID:()=>vY,$ZodXor:()=>ZY,$brand:()=>eG,$constructor:()=>q,$input:()=>A$,$output:()=>k$,Doc:()=>MJ,JSONSchema:()=>V2,JSONSchemaGenerator:()=>z2,NEVER:()=>$W,TimePrecision:()=>B0,_any:()=>T1,_array:()=>s0,_base64:()=>t1,_base64url:()=>n1,_bigint:()=>v1,_boolean:()=>g1,_catch:()=>E0,_check:()=>F0,_cidrv4:()=>$$,_cidrv6:()=>e1,_coercedBigint:()=>y1,_coercedBoolean:()=>_1,_coercedDate:()=>A1,_coercedNumber:()=>u1,_coercedString:()=>F$,_cuid:()=>G$,_cuid2:()=>K$,_custom:()=>M0,_date:()=>k1,_decode:()=>PK,_decodeAsync:()=>RK,_default:()=>C0,_discriminatedUnion:()=>u0,_e164:()=>r1,_email:()=>I$,_emoji:()=>U$,_encode:()=>MK,_encodeAsync:()=>IK,_endsWith:()=>Q1,_enum:()=>g0,_file:()=>y0,_float32:()=>f1,_float64:()=>p1,_gt:()=>P1,_gte:()=>F1,_guid:()=>L$,_includes:()=>X1,_int:()=>d1,_int32:()=>m1,_int64:()=>b1,_intersection:()=>d0,_ipv4:()=>X$,_ipv6:()=>Z$,_isoDate:()=>o1,_isoDateTime:()=>a1,_isoDuration:()=>c1,_isoTime:()=>s1,_jwt:()=>i1,_ksuid:()=>Y$,_lazy:()=>A0,_length:()=>K1,_literal:()=>v0,_lowercase:()=>J1,_lt:()=>M1,_lte:()=>N1,_mac:()=>Q$,_map:()=>m0,_max:()=>N1,_maxLength:()=>W1,_maxSize:()=>V1,_mime:()=>e0,_min:()=>F1,_minLength:()=>G1,_minSize:()=>H1,_multipleOf:()=>B1,_nan:()=>j1,_nanoid:()=>W$,_nativeEnum:()=>_0,_negative:()=>L1,_never:()=>D1,_nonnegative:()=>z1,_nonoptional:()=>w0,_nonpositive:()=>R1,_normalize:()=>n0,_null:()=>w1,_nullable:()=>S0,_number:()=>l1,_optional:()=>x0,_overwrite:()=>t0,_parse:()=>wK,_parseAsync:()=>EK,_pipe:()=>D0,_positive:()=>I1,_promise:()=>j0,_property:()=>$1,_readonly:()=>O0,_record:()=>p0,_refine:()=>N0,_regex:()=>q1,_safeDecode:()=>HK,_safeDecodeAsync:()=>KK,_safeEncode:()=>BK,_safeEncodeAsync:()=>WK,_safeParse:()=>OK,_safeParseAsync:()=>AK,_set:()=>h0,_size:()=>U1,_slugify:()=>o0,_startsWith:()=>Z1,_string:()=>P$,_stringFormat:()=>z0,_stringbool:()=>R0,_success:()=>T0,_superRefine:()=>P0,_symbol:()=>S1,_templateLiteral:()=>k0,_toLowerCase:()=>i0,_toUpperCase:()=>a0,_transform:()=>b0,_trim:()=>r0,_tuple:()=>f0,_uint32:()=>h1,_uint64:()=>x1,_ulid:()=>q$,_undefined:()=>C1,_union:()=>c0,_unknown:()=>E1,_uppercase:()=>Y1,_url:()=>H$,_uuid:()=>R$,_uuidv4:()=>z$,_uuidv6:()=>B$,_uuidv7:()=>V$,_void:()=>O1,_xid:()=>J$,_xor:()=>l0,clone:()=>MG,config:()=>ZW,createStandardJSONSchemaMethod:()=>J0,createToJSONSchemaMethod:()=>q0,decode:()=>FK,decodeAsync:()=>zK,describe:()=>I0,encode:()=>NK,encodeAsync:()=>LK,extractDefs:()=>W0,finalize:()=>G0,flattenError:()=>hK,formatError:()=>gK,globalConfig:()=>rG,globalRegistry:()=>M$,initializeContext:()=>H0,isValidBase64:()=>IJ,isValidBase64URL:()=>LJ,isValidJWT:()=>RJ,locales:()=>T$,meta:()=>L0,parse:()=>TK,parseAsync:()=>DK,prettifyError:()=>yK,process:()=>U0,regexes:()=>YK,registry:()=>D$,safeDecode:()=>UK,safeDecodeAsync:()=>qK,safeEncode:()=>VK,safeEncodeAsync:()=>GK,safeParse:()=>kK,safeParseAsync:()=>jK,toDotPath:()=>vK,toJSONSchema:()=>X0,treeifyError:()=>_K,util:()=>aG,version:()=>PJ}),W2=o((()=>{iG(),JK(),CK(),EX(),jJ(),FJ(),mK(),oJ(),E$(),N$(),NJ(),V0(),Y0(),R2(),B2(),H2()}));JK();function G2(e){return!!e._zod}function K2(e,t){return G2(e)?kK(e,t):e.safeParse(t)}function q2(e){if(!e)return;let t;if(t=G2(e)?e._zod?.def?.shape:e.shape,t){if(typeof t==`function`)try{return t()}catch{return}return t}}function J2(e){if(G2(e)){let t=e._zod?.def;if(t){if(t.value!==void 0)return t.value;if(Array.isArray(t.values)&&t.values.length>0)return t.values[0]}}let t=e._def;if(t){if(t.value!==void 0)return t.value;if(Array.isArray(t.values)&&t.values.length>0)return t.values[0]}let n=e.value;if(n!==void 0)return n}var Y2=c({endsWith:()=>Q1,gt:()=>P1,gte:()=>F1,includes:()=>X1,length:()=>K1,lowercase:()=>J1,lt:()=>M1,lte:()=>N1,maxLength:()=>W1,maxSize:()=>V1,mime:()=>e0,minLength:()=>G1,minSize:()=>H1,multipleOf:()=>B1,negative:()=>L1,nonnegative:()=>z1,nonpositive:()=>R1,normalize:()=>n0,overwrite:()=>t0,positive:()=>I1,property:()=>$1,regex:()=>q1,size:()=>U1,slugify:()=>o0,startsWith:()=>Z1,toLowerCase:()=>i0,toUpperCase:()=>a0,trim:()=>r0,uppercase:()=>Y1}),X2=o((()=>{W2()})),Z2=c({ZodISODate:()=>r4,ZodISODateTime:()=>n4,ZodISODuration:()=>a4,ZodISOTime:()=>i4,date:()=>$2,datetime:()=>Q2,duration:()=>t4,time:()=>e4});function Q2(e){return a1(n4,e)}function $2(e){return o1(r4,e)}function e4(e){return s1(i4,e)}function t4(e){return c1(a4,e)}var n4,r4,i4,a4,o4=o((()=>{W2(),D8(),n4=q(`ZodISODateTime`,(e,t)=>{bY.init(e,t),d6.init(e,t)}),r4=q(`ZodISODate`,(e,t)=>{xY.init(e,t),d6.init(e,t)}),i4=q(`ZodISOTime`,(e,t)=>{SY.init(e,t),d6.init(e,t)}),a4=q(`ZodISODuration`,(e,t)=>{CY.init(e,t),d6.init(e,t)})})),s4,c4,l4,u4=o((()=>{W2(),mK(),s4=(e,t)=>{xK.init(e,t),e.name=`ZodError`,Object.defineProperties(e,{format:{value:t=>gK(e,t)},flatten:{value:t=>hK(e,t)},addIssue:{value:t=>{e.issues.push(t),e.message=JSON.stringify(e.issues,fG,2)}},addIssues:{value:t=>{e.issues.push(...t),e.message=JSON.stringify(e.issues,fG,2)}},isEmpty:{get(){return e.issues.length===0}}})},c4=q(`ZodError`,s4),l4=q(`ZodError`,s4,{Parent:Error})})),d4,f4,p4,m4,h4,g4,_4,v4,y4,b4,x4,S4,C4=o((()=>{W2(),u4(),d4=wK(l4),f4=EK(l4),p4=OK(l4),m4=AK(l4),h4=MK(l4),g4=PK(l4),_4=IK(l4),v4=RK(l4),y4=BK(l4),b4=HK(l4),x4=WK(l4),S4=KK(l4)})),w4=c({ZodAny:()=>V6,ZodArray:()=>K6,ZodBase64:()=>O6,ZodBase64URL:()=>k6,ZodBigInt:()=>I6,ZodBigIntFormat:()=>L6,ZodBoolean:()=>F6,ZodCIDRv4:()=>E6,ZodCIDRv6:()=>D6,ZodCUID:()=>v6,ZodCUID2:()=>y6,ZodCatch:()=>p8,ZodCodec:()=>g8,ZodCustom:()=>C8,ZodCustomStringFormat:()=>M6,ZodDate:()=>G6,ZodDefault:()=>l8,ZodDiscriminatedUnion:()=>X6,ZodE164:()=>A6,ZodEmail:()=>f6,ZodEmoji:()=>g6,ZodEnum:()=>n8,ZodExactOptional:()=>s8,ZodFile:()=>i8,ZodFunction:()=>S8,ZodGUID:()=>p6,ZodIPv4:()=>C6,ZodIPv6:()=>T6,ZodIntersection:()=>Z6,ZodJWT:()=>j6,ZodKSUID:()=>S6,ZodLazy:()=>b8,ZodLiteral:()=>r8,ZodMAC:()=>w6,ZodMap:()=>e8,ZodNaN:()=>m8,ZodNanoID:()=>_6,ZodNever:()=>U6,ZodNonOptional:()=>d8,ZodNull:()=>B6,ZodNullable:()=>c8,ZodNumber:()=>N6,ZodNumberFormat:()=>P6,ZodObject:()=>q6,ZodOptional:()=>o8,ZodPipe:()=>h8,ZodPrefault:()=>u8,ZodPreprocess:()=>_8,ZodPromise:()=>x8,ZodReadonly:()=>v8,ZodRecord:()=>$6,ZodSet:()=>t8,ZodString:()=>u6,ZodStringFormat:()=>d6,ZodSuccess:()=>f8,ZodSymbol:()=>R6,ZodTemplateLiteral:()=>y8,ZodTransform:()=>a8,ZodTuple:()=>Q6,ZodType:()=>c6,ZodULID:()=>b6,ZodURL:()=>h6,ZodUUID:()=>m6,ZodUndefined:()=>z6,ZodUnion:()=>J6,ZodUnknown:()=>H6,ZodVoid:()=>W6,ZodXID:()=>x6,ZodXor:()=>Y6,_ZodString:()=>l6,_default:()=>B3,_function:()=>$3,any:()=>p3,array:()=>v3,base64:()=>K4,base64url:()=>q4,bigint:()=>s3,boolean:()=>o3,catch:()=>W3,check:()=>e6,cidrv4:()=>W4,cidrv6:()=>G4,codec:()=>q3,cuid:()=>I4,cuid2:()=>L4,custom:()=>t6,date:()=>_3,describe:()=>w8,discriminatedUnion:()=>w3,e164:()=>J4,email:()=>E4,emoji:()=>P4,enum:()=>M3,exactOptional:()=>L3,file:()=>P3,float32:()=>n3,float64:()=>r3,function:()=>$3,guid:()=>D4,hash:()=>$4,hex:()=>Q4,hostname:()=>Z4,httpUrl:()=>N4,instanceof:()=>i6,int:()=>t3,int32:()=>i3,int64:()=>c3,intersection:()=>T3,invertCodec:()=>J3,ipv4:()=>V4,ipv6:()=>U4,json:()=>a6,jwt:()=>Y4,keyof:()=>y3,ksuid:()=>B4,lazy:()=>Z3,literal:()=>Q,looseObject:()=>x3,looseRecord:()=>k3,mac:()=>H4,map:()=>A3,meta:()=>T8,nan:()=>G3,nanoid:()=>F4,nativeEnum:()=>N3,never:()=>h3,nonoptional:()=>H3,null:()=>f3,nullable:()=>R3,nullish:()=>z3,number:()=>e3,object:()=>Z,optional:()=>I3,partialRecord:()=>O3,pipe:()=>K3,prefault:()=>V3,preprocess:()=>o6,promise:()=>Q3,readonly:()=>Y3,record:()=>D3,refine:()=>n6,set:()=>j3,strictObject:()=>b3,string:()=>X,stringFormat:()=>X4,stringbool:()=>E8,success:()=>U3,superRefine:()=>r6,symbol:()=>u3,templateLiteral:()=>X3,transform:()=>F3,tuple:()=>E3,uint32:()=>a3,uint64:()=>l3,ulid:()=>R4,undefined:()=>d3,union:()=>S3,unknown:()=>m3,url:()=>M4,uuid:()=>O4,uuidv4:()=>k4,uuidv6:()=>A4,uuidv7:()=>j4,void:()=>g3,xid:()=>z4,xor:()=>C3});function T4(e,t,n){let r=Object.getPrototypeOf(e),i=s6.get(r);if(i||(i=new Set,s6.set(r,i)),!i.has(t)){i.add(t);for(let e in n){let t=n[e];Object.defineProperty(r,e,{configurable:!0,enumerable:!1,get(){let n=t.bind(this);return Object.defineProperty(this,e,{configurable:!0,writable:!0,enumerable:!0,value:n}),n},set(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,enumerable:!0,value:t})}})}}}function X(e){return P$(u6,e)}function E4(e){return I$(f6,e)}function D4(e){return L$(p6,e)}function O4(e){return R$(m6,e)}function k4(e){return z$(m6,e)}function A4(e){return B$(m6,e)}function j4(e){return V$(m6,e)}function M4(e){return H$(h6,e)}function N4(e){return H$(h6,{protocol:jq,hostname:Aq,...Y(e)})}function P4(e){return U$(g6,e)}function F4(e){return W$(_6,e)}function I4(e){return G$(v6,e)}function L4(e){return K$(y6,e)}function R4(e){return q$(b6,e)}function z4(e){return J$(x6,e)}function B4(e){return Y$(S6,e)}function V4(e){return X$(C6,e)}function H4(e){return Q$(w6,e)}function U4(e){return Z$(T6,e)}function W4(e){return $$(E6,e)}function G4(e){return e1(D6,e)}function K4(e){return t1(O6,e)}function q4(e){return n1(k6,e)}function J4(e){return r1(A6,e)}function Y4(e){return i1(j6,e)}function X4(e,t,n={}){return z0(M6,e,t,n)}function Z4(e){return z0(M6,`hostname`,kq,e)}function Q4(e){return z0(M6,`hex`,Wq,e)}function $4(e,t){let n=`${e}_${t?.enc??`hex`}`,r=YK[n];if(!r)throw Error(`Unrecognized hash format: ${n}`);return z0(M6,n,r,t)}function e3(e){return l1(N6,e)}function t3(e){return d1(P6,e)}function n3(e){return f1(P6,e)}function r3(e){return p1(P6,e)}function i3(e){return m1(P6,e)}function a3(e){return h1(P6,e)}function o3(e){return g1(F6,e)}function s3(e){return v1(I6,e)}function c3(e){return b1(L6,e)}function l3(e){return x1(L6,e)}function u3(e){return S1(R6,e)}function d3(e){return C1(z6,e)}function f3(e){return w1(B6,e)}function p3(){return T1(V6)}function m3(){return E1(H6)}function h3(e){return D1(U6,e)}function g3(e){return O1(W6,e)}function _3(e){return k1(G6,e)}function v3(e,t){return s0(K6,e,t)}function y3(e){let t=e._zod.def.shape;return M3(Object.keys(t))}function Z(e,t){let n={type:`object`,shape:e??{},...Y(t)};return new q6(n)}function b3(e,t){return new q6({type:`object`,shape:e,catchall:h3(),...Y(t)})}function x3(e,t){return new q6({type:`object`,shape:e,catchall:m3(),...Y(t)})}function S3(e,t){return new J6({type:`union`,options:e,...Y(t)})}function C3(e,t){return new Y6({type:`union`,options:e,inclusive:!1,...Y(t)})}function w3(e,t,n){return new X6({type:`union`,options:t,discriminator:e,...Y(n)})}function T3(e,t){return new Z6({type:`intersection`,left:e,right:t})}function E3(e,t,n){let r=t instanceof oY;return new Q6({type:`tuple`,items:e,rest:r?t:null,...Y(r?n:t)})}function D3(e,t,n){return!t||!t._zod?new $6({type:`record`,keyType:X(),valueType:e,...Y(t)}):new $6({type:`record`,keyType:e,valueType:t,...Y(n)})}function O3(e,t,n){let r=MG(e);return r._zod.values=void 0,new $6({type:`record`,keyType:r,valueType:t,...Y(n)})}function k3(e,t,n){return new $6({type:`record`,keyType:e,valueType:t,mode:`loose`,...Y(n)})}function A3(e,t,n){return new e8({type:`map`,keyType:e,valueType:t,...Y(n)})}function j3(e,t){return new t8({type:`set`,valueType:e,...Y(t)})}function M3(e,t){let n=Array.isArray(e)?Object.fromEntries(e.map(e=>[e,e])):e;return new n8({type:`enum`,entries:n,...Y(t)})}function N3(e,t){return new n8({type:`enum`,entries:e,...Y(t)})}function Q(e,t){return new r8({type:`literal`,values:Array.isArray(e)?e:[e],...Y(t)})}function P3(e){return y0(i8,e)}function F3(e){return new a8({type:`transform`,transform:e})}function I3(e){return new o8({type:`optional`,innerType:e})}function L3(e){return new s8({type:`optional`,innerType:e})}function R3(e){return new c8({type:`nullable`,innerType:e})}function z3(e){return I3(R3(e))}function B3(e,t){return new l8({type:`default`,innerType:e,get defaultValue(){return typeof t==`function`?t():kG(t)}})}function V3(e,t){return new u8({type:`prefault`,innerType:e,get defaultValue(){return typeof t==`function`?t():kG(t)}})}function H3(e,t){return new d8({type:`nonoptional`,innerType:e,...Y(t)})}function U3(e){return new f8({type:`success`,innerType:e})}function W3(e,t){return new p8({type:`catch`,innerType:e,catchValue:typeof t==`function`?t:()=>t})}function G3(e){return j1(m8,e)}function K3(e,t){return new h8({type:`pipe`,in:e,out:t})}function q3(e,t,n){return new g8({type:`pipe`,in:e,out:t,transform:n.decode,reverseTransform:n.encode})}function J3(e){let t=e._zod.def;return new g8({type:`pipe`,in:t.out,out:t.in,transform:t.reverseTransform,reverseTransform:t.transform})}function Y3(e){return new v8({type:`readonly`,innerType:e})}function X3(e,t){return new y8({type:`template_literal`,parts:e,...Y(t)})}function Z3(e){return new b8({type:`lazy`,getter:e})}function Q3(e){return new x8({type:`promise`,innerType:e})}function $3(e){return new S8({type:`function`,input:Array.isArray(e?.input)?E3(e?.input):e?.input??v3(m3()),output:e?.output??m3()})}function e6(e){let t=new cJ({check:`custom`});return t._zod.check=e,t}function t6(e,t){return M0(C8,e??(()=>!0),t)}function n6(e,t={}){return N0(C8,e,t)}function r6(e,t){return P0(e,t)}function i6(e,t={}){let n=new C8({type:`custom`,check:`custom`,fn:t=>t instanceof e,abort:!0,...Y(t)});return n._zod.bag.Class=e,n._zod.check=t=>{t.value instanceof e||t.issues.push({code:`invalid_type`,expected:e.name,input:t.value,inst:n,path:[...n._zod.def.path??[]]})},n}function a6(e){let t=Z3(()=>S3([X(e),e3(),o3(),f3(),v3(t),D3(X(),t)]));return t}function o6(e,t){return new _8({type:`pipe`,in:F3(e),out:t})}var s6,c6,l6,u6,d6,f6,p6,m6,h6,g6,_6,v6,y6,b6,x6,S6,C6,w6,T6,E6,D6,O6,k6,A6,j6,M6,N6,P6,F6,I6,L6,R6,z6,B6,V6,H6,U6,W6,G6,K6,q6,J6,Y6,X6,Z6,Q6,$6,e8,t8,n8,r8,i8,a8,o8,s8,c8,l8,u8,d8,f8,p8,m8,h8,g8,_8,v8,y8,b8,x8,S8,C8,w8,T8,E8,D8=o((()=>{W2(),R2(),Y0(),X2(),o4(),C4(),s6=new WeakMap,c6=q(`ZodType`,(e,t)=>(oY.init(e,t),Object.assign(e[`~standard`],{jsonSchema:{input:J0(e,`input`),output:J0(e,`output`)}}),e.toJSONSchema=q0(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.parse=(t,n)=>d4(e,t,n,{callee:e.parse}),e.safeParse=(t,n)=>p4(e,t,n),e.parseAsync=async(t,n)=>f4(e,t,n,{callee:e.parseAsync}),e.safeParseAsync=async(t,n)=>m4(e,t,n),e.spa=e.safeParseAsync,e.encode=(t,n)=>h4(e,t,n),e.decode=(t,n)=>g4(e,t,n),e.encodeAsync=async(t,n)=>_4(e,t,n),e.decodeAsync=async(t,n)=>v4(e,t,n),e.safeEncode=(t,n)=>y4(e,t,n),e.safeDecode=(t,n)=>b4(e,t,n),e.safeEncodeAsync=async(t,n)=>x4(e,t,n),e.safeDecodeAsync=async(t,n)=>S4(e,t,n),T4(e,`ZodType`,{check(...e){let t=this.def;return this.clone(bG(t,{checks:[...t.checks??[],...e.map(e=>typeof e==`function`?{_zod:{check:e,def:{check:`custom`},onattach:[]}}:e)]}),{parent:!0})},with(...e){return this.check(...e)},clone(e,t){return MG(this,e,t)},brand(){return this},register(e,t){return e.add(this,t),this},refine(e,t){return this.check(n6(e,t))},superRefine(e,t){return this.check(r6(e,t))},overwrite(e){return this.check(t0(e))},optional(){return I3(this)},exactOptional(){return L3(this)},nullable(){return R3(this)},nullish(){return I3(R3(this))},nonoptional(e){return H3(this,e)},array(){return v3(this)},or(e){return S3([this,e])},and(e){return T3(this,e)},transform(e){return K3(this,F3(e))},default(e){return B3(this,e)},prefault(e){return V3(this,e)},catch(e){return W3(this,e)},pipe(e){return K3(this,e)},readonly(){return Y3(this)},describe(e){let t=this.clone();return M$.add(t,{description:e}),t},meta(...e){if(e.length===0)return M$.get(this);let t=this.clone();return M$.add(t,e[0]),t},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(e){return e(this)}}),Object.defineProperty(e,"description",{get(){return M$.get(e)?.description},configurable:!0}),e)),l6=q(`_ZodString`,(e,t)=>{sY.init(e,t),c6.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Q0(e,t,n,r);let n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,T4(e,`_ZodString`,{regex(...e){return this.check(q1(...e))},includes(...e){return this.check(X1(...e))},startsWith(...e){return this.check(Z1(...e))},endsWith(...e){return this.check(Q1(...e))},min(...e){return this.check(G1(...e))},max(...e){return this.check(W1(...e))},length(...e){return this.check(K1(...e))},nonempty(...e){return this.check(G1(1,...e))},lowercase(e){return this.check(J1(e))},uppercase(e){return this.check(Y1(e))},trim(){return this.check(r0())},normalize(...e){return this.check(n0(...e))},toLowerCase(){return this.check(i0())},toUpperCase(){return this.check(a0())},slugify(){return this.check(o0())}})}),u6=q(`ZodString`,(e,t)=>{sY.init(e,t),l6.init(e,t),e.email=t=>e.check(I$(f6,t)),e.url=t=>e.check(H$(h6,t)),e.jwt=t=>e.check(i1(j6,t)),e.emoji=t=>e.check(U$(g6,t)),e.guid=t=>e.check(L$(p6,t)),e.uuid=t=>e.check(R$(m6,t)),e.uuidv4=t=>e.check(z$(m6,t)),e.uuidv6=t=>e.check(B$(m6,t)),e.uuidv7=t=>e.check(V$(m6,t)),e.nanoid=t=>e.check(W$(_6,t)),e.guid=t=>e.check(L$(p6,t)),e.cuid=t=>e.check(G$(v6,t)),e.cuid2=t=>e.check(K$(y6,t)),e.ulid=t=>e.check(q$(b6,t)),e.base64=t=>e.check(t1(O6,t)),e.base64url=t=>e.check(n1(k6,t)),e.xid=t=>e.check(J$(x6,t)),e.ksuid=t=>e.check(Y$(S6,t)),e.ipv4=t=>e.check(X$(C6,t)),e.ipv6=t=>e.check(Z$(T6,t)),e.cidrv4=t=>e.check($$(E6,t)),e.cidrv6=t=>e.check(e1(D6,t)),e.e164=t=>e.check(r1(A6,t)),e.datetime=t=>e.check(Q2(t)),e.date=t=>e.check($2(t)),e.time=t=>e.check(e4(t)),e.duration=t=>e.check(t4(t))}),d6=q(`ZodStringFormat`,(e,t)=>{cY.init(e,t),l6.init(e,t)}),f6=q(`ZodEmail`,(e,t)=>{dY.init(e,t),d6.init(e,t)}),p6=q(`ZodGUID`,(e,t)=>{lY.init(e,t),d6.init(e,t)}),m6=q(`ZodUUID`,(e,t)=>{uY.init(e,t),d6.init(e,t)}),h6=q(`ZodURL`,(e,t)=>{fY.init(e,t),d6.init(e,t)}),g6=q(`ZodEmoji`,(e,t)=>{pY.init(e,t),d6.init(e,t)}),_6=q(`ZodNanoID`,(e,t)=>{mY.init(e,t),d6.init(e,t)}),v6=q(`ZodCUID`,(e,t)=>{hY.init(e,t),d6.init(e,t)}),y6=q(`ZodCUID2`,(e,t)=>{gY.init(e,t),d6.init(e,t)}),b6=q(`ZodULID`,(e,t)=>{_Y.init(e,t),d6.init(e,t)}),x6=q(`ZodXID`,(e,t)=>{vY.init(e,t),d6.init(e,t)}),S6=q(`ZodKSUID`,(e,t)=>{yY.init(e,t),d6.init(e,t)}),C6=q(`ZodIPv4`,(e,t)=>{wY.init(e,t),d6.init(e,t)}),w6=q(`ZodMAC`,(e,t)=>{EY.init(e,t),d6.init(e,t)}),T6=q(`ZodIPv6`,(e,t)=>{TY.init(e,t),d6.init(e,t)}),E6=q(`ZodCIDRv4`,(e,t)=>{DY.init(e,t),d6.init(e,t)}),D6=q(`ZodCIDRv6`,(e,t)=>{OY.init(e,t),d6.init(e,t)}),O6=q(`ZodBase64`,(e,t)=>{kY.init(e,t),d6.init(e,t)}),k6=q(`ZodBase64URL`,(e,t)=>{AY.init(e,t),d6.init(e,t)}),A6=q(`ZodE164`,(e,t)=>{jY.init(e,t),d6.init(e,t)}),j6=q(`ZodJWT`,(e,t)=>{MY.init(e,t),d6.init(e,t)}),M6=q(`ZodCustomStringFormat`,(e,t)=>{NY.init(e,t),d6.init(e,t)}),N6=q(`ZodNumber`,(e,t)=>{PY.init(e,t),c6.init(e,t),e._zod.processJSONSchema=(t,n,r)=>$0(e,t,n,r),T4(e,`ZodNumber`,{gt(e,t){return this.check(P1(e,t))},gte(e,t){return this.check(F1(e,t))},min(e,t){return this.check(F1(e,t))},lt(e,t){return this.check(M1(e,t))},lte(e,t){return this.check(N1(e,t))},max(e,t){return this.check(N1(e,t))},int(e){return this.check(t3(e))},safe(e){return this.check(t3(e))},positive(e){return this.check(P1(0,e))},nonnegative(e){return this.check(F1(0,e))},negative(e){return this.check(M1(0,e))},nonpositive(e){return this.check(N1(0,e))},multipleOf(e,t){return this.check(B1(e,t))},step(e,t){return this.check(B1(e,t))},finite(){return this}});let n=e._zod.bag;e.minValue=Math.max(n.minimum??-1/0,n.exclusiveMinimum??-1/0)??null,e.maxValue=Math.min(n.maximum??1/0,n.exclusiveMaximum??1/0)??null,e.isInt=(n.format??``).includes(`int`)||Number.isSafeInteger(n.multipleOf??.5),e.isFinite=!0,e.format=n.format??null}),P6=q(`ZodNumberFormat`,(e,t)=>{FY.init(e,t),N6.init(e,t)}),F6=q(`ZodBoolean`,(e,t)=>{IY.init(e,t),c6.init(e,t),e._zod.processJSONSchema=(t,n,r)=>e2(e,t,n,r)}),I6=q(`ZodBigInt`,(e,t)=>{LY.init(e,t),c6.init(e,t),e._zod.processJSONSchema=(t,n,r)=>t2(e,t,n,r),e.gte=(t,n)=>e.check(F1(t,n)),e.min=(t,n)=>e.check(F1(t,n)),e.gt=(t,n)=>e.check(P1(t,n)),e.gte=(t,n)=>e.check(F1(t,n)),e.min=(t,n)=>e.check(F1(t,n)),e.lt=(t,n)=>e.check(M1(t,n)),e.lte=(t,n)=>e.check(N1(t,n)),e.max=(t,n)=>e.check(N1(t,n)),e.positive=t=>e.check(P1(BigInt(0),t)),e.negative=t=>e.check(M1(BigInt(0),t)),e.nonpositive=t=>e.check(N1(BigInt(0),t)),e.nonnegative=t=>e.check(F1(BigInt(0),t)),e.multipleOf=(t,n)=>e.check(B1(t,n));let n=e._zod.bag;e.minValue=n.minimum??null,e.maxValue=n.maximum??null,e.format=n.format??null}),L6=q(`ZodBigIntFormat`,(e,t)=>{RY.init(e,t),I6.init(e,t)}),R6=q(`ZodSymbol`,(e,t)=>{zY.init(e,t),c6.init(e,t),e._zod.processJSONSchema=(t,n,r)=>n2(e,t,n,r)}),z6=q(`ZodUndefined`,(e,t)=>{BY.init(e,t),c6.init(e,t),e._zod.processJSONSchema=(t,n,r)=>i2(e,t,n,r)}),B6=q(`ZodNull`,(e,t)=>{VY.init(e,t),c6.init(e,t),e._zod.processJSONSchema=(t,n,r)=>r2(e,t,n,r)}),V6=q(`ZodAny`,(e,t)=>{HY.init(e,t),c6.init(e,t),e._zod.processJSONSchema=(t,n,r)=>s2(e,t,n,r)}),H6=q(`ZodUnknown`,(e,t)=>{UY.init(e,t),c6.init(e,t),e._zod.processJSONSchema=(t,n,r)=>c2(e,t,n,r)}),U6=q(`ZodNever`,(e,t)=>{WY.init(e,t),c6.init(e,t),e._zod.processJSONSchema=(t,n,r)=>o2(e,t,n,r)}),W6=q(`ZodVoid`,(e,t)=>{GY.init(e,t),c6.init(e,t),e._zod.processJSONSchema=(t,n,r)=>a2(e,t,n,r)}),G6=q(`ZodDate`,(e,t)=>{KY.init(e,t),c6.init(e,t),e._zod.processJSONSchema=(t,n,r)=>l2(e,t,n,r),e.min=(t,n)=>e.check(F1(t,n)),e.max=(t,n)=>e.check(N1(t,n));let n=e._zod.bag;e.minDate=n.minimum?new Date(n.minimum):null,e.maxDate=n.maximum?new Date(n.maximum):null}),K6=q(`ZodArray`,(e,t)=>{qY.init(e,t),c6.init(e,t),e._zod.processJSONSchema=(t,n,r)=>x2(e,t,n,r),e.element=t.element,T4(e,`ZodArray`,{min(e,t){return this.check(G1(e,t))},nonempty(e){return this.check(G1(1,e))},max(e,t){return this.check(W1(e,t))},length(e,t){return this.check(K1(e,t))},unwrap(){return this.element}})}),q6=q(`ZodObject`,(e,t)=>{YY.init(e,t),c6.init(e,t),e._zod.processJSONSchema=(t,n,r)=>S2(e,t,n,r),_G(e,`shape`,()=>t.shape),T4(e,`ZodObject`,{keyof(){return M3(Object.keys(this._zod.def.shape))},catchall(e){return this.clone({...this._zod.def,catchall:e})},passthrough(){return this.clone({...this._zod.def,catchall:m3()})},loose(){return this.clone({...this._zod.def,catchall:m3()})},strict(){return this.clone({...this._zod.def,catchall:h3()})},strip(){return this.clone({...this._zod.def,catchall:void 0})},extend(e){return RG(this,e)},safeExtend(e){return zG(this,e)},merge(e){return BG(this,e)},pick(e){return IG(this,e)},omit(e){return LG(this,e)},partial(...e){return VG(o8,this,e[0])},required(...e){return HG(d8,this,e[0])}})}),J6=q(`ZodUnion`,(e,t)=>{XY.init(e,t),c6.init(e,t),e._zod.processJSONSchema=(t,n,r)=>C2(e,t,n,r),e.options=t.options}),Y6=q(`ZodXor`,(e,t)=>{J6.init(e,t),ZY.init(e,t),e._zod.processJSONSchema=(t,n,r)=>C2(e,t,n,r),e.options=t.options}),X6=q(`ZodDiscriminatedUnion`,(e,t)=>{J6.init(e,t),QY.init(e,t)}),Z6=q(`ZodIntersection`,(e,t)=>{$Y.init(e,t),c6.init(e,t),e._zod.processJSONSchema=(t,n,r)=>w2(e,t,n,r)}),Q6=q(`ZodTuple`,(e,t)=>{eX.init(e,t),c6.init(e,t),e._zod.processJSONSchema=(t,n,r)=>T2(e,t,n,r),e.rest=t=>e.clone({...e._zod.def,rest:t})}),$6=q(`ZodRecord`,(e,t)=>{tX.init(e,t),c6.init(e,t),e._zod.processJSONSchema=(t,n,r)=>E2(e,t,n,r),e.keyType=t.keyType,e.valueType=t.valueType}),e8=q(`ZodMap`,(e,t)=>{nX.init(e,t),c6.init(e,t),e._zod.processJSONSchema=(t,n,r)=>y2(e,t,n,r),e.keyType=t.keyType,e.valueType=t.valueType,e.min=(...t)=>e.check(H1(...t)),e.nonempty=t=>e.check(H1(1,t)),e.max=(...t)=>e.check(V1(...t)),e.size=(...t)=>e.check(U1(...t))}),t8=q(`ZodSet`,(e,t)=>{rX.init(e,t),c6.init(e,t),e._zod.processJSONSchema=(t,n,r)=>b2(e,t,n,r),e.min=(...t)=>e.check(H1(...t)),e.nonempty=t=>e.check(H1(1,t)),e.max=(...t)=>e.check(V1(...t)),e.size=(...t)=>e.check(U1(...t))}),n8=q(`ZodEnum`,(e,t)=>{iX.init(e,t),c6.init(e,t),e._zod.processJSONSchema=(t,n,r)=>u2(e,t,n,r),e.enum=t.entries,e.options=Object.values(t.entries);let n=new Set(Object.keys(t.entries));e.extract=(e,r)=>{let i={};for(let r of e)if(n.has(r))i[r]=t.entries[r];else throw Error(`Key ${r} not found in enum`);return new n8({...t,checks:[],...Y(r),entries:i})},e.exclude=(e,r)=>{let i={...t.entries};for(let t of e)if(n.has(t))delete i[t];else throw Error(`Key ${t} not found in enum`);return new n8({...t,checks:[],...Y(r),entries:i})}}),r8=q(`ZodLiteral`,(e,t)=>{aX.init(e,t),c6.init(e,t),e._zod.processJSONSchema=(t,n,r)=>d2(e,t,n,r),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if(t.values.length>1)throw Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})}),i8=q(`ZodFile`,(e,t)=>{oX.init(e,t),c6.init(e,t),e._zod.processJSONSchema=(t,n,r)=>m2(e,t,n,r),e.min=(t,n)=>e.check(H1(t,n)),e.max=(t,n)=>e.check(V1(t,n)),e.mime=(t,n)=>e.check(e0(Array.isArray(t)?t:[t],n))}),a8=q(`ZodTransform`,(e,t)=>{sX.init(e,t),c6.init(e,t),e._zod.processJSONSchema=(t,n,r)=>v2(e,t,n,r),e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new nG(e.constructor.name);n.addIssue=r=>{if(typeof r==`string`)n.issues.push(ZG(r,n.value,t));else{let t=r;t.fatal&&(t.continue=!1),t.code??=`custom`,t.input??=n.value,t.inst??=e,n.issues.push(ZG(t))}};let i=t.transform(n.value,n);return i instanceof Promise?i.then(e=>(n.value=e,n.fallback=!0,n)):(n.value=i,n.fallback=!0,n)}}),o8=q(`ZodOptional`,(e,t)=>{cX.init(e,t),c6.init(e,t),e._zod.processJSONSchema=(t,n,r)=>F2(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),s8=q(`ZodExactOptional`,(e,t)=>{lX.init(e,t),c6.init(e,t),e._zod.processJSONSchema=(t,n,r)=>F2(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),c8=q(`ZodNullable`,(e,t)=>{uX.init(e,t),c6.init(e,t),e._zod.processJSONSchema=(t,n,r)=>D2(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),l8=q(`ZodDefault`,(e,t)=>{dX.init(e,t),c6.init(e,t),e._zod.processJSONSchema=(t,n,r)=>k2(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap}),u8=q(`ZodPrefault`,(e,t)=>{fX.init(e,t),c6.init(e,t),e._zod.processJSONSchema=(t,n,r)=>A2(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),d8=q(`ZodNonOptional`,(e,t)=>{pX.init(e,t),c6.init(e,t),e._zod.processJSONSchema=(t,n,r)=>O2(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),f8=q(`ZodSuccess`,(e,t)=>{mX.init(e,t),c6.init(e,t),e._zod.processJSONSchema=(t,n,r)=>h2(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),p8=q(`ZodCatch`,(e,t)=>{hX.init(e,t),c6.init(e,t),e._zod.processJSONSchema=(t,n,r)=>j2(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap}),m8=q(`ZodNaN`,(e,t)=>{gX.init(e,t),c6.init(e,t),e._zod.processJSONSchema=(t,n,r)=>f2(e,t,n,r)}),h8=q(`ZodPipe`,(e,t)=>{_X.init(e,t),c6.init(e,t),e._zod.processJSONSchema=(t,n,r)=>M2(e,t,n,r),e.in=t.in,e.out=t.out}),g8=q(`ZodCodec`,(e,t)=>{h8.init(e,t),vX.init(e,t)}),_8=q(`ZodPreprocess`,(e,t)=>{h8.init(e,t),yX.init(e,t)}),v8=q(`ZodReadonly`,(e,t)=>{bX.init(e,t),c6.init(e,t),e._zod.processJSONSchema=(t,n,r)=>N2(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),y8=q(`ZodTemplateLiteral`,(e,t)=>{xX.init(e,t),c6.init(e,t),e._zod.processJSONSchema=(t,n,r)=>p2(e,t,n,r)}),b8=q(`ZodLazy`,(e,t)=>{wX.init(e,t),c6.init(e,t),e._zod.processJSONSchema=(t,n,r)=>I2(e,t,n,r),e.unwrap=()=>e._zod.def.getter()}),x8=q(`ZodPromise`,(e,t)=>{CX.init(e,t),c6.init(e,t),e._zod.processJSONSchema=(t,n,r)=>P2(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),S8=q(`ZodFunction`,(e,t)=>{SX.init(e,t),c6.init(e,t),e._zod.processJSONSchema=(t,n,r)=>_2(e,t,n,r)}),C8=q(`ZodCustom`,(e,t)=>{TX.init(e,t),c6.init(e,t),e._zod.processJSONSchema=(t,n,r)=>g2(e,t,n,r)}),w8=I0,T8=L0,E8=(...e)=>R0({Codec:g8,Boolean:F6,String:u6},...e)}));function O8(e){ZW({customError:e})}function k8(){return ZW().customError}var A8,j8,M8=o((()=>{W2(),A8={invalid_type:`invalid_type`,too_big:`too_big`,too_small:`too_small`,invalid_format:`invalid_format`,not_multiple_of:`not_multiple_of`,unrecognized_keys:`unrecognized_keys`,invalid_union:`invalid_union`,invalid_key:`invalid_key`,invalid_element:`invalid_element`,invalid_value:`invalid_value`,custom:`custom`},j8||={}}));function N8(e,t){let n=e.$schema;return n===`https://json-schema.org/draft/2020-12/schema`?`draft-2020-12`:n===`http://json-schema.org/draft-07/schema#`?`draft-7`:n===`http://json-schema.org/draft-04/schema#`?`draft-4`:t??`draft-2020-12`}function P8(e,t){if(!e.startsWith(`#`))throw Error(`External $ref is not supported, only local refs (#/...) are allowed`);let n=e.slice(1).split(`/`).filter(Boolean);if(n.length===0)return t.rootSchema;let r=t.version===`draft-2020-12`?`$defs`:`definitions`;if(n[0]===r){let r=n[1];if(!r||!t.defs[r])throw Error(`Reference not found: ${e}`);return t.defs[r]}throw Error(`Reference not found: ${e}`)}function F8(e,t){if(e.not!==void 0){if(typeof e.not==`object`&&Object.keys(e.not).length===0)return $.never();throw Error(`not is not supported in Zod (except { not: {} } for never)`)}if(e.unevaluatedItems!==void 0)throw Error(`unevaluatedItems is not supported`);if(e.unevaluatedProperties!==void 0)throw Error(`unevaluatedProperties is not supported`);if(e.if!==void 0||e.then!==void 0||e.else!==void 0)throw Error(`Conditional schemas (if/then/else) are not supported`);if(e.dependentSchemas!==void 0||e.dependentRequired!==void 0)throw Error(`dependentSchemas and dependentRequired are not supported`);if(e.$ref){let n=e.$ref;if(t.refs.has(n))return t.refs.get(n);if(t.processing.has(n))return $.lazy(()=>{if(!t.refs.has(n))throw Error(`Circular reference not resolved: ${n}`);return t.refs.get(n)});t.processing.add(n);let r=I8(P8(n,t),t);return t.refs.set(n,r),t.processing.delete(n),r}if(e.enum!==void 0){let n=e.enum;if(t.version===`openapi-3.0`&&e.nullable===!0&&n.length===1&&n[0]===null)return $.null();if(n.length===0)return $.never();if(n.length===1)return $.literal(n[0]);if(n.every(e=>typeof e==`string`))return $.enum(n);let r=n.map(e=>$.literal(e));return r.length<2?r[0]:$.union([r[0],r[1],...r.slice(2)])}if(e.const!==void 0)return $.literal(e.const);let n=e.type;if(Array.isArray(n)){let r=n.map(n=>F8({...e,type:n},t));return r.length===0?$.never():r.length===1?r[0]:$.union(r)}if(!n)return $.any();let r;switch(n){case`string`:{let t=$.string();if(e.format){let n=e.format;n===`email`?t=t.check($.email()):n===`uri`||n===`uri-reference`?t=t.check($.url()):n===`uuid`||n===`guid`?t=t.check($.uuid()):n===`date-time`?t=t.check($.iso.datetime()):n===`date`?t=t.check($.iso.date()):n===`time`?t=t.check($.iso.time()):n===`duration`?t=t.check($.iso.duration()):n===`ipv4`?t=t.check($.ipv4()):n===`ipv6`?t=t.check($.ipv6()):n===`mac`?t=t.check($.mac()):n===`cidr`?t=t.check($.cidrv4()):n===`cidr-v6`?t=t.check($.cidrv6()):n===`base64`?t=t.check($.base64()):n===`base64url`?t=t.check($.base64url()):n===`e164`?t=t.check($.e164()):n===`jwt`?t=t.check($.jwt()):n===`emoji`?t=t.check($.emoji()):n===`nanoid`?t=t.check($.nanoid()):n===`cuid`?t=t.check($.cuid()):n===`cuid2`?t=t.check($.cuid2()):n===`ulid`?t=t.check($.ulid()):n===`xid`?t=t.check($.xid()):n===`ksuid`&&(t=t.check($.ksuid()))}typeof e.minLength==`number`&&(t=t.min(e.minLength)),typeof e.maxLength==`number`&&(t=t.max(e.maxLength)),e.pattern&&(t=t.regex(new RegExp(e.pattern))),r=t;break}case`number`:case`integer`:{let t=n===`integer`?$.number().int():$.number();typeof e.minimum==`number`&&(t=t.min(e.minimum)),typeof e.maximum==`number`&&(t=t.max(e.maximum)),typeof e.exclusiveMinimum==`number`?t=t.gt(e.exclusiveMinimum):e.exclusiveMinimum===!0&&typeof e.minimum==`number`&&(t=t.gt(e.minimum)),typeof e.exclusiveMaximum==`number`?t=t.lt(e.exclusiveMaximum):e.exclusiveMaximum===!0&&typeof e.maximum==`number`&&(t=t.lt(e.maximum)),typeof e.multipleOf==`number`&&(t=t.multipleOf(e.multipleOf)),r=t;break}case`boolean`:r=$.boolean();break;case`null`:r=$.null();break;case`object`:{let n={},i=e.properties||{},a=new Set(e.required||[]);for(let[e,r]of Object.entries(i)){let i=I8(r,t);n[e]=a.has(e)?i:i.optional()}if(e.propertyNames){let i=I8(e.propertyNames,t),a=e.additionalProperties&&typeof e.additionalProperties==`object`?I8(e.additionalProperties,t):$.any();if(Object.keys(n).length===0){r=$.record(i,a);break}let o=$.object(n).passthrough(),s=$.looseRecord(i,a);r=$.intersection(o,s);break}if(e.patternProperties){let i=e.patternProperties,a=Object.keys(i),o=[];for(let e of a){let n=I8(i[e],t),r=$.string().regex(new RegExp(e));o.push($.looseRecord(r,n))}let s=[];if(Object.keys(n).length>0&&s.push($.object(n).passthrough()),s.push(...o),s.length===0)r=$.object({}).passthrough();else if(s.length===1)r=s[0];else{let e=$.intersection(s[0],s[1]);for(let t=2;tI8(e,t)),o=i&&typeof i==`object`&&!Array.isArray(i)?I8(i,t):void 0;r=o?$.tuple(a).rest(o):$.tuple(a),typeof e.minItems==`number`&&(r=r.check($.minLength(e.minItems))),typeof e.maxItems==`number`&&(r=r.check($.maxLength(e.maxItems)))}else if(Array.isArray(i)){let n=i.map(e=>I8(e,t)),a=e.additionalItems&&typeof e.additionalItems==`object`?I8(e.additionalItems,t):void 0;r=a?$.tuple(n).rest(a):$.tuple(n),typeof e.minItems==`number`&&(r=r.check($.minLength(e.minItems))),typeof e.maxItems==`number`&&(r=r.check($.maxLength(e.maxItems)))}else if(i!==void 0){let n=I8(i,t),a=$.array(n);typeof e.minItems==`number`&&(a=a.min(e.minItems)),typeof e.maxItems==`number`&&(a=a.max(e.maxItems)),r=a}else r=$.array($.any());break}default:throw Error(`Unsupported type: ${n}`)}return r}function I8(e,t){if(typeof e==`boolean`)return e?$.any():$.never();let n=F8(e,t),r=e.type||e.enum!==void 0||e.const!==void 0;if(e.anyOf&&Array.isArray(e.anyOf)){let i=e.anyOf.map(e=>I8(e,t)),a=$.union(i);n=r?$.intersection(n,a):a}if(e.oneOf&&Array.isArray(e.oneOf)){let i=e.oneOf.map(e=>I8(e,t)),a=$.xor(i);n=r?$.intersection(n,a):a}if(e.allOf&&Array.isArray(e.allOf))if(e.allOf.length===0)n=r?n:$.any();else{let i=r?n:I8(e.allOf[0],t),a=+!r;for(let n=a;n0&&t.registry.add(n,i),e.description&&(n=n.describe(e.description)),n}function L8(e,t){if(typeof e==`boolean`)return e?$.any():$.never();let n;try{n=JSON.parse(JSON.stringify(e))}catch{throw Error(`fromJSONSchema input is not valid JSON (possibly cyclic); use $defs/$ref for recursive schemas`)}let r={version:N8(n,t?.defaultTarget),defs:n.$defs||n.definitions||{},refs:new Map,processing:new Set,rootSchema:n,registry:t?.registry??M$};return I8(n,r)}var $,R8,z8=o((()=>{N$(),X2(),o4(),D8(),$={...w4,...Y2,iso:Z2},R8=new Set(`$schema.$ref.$defs.definitions.$id.id.$comment.$anchor.$vocabulary.$dynamicRef.$dynamicAnchor.type.enum.const.anyOf.oneOf.allOf.not.properties.required.additionalProperties.patternProperties.propertyNames.minProperties.maxProperties.items.prefixItems.additionalItems.minItems.maxItems.uniqueItems.contains.minContains.maxContains.minLength.maxLength.pattern.format.minimum.maximum.exclusiveMinimum.exclusiveMaximum.multipleOf.description.default.contentEncoding.contentMediaType.contentSchema.unevaluatedItems.unevaluatedProperties.if.then.else.dependentSchemas.dependentRequired.nullable.readOnly`.split(`.`))})),B8=c({bigint:()=>W8,boolean:()=>U8,date:()=>G8,number:()=>H8,string:()=>V8});function V8(e){return F$(u6,e)}function H8(e){return u1(N6,e)}function U8(e){return _1(F6,e)}function W8(e){return y1(I6,e)}function G8(e){return A1(G6,e)}var K8=o((()=>{W2(),D8()})),q8=c({$brand:()=>eG,$input:()=>A$,$output:()=>k$,NEVER:()=>$W,TimePrecision:()=>B0,ZodAny:()=>V6,ZodArray:()=>K6,ZodBase64:()=>O6,ZodBase64URL:()=>k6,ZodBigInt:()=>I6,ZodBigIntFormat:()=>L6,ZodBoolean:()=>F6,ZodCIDRv4:()=>E6,ZodCIDRv6:()=>D6,ZodCUID:()=>v6,ZodCUID2:()=>y6,ZodCatch:()=>p8,ZodCodec:()=>g8,ZodCustom:()=>C8,ZodCustomStringFormat:()=>M6,ZodDate:()=>G6,ZodDefault:()=>l8,ZodDiscriminatedUnion:()=>X6,ZodE164:()=>A6,ZodEmail:()=>f6,ZodEmoji:()=>g6,ZodEnum:()=>n8,ZodError:()=>c4,ZodExactOptional:()=>s8,ZodFile:()=>i8,ZodFirstPartyTypeKind:()=>j8,ZodFunction:()=>S8,ZodGUID:()=>p6,ZodIPv4:()=>C6,ZodIPv6:()=>T6,ZodISODate:()=>r4,ZodISODateTime:()=>n4,ZodISODuration:()=>a4,ZodISOTime:()=>i4,ZodIntersection:()=>Z6,ZodIssueCode:()=>A8,ZodJWT:()=>j6,ZodKSUID:()=>S6,ZodLazy:()=>b8,ZodLiteral:()=>r8,ZodMAC:()=>w6,ZodMap:()=>e8,ZodNaN:()=>m8,ZodNanoID:()=>_6,ZodNever:()=>U6,ZodNonOptional:()=>d8,ZodNull:()=>B6,ZodNullable:()=>c8,ZodNumber:()=>N6,ZodNumberFormat:()=>P6,ZodObject:()=>q6,ZodOptional:()=>o8,ZodPipe:()=>h8,ZodPrefault:()=>u8,ZodPreprocess:()=>_8,ZodPromise:()=>x8,ZodReadonly:()=>v8,ZodRealError:()=>l4,ZodRecord:()=>$6,ZodSet:()=>t8,ZodString:()=>u6,ZodStringFormat:()=>d6,ZodSuccess:()=>f8,ZodSymbol:()=>R6,ZodTemplateLiteral:()=>y8,ZodTransform:()=>a8,ZodTuple:()=>Q6,ZodType:()=>c6,ZodULID:()=>b6,ZodURL:()=>h6,ZodUUID:()=>m6,ZodUndefined:()=>z6,ZodUnion:()=>J6,ZodUnknown:()=>H6,ZodVoid:()=>W6,ZodXID:()=>x6,ZodXor:()=>Y6,_ZodString:()=>l6,_default:()=>B3,_function:()=>$3,any:()=>p3,array:()=>v3,base64:()=>K4,base64url:()=>q4,bigint:()=>s3,boolean:()=>o3,catch:()=>W3,check:()=>e6,cidrv4:()=>W4,cidrv6:()=>G4,clone:()=>MG,codec:()=>q3,coerce:()=>B8,config:()=>ZW,core:()=>U2,cuid:()=>I4,cuid2:()=>L4,custom:()=>t6,date:()=>_3,decode:()=>g4,decodeAsync:()=>v4,describe:()=>w8,discriminatedUnion:()=>w3,e164:()=>J4,email:()=>E4,emoji:()=>P4,encode:()=>h4,encodeAsync:()=>_4,endsWith:()=>Q1,enum:()=>M3,exactOptional:()=>L3,file:()=>P3,flattenError:()=>hK,float32:()=>n3,float64:()=>r3,formatError:()=>gK,fromJSONSchema:()=>L8,function:()=>$3,getErrorMap:()=>k8,globalRegistry:()=>M$,gt:()=>P1,gte:()=>F1,guid:()=>D4,hash:()=>$4,hex:()=>Q4,hostname:()=>Z4,httpUrl:()=>N4,includes:()=>X1,instanceof:()=>i6,int:()=>t3,int32:()=>i3,int64:()=>c3,intersection:()=>T3,invertCodec:()=>J3,ipv4:()=>V4,ipv6:()=>U4,iso:()=>Z2,json:()=>a6,jwt:()=>Y4,keyof:()=>y3,ksuid:()=>B4,lazy:()=>Z3,length:()=>K1,literal:()=>Q,locales:()=>T$,looseObject:()=>x3,looseRecord:()=>k3,lowercase:()=>J1,lt:()=>M1,lte:()=>N1,mac:()=>H4,map:()=>A3,maxLength:()=>W1,maxSize:()=>V1,meta:()=>T8,mime:()=>e0,minLength:()=>G1,minSize:()=>H1,multipleOf:()=>B1,nan:()=>G3,nanoid:()=>F4,nativeEnum:()=>N3,negative:()=>L1,never:()=>h3,nonnegative:()=>z1,nonoptional:()=>H3,nonpositive:()=>R1,normalize:()=>n0,null:()=>f3,nullable:()=>R3,nullish:()=>z3,number:()=>e3,object:()=>Z,optional:()=>I3,overwrite:()=>t0,parse:()=>d4,parseAsync:()=>f4,partialRecord:()=>O3,pipe:()=>K3,positive:()=>I1,prefault:()=>V3,preprocess:()=>o6,prettifyError:()=>yK,promise:()=>Q3,property:()=>$1,readonly:()=>Y3,record:()=>D3,refine:()=>n6,regex:()=>q1,regexes:()=>YK,registry:()=>D$,safeDecode:()=>b4,safeDecodeAsync:()=>S4,safeEncode:()=>y4,safeEncodeAsync:()=>x4,safeParse:()=>p4,safeParseAsync:()=>m4,set:()=>j3,setErrorMap:()=>O8,size:()=>U1,slugify:()=>o0,startsWith:()=>Z1,strictObject:()=>b3,string:()=>X,stringFormat:()=>X4,stringbool:()=>E8,success:()=>U3,superRefine:()=>r6,symbol:()=>u3,templateLiteral:()=>X3,toJSONSchema:()=>X0,toLowerCase:()=>i0,toUpperCase:()=>a0,transform:()=>F3,treeifyError:()=>_K,trim:()=>r0,tuple:()=>E3,uint32:()=>a3,uint64:()=>l3,ulid:()=>R4,undefined:()=>d3,union:()=>S3,unknown:()=>m3,uppercase:()=>Y1,url:()=>M4,util:()=>aG,uuid:()=>O4,uuidv4:()=>k4,uuidv6:()=>A4,uuidv7:()=>j4,void:()=>g3,xid:()=>z4,xor:()=>C3}),J8=o((()=>{W2(),D8(),X2(),u4(),C4(),M8(),rZ(),R2(),z8(),E$(),o4(),K8(),ZW(tZ())})),Y8,X8=o((()=>{J8(),J8(),Y8=q8})),Z8=c({$brand:()=>eG,$input:()=>A$,$output:()=>k$,NEVER:()=>$W,TimePrecision:()=>B0,ZodAny:()=>V6,ZodArray:()=>K6,ZodBase64:()=>O6,ZodBase64URL:()=>k6,ZodBigInt:()=>I6,ZodBigIntFormat:()=>L6,ZodBoolean:()=>F6,ZodCIDRv4:()=>E6,ZodCIDRv6:()=>D6,ZodCUID:()=>v6,ZodCUID2:()=>y6,ZodCatch:()=>p8,ZodCodec:()=>g8,ZodCustom:()=>C8,ZodCustomStringFormat:()=>M6,ZodDate:()=>G6,ZodDefault:()=>l8,ZodDiscriminatedUnion:()=>X6,ZodE164:()=>A6,ZodEmail:()=>f6,ZodEmoji:()=>g6,ZodEnum:()=>n8,ZodError:()=>c4,ZodExactOptional:()=>s8,ZodFile:()=>i8,ZodFirstPartyTypeKind:()=>j8,ZodFunction:()=>S8,ZodGUID:()=>p6,ZodIPv4:()=>C6,ZodIPv6:()=>T6,ZodISODate:()=>r4,ZodISODateTime:()=>n4,ZodISODuration:()=>a4,ZodISOTime:()=>i4,ZodIntersection:()=>Z6,ZodIssueCode:()=>A8,ZodJWT:()=>j6,ZodKSUID:()=>S6,ZodLazy:()=>b8,ZodLiteral:()=>r8,ZodMAC:()=>w6,ZodMap:()=>e8,ZodNaN:()=>m8,ZodNanoID:()=>_6,ZodNever:()=>U6,ZodNonOptional:()=>d8,ZodNull:()=>B6,ZodNullable:()=>c8,ZodNumber:()=>N6,ZodNumberFormat:()=>P6,ZodObject:()=>q6,ZodOptional:()=>o8,ZodPipe:()=>h8,ZodPrefault:()=>u8,ZodPreprocess:()=>_8,ZodPromise:()=>x8,ZodReadonly:()=>v8,ZodRealError:()=>l4,ZodRecord:()=>$6,ZodSet:()=>t8,ZodString:()=>u6,ZodStringFormat:()=>d6,ZodSuccess:()=>f8,ZodSymbol:()=>R6,ZodTemplateLiteral:()=>y8,ZodTransform:()=>a8,ZodTuple:()=>Q6,ZodType:()=>c6,ZodULID:()=>b6,ZodURL:()=>h6,ZodUUID:()=>m6,ZodUndefined:()=>z6,ZodUnion:()=>J6,ZodUnknown:()=>H6,ZodVoid:()=>W6,ZodXID:()=>x6,ZodXor:()=>Y6,_ZodString:()=>l6,_default:()=>B3,_function:()=>$3,any:()=>p3,array:()=>v3,base64:()=>K4,base64url:()=>q4,bigint:()=>s3,boolean:()=>o3,catch:()=>W3,check:()=>e6,cidrv4:()=>W4,cidrv6:()=>G4,clone:()=>MG,codec:()=>q3,coerce:()=>B8,config:()=>ZW,core:()=>U2,cuid:()=>I4,cuid2:()=>L4,custom:()=>t6,date:()=>_3,decode:()=>g4,decodeAsync:()=>v4,default:()=>Q8,describe:()=>w8,discriminatedUnion:()=>w3,e164:()=>J4,email:()=>E4,emoji:()=>P4,encode:()=>h4,encodeAsync:()=>_4,endsWith:()=>Q1,enum:()=>M3,exactOptional:()=>L3,file:()=>P3,flattenError:()=>hK,float32:()=>n3,float64:()=>r3,formatError:()=>gK,fromJSONSchema:()=>L8,function:()=>$3,getErrorMap:()=>k8,globalRegistry:()=>M$,gt:()=>P1,gte:()=>F1,guid:()=>D4,hash:()=>$4,hex:()=>Q4,hostname:()=>Z4,httpUrl:()=>N4,includes:()=>X1,instanceof:()=>i6,int:()=>t3,int32:()=>i3,int64:()=>c3,intersection:()=>T3,invertCodec:()=>J3,ipv4:()=>V4,ipv6:()=>U4,iso:()=>Z2,json:()=>a6,jwt:()=>Y4,keyof:()=>y3,ksuid:()=>B4,lazy:()=>Z3,length:()=>K1,literal:()=>Q,locales:()=>T$,looseObject:()=>x3,looseRecord:()=>k3,lowercase:()=>J1,lt:()=>M1,lte:()=>N1,mac:()=>H4,map:()=>A3,maxLength:()=>W1,maxSize:()=>V1,meta:()=>T8,mime:()=>e0,minLength:()=>G1,minSize:()=>H1,multipleOf:()=>B1,nan:()=>G3,nanoid:()=>F4,nativeEnum:()=>N3,negative:()=>L1,never:()=>h3,nonnegative:()=>z1,nonoptional:()=>H3,nonpositive:()=>R1,normalize:()=>n0,null:()=>f3,nullable:()=>R3,nullish:()=>z3,number:()=>e3,object:()=>Z,optional:()=>I3,overwrite:()=>t0,parse:()=>d4,parseAsync:()=>f4,partialRecord:()=>O3,pipe:()=>K3,positive:()=>I1,prefault:()=>V3,preprocess:()=>o6,prettifyError:()=>yK,promise:()=>Q3,property:()=>$1,readonly:()=>Y3,record:()=>D3,refine:()=>n6,regex:()=>q1,regexes:()=>YK,registry:()=>D$,safeDecode:()=>b4,safeDecodeAsync:()=>S4,safeEncode:()=>y4,safeEncodeAsync:()=>x4,safeParse:()=>p4,safeParseAsync:()=>m4,set:()=>j3,setErrorMap:()=>O8,size:()=>U1,slugify:()=>o0,startsWith:()=>Z1,strictObject:()=>b3,string:()=>X,stringFormat:()=>X4,stringbool:()=>E8,success:()=>U3,superRefine:()=>r6,symbol:()=>u3,templateLiteral:()=>X3,toJSONSchema:()=>X0,toLowerCase:()=>i0,toUpperCase:()=>a0,transform:()=>F3,treeifyError:()=>_K,trim:()=>r0,tuple:()=>E3,uint32:()=>a3,uint64:()=>l3,ulid:()=>R4,undefined:()=>d3,union:()=>S3,unknown:()=>m3,uppercase:()=>Y1,url:()=>M4,util:()=>aG,uuid:()=>O4,uuidv4:()=>k4,uuidv6:()=>A4,uuidv7:()=>j4,void:()=>g3,xid:()=>z4,xor:()=>C3,z:()=>q8}),Q8,$8=o((()=>{X8(),X8(),Q8=Y8}));$8();var e5=`io.modelcontextprotocol/related-task`,t5=t6(e=>e!==null&&(typeof e==`object`||typeof e==`function`)),n5=S3([X(),e3().int()]),r5=X();x3({ttl:e3().optional(),pollInterval:e3().optional()});var i5=Z({ttl:e3().optional()}),a5=Z({taskId:X()}),o5=x3({progressToken:n5.optional(),[e5]:a5.optional()}),s5=Z({_meta:o5.optional()}),c5=s5.extend({task:i5.optional()}),l5=e=>c5.safeParse(e).success,u5=Z({method:X(),params:s5.loose().optional()}),d5=Z({_meta:o5.optional()}),f5=Z({method:X(),params:d5.loose().optional()}),p5=x3({_meta:o5.optional()}),m5=S3([X(),e3().int()]),h5=Z({jsonrpc:Q(`2.0`),id:m5,...u5.shape}).strict(),g5=e=>h5.safeParse(e).success,_5=Z({jsonrpc:Q(`2.0`),...f5.shape}).strict(),v5=e=>_5.safeParse(e).success,y5=Z({jsonrpc:Q(`2.0`),id:m5,result:p5}).strict(),b5=e=>y5.safeParse(e).success,x5;(function(e){e[e.ConnectionClosed=-32e3]=`ConnectionClosed`,e[e.RequestTimeout=-32001]=`RequestTimeout`,e[e.ParseError=-32700]=`ParseError`,e[e.InvalidRequest=-32600]=`InvalidRequest`,e[e.MethodNotFound=-32601]=`MethodNotFound`,e[e.InvalidParams=-32602]=`InvalidParams`,e[e.InternalError=-32603]=`InternalError`,e[e.UrlElicitationRequired=-32042]=`UrlElicitationRequired`})(x5||={});var S5=Z({jsonrpc:Q(`2.0`),id:m5.optional(),error:Z({code:e3().int(),message:X(),data:m3().optional()})}).strict(),C5=e=>S5.safeParse(e).success,w5=S3([h5,_5,y5,S5]);S3([y5,S5]);var T5=p5.strict(),E5=d5.extend({requestId:m5.optional(),reason:X().optional()}),D5=f5.extend({method:Q(`notifications/cancelled`),params:E5}),O5=Z({icons:v3(Z({src:X(),mimeType:X().optional(),sizes:v3(X()).optional(),theme:M3([`light`,`dark`]).optional()})).optional()}),k5=Z({name:X(),title:X().optional()}),A5=k5.extend({...k5.shape,...O5.shape,version:X(),websiteUrl:X().optional(),description:X().optional()}),j5=o6(e=>e&&typeof e==`object`&&!Array.isArray(e)&&Object.keys(e).length===0?{form:{}}:e,T3(Z({form:T3(Z({applyDefaults:o3().optional()}),D3(X(),m3())).optional(),url:t5.optional()}),D3(X(),m3()).optional())),M5=x3({list:t5.optional(),cancel:t5.optional(),requests:x3({sampling:x3({createMessage:t5.optional()}).optional(),elicitation:x3({create:t5.optional()}).optional()}).optional()}),N5=x3({list:t5.optional(),cancel:t5.optional(),requests:x3({tools:x3({call:t5.optional()}).optional()}).optional()}),P5=Z({experimental:D3(X(),t5).optional(),sampling:Z({context:t5.optional(),tools:t5.optional()}).optional(),elicitation:j5.optional(),roots:Z({listChanged:o3().optional()}).optional(),tasks:M5.optional(),extensions:D3(X(),t5).optional()}),F5=s5.extend({protocolVersion:X(),capabilities:P5,clientInfo:A5}),I5=u5.extend({method:Q(`initialize`),params:F5}),L5=Z({experimental:D3(X(),t5).optional(),logging:t5.optional(),completions:t5.optional(),prompts:Z({listChanged:o3().optional()}).optional(),resources:Z({subscribe:o3().optional(),listChanged:o3().optional()}).optional(),tools:Z({listChanged:o3().optional()}).optional(),tasks:N5.optional(),extensions:D3(X(),t5).optional()}),R5=p5.extend({protocolVersion:X(),capabilities:L5,serverInfo:A5,instructions:X().optional()}),z5=f5.extend({method:Q(`notifications/initialized`),params:d5.optional()}),B5=u5.extend({method:Q(`ping`),params:s5.optional()}),V5=Z({progress:e3(),total:I3(e3()),message:I3(X())}),H5=Z({...d5.shape,...V5.shape,progressToken:n5}),U5=f5.extend({method:Q(`notifications/progress`),params:H5}),W5=s5.extend({cursor:r5.optional()}),G5=u5.extend({params:W5.optional()}),K5=p5.extend({nextCursor:r5.optional()}),q5=M3([`working`,`input_required`,`completed`,`failed`,`cancelled`]),J5=Z({taskId:X(),status:q5,ttl:S3([e3(),f3()]),createdAt:X(),lastUpdatedAt:X(),pollInterval:I3(e3()),statusMessage:I3(X())}),Y5=p5.extend({task:J5}),X5=d5.merge(J5),Z5=f5.extend({method:Q(`notifications/tasks/status`),params:X5}),Q5=u5.extend({method:Q(`tasks/get`),params:s5.extend({taskId:X()})}),$5=p5.merge(J5),e7=u5.extend({method:Q(`tasks/result`),params:s5.extend({taskId:X()})});p5.loose();var t7=G5.extend({method:Q(`tasks/list`)}),n7=K5.extend({tasks:v3(J5)}),r7=u5.extend({method:Q(`tasks/cancel`),params:s5.extend({taskId:X()})}),i7=p5.merge(J5),a7=Z({uri:X(),mimeType:I3(X()),_meta:D3(X(),m3()).optional()}),o7=a7.extend({text:X()}),s7=X().refine(e=>{try{return atob(e),!0}catch{return!1}},{message:`Invalid Base64 string`}),c7=a7.extend({blob:s7}),l7=M3([`user`,`assistant`]),u7=Z({audience:v3(l7).optional(),priority:e3().min(0).max(1).optional(),lastModified:Q2({offset:!0}).optional()}),d7=Z({...k5.shape,...O5.shape,uri:X(),description:I3(X()),mimeType:I3(X()),size:I3(e3()),annotations:u7.optional(),_meta:I3(x3({}))}),f7=Z({...k5.shape,...O5.shape,uriTemplate:X(),description:I3(X()),mimeType:I3(X()),annotations:u7.optional(),_meta:I3(x3({}))}),p7=G5.extend({method:Q(`resources/list`)}),m7=K5.extend({resources:v3(d7)}),h7=G5.extend({method:Q(`resources/templates/list`)}),g7=K5.extend({resourceTemplates:v3(f7)}),_7=s5.extend({uri:X()}),v7=_7,y7=u5.extend({method:Q(`resources/read`),params:v7}),b7=p5.extend({contents:v3(S3([o7,c7]))}),x7=f5.extend({method:Q(`notifications/resources/list_changed`),params:d5.optional()}),S7=_7,C7=u5.extend({method:Q(`resources/subscribe`),params:S7}),w7=_7,T7=u5.extend({method:Q(`resources/unsubscribe`),params:w7}),E7=d5.extend({uri:X()}),D7=f5.extend({method:Q(`notifications/resources/updated`),params:E7}),O7=Z({name:X(),description:I3(X()),required:I3(o3())}),k7=Z({...k5.shape,...O5.shape,description:I3(X()),arguments:I3(v3(O7)),_meta:I3(x3({}))}),A7=G5.extend({method:Q(`prompts/list`)}),j7=K5.extend({prompts:v3(k7)}),M7=s5.extend({name:X(),arguments:D3(X(),X()).optional()}),N7=u5.extend({method:Q(`prompts/get`),params:M7}),P7=Z({type:Q(`text`),text:X(),annotations:u7.optional(),_meta:D3(X(),m3()).optional()}),F7=Z({type:Q(`image`),data:s7,mimeType:X(),annotations:u7.optional(),_meta:D3(X(),m3()).optional()}),I7=Z({type:Q(`audio`),data:s7,mimeType:X(),annotations:u7.optional(),_meta:D3(X(),m3()).optional()}),L7=Z({type:Q(`tool_use`),name:X(),id:X(),input:D3(X(),m3()),_meta:D3(X(),m3()).optional()}),R7=Z({type:Q(`resource`),resource:S3([o7,c7]),annotations:u7.optional(),_meta:D3(X(),m3()).optional()}),z7=d7.extend({type:Q(`resource_link`)}),B7=S3([P7,F7,I7,z7,R7]),V7=Z({role:l7,content:B7}),H7=p5.extend({description:X().optional(),messages:v3(V7)}),U7=f5.extend({method:Q(`notifications/prompts/list_changed`),params:d5.optional()}),W7=Z({title:X().optional(),readOnlyHint:o3().optional(),destructiveHint:o3().optional(),idempotentHint:o3().optional(),openWorldHint:o3().optional()}),G7=Z({taskSupport:M3([`required`,`optional`,`forbidden`]).optional()}),K7=Z({...k5.shape,...O5.shape,description:X().optional(),inputSchema:Z({type:Q(`object`),properties:D3(X(),t5).optional(),required:v3(X()).optional()}).catchall(m3()),outputSchema:Z({type:Q(`object`),properties:D3(X(),t5).optional(),required:v3(X()).optional()}).catchall(m3()).optional(),annotations:W7.optional(),execution:G7.optional(),_meta:D3(X(),m3()).optional()}),q7=G5.extend({method:Q(`tools/list`)}),J7=K5.extend({tools:v3(K7)}),Y7=p5.extend({content:v3(B7).default([]),structuredContent:D3(X(),m3()).optional(),isError:o3().optional()});Y7.or(p5.extend({toolResult:m3()}));var X7=c5.extend({name:X(),arguments:D3(X(),m3()).optional()}),Z7=u5.extend({method:Q(`tools/call`),params:X7}),Q7=f5.extend({method:Q(`notifications/tools/list_changed`),params:d5.optional()});Z({autoRefresh:o3().default(!0),debounceMs:e3().int().nonnegative().default(300)});var $7=M3([`debug`,`info`,`notice`,`warning`,`error`,`critical`,`alert`,`emergency`]),e9=s5.extend({level:$7}),t9=u5.extend({method:Q(`logging/setLevel`),params:e9}),n9=d5.extend({level:$7,logger:X().optional(),data:m3()}),r9=f5.extend({method:Q(`notifications/message`),params:n9}),i9=Z({hints:v3(Z({name:X().optional()})).optional(),costPriority:e3().min(0).max(1).optional(),speedPriority:e3().min(0).max(1).optional(),intelligencePriority:e3().min(0).max(1).optional()}),a9=Z({mode:M3([`auto`,`required`,`none`]).optional()}),o9=Z({type:Q(`tool_result`),toolUseId:X().describe(`The unique identifier for the corresponding tool call.`),content:v3(B7).default([]),structuredContent:Z({}).loose().optional(),isError:o3().optional(),_meta:D3(X(),m3()).optional()}),s9=w3(`type`,[P7,F7,I7]),c9=w3(`type`,[P7,F7,I7,L7,o9]),l9=Z({role:l7,content:S3([c9,v3(c9)]),_meta:D3(X(),m3()).optional()}),u9=c5.extend({messages:v3(l9),modelPreferences:i9.optional(),systemPrompt:X().optional(),includeContext:M3([`none`,`thisServer`,`allServers`]).optional(),temperature:e3().optional(),maxTokens:e3().int(),stopSequences:v3(X()).optional(),metadata:t5.optional(),tools:v3(K7).optional(),toolChoice:a9.optional()}),d9=u5.extend({method:Q(`sampling/createMessage`),params:u9}),f9=p5.extend({model:X(),stopReason:I3(M3([`endTurn`,`stopSequence`,`maxTokens`]).or(X())),role:l7,content:s9}),p9=p5.extend({model:X(),stopReason:I3(M3([`endTurn`,`stopSequence`,`maxTokens`,`toolUse`]).or(X())),role:l7,content:S3([c9,v3(c9)])}),m9=Z({type:Q(`boolean`),title:X().optional(),description:X().optional(),default:o3().optional()}),h9=Z({type:Q(`string`),title:X().optional(),description:X().optional(),minLength:e3().optional(),maxLength:e3().optional(),format:M3([`email`,`uri`,`date`,`date-time`]).optional(),default:X().optional()}),g9=Z({type:M3([`number`,`integer`]),title:X().optional(),description:X().optional(),minimum:e3().optional(),maximum:e3().optional(),default:e3().optional()}),_9=Z({type:Q(`string`),title:X().optional(),description:X().optional(),enum:v3(X()),default:X().optional()}),v9=Z({type:Q(`string`),title:X().optional(),description:X().optional(),oneOf:v3(Z({const:X(),title:X()})),default:X().optional()}),y9=S3([S3([Z({type:Q(`string`),title:X().optional(),description:X().optional(),enum:v3(X()),enumNames:v3(X()).optional(),default:X().optional()}),S3([_9,v9]),S3([Z({type:Q(`array`),title:X().optional(),description:X().optional(),minItems:e3().optional(),maxItems:e3().optional(),items:Z({type:Q(`string`),enum:v3(X())}),default:v3(X()).optional()}),Z({type:Q(`array`),title:X().optional(),description:X().optional(),minItems:e3().optional(),maxItems:e3().optional(),items:Z({anyOf:v3(Z({const:X(),title:X()}))}),default:v3(X()).optional()})])]),m9,h9,g9]),b9=S3([c5.extend({mode:Q(`form`).optional(),message:X(),requestedSchema:Z({type:Q(`object`),properties:D3(X(),y9),required:v3(X()).optional()})}),c5.extend({mode:Q(`url`),message:X(),elicitationId:X(),url:X().url()})]),x9=u5.extend({method:Q(`elicitation/create`),params:b9}),S9=d5.extend({elicitationId:X()}),C9=f5.extend({method:Q(`notifications/elicitation/complete`),params:S9}),w9=p5.extend({action:M3([`accept`,`decline`,`cancel`]),content:o6(e=>e===null?void 0:e,D3(X(),S3([X(),e3(),o3(),v3(X())])).optional())}),T9=Z({type:Q(`ref/resource`),uri:X()}),E9=Z({type:Q(`ref/prompt`),name:X()}),D9=s5.extend({ref:S3([E9,T9]),argument:Z({name:X(),value:X()}),context:Z({arguments:D3(X(),X()).optional()}).optional()}),O9=u5.extend({method:Q(`completion/complete`),params:D9}),k9=p5.extend({completion:x3({values:v3(X()).max(100),total:I3(e3().int()),hasMore:I3(o3())})}),A9=Z({uri:X().startsWith(`file://`),name:X().optional(),_meta:D3(X(),m3()).optional()}),j9=u5.extend({method:Q(`roots/list`),params:s5.optional()}),M9=p5.extend({roots:v3(A9)}),N9=f5.extend({method:Q(`notifications/roots/list_changed`),params:d5.optional()});S3([B5,I5,O9,t9,N7,A7,p7,h7,y7,C7,T7,Z7,q7,Q5,e7,t7,r7]),S3([D5,U5,z5,N9,Z5]),S3([T5,f9,p9,w9,M9,$5,n7,Y5]),S3([B5,d9,x9,j9,Q5,e7,t7,r7]),S3([D5,U5,r9,D7,x7,Q7,U7,Z5,C9]),S3([T5,R5,k9,H7,j7,m7,g7,b7,Y7,J7,$5,n7,Y5]);var P9=class e extends Error{constructor(e,t,n){super(`MCP error ${e}: ${t}`),this.code=e,this.data=n,this.name=`McpError`}static fromError(t,n,r){if(t===x5.UrlElicitationRequired&&r){let e=r;if(e.elicitations)return new F9(e.elicitations,n)}return new e(t,n,r)}},F9=class extends P9{constructor(e,t=`URL elicitation${e.length>1?`s`:``} required`){super(x5.UrlElicitationRequired,t,{elicitations:e})}get elicitations(){return this.data?.elicitations??[]}};function I9(e){return e===`completed`||e===`failed`||e===`cancelled`}function L9(e){let t=q2(e)?.method;if(!t)throw Error(`Schema is missing a method literal`);let n=J2(t);if(typeof n!=`string`)throw Error(`Schema method literal must be a string`);return n}function R9(e,t){let n=K2(e,t);if(!n.success)throw n.error;return n.data}var z9=class{constructor(e){this._options=e,this._requestMessageId=0,this._requestHandlers=new Map,this._requestHandlerAbortControllers=new Map,this._notificationHandlers=new Map,this._responseHandlers=new Map,this._progressHandlers=new Map,this._timeoutInfo=new Map,this._pendingDebouncedNotifications=new Set,this._taskProgressTokens=new Map,this._requestResolvers=new Map,this.setNotificationHandler(D5,e=>{this._oncancel(e)}),this.setNotificationHandler(U5,e=>{this._onprogress(e)}),this.setRequestHandler(B5,e=>({})),this._taskStore=e?.taskStore,this._taskMessageQueue=e?.taskMessageQueue,this._taskStore&&(this.setRequestHandler(Q5,async(e,t)=>{let n=await this._taskStore.getTask(e.params.taskId,t.sessionId);if(!n)throw new P9(x5.InvalidParams,`Failed to retrieve task: Task not found`);return{...n}}),this.setRequestHandler(e7,async(e,t)=>{let n=async()=>{let r=e.params.taskId;if(this._taskMessageQueue){let e;for(;e=await this._taskMessageQueue.dequeue(r,t.sessionId);){if(e.type===`response`||e.type===`error`){let t=e.message,n=t.id,r=this._requestResolvers.get(n);if(r)if(this._requestResolvers.delete(n),e.type===`response`)r(t);else{let e=t;r(new P9(e.error.code,e.error.message,e.error.data))}else{let t=e.type===`response`?`Response`:`Error`;this._onerror(Error(`${t} handler missing for request ${n}`))}continue}await this._transport?.send(e.message,{relatedRequestId:t.requestId})}}let i=await this._taskStore.getTask(r,t.sessionId);if(!i)throw new P9(x5.InvalidParams,`Task not found: ${r}`);if(!I9(i.status))return await this._waitForTaskUpdate(r,t.signal),await n();if(I9(i.status)){let e=await this._taskStore.getTaskResult(r,t.sessionId);return this._clearTaskQueue(r),{...e,_meta:{...e._meta,[e5]:{taskId:r}}}}return await n()};return await n()}),this.setRequestHandler(t7,async(e,t)=>{try{let{tasks:n,nextCursor:r}=await this._taskStore.listTasks(e.params?.cursor,t.sessionId);return{tasks:n,nextCursor:r,_meta:{}}}catch(e){throw new P9(x5.InvalidParams,`Failed to list tasks: ${e instanceof Error?e.message:String(e)}`)}}),this.setRequestHandler(r7,async(e,t)=>{try{let n=await this._taskStore.getTask(e.params.taskId,t.sessionId);if(!n)throw new P9(x5.InvalidParams,`Task not found: ${e.params.taskId}`);if(I9(n.status))throw new P9(x5.InvalidParams,`Cannot cancel task in terminal status: ${n.status}`);await this._taskStore.updateTaskStatus(e.params.taskId,`cancelled`,`Client cancelled task execution.`,t.sessionId),this._clearTaskQueue(e.params.taskId);let r=await this._taskStore.getTask(e.params.taskId,t.sessionId);if(!r)throw new P9(x5.InvalidParams,`Task not found after cancellation: ${e.params.taskId}`);return{_meta:{},...r}}catch(e){throw e instanceof P9?e:new P9(x5.InvalidRequest,`Failed to cancel task: ${e instanceof Error?e.message:String(e)}`)}}))}async _oncancel(e){e.params.requestId&&this._requestHandlerAbortControllers.get(e.params.requestId)?.abort(e.params.reason)}_setupTimeout(e,t,n,r,i=!1){this._timeoutInfo.set(e,{timeoutId:setTimeout(r,t),startTime:Date.now(),timeout:t,maxTotalTimeout:n,resetTimeoutOnProgress:i,onTimeout:r})}_resetTimeout(e){let t=this._timeoutInfo.get(e);if(!t)return!1;let n=Date.now()-t.startTime;if(t.maxTotalTimeout&&n>=t.maxTotalTimeout)throw this._timeoutInfo.delete(e),P9.fromError(x5.RequestTimeout,`Maximum total timeout exceeded`,{maxTotalTimeout:t.maxTotalTimeout,totalElapsed:n});return clearTimeout(t.timeoutId),t.timeoutId=setTimeout(t.onTimeout,t.timeout),!0}_cleanupTimeout(e){let t=this._timeoutInfo.get(e);t&&(clearTimeout(t.timeoutId),this._timeoutInfo.delete(e))}async connect(e){if(this._transport)throw Error(`Already connected to a transport. Call close() before connecting to a new transport, or use a separate Protocol instance per connection.`);this._transport=e;let t=this.transport?.onclose;this._transport.onclose=()=>{t?.(),this._onclose()};let n=this.transport?.onerror;this._transport.onerror=e=>{n?.(e),this._onerror(e)};let r=this._transport?.onmessage;this._transport.onmessage=(e,t)=>{r?.(e,t),b5(e)||C5(e)?this._onresponse(e):g5(e)?this._onrequest(e,t):v5(e)?this._onnotification(e):this._onerror(Error(`Unknown message type: ${JSON.stringify(e)}`))},await this._transport.start()}_onclose(){let e=this._responseHandlers;this._responseHandlers=new Map,this._progressHandlers.clear(),this._taskProgressTokens.clear(),this._pendingDebouncedNotifications.clear();for(let e of this._timeoutInfo.values())clearTimeout(e.timeoutId);this._timeoutInfo.clear();for(let e of this._requestHandlerAbortControllers.values())e.abort();this._requestHandlerAbortControllers.clear();let t=P9.fromError(x5.ConnectionClosed,`Connection closed`);this._transport=void 0,this.onclose?.();for(let n of e.values())n(t)}_onerror(e){this.onerror?.(e)}_onnotification(e){let t=this._notificationHandlers.get(e.method)??this.fallbackNotificationHandler;t!==void 0&&Promise.resolve().then(()=>t(e)).catch(e=>this._onerror(Error(`Uncaught error in notification handler: ${e}`)))}_onrequest(e,t){let n=this._requestHandlers.get(e.method)??this.fallbackRequestHandler,r=this._transport,i=e.params?._meta?.[e5]?.taskId;if(n===void 0){let t={jsonrpc:`2.0`,id:e.id,error:{code:x5.MethodNotFound,message:`Method not found`}};i&&this._taskMessageQueue?this._enqueueTaskMessage(i,{type:`error`,message:t,timestamp:Date.now()},r?.sessionId).catch(e=>this._onerror(Error(`Failed to enqueue error response: ${e}`))):r?.send(t).catch(e=>this._onerror(Error(`Failed to send an error response: ${e}`)));return}let a=new AbortController;this._requestHandlerAbortControllers.set(e.id,a);let o=l5(e.params)?e.params.task:void 0,s=this._taskStore?this.requestTaskStore(e,r?.sessionId):void 0,c={signal:a.signal,sessionId:r?.sessionId,_meta:e.params?._meta,sendNotification:async t=>{if(a.signal.aborted)return;let n={relatedRequestId:e.id};i&&(n.relatedTask={taskId:i}),await this.notification(t,n)},sendRequest:async(t,n,r)=>{if(a.signal.aborted)throw new P9(x5.ConnectionClosed,`Request was cancelled`);let o={...r,relatedRequestId:e.id};i&&!o.relatedTask&&(o.relatedTask={taskId:i});let c=o.relatedTask?.taskId??i;return c&&s&&await s.updateTaskStatus(c,`input_required`),await this.request(t,n,o)},authInfo:t?.authInfo,requestId:e.id,requestInfo:t?.requestInfo,taskId:i,taskStore:s,taskRequestedTtl:o?.ttl,closeSSEStream:t?.closeSSEStream,closeStandaloneSSEStream:t?.closeStandaloneSSEStream};Promise.resolve().then(()=>{o&&this.assertTaskHandlerCapability(e.method)}).then(()=>n(e,c)).then(async t=>{if(a.signal.aborted)return;let n={result:t,jsonrpc:`2.0`,id:e.id};i&&this._taskMessageQueue?await this._enqueueTaskMessage(i,{type:`response`,message:n,timestamp:Date.now()},r?.sessionId):await r?.send(n)},async t=>{if(a.signal.aborted)return;let n={jsonrpc:`2.0`,id:e.id,error:{code:Number.isSafeInteger(t.code)?t.code:x5.InternalError,message:t.message??`Internal error`,...t.data!==void 0&&{data:t.data}}};i&&this._taskMessageQueue?await this._enqueueTaskMessage(i,{type:`error`,message:n,timestamp:Date.now()},r?.sessionId):await r?.send(n)}).catch(e=>this._onerror(Error(`Failed to send response: ${e}`))).finally(()=>{this._requestHandlerAbortControllers.get(e.id)===a&&this._requestHandlerAbortControllers.delete(e.id)})}_onprogress(e){let{progressToken:t,...n}=e.params,r=Number(t),i=this._progressHandlers.get(r);if(!i){this._onerror(Error(`Received a progress notification for an unknown token: ${JSON.stringify(e)}`));return}let a=this._responseHandlers.get(r),o=this._timeoutInfo.get(r);if(o&&a&&o.resetTimeoutOnProgress)try{this._resetTimeout(r)}catch(e){this._responseHandlers.delete(r),this._progressHandlers.delete(r),this._cleanupTimeout(r),a(e);return}i(n)}_onresponse(e){let t=Number(e.id),n=this._requestResolvers.get(t);if(n){this._requestResolvers.delete(t),b5(e)?n(e):n(new P9(e.error.code,e.error.message,e.error.data));return}let r=this._responseHandlers.get(t);if(r===void 0){this._onerror(Error(`Received a response for an unknown message ID: ${JSON.stringify(e)}`));return}this._responseHandlers.delete(t),this._cleanupTimeout(t);let i=!1;if(b5(e)&&e.result&&typeof e.result==`object`){let n=e.result;if(n.task&&typeof n.task==`object`){let e=n.task;typeof e.taskId==`string`&&(i=!0,this._taskProgressTokens.set(e.taskId,t))}}i||this._progressHandlers.delete(t),b5(e)?r(e):r(P9.fromError(e.error.code,e.error.message,e.error.data))}get transport(){return this._transport}async close(){await this._transport?.close()}async*requestStream(e,t,n){let{task:r}=n??{};if(!r){try{yield{type:`result`,result:await this.request(e,t,n)}}catch(e){yield{type:`error`,error:e instanceof P9?e:new P9(x5.InternalError,String(e))}}return}let i;try{let r=await this.request(e,Y5,n);if(r.task)i=r.task.taskId,yield{type:`taskCreated`,task:r.task};else throw new P9(x5.InternalError,`Task creation did not return a task`);for(;;){let e=await this.getTask({taskId:i},n);if(yield{type:`taskStatus`,task:e},I9(e.status)){e.status===`completed`?yield{type:`result`,result:await this.getTaskResult({taskId:i},t,n)}:e.status===`failed`?yield{type:`error`,error:new P9(x5.InternalError,`Task ${i} failed`)}:e.status===`cancelled`&&(yield{type:`error`,error:new P9(x5.InternalError,`Task ${i} was cancelled`)});return}if(e.status===`input_required`){yield{type:`result`,result:await this.getTaskResult({taskId:i},t,n)};return}let r=e.pollInterval??this._options?.defaultTaskPollInterval??1e3;await new Promise(e=>setTimeout(e,r)),n?.signal?.throwIfAborted()}}catch(e){yield{type:`error`,error:e instanceof P9?e:new P9(x5.InternalError,String(e))}}}request(e,t,n){let{relatedRequestId:r,resumptionToken:i,onresumptiontoken:a,task:o,relatedTask:s}=n??{};return new Promise((c,l)=>{let u=e=>{l(e)};if(!this._transport){u(Error(`Not connected`));return}if(this._options?.enforceStrictCapabilities===!0)try{this.assertCapabilityForMethod(e.method),o&&this.assertTaskCapability(e.method)}catch(e){u(e);return}n?.signal?.throwIfAborted();let d=this._requestMessageId++,f={...e,jsonrpc:`2.0`,id:d};n?.onprogress&&(this._progressHandlers.set(d,n.onprogress),f.params={...e.params,_meta:{...e.params?._meta||{},progressToken:d}}),o&&(f.params={...f.params,task:o}),s&&(f.params={...f.params,_meta:{...f.params?._meta||{},[e5]:s}});let p=e=>{this._responseHandlers.delete(d),this._progressHandlers.delete(d),this._cleanupTimeout(d),this._transport?.send({jsonrpc:`2.0`,method:`notifications/cancelled`,params:{requestId:d,reason:String(e)}},{relatedRequestId:r,resumptionToken:i,onresumptiontoken:a}).catch(e=>this._onerror(Error(`Failed to send cancellation: ${e}`))),l(e instanceof P9?e:new P9(x5.RequestTimeout,String(e)))};this._responseHandlers.set(d,e=>{if(!n?.signal?.aborted){if(e instanceof Error)return l(e);try{let n=K2(t,e.result);n.success?c(n.data):l(n.error)}catch(e){l(e)}}}),n?.signal?.addEventListener(`abort`,()=>{p(n?.signal?.reason)});let m=n?.timeout??6e4;this._setupTimeout(d,m,n?.maxTotalTimeout,()=>p(P9.fromError(x5.RequestTimeout,`Request timed out`,{timeout:m})),n?.resetTimeoutOnProgress??!1);let h=s?.taskId;h?(this._requestResolvers.set(d,e=>{let t=this._responseHandlers.get(d);t?t(e):this._onerror(Error(`Response handler missing for side-channeled request ${d}`))}),this._enqueueTaskMessage(h,{type:`request`,message:f,timestamp:Date.now()}).catch(e=>{this._cleanupTimeout(d),l(e)})):this._transport.send(f,{relatedRequestId:r,resumptionToken:i,onresumptiontoken:a}).catch(e=>{this._cleanupTimeout(d),l(e)})})}async getTask(e,t){return this.request({method:`tasks/get`,params:e},$5,t)}async getTaskResult(e,t,n){return this.request({method:`tasks/result`,params:e},t,n)}async listTasks(e,t){return this.request({method:`tasks/list`,params:e},n7,t)}async cancelTask(e,t){return this.request({method:`tasks/cancel`,params:e},i7,t)}async notification(e,t){if(!this._transport)throw Error(`Not connected`);this.assertNotificationCapability(e.method);let n=t?.relatedTask?.taskId;if(n){let r={...e,jsonrpc:`2.0`,params:{...e.params,_meta:{...e.params?._meta||{},[e5]:t.relatedTask}}};await this._enqueueTaskMessage(n,{type:`notification`,message:r,timestamp:Date.now()});return}if((this._options?.debouncedNotificationMethods??[]).includes(e.method)&&!e.params&&!t?.relatedRequestId&&!t?.relatedTask){if(this._pendingDebouncedNotifications.has(e.method))return;this._pendingDebouncedNotifications.add(e.method),Promise.resolve().then(()=>{if(this._pendingDebouncedNotifications.delete(e.method),!this._transport)return;let n={...e,jsonrpc:`2.0`};t?.relatedTask&&(n={...n,params:{...n.params,_meta:{...n.params?._meta||{},[e5]:t.relatedTask}}}),this._transport?.send(n,t).catch(e=>this._onerror(e))});return}let r={...e,jsonrpc:`2.0`};t?.relatedTask&&(r={...r,params:{...r.params,_meta:{...r.params?._meta||{},[e5]:t.relatedTask}}}),await this._transport.send(r,t)}setRequestHandler(e,t){let n=L9(e);this.assertRequestHandlerCapability(n),this._requestHandlers.set(n,(n,r)=>{let i=R9(e,n);return Promise.resolve(t(i,r))})}removeRequestHandler(e){this._requestHandlers.delete(e)}assertCanSetRequestHandler(e){if(this._requestHandlers.has(e))throw Error(`A request handler for ${e} already exists, which would be overridden`)}setNotificationHandler(e,t){let n=L9(e);this._notificationHandlers.set(n,n=>{let r=R9(e,n);return Promise.resolve(t(r))})}removeNotificationHandler(e){this._notificationHandlers.delete(e)}_cleanupTaskProgressHandler(e){let t=this._taskProgressTokens.get(e);t!==void 0&&(this._progressHandlers.delete(t),this._taskProgressTokens.delete(e))}async _enqueueTaskMessage(e,t,n){if(!this._taskStore||!this._taskMessageQueue)throw Error(`Cannot enqueue task message: taskStore and taskMessageQueue are not configured`);let r=this._options?.maxTaskQueueSize;await this._taskMessageQueue.enqueue(e,t,n,r)}async _clearTaskQueue(e,t){if(this._taskMessageQueue){let n=await this._taskMessageQueue.dequeueAll(e,t);for(let t of n)if(t.type===`request`&&g5(t.message)){let n=t.message.id,r=this._requestResolvers.get(n);r?(r(new P9(x5.InternalError,`Task cancelled or completed`)),this._requestResolvers.delete(n)):this._onerror(Error(`Resolver missing for request ${n} during task ${e} cleanup`))}}}async _waitForTaskUpdate(e,t){let n=this._options?.defaultTaskPollInterval??1e3;try{let t=await this._taskStore?.getTask(e);t?.pollInterval&&(n=t.pollInterval)}catch{}return new Promise((e,r)=>{if(t.aborted){r(new P9(x5.InvalidRequest,`Request cancelled`));return}let i=setTimeout(e,n);t.addEventListener(`abort`,()=>{clearTimeout(i),r(new P9(x5.InvalidRequest,`Request cancelled`))},{once:!0})})}requestTaskStore(e,t){let n=this._taskStore;if(!n)throw Error(`No task store configured`);return{createTask:async r=>{if(!e)throw Error(`No request provided`);return await n.createTask(r,e.id,{method:e.method,params:e.params},t)},getTask:async e=>{let r=await n.getTask(e,t);if(!r)throw new P9(x5.InvalidParams,`Failed to retrieve task: Task not found`);return r},storeTaskResult:async(e,r,i)=>{await n.storeTaskResult(e,r,i,t);let a=await n.getTask(e,t);if(a){let t=Z5.parse({method:`notifications/tasks/status`,params:a});await this.notification(t),I9(a.status)&&this._cleanupTaskProgressHandler(e)}},getTaskResult:e=>n.getTaskResult(e,t),updateTaskStatus:async(e,r,i)=>{let a=await n.getTask(e,t);if(!a)throw new P9(x5.InvalidParams,`Task "${e}" not found - it may have been cleaned up`);if(I9(a.status))throw new P9(x5.InvalidParams,`Cannot update task "${e}" from terminal status "${a.status}" to "${r}". Terminal states (completed, failed, cancelled) cannot transition to other states.`);await n.updateTaskStatus(e,r,i,t);let o=await n.getTask(e,t);if(o){let t=Z5.parse({method:`notifications/tasks/status`,params:o});await this.notification(t),I9(o.status)&&this._cleanupTaskProgressHandler(e)}},listTasks:e=>n.listTasks(e,t)}}};function B9(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function V9(e,t){let n={...e};for(let e in t){let r=e,i=t[r];if(i===void 0)continue;let a=n[r];n[r]=B9(a)&&B9(i)?{...a,...i}:i}return n}var H9=`modulepreload`,U9=function(e,t){return new URL(e,t).href},W9={},dee=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=document.getElementsByTagName(`link`),i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}function s(e){return import.meta.resolve?import.meta.resolve(e):new URL(e,import.meta.url).href}r=o(t.map(t=>{if(t=U9(t,n),t=s(t),t in W9)return;W9[t]=!0;let r=t.endsWith(`.css`);for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.href===t&&(!r||i.rel===`stylesheet`))return}let i=document.createElement(`link`);if(i.rel=r?`stylesheet`:H9,r||(i.as=`script`),i.crossOrigin=``,i.href=t,a&&i.setAttribute(`nonce`,a),document.head.appendChild(i),r)return new Promise((e,n)=>{i.addEventListener(`load`,e),i.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${t}`)))})}))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})};$8(),(e=>typeof d<`u`?d:typeof Proxy<`u`?new Proxy(e,{get:(e,t)=>(typeof d<`u`?d:e)[t]}):e)(function(e){if(typeof d<`u`)return d.apply(this,arguments);throw Error(`Dynamic require of "`+e+`" is not supported`)});var fee=class extends z9{_registeredMethods=new Set;_eventSlots=new Map;onEventDispatch(e,t){}_ensureEventSlot(e){let t=this._eventSlots.get(e);if(!t){let n=this.eventSchemas[e];if(!n)throw Error(`Unknown event: ${String(e)}`);t={listeners:[]},this._eventSlots.set(e,t);let r=n.shape.method.value;this._registeredMethods.add(r);let i=t;super.setNotificationHandler(n,t=>{let n=t.params;this.onEventDispatch(e,n),i.onHandler?.(n);for(let e of[...i.listeners])e(n)})}return t}setEventHandler(e,t){let n=this._ensureEventSlot(e);n.onHandler&&t&&console.warn(`[MCP Apps] on${String(e)} handler replaced. Use addEventListener("${String(e)}", …) to add multiple listeners without replacing.`),n.onHandler=t}getEventHandler(e){return this._eventSlots.get(e)?.onHandler}addEventListener(e,t){this._ensureEventSlot(e).listeners.push(t)}removeEventListener(e,t){let n=this._eventSlots.get(e);if(!n)return;let r=n.listeners.indexOf(t);r!==-1&&n.listeners.splice(r,1)}setRequestHandler=(e,t)=>{this._assertMethodNotRegistered(e,`setRequestHandler`),super.setRequestHandler(e,t)};setNotificationHandler=(e,t)=>{this._assertMethodNotRegistered(e,`setNotificationHandler`),super.setNotificationHandler(e,t)};warnIfRequestHandlerReplaced(e,t,n){t&&n&&console.warn(`[MCP Apps] ${e} handler replaced. Previous handler will no longer be called.`)}replaceRequestHandler=(e,t)=>{let n=e.shape.method.value;this._registeredMethods.add(n),super.setRequestHandler(e,t)};_assertMethodNotRegistered(e,t){let n=e.shape.method.value;if(this._registeredMethods.has(n))throw Error(`Handler for "${n}" already registered (via ${t}). Use addEventListener() to attach multiple listeners, or the on* setter for replace semantics.`);this._registeredMethods.add(n)}},pee=`2026-01-26`,G9=class{eventTarget;eventSource;messageListener;constructor(e=window.parent,t){this.eventTarget=e,this.eventSource=t,this.messageListener=e=>{if(t&&e.source!==this.eventSource){console.debug(`Ignoring message from unknown source`,e);return}let n=w5.safeParse(e.data);n.success?(console.debug(`Parsed message`,n.data),this.onmessage?.(n.data)):e.data?.jsonrpc===`2.0`?(console.error(`Failed to parse message`,n.error.message,e),this.onerror?.(Error(`Invalid JSON-RPC message received: `+n.error.message))):console.debug(`Ignoring non-JSON-RPC message`,n.error.message,e)}}async start(){window.addEventListener(`message`,this.messageListener)}async send(e,t){e.method!==`ui/notifications/tool-input-partial`&&console.debug(`Sending message`,e),this.eventTarget.postMessage(e,`*`)}async close(){window.removeEventListener(`message`,this.messageListener),this.onclose?.()}onclose;onerror;onmessage;sessionId;setProtocolVersion},mee=S3([Q(`light`),Q(`dark`)]).describe(`Color theme preference for the host environment.`),K9=S3([Q(`inline`),Q(`fullscreen`),Q(`pip`)]).describe(`Display mode for UI presentation.`),hee=D3(S3([Q(`--color-background-primary`),Q(`--color-background-secondary`),Q(`--color-background-tertiary`),Q(`--color-background-inverse`),Q(`--color-background-ghost`),Q(`--color-background-info`),Q(`--color-background-danger`),Q(`--color-background-success`),Q(`--color-background-warning`),Q(`--color-background-disabled`),Q(`--color-text-primary`),Q(`--color-text-secondary`),Q(`--color-text-tertiary`),Q(`--color-text-inverse`),Q(`--color-text-ghost`),Q(`--color-text-info`),Q(`--color-text-danger`),Q(`--color-text-success`),Q(`--color-text-warning`),Q(`--color-text-disabled`),Q(`--color-border-primary`),Q(`--color-border-secondary`),Q(`--color-border-tertiary`),Q(`--color-border-inverse`),Q(`--color-border-ghost`),Q(`--color-border-info`),Q(`--color-border-danger`),Q(`--color-border-success`),Q(`--color-border-warning`),Q(`--color-border-disabled`),Q(`--color-ring-primary`),Q(`--color-ring-secondary`),Q(`--color-ring-inverse`),Q(`--color-ring-info`),Q(`--color-ring-danger`),Q(`--color-ring-success`),Q(`--color-ring-warning`),Q(`--font-sans`),Q(`--font-mono`),Q(`--font-weight-normal`),Q(`--font-weight-medium`),Q(`--font-weight-semibold`),Q(`--font-weight-bold`),Q(`--font-text-xs-size`),Q(`--font-text-sm-size`),Q(`--font-text-md-size`),Q(`--font-text-lg-size`),Q(`--font-heading-xs-size`),Q(`--font-heading-sm-size`),Q(`--font-heading-md-size`),Q(`--font-heading-lg-size`),Q(`--font-heading-xl-size`),Q(`--font-heading-2xl-size`),Q(`--font-heading-3xl-size`),Q(`--font-text-xs-line-height`),Q(`--font-text-sm-line-height`),Q(`--font-text-md-line-height`),Q(`--font-text-lg-line-height`),Q(`--font-heading-xs-line-height`),Q(`--font-heading-sm-line-height`),Q(`--font-heading-md-line-height`),Q(`--font-heading-lg-line-height`),Q(`--font-heading-xl-line-height`),Q(`--font-heading-2xl-line-height`),Q(`--font-heading-3xl-line-height`),Q(`--border-radius-xs`),Q(`--border-radius-sm`),Q(`--border-radius-md`),Q(`--border-radius-lg`),Q(`--border-radius-xl`),Q(`--border-radius-full`),Q(`--border-width-regular`),Q(`--shadow-hairline`),Q(`--shadow-sm`),Q(`--shadow-md`),Q(`--shadow-lg`)]).describe(`CSS variable keys available to MCP apps for theming.`).describe(`Style variables for theming MCP apps. +Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let n of e.seen.entries()){let r=n[1];if(t===n[0]){a(n);continue}if(e.external){let r=e.external.registry.get(n[0])?.id;if(t!==n[0]&&r){a(n);continue}}if(e.metadataRegistry.get(n[0])?.id){a(n);continue}if(r.cycle){a(n);continue}if(r.count>1&&e.reused===`ref`){a(n);continue}}}function Z0(e,t){let n=e.seen.get(t);if(!n)throw Error(`Unprocessed schema. This is a bug in Zod.`);let r=t=>{let n=e.seen.get(t);if(n.ref===null)return;let i=n.def??n.schema,a={...i},o=n.ref;if(n.ref=null,o){r(o);let n=e.seen.get(o),s=n.schema;if(s.$ref&&(e.target===`draft-07`||e.target===`draft-04`||e.target===`openapi-3.0`)?(i.allOf=i.allOf??[],i.allOf.push(s)):Object.assign(i,s),Object.assign(i,a),t._zod.parent===o)for(let e in i)e!==`$ref`&&e!==`allOf`&&(e in a||delete i[e]);if(s.$ref&&n.def)for(let e in i)e!==`$ref`&&e!==`allOf`&&e in n.def&&JSON.stringify(i[e])===JSON.stringify(n.def[e])&&delete i[e]}let s=t._zod.parent;if(s&&s!==o){r(s);let t=e.seen.get(s);if(t?.schema.$ref&&(i.$ref=t.schema.$ref,t.def))for(let e in i)e!==`$ref`&&e!==`allOf`&&e in t.def&&JSON.stringify(i[e])===JSON.stringify(t.def[e])&&delete i[e]}e.override({zodSchema:t,jsonSchema:i,path:n.path??[]})};for(let t of[...e.seen.entries()].reverse())r(t[0]);let i={};if(e.target===`draft-2020-12`?i.$schema=`https://json-schema.org/draft/2020-12/schema`:e.target===`draft-07`?i.$schema=`http://json-schema.org/draft-07/schema#`:e.target===`draft-04`?i.$schema=`http://json-schema.org/draft-04/schema#`:e.target,e.external?.uri){let n=e.external.registry.get(t)?.id;if(!n)throw Error("Schema is missing an `id` property");i.$id=e.external.uri(n)}Object.assign(i,n.def??n.schema);let a=e.metadataRegistry.get(t)?.id;a!==void 0&&i.id===a&&delete i.id;let o=e.external?.defs??{};for(let t of e.seen.entries()){let e=t[1];e.def&&e.defId&&(e.def.id===e.defId&&delete e.def.id,o[e.defId]=e.def)}e.external||Object.keys(o).length>0&&(e.target===`draft-2020-12`?i.$defs=o:i.definitions=o);try{let n=JSON.parse(JSON.stringify(i));return Object.defineProperty(n,"~standard",{value:{...t[`~standard`],jsonSchema:{input:e2(t,`input`,e.processors),output:e2(t,`output`,e.processors)}},enumerable:!1,writable:!1}),n}catch{throw Error(`Error converting schema to JSON.`)}}function Q0(e,t){let n=t??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);let r=e._zod.def;if(r.type===`transform`)return!0;if(r.type===`array`)return Q0(r.element,n);if(r.type===`set`)return Q0(r.valueType,n);if(r.type===`lazy`)return Q0(r.getter(),n);if(r.type===`promise`||r.type===`optional`||r.type===`nonoptional`||r.type===`nullable`||r.type===`readonly`||r.type==="default"||r.type===`prefault`)return Q0(r.innerType,n);if(r.type===`intersection`)return Q0(r.left,n)||Q0(r.right,n);if(r.type===`record`||r.type===`map`)return Q0(r.keyType,n)||Q0(r.valueType,n);if(r.type===`pipe`)return e._zod.traits.has(`$ZodCodec`)?!0:Q0(r.in,n)||Q0(r.out,n);if(r.type===`object`){for(let e in r.shape)if(Q0(r.shape[e],n))return!0;return!1}if(r.type===`union`){for(let e of r.options)if(Q0(e,n))return!0;return!1}if(r.type===`tuple`){for(let e of r.items)if(Q0(e,n))return!0;return!!(r.rest&&Q0(r.rest,n))}return!1}var $0,e2,t2=o((()=>{z$(),$0=(e,t={})=>n=>{let r=J0({...n,processors:t});return Y0(e,r),X0(r,e),Z0(r,e)},e2=(e,t,n={})=>r=>{let{libraryOptions:i,target:a}=r??{},o=J0({...i??{},target:a,io:t,processors:n});return Y0(e,o),X0(o,e),Z0(o,e)}}));function n2(e,t){if(`_idmap`in e){let n=e,r=J0({...t,processors:U2}),i={};for(let e of n._idmap.entries()){let[t,n]=e;Y0(n,r)}let a={};r.external={registry:n,uri:t?.uri,defs:i};for(let e of n._idmap.entries()){let[t,n]=e;X0(r,n),a[t]=Z0(r,n)}return Object.keys(i).length>0&&(a.__shared={[r.target===`draft-2020-12`?`$defs`:`definitions`]:i}),{schemas:a}}let n=J0({...t,processors:U2});return Y0(e,n),X0(n,e),Z0(n,e)}var r2,i2,a2,o2,s2,c2,l2,u2,d2,f2,p2,m2,h2,g2,_2,v2,y2,b2,x2,S2,C2,w2,T2,E2,D2,O2,k2,A2,j2,M2,N2,P2,F2,I2,L2,R2,z2,B2,V2,H2,U2,W2=o((()=>{t2(),bK(),r2={guid:`uuid`,url:`uri`,datetime:`date-time`,json_string:`json-string`,regex:``},i2=(e,t,n,r)=>{let i=n;i.type=`string`;let{minimum:a,maximum:o,format:s,patterns:c,contentEncoding:l}=e._zod.bag;if(typeof a==`number`&&(i.minLength=a),typeof o==`number`&&(i.maxLength=o),s&&(i.format=r2[s]??s,i.format===``&&delete i.format,s===`time`&&delete i.format),l&&(i.contentEncoding=l),c&&c.size>0){let e=[...c];e.length===1?i.pattern=e[0].source:e.length>1&&(i.allOf=[...e.map(e=>({...t.target===`draft-07`||t.target===`draft-04`||t.target===`openapi-3.0`?{type:`string`}:{},pattern:e.source}))])}},a2=(e,t,n,r)=>{let i=n,{minimum:a,maximum:o,format:s,multipleOf:c,exclusiveMaximum:l,exclusiveMinimum:u}=e._zod.bag;i.type=typeof s==`string`&&s.includes(`int`)?`integer`:`number`;let d=typeof u==`number`&&u>=(a??-1/0),f=typeof l==`number`&&l<=(o??1/0),p=t.target===`draft-04`||t.target===`openapi-3.0`;d?p?(i.minimum=u,i.exclusiveMinimum=!0):i.exclusiveMinimum=u:typeof a==`number`&&(i.minimum=a),f?p?(i.maximum=l,i.exclusiveMaximum=!0):i.exclusiveMaximum=l:typeof o==`number`&&(i.maximum=o),typeof c==`number`&&(i.multipleOf=c)},o2=(e,t,n,r)=>{n.type=`boolean`},s2=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`BigInt cannot be represented in JSON Schema`)},c2=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Symbols cannot be represented in JSON Schema`)},l2=(e,t,n,r)=>{t.target===`openapi-3.0`?(n.type=`string`,n.nullable=!0,n.enum=[null]):n.type=`null`},u2=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Undefined cannot be represented in JSON Schema`)},d2=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Void cannot be represented in JSON Schema`)},f2=(e,t,n,r)=>{n.not={}},p2=(e,t,n,r)=>{},m2=(e,t,n,r)=>{},h2=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Date cannot be represented in JSON Schema`)},g2=(e,t,n,r)=>{let i=e._zod.def,a=vG(i.entries);a.every(e=>typeof e==`number`)&&(n.type=`number`),a.every(e=>typeof e==`string`)&&(n.type=`string`),n.enum=a},_2=(e,t,n,r)=>{let i=e._zod.def,a=[];for(let e of i.values)if(e===void 0){if(t.unrepresentable===`throw`)throw Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof e==`bigint`){if(t.unrepresentable===`throw`)throw Error(`BigInt literals cannot be represented in JSON Schema`);a.push(Number(e))}else a.push(e);if(a.length!==0)if(a.length===1){let e=a[0];n.type=e===null?`null`:typeof e,t.target===`draft-04`||t.target===`openapi-3.0`?n.enum=[e]:n.const=e}else a.every(e=>typeof e==`number`)&&(n.type=`number`),a.every(e=>typeof e==`string`)&&(n.type=`string`),a.every(e=>typeof e==`boolean`)&&(n.type=`boolean`),a.every(e=>e===null)&&(n.type=`null`),n.enum=a},v2=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`NaN cannot be represented in JSON Schema`)},y2=(e,t,n,r)=>{let i=n,a=e._zod.pattern;if(!a)throw Error(`Pattern not found in template literal`);i.type=`string`,i.pattern=a.source},b2=(e,t,n,r)=>{let i=n,a={type:`string`,format:`binary`,contentEncoding:`binary`},{minimum:o,maximum:s,mime:c}=e._zod.bag;o!==void 0&&(a.minLength=o),s!==void 0&&(a.maxLength=s),c?c.length===1?(a.contentMediaType=c[0],Object.assign(i,a)):(Object.assign(i,a),i.anyOf=c.map(e=>({contentMediaType:e}))):Object.assign(i,a)},x2=(e,t,n,r)=>{n.type=`boolean`},S2=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Custom types cannot be represented in JSON Schema`)},C2=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Function types cannot be represented in JSON Schema`)},w2=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Transforms cannot be represented in JSON Schema`)},T2=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Map cannot be represented in JSON Schema`)},E2=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Set cannot be represented in JSON Schema`)},D2=(e,t,n,r)=>{let i=n,a=e._zod.def,{minimum:o,maximum:s}=e._zod.bag;typeof o==`number`&&(i.minItems=o),typeof s==`number`&&(i.maxItems=s),i.type=`array`,i.items=Y0(a.element,t,{...r,path:[...r.path,`items`]})},O2=(e,t,n,r)=>{let i=n,a=e._zod.def;i.type=`object`,i.properties={};let o=a.shape;for(let e in o)i.properties[e]=Y0(o[e],t,{...r,path:[...r.path,`properties`,e]});let s=new Set(Object.keys(o)),c=new Set([...s].filter(e=>{let n=a.shape[e]._zod;return t.io===`input`?n.optin===void 0:n.optout===void 0}));c.size>0&&(i.required=Array.from(c)),a.catchall?._zod.def.type===`never`?i.additionalProperties=!1:a.catchall?a.catchall&&(i.additionalProperties=Y0(a.catchall,t,{...r,path:[...r.path,`additionalProperties`]})):t.io===`output`&&(i.additionalProperties=!1)},k2=(e,t,n,r)=>{let i=e._zod.def,a=i.inclusive===!1,o=i.options.map((e,n)=>Y0(e,t,{...r,path:[...r.path,a?`oneOf`:`anyOf`,n]}));a?n.oneOf=o:n.anyOf=o},A2=(e,t,n,r)=>{let i=e._zod.def,a=Y0(i.left,t,{...r,path:[...r.path,`allOf`,0]}),o=Y0(i.right,t,{...r,path:[...r.path,`allOf`,1]}),s=e=>`allOf`in e&&Object.keys(e).length===1;n.allOf=[...s(a)?a.allOf:[a],...s(o)?o.allOf:[o]]},j2=(e,t,n,r)=>{let i=n,a=e._zod.def;i.type=`array`;let o=t.target===`draft-2020-12`?`prefixItems`:`items`,s=t.target===`draft-2020-12`||t.target===`openapi-3.0`?`items`:`additionalItems`,c=a.items.map((e,n)=>Y0(e,t,{...r,path:[...r.path,o,n]})),l=a.rest?Y0(a.rest,t,{...r,path:[...r.path,s,...t.target===`openapi-3.0`?[a.items.length]:[]]}):null;t.target===`draft-2020-12`?(i.prefixItems=c,l&&(i.items=l)):t.target===`openapi-3.0`?(i.items={anyOf:c},l&&i.items.anyOf.push(l),i.minItems=c.length,l||(i.maxItems=c.length)):(i.items=c,l&&(i.additionalItems=l));let{minimum:u,maximum:d}=e._zod.bag;typeof u==`number`&&(i.minItems=u),typeof d==`number`&&(i.maxItems=d)},M2=(e,t,n,r)=>{let i=n,a=e._zod.def;i.type=`object`;let o=a.keyType,s=o._zod.bag?.patterns;if(a.mode===`loose`&&s&&s.size>0){let e=Y0(a.valueType,t,{...r,path:[...r.path,`patternProperties`,`*`]});i.patternProperties={};for(let t of s)i.patternProperties[t.source]=e}else(t.target===`draft-07`||t.target===`draft-2020-12`)&&(i.propertyNames=Y0(a.keyType,t,{...r,path:[...r.path,`propertyNames`]})),i.additionalProperties=Y0(a.valueType,t,{...r,path:[...r.path,`additionalProperties`]});let c=o._zod.values;if(c){let e=[...c].filter(e=>typeof e==`string`||typeof e==`number`);e.length>0&&(i.required=e)}},N2=(e,t,n,r)=>{let i=e._zod.def,a=Y0(i.innerType,t,r),o=t.seen.get(e);t.target===`openapi-3.0`?(o.ref=i.innerType,n.nullable=!0):n.anyOf=[a,{type:`null`}]},P2=(e,t,n,r)=>{let i=e._zod.def;Y0(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},F2=(e,t,n,r)=>{let i=e._zod.def;Y0(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,n.default=JSON.parse(JSON.stringify(i.defaultValue))},I2=(e,t,n,r)=>{let i=e._zod.def;Y0(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,t.io===`input`&&(n._prefault=JSON.parse(JSON.stringify(i.defaultValue)))},L2=(e,t,n,r)=>{let i=e._zod.def;Y0(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType;let o;try{o=i.catchValue(void 0)}catch{throw Error(`Dynamic catch values are not supported in JSON Schema`)}n.default=o},R2=(e,t,n,r)=>{let i=e._zod.def,a=i.in._zod.traits.has(`$ZodTransform`),o=t.io===`input`?a?i.out:i.in:i.out;Y0(o,t,r);let s=t.seen.get(e);s.ref=o},z2=(e,t,n,r)=>{let i=e._zod.def;Y0(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,n.readOnly=!0},B2=(e,t,n,r)=>{let i=e._zod.def;Y0(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},V2=(e,t,n,r)=>{let i=e._zod.def;Y0(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},H2=(e,t,n,r)=>{let i=e._zod.innerType;Y0(i,t,r);let a=t.seen.get(e);a.ref=i},U2={string:i2,number:a2,boolean:o2,bigint:s2,symbol:c2,null:l2,undefined:u2,void:d2,never:f2,any:p2,unknown:m2,date:h2,enum:g2,literal:_2,nan:v2,template_literal:y2,file:b2,success:x2,custom:S2,function:C2,transform:w2,map:T2,set:E2,array:D2,object:O2,union:k2,intersection:A2,tuple:j2,record:M2,nullable:N2,nonoptional:P2,default:F2,prefault:I2,catch:L2,pipe:R2,readonly:z2,promise:B2,optional:V2,lazy:H2}})),G2,K2=o((()=>{W2(),t2(),G2=class{get metadataRegistry(){return this.ctx.metadataRegistry}get target(){return this.ctx.target}get unrepresentable(){return this.ctx.unrepresentable}get override(){return this.ctx.override}get io(){return this.ctx.io}get counter(){return this.ctx.counter}set counter(e){this.ctx.counter=e}get seen(){return this.ctx.seen}constructor(e){let t=e?.target??`draft-2020-12`;t===`draft-4`&&(t=`draft-04`),t===`draft-7`&&(t=`draft-07`),this.ctx=J0({processors:U2,target:t,...e?.metadata&&{metadata:e.metadata},...e?.unrepresentable&&{unrepresentable:e.unrepresentable},...e?.override&&{override:e.override},...e?.io&&{io:e.io}})}process(e,t={path:[],schemaPath:[]}){return Y0(e,this.ctx,t)}emit(e,t){t&&(t.cycles&&(this.ctx.cycles=t.cycles),t.reused&&(this.ctx.reused=t.reused),t.external&&(this.ctx.external=t.external)),X0(this.ctx,e);let{"~standard":n,...r}=Z0(this.ctx,e);return r}}})),q2=c({}),J2=o((()=>{})),Y2=c({$ZodAny:()=>JY,$ZodArray:()=>$Y,$ZodAsyncError:()=>cG,$ZodBase64:()=>FY,$ZodBase64URL:()=>IY,$ZodBigInt:()=>UY,$ZodBigIntFormat:()=>WY,$ZodBoolean:()=>HY,$ZodCIDRv4:()=>NY,$ZodCIDRv6:()=>PY,$ZodCUID:()=>xY,$ZodCUID2:()=>SY,$ZodCatch:()=>xX,$ZodCheck:()=>mJ,$ZodCheckBigIntFormat:()=>bJ,$ZodCheckEndsWith:()=>NJ,$ZodCheckGreaterThan:()=>_J,$ZodCheckIncludes:()=>jJ,$ZodCheckLengthEquals:()=>EJ,$ZodCheckLessThan:()=>gJ,$ZodCheckLowerCase:()=>kJ,$ZodCheckMaxLength:()=>wJ,$ZodCheckMaxSize:()=>xJ,$ZodCheckMimeType:()=>FJ,$ZodCheckMinLength:()=>TJ,$ZodCheckMinSize:()=>SJ,$ZodCheckMultipleOf:()=>vJ,$ZodCheckNumberFormat:()=>yJ,$ZodCheckOverwrite:()=>IJ,$ZodCheckProperty:()=>PJ,$ZodCheckRegex:()=>OJ,$ZodCheckSizeEquals:()=>CJ,$ZodCheckStartsWith:()=>MJ,$ZodCheckStringFormat:()=>DJ,$ZodCheckUpperCase:()=>AJ,$ZodCodec:()=>wX,$ZodCustom:()=>jX,$ZodCustomStringFormat:()=>zY,$ZodDate:()=>QY,$ZodDefault:()=>_X,$ZodDiscriminatedUnion:()=>iX,$ZodE164:()=>LY,$ZodEmail:()=>_Y,$ZodEmoji:()=>yY,$ZodEncodeError:()=>lG,$ZodEnum:()=>uX,$ZodError:()=>DK,$ZodExactOptional:()=>hX,$ZodFile:()=>fX,$ZodFunction:()=>OX,$ZodGUID:()=>hY,$ZodIPv4:()=>AY,$ZodIPv6:()=>jY,$ZodISODate:()=>DY,$ZodISODateTime:()=>EY,$ZodISODuration:()=>kY,$ZodISOTime:()=>OY,$ZodIntersection:()=>aX,$ZodJWT:()=>RY,$ZodKSUID:()=>TY,$ZodLazy:()=>AX,$ZodLiteral:()=>dX,$ZodMAC:()=>MY,$ZodMap:()=>cX,$ZodNaN:()=>SX,$ZodNanoID:()=>bY,$ZodNever:()=>XY,$ZodNonOptional:()=>yX,$ZodNull:()=>qY,$ZodNullable:()=>gX,$ZodNumber:()=>BY,$ZodNumberFormat:()=>VY,$ZodObject:()=>eX,$ZodObjectJIT:()=>tX,$ZodOptional:()=>mX,$ZodPipe:()=>CX,$ZodPrefault:()=>vX,$ZodPreprocess:()=>TX,$ZodPromise:()=>kX,$ZodReadonly:()=>EX,$ZodRealError:()=>OK,$ZodRecord:()=>sX,$ZodRegistry:()=>L$,$ZodSet:()=>lX,$ZodString:()=>pY,$ZodStringFormat:()=>mY,$ZodSuccess:()=>bX,$ZodSymbol:()=>GY,$ZodTemplateLiteral:()=>DX,$ZodTransform:()=>pX,$ZodTuple:()=>oX,$ZodType:()=>fY,$ZodULID:()=>CY,$ZodURL:()=>vY,$ZodUUID:()=>gY,$ZodUndefined:()=>KY,$ZodUnion:()=>nX,$ZodUnknown:()=>YY,$ZodVoid:()=>ZY,$ZodXID:()=>wY,$ZodXor:()=>rX,$brand:()=>sG,$constructor:()=>q,$input:()=>I$,$output:()=>F$,Doc:()=>RJ,JSONSchema:()=>q2,JSONSchemaGenerator:()=>G2,NEVER:()=>oG,TimePrecision:()=>K0,_any:()=>j1,_array:()=>p0,_base64:()=>s1,_base64url:()=>c1,_bigint:()=>w1,_boolean:()=>S1,_catch:()=>M0,_check:()=>V0,_cidrv4:()=>a1,_cidrv6:()=>o1,_coercedBigint:()=>T1,_coercedBoolean:()=>C1,_coercedDate:()=>I1,_coercedNumber:()=>g1,_coercedString:()=>V$,_cuid:()=>Z$,_cuid2:()=>Q$,_custom:()=>R0,_date:()=>F1,_decode:()=>BK,_decodeAsync:()=>WK,_default:()=>k0,_discriminatedUnion:()=>g0,_e164:()=>l1,_email:()=>H$,_emoji:()=>Y$,_encode:()=>RK,_encodeAsync:()=>HK,_endsWith:()=>i0,_enum:()=>S0,_file:()=>T0,_float32:()=>v1,_float64:()=>y1,_gt:()=>B1,_gte:()=>V1,_guid:()=>U$,_includes:()=>n0,_int:()=>_1,_int32:()=>b1,_int64:()=>E1,_intersection:()=>_0,_ipv4:()=>n1,_ipv6:()=>r1,_isoDate:()=>f1,_isoDateTime:()=>d1,_isoDuration:()=>m1,_isoTime:()=>p1,_jwt:()=>u1,_ksuid:()=>t1,_lazy:()=>I0,_length:()=>Q1,_literal:()=>w0,_lowercase:()=>e0,_lt:()=>R1,_lte:()=>z1,_mac:()=>i1,_map:()=>b0,_max:()=>z1,_maxLength:()=>X1,_maxSize:()=>q1,_mime:()=>o0,_min:()=>V1,_minLength:()=>Z1,_minSize:()=>J1,_multipleOf:()=>K1,_nan:()=>L1,_nanoid:()=>X$,_nativeEnum:()=>C0,_negative:()=>U1,_never:()=>N1,_nonnegative:()=>G1,_nonoptional:()=>A0,_nonpositive:()=>W1,_normalize:()=>c0,_null:()=>A1,_nullable:()=>O0,_number:()=>h1,_optional:()=>D0,_overwrite:()=>s0,_parse:()=>AK,_parseAsync:()=>MK,_pipe:()=>N0,_positive:()=>H1,_promise:()=>L0,_property:()=>a0,_readonly:()=>P0,_record:()=>y0,_refine:()=>z0,_regex:()=>$1,_safeDecode:()=>JK,_safeDecodeAsync:()=>QK,_safeEncode:()=>KK,_safeEncodeAsync:()=>XK,_safeParse:()=>PK,_safeParseAsync:()=>IK,_set:()=>x0,_size:()=>Y1,_slugify:()=>f0,_startsWith:()=>r0,_string:()=>B$,_stringFormat:()=>G0,_stringbool:()=>W0,_success:()=>j0,_superRefine:()=>B0,_symbol:()=>O1,_templateLiteral:()=>F0,_toLowerCase:()=>u0,_toUpperCase:()=>d0,_transform:()=>E0,_trim:()=>l0,_tuple:()=>v0,_uint32:()=>x1,_uint64:()=>D1,_ulid:()=>$$,_undefined:()=>k1,_union:()=>m0,_unknown:()=>M1,_uppercase:()=>t0,_url:()=>J$,_uuid:()=>W$,_uuidv4:()=>G$,_uuidv6:()=>K$,_uuidv7:()=>q$,_void:()=>P1,_xid:()=>e1,_xor:()=>h0,clone:()=>zG,config:()=>iG,createStandardJSONSchemaMethod:()=>e2,createToJSONSchemaMethod:()=>$0,decode:()=>VK,decodeAsync:()=>GK,describe:()=>H0,encode:()=>zK,encodeAsync:()=>UK,extractDefs:()=>X0,finalize:()=>Z0,flattenError:()=>xK,formatError:()=>SK,globalConfig:()=>uG,globalRegistry:()=>R$,initializeContext:()=>J0,isValidBase64:()=>HJ,isValidBase64URL:()=>UJ,isValidJWT:()=>WJ,locales:()=>j$,meta:()=>U0,parse:()=>jK,parseAsync:()=>NK,prettifyError:()=>TK,process:()=>Y0,regexes:()=>tq,registry:()=>N$,safeDecode:()=>YK,safeDecodeAsync:()=>$K,safeEncode:()=>qK,safeEncodeAsync:()=>ZK,safeParse:()=>FK,safeParseAsync:()=>LK,toDotPath:()=>wK,toJSONSchema:()=>n2,treeifyError:()=>CK,util:()=>fG,version:()=>BJ}),X2=o((()=>{dG(),eq(),kK(),MX(),LJ(),VJ(),bK(),fJ(),M$(),z$(),zJ(),q0(),t2(),W2(),K2(),J2()}));eq();function Z2(e){return!!e._zod}function Q2(e,t){return Z2(e)?FK(e,t):e.safeParse(t)}function $2(e){if(!e)return;let t;if(t=Z2(e)?e._zod?.def?.shape:e.shape,t){if(typeof t==`function`)try{return t()}catch{return}return t}}function e4(e){if(Z2(e)){let t=e._zod?.def;if(t){if(t.value!==void 0)return t.value;if(Array.isArray(t.values)&&t.values.length>0)return t.values[0]}}let t=e._def;if(t){if(t.value!==void 0)return t.value;if(Array.isArray(t.values)&&t.values.length>0)return t.values[0]}let n=e.value;if(n!==void 0)return n}var t4=c({endsWith:()=>i0,gt:()=>B1,gte:()=>V1,includes:()=>n0,length:()=>Q1,lowercase:()=>e0,lt:()=>R1,lte:()=>z1,maxLength:()=>X1,maxSize:()=>q1,mime:()=>o0,minLength:()=>Z1,minSize:()=>J1,multipleOf:()=>K1,negative:()=>U1,nonnegative:()=>G1,nonpositive:()=>W1,normalize:()=>c0,overwrite:()=>s0,positive:()=>H1,property:()=>a0,regex:()=>$1,size:()=>Y1,slugify:()=>f0,startsWith:()=>r0,toLowerCase:()=>u0,toUpperCase:()=>d0,trim:()=>l0,uppercase:()=>t0}),n4=o((()=>{X2()})),r4=c({ZodISODate:()=>l4,ZodISODateTime:()=>c4,ZodISODuration:()=>d4,ZodISOTime:()=>u4,date:()=>a4,datetime:()=>i4,duration:()=>s4,time:()=>o4});function i4(e){return d1(c4,e)}function a4(e){return f1(l4,e)}function o4(e){return p1(u4,e)}function s4(e){return m1(d4,e)}var c4,l4,u4,d4,f4=o((()=>{X2(),N8(),c4=q(`ZodISODateTime`,(e,t)=>{EY.init(e,t),_6.init(e,t)}),l4=q(`ZodISODate`,(e,t)=>{DY.init(e,t),_6.init(e,t)}),u4=q(`ZodISOTime`,(e,t)=>{OY.init(e,t),_6.init(e,t)}),d4=q(`ZodISODuration`,(e,t)=>{kY.init(e,t),_6.init(e,t)})})),p4,m4,h4,g4=o((()=>{X2(),bK(),p4=(e,t)=>{DK.init(e,t),e.name=`ZodError`,Object.defineProperties(e,{format:{value:t=>SK(e,t)},flatten:{value:t=>xK(e,t)},addIssue:{value:t=>{e.issues.push(t),e.message=JSON.stringify(e.issues,yG,2)}},addIssues:{value:t=>{e.issues.push(...t),e.message=JSON.stringify(e.issues,yG,2)}},isEmpty:{get(){return e.issues.length===0}}})},m4=q(`ZodError`,p4),h4=q(`ZodError`,p4,{Parent:Error})})),_4,v4,y4,b4,x4,S4,C4,w4,T4,E4,D4,O4,k4=o((()=>{X2(),g4(),_4=AK(h4),v4=MK(h4),y4=PK(h4),b4=IK(h4),x4=RK(h4),S4=BK(h4),C4=HK(h4),w4=WK(h4),T4=KK(h4),E4=JK(h4),D4=XK(h4),O4=QK(h4)})),A4=c({ZodAny:()=>q6,ZodArray:()=>Q6,ZodBase64:()=>P6,ZodBase64URL:()=>F6,ZodBigInt:()=>H6,ZodBigIntFormat:()=>U6,ZodBoolean:()=>V6,ZodCIDRv4:()=>M6,ZodCIDRv6:()=>N6,ZodCUID:()=>w6,ZodCUID2:()=>T6,ZodCatch:()=>y8,ZodCodec:()=>S8,ZodCustom:()=>k8,ZodCustomStringFormat:()=>R6,ZodDate:()=>Z6,ZodDefault:()=>h8,ZodDiscriminatedUnion:()=>n8,ZodE164:()=>I6,ZodEmail:()=>v6,ZodEmoji:()=>S6,ZodEnum:()=>c8,ZodExactOptional:()=>p8,ZodFile:()=>u8,ZodFunction:()=>O8,ZodGUID:()=>y6,ZodIPv4:()=>k6,ZodIPv6:()=>j6,ZodIntersection:()=>r8,ZodJWT:()=>L6,ZodKSUID:()=>O6,ZodLazy:()=>E8,ZodLiteral:()=>l8,ZodMAC:()=>A6,ZodMap:()=>o8,ZodNaN:()=>b8,ZodNanoID:()=>C6,ZodNever:()=>Y6,ZodNonOptional:()=>_8,ZodNull:()=>K6,ZodNullable:()=>m8,ZodNumber:()=>z6,ZodNumberFormat:()=>B6,ZodObject:()=>$6,ZodOptional:()=>f8,ZodPipe:()=>x8,ZodPrefault:()=>g8,ZodPreprocess:()=>C8,ZodPromise:()=>D8,ZodReadonly:()=>w8,ZodRecord:()=>a8,ZodSet:()=>s8,ZodString:()=>g6,ZodStringFormat:()=>_6,ZodSuccess:()=>v8,ZodSymbol:()=>W6,ZodTemplateLiteral:()=>T8,ZodTransform:()=>d8,ZodTuple:()=>i8,ZodType:()=>m6,ZodULID:()=>E6,ZodURL:()=>x6,ZodUUID:()=>b6,ZodUndefined:()=>G6,ZodUnion:()=>e8,ZodUnknown:()=>J6,ZodVoid:()=>X6,ZodXID:()=>D6,ZodXor:()=>t8,_ZodString:()=>h6,_default:()=>K3,_function:()=>a6,any:()=>y3,array:()=>w3,base64:()=>Q4,base64url:()=>$4,bigint:()=>p3,boolean:()=>f3,catch:()=>X3,check:()=>o6,cidrv4:()=>X4,cidrv6:()=>Z4,codec:()=>$3,cuid:()=>H4,cuid2:()=>U4,custom:()=>s6,date:()=>C3,describe:()=>A8,discriminatedUnion:()=>A3,e164:()=>e3,email:()=>M4,emoji:()=>B4,enum:()=>R3,exactOptional:()=>U3,file:()=>B3,float32:()=>c3,float64:()=>l3,function:()=>a6,guid:()=>N4,hash:()=>a3,hex:()=>i3,hostname:()=>r3,httpUrl:()=>z4,instanceof:()=>u6,int:()=>s3,int32:()=>u3,int64:()=>m3,intersection:()=>j3,invertCodec:()=>e6,ipv4:()=>q4,ipv6:()=>Y4,json:()=>d6,jwt:()=>t3,keyof:()=>T3,ksuid:()=>K4,lazy:()=>r6,literal:()=>Q,looseObject:()=>D3,looseRecord:()=>F3,mac:()=>J4,map:()=>I3,meta:()=>j8,nan:()=>Z3,nanoid:()=>V4,nativeEnum:()=>z3,never:()=>x3,nonoptional:()=>J3,null:()=>v3,nullable:()=>W3,nullish:()=>G3,number:()=>o3,object:()=>Z,optional:()=>H3,partialRecord:()=>P3,pipe:()=>Q3,prefault:()=>q3,preprocess:()=>f6,promise:()=>i6,readonly:()=>t6,record:()=>N3,refine:()=>c6,set:()=>L3,strictObject:()=>E3,string:()=>X,stringFormat:()=>n3,stringbool:()=>M8,success:()=>Y3,superRefine:()=>l6,symbol:()=>g3,templateLiteral:()=>n6,transform:()=>V3,tuple:()=>M3,uint32:()=>d3,uint64:()=>h3,ulid:()=>W4,undefined:()=>_3,union:()=>O3,unknown:()=>b3,url:()=>R4,uuid:()=>P4,uuidv4:()=>F4,uuidv6:()=>I4,uuidv7:()=>L4,void:()=>S3,xid:()=>G4,xor:()=>k3});function j4(e,t,n){let r=Object.getPrototypeOf(e),i=p6.get(r);if(i||(i=new Set,p6.set(r,i)),!i.has(t)){i.add(t);for(let e in n){let t=n[e];Object.defineProperty(r,e,{configurable:!0,enumerable:!1,get(){let n=t.bind(this);return Object.defineProperty(this,e,{configurable:!0,writable:!0,enumerable:!0,value:n}),n},set(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,enumerable:!0,value:t})}})}}}function X(e){return B$(g6,e)}function M4(e){return H$(v6,e)}function N4(e){return U$(y6,e)}function P4(e){return W$(b6,e)}function F4(e){return G$(b6,e)}function I4(e){return K$(b6,e)}function L4(e){return q$(b6,e)}function R4(e){return J$(x6,e)}function z4(e){return J$(x6,{protocol:Lq,hostname:Iq,...Y(e)})}function B4(e){return Y$(S6,e)}function V4(e){return X$(C6,e)}function H4(e){return Z$(w6,e)}function U4(e){return Q$(T6,e)}function W4(e){return $$(E6,e)}function G4(e){return e1(D6,e)}function K4(e){return t1(O6,e)}function q4(e){return n1(k6,e)}function J4(e){return i1(A6,e)}function Y4(e){return r1(j6,e)}function X4(e){return a1(M6,e)}function Z4(e){return o1(N6,e)}function Q4(e){return s1(P6,e)}function $4(e){return c1(F6,e)}function e3(e){return l1(I6,e)}function t3(e){return u1(L6,e)}function n3(e,t,n={}){return G0(R6,e,t,n)}function r3(e){return G0(R6,`hostname`,Fq,e)}function i3(e){return G0(R6,`hex`,Xq,e)}function a3(e,t){let n=`${e}_${t?.enc??`hex`}`,r=tq[n];if(!r)throw Error(`Unrecognized hash format: ${n}`);return G0(R6,n,r,t)}function o3(e){return h1(z6,e)}function s3(e){return _1(B6,e)}function c3(e){return v1(B6,e)}function l3(e){return y1(B6,e)}function u3(e){return b1(B6,e)}function d3(e){return x1(B6,e)}function f3(e){return S1(V6,e)}function p3(e){return w1(H6,e)}function m3(e){return E1(U6,e)}function h3(e){return D1(U6,e)}function g3(e){return O1(W6,e)}function _3(e){return k1(G6,e)}function v3(e){return A1(K6,e)}function y3(){return j1(q6)}function b3(){return M1(J6)}function x3(e){return N1(Y6,e)}function S3(e){return P1(X6,e)}function C3(e){return F1(Z6,e)}function w3(e,t){return p0(Q6,e,t)}function T3(e){let t=e._zod.def.shape;return R3(Object.keys(t))}function Z(e,t){let n={type:`object`,shape:e??{},...Y(t)};return new $6(n)}function E3(e,t){return new $6({type:`object`,shape:e,catchall:x3(),...Y(t)})}function D3(e,t){return new $6({type:`object`,shape:e,catchall:b3(),...Y(t)})}function O3(e,t){return new e8({type:`union`,options:e,...Y(t)})}function k3(e,t){return new t8({type:`union`,options:e,inclusive:!1,...Y(t)})}function A3(e,t,n){return new n8({type:`union`,options:t,discriminator:e,...Y(n)})}function j3(e,t){return new r8({type:`intersection`,left:e,right:t})}function M3(e,t,n){let r=t instanceof fY;return new i8({type:`tuple`,items:e,rest:r?t:null,...Y(r?n:t)})}function N3(e,t,n){return!t||!t._zod?new a8({type:`record`,keyType:X(),valueType:e,...Y(t)}):new a8({type:`record`,keyType:e,valueType:t,...Y(n)})}function P3(e,t,n){let r=zG(e);return r._zod.values=void 0,new a8({type:`record`,keyType:r,valueType:t,...Y(n)})}function F3(e,t,n){return new a8({type:`record`,keyType:e,valueType:t,mode:`loose`,...Y(n)})}function I3(e,t,n){return new o8({type:`map`,keyType:e,valueType:t,...Y(n)})}function L3(e,t){return new s8({type:`set`,valueType:e,...Y(t)})}function R3(e,t){let n=Array.isArray(e)?Object.fromEntries(e.map(e=>[e,e])):e;return new c8({type:`enum`,entries:n,...Y(t)})}function z3(e,t){return new c8({type:`enum`,entries:e,...Y(t)})}function Q(e,t){return new l8({type:`literal`,values:Array.isArray(e)?e:[e],...Y(t)})}function B3(e){return T0(u8,e)}function V3(e){return new d8({type:`transform`,transform:e})}function H3(e){return new f8({type:`optional`,innerType:e})}function U3(e){return new p8({type:`optional`,innerType:e})}function W3(e){return new m8({type:`nullable`,innerType:e})}function G3(e){return H3(W3(e))}function K3(e,t){return new h8({type:`default`,innerType:e,get defaultValue(){return typeof t==`function`?t():IG(t)}})}function q3(e,t){return new g8({type:`prefault`,innerType:e,get defaultValue(){return typeof t==`function`?t():IG(t)}})}function J3(e,t){return new _8({type:`nonoptional`,innerType:e,...Y(t)})}function Y3(e){return new v8({type:`success`,innerType:e})}function X3(e,t){return new y8({type:`catch`,innerType:e,catchValue:typeof t==`function`?t:()=>t})}function Z3(e){return L1(b8,e)}function Q3(e,t){return new x8({type:`pipe`,in:e,out:t})}function $3(e,t,n){return new S8({type:`pipe`,in:e,out:t,transform:n.decode,reverseTransform:n.encode})}function e6(e){let t=e._zod.def;return new S8({type:`pipe`,in:t.out,out:t.in,transform:t.reverseTransform,reverseTransform:t.transform})}function t6(e){return new w8({type:`readonly`,innerType:e})}function n6(e,t){return new T8({type:`template_literal`,parts:e,...Y(t)})}function r6(e){return new E8({type:`lazy`,getter:e})}function i6(e){return new D8({type:`promise`,innerType:e})}function a6(e){return new O8({type:`function`,input:Array.isArray(e?.input)?M3(e?.input):e?.input??w3(b3()),output:e?.output??b3()})}function o6(e){let t=new mJ({check:`custom`});return t._zod.check=e,t}function s6(e,t){return R0(k8,e??(()=>!0),t)}function c6(e,t={}){return z0(k8,e,t)}function l6(e,t){return B0(e,t)}function u6(e,t={}){let n=new k8({type:`custom`,check:`custom`,fn:t=>t instanceof e,abort:!0,...Y(t)});return n._zod.bag.Class=e,n._zod.check=t=>{t.value instanceof e||t.issues.push({code:`invalid_type`,expected:e.name,input:t.value,inst:n,path:[...n._zod.def.path??[]]})},n}function d6(e){let t=r6(()=>O3([X(e),o3(),f3(),v3(),w3(t),N3(X(),t)]));return t}function f6(e,t){return new C8({type:`pipe`,in:V3(e),out:t})}var p6,m6,h6,g6,_6,v6,y6,b6,x6,S6,C6,w6,T6,E6,D6,O6,k6,A6,j6,M6,N6,P6,F6,I6,L6,R6,z6,B6,V6,H6,U6,W6,G6,K6,q6,J6,Y6,X6,Z6,Q6,$6,e8,t8,n8,r8,i8,a8,o8,s8,c8,l8,u8,d8,f8,p8,m8,h8,g8,_8,v8,y8,b8,x8,S8,C8,w8,T8,E8,D8,O8,k8,A8,j8,M8,N8=o((()=>{X2(),W2(),t2(),n4(),f4(),k4(),p6=new WeakMap,m6=q(`ZodType`,(e,t)=>(fY.init(e,t),Object.assign(e[`~standard`],{jsonSchema:{input:e2(e,`input`),output:e2(e,`output`)}}),e.toJSONSchema=$0(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.parse=(t,n)=>_4(e,t,n,{callee:e.parse}),e.safeParse=(t,n)=>y4(e,t,n),e.parseAsync=async(t,n)=>v4(e,t,n,{callee:e.parseAsync}),e.safeParseAsync=async(t,n)=>b4(e,t,n),e.spa=e.safeParseAsync,e.encode=(t,n)=>x4(e,t,n),e.decode=(t,n)=>S4(e,t,n),e.encodeAsync=async(t,n)=>C4(e,t,n),e.decodeAsync=async(t,n)=>w4(e,t,n),e.safeEncode=(t,n)=>T4(e,t,n),e.safeDecode=(t,n)=>E4(e,t,n),e.safeEncodeAsync=async(t,n)=>D4(e,t,n),e.safeDecodeAsync=async(t,n)=>O4(e,t,n),j4(e,`ZodType`,{check(...e){let t=this.def;return this.clone(DG(t,{checks:[...t.checks??[],...e.map(e=>typeof e==`function`?{_zod:{check:e,def:{check:`custom`},onattach:[]}}:e)]}),{parent:!0})},with(...e){return this.check(...e)},clone(e,t){return zG(this,e,t)},brand(){return this},register(e,t){return e.add(this,t),this},refine(e,t){return this.check(c6(e,t))},superRefine(e,t){return this.check(l6(e,t))},overwrite(e){return this.check(s0(e))},optional(){return H3(this)},exactOptional(){return U3(this)},nullable(){return W3(this)},nullish(){return H3(W3(this))},nonoptional(e){return J3(this,e)},array(){return w3(this)},or(e){return O3([this,e])},and(e){return j3(this,e)},transform(e){return Q3(this,V3(e))},default(e){return K3(this,e)},prefault(e){return q3(this,e)},catch(e){return X3(this,e)},pipe(e){return Q3(this,e)},readonly(){return t6(this)},describe(e){let t=this.clone();return R$.add(t,{description:e}),t},meta(...e){if(e.length===0)return R$.get(this);let t=this.clone();return R$.add(t,e[0]),t},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(e){return e(this)}}),Object.defineProperty(e,"description",{get(){return R$.get(e)?.description},configurable:!0}),e)),h6=q(`_ZodString`,(e,t)=>{pY.init(e,t),m6.init(e,t),e._zod.processJSONSchema=(t,n,r)=>i2(e,t,n,r);let n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,j4(e,`_ZodString`,{regex(...e){return this.check($1(...e))},includes(...e){return this.check(n0(...e))},startsWith(...e){return this.check(r0(...e))},endsWith(...e){return this.check(i0(...e))},min(...e){return this.check(Z1(...e))},max(...e){return this.check(X1(...e))},length(...e){return this.check(Q1(...e))},nonempty(...e){return this.check(Z1(1,...e))},lowercase(e){return this.check(e0(e))},uppercase(e){return this.check(t0(e))},trim(){return this.check(l0())},normalize(...e){return this.check(c0(...e))},toLowerCase(){return this.check(u0())},toUpperCase(){return this.check(d0())},slugify(){return this.check(f0())}})}),g6=q(`ZodString`,(e,t)=>{pY.init(e,t),h6.init(e,t),e.email=t=>e.check(H$(v6,t)),e.url=t=>e.check(J$(x6,t)),e.jwt=t=>e.check(u1(L6,t)),e.emoji=t=>e.check(Y$(S6,t)),e.guid=t=>e.check(U$(y6,t)),e.uuid=t=>e.check(W$(b6,t)),e.uuidv4=t=>e.check(G$(b6,t)),e.uuidv6=t=>e.check(K$(b6,t)),e.uuidv7=t=>e.check(q$(b6,t)),e.nanoid=t=>e.check(X$(C6,t)),e.guid=t=>e.check(U$(y6,t)),e.cuid=t=>e.check(Z$(w6,t)),e.cuid2=t=>e.check(Q$(T6,t)),e.ulid=t=>e.check($$(E6,t)),e.base64=t=>e.check(s1(P6,t)),e.base64url=t=>e.check(c1(F6,t)),e.xid=t=>e.check(e1(D6,t)),e.ksuid=t=>e.check(t1(O6,t)),e.ipv4=t=>e.check(n1(k6,t)),e.ipv6=t=>e.check(r1(j6,t)),e.cidrv4=t=>e.check(a1(M6,t)),e.cidrv6=t=>e.check(o1(N6,t)),e.e164=t=>e.check(l1(I6,t)),e.datetime=t=>e.check(i4(t)),e.date=t=>e.check(a4(t)),e.time=t=>e.check(o4(t)),e.duration=t=>e.check(s4(t))}),_6=q(`ZodStringFormat`,(e,t)=>{mY.init(e,t),h6.init(e,t)}),v6=q(`ZodEmail`,(e,t)=>{_Y.init(e,t),_6.init(e,t)}),y6=q(`ZodGUID`,(e,t)=>{hY.init(e,t),_6.init(e,t)}),b6=q(`ZodUUID`,(e,t)=>{gY.init(e,t),_6.init(e,t)}),x6=q(`ZodURL`,(e,t)=>{vY.init(e,t),_6.init(e,t)}),S6=q(`ZodEmoji`,(e,t)=>{yY.init(e,t),_6.init(e,t)}),C6=q(`ZodNanoID`,(e,t)=>{bY.init(e,t),_6.init(e,t)}),w6=q(`ZodCUID`,(e,t)=>{xY.init(e,t),_6.init(e,t)}),T6=q(`ZodCUID2`,(e,t)=>{SY.init(e,t),_6.init(e,t)}),E6=q(`ZodULID`,(e,t)=>{CY.init(e,t),_6.init(e,t)}),D6=q(`ZodXID`,(e,t)=>{wY.init(e,t),_6.init(e,t)}),O6=q(`ZodKSUID`,(e,t)=>{TY.init(e,t),_6.init(e,t)}),k6=q(`ZodIPv4`,(e,t)=>{AY.init(e,t),_6.init(e,t)}),A6=q(`ZodMAC`,(e,t)=>{MY.init(e,t),_6.init(e,t)}),j6=q(`ZodIPv6`,(e,t)=>{jY.init(e,t),_6.init(e,t)}),M6=q(`ZodCIDRv4`,(e,t)=>{NY.init(e,t),_6.init(e,t)}),N6=q(`ZodCIDRv6`,(e,t)=>{PY.init(e,t),_6.init(e,t)}),P6=q(`ZodBase64`,(e,t)=>{FY.init(e,t),_6.init(e,t)}),F6=q(`ZodBase64URL`,(e,t)=>{IY.init(e,t),_6.init(e,t)}),I6=q(`ZodE164`,(e,t)=>{LY.init(e,t),_6.init(e,t)}),L6=q(`ZodJWT`,(e,t)=>{RY.init(e,t),_6.init(e,t)}),R6=q(`ZodCustomStringFormat`,(e,t)=>{zY.init(e,t),_6.init(e,t)}),z6=q(`ZodNumber`,(e,t)=>{BY.init(e,t),m6.init(e,t),e._zod.processJSONSchema=(t,n,r)=>a2(e,t,n,r),j4(e,`ZodNumber`,{gt(e,t){return this.check(B1(e,t))},gte(e,t){return this.check(V1(e,t))},min(e,t){return this.check(V1(e,t))},lt(e,t){return this.check(R1(e,t))},lte(e,t){return this.check(z1(e,t))},max(e,t){return this.check(z1(e,t))},int(e){return this.check(s3(e))},safe(e){return this.check(s3(e))},positive(e){return this.check(B1(0,e))},nonnegative(e){return this.check(V1(0,e))},negative(e){return this.check(R1(0,e))},nonpositive(e){return this.check(z1(0,e))},multipleOf(e,t){return this.check(K1(e,t))},step(e,t){return this.check(K1(e,t))},finite(){return this}});let n=e._zod.bag;e.minValue=Math.max(n.minimum??-1/0,n.exclusiveMinimum??-1/0)??null,e.maxValue=Math.min(n.maximum??1/0,n.exclusiveMaximum??1/0)??null,e.isInt=(n.format??``).includes(`int`)||Number.isSafeInteger(n.multipleOf??.5),e.isFinite=!0,e.format=n.format??null}),B6=q(`ZodNumberFormat`,(e,t)=>{VY.init(e,t),z6.init(e,t)}),V6=q(`ZodBoolean`,(e,t)=>{HY.init(e,t),m6.init(e,t),e._zod.processJSONSchema=(t,n,r)=>o2(e,t,n,r)}),H6=q(`ZodBigInt`,(e,t)=>{UY.init(e,t),m6.init(e,t),e._zod.processJSONSchema=(t,n,r)=>s2(e,t,n,r),e.gte=(t,n)=>e.check(V1(t,n)),e.min=(t,n)=>e.check(V1(t,n)),e.gt=(t,n)=>e.check(B1(t,n)),e.gte=(t,n)=>e.check(V1(t,n)),e.min=(t,n)=>e.check(V1(t,n)),e.lt=(t,n)=>e.check(R1(t,n)),e.lte=(t,n)=>e.check(z1(t,n)),e.max=(t,n)=>e.check(z1(t,n)),e.positive=t=>e.check(B1(BigInt(0),t)),e.negative=t=>e.check(R1(BigInt(0),t)),e.nonpositive=t=>e.check(z1(BigInt(0),t)),e.nonnegative=t=>e.check(V1(BigInt(0),t)),e.multipleOf=(t,n)=>e.check(K1(t,n));let n=e._zod.bag;e.minValue=n.minimum??null,e.maxValue=n.maximum??null,e.format=n.format??null}),U6=q(`ZodBigIntFormat`,(e,t)=>{WY.init(e,t),H6.init(e,t)}),W6=q(`ZodSymbol`,(e,t)=>{GY.init(e,t),m6.init(e,t),e._zod.processJSONSchema=(t,n,r)=>c2(e,t,n,r)}),G6=q(`ZodUndefined`,(e,t)=>{KY.init(e,t),m6.init(e,t),e._zod.processJSONSchema=(t,n,r)=>u2(e,t,n,r)}),K6=q(`ZodNull`,(e,t)=>{qY.init(e,t),m6.init(e,t),e._zod.processJSONSchema=(t,n,r)=>l2(e,t,n,r)}),q6=q(`ZodAny`,(e,t)=>{JY.init(e,t),m6.init(e,t),e._zod.processJSONSchema=(t,n,r)=>p2(e,t,n,r)}),J6=q(`ZodUnknown`,(e,t)=>{YY.init(e,t),m6.init(e,t),e._zod.processJSONSchema=(t,n,r)=>m2(e,t,n,r)}),Y6=q(`ZodNever`,(e,t)=>{XY.init(e,t),m6.init(e,t),e._zod.processJSONSchema=(t,n,r)=>f2(e,t,n,r)}),X6=q(`ZodVoid`,(e,t)=>{ZY.init(e,t),m6.init(e,t),e._zod.processJSONSchema=(t,n,r)=>d2(e,t,n,r)}),Z6=q(`ZodDate`,(e,t)=>{QY.init(e,t),m6.init(e,t),e._zod.processJSONSchema=(t,n,r)=>h2(e,t,n,r),e.min=(t,n)=>e.check(V1(t,n)),e.max=(t,n)=>e.check(z1(t,n));let n=e._zod.bag;e.minDate=n.minimum?new Date(n.minimum):null,e.maxDate=n.maximum?new Date(n.maximum):null}),Q6=q(`ZodArray`,(e,t)=>{$Y.init(e,t),m6.init(e,t),e._zod.processJSONSchema=(t,n,r)=>D2(e,t,n,r),e.element=t.element,j4(e,`ZodArray`,{min(e,t){return this.check(Z1(e,t))},nonempty(e){return this.check(Z1(1,e))},max(e,t){return this.check(X1(e,t))},length(e,t){return this.check(Q1(e,t))},unwrap(){return this.element}})}),$6=q(`ZodObject`,(e,t)=>{tX.init(e,t),m6.init(e,t),e._zod.processJSONSchema=(t,n,r)=>O2(e,t,n,r),wG(e,`shape`,()=>t.shape),j4(e,`ZodObject`,{keyof(){return R3(Object.keys(this._zod.def.shape))},catchall(e){return this.clone({...this._zod.def,catchall:e})},passthrough(){return this.clone({...this._zod.def,catchall:b3()})},loose(){return this.clone({...this._zod.def,catchall:b3()})},strict(){return this.clone({...this._zod.def,catchall:x3()})},strip(){return this.clone({...this._zod.def,catchall:void 0})},extend(e){return WG(this,e)},safeExtend(e){return GG(this,e)},merge(e){return KG(this,e)},pick(e){return HG(this,e)},omit(e){return UG(this,e)},partial(...e){return qG(f8,this,e[0])},required(...e){return JG(_8,this,e[0])}})}),e8=q(`ZodUnion`,(e,t)=>{nX.init(e,t),m6.init(e,t),e._zod.processJSONSchema=(t,n,r)=>k2(e,t,n,r),e.options=t.options}),t8=q(`ZodXor`,(e,t)=>{e8.init(e,t),rX.init(e,t),e._zod.processJSONSchema=(t,n,r)=>k2(e,t,n,r),e.options=t.options}),n8=q(`ZodDiscriminatedUnion`,(e,t)=>{e8.init(e,t),iX.init(e,t)}),r8=q(`ZodIntersection`,(e,t)=>{aX.init(e,t),m6.init(e,t),e._zod.processJSONSchema=(t,n,r)=>A2(e,t,n,r)}),i8=q(`ZodTuple`,(e,t)=>{oX.init(e,t),m6.init(e,t),e._zod.processJSONSchema=(t,n,r)=>j2(e,t,n,r),e.rest=t=>e.clone({...e._zod.def,rest:t})}),a8=q(`ZodRecord`,(e,t)=>{sX.init(e,t),m6.init(e,t),e._zod.processJSONSchema=(t,n,r)=>M2(e,t,n,r),e.keyType=t.keyType,e.valueType=t.valueType}),o8=q(`ZodMap`,(e,t)=>{cX.init(e,t),m6.init(e,t),e._zod.processJSONSchema=(t,n,r)=>T2(e,t,n,r),e.keyType=t.keyType,e.valueType=t.valueType,e.min=(...t)=>e.check(J1(...t)),e.nonempty=t=>e.check(J1(1,t)),e.max=(...t)=>e.check(q1(...t)),e.size=(...t)=>e.check(Y1(...t))}),s8=q(`ZodSet`,(e,t)=>{lX.init(e,t),m6.init(e,t),e._zod.processJSONSchema=(t,n,r)=>E2(e,t,n,r),e.min=(...t)=>e.check(J1(...t)),e.nonempty=t=>e.check(J1(1,t)),e.max=(...t)=>e.check(q1(...t)),e.size=(...t)=>e.check(Y1(...t))}),c8=q(`ZodEnum`,(e,t)=>{uX.init(e,t),m6.init(e,t),e._zod.processJSONSchema=(t,n,r)=>g2(e,t,n,r),e.enum=t.entries,e.options=Object.values(t.entries);let n=new Set(Object.keys(t.entries));e.extract=(e,r)=>{let i={};for(let r of e)if(n.has(r))i[r]=t.entries[r];else throw Error(`Key ${r} not found in enum`);return new c8({...t,checks:[],...Y(r),entries:i})},e.exclude=(e,r)=>{let i={...t.entries};for(let t of e)if(n.has(t))delete i[t];else throw Error(`Key ${t} not found in enum`);return new c8({...t,checks:[],...Y(r),entries:i})}}),l8=q(`ZodLiteral`,(e,t)=>{dX.init(e,t),m6.init(e,t),e._zod.processJSONSchema=(t,n,r)=>_2(e,t,n,r),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if(t.values.length>1)throw Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})}),u8=q(`ZodFile`,(e,t)=>{fX.init(e,t),m6.init(e,t),e._zod.processJSONSchema=(t,n,r)=>b2(e,t,n,r),e.min=(t,n)=>e.check(J1(t,n)),e.max=(t,n)=>e.check(q1(t,n)),e.mime=(t,n)=>e.check(o0(Array.isArray(t)?t:[t],n))}),d8=q(`ZodTransform`,(e,t)=>{pX.init(e,t),m6.init(e,t),e._zod.processJSONSchema=(t,n,r)=>w2(e,t,n,r),e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new lG(e.constructor.name);n.addIssue=r=>{if(typeof r==`string`)n.issues.push(rK(r,n.value,t));else{let t=r;t.fatal&&(t.continue=!1),t.code??=`custom`,t.input??=n.value,t.inst??=e,n.issues.push(rK(t))}};let i=t.transform(n.value,n);return i instanceof Promise?i.then(e=>(n.value=e,n.fallback=!0,n)):(n.value=i,n.fallback=!0,n)}}),f8=q(`ZodOptional`,(e,t)=>{mX.init(e,t),m6.init(e,t),e._zod.processJSONSchema=(t,n,r)=>V2(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),p8=q(`ZodExactOptional`,(e,t)=>{hX.init(e,t),m6.init(e,t),e._zod.processJSONSchema=(t,n,r)=>V2(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),m8=q(`ZodNullable`,(e,t)=>{gX.init(e,t),m6.init(e,t),e._zod.processJSONSchema=(t,n,r)=>N2(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),h8=q(`ZodDefault`,(e,t)=>{_X.init(e,t),m6.init(e,t),e._zod.processJSONSchema=(t,n,r)=>F2(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap}),g8=q(`ZodPrefault`,(e,t)=>{vX.init(e,t),m6.init(e,t),e._zod.processJSONSchema=(t,n,r)=>I2(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),_8=q(`ZodNonOptional`,(e,t)=>{yX.init(e,t),m6.init(e,t),e._zod.processJSONSchema=(t,n,r)=>P2(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),v8=q(`ZodSuccess`,(e,t)=>{bX.init(e,t),m6.init(e,t),e._zod.processJSONSchema=(t,n,r)=>x2(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),y8=q(`ZodCatch`,(e,t)=>{xX.init(e,t),m6.init(e,t),e._zod.processJSONSchema=(t,n,r)=>L2(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap}),b8=q(`ZodNaN`,(e,t)=>{SX.init(e,t),m6.init(e,t),e._zod.processJSONSchema=(t,n,r)=>v2(e,t,n,r)}),x8=q(`ZodPipe`,(e,t)=>{CX.init(e,t),m6.init(e,t),e._zod.processJSONSchema=(t,n,r)=>R2(e,t,n,r),e.in=t.in,e.out=t.out}),S8=q(`ZodCodec`,(e,t)=>{x8.init(e,t),wX.init(e,t)}),C8=q(`ZodPreprocess`,(e,t)=>{x8.init(e,t),TX.init(e,t)}),w8=q(`ZodReadonly`,(e,t)=>{EX.init(e,t),m6.init(e,t),e._zod.processJSONSchema=(t,n,r)=>z2(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),T8=q(`ZodTemplateLiteral`,(e,t)=>{DX.init(e,t),m6.init(e,t),e._zod.processJSONSchema=(t,n,r)=>y2(e,t,n,r)}),E8=q(`ZodLazy`,(e,t)=>{AX.init(e,t),m6.init(e,t),e._zod.processJSONSchema=(t,n,r)=>H2(e,t,n,r),e.unwrap=()=>e._zod.def.getter()}),D8=q(`ZodPromise`,(e,t)=>{kX.init(e,t),m6.init(e,t),e._zod.processJSONSchema=(t,n,r)=>B2(e,t,n,r),e.unwrap=()=>e._zod.def.innerType}),O8=q(`ZodFunction`,(e,t)=>{OX.init(e,t),m6.init(e,t),e._zod.processJSONSchema=(t,n,r)=>C2(e,t,n,r)}),k8=q(`ZodCustom`,(e,t)=>{jX.init(e,t),m6.init(e,t),e._zod.processJSONSchema=(t,n,r)=>S2(e,t,n,r)}),A8=H0,j8=U0,M8=(...e)=>W0({Codec:S8,Boolean:V6,String:g6},...e)}));function P8(e){iG({customError:e})}function F8(){return iG().customError}var I8,L8,R8=o((()=>{X2(),I8={invalid_type:`invalid_type`,too_big:`too_big`,too_small:`too_small`,invalid_format:`invalid_format`,not_multiple_of:`not_multiple_of`,unrecognized_keys:`unrecognized_keys`,invalid_union:`invalid_union`,invalid_key:`invalid_key`,invalid_element:`invalid_element`,invalid_value:`invalid_value`,custom:`custom`},L8||={}}));function z8(e,t){let n=e.$schema;return n===`https://json-schema.org/draft/2020-12/schema`?`draft-2020-12`:n===`http://json-schema.org/draft-07/schema#`?`draft-7`:n===`http://json-schema.org/draft-04/schema#`?`draft-4`:t??`draft-2020-12`}function B8(e,t){if(!e.startsWith(`#`))throw Error(`External $ref is not supported, only local refs (#/...) are allowed`);let n=e.slice(1).split(`/`).filter(Boolean);if(n.length===0)return t.rootSchema;let r=t.version===`draft-2020-12`?`$defs`:`definitions`;if(n[0]===r){let r=n[1];if(!r||!t.defs[r])throw Error(`Reference not found: ${e}`);return t.defs[r]}throw Error(`Reference not found: ${e}`)}function V8(e,t){if(e.not!==void 0){if(typeof e.not==`object`&&Object.keys(e.not).length===0)return $.never();throw Error(`not is not supported in Zod (except { not: {} } for never)`)}if(e.unevaluatedItems!==void 0)throw Error(`unevaluatedItems is not supported`);if(e.unevaluatedProperties!==void 0)throw Error(`unevaluatedProperties is not supported`);if(e.if!==void 0||e.then!==void 0||e.else!==void 0)throw Error(`Conditional schemas (if/then/else) are not supported`);if(e.dependentSchemas!==void 0||e.dependentRequired!==void 0)throw Error(`dependentSchemas and dependentRequired are not supported`);if(e.$ref){let n=e.$ref;if(t.refs.has(n))return t.refs.get(n);if(t.processing.has(n))return $.lazy(()=>{if(!t.refs.has(n))throw Error(`Circular reference not resolved: ${n}`);return t.refs.get(n)});t.processing.add(n);let r=H8(B8(n,t),t);return t.refs.set(n,r),t.processing.delete(n),r}if(e.enum!==void 0){let n=e.enum;if(t.version===`openapi-3.0`&&e.nullable===!0&&n.length===1&&n[0]===null)return $.null();if(n.length===0)return $.never();if(n.length===1)return $.literal(n[0]);if(n.every(e=>typeof e==`string`))return $.enum(n);let r=n.map(e=>$.literal(e));return r.length<2?r[0]:$.union([r[0],r[1],...r.slice(2)])}if(e.const!==void 0)return $.literal(e.const);let n=e.type;if(Array.isArray(n)){let r=n.map(n=>V8({...e,type:n},t));return r.length===0?$.never():r.length===1?r[0]:$.union(r)}if(!n)return $.any();let r;switch(n){case`string`:{let t=$.string();if(e.format){let n=e.format;n===`email`?t=t.check($.email()):n===`uri`||n===`uri-reference`?t=t.check($.url()):n===`uuid`||n===`guid`?t=t.check($.uuid()):n===`date-time`?t=t.check($.iso.datetime()):n===`date`?t=t.check($.iso.date()):n===`time`?t=t.check($.iso.time()):n===`duration`?t=t.check($.iso.duration()):n===`ipv4`?t=t.check($.ipv4()):n===`ipv6`?t=t.check($.ipv6()):n===`mac`?t=t.check($.mac()):n===`cidr`?t=t.check($.cidrv4()):n===`cidr-v6`?t=t.check($.cidrv6()):n===`base64`?t=t.check($.base64()):n===`base64url`?t=t.check($.base64url()):n===`e164`?t=t.check($.e164()):n===`jwt`?t=t.check($.jwt()):n===`emoji`?t=t.check($.emoji()):n===`nanoid`?t=t.check($.nanoid()):n===`cuid`?t=t.check($.cuid()):n===`cuid2`?t=t.check($.cuid2()):n===`ulid`?t=t.check($.ulid()):n===`xid`?t=t.check($.xid()):n===`ksuid`&&(t=t.check($.ksuid()))}typeof e.minLength==`number`&&(t=t.min(e.minLength)),typeof e.maxLength==`number`&&(t=t.max(e.maxLength)),e.pattern&&(t=t.regex(new RegExp(e.pattern))),r=t;break}case`number`:case`integer`:{let t=n===`integer`?$.number().int():$.number();typeof e.minimum==`number`&&(t=t.min(e.minimum)),typeof e.maximum==`number`&&(t=t.max(e.maximum)),typeof e.exclusiveMinimum==`number`?t=t.gt(e.exclusiveMinimum):e.exclusiveMinimum===!0&&typeof e.minimum==`number`&&(t=t.gt(e.minimum)),typeof e.exclusiveMaximum==`number`?t=t.lt(e.exclusiveMaximum):e.exclusiveMaximum===!0&&typeof e.maximum==`number`&&(t=t.lt(e.maximum)),typeof e.multipleOf==`number`&&(t=t.multipleOf(e.multipleOf)),r=t;break}case`boolean`:r=$.boolean();break;case`null`:r=$.null();break;case`object`:{let n={},i=e.properties||{},a=new Set(e.required||[]);for(let[e,r]of Object.entries(i)){let i=H8(r,t);n[e]=a.has(e)?i:i.optional()}if(e.propertyNames){let i=H8(e.propertyNames,t),a=e.additionalProperties&&typeof e.additionalProperties==`object`?H8(e.additionalProperties,t):$.any();if(Object.keys(n).length===0){r=$.record(i,a);break}let o=$.object(n).passthrough(),s=$.looseRecord(i,a);r=$.intersection(o,s);break}if(e.patternProperties){let i=e.patternProperties,a=Object.keys(i),o=[];for(let e of a){let n=H8(i[e],t),r=$.string().regex(new RegExp(e));o.push($.looseRecord(r,n))}let s=[];if(Object.keys(n).length>0&&s.push($.object(n).passthrough()),s.push(...o),s.length===0)r=$.object({}).passthrough();else if(s.length===1)r=s[0];else{let e=$.intersection(s[0],s[1]);for(let t=2;tH8(e,t)),o=i&&typeof i==`object`&&!Array.isArray(i)?H8(i,t):void 0;r=o?$.tuple(a).rest(o):$.tuple(a),typeof e.minItems==`number`&&(r=r.check($.minLength(e.minItems))),typeof e.maxItems==`number`&&(r=r.check($.maxLength(e.maxItems)))}else if(Array.isArray(i)){let n=i.map(e=>H8(e,t)),a=e.additionalItems&&typeof e.additionalItems==`object`?H8(e.additionalItems,t):void 0;r=a?$.tuple(n).rest(a):$.tuple(n),typeof e.minItems==`number`&&(r=r.check($.minLength(e.minItems))),typeof e.maxItems==`number`&&(r=r.check($.maxLength(e.maxItems)))}else if(i!==void 0){let n=H8(i,t),a=$.array(n);typeof e.minItems==`number`&&(a=a.min(e.minItems)),typeof e.maxItems==`number`&&(a=a.max(e.maxItems)),r=a}else r=$.array($.any());break}default:throw Error(`Unsupported type: ${n}`)}return r}function H8(e,t){if(typeof e==`boolean`)return e?$.any():$.never();let n=V8(e,t),r=e.type||e.enum!==void 0||e.const!==void 0;if(e.anyOf&&Array.isArray(e.anyOf)){let i=e.anyOf.map(e=>H8(e,t)),a=$.union(i);n=r?$.intersection(n,a):a}if(e.oneOf&&Array.isArray(e.oneOf)){let i=e.oneOf.map(e=>H8(e,t)),a=$.xor(i);n=r?$.intersection(n,a):a}if(e.allOf&&Array.isArray(e.allOf))if(e.allOf.length===0)n=r?n:$.any();else{let i=r?n:H8(e.allOf[0],t),a=+!r;for(let n=a;n0&&t.registry.add(n,i),e.description&&(n=n.describe(e.description)),n}function U8(e,t){if(typeof e==`boolean`)return e?$.any():$.never();let n;try{n=JSON.parse(JSON.stringify(e))}catch{throw Error(`fromJSONSchema input is not valid JSON (possibly cyclic); use $defs/$ref for recursive schemas`)}let r={version:z8(n,t?.defaultTarget),defs:n.$defs||n.definitions||{},refs:new Map,processing:new Set,rootSchema:n,registry:t?.registry??R$};return H8(n,r)}var $,W8,G8=o((()=>{z$(),n4(),f4(),N8(),$={...A4,...t4,iso:r4},W8=new Set(`$schema.$ref.$defs.definitions.$id.id.$comment.$anchor.$vocabulary.$dynamicRef.$dynamicAnchor.type.enum.const.anyOf.oneOf.allOf.not.properties.required.additionalProperties.patternProperties.propertyNames.minProperties.maxProperties.items.prefixItems.additionalItems.minItems.maxItems.uniqueItems.contains.minContains.maxContains.minLength.maxLength.pattern.format.minimum.maximum.exclusiveMinimum.exclusiveMaximum.multipleOf.description.default.contentEncoding.contentMediaType.contentSchema.unevaluatedItems.unevaluatedProperties.if.then.else.dependentSchemas.dependentRequired.nullable.readOnly`.split(`.`))})),K8=c({bigint:()=>X8,boolean:()=>Y8,date:()=>Z8,number:()=>J8,string:()=>q8});function q8(e){return V$(g6,e)}function J8(e){return g1(z6,e)}function Y8(e){return C1(V6,e)}function X8(e){return T1(H6,e)}function Z8(e){return I1(Z6,e)}var Q8=o((()=>{X2(),N8()})),$8=c({$brand:()=>sG,$input:()=>I$,$output:()=>F$,NEVER:()=>oG,TimePrecision:()=>K0,ZodAny:()=>q6,ZodArray:()=>Q6,ZodBase64:()=>P6,ZodBase64URL:()=>F6,ZodBigInt:()=>H6,ZodBigIntFormat:()=>U6,ZodBoolean:()=>V6,ZodCIDRv4:()=>M6,ZodCIDRv6:()=>N6,ZodCUID:()=>w6,ZodCUID2:()=>T6,ZodCatch:()=>y8,ZodCodec:()=>S8,ZodCustom:()=>k8,ZodCustomStringFormat:()=>R6,ZodDate:()=>Z6,ZodDefault:()=>h8,ZodDiscriminatedUnion:()=>n8,ZodE164:()=>I6,ZodEmail:()=>v6,ZodEmoji:()=>S6,ZodEnum:()=>c8,ZodError:()=>m4,ZodExactOptional:()=>p8,ZodFile:()=>u8,ZodFirstPartyTypeKind:()=>L8,ZodFunction:()=>O8,ZodGUID:()=>y6,ZodIPv4:()=>k6,ZodIPv6:()=>j6,ZodISODate:()=>l4,ZodISODateTime:()=>c4,ZodISODuration:()=>d4,ZodISOTime:()=>u4,ZodIntersection:()=>r8,ZodIssueCode:()=>I8,ZodJWT:()=>L6,ZodKSUID:()=>O6,ZodLazy:()=>E8,ZodLiteral:()=>l8,ZodMAC:()=>A6,ZodMap:()=>o8,ZodNaN:()=>b8,ZodNanoID:()=>C6,ZodNever:()=>Y6,ZodNonOptional:()=>_8,ZodNull:()=>K6,ZodNullable:()=>m8,ZodNumber:()=>z6,ZodNumberFormat:()=>B6,ZodObject:()=>$6,ZodOptional:()=>f8,ZodPipe:()=>x8,ZodPrefault:()=>g8,ZodPreprocess:()=>C8,ZodPromise:()=>D8,ZodReadonly:()=>w8,ZodRealError:()=>h4,ZodRecord:()=>a8,ZodSet:()=>s8,ZodString:()=>g6,ZodStringFormat:()=>_6,ZodSuccess:()=>v8,ZodSymbol:()=>W6,ZodTemplateLiteral:()=>T8,ZodTransform:()=>d8,ZodTuple:()=>i8,ZodType:()=>m6,ZodULID:()=>E6,ZodURL:()=>x6,ZodUUID:()=>b6,ZodUndefined:()=>G6,ZodUnion:()=>e8,ZodUnknown:()=>J6,ZodVoid:()=>X6,ZodXID:()=>D6,ZodXor:()=>t8,_ZodString:()=>h6,_default:()=>K3,_function:()=>a6,any:()=>y3,array:()=>w3,base64:()=>Q4,base64url:()=>$4,bigint:()=>p3,boolean:()=>f3,catch:()=>X3,check:()=>o6,cidrv4:()=>X4,cidrv6:()=>Z4,clone:()=>zG,codec:()=>$3,coerce:()=>K8,config:()=>iG,core:()=>Y2,cuid:()=>H4,cuid2:()=>U4,custom:()=>s6,date:()=>C3,decode:()=>S4,decodeAsync:()=>w4,describe:()=>A8,discriminatedUnion:()=>A3,e164:()=>e3,email:()=>M4,emoji:()=>B4,encode:()=>x4,encodeAsync:()=>C4,endsWith:()=>i0,enum:()=>R3,exactOptional:()=>U3,file:()=>B3,flattenError:()=>xK,float32:()=>c3,float64:()=>l3,formatError:()=>SK,fromJSONSchema:()=>U8,function:()=>a6,getErrorMap:()=>F8,globalRegistry:()=>R$,gt:()=>B1,gte:()=>V1,guid:()=>N4,hash:()=>a3,hex:()=>i3,hostname:()=>r3,httpUrl:()=>z4,includes:()=>n0,instanceof:()=>u6,int:()=>s3,int32:()=>u3,int64:()=>m3,intersection:()=>j3,invertCodec:()=>e6,ipv4:()=>q4,ipv6:()=>Y4,iso:()=>r4,json:()=>d6,jwt:()=>t3,keyof:()=>T3,ksuid:()=>K4,lazy:()=>r6,length:()=>Q1,literal:()=>Q,locales:()=>j$,looseObject:()=>D3,looseRecord:()=>F3,lowercase:()=>e0,lt:()=>R1,lte:()=>z1,mac:()=>J4,map:()=>I3,maxLength:()=>X1,maxSize:()=>q1,meta:()=>j8,mime:()=>o0,minLength:()=>Z1,minSize:()=>J1,multipleOf:()=>K1,nan:()=>Z3,nanoid:()=>V4,nativeEnum:()=>z3,negative:()=>U1,never:()=>x3,nonnegative:()=>G1,nonoptional:()=>J3,nonpositive:()=>W1,normalize:()=>c0,null:()=>v3,nullable:()=>W3,nullish:()=>G3,number:()=>o3,object:()=>Z,optional:()=>H3,overwrite:()=>s0,parse:()=>_4,parseAsync:()=>v4,partialRecord:()=>P3,pipe:()=>Q3,positive:()=>H1,prefault:()=>q3,preprocess:()=>f6,prettifyError:()=>TK,promise:()=>i6,property:()=>a0,readonly:()=>t6,record:()=>N3,refine:()=>c6,regex:()=>$1,regexes:()=>tq,registry:()=>N$,safeDecode:()=>E4,safeDecodeAsync:()=>O4,safeEncode:()=>T4,safeEncodeAsync:()=>D4,safeParse:()=>y4,safeParseAsync:()=>b4,set:()=>L3,setErrorMap:()=>P8,size:()=>Y1,slugify:()=>f0,startsWith:()=>r0,strictObject:()=>E3,string:()=>X,stringFormat:()=>n3,stringbool:()=>M8,success:()=>Y3,superRefine:()=>l6,symbol:()=>g3,templateLiteral:()=>n6,toJSONSchema:()=>n2,toLowerCase:()=>u0,toUpperCase:()=>d0,transform:()=>V3,treeifyError:()=>CK,trim:()=>l0,tuple:()=>M3,uint32:()=>d3,uint64:()=>h3,ulid:()=>W4,undefined:()=>_3,union:()=>O3,unknown:()=>b3,uppercase:()=>t0,url:()=>R4,util:()=>fG,uuid:()=>P4,uuidv4:()=>F4,uuidv6:()=>I4,uuidv7:()=>L4,void:()=>S3,xid:()=>G4,xor:()=>k3}),e5=o((()=>{X2(),N8(),n4(),g4(),k4(),R8(),lZ(),W2(),G8(),M$(),f4(),Q8(),iG(sZ())})),t5,n5=o((()=>{e5(),e5(),t5=$8})),r5=c({$brand:()=>sG,$input:()=>I$,$output:()=>F$,NEVER:()=>oG,TimePrecision:()=>K0,ZodAny:()=>q6,ZodArray:()=>Q6,ZodBase64:()=>P6,ZodBase64URL:()=>F6,ZodBigInt:()=>H6,ZodBigIntFormat:()=>U6,ZodBoolean:()=>V6,ZodCIDRv4:()=>M6,ZodCIDRv6:()=>N6,ZodCUID:()=>w6,ZodCUID2:()=>T6,ZodCatch:()=>y8,ZodCodec:()=>S8,ZodCustom:()=>k8,ZodCustomStringFormat:()=>R6,ZodDate:()=>Z6,ZodDefault:()=>h8,ZodDiscriminatedUnion:()=>n8,ZodE164:()=>I6,ZodEmail:()=>v6,ZodEmoji:()=>S6,ZodEnum:()=>c8,ZodError:()=>m4,ZodExactOptional:()=>p8,ZodFile:()=>u8,ZodFirstPartyTypeKind:()=>L8,ZodFunction:()=>O8,ZodGUID:()=>y6,ZodIPv4:()=>k6,ZodIPv6:()=>j6,ZodISODate:()=>l4,ZodISODateTime:()=>c4,ZodISODuration:()=>d4,ZodISOTime:()=>u4,ZodIntersection:()=>r8,ZodIssueCode:()=>I8,ZodJWT:()=>L6,ZodKSUID:()=>O6,ZodLazy:()=>E8,ZodLiteral:()=>l8,ZodMAC:()=>A6,ZodMap:()=>o8,ZodNaN:()=>b8,ZodNanoID:()=>C6,ZodNever:()=>Y6,ZodNonOptional:()=>_8,ZodNull:()=>K6,ZodNullable:()=>m8,ZodNumber:()=>z6,ZodNumberFormat:()=>B6,ZodObject:()=>$6,ZodOptional:()=>f8,ZodPipe:()=>x8,ZodPrefault:()=>g8,ZodPreprocess:()=>C8,ZodPromise:()=>D8,ZodReadonly:()=>w8,ZodRealError:()=>h4,ZodRecord:()=>a8,ZodSet:()=>s8,ZodString:()=>g6,ZodStringFormat:()=>_6,ZodSuccess:()=>v8,ZodSymbol:()=>W6,ZodTemplateLiteral:()=>T8,ZodTransform:()=>d8,ZodTuple:()=>i8,ZodType:()=>m6,ZodULID:()=>E6,ZodURL:()=>x6,ZodUUID:()=>b6,ZodUndefined:()=>G6,ZodUnion:()=>e8,ZodUnknown:()=>J6,ZodVoid:()=>X6,ZodXID:()=>D6,ZodXor:()=>t8,_ZodString:()=>h6,_default:()=>K3,_function:()=>a6,any:()=>y3,array:()=>w3,base64:()=>Q4,base64url:()=>$4,bigint:()=>p3,boolean:()=>f3,catch:()=>X3,check:()=>o6,cidrv4:()=>X4,cidrv6:()=>Z4,clone:()=>zG,codec:()=>$3,coerce:()=>K8,config:()=>iG,core:()=>Y2,cuid:()=>H4,cuid2:()=>U4,custom:()=>s6,date:()=>C3,decode:()=>S4,decodeAsync:()=>w4,default:()=>i5,describe:()=>A8,discriminatedUnion:()=>A3,e164:()=>e3,email:()=>M4,emoji:()=>B4,encode:()=>x4,encodeAsync:()=>C4,endsWith:()=>i0,enum:()=>R3,exactOptional:()=>U3,file:()=>B3,flattenError:()=>xK,float32:()=>c3,float64:()=>l3,formatError:()=>SK,fromJSONSchema:()=>U8,function:()=>a6,getErrorMap:()=>F8,globalRegistry:()=>R$,gt:()=>B1,gte:()=>V1,guid:()=>N4,hash:()=>a3,hex:()=>i3,hostname:()=>r3,httpUrl:()=>z4,includes:()=>n0,instanceof:()=>u6,int:()=>s3,int32:()=>u3,int64:()=>m3,intersection:()=>j3,invertCodec:()=>e6,ipv4:()=>q4,ipv6:()=>Y4,iso:()=>r4,json:()=>d6,jwt:()=>t3,keyof:()=>T3,ksuid:()=>K4,lazy:()=>r6,length:()=>Q1,literal:()=>Q,locales:()=>j$,looseObject:()=>D3,looseRecord:()=>F3,lowercase:()=>e0,lt:()=>R1,lte:()=>z1,mac:()=>J4,map:()=>I3,maxLength:()=>X1,maxSize:()=>q1,meta:()=>j8,mime:()=>o0,minLength:()=>Z1,minSize:()=>J1,multipleOf:()=>K1,nan:()=>Z3,nanoid:()=>V4,nativeEnum:()=>z3,negative:()=>U1,never:()=>x3,nonnegative:()=>G1,nonoptional:()=>J3,nonpositive:()=>W1,normalize:()=>c0,null:()=>v3,nullable:()=>W3,nullish:()=>G3,number:()=>o3,object:()=>Z,optional:()=>H3,overwrite:()=>s0,parse:()=>_4,parseAsync:()=>v4,partialRecord:()=>P3,pipe:()=>Q3,positive:()=>H1,prefault:()=>q3,preprocess:()=>f6,prettifyError:()=>TK,promise:()=>i6,property:()=>a0,readonly:()=>t6,record:()=>N3,refine:()=>c6,regex:()=>$1,regexes:()=>tq,registry:()=>N$,safeDecode:()=>E4,safeDecodeAsync:()=>O4,safeEncode:()=>T4,safeEncodeAsync:()=>D4,safeParse:()=>y4,safeParseAsync:()=>b4,set:()=>L3,setErrorMap:()=>P8,size:()=>Y1,slugify:()=>f0,startsWith:()=>r0,strictObject:()=>E3,string:()=>X,stringFormat:()=>n3,stringbool:()=>M8,success:()=>Y3,superRefine:()=>l6,symbol:()=>g3,templateLiteral:()=>n6,toJSONSchema:()=>n2,toLowerCase:()=>u0,toUpperCase:()=>d0,transform:()=>V3,treeifyError:()=>CK,trim:()=>l0,tuple:()=>M3,uint32:()=>d3,uint64:()=>h3,ulid:()=>W4,undefined:()=>_3,union:()=>O3,unknown:()=>b3,uppercase:()=>t0,url:()=>R4,util:()=>fG,uuid:()=>P4,uuidv4:()=>F4,uuidv6:()=>I4,uuidv7:()=>L4,void:()=>S3,xid:()=>G4,xor:()=>k3,z:()=>$8}),i5,a5=o((()=>{n5(),n5(),i5=t5}));a5();var o5=`io.modelcontextprotocol/related-task`,s5=s6(e=>e!==null&&(typeof e==`object`||typeof e==`function`)),c5=O3([X(),o3().int()]),l5=X();D3({ttl:o3().optional(),pollInterval:o3().optional()});var u5=Z({ttl:o3().optional()}),d5=Z({taskId:X()}),f5=D3({progressToken:c5.optional(),[o5]:d5.optional()}),p5=Z({_meta:f5.optional()}),m5=p5.extend({task:u5.optional()}),h5=e=>m5.safeParse(e).success,g5=Z({method:X(),params:p5.loose().optional()}),_5=Z({_meta:f5.optional()}),v5=Z({method:X(),params:_5.loose().optional()}),y5=D3({_meta:f5.optional()}),b5=O3([X(),o3().int()]),x5=Z({jsonrpc:Q(`2.0`),id:b5,...g5.shape}).strict(),S5=e=>x5.safeParse(e).success,C5=Z({jsonrpc:Q(`2.0`),...v5.shape}).strict(),w5=e=>C5.safeParse(e).success,T5=Z({jsonrpc:Q(`2.0`),id:b5,result:y5}).strict(),E5=e=>T5.safeParse(e).success,D5;(function(e){e[e.ConnectionClosed=-32e3]=`ConnectionClosed`,e[e.RequestTimeout=-32001]=`RequestTimeout`,e[e.ParseError=-32700]=`ParseError`,e[e.InvalidRequest=-32600]=`InvalidRequest`,e[e.MethodNotFound=-32601]=`MethodNotFound`,e[e.InvalidParams=-32602]=`InvalidParams`,e[e.InternalError=-32603]=`InternalError`,e[e.UrlElicitationRequired=-32042]=`UrlElicitationRequired`})(D5||={});var O5=Z({jsonrpc:Q(`2.0`),id:b5.optional(),error:Z({code:o3().int(),message:X(),data:b3().optional()})}).strict(),k5=e=>O5.safeParse(e).success,A5=O3([x5,C5,T5,O5]);O3([T5,O5]);var j5=y5.strict(),M5=_5.extend({requestId:b5.optional(),reason:X().optional()}),N5=v5.extend({method:Q(`notifications/cancelled`),params:M5}),P5=Z({icons:w3(Z({src:X(),mimeType:X().optional(),sizes:w3(X()).optional(),theme:R3([`light`,`dark`]).optional()})).optional()}),F5=Z({name:X(),title:X().optional()}),I5=F5.extend({...F5.shape,...P5.shape,version:X(),websiteUrl:X().optional(),description:X().optional()}),L5=f6(e=>e&&typeof e==`object`&&!Array.isArray(e)&&Object.keys(e).length===0?{form:{}}:e,j3(Z({form:j3(Z({applyDefaults:f3().optional()}),N3(X(),b3())).optional(),url:s5.optional()}),N3(X(),b3()).optional())),R5=D3({list:s5.optional(),cancel:s5.optional(),requests:D3({sampling:D3({createMessage:s5.optional()}).optional(),elicitation:D3({create:s5.optional()}).optional()}).optional()}),z5=D3({list:s5.optional(),cancel:s5.optional(),requests:D3({tools:D3({call:s5.optional()}).optional()}).optional()}),B5=Z({experimental:N3(X(),s5).optional(),sampling:Z({context:s5.optional(),tools:s5.optional()}).optional(),elicitation:L5.optional(),roots:Z({listChanged:f3().optional()}).optional(),tasks:R5.optional(),extensions:N3(X(),s5).optional()}),V5=p5.extend({protocolVersion:X(),capabilities:B5,clientInfo:I5}),H5=g5.extend({method:Q(`initialize`),params:V5}),U5=Z({experimental:N3(X(),s5).optional(),logging:s5.optional(),completions:s5.optional(),prompts:Z({listChanged:f3().optional()}).optional(),resources:Z({subscribe:f3().optional(),listChanged:f3().optional()}).optional(),tools:Z({listChanged:f3().optional()}).optional(),tasks:z5.optional(),extensions:N3(X(),s5).optional()}),W5=y5.extend({protocolVersion:X(),capabilities:U5,serverInfo:I5,instructions:X().optional()}),G5=v5.extend({method:Q(`notifications/initialized`),params:_5.optional()}),K5=g5.extend({method:Q(`ping`),params:p5.optional()}),q5=Z({progress:o3(),total:H3(o3()),message:H3(X())}),J5=Z({..._5.shape,...q5.shape,progressToken:c5}),Y5=v5.extend({method:Q(`notifications/progress`),params:J5}),X5=p5.extend({cursor:l5.optional()}),Z5=g5.extend({params:X5.optional()}),Q5=y5.extend({nextCursor:l5.optional()}),$5=R3([`working`,`input_required`,`completed`,`failed`,`cancelled`]),e7=Z({taskId:X(),status:$5,ttl:O3([o3(),v3()]),createdAt:X(),lastUpdatedAt:X(),pollInterval:H3(o3()),statusMessage:H3(X())}),t7=y5.extend({task:e7}),n7=_5.merge(e7),r7=v5.extend({method:Q(`notifications/tasks/status`),params:n7}),i7=g5.extend({method:Q(`tasks/get`),params:p5.extend({taskId:X()})}),a7=y5.merge(e7),o7=g5.extend({method:Q(`tasks/result`),params:p5.extend({taskId:X()})});y5.loose();var s7=Z5.extend({method:Q(`tasks/list`)}),c7=Q5.extend({tasks:w3(e7)}),l7=g5.extend({method:Q(`tasks/cancel`),params:p5.extend({taskId:X()})}),u7=y5.merge(e7),d7=Z({uri:X(),mimeType:H3(X()),_meta:N3(X(),b3()).optional()}),f7=d7.extend({text:X()}),p7=X().refine(e=>{try{return atob(e),!0}catch{return!1}},{message:`Invalid Base64 string`}),m7=d7.extend({blob:p7}),h7=R3([`user`,`assistant`]),g7=Z({audience:w3(h7).optional(),priority:o3().min(0).max(1).optional(),lastModified:i4({offset:!0}).optional()}),_7=Z({...F5.shape,...P5.shape,uri:X(),description:H3(X()),mimeType:H3(X()),size:H3(o3()),annotations:g7.optional(),_meta:H3(D3({}))}),v7=Z({...F5.shape,...P5.shape,uriTemplate:X(),description:H3(X()),mimeType:H3(X()),annotations:g7.optional(),_meta:H3(D3({}))}),y7=Z5.extend({method:Q(`resources/list`)}),b7=Q5.extend({resources:w3(_7)}),x7=Z5.extend({method:Q(`resources/templates/list`)}),S7=Q5.extend({resourceTemplates:w3(v7)}),C7=p5.extend({uri:X()}),w7=C7,T7=g5.extend({method:Q(`resources/read`),params:w7}),E7=y5.extend({contents:w3(O3([f7,m7]))}),D7=v5.extend({method:Q(`notifications/resources/list_changed`),params:_5.optional()}),O7=C7,k7=g5.extend({method:Q(`resources/subscribe`),params:O7}),A7=C7,j7=g5.extend({method:Q(`resources/unsubscribe`),params:A7}),M7=_5.extend({uri:X()}),N7=v5.extend({method:Q(`notifications/resources/updated`),params:M7}),P7=Z({name:X(),description:H3(X()),required:H3(f3())}),F7=Z({...F5.shape,...P5.shape,description:H3(X()),arguments:H3(w3(P7)),_meta:H3(D3({}))}),I7=Z5.extend({method:Q(`prompts/list`)}),L7=Q5.extend({prompts:w3(F7)}),R7=p5.extend({name:X(),arguments:N3(X(),X()).optional()}),z7=g5.extend({method:Q(`prompts/get`),params:R7}),B7=Z({type:Q(`text`),text:X(),annotations:g7.optional(),_meta:N3(X(),b3()).optional()}),V7=Z({type:Q(`image`),data:p7,mimeType:X(),annotations:g7.optional(),_meta:N3(X(),b3()).optional()}),H7=Z({type:Q(`audio`),data:p7,mimeType:X(),annotations:g7.optional(),_meta:N3(X(),b3()).optional()}),U7=Z({type:Q(`tool_use`),name:X(),id:X(),input:N3(X(),b3()),_meta:N3(X(),b3()).optional()}),W7=Z({type:Q(`resource`),resource:O3([f7,m7]),annotations:g7.optional(),_meta:N3(X(),b3()).optional()}),G7=_7.extend({type:Q(`resource_link`)}),K7=O3([B7,V7,H7,G7,W7]),q7=Z({role:h7,content:K7}),J7=y5.extend({description:X().optional(),messages:w3(q7)}),Y7=v5.extend({method:Q(`notifications/prompts/list_changed`),params:_5.optional()}),X7=Z({title:X().optional(),readOnlyHint:f3().optional(),destructiveHint:f3().optional(),idempotentHint:f3().optional(),openWorldHint:f3().optional()}),Z7=Z({taskSupport:R3([`required`,`optional`,`forbidden`]).optional()}),Q7=Z({...F5.shape,...P5.shape,description:X().optional(),inputSchema:Z({type:Q(`object`),properties:N3(X(),s5).optional(),required:w3(X()).optional()}).catchall(b3()),outputSchema:Z({type:Q(`object`),properties:N3(X(),s5).optional(),required:w3(X()).optional()}).catchall(b3()).optional(),annotations:X7.optional(),execution:Z7.optional(),_meta:N3(X(),b3()).optional()}),$7=Z5.extend({method:Q(`tools/list`)}),e9=Q5.extend({tools:w3(Q7)}),t9=y5.extend({content:w3(K7).default([]),structuredContent:N3(X(),b3()).optional(),isError:f3().optional()});t9.or(y5.extend({toolResult:b3()}));var n9=m5.extend({name:X(),arguments:N3(X(),b3()).optional()}),r9=g5.extend({method:Q(`tools/call`),params:n9}),i9=v5.extend({method:Q(`notifications/tools/list_changed`),params:_5.optional()});Z({autoRefresh:f3().default(!0),debounceMs:o3().int().nonnegative().default(300)});var a9=R3([`debug`,`info`,`notice`,`warning`,`error`,`critical`,`alert`,`emergency`]),o9=p5.extend({level:a9}),s9=g5.extend({method:Q(`logging/setLevel`),params:o9}),c9=_5.extend({level:a9,logger:X().optional(),data:b3()}),l9=v5.extend({method:Q(`notifications/message`),params:c9}),u9=Z({hints:w3(Z({name:X().optional()})).optional(),costPriority:o3().min(0).max(1).optional(),speedPriority:o3().min(0).max(1).optional(),intelligencePriority:o3().min(0).max(1).optional()}),d9=Z({mode:R3([`auto`,`required`,`none`]).optional()}),f9=Z({type:Q(`tool_result`),toolUseId:X().describe(`The unique identifier for the corresponding tool call.`),content:w3(K7).default([]),structuredContent:Z({}).loose().optional(),isError:f3().optional(),_meta:N3(X(),b3()).optional()}),p9=A3(`type`,[B7,V7,H7]),m9=A3(`type`,[B7,V7,H7,U7,f9]),h9=Z({role:h7,content:O3([m9,w3(m9)]),_meta:N3(X(),b3()).optional()}),g9=m5.extend({messages:w3(h9),modelPreferences:u9.optional(),systemPrompt:X().optional(),includeContext:R3([`none`,`thisServer`,`allServers`]).optional(),temperature:o3().optional(),maxTokens:o3().int(),stopSequences:w3(X()).optional(),metadata:s5.optional(),tools:w3(Q7).optional(),toolChoice:d9.optional()}),_9=g5.extend({method:Q(`sampling/createMessage`),params:g9}),v9=y5.extend({model:X(),stopReason:H3(R3([`endTurn`,`stopSequence`,`maxTokens`]).or(X())),role:h7,content:p9}),y9=y5.extend({model:X(),stopReason:H3(R3([`endTurn`,`stopSequence`,`maxTokens`,`toolUse`]).or(X())),role:h7,content:O3([m9,w3(m9)])}),b9=Z({type:Q(`boolean`),title:X().optional(),description:X().optional(),default:f3().optional()}),x9=Z({type:Q(`string`),title:X().optional(),description:X().optional(),minLength:o3().optional(),maxLength:o3().optional(),format:R3([`email`,`uri`,`date`,`date-time`]).optional(),default:X().optional()}),S9=Z({type:R3([`number`,`integer`]),title:X().optional(),description:X().optional(),minimum:o3().optional(),maximum:o3().optional(),default:o3().optional()}),C9=Z({type:Q(`string`),title:X().optional(),description:X().optional(),enum:w3(X()),default:X().optional()}),w9=Z({type:Q(`string`),title:X().optional(),description:X().optional(),oneOf:w3(Z({const:X(),title:X()})),default:X().optional()}),T9=O3([O3([Z({type:Q(`string`),title:X().optional(),description:X().optional(),enum:w3(X()),enumNames:w3(X()).optional(),default:X().optional()}),O3([C9,w9]),O3([Z({type:Q(`array`),title:X().optional(),description:X().optional(),minItems:o3().optional(),maxItems:o3().optional(),items:Z({type:Q(`string`),enum:w3(X())}),default:w3(X()).optional()}),Z({type:Q(`array`),title:X().optional(),description:X().optional(),minItems:o3().optional(),maxItems:o3().optional(),items:Z({anyOf:w3(Z({const:X(),title:X()}))}),default:w3(X()).optional()})])]),b9,x9,S9]),E9=O3([m5.extend({mode:Q(`form`).optional(),message:X(),requestedSchema:Z({type:Q(`object`),properties:N3(X(),T9),required:w3(X()).optional()})}),m5.extend({mode:Q(`url`),message:X(),elicitationId:X(),url:X().url()})]),D9=g5.extend({method:Q(`elicitation/create`),params:E9}),O9=_5.extend({elicitationId:X()}),k9=v5.extend({method:Q(`notifications/elicitation/complete`),params:O9}),A9=y5.extend({action:R3([`accept`,`decline`,`cancel`]),content:f6(e=>e===null?void 0:e,N3(X(),O3([X(),o3(),f3(),w3(X())])).optional())}),j9=Z({type:Q(`ref/resource`),uri:X()}),M9=Z({type:Q(`ref/prompt`),name:X()}),N9=p5.extend({ref:O3([M9,j9]),argument:Z({name:X(),value:X()}),context:Z({arguments:N3(X(),X()).optional()}).optional()}),P9=g5.extend({method:Q(`completion/complete`),params:N9}),F9=y5.extend({completion:D3({values:w3(X()).max(100),total:H3(o3().int()),hasMore:H3(f3())})}),I9=Z({uri:X().startsWith(`file://`),name:X().optional(),_meta:N3(X(),b3()).optional()}),L9=g5.extend({method:Q(`roots/list`),params:p5.optional()}),R9=y5.extend({roots:w3(I9)}),gee=v5.extend({method:Q(`notifications/roots/list_changed`),params:_5.optional()});O3([K5,H5,P9,s9,z7,I7,y7,x7,T7,k7,j7,r9,$7,i7,o7,s7,l7]),O3([N5,Y5,G5,gee,r7]),O3([j5,v9,y9,A9,R9,a7,c7,t7]),O3([K5,_9,D9,L9,i7,o7,s7,l7]),O3([N5,Y5,l9,N7,D7,i9,Y7,r7,k9]),O3([j5,W5,F9,J7,L7,b7,S7,E7,t9,e9,a7,c7,t7]);var z9=class e extends Error{constructor(e,t,n){super(`MCP error ${e}: ${t}`),this.code=e,this.data=n,this.name=`McpError`}static fromError(t,n,r){if(t===D5.UrlElicitationRequired&&r){let e=r;if(e.elicitations)return new _ee(e.elicitations,n)}return new e(t,n,r)}},_ee=class extends z9{constructor(e,t=`URL elicitation${e.length>1?`s`:``} required`){super(D5.UrlElicitationRequired,t,{elicitations:e})}get elicitations(){return this.data?.elicitations??[]}};function B9(e){return e===`completed`||e===`failed`||e===`cancelled`}function V9(e){let t=$2(e)?.method;if(!t)throw Error(`Schema is missing a method literal`);let n=e4(t);if(typeof n!=`string`)throw Error(`Schema method literal must be a string`);return n}function H9(e,t){let n=Q2(e,t);if(!n.success)throw n.error;return n.data}var vee=class{constructor(e){this._options=e,this._requestMessageId=0,this._requestHandlers=new Map,this._requestHandlerAbortControllers=new Map,this._notificationHandlers=new Map,this._responseHandlers=new Map,this._progressHandlers=new Map,this._timeoutInfo=new Map,this._pendingDebouncedNotifications=new Set,this._taskProgressTokens=new Map,this._requestResolvers=new Map,this.setNotificationHandler(N5,e=>{this._oncancel(e)}),this.setNotificationHandler(Y5,e=>{this._onprogress(e)}),this.setRequestHandler(K5,e=>({})),this._taskStore=e?.taskStore,this._taskMessageQueue=e?.taskMessageQueue,this._taskStore&&(this.setRequestHandler(i7,async(e,t)=>{let n=await this._taskStore.getTask(e.params.taskId,t.sessionId);if(!n)throw new z9(D5.InvalidParams,`Failed to retrieve task: Task not found`);return{...n}}),this.setRequestHandler(o7,async(e,t)=>{let n=async()=>{let r=e.params.taskId;if(this._taskMessageQueue){let e;for(;e=await this._taskMessageQueue.dequeue(r,t.sessionId);){if(e.type===`response`||e.type===`error`){let t=e.message,n=t.id,r=this._requestResolvers.get(n);if(r)if(this._requestResolvers.delete(n),e.type===`response`)r(t);else{let e=t;r(new z9(e.error.code,e.error.message,e.error.data))}else{let t=e.type===`response`?`Response`:`Error`;this._onerror(Error(`${t} handler missing for request ${n}`))}continue}await this._transport?.send(e.message,{relatedRequestId:t.requestId})}}let i=await this._taskStore.getTask(r,t.sessionId);if(!i)throw new z9(D5.InvalidParams,`Task not found: ${r}`);if(!B9(i.status))return await this._waitForTaskUpdate(r,t.signal),await n();if(B9(i.status)){let e=await this._taskStore.getTaskResult(r,t.sessionId);return this._clearTaskQueue(r),{...e,_meta:{...e._meta,[o5]:{taskId:r}}}}return await n()};return await n()}),this.setRequestHandler(s7,async(e,t)=>{try{let{tasks:n,nextCursor:r}=await this._taskStore.listTasks(e.params?.cursor,t.sessionId);return{tasks:n,nextCursor:r,_meta:{}}}catch(e){throw new z9(D5.InvalidParams,`Failed to list tasks: ${e instanceof Error?e.message:String(e)}`)}}),this.setRequestHandler(l7,async(e,t)=>{try{let n=await this._taskStore.getTask(e.params.taskId,t.sessionId);if(!n)throw new z9(D5.InvalidParams,`Task not found: ${e.params.taskId}`);if(B9(n.status))throw new z9(D5.InvalidParams,`Cannot cancel task in terminal status: ${n.status}`);await this._taskStore.updateTaskStatus(e.params.taskId,`cancelled`,`Client cancelled task execution.`,t.sessionId),this._clearTaskQueue(e.params.taskId);let r=await this._taskStore.getTask(e.params.taskId,t.sessionId);if(!r)throw new z9(D5.InvalidParams,`Task not found after cancellation: ${e.params.taskId}`);return{_meta:{},...r}}catch(e){throw e instanceof z9?e:new z9(D5.InvalidRequest,`Failed to cancel task: ${e instanceof Error?e.message:String(e)}`)}}))}async _oncancel(e){e.params.requestId&&this._requestHandlerAbortControllers.get(e.params.requestId)?.abort(e.params.reason)}_setupTimeout(e,t,n,r,i=!1){this._timeoutInfo.set(e,{timeoutId:setTimeout(r,t),startTime:Date.now(),timeout:t,maxTotalTimeout:n,resetTimeoutOnProgress:i,onTimeout:r})}_resetTimeout(e){let t=this._timeoutInfo.get(e);if(!t)return!1;let n=Date.now()-t.startTime;if(t.maxTotalTimeout&&n>=t.maxTotalTimeout)throw this._timeoutInfo.delete(e),z9.fromError(D5.RequestTimeout,`Maximum total timeout exceeded`,{maxTotalTimeout:t.maxTotalTimeout,totalElapsed:n});return clearTimeout(t.timeoutId),t.timeoutId=setTimeout(t.onTimeout,t.timeout),!0}_cleanupTimeout(e){let t=this._timeoutInfo.get(e);t&&(clearTimeout(t.timeoutId),this._timeoutInfo.delete(e))}async connect(e){if(this._transport)throw Error(`Already connected to a transport. Call close() before connecting to a new transport, or use a separate Protocol instance per connection.`);this._transport=e;let t=this.transport?.onclose;this._transport.onclose=()=>{t?.(),this._onclose()};let n=this.transport?.onerror;this._transport.onerror=e=>{n?.(e),this._onerror(e)};let r=this._transport?.onmessage;this._transport.onmessage=(e,t)=>{r?.(e,t),E5(e)||k5(e)?this._onresponse(e):S5(e)?this._onrequest(e,t):w5(e)?this._onnotification(e):this._onerror(Error(`Unknown message type: ${JSON.stringify(e)}`))},await this._transport.start()}_onclose(){let e=this._responseHandlers;this._responseHandlers=new Map,this._progressHandlers.clear(),this._taskProgressTokens.clear(),this._pendingDebouncedNotifications.clear();for(let e of this._timeoutInfo.values())clearTimeout(e.timeoutId);this._timeoutInfo.clear();for(let e of this._requestHandlerAbortControllers.values())e.abort();this._requestHandlerAbortControllers.clear();let t=z9.fromError(D5.ConnectionClosed,`Connection closed`);this._transport=void 0,this.onclose?.();for(let n of e.values())n(t)}_onerror(e){this.onerror?.(e)}_onnotification(e){let t=this._notificationHandlers.get(e.method)??this.fallbackNotificationHandler;t!==void 0&&Promise.resolve().then(()=>t(e)).catch(e=>this._onerror(Error(`Uncaught error in notification handler: ${e}`)))}_onrequest(e,t){let n=this._requestHandlers.get(e.method)??this.fallbackRequestHandler,r=this._transport,i=e.params?._meta?.[o5]?.taskId;if(n===void 0){let t={jsonrpc:`2.0`,id:e.id,error:{code:D5.MethodNotFound,message:`Method not found`}};i&&this._taskMessageQueue?this._enqueueTaskMessage(i,{type:`error`,message:t,timestamp:Date.now()},r?.sessionId).catch(e=>this._onerror(Error(`Failed to enqueue error response: ${e}`))):r?.send(t).catch(e=>this._onerror(Error(`Failed to send an error response: ${e}`)));return}let a=new AbortController;this._requestHandlerAbortControllers.set(e.id,a);let o=h5(e.params)?e.params.task:void 0,s=this._taskStore?this.requestTaskStore(e,r?.sessionId):void 0,c={signal:a.signal,sessionId:r?.sessionId,_meta:e.params?._meta,sendNotification:async t=>{if(a.signal.aborted)return;let n={relatedRequestId:e.id};i&&(n.relatedTask={taskId:i}),await this.notification(t,n)},sendRequest:async(t,n,r)=>{if(a.signal.aborted)throw new z9(D5.ConnectionClosed,`Request was cancelled`);let o={...r,relatedRequestId:e.id};i&&!o.relatedTask&&(o.relatedTask={taskId:i});let c=o.relatedTask?.taskId??i;return c&&s&&await s.updateTaskStatus(c,`input_required`),await this.request(t,n,o)},authInfo:t?.authInfo,requestId:e.id,requestInfo:t?.requestInfo,taskId:i,taskStore:s,taskRequestedTtl:o?.ttl,closeSSEStream:t?.closeSSEStream,closeStandaloneSSEStream:t?.closeStandaloneSSEStream};Promise.resolve().then(()=>{o&&this.assertTaskHandlerCapability(e.method)}).then(()=>n(e,c)).then(async t=>{if(a.signal.aborted)return;let n={result:t,jsonrpc:`2.0`,id:e.id};i&&this._taskMessageQueue?await this._enqueueTaskMessage(i,{type:`response`,message:n,timestamp:Date.now()},r?.sessionId):await r?.send(n)},async t=>{if(a.signal.aborted)return;let n={jsonrpc:`2.0`,id:e.id,error:{code:Number.isSafeInteger(t.code)?t.code:D5.InternalError,message:t.message??`Internal error`,...t.data!==void 0&&{data:t.data}}};i&&this._taskMessageQueue?await this._enqueueTaskMessage(i,{type:`error`,message:n,timestamp:Date.now()},r?.sessionId):await r?.send(n)}).catch(e=>this._onerror(Error(`Failed to send response: ${e}`))).finally(()=>{this._requestHandlerAbortControllers.get(e.id)===a&&this._requestHandlerAbortControllers.delete(e.id)})}_onprogress(e){let{progressToken:t,...n}=e.params,r=Number(t),i=this._progressHandlers.get(r);if(!i){this._onerror(Error(`Received a progress notification for an unknown token: ${JSON.stringify(e)}`));return}let a=this._responseHandlers.get(r),o=this._timeoutInfo.get(r);if(o&&a&&o.resetTimeoutOnProgress)try{this._resetTimeout(r)}catch(e){this._responseHandlers.delete(r),this._progressHandlers.delete(r),this._cleanupTimeout(r),a(e);return}i(n)}_onresponse(e){let t=Number(e.id),n=this._requestResolvers.get(t);if(n){this._requestResolvers.delete(t),E5(e)?n(e):n(new z9(e.error.code,e.error.message,e.error.data));return}let r=this._responseHandlers.get(t);if(r===void 0){this._onerror(Error(`Received a response for an unknown message ID: ${JSON.stringify(e)}`));return}this._responseHandlers.delete(t),this._cleanupTimeout(t);let i=!1;if(E5(e)&&e.result&&typeof e.result==`object`){let n=e.result;if(n.task&&typeof n.task==`object`){let e=n.task;typeof e.taskId==`string`&&(i=!0,this._taskProgressTokens.set(e.taskId,t))}}i||this._progressHandlers.delete(t),E5(e)?r(e):r(z9.fromError(e.error.code,e.error.message,e.error.data))}get transport(){return this._transport}async close(){await this._transport?.close()}async*requestStream(e,t,n){let{task:r}=n??{};if(!r){try{yield{type:`result`,result:await this.request(e,t,n)}}catch(e){yield{type:`error`,error:e instanceof z9?e:new z9(D5.InternalError,String(e))}}return}let i;try{let r=await this.request(e,t7,n);if(r.task)i=r.task.taskId,yield{type:`taskCreated`,task:r.task};else throw new z9(D5.InternalError,`Task creation did not return a task`);for(;;){let e=await this.getTask({taskId:i},n);if(yield{type:`taskStatus`,task:e},B9(e.status)){e.status===`completed`?yield{type:`result`,result:await this.getTaskResult({taskId:i},t,n)}:e.status===`failed`?yield{type:`error`,error:new z9(D5.InternalError,`Task ${i} failed`)}:e.status===`cancelled`&&(yield{type:`error`,error:new z9(D5.InternalError,`Task ${i} was cancelled`)});return}if(e.status===`input_required`){yield{type:`result`,result:await this.getTaskResult({taskId:i},t,n)};return}let r=e.pollInterval??this._options?.defaultTaskPollInterval??1e3;await new Promise(e=>setTimeout(e,r)),n?.signal?.throwIfAborted()}}catch(e){yield{type:`error`,error:e instanceof z9?e:new z9(D5.InternalError,String(e))}}}request(e,t,n){let{relatedRequestId:r,resumptionToken:i,onresumptiontoken:a,task:o,relatedTask:s}=n??{};return new Promise((c,l)=>{let u=e=>{l(e)};if(!this._transport){u(Error(`Not connected`));return}if(this._options?.enforceStrictCapabilities===!0)try{this.assertCapabilityForMethod(e.method),o&&this.assertTaskCapability(e.method)}catch(e){u(e);return}n?.signal?.throwIfAborted();let d=this._requestMessageId++,f={...e,jsonrpc:`2.0`,id:d};n?.onprogress&&(this._progressHandlers.set(d,n.onprogress),f.params={...e.params,_meta:{...e.params?._meta||{},progressToken:d}}),o&&(f.params={...f.params,task:o}),s&&(f.params={...f.params,_meta:{...f.params?._meta||{},[o5]:s}});let p=e=>{this._responseHandlers.delete(d),this._progressHandlers.delete(d),this._cleanupTimeout(d),this._transport?.send({jsonrpc:`2.0`,method:`notifications/cancelled`,params:{requestId:d,reason:String(e)}},{relatedRequestId:r,resumptionToken:i,onresumptiontoken:a}).catch(e=>this._onerror(Error(`Failed to send cancellation: ${e}`))),l(e instanceof z9?e:new z9(D5.RequestTimeout,String(e)))};this._responseHandlers.set(d,e=>{if(!n?.signal?.aborted){if(e instanceof Error)return l(e);try{let n=Q2(t,e.result);n.success?c(n.data):l(n.error)}catch(e){l(e)}}}),n?.signal?.addEventListener(`abort`,()=>{p(n?.signal?.reason)});let m=n?.timeout??6e4;this._setupTimeout(d,m,n?.maxTotalTimeout,()=>p(z9.fromError(D5.RequestTimeout,`Request timed out`,{timeout:m})),n?.resetTimeoutOnProgress??!1);let h=s?.taskId;h?(this._requestResolvers.set(d,e=>{let t=this._responseHandlers.get(d);t?t(e):this._onerror(Error(`Response handler missing for side-channeled request ${d}`))}),this._enqueueTaskMessage(h,{type:`request`,message:f,timestamp:Date.now()}).catch(e=>{this._cleanupTimeout(d),l(e)})):this._transport.send(f,{relatedRequestId:r,resumptionToken:i,onresumptiontoken:a}).catch(e=>{this._cleanupTimeout(d),l(e)})})}async getTask(e,t){return this.request({method:`tasks/get`,params:e},a7,t)}async getTaskResult(e,t,n){return this.request({method:`tasks/result`,params:e},t,n)}async listTasks(e,t){return this.request({method:`tasks/list`,params:e},c7,t)}async cancelTask(e,t){return this.request({method:`tasks/cancel`,params:e},u7,t)}async notification(e,t){if(!this._transport)throw Error(`Not connected`);this.assertNotificationCapability(e.method);let n=t?.relatedTask?.taskId;if(n){let r={...e,jsonrpc:`2.0`,params:{...e.params,_meta:{...e.params?._meta||{},[o5]:t.relatedTask}}};await this._enqueueTaskMessage(n,{type:`notification`,message:r,timestamp:Date.now()});return}if((this._options?.debouncedNotificationMethods??[]).includes(e.method)&&!e.params&&!t?.relatedRequestId&&!t?.relatedTask){if(this._pendingDebouncedNotifications.has(e.method))return;this._pendingDebouncedNotifications.add(e.method),Promise.resolve().then(()=>{if(this._pendingDebouncedNotifications.delete(e.method),!this._transport)return;let n={...e,jsonrpc:`2.0`};t?.relatedTask&&(n={...n,params:{...n.params,_meta:{...n.params?._meta||{},[o5]:t.relatedTask}}}),this._transport?.send(n,t).catch(e=>this._onerror(e))});return}let r={...e,jsonrpc:`2.0`};t?.relatedTask&&(r={...r,params:{...r.params,_meta:{...r.params?._meta||{},[o5]:t.relatedTask}}}),await this._transport.send(r,t)}setRequestHandler(e,t){let n=V9(e);this.assertRequestHandlerCapability(n),this._requestHandlers.set(n,(n,r)=>{let i=H9(e,n);return Promise.resolve(t(i,r))})}removeRequestHandler(e){this._requestHandlers.delete(e)}assertCanSetRequestHandler(e){if(this._requestHandlers.has(e))throw Error(`A request handler for ${e} already exists, which would be overridden`)}setNotificationHandler(e,t){let n=V9(e);this._notificationHandlers.set(n,n=>{let r=H9(e,n);return Promise.resolve(t(r))})}removeNotificationHandler(e){this._notificationHandlers.delete(e)}_cleanupTaskProgressHandler(e){let t=this._taskProgressTokens.get(e);t!==void 0&&(this._progressHandlers.delete(t),this._taskProgressTokens.delete(e))}async _enqueueTaskMessage(e,t,n){if(!this._taskStore||!this._taskMessageQueue)throw Error(`Cannot enqueue task message: taskStore and taskMessageQueue are not configured`);let r=this._options?.maxTaskQueueSize;await this._taskMessageQueue.enqueue(e,t,n,r)}async _clearTaskQueue(e,t){if(this._taskMessageQueue){let n=await this._taskMessageQueue.dequeueAll(e,t);for(let t of n)if(t.type===`request`&&S5(t.message)){let n=t.message.id,r=this._requestResolvers.get(n);r?(r(new z9(D5.InternalError,`Task cancelled or completed`)),this._requestResolvers.delete(n)):this._onerror(Error(`Resolver missing for request ${n} during task ${e} cleanup`))}}}async _waitForTaskUpdate(e,t){let n=this._options?.defaultTaskPollInterval??1e3;try{let t=await this._taskStore?.getTask(e);t?.pollInterval&&(n=t.pollInterval)}catch{}return new Promise((e,r)=>{if(t.aborted){r(new z9(D5.InvalidRequest,`Request cancelled`));return}let i=setTimeout(e,n);t.addEventListener(`abort`,()=>{clearTimeout(i),r(new z9(D5.InvalidRequest,`Request cancelled`))},{once:!0})})}requestTaskStore(e,t){let n=this._taskStore;if(!n)throw Error(`No task store configured`);return{createTask:async r=>{if(!e)throw Error(`No request provided`);return await n.createTask(r,e.id,{method:e.method,params:e.params},t)},getTask:async e=>{let r=await n.getTask(e,t);if(!r)throw new z9(D5.InvalidParams,`Failed to retrieve task: Task not found`);return r},storeTaskResult:async(e,r,i)=>{await n.storeTaskResult(e,r,i,t);let a=await n.getTask(e,t);if(a){let t=r7.parse({method:`notifications/tasks/status`,params:a});await this.notification(t),B9(a.status)&&this._cleanupTaskProgressHandler(e)}},getTaskResult:e=>n.getTaskResult(e,t),updateTaskStatus:async(e,r,i)=>{let a=await n.getTask(e,t);if(!a)throw new z9(D5.InvalidParams,`Task "${e}" not found - it may have been cleaned up`);if(B9(a.status))throw new z9(D5.InvalidParams,`Cannot update task "${e}" from terminal status "${a.status}" to "${r}". Terminal states (completed, failed, cancelled) cannot transition to other states.`);await n.updateTaskStatus(e,r,i,t);let o=await n.getTask(e,t);if(o){let t=r7.parse({method:`notifications/tasks/status`,params:o});await this.notification(t),B9(o.status)&&this._cleanupTaskProgressHandler(e)}},listTasks:e=>n.listTasks(e,t)}}};function U9(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function yee(e,t){let n={...e};for(let e in t){let r=e,i=t[r];if(i===void 0)continue;let a=n[r];n[r]=U9(a)&&U9(i)?{...a,...i}:i}return n}var bee=`modulepreload`,xee=function(e,t){return new URL(e,t).href},W9={},See=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=document.getElementsByTagName(`link`),i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}function s(e){return import.meta.resolve?import.meta.resolve(e):new URL(e,import.meta.url).href}r=o(t.map(t=>{if(t=xee(t,n),t=s(t),t in W9)return;W9[t]=!0;let r=t.endsWith(`.css`);for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.href===t&&(!r||i.rel===`stylesheet`))return}let i=document.createElement(`link`);if(i.rel=r?`stylesheet`:bee,r||(i.as=`script`),i.crossOrigin=``,i.href=t,a&&i.setAttribute(`nonce`,a),document.head.appendChild(i),r)return new Promise((e,n)=>{i.addEventListener(`load`,e),i.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${t}`)))})}))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})};a5(),(e=>typeof d<`u`?d:typeof Proxy<`u`?new Proxy(e,{get:(e,t)=>(typeof d<`u`?d:e)[t]}):e)(function(e){if(typeof d<`u`)return d.apply(this,arguments);throw Error(`Dynamic require of "`+e+`" is not supported`)});var Cee=class extends vee{_registeredMethods=new Set;_eventSlots=new Map;onEventDispatch(e,t){}_ensureEventSlot(e){let t=this._eventSlots.get(e);if(!t){let n=this.eventSchemas[e];if(!n)throw Error(`Unknown event: ${String(e)}`);t={listeners:[]},this._eventSlots.set(e,t);let r=n.shape.method.value;this._registeredMethods.add(r);let i=t;super.setNotificationHandler(n,t=>{let n=t.params;this.onEventDispatch(e,n),i.onHandler?.(n);for(let e of[...i.listeners])e(n)})}return t}setEventHandler(e,t){let n=this._ensureEventSlot(e);n.onHandler&&t&&console.warn(`[MCP Apps] on${String(e)} handler replaced. Use addEventListener("${String(e)}", …) to add multiple listeners without replacing.`),n.onHandler=t}getEventHandler(e){return this._eventSlots.get(e)?.onHandler}addEventListener(e,t){this._ensureEventSlot(e).listeners.push(t)}removeEventListener(e,t){let n=this._eventSlots.get(e);if(!n)return;let r=n.listeners.indexOf(t);r!==-1&&n.listeners.splice(r,1)}setRequestHandler=(e,t)=>{this._assertMethodNotRegistered(e,`setRequestHandler`),super.setRequestHandler(e,t)};setNotificationHandler=(e,t)=>{this._assertMethodNotRegistered(e,`setNotificationHandler`),super.setNotificationHandler(e,t)};warnIfRequestHandlerReplaced(e,t,n){t&&n&&console.warn(`[MCP Apps] ${e} handler replaced. Previous handler will no longer be called.`)}replaceRequestHandler=(e,t)=>{let n=e.shape.method.value;this._registeredMethods.add(n),super.setRequestHandler(e,t)};_assertMethodNotRegistered(e,t){let n=e.shape.method.value;if(this._registeredMethods.has(n))throw Error(`Handler for "${n}" already registered (via ${t}). Use addEventListener() to attach multiple listeners, or the on* setter for replace semantics.`);this._registeredMethods.add(n)}},wee=`2026-01-26`,G9=class{eventTarget;eventSource;messageListener;constructor(e=window.parent,t){this.eventTarget=e,this.eventSource=t,this.messageListener=e=>{if(t&&e.source!==this.eventSource){console.debug(`Ignoring message from unknown source`,e);return}let n=A5.safeParse(e.data);n.success?(console.debug(`Parsed message`,n.data),this.onmessage?.(n.data)):e.data?.jsonrpc===`2.0`?(console.error(`Failed to parse message`,n.error.message,e),this.onerror?.(Error(`Invalid JSON-RPC message received: `+n.error.message))):console.debug(`Ignoring non-JSON-RPC message`,n.error.message,e)}}async start(){window.addEventListener(`message`,this.messageListener)}async send(e,t){e.method!==`ui/notifications/tool-input-partial`&&console.debug(`Sending message`,e),this.eventTarget.postMessage(e,`*`)}async close(){window.removeEventListener(`message`,this.messageListener),this.onclose?.()}onclose;onerror;onmessage;sessionId;setProtocolVersion},Tee=O3([Q(`light`),Q(`dark`)]).describe(`Color theme preference for the host environment.`),K9=O3([Q(`inline`),Q(`fullscreen`),Q(`pip`)]).describe(`Display mode for UI presentation.`),Eee=N3(O3([Q(`--color-background-primary`),Q(`--color-background-secondary`),Q(`--color-background-tertiary`),Q(`--color-background-inverse`),Q(`--color-background-ghost`),Q(`--color-background-info`),Q(`--color-background-danger`),Q(`--color-background-success`),Q(`--color-background-warning`),Q(`--color-background-disabled`),Q(`--color-text-primary`),Q(`--color-text-secondary`),Q(`--color-text-tertiary`),Q(`--color-text-inverse`),Q(`--color-text-ghost`),Q(`--color-text-info`),Q(`--color-text-danger`),Q(`--color-text-success`),Q(`--color-text-warning`),Q(`--color-text-disabled`),Q(`--color-border-primary`),Q(`--color-border-secondary`),Q(`--color-border-tertiary`),Q(`--color-border-inverse`),Q(`--color-border-ghost`),Q(`--color-border-info`),Q(`--color-border-danger`),Q(`--color-border-success`),Q(`--color-border-warning`),Q(`--color-border-disabled`),Q(`--color-ring-primary`),Q(`--color-ring-secondary`),Q(`--color-ring-inverse`),Q(`--color-ring-info`),Q(`--color-ring-danger`),Q(`--color-ring-success`),Q(`--color-ring-warning`),Q(`--font-sans`),Q(`--font-mono`),Q(`--font-weight-normal`),Q(`--font-weight-medium`),Q(`--font-weight-semibold`),Q(`--font-weight-bold`),Q(`--font-text-xs-size`),Q(`--font-text-sm-size`),Q(`--font-text-md-size`),Q(`--font-text-lg-size`),Q(`--font-heading-xs-size`),Q(`--font-heading-sm-size`),Q(`--font-heading-md-size`),Q(`--font-heading-lg-size`),Q(`--font-heading-xl-size`),Q(`--font-heading-2xl-size`),Q(`--font-heading-3xl-size`),Q(`--font-text-xs-line-height`),Q(`--font-text-sm-line-height`),Q(`--font-text-md-line-height`),Q(`--font-text-lg-line-height`),Q(`--font-heading-xs-line-height`),Q(`--font-heading-sm-line-height`),Q(`--font-heading-md-line-height`),Q(`--font-heading-lg-line-height`),Q(`--font-heading-xl-line-height`),Q(`--font-heading-2xl-line-height`),Q(`--font-heading-3xl-line-height`),Q(`--border-radius-xs`),Q(`--border-radius-sm`),Q(`--border-radius-md`),Q(`--border-radius-lg`),Q(`--border-radius-xl`),Q(`--border-radius-full`),Q(`--border-width-regular`),Q(`--shadow-hairline`),Q(`--shadow-sm`),Q(`--shadow-md`),Q(`--shadow-lg`)]).describe(`CSS variable keys available to MCP apps for theming.`).describe(`Style variables for theming MCP apps. Individual style keys are optional - hosts may provide any subset of these values. Values are strings containing CSS values (colors, sizes, font stacks, etc.). Note: This type uses \`Record\` rather than \`Partial>\` -for compatibility with Zod schema generation. Both are functionally equivalent for validation.`),S3([X(),d3()]).describe(`Style variables for theming MCP apps. +for compatibility with Zod schema generation. Both are functionally equivalent for validation.`),O3([X(),_3()]).describe(`Style variables for theming MCP apps. Individual style keys are optional - hosts may provide any subset of these values. Values are strings containing CSS values (colors, sizes, font stacks, etc.). @@ -109,10 +109,10 @@ Values are strings containing CSS values (colors, sizes, font stacks, etc.). Note: This type uses \`Record\` rather than \`Partial>\` -for compatibility with Zod schema generation. Both are functionally equivalent for validation.`);Z({method:Q(`ui/open-link`),params:Z({url:X().describe(`URL to open in the host's browser`)})});var gee=Z({isError:o3().optional().describe(`True if the host failed to open the URL (e.g., due to security policy).`)}).passthrough(),_ee=Z({isError:o3().optional().describe(`True if the download failed (e.g., user cancelled or host denied).`)}).passthrough(),vee=Z({isError:o3().optional().describe(`True if the host rejected or failed to deliver the message.`)}).passthrough();Z({method:Q(`ui/notifications/sandbox-proxy-ready`),params:Z({})});var q9=Z({connectDomains:v3(X()).optional().describe(`Origins for network requests (fetch/XHR/WebSocket). +for compatibility with Zod schema generation. Both are functionally equivalent for validation.`);Z({method:Q(`ui/open-link`),params:Z({url:X().describe(`URL to open in the host's browser`)})});var Dee=Z({isError:f3().optional().describe(`True if the host failed to open the URL (e.g., due to security policy).`)}).passthrough(),Oee=Z({isError:f3().optional().describe(`True if the download failed (e.g., user cancelled or host denied).`)}).passthrough(),kee=Z({isError:f3().optional().describe(`True if the host rejected or failed to deliver the message.`)}).passthrough();Z({method:Q(`ui/notifications/sandbox-proxy-ready`),params:Z({})});var q9=Z({connectDomains:w3(X()).optional().describe(`Origins for network requests (fetch/XHR/WebSocket). - Maps to CSP \`connect-src\` directive -- Empty or omitted → no network connections (secure default)`),resourceDomains:v3(X()).optional().describe("Origins for static resources (images, scripts, stylesheets, fonts, media).\n\n- Maps to CSP `img-src`, `script-src`, `style-src`, `font-src`, `media-src` directives\n- Wildcard subdomains supported: `https://*.example.com`\n- Empty or omitted → no network resources (secure default)"),frameDomains:v3(X()).optional().describe("Origins for nested iframes.\n\n- Maps to CSP `frame-src` directive\n- Empty or omitted → no nested iframes allowed (`frame-src 'none'`)"),baseUriDomains:v3(X()).optional().describe("Allowed base URIs for the document.\n\n- Maps to CSP `base-uri` directive\n- Empty or omitted → only same origin allowed (`base-uri 'self'`)")}),J9=Z({camera:Z({}).optional().describe(`Request camera access. +- Empty or omitted → no network connections (secure default)`),resourceDomains:w3(X()).optional().describe("Origins for static resources (images, scripts, stylesheets, fonts, media).\n\n- Maps to CSP `img-src`, `script-src`, `style-src`, `font-src`, `media-src` directives\n- Wildcard subdomains supported: `https://*.example.com`\n- Empty or omitted → no network resources (secure default)"),frameDomains:w3(X()).optional().describe("Origins for nested iframes.\n\n- Maps to CSP `frame-src` directive\n- Empty or omitted → no nested iframes allowed (`frame-src 'none'`)"),baseUriDomains:w3(X()).optional().describe("Allowed base URIs for the document.\n\n- Maps to CSP `base-uri` directive\n- Empty or omitted → only same origin allowed (`base-uri 'self'`)")}),J9=Z({camera:Z({}).optional().describe(`Request camera access. Maps to Permission Policy \`camera\` feature.`),microphone:Z({}).optional().describe(`Request microphone access. @@ -120,7 +120,7 @@ Maps to Permission Policy \`geolocation\` feature.`),clipboardWrite:Z({}).optional().describe(`Request clipboard write access. -Maps to Permission Policy \`clipboard-write\` feature.`)});Z({method:Q(`ui/notifications/size-changed`),params:Z({width:e3().optional().describe(`New width in pixels.`),height:e3().optional().describe(`New height in pixels.`)})});var yee=Z({method:Q(`ui/notifications/tool-input`),params:Z({arguments:D3(X(),m3().describe(`Complete tool call arguments as key-value pairs.`)).optional().describe(`Complete tool call arguments as key-value pairs.`)})}),bee=Z({method:Q(`ui/notifications/tool-input-partial`),params:Z({arguments:D3(X(),m3().describe(`Partial tool call arguments (incomplete, may change).`)).optional().describe(`Partial tool call arguments (incomplete, may change).`)})}),xee=Z({method:Q(`ui/notifications/tool-cancelled`),params:Z({reason:X().optional().describe(`Optional reason for the cancellation (e.g., "user action", "timeout").`)})}),See=Z({fonts:X().optional()}),Cee=Z({variables:hee.optional().describe(`CSS variables for theming the app.`),css:See.optional().describe(`CSS blocks that apps can inject.`)}),wee=Z({method:Q(`ui/resource-teardown`),params:Z({})});D3(X(),m3());var Y9=Z({text:Z({}).optional().describe(`Host supports text content blocks.`),image:Z({}).optional().describe(`Host supports image content blocks.`),audio:Z({}).optional().describe(`Host supports audio content blocks.`),resource:Z({}).optional().describe(`Host supports resource content blocks.`),resourceLink:Z({}).optional().describe(`Host supports resource link content blocks.`),structuredContent:Z({}).optional().describe(`Host supports structured content.`)});Z({method:Q(`ui/notifications/request-teardown`),params:Z({}).optional()});var Tee=Z({experimental:D3(X(),D3(X(),p3()).describe(`Experimental features keyed by identifier.`)).optional().describe(`Experimental features keyed by identifier.`),openLinks:Z({}).optional().describe(`Host supports opening external URLs.`),downloadFile:Z({}).optional().describe(`Host supports file downloads via ui/download-file.`),serverTools:Z({listChanged:o3().optional().describe(`Host supports tools/list_changed notifications.`)}).optional().describe(`Host can proxy tool calls to the MCP server.`),serverResources:Z({listChanged:o3().optional().describe(`Host supports resources/list_changed notifications.`)}).optional().describe(`Host can proxy resource reads to the MCP server.`),logging:Z({}).optional().describe(`Host accepts log messages.`),sandbox:Z({permissions:J9.optional().describe(`Permissions granted by the host (camera, microphone, geolocation).`),csp:q9.optional().describe(`CSP domains approved by the host.`)}).optional().describe(`Sandbox configuration applied by the host.`),updateModelContext:Y9.optional().describe(`Host accepts context updates (ui/update-model-context) to be included in the model's context for future turns.`),message:Y9.optional().describe(`Host supports receiving content messages (ui/message) from the view.`),sampling:Z({tools:Z({}).optional().describe("Host supports tool use via `tools` and `toolChoice` parameters.")}).optional().describe("Host supports LLM sampling (sampling/createMessage) from the view.\nMirrors the MCP `ClientCapabilities.sampling` shape so hosts can pass it through.")}),Eee=Z({experimental:D3(X(),D3(X(),p3()).describe(`Experimental features keyed by identifier.`)).optional().describe(`Experimental features keyed by identifier.`),tools:Z({listChanged:o3().optional().describe(`App supports tools/list_changed notifications.`)}).optional().describe(`App exposes MCP-style tools that the host can call.`),availableDisplayModes:v3(K9).optional().describe(`Display modes the app supports.`)});Z({method:Q(`ui/notifications/initialized`),params:Z({}).optional()}),Z({csp:q9.optional().describe(`Content Security Policy configuration for UI resources.`),permissions:J9.optional().describe(`Sandbox permissions requested by the UI resource.`),domain:X().optional().describe(`Dedicated origin for view sandbox. +Maps to Permission Policy \`clipboard-write\` feature.`)});Z({method:Q(`ui/notifications/size-changed`),params:Z({width:o3().optional().describe(`New width in pixels.`),height:o3().optional().describe(`New height in pixels.`)})});var Aee=Z({method:Q(`ui/notifications/tool-input`),params:Z({arguments:N3(X(),b3().describe(`Complete tool call arguments as key-value pairs.`)).optional().describe(`Complete tool call arguments as key-value pairs.`)})}),jee=Z({method:Q(`ui/notifications/tool-input-partial`),params:Z({arguments:N3(X(),b3().describe(`Partial tool call arguments (incomplete, may change).`)).optional().describe(`Partial tool call arguments (incomplete, may change).`)})}),Mee=Z({method:Q(`ui/notifications/tool-cancelled`),params:Z({reason:X().optional().describe(`Optional reason for the cancellation (e.g., "user action", "timeout").`)})}),Nee=Z({fonts:X().optional()}),Pee=Z({variables:Eee.optional().describe(`CSS variables for theming the app.`),css:Nee.optional().describe(`CSS blocks that apps can inject.`)}),Fee=Z({method:Q(`ui/resource-teardown`),params:Z({})});N3(X(),b3());var Y9=Z({text:Z({}).optional().describe(`Host supports text content blocks.`),image:Z({}).optional().describe(`Host supports image content blocks.`),audio:Z({}).optional().describe(`Host supports audio content blocks.`),resource:Z({}).optional().describe(`Host supports resource content blocks.`),resourceLink:Z({}).optional().describe(`Host supports resource link content blocks.`),structuredContent:Z({}).optional().describe(`Host supports structured content.`)});Z({method:Q(`ui/notifications/request-teardown`),params:Z({}).optional()});var Iee=Z({experimental:N3(X(),N3(X(),y3()).describe(`Experimental features keyed by identifier.`)).optional().describe(`Experimental features keyed by identifier.`),openLinks:Z({}).optional().describe(`Host supports opening external URLs.`),downloadFile:Z({}).optional().describe(`Host supports file downloads via ui/download-file.`),serverTools:Z({listChanged:f3().optional().describe(`Host supports tools/list_changed notifications.`)}).optional().describe(`Host can proxy tool calls to the MCP server.`),serverResources:Z({listChanged:f3().optional().describe(`Host supports resources/list_changed notifications.`)}).optional().describe(`Host can proxy resource reads to the MCP server.`),logging:Z({}).optional().describe(`Host accepts log messages.`),sandbox:Z({permissions:J9.optional().describe(`Permissions granted by the host (camera, microphone, geolocation).`),csp:q9.optional().describe(`CSP domains approved by the host.`)}).optional().describe(`Sandbox configuration applied by the host.`),updateModelContext:Y9.optional().describe(`Host accepts context updates (ui/update-model-context) to be included in the model's context for future turns.`),message:Y9.optional().describe(`Host supports receiving content messages (ui/message) from the view.`),sampling:Z({tools:Z({}).optional().describe("Host supports tool use via `tools` and `toolChoice` parameters.")}).optional().describe("Host supports LLM sampling (sampling/createMessage) from the view.\nMirrors the MCP `ClientCapabilities.sampling` shape so hosts can pass it through.")}),Lee=Z({experimental:N3(X(),N3(X(),y3()).describe(`Experimental features keyed by identifier.`)).optional().describe(`Experimental features keyed by identifier.`),tools:Z({listChanged:f3().optional().describe(`App supports tools/list_changed notifications.`)}).optional().describe(`App exposes MCP-style tools that the host can call.`),availableDisplayModes:w3(K9).optional().describe(`Display modes the app supports.`)});Z({method:Q(`ui/notifications/initialized`),params:Z({}).optional()}),Z({csp:q9.optional().describe(`Content Security Policy configuration for UI resources.`),permissions:J9.optional().describe(`Sandbox permissions requested by the UI resource.`),domain:X().optional().describe(`Dedicated origin for view sandbox. Useful when views need stable, dedicated origins for OAuth callbacks, CORS policies, or API key allowlists. @@ -128,17 +128,17 @@ - Hash-based subdomains (e.g., \`{hash}.claudemcpcontent.com\`) - URL-derived subdomains (e.g., \`www-example-com.oaiusercontent.com\`) -If omitted, host uses default sandbox origin (typically per-conversation).`),prefersBorder:o3().optional().describe(`Visual boundary preference - true if view prefers a visible border. +If omitted, host uses default sandbox origin (typically per-conversation).`),prefersBorder:f3().optional().describe(`Visual boundary preference - true if view prefers a visible border. Boolean requesting whether a visible border and background is provided by the host. Specifying an explicit value for this is recommended because hosts' defaults may vary. - \`true\`: request visible border + background - \`false\`: request no visible border + background -- omitted: host decides border`)}),Z({method:Q(`ui/request-display-mode`),params:Z({mode:K9.describe(`The display mode being requested.`)})});var Dee=Z({mode:K9.describe(`The display mode that was actually set. May differ from requested if not supported.`)}).passthrough(),Oee=S3([Q(`model`),Q(`app`)]).describe(`Tool visibility scope - who can access the tool.`);Z({resourceUri:X().optional(),visibility:v3(Oee).optional().describe(`Who can access this tool. Default: ["model", "app"] +- omitted: host decides border`)}),Z({method:Q(`ui/request-display-mode`),params:Z({mode:K9.describe(`The display mode being requested.`)})});var Ree=Z({mode:K9.describe(`The display mode that was actually set. May differ from requested if not supported.`)}).passthrough(),zee=O3([Q(`model`),Q(`app`)]).describe(`Tool visibility scope - who can access the tool.`);Z({resourceUri:X().optional(),visibility:w3(zee).optional().describe(`Who can access this tool. Default: ["model", "app"] - "model": Tool visible to and callable by the agent -- "app": Tool callable by the app from this server only`),csp:h3().optional(),permissions:h3().optional()}),Z({mimeTypes:v3(X()).optional().describe('Array of supported MIME types for UI resources.\nMust include `"text/html;profile=mcp-app"` for MCP Apps support.')}),Z({method:Q(`ui/download-file`),params:Z({contents:v3(S3([R7,z7])).describe(`Resource contents to download — embedded (inline data) or linked (host fetches). Uses standard MCP resource types.`)})}),Z({method:Q(`ui/message`),params:Z({role:Q(`user`).describe(`Message role, currently only "user" is supported.`),content:v3(B7).describe(`Message content blocks (text, image, etc.).`)})}),Z({method:Q(`ui/notifications/sandbox-resource-ready`),params:Z({html:X().describe(`HTML content to load into the inner iframe.`),sandbox:X().optional().describe(`Optional override for the inner iframe's sandbox attribute.`),csp:q9.optional().describe(`CSP configuration from resource metadata.`),permissions:J9.optional().describe(`Sandbox permissions from resource metadata.`)})});var kee=Z({method:Q(`ui/notifications/tool-result`),params:Y7.describe(`Standard MCP tool execution result.`)}),X9=Z({toolInfo:Z({id:m5.optional().describe(`JSON-RPC id of the tools/call request.`),tool:K7.describe(`Tool definition including name, inputSchema, etc.`)}).optional().describe(`Metadata of the tool call that instantiated this App.`),theme:mee.optional().describe(`Current color theme preference.`),styles:Cee.optional().describe(`Style configuration for theming the app.`),displayMode:K9.optional().describe(`How the UI is currently displayed.`),availableDisplayModes:v3(K9).optional().describe(`Display modes the host supports.`),containerDimensions:S3([Z({height:e3().describe(`Fixed container height in pixels.`)}),Z({maxHeight:S3([e3(),d3()]).optional().describe(`Maximum container height in pixels.`)})]).and(S3([Z({width:e3().describe(`Fixed container width in pixels.`)}),Z({maxWidth:S3([e3(),d3()]).optional().describe(`Maximum container width in pixels.`)})])).optional().describe(`Container dimensions. Represents the dimensions of the iframe or other -container holding the app. Specify either width or maxWidth, and either height or maxHeight.`),locale:X().optional().describe(`User's language and region preference in BCP 47 format.`),timeZone:X().optional().describe(`User's timezone in IANA format.`),userAgent:X().optional().describe(`Host application identifier.`),platform:S3([Q(`web`),Q(`desktop`),Q(`mobile`)]).optional().describe(`Platform type for responsive design decisions.`),deviceCapabilities:Z({touch:o3().optional().describe(`Whether the device supports touch input.`),hover:o3().optional().describe(`Whether the device supports hover interactions.`)}).optional().describe(`Device input capabilities.`),safeAreaInsets:Z({top:e3().describe(`Top safe area inset in pixels.`),right:e3().describe(`Right safe area inset in pixels.`),bottom:e3().describe(`Bottom safe area inset in pixels.`),left:e3().describe(`Left safe area inset in pixels.`)}).optional().describe(`Mobile safe area boundaries in pixels.`)}).passthrough(),Aee=Z({method:Q(`ui/notifications/host-context-changed`),params:X9.describe(`Partial context update containing only changed fields.`)});Z({method:Q(`ui/update-model-context`),params:Z({content:v3(B7).optional().describe(`Context content blocks (text, image, etc.).`),structuredContent:D3(X(),m3().describe(`Structured content for machine-readable context data.`)).optional().describe(`Structured content for machine-readable context data.`)})}),Z({method:Q(`ui/initialize`),params:Z({appInfo:A5.describe(`App identification (name and version).`),appCapabilities:Eee.describe(`Features and capabilities this app provides.`),protocolVersion:X().describe(`Protocol version this app supports.`)})});var jee=Z({protocolVersion:X().describe(`Negotiated protocol version string (e.g., "2025-11-21").`),hostInfo:A5.describe(`Host application identification and version.`),hostCapabilities:Tee.describe(`Features and capabilities provided by the host.`),hostContext:X9.describe(`Rich context about the host environment.`)}).passthrough(),Mee={target:`draft-2020-12`};async function Z9(e,t){let n=e[`~standard`];if(n.jsonSchema)return n.jsonSchema[t](Mee);if(n.vendor===`zod`){let{z:n}=await dee(async()=>{let{z:e}=await Promise.resolve().then(()=>($8(),Z8));return{z:e}},void 0,import.meta.url);return n.toJSONSchema(e,{io:t})}throw Error(`Schema (vendor: ${n.vendor}) does not implement Standard JSON Schema (~standard.jsonSchema). Use a library that does (zod v4, ArkType, Valibot) or wrap your schema accordingly.`)}async function Q9(e,t,n=``){let r=await e[`~standard`].validate(t);if(r.issues){let e=r.issues.map(e=>{let t=e.path?.map(e=>typeof e==`object`?e.key:e).join(`.`);return t?`${t}: ${e.message}`:e.message}).join(`; `);throw Error(n+e)}return r.value}var Nee=class e extends fee{_appInfo;_capabilities;options;_hostCapabilities;_hostInfo;_hostContext;_registeredTools={};_initializedSent=!1;_assertInitialized(e){if(this._initializedSent)return;let t=`[ext-apps] App.${e}() called before connect() completed the ui/initialize handshake. Await app.connect() before calling this method, or move data loading to an ontoolresult handler.`;if(this.options?.strict)throw Error(t);console.warn(`${t}. This will throw in a future release.`)}eventSchemas={toolinput:yee,toolinputpartial:bee,toolresult:kee,toolcancelled:xee,hostcontextchanged:Aee};static ONE_SHOT_EVENTS=new Set([`toolinput`,`toolinputpartial`,`toolresult`,`toolcancelled`]);_everHadListener=new Set;_assertHandlerTiming(t){if(!e.ONE_SHOT_EVENTS.has(t)||this._everHadListener.has(t)||(this._everHadListener.add(t),!this._initializedSent))return;let n=`[ext-apps] "${String(t)}" handler registered after connect() completed the ui/initialize handshake. The host may have already sent this notification. Register handlers before calling app.connect().`;if(this.options?.strict)throw Error(n);console.warn(n)}setEventHandler(e,t){t&&this._assertHandlerTiming(e),super.setEventHandler(e,t)}addEventListener(e,t){this._assertHandlerTiming(e),super.addEventListener(e,t)}onEventDispatch(e,t){e===`hostcontextchanged`&&(this._hostContext={...this._hostContext,...t})}constructor(e,t={},n={autoResize:!0}){super(n),this._appInfo=e,this._capabilities=t,this.options=n,n.allowUnsafeEval||ZW({jitless:!0}),this.setRequestHandler(B5,e=>(console.log(`Received ping:`,e.params),{})),this.setEventHandler(`hostcontextchanged`,void 0)}registerCapabilities(e){if(this.transport)throw Error(`Cannot register capabilities after transport is established`);this._capabilities=V9(this._capabilities,e)}registerTool(e,t,n){if(this._registeredTools[e])throw Error(`Tool ${e} is already registered`);let r=this,i=()=>{r._initializedSent&&r._capabilities.tools?.listChanged&&r.sendToolListChanged()},a=t.inputSchema!==void 0,o={title:t.title,description:t.description,inputSchema:t.inputSchema,outputSchema:t.outputSchema,annotations:t.annotations,_meta:t._meta,enabled:!0,enable(){this.enabled=!0,i()},disable(){this.enabled=!1,i()},update(e){Object.assign(this,e),i()},remove(){r._registeredTools[e]===o&&(delete r._registeredTools[e],i())},handler:async(t,r)=>{if(!o.enabled)throw Error(`Tool ${e} is disabled`);let i;if(a){let a=o.inputSchema;i=await n(a?await Q9(a,t??{},`Invalid input for tool ${e}: `):t??{},r)}else i=await n(r);return o.outputSchema&&!i.isError&&(i.structuredContent=await Q9(o.outputSchema,i.structuredContent,`Invalid output for tool ${e}: `)),i}};return this._registeredTools[e]=o,!this._capabilities.tools&&!this.transport&&this.registerCapabilities({tools:{listChanged:!0}}),this.ensureToolHandlersInitialized(),i(),o}_toolHandlersInitialized=!1;ensureToolHandlersInitialized(){this._toolHandlersInitialized||(this._toolHandlersInitialized=!0,this.oncalltool=async(e,t)=>{let n=this._registeredTools[e.name];if(!n)throw Error(`Tool ${e.name} not found`);return n.handler(e.arguments,t)},this.onlisttools=async(e,t)=>({tools:await Promise.all(Object.entries(this._registeredTools).filter(([e,t])=>t.enabled).map(async([e,t])=>{let n={name:e,title:t.title,description:t.description,inputSchema:t.inputSchema?await Z9(t.inputSchema,`input`):{type:`object`,properties:{}}};return t.outputSchema&&(n.outputSchema=await Z9(t.outputSchema,`output`)),t.annotations&&(n.annotations=t.annotations),t._meta&&(n._meta=t._meta),n}))}))}async sendToolListChanged(e={}){this._assertInitialized(`sendToolListChanged`),await this.notification({method:`notifications/tools/list_changed`,params:e})}getHostCapabilities(){return this._hostCapabilities}getHostVersion(){return this._hostInfo}getHostContext(){return this._hostContext}get ontoolinput(){return this.getEventHandler(`toolinput`)}set ontoolinput(e){this.setEventHandler(`toolinput`,e)}get ontoolinputpartial(){return this.getEventHandler(`toolinputpartial`)}set ontoolinputpartial(e){this.setEventHandler(`toolinputpartial`,e)}get ontoolresult(){return this.getEventHandler(`toolresult`)}set ontoolresult(e){this.setEventHandler(`toolresult`,e)}get ontoolcancelled(){return this.getEventHandler(`toolcancelled`)}set ontoolcancelled(e){this.setEventHandler(`toolcancelled`,e)}get onhostcontextchanged(){return this.getEventHandler(`hostcontextchanged`)}set onhostcontextchanged(e){this.setEventHandler(`hostcontextchanged`,e)}_onteardown;get onteardown(){return this._onteardown}set onteardown(e){this.warnIfRequestHandlerReplaced(`onteardown`,this._onteardown,e),this._onteardown=e,this.replaceRequestHandler(wee,(e,t)=>{if(!this._onteardown)throw Error(`No onteardown handler set`);return this._onteardown(e.params,t)})}_oncalltool;get oncalltool(){return this._oncalltool}set oncalltool(e){this.warnIfRequestHandlerReplaced(`oncalltool`,this._oncalltool,e),this._oncalltool=e,this.replaceRequestHandler(Z7,(e,t)=>{if(!this._oncalltool)throw Error(`No oncalltool handler set`);return this._oncalltool(e.params,t)})}_onlisttools;get onlisttools(){return this._onlisttools}set onlisttools(e){this.warnIfRequestHandlerReplaced(`onlisttools`,this._onlisttools,e),this._onlisttools=e,this.replaceRequestHandler(q7,(e,t)=>{if(!this._onlisttools)throw Error(`No onlisttools handler set`);return this._onlisttools(e.params,t)})}assertCapabilityForMethod(e){if(e===`sampling/createMessage`&&!this._hostCapabilities?.sampling)throw Error(`Host does not support sampling (required for ${e})`)}assertRequestHandlerCapability(e){switch(e){case`tools/call`:case`tools/list`:if(!this._capabilities.tools)throw Error(`Client does not support tool capability (required for ${e})`);return;case`ping`:case`ui/resource-teardown`:return;default:throw Error(`No handler for method ${e} registered`)}}assertNotificationCapability(e){}assertTaskCapability(e){throw Error(`Tasks are not supported in MCP Apps`)}assertTaskHandlerCapability(e){throw Error(`Task handlers are not supported in MCP Apps`)}async callServerTool(e,t){if(this._assertInitialized(`callServerTool`),typeof e==`string`)throw Error(`callServerTool() expects an object as its first argument, but received a string ("${e}"). Did you mean: callServerTool({ name: "${e}", arguments: { ... } })?`);return await this.request({method:`tools/call`,params:e},Y7,{onprogress:()=>{},resetTimeoutOnProgress:!0,...t})}async readServerResource(e,t){return this._assertInitialized(`readServerResource`),await this.request({method:`resources/read`,params:e},b7,t)}async listServerResources(e,t){return this._assertInitialized(`listServerResources`),await this.request({method:`resources/list`,params:e},m7,t)}async createSamplingMessage(e,t){this._assertInitialized(`createSamplingMessage`);let n=e.tools?p9:f9;return await this.request({method:`sampling/createMessage`,params:e},n,t)}sendMessage(e,t){return this._assertInitialized(`sendMessage`),this.request({method:`ui/message`,params:e},vee,t)}sendLog(e){return this.notification({method:`notifications/message`,params:e})}updateModelContext(e,t){return this._assertInitialized(`updateModelContext`),this.request({method:`ui/update-model-context`,params:e},T5,t)}openLink(e,t){return this._assertInitialized(`openLink`),this.request({method:`ui/open-link`,params:e},gee,t)}sendOpenLink=this.openLink;downloadFile(e,t){return this._assertInitialized(`downloadFile`),this.request({method:`ui/download-file`,params:e},_ee,t)}requestTeardown(e={}){return this.notification({method:`ui/notifications/request-teardown`,params:e})}requestDisplayMode(e,t){return this._assertInitialized(`requestDisplayMode`),this.request({method:`ui/request-display-mode`,params:e},Dee,t)}sendSizeChanged(e){return this.notification({method:`ui/notifications/size-changed`,params:e})}setupSizeChangedNotifications(){let e=!1,t=0,n=0,r=()=>{e||(e=!0,requestAnimationFrame(()=>{e=!1;let r=document.documentElement,i=r.style.height;r.style.height=`max-content`;let a=Math.ceil(r.getBoundingClientRect().height);r.style.height=i;let o=Math.ceil(window.innerWidth);(o!==t||a!==n)&&(t=o,n=a,this.sendSizeChanged({width:o,height:a}))}))};r();let i=new ResizeObserver(r);return i.observe(document.documentElement),i.observe(document.body),()=>i.disconnect()}async connect(e=new G9(window.parent,window.parent),t){if(this.transport)throw Error(`App is already connected. Call close() before connecting again.`);this._initializedSent=!1,await super.connect(e);try{let e=await this.request({method:`ui/initialize`,params:{appCapabilities:this._capabilities,appInfo:this._appInfo,protocolVersion:pee}},jee,t);if(e===void 0)throw Error(`Server sent invalid initialize result: ${e}`);this._hostCapabilities=e.hostCapabilities,this._hostInfo=e.hostInfo,this._hostContext=e.hostContext,await this.notification({method:`ui/notifications/initialized`}),this._initializedSent=!0,this.options?.autoResize&&this.setupSizeChangedNotifications()}catch(e){throw this.close(),e}}};function Pee({appInfo:e,capabilities:t,onAppCreated:n,autoResize:r=!0,strict:i}){let[a,o]=(0,G.useState)(null),[s,c]=(0,G.useState)(!1),[l,u]=(0,G.useState)(null);return(0,G.useEffect)(()=>{let a=!0,s;async function l(){try{let l=new G9(window.parent,window.parent);if(s=new Nee(e,t,{autoResize:r,strict:i}),n?.(s),await s.connect(l),!a){s.close();return}o(s),c(!0),u(null)}catch(e){a&&(o(null),c(!1),u(e instanceof Error?e:Error(`Failed to connect`)))}}return l(),()=>{a=!1,s?.close()}},[]),{app:a,isConnected:s,error:l}}function Fee(e){let[t,n]=(0,G.useState)(null),[r,i]=(0,G.useState)({}),[a,o]=(0,G.useState)(),[s,c]=(0,G.useState)(null);function l(e){if(e.isError){c(`This view could not be refreshed. Please try again.`);return}c(null),n(e.structuredContent)}let u=Pee({appInfo:{name:e,version:`1.0.0`},capabilities:{},onAppCreated:e=>{e.ontoolinput=e=>{i(e.arguments??{})},e.ontoolresult=l,e.onhostcontextchanged=e=>o(t=>({...t,...e})),e.onerror=e=>{console.error(`MCP app error`,e),c(`This view could not be refreshed. Please try again.`)}}});(0,G.useEffect)(()=>{u.app&&o(u.app.getHostContext())},[u.app]);async function d(e){if(u.app)try{l(await u.app.callServerTool({name:e,arguments:r}))}catch(t){console.error(`Tool call ${e} failed`,t),c(`This view could not be refreshed. Please try again.`)}}return{...u,result:t,toolInput:r,host:a,toolError:s,callTool:d}}async function Iee(e,t){e&&await e.sendMessage({role:`user`,content:[{type:`text`,text:t}]})}bO([PM,gN,CN]);function Lee(){let{app:e,callTool:t,error:n,host:r,result:i,toolError:a}=Fee(`Fanout service topology`),[o,s]=(0,G.useState)(null),[c,l]=(0,G.useState)(`graph`),u=r?.theme===`dark`;return(0,K.jsxs)(aB,{dark:u,children:[(0,K.jsx)(oB,{eyebrow:`Service map`,title:`Dependencies`,summary:i?`${i.data.nodes.length} services connected by ${i.data.edges.length} routes`:void 0,onRefresh:()=>t(`service_topology`),disabled:!e}),(0,K.jsx)(sB,{error:a??(n?`This view could not be loaded. Please try again.`:null),loading:!i&&!n&&!a?`Loading service relationships…`:void 0}),i&&i.data.nodes.length===0&&(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(lB,{tall:!0,icon:(0,K.jsx)($z,{size:20,weight:`duotone`}),title:`No service relationships yet`,children:`Connections will appear as services communicate.`}),(0,K.jsx)(uB,{left:XW(i.provenance.window),right:`No routes found`})]}),i&&i.data.nodes.length>0&&(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(cB,{active:c,onChange:l,items:[{id:`graph`,label:`Graph`},{id:`flow`,label:`Traffic flow`},{id:`matrix`,label:`Matrix`}]}),(0,K.jsx)(Ree,{data:i.data,view:c,selected:o,dark:u,onSelect:s,onInvestigate:t=>Iee(e,`Investigate dependencies and failures around ${t}.`)}),(0,K.jsx)(uB,{left:XW(i.provenance.window),right:`${i.data.nodes.length} services · ${i.data.edges.length} routes`})]})]})}function Ree({data:e,view:t,selected:n,dark:r,onSelect:i,onInvestigate:a}){let o=n?e.edges.filter(e=>e.caller===n||e.callee===n):e.edges;return(0,K.jsxs)(ez,{px:{base:`md`,sm:`lg`},pb:`md`,children:[(0,K.jsxs)(ML,{withBorder:!0,radius:`md`,p:`xs`,pos:`relative`,children:[t===`graph`&&(0,K.jsx)(zee,{data:e,selected:n,dark:r,onSelect:i}),t===`flow`&&(0,K.jsx)(Bee,{data:e,dark:r,onSelect:i}),t===`matrix`&&(0,K.jsx)(Vee,{data:e,dark:r}),n&&(0,K.jsxs)(SR,{pos:`absolute`,top:`sm`,right:`sm`,size:`xs`,variant:`default`,leftSection:(0,K.jsx)(Zz,{size:14,weight:`bold`}),onClick:()=>a(n),children:[`Investigate `,n]})]}),(0,K.jsx)(Hee,{edges:o,onSelect:i})]})}function zee({data:e,selected:t,dark:n,onSelect:r}){let i=(0,G.useMemo)(()=>{let r=pB(n);return{tooltip:{backgroundColor:r.surface,borderColor:r.border,textStyle:{color:r.text,fontSize:10}},series:[{type:`graph`,layout:`force`,roam:!0,draggable:!0,force:{repulsion:220,edgeLength:[80,150],gravity:.08},label:{show:!0,position:`bottom`,color:r.text,fontSize:10},edgeSymbol:[`none`,`arrow`],edgeSymbolSize:6,data:e.nodes.map(e=>({id:e.service,name:e.service,value:e.spans,symbolSize:Math.min(46,24+Math.log10(Math.max(e.spans,1))*5),itemStyle:{color:r.surface,borderColor:$9(e.health),borderWidth:t===e.service?5:3,opacity:t&&t!==e.service?.45:1}})),links:e.edges.map(e=>({source:e.caller,target:e.callee,value:e.calls,lineStyle:{width:Math.min(5,1+Math.log10(Math.max(e.calls,1))),color:e.error_rate>=.05?`#fa5252`:r.muted,opacity:t&&e.caller!==t&&e.callee!==t?.1:.42,curveness:.08}})),emphasis:{focus:`adjacency`,lineStyle:{opacity:.85}}}]}},[n,e,t]);return(0,K.jsx)(KW,{option:i,height:350,label:`Interactive service dependency graph`,onClick:e=>{let t=e;t.dataType===`node`&&t.data?.id&&r(t.data.id)}})}function Bee({data:e,dark:t,onSelect:n}){let r=(0,G.useMemo)(()=>Uee(e.edges),[e.edges]),i=(0,G.useMemo)(()=>{let n=pB(t);return{tooltip:{trigger:`item`,backgroundColor:n.surface,borderColor:n.border,textStyle:{color:n.text,fontSize:10}},series:[{type:`sankey`,left:20,right:30,top:20,bottom:20,nodeWidth:14,nodeGap:12,draggable:!0,emphasis:{focus:`adjacency`},label:{color:n.text,fontSize:10},lineStyle:{color:`gradient`,opacity:.28,curveness:.55},data:e.nodes.map(e=>({name:e.service,itemStyle:{color:$9(e.health),borderColor:n.surface,borderWidth:2}})),links:r.map(e=>({source:e.caller,target:e.callee,value:Math.max(e.calls,1)}))}]}},[t,e.nodes,r]);return r.length===0?(0,K.jsx)(lB,{tall:!0,icon:(0,K.jsx)(Yz,{size:20,weight:`duotone`}),title:`No traffic routes observed`,children:`Services are visible, but this window contains no direct service-to-service calls.`}):(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(KW,{option:i,height:350,label:`Primary service traffic flow`,onClick:e=>{let t=e;t.dataType===`node`&&t.name&&n(t.name)}}),(0,K.jsxs)(uR,{c:`dimmed`,size:`xs`,ta:`center`,children:[`Showing `,r.length,` primary routes from `,e.edges.length,` observed connections`]})]})}function Vee({data:e,dark:t}){let n=e.nodes.map(e=>e.service),r=Math.max(...e.edges.map(e=>e.error_rate),.01),i=(0,G.useMemo)(()=>{let i=pB(t);return{grid:{left:100,right:25,top:15,bottom:80},tooltip:{backgroundColor:i.surface,borderColor:i.border,textStyle:{color:i.text,fontSize:10},formatter:e=>`${n[e.data[1]]} → ${n[e.data[0]]}
${qW.format(e.data[3])} calls · ${YW(e.data[4])}
${JW(e.data[2])} errors`},xAxis:{type:`category`,data:n,splitArea:{show:!0},axisLabel:{color:i.muted,rotate:35,fontSize:9},axisLine:{lineStyle:{color:i.border}}},yAxis:{type:`category`,data:n,splitArea:{show:!0},axisLabel:{color:i.text,fontSize:9},axisLine:{lineStyle:{color:i.border}}},visualMap:{min:0,max:r,calculable:!0,orient:`horizontal`,left:`center`,bottom:8,textStyle:{color:i.muted,fontSize:8},inRange:{color:[t?`#18211d`:`#e6fcf5`,`#fab005`,`#fa5252`]}},series:[{type:`heatmap`,data:e.edges.map(e=>[n.indexOf(e.callee),n.indexOf(e.caller),e.error_rate,e.calls,e.average_ms])}]}},[t,e,r,n]);return(0,K.jsx)(KW,{option:i,height:380,label:`Service dependency error matrix`})}function Hee({edges:e,onSelect:t}){let n=dB(e,4);return e.length===0?null:(0,K.jsxs)(ML,{withBorder:!0,radius:`md`,style:{overflow:`hidden`},children:[(0,K.jsx)(yz.ScrollContainer,{minWidth:520,children:(0,K.jsxs)(yz,{striped:!0,highlightOnHover:!0,verticalSpacing:`sm`,children:[(0,K.jsx)(yz.Thead,{children:(0,K.jsxs)(yz.Tr,{children:[(0,K.jsx)(yz.Th,{children:`Route`}),(0,K.jsx)(yz.Th,{children:`Calls`}),(0,K.jsx)(yz.Th,{children:`Latency`}),(0,K.jsx)(yz.Th,{children:`Errors`})]})}),(0,K.jsx)(yz.Tbody,{children:n.pageItems.map(e=>(0,K.jsxs)(yz.Tr,{tabIndex:0,onClick:()=>t(e.caller),onKeyDown:n=>{(n.key===`Enter`||n.key===` `)&&t(e.caller)},style:{cursor:`pointer`},children:[(0,K.jsx)(yz.Td,{children:(0,K.jsxs)(uR,{fw:600,size:`sm`,children:[e.caller,` → `,e.callee]})}),(0,K.jsx)(yz.Td,{children:qW.format(e.calls)}),(0,K.jsx)(yz.Td,{children:YW(e.average_ms)}),(0,K.jsx)(yz.Td,{children:JW(e.error_rate)})]},`${e.caller}-${e.callee}-${e.type}`))})]})}),(0,K.jsx)(fB,{...n,onChange:n.setPage})]})}function $9(e){return e===`unhealthy`?`#fa5252`:e===`degraded`?`#fab005`:`#12b886`}function Uee(e){let t=[],n=new Map,r=(e,t,i=new Set)=>{if(e===t)return!0;if(i.has(e))return!1;i.add(e);for(let a of n.get(e)??[])if(r(a,t,i))return!0;return!1};for(let i of[...e].sort((e,t)=>t.calls-e.calls||e.caller.localeCompare(t.caller)||e.callee.localeCompare(t.callee))){if(i.caller===i.callee||r(i.callee,i.caller))continue;let e=n.get(i.caller)??new Set;e.add(i.callee),n.set(i.caller,e),t.push(i)}return t}(0,rB.createRoot)(document.getElementById(`root`)).render((0,K.jsx)(G.StrictMode,{children:(0,K.jsx)(Lee,{})})); -
diff --git a/internal/mcp/apps/trace.html b/internal/mcp/apps/trace.html index a7aba63c..92743e09 100644 --- a/internal/mcp/apps/trace.html +++ b/internal/mcp/apps/trace.html @@ -1,15 +1,15 @@ -Fanout trace detail -
diff --git a/internal/ui/dist/assets/auth-yGyQH6NZ.js b/internal/ui/dist/assets/auth-C4PUlevI.js similarity index 90% rename from internal/ui/dist/assets/auth-yGyQH6NZ.js rename to internal/ui/dist/assets/auth-C4PUlevI.js index 995c703c..4731c8e2 100644 --- a/internal/ui/dist/assets/auth-yGyQH6NZ.js +++ b/internal/ui/dist/assets/auth-C4PUlevI.js @@ -1 +1 @@ -import{_ as e,a as t,d as n,f as r,n as i}from"./useNavigate-DyHkI5qo.js";var a=r((e=>{var t=n();function r(e){var t=`https://react.dev/errors/`+e;if(1{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=a()})),s=e(n(),1),c=t();function l(e){return Object.keys(e)}function u(e){return e&&typeof e==`object`&&!Array.isArray(e)}function d(e,t){let n={...e},r=t;return u(e)&&u(t)&&Object.keys(t).forEach(t=>{u(r[t])&&t in e?n[t]=d(n[t],r[t]):n[t]=r[t]}),n}function f(e){return e.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)}function p(e){return e===`0rem`?`0rem`:`calc(${e} * var(--mantine-scale))`}function m(e,{shouldScale:t=!1}={}){function n(r){if(r===0||r===`0`)return`0${e}`;if(typeof r==`number`){let n=`${r/16}${e}`;return t?p(n):n}if(typeof r==`string`){if(r===``||r.startsWith(`calc(`)||r.startsWith(`clamp(`)||r.includes(`rgba(`))return r;if(r.includes(`,`))return r.split(`,`).map(e=>n(e)).join(`,`);if(r.includes(` `))return r.split(` `).map(e=>n(e)).join(` `);let i=r.replace(`px`,``);if(!Number.isNaN(Number(i))){let n=`${Number(i)/16}${e}`;return t?p(n):n}}return r}return n}var h=m(`rem`,{shouldScale:!0}),g=m(`em`);function _(e){return Object.keys(e).reduce((t,n)=>(e[n]!==void 0&&(t[n]=e[n]),t),{})}function v(e){if(typeof e==`number`)return!0;if(typeof e==`string`){if(e.startsWith(`calc(`)||e.startsWith(`var(`)||e.includes(` `)&&e.trim()!==``)return!0;let t=/^[+-]?[0-9]+(\.[0-9]+)?(px|em|rem|ex|ch|lh|rlh|vw|vh|vmin|vmax|vb|vi|svw|svh|lvw|lvh|dvw|dvh|cm|mm|in|pt|pc|q|cqw|cqh|cqi|cqb|cqmin|cqmax|%)?$/;return e.trim().split(/\s+/).every(e=>t.test(e))}return!1}function y(e,t=`size`,n=!0){if(e!==void 0)return v(e)?n?h(e):e:`var(--${t}-${e})`}function b(e){return y(e,`mantine-spacing`)}function x(e){return e===void 0?`var(--mantine-radius-default)`:y(e,`mantine-radius`)}function S(e){return y(e,`mantine-font-size`)}function C(e){return y(e,`mantine-line-height`,!1)}function w(e){if(e)return y(e,`mantine-shadow`,!1)}function T(e=`mantine-`){return`${e}${Math.random().toString(36).slice(2,11)}`}function E(e,t){return typeof t==`boolean`?t:typeof window<`u`&&`matchMedia`in window&&window.matchMedia(e).matches}function D(e,t,{getInitialValueInEffect:n}={getInitialValueInEffect:!0}){let[r,i]=(0,s.useState)(n?t:E(e));return(0,s.useEffect)(()=>{try{if(`matchMedia`in window){let t=window.matchMedia(e);i(t.matches);let n=e=>i(e.matches);return t.addEventListener(`change`,n),()=>{t.removeEventListener(`change`,n)}}}catch{return}},[e]),r||!1}var O=typeof document<`u`?s.useLayoutEffect:s.useEffect;function k(e,t){let n=(0,s.useRef)(!1);(0,s.useEffect)(()=>()=>{n.current=!1},[]),(0,s.useEffect)(()=>{if(n.current)return e();n.current=!0},t)}function ee(e){let[t,n]=(0,s.useState)(`mantine-${(0,s.useId)().replace(/:/g,``)}`),r=(0,s.useRef)(!1);return O(()=>{r.current||(r.current=!0,n(T()))},[]),typeof e==`string`?e:t}function te(e,t){return D(`(prefers-reduced-motion: reduce)`,e,t)}function A(e){return e}function j(e){var t,n,r=``;if(typeof e==`string`||typeof e==`number`)r+=e;else if(typeof e==`object`)if(Array.isArray(e)){var i=e.length;for(t=0;t{Object.entries(e).forEach(([e,n])=>{t[e]?t[e]=M(t[e],n):t[e]=n})}),t}function P({theme:e,classNames:t,props:n,stylesCtx:r}){return ne((Array.isArray(t)?t:[t]).map(t=>typeof t==`function`?t(e,n,r):t||N))}function F({theme:e,styles:t,props:n,stylesCtx:r}){let i=Array.isArray(t)?t:[t],a={};for(let t of i)typeof t==`function`?Object.assign(a,t(e,n,r)):t&&Object.assign(a,t);return a}function re(e,t){return typeof e.primaryShade==`number`?e.primaryShade:t===`dark`?e.primaryShade.dark:e.primaryShade.light}function ie(e){return/^#?([0-9A-F]{3}){1,2}([0-9A-F]{2})?$/i.test(e)}function I(e){let t=e.replace(`#`,``);if(t.length===3){let e=t.split(``);t=[e[0],e[0],e[1],e[1],e[2],e[2]].join(``)}if(t.length===8){let e=parseInt(t.slice(6,8),16)/255;return{r:parseInt(t.slice(0,2),16),g:parseInt(t.slice(2,4),16),b:parseInt(t.slice(4,6),16),a:e}}let n=parseInt(t,16);return{r:n>>16&255,g:n>>8&255,b:n&255,a:1}}function L(e){let[t,n,r,i]=e.replace(/[^0-9,./]/g,``).split(/[/,]/).map(Number);return{r:t,g:n,b:r,a:i===void 0?1:i}}function ae(e){let t=e.match(/^hsla?\(\s*(\d+)\s*,\s*(\d+%)\s*,\s*(\d+%)\s*(,\s*(0?\.\d+|\d+(\.\d+)?))?\s*\)$/i);if(!t)return{r:0,g:0,b:0,a:1};let n=parseInt(t[1],10),r=parseInt(t[2],10)/100,i=parseInt(t[3],10)/100,a=t[5]?parseFloat(t[5]):void 0,o=(1-Math.abs(2*i-1))*r,s=n/60,c=o*(1-Math.abs(s%2-1)),l=i-o/2,u,d,f;return s>=0&&s<1?(u=o,d=c,f=0):s>=1&&s<2?(u=c,d=o,f=0):s>=2&&s<3?(u=0,d=o,f=c):s>=3&&s<4?(u=0,d=c,f=o):s>=4&&s<5?(u=c,d=0,f=o):(u=o,d=0,f=c),{r:Math.round((u+l)*255),g:Math.round((d+l)*255),b:Math.round((f+l)*255),a:a||1}}function oe(e){return ie(e)?I(e):e.startsWith(`rgb`)?L(e):e.startsWith(`hsl`)?ae(e):{r:0,g:0,b:0,a:1}}function se(e){return e<=.03928?e/12.92:((e+.055)/1.055)**2.4}function ce(e){let t=e.match(/oklch\((.*?)%\s/);return t?parseFloat(t[1]):null}function le(e){if(e.startsWith(`oklch(`))return(ce(e)||0)/100;let{r:t,g:n,b:r}=oe(e),i=t/255,a=n/255,o=r/255,s=se(i),c=se(a),l=se(o);return .2126*s+.7152*c+.0722*l}function ue(e,t=.179){return!e.startsWith(`var(`)&&le(e)>t}function R({color:e,theme:t,colorScheme:n}){if(typeof e!=`string`)throw Error(`[@mantine/core] Failed to parse color. Expected color to be a string, instead got ${typeof e}`);if(e===`bright`)return{color:e,value:n===`dark`?t.white:t.black,shade:void 0,isThemeColor:!1,isLight:ue(n===`dark`?t.white:t.black,t.luminanceThreshold),variable:`--mantine-color-bright`};if(e===`dimmed`)return{color:e,value:n===`dark`?t.colors.dark[2]:t.colors.gray[7],shade:void 0,isThemeColor:!1,isLight:ue(n===`dark`?t.colors.dark[2]:t.colors.gray[6],t.luminanceThreshold),variable:`--mantine-color-dimmed`};if(e===`white`||e===`black`)return{color:e,value:e===`white`?t.white:t.black,shade:void 0,isThemeColor:!1,isLight:ue(e===`white`?t.white:t.black,t.luminanceThreshold),variable:`--mantine-color-${e}`};let[r,i]=e.split(`.`),a=i?Number(i):void 0,o=r in t.colors;if(o){let e=a===void 0?t.colors[r][re(t,n||`light`)]:t.colors[r][a];return{color:r,value:e,shade:a,isThemeColor:o,isLight:ue(e,t.luminanceThreshold),variable:i?`--mantine-color-${r}-${a}`:`--mantine-color-${r}-filled`}}return{color:e,value:e,isThemeColor:o,isLight:ue(e,t.luminanceThreshold),shade:a,variable:void 0}}function z(e,t){let n=R({color:e||t.primaryColor,theme:t});return n.variable?`var(${n.variable})`:e}function de(e){return!!e&&typeof e==`object`&&`mantine-virtual-color`in e}function B(e,t){if(e.startsWith(`var(`))return`color-mix(in srgb, ${e}, black ${t*100}%)`;let{r:n,g:r,b:i,a}=oe(e),o=1-t,s=e=>Math.round(e*o);return`rgba(${s(n)}, ${s(r)}, ${s(i)}, ${a})`}function fe(e,t){let n={from:e?.from||t.defaultGradient.from,to:e?.to||t.defaultGradient.to,deg:e?.deg??t.defaultGradient.deg??0},r=z(n.from,t),i=z(n.to,t);return`linear-gradient(${n.deg}deg, ${r} 0%, ${i} 100%)`}function V(e,t){if(typeof e!=`string`||t>1||t<0)return`rgba(0, 0, 0, 1)`;if(e.startsWith(`var(`))return`color-mix(in srgb, ${e}, transparent ${(1-t)*100}%)`;if(e.startsWith(`oklch`))return e.includes(`/`)?e.replace(/\/\s*[\d.]+\s*\)/,`/ ${t})`):e.replace(`)`,` / ${t})`);let{r:n,g:r,b:i}=oe(e);return`rgba(${n}, ${r}, ${i}, ${t})`}var pe=V,me=({color:e,theme:t,variant:n,gradient:r,autoContrast:i})=>{let a=R({color:e,theme:t}),o=typeof i==`boolean`?i:t.autoContrast;if(n===`none`)return{background:`transparent`,hover:`transparent`,color:`inherit`,border:`none`};if(n===`filled`){let n=a.isThemeColor&&a.shade===void 0&&de(t.colors[a.color]),r=o?n?`var(--mantine-color-${a.color}-contrast)`:a.isLight?`var(--mantine-color-black)`:`var(--mantine-color-white)`:`var(--mantine-color-white)`;return a.isThemeColor?a.shade===void 0?{background:`var(--mantine-color-${e}-filled)`,hover:`var(--mantine-color-${e}-filled-hover)`,color:r,border:`${h(1)} solid transparent`}:{background:`var(--mantine-color-${a.color}-${a.shade})`,hover:`var(--mantine-color-${a.color}-${a.shade===9?8:a.shade+1})`,color:r,border:`${h(1)} solid transparent`}:{background:e,hover:B(e,.1),color:r,border:`${h(1)} solid transparent`}}if(n===`light`){if(a.isThemeColor){if(a.shade===void 0)return{background:`var(--mantine-color-${e}-light)`,hover:`var(--mantine-color-${e}-light-hover)`,color:`var(--mantine-color-${e}-light-color)`,border:`${h(1)} solid transparent`};let n=t.colors[a.color][a.shade];return{background:n,hover:B(n,.1),color:`var(--mantine-color-${a.color}-light-color)`,border:`${h(1)} solid transparent`}}return{background:V(e,.1),hover:V(e,.12),color:e,border:`${h(1)} solid transparent`}}if(n===`outline`)return a.isThemeColor?a.shade===void 0?{background:`transparent`,hover:`var(--mantine-color-${e}-outline-hover)`,color:`var(--mantine-color-${e}-outline)`,border:`${h(1)} solid var(--mantine-color-${e}-outline)`}:{background:`transparent`,hover:V(t.colors[a.color][a.shade],.05),color:`var(--mantine-color-${a.color}-${a.shade})`,border:`${h(1)} solid var(--mantine-color-${a.color}-${a.shade})`}:{background:`transparent`,hover:V(e,.05),color:e,border:`${h(1)} solid ${e}`};if(n===`subtle`){if(a.isThemeColor){if(a.shade===void 0)return{background:`transparent`,hover:`var(--mantine-color-${e}-light-hover)`,color:`var(--mantine-color-${e}-light-color)`,border:`${h(1)} solid transparent`};let n=t.colors[a.color][a.shade];return{background:`transparent`,hover:V(n,.12),color:`var(--mantine-color-${a.color}-${Math.min(a.shade,6)})`,border:`${h(1)} solid transparent`}}return{background:`transparent`,hover:V(e,.12),color:e,border:`${h(1)} solid transparent`}}return n===`transparent`?a.isThemeColor?a.shade===void 0?{background:`transparent`,hover:`transparent`,color:`var(--mantine-color-${e}-light-color)`,border:`${h(1)} solid transparent`}:{background:`transparent`,hover:`transparent`,color:`var(--mantine-color-${a.color}-${Math.min(a.shade,6)})`,border:`${h(1)} solid transparent`}:{background:`transparent`,hover:`transparent`,color:e,border:`${h(1)} solid transparent`}:n===`white`?a.isThemeColor?a.shade===void 0?{background:`var(--mantine-color-white)`,hover:B(t.white,.01),color:`var(--mantine-color-${e}-filled)`,border:`${h(1)} solid transparent`}:{background:`var(--mantine-color-white)`,hover:B(t.white,.01),color:`var(--mantine-color-${a.color}-${a.shade})`,border:`${h(1)} solid transparent`}:{background:`var(--mantine-color-white)`,hover:B(t.white,.01),color:e,border:`${h(1)} solid transparent`}:n===`gradient`?{background:fe(r,t),hover:fe(r,t),color:`var(--mantine-color-white)`,border:`none`}:n==="default"?{background:`var(--mantine-color-default)`,hover:`var(--mantine-color-default-hover)`,color:`var(--mantine-color-default-color)`,border:`${h(1)} solid var(--mantine-color-default-border)`}:{}},he=(0,s.createContext)(null);function H(){let e=(0,s.use)(he);if(!e)throw Error(`[@mantine/core] MantineProvider was not found in tree`);return e}function ge(){return H().cssVariablesResolver}function _e(){return H().classNamesPrefix}function ve(){return H().getStyleNonce}function ye(){return H().withStaticClasses}function be(){return H().headless}function xe(){return H().stylesTransform?.sx}function Se(){return H().stylesTransform?.styles}function Ce(){return H().env||`default`}function we(){return H().deduplicateInlineStyles}var Te={dark:[`#C9C9C9`,`#b8b8b8`,`#828282`,`#696969`,`#424242`,`#3b3b3b`,`#2e2e2e`,`#242424`,`#1f1f1f`,`#141414`],gray:[`#f8f9fa`,`#f1f3f5`,`#e9ecef`,`#dee2e6`,`#ced4da`,`#adb5bd`,`#868e96`,`#495057`,`#343a40`,`#212529`],red:[`#fff5f5`,`#ffe3e3`,`#ffc9c9`,`#ffa8a8`,`#ff8787`,`#ff6b6b`,`#fa5252`,`#f03e3e`,`#e03131`,`#c92a2a`],pink:[`#fff0f6`,`#ffdeeb`,`#fcc2d7`,`#faa2c1`,`#f783ac`,`#f06595`,`#e64980`,`#d6336c`,`#c2255c`,`#a61e4d`],grape:[`#f8f0fc`,`#f3d9fa`,`#eebefa`,`#e599f7`,`#da77f2`,`#cc5de8`,`#be4bdb`,`#ae3ec9`,`#9c36b5`,`#862e9c`],violet:[`#f3f0ff`,`#e5dbff`,`#d0bfff`,`#b197fc`,`#9775fa`,`#845ef7`,`#7950f2`,`#7048e8`,`#6741d9`,`#5f3dc4`],indigo:[`#edf2ff`,`#dbe4ff`,`#bac8ff`,`#91a7ff`,`#748ffc`,`#5c7cfa`,`#4c6ef5`,`#4263eb`,`#3b5bdb`,`#364fc7`],blue:[`#e7f5ff`,`#d0ebff`,`#a5d8ff`,`#74c0fc`,`#4dabf7`,`#339af0`,`#228be6`,`#1c7ed6`,`#1971c2`,`#1864ab`],cyan:[`#e3fafc`,`#c5f6fa`,`#99e9f2`,`#66d9e8`,`#3bc9db`,`#22b8cf`,`#15aabf`,`#1098ad`,`#0c8599`,`#0b7285`],teal:[`#e6fcf5`,`#c3fae8`,`#96f2d7`,`#63e6be`,`#38d9a9`,`#20c997`,`#12b886`,`#0ca678`,`#099268`,`#087f5b`],green:[`#ebfbee`,`#d3f9d8`,`#b2f2bb`,`#8ce99a`,`#69db7c`,`#51cf66`,`#40c057`,`#37b24d`,`#2f9e44`,`#2b8a3e`],lime:[`#f4fce3`,`#e9fac8`,`#d8f5a2`,`#c0eb75`,`#a9e34b`,`#94d82d`,`#82c91e`,`#74b816`,`#66a80f`,`#5c940d`],yellow:[`#fff9db`,`#fff3bf`,`#ffec99`,`#ffe066`,`#ffd43b`,`#fcc419`,`#fab005`,`#f59f00`,`#f08c00`,`#e67700`],orange:[`#fff4e6`,`#ffe8cc`,`#ffd8a8`,`#ffc078`,`#ffa94d`,`#ff922b`,`#fd7e14`,`#f76707`,`#e8590c`,`#d9480f`]},Ee=`-apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji`,De={scale:1,fontSmoothing:!0,focusRing:`auto`,white:`#fff`,black:`#000`,colors:Te,primaryShade:{light:6,dark:8},primaryColor:`blue`,variantColorResolver:me,autoContrast:!1,luminanceThreshold:.3,fontFamily:Ee,fontFamilyMonospace:`ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, Courier New, monospace`,respectReducedMotion:!1,cursorType:`default`,defaultGradient:{from:`blue`,to:`cyan`,deg:45},defaultRadius:`md`,activeClassName:`mantine-active`,focusClassName:``,headings:{fontFamily:Ee,fontWeight:`700`,textWrap:`wrap`,sizes:{h1:{fontSize:h(34),lineHeight:`1.3`},h2:{fontSize:h(26),lineHeight:`1.35`},h3:{fontSize:h(22),lineHeight:`1.4`},h4:{fontSize:h(18),lineHeight:`1.45`},h5:{fontSize:h(16),lineHeight:`1.5`},h6:{fontSize:h(14),lineHeight:`1.5`}}},fontSizes:{xs:h(12),sm:h(14),md:h(16),lg:h(18),xl:h(20)},lineHeights:{xs:`1.4`,sm:`1.45`,md:`1.55`,lg:`1.6`,xl:`1.65`},fontWeights:{regular:`400`,medium:`600`,bold:`700`},radius:{xs:h(2),sm:h(4),md:h(8),lg:h(16),xl:h(32)},spacing:{xs:h(10),sm:h(12),md:h(16),lg:h(20),xl:h(32)},breakpoints:{xs:`36em`,sm:`48em`,md:`62em`,lg:`75em`,xl:`88em`},shadows:{xs:`0 ${h(1)} ${h(3)} rgba(0, 0, 0, 0.05), 0 ${h(1)} ${h(2)} rgba(0, 0, 0, 0.1)`,sm:`0 ${h(1)} ${h(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${h(10)} ${h(15)} ${h(-5)}, rgba(0, 0, 0, 0.04) 0 ${h(7)} ${h(7)} ${h(-5)}`,md:`0 ${h(1)} ${h(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${h(20)} ${h(25)} ${h(-5)}, rgba(0, 0, 0, 0.04) 0 ${h(10)} ${h(10)} ${h(-5)}`,lg:`0 ${h(1)} ${h(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${h(28)} ${h(23)} ${h(-7)}, rgba(0, 0, 0, 0.04) 0 ${h(12)} ${h(12)} ${h(-7)}`,xl:`0 ${h(1)} ${h(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${h(36)} ${h(28)} ${h(-7)}, rgba(0, 0, 0, 0.04) 0 ${h(17)} ${h(17)} ${h(-7)}`},other:{},components:{}},Oe=`[@mantine/core] MantineProvider: Invalid theme.primaryColor, it accepts only key of theme.colors, learn more – https://mantine.dev/theming/colors/#primary-color`,ke=`[@mantine/core] MantineProvider: Invalid theme.primaryShade, it accepts only 0-9 integers or an object { light: 0-9, dark: 0-9 }`;function Ae(e){return e<0||e>9?!1:parseInt(e.toString(),10)===e}function je(e){if(!(e.primaryColor in e.colors))throw Error(Oe);if(typeof e.primaryShade==`object`&&(!Ae(e.primaryShade.dark)||!Ae(e.primaryShade.light))||typeof e.primaryShade==`number`&&!Ae(e.primaryShade))throw Error(ke)}function Me(e,t){if(!t)return je(e),e;let n=d(e,t);return t.fontFamily&&!t.headings?.fontFamily&&(n.headings={...n.headings,fontFamily:t.fontFamily}),je(n),n}var Ne=(0,s.createContext)(null),Pe=()=>(0,s.use)(Ne)||De;function Fe(){let e=(0,s.use)(Ne);if(!e)throw Error(`@mantine/core: MantineProvider was not found in component tree, make sure you have it in your app`);return e}function Ie({theme:e,children:t,inherit:n=!0}){let r=Pe(),i=(0,s.useMemo)(()=>Me(n?r:De,e),[e,r,n]);return(0,c.jsx)(Ne,{value:i,children:t})}Ie.displayName=`@mantine/core/MantineThemeProvider`;function U(e,t,n){let r=Fe(),i=(Array.isArray(e)?e:[e]).filter(Boolean),a={};for(let e of i){let t=r.components[e]?.defaultProps,n=typeof t==`function`?t(r):t;n&&(a={...a,...n})}return{...t,...a,..._(n)}}var Le=e(o(),1);function Re({classNames:e,styles:t,props:n,stylesCtx:r}){let i=Fe();return{resolvedClassNames:e===void 0?void 0:P({theme:i,classNames:e,props:n,stylesCtx:r||void 0}),resolvedStyles:t===void 0?void 0:F({theme:i,styles:t,props:n,stylesCtx:r||void 0})}}var ze={always:`mantine-focus-always`,auto:`mantine-focus-auto`,never:`mantine-focus-never`};function Be({theme:e,options:t,unstyled:n}){return M(t?.focusable&&!n&&(e.focusClassName||ze[e.focusRing]),t?.active&&!n&&e.activeClassName)}function Ve({selector:e,stylesCtx:t,options:n,props:r,theme:i}){return P({theme:i,classNames:n?.classNames,props:n?.props||r,stylesCtx:t})[e]}function He({selector:e,stylesCtx:t,theme:n,classNames:r,props:i}){return P({theme:n,classNames:r,props:i,stylesCtx:t})[e]}function Ue({rootSelector:e,selector:t,className:n}){return e===t?n:void 0}function We({selector:e,classes:t,unstyled:n}){return n?void 0:t[e]}function Ge({themeName:e,classNamesPrefix:t,selector:n,withStaticClass:r}){return r===!1?[]:e.map(e=>`${t}-${e}-${n}`)}function Ke({options:e,classes:t,selector:n,unstyled:r}){return e?.variant&&!r?t[`${n}--${e.variant}`]:void 0}function qe({theme:e,options:t,themeName:n,selector:r,classNamesPrefix:i,resolvedClassNames:a,resolvedThemeClassNames:o,classes:s,unstyled:c,className:l,rootSelector:u,props:d,stylesCtx:f,withStaticClasses:p,headless:m,transformedStyles:h}){return M(Be({theme:e,options:t,unstyled:c||m}),o.map(e=>e[r]),Ke({options:t,classes:s,selector:r,unstyled:c||m}),a[r],He({selector:r,stylesCtx:f,theme:e,classNames:h,props:d}),Ve({selector:r,stylesCtx:f,options:t,props:d,theme:e}),Ue({rootSelector:u,selector:r,className:l}),We({selector:r,classes:s,unstyled:c||m}),p&&!m&&Ge({themeName:n,classNamesPrefix:i,selector:r,withStaticClass:t?.withStaticClass}),t?.className)}function Je({style:e,theme:t}){return Array.isArray(e)?e.reduce((e,n)=>({...e,...Je({style:n,theme:t})}),{}):typeof e==`function`?e(t):e??{}}function Ye({theme:e,selector:t,options:n,props:r,stylesCtx:i,rootSelector:a,withStylesTransform:o,resolvedStyles:s,resolvedThemeStyles:c,resolvedVars:l,resolvedRootStyle:u}){return{...c[t],...s[t],...!o&&F({theme:e,styles:n?.styles,props:n?.props||r,stylesCtx:i})[t],...l[t],...a===t?u:null,...Je({style:n?.style,theme:e})}}function Xe(e){return e.reduce((e,t)=>(t&&Object.keys(t).forEach(n=>{e[n]={...e[n],..._(t[n])}}),e),{})}function Ze({props:e,stylesCtx:t,themeName:n,theme:r}){let i=Se()?.();return{getTransformedStyles:a=>i?[...a.map(n=>i(n,{props:e,theme:r,ctx:t})),...n.map(n=>i(r.components[n]?.styles,{props:e,theme:r,ctx:t}))].filter(Boolean):[],withStylesTransform:!!i}}function W({name:e,classes:t,props:n,stylesCtx:r,className:i,style:a,rootSelector:o=`root`,unstyled:s,classNames:c,styles:l,vars:u,varsResolver:d,attributes:f}){let p=Fe(),m=_e(),h=ye(),g=be(),_=(Array.isArray(e)?e:[e]).filter(e=>e),{withStylesTransform:v,getTransformedStyles:y}=Ze({props:n,stylesCtx:r,themeName:_,theme:p}),b=P({theme:p,classNames:c,props:n,stylesCtx:r}),x=_.map(e=>P({theme:p,classNames:p.components[e]?.classNames,props:n,stylesCtx:r})),S=v?{}:F({theme:p,styles:l,props:n,stylesCtx:r}),C={};if(!v)for(let e of _){let t=F({theme:p,styles:p.components[e]?.styles,props:n,stylesCtx:r});for(let e of Object.keys(t))C[e]={...C[e],...t[e]}}let w=Xe([g?{}:d?.(p,n,r),..._.map(e=>p.components?.[e]?.vars?.(p,n,r)),u?.(p,n,r)]),T=Je({style:a,theme:p});return(e,a)=>({...f?.[e],className:qe({theme:p,options:a,themeName:_,selector:e,classNamesPrefix:m,resolvedClassNames:b,resolvedThemeClassNames:x,classes:t,unstyled:s,className:i,rootSelector:o,props:n,stylesCtx:r,withStaticClasses:h,headless:g,transformedStyles:y([a?.styles,l])}),style:Ye({theme:p,selector:e,options:a,props:n,stylesCtx:r,rootSelector:o,withStylesTransform:v,resolvedStyles:S,resolvedThemeStyles:C,resolvedVars:w,resolvedRootStyle:T})})}function Qe(e){return l(e).reduce((t,n)=>e[n]===void 0?t:`${t}${f(n)}:${e[n]};`,``).trim()}function $e({selector:e,styles:t,media:n,container:r}){let i=t?Qe(t):``,a=Array.isArray(n)?n.map(t=>`@media${t.query}{${e}{${Qe(t.styles)}}}`):[],o=Array.isArray(r)?r.map(t=>`@container ${t.query}{${e}{${Qe(t.styles)}}}`):[];return`${i?`${e}{${i}}`:``}${a.join(``)}${o.join(``)}`.trim()}function et(e){let t=5381;for(let n=0;n>>0).toString(36)}function tt({deduplicate:e,...t}){let n=ve(),r=$e(t);return e?(0,c.jsx)(`style`,{href:`mantine-${et(r)}`,precedence:`mantine`,nonce:n?.(),children:r}):(0,c.jsx)(`style`,{"data-mantine-styles":`inline`,nonce:n?.(),dangerouslySetInnerHTML:{__html:r}})}function nt(e){let t=5381;for(let n=0;n>>0).toString(36)}function rt(e,t){return`__mdi__-${nt(`${e?Qe(e):``}|${Array.isArray(t)?t.map(e=>`${e.query}:${Qe(e.styles)}`).join(`|`):``}`)}`}function it(e){let{m:t,mx:n,my:r,mt:i,mb:a,ml:o,mr:s,me:c,ms:l,mis:u,mie:d,p:f,px:p,py:m,pt:h,pb:g,pl:v,pr:y,pe:b,ps:x,pis:S,pie:C,bd:w,bdrs:T,bg:E,c:D,opacity:O,ff:k,fz:ee,fw:te,lts:A,ta:j,lh:M,fs:N,tt:ne,td:P,w:F,miw:re,maw:ie,h:I,mih:L,mah:ae,bgsz:oe,bgp:se,bgr:ce,bga:le,pos:ue,top:R,left:z,bottom:de,right:B,inset:fe,display:V,flex:pe,hiddenFrom:me,visibleFrom:he,lightHidden:H,darkHidden:ge,sx:_e,...ve}=e;return{styleProps:_({m:t,mx:n,my:r,mt:i,mb:a,ml:o,mr:s,me:c,ms:l,mis:u,mie:d,p:f,px:p,py:m,pt:h,pb:g,pl:v,pr:y,pis:S,pie:C,pe:b,ps:x,bd:w,bg:E,c:D,opacity:O,ff:k,fz:ee,fw:te,lts:A,ta:j,lh:M,fs:N,tt:ne,td:P,w:F,miw:re,maw:ie,h:I,mih:L,mah:ae,bgsz:oe,bgp:se,bgr:ce,bga:le,pos:ue,top:R,left:z,bottom:de,right:B,inset:fe,display:V,flex:pe,bdrs:T,hiddenFrom:me,visibleFrom:he,lightHidden:H,darkHidden:ge,sx:_e}),rest:ve}}var at={m:{type:`spacing`,property:`margin`},mt:{type:`spacing`,property:`marginTop`},mb:{type:`spacing`,property:`marginBottom`},ml:{type:`spacing`,property:`marginLeft`},mr:{type:`spacing`,property:`marginRight`},ms:{type:`spacing`,property:`marginInlineStart`},me:{type:`spacing`,property:`marginInlineEnd`},mis:{type:`spacing`,property:`marginInlineStart`},mie:{type:`spacing`,property:`marginInlineEnd`},mx:{type:`spacing`,property:`marginInline`},my:{type:`spacing`,property:`marginBlock`},p:{type:`spacing`,property:`padding`},pt:{type:`spacing`,property:`paddingTop`},pb:{type:`spacing`,property:`paddingBottom`},pl:{type:`spacing`,property:`paddingLeft`},pr:{type:`spacing`,property:`paddingRight`},ps:{type:`spacing`,property:`paddingInlineStart`},pe:{type:`spacing`,property:`paddingInlineEnd`},pis:{type:`spacing`,property:`paddingInlineStart`},pie:{type:`spacing`,property:`paddingInlineEnd`},px:{type:`spacing`,property:`paddingInline`},py:{type:`spacing`,property:`paddingBlock`},bd:{type:`border`,property:`border`},bdrs:{type:`radius`,property:`borderRadius`},bg:{type:`color`,property:`background`},c:{type:`textColor`,property:`color`},opacity:{type:`identity`,property:`opacity`},ff:{type:`fontFamily`,property:`fontFamily`},fz:{type:`fontSize`,property:`fontSize`},fw:{type:`identity`,property:`fontWeight`},lts:{type:`size`,property:`letterSpacing`},ta:{type:`identity`,property:`textAlign`},lh:{type:`lineHeight`,property:`lineHeight`},fs:{type:`identity`,property:`fontStyle`},tt:{type:`identity`,property:`textTransform`},td:{type:`identity`,property:`textDecoration`},w:{type:`spacing`,property:`width`},miw:{type:`spacing`,property:`minWidth`},maw:{type:`spacing`,property:`maxWidth`},h:{type:`spacing`,property:`height`},mih:{type:`spacing`,property:`minHeight`},mah:{type:`spacing`,property:`maxHeight`},bgsz:{type:`size`,property:`backgroundSize`},bgp:{type:`identity`,property:`backgroundPosition`},bgr:{type:`identity`,property:`backgroundRepeat`},bga:{type:`identity`,property:`backgroundAttachment`},pos:{type:`identity`,property:`position`},top:{type:`size`,property:`top`},left:{type:`size`,property:`left`},bottom:{type:`size`,property:`bottom`},right:{type:`size`,property:`right`},inset:{type:`size`,property:`inset`},display:{type:`identity`,property:`display`},flex:{type:`identity`,property:`flex`}};function ot(e,t){let n=R({color:e,theme:t});return n.color===`dimmed`?`var(--mantine-color-dimmed)`:n.color===`bright`?`var(--mantine-color-bright)`:n.variable?`var(${n.variable})`:n.color}function st(e,t){let n=R({color:e,theme:t});return n.isThemeColor&&n.shade===void 0?`var(--mantine-color-${n.color}-text)`:ot(e,t)}function ct(e,t){if(typeof e==`number`)return h(e);if(typeof e==`string`){let[n,r,...i]=e.split(` `).filter(e=>e.trim()!==``),a=`${h(n)}`;return r&&(a+=` ${r}`),i.length>0&&(a+=` ${ot(i.join(` `),t)}`),a.trim()}return e}var lt={text:`var(--mantine-font-family)`,mono:`var(--mantine-font-family-monospace)`,monospace:`var(--mantine-font-family-monospace)`,heading:`var(--mantine-font-family-headings)`,headings:`var(--mantine-font-family-headings)`};function ut(e){return typeof e==`string`&&e in lt?lt[e]:e}var dt=[`h1`,`h2`,`h3`,`h4`,`h5`,`h6`];function ft(e,t){return typeof e==`string`&&e in t.fontSizes?`var(--mantine-font-size-${e})`:typeof e==`string`&&dt.includes(e)?`var(--mantine-${e}-font-size)`:typeof e==`number`||typeof e==`string`?h(e):e}function pt(e){return e}var mt=[`h1`,`h2`,`h3`,`h4`,`h5`,`h6`];function ht(e,t){return typeof e==`string`&&e in t.lineHeights?`var(--mantine-line-height-${e})`:typeof e==`string`&&mt.includes(e)?`var(--mantine-${e}-line-height)`:e}function gt(e,t){return typeof e==`string`&&e in t.radius?`var(--mantine-radius-${e})`:typeof e==`number`||typeof e==`string`?h(e):e}function _t(e){return typeof e==`number`?h(e):e}function vt(e,t){if(typeof e==`number`)return h(e);if(typeof e==`string`){let n=e.replace(`-`,``);if(!(n in t.spacing))return h(e);let r=`--mantine-spacing-${n}`;return e.startsWith(`-`)?`calc(var(${r}) * -1)`:`var(${r})`}return e}var yt={color:ot,textColor:st,fontSize:ft,spacing:vt,radius:gt,identity:pt,size:_t,lineHeight:ht,fontFamily:ut,border:ct};function bt(e){return e.replace(`(min-width: `,``).replace(`em)`,``)}function xt({media:e,...t}){let n=Object.keys(e).sort((e,t)=>Number(bt(e))-Number(bt(t))).map(t=>({query:t,styles:e[t]}));return{...t,media:n}}function St(e){if(typeof e!=`object`||!e)return!1;let t=Object.keys(e);return t.length!==1||t[0]!==`base`}function Ct(e){return typeof e==`object`&&e?`base`in e?e.base:void 0:e}function wt(e){return typeof e==`object`&&e?l(e).filter(e=>e!==`base`):[]}function Tt(e,t){return typeof e==`object`&&e&&t in e?e[t]:e}function Et({styleProps:e,data:t,theme:n}){return xt(l(e).reduce((r,i)=>{if(i===`hiddenFrom`||i===`visibleFrom`||i===`sx`)return r;let a=t[i],o=Array.isArray(a.property)?a.property:[a.property],s=Ct(e[i]);if(!St(e[i]))return o.forEach(e=>{r.inlineStyles[e]=yt[a.type](s,n)}),r;r.hasResponsiveStyles=!0;let c=wt(e[i]);return o.forEach(t=>{s!=null&&(r.styles[t]=yt[a.type](s,n)),c.forEach(o=>{let s=`(min-width: ${n.breakpoints[o]})`;r.media[s]={...r.media[s],[t]:yt[a.type](Tt(e[i],o),n)}})}),r},{hasResponsiveStyles:!1,styles:{},inlineStyles:{},media:{}}))}function Dt(){return`__m__-${(0,s.useId)().replace(/[:«»]/g,``)}`}function Ot(e){return e}var kt=Ot;function At(e){return e}function G(e){let t=e;return t.extend=At,t.withProps=e=>{let n=n=>(0,c.jsx)(t,{...e,...n});return n.extend=t.extend,n.displayName=`WithProps(${t.displayName})`,n},t}function jt(e){return G(e)}function K(e){let t=e;return t.withProps=e=>{let n=n=>(0,c.jsx)(t,{...e,...n});return n.extend=t.extend,n.displayName=`WithProps(${t.displayName})`,n},t.extend=At,t}function Mt(e){return`data-${(e.startsWith(`data-`)?e.slice(5):e).replace(/([a-z])([A-Z])/g,`$1-$2`).toLowerCase()}`}function Nt(e){return Object.keys(e).reduce((t,n)=>{let r=e[n];return r===void 0||r===``||r===!1||r===null||(t[Mt(n)]=e[n]),t},{})}function Pt(e){return e?typeof e==`string`?{[Mt(e)]:!0}:Array.isArray(e)?[...e].reduce((e,t)=>({...e,...Pt(t)}),{}):Nt(e):null}function Ft(e,t){return Array.isArray(e)?[...e].reduce((e,n)=>({...e,...Ft(n,t)}),{}):typeof e==`function`?e(t):e??{}}function It({theme:e,style:t,vars:n,styleProps:r}){let i=Ft(t,e),a=Ft(n,e);return{...i,...a,...r}}function Lt({component:e,style:t,__vars:n,className:r,variant:i,mod:a,size:o,hiddenFrom:s,visibleFrom:l,lightHidden:u,darkHidden:d,renderRoot:f,__size:p,ref:m,...h}){let g=Fe(),_=e||`div`,{styleProps:y,rest:b}=it(h),x=xe()?.()?.(y.sx),S=Dt(),C=Et({styleProps:y,theme:g,data:at}),w=we(),T=w&&C.hasResponsiveStyles?rt(C.styles,C.media):S,E={ref:m,style:It({theme:g,style:t,vars:n,styleProps:C.inlineStyles}),className:M(r,x,{[T]:C.hasResponsiveStyles,"mantine-light-hidden":u,"mantine-dark-hidden":d,[`mantine-hidden-from-${s}`]:s,[`mantine-visible-from-${l}`]:l}),"data-variant":i,"data-size":v(o)?void 0:o||void 0,size:p,...Pt(a),...b};return(0,c.jsxs)(c.Fragment,{children:[C.hasResponsiveStyles&&(0,c.jsx)(tt,{selector:`.${T}`,styles:C.styles,media:C.media,deduplicate:w}),typeof f==`function`?f(E):(0,c.jsx)(_,{...E})]})}Lt.displayName=`@mantine/core/Box`;var q=kt(Lt),Rt={root:`m_87cf2631`},zt={__staticSelector:`UnstyledButton`},Bt=K(e=>{let t=U(`UnstyledButton`,zt,e),{className:n,component:r=`button`,__staticSelector:i,unstyled:a,classNames:o,styles:s,style:l,attributes:u,...d}=t;return(0,c.jsx)(q,{...W({name:i,props:t,classes:Rt,className:n,style:l,classNames:o,styles:s,unstyled:a,attributes:u})(`root`,{focusable:!0}),component:r,type:r===`button`?`button`:void 0,...d})});Bt.classes=Rt,Bt.displayName=`@mantine/core/UnstyledButton`;var Vt={root:`m_1b7284a3`},Ht=A((e,{radius:t,shadow:n})=>({root:{"--paper-radius":t===void 0?void 0:x(t),"--paper-shadow":w(n)}})),Ut=K(e=>{let t=U(`Paper`,null,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,withBorder:s,vars:l,radius:u,shadow:d,variant:f,mod:p,attributes:m,...h}=t,g=W({name:`Paper`,props:t,classes:Vt,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:m,vars:l,varsResolver:Ht});return(0,c.jsx)(q,{mod:[{"data-with-border":s},p],...g(`root`),variant:f,...h})});Ut.classes=Vt,Ut.varsResolver=Ht,Ut.displayName=`@mantine/core/Paper`;var Wt=e=>({in:{opacity:1,transform:`scale(1)`},out:{opacity:0,transform:`scale(.9) translateY(${e===`bottom`?10:-10}px)`},transitionProperty:`transform, opacity`}),Gt={fade:{in:{opacity:1},out:{opacity:0},transitionProperty:`opacity`},"fade-up":{in:{opacity:1,transform:`translateY(0)`},out:{opacity:0,transform:`translateY(30px)`},transitionProperty:`opacity, transform`},"fade-down":{in:{opacity:1,transform:`translateY(0)`},out:{opacity:0,transform:`translateY(-30px)`},transitionProperty:`opacity, transform`},"fade-left":{in:{opacity:1,transform:`translateX(0)`},out:{opacity:0,transform:`translateX(30px)`},transitionProperty:`opacity, transform`},"fade-right":{in:{opacity:1,transform:`translateX(0)`},out:{opacity:0,transform:`translateX(-30px)`},transitionProperty:`opacity, transform`},scale:{in:{opacity:1,transform:`scale(1)`},out:{opacity:0,transform:`scale(0)`},common:{transformOrigin:`top`},transitionProperty:`transform, opacity`},"scale-y":{in:{opacity:1,transform:`scaleY(1)`},out:{opacity:0,transform:`scaleY(0)`},common:{transformOrigin:`top`},transitionProperty:`transform, opacity`},"scale-x":{in:{opacity:1,transform:`scaleX(1)`},out:{opacity:0,transform:`scaleX(0)`},common:{transformOrigin:`left`},transitionProperty:`transform, opacity`},"skew-up":{in:{opacity:1,transform:`translateY(0) skew(0deg, 0deg)`},out:{opacity:0,transform:`translateY(-20px) skew(-10deg, -5deg)`},common:{transformOrigin:`top`},transitionProperty:`transform, opacity`},"skew-down":{in:{opacity:1,transform:`translateY(0) skew(0deg, 0deg)`},out:{opacity:0,transform:`translateY(20px) skew(-10deg, -5deg)`},common:{transformOrigin:`bottom`},transitionProperty:`transform, opacity`},"rotate-left":{in:{opacity:1,transform:`translateY(0) rotate(0deg)`},out:{opacity:0,transform:`translateY(20px) rotate(-5deg)`},common:{transformOrigin:`bottom`},transitionProperty:`transform, opacity`},"rotate-right":{in:{opacity:1,transform:`translateY(0) rotate(0deg)`},out:{opacity:0,transform:`translateY(20px) rotate(5deg)`},common:{transformOrigin:`top`},transitionProperty:`transform, opacity`},"slide-down":{in:{opacity:1,transform:`translateY(0)`},out:{opacity:0,transform:`translateY(-100%)`},common:{transformOrigin:`top`},transitionProperty:`transform, opacity`},"slide-up":{in:{opacity:1,transform:`translateY(0)`},out:{opacity:0,transform:`translateY(100%)`},common:{transformOrigin:`bottom`},transitionProperty:`transform, opacity`},"slide-left":{in:{opacity:1,transform:`translateX(0)`},out:{opacity:0,transform:`translateX(100%)`},common:{transformOrigin:`left`},transitionProperty:`transform, opacity`},"slide-right":{in:{opacity:1,transform:`translateX(0)`},out:{opacity:0,transform:`translateX(-100%)`},common:{transformOrigin:`right`},transitionProperty:`transform, opacity`},pop:{...Wt(`bottom`),common:{transformOrigin:`center center`}},"pop-bottom-left":{...Wt(`bottom`),common:{transformOrigin:`bottom left`}},"pop-bottom-right":{...Wt(`bottom`),common:{transformOrigin:`bottom right`}},"pop-top-left":{...Wt(`top`),common:{transformOrigin:`top left`}},"pop-top-right":{...Wt(`top`),common:{transformOrigin:`top right`}}},Kt={entering:`in`,entered:`in`,exiting:`out`,exited:`out`,"pre-exiting":`out`,"pre-entering":`out`};function qt({transition:e,state:t,duration:n,timingFunction:r}){let i={WebkitBackfaceVisibility:`hidden`,transitionDuration:`${n}ms`,transitionTimingFunction:r};return typeof e==`string`?e in Gt?{transitionProperty:Gt[e].transitionProperty,...i,...Gt[e].common,...Gt[e][Kt[t]]}:{}:{transitionProperty:e.transitionProperty,...i,...e.common,...e[Kt[t]]}}function Jt({duration:e,exitDuration:t,timingFunction:n,mounted:r,onEnter:i,onExit:a,onEntered:o,onExited:c,enterDelay:l,exitDelay:u}){let d=Fe(),f=te(),p=d.respectReducedMotion?f:!1,[m,h]=(0,s.useState)(p?0:e),[g,_]=(0,s.useState)(r?`entered`:`exited`),v=(0,s.useRef)(-1),y=(0,s.useRef)(-1),b=(0,s.useRef)(-1);function x(){window.clearTimeout(v.current),window.clearTimeout(y.current),cancelAnimationFrame(b.current)}let S=n=>{x();let r=n?i:a,s=n?o:c,l=p?0:n?e:t;h(l),l===0?(typeof r==`function`&&r(),typeof s==`function`&&s(),_(n?`entered`:`exited`)):b.current=requestAnimationFrame(()=>{Le.flushSync(()=>{_(n?`pre-entering`:`pre-exiting`)}),b.current=requestAnimationFrame(()=>{typeof r==`function`&&r(),_(n?`entering`:`exiting`),v.current=window.setTimeout(()=>{typeof s==`function`&&s(),_(n?`entered`:`exited`)},l)})})},C=e=>{if(x(),typeof(e?l:u)!=`number`){S(e);return}y.current=window.setTimeout(()=>{S(e)},e?l:u)};return k(()=>{C(r)},[r]),(0,s.useEffect)(()=>()=>{x()},[]),{transitionDuration:m,transitionStatus:g,transitionTimingFunction:n||`ease`}}function Yt({keepMounted:e,keepMountedMode:t=`activity`,transition:n=`fade`,duration:r=250,exitDuration:i=r,mounted:a,children:o,timingFunction:l=`ease`,onExit:u,onEntered:d,onEnter:f,onExited:p,enterDelay:m,exitDelay:h}){let g=Ce(),{transitionDuration:_,transitionStatus:v,transitionTimingFunction:y}=Jt({mounted:a,exitDuration:i,duration:r,timingFunction:l,onExit:u,onEntered:d,onEnter:f,onExited:p,enterDelay:m,exitDelay:h});if(g===`test`)return a?(0,c.jsx)(c.Fragment,{children:o({})}):e?o({display:`none`}):null;if(_===0)return e?t===`display-none`?a?(0,c.jsx)(c.Fragment,{children:o({})}):o({display:`none`}):(0,c.jsx)(s.Activity,{mode:a?`visible`:`hidden`,children:o({})}):a?(0,c.jsx)(c.Fragment,{children:o({})}):null;let b=v===`exited`;if(e){let e=o(b?t===`display-none`?{display:`none`}:{}:qt({transition:n,duration:_,state:v,timingFunction:y}));return t===`display-none`?e:(0,c.jsx)(s.Activity,{mode:b?`hidden`:`visible`,children:e})}return b?null:(0,c.jsx)(c.Fragment,{children:o(qt({transition:n,duration:_,state:v,timingFunction:y}))})}Yt.displayName=`@mantine/core/Transition`;var J={root:`m_5ae2e3c`,barsLoader:`m_7a2bd4cd`,bar:`m_870bb79`,"bars-loader-animation":`m_5d2b3b9d`,dotsLoader:`m_4e3f22d7`,dot:`m_870c4af`,"loader-dots-animation":`m_aac34a1`,ovalLoader:`m_b34414df`,"oval-loader-animation":`m_f8e89c4b`},Xt=({className:e,...t})=>(0,c.jsxs)(q,{component:`span`,className:M(J.barsLoader,e),...t,children:[(0,c.jsx)(`span`,{className:J.bar}),(0,c.jsx)(`span`,{className:J.bar}),(0,c.jsx)(`span`,{className:J.bar})]});Xt.displayName=`@mantine/core/Bars`;var Zt=({className:e,...t})=>(0,c.jsxs)(q,{component:`span`,className:M(J.dotsLoader,e),...t,children:[(0,c.jsx)(`span`,{className:J.dot}),(0,c.jsx)(`span`,{className:J.dot}),(0,c.jsx)(`span`,{className:J.dot})]});Zt.displayName=`@mantine/core/Dots`;var Qt=({className:e,...t})=>(0,c.jsx)(q,{component:`span`,className:M(J.ovalLoader,e),...t});Qt.displayName=`@mantine/core/Oval`;var $t={bars:Xt,oval:Qt,dots:Zt},en={loaders:$t,type:`oval`},tn=A((e,{size:t,color:n})=>({root:{"--loader-size":y(t,`loader-size`),"--loader-color":n?z(n,e):void 0}})),nn=G(e=>{let t=U(`Loader`,en,e),{size:n,color:r,type:i,vars:a,className:o,style:s,classNames:l,styles:u,unstyled:d,loaders:f,variant:p,children:m,attributes:h,...g}=t,_=W({name:`Loader`,props:t,classes:J,className:o,style:s,classNames:l,styles:u,unstyled:d,attributes:h,vars:a,varsResolver:tn});return m?(0,c.jsx)(q,{..._(`root`),...g,children:m}):(0,c.jsx)(q,{..._(`root`),component:f[i],variant:p,size:n,...g})});nn.defaultLoaders=$t,nn.classes=J,nn.varsResolver=tn,nn.displayName=`@mantine/core/Loader`;function rn({size:e=`var(--cb-icon-size, 70%)`,style:t,...n}){return(0,c.jsx)(`svg`,{viewBox:`0 0 15 15`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,style:{...t,width:e,height:e},...n,children:(0,c.jsx)(`path`,{d:`M11.7816 4.03157C12.0062 3.80702 12.0062 3.44295 11.7816 3.2184C11.5571 2.99385 11.193 2.99385 10.9685 3.2184L7.50005 6.68682L4.03164 3.2184C3.80708 2.99385 3.44301 2.99385 3.21846 3.2184C2.99391 3.44295 2.99391 3.80702 3.21846 4.03157L6.68688 7.49999L3.21846 10.9684C2.99391 11.193 2.99391 11.557 3.21846 11.7816C3.44301 12.0061 3.80708 12.0061 4.03164 11.7816L7.50005 8.31316L10.9685 11.7816C11.193 12.0061 11.5571 12.0061 11.7816 11.7816C12.0062 11.557 12.0062 11.193 11.7816 10.9684L8.31322 7.49999L11.7816 4.03157Z`,fill:`currentColor`,fillRule:`evenodd`,clipRule:`evenodd`})})}rn.displayName=`@mantine/core/CloseIcon`;var an={root:`m_86a44da5`,"root--subtle":`m_220c80f2`},on={variant:`subtle`},sn=A((e,{size:t,radius:n,iconSize:r})=>({root:{"--cb-size":y(t,`cb-size`),"--cb-radius":n===void 0?void 0:x(n),"--cb-icon-size":h(r)}})),cn=K(e=>{let t=U(`CloseButton`,on,e),{iconSize:n,children:r,vars:i,radius:a,className:o,classNames:s,style:l,styles:u,unstyled:d,"data-disabled":f,disabled:p,variant:m,icon:h,mod:g,attributes:_,__staticSelector:v,...y}=t,b=W({name:v||`CloseButton`,props:t,className:o,style:l,classes:an,classNames:s,styles:u,unstyled:d,attributes:_,vars:i,varsResolver:sn});return(0,c.jsxs)(Bt,{...y,unstyled:d,variant:m,disabled:p,mod:[{disabled:p||f},g],...b(`root`,{variant:m,active:!p&&!f}),children:[h||(0,c.jsx)(rn,{}),r]})});cn.classes=an,cn.varsResolver=sn,cn.displayName=`@mantine/core/CloseButton`;function ln(e){return s.Children.toArray(e).filter(Boolean)}var un={root:`m_4081bf90`},dn={preventGrowOverflow:!0,gap:`md`,align:`center`,justify:`flex-start`,wrap:`wrap`},fn=A((e,{grow:t,preventGrowOverflow:n,gap:r,align:i,justify:a,wrap:o},{childWidth:s})=>({root:{"--group-child-width":t&&n?s:void 0,"--group-gap":b(r),"--group-align":i,"--group-justify":a,"--group-wrap":o}})),pn=G(e=>{let t=U(`Group`,dn,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,children:s,gap:l,align:u,justify:d,wrap:f,grow:p,preventGrowOverflow:m,vars:h,variant:g,__size:_,mod:v,attributes:y,...x}=t,S=ln(s),C=S.length,w=b(l??`md`);return(0,c.jsx)(q,{...W({name:`Group`,props:t,stylesCtx:{childWidth:`calc(${100/C}% - (${w} - ${w} / ${C}))`},className:r,style:i,classes:un,classNames:n,styles:a,unstyled:o,attributes:y,vars:h,varsResolver:fn})(`root`),variant:g,mod:[{grow:p},v],size:_,...x,children:S})});pn.classes=un,pn.varsResolver=fn,pn.displayName=`@mantine/core/Group`;var mn=(0,s.createContext)({size:`sm`}),hn=G(e=>{let t=U(`InputClearButton`,null,e),{size:n,variant:r,vars:i,classNames:a,styles:o,...l}=t,u=(0,s.use)(mn),{resolvedClassNames:d,resolvedStyles:f}=Re({classNames:a,styles:o,props:t});return(0,c.jsx)(cn,{variant:r||`transparent`,size:n||u?.size||`sm`,classNames:d,styles:f,__staticSelector:`InputClearButton`,style:{pointerEvents:`all`,background:`var(--input-bg)`,...l.style},...l})});hn.displayName=`@mantine/core/InputClearButton`;var gn={xs:7,sm:8,md:10,lg:12,xl:15};function _n({__clearable:e,__clearSection:t,rightSection:n,__defaultRightSection:r,size:i=`sm`,__clearSectionMode:a=`both`}){let o=e&&t;return a===`rightSection`?n===null?null:n||r:a===`clear`?n===null?null:o||r:o&&(n||r)?(0,c.jsxs)(`div`,{"data-combined-clear-section":!0,style:{display:`flex`,gap:2,alignItems:`center`,paddingInlineEnd:gn[i]},children:[o,n||r]}):n===null?null:n||o||r}var vn=(0,s.createContext)({offsetBottom:!1,offsetTop:!1,describedBy:void 0,getStyles:null,inputId:void 0,labelId:void 0}),Y={wrapper:`m_6c018570`,input:`m_8fb7ebe7`,bottomSection:`m_93f4ed57`,section:`m_82577fc2`,placeholder:`m_88bacfd0`,root:`m_46b77525`,label:`m_8fdc1311`,required:`m_78a94662`,error:`m_8f816625`,success:`m_9d9d40e0`,description:`m_fe47ce59`},yn=A((e,{size:t})=>({description:{"--input-description-size":t===void 0?void 0:`calc(${S(t)} - ${h(2)})`}})),bn=G(e=>{let t=U(`InputDescription`,null,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:l,__staticSelector:u,__inheritStyles:d=!0,attributes:f,...p}=U(`InputDescription`,null,t),m=(0,s.use)(vn),h=W({name:[`InputWrapper`,u],props:t,classes:Y,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:f,rootSelector:`description`,vars:l,varsResolver:yn});return(0,c.jsx)(q,{component:`p`,...(d&&m?.getStyles||h)(`description`,m?.getStyles?{className:r,style:i}:void 0),...p})});bn.classes=Y,bn.varsResolver=yn,bn.displayName=`@mantine/core/InputDescription`;var xn=A((e,{size:t})=>({error:{"--input-error-size":t===void 0?void 0:`calc(${S(t)} - ${h(2)})`}})),Sn=G(e=>{let t=U(`InputError`,null,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:l,attributes:u,__staticSelector:d,__inheritStyles:f=!0,...p}=t,m=W({name:[`InputWrapper`,d],props:t,classes:Y,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:u,rootSelector:`error`,vars:l,varsResolver:xn}),h=(0,s.use)(vn);return(0,c.jsx)(q,{component:`p`,...(f&&h?.getStyles||m)(`error`,h?.getStyles?{className:r,style:i}:void 0),...p})});Sn.classes=Y,Sn.varsResolver=xn,Sn.displayName=`@mantine/core/InputError`;var Cn={labelElement:`label`},wn=A((e,{size:t})=>({label:{"--input-label-size":S(t),"--input-asterisk-color":void 0}})),Tn=G(e=>{let t=U(`InputLabel`,Cn,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:l,labelElement:u,required:d,htmlFor:f,onMouseDown:p,children:m,__staticSelector:h,mod:g,attributes:_,...v}=t,y=W({name:[`InputWrapper`,h],props:t,classes:Y,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:_,rootSelector:`label`,vars:l,varsResolver:wn}),b=(0,s.use)(vn),x=b?.getStyles||y,S=v.component||u,C=typeof S!=`string`||S===`label`;return(0,c.jsxs)(q,{...x(`label`,b?.getStyles?{className:r,style:i}:void 0),component:u,htmlFor:C?f:void 0,mod:[{required:d},g],onMouseDown:e=>{p?.(e),!e.defaultPrevented&&e.detail>1&&e.preventDefault()},...v,children:[m,d&&(0,c.jsx)(`span`,{...x(`required`),"aria-hidden":!0,children:` *`})]})});Tn.classes=Y,Tn.varsResolver=wn,Tn.displayName=`@mantine/core/InputLabel`;var En=G(e=>{let t=U(`InputPlaceholder`,null,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,__staticSelector:l,error:u,mod:d,attributes:f,...p}=t;return(0,c.jsx)(q,{...W({name:[`InputPlaceholder`,l],props:t,classes:Y,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:f,rootSelector:`placeholder`})(`placeholder`),mod:[{error:!!u},d],component:`span`,...p})});En.classes=Y,En.displayName=`@mantine/core/InputPlaceholder`;var Dn=A((e,{size:t})=>({success:{"--input-success-size":t===void 0?void 0:`calc(${S(t)} - ${h(2)})`}})),On=G(e=>{let t=U(`InputSuccess`,null,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:l,attributes:u,__staticSelector:d,__inheritStyles:f=!0,...p}=t,m=W({name:[`InputWrapper`,d],props:t,classes:Y,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:u,rootSelector:`success`,vars:l,varsResolver:Dn}),h=(0,s.use)(vn);return(0,c.jsx)(q,{component:`p`,...(f&&h?.getStyles||m)(`success`,h?.getStyles?{className:r,style:i}:void 0),...p})});On.classes=Y,On.varsResolver=Dn,On.displayName=`@mantine/core/InputSuccess`;function kn(e,{hasDescription:t,hasError:n}){let r=e.findIndex(e=>e===`input`),i=e.slice(0,r),a=e.slice(r+1),o=t&&i.includes(`description`)||n&&i.includes(`error`);return{offsetBottom:t&&a.includes(`description`)||n&&a.includes(`error`),offsetTop:o}}var An={labelElement:`label`,inputContainer:e=>e,inputWrapperOrder:[`label`,`description`,`input`,`error`]},jn=A((e,{size:t})=>({label:{"--input-label-size":S(t),"--input-asterisk-color":void 0},error:{"--input-error-size":t===void 0?void 0:`calc(${S(t)} - ${h(2)})`},success:{"--input-success-size":t===void 0?void 0:`calc(${S(t)} - ${h(2)})`},description:{"--input-description-size":t===void 0?void 0:`calc(${S(t)} - ${h(2)})`}})),Mn=G(e=>{let t=U(`InputWrapper`,An,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:l,size:u,variant:d,__staticSelector:f,inputContainer:p,inputWrapperOrder:m,label:h,error:g,success:_,description:v,labelProps:y,descriptionProps:b,errorProps:x,successProps:S,labelElement:C,children:w,withAsterisk:T,id:E,required:D,__stylesApiProps:O,mod:k,attributes:te,...A}=t,j=W({name:[`InputWrapper`,f],props:O||t,classes:Y,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:te,vars:l,varsResolver:jn}),M={size:u,variant:d,__staticSelector:f},N=ee(E),ne=typeof T==`boolean`?T:D,P=x?.id||`${N}-error`,F=S?.id||`${N}-success`,re=b?.id||`${N}-description`,ie=N,I=!!g&&typeof g!=`boolean`,L=!!_&&typeof _!=`boolean`&&!g,ae=!!v,oe=I&&m.includes(`error`),se=L&&m.includes(`error`),ce=ae&&m.includes(`description`),le=`${oe?P:``} ${se?F:``} ${ce?re:``}`,ue=le.trim().length>0?le.trim():void 0,R=y?.id||`${N}-label`,z=h&&(0,c.jsx)(Tn,{labelElement:C,id:R,htmlFor:ie,required:ne,...M,...y,children:h},`label`),de=ae&&(0,c.jsx)(bn,{...b,...M,size:b?.size||M.size,id:b?.id||re,children:v},`description`),B=(0,c.jsx)(s.Fragment,{children:p(w)},`input`),fe=I&&(0,s.createElement)(Sn,{...x,...M,size:x?.size||M.size,key:`error`,id:x?.id||P},g),V=L&&(0,s.createElement)(On,{...S,...M,size:S?.size||M.size,key:`success`,id:S?.id||F},_),pe=m.map(e=>{switch(e){case`label`:return z;case`input`:return B;case`description`:return de;case`error`:return fe||V;default:return null}});return(0,c.jsx)(vn,{value:{getStyles:j,describedBy:ue,inputId:ie,labelId:R,...kn(m,{hasDescription:ae,hasError:I||L})},children:(0,c.jsx)(q,{variant:d,size:u,mod:[{error:!!g,success:!!_&&!g},k],id:C===`label`?void 0:E,...j(`root`),...A,children:pe})})});Mn.classes=Y,Mn.varsResolver=jn,Mn.displayName=`@mantine/core/InputWrapper`;var Nn={variant:`default`,leftSectionPointerEvents:`none`,rightSectionPointerEvents:`none`,withAria:!0,withErrorStyles:!0,withSuccessStyles:!0,size:`sm`,loading:!1,loadingPosition:`right`},Pn=A((e,t,n)=>({wrapper:{"--input-margin-top":n.offsetTop?`calc(var(--mantine-spacing-xs) / 2)`:void 0,"--input-margin-bottom":n.offsetBottom?`calc(var(--mantine-spacing-xs) / 2)`:void 0,"--input-height":y(t.size,`input-height`),"--input-fz":S(t.size),"--input-radius":t.radius===void 0?void 0:x(t.radius),"--input-left-section-width":t.leftSectionWidth===void 0?void 0:h(t.leftSectionWidth),"--input-right-section-width":t.rightSectionWidth===void 0?void 0:h(t.rightSectionWidth),"--input-padding-y":t.multiline?y(t.size,`input-padding-y`):void 0,"--input-left-section-pointer-events":t.leftSectionPointerEvents,"--input-right-section-pointer-events":t.rightSectionPointerEvents}})),X=K(e=>{let t=U(`Input`,Nn,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,required:l,__staticSelector:u,__stylesApiProps:d,size:f,wrapperProps:p,error:m,success:h,disabled:g,leftSection:_,leftSectionProps:v,leftSectionWidth:y,rightSection:b,rightSectionProps:x,rightSectionWidth:S,rightSectionPointerEvents:C,leftSectionPointerEvents:w,variant:T,vars:E,pointer:D,multiline:O,radius:k,id:ee,withAria:te,withErrorStyles:A,withSuccessStyles:j,mod:M,inputSize:N,attributes:ne,__clearSection:P,__clearable:F,__clearSectionMode:re,__defaultRightSection:ie,loading:I,loadingPosition:L,__bottomSection:ae,__bottomSectionProps:oe,rootRef:se,dir:ce,...le}=t,{styleProps:ue,rest:R}=it(le),z=(0,s.use)(vn),de={offsetBottom:z?.offsetBottom,offsetTop:z?.offsetTop},B=W({name:[`Input`,u],props:d||t,classes:Y,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:ne,stylesCtx:de,rootSelector:`wrapper`,vars:E,varsResolver:Pn}),fe=te?{required:l,disabled:g,"aria-invalid":m?!0:void 0,"aria-describedby":z?.describedBy,id:z?.inputId||ee}:{},V=I?(0,c.jsx)(nn,{size:L===`left`?`calc(var(--input-left-section-size) / 2)`:`calc(var(--input-right-section-size) / 2)`}):null,pe=I&&L===`left`?V:_,me=_n({__clearable:F,__clearSection:P,rightSection:I&&L===`right`?V:b,__defaultRightSection:ie,size:f,__clearSectionMode:re});return(0,c.jsx)(mn,{value:{size:f||`sm`},children:(0,c.jsxs)(q,{ref:se,dir:ce,...B(`wrapper`),...ue,...p,mod:[{error:!!m&&A,success:!!h&&!m&&j,pointer:D,disabled:g,multiline:O,"data-with-right-section":!!me,"data-with-left-section":!!pe,"data-with-bottom-section":!!ae},M],variant:T,size:f,children:[pe&&(0,c.jsx)(`div`,{...v,"data-position":`left`,...B(`section`,{className:v?.className,style:v?.style}),children:pe}),(0,c.jsx)(q,{component:`input`,...R,...fe,required:l,mod:{disabled:g,error:!!m&&A,success:!!h&&!m&&j},variant:T,__size:N,...B(`input`)}),ae&&(0,c.jsx)(`div`,{...oe,...B(`bottomSection`,{className:oe?.className,style:oe?.style}),children:ae}),me&&(0,c.jsx)(`div`,{...x,"data-position":`right`,...B(`section`,{className:x?.className,style:x?.style}),children:me})]})})});X.classes=Y,X.varsResolver=Pn,X.Wrapper=Mn,X.Label=Tn,X.Error=Sn,X.Success=On,X.Description=bn,X.Placeholder=En,X.ClearButton=hn,X.displayName=`@mantine/core/Input`;function Fn(e,t,n){let r=U([`Input`,`InputWrapper`,e],t,n),{label:i,description:a,error:o,success:s,required:c,classNames:l,styles:u,className:d,unstyled:f,__staticSelector:p,__stylesApiProps:m,errorProps:h,successProps:g,labelProps:_,descriptionProps:v,wrapperProps:y,id:b,size:x,style:S,inputContainer:C,inputWrapperOrder:w,withAsterisk:T,variant:E,vars:D,mod:O,attributes:k,...ee}=r,{styleProps:te,rest:A}=it(ee),j={label:i,description:a,error:o,success:s,required:c,classNames:l,className:d,__staticSelector:p,__stylesApiProps:m||r,errorProps:h,successProps:g,labelProps:_,descriptionProps:v,unstyled:f,styles:u,size:x,style:S,inputContainer:C,inputWrapperOrder:w,withAsterisk:T,variant:E,id:b,mod:O,attributes:k,...y};return{...A,classNames:l,styles:u,unstyled:f,wrapperProps:{...j,...te},inputProps:{required:c,classNames:l,styles:u,unstyled:f,size:x,__staticSelector:p,__stylesApiProps:m||r,error:o,success:s,variant:E,id:b,attributes:k}}}var In={__staticSelector:`InputBase`,withAria:!0,size:`sm`},Ln=K(e=>{let{inputProps:t,wrapperProps:n,...r}=Fn(`InputBase`,In,e);return(0,c.jsx)(X.Wrapper,{...n,children:(0,c.jsx)(X,{...t,...r})})});Ln.classes={...X.classes,...X.Wrapper.classes},Ln.displayName=`@mantine/core/InputBase`;var Rn={root:`m_66836ed3`,wrapper:`m_a5d60502`,body:`m_667c2793`,title:`m_6a03f287`,label:`m_698f4f23`,icon:`m_667f2a6a`,message:`m_7fa78076`,closeButton:`m_87f54839`},zn=A((e,{radius:t,color:n,variant:r,autoContrast:i})=>{let a=e.variantColorResolver({color:n||e.primaryColor,theme:e,variant:r||`light`,autoContrast:i});return{root:{"--alert-radius":t===void 0?void 0:x(t),"--alert-bg":n||r?a.background:void 0,"--alert-color":a.color,"--alert-bd":n||r?a.border:void 0}}}),Bn=G(e=>{let t=U(`Alert`,null,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,radius:l,color:u,title:d,children:f,id:p,icon:m,withCloseButton:h,onClose:g,closeButtonLabel:_,variant:v,autoContrast:y,role:b,attributes:x,...S}=t,C=W({name:`Alert`,classes:Rn,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:x,vars:s,varsResolver:zn}),w=ee(p),T=d&&`${w}-title`||void 0,E=`${w}-body`;return(0,c.jsx)(q,{id:w,...C(`root`,{variant:v}),variant:v,...S,role:b||`alert`,"aria-describedby":f?E:void 0,"aria-labelledby":d?T:void 0,children:(0,c.jsxs)(`div`,{...C(`wrapper`),children:[m&&(0,c.jsx)(`div`,{...C(`icon`),children:m}),(0,c.jsxs)(`div`,{...C(`body`),children:[d&&(0,c.jsx)(`div`,{...C(`title`),"data-with-close-button":h||void 0,children:(0,c.jsx)(`span`,{id:T,...C(`label`),children:d})}),f&&(0,c.jsx)(`div`,{id:E,...C(`message`),"data-variant":v,children:f})]}),h&&(0,c.jsx)(cn,{...C(`closeButton`),onClick:g,variant:`transparent`,size:16,iconSize:16,"aria-label":_,unstyled:o})]})})});Bn.classes=Rn,Bn.varsResolver=zn,Bn.displayName=`@mantine/core/Alert`;var Vn={root:`m_b6d8b162`};function Hn(e){if(e===`start`)return`start`;if(e===`end`||e)return`end`}var Un={inherit:!1},Wn=A((e,{variant:t,lineClamp:n,gradient:r,size:i,textWrap:a})=>({root:{"--text-fz":S(i),"--text-lh":C(i),"--text-gradient":t===`gradient`?fe(r,e):void 0,"--text-line-clamp":typeof n==`number`?n.toString():void 0,"--text-text-wrap":a}})),Z=K(e=>{let t=U(`Text`,Un,e),{lineClamp:n,truncate:r,inline:i,inherit:a,gradient:o,span:s,textWrap:l,__staticSelector:u,vars:d,className:f,style:p,classNames:m,styles:h,unstyled:g,variant:_,mod:v,size:y,attributes:b,...x}=t;return(0,c.jsx)(q,{...W({name:[`Text`,u],props:t,classes:Vn,className:f,style:p,classNames:m,styles:h,unstyled:g,attributes:b,vars:d,varsResolver:Wn})(`root`,{focusable:!0}),component:s?`span`:`p`,variant:_,mod:[{"data-truncate":Hn(r),"data-line-clamp":typeof n==`number`,"data-inline":i,"data-inherit":a},v],size:y,...x})});Z.classes=Vn,Z.varsResolver=Wn,Z.displayName=`@mantine/core/Text`;var Gn={root:`m_77c9d27d`,inner:`m_80f1301b`,label:`m_811560b9`,section:`m_a74036a`,loader:`m_a25b86ee`,group:`m_80d6d844`,groupSection:`m_70be2a01`},Kn={orientation:`horizontal`},qn=A((e,{borderWidth:t})=>({group:{"--button-border-width":h(t)}})),Jn=G(e=>{let t=U(`ButtonGroup`,Kn,e),{className:n,style:r,classNames:i,styles:a,unstyled:o,orientation:s,vars:l,borderWidth:u,mod:d,attributes:f,...p}=U(`ButtonGroup`,Kn,e);return(0,c.jsx)(q,{...W({name:`ButtonGroup`,props:t,classes:Gn,className:n,style:r,classNames:i,styles:a,unstyled:o,attributes:f,vars:l,varsResolver:qn,rootSelector:`group`})(`group`),mod:[{"data-orientation":s},d],role:`group`,...p})});Jn.classes=Gn,Jn.varsResolver=qn,Jn.displayName=`@mantine/core/ButtonGroup`;var Yn=A((e,{radius:t,color:n,gradient:r,variant:i,autoContrast:a,size:o})=>{let s=e.variantColorResolver({color:n||e.primaryColor,theme:e,gradient:r,variant:i||`filled`,autoContrast:a});return{groupSection:{"--section-height":y(o,`section-height`),"--section-padding-x":y(o,`section-padding-x`),"--section-fz":o?.includes(`compact`)?S(o.replace(`compact-`,``)):S(o),"--section-radius":t===void 0?void 0:x(t),"--section-bg":n||i?s.background:void 0,"--section-color":s.color,"--section-bd":n||i?s.border:void 0}}}),Xn=G(e=>{let t=U(`ButtonGroupSection`,null,e),{className:n,style:r,classNames:i,styles:a,unstyled:o,vars:s,gradient:l,radius:u,autoContrast:d,attributes:f,...p}=t;return(0,c.jsx)(q,{...W({name:`ButtonGroupSection`,props:t,classes:Gn,className:n,style:r,classNames:i,styles:a,unstyled:o,attributes:f,vars:s,varsResolver:Yn,rootSelector:`groupSection`})(`groupSection`),...p})});Xn.classes=Gn,Xn.varsResolver=Yn,Xn.displayName=`@mantine/core/ButtonGroupSection`;var Zn={in:{opacity:1,transform:`translate(-50%, calc(-50% + ${h(1)}))`},out:{opacity:0,transform:`translate(-50%, -200%)`},common:{transformOrigin:`center`},transitionProperty:`transform, opacity`},Qn=A((e,{radius:t,color:n,gradient:r,variant:i,size:a,justify:o,autoContrast:s})=>{let c=e.variantColorResolver({color:n||e.primaryColor,theme:e,gradient:r,variant:i||`filled`,autoContrast:s});return{root:{"--button-justify":o,"--button-height":y(a,`button-height`),"--button-padding-x":y(a,`button-padding-x`),"--button-fz":a?.includes(`compact`)?S(a.replace(`compact-`,``)):S(a),"--button-radius":t===void 0?void 0:x(t),"--button-bg":n||i?c.background:void 0,"--button-hover":n||i?c.hover:void 0,"--button-color":c.color,"--button-bd":n||i?c.border:void 0,"--button-hover-color":n||i?c.hoverColor:void 0}}}),Q=K(e=>{let t=U(`Button`,null,e),{style:n,vars:r,className:i,color:a,disabled:o,children:s,leftSection:l,rightSection:u,fullWidth:d,variant:f,radius:p,loading:m,loaderProps:h,gradient:g,classNames:_,styles:v,unstyled:y,"data-disabled":b,autoContrast:x,mod:S,attributes:C,...w}=t,T=W({name:`Button`,props:t,classes:Gn,className:i,style:n,classNames:_,styles:v,unstyled:y,attributes:C,vars:r,varsResolver:Qn}),E=!!l,D=!!u;return(0,c.jsxs)(Bt,{...T(`root`,{active:!o&&!m&&!b}),unstyled:y,variant:f,disabled:o||m,mod:[{disabled:o||b,loading:m,block:d,"with-left-section":E,"with-right-section":D},S],...w,children:[typeof m==`boolean`&&(0,c.jsx)(Yt,{mounted:m,transition:Zn,duration:150,children:e=>(0,c.jsx)(q,{component:`span`,...T(`loader`,{style:e}),"aria-hidden":!0,children:(0,c.jsx)(nn,{color:`var(--button-color)`,size:`calc(var(--button-height) / 1.8)`,...h})})}),(0,c.jsxs)(`span`,{...T(`inner`),children:[l&&(0,c.jsx)(q,{component:`span`,...T(`section`),mod:{position:`left`},children:l}),(0,c.jsx)(q,{component:`span`,mod:{loading:m},...T(`label`),children:s}),u&&(0,c.jsx)(q,{component:`span`,...T(`section`),mod:{position:`right`},children:u})]})]})});Q.classes=Gn,Q.varsResolver=Qn,Q.displayName=`@mantine/core/Button`,Q.Group=Jn,Q.GroupSection=Xn;var $n={root:`m_4451eb3a`},er=K(e=>{let t=U(`Center`,null,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,inline:l,mod:u,attributes:d,...f}=t,p=W({name:`Center`,props:t,classes:$n,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:d,vars:s});return(0,c.jsx)(q,{mod:[{inline:l},u],...p(`root`),...f})});er.classes=$n,er.displayName=`@mantine/core/Center`;var tr={root:`m_b183c0a2`},nr=A((e,{color:t})=>({root:{"--code-bg":t?z(t,e):void 0}})),rr=G(e=>{let t=U(`Code`,null,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,color:l,block:u,mod:d,attributes:f,...p}=t,m=W({name:`Code`,props:t,classes:tr,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:f,vars:s,varsResolver:nr});return(0,c.jsx)(q,{component:u?`pre`:`code`,mod:[{block:u},d],...m(`root`),...p,dir:`ltr`})});rr.classes=tr,rr.varsResolver=nr,rr.displayName=`@mantine/core/Code`;var ir={root:`m_7485cace`},ar={strategy:`block`},or=A((e,{size:t,fluid:n})=>({root:{"--container-size":n?void 0:y(t,`container-size`)}})),sr=G(e=>{let t=U(`Container`,ar,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,fluid:l,mod:u,attributes:d,strategy:f,...p}=t,m=W({name:`Container`,classes:ir,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:d,vars:s,varsResolver:or});return(0,c.jsx)(q,{mod:[{fluid:l,strategy:f},u],...m(`root`),...p})});sr.classes=ir,sr.varsResolver=or,sr.displayName=`@mantine/core/Container`;var cr={root:`m_6d731127`},lr={gap:`md`,align:`stretch`,justify:`flex-start`},ur=A((e,{gap:t,align:n,justify:r})=>({root:{"--stack-gap":b(t),"--stack-align":n,"--stack-justify":r}})),$=G(e=>{let t=U(`Stack`,lr,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,align:l,justify:u,gap:d,variant:f,attributes:p,...m}=t;return(0,c.jsx)(q,{...W({name:`Stack`,props:t,classes:cr,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:p,vars:s,varsResolver:ur})(`root`),variant:f,...m})});$.classes=cr,$.varsResolver=ur,$.displayName=`@mantine/core/Stack`;var dr=G(e=>(0,c.jsx)(Ln,{component:`input`,...U([`Input`,`InputWrapper`,`TextInput`],null,e),__staticSelector:`TextInput`}));dr.classes=Ln.classes,dr.displayName=`@mantine/core/TextInput`;var fr={root:`m_7341320d`},pr=A((e,{size:t,radius:n,variant:r,gradient:i,color:a,autoContrast:o})=>{let s=e.variantColorResolver({color:a||e.primaryColor,theme:e,gradient:i,variant:r||`filled`,autoContrast:o});return{root:{"--ti-size":y(t,`ti-size`),"--ti-radius":n===void 0?void 0:x(n),"--ti-bg":a||r?s.background:void 0,"--ti-color":a||r?s.color:void 0,"--ti-bd":a||r?s.border:void 0}}}),mr=G(e=>{let t=U(`ThemeIcon`,null,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,autoContrast:l,attributes:u,...d}=t;return(0,c.jsx)(q,{...W({name:`ThemeIcon`,classes:fr,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:u,vars:s,varsResolver:pr})(`root`),...d})});mr.classes=fr,mr.varsResolver=pr,mr.displayName=`@mantine/core/ThemeIcon`;var hr=[`h1`,`h2`,`h3`,`h4`,`h5`,`h6`],gr=[`xs`,`sm`,`md`,`lg`,`xl`];function _r(e,t){let n=t===void 0?`h${e}`:t;return hr.includes(n)?{fontSize:`var(--mantine-${n}-font-size)`,fontWeight:`var(--mantine-${n}-font-weight)`,lineHeight:`var(--mantine-${n}-line-height)`}:gr.includes(n)?{fontSize:`var(--mantine-font-size-${n})`,fontWeight:`var(--mantine-h${e}-font-weight)`,lineHeight:`var(--mantine-h${e}-line-height)`}:{fontSize:h(n),fontWeight:`var(--mantine-h${e}-font-weight)`,lineHeight:`var(--mantine-h${e}-line-height)`}}var vr={root:`m_8a5d1357`},yr={order:1},br=A((e,{order:t,size:n,lineClamp:r,textWrap:i})=>{let a=_r(t||1,n);return{root:{"--title-fw":a.fontWeight,"--title-lh":a.lineHeight,"--title-fz":a.fontSize,"--title-line-clamp":typeof r==`number`?r.toString():void 0,"--title-text-wrap":i}}}),xr=G(e=>{let t=U(`Title`,yr,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,order:s,vars:l,size:u,variant:d,lineClamp:f,textWrap:p,mod:m,attributes:h,...g}=t,_=W({name:`Title`,props:t,classes:vr,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:h,vars:l,varsResolver:br});return[1,2,3,4,5,6].includes(s)?(0,c.jsx)(q,{..._(`root`),component:`h${s}`,variant:d,mod:[{order:s,"data-line-clamp":typeof f==`number`},m],size:u,...g}):null});xr.classes=vr,xr.varsResolver=br,xr.displayName=`@mantine/core/Title`;var Sr=new Map([[`bold`,s.createElement(s.Fragment,null,s.createElement(`path`,{d:`M224.49,136.49l-72,72a12,12,0,0,1-17-17L187,140H40a12,12,0,0,1,0-24H187L135.51,64.48a12,12,0,0,1,17-17l72,72A12,12,0,0,1,224.49,136.49Z`}))],[`duotone`,s.createElement(s.Fragment,null,s.createElement(`path`,{d:`M216,128l-72,72V56Z`,opacity:`0.2`}),s.createElement(`path`,{d:`M221.66,122.34l-72-72A8,8,0,0,0,136,56v64H40a8,8,0,0,0,0,16h96v64a8,8,0,0,0,13.66,5.66l72-72A8,8,0,0,0,221.66,122.34ZM152,180.69V75.31L204.69,128Z`}))],[`fill`,s.createElement(s.Fragment,null,s.createElement(`path`,{d:`M221.66,133.66l-72,72A8,8,0,0,1,136,200V136H40a8,8,0,0,1,0-16h96V56a8,8,0,0,1,13.66-5.66l72,72A8,8,0,0,1,221.66,133.66Z`}))],[`light`,s.createElement(s.Fragment,null,s.createElement(`path`,{d:`M220.24,132.24l-72,72a6,6,0,0,1-8.48-8.48L201.51,134H40a6,6,0,0,1,0-12H201.51L139.76,60.24a6,6,0,0,1,8.48-8.48l72,72A6,6,0,0,1,220.24,132.24Z`}))],[`regular`,s.createElement(s.Fragment,null,s.createElement(`path`,{d:`M221.66,133.66l-72,72a8,8,0,0,1-11.32-11.32L196.69,136H40a8,8,0,0,1,0-16H196.69L138.34,61.66a8,8,0,0,1,11.32-11.32l72,72A8,8,0,0,1,221.66,133.66Z`}))],[`thin`,s.createElement(s.Fragment,null,s.createElement(`path`,{d:`M218.83,130.83l-72,72a4,4,0,0,1-5.66-5.66L206.34,132H40a4,4,0,0,1,0-8H206.34L141.17,58.83a4,4,0,0,1,5.66-5.66l72,72A4,4,0,0,1,218.83,130.83Z`}))]]),Cr=new Map([[`bold`,s.createElement(s.Fragment,null,s.createElement(`path`,{d:`M232.49,80.49l-128,128a12,12,0,0,1-17,0l-56-56a12,12,0,1,1,17-17L96,183,215.51,63.51a12,12,0,0,1,17,17Z`}))],[`duotone`,s.createElement(s.Fragment,null,s.createElement(`path`,{d:`M232,56V200a16,16,0,0,1-16,16H40a16,16,0,0,1-16-16V56A16,16,0,0,1,40,40H216A16,16,0,0,1,232,56Z`,opacity:`0.2`}),s.createElement(`path`,{d:`M205.66,85.66l-96,96a8,8,0,0,1-11.32,0l-40-40a8,8,0,0,1,11.32-11.32L104,164.69l90.34-90.35a8,8,0,0,1,11.32,11.32Z`}))],[`fill`,s.createElement(s.Fragment,null,s.createElement(`path`,{d:`M216,40H40A16,16,0,0,0,24,56V200a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A16,16,0,0,0,216,40ZM205.66,85.66l-96,96a8,8,0,0,1-11.32,0l-40-40a8,8,0,0,1,11.32-11.32L104,164.69l90.34-90.35a8,8,0,0,1,11.32,11.32Z`}))],[`light`,s.createElement(s.Fragment,null,s.createElement(`path`,{d:`M228.24,76.24l-128,128a6,6,0,0,1-8.48,0l-56-56a6,6,0,0,1,8.48-8.48L96,191.51,219.76,67.76a6,6,0,0,1,8.48,8.48Z`}))],[`regular`,s.createElement(s.Fragment,null,s.createElement(`path`,{d:`M229.66,77.66l-128,128a8,8,0,0,1-11.32,0l-56-56a8,8,0,0,1,11.32-11.32L96,188.69,218.34,66.34a8,8,0,0,1,11.32,11.32Z`}))],[`thin`,s.createElement(s.Fragment,null,s.createElement(`path`,{d:`M226.83,74.83l-128,128a4,4,0,0,1-5.66,0l-56-56a4,4,0,0,1,5.66-5.66L96,194.34,221.17,69.17a4,4,0,1,1,5.66,5.66Z`}))]]),wr=new Map([[`bold`,s.createElement(s.Fragment,null,s.createElement(`path`,{d:`M216,28H88A12,12,0,0,0,76,40V76H40A12,12,0,0,0,28,88V216a12,12,0,0,0,12,12H168a12,12,0,0,0,12-12V180h36a12,12,0,0,0,12-12V40A12,12,0,0,0,216,28ZM156,204H52V100H156Zm48-48H180V88a12,12,0,0,0-12-12H100V52H204Z`}))],[`duotone`,s.createElement(s.Fragment,null,s.createElement(`path`,{d:`M216,40V168H168V88H88V40Z`,opacity:`0.2`}),s.createElement(`path`,{d:`M216,32H88a8,8,0,0,0-8,8V80H40a8,8,0,0,0-8,8V216a8,8,0,0,0,8,8H168a8,8,0,0,0,8-8V176h40a8,8,0,0,0,8-8V40A8,8,0,0,0,216,32ZM160,208H48V96H160Zm48-48H176V88a8,8,0,0,0-8-8H96V48H208Z`}))],[`fill`,s.createElement(s.Fragment,null,s.createElement(`path`,{d:`M216,32H88a8,8,0,0,0-8,8V80H40a8,8,0,0,0-8,8V216a8,8,0,0,0,8,8H168a8,8,0,0,0,8-8V176h40a8,8,0,0,0,8-8V40A8,8,0,0,0,216,32Zm-8,128H176V88a8,8,0,0,0-8-8H96V48H208Z`}))],[`light`,s.createElement(s.Fragment,null,s.createElement(`path`,{d:`M216,34H88a6,6,0,0,0-6,6V82H40a6,6,0,0,0-6,6V216a6,6,0,0,0,6,6H168a6,6,0,0,0,6-6V174h42a6,6,0,0,0,6-6V40A6,6,0,0,0,216,34ZM162,210H46V94H162Zm48-48H174V88a6,6,0,0,0-6-6H94V46H210Z`}))],[`regular`,s.createElement(s.Fragment,null,s.createElement(`path`,{d:`M216,32H88a8,8,0,0,0-8,8V80H40a8,8,0,0,0-8,8V216a8,8,0,0,0,8,8H168a8,8,0,0,0,8-8V176h40a8,8,0,0,0,8-8V40A8,8,0,0,0,216,32ZM160,208H48V96H160Zm48-48H176V88a8,8,0,0,0-8-8H96V48H208Z`}))],[`thin`,s.createElement(s.Fragment,null,s.createElement(`path`,{d:`M216,36H88a4,4,0,0,0-4,4V84H40a4,4,0,0,0-4,4V216a4,4,0,0,0,4,4H168a4,4,0,0,0,4-4V172h44a4,4,0,0,0,4-4V40A4,4,0,0,0,216,36ZM164,212H44V92H164Zm48-48H172V88a4,4,0,0,0-4-4H92V44H212Z`}))]]),Tr=new Map([[`bold`,s.createElement(s.Fragment,null,s.createElement(`path`,{d:`M256,136a12,12,0,0,1-12,12h-8v8a12,12,0,0,1-24,0v-8h-8a12,12,0,0,1,0-24h8v-8a12,12,0,0,1,24,0v8h8A12,12,0,0,1,256,136Zm-54.81,56.28a12,12,0,1,1-18.38,15.44C169.12,191.42,145,172,108,172c-28.89,0-55.46,12.68-74.81,35.72a12,12,0,0,1-18.38-15.44A124.08,124.08,0,0,1,63.5,156.53a72,72,0,1,1,89,0A124,124,0,0,1,201.19,192.28ZM108,148a48,48,0,1,0-48-48A48.05,48.05,0,0,0,108,148Z`}))],[`duotone`,s.createElement(s.Fragment,null,s.createElement(`path`,{d:`M168,100a60,60,0,1,1-60-60A60,60,0,0,1,168,100Z`,opacity:`0.2`}),s.createElement(`path`,{d:`M256,136a8,8,0,0,1-8,8H232v16a8,8,0,0,1-16,0V144H200a8,8,0,0,1,0-16h16V112a8,8,0,0,1,16,0v16h16A8,8,0,0,1,256,136Zm-57.87,58.85a8,8,0,0,1-12.26,10.3C165.75,181.19,138.09,168,108,168s-57.75,13.19-77.87,37.15a8,8,0,0,1-12.25-10.3c14.94-17.78,33.52-30.41,54.17-37.17a68,68,0,1,1,71.9,0C164.6,164.44,183.18,177.07,198.13,194.85ZM108,152a52,52,0,1,0-52-52A52.06,52.06,0,0,0,108,152Z`}))],[`fill`,s.createElement(s.Fragment,null,s.createElement(`path`,{d:`M256,136a8,8,0,0,1-8,8H232v16a8,8,0,0,1-16,0V144H200a8,8,0,0,1,0-16h16V112a8,8,0,0,1,16,0v16h16A8,8,0,0,1,256,136ZM144,157.68a68,68,0,1,0-71.9,0c-20.65,6.76-39.23,19.39-54.17,37.17A8,8,0,0,0,24,208H192a8,8,0,0,0,6.13-13.15C183.18,177.07,164.6,164.44,144,157.68Z`}))],[`light`,s.createElement(s.Fragment,null,s.createElement(`path`,{d:`M254,136a6,6,0,0,1-6,6H230v18a6,6,0,0,1-12,0V142H200a6,6,0,0,1,0-12h18V112a6,6,0,0,1,12,0v18h18A6,6,0,0,1,254,136Zm-57.41,60.14a6,6,0,1,1-9.18,7.72C166.9,179.45,138.69,166,108,166s-58.89,13.45-79.41,37.86a6,6,0,0,1-9.18-7.72C35.14,177.41,55,164.48,77,158.25a66,66,0,1,1,62,0C161,164.48,180.86,177.41,196.59,196.14ZM108,154a54,54,0,1,0-54-54A54.06,54.06,0,0,0,108,154Z`}))],[`regular`,s.createElement(s.Fragment,null,s.createElement(`path`,{d:`M256,136a8,8,0,0,1-8,8H232v16a8,8,0,0,1-16,0V144H200a8,8,0,0,1,0-16h16V112a8,8,0,0,1,16,0v16h16A8,8,0,0,1,256,136Zm-57.87,58.85a8,8,0,0,1-12.26,10.3C165.75,181.19,138.09,168,108,168s-57.75,13.19-77.87,37.15a8,8,0,0,1-12.25-10.3c14.94-17.78,33.52-30.41,54.17-37.17a68,68,0,1,1,71.9,0C164.6,164.44,183.18,177.07,198.13,194.85ZM108,152a52,52,0,1,0-52-52A52.06,52.06,0,0,0,108,152Z`}))],[`thin`,s.createElement(s.Fragment,null,s.createElement(`path`,{d:`M252,136a4,4,0,0,1-4,4H228v20a4,4,0,0,1-8,0V140H200a4,4,0,0,1,0-8h20V112a4,4,0,0,1,8,0v20h20A4,4,0,0,1,252,136Zm-56.94,61.43a4,4,0,0,1-6.12,5.14C168,177.7,139.3,164,108,164s-60,13.7-80.94,38.57a4,4,0,1,1-6.12-5.14c16.71-19.9,38.13-33.13,61.89-38.59a64,64,0,1,1,50.34,0C156.93,164.3,178.35,177.53,195.06,197.43ZM108,156a56,56,0,1,0-56-56A56.06,56.06,0,0,0,108,156Z`}))]]),Er=(0,s.createContext)({color:`currentColor`,size:`1em`,weight:`regular`,mirrored:!1}),Dr=s.forwardRef((e,t)=>{let{alt:n,color:r,size:i,weight:a,mirrored:o,children:c,weights:l,...u}=e,{color:d=`currentColor`,size:f,weight:p=`regular`,mirrored:m=!1,...h}=s.useContext(Er);return s.createElement(`svg`,{ref:t,xmlns:`http://www.w3.org/2000/svg`,width:i??f,height:i??f,fill:r??d,viewBox:`0 0 256 256`,transform:o||m?`scale(-1, 1)`:void 0,...h,...u},!!n&&s.createElement(`title`,null,n),c,l.get(a??p))});Dr.displayName=`IconBase`;var Or=s.forwardRef((e,t)=>s.createElement(Dr,{ref:t,...e,weights:Sr}));Or.displayName=`ArrowRightIcon`;var kr=Or,Ar=s.forwardRef((e,t)=>s.createElement(Dr,{ref:t,...e,weights:Cr}));Ar.displayName=`CheckIcon`;var jr=Ar,Mr=s.forwardRef((e,t)=>s.createElement(Dr,{ref:t,...e,weights:wr}));Mr.displayName=`CopyIcon`;var Nr=Mr,Pr=s.forwardRef((e,t)=>s.createElement(Dr,{ref:t,...e,weights:Tr}));Pr.displayName=`UserPlusIcon`;var Fr=Pr,Ir=`fanout.access-token`,Lr=`fanout:unauthorized`;function Rr(){let e=new URLSearchParams(window.location.search).get(`return_to`);if(!e)return``;let t=new URL(e,window.location.origin);return t.origin!==window.location.origin||t.pathname!==`/api/auth/oauth/authorize`?``:`${t.pathname}${t.search}`}function zr(e){return!e||typeof e!=`object`||!(`id`in e)||typeof e.id!=`string`||e.id===``?`none`:`user`}function Br(){localStorage.removeItem(Ir)}function Vr(){Br(),window.dispatchEvent(new Event(Lr))}async function Hr(e,t={}){let n=new Headers(t.headers);n.set(`Fanout-Request`,`1`);let r=await fetch(e,{...t,headers:n,credentials:`same-origin`});if(r.status===401&&Vr(),r.status===403){let e=await r.clone().json().catch(()=>({}));throw Error(e.message??e.error??`You do not have permission to perform this action.`)}return r}async function Ur(){let e=await Hr(`/api/auth/logout`,{method:`POST`});if(!e.ok&&e.status!==401)throw Error(`Sign-out failed — your session is still active.`);e.status!==401&&Vr(),window.location.assign(`/`)}var Wr={small:{fontSize:15,gap:12,tracking:`0.16em`},regular:{fontSize:18,gap:14,tracking:`0.17em`},large:{fontSize:22,gap:16,tracking:`0.18em`}};function Gr({size:e=`regular`}){let t=Wr[e];return(0,c.jsxs)(pn,{component:`span`,gap:t.gap,wrap:`nowrap`,"aria-label":`Fanout`,children:[(0,c.jsx)(Kr,{size:e}),(0,c.jsx)(Z,{component:`span`,fz:t.fontSize,fw:800,lh:1,lts:t.tracking,tt:`uppercase`,children:`Fanout`})]})}function Kr({size:e=`regular`}){let t={small:32,regular:46,large:50}[e];return(0,c.jsx)(mr,{size:t,variant:`transparent`,"aria-hidden":`true`,children:(0,c.jsx)(qr,{})})}function qr(){let e=(0,s.useId)().replace(/[^a-zA-Z0-9-]/g,``),t=`fo-top-${e}`,n=`fo-mid-${e}`,r=`fo-bot-${e}`;return(0,c.jsxs)(`svg`,{viewBox:`35 44 200 200`,width:`100%`,height:`100%`,"aria-hidden":`true`,children:[(0,c.jsxs)(`defs`,{children:[(0,c.jsxs)(`linearGradient`,{id:t,x1:`54`,y1:`52`,x2:`210`,y2:`104`,gradientUnits:`userSpaceOnUse`,children:[(0,c.jsx)(`stop`,{offset:`0`,stopColor:`#5FE8CE`}),(0,c.jsx)(`stop`,{offset:`0.55`,stopColor:`#81E4B9`}),(0,c.jsx)(`stop`,{offset:`1`,stopColor:`#D9F276`})]}),(0,c.jsxs)(`linearGradient`,{id:n,x1:`58`,y1:`112`,x2:`176`,y2:`154`,gradientUnits:`userSpaceOnUse`,children:[(0,c.jsx)(`stop`,{offset:`0`,stopColor:`#536FFF`}),(0,c.jsx)(`stop`,{offset:`0.52`,stopColor:`#41B6F8`}),(0,c.jsx)(`stop`,{offset:`1`,stopColor:`#66D0EE`})]}),(0,c.jsxs)(`linearGradient`,{id:r,x1:`58`,y1:`166`,x2:`145`,y2:`220`,gradientUnits:`userSpaceOnUse`,children:[(0,c.jsx)(`stop`,{offset:`0`,stopColor:`#725BFF`}),(0,c.jsx)(`stop`,{offset:`0.52`,stopColor:`#9A50F4`}),(0,c.jsx)(`stop`,{offset:`1`,stopColor:`#CB55E8`})]})]}),(0,c.jsx)(`path`,{d:`M58 116V88C58 67 75 52 96 52H191C204 52 212 61 212 72C212 84 203 94 191 94H101C82 94 67 102 58 116Z`,fill:`url(#${t})`}),(0,c.jsx)(`path`,{d:`M58 170V139C58 120 72 107 91 107H162C174 107 182 115 182 126C182 137 174 145 162 145H99C79 145 66 154 58 170Z`,fill:`url(#${n})`}),(0,c.jsx)(`path`,{d:`M58 219V188C58 170 71 157 89 157H126C138 157 146 165 146 176C146 187 138 195 126 195H100C89 195 84 200 84 211C84 225 74 235 61 235H58Z`,fill:`url(#${r})`})]})}var Jr=(0,s.createContext)(null);function Yr(){let e=(0,s.useContext)(Jr);if(!e)throw Error(`Fanout runtime status is unavailable`);return e}async function Xr(e,t){let n=await fetch(e,{method:t===void 0?`GET`:`POST`,headers:t===void 0?void 0:{"Content-Type":`application/json`},body:t===void 0?void 0:JSON.stringify(t),credentials:`same-origin`}),r=await n.json().catch(()=>({}));if(!n.ok)throw Error(r.message??r.error??`Request failed (${n.status})`);return r}function Zr({children:e,wide:t=!1}){return(0,c.jsx)(q,{mih:`100dvh`,style:{background:`radial-gradient(circle at 50% -12%, rgba(70, 192, 142, 0.12), transparent 38%), linear-gradient(180deg, var(--mantine-color-gray-0), var(--mantine-color-white) 62%)`},children:(0,c.jsx)(er,{mih:`100dvh`,px:`md`,py:48,children:(0,c.jsx)(sr,{size:t?680:480,w:`100%`,children:(0,c.jsx)(Ut,{radius:28,p:{base:24,sm:40},style:{background:`rgba(255, 255, 255, 0.9)`,border:`1px solid rgba(31, 41, 55, 0.08)`,boxShadow:`0 28px 70px rgba(31, 41, 55, 0.10), 0 3px 10px rgba(31, 41, 55, 0.04)`,backdropFilter:`blur(18px)`},children:e})})})})}function Qr(){return typeof window>`u`?``:new URLSearchParams(window.location.search).get(`setup_token`)??``}function $r(){return typeof window>`u`?``:new URLSearchParams(window.location.search).get(`login_token`)??``}function ei({children:e}){let t=i(),[n,r]=(0,s.useState)(null),[a,o]=(0,s.useState)(!1),[l,u]=(0,s.useState)(`none`),[d,f]=(0,s.useState)(!1),[p,m]=(0,s.useState)(``),[h,g]=(0,s.useState)(``),[_,v]=(0,s.useState)(Qr),[y,b]=(0,s.useState)($r),[x,S]=(0,s.useState)(``),[C,w]=(0,s.useState)(!1),[T,E]=(0,s.useState)(!1),[D,O]=(0,s.useState)(``),[k,ee]=(0,s.useState)(null),[te,A]=(0,s.useState)(!1),j=Rr(),M=l===`user`;(0,s.useEffect)(()=>{let e=new URL(window.location.href);!e.searchParams.has(`setup_token`)&&!e.searchParams.has(`login_token`)||(e.searchParams.delete(`setup_token`),e.searchParams.delete(`login_token`),t({href:e.pathname+e.search+e.hash,replace:!0}))},[t]),(0,s.useEffect)(()=>{Br(),Xr(`/api/auth/status`).then(r).catch(e=>O(String(e))).finally(()=>o(!0)),fetch(`/api/auth/me`,{credentials:`same-origin`}).then(async e=>{if(!e.ok){u(`none`);return}let t=await e.json().catch(()=>null);u(zr(t))}).catch(()=>u(`none`)).finally(()=>f(!0));let e=()=>u(`none`);return window.addEventListener(Lr,e),()=>window.removeEventListener(Lr,e)},[]),(0,s.useEffect)(()=>{!d||l!==`none`||!y||(E(!0),O(``),Xr(`/api/auth/login-link`,{token:y}).then(()=>u(`user`)).catch(e=>O(e instanceof Error?e.message:String(e))).finally(()=>{b(``),E(!1)}))},[y,d,l]),(0,s.useEffect)(()=>{M&&d&&j&&window.location.replace(j)},[M,j,d]);async function N(){try{await navigator.clipboard.writeText(k?.ingest_token??``),A(!0)}catch{O(`Clipboard access failed. Select and copy the token manually.`)}}if(k?.ingest_token)return(0,c.jsx)(Zr,{wide:!0,children:(0,c.jsxs)($,{gap:`lg`,children:[(0,c.jsx)(Gr,{}),(0,c.jsxs)(`div`,{children:[(0,c.jsx)(Z,{c:`teal`,fw:700,size:`xs`,tt:`uppercase`,lts:`0.12em`,children:`Setup complete`}),(0,c.jsx)(xr,{order:1,mt:`xs`,fz:{base:30,sm:36},fw:650,lh:1.08,children:`Save your ingest token`})]}),(0,c.jsx)(Z,{c:`dimmed`,children:`Fanout shows this token once. Store it with your collector secrets before continuing.`}),(0,c.jsxs)($,{gap:`xs`,children:[(0,c.jsx)(Z,{size:`sm`,fw:600,children:`OTLP endpoint`}),(0,c.jsx)(rr,{block:!0,children:k.suggested_endpoint??`${window.location.hostname}:4317`})]}),(0,c.jsxs)($,{gap:`xs`,children:[(0,c.jsx)(Z,{size:`sm`,fw:600,children:`Header`}),(0,c.jsxs)(rr,{block:!0,children:[k.ingest_header_name??`Authorization`,`: Bearer `,k.ingest_token]})]}),D&&(0,c.jsx)(Bn,{color:`red`,radius:`md`,children:D}),(0,c.jsxs)(pn,{grow:!0,align:`stretch`,children:[(0,c.jsx)(Q,{variant:`light`,radius:`md`,leftSection:te?(0,c.jsx)(jr,{size:16,weight:`bold`}):(0,c.jsx)(Nr,{size:16}),onClick:()=>void N(),children:te?`Copied`:`Copy token`}),(0,c.jsx)(Q,{radius:`md`,rightSection:(0,c.jsx)(kr,{size:16,weight:`bold`}),onClick:()=>{u(`user`),ee(null)},children:`Continue to Fanout`})]})]})});if(!d||!a||y)return(0,c.jsx)(er,{mih:`100dvh`,children:(0,c.jsx)(nn,{size:`sm`})});if(!n)return(0,c.jsx)(Zr,{children:(0,c.jsxs)($,{gap:`lg`,children:[(0,c.jsx)(Gr,{}),(0,c.jsx)(xr,{order:1,children:`Fanout is unavailable`}),(0,c.jsx)(Bn,{color:`red`,radius:`md`,children:D||`Authentication status could not be loaded.`})]})});if(M&&j)return null;if(M)return(0,c.jsx)(Jr.Provider,{value:n,children:e});if(n&&!n.setup_required&&n.auth_mode===`oidc`){let e=j?`/api/auth/oidc/start?return_to=${encodeURIComponent(j)}`:`/api/auth/oidc/start`;return(0,c.jsx)(Zr,{children:(0,c.jsxs)($,{gap:28,children:[(0,c.jsx)(Gr,{}),(0,c.jsxs)($,{gap:10,children:[(0,c.jsx)(Z,{c:`teal.7`,fw:700,size:`xs`,tt:`uppercase`,lts:`0.12em`,children:`Secure workspace`}),(0,c.jsx)(xr,{order:1,fz:{base:30,sm:36},fw:650,lh:1.08,children:`Sign in to investigate`}),(0,c.jsx)(Z,{c:`dimmed`,size:`md`,lh:1.6,children:`Use your organization's identity provider to continue.`})]}),D&&(0,c.jsx)(Bn,{color:`red`,radius:`md`,children:D}),(0,c.jsx)(Q,{component:`a`,href:e,size:`md`,radius:`md`,rightSection:(0,c.jsx)(kr,{size:17,weight:`bold`}),children:`Continue with SSO`})]})})}async function ne(e){e.preventDefault(),E(!0),O(``);try{if(n?.setup_required){let e=await Xr(`/api/auth/setup`,{email:p,name:h,setup_token:_});e.ingest_token?ee(e):u(`user`)}else C?(await Xr(`/api/auth/verify`,{email:p,code:x}),u(`user`)):(await Xr(`/api/auth/start`,{email:p}),w(!0))}catch(e){O(e instanceof Error?e.message:String(e))}finally{E(!1)}}return(0,c.jsx)(Zr,{children:(0,c.jsxs)($,{gap:28,children:[(0,c.jsx)(Gr,{}),(0,c.jsxs)($,{gap:10,children:[(0,c.jsx)(Z,{c:`teal.7`,fw:700,size:`xs`,tt:`uppercase`,lts:`0.12em`,children:n?.setup_required?`One-time setup`:`Secure workspace`}),(0,c.jsx)(xr,{order:1,fz:{base:30,sm:36},fw:650,lh:1.08,children:n?.setup_required?`Create the first admin`:n?.self_signup?`Sign in or create an account`:`Sign in to investigate`}),(0,c.jsx)(Z,{c:`dimmed`,size:`md`,lh:1.6,maw:390,children:n?.setup_required?`Use the one-time token printed by the Fanout process.`:n?.smtp_configured?C?`Enter the verification code sent to ${p}.`:n?.self_signup?`Enter your email to sign in or create a viewer account. No password needed.`:`Enter your email and we’ll send a short verification code. No password needed.`:`Email delivery is not configured. Ask the operator to run fanout login-link with your email address.`})]}),(0,c.jsx)(`form`,{onSubmit:ne,children:(0,c.jsxs)($,{gap:`md`,children:[(0,c.jsx)(dr,{label:`Email`,placeholder:`you@company.com`,type:`email`,required:!0,value:p,onChange:e=>m(e.currentTarget.value),disabled:C,variant:`filled`,radius:`md`,size:`md`,autoFocus:!C}),n?.setup_required&&(0,c.jsx)(dr,{label:`Name`,placeholder:`Your name`,value:h,onChange:e=>g(e.currentTarget.value),variant:`filled`,radius:`md`,size:`md`}),n?.setup_required&&(0,c.jsx)(dr,{label:`Setup token`,placeholder:`from the setup URL printed at startup`,required:!0,value:_,onChange:e=>v(e.currentTarget.value),autoComplete:`one-time-code`,variant:`filled`,radius:`md`,size:`md`}),!n?.setup_required&&C&&(0,c.jsx)(dr,{label:`Verification code`,placeholder:`000000`,required:!0,value:x,onChange:e=>S(e.currentTarget.value),autoComplete:`one-time-code`,variant:`filled`,radius:`md`,size:`md`,styles:{input:{letterSpacing:`0.2em`,fontVariantNumeric:`tabular-nums`}},autoFocus:!0}),D&&(0,c.jsx)(Bn,{color:`red`,radius:`md`,children:D}),(0,c.jsx)(Q,{type:`submit`,size:`md`,radius:`md`,mt:4,loading:T,disabled:!n||!n.setup_required&&!n.smtp_configured,leftSection:n?.setup_required?(0,c.jsx)(Fr,{size:17,weight:`bold`}):void 0,rightSection:n?.setup_required?void 0:(0,c.jsx)(kr,{size:17,weight:`bold`}),children:n?.setup_required?`Create admin`:C?`Verify code`:`Send code`})]})})]})})}export{te as $,rt as A,ge as B,Bt as C,jt as D,G as E,Ie as F,V as G,Ce as H,Fe as I,z as J,B as K,De as L,W as M,Re as N,Dt as O,U as P,A as Q,he as R,Ut as S,K as T,ve as U,we as V,pe as W,re as X,R as Y,M as Z,X as _,Ur as a,x as at,nn as b,xr as c,b as ct,sr as d,h as dt,ee as et,er as f,d as ft,Ln as g,Bn as h,Hr as i,S as it,tt as j,Et as k,dr as l,_ as lt,Z as m,o as mt,Yr as n,O as nt,jr as o,w as ot,Q as p,l as pt,de as q,Gr as r,D as rt,Dr as s,y as st,ei as t,k as tt,$ as u,g as ut,pn as v,q as w,Yt as x,cn as y,H as z}; \ No newline at end of file +import{_ as e,a as t,d as n,f as r,n as i}from"./useNavigate-DyHkI5qo.js";var a=r((e=>{var t=n();function r(e){var t=`https://react.dev/errors/`+e;if(1{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=a()})),s=e(n(),1),c=t();function l(e){return Object.keys(e)}function u(e){return e&&typeof e==`object`&&!Array.isArray(e)}function d(e,t){let n={...e},r=t;return u(e)&&u(t)&&Object.keys(t).forEach(t=>{u(r[t])&&t in e?n[t]=d(n[t],r[t]):n[t]=r[t]}),n}function f(e){return e.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)}function p(e){return e===`0rem`?`0rem`:`calc(${e} * var(--mantine-scale))`}function m(e,{shouldScale:t=!1}={}){function n(r){if(r===0||r===`0`)return`0${e}`;if(typeof r==`number`){let n=`${r/16}${e}`;return t?p(n):n}if(typeof r==`string`){if(r===``||r.startsWith(`calc(`)||r.startsWith(`clamp(`)||r.includes(`rgba(`))return r;if(r.includes(`,`))return r.split(`,`).map(e=>n(e)).join(`,`);if(r.includes(` `))return r.split(` `).map(e=>n(e)).join(` `);let i=r.replace(`px`,``);if(!Number.isNaN(Number(i))){let n=`${Number(i)/16}${e}`;return t?p(n):n}}return r}return n}var h=m(`rem`,{shouldScale:!0}),g=m(`em`);function _(e){return Object.keys(e).reduce((t,n)=>(e[n]!==void 0&&(t[n]=e[n]),t),{})}function v(e){if(typeof e==`number`)return!0;if(typeof e==`string`){if(e.startsWith(`calc(`)||e.startsWith(`var(`)||e.includes(` `)&&e.trim()!==``)return!0;let t=/^[+-]?[0-9]+(\.[0-9]+)?(px|em|rem|ex|ch|lh|rlh|vw|vh|vmin|vmax|vb|vi|svw|svh|lvw|lvh|dvw|dvh|cm|mm|in|pt|pc|q|cqw|cqh|cqi|cqb|cqmin|cqmax|%)?$/;return e.trim().split(/\s+/).every(e=>t.test(e))}return!1}function y(e,t=`size`,n=!0){if(e!==void 0)return v(e)?n?h(e):e:`var(--${t}-${e})`}function b(e){return y(e,`mantine-spacing`)}function x(e){return e===void 0?`var(--mantine-radius-default)`:y(e,`mantine-radius`)}function S(e){return y(e,`mantine-font-size`)}function C(e){return y(e,`mantine-line-height`,!1)}function w(e){if(e)return y(e,`mantine-shadow`,!1)}function T(e=`mantine-`){return`${e}${Math.random().toString(36).slice(2,11)}`}function E(e,t){return typeof t==`boolean`?t:typeof window<`u`&&`matchMedia`in window&&window.matchMedia(e).matches}function D(e,t,{getInitialValueInEffect:n}={getInitialValueInEffect:!0}){let[r,i]=(0,s.useState)(n?t:E(e));return(0,s.useEffect)(()=>{try{if(`matchMedia`in window){let t=window.matchMedia(e);i(t.matches);let n=e=>i(e.matches);return t.addEventListener(`change`,n),()=>{t.removeEventListener(`change`,n)}}}catch{return}},[e]),r||!1}var O=typeof document<`u`?s.useLayoutEffect:s.useEffect;function k(e,t){let n=(0,s.useRef)(!1);(0,s.useEffect)(()=>()=>{n.current=!1},[]),(0,s.useEffect)(()=>{if(n.current)return e();n.current=!0},t)}function ee(e){let[t,n]=(0,s.useState)(`mantine-${(0,s.useId)().replace(/:/g,``)}`),r=(0,s.useRef)(!1);return O(()=>{r.current||(r.current=!0,n(T()))},[]),typeof e==`string`?e:t}function te(e,t){return D(`(prefers-reduced-motion: reduce)`,e,t)}function A(e){return e}function j(e){var t,n,r=``;if(typeof e==`string`||typeof e==`number`)r+=e;else if(typeof e==`object`)if(Array.isArray(e)){var i=e.length;for(t=0;t{Object.entries(e).forEach(([e,n])=>{t[e]?t[e]=M(t[e],n):t[e]=n})}),t}function P({theme:e,classNames:t,props:n,stylesCtx:r}){return ne((Array.isArray(t)?t:[t]).map(t=>typeof t==`function`?t(e,n,r):t||N))}function F({theme:e,styles:t,props:n,stylesCtx:r}){let i=Array.isArray(t)?t:[t],a={};for(let t of i)typeof t==`function`?Object.assign(a,t(e,n,r)):t&&Object.assign(a,t);return a}function re(e,t){return typeof e.primaryShade==`number`?e.primaryShade:t===`dark`?e.primaryShade.dark:e.primaryShade.light}function ie(e){return/^#?([0-9A-F]{3}){1,2}([0-9A-F]{2})?$/i.test(e)}function I(e){let t=e.replace(`#`,``);if(t.length===3){let e=t.split(``);t=[e[0],e[0],e[1],e[1],e[2],e[2]].join(``)}if(t.length===8){let e=parseInt(t.slice(6,8),16)/255;return{r:parseInt(t.slice(0,2),16),g:parseInt(t.slice(2,4),16),b:parseInt(t.slice(4,6),16),a:e}}let n=parseInt(t,16);return{r:n>>16&255,g:n>>8&255,b:n&255,a:1}}function L(e){let[t,n,r,i]=e.replace(/[^0-9,./]/g,``).split(/[/,]/).map(Number);return{r:t,g:n,b:r,a:i===void 0?1:i}}function ae(e){let t=e.match(/^hsla?\(\s*(\d+)\s*,\s*(\d+%)\s*,\s*(\d+%)\s*(,\s*(0?\.\d+|\d+(\.\d+)?))?\s*\)$/i);if(!t)return{r:0,g:0,b:0,a:1};let n=parseInt(t[1],10),r=parseInt(t[2],10)/100,i=parseInt(t[3],10)/100,a=t[5]?parseFloat(t[5]):void 0,o=(1-Math.abs(2*i-1))*r,s=n/60,c=o*(1-Math.abs(s%2-1)),l=i-o/2,u,d,f;return s>=0&&s<1?(u=o,d=c,f=0):s>=1&&s<2?(u=c,d=o,f=0):s>=2&&s<3?(u=0,d=o,f=c):s>=3&&s<4?(u=0,d=c,f=o):s>=4&&s<5?(u=c,d=0,f=o):(u=o,d=0,f=c),{r:Math.round((u+l)*255),g:Math.round((d+l)*255),b:Math.round((f+l)*255),a:a||1}}function oe(e){return ie(e)?I(e):e.startsWith(`rgb`)?L(e):e.startsWith(`hsl`)?ae(e):{r:0,g:0,b:0,a:1}}function se(e){return e<=.03928?e/12.92:((e+.055)/1.055)**2.4}function ce(e){let t=e.match(/oklch\((.*?)%\s/);return t?parseFloat(t[1]):null}function le(e){if(e.startsWith(`oklch(`))return(ce(e)||0)/100;let{r:t,g:n,b:r}=oe(e),i=t/255,a=n/255,o=r/255,s=se(i),c=se(a),l=se(o);return .2126*s+.7152*c+.0722*l}function ue(e,t=.179){return!e.startsWith(`var(`)&&le(e)>t}function R({color:e,theme:t,colorScheme:n}){if(typeof e!=`string`)throw Error(`[@mantine/core] Failed to parse color. Expected color to be a string, instead got ${typeof e}`);if(e===`bright`)return{color:e,value:n===`dark`?t.white:t.black,shade:void 0,isThemeColor:!1,isLight:ue(n===`dark`?t.white:t.black,t.luminanceThreshold),variable:`--mantine-color-bright`};if(e===`dimmed`)return{color:e,value:n===`dark`?t.colors.dark[2]:t.colors.gray[7],shade:void 0,isThemeColor:!1,isLight:ue(n===`dark`?t.colors.dark[2]:t.colors.gray[6],t.luminanceThreshold),variable:`--mantine-color-dimmed`};if(e===`white`||e===`black`)return{color:e,value:e===`white`?t.white:t.black,shade:void 0,isThemeColor:!1,isLight:ue(e===`white`?t.white:t.black,t.luminanceThreshold),variable:`--mantine-color-${e}`};let[r,i]=e.split(`.`),a=i?Number(i):void 0,o=r in t.colors;if(o){let e=a===void 0?t.colors[r][re(t,n||`light`)]:t.colors[r][a];return{color:r,value:e,shade:a,isThemeColor:o,isLight:ue(e,t.luminanceThreshold),variable:i?`--mantine-color-${r}-${a}`:`--mantine-color-${r}-filled`}}return{color:e,value:e,isThemeColor:o,isLight:ue(e,t.luminanceThreshold),shade:a,variable:void 0}}function z(e,t){let n=R({color:e||t.primaryColor,theme:t});return n.variable?`var(${n.variable})`:e}function de(e){return!!e&&typeof e==`object`&&`mantine-virtual-color`in e}function B(e,t){if(e.startsWith(`var(`))return`color-mix(in srgb, ${e}, black ${t*100}%)`;let{r:n,g:r,b:i,a}=oe(e),o=1-t,s=e=>Math.round(e*o);return`rgba(${s(n)}, ${s(r)}, ${s(i)}, ${a})`}function fe(e,t){let n={from:e?.from||t.defaultGradient.from,to:e?.to||t.defaultGradient.to,deg:e?.deg??t.defaultGradient.deg??0},r=z(n.from,t),i=z(n.to,t);return`linear-gradient(${n.deg}deg, ${r} 0%, ${i} 100%)`}function V(e,t){if(typeof e!=`string`||t>1||t<0)return`rgba(0, 0, 0, 1)`;if(e.startsWith(`var(`))return`color-mix(in srgb, ${e}, transparent ${(1-t)*100}%)`;if(e.startsWith(`oklch`))return e.includes(`/`)?e.replace(/\/\s*[\d.]+\s*\)/,`/ ${t})`):e.replace(`)`,` / ${t})`);let{r:n,g:r,b:i}=oe(e);return`rgba(${n}, ${r}, ${i}, ${t})`}var pe=V,me=({color:e,theme:t,variant:n,gradient:r,autoContrast:i})=>{let a=R({color:e,theme:t}),o=typeof i==`boolean`?i:t.autoContrast;if(n===`none`)return{background:`transparent`,hover:`transparent`,color:`inherit`,border:`none`};if(n===`filled`){let n=a.isThemeColor&&a.shade===void 0&&de(t.colors[a.color]),r=o?n?`var(--mantine-color-${a.color}-contrast)`:a.isLight?`var(--mantine-color-black)`:`var(--mantine-color-white)`:`var(--mantine-color-white)`;return a.isThemeColor?a.shade===void 0?{background:`var(--mantine-color-${e}-filled)`,hover:`var(--mantine-color-${e}-filled-hover)`,color:r,border:`${h(1)} solid transparent`}:{background:`var(--mantine-color-${a.color}-${a.shade})`,hover:`var(--mantine-color-${a.color}-${a.shade===9?8:a.shade+1})`,color:r,border:`${h(1)} solid transparent`}:{background:e,hover:B(e,.1),color:r,border:`${h(1)} solid transparent`}}if(n===`light`){if(a.isThemeColor){if(a.shade===void 0)return{background:`var(--mantine-color-${e}-light)`,hover:`var(--mantine-color-${e}-light-hover)`,color:`var(--mantine-color-${e}-light-color)`,border:`${h(1)} solid transparent`};let n=t.colors[a.color][a.shade];return{background:n,hover:B(n,.1),color:`var(--mantine-color-${a.color}-light-color)`,border:`${h(1)} solid transparent`}}return{background:V(e,.1),hover:V(e,.12),color:e,border:`${h(1)} solid transparent`}}if(n===`outline`)return a.isThemeColor?a.shade===void 0?{background:`transparent`,hover:`var(--mantine-color-${e}-outline-hover)`,color:`var(--mantine-color-${e}-outline)`,border:`${h(1)} solid var(--mantine-color-${e}-outline)`}:{background:`transparent`,hover:V(t.colors[a.color][a.shade],.05),color:`var(--mantine-color-${a.color}-${a.shade})`,border:`${h(1)} solid var(--mantine-color-${a.color}-${a.shade})`}:{background:`transparent`,hover:V(e,.05),color:e,border:`${h(1)} solid ${e}`};if(n===`subtle`){if(a.isThemeColor){if(a.shade===void 0)return{background:`transparent`,hover:`var(--mantine-color-${e}-light-hover)`,color:`var(--mantine-color-${e}-light-color)`,border:`${h(1)} solid transparent`};let n=t.colors[a.color][a.shade];return{background:`transparent`,hover:V(n,.12),color:`var(--mantine-color-${a.color}-${Math.min(a.shade,6)})`,border:`${h(1)} solid transparent`}}return{background:`transparent`,hover:V(e,.12),color:e,border:`${h(1)} solid transparent`}}return n===`transparent`?a.isThemeColor?a.shade===void 0?{background:`transparent`,hover:`transparent`,color:`var(--mantine-color-${e}-light-color)`,border:`${h(1)} solid transparent`}:{background:`transparent`,hover:`transparent`,color:`var(--mantine-color-${a.color}-${Math.min(a.shade,6)})`,border:`${h(1)} solid transparent`}:{background:`transparent`,hover:`transparent`,color:e,border:`${h(1)} solid transparent`}:n===`white`?a.isThemeColor?a.shade===void 0?{background:`var(--mantine-color-white)`,hover:B(t.white,.01),color:`var(--mantine-color-${e}-filled)`,border:`${h(1)} solid transparent`}:{background:`var(--mantine-color-white)`,hover:B(t.white,.01),color:`var(--mantine-color-${a.color}-${a.shade})`,border:`${h(1)} solid transparent`}:{background:`var(--mantine-color-white)`,hover:B(t.white,.01),color:e,border:`${h(1)} solid transparent`}:n===`gradient`?{background:fe(r,t),hover:fe(r,t),color:`var(--mantine-color-white)`,border:`none`}:n==="default"?{background:`var(--mantine-color-default)`,hover:`var(--mantine-color-default-hover)`,color:`var(--mantine-color-default-color)`,border:`${h(1)} solid var(--mantine-color-default-border)`}:{}},he=(0,s.createContext)(null);function H(){let e=(0,s.use)(he);if(!e)throw Error(`[@mantine/core] MantineProvider was not found in tree`);return e}function ge(){return H().cssVariablesResolver}function _e(){return H().classNamesPrefix}function ve(){return H().getStyleNonce}function ye(){return H().withStaticClasses}function be(){return H().headless}function xe(){return H().stylesTransform?.sx}function Se(){return H().stylesTransform?.styles}function Ce(){return H().env||`default`}function we(){return H().deduplicateInlineStyles}var Te={dark:[`#C9C9C9`,`#b8b8b8`,`#828282`,`#696969`,`#424242`,`#3b3b3b`,`#2e2e2e`,`#242424`,`#1f1f1f`,`#141414`],gray:[`#f8f9fa`,`#f1f3f5`,`#e9ecef`,`#dee2e6`,`#ced4da`,`#adb5bd`,`#868e96`,`#495057`,`#343a40`,`#212529`],red:[`#fff5f5`,`#ffe3e3`,`#ffc9c9`,`#ffa8a8`,`#ff8787`,`#ff6b6b`,`#fa5252`,`#f03e3e`,`#e03131`,`#c92a2a`],pink:[`#fff0f6`,`#ffdeeb`,`#fcc2d7`,`#faa2c1`,`#f783ac`,`#f06595`,`#e64980`,`#d6336c`,`#c2255c`,`#a61e4d`],grape:[`#f8f0fc`,`#f3d9fa`,`#eebefa`,`#e599f7`,`#da77f2`,`#cc5de8`,`#be4bdb`,`#ae3ec9`,`#9c36b5`,`#862e9c`],violet:[`#f3f0ff`,`#e5dbff`,`#d0bfff`,`#b197fc`,`#9775fa`,`#845ef7`,`#7950f2`,`#7048e8`,`#6741d9`,`#5f3dc4`],indigo:[`#edf2ff`,`#dbe4ff`,`#bac8ff`,`#91a7ff`,`#748ffc`,`#5c7cfa`,`#4c6ef5`,`#4263eb`,`#3b5bdb`,`#364fc7`],blue:[`#e7f5ff`,`#d0ebff`,`#a5d8ff`,`#74c0fc`,`#4dabf7`,`#339af0`,`#228be6`,`#1c7ed6`,`#1971c2`,`#1864ab`],cyan:[`#e3fafc`,`#c5f6fa`,`#99e9f2`,`#66d9e8`,`#3bc9db`,`#22b8cf`,`#15aabf`,`#1098ad`,`#0c8599`,`#0b7285`],teal:[`#e6fcf5`,`#c3fae8`,`#96f2d7`,`#63e6be`,`#38d9a9`,`#20c997`,`#12b886`,`#0ca678`,`#099268`,`#087f5b`],green:[`#ebfbee`,`#d3f9d8`,`#b2f2bb`,`#8ce99a`,`#69db7c`,`#51cf66`,`#40c057`,`#37b24d`,`#2f9e44`,`#2b8a3e`],lime:[`#f4fce3`,`#e9fac8`,`#d8f5a2`,`#c0eb75`,`#a9e34b`,`#94d82d`,`#82c91e`,`#74b816`,`#66a80f`,`#5c940d`],yellow:[`#fff9db`,`#fff3bf`,`#ffec99`,`#ffe066`,`#ffd43b`,`#fcc419`,`#fab005`,`#f59f00`,`#f08c00`,`#e67700`],orange:[`#fff4e6`,`#ffe8cc`,`#ffd8a8`,`#ffc078`,`#ffa94d`,`#ff922b`,`#fd7e14`,`#f76707`,`#e8590c`,`#d9480f`]},Ee=`-apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji`,De={scale:1,fontSmoothing:!0,focusRing:`auto`,white:`#fff`,black:`#000`,colors:Te,primaryShade:{light:6,dark:8},primaryColor:`blue`,variantColorResolver:me,autoContrast:!1,luminanceThreshold:.3,fontFamily:Ee,fontFamilyMonospace:`ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, Courier New, monospace`,respectReducedMotion:!1,cursorType:`default`,defaultGradient:{from:`blue`,to:`cyan`,deg:45},defaultRadius:`md`,activeClassName:`mantine-active`,focusClassName:``,headings:{fontFamily:Ee,fontWeight:`700`,textWrap:`wrap`,sizes:{h1:{fontSize:h(34),lineHeight:`1.3`},h2:{fontSize:h(26),lineHeight:`1.35`},h3:{fontSize:h(22),lineHeight:`1.4`},h4:{fontSize:h(18),lineHeight:`1.45`},h5:{fontSize:h(16),lineHeight:`1.5`},h6:{fontSize:h(14),lineHeight:`1.5`}}},fontSizes:{xs:h(12),sm:h(14),md:h(16),lg:h(18),xl:h(20)},lineHeights:{xs:`1.4`,sm:`1.45`,md:`1.55`,lg:`1.6`,xl:`1.65`},fontWeights:{regular:`400`,medium:`600`,bold:`700`},radius:{xs:h(2),sm:h(4),md:h(8),lg:h(16),xl:h(32)},spacing:{xs:h(10),sm:h(12),md:h(16),lg:h(20),xl:h(32)},breakpoints:{xs:`36em`,sm:`48em`,md:`62em`,lg:`75em`,xl:`88em`},shadows:{xs:`0 ${h(1)} ${h(3)} rgba(0, 0, 0, 0.05), 0 ${h(1)} ${h(2)} rgba(0, 0, 0, 0.1)`,sm:`0 ${h(1)} ${h(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${h(10)} ${h(15)} ${h(-5)}, rgba(0, 0, 0, 0.04) 0 ${h(7)} ${h(7)} ${h(-5)}`,md:`0 ${h(1)} ${h(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${h(20)} ${h(25)} ${h(-5)}, rgba(0, 0, 0, 0.04) 0 ${h(10)} ${h(10)} ${h(-5)}`,lg:`0 ${h(1)} ${h(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${h(28)} ${h(23)} ${h(-7)}, rgba(0, 0, 0, 0.04) 0 ${h(12)} ${h(12)} ${h(-7)}`,xl:`0 ${h(1)} ${h(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${h(36)} ${h(28)} ${h(-7)}, rgba(0, 0, 0, 0.04) 0 ${h(17)} ${h(17)} ${h(-7)}`},other:{},components:{}},Oe=`[@mantine/core] MantineProvider: Invalid theme.primaryColor, it accepts only key of theme.colors, learn more – https://mantine.dev/theming/colors/#primary-color`,ke=`[@mantine/core] MantineProvider: Invalid theme.primaryShade, it accepts only 0-9 integers or an object { light: 0-9, dark: 0-9 }`;function Ae(e){return e<0||e>9?!1:parseInt(e.toString(),10)===e}function je(e){if(!(e.primaryColor in e.colors))throw Error(Oe);if(typeof e.primaryShade==`object`&&(!Ae(e.primaryShade.dark)||!Ae(e.primaryShade.light))||typeof e.primaryShade==`number`&&!Ae(e.primaryShade))throw Error(ke)}function Me(e,t){if(!t)return je(e),e;let n=d(e,t);return t.fontFamily&&!t.headings?.fontFamily&&(n.headings={...n.headings,fontFamily:t.fontFamily}),je(n),n}var Ne=(0,s.createContext)(null),Pe=()=>(0,s.use)(Ne)||De;function Fe(){let e=(0,s.use)(Ne);if(!e)throw Error(`@mantine/core: MantineProvider was not found in component tree, make sure you have it in your app`);return e}function Ie({theme:e,children:t,inherit:n=!0}){let r=Pe(),i=(0,s.useMemo)(()=>Me(n?r:De,e),[e,r,n]);return(0,c.jsx)(Ne,{value:i,children:t})}Ie.displayName=`@mantine/core/MantineThemeProvider`;function U(e,t,n){let r=Fe(),i=(Array.isArray(e)?e:[e]).filter(Boolean),a={};for(let e of i){let t=r.components[e]?.defaultProps,n=typeof t==`function`?t(r):t;n&&(a={...a,...n})}return{...t,...a,..._(n)}}var Le=e(o(),1);function Re({classNames:e,styles:t,props:n,stylesCtx:r}){let i=Fe();return{resolvedClassNames:e===void 0?void 0:P({theme:i,classNames:e,props:n,stylesCtx:r||void 0}),resolvedStyles:t===void 0?void 0:F({theme:i,styles:t,props:n,stylesCtx:r||void 0})}}var ze={always:`mantine-focus-always`,auto:`mantine-focus-auto`,never:`mantine-focus-never`};function Be({theme:e,options:t,unstyled:n}){return M(t?.focusable&&!n&&(e.focusClassName||ze[e.focusRing]),t?.active&&!n&&e.activeClassName)}function Ve({selector:e,stylesCtx:t,options:n,props:r,theme:i}){return P({theme:i,classNames:n?.classNames,props:n?.props||r,stylesCtx:t})[e]}function He({selector:e,stylesCtx:t,theme:n,classNames:r,props:i}){return P({theme:n,classNames:r,props:i,stylesCtx:t})[e]}function Ue({rootSelector:e,selector:t,className:n}){return e===t?n:void 0}function We({selector:e,classes:t,unstyled:n}){return n?void 0:t[e]}function Ge({themeName:e,classNamesPrefix:t,selector:n,withStaticClass:r}){return r===!1?[]:e.map(e=>`${t}-${e}-${n}`)}function Ke({options:e,classes:t,selector:n,unstyled:r}){return e?.variant&&!r?t[`${n}--${e.variant}`]:void 0}function qe({theme:e,options:t,themeName:n,selector:r,classNamesPrefix:i,resolvedClassNames:a,resolvedThemeClassNames:o,classes:s,unstyled:c,className:l,rootSelector:u,props:d,stylesCtx:f,withStaticClasses:p,headless:m,transformedStyles:h}){return M(Be({theme:e,options:t,unstyled:c||m}),o.map(e=>e[r]),Ke({options:t,classes:s,selector:r,unstyled:c||m}),a[r],He({selector:r,stylesCtx:f,theme:e,classNames:h,props:d}),Ve({selector:r,stylesCtx:f,options:t,props:d,theme:e}),Ue({rootSelector:u,selector:r,className:l}),We({selector:r,classes:s,unstyled:c||m}),p&&!m&&Ge({themeName:n,classNamesPrefix:i,selector:r,withStaticClass:t?.withStaticClass}),t?.className)}function Je({style:e,theme:t}){return Array.isArray(e)?e.reduce((e,n)=>({...e,...Je({style:n,theme:t})}),{}):typeof e==`function`?e(t):e??{}}function Ye({theme:e,selector:t,options:n,props:r,stylesCtx:i,rootSelector:a,withStylesTransform:o,resolvedStyles:s,resolvedThemeStyles:c,resolvedVars:l,resolvedRootStyle:u}){return{...c[t],...s[t],...!o&&F({theme:e,styles:n?.styles,props:n?.props||r,stylesCtx:i})[t],...l[t],...a===t?u:null,...Je({style:n?.style,theme:e})}}function Xe(e){return e.reduce((e,t)=>(t&&Object.keys(t).forEach(n=>{e[n]={...e[n],..._(t[n])}}),e),{})}function Ze({props:e,stylesCtx:t,themeName:n,theme:r}){let i=Se()?.();return{getTransformedStyles:a=>i?[...a.map(n=>i(n,{props:e,theme:r,ctx:t})),...n.map(n=>i(r.components[n]?.styles,{props:e,theme:r,ctx:t}))].filter(Boolean):[],withStylesTransform:!!i}}function W({name:e,classes:t,props:n,stylesCtx:r,className:i,style:a,rootSelector:o=`root`,unstyled:s,classNames:c,styles:l,vars:u,varsResolver:d,attributes:f}){let p=Fe(),m=_e(),h=ye(),g=be(),_=(Array.isArray(e)?e:[e]).filter(e=>e),{withStylesTransform:v,getTransformedStyles:y}=Ze({props:n,stylesCtx:r,themeName:_,theme:p}),b=P({theme:p,classNames:c,props:n,stylesCtx:r}),x=_.map(e=>P({theme:p,classNames:p.components[e]?.classNames,props:n,stylesCtx:r})),S=v?{}:F({theme:p,styles:l,props:n,stylesCtx:r}),C={};if(!v)for(let e of _){let t=F({theme:p,styles:p.components[e]?.styles,props:n,stylesCtx:r});for(let e of Object.keys(t))C[e]={...C[e],...t[e]}}let w=Xe([g?{}:d?.(p,n,r),..._.map(e=>p.components?.[e]?.vars?.(p,n,r)),u?.(p,n,r)]),T=Je({style:a,theme:p});return(e,a)=>({...f?.[e],className:qe({theme:p,options:a,themeName:_,selector:e,classNamesPrefix:m,resolvedClassNames:b,resolvedThemeClassNames:x,classes:t,unstyled:s,className:i,rootSelector:o,props:n,stylesCtx:r,withStaticClasses:h,headless:g,transformedStyles:y([a?.styles,l])}),style:Ye({theme:p,selector:e,options:a,props:n,stylesCtx:r,rootSelector:o,withStylesTransform:v,resolvedStyles:S,resolvedThemeStyles:C,resolvedVars:w,resolvedRootStyle:T})})}function Qe(e){return l(e).reduce((t,n)=>e[n]===void 0?t:`${t}${f(n)}:${e[n]};`,``).trim()}function $e({selector:e,styles:t,media:n,container:r}){let i=t?Qe(t):``,a=Array.isArray(n)?n.map(t=>`@media${t.query}{${e}{${Qe(t.styles)}}}`):[],o=Array.isArray(r)?r.map(t=>`@container ${t.query}{${e}{${Qe(t.styles)}}}`):[];return`${i?`${e}{${i}}`:``}${a.join(``)}${o.join(``)}`.trim()}function et(e){let t=5381;for(let n=0;n>>0).toString(36)}function tt({deduplicate:e,...t}){let n=ve(),r=$e(t);return e?(0,c.jsx)(`style`,{href:`mantine-${et(r)}`,precedence:`mantine`,nonce:n?.(),children:r}):(0,c.jsx)(`style`,{"data-mantine-styles":`inline`,nonce:n?.(),dangerouslySetInnerHTML:{__html:r}})}function nt(e){let t=5381;for(let n=0;n>>0).toString(36)}function rt(e,t){return`__mdi__-${nt(`${e?Qe(e):``}|${Array.isArray(t)?t.map(e=>`${e.query}:${Qe(e.styles)}`).join(`|`):``}`)}`}function it(e){let{m:t,mx:n,my:r,mt:i,mb:a,ml:o,mr:s,me:c,ms:l,mis:u,mie:d,p:f,px:p,py:m,pt:h,pb:g,pl:v,pr:y,pe:b,ps:x,pis:S,pie:C,bd:w,bdrs:T,bg:E,c:D,opacity:O,ff:k,fz:ee,fw:te,lts:A,ta:j,lh:M,fs:N,tt:ne,td:P,w:F,miw:re,maw:ie,h:I,mih:L,mah:ae,bgsz:oe,bgp:se,bgr:ce,bga:le,pos:ue,top:R,left:z,bottom:de,right:B,inset:fe,display:V,flex:pe,hiddenFrom:me,visibleFrom:he,lightHidden:H,darkHidden:ge,sx:_e,...ve}=e;return{styleProps:_({m:t,mx:n,my:r,mt:i,mb:a,ml:o,mr:s,me:c,ms:l,mis:u,mie:d,p:f,px:p,py:m,pt:h,pb:g,pl:v,pr:y,pis:S,pie:C,pe:b,ps:x,bd:w,bg:E,c:D,opacity:O,ff:k,fz:ee,fw:te,lts:A,ta:j,lh:M,fs:N,tt:ne,td:P,w:F,miw:re,maw:ie,h:I,mih:L,mah:ae,bgsz:oe,bgp:se,bgr:ce,bga:le,pos:ue,top:R,left:z,bottom:de,right:B,inset:fe,display:V,flex:pe,bdrs:T,hiddenFrom:me,visibleFrom:he,lightHidden:H,darkHidden:ge,sx:_e}),rest:ve}}var at={m:{type:`spacing`,property:`margin`},mt:{type:`spacing`,property:`marginTop`},mb:{type:`spacing`,property:`marginBottom`},ml:{type:`spacing`,property:`marginLeft`},mr:{type:`spacing`,property:`marginRight`},ms:{type:`spacing`,property:`marginInlineStart`},me:{type:`spacing`,property:`marginInlineEnd`},mis:{type:`spacing`,property:`marginInlineStart`},mie:{type:`spacing`,property:`marginInlineEnd`},mx:{type:`spacing`,property:`marginInline`},my:{type:`spacing`,property:`marginBlock`},p:{type:`spacing`,property:`padding`},pt:{type:`spacing`,property:`paddingTop`},pb:{type:`spacing`,property:`paddingBottom`},pl:{type:`spacing`,property:`paddingLeft`},pr:{type:`spacing`,property:`paddingRight`},ps:{type:`spacing`,property:`paddingInlineStart`},pe:{type:`spacing`,property:`paddingInlineEnd`},pis:{type:`spacing`,property:`paddingInlineStart`},pie:{type:`spacing`,property:`paddingInlineEnd`},px:{type:`spacing`,property:`paddingInline`},py:{type:`spacing`,property:`paddingBlock`},bd:{type:`border`,property:`border`},bdrs:{type:`radius`,property:`borderRadius`},bg:{type:`color`,property:`background`},c:{type:`textColor`,property:`color`},opacity:{type:`identity`,property:`opacity`},ff:{type:`fontFamily`,property:`fontFamily`},fz:{type:`fontSize`,property:`fontSize`},fw:{type:`identity`,property:`fontWeight`},lts:{type:`size`,property:`letterSpacing`},ta:{type:`identity`,property:`textAlign`},lh:{type:`lineHeight`,property:`lineHeight`},fs:{type:`identity`,property:`fontStyle`},tt:{type:`identity`,property:`textTransform`},td:{type:`identity`,property:`textDecoration`},w:{type:`spacing`,property:`width`},miw:{type:`spacing`,property:`minWidth`},maw:{type:`spacing`,property:`maxWidth`},h:{type:`spacing`,property:`height`},mih:{type:`spacing`,property:`minHeight`},mah:{type:`spacing`,property:`maxHeight`},bgsz:{type:`size`,property:`backgroundSize`},bgp:{type:`identity`,property:`backgroundPosition`},bgr:{type:`identity`,property:`backgroundRepeat`},bga:{type:`identity`,property:`backgroundAttachment`},pos:{type:`identity`,property:`position`},top:{type:`size`,property:`top`},left:{type:`size`,property:`left`},bottom:{type:`size`,property:`bottom`},right:{type:`size`,property:`right`},inset:{type:`size`,property:`inset`},display:{type:`identity`,property:`display`},flex:{type:`identity`,property:`flex`}};function ot(e,t){let n=R({color:e,theme:t});return n.color===`dimmed`?`var(--mantine-color-dimmed)`:n.color===`bright`?`var(--mantine-color-bright)`:n.variable?`var(${n.variable})`:n.color}function st(e,t){let n=R({color:e,theme:t});return n.isThemeColor&&n.shade===void 0?`var(--mantine-color-${n.color}-text)`:ot(e,t)}function ct(e,t){if(typeof e==`number`)return h(e);if(typeof e==`string`){let[n,r,...i]=e.split(` `).filter(e=>e.trim()!==``),a=`${h(n)}`;return r&&(a+=` ${r}`),i.length>0&&(a+=` ${ot(i.join(` `),t)}`),a.trim()}return e}var lt={text:`var(--mantine-font-family)`,mono:`var(--mantine-font-family-monospace)`,monospace:`var(--mantine-font-family-monospace)`,heading:`var(--mantine-font-family-headings)`,headings:`var(--mantine-font-family-headings)`};function ut(e){return typeof e==`string`&&e in lt?lt[e]:e}var dt=[`h1`,`h2`,`h3`,`h4`,`h5`,`h6`];function ft(e,t){return typeof e==`string`&&e in t.fontSizes?`var(--mantine-font-size-${e})`:typeof e==`string`&&dt.includes(e)?`var(--mantine-${e}-font-size)`:typeof e==`number`||typeof e==`string`?h(e):e}function pt(e){return e}var mt=[`h1`,`h2`,`h3`,`h4`,`h5`,`h6`];function ht(e,t){return typeof e==`string`&&e in t.lineHeights?`var(--mantine-line-height-${e})`:typeof e==`string`&&mt.includes(e)?`var(--mantine-${e}-line-height)`:e}function gt(e,t){return typeof e==`string`&&e in t.radius?`var(--mantine-radius-${e})`:typeof e==`number`||typeof e==`string`?h(e):e}function _t(e){return typeof e==`number`?h(e):e}function vt(e,t){if(typeof e==`number`)return h(e);if(typeof e==`string`){let n=e.replace(`-`,``);if(!(n in t.spacing))return h(e);let r=`--mantine-spacing-${n}`;return e.startsWith(`-`)?`calc(var(${r}) * -1)`:`var(${r})`}return e}var yt={color:ot,textColor:st,fontSize:ft,spacing:vt,radius:gt,identity:pt,size:_t,lineHeight:ht,fontFamily:ut,border:ct};function bt(e){return e.replace(`(min-width: `,``).replace(`em)`,``)}function xt({media:e,...t}){let n=Object.keys(e).sort((e,t)=>Number(bt(e))-Number(bt(t))).map(t=>({query:t,styles:e[t]}));return{...t,media:n}}function St(e){if(typeof e!=`object`||!e)return!1;let t=Object.keys(e);return t.length!==1||t[0]!==`base`}function Ct(e){return typeof e==`object`&&e?`base`in e?e.base:void 0:e}function wt(e){return typeof e==`object`&&e?l(e).filter(e=>e!==`base`):[]}function Tt(e,t){return typeof e==`object`&&e&&t in e?e[t]:e}function Et({styleProps:e,data:t,theme:n}){return xt(l(e).reduce((r,i)=>{if(i===`hiddenFrom`||i===`visibleFrom`||i===`sx`)return r;let a=t[i],o=Array.isArray(a.property)?a.property:[a.property],s=Ct(e[i]);if(!St(e[i]))return o.forEach(e=>{r.inlineStyles[e]=yt[a.type](s,n)}),r;r.hasResponsiveStyles=!0;let c=wt(e[i]);return o.forEach(t=>{s!=null&&(r.styles[t]=yt[a.type](s,n)),c.forEach(o=>{let s=`(min-width: ${n.breakpoints[o]})`;r.media[s]={...r.media[s],[t]:yt[a.type](Tt(e[i],o),n)}})}),r},{hasResponsiveStyles:!1,styles:{},inlineStyles:{},media:{}}))}function Dt(){return`__m__-${(0,s.useId)().replace(/[:«»]/g,``)}`}function Ot(e){return e}var kt=Ot;function At(e){return e}function G(e){let t=e;return t.extend=At,t.withProps=e=>{let n=n=>(0,c.jsx)(t,{...e,...n});return n.extend=t.extend,n.displayName=`WithProps(${t.displayName})`,n},t}function jt(e){return G(e)}function K(e){let t=e;return t.withProps=e=>{let n=n=>(0,c.jsx)(t,{...e,...n});return n.extend=t.extend,n.displayName=`WithProps(${t.displayName})`,n},t.extend=At,t}function Mt(e){return`data-${(e.startsWith(`data-`)?e.slice(5):e).replace(/([a-z])([A-Z])/g,`$1-$2`).toLowerCase()}`}function Nt(e){return Object.keys(e).reduce((t,n)=>{let r=e[n];return r===void 0||r===``||r===!1||r===null||(t[Mt(n)]=e[n]),t},{})}function Pt(e){return e?typeof e==`string`?{[Mt(e)]:!0}:Array.isArray(e)?[...e].reduce((e,t)=>({...e,...Pt(t)}),{}):Nt(e):null}function Ft(e,t){return Array.isArray(e)?[...e].reduce((e,n)=>({...e,...Ft(n,t)}),{}):typeof e==`function`?e(t):e??{}}function It({theme:e,style:t,vars:n,styleProps:r}){let i=Ft(t,e),a=Ft(n,e);return{...i,...a,...r}}function Lt({component:e,style:t,__vars:n,className:r,variant:i,mod:a,size:o,hiddenFrom:s,visibleFrom:l,lightHidden:u,darkHidden:d,renderRoot:f,__size:p,ref:m,...h}){let g=Fe(),_=e||`div`,{styleProps:y,rest:b}=it(h),x=xe()?.()?.(y.sx),S=Dt(),C=Et({styleProps:y,theme:g,data:at}),w=we(),T=w&&C.hasResponsiveStyles?rt(C.styles,C.media):S,E={ref:m,style:It({theme:g,style:t,vars:n,styleProps:C.inlineStyles}),className:M(r,x,{[T]:C.hasResponsiveStyles,"mantine-light-hidden":u,"mantine-dark-hidden":d,[`mantine-hidden-from-${s}`]:s,[`mantine-visible-from-${l}`]:l}),"data-variant":i,"data-size":v(o)?void 0:o||void 0,size:p,...Pt(a),...b};return(0,c.jsxs)(c.Fragment,{children:[C.hasResponsiveStyles&&(0,c.jsx)(tt,{selector:`.${T}`,styles:C.styles,media:C.media,deduplicate:w}),typeof f==`function`?f(E):(0,c.jsx)(_,{...E})]})}Lt.displayName=`@mantine/core/Box`;var q=kt(Lt),Rt={root:`m_87cf2631`},zt={__staticSelector:`UnstyledButton`},Bt=K(e=>{let t=U(`UnstyledButton`,zt,e),{className:n,component:r=`button`,__staticSelector:i,unstyled:a,classNames:o,styles:s,style:l,attributes:u,...d}=t;return(0,c.jsx)(q,{...W({name:i,props:t,classes:Rt,className:n,style:l,classNames:o,styles:s,unstyled:a,attributes:u})(`root`,{focusable:!0}),component:r,type:r===`button`?`button`:void 0,...d})});Bt.classes=Rt,Bt.displayName=`@mantine/core/UnstyledButton`;var Vt={root:`m_1b7284a3`},Ht=A((e,{radius:t,shadow:n})=>({root:{"--paper-radius":t===void 0?void 0:x(t),"--paper-shadow":w(n)}})),Ut=K(e=>{let t=U(`Paper`,null,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,withBorder:s,vars:l,radius:u,shadow:d,variant:f,mod:p,attributes:m,...h}=t,g=W({name:`Paper`,props:t,classes:Vt,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:m,vars:l,varsResolver:Ht});return(0,c.jsx)(q,{mod:[{"data-with-border":s},p],...g(`root`),variant:f,...h})});Ut.classes=Vt,Ut.varsResolver=Ht,Ut.displayName=`@mantine/core/Paper`;var Wt=e=>({in:{opacity:1,transform:`scale(1)`},out:{opacity:0,transform:`scale(.9) translateY(${e===`bottom`?10:-10}px)`},transitionProperty:`transform, opacity`}),Gt={fade:{in:{opacity:1},out:{opacity:0},transitionProperty:`opacity`},"fade-up":{in:{opacity:1,transform:`translateY(0)`},out:{opacity:0,transform:`translateY(30px)`},transitionProperty:`opacity, transform`},"fade-down":{in:{opacity:1,transform:`translateY(0)`},out:{opacity:0,transform:`translateY(-30px)`},transitionProperty:`opacity, transform`},"fade-left":{in:{opacity:1,transform:`translateX(0)`},out:{opacity:0,transform:`translateX(30px)`},transitionProperty:`opacity, transform`},"fade-right":{in:{opacity:1,transform:`translateX(0)`},out:{opacity:0,transform:`translateX(-30px)`},transitionProperty:`opacity, transform`},scale:{in:{opacity:1,transform:`scale(1)`},out:{opacity:0,transform:`scale(0)`},common:{transformOrigin:`top`},transitionProperty:`transform, opacity`},"scale-y":{in:{opacity:1,transform:`scaleY(1)`},out:{opacity:0,transform:`scaleY(0)`},common:{transformOrigin:`top`},transitionProperty:`transform, opacity`},"scale-x":{in:{opacity:1,transform:`scaleX(1)`},out:{opacity:0,transform:`scaleX(0)`},common:{transformOrigin:`left`},transitionProperty:`transform, opacity`},"skew-up":{in:{opacity:1,transform:`translateY(0) skew(0deg, 0deg)`},out:{opacity:0,transform:`translateY(-20px) skew(-10deg, -5deg)`},common:{transformOrigin:`top`},transitionProperty:`transform, opacity`},"skew-down":{in:{opacity:1,transform:`translateY(0) skew(0deg, 0deg)`},out:{opacity:0,transform:`translateY(20px) skew(-10deg, -5deg)`},common:{transformOrigin:`bottom`},transitionProperty:`transform, opacity`},"rotate-left":{in:{opacity:1,transform:`translateY(0) rotate(0deg)`},out:{opacity:0,transform:`translateY(20px) rotate(-5deg)`},common:{transformOrigin:`bottom`},transitionProperty:`transform, opacity`},"rotate-right":{in:{opacity:1,transform:`translateY(0) rotate(0deg)`},out:{opacity:0,transform:`translateY(20px) rotate(5deg)`},common:{transformOrigin:`top`},transitionProperty:`transform, opacity`},"slide-down":{in:{opacity:1,transform:`translateY(0)`},out:{opacity:0,transform:`translateY(-100%)`},common:{transformOrigin:`top`},transitionProperty:`transform, opacity`},"slide-up":{in:{opacity:1,transform:`translateY(0)`},out:{opacity:0,transform:`translateY(100%)`},common:{transformOrigin:`bottom`},transitionProperty:`transform, opacity`},"slide-left":{in:{opacity:1,transform:`translateX(0)`},out:{opacity:0,transform:`translateX(100%)`},common:{transformOrigin:`left`},transitionProperty:`transform, opacity`},"slide-right":{in:{opacity:1,transform:`translateX(0)`},out:{opacity:0,transform:`translateX(-100%)`},common:{transformOrigin:`right`},transitionProperty:`transform, opacity`},pop:{...Wt(`bottom`),common:{transformOrigin:`center center`}},"pop-bottom-left":{...Wt(`bottom`),common:{transformOrigin:`bottom left`}},"pop-bottom-right":{...Wt(`bottom`),common:{transformOrigin:`bottom right`}},"pop-top-left":{...Wt(`top`),common:{transformOrigin:`top left`}},"pop-top-right":{...Wt(`top`),common:{transformOrigin:`top right`}}},Kt={entering:`in`,entered:`in`,exiting:`out`,exited:`out`,"pre-exiting":`out`,"pre-entering":`out`};function qt({transition:e,state:t,duration:n,timingFunction:r}){let i={WebkitBackfaceVisibility:`hidden`,transitionDuration:`${n}ms`,transitionTimingFunction:r};return typeof e==`string`?e in Gt?{transitionProperty:Gt[e].transitionProperty,...i,...Gt[e].common,...Gt[e][Kt[t]]}:{}:{transitionProperty:e.transitionProperty,...i,...e.common,...e[Kt[t]]}}function Jt({duration:e,exitDuration:t,timingFunction:n,mounted:r,onEnter:i,onExit:a,onEntered:o,onExited:c,enterDelay:l,exitDelay:u}){let d=Fe(),f=te(),p=d.respectReducedMotion?f:!1,[m,h]=(0,s.useState)(p?0:e),[g,_]=(0,s.useState)(r?`entered`:`exited`),v=(0,s.useRef)(-1),y=(0,s.useRef)(-1),b=(0,s.useRef)(-1);function x(){window.clearTimeout(v.current),window.clearTimeout(y.current),cancelAnimationFrame(b.current)}let S=n=>{x();let r=n?i:a,s=n?o:c,l=p?0:n?e:t;h(l),l===0?(typeof r==`function`&&r(),typeof s==`function`&&s(),_(n?`entered`:`exited`)):b.current=requestAnimationFrame(()=>{Le.flushSync(()=>{_(n?`pre-entering`:`pre-exiting`)}),b.current=requestAnimationFrame(()=>{typeof r==`function`&&r(),_(n?`entering`:`exiting`),v.current=window.setTimeout(()=>{typeof s==`function`&&s(),_(n?`entered`:`exited`)},l)})})},C=e=>{if(x(),typeof(e?l:u)!=`number`){S(e);return}y.current=window.setTimeout(()=>{S(e)},e?l:u)};return k(()=>{C(r)},[r]),(0,s.useEffect)(()=>()=>{x()},[]),{transitionDuration:m,transitionStatus:g,transitionTimingFunction:n||`ease`}}function Yt({keepMounted:e,keepMountedMode:t=`activity`,transition:n=`fade`,duration:r=250,exitDuration:i=r,mounted:a,children:o,timingFunction:l=`ease`,onExit:u,onEntered:d,onEnter:f,onExited:p,enterDelay:m,exitDelay:h}){let g=Ce(),{transitionDuration:_,transitionStatus:v,transitionTimingFunction:y}=Jt({mounted:a,exitDuration:i,duration:r,timingFunction:l,onExit:u,onEntered:d,onEnter:f,onExited:p,enterDelay:m,exitDelay:h});if(g===`test`)return a?(0,c.jsx)(c.Fragment,{children:o({})}):e?o({display:`none`}):null;if(_===0)return e?t===`display-none`?a?(0,c.jsx)(c.Fragment,{children:o({})}):o({display:`none`}):(0,c.jsx)(s.Activity,{mode:a?`visible`:`hidden`,children:o({})}):a?(0,c.jsx)(c.Fragment,{children:o({})}):null;let b=v===`exited`;if(e){let e=o(b?t===`display-none`?{display:`none`}:{}:qt({transition:n,duration:_,state:v,timingFunction:y}));return t===`display-none`?e:(0,c.jsx)(s.Activity,{mode:b?`hidden`:`visible`,children:e})}return b?null:(0,c.jsx)(c.Fragment,{children:o(qt({transition:n,duration:_,state:v,timingFunction:y}))})}Yt.displayName=`@mantine/core/Transition`;var J={root:`m_5ae2e3c`,barsLoader:`m_7a2bd4cd`,bar:`m_870bb79`,"bars-loader-animation":`m_5d2b3b9d`,dotsLoader:`m_4e3f22d7`,dot:`m_870c4af`,"loader-dots-animation":`m_aac34a1`,ovalLoader:`m_b34414df`,"oval-loader-animation":`m_f8e89c4b`},Xt=({className:e,...t})=>(0,c.jsxs)(q,{component:`span`,className:M(J.barsLoader,e),...t,children:[(0,c.jsx)(`span`,{className:J.bar}),(0,c.jsx)(`span`,{className:J.bar}),(0,c.jsx)(`span`,{className:J.bar})]});Xt.displayName=`@mantine/core/Bars`;var Zt=({className:e,...t})=>(0,c.jsxs)(q,{component:`span`,className:M(J.dotsLoader,e),...t,children:[(0,c.jsx)(`span`,{className:J.dot}),(0,c.jsx)(`span`,{className:J.dot}),(0,c.jsx)(`span`,{className:J.dot})]});Zt.displayName=`@mantine/core/Dots`;var Qt=({className:e,...t})=>(0,c.jsx)(q,{component:`span`,className:M(J.ovalLoader,e),...t});Qt.displayName=`@mantine/core/Oval`;var $t={bars:Xt,oval:Qt,dots:Zt},en={loaders:$t,type:`oval`},tn=A((e,{size:t,color:n})=>({root:{"--loader-size":y(t,`loader-size`),"--loader-color":n?z(n,e):void 0}})),nn=G(e=>{let t=U(`Loader`,en,e),{size:n,color:r,type:i,vars:a,className:o,style:s,classNames:l,styles:u,unstyled:d,loaders:f,variant:p,children:m,attributes:h,...g}=t,_=W({name:`Loader`,props:t,classes:J,className:o,style:s,classNames:l,styles:u,unstyled:d,attributes:h,vars:a,varsResolver:tn});return m?(0,c.jsx)(q,{..._(`root`),...g,children:m}):(0,c.jsx)(q,{..._(`root`),component:f[i],variant:p,size:n,...g})});nn.defaultLoaders=$t,nn.classes=J,nn.varsResolver=tn,nn.displayName=`@mantine/core/Loader`;function rn({size:e=`var(--cb-icon-size, 70%)`,style:t,...n}){return(0,c.jsx)(`svg`,{viewBox:`0 0 15 15`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,style:{...t,width:e,height:e},...n,children:(0,c.jsx)(`path`,{d:`M11.7816 4.03157C12.0062 3.80702 12.0062 3.44295 11.7816 3.2184C11.5571 2.99385 11.193 2.99385 10.9685 3.2184L7.50005 6.68682L4.03164 3.2184C3.80708 2.99385 3.44301 2.99385 3.21846 3.2184C2.99391 3.44295 2.99391 3.80702 3.21846 4.03157L6.68688 7.49999L3.21846 10.9684C2.99391 11.193 2.99391 11.557 3.21846 11.7816C3.44301 12.0061 3.80708 12.0061 4.03164 11.7816L7.50005 8.31316L10.9685 11.7816C11.193 12.0061 11.5571 12.0061 11.7816 11.7816C12.0062 11.557 12.0062 11.193 11.7816 10.9684L8.31322 7.49999L11.7816 4.03157Z`,fill:`currentColor`,fillRule:`evenodd`,clipRule:`evenodd`})})}rn.displayName=`@mantine/core/CloseIcon`;var an={root:`m_86a44da5`,"root--subtle":`m_220c80f2`},on={variant:`subtle`},sn=A((e,{size:t,radius:n,iconSize:r})=>({root:{"--cb-size":y(t,`cb-size`),"--cb-radius":n===void 0?void 0:x(n),"--cb-icon-size":h(r)}})),cn=K(e=>{let t=U(`CloseButton`,on,e),{iconSize:n,children:r,vars:i,radius:a,className:o,classNames:s,style:l,styles:u,unstyled:d,"data-disabled":f,disabled:p,variant:m,icon:h,mod:g,attributes:_,__staticSelector:v,...y}=t,b=W({name:v||`CloseButton`,props:t,className:o,style:l,classes:an,classNames:s,styles:u,unstyled:d,attributes:_,vars:i,varsResolver:sn});return(0,c.jsxs)(Bt,{...y,unstyled:d,variant:m,disabled:p,mod:[{disabled:p||f},g],...b(`root`,{variant:m,active:!p&&!f}),children:[h||(0,c.jsx)(rn,{}),r]})});cn.classes=an,cn.varsResolver=sn,cn.displayName=`@mantine/core/CloseButton`;function ln(e){return s.Children.toArray(e).filter(Boolean)}var un={root:`m_4081bf90`},dn={preventGrowOverflow:!0,gap:`md`,align:`center`,justify:`flex-start`,wrap:`wrap`},fn=A((e,{grow:t,preventGrowOverflow:n,gap:r,align:i,justify:a,wrap:o},{childWidth:s})=>({root:{"--group-child-width":t&&n?s:void 0,"--group-gap":b(r),"--group-align":i,"--group-justify":a,"--group-wrap":o}})),pn=G(e=>{let t=U(`Group`,dn,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,children:s,gap:l,align:u,justify:d,wrap:f,grow:p,preventGrowOverflow:m,vars:h,variant:g,__size:_,mod:v,attributes:y,...x}=t,S=ln(s),C=S.length,w=b(l??`md`);return(0,c.jsx)(q,{...W({name:`Group`,props:t,stylesCtx:{childWidth:`calc(${100/C}% - (${w} - ${w} / ${C}))`},className:r,style:i,classes:un,classNames:n,styles:a,unstyled:o,attributes:y,vars:h,varsResolver:fn})(`root`),variant:g,mod:[{grow:p},v],size:_,...x,children:S})});pn.classes=un,pn.varsResolver=fn,pn.displayName=`@mantine/core/Group`;var mn=(0,s.createContext)({size:`sm`}),hn=G(e=>{let t=U(`InputClearButton`,null,e),{size:n,variant:r,vars:i,classNames:a,styles:o,...l}=t,u=(0,s.use)(mn),{resolvedClassNames:d,resolvedStyles:f}=Re({classNames:a,styles:o,props:t});return(0,c.jsx)(cn,{variant:r||`transparent`,size:n||u?.size||`sm`,classNames:d,styles:f,__staticSelector:`InputClearButton`,style:{pointerEvents:`all`,background:`var(--input-bg)`,...l.style},...l})});hn.displayName=`@mantine/core/InputClearButton`;var gn={xs:7,sm:8,md:10,lg:12,xl:15};function _n({__clearable:e,__clearSection:t,rightSection:n,__defaultRightSection:r,size:i=`sm`,__clearSectionMode:a=`both`}){let o=e&&t;return a===`rightSection`?n===null?null:n||r:a===`clear`?n===null?null:o||r:o&&(n||r)?(0,c.jsxs)(`div`,{"data-combined-clear-section":!0,style:{display:`flex`,gap:2,alignItems:`center`,paddingInlineEnd:gn[i]},children:[o,n||r]}):n===null?null:n||o||r}var vn=(0,s.createContext)({offsetBottom:!1,offsetTop:!1,describedBy:void 0,getStyles:null,inputId:void 0,labelId:void 0}),Y={wrapper:`m_6c018570`,input:`m_8fb7ebe7`,bottomSection:`m_93f4ed57`,section:`m_82577fc2`,placeholder:`m_88bacfd0`,root:`m_46b77525`,label:`m_8fdc1311`,required:`m_78a94662`,error:`m_8f816625`,success:`m_9d9d40e0`,description:`m_fe47ce59`},yn=A((e,{size:t})=>({description:{"--input-description-size":t===void 0?void 0:`calc(${S(t)} - ${h(2)})`}})),bn=G(e=>{let t=U(`InputDescription`,null,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:l,__staticSelector:u,__inheritStyles:d=!0,attributes:f,...p}=U(`InputDescription`,null,t),m=(0,s.use)(vn),h=W({name:[`InputWrapper`,u],props:t,classes:Y,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:f,rootSelector:`description`,vars:l,varsResolver:yn});return(0,c.jsx)(q,{component:`p`,...(d&&m?.getStyles||h)(`description`,m?.getStyles?{className:r,style:i}:void 0),...p})});bn.classes=Y,bn.varsResolver=yn,bn.displayName=`@mantine/core/InputDescription`;var xn=A((e,{size:t})=>({error:{"--input-error-size":t===void 0?void 0:`calc(${S(t)} - ${h(2)})`}})),Sn=G(e=>{let t=U(`InputError`,null,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:l,attributes:u,__staticSelector:d,__inheritStyles:f=!0,...p}=t,m=W({name:[`InputWrapper`,d],props:t,classes:Y,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:u,rootSelector:`error`,vars:l,varsResolver:xn}),h=(0,s.use)(vn);return(0,c.jsx)(q,{component:`p`,...(f&&h?.getStyles||m)(`error`,h?.getStyles?{className:r,style:i}:void 0),...p})});Sn.classes=Y,Sn.varsResolver=xn,Sn.displayName=`@mantine/core/InputError`;var Cn={labelElement:`label`},wn=A((e,{size:t})=>({label:{"--input-label-size":S(t),"--input-asterisk-color":void 0}})),Tn=G(e=>{let t=U(`InputLabel`,Cn,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:l,labelElement:u,required:d,htmlFor:f,onMouseDown:p,children:m,__staticSelector:h,mod:g,attributes:_,...v}=t,y=W({name:[`InputWrapper`,h],props:t,classes:Y,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:_,rootSelector:`label`,vars:l,varsResolver:wn}),b=(0,s.use)(vn),x=b?.getStyles||y,S=v.component||u,C=typeof S!=`string`||S===`label`;return(0,c.jsxs)(q,{...x(`label`,b?.getStyles?{className:r,style:i}:void 0),component:u,htmlFor:C?f:void 0,mod:[{required:d},g],onMouseDown:e=>{p?.(e),!e.defaultPrevented&&e.detail>1&&e.preventDefault()},...v,children:[m,d&&(0,c.jsx)(`span`,{...x(`required`),"aria-hidden":!0,children:` *`})]})});Tn.classes=Y,Tn.varsResolver=wn,Tn.displayName=`@mantine/core/InputLabel`;var En=G(e=>{let t=U(`InputPlaceholder`,null,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,__staticSelector:l,error:u,mod:d,attributes:f,...p}=t;return(0,c.jsx)(q,{...W({name:[`InputPlaceholder`,l],props:t,classes:Y,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:f,rootSelector:`placeholder`})(`placeholder`),mod:[{error:!!u},d],component:`span`,...p})});En.classes=Y,En.displayName=`@mantine/core/InputPlaceholder`;var Dn=A((e,{size:t})=>({success:{"--input-success-size":t===void 0?void 0:`calc(${S(t)} - ${h(2)})`}})),On=G(e=>{let t=U(`InputSuccess`,null,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:l,attributes:u,__staticSelector:d,__inheritStyles:f=!0,...p}=t,m=W({name:[`InputWrapper`,d],props:t,classes:Y,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:u,rootSelector:`success`,vars:l,varsResolver:Dn}),h=(0,s.use)(vn);return(0,c.jsx)(q,{component:`p`,...(f&&h?.getStyles||m)(`success`,h?.getStyles?{className:r,style:i}:void 0),...p})});On.classes=Y,On.varsResolver=Dn,On.displayName=`@mantine/core/InputSuccess`;function kn(e,{hasDescription:t,hasError:n}){let r=e.findIndex(e=>e===`input`),i=e.slice(0,r),a=e.slice(r+1),o=t&&i.includes(`description`)||n&&i.includes(`error`);return{offsetBottom:t&&a.includes(`description`)||n&&a.includes(`error`),offsetTop:o}}var An={labelElement:`label`,inputContainer:e=>e,inputWrapperOrder:[`label`,`description`,`input`,`error`]},jn=A((e,{size:t})=>({label:{"--input-label-size":S(t),"--input-asterisk-color":void 0},error:{"--input-error-size":t===void 0?void 0:`calc(${S(t)} - ${h(2)})`},success:{"--input-success-size":t===void 0?void 0:`calc(${S(t)} - ${h(2)})`},description:{"--input-description-size":t===void 0?void 0:`calc(${S(t)} - ${h(2)})`}})),Mn=G(e=>{let t=U(`InputWrapper`,An,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:l,size:u,variant:d,__staticSelector:f,inputContainer:p,inputWrapperOrder:m,label:h,error:g,success:_,description:v,labelProps:y,descriptionProps:b,errorProps:x,successProps:S,labelElement:C,children:w,withAsterisk:T,id:E,required:D,__stylesApiProps:O,mod:k,attributes:te,...A}=t,j=W({name:[`InputWrapper`,f],props:O||t,classes:Y,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:te,vars:l,varsResolver:jn}),M={size:u,variant:d,__staticSelector:f},N=ee(E),ne=typeof T==`boolean`?T:D,P=x?.id||`${N}-error`,F=S?.id||`${N}-success`,re=b?.id||`${N}-description`,ie=N,I=!!g&&typeof g!=`boolean`,L=!!_&&typeof _!=`boolean`&&!g,ae=!!v,oe=I&&m.includes(`error`),se=L&&m.includes(`error`),ce=ae&&m.includes(`description`),le=`${oe?P:``} ${se?F:``} ${ce?re:``}`,ue=le.trim().length>0?le.trim():void 0,R=y?.id||`${N}-label`,z=h&&(0,c.jsx)(Tn,{labelElement:C,id:R,htmlFor:ie,required:ne,...M,...y,children:h},`label`),de=ae&&(0,c.jsx)(bn,{...b,...M,size:b?.size||M.size,id:b?.id||re,children:v},`description`),B=(0,c.jsx)(s.Fragment,{children:p(w)},`input`),fe=I&&(0,s.createElement)(Sn,{...x,...M,size:x?.size||M.size,key:`error`,id:x?.id||P},g),V=L&&(0,s.createElement)(On,{...S,...M,size:S?.size||M.size,key:`success`,id:S?.id||F},_),pe=m.map(e=>{switch(e){case`label`:return z;case`input`:return B;case`description`:return de;case`error`:return fe||V;default:return null}});return(0,c.jsx)(vn,{value:{getStyles:j,describedBy:ue,inputId:ie,labelId:R,...kn(m,{hasDescription:ae,hasError:I||L})},children:(0,c.jsx)(q,{variant:d,size:u,mod:[{error:!!g,success:!!_&&!g},k],id:C===`label`?void 0:E,...j(`root`),...A,children:pe})})});Mn.classes=Y,Mn.varsResolver=jn,Mn.displayName=`@mantine/core/InputWrapper`;var Nn={variant:`default`,leftSectionPointerEvents:`none`,rightSectionPointerEvents:`none`,withAria:!0,withErrorStyles:!0,withSuccessStyles:!0,size:`sm`,loading:!1,loadingPosition:`right`},Pn=A((e,t,n)=>({wrapper:{"--input-margin-top":n.offsetTop?`calc(var(--mantine-spacing-xs) / 2)`:void 0,"--input-margin-bottom":n.offsetBottom?`calc(var(--mantine-spacing-xs) / 2)`:void 0,"--input-height":y(t.size,`input-height`),"--input-fz":S(t.size),"--input-radius":t.radius===void 0?void 0:x(t.radius),"--input-left-section-width":t.leftSectionWidth===void 0?void 0:h(t.leftSectionWidth),"--input-right-section-width":t.rightSectionWidth===void 0?void 0:h(t.rightSectionWidth),"--input-padding-y":t.multiline?y(t.size,`input-padding-y`):void 0,"--input-left-section-pointer-events":t.leftSectionPointerEvents,"--input-right-section-pointer-events":t.rightSectionPointerEvents}})),X=K(e=>{let t=U(`Input`,Nn,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,required:l,__staticSelector:u,__stylesApiProps:d,size:f,wrapperProps:p,error:m,success:h,disabled:g,leftSection:_,leftSectionProps:v,leftSectionWidth:y,rightSection:b,rightSectionProps:x,rightSectionWidth:S,rightSectionPointerEvents:C,leftSectionPointerEvents:w,variant:T,vars:E,pointer:D,multiline:O,radius:k,id:ee,withAria:te,withErrorStyles:A,withSuccessStyles:j,mod:M,inputSize:N,attributes:ne,__clearSection:P,__clearable:F,__clearSectionMode:re,__defaultRightSection:ie,loading:I,loadingPosition:L,__bottomSection:ae,__bottomSectionProps:oe,rootRef:se,dir:ce,...le}=t,{styleProps:ue,rest:R}=it(le),z=(0,s.use)(vn),de={offsetBottom:z?.offsetBottom,offsetTop:z?.offsetTop},B=W({name:[`Input`,u],props:d||t,classes:Y,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:ne,stylesCtx:de,rootSelector:`wrapper`,vars:E,varsResolver:Pn}),fe=te?{required:l,disabled:g,"aria-invalid":m?!0:void 0,"aria-describedby":z?.describedBy,id:z?.inputId||ee}:{},V=I?(0,c.jsx)(nn,{size:L===`left`?`calc(var(--input-left-section-size) / 2)`:`calc(var(--input-right-section-size) / 2)`}):null,pe=I&&L===`left`?V:_,me=_n({__clearable:F,__clearSection:P,rightSection:I&&L===`right`?V:b,__defaultRightSection:ie,size:f,__clearSectionMode:re});return(0,c.jsx)(mn,{value:{size:f||`sm`},children:(0,c.jsxs)(q,{ref:se,dir:ce,...B(`wrapper`),...ue,...p,mod:[{error:!!m&&A,success:!!h&&!m&&j,pointer:D,disabled:g,multiline:O,"data-with-right-section":!!me,"data-with-left-section":!!pe,"data-with-bottom-section":!!ae},M],variant:T,size:f,children:[pe&&(0,c.jsx)(`div`,{...v,"data-position":`left`,...B(`section`,{className:v?.className,style:v?.style}),children:pe}),(0,c.jsx)(q,{component:`input`,...R,...fe,required:l,mod:{disabled:g,error:!!m&&A,success:!!h&&!m&&j},variant:T,__size:N,...B(`input`)}),ae&&(0,c.jsx)(`div`,{...oe,...B(`bottomSection`,{className:oe?.className,style:oe?.style}),children:ae}),me&&(0,c.jsx)(`div`,{...x,"data-position":`right`,...B(`section`,{className:x?.className,style:x?.style}),children:me})]})})});X.classes=Y,X.varsResolver=Pn,X.Wrapper=Mn,X.Label=Tn,X.Error=Sn,X.Success=On,X.Description=bn,X.Placeholder=En,X.ClearButton=hn,X.displayName=`@mantine/core/Input`;function Fn(e,t,n){let r=U([`Input`,`InputWrapper`,e],t,n),{label:i,description:a,error:o,success:s,required:c,classNames:l,styles:u,className:d,unstyled:f,__staticSelector:p,__stylesApiProps:m,errorProps:h,successProps:g,labelProps:_,descriptionProps:v,wrapperProps:y,id:b,size:x,style:S,inputContainer:C,inputWrapperOrder:w,withAsterisk:T,variant:E,vars:D,mod:O,attributes:k,...ee}=r,{styleProps:te,rest:A}=it(ee),j={label:i,description:a,error:o,success:s,required:c,classNames:l,className:d,__staticSelector:p,__stylesApiProps:m||r,errorProps:h,successProps:g,labelProps:_,descriptionProps:v,unstyled:f,styles:u,size:x,style:S,inputContainer:C,inputWrapperOrder:w,withAsterisk:T,variant:E,id:b,mod:O,attributes:k,...y};return{...A,classNames:l,styles:u,unstyled:f,wrapperProps:{...j,...te},inputProps:{required:c,classNames:l,styles:u,unstyled:f,size:x,__staticSelector:p,__stylesApiProps:m||r,error:o,success:s,variant:E,id:b,attributes:k}}}var In={__staticSelector:`InputBase`,withAria:!0,size:`sm`},Ln=K(e=>{let{inputProps:t,wrapperProps:n,...r}=Fn(`InputBase`,In,e);return(0,c.jsx)(X.Wrapper,{...n,children:(0,c.jsx)(X,{...t,...r})})});Ln.classes={...X.classes,...X.Wrapper.classes},Ln.displayName=`@mantine/core/InputBase`;var Rn={root:`m_66836ed3`,wrapper:`m_a5d60502`,body:`m_667c2793`,title:`m_6a03f287`,label:`m_698f4f23`,icon:`m_667f2a6a`,message:`m_7fa78076`,closeButton:`m_87f54839`},zn=A((e,{radius:t,color:n,variant:r,autoContrast:i})=>{let a=e.variantColorResolver({color:n||e.primaryColor,theme:e,variant:r||`light`,autoContrast:i});return{root:{"--alert-radius":t===void 0?void 0:x(t),"--alert-bg":n||r?a.background:void 0,"--alert-color":a.color,"--alert-bd":n||r?a.border:void 0}}}),Bn=G(e=>{let t=U(`Alert`,null,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,radius:l,color:u,title:d,children:f,id:p,icon:m,withCloseButton:h,onClose:g,closeButtonLabel:_,variant:v,autoContrast:y,role:b,attributes:x,...S}=t,C=W({name:`Alert`,classes:Rn,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:x,vars:s,varsResolver:zn}),w=ee(p),T=d&&`${w}-title`||void 0,E=`${w}-body`;return(0,c.jsx)(q,{id:w,...C(`root`,{variant:v}),variant:v,...S,role:b||`alert`,"aria-describedby":f?E:void 0,"aria-labelledby":d?T:void 0,children:(0,c.jsxs)(`div`,{...C(`wrapper`),children:[m&&(0,c.jsx)(`div`,{...C(`icon`),children:m}),(0,c.jsxs)(`div`,{...C(`body`),children:[d&&(0,c.jsx)(`div`,{...C(`title`),"data-with-close-button":h||void 0,children:(0,c.jsx)(`span`,{id:T,...C(`label`),children:d})}),f&&(0,c.jsx)(`div`,{id:E,...C(`message`),"data-variant":v,children:f})]}),h&&(0,c.jsx)(cn,{...C(`closeButton`),onClick:g,variant:`transparent`,size:16,iconSize:16,"aria-label":_,unstyled:o})]})})});Bn.classes=Rn,Bn.varsResolver=zn,Bn.displayName=`@mantine/core/Alert`;var Vn={root:`m_b6d8b162`};function Hn(e){if(e===`start`)return`start`;if(e===`end`||e)return`end`}var Un={inherit:!1},Wn=A((e,{variant:t,lineClamp:n,gradient:r,size:i,textWrap:a})=>({root:{"--text-fz":S(i),"--text-lh":C(i),"--text-gradient":t===`gradient`?fe(r,e):void 0,"--text-line-clamp":typeof n==`number`?n.toString():void 0,"--text-text-wrap":a}})),Z=K(e=>{let t=U(`Text`,Un,e),{lineClamp:n,truncate:r,inline:i,inherit:a,gradient:o,span:s,textWrap:l,__staticSelector:u,vars:d,className:f,style:p,classNames:m,styles:h,unstyled:g,variant:_,mod:v,size:y,attributes:b,...x}=t;return(0,c.jsx)(q,{...W({name:[`Text`,u],props:t,classes:Vn,className:f,style:p,classNames:m,styles:h,unstyled:g,attributes:b,vars:d,varsResolver:Wn})(`root`,{focusable:!0}),component:s?`span`:`p`,variant:_,mod:[{"data-truncate":Hn(r),"data-line-clamp":typeof n==`number`,"data-inline":i,"data-inherit":a},v],size:y,...x})});Z.classes=Vn,Z.varsResolver=Wn,Z.displayName=`@mantine/core/Text`;var Gn={root:`m_77c9d27d`,inner:`m_80f1301b`,label:`m_811560b9`,section:`m_a74036a`,loader:`m_a25b86ee`,group:`m_80d6d844`,groupSection:`m_70be2a01`},Kn={orientation:`horizontal`},qn=A((e,{borderWidth:t})=>({group:{"--button-border-width":h(t)}})),Jn=G(e=>{let t=U(`ButtonGroup`,Kn,e),{className:n,style:r,classNames:i,styles:a,unstyled:o,orientation:s,vars:l,borderWidth:u,mod:d,attributes:f,...p}=U(`ButtonGroup`,Kn,e);return(0,c.jsx)(q,{...W({name:`ButtonGroup`,props:t,classes:Gn,className:n,style:r,classNames:i,styles:a,unstyled:o,attributes:f,vars:l,varsResolver:qn,rootSelector:`group`})(`group`),mod:[{"data-orientation":s},d],role:`group`,...p})});Jn.classes=Gn,Jn.varsResolver=qn,Jn.displayName=`@mantine/core/ButtonGroup`;var Yn=A((e,{radius:t,color:n,gradient:r,variant:i,autoContrast:a,size:o})=>{let s=e.variantColorResolver({color:n||e.primaryColor,theme:e,gradient:r,variant:i||`filled`,autoContrast:a});return{groupSection:{"--section-height":y(o,`section-height`),"--section-padding-x":y(o,`section-padding-x`),"--section-fz":o?.includes(`compact`)?S(o.replace(`compact-`,``)):S(o),"--section-radius":t===void 0?void 0:x(t),"--section-bg":n||i?s.background:void 0,"--section-color":s.color,"--section-bd":n||i?s.border:void 0}}}),Xn=G(e=>{let t=U(`ButtonGroupSection`,null,e),{className:n,style:r,classNames:i,styles:a,unstyled:o,vars:s,gradient:l,radius:u,autoContrast:d,attributes:f,...p}=t;return(0,c.jsx)(q,{...W({name:`ButtonGroupSection`,props:t,classes:Gn,className:n,style:r,classNames:i,styles:a,unstyled:o,attributes:f,vars:s,varsResolver:Yn,rootSelector:`groupSection`})(`groupSection`),...p})});Xn.classes=Gn,Xn.varsResolver=Yn,Xn.displayName=`@mantine/core/ButtonGroupSection`;var Zn={in:{opacity:1,transform:`translate(-50%, calc(-50% + ${h(1)}))`},out:{opacity:0,transform:`translate(-50%, -200%)`},common:{transformOrigin:`center`},transitionProperty:`transform, opacity`},Qn=A((e,{radius:t,color:n,gradient:r,variant:i,size:a,justify:o,autoContrast:s})=>{let c=e.variantColorResolver({color:n||e.primaryColor,theme:e,gradient:r,variant:i||`filled`,autoContrast:s});return{root:{"--button-justify":o,"--button-height":y(a,`button-height`),"--button-padding-x":y(a,`button-padding-x`),"--button-fz":a?.includes(`compact`)?S(a.replace(`compact-`,``)):S(a),"--button-radius":t===void 0?void 0:x(t),"--button-bg":n||i?c.background:void 0,"--button-hover":n||i?c.hover:void 0,"--button-color":c.color,"--button-bd":n||i?c.border:void 0,"--button-hover-color":n||i?c.hoverColor:void 0}}}),Q=K(e=>{let t=U(`Button`,null,e),{style:n,vars:r,className:i,color:a,disabled:o,children:s,leftSection:l,rightSection:u,fullWidth:d,variant:f,radius:p,loading:m,loaderProps:h,gradient:g,classNames:_,styles:v,unstyled:y,"data-disabled":b,autoContrast:x,mod:S,attributes:C,...w}=t,T=W({name:`Button`,props:t,classes:Gn,className:i,style:n,classNames:_,styles:v,unstyled:y,attributes:C,vars:r,varsResolver:Qn}),E=!!l,D=!!u;return(0,c.jsxs)(Bt,{...T(`root`,{active:!o&&!m&&!b}),unstyled:y,variant:f,disabled:o||m,mod:[{disabled:o||b,loading:m,block:d,"with-left-section":E,"with-right-section":D},S],...w,children:[typeof m==`boolean`&&(0,c.jsx)(Yt,{mounted:m,transition:Zn,duration:150,children:e=>(0,c.jsx)(q,{component:`span`,...T(`loader`,{style:e}),"aria-hidden":!0,children:(0,c.jsx)(nn,{color:`var(--button-color)`,size:`calc(var(--button-height) / 1.8)`,...h})})}),(0,c.jsxs)(`span`,{...T(`inner`),children:[l&&(0,c.jsx)(q,{component:`span`,...T(`section`),mod:{position:`left`},children:l}),(0,c.jsx)(q,{component:`span`,mod:{loading:m},...T(`label`),children:s}),u&&(0,c.jsx)(q,{component:`span`,...T(`section`),mod:{position:`right`},children:u})]})]})});Q.classes=Gn,Q.varsResolver=Qn,Q.displayName=`@mantine/core/Button`,Q.Group=Jn,Q.GroupSection=Xn;var $n={root:`m_4451eb3a`},er=K(e=>{let t=U(`Center`,null,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,inline:l,mod:u,attributes:d,...f}=t,p=W({name:`Center`,props:t,classes:$n,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:d,vars:s});return(0,c.jsx)(q,{mod:[{inline:l},u],...p(`root`),...f})});er.classes=$n,er.displayName=`@mantine/core/Center`;var tr={root:`m_b183c0a2`},nr=A((e,{color:t})=>({root:{"--code-bg":t?z(t,e):void 0}})),rr=G(e=>{let t=U(`Code`,null,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,color:l,block:u,mod:d,attributes:f,...p}=t,m=W({name:`Code`,props:t,classes:tr,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:f,vars:s,varsResolver:nr});return(0,c.jsx)(q,{component:u?`pre`:`code`,mod:[{block:u},d],...m(`root`),...p,dir:`ltr`})});rr.classes=tr,rr.varsResolver=nr,rr.displayName=`@mantine/core/Code`;var ir={root:`m_7485cace`},ar={strategy:`block`},or=A((e,{size:t,fluid:n})=>({root:{"--container-size":n?void 0:y(t,`container-size`)}})),sr=G(e=>{let t=U(`Container`,ar,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,fluid:l,mod:u,attributes:d,strategy:f,...p}=t,m=W({name:`Container`,classes:ir,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:d,vars:s,varsResolver:or});return(0,c.jsx)(q,{mod:[{fluid:l,strategy:f},u],...m(`root`),...p})});sr.classes=ir,sr.varsResolver=or,sr.displayName=`@mantine/core/Container`;var cr={root:`m_6d731127`},lr={gap:`md`,align:`stretch`,justify:`flex-start`},ur=A((e,{gap:t,align:n,justify:r})=>({root:{"--stack-gap":b(t),"--stack-align":n,"--stack-justify":r}})),$=G(e=>{let t=U(`Stack`,lr,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,align:l,justify:u,gap:d,variant:f,attributes:p,...m}=t;return(0,c.jsx)(q,{...W({name:`Stack`,props:t,classes:cr,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:p,vars:s,varsResolver:ur})(`root`),variant:f,...m})});$.classes=cr,$.varsResolver=ur,$.displayName=`@mantine/core/Stack`;var dr=G(e=>(0,c.jsx)(Ln,{component:`input`,...U([`Input`,`InputWrapper`,`TextInput`],null,e),__staticSelector:`TextInput`}));dr.classes=Ln.classes,dr.displayName=`@mantine/core/TextInput`;var fr={root:`m_7341320d`},pr=A((e,{size:t,radius:n,variant:r,gradient:i,color:a,autoContrast:o})=>{let s=e.variantColorResolver({color:a||e.primaryColor,theme:e,gradient:i,variant:r||`filled`,autoContrast:o});return{root:{"--ti-size":y(t,`ti-size`),"--ti-radius":n===void 0?void 0:x(n),"--ti-bg":a||r?s.background:void 0,"--ti-color":a||r?s.color:void 0,"--ti-bd":a||r?s.border:void 0}}}),mr=G(e=>{let t=U(`ThemeIcon`,null,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,autoContrast:l,attributes:u,...d}=t;return(0,c.jsx)(q,{...W({name:`ThemeIcon`,classes:fr,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:u,vars:s,varsResolver:pr})(`root`),...d})});mr.classes=fr,mr.varsResolver=pr,mr.displayName=`@mantine/core/ThemeIcon`;var hr=[`h1`,`h2`,`h3`,`h4`,`h5`,`h6`],gr=[`xs`,`sm`,`md`,`lg`,`xl`];function _r(e,t){let n=t===void 0?`h${e}`:t;return hr.includes(n)?{fontSize:`var(--mantine-${n}-font-size)`,fontWeight:`var(--mantine-${n}-font-weight)`,lineHeight:`var(--mantine-${n}-line-height)`}:gr.includes(n)?{fontSize:`var(--mantine-font-size-${n})`,fontWeight:`var(--mantine-h${e}-font-weight)`,lineHeight:`var(--mantine-h${e}-line-height)`}:{fontSize:h(n),fontWeight:`var(--mantine-h${e}-font-weight)`,lineHeight:`var(--mantine-h${e}-line-height)`}}var vr={root:`m_8a5d1357`},yr={order:1},br=A((e,{order:t,size:n,lineClamp:r,textWrap:i})=>{let a=_r(t||1,n);return{root:{"--title-fw":a.fontWeight,"--title-lh":a.lineHeight,"--title-fz":a.fontSize,"--title-line-clamp":typeof r==`number`?r.toString():void 0,"--title-text-wrap":i}}}),xr=G(e=>{let t=U(`Title`,yr,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,order:s,vars:l,size:u,variant:d,lineClamp:f,textWrap:p,mod:m,attributes:h,...g}=t,_=W({name:`Title`,props:t,classes:vr,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:h,vars:l,varsResolver:br});return[1,2,3,4,5,6].includes(s)?(0,c.jsx)(q,{..._(`root`),component:`h${s}`,variant:d,mod:[{order:s,"data-line-clamp":typeof f==`number`},m],size:u,...g}):null});xr.classes=vr,xr.varsResolver=br,xr.displayName=`@mantine/core/Title`;var Sr=new Map([[`bold`,s.createElement(s.Fragment,null,s.createElement(`path`,{d:`M224.49,136.49l-72,72a12,12,0,0,1-17-17L187,140H40a12,12,0,0,1,0-24H187L135.51,64.48a12,12,0,0,1,17-17l72,72A12,12,0,0,1,224.49,136.49Z`}))],[`duotone`,s.createElement(s.Fragment,null,s.createElement(`path`,{d:`M216,128l-72,72V56Z`,opacity:`0.2`}),s.createElement(`path`,{d:`M221.66,122.34l-72-72A8,8,0,0,0,136,56v64H40a8,8,0,0,0,0,16h96v64a8,8,0,0,0,13.66,5.66l72-72A8,8,0,0,0,221.66,122.34ZM152,180.69V75.31L204.69,128Z`}))],[`fill`,s.createElement(s.Fragment,null,s.createElement(`path`,{d:`M221.66,133.66l-72,72A8,8,0,0,1,136,200V136H40a8,8,0,0,1,0-16h96V56a8,8,0,0,1,13.66-5.66l72,72A8,8,0,0,1,221.66,133.66Z`}))],[`light`,s.createElement(s.Fragment,null,s.createElement(`path`,{d:`M220.24,132.24l-72,72a6,6,0,0,1-8.48-8.48L201.51,134H40a6,6,0,0,1,0-12H201.51L139.76,60.24a6,6,0,0,1,8.48-8.48l72,72A6,6,0,0,1,220.24,132.24Z`}))],[`regular`,s.createElement(s.Fragment,null,s.createElement(`path`,{d:`M221.66,133.66l-72,72a8,8,0,0,1-11.32-11.32L196.69,136H40a8,8,0,0,1,0-16H196.69L138.34,61.66a8,8,0,0,1,11.32-11.32l72,72A8,8,0,0,1,221.66,133.66Z`}))],[`thin`,s.createElement(s.Fragment,null,s.createElement(`path`,{d:`M218.83,130.83l-72,72a4,4,0,0,1-5.66-5.66L206.34,132H40a4,4,0,0,1,0-8H206.34L141.17,58.83a4,4,0,0,1,5.66-5.66l72,72A4,4,0,0,1,218.83,130.83Z`}))]]),Cr=new Map([[`bold`,s.createElement(s.Fragment,null,s.createElement(`path`,{d:`M232.49,80.49l-128,128a12,12,0,0,1-17,0l-56-56a12,12,0,1,1,17-17L96,183,215.51,63.51a12,12,0,0,1,17,17Z`}))],[`duotone`,s.createElement(s.Fragment,null,s.createElement(`path`,{d:`M232,56V200a16,16,0,0,1-16,16H40a16,16,0,0,1-16-16V56A16,16,0,0,1,40,40H216A16,16,0,0,1,232,56Z`,opacity:`0.2`}),s.createElement(`path`,{d:`M205.66,85.66l-96,96a8,8,0,0,1-11.32,0l-40-40a8,8,0,0,1,11.32-11.32L104,164.69l90.34-90.35a8,8,0,0,1,11.32,11.32Z`}))],[`fill`,s.createElement(s.Fragment,null,s.createElement(`path`,{d:`M216,40H40A16,16,0,0,0,24,56V200a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A16,16,0,0,0,216,40ZM205.66,85.66l-96,96a8,8,0,0,1-11.32,0l-40-40a8,8,0,0,1,11.32-11.32L104,164.69l90.34-90.35a8,8,0,0,1,11.32,11.32Z`}))],[`light`,s.createElement(s.Fragment,null,s.createElement(`path`,{d:`M228.24,76.24l-128,128a6,6,0,0,1-8.48,0l-56-56a6,6,0,0,1,8.48-8.48L96,191.51,219.76,67.76a6,6,0,0,1,8.48,8.48Z`}))],[`regular`,s.createElement(s.Fragment,null,s.createElement(`path`,{d:`M229.66,77.66l-128,128a8,8,0,0,1-11.32,0l-56-56a8,8,0,0,1,11.32-11.32L96,188.69,218.34,66.34a8,8,0,0,1,11.32,11.32Z`}))],[`thin`,s.createElement(s.Fragment,null,s.createElement(`path`,{d:`M226.83,74.83l-128,128a4,4,0,0,1-5.66,0l-56-56a4,4,0,0,1,5.66-5.66L96,194.34,221.17,69.17a4,4,0,1,1,5.66,5.66Z`}))]]),wr=new Map([[`bold`,s.createElement(s.Fragment,null,s.createElement(`path`,{d:`M216,28H88A12,12,0,0,0,76,40V76H40A12,12,0,0,0,28,88V216a12,12,0,0,0,12,12H168a12,12,0,0,0,12-12V180h36a12,12,0,0,0,12-12V40A12,12,0,0,0,216,28ZM156,204H52V100H156Zm48-48H180V88a12,12,0,0,0-12-12H100V52H204Z`}))],[`duotone`,s.createElement(s.Fragment,null,s.createElement(`path`,{d:`M216,40V168H168V88H88V40Z`,opacity:`0.2`}),s.createElement(`path`,{d:`M216,32H88a8,8,0,0,0-8,8V80H40a8,8,0,0,0-8,8V216a8,8,0,0,0,8,8H168a8,8,0,0,0,8-8V176h40a8,8,0,0,0,8-8V40A8,8,0,0,0,216,32ZM160,208H48V96H160Zm48-48H176V88a8,8,0,0,0-8-8H96V48H208Z`}))],[`fill`,s.createElement(s.Fragment,null,s.createElement(`path`,{d:`M216,32H88a8,8,0,0,0-8,8V80H40a8,8,0,0,0-8,8V216a8,8,0,0,0,8,8H168a8,8,0,0,0,8-8V176h40a8,8,0,0,0,8-8V40A8,8,0,0,0,216,32Zm-8,128H176V88a8,8,0,0,0-8-8H96V48H208Z`}))],[`light`,s.createElement(s.Fragment,null,s.createElement(`path`,{d:`M216,34H88a6,6,0,0,0-6,6V82H40a6,6,0,0,0-6,6V216a6,6,0,0,0,6,6H168a6,6,0,0,0,6-6V174h42a6,6,0,0,0,6-6V40A6,6,0,0,0,216,34ZM162,210H46V94H162Zm48-48H174V88a6,6,0,0,0-6-6H94V46H210Z`}))],[`regular`,s.createElement(s.Fragment,null,s.createElement(`path`,{d:`M216,32H88a8,8,0,0,0-8,8V80H40a8,8,0,0,0-8,8V216a8,8,0,0,0,8,8H168a8,8,0,0,0,8-8V176h40a8,8,0,0,0,8-8V40A8,8,0,0,0,216,32ZM160,208H48V96H160Zm48-48H176V88a8,8,0,0,0-8-8H96V48H208Z`}))],[`thin`,s.createElement(s.Fragment,null,s.createElement(`path`,{d:`M216,36H88a4,4,0,0,0-4,4V84H40a4,4,0,0,0-4,4V216a4,4,0,0,0,4,4H168a4,4,0,0,0,4-4V172h44a4,4,0,0,0,4-4V40A4,4,0,0,0,216,36ZM164,212H44V92H164Zm48-48H172V88a4,4,0,0,0-4-4H92V44H212Z`}))]]),Tr=new Map([[`bold`,s.createElement(s.Fragment,null,s.createElement(`path`,{d:`M256,136a12,12,0,0,1-12,12h-8v8a12,12,0,0,1-24,0v-8h-8a12,12,0,0,1,0-24h8v-8a12,12,0,0,1,24,0v8h8A12,12,0,0,1,256,136Zm-54.81,56.28a12,12,0,1,1-18.38,15.44C169.12,191.42,145,172,108,172c-28.89,0-55.46,12.68-74.81,35.72a12,12,0,0,1-18.38-15.44A124.08,124.08,0,0,1,63.5,156.53a72,72,0,1,1,89,0A124,124,0,0,1,201.19,192.28ZM108,148a48,48,0,1,0-48-48A48.05,48.05,0,0,0,108,148Z`}))],[`duotone`,s.createElement(s.Fragment,null,s.createElement(`path`,{d:`M168,100a60,60,0,1,1-60-60A60,60,0,0,1,168,100Z`,opacity:`0.2`}),s.createElement(`path`,{d:`M256,136a8,8,0,0,1-8,8H232v16a8,8,0,0,1-16,0V144H200a8,8,0,0,1,0-16h16V112a8,8,0,0,1,16,0v16h16A8,8,0,0,1,256,136Zm-57.87,58.85a8,8,0,0,1-12.26,10.3C165.75,181.19,138.09,168,108,168s-57.75,13.19-77.87,37.15a8,8,0,0,1-12.25-10.3c14.94-17.78,33.52-30.41,54.17-37.17a68,68,0,1,1,71.9,0C164.6,164.44,183.18,177.07,198.13,194.85ZM108,152a52,52,0,1,0-52-52A52.06,52.06,0,0,0,108,152Z`}))],[`fill`,s.createElement(s.Fragment,null,s.createElement(`path`,{d:`M256,136a8,8,0,0,1-8,8H232v16a8,8,0,0,1-16,0V144H200a8,8,0,0,1,0-16h16V112a8,8,0,0,1,16,0v16h16A8,8,0,0,1,256,136ZM144,157.68a68,68,0,1,0-71.9,0c-20.65,6.76-39.23,19.39-54.17,37.17A8,8,0,0,0,24,208H192a8,8,0,0,0,6.13-13.15C183.18,177.07,164.6,164.44,144,157.68Z`}))],[`light`,s.createElement(s.Fragment,null,s.createElement(`path`,{d:`M254,136a6,6,0,0,1-6,6H230v18a6,6,0,0,1-12,0V142H200a6,6,0,0,1,0-12h18V112a6,6,0,0,1,12,0v18h18A6,6,0,0,1,254,136Zm-57.41,60.14a6,6,0,1,1-9.18,7.72C166.9,179.45,138.69,166,108,166s-58.89,13.45-79.41,37.86a6,6,0,0,1-9.18-7.72C35.14,177.41,55,164.48,77,158.25a66,66,0,1,1,62,0C161,164.48,180.86,177.41,196.59,196.14ZM108,154a54,54,0,1,0-54-54A54.06,54.06,0,0,0,108,154Z`}))],[`regular`,s.createElement(s.Fragment,null,s.createElement(`path`,{d:`M256,136a8,8,0,0,1-8,8H232v16a8,8,0,0,1-16,0V144H200a8,8,0,0,1,0-16h16V112a8,8,0,0,1,16,0v16h16A8,8,0,0,1,256,136Zm-57.87,58.85a8,8,0,0,1-12.26,10.3C165.75,181.19,138.09,168,108,168s-57.75,13.19-77.87,37.15a8,8,0,0,1-12.25-10.3c14.94-17.78,33.52-30.41,54.17-37.17a68,68,0,1,1,71.9,0C164.6,164.44,183.18,177.07,198.13,194.85ZM108,152a52,52,0,1,0-52-52A52.06,52.06,0,0,0,108,152Z`}))],[`thin`,s.createElement(s.Fragment,null,s.createElement(`path`,{d:`M252,136a4,4,0,0,1-4,4H228v20a4,4,0,0,1-8,0V140H200a4,4,0,0,1,0-8h20V112a4,4,0,0,1,8,0v20h20A4,4,0,0,1,252,136Zm-56.94,61.43a4,4,0,0,1-6.12,5.14C168,177.7,139.3,164,108,164s-60,13.7-80.94,38.57a4,4,0,1,1-6.12-5.14c16.71-19.9,38.13-33.13,61.89-38.59a64,64,0,1,1,50.34,0C156.93,164.3,178.35,177.53,195.06,197.43ZM108,156a56,56,0,1,0-56-56A56.06,56.06,0,0,0,108,156Z`}))]]),Er=(0,s.createContext)({color:`currentColor`,size:`1em`,weight:`regular`,mirrored:!1}),Dr=s.forwardRef((e,t)=>{let{alt:n,color:r,size:i,weight:a,mirrored:o,children:c,weights:l,...u}=e,{color:d=`currentColor`,size:f,weight:p=`regular`,mirrored:m=!1,...h}=s.useContext(Er);return s.createElement(`svg`,{ref:t,xmlns:`http://www.w3.org/2000/svg`,width:i??f,height:i??f,fill:r??d,viewBox:`0 0 256 256`,transform:o||m?`scale(-1, 1)`:void 0,...h,...u},!!n&&s.createElement(`title`,null,n),c,l.get(a??p))});Dr.displayName=`IconBase`;var Or=s.forwardRef((e,t)=>s.createElement(Dr,{ref:t,...e,weights:Sr}));Or.displayName=`ArrowRightIcon`;var kr=Or,Ar=s.forwardRef((e,t)=>s.createElement(Dr,{ref:t,...e,weights:Cr}));Ar.displayName=`CheckIcon`;var jr=Ar,Mr=s.forwardRef((e,t)=>s.createElement(Dr,{ref:t,...e,weights:wr}));Mr.displayName=`CopyIcon`;var Nr=Mr,Pr=s.forwardRef((e,t)=>s.createElement(Dr,{ref:t,...e,weights:Tr}));Pr.displayName=`UserPlusIcon`;var Fr=Pr,Ir=`fanout.access-token`,Lr=`fanout:unauthorized`;function Rr(){let e=new URLSearchParams(window.location.search).get(`return_to`);if(!e)return``;let t=new URL(e,window.location.origin);return t.origin!==window.location.origin||t.pathname!==`/api/auth/oauth/authorize`?``:`${t.pathname}${t.search}`}function zr(e){return!e||typeof e!=`object`||!(`id`in e)||typeof e.id!=`string`||e.id===``?`none`:`user`}function Br(){localStorage.removeItem(Ir)}function Vr(){Br(),window.dispatchEvent(new Event(Lr))}async function Hr(e,t={}){let n=new Headers(t.headers);n.set(`Fanout-Request`,`1`);let r=await fetch(e,{...t,headers:n,credentials:`same-origin`});if(r.status===401&&Vr(),r.status===403){let e=await r.clone().json().catch(()=>({}));throw Error(e.message??e.error??`You do not have permission to perform this action.`)}return r}async function Ur(){let e=await Hr(`/api/auth/logout`,{method:`POST`});if(!e.ok&&e.status!==401)throw Error(`Sign-out failed — your session is still active.`);e.status!==401&&Vr(),window.location.assign(`/`)}var Wr={small:{fontSize:15,gap:12,tracking:`0.16em`},regular:{fontSize:18,gap:14,tracking:`0.17em`},large:{fontSize:22,gap:16,tracking:`0.18em`}};function Gr({size:e=`regular`}){let t=Wr[e];return(0,c.jsxs)(pn,{component:`span`,gap:t.gap,wrap:`nowrap`,"aria-label":`Fanout`,children:[(0,c.jsx)(Kr,{size:e}),(0,c.jsx)(Z,{component:`span`,fz:t.fontSize,fw:800,lh:1,lts:t.tracking,tt:`uppercase`,children:`Fanout`})]})}function Kr({size:e=`regular`}){let t={small:32,regular:46,large:50}[e];return(0,c.jsx)(mr,{size:t,variant:`transparent`,"aria-hidden":`true`,children:(0,c.jsx)(qr,{})})}function qr(){let e=(0,s.useId)().replace(/[^a-zA-Z0-9-]/g,``),t=`fo-top-${e}`,n=`fo-mid-${e}`,r=`fo-bot-${e}`;return(0,c.jsxs)(`svg`,{viewBox:`35 44 200 200`,width:`100%`,height:`100%`,"aria-hidden":`true`,children:[(0,c.jsxs)(`defs`,{children:[(0,c.jsxs)(`linearGradient`,{id:t,x1:`54`,y1:`52`,x2:`210`,y2:`104`,gradientUnits:`userSpaceOnUse`,children:[(0,c.jsx)(`stop`,{offset:`0`,stopColor:`#5FE8CE`}),(0,c.jsx)(`stop`,{offset:`0.55`,stopColor:`#81E4B9`}),(0,c.jsx)(`stop`,{offset:`1`,stopColor:`#D9F276`})]}),(0,c.jsxs)(`linearGradient`,{id:n,x1:`58`,y1:`112`,x2:`176`,y2:`154`,gradientUnits:`userSpaceOnUse`,children:[(0,c.jsx)(`stop`,{offset:`0`,stopColor:`#536FFF`}),(0,c.jsx)(`stop`,{offset:`0.52`,stopColor:`#41B6F8`}),(0,c.jsx)(`stop`,{offset:`1`,stopColor:`#66D0EE`})]}),(0,c.jsxs)(`linearGradient`,{id:r,x1:`58`,y1:`166`,x2:`145`,y2:`220`,gradientUnits:`userSpaceOnUse`,children:[(0,c.jsx)(`stop`,{offset:`0`,stopColor:`#725BFF`}),(0,c.jsx)(`stop`,{offset:`0.52`,stopColor:`#9A50F4`}),(0,c.jsx)(`stop`,{offset:`1`,stopColor:`#CB55E8`})]})]}),(0,c.jsx)(`path`,{d:`M58 116V88C58 67 75 52 96 52H191C204 52 212 61 212 72C212 84 203 94 191 94H101C82 94 67 102 58 116Z`,fill:`url(#${t})`}),(0,c.jsx)(`path`,{d:`M58 170V139C58 120 72 107 91 107H162C174 107 182 115 182 126C182 137 174 145 162 145H99C79 145 66 154 58 170Z`,fill:`url(#${n})`}),(0,c.jsx)(`path`,{d:`M58 219V188C58 170 71 157 89 157H126C138 157 146 165 146 176C146 187 138 195 126 195H100C89 195 84 200 84 211C84 225 74 235 61 235H58Z`,fill:`url(#${r})`})]})}var Jr=(0,s.createContext)(null);function Yr(){let e=(0,s.useContext)(Jr);if(!e)throw Error(`Fanout runtime status is unavailable`);return e}async function Xr(e,t){let n=await fetch(e,{method:t===void 0?`GET`:`POST`,headers:t===void 0?void 0:{"Content-Type":`application/json`},body:t===void 0?void 0:JSON.stringify(t),credentials:`same-origin`}),r=await n.json().catch(()=>({}));if(!n.ok)throw Error(r.message??r.error??`Request failed (${n.status})`);return r}function Zr({children:e,wide:t=!1}){return(0,c.jsx)(q,{mih:`100dvh`,style:{background:`radial-gradient(circle at 50% -12%, var(--mantine-color-brand-light), transparent 38%), linear-gradient(180deg, var(--mantine-color-default-hover), var(--mantine-color-body) 62%)`},children:(0,c.jsx)(er,{mih:`100dvh`,px:`md`,py:48,children:(0,c.jsx)(sr,{size:t?680:480,w:`100%`,children:(0,c.jsx)(Ut,{radius:28,p:{base:24,sm:40},style:{background:`var(--mantine-color-body)`,border:`1px solid var(--mantine-color-default-border)`,boxShadow:`var(--mantine-shadow-xl)`},children:e})})})})}function Qr(){return typeof window>`u`?``:new URLSearchParams(window.location.search).get(`setup_token`)??``}function $r(){return typeof window>`u`?``:new URLSearchParams(window.location.search).get(`login_token`)??``}function ei({children:e}){let t=i(),[n,r]=(0,s.useState)(null),[a,o]=(0,s.useState)(!1),[l,u]=(0,s.useState)(`none`),[d,f]=(0,s.useState)(!1),[p,m]=(0,s.useState)(``),[h,g]=(0,s.useState)(``),[_,v]=(0,s.useState)(Qr),[y,b]=(0,s.useState)($r),[x,S]=(0,s.useState)(``),[C,w]=(0,s.useState)(!1),[T,E]=(0,s.useState)(!1),[D,O]=(0,s.useState)(``),[k,ee]=(0,s.useState)(null),[te,A]=(0,s.useState)(!1),j=Rr(),M=l===`user`;(0,s.useEffect)(()=>{let e=new URL(window.location.href);!e.searchParams.has(`setup_token`)&&!e.searchParams.has(`login_token`)||(e.searchParams.delete(`setup_token`),e.searchParams.delete(`login_token`),t({href:e.pathname+e.search+e.hash,replace:!0}))},[t]),(0,s.useEffect)(()=>{Br(),Xr(`/api/auth/status`).then(r).catch(e=>O(String(e))).finally(()=>o(!0)),fetch(`/api/auth/me`,{credentials:`same-origin`}).then(async e=>{if(!e.ok){u(`none`);return}let t=await e.json().catch(()=>null);u(zr(t))}).catch(()=>u(`none`)).finally(()=>f(!0));let e=()=>u(`none`);return window.addEventListener(Lr,e),()=>window.removeEventListener(Lr,e)},[]),(0,s.useEffect)(()=>{!d||l!==`none`||!y||(E(!0),O(``),Xr(`/api/auth/login-link`,{token:y}).then(()=>u(`user`)).catch(e=>O(e instanceof Error?e.message:String(e))).finally(()=>{b(``),E(!1)}))},[y,d,l]),(0,s.useEffect)(()=>{M&&d&&j&&window.location.replace(j)},[M,j,d]);async function N(){try{await navigator.clipboard.writeText(k?.ingest_token??``),A(!0)}catch{O(`Clipboard access failed. Select and copy the token manually.`)}}if(k?.ingest_token)return(0,c.jsx)(Zr,{wide:!0,children:(0,c.jsxs)($,{gap:`lg`,children:[(0,c.jsx)(Gr,{}),(0,c.jsxs)(`div`,{children:[(0,c.jsx)(Z,{c:`brand`,fw:700,size:`xs`,tt:`uppercase`,lts:`0.12em`,children:`Setup complete`}),(0,c.jsx)(xr,{order:1,mt:`xs`,fz:{base:30,sm:36},fw:650,lh:1.08,children:`Save your ingest token`})]}),(0,c.jsx)(Z,{c:`dimmed`,children:`Fanout shows this token once. Store it with your collector secrets before continuing.`}),(0,c.jsxs)($,{gap:`xs`,children:[(0,c.jsx)(Z,{size:`sm`,fw:600,children:`OTLP endpoint`}),(0,c.jsx)(rr,{block:!0,children:k.suggested_endpoint??`${window.location.hostname}:4317`})]}),(0,c.jsxs)($,{gap:`xs`,children:[(0,c.jsx)(Z,{size:`sm`,fw:600,children:`Header`}),(0,c.jsxs)(rr,{block:!0,children:[k.ingest_header_name??`Authorization`,`: Bearer `,k.ingest_token]})]}),D&&(0,c.jsx)(Bn,{color:`bad`,radius:`md`,children:D}),(0,c.jsxs)(pn,{grow:!0,align:`stretch`,children:[(0,c.jsx)(Q,{variant:`light`,radius:`md`,leftSection:te?(0,c.jsx)(jr,{size:16,weight:`bold`}):(0,c.jsx)(Nr,{size:16}),onClick:()=>void N(),children:te?`Copied`:`Copy token`}),(0,c.jsx)(Q,{radius:`md`,rightSection:(0,c.jsx)(kr,{size:16,weight:`bold`}),onClick:()=>{u(`user`),ee(null)},children:`Continue to Fanout`})]})]})});if(!d||!a||y)return(0,c.jsx)(er,{mih:`100dvh`,children:(0,c.jsx)(nn,{size:`sm`})});if(!n)return(0,c.jsx)(Zr,{children:(0,c.jsxs)($,{gap:`lg`,children:[(0,c.jsx)(Gr,{}),(0,c.jsx)(xr,{order:1,children:`Fanout is unavailable`}),(0,c.jsx)(Bn,{color:`bad`,radius:`md`,children:D||`Authentication status could not be loaded.`})]})});if(M&&j)return null;if(M)return(0,c.jsx)(Jr.Provider,{value:n,children:e});if(n&&!n.setup_required&&n.auth_mode===`oidc`){let e=j?`/api/auth/oidc/start?return_to=${encodeURIComponent(j)}`:`/api/auth/oidc/start`;return(0,c.jsx)(Zr,{children:(0,c.jsxs)($,{gap:28,children:[(0,c.jsx)(Gr,{}),(0,c.jsxs)($,{gap:10,children:[(0,c.jsx)(Z,{c:`brand`,fw:700,size:`xs`,tt:`uppercase`,lts:`0.12em`,children:`Secure workspace`}),(0,c.jsx)(xr,{order:1,fz:{base:30,sm:36},fw:650,lh:1.08,children:`Sign in to investigate`}),(0,c.jsx)(Z,{c:`dimmed`,size:`md`,lh:1.6,children:`Use your organization's identity provider to continue.`})]}),D&&(0,c.jsx)(Bn,{color:`bad`,radius:`md`,children:D}),(0,c.jsx)(Q,{component:`a`,href:e,size:`md`,radius:`md`,rightSection:(0,c.jsx)(kr,{size:17,weight:`bold`}),children:`Continue with SSO`})]})})}async function ne(e){e.preventDefault(),E(!0),O(``);try{if(n?.setup_required){let e=await Xr(`/api/auth/setup`,{email:p,name:h,setup_token:_});e.ingest_token?ee(e):u(`user`)}else C?(await Xr(`/api/auth/verify`,{email:p,code:x}),u(`user`)):(await Xr(`/api/auth/start`,{email:p}),w(!0))}catch(e){O(e instanceof Error?e.message:String(e))}finally{E(!1)}}return(0,c.jsx)(Zr,{children:(0,c.jsxs)($,{gap:28,children:[(0,c.jsx)(Gr,{}),(0,c.jsxs)($,{gap:10,children:[(0,c.jsx)(Z,{c:`brand`,fw:700,size:`xs`,tt:`uppercase`,lts:`0.12em`,children:n?.setup_required?`One-time setup`:`Secure workspace`}),(0,c.jsx)(xr,{order:1,fz:{base:30,sm:36},fw:650,lh:1.08,children:n?.setup_required?`Create the first admin`:n?.self_signup?`Sign in or create an account`:`Sign in to investigate`}),(0,c.jsx)(Z,{c:`dimmed`,size:`md`,lh:1.6,maw:390,children:n?.setup_required?`Use the one-time token printed by the Fanout process.`:n?.smtp_configured?C?`Enter the verification code sent to ${p}.`:n?.self_signup?`Enter your email to sign in or create a viewer account. No password needed.`:`Enter your email and we’ll send a short verification code. No password needed.`:`Email delivery is not configured. Ask the operator to run fanout login-link with your email address.`})]}),(0,c.jsx)(`form`,{onSubmit:ne,children:(0,c.jsxs)($,{gap:`md`,children:[(0,c.jsx)(dr,{label:`Email`,placeholder:`you@company.com`,type:`email`,required:!0,value:p,onChange:e=>m(e.currentTarget.value),disabled:C,variant:`filled`,radius:`md`,size:`md`,autoFocus:!C}),n?.setup_required&&(0,c.jsx)(dr,{label:`Name`,placeholder:`Your name`,value:h,onChange:e=>g(e.currentTarget.value),variant:`filled`,radius:`md`,size:`md`}),n?.setup_required&&(0,c.jsx)(dr,{label:`Setup token`,placeholder:`from the setup URL printed at startup`,required:!0,value:_,onChange:e=>v(e.currentTarget.value),autoComplete:`one-time-code`,variant:`filled`,radius:`md`,size:`md`}),!n?.setup_required&&C&&(0,c.jsx)(dr,{label:`Verification code`,placeholder:`000000`,required:!0,value:x,onChange:e=>S(e.currentTarget.value),autoComplete:`one-time-code`,variant:`filled`,radius:`md`,size:`md`,styles:{input:{letterSpacing:`0.2em`,fontVariantNumeric:`tabular-nums`}},autoFocus:!0}),D&&(0,c.jsx)(Bn,{color:`bad`,radius:`md`,children:D}),(0,c.jsx)(Q,{type:`submit`,size:`md`,radius:`md`,mt:4,loading:T,disabled:!n||!n.setup_required&&!n.smtp_configured,leftSection:n?.setup_required?(0,c.jsx)(Fr,{size:17,weight:`bold`}):void 0,rightSection:n?.setup_required?void 0:(0,c.jsx)(kr,{size:17,weight:`bold`}),children:n?.setup_required?`Create admin`:C?`Verify code`:`Send code`})]})})]})})}export{te as $,rt as A,ge as B,Bt as C,jt as D,G as E,Ie as F,V as G,Ce as H,Fe as I,z as J,B as K,De as L,W as M,Re as N,Dt as O,U as P,A as Q,he as R,Ut as S,K as T,ve as U,we as V,pe as W,re as X,R as Y,M as Z,X as _,Ur as a,x as at,nn as b,xr as c,b as ct,sr as d,h as dt,ee as et,er as f,d as ft,Ln as g,Bn as h,Hr as i,S as it,tt as j,Et as k,dr as l,_ as lt,Z as m,o as mt,Yr as n,O as nt,jr as o,w as ot,Q as p,l as pt,de as q,Gr as r,D as rt,Dr as s,y as st,ei as t,k as tt,$ as u,g as ut,pn as v,q as w,Yt as x,cn as y,H as z}; \ No newline at end of file diff --git a/internal/ui/dist/assets/chat._threadId-BzILJQZc.js b/internal/ui/dist/assets/chat._threadId-BzILJQZc.js new file mode 100644 index 00000000..51ded049 --- /dev/null +++ b/internal/ui/dist/assets/chat._threadId-BzILJQZc.js @@ -0,0 +1 @@ +import{n as e}from"./index-BtOLla1t.js";var t=e;export{t as component}; \ No newline at end of file diff --git a/internal/ui/dist/assets/chat._threadId-CTS2jH1q.js b/internal/ui/dist/assets/chat._threadId-CTS2jH1q.js deleted file mode 100644 index 075cd17d..00000000 --- a/internal/ui/dist/assets/chat._threadId-CTS2jH1q.js +++ /dev/null @@ -1 +0,0 @@ -import{n as e}from"./index-BCWAnY2u.js";var t=e;export{t as component}; \ No newline at end of file diff --git a/internal/ui/dist/assets/chat.index-m5Pb-ySL.js b/internal/ui/dist/assets/chat.index-ChMb2Nc1.js similarity index 75% rename from internal/ui/dist/assets/chat.index-m5Pb-ySL.js rename to internal/ui/dist/assets/chat.index-ChMb2Nc1.js index e488667c..dc172948 100644 --- a/internal/ui/dist/assets/chat.index-m5Pb-ySL.js +++ b/internal/ui/dist/assets/chat.index-ChMb2Nc1.js @@ -1 +1 @@ -import{_ as e,a as t,d as n,t as r}from"./useNavigate-DyHkI5qo.js";import{i}from"./index-BCWAnY2u.js";var a=e(n()),o=t();function s(){let e=(0,a.useMemo)(()=>i(),[]);return(0,o.jsx)(r,{to:`/chat/$threadId`,params:{threadId:e},replace:!0})}export{s as component}; \ No newline at end of file +import{_ as e,a as t,d as n,t as r}from"./useNavigate-DyHkI5qo.js";import{i}from"./index-BtOLla1t.js";var a=e(n()),o=t();function s(){let e=(0,a.useMemo)(()=>i(),[]);return(0,o.jsx)(r,{to:`/chat/$threadId`,params:{threadId:e},replace:!0})}export{s as component}; \ No newline at end of file diff --git a/internal/ui/dist/assets/dashboard-D_m9uFDI.js b/internal/ui/dist/assets/dashboard-D_m9uFDI.js new file mode 100644 index 00000000..ccddd233 --- /dev/null +++ b/internal/ui/dist/assets/dashboard-D_m9uFDI.js @@ -0,0 +1,5 @@ +import{_ as e,a as t,d as n,f as r}from"./useNavigate-DyHkI5qo.js";import{A as i,D as a,E as o,I as s,J as c,M as l,N as u,O as d,P as f,Q as p,S as m,T as h,V as g,Z as _,_ as v,at as y,b,c as x,ct as S,dt as C,et as w,f as T,g as E,h as ee,i as D,it as te,j as O,k,l as A,lt as j,m as M,mt as ne,o as re,p as N,s as ie,st as ae,u as oe,v as se,w as P}from"./auth-C4PUlevI.js";import{A as F,C as ce,D as le,E as I,M as ue,O as L,S as de,_ as fe,a as pe,b as me,c as he,d as ge,f as _e,g as R,h as z,i as ve,j as B,k as V,l as ye,m as H,o as U,p as be,s as W,u as xe,v as Se,w as Ce,x as G,y as we}from"./index-BtOLla1t.js";var K=e(n(),1);function Te(e){let t=(0,K.useRef)(void 0);return(0,K.useEffect)(()=>{t.current=e},[e]),t.current}var q=t();function Ee(e,t=document){let n=t.querySelector(e);if(n)return n;let r=t.querySelectorAll(`*`);for(let t=0;t{let t=f(`Flex`,null,e),{classNames:n,className:r,style:a,styles:o,unstyled:c,vars:u,gap:p,rowGap:m,columnGap:h,align:_,justify:v,wrap:y,direction:b,attributes:x,...S}=t,C=l({name:`Flex`,classes:ke,props:t,className:r,style:a,classNames:n,styles:o,unstyled:c,attributes:x,vars:u}),w=s(),T=d(),E=k({styleProps:{gap:p,rowGap:m,columnGap:h,align:_,justify:v,wrap:y,direction:b},theme:w,data:Oe}),ee=g(),D=ee&&E.hasResponsiveStyles?i(E.styles,E.media):T;return(0,q.jsxs)(q.Fragment,{children:[E.hasResponsiveStyles&&(0,q.jsx)(O,{selector:`.${D}`,styles:E.styles,media:E.media,deduplicate:ee}),(0,q.jsx)(P,{...C(`root`,{className:D,style:j(E.inlineStyles)}),...S})]})});X.classes=ke,X.displayName=`@mantine/core/Flex`;function Ae(e){return typeof e==`string`?{value:e,label:e}:typeof e==`object`&&`value`in e&&!(`label`in e)?{value:e.value,label:`${e.value}`,disabled:e.disabled}:typeof e==`object`&&`group`in e?{group:e.group,items:e.items.map(e=>Ae(e))}:typeof e==`number`||typeof e==`bigint`||typeof e==`boolean`?{value:e,label:`${e}`}:e}function je(e){return e?e.map(e=>Ae(e)):[]}function Me(e){return e.reduce((e,t)=>`group`in t?{...e,...Me(t.items)}:(e[`${t.value}`]=t,e),{})}var Z={dropdown:`m_88b62a41`,search:`m_985517d8`,options:`m_b2821a6e`,option:`m_92253aa5`,empty:`m_2530cd1d`,header:`m_858f94bd`,footer:`m_82b967cb`,group:`m_254f3e4f`,groupLabel:`m_2bb2e9e5`,chevron:`m_2943220b`,optionsDropdownOption:`m_390b5f4`,optionsDropdownCheckIcon:`m_8ee53fc2`,optionsDropdownCheckPlaceholder:`m_a530ee0a`},Ne={error:null},Pe=p((e,{size:t,color:n})=>({chevron:{"--combobox-chevron-size":ae(t,`combobox-chevron-size`),"--combobox-chevron-color":n?c(n,e):void 0}})),Fe=o(e=>{let t=f(`ComboboxChevron`,Ne,e),{size:n,error:r,style:i,className:a,classNames:o,styles:s,unstyled:c,vars:u,attributes:d,mod:p,...m}=t,h=l({name:`ComboboxChevron`,classes:Z,props:t,style:i,className:a,classNames:o,styles:s,unstyled:c,vars:u,varsResolver:Pe,attributes:d,rootSelector:`chevron`});return(0,q.jsx)(P,{component:`svg`,...m,...h(`chevron`),size:n,viewBox:`0 0 15 15`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,mod:[`combobox-chevron`,{error:r},p],children:(0,q.jsx)(`path`,{d:`M4.93179 5.43179C4.75605 5.60753 4.75605 5.89245 4.93179 6.06819C5.10753 6.24392 5.39245 6.24392 5.56819 6.06819L7.49999 4.13638L9.43179 6.06819C9.60753 6.24392 9.89245 6.24392 10.0682 6.06819C10.2439 5.89245 10.2439 5.60753 10.0682 5.43179L7.81819 3.18179C7.73379 3.0974 7.61933 3.04999 7.49999 3.04999C7.38064 3.04999 7.26618 3.0974 7.18179 3.18179L4.93179 5.43179ZM10.0682 9.56819C10.2439 9.39245 10.2439 9.10753 10.0682 8.93179C9.89245 8.75606 9.60753 8.75606 9.43179 8.93179L7.49999 10.8636L5.56819 8.93179C5.39245 8.75606 5.10753 8.75606 4.93179 8.93179C4.75605 9.10753 4.75605 9.39245 4.93179 9.56819L7.18179 11.8182C7.35753 11.9939 7.64245 11.9939 7.81819 11.8182L10.0682 9.56819Z`,fill:`currentColor`,fillRule:`evenodd`,clipRule:`evenodd`})})});Fe.classes=Z,Fe.varsResolver=Pe,Fe.displayName=`@mantine/core/ComboboxChevron`;var[Ie,Le]=B(`Combobox component was not found in tree`);function Re({onMouseDown:e,onClick:t,onClear:n,...r}){return(0,q.jsx)(v.ClearButton,{tabIndex:-1,"aria-hidden":!0,...r,onMouseDown:t=>{t.preventDefault(),e?.(t)},onClick:e=>{n(),t?.(e)}})}Re.displayName=`@mantine/core/ComboboxClearButton`;var ze=o(e=>{let{classNames:t,styles:n,className:r,style:i,hidden:a,...o}=f(`ComboboxDropdown`,null,e),s=Le();return(0,q.jsx)(ce.Dropdown,{...o,role:`presentation`,"data-hidden":a||void 0,"data-floating-height":s.floatingHeight||void 0,...s.getStyles(`dropdown`,{className:r,style:i,classNames:t,styles:n})})});ze.classes=Z,ze.displayName=`@mantine/core/ComboboxDropdown`;var Be={refProp:`ref`},Ve=o(e=>{let{children:t,refProp:n,ref:r}=f(`ComboboxDropdownTarget`,Be,e);if(Le(),!ue(t))throw Error(`Combobox.DropdownTarget component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported`);return(0,q.jsx)(ce.Target,{ref:r,refProp:n,children:t})});Ve.displayName=`@mantine/core/ComboboxDropdownTarget`;var He=o(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,...o}=f(`ComboboxEmpty`,null,e);return(0,q.jsx)(P,{...Le().getStyles(`empty`,{className:n,classNames:t,styles:i,style:r}),...o})});He.classes=Z,He.displayName=`@mantine/core/ComboboxEmpty`;function Ue({onKeyDown:e,onClick:t,withKeyboardNavigation:n,withAriaAttributes:r,withExpandedAttribute:i,targetType:a,autoComplete:o}){let s=Le(),[c,l]=(0,K.useState)(null),u=t=>{if(e?.(t),!s.readOnly&&n){if(t.nativeEvent.isComposing)return;if(t.nativeEvent.code===`ArrowDown`&&(t.preventDefault(),s.store.dropdownOpened?l(s.store.selectNextOption()):(s.store.openDropdown(`keyboard`),l(s.store.selectActiveOption()),s.store.updateSelectedOptionIndex(`selected`,{scrollIntoView:!0}))),t.nativeEvent.code===`ArrowUp`&&(t.preventDefault(),s.store.dropdownOpened?l(s.store.selectPreviousOption()):(s.store.openDropdown(`keyboard`),l(s.store.selectActiveOption()),s.store.updateSelectedOptionIndex(`selected`,{scrollIntoView:!0}))),t.nativeEvent.code===`Enter`||t.nativeEvent.code===`NumpadEnter`){if(t.nativeEvent.keyCode===229)return;let e=s.store.getSelectedOptionIndex();s.store.dropdownOpened&&e!==-1?(t.preventDefault(),s.store.clickSelectedOption()):a===`button`&&(t.preventDefault(),s.store.openDropdown(`keyboard`))}t.key===`Escape`&&s.store.closeDropdown(`keyboard`),t.nativeEvent.code===`Space`&&a===`button`&&(t.preventDefault(),s.store.toggleDropdown(`keyboard`))}},d=r?{...i?{role:`combobox`}:{},"aria-haspopup":`listbox`,"aria-expanded":i?!!(s.store.listId&&s.store.dropdownOpened):void 0,"aria-controls":s.store.dropdownOpened&&s.store.listId?s.store.listId:void 0,"aria-activedescendant":s.store.dropdownOpened&&c||void 0,autoComplete:o,"data-expanded":s.store.dropdownOpened||void 0,"data-mantine-stop-propagation":s.store.dropdownOpened||void 0}:{},f=e=>{a===`button`&&e.currentTarget.focus(),t?.(e)};return{...d,onKeyDown:u,onClick:f}}var We={refProp:`ref`,targetType:`input`,withKeyboardNavigation:!0,withAriaAttributes:!0,withExpandedAttribute:!1,autoComplete:`off`},Ge=o(e=>{let{children:t,refProp:n,withKeyboardNavigation:r,withAriaAttributes:i,withExpandedAttribute:a,targetType:o,autoComplete:s,ref:c,...l}=f(`ComboboxEventsTarget`,We,e),u=le(t);if(!u)throw Error(`Combobox.EventsTarget component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported`);let d=Le();return(0,K.cloneElement)(u,{...Ue({targetType:o,withAriaAttributes:i,withKeyboardNavigation:r,withExpandedAttribute:a,onKeyDown:u.props.onKeyDown,onClick:u.props.onClick,autoComplete:s}),...l,[n]:F(c,d.store.targetRef,L(u))})});Ge.displayName=`@mantine/core/ComboboxEventsTarget`;var Ke=o(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,...o}=f(`ComboboxFooter`,null,e);return(0,q.jsx)(P,{...Le().getStyles(`footer`,{className:n,classNames:t,style:r,styles:i}),...o,onMouseDown:e=>{e.preventDefault()}})});Ke.classes=Z,Ke.displayName=`@mantine/core/ComboboxFooter`;var qe=o(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,children:o,label:s,id:c,...l}=f(`ComboboxGroup`,null,e),u=Le(),d=w(c),p=s!=null&&s!==!1&&s!==``;return(0,q.jsxs)(P,{role:`group`,"aria-labelledby":p?d:void 0,...u.getStyles(`group`,{className:n,classNames:t,style:r,styles:i}),...l,children:[p&&(0,q.jsx)(`div`,{id:d,...u.getStyles(`groupLabel`,{classNames:t,styles:i}),children:s}),o]})});qe.classes=Z,qe.displayName=`@mantine/core/ComboboxGroup`;var Je=o(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,...o}=f(`ComboboxHeader`,null,e);return(0,q.jsx)(P,{...Le().getStyles(`header`,{className:n,classNames:t,style:r,styles:i}),...o,onMouseDown:e=>{e.preventDefault()}})});Je.classes=Z,Je.displayName=`@mantine/core/ComboboxHeader`;function Ye({value:e,valuesDivider:t=`,`,...n}){return(0,q.jsx)(`input`,{type:`hidden`,value:Array.isArray(e)?e.join(t):e?`${e}`:``,...n})}Ye.displayName=`@mantine/core/ComboboxHiddenInput`;var Xe=o(e=>{let t=f(`ComboboxOption`,null,e),{classNames:n,className:r,style:i,styles:a,vars:o,onClick:s,id:c,active:l,onMouseDown:u,onMouseOver:d,disabled:p,selected:m,mod:h,...g}=t,_=Le(),v=(0,K.useId)(),y=c||v;return(0,q.jsx)(P,{..._.getStyles(`option`,{className:r,classNames:n,styles:a,style:i}),...g,id:y,mod:[`combobox-option`,{"combobox-active":l,"combobox-disabled":p,"combobox-selected":m},h],role:`option`,onClick:e=>{p?e.preventDefault():(_.onOptionSubmit?.(t.value,t),s?.(e))},onMouseDown:e=>{e.preventDefault(),u?.(e)},onMouseOver:e=>{_.resetSelectionOnOptionHover&&_.store.resetSelectedOption(),d?.(e)}})});Xe.classes=Z,Xe.displayName=`@mantine/core/ComboboxOption`;var Ze=o(e=>{let{classNames:t,className:n,style:r,styles:i,id:a,onMouseDown:o,labelledBy:s,...c}=f(`ComboboxOptions`,null,e),l=Le(),u=w(a);return(0,K.useEffect)(()=>{l.store.setListId(u)},[u]),(0,q.jsx)(P,{...l.getStyles(`options`,{className:n,style:r,classNames:t,styles:i}),...c,id:u,role:`listbox`,"aria-labelledby":s,onMouseDown:e=>{e.preventDefault(),o?.(e)}})});Ze.classes=Z,Ze.displayName=`@mantine/core/ComboboxOptions`;var Qe={withAriaAttributes:!0,withKeyboardNavigation:!0},$e=o(e=>{let{classNames:t,styles:n,unstyled:r,vars:i,withAriaAttributes:a,onKeyDown:o,onClick:s,withKeyboardNavigation:c,size:l,ref:u,...d}=f(`ComboboxSearch`,Qe,e),p=Le(),m=p.getStyles(`search`),h=Ue({targetType:`input`,withAriaAttributes:a,withKeyboardNavigation:c,withExpandedAttribute:!1,onKeyDown:o,onClick:s,autoComplete:`off`});return(0,q.jsx)(v,{ref:F(u,p.store.searchRef),classNames:[{input:m.className},t],styles:[{input:m.style},n],size:l||p.size,...h,...d,__staticSelector:`Combobox`})});$e.classes=Z,$e.displayName=`@mantine/core/ComboboxSearch`;var et={refProp:`ref`,targetType:`input`,withKeyboardNavigation:!0,withAriaAttributes:!0,withExpandedAttribute:!1,autoComplete:`off`},tt=o(e=>{let{children:t,refProp:n,withKeyboardNavigation:r,withAriaAttributes:i,withExpandedAttribute:a,targetType:o,autoComplete:s,ref:c,...l}=f(`ComboboxTarget`,et,e),u=le(t);if(!u)throw Error(`Combobox.Target component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported`);let d=Le(),p=(0,K.cloneElement)(u,{...Ue({targetType:o,withAriaAttributes:i,withKeyboardNavigation:r,withExpandedAttribute:a,onKeyDown:u.props.onKeyDown,onClick:u.props.onClick,autoComplete:s}),...l});return(0,q.jsx)(ce.Target,{refProp:n,ref:F(c,d.store.targetRef),children:p})});tt.displayName=`@mantine/core/ComboboxTarget`;function nt(e,t,n){for(let n=e-1;n>=0;--n)if(!t[n].hasAttribute(`data-combobox-disabled`))return n;if(n){for(let e=t.length-1;e>-1;--e)if(!t[e].hasAttribute(`data-combobox-disabled`))return e}return e}function rt(e,t,n){for(let n=e+1;n{s||(c(!0),i?.(e))},[c,i,s]),_=(0,K.useCallback)((e=`unknown`)=>{s&&(c(!1),r?.(e))},[c,r,s]),v=(0,K.useCallback)((e=`unknown`)=>{s?_(e):g(e)},[_,g,s]),y=(0,K.useCallback)(()=>{let e=Y(f.current),t=Ee(`#${l.current} [data-combobox-selected]`,e);t?.removeAttribute(`data-combobox-selected`),t?.removeAttribute(`aria-selected`)},[]),b=(0,K.useCallback)(e=>{let t=Y(f.current),n=Ee(`#${l.current}`,t),r=n?J(`[data-combobox-option]`,n):null;if(!r)return null;let i=e>=r.length?0:e<0?r.length-1:e;return u.current=i,r?.[i]&&!r[i].hasAttribute(`data-combobox-disabled`)?(y(),r[i].setAttribute(`data-combobox-selected`,`true`),r[i].setAttribute(`aria-selected`,`true`),r[i].scrollIntoView({block:`nearest`,behavior:o}),r[i].id):null},[o,y]),x=(0,K.useCallback)(()=>{let e=Y(f.current),t=Ee(`#${l.current} [data-combobox-active]`,e);if(t){let n=J(`#${l.current} [data-combobox-option]`,e).findIndex(e=>e===t);return b(n)}return b(0)},[b]),S=(0,K.useCallback)(()=>{let e=Y(f.current),t=J(`#${l.current} [data-combobox-option]`,e);return b(rt(u.current,t,a))},[b,a]),C=(0,K.useCallback)(()=>{let e=Y(f.current),t=J(`#${l.current} [data-combobox-option]`,e);return b(nt(u.current,t,a))},[b,a]),w=(0,K.useCallback)(()=>{let e=Y(f.current),t=J(`#${l.current} [data-combobox-option]`,e);return b(it(t))},[b]),T=(0,K.useCallback)((e=`selected`,t)=>{if(typeof e==`number`){u.current=e;let n=Y(f.current),r=J(`#${l.current} [data-combobox-option]`,n);t?.scrollIntoView&&r[e]?.scrollIntoView({block:`nearest`,behavior:o});return}h.current=window.setTimeout(()=>{let n=Y(f.current),r=J(`#${l.current} [data-combobox-option]`,n),i=r.findIndex(t=>t.hasAttribute(`data-combobox-${e}`));u.current=i,t?.scrollIntoView&&r[i]?.scrollIntoView({block:`nearest`,behavior:o})},0)},[]),E=(0,K.useCallback)(()=>{u.current=-1,y()},[y]),ee=(0,K.useCallback)(()=>{let e=Y(f.current);(J(`#${l.current} [data-combobox-option]`,e)?.[u.current])?.click()},[]),D=(0,K.useCallback)(e=>{l.current=e},[]),te=(0,K.useCallback)(()=>{p.current=window.setTimeout(()=>d.current?.focus(),0)},[]),O=(0,K.useCallback)(()=>{m.current=window.setTimeout(()=>f.current?.focus(),0)},[]),k=(0,K.useCallback)(()=>u.current,[]);return(0,K.useEffect)(()=>()=>{window.clearTimeout(p.current),window.clearTimeout(m.current),window.clearTimeout(h.current)},[]),{dropdownOpened:s,openDropdown:g,closeDropdown:_,toggleDropdown:v,selectedOptionIndex:u.current,getSelectedOptionIndex:k,selectOption:b,selectFirstOption:w,selectActiveOption:x,selectNextOption:S,selectPreviousOption:C,resetSelectedOption:E,updateSelectedOptionIndex:T,listId:l.current,setListId:D,clickSelectedOption:ee,searchRef:d,focusSearchInput:te,targetRef:f,focusTarget:O}}var ot={keepMounted:!0,keepMountedMode:`display-none`,withinPortal:!0,resetSelectionOnOptionHover:!1,width:`target`,transitionProps:{transition:`fade`,duration:0},size:`sm`},st=p((e,{size:t,dropdownPadding:n})=>({options:{"--combobox-option-fz":te(t),"--combobox-option-padding":ae(t,`combobox-option-padding`)},dropdown:{"--combobox-padding":n===void 0?void 0:C(n),"--combobox-option-fz":te(t),"--combobox-option-padding":ae(t,`combobox-option-padding`)}})),Q=e=>{let t=f(`Combobox`,ot,e),{classNames:n,styles:r,unstyled:i,children:a,store:o,vars:s,onOptionSubmit:c,onClose:u,size:d,dropdownPadding:p,resetSelectionOnOptionHover:m,__staticSelector:h,readOnly:g,attributes:_,floatingHeight:v,middlewares:y,...b}=t,x=v===`viewport`?{...y,flip:!1,size:{...typeof y?.size==`object`?y.size:{},padding:typeof y?.size==`object`&&y.size.padding!==void 0?y.size.padding:10,apply:({availableHeight:e,availableWidth:t,elements:n,...r})=>{n.floating.style.setProperty(`--combobox-floating-max-height`,`${e}px`);let i=y?.size;typeof i==`object`&&i.apply?i.apply({availableHeight:e,availableWidth:t,elements:n,...r}):i&&Object.assign(n.floating.style,{maxWidth:`${t}px`,maxHeight:`${e}px`})}}}:y,S=at(),C=o||S,w=l({name:h||`Combobox`,classes:Z,props:t,classNames:n,styles:r,unstyled:i,attributes:_,vars:s,varsResolver:st}),T=()=>{u?.(),C.closeDropdown()};return(0,q.jsx)(Ie,{value:{getStyles:w,store:C,onOptionSubmit:c,size:d,resetSelectionOnOptionHover:m,readOnly:g,floatingHeight:v},children:(0,q.jsx)(ce,{opened:C.dropdownOpened,...b,middlewares:x,onChange:e=>!e&&T(),withRoles:!1,unstyled:i,children:a})})};Q.extend=e=>e,Q.classes=Z,Q.varsResolver=st,Q.displayName=`@mantine/core/Combobox`,Q.Target=tt,Q.Dropdown=ze,Q.Options=Ze,Q.Option=Xe,Q.Search=$e,Q.Empty=He,Q.Chevron=Fe,Q.Footer=Ke,Q.Header=Je,Q.EventsTarget=Ge,Q.DropdownTarget=Ve,Q.Group=qe,Q.ClearButton=Re,Q.HiddenInput=Ye;function ct(e){return`group`in e}function lt({options:e,search:t,limit:n}){let r=t.trim().toLowerCase(),i=[];for(let a=0;a0)return!1;return!0}function dt(e,t=new Set){if(Array.isArray(e))for(let n of e)if(ct(n))dt(n.items,t);else{if(n.value===void 0)throw Error(`[@mantine/core] Each option must have value property`);if(t.has(n.value))throw Error(`[@mantine/core] Duplicate options are not supported. Option with value "${n.value}" was provided more than once`);t.add(n.value)}}function ft(e,t){return Array.isArray(e)?e.includes(t):e===t}function pt({data:e,withCheckIcon:t,withAlignedLabels:n,value:r,checkIconPosition:i,unstyled:a,renderOption:o}){if(!ct(e)){let s=ft(r,e.value),c=t&&(s?(0,q.jsx)(G,{className:Z.optionsDropdownCheckIcon}):n?(0,q.jsx)(`div`,{className:Z.optionsDropdownCheckPlaceholder}):null),l=(0,q.jsxs)(q.Fragment,{children:[i===`left`&&c,(0,q.jsx)(`span`,{children:e.label}),i===`right`&&c]});return(0,q.jsx)(Q.Option,{value:e.value,disabled:e.disabled,className:_({[Z.optionsDropdownOption]:!a}),"data-reverse":i===`right`||void 0,"data-checked":s||void 0,"aria-selected":s,active:s,children:typeof o==`function`?o({option:e,checked:s}):l})}let s=e.items.map(e=>(0,q.jsx)(pt,{data:e,value:r,unstyled:a,withCheckIcon:t,withAlignedLabels:n,checkIconPosition:i,renderOption:o},`${e.value}`));return(0,q.jsx)(Q.Group,{label:e.group,children:s})}function mt({data:e,hidden:t,hiddenWhenEmpty:n,filter:r,search:i,limit:a,maxDropdownHeight:o,floatingHeight:s,withScrollArea:c=!0,filterOptions:l=!0,withCheckIcon:u=!1,withAlignedLabels:d=!1,value:f,checkIconPosition:p,nothingFoundMessage:m,unstyled:h,labelId:g,renderOption:_,scrollAreaProps:v,"aria-label":y}){let b=Le();dt(e);let x=typeof i==`string`?(r||lt)({options:e,search:l?i:``,limit:a??1/0}):e,S=ut(x),C=x.map((e,t)=>(0,q.jsx)(pt,{data:e,withCheckIcon:u,withAlignedLabels:d,value:f,checkIconPosition:p,unstyled:h,renderOption:_},ct(e)?`group-${typeof e.group==`string`?e.group:t}`:`${e.value}`));return(0,q.jsx)(Q.Dropdown,{hidden:t||n&&S,"data-composed":!0,children:(0,q.jsxs)(Q.Options,{labelledBy:g,"aria-label":y,children:[c?(0,q.jsx)(Ce.Autosize,{mah:(s??b.floatingHeight)===`viewport`?`var(--combobox-floating-options-max-height)`:o??220,type:`scroll`,scrollbarSize:`var(--combobox-padding)`,offsetScrollbars:`y`,...v,children:C}):C,S&&m&&(0,q.jsx)(Q.Empty,{children:m})]})})}var ht={root:`m_347db0ec`,"root--dot":`m_fbd81e3d`,label:`m_5add502a`,section:`m_91fdda9b`},gt=p((e,{radius:t,color:n,gradient:r,variant:i,size:a,autoContrast:o,circle:s})=>{let l=e.variantColorResolver({color:n||e.primaryColor,theme:e,gradient:r,variant:i||`filled`,autoContrast:o});return{root:{"--badge-height":ae(a,`badge-height`),"--badge-padding-x":ae(a,`badge-padding-x`),"--badge-fz":ae(a,`badge-fz`),"--badge-radius":s||t===void 0?void 0:y(t),"--badge-bg":n||i?l.background:void 0,"--badge-color":n||i?l.color:void 0,"--badge-bd":n||i?l.border:void 0,"--badge-dot-color":i===`dot`?c(n,e):void 0}}}),_t=h(e=>{let t=f(`Badge`,null,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,radius:c,color:u,gradient:d,leftSection:p,rightSection:m,children:h,variant:g,fullWidth:_,autoContrast:v,circle:y,mod:b,attributes:x,...S}=t,C=l({name:`Badge`,props:t,classes:ht,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:x,vars:s,varsResolver:gt});return(0,q.jsxs)(P,{variant:g,mod:[{block:_,circle:y,"with-right-section":!!m,"with-left-section":!!p},b],...C(`root`,{variant:g}),...S,children:[p&&(0,q.jsx)(`span`,{...C(`section`),"data-position":`left`,children:p}),(0,q.jsx)(`span`,{...C(`label`),children:h}),m&&(0,q.jsx)(`span`,{...C(`section`),"data-position":`right`,children:m})]})});_t.classes=ht,_t.varsResolver=gt,_t.displayName=`@mantine/core/Badge`;function vt(e=`top-end`,t=0){let n={"--indicator-top":void 0,"--indicator-bottom":void 0,"--indicator-left":void 0,"--indicator-right":void 0,"--indicator-translate-x":void 0,"--indicator-translate-y":void 0},r=typeof t==`number`?t:t.x,i=typeof t==`number`?t:t.y,a=C(r),o=C(i),[s,c]=e.split(`-`);return s===`top`&&(n[`--indicator-top`]=o,n[`--indicator-translate-y`]=`-50%`),s===`middle`&&(n[`--indicator-top`]=`50%`,n[`--indicator-translate-y`]=`-50%`),s===`bottom`&&(n[`--indicator-bottom`]=o,n[`--indicator-translate-y`]=`50%`),c===`start`&&(n[`--indicator-left`]=a,n[`--indicator-translate-x`]=`-50%`),c===`center`&&(n[`--indicator-left`]=`50%`,n[`--indicator-translate-x`]=`-50%`),c===`end`&&(n[`--indicator-right`]=a,n[`--indicator-translate-x`]=`50%`),n}var yt={root:`m_e5262200`,indicator:`m_760d1fb1`,processing:`m_885901b1`},bt={position:`top-end`,offset:0,showZero:!0},xt=p((e,{color:t,position:n,offset:r,size:i,radius:a,zIndex:o,autoContrast:s})=>({root:{"--indicator-color":t?c(t,e):void 0,"--indicator-text-color":De(s,e)?I({color:t,theme:e,autoContrast:s}):void 0,"--indicator-size":C(i),"--indicator-radius":a===void 0?void 0:y(a),"--indicator-z-index":o?.toString(),...vt(n,r)}})),St=o(e=>{let t=f(`Indicator`,bt,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,children:c,position:u,offset:d,inline:p,label:m,radius:h,color:g,withBorder:_,disabled:v,processing:y,zIndex:b,autoContrast:x,maxValue:S,showZero:C,mod:w,attributes:T,...E}=t,ee=l({name:`Indicator`,classes:yt,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:T,vars:s,varsResolver:xt}),D=!C&&(m===0||m===`0`),te=S!==void 0&&typeof m==`number`&&m>S?`${S}+`:m;return(0,q.jsxs)(P,{...ee(`root`),mod:[{inline:p},w],...E,children:[!v&&!D&&(0,q.jsx)(P,{mod:{"with-label":!!m,"with-border":_,processing:y},...ee(`indicator`),children:te}),c]})});St.classes=yt,St.varsResolver=xt,St.displayName=`@mantine/core/Indicator`;var Ct={size:`sm`,withCheckIcon:!0,allowDeselect:!0,checkIconPosition:`left`,openOnFocus:!0},wt=a(e=>{let t=f([`Input`,`InputWrapper`,`Select`],Ct,e),{classNames:n,styles:r,unstyled:i,vars:a,dropdownOpened:o,defaultDropdownOpened:s,onDropdownClose:c,onDropdownOpen:l,onFocus:d,onBlur:p,onClick:m,onChange:h,data:g,value:_,defaultValue:v,selectFirstOptionOnChange:y,selectFirstOptionOnDropdownOpen:b,onOptionSubmit:x,comboboxProps:S,readOnly:C,disabled:T,filter:ee,limit:D,withScrollArea:te,maxDropdownHeight:O,floatingHeight:k,size:A,searchable:j,rightSection:M,checkIconPosition:ne,withCheckIcon:re,withAlignedLabels:N,nothingFoundMessage:ie,name:ae,form:oe,searchValue:se,defaultSearchValue:P,onSearchChange:F,allowDeselect:ce,error:le,rightSectionPointerEvents:I,id:ue,clearable:L,clearSectionMode:de,clearButtonProps:fe,hiddenInputProps:pe,renderOption:me,onClear:he,autoComplete:ge,scrollAreaProps:_e,__defaultRightSection:R,__clearSection:z,__clearable:ve,chevronColor:B,autoSelectOnBlur:ye,openOnFocus:H,attributes:U,...be}=t,W=(0,K.useMemo)(()=>je(g),[g]),xe=(0,K.useRef)({}),Se=(0,K.useMemo)(()=>Me(W),[W]),Ce=w(ue),[G,we,Ee]=V({value:_,defaultValue:v,finalValue:null,onChange:h}),J=G==null?void 0:`${G}`in Se?Se[`${G}`]:xe.current[`${G}`],Y=Te(J),[De,Oe,ke]=V({value:se,defaultValue:P,finalValue:J?J.label:``,onChange:F}),X=at({opened:o,defaultOpened:s,onDropdownOpen:()=>{l?.(),b?X.selectFirstOption():X.updateSelectedOptionIndex(`active`,{scrollIntoView:!0})},onDropdownClose:()=>{c?.(),setTimeout(X.resetSelectedOption,0)}}),Ae=e=>{Oe(e),X.resetSelectedOption()},{resolvedClassNames:Z,resolvedStyles:Ne}=u({props:t,styles:r,classNames:n});(0,K.useEffect)(()=>{y&&X.selectFirstOption()},[y,De]),(0,K.useEffect)(()=>{_===null&&Ae(``),_!=null&&J&&(Y?.value!==J.value||Y?.label!==J.label)&&Ae(J.label)},[_,J]),(0,K.useEffect)(()=>{!Ee&&!ke&&Ae(G==null?``:`${G}`in Se?Se[`${G}`]?.label:xe.current[`${G}`]?.label||``)},[Se,G]),(0,K.useEffect)(()=>{G&&`${G}`in Se&&(xe.current[`${G}`]=Se[`${G}`])},[Se,G]);let Pe=(0,q.jsx)(Q.ClearButton,{...fe,onClear:()=>{we(null,null),Ae(``),he?.()}}),Fe=L&&G!=null&&!T&&!C;return(0,q.jsxs)(q.Fragment,{children:[(0,q.jsxs)(Q,{store:X,__staticSelector:`Select`,classNames:Z,styles:Ne,unstyled:i,readOnly:C,size:A,attributes:U,floatingHeight:k,keepMounted:ye,onOptionSubmit:e=>{x?.(e);let t=ce&&`${Se[e].value}`==`${G}`?null:Se[e],n=t?t.value:null;n!==G&&we(n,t),!Ee&&Ae(n==null?``:t?.label||``),X.closeDropdown()},...S,children:[(0,q.jsx)(Q.Target,{targetType:j?`input`:`button`,autoComplete:ge,withExpandedAttribute:!0,children:(0,q.jsx)(E,{id:Ce,__defaultRightSection:(0,q.jsx)(Q.Chevron,{size:A,error:le,unstyled:i,color:B}),__clearSection:Pe,__clearable:Fe,__clearSectionMode:de,rightSection:M,rightSectionPointerEvents:I||`none`,...be,size:A,__staticSelector:`Select`,disabled:T,readOnly:C||!j,value:De,onChange:e=>{Ae(e.currentTarget.value),X.openDropdown(),y&&X.selectFirstOption()},onFocus:e=>{H&&j&&X.openDropdown(),d?.(e)},onBlur:e=>{ye&&X.clickSelectedOption(),j&&X.closeDropdown();let t=G!=null&&(`${G}`in Se?Se[`${G}`]:xe.current[`${G}`]);Ae(t&&t.label||``),p?.(e)},onClick:e=>{j?X.openDropdown():X.toggleDropdown(),m?.(e)},classNames:Z,styles:Ne,unstyled:i,pointer:!j,error:le,attributes:U})}),(0,q.jsx)(mt,{data:W,hidden:C||T,filter:ee,search:De,limit:D,hiddenWhenEmpty:!ie,withScrollArea:te,maxDropdownHeight:O,filterOptions:!!j&&J?.label!==De,value:G,checkIconPosition:ne,withCheckIcon:re,withAlignedLabels:N,nothingFoundMessage:ie,unstyled:i,labelId:be.label?`${Ce}-label`:void 0,"aria-label":be.label?void 0:be[`aria-label`],renderOption:me,scrollAreaProps:_e})]}),(0,q.jsx)(Q.HiddenInput,{value:G,name:ae,form:oe,disabled:T,...pe})]})});wt.classes={...E.classes,...Q.classes},wt.displayName=`@mantine/core/Select`;var[Tt,Et]=B(`Table component was not found in the tree`),Dt={table:`m_b23fa0ef`,th:`m_4e7aa4f3`,tr:`m_4e7aa4fd`,td:`m_4e7aa4ef`,tbody:`m_b2404537`,thead:`m_b242d975`,caption:`m_9e5a3ac7`,scrollContainer:`m_a100c15`,scrollContainerInner:`m_62259741`};function Ot(e,t){if(!t)return;let n={};return t.columnBorder&&e.withColumnBorders&&(n[`data-with-column-border`]=!0),t.rowBorder&&e.withRowBorders&&(n[`data-with-row-border`]=!0),t.striped&&e.striped&&(n[`data-striped`]=e.striped),t.highlightOnHover&&e.highlightOnHover&&(n[`data-hover`]=!0),t.captionSide&&e.captionSide&&(n[`data-side`]=e.captionSide),t.stickyHeader&&e.stickyHeader&&(n[`data-sticky`]=!0),n}function kt(e,t){let n=`Table${e.charAt(0).toUpperCase()}${e.slice(1)}`,r=o(r=>{let i=f(n,{},r),{classNames:a,className:o,style:s,styles:c,...l}=i,u=Et();return(0,q.jsx)(P,{component:e,...Ot(u,t),...u.getStyles(e,{className:o,classNames:a,style:s,styles:c,props:i}),...l})});return r.displayName=`@mantine/core/${n}`,r.classes=Dt,r}var At=kt(`th`,{columnBorder:!0}),jt=kt(`td`,{columnBorder:!0}),Mt=kt(`tr`,{rowBorder:!0,striped:!0,highlightOnHover:!0}),Nt=kt(`thead`,{stickyHeader:!0}),Pt=kt(`tbody`),Ft=kt(`tfoot`),It=kt(`caption`,{captionSide:!0}),Lt={type:`scrollarea`},Rt=p((e,{minWidth:t,maxHeight:n,type:r})=>({scrollContainer:{"--table-min-width":C(t),"--table-max-height":C(n),"--table-overflow":r===`native`?`auto`:void 0}})),zt=o(e=>{let t=f(`TableScrollContainer`,Lt,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,children:c,minWidth:u,maxHeight:d,type:p,scrollAreaProps:m,attributes:h,...g}=t,_=l({name:`TableScrollContainer`,classes:Dt,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:h,vars:s,varsResolver:Rt,rootSelector:`scrollContainer`});return(0,q.jsx)(P,{component:p===`scrollarea`?Ce:`div`,...p===`scrollarea`?d?{offsetScrollbars:`xy`,...m}:{offsetScrollbars:`x`,...m}:{},..._(`scrollContainer`),...g,children:(0,q.jsx)(`div`,{..._(`scrollContainerInner`),children:c})})});zt.classes=Dt,zt.varsResolver=Rt,zt.displayName=`@mantine/core/TableScrollContainer`;function Bt({data:e}){return(0,q.jsxs)(q.Fragment,{children:[e.caption&&(0,q.jsx)(It,{children:e.caption}),e.head&&(0,q.jsx)(Nt,{children:(0,q.jsx)(Mt,{children:e.head.map((e,t)=>(0,q.jsx)(At,{children:e},t))})}),e.body&&(0,q.jsx)(Pt,{children:e.body.map((e,t)=>(0,q.jsx)(Mt,{children:e.map((e,t)=>(0,q.jsx)(jt,{children:e},t))},t))}),e.foot&&(0,q.jsx)(Ft,{children:(0,q.jsx)(Mt,{children:e.foot.map((e,t)=>(0,q.jsx)(At,{children:e},t))})})]})}Bt.displayName=`@mantine/core/TableDataRenderer`;var Vt={withRowBorders:!0,verticalSpacing:7},Ht=p((e,{layout:t,captionSide:n,horizontalSpacing:r,verticalSpacing:i,borderColor:a,stripedColor:o,highlightOnHoverColor:s,striped:l,highlightOnHover:u,stickyHeaderOffset:d,stickyHeader:f})=>({table:{"--table-layout":t,"--table-caption-side":n,"--table-horizontal-spacing":S(r),"--table-vertical-spacing":S(i),"--table-border-color":a?c(a,e):void 0,"--table-striped-color":l&&o?c(o,e):void 0,"--table-highlight-on-hover-color":u&&s?c(s,e):void 0,"--table-sticky-header-offset":f?C(d):void 0}})),Ut=o(e=>{let t=f(`Table`,Vt,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,horizontalSpacing:c,verticalSpacing:u,captionSide:d,stripedColor:p,highlightOnHoverColor:m,striped:h,highlightOnHover:g,withColumnBorders:_,withRowBorders:v,withTableBorder:y,borderColor:b,layout:x,data:S,children:C,stickyHeader:w,stickyHeaderOffset:T,mod:E,tabularNums:ee,attributes:D,...te}=t,O=l({name:`Table`,props:t,className:r,style:i,classes:Dt,classNames:n,styles:a,unstyled:o,attributes:D,rootSelector:`table`,vars:s,varsResolver:Ht});return(0,q.jsx)(Tt,{value:{getStyles:O,stickyHeader:w,striped:h===!0?`odd`:h||void 0,highlightOnHover:g,withColumnBorders:_,withRowBorders:v,captionSide:d||`bottom`},children:(0,q.jsx)(P,{component:`table`,mod:[{"data-with-table-border":y,"data-tabular-nums":ee},E],...O(`table`),...te,children:C||!!S&&(0,q.jsx)(Bt,{data:S})})})});Ut.classes=Dt,Ut.varsResolver=Ht,Ut.displayName=`@mantine/core/Table`,Ut.Td=jt,Ut.Th=At,Ut.Tr=Mt,Ut.Thead=Nt,Ut.Tbody=Pt,Ut.Tfoot=Ft,Ut.Caption=It,Ut.ScrollContainer=zt,Ut.DataRenderer=Bt;var Wt=new Map([[`bold`,K.createElement(K.Fragment,null,K.createElement(`path`,{d:`M244,56v48a12,12,0,0,1-12,12H184a12,12,0,1,1,0-24H201.1l-19-17.38c-.13-.12-.26-.24-.38-.37A76,76,0,1,0,127,204h1a75.53,75.53,0,0,0,52.15-20.72,12,12,0,0,1,16.49,17.45A99.45,99.45,0,0,1,128,228h-1.37A100,100,0,1,1,198.51,57.06L220,76.72V56a12,12,0,0,1,24,0Z`}))],[`duotone`,K.createElement(K.Fragment,null,K.createElement(`path`,{d:`M216,128a88,88,0,1,1-88-88A88,88,0,0,1,216,128Z`,opacity:`0.2`}),K.createElement(`path`,{d:`M240,56v48a8,8,0,0,1-8,8H184a8,8,0,0,1,0-16H211.4L184.81,71.64l-.25-.24a80,80,0,1,0-1.67,114.78,8,8,0,0,1,11,11.63A95.44,95.44,0,0,1,128,224h-1.32A96,96,0,1,1,195.75,60L224,85.8V56a8,8,0,1,1,16,0Z`}))],[`fill`,K.createElement(K.Fragment,null,K.createElement(`path`,{d:`M240,56v48a8,8,0,0,1-8,8H184a8,8,0,0,1-5.66-13.66l17-17-10.55-9.65-.25-.24a80,80,0,1,0-1.67,114.78,8,8,0,1,1,11,11.63A95.44,95.44,0,0,1,128,224h-1.32A96,96,0,1,1,195.75,60l10.93,10L226.34,50.3A8,8,0,0,1,240,56Z`}))],[`light`,K.createElement(K.Fragment,null,K.createElement(`path`,{d:`M238,56v48a6,6,0,0,1-6,6H184a6,6,0,0,1,0-12h32.55l-30.38-27.8c-.06-.06-.12-.13-.19-.19a82,82,0,1,0-1.7,117.65,6,6,0,0,1,8.24,8.73A93.46,93.46,0,0,1,128,222h-1.28A94,94,0,1,1,194.37,61.4L226,90.35V56a6,6,0,1,1,12,0Z`}))],[`regular`,K.createElement(K.Fragment,null,K.createElement(`path`,{d:`M240,56v48a8,8,0,0,1-8,8H184a8,8,0,0,1,0-16H211.4L184.81,71.64l-.25-.24a80,80,0,1,0-1.67,114.78,8,8,0,0,1,11,11.63A95.44,95.44,0,0,1,128,224h-1.32A96,96,0,1,1,195.75,60L224,85.8V56a8,8,0,1,1,16,0Z`}))],[`thin`,K.createElement(K.Fragment,null,K.createElement(`path`,{d:`M236,56v48a4,4,0,0,1-4,4H184a4,4,0,0,1,0-8h37.7L187.53,68.69l-.13-.12a84,84,0,1,0-1.75,120.51,4,4,0,0,1,5.5,5.82A91.43,91.43,0,0,1,128,220h-1.26A92,92,0,1,1,193,62.84l35,32.05V56a4,4,0,1,1,8,0Z`}))]]),Gt=new Map([[`bold`,K.createElement(K.Fragment,null,K.createElement(`path`,{d:`M216.49,104.49l-80,80a12,12,0,0,1-17,0l-80-80a12,12,0,0,1,17-17L128,159l71.51-71.52a12,12,0,0,1,17,17Z`}))],[`duotone`,K.createElement(K.Fragment,null,K.createElement(`path`,{d:`M208,96l-80,80L48,96Z`,opacity:`0.2`}),K.createElement(`path`,{d:`M215.39,92.94A8,8,0,0,0,208,88H48a8,8,0,0,0-5.66,13.66l80,80a8,8,0,0,0,11.32,0l80-80A8,8,0,0,0,215.39,92.94ZM128,164.69,67.31,104H188.69Z`}))],[`fill`,K.createElement(K.Fragment,null,K.createElement(`path`,{d:`M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80A8,8,0,0,1,48,88H208a8,8,0,0,1,5.66,13.66Z`}))],[`light`,K.createElement(K.Fragment,null,K.createElement(`path`,{d:`M212.24,100.24l-80,80a6,6,0,0,1-8.48,0l-80-80a6,6,0,0,1,8.48-8.48L128,167.51l75.76-75.75a6,6,0,0,1,8.48,8.48Z`}))],[`regular`,K.createElement(K.Fragment,null,K.createElement(`path`,{d:`M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80A8,8,0,0,1,53.66,90.34L128,164.69l74.34-74.35a8,8,0,0,1,11.32,11.32Z`}))],[`thin`,K.createElement(K.Fragment,null,K.createElement(`path`,{d:`M210.83,98.83l-80,80a4,4,0,0,1-5.66,0l-80-80a4,4,0,0,1,5.66-5.66L128,170.34l77.17-77.17a4,4,0,1,1,5.66,5.66Z`}))]]),Kt=new Map([[`bold`,K.createElement(K.Fragment,null,K.createElement(`path`,{d:`M28,64A12,12,0,0,1,40,52H216a12,12,0,0,1,0,24H40A12,12,0,0,1,28,64Zm12,76h64a12,12,0,0,0,0-24H40a12,12,0,0,0,0,24Zm80,40H40a12,12,0,0,0,0,24h80a12,12,0,0,0,0-24Zm120.49,20.49a12,12,0,0,1-17,0l-18.08-18.08a44,44,0,1,1,17-17l18.08,18.07A12,12,0,0,1,240.49,200.49ZM184,164a20,20,0,1,0-20-20A20,20,0,0,0,184,164Z`}))],[`duotone`,K.createElement(K.Fragment,null,K.createElement(`path`,{d:`M216,144a32,32,0,1,1-32-32A32,32,0,0,1,216,144Z`,opacity:`0.2`}),K.createElement(`path`,{d:`M32,64a8,8,0,0,1,8-8H216a8,8,0,0,1,0,16H40A8,8,0,0,1,32,64Zm8,72h72a8,8,0,0,0,0-16H40a8,8,0,0,0,0,16Zm88,48H40a8,8,0,0,0,0,16h88a8,8,0,0,0,0-16Zm109.66,13.66a8,8,0,0,1-11.32,0L206,177.36A40,40,0,1,1,217.36,166l20.3,20.3A8,8,0,0,1,237.66,197.66ZM184,168a24,24,0,1,0-24-24A24,24,0,0,0,184,168Z`}))],[`fill`,K.createElement(K.Fragment,null,K.createElement(`path`,{d:`M32,64a8,8,0,0,1,8-8H216a8,8,0,0,1,0,16H40A8,8,0,0,1,32,64Zm8,72h72a8,8,0,0,0,0-16H40a8,8,0,0,0,0,16Zm88,48H40a8,8,0,0,0,0,16h88a8,8,0,0,0,0-16Zm109.66,2.34L217.36,166A40,40,0,1,0,206,177.36l20.3,20.3a8,8,0,0,0,11.32-11.32Z`}))],[`light`,K.createElement(K.Fragment,null,K.createElement(`path`,{d:`M34,64a6,6,0,0,1,6-6H216a6,6,0,0,1,0,12H40A6,6,0,0,1,34,64Zm6,70h72a6,6,0,0,0,0-12H40a6,6,0,0,0,0,12Zm88,52H40a6,6,0,0,0,0,12h88a6,6,0,0,0,0-12Zm108.24,10.24a6,6,0,0,1-8.48,0l-21.49-21.48a38.06,38.06,0,1,1,8.49-8.49l21.48,21.49A6,6,0,0,1,236.24,196.24ZM184,170a26,26,0,1,0-26-26A26,26,0,0,0,184,170Z`}))],[`regular`,K.createElement(K.Fragment,null,K.createElement(`path`,{d:`M32,64a8,8,0,0,1,8-8H216a8,8,0,0,1,0,16H40A8,8,0,0,1,32,64Zm8,72h72a8,8,0,0,0,0-16H40a8,8,0,0,0,0,16Zm88,48H40a8,8,0,0,0,0,16h88a8,8,0,0,0,0-16Zm109.66,13.66a8,8,0,0,1-11.32,0L206,177.36A40,40,0,1,1,217.36,166l20.3,20.3A8,8,0,0,1,237.66,197.66ZM184,168a24,24,0,1,0-24-24A24,24,0,0,0,184,168Z`}))],[`thin`,K.createElement(K.Fragment,null,K.createElement(`path`,{d:`M36,64a4,4,0,0,1,4-4H216a4,4,0,0,1,0,8H40A4,4,0,0,1,36,64Zm4,68h72a4,4,0,0,0,0-8H40a4,4,0,0,0,0,8Zm88,56H40a4,4,0,0,0,0,8h88a4,4,0,0,0,0-8Zm106.83,6.83a4,4,0,0,1-5.66,0l-22.72-22.72a36.06,36.06,0,1,1,5.66-5.66l22.72,22.72A4,4,0,0,1,234.83,194.83ZM184,172a28,28,0,1,0-28-28A28,28,0,0,0,184,172Z`}))]]),qt=new Map([[`bold`,K.createElement(K.Fragment,null,K.createElement(`path`,{d:`M199,125.31l-49.88-18.39L130.69,57a19.92,19.92,0,0,0-37.38,0L74.92,106.92,25,125.31a19.92,19.92,0,0,0,0,37.38l49.88,18.39L93.31,231a19.92,19.92,0,0,0,37.38,0l18.39-49.88L199,162.69a19.92,19.92,0,0,0,0-37.38Zm-63.38,35.16a12,12,0,0,0-7.11,7.11L112,212.28l-16.47-44.7a12,12,0,0,0-7.11-7.11L43.72,144l44.7-16.47a12,12,0,0,0,7.11-7.11L112,75.72l16.47,44.7a12,12,0,0,0,7.11,7.11L180.28,144ZM140,40a12,12,0,0,1,12-12h12V16a12,12,0,0,1,24,0V28h12a12,12,0,0,1,0,24H188V64a12,12,0,0,1-24,0V52H152A12,12,0,0,1,140,40ZM252,88a12,12,0,0,1-12,12h-4v4a12,12,0,0,1-24,0v-4h-4a12,12,0,0,1,0-24h4V72a12,12,0,0,1,24,0v4h4A12,12,0,0,1,252,88Z`}))],[`duotone`,K.createElement(K.Fragment,null,K.createElement(`path`,{d:`M194.82,151.43l-55.09,20.3-20.3,55.09a7.92,7.92,0,0,1-14.86,0l-20.3-55.09-55.09-20.3a7.92,7.92,0,0,1,0-14.86l55.09-20.3,20.3-55.09a7.92,7.92,0,0,1,14.86,0l20.3,55.09,55.09,20.3A7.92,7.92,0,0,1,194.82,151.43Z`,opacity:`0.2`}),K.createElement(`path`,{d:`M197.58,129.06,146,110l-19-51.62a15.92,15.92,0,0,0-29.88,0L78,110l-51.62,19a15.92,15.92,0,0,0,0,29.88L78,178l19,51.62a15.92,15.92,0,0,0,29.88,0L146,178l51.62-19a15.92,15.92,0,0,0,0-29.88ZM137,164.22a8,8,0,0,0-4.74,4.74L112,223.85,91.78,169A8,8,0,0,0,87,164.22L32.15,144,87,123.78A8,8,0,0,0,91.78,119L112,64.15,132.22,119a8,8,0,0,0,4.74,4.74L191.85,144ZM144,40a8,8,0,0,1,8-8h16V16a8,8,0,0,1,16,0V32h16a8,8,0,0,1,0,16H184V64a8,8,0,0,1-16,0V48H152A8,8,0,0,1,144,40ZM248,88a8,8,0,0,1-8,8h-8v8a8,8,0,0,1-16,0V96h-8a8,8,0,0,1,0-16h8V72a8,8,0,0,1,16,0v8h8A8,8,0,0,1,248,88Z`}))],[`fill`,K.createElement(K.Fragment,null,K.createElement(`path`,{d:`M208,144a15.78,15.78,0,0,1-10.42,14.94L146,178l-19,51.62a15.92,15.92,0,0,1-29.88,0L78,178l-51.62-19a15.92,15.92,0,0,1,0-29.88L78,110l19-51.62a15.92,15.92,0,0,1,29.88,0L146,110l51.62,19A15.78,15.78,0,0,1,208,144ZM152,48h16V64a8,8,0,0,0,16,0V48h16a8,8,0,0,0,0-16H184V16a8,8,0,0,0-16,0V32H152a8,8,0,0,0,0,16Zm88,32h-8V72a8,8,0,0,0-16,0v8h-8a8,8,0,0,0,0,16h8v8a8,8,0,0,0,16,0V96h8a8,8,0,0,0,0-16Z`}))],[`light`,K.createElement(K.Fragment,null,K.createElement(`path`,{d:`M196.89,130.94,144.4,111.6,125.06,59.11a13.92,13.92,0,0,0-26.12,0L79.6,111.6,27.11,130.94a13.92,13.92,0,0,0,0,26.12L79.6,176.4l19.34,52.49a13.92,13.92,0,0,0,26.12,0L144.4,176.4l52.49-19.34a13.92,13.92,0,0,0,0-26.12Zm-4.15,14.86-55.08,20.3a6,6,0,0,0-3.56,3.56l-20.3,55.08a1.92,1.92,0,0,1-3.6,0L89.9,169.66a6,6,0,0,0-3.56-3.56L31.26,145.8a1.92,1.92,0,0,1,0-3.6l55.08-20.3a6,6,0,0,0,3.56-3.56l20.3-55.08a1.92,1.92,0,0,1,3.6,0l20.3,55.08a6,6,0,0,0,3.56,3.56l55.08,20.3a1.92,1.92,0,0,1,0,3.6ZM146,40a6,6,0,0,1,6-6h18V16a6,6,0,0,1,12,0V34h18a6,6,0,0,1,0,12H182V64a6,6,0,0,1-12,0V46H152A6,6,0,0,1,146,40ZM246,88a6,6,0,0,1-6,6H230v10a6,6,0,0,1-12,0V94H208a6,6,0,0,1,0-12h10V72a6,6,0,0,1,12,0V82h10A6,6,0,0,1,246,88Z`}))],[`regular`,K.createElement(K.Fragment,null,K.createElement(`path`,{d:`M197.58,129.06,146,110l-19-51.62a15.92,15.92,0,0,0-29.88,0L78,110l-51.62,19a15.92,15.92,0,0,0,0,29.88L78,178l19,51.62a15.92,15.92,0,0,0,29.88,0L146,178l51.62-19a15.92,15.92,0,0,0,0-29.88ZM137,164.22a8,8,0,0,0-4.74,4.74L112,223.85,91.78,169A8,8,0,0,0,87,164.22L32.15,144,87,123.78A8,8,0,0,0,91.78,119L112,64.15,132.22,119a8,8,0,0,0,4.74,4.74L191.85,144ZM144,40a8,8,0,0,1,8-8h16V16a8,8,0,0,1,16,0V32h16a8,8,0,0,1,0,16H184V64a8,8,0,0,1-16,0V48H152A8,8,0,0,1,144,40ZM248,88a8,8,0,0,1-8,8h-8v8a8,8,0,0,1-16,0V96h-8a8,8,0,0,1,0-16h8V72a8,8,0,0,1,16,0v8h8A8,8,0,0,1,248,88Z`}))],[`thin`,K.createElement(K.Fragment,null,K.createElement(`path`,{d:`M196.2,132.81l-53.36-19.65L123.19,59.8a11.93,11.93,0,0,0-22.38,0L81.16,113.16,27.8,132.81a11.93,11.93,0,0,0,0,22.38l53.36,19.65,19.65,53.36a11.93,11.93,0,0,0,22.38,0l19.65-53.36,53.36-19.65a11.93,11.93,0,0,0,0-22.38Zm-2.77,14.87L138.35,168a4,4,0,0,0-2.37,2.37l-20.3,55.08a3.92,3.92,0,0,1-7.36,0L88,170.35A4,4,0,0,0,85.65,168l-55.08-20.3a3.92,3.92,0,0,1,0-7.36L85.65,120A4,4,0,0,0,88,117.65l20.3-55.08a3.92,3.92,0,0,1,7.36,0L136,117.65a4,4,0,0,0,2.37,2.37l55.08,20.3a3.92,3.92,0,0,1,0,7.36ZM148,40a4,4,0,0,1,4-4h20V16a4,4,0,0,1,8,0V36h20a4,4,0,0,1,0,8H180V64a4,4,0,0,1-8,0V44H152A4,4,0,0,1,148,40Zm96,48a4,4,0,0,1-4,4H228v12a4,4,0,0,1-8,0V92H208a4,4,0,0,1,0-8h12V72a4,4,0,0,1,8,0V84h12A4,4,0,0,1,244,88Z`}))]]),Jt=new Map([[`bold`,K.createElement(K.Fragment,null,K.createElement(`path`,{d:`M100,36H56A20,20,0,0,0,36,56v44a20,20,0,0,0,20,20h44a20,20,0,0,0,20-20V56A20,20,0,0,0,100,36ZM96,96H60V60H96ZM200,36H156a20,20,0,0,0-20,20v44a20,20,0,0,0,20,20h44a20,20,0,0,0,20-20V56A20,20,0,0,0,200,36Zm-4,60H160V60h36Zm-96,40H56a20,20,0,0,0-20,20v44a20,20,0,0,0,20,20h44a20,20,0,0,0,20-20V156A20,20,0,0,0,100,136Zm-4,60H60V160H96Zm104-60H156a20,20,0,0,0-20,20v44a20,20,0,0,0,20,20h44a20,20,0,0,0,20-20V156A20,20,0,0,0,200,136Zm-4,60H160V160h36Z`}))],[`duotone`,K.createElement(K.Fragment,null,K.createElement(`path`,{d:`M112,56v48a8,8,0,0,1-8,8H56a8,8,0,0,1-8-8V56a8,8,0,0,1,8-8h48A8,8,0,0,1,112,56Zm88-8H152a8,8,0,0,0-8,8v48a8,8,0,0,0,8,8h48a8,8,0,0,0,8-8V56A8,8,0,0,0,200,48Zm-96,96H56a8,8,0,0,0-8,8v48a8,8,0,0,0,8,8h48a8,8,0,0,0,8-8V152A8,8,0,0,0,104,144Zm96,0H152a8,8,0,0,0-8,8v48a8,8,0,0,0,8,8h48a8,8,0,0,0,8-8V152A8,8,0,0,0,200,144Z`,opacity:`0.2`}),K.createElement(`path`,{d:`M200,136H152a16,16,0,0,0-16,16v48a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V152A16,16,0,0,0,200,136Zm0,64H152V152h48v48ZM104,40H56A16,16,0,0,0,40,56v48a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V56A16,16,0,0,0,104,40Zm0,64H56V56h48v48Zm96-64H152a16,16,0,0,0-16,16v48a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V56A16,16,0,0,0,200,40Zm0,64H152V56h48v48Zm-96,32H56a16,16,0,0,0-16,16v48a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V152A16,16,0,0,0,104,136Zm0,64H56V152h48v48Z`}))],[`fill`,K.createElement(K.Fragment,null,K.createElement(`path`,{d:`M120,56v48a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V56A16,16,0,0,1,56,40h48A16,16,0,0,1,120,56Zm80-16H152a16,16,0,0,0-16,16v48a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V56A16,16,0,0,0,200,40Zm-96,96H56a16,16,0,0,0-16,16v48a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V152A16,16,0,0,0,104,136Zm96,0H152a16,16,0,0,0-16,16v48a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V152A16,16,0,0,0,200,136Z`}))],[`light`,K.createElement(K.Fragment,null,K.createElement(`path`,{d:`M104,42H56A14,14,0,0,0,42,56v48a14,14,0,0,0,14,14h48a14,14,0,0,0,14-14V56A14,14,0,0,0,104,42Zm2,62a2,2,0,0,1-2,2H56a2,2,0,0,1-2-2V56a2,2,0,0,1,2-2h48a2,2,0,0,1,2,2Zm94-62H152a14,14,0,0,0-14,14v48a14,14,0,0,0,14,14h48a14,14,0,0,0,14-14V56A14,14,0,0,0,200,42Zm2,62a2,2,0,0,1-2,2H152a2,2,0,0,1-2-2V56a2,2,0,0,1,2-2h48a2,2,0,0,1,2,2Zm-98,34H56a14,14,0,0,0-14,14v48a14,14,0,0,0,14,14h48a14,14,0,0,0,14-14V152A14,14,0,0,0,104,138Zm2,62a2,2,0,0,1-2,2H56a2,2,0,0,1-2-2V152a2,2,0,0,1,2-2h48a2,2,0,0,1,2,2Zm94-62H152a14,14,0,0,0-14,14v48a14,14,0,0,0,14,14h48a14,14,0,0,0,14-14V152A14,14,0,0,0,200,138Zm2,62a2,2,0,0,1-2,2H152a2,2,0,0,1-2-2V152a2,2,0,0,1,2-2h48a2,2,0,0,1,2,2Z`}))],[`regular`,K.createElement(K.Fragment,null,K.createElement(`path`,{d:`M104,40H56A16,16,0,0,0,40,56v48a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V56A16,16,0,0,0,104,40Zm0,64H56V56h48v48Zm96-64H152a16,16,0,0,0-16,16v48a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V56A16,16,0,0,0,200,40Zm0,64H152V56h48v48Zm-96,32H56a16,16,0,0,0-16,16v48a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V152A16,16,0,0,0,104,136Zm0,64H56V152h48v48Zm96-64H152a16,16,0,0,0-16,16v48a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V152A16,16,0,0,0,200,136Zm0,64H152V152h48v48Z`}))],[`thin`,K.createElement(K.Fragment,null,K.createElement(`path`,{d:`M104,44H56A12,12,0,0,0,44,56v48a12,12,0,0,0,12,12h48a12,12,0,0,0,12-12V56A12,12,0,0,0,104,44Zm4,60a4,4,0,0,1-4,4H56a4,4,0,0,1-4-4V56a4,4,0,0,1,4-4h48a4,4,0,0,1,4,4Zm92-60H152a12,12,0,0,0-12,12v48a12,12,0,0,0,12,12h48a12,12,0,0,0,12-12V56A12,12,0,0,0,200,44Zm4,60a4,4,0,0,1-4,4H152a4,4,0,0,1-4-4V56a4,4,0,0,1,4-4h48a4,4,0,0,1,4,4ZM104,140H56a12,12,0,0,0-12,12v48a12,12,0,0,0,12,12h48a12,12,0,0,0,12-12V152A12,12,0,0,0,104,140Zm4,60a4,4,0,0,1-4,4H56a4,4,0,0,1-4-4V152a4,4,0,0,1,4-4h48a4,4,0,0,1,4,4Zm92-60H152a12,12,0,0,0-12,12v48a12,12,0,0,0,12,12h48a12,12,0,0,0,12-12V152A12,12,0,0,0,200,140Zm4,60a4,4,0,0,1-4,4H152a4,4,0,0,1-4-4V152a4,4,0,0,1,4-4h48a4,4,0,0,1,4,4Z`}))]]),Yt=new Map([[`bold`,K.createElement(K.Fragment,null,K.createElement(`path`,{d:`M128,20A108,108,0,1,0,236,128,108.12,108.12,0,0,0,128,20Zm0,192a84,84,0,1,1,84-84A84.09,84.09,0,0,1,128,212Zm-12-80V80a12,12,0,0,1,24,0v52a12,12,0,0,1-24,0Zm28,40a16,16,0,1,1-16-16A16,16,0,0,1,144,172Z`}))],[`duotone`,K.createElement(K.Fragment,null,K.createElement(`path`,{d:`M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z`,opacity:`0.2`}),K.createElement(`path`,{d:`M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm-8-80V80a8,8,0,0,1,16,0v56a8,8,0,0,1-16,0Zm20,36a12,12,0,1,1-12-12A12,12,0,0,1,140,172Z`}))],[`fill`,K.createElement(K.Fragment,null,K.createElement(`path`,{d:`M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm-8,56a8,8,0,0,1,16,0v56a8,8,0,0,1-16,0Zm8,104a12,12,0,1,1,12-12A12,12,0,0,1,128,184Z`}))],[`light`,K.createElement(K.Fragment,null,K.createElement(`path`,{d:`M128,26A102,102,0,1,0,230,128,102.12,102.12,0,0,0,128,26Zm0,192a90,90,0,1,1,90-90A90.1,90.1,0,0,1,128,218Zm-6-82V80a6,6,0,0,1,12,0v56a6,6,0,0,1-12,0Zm16,36a10,10,0,1,1-10-10A10,10,0,0,1,138,172Z`}))],[`regular`,K.createElement(K.Fragment,null,K.createElement(`path`,{d:`M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm-8-80V80a8,8,0,0,1,16,0v56a8,8,0,0,1-16,0Zm20,36a12,12,0,1,1-12-12A12,12,0,0,1,140,172Z`}))],[`thin`,K.createElement(K.Fragment,null,K.createElement(`path`,{d:`M128,28A100,100,0,1,0,228,128,100.11,100.11,0,0,0,128,28Zm0,192a92,92,0,1,1,92-92A92.1,92.1,0,0,1,128,220Zm-4-84V80a4,4,0,0,1,8,0v56a4,4,0,0,1-8,0Zm12,36a8,8,0,1,1-8-8A8,8,0,0,1,136,172Z`}))]]),Xt=new Map([[`bold`,K.createElement(K.Fragment,null,K.createElement(`path`,{d:`M208.49,191.51a12,12,0,0,1-17,17L128,145,64.49,208.49a12,12,0,0,1-17-17L111,128,47.51,64.49a12,12,0,0,1,17-17L128,111l63.51-63.52a12,12,0,0,1,17,17L145,128Z`}))],[`duotone`,K.createElement(K.Fragment,null,K.createElement(`path`,{d:`M216,56V200a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V56A16,16,0,0,1,56,40H200A16,16,0,0,1,216,56Z`,opacity:`0.2`}),K.createElement(`path`,{d:`M205.66,194.34a8,8,0,0,1-11.32,11.32L128,139.31,61.66,205.66a8,8,0,0,1-11.32-11.32L116.69,128,50.34,61.66A8,8,0,0,1,61.66,50.34L128,116.69l66.34-66.35a8,8,0,0,1,11.32,11.32L139.31,128Z`}))],[`fill`,K.createElement(K.Fragment,null,K.createElement(`path`,{d:`M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM181.66,170.34a8,8,0,0,1-11.32,11.32L128,139.31,85.66,181.66a8,8,0,0,1-11.32-11.32L116.69,128,74.34,85.66A8,8,0,0,1,85.66,74.34L128,116.69l42.34-42.35a8,8,0,0,1,11.32,11.32L139.31,128Z`}))],[`light`,K.createElement(K.Fragment,null,K.createElement(`path`,{d:`M204.24,195.76a6,6,0,1,1-8.48,8.48L128,136.49,60.24,204.24a6,6,0,0,1-8.48-8.48L119.51,128,51.76,60.24a6,6,0,0,1,8.48-8.48L128,119.51l67.76-67.75a6,6,0,0,1,8.48,8.48L136.49,128Z`}))],[`regular`,K.createElement(K.Fragment,null,K.createElement(`path`,{d:`M205.66,194.34a8,8,0,0,1-11.32,11.32L128,139.31,61.66,205.66a8,8,0,0,1-11.32-11.32L116.69,128,50.34,61.66A8,8,0,0,1,61.66,50.34L128,116.69l66.34-66.35a8,8,0,0,1,11.32,11.32L139.31,128Z`}))],[`thin`,K.createElement(K.Fragment,null,K.createElement(`path`,{d:`M202.83,197.17a4,4,0,0,1-5.66,5.66L128,133.66,58.83,202.83a4,4,0,0,1-5.66-5.66L122.34,128,53.17,58.83a4,4,0,0,1,5.66-5.66L128,122.34l69.17-69.17a4,4,0,1,1,5.66,5.66L133.66,128Z`}))]]),Zt=K.forwardRef((e,t)=>K.createElement(ie,{ref:t,...e,weights:Wt}));Zt.displayName=`ArrowClockwiseIcon`;var Qt=Zt,$t=K.forwardRef((e,t)=>K.createElement(ie,{ref:t,...e,weights:Gt}));$t.displayName=`CaretDownIcon`;var en=$t,tn=K.forwardRef((e,t)=>K.createElement(ie,{ref:t,...e,weights:Kt}));tn.displayName=`ListMagnifyingGlassIcon`;var nn=tn,rn=K.forwardRef((e,t)=>K.createElement(ie,{ref:t,...e,weights:qt}));rn.displayName=`SparkleIcon`;var an=rn,on=K.forwardRef((e,t)=>K.createElement(ie,{ref:t,...e,weights:Jt}));on.displayName=`SquaresFourIcon`;var sn=on,cn=K.forwardRef((e,t)=>K.createElement(ie,{ref:t,...e,weights:Yt}));cn.displayName=`WarningCircleIcon`;var ln=cn,un=K.forwardRef((e,t)=>K.createElement(ie,{ref:t,...e,weights:Xt}));un.displayName=`XIcon`;var dn=un,fn=class extends H{#e;#t=void 0;#n;#r;constructor(e,t){super(),this.#e=e,this.setOptions(t),this.bindMethods(),this.#i()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){let t=this.options;this.options=this.#e.defaultMutationOptions(e),_e(this.options,t)||this.#e.getMutationCache().notify({type:`observerOptionsUpdated`,mutation:this.#n,observer:this}),t?.mutationKey&&this.options.mutationKey&&xe(t.mutationKey)!==xe(this.options.mutationKey)?this.reset():this.#n?.state.status===`pending`&&this.#n.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#n?.removeObserver(this)}onMutationUpdate(e){this.#i(),this.#a(e)}getCurrentResult(){return this.#t}reset(){this.#n?.removeObserver(this),this.#n=void 0,this.#i(),this.#a()}mutate(e,t){return this.#r=t,this.#n?.removeObserver(this),this.#n=this.#e.getMutationCache().build(this.#e,this.options),this.#n.addObserver(this),this.#n.execute(e)}#i(){let e=this.#n?.state??W();this.#t={...e,isPending:e.status===`pending`,isSuccess:e.status===`success`,isError:e.status===`error`,isIdle:e.status===`idle`,mutate:this.mutate,reset:this.reset}}#a(e){ye.batch(()=>{if(this.#r&&this.hasListeners()){let t=this.#t.variables,n=this.#t.context,r={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};if(e?.type===`success`){try{this.#r.onSuccess?.(e.data,t,n,r)}catch(e){Promise.reject(e)}try{this.#r.onSettled?.(e.data,null,t,n,r)}catch(e){Promise.reject(e)}}else if(e?.type===`error`){try{this.#r.onError?.(e.error,t,n,r)}catch(e){Promise.reject(e)}try{this.#r.onSettled?.(void 0,e.error,t,n,r)}catch(e){Promise.reject(e)}}}this.listeners.forEach(e=>{e(this.#t)})})}};function pn(e,t){return pe(e,he,t)}function mn(e,t){let n=U(t),[r]=K.useState(()=>new fn(n,e));K.useEffect(()=>{r.setOptions(e)},[r,e]);let i=K.useSyncExternalStore(K.useCallback(e=>r.subscribe(ye.batchCalls(e)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),a=K.useCallback((e,t)=>{r.mutate(e,t).catch(ge)},[r]);if(i.error&&be(r.options.throwOnError,[i.error]))throw i.error;return{...i,mutate:a,mutateAsync:i.mutate}}function hn(e){let{margin:t,containerPadding:n,containerWidth:r,cols:i}=e;return(r-t[0]*(i-1)-n[0]*2)/i}function gn(e,t,n){return Number.isFinite(e)?Math.round(t*e+Math.max(0,e-1)*n):e}function _n(e,t,n,r,i,a,o){let{margin:s,containerPadding:c,rowHeight:l}=e,u=hn(e),d,f,p,m;if(o?(d=Math.round(o.width),f=Math.round(o.height)):(d=gn(r,u,s[0]),f=gn(i,l,s[1])),a?(p=Math.round(a.top),m=Math.round(a.left)):o?(p=Math.round(o.top),m=Math.round(o.left)):(p=Math.round((l+s[1])*n+c[1]),m=Math.round((u+s[0])*t+c[0])),!a&&!o){if(Number.isFinite(r)){let e=Math.round((u+s[0])*(t+r)+c[0])-m-d;e!==s[0]&&(d+=e-s[0])}if(Number.isFinite(i)){let e=Math.round((l+s[1])*(n+i)+c[1])-p-f;e!==s[1]&&(f+=e-s[1])}}return{top:p,left:m,width:d,height:f}}function vn(e,t,n,r,i){let{margin:a,containerPadding:o,cols:s,rowHeight:c,maxRows:l}=e,u=hn(e),d=Math.round((n-o[0])/(u+a[0])),f=Math.round((t-o[1])/(c+a[1]));return d=xn(d,0,s-r),f=xn(f,0,l-i),{x:d,y:f}}function yn(e,t,n){let{margin:r,containerPadding:i,rowHeight:a}=e,o=hn(e);return{x:Math.round((n-i[0])/(o+r[0])),y:Math.round((t-i[1])/(a+r[1]))}}function bn(e,t,n){let{margin:r,rowHeight:i}=e,a=hn(e);return{w:Math.max(1,Math.round((t+r[0])/(a+r[0]))),h:Math.max(1,Math.round((n+r[1])/(i+r[1])))}}function xn(e,t,n){return Math.max(Math.min(e,n),t)}function Sn(e,t){return!(e.i===t.i||e.x+e.w<=t.x||e.x>=t.x+t.w||e.y+e.h<=t.y||e.y>=t.y+t.h)}function Cn(e,t){for(let n=0;nSn(e,t))}function Tn(e,t){return t===`horizontal`?Dn(e):t===`vertical`||t===`wrap`?En(e):[...e]}function En(e){return[...e].sort((e,t)=>e.y===t.y?e.x-t.x:e.y-t.y)}function Dn(e){return[...e].sort((e,t)=>e.x===t.x?e.y-t.y:e.x-t.x)}function On(e){let t=0;for(let n=0;nt&&(t=e)}}return t}function kn(e,t){for(let n=0;ne.static===!0)}function jn(e){return{i:e.i,x:e.x,y:e.y,w:e.w,h:e.h,minW:e.minW,maxW:e.maxW,minH:e.minH,maxH:e.maxH,moved:!!e.moved,static:!!e.static,isDraggable:e.isDraggable,isResizable:e.isResizable,resizeHandles:e.resizeHandles,constraints:e.constraints,isBounded:e.isBounded}}function Mn(e){let t=Array(e.length);for(let n=0;nt.cols&&(i.x=t.cols-i.w),i.x<0&&(i.x=0,i.w=t.cols),!i.static)n.push(i);else for(;Cn(n,i);)i.y++}return e}function In(e,t,n,r,i,a,o,s,c){if(t.static&&t.isDraggable!==!0||t.y===r&&t.x===n)return[...e];let l=t.x,u=t.y;typeof n==`number`&&(t.x=n),typeof r==`number`&&(t.y=r),t.moved=!0;let d=Tn(e,o);(o===`vertical`&&typeof r==`number`?u>=r:o===`horizontal`&&typeof n==`number`&&l>=n)&&(d=d.reverse());let f=wn(d,t),p=f.length>0;if(p&&c)return Mn(e);if(p&&a)return t.x=l,t.y=u,t.moved=!1,e;let m=[...e];for(let e=0;et.y,d=l!==void 0&&t.x+t.w>l.x;if(!l)return In(e,n,o?a.x:void 0,s?a.y:void 0,r,c,i);if(u&&s)return In(e,n,void 0,n.y+1,r,c,i);if(u&&i===null)return t.y=n.y,n.y+=n.h,[...e];if(d&&o)return In(e,t,n.x,void 0,r,c,i)}let l=o?n.x+1:void 0,u=s?n.y+1:void 0;return l===void 0&&u===void 0?[...e]:In(e,n,l,u,r,c,i)}function Rn(e,t,n){return Math.max(t,Math.min(n,e))}var zn=[{name:`gridBounds`,constrainPosition(e,t,n,{cols:r,maxRows:i}){return{x:Rn(t,0,Math.max(0,r-e.w)),y:Rn(n,0,Math.max(0,i-e.h))}},constrainSize(e,t,n,r,{cols:i,maxRows:a}){let o=r===`w`||r===`nw`||r===`sw`?e.x+e.w:i-e.x,s=r===`n`||r===`nw`||r===`ne`?e.y+e.h:a-e.y;return{w:Rn(t,1,Math.max(1,o)),h:Rn(n,1,Math.max(1,s))}}},{name:`minMaxSize`,constrainSize(e,t,n){return{w:Rn(t,e.minW??1,e.maxW??1/0),h:Rn(n,e.minH??1,e.maxH??1/0)}}}];function Bn(e,t,n,r,i){let a={x:n,y:r};for(let n of e)n.constrainPosition&&(a=n.constrainPosition(t,a.x,a.y,i));if(t.constraints)for(let e of t.constraints)e.constrainPosition&&(a=e.constrainPosition(t,a.x,a.y,i));return a}function Vn(e,t,n,r,i,a){let o={w:n,h:r};for(let n of e)n.constrainSize&&(o=n.constrainSize(t,o.w,o.h,i,a));if(t.constraints)for(let e of t.constraints)e.constrainSize&&(o=e.constrainSize(t,o.w,o.h,i,a));return o}function Hn({top:e,left:t,width:n,height:r}){let i=`translate(${t}px,${e}px)`;return{transform:i,WebkitTransform:i,MozTransform:i,msTransform:i,OTransform:i,width:`${n}px`,height:`${r}px`,position:`absolute`}}function Un({top:e,left:t,width:n,height:r}){return{top:`${e}px`,left:`${t}px`,width:`${n}px`,height:`${r}px`,position:`absolute`}}function Wn(e){return e*100+`%`}function Gn(e,t,n,r){return e+n>r?t:n}function Kn(e,t,n){return e<0?t:n}function qn(e){return Math.max(0,e)}function Jn(e){return Math.max(0,e)}var Yn=(e,t,n)=>{let{left:r,height:i,width:a}=t,o=e.top-(i-e.height);return{left:r,width:a,height:Kn(o,e.height,i),top:Jn(o)}},Xn=(e,t,n)=>{let{top:r,left:i,height:a,width:o}=t;return{top:r,height:a,width:Gn(e.left,e.width,o,n),left:qn(i)}},Zn=(e,t,n)=>{let{top:r,height:i,width:a}=t,o=e.left+e.width-a;return o<0?{height:i,width:e.left+e.width,top:Jn(r),left:0}:{height:i,width:a,top:Jn(r),left:o}},Qn=(e,t,n)=>{let{top:r,left:i,height:a,width:o}=t;return{width:o,left:i,height:Kn(r,e.height,a),top:Jn(r)}},$n={n:Yn,ne:(e,t,n)=>Yn(e,Xn(e,t,n)),e:Xn,se:(e,t,n)=>Qn(e,Xn(e,t,n)),s:Qn,sw:(e,t,n)=>Qn(e,Zn(e,t)),w:Zn,nw:(e,t,n)=>Yn(e,Zn(e,t))};function er(e,t,n,r){let i=$n[e];return i?i(t,{...t,...n},r):n}var tr={type:`transform`,scale:1,calcStyle(e){return Hn(e)}},nr={type:`absolute`,scale:1,calcStyle(e){return Un(e)}};function rr(e){return{type:`transform`,scale:e,calcStyle(e){return Hn(e)},calcDragPosition(t,n,r,i){return{left:(t-r)/e,top:(n-i)/e}}}}var ir=tr,ar={cols:12,rowHeight:150,margin:[10,10],containerPadding:null,maxRows:1/0},or={enabled:!0,bounded:!1,threshold:3},sr={enabled:!0,handles:[`se`]},cr={enabled:!1,defaultItem:{w:1,h:1}};function lr(e,t,n,r,i){let a=r===`x`?`w`:`h`;t[r]+=1;let o=e.findIndex(e=>e.i===t.i),s=i??An(e).length>0;for(let i=o+1;it.y+t.h)break;Sn(t,o)&&lr(e,o,n+t[a],r,s)}}t[r]=n}function ur(e,t,n,r){for(t.x=Math.max(t.x,0),t.y=Math.max(t.y,0),t.y=Math.min(r,t.y);t.y>0&&!Cn(e,t);)t.y--;let i;for(;(i=Cn(e,t))!==void 0;)lr(n,t,i.y+i.h,`y`);return t.y=Math.max(t.y,0),t}function dr(e,t,n,r){for(t.x=Math.max(t.x,0),t.y=Math.max(t.y,0);t.x>0&&!Cn(e,t);)t.x--;let i;for(;(i=Cn(e,t))!==void 0;)if(lr(r,t,i.x+i.w,`x`),t.x+t.w>n)for(t.x=n-t.w,t.y++;t.x>0&&!Cn(e,t);)t.x--;return t.x=Math.max(t.x,0),t}var fr={type:`vertical`,allowOverlap:!1,compact(e,t){let n=An(e),r=On(n),i=En(e),a=Array(e.length);for(let t=0;te[t]-e[n])}function br(e,t){let n=yr(e),r=n[0];if(r===void 0)throw Error(`No breakpoints defined`);for(let i=1;ie[a]&&(r=a)}return r}function xr(e,t){let n=t[e];if(n===void 0)throw Error(`ResponsiveReactGridLayout: \`cols\` entry for breakpoint ${String(e)} is missing!`);return n}function Sr(e,t,n,r,i,a){let o=e[n];if(o)return Mn(o);let s=e[r],c=yr(t),l=c.slice(c.indexOf(n));for(let t=0;t{t.exports=`SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED`})),Tr=r(((e,t)=>{var n=wr();function r(){}function i(){}i.resetWarningCache=r,t.exports=function(){function e(e,t,r,i,a,o){if(o!==n){var s=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name=`Invariant Violation`,s}}e.isRequired=e;function t(){return e}var a={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:r};return a.PropTypes=a,a}})),Er=r(((e,t)=>{t.exports=Tr()()})),$=e(Er(),1),Dr=e(ne(),1);function Or(e,t){for(let n=0,r=e.length;n`u`)return``;let t=window.document?.documentElement?.style;if(!t||e in t)return``;for(let n=0;nt===e.identifier)||e.changedTouches&&Or(e.changedTouches,e=>t===e.identifier)}function Qr(e){if(e.targetTouches&&e.targetTouches[0])return e.targetTouches[0].identifier;if(e.changedTouches&&e.changedTouches[0])return e.changedTouches[0].identifier}function $r(){return typeof __webpack_nonce__<`u`?__webpack_nonce__:void 0}function ei(e,t){if(!e)return;let n=e.getElementById(`react-draggable-style-el`);if(!n){n=e.createElement(`style`),n.type=`text/css`,n.id=`react-draggable-style-el`;let r=t??$r();r&&n.setAttribute(`nonce`,r),n.innerHTML=`.react-draggable-transparent-selection *::-moz-selection {all: inherit;} +`,n.innerHTML+=`.react-draggable-transparent-selection *::selection {all: inherit;} +`,e.getElementsByTagName(`head`)[0].appendChild(n)}e.body&&ri(e.body,`react-draggable-transparent-selection`)}function ti(e){window.requestAnimationFrame?window.requestAnimationFrame(()=>{ni(e)}):ni(e)}function ni(e){if(e)try{e.body&&ii(e.body,`react-draggable-transparent-selection`);let t=e.selection;if(t)t.empty();else{let t=(e.defaultView||window).getSelection();t&&t.type!==`Caret`&&t.removeAllRanges()}}catch{}}function ri(e,t){e.classList?e.classList.add(t):e.className.match(RegExp(`(?:^|\\s)${t}(?!\\S)`))||(e.className+=` ${t}`)}function ii(e,t){e.classList?e.classList.remove(t):e.className=e.className.replace(RegExp(`(?:^|\\s)${t}(?!\\S)`,`g`),``)}function ai(e,t,n){if(!e.props.bounds)return[t,n];let{bounds:r}=e.props;r=typeof r==`string`?r:fi(r);let i=pi(e);if(typeof r==`string`){let{ownerDocument:e}=i,t=e.defaultView;if(!t)throw Error(`Cannot resolve the owner window of the draggable node.`);let n;if(n=r===`parent`?i.parentNode:i.getRootNode().querySelector(r),!(n instanceof t.HTMLElement))throw Error(`Bounds selector "`+r+`" could not find an element.`);let a=n,o=t.getComputedStyle(i),s=t.getComputedStyle(a);r={left:-i.offsetLeft+jr(s.paddingLeft)+jr(o.marginLeft),top:-i.offsetTop+jr(s.paddingTop)+jr(o.marginTop),right:Kr(a)-Wr(i)-i.offsetLeft+jr(s.paddingRight)-jr(o.marginRight),bottom:Gr(a)-Ur(i)-i.offsetTop+jr(s.paddingBottom)-jr(o.marginBottom)}}return Ar(r.right)&&(t=Math.min(t,r.right)),Ar(r.bottom)&&(n=Math.min(n,r.bottom)),Ar(r.left)&&(t=Math.max(t,r.left)),Ar(r.top)&&(n=Math.max(n,r.top)),[t,n]}function oi(e,t,n){return[Math.round(t/e[0])*e[0],Math.round(n/e[1])*e[1]]}function si(e){return e.props.axis===`both`||e.props.axis===`x`}function ci(e){return e.props.axis===`both`||e.props.axis===`y`}function li(e,t,n){let r=typeof t==`number`?Zr(e,t):null;if(typeof t==`number`&&!r)return null;let i=pi(n),a=n.props.offsetParent||i.offsetParent||i.ownerDocument.body;return qr(r||e,a,n.props.scale)}function ui(e,t,n){let r=!Ar(e.lastX),i=pi(e);return r?{node:i,deltaX:0,deltaY:0,lastX:t,lastY:n,x:t,y:n}:{node:i,deltaX:t-e.lastX,deltaY:n-e.lastY,lastX:e.lastX,lastY:e.lastY,x:t,y:n}}function di(e,t){let n=e.props.scale;return{node:t.node,x:e.state.x+t.deltaX/n,y:e.state.y+t.deltaY/n,deltaX:t.deltaX/n,deltaY:t.deltaY/n,lastX:e.state.x,lastY:e.state.y}}function fi(e){return{left:e.left,top:e.top,right:e.right,bottom:e.bottom}}function pi(e){let t=e.findDOMNode();if(!t)throw Error(`: Unmounted during event!`);return t}function mi(...e){({}).DRAGGABLE_DEBUG&&console.log(...e)}var hi={touch:{start:`touchstart`,move:`touchmove`,stop:`touchend`},mouse:{start:`mousedown`,move:`mousemove`,stop:`mouseup`}},gi=hi.mouse,_i=class extends K.Component{constructor(){super(...arguments),this.dragging=!1,this.lastX=NaN,this.lastY=NaN,this.touchIdentifier=null,this.mounted=!1,this.handleDragStart=e=>{if(this.props.onMouseDown(e),!this.props.allowAnyClick&&(typeof e.button==`number`&&e.button!==0||e.ctrlKey))return!1;let t=this.findDOMNode();if(!t||!t.ownerDocument||!t.ownerDocument.body)throw Error(` not mounted on DragStart!`);let{ownerDocument:n}=t;if(this.props.disabled||!(e.target instanceof n.defaultView.Node)||this.props.handle&&!Br(e.target,this.props.handle,t)||this.props.cancel&&Br(e.target,this.props.cancel,t))return;e.type===`touchstart`&&!this.props.allowMobileScroll&&e.preventDefault();let r=Qr(e);this.touchIdentifier=r;let i=li(e,r,this);if(i==null)return;let{x:a,y:o}=i,s=ui(this,a,o);mi(`DraggableCore: handleDragStart: %j`,s),mi(`calling`,this.props.onStart),this.props.onStart(e,s)!==!1&&this.mounted!==!1&&(this.props.enableUserSelectHack&&ei(n,this.props.nonce),this.dragging=!0,this.lastX=a,this.lastY=o,Vr(n,gi.move,this.handleDrag),Vr(n,gi.stop,this.handleDragStop))},this.handleDrag=e=>{let t=li(e,this.touchIdentifier,this);if(t==null)return;let{x:n,y:r}=t;if(Array.isArray(this.props.grid)){let e=n-this.lastX,t=r-this.lastY;if([e,t]=oi(this.props.grid,e,t),!e&&!t)return;n=this.lastX+e,r=this.lastY+t}let i=ui(this,n,r);if(mi(`DraggableCore: handleDrag: %j`,i),this.props.onDrag(e,i)===!1||this.mounted===!1){try{this.handleDragStop(new MouseEvent(`mouseup`))}catch{let e=document.createEvent(`MouseEvents`);e.initMouseEvent(`mouseup`,!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),this.handleDragStop(e)}return}this.lastX=n,this.lastY=r},this.handleDragStop=e=>{if(!this.dragging)return;let t=li(e,this.touchIdentifier,this);if(t==null)return;let{x:n,y:r}=t;if(Array.isArray(this.props.grid)){let e=n-this.lastX||0,t=r-this.lastY||0;[e,t]=oi(this.props.grid,e,t),n=this.lastX+e,r=this.lastY+t}let i=ui(this,n,r);if(this.props.onStop(e,i)===!1||this.mounted===!1)return!1;let a=this.findDOMNode();a&&this.props.enableUserSelectHack&&ti(a.ownerDocument),mi(`DraggableCore: handleDragStop: %j`,i),this.dragging=!1,this.lastX=NaN,this.lastY=NaN,a&&(mi(`DraggableCore: Removing handlers`),Hr(a.ownerDocument,gi.move,this.handleDrag),Hr(a.ownerDocument,gi.stop,this.handleDragStop))},this.onMouseDown=e=>(gi=hi.mouse,this.handleDragStart(e)),this.onMouseUp=e=>(gi=hi.mouse,this.handleDragStop(e)),this.onTouchStart=e=>(gi=hi.touch,this.handleDragStart(e)),this.onTouchEnd=e=>(gi=hi.touch,this.handleDragStop(e))}componentDidMount(){this.mounted=!0;let e=this.findDOMNode();e&&Vr(e,hi.touch.start,this.onTouchStart,{passive:!1})}componentWillUnmount(){this.mounted=!1;let e=this.findDOMNode();if(e){let{ownerDocument:t}=e;Hr(t,hi.mouse.move,this.handleDrag),Hr(t,hi.touch.move,this.handleDrag),Hr(t,hi.mouse.stop,this.handleDragStop),Hr(t,hi.touch.stop,this.handleDragStop),Hr(e,hi.touch.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&ti(t)}}findDOMNode(){if(this.props?.nodeRef)return this.props.nodeRef.current;let e=Dr.default;return typeof e.findDOMNode==`function`?e.findDOMNode(this):(mi(`react-draggable: ReactDOM.findDOMNode is not available in React 19+. You must provide a nodeRef prop. See: https://github.com/react-grid-layout/react-draggable#noderef`),null)}render(){return K.cloneElement(K.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}};_i.displayName=`DraggableCore`,_i.propTypes={allowAnyClick:$.default.bool,allowMobileScroll:$.default.bool,children:$.default.node.isRequired,disabled:$.default.bool,enableUserSelectHack:$.default.bool,offsetParent:function(e,t){if(e[t]&&e[t].nodeType!==1)throw Error(`Draggable's offsetParent must be a DOM Node.`)},grid:$.default.arrayOf($.default.number),handle:$.default.string,cancel:$.default.string,nodeRef:$.default.object,nonce:$.default.string,onStart:$.default.func,onDrag:$.default.func,onStop:$.default.func,onMouseDown:$.default.func,scale:$.default.number,className:Mr,style:Mr,transform:Mr},_i.defaultProps={allowAnyClick:!1,allowMobileScroll:!1,disabled:!1,enableUserSelectHack:!0,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1};var vi=class extends K.Component{constructor(e){super(e),this.onDragStart=(e,t)=>{if(mi(`Draggable: onDragStart: %j`,t),this.props.onStart(e,di(this,t))===!1)return!1;this.setState({dragging:!0,dragged:!0})},this.onDrag=(e,t)=>{if(!this.state.dragging)return!1;mi(`Draggable: onDrag: %j`,t);let n=di(this,t),r={x:n.x,y:n.y,slackX:0,slackY:0};if(this.props.bounds){let{x:e,y:t}=r;r.x+=this.state.slackX,r.y+=this.state.slackY;let[i,a]=ai(this,r.x,r.y);r.x=i,r.y=a,r.slackX=this.state.slackX+(e-r.x),r.slackY=this.state.slackY+(t-r.y),n.x=r.x,n.y=r.y,n.deltaX=r.x-this.state.x,n.deltaY=r.y-this.state.y}if(this.props.onDrag(e,n)===!1)return!1;this.setState(r)},this.onDragStop=(e,t)=>{if(!this.state.dragging||this.props.onStop(e,di(this,t))===!1)return!1;mi(`Draggable: onDragStop: %j`,t);let n={dragging:!1,slackX:0,slackY:0};if(this.props.position){let{x:e,y:t}=this.props.position;n.x=e,n.y=t}this.setState(n)},this.state={dragging:!1,dragged:!1,x:e.position?e.position.x:e.defaultPosition.x,y:e.position?e.position.y:e.defaultPosition.y,prevPropsPosition:{...e.position},slackX:0,slackY:0,isElementSVG:!1},e.position&&!(e.onDrag||e.onStop)&&console.warn("A `position` was applied to this , without drag handlers. This will make this component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the `position` of this element.")}static getDerivedStateFromProps({position:e},{prevPropsPosition:t}){return e&&(!t||e.x!==t.x||e.y!==t.y)?(mi(`Draggable: getDerivedStateFromProps %j`,{position:e,prevPropsPosition:t}),{x:e.x,y:e.y,prevPropsPosition:{...e}}):null}componentDidMount(){window.SVGElement!==void 0&&this.findDOMNode()instanceof window.SVGElement&&this.setState({isElementSVG:!0})}componentWillUnmount(){this.state.dragging&&this.setState({dragging:!1})}findDOMNode(){if(this.props?.nodeRef)return this.props.nodeRef.current;let e=Dr.default;return typeof e.findDOMNode==`function`?e.findDOMNode(this):null}render(){let{axis:e,bounds:t,children:n,defaultPosition:r,defaultClassName:i,defaultClassNameDragging:a,defaultClassNameDragged:o,position:s,positionOffset:c,scale:l,...u}=this.props,d={},f=null,p=!s||this.state.dragging,m=s||r,h={x:si(this)&&p?this.state.x:m.x,y:ci(this)&&p?this.state.y:m.y};this.state.isElementSVG?f=Yr(h,c):d=Jr(h,c);let g=K.Children.only(n),v=_(g.props.className||``,i,{[a]:this.state.dragging,[o]:this.state.dragged});return K.createElement(_i,{...u,onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop},K.cloneElement(g,{className:v,style:{...g.props.style,...d},transform:f}))}};vi.displayName=`Draggable`,vi.propTypes={..._i.propTypes,axis:$.default.oneOf([`both`,`x`,`y`,`none`]),bounds:$.default.oneOfType([$.default.shape({left:$.default.number,right:$.default.number,top:$.default.number,bottom:$.default.number}),$.default.string,$.default.oneOf([!1])]),defaultClassName:$.default.string,defaultClassNameDragging:$.default.string,defaultClassNameDragged:$.default.string,defaultPosition:$.default.shape({x:$.default.number,y:$.default.number}),positionOffset:$.default.shape({x:$.default.oneOfType([$.default.number,$.default.string]),y:$.default.oneOfType([$.default.number,$.default.string])}),position:$.default.shape({x:$.default.number,y:$.default.number}),className:Mr,style:Mr,transform:Mr},vi.defaultProps={..._i.defaultProps,axis:`both`,bounds:!1,defaultClassName:`react-draggable`,defaultClassNameDragging:`react-draggable-dragging`,defaultClassNameDragged:`react-draggable-dragged`,defaultPosition:{x:0,y:0},scale:1};var yi=r(((e,t)=>{function n(e){var t,r,i=``;if(typeof e==`string`||typeof e==`number`)i+=e;else if(typeof e==`object`)if(Array.isArray(e)){var a=e.length;for(t=0;t{var r=Object.create,i=Object.defineProperty,a=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,s=Object.getPrototypeOf,c=Object.prototype.hasOwnProperty,l=(e,t)=>{for(var n in t)i(e,n,{get:t[n],enumerable:!0})},u=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(let s of o(t))!c.call(e,s)&&s!==n&&i(e,s,{get:()=>t[s],enumerable:!(r=a(t,s))||r.enumerable});return e},d=(e,t,n)=>(n=e==null?{}:r(s(e)),u(t||!e||!e.__esModule?i(n,`default`,{value:e,enumerable:!0}):n,e)),f=e=>u(i({},`__esModule`,{value:!0}),e),p={};l(p,{DraggableCore:()=>W,default:()=>xe}),t.exports=f(p);var m=d(n()),h=d(Er()),g=d(ne()),_=yi();function v(e,t){for(let n=0,r=e.length;n`u`)return``;let t=window.document?.documentElement?.style;if(!t||e in t)return``;for(let n=0;nt===e.identifier)||e.changedTouches&&v(e.changedTouches,e=>t===e.identifier)}function F(e){if(e.targetTouches&&e.targetTouches[0])return e.targetTouches[0].identifier;if(e.changedTouches&&e.changedTouches[0])return e.changedTouches[0].identifier}function ce(){return typeof __webpack_nonce__<`u`?__webpack_nonce__:void 0}function le(e,t){if(!e)return;let n=e.getElementById(`react-draggable-style-el`);if(!n){n=e.createElement(`style`),n.type=`text/css`,n.id=`react-draggable-style-el`;let r=t??ce();r&&n.setAttribute(`nonce`,r),n.innerHTML=`.react-draggable-transparent-selection *::-moz-selection {all: inherit;} +`,n.innerHTML+=`.react-draggable-transparent-selection *::selection {all: inherit;} +`,e.getElementsByTagName(`head`)[0].appendChild(n)}e.body&&L(e.body,`react-draggable-transparent-selection`)}function I(e){window.requestAnimationFrame?window.requestAnimationFrame(()=>{ue(e)}):ue(e)}function ue(e){if(e)try{e.body&&de(e.body,`react-draggable-transparent-selection`);let t=e.selection;if(t)t.empty();else{let t=(e.defaultView||window).getSelection();t&&t.type!==`Caret`&&t.removeAllRanges()}}catch{}}function L(e,t){e.classList?e.classList.add(t):e.className.match(RegExp(`(?:^|\\s)${t}(?!\\S)`))||(e.className+=` ${t}`)}function de(e,t){e.classList?e.classList.remove(t):e.className=e.className.replace(RegExp(`(?:^|\\s)${t}(?!\\S)`,`g`),``)}function fe(e,t,n){if(!e.props.bounds)return[t,n];let{bounds:r}=e.props;r=typeof r==`string`?r:z(r);let i=ve(e);if(typeof r==`string`){let{ownerDocument:e}=i,t=e.defaultView;if(!t)throw Error(`Cannot resolve the owner window of the draggable node.`);let n;if(n=r===`parent`?i.parentNode:i.getRootNode().querySelector(r),!(n instanceof t.HTMLElement))throw Error(`Bounds selector "`+r+`" could not find an element.`);let a=n,o=t.getComputedStyle(i),s=t.getComputedStyle(a);r={left:-i.offsetLeft+x(s.paddingLeft)+x(o.marginLeft),top:-i.offsetTop+x(s.paddingTop)+x(o.marginTop),right:N(a)-M(i)-i.offsetLeft+x(s.paddingRight)-x(o.marginRight),bottom:re(a)-j(i)-i.offsetTop+x(s.paddingBottom)-x(o.marginBottom)}}return b(r.right)&&(t=Math.min(t,r.right)),b(r.bottom)&&(n=Math.min(n,r.bottom)),b(r.left)&&(t=Math.max(t,r.left)),b(r.top)&&(n=Math.max(n,r.top)),[t,n]}function pe(e,t,n){return[Math.round(t/e[0])*e[0],Math.round(n/e[1])*e[1]]}function me(e){return e.props.axis===`both`||e.props.axis===`x`}function he(e){return e.props.axis===`both`||e.props.axis===`y`}function ge(e,t,n){let r=typeof t==`number`?P(e,t):null;if(typeof t==`number`&&!r)return null;let i=ve(n),a=n.props.offsetParent||i.offsetParent||i.ownerDocument.body;return ie(r||e,a,n.props.scale)}function _e(e,t,n){let r=!b(e.lastX),i=ve(e);return r?{node:i,deltaX:0,deltaY:0,lastX:t,lastY:n,x:t,y:n}:{node:i,deltaX:t-e.lastX,deltaY:n-e.lastY,lastX:e.lastX,lastY:e.lastY,x:t,y:n}}function R(e,t){let n=e.props.scale;return{node:t.node,x:e.state.x+t.deltaX/n,y:e.state.y+t.deltaY/n,deltaX:t.deltaX/n,deltaY:t.deltaY/n,lastX:e.state.x,lastY:e.state.y}}function z(e){return{left:e.left,top:e.top,right:e.right,bottom:e.bottom}}function ve(e){let t=e.findDOMNode();if(!t)throw Error(`: Unmounted during event!`);return t}var B=d(n()),V=d(Er()),ye=d(ne());function H(...e){({}).DRAGGABLE_DEBUG&&console.log(...e)}var U={touch:{start:`touchstart`,move:`touchmove`,stop:`touchend`},mouse:{start:`mousedown`,move:`mousemove`,stop:`mouseup`}},be=U.mouse,W=class extends B.Component{constructor(){super(...arguments),this.dragging=!1,this.lastX=NaN,this.lastY=NaN,this.touchIdentifier=null,this.mounted=!1,this.handleDragStart=e=>{if(this.props.onMouseDown(e),!this.props.allowAnyClick&&(typeof e.button==`number`&&e.button!==0||e.ctrlKey))return!1;let t=this.findDOMNode();if(!t||!t.ownerDocument||!t.ownerDocument.body)throw Error(` not mounted on DragStart!`);let{ownerDocument:n}=t;if(this.props.disabled||!(e.target instanceof n.defaultView.Node)||this.props.handle&&!O(e.target,this.props.handle,t)||this.props.cancel&&O(e.target,this.props.cancel,t))return;e.type===`touchstart`&&!this.props.allowMobileScroll&&e.preventDefault();let r=F(e);this.touchIdentifier=r;let i=ge(e,r,this);if(i==null)return;let{x:a,y:o}=i,s=_e(this,a,o);H(`DraggableCore: handleDragStart: %j`,s),H(`calling`,this.props.onStart),this.props.onStart(e,s)!==!1&&this.mounted!==!1&&(this.props.enableUserSelectHack&&le(n,this.props.nonce),this.dragging=!0,this.lastX=a,this.lastY=o,k(n,be.move,this.handleDrag),k(n,be.stop,this.handleDragStop))},this.handleDrag=e=>{let t=ge(e,this.touchIdentifier,this);if(t==null)return;let{x:n,y:r}=t;if(Array.isArray(this.props.grid)){let e=n-this.lastX,t=r-this.lastY;if([e,t]=pe(this.props.grid,e,t),!e&&!t)return;n=this.lastX+e,r=this.lastY+t}let i=_e(this,n,r);if(H(`DraggableCore: handleDrag: %j`,i),this.props.onDrag(e,i)===!1||this.mounted===!1){try{this.handleDragStop(new MouseEvent(`mouseup`))}catch{let e=document.createEvent(`MouseEvents`);e.initMouseEvent(`mouseup`,!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),this.handleDragStop(e)}return}this.lastX=n,this.lastY=r},this.handleDragStop=e=>{if(!this.dragging)return;let t=ge(e,this.touchIdentifier,this);if(t==null)return;let{x:n,y:r}=t;if(Array.isArray(this.props.grid)){let e=n-this.lastX||0,t=r-this.lastY||0;[e,t]=pe(this.props.grid,e,t),n=this.lastX+e,r=this.lastY+t}let i=_e(this,n,r);if(this.props.onStop(e,i)===!1||this.mounted===!1)return!1;let a=this.findDOMNode();a&&this.props.enableUserSelectHack&&I(a.ownerDocument),H(`DraggableCore: handleDragStop: %j`,i),this.dragging=!1,this.lastX=NaN,this.lastY=NaN,a&&(H(`DraggableCore: Removing handlers`),A(a.ownerDocument,be.move,this.handleDrag),A(a.ownerDocument,be.stop,this.handleDragStop))},this.onMouseDown=e=>(be=U.mouse,this.handleDragStart(e)),this.onMouseUp=e=>(be=U.mouse,this.handleDragStop(e)),this.onTouchStart=e=>(be=U.touch,this.handleDragStart(e)),this.onTouchEnd=e=>(be=U.touch,this.handleDragStop(e))}componentDidMount(){this.mounted=!0;let e=this.findDOMNode();e&&k(e,U.touch.start,this.onTouchStart,{passive:!1})}componentWillUnmount(){this.mounted=!1;let e=this.findDOMNode();if(e){let{ownerDocument:t}=e;A(t,U.mouse.move,this.handleDrag),A(t,U.touch.move,this.handleDrag),A(t,U.mouse.stop,this.handleDragStop),A(t,U.touch.stop,this.handleDragStop),A(e,U.touch.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&I(t)}}findDOMNode(){if(this.props?.nodeRef)return this.props.nodeRef.current;let e=ye.default;return typeof e.findDOMNode==`function`?e.findDOMNode(this):(H(`react-draggable: ReactDOM.findDOMNode is not available in React 19+. You must provide a nodeRef prop. See: https://github.com/react-grid-layout/react-draggable#noderef`),null)}render(){return B.cloneElement(B.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}};W.displayName=`DraggableCore`,W.propTypes={allowAnyClick:V.default.bool,allowMobileScroll:V.default.bool,children:V.default.node.isRequired,disabled:V.default.bool,enableUserSelectHack:V.default.bool,offsetParent:function(e,t){if(e[t]&&e[t].nodeType!==1)throw Error(`Draggable's offsetParent must be a DOM Node.`)},grid:V.default.arrayOf(V.default.number),handle:V.default.string,cancel:V.default.string,nodeRef:V.default.object,nonce:V.default.string,onStart:V.default.func,onDrag:V.default.func,onStop:V.default.func,onMouseDown:V.default.func,scale:V.default.number,className:S,style:S,transform:S},W.defaultProps={allowAnyClick:!1,allowMobileScroll:!1,disabled:!1,enableUserSelectHack:!0,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1};var xe=class extends m.Component{constructor(e){super(e),this.onDragStart=(e,t)=>{if(H(`Draggable: onDragStart: %j`,t),this.props.onStart(e,R(this,t))===!1)return!1;this.setState({dragging:!0,dragged:!0})},this.onDrag=(e,t)=>{if(!this.state.dragging)return!1;H(`Draggable: onDrag: %j`,t);let n=R(this,t),r={x:n.x,y:n.y,slackX:0,slackY:0};if(this.props.bounds){let{x:e,y:t}=r;r.x+=this.state.slackX,r.y+=this.state.slackY;let[i,a]=fe(this,r.x,r.y);r.x=i,r.y=a,r.slackX=this.state.slackX+(e-r.x),r.slackY=this.state.slackY+(t-r.y),n.x=r.x,n.y=r.y,n.deltaX=r.x-this.state.x,n.deltaY=r.y-this.state.y}if(this.props.onDrag(e,n)===!1)return!1;this.setState(r)},this.onDragStop=(e,t)=>{if(!this.state.dragging||this.props.onStop(e,R(this,t))===!1)return!1;H(`Draggable: onDragStop: %j`,t);let n={dragging:!1,slackX:0,slackY:0};if(this.props.position){let{x:e,y:t}=this.props.position;n.x=e,n.y=t}this.setState(n)},this.state={dragging:!1,dragged:!1,x:e.position?e.position.x:e.defaultPosition.x,y:e.position?e.position.y:e.defaultPosition.y,prevPropsPosition:{...e.position},slackX:0,slackY:0,isElementSVG:!1},e.position&&!(e.onDrag||e.onStop)&&console.warn("A `position` was applied to this , without drag handlers. This will make this component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the `position` of this element.")}static getDerivedStateFromProps({position:e},{prevPropsPosition:t}){return e&&(!t||e.x!==t.x||e.y!==t.y)?(H(`Draggable: getDerivedStateFromProps %j`,{position:e,prevPropsPosition:t}),{x:e.x,y:e.y,prevPropsPosition:{...e}}):null}componentDidMount(){window.SVGElement!==void 0&&this.findDOMNode()instanceof window.SVGElement&&this.setState({isElementSVG:!0})}componentWillUnmount(){this.state.dragging&&this.setState({dragging:!1})}findDOMNode(){if(this.props?.nodeRef)return this.props.nodeRef.current;let e=g.default;return typeof e.findDOMNode==`function`?e.findDOMNode(this):null}render(){let{axis:e,bounds:t,children:n,defaultPosition:r,defaultClassName:i,defaultClassNameDragging:a,defaultClassNameDragged:o,position:s,positionOffset:c,scale:l,...u}=this.props,d={},f=null,p=!s||this.state.dragging,h=s||r,g={x:me(this)&&p?this.state.x:h.x,y:he(this)&&p?this.state.y:h.y};this.state.isElementSVG?f=oe(g,c):d=ae(g,c);let v=m.Children.only(n),y=(0,_.clsx)(v.props.className||``,i,{[a]:this.state.dragging,[o]:this.state.dragged});return m.createElement(W,{...u,onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop},m.cloneElement(v,{className:y,style:{...v.props.style,...d},transform:f}))}};xe.displayName=`Draggable`,xe.propTypes={...W.propTypes,axis:h.default.oneOf([`both`,`x`,`y`,`none`]),bounds:h.default.oneOfType([h.default.shape({left:h.default.number,right:h.default.number,top:h.default.number,bottom:h.default.number}),h.default.string,h.default.oneOf([!1])]),defaultClassName:h.default.string,defaultClassNameDragging:h.default.string,defaultClassNameDragged:h.default.string,defaultPosition:h.default.shape({x:h.default.number,y:h.default.number}),positionOffset:h.default.shape({x:h.default.oneOfType([h.default.number,h.default.string]),y:h.default.oneOfType([h.default.number,h.default.string])}),position:h.default.shape({x:h.default.number,y:h.default.number}),className:S,style:S,transform:S},xe.defaultProps={...W.defaultProps,axis:`both`,bounds:!1,defaultClassName:`react-draggable`,defaultClassNameDragging:`react-draggable-dragging`,defaultClassNameDragged:`react-draggable-dragged`,defaultPosition:{x:0,y:0},scale:1},0&&(t.exports={DraggableCore:W})})),xi=r(((e,t)=>{var n=bi(),r=n.DraggableCore,i=n.default||n;t.exports=i,t.exports.default=i,t.exports.DraggableCore=r})),Si=r((e=>{e.__esModule=!0,e.cloneElement=l;var t=r(n());function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function a(e){for(var t=1;t{e.__esModule=!0,e.resizableProps=void 0;var t=n(Er());xi();function n(e){return e&&e.__esModule?e:{default:e}}e.resizableProps={axis:t.default.oneOf([`both`,`x`,`y`,`none`]),className:t.default.string,children:t.default.element.isRequired,draggableOpts:t.default.shape({allowAnyClick:t.default.bool,cancel:t.default.string,children:t.default.node,disabled:t.default.bool,enableUserSelectHack:t.default.bool,offsetParent:typeof Element<`u`?t.default.instanceOf(Element):t.default.any,grid:t.default.arrayOf(t.default.number),handle:t.default.string,nodeRef:t.default.object,onStart:t.default.func,onDrag:t.default.func,onStop:t.default.func,onMouseDown:t.default.func,scale:t.default.number}),height:function(){var e=[...arguments];let n=e[0];return n.axis===`both`||n.axis===`y`?t.default.number.isRequired(...e):t.default.number(...e)},handle:t.default.oneOfType([t.default.node,t.default.func]),handleSize:t.default.arrayOf(t.default.number),lockAspectRatio:t.default.bool,maxConstraints:t.default.arrayOf(t.default.number),minConstraints:t.default.arrayOf(t.default.number),onResizeStop:t.default.func,onResizeStart:t.default.func,onResize:t.default.func,resizeHandles:t.default.arrayOf(t.default.oneOf([`s`,`w`,`e`,`n`,`sw`,`nw`,`se`,`ne`])),transformScale:t.default.number,width:function(){var e=[...arguments];let n=e[0];return n.axis===`both`||n.axis===`x`?t.default.number.isRequired(...e):t.default.number(...e)}}})),wi=r((e=>{e.__esModule=!0,e.default=void 0;var t=s(n()),r=xi(),i=Si(),a=Ci(),o=[`children`,`className`,`draggableOpts`,`width`,`height`,`handle`,`handleSize`,`lockAspectRatio`,`axis`,`minConstraints`,`maxConstraints`,`onResize`,`onResizeStop`,`onResizeStart`,`resizeHandles`,`transformScale`];function s(e,t){if(typeof WeakMap==`function`)var n=new WeakMap,r=new WeakMap;return(s=function(e,t){if(!t&&e&&e.__esModule)return e;var i,a,o={__proto__:null,default:e};if(e===null||typeof e!=`object`&&typeof e!=`function`)return o;if(i=t?r:n){if(i.has(e))return i.get(e);i.set(e,o)}for(let t in e)t!=="default"&&{}.hasOwnProperty.call(e,t)&&((a=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(a.get||a.set)?i(o,t,a):o[t]=e[t]);return o})(e,t)}function c(){return c=Object.assign?Object.assign.bind():function(e){for(var t=1;tMath.abs(i*n)?t=e/n:e=t*n}let o=e,s=t,c=this.slack||[0,0],l=c[0],u=c[1];return e+=l,t+=u,r&&(e=Math.max(r[0],e),t=Math.max(r[1],t)),i&&(e=Math.min(i[0],e),t=Math.min(i[1],t)),this.slack=[l+(o-e),u+(s-t)],[e,t]}resizeHandler(e,t){return(n,r)=>{let i=r.node,a=r.deltaX,o=r.deltaY;e===`onResizeStart`&&this.resetData();let s=(this.props.axis===`both`||this.props.axis===`x`)&&t!==`n`&&t!==`s`,c=(this.props.axis===`both`||this.props.axis===`y`)&&t!==`e`&&t!==`w`;if(!s&&!c)return;let l=t[0],u=t[t.length-1],d=i.getBoundingClientRect();if(this.lastHandleRect!=null){if(u===`w`){let e=d.left-this.lastHandleRect.left;a+=e}if(l===`n`){let e=d.top-this.lastHandleRect.top;o+=e}}this.lastHandleRect=d,u===`w`&&(a=-a),l===`n`&&(o=-o);let f=this.lastSize?.width??this.props.width,p=this.lastSize?.height??this.props.height,m=f+(s?a/this.props.transformScale:0),h=p+(c?o/this.props.transformScale:0);var g=this.runConstraints(m,h);if(m=g[0],h=g[1],e===`onResizeStop`&&this.lastSize){var _=this.lastSize;m=_.width,h=_.height}let v=m!==f||h!==p;e!==`onResizeStop`&&(this.lastSize={width:m,height:h});let y=typeof this.props[e]==`function`?this.props[e]:null;y&&!(e===`onResize`&&!v)&&(n.persist==null||n.persist(),y(n,{node:i,size:{width:m,height:h},handle:t})),e===`onResizeStop`&&this.resetData()}}renderResizeHandle(e,n){let r=this.props.handle;if(!r)return t.createElement(`span`,{className:`react-resizable-handle react-resizable-handle-`+e,ref:n});if(typeof r==`function`)return r(e,n);let i=typeof r.type==`string`,a=d({ref:n},i?{}:{handleAxis:e});return t.cloneElement(r,a)}render(){let e=this.props,n=e.children,a=e.className,s=e.draggableOpts;e.width,e.height,e.handle,e.handleSize,e.lockAspectRatio,e.axis,e.minConstraints,e.maxConstraints,e.onResize,e.onResizeStop,e.onResizeStart;let u=e.resizeHandles;e.transformScale;let f=l(e,o);return(0,i.cloneElement)(n,d(d({},f),{},{className:(a?a+` `:``)+`react-resizable`,children:[...t.Children.toArray(n.props.children),...u.map(e=>{let n=this.handleRefs[e]??(this.handleRefs[e]=t.createRef());return t.createElement(r.DraggableCore,c({},s,{nodeRef:n,key:`resizableHandle-`+e,onStop:this.resizeHandler(`onResizeStop`,e),onStart:this.resizeHandler(`onResizeStart`,e),onDrag:this.resizeHandler(`onResize`,e)}),this.renderResizeHandle(e,n))})]}))}};e.default=h,h.propTypes=a.resizableProps,h.defaultProps={axis:`both`,handleSize:[20,20],lockAspectRatio:!1,minConstraints:[20,20],maxConstraints:[1/0,1/0],resizeHandles:[`se`],transformScale:1}})),Ti=r((e=>{e.__esModule=!0,e.default=void 0;var t=c(n()),r=s(Er()),i=s(wi()),a=Ci(),o=[`handle`,`handleSize`,`onResize`,`onResizeStart`,`onResizeStop`,`draggableOpts`,`minConstraints`,`maxConstraints`,`lockAspectRatio`,`axis`,`width`,`height`,`resizeHandles`,`style`,`transformScale`];function s(e){return e&&e.__esModule?e:{default:e}}function c(e,t){if(typeof WeakMap==`function`)var n=new WeakMap,r=new WeakMap;return(c=function(e,t){if(!t&&e&&e.__esModule)return e;var i,a,o={__proto__:null,default:e};if(e===null||typeof e!=`object`&&typeof e!=`function`)return o;if(i=t?r:n){if(i.has(e))return i.get(e);i.set(e,o)}for(let t in e)t!=="default"&&{}.hasOwnProperty.call(e,t)&&((a=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(a.get||a.set)?i(o,t,a):o[t]=e[t]);return o})(e,t)}function l(){return l=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let n=t.size;this.props.onResize?(e.persist==null||e.persist(),this.setState(n,()=>this.props.onResize&&this.props.onResize(e,t))):this.setState(n)}}static getDerivedStateFromProps(e,t){return t.propsWidth!==e.width||t.propsHeight!==e.height?{width:e.width,height:e.height,propsWidth:e.width,propsHeight:e.height}:null}render(){let e=this.props,n=e.handle,r=e.handleSize;e.onResize;let a=e.onResizeStart,s=e.onResizeStop,c=e.draggableOpts,u=e.minConstraints,f=e.maxConstraints,p=e.lockAspectRatio,m=e.axis;e.width,e.height;let g=e.resizeHandles,_=e.style,v=e.transformScale,y=h(e,o);return t.createElement(i.default,{axis:m,draggableOpts:c,handle:n,handleSize:r,height:this.state.height,lockAspectRatio:p,maxConstraints:f,minConstraints:u,onResizeStart:a,onResize:this.onResize,onResizeStop:s,resizeHandles:g,transformScale:v,width:this.state.width},t.createElement(`div`,l({},y,{style:d(d({},_),{},{width:this.state.width+`px`,height:this.state.height+`px`})})))}};e.default=g,g.propTypes=d(d({},a.resizableProps),{},{children:r.default.element})})),Ei=r(((e,t)=>{t.exports=function(){throw Error(`Don't instantiate Resizable directly! Use require('react-resizable').Resizable`)},t.exports.Resizable=wi().default,t.exports.ResizableBox=Ti().default})),Di=r(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?r(e):typeof define==`function`&&define.amd?define([`exports`],r):(n=typeof globalThis<`u`?globalThis:n||self,r(n[`fast-equals`]={}))})(e,(function(e){function t(e){return function(t,n,r,i,a,o,s){return e(t,n,s)}}function n(e){return function(t,n,r,i){if(!t||!n||typeof t!=`object`||typeof n!=`object`)return e(t,n,r,i);var a=i.get(t),o=i.get(n);if(a&&o)return a===n&&o===t;i.set(t,n),i.set(n,t);var s=e(t,n,r,i);return i.delete(t),i.delete(n),s}}function r(e,t){var n={};for(var r in e)n[r]=e[r];for(var r in t)n[r]=t[r];return n}function i(e){return e.constructor===Object||e.constructor==null}function a(e){return typeof e.then==`function`}function o(e,t){return e===t||e!==e&&t!==t}var s=Object.prototype.toString;function c(e){var t=e.areArraysEqual,n=e.areDatesEqual,r=e.areMapsEqual,c=e.areObjectsEqual,l=e.areRegExpsEqual,u=e.areSetsEqual,d=e.createIsNestedEqual,f=d(p);function p(e,d,p){if(e===d)return!0;if(!e||!d||typeof e!=`object`||typeof d!=`object`)return e!==e&&d!==d;if(i(e)&&i(d))return c(e,d,f,p);var m=Array.isArray(e),h=Array.isArray(d);if(m||h)return m===h&&t(e,d,f,p);var g=s.call(e);return g===s.call(d)?g===`[object Date]`?n(e,d,f,p):g===`[object RegExp]`?l(e,d,f,p):g===`[object Map]`?r(e,d,f,p):g===`[object Set]`?u(e,d,f,p):g===`[object Object]`||g===`[object Arguments]`?a(e)||a(d)?!1:c(e,d,f,p):g===`[object Boolean]`||g===`[object Number]`||g===`[object String]`?o(e.valueOf(),d.valueOf()):!1:!1}return p}function l(e,t,n,r){var i=e.length;if(t.length!==i)return!1;for(;i-->0;)if(!n(e[i],t[i],i,i,e,t,r))return!1;return!0}var u=n(l);function d(e,t){return o(e.valueOf(),t.valueOf())}function f(e,t,n,r){var i=e.size===t.size;if(!i)return!1;if(!e.size)return!0;var a={},o=0;return e.forEach(function(s,c){if(i){var l=!1,u=0;t.forEach(function(i,d){!l&&!a[u]&&(l=n(c,d,o,u,e,t,r)&&n(s,i,c,d,e,t,r))&&(a[u]=!0),u++}),o++,i=l}}),i}var p=n(f),m=`_owner`,h=Object.prototype.hasOwnProperty;function g(e,t,n,r){var i=Object.keys(e),a=i.length;if(Object.keys(t).length!==a)return!1;for(var o;a-->0;){if(o=i[a],o===m){var s=!!e.$$typeof,c=!!t.$$typeof;if((s||c)&&s!==c)return!1}if(!h.call(t,o)||!n(e[o],t[o],o,o,e,t,r))return!1}return!0}var _=n(g);function v(e,t){return e.source===t.source&&e.flags===t.flags}function y(e,t,n,r){var i=e.size===t.size;if(!i)return!1;if(!e.size)return!0;var a={};return e.forEach(function(o,s){if(i){var c=!1,l=0;t.forEach(function(i,u){!c&&!a[l]&&(c=n(o,i,s,u,e,t,r))&&(a[l]=!0),l++}),i=c}}),i}var b=n(y),x=Object.freeze({areArraysEqual:l,areDatesEqual:d,areMapsEqual:f,areObjectsEqual:g,areRegExpsEqual:v,areSetsEqual:y,createIsNestedEqual:t}),S=Object.freeze({areArraysEqual:u,areDatesEqual:d,areMapsEqual:p,areObjectsEqual:_,areRegExpsEqual:v,areSetsEqual:b,createIsNestedEqual:t}),C=c(x);function w(e,t){return C(e,t,void 0)}var T=c(r(x,{createIsNestedEqual:function(){return o}}));function E(e,t){return T(e,t,void 0)}var ee=c(S);function D(e,t){return ee(e,t,new WeakMap)}var te=c(r(S,{createIsNestedEqual:function(){return o}}));function O(e,t){return te(e,t,new WeakMap)}function k(e){return c(r(x,e(x)))}function A(e){var t=c(r(S,e(S)));return(function(e,n,r){return r===void 0&&(r=new WeakMap),t(e,n,r)})}e.circularDeepEqual=D,e.circularShallowEqual=O,e.createCustomCircularEqual=A,e.createCustomEqual=k,e.deepEqual=w,e.sameValueZeroEqual=o,e.shallowEqual=E,Object.defineProperty(e,"__esModule",{value:!0})}))})),Oi=Ei(),ki=Di();function Ai(e){let{children:t,cols:n,containerWidth:r,margin:i,containerPadding:a,rowHeight:o,maxRows:s,isDraggable:c,isResizable:l,isBounded:u,static:d,useCSSTransforms:f=!0,usePercentages:p=!1,transformScale:m=1,positionStrategy:h,dragThreshold:g=0,droppingPosition:v,className:y=``,style:b,handle:x=``,cancel:S=``,x:C,y:w,w:T,h:E,minW:ee=1,maxW:D=1/0,minH:te=1,maxH:O=1/0,i:k,resizeHandles:A,resizeHandle:j,constraints:M=zn,layoutItem:ne,layout:re=[],onDragStart:N,onDrag:ie,onDragStop:ae,onResizeStart:oe,onResize:se,onResizeStop:P}=e,[F,ce]=(0,K.useState)(!1),[le,I]=(0,K.useState)(!1),ue=(0,K.useRef)(null),L=(0,K.useRef)({left:0,top:0}),de=(0,K.useRef)({top:0,left:0,width:0,height:0}),fe=(0,K.useRef)(void 0),pe=(0,K.useRef)(re);pe.current=re;let me=(0,K.useRef)(null),he=(0,K.useRef)(null),ge=(0,K.useRef)(!1),_e=(0,K.useRef)({x:0,y:0}),R=(0,K.useRef)(!1),z=(0,K.useMemo)(()=>({cols:n,containerPadding:a,containerWidth:r,margin:i,maxRows:s,rowHeight:o}),[n,a,r,i,s,o]),ve=(0,K.useMemo)(()=>({cols:n,maxRows:s,containerWidth:r,containerHeight:0,rowHeight:o,margin:i,layout:[]}),[n,s,r,o,i]),B=(0,K.useCallback)(()=>({...ve,layout:pe.current}),[ve]),V=(0,K.useMemo)(()=>ne??{i:k,x:C,y:w,w:T,h:E,minW:ee,maxW:D,minH:te,maxH:O},[ne,k,C,w,T,E,ee,D,te,O]),ye=(0,K.useCallback)(e=>{if(h?.calcStyle)return h.calcStyle(e);if(f)return Hn(e);let t=Un(e);return p?{...t,left:Wn(e.left/r),width:Wn(e.width/r)}:t},[h,f,p,r]),H=(0,K.useCallback)((e,{node:t})=>{if(!N)return;let{offsetParent:n}=t;if(!n)return;let r=n.getBoundingClientRect(),i=t.getBoundingClientRect(),a=i.left/m,o=r.left/m,s=i.top/m,c=r.top/m,l;if(h?.calcDragPosition){let t=e;l=h.calcDragPosition(t.clientX,t.clientY,t.clientX-i.left,t.clientY-i.top)}else l={left:a-o+n.scrollLeft,top:s-c+n.scrollTop};if(L.current=l,g>0){let t=e;_e.current={x:t.clientX,y:t.clientY},ge.current=!0,R.current=!1,ce(!0);return}ce(!0);let u=yn(z,l.top,l.left),{x:d,y:f}=Bn(M,V,u.x,u.y,B());N(k,d,f,{e,node:t,newPosition:l})},[N,m,z,h,g,M,V,B,k]),U=(0,K.useCallback)((e,{node:t,deltaX:n,deltaY:a})=>{if(!ie||!F)return;let s=e;if(ge.current&&!R.current){let n=s.clientX-_e.current.x,r=s.clientY-_e.current.y;if(Math.hypot(n,r){if(!ae||!F)return;let n=ge.current;if(ge.current=!1,R.current=!1,_e.current={x:0,y:0},n){ce(!1),L.current={left:0,top:0};return}let{left:r,top:i}=L.current,a={top:i,left:r};ce(!1),L.current={left:0,top:0};let o=yn(z,i,r),{x:s,y:c}=Bn(M,V,o.x,o.y,B());ae(k,s,c,{e,node:t,newPosition:a})},[ae,F,z,M,V,B,k]);me.current=H,he.current=U;let W=(0,K.useCallback)((e,{node:t,size:n,handle:i},a,o)=>{let s=o===`onResizeStart`?oe:o===`onResize`?se:P;if(!s)return;let c;c=t?er(i,a,n,r):{...n,top:a.top,left:a.left},de.current=c;let l=bn(z,c.width,c.height),{w:u,h:d}=Vn(M,V,l.w,l.h,i,B());s(k,u,d,{e:e.nativeEvent??e,node:t,size:c,handle:i})},[oe,se,P,r,z,k,M,V,B]),xe=(0,K.useCallback)((e,t)=>{I(!0);let n=_n(z,C,w,T,E),r={...t,handle:t.handle};W(e,r,n,`onResizeStart`)},[W,z,C,w,T,E]),Se=(0,K.useCallback)((e,t)=>{let n=_n(z,C,w,T,E),r={...t,handle:t.handle};W(e,r,n,`onResize`)},[W,z,C,w,T,E]),Ce=(0,K.useCallback)((e,t)=>{I(!1),de.current={top:0,left:0,width:0,height:0};let n=_n(z,C,w,T,E),r={...t,handle:t.handle};W(e,r,n,`onResizeStop`)},[W,z,C,w,T,E]);(0,K.useEffect)(()=>{if(!v)return;let e=ue.current;if(!e)return;let t=fe.current||{left:0,top:0},n=F&&(v.left!==t.left||v.top!==t.top);if(!F){let t={node:e,deltaX:v.left,deltaY:v.top,lastX:0,lastY:0,x:v.left,y:v.top};me.current?.(v.e,t)}else if(n){let t={node:e,deltaX:v.left-L.current.left,deltaY:v.top-L.current.top,lastX:L.current.left,lastY:L.current.top,x:v.left,y:v.top};he.current?.(v.e,t)}fe.current=v},[v,F,k]);let G=_n(z,C,w,T,E,F?L.current:null,le?de.current:null),we=K.Children.only(t),Te=hn(z),Ee=[gn(ee,Te,i[0]),gn(te,o,i[1])],J=[gn(D,Te,i[0]),gn(O,o,i[1])],Y=we.props,De=Y.className,Oe=Y.style,ke=K.cloneElement(we,{ref:ue,className:_(`react-grid-item`,De,y,{static:d,resizing:le,"react-draggable":c,"react-draggable-dragging":F,dropping:!!v,cssTransforms:f}),style:{...b,...Oe,...ye(G)}}),X=j;return ke=(0,q.jsx)(Oi.Resizable,{draggableOpts:{disabled:!l},className:l?void 0:`react-resizable-hide`,width:G.width,height:G.height,minConstraints:Ee,maxConstraints:J,onResizeStart:xe,onResize:Se,onResizeStop:Ce,transformScale:m,resizeHandles:A,handle:X,children:ke}),ke=(0,q.jsx)(_i,{disabled:!c,onStart:H,onDrag:U,onStop:be,handle:x,cancel:`.react-resizable-handle`+(S?`,`+S:``),scale:m,nodeRef:ue,children:ke}),ke}var ji=()=>{},Mi=`react-grid-layout`,Ni=!1;try{Ni=/firefox/i.test(navigator.userAgent)}catch{}function Pi(e,t){let n=K.Children.toArray(e),r=K.Children.toArray(t);if(n.length!==r.length)return!1;for(let e=0;e{if(!K.isValidElement(t)||t.key===null)return;let n=String(t.key);a.add(n);let r=e.find(e=>e.i===n);if(r)i.push(jn(r));else{let e=t.props[`data-grid`];e?i.push({i:n,x:e.x??0,y:e.y??0,w:e.w??1,h:e.h??1,minW:e.minW,maxW:e.maxW,minH:e.minH,maxH:e.maxH,static:e.static,isDraggable:e.isDraggable,isResizable:e.isResizable,resizeHandles:e.resizeHandles,isBounded:e.isBounded}):i.push({i:n,x:0,y:On(i),w:1,h:1})}});let o=Fn(i,{cols:n});return r.compact(o,n)}function Ii(e){let{children:t,width:n,gridConfig:r,dragConfig:i,resizeConfig:a,dropConfig:o,positionStrategy:s=ir,compactor:c,constraints:l=zn,layout:u=[],droppingItem:d,autoSize:f=!0,className:p=``,style:m={},innerRef:h,onLayoutChange:g=ji,onDragStart:v=ji,onDrag:y=ji,onDragStop:b=ji,onResizeStart:x=ji,onResize:S=ji,onResizeStop:C=ji,onDrop:w=ji,onDropDragOver:T=ji}=e,E=(0,K.useMemo)(()=>({...ar,...r}),[r]),ee=(0,K.useMemo)(()=>({...or,...i}),[i]),D=(0,K.useMemo)(()=>({...sr,...a}),[a]),te=(0,K.useMemo)(()=>({...cr,...o}),[o]),{cols:O,rowHeight:k,maxRows:A,margin:j,containerPadding:M}=E,{enabled:ne,bounded:re,handle:N,cancel:ie,threshold:ae}=ee,{enabled:oe,handles:se,handleComponent:P}=D,{enabled:F,defaultItem:ce,onDragOver:le}=te,I=c??vr(`vertical`),ue=I.type,L=I.allowOverlap,de=I.preventCollision??!1,fe=(0,K.useMemo)(()=>d??{i:`__dropping-elem__`,...ce},[d,ce]),pe=s.type===`transform`,me=s.scale,he=M??j,[ge,_e]=(0,K.useState)(!1),[R,z]=(0,K.useState)(()=>Fi(u,t,O,I)),[ve,B]=(0,K.useState)(null),[V,ye]=(0,K.useState)(!1),[H,U]=(0,K.useState)(null),[be,W]=(0,K.useState)(),xe=(0,K.useRef)(null),Se=(0,K.useRef)(null),Ce=(0,K.useRef)(null),G=(0,K.useRef)(0),we=(0,K.useRef)(R),Te=(0,K.useRef)(u),Ee=(0,K.useRef)(t),J=(0,K.useRef)(ue),Y=(0,K.useRef)(R);Y.current=R,(0,K.useEffect)(()=>{_e(!0),(0,ki.deepEqual)(R,u)||g(R)},[]),(0,K.useEffect)(()=>{if(ve||H)return;let e=!(0,ki.deepEqual)(u,Te.current),n=!Pi(t,Ee.current),r=ue!==J.current;if(e||n||r){let n=Fi(e?u:R,t,O,I);(0,ki.deepEqual)(n,R)||z(n)}Te.current=u,Ee.current=t,J.current=ue},[u,t,O,ue,I,ve,H,R]),(0,K.useEffect)(()=>{if(!ve&&!(0,ki.deepEqual)(R,we.current)){we.current=R;let e=R.filter(e=>e.i!==fe.i);g(e)}},[R,ve,g,fe.i]);let De=(0,K.useMemo)(()=>{if(!f)return;let e=On(R),t=he[1];return e*k+(e-1)*j[1]+t*2+`px`},[f,R,k,j,he]),Oe=(0,K.useCallback)((e,t,n,r)=>{let i=Y.current,a=kn(i,e);if(!a)return;let o={w:a.w,h:a.h,x:a.x,y:a.y,i:e};xe.current=jn(a),Ce.current=i,B(o),v(i,a,a,null,r.e,r.node)},[v]),ke=(0,K.useCallback)((e,t,n,r)=>{let i=Y.current,a=xe.current,o=kn(i,e);if(!o)return;let s={w:o.w,h:o.h,x:o.x,y:o.y,i:e},c=In(i,o,t,n,!0,de,ue,O,L);y(c,a,o,s,r.e,r.node),z(I.compact(c,O)),B(s)},[de,ue,O,L,I,y]),X=(0,K.useCallback)((e,t,n,r)=>{if(!ve)return;let i=Y.current,a=xe.current,o=kn(i,e);if(!o)return;let s=In(i,o,t,n,!0,de,ue,O,L),c=I.compact(s,O);b(c,a,o,null,r.e,r.node);let l=Ce.current;xe.current=null,Ce.current=null,B(null),z(c),l&&!(0,ki.deepEqual)(l,c)&&g(c)},[ve,de,ue,O,L,I,b,g]),Ae=(0,K.useCallback)((e,t,n,r)=>{let i=Y.current,a=kn(i,e);a&&(Se.current=jn(a),Ce.current=i,ye(!0),x(i,a,a,null,r.e,r.node))},[x]),je=(0,K.useCallback)((e,t,n,r)=>{let i=Y.current,a=Se.current,{handle:o}=r,s=!1,c,l,[u,d]=Pn(i,e,e=>(c=e.x,l=e.y,[`sw`,`w`,`nw`,`n`,`ne`].includes(o)&&([`sw`,`nw`,`w`].includes(o)&&(c=e.x+(e.w-t),t=e.x!==c&&c<0?e.w:t,c=c<0?0:c),[`ne`,`n`,`nw`].includes(o)&&(l=e.y+(e.h-n),n=e.y!==l&&l<0?e.h:n,l=l<0?0:l),s=!0),de&&!L&&wn(i,{...e,w:t,h:n,x:c??e.x,y:l??e.y}).filter(t=>t.i!==e.i).length>0&&(l=e.y,n=e.h,c=e.x,t=e.w,s=!1),e.w=t,e.h=n,e));if(!d)return;let f=u;s&&c!==void 0&&l!==void 0&&(f=In(u,d,c,l,!0,de,ue,O,L));let p={w:d.w,h:d.h,x:d.x,y:d.y,i:e,static:!0};S(f,a,d,p,r.e,r.node),z(I.compact(f,O)),B(p)},[de,ue,O,L,I,S]),Me=(0,K.useCallback)((e,t,n,r)=>{let i=Y.current,a=Se.current,o=kn(i,e),s=I.compact(i,O);C(s,a,o??null,null,r.e,r.node);let c=Ce.current;Se.current=null,Ce.current=null,B(null),ye(!1),z(s),c&&!(0,ki.deepEqual)(c,s)&&g(s)},[O,I,C,g]),Z=(0,K.useCallback)(()=>{let e=Y.current;if(!e.some(e=>e.i===fe.i)){U(null),B(null),W(void 0);return}let t=I.compact(e.filter(e=>e.i!==fe.i),O);z(t),U(null),B(null),W(void 0)},[fe.i,O,I]),Ne=(0,K.useCallback)(e=>{if(e.preventDefault(),e.stopPropagation(),Ni&&!e.nativeEvent.target?.classList.contains(Mi))return!1;let t=le?le(e.nativeEvent):T(e);if(t===!1)return H&&Z(),!1;let{dragOffsetX:r=0,dragOffsetY:i=0,...a}=t??{},o={...fe,...a},s=e.currentTarget.getBoundingClientRect(),c={cols:O,margin:j,maxRows:A,rowHeight:k,containerWidth:n,containerPadding:he},l=hn(c),u=gn(o.w,l,j[0]),d=gn(o.h,k,j[1]),f=u/2,p=d/2,m=e.clientX-s.left+r-f,h=e.clientY-s.top+i-p,g=Math.max(0,m),_=Math.max(0,h),v={left:g/me,top:_/me,e:e.nativeEvent};if(H)be&&(be.left!==v.left||be.top!==v.top)&&W(v);else{let e=vn(c,_,g,o.w,o.h);U((0,q.jsx)(`div`,{},o.i)),W(v);let t=Y.current.filter(e=>e.i!==o.i);z([...t,{...o,x:e.x,y:e.y,static:!1,isDraggable:!0}])}},[H,be,fe,le,T,Z,me,O,j,A,k,n,he]),Pe=(0,K.useCallback)(e=>{e.preventDefault(),e.stopPropagation(),G.current--,G.current<0&&(G.current=0),G.current===0&&Z()},[Z]),Fe=(0,K.useCallback)(e=>{e.preventDefault(),e.stopPropagation(),G.current++},[]),Ie=(0,K.useCallback)(e=>{e.preventDefault(),e.stopPropagation();let t=Y.current,n=t.find(e=>e.i===fe.i);G.current=0,Z(),w(t,n,e.nativeEvent)},[fe.i,Z,w]),Le=(0,K.useCallback)((e,t)=>{if(!e||!e.key)return null;let r=kn(R,String(e.key));if(!r)return null;let i=typeof r.isDraggable==`boolean`?r.isDraggable:!r.static&&ne,a=typeof r.isResizable==`boolean`?r.isResizable:!r.static&&oe,o=r.resizeHandles||[...se],c=i&&re&&r.isBounded!==!1,u=P;return(0,q.jsx)(Ai,{containerWidth:n,cols:O,margin:j,containerPadding:he,maxRows:A,rowHeight:k,cancel:ie,handle:N,onDragStart:Oe,onDrag:ke,onDragStop:X,onResizeStart:Ae,onResize:je,onResizeStop:Me,isDraggable:i,isResizable:a,isBounded:c,useCSSTransforms:pe&&ge,usePercentages:!ge,transformScale:me,positionStrategy:s,dragThreshold:ae,w:r.w,h:r.h,x:r.x,y:r.y,i:r.i,minH:r.minH,minW:r.minW,maxH:r.maxH,maxW:r.maxW,static:r.static,droppingPosition:t?be:void 0,resizeHandles:o,resizeHandle:u,constraints:l,layoutItem:r,layout:R,children:e},r.i)},[R,n,O,j,he,A,k,ie,N,Oe,ke,X,Ae,je,Me,ne,oe,re,pe,ge,me,s,ae,be,se,P,l]),Re=()=>ve?(0,q.jsx)(Ai,{w:ve.w,h:ve.h,x:ve.x,y:ve.y,i:ve.i,className:`react-grid-placeholder ${V?`placeholder-resizing`:``}`,containerWidth:n,cols:O,margin:j,containerPadding:he,maxRows:A,rowHeight:k,isDraggable:!1,isResizable:!1,isBounded:!1,useCSSTransforms:pe,transformScale:me,constraints:l,layout:R,children:(0,q.jsx)(`div`,{})}):null,ze=_(Mi,p),Be={height:De,...m};return(0,q.jsxs)(`div`,{ref:h,className:ze,style:Be,onDrop:F?Ie:void 0,onDragLeave:F?Pe:void 0,onDragEnter:F?Fe:void 0,onDragOver:F?Ne:void 0,children:[K.Children.map(t,e=>K.isValidElement(e)?Le(e):null),F&&H&&Le(H,!0),Re()]})}var Li={lg:1200,md:996,sm:768,xs:480,xxs:0},Ri={lg:12,md:10,sm:6,xs:4,xxs:2},zi=()=>{};function Bi(e,t,n,r){let i=[];K.Children.forEach(t,t=>{if(!K.isValidElement(t)||t.key===null)return;let n=String(t.key),r=e.find(e=>e.i===n);if(r)i.push({...r,i:n});else{let e=t.props[`data-grid`];e?i.push({i:n,x:e.x??0,y:e.y??0,w:e.w??1,h:e.h??1,minW:e.minW,maxW:e.maxW,minH:e.minH,maxH:e.maxH,static:e.static,isDraggable:e.isDraggable,isResizable:e.isResizable,resizeHandles:e.resizeHandles,isBounded:e.isBounded}):i.push({i:n,x:0,y:On(i),w:1,h:1})}});let a=Fn(i,{cols:n});return r.compact(a,n)}function Vi(e){let{children:t,width:n,breakpoint:r,breakpoints:i=Li,cols:a=Ri,layouts:o={},rowHeight:s=150,maxRows:c=1/0,margin:l=[10,10],containerPadding:u=null,compactor:d,onBreakpointChange:f=zi,onLayoutChange:p=zi,onWidthChange:m=zi,...h}=e,g=d??vr(`vertical`),_=g.type,v=g.allowOverlap,y=(0,K.useMemo)(()=>r??br(i,n),[]),b=(0,K.useMemo)(()=>xr(y,a),[y,a]),x=(0,K.useMemo)(()=>Sr(o,i,y,y,b,_),[]),[S,C]=(0,K.useState)(y),[w,T]=(0,K.useState)(b),[E,ee]=(0,K.useState)(x),[D,te]=(0,K.useState)(o),O=(0,K.useRef)(n),k=(0,K.useRef)(r),A=(0,K.useRef)(i),j=(0,K.useRef)(a),M=(0,K.useRef)(o),ne=(0,K.useRef)(_),re=(0,K.useRef)(D);(0,K.useEffect)(()=>{re.current=D},[D]);let N=(0,K.useMemo)(()=>(0,ki.deepEqual)(o,M.current)?null:Sr(o,i,S,S,w,g),[o,i,S,w,g]),ie=N??E;(0,K.useEffect)(()=>{N!==null&&(ee(N),te(o),re.current=o,M.current=o)},[N,o]),(0,K.useEffect)(()=>{if(_!==ne.current){let e=g.compact(Mn(ie),w),t={...re.current,[S]:e};ee(e),te(t),re.current=t,p(e,t),ne.current=_}},[_,g,ie,w,v,S,p]),(0,K.useEffect)(()=>{let e=n!==O.current,o=r!==k.current,s=!(0,ki.deepEqual)(i,A.current),c=!(0,ki.deepEqual)(a,j.current);if(e||o||s||c){let e=r??br(i,n),o=xr(e,a),d=S;if(d!==e||s||c){let n={...re.current};n[d]||(n[d]=Mn(E));let r=Sr(n,i,e,d,o,g);r=Bi(r,t,o,g),n[e]=r,C(e),T(o),ee(r),te(n),re.current=n,f(e,o),p(r,n)}let h=Cr(l,e),_=u?Cr(u,e):null;m(n,h,o,_),O.current=n,k.current=r,A.current=i,j.current=a}},[n,r,i,a,S,w,E,t,g,_,v,l,u,f,p,m]);let ae=(0,K.useCallback)(e=>{let t={...re.current,[S]:e};ee(e),te(t),re.current=t,p(e,t)},[S,p]),oe=(0,K.useMemo)(()=>Cr(l,S),[l,S]),se=(0,K.useMemo)(()=>u===null?null:Cr(u,S),[u,S]),P=(0,K.useMemo)(()=>({cols:w,rowHeight:s,maxRows:c,margin:oe,containerPadding:se}),[w,s,c,oe,se]);return(0,q.jsx)(Ii,{...h,width:n,gridConfig:P,compactor:g,onLayoutChange:ae,layout:ie,children:t})}function Hi(e){let{children:t,width:n,breakpoint:r,breakpoints:i,cols:a,layouts:o,onBreakpointChange:s,onLayoutChange:c,onWidthChange:l,rowHeight:u,maxRows:d,margin:f,containerPadding:p,droppingItem:m,compactType:h,preventCollision:g=!1,allowOverlap:_=!1,verticalCompact:v,isDraggable:y=!0,isBounded:b=!1,draggableHandle:x,draggableCancel:S,isResizable:C=!0,resizeHandles:w=[`se`],resizeHandle:T,isDroppable:E=!1,useCSSTransforms:ee=!0,transformScale:D=1,autoSize:te,className:O,style:k,innerRef:A,onDragStart:j,onDrag:M,onDragStop:ne,onResizeStart:re,onResize:N,onResizeStop:ie,onDrop:ae,onDropDragOver:oe}=e,se=h===void 0?`vertical`:h;v===!1&&(se=null);let P={enabled:y,bounded:b,handle:x,cancel:S},F={enabled:C,handles:w,handleComponent:T},ce={enabled:E},le;le=ee?D===1?tr:rr(D):nr;let I=vr(se,_,g);return(0,q.jsx)(Vi,{width:n,breakpoint:r,breakpoints:i,cols:a,layouts:o,rowHeight:u,maxRows:d,margin:f,containerPadding:p,compactor:I,dragConfig:P,resizeConfig:F,dropConfig:ce,positionStrategy:le,droppingItem:m,autoSize:te,className:O,style:k,innerRef:A,onBreakpointChange:s,onLayoutChange:c,onWidthChange:l,onDragStart:j,onDrag:M,onDragStop:ne,onResizeStart:re,onResize:N,onResizeStop:ie,onDrop:ae,onDropDragOver:oe,children:t})}Hi.displayName=`ResponsiveReactGridLayout`;var Ui=Hi,Wi=`react-grid-layout`;function Gi(e){function t(t){let{measureBeforeMount:n=!1,className:r,style:i,...a}=t,[o,s]=(0,K.useState)(1280),[c,l]=(0,K.useState)(!1),u=(0,K.useRef)(null),d=(0,K.useRef)(null);return(0,K.useEffect)(()=>{l(!0)},[]),(0,K.useEffect)(()=>{let e=u.current;if(!(e instanceof HTMLElement))return;let t=null,n=new ResizeObserver(e=>{if(e[0]){let n=Math.round(e[0].contentRect.width);t!==null&&cancelAnimationFrame(t),t=requestAnimationFrame(()=>{s(e=>e===n?e:n),t=null})}});return n.observe(e),d.current=n,()=>{t!==null&&cancelAnimationFrame(t),n.unobserve(e),n.disconnect()}},[c]),n&&!c?(0,q.jsx)(`div`,{className:_(r,Wi),style:i,ref:u}):(0,q.jsx)(e,{innerRef:u,className:r,style:i,...a,width:o})}return t.displayName=`WidthProvider(${e.displayName||e.name||`Component`})`,t}function Ki(e){return e.reduce((e,t)=>Math.max(e,t.y+t.h),0)}function qi(e,t){return e.map(e=>({...e,x:0,w:t,minW:Math.min(e.minW??1,t)}))}var Ji=Gi(Ui),Yi=`fanout.dashboard-id`;async function Xi(e){let t=await D(e);if(!t.ok)throw Error(`Request failed (${t.status})`);return t.json()}var Zi=e=>e.state.status===`error`&&15e3,Qi={layout:[],widgets:[],filters:{window:`1h`,namespace:``}},$i={overview:`System health`,topology:`Service map`,activity:`Recent activity`,assistant:`Ask Fanout`,performance:`Performance`,trace:`Trace focus`,logs:`Logs`},ea={overview:4,topology:4,activity:4,assistant:3,performance:4,trace:4,logs:4};function ta({dashboardID:e=``,agentAvailable:t,onOpenChat:n,onDashboardChange:r}){let i=U(),a=pn({queryKey:[`dashboards`],queryFn:()=>Xi(`/api/dashboards`),refetchInterval:3e3}),[o,s]=(0,K.useState)(()=>e||localStorage.getItem(Yi)||``),c=mn({mutationFn:async e=>{if(!l.data)throw Error(`No dashboard selected`);let t=await D(`/api/dashboards/${encodeURIComponent(l.data.id)}`,{method:`PUT`,headers:{"content-type":`application/json`},body:JSON.stringify({name:l.data.name,description:l.data.description,state:e})});if(!t.ok)throw Error(`Unable to save dashboard`);return t.json()},scope:{id:`dashboard-${o}`},onSuccess:e=>{i.setQueryData([`dashboard`,e.id],e),i.invalidateQueries({queryKey:[`dashboards`]})},onError:e=>console.error(`Dashboard save failed`,e)}),l=pn({queryKey:[`dashboard`,o],queryFn:()=>Xi(`/api/dashboards/${encodeURIComponent(o)}`),enabled:!!o,refetchInterval:c.isPending||c.isError?!1:3e3}),[u,d]=(0,K.useState)(Qi),[f,p]=(0,K.useState)(`lg`);(0,K.useEffect)(()=>{!e||e===o||(s(e),localStorage.setItem(Yi,e))},[e,o]),(0,K.useEffect)(()=>{let t=a.data?.dashboards;if(t?.length&&!(e&&t.some(t=>t.id===e))){if(!e&&o&&t.some(e=>e.id===o)){r?.(o,!0);return}g((t.find(e=>e.is_default)??t[0]).id,!0)}},[e,a.data,o]),(0,K.useEffect)(()=>{c.isPending||c.isError||l.data?.state&&d(l.data.state)},[l.data?.updated_at,c.isPending,c.isError]),(0,K.useEffect)(()=>{c.reset()},[o]);let h=(0,K.useMemo)(()=>{let e=new Map(u.widgets.map(e=>[e.id,e.type])),t=u.layout.map(t=>{let n=ea[e.get(t.i)??`overview`];return{...t,h:Math.max(t.h,n),minH:Math.max(t.minH??0,n)}});return{lg:t,md:t,sm:qi(t,6),xs:qi(t,2),xxs:qi(t,1)}},[u.layout,u.widgets]);function g(e,t=!1){s(e),localStorage.setItem(Yi,e),r?.(e,t)}function _(e){d(e),c.mutate(e)}function v(e){let t=ve(),n=[`topology`,`performance`,`trace`,`logs`].includes(e),r=ea[e];_({...u,widgets:[...u.widgets,{id:t,type:e,title:$i[e],enabled:!0}],layout:[...u.layout,{i:t,x:0,y:Ki(u.layout),w:n?8:4,h:r,minW:3,minH:r}]})}function y(e){_({...u,widgets:u.widgets.filter(t=>t.id!==e),layout:u.layout.filter(t=>t.i!==e)})}if(a.isLoading||o&&l.isLoading)return(0,q.jsx)(na,{label:`Loading your workspace…`});if(a.isError||l.isError)return(0,q.jsx)(na,{label:`Your workspace is unavailable. Try refreshing.`});let S=l.data;return S?(0,q.jsxs)(P,{component:`main`,maw:1440,mx:`auto`,px:{base:`md`,sm:`xl`,lg:72},pt:{base:`xl`,sm:52},pb:100,children:[(0,q.jsxs)(X,{justify:`space-between`,align:{base:`flex-start`,md:`flex-end`},direction:{base:`column`,md:`row`},gap:`lg`,mb:`xl`,children:[(0,q.jsxs)(P,{miw:0,children:[(0,q.jsxs)(we,{shadow:`md`,position:`bottom-start`,withinPortal:!0,children:[(0,q.jsx)(we.Target,{children:(0,q.jsx)(N,{variant:`subtle`,color:`gray`,size:`compact-sm`,leftSection:(0,q.jsx)(sn,{size:16,weight:`fill`}),rightSection:(0,q.jsx)(en,{size:13,weight:`bold`}),children:`Dashboards`})}),(0,q.jsxs)(we.Dropdown,{children:[(0,q.jsx)(we.Label,{children:`Switch dashboard`}),(a.data?.dashboards??[]).map(e=>(0,q.jsx)(we.Item,{leftSection:e.id===o?(0,q.jsx)(re,{size:14,weight:`bold`}):(0,q.jsx)(P,{w:14}),onClick:()=>g(e.id),children:e.name},e.id))]})]}),(0,q.jsx)(x,{order:1,fz:{base:36,sm:52},lts:`-0.045em`,mt:4,children:S.name}),(0,q.jsx)(M,{c:`dimmed`,mt:4,children:S.description||`A focused view of the signals that matter now.`})]}),(0,q.jsxs)(se,{wrap:`nowrap`,w:{base:`100%`,md:`auto`},children:[t&&(0,q.jsx)(N,{variant:`default`,leftSection:(0,q.jsx)(an,{size:16,weight:`fill`}),flex:{base:1,md:`initial`},onClick:()=>n(`Create a new dashboard for me. First ask what I want to monitor, then design it when you have enough context.`),children:`Create with AI`}),(0,q.jsx)(N,{leftSection:l.isFetching?(0,q.jsx)(b,{size:15,color:`var(--mantine-primary-color-contrast)`}):(0,q.jsx)(Qt,{size:16,weight:`bold`}),onClick:()=>void i.invalidateQueries(),children:l.isFetching?`Refreshing`:`Refresh`})]})]}),c.isError&&(0,q.jsx)(ee,{color:`bad`,radius:`lg`,mb:`lg`,icon:(0,q.jsx)(ln,{size:18,weight:`fill`}),title:`Dashboard changes not saved`,children:(0,q.jsxs)(se,{justify:`space-between`,gap:`sm`,children:[(0,q.jsx)(M,{size:`sm`,children:`Your latest edits are kept on this screen but Fanout could not store them.`}),(0,q.jsx)(N,{size:`compact-sm`,color:`bad`,variant:`light`,onClick:()=>c.mutate(u),children:`Retry save`})]})}),(0,q.jsx)(m,{withBorder:!0,radius:`lg`,p:{base:`md`,sm:`lg`},mb:`lg`,role:`group`,"aria-label":`Dashboard controls`,children:(0,q.jsxs)(X,{align:{base:`stretch`,md:`flex-end`},justify:`space-between`,direction:{base:`column`,md:`row`},gap:`md`,children:[(0,q.jsxs)(se,{align:`flex-end`,gap:`md`,grow:!0,wrap:`wrap`,w:{base:`100%`,md:`auto`},children:[(0,q.jsx)(wt,{label:`Window`,value:u.filters.window,onChange:e=>e&&_({...u,filters:{...u.filters,window:e}}),data:[{value:`15m`,label:`15 minutes`},{value:`1h`,label:`1 hour`},{value:`6h`,label:`6 hours`},{value:`24h`,label:`24 hours`}],w:{base:`100%`,xs:150}}),(0,q.jsx)(A,{label:`Namespace`,value:u.filters.namespace,onChange:e=>d({...u,filters:{...u.filters,namespace:e.currentTarget.value}}),onBlur:e=>_({...u,filters:{...u.filters,namespace:e.currentTarget.value}}),placeholder:`All namespaces`,w:{base:`100%`,xs:220}})]}),(0,q.jsxs)(X,{wrap:{base:`wrap`,sm:`nowrap`},justify:{base:`flex-start`,md:`flex-end`},align:`center`,gap:{base:`sm`,sm:`md`},w:{base:`100%`,md:`auto`},children:[(0,q.jsxs)(se,{gap:`xs`,wrap:`nowrap`,children:[(0,q.jsx)(St,{color:c.isError?`bad`:c.isPending?`warn`:`ok`,processing:c.isPending,size:8}),(0,q.jsx)(M,{c:`dimmed`,size:`sm`,miw:48,children:c.isPending?`Saving`:c.isError?`Failed`:`Saved`})]}),(0,q.jsx)(me,{orientation:`vertical`,h:28}),(0,q.jsxs)(we,{shadow:`md`,position:`bottom-end`,withinPortal:!0,children:[(0,q.jsx)(we.Target,{children:(0,q.jsx)(N,{variant:`default`,leftSection:(0,q.jsx)(z,{size:16,weight:`bold`}),rightSection:(0,q.jsx)(en,{size:14,weight:`bold`}),children:`Add view`})}),(0,q.jsxs)(we.Dropdown,{children:[(0,q.jsx)(we.Label,{children:`Dashboard views`}),Object.entries($i).filter(([e])=>t||e!==`assistant`).map(([e,t])=>(0,q.jsx)(we.Item,{onClick:()=>v(e),children:t},e))]})]}),t&&(0,q.jsx)(N,{variant:`subtle`,color:`gray`,rightSection:(0,q.jsx)(R,{size:16,weight:`bold`}),onClick:()=>n(),children:`Ask Fanout`})]})]})}),(0,q.jsx)(Ji,{className:`dashboard-grid`,layouts:h,breakpoints:{lg:1100,md:800,sm:600,xs:420,xxs:0},cols:{lg:12,md:10,sm:6,xs:2,xxs:1},rowHeight:76,margin:[16,16],containerPadding:[0,0],compactType:`vertical`,draggableCancel:`button,input,select,textarea,a,label,[role=menu]`,onBreakpointChange:p,onDragStop:e=>{f===`lg`&&_({...u,layout:[...e]})},onResizeStop:e=>{f===`lg`&&_({...u,layout:[...e]})},children:u.widgets.map(e=>(0,q.jsx)(`div`,{children:(0,q.jsx)(ra,{widget:e,filters:u.filters,agentAvailable:t,onRemove:()=>y(e.id),onOpenChat:n})},e.id))})]}):(0,q.jsx)(na,{label:`Preparing your workspace…`})}function na({label:e}){return(0,q.jsxs)(T,{mih:`50vh`,children:[(0,q.jsx)(b,{size:`sm`}),(0,q.jsx)(M,{c:`dimmed`,size:`sm`,ml:`sm`,children:e})]})}function ra({widget:e,filters:t,agentAvailable:n,onRemove:r,onOpenChat:i}){let a=new URLSearchParams({window:t.window,limit:`40`});t.namespace&&a.set(`namespace`,t.namespace);let o=typeof e.config?.service==`string`?e.config.service:``;o&&a.set(`service`,o);let s=pn({queryKey:[`overview`,a.toString()],queryFn:()=>Xi(`/api/observability/overview?${a}`),enabled:e.type===`overview`||e.type===`activity`,refetchInterval:Zi}),c=pn({queryKey:[`topology`,a.toString()],queryFn:()=>Xi(`/api/observability/topology?${a}`),enabled:e.type===`topology`,refetchInterval:Zi}),l=pn({queryKey:[`performance`,a.toString()],queryFn:()=>Xi(`/api/observability/performance?${a}`),enabled:e.type===`performance`,refetchInterval:Zi}),u=new URLSearchParams(a);typeof e.config?.severity==`string`&&u.set(`severity`,e.config.severity),typeof e.config?.search==`string`&&u.set(`search`,e.config.search);let d=pn({queryKey:[`logs`,u.toString()],queryFn:()=>Xi(`/api/observability/logs?${u}`),enabled:e.type===`logs`,refetchInterval:Zi}),f=new URLSearchParams(a);typeof e.config?.trace_id==`string`&&f.set(`trace_id`,e.config.trace_id);let p=pn({queryKey:[`trace`,f.toString()],queryFn:()=>Xi(`/api/observability/trace?${f}`),enabled:e.type===`trace`,refetchInterval:Zi}),h=s.data?.data,g={overview:s,activity:s,topology:c,performance:l,logs:d,trace:p}[e.type]?.isError??!1;return(0,q.jsx)(m,{withBorder:!0,shadow:`xs`,radius:`lg`,p:`lg`,h:`100%`,style:{overflow:`hidden`},children:(0,q.jsxs)(oe,{h:`100%`,gap:`sm`,children:[(0,q.jsxs)(se,{justify:`space-between`,align:`flex-start`,wrap:`nowrap`,children:[(0,q.jsxs)(P,{children:[(0,q.jsx)(M,{c:`dimmed`,size:`xs`,fw:700,tt:`uppercase`,lts:`0.1em`,children:e.type===`assistant`?`Guidance`:e.type}),(0,q.jsx)(x,{order:2,fz:`lg`,mt:2,children:e.title})]}),(0,q.jsx)(Se,{label:`Remove ${e.title}`,children:(0,q.jsx)(de,{variant:`subtle`,color:`bad`,"aria-label":`Remove ${e.title}`,onClick:r,children:(0,q.jsx)(dn,{size:16,weight:`bold`})})})]}),(0,q.jsxs)(Ce,{type:`auto`,offsetScrollbars:!0,flex:1,children:[g&&(0,q.jsx)(la,{}),!g&&e.type===`overview`&&(0,q.jsxs)(fe,{cols:2,spacing:`sm`,children:[(0,q.jsx)(sa,{label:`Health`,value:h?.health??`—`}),(0,q.jsx)(sa,{label:`Services`,value:h?.service_count??`—`}),(0,q.jsx)(sa,{label:`Spans`,value:h?.total_spans?.toLocaleString?.()??`—`}),(0,q.jsx)(sa,{label:`Error rate`,value:h?`${(h.error_rate*100).toFixed(2)}%`:`—`})]}),!g&&e.type===`topology`&&(0,q.jsx)(ia,{rows:(c.data?.data?.nodes??[]).slice(0,6).map(e=>[(0,q.jsx)(aa,{health:e.health,label:e.service},`health`),`${e.spans?.toLocaleString?.()??0} spans`,`${e.p95_ms?.toFixed?.(1)??`—`} ms p95`]),empty:`No service relationships in this window`}),!g&&e.type===`activity`&&(0,q.jsx)(ia,{rows:(h?.services??[]).slice(0,5).map(e=>[(0,q.jsx)(aa,{health:e.health,label:e.service},`health`),e.error_rate?`${(e.error_rate*100).toFixed(2)}% errors`:`Operating normally`]),empty:`No recent activity`}),!g&&e.type===`performance`&&(0,q.jsx)(ia,{rows:(l.data?.data?.endpoints??[]).slice(0,5).map(e=>[(0,q.jsxs)(M,{fw:600,size:`sm`,truncate:!0,children:[e.method,` `,e.path]},`path`),`${e.calls?.toLocaleString?.()} calls`,`${e.p95_ms?.toFixed?.(1)} ms p95`]),empty:`No endpoint activity in this window`}),!g&&e.type===`logs`&&(0,q.jsx)(ia,{rows:(d.data?.data?.entries??[]).slice(0,5).map(e=>[(0,q.jsx)(_t,{color:oa(e.severity),variant:`light`,children:e.severity},`severity`),e.service,e.body]),empty:`No matching logs in this window`}),!g&&e.type===`trace`&&(0,q.jsxs)(oe,{children:[(0,q.jsxs)(fe,{cols:2,spacing:`sm`,children:[(0,q.jsx)(sa,{label:`Duration`,value:p.data?.data?`${p.data.data.duration_ms.toFixed?.(1)} ms`:`—`}),(0,q.jsx)(sa,{label:`Spans`,value:p.data?.data?.spans?.length??`—`}),(0,q.jsx)(sa,{label:`Services`,value:p.data?.data?.services?.length??`—`}),(0,q.jsx)(sa,{label:`Status`,value:p.data?.data?p.data.data.has_error?`Error`:`Healthy`:`—`})]}),(0,q.jsx)(M,{c:`dimmed`,size:`xs`,ff:`monospace`,truncate:!0,children:p.data?.data?.trace_id?`Trace ${p.data.data.trace_id}`:`Most relevant recent trace`})]}),!g&&e.type===`assistant`&&(n?(0,q.jsxs)(oe,{align:`flex-start`,children:[(0,q.jsx)(M,{c:`dimmed`,children:`Ask a focused question about health, latency, errors, or dependencies.`}),(0,q.jsx)(N,{leftSection:(0,q.jsx)(an,{size:16,weight:`fill`}),onClick:()=>i(`Summarize the most important system changes in the selected window`),children:`Start a conversation`})]}):(0,q.jsx)(M,{c:`dimmed`,children:`Configure an AI provider to enable this view. The rest of this dashboard remains available.`}))]})]})})}function ia({rows:e,empty:t}){return e.length?(0,q.jsx)(Ut.ScrollContainer,{minWidth:420,children:(0,q.jsx)(Ut,{verticalSpacing:`sm`,highlightOnHover:!0,children:(0,q.jsx)(Ut.Tbody,{children:e.map((e,t)=>(0,q.jsx)(Ut.Tr,{children:e.map((e,t)=>(0,q.jsx)(Ut.Td,{children:(0,q.jsx)(M,{component:`span`,size:`sm`,c:t?`dimmed`:void 0,lineClamp:1,children:e})},t))},t))})})}):(0,q.jsx)(ca,{text:t})}function aa({health:e,label:t}){return(0,q.jsx)(_t,{color:e===`healthy`?`ok`:e===`degraded`?`warn`:`bad`,variant:`light`,tt:`none`,children:t})}function oa(e){let t=String(e).toUpperCase();return t===`ERROR`||t===`FATAL`?`bad`:t===`WARN`||t===`WARNING`?`warn`:t===`INFO`?`info`:`gray`}function sa({label:e,value:t}){return(0,q.jsxs)(m,{withBorder:!0,radius:`md`,p:`sm`,bg:`var(--mantine-color-default)`,children:[(0,q.jsx)(M,{c:`dimmed`,size:`xs`,children:e}),(0,q.jsx)(M,{fw:700,fz:`xl`,mt:4,tt:`capitalize`,children:t})]})}function ca({text:e}){return(0,q.jsxs)(T,{py:`xl`,children:[(0,q.jsx)(nn,{size:20}),(0,q.jsx)(M,{c:`dimmed`,size:`sm`,ml:`xs`,children:e})]})}function la(){return(0,q.jsxs)(T,{py:`xl`,children:[(0,q.jsx)(ln,{size:20,weight:`fill`,color:`var(--mantine-color-bad-filled)`}),(0,q.jsx)(M,{c:`bad`,fw:500,size:`sm`,ml:`xs`,children:`Couldn't load this view — retrying automatically`})]})}export{ta as t}; \ No newline at end of file diff --git a/internal/ui/dist/assets/dashboard-DgsE1DZx.js b/internal/ui/dist/assets/dashboard-DgsE1DZx.js deleted file mode 100644 index 627c4d1a..00000000 --- a/internal/ui/dist/assets/dashboard-DgsE1DZx.js +++ /dev/null @@ -1,5 +0,0 @@ -import{_ as e,a as t,d as n,f as r}from"./useNavigate-DyHkI5qo.js";import{A as i,D as a,E as o,I as s,J as c,M as l,N as u,O as d,P as f,Q as p,S as m,T as h,V as g,Z as _,_ as v,at as y,b,c as x,ct as S,dt as C,et as w,f as T,g as E,h as ee,i as D,it as te,j as O,k,l as A,lt as j,m as M,mt as ne,o as re,p as N,s as ie,st as ae,u as oe,v as se,w as P}from"./auth-yGyQH6NZ.js";import{A as ce,C as le,D as ue,E as F,O as de,S as I,T as fe,_ as pe,a as me,b as he,c as ge,d as _e,f as ve,g as L,h as R,i as ye,j as z,k as B,l as be,m as V,o as H,p as U,s as W,u as xe,v as Se,w as Ce,x as G,y as we}from"./index-BCWAnY2u.js";var K=e(n(),1);function Te(e){let t=(0,K.useRef)(void 0);return(0,K.useEffect)(()=>{t.current=e},[e]),t.current}var q=t();function Ee(e,t=document){let n=t.querySelector(e);if(n)return n;let r=t.querySelectorAll(`*`);for(let t=0;t{let t=f(`Flex`,null,e),{classNames:n,className:r,style:a,styles:o,unstyled:c,vars:u,gap:p,rowGap:m,columnGap:h,align:_,justify:v,wrap:y,direction:b,attributes:x,...S}=t,C=l({name:`Flex`,classes:ke,props:t,className:r,style:a,classNames:n,styles:o,unstyled:c,attributes:x,vars:u}),w=s(),T=d(),E=k({styleProps:{gap:p,rowGap:m,columnGap:h,align:_,justify:v,wrap:y,direction:b},theme:w,data:Oe}),ee=g(),D=ee&&E.hasResponsiveStyles?i(E.styles,E.media):T;return(0,q.jsxs)(q.Fragment,{children:[E.hasResponsiveStyles&&(0,q.jsx)(O,{selector:`.${D}`,styles:E.styles,media:E.media,deduplicate:ee}),(0,q.jsx)(P,{...C(`root`,{className:D,style:j(E.inlineStyles)}),...S})]})});X.classes=ke,X.displayName=`@mantine/core/Flex`;function Ae(e){return typeof e==`string`?{value:e,label:e}:typeof e==`object`&&`value`in e&&!(`label`in e)?{value:e.value,label:`${e.value}`,disabled:e.disabled}:typeof e==`object`&&`group`in e?{group:e.group,items:e.items.map(e=>Ae(e))}:typeof e==`number`||typeof e==`bigint`||typeof e==`boolean`?{value:e,label:`${e}`}:e}function je(e){return e?e.map(e=>Ae(e)):[]}function Me(e){return e.reduce((e,t)=>`group`in t?{...e,...Me(t.items)}:(e[`${t.value}`]=t,e),{})}var Z={dropdown:`m_88b62a41`,search:`m_985517d8`,options:`m_b2821a6e`,option:`m_92253aa5`,empty:`m_2530cd1d`,header:`m_858f94bd`,footer:`m_82b967cb`,group:`m_254f3e4f`,groupLabel:`m_2bb2e9e5`,chevron:`m_2943220b`,optionsDropdownOption:`m_390b5f4`,optionsDropdownCheckIcon:`m_8ee53fc2`,optionsDropdownCheckPlaceholder:`m_a530ee0a`},Ne={error:null},Pe=p((e,{size:t,color:n})=>({chevron:{"--combobox-chevron-size":ae(t,`combobox-chevron-size`),"--combobox-chevron-color":n?c(n,e):void 0}})),Fe=o(e=>{let t=f(`ComboboxChevron`,Ne,e),{size:n,error:r,style:i,className:a,classNames:o,styles:s,unstyled:c,vars:u,attributes:d,mod:p,...m}=t,h=l({name:`ComboboxChevron`,classes:Z,props:t,style:i,className:a,classNames:o,styles:s,unstyled:c,vars:u,varsResolver:Pe,attributes:d,rootSelector:`chevron`});return(0,q.jsx)(P,{component:`svg`,...m,...h(`chevron`),size:n,viewBox:`0 0 15 15`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,mod:[`combobox-chevron`,{error:r},p],children:(0,q.jsx)(`path`,{d:`M4.93179 5.43179C4.75605 5.60753 4.75605 5.89245 4.93179 6.06819C5.10753 6.24392 5.39245 6.24392 5.56819 6.06819L7.49999 4.13638L9.43179 6.06819C9.60753 6.24392 9.89245 6.24392 10.0682 6.06819C10.2439 5.89245 10.2439 5.60753 10.0682 5.43179L7.81819 3.18179C7.73379 3.0974 7.61933 3.04999 7.49999 3.04999C7.38064 3.04999 7.26618 3.0974 7.18179 3.18179L4.93179 5.43179ZM10.0682 9.56819C10.2439 9.39245 10.2439 9.10753 10.0682 8.93179C9.89245 8.75606 9.60753 8.75606 9.43179 8.93179L7.49999 10.8636L5.56819 8.93179C5.39245 8.75606 5.10753 8.75606 4.93179 8.93179C4.75605 9.10753 4.75605 9.39245 4.93179 9.56819L7.18179 11.8182C7.35753 11.9939 7.64245 11.9939 7.81819 11.8182L10.0682 9.56819Z`,fill:`currentColor`,fillRule:`evenodd`,clipRule:`evenodd`})})});Fe.classes=Z,Fe.varsResolver=Pe,Fe.displayName=`@mantine/core/ComboboxChevron`;var[Ie,Le]=ce(`Combobox component was not found in tree`);function Re({onMouseDown:e,onClick:t,onClear:n,...r}){return(0,q.jsx)(v.ClearButton,{tabIndex:-1,"aria-hidden":!0,...r,onMouseDown:t=>{t.preventDefault(),e?.(t)},onClick:e=>{n(),t?.(e)}})}Re.displayName=`@mantine/core/ComboboxClearButton`;var ze=o(e=>{let{classNames:t,styles:n,className:r,style:i,hidden:a,...o}=f(`ComboboxDropdown`,null,e),s=Le();return(0,q.jsx)(le.Dropdown,{...o,role:`presentation`,"data-hidden":a||void 0,"data-floating-height":s.floatingHeight||void 0,...s.getStyles(`dropdown`,{className:r,style:i,classNames:t,styles:n})})});ze.classes=Z,ze.displayName=`@mantine/core/ComboboxDropdown`;var Be={refProp:`ref`},Ve=o(e=>{let{children:t,refProp:n,ref:r}=f(`ComboboxDropdownTarget`,Be,e);if(Le(),!z(t))throw Error(`Combobox.DropdownTarget component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported`);return(0,q.jsx)(le.Target,{ref:r,refProp:n,children:t})});Ve.displayName=`@mantine/core/ComboboxDropdownTarget`;var He=o(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,...o}=f(`ComboboxEmpty`,null,e);return(0,q.jsx)(P,{...Le().getStyles(`empty`,{className:n,classNames:t,styles:i,style:r}),...o})});He.classes=Z,He.displayName=`@mantine/core/ComboboxEmpty`;function Ue({onKeyDown:e,onClick:t,withKeyboardNavigation:n,withAriaAttributes:r,withExpandedAttribute:i,targetType:a,autoComplete:o}){let s=Le(),[c,l]=(0,K.useState)(null),u=t=>{if(e?.(t),!s.readOnly&&n){if(t.nativeEvent.isComposing)return;if(t.nativeEvent.code===`ArrowDown`&&(t.preventDefault(),s.store.dropdownOpened?l(s.store.selectNextOption()):(s.store.openDropdown(`keyboard`),l(s.store.selectActiveOption()),s.store.updateSelectedOptionIndex(`selected`,{scrollIntoView:!0}))),t.nativeEvent.code===`ArrowUp`&&(t.preventDefault(),s.store.dropdownOpened?l(s.store.selectPreviousOption()):(s.store.openDropdown(`keyboard`),l(s.store.selectActiveOption()),s.store.updateSelectedOptionIndex(`selected`,{scrollIntoView:!0}))),t.nativeEvent.code===`Enter`||t.nativeEvent.code===`NumpadEnter`){if(t.nativeEvent.keyCode===229)return;let e=s.store.getSelectedOptionIndex();s.store.dropdownOpened&&e!==-1?(t.preventDefault(),s.store.clickSelectedOption()):a===`button`&&(t.preventDefault(),s.store.openDropdown(`keyboard`))}t.key===`Escape`&&s.store.closeDropdown(`keyboard`),t.nativeEvent.code===`Space`&&a===`button`&&(t.preventDefault(),s.store.toggleDropdown(`keyboard`))}},d=r?{...i?{role:`combobox`}:{},"aria-haspopup":`listbox`,"aria-expanded":i?!!(s.store.listId&&s.store.dropdownOpened):void 0,"aria-controls":s.store.dropdownOpened&&s.store.listId?s.store.listId:void 0,"aria-activedescendant":s.store.dropdownOpened&&c||void 0,autoComplete:o,"data-expanded":s.store.dropdownOpened||void 0,"data-mantine-stop-propagation":s.store.dropdownOpened||void 0}:{},f=e=>{a===`button`&&e.currentTarget.focus(),t?.(e)};return{...d,onKeyDown:u,onClick:f}}var We={refProp:`ref`,targetType:`input`,withKeyboardNavigation:!0,withAriaAttributes:!0,withExpandedAttribute:!1,autoComplete:`off`},Ge=o(e=>{let{children:t,refProp:n,withKeyboardNavigation:r,withAriaAttributes:i,withExpandedAttribute:a,targetType:o,autoComplete:s,ref:c,...l}=f(`ComboboxEventsTarget`,We,e),u=F(t);if(!u)throw Error(`Combobox.EventsTarget component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported`);let d=Le();return(0,K.cloneElement)(u,{...Ue({targetType:o,withAriaAttributes:i,withKeyboardNavigation:r,withExpandedAttribute:a,onKeyDown:u.props.onKeyDown,onClick:u.props.onClick,autoComplete:s}),...l,[n]:B(c,d.store.targetRef,ue(u))})});Ge.displayName=`@mantine/core/ComboboxEventsTarget`;var Ke=o(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,...o}=f(`ComboboxFooter`,null,e);return(0,q.jsx)(P,{...Le().getStyles(`footer`,{className:n,classNames:t,style:r,styles:i}),...o,onMouseDown:e=>{e.preventDefault()}})});Ke.classes=Z,Ke.displayName=`@mantine/core/ComboboxFooter`;var qe=o(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,children:o,label:s,id:c,...l}=f(`ComboboxGroup`,null,e),u=Le(),d=w(c),p=s!=null&&s!==!1&&s!==``;return(0,q.jsxs)(P,{role:`group`,"aria-labelledby":p?d:void 0,...u.getStyles(`group`,{className:n,classNames:t,style:r,styles:i}),...l,children:[p&&(0,q.jsx)(`div`,{id:d,...u.getStyles(`groupLabel`,{classNames:t,styles:i}),children:s}),o]})});qe.classes=Z,qe.displayName=`@mantine/core/ComboboxGroup`;var Je=o(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,...o}=f(`ComboboxHeader`,null,e);return(0,q.jsx)(P,{...Le().getStyles(`header`,{className:n,classNames:t,style:r,styles:i}),...o,onMouseDown:e=>{e.preventDefault()}})});Je.classes=Z,Je.displayName=`@mantine/core/ComboboxHeader`;function Ye({value:e,valuesDivider:t=`,`,...n}){return(0,q.jsx)(`input`,{type:`hidden`,value:Array.isArray(e)?e.join(t):e?`${e}`:``,...n})}Ye.displayName=`@mantine/core/ComboboxHiddenInput`;var Xe=o(e=>{let t=f(`ComboboxOption`,null,e),{classNames:n,className:r,style:i,styles:a,vars:o,onClick:s,id:c,active:l,onMouseDown:u,onMouseOver:d,disabled:p,selected:m,mod:h,...g}=t,_=Le(),v=(0,K.useId)(),y=c||v;return(0,q.jsx)(P,{..._.getStyles(`option`,{className:r,classNames:n,styles:a,style:i}),...g,id:y,mod:[`combobox-option`,{"combobox-active":l,"combobox-disabled":p,"combobox-selected":m},h],role:`option`,onClick:e=>{p?e.preventDefault():(_.onOptionSubmit?.(t.value,t),s?.(e))},onMouseDown:e=>{e.preventDefault(),u?.(e)},onMouseOver:e=>{_.resetSelectionOnOptionHover&&_.store.resetSelectedOption(),d?.(e)}})});Xe.classes=Z,Xe.displayName=`@mantine/core/ComboboxOption`;var Ze=o(e=>{let{classNames:t,className:n,style:r,styles:i,id:a,onMouseDown:o,labelledBy:s,...c}=f(`ComboboxOptions`,null,e),l=Le(),u=w(a);return(0,K.useEffect)(()=>{l.store.setListId(u)},[u]),(0,q.jsx)(P,{...l.getStyles(`options`,{className:n,style:r,classNames:t,styles:i}),...c,id:u,role:`listbox`,"aria-labelledby":s,onMouseDown:e=>{e.preventDefault(),o?.(e)}})});Ze.classes=Z,Ze.displayName=`@mantine/core/ComboboxOptions`;var Qe={withAriaAttributes:!0,withKeyboardNavigation:!0},$e=o(e=>{let{classNames:t,styles:n,unstyled:r,vars:i,withAriaAttributes:a,onKeyDown:o,onClick:s,withKeyboardNavigation:c,size:l,ref:u,...d}=f(`ComboboxSearch`,Qe,e),p=Le(),m=p.getStyles(`search`),h=Ue({targetType:`input`,withAriaAttributes:a,withKeyboardNavigation:c,withExpandedAttribute:!1,onKeyDown:o,onClick:s,autoComplete:`off`});return(0,q.jsx)(v,{ref:B(u,p.store.searchRef),classNames:[{input:m.className},t],styles:[{input:m.style},n],size:l||p.size,...h,...d,__staticSelector:`Combobox`})});$e.classes=Z,$e.displayName=`@mantine/core/ComboboxSearch`;var et={refProp:`ref`,targetType:`input`,withKeyboardNavigation:!0,withAriaAttributes:!0,withExpandedAttribute:!1,autoComplete:`off`},tt=o(e=>{let{children:t,refProp:n,withKeyboardNavigation:r,withAriaAttributes:i,withExpandedAttribute:a,targetType:o,autoComplete:s,ref:c,...l}=f(`ComboboxTarget`,et,e),u=F(t);if(!u)throw Error(`Combobox.Target component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported`);let d=Le(),p=(0,K.cloneElement)(u,{...Ue({targetType:o,withAriaAttributes:i,withKeyboardNavigation:r,withExpandedAttribute:a,onKeyDown:u.props.onKeyDown,onClick:u.props.onClick,autoComplete:s}),...l});return(0,q.jsx)(le.Target,{refProp:n,ref:B(c,d.store.targetRef),children:p})});tt.displayName=`@mantine/core/ComboboxTarget`;function nt(e,t,n){for(let n=e-1;n>=0;--n)if(!t[n].hasAttribute(`data-combobox-disabled`))return n;if(n){for(let e=t.length-1;e>-1;--e)if(!t[e].hasAttribute(`data-combobox-disabled`))return e}return e}function rt(e,t,n){for(let n=e+1;n{s||(c(!0),i?.(e))},[c,i,s]),_=(0,K.useCallback)((e=`unknown`)=>{s&&(c(!1),r?.(e))},[c,r,s]),v=(0,K.useCallback)((e=`unknown`)=>{s?_(e):g(e)},[_,g,s]),y=(0,K.useCallback)(()=>{let e=Y(f.current),t=Ee(`#${l.current} [data-combobox-selected]`,e);t?.removeAttribute(`data-combobox-selected`),t?.removeAttribute(`aria-selected`)},[]),b=(0,K.useCallback)(e=>{let t=Y(f.current),n=Ee(`#${l.current}`,t),r=n?J(`[data-combobox-option]`,n):null;if(!r)return null;let i=e>=r.length?0:e<0?r.length-1:e;return u.current=i,r?.[i]&&!r[i].hasAttribute(`data-combobox-disabled`)?(y(),r[i].setAttribute(`data-combobox-selected`,`true`),r[i].setAttribute(`aria-selected`,`true`),r[i].scrollIntoView({block:`nearest`,behavior:o}),r[i].id):null},[o,y]),x=(0,K.useCallback)(()=>{let e=Y(f.current),t=Ee(`#${l.current} [data-combobox-active]`,e);if(t){let n=J(`#${l.current} [data-combobox-option]`,e).findIndex(e=>e===t);return b(n)}return b(0)},[b]),S=(0,K.useCallback)(()=>{let e=Y(f.current),t=J(`#${l.current} [data-combobox-option]`,e);return b(rt(u.current,t,a))},[b,a]),C=(0,K.useCallback)(()=>{let e=Y(f.current),t=J(`#${l.current} [data-combobox-option]`,e);return b(nt(u.current,t,a))},[b,a]),w=(0,K.useCallback)(()=>{let e=Y(f.current),t=J(`#${l.current} [data-combobox-option]`,e);return b(it(t))},[b]),T=(0,K.useCallback)((e=`selected`,t)=>{if(typeof e==`number`){u.current=e;let n=Y(f.current),r=J(`#${l.current} [data-combobox-option]`,n);t?.scrollIntoView&&r[e]?.scrollIntoView({block:`nearest`,behavior:o});return}h.current=window.setTimeout(()=>{let n=Y(f.current),r=J(`#${l.current} [data-combobox-option]`,n),i=r.findIndex(t=>t.hasAttribute(`data-combobox-${e}`));u.current=i,t?.scrollIntoView&&r[i]?.scrollIntoView({block:`nearest`,behavior:o})},0)},[]),E=(0,K.useCallback)(()=>{u.current=-1,y()},[y]),ee=(0,K.useCallback)(()=>{let e=Y(f.current);(J(`#${l.current} [data-combobox-option]`,e)?.[u.current])?.click()},[]),D=(0,K.useCallback)(e=>{l.current=e},[]),te=(0,K.useCallback)(()=>{p.current=window.setTimeout(()=>d.current?.focus(),0)},[]),O=(0,K.useCallback)(()=>{m.current=window.setTimeout(()=>f.current?.focus(),0)},[]),k=(0,K.useCallback)(()=>u.current,[]);return(0,K.useEffect)(()=>()=>{window.clearTimeout(p.current),window.clearTimeout(m.current),window.clearTimeout(h.current)},[]),{dropdownOpened:s,openDropdown:g,closeDropdown:_,toggleDropdown:v,selectedOptionIndex:u.current,getSelectedOptionIndex:k,selectOption:b,selectFirstOption:w,selectActiveOption:x,selectNextOption:S,selectPreviousOption:C,resetSelectedOption:E,updateSelectedOptionIndex:T,listId:l.current,setListId:D,clickSelectedOption:ee,searchRef:d,focusSearchInput:te,targetRef:f,focusTarget:O}}var ot={keepMounted:!0,keepMountedMode:`display-none`,withinPortal:!0,resetSelectionOnOptionHover:!1,width:`target`,transitionProps:{transition:`fade`,duration:0},size:`sm`},st=p((e,{size:t,dropdownPadding:n})=>({options:{"--combobox-option-fz":te(t),"--combobox-option-padding":ae(t,`combobox-option-padding`)},dropdown:{"--combobox-padding":n===void 0?void 0:C(n),"--combobox-option-fz":te(t),"--combobox-option-padding":ae(t,`combobox-option-padding`)}})),Q=e=>{let t=f(`Combobox`,ot,e),{classNames:n,styles:r,unstyled:i,children:a,store:o,vars:s,onOptionSubmit:c,onClose:u,size:d,dropdownPadding:p,resetSelectionOnOptionHover:m,__staticSelector:h,readOnly:g,attributes:_,floatingHeight:v,middlewares:y,...b}=t,x=v===`viewport`?{...y,flip:!1,size:{...typeof y?.size==`object`?y.size:{},padding:typeof y?.size==`object`&&y.size.padding!==void 0?y.size.padding:10,apply:({availableHeight:e,availableWidth:t,elements:n,...r})=>{n.floating.style.setProperty(`--combobox-floating-max-height`,`${e}px`);let i=y?.size;typeof i==`object`&&i.apply?i.apply({availableHeight:e,availableWidth:t,elements:n,...r}):i&&Object.assign(n.floating.style,{maxWidth:`${t}px`,maxHeight:`${e}px`})}}}:y,S=at(),C=o||S,w=l({name:h||`Combobox`,classes:Z,props:t,classNames:n,styles:r,unstyled:i,attributes:_,vars:s,varsResolver:st}),T=()=>{u?.(),C.closeDropdown()};return(0,q.jsx)(Ie,{value:{getStyles:w,store:C,onOptionSubmit:c,size:d,resetSelectionOnOptionHover:m,readOnly:g,floatingHeight:v},children:(0,q.jsx)(le,{opened:C.dropdownOpened,...b,middlewares:x,onChange:e=>!e&&T(),withRoles:!1,unstyled:i,children:a})})};Q.extend=e=>e,Q.classes=Z,Q.varsResolver=st,Q.displayName=`@mantine/core/Combobox`,Q.Target=tt,Q.Dropdown=ze,Q.Options=Ze,Q.Option=Xe,Q.Search=$e,Q.Empty=He,Q.Chevron=Fe,Q.Footer=Ke,Q.Header=Je,Q.EventsTarget=Ge,Q.DropdownTarget=Ve,Q.Group=qe,Q.ClearButton=Re,Q.HiddenInput=Ye;function ct(e){return`group`in e}function lt({options:e,search:t,limit:n}){let r=t.trim().toLowerCase(),i=[];for(let a=0;a0)return!1;return!0}function dt(e,t=new Set){if(Array.isArray(e))for(let n of e)if(ct(n))dt(n.items,t);else{if(n.value===void 0)throw Error(`[@mantine/core] Each option must have value property`);if(t.has(n.value))throw Error(`[@mantine/core] Duplicate options are not supported. Option with value "${n.value}" was provided more than once`);t.add(n.value)}}function ft(e,t){return Array.isArray(e)?e.includes(t):e===t}function pt({data:e,withCheckIcon:t,withAlignedLabels:n,value:r,checkIconPosition:i,unstyled:a,renderOption:o}){if(!ct(e)){let s=ft(r,e.value),c=t&&(s?(0,q.jsx)(G,{className:Z.optionsDropdownCheckIcon}):n?(0,q.jsx)(`div`,{className:Z.optionsDropdownCheckPlaceholder}):null),l=(0,q.jsxs)(q.Fragment,{children:[i===`left`&&c,(0,q.jsx)(`span`,{children:e.label}),i===`right`&&c]});return(0,q.jsx)(Q.Option,{value:e.value,disabled:e.disabled,className:_({[Z.optionsDropdownOption]:!a}),"data-reverse":i===`right`||void 0,"data-checked":s||void 0,"aria-selected":s,active:s,children:typeof o==`function`?o({option:e,checked:s}):l})}let s=e.items.map(e=>(0,q.jsx)(pt,{data:e,value:r,unstyled:a,withCheckIcon:t,withAlignedLabels:n,checkIconPosition:i,renderOption:o},`${e.value}`));return(0,q.jsx)(Q.Group,{label:e.group,children:s})}function mt({data:e,hidden:t,hiddenWhenEmpty:n,filter:r,search:i,limit:a,maxDropdownHeight:o,floatingHeight:s,withScrollArea:c=!0,filterOptions:l=!0,withCheckIcon:u=!1,withAlignedLabels:d=!1,value:f,checkIconPosition:p,nothingFoundMessage:m,unstyled:h,labelId:g,renderOption:_,scrollAreaProps:v,"aria-label":y}){let b=Le();dt(e);let x=typeof i==`string`?(r||lt)({options:e,search:l?i:``,limit:a??1/0}):e,S=ut(x),C=x.map((e,t)=>(0,q.jsx)(pt,{data:e,withCheckIcon:u,withAlignedLabels:d,value:f,checkIconPosition:p,unstyled:h,renderOption:_},ct(e)?`group-${typeof e.group==`string`?e.group:t}`:`${e.value}`));return(0,q.jsx)(Q.Dropdown,{hidden:t||n&&S,"data-composed":!0,children:(0,q.jsxs)(Q.Options,{labelledBy:g,"aria-label":y,children:[c?(0,q.jsx)(Ce.Autosize,{mah:(s??b.floatingHeight)===`viewport`?`var(--combobox-floating-options-max-height)`:o??220,type:`scroll`,scrollbarSize:`var(--combobox-padding)`,offsetScrollbars:`y`,...v,children:C}):C,S&&m&&(0,q.jsx)(Q.Empty,{children:m})]})})}var ht={root:`m_347db0ec`,"root--dot":`m_fbd81e3d`,label:`m_5add502a`,section:`m_91fdda9b`},gt=p((e,{radius:t,color:n,gradient:r,variant:i,size:a,autoContrast:o,circle:s})=>{let l=e.variantColorResolver({color:n||e.primaryColor,theme:e,gradient:r,variant:i||`filled`,autoContrast:o});return{root:{"--badge-height":ae(a,`badge-height`),"--badge-padding-x":ae(a,`badge-padding-x`),"--badge-fz":ae(a,`badge-fz`),"--badge-radius":s||t===void 0?void 0:y(t),"--badge-bg":n||i?l.background:void 0,"--badge-color":n||i?l.color:void 0,"--badge-bd":n||i?l.border:void 0,"--badge-dot-color":i===`dot`?c(n,e):void 0}}}),_t=h(e=>{let t=f(`Badge`,null,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,radius:c,color:u,gradient:d,leftSection:p,rightSection:m,children:h,variant:g,fullWidth:_,autoContrast:v,circle:y,mod:b,attributes:x,...S}=t,C=l({name:`Badge`,props:t,classes:ht,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:x,vars:s,varsResolver:gt});return(0,q.jsxs)(P,{variant:g,mod:[{block:_,circle:y,"with-right-section":!!m,"with-left-section":!!p},b],...C(`root`,{variant:g}),...S,children:[p&&(0,q.jsx)(`span`,{...C(`section`),"data-position":`left`,children:p}),(0,q.jsx)(`span`,{...C(`label`),children:h}),m&&(0,q.jsx)(`span`,{...C(`section`),"data-position":`right`,children:m})]})});_t.classes=ht,_t.varsResolver=gt,_t.displayName=`@mantine/core/Badge`;function vt(e=`top-end`,t=0){let n={"--indicator-top":void 0,"--indicator-bottom":void 0,"--indicator-left":void 0,"--indicator-right":void 0,"--indicator-translate-x":void 0,"--indicator-translate-y":void 0},r=typeof t==`number`?t:t.x,i=typeof t==`number`?t:t.y,a=C(r),o=C(i),[s,c]=e.split(`-`);return s===`top`&&(n[`--indicator-top`]=o,n[`--indicator-translate-y`]=`-50%`),s===`middle`&&(n[`--indicator-top`]=`50%`,n[`--indicator-translate-y`]=`-50%`),s===`bottom`&&(n[`--indicator-bottom`]=o,n[`--indicator-translate-y`]=`50%`),c===`start`&&(n[`--indicator-left`]=a,n[`--indicator-translate-x`]=`-50%`),c===`center`&&(n[`--indicator-left`]=`50%`,n[`--indicator-translate-x`]=`-50%`),c===`end`&&(n[`--indicator-right`]=a,n[`--indicator-translate-x`]=`50%`),n}var yt={root:`m_e5262200`,indicator:`m_760d1fb1`,processing:`m_885901b1`},bt={position:`top-end`,offset:0,showZero:!0},xt=p((e,{color:t,position:n,offset:r,size:i,radius:a,zIndex:o,autoContrast:s})=>({root:{"--indicator-color":t?c(t,e):void 0,"--indicator-text-color":De(s,e)?fe({color:t,theme:e,autoContrast:s}):void 0,"--indicator-size":C(i),"--indicator-radius":a===void 0?void 0:y(a),"--indicator-z-index":o?.toString(),...vt(n,r)}})),St=o(e=>{let t=f(`Indicator`,bt,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,children:c,position:u,offset:d,inline:p,label:m,radius:h,color:g,withBorder:_,disabled:v,processing:y,zIndex:b,autoContrast:x,maxValue:S,showZero:C,mod:w,attributes:T,...E}=t,ee=l({name:`Indicator`,classes:yt,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:T,vars:s,varsResolver:xt}),D=!C&&(m===0||m===`0`),te=S!==void 0&&typeof m==`number`&&m>S?`${S}+`:m;return(0,q.jsxs)(P,{...ee(`root`),mod:[{inline:p},w],...E,children:[!v&&!D&&(0,q.jsx)(P,{mod:{"with-label":!!m,"with-border":_,processing:y},...ee(`indicator`),children:te}),c]})});St.classes=yt,St.varsResolver=xt,St.displayName=`@mantine/core/Indicator`;var Ct={size:`sm`,withCheckIcon:!0,allowDeselect:!0,checkIconPosition:`left`,openOnFocus:!0},wt=a(e=>{let t=f([`Input`,`InputWrapper`,`Select`],Ct,e),{classNames:n,styles:r,unstyled:i,vars:a,dropdownOpened:o,defaultDropdownOpened:s,onDropdownClose:c,onDropdownOpen:l,onFocus:d,onBlur:p,onClick:m,onChange:h,data:g,value:_,defaultValue:v,selectFirstOptionOnChange:y,selectFirstOptionOnDropdownOpen:b,onOptionSubmit:x,comboboxProps:S,readOnly:C,disabled:T,filter:ee,limit:D,withScrollArea:te,maxDropdownHeight:O,floatingHeight:k,size:A,searchable:j,rightSection:M,checkIconPosition:ne,withCheckIcon:re,withAlignedLabels:N,nothingFoundMessage:ie,name:ae,form:oe,searchValue:se,defaultSearchValue:P,onSearchChange:ce,allowDeselect:le,error:ue,rightSectionPointerEvents:F,id:I,clearable:fe,clearSectionMode:pe,clearButtonProps:me,hiddenInputProps:he,renderOption:ge,onClear:_e,autoComplete:ve,scrollAreaProps:L,__defaultRightSection:R,__clearSection:ye,__clearable:z,chevronColor:B,autoSelectOnBlur:be,openOnFocus:V,attributes:H,...U}=t,W=(0,K.useMemo)(()=>je(g),[g]),xe=(0,K.useRef)({}),Se=(0,K.useMemo)(()=>Me(W),[W]),Ce=w(I),[G,we,Ee]=de({value:_,defaultValue:v,finalValue:null,onChange:h}),J=G==null?void 0:`${G}`in Se?Se[`${G}`]:xe.current[`${G}`],Y=Te(J),[De,Oe,ke]=de({value:se,defaultValue:P,finalValue:J?J.label:``,onChange:ce}),X=at({opened:o,defaultOpened:s,onDropdownOpen:()=>{l?.(),b?X.selectFirstOption():X.updateSelectedOptionIndex(`active`,{scrollIntoView:!0})},onDropdownClose:()=>{c?.(),setTimeout(X.resetSelectedOption,0)}}),Ae=e=>{Oe(e),X.resetSelectedOption()},{resolvedClassNames:Z,resolvedStyles:Ne}=u({props:t,styles:r,classNames:n});(0,K.useEffect)(()=>{y&&X.selectFirstOption()},[y,De]),(0,K.useEffect)(()=>{_===null&&Ae(``),_!=null&&J&&(Y?.value!==J.value||Y?.label!==J.label)&&Ae(J.label)},[_,J]),(0,K.useEffect)(()=>{!Ee&&!ke&&Ae(G==null?``:`${G}`in Se?Se[`${G}`]?.label:xe.current[`${G}`]?.label||``)},[Se,G]),(0,K.useEffect)(()=>{G&&`${G}`in Se&&(xe.current[`${G}`]=Se[`${G}`])},[Se,G]);let Pe=(0,q.jsx)(Q.ClearButton,{...me,onClear:()=>{we(null,null),Ae(``),_e?.()}}),Fe=fe&&G!=null&&!T&&!C;return(0,q.jsxs)(q.Fragment,{children:[(0,q.jsxs)(Q,{store:X,__staticSelector:`Select`,classNames:Z,styles:Ne,unstyled:i,readOnly:C,size:A,attributes:H,floatingHeight:k,keepMounted:be,onOptionSubmit:e=>{x?.(e);let t=le&&`${Se[e].value}`==`${G}`?null:Se[e],n=t?t.value:null;n!==G&&we(n,t),!Ee&&Ae(n==null?``:t?.label||``),X.closeDropdown()},...S,children:[(0,q.jsx)(Q.Target,{targetType:j?`input`:`button`,autoComplete:ve,withExpandedAttribute:!0,children:(0,q.jsx)(E,{id:Ce,__defaultRightSection:(0,q.jsx)(Q.Chevron,{size:A,error:ue,unstyled:i,color:B}),__clearSection:Pe,__clearable:Fe,__clearSectionMode:pe,rightSection:M,rightSectionPointerEvents:F||`none`,...U,size:A,__staticSelector:`Select`,disabled:T,readOnly:C||!j,value:De,onChange:e=>{Ae(e.currentTarget.value),X.openDropdown(),y&&X.selectFirstOption()},onFocus:e=>{V&&j&&X.openDropdown(),d?.(e)},onBlur:e=>{be&&X.clickSelectedOption(),j&&X.closeDropdown();let t=G!=null&&(`${G}`in Se?Se[`${G}`]:xe.current[`${G}`]);Ae(t&&t.label||``),p?.(e)},onClick:e=>{j?X.openDropdown():X.toggleDropdown(),m?.(e)},classNames:Z,styles:Ne,unstyled:i,pointer:!j,error:ue,attributes:H})}),(0,q.jsx)(mt,{data:W,hidden:C||T,filter:ee,search:De,limit:D,hiddenWhenEmpty:!ie,withScrollArea:te,maxDropdownHeight:O,filterOptions:!!j&&J?.label!==De,value:G,checkIconPosition:ne,withCheckIcon:re,withAlignedLabels:N,nothingFoundMessage:ie,unstyled:i,labelId:U.label?`${Ce}-label`:void 0,"aria-label":U.label?void 0:U[`aria-label`],renderOption:ge,scrollAreaProps:L})]}),(0,q.jsx)(Q.HiddenInput,{value:G,name:ae,form:oe,disabled:T,...he})]})});wt.classes={...E.classes,...Q.classes},wt.displayName=`@mantine/core/Select`;var[Tt,Et]=ce(`Table component was not found in the tree`),Dt={table:`m_b23fa0ef`,th:`m_4e7aa4f3`,tr:`m_4e7aa4fd`,td:`m_4e7aa4ef`,tbody:`m_b2404537`,thead:`m_b242d975`,caption:`m_9e5a3ac7`,scrollContainer:`m_a100c15`,scrollContainerInner:`m_62259741`};function Ot(e,t){if(!t)return;let n={};return t.columnBorder&&e.withColumnBorders&&(n[`data-with-column-border`]=!0),t.rowBorder&&e.withRowBorders&&(n[`data-with-row-border`]=!0),t.striped&&e.striped&&(n[`data-striped`]=e.striped),t.highlightOnHover&&e.highlightOnHover&&(n[`data-hover`]=!0),t.captionSide&&e.captionSide&&(n[`data-side`]=e.captionSide),t.stickyHeader&&e.stickyHeader&&(n[`data-sticky`]=!0),n}function kt(e,t){let n=`Table${e.charAt(0).toUpperCase()}${e.slice(1)}`,r=o(r=>{let i=f(n,{},r),{classNames:a,className:o,style:s,styles:c,...l}=i,u=Et();return(0,q.jsx)(P,{component:e,...Ot(u,t),...u.getStyles(e,{className:o,classNames:a,style:s,styles:c,props:i}),...l})});return r.displayName=`@mantine/core/${n}`,r.classes=Dt,r}var At=kt(`th`,{columnBorder:!0}),jt=kt(`td`,{columnBorder:!0}),Mt=kt(`tr`,{rowBorder:!0,striped:!0,highlightOnHover:!0}),Nt=kt(`thead`,{stickyHeader:!0}),Pt=kt(`tbody`),Ft=kt(`tfoot`),It=kt(`caption`,{captionSide:!0}),Lt={type:`scrollarea`},Rt=p((e,{minWidth:t,maxHeight:n,type:r})=>({scrollContainer:{"--table-min-width":C(t),"--table-max-height":C(n),"--table-overflow":r===`native`?`auto`:void 0}})),zt=o(e=>{let t=f(`TableScrollContainer`,Lt,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,children:c,minWidth:u,maxHeight:d,type:p,scrollAreaProps:m,attributes:h,...g}=t,_=l({name:`TableScrollContainer`,classes:Dt,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:h,vars:s,varsResolver:Rt,rootSelector:`scrollContainer`});return(0,q.jsx)(P,{component:p===`scrollarea`?Ce:`div`,...p===`scrollarea`?d?{offsetScrollbars:`xy`,...m}:{offsetScrollbars:`x`,...m}:{},..._(`scrollContainer`),...g,children:(0,q.jsx)(`div`,{..._(`scrollContainerInner`),children:c})})});zt.classes=Dt,zt.varsResolver=Rt,zt.displayName=`@mantine/core/TableScrollContainer`;function Bt({data:e}){return(0,q.jsxs)(q.Fragment,{children:[e.caption&&(0,q.jsx)(It,{children:e.caption}),e.head&&(0,q.jsx)(Nt,{children:(0,q.jsx)(Mt,{children:e.head.map((e,t)=>(0,q.jsx)(At,{children:e},t))})}),e.body&&(0,q.jsx)(Pt,{children:e.body.map((e,t)=>(0,q.jsx)(Mt,{children:e.map((e,t)=>(0,q.jsx)(jt,{children:e},t))},t))}),e.foot&&(0,q.jsx)(Ft,{children:(0,q.jsx)(Mt,{children:e.foot.map((e,t)=>(0,q.jsx)(At,{children:e},t))})})]})}Bt.displayName=`@mantine/core/TableDataRenderer`;var Vt={withRowBorders:!0,verticalSpacing:7},Ht=p((e,{layout:t,captionSide:n,horizontalSpacing:r,verticalSpacing:i,borderColor:a,stripedColor:o,highlightOnHoverColor:s,striped:l,highlightOnHover:u,stickyHeaderOffset:d,stickyHeader:f})=>({table:{"--table-layout":t,"--table-caption-side":n,"--table-horizontal-spacing":S(r),"--table-vertical-spacing":S(i),"--table-border-color":a?c(a,e):void 0,"--table-striped-color":l&&o?c(o,e):void 0,"--table-highlight-on-hover-color":u&&s?c(s,e):void 0,"--table-sticky-header-offset":f?C(d):void 0}})),Ut=o(e=>{let t=f(`Table`,Vt,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,horizontalSpacing:c,verticalSpacing:u,captionSide:d,stripedColor:p,highlightOnHoverColor:m,striped:h,highlightOnHover:g,withColumnBorders:_,withRowBorders:v,withTableBorder:y,borderColor:b,layout:x,data:S,children:C,stickyHeader:w,stickyHeaderOffset:T,mod:E,tabularNums:ee,attributes:D,...te}=t,O=l({name:`Table`,props:t,className:r,style:i,classes:Dt,classNames:n,styles:a,unstyled:o,attributes:D,rootSelector:`table`,vars:s,varsResolver:Ht});return(0,q.jsx)(Tt,{value:{getStyles:O,stickyHeader:w,striped:h===!0?`odd`:h||void 0,highlightOnHover:g,withColumnBorders:_,withRowBorders:v,captionSide:d||`bottom`},children:(0,q.jsx)(P,{component:`table`,mod:[{"data-with-table-border":y,"data-tabular-nums":ee},E],...O(`table`),...te,children:C||!!S&&(0,q.jsx)(Bt,{data:S})})})});Ut.classes=Dt,Ut.varsResolver=Ht,Ut.displayName=`@mantine/core/Table`,Ut.Td=jt,Ut.Th=At,Ut.Tr=Mt,Ut.Thead=Nt,Ut.Tbody=Pt,Ut.Tfoot=Ft,Ut.Caption=It,Ut.ScrollContainer=zt,Ut.DataRenderer=Bt;var Wt=new Map([[`bold`,K.createElement(K.Fragment,null,K.createElement(`path`,{d:`M244,56v48a12,12,0,0,1-12,12H184a12,12,0,1,1,0-24H201.1l-19-17.38c-.13-.12-.26-.24-.38-.37A76,76,0,1,0,127,204h1a75.53,75.53,0,0,0,52.15-20.72,12,12,0,0,1,16.49,17.45A99.45,99.45,0,0,1,128,228h-1.37A100,100,0,1,1,198.51,57.06L220,76.72V56a12,12,0,0,1,24,0Z`}))],[`duotone`,K.createElement(K.Fragment,null,K.createElement(`path`,{d:`M216,128a88,88,0,1,1-88-88A88,88,0,0,1,216,128Z`,opacity:`0.2`}),K.createElement(`path`,{d:`M240,56v48a8,8,0,0,1-8,8H184a8,8,0,0,1,0-16H211.4L184.81,71.64l-.25-.24a80,80,0,1,0-1.67,114.78,8,8,0,0,1,11,11.63A95.44,95.44,0,0,1,128,224h-1.32A96,96,0,1,1,195.75,60L224,85.8V56a8,8,0,1,1,16,0Z`}))],[`fill`,K.createElement(K.Fragment,null,K.createElement(`path`,{d:`M240,56v48a8,8,0,0,1-8,8H184a8,8,0,0,1-5.66-13.66l17-17-10.55-9.65-.25-.24a80,80,0,1,0-1.67,114.78,8,8,0,1,1,11,11.63A95.44,95.44,0,0,1,128,224h-1.32A96,96,0,1,1,195.75,60l10.93,10L226.34,50.3A8,8,0,0,1,240,56Z`}))],[`light`,K.createElement(K.Fragment,null,K.createElement(`path`,{d:`M238,56v48a6,6,0,0,1-6,6H184a6,6,0,0,1,0-12h32.55l-30.38-27.8c-.06-.06-.12-.13-.19-.19a82,82,0,1,0-1.7,117.65,6,6,0,0,1,8.24,8.73A93.46,93.46,0,0,1,128,222h-1.28A94,94,0,1,1,194.37,61.4L226,90.35V56a6,6,0,1,1,12,0Z`}))],[`regular`,K.createElement(K.Fragment,null,K.createElement(`path`,{d:`M240,56v48a8,8,0,0,1-8,8H184a8,8,0,0,1,0-16H211.4L184.81,71.64l-.25-.24a80,80,0,1,0-1.67,114.78,8,8,0,0,1,11,11.63A95.44,95.44,0,0,1,128,224h-1.32A96,96,0,1,1,195.75,60L224,85.8V56a8,8,0,1,1,16,0Z`}))],[`thin`,K.createElement(K.Fragment,null,K.createElement(`path`,{d:`M236,56v48a4,4,0,0,1-4,4H184a4,4,0,0,1,0-8h37.7L187.53,68.69l-.13-.12a84,84,0,1,0-1.75,120.51,4,4,0,0,1,5.5,5.82A91.43,91.43,0,0,1,128,220h-1.26A92,92,0,1,1,193,62.84l35,32.05V56a4,4,0,1,1,8,0Z`}))]]),Gt=new Map([[`bold`,K.createElement(K.Fragment,null,K.createElement(`path`,{d:`M216.49,104.49l-80,80a12,12,0,0,1-17,0l-80-80a12,12,0,0,1,17-17L128,159l71.51-71.52a12,12,0,0,1,17,17Z`}))],[`duotone`,K.createElement(K.Fragment,null,K.createElement(`path`,{d:`M208,96l-80,80L48,96Z`,opacity:`0.2`}),K.createElement(`path`,{d:`M215.39,92.94A8,8,0,0,0,208,88H48a8,8,0,0,0-5.66,13.66l80,80a8,8,0,0,0,11.32,0l80-80A8,8,0,0,0,215.39,92.94ZM128,164.69,67.31,104H188.69Z`}))],[`fill`,K.createElement(K.Fragment,null,K.createElement(`path`,{d:`M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80A8,8,0,0,1,48,88H208a8,8,0,0,1,5.66,13.66Z`}))],[`light`,K.createElement(K.Fragment,null,K.createElement(`path`,{d:`M212.24,100.24l-80,80a6,6,0,0,1-8.48,0l-80-80a6,6,0,0,1,8.48-8.48L128,167.51l75.76-75.75a6,6,0,0,1,8.48,8.48Z`}))],[`regular`,K.createElement(K.Fragment,null,K.createElement(`path`,{d:`M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80A8,8,0,0,1,53.66,90.34L128,164.69l74.34-74.35a8,8,0,0,1,11.32,11.32Z`}))],[`thin`,K.createElement(K.Fragment,null,K.createElement(`path`,{d:`M210.83,98.83l-80,80a4,4,0,0,1-5.66,0l-80-80a4,4,0,0,1,5.66-5.66L128,170.34l77.17-77.17a4,4,0,1,1,5.66,5.66Z`}))]]),Kt=new Map([[`bold`,K.createElement(K.Fragment,null,K.createElement(`path`,{d:`M28,64A12,12,0,0,1,40,52H216a12,12,0,0,1,0,24H40A12,12,0,0,1,28,64Zm12,76h64a12,12,0,0,0,0-24H40a12,12,0,0,0,0,24Zm80,40H40a12,12,0,0,0,0,24h80a12,12,0,0,0,0-24Zm120.49,20.49a12,12,0,0,1-17,0l-18.08-18.08a44,44,0,1,1,17-17l18.08,18.07A12,12,0,0,1,240.49,200.49ZM184,164a20,20,0,1,0-20-20A20,20,0,0,0,184,164Z`}))],[`duotone`,K.createElement(K.Fragment,null,K.createElement(`path`,{d:`M216,144a32,32,0,1,1-32-32A32,32,0,0,1,216,144Z`,opacity:`0.2`}),K.createElement(`path`,{d:`M32,64a8,8,0,0,1,8-8H216a8,8,0,0,1,0,16H40A8,8,0,0,1,32,64Zm8,72h72a8,8,0,0,0,0-16H40a8,8,0,0,0,0,16Zm88,48H40a8,8,0,0,0,0,16h88a8,8,0,0,0,0-16Zm109.66,13.66a8,8,0,0,1-11.32,0L206,177.36A40,40,0,1,1,217.36,166l20.3,20.3A8,8,0,0,1,237.66,197.66ZM184,168a24,24,0,1,0-24-24A24,24,0,0,0,184,168Z`}))],[`fill`,K.createElement(K.Fragment,null,K.createElement(`path`,{d:`M32,64a8,8,0,0,1,8-8H216a8,8,0,0,1,0,16H40A8,8,0,0,1,32,64Zm8,72h72a8,8,0,0,0,0-16H40a8,8,0,0,0,0,16Zm88,48H40a8,8,0,0,0,0,16h88a8,8,0,0,0,0-16Zm109.66,2.34L217.36,166A40,40,0,1,0,206,177.36l20.3,20.3a8,8,0,0,0,11.32-11.32Z`}))],[`light`,K.createElement(K.Fragment,null,K.createElement(`path`,{d:`M34,64a6,6,0,0,1,6-6H216a6,6,0,0,1,0,12H40A6,6,0,0,1,34,64Zm6,70h72a6,6,0,0,0,0-12H40a6,6,0,0,0,0,12Zm88,52H40a6,6,0,0,0,0,12h88a6,6,0,0,0,0-12Zm108.24,10.24a6,6,0,0,1-8.48,0l-21.49-21.48a38.06,38.06,0,1,1,8.49-8.49l21.48,21.49A6,6,0,0,1,236.24,196.24ZM184,170a26,26,0,1,0-26-26A26,26,0,0,0,184,170Z`}))],[`regular`,K.createElement(K.Fragment,null,K.createElement(`path`,{d:`M32,64a8,8,0,0,1,8-8H216a8,8,0,0,1,0,16H40A8,8,0,0,1,32,64Zm8,72h72a8,8,0,0,0,0-16H40a8,8,0,0,0,0,16Zm88,48H40a8,8,0,0,0,0,16h88a8,8,0,0,0,0-16Zm109.66,13.66a8,8,0,0,1-11.32,0L206,177.36A40,40,0,1,1,217.36,166l20.3,20.3A8,8,0,0,1,237.66,197.66ZM184,168a24,24,0,1,0-24-24A24,24,0,0,0,184,168Z`}))],[`thin`,K.createElement(K.Fragment,null,K.createElement(`path`,{d:`M36,64a4,4,0,0,1,4-4H216a4,4,0,0,1,0,8H40A4,4,0,0,1,36,64Zm4,68h72a4,4,0,0,0,0-8H40a4,4,0,0,0,0,8Zm88,56H40a4,4,0,0,0,0,8h88a4,4,0,0,0,0-8Zm106.83,6.83a4,4,0,0,1-5.66,0l-22.72-22.72a36.06,36.06,0,1,1,5.66-5.66l22.72,22.72A4,4,0,0,1,234.83,194.83ZM184,172a28,28,0,1,0-28-28A28,28,0,0,0,184,172Z`}))]]),qt=new Map([[`bold`,K.createElement(K.Fragment,null,K.createElement(`path`,{d:`M199,125.31l-49.88-18.39L130.69,57a19.92,19.92,0,0,0-37.38,0L74.92,106.92,25,125.31a19.92,19.92,0,0,0,0,37.38l49.88,18.39L93.31,231a19.92,19.92,0,0,0,37.38,0l18.39-49.88L199,162.69a19.92,19.92,0,0,0,0-37.38Zm-63.38,35.16a12,12,0,0,0-7.11,7.11L112,212.28l-16.47-44.7a12,12,0,0,0-7.11-7.11L43.72,144l44.7-16.47a12,12,0,0,0,7.11-7.11L112,75.72l16.47,44.7a12,12,0,0,0,7.11,7.11L180.28,144ZM140,40a12,12,0,0,1,12-12h12V16a12,12,0,0,1,24,0V28h12a12,12,0,0,1,0,24H188V64a12,12,0,0,1-24,0V52H152A12,12,0,0,1,140,40ZM252,88a12,12,0,0,1-12,12h-4v4a12,12,0,0,1-24,0v-4h-4a12,12,0,0,1,0-24h4V72a12,12,0,0,1,24,0v4h4A12,12,0,0,1,252,88Z`}))],[`duotone`,K.createElement(K.Fragment,null,K.createElement(`path`,{d:`M194.82,151.43l-55.09,20.3-20.3,55.09a7.92,7.92,0,0,1-14.86,0l-20.3-55.09-55.09-20.3a7.92,7.92,0,0,1,0-14.86l55.09-20.3,20.3-55.09a7.92,7.92,0,0,1,14.86,0l20.3,55.09,55.09,20.3A7.92,7.92,0,0,1,194.82,151.43Z`,opacity:`0.2`}),K.createElement(`path`,{d:`M197.58,129.06,146,110l-19-51.62a15.92,15.92,0,0,0-29.88,0L78,110l-51.62,19a15.92,15.92,0,0,0,0,29.88L78,178l19,51.62a15.92,15.92,0,0,0,29.88,0L146,178l51.62-19a15.92,15.92,0,0,0,0-29.88ZM137,164.22a8,8,0,0,0-4.74,4.74L112,223.85,91.78,169A8,8,0,0,0,87,164.22L32.15,144,87,123.78A8,8,0,0,0,91.78,119L112,64.15,132.22,119a8,8,0,0,0,4.74,4.74L191.85,144ZM144,40a8,8,0,0,1,8-8h16V16a8,8,0,0,1,16,0V32h16a8,8,0,0,1,0,16H184V64a8,8,0,0,1-16,0V48H152A8,8,0,0,1,144,40ZM248,88a8,8,0,0,1-8,8h-8v8a8,8,0,0,1-16,0V96h-8a8,8,0,0,1,0-16h8V72a8,8,0,0,1,16,0v8h8A8,8,0,0,1,248,88Z`}))],[`fill`,K.createElement(K.Fragment,null,K.createElement(`path`,{d:`M208,144a15.78,15.78,0,0,1-10.42,14.94L146,178l-19,51.62a15.92,15.92,0,0,1-29.88,0L78,178l-51.62-19a15.92,15.92,0,0,1,0-29.88L78,110l19-51.62a15.92,15.92,0,0,1,29.88,0L146,110l51.62,19A15.78,15.78,0,0,1,208,144ZM152,48h16V64a8,8,0,0,0,16,0V48h16a8,8,0,0,0,0-16H184V16a8,8,0,0,0-16,0V32H152a8,8,0,0,0,0,16Zm88,32h-8V72a8,8,0,0,0-16,0v8h-8a8,8,0,0,0,0,16h8v8a8,8,0,0,0,16,0V96h8a8,8,0,0,0,0-16Z`}))],[`light`,K.createElement(K.Fragment,null,K.createElement(`path`,{d:`M196.89,130.94,144.4,111.6,125.06,59.11a13.92,13.92,0,0,0-26.12,0L79.6,111.6,27.11,130.94a13.92,13.92,0,0,0,0,26.12L79.6,176.4l19.34,52.49a13.92,13.92,0,0,0,26.12,0L144.4,176.4l52.49-19.34a13.92,13.92,0,0,0,0-26.12Zm-4.15,14.86-55.08,20.3a6,6,0,0,0-3.56,3.56l-20.3,55.08a1.92,1.92,0,0,1-3.6,0L89.9,169.66a6,6,0,0,0-3.56-3.56L31.26,145.8a1.92,1.92,0,0,1,0-3.6l55.08-20.3a6,6,0,0,0,3.56-3.56l20.3-55.08a1.92,1.92,0,0,1,3.6,0l20.3,55.08a6,6,0,0,0,3.56,3.56l55.08,20.3a1.92,1.92,0,0,1,0,3.6ZM146,40a6,6,0,0,1,6-6h18V16a6,6,0,0,1,12,0V34h18a6,6,0,0,1,0,12H182V64a6,6,0,0,1-12,0V46H152A6,6,0,0,1,146,40ZM246,88a6,6,0,0,1-6,6H230v10a6,6,0,0,1-12,0V94H208a6,6,0,0,1,0-12h10V72a6,6,0,0,1,12,0V82h10A6,6,0,0,1,246,88Z`}))],[`regular`,K.createElement(K.Fragment,null,K.createElement(`path`,{d:`M197.58,129.06,146,110l-19-51.62a15.92,15.92,0,0,0-29.88,0L78,110l-51.62,19a15.92,15.92,0,0,0,0,29.88L78,178l19,51.62a15.92,15.92,0,0,0,29.88,0L146,178l51.62-19a15.92,15.92,0,0,0,0-29.88ZM137,164.22a8,8,0,0,0-4.74,4.74L112,223.85,91.78,169A8,8,0,0,0,87,164.22L32.15,144,87,123.78A8,8,0,0,0,91.78,119L112,64.15,132.22,119a8,8,0,0,0,4.74,4.74L191.85,144ZM144,40a8,8,0,0,1,8-8h16V16a8,8,0,0,1,16,0V32h16a8,8,0,0,1,0,16H184V64a8,8,0,0,1-16,0V48H152A8,8,0,0,1,144,40ZM248,88a8,8,0,0,1-8,8h-8v8a8,8,0,0,1-16,0V96h-8a8,8,0,0,1,0-16h8V72a8,8,0,0,1,16,0v8h8A8,8,0,0,1,248,88Z`}))],[`thin`,K.createElement(K.Fragment,null,K.createElement(`path`,{d:`M196.2,132.81l-53.36-19.65L123.19,59.8a11.93,11.93,0,0,0-22.38,0L81.16,113.16,27.8,132.81a11.93,11.93,0,0,0,0,22.38l53.36,19.65,19.65,53.36a11.93,11.93,0,0,0,22.38,0l19.65-53.36,53.36-19.65a11.93,11.93,0,0,0,0-22.38Zm-2.77,14.87L138.35,168a4,4,0,0,0-2.37,2.37l-20.3,55.08a3.92,3.92,0,0,1-7.36,0L88,170.35A4,4,0,0,0,85.65,168l-55.08-20.3a3.92,3.92,0,0,1,0-7.36L85.65,120A4,4,0,0,0,88,117.65l20.3-55.08a3.92,3.92,0,0,1,7.36,0L136,117.65a4,4,0,0,0,2.37,2.37l55.08,20.3a3.92,3.92,0,0,1,0,7.36ZM148,40a4,4,0,0,1,4-4h20V16a4,4,0,0,1,8,0V36h20a4,4,0,0,1,0,8H180V64a4,4,0,0,1-8,0V44H152A4,4,0,0,1,148,40Zm96,48a4,4,0,0,1-4,4H228v12a4,4,0,0,1-8,0V92H208a4,4,0,0,1,0-8h12V72a4,4,0,0,1,8,0V84h12A4,4,0,0,1,244,88Z`}))]]),Jt=new Map([[`bold`,K.createElement(K.Fragment,null,K.createElement(`path`,{d:`M100,36H56A20,20,0,0,0,36,56v44a20,20,0,0,0,20,20h44a20,20,0,0,0,20-20V56A20,20,0,0,0,100,36ZM96,96H60V60H96ZM200,36H156a20,20,0,0,0-20,20v44a20,20,0,0,0,20,20h44a20,20,0,0,0,20-20V56A20,20,0,0,0,200,36Zm-4,60H160V60h36Zm-96,40H56a20,20,0,0,0-20,20v44a20,20,0,0,0,20,20h44a20,20,0,0,0,20-20V156A20,20,0,0,0,100,136Zm-4,60H60V160H96Zm104-60H156a20,20,0,0,0-20,20v44a20,20,0,0,0,20,20h44a20,20,0,0,0,20-20V156A20,20,0,0,0,200,136Zm-4,60H160V160h36Z`}))],[`duotone`,K.createElement(K.Fragment,null,K.createElement(`path`,{d:`M112,56v48a8,8,0,0,1-8,8H56a8,8,0,0,1-8-8V56a8,8,0,0,1,8-8h48A8,8,0,0,1,112,56Zm88-8H152a8,8,0,0,0-8,8v48a8,8,0,0,0,8,8h48a8,8,0,0,0,8-8V56A8,8,0,0,0,200,48Zm-96,96H56a8,8,0,0,0-8,8v48a8,8,0,0,0,8,8h48a8,8,0,0,0,8-8V152A8,8,0,0,0,104,144Zm96,0H152a8,8,0,0,0-8,8v48a8,8,0,0,0,8,8h48a8,8,0,0,0,8-8V152A8,8,0,0,0,200,144Z`,opacity:`0.2`}),K.createElement(`path`,{d:`M200,136H152a16,16,0,0,0-16,16v48a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V152A16,16,0,0,0,200,136Zm0,64H152V152h48v48ZM104,40H56A16,16,0,0,0,40,56v48a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V56A16,16,0,0,0,104,40Zm0,64H56V56h48v48Zm96-64H152a16,16,0,0,0-16,16v48a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V56A16,16,0,0,0,200,40Zm0,64H152V56h48v48Zm-96,32H56a16,16,0,0,0-16,16v48a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V152A16,16,0,0,0,104,136Zm0,64H56V152h48v48Z`}))],[`fill`,K.createElement(K.Fragment,null,K.createElement(`path`,{d:`M120,56v48a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V56A16,16,0,0,1,56,40h48A16,16,0,0,1,120,56Zm80-16H152a16,16,0,0,0-16,16v48a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V56A16,16,0,0,0,200,40Zm-96,96H56a16,16,0,0,0-16,16v48a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V152A16,16,0,0,0,104,136Zm96,0H152a16,16,0,0,0-16,16v48a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V152A16,16,0,0,0,200,136Z`}))],[`light`,K.createElement(K.Fragment,null,K.createElement(`path`,{d:`M104,42H56A14,14,0,0,0,42,56v48a14,14,0,0,0,14,14h48a14,14,0,0,0,14-14V56A14,14,0,0,0,104,42Zm2,62a2,2,0,0,1-2,2H56a2,2,0,0,1-2-2V56a2,2,0,0,1,2-2h48a2,2,0,0,1,2,2Zm94-62H152a14,14,0,0,0-14,14v48a14,14,0,0,0,14,14h48a14,14,0,0,0,14-14V56A14,14,0,0,0,200,42Zm2,62a2,2,0,0,1-2,2H152a2,2,0,0,1-2-2V56a2,2,0,0,1,2-2h48a2,2,0,0,1,2,2Zm-98,34H56a14,14,0,0,0-14,14v48a14,14,0,0,0,14,14h48a14,14,0,0,0,14-14V152A14,14,0,0,0,104,138Zm2,62a2,2,0,0,1-2,2H56a2,2,0,0,1-2-2V152a2,2,0,0,1,2-2h48a2,2,0,0,1,2,2Zm94-62H152a14,14,0,0,0-14,14v48a14,14,0,0,0,14,14h48a14,14,0,0,0,14-14V152A14,14,0,0,0,200,138Zm2,62a2,2,0,0,1-2,2H152a2,2,0,0,1-2-2V152a2,2,0,0,1,2-2h48a2,2,0,0,1,2,2Z`}))],[`regular`,K.createElement(K.Fragment,null,K.createElement(`path`,{d:`M104,40H56A16,16,0,0,0,40,56v48a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V56A16,16,0,0,0,104,40Zm0,64H56V56h48v48Zm96-64H152a16,16,0,0,0-16,16v48a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V56A16,16,0,0,0,200,40Zm0,64H152V56h48v48Zm-96,32H56a16,16,0,0,0-16,16v48a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V152A16,16,0,0,0,104,136Zm0,64H56V152h48v48Zm96-64H152a16,16,0,0,0-16,16v48a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V152A16,16,0,0,0,200,136Zm0,64H152V152h48v48Z`}))],[`thin`,K.createElement(K.Fragment,null,K.createElement(`path`,{d:`M104,44H56A12,12,0,0,0,44,56v48a12,12,0,0,0,12,12h48a12,12,0,0,0,12-12V56A12,12,0,0,0,104,44Zm4,60a4,4,0,0,1-4,4H56a4,4,0,0,1-4-4V56a4,4,0,0,1,4-4h48a4,4,0,0,1,4,4Zm92-60H152a12,12,0,0,0-12,12v48a12,12,0,0,0,12,12h48a12,12,0,0,0,12-12V56A12,12,0,0,0,200,44Zm4,60a4,4,0,0,1-4,4H152a4,4,0,0,1-4-4V56a4,4,0,0,1,4-4h48a4,4,0,0,1,4,4ZM104,140H56a12,12,0,0,0-12,12v48a12,12,0,0,0,12,12h48a12,12,0,0,0,12-12V152A12,12,0,0,0,104,140Zm4,60a4,4,0,0,1-4,4H56a4,4,0,0,1-4-4V152a4,4,0,0,1,4-4h48a4,4,0,0,1,4,4Zm92-60H152a12,12,0,0,0-12,12v48a12,12,0,0,0,12,12h48a12,12,0,0,0,12-12V152A12,12,0,0,0,200,140Zm4,60a4,4,0,0,1-4,4H152a4,4,0,0,1-4-4V152a4,4,0,0,1,4-4h48a4,4,0,0,1,4,4Z`}))]]),Yt=new Map([[`bold`,K.createElement(K.Fragment,null,K.createElement(`path`,{d:`M128,20A108,108,0,1,0,236,128,108.12,108.12,0,0,0,128,20Zm0,192a84,84,0,1,1,84-84A84.09,84.09,0,0,1,128,212Zm-12-80V80a12,12,0,0,1,24,0v52a12,12,0,0,1-24,0Zm28,40a16,16,0,1,1-16-16A16,16,0,0,1,144,172Z`}))],[`duotone`,K.createElement(K.Fragment,null,K.createElement(`path`,{d:`M224,128a96,96,0,1,1-96-96A96,96,0,0,1,224,128Z`,opacity:`0.2`}),K.createElement(`path`,{d:`M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm-8-80V80a8,8,0,0,1,16,0v56a8,8,0,0,1-16,0Zm20,36a12,12,0,1,1-12-12A12,12,0,0,1,140,172Z`}))],[`fill`,K.createElement(K.Fragment,null,K.createElement(`path`,{d:`M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm-8,56a8,8,0,0,1,16,0v56a8,8,0,0,1-16,0Zm8,104a12,12,0,1,1,12-12A12,12,0,0,1,128,184Z`}))],[`light`,K.createElement(K.Fragment,null,K.createElement(`path`,{d:`M128,26A102,102,0,1,0,230,128,102.12,102.12,0,0,0,128,26Zm0,192a90,90,0,1,1,90-90A90.1,90.1,0,0,1,128,218Zm-6-82V80a6,6,0,0,1,12,0v56a6,6,0,0,1-12,0Zm16,36a10,10,0,1,1-10-10A10,10,0,0,1,138,172Z`}))],[`regular`,K.createElement(K.Fragment,null,K.createElement(`path`,{d:`M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm-8-80V80a8,8,0,0,1,16,0v56a8,8,0,0,1-16,0Zm20,36a12,12,0,1,1-12-12A12,12,0,0,1,140,172Z`}))],[`thin`,K.createElement(K.Fragment,null,K.createElement(`path`,{d:`M128,28A100,100,0,1,0,228,128,100.11,100.11,0,0,0,128,28Zm0,192a92,92,0,1,1,92-92A92.1,92.1,0,0,1,128,220Zm-4-84V80a4,4,0,0,1,8,0v56a4,4,0,0,1-8,0Zm12,36a8,8,0,1,1-8-8A8,8,0,0,1,136,172Z`}))]]),Xt=new Map([[`bold`,K.createElement(K.Fragment,null,K.createElement(`path`,{d:`M208.49,191.51a12,12,0,0,1-17,17L128,145,64.49,208.49a12,12,0,0,1-17-17L111,128,47.51,64.49a12,12,0,0,1,17-17L128,111l63.51-63.52a12,12,0,0,1,17,17L145,128Z`}))],[`duotone`,K.createElement(K.Fragment,null,K.createElement(`path`,{d:`M216,56V200a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V56A16,16,0,0,1,56,40H200A16,16,0,0,1,216,56Z`,opacity:`0.2`}),K.createElement(`path`,{d:`M205.66,194.34a8,8,0,0,1-11.32,11.32L128,139.31,61.66,205.66a8,8,0,0,1-11.32-11.32L116.69,128,50.34,61.66A8,8,0,0,1,61.66,50.34L128,116.69l66.34-66.35a8,8,0,0,1,11.32,11.32L139.31,128Z`}))],[`fill`,K.createElement(K.Fragment,null,K.createElement(`path`,{d:`M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM181.66,170.34a8,8,0,0,1-11.32,11.32L128,139.31,85.66,181.66a8,8,0,0,1-11.32-11.32L116.69,128,74.34,85.66A8,8,0,0,1,85.66,74.34L128,116.69l42.34-42.35a8,8,0,0,1,11.32,11.32L139.31,128Z`}))],[`light`,K.createElement(K.Fragment,null,K.createElement(`path`,{d:`M204.24,195.76a6,6,0,1,1-8.48,8.48L128,136.49,60.24,204.24a6,6,0,0,1-8.48-8.48L119.51,128,51.76,60.24a6,6,0,0,1,8.48-8.48L128,119.51l67.76-67.75a6,6,0,0,1,8.48,8.48L136.49,128Z`}))],[`regular`,K.createElement(K.Fragment,null,K.createElement(`path`,{d:`M205.66,194.34a8,8,0,0,1-11.32,11.32L128,139.31,61.66,205.66a8,8,0,0,1-11.32-11.32L116.69,128,50.34,61.66A8,8,0,0,1,61.66,50.34L128,116.69l66.34-66.35a8,8,0,0,1,11.32,11.32L139.31,128Z`}))],[`thin`,K.createElement(K.Fragment,null,K.createElement(`path`,{d:`M202.83,197.17a4,4,0,0,1-5.66,5.66L128,133.66,58.83,202.83a4,4,0,0,1-5.66-5.66L122.34,128,53.17,58.83a4,4,0,0,1,5.66-5.66L128,122.34l69.17-69.17a4,4,0,1,1,5.66,5.66L133.66,128Z`}))]]),Zt=K.forwardRef((e,t)=>K.createElement(ie,{ref:t,...e,weights:Wt}));Zt.displayName=`ArrowClockwiseIcon`;var Qt=Zt,$t=K.forwardRef((e,t)=>K.createElement(ie,{ref:t,...e,weights:Gt}));$t.displayName=`CaretDownIcon`;var en=$t,tn=K.forwardRef((e,t)=>K.createElement(ie,{ref:t,...e,weights:Kt}));tn.displayName=`ListMagnifyingGlassIcon`;var nn=tn,rn=K.forwardRef((e,t)=>K.createElement(ie,{ref:t,...e,weights:qt}));rn.displayName=`SparkleIcon`;var an=rn,on=K.forwardRef((e,t)=>K.createElement(ie,{ref:t,...e,weights:Jt}));on.displayName=`SquaresFourIcon`;var sn=on,cn=K.forwardRef((e,t)=>K.createElement(ie,{ref:t,...e,weights:Yt}));cn.displayName=`WarningCircleIcon`;var ln=cn,un=K.forwardRef((e,t)=>K.createElement(ie,{ref:t,...e,weights:Xt}));un.displayName=`XIcon`;var dn=un,fn=class extends V{#e;#t=void 0;#n;#r;constructor(e,t){super(),this.#e=e,this.setOptions(t),this.bindMethods(),this.#i()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){let t=this.options;this.options=this.#e.defaultMutationOptions(e),ve(this.options,t)||this.#e.getMutationCache().notify({type:`observerOptionsUpdated`,mutation:this.#n,observer:this}),t?.mutationKey&&this.options.mutationKey&&xe(t.mutationKey)!==xe(this.options.mutationKey)?this.reset():this.#n?.state.status===`pending`&&this.#n.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#n?.removeObserver(this)}onMutationUpdate(e){this.#i(),this.#a(e)}getCurrentResult(){return this.#t}reset(){this.#n?.removeObserver(this),this.#n=void 0,this.#i(),this.#a()}mutate(e,t){return this.#r=t,this.#n?.removeObserver(this),this.#n=this.#e.getMutationCache().build(this.#e,this.options),this.#n.addObserver(this),this.#n.execute(e)}#i(){let e=this.#n?.state??W();this.#t={...e,isPending:e.status===`pending`,isSuccess:e.status===`success`,isError:e.status===`error`,isIdle:e.status===`idle`,mutate:this.mutate,reset:this.reset}}#a(e){be.batch(()=>{if(this.#r&&this.hasListeners()){let t=this.#t.variables,n=this.#t.context,r={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};if(e?.type===`success`){try{this.#r.onSuccess?.(e.data,t,n,r)}catch(e){Promise.reject(e)}try{this.#r.onSettled?.(e.data,null,t,n,r)}catch(e){Promise.reject(e)}}else if(e?.type===`error`){try{this.#r.onError?.(e.error,t,n,r)}catch(e){Promise.reject(e)}try{this.#r.onSettled?.(void 0,e.error,t,n,r)}catch(e){Promise.reject(e)}}}this.listeners.forEach(e=>{e(this.#t)})})}};function pn(e,t){return me(e,ge,t)}function mn(e,t){let n=H(t),[r]=K.useState(()=>new fn(n,e));K.useEffect(()=>{r.setOptions(e)},[r,e]);let i=K.useSyncExternalStore(K.useCallback(e=>r.subscribe(be.batchCalls(e)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),a=K.useCallback((e,t)=>{r.mutate(e,t).catch(_e)},[r]);if(i.error&&U(r.options.throwOnError,[i.error]))throw i.error;return{...i,mutate:a,mutateAsync:i.mutate}}function hn(e){let{margin:t,containerPadding:n,containerWidth:r,cols:i}=e;return(r-t[0]*(i-1)-n[0]*2)/i}function gn(e,t,n){return Number.isFinite(e)?Math.round(t*e+Math.max(0,e-1)*n):e}function _n(e,t,n,r,i,a,o){let{margin:s,containerPadding:c,rowHeight:l}=e,u=hn(e),d,f,p,m;if(o?(d=Math.round(o.width),f=Math.round(o.height)):(d=gn(r,u,s[0]),f=gn(i,l,s[1])),a?(p=Math.round(a.top),m=Math.round(a.left)):o?(p=Math.round(o.top),m=Math.round(o.left)):(p=Math.round((l+s[1])*n+c[1]),m=Math.round((u+s[0])*t+c[0])),!a&&!o){if(Number.isFinite(r)){let e=Math.round((u+s[0])*(t+r)+c[0])-m-d;e!==s[0]&&(d+=e-s[0])}if(Number.isFinite(i)){let e=Math.round((l+s[1])*(n+i)+c[1])-p-f;e!==s[1]&&(f+=e-s[1])}}return{top:p,left:m,width:d,height:f}}function vn(e,t,n,r,i){let{margin:a,containerPadding:o,cols:s,rowHeight:c,maxRows:l}=e,u=hn(e),d=Math.round((n-o[0])/(u+a[0])),f=Math.round((t-o[1])/(c+a[1]));return d=xn(d,0,s-r),f=xn(f,0,l-i),{x:d,y:f}}function yn(e,t,n){let{margin:r,containerPadding:i,rowHeight:a}=e,o=hn(e);return{x:Math.round((n-i[0])/(o+r[0])),y:Math.round((t-i[1])/(a+r[1]))}}function bn(e,t,n){let{margin:r,rowHeight:i}=e,a=hn(e);return{w:Math.max(1,Math.round((t+r[0])/(a+r[0]))),h:Math.max(1,Math.round((n+r[1])/(i+r[1])))}}function xn(e,t,n){return Math.max(Math.min(e,n),t)}function Sn(e,t){return!(e.i===t.i||e.x+e.w<=t.x||e.x>=t.x+t.w||e.y+e.h<=t.y||e.y>=t.y+t.h)}function Cn(e,t){for(let n=0;nSn(e,t))}function Tn(e,t){return t===`horizontal`?Dn(e):t===`vertical`||t===`wrap`?En(e):[...e]}function En(e){return[...e].sort((e,t)=>e.y===t.y?e.x-t.x:e.y-t.y)}function Dn(e){return[...e].sort((e,t)=>e.x===t.x?e.y-t.y:e.x-t.x)}function On(e){let t=0;for(let n=0;nt&&(t=e)}}return t}function kn(e,t){for(let n=0;ne.static===!0)}function jn(e){return{i:e.i,x:e.x,y:e.y,w:e.w,h:e.h,minW:e.minW,maxW:e.maxW,minH:e.minH,maxH:e.maxH,moved:!!e.moved,static:!!e.static,isDraggable:e.isDraggable,isResizable:e.isResizable,resizeHandles:e.resizeHandles,constraints:e.constraints,isBounded:e.isBounded}}function Mn(e){let t=Array(e.length);for(let n=0;nt.cols&&(i.x=t.cols-i.w),i.x<0&&(i.x=0,i.w=t.cols),!i.static)n.push(i);else for(;Cn(n,i);)i.y++}return e}function In(e,t,n,r,i,a,o,s,c){if(t.static&&t.isDraggable!==!0||t.y===r&&t.x===n)return[...e];let l=t.x,u=t.y;typeof n==`number`&&(t.x=n),typeof r==`number`&&(t.y=r),t.moved=!0;let d=Tn(e,o);(o===`vertical`&&typeof r==`number`?u>=r:o===`horizontal`&&typeof n==`number`&&l>=n)&&(d=d.reverse());let f=wn(d,t),p=f.length>0;if(p&&c)return Mn(e);if(p&&a)return t.x=l,t.y=u,t.moved=!1,e;let m=[...e];for(let e=0;et.y,d=l!==void 0&&t.x+t.w>l.x;if(!l)return In(e,n,o?a.x:void 0,s?a.y:void 0,r,c,i);if(u&&s)return In(e,n,void 0,n.y+1,r,c,i);if(u&&i===null)return t.y=n.y,n.y+=n.h,[...e];if(d&&o)return In(e,t,n.x,void 0,r,c,i)}let l=o?n.x+1:void 0,u=s?n.y+1:void 0;return l===void 0&&u===void 0?[...e]:In(e,n,l,u,r,c,i)}function Rn(e,t,n){return Math.max(t,Math.min(n,e))}var zn=[{name:`gridBounds`,constrainPosition(e,t,n,{cols:r,maxRows:i}){return{x:Rn(t,0,Math.max(0,r-e.w)),y:Rn(n,0,Math.max(0,i-e.h))}},constrainSize(e,t,n,r,{cols:i,maxRows:a}){let o=r===`w`||r===`nw`||r===`sw`?e.x+e.w:i-e.x,s=r===`n`||r===`nw`||r===`ne`?e.y+e.h:a-e.y;return{w:Rn(t,1,Math.max(1,o)),h:Rn(n,1,Math.max(1,s))}}},{name:`minMaxSize`,constrainSize(e,t,n){return{w:Rn(t,e.minW??1,e.maxW??1/0),h:Rn(n,e.minH??1,e.maxH??1/0)}}}];function Bn(e,t,n,r,i){let a={x:n,y:r};for(let n of e)n.constrainPosition&&(a=n.constrainPosition(t,a.x,a.y,i));if(t.constraints)for(let e of t.constraints)e.constrainPosition&&(a=e.constrainPosition(t,a.x,a.y,i));return a}function Vn(e,t,n,r,i,a){let o={w:n,h:r};for(let n of e)n.constrainSize&&(o=n.constrainSize(t,o.w,o.h,i,a));if(t.constraints)for(let e of t.constraints)e.constrainSize&&(o=e.constrainSize(t,o.w,o.h,i,a));return o}function Hn({top:e,left:t,width:n,height:r}){let i=`translate(${t}px,${e}px)`;return{transform:i,WebkitTransform:i,MozTransform:i,msTransform:i,OTransform:i,width:`${n}px`,height:`${r}px`,position:`absolute`}}function Un({top:e,left:t,width:n,height:r}){return{top:`${e}px`,left:`${t}px`,width:`${n}px`,height:`${r}px`,position:`absolute`}}function Wn(e){return e*100+`%`}function Gn(e,t,n,r){return e+n>r?t:n}function Kn(e,t,n){return e<0?t:n}function qn(e){return Math.max(0,e)}function Jn(e){return Math.max(0,e)}var Yn=(e,t,n)=>{let{left:r,height:i,width:a}=t,o=e.top-(i-e.height);return{left:r,width:a,height:Kn(o,e.height,i),top:Jn(o)}},Xn=(e,t,n)=>{let{top:r,left:i,height:a,width:o}=t;return{top:r,height:a,width:Gn(e.left,e.width,o,n),left:qn(i)}},Zn=(e,t,n)=>{let{top:r,height:i,width:a}=t,o=e.left+e.width-a;return o<0?{height:i,width:e.left+e.width,top:Jn(r),left:0}:{height:i,width:a,top:Jn(r),left:o}},Qn=(e,t,n)=>{let{top:r,left:i,height:a,width:o}=t;return{width:o,left:i,height:Kn(r,e.height,a),top:Jn(r)}},$n={n:Yn,ne:(e,t,n)=>Yn(e,Xn(e,t,n)),e:Xn,se:(e,t,n)=>Qn(e,Xn(e,t,n)),s:Qn,sw:(e,t,n)=>Qn(e,Zn(e,t)),w:Zn,nw:(e,t,n)=>Yn(e,Zn(e,t))};function er(e,t,n,r){let i=$n[e];return i?i(t,{...t,...n},r):n}var tr={type:`transform`,scale:1,calcStyle(e){return Hn(e)}},nr={type:`absolute`,scale:1,calcStyle(e){return Un(e)}};function rr(e){return{type:`transform`,scale:e,calcStyle(e){return Hn(e)},calcDragPosition(t,n,r,i){return{left:(t-r)/e,top:(n-i)/e}}}}var ir=tr,ar={cols:12,rowHeight:150,margin:[10,10],containerPadding:null,maxRows:1/0},or={enabled:!0,bounded:!1,threshold:3},sr={enabled:!0,handles:[`se`]},cr={enabled:!1,defaultItem:{w:1,h:1}};function lr(e,t,n,r,i){let a=r===`x`?`w`:`h`;t[r]+=1;let o=e.findIndex(e=>e.i===t.i),s=i??An(e).length>0;for(let i=o+1;it.y+t.h)break;Sn(t,o)&&lr(e,o,n+t[a],r,s)}}t[r]=n}function ur(e,t,n,r){for(t.x=Math.max(t.x,0),t.y=Math.max(t.y,0),t.y=Math.min(r,t.y);t.y>0&&!Cn(e,t);)t.y--;let i;for(;(i=Cn(e,t))!==void 0;)lr(n,t,i.y+i.h,`y`);return t.y=Math.max(t.y,0),t}function dr(e,t,n,r){for(t.x=Math.max(t.x,0),t.y=Math.max(t.y,0);t.x>0&&!Cn(e,t);)t.x--;let i;for(;(i=Cn(e,t))!==void 0;)if(lr(r,t,i.x+i.w,`x`),t.x+t.w>n)for(t.x=n-t.w,t.y++;t.x>0&&!Cn(e,t);)t.x--;return t.x=Math.max(t.x,0),t}var fr={type:`vertical`,allowOverlap:!1,compact(e,t){let n=An(e),r=On(n),i=En(e),a=Array(e.length);for(let t=0;te[t]-e[n])}function br(e,t){let n=yr(e),r=n[0];if(r===void 0)throw Error(`No breakpoints defined`);for(let i=1;ie[a]&&(r=a)}return r}function xr(e,t){let n=t[e];if(n===void 0)throw Error(`ResponsiveReactGridLayout: \`cols\` entry for breakpoint ${String(e)} is missing!`);return n}function Sr(e,t,n,r,i,a){let o=e[n];if(o)return Mn(o);let s=e[r],c=yr(t),l=c.slice(c.indexOf(n));for(let t=0;t{t.exports=`SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED`})),Tr=r(((e,t)=>{var n=wr();function r(){}function i(){}i.resetWarningCache=r,t.exports=function(){function e(e,t,r,i,a,o){if(o!==n){var s=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name=`Invariant Violation`,s}}e.isRequired=e;function t(){return e}var a={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:r};return a.PropTypes=a,a}})),Er=r(((e,t)=>{t.exports=Tr()()})),$=e(Er(),1),Dr=e(ne(),1);function Or(e,t){for(let n=0,r=e.length;n`u`)return``;let t=window.document?.documentElement?.style;if(!t||e in t)return``;for(let n=0;nt===e.identifier)||e.changedTouches&&Or(e.changedTouches,e=>t===e.identifier)}function Qr(e){if(e.targetTouches&&e.targetTouches[0])return e.targetTouches[0].identifier;if(e.changedTouches&&e.changedTouches[0])return e.changedTouches[0].identifier}function $r(){return typeof __webpack_nonce__<`u`?__webpack_nonce__:void 0}function ei(e,t){if(!e)return;let n=e.getElementById(`react-draggable-style-el`);if(!n){n=e.createElement(`style`),n.type=`text/css`,n.id=`react-draggable-style-el`;let r=t??$r();r&&n.setAttribute(`nonce`,r),n.innerHTML=`.react-draggable-transparent-selection *::-moz-selection {all: inherit;} -`,n.innerHTML+=`.react-draggable-transparent-selection *::selection {all: inherit;} -`,e.getElementsByTagName(`head`)[0].appendChild(n)}e.body&&ri(e.body,`react-draggable-transparent-selection`)}function ti(e){window.requestAnimationFrame?window.requestAnimationFrame(()=>{ni(e)}):ni(e)}function ni(e){if(e)try{e.body&&ii(e.body,`react-draggable-transparent-selection`);let t=e.selection;if(t)t.empty();else{let t=(e.defaultView||window).getSelection();t&&t.type!==`Caret`&&t.removeAllRanges()}}catch{}}function ri(e,t){e.classList?e.classList.add(t):e.className.match(RegExp(`(?:^|\\s)${t}(?!\\S)`))||(e.className+=` ${t}`)}function ii(e,t){e.classList?e.classList.remove(t):e.className=e.className.replace(RegExp(`(?:^|\\s)${t}(?!\\S)`,`g`),``)}function ai(e,t,n){if(!e.props.bounds)return[t,n];let{bounds:r}=e.props;r=typeof r==`string`?r:fi(r);let i=pi(e);if(typeof r==`string`){let{ownerDocument:e}=i,t=e.defaultView;if(!t)throw Error(`Cannot resolve the owner window of the draggable node.`);let n;if(n=r===`parent`?i.parentNode:i.getRootNode().querySelector(r),!(n instanceof t.HTMLElement))throw Error(`Bounds selector "`+r+`" could not find an element.`);let a=n,o=t.getComputedStyle(i),s=t.getComputedStyle(a);r={left:-i.offsetLeft+jr(s.paddingLeft)+jr(o.marginLeft),top:-i.offsetTop+jr(s.paddingTop)+jr(o.marginTop),right:Kr(a)-Wr(i)-i.offsetLeft+jr(s.paddingRight)-jr(o.marginRight),bottom:Gr(a)-Ur(i)-i.offsetTop+jr(s.paddingBottom)-jr(o.marginBottom)}}return Ar(r.right)&&(t=Math.min(t,r.right)),Ar(r.bottom)&&(n=Math.min(n,r.bottom)),Ar(r.left)&&(t=Math.max(t,r.left)),Ar(r.top)&&(n=Math.max(n,r.top)),[t,n]}function oi(e,t,n){return[Math.round(t/e[0])*e[0],Math.round(n/e[1])*e[1]]}function si(e){return e.props.axis===`both`||e.props.axis===`x`}function ci(e){return e.props.axis===`both`||e.props.axis===`y`}function li(e,t,n){let r=typeof t==`number`?Zr(e,t):null;if(typeof t==`number`&&!r)return null;let i=pi(n),a=n.props.offsetParent||i.offsetParent||i.ownerDocument.body;return qr(r||e,a,n.props.scale)}function ui(e,t,n){let r=!Ar(e.lastX),i=pi(e);return r?{node:i,deltaX:0,deltaY:0,lastX:t,lastY:n,x:t,y:n}:{node:i,deltaX:t-e.lastX,deltaY:n-e.lastY,lastX:e.lastX,lastY:e.lastY,x:t,y:n}}function di(e,t){let n=e.props.scale;return{node:t.node,x:e.state.x+t.deltaX/n,y:e.state.y+t.deltaY/n,deltaX:t.deltaX/n,deltaY:t.deltaY/n,lastX:e.state.x,lastY:e.state.y}}function fi(e){return{left:e.left,top:e.top,right:e.right,bottom:e.bottom}}function pi(e){let t=e.findDOMNode();if(!t)throw Error(`: Unmounted during event!`);return t}function mi(...e){({}).DRAGGABLE_DEBUG&&console.log(...e)}var hi={touch:{start:`touchstart`,move:`touchmove`,stop:`touchend`},mouse:{start:`mousedown`,move:`mousemove`,stop:`mouseup`}},gi=hi.mouse,_i=class extends K.Component{constructor(){super(...arguments),this.dragging=!1,this.lastX=NaN,this.lastY=NaN,this.touchIdentifier=null,this.mounted=!1,this.handleDragStart=e=>{if(this.props.onMouseDown(e),!this.props.allowAnyClick&&(typeof e.button==`number`&&e.button!==0||e.ctrlKey))return!1;let t=this.findDOMNode();if(!t||!t.ownerDocument||!t.ownerDocument.body)throw Error(` not mounted on DragStart!`);let{ownerDocument:n}=t;if(this.props.disabled||!(e.target instanceof n.defaultView.Node)||this.props.handle&&!Br(e.target,this.props.handle,t)||this.props.cancel&&Br(e.target,this.props.cancel,t))return;e.type===`touchstart`&&!this.props.allowMobileScroll&&e.preventDefault();let r=Qr(e);this.touchIdentifier=r;let i=li(e,r,this);if(i==null)return;let{x:a,y:o}=i,s=ui(this,a,o);mi(`DraggableCore: handleDragStart: %j`,s),mi(`calling`,this.props.onStart),this.props.onStart(e,s)!==!1&&this.mounted!==!1&&(this.props.enableUserSelectHack&&ei(n,this.props.nonce),this.dragging=!0,this.lastX=a,this.lastY=o,Vr(n,gi.move,this.handleDrag),Vr(n,gi.stop,this.handleDragStop))},this.handleDrag=e=>{let t=li(e,this.touchIdentifier,this);if(t==null)return;let{x:n,y:r}=t;if(Array.isArray(this.props.grid)){let e=n-this.lastX,t=r-this.lastY;if([e,t]=oi(this.props.grid,e,t),!e&&!t)return;n=this.lastX+e,r=this.lastY+t}let i=ui(this,n,r);if(mi(`DraggableCore: handleDrag: %j`,i),this.props.onDrag(e,i)===!1||this.mounted===!1){try{this.handleDragStop(new MouseEvent(`mouseup`))}catch{let e=document.createEvent(`MouseEvents`);e.initMouseEvent(`mouseup`,!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),this.handleDragStop(e)}return}this.lastX=n,this.lastY=r},this.handleDragStop=e=>{if(!this.dragging)return;let t=li(e,this.touchIdentifier,this);if(t==null)return;let{x:n,y:r}=t;if(Array.isArray(this.props.grid)){let e=n-this.lastX||0,t=r-this.lastY||0;[e,t]=oi(this.props.grid,e,t),n=this.lastX+e,r=this.lastY+t}let i=ui(this,n,r);if(this.props.onStop(e,i)===!1||this.mounted===!1)return!1;let a=this.findDOMNode();a&&this.props.enableUserSelectHack&&ti(a.ownerDocument),mi(`DraggableCore: handleDragStop: %j`,i),this.dragging=!1,this.lastX=NaN,this.lastY=NaN,a&&(mi(`DraggableCore: Removing handlers`),Hr(a.ownerDocument,gi.move,this.handleDrag),Hr(a.ownerDocument,gi.stop,this.handleDragStop))},this.onMouseDown=e=>(gi=hi.mouse,this.handleDragStart(e)),this.onMouseUp=e=>(gi=hi.mouse,this.handleDragStop(e)),this.onTouchStart=e=>(gi=hi.touch,this.handleDragStart(e)),this.onTouchEnd=e=>(gi=hi.touch,this.handleDragStop(e))}componentDidMount(){this.mounted=!0;let e=this.findDOMNode();e&&Vr(e,hi.touch.start,this.onTouchStart,{passive:!1})}componentWillUnmount(){this.mounted=!1;let e=this.findDOMNode();if(e){let{ownerDocument:t}=e;Hr(t,hi.mouse.move,this.handleDrag),Hr(t,hi.touch.move,this.handleDrag),Hr(t,hi.mouse.stop,this.handleDragStop),Hr(t,hi.touch.stop,this.handleDragStop),Hr(e,hi.touch.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&ti(t)}}findDOMNode(){if(this.props?.nodeRef)return this.props.nodeRef.current;let e=Dr.default;return typeof e.findDOMNode==`function`?e.findDOMNode(this):(mi(`react-draggable: ReactDOM.findDOMNode is not available in React 19+. You must provide a nodeRef prop. See: https://github.com/react-grid-layout/react-draggable#noderef`),null)}render(){return K.cloneElement(K.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}};_i.displayName=`DraggableCore`,_i.propTypes={allowAnyClick:$.default.bool,allowMobileScroll:$.default.bool,children:$.default.node.isRequired,disabled:$.default.bool,enableUserSelectHack:$.default.bool,offsetParent:function(e,t){if(e[t]&&e[t].nodeType!==1)throw Error(`Draggable's offsetParent must be a DOM Node.`)},grid:$.default.arrayOf($.default.number),handle:$.default.string,cancel:$.default.string,nodeRef:$.default.object,nonce:$.default.string,onStart:$.default.func,onDrag:$.default.func,onStop:$.default.func,onMouseDown:$.default.func,scale:$.default.number,className:Mr,style:Mr,transform:Mr},_i.defaultProps={allowAnyClick:!1,allowMobileScroll:!1,disabled:!1,enableUserSelectHack:!0,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1};var vi=class extends K.Component{constructor(e){super(e),this.onDragStart=(e,t)=>{if(mi(`Draggable: onDragStart: %j`,t),this.props.onStart(e,di(this,t))===!1)return!1;this.setState({dragging:!0,dragged:!0})},this.onDrag=(e,t)=>{if(!this.state.dragging)return!1;mi(`Draggable: onDrag: %j`,t);let n=di(this,t),r={x:n.x,y:n.y,slackX:0,slackY:0};if(this.props.bounds){let{x:e,y:t}=r;r.x+=this.state.slackX,r.y+=this.state.slackY;let[i,a]=ai(this,r.x,r.y);r.x=i,r.y=a,r.slackX=this.state.slackX+(e-r.x),r.slackY=this.state.slackY+(t-r.y),n.x=r.x,n.y=r.y,n.deltaX=r.x-this.state.x,n.deltaY=r.y-this.state.y}if(this.props.onDrag(e,n)===!1)return!1;this.setState(r)},this.onDragStop=(e,t)=>{if(!this.state.dragging||this.props.onStop(e,di(this,t))===!1)return!1;mi(`Draggable: onDragStop: %j`,t);let n={dragging:!1,slackX:0,slackY:0};if(this.props.position){let{x:e,y:t}=this.props.position;n.x=e,n.y=t}this.setState(n)},this.state={dragging:!1,dragged:!1,x:e.position?e.position.x:e.defaultPosition.x,y:e.position?e.position.y:e.defaultPosition.y,prevPropsPosition:{...e.position},slackX:0,slackY:0,isElementSVG:!1},e.position&&!(e.onDrag||e.onStop)&&console.warn("A `position` was applied to this , without drag handlers. This will make this component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the `position` of this element.")}static getDerivedStateFromProps({position:e},{prevPropsPosition:t}){return e&&(!t||e.x!==t.x||e.y!==t.y)?(mi(`Draggable: getDerivedStateFromProps %j`,{position:e,prevPropsPosition:t}),{x:e.x,y:e.y,prevPropsPosition:{...e}}):null}componentDidMount(){window.SVGElement!==void 0&&this.findDOMNode()instanceof window.SVGElement&&this.setState({isElementSVG:!0})}componentWillUnmount(){this.state.dragging&&this.setState({dragging:!1})}findDOMNode(){if(this.props?.nodeRef)return this.props.nodeRef.current;let e=Dr.default;return typeof e.findDOMNode==`function`?e.findDOMNode(this):null}render(){let{axis:e,bounds:t,children:n,defaultPosition:r,defaultClassName:i,defaultClassNameDragging:a,defaultClassNameDragged:o,position:s,positionOffset:c,scale:l,...u}=this.props,d={},f=null,p=!s||this.state.dragging,m=s||r,h={x:si(this)&&p?this.state.x:m.x,y:ci(this)&&p?this.state.y:m.y};this.state.isElementSVG?f=Yr(h,c):d=Jr(h,c);let g=K.Children.only(n),v=_(g.props.className||``,i,{[a]:this.state.dragging,[o]:this.state.dragged});return K.createElement(_i,{...u,onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop},K.cloneElement(g,{className:v,style:{...g.props.style,...d},transform:f}))}};vi.displayName=`Draggable`,vi.propTypes={..._i.propTypes,axis:$.default.oneOf([`both`,`x`,`y`,`none`]),bounds:$.default.oneOfType([$.default.shape({left:$.default.number,right:$.default.number,top:$.default.number,bottom:$.default.number}),$.default.string,$.default.oneOf([!1])]),defaultClassName:$.default.string,defaultClassNameDragging:$.default.string,defaultClassNameDragged:$.default.string,defaultPosition:$.default.shape({x:$.default.number,y:$.default.number}),positionOffset:$.default.shape({x:$.default.oneOfType([$.default.number,$.default.string]),y:$.default.oneOfType([$.default.number,$.default.string])}),position:$.default.shape({x:$.default.number,y:$.default.number}),className:Mr,style:Mr,transform:Mr},vi.defaultProps={..._i.defaultProps,axis:`both`,bounds:!1,defaultClassName:`react-draggable`,defaultClassNameDragging:`react-draggable-dragging`,defaultClassNameDragged:`react-draggable-dragged`,defaultPosition:{x:0,y:0},scale:1};var yi=r(((e,t)=>{function n(e){var t,r,i=``;if(typeof e==`string`||typeof e==`number`)i+=e;else if(typeof e==`object`)if(Array.isArray(e)){var a=e.length;for(t=0;t{var r=Object.create,i=Object.defineProperty,a=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,s=Object.getPrototypeOf,c=Object.prototype.hasOwnProperty,l=(e,t)=>{for(var n in t)i(e,n,{get:t[n],enumerable:!0})},u=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(let s of o(t))!c.call(e,s)&&s!==n&&i(e,s,{get:()=>t[s],enumerable:!(r=a(t,s))||r.enumerable});return e},d=(e,t,n)=>(n=e==null?{}:r(s(e)),u(t||!e||!e.__esModule?i(n,`default`,{value:e,enumerable:!0}):n,e)),f=e=>u(i({},`__esModule`,{value:!0}),e),p={};l(p,{DraggableCore:()=>W,default:()=>xe}),t.exports=f(p);var m=d(n()),h=d(Er()),g=d(ne()),_=yi();function v(e,t){for(let n=0,r=e.length;n`u`)return``;let t=window.document?.documentElement?.style;if(!t||e in t)return``;for(let n=0;nt===e.identifier)||e.changedTouches&&v(e.changedTouches,e=>t===e.identifier)}function ce(e){if(e.targetTouches&&e.targetTouches[0])return e.targetTouches[0].identifier;if(e.changedTouches&&e.changedTouches[0])return e.changedTouches[0].identifier}function le(){return typeof __webpack_nonce__<`u`?__webpack_nonce__:void 0}function ue(e,t){if(!e)return;let n=e.getElementById(`react-draggable-style-el`);if(!n){n=e.createElement(`style`),n.type=`text/css`,n.id=`react-draggable-style-el`;let r=t??le();r&&n.setAttribute(`nonce`,r),n.innerHTML=`.react-draggable-transparent-selection *::-moz-selection {all: inherit;} -`,n.innerHTML+=`.react-draggable-transparent-selection *::selection {all: inherit;} -`,e.getElementsByTagName(`head`)[0].appendChild(n)}e.body&&I(e.body,`react-draggable-transparent-selection`)}function F(e){window.requestAnimationFrame?window.requestAnimationFrame(()=>{de(e)}):de(e)}function de(e){if(e)try{e.body&&fe(e.body,`react-draggable-transparent-selection`);let t=e.selection;if(t)t.empty();else{let t=(e.defaultView||window).getSelection();t&&t.type!==`Caret`&&t.removeAllRanges()}}catch{}}function I(e,t){e.classList?e.classList.add(t):e.className.match(RegExp(`(?:^|\\s)${t}(?!\\S)`))||(e.className+=` ${t}`)}function fe(e,t){e.classList?e.classList.remove(t):e.className=e.className.replace(RegExp(`(?:^|\\s)${t}(?!\\S)`,`g`),``)}function pe(e,t,n){if(!e.props.bounds)return[t,n];let{bounds:r}=e.props;r=typeof r==`string`?r:R(r);let i=ye(e);if(typeof r==`string`){let{ownerDocument:e}=i,t=e.defaultView;if(!t)throw Error(`Cannot resolve the owner window of the draggable node.`);let n;if(n=r===`parent`?i.parentNode:i.getRootNode().querySelector(r),!(n instanceof t.HTMLElement))throw Error(`Bounds selector "`+r+`" could not find an element.`);let a=n,o=t.getComputedStyle(i),s=t.getComputedStyle(a);r={left:-i.offsetLeft+x(s.paddingLeft)+x(o.marginLeft),top:-i.offsetTop+x(s.paddingTop)+x(o.marginTop),right:N(a)-M(i)-i.offsetLeft+x(s.paddingRight)-x(o.marginRight),bottom:re(a)-j(i)-i.offsetTop+x(s.paddingBottom)-x(o.marginBottom)}}return b(r.right)&&(t=Math.min(t,r.right)),b(r.bottom)&&(n=Math.min(n,r.bottom)),b(r.left)&&(t=Math.max(t,r.left)),b(r.top)&&(n=Math.max(n,r.top)),[t,n]}function me(e,t,n){return[Math.round(t/e[0])*e[0],Math.round(n/e[1])*e[1]]}function he(e){return e.props.axis===`both`||e.props.axis===`x`}function ge(e){return e.props.axis===`both`||e.props.axis===`y`}function _e(e,t,n){let r=typeof t==`number`?P(e,t):null;if(typeof t==`number`&&!r)return null;let i=ye(n),a=n.props.offsetParent||i.offsetParent||i.ownerDocument.body;return ie(r||e,a,n.props.scale)}function ve(e,t,n){let r=!b(e.lastX),i=ye(e);return r?{node:i,deltaX:0,deltaY:0,lastX:t,lastY:n,x:t,y:n}:{node:i,deltaX:t-e.lastX,deltaY:n-e.lastY,lastX:e.lastX,lastY:e.lastY,x:t,y:n}}function L(e,t){let n=e.props.scale;return{node:t.node,x:e.state.x+t.deltaX/n,y:e.state.y+t.deltaY/n,deltaX:t.deltaX/n,deltaY:t.deltaY/n,lastX:e.state.x,lastY:e.state.y}}function R(e){return{left:e.left,top:e.top,right:e.right,bottom:e.bottom}}function ye(e){let t=e.findDOMNode();if(!t)throw Error(`: Unmounted during event!`);return t}var z=d(n()),B=d(Er()),be=d(ne());function V(...e){({}).DRAGGABLE_DEBUG&&console.log(...e)}var H={touch:{start:`touchstart`,move:`touchmove`,stop:`touchend`},mouse:{start:`mousedown`,move:`mousemove`,stop:`mouseup`}},U=H.mouse,W=class extends z.Component{constructor(){super(...arguments),this.dragging=!1,this.lastX=NaN,this.lastY=NaN,this.touchIdentifier=null,this.mounted=!1,this.handleDragStart=e=>{if(this.props.onMouseDown(e),!this.props.allowAnyClick&&(typeof e.button==`number`&&e.button!==0||e.ctrlKey))return!1;let t=this.findDOMNode();if(!t||!t.ownerDocument||!t.ownerDocument.body)throw Error(` not mounted on DragStart!`);let{ownerDocument:n}=t;if(this.props.disabled||!(e.target instanceof n.defaultView.Node)||this.props.handle&&!O(e.target,this.props.handle,t)||this.props.cancel&&O(e.target,this.props.cancel,t))return;e.type===`touchstart`&&!this.props.allowMobileScroll&&e.preventDefault();let r=ce(e);this.touchIdentifier=r;let i=_e(e,r,this);if(i==null)return;let{x:a,y:o}=i,s=ve(this,a,o);V(`DraggableCore: handleDragStart: %j`,s),V(`calling`,this.props.onStart),this.props.onStart(e,s)!==!1&&this.mounted!==!1&&(this.props.enableUserSelectHack&&ue(n,this.props.nonce),this.dragging=!0,this.lastX=a,this.lastY=o,k(n,U.move,this.handleDrag),k(n,U.stop,this.handleDragStop))},this.handleDrag=e=>{let t=_e(e,this.touchIdentifier,this);if(t==null)return;let{x:n,y:r}=t;if(Array.isArray(this.props.grid)){let e=n-this.lastX,t=r-this.lastY;if([e,t]=me(this.props.grid,e,t),!e&&!t)return;n=this.lastX+e,r=this.lastY+t}let i=ve(this,n,r);if(V(`DraggableCore: handleDrag: %j`,i),this.props.onDrag(e,i)===!1||this.mounted===!1){try{this.handleDragStop(new MouseEvent(`mouseup`))}catch{let e=document.createEvent(`MouseEvents`);e.initMouseEvent(`mouseup`,!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),this.handleDragStop(e)}return}this.lastX=n,this.lastY=r},this.handleDragStop=e=>{if(!this.dragging)return;let t=_e(e,this.touchIdentifier,this);if(t==null)return;let{x:n,y:r}=t;if(Array.isArray(this.props.grid)){let e=n-this.lastX||0,t=r-this.lastY||0;[e,t]=me(this.props.grid,e,t),n=this.lastX+e,r=this.lastY+t}let i=ve(this,n,r);if(this.props.onStop(e,i)===!1||this.mounted===!1)return!1;let a=this.findDOMNode();a&&this.props.enableUserSelectHack&&F(a.ownerDocument),V(`DraggableCore: handleDragStop: %j`,i),this.dragging=!1,this.lastX=NaN,this.lastY=NaN,a&&(V(`DraggableCore: Removing handlers`),A(a.ownerDocument,U.move,this.handleDrag),A(a.ownerDocument,U.stop,this.handleDragStop))},this.onMouseDown=e=>(U=H.mouse,this.handleDragStart(e)),this.onMouseUp=e=>(U=H.mouse,this.handleDragStop(e)),this.onTouchStart=e=>(U=H.touch,this.handleDragStart(e)),this.onTouchEnd=e=>(U=H.touch,this.handleDragStop(e))}componentDidMount(){this.mounted=!0;let e=this.findDOMNode();e&&k(e,H.touch.start,this.onTouchStart,{passive:!1})}componentWillUnmount(){this.mounted=!1;let e=this.findDOMNode();if(e){let{ownerDocument:t}=e;A(t,H.mouse.move,this.handleDrag),A(t,H.touch.move,this.handleDrag),A(t,H.mouse.stop,this.handleDragStop),A(t,H.touch.stop,this.handleDragStop),A(e,H.touch.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&F(t)}}findDOMNode(){if(this.props?.nodeRef)return this.props.nodeRef.current;let e=be.default;return typeof e.findDOMNode==`function`?e.findDOMNode(this):(V(`react-draggable: ReactDOM.findDOMNode is not available in React 19+. You must provide a nodeRef prop. See: https://github.com/react-grid-layout/react-draggable#noderef`),null)}render(){return z.cloneElement(z.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}};W.displayName=`DraggableCore`,W.propTypes={allowAnyClick:B.default.bool,allowMobileScroll:B.default.bool,children:B.default.node.isRequired,disabled:B.default.bool,enableUserSelectHack:B.default.bool,offsetParent:function(e,t){if(e[t]&&e[t].nodeType!==1)throw Error(`Draggable's offsetParent must be a DOM Node.`)},grid:B.default.arrayOf(B.default.number),handle:B.default.string,cancel:B.default.string,nodeRef:B.default.object,nonce:B.default.string,onStart:B.default.func,onDrag:B.default.func,onStop:B.default.func,onMouseDown:B.default.func,scale:B.default.number,className:S,style:S,transform:S},W.defaultProps={allowAnyClick:!1,allowMobileScroll:!1,disabled:!1,enableUserSelectHack:!0,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1};var xe=class extends m.Component{constructor(e){super(e),this.onDragStart=(e,t)=>{if(V(`Draggable: onDragStart: %j`,t),this.props.onStart(e,L(this,t))===!1)return!1;this.setState({dragging:!0,dragged:!0})},this.onDrag=(e,t)=>{if(!this.state.dragging)return!1;V(`Draggable: onDrag: %j`,t);let n=L(this,t),r={x:n.x,y:n.y,slackX:0,slackY:0};if(this.props.bounds){let{x:e,y:t}=r;r.x+=this.state.slackX,r.y+=this.state.slackY;let[i,a]=pe(this,r.x,r.y);r.x=i,r.y=a,r.slackX=this.state.slackX+(e-r.x),r.slackY=this.state.slackY+(t-r.y),n.x=r.x,n.y=r.y,n.deltaX=r.x-this.state.x,n.deltaY=r.y-this.state.y}if(this.props.onDrag(e,n)===!1)return!1;this.setState(r)},this.onDragStop=(e,t)=>{if(!this.state.dragging||this.props.onStop(e,L(this,t))===!1)return!1;V(`Draggable: onDragStop: %j`,t);let n={dragging:!1,slackX:0,slackY:0};if(this.props.position){let{x:e,y:t}=this.props.position;n.x=e,n.y=t}this.setState(n)},this.state={dragging:!1,dragged:!1,x:e.position?e.position.x:e.defaultPosition.x,y:e.position?e.position.y:e.defaultPosition.y,prevPropsPosition:{...e.position},slackX:0,slackY:0,isElementSVG:!1},e.position&&!(e.onDrag||e.onStop)&&console.warn("A `position` was applied to this , without drag handlers. This will make this component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the `position` of this element.")}static getDerivedStateFromProps({position:e},{prevPropsPosition:t}){return e&&(!t||e.x!==t.x||e.y!==t.y)?(V(`Draggable: getDerivedStateFromProps %j`,{position:e,prevPropsPosition:t}),{x:e.x,y:e.y,prevPropsPosition:{...e}}):null}componentDidMount(){window.SVGElement!==void 0&&this.findDOMNode()instanceof window.SVGElement&&this.setState({isElementSVG:!0})}componentWillUnmount(){this.state.dragging&&this.setState({dragging:!1})}findDOMNode(){if(this.props?.nodeRef)return this.props.nodeRef.current;let e=g.default;return typeof e.findDOMNode==`function`?e.findDOMNode(this):null}render(){let{axis:e,bounds:t,children:n,defaultPosition:r,defaultClassName:i,defaultClassNameDragging:a,defaultClassNameDragged:o,position:s,positionOffset:c,scale:l,...u}=this.props,d={},f=null,p=!s||this.state.dragging,h=s||r,g={x:he(this)&&p?this.state.x:h.x,y:ge(this)&&p?this.state.y:h.y};this.state.isElementSVG?f=oe(g,c):d=ae(g,c);let v=m.Children.only(n),y=(0,_.clsx)(v.props.className||``,i,{[a]:this.state.dragging,[o]:this.state.dragged});return m.createElement(W,{...u,onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop},m.cloneElement(v,{className:y,style:{...v.props.style,...d},transform:f}))}};xe.displayName=`Draggable`,xe.propTypes={...W.propTypes,axis:h.default.oneOf([`both`,`x`,`y`,`none`]),bounds:h.default.oneOfType([h.default.shape({left:h.default.number,right:h.default.number,top:h.default.number,bottom:h.default.number}),h.default.string,h.default.oneOf([!1])]),defaultClassName:h.default.string,defaultClassNameDragging:h.default.string,defaultClassNameDragged:h.default.string,defaultPosition:h.default.shape({x:h.default.number,y:h.default.number}),positionOffset:h.default.shape({x:h.default.oneOfType([h.default.number,h.default.string]),y:h.default.oneOfType([h.default.number,h.default.string])}),position:h.default.shape({x:h.default.number,y:h.default.number}),className:S,style:S,transform:S},xe.defaultProps={...W.defaultProps,axis:`both`,bounds:!1,defaultClassName:`react-draggable`,defaultClassNameDragging:`react-draggable-dragging`,defaultClassNameDragged:`react-draggable-dragged`,defaultPosition:{x:0,y:0},scale:1},0&&(t.exports={DraggableCore:W})})),xi=r(((e,t)=>{var n=bi(),r=n.DraggableCore,i=n.default||n;t.exports=i,t.exports.default=i,t.exports.DraggableCore=r})),Si=r((e=>{e.__esModule=!0,e.cloneElement=l;var t=r(n());function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function a(e){for(var t=1;t{e.__esModule=!0,e.resizableProps=void 0;var t=n(Er());xi();function n(e){return e&&e.__esModule?e:{default:e}}e.resizableProps={axis:t.default.oneOf([`both`,`x`,`y`,`none`]),className:t.default.string,children:t.default.element.isRequired,draggableOpts:t.default.shape({allowAnyClick:t.default.bool,cancel:t.default.string,children:t.default.node,disabled:t.default.bool,enableUserSelectHack:t.default.bool,offsetParent:typeof Element<`u`?t.default.instanceOf(Element):t.default.any,grid:t.default.arrayOf(t.default.number),handle:t.default.string,nodeRef:t.default.object,onStart:t.default.func,onDrag:t.default.func,onStop:t.default.func,onMouseDown:t.default.func,scale:t.default.number}),height:function(){var e=[...arguments];let n=e[0];return n.axis===`both`||n.axis===`y`?t.default.number.isRequired(...e):t.default.number(...e)},handle:t.default.oneOfType([t.default.node,t.default.func]),handleSize:t.default.arrayOf(t.default.number),lockAspectRatio:t.default.bool,maxConstraints:t.default.arrayOf(t.default.number),minConstraints:t.default.arrayOf(t.default.number),onResizeStop:t.default.func,onResizeStart:t.default.func,onResize:t.default.func,resizeHandles:t.default.arrayOf(t.default.oneOf([`s`,`w`,`e`,`n`,`sw`,`nw`,`se`,`ne`])),transformScale:t.default.number,width:function(){var e=[...arguments];let n=e[0];return n.axis===`both`||n.axis===`x`?t.default.number.isRequired(...e):t.default.number(...e)}}})),wi=r((e=>{e.__esModule=!0,e.default=void 0;var t=s(n()),r=xi(),i=Si(),a=Ci(),o=[`children`,`className`,`draggableOpts`,`width`,`height`,`handle`,`handleSize`,`lockAspectRatio`,`axis`,`minConstraints`,`maxConstraints`,`onResize`,`onResizeStop`,`onResizeStart`,`resizeHandles`,`transformScale`];function s(e,t){if(typeof WeakMap==`function`)var n=new WeakMap,r=new WeakMap;return(s=function(e,t){if(!t&&e&&e.__esModule)return e;var i,a,o={__proto__:null,default:e};if(e===null||typeof e!=`object`&&typeof e!=`function`)return o;if(i=t?r:n){if(i.has(e))return i.get(e);i.set(e,o)}for(let t in e)t!=="default"&&{}.hasOwnProperty.call(e,t)&&((a=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(a.get||a.set)?i(o,t,a):o[t]=e[t]);return o})(e,t)}function c(){return c=Object.assign?Object.assign.bind():function(e){for(var t=1;tMath.abs(i*n)?t=e/n:e=t*n}let o=e,s=t,c=this.slack||[0,0],l=c[0],u=c[1];return e+=l,t+=u,r&&(e=Math.max(r[0],e),t=Math.max(r[1],t)),i&&(e=Math.min(i[0],e),t=Math.min(i[1],t)),this.slack=[l+(o-e),u+(s-t)],[e,t]}resizeHandler(e,t){return(n,r)=>{let i=r.node,a=r.deltaX,o=r.deltaY;e===`onResizeStart`&&this.resetData();let s=(this.props.axis===`both`||this.props.axis===`x`)&&t!==`n`&&t!==`s`,c=(this.props.axis===`both`||this.props.axis===`y`)&&t!==`e`&&t!==`w`;if(!s&&!c)return;let l=t[0],u=t[t.length-1],d=i.getBoundingClientRect();if(this.lastHandleRect!=null){if(u===`w`){let e=d.left-this.lastHandleRect.left;a+=e}if(l===`n`){let e=d.top-this.lastHandleRect.top;o+=e}}this.lastHandleRect=d,u===`w`&&(a=-a),l===`n`&&(o=-o);let f=this.lastSize?.width??this.props.width,p=this.lastSize?.height??this.props.height,m=f+(s?a/this.props.transformScale:0),h=p+(c?o/this.props.transformScale:0);var g=this.runConstraints(m,h);if(m=g[0],h=g[1],e===`onResizeStop`&&this.lastSize){var _=this.lastSize;m=_.width,h=_.height}let v=m!==f||h!==p;e!==`onResizeStop`&&(this.lastSize={width:m,height:h});let y=typeof this.props[e]==`function`?this.props[e]:null;y&&!(e===`onResize`&&!v)&&(n.persist==null||n.persist(),y(n,{node:i,size:{width:m,height:h},handle:t})),e===`onResizeStop`&&this.resetData()}}renderResizeHandle(e,n){let r=this.props.handle;if(!r)return t.createElement(`span`,{className:`react-resizable-handle react-resizable-handle-`+e,ref:n});if(typeof r==`function`)return r(e,n);let i=typeof r.type==`string`,a=d({ref:n},i?{}:{handleAxis:e});return t.cloneElement(r,a)}render(){let e=this.props,n=e.children,a=e.className,s=e.draggableOpts;e.width,e.height,e.handle,e.handleSize,e.lockAspectRatio,e.axis,e.minConstraints,e.maxConstraints,e.onResize,e.onResizeStop,e.onResizeStart;let u=e.resizeHandles;e.transformScale;let f=l(e,o);return(0,i.cloneElement)(n,d(d({},f),{},{className:(a?a+` `:``)+`react-resizable`,children:[...t.Children.toArray(n.props.children),...u.map(e=>{let n=this.handleRefs[e]??(this.handleRefs[e]=t.createRef());return t.createElement(r.DraggableCore,c({},s,{nodeRef:n,key:`resizableHandle-`+e,onStop:this.resizeHandler(`onResizeStop`,e),onStart:this.resizeHandler(`onResizeStart`,e),onDrag:this.resizeHandler(`onResize`,e)}),this.renderResizeHandle(e,n))})]}))}};e.default=h,h.propTypes=a.resizableProps,h.defaultProps={axis:`both`,handleSize:[20,20],lockAspectRatio:!1,minConstraints:[20,20],maxConstraints:[1/0,1/0],resizeHandles:[`se`],transformScale:1}})),Ti=r((e=>{e.__esModule=!0,e.default=void 0;var t=c(n()),r=s(Er()),i=s(wi()),a=Ci(),o=[`handle`,`handleSize`,`onResize`,`onResizeStart`,`onResizeStop`,`draggableOpts`,`minConstraints`,`maxConstraints`,`lockAspectRatio`,`axis`,`width`,`height`,`resizeHandles`,`style`,`transformScale`];function s(e){return e&&e.__esModule?e:{default:e}}function c(e,t){if(typeof WeakMap==`function`)var n=new WeakMap,r=new WeakMap;return(c=function(e,t){if(!t&&e&&e.__esModule)return e;var i,a,o={__proto__:null,default:e};if(e===null||typeof e!=`object`&&typeof e!=`function`)return o;if(i=t?r:n){if(i.has(e))return i.get(e);i.set(e,o)}for(let t in e)t!=="default"&&{}.hasOwnProperty.call(e,t)&&((a=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(a.get||a.set)?i(o,t,a):o[t]=e[t]);return o})(e,t)}function l(){return l=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let n=t.size;this.props.onResize?(e.persist==null||e.persist(),this.setState(n,()=>this.props.onResize&&this.props.onResize(e,t))):this.setState(n)}}static getDerivedStateFromProps(e,t){return t.propsWidth!==e.width||t.propsHeight!==e.height?{width:e.width,height:e.height,propsWidth:e.width,propsHeight:e.height}:null}render(){let e=this.props,n=e.handle,r=e.handleSize;e.onResize;let a=e.onResizeStart,s=e.onResizeStop,c=e.draggableOpts,u=e.minConstraints,f=e.maxConstraints,p=e.lockAspectRatio,m=e.axis;e.width,e.height;let g=e.resizeHandles,_=e.style,v=e.transformScale,y=h(e,o);return t.createElement(i.default,{axis:m,draggableOpts:c,handle:n,handleSize:r,height:this.state.height,lockAspectRatio:p,maxConstraints:f,minConstraints:u,onResizeStart:a,onResize:this.onResize,onResizeStop:s,resizeHandles:g,transformScale:v,width:this.state.width},t.createElement(`div`,l({},y,{style:d(d({},_),{},{width:this.state.width+`px`,height:this.state.height+`px`})})))}};e.default=g,g.propTypes=d(d({},a.resizableProps),{},{children:r.default.element})})),Ei=r(((e,t)=>{t.exports=function(){throw Error(`Don't instantiate Resizable directly! Use require('react-resizable').Resizable`)},t.exports.Resizable=wi().default,t.exports.ResizableBox=Ti().default})),Di=r(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?r(e):typeof define==`function`&&define.amd?define([`exports`],r):(n=typeof globalThis<`u`?globalThis:n||self,r(n[`fast-equals`]={}))})(e,(function(e){function t(e){return function(t,n,r,i,a,o,s){return e(t,n,s)}}function n(e){return function(t,n,r,i){if(!t||!n||typeof t!=`object`||typeof n!=`object`)return e(t,n,r,i);var a=i.get(t),o=i.get(n);if(a&&o)return a===n&&o===t;i.set(t,n),i.set(n,t);var s=e(t,n,r,i);return i.delete(t),i.delete(n),s}}function r(e,t){var n={};for(var r in e)n[r]=e[r];for(var r in t)n[r]=t[r];return n}function i(e){return e.constructor===Object||e.constructor==null}function a(e){return typeof e.then==`function`}function o(e,t){return e===t||e!==e&&t!==t}var s=Object.prototype.toString;function c(e){var t=e.areArraysEqual,n=e.areDatesEqual,r=e.areMapsEqual,c=e.areObjectsEqual,l=e.areRegExpsEqual,u=e.areSetsEqual,d=e.createIsNestedEqual,f=d(p);function p(e,d,p){if(e===d)return!0;if(!e||!d||typeof e!=`object`||typeof d!=`object`)return e!==e&&d!==d;if(i(e)&&i(d))return c(e,d,f,p);var m=Array.isArray(e),h=Array.isArray(d);if(m||h)return m===h&&t(e,d,f,p);var g=s.call(e);return g===s.call(d)?g===`[object Date]`?n(e,d,f,p):g===`[object RegExp]`?l(e,d,f,p):g===`[object Map]`?r(e,d,f,p):g===`[object Set]`?u(e,d,f,p):g===`[object Object]`||g===`[object Arguments]`?a(e)||a(d)?!1:c(e,d,f,p):g===`[object Boolean]`||g===`[object Number]`||g===`[object String]`?o(e.valueOf(),d.valueOf()):!1:!1}return p}function l(e,t,n,r){var i=e.length;if(t.length!==i)return!1;for(;i-->0;)if(!n(e[i],t[i],i,i,e,t,r))return!1;return!0}var u=n(l);function d(e,t){return o(e.valueOf(),t.valueOf())}function f(e,t,n,r){var i=e.size===t.size;if(!i)return!1;if(!e.size)return!0;var a={},o=0;return e.forEach(function(s,c){if(i){var l=!1,u=0;t.forEach(function(i,d){!l&&!a[u]&&(l=n(c,d,o,u,e,t,r)&&n(s,i,c,d,e,t,r))&&(a[u]=!0),u++}),o++,i=l}}),i}var p=n(f),m=`_owner`,h=Object.prototype.hasOwnProperty;function g(e,t,n,r){var i=Object.keys(e),a=i.length;if(Object.keys(t).length!==a)return!1;for(var o;a-->0;){if(o=i[a],o===m){var s=!!e.$$typeof,c=!!t.$$typeof;if((s||c)&&s!==c)return!1}if(!h.call(t,o)||!n(e[o],t[o],o,o,e,t,r))return!1}return!0}var _=n(g);function v(e,t){return e.source===t.source&&e.flags===t.flags}function y(e,t,n,r){var i=e.size===t.size;if(!i)return!1;if(!e.size)return!0;var a={};return e.forEach(function(o,s){if(i){var c=!1,l=0;t.forEach(function(i,u){!c&&!a[l]&&(c=n(o,i,s,u,e,t,r))&&(a[l]=!0),l++}),i=c}}),i}var b=n(y),x=Object.freeze({areArraysEqual:l,areDatesEqual:d,areMapsEqual:f,areObjectsEqual:g,areRegExpsEqual:v,areSetsEqual:y,createIsNestedEqual:t}),S=Object.freeze({areArraysEqual:u,areDatesEqual:d,areMapsEqual:p,areObjectsEqual:_,areRegExpsEqual:v,areSetsEqual:b,createIsNestedEqual:t}),C=c(x);function w(e,t){return C(e,t,void 0)}var T=c(r(x,{createIsNestedEqual:function(){return o}}));function E(e,t){return T(e,t,void 0)}var ee=c(S);function D(e,t){return ee(e,t,new WeakMap)}var te=c(r(S,{createIsNestedEqual:function(){return o}}));function O(e,t){return te(e,t,new WeakMap)}function k(e){return c(r(x,e(x)))}function A(e){var t=c(r(S,e(S)));return(function(e,n,r){return r===void 0&&(r=new WeakMap),t(e,n,r)})}e.circularDeepEqual=D,e.circularShallowEqual=O,e.createCustomCircularEqual=A,e.createCustomEqual=k,e.deepEqual=w,e.sameValueZeroEqual=o,e.shallowEqual=E,Object.defineProperty(e,"__esModule",{value:!0})}))})),Oi=Ei(),ki=Di();function Ai(e){let{children:t,cols:n,containerWidth:r,margin:i,containerPadding:a,rowHeight:o,maxRows:s,isDraggable:c,isResizable:l,isBounded:u,static:d,useCSSTransforms:f=!0,usePercentages:p=!1,transformScale:m=1,positionStrategy:h,dragThreshold:g=0,droppingPosition:v,className:y=``,style:b,handle:x=``,cancel:S=``,x:C,y:w,w:T,h:E,minW:ee=1,maxW:D=1/0,minH:te=1,maxH:O=1/0,i:k,resizeHandles:A,resizeHandle:j,constraints:M=zn,layoutItem:ne,layout:re=[],onDragStart:N,onDrag:ie,onDragStop:ae,onResizeStart:oe,onResize:se,onResizeStop:P}=e,[ce,le]=(0,K.useState)(!1),[ue,F]=(0,K.useState)(!1),de=(0,K.useRef)(null),I=(0,K.useRef)({left:0,top:0}),fe=(0,K.useRef)({top:0,left:0,width:0,height:0}),pe=(0,K.useRef)(void 0),me=(0,K.useRef)(re);me.current=re;let he=(0,K.useRef)(null),ge=(0,K.useRef)(null),_e=(0,K.useRef)(!1),ve=(0,K.useRef)({x:0,y:0}),L=(0,K.useRef)(!1),R=(0,K.useMemo)(()=>({cols:n,containerPadding:a,containerWidth:r,margin:i,maxRows:s,rowHeight:o}),[n,a,r,i,s,o]),ye=(0,K.useMemo)(()=>({cols:n,maxRows:s,containerWidth:r,containerHeight:0,rowHeight:o,margin:i,layout:[]}),[n,s,r,o,i]),z=(0,K.useCallback)(()=>({...ye,layout:me.current}),[ye]),B=(0,K.useMemo)(()=>ne??{i:k,x:C,y:w,w:T,h:E,minW:ee,maxW:D,minH:te,maxH:O},[ne,k,C,w,T,E,ee,D,te,O]),be=(0,K.useCallback)(e=>{if(h?.calcStyle)return h.calcStyle(e);if(f)return Hn(e);let t=Un(e);return p?{...t,left:Wn(e.left/r),width:Wn(e.width/r)}:t},[h,f,p,r]),V=(0,K.useCallback)((e,{node:t})=>{if(!N)return;let{offsetParent:n}=t;if(!n)return;let r=n.getBoundingClientRect(),i=t.getBoundingClientRect(),a=i.left/m,o=r.left/m,s=i.top/m,c=r.top/m,l;if(h?.calcDragPosition){let t=e;l=h.calcDragPosition(t.clientX,t.clientY,t.clientX-i.left,t.clientY-i.top)}else l={left:a-o+n.scrollLeft,top:s-c+n.scrollTop};if(I.current=l,g>0){let t=e;ve.current={x:t.clientX,y:t.clientY},_e.current=!0,L.current=!1,le(!0);return}le(!0);let u=yn(R,l.top,l.left),{x:d,y:f}=Bn(M,B,u.x,u.y,z());N(k,d,f,{e,node:t,newPosition:l})},[N,m,R,h,g,M,B,z,k]),H=(0,K.useCallback)((e,{node:t,deltaX:n,deltaY:a})=>{if(!ie||!ce)return;let s=e;if(_e.current&&!L.current){let n=s.clientX-ve.current.x,r=s.clientY-ve.current.y;if(Math.hypot(n,r){if(!ae||!ce)return;let n=_e.current;if(_e.current=!1,L.current=!1,ve.current={x:0,y:0},n){le(!1),I.current={left:0,top:0};return}let{left:r,top:i}=I.current,a={top:i,left:r};le(!1),I.current={left:0,top:0};let o=yn(R,i,r),{x:s,y:c}=Bn(M,B,o.x,o.y,z());ae(k,s,c,{e,node:t,newPosition:a})},[ae,ce,R,M,B,z,k]);he.current=V,ge.current=H;let W=(0,K.useCallback)((e,{node:t,size:n,handle:i},a,o)=>{let s=o===`onResizeStart`?oe:o===`onResize`?se:P;if(!s)return;let c;c=t?er(i,a,n,r):{...n,top:a.top,left:a.left},fe.current=c;let l=bn(R,c.width,c.height),{w:u,h:d}=Vn(M,B,l.w,l.h,i,z());s(k,u,d,{e:e.nativeEvent??e,node:t,size:c,handle:i})},[oe,se,P,r,R,k,M,B,z]),xe=(0,K.useCallback)((e,t)=>{F(!0);let n=_n(R,C,w,T,E),r={...t,handle:t.handle};W(e,r,n,`onResizeStart`)},[W,R,C,w,T,E]),Se=(0,K.useCallback)((e,t)=>{let n=_n(R,C,w,T,E),r={...t,handle:t.handle};W(e,r,n,`onResize`)},[W,R,C,w,T,E]),Ce=(0,K.useCallback)((e,t)=>{F(!1),fe.current={top:0,left:0,width:0,height:0};let n=_n(R,C,w,T,E),r={...t,handle:t.handle};W(e,r,n,`onResizeStop`)},[W,R,C,w,T,E]);(0,K.useEffect)(()=>{if(!v)return;let e=de.current;if(!e)return;let t=pe.current||{left:0,top:0},n=ce&&(v.left!==t.left||v.top!==t.top);if(!ce){let t={node:e,deltaX:v.left,deltaY:v.top,lastX:0,lastY:0,x:v.left,y:v.top};he.current?.(v.e,t)}else if(n){let t={node:e,deltaX:v.left-I.current.left,deltaY:v.top-I.current.top,lastX:I.current.left,lastY:I.current.top,x:v.left,y:v.top};ge.current?.(v.e,t)}pe.current=v},[v,ce,k]);let G=_n(R,C,w,T,E,ce?I.current:null,ue?fe.current:null),we=K.Children.only(t),Te=hn(R),Ee=[gn(ee,Te,i[0]),gn(te,o,i[1])],J=[gn(D,Te,i[0]),gn(O,o,i[1])],Y=we.props,De=Y.className,Oe=Y.style,ke=K.cloneElement(we,{ref:de,className:_(`react-grid-item`,De,y,{static:d,resizing:ue,"react-draggable":c,"react-draggable-dragging":ce,dropping:!!v,cssTransforms:f}),style:{...b,...Oe,...be(G)}}),X=j;return ke=(0,q.jsx)(Oi.Resizable,{draggableOpts:{disabled:!l},className:l?void 0:`react-resizable-hide`,width:G.width,height:G.height,minConstraints:Ee,maxConstraints:J,onResizeStart:xe,onResize:Se,onResizeStop:Ce,transformScale:m,resizeHandles:A,handle:X,children:ke}),ke=(0,q.jsx)(_i,{disabled:!c,onStart:V,onDrag:H,onStop:U,handle:x,cancel:`.react-resizable-handle`+(S?`,`+S:``),scale:m,nodeRef:de,children:ke}),ke}var ji=()=>{},Mi=`react-grid-layout`,Ni=!1;try{Ni=/firefox/i.test(navigator.userAgent)}catch{}function Pi(e,t){let n=K.Children.toArray(e),r=K.Children.toArray(t);if(n.length!==r.length)return!1;for(let e=0;e{if(!K.isValidElement(t)||t.key===null)return;let n=String(t.key);a.add(n);let r=e.find(e=>e.i===n);if(r)i.push(jn(r));else{let e=t.props[`data-grid`];e?i.push({i:n,x:e.x??0,y:e.y??0,w:e.w??1,h:e.h??1,minW:e.minW,maxW:e.maxW,minH:e.minH,maxH:e.maxH,static:e.static,isDraggable:e.isDraggable,isResizable:e.isResizable,resizeHandles:e.resizeHandles,isBounded:e.isBounded}):i.push({i:n,x:0,y:On(i),w:1,h:1})}});let o=Fn(i,{cols:n});return r.compact(o,n)}function Ii(e){let{children:t,width:n,gridConfig:r,dragConfig:i,resizeConfig:a,dropConfig:o,positionStrategy:s=ir,compactor:c,constraints:l=zn,layout:u=[],droppingItem:d,autoSize:f=!0,className:p=``,style:m={},innerRef:h,onLayoutChange:g=ji,onDragStart:v=ji,onDrag:y=ji,onDragStop:b=ji,onResizeStart:x=ji,onResize:S=ji,onResizeStop:C=ji,onDrop:w=ji,onDropDragOver:T=ji}=e,E=(0,K.useMemo)(()=>({...ar,...r}),[r]),ee=(0,K.useMemo)(()=>({...or,...i}),[i]),D=(0,K.useMemo)(()=>({...sr,...a}),[a]),te=(0,K.useMemo)(()=>({...cr,...o}),[o]),{cols:O,rowHeight:k,maxRows:A,margin:j,containerPadding:M}=E,{enabled:ne,bounded:re,handle:N,cancel:ie,threshold:ae}=ee,{enabled:oe,handles:se,handleComponent:P}=D,{enabled:ce,defaultItem:le,onDragOver:ue}=te,F=c??vr(`vertical`),de=F.type,I=F.allowOverlap,fe=F.preventCollision??!1,pe=(0,K.useMemo)(()=>d??{i:`__dropping-elem__`,...le},[d,le]),me=s.type===`transform`,he=s.scale,ge=M??j,[_e,ve]=(0,K.useState)(!1),[L,R]=(0,K.useState)(()=>Fi(u,t,O,F)),[ye,z]=(0,K.useState)(null),[B,be]=(0,K.useState)(!1),[V,H]=(0,K.useState)(null),[U,W]=(0,K.useState)(),xe=(0,K.useRef)(null),Se=(0,K.useRef)(null),Ce=(0,K.useRef)(null),G=(0,K.useRef)(0),we=(0,K.useRef)(L),Te=(0,K.useRef)(u),Ee=(0,K.useRef)(t),J=(0,K.useRef)(de),Y=(0,K.useRef)(L);Y.current=L,(0,K.useEffect)(()=>{ve(!0),(0,ki.deepEqual)(L,u)||g(L)},[]),(0,K.useEffect)(()=>{if(ye||V)return;let e=!(0,ki.deepEqual)(u,Te.current),n=!Pi(t,Ee.current),r=de!==J.current;if(e||n||r){let n=Fi(e?u:L,t,O,F);(0,ki.deepEqual)(n,L)||R(n)}Te.current=u,Ee.current=t,J.current=de},[u,t,O,de,F,ye,V,L]),(0,K.useEffect)(()=>{if(!ye&&!(0,ki.deepEqual)(L,we.current)){we.current=L;let e=L.filter(e=>e.i!==pe.i);g(e)}},[L,ye,g,pe.i]);let De=(0,K.useMemo)(()=>{if(!f)return;let e=On(L),t=ge[1];return e*k+(e-1)*j[1]+t*2+`px`},[f,L,k,j,ge]),Oe=(0,K.useCallback)((e,t,n,r)=>{let i=Y.current,a=kn(i,e);if(!a)return;let o={w:a.w,h:a.h,x:a.x,y:a.y,i:e};xe.current=jn(a),Ce.current=i,z(o),v(i,a,a,null,r.e,r.node)},[v]),ke=(0,K.useCallback)((e,t,n,r)=>{let i=Y.current,a=xe.current,o=kn(i,e);if(!o)return;let s={w:o.w,h:o.h,x:o.x,y:o.y,i:e},c=In(i,o,t,n,!0,fe,de,O,I);y(c,a,o,s,r.e,r.node),R(F.compact(c,O)),z(s)},[fe,de,O,I,F,y]),X=(0,K.useCallback)((e,t,n,r)=>{if(!ye)return;let i=Y.current,a=xe.current,o=kn(i,e);if(!o)return;let s=In(i,o,t,n,!0,fe,de,O,I),c=F.compact(s,O);b(c,a,o,null,r.e,r.node);let l=Ce.current;xe.current=null,Ce.current=null,z(null),R(c),l&&!(0,ki.deepEqual)(l,c)&&g(c)},[ye,fe,de,O,I,F,b,g]),Ae=(0,K.useCallback)((e,t,n,r)=>{let i=Y.current,a=kn(i,e);a&&(Se.current=jn(a),Ce.current=i,be(!0),x(i,a,a,null,r.e,r.node))},[x]),je=(0,K.useCallback)((e,t,n,r)=>{let i=Y.current,a=Se.current,{handle:o}=r,s=!1,c,l,[u,d]=Pn(i,e,e=>(c=e.x,l=e.y,[`sw`,`w`,`nw`,`n`,`ne`].includes(o)&&([`sw`,`nw`,`w`].includes(o)&&(c=e.x+(e.w-t),t=e.x!==c&&c<0?e.w:t,c=c<0?0:c),[`ne`,`n`,`nw`].includes(o)&&(l=e.y+(e.h-n),n=e.y!==l&&l<0?e.h:n,l=l<0?0:l),s=!0),fe&&!I&&wn(i,{...e,w:t,h:n,x:c??e.x,y:l??e.y}).filter(t=>t.i!==e.i).length>0&&(l=e.y,n=e.h,c=e.x,t=e.w,s=!1),e.w=t,e.h=n,e));if(!d)return;let f=u;s&&c!==void 0&&l!==void 0&&(f=In(u,d,c,l,!0,fe,de,O,I));let p={w:d.w,h:d.h,x:d.x,y:d.y,i:e,static:!0};S(f,a,d,p,r.e,r.node),R(F.compact(f,O)),z(p)},[fe,de,O,I,F,S]),Me=(0,K.useCallback)((e,t,n,r)=>{let i=Y.current,a=Se.current,o=kn(i,e),s=F.compact(i,O);C(s,a,o??null,null,r.e,r.node);let c=Ce.current;Se.current=null,Ce.current=null,z(null),be(!1),R(s),c&&!(0,ki.deepEqual)(c,s)&&g(s)},[O,F,C,g]),Z=(0,K.useCallback)(()=>{let e=Y.current;if(!e.some(e=>e.i===pe.i)){H(null),z(null),W(void 0);return}let t=F.compact(e.filter(e=>e.i!==pe.i),O);R(t),H(null),z(null),W(void 0)},[pe.i,O,F]),Ne=(0,K.useCallback)(e=>{if(e.preventDefault(),e.stopPropagation(),Ni&&!e.nativeEvent.target?.classList.contains(Mi))return!1;let t=ue?ue(e.nativeEvent):T(e);if(t===!1)return V&&Z(),!1;let{dragOffsetX:r=0,dragOffsetY:i=0,...a}=t??{},o={...pe,...a},s=e.currentTarget.getBoundingClientRect(),c={cols:O,margin:j,maxRows:A,rowHeight:k,containerWidth:n,containerPadding:ge},l=hn(c),u=gn(o.w,l,j[0]),d=gn(o.h,k,j[1]),f=u/2,p=d/2,m=e.clientX-s.left+r-f,h=e.clientY-s.top+i-p,g=Math.max(0,m),_=Math.max(0,h),v={left:g/he,top:_/he,e:e.nativeEvent};if(V)U&&(U.left!==v.left||U.top!==v.top)&&W(v);else{let e=vn(c,_,g,o.w,o.h);H((0,q.jsx)(`div`,{},o.i)),W(v);let t=Y.current.filter(e=>e.i!==o.i);R([...t,{...o,x:e.x,y:e.y,static:!1,isDraggable:!0}])}},[V,U,pe,ue,T,Z,he,O,j,A,k,n,ge]),Pe=(0,K.useCallback)(e=>{e.preventDefault(),e.stopPropagation(),G.current--,G.current<0&&(G.current=0),G.current===0&&Z()},[Z]),Fe=(0,K.useCallback)(e=>{e.preventDefault(),e.stopPropagation(),G.current++},[]),Ie=(0,K.useCallback)(e=>{e.preventDefault(),e.stopPropagation();let t=Y.current,n=t.find(e=>e.i===pe.i);G.current=0,Z(),w(t,n,e.nativeEvent)},[pe.i,Z,w]),Le=(0,K.useCallback)((e,t)=>{if(!e||!e.key)return null;let r=kn(L,String(e.key));if(!r)return null;let i=typeof r.isDraggable==`boolean`?r.isDraggable:!r.static&&ne,a=typeof r.isResizable==`boolean`?r.isResizable:!r.static&&oe,o=r.resizeHandles||[...se],c=i&&re&&r.isBounded!==!1,u=P;return(0,q.jsx)(Ai,{containerWidth:n,cols:O,margin:j,containerPadding:ge,maxRows:A,rowHeight:k,cancel:ie,handle:N,onDragStart:Oe,onDrag:ke,onDragStop:X,onResizeStart:Ae,onResize:je,onResizeStop:Me,isDraggable:i,isResizable:a,isBounded:c,useCSSTransforms:me&&_e,usePercentages:!_e,transformScale:he,positionStrategy:s,dragThreshold:ae,w:r.w,h:r.h,x:r.x,y:r.y,i:r.i,minH:r.minH,minW:r.minW,maxH:r.maxH,maxW:r.maxW,static:r.static,droppingPosition:t?U:void 0,resizeHandles:o,resizeHandle:u,constraints:l,layoutItem:r,layout:L,children:e},r.i)},[L,n,O,j,ge,A,k,ie,N,Oe,ke,X,Ae,je,Me,ne,oe,re,me,_e,he,s,ae,U,se,P,l]),Re=()=>ye?(0,q.jsx)(Ai,{w:ye.w,h:ye.h,x:ye.x,y:ye.y,i:ye.i,className:`react-grid-placeholder ${B?`placeholder-resizing`:``}`,containerWidth:n,cols:O,margin:j,containerPadding:ge,maxRows:A,rowHeight:k,isDraggable:!1,isResizable:!1,isBounded:!1,useCSSTransforms:me,transformScale:he,constraints:l,layout:L,children:(0,q.jsx)(`div`,{})}):null,ze=_(Mi,p),Be={height:De,...m};return(0,q.jsxs)(`div`,{ref:h,className:ze,style:Be,onDrop:ce?Ie:void 0,onDragLeave:ce?Pe:void 0,onDragEnter:ce?Fe:void 0,onDragOver:ce?Ne:void 0,children:[K.Children.map(t,e=>K.isValidElement(e)?Le(e):null),ce&&V&&Le(V,!0),Re()]})}var Li={lg:1200,md:996,sm:768,xs:480,xxs:0},Ri={lg:12,md:10,sm:6,xs:4,xxs:2},zi=()=>{};function Bi(e,t,n,r){let i=[];K.Children.forEach(t,t=>{if(!K.isValidElement(t)||t.key===null)return;let n=String(t.key),r=e.find(e=>e.i===n);if(r)i.push({...r,i:n});else{let e=t.props[`data-grid`];e?i.push({i:n,x:e.x??0,y:e.y??0,w:e.w??1,h:e.h??1,minW:e.minW,maxW:e.maxW,minH:e.minH,maxH:e.maxH,static:e.static,isDraggable:e.isDraggable,isResizable:e.isResizable,resizeHandles:e.resizeHandles,isBounded:e.isBounded}):i.push({i:n,x:0,y:On(i),w:1,h:1})}});let a=Fn(i,{cols:n});return r.compact(a,n)}function Vi(e){let{children:t,width:n,breakpoint:r,breakpoints:i=Li,cols:a=Ri,layouts:o={},rowHeight:s=150,maxRows:c=1/0,margin:l=[10,10],containerPadding:u=null,compactor:d,onBreakpointChange:f=zi,onLayoutChange:p=zi,onWidthChange:m=zi,...h}=e,g=d??vr(`vertical`),_=g.type,v=g.allowOverlap,y=(0,K.useMemo)(()=>r??br(i,n),[]),b=(0,K.useMemo)(()=>xr(y,a),[y,a]),x=(0,K.useMemo)(()=>Sr(o,i,y,y,b,_),[]),[S,C]=(0,K.useState)(y),[w,T]=(0,K.useState)(b),[E,ee]=(0,K.useState)(x),[D,te]=(0,K.useState)(o),O=(0,K.useRef)(n),k=(0,K.useRef)(r),A=(0,K.useRef)(i),j=(0,K.useRef)(a),M=(0,K.useRef)(o),ne=(0,K.useRef)(_),re=(0,K.useRef)(D);(0,K.useEffect)(()=>{re.current=D},[D]);let N=(0,K.useMemo)(()=>(0,ki.deepEqual)(o,M.current)?null:Sr(o,i,S,S,w,g),[o,i,S,w,g]),ie=N??E;(0,K.useEffect)(()=>{N!==null&&(ee(N),te(o),re.current=o,M.current=o)},[N,o]),(0,K.useEffect)(()=>{if(_!==ne.current){let e=g.compact(Mn(ie),w),t={...re.current,[S]:e};ee(e),te(t),re.current=t,p(e,t),ne.current=_}},[_,g,ie,w,v,S,p]),(0,K.useEffect)(()=>{let e=n!==O.current,o=r!==k.current,s=!(0,ki.deepEqual)(i,A.current),c=!(0,ki.deepEqual)(a,j.current);if(e||o||s||c){let e=r??br(i,n),o=xr(e,a),d=S;if(d!==e||s||c){let n={...re.current};n[d]||(n[d]=Mn(E));let r=Sr(n,i,e,d,o,g);r=Bi(r,t,o,g),n[e]=r,C(e),T(o),ee(r),te(n),re.current=n,f(e,o),p(r,n)}let h=Cr(l,e),_=u?Cr(u,e):null;m(n,h,o,_),O.current=n,k.current=r,A.current=i,j.current=a}},[n,r,i,a,S,w,E,t,g,_,v,l,u,f,p,m]);let ae=(0,K.useCallback)(e=>{let t={...re.current,[S]:e};ee(e),te(t),re.current=t,p(e,t)},[S,p]),oe=(0,K.useMemo)(()=>Cr(l,S),[l,S]),se=(0,K.useMemo)(()=>u===null?null:Cr(u,S),[u,S]),P=(0,K.useMemo)(()=>({cols:w,rowHeight:s,maxRows:c,margin:oe,containerPadding:se}),[w,s,c,oe,se]);return(0,q.jsx)(Ii,{...h,width:n,gridConfig:P,compactor:g,onLayoutChange:ae,layout:ie,children:t})}function Hi(e){let{children:t,width:n,breakpoint:r,breakpoints:i,cols:a,layouts:o,onBreakpointChange:s,onLayoutChange:c,onWidthChange:l,rowHeight:u,maxRows:d,margin:f,containerPadding:p,droppingItem:m,compactType:h,preventCollision:g=!1,allowOverlap:_=!1,verticalCompact:v,isDraggable:y=!0,isBounded:b=!1,draggableHandle:x,draggableCancel:S,isResizable:C=!0,resizeHandles:w=[`se`],resizeHandle:T,isDroppable:E=!1,useCSSTransforms:ee=!0,transformScale:D=1,autoSize:te,className:O,style:k,innerRef:A,onDragStart:j,onDrag:M,onDragStop:ne,onResizeStart:re,onResize:N,onResizeStop:ie,onDrop:ae,onDropDragOver:oe}=e,se=h===void 0?`vertical`:h;v===!1&&(se=null);let P={enabled:y,bounded:b,handle:x,cancel:S},ce={enabled:C,handles:w,handleComponent:T},le={enabled:E},ue;ue=ee?D===1?tr:rr(D):nr;let F=vr(se,_,g);return(0,q.jsx)(Vi,{width:n,breakpoint:r,breakpoints:i,cols:a,layouts:o,rowHeight:u,maxRows:d,margin:f,containerPadding:p,compactor:F,dragConfig:P,resizeConfig:ce,dropConfig:le,positionStrategy:ue,droppingItem:m,autoSize:te,className:O,style:k,innerRef:A,onBreakpointChange:s,onLayoutChange:c,onWidthChange:l,onDragStart:j,onDrag:M,onDragStop:ne,onResizeStart:re,onResize:N,onResizeStop:ie,onDrop:ae,onDropDragOver:oe,children:t})}Hi.displayName=`ResponsiveReactGridLayout`;var Ui=Hi,Wi=`react-grid-layout`;function Gi(e){function t(t){let{measureBeforeMount:n=!1,className:r,style:i,...a}=t,[o,s]=(0,K.useState)(1280),[c,l]=(0,K.useState)(!1),u=(0,K.useRef)(null),d=(0,K.useRef)(null);return(0,K.useEffect)(()=>{l(!0)},[]),(0,K.useEffect)(()=>{let e=u.current;if(!(e instanceof HTMLElement))return;let t=null,n=new ResizeObserver(e=>{if(e[0]){let n=Math.round(e[0].contentRect.width);t!==null&&cancelAnimationFrame(t),t=requestAnimationFrame(()=>{s(e=>e===n?e:n),t=null})}});return n.observe(e),d.current=n,()=>{t!==null&&cancelAnimationFrame(t),n.unobserve(e),n.disconnect()}},[c]),n&&!c?(0,q.jsx)(`div`,{className:_(r,Wi),style:i,ref:u}):(0,q.jsx)(e,{innerRef:u,className:r,style:i,...a,width:o})}return t.displayName=`WidthProvider(${e.displayName||e.name||`Component`})`,t}function Ki(e){return e.reduce((e,t)=>Math.max(e,t.y+t.h),0)}function qi(e,t){return e.map(e=>({...e,x:0,w:t,minW:Math.min(e.minW??1,t)}))}var Ji=Gi(Ui),Yi=`fanout.dashboard-id`;async function Xi(e){let t=await D(e);if(!t.ok)throw Error(`Request failed (${t.status})`);return t.json()}var Zi=e=>e.state.status===`error`&&15e3,Qi={layout:[],widgets:[],filters:{window:`1h`,namespace:``}},$i={overview:`System health`,topology:`Service map`,activity:`Recent activity`,assistant:`Ask Fanout`,performance:`Performance`,trace:`Trace focus`,logs:`Logs`},ea={overview:4,topology:4,activity:4,assistant:3,performance:4,trace:4,logs:4};function ta({dashboardID:e=``,agentAvailable:t,onOpenChat:n,onDashboardChange:r}){let i=H(),a=pn({queryKey:[`dashboards`],queryFn:()=>Xi(`/api/dashboards`),refetchInterval:3e3}),[o,s]=(0,K.useState)(()=>e||localStorage.getItem(Yi)||``),c=mn({mutationFn:async e=>{if(!l.data)throw Error(`No dashboard selected`);let t=await D(`/api/dashboards/${encodeURIComponent(l.data.id)}`,{method:`PUT`,headers:{"content-type":`application/json`},body:JSON.stringify({name:l.data.name,description:l.data.description,state:e})});if(!t.ok)throw Error(`Unable to save dashboard`);return t.json()},scope:{id:`dashboard-${o}`},onSuccess:e=>{i.setQueryData([`dashboard`,e.id],e),i.invalidateQueries({queryKey:[`dashboards`]})},onError:e=>console.error(`Dashboard save failed`,e)}),l=pn({queryKey:[`dashboard`,o],queryFn:()=>Xi(`/api/dashboards/${encodeURIComponent(o)}`),enabled:!!o,refetchInterval:c.isPending||c.isError?!1:3e3}),[u,d]=(0,K.useState)(Qi),[f,p]=(0,K.useState)(`lg`);(0,K.useEffect)(()=>{!e||e===o||(s(e),localStorage.setItem(Yi,e))},[e,o]),(0,K.useEffect)(()=>{let t=a.data?.dashboards;if(t?.length&&!(e&&t.some(t=>t.id===e))){if(!e&&o&&t.some(e=>e.id===o)){r?.(o,!0);return}g((t.find(e=>e.is_default)??t[0]).id,!0)}},[e,a.data,o]),(0,K.useEffect)(()=>{c.isPending||c.isError||l.data?.state&&d(l.data.state)},[l.data?.updated_at,c.isPending,c.isError]),(0,K.useEffect)(()=>{c.reset()},[o]);let h=(0,K.useMemo)(()=>{let e=new Map(u.widgets.map(e=>[e.id,e.type])),t=u.layout.map(t=>{let n=ea[e.get(t.i)??`overview`];return{...t,h:Math.max(t.h,n),minH:Math.max(t.minH??0,n)}});return{lg:t,md:t,sm:qi(t,6),xs:qi(t,2),xxs:qi(t,1)}},[u.layout,u.widgets]);function g(e,t=!1){s(e),localStorage.setItem(Yi,e),r?.(e,t)}function _(e){d(e),c.mutate(e)}function v(e){let t=ye(),n=[`topology`,`performance`,`trace`,`logs`].includes(e),r=ea[e];_({...u,widgets:[...u.widgets,{id:t,type:e,title:$i[e],enabled:!0}],layout:[...u.layout,{i:t,x:0,y:Ki(u.layout),w:n?8:4,h:r,minW:3,minH:r}]})}function y(e){_({...u,widgets:u.widgets.filter(t=>t.id!==e),layout:u.layout.filter(t=>t.i!==e)})}if(a.isLoading||o&&l.isLoading)return(0,q.jsx)(na,{label:`Loading your workspace…`});if(a.isError||l.isError)return(0,q.jsx)(na,{label:`Your workspace is unavailable. Try refreshing.`});let S=l.data;return S?(0,q.jsxs)(P,{component:`main`,maw:1440,mx:`auto`,px:{base:`md`,sm:`xl`,lg:72},pt:{base:`xl`,sm:52},pb:100,children:[(0,q.jsxs)(X,{justify:`space-between`,align:{base:`flex-start`,md:`flex-end`},direction:{base:`column`,md:`row`},gap:`lg`,mb:`xl`,children:[(0,q.jsxs)(P,{miw:0,children:[(0,q.jsxs)(we,{shadow:`md`,position:`bottom-start`,withinPortal:!0,children:[(0,q.jsx)(we.Target,{children:(0,q.jsx)(N,{variant:`subtle`,color:`gray`,size:`compact-sm`,leftSection:(0,q.jsx)(sn,{size:16,weight:`fill`}),rightSection:(0,q.jsx)(en,{size:13,weight:`bold`}),children:`Dashboards`})}),(0,q.jsxs)(we.Dropdown,{children:[(0,q.jsx)(we.Label,{children:`Switch dashboard`}),(a.data?.dashboards??[]).map(e=>(0,q.jsx)(we.Item,{leftSection:e.id===o?(0,q.jsx)(re,{size:14,weight:`bold`}):(0,q.jsx)(P,{w:14}),onClick:()=>g(e.id),children:e.name},e.id))]})]}),(0,q.jsx)(x,{order:1,fz:{base:36,sm:52},lts:`-0.045em`,mt:4,children:S.name}),(0,q.jsx)(M,{c:`dimmed`,mt:4,children:S.description||`A focused view of the signals that matter now.`})]}),(0,q.jsxs)(se,{wrap:`nowrap`,w:{base:`100%`,md:`auto`},children:[t&&(0,q.jsx)(N,{variant:`default`,leftSection:(0,q.jsx)(an,{size:16,weight:`fill`}),flex:{base:1,md:`initial`},onClick:()=>n(`Create a new dashboard for me. First ask what I want to monitor, then design it when you have enough context.`),children:`Create with AI`}),(0,q.jsx)(N,{leftSection:l.isFetching?(0,q.jsx)(b,{size:15,color:`white`}):(0,q.jsx)(Qt,{size:16,weight:`bold`}),onClick:()=>void i.invalidateQueries(),children:l.isFetching?`Refreshing`:`Refresh`})]})]}),c.isError&&(0,q.jsx)(ee,{color:`red`,radius:`lg`,mb:`lg`,icon:(0,q.jsx)(ln,{size:18,weight:`fill`}),title:`Dashboard changes not saved`,children:(0,q.jsxs)(se,{justify:`space-between`,gap:`sm`,children:[(0,q.jsx)(M,{size:`sm`,children:`Your latest edits are kept on this screen but Fanout could not store them.`}),(0,q.jsx)(N,{size:`compact-sm`,color:`red`,variant:`light`,onClick:()=>c.mutate(u),children:`Retry save`})]})}),(0,q.jsx)(m,{withBorder:!0,radius:`lg`,p:{base:`md`,sm:`lg`},mb:`lg`,role:`group`,"aria-label":`Dashboard controls`,children:(0,q.jsxs)(X,{align:{base:`stretch`,md:`flex-end`},justify:`space-between`,direction:{base:`column`,md:`row`},gap:`md`,children:[(0,q.jsxs)(se,{align:`flex-end`,gap:`md`,grow:!0,wrap:`wrap`,w:{base:`100%`,md:`auto`},children:[(0,q.jsx)(wt,{label:`Window`,value:u.filters.window,onChange:e=>e&&_({...u,filters:{...u.filters,window:e}}),data:[{value:`15m`,label:`15 minutes`},{value:`1h`,label:`1 hour`},{value:`6h`,label:`6 hours`},{value:`24h`,label:`24 hours`}],w:{base:`100%`,xs:150}}),(0,q.jsx)(A,{label:`Namespace`,value:u.filters.namespace,onChange:e=>d({...u,filters:{...u.filters,namespace:e.currentTarget.value}}),onBlur:e=>_({...u,filters:{...u.filters,namespace:e.currentTarget.value}}),placeholder:`All namespaces`,w:{base:`100%`,xs:220}})]}),(0,q.jsxs)(X,{wrap:{base:`wrap`,sm:`nowrap`},justify:{base:`flex-start`,md:`flex-end`},align:`center`,gap:{base:`sm`,sm:`md`},w:{base:`100%`,md:`auto`},children:[(0,q.jsxs)(se,{gap:`xs`,wrap:`nowrap`,children:[(0,q.jsx)(St,{color:c.isError?`red`:c.isPending?`yellow`:`teal`,processing:c.isPending,size:8}),(0,q.jsx)(M,{c:`dimmed`,size:`sm`,miw:48,children:c.isPending?`Saving`:c.isError?`Failed`:`Saved`})]}),(0,q.jsx)(he,{orientation:`vertical`,h:28}),(0,q.jsxs)(we,{shadow:`md`,position:`bottom-end`,withinPortal:!0,children:[(0,q.jsx)(we.Target,{children:(0,q.jsx)(N,{variant:`default`,leftSection:(0,q.jsx)(R,{size:16,weight:`bold`}),rightSection:(0,q.jsx)(en,{size:14,weight:`bold`}),children:`Add view`})}),(0,q.jsxs)(we.Dropdown,{children:[(0,q.jsx)(we.Label,{children:`Dashboard views`}),Object.entries($i).filter(([e])=>t||e!==`assistant`).map(([e,t])=>(0,q.jsx)(we.Item,{onClick:()=>v(e),children:t},e))]})]}),t&&(0,q.jsx)(N,{variant:`subtle`,color:`gray`,rightSection:(0,q.jsx)(L,{size:16,weight:`bold`}),onClick:()=>n(),children:`Ask Fanout`})]})]})}),(0,q.jsx)(Ji,{className:`dashboard-grid`,layouts:h,breakpoints:{lg:1100,md:800,sm:600,xs:420,xxs:0},cols:{lg:12,md:10,sm:6,xs:2,xxs:1},rowHeight:76,margin:[16,16],containerPadding:[0,0],compactType:`vertical`,draggableCancel:`button,input,select,textarea,a,label,[role=menu]`,onBreakpointChange:p,onDragStop:e=>{f===`lg`&&_({...u,layout:[...e]})},onResizeStop:e=>{f===`lg`&&_({...u,layout:[...e]})},children:u.widgets.map(e=>(0,q.jsx)(`div`,{children:(0,q.jsx)(ra,{widget:e,filters:u.filters,agentAvailable:t,onRemove:()=>y(e.id),onOpenChat:n})},e.id))})]}):(0,q.jsx)(na,{label:`Preparing your workspace…`})}function na({label:e}){return(0,q.jsxs)(T,{mih:`50vh`,children:[(0,q.jsx)(b,{size:`sm`}),(0,q.jsx)(M,{c:`dimmed`,size:`sm`,ml:`sm`,children:e})]})}function ra({widget:e,filters:t,agentAvailable:n,onRemove:r,onOpenChat:i}){let a=new URLSearchParams({window:t.window,limit:`40`});t.namespace&&a.set(`namespace`,t.namespace);let o=typeof e.config?.service==`string`?e.config.service:``;o&&a.set(`service`,o);let s=pn({queryKey:[`overview`,a.toString()],queryFn:()=>Xi(`/api/observability/overview?${a}`),enabled:e.type===`overview`||e.type===`activity`,refetchInterval:Zi}),c=pn({queryKey:[`topology`,a.toString()],queryFn:()=>Xi(`/api/observability/topology?${a}`),enabled:e.type===`topology`,refetchInterval:Zi}),l=pn({queryKey:[`performance`,a.toString()],queryFn:()=>Xi(`/api/observability/performance?${a}`),enabled:e.type===`performance`,refetchInterval:Zi}),u=new URLSearchParams(a);typeof e.config?.severity==`string`&&u.set(`severity`,e.config.severity),typeof e.config?.search==`string`&&u.set(`search`,e.config.search);let d=pn({queryKey:[`logs`,u.toString()],queryFn:()=>Xi(`/api/observability/logs?${u}`),enabled:e.type===`logs`,refetchInterval:Zi}),f=new URLSearchParams(a);typeof e.config?.trace_id==`string`&&f.set(`trace_id`,e.config.trace_id);let p=pn({queryKey:[`trace`,f.toString()],queryFn:()=>Xi(`/api/observability/trace?${f}`),enabled:e.type===`trace`,refetchInterval:Zi}),h=s.data?.data,g={overview:s,activity:s,topology:c,performance:l,logs:d,trace:p}[e.type]?.isError??!1;return(0,q.jsx)(m,{withBorder:!0,shadow:`xs`,radius:`lg`,p:`lg`,h:`100%`,style:{overflow:`hidden`},children:(0,q.jsxs)(oe,{h:`100%`,gap:`sm`,children:[(0,q.jsxs)(se,{justify:`space-between`,align:`flex-start`,wrap:`nowrap`,children:[(0,q.jsxs)(P,{children:[(0,q.jsx)(M,{c:`dimmed`,size:`xs`,fw:700,tt:`uppercase`,lts:`0.1em`,children:e.type===`assistant`?`Guidance`:e.type}),(0,q.jsx)(x,{order:2,fz:`lg`,mt:2,children:e.title})]}),(0,q.jsx)(Se,{label:`Remove ${e.title}`,children:(0,q.jsx)(I,{variant:`subtle`,color:`red`,"aria-label":`Remove ${e.title}`,onClick:r,children:(0,q.jsx)(dn,{size:16,weight:`bold`})})})]}),(0,q.jsxs)(Ce,{type:`auto`,offsetScrollbars:!0,flex:1,children:[g&&(0,q.jsx)(la,{}),!g&&e.type===`overview`&&(0,q.jsxs)(pe,{cols:2,spacing:`sm`,children:[(0,q.jsx)(sa,{label:`Health`,value:h?.health??`—`}),(0,q.jsx)(sa,{label:`Services`,value:h?.service_count??`—`}),(0,q.jsx)(sa,{label:`Spans`,value:h?.total_spans?.toLocaleString?.()??`—`}),(0,q.jsx)(sa,{label:`Error rate`,value:h?`${(h.error_rate*100).toFixed(2)}%`:`—`})]}),!g&&e.type===`topology`&&(0,q.jsx)(ia,{rows:(c.data?.data?.nodes??[]).slice(0,6).map(e=>[(0,q.jsx)(aa,{health:e.health,label:e.service},`health`),`${e.spans?.toLocaleString?.()??0} spans`,`${e.p95_ms?.toFixed?.(1)??`—`} ms p95`]),empty:`No service relationships in this window`}),!g&&e.type===`activity`&&(0,q.jsx)(ia,{rows:(h?.services??[]).slice(0,5).map(e=>[(0,q.jsx)(aa,{health:e.health,label:e.service},`health`),e.error_rate?`${(e.error_rate*100).toFixed(2)}% errors`:`Operating normally`]),empty:`No recent activity`}),!g&&e.type===`performance`&&(0,q.jsx)(ia,{rows:(l.data?.data?.endpoints??[]).slice(0,5).map(e=>[(0,q.jsxs)(M,{fw:600,size:`sm`,truncate:!0,children:[e.method,` `,e.path]},`path`),`${e.calls?.toLocaleString?.()} calls`,`${e.p95_ms?.toFixed?.(1)} ms p95`]),empty:`No endpoint activity in this window`}),!g&&e.type===`logs`&&(0,q.jsx)(ia,{rows:(d.data?.data?.entries??[]).slice(0,5).map(e=>[(0,q.jsx)(_t,{color:oa(e.severity),variant:`light`,children:e.severity},`severity`),e.service,e.body]),empty:`No matching logs in this window`}),!g&&e.type===`trace`&&(0,q.jsxs)(oe,{children:[(0,q.jsxs)(pe,{cols:2,spacing:`sm`,children:[(0,q.jsx)(sa,{label:`Duration`,value:p.data?.data?`${p.data.data.duration_ms.toFixed?.(1)} ms`:`—`}),(0,q.jsx)(sa,{label:`Spans`,value:p.data?.data?.spans?.length??`—`}),(0,q.jsx)(sa,{label:`Services`,value:p.data?.data?.services?.length??`—`}),(0,q.jsx)(sa,{label:`Status`,value:p.data?.data?p.data.data.has_error?`Error`:`Healthy`:`—`})]}),(0,q.jsx)(M,{c:`dimmed`,size:`xs`,ff:`monospace`,truncate:!0,children:p.data?.data?.trace_id?`Trace ${p.data.data.trace_id}`:`Most relevant recent trace`})]}),!g&&e.type===`assistant`&&(n?(0,q.jsxs)(oe,{align:`flex-start`,children:[(0,q.jsx)(M,{c:`dimmed`,children:`Ask a focused question about health, latency, errors, or dependencies.`}),(0,q.jsx)(N,{leftSection:(0,q.jsx)(an,{size:16,weight:`fill`}),onClick:()=>i(`Summarize the most important system changes in the selected window`),children:`Start a conversation`})]}):(0,q.jsx)(M,{c:`dimmed`,children:`Configure an AI provider to enable this view. The rest of this dashboard remains available.`}))]})]})})}function ia({rows:e,empty:t}){return e.length?(0,q.jsx)(Ut.ScrollContainer,{minWidth:420,children:(0,q.jsx)(Ut,{verticalSpacing:`sm`,highlightOnHover:!0,children:(0,q.jsx)(Ut.Tbody,{children:e.map((e,t)=>(0,q.jsx)(Ut.Tr,{children:e.map((e,t)=>(0,q.jsx)(Ut.Td,{children:(0,q.jsx)(M,{component:`span`,size:`sm`,c:t?`dimmed`:void 0,lineClamp:1,children:e})},t))},t))})})}):(0,q.jsx)(ca,{text:t})}function aa({health:e,label:t}){return(0,q.jsx)(_t,{color:e===`healthy`?`teal`:e===`degraded`?`yellow`:`red`,variant:`light`,tt:`none`,children:t})}function oa(e){let t=String(e).toUpperCase();return t===`ERROR`||t===`FATAL`?`red`:t===`WARN`||t===`WARNING`?`yellow`:t===`INFO`?`teal`:`blue`}function sa({label:e,value:t}){return(0,q.jsxs)(m,{withBorder:!0,radius:`md`,p:`sm`,bg:`gray.0`,children:[(0,q.jsx)(M,{c:`dimmed`,size:`xs`,children:e}),(0,q.jsx)(M,{fw:700,fz:`xl`,mt:4,tt:`capitalize`,children:t})]})}function ca({text:e}){return(0,q.jsxs)(T,{py:`xl`,children:[(0,q.jsx)(nn,{size:20}),(0,q.jsx)(M,{c:`dimmed`,size:`sm`,ml:`xs`,children:e})]})}function la(){return(0,q.jsxs)(T,{py:`xl`,children:[(0,q.jsx)(ln,{size:20,weight:`fill`,color:`var(--mantine-color-red-6)`}),(0,q.jsx)(M,{c:`red.7`,fw:500,size:`sm`,ml:`xs`,children:`Couldn't load this view — retrying automatically`})]})}export{ta as t}; \ No newline at end of file diff --git a/internal/ui/dist/assets/dashboards._dashboardId-C0kfFh1B.js b/internal/ui/dist/assets/dashboards._dashboardId-XXCiLIvn.js similarity index 69% rename from internal/ui/dist/assets/dashboards._dashboardId-C0kfFh1B.js rename to internal/ui/dist/assets/dashboards._dashboardId-XXCiLIvn.js index d9228d2f..3aa01ebe 100644 --- a/internal/ui/dist/assets/dashboards._dashboardId-C0kfFh1B.js +++ b/internal/ui/dist/assets/dashboards._dashboardId-XXCiLIvn.js @@ -1 +1 @@ -import{a as e,n as t}from"./useNavigate-DyHkI5qo.js";import{t as n}from"./dashboard-DgsE1DZx.js";import{r,t as i}from"./index-BCWAnY2u.js";var a=e();function o(){let{dashboardId:e}=i.useParams(),o=t(),{agentAvailable:s,openChat:c}=r();return(0,a.jsx)(n,{dashboardID:e,agentAvailable:s,onOpenChat:c,onDashboardChange:(e,t)=>void o({to:`/dashboards/$dashboardId`,params:{dashboardId:e},replace:t})})}export{o as component}; \ No newline at end of file +import{a as e,n as t}from"./useNavigate-DyHkI5qo.js";import{t as n}from"./dashboard-D_m9uFDI.js";import{r,t as i}from"./index-BtOLla1t.js";var a=e();function o(){let{dashboardId:e}=i.useParams(),o=t(),{agentAvailable:s,openChat:c}=r();return(0,a.jsx)(n,{dashboardID:e,agentAvailable:s,onOpenChat:c,onDashboardChange:(e,t)=>void o({to:`/dashboards/$dashboardId`,params:{dashboardId:e},replace:t})})}export{o as component}; \ No newline at end of file diff --git a/internal/ui/dist/assets/dashboards.index-xNh_VXJL.js b/internal/ui/dist/assets/dashboards.index-ClORdutW.js similarity index 82% rename from internal/ui/dist/assets/dashboards.index-xNh_VXJL.js rename to internal/ui/dist/assets/dashboards.index-ClORdutW.js index 6524a988..68038b3f 100644 --- a/internal/ui/dist/assets/dashboards.index-xNh_VXJL.js +++ b/internal/ui/dist/assets/dashboards.index-ClORdutW.js @@ -1 +1 @@ -import{a as e,n as t}from"./useNavigate-DyHkI5qo.js";import{t as n}from"./dashboard-DgsE1DZx.js";import{r}from"./index-BCWAnY2u.js";var i=e();function a(){let e=t(),{agentAvailable:a,openChat:o}=r();return(0,i.jsx)(n,{agentAvailable:a,onOpenChat:o,onDashboardChange:t=>void e({to:`/dashboards/$dashboardId`,params:{dashboardId:t},replace:!0})})}export{a as component}; \ No newline at end of file +import{a as e,n as t}from"./useNavigate-DyHkI5qo.js";import{t as n}from"./dashboard-D_m9uFDI.js";import{r}from"./index-BtOLla1t.js";var i=e();function a(){let e=t(),{agentAvailable:a,openChat:o}=r();return(0,i.jsx)(n,{agentAvailable:a,onOpenChat:o,onDashboardChange:t=>void e({to:`/dashboards/$dashboardId`,params:{dashboardId:t},replace:!0})})}export{a as component}; \ No newline at end of file diff --git a/internal/ui/dist/assets/ibm-plex-mono-latin-400-normal-CvHOgSBP.woff b/internal/ui/dist/assets/ibm-plex-mono-latin-400-normal-CvHOgSBP.woff new file mode 100644 index 0000000000000000000000000000000000000000..8c83fdc0351f0d6451158a64bd5b638d951a8983 GIT binary patch literal 13144 zcmYkj18^qK7cTsU8{6DC8{4*R+iz^!*w}V9+1R#iI~&{l^80^P_uig*s^>g)&h$)o zpYE!zXWZn)!~h_G@4~DBK=`lLE&I0r$NXpgzeQX`R15$B5&7mgz99oi4~ZnMAg}z* zd4D4w002|kbNDAHuBuZ|bePw#QSKsb~lQjL^%Z5>Nty zX~AJYslfw5se{4QplCFZpuj-|I|($wM)uz(_wR6+_24Xw6ChCLnFl?XqS`b6yz9^c zs}jkfuRmjv2igX?NSCBCsf+eOK@7lM<;yG!(d#2W>@mYfa64|sV5fOz^QH=Oah^7m z9@;&b;s3TC1j3kS&0OPojak9GowwdBteW-fKH9osZL}QzJi$23v%UT6@RyHV{Ge=N zl#Y|)?J#dkA%WLX$jtOeIrl)~4y+A3!MINTu?+lU^}vl+;D}x216QIE6gP!5_pA4Z_AF%*-(4b zWo03rqvfPLtV3zqDxb^?6m8y0)fC#is>q1_hf}XkEUz1G$ ztJD=l6J74|tOTw%0oU)Wv>oKa9QP$|J16!Q7?TZj*gBmZi$~cA}N?r+eM_( z>9;4RH{xQ-Gr!;GkDH%JfzGU*@)8$Ikf|d>LyWb;445R9Em@gQ)w5TJP3Lg;KXwpw zx|awt99ufb!g9+!bKw|-ksynXqt;;=}DB=Ybi4UJL;n^wYsz~Je14~>eBU%na zRiToLrt6V2&Xj{hR8kL+sA;21xQS55GiN3_krDA?%81~cc;A`w>ND`1PiK-{dcpLz z9mzh7Z5{f8-sJ4feu_ScHs|;_k@Ld2!085_ieInhUsir!Y1!>>^dwynx#*7Ot#=;c zIgY988++uKoDs(CnVOSEX3Xica3y5FVJ&LRp9#GQ{4RWa*YLa6nSC0$eW3Z6uczG2 zJD9hyucF3iu0{fBqCDec;E9pGmdsvEG`=eDb{- z7w>)|3GIoPbx~5OUWwlYAu0l}tO*fmHkBDx`T2aI z*w(EsvD{TZ?_psR+DAVQTyELmEn^yN*T|Z}FN{jl1}_~1@CYb|)>~=ZXx&JxQyOU~ z0q~+e@a$7CXW91kBk8#tznqFJwMs`U3DyS?$mG5_Dhp7xLOjbvdvRfG1$)JAhyNjt zP2aA^r;2Z-#(nJUpT?~YGZL=*MHA}zrrj9!hdo@ecjr?3-)O{Ctz1zW{uDUY^%R<( zQD=pwrC}ZyOa-zn$xv50_8`y4un&69PuP!1mR2!LS>aYXjF|XASOaUPc4y|4Fm)Wa z(6xbg>j>?%u2bOLA9c%&(>zbZsO#B^JLSA7&zDhzDbzGj1kt$P*#q!p(d(3L7XWgz z(KoTGeoEiMP(_YaSgqk?XuWc^d7eU&hl-gE$;kp~sw#oB1G=1UyFULY3Z@2%}M}KGAk_iuF&rBjx z7@`faY%lhX7zbj#QM|0tvR`crZKbRiNq700iy4eMocKIWbaJ^JP3-0i&nCqe9Aj0- z>?sOG8j+DlERr%}TcVo_=I%G$tkHe)O8Q}~nW}xttsl#ciM;$8Gih4IW;B{;vZqWC z*!>;D$PRsBNr0;|LRPtfBQyUCoB==K*G%p^LVy6%8hb17YcchKLI_*4Xc6zc*^WzN z$JfdLcsmZ0?jAQdo)QX+YQuABg2$98SI04!O%Uzs%v^^ZCVOcQny=z`cy)}YFe{n< zYix`q`IkYE6x)Op7B@EALE#^g?O{Z{wuhbGs#M6A!M$}>UX0d_xk79_LV95P!%D4o zb8-qj`2bG4rzCJW+#K@X4|9X)s-E%`K3xLgF{u@(BPmGZRcuaFcrhiYJL(ccDBjLS z4fY{wf6p2wIG+r!zf4krd4J(Wh$_I1uPvDZd(I2{^I717C`0&EMB%zg6pOL)oo(nW z8OY5G3$@Wc_5ujVtrDexjM9`8QPj=Nt3TX|mD)pX(rZ?C727-~?~e3R>xNAc53O#w zI%7LXzxZ#3@=Y(a0(vPmcf=4jjw#i7`8^E=NcBxa#5I^h3cp2EosI+(!#s^p$>Y_Xx(}@EDVGKu(#AFW%k@XgZ!evf+ zCfU0ml;VW*VYof})~>^wmkU|#c#9U#gbKG@Rkbs$2FK#2&M9dodXU9_IMK7?swYCb};Fv0+QNQvm+lqyk{+?q^;#A)HbMA=E zGv-cV#t5PJ->!lzivEtPu$e@sFeNo532nv~^{tOQVU)Y1EJ>uw6;&K)qBdQ~_G-4* z7cS5D&Kz5s^g&_q0hjoTgAgM58!25f_RB<{z0#eZtYDuyYiq&gpM42{vx}`7gXZNscDD@6yd%C=}KYmK~~z z@2x`hXbt#T2_p4BsP_DlsSl0^H*TBoY%z&C+>|iF6K8^DNzUsI6cf#rH>FL2w~rjW zctLYG4$hq7ENH}r!$TRlEPa)(Zndzs-_f2V8yNe!bT_ywrZa{NNL5{m8mYVzhb(+8 zb$xcrssJ)dV++UWE5R4=p^-fCtx2^tL5c1Xy;*;ct$qD?Mf%v!cE?_EJ{=f zk;FGlkT-SpIP`}PH%fgHU;FN()!^8dEPGYZX`~5*pP~o z2T=;lt~~=WCXC*V3E!&noQ%6_c=_+p*dq!@C(FHSIj+a?LL~5Pz;HBatTTBl#F1X? zTkc2*?O2EI0JsQIkVXFjvJ~uZt;`3wa^+&(%3^dAGrEwB!(%*tJZTBj;&_c@;T$Vu zk|wS>hqso{p5CqN+UCm4ul8B*N5K=N^4g|)o`b|ItsOZo^bSj>k#O6SmZVbtN^k5> zqo_n~Lcv$$L-x5&)8g|znn;&{ia9tqb>r2EjS1HZUfqZP9SS3@GhuA+r$($?^Aq?! zl-Is27Hc$!FiZL5V-u#vx>oOvZ2tg;Pt^mVH*~83*0(jv{d9aF5wDN8dQCaW|FC9V zDk06=a2}F^zmiem#{>Cw5{5#1cXvk{@gC}-nDKOUl6D(_Ha z5f;vg0A`DaRxj#FLMSi(L~YZ|=?ph$v_ZtH-a$&uQTnq2RO*dix7c>^7ORprE1p)x7|hY7D?)D1`<16|-Hh~K z_(iF5eD^b>yTU){IPEQ7&}LfvNjUB?;?XNRUYq^p?A;2XFUKtc^lki8OwmPpE z&sU-*`}g%g|1NY}zWzy}@z!3~RDnQ&)5)F>X73K2JB;AueVK^uqBFw5tZ=`|U>mc4 zDZVe%jRDHuuo7hB6;-l(6#cpH#~uQU7uL`opZ77%6Y3?(u?y|Jk`O&e3TMh|BN+>f z@P?SZk^1l6Ww~c$Gm-FKW_$-vgOAZ8M4vK`_XOMw+ZFcMruVEj@U=ImOITKHmJyk; zByOYhO(MMZqd0}*+QaHOX@#LYR@nwC@G7Za|G4f9fhgs2Y9sUAX$w|~Q6Gz?f0oJP zS3Gr-&9x0~vg?_zwBW!owpp3qrUrXzesQ99QL$vQq$kwp|LJ3vM18yuiCk_{VxkGE z2yi25vf6{)c;xkJ+V->Kh==wc%TgBnIEbV*QNmAngZ2B}N%>BV^B zfvmV3^E>bH zfM)hnIM~b1!xXs-3sQJRrWF2XYkoeb-w%x=vnH(NvwcyF&0bwj2a7)2FqloqXBq~x zG88ZOO2}Qmt!=%H7AF;kHm66?W3L}>7_5bp19jLI_~h{f%_&q7(jwH#yF$(?%d;IV zrnRlY?0B8FB_5ET`Zr9T;hDbJn_WENeA7S(JgYvkUPCJRfanIcw>cl}Qp^|af0*)L z7H0=|eoYPTr#^&V&u=qyEN_3cZ9Oob0O62NMPXx~rU?seQb-@Ez;?4|r}n0I2$y^> z!q0Pa!lR>B{yhTTnSRBixrhqopBFnBvu`bK1%!@aGdGHBY&>o6sF8cD?k4yAH=`E) zM+W$avRdtJm6GZYqZTZ1NnZoXepSi8Oth3h2v;t$TxL}*;`SDwCzSgV1H`ukEf-@w9`j8a5JJ$lcqTCe4P8w zrMoWTo4VcwM64yA8(v4khZ$FL=eFZaVU(;u-yN`Murz7T04+M5A^p7 z-)QK~F54Q{+g^!OLrbFc_`Cy(JaeTofzU}8S+KRmK^_*>1HO}(>X5=tdekeOB>ux%I&F*s7i5Rre@ z>J@+W>hspZt-$@oOLE+tMe~(|IRobYFLoL}FBfdujfX9Uf&I*0&^X z2saKp=Hw-fg3uLk!KEEn%fQEo7flt`HjDf!b?Gux9tAX5O;2hSyAnr5 z_+)nWWKP1?f+G=|z=~N!Y$GJ0NRum(#&%OnW=bNHtT+%?EkroIh&Y`HJ>w!KoTRe| zl$`3%D^mzspX*4GhhjSxql+(%4G)syi#VH_X;}{5b&NPXIR{kV+=q|oZwt#9G zG{FwU1!$C^D@bTE!*?u*aXeGiI6f8pHm0!OJ%)L`eFX-o8sl($-Qf9#T8ygvkMIx+ zz*m1+>qQ7AHRXk3RI@cMwz?^2}>3ydH1tRjbr6~I;(t_9EjgnL*E7}j$jy@ z6;uo69!@8rg`e#q?XlVEW*P;x%nH=zead-zEAvc{HxaMcsh2;RzKHU@~KZ()}I@{i;B8S`_!NUMS&HYJgz?H|uB$$aif5^Ub6J~*#E&H8=KaSJ|)AQ0Cv zJDGuYUq7G8ZTp|eW0lZC^+WZFiov@Ade{w~yAO`)lAC9gPB&+aPhrzCf1QFA4S%S> z`2ey@GV;QB@l;`wkJm8ujz6!%j42{1_J-s3+2n;XQ4iUCMhH~LLgam)`#0%3><@4D z9V{SL#LKX%1k!Tm{xLkFJRk^}W9;Aqnw6QU#VKV@CS1cI^J0)I;idfLxxo!J=tn(b zQiLsI)+!!&-f67%rue0Y&nm-UC4pZZoH z@*tCq@<#xEc(|h}Bpb`VaAY-yvbasVi`c~;q{G*9*L98tx;HF>MsRxT6l6B|NE50_Evu%1p2*Hu3KGCws%VTx8B;$VM^5oA|f31zI$0+r^@OmZkYA z<8$@X`f(~9P8*>U_8Jesb4B8A#SEhfvZl$4*ctcJQQklV^-@(t8_p#>Iuiuhz!RMz z8%#zh95Uf{>shtP^X2gA)>clRCpQ#BJAaV%5JSR<*vrBh{;54xzhqjEC*z29m+dWo zGB;1Q04L19nFS_sP}O7F=m{hwc^xEOs9bz80-HeNuoCZ~Ri{8sGpfjkft@iP*Cw@L zgiDledDQL?7uhTLIQe~o++y?gnfWUVf^oA%$yo!V<l8gW61U~ z4D?Ii@9|^x5#FgAmPH97&={2R2;|>Ne66G`H#G%}gTZ<#Zv6qW;47D(ag;^VMkv{# ztfV;jUy&jrw15yig>YjYqghZb8hf`u96EwxoNkyMYR|OxdVh@ZTuX0a5yUy^gV2Nl zCL*)}bUt-=Bp4enz17}MP{sT?1hWENQgY|sH3K9bK@k^at}zjhTJIt=ZQ#WMM}!(9 z?5Aba8`JzewhoP6H3UrCUm-BAuE+7eF?V;k4iVs9J8>!_5|lvgf2bh}upauJgoo(pVuYA|LG9~xi zKs|?4$Ak;)cvuzAVg9#kW;Y4qUD!j#l2;`@dXDg^6t}u1DG}M9&_Q3nSNPM-((a4C zzA!Lg?9vkF1A3h2ylYedTFJaf8I&l#O&zW7&-*|G#H#el&)KB;oAABm}t zs=4Pnxr1};!)iITyQAeo@=_=m>5Z<< zZSi;>HmiARxC11R&TRrqC9pfz$nSDFBaDTt8a{gMQw3_;Gl5MM*3IT#4U479R+qEm z_q=A77i8CEfs1Y+9r1atLZvLtZsTiA ziodkMqPL()x(UU6|DteG-cOT+npd(gb8#^A}kgf@?I;P<0%g1V+A--{H%Lj{K)71PF4KKox0BiD-EGoARMU*f^+f=l*2Q8VmOe%Et1%$)C9!Up@S` zVO$oh8GkRW=8nzFNW?Ggdk8`LL3(Cp!-WACRPHU?g}FZOqZ^6WUk)3vigycU83hpT zI;5m~6m{Y`+@NkMU&yLYU}AF0L|CIg>`=x8jy39|t#uSYWBdlp^<5z5-{%*Z>FysF z-TFp@diF_7a)?$SOyxLX?Y$^dy_Kw&!?SV=N<8cz&Uf?7 zF;xXiHLP%xW;1e^91U4(5$jphIfd5*h&E3QZ8%pqm1kEsQwy|A$PcDg(3>%rdeuH` zIFmw}Ql1Stq~+nh6vt{anSe9MQp~*J*0UKW)a^+J%$mm`O3sayEm7BK|5=1KfZgyb zU_gU{G#uu_?)LpRbuLbXh?tUxdf6v069ZC!W6U{&6HBL`-z%k)hT2yS{>Z&Kq(sOt zebt84-AR8^#zwWOvYbX*=*@(2Y7)FQ<-cAOIZ$OLCEL|bb0<#&sU^fP)XQK}y4*=# zq$m+1^$WZ1he&E$;C8ngHL5oXk39J}Nk!Af3XW`p}hY zxW%+#s!W>Tj2at;j6wpG?f@k@eKSeTNJCSLnMIeAC1>B}D)~gj)0>d~Vy`*&f%;M3 zBnkM(Ly>mgo`P8@cM zat{98h#>t#*8IqMW9F%__iTmio&oq3L-I%Mp6zgM1DY3iFmbQ5Dtfnj?0FhYZk+r_f$g0v+D0t zFya8xy^xp0^1x=jvzCh=e>b3+I96Z!} zO&x($@%!wjYj9RAN2R3R4I2-pRNusUmbz%uDpjqc1-I_=c#56uu~w6-$C?TEP)zfW z*g2Xc7uVn|xv!k}*&&B?Y0ASL=9pBiyDyR2#SjWnD~jNL;-PYVLffy#Hx%Q zNGyrJm^Znxbzj$NA5wx0ZYjTtPIm+h(S7qlKBeG&Q?v-DJu1#~Ka-Uk5+8de%=0@0 zOdBv_ZyK62_9>H4>J_Abrp&c>XrCQYF~)VJd1rS^onJq>7afMyVE}JDpujK z??2tk-Nt@GdKe3$GNrYSkKjI4w2FO{<0RXul%c5?NN^YTG?ULlN;ig5S1aK$Sz+iA zYNWOGIL_@paOLHZ_{I%)uO=(r;?2kEwX0ZNxwu2NxkqMMJKx*%EEgw7WqO8erU*>W zoCmBDDSd$T0l>j7J>r~7GLZf~h3Rnkqp>Z4LLK`enjn##%)5)3lO-z?C3X-ivBOmB zO^V7U@Xii+5ePUTUUaTytRtk-z&d32qs_r&b|b_IDdURn5W>jX6m#Wem5 zs`z1cj^L;io!Bg6@|RpRSOYrJheyp5M0VrtM1I?AspctLo?n*!@GF5ow=~YNxsZBn zRTZQTN4hs|$h*RiIddTeNU5D_VG3j7Lwhzwe(~dJ(cFC2PFJ>fPHY3G;WB#e=K9}R zLKDMuq*RU??otezIbY{5^(az|%U>AX0nANZH&9b6YcAuoWh-$ye=N1DAD#XQG^u(! zqduS$TPKW)IvdlRX$UO#{+|zl+Bw^`tnQHa4{P4OOI1UMW4!cu zsTdo#eB5ty<%L|CigpLkL7~dm*ZGp8di(Go)DXT9>f8FNQj67nZng-gUsTl`*`N<; zsGG-kFz8byJC{VG=z!fODizkYS{)sDK9j0v1&SsLWe@(kQ&CsRhjaM!SbR=LI2R=K zgsF+CDFbcdsiaab1bxR*vaqwd$~8(+PNz1jtlP!Bc7?WFQmxH6r^L(BR6cuqhnt;J zxiHV2I1407T5UObS>-?1URL%FVDFTn%PfruIT<0py>UPh7q1huu9C4v8zDF;9U>KJ zhuLK65N~Q%WA|98=t<}?UVdvIFUDED^pzg}Yq{#~&M?zXU_6agIGM-VrkG`T#TXsU zE7~bZK1fbXB{=5GSPuvdDkD3^-s!>}0P-UO2}`<#EqB5!fsZiAhChsURX(TL&t%9+ z`dP#?4#;!)vZ33X_~SzN-&B2N6W0vXM%$t{@yiLO{T9XGZFcaX=C z{I)NfgsD2 zRhdMqUebYY#n^dfQEX-YmYg51@j^Ncc_<^!y_H|{AL_k`du|sod4da9;gx0U9StdL z70FC=szj`fTBL zU7UI$yQS-e*S{%8c6I913%_4ddle6fu)wT^BsE7VA4Yl42o5|GIg1Ai)0penT$B?> zM%__gf~SmT1qIt-C8hmV$kaISa%@SNhdftg;siOR|>BnFEXcQg7!J7_AjCeBP?qJXtm9 zT(3W$UE?SZV0VenS};*BlBPnSq<}_GYQ9f@B-h{HJmWhWx5pxJU+1_vSd ztE}i6anFoASyoR)&M}YlOG)>t08g>PnolNlBOXme3EUG?h8XsalnD(`)Iz+r5t-SF z9N~fxU!dkzV1}yM;u{WEh5UPf#J?f{Yffcacd8@el4x@YF0 z`0uMa_N!A-_tjsp8hD*szwG>|cfywAt()%A7{WZior+YBL%-t!ui-B?@vjlxCyVVX z(6KMRywB}_Lx?l{4$Hi!PeC)H^ccXDTJ>l0;}PDJV9I4w_fzt^^qvdl&Uy zmQ0%43jCLCb)a8c=x<@KTj(ASFG)|(@ovOaCPuHc)T5}1DXucpuLbd_UwWFm2RsoM z0fe>F6Sd1(wR~P!e5&g@I1w>4e`q7n-6-bdR|pPwWU(UA&JHBtQb>`Q~% zmC9p-RwJE~RirpE{d}j@sYjgpGzq+RZ1F`7aFKdAG_kZ z`mAuH;eSpT7p>Q~Oe+2Nnv;3N_!8m6z$510(2r%6*?$jKg7Z@A%B;0~Y zR!FTc5ytI&bhDwjT>jm zY+8AZm;&h6M5r^ySI{shwNcSMxo_3H0i}~HJwwr#g{`%%pa$OM_Kxsk-wcp@Da^i& zAY3hduLsu#u7Zfkw@-C`4)D+q#XUn?Px8>a8t050B|n4mn@x@$CFht-lhhGTk$UBb zvRSStq=>O~_YiqOcTL*45M^#>$UPE@JbJyve}vJm9^CUAn*07~o`0!|ogd_`?pK8X zdvQ-C#Mseg79!Z9rM!EfOP=DcCMda8kavY zrN1I5p!hH3f%{t09EgapA===Ldbp4(N=OP-zS*c+f5t;ft!1T6rTJaj00sz&Ka@&1 zB}^pcpOAp?pKuro--23DaQ}zl-VU4K-0!1>mYp*h+JhF6B!B=xVhxm^WNqOu?7xIGnl~AeoaUo z;p5gMuNs~!J@S@1q_?8zIN5SEXRVLx{)6vA+Wvht6?YVO>-HiKioyf~5&SB|ZkTAV z2^Y~ixV5L@@W)-un*v)2=2th1m=>vS!oH(kYifrwU*-P&_O zu%Ukq;-Xwn^QugrApzSoI(|rOKmTUy8EC{@tvPybF30pQvweaZ!_JU8IeEImtg-%8 z^R4pARjfV8XT{g1yV;LBVV|QbaV`D4BY4$-NCROhaMFOD15PgRZilLcFeh|**Z7&> z69FA28MX>)Q-sP<5hV%aP>@UkeF4xY$UB3?0x~K1#?bd-&!_{v++StS&I1+KUw_Ti z0e#h9dd>PiGI?<1l-bt5IeO{s*4Vzud)|e>yxXv=woA5~z54?hWt6}YTN7&)rMPgl z;G$5t;7=jFkqnJ;rD~=hjh?nZ|#owMmT2p zmwx`75EeM#(k#2`dw%>cH&CctGBEdIy%#m^PcRo`@8yt!>=h067Y!JGFeW@>?fSd8t{SEDB0%pG z(MKXL;_qQ0@-YRsl8tf_Bv69R?PHmzLEpJtZC!3|`#i9}K}-m%Xl>EY@xQ1!@1rSn zKhNMP#6&XyOOk9wEOZ|kF1rwZPSr(G6YFHA}zGzq$ z6wh{E5>?-HUKW<`yk8R6|3FifaUe@lk+L*RQkC;SS5c8PRaH@ybzxmlkp{XfsLHFY znxqQLNji?w#&w`Xj-Wwto@EU&ag*mp-%6A06-ZCD?{xjJZ95Dve1u;AQ`0b4UY-95 zIaUyG7Esdy!l!N3s;Z_149muVAPy+IFTlYj4bo?Oxu^?-p*+YjeQY;$_-PiARwagQ zTsb?0Yu*gqm0?l$i~NOjm1SNQeqfSe-o|O7Zdk{>@_L>JmWE~9O`Z2<#DD_MVa`(+ z3|b%VZbkW9joT+(4fnK$OVUx_`>XWhdg}*?&;2Bu-}?i7$j=rIrT-TGru4V$_IB<| zx(h)s4%we}DC@50YxP$>`6R<~SzJz+eZ|zvwi|6x#a@WDk&WW=Ii2ngN1I{t`duH- z5155m;{2Yo5rz}*(gQk5Qd(kaa(aS_lA5Bbvbw^`(%KYF&Ox%tCIRaTaNx5{PFKj- zI4F>aMjzf#s|oqeFMaMp1y8Q<^(j1^EVT8JLVD!fm_{5grAl@1FjW#hY_eO1iF2D# zlDpXv%iG0nw3$nvW2;Qk?<3inE6+?%f2mV>fS*%7hM(zAA-A0kn&Tdu10Azd9)?qC zn$2R62lQYG%y}dJL|~7(Acl}=*a{{+*J7(n2e_-`+$O2#@ji|cFpeUzqtKjWre=P^ z2QaKS@x}_UvR(1KN(q7I=2SlXnW>QcsKl0-SH!v-AtH$IPmVIrlSMbdRZX6kU46WT(&vq$~Z{8wg7+)Y(@P+gM{~rpF BN96zj literal 0 HcmV?d00001 diff --git a/internal/ui/dist/assets/ibm-plex-mono-latin-400-normal-DMJ8VG8y.woff2 b/internal/ui/dist/assets/ibm-plex-mono-latin-400-normal-DMJ8VG8y.woff2 new file mode 100644 index 0000000000000000000000000000000000000000..0804aaff92260b5359330f63e05b9ac25ccabeee GIT binary patch literal 14708 zcmV-)Ig7@3Pew8T0RR9106BC35dZ)H0HGiN067o<0RR9100000000000000000000 z0000QOdEz$9EMf~U;uu?K%G5`TK0we>7U<4oqgE|L^X$*rj z8;_19%I%W^bO(SBuPiMn*f#0ijzrPkb7(X&f{g=!B742;|Gy8w1P?Xm&z;E?bn2ER0SB@N_|ohnR#tmztr{aO7{OhZ>6~^sZ*r{s<4EH4Dw+^f;SyWMD_#BD1JaCUG$UB8U?kpU?cMV6-Uq|O<_fGpiN*+6o|bB1jrJ2rAzlx?#_2c zgagkjBm=2TmlU1Tnn7(K5WM|?iUDakwSHWmB<1+|}P?0FC<>z&ptG-EseJQc5 zFBw?2b#}sz4`c{~Q(|%m&viCct)AK3lD)!xYEuGG z&U7YI6WD%wR{d6~RQ^6aleH;nb8x9zKC&cxVxk+-0+iUo#S7RHwwMeY;_1g)UR)B% zPD;dT!vEYoEZTIUck@nZ)IvxM{X))62l}sFHFvkN8H85e-vo`Q@nyesFCci_p^Z#w zRAl{{|B2Jur{F?pJT){`Wcrn5lnf!f?d9`Ux5YtA1Y{))X@4Mqy8%dq zAnU9M8_1AT$fQE%6tY|)I}~#AzoG!t26*_935S4oEXnXn=ltc2FFl9$Aa9W)`^aDb zigz(=DbWhZa{htLOR-1Mdg5bQa_HEPNOj0m&?O1Py20#1OS5+!pW$A(yCt!ab8 z4Cb(a<=0vf1twYHF{=m^(?UVM#{*CkK(rtSh|cj^u;Ena3&jnK#;OdP7n{d;cd?NS z?AnFxd0B3=p9&2U2bg^ZDO{}Z3|_?n zM;NSeLajE+aWgD|@B_V&6c-^ukTj!VDHAsIg60q)A($Uf*c;Q-Nc*++E2fL0lk*WE zEbKVKz)$F{fDA#9$d)a84@i8O!*$>Oy`rmro{BXHox|hk-b4J^0umfr3^6!wAR>J= zzLm_IJu#@kd&fv2Oqxqtq(??%lDZ^BI4r~vN6xpCBQjQTZ=5g-gV=Hd9VqZk1lkNO zM>u^_Fk%Qlz+`ZB5Y-WbCM8mYd=Dg_L7aJ-LKG*f{Yab`q6Q+^GNnt695LVIr4I!1 zmJ!DwnxZL0RmoU-Pu9LB4m?dE>h6#*XH1_qb;{(S#0%$-#gQdLntnJS)ghr&{t2!Vo~#c?vkiUkKO zC}M6RL5_f^BLerEK8zLkKzcp}fqCp-MXcu>QELL0mSbT8SoR~Z9T)(BIqQOa%1O{; zrc?g^JtzelY>Yv#0a6M72FT$+0y5xXI0QV5k)8!QG4UaQdzf*+6faGkCjU>_hBr;5 zbLn1skWC?!IAoMZjcKZ;Yo^V@5@9pO;tn$moWT-$l3w$($p12`KfJhZmmo zk%}c^@Qm=K22I)&8@g+*UoqlH1kenM`=HncD5^pCjBZhP*KNT6|Hs7qf8*+Kz}3@L z;#JL6^i{%@J6GmiiC(F?TzlCC0n7l_13Q32YCwzvKn$_YA7W5&jsJ6ths6m}p-UE~ zK#7u+tLBfz2gOf-Mh%)IaF;Ayib~$Nrbv}7O;xhRYS*bvw;Z|HniPrF%0q#_W~g<= zRUBW))9nA4&x*x(~_QnM;&v@adl3*;H-1b zyXcHn`t|5FsLy~Q!zPRxGj7(DX){L5TV}zc6_(UnZoM_uT4#gRO!ZOUxvLaeq-gTG zMV4A@iDe!$NyTWZ&2Y>i9iFd`IhI<9y9=qiV~*z7tvMEHj)R(0iJLxgce=?m7_>FC zEv{aSc)8YyVgXQj=3{NhhV_FRVo;uU?5xyd&!k7P_9V4bAJ8Rd@DXK^x!n04+r&VfCmCJcY{VUf8^_5(%)e4Nwg=9oIyYunl zq84-W04ugC;Fmdmn$1*u{&~*dvs}O6vUA^aI61V2uLf%x=xNplWszC$jz(Nq?9X3- z@Kg`p;7zrs)_9e{4Q+$wEvt4^5~v=n!2-bvzNX?G4-k(-8bxMwG3<&b&xV79l}IXWnsD^wo8Pq2W(e zpWDvx+tFE9NUg+-d5N)=)oVwysbamL#0t-HA3=TWWd}hEbf`ZWZT2D_tGA)N@^K zCj0|SfA@2)wO#0(FV5zSMHkw+n`$8o$I(td3PPXWD{Yhtgc7+ddRJ?i^^&%!c8u1s zUh#OIQEFyU7*V*A9!e&_=n8kfWS&i=<~BCgcRX;Op%<)|B-|79EUY5fy}P5pVM6mT z-CJVZ6@a>R18A*;H(`m8hH6-5Z|rV{2ly{h0-1wnq3LRGd0-@$|QmF9w6QWOca#XK$*$R2o$b( z#x-+q%Ww|pG6#m%D^F&s6#gx_*4zlT0B<^x*szT{hBz0FmBh<3aziW}VDR11z9vOJslu3liO3HDTed(Dvz>z8Lu1usSSUT9^ae*W+@j~GV_DVSn4gj#$|1L z9Rq`+I!+nm7Lq3uNfLuajHWb{(o&63Ajd{he^#5SG)3o(R()AB*AaX{ib+etjbTg2 zE!o?$n9BGh<}x*dI}R@F?B{nhtvLWH1B?hrl_|>ehZAQWFm`uM0IGa*Z^>2odiU>% zI1#eZk;Ik^S-K@rWkc7sD|4SbkZjvvQD}@pEXr1!aQiS5yt$43C2pQDnf2+mjo6fS zHx9;F15^$eAyIh4$P1(-u%-a=6wy9$EO8xLiWQ!X3YLTGj^mE6)GE z@>}`C!-)nG2DrO}OHBfIS8vX-lQ!cgGQIplTs4X(`|x6i&4opB(dt*mp%@Wj@PMYO z<1055mTO-v#KPW@_W8+lyZCTOWr;nKOr&fe4%&r+WzkZ6xz(?EYGAl+9S710tCd)_ zIkU|((;Zc`U|=}=w$^1t$>4AU5MF*1IDSsz&Zf`pirG%U+;m{=U;Dw-{9py@*Z+9v zQt3zRTyRvFmauHN>6k!stI?WVoBBZo?pHzbr$YWzx__^IUiM4*Y3_Lkkw>i| zn1QjHS9d9Yw7J?l%p$sZN36yPe+=eN!l$p<;_Gnu;Sv$w%o)pRq6o>CTzgAh6g!LP z`Obnf4}h(1cm9QiVDUz`q$dF`hvqORVM}p4b#JJw9V(i`puoVm+}gwzmTi6Zlo^v# zk))x^6xBh!yuQYktbpbLB_db8lfheI2K&+ywOm)Oc!T6*q1=f^U0?GP8PV^pO`7x-Ay>nD=PLeZO2tb?yBXI!`w|BVMXmAC zKBonLI_`>DY^f`BgcAXhGic|gU$JNj3qtLJVOazlBq};E=QtN^i`=$87}Blu4`(nz z2t(AJZ8|`Cbb)~u)T=>4ZR%m6UenI>mBS{qFUSk-`tKXc7r_I#-*A~VOtQ3)-@dZm z3>`2TgOhV~y826JjEUUdO5Ya!G7Q;48Z@EQ61noKbbV148b?23cimZs{(eMC?*E(u zWIZU@``OyjOYX4cPtH;nj#_1|^Y?tT{tst|%bt|%o!&Ql02l9>+M63TwC`M5z#@3J z>aB>gCg>NSs{u(BbpATLD9|V(B&w!svBp}?g~t(_5Ai_{S;@%wzdVY@mcv_Qh2|;U z?So7MEsi&ad2`6&0EXj87=c7f0K8TToWZ4-P>WYwuy=)?AVY}3no~xPN+__ZCZ@iI z0okA2$hxRs9ImpycyyP+E(?1vB_~k41U3P!q&%xoQVAxMC0vyKQpo;3tBlZ!6GAU& z3e5LvG^{&7#Nw9p@SR`sXl0>I&!lfYdvACSjv}yjTJ67@S!=FF$y%YRxv07n>#Q=? z`XBrmz8!?B-!$o@YBuMJe%F=)2_h6l__F{tuwkoef64FFE9+m9F9}&rLm%boD?GC`o}6 z#C(3IN%972Frwu)(%kc`!zplhAmflqWas8wi+$QYrYRYNqbw&h=SETrw6f?eKw!ta zyNp~Qov*Z?0sC6Xnd|5q4w+s56tb*W5(1R*0>8B7@(mhDf2Qy1)8` zem4~b_if6Iq4|T=4c9qP2Tut9xhG>s>wJ!J%-y>72RB2*-~6yph``7qScc}wMr-n* zvDko};-o~e$P zG3HO|5Cv&0+O1Z0CDa(s9tLTuk-FyRK!2%&`+&(AkQt*BqsCMYf~d7Uh=beq?i_qv0@J zL7%eA$m`#=b^EC@g{)(GZ|j#OGsTig7<-lYr9_b-lH_ZO`s-*AqcC%Bk3yYZ9aA&6 zW0rmC{)xjBnN(YUZ+7Pvh~IPtMmXn#bhAuf><#}QelJb)7E4IG3RsKuSYygpDXh-cur8C<(p>K(Wu$56MDXk!&Q|sCVBj=vrJ)jH4roCbOZ*1MKe~1xFi&Vx3|iczNSxX3{79 z@m8+fIoCRGpjoG8e%zZBnu(&Ddf+dGZV3&ob6WD*@}mj36U4Bwopb`LW6&@}Of@0y60O$Q3OHj+Pw-;aiV_qb4!js)T<$#$rzZuxl!g zh8ghGT1)iX$%JlZpF4p>SafdTd!`lPV~Yx>uK-^@e&69f%rSHu7n>mFYK z547@-?soA|g)zWTEA329*7sZ9X1I{UKdDJf+P9sy47RbBW#lgTuu4HxX&Lm~i1?`^ zk33A&(dlh6D8xFUbuTyv1)>%@j{gAu(9efi{ef2_-9o5Z7u?nG=P1l=xn2A%yk*{T zM`0iqW|DuL5coIPpvFQ(V zLS;h4b+I}y_EV@P;?XEg|H1az>=q{4LIH7f^p71lzzNOa8uHOOUziAk-6@j5Mm%|;Cb}&&zTXo1!D(^63|Ru9@li|l4@Qeo<@l%!F~7skBezaF zvG-`t*leCDpOv%6L>R13xr&FJ0}aihRDbby7HD(p%&UQ?CC<(x$}|-;4hhqQ)hu%$ zV83ubaPWb*Jsv|8VoebnitVcNq*{y9K=|idurjsQuCdn7=cmj<>&9Kt8i*IUP zQvP0D7405}X4)*GbL9`?SJjS1;~!Qy#+!Quu~obEDl%_$VR$-d2bOm#~JfE;tlm-Htez>C@U0RCKF6M=DXE~GI={7~i8D@(IA#U|Sd8dp{3zcdDh#A7zh@|0`wrF$z%_r|AO!z{Om$9kZx@zB;T zP1v)fbPc>>O<+mc^XM&K*fr>13imDb4wl`9x~69QI#L-u25pA>H%E_E{5p~mqQA8* zq4ZjA+5Sh_ZmlH#5uaXo1j$t-)9d={bhwOWCJ(^?8$5TFhEOoYW|h zNkMMlmovd4eI|?T$k|BHF^L8f`Z)Y-X#G+en`nIz#ELn_%*f)`zudT5k1en|0ZqKx z4miB#NblmHmHl<^kM)N7#bp<5sQ z(3-5+`3h|`V+tw*HHBeEk{e;9i5%>n8DsZu=8~f3&=)X%C=|YM9%?X)?8fX zb5X+i=XOah?sKiKMXNVjclNm%Hd!R7v)>*20*xS;Lw>=MrY`f*-=64$H~UQe&G*v` zFekZolnZNM6%`oWAdXT~yvYZP=)n}JULseTbl0rt74jx)J_eLI9Lk?>QJUi>wNKJx zmZ1Afv4t=wZL^haaUZn%<+TN!TE8~H28Y~(?#;IHbGWl-FNv{(^3Cq84lu#3?k%=5 zbogZPygc>w*z0OW=Ns?oKv6GdZYF8aBkz)yz`jhQ8i=4%?F0=(YTB2uCDQ+PqBW$= z%!BGr9gM!0h(`qGFcnT6W)dDDUiL8@pQ=rHZ)Dec=YQ+y-AG8u;_TD&%uP@afi*^FJSf&G={dFA!Dv$;8b^TQ?=|CRtZ&)#-sH# z8uR$5rzRs)F+hAO-cS%bl~;_*!WHwTV#mJ-G4wGX=4TYm&bG0s2CNd57ng@3OMa@^ z{+*xmgya8iPOeV70H$4_&gIUI@xYxMoEzXVp4q*7s|!BLgMV04BwoN4J9%ac#_1sa z_~FXtMVTLAv}T=ZH&uGzJ?4qrM4pO%7{^%8DzkgTJ_riiY)}~TL1C+qeT$`F-D2Ba z`&iS-cYoSUCU5@fF4>FJa9Y^x7S0b9@O_^|Wv#o*+HYFix9glPOLtCl$9l&z8?XCF zY;pgd^wqcjPro8(!F>I4%56*Un1yd*C==DDZ*dboIA%P$+80U`xAF|tI=QkV6Wfw% zznE5Ph$^VEgGbUK#89l4E@n5HAPYiu^#XX|s(sc1O_c&Z0CN#*&iB^yc9=8Qe5wG} zyY1U!#_A(dMBL|3_x7p#B+h>;1FE*X`TqG3hXKXA_PzC1U5Iy?zHF$<1;sRn%w~PR zTWBYjH3l>lVhWo8JHhNTj>(1Kmxx?er*Jjcamq4K-q28P`BVG8uNDd+0=-zP)h`aM z*mcd!nVI=aO{yN6F{5UvEU7_Vr-i$zt5@vUhZrpO=>T}$Zj(ad2`vdpJc_pC z-w6i%!fu`t%*Ex2t`~-H%DyqYAUKpV6P~7YFErqfgMU~CZ4E2PKv6Oc9Wgk!WdTeM z-f`ZK6T9lwQ-2(_7RvN?or95~JMfv|I4KkVtoz~}#2i;NC(#3M(eoyi#XJxZl^V#a za715oWkqbQx)y|2OFcghgRHDqH|Pe^c04KA+)xu&tM2XQEz~Ffc)L4cL!V~sX=TfB1VzW9!&VWV)?4VNjT+_CF;FyAA-$uaX zS|ZI^+}R zB%1rfcTt&oseUh2mFlfiRuCy!*a#sT|GX!M@%_Hwk}Elx%hFQbd;dr>P?}slH2s|a zInnz0X}|JkxudWgHAAT zvvOH<%Yh<#q0!&y4+gqhr0+G+%mE7v`Jpru%lJ$ks~$#!y!7{}#*8YpDkDlY zzE3aIa&Ry&z+l>}ogL!0`DSjAlkti9v1@(pQUPLL?X=w8Yl{tgHUx_IKB1 zVn9@hR_Z~0$geTw17*_MH1NRll#@d@SL%Px?2=qqyMA1ui(^j1&fhi~HvYBK@D?{v zJAH7*Qhoo~-1+wfB2kaJGN-xDZ4%I!Qg>|ISz(3NnqrsM#hf??T;0Tp>s0-8NIMia zorNr&&M7{ksM(Y^+kM>b49#9mnYDATh#2aAvz1~Zo#)us2QPh6{M1_t=JXxdw~w83 zQp-~04am*(`8t|M2yuONp>b&C?nq5zSs4#KvU|ge-J)TxkUK2e9gUp-(xqD3mG=b= zyeNNRLh$)j372rTBk)-7#(4+K{Fa0U@&5+2pr(pndd!?An_GWA1s#h@A&?5Xyzb)o zM>w@k$t@IWw^Uj$2J#E2_FQ;A6Nl}(u`T{IUuNd9$#-AFve9&&U9OkhW<0&wN1{&0 z#!4J)!8BI2K^^jXpf|_}kGCwyqdaA)SWhYa*~t~@A15Xxew_YGJ#S)T#n-{Yz9tEX z_40o$J-lN^NvH^sxf_N0ah+k?DUoauomp(R%a8J32gudJ^?yG(&L&_JbK`Qw1tdO+ z@J)JL)@@YLqLumKLh*m}g26NJmnTSUP}FVQJ**hI?s;6qEz+uH?1s(U)x@ag_uQL2 zn~cR5pkXK#CihUcDQV)0U~7Ck;)6d4oSS?Bpz{`1D*=;|JY6_e9(Y9yYzVrBmy_5d zTmh&%fK{WBXf^iR9TsR=dT2QeJA8L3!^J>_=)6Z_ZeUw!_S1VrUe;7^E3!b+e2*Grd*%1#BmmG&sg z{iZ)LIepWQao4Yq-sH~RaxxEG%3f-~ugglwT8Fn|H*oRTe6s}FWhRowzv*EsCLxvo zGi}+W_L<)=p?a1kZ|l$b@cq0s&nq(n{Ua&|^&{H;7&tQjh*zN}T1bCURk0IwYRRSD z*U2&}`Khj*+glfU|7oGV%gtHcJa9`^*BRMckQvFy^RdS?6x>Poiyh(o%(!UXJv=$w zvHsTnBKIxAvtxXB=fA=DftQs6F`}xRVlgU`$9V3bW zMl^8(RWYZZvTs8}Ty;8SSVhl!)6Y5<3oMZO@Bvz0%<*Efo?-vNz`rR;1RmSL?_Y`F z7eWxy4*!vZaHF6d`R%Dlo#*S(j&3j z47&u79j*nbrG$cZ#09CPgn|JC45cfzlu|*!T)I+A3FWMNxB8;n1Zc|mti?l9BYvd6 z9;W%R{zjPQC;IF98~U4JnxE=#g=zgWey+cvzoowurs+k&8Tr$Flm9ZCImE5Zf8qZ9 zdJF>z{yTleR4niHtKhl*>a7^wN-X+)guLjR=uF9Qxot5IOSk57>`5<#(;KfSkupur z;I_<+Z<^f9WE(KC&8aJN)I4iSReVM2kGM)Z?=SEOEqpCYRD7%Ps`q$mSaUMuL zkWT-)8}O*z_%Gd2)yz@d%*oQvx!W@(UgBW9j-5PWxEn#oHkFQqJg%yPG$A_%9(ivT z_==iGF38ik_*!c&X8g$gfKj9?fgiaaz=l#L|Ac*CCPInvh{4@n9u!LPvBQtt57?e0 zNV8CCDuZbMvL|~qC&s%cqbhLXy}Njn%12RpP?V%<8^)cYBMlfFlSNZ%G(BzF0GS#Ep)EG&?N|SQ>4l9g7MY?v z&ly=E)?+k53;rEj*5NlPOs?uoMXNN?KEf1DTGr3KqP`jnWR7t$H zVDt^)0}UReApIa{mC>8gB{OD%K~JD7y%j2m#j5dyCCNglstVM&sz8!6zf2}c73BT6 zn)y(?LgmRSqCLt`G>)=U0P0DpoGbELz$KP!E0FV`nH9u){1S|3LHr9Pq^v)qc1>$w z@~hU^rmDI}WRLZU%zv(jo~ZaTmak*MJDm`HbaMJHDt_VQV<-4T$rn!0wo9^$w-LEnssgB{hX5igxr?vd512rK=LF1z?r8r^`xb`>a|4*Hwl%0PPhz!-7hir zy*_E7r62e~ba18@B6Vm-#=v=9x>|V>_bT|HR!)bIc@~uB&GDj*9RNA~4k=PBm)xRG z?7*+^&jljLdBU!)MvE}fNM-+NVPd+L^S!oV#t}s9&@d|c3mUWro|$Y#WDKjF5LQTe zsge%~iDE4DV0~zCja@o{f>30`T)2QNlxYfp&WQD6ao>|g$Q#E2g8K+y$nW`llKYey zPW9U`5^m%>@eEQo;#r&7(q%A+-&N#IHnmoX9k4$fIXKQnW)q_gGqY^8^ujj+5(FJ1 z8@Z2_QTG`0{mMxHV7`m->VZ-8H!bE0?Y{l;d+8%?7hRZ`ncE3$&D}}AR z0>C49LE@%fw;-*G_x)alSasB7GF@asyFuwAv$Fow*3^T?AD}q4aIQ57Xy`NywG)rR20c%G>0jKeCX620H z4Pptu8$*n;bXqF`^slR?kr+F`$c^LR>*gHWB}_Q5S_=b@4;VRRl*RpDn4es5AJ?KD znAj%FC0iP<1SUeHp zNi)o%VXB@ju)mu+K5nhMYO zE+_!ZVN{H{d*e2(vK4uIdlE;m4+Pzw*pDV;>xqAxP%F10nfc13jACOco!(Rs8a8{6VEbe*Q?>WDA?GI(xH7|Z3Wk3p=*RTKb)TAX`mLyPHuY3 zW9cjc5^kkf_1RJHOdZ`FV}Z5wBpoE3p6jUufa%I`jCa;6**C`3sSbT3rG^M*WvQq z|HW+1HG`^2 z24a+U%ol~w)jW}o73ys$lO=fsfwGq@9B2`sqR*frUf05x=v813<5Um9oPEWIuG~4f zb|kcJT#?xtgGuVcIEN?mq}NLm9=Jt^TXmyDH#&syPO_%pSe)~O62^@V0V!AqM+^WG z@m3MLiIX_yoio6CS0)*KghqVhL~EyA>ZK)W<7A`t7E@_mS+uP(P2IR#kOpYkHLP1^ zf^je?NzWNwJr7{^{37N!Hjz%Og)L{!X>NVOLOj(h^eV>{2#h@pYphQHq#Li1+;o@2zPRy;4;r6(wq z`%!fEOM_a@Hq)w0EOGx>Iw*V3>+Fyud&)g!aIbvAlM}gPx9*bi@O)P6J(e<#TJuT& zOVRL9@0W}};ftry-H^OmyD%cfo2`w0{J)R90{GT%;gcd6KOqhykPkd5D>*rUaI0y* zh*h*Y>3b(V?$w3fxpy(^7Y?9$-t+^96;>NiELst%$x@ajc+3f63IGSxeybpe?O;}~ z5E2x%&)&p_ej-X9YCxHM@zM6Fsm`BH*PST?G2zV*nV42oTTs1sB=KLyp}>yE7t@3jgKdfks=yB3ZML2}va;3J^Xi ze;~;m;+yic->_IKnIRo>qID;tz|%ueuo6zUBwSGKa-r(ouub_!v)DixMQ%V!#zjRHecxvaUAs*l)qYau)^_n{HkS_={hP zinZ7i{L^^b5HA=0iwwO%{7dF&toJcBLjrW>%=x1EpAESU1;A2*Kx;WpTTaLhxb0xo z%!Ny^x^K71p8UoOp9oCSe9CNK#N0`+#meWLxuMpL>;aen&Sw*Drva8_`aJP=JU3{j z3KE-$dM7|y2yWo%f;I@KbG=&XDZfa)#`zdhs&Cu9%8S*~PfVlt0txzo)~z+7sf3i3 zUqIR>U7XoTvc#?lJl}>~J*#VD&!X0Q7bI+TLXDUBLEMfCM|ZK~wF9t|i<6j!Vj(#E zopOTllxoKMW5~vCzPlQmL`FSzaJ)K=Sk$a!J<3%C)DGu&Bu#PP#GJd=$WwXnQcS%F=E)>*yyP&>PzJ<807pXt(!(v=ou8@FY$!`jOg3Kpj%7zoX()b8Qkb1z7O zHNDjm*FqwNxBNBb~sUVV}Q>_A~r75M{=uJFoGpu8vLR!*y#{zmzPj($a zGDT!P0gG9W5LR;>;ZBOLlNz&t2PL4rzE)?}@yFA-0p{{ahJjZ2d3djGbz07d^Hix0 zaVbJuA9g)8v%i*ch}Uo^s_EL`7s#B4bjTUg-+Ueh40CgX-&W?OR_hTfo({fpgMLn7 zO2@_~E?&dMrjo&~7%XP(y1Hu&ee`yXk6gz!@b-sv z&X}=;?M-*5pa*c{-)?D0IfYMy~4cmMC z{#P`vtat4g%%L*R{j>uY+ ze;sU)AqZpW;!gu+easBNGQO4yC1er|Z&-4=a;@64Ytu`R8o`Qn#iGTbwS;HHJmMZv zYRSmlwrAVR>fI!&RPRpX`ph}bF?sZaI-eo7SHy+oj$SvMU|A&Bp z%HMec`48aIlD$J*`M8aB|MTDWEh>e9HW)yFe_Z-@s%DaZ4EhY2pNhv*5Xla&rxXsf z1jOQ~(x_YmSHwZ|3De`CqA8<=qaxyi7mQIRA&Zm?6e~@4z@VlSn+|sJgOQP-q=!o( zijGHQiB^ncDW5tUEXu?J~L?wCfab3^?B(ARdpm zm~s&iKs!kA_u&xGDhm#k9003vmlZ_GvkFGcjS9}*T!q0umlNJAXAMX#flU&5iV1SX*i|ZYDaV=4m$Chk}F?(0r&Cp<|<4@moB|A@S**3CzT@mR;cox`|K zfzH$j{`NS@-S77I^jV5m-qa7{?=Nj|%fY52ZU2oo);vwd-#UF?m;1CI7tZz%$nNN9 z`|NCb@6KbCt!?LtdQupF*2jMF=QeHUKGo-`HUixs5H%6;L=e;u;Y0)?URCeo9rq3g zj$Clb71un)hNpRkXL)XH=j&^))AwmTI3Yp%W+dYzBrN(uVPOGWnX`5sBt{Vbzy|n; z3`NEtFa`ji2Kn`2{SUaR zCidpP1J%^~-jU*CpIw%^*$=+}>?>Nh9uFBs*J`ABRG z+<)`ZP5#FHUJn2Ppfr$?t$~fnFL(NDPyfbe;_Yx#+S@rf0|3ys{>D}Qj(0{_rKIk@ z4m%J4>Msuf+Uo^6F2*cn1qKqJY92y%!SM&fe~fb7KD=T7Z!1-9WXpb~Fq%{I1QZAy4g^Tx`-cb~0pHKe*Y%#qCw+d@%_r%@gW45ah@aJjQ)gb5h6aHc z#O-T1VsU#3r}42_s@YfxC{QoNWn{Q~7jgr!*U54OX3Hv35cqXlkxZ0U4|YxKVPJ5o zBy#^;jp)(nF*bPPyEe1qa1M zy`FCpDaZXM*qa#K=wIrw{szyVRI6tNxybt{oWvko{^&LYPaq<>P}%xm=Op5N8sx{? z1B&_+in<$$g~w=z%L@DJH(@sVugENEe6V-bM;6S1ZGRW_)KSmsIBUzXzaq8?>2-^N zY!#r$c4HH+5%bCGa+NHPJ1zGl<6th|l@#NorUSdaseHz=#|~?%bQ8WB2}<{xv7@AK z0>kwLJ>!|wV-6eyQT3EzhXm%tMZlx;M?DN(+wY?b1LVjsRwayJ!bmIBooSSJRXPGFA}igVRW=*VHX9F?S`G)HEc=wA*etS$m31l~RLeg}V`CFb+hP}v2=b;> zb`fc`dL1blP1xviOrMVh6J}?UK(p)TJVYhpq-uzepyO>&gT~3_%a&%-4Q&6yW^%a( zo;&fn+{=fDJ9E1nkBKTDpu*YBQJ4Xv>QAeD>+_B#i+O;A6T+vBxpyl#|0Z!(LK789 zi&Q{S{#DLH(ecQgV9Z4zENuV~uWhGIyo*r7F=HY=lNR=3%#7fe{M?=P>eu&N$Y7LN zena=R9nCq4Z5#f9+~VlVd5J!YHe>%fll8*7!s@X(7rR|6xUTv=(sMdK=!m;P^H3el z+8#W_avjq)HuuTUIUg zUVLvR#Cl$cLwh6UToje7cvn5+kq{wE@&hG}Arwlx@i1_>OR26X{)!h1gZ`_N)D4L* zWEI$SZ2NsrG(!w<{QL;~b9@a#*2#rCJt`uilUw5b&Ss zcnZ$Us{jrkzFtS+r&3Wv;6-EqJ~;qiX5B8C z4t^UhR=Q>um2atgD9Xt3zn1G*nVRpM?VjggWTB#_!?H3q)YVlsG=n-EZhONeRxQ`u zUbm-XVQO~UTOao)8*$}&X5S_xCB-JBhm%7Nw|Dx;hMjh00Dpj zAON6#zZRfBKLGIV>rGzZ?${%9r&qX;@gVB_0K)&mwj+cH1rYRax+1nvmQ17yaWqo3 ztlPw!7qX-domcdx>JCvTyVeuD{9-R3@k+dV^8BFi2F9MU074z0toD_%RXt-c;MZOP-?Zc}G1jm?Y;qDkhIv zH#CrjvuyMih{HmKsWI>@X z)%obV*5v-^?UlxS1OayNF|Tf~U91|gh3Ygd7=8AOEA=j~Q5tFFj{`0V=4;AokdJ4Q zLOP>przh1u>j&0|5aPqaAUM82qUbCkt7$VRY?UBfuDhhnnWV zITp6t6*;yRuVI_MDBE$V~|%q+|*aVnwOWs9|atyE8XtHrVG|U&64iHdoZ+ z{aa~l5^e!j#~Pqs&1$va+@z$qan(H71^HM!iM0qFWw}8ytBWj>;E|}Hj4}x6GzfH5 zm7Ua}?^&7)E}L6r#d&vt|MLo>#}*kXT4s1v)Dm|;B1%zvmni~|TO?La`8NX#B-g+b zawEZfHLM<;I+!R(E$*-$X*RVBBtV*lT%8bRZBsnnGn^i?gJ8YbDD2uiyIl2c%Tj3c z4F0TWD$Xcn&-O0k#U^j_JTkXlMfK&+d0a?PAAR!QZrX^sGN(5Y5fQYU zDcxkfIkh9}$4XM9E+gRz^QVCz$@qWCR6||WmO^bpC-sE|`BDc^iBMK%;f14@RP(Hp z2yw=wgw`$gOpR1M{3ehXUZ$=(v~CzB9ktctRhjkG3!fG!J+jIMHM>30C$7-SuJ7C` z(GG+S)o6&sK!l(W7hAz8G40x9Nytz?abox)?clEDyE7wov`O8VWNN=hlZ%{ z6#7(!$tWe_F=>#S?~O~I(e!4<_>{Nww{$r6K* zB~?1)W@2tfFMj*G4}P6T&e*9{zPAHrZ+YL9ci8l$$ivCK>4LRc)IT|5aYRQ7-LA=S zF|?P!jp6tFd~7;HvZ*I_GTKZ}pvWoalT~Gx$J+`YL|3va$lVJdZ^bE;YS0ZknoiRH z+$+nGOqoJZWLR}JvA~gH%QLPdJU8byyDBP>aHyo+`W)6D{t9gb_|T+D_g1CDOf)$|k5h>IZQ(Um~CseS07ss5bUl7`~JNc}TO1{Au(%@x(r$R;ck zS_^K@!yDccCN1P;cI1r%<0@nh4}%7fQ;~~McylLiRq^m^o6Xib5~5$`qvtIst9>9) z9v$hnfrqC7{k7%A+2tzW&b78?9K}Vy7NkufJqjtb=rpW@ZuH!WP5Z*{dOUzr05_+_ zUXGsKlSR}0s#0%=(G}Q6L35a%F+|2u{iIzX+7FMX{|AI+D!*n9^P3q?PI%lj9hHzY z(4($F5N%MHdZ56p-!Al@_xX0&D<5ifc5YtT3A*N~>o;a(9~F{K00WY`LbW>A;81V| z>1gtHP-}vAW*7G7i3!)fwoMr8;`QFnyORpHuFDtdo;kBOC=VZ(_J(Sv-u%X~E%b$` zcXr6b7oG|SaH{_UDz#knrH8LzM#L48(b9r`wX`d7V!i>Wnf#UwIQ;goi)ht84Jc!m z($3uCA|Sd(A6gyDJjM6&-NDZMYZ6++d*#V*DTG$A_Rz#`uklrgxS43yXbWYB=`O z;97YT*bKL;@7*bFw?QHx($nnr=XWHfRaGs&*Ux3lHXS|QAH6sqsSCM!(~t!S%~j;n zO4eqzKVh%L>MJ&bQV}@eDgH)@_)*=jBW)b7LO4InJTpC!+0Znz9q^v$#U*e_N0G0N zJ6|tFcAI`b^g68EowsoYl&F5QZ^F?{eL~5ogsOmo$ZFsPJyR&&uLGcyrChY= zx(@cp=NlxzCf{1FecvzUc+!`7j9`5dkv&Kh@+c9cWm!!`ylkrdMU^u7> zM}yt-p;bUSz@BVaf^S)Fm#d!{S}k@xDYMRaEZlP;4(^6n@Gz?kCEc~X*aGmuQ zri9Xr*33iIpJ86~Jv>)>?cWPZVa;}Y!5Y^aw8t}qPp>A|6W_r`q~=RN+8s_StQ+Gc zGVz)l;>m)|5f`{Nv3KX8%kuS9tA~l(%xvx{B_b=>Qj1PcxC_Lk?-PSAd&mB4x<}P0 z5ztlIiCc{{IOYah2Gcqel&RJi5RWRDwWt;Ru_O_N`did@z>OZ)C-m@1&@T%~3#%7d z0a6r?0o{s_?6#(NMAN%L8zT=XfN50ulX*!Xf7Unt1R~Wo2)Id=XzHx(i;le6?VhXU zcGfk~^i&_5=WTghRJ#>co1caTf!poI8PM$6D5;T&nubYkzaPLF*#thKlJ7E9g$^iLQT&EgGx zoXp{)dbhpR9mGk`6&^&~(0Q9cS&;$x$na7(KX%Iy){`Ryl=O5rZb2Ti{eb%8N)e zQWlV>@6q>58Xl?Q___5{1s^FjG<*)6fVRx!qq}dMUiAp$0}zgK@jxHo-0CAG`gG^& zk^v6TBq>=6Mt#ChKqt$vY+qX@wb^oB+x>G*fknBX_Vw{ma?0T&%2F(nn>V^)r+QNP z(l!@LB<&nmcagBN5wJftRgc}z0T<4qDS9I*cZ$8 zCn|BOxZjGRwt$oiHByL-BbIfNIDGG?4)N=p$MbwQs{tB5NG$#<2-#EzJfRNDeTqYH zbgS{`o=T?IsLp88Me9_wskORj2)$paDLAMGZ94`eE+MV z;p-02BEYzOXaSKSdZ_>2K3ch)2ZtOkSR%v)GdL0yE`k=ZS%|ey_^NhA7g<=1KL6~ zgfOp}jFeQ&!XG5>`3(Efah@EN56x)Stc0eu<5rs&o1b1ECRwck;qV{(n7(eCnOqyV zuJayeST0WZVbMLr=Nem>!iUbG5w^)s{hoBkS|s3=T!ntUws z{V9k!O=ryOKOw#jk5a*>|5#bloww1-wx& z;crw#-o3W){1lF-i=5yU`i(Ysdd~5jFkdXm$o5Ckd$jkB1BUeK>P2@^@~b8*-aa8E zf<3k(0gu6A?ZM3o)dXD#E9UsO-#J4(r$&oB!dkV=JuZjudtR?4W4@S8q)-!##u@7yAg}GO zfa~4$Rn@zrutLSKx1_V&IdZp8n*n!Eo8k%>ynyyh0WV1IbfJ36seMB{jhXG>qA=cI z6O8;m;nD1pZ*x4S+`IWz&-TiM%K4Rfp5u>u@E>tDJj=c-I;}G=`7?LQc_j5>sE&It zyq^XON^-cZ7d5V@psQKreCqEWy}ZtJ!@R;H=Aso2dv0tZ6LvYT> zI)X<^iq;afbcswH51;U5QCH9@L?8i#%RnqB6O#Rv$ zN*wU)B^D$nh(6EMGe2^0aI=zuwBWpr$yRHBfyyOk=QX&JCa~_oKa9YP$`iKc_;i#o z|03(Dn#Z_i%?JDDAFcCjr{*irdj?lXq=Epm=w>k-&&~E}uhT@?4Qzgsh;U)a=CiOt zv=M!IVh+{lhsNn=KGLN^U|Di!l8SyeW;0Hn?E5zI_XN!}6`!dj2UCDv7`61 ze;%Sqb~1-uU-7tE$8DBYcj&>xOjZiI>5)c)+LMn#EaprR;DtjiyKjF0)D$?!g+1|A>7oQ-swZo8Ro!_QRh5kmHA zD)U^IlE3GwPzVwG#VU*gWh&I~~KeUe9)*6<8f?K6{(L_e0+tqIft>Ce!Vvh3#c8unP zKlGvLZ1KHjKOTNJ&Fb|Y$lW}guZlfLLgmsvE}B&{Pn4#0%hNXBtx%*u>EMLcBv8$o z?_iTZXKM#z&ZJhhh%-C!2-v{vrSv9~BwC8tOg4oIib`nRP;v_0n30`Feg}u3-lr!? znjJ`-$5mK0J571G(A9I9bMbdds&V-K-qY*heir>30qP6TqNXGEXDbE!y4wqQ8lV+6 zCVxf1l}C4K_8k*|eRRFyK{;yHp(tY-S)?l=vwM1&wV{k%ei_Z`ym?0J(i0Y2c)>Gf z84FgpKhm{&v%-aCnMdBuEkv*?9@|-#dWeSq?Z_FVVD>#>V1bKwJ1T17%2iN+xPh3s zp_L@4CY?&0ve%6!Q^YP&gSm<&XjMiD4zfWRf7Tr6iPef{*}H2A7pkowUjs&(Ez!zt z@+x)@=-UDAN^~VbT*3ljB)f7=8#tc!`*ELWb{n?w!~(l1?Gpc`^d*j!k{{fH%2z9H zeXq>FqTh?9;LBLs<=p!^&$3N+hV~|HJ5#m&d+y+K!-2ojMA0Ht% z!|URASv=`B7!R(QXc0Rr!3Ug-gJR_P^5lD~gE#d3+C zUbfWyf){@#H~D20U}hZvb1Ykv|PED;9mYa5Nx3!-`!^*+S4^B}yMI`3G z7I>4f<`lFHVKk}ZOn%vfAaR zdxvF#Dp@Eqw%c7i$=B%c5j>);Ya2TZTldO$E}rz-8Xk!|-2952Po4wY{l!iY?%kku zME&x+^|>rh)(6cST4RXqb}JT0CnEnj4vy5)2#vjB1g+b4eLZVYZS*fE!q&St76?67 z?)-eK6~=~|Yd04RV%Z|+aX9Qp&reqb<(lhB&B)71=`A8FJGqkPK1d?Wfi`l#Qlr`x zU+pqlT}q<_o1Xg&k=QwLq*v=0W^iy|U9|;XDX=*%$s85lY{tn~2&x6TUZyR2ktQM< zb#1Nal>FN}r>Sx0(JI15j11w-6Hy}AjP4rkdSzIjX{F$rbb=@b^$`{LXRtbSVyOY= zWm?Z*SeH2fly1k>3XJq}Wx6q`11M5EM7+Vlv`9bDOqE0{Q#(Y};r%ch%~uavL0Kt; zm_UGN?&|sAm!@V8NlG)I71?Zq9NGyBru8iauzyZX+%d#;>OXC@)fA z?VPgTVuK@_zPNI}$efNPm)E_wxC9S{zv*@!x=`k^6FOtduXc|=1Zs|b(Z54@yW~!L*c+tr>c!!{J=(uBY>y)|nxTz3=|!_7s1SL1 zZ=;3Q+xEyfZR*sD!P>NmtT*9~)oo9IFQlTARD?)nRUfWJq7z?BI+jFw#Uq5yP1~Td zsFB|sCawLCT5d7lb!`(+HY{3p1(?>sO-xUZ`O+<2MmuNg-1uKk)CBfBRSZ_sjwWJd ztQeQ!wrQ4BKj&;t(~_%~3ynzq$tQ_d4HVw;I&vxzsDWO$=Rppyw{QgNoAY=KkBA3R zoA^m`#-^m5`XMzlc`;>-mN3ZIoY$~2ynIWC|q@wff9;Zl9 z=`_{Kmd>REpO#5-z&5D0u`hpmBOJ}M(2-=5){O8b^b@dEBo$6uHvdj3s*)vA7Cp4=i~acVc3yX+3co z0bAxzNT2&W-B1`}+z$+1ZU{23>VT4WRj3g+2#_}hBtFT-CCaTra*|W(7~=#>n3fK$? z^@AlctF+0bRX|t^riNihGwUdWZ(2f25$?~|)}1M1e$yCaX^d=4i;d9O#YGcYT|$1g zb{FyKgPoy2?(a3l?hy}c^*G%*$F=OZ43WRTqro0BjLMho-&G?If(V?LyH!CrhSsmB zQJ61k*KmTSJwM?wt%0UX-G>x;f-NW$3PkT*_LHY7|*u`74`R-#+ z0*nnwuB{X020(EGYOvQeE!`$p|GpS*R0=IEl3V3tc7`m2{LO z2nVFY_N5jtysNMKEjPc6pPkITHYT&vH`ssHuR~z(P~QT~vW&T(BnK6-h4QR3e^L&e zD?*5~2!a!FWssZ(GiCh^g{lJt)p;Wyjo)rV25IZP&A0yU^Khk=$;@#P@DR`9&Lv%v zv+ga_bj35L`g}o8ApNbqOmv1z!I()vF(a)WFCxmsu(A2VoGyJ|gLhzEnw4QINHs84 zm#lb~*wGUhu&{3Q=M-U^z%fzWii&EL=dCdrD} zZ7IGz>BXPwmvY<BM{ZLcfYeb-wWZD7 zxAw!qUK?uAPw*>KMv>~)FxydPB;;-~8TL}8;7||`gXU5S;Kn9O$&skWDifyO$~C#) zp&#Kyc5^1X%~|Ex-M;Rqz&{b~y@K0``C{h*dP}y&Y#(lS3;iKWN8!E=tJdJHJ85;~ z7K2rR9UBVdQlb>6dy7>`ToWL?qG8*1hh{9sDKEzUHdr8}Z45xW+2n5VFe5`A7pzi9 zoz{`XF5=D}3(5RInGShhq~UVi6r91&-C$>W8S9bjD63>VD0Kt84Yu_N#lBqKhD%6U~6Xvlhf!v zgnXy?j=*MWt0`iPYOWIOIza1v^;nGcm3E{iw@8OBLsr1s;k03=XAW3LKKW8<`dolK z^}v7R7V?8%5G~E-PPU$;5W(Rb_&LK$>dT+MfXqDb)! zSx1vmro=H7vS8W$BC!fUp~#LLw@wk;Uzj( zidF`^a6NW@ItvyPEmEC25U5QC22Of921a)IJ?A;Du3}6I3MyJkJk-pt(5a&{WA#l{ z`Zv41U20P6>?HA6N@IP>CDFxf#^5i_z!c<1FEO-YA(=Gyb7AAaB9w& z*d=Uf&uY=Vm3L#6?sKxT=|fu~Ep4ny?aE}xBh{&1!l3iOV<=NFx z!B|9`CJBmSl<_Adr@Q8qLf`?XuTk_-rZ1#B8#^*P%6>Y5KU{+*{c{rO#MT)G{R^3A z98{P}hxKO?tQ@ddQbc%i>datfN{ZD>e;wvdpRmZyr4~(^(GO8qA6a9Aplq*9)gC26 z8u|YcER`wO17$=it1H0+y`<9>Qdj_qTusbNjP6O&3h`;p%M+C_35Y7B(OHmJ*B4Eo zgnT*O0eRxUntd|;e7%?LB3(mnLuT?uc-Fazs(G1FA7rm`6>x%e0v1U;+Ig9Mc}_=k zAs6#ThK{v-|F~^av?e38CBYpl@`n+E>_9SljLVo+kZ1hEWj&Ur? zjY82q1{F!FODyU}UMjTH&z+4TOGDk`uc{#f^|9 z07hdxHw%g&Q3Q8Qgz?IW7B+aZbKP@#B6SJ$2z1xf{IJ;dj1wu;njpDUG$c3B`sM$T zf)?K2-;eLl?&_PzDR?Qc3u1od%8{_;44mZlcE#=8Nj#gFje6wB#)Ys!9|QC5|GT19 z;7#gNLbpIw4D}TWW!@#iR(KE%w9pS}O}@^~Aj5_w_mO`^-e@D+B(Yb0dHN_!{PkzY zg829jtR3_#o6syXpW+iJj1@Qhs)y6lA93?&y=4XzSqM0kULRgjQL<$j-AF(E)6MO0 z4rG!sgCl=TyJ(IaH#PGUs~X;~{KbOBH;EZJ5Z8xa#8FKP&O@!~AvZT1N@>@+b8JRZ6Am7r?{ft~tm1Ydjfv@MX z%HV*fX{eaBLB{Ak<|ly z_cX*T_T=8r>I!C`W;Yz(6iOj_hR{#97*oiF=cC7M+s%pR<6EPc(1z)J>XZ4gl1AJ& zxcg&~mB(Yz1kXFV|JSD9@m!DkN>N|CAM~=%InlBYrPY>u^G_IO=E}G4WlGyS(z7Ia zC%)Izg3h8YAfMCT*V;vh%jMG#K)UHJ%KtP}zj9W9LEr4i7d?3HCjdy`|1_@vTin1u z|MfcwIBnmj--SRyAlAPoy75>wdNGtGwTo9i_4BR@hGL-D;lphv}2#j9qZ1gvzeE>O8}!k z()M82_KLPZ*xCW`{fL18><8uV=)18@_H*9?tp_B_`xtP&Dot#(1JJ&XKybIS44d}2 z=mL5tN`rvbfi$dRSky}%ar+q4Mtsc!ASceB$m}sq>{0&=frRR?K2RGjx^a2b$1h4gs<60ZE5K;0r)Jb^+AOIb@JN1vmR5a}@3B6&%f`gd>-*m?6qC*BFxVM3BKN87@0iXzIpe_8jQ?e_woRLh7aQ9f{*O{>JdTufE!Er0RUz%JuNI98=9+&n*JwE{ZEu= zv+=VNWsn}B(i>{nQJdx-zB1^wO9v4#DzQk`jzk>cGe|s7Ae8_-8gfX?7$GTgRA#Bj zQ*pMadCvZnH!Z7HoVCz(R{ew*2S3?2)7>oS|=3|B^u#LoFJ7 z82cbhV?o>K8w_Sv0D{qS;eSJvcRx)WCTygEhR@z@9y0HhkW|Ozg#>TO>zH zwx=vrSr*gI+CI0vPfPp8aL$>o6QBENFg)(dt>2y6-_3P4T@Sns~>6UQPbq<{bb?k1_ZxmDe_g-f})<&>9AFfwMrIMhNZ zXXb-Wev(QA6-jl-R1b(gD?qj@Xej}%J&5rS5dDw0WcdNfuA(LeWUFeRSNGP9^xVz& zexw{;a?cTO_o3MjTa(**i-uv4%JHhP*aYm)JodkB-Lp_Dyw|-D;y2`jIZ0rlM+ThE z1%c4e@cWbXq?=+h+Sh2qAPkD|#6*P$%Wa80?#;dI^)L+mcn6BfLiD`%r?Cd^4s0Yu zJ#vQwzk{EswX+F8kYO&$|L#@04>GspVS=XMY6=~b=w=AznT|Y0c%&n>)qYcYWJWSNW^B_e@pg?e3=7=$ImFC4f zN)sIvNy~QY^MT)Vo#@GyFabrCALW_2bQ{>`pG0ENilHAjCyrqmwmtA>*%nTcz8y1Gl3^l6VB3Oe zm}FhRbIPvkmvfqG>E+(hc^V`J&Y>TbxPXNt@n#q_lH+;Ugr@6aT(q)-d6)((%YGj4 z!iRa8W83(=Tj@aw+}#%k{1wZtnqIqIUthO&G=g94F$Z)?SZ~x>&2$5Y#o}-|oKLnv zr`2e8I9$-CUh@o6F5~fdJnt`Mx#9ErygeVR=tUdie4UE?31xVoLv)g$u)zFPs(^}+ znxLw%xWLNL*yOCv!?LO*g4zl(AP7%Pc8M9Ai(_zyKRpl{ONGuKK_5UyY;UkkYTiH2 zH%?MQd1PE_hwmNcNsh6SHxfOqF?)o`NV?IHg}9OF`lW3*S!;e!nN3jN5xdzM9!zX@ z)M(!~zHz;TyqRsIkH5^D(ww*;KZtUjgm4&{Zed}@_rQox`x60&!mRp%1!Kw^^Ctif zV4G+q*%@bD#_QCJJ&zGmj3RQ7{W(ld&iH~&pjtE+juoI`eiMBbmw>9zt9bmf)_rH3 z45Cn^Zc(|K@_MVSST4Pt-X46jRBeVrcKwjw+O<~23Fbv}(kpgpqU2N1`)I2+aLWc9 dn&<-vtKKsC7gm%%a`T6A=n&m!T+koj{{UynRY(8; literal 0 HcmV?d00001 diff --git a/internal/ui/dist/assets/ibm-plex-mono-latin-500-normal-DSY6xOcd.woff2 b/internal/ui/dist/assets/ibm-plex-mono-latin-500-normal-DSY6xOcd.woff2 new file mode 100644 index 0000000000000000000000000000000000000000..090f82f7ec7997047324e07650865305a099969a GIT binary patch literal 14888 zcmV+@I@iT_Pew8T0RR9106HiD5dZ)H0HUM-06E400RR9100000000000000000000 z0000QOdE!F9EMf~U;uGyDG5`TK0we>7U<4oqgBk~kX$*s4 z8;g)7Y@0^(;5-1)W%qZIqX;$*All&dD1wax0vS0<_W$3Glf#Od!4D&*z_JoluvXSW zsEk5)EqB|2(WYJDMSUVJ(l{cz$2~7|j<9~@xk3Ech{cHv5`@CB^sGC(EaM3cv*rEh z3jh35(rOK4*aI8S*z~r%^4DiP<40)eBVL~We!o7~KCg$t5%vHoB(jMepNf#taX`XE z*bl}8sP7S-IkS7&fG=P2(&34GAzUq`PAR8fWPr9An}C7abRs#B5EKvuiHM_=mQVz3 z6z%CEU41TpbJe=YpRVg`U0=1|zKDmvZ$IY+T$V^2rRhrR3L2L!f7#8y(rp01EP?;G z*1z4NuHvqS>FH@6!hS@blPs|g2=l)%3wrtZkZ}8CfP~9Ceo43=;o_Im-d)*Fc`M~m zf&zFtAOTpmT(0Sy8PCKMT&hGRoK}Wc`V-ts0L;5zJ842FypD$gk*-!LiBeC*CTH^H z%(gF+O<5|pEL}E4vaQ?);m2(0u%&B|3n3z&s*Cpl&bL$rFwkHTj;z3)Tg1A21Q#lH zEpU`z8m?gE|LQa6|G&-3RQJ6qNz=x%TGIy7sc91gS&fF$T}};2QvK?;{*=C+{y-bG zZ6Ym0m%g+snpuR{oH=qt6eJFbf*^3X;r^dZv)!>gJ~;&ZdLZs|ZK~1Vv9!CR5qK?I zU_$vomP{xg5$URgS4XH2VnEK1A zmLSm!;sQlG|DMNwieI|McVgeja0HDcAY4#mRAk*yiyrMsZ2VnQTQ^hcLjefF9|i8HUo(CPv<4U#U#NnvN9vEogKYxgrJ`edh&~D0LK7i9BP3rlzD9sldLc#&5Oay-YgG_KNvQ5@Y*fi zn$StW+(22vq{-6!n6wwKT$g7}5)EAXmW$b&;+rN46u>?#aW>!JSnkGAY~TdW)RM+U-d0F2oSBC}Y4X9s(sy_9FI%mxGKD-5 zCd^l$T2gSN%#LFd$dk?&E&BjWCSwID)KvG5Nf9ZFW6~sv63Um!XLJ6Rz+NGf=&*tn zq||Gfzai^hFtLmkq}&`9^G!G2aQ(GuP^DZM3k?ZL9Gh=ODN3K(*L_Tpd+!Q=ZJodD z4}abYd&Zf_6f0Q43RbX!6|5iyf*_~U%rj-lmWu&hh*!--Q7H2aOj$4n;)1#`f)gwi z_|`UoPd%<+$H&4D6qux;xHtvrb;yQ2`yIg(3; zA;49=dRS^oL8wwr)Sq*?A9UB1;gT-|Y|9=3zpx12} z^);Y+WG}D~1q$eZ*(d~N8fpSs3ruZMl)U5q=vhLRX4k<^qG<=~q zAIOLDHa?1%`7GYfZ(KyOPFu8S@pzk$+YP4R39=Lls?uj|#MG#LHZ}#?QO)LFygwg& zv=X2BjEQe_0LFrL542@~))Ht?G)Nsx1_k*4AHo06Mn%Brc+@tk9L0_jMs7cn;R-a9Weyyokg@m>1W}#tJ#SAdn zBvS;bMZ{F-WbhtPGqs|+;-j9KMj395w(9)_9W?Wru2_?|(3Lq8UA^{h*I=su_bq&0 zK6_Per$Iw@+hLbI_B!N%gFbh}un~vtcht#ajyrv#*Qtx=&R@86c7p}xn&(6Fec&S> zTkKN{EwbEF%Y5b&1J+n+m33C@v({FdY_`QV8*O)HeQ3H=#;|iJ<5bE8X#nt3xRqHT zB4DFJMMy#i5CD@~21Ck&rUPiIf~Fg2abT#u4E3DhJJ9bsL3{f09>mF44xxM0cVKVs zp+#@qWIADgAz#u?w;P+Sbt3)m;Oa$*PPD(UjDtoVtl=lu=f^Lce4g@5LPMi%LM=}XH`1Z!S_695ed*M{|k5Qyu z)aiPq{@p|ESjTQ%0Bg1KC62?+%QHz_*824`tgM#?P8n2>>Mv5;*=lRnSdh+nslaBd ze;Y5QldX;~d~VSEC4po>PKQ?q8^8ssleIt^dBBN7PZvu=p#()_CBardXwtGXowWU9 zHT`;>BJSQw1Vm}*Sg4xYG(hG9Y6HkBFslVH{}=Q=gZd5ZX#lwfDQ-O#2AOn6C8U+8 zpT@w`GR1Zx@`&axm%PU$o`BQYEy?x#SO>sWEZYm)YPGK>5j=2ZoU_tmge|X7f>%#i zm00tIT2DP%0d-2tA!|zrpH%ATb(OHII>7hT6iQp2#HU;L`zt-Twk~%{JE!J(>U4j? zaG&PN$6g5aqMsEskH3!?VVqDA4H*oi{Lu~BL4On0T}x^uE|u5;)5*wF!w=m|*Y zJa7)xe#4;4}lo zE2ng>w3D-O5_|g0x-`-3>1^R-@cA znuo!AmKpo!{RZ#*L@`W4L`lNYllGn(Ny;21w98U3l0!Ju;aL^XUn4&fQliPdnFYZS z{$Iz$K;TuPLY9FcuI`6gX5}2&4jT(_RVoWyf$NYM zCv9)&=s#g-Z2I@U7yS)gaJLR_EPuM5Eh!}nqZkS{}FfVo2#hJ5*55{!m{wnTI$+g0m}__GBBSddbEhVDTa~E zZ_rv}wYygg!Q%RG!joo0=M0&<>e$HYJhrm&fjgDnrb~N#MeQ;b90`I3Veww5b9ZDX zqwxRs0m1bq(Mp0@nuRw(3f%)|?}RxEW4{DkM7s z#do=f{LW}Vl4QlPDkeMZ;Z}O`mgG56%1Up}#qnB|&?qNU)!ooAmZ-oB+9>b8G@v|M z`B(-}%&^yTL8uc3Dj?x*WnN5w3J(2@NNc6IO;rm$4_e&=j`d+MT%4+hDmBU#5XwPV z*EUQg7Mk66`MBV<)v4J-ExM-?kCF0d%6qoMe05B_L3gvkyO*vowb^TcE2Z!Ej~Q@U zG?$MJYo0_2fp$`0)>d9xwLFq@BVcPSh9~iMe_TnAp<6ciIhqZior{ASpWF(wCa|Gp z6ZP!Q;ZG@D#GXw0*ix_q+An(?RN5@2N8*DV0$t2|>zk)ok7+d9mu6h;vGa?s(i$h< z%@(kdQSyYwS1Iyu&P%<~6X`&Jhs;-b8a!n>?|gLMbUAe#2rupZdIuwQ;VSxH8U{ew8uucS}JDE3J_8Z z($U&>=sJTCYOQMYdcey^gdpm(bU2?L+d+l(+t)+gEdKkEky(agbaHwS3Kq>}laDs3 z7t*6}TMXu=Frgg?2O(E9ZQVH3{wEZ5pMH9A`DESsrDkR&&Ka3~s8C|` zA40K_!%3Kyz{;UCMMj5A66G_pQFYdI&hHTkxCar5WX1p99fVr_{q7%5xUS+^RA}3qJx$Az|)vDX@cWu%;;ut+98H$-;Z<_buZG1X82c0iiPdPVmG_ zG~-jFF@TrKeykkC%3dt*25vtF5bIYqQ0w%(cMGBWfF!L4S=jDniCL@=E)u35+op`V zv4i-}tC*Oh_FDSEZ%%2Q(na+O4}-oIAU;qV$Y`sMwiWRN%7QHW_6-ss+nP%w>&c(x zD0b{=I}(UuVzEm%E!)gdUslJOjk@yQ$antlwB*A!wbOgA`Az;il{~3`z4_kc2Gtr? z0WY)ATj_dL_fH#Cu4g5w4?OJiDuWPiD+xmamoPQpFQ;q=nEX1#Z)D*y3c0Uj(ASa_ z94|)0iU79)P<-~UDVUJ|hq63j!ab7Gsg=K~>`%hMZNZPi%f*$1bx_j8pT9`b>AlUu zVCew?YbQ@3T_*(8emu6iwICi^pi07kbEKJfhwHnrB{>*J)q{An7l2C#W<8x60lrrr zHR~yfIleNW%io$ObX9E0l8DuCcea~Uqy6`#p@V<-f^BB&vP%!`WGh5xcW&UWYSy)I;`ZDy1z;XiA~s-y+z)jB5+WZW_S$Qd4pp! zg>R38N{(6&V*?J&F$7wKan>yrGY&Li%T5pFU@#y#!7^kiz$m3ZEuZeC=6U`kD>?VY zYX}LeGILCTizeH;R5^P4daNbxD!Ibi!${vj3=X@iE36KYIkWzE75z_TMFR`llMHFR zlV+Ewn3kZZ@NnFoNHIJuJUX2bF;B4tSRDidly82AOWn*f_W>11SpEs z#T`Lu-4NwKqQ7j?mW090e9q5~)n+zAj2S?f60sf~*Q_#=qsGtdvYWupA&m=W*oWxI z9@F#>ho?Rmjm{XGg{_l=Q-Wk>?S{3uFSuaENGVIGMMvUYVp@H%g`Y5G)KvSrbNlK) ztPFthv7d*T+VEir(z{F4@M}-J@7@07_oi+?`TbfG)3pEl{YoEi+X{8OsdAxkM`GnO zbBT(x&~8!oZ~{L`V@KD0x{E1qnjE8)J8n}Q$|Z}W@V?5B-ayEk#i&_Tv68=3u9o?1 z>=^FPi--<(C=d4Lp!)7+utmLe$szoc#Rg8i)pzT)E`hb5Lt{_R><=V4+R;~KcWP-r zq;}iOnX>HEnvkwL&33zQ1UjeB`TeD@!N9)FeM9-CNytQHUb0SUn|*U z2$z|GW_x?Au)d|_rbERG)XK`LTEc-8wU?^pYm2Esw95!5kDoi>gEj*^ajTBzbhAT&#{kWk`{!_7N%kv4}`h8}J z%A~uJy^mh$PWSnqC5}U!WuGjV{>7zNqM7^N8#RX#F^g}IH|R%wFz7#RECPqMklk15 zv@2flS6Rg}maDWe92R_r!;r{b?W%Ke*okj(gA@LaWi~Qk;_xA2G%=W5PUMjpOeVW& zvB{y*nI8$Rt=TA-+_kpTwT$;19V zZACD558tYh!rfE}Uqz;79SEQQr8M*FFG0^d9X+KnQyrahU0|ll6MEw7-%ewnUysz@ z<8K6XN|S`P#@~wT!cVU`c;A2DJr5+l)HfRQBp@RRaH9Urp_Ep`9nCdpMb-yk;!uh% zCne0;lWyJ90PIOG*%L6P^y@xO*MHpK%RCPG{NJhCDBlL<*|gEFL+?(ePqQ}j04Ns# zn!8V>G{39ms5o+;zn9f@{hzkdTgu%~RPfs>#XzxtTj{IwyRPwuA7Y)h%frimg&<66 z9?t%F+3+tFby1I8YGgsKn(ZbA*2ptWD9U`}5gp~`bB~H9y=)Zn>)841I)2m5gc3G; z+Tk5LrX8NmwO}IleQ{#9_`!6%MVqYbs?;Ve_~{SC-ErbRd&Gj#mJWZ>KW)$8;Iuvc zUt9>N zcm~&sjVRW~iCv=W({W~1va*Fe#*yZr%2g(@a*q3l>YA=KC9k>3ktFRk4ZB9av7NDLBqqpF1DT=QPL{{uWVYt6X)rU*9u!h`W9Jo#`(qKQ5XU zYZ^(06cPRr+vqRT7St@LNgMs8JvK700iN0jpFR?6-HS>`SB-pfC7nl<0n=2n6+zr= zuLsx9WMdkcz~=ED0n4dFfIJ!PtXyOu##VNf*Sbd_@w%3(s_H!%UxH|#RaeQVsGH?^ zw{x0KYLHM(HepFQvd>oA8D9|_uFrC9Z;0y}NBCfHi?q($iP>_A-wqoS_= zO_Bl&_9;7zx~YL8vBn@3G1=b&Fr+qrA&VTFT9b5j@RWM}DLY-FQ1Q47f-1wD8P4+5 zSl9%IN*KY%V!=={bT2}U$oCKLV1V_>cXax@Bv{Ybkz5XBB{`OIirGwr$)*V`H#|Hu zJTX`y`yM(uLlqshwhrJ7SD}_<>`k+;X@Qg$%cGY>IKxW~i_&ldcN?bK=b2|hftjWA zx^Glpa7{H#GERdSrW`Gv zaeaB`EI?RM28pLsq_6Ur17i*8la@?$#h~lUWchwlL*|NOp*wHVr23kc7JZGBc54R|y?r6=et|lt4wx>0GDf=hwmKu7U5mruYT0R6WF0vF z2Sh&NhkWwCpB4UH+flM~t>V8e8|W+a*e)CDxsLygMa3QN1L&KOMMSIEq?0>avu=^59T74+~u-sPAjJ=cfDde-?glwXBmR zPV7Rwsfd}U=VTcG+E%)mc|k=8OK_f)N&i`Md2$RPfN2 zXA{AX2=w({sCPY`@CZEd*_IGob;NGWd24z!TmBVoyg)d1Y5#@2zpdTB^%ky+l+DY{ znGv0nayN)dZ-+e_8J_jgq?~JWP+u1E`-$s$b)A-|ptI=;;_>UC30=OD5!e|G3^2+! z!D#b2`_H@?kr}!Fd{P^!4P%-cjPmnn>VrNjqL^KQtrF|{UsJi;DMZ9S`WzR+=;W|O zMo&ghzK-_dSoKT zdgpu>;xV$7O-!eUHPL2e^)hLhQYNrjZAU<@ms~GJp&#Y+bHj=Qc7NRC zDUVwPYEG(}v;~GCPogOEns*)Jf34R&FQ>i7JtzNKuy;5p zFzt~OpNn@hcGyy}Nm;?={;qc<{=*T<(&Vz)>@~Es+!-+&mRpOJzsSh zra%r3+z%k%Zx~VPNEO)e8`5%G#?LDTRH}h$)fFn0DQCsx>Ob5q1fh^9P+{7A!R)&( zt-Sf!e(&pLktObb>UR9xU^$p(InbEv?##%+P!1rM@!*m324@UeWa<(;`p$nG3Wf9E z9W=f~rq11|J=q$#fFL7~J%7%oMoK&NA zOlw1UZ1o4t%`@Q}vcX;V%BggeGKN0?v!06n$;zs5tJJA=+f7`S@pAk!%gAjv!e-4G z*|`(n-Lp7Gq(O7X%aI-wYRrxd{S*63_e=Ye487T*5gwF!Id?P$BXX~)>yrW%Gn-K3 zwI0t=6|jibS3aE3-Y6m2REsn;u2?HolQBcbyc?mgRNN1-OSe+%<1tu<1Co#z8+9n4 z==T>fl%Bj#k?*OGSESdvYt_&SZjnhn<;CJ}HlXz6Q_6gALm~#NcUQF2e+*uT!%$0^ zW9Q!#`nG7i`&aDuP2Stuy{R>IQ)|cG*2zBQYn!jS=EFpQ)#3~~`~o50P9_TX=n10% zrHpwK3>G~tu)8KEW$$w}3@4qW+GW8^Tpi~VxpuJ#Jg63+&GZ0M&tOyN+2r$i^Jpu@ z1)B=QD}RxXdn5hU>a5h*My=wm*TQhq$Ver48;S|+_-OuPWX^}^8dfGF~X>X(nM@f=mSKdG?=f@5G!R8Tu7(}$i*@ne`1+H8Cq7MSnm~K zEyYW=zJZJhNG5HT8T5Lk-l&&lX>;Pfw~F^_EUnaNT^w!V&C?0H=g5I0O8lia7iVV4 zCIHv}ea~yTGs}O6*6dY~n{=~uP2@E4=ywI;NmS}2aY31YrlMAZ3#?9C>74%l`Eg_S zlievHRY4)(>}i$#lB=PY(g@ifTQKz>>2gQhQHj!|U+5j0?=D|;Bb;7e5v>0((WCJy z?0`^?k~vCzIo@Sgzu)=cyHQ&I?c=LO8=1u%X&xSK^{v0T%(v{(dLIna=nf>yKTy=Y z1y_QdWz7v!;@R$H$_?0GKIE>~X5d4#AxnC6^-Fkg~*lcMH_FzZ#f%*_odf+HrR zp{FAK6&j3sg~mVV(xGo?1qzj3&OyH26R|r*Cw&+y>GgOp{1%3Hj{!X4DlI%F`O@zx zl)tGZPKj2krZEQ3H4zCJC@@-2EKqeZ;zo73tBmwUqrS{l-5?|l6{-t|Na-Gl{_LX} z=^00}f7mMyZ!Ev%qOYqL*mIqd--5da6P{cBNbvY22=wLtTTaERV>sz;dhXLtaL-n~(Z!=8ty=2Gx^LL&Y^R$BH(WbvU}k|`{)wwOlfKLZADCNquvZq@eH z>bX~gcUgRv%Fy{4xO!PVEzV#5EpI;qi+h9uBfmrE?y0?%dF-xqQ(6mTGmgx9&gJU0 zwMB8I&Lkr@^DZ{mXo{THwa)2n6y`EE&!9dq;R-4Pbp>~HgZZLUJJia)e-xcrHYFpj z)C%aN{#W2Fd_46lnd~bnp1%eBs-Hx^s;;TfRQaU#+r~RJ18RV;>smJGPdXAIiA{FjhkD3@6gZge% zfxV~Q$6mvDI9w@|yU!1!DF^MlIPlY`PlMwG{eBAkKMT?n zgCd|>t}KvoTYKKCy;jgy`Xf0m^hTw{xhmI-jVc$e%2m(RcqMmgSOCt|`izoVX5Vau z+GQY8v-Wm07Fw3NZuYp_271Kr?|Jr5)|D;I{^g$=zj1@f{>i!q%!WfM@zJbE!`>jU8@`&Y6HbSj$PaqGZ=fY}u#PXa8(GE}*oZ%76VWaD# zOU6Xp!EL=k9q5ig>{vD$;`_-M9-URSSDkXwlfl^GMj-Q`ELl=0YZ1hMzr_?#vs3@g$^eOlf)DZ#6#?c4G=O7FZI2X0G z4)I&RGkQD+@o%|IWwxa0{B(!N8;ICV-4NH(J)-RIz3`sz*n4GPJ0*F+FVYKpFMj7m zykl?4!*eKLkGFC`sXvbV=q%a?H zh#(8ZvW#R_lC9ejV;KZ?n&}Rr=t;~j??wv}Q9TY++4_W~3^?oqgxo4;g!X?_Wh+W3 z5naCqfG>89$mG{l+<%hFhhp)X0RoJF;b1D=>SYjb6jxh zct)S5j6$KDItUP4A%M!N^{UuTdX91x4gj%#8HT_v@hb4%TMGr2LjW+=uTIIdrb)Nw!W!Zy%dUca1^&erw5BqU~2pkjp$68)Q zupBgMYKjzcSmh{u;r7qsGGTkzC~A0g$yh@8f-&RaDAZvv$R%|I(?J+#pzeZt*|21$ zxA0or(=czBqiM&|SDho@jwugH1@pA|O0az=}@{GMcodYO8J&!lLftxGrax`O=HO)=UszP0_F|;p6 zEVyNxa)}gtEy<$Q9QKwDL>#N+?F7@Ah7ll8k;o0E$hU)MBkL z3z9pYreWE7<1JtyW)r5oRDyu8X3YATAnA__E9I zC_~}L3~yzI4M#YO39W;yE*-$oco3~yPNe}09H%L_v#;Q}X*kRr8S31pP7UDhX**LH zeu1gZqT>q|r0o(W+_PF(2LnGgQ7CCdqp(-3u2>GZj|-xHnfN-~Q9H_nddxE2~n+ObI1rP|>E15EE*I~6I4jxbw1Ckk~hQtMH#H3f+SjMcI@Nr{;B>>1| zp$)PCQ}r?;hkz=C<|@<+$YLWUIE2wCaN{Z3XU>gKFZ#k`Mn92N)~lT+jdiBp%?)f7Zh@5*)6z59mHJetFgIGb78 z^5*XHGA&%X5UAh}7WKuDFFV7{7Mu+(k6@S_n-2oCQ4+QvTUy)D63bw`+FOpWubT;v zYR8ipP@nfPA?+OW=q>^%iR;{Fx}-pJ8O@58?M`O!!Al@1q+*ns@t6X@G?jV7)eo%P9qt%KgpZFt={P7h{|^@<3?srJNEXu5m6rwI=3DcTd&X=_gf6O255 zMw&P_9M^_)E9#~m%yI$Z9yP9v&LkAOSw2VXzt{V@HmQ9rG;GrezsRYN-qnua_H<7# zu5AKexYStGq;hj;(Aww}HMA+#@A0F3jc^e=*g{Z;lY{M4M;K0&q=2Cd;y{DM!bI-p zzzy&oRAA(%P*+0S-m3uUg;Nq49o%|C<){nzH6F`DK z8tHsAqg50CgR`NUYU$RC(Wu>wu2ysNCZkxO02gyInm%Z}-_p$VrpuXMvyD$u!c zOJ~Q44BW9w1;nrlu2=z>7`TjBQUKsp%kuJBMDt7zqDVS-=aJ6CE9M%W;yP}h*mW~B zRLmFuqw&_5r^#S4qZD8)n1dK^v(Dp{!sKIfm1ebovf*w5E~F<`IG=`7;caiZ<7km% z#1J2q#(wS>i2Fb209IjDn=rh~ASS%-#MW3&6oqna(@*dASFiJ`d9=wTgpGT=^`4%&^!UtK zRO6XG)4tv4YA4c*)2b^(B+omiZ$wO5Y5)6j*IoJX);+^FcsNfFV6JVS{g$_!Cyyhl zZE*(Qof8Jq_ulxK)YemW1g55CWNX!x7rW(5fAOL&5853lt&f#;Xik#YEqYso*UTol^*~#kP*FWZ` zI|mhOZx|3XxzNHaNNtfnG4EKpT3GMxy?}vjwP*@ZC>Krepg;qL4*wCyTk$i63r2V+a{quZ6P*q}S0KGASYGKGDrv ze?Jz+NQ;uCJD<;U ziEp*&&l&i)hcsKI8`6XCy*6Vdx>C!8$`Js=0)q%62^<(|5{P7JuI+n~2JIAs0OtY= zBllaFeFD&r8qD#A>)FQfU$Qecr$@$}l@Z`My$AxlkM8bB7=>a-Wmqm?pkFO%m#qp= z%FjS?bXh=GKqnz)K+J~_4`g9H^lJsUBUE>T8C5Qk#0|%}iAS!;bt`Om&$=me z+s}uXRJl#)EH(-TsjnD*eXhS<{|Cc}RQCsHhz@)9KGna*KZIb2e8OHe%`4W^!D508 za1PK-{wm3BM5MjVKy6YU9(TBN7v@s8x7RsA;^FcvBHp!y9U@JTh6H=;d`VgAfvwaD z0CT{(#fE#0@`PVJR<8e5tX!s(8>w|vURGgWTq}?)l6noO8dn&H>f`s;5BzZNyr(sv zA26cP+M`-BZRfT}koGk!t>gqw1KPqy8M*3Op(2 zu};!Hfh$0*-ib+~^u@8ZAA0TD%_cn^`{P{4Za^uIMeM}f&FNm+RDzDSk8`={(S6Ed-?D9{(ZAm)05WjA8^HJuO zF5J4q0t5?W!99m|i#T)uFSM=~Q2=A=c!M>^erOu)gP0Dt{P^JhfNfl+)8i7rl0CgJ+&ggf5=@LZjM3#upWW79>Cwvl~l_>uxo(1idz@B)yn$KIDPR~mVu8Z^vBmJ+)@8He-!%9D7M;O!=yE7)>>ipz zTb%u!OC#>rw+oUsI?&ka?oW}4umVQJF#A3nPWEK?dVAR2?-itRMdRE;rp`bHcM(*@ zoro=6-Jk&=EoD1T%9B4dQ>hQWk&boPWC-TLUTF{wm|YthK*>=plt9Hyp6+opnW1vr zPf3Cp=FX&qn*{8rU6DR*!-dpw zx@93Se&+!2o`oecEL(;iPtMUdWS6wkbt!<=6BTw!7#Ih*utMi*nHadIB?L!nkF5YS zi?qh5q9vFGdm4HTU|bSDuRteg6TI>zxWbK=>Q*f?19#wP)Dmc0sJk`PtkZA+T#RY6 z0e4OL5$7qxFVB=q%vxyrg{_=_J=3xB^-L%!j0@LOD<GKQs zeSW{-njzoq&3C;8mv}x1qyCuF|&<#&5y%hB>+j+9RAdI%}==xa^U4p zj1q^rB_EGXyHn8PHsN=(CSb58|DjO`LP3aI0IGkBsL)W~kzoG!O&C6GzSa=&V*wwUz zS3uS5cmMaSUH?_`8qW{IbNv_GKa(IcE}wUlVjYCQWXQ9De6H4Ti_CvQUKTWmug~=( zzQ2_K!A)?sDm6z7{ru`5^DpIXi=Ait9bQ{8TLhkO3CsZ_1WWo?4$c<+?)?U_hZqKQ zHW79G+3W%a6@Gz$?(7@h(rNry!I3@>>ANlOWjjL=l0fcOZ2 zFD-+WQ;+xc9-;JsuGBV+@;tdwyPs^b%V=PbH8HDc(boz4jhL#(0Ppb`4&W;&G^mFQgE*l&bG?m%u>nC`M?~WgyRxwOUsyl} z2%Q***_er5z0X0#7*N2RSHQe8R}bKZZc?Fy1u}5J&@pllHI=$bs9#l$2*KS=s1&Ya z%2qirE;t@IG9ZbwyLr1gVd_?-WCRB8WqQy|9adu{7GeXoV5@GFF@$Zpi(jnGl!qI} zVh8##fZ6yRgE|@Y+kSleGFt(y8lfv1;0%Uh5f0RAi>;s?L#t8%+6Te^{sEaE7sP1? z3IQg9Lcc*FFkWjZu%`uZ)!lp>#n`q@n5^8U(sZ8Z%C}W~)!Swwq?9K4Hh8RK>?BDf zuL##eOq+U19cERQ9&!`kU0t-PRjeulD>DrnrzX{U*tBTYf~m4M!J;{@0B2H51yonuCQ7cp$DY}qIA3kks!B)7s|pb z)T9Z4%-SWnno%|Dvdmd8AEC8TDg(V}#KoWU!2S>@VPIrpW&yCWv2$=LRmR25!^_7n zpj=Q$SiVS6qQ!_6CtiX?Nsv`#mQ+(*bGo}Oc)qh^JhEp@4SjhZxQmatZfZ$1m@0Fef>UuCPRAKI6Bl9u7vW-T$0gBXOlFk4AzLac(iN{M3o=f@8Cb+Z zbY@6NHnx0H{cl)k8I5&zR7(y2IUg%kkL8JfMYUf>&nHds>i;2!i6R2aFrypTP-uVL zpO9<(SG|d{lK%Voh=OOfFJ87keiLN3UQHdy>4vDr%{{ZgFPdO?0<5tYG9qiTmkC*+ zLsv(ZB$OXdVEme2nF*qW@nuxz>JU_hM1rsioWPnPJhn;YOA%u_E6Sm=`^`G_vzi6t_U3Rvx(>?BUX}QFC7wI+&f_c-{CZMJe3S zmo+2#%0}N@6fM}sEbV2XrC#$L_27;0EAcwL2CI^XW z41-u3>zhZ!+ozP^ZdDa+AZ)3Eacl~39)zL>chbl}9UYt(WdHyF=Oi662ICHZUo%q^ zLQ*>;GbAaM8ItT-5-Qt+L9*tITzeeLWl>r}wF^y-Kf_K_FWA<=IgGZz^E)Q+G}Cw) z)=R7f^%1Z2-V5frIC!c&4+Y$+Dm2XS%+s+B1Kp z_iX)Wm($&7IfsK3sJhEzfAaT9md@JvfIMkCJpv3F2ImHzNQ8FNxu!tpv9Wa~QHqf~ z|KB~o4LDhA1vqfP5>BqbtDi$+N3s!|0{9Prfq8}+PfhRv4cm6+w+e+;qV31V&U?_t zQnXRjVXVSE!s(#0$+r14DHc^D-y$!;7?cO=XV&1<8Pd$aCWN@Uved%-uenLHQV5yx zIvv_=SZb6y_phfqwSPDNOSLlP`=3pYpMFO5~X;J>&S?|jSNOitPywKOqw?o;7L9~pa|dqUHPSmlX zYWIOgY+-te;jOz1#kuU;4MNXBJT0*t&w(7yDz@P`4zb?OHV^E|ksPS}jBoCrvWkN^_|qH03|K!}y>0_RoE9Sa%47hW z0MdeDpl>7N;`YckNnBJ5zUZEm^c+J`{d;DiZu0o_{Lh{IDtR8}II`c-$93?B~Kpx+*~lN>G9ll%NC% zTZk5cuN);>j5svV(8iiW!sQ!V0RfsIs#U)ef#M_#cYz|o*CG&)G_g(2K1b{vBc|6_(m>i(+{~rM~2CXjxz5qSqL5d|Ctk~L`EC(q&Y&clPF*{pM*l~_M z4qRW3_-yqHMbV-f*07G$5;1qy=`8g`&2!9x++blE-DFW}*6kMYI7ct7`evJ@ zp`8xPJXf++$+f=J-B^>0VaNk%ZM?-6Jp$yl-UtLi3O=K z5Ul~GgD@w`j>f<_CU{XKKa^=p%Y^#f#RPTH8_2UrekL~I7?wyB3hb8-YiaUZ`=fP;!(1! zvvqaaz-8ax&gJ7qUVom&5A6%?hX7M(Ww1H22o%Yh3Y#?sx8+QZ#8VD*k314nxvdv? z5Y|z|B=#&RiThvVjz3vgYl0r}75#QP+DVVE{CP`aVE? z3xKK>_`mg||Kt9L1N{33{(YrE0DL^Ks3`!bi0qO#uYh3S0zk z12blUtWj99>MZJ58ZA%uA|9i!1{=Ya}jN=ro~IfKCUxP{0)f zu6zO9ELgIj2l3(4XA#%!y@kf*dPtqP3}WP^i~f4RCF6WrL+Tlvu~ZMll3Bn-6aIQ2 zmyD;MAw6~$mAh5&ef&UHsE;@D^&0IN%0sY4Kf1mO7JmkccN<>Km+Z>VB$hbNS_xNF zMEmQ3@)46FeJxy48l7V{vPSstfWu_TKDCLY@^E=!`I$wjh%<@$3P-t|Pdjtdl`uC| zc}2wuJsl;>f%6;e;zg!LdXbSu9>_6E5={hDyzXNmZt^pWY?R}GTS-1DJ>2XR7a?|{ zSr6VCCp~uPanb5xvIwGM0v~XO3df0->aPd!l6}SHX{iF*^W_hSB*L&@QjN?383mLT zAPd336u{^&fX0WQyaU+$ABaIc4ktM&g_u|y9bq*S^}{&iq{(5JDzRCO%%`y<1MZ*!jQO65Z$47mRG%SwJ2?PNo;4d zlWPsi7Hzd%{ECz|G7eJR#6jt#*GeZ^NUg;*iFB%~fAw{g2oo5=X&}VJ5lXC-inQ%3 zW28uo7E7LsAW*_+t=e-**R6Isty{g7N16hf=mExT-J(*|NSbnfd8t~I&Ksn+Q4l4S zS*6Rl-$-s5xZ{KL<=j_g(!e7e`$EZQjNVxfi1rPR)Jl4?VDuFiz;g(pf` z9w@D4y_R&GXeZY?(Q_`(%e^+pB1LJXqN0aNuF)&y%t+?h-@T`DT~hh%g58WsgqxPG z113kWM4oIzAlaWU2;>;+HF&#@@X}$!UilNbK$_L#rx9y>Y?uiH4yQA4Ss0Q*j6L3P z002HekC4csqxGcmA->8YgRFgC62z1*fswL5Q(#i-LG!1~ZqMJ-H$qmK8Bp(0vw(({ z#2Zgo351y7EU!-9<2^p*yF}fQ%Gj(Err+4l&lSg zYh?TTnO(%%VPb*PuDKhAVr^CF$dMQ}W(U1BS{vBXHb$(%tC34R+r`8f-iP}&*0C&i z+6w6wf&YZ9-7uFFKDRh0&L7>w2ElEQ(+B*6&N$F2Vk)k9zz#PRGj~#t2noTf1Dby>4I&4Qd1>eT<{%PB0rExxLRAD!uVX9ZId_j!LTQ zmV{ky--(*LoWpmf%C~n7k4!Mv=SyDy%uw1#YnO-iM&EX}IzDEgZ$sws(~hyZltzo5 zA$}VSTvk%bwf1>|gdUGW{X@o>^XwR_N`W$9K){kEPFhlkxwsg|5GB3}Df4H1BQAh* z4ko|D!85ggF1e^=aMTUr3OJC2BiL3OuSy6p$C161d44F^Qw39mf~fEDs>_p5x$Y9- znd8x^N>*s#M-ssU$^K2)rVrjrPdWq*j0-z0V(}+wT3`v?l-)4(PF`kfo*qKMUN&)+ z4zQ}U@@TG{A7z_!U!ZNsuvt@|J|vqZ1w4~49q&`;IeRW(JF`>hPiD!vpmNWD|5@dJ zimOxVEMCl^xP6L9%MSAcGcOzFmw@{ueRj<$=+%era**sYg^lOesoBxS$}g;ymO3y{ zAp0zES805TT)AXcet#;s*U;sQC-%Xq#Zbr&u~!(O*Tcpe|)oXL`3y3#N96udj>igr%DyLQ6f z>gP&&=GxJd-jU-|ox#;C5hZw<`NdSi^Mnj@OjD{nC=EERi9zwSl|>v!a)~oIwMTVRqUgEfV6`+Gj4_d3vKrg6nl;*jVI*O9gq+?d^=Q#Oc@)f6ol$m7 zv&M-jX73eEJQ^K;6``#BVW zePrl&W4OfkDT08;`*?SEFYk#aGNnx?pOJ_#7(pwl`?lb^u+jtEm>FSfr1leiF2_A6 z-fYKQ(mCNtk#^%9eThV_88LfuY!ldFXqPurz6i_elkd^8>~+XX%{@}Gd5frLOJ&~% zjc$Ry&oV`|0k$(qfu#0VypxlW{#Kt862!cijuEoD96c|;#-2{Z&xadf8LmHe=IzxJ z@3lv6z$CZSYfN2-bF&F|DVIXUj;UamBSEauVF^)&{DSRACU>YLK@_Fg-2~*`W2GG9 z8Cw%Ez}a!u=<5R3A`Y_xzr#Ck%i0s}ol408V#WpKb?)54NTXnj&^M@4%T=Gx0dHa^ zj8CA2oc!NF-tlycy{Mi9zX0G0wWHT)&)nN6+$sL96SVI|Wf8C>?WvQV<4HHyUiY<= zz5W*<*qZ~UyXnRgM#4y41FO+etI+2+%ln(tCcbQlpY`6HbN0p=@lu0GA6G_M(-XaF zrF=WPUPl=YyYt#+i8PZRR$O2bg4={$%Qf5`6kejrFG%4AtJc#A7XSNZ%Q7IJ6e2Dq z{nB%Vc>8pFABojGaYQO+(*5^eyoXUweV1>avyA@r1xZe(?wg}vXR^a|Lf1&RTw16Z zOQ~53$o06!GDgG`157w{N`qv`#D_$ILtN{u(yQ#=W-tb?WwVH&1%sR(SV#1>X<6?p zIT1fLA*uuFFO<{oW!INxO;2#=;io)jf|~4&qmJ2~>VNpdDBj-v%P5)`Mq%TBow>83 z+J4d%qrIIojV>SiRcNec<7K7XMC)~#m1On2z&)U5JYc`(N&JMc?ZmOEOvv%QOB`Ym zJA3vpT$PyfxVmW@d7vY#4!TBQV;LG*2_z9y-l$i(84F`@(slI25$Keq@ z6T=6k(kj)ia|X&#s(;06WNss-cB#WTZNd|JcT0~m_%M@ZcN@64EqA$S1Fy>(H5`+9 zO=rKymqVsQ6HwK;OiQn@Eddv+sCIGO3DEjmyYL1$e(5A$^GK^Vq@^74+2Lm6nq3cc zrQDmqA)*fItW+PWFeL>Tc1cr#^*m3RY;U%lpUV>O+#qpc!s*~s?kD=94d!9FNtT&w z{17a+RuvxSoXr>qdoKHN&!w-juloOg*F%q6x_d+n^yZaL{JLLg;L1x~@Lrg@{L~au zSE!meb%nnxRQAYqS-Kp>1PVWNZFzT(m(rAEu!B42Y|M)CRfWk=dL3Hdv+VJT%ywdX z?esXkl5#g=#G0^0z>v+#+)c^j?iA1NYb@DqKIS*bviKw0_0N$$dbgm<4AZ@Ezj|2R-JB+Z*49$ zzO*ZE6#Sv<%IlCX6xAdf^IeZL zf4vrh{%F;PQlP^ulGDu?o)!_-uZS%zk<0h)0G7oQ;?a_v=&c!vl{4dRG)FAg$qHq1 zU61~=xXhmD2^bcI?qd78q@G($|JrXqQ5UPgvZ(~M0T)y%3D{6h*!ctnbz1_0`(Az$ zxkgefmTP6q`k7VY&2@TRV=6|r=+&ho0xPEz)CO!oslo+ShEjq=T#~QUVXLInXsS3( zuVU+o&1UmkQAz1#p++YLew`$a)$~|HyQN3MM~cuh`C7us@YMxZHJhA*|F^0H?qvmQ zjTISd7b0nS?}}dFc_LvO;0dolLPKfSIAI+At{hYZUs2taSxh$b3dwYP9w#ArNd3LS(W4Ci+r3Qw2_2~ktxnQIi!_v-;SaDftz+tpNG z#puh0e&^a1^~u|EVN)HlCB(~`HH8=rEURw8o}?`bOAC@3kxHv^X=a_MoJO5~R=n(n z!r=3V?Zf#uMrN{r*h|M6ic90+8LO{oZ*3<@JTEHM=maN6!XvE|uy+BUZq@x#pIlo(Wi+#hm|{Su4@ymG0j z3h=$zVWuOEIxB*e@>!**j*I2gi9$~c*#ZI!%OVIo?=>pG{k<1Y9Pho<&vzi!5%fno zv60-9El9mIQaZ0x8qp(LPUc2Bu}28{bq<8iJoaM6l9Az~OU|x%aj(v-uPB{gqOUMJ zzqEPA#~OsAv@MfQ9{GA5FD4~Hsw;!wqE!k3m#YP*(htGCjT*`MKdh+!{o!D^F z$wH(?6e(?Cq*$N)?JkyR`I7Fc>Bf$^>uHmIOUL_glZqy{O^(2>Uv~vAwP1TQ_7@9n zJ#cArdBK)odSO@Y$}c(o(~|hN4Jru7T=np_3TdLNZNu%sDZ&?<2ZJF=a|jv)=e2-| zq-C`uN#bqOwT|zso&oG;Y-sD8OVi13+Q;{ermLu-f%QSQx(v0n*o#^QSQ^l;=)QdH z7_Dx36#wUS&dlg66-JCk;TOY(7Im)iq}o_pD5Ty;?Xu*Km|!YU$(jml^3EDvZdF;8 zq-a*~!Zt5tn}mFF?mf>&Jq6S}>g%l7ZmiR!4(6>}lIDzt{ax}?EqHM0VnwUN-B3#9 z%ir**f3C2At25kDOQRyda@FL0l>69ui64Y>@=?0*w|mST-SoUF?6T0wsLvVx6kdMDu79y z@s;TOIm>rwKYQL5jGNEL`Lyb4yoyr**?8smO6$lC$#dserCI_K{U@bY&y1$!uH5Hi zf)&$<8Y3>GvN4vJn@W6>XTJ%!%pP{>`8gZUHDGXbTV5U7$ra#zT2&=ZS}XrBnv?z* z6ZKE?r|+ZbL%%!zh_`(6P3w;)6Ai4Kj?xIQ7P_Ip^D(GU?NpG_+N-`?iNu$C6|E&J z)XqZC#|0h(9c$4Ds!)os>{XzY{Wv!Eu}aE%6&)v9Pfw$55Q)~&(&!sIDI?8Ecs^Ft zJd~#Kmj8$gIVQSWw&nqtm5$DanJ98e@aI2TBZYX+KP{J%Kl1UPy``*E2^hC+n8ft? ztY=LckI0^gjiM*dK3roe%FrivZ(HdO0DE0BR4DJwS8LDwQHlj{yGO4zH@lm;`Uq-! zeH(U%y0Vh2RFx5A8e}QIy;=_3_lg*!tKA1WvohlAK_I-;YSWX(7eT_d9%)tuU2DM$ zn^mKzO!PW*CJK`(OO&O?*Zs6exCkoyGxl)|`d7>!OO@$oZdx+`3PxEj@~3{G5dcAw zgIQTy^^<;!~)#KLcC=$rk=dxbUGKOGadi&4zaW(Y;cQU85z0!7uR#qJL3 z#L@OCgy>ne);P1r7f)fusSReozW5&df9kZH_tIe8eiRbb&rOUuKNN)ije#M5F8u!L zIM+jpk>@aG20c%Y)1U>euI=`jrF?lBqms%R9FEb}NE!;@gnWn5%AbF3(JS6+29|tJ zo9G@DS}@DRZMO0~@q2EsqBg%>RjryKz{-6uzS~w&hAnIM-WnyU*qw5Zt$evRR`-hh z_a5H!QwD#Nzcvw!{c<0j3qSmiXkgZ4Mr^y!?`xN5Op*hle-6XBbf5f;|Du>Q|CfZ1 zFg_cWB`(`Q#e78lGMgm6=r?8j=GKtCAF{ExjqKT*sg+;GDv!`Achux9cn7x0xhk zzXQhR2J<#)>?{5xvLkrZ!|yGSW2cONLm5J2ZEAnMo=X0q-wCaeVNm1P`gK|y>QM@T zaqgqpAE4(~m}d99X$>w!%xGPIzZqQEmx>||hsevgiL5+l^lQu4Q9dnG)xdChne*)h z%q|8mtGJ`9z@B5!J`X7)D7E+!o}4#BfK@MfbB9`5m>wrJplgPvs{92MHazw>i zpFMto#eX}B2Mk{bY=b5tzSCTI3My%BNl3N>nxssJOJngS-3x+@_?ra;Z(XE1xh@b< z1IszTIb2Uo;46JKnZ8<^x2`3S77aL>37u1?z2KQk$Xma<^7fe_Meuar=}_yDrv7bB zplwY{k2JN0l)q@+pW6=>=hzBd{Fv(4>~b_IFwT6QzC(!<+2xdHEO1_lq4Go zow~*g?^+)g;P`G4E#cU25I5oTz!*IBmC_1x05XqYVp9ewY|~H5^f%#TQ|Y)k|F?>_ zKL|!`z{528&+SwTuI%6OBXstvw3N|XfmCf(TK&rAH-VQ%>&r0*=f6k?r5qMhTJbTB zp$sdQSLUmAxN3z2Stiifa7?M4-xZuGFW*`r{k()vcd!rNetzqlVqy1oky@jYsb-z1 z3|?LnddHiusae%XY9UwK_~x@EvOaUK(q`lp66zXKRS=}6|9{$l3@aGwHU8O@HQUFQ zvFDr_O^^&q2e0lGSw=d`J70{@z@8wt(8E&K-GMK3 zzg!=nuuWa!vF^(WbW1dIqUrjy0HY1#^e(Ga80y-*nyyS7@JjcFacGa7* z6Q^T^zqdhWWiElh-tE!mx>Ud2b%|9=sM(*Mc2r(GqMD&5g+yPy-g z$vc<V?;941@l$`%2(D?Lc)pf zmK~J9ktcEhIhUc3YZ-cA%GFQQM?f*a5R<^1=J8Fs7J5i+Fw60k{1*#a^o%0=ZdXei zkv_!cTQp;cft+M$9}>PDnw+!KSH7S@tBcRbE#P7mEu=CEsklvFBn$~qq@U&TpGhde zP{J3RaMW6h$_cxHEKueE4D?J;)&O*E?%^!Z>_fTDoXrMh9qPCi4WU;Bw*XIskr6@1 zWfcvui}Rx_L_=W&6hKuN0EGt-H=_zEXn=lmJ*8)SoNm*l4*GL zik1Fc_cXm;m;zcN%go&I_mo&myt2-=%@fpWs_aG??g{!=V37T|RGvnM&y$+Yfz-l}!7zM5?-wne-Incw z++BzNURnmYyBa5cpqhK-?8=9>uK)=vGd;ZhZQ#5|zTf7Z(3&zmZn-?T&e8G1MT1Fb z|7o)`ZhM3Mpgnj`zol#ci!{YlgO>Xn*Bk7H>}u&Rc=|6VA^|ut#P%+I8VWx0E~nw9 zul%g`6<_w5>f>!Vyl2kyNSKaCf}{ZzLNGIExpl@49YwiK#L5JYhrcwLhjG#jLy9UI{z6o^DP3l0IEP2 zy@RD9t8~dX&?T0iY`)UW6AufecQ=|rYwUIWP;7@!i-yhDKUCp=!js`Q;eYur{W_p& z5dJ4TnbAIMY-zkYFi7FaYydQ#nTO#*suqJ3o@5L4CU#>~tFl3aCo>tSl7rc>gm{vi zUMC!cC1Eyf7B&YHL7xX1?+K)igfvQ`V>WCy?jAVo9(E78>o9N>?}|D0Q4(XzKFm%x zODsdI8t2?twYEx#LoIhJ)FX*SIkflJ;(c2)^}$q+c4QxVtRwr#qaO2kNA|HNI^s|E zsmDCwmmRs!zIcEA|Mx1YztyCAjWSl zc~kvO0vFP(+wq!xb)sGnuOR3t%^dmgdU2j0+Y@okFy4iT_3j{|2tS`3;>n;-GY zky%<;gKL$$tn#U@9*qdd1yybkCkUV{LY0g55<*VeFH_Z7c!{WT zDHekk%)PDH-|&dk@U%5l{{oWc@?ub&cJ2wO;d~7tKW~Q`&es4b>5y!?XKA5AYB-^U z5Dy0-H9SCDB2W&a(^l7{>l@@Z6Tys|rZUzv4CQkun;$XRp^UzLYHSFtwzkJcXHYvY z&w3rJ^mn+{QdjOZaQ~+)#W`=!7jyy7{|2vr{SAf>0nFzIbby_d0_Xrc8(s=}D{J)i zj53`mWsaC;jK}YHV#|het1y|beJc7C z+Mo6Y^Xglbzo$4!qC8$jzpYHEhGZU{Aymh7-iCTu9K#xR@)M9PNE^$SBa z)ATjkj#U!ZFO*fIvCgG(?9?#+KUPqcn;C(z71;(2R9g zp6nw&{LIaMvg=B$@0vxEzh@|w0Z8&Xr8dZVNlBJ?!2oK>BP6us)RtF>Kmh249j!@x z;Y<14z5adot+4k_VxEfe!Xl9f-QZ0+xv*W(!9Jp(ef^DnV=CI@H-fEwZ&bEF`T4)C z=UaH(aWDJJx13E2=|03nQ%j@=3C|RVV-h5eDHfynR6lTTEIVzd>B)==JQgaGuU=A` zrN&<)SOV~SMuuHd$nyZ>sm^T#c7TlJKsP`)vzqujGZ;Xvw1>dxOew}afC$1sR@fpZ z?2ub?wZ(0vA74nXwIH|ic6w{fGYHvWCmFU~Dm^?sFp!?5b1!*AWw@lU8s@C@K{A$h zBDt<(a(_?kyO)OpdpwdJ(t4q0e(`456CSz(CBpj10E4`@} z7J>kPNzsBuvDsmg3KvLom9DW~PbBUM)9aM_$A%5dJVvzO)>;S=51fymX$tMcnR^*9 zf!M!jF!QB&ABM<62~XWnL1uq4sy`5G#r}O=hEFgZ{2E##dF+(|g^9U;5ALXv)E1V4 zCY|VY10ms=*vjZNVabA{7-*b20kP=zFjEBUuMPepuLK>E6)sW2$G8i}rDkTLpOUD~S7+L$&y}_8223ado6GSrAr6~F54Z}P z1MN1sGmIxdpk_vvDOiY!ce$hUtt?2na_O3EGGzDEs=A?NbqVFt`B_QXXDoni+JkKC zKBj7x@vSNAFGQb}fit;kCd03sc)C*@M%W&!>cO#q69w%-hGg2oL~7Kj^=(eGikt9GV}dEL95aa)VFAmD zV6IP)Sn#=Ov?pBNmKK`gLMSk)6f1l7C8`%`T`{CnqGssU2VXWmRQIRXYSlLClQ_k$ ze%G_0p{W6xnNPPOzVlphv(*?M*yAX5FBh_+XYfT1b!%&z?_zBTt$5$82uM))vS1USxh1 zJ{lE}x!v#ub?oN--ey@WO{>>tvcXa#ZqN%XKhOt_2wdfHARHJVE`k5c+(Q?s1keyy6+3p%fOwX!b%vKaPrF&(L+I7B!> z$JiR0+mXwa(<^qcO>T6q3fEVOfPGO4_U*cI{W#d@9lJ|zcp%-mhs4eG-N%Zg_d7jw zbYexi{|IS&Ex`kQBsI%c?6wDzK>n%NeauSG@)?LL!Efam00{lQOI%-B0l?axt?IggQJ?iKas_ow0PyDi z_fj8oR$B&Dp$c4d&h}zm*^^umjj?NB1C@-)3-H+G*W<6{=GiLb^d zKJC8yz%*+)xZ0YwB}C8bW?;>VWN@gb^4H5j>Co%>hj-G;B@a;O#Ff8nKQKYU86N|_ zUue!f2rs?qEf-mCT199PDSzr5m*qttc zjmsPB>}9SkFjcqk(@1AKdD3(*y%D(+Z3u0vy#wq;<(uHvjWurhEI4xO>{RQ;Ne}pq zk-TmZVKOSpl9Ij)BmV5KLH5LO3rvDj063s;O0Xc2&`6%y%=OGxuGhLk8D%lduGEHB)PMniNc7z1&3HUk20& z0#<2K1_dk7v5#r~=>d-CL)3`u5HjXR<)2hx;G&z|@O>AK#6zFzq=L49yhM*vB)H}vO4O*IA7$KRQ?rOq-9u?s_}3|U7-(0S zB7|_r{V9uz(Vnz0I|bw>bkM=^aPzEXUItudnehZ9@QyKCPA`d4+&HYTdFaSJ@6VfE z=mTF=C`y@pz2FAS0$8KzCKJNgEk;-b8=reQbP)GLvh#MQbB291-5eQ*6=l{A_c}<- zBdAna-vYuG=EMzmoGGO|7?ax2c-n{J=u~vLM-S> z#33<_DA$F{?h9&b^D6am(8vT^i^PCXdILU#;cC7dy=_Z2|DW}-OOgu{j?jQi17mL3X2PF#XN!00_ zJ%h{8c7pV3<8Z3$Lf(19ZaA&ey zYb1)9__i2pM}(pxt`3Y-!sEgP1ziB+*b91-YYkOPl|*W` zkRqMuY>A_qt4b*PWOm_U6aZ#SZMnvFMTIN-vrX@8_RQkXN%RwBJ{NULR3f}V2&)A) zF^$N!_$nCD_4OtZQaFVcsGD;hGuDVZUZ}*qb%8!`_s& z(5DjNJEm(>(4AGoKS5gXlP%=_?h^JEPVhCeRi?s4alZU=CG4%g;11u~w(Ly>s1lsI zZ1Mf!Jny4&$A8EuBgfre%a*@GgV@0b006BjJ(!$7jA-0Om(52ji;oaFQTrWz6bEbi_Vp$jrHcIo&S30c-{n8VzUn*;rp4d}!9*vVCgnID18E4B zKLmOJiEyvv_^@5AM(QL9>}Rx(j`B`k`;ebXLM^CKD+p+7YyC(Ln1wd_d+kZ}>)hIArehP6sx?w0ARrzyGj~8itRL?e|!H20s_U|@e_B}SEa{(1BuCR0C+z~8UgtD2|4z^eEYYkb0*M+00`I@ zk3Hq|PUU^0l!}vNw3J&`41Jv#gCSi-L_@$Ppp2b4f-bg83{Hr`h$s!NJV@ojWyv!_ zq2q|77mBSbKe-8bxs)blnU@Kf>P7Ps3X@9I7Pzf@Y_^LQ zc+xI4IyK0&d(i>9(q{g9w&_$SP=R#0vLwqhMKhgQ^0aBy#$Pd=77dcMX{J?1r_h$Zwp}dMF?4CKEwlojOFph{fcD(>Ipp6wu)PRKlP*K1EZK78%9F3a6orZu zD^aS9TDc09s#GJWkgqowO=gSLW_LIN5P}gD+pnI~xKn>qHYppjA1D3a&4D8)Vs0#o zgmcbIX6ZO*=3FpL47=oli|)GTx*LuqG@KZlHh7lATr%IR#;_?KK=IC zYiXGv4Q6ObG$eku*)Q~XuH^1m>40mNl_@M|YO4lKnl)}i( zHLG>M4;;=M03jGbF`OVNnqfI!5GA=$f>8z5Fn|AU6?}IzHK;%=;`zY{(iMPF4?p%n z-&}b~6~g?b5AN4=i~s#mv!6{L6E!#K%6@yNVwnRAi?goyH;0PcTiTgAWG-zNhp4GaWvE-+GHU=WuA$pr=iBje30AjLuvMHN$A2_;ojKqZw` zQMC$dGQ-<+Z%W|2f&o@U2?Z6X%11@`6ROu8?~oHTH9g%rRz36xBj()+FEonvAc^R9CkY_W7IeB7T5dfUtotY}Kuj96{o^s+6! z>3#!i|3F-LA7N3$06+U$uM|-L`2KrVCJLeQJ@Q}V%89i~P-6qT$MT4IE#l0+iSo`$ z{le#7HFtt7%X{w56bm`FY}XEVi;|C%GQC=Aoxmx%*DZ{jBPbl(Fv{!`8gX1ibMUpK z-~Y;2c4jAEOZnKVPV}M^>&9Pnvh1toABKZ%;1DIu+<^#svD&FS^~;Gz6MoxJrr1eb eR3cDM)T4T~^dNioH}c94d6i%Fz)#w|`vL&JyAfCb literal 0 HcmV?d00001 diff --git a/internal/ui/dist/assets/ibm-plex-mono-latin-600-normal-DWFSQ4vo.woff b/internal/ui/dist/assets/ibm-plex-mono-latin-600-normal-DWFSQ4vo.woff new file mode 100644 index 0000000000000000000000000000000000000000..c812d782dd55233b73a1da10703261441461f59b GIT binary patch literal 13208 zcmYjXb9f!y*S#?sHnwd$X>8lJ)!0pA+l`$xwrw@Mv7Ox5`SSk$`p(RH&g?aN&z@%v zM$1D{LIMB=_$qAa0HptFee^H;f6RZ@|1Xka;t~J=nAjJ`{RKH_CTJ8%B}LUQ&i4zM z004y3snF?@q^i2e*EaSSSNc_JD8l}TQdDJP1ppv>zv8sMU}VE;dt_>F>;wQn{pVKz z0Dx<$pvh8M8oPdR(4AjCDE|XCfW*?y%i@ch1OO;Z0RXX*DlNqaD|2Hr0DzwP%ZKwn z5J;H&SbdRSoYj|2`~`9-LogmIdpFN7F8nKp%2$3PdrGNHJ4e$mKZfS3u%FFcj6^H*{JeVA~se`e-IRL=?b$)>PulN#TA^~P6M_0Em?))pR^6PjfBrU3@ zo@=Dq_t;1u@0mB?Gj9aK|Gq72=__Ezq0g0X%kN~bOO-qU*6;6!} z3l9lpU@T=sjKa>00t*@J{q~EC*zhxMBp~4S#^?vtXF3JPeGjLovA>UBM(uAWnwMxApn`;ZkUZ z`~6b+Ns6OvXOWy{k3le>O!SU+#pVG_+eWRsRXes;7p~w&-6St_j4c=Lys5@+-*(`oS;!WC({JzuMv-z(ttEVYKJn63F)13f)|{ zF?b$i{&lfZ8H9ejf>}05VKlmdusq*jnQbYkmBx91qc_zSIjb|Mk0AJHoMrf~?A0Q0 z5er?nEO$J=Tg>2|7s@wk@)DMRWs_y znh3>1Vp~rxX{P=#QGlNo;sR(SBZDwIAr}>kQ|#J5Ipixuu$DDPfTgI>eu5vk4T%Q; zJlEtCA*%F+(Z!d$y{qhj&Gx`s8(rtU-yFNN5_lX6sFiiLZi<^>XE+|SC zbdC{ejD{U48BKUtifnIp`4g5WGT^gorvjwKQWTn~a8ToI@PlT_WlJ`e(+ym;VKcdW z0}q{qU7lsb!=1TZE{CL*xA5WIR_N?tQT4}F{`GkWlSKmHVhQ2XX8habycJ2jmETAU z<;2V3X)Dz7(Dl7?Cs=b)NJ<(2Qh(bS6G0K0_?B#BCvsvwteFu!lW*J8KK(}C3mL5P zOV3!o4x>2-v2DYja2q^*IgimN(U#orCkj5e7q~t4r;^vJ`Il8+OL|VnD-&5aR33(l zW!tTnWUfmZaDA5&izmXAD@%LI#DXnj4xxl1{+rcb%O@gV!hj1u|22YcAe&zkpC6nc z+x4`kWhdJv&Q-L>Fy9^l8!8T4=Zp!bD}Nf8^V5v_Re?|e8!@ps`MnTc!fcv#ukGe+ z)}#N`gk;Yn+3((nId>JcD!~=+`0uE2#eafj%wUyEx(TuI`Ag_7Xey+N#Gq>HWDG*% z3pj<>UE03d$<)X=(kRl%$lS>26nq{5VG|{jC6*+3E;%GAA}c2;B_bmzqAe(hgn+ts z2mqC<&amrj7mC^%Y}mhOS^_l#P^VYGS+wRfLY64)z`if9Sd9Hpv!jpbUVX zb=``x-}_*)GWo9)G$(Pc{Ft|dk;W^GsU{fQ%doi17m$iC2vz&>jUzE4-L5LrCO=>B zH;!$adn{iy@!hv?i5+9_`|dZKh}JQU4r>(6;TI;Q=|h*!Kkx~uhJkJL9t<92wy90@ z)Br?rKSZu+__G|RhS7|?bsEdB)E1Zl-ouUt_Z6aP5Y_ZFF% z)#QLL0Q<@U)TR6*g8q>k83y%vJa&eQZCft+eXftk z!ZaN>H(qa!fN^DpmLKNi#YN^6`;$Z9J3pvV5X8>;oX%$xk_d!O!ganffdL=@umJe4 zI|bC|Cji-Vt%(oH2v4$^jSk2PtZz)DPt`DDsVYh_*Jfo4%Wif4K7zDLW9qVP>z|pN zvGY_jnbs&x^8N^YI7^AWAF^P992~Oy+pCS;C|EK`uWNKGNI#WJf-tOgxtoIl!u&~tKJJsrlvPI{;_2%<7 z=^7J^-E>-D*#JeF#slsqiDNLeu_jE7?p7ub%@a^`_|w0|QgAivw5CQ3ue2wNcjnV! z9IM@*T2K|(_t-+$aZ;%gr&gPquB&65xutvOIKQb$%IRR*ivH=)NUwnAm6ZZ$lk(>; z{nCy-&{i03IQ-zd>{PYDuzM7GzgzH#1mWQ4XKSmd7qi`hDS`m-tLU!;Da3zLlb%6muHC+zVnf zTv_4%j?jU>{-Xc0w9c8m?C)3whu{LwTu|VRukNvN2v_@V^bCw&w^8p=R4mfCoIwsy zQ(4D>WA)--Xgoo}qob!=$J%OzTJ`?s63MWus8vh5w8n@)xm1RZ&9?eUuSehXaRJ7v zoTyO^M#lt;UVChuTRXi$jZNt!k15r?6q<9=QAO*%-pi!6<}gDVgu3qL&0}jcRQo+H zJvc1t8LdKuR;g=fGrAljD4HVucvJ2!2BwoU3oG&o*l{&n!#9ZCFkho?dvQlH{^N7E z1gDoXA$G?R(CktqA(ettOYOWTGKjbNBxnF!e5BW~m~*g5&oGrt6#c#dt`YBq;&}!J zSIPRlgqbPD6^Uj7aXRfT;N?Zr-|IFlD?(4y^p+`N>q+(v5PcHF!iud5-JEpPb0lln zzr+;Pk5HJw^N@jKV#;}pWnvQ{a63y;D7YAmc_PPDvGOxn%{vDvudy}qk?VK!@^WP~ z-@khsGSz?faNariLY$-qAzYr-(1o5}moYcDYEdiv#r+Yq*;FM~yO0g&fKOWhzKa>- zosdaGEcnD=ZpnQ{;P=uXb5_R2Mp&hr9rDLq8%F|b`_ec$yJ%s%s;MD~ho=?lz5P!c zJ4h1DFbUAeN# zHR^fWFYOv0m|Lq<-UxVqgyf{Og;zVUacjOS`m(~v;MxXN3_%in7}JdQpLOU2lUyBQLiD_1%Ufs-r06Ip6J0hPu6b2;4X4XSU42z5KOo(R3sQp!-1 z5g|z~#FU5R{Qi_r)x81lGeMR^d1*-gJNaShq9g6;5}-7xV2R`LpRi^NiLm4_g{Qpa4tb^VeWX@ zB(Ag1lt^pu7CrA2q>8W>n*;n|^#3f%Q*g1FRi*vW63vVbQn&Yqd>-`h31fkD(`ifA zcy0vp@&xVB_BnTN@IJn+HxaLwekxe!ZaV)M3+;gIx6AfPIQlkG4Qyo)@^`^%{_z#) ziwEW|d!6+4n^#v`9Uh;LJsS(Ft8A0_-gh+}M5}^rm%&X*1-PDiV1;zXZcrO}^=&;E zPtG9mbIh$?<-^(apf)ns)oz_*-R81dJ1Bnx{%HGMWNRUi`z`}<3-ta^m8di)s`!mw zC74~Q#y&$vhJ_Wc+t{32pMilGPNiTu+vTR=3Is4)`j3;Anbko~>{Fzz`)jmzCCd=; z6V~yTYQ7C1(PB#&9#{DCcl{*daf|)lY=rE@59g=Mw8!(H03)$lwy@rK`jPfOk0^JH zGcpAEBoQy5*^8DvDu*6F_#QqEid03^&b~X~(?;}>DNbEt=r+W_bw^1F#@ivAjYryZ z$Yw85pjcgxP*t8mK8Rfc7xadYP{`K!-6?R&gocE?aFgzc8Q5W|ICk8${C-`1=47>3 z$^6#VkcSpP{M}x0fSMqhmU4~qC3iD~%xDT(H9M$^VYweUsIoU3{#Qv2k_Zts4X~xQ zYJU>QDP3B_gVxeRy&2uoO)Uubw16D~4Sz>*bgWcSOEsbR`6f*LL{JCrt-0;-hbyFt zxzIR$4%du+MLDEAq06BUe1&DhhP_$A<2)~KYX<60T|_gDSPfdS&Fa3wuM{$`{V2E8 zqAB0t%ImCISyckzUY6@xB^Lc(eLbaK+;cW++;%;KtE(cWC$)YY!* zx_`%({PS7yTisx76i@xum>r8N<22C-rD|hst@%&hfup-~%bv8OJEMSkl7RC=gjy~k zN+JPIa0e*fEZXhViTZCOD*X(Q@yib=u^qsg9-FIc@P!ay<&fcaCPVTC5pgtkeFLBy zFSW+T^Q1yz0KK{9)otLfDQUJ99Q%VkZpU?1-ECD!d;VxfkmuE4Yq7nmc_Ptmdtv8< zz6MR!MNTfF&&Xu#7__EWik&w#_nH~__&u?BSX)HPcGfgQpV2io&djABs+`Q1h>k?%OVINQioH%rWuP6 zm=F5xB(SMVySMmj7YwG}{=19PTAcyefjulCL{p*HLZTh{e}ZR!9I;{+GrIpZhMtQo zoeGI+Yb-TYR#wTiEd*%Rv%{GxzQcDbuYX|pPSr8`mU}ArQxtJeW)Fqc^|)w9cN{Q1GH~i^+wB^hkO3QzVpP})2P zk=q;aFz`CaF|p*mN>US~nr1MP3(<?g9i+D8{&qcwmWt|m0`C#RAl@n)e z^zagS^xBWgcgjxx<%J+)M=$E^>sE&Hz)fld&kccUxB-V=M@WHmKo4N>$7%7XaZu`C z?W{t^#M^q<8hH+m-{1n7>h7DvjE-jZk*aIKyrzx9_E+o4u!t1=_44;Q5n{HQvREH_ zqm1q_{D=@XEp;`5vzM%rcO7~dJ(IjxI{H;zAo4Jn&lIc zQhdM*;|M~4rL=whT_X0qaXqoh&26UW0nE1fTKvc zlOU2lNp70Y_kD1JCv^~WOmi#X)9vlGhjrk#N9cCNbnrvJw-otsBl@k3XTZ8|BQR*p zVLJ7Oj%j~0X??{4M^0Q^ zEnncz9ON2arsRHceM(MlcbT*7U@fc|DOjjba1x1P6CbvlrjLkNse-pc0Ar!5oL!=< z3?$6CJ!TGc)VEd>J=uF4wqU_Mv1MyWT#C%0I7W?f{WMJ)t5=%}r3#&GVdxiJXu^X1 z-x4W{OTqP+j4cS!31Ed$f#n*e<&mzv-|k?}P5M_VKQ5L0I)}`bZuJ#x`yFX>%3w3O zHOtrk*hHmBMUp>NZcwnUz7?C!*DDtaD!GPA<5aSX`(#I0PcL3Hwmh-JH|Sz8uj-W~ z;>MH52N5f8C&e;TP{6~^Iejl`?+Dwqg`Gu) zGhpH4#6cp>KfPBy<0Ee2gQ;|@FD>6^wEOQP8`nw zc7ZTQ5yK+hK=Ehf$II0_aS#-1aPusx9~9Zg@2er*^g^>=_?)N#e0csNgGa`L6iTm{ zuILg7>%WxXa93i>a<8DCQZi7nt&Bb;b_`mbymK470`uMT5qYmxrGNlK6dfDt?)r%PzAK&ZX-3)zQc*J*W1L3O<%Bi4)-?Wdd*|MJ2WFHQOfkw@x?F3zqr25E z=Cbp|vc-Lu{)=$g(%UE_Bi99Vzx!?L1@m@OG7s0%fWnVcB=7N$qA4SIke#%a%4oGb zY;fHG%$s@bF@{VE*iovPX9C=j_IggZ#y{F|Gj+>aZP%YERdUL@sPg=7TKaTsgLrs* z(Aw26*Ay&@QhUs0bm%W@gPsK%wPi|p_?hukoP@5e=ytvPyTueLo96I;;nT=CW8u99 z+!%!o7k^|J;Hx;0n+3yFCaZQHLqM<~qG&!aT@QCYI<9>#*EG=<6voS+k;p@pZCB>dqjJ981Kp-ene8;-p3{humm z(X-O?wytFq?Zv%Vlg%c+1t&(NinQaX__5oq|69-H0aIXkKChMHdD$=yw+01^|I9yb zd|3I8wNu@5u)d=!SFTkXs6OkED=G9EX@=fHmQwpNk~LKg-3pbX&F_*?Et^I}70aAX z&^3wG>^z;cjx7~33nw;KpbErhW2<`XDk%9{T)##560w47n_CVOruIAf!m(`C(DjE= z`n}ODmQSn1y~INQs;#+>J$+ddapqQ1N4f{8Fq5|bPh5nz%(`uJfwbI(v&8D%)sbMhJy3aJ zY6p7Eatm3-l)tOp%oJ~v{wq3p(0~;##A{eFbwoaKBN1UQTZRE%y!=TquP##963=(X zWIIBqx5<$x95{0e`WaRz@Moec$3?dH4>KhFjW5Mht2j^zIA>-myNaS^&e0uHH|K-K zq2&mq!4+q_dLeZa>lbDBg#U|7*0YGFC&*z^6~;6T3_k9l~Ib4 zxNM?J^BZH@5BUCLcm9~qsA1Wn&_55}yXTNUG@{I4IKDLri9|ORvN@2m+(e&G&js_# zCD$dmc5DX<@vJmAf^COAb5o*iMz0r zNyO};F~8?|(a5ngtd~x&(eb^DH~=s0xw~T~K0J;0nq!#oL-6QyNchudStunKpjOGV z2Zg&8J70?Hne4s&KW|5zYCUJ;YEfn;ef7PQL3^)C0wBZsLc8{?lzYM86n!%gIB!K#qt+6m>f>%AggRvcQ#7APiEr|MriY(Iv8LN1B`BgScjHE=0f7N-pCP(LzXBc|ff7A;G0f_61o_rU zDnqK(rZb4|T$?Ka5Pl!Lnn6?%M$%?byfkHF@hk(PJD4?2Y;bSyW2Q~sm>AoSFdEe| zrVZ9=I&|Hz21Q87Vh63?_k9>THUSU2RmmD}Wc)4eXK}(h(Hi-z68%-7g1td848MES zpZq~Q_yI?6Lg(!rcbEFdtp?5E4B#6YJKT5ehWJ2H-uIn1p?H6$LauA`Cl#0ahMXs} z$Kiq`0*RJy`w5o@P1AYLDHojxH}k{488l%$ z^uIw)isq?1GZ7x!X<2!zwEl6&KYp+dPp*q!F$D%g9R7Al9{qYvH%mP(iS-;!o zs8^J~HROUr!f)GaChRhrn4aE|oYIS_2z|!Mn6uvQ?&4~r#iMP!jI*(bR*_Qu$j;84 zZ8^PU(Cm6--qZk;)rIiwDpd0=YZS(VYfN<*>Do-CUDsTdc_2ky;Q^uKSA}lvu=-2T zmF0p3{GBXxV(xHs?~qQ00iVV)BjcxPmL5GR$*(ZdaiT z(pAzW-6wE7$duhtIs(&nIKLGwpM_}>!#qw6TP?BX1%#pXIK;tUJ|XjQ<}?!+Am zhd~mmodRq(8ftaam3}6bzZ-prKSB7)PDPLqQQJtZp2zGCt@cf{D;MT1j+r+4j<^r^ z{}f{!xA-~Mw{>GE7<-mgmFM?~F6cfrlruQiO>~>8O@K@DN&{s|&uYpWOCRc%|IUpR zS~%4BwP-FKoKl6tgDJ1cqor64i`XK$sEB;8Cp#Fsi|hjEtQ`qT$$I}wJv}M7ilduWf z>n^Gqy zra+KK!zG}ip_X64+^RKQiZn>OaX^{UX>g>j?zj#X!7OJl46ff80>YGzoXlS9Pd%}D zlF?RoFRsv@*We4}mGfBo75UlN>0K(Cliu zNY*kDr7Mj?dfFAWDX&`PI58YT?8vKLTCU2#($R&Yp3IN8_I%f?cdVH(Ia~R+?kR(Z z<%|Wg&5;)oBT`GLOX;u6XjW6Lh!LDWk>ez6Dtu(Ai~4SY>BU_)f}GZ0PSDkYt^i6l zJ4a1|&Yps!qn*sp9JlbFGE3?*;=f4S84w#bRQ!FklN?ukjX)&3gFbVQBPf@QoGJf6 zeXVQ|FPl0+I6)DEioiY+X;L%h37^y_cU!`Wuj0v|gHVdk7;4F_2Vd%G!-iiFO@+H1 zOgGJ5;2nPMzpe832vLk;3iww|;UZW^epm%y(feB=x5%2q%|>;jh!=-y(Giv*df%x@ zKErPhYVfk=?-o>V93cWE`NZshS3{$xWh5AO%p~HIO>p> zt6+1Sn^dHjapEl(*#>^gY9~0u5hwc(<~9a za+W{l?lhlN=p;KDX@HA1#MK6%3#7zOo zI)!h&EOC>}S!D0etvBki$We_eFL)pG5?tR%V<0bx=P$(*iT{|=s83MOzrMnlL*1Z* zbT(A)K2y8;bwT*$tFG(*u9Xbuteef6noY^e?la|6?ko^c6>oZ-Ika9|45?Q$=HKe% z{v?beb8jd&U%e%=5c=G-!)ikgenT@`*kMdv!uG$_w63!U;2Zh$96kYWS`c{FpKEbf zH0nUZ%qv4>K&h+hY@S80(%TNdf2L+m>|B)wgGfcN+Y)Tr#(Blc$Fp>sIt)$qkjm0_ z)iV2Nr1}gSQxsEP+Js#Wv0*31{ZS4awosf8D2g2ju5jW@o|SmB@(*`n6;EStvxbOU zRel#wfA-em_!-^x*X;0NaCEZoY}2qCk0bE^mnF>OJ=*fk9bjEoT*%WLI`&YuTXbHxBi24vx<8KN?bMH-y)}W_EDi zu$_Kf9^!|#xKho)o}L^ZlMJaDI+BWOXw!rQTT*I7%gaSqr%Sb-U;M=KtEymRqN^=I zW=%32Zg}de+Pt+nLW+w!ZK)>oh1q(KWW&YyOdNmcBx+p{o$2TQ16AE{_K&?M zxMonm?1dPygj+42(aIKcElPJyw19Z-p%VVJDvq_lxw1n9j*EoG~z>xX6MD(ngN5Y4fM5d7Et&okfj(m)57UR%d5B zCAuM&-e`KXyA>eB=ekMUZ@+-MI_7OMmFg*UO~fzyRszD9J`5?Zr`q|=``O-rd_1w$1a?d_^IF%t6dZEC^6 zmXK*f20CgsT-=_U#(&hKWIdI&HEC68&5PZ~E7jbKT~cHWbV@~5aeQH)3NjO^>bA93 z#4Inh;BmYyghk7vr)7ktfAQw(&njt{KdKTa+mr0(pCDhGda6&0MhVq~rM{uTK-EIX z3x$V81i;I_v!%Gs*v-6xXm|5y-mYFPmt8L5HsMr+!Zqg{KR!J+wQpv!lO`EP-2ljz zoeRy`9?knXXufEk6l8L}XCt7gL~}hfem2>lHC@oi&17N{FC|Ehw{(E&PL6)Uhtlbe z*&yY1a`%&HhW@z)pN-7}8B9}6@ofY&k>q_);CO&^cX3BAGOEy%Av=dWhZx>mD#UI4 z8VA1?_v6(=VZ9sSg9xiJ2~>;O{E7A=q@DZ0dQr=`r2y*DSou&q{&bUmJqx|~6#K|~ zM|%_cqK7kGlHHve@rR9^ z^#)2KG2(4-ye-E^G=8_p{#Ktjfv0J$sLyT<(1l!-RL1nq-$r5b?R>zRlP~|RrOiOw zu>_f1`jJiG*f#Oi)zId^2strnMN52ne{ze4H0eZ;8j|GJ{*sxg+eD-C-{Bsi6%ACx zpNc-J{J#Mf^|pJ?=;R&G1M44XsH1yZ=_AOSg}iVdXAzcdu~dJZ-*?b%kqMcEpVAU# zKTYG({-AmBKQ%$_)VE=Hg(x^Yn(_$#TcCKn3{i#w( z@iZZnx`>&=WZLxkt#s;;@juPgm-H1dxSB{$c_F*PWNW_Rl%pd|x0kd!)5861#j1D)x)Ry_|U24Rdn z3{tHcm4KMnXwcE2Z!zD9ud}dqZ%>WD9)m>x6ABCVOKKF>UX3IO9b7tG7!m-B5)Sy6 zmzzETOCU7!*uC}Yzs;K(gQ5~n5>_>h$tu+^0cAc}7#RLi@?cUyg(^-+c1;rf=b@9D zG)Oy{Jdz%N(7gp(_1zd<*9F#3su0WnX%}oc9J?Tr(!y=alC3opSSz@x8$uc&i?(r`&WX0C=q}Cygio6v1iI=jq#Xa?u zFfO!hjq4Hy6ha!16d@`~Hn9og!bC4;jf_qlf4u0~nl z?RnaR<_|E8Ct|YEZ!*CZe@Kp@p@W=_FtwmLgRYSF{<%o-z+|&cV;lwD4nKowTlK=0 z1o0T5YJvR>F5TgKnkv?xLR?pK;B1N4ovuFMbmeP%Ust|lfBgMAsM<+y09G5VIbgf% zer@4>)@j>)rg^XX%=Q-baRz`|4AJOo-WE@1pTyuqPW$CEpsAcl?ZZyJMo19HC>d8c z6E4gt6I)-nTgGb>+g`Y1#j6wBT)1~k@`6I9x=9QN;2x2zWm-GFBBPClO36hWSn)dE=+^YZ#o1ioNvt zV58BD!h?3;w&Qd{V6^hrwuLRq**(L_SP=;?uW^i#bVDSyjY|6(NMREe6li|x^F^g0 z7@uT&##C`rW|503ea`5CdKoPFZ$uD;D3lX_UD967JBw#a4_$*Oa#(owgN86|?YK7g zBrs+FId*fM5PQ{S$dNXIi;GIC3{8v5ngaJ6vr1$!90|IFUI$5r!Qk+;MSr=A_hB>iT(o6*ax}z# ziVsD(Ou1|7-4Cihu6xYWgo*PO6;0M#RkZc}9xu+|BT=a$@z*ksxnEi}s`X0^D??$Z zv|>O=nhF3?wB@&&$avZ{kzMMbnpB~ira4olTXl|6@)$)LmSj5ow(icdZsxHF)pDI` z=oPsoXdD%{eQ#J%nV<)aFfa*lt!tBIHw=xU9F-~?cpfxyZF(Pd%?UnPMb9+zUIq7b zKiO0{`U4rXBmbe~DWK@#)BHE>11AM$HZ~AFS|0ugWK+g-Md>jE;}dQPa{? zmQ|G7TG?2i9S_GE{H;!;cfyMdBG$3E6d)B9?cWxz%0nj6Wld%@#8#BL+pIBON-Rw) zG1pKYoiIBRL7@6nlW7*t$0(mE8RN54Y4>5F>0|@FbllaLFRU5z=vqV&wYj3<86IxB zA0(DeZM88?3f*=qb*FLK^3-OfbFJ|(P2#YfEsX}gng4KsM#o_`>-}IOo(v>~h(y5N zqy}dCk^#-a&JzXd6_KQcV@FwdNJ@()&mF_{@+HVz5Nz_txauWkRN~*|imxnh=hKV{ zebW#0>e(BEgN=;@9NTDNvkW>pCew@X6z9=_7JEI bkf6EkE*O0T@Sz0!g%W5edyel!QUU)5+Rk~f literal 0 HcmV?d00001 diff --git a/internal/ui/dist/assets/ibm-plex-sans-latin-400-italic-CZTNEAuW.woff2 b/internal/ui/dist/assets/ibm-plex-sans-latin-400-italic-CZTNEAuW.woff2 new file mode 100644 index 0000000000000000000000000000000000000000..cf026fe3494a9f603ab51c522853c24529f3d40b GIT binary patch literal 24356 zcmY)UW2`Vdur`b?+qP}nwr$(CZQHi(weDrxwrzgT-uwM=&Sa9NO*6SN?M!E`)LmYT z2>=k_KhY-vK>DBY>Ky<;ujl{P{%8LGFIX(tfqh^&Ax2;Z{K_hVDp~*`J`hxp`M`)U zP=WIlfz{a1A$S0QY(ONy5gZ@{pdlpS5w;2Gw)VY@X@F8%DU`W{2L_3X&Z zg;ZZ}b7Jcajtp}Gg)_f@b5dMk77@Atind=bUvP}>@DdUtV)cySpIN{gD{t4$=}^wO zovu61#OQu5&_B9?%1lMlEzx{NA6K!asly-SZ7njx36S5an?jt*WNEM@%4gWpDhaAz z7d6=gR*8r=r?XpIwCu#k5=v3 z(OupBKia!RbXM(?Q>1@$f4u$q*7+0#BKmnDf&r4TNn%m>C(u5HdoTHSXW#meoRBuh z1l*Q#0m>7>=}>No^iicmv*^$(gU9fQ%~7J}s?dk1xHC>3)qbB4cY9&6rDwp@V`6HF zpG(Ty|6X@~$Yf}f$|P9_=7Frp8ko;dc{L$SH|kgNKmr}!epG}f_F#^)v|#*(5_4BC zui+LiWl%2SbUIdDU(o$@mlwUp6oG*p!uppB|L9ptB_=zS98V zq_@^hnU?+8^YwA0brH6s9b8vGo$@zl5Bv<30#FEaWuWGDP%;K|xER9NruTZZEWF#A zHW$4tXTPDV{f68J6!s4QS$p5}S*2eP+}2g0d{*GKUh~2$Vga9|cmZ22t>N4E5&iAb z%MIqXg>VV(Ve^cf*yV-Bc@@5Z-o-Ju)&y-uGm=YJaUQ98e(u&Dz1_hXFAzSz*&6H4 z1&~&hYD9WO4#nVV6}vzFYF{kBY-ttAY5HLjqI5G5I)`f$m+E()zj)u&tpdq@%p=KU zRF{&U6)8VS9c(z=5Cy7nV>Y9`^pb^ReKy5+F{=Typ z`ulGbC7g>FxJvpI)Tm5EKXquR;VSP$+l-q22~snQ8T*Aay41 z08>&a!ZEs`3D@9uRMqwMOF<5ln8cvnoY9TKghNJXj1cRTd=$$(`eDD0GmSR6`9+~)4yd4HrK1%o0YKoSXI3a6Zul#xvIGB8Lb&gGun} z*m&bs_O^;+BZDB2ENA_d1l$2aLxu^BV+LbdaW^h_9(Un+VniH3x~xoL4NttYh@XCP zu!enIKd}J!TBX6wffV-sMeLJ$A_eZC(EG^YGUX=-$XD*?7id1c323Ajtr+UO8tsrW(;vJSy8%P@^Lv|#M#=vBC6 z1ycaeD~!IJJvA7q1@p!(xJ_FV?LzG~B{8Zr=9oT&W4;4{JqW$@8lWOynDaPij3k(+ zxkJu3Au{?o6f`V|!7bby;DGUW-Qe$6B>;m3L=17F=rEv35MrAC_DFG%vIcT;L%|(t zWY|PGG*2U0_I(u5w5qh6q(wK*xHYux?a}XCN}X}%ij#A1)1|ky*nM2DqOq1+%37!hU#hzsTUFL6_ck3q zLW8CvOT#G65KDR(^3ZIhNsB14?UEds`*q6RZ)|N_J@9CkL>R(r<9t>!CV$ftwIWd{ zH$)h^PxfcQOhUgm(9_v1FXii39P!d)j+^5dAWmT&NuvJ6_bgbEiPev;k0pumJ3i`@ zBau@ap-kX}j!eYHCEoE9J@4DX`J9;ftRk>{CSXem7JEj?0qI&wOlv4Mp$^GpaQKa8 z(QK7s#Mz~TbCzS<+$Y`2F5`k98;r`?l!hKwm<;qGLl2=&+X7UL5{y-86TZo z#liAI)5rQck*#AjUu7BO<;MVhYz+C+Q-v18WHud-r`9VZ8j(t+QmPj!rCPDNT)M2t zx}!6s4G+(H@`>dq9$FJnVp62Qk(g>G8jh+kA*jHLtN;tn2$WzuxL$SEbrGYNNqNo@ zr;d?r=lW>f$EDlK2V;Bse=Uy9S7`}mlkE53_2ssG(&~!`o1&ZjwqQxxxwmj)LJvPI z)=hjGl-hI-{Mb*RRufnhqPBv;PM>3DcJISc|8-2|iowlWufsuh1I3=-+4p@NoT(<; z-n4BT1O(rJ7ty~T^^wVBr064%+ov3gd~(`MJp}pEZswCCQDvSQv&NE9(5o%}PO$A* zg#*K_`osUdpDtOpO#`DX8nr(UKk{@sHB+$~$G}eS{TRPDL~LCGLcxq)+}>sTugivK z%F-yd_@OPJs}E}{kqGY7`mBcwxeHZp1*~D%1AVeWNH)<-F-fLDL1xP2?~YCyrPzp_ z!nRhD;8~uwa$;*1O)s;-vF{DfnG5Po?a`&Ci^D2ywW*$tBODyUkFz858RkpsFRne$ zm;4K={5Cs|3F8XTfKOH8L)0zeI|0U-GW&eO>oI50K-)Y*1s6mLR_c z2ES$J`z%bG&&-~(?9t-T)a@*W)5=q;jcw}t2z~l&7qI z-89abs_UG<@g~y~?rn46+dCuX_WF$K(w&etjL=_A*vFixyjuo^w2jP4L?60XsZKOn zUXtXxL#p;L&d7DsI;0^^Zu|9rude&(t|ltSk=x0d#F%9$#IO$5U4LqrvT&qSEpB5G zOmtGkD}5w7G&fZzpeH7?$ffs)6#+9+NGzt}WL0T!uhrpgEhPL@@|v#^>&)h5k#SbG z%1QUtRqSx9z8lKn?2)|roY7JW#i%1w)|^E*`eCp!eW0ous?vSZTeweXK^Ldj)>NBJ zOdLJZ^b+i0?ODQo9@!Ao{h9;! zppr-=ocL)Uls49a0h_Zi2Nd{k23aCaNrOaK%VyBW7U8hrs*8*vk5_ZmmY zF6c2y0Lb(%I5=}SGZSk`I=|FGaMF_1>!kZY+xbI zq&uv_T)0}^DDBNN^f?-Ya{6?6xyJiuL$i?;JOhmphDA~>`-YfyD`>ZQSV((dl^+I& z&k>EfAfO%hwn5ms+VHRXN((*D2$hB>urfi2g86Ed@{YAg#DPsqUXZbaSOZO->DAl0 zGv6Q~r;*PX!g_;G>%_iE?GEt2`bP$(dSQT1Boo$fZc-;JhDno@U2ZYYRsF(tvnZih zd~RmBrcbi9G68@@olc2MADGh`++Kxv>A{kjPg{aa1>QB+JZ&>MX{{gWnP<`_E-A_q zYyEULxUNz?-&NZ<?S1 zbTE_6tq;fp0)0xWLV~|g1R8}(E)hmU=(G$`UYuMdm&>B-nr;_!(p1x;+nWn_dDxKr z$#v612*DYTtVw|5Xf}}q%F2#bQ&E8cfocthV!&`d8>$fRv)QtS>*MJDVj_H*J$E+> znU^OQj{-Kdg5s8<*E1NXbQ(D>%nlVh1mJDDe=7Wt9epl?%DPPgDWI_&*>VNVZr)Jw zL|d2xi7Vf0iExT@I1z=Z$Y8x1k(9;G93sI}>Dh1qg8|l+%s3xS4fh#L=kwkK+){8d zn#2o=0n+6N?j@80N$)Nw9tQ;KSn!M2V*%fwLi#M3zyB{Gb3Qf4LM6%7$} zP!?ho>|Th!YgOL0gR{wHZ!P;InsD?~WPQC*y~(;Fq}uk__UJ!pN2=Dyy6l}tR5Cwt zm(vnMpHjcAGyaI_lzN?1qwgyFDCMN~E#RZmqj`<+OM-&{6$0T$&L8|1=N_s)X6*Rp z%rKkzgV~)lV_=-YHcFlu6;q38i;3}R{~YZ`Xv=9^mjm0Jt-?411Vh5gg4dR)C+@1i zn&Q7?R{m1H0dcof3sG6eORL~UZ9k>%hk+tWk?Y0Pni1gxrfqocMtKoM#Z5@Vhqr^H zNEpNm?#o=EVxV7c4T(rXg#Cm*vo1AFJU#FinIEtf+iaL#mLp$i)Mn^%j-$fSWo-To~2?Y^>={o*=b9A}c_@9#kI#q4{z zI0Lj%Ym6My6)P$6+S%7E0d$*Yf<-cR?~-BpB6z>E%if)s^Btocyp{c30i zx?UkP3*o=*a6`Ah$XpZiRjlAsZGUM71 znQg3<;4B4-$!4_Dv>&k-fG~qiDAxoKLI3HyUF2bfquFNlRca0i`il}(A+@cOclxcy zUg`hCbw>`*^GqR{KMjjU3kaSS7!4I$x-)e!B_` z0AK+6TkC-Q4HP6aHUGz1i6xrE36p+EUX zh1wuWmfSPZ2b24*m!Gst(>5g-(U4TYYPqsY{?A#qZt?m83KH+l;=+CG`bO}5K8lt* z&DD-x@qD1B_sR!Q>ZM|SfP#bvz85UiMp(I|I_Gbw$O5^h@Jf1UD(+*Lsa z=fPRWtFKDxQOj@2!C0)8t4i%Bo37`}rCSY%#iKFV44&6)`*D9&Wnlkn&K_Nqjfqg` zDexG=%-ocNcWQO^#g3-ksJZ6`tPn$?3AHWEt3)t1i{%V0)>13YR5Q&qhH(_b-<5{T z1d^wOU01>c;Vpg^03}%}si1a5h9nxKngtV@JMWh>^?EuVmNc0}GD*1g|JRX3@?jDG zneetdUAn8;NDxs%s*^#*vIHk(j$ta!y*&4l^u1(n;Eed!+~P;LnVSun+&OWV^?4AL z^s*=RLYD6g{CPD|9*kjOfQ!94;z{!V^zwJ7q2tWoG2&C z16|_1qSxQtVtmC<)u~$Pg|7Yh&TDAjPJe^nOtxbw09%>n(k}OQ{9p8Ko}q33#$%eq zopKWWTVTo#rQhd`V%-G(Ym%qy`GPre##EtCU)~>YY*BWaGZn zHGDIY*Y}#C?keO9!F43cHSvXgT|ud4BRzVV`ci%!hG++v%Sux-JeC1&NP;&QR<-E?{{E z)M?zOn<~rTXCmAAHWH~MU&3O4cJ6aZVn>^}^=k_H!+0T+B|0h(jDke@JXrUi-1Tsk z#s41AOD(P?b<5R!rL_C`saH22-cOHfL$$hSu%hv(Y{qtV)!nk9B8sRYpEzRRXcLQ9 zCsf)r86UZg!MIkhDCA}x0Dv>?Y?RIS8P2*MOR**ZaKzs|2!mCuK7Seo;-=C;>=iSh zb@eve)Rd^}?S>vr5dgrv&=0S=#m0ZMTL6&i?s=K^kvV#$S5SGL=WS@Z-im!!`>y97 zXE8mM#9^aQvWS`fWOeh9z{0OIpj5Mo&aC}dv8)cWMXW9Z>!0T~8Sft9MulkeJo_^~ z?Ax`!3d1F;Ee{|Xu=L#HQYX zM?-TaG;n&(iX5~iD+^4VTO1;tuR1 z#w<(F|G5XyS|W)=^3ho`5$xW80Rsl?AHyZP{^Kh5ov^eW?Y!eIMwNXR$aS)At0New zsWwERkt+{oj?Ar0oVMDeEl}sYhW9H-%0=Dn!~f(V@CFYSQBg+^_M2n2PdPr5v^EKb zD))u#a6b9>_u37w3rzD^YLF`k)Z8^ja=%SUrI}&zic((>rOY7RH>d5nw6ceSplapf zxsf$Pl`*TTxS5}0&$1r%bU5B&Io@>E2KtipjL_{wHuK5mI-4pLdoRXZEqi(H#o31H zE!g#?o7Xbmb^bE-Zs7xlIF2rkNVczb<8(lE0CjiNvz({1J?`#G7hLvj7i-C4VIe5O z5CkJMvmu*2<{}r0j!C{Q{63XUDy*fs-ALG+1aW)vl(Y1DjGi5E@z$j%mX~dDuY*D5 zb(r?0E>65Bzjq)_PpRVjZ={*AmGYId+bJ%NqwCYE>gy$0q<26jAWR_C>aoiiKSzjW zAP~Xn(8ZJYno5<_%lPNn?caaygx!h<)Si<({_YgGtBB(66(UBMwl5tqI)f|a%l!Cn z1RfQD08lDBHvb#;`rwzy6Ufzg#FThh;dHFVGD@ZiPP^g^z&+WuQvoWo`Nv+O>9{tQ z$Sl^riPq+);@~gO!TmWKn7Wq5ANO@mzJX?Cp2l#1LeN6^0IwC>wZ8Rs0<+_NlpcR9 zvd>1~G}ofvijql*%8)%o2{Rxll|i%K4XRt$ z74C>`;%8|gFe3_rpr|n__6KSLAP+Sng8EfC^!h{aa;+HuSySEl42HOf{D0L#D_@pb zf~NDS@t#nG04-;#GsDzLd)h4J=$VA%C2MrneogqQ-O!++YAzsZPGT~40+4$uegaf3 z;2l_rYU8)?C?0=jMW+fQJnPzwJlbLr>698;HUGsw=Ok63AbIDJ*)0chXV4!w(5en| z5BJ9Ttk>yUjxJrxQN6--&o{>kTvEMEVgXkEM?*;(jI=9rMA=wo+IQ#F?;>O z82P-Z3~~eD+v0{w9@uUiI-6Uw4DLN)y*s!#uI!6n#cY({r3f!uWe8cjkFsm~Qh1;T z6aqU8gDl-dY20fTZUv})cp%9IGs7<`p&jN$%tfA&rE4iaG`~n zt&~V+QgWk(vO;K7M9y=nRw?0Lg(HZnY+z7ZV+!LqFnm&%xCL6p7~mTbiHJOZLj#px zbsd~0YAbX^{X|4WWNbJKpNdqdBc;JOsu}joovUvJnXVD!UY{-debs#w#WIsknN7q< z>Nu5AE@Ym0D(a;wEXK@pAMroQd|1BF4Qk%TXSl}O`%S5sCmN)Z8RtRkGNjW1DAy(5 z>|XW0D!9h*9$i!rU3S%7{g3i3|G&~wMuGE61FPY;+O1Tc zYOysQ6Om-;wwWg!vz57*!RZZ1^eLBtTG%!*;v%K+S`ux~THQ(ARXUPvs%$*+=?K*0 zWATty=kfuHLG4R9Lc@u|G_gV486k*t5dpED0sl@2{%u|(PB`HF9;iX8UbPV&UirBtxyNzR0gN1K&~L1_!Z@hjNZlyhe+kYFcQDr^JwDbW8n|f@ zBPBY->E&WFfS$x3vXkWaajTCI7m&qJ6)%e^Bb6~B3=hfYY3Rf}M&k>M%e*&!@eKL< z;yWWpeWM`^5YKwg09wJHSge2_FrAnWkVKe%Xnk0GaC!h|q<8YO!8?JpvO@_tn75pP z`;=dB?7lz1+yh7^%MSEE)6p1Yc{7bG49w;ia2aUZiH~`}&1+_&qOAW^>J+TI^h?3L z&J};kdR}I~)L@~5mz8DF4xiwfJ(CMBhX#HaoV?}tiO@=-UTDZ;^solsx* z{q6o07bSr#NuN1ORN`nyBIK@o2saZAtyXPxbtwe`GNi+j+O%h&N=?m5> zXo|OQc-Y(zY$&{{7BUYd@!#d{fgAoJRdk{*aZ+B@TNI=xKE`6c+`to2$2OG~c>{e1 zgCS`4W)Es!;&)RsGC?>Gdr}`%h!xiBgNNDeCj_8Xje7KQ)ZX&8F5HN&f8#QRNv`#< zh22MyD4nay6U%JW?WtD2lP4zqI*>2T&PCKbpz@ni`AYIBzF9^QQnBnU?lA}~imqBa zrVYlfWx$2grUw+yfk%kh85tfd@)SjR>jOFPN&rU~n`6lW7XXXS&$MiScng#;0!0Jf z4aXhixv=?HK1Gai$o~>wuqKiZCjizGt{MF+#=sg=BP@C_9^(*86kIXxZj@iCvV2iG zBVUQZ?zGUzDc>+;q2&vLek3*BKGemeSFcfinD_MP05JB00#x-s-+=m1vV3-89$sCp~v%N`OAhH)?MQKd}vGN{RuaRT&5C zfI3k$9n{|9L*NgY;Di_$`L-acH~LoE^s zG?PfYxXVj+y)}ty<!pKbGxxH_b<*N$EDM=NOl#fh3ejm>=7T~5H6-Z7+o1o&y+sXCMa6_i z`|G@t!T6d=voT%896U9zh$w7tNDNYpSYEaw7GRnY*t5m2K+C82p%vzIfheDh@#FeB z+Cw?pI&5!+nSK;NHTm~LB`y>=YtqYkSp~wwsFyMyc}10_$X)A5p==eeV>Y4s-0NF| zE4a;x^D}I>Pg|kfT{reCo*o@buFmD(bDz+(+PMc>w9C*aT$9=Dh?gMK0C}Me(wT0M|iC>Qva;>Q47_8*3C@QB{|*&?IZItvL0B z2Y*_K@@7Y}O%=?`bAkZP^?D{ry)iTtJ+Yy3c2whQVEJdB3lpGsBv0Naw9f^gV^&BA z%34+VaoS%@8KyJn4)G&SnmuchQ$?}R+;=PGP8X9y52^e2lW$7sdoncOU~GMD@CUk@ zhdg?TOEgLQSf`SZ?*y8Tib6GnQVvC0sbpED0CwW856fPZ7z1G$WmppQ;_(lLefoa1 zl5tcTa}XkIv{HtR{5P82Tjs@sKh)wJSTaoF*i*VN@V~Z_L5d141qqZ0UKgC@zXwtc z!7HE}8mXuN_1n*D6Osu6P6z}PBxIi6Usf;`*R_I5Kh4C0D%Uor+G>mMN3nT29+5n7I7_~) z@MVO3@25fD2G&SrS|_c08}W+iyyuh!t@4Zv?l+>#k*)4HOqm}DovYq~r?57%MS4CYV)tA0`88pzDlA5=*LY z7H|Eoe;zNE3G19uL8}cuW)y@>=heT9e5sLJe?+Ln;mnva0`BKb0XYKkXts;A6ov`7 zHk^b;@!7zLEVwzLeAQpjB(=pIqI70$Nvu*t>j0_LYOo|<@OQv2a_)eWwf!_a)G@HS zNQKje>(>uZJA-5&G(`=*?r z6N&ku4_jXE2k}qwzW2hrFH;~*f{+8cF4&t)a1}TqRqoyXbEsqQKqnh_K_?MUj8RIt zB6YRvidH`i2lf#K!y-UXOR9XSLQQ@{uRz?!MyE;2Rp#;qD%LCv+cINe)8eY~m8+7C zg_X;rD7x?S`|qz4dK2?HSDLHZagP_irC|dM+qQKAZOf*8jjsE~ah~rBw_%BJ499I4 zQvAhvo3lLEan-ZDhG9_SNQP-wBw3bmiDhYqVa~>Rnso(8nx-S*yCHZIp|; z)_u__-}i9=eMBmSTD7bQP6@Gq_RC^Qc=J#K`em+Jhu)*U?(!EzIa!dnh*PYcMNdl|RGMlRc^HQW6@o3nIu=kt#Bds!u( z2*I9D*=<7i&$c4jPJ#5yICA5@q6YV2!L`hOATPE0o$x~dPZf~oGy^SifmYNn#I%}b zJ#n8EU6a1n{i2sxz3D%@1#M!h2x{?z*K*c8xUulE~D2J>0zwSU`XjbE3-fv zy*SJ?hv0r5dF6miL_w{**Blj~Zp|-T;IUg?Evk)#H`5P#?dAID61`{;RYqCAsz|<% zN;-FV@Kh%Lm2Q1VN@#XIy_yxEm^E*RG0?+NV>l)GR@iBIl+G{OFp#;P zg(}ylZ_dkBnnma-vf40?ai)OGebzrPv!uxZc-&2g`O&Y0e(kU{R&l4E`Rk*FbW^Tq z@TILflb`L`^`-Uo<_Eh5BRdNdM>+XrEQ2=QBQXki=8hLLZ@he2h*&+s-ZKi@ap35N zsAHhP2Z?F1W42BObVSKfZo{q)!Ia(OTlY#jUL+O%`;OuI!x-i&o^-xEq`|js=H6$} zX_!3d`)4t6IMva2DW!Tvw1d#z>b0()bNcJ!zhbte5c;LF> zY|z?~ra)$vw^O9R%Z$cI(k|n)0h&`mPLI!WP)emYFcWi#TUHy^S#VH?uaLnA;+iYW z7^@g>?Q1oHJ5ol<{CnzZiL7~+5!TE%)WC@(H*xb4=DckcZ1`I)@8M0AlE#9^u8fv< z4G!8-FLQykbe`iClpc0rFe@Q3{RoN0CI%Xq&Okl&q~2{;4n>I_Cg>b<72%ccviBg_ z5X%eGD6K)WY*zqRI0vyP6}JXbM(kKqkOKnUuiUOC%c&6{vUw($2CpAjqzQsT#N5UQ zniUFh6sV_Ame!i$$U9Va3E!kA;cGe2rF7 zaI?9Vytwrk*-kveaD7QTbod_n;nm{Rhe?cpsvG@$`f$Mm@$`2fv0S5!Uf4dR8 zkVTow@lE^-47b{1u-URR2w2((mo?9>)c3_Az`5fAXq{e*1}g#YG{HwuTANaOOOpVU zFkWc-rr*?nm(S+_f{r9A+#Wm#C#7HBqWE7H8E=cByx<+Ra~>!lAWZYstr%%impfg0 zPp3s>jilCt?_r@pTGGGk#U&OO-vu^`5j90AAosAz#CuhaNGM%|^GsZtfCh;c(A%rN z2CAHaaaBdRs6}Sv4aRZZnJ9*|nA~tZ%!u9SPNDQfEn^CRm?lmWwb}x%%}V9#giKC4 z>xq*?Zt1MbncrJA7tD$TrD6j|_rjW=37kae0A%kW0I*Vs zBYq)M_y9dvntg&6iT?UfHtSxpP`Srkb|>RMwPl9hf5GM!bqUbSA{)z~;iS|Gzf|%B z*Y1B~*~t596e0znDrYci1;%-(VkW(M(ZPdh2e9^BVz=BWN{9aQp$1AE&TKDdvC2YU zak3kVbuYPQGi&uj?ZL>r^aITy#5)J%hEPaKV?a7WQFx2WtQq7ti<4$i`#Qxrpx>~l8j!9uJX>pkfdUw)uDOiDBh zH!5DmDxTPK^;-E)G^rwL*b5I z_l6i>Ly)UJ=r_q6#B%CM=^hwK;RiXt5lx~z2(Gm3TcQ=;M@ybGJ46sl^`3pXR!(T4 z{|L^*``E3=n))fnIiPoFV4CmkwJPa42_{%=x8Ri*lMlw_)!3tniYM6F=i2CP;(tbp z7n8pP5k{2cGabMLz6jI$I`OsFn}9KKx3Lx($L28Ya`XZPmY3#n>Z1lmgE%&Ry=c0v z39z~UTtX88Wr^i@MI5pe9e_+C+GX`R!c<*Z2ya_=s4_1~-T-Ev7+@lVO>XVSoVvjL z#PK*aRCxPPuHUuBbUUkI^$*K6I89YSuJ6hl?lYVMUmE(e%~`|I6-`ny;*nQ(08y`n z)wvk)}cBpJu!2)(` z_^0*U&v$SbO8yxmg0p4a+YlSJqe^S%jFxX9!@oSf!Kr@JgFY4pEAS zLgwd~&l8Dy^7sr>jT)R0ZpOG^>k50tgH0?4E@(Gs!tN!DhZj91iFi6 zlMGq82;v~hC0W=P-dg;75colRVe1_NyACD9Tp*;dt$xk?&A@h6K zcohW6ZQc)%Rb7LkMN~v-AFd7jb7tE7fk9(%`Hx(ljYjZG!-631#X+rRndVk5X#pbcM_?U^acjw8c4_zh5RVFc7sJWA&xz^J znM-55gNiKKri|@dZF;pD3o<5aM~QmX(c$d}E8iC{8P8kOm7Y&Wrld)(Zo z0!U24o+YZHvP_dMx~Al`KcWnay0v&_63pA2wpReS=!uJ#OHw&M7rn~M2HeS*DpZQl z7unZ0=-eqQdvHns2k+rwqY(pMHdpKv;rd#A{@oHaxTBoyx^fb4rKGKEk<*%vAaN?) z^4McZxW7#^a46!TCt4v}OIjp>6F(0UHfGS59&|8LHdDi>Gif4X5*Qz0d_YV zdf{1ew+saetuoo@WCgD$QM0F{@}t=<9@1=s%>pbP@x7)+!<<1{ncbtODq=hzK$B<0EX<7yIIl>SHlG}jKi-fBUeamC+!IV$? zmH@SV_icvzh10AFh@hQjEqmC9jfT04Yt$24`4?OH5KZ{OLCA{cbmZeLc9|5&cEci! zhod61IHD~+VFpk#hJGL)vUhLJAG@(kE*gE!fb)Gx4T1jY7IMUEMr6?~{wm6)9JZIh zLbdeGTXXpXE`1~(KbwuwdqNR*ZtL5$@VtUAL(@UzdTlZdD{jkUHh2ds%VE0`Q08^; zxZ>M-jG7^<(^l1<)e$GOLEq|0K6s}9X?Bqv7iBUX0A=Dp1jZIi2ojtk*;-$NP1~6G zq1Aoa580);@_SVP{D^f#OdnIISqLgB|b5qMf4 zk=5#-gtd?riV7yh=$>D5zfq0D0Xy$sM=2pHS+IB(uEwjha%=kaX;7G%o1=!wp``3E zmwjtM3trTm_PEm^rfgM2r*}(Ua*}9NBGR^?W1|`t3<%lK>{G(&hQVp3rk_?OxOs1Q zX#foWaqL`HJipw393QxD4ZqQLqJ1TLhOFKEMfIiM1N;DK@Y`_3aLRh8+$ud&JSWQyjXY zeY>6|vRG8><9Nwpax2L5x^(BhIq`6&I>Vyqj@*kyhqGs!l3dCkeQp_EfPBP)@QVmo zcW#B-V)^dhZ}G9s$Q$x%Zs0h_yOWQfe?@7wMsIn|F$tIG$GyZ7uGXOKeHpVIgu#;P zN|FcROz&RPgSOQ{!~pw_EDy~doUV3!o~(b%TlrMkM3NF@bs+rVqUQZ_#Yns*iBU=w zeO!)omPWX+*OrMF!(a7_nQG-usZ)uH<3HvJ3GUb3Rcp=D1cBoNWd=;ShH-s3y#eNi zWx40I#yYV;lFkD6DBZCpEWRB4&gTSqa&c>|`qGbQIOVTvAFR2tVT)^BvW^A>1FMCM ziX7#3+IYsSQ)gck7N%kkJldaO7!t$VTjj1)kjd0eDgY^VZeA0fz-`vnG3OL2 zOVNmboNoP8Y^LM~7ekzX-y;3?A@MM;FNewBUEeVe@Umv{K{xFOfu&g$uFU@h zsO;x%vKPQ~kiWr&Nu!5*n!RsxH%{{KMnhSAr)DzEtv37Un&pHY_6d5q_K|rqCh4GW zW@}z!e)EZWop7+KW`|)(bc<}|WKkdO5+4ET0gMG`+YEYvJ>Gd^w+tN%YsT4MllJAP z8UP)|-08;;kRxbDj(##Z@kE}sL#CCm+Kp2vFnrp!uShTwyIO=x{o-^W7C1RbCuP{H zWxh#B7mYP~ER}tYYM#6LKNTV88B-@;Yw7^7>55GAW3^9;%_H~ zo9&l4e?NHiUUoY>MCF!`s%B1s)zWbqUoL!!1EpUr+PsoN@OON5$OwHYC1B?kZD)zZAN9}=Dd z!jb`Cb2WaY1p_6!rh;29_A8VAx`1EPyy)6H(aO%R%Q0iN$A!XF7HM}mjpy@^$sTnU z8VrlJt;wjSc>+xZ1+c%p=;K$vgC&{M6>Qa{x{?LJYeS4QE#XII-S>OYdOdR%7OS~W zqx05hVjrxP@3@Y5UHa#~q4Hzzl)ECYp3&;<3#fM-r_+oH;v`74SMWz40Uk`l4IU|I znQx&%S>?oe#l#|xQqknpc}BJ%D#D>=i!lyjHz|o%7!Ybw6y>IUBA=JXr<~As${S1Z;Dz1E)fJ*AEM)un=|F~S-UWb&DN87J~hkT2S_h#JfVLlBzw~IjN z7Lt8nXhrNKK5sL@rxT%t%BBtIjzIJP^QkV#gR#H9At5IHBh~XQ$lPW!bMR5^j_1b7 zY850yXQmU1i}Z;sMw7j_ur%ZwFcoLr3W-mfA`0SLthJrj4{sCGEdlgIG8qPs@Q^7W)^6-g}AS)?O?_{4PMfc&0hXYc05DrjlyFjQt|>pzHF*DyrJz9Po&*r)QUK7joB{G z&i)5Mneu2*xM>?J*%w#9Zb8FH`84A26qUc2s`+6P-c|S4#Rl z{Zag|f8G-rd#&j}I5#AvxOp-?r5XOwCq=ym5%y3Jzt_yh&5YbhY{KRl;!AzTUl%dp zJaShNo{$<2wuh>qm3fbFiuy>w#Ke=DlMOfK8#TSN6g%q+Aa63Sz?|5Y3CvPh{LJU} z*dLm@N6_xC{Q2~SUprKGmtaF`bgwID`nSzr^5H>na2cuC(A7BhvLARjp~18M{g5vR zri?MiBW}g7zRkNRw>1=M2%T7U82Bc}#R4=%KO3IXGk>EU0e-R((Azr!`#ty9Pt)(| zJs*^|2_p`q)@ zxscf*aK+*v3HngBZ9q5-^l^DO!5HOYajavP{cllymI_X{!38ZXX30DJ`w3Uos~~K@ zw9TSr*h5kB9(eL(N0`_;;X&NmZ45~Rf|H=jGKzUl85=Rui{aXGyiu-3 zA{{gaWPVXqgGueIHbWr;59WRvl#|b!Xi8N&pkfA#wX&y!v5XpF%emcNTMX*=);=w7 z#&J}4c70xA+AxMY_UgfkDh_~j)B;%z7#;bk8Bu)c3my3=Ys!VNkw^j-X~W)yEgt=j za`Pp?$zrG~Vq-T=EhszIHvS7j|L`Z4W7yOm(oc>4f9%97o-slAbXOVACr~ zdJL0buOelrc5}@5YRB1|pnMdD1^GM0D>xuUUk%lHHETz9cz_O>wz@3hmhP{A^1BMa zz|z(c46gI%^9>wppkp4L#CX_R=CT#F#Gq1UK!jOQUWI$^=il84RWvVE zYM>LUZx1*=fyk6Vb!XEK&Mf}XzRfni`bMjsTcl2|>g^ynWTH~P8p0EYHR$zZTy-*+ zQ8HH@(s%vRTg-5jTeeH3-MD?bNQ!1_$#;-z<2#y_wu4kTXP$D^N=ny-K@gEG4Mt=n zG7O6kz>jEA#-lc>HAz^dXrI7zqwH)Ap%es_$kpBy6*Mhz4V?1i^*m6!dz= z@Y=*eXZeGvXv8Bv3lD&HF^KwZVm{JEFr9HkB<|{aTj8r74PtHA=A6(!rbFKli}XXt z2-knC*+5XMC`PL)0E1PV!dV9v90Nu6dkBySz%VsMhOw0+CEx%yt~8%;=(sMelT~d9 z&{gd+Sc?g4VzR@ysmqsnJU^(v^aO>4DHR3vB3D_ktp8B8-yc0Zx1e-GH&6o}e8MXZ zp>$&-=u_v-XHI0GCguJFp%@lA!WL&2VOjFnWXtwf0I|Ahn@XdpXsI8jKMDt&u<9C4 zFuz~Z9@!A)FaF!y9Yff6Em--nFuaR1l`3Sl&=(>%Q2A=A1>90Y5ijqNVxiWRS|x1Q zc4E|xH)2bIu4admfu9V!qdhWEe?fsNc-y~Z>`VK-`xwTP=VRBpqoSmS=a2~vjk7;&4G6bbaEOCBa&OV)C8ILmd1!=rG57k;N-y@88sOiT@{QnY&;%V zvU2JTnpc{QRMY#NH^fH6U(UxyrUhEq6Z>%pReh?(!=uRq-+7}cShjFTa zx7?@TI8>c4n}HH98m<8-?Xq)G*y%$PjPkgVLJ1+|Ew|cnEx9LxP26v8iD?oq&~tTV zoEL||V^M%mG&YZB_BlI-?4za?ykaoB+qcr6k**eMTv%*2L%(FDe8mzT=4ip&9@G0+b$W;n+e&r_qg@vCZAzO}X>{%l*CrM9)5d z39Wc#7vixqely)qJaE6l>O550F|C_^Z*u#dE8_jfC#G>$Zgb4d=`UC9A_i`3y|sBs zGD;FYr{GOX(%*Sh>Atw^+jy2lk|pSGWr8+zfQ`$}#Qh0>@ZW_y@r=zU3Tg}U%vm+{ zUJ#q!p3B=BO>Pe@N6|1!kHH23kcYtuwv_Sms|~VVUO;?i8X7&&T2@5v6Rv|GT(!T} z6~xQ^CZXD%H@~hcnD?S}hJP*rBo~^Z85PEzIybma)4-UBNgXbJ(3h>#1M~2nPG3$& zWrhTPt%g7Hj=}XfaK?tSWhq}_%E-h2{J943#|I<)WF`{NQ2$QHqWMz=q_6?juX)ga zP*A$JT>mOD=T4Va5*A_jbp7iJHgzyV`QQ(QR^4Vm1%ImjBq-*t?i4bUm-`u)C;GAU zg%9fqqjA@i;Zj>>_7-g<@09f;z7M( zeX_Y=szAF$TM*KJ<;{L}Gj#=XIx;oCVkBSLHt4~{XLvBzmwEiP_xOI%VD772c?AbC zU-a|L=4e7`%_?R6SOmH05?%|N%VF)=0??+E=fy{eWq*sQ=^QX}1ORH*Mv>}$e%?X8} zG`?$-J`z%Cvfb8YD@IkZ71+54QEaq8&SQ`|{+bmvXi;)qM5B)Ajoc!uJ0j5P!@DNi zl%PoM9?uXUb8_?S*r9R{{+)8>g(V9}`BM4C0@larj4!*{h4Re&b1K|@hK7+$rl^hk zHybn$@`o-B6oq%S&;&4@e>q7y#&UD#?p)feB8_h2f9okTu+0s#?Wp1$qRGT%$1%~WB@j%I17x>Rt z3B{MCj~8zGvhlh7u3RGJUGoe_cQ0%}#Boo~N~JG@1j|zA8jmfO!ocq3*2x$}?%7!$ zz`UtD2A#X67$fwgj&jy9Fy+57r{Hfw%~B<2UIG2k2_arWorEz(*i{b&;-4q~&Y_Q+ zHo0$|S|GYO>Go4w$AUWPa%WKf-4Q%+^h6yT8aYfPkxuG0PGTG@gVIw+v#O$sj>$va zHLwBmqsqQb2R6?d+1$UWs{aO?j7_r<43T`2P;g6UG3(P%8dUH;`%_`lPgp(ue=<|p zLnM-gd)p2C30(bKV(zJb$;I9Oql?aB&nP%E@;_3v{-4|%#x8vtf?P5CMvPb?(rFsH z;Y@DtYVXi#%>6u2a`Hn0a2AuXkK^uJ>Y|E!F3a^f)3fJeLQbC_M?B`OJ!r8{2Ss?8}H zmzNRp$&}c@9UPO$jK0MK@7sg9@6R{ozhE$!Rvh-Kbq0`Q9l!3j&sWLUe!Y|0$ew44 zQD87w2?6v+{YX+s{=xe%Ws?D#Cm4ZiWeK_Bd>|qCx@~ zwPoSlT!%n`fQ4kBiuNq`S0fgmB7pI=pYuX|fRlmD!DvBaN%`{qf^>_40QttY0Uo(0 zN7=Tm-E8b{1uQEmXT(_Fn1;qA*=hCqab3UsUcSg&3g(lMZz}Mo<+{rWUR-)jZ)?pr z-DTN+WLlXWSih-YgkJ7^r`57Q{nN$cO;g93ERtNCM~c$P7(o)( z-mz^c{(mWyEPz#+`u~jcj0E96`1*a^j**2srL*Dp&}?N~&;QviH=DjZ^K=_isLDvd zaY)(^99r~jvGpwf{~pH=S=hA9dZCB0?tG~=>dXQ@(=Xi5qG+2{(u7C2o_o9jjzKcm zT<#}58Zxi8Jpt%j*BXM?MDHbiME=%e2aGZWeH)_WGX{tMR*`iW( zLn!?ykw%i~J@y{vaAzTP;z;mmgXx~G)z_yqU4~mOcENY~7Jmo{o?;lB)D52cMM&rQ z!arfxE)`87WNToO`gRJ*m+JVfUG>fR^UsQk7x9oakDJo?Qe&wI4Ba%mE;R*l zKEh+T(CEP3iR=Gu-a+RD;_E@K<9f=>H&wCudn-FX>>4XS5FR@?|MxUfy-VGql>N6s zx|v@3Y6FS!CdA+%=_@kEJB>^(lD1N4E1((42n?gPYL=yG?9vmz5aB5d({|j9-$MsX zf&&=Z`Dne8Rc*+O_42>L0?UaB?cxQgnZk9)W<#wq?r=-+;P%IUuoGxgV1#oozld)Hxz1hK)R)_BiUZueG$MUBmwT8_q#c#V1%7hCBsn1yI<*Z86Xm_PQ0vw_ zYJPj6G>;eB0u*-^J4uO@P%h92I1?wU2wMMtN1?$p)j=x1QYfv$$| zFXO-T=_OOTOxS1=+{&P<(P3yAC%PI!&q#oND`5OSX9DZj?LTo%;pcWoJ6!Nw_`Tbh z!1~1>d|QA2Yy#^Se>|w&oj*+=c;WXAn85m_|L~K@*59{HVEy6`u?@f1_@xf$)Hmvp zzlTJi^WPrH6)E)_d*|cd@A5>R%JcA|xZzw#KKuoN40oTNZizj<`~SdIO#sGSeLm7t zD2MX3kSlIt6MZ||@H{lC=Yz=I*Y{_?&6E4(=B6`>thk@M$0^}Plfyw?%svH8=vY2% z^wlS$!Ot&mec#P*Fg{6VxhC@N{jvDfo%e9wru*F(YIr+j%dQT991s4Hqq!~tU!U}W z(mhA{SNWH}VyK5nuRBH4YT$8ih*-NiO@?>|N_kOpZ_i6{E$GbpT|73@XzxvFLrd(YP zD0d7|Zc#+Jx*Ra1YYXM!?!l?hOeqJAF+vpbO|%C)a(&a_;BMXA8EoB--n?mN&92_V z37UPhe|Altkb~LvN&-QBUGQTQtTwmK=^Vu9uAJu5M;FVhCE`X3lVQ`c46J<@1gjuC zXk-*A*Ko8*H}W!MirufCt}4=|E4*55s122ZFeNu>4}*9})(*mh zGx^#<*EySt~S zFT6XIGKUlDnI5)Sz1kbApdD#@IxF*77@p6!c}?@$YjM|P_Eap#N9VN-qw+-tKFM=C z;4-3iL}uVd*@azfTn5=L-whpGn$QLi+t9F1jV0V8V0*Z_VWfmf$!{ESATxbCPwN{Q`Hk$#^#Nh^q}Ctf$Fk~na?F9VgQ z6x3TT(RyJ9P7pf-Vd5ev0B&}=O-DH8xCJxmZ6l6st_g6Xx$&^Pb)o5oG^#yHtu86l zvA2aa-4`gIb4Pq7@z5iHRxsYP38C0=5CF9SAGet@&l1eCD9cx!!U)%~T|bOV-8{eV zqZ^;@_rp1UOa$B@;tc(l4~;(9kw@~0BwglaNR{OZEa|gHF1k6v6Z#nEx}0)~Q47Hv za501-$*Pm-&ImL!1^2bZqC-149FHk*Jwn1mW^sjbcJrV>iM z3FsR@w=ie`=>L2N-va~SUeEHl!Q5CxuA^Vomk$#MuJdw#Y^SQ>g@{Xjiw zUYc(ceO)5$(`DJl_b6byuJ(bYG#W%6UGxF~D8fxI`|U2e&A-EQUlw z(XVPV-Ad{-&1Q98;d>l{n^2`wsYx0~lc~0SiZ;&q@m#W=yesQJzcRhbP={ z&UM2&cax(j?iZs`*6&CAnLOS)rq$Mdw2x_3MIQg?B7WlUC>c&^m%DGGXXRe2UTl<~ ze8PEqu|RLP$`Z*=KZ2SzVUw!m!;@|Z;U96O>f=cf4*%>b3rw}_R{`L216rq17eWLx z#7g0X09yS1LbSkE*NOnBlRpr6^U#Usu4N&{l*N{8yp3ko5eQjIF=5B};Q4Y|$!*(l zy4?sy7A5OdQ<~euOiJKR2Ou1cy0KBz;f|mCk%mw+FpmYfUm2pfTUz8F{h1L9B0f@> zc8WTw%KgD0M=68#g~!Y&3VYz_0ND-%`NEk}KV#N~s;}U$0|J{!);m6aCw`GP4ODLr z@ZtmBL70j%>sCRC+^XA5Flux+UnMVv)idRZsCUDv?1;K1VJJFH0ldc+cHjwk@G0~` zBCTCipw^vdS6Z(ezI5`^`pNDtl2!Phw5qbx`8>?B z5a7(EYUS3BH7X})_4_TJ$k-30%Uwie7D1>(eByf!WYFcNEJS;Li}iSci+D3WkF7uB zyZAn~;yBC1&JOndgAqOCmi5Pa9DDE>pvrU3J)32Kev!P@a+tBUlE_c4ZPK=jY2L-H zEVI+WfJaL4Hw97x3E|n8G2#I?gqwiGajqy5YObr9g|L8rixDqz`#l2Y0dzg6ZIl-k z{~|2MB2ZJ;G3)s$w+2DJZxN3}rA77s#Blq{`5;X(@jQfH)z~n?lqJkXDN4)e@XJe6 zKY~kMe5koTqFx%mbDGr3BYLriqvdKf3LKuohKtPL}}vtLP~)E z`lDB~Hdsjv^gniMF&#`{kYyd6Mro%rZQ>z|iYaPS&9aS&7|LEOmRd3{g9ZBV{cF|x zovPT{sydpRiWtP8u7}|AcFIDolEfW~6O6mg)*}!kQnQj8x6yDhca5cT8K6uW#m$@< z#z2foG0_`m<()#*J2FBYC4&~}tF>nei=bovx z^z^0UwVSouHN3X9mFJz%hLtd|{F06Ij=cBnaxym*p zcGN*ol z2$HRu23KL;mHwIN&KG4Jkp2CxATw@ACv;aVu&Hg`2@2gIl9A}t~b)U2zbzKOd}w+$yPgszqkmftR|>*eF+59hAC<^A&M z#N~3rCp^g2Bvf=YV$3bZAk$lgd>>Wa;?q(^4BDRM=ecbs2_E^%j7W7>%pcPlCX-S+ z6B&>#S}T&3zgrCXV@=vRZ7}g;dv7nxmj2Q_kx$j2&3Z!tl-5s@$poZtVDgB>gs^}= zdIbEj0N{@fJ^FI+>5`y;KQ0LPqlbFf>-QOpV>I+?WVnd{_+tX#-GJ<=%?p>y%va$t zA%$wibxmC)x*81p>Tv1d=p>~q#j)5wcF=DJr5G4>Xq2Y?Dd*MIssuq*%o zfCB+Roi?#3z_ma>D5&8U6x>OAkwVm13wvdYQH<-$+hg$Vh#bgfZZz8RZTknF6~dc# zeH1Y7C(i}=@=ltl#ik&?vJmVW`_|6({UkY$vWrB)SK8IuK$RaNxC=b>@GaD!+}%I^ zpX_%B7cSImmm*}-aRpq)LcM{P66|>o2)b6F;D-PK6@#=9m){&~FxXoukv9ne?0aha z4|bKTS^#-2q2-U@J79?MY6B{^xC%ufS7h|(T4DIbrG|1(-4Z$~xf7>d?cpp+VciAE zVHv9PSG9r$MSvdwf>Mk+SJ1Y61OvBr@#il3&P6UCeBD=*7+k?)s6X%>Ice`r zH?NG{e%QnZ@i2#|D`+q3jYe69A|Wi~O*gr>>vIM(plgxI4FsAQx2%0t|CWy5G?qUF zK7QE$0lxb4s*K?-)&BHIFcJm`c>e1lwW)5D-(NLf*BRR!)06Iy=NCOZ?C0RqJ&}Hc z-Y0EktQY%v&wFQhO!e9rMEg~DjN;6kd_JM@B>lLfZqg^_sQRM6&OE8oXVA3UGIm>0 zPwsZN?@`C^^^Cngri=f|#cwYEnSyZ4Wp~(JrxH~b^Njb zO$pVog~}Jx`BX8j@b1Rr+s;^HN@XgD7hkdj*#?UHVLi8=@2Qs7Oj$E^(qnEcsy~;? z`!L^@Sm^ww)e~2Erf;hlq#8BTcP-sIC$-*a7%0fKQ!mN2QzS^qx4z{mS5j3#;S+9O zf6*r8pW)ofg)7~|CfwnxnqUgnHo%pmYjG&Se-s5@jCUDaZ_^vzb(EUo*W-kvFF zmEY`ZrtJ{EQu!(`i#aM(B#CZ&Xbug{P$to@({Qi*PvpwP58ynIrj*N=vR>3e;lAeJ zk+9dw=|+(O&cq;^0(`V?aub@Z^>E*En&%zU#psB26F3Hg(H94|_pWKFT)+pcCxsw@ zYAFKZYva$Z1Iy*7sSpguzL}+NH7PAF6`?}5Mph!D>gt=7s;NtHRa$lm^V{xSc)Cfd61=VGjRlZSay6ss{-s# zwq8b@BVNX6!!F|zoZA!xq+KR*Hs&&k5B*Ec#fW$q`P1^jWx>qZUlu`4ds!4M8M@@HQLhap^b6|COvhibgK>8G9BsRnxpO_NqE;?qi*%Aiym_jru)2uuzbIa zNw^Z(3gt;xq*RA<)<*@~JLxV|o*pH)x7DbcLATVO)>$XAXkns6h_q7~Q+a&_c_+C| zUY~Pv(Ou`VW#$<={~NMtHxXL7&}JezC1+Hfx{QG=?ZZ2e$+`PiQ8HW@{;7H~&C~~-)PV#j)p}}_F~%Ebf`t|to=6hRNYd0Z_r`Q@?IH8v>A2BWIA}x) zjHEEj5pA{CK|7svv_xmmb9CESU zuGQ3z>elJo=F3eDZO@oig8}sd9n3T>B>3-y9TPiv$i`Qe9plrA}S_Md@3}1 z5EK#?5fu|Bp3toi_@4WQ*2cftW$xp;JN}W-3V)3K+${Go%tem^>^1_6h!+${g%g9s z-Md&>Ti?^&7*+qpSc8r4-X8t`5i7zjt)m(m|FEe-!bXW*#&@{mP)mA$F}70vXiRvs z@$a7PC#UT;Ft2!#1Lgf-DSQ88y6N*D1G?BD*8+KB*5~#4K*gIeEc)hwdUahW-laXrJ@*955uXxpxs?}cz2p|CQ2h`hc zsmehYy80gYamNmE#P@SZ*llRY?_EUv*7E(=uW;_Biyw9FR|fYyABnPlLE&uhMqQhT I#Zefm0=@KU)Bpeg literal 0 HcmV?d00001 diff --git a/internal/ui/dist/assets/ibm-plex-sans-latin-400-italic-CsGl1sm0.woff b/internal/ui/dist/assets/ibm-plex-sans-latin-400-italic-CsGl1sm0.woff new file mode 100644 index 0000000000000000000000000000000000000000..0b0b8e8a8fb29a17dc99c6da8afd0be6a88d4033 GIT binary patch literal 24036 zcmZ^}19)Xk^Di3Pw#|ucdt%$RH8Ytc6Wg|JPi)(EvV$G-=KbF9f9|>WJZC+t_FDDZ z)z#grtEy}DYELCeNf1zwuS5R;1o@w9Z|oQUALJkIe?O$eB_u&WK()RwmM>xlKY?JD z`mUtBMmF`( z=&EWWYF}9D7cc)0ZrCNpVQO#e^o1RKm2LPc>*v}U8Et9o`i0T_BZu%Gf(601wDY$3 z!U{n^7>+?el=>uzR^hG8jm*-MqfA zul9j`>44yd#Ha7Jb2R;u)B65}!F&->WkB+ly|LFKRqBm^h#GUIqfikVGd72vQ5veDFtMX3v5P|Y z@rHL#63kjzO(wHY6|~N;ZCM){6-V~9za)RufCaf`VFWiIa~mPm>$-Fi*55vu?#U4y98zm|k(3UOHPogL1Em?5={(p$fjJf{96k z>DMdO*>BtVSCzldUt>FuZo}*nk7*yQS6h}Rc%NI8&pFnd*uxYWvli2{78b6eA5&U4 z4bIo=U8dABIem|{rpEpF<%0Fm_VJr%6W_YPfWV6X7>1HhSBLJIhU>I5vS*7Mmn)a2 zr>m#Oqnqukuhp)HTa0T)$Du=aM!WyUAppcP@->7u8<9CJ=4JHK&#!iUuxda08~EVJ zZ!6fs}=+OOdiaIcwPP!u}SH)J9QS(Q|q)lgJRERMKB7q&CW$+Fm};G zyu3#(?PDvTR6CucN@GWLlCy4A(~&gLXX{o0Kz?L$#Z&a z|6S0N7j)Y0TUbi<+w1;QW+Ff2y}6S0d$hrTIyLhQ5LHIyfG9uIYG_=}NoDApW#W>s z9KhP*wTYc@-i4HUalW;KT@Aeq{E>@#Tz=m(sqf+Zk#O@Vu zq2Znj&A5`~e>(C(VBA%}9Ve362dU=7!o?P*+meISD-1z0+!+Sr z$JrJ=d3+OEGeH~3AJ0SQ3i8=c?@A@K=&0?BfZqUjU58!SmE)bm4`R1{>s4_|Y=J4u=Jb1GH$-tH%TRZUY?m^j14 z@YoGqTm?l-_D&lD8d zA7hw~TIfI{Vk9GFr7}+tQgM|29cf>L1T^~3KAe3t_?m^i#s^R}rKdDKS{Lo=7Iy9= z-L@r(fEd?;j0t8)6j2Bk_LFG{&PlbhG}?p(NdO7oQBC`V?@`W+)IAa14-~RLd8D*I z6RW3Z06S&louLD=-3D?4JZfMW18XLWL%ZJ4RY=qN`kKhA!(x}2+?bTHCUGLVed%8D z5!A+6hC@2Mwv(MPcXf)G!Z4@oaX3G5Jf`&d3Y@E%jQB;nL@Qq;r&=3qIZ;?NI>F2>1Q zFo6oTwL5o4*mf~#nN!*x0v7JusZ^Hg4}e+$OF{Y{C}&;wx64E#GF9!xpzIrZ0~$wqWIpg0@&@_XBR+^nT`fVhGeOzhpW|$cE)XU*9UtBM zJ+2*xl!mY=#By-Xee$SJ7}ofjdx^T-TWUv?aJzWwKLq~sI5!I6gfRZ;YpuOSW#UDS z0DjV3QhB!VGr?Ic9I+9hAl|Fc@pfMRMShi3;L zn=4;~qeo{^x*gc8-0uu0NsW>|M{B|6ku2MpXlJ^*MYdb&{g-qBOod=9uR3@vjs@uL<{A#8PJl)g#g$*^=Szag_Bi4=KR; zL(Ji{6KaR1hGa|Z)tJlo;>~)v50@!yB}l^RQQJy*A-0LiHoP#dq*>GmD!&?8xP#(a z1Eiy_8{l7$Ie?U!-{t@}k!YVI53y88Y_=^)obCjW=v&Gp+Hs$T+>yeFAxPIxOR7i} z-Pvg#xUq-y&iqRJF(pCUGgju-*ctVoN}Q?Dhq#3CuH=qOr^}j&OrDgL5SE&CtGv@d z2k>({K%`!D{y-Y}uqe^ftD#B&9Dkq_1$b&7W&R%WLCK05Rp;V(vk`I2^-MvS)?@0i zR4(zxd638QNb&So`CJ)x8D*oLmL@!Ly42-ns&t_&ywgRgllx5i#b)4 z<;35(AyH)WYBE8wMH+C#HZ;#E>nRS;3gyWp9gi$Fa`;))Kmg%kl-d&Py&D;CN!Wn^ z|2~*yWRax!c#AYW#que`x>1+}$D!cauA+z_13hzt^K}~ry4u>+{XkKI6j=K44MN~$ z{JZN0AUo%p=&z@s!gkUC(w6h#F2=*iYUc*u-RUN6Bbzrk3B>!Q6w;r&h<9@nSz(+ZIk(FJV0br*w)V-9q3uh zrL*3_RU-10_uwvBd|!9ST$5B=cj#Y>Qtg<2cbv!A0hIjtI6`oKf`tT4P_B+ZwUPu(!^B*a(}>)J(-=G1*s+f3HT-^| zrR<(3{-R`sM$coNh-!juG|`i1ZZeByW9#HI9diPBGnJ7 zo!MTTnuM38lm1qHN~K_i?~r;rZ@PyVr4iM#3i5ju3xlz7V|#d|Z=Q>ZlvSKQ;WAW% zLo#;@9x~vm(q4U9;^g`oV2u(a8BU|QH^11W5=V^Dl(BFb2>e{k#FJ5x!08%6Pe6#o z*mH%k1y*l4RpqJI|9(GJE}Vjx0nvN;stVI8OeU!q21Z@SB$+44ZL;*ukRyqbF~Th^ zam0kGQi#Wi@=mbO9o)(f1R5Cn!tp)HTCvD+~u(R}(^|a@8c#?3Ec5*TT zTZ3E^!;Hj*oPsDAksT+94Xrs$4_yLvvw`nAJbX3r#txjj)0~e{Fy!kh{>%<+7dpi+ zAeWllb?k2mc}4CBf_`1v>D}t;67apuUexaL_oTNo*ygXb<`A^$-YGTLK-kOw~PV)F_kYbkM zUfsz_pYF{VYY6Lms+Q{n7uJ%|&&nWHFQ*AExaaJqTyOt?@r|-AuB|Y@CE#r8@PXcA zv3*v@!{qW}_Q>}reJC!ZWVvadttEdqt{2+<9T=vSroCjUsqx*gyTvH5jsw~iX1%mx z(<5`z|Dv?ol^RIH?1ID$1l6nugF?~{qg*!ERq4wkD;xcc)?4lnR{B5&A$|(-=y0mu zmqrKq=&U<%%EuwYJy*n}OPMn0Wl1BQ&>TN+?{lB|6lY)!9kj);#T_I~g0zVAAI~){ zUi^6Q-7m3>?bK2idhE;toPM;ISn{_oHy6#3B`aURwhj2_O(1+C+pkX{dDKU2UgU-7 zoRyaRluYNQ$g$8ln3u)BbeoaEHjLHe61ba_5&}nHrTBa;?o9UvFi3)F-eoP2^;}`T zkJ~Y4Kef;0$jTZ%ohNPaWLVd2{I{rV%1ZieTI| zt)%f8z4{kqGPX|3fHqv4<|bnjR^7ydiKg0~Oso95U6UaXrkaWbhpPT*MRV6=qb9?r zMK?*0gU?A(OaK&)ne+#w?1vboP}0KZ^8(p9z`0RcRw~B6D0!SejIh2d4ePaWPLhw% zZEkRx@D;Ipv<1gSuZ~weXXE6>k!Fv)jBFv;Q62Uy^F^m}ne}I5t96Xvo$5#>1jD*`vWw|6r9B2M#nrd8P%_T^nhC}UP9=Ep23XEWdq z%Bu^w80)HHTj{J(6Uf)sS?cYZsx#r}%JS1MFN~-=RwjvTN{ga>@T>~M{BKvML6KPX z9p8Vwcbw*>2)^JN#gZQCx|J>K=-8>T#q1lnx2WkPVji!WN<{eUS{Gy?@t*F%Kb#ha z8oZoX{tyWv=pi}d32j?C7`Oj9>lx?Mp~;S+t7)QN#>;G4{=#>VYN120{NM2wi~bC% z*i)@`$s`~CIcl5is>h}bmM9Eg9MJXT_VHy?v;P%bE~B4TXG=6H_8N~nl66!Y%NS|! zOL1=~a!pI&2gk&D-4`_X&U1@f>t5D3N;_n=+&D{hp(`y6w`t}Z{y(fW=6};HcI)?d zb6G#7O~*EyceLaOT#*C@U;efsW3}x=9R23NqW#ukq|>(`n(1 zCB7-C7``=H0h7)(Kq$xCWdC>~c6-9JZ5xY_E|+WeoU8^zNbR=3xs`UI3?3TKo`yct&7J@?ZzvjVblOzL##mw~AZqiU4v0Diue zQ6`UuP&}Kmf@~-}YqHad`Q(rDvD<$DJc`|Uq%GrF;pJW`$>D8{ywkId68*ErO$ZIrQnliuE}g?H(D3%p zKCwDij0|xK)po`J7js78bXf`3y3T)$tqqX%y*sps+~z*@eV-3$?-ly^edZQ&JVz#w zQXZ*of-GirV5FuS?vGXqlgmMu^QY65#}S$(eUlz1X?vxi`KHZM?UH(>>aTmd1JZM% zBh=TSBy>%O^#uOIjp=I^L5CiNxoMt9i}C5zEALbI&Vg~eUCi|oFT58H%eU-bsSbe0 z>i4aEe?cSZ)sQ6f-^xP^qo}9K(axFZOIdDFB?N(zc-tD<1~lnce_l%*UE*tuRYsS; z?fp2$sei9^?|&eSi)OXh{HI9R(f%BI^RT8}^1d&2_1lqL^is0*&B(0F0ZkYGaOSo~ z^uwQLa8wC~Tf!Ivejbmf&Hs7>7Y<{5NB$jp87`od_~ufI-&J>t6g$p$)%B5aW6XXd z`yIjIRex@E&I@Uo)l;s9#`HG&!0L!l<_I>3EZKGtC+rUqNtBh_)_+}u7U*&MuaoSm z4|ffn>l`3%wcm9*=>9jH>G2p&FBGx1{2LvE9~m_To8&(~201pdJk#*o!b;UOtD#J% zKH!vHwssV@>fb}GkmIo2>q#v#W=-Y@T-s)@GDaGcH}abrN6c)asH-@#t*g9W);Afh zeZ%5fVv8_tW>e?=t(j~Zre$-k-}-CxZX$OZCl6h z+hWAo6T>%_2Z!<9o>iuoTCt|FniJz2e^fbEM7)^^q73Wsky~gIJ9qDTbpZd2tfi#O zd|8&uQ7N0lVv2(%vG>xnMYZ6!n76PRzKRlv=fQ?ZFI}=8(fk}fpvt%eLqn%uzL;4T z*7WvhLU~8l2UAVel&&IVlA7|QhevIK{)GjyBduywV>0iVb#5FLtD{|FSrX^kX>I~j zcdnl1z3KUXr>p~g^T3$L=O3hpIcc5VZ+R6ez_pX&i4I~$+$-Xg)p~w!bWEUB50G5e zHT76iWFebtgn>MNy8U!ZrFrJR#qJNvh^~1Y#;GT=-fjN*msF0 zXj*d~r>+z#dr))^am`$|A?7`XJeBAXqNnOf2xz9tu1Y$hx@Gu!Mr>Pzj&G4hbE1Hx zbroyWibO9CTP^zGC($IthgBN??=P`;#zb|W1pz`-{(5+ZwYQ0H*~x-Pynpvmi@XV|BkZMAy-lWf0_%^Bd z$KBihRed(g5cPIu-G(}*swggfrfJcL;ow({(b%5+@c1Mh7MLI(&|IDyF1k?=QW|}< z&fe9o_lZhRFDMQvU=}<+GmP(^zzSHzVeLudjDBca`p3)}&+`5?hjRhwK?V)&(9y=? ztpIT!HF&9-BqjKlDA!I@xK_^h;|#3`exj$w%wS(T&6wG2F_I z83_TN+_XV7vd6a1mA+#eUdcM=BYz|c#KZ;3lcjJw?vlFiQt!BLzAo&R+`faIz78*2 zvWc{7-;$n>0)HzKxGR6ry?DaElu4r{7g?g zEjX)^lW8PKAItN;l0~X*A8&g46rsfG#A^3ronar&+gPB0yf`yz7r*g8ftH_T?}nk8 zGfYd9`@sOwaVcGZVUh8FTB<|2w^M_}VDNctx^GM*0w_ z0$QO_XUjPhT_yd)$f`Iho7xks{DpKXgw6b^kJN3eR?W2C!hRCd&3f^Uy%EJpCd%wz z*<2s+;u<$g$ZG{E`Vhq>N5fhhuo9m~I6v%LXk{GuX{CkW8mnF5CJ@CDB@rbMrDUgC zDQ1T`Vv$>rp;plEcWdGlxNdwVz4BOZ6eZcN1fcdru5x8JU%F;Ky<#4A)LY7bTn;0% z1-|Z<>1r>AuRVROI>A`-2c0N=CjH4|l66fI`>-PQ_9@BdU|Qp4KH@KW@GMc3tsumm zdeJQ?RgUH}soz%oT-FZsz4s5wXchbLjDN2Vh-L?n$|f*pF`r>c&tIJhWxn+UtS4Bm z9AvX(-!(=r_;ALbTFZXmC}}-XC{YX0TPUCDPmclAdv5)A)V+Hq8y~?AH@_0Q_-7&Q z<%R#rsa~r|_6)qq0b#h=cMv6+uk4l*k{gpn&eSdZ^w~BVxmo)sPZjh`1JV^WgT6hO z0SXT-&d#n4F8)GU%q;QfsH9OXVsjUzseYPVtJ4GNowAHou|qhg7c5hxDdW|4k*4BE z@w6;8aEUslnUVsBebd&_7rm6S$?n{3HW=z9O64#P1`aJ7GUc2LNlO1F`8`t^JN_5PAkaJqZ8J5EK2u?g2EF*$LV-=c`fm!if zedcgn$LdOoR$IL) z7XHn$y~ZMrd+S@nZ*Xo*6w@ZCiI2<7K3ZvAmnXBSKXl9gFKKq38H3`B(*`B^S^}Th z9F>g1X56U~b{pkce&Xa=?>nb=&nav|Dr6h4>r3jppN{{VrwtX)0os*$;x5(gTlQq< z0%F=XpA_w_ACG!MYU7X8vnjGi zncFge_8~pxK*cjyy0D?E(&e{{8z%QaaSi^O!HWRrB|VwfK{g$_u=C8yfcS82xrwOw zjvh9pH?bFmpS;XXcI*m!oJkYR^~d6$nRm~I6Dctkn_YuT>TFkjhqH4mWYs$fDU$4m zfzd1tTjT_k*%tfWE^l+2)MZgu6a}AN{8C5a6P1SvdUVGZY5|ddrBsVh1%wYK58KYPsdw!m8|E;Iwidd^Vp2~Db%a``xKFDadwuk-)8ZvVR; zA&}F?XZYtlvTLN%Bz97wr!biA(c!%pAx-Ty9l7q|Pp4^`vNA<1TP8DzIHUk^jnj{07OZBxpc5PaQZcV>@FFlq!V&L?((ws8__k<8gV@>7Z z^q%IM-)_~J&sY>+VvcgK?wwHRt(nxd0-xq)fsf2?qfP@*?GTHQ-Yv#u+~xVWE{X7d zWOi&jztaUHXM{OL>DXb6FfN1kRotUz!ZU4ruBEVR0lo~V(ov`(r?9tqSQY!m?j7=` z1yFtMOdT36D)h@vAQV25g6^W>J)uP7JJCXeyi=jc^%Mi`5`sH1RTIm$W`yo7wI-}| zRZT^cd=;#Fp3s<8&#v^nn!kSyhW-s5Typ_*HRn(4GwHk*KD+2d*3ze;+v@)@w0B|N3Q*{774 z!4U;6vV`wIF@`}X_L`x5%*+aGavwRd^)5_5@ulhRCsyY2yUU_ zck9RLudT6#CpyGnA9>{k)jGkycc#Xgq@`jU@_-~;Eh)0qc8_SMYNu?JmfOy6X>X6D zW$s$3GpVm$jx*{o^5PMuLY$@oCdo!3dzFt*J~8cMnC+?hvx|yWT~P9LUB(+aot{?l z@hUsk5!^e3WJp-{C*+hkPpv6FEVtlUMIoIgFH)6r^eCr@iC2a%^+$~{H$?rOb`n9X zPhP@hgK~7QiecO8m$wjAkA~g092UQ$Mtpa-U~%G*hdE>~d&FhhtFmsAU~_I(W|iw z$u6qrqtF9Yo5S=@@KBAk>c4MgNO<3HC1tR$`A<_b4J^Y$9&Sa~}_H)A+yW|S5^Xk7vcG7I318f4tw?8fDa<`pJ%xV_;TCS7RhMzLh(sE z_BOiil99sGYQgO&a04#_V;~m>9Syt$&yq&7_t)TUxB0}*XUerl2NpXh8 zs*CIIuNoru!mvzVAw}cwb==wHI&zq+Qq*F>I-Q< zx?{*5x1^!vzcS9Y3O0h?A}Q>HY*coFcz}_N?#|v!+VBpaO{MWulC2=r77>S?H`{ zOwkl(L{C6$uD1Y97l#Aa+CXZBT~>7{t;nq|fD#sXIgkxxa1D4+nsM~5>YXfctE(p_NvPn@TKzifGzfD$4Y4x+dpsaPaySo(J4 z>6-X*tI)A=Sj^37e7owMgfpQu%MTCbo2M&3QJ>j5-_xtRqp?HJwmi|qsu-?Szv<6* z!E8HkA*}Q=!P-6YuE(9QPTKe}Sgewg^&+9tdi;S|B{d=0mPa;uoC^U|I2*?MtEh&V zyBFHG%pSTIu1-&zPA?Gn79Xv$aSUgdc|XW2)LGhu2>(q@^2AFEAwYGhn(^oA&oh z!r>Efs;o#qH16J82E`ZAYV+1J+vXV}XO%2{uWfR5M5erd)ZS!5rX{rAsbjVUJt@D9 z1;6QX6rK(wl3IUcyH$l7$yON$kMXk*xiiFzydw4{hSq4|_4&`<8im>Z{3K-zkR8X% ze!F#t_)99|1@?8$p)TPg`a*2!hKvpce9p=0il9K#Rk_@*G{sS7{ce}2j|?TEwSvzF zFe2wT+eBG5nulF$};qUKgY6k+FQ%(}t zl*S>!W(U9~O>tHo-!|EeQ5XstuVVq1KH1E0ett}UBJ ziFi5=JDcvy3=qLk39qmHN{oYbh{D1+A-j*C0H!z^MyIAR5IVYGLbs({%wWU|QVo`0 zsJT1VM4dLeFuD5Z-vZY~tR+ljgWz385NE)7dWvnx$#2>^H>sbd>i<-M+^+rjV^EBQ zMEB2LD8i6I&>#>L2+Noiq1%`aE)3*{{8#R$MKtxj={BlWW2t^>P&tPJ_*8C^fKnS%#AZOUvY}dVv+nVitP5)<8 zm3_%rOafDz6|xD1mnc~uI^Yld4s}l3Jh;Jq_q18OA?2c8q(RI_WXS+@N^NKXz3jEs>FstI&}mze z<FQ&eKS%4q~GSj}^eb@1IbCCg*ntd%qb&pH)V z64yT8c__oET!t#cq|(|V%^`%xqTH-m;z-vhZ}8}}AnZ%5xUM+eHm^!U$F?Bhf%l}e zh{@-qJj0;9qO#=Y%c>a8iB^GIO8O@+|gk!PR*m^oES&)4=p5HJu}5V+4z z5M-~lL?1{ma;atq%_bd2U4D}gEG;Y@`D6);;yP%4c_ifEv;;(EHa0!IbTisa#{>p8 zphNuODt@|kmugk>aCFw=*1Mg1QhE9LTd0y|L|+Jdy zGAY-moR0I68*UHmQjtzc9j+}6c2XV<@-d>>oPTP9Y##KcUG*PG@{PdV+qaBHl0?*{|s~nd8p0UlY zMe0OZi>=tE)YGXpWolh;P)_&{L+uN=`ZdiPH$J?iZ1PM`oRrR$Uz_P+?65T}7F>aJ ze^W1{Nk}o0Edr6G+LT0{umH`S%}uFy3&*@Zp5rkhNu|&lMFTyCwka59=Bq&`cb!Nm zUD;=M##=!<+XvKOZ6RUQ;}2vCwOHoF83+9pOk>^SRH%*y<9 zowrRHp_ubh>YuYWgn@Lk89F4D_9q!ddea>fmk`JQ7qk$mBAwZ#9Q1V~PkI|Mabb_{BCPzqsE|(n=PWEODyP zaX}@=BYhx6S`J?U4mg0U4%9>i(V?Axkm#(yQaDtgmj-*M&~UIJ6}H zZRYsQomj=p<1wu-5a-5(@})6id2U4|&e< zotKOVUHQ&QHAYb%hM0G^Dqtj@kFsV$D)}4I`VFaYH_t?zs3J9UC0BFS9wDE`%^*Jk z4iS&H3s@_jkJp}iN;_=#@U~NXi+tK*ms zwCJ#tU9e6*#8VDzOcfSFVmC$7v4>v~RfKC2TpugY6;^=?pPMBiVM>|ng%*zo+c#Ie zs9`>tNWmW~k~>ZUN_toGm+5&BtL4{Z`!nfV?^yuzD6MYYN~ zisUuSJvC?2C*S(pLXy_a@Dz59s$3&Buz^m)El5hwd!M^*XZv|x&VM>cHP4JF>cl&4 zd|!PCmJ)j^3X|R2BR|xrJBo7hC%{B6+AwAUCNJ&vta%qL=zcJJ9 zZ40YHu{R}xUozT7jK3Aw?nZy`9TtCr)9bi}@T`qA4`>JlKqWHisDn@e>fhJBG}vqGUG zC@x6$G8{$u6on#CO_?uAe{+cOf%Lds!kVV%&;2K?iuipy6(o$oa_)fD8*{E@Zr^#s zylgo_wNkuEw3i@XiV?+G?;)=nMWl@tPmbY&Fl()OP@8?B=`;;m2UMi77_d*LW4^U? zNr;Vyj%(DPr(|UmEMzH7gUF?+IIBY2$j7w0*gfOOX4HSbI7yFDSq%vxR!{$Fj;ifN z=IxGBw0bEts!2|2U*OFVbt|w^UjVfI=Qlw!K{?%)Q5Rs?FAOg}gdN4pi7Ff}EF}4DgU)D~KhoJGc30&-p zBrjkby4CjNUeUjyYN7MVcQz!!ZF%7{W3?>i<41#k*|+dywc0ltNJ1s?WSG~bcnc>E?h7O#**skCo+;tS6CHZvHG6KI3lFE?jxA#^E^y7- zpDjL={@R|m)aGD3sKVhP7ege>JBw6zK5aC)%1sPo1$w`37(lx0$nC!agU}eSKMTY|lir5o+M=uNm!9!^O#`7}c>KamU?q{U?`jETXTfSxGn#G# zdyMFLy}L&lE%RIWUl{}kuf)9q@+6co6d-rE2%VTm4N2o6`9=K_>ggeszcuMVJGF7V z@94uQFnYb1&}1_bR}0*D`AAPm&y6xy2xb$XnmMuGYWvx=;}T7d;Cj>QcI0vG*ixah@_UL{%(M`w-#S&5&9kw6uAd630U5vy6`-D&<5puMWDKw$53f8z8jf4seX$gJ}5W8q2M;H$0lsIb7M zrMTb+ltp*F}@?#2XCl(vHb zszBu7IHkc)aV`0<`gS5S%;0y|4=;61m0p#?UF1KWB1m))4tt3aSJKa6V|OLj+1f8;_V&H8EI~T63rP7Oy<)1C4j0N`LF$k!wFD*1!O}A{rIsc9N!KfDYNn0`Iyy9{Nm8BnD3% z7^U>So4y}-+%uSCw;dq}_Q(psVvL3a1L(4S!8_KCQVte5ycE-n-noOGDX>N|5XZzliBu9#kJwbQlX4m3OY5v{6pIYmtL zmDLE)8#F7-G`D3@uZsllyZs0$bod2w@phOsAAFbxZ9B?Lah`<`)WP<&0LWYO#$;c} zpA(>}&^U^L$+XAj2C8`P*m3j>T-)-PX>a;aqpV6?EirgFeS%9oU7^96c`P36@Wu5el7JgxREi<3G5$m#vpo;>07ZqVWF}d|goq1+ z>){XRD%o3$V^#=`e;&G4`}lQJ7STodsz)n`B5jFJo}g!%ldl(1T%bSsonpI8&E63s z`L^pO+h`#TS%S@_$Y$Nhub51Y<@HBDFj!BFH2UZd@qW>jKAZpKquPnO-^GQ%Qz}Z8 z1<2)l?NocUD9Txo>vVoj+7?~hUCM0&?&QT?rt!g(ow;si+%NTMJb|^d?`GTVKFB@5 zxAWUDdv(=xwF7MMcdi!lV(7h4MX3+v>zxa?zmnUxZBcuOXNhyf>U?sZ#>qTz`3+hkfGB<;MVX#DQ;M-(NaX(~O&P^l8Coh!;8~f(&-9 z)C#Vwz20YLARZ7EGT&+Ix~WDwp&14w?@{o>b{FqRFcNBrL3M6=Q^S&FF~WBJG4rOs z73KhN73mNo3$^4U?@AHSic5E1uo{ZB`qX+{9Dm+L-L$6NK}SfXj~AyJJ4L%iI-h_H zZ-U5mbDlMbxafpW-6}68NSSZLyq_G|DkARQg|g;^#D>!_S3ZJ5130HY;0$~-+g?Z@ zT4%2o-d3=F_nR{ZQRD%JT^>4zm z=RPiPV$jF0gDNY9X(1olbQUXx*fDK$@7tspkUzd@5onkso}S`5A9Rf;q@`(j(L~1I z-wy5vw`G=B+p|NxCZz%{2}K@{ZCHcZ(aysk2P*Wz>kho?gW{qdIHMEWI{EMvmn&HP zr5c5sri<$kDVAst7_O@c(CBOkWlv|i5i*%BF$-S1(p(&1)Jk&%I*4iLg(9t%ORb1xan?t zs%oAcG$CHVpCdDs+m+8vEyUKWG0wXuo^^MBs|dv^bdEX^W8M24>5nhpf7P8;e7wTG!tHQ)r-?$LHz@_;cgH&rJH$QF$eI2VkI?`X(h@jrtU!qjRN=OVTP=wD+ zZHjR;yzBO$lPUA8NeuC{=2{%=;?UH)@u<(a1LXM}^_D!}rLW!HP)N}<*^%#?+?~gz zb+JRT^@eTTewdNCcGP#0yN{CUrv!YwbA`-NS67%ayMo0MB1WuDcEDon7@%&3mdyWMb7vsGsvH<&@(QbN5%02o?baflX7pQQ> z^0m~ArQS1U$v@E}#Btu9Ko6xIdtT-w6B4(Cae*v#WHL%9cKB>i&@`L0p?0`w%K(X2G)JqKWGt#zd{e&VQF+KO;SCLZ& z!5qpKYX$$&0I+I97EjODBfqcW3SXu7piK;cgDR-?)3U?SK~`%%DMz5)?G=Vmz1U)G z_K!Flnv#+<&ilu%RkdpVDKoibLCi9H7CW6D_iU$~l73a}&fV?P74c1Bmr8;-vBzKq zA#Y^9X5?0vq2YD*)5h(!JztWtB~UAnq8KKHidsEjJUfDHR_3FlGEcS3{8L=zQsrxm zOyN^v65Rw34{pZ#0g1p=K`X{Vj|weL>GJr1fqdG=sC*fLSh>8jigZm>J~1)|6(i z)hh`4Wzm3jCy@3bQnYd?~ix0G=*k?uKOdZiH2=N{Veai0~Dr$gC`miB65&}{RT&X@?pcDrlqlh!w ziH%vZ&f*^6UbYcW171sqksG&FwveSh8Oj~f2X81)u64Y zDa$Xc>Q5xbdtq0%-~O-fjylV{2hfvlj3Z zc9)$Vm=61~eOG+%fxy*BnOKV65K6Ek*k8ESF|cSM!Clt{(%dSlBB!VnY9IF0u%X+}{^AmvO??E4w4Ma*ka~Cp?LY=j0!LO}+6hX6$Ex zlS93aQCwK1e8w}wE0*@xg+~R_(NDA1o|7FL#^t>7sliYR_v8E|d>Mz0iUresNA;4> zH4`bHs>^t|1FUz(?&QIpF96j%J0Lx!+d>Sk0|3Q>9DqD^ zF-~BGCncbY?M9XEZ!=$mC30Ea1j^drKY%4cK) zM349F+Uev6L22frZBC)yMDzm2J;{DqM)IFg1T6S3t+lEzL%w*x;#Tit>WV(a#C&(! zHAKF;fdIEY<4fu-;P#cegYR-P-zmQDbSK1uVt;z?1Kzi9yYHvNgB(vqY|9UGtbG}X z8ib+hA}iMK^a#6%olm@p-|R59-TdtP_C>fulv6YlF5(8wQLpm-d{u11JZCd=hDHfJ zT{tCaKda=Yd^XTWXMlN5+Z9uy-}8-41y`|FargG8!8au{m@?$zj3|A$th5*Mt*k0F zPh3JU$+mt#PX zA@Za5$CTb9N@Z!W#EGS5<$}WRlb1vKvHKK1@t5($(Cg}2o4bpbZ^ou-N~R1PV?&zI zCaXBXsE&815(3p8>j)BRiQ2buZC}H3R49O8$-47n!h+Bq5H5Rn=tpM&$S zz)H1})9CCt3Tr;}f|J>0gzJ0SPFJ{|vUvM?$uwq|stJ(GRcH+#dbTJ30);BgjC8qZ zj>b$Xfs6wsSn?TN!Zsp`AEhWK3y8c$>l)qx?+xy?lHq-}7Aqc-1-roh7nDkz@`9FJ zf6Ho#SEH;Zca(EsA4r?Tr;#L@9KwvF>Fx7t%-f|`IJIy3<;14$3p08P@a$uy1y zFhJ%qKGPzw&&gO*uz?1l8nJev^MreCKUY7j&j&uZ0r9Fz{`aCbOVUQ9mX2cYI-(zjxEbMzVq5k`( z|2Sr%s@k@|69BmNZgJ;iLZ=~=T9flkUBwSnQW4D}FulRT18 zP-j=wFakxeDL@EUE7Q_6oLMVRJ9M?;5RL!1Atc7jG7o^Z2%ju?2mErl+jH4ZooOq@ zmYrkVsZW?S`Fr7%lut=R)V1kgL?IzldRdD94#prX_gsdd4w?r`P<`FIp zFwH#=jICX)sZdU&lDl7r=~;+Y_f8RZ#dE58gc%RRY%a1OaTtG$e9K1P=jqz2XSXZ; zsw)9we#MPu8A=j3Pvx7LoL@3Z;8v2iJ*U~vXitTBNzHKqPW1Rvxy`)n=TT6oj;!j$ zAxj)ZGdi4(cIY5wDANj_?{WED#|XR({VNACPF7$k;`T1BJ>ro5jEvlv5#}dG(cA*N+=?>s}_vU zW`%3ild#5uPB zYTXpQ4Et*t{Fb-ibhQhg3|>oki^Ju8K*L74gf}~^U`oO##R?ym6FxKyqVBO<#u{VS z$?vFKE5Bp3F?tJpt`)xBK6dz)$}P`4^Gxwm#b?9@v7Z98Bd809#WP!$yaYul9IhOf zoX#WFJnDC#e*QrYT})1GsTZ&XT?*9~<%a;g_Gg49<7(V^hd1Rk$DO7wi`iU^uKn_Y zQKQmpwK22Ppj8^SXrKeTPEZx>z&=V2yAtL^rcn2A_m`AkhU_9WC&xRVlqC^iPO`XET({L1@4?C&X@1=v4sCT&Q%gQfz4R<}LeDI`j*V~`0Klx;x ze{Y@Cbkt7l#8Lr8kSHxj)MY{+x%`WvQ&(iKfa~Q;ANXMQgCB^0-~-tYe1OE>aViVQ zW6(2D!8V?aKfKvk5o0x9QK5(V=WHe#F)oMAgfZiat^06_Qp*MHksNl#O!Pz`-#^SeKr>XAq~D!r*5n(63073LVHF;Wm4a(9y&$4;;X zM$k5q{&S5Wf2j&RJ^l#T1H38k#kb>YAYS&iEtUsJmhmhghdDH0UkPDU}!(dy2Cv(q3jV?oJ=j`1C55CfIK| zFLKae++?Uxt5-V>Y&=Fs^rK8 z@>0a*4#@aRB=NMfJ|H=Sf}uVYx}$TnG%L4?ZEW2YD}VX0zuLj?265`>kk+U=Gv*)Wc){2 z>vcr>wv;ppPH)L<4RrMvQYCF!Yc+*R>b}mPORJCX4t7<0GsDWbCm67pK@?pMpWkep znV}V$oVUjwQ_3VrsttvjwH;=|)SN`7PP!BNE;TE8!4M4f_Z@Ip=mA=*ulvGwi*ow6 zSfR=LLsqN!i?wi0j)})p8izix0E9iHha85Ztru?Y>qlz1k&mVyoS1;eH_@w@m z_uqeieQzB#`Tx_pS%9~ZqhVOTWQr+voO;a6jBy&O6Q_{$w#;>e{S(=yXB zbm^G6S32gkebUTW_N<#UeV!{sqi@C{OP?~*E6PT-?wdIaA2m^78Z6QZE)YHe?0HW?ta-$P|0}q<)e*V)SbuHjyhBB zjVkPlQ%K(zgtt-{+d<5ZkPrwNTd_6u`7J8dxXwr!|KVsPmmIC6vn5NY5=l?RhCuH# z7iUF^d$bhJJ4C9!2tSmlPFRGcr%|CMcL(|Pt~A2l?K=DT7;-0r?0x$uEZC$qI71VK zXw{I=`Z5k7;2JKjiHc-Cw)CO*Q|r`aOu!LHmh6K`{oruGrXn-i+U_xl)kiXG*~WiH z39-ytAAZ)0w>Wdep-lYDS>x3;X0SS5IBHe>iTdUpQGvDe>!6I}g6M@7FOI<6k20Wi{8EQL;7A(BYvo#w3)*Zj3viDPcJMQYh7jzEhv0<)c( z{aq}TRVtN-tGLP4V?F8}5BpWPdFtFIgD=D+9(rPha{I078^LuN% z#V7_bYV^3a#`X%e(2AsO^_4R`mKdfnO7adzVm7*QsCnPD)?s*~GA`HczxaE+Zogx7 zV=6gAY{-T6JuB3qJ=2s}mfB);$FSNl zzAhD+$U0rsZPz^qaDB3{$wQBntn3Gs;VnIF zwQ04*V=9-ut0$X(h6mOduDUY0zA_lFOxhD3SI}V6d&`{9{tf4|$@2N^`_GtNoX<{$ zB3(Y4e7g1dMF8z!wFl5{w9Cv~=?xI}9O|Bm6QJ>)I;jT(_Ts_KEiJ=wKbxY~0 zxQd_P>S3lz1T49Os$NlTUDQ!W$;Ub>Ag-3l0)Mv2)iAk@tL+~3ah?Kjb)LM4Kl=;= zd)nVah#VB@J)8U<4;%v30$X3cF!}Ur_Q9{<`@Jxzx%HI(#23E(Z3zlphi_=TN1{E8 zA{je@kh*`mTpE<+6D{1VoH57tl$O9}GdJy$=hLABeqkP@3{5f)wf zYDR3bD+YKjLD#YuiPY@8X?}bW$~OBl(@SB?6r@fD+x}__wc9*D4Z01{xWwOzeIO|H zfgN4-V;vPxkGjC0ZT6_QakVX~j9mSMm~K=`_b(mwVVbV20^;g@WPv~1;I6pKbQ2w{f+74fA@^eiA=~57WAp z#5Wv1hY{r*Mp$P9-lyb=i^yLepV>yrdxofiQk3%Q*}~SqW@QxgGE%8g;~&1)KJ_vg ztQ4cdWG;I_U_-$-;hnv4Z^h@`pS{4pu^Yu3WV+H8wfyt;6^`aZGGsX%5#!xDzKGZH znQLSMmOM&FjR)n}J0zc}$C@ivF+6nF^>dC*o-VchgA(j% z{@yj=yv#8#thr!@)ohnq%ZS)j{>JsYOBxLuy#}2Y$JCmU3)Y`wi!c-xGY(7Su}sJ% zpBOnQ3wy)n*KPKGT%=*|nM@3a6gin3mgZ7WPGj8oW@Uc219r&o{D>=1V zOOF68dgNoO@=k;>+5`=_1wVuY_8r?8&&Us_F23UYHBZ)WA!H!8Ht)^ISE*QTz=Cnm zAI%R~fCQm26fOm?I2vVHaE!dwxo^U-ashuF#*{lo!UYL7_Z)fU^q*209o^V{XZLp-dD9^L zfn3I`0&u(B1#84!&sSGg!=BK_#%SG`H6$a+hz7!eG^TK>N=GboK{wJB-eK0py`P+YT zx!c7PgAHf^^X{;?%h5enrzkV8R}HS#e=o+E*FxEy&W8Phr zO;w{x?+MxRwOAwN&uRfeet$+s187WE^frB@F`gTAP0fU{RWOZa;!}})Fsd3*yL`bI z4V*p%XeZ3U^CcRQ?lXi%8u7EU-+Y(3>VQE5y;)y#!w4d112o`9{E%4QRlLLs7?C>g zBBj>$Dc>BQDW$>g3D;AV$xIl$zSwGAAf^TgxuigwiO?VtNJnW9g+?Wj8r7H-2RoFRKcTOL zf9`AP;Bam<*03vD8b35q?XCm(Z(lh%9gQxT2jE z{?N6JyOd7RZlgLvBq{Fjen(_N&xK2As6{`-YJ}wb!IRwoF&q=`XT&pL57GON%lCK5 z_kTb`K;J|NUxdFR&X9sO9@h%iu(cMad-m|oLxmkFqM6l@)Q$rF%Aw-U5}eht!SS=8 zw6n-Q+x{EANIJcyj@JaC7PpqIT7jaA%Fi05kHYbmP5LMT^bUM3r7FIMoHVldPVRy; zY_|JM7Pr-7EreVl7O}c59!n9QYZ)->&8GNpkYBKLKZ{=g-@*@zd*y8UGK0m8UobO+ z5JsQF7sEI36UfR&YX7cixlj3_O~9abIfw0lRqppFV))`At7#b0xT|gTL&w(xJ{jZ7R=0X28*9Mf&*y1(z)ZOt{vxo48z(M*DYu)eQ zI(&)5kO}!a^&MH%ji8jR1;*m+N6-}zX%8vD^_A(wSYTy3J{~A|-G)K6;PATj7B#IT zfE90rHxdn6(bJ*|rWnTU!+^Ch=cpj)O@m^~Z5_6#1`MH9b|J6=Tg^mousaX{!D)Dj zMArc|FL=rNY8e0K?z?FeeX(7Hm!M&`pRZOdZIruP1R(S*U3g0_c?;lBcV*(tE%F+F zyWPG4pNsCN{auTG*ZLVkRCz6a0s16gwNAVnb8!=Mlh^%~y zDjA}q%2B2uXnz$?qZ@IP&E%xUiJRI=-6c_H*yTyC#*d5#tj>xrAY9CzzoWeqx!Vu0 zbyjU(9}Flu-6x*i%Lpy?cJxuQ&>;?NG$*o*k@SIE@)v$Wv48d+MU3ozzw?u=A1b%b zltDN5SM%H%{=AIbUE3Oyw=R)8{^t7vpL+F@nM-*;Op2Yn33Zp{J{!Y!ZgjL2^3wiH9Ih>1stc}T}hGPWYfFGNQqHuwfv`2RQ}vC)2_ z9}pa3V0S8G2*7~<26vJ>xI^7}OYuVT#`iiufdG9E{}pzT+qgrew#`oAzkVRV_@FoA zf5Rd2v0jJriw>0_A3Nw{4u#R<_z2ui9$%*WR2FleBTKjs9cf3=jkFy7BQ53#x#>tF zmrMk#u980>T*P|oLEJ{4P{mGntbF(sV?{+yJyv+`(bF9(PC8azyVOWM_XB~?+_Yro zQr?e|AD`}6*>kF~Lf&zzu|kl(og+UZm|nRVsWCuo)$VqQAmt{$Pza?Ct4QN^^0St` zWrrh)k&Op7RMw{T&(Rg*vF!MC+V6Jz{T>fE*ljq{{LK8orn$8{qT@kdIG>Cf3PtjQ zyZv^v;Pnb-yC3}zYuogW000310009sbsE(LBVP|Z^#BS3=l}o!0M;0T_W%F@0OO{` zY5xoV3j~}5U;qLD1^@y8000000C?JCU}RumVf^_knti!Y5`T4z$qA=zn<3bgrclnQ zq<=WSqzq!;T@;XNs9_RORi2=xd4k6BPM^pVeIv*9w;8HW%}9iq4k&Bpv6d!ZTF(F5 z5hgQ{TRy>>zHGllm@UMV$j1ZLJQLzLv0uIHLdhHzxOvKdFFPg zMUfOpA>>cxs18l0GBnz3K#1*%>fE=sDa~Dq_94c5PgG}7%!`- zFy>G%ak08s3+n@MQ6&7yLq4;9W-W*u6vDpu9M@Xvp^?_G-`tXwa`dTLF zVVQshSf+VFb{6_bA|ix%M^7^v-S`eQ51L6!RHGP*rUYq=n$nfu+o7$DL=)+PjvQA&TIxUg zOt0w^#|g(3;W!_TE6#B~wjHY3HdF)AwiGT|VxCviPTEBz`B|^fk|bA6J1NZXmhHWO zj-`1tpI*~8I!6bc?@2gzZPI#qSzWY@t|yIMnBomUkT0xbknU$+AkTk8m;)F90C?JB zU|!L%;C(f%qy7pvxu_zvh=e6x`KxQuweiIfKzQZ zO;fkCZQHhO+xB<1ZQHhO+tz<~S1<=Fhz-K#V>hw4xPfQKtKseNG5BHp50Q~5O*ACt z5<7?s#Ai|=BeD|NiCj-!r!rFwsX5dJ>JIgpcIZNMO}Z1knLf>=VyZA*n3c?DmSQ`z z+c=k7!foXCb7#5R+%KNxO}+?Ufv?NANfSPdRzUe zX<8kvlQu$|s%_COYmfC(`UL%yK^wh{S;jNtqw&Y2Ox1MF4CV@u8Z-v&Ku<6Pj0f|; zO0Wg&2dBV2@DhBnQd+EKSOcul)*sjuE`=N5Zg>n{gm>U`_zC{CXGhhf1QVr~zt?x}kyS0ebD^ahf}woW9NoXRJj#CRCC;>68pe#w9b7Q^}*WVcO{Upkf3kZQh6lr#=Pz5R? zs#3HBtlhCYOuK7lO1(kP(c|<~F|J_|;c_nb{D+Hm-xftnt9Xfa0!KEZcHjlAXd&>T zV?TkH>@@DOO<#dmY#9b_JJMBiw5??;@UFIvz+G!vfe*9@d{}qyOch@B<$5whm9a;u zkvF-%LQg6)GFH{6GIOecf-1iPD~HRo%@D zJWCa|KQ$3MlsM3}AMCjC<7OeATWAbt!8!X^d7l4jU7DKtR5U*khuVo)@ak8EnMCYd zE*EPIWqnJPQiXS^q2w3vQc3av0C?JL!2@gxh(+qP}nwryv&w_vty+h%Oc zj?u>Kod{C?pWdIcM;&Ph$!HQHG}TOVEwt1sq|;g(ZMD;02OV|NSr=V((_Ife_0n4( zeHBquF~yZoQYodCQC2zSRZvkSl~qwyHPzKnQ!TaCQCDVJWR*>JIpmZ}Zh6EhEQ7Po zX(Xd#@=7nCcu_98+d*G&9jyP(cNP88MAW=OH^fN#v^<58Hf(rP>G zv?xS{Xi1_qG*Gf%Hu>$c0`e>9o@MsCVR4ADM2xL&8)>vLMj2kSEUz8LDUr=EH4g_m9#=CwD5 zduM}FPW$1#4@UUtn{6T9AAkJ|38@6Z!vO;U07b$7V%xTD98+J?Uc5~#&O1YlI0=%Z zNRuH;jywg5lqge?C0hIoAIKh(Hml*$|W6sgp33s;U8{7`{pL;wH) literal 0 HcmV?d00001 diff --git a/internal/ui/dist/assets/ibm-plex-sans-latin-400-normal-CDDApCn2.woff2 b/internal/ui/dist/assets/ibm-plex-sans-latin-400-normal-CDDApCn2.woff2 new file mode 100644 index 0000000000000000000000000000000000000000..f0ee65dd7f3ed64dc8d674e5c6007a0e7761bd57 GIT binary patch literal 22588 zcmY(qV{|S&6E0la=C1ADwQbwB-Cf(ZZQHhO+t_ux%d?;Jp6|yunHBv=vXWU>=9;Xy z%Zo7s0R#OL4IUtr|H|EZARzVS|MmUX{{IUO3vNIsBVMo(gaN;@ilB-fP_Q=?HFO>* zG8{}m2Ub9)Hf-=OAYe8SQqXV?FhcNP0myJ$xByCAoN3JTEUwk4E_{I>`wDa$6GHbY zE(lS^3~VSiggdkLh>7nXeiF`v0$}t+v90$TSf(vn8q_dlY#;H|+>To;rtC}FkO&m> z@<{ue-}el+vYXe+Gm|O_GWwmKy^IISj9_%Dhf>C(S!DvFQuG=PZ=LhGM4R`=*seL) z$|}TM-%PXX3MK@|XfE)dkjOqHOn{+;X|bSTvGu1=0y#WNzDaRdQ^xn=mX#rXK|o>uvjLW)3YEwIln3?i^{zYQevk zdwO4KH<**>!B2FkcrYk*RRZTQ!OI1TK{`0hu%p^zbjd&F)^zqH$=IPWJ;r4vh@L|b zlU@|Y!-+R5qZy5kv*^r2tfO#tAA+`wIHPnS%2FGN<>9p(Pl&khr*&6F`OefHrgA`$ zKzH$OLAN2R{l7JWeSoX?e!5gup|Lws*sBHOGI;`u<(r~4R>6If{wTWkt*KS$4eo*_ z793AjXG8@+dP2etrFz0I&iBAF8;76J{$+mAF&k8>y;sNgho5G+|8oJm&ks~Rw`z@K z9ytMpiR%E@9ASa7fOWdt#TH!vPDd$tRd<>HVv?I?_jB`9DT8v~Z|ASA11PwO-VEXs zl2H2n&An+2XtO1NA@MRs?0He=##nERByA56*_@z#?)%KE(Bg)5uv9n@;Zj1#=uP&b z){7SP5ak5;VKg-bfu|A@1pt8tqC!LZs{jc?0tN4a3UKx(B%Z{dWCJU8ic=2~mEJ0a z->fv$)jc|Uh;D5UJerzizI1g|Txo*1;w_rvd5jAS26N*OP$`v?IskThu%3LM;PE51 z5EN*RLaS1&E{LLbw!k69M!VLN^hQN#Lmx7jL#2qpD+>J!qzuam=afP5zvX{2MOJ-|6_g+&yMSr1?1{1*dK zqGbV5f2FTJIp|$}|J`D+Rd8;R-CD`b${Yr@4;~}R5AVu*UdgUI0~W|^OzG@jaBCkL z^HcI40Ybw$gtc6P$g)8+$&-#}_$CZQ1_uM9O|~X^SU*~+Kyu@jQ3mgg%WNFje`_pn zfS`@{uN6jeLPurd@Rro|D=CE-^eqzNbNS3;>j%QFan2exFn|QH?|MUvKI^%tGQDx= zkb-vfH&Dg~*`@R_6a4EhpOFd|Gb*@p^)acOeqBt?rwAQE-J3AR*|^=#9hPe!!e9;I-2b0~EgSahd-@~PkB$G8D0~^r2c?ZYwn~EM$_M?Y z*Ey|$2x3q)u|BL_HF0-u40|e^cDX8O#AFa{Eqd=O+DCAdqh8j&g-$Q^MzEyI9rnQ#p_uYc&|2V{KbHj#+6z44 zqY+31qrF*#PG6xLXela21`d^_gruZps3hCU$fO0AFO1W$8x4q|Y6;s}gplzYh`EfO z80O|i2oNyUGGw&645jFRI95xuPukxB|qrUsR0FvTjJwAcQY6QD#n{xSA%bOdrh zs#m}Omi9ks1kvbeQd?zU19F31QX&q}6N@pan?RRhg5)?qiwePKRV6KnudnQ8(r9?H&*%=-Mbe6Wi%Gsd{BN@#&pTu%y;2>1dmWgP}Y$06bQ1Z5BU50ajZ0g89seL zP6WWj#8e@fCYqUG#^U}9G+JF7U6P8lntCj8XT2`3etms&dNTVddZQ7%9Xe4oee3p# z{rb-vWhzQm!s7NoK{XaPD^U=H@|BQ3ddV`^Om2Oek5wO& zLLl13IuI!JqJb_u%}sN{Jra0Nxk6+UFPzuLn6Kad1!Che6=b~hudekOOz#PGzxI&` zHR9}R?xL!QnPam{v(AhQvnE#e%LHWY(NWtWx>-f5tm+>6k#bCKEo&1Ir(^a~mHvx)S6IShJxM{EY}|DB^LS7s@`G z$$*Z`p@q~MGzJycSJ8ORhrC?$`+7!gW0LbJ2#TESa+PCvWpaICRvv26n9LVD|JMr8 zB})t7NJYjFjW9`BGzF`)`e){?hHF8JZ+-aOh2QnGM>v0d9+Slu&XY6zNk~ zOx*%p3tUjJBlVB3_T*Fa@EYcLD8emn|9LXF2x+ND_)MTqui!2fZsXBDBYb@!hR>0rsOv+Uv^SI-wA-*W{^dE?!$paIl zPgx>94~sY=o!bc66{bGvlES^h0f9ke8#vOZXEY1gf-j7z9M31#Kh?r#8@G5jTY(@c zw7(_q7X3iqxIc@GuZ>`Tzt*JxT%t3Q8zsXKY}}DBJd18I%Fp#xeO}?8=J}9wEj+MUf*gu)gv6=r88hU zk`eo+$#l4LXl3xT?t(ss)B0_vT*VLMC(0!kS6TgM5*V64B(_ywd$PdYd0*b|#6g%5 z!R`|u-OvRDu);5+F2#$ zXcp@*TUv{7oD41SSFnHjVwpT*8Y{059v+kh2VA-#Fs}ayZGr%>LVq^A#*|PHk(Q=U zCPo9}6xkfSK~3`}tZ^WU(!4}GkyxtzDcdxC$LZ9zKca4!Q6i(wz(C6CxIhvWBh@GN z1mdVbjvr+?UBAVHOTpG`&eMl*HSGk+-K#n_EDsM0G<_(MwEs*$iV>8?C=PHn#Od`q z00PTD0G^jzqo2#5!QaW!0tmO*g<%?s%NaNZ44;$eD650rEKldh)UF?r!CybGFiy;N zU?f3Da*>egFSAT)oKQ3&2r*OnH6nyCQ335ww5bzUy-DHM1xX|Q2HFKxh4iOZH;Lqm zQA|2*Cz(|sS)?Wfv>);;dL@{C4iDugA74t^T+ayI!RIhhlYNtVQ&f6c`cek98L=_u zkeFZ2-l6PFDSiPk3-E~Gceu$!SI(Lkk04lhqNS&u?=2c=SZa0}*zKtfXpD$6{c(2x zdKVNbSaScwH>sEO%VBhiULndz7(6S2W|z;5#|P( zW?GQfRSpM#OGDH+ARf5C7?=UCaZTQN0ql+YY$tb<3uqvi~=_C34RS(`BEPvitj$)cDq%tz`(EtipOcfa? z-FXQTd>mWCu3>l*2P+Xd|EWa6PPE1Hc)oXRgLtA)`5?iRK{x)k?-|I~#HWb~(Dk!> zZZmUWtd{OVOI3=W{ou3jknUsERj;}@UkEIdaKj(A?xUWc2*rKUy>1|X$A0XPcu`;@ zHr@hhkfLM(Y|Iu>yb+k1ycB{kPLTgczoS9d%5Y~5H-kt~grJCy<8KTG034a^aIk{h zqLT0v?s5a(U3MhnCLGvsLyT}kUAIQDoO2!n(t18q`i%m6vd+a{5=%f}}xCyIym0`SHZDbZj;B9~dX&w#msfV|&R z^2+?!@5@ef$o$Kd2Oj9*a#b#R0b@vDf=DKQzyrd4;N76zke|o2t^#FiB5Xw0Q~2os zD9v9|WrY%jsp6nUiNDoR^YrfRiWej6@R0#huBeM6t*pvbT{*d6 zEs7(|v@B*e&o?jf0atRo*{5*koMRsJPxLrtRI(Q>{#)Az^snuGRh0O)hQLcml_6!z zQNNTAZIS4=Nk5W%dl03Eu8n2W$0%fR7wGX_It7t}#flazntdO;fB)OXoi*rGfvF9) zT%4{Te&NxPo=x)vqDgUej3sFLA!fdp-Xh3+l3WjX!h*};5{yLB37sJzaYy_j7U83# z;tHq~B~ez^Wu>+r-=%rhR{KCREk0Lkti!InUh^CIDePIN*hd{k2W$E;8iy8lcrqN8 z^OFCqc=;0=GA)8*!Q?i;+84A4$tXiG)#~ z8J!iQxu7q~OsRnS%q`_1m~%{V&N>ry%{myH^=THlpdFCanc3@`O`5U5vj<2I|Y6wBdcXb)FdUUt|LJK%^T_6U;0=UbuQ4FPl1Kjs5$b_x(11ZXL~g0f-oaTY|gDuplSUkc*46?cI?R}w#BMzP1zyl^fy*_9;=tab!9g2j zT5<^SAbCXHX%LQ);Ft-q{e?hap!@kur%e)tYv-iZ1kjXp%~50A&ut2PGiE)lE>40Qv`D z!KCsMi7FXDgj5f?mmo2@A=wACXB=}O@{Y&`#!1m~WlI+>p8U_D{|{o*AfQf3ixG^8 zH%t5`xgd09vY%ZX(!wdN1wroID@}l&z#KD+hP|!!)g$vUF=A^`?wAhA-S#hNkjmum zd5Y^pY}GP0w}f-*UQ#E_s_t8R1)-)~$9N)}|9F=C50ejgHayfU6Yq=Nv}&G9jXb(X zh_r$+8Uh;R27ZeVec3lf(GPpAgw1@>tcE0l?d4idmwyW5&e??&58bGdg_W4!-yOqp z!^ja2cM1^yHr41rnBjZMJ}-=k&Jco@SwK^b#NAW7Y;{wlBT{ie@5KBcAe`aKHPV+x zmBi=j_TsCc5&vgal)VD~fTzbQqhYs}AA+0+uu$WmF|AFB4bL88P%oW?C7pG35!y%9 z);@!O>lF8)oMyzbB|xM_xO|i0-(m@A1h1MD+yrN zdilDTRrBCT0x2zWI54}=$49fAe3I!mqEH#6_AQ@}0*1j+CninSj@5IDlhslR+N)Kf z6J}j24rNF14167F4+u2u8w&oWO)~-Puc-==m||Vf!>?WV@Z<+DPR8#^t-ajnDUxVB zg1nsukD?OMjk(+YNWKt%WPVkZ@y-7OP*Q0PnbQ9UG*V=?v(Lkoyq&8VV)Mn`1I6q%`h&rr!Gj%|zMB`jRiU>~b`m z>by{YE5a!fu!6(WQq&Z@kmC1sL(Ep(E#d2uE%EEJyn2?f!Xc;NB6_^nl{XKc03T@m znP_AExTL~=5S938v@zldJ?4lvhUkE-Wt0ey%Vx7)e}6VK{eOiPfX%h4OT{FU|1nee z+S9DXr|B_rnO(zr3xb7x>lbNeq|_xNZn{JouWUa&@WtFu24%)^G}z9a;!(LDcIMrExUi z0AZ={=@B6P63;BD;K4Ga4-5_T8<#`i{-a#8aDxtfjiOWVEQ!n~joB*9My+B%4+l{N ztXiWXknkUvt95J`_A9b?%o}jd_6qdE>CZ?${JUO7Fz?Vbq3Txp#P^|R7I7&)WSIWpSWRCIU3$bI~gnWl#0eX{kH=;GS^ zi!INYw~67A0)ZL3 zI(1eqDcWQ2$v!n&tsdHtfJ15aS|f1;Sv*?JhR7w>PTBg)(J<*DlJ2JMAP_A`NHU5y zl@lYrRs*rX>S&K#d9fy*y0W4`ZRO-#QGi62WvOumM;h>dokb);q?>hS(%Nt z`n$}yXDNa&IL2|LA%x;cmgHm1px9T#ini1|3gFt|a$OOoD^p;=KzY>3iiexyHD(5&=JA*H$>M<4}exlTO8GXor4hRItvQ-8%s8D8^f;O&kgU(1o zvQ-kqQdy0U=QyLG6^vAflFki!qX|NZ+yyj`kr}5u*(Au$xd_BYGmVQNaDY;?3~Sah z49>0#Ne*HPi|VjweeGx26g$h9EM|;5s&4tb5Vt;p>gtG9%Wu4Z3zM#Xbe&cF1>J++ zVEqnTReMHY;{Ytd{dC;ZRP-$ORVFF+heY4kytHBGGpbNaF+IYVMx=c(gov9vFD*b8 zl3QVTg>G6RcG)#$Iy!x05IYeV%E7b)DHf{E#&RC3#D5zogjmKoq&e%D3+s$F>)-Ub zk{n%NfKPBw3Qku%o7i;8JSwV7B&gmvP>+HyCcYUA>W@x46N|9ybX+(e8yNoHh0(TN zX@p6v+PGr4E^}RC}2Afd1z%o2mPj zZLz^-V~M4a%f|(e)U&d+X179ms6xah(YsKV&%j4$0;!(Ctb=L}z~2T_ogl^d9R zZo>S`AgXz^ek3cN@Vhv{q`*ult}~$b5O(N@>y~*MkZF)VlBMOp6d^mWH%_~&1j0?F zG?-Q16z-JK^2xhYAxsD25>%&l*}FL+l9}8TU_w)ktBvcs9ihZ`(9HE#&BQc_N>8Zv6-8+4Cya!233Co`be`g=SU~pQj<|`qEZb#0P#nxX_I} z!W-qRrP7v%)J>tx!VY%LBO}|Ln(0W&s>tyzow*H{{%S%ftav0G$WaoJC4I{75wN%o zm^0VnX!-Pdi|v!tf!B_{xC~~pi9~{nK$ots3xu$=4?I_yN>s~CWxkwV{m~DGozpWe zSE~7=LgF>v`aP1m?B%PNK4>UPfK^al$~J5mRXF*Q=@`UOnOv-FwjzhP#>Wc1V;&$R z3IJ=_7V(o|p1u0TSHIQhSdB^bikX7g`rXi0G>bM_V(hN??lVq$$^LA1T<6NK zhhr$0MpLKov5Kh1@DX)w6cwRMuYOFu7K+2}v7{|VUX9nwqqE)Y=*@UD@;9Rcd$6g4 z<>Mt@qt~H*T~)2rxc8Rr;P#wEaF$U92BHmI*H983Tn3=6 z&^X?%eE4S@?*H>m3NuvAS51}r!!pc}>Y-h3&#f+96$khC4j`4fY?{SEIAYo5j=C7V zFfv&nD4H5nH^?T%m!eiyN25IH{$q6K2Q2?%FoN_QAp-`-PqZi#(P>YDi*i$es{Y}O z_BRTHG$ccdg=AF8Tk526VzpiUMoEe-r8)L~?GZ>Y;?}Ni-*d$_rTH(H)xR5{q7<5l z5qs?8{Z2^x^tZxOy0XKuDZJ4=mJ ztA(_sNEL2qGv3v*Q10?gp%z-R(&O)tp|w+1@>GPN&n>r=L3PQKbkl%1Bi%$(hhNkv zkD%2;dhaFxWuKTemsqDE!LC)AYdXRXjMC&m1);1vjb$I5CAW-|5}{$F$85>AI3W@2 zQ=UeBck>3$cnTm`Rjva#?fud#McvovwEQmWpUBFHQkt|xe&grGi_{xnFaoXMNCzF2 z6wae-$>-dMS%{R9jUl!h^r1T&d6a&RRg7@a*=}oW`j7sLus%&P@_A1Y}|i%MFa zQWF+SeO8`8knORvE&YC1ZIp#T%-+4yF=&xYJAW)dpiiI+&{&9)&W0J;VkgQiX<1IN z%+3=NH*pstw%U*;oQa`ewHYIXiXx1$=E>AU?iPf;Lx0pfO^`LSr-{p5dkXF&Bz1i~ zT=6OYSXosG-se+M1Fxll(nR)uyDGOpU=czQQs(;u34(--4o>W1 z8j5{{HTN$Xh!CPEvi$UTy!pPJwDDUQ%opnL5P=whG68{16OrZuTUyLueuB9Fn^JUD z7#FOZQ$PqIFZ`}ajcbgDv_Y^|uAdF7K0$&s4|^bdJ|6JBV!!Twv9aEk;)BHj3| zm@^m1w=iC*BCDNGy?0IlWisKfy4w|K6c=RyXvgG!#@T(uGck586!aX?U8F~!DQg`3 zu$A}os{TV=bMT%v)jHLeOM5ge6yVuY3MB8tXZY|-_1HPs15MBn!~qw+7UBi8U-HZm zF1x?l5A^*9AB#TXz)gSw)T%$s|Aw(2sqy{dj|Y(V>q<(@IPkX5nnuL&e2Y7pDv^D9 zFfN`I<8>XvF`h$ zuCplb0Do-bVZBr1I&!wN6Rza`&-IIKt=XducV{+Me{LU}iBN307 za{8TapHgQN2Wt$u+TNap>~6X{ zoW;!JrZYK>-|y!CJ&@_!%e$+ai+gEXOFJtY3;Q(Jww88QHWqeQvnVO)pdo;RhLrDJ zId)|ubj?^XWoZ<*fc#xJ5J+7dc5-%Q(NKo2I61vHpcA%0-szy>Fn~5Ym+?E^q_d4) zvoYvb;obnypX}@Iz=miYh-&y$f2V&8Eh=i4B1t}wQ|TRh#Mk(I2)fyfxp9{gB;#Ks zGy*`Wx`0$oK$eSnk_i<`$`_#f$WLD|!$4O7X0*6&G#mb;gjbotr#);{$qQuTO04=b zmU|-s%$@FZia&GZJh(!1&_ zePA-zyp+#c#8^_IFUq_b*OpB#S%0M_^0aQ%g&GSEmO7c~2`$;#h;f9nwk2;SUZRWp zZ_3!k0vO`2VG7S9VGdf=IFPKyS^H4CMnyxc(zgt#tHqXow}>OR{{7koBI=Lm@kE6( zm1T%+=VS~!4L()Kz0>-vobna-$2t%WcV-Oh_Cb4({LY~*WrsoNN?EqP5&58-Vj<_3FhvpzT>C@?4^#m&yS^I~#O2rS zZHc8`l_edcnc<`BB|6)*^xeIV!cVn=V1O;X;Ki>V$4z18KZ{!i0;}xWCteYk) z`HI4}^bwQz)su|bs7n-$rBVMBytI`OUvZt`nHoQMZL3s`BM~KbdOEk_tQ}s6u&>mg zcg)syF>B2^?o6B>;8n85Cq!?+5r__-g9V3u^vC2Grv>%8t;Vy4U*^=9yWI(T5MOe# zX1S~Ai1-%M3VTNEHm}*Dg{O5_ZB?5Dx!}UW%RboCgdDKUPS|)=#X=Bv_B_Xl?Y9N8Z>Y%WXZT)zp;H7scpv!ZfJJ(=!i_}nQ{u!- z%e}$7Xd5N&D(P_#Z4{uDv%45bd)9wh<8a>^?UPmrc!jP=^8i>&e4>zC9l>HiTKJ-z zSIRjDGy6LjxkV?2G0Jjj32tfwdU)@+4qm<6I5!3~$6rl&&+>%_Z4VrWM8is-cfJLNL+pS-uoN@?bKWG0A zk~KC!$t5^g#+XFRAR;!D@3)h!GsQaShl6bkwI`S$!xAjjj22-`o~5~0DT7qRT6}p} zcsL4F{dwD@Ub!pH2s~a7Dmx6|L^FzOHd2TDC)N6p1{tPgG{0=Tv{C{>W)vv!PRKa5 zYz1tjIN)xS5(QaKEP#cMIgYiNvFWYb5^ae?IyMZqu&H~ZrXe{+p~m*m?LjwAL^)P~ zH;}nH4ml*%ra~^JIfmpik-6oICDIls+KDy|R<8E5-PTJkDA`EPY#|8FqjL$&CfB!- zdsF3HmR70Dtzaq<+1an)WB;=2=SG%F*`?`nIaSu*&$QBXdAx3_6^g0&a5x_b|;x0h<+3d*c$kQ<%;hB+}_gVEteNzOd_ zE$uJkJO0s4oZ4s=R$8p{WNtY{Zv2FHG>5psq^S~t=e~;Smwde{%TwhPsUdOVLllqM z*CtZ-D9NhTMxuSgrARr`cn;oH@o+(KS++ulIb12b@p}TYc&L}UxJN7hTz)52KSqe*JsK^H@5I%*=%|+zP$%k2_RBdhXiJ|c4Z9lgL@P|`1#HH70pQtH6-uy8&BRKQmlP?V^OX>HCWp2_`^~yB5f}ViB zQ@rIk9qfk3F_DRy$t4C-%U`xBygj>++uqc z36;0&8uT$lsxyZl@yN~In<^5&IT-?}avpvvWa7!8@TyCBGBA^^b3PNg^*r0exDn^} z5YD^FK@hL;0O=Q7MY;=zL{ieU&u?x*vf3tjVjaJDyDy4dqeP;F_56hV)>mD7O|+xm zoa+f{c|?PWO&Qjwp7&@}NXrT!_s849$DkgRS&T@>%&WT*@p5ZHf0L~An?2KZB~$9T zQUqb;gdv;mW~`8T+=L}qpP?eKMICeWA`w#=X~7EF{%jRgpV6;PDSFTEzjH>`u^B$| zYGi7hCJ<3Tk9;9}=uc9WUxC-_8w0B`VVE*Bo$Kg>wR8#A?G-h+_YKfDufR^pg1X>b z`P?1AD3hrUFR4x(gHq?0DWg^lnbG1m=F&(&R-b(Dm%#XSSb%SvkUh0L1lz(^s!O z7Rg8Po7{dGIQEo#ORJ1q3#m0LofrzoL?%~Nb17ga*8OrX1HFfjjYCf`xuSwy ziz&nO@_ef@IF%@xqwZs!u1;qF#tn%%z|ImJ4+|)aPxJ_srkq=+o7hFW)*-NpMZjSA z6ZQ+_9_{7|N)x1>__(;x>GQI|Zj6q6AS{yQSyGA6`lK=m>is@{U@1Ll?n^oW+~co1 z1Bd{na#$krdI@}J;x(M~K46G&7a!QK+M6^J;nCP${Dgas7{~8SUeDiUgBR_0%AHqq&`~JI;k9~_BTCc$O+)BB8O|z72Cmy zfqNgkA=%@jL^`m+)6NBo46Z^~)6R9J%i*(bYe#xVuCz(EbKkIWJsCSo7lRugt#z>$ zXO#v0M0LpWP>Pa&p+m?x)%cn?_ixkedTeDXf0j5h0{^%Yja#nwz(`757OkA8kIC0? zj_}rQJPnJWjZ)n|Qa$;y@Z~TpqqCdG4U`+QB)v4QcT@eoXwQm|<=wnC$_cK=f6sbe zZO-#8oNIW@6)9#jyK13x^KuOEF1E-*a)clyjI2*qx(_Y z?{;Fpxs0X&20ZJSJ@;&47GY;CA>n;T9M0$yyUDUXm#2I6R>BNv8a=cu%=qS1eiVsecl-3mSCeMndsc7v&Sw#%0S!P=c zLLRAF`ZM$=R@Imu3B6fWrzC91$soOxSe?Bfuk$P=eclCIQvrK!?g>25g0{G<{I>eT zYptyNmwIS8wSjA`Amai^4ukJm<6`#dNTr3$bQ%X2Cti$LzrfZkFqk2+w?ODPvRN?INa+vMHz} z?V(XvisqsE_BBPoLQZwb{fbW^mAZbO+1<}7aWfy|n27H4UTPqRyNd?VT{n8NH2W!W z8UBIc>|dsuy|rzNSK^>$w#Kq6>rM)f`PfA zFSv&%tW#0Hq?n$-prA3vr${I4p#BT@0ZfhBa))Mj#%`vMA~{v=ie&7B4mvJaD* zvs=%GuOioz@?z$O)TG!PAD`76`fJj9{J7qv*5T?zOluZ#t|GLy_yW|zd>iR0^ZkIE z7%BZ37ZWB-8@)3js@FlG{cQB1fU6Lr)(e&>NJ4=LUN;AGvhoq~mDJ@`T~Bsi1`w!_ z&gT-qv}NrzjoHd99XqP4#Hxt6GF)X!hoPB^bNivamJ#_@g+4Z7FOA%)a+OD_(q3a)7)i2d?qrrcJ58EKh?876k?p{mx<_i|9Gketur&DI4G>z+N$Vo=Y31V z?wOR`!D^g(2SuI$g)H>@oUokU+}uKkQGO5<})C&Ff3eeBYxWN;w#vezh_ZrI574l@z5;4iXIfe@wRuHE$fnY)2 zbcW_9XNXDkLbq&$4h7QSb_KHo;W#)FCz#{WaK**5SIKu0v7&8qo00q?t@Vn80EVNX zzw9l;G-yL!PnME1J~W}B=ZMNp0FVO06Kj7O7Htp*s7A0EqhNb|?lzR{%rEgok6)<; z=HwZd0q`C{{v6 zPGse78CqjnL@p61br1T*4zL@4D#(3@4s{SH&|Q(zH=ffO$n-*V&JiA1I-pmBy8$L; z6^Tx4h(=SvxrFjrjZV+opc|TLmUJh;QSd~(%lKLv8M5e?w(%)GASu6+P6OGrh5ptl zi?O?T#Z#R2tt=Ny|NJmkko+E=kf7Es|{Z_xZ^Lo$u)>?OzB6J&T&Y=cl6aP#}BLHTJ10 z!-vW*#5{_`)tz`W$mpxr%#t zJU*P&h3omx?Vw4MD9u3@EVhUp>j!gB?>s5-G3q4U)TZo>&-1V<Qddoy8cz zijp-CmXYtVijC1*%mad3ZS7l(^W`^q!+qpdq!&}DSHCUbch^2&?se`%tB*Aw>C5F+XPfm8@G<`y|YaD7<{$D(eN5nz456qc$CLR#d zO`jTv3ndEQ0=1SJV;N*KmQX|lDD~b4e~u^uZU)wdfl{&j(?pZU!Kf5e50W@@R2`2$ zy5=62{{@3(UeG-MI`&>N$4GTmPyU2|+)|$oOK~I-q{&nml1b}ajhYzL{B5Z4{s-? zT&T{$@!OvV*52o|0QG|nk1ImmvWYzt%8Hk$i0M&+{|zJVy=uFoyK3wFd9Y}h3^H)N zy9lB{peSjb;3lG_T?;W{7YUU}Y}`t4nXc@D&gBA4;U8 z0yYRz)5e@`)F{8pqF+0YQy|ruOXfQb?Sd)R6qPa|gCL`ft(A zGvBb85%5`@A9bbBduuxyvTMHzhU%GYUe{Qz`?4~P8>HDk$f@m2!_g&0i}b&W%1ZQC60Z&PB`w1%_dKinlaH|E|ddbcuXwhskL!4tBJ&xoB2=-wE{fBhGOKhL% zwWoFrb9+QOOGzjSeEQ$#0_sKV-7{R1XQcadKa~~6+os^HSSCYuY%ebc?e}n1mZ$(?-9&U3fFAuhk}2u2 z@1l?3-;BLj=jysav&>v^qq*B(GBJ)J)l@cM10j5>pnJv5prZ}mXRc_MC^HB)e2sbh zkT_H0m?keG)q|!{fssJ!PC9Z|R@r1uovaAW-Zhi~Ixk zLAY>);I?=qV&{SFX4^bE_+u@@dOlajzF>Aychp6ujCy#~ljyB0Ld_6lXsWAXy!5-m zIh+3vC@HvE7QUp2jaySWvxU@nuHXTgW}$!O+MmOjrWQyLV_7v1VYG|9Lnd;+yFpEL z;*^x2dM>RpHcc>~5G%C9U=P8&g6y^ym9+|e1fIEV(PE{U-WRdsCn5VaLjN4JZVu=J zINmrhf1BlAQM16T_xkp~KY~xjJ||FZp(#9c-`XP#kFs)3vza;Guq}ti*TW%0h;oce z$*mw)ziPfM&jvCVn}UQ-Fk{)C(#@RCm7u z`9}N0!#xPqDQRC}g>nE8@Ja5tOeES$=In^R2ggrhsNDwIX>%8Me^%&9>VD>Wkv37h4Ik;rwtIWD8OvSg zwsD1~&Ng7BQ&80!>z{woa>BkGJtf^D!7K{DaX5c;M1T91B!4(Pu4R24srn=c1Xlus zN5agpak_gLOHYGWC<#!k_3t}c&jxSf>@)E|j3vC9@vN4&nXD4d89>2`_{PjnfS;Y4 zRYqPat3e_DK6A!H-}UHbE%lG+dr8$fmAIQh#UK5u*e7}U`Yn#VdcSsfx|{29gAj{0 zr5+a)8AZ|sGs$RrvDs&@N`{J&UyZ%2-!6-XSr+jDYs&?zdZM4`>6R~dXwiNZ-v!T*!uPP9_sgNF<_`bzIOSOVTRG&rbeeq!%quf=;virHrkl3<4DhyP$9HE39#_liNBU5cXy{(XL z?nI`ly;9ox61{6S!?cSzRCE8RbEbnAK6$_C>erhmEP^o(Om^%w!4Cr)F@bHFox$uL zfLP9@VX`p*uSnE_ympyjm`?In)6xuqd^!`V#AG> z**tA|R?!?3W{Rj}&b@WN#I+^%VEE_f(e3-`T#V)ES1k!swhOw2*~TzFL7qode-8kG z^})#_X1>F7n}x#375WofZhJ_Od2M<5Q(OOs8s3Ci($9762mYBgq~r)}v_UWi8VJAD zZss{)IdW6>`QSK`%=RWFN_gVAw3C6y|D(;?=C|W>;dINc(EhXv*ukDo{u89sOlh#ZdvB==#FbW9tGO*=UzWLL^9IjwV`o(jqV&%Yy>Oomgx zGw^)B*aS6F=JZCHs8vu=i>8gk+I7h{+x&zExNBoF9nR+e1gRHR=>5j@Eg5m;yy6G~o43KWwuSxN=G-m`v zLF)eoUI4xj0AN-~R!S0x73AE9lk-?F4-YT=By;N0^wib!PbLSKCq$QZ4)v{I&in=E zRIazT3YLW;n&H|4$W&`ob~+q{`9U#>jnW^*>yhYdm+~nheg^Vl2A^i7W({!vq?v@E zh=%;hwIM_V3PbOodcSbr>dI6ILYRLwGU?D&y>ZAR+jRd< z(YJqiujYe5_4s{T@Hu3Iehb?6x27D+ykzzbc!lRa4{r0jczJPM*mhLAp>=b4Suo4J zZotjnOx~h93xEYkMUpf?U~3CUp>jQa7V0YvaqSDw-5{-po^Jd$=Fs;UXGVbxx^@fI z!AJ-0pw+4R4F^t{;)vx7eNlgpbt_xt#BkoJ%_F_Zq{Q5B_GRz;CbzqFFxpkuI%GVK zPN2)LZRVzi^$z6a*iROdB;-X;D9ElGo)7*XP_HJhLDkapkAm?Gbo{rmaVY%)Xh$lG zOUST)uCf@ZvPrmXu~E$CMlbEA!j@D?b8=ibB&(^76jWv@1|;d~Slu7$vPEaPDBJl*;R}^Wb@>Wr)^QSbTyipTJb6b$l_5HX(q@9??`2QNtdOc2TfL;ApZjv=36_73rh_KSjr{Yzs0C7?p%BK>{DUB4oLi5p*znFrAN`UR zSV6{?{|NtxEhn$=PW6}M4ZMtXbyX3(e-9<5q#ynv{`0$3^^itQk{5A3XSK(ug^@P6?AK4?X|I)lM^%7r_6gLJtt2($MgHhaIG|@ zT$1K7Yj=X`zpQU&yoq(MY8w7ZUB}vwU!Rebu^vyDk6-nC9IGl^za=hp|4RC>3lF9I z^rZ0)3!#|zdfworyXXfv8~$nC@wBnC{He??qfh?b2)`gBIb(rP^e?6T+fq?H{_~Zr z+&oeC+g^#Hof~#5&gDLX?__K&)WC#2@bT5LRA+Wk7`nHn_HuyJcjL~rOpty0Y0gEi z>zGUb7iL}CC-G;=F`4lR(UEy+@rnr9=2!jI8ll5p=k0j%S4L{xucO=^3r$}uZI2{E zlQ-62FA~^WWH^kbx*DRrK_ZQhKwe+|JFDBi~YY@MWyHY(Pz3klIBK@ncBzvV+ z_V5-{)%{)eN-aHDs_u7av9A1Is{-1;YhAQN?r&|hcfA*}&~zXb(Eg#ruJZo{70~{n z!#V%=U|cHy4^aW_pVaXe&&vNjDxm#CH}c{7|Lp2x5K7bhUyfco?gP+ z|1+s~DQ&9T_1Jd4eb~MA86*Zgbo8-ZcVj*K3An`o0H>_Jy01yv>T|7nJl62i>Z>Ja}7&tS$(%;4kVS$I=+!z%bA2f>rO=c@jzZZ`e_x`N zS0TGht$&^yw4eU+&r1+k*c8-tZ6DMP#af_VZx~B|r)%nvJTbKxsT({k)T0790~7~w ztwI5goXv@H-u$XImU8vg6gE&dV8|R0P%@QxHc&TsTBt_=>R3R`Hto1Nq#U7`Jvh7S zL=RP|jlJKyYLsa`**j{G8NJazZ?yX1>CQ#hF?#Xj{AW-ic!sNC;D`Qt?3SW22EQo< z9K{O(pM^#wiL<-gVe}jV@6Lpd?KZ^4ahQAbc{(3G8WI)D$-vxQz|>0<`jCn=kkg6p z2$7yLk&t$ewhOz|8^N=gkNV_{2Dly75LmCJdt<1>n+AlE+T;&U!pQ5ToK|XWyXqhaYx3G?1_Eo<9BkcU5;N@z9K}k&F&~ zz!pBBe1+mSv_B7TZ&#}^^x5$J_oGng+kvOz+YrJ_7N9Dyqh|uCgfW<0+D3CBz-}b2 zaxAX)HOPe4pHnHpgjUGpGlbaC{2vW&krL2L2U?DFY3i%prg1tDyB1q-5o|K)MdKH| z(ILjnnmY-HA9=8sJ9R21GeXuRh22Y3whJ2~moUs>jT`_!C->AIo57mHDyWLlp=U>( z@@UoU$nM$BT-p%0@0ez?8ohqQnWosAi4nmFV`vlPCEJNNFHp&s%dp$*AErHzi zgto7cP*g`~i^0wgaBu`f5bEA~bUkw`8L55=Av$Mc9e3oJmXkt_l!~ksj-9v)rgAER z7DDN4Y#mxMahm#EP3|7l|3{YHs-ty>T_h_rE3XJWQKwx+8pgm+Lr6q@*Le@4%nd2+PNwC2(Q|&WZ`ffVFfdm$;N`z&(KX@D4qI1N9Fe036gT8Eh5dWO3l7o?e*( zq_7iv>hCTRoq2ata}f`f(gI5D==XFzD1kNS88igRW-<~vp}wcr;L9>63sQIs&>+C3 z6`B08KXas%K(K2BeTJQ3NgC-K@i|9EkK%i63@K%aK#oh*%oy^@Y{3v@JKHYcW@>A4 zlk^wHS5;!*d+qi3mxdc{{QR*p>G1F)7y}I#<8q`?JGQDYSEk6kkK3I_$7tLWM#d;a z2yl3mXz9{n9;ETBlT}%!a0ZV9%*T3#E$Gd7A%m(jHl5=xcelVsx(BAw`ZO?5UR@|9 zght*$+e>|{7&(`lz8zb*Y0aLaQCLSoimK32TU!U zWYGpZ70FJ&fl>W_{23p9n~z6y(Kk76*6Rk#>anpxSc4^ED-Sl<17(O<1+HY7HhI3= z>n*28Qr*-XjKZ zqSK<$NZbbqpu*59W|I+&+^bapsx;LyoYGq>A$6HOqOZDbLKp6t!XLJ@uQaXVtOSBL_g6!L_f^WdI&p$D+{_a}7sOv45NhwGv z$D#vTh%0a<01N_%Q&T19N4jcNk(JIaYz21CBGQ1FW*MAeZ9$hhKm${`@2V+_5^QH# zOxqxg<6uRF_pC|wLZc1&7md5;&4ugHb7OiCd?otRypb34tE&r1Jf9*)4WnL;Q`6XL zywXc|S#HK7W8v7F`NzHrWOo|INUw=4fKBrUJ0hGLjBGIj{IBEU+39Xq+q-L!H+OSaU)`Oe zQ`FlR;2^_%fccXdU%;R_+69LOCdlu-S=$vG-uI~|Ua9wZw(>FLOWQ4C5~*#Br`i4N z#6fET-4k&a+t=%eG1&yR<|dI;lY2O2o1}J}+4<)xQuUYG!R2KbG6SEkF@I`ur;6PI zZq15#O}9iF=o9!0qeuONtzXa*RToM$C=(nU@C;}te7cOcILr>0VITBh2v$^kdUIXq zd^RWw-TUT2{-gHH0bkmcK&Z;qiMvUF&*aO86(Fn9#bObUtM@> zMJTKt(JRHuiVz?>q2TBmGY2#_7a7b3A=Bfnwv+}gF7a{Go7uE+^I`)pH?8B&rfmCM z+_bjGgN0dL^1|dSgu*NYQscq;e7Tj|riLpJrLLp zS7@@^_mj|=T}-yZtyI(29<@>{dM=)p6m=XSxCOD>NcnGk7uQk5xLpX7RuDF8l`{?b znIrPE0m#qV*l~Hex)d`8d2@ou&m79ope)^n#vZ9DdrO3npCusQ3>5vQ2lZ;D=m7j2 zBl67+X8w?!0;=-^1ddUsB^1XYb$44k_e#Ikr1dMnTflvQ3qSxpou_Hg=S7^mr(-hw z1mFtrJy2oT&N!R$zBkzbXq%8V6*tla;%Y`CDy<0HOt^;t0RmeALK%UC0(dpU6{3P3 zTq+wD*Coy!93_EcSAdVL%IoIYky0ZES3eX20GPw-rG?2ew(b6;fLWUdyG+i#9HZh# z>BC>+VQcB)g#nMwhZ+5gMpQ<3|9`ALsJ$Ou7`GE(6t*j6N9DI5>2) zCWlk=1Sl3W?9U)d3)&VmFy!44}Tz3r+-dn zQRP3Y4p%zg^thU!>)Y81`4>k2F~T`l#iZ+HwusS;VAL{ZO(Li;vSv~d-h|_fJ#it_ zD@xVhFKS&sI5V+PlMNpp*oRH@#Ew*KWL5PJ-1qe5>DwvQ7uk2sBjjPc`qPh9bulf~^P_n2BAh-$02i{V|}Ab@(2H4B*rzt(*4XXx4Uwp&;=9c0&L# z6rwW~X-mO1^g->3gMonJpaghSwloxc^T5W)&r}8hz`v-!v<&B(3QV#|0JFv@xn$|> z9h1N|L!;g&cAT-P#7qJ`yFas0xO8DNjb~N70v(6rsdT8{I<8CH0X>sOG~8k)Te(uL z+A2-5*m5begXbB1*t8co@@t*Dnt7Jmm$(qfQbRw~NR4QXic}e>M7&xW)w;+SMQORGQiifoRNQ6b0S`OXQS#_%P(o7{bpw7j zxN8VjaTl1lf`V!rn0@&Sqk9TUQj};hAt3gH+(p7DlP0lLY0_U0s$_|r;lHbSWbD{; z;K+$H7p~m6^C0KRi#G)yzWn$Lpwy2_e};@0Ghxb%ISZDoa7gLdZI2N8wy-8*gNw4? z0ekJ!>5OBJ+hntLq%|aX_y!1)uaJR2M?wNy0j-JJOf|(c%dIdj6rw?Z7OaTSM{|AB zfniJRv`N-FYJ6BQ0m}j>3^Z7kL26W6rB=5(8V%~*)2P`HO<}`O!;CP}aI1~7%VZz4 z7;TJJy$-qHoMPLQ*lw26aG*<>^DesNvMa8-rrdQmRJdif9d>%}wmT}_)#JBp<0UgDj=iJkw*%B2Sd6JXLG7I!hNWt*mWq?OfT@de;UA zHz9oP+LA^1yKmne1BUEbPU-7WPJQ)3Gs%!~0&f~n(GMJ95>Rc#er!M+qy zT@CfBsa6fAmZ++l3f0w6ubOJvxkW1VtT@&6HNV~YAUpl5>D$q8VGm8jzQk zU(k(&pAU!L%;fB0Q#fUv#hsQ=k*WCrFXZ3nd+XmPb}<>G=GwMrBU-eJ0$9I@TQ447 zyq{0cTW9UlzLV*3-_bPpXYRxuxx>DL>3-kdbhmG3y4|-m&04B`;P%{(+j7d~YWo)g z0&qZl11;OHqH5HKs9gb{zExvQU-Mxh#2XFm^2#N|SMK|lFJX0~k2g*CYXA@3qo3@s R;$T5nL-p?z%LdxSxC2frlW_n5 literal 0 HcmV?d00001 diff --git a/internal/ui/dist/assets/ibm-plex-sans-latin-400-normal-CYLoc0-x.woff b/internal/ui/dist/assets/ibm-plex-sans-latin-400-normal-CYLoc0-x.woff new file mode 100644 index 0000000000000000000000000000000000000000..cf5e2bbbdbec6939e5263a914a703f5a340ce2a0 GIT binary patch literal 22104 zcmY&<19Tm60t5{7eW<7b!T)n^i2QE<2l=P<{~n@3!XiLGz-r$Z{kJfIp8TK{m6KKc z#v*}$2)BWNG)JnS)R;vTl?8x+h^_vwE{H+*TeY;TA}s?D5Xr!IKaFqEv#5j6Q&i$t z0s|RLPy2OfO3VQ|wO~ zKK4QC?9L9Jn{$Iy4a$%vAX{s2%^PVrTHPDSs~d3I8!4rjSyeFH9U7Z3jAh|2!WJ=4dl@@SGP}f`U$1p|64a*z1<^Hg zXH&Wbr~UIGgSk^Ft9Neq^q$h5BAzCmDxQ*W9W`uQ?&9qy*=U)~b)&8eOJHc<#U?h~2<1eAS zUq<(NvPy>w@&$g;sg4|`HNTF*Cbh5|?2Ko|7WuJU?O882u$*q4W(Mo|S&e%Lzw(^l ziy+^%cixO)OkwDvA(0aki=T4d%a9z7n3aHvrw0`GFvLmm-8$sm&ryRH^3&ORrC(g zu}rz|i{di+$uhviu*emEjQI4*3|-^s4s?-DG4ni_K9kF^NQsn!#c}|i0JMP9i*bNE zU>LxBfpKB{)6xGf`O*Ec;}J9PWzMIUTXQwz*OAaMsV8;&qE0xScUC83LRO3&?uFLX zdlmNr&&Eg8qjzBIkh{yVV3w&v*N8hu`&d=uIsm*c5(JSXlyHVjA&#N!M4I|eamwF` z4vox#LppO**vSD>wVrs{9*xR@cDfFC`i^0p=&xRYf9-t{n))X$jxYrwaA%)sEU5A= zdZ$0Hcahf9`k0T|nBe;~nabW%j~Sj@wb)b`p=AB<8ZN5XT7_6sl%?Vx6MkmRAIyN! zt%Z2<54Ba|ris);n)+@YfejwDMR`lhNSx&)%7xAV3+w->O?L z!>X}@B7-?f%C?Ym&fPqTsd8)9uuVwR9IdjDRQV1L-u_2esnr6r%Zl8upj}AD;wcvc z@KQ<2eU&~eiL9xKiG|?F*wFSg6F*3KzrhtRWcR_7|qwRs!v7sQ!d!q`7UTc-ozWmq=(kX4sD&&O*DhfJZYK1Y$qqX z?`wmIPt|_qW(hwIRAQ{TibWB(slLo4*Cu-e_c{5#(-QRg7s7w+XAx?jG=}@2fYw3K z58#=I0u7!uM)k>f3m$P3_ktG<_YqJK(%dI%tZ?O zUj|dnemdX4qS+SXCK;x!D4%2gP!r!Tc7(T_xC-H=y0l(A)2sPsx;DL};k4>Xx#ThX zCtU4zhBhg#E$Ed9twrjOY+*DbH%+oDn5-;;#6mmTrdntYE6xG^70Yi@ zB)6S@#S7fgq=x4yGjrmSd(J-q%=!3Xw2c>$0c+h~{<^shhkqhu8gd8Rj;IBaI2TXS z>6OM3#x)jeq|;?!D=j4BN#ow*zVMX`XLF=e9m@e;8fIa*WMDK|zMOcikj?VGgMW(B z>hR`eay49wzHnrD_&DzOCZ`sB)br9YU}tcM8&ajU+(ywH*xXq7Ie>E+8`Jk=C%JTpgG zuNvi4)Fp@p6W~tT?jQK6YJ=pq3hjw%t;Yjr+|kdRa>q+jbePjnrx;U}MoSR6`^x$X ze~%v+Oj*zaZRbHq!<&D{z8aWva|`K?xO@&-oEN%M*1fOuQE{JP}a45PZ5-(=Qug>N`x0-)kw_<8DR2->Pc zK@uohm0hpC6NAOL&tAU@fo`oKJ`5|_kBW;LilCaBe>l4(i=C7;A5ZY02*hm9?UtoBgf$Gy(B$N+j<=@hm;oAD7V%93_qHs{_GPTnvO4A#VV2ZJPOx(xZAW zh!^Y0=OP7%$BL#~fSgY<1cPHLMeF=R2L}W1rczZM%@jPWcTDs7n=_b^s&BFph|D2! zx|!G2SRHKgh-(mWJ9LXZh|>jbfO$yFYDt5|CHna1+&edjs!omEcvr743LmG)qTBv``+WYAgazd7U5ELdut3G}Wf4I+rQMQOn>%KLK=}?oZw& z%R7x>-AHX)SHFln-eqRaLl%&T-wlb%#45XhBBG23vSYu<$->xFkNCGiURACQKwn)_KdP$ z3g}i>v_zU}YWmsS+LddyD7vjdSh_t7U-?g->U<5$&hPW8EPP^*bzCDt{ zl?SU({c%`|s4QX|RF&<7Ew`1GwpbfIAtyfz%J=Br>^Sgmy-Ji~A(ZQV@hg)6 zxId1ReE-I^@*N<{mcbjFJzdF;GZC3XhRNC@JqIoY8MHb->;pJKzPQ^V6_QJiXYGyNZC8%^+ud&Qx`yu)!OpZ)fxVh{yWGc zu!2*DfGjXsCd@~rvqDU#81T1PiM%1dv{_aY)kA#VrS23ZFHi@jPAH_PIL$>e?%BUc zYp&^Lm3FY9%7=A_6=e1Z0ten@V05pNK4x$44 z`s7dNTg+8U>-NP*+1pYRj17CYyStNuQ<#M|S_caY-rA4zK95f*ShdwQ+ulBZS@BcmZckZVL|9r-AfOd&-<_N9V^BbxTGvQG{J0R(ay;i?}z&yD{wa6dy(nt7Ugmho#t z4pKce#c!99I=fXEhY>Qfc*D^p3~*{UeK(Oe&Zh^8&Zk5!zbR3bTKThjuacde;cZhoPgp~5W_FG+dti*M^ka}Br``8_~*tdFyd zY6uCN5n`uHI=sK+iq>G#C8ruEwZyCx)JK9?f9)#Vmezrh! zmA}jJO8a0aJa$3u#|B!bQzUaK96G_}S!f?Sk`^y2&%KnNJrD|-9|3PJEw*GX`mB!< z>meU(e*(~l2s$XMm#;atdh}m5weIy6{(e9Em1csR95Z1wPKH?C9&($G-8`ELEC02hyWv=E zg7NVxn78(Ry+(VO%&uvWHZHsr$!t>J6W4J;y6}E$z?9GhZdnU=UJHy>d%7NDRQkx7 z*oxF%gT;$*p)vb3mXA2LwrDRzA_N=jsjm}39!kqg`X(Ur1STjx0&;sc}iOR%Iw zzhM@>SmPDVxjL@}A(^k%Ig29$9XP)tPX3j zi*8!V@lj7H_qm_(LLXbkaG0az<2rJ&r(}k_B;<9T!&+^Y4Acbg*95yzM`R_4#+&Nw zZ=tB2e&Quf8)86<>jpHcg*>eMiCQ_x{_h0H?ue7{1{L4HWG5_zvoz#`W}OJIHknk2 z4&z!C8`8ec!~nw>{M@$T(#G`ZbD#jpst$%VySL4~7mm(ny^f$VuM6xDd4)>-B9>IT zOCsa`Le3sy3|));CUN(_Bz76`{D(O{;_b3#PqIeLRj4Bx3?e{r2B>B^i>=273+*f+ znde>Z2VM?-m^ync1S;-9dznKwg$Kr5=TO5D_Jx*`2h9sN3F%1~^NGpezPRI4o4I(5rza4Lgv_l$E!c4JylPGtqEPdC;4`cI(hK?g(}I##cm| zzwgTP-@E$Sd4+4c{AWUS%>TC}`kh)0Egs{pel5lq@+inoMR`ZA3j6ZU>e9%5##e|d za#N_^VKS@BRK+^l2fHQXP15B#qNZKbuENu^e)2D+PPwM`m zqjIJ2(|PgqJRP(?1;g*dXF=*DgQ*ls0~x=hGquxmFPV)}2DI`9p~co!(b_-;Di6Jf zS*0%CK3gc`#+)3Bt&{CT6lT29e1O_O;-Lj)U(p&5O*OMxgtJ-<>`Lg^S`p@GJ(~B) zFc3I>;Mj=RK75*KM5uX{H%}!Ex#jTcY%l@_PH~f?b(q4K34?rjsl8xjndrF1g=9?e zHB)wP{o;Dd?=g$zYj)eR} z`m+MLp?kGU?#=K~+p-Jui^o#{$8weH^kjl> z&SoBt&EQ4ocHXYdMu4Y1-lgjWFc-Q1z?Jf-=!mZKMRP$l&DV#9v*es7W7A*ANwZ$0 zD((=KVQVu{2#(nxn~t5=2scPt!wimly>^esJopdv9{guD7d7u~C)xMpxJX@$_|xWq zOU`7Jy{AyJ%#^Rod#lfgZd&7FZlvz#{+uC9PYH@+82i_Rjhz>fO&|5zhss9ug281w#M2(n#?>0=jKQo%cfo}2Bfx^$Ly7hk zY1lV>PQ?>uartHYlV(_@V6&96+~_WRj7`~Dhu(XW5uqEJOCnqD3c)>_c$;i^Wd4#} zFnXU5VF#lAP;HPQXzoaomlx@I=xi|$QVey|GIaHG*P+oY+!3y*`=A8307g+vEiA&P0?#6A+U zA0M|TPQ>kf-Vq4x5C;reu;pP)JgBNjt-f=X|6AAz$1GH~|5@04Mx&x7gCZq(kuNj# z>bTZgw*TEa05BAN6_RcJPDke}*JkCieZ-`s))hk_sF&@p;tZ(RMqh{gqPdc3KP_Ci8+(+?}PD~8+}?{Oap&Hz2+ zn$laR|J)5UBx%@2-}j2o%-0-~6$_yqE>s)BZNI1s=>;n>?z%<|ZQL@W0oO|OU%#1T zI{@c-c~-{x=aF9k)JLao|8*5TjwpCeK2v_QG-D9<;;|U>K6oI9%;<+niZV zYB(9fn$>;C<<0K@w7}TqAB($frZ><@FY`^PxFJdRnBflNXa=kW-(19$@k5T|<@(V{ zjoXyX2h9VEQ$=qRzSFxR3Dx3z*kC6TQ?d<4{{){T-(c)v+oS!d)xFdJjRixRBTo)t zqEHd1@!ModsVI^u!{5EmE!ou@eEV4TNH#_MUc&+F8=jo*5bn+IS8>yw2i`_r+W`)x^qR%Rr&+@Tx~-+s*dYny-!?Ds0^-x*k^L#r4Nt@? z%OJ&rlDQ%59Mb97{khL7bTat>5DWY4@_IX9?em3mg9S;n#ycFTPyTU9IuuTs>#(oM z@7V52TY^S#0D)OE8buAPQ(gKc?9FCCy2af=^i}4N#dX()xlMHPisXuD zpA(gf{43;|4wt_+q+?KnH}#|S_!Go8%!1w>$-op@+DrsGTTa$7b?<%9zP#bz&7aa$ zFoCyL^1qWkLjD2|sQ+KY_@lmm&kIelGV8FiQnmb8yki=!c*S;s7JfK0XUXOJaY$B+ zJ8o@tRC^c?@Bqvr<_+5HD<&z37z3JVj zz$4nT>@w{`=!`^Voa1k5_FI3Ga!9x1 zADia3dfTfyMRDz;wpQtH*<@yF`|gr%SMMh;Ug*i>Jej|wYKz3S!4h(j*kzVNR8cM6 zRj5se-B9+G5q;JslM70A~$|*`^Nj0puIR`UNV#a zMLllAG=!bYU^u-gii~764rMi-nx{p$=b*~>+F-ZXc$v1MPri;XJYW#Ab&$O$^>LuG z5%n^T_C&aYGl&1nW)mqi?JngW!>RMXI8-R*-#C=~ioJou=HIu0@(x{m-2q8A4D-c8 zn$8nJUU0h5+)?jU-jaD8K)(-m4?oQQukhK1*dtto{gKp$#+s zsnyAbebadhG@syWg-AjVFcstvsQOqRW|1Kch!lOuD*d-Z3ANodi8&8uj|J*8dn%h@ zZgbT~t4AOo=t1w!u}qpRrdEC^L|YIicoCcbJ-BjZ?|j4Y4vm){PxiY-)j8{z7Vp8r-~|P7z)a)hCW& z!y#fLB#om-6TbuI+^((O`1NMzH03FCuiqw$CsLuY@QKrLKJ{exL$naj@gvYw$BRme5a!%;ANZr~2F+?EGX{bK9@C#%jE~W-d4#A|Il`&W2@2_pW6{ z)(4xw%<9B?iIA&?+)$4Woh$&7>{(U=@w#<@?fxb- zbcnNgd`0@1&TBK*Nc@A6SrdM<7Qq^cmwNkG*}JdgXE_3W*Fp?}&#qRd!}wy-r+3Qr zF2rDttqHS%n_mUVU{2{a2zylu%W@;wDYZ2zxOZhsF^1=B#Hj=SC+SXyRnp_fEFd#f zw9uDAh>P;glHK)gB~&n!jraoiJ>z3!=-%PC6yU=(oSUjR$ZcH@hwY4h&6BY54 z*4byAuih5yjU5GC)mGX=##-;%9U5F(8=Bd}SCfN%d+~cU1}O$svz=y|1uro#$1fQ# z?_L%@B0d^EQeDbCJXcVY^}6-#^;q?%tKzE&tNg3Dt1=i8zOueTy7}<)FQ?|Gkf$<( z+lLF`Q+G|&ws*Gol>I1$o6t%H$-)>~@qZcphg9!P)|fcMx*BODro`bST*OF8`xE@c zp9*Z=-QO)bBs=6cc(%x26LGI_qij?w9>Zf3^Tb-uT6mj+VVEK1gOVegllR%QuBbPn zODkW^@l^-)7L)~<FT7_d#OweneS}a4u1mC zw%@fJ_osKvO%1uW$1o4PZ$=X-BN#-Q_IRBfOnhOdE3H#55XKN_aKvvzvoLA;!oDn; zn_WHRZupPhXr$CAz}2mDH>>Pn%l7C-e^DQ}BK!^};kzhnJr;__B&7_L{&`1WJmILC zx|g|2R~W4k0w`oQ{w1tawrH`hZvCfXPDA7re6UDjQIkN>aS*#-DS<78tRI!{aOxKu7qF}Vz$!EM*J@s*6;`9d*v)hw6DH5f_!IdG#F+#gDJ#>`q!fnG4>0HMs5*aA zc2L|VWz~Kwe?e3?5y?%*n406W0m!?n{FM@}DbOmgV)2S41x9XI?wEewa5XU|qr2}Je zm|Xva`RctjnQ)1>&f~}qCpj*i_LOw{mNi>{EWSBwuAbvwowhTa5Lv z)zL3GqOaQb^Pl9omFyfGXoFagPQ0gxstK# z-Frhf6yu+-uR)T3MS8Ri@zf7`jnDN1zMtsN@t~~*pp~0Ct`pwt?e{9VkcI9YZc@0^ z$^PW9y1Xm13XU#{^inJ9OyBgO!usDn*<*%#@HWt~_kyWLq_GCZF{;kMCG}R~T-%IN zOiYRRMGyMJ?yyIJ$wqjK-G>IHfp>!N-xU0%Ve+LMr2MT=_3vbimY)Nt&bh$25>kOs zNu)09j*1@ze$2jFk6*x3=z>k(^(_W^MtXWX1~qym2731PcaZwA5>>y)fSH8h@x7e& zfrfmqK6Jget=3`cJ39a->#c_xM-x_3X@c2FnmRTtHl}SjImhnsuvq6A77+D;F>WI5jQgsu}TmQKqE!O)!uB|-1i z85A&#SgP8LD^aAd&gJ6$8|HI%I0{Z`pR7Di)|0X}ldf?`QOW413u((dJBl3IKN~X_ zNL4HIt1r)-idcEZJD$Xkv~RbY-nSH}T(ycM_mZB+-`X}XlVrvM*^}qebpgI44ErC| zM3t5t{!T~N8_24XD4=@B)<{#5?+L#X0-tb)aBZjhE))Ukelv%w+q#s{M+`olg z-PR2C^r4J0dwRxtdKyAXBmDewAp{t=jBE6ncJz$)OpHy84NUY5Z1nWRAjT}|`TU9# zszLgJ!Gpeh)zQB?jrH`z^^jHc^fKY&4Gr|yzzUGjQ-SIQ;avZzNdoJw1qPN!2CC`s z{TqS{1OyHOgrnBa7o6}jmsn6ZIPRW3D`)nw-Z$HjlxBL8J2~DzJs5@}_=e=;mq2(B zH-mUM%FoYP-Jglyw!9}8fpFA;z-Aa3E!W-jTbrys4gW1~vMwHrNuX&pgEt^{6CmtE zx(tQhA+rYYnmkm7blO(Vn zLEnPG3#{&oWip>{kecVXFf`AR((Z8E-4p&%{nB&HK=ro{H>HtxZ*-YiJbuGb(UXe{ zNvEZ(6Je`6$b}WH*{&8%YeMp@QfX)bsr0SI?)`T8vcs}C%cTR3v+hEyeSaQj`s(L8 ztJRnNTh98|O0w;`?M=We5g~6bkVLMZi4ZT4kghf--@W{O+B$LD_?M502=|NEC7HUB zvW7eF^IWsT%T`QTSzh`?SFE(nYSKegKVcZ>#wm?!yC~etp%P8oy01lfdGae1`N^NY z@E6g^6CPoJs(|o#rQHZ(kdo^h!{CQyN|wvGQ42vZrggBe%QBKQEgGWWp1U4hGl-jBgaWeA&tjLS%ywqc}20`>#6M@ z{#Q(^s;w#Z^T<1&n{wXwBUfJ?5M$Dm?(Z@;AP^u(AgHe|Ab7X6MotJltl_w3Papyp z0enjS20@}(PGEnqtRE44h`;kZ(2R%cjK;M+hN&H{xP3HjB(OJHLdLb%=mI6(f$hquB57n_rpGV5up4n$Cj9N_}ndFSNmi1LZD6=)gv2Ay!5gFKN= z0KC(-)#kis7Bf@Yj-ah!=|n#V`NVAcRB97wMP)E}U|+hEJFs_?Avuz|o_bYMl(*m4 zq)9B}UR!!}f3{ptDi)R1RvHM|+QvHd^(-6KSE-yORg0G=oOIfWR@ZkMTD0ZJ4qoSOHSzS;YnP_owbH-RE>9fch4G<#QACs z$!Njsv`j*Sjnheou)b-lLaf4JZT-pin#8>SYmpZm1tvpnD}c7o`nw1 zfG_LkPzFUO*l8Wuua8}09L`|}%}keisoh34@5|EAH6rEnV3xAR%hD+i<;pn|(a78pUjo6$quJdM-+D0d1h@;;O@hddHv^I~S|_z6aS9g$k@510*lVn+^ip~R={H(*d))=0#|&PJ8w7NMTB*Y- zi9v@gJI0VfUWAZ>5e4}D;hHR7UxTo^=pevWiccT@ACQQZoW9tru zx&SbD%aG#y&X8pThJN$flBwHJCiywA1ysUnY{Z^sJt1-)2fZI`n59d?ai9Q)Tna*A zi=ui*(!rG4*;%!#6*YR5YhzN@beu_hFuY#Q>)Sai0tj$4QM=j$L(%J;9o>UtA~sJL zNYo)aL|e|IW71r=u-358=bJ||F>Q9vmpDECfkWqRROphT_{(4^#pv5Dz_9f%< zCBt5h!b%b{R>!+YguVOy9z)I(P~>0naWgR3>c3?sH0{jSfFBPWbd+t4SQzxBm-eAG zy{xPF*C)asQ*|+a4R_*pPg`f5ILa&pWy&bFZD5|xi)Nx&dsfS0#sIlw>^;w(Pt#pdS2Rp$i1-nLLkpw`8r-4 z-hU=-v(-IPzM2s8EhNbL^mN_T=ODZq)Rgev8Cu0ZpMX#NX%oPn7i)4I+_umJ95o?~ zE4E4^_leH5wNf=m3BLZW(1Sn7ZN`=3(n(ap<9q$16MlbU@50L9_i}0c1^R+`vgeez zDO#ZlHwfnyh=_pu5GhP+K+FS4MzTepWTGn()9ox`B|)?x#r=fM(^r+1k(n8QVG4VX z73_mJlN_Zf=)sXtKACzx%-md{yV>U8liL#)bNZnf%rGUV_9HSvarf~P63Q{&8hF%# z93!qAo9*`<1D&Oeln+PN=lubWt58wLR_O@N^T%v;)AW&g^cyRd}u!r2v?&K z_JD`^4Sd83ai@z@(DvB-1(-e(dR3;h3vTXIH@vwWyO#C74_vA3HA2=1YF_o@MV@K z$a8uNT5;$j9c$Zi&k2jdD~YM_*5_D2B#Vsh>bCD8ldel8+z%C3;pHD7mS=iWPuS@D z<9^pm3$3NrI5_J&P0Ug#)?7a~7UiL~wj@NRLaDS+CS;cwPwk{0xjvYrTqO3gvXeHo z=W!FWlQ^AxvIM6bJJa_yWEz2&6%hY|%4m(YiM9Q>t6yKUB07G!eRsXUc2NFV!*XH3 zFiy(*Mxhgq<0`utz1`e^tsa~22lz|8SBGyTuY6i96kjE-s(b6_?8>8*cxY~9`h|mM zFY^FrV*>)(^pqqdpu`y&fKKf2hb!rhgjJu$iIp&1tEyK>s$g1oWy?DK5>qV~inE_v zacV@$VUR{L#-oCYegU&KBmv1fj`7Suzk7HYZIQE)`624Em+z^C8^lxJv_R0-7A)3x zX1je!mH^SOCM{wL83c=PD{!)V`U{tJxBl3s&(t(`68Tz!uojt#uW0bLLv8Jc)S>go z=H^FR$1#A}a>~iC_i(Q~b4uCXDRr~saBORfs`*!jEx3l@pJFCKi4l0~4G*u^OoH8T zN3z^)Pyj>;R3&XwQ8Pl>;nE@A)>G(uaL|jy8k6a!ZwmJvKe|iBBX* zdAQ4Zu|E!u<_(zgU^Yj}*IbE5l92DSh~PC8(H}nJ`_JX)U(a*NwtKdD(q{48entQS zwdC}bZMo39c7Jp)yycwfU0gx8T*-@hjJ>%pi05j+ZAqOl zAK~1L88`z&fbV=ySd=h-_nGWY!ecFC#}?zzEoa9T&WoH@c~po$WF?C{tG(XSCB*PB z-bUwJkC5-Nl!2>*r|I$I!R3GyS==VXK<-DlK@_-XDRail_))30@FonU(RvC?om{EsCt7&8 zmvm%noYNyh!<@$4)M;CQ9X%K1O~j{g0fLmp%15lV;Qp{#aKDiyywIv!M*gVw$rOOb zQWkzXtDyd|$sRaE88AAfTqyE{B&`VVRBa5={uZ_7(DAP>j)>18iTM*)hGu^l!3~Tl z1co`WvSM$pD@l53;)K85_0!A|118<{Z7eJF2~m;3h1}G&*%Li{LpbrqiF6-zSL85= zU$4Y4nA1mkWu(j_awVYsBCNWNoRVyV7b5_3Az*02tn7x&7C=;8bX=2?3ml{XmSmDii(o7)m zQ0dB+u)SclE@yfpDOLjEj+9sl5=z}8*7ogC zT*EkqV#0-E0`Jr6J&kL&)QKs zjuI{;%Elbr6o9!XlQ*>RCyoSKsNA2r6YVo9~-o{H1{oEaU*>Cm&B{ zwA1QGaJ)i<#oNaTY~YK^`s|2P`jGvYI&0<_3Em0HqWN7IHbmONOQaC`RR6RpU?5#j zW2LZ~85}G4E)*fjO;@*3bSDe;uHHS6>DUI2a}?O021Chfo83TW-T#_#bI5P0UEiop zV{_NA(3qNW+|{Z@_NE>%YibVj;4fnsG(Cgx4q6tX(K|g&0y*YmrEah+kvu~}?MP@= zV|z17z~lCwDR|C;%|q)rDAlZAGJJ>tMVuvLI(0F{o|WstUnYFv5TnI7>$(*<9>>e7 zIL>y+P)rY0ETpa3?R-PB&E4PhntV~}IA>G8c)FE}v$ErI5)Xh*PKGs{Djk38q?(p> zHu-zU=#X(ln4~;=G5yjWR!KxKmZwaof*iI@J}yn!2WitBVNru3op@H`Y=a6dH>p>8 z=_b5+(@OryUn`@i7IYW{S|B5Kc2M!N^GgiV0vyU#p10sJR$ZiPXU4Q!C4crzL-YK8 z%p*yrxJ>n|RKTxcxI6ICgi=sGF=*_sMN32pOtM^o5B4>8Ooo^@EJU%zOef#4LQ85s zQBlb+S-yd5R0!gybB)cWz@df;^}N-5Rc1BT3@3e&5*r)2Q{ZBV*ITxFXuIfqUAd=S zLm^7Y3W2NhbHQ#tsAy<6^k7UzR}NDD+i^S5o(sscYM>lm3h0-f4r6RVRWoK18jV>< zy?pBgaV-5Gm4UEx>(N_zKEb;C9yx^l4=4;f%czk2ZXjzX_R+=qeMpJC`%K_!vz31q zr7H35$bH9d#*nM>v-7GnGz?Xh4VDFg~^RcI931x_q@=a##|Hu)J#k`nEw7} z6^a_J>NVRI2)3vjHbHPOQF0I)ZUbczKp1&jq&Md)6NP3#kJ2e04;W2i3`8r@A9trT zeOr}vCrC{9T;mWjYCS|`c>p9%NxO-L&75M+ZH*cC633O6^G=^%S2m!UYFBx^4vtHK zA6d~s&Cv_`E40|$07SCd1a(eGDNV~;udLlO-A<22!CN1gS(Rsw^RmpOTbY6)ZwTr* zpUWp^-4_uuD`uEzoR}~;!4MM<`n4!^D44A^CkJVzWH_)_~{CGTC4g5StUZ968!lZ z01Jsh?~53W>*KcBW_dF1VPZOJ(`JYJAlela2q@eQj|YG5T=nK|_yhO_BnsUygNU8! zGa&`E=W?nD?n?~n@FFLs5SbopgB$O}pHyEliN4^FP8H2$ z<_BKf0nBaGJ%Rpq*8QNIVNkl`GbX{pU&q%K_A00boE;gSm{<<*vq!QSNk}(pwqGoVi$6qR%VO{hG)9 z6=9D;4IN*i#Re+cgE(-o(an^402Kb-iIjQ!R_srncCzix=|Rba15*V>YPwxyX}S## z3l43&k9Gs!>aBCX54ab=yB&NCXLhaBa$inwbgj~IKVI8~jvs{%Zgntlb8uL}LJP5s zs$?miFJfc`A1qxf1?6<*VPk*UnaYAF$~%n+&hJMnjA+K;EK-?jq2@>;HHul~xTglM zPeGJZS%~gZ*+^>aCbDiUvaFcL43GlY zuVA=Ze}6^9YJ^x8;aL6=V97yb8KB}hL|JbF7+hy=&5zW`MTk0fYGkfU*N8X%gWK1+ zaT?^WW(qVSiBY3_iH)77{R5+E3ty&6%}@z#onL#k^dZqp8y1rr(KX zu7%C*dD})y&B?5j=;+`!)K+>U=;s9$$MTK8b;IplH7W$v@?&W#0^4x+tRNp665F9A(9nz2+ryVy9OH~XUgx}45Z!Q)15LN3Q{ z@*Ft8uU!P#L}};NShgT$9il(F1><v)_OF?Fy>n2}}lZZ~)Ai)eL3BIf}`)(G|TK({3Q0p6p{gWxKTahV4k z>VkDe|A1)4(}8M$|cxVP z3C}gH=a9Wf+S9Usd2r4GMsY7l5uN3$cTk;hF_@9W^-AfGS}OoG@M(RK93{#O4&II< z`r+s!5%S=))nXZ#=~#m5IyOC+iH=qN;P`M)LFi$p`+kkvrdE;QZu*DFM+V5plikc8bi)A7W8ZL%6vW#i$4POwxnwWnAFDR zTM_Id66O<&@^*ju$euPI<%Vz-;t9|4jlw5pUK1BJaFIcyDMD|%(de?2EP@vm22pJJ zSw701nW)#NQ_Y~iyTyFnBeg@8&Hy~niYl&(cY){9{Zc23We;`~Ca@Nm)VBk_# z{n##9N#lRxKl^zm9Fx8FDHx^ z@t6049F)V|YSZIl6D7^>%RrBWJ)Rqgl6k4Su$C=vYI9}k?Z&yREOUC>dlDl>@;mox zwJNs^;n1%oUf|TyG`=0Y3RCM~#odScJb#5fX@2IC5XKmhC`$z0OSs*3r{2RieISIM z*f$8J8%fCCYB4u%^AuXsykb=E8z-s@%NF#>neO&1`V6jj)z;;$mqvGFlxmOVRyAu@ z>!9Dw=`(CRDNC;vJ8f5j`YK6;IDl92Q9?!OHXW5{hhXApWQ|+lL{U$Q9V}4nY=w3H z8HdBAS+ZS2$OGGh{t{}x*ON+r*aW_J9*lU7BzVq%!y>AydBcgc1l;Lz*^mgGjC!3z zl1xXuUFc?0I{aW&rX6tORMf=YP-$zHkt>=8`v6B%{c;#X=U_IImXQMAxJ+d^A8e%g z)TXBjBy;%oI!UkHCZe!TzxkVZ>wwk^vU$dt?nB3K z)zG)HG*{-#(}@z!myeE~ah4_!DskhQ3k(Jz9ny z2k5C7PF6t8W$0@a7=BrXzVreadw|j&+(gxZu7-%Vs^$|OL;CWREhl!)pQ(|v!=)1@ z!8E(^e6}1q3sNFOZc7)FBiV3mkQH~gHzN%zw>u5Ptxy&9{#)?BTT zNtCK~b^V5!3vp8-z|1Eu`eH&aP16RQ+O)i-p{-Wj*wi4c62xn6I_HvGxOhg!;!TR- z_>+su2bX1c2PXL7Yw>|z=~FjupVkkz54t+HCDP;zV%igL6x5{ME3|2CLVt0iL9DR# z8jZa+uEcM)b+ny*)6|-Mz43Dg2hWZBoj5$>=xFn*9Fl59UoFC42Y4;eEWuyq;Zz;GJywC|B!N?iWV~^7myy}m$7j5u zJfyh&B+aL`L0>)(jCe>B?;&p$<-mx;DCRZsN*Rjh%FtITphwHl`nYC{>U}*4D4?b|e%n@YtSdy&*O# zs1o4IH%h#%y<@b9f3zC%%ybCS%T)3q!?V=rGU=3iJ4;m01Pd$lWBA*s1ib-&&trRHk@eT$W zg|aO%K1nXVQBft^kW6k4kt|zppR_}{wR1j6?)74HV4uY0aiLCz*{!tqZ8Vos>kZ`wYF*7;+FNJiA*}4 z%jbRTQ>pbnS9_=7xrHb8o`bAWUx$hqtG@ znwVA-Q!NrF=d=Bem9zcC|C?+-`Vjkz)2I8v2y@wJoNdZ^>wb+YLGfG}`bq`#Xc>AO zpr>LuNuYer7YA+O@jh3E0)`UwIDzsxTlCif+R8y$**x@M35uu+=)Q8>IoVPe3Kh^7 z${0`u^s;i>SsBr~01SHoRt$}lgv&${kq?fgKg7^Jbl^{0C(su3XZG_b!G0G_vJ>@R z{@%0C@)=KAd^UTKUpIQVJgyMDeC!ElK@J8QD@1~*5n07hZ0E8}H2kXOG+AL}>$ZNyip9BMS6_`rdQscL1hGH#f^N&0tEjJ0 z@XqIqapR)rM^-QoJy?Pwssg&N+;&c|6ovwU@>y9N)WqZcEP+}8Iz#aCP(*RiFhC~( zZ>jCvXP3fIAW%NbiL;G%-ZlaN<+GT$wl$4K>rQ$ zjQ&=d0fc0~wd5>7^PXOe`K84GKOdltzDXt;P8!XScvSHSUyQ{K_=}e+W9F{a{G%#X z*P@y*ZE#+ehcu*$NBkL*gJg=U-uA{FJ;~@EAu`ZEM|7mcY~cPxXeBM z!XRJv93j}gxV-eD?`9{|nb!5!X0z9>Z_TLDVnwJy?Pwssg&N+;$G2r(!4&D4)H}Rxg2BxcbmKovn?)2h{*HmzE<*%$G|JQ1!S{OM3XO7R&xs3KzrrP#lJs%qM}bCQ!C0qz0wY>oB&9=qkI_)7hpp$kcjuRjUg0+04t&=jR}@YYcJ6R~DEKP<`~f z507_rL43rPo=H(H{c`QD`hQR!BB={$)pwPjLU09&+#Y42^0q!&6J@u&iof_d2q=A|9T?p zi0kvIT!WzAZt^9EdYQI1#?ao55<`i=bh6nw)`_ILu0SXanaD!MU|@s>hRYNO4Y>G> z8#rHOxQv_o6Sv(PL`_iBlRVGQ?HPfeK^P-GZUIM2C)_M%OTOUkJL#;0(U?-*-6@mC zXwRkz8wQ5qhRb9HnY)}uN422FuC@97Hm$uzQ0*`}yMEiEtX8&g#UTx(hiJHheCGuY zyMZfCONje^NwQTqzv3AaEnon3+hc}&5|mVDGy4-mz47ezMLl6RWR^*ZmSnmfe@ANQ z9Oy&%t1>Xe?+PEFVRSz4ck++zcU4Qd9pWq}g?4dya!Y&N0-u8-1hmQN?e3*S6K<) z75ZL*H=}>YzvSl5(|^U;qcS%s^z}_Gjrsd(~4di~q-M9pw0aM;zJ+)zxeFBfL0sO>HS)*U*DqD zw!npZHGaL`ui;Bit4gM7GA!GDBvUa8y>r4NdhJOo-%&$~$dpdNZ-tr3jSp)4%y7 z_PQATonWs^W2b5gPWtyWh9{EaPgT8#jJxHByjjbYkv{+3H+>X2R5|*D$U&Q?1)W|I4?vvIco;tGq#`rT!bL zT^()!0096100T318*if>Uk^O>015->00000))Y|E00000i#XZ7*uuwj0%mQ!8qmI;w3ePHlTTIeDntn|zu7S|iutsX8D?Wg&uW z@(!V9_Cu&-!A-S7plVBTu;C+$NK{K6*9ta095xk4VdfkgMaWq0y9ZzC3peg7lgDVI z0T20v_VNm?=|+f=+pwzD@Z_^v zWjTW6GBWr~ak7OD!dIOz?;JtNl=+=r-_1P~Ne+g{QWTkOgV07PgsSmKP?fxfo$t^a z-YOPurXRnd`yt5mC6N4ngpaUM89ush(=*P^NNW4?y*T(NrryGN9^6cq*q!g0?vUxu zZ|EhcXZo}mtqpeSJEl`)p?FHF>C^A%8`V8yufAt`l?Qr!*-i7STppU(H4PX-Ty`^ieq_hwdc4p6X*q)_M$pm*>>!5_9gp=E6t7LzVh|?wtR1XBtMN`$M54$@h|u< z0xrlx8lkjMU1%%}6vhhkg^j{q;iT|dl*D4>**Q7_% zSGkouLcXtLRB9+Qlmp5q6;(wwgIZthqRv-0s|VFP>NhQgmPf0gHP(7-leI7-wPWQ2w(97+$^%i+seaz45*YP|1bNpNW z=OAfNGiV)b3tk7mLop1(oMH8Fa5y2{89oX>Km=+q5v%~)!@h78+zj`?qwpNO4&Oy| zlr3r&O^psluc99@6T5M-xNbZy-WR|9e}eS?00-`#Dz2HCbMMO7GQiB(xniL&8T4baBA{uAE{m_kGKegP=wptzm=TK_`Cs*q(k~S!@Zcqe|8*mkR&hvVagLW?e(mBhZuD02 z77=iyQ{AV!!#YoBe+FP@PFw&0c-m~i18f*T006-IuAFV#wr$(CZDzK&V76`BW^4>~ z%r<84L;z_=HI;#o9c@E|cG~NpqfR=9OuFc*o9=q(sh8gR=&PUp1{i3N!G;)Wn6k<# zuY!sysjP~ss;RDqnrf-7j=JipuYradX{?E+n#m)teDW)xph5~OqNq4!toF zF*y{MS(ICDyWyr6UV7xQv(7m#(lMoFkyUdo4L4G5Ej$R3VvX>}IvZ@Z$rcA4vN}YC zXxT(-Wt8la?3V0~l1eD$x%EzXXibQ*R*Zd~m}H8nCYx@WBWCz#rrGA0<+r)!TVP&@ zwa_97mabr4r4={zs7mvo%cTY=#$UJ`{Jt!zT4@t zD-!(h(?q}gw?AZ-B2_v;@NmFD06NS8?v&b|&e80J?uH>C8)Bfz&qV;2OQ*+vFGHa9ee16~LP2QE0+;eYoPxiTc z-R!egwx^;53jhT04+dTU)c>x#Pygl!|9ke|{r?}hY~H`AU1NLy z`V+>+>>!GW->Mi?IfkmhisufM+qX)9t1<(;gl1EcUh987*Y5GSudPghT-?JT-X z^U=?7)HUsGr0k#Cv*{ivu74zovRS=ujATvcRu-rr?Di@#*C-y&c2e3Zm=7$MYi@De zH(B=fhj*u~%$dsdiccc07L;;tUTVt0#mY8YUMc>sBv^0w4Sxfq1@kPkk z3R|yxC|YtYlE?R5kNEDoSA7EAQNjH5sURqpG6?PycgFac@5+#t$k8baUJZIt3i7>$ zzOS(Gqi#puh>32k$xHqe823T?uxW4ktN~~Y!jqETHz1{4E>^=KCP#2$oKyv( z1oe4|uBGKWlUt%RAX-M7+uySrNPkZ`Z>EwMeiZOni0{uGYfRUkAKD%HN{(=1;Q1 z>dok<<>Iaf5}THsK}@7bFVLrXwb{mD<}cAB)Kn>bbje88DG<=}OWl0B+*I+tx!&Bqk^WS6TYVF`E_`)jc4xT#V{P$8XJH8i#~}Ow4q5`9)T%&MZ3%#f zB!&Vl*##+iBA^DQqz(9oxPc_8ru-y6qX{qSEwZYOS;4S(<-6;f-nH6UV)#gP-O7C9 zKH(6eMl%zknX$^-U5;5o;-~+Nu$ctCX%PC(XMY!Pfd&a{M-k_K3B%tP2_M4R7xzLj z08Ixp-?7K$J7RW=)XpEU`k8QvXa&g^b`%be7!G}DiOZl+3qPQeN!wHSux9li2!kCGGg3NMK3n2ku5nw_yGK`woM0K`9{GRbpVyK9S3bI*v6YzS) z(422SJjKp6HQ9yk^;!9eg+MpI;X>pd#0WrpOBnw8$ zi0)eBeT9Kw=-=T;kVnqzM}UDe7RbN3GA@GUR{PP@*CLj@GcXDbQyh5Jtt#o52$d=1 zY+>al8mN6E(&R_jLUP1-gUZ*pbFb~zfP z1+dj<1y40-1(mwdzW3gl@!14T@>wxOLbNEyq+-&5l~zA{ka3Q=^I98W1W1vHk_<6f zgQh5CC_3<%$li13{%9v}(2FNC*-}kgR;?4{`eZ;m5!^6{YoOgj#)uUgC?3{C9v&uA zAwFGwLSCkJ;ED!Z^MZsh#}?f>@r+2b70PK*^q{_nHaM@*h^fD_7d{9(lN}6+ozD49d4VAZ&^8q zT$CHu(Z<2=ZcqMb)|VkE6kMHDBvFdnN7xJ`%mLm!=l7(HmV7}p0Lo^heOE*<#y{EL zZf@SmC_V}5=w2jqB$M|58K!!+rr=pt!j5pkt@)67Ohm5zeh{c1T9vxUs`3a^HC#T9 zo~AbHt;WQ}QQ#Y7Nz*c1J1YHtJEWGe7W);+!wL|!a*~r0k8$^dc}{Oi^`B3nP{trT zclGPeg9kE0c?wh=+L%mQW~ofJc9{0rqDd|7)&1(6E22V_&_u{(xC4FP{vz|RRQZ|{8sPheg->OG|(Mp0=A*6Cn~#kFO!M4BIts}Gk) zj6^#)8mbDESxBbfL};{CvfQ*Jip(fXg&7hR4?ykM^}@i3=B2H^)Kh3D%Fj4`wf z$W{D{(8*K^sVb0>T}!+~7CDTr-=r9yn&RhP&Fw2O*bi?x^wJL5iW*Nn5QlS`(N6>N zoMTnlE)&o!zg-8(uyyTVYWn-AMOyVrP)oHc)eg#)ffS6TwyvlMkfNBZ=00@kG}_gx zHmRLqrxvzV2t={^Sv8y>H0`~sWh>XGy~NR(EIo8Jo36!0K0odK&|8f?ST$@t=WDgN z=G5Sk(?AFan+{DigY99&)mI*2sk30mC+tvlXLUtDcw@9-=%q|WP0Hlj#Dmp;pGeWy zFH^2~NL}g4ZK!nRy3-$Vrw=-tGOLyy>7A~ha#9zkbaF1W$dTi5zuAY@kn|hhZ6^%N zWyZOBjWOU=JpF>5UAY-s+or>eR@X9KvHEKvHn$hQAf>(-IIZPD%b7ezTa8W|(uK9+ zRI3Mh-fSr~H9k2(OXZ+5Qy5oRQ&bU{BS+eB19aTT#)YSUZtPzx@baC-2b$(=43GqH znpW}t7hG$P(SPsNJ&q#AZiz8(;8N8?q%k3_Gr?bjblzrf9SVL^)Z_e3CXO6oHaMb? z8?6w`^p~g-5b6UVm6*}3f9198e&j9Mn7goCJY&IXBt1cW)DKl}FfR|+Ovp!G$+4z% zVE!<8RBY0fsbhH3z59N$Q2QJ@O1k>%p-S49VV{I2)^szM!JAH_7>F4e($_t+Ydlc z#Dh`+${+zudz_|dlCwQ>t172Nv#I6enq@7HRhA<#w61s$%2>gMOMQ40Da^ft0#LsR|6$ ze-WKny|C?F=pR$pBc!X4Dvv7UllurhW%w>BsI_Q1m|asFBe|RV<=J0<({7V(PJgGe zF+Au?%6e&B3w8mP!R?7046M)e9;|@UxBTZHa-?84)AWjggP|TldV2ZUG_BL;b^y)KM zcuMdRUF~YTw&XvU)QFn`MVh7Q#9_$jm%3;>aAO%q#MIz&jB1udEzc!VvSwJ{)N&5O zPk!2O2ZoGJYW&a^`fcyZ@#`nJVgmb^TxaV#0;ka`AJwpG3?`%A)Z|6z73u6VdDoCl zgT+qYQqMc0(-ws{1ogRI?c|r4VueSI!A$I77^|76L{wNou}!1R5c!3O{9p`ECSI~H z?mDMLm%9>I@U4kljcT~)9y2c-(3VLcY>=!@QGyRSCzkV$6M(t( zX6DFe4+zWhaZ)Slg2$d{CFG2~n;jn^?rbN9~&k%#=iFI8` zS&k#RMZM`uCx@e7J3ZEIMIMc4TwZ?{Sw@P;lv>mV1vX3=Fi@_F#RPF@f!z-P7zsJR zsEi1+E5vTGo;)dI09X2@Fyd9v>hS7wUzY}D@>&x*Q82F`SG~sg_Odm__<#&BbPi->ddNUbB2TAM z5CBXKhq_thk_8}0*I7LlD>7jypv!QZD8SA|#GqA#s@ zt_q-=jDeOU0-nnC^!Efrn}&z>%QQ2!aJw%G%6GtlDO|9>&1uiYlZJLW)x|kyDn|)l zVVfuVGpi?%o}qVdgQA+64m5eVeHwb+aM8Khve~^^W)fhIDJ~~Xzo~CV(nsFnYl|{m zEEb^^!#JithRZa^l-n;20QEA~WP`~y9Z-sYk6*{WRISfNTxPl?quA5uQah(9A$1^W zB}v1`xe}~JzwVJf(tQPsD8lMD?%O5X7aWX_>dssTnR>jVf2$k7uiqML#}^9Nkg7tT z6Ltg`1IA6h`QRF`Zzcmwrkl1~bCNd#%=jmZ6#C7&6$}%enTQD=4WaU&;tO3TwK+uJ zjXx=&wxKM};)iR%Q0ZA1&hn~Sp=Fm1UXNL5wX1CzuiA8&$xd!^n?e_Cy0v*M#2M8=cT5#7Z`^L zLFrm==s$V}6b7Zrz?$-rWi_pu6CYIpeq0c7pO>;SDRZb1<{BwnbFA*_-m-eEBnf6b}Ya z-gzRg;Z)YII3&TxX1;Uz##`^+-Z||FA8DDNXk_SW>5Sa!EAA21X0^oHjov`&7~CFQyj=R3 zO7(AHvI%JelgSSfLV?U=Ws17m>!rT(tThv>y>psRZc$d^Q$JYve-4!ruf)m|0z4Kl zhQ$%HiSvIMU9a(Zhukt?f>07z#6_qM?^CT2M+{X_%MiO#&XMAg=BYCiO_P4uR7*(V zRgbj+u)T@hU>Ptj4{iQf`zzp#xDq#rhrQ4R!fm-K&Lo(gsJh)IJMT^3QqiwO8dJ_tZl>j#Lih?7()7c6BZF69J4 zFv5ECJdF|llYf~8X|4ir>0;OX#bvIgal?)y`?J=b%Kx5$kJB5*(pXB_kPP*xx_+U1 zRz?AJ1pQ8?P852Y{rbK91y;y=d&LF+Wrde?!N<2>CM+Zh0AK|30|7Xg5(k2oH(ik_ z$8_I_HZ`B=vwSM8i8k%`oS+m|RA_T(r%j!>bZmPbEuIm=9ES}G_a`vnORY&CRR4Z1 zx#4~TGdSB)GYlc#M2<`{A!lgNLZyaNi?ip*Ef#k1!`(r;%|;>5{!vsmrE zo}JZyqh5sl4X0yh?_!rifN^kodfLL?(j0%>abR9MGBl)ni~uyT+liDsOWFTRh-3uI>Dg481mKTN-?+&%+j_Y3V6LS2aYCr2-PXyyecT^qau2!Snh>dOC z(i-78G+08^6Q#xc=6(tla%F_0A!thBq>gcPQBaV^`Ly4gB2&3n`vR!e?XjqDC~~X1 zb^$>wEH06dsqghwLOmug_@GVceD@oDcdv{ffdz_A*k&Dcabu6b+-s}DLY9CKW(TNy7B2U(i-0~?2#f-^)gGMhB zeN0AtnbL`-9ahr`199MUgNsjapGc?}8Wg`1=}%HGt|(Vs-P33qoo<5-eVy-zTNyUq zAjm73u$1NPdJ?I3%YEbD-yHE`IKxVBe;UYb5kvP#_cX3{;e1U>t^`Zl#>sBA&E?d79ts8 zE*W4ikq%Y$TQ||CrcJc%64Re_txF=h=S{lhCV;{?l1NIQxx#`ZxiRfuIpX8#3w0m5 zZ}B+iz|PLd%G7P{ykRqB;OYrf+T;0dpbJotWok|d^&KZ%hzLr(0(F4a`d}UGDRX&X zv@YSP{lsXa^22D%HL*@K3IiG_j;RLt?xsS-u3Yr+1VTK6{T#hdoqAl3F&>N{}C6TbIu$2KZ0aq&2FPU zwX^o>`H1_;Ka3`s(`wZG>=eA6;N<@w(9qD5S8VYin_9oy?+a)Ve!GJoD4o3isIZ6I zA{{^`5W(-{H1vIwtHU=0{vY`(TVCrz13u!v%iIy5jtQfRsIn?Rt+US@VyCs>Bxs=3 zw|f{s{?YOO#uMm|ceVjay*n7g@JISAx3@PSH8!%rQ zaU<>T_N%-P08mXR4c{ zCoop1d$u5h)^MlZ73i0z*eBEd(Q{2on)@0lIs{vM;aD5jm>sSSaEiISdb?RNL}1+h z`LlM?Yi3FAsWO~7bKW`6Mat4F*OeaMp6h^kx}L|$mZ5&Tah-1Lmd4?|7au`9Wug?B z81bNbF!_{5)JoPRIs6b4{1AKe6&FutL%xZjTcmq|TkT+e>ATDg-XGOi*O}H;q|Gsp z_u!!O$k+Z&Ey_QUefAvji0?45e_z_e*S=&av*786X-WeDllE4P0;+;*8LCs8$@v=1 zbBP4oCn-IeK3pPrs- zjHnWRi+_f0(^=<3hlt_5c7?`hReeQc#fSuo<~l7**Lj;kr@#F=w0b%2yQ@~CTJnAo z$qS)DB%K(_J40-$^f9bAVyKL@CUN=UO14SqKMg|(9>NgyIQY=_ zMkb@qQZQYxgH5@mQO@t!*AU~im1(gDuP}D!W5bE> zzmM-PCX6t|!D*Y%VCPGlaZ(>{)kr`aFRA(EdYeu(VpOg2P~&nG+9dqW6;Zwv?rsi( z$=)bnPzqG71BV&xkZO`AiO>4<>Jpt`yZ~-~v#C~mr#nn_r|~E9Dti@sRf}ny$`OCa zXKd9vEVB>D%H*|iK=afJdxImFT=Ox8d5D`Km(1{7LxUos2^>)U?)5eFqcyG~6TdUI ze4e4J!|(fBeaFj~ltO9Kc4->hYf;GF>&N?W#3JD`;Ogr*kFai#rM=-ZCT9fAqYacm zF5V>^x;u@LX6TZ&-U>gEaf#C~?ep0s=uO>gl(O(;M&?1kfDl z(aoCUZmAn&n8comIuRU@#s`h`hEFahA_zZN9R=HKeoR#cncbfqNT=ge&D?sN)dZX` z%GT14Rgv9#m}#rS_se=ry1Xj&$9qLz2%eGJuX=Ucs{Z)O<|VSD;GTZeP8b?WvoSBPd3PT$%>J^OkON!(TNH+_Hn1Pu}=B`z%NEoU}&mO+=gz!Rxks z{5G1A7Ig~U@RF3WS5Ef%KJBI>eoE+lt(BPd=c;Cg|uXA$>Kjr zTQz`Kj_OP(@)@hn4&ojKnNH!)$a3Gk{1xtZG9DAL^kEmWJiD3o-iz?@AChzBi9KrJ~^d`{VC1L_uXs$SV`EIhKlfQHo+g<~V-BZ!;XfPhM+m3eDj`px_Y}%a9Arqva^6j(>wgHGUhQ+>|&m z!gzZ$I#}A2q~~n^kYB?m`rxe&@&GcYC46^M%<0q*38v8~peEdzq-+aEon6o6F&LKw zcBs~Ji;}$>=t>!DxDgz#KDTK3b+iG|#C$c^6TrB`%DU3Ze>HC-`Y~zQrI%- z%g>(=X*R9tGGjJ{^;!$j4SF}LJ8sXy3vnhZlPPzJ>DPVtR?GLr-rXzbcTw9@3c*U= z$MeRk%#5S09{QD{>#IyRN7wp^B*y|$=YG1wLwuBg&Dlp^iI2Xmjl)W6l^O&`r^KRD z1GznQ6vMg9ov&`sVMAOjw-`X0Bx@i?sETZbY}yQ8i`}P{>FTEB>hfzIfIP5G^}+ap zP-2;`%YZt$6Y{2vP5ZI;lkReeY3`A4PBBl6JRjj5|edR&p9&znt`+RnBy_beY zJM&uQry7qtRnNUE{W(%YE)Lsff}_T8 z9toSA6qq10$u496Ezps=mn^hlINmrshh;RNfG1yVW>{`{7J+YR{)e(p5_P^dcjLh` zY@)4w{3 z!Z4M%iK66puPj5?dlnvl1-}U%s(3N+=h9B4tqAZldKB%}{@l`Bs1}cF457Q~-KkfV znN@`IF}P&VxBNNJ{yWhhsni{notqEL>?1IN>Yu}Xiqs{S*JTfMy(Zo;@x6{F1(i60 zA|w3M#RT#z%TIQ@_-Z*{T42Od;3bst=gF120#RwjSr~$b`e6Dh(IZtBt9w5O8Wi5U z+o^XO6y{f-1OEvsV(m+Q_TiJ)MGU*?oEACn$m392Ku5|K+D0CyE!L^slyA zhTZNgWg%mlwQY5A54?}(-w9eE^XyRa6oP-w7Bf{5bcUiv2T@83Ney&520fO{?Neax ztDy%6XT304V|`P@5WOxCV32|x24lJV-{qLly19h&KyerkkqF%nKkg-tB|oly?a$R# z2cC9yOb~rsc>4_igaN`J5a7_LRBV_Eh_-Cy3eJ4m!%m@rMnifHP8l_bq@alrI>(N4 zLoYjueSam6>NtdR;h&)+2#0Z?=OIKMHdEQ&U?IZK@?b0kSobE7Kwx(xhQ}4fUdymF zQu&G&J2V)Bcsmng#V{+RoXq!TXWy~id)C%6F_9(zSmAevc$4`>scCNm`;`3s zNuU`TP1mPYDAbd-5eU2#l;0)gcfbnqMi({)bz+6#0+R#lU&V?Ha?RM6n;tsy!Aaz#x$d5{(!$Dx+P>#p#E} z7L*ts&mf{miX6JB5E~RmRgWu$F>y(nV9gF^!VBpVgvVm`HG=D zdb|W@K{2Gy75)IX@&w)Vx%&=UXz~fde!UIv4{-c`a?SJQzzRe{YU31C~DqMkmQu&8dFG!&ro)GUl+PF%oZZRUMa9nLko>?_m0y6-wp#Qkt=xLRx zcxR<@i2j>pfzlIR?L73%fTm%O!1qV<97s4D@9&6Wf;kw2TBCS)Il4~^%=SD&o};$2 z^!T-xxw^@@Tf-&|N58g@+~4({+37%5>CE!y^Y5xZzL4v3+>K^a^sxGN`)e?-e_;LJ z_Jg0}5e%zFKU>__VEePyzV}@or*W2m^0_SDi^DK4?gSsL43AGA{=0Q&rugr*_Lnw2 z12!EI2hnqaA8rO-FFqW(G2wLvy9s*;QWQ|P zH9W`c#FUjRvYp2#f1wf*VDFQ9_e+8tv4H59%uzU{R1BSmD4uvf%f>COvZm4FdDt5C zk@cIIq2jLKEO_C#3*n?P({ zBxPr4P|%3S=M7~*o+P`SI_)#2fN7Pk$%1ZFi4tr{o)B<@Yl{`0$oKiJDKaUt1EjZ5 z5mI3#C<1|wuT~#xIwB=+-+5Z4DyNGoB|6WbMQLOWK^l-P^rFk65SKH+09@M=s z)$%%YxD7-unAS}M$1_(|RA}dB89R*$qms@@>w~NfK<<}ZXXXmwR!A- z)C9RI+m1cFdSeIFB%c=-PGXunrb~txCbwM1Nvow0tMzYNi&0rp`BmaklkirAJ8Mbh zu10?lR*ey0dDHi|&~_hUwv|6<$QU3Gbh|h{jY^I`ux;%5rmec0B$&t4nYGZgpyo8r z=(sbftDHr@sCy~CpVipi@8IRV{-~qIn$w={YH^#UrnI~ zlruD?x<4c&E2;70m$4Ra7<6ua+5=SEh-0k=eYk?Ba5a1A^Qnq-C=!|XjvNDre=H~d zMX8!R&!AiTeGd2AGFjK^Xy7T_xPha{nl1w$YmHvu&^3_XQmB%ex?BgnJGn4$Gj1Wo zJBDMSK4VI~Zd1h1{h*v%<|PXv7pOXP)lqhyB|l7%nohk0TdZ4)bj~A0!qLKh8fnM* zOzMQ7`NFq#y4{SwmLOX#M-8Ycl_$ZGuxfE=xYyof=4L5uNe7?Vi&u{>fiM=(a&jl9 zt=Xow+#T?%MPHiIuD7ECa#U7d$!s`KLb`C6C5pY^6z;pNw)!}@ZJBb_Z; zS$*fZGl{)4rG}yfzXwG}iN{C$bmD}fYf+KvBjxl+ua(UIT(Z%+=DlxKTSxF8(;)P> z-fWc};Q%@SUD0$&&8juk?3Rjdi!Jj(y*v1Oy%qn+A^{G zoKY)hWmaht(GjW6JKVcb<4i-MivwfBzj2z?xR!@%RzjzfoH*^vXwj zH!jSkU;Ow!GAR9L_~%&3@?Sv_Y}4WygUdcVCeROuPUB#`E8dw(&Gzy8>ZDzXdOBHB z*@HzoI1?2B)EZsuxYqsj8I#3`7-VteJ^In0v%&`0A0rC0M^w@glnj^5?Jk0LHIDoG zIumIz_h)OgM3%luG!{*ddr(JlTXb4~vPz6v$O6SqHXXP@t~qW}UqARVEYs7-L`sS2 z+PJ6q36^Lj*Fb8_H(Am!1^8FmWN(hJlzbl3MMT3FlM{#1=<={k-hNj?g@teNb?{Mu zs5G--@p*O%Zgiu!K}py`4CO1w2g1|`N^wkP=*kh@9scERVk<~f86)HfdS)^Xhc7tM zs2VrYH7?91Kvm4kgb+-K3DIH88*C9S5Eq064_dPYfI<{IHVwmf!z}wOw3AP z7*?#E9vf;<9MlF{T{o)fIPcYx$B1NNl)F@Q0%IOz)OgW?y{3B33Eacbh&_HWhv^%` zLy;NPy_Bp3KI6m&vKy}3RD~0sIP_agcNaN$+d5`M#f*8P%igWXH7+aX$F!C^`oUGC zgh&?hj52D}S=9-Tf>oCOf?nG;Bli2Xax+YG4v|`KetEy4591G8Qx^MyxQSrB#13fI zmXt3?@?9H|*sGBADC3Bso#?0a7=x$kGe4nRij9rSwsWahrDNL@JnUg-7 zs?pi=9*Mkb-z~+!Wb^n`&<+|!Y|Si62a(?zXS^6Cs4ZrF?(;)FKwZ&^IA@y&g{14* zge`Dn{sTK^EqmsAnZGMXssV@y8o1omlAzqzd%{wJ5=TiEGTOn+*L0n0ZNC-KoZPRDuWAJ)|*S4kgXXx870DvUJ?h% zNKqD!7x(LT`vlR1TH_UA!nTysbdcByvng&dE|=p;Z_SYC8g1Y3e94JOl{qSuRIr!H zPg_YkJKvg3BLly1$J4nj02lapvS>OJ%eizkrrIr0=3NRl%G7Opdh}q?()R`et$%Ux z+MGiIXO-7f;1`R7S%ImI4uMF}Y3otAoVH#Q^`+jtZ2U1pDQryH6?Vo6<4}Ydk8`cV z33k$xE#9SL>AwbJ;M(ZL9QvT5F$1X7d2tL5k~3PE*iy+wKiXgzB8iU>flLhJTBl!G z%v#Gzc%e~rThE>*S~T_K@Me=V?x~5+bU+mrge@K`RWo6Qp8CnkT(>Yk8_4_pO%&e%J_bJG20gW3u^!R`SLrpVF8L+$8|oAP!( zkp{W8xapXBa*h|q(~94wfv|izsN@uX_QXWglCHrxr+9gA!jHK&0~?m4j+bLM&{{$r z_#sKlm?OxVQ9l04KY0?JSYlIFA*u-j6XkE{hJ#Akx zmL*?*dkh32Fh-(^=q3w@jk;GXf>xgG-wff_MSf2_0c{WQ&`{(a7RO%D8SlU2`#9DqV!zROtV-r?^jSl5Qr>xWFVr5Z!Ch+4XqC;(H#-im0Ouq{hZxYUsa}EB``aaz z&1aEEmea5mt{Po`97ASS8cq^tFDZU8#O0b2VYil+V601v#t;$mswK(qn0B|39xtBX zba84MV#BaSS5G*oqu0@-s}ViRJ(wJ+sn&tHday7{N#LIdAD9Zw9idqv!cxT~t@jy~ zPKxiZkN2^??W~MI%oCKpn;+7S1(gIvdnXs_W!jA#7{90#xE4K!p$uyp{3){fg zef%8dv0_UPZhr$j&QjWvmmE^gzNy81WkxH@HoZ~>WT}ST)BrQ7?r6xXLMx9C)j>!Z z=IyoUFf8V#8@aQ}aFEg`n)pOf0 z5R+)P@JR7Pmfi;bylsH6i7cD8?9WUKj|6THR(LOBp%`$ZbR+lWI3>{WF{}u>mZ0!; z5Gor|k-Z^q{mNWvx+kTrm%UA{m{to%Jp6}-GU|#t zb`Eg`4~)L!hO}~}-E|JdSGbcYT}7$%hS8$40kylh?ZUVJ+_2Zyb}^gD(mWIDK=u}; zrR6Iozi|SEUSCP9O$mZ&@M?ifxcI1p`q5l{pJY!h7z1S>W{&-dY$o&yp^3NJXtd(; zqaRr;_=pHY6H_I@4hll ze}s)##89g=q9=e*a9Bw}P5e57={AlV$h+}(q0*J^0wG)vE@;Rqcqnwep7b)Xr2m7D zk*gwO)GiuG@A4@l7HG|tNsd?XdPtn{G%ta`P5e6{Q&t_i2VjQ~XZd(8?}VJz(nN;j z5RHepRSvXHe_Az85uv8+^%vp#DwE}Ct6nC#4x=lTO!O;Rl9eK$NvBb^HxuJ3dbI`BkB&CzGVvMXxc+@TB?m{X?a9HyJwRUf3LP zDCh3Wr3#vW%J#TR=|fUqSL3xKm~m9z*W%SMN>!C&Er&kUhGKB&%ZjA-Mm&oipUt|0 zRMF2OkZ^v{AhS#%L2gqFUiXRTj{g`RrfFSB)30ql;Mu@uMF&<~`XLSfs2FZynWFVheg>`}s`3p!f-& z5#?~?ci=$~!l*K;PzjFivUtKgRq;VmX&rhM8*aWuWTbeOB1vtC-sAX8#8|HZcNvs_ z8P$~p)9J^gqd!91IKF=aCxrt2t_V~XPK@eaK|)_C&X8Y|#(iYm;Hh7<XXY+q~=HH{){k#Lzu!7|3Fegu`R; zb8-cER?#4oS2%N`1jBqLv|sCt=Ke&r)&)&9S%HOo5(4F9c$Wb@0~CjKt?5u?Py{1M zx24p6MU``4+Bi_UH78m#^U$OZ0lW|L)*rUo765%d>fTQ|%otZ_%TA?NScW+B41D{r z+oVtSY3BXV`QU@hMG|Ny;`}Zyj2}#!TQ`2jfb%5dVMEpk2tzRa6_ggT!fsR5v}U}$ zx}@6rvth|_<%$gVFX%XNu$Tfz6>5}7kqMUM z9>0izbr8MUUx%l{mOf#pp0T)?BfN(@A7Psw;%H)t-vgZJ5jR~|yW)SZvbj&L4h1t- zIM_a}rZLLp9~qsn+g{{Y9EyDc_N#X|D#qIRdFdKmwEe|-o7=UyNq*%HJ&E2#ZLxVc z{FZWyfKh+gP)`62uuUa$GkCKD?3@X^0z3(`@@-(kN|)Y1U1icWpM_}`ZW}2s-ZAr; zcZjyyL3a0fHvs%C#*qT2n&4e^kPID0vwBT6?Ws5YXyr>rX zk_ju8Xglb#%bQDza_t)x&=s1kJhQA-aE2KmeUjW2n=df@I>oE$D&k;4DnH67FFSB% zXWNiG@acthQ_%~divX)h#Xqv~yngCOU0y0cwAB%N+U&IjCzA;LafG?t+x)qpw{g7_ zjOMN}i*#Q^h`*}sQFZs>wfh2TJ61Tb(M$1_%XNpy{9W~~eD=5I-g)cDQozGsS1=&J z|L?A!oi5wU$}TrlsPjiilmAX^(Ml-V6|lzvJ|I9X(4@qhXJ`MpmcdC9ICXU6r0vt` zaO>nNvTaaeC?Ma9KR7~hyD#Kl6!dd;!22#D4B_7icauaC#hj6F@JEm(8L6EC8tj%le$teWg-};*2H~Xe4nok7X z^$1CC3W0IDGHyD z=M-{PYl1UoSt58?q~az0N@Hi;5LUDaV8$lnc>UhjJcBRAZ(e{1v z+szm3Lu0ySSy+v@!HXCx5;Ex+N%yA_r~w&6#;FZB!oj~#=x8mN!NyS84fy<-lV+dR z|6c&b9XjGDUh}L4T91Ar+v#C-Yk6AcM7y(#sfUfAx;2Q&1yCKj_-|Gj>o1YxpZtz| z7$pV=6JS5Y%!8l9a*q93^(Sm)8o3C_!jQ;CBuo}il)7?B5gC)k1zSJ2|9?DP*Ne!) zkTZ{-tzp(=F1br4qO-Zerc;)e8|U?P7389cnX6xrbAfEOpgFV8C2Qw*!gGLow0vVx z0y>8SHlDJ*-`F?5rXUBM0E=CO)ei5hb;PI6UKW?cTQo-#NdogiN@OKTH%|17;OIO& zUD8}cLgxUaBA*51ph*QsM|h?ABRwP1_f1q)Jzh#bKAlBZ%( zMajF@d4y6?4f~*V5xvoFo5xsRZZk7CSbIZF|JoLEj=-`i`#fx0glq^|aX+~~^430E zW1)2+`w%RB@!8(9cK4V&OZ4}d-ZOUBm@A#JI7I!5I>v0HSJB%TW3(}9s8s$JZ2xDc zQwKg@kNd?1i2e@JZi?~JWOmJ8(Sl;1xb*`AX{S$>{n>@A>kno-rw3E}`>V3mRM8^$ z--GV-!uoFp>rt}>CRULbf{=(-fzWtC#@kRKzI)e*iSNEcY>s5oA~5aG?f!J*KV4ka zTLpW%wkoVBen!B?lKG&~Pc7wCq3vSrf`>)iMI?A|?~j_?4i)Pmu2^W$rsY#rEI!}h zFOqXYD2GHde~`xMCl|Eu`AL)0p)LlP=T0q}7PT~41vp{xS8ZOETOTx&7Q#^(z{qqw}wBg-+P7YETm)e_JSGSD z@Y0Ts`lS__E#9X47ARzAUg-b6A@Sc=X12`*eZPN<$Iu_DJ=D4J*cEA&bDg^F-Q7s& zUx><5AMvH$DYlq|BDKesq58}GCZC@F#{5@?+GACVEz%mNRH#q}irC2O6Qd*@JuMGe z=htrjk60=Rw16gSt4!pOu2)gmQe|l==FZ|9{*#CasX})7iKGy=!tS0CF-2y$XH=Q0 z;3d@oy(4xkGPJQXP#8d-bzc@M4NtEG4o*<_Dt9(fF-{?_AZQH z4$i_8H_xj3A<)@J$RT{k!12FBwymE-e{zw?y>F>Ye&nd=%6B(f#9GjS=Y5dWc-uk{ zTYYY=0MylzbU_Lm6c+C-g(OQu;xf+D@&!rz-Wt)xWpx^EkAYU7Ei;t+3vw;t@mEyP z|0m$fuPvlf$89CaP&(f;0hwu7?W%_RzfS$VmT0GMwbuJxr9SF? zrDEAKB4rN&xLxr>^77Cs+?D@-`LZGga~BR%@>#%jD;h) zlgAwu%>QJrd#<)NjcqT;7d!ODP!*Fr*SRp-pY13}eB56~p5t12&5Mfc6;(l9n6vBS zw*Jz#%~p-g7TbBOz%Ud01#UgGeCLIE$|P)P$?}cR!9rM7(!k&hb^KIdZ~u7zULaHx z3AHbo%8}?$biw(BTQsOBMM6aSpr>0q&x2y4-Sg1ep^?bVNU1D?hX(%!f`5rrkZ}Kz z2!HNOLRJfTNM$zG`UA>mwv_Yxjdf;-{1HRP_>fGx4*x{l$kiCKOB?@4GJ8_0S|{=S z@RCIkLN_Ip@(&^b@fQN~GOR&f)Cfx(0MLfGyU81CwoWB^sW6|(Lga%LHXB*1(r&ODNsC@~_z_OC9iEUf3^g-2W z*yMyuY%-{mi^OK5K?2cGOYc=-@v*1`R0b9?Hbt47c@uj|r7O3nLAqC|&Wq?dF8gU{ z?c5@sN+u9n4XP4s29OM(F@Wq=jzu|Sa4+W0Q)_zR>Z~&#O(QEN4pS3GjW~u*04ZfQ z17{pf5FaKM7auL%Gt5XntY8EKJSc$WKS1xo{acU*{|ASG!P5#-h-wx{_d+T%y;{cr zv^(lv3QDYcwXWQ#auUYwe*#j;8)J{&DYVyRS|V}V`5CURMQTfxDLPo6wAmCfQLR$TF4NvPn=3J!Rh zelV@Tlb|PVx+jRRCQn0UWgQ;x`yNk5SfZ-z&C?SE|C{6_IgukZgbRpl_yvMbhi4-$ z?8RRjXJ5l_K;{d#!{a@B)ws%2aGds06=Y>kaHh6TUO#P8_da$S{wkXxB5kLU$kgpv zb`_OOqOB?`yoy92uM`$uf%|`z$TXpUL1s`$#(u49L$iaKn}+-)qwyQbMMKKPH1SP0 zHfIce$lN+fmYu&-o#y231)+A>HoX`uL=Mi}x`|s$J%@h*&w;rSOjXSdN&f1Y4XXqKej;_PeOIVeQr9kuV`;e=|IpP=Jhst}GWb}ECXpbL4 zd5+1I6^@B4nNA?>dYS4wB$G1f8kuK!?u2K59xL}H_8za6{-;Lv?r$tXCJ~q{vHYOU zRb!w@>M_|BH>QPCW~Ql4a~WtEJ7l=0W$Kw)j-I3C?U3iGmapZ)sCTAW*kv(^ND6EYZ|+dlm--0(JY_v_D$F+@7fcfk54wtvIA5b!QBAsHyV|?iU+& zc6gXidaE8%&t7+U^Z#4=Tiv2};7$=Ab8o!~BnI4l{;;cC?N9&Us=ffWTx%u3968s@ z%W`43!!dqF=Nz7IiS3@ZQeN3p59U3RJGZ^8CS7)ZWhX(PS7nw6_D3->gN1U29hHpdTRQ2MW%?ejfDWbqgrT19ezx5}FMeBD@$oY@11SZmkP( zaL>1WlUckQ8(b}$_GCwrz~tlIo_~H9bo|hK$Vd`s!n*I}zT2JJnW|wQ)TKg$dZEy( zQmfI(TW&UtY;rCw2Tk94osjC-|8&~R`EvZlkOAqYLuWZbMW-FKA=O@^RBS~?k+!(R zO1mAN7jCTAfTnCY>1{CWM_ONlC4H5xtR6++h6ojUUEF`TP4rhWAtBV+zQzMfIXo+k z+4HfM=_>FpXVKT>I{CSRc`I&r_8o41`f0PlJ^$wL^y!~}nySS`>hYLXQtPvO3hW5g z$0`26>v8nx(PCi}U-UozXr+-&3$z`6oj`KMLR^Nfw?d$mHU>A8NZ$}S0^k~MO3z8< z$Ax9EqA2BaifSxwz|o2G$U*0t9PxdZ}{D8!`rOQ;LJSsjy3 zCA|VfY(%_@jJ;CG1}B@+%I!3c^TGvB(baR<%nXD&XLY{D{g8J*g|ECfWRqd4B6Sga zZYLIF?c$={QKm(X&=u5D=oUu;3nK1ep|}|x7$Osb2}K%&RYY`(P}Ra23})9Exwgbi zSuQ||%bl-b?F+eNXmrn;55g*&5F0rbYCwLaACw*|B7*xNRDzjZv`}`vlTsH88bom9=Yk zhuku~9Mt2cgIP&q-owbGBzHGdg4h_5@LW)7A386yIf{a7c?%=1UtwhP`Gya?BJAdza7tFi%H>dT!C`88F z#?#Gh#AJj$Gm_j1N!yaHSS_#XSgPhg|o0Ro`j3<^U4i=c>O5BB_zTR@ID zaL2)NGU_ugZ0z)*q?8u2G&b#2S4>`B)b%|CNk7>hd#-wBR$_UOC3z8+^+25j40vVB z_wK^5Qi7!I73>o-E9dFh#;}@)DCj8ytFw%i%9%s{6zt6E%Uov2IoS;61-i{?9O07w z!sKE)g7m?<9{#atXAPe|kyEXI{4=njMR!APfClU3<&>q;(OKkvof++zNK%nW?}czq z9z{yG1ns@~{0N>b%Q8h1v>&px->(QjznLx)2wS*o?YB9ZftxaKyhoeoj!R`hp_CAs z1ck;2yBRn3PFG!XYS6CX>h>DpG+~O$#9mYEc1J+sAZW9l=L{Y?HL&9{hp(>pEN|P< z&{_;j1qUg!=X1EMYVPC7yjP9`6MDu!P ze)(l|s_Pf@*HdH+`s#*SKlc?vK4CeCUf^pc*q>R%)>}ijV4}(QIRLwmD|D_UlB}!c z(Y_u)xqIb#4P5zJNJ}eUNvv+|M1&x%3z3K~>!F~F5sAX{XoBrL|GN1#%X4F3OvT;~ z!2!vQRA`z3P|3=C7En3%zJ0zZvGu9Icx%_BxNXKr(D_zNfd~kV&zGkRXe>l2zOt(L=Kaan%?f3cVh)=pYXZ3PfGg;o(UdU9ITLmOg+d~C#DnlYgW^|q(b#&Yu z?4h=cMd)qo%m;vFin@SVtz_0)?KCH>|vh;UO)ng)k>HkJ83HZ8Z7eShX~H@zU7muT7y(;#bex8 zEf@-M2G$CIUIBd?wiG-Lw5&h!bg8J09nz$*`ue z(_~z3*46+jEx%<%7?Zr7-C-glXE!KPn9)aay%lS|zP~pw7Pt1Med5j1Uw?&@GWy=9 zS8K2@EQ&)p$fbPc9p5}D!90d@|20TI4i-v06bssmaOiwue;2C7=Y`|#))*}^bSz;R zrg|x=^VXb9sg0%=*9sA_gqIGKYRi_|7B{Wx%Y7ul#?%fK1{K3GdAa=qfj7|z-?FCr znjd6caHMXN1@8%;X4X54&LsPUCBsEEK!!VEJd5h_b9}M27?BFt)v-x z1W5;?*UD5boP!8LA<(rZ0cdinG87y_{*1TMQbW2sWj(KYHLDs{FIMPu)p+~)#Cecn znAUi|_b|6sSdoPwgrcAYS`+cR3gj$zvo=O+Kc+QCrkZamNEnLZWxS6MQN-A}9bjmg zuxL82`6x7n5R*@E$E*Ct9jq}6|Cl|uP%LnS_)a9G*7|?{pMUhi`+1?9wt}{Ss1O>W zizY;u0LU&L&d;4TPvM0{bZH3LMZ<-AGt^B4SGl7inSRm^MY@c;gEf&V_0bOcB z)*o{Bhw|BQTHk}GFc!2Vk|gr?`>l<6qpvk<{RZ#`a1G!c5P&^j&gb45p5UFXuZ<5B444?xdE)fIleVXaYpsGo2SK-m4{r9N?Bt;znRfcuy|xs`>`=~G<% ztOGpQ{o2!|Du^$}M~D7F1Bw%y|38tp=J00%yFN>d{sdy;;eLuUR%3SVM$(-^5k1(F zS24nxas8x-X|}c!A}5Lf)=jow7dKipsYAaZpj+$d(6Ju;Rut%R{P&lOb}e6TP(}Yc z)JrHd#O$;KfLQBf{>Jo#DI?{JYNxI>8mwQpY|!TsAv$|91oRtvi{AHH0SnMgJv?XC zciqhpN-_|BYv{cp(=<@2ok$T~qkA-*|1)k}Yb{x~Dt5XX;!f;tM`W04^1Nw^0yfME zDgsVpCcuEWWB({J6#)Uw{96l}4%zpgAp1?E5*C1W24vj^;FDJ-y(wNzJ?UsbCm0~$ zu}2IbOlm=5LZ!6Iq!+peGbzQg(07v=y+ftPS5uXTU;?5s*k>FWr9fPpO@{;%5Wdq@ zHI3r&t&Ae|O*Aj~5~d~u>B)KNWm7XK)EiPrz51(OwsG%T+SB+Z?Zv*rbWtLp}1*(}|RWSKqWU)kV z1M1@dLH&bd6Y*^e>eiy{|Mb#L-$nGpAlf$MD?;BD`NFX$3$%*GidmhO>!jl7`g-gGIFfU09=&RIV7 z&dK!1IN&#ab5-1Wwt{_WwGTVA{;)_5SjIis319ddksPJw zq}KEl11^!k(me&C zW_`FO$ztTUXJj#|H3}owSsu#T9A=P6dU}f0hGB+^m6jv_i`pD)zepNRB6bH#eM=lOoB?B|z z8zV4i8EJ@2I{nR}85uF`&YdAOsm&uC->QSPUSE4ex<7Dw0oYI+#7mGUNwSpUA@vO1 zQ>M(>a>|ph;CP{mQ)&2n|BHl_jGTg!ikgO&j((O|{?`~NNU#v0!i0+ush8gRaN)|0 zI}e_`2zc|sA?E0iW-*-X=F5Q}F3J%{9oFKK%g#7!r(HH9Z6dfB@wT`HB)GFb^pXz;i`O4L6*Kahq zd8^T#)s8vt#oc>N?*FnO{7Pl23>{9F+e1F{cW^O?j!HFZ7R^@;pDkXcthc{}odJ7uI! z&28cO$7CruKq|EuZ$JZ3G+}xnX{9`Z92VK>lZR$$PNP72z=(#)oes#t^fz(-<=+HX zwoJOlb2@Zdoeo5Q3Tq(AGF^R=PcM5H{qu>l>FLDDH1`+zS$>iqPaI7TCl03j6MNI$ ziJfWIQ~jg-Am7V(a+T+5_dfyy;K1-Z^z5MYnvnp}ngc)7svEFle>iaEw9qf+E+Kx+ nzyI)6`P%oZL4G3wr$(C_2-=P-t*l%{#`Xk)q2KU z*wcIMB?a*Gg$wMS3O>5bEf!ei~n-XNeB^TTzK$ z=?gpiYD@eJ*KPZ?YzWl11p%S?SKnF?kZ+z2P2rKI`VL zjSB?iI|q6c-I|q+;TNCk*cS%zMR-SN3nf5(*ROfi=f3*kd=UXC9>|QfKG66JyZTxm z^cNougSTdct&M}@*Ye-K+SXs=0a03h_PMUWcUL3*CO`$RYMV6Q=b0$Fb(QI6t7D0V zqWi_!Pn+4^#(RBgkgP!!)Bs`wguwcmz;z{k2CT|Z9W`LvCxe9DY_;Kiu3?}7xY_`0 zWoS4@{rYR-TwZO;ReIs_cT7F97sBHai)MXM|gz zMQ5|ZRCE=(VYtHTaOGL&zSu^gK~&x9QqI#L%Rv@>RgZfW^kE?Dqe8V8tj&S?v9U@U z$jv=<&?7{BH)=x~BWxdEBveX@OED9|rC~=R${315WXQqFlvqo=%fZf+N!=6+t%X~B zI3Wh+B8p`WD)oXWyMBr1`$_!d&B=QJyG7kWsHot3qx-hfAOYyTH=8gib{j!{(a1XS zYA;T@FT+z+Mig>NvYvKo5lA}zmXWXMs8ts^#lIrjY7Pm^m#)iPn3B*SJD@AzOf4Xb zSQLX-(RET4tyd9#o?Ekf%B0^#6`kZl%G%45a=ErkKRjw0LW=BdZNod{va8rt^ns=y z7)FpKj)06GK(+{dpW-$5ScW~b)ifh`X;e0zsFzR9H6jA&sPuYy;-w3SD}x@rz76B8F8p{d0(+A8%x0y zx7?+55M#)n*JV&9Hh>k=Q1;V&aKTE_1DTdb)0OR(*sXH7njzMd5skcBD6cCvCOn@A zJTcOUrnhFVO?4+*EJld>GNDcK#@)^9;9j_LvaRFjK4hQBEinpJjWE`+)ARLv#{TT79$D#rY6!1~b&&9WCN z#8Hwe#R@@nDQ6u^WEpM6YVl&~V(tQ_*QAFecf#QNsxR)}$8W9g=N$p#-7KB21*0&p%e*@?+Z((p+dNoz7(Y^@#;^ zO2@ShKNE#oNE4)BoaN(nGb;8z635Gm6j^f%$}O>13M^>#0;%}o#2WKr#eJbs^YcQN z=eo;a>)v=L!)?U!G!=&Pw%~-H=Q+J+6VGa_%3;)AgX@FJz5WE2NWas1#c{p3nZiGI zLc6c|0MPHhm;7}hx!l5$Ce~b`L`@cvm)KS)gmDPRVLoX?>XrK39F}>SYo(rta34gE8O@K0JV{hgqg)T%CRq(xLPDsC zJI=TbAF3x@>#Ho0u3se=&(nNSANmb95}o&vG>oe9t<UCG>GxBN5oR*_BpY_y zCMq}VQ!UOom^0bO(E!9V(=o+1Jv;LewSh;f7y&9r9p9VJ|t>JFkUn z-drm|Nl9&zC0K6M=>W%X<;kJ(oVluR(o4?vxLeLX7bCDAj7!vpjhS4$eU}9c z_~rox!kLC;E~q&DcD>>AG3tiH@$X)VV=_JxJH{ZUlg1AtEty2-wO9<+=vdb-;dl1`AAj!lg&?6ZznV%$7W-O#%pv2j>s$GcXy9K zYx8A^HaFs}7Xu5|H@M*p(y?(5l;rn~FX|X2yUE16|CrbqHZEx2aMbR_R{9o-CtM%W zkTXAMU1}CrmyL4Vkn>D>GIvVyb?!6Oes`H`Bvo_qVlcn!_80O>qM}!Lp#HGnQ>`k& zld}YF>M>vJ-#AjNaj$A1PS$sj*WEvA-R9(X@?EuGn79%w5$0oO8fcA< zOG-8AtWO!y(uiD1$NZi222)PR zZ8c+a@D4rgJznAm5bD*Rf%;Fls|{XtlTzn@8_uho{Z_(Pn!aj1D2u>)?78;|ZS>am zw=BTaA5ezc2PxC^jD_4=RaZ z2#mS~3&m6{6Yh%=hPabtQaLcH`826CD`@1l7qc2g9X z>u++7*g{v|xTzxi!ky^Ft1Y5Pu%uXGLc2do!6>8z2wlRzN!&btfkG+vz;l3(aeJ5O zy;l4n4nP+JBMdDoBZ7)fV1mIkpAjIWcEX}~YqTIMEraVxO`P!0;G}~9{R8pSQR{37 zl-IAS>D<=ZfSKRk4&{$*vP5v|@!s{6lu?$pFkda^h5C{Y!;ONm1 zZ;nT?pj{CH2^{L4zYw4*cPK=V{u0ol-Y^;Y3-G_d$yKQ$#wn}f=}S}po*fYUR;d#~ z02)rfMaPEsH{@NyVW}w?luIG-e60zn^-$YtmEK=XZ@rZ`oD#Q7K79SYdtT00Zn-aK z=~c@6c(RtAIL1jnyo_%;nW61+us(b}OD@Y^xRR?X`ijtrzW|wqK!<&{-rDJ6VY9AN z<>BRWI+1lwoZxvnu~1N+GSG0(ZmFrlSB|IM+*o67?9Jb-EfeZPn7_GyJ5vig{b+Q2 zJ<}d$?{z)BQ_-*gasHO@9L5@&m88-G|R-X0B&t3FLrN4#R zzIZ=fpTxl3|G96#3o)bD!ukvoCM=c*Ersgymad;~s!O@_Sw9iPqlYr3WlPIlMV zMk+`7fRAEp}=JvCJP5${8cAqnCh^}A4JaEUJF)puh3Jk#fE|I+8Q3>QQhGy z$Zm|G7Pi603{?m13)+W4|)5jT!hDv+7OnhDudTUEB=y@uK^m z*k6JQ)`(a^R}#4lO2A~SbuJxfRoZHUNmums8TRDCNSR$p*H7d;P}hseZv?~vR);$Z zCb{5K*OpULgqFiP<&r1LjJ$#;yp%m|?LAaZY>d0^C)&5Sggm}~)OaCoJ`ONPJO5v) zIvyB$q5nsTm19?BYP@ukyA2uJj1JLdYrfW)0mjU(90Kczn7EO0n2jPw0nv?-VBgoF@&8PO@MdKQ5eww>nnf%CT`BZQJL=tihXthh==Ijm< z!WH_`h8~2iPaCw*6Ky@d$1M9VhBQlVQJq!r(0B^P?2*QL-C5oLtCby&e`|%O5%S(= zAH54i5GUjC?a?riBU-yMTnA1>=`>^EGmzB>(&lO6EqT%OKSEYOk^CA)CiED!kh534 z+KY5S^7O~N*QaFBqKinD@e-3On5#8$Fz=oB{R;?KB)t1UU^=^%N1p>b zRWIY|Znn6IHF*=&|m=Hu4tfKM!Y=`bx*=X_K1IA?d7pcL~M z(;yElO$|w)@q49OMa=-0%kgD`vRhY2ks;#_iC8R=w1}>*%LMxq*(MS71CCquKNi*P zNwn}~o^8{f_A1u82m`|G?IPk|i>qN4S!)Dc6?}-|;>Ms)EWfrdzP_=Z=gCi{4BNN0lfRQGK$Za%{iAr*c{AWsp6+p{tB{oa`PG|K z!6%CM9v|;q=(qBrj5}>qbMaXtvfU-)lVV$|tL&Dit9_AC^S3m7z#q|T3_R6CM_zWNBg2h6MG{%5;Y~>O-;g46Nb`GfpkWdY;?; zN)!u^?@>F9{%9PZEE7eY5cNfZ0IaECN=%B1+-GIN%i&&Sc?*GCg)u}d7wH$eaJkD@ z%FXM981sZRm#|uV=L=$2)Tr$|VBwq{)~qm2t1PB;K|Oa$XN=I^;!d?{N;#aj?PFq) z>)Cti0xH?!VY9}qLi!*jIZzklWu`>CkIX zZ|qR2b4^;wVyw@>BM2lnV(Wo&4R`E?)lN|CYUsvQ7sw08h|W>vW9xmu2>a?|P=k%i z#$_Ai6+uC}YQdwOJyoG#_ zJIk+dVd<6Cu|KqtHp&Awm=npKE>m{v@?33EOP1}3+g>Vo7>@TaHf1AUS(y1GmDS`u zgNMa%M%6R@Win zWqH?BuNH*eHy_c2*?98+RI4Pn?h>);Ie%F9x-K6P|aU<{mq2Q~cUq zy#RClp*gfJ(Fk0M#9a!}UW)karwQWil3ek`GM$t6)0oS~gE#AI#bG!8KERni2(Hyf zsx@%y3QE62%2KV^`rwGk?|vV^3%p$9gNW}PLDIogj?{Oq8%t>VMh!?Y6R0hx^;{^i z5^Oc(iqAOODYa&OSmGN@=|oo6D35omZ63NUBD!s+)SlZptv!8{ zyVY&3RvuS#i1ASK`&E?1ai)i7EhZVMNTlw{$OCET>?lJExiGG|T+j&D#nHQLvNsh^ zQemv+WXxfZp7(4I!FV-rBjtKS+G+oAO zd`R0LQKg^JH~+Iby%7M8TOs558r!m|9m1g;ITdqF18|FtE zt{wdw<|^-CORXT?OK|2p1=gU8(DH+K+D0wTwUem7)jXaol@%@YBXwKO0t{;zgLUCj zDe)NbEik!JBUd)&6ptzbr}ndXVystcaEz>d>S5=aAMMia0aCq{I#o84Cbj>t>S=bG zC>a=b*+Hutb~>mTL2-XjNEi2{gJ&jh7}L-}uR$8w5M7^e_FomW@9|!Q$3=1rZlms!34Fy(pa+Ajn@I0+S6aYrymmi|w;^_%$o!5bd+ci3%lkomV~oB-DHkSO7p z-_-9rhNQDdo~N5Q5+7nbL3Pic(uEnIN|XOY1)LszoNjrXUc2;PGpXiTCaf_4zLLM& z7KRc(ecF~&e8ft}M{Fm_$L$FZr|7F4*bd^?nFGz^}3q z;bZ*FFeJ30`~l2g(T#-ZC^d?jFWMPq=Q=@5NCQT_j?ve;(;lnF;KgLZ*qjAa> z?$j<=A7{udUI%4`a}x)z9w-ErjBey%%#Dcg11Ovy`poj85<>hq3U?@h9tnl!VLvik zC@Y2YsZT5zJ4DvX`ni;q#v6p3T^xvEkZzi`V71RFbh;h09%q(prV>aa4o;TJ)MQ3tytS>u^aeEjRdJ)IadnCLGDvvUNW0F+)D_F;M zG%eACF8Hx-)!sj}Sh840IgfX^^&*f|gAI7N7fHGHB7$HD4zXb~KsBU5aM?&OpuGDl zra7k;Vd7OTjM<@G_`pDSYuZ?o7Zbt3%x*%w z>F#R?lh8kc{3;<&wqwk2mSMEjW++3q=B5%{v~Pm15`2{)(xqHi!D3%QR&ViUbLUT< zgKfubtvm@-n*_tILQ1o3^>W#wbK3M<^1u%fmC9`19>mwSaUfD_h!F#pN@;fUsH2awqcel&i-nWw;cTxm7}At3(jdM!Ux+0 zv|Y2qeVkrB2_SFZ1m*V_ve5obO!4h_*=4;3f!}n0D<-5N85hy$x zY(Lk)nBS~tKYA>e-KezEvO=L?Jc>Pxa7!zno%&dO-);dwcRH%qKAM(%x$E(kXYWE6 zTwx`07fCQQSY9W8-X}bLv7Z@y*=gg~^@u0cu(I5LXRA96!yS<^lt<5K6&8q+Z%K;u zk`G1Q4C&Kra`w!OAG;dwEmhkB%jRPpF?$`x@A|6}c-cqgCu4z`E6$q{-r7)x_Nwe? zhUN=Au~1blByKU=1o~8-zqjpb2%DH#aX+C|mbLxiVRo~#?31ZY4BY6S+~%%b*)(sL zEMHIbi1$G-3X_RmBHYe5G882CefqhEp;b>%MU{8>#i*5ljB7z*aCj6DQ8Q^ed8xj{l{% zrX-!$_*Xj+$m<_&vRl#ny&QjXIRbY%e6RMTG&BEGgzbM7VUqt8VS(uFl4%n=I1{_y z=ys6la#Jcb>d5#0LK))Vk8(fPYF}a@5%v=0@nNBM3y$amSnlYq*-biAG**;r7^tsK zqn_uN%B)nKSI{l$HXviR&+r3W>64F=l$qwI@NuWj9IfParpf!&J2CJ{jK#`3ngPq? zw3G0LhcHemE1LP_Z`sC}&ND3(6J=#Ce>WRI;Rr8&4k+907o*?E`A;;q zMW5w6s)euX-+ZNIaobXhxb^$u-;Ifd z!oxJWCb9RZ#qDb6`|?Tm)~A4#4f0Ve)P6x84jLH|HJiDcWG)|{5p2w73L(a26Q!rk zG-jH*^t&gz+qi1B$mRs=Mt!e%q{H+P=@D*R5B8q<`H!zk+2mn^l=R)OS zY2$Frn+;cQlphN&ojrhC(D}VMP-{S$>*CoJ8 zBTx5pada;OrGX3>VYq03TQb(Ib?qnw->46;0bU{8i0qRYyK;TY{gXJp7ZiI0$`efM zxNPytW;KX#)<<_XfM@?;fd8-yg0S-gVHYZL2P1O#yG)5gi(4n6#cI%%zUOyO^!nha z1-)Z%8tu$6>B88daYJ)e%X1fYG~H}%bctO%!~~jp4c)Sx%II~1j!(%`^xHTca%>lo z;2-%=)4Kz^LshZ`(QkA^jpQ`}Jw;06`)wMG6NuYb;v-LH(Q*+c=fK%b?x_$uLxZPz z*j;z}<84a#s3^)&@o@)8ep69pqKjVL>{H9RhUA~2M=u&JA57YnVO(Dw5|0}?7dgF- z20`8-`cLJmM#y)O{x}VqCBZPO-oe)505p`j7#lysQWxoAk*V|=qRC;%fkGCr(B&g+ zb-7>}M+=bd@$D1Gf_&1D3>fdol)`y?aj~IU5fowK(-3U1-ll%@TP`zV0!@51oaVGpkm^RX@&1%|F#}yy~D-NC8IfJ3L0< z55o^TYT3$-HG@zJ$jVDCe`IRzND@^?3PolZ?fK~=tIz_sWJ##hEV0u5&HpLRrlXD z&P<;dk}&Vog_>OImsoGqHr{%ADNIy&JMv> zZ5&Z@4cEf0&W=~^h5K~%E~^{6={lG|0+~+JlvoZ3a^B{ONdN5qptodYqt*l)%{p5eJl#l<+`>DQYOgoVp^V~d^Ip)D!%7kvD zV(d9Ue*s9k_C~vw^yA%bH5fVD^ZL7-coSC$L%JZjd&rS_^fTy^G2zr{@i=4DQ^yic z%~;l0$vA3rx5hMX@_t&IcXW^I(Vckn8r2D1?d3S5DHX`4z0ow)61p2PE}vau~G_t91hmvlMtEOs{CvR5KoeLtrF34EI0L z()}CAJu25~Br=B4?37ME1snuS<^I_l5E9|A*qHRnR1P$@(6*k00lseXq>aE|QYYrX znG_YY86MI8tZqX)m6P5WyYh;q!eXn{gw>c1L~zW(28i7tDWJ8O^7#EzYY{W~^{Z6V zMfA+a!B-=1Q}W>n#yNGqh=+k^-^&VD&fb(SH0pCZ>ybO_vu8Gbg0}@HMPqIZ6#s%K zeWw4`F)>2ED9Kc*b}&-$1*<-F$!@bQtY z;r2J(e@a`7BaP-s4MSHu^GAEqbXLm)D>+vU3$%O%p=>F z>P2=ASC*)eo@4e&Kz$KZuU*=0PB&8;Y&)-{p-+Nl+HDIO_Mpul_GdVshdEG)+tB_g z9!A3R_C08W2rH?k=fy?p09rFq@|Nk-rS9lruAsZiXgbS0`pPP~5qB1(po7S|+LaA9 z(FvIIbaTp-YUi_bYLo1GrycQ6!$f?=5bp}o^y{z*{D;wrD&S_sB)M~;%PL_)~l z zzcf2K2C4giAPSU;6sEgiUDka5 zzg-Y6+|5E`K@5ayhF|!fg7HevmALXYW-(geah=*Dlc`l|-f`&e!XMP{ta6zS+A4!0 zS?RV;6Vl%BcQRRyO$w%>F0XmH9-cMiKBVzw#i?V;B6r1NEaI|np~rv|&oEi}r=LMP za#5S1Ri92DuN+jP z_zZLUq<0a{{`GZM(Lm2gPjAbhO0UR3&(7`^T0dH%f@TDiMHrF5(@7s>z~}N^*K5;i z6|T0u?aXAgd0*pT%t|UnFf&0@$C}OBv;{Zo&R zMn&abk@1TK9C=0<4OfgPp^}BR<9#=ImX|z{%NU!b<04WZY&%j>z*}V+B^)!hsy6dd z1R1fT-JKrCFUR^5#x9+Ws!GFkxLt@K7Ec%wLG`-;>59l zop-eDQT#yrX0zdKLxI{wt3Yxm;c4`>WeqDqX2hQ}aVAyw%!ia|_q~$1+>+~$yS?qp~2%IBXuB1?VBSAU#C-DS8)4$A^hYpAf|5L8NnF97=CvT zl<8395Ow9FUxMcN5${y=-oE5MxS6}v$^wUF7uc+i6Vif`esysEkbh2_qD%nwM=4r| zV))lsUSrH4xauI_Q_RektFHRZ4L}dWuam0(`4)~u#nCmJAsUdl3J~?6Tm-{zk!Ll} zg6Z6MOd7@NlFn;|>qLEo7xvxmNM9$CNL+|rNY4attYKdu%K9JnND=~vFgD=u{VRK- zSG`RTSZQUx}_|)yJZ=H1P$7;^=oz=(Fhf5wGx> zs(|olx$O{gfRf7$Q~$eVQik)WQ4?VxmU%Lg2qrMcZXivsM4T+mpv>GP#X6AFq{OH} z_&`%HyZ_)gH{^@0pt>N{GP_(w!!kGSf$OL!pU(ZLBu%HKw5-tg<=Eyo{|lB?#l{5Z zY51-8bt&K5fs2pMH)FD-&aWfOAm2csL0~>VK@eS6>bb#Pu|*fSYZHwdjMX*N(JJ$P zGHWE#XquP=`SHu3Vu2IC)|DmEG8301kM_C6M7K220( z%liVdPAuwPO%AR-z}&ML@^dNf7_|APEo|%4^n7XBG~2f zMiCM%pb+uIk>4w?-K*!P8K;ZqPC8nrhr#~d55xJjb-kEJ7NFS)X&uDxL_9wFsT;|y zs6wKo`D-Ok6|@H=1%G5&3EnD_5=^MN3HSEea^DV(>25Pk&3N*lEZNVsa~n=mgSWNB z-5 z_y74`YP83c;+^1=sv4gqCj<}hFo1kz7A0ddMpIC490rJ?*fv zg6OPHD*eu8Slf#9?jNDqXPig|m`+4aMHN#KJnMk~C2aZ|p3p5?<6z4$&s1Gk=YNr! zX?Bs`;m8G$@^!&xLKxe^q!MtFGwd?d*1_G@`=BmN$LUcv1luKmxC`mtu)3fXIt2Va zLS){qJs5CqS!b&!vvNjZWot5q=-rZ8*jrzsGA_--LV1k|7zRFUt=A*#w$Y}vjibQ1 zZ|%Z6VY4DlT+mX|*B8@1%n&`x5pe9$P!=1E$1w>fF*EE@P$4fa4qLniDy=Y;D_Jt; zNFxM|ZEvM1Q=S%q%uB#~MaN$fW*7e=Gxu#f6&vEncX3RTgxQnqOh`CcEdA4w^t->` zuW2n`gLvJtlqtV6D=vP?3nbO0>!POqnj)?$)(TF70EF~hT5wj zc;~ulE=PP*V5cP_rwD%sMTwL&n}Sj(?T0m!+;@02MC>{ZKmOblogPi6`&f6}%`%*R zQfhL_boF7Or)ARk^c)NfUDdIgZUGiB$?Js!>RQ)_9YN|xHYcfF-AV%#qi%QtNn@2n z+a>zMnshY?CP!V*?q0t3yFlw71YEDxS$UnGCYwnPH?s_dLPOpBOo-FxF+&QfV~|D& zP=;pIuD>y_YLGjn}^ zge11CmTMZHcb7Mk#d47xQ2}*Ni~rHX7Fs!O*6W+#%!p;XKd`R&{DG`$+c{sewsvCa zm!}vc^|*_#DE1K;>W{>@Jvbb@bXZutbWPXafIuXr`^t;*0tBbR)!hY6fG_Cj1+

GuWk#Z(q&)eR$vRs&N9@ zBPx025@Xxm*u}z!(?qhSr3vu4v=47ZhYVrA1A^b6l0R8KL1^;*!B!?2NFL;Fc03;7 zz{C6mSM7!^5qY095>+)wrfv@*U}(qfaj4OJj&oc8SaZ#_abgx|XO}N#E?Vc)o;U49 z4Mu&&c&f;BIQPO=f);T7N`jCgS;_xBf=H1^^S8+3Xag2;DhOfiwJX4M7M*}m0Ffs; zdxpI8SvpxcCgg`(NPx5gpLT${oJ#V8Bqkrz`OXvSlooTz-=UxAb?oPfj+#GO`qGrGPg1%sa4 z%>6q9m6N0!g&kPLf!RxvhfeQ|0&Vh{dY{|0r|G*L`UdNFaA8Fh1{;I}aY|a_LzigY z4dXs0_;FE8+S|kQjxD!u;N)o1`t@svO07X)lU}kwLyWW+50_$&lyJpuQTC|ssjQBS zv8lU}Lsmb)eQ0;*AQFTF!w2&VATnl@AQb`$J*2jG<1JWS$~s+AGn&hCcWYAM4>1od zJ$8F*YkNZokKsJz`>zfW@tT}G%?P%_&R6R^^ku{N*0{y>b!uvV)i6oO?2Qz{TPs62 z@0=g^uCE6b(s%MOm^C6o&<#dC-~(*8%sz7rbKG=q{rv=Z@G!S1$(^H*jFfxrQsxwAbV8h}J4QLC7?fyrutjyv|05hJd==5dv`rNro`@l>{D&cF) z%>vM7VhnSktT8(mN2LX9ujq`Qvn*w}C_$5F1+9~9j^Md$g>QInZJ~>bcDi15 zjpu55)sCBz438x8UF?1>o>Rw z)@MIs#jIsovFhC+N8`n$g(O3?y&@t`O{!toZ<x`XrwaQdfh0YF7iKfpCyYW(E-mEP^ltZ{;!E zZz2yRnu6PC<2s)yu&|@NwoNfh(fv%Qf-VKv|ZQsp+-*|dn#M)SC?sFaJ zytcP6fxfHC&lmL6g6|ziqu{Bfh5?BXB)NSc}DgPp(KS3>i4`MH30oN+-n4RJvi8BKm%U!h-(qrW`|^y(H| z{#u<k|Im0LBa!WdV;&7~65G;<%?N#<`FtnV?bmI&$`T8`5c`A*m}O>I_-+X7 zQH!H#WHDGB;XZ1+Go1=M?hOmmoaRGoEGP}Jar;%7_$fleMV9E-y&p2{)xFgrZlhEj z?hc5MFgEP(8-IP=Wa9N6{di}WrFk;lJsdE7U#2H&1q*gtG?8M293F^jH(zy;ur}{J zoLD`yU9RqPQMD${&1KM#UI6e1GE~L1`ipOQHicAk0lld(A|P|FM`-6GU~x0T_(ii` z8v+6VQO$+x2_0%P#?ElAf3VYXnEet@L247%?mG&5*J z$T}P2j^hSJur(X|A&3%HEN?q96I1*>m6q{j8=MN29Y&#t*?X;*$v@S;k?s|NQy z(D`_h>4l$YSarLK;e`GeuT_tTmsjp9;b-_sAv7?wJltL{tCXaXqYNSCVW}oqeWf87|>MkEVkRx-KP|1C6p3Q zs#xq#OtW6(zdp1YP5UivW%aQSI%z>pw5^QNI9fTUx6AzdQS~obaZY>Q*e-papJ>d` zZ@e8lC#%>F4^mu_a2J<}!KFZG4=Y24jycPa6G!TQgEGdz2Tj4cF_qv|)H(L=ILz zCu{=IAm7D5tDv2-RhRCj^yb~z_HgHxXEq4+>Fsrn&XPsVopzVD4jvxN&q6366rNOn zYNsRZ#6ukO%*{pSLyX#pxvA~`{<&0m0Q{s@E2o(6Sk!;{B7 ziUJ4NSKVr(xa`a({a7zSE?oV<&xhdc%`Y{<&Mj?`S)47c&$(Y{ z2ZWMvSwP^fgK4P|jBx!*!)YD))x_}85BIx^bQpyRYVG&1+ryB4)RoNdrPRJyIiD)a z>B;)!JDEo#8jhWY2F=Q{l7TFV1O`^s{7N?W5@jcgLJ4c8;x(=Nq*G3H%OHP6hysC* ziofBwPR+0B2hNSPw0TV%99Ai;jm0)y9_LnHuS!iU)Y5YNrzKS~%Z*47l}~`F5-!96 z{HfGOs2`wDgMX{24oQYY85<|W6Rgr5G!BHP^gfFp1D+ZR5!L~n&zTM{m1{_~aIDWc z!Z{~JgUg4ucbvG{_R~gQ?cIHa-Sl( zW{^vvO#BZbxyP!}XPX|`gTX%<{<_Wh{e{$2+2|LB8kb-0K(Tz0DP!5jH+p4BA*30{ zA@(AgA(u|dWxw2j0%)hO7xBq0Mze-cHXS@Sg&0dmKTvTvMGP3t%oTA`#S!iv6JgjC za8ZWt6v>eI*)YzBoTDD&gL+QtQy$arZYyE7ARi?&Lqg%!d<24jGf=r=CwR7F#&$$F zwb~zXf556O7-${L3riC!%MmezNXJX2-a4b~;{1(QaM3e~Qk++H+h#dScE?~3f}RJ7 z`x}pWUbM;YAqaI^5avD59c-)A#ZaG*qcPp|2nz+<8O{ute-DH9K2Q|v>Vj3zsE9pwxAe zV-c%O1Afm-!QWi*eV_`=J^Nit?+)e{MO-p$AZ9h3{yKYS@#~N>ZliTa{Vtc3$g_UD5XMgg$Yus& zlvnx=wa0QBZ71B0$Z#;2?_UvlKq>+WW{S68Qt;p-A}9)lqYfm9<9rfMPIjA1Lg+#S zgAIxsqor%p+wIpSGs~aelx>Gg!=cO%_!aQjVreo~DAFxgFk2p~EvQ<@DSGNYyChj3 zf<)nKjvBrPHLR35I!mJC#N+(XUa6lTnsjGaH@)b*BTQa&8O^ z#U7cuwbGYECXi~7dx<`GaAL>T#j-^03GUV??t=e9t~W8hQ*DC3m}D;p;gfpN+-Y-0 z%0%{BlEqz87NAiki}e$LWkp2wict#bNAKwax*xhd9ue`f*FrNlTW&n7l6KwwvhgBM zp(*QFSv9~n4ea=XDhfoB&RtpFkrtJhIQNlP;@A2`)RK5!6L{}k%LEw zzsXv!LD30pv)WciZ9{?X0acSb0w|cQ5;!PT-WwCb!EsYp>$TnD_Aeu`*yk(j;S_rj=!i1pZ!S+5TY( zEOx+Jm9UUFQLeDn3=z_*q`H1on-4@N*sw6FlQP$ipe}K68XeuIEbL5EtUk9VHI230 zH=e;_-&7pP%hZ!PVWLEvcG7`AEiUfwuNwn%uQ7Gr)xY`<-F!ZY8K=b))5%W6oING= z9VjJz{)XDZ&4nH^Av&P){{?RwkmN-8ofQ#i(4Tn|{|Wz)Kj$@ln3G=keSWFEV&UlY z^wEXQpP8Qi%;v#!+uP3_93bt)#HLLXO}(|fL#Z_=?C)*M}q7Q zpJ6#Je{6dtMD!AhYzT!mL>z4vOPj;iZnd^o`sa z3`bm+xwB>H>B0LOdzwXwj;N?;c&JE(zVK2Y@Dge`_uTXg`=)NZaf*1c9Sx%M@OLO3 ze>Q-9?AjWHQ%ewJYbp?e=sc%NT8oRy!j3>}u&2df)H^CXHJ#Dc{-G9@(=_P4=txU- zrAB3pxI;mO$*7W9Rkl>}j%h|-!N{~KLf;DX&jR}8R6Wu5>UpW~ob-!6I+rVTioXLLgOL$VrT)~#9L6izV-6P1KYjqC3j+8AKwc1Rw^6A zSkZ!e*zX^93+;f?tx~%h8eD3XTS+pl8||TfF62xpEA?N$7+XYp&_E_bdeHUIW2TnL zE(BU(|7SpL=xO{4B_&y3%)tIf%!oO17s0_cC;Y^`7~iP=9NO7Gi)Z_Hq0eh>#Q2q4 zaBR{^UlP3Ln&2h0b25gBd>l0A1BC`6pB`+@hQR^&k6+AxWGw%o0f@F3KBw-A)xOeL@k8>w=@%6qo(3l`eA`QeA*|HNa{$B$2waY%$^XfA)| zkfmMd2_%{(8cIPU!^?o9x)6&LM&>X*OeWm^$cBd>-jKd|1An7DhA}SXDRaawVPYi) zeecMTceyQk+Gvw`9M8 z>-10c3WhNl7)GH-hxsoaAV_l)NctnP76}w2d3kx6_f4mNMKrRIIf+i<4u02T3Yugh znFyUs??9i1?X0~dJ-V{*KJop95Po;puUR6&^@P*|5;Bw-UFYnwt98mR=y$Q=wqe_)?0cyn=UuJ@`N-RuNnbY{Q2%38T|~&kkDJm75Yibx{si`T>H^df>%tz5{_#maE3}h#j ztNrlHgkN_#Nr?A)F$e3o1TqXtP0noHwqY_cC?Bb?Y4x7!0r`0ImmPMyWB;z|YxnNG zwtCkNaf`>P;l$~iifuZNw?+Jnud4!WuITdRevj(I$8+^RLMqFxjN)u{jy!jMKpQq( z(%E^*hQxHUY)sZ0PEA(5_0BtQRZXTMgUnc6a%08V%_nXiGd5eI?(lG`f2_Z4DCUcC zt;B{z*VqQMZ2V0rpC~zqoprV^3?VAqY3Xr&+GjCgyrsRYrg3-A;2z_sGUaY;tt$P+ zy%>2^X#ULFPFuOGY(^bp6L5nRiJ2|U2~9vbQ(99N>aQ&(kz~)@iH%S%=Z3t}Cg_$E zZWI|g1J8n{1ziI~3=mG{7xqvj?Su)t1jq#eKv;E~P9ZmSIT*d7UN$mbR9+p_wkmBECG<1Z^~zpV=Z$FM)Y zSTn@Kh5IyeZ@7MmBsgXQuhz$*#o0*IZPx{~OHlu2G(~mScv7;YdUtzZG*DJ7b`3@b zr-NHM<^mxX6i(JJ^m-De(&BPYkE?glmpoM{{PhYy zJJBBOG;!`Arv;zVI2nagoh_~tY7gCf?O_mJ*4xX9#X=^NoqBNKvbhd1r<5cz3vFd| zxx7qcF@$u^K!vqTE0@+cIO?nBx1Epc+8gbwrHb(s?JlB=pi+vHsH!{_lB((oMntD7 zKel|q^(2#lEvoQ8D3<4s5tB$NysZQ#gtW`~L9g`bN46U*eaQY^T+CD0)) zu4r+Nay^DF(;ZcsYL<)WbP>)>u8Q$Lyng5YYlas-l4ve zDpx+KZ-xuzX1%`I5w|z%GZ~@wk@u`(!8c#0^3bw8^wm`;elia|0npPiyz+Xs+Kc)+ zE}>|lz6WZ0-~~qaL8pixeT3h+y_}h*0G|0Rzym-r2Y)RKe-_{z(9FUAD!{2Cc>CrW zJg*Qqg-C@PPqzesLBCMpMh`b^*X)Cdvs@0=WB9-~Ci#H*{&vOM(F zRVZ+kgPwSGJq)kBN+M60`8C$z0J$F`Ucd-`SGc?iu9>~EhW#o)rMdffe;6iAG^H2? z)Q(v?RPm-Z^4JBBS4Z1vn#O02)!6GJ9k>YNvqo!d4(BL46@+p!xvbYYuAdH&$2wJ+MD^8t<_bl@;sC0{6)e!fzo>*wkjzFm87V`(n`~6(tzxE`YrrA z6||^6Tl9uZ*+g-fyVqY?TsM~#D&rEfiemZ3)~@a0^wF-Aw}nY+b`7r9#66SE4(V?y z9S!zS+j%2n=d^mgu0ZQq{rO^BQuzeZoR9xbHS+fb>^g;F;jA1IR><`^W&xJF9l+;r z8%s=UTI-`MXV;ju<|e~rZz9>8SQ;FR?&#{=9`T!e^=5;nwfPH!vsNytR+|lKwydPw z(CBCx5Epf%QXMOQgN31}V|zHft)s6}tuZ z#CW^t13SG41S(Wv@lcb1_f`Vc0aWl9lYp0pIsm$#$7>Ss z-nt%!41o$&O}uZ|1mB1NRH$0w$JzyI;Z^9}IVhsmKrhdaT?wy;Ap`C~1N7%mSM+Kw z|BJ{uYuz<~79u^H@pD@NVKqQo+#`l)R|{)~LL>L69v+SGI2#^uRg~c`EXl*V$cU>F z9{0$@6^wk;J?Fe+6v~c-$BW0Hf(q~V%_aA1BJx+iD3PqZ?%$Z)uMP7rdET$g^Zsr) zTggS=0)DRGEA{k+DLx-LBJh1le&a>ol1|mPYUi)%>A7ZJn^K`ia%F-mKUc?;%9wh7 z^JbA)sO=JqNL-bR#pqSB_>6h@TdnI7>Y;?{;PH%gpSSEi*HVEgpM^-R*|PL->=UZqzPR>L5KVe%VSL)Smv^ z_TmBW+`$>top@u?wkQ2F7_ElUO+X!Jqf;t%a)}O%*OWeSj$WrzXtd(?%JxLEBW@o; zS0y_ZlvYKNg3-#9=5WI6PN}1WgKCf{2srJh)aZl?OE_3VVS&zBCWBU^R9dV3vZOE3 z@6s7PBdJ(xT~j5e*BVTE4s!}gk*r=JbE*tMCu=LFiydZP%%*b4HEKqrkbyR(AWuiG zDhH7hW0=3R;y@3mw(q{rZ4LzbL`$fw!im z(5RyfIV%glT{EF|&3%7IzrEG4)HPlqDzln>siBlsZ_ucXEJ_Wg0#j`=???#M8REf6 zcaugfR;$&}Xo&XfK?5G4(gto-S-#TdYvWg6)`l49@ue6p1&GrUN7ws^H!;-quDNaN7biNVI)Gu=(FF+WwB*?;UMGqZ2I) ze#HDQqOJJ-f(`Lm(*txM*8Hc&T0YW%mtJ%ze?I(>krsacNXtf;CL3|Z>jzqFHM(wF zjX9zrk}BHJAwff?|5c>D@IHYi?9}Nt{;VbcRKHoE9juSI*>I-vXF^9hTmqf3nsCY(HWa&-d<9|u? zxzUDn5dCBWa`z?3+{_y=_faxe#Dy6q%)v4)X2M}6J6AMQOy*VyQ=x=2C`^U9=izzu z7yJzG1MmII%|V4pqA=9dG*m;JnS>XKlDy#gnv(JgD5GW!)!7G@;JpbSLf^ta=6@9f zce)7~@uAUCVzaC9X7qD7cU4jir~cbOf5F@129?SHpWF3nwI06lW{pC^Xf%vOp;>+U zf53>Sf8h>vjBX&@BeGl`JJ>dZU%NwpKlFVS`nG2KK-)-vaDE1N+~Fd97vOI6CpfDX zlRX2NQOv!0#@UfWhaz;@5&MAycIrco!PHl91l>u8gnzGx-v8h0IgBxujTudiEZb;O zs?|#P;E28vZZ7otsL9xm`sDb`JaW6VZ%P0w8KCSu;IaOMd63PL@a;X;g zs_HAb9!6$S(rRgWy$WW(h&5;jeqPWF8%8@CyUOtM$Bz@qev)ycdng65g6Nb}rGL$d z6Gi#+qn6>%k9AQ=QMs&~oGX8|=AgJZk~=+;`?WzlPu&AvDyCjc|C%C@Gw>nmllaE~ zc_|B-!<(sF@RI;Jk%c^lJE)8426BIwg?98OTX=t{EY(Yasl!Qxxa za~V|%Wup&&bI7EuZ`5d2TVV8eGF?#j`~z~flofauxnPGh^00=fWi)(4(U}c+n7W-l zn)^ji3V7-F@y?46CT2d)d!|}_Cwz#f(tB^$+@F3B{1VU>Hq_}9Xz)kz`%ox9I6ZUp z6bkr9w>$1XvMzxf{-Hd6h~)Rf|4C&0&r{K_jE;V7UF?v1Xc77gedYf+_t2tT?qTx} zBzmr*OVBUq%Rfv$04CvcJFGy2X}UxUrqiC%@cH01$Oqpo$OrWGx9j+P0DW7buOJ`1 zc6&A-{2gNb?sa1Q?jyFd&aw%y{v^cupa18v{^Z(NkE?RAuHwD>dGPN0-qXA3Evw#5 zXQuJn)Ez}F|2==zX!7QUPmzrGS1njrdrCtUQuy%xT1WvR0{nG70y+HjTmKz@Jr(_} z;IHdrr^+%e`biqY6RGT{N@=O^!zgQ5-IMVfp~CY8{bX96mZO&~p~1OpPW(78Iqr!knVi8q^^V%>U{N()$ssI$^RRNky_OhOchQ{w{NF6Jf75z*nv0 zxEB%2IR$b~fg(JoP4MKJ0x5=4ztiHo`%XeU-_B||GI$>^ebJO>-ulWQ z*hy=i9rN)!x)Z#Nyd<(6^YT4rrGWC7mrHbm_qA9*SLfw>F&u+cFXH_o-ZM)^cD~2# z7?_>k(HkK~o_3+JftmV_ktuQ_KZ>f#)9>i3l{sUszGvhro9i0MbM6ca)du#|luUU} zj;aUGI2YDxAl!KG@W21*E}VZZ#h|Hff%BSpCSz$CO{?^hw$u1Z+vo+|p)QDV`tNgchwMPJm*#<_?cbC402HyZsTfp-G0C?I}!9xJpFaQ9+ z+BTDRwr$(CZQHhO+qP}nw(a-s5CqYYs>o>MAo3bbh}J+mp--_YSa)n1whOz0J;NcM zA8(5N<6gdR_gfCDyWQrL}rmH*K6Y zS9_@^(rf6`48%xeR5a=s&5ce*Ut@$Z*+k89=6rLNxz#*io;I(WkInbyZ;Q2jD~Xlf z%4HR`Dp-rGwKi|pwkO$h?G^TBd!K#MzGC0EU)f(B%n=>O$>of3b~*>0GtPDAk@MF1 z;gYW6`fd_8y_?G|>Q-y_|2cr(29-c8^2Gy0AF8UAYjTaY@a z6toB?2IqqpVGx!J8-%OF2jK^R0S%-BWk3%w6s!Z+!Bg-V($IxPVH4O1&W9`DMz{+e zhG*bo_$x{s)s99*+oJo?+vs;J$GPK5@!)uK{OJD)lKca2Eup^v0C?JCU}Rumf&ox3rK@^4IA9p&m!QI^&+})wV;_k^_SOX=?Vgp!C zaf>OV^Uc*fpqURUD66ak9?Sa8WeoFUE?3Q$xq@Xr&6Q3~6`j1BtLZ0iZf2fsSuPu* zk!ACQJZ_$*o?i2;;;rU6x!yc4!6h*wJQL-Bw9YUAUO81XskrXkDe|VApA$S%fQ&MC zcqAWwW%SiM&MH%Sr+6i)T%5E#NlFgu)I@yBpRvm^2W)b}xiTK|T%muU$_d;Zw{jBo z6H~UEIVPE9ni)rHHfgP-iI=iZ3M-qmj&7_+vM$N(+9F1r0!i$N>9*}Fl1)KXBvm&l zZxGhI+v!N58y=k=omn)U$s*p}O-ld(0C?JL!2@s*PyhhX_t&g!+qQAJmTlWMF57j; zwr$%y8(BMRJ9F=e0MbrLk%5qm<{?50Ew$2G8*M`-?X;JogN{1stc$L?>8^*Kdg-l? zzWV8}gpx`rt&FnDDX)TxDygiBs;a53hMH=rt&Y0tsjq>CvdbZ-Tyo1JuYB?=AWm^v zoOeMpS)EW&W`)Fya@iFZUGmT)x7~5faR)@&ub2dh8fjvHL9%J=W{4DPps$u&X^qv^ z+GV#TAu2>m60NDhlKrv8Usn}TSWyqGaL_GFLyTo&YB(RY(fG1X*W zOf$nw(?hITW}9oCIrf?FoK=2XV3EZZ`suo7o*3ekp-$UqScvn@a8Et=!b`8b_QnWr zy))7Wo1AghFCTp}%4a|92=V^;FEu2j69f+j3ELBnYs6f42!~`@8Ly-6GPS82gW}ndS(ykj-ENj zA6rs9`o&lX9+ON8DDOtzEcX*8Wcn~H%~HFtmogZ^7$z`<8O(zjgB%JdVFY8Cz!YXM zCwb1H{HVsYsqNT?)V|8GDgC^e)&Izq(&+c$fRs$a2xgE&2J@hh?}vYM>0N!CwMPHd z#~9|iG|R<{8_%k`Q)+uUN3$2Y8-{d|hM%X9Y5r`+i0Q@jKP5=M^ literal 0 HcmV?d00001 diff --git a/internal/ui/dist/assets/ibm-plex-sans-latin-600-normal-Cu4Hd6ag.woff b/internal/ui/dist/assets/ibm-plex-sans-latin-600-normal-Cu4Hd6ag.woff new file mode 100644 index 0000000000000000000000000000000000000000..0ccb1f182740b439a4fbbd64b4f6891cab1dde91 GIT binary patch literal 23876 zcmZU(1yCGK7cNXlfZ)L$g1fsXxVyXi;_d_s?hxGF-6goYFYdZHi}Uk-cK^C}YR_!- zQ>S}+P9N=QH+eBJh))n7m#zo|@<0C#i68BMA^)`g|ChLks2BvqCyft``GeR#AAMmI zSCCi!z#<_asB$16w67h7Q&+{6RfQlRXz2dU3u)B-TrDfF%*X-(K^yeZPwRsWti528 zlvRGJd|+E2ZK;27{m!5K#sEWm2nf1=`qo20Kzcj1L`It%I(=aD|L`IFi(nz}%xyf( zKCm+g2ud;t2oVX$PG@KfQ$rI72-R;NJRJWJ{#4Yv#RvF-Nqn@4KZp$G;VY5_z}fu+ zv-udG6$0W57l9Z}m5rV82cLS*2ln-Y2oJx_PXY|xKc1^u^3f0fgT8+vgqXE81ektc z{U7uDkQO8#i=@t`y`7Wu$Mokv+O{9#0nmCerrcK%|JI`Te@BO^>6o(I=bJ3KahLnc z(ZCk_mEi~X0DV?xhrrdT(H||E&?X2w05tB$1Kd|5XFoR(NJEIsDBsxH;B7VmfK33_ zf8Bvi=eH_n6|dnz-YYVudXxHQ|U zD(Y6#y3}6N7PHV+#>2bTC*4(;FgvAAiim|WC%)YlIB7H$awC??s;U<7?W?B6qpQii znUQqo9SxRn&I;GgFoKlxI)2aAS{YYgJ$aq&x<>n~>seGcgI9RZhwfRmS(D2^b}JDb zX5r6=_h?=To$DLcn~jVs=Ef_#?NX-Jz`grCjV2(JUc%;vrPIn7;Jt6EW&U1l^z04? zAdo(wXQ%vylqDzMPe$ZAmP{!=?aT3q7@VU$El$Y~(W-pUVZ?dZ);KX@&Ka^jGoHC% z?ITP_JYgYQbB$qwg3lm<7>83>;cs_M9S?1=1iShiyJ9}O%IgAa!(?u=suTOX?Sh(WlDZ_u;^vd;=Bcz#h1*@5-u#@W3ZhFl zXnw+Qy|GOPi>A7cHeU$_ZS|b%%-p;sJb#8bx_YmMJF?Nrooinhju&Z66T9j(=#;1H zWQK`XXJuykp&Pm&^t*=kBwT}QRuVQ+G z1Q^oU?@AD*!qPu^SmMGfbYwlN_SG2j(J@-Gq~;GePG*B(Eac3ya`5`xlTaeJS-+4q ze;N2GH-#e-9_rX4(D<@W?X_2$6XfvUId_eK*Jbg{Qi zm7-l0`Wtv5=la=eBq1lKu%u`~k6{*R7xmn}Y8RRk)s3SpOm*JeS~Ak1T}m2PGrvqt zTCupWbV-TL!ZMt#j4dUNgC31vc6@)8jvRR{Tq!Z4!C10{Ew?5c@yM`CO0ndYIx`krO?5PbspYJQOZkOf zs2I`<*Hl76nwV^9mlmTg)juOZkxA{*B^lg zld=Cg<8t7eF(yO{FdNf6&)h5g-e~m?U%`=IRJC)0W2Pyu z46Jf_f&W@%B@$6hB|p!FA-{X`cakTA(OJOTd^U~uL3*)RRl?~$bQpKG3fr7{*c?iQ zb{=>Y#EP_XcM4wpv=ko{2of|%N_Ysnt+RK-3;pCyc;huR?&kN(%*whMmFpuzO+V4I z|5`*-^=hddazZIyXUdIPWS4lGiGwrRF`!mC?~s$nYRm%6lNTx= z%!6=*!+)4Zc%=%vmB(MnK75XcZV^E26_``Du!r(P|PvHkMF9*U{e{jG4y6JtnDhO93*}sh`ZL0GaJ*br$fTZAF>w-A z^d)=8lP@ZIG)R|gT`_}wKY!n{ElW#wQ5tl|s4hH#J+sT}!Q+8+Jm`r*cA`T&<0SWr z{bP4nq@lE&IyFltWBOO;FBE)_2% zu0oXhsAa9!%dQGOnso=^hW%dkyNyHB7jag*7lO8;W^3z?;tjXS=MkuE-We8BPnuw4 zY%6a>ZY(}#{b5V>+Seo4KD%K?v2m4cj|DvcF%=7GyEJ1rCC0}PWy8!~0jWc_AWz9Q zUD)NDRuN?JDK&-4m(Q=EOyw`X^!ZiN5in%!@^PGg#ToGA9s{3uox$;gRo_!Li+j`} z0W4xFq9^$PUe3x)}`Tvha~rzB?2J-R&$`{Glay|s@1QD8KIdU@|Ba0hy)zFo zrkuwuzQRA}%PW3Y=8Ih)3rlWRjWsUAKdk^q8AL?BAJ1HQhYQn*CGc`1_HJ?Rg5Mi4mzP$)AH#{yKmkYPDj|5cGJbSNSmMp z_tkTeUsj~&DRCy;ycs>!gbqx5l4m)w>tViYPEsNCUHmDpJ=eUWQ6p|TH#$Q%s!vQb z1~x?r*%aFY?)kl%)RzuR?bdkSFSFfJ8F-nw&5G}A&lA-Z@UbLO$Ys?)6UvF!rg6Da zfph@H0^~r{zPw2)V>V~8@&Q78VlV-t>w!pZ#3b?g=-nD+jJy9KR{)lKAgf0Na*Krd zE5iVVKwog6ZR=ia|1rw?!^o&5rGR0*UNAALyMF6KA8=9QulljpU@v5%&W-eRd;O`exyu38fXd%xhWeJ1}de zAZ?`~2=F>9MUc1RgG7FS^Mu0v?Um!Lp?V8G4O=iqEH{8P@zpLmRZ2B=?X4W0(dMoq zrGKR#8x{X5pt45I6V*;YM@&mgRb8?vMYXaX<1E)^@U-8pd$`hkSxuo{ZJn(!PXj>1 z=;mZ9u?`M$2O2LP$xYNRM=#h4usH4yKa%EdABKWC)$qXK%2DT0y<5eB#kfY(0;sru z1ntjznqD`fGdA5E^h=v(-x_>utZmDuUm88MZ;qaB?xatFi?5B()?VuB>XV6Nqw>ja z^k6J7y?5#+E7%%zc2>WlTQ9uJk|ZPHK9rzG?JM8Sn{}lEUeh?)V$6l7ZosAQi~_f(m#Vgwvj=1zw10{;O8^N8++;zEquEUV%gYX zty=Op1Fm4C-(_bj@5F!QI}qw93X`8DUFwT3(TPqSlSq3{;CLsdT`E67h2E}R`4NM3H3 zWG)LUD{H~hwE*r^u&KhWMdYFPCa?LVyP^E$Z*XX&!1&kvNao2e34>WiX*g!7##vC9 znntM@J7kfmD#GCn9;_xKam7F4>Yiv+N^3!lh#V_M+EEwX^Z~kxknLobF+kL13<~=V z#z}aP1y=ieLJ!fev9|Ud?Ima66rPW5k3+0>*gW~QaF{dMwPx5^(y*W&MVxM@2)_9r z(`XM&4U;fawciO$W=gWuvxCF20#tWa0U zbEDCbz9`GE_R%?w*Y}V})71-Q1YM9vrIG+Z2%3(2)CvVA(W;9jb2*X`98>bS2WMgg zr?(d~xDTQ&&{ZQ{*_;o1c>8QySO1JoR2dk}u;lWnOW;eP^I39JR`I&E?n1Rh$#}uq zdfsxnKs4RO7*I2U2^{pQ4qs=_*YzM`zV`w{Q1S^3Jc5Wa)4N5I-X-_FGP4C1+yZ@j zPxy)K@e9;nJ)LFWdmdXi+KZwDOu7ukuuUT!DE_d4(C5aP#_(_GYKBqAD!x&cW}#c& zm=DL3$_J2;v-2}j|9jr9&VWto)OE2i{XXOZ>zh zu?8W(!W-r7QGAvICelcjK`u0zu9M6Pr~2nQZd#SnEBgjk?)(RMqqVi9kJ(P#(0DyN zHqZ`u64)0{oseh+Y{pD(2c&ESMDh->v5vD0@xjy8^|R3Sx3&_c^9m>9d%&T4*oIEV zZA!ZWYoz@qXXKU_a4z)b!<-zfgL#N}+8TudziZ{{BdxhOC%gH&Ixk`&u=Y|JN3sS~ znRLx*%MO++6b?#PQ5bI$Wg)wT)bO}{_IPJd$nB6Xt;-*cra`_dyLFG3VEo@YIBHe;F_pG7j%AYwK%)=W z@_ttx@UAw+r~k;Q5ahOwzZHAqFdoh|344)wJE0t1%rCfG#&`O9Q`cfJc!_(%C6oXB zxRr+R3=5W9TJ|3bTr-tjJH>66_e36kMY%yNHU5JlhGU!oOEJOuZ(-(JxsSiZ+-yVjdZk?(soWlu_vFm|^(bOJd0cPmdB?E1P_c)Dr-|3&%Y~wBOb0W-Mx`9g7 zPdq0-e6QQZpgm37OnB`e=E|9?{_>d+8TG9Rw(8_b$3A=VqS^MWxsx|EEd<9fk$EuH zKnYR#Alo&=FqxZBwa-b}W7Ya*L)##ZJXw=iu2+ZXCN<^;RzOneoO;%3>OT(Qgt5F) zC<(V*Pdi^Okb-{I=JZ^6yKQ+wul~#_l6ymow7Bq@XylEtEnZGsJ^qd)ckHK3nyjTB z@{>nk`F51+=%*N%R_SZ7^E>5)?&9>t8K+-e^xH$cwZ*Kra`asEKgw+UQLTJP#-p14 zzoyoNZrN!1A5*(aTF}mwic}LN~lWQ4zw@hG5>;e?Z+xE?(b{ksPy+7sah}kJUS0e-vg8ZoU#6Yf z_O3`FxOKWDUoUomHop?<>Tt8L*-Ft_!EgAj0i+D4b zu#6A)nn3?JHGJG>Y3z`CNg&F+21cBKmm+2tn_*}E8L@Mu=1%U=&Wz-`-ChyWZ@M+F^$iY)uF~m_N2UWGj zR}Osju%Wh29xDPzN`M#42h1N~-qUc*n1|gHVaXPU=Of4v(fXuz!bt5 z0dr;b)PP6NHUcu2gV(A4Cd_6H2mqfQAYdH6hB|zilJ@(=xI>PwJh{u2n^8z5%uS;J z%Z#Z?YZry7ar(kjmt~`HFIERTG0Cb8w<&H@zZre$qt>`-dJDIy!Tx^iBAd-zzWGKv z>N|&6j%-Pt+T~*pWz>;D5kBI5_3i01P+8|06R7L}1L|M@`ufY^ji3p>vU$9R?pgFY zy}URx^syx-QcGh8gZyzFt3pzQzvdt_B{*va;& zaJcqsu2~wq<%On8Lw5GO)QANwU{!dCa#nv#cMp&-- zU*tn-S;MoMK-UO%?deRs(?G5+`6pleo}c)=hWG)?ow-BYe-HjA$GTTOhAk3?ZI-Gn znlg6;qAfCP9q3NP4$;w|s?{ z{!_qE-g(vff7Dg)@q!e*3xTxr4QcmlR`DrR$L|#T$gW*%S3o-Gro}&^C1|YWS9yt9 zOj@*vpmlj12F4L0{4w5k_W}yI*C*OX?ff95^=MA(p0xz`0jAQH4W1(0wQ>o^u!+XB zT!-?hMITmgB!20z(1)@ji9N{0qzmy>&8d;v6Nb-ReD%aHn%2odTBTqRxZv8@eu>1c zcYdO**o99qg9U=hi?e#MXTxxt=8#>@Y`Pfi^h`MZjImhEFzp@>V`WKDUa{{u8M8Ro z7yyb|4w_j0Rk<8OaC`1@pm<1-f59a;t^S{d@0H|{uia*w+@hQ0b^V0p0Gr|frG5q1 zt~X%qPOxyMWVg+*#QN<{z~eHSNk1K-9I1m9N7-gGSMX1f-YzAT&nTE(-Gy3T+IhTo zmutJ@f9u!!_RpAQx^8wIki(p?WN|`-gFQT7;Vn`;?OI6f46OwxHY1-E*!B8n4b>s` z>p%0>!nZ5_@>!1g%=KHCE0T0L(QLU`bHQ0Y9ByF)-&mK~uVW~Q$YgaL9AOKKu5K$qt8pm4e1EfVo^@VuIr^ zJzp-|<63v}>3i$sRm;R$;iCL>Rvv#IKS5V5(Sf$3by4AhYkFgft0ItD0rzeNGz8Q8 z>VQe~kFWH=4s@s@Jd0XRVMK}~uPshIryndR{X_98cWpb)kvEC5>ohRIH!fbw(ve&ped=J0vpi32Mf5iy200rRvhU91WT5go0_ z(k(1G;+tbDXMuON1V{Ks9L=_oZH+sG{Q8X2&-kY)_lGlI#p{<-f1pzDanWKm*Z35) z;Rf>!i6-1i6%Tc!9{H5g{FpEHmpl-M0sVh>W;uIY$D7?Qqja;*gTFW z2_WAnRxl!7lx}@`oeJE8bj-!o2zog0O5f#t9=;@mSHo3RyV|sJM0{jmzxzo`gq+GL zaL_h%^@W4#P|T*+%;v9}O`mJiS&!UVuWjO%`5a)qLJb zq59j~(1cyXed55a+#RWko-KjiB584O)IR&SoU`HOgxGB^(XPc4ovePOwn71&qxV;KEeU!} z@x?Lz+p(7wp{6TE%9UW-V}7;}FmC3Oye}2*-$6QViVxj1G_%Fbh~Rt9&twh37mrTi zKzUST88@Inoa~tjWpDLLDpwGh$nl_vF!vCw`n^zpm*HeVPw1{9?at9gglv@SjcHiR z(fLKX7GbQgvWLc_`sZ0^SX6P2SJsa|6ZHU64nx)^1KK7-UZ9%+rK=&QR1Na~ zV!7Fwu=U%h+JAfsE*GjQt^S(1sW_quDKKq%yo&3WQilRm5%YSbWlVxXs~XclQ6@hH}jAHB1gAI>sszzqa8_C{Mcx1654>Qx^dlRj%6fD+z* zF`Yh16-70U(Z_42-|uHi4xQZE-C0cQ;f+xED6*z&iwKpoG}YGXR=5l|qUkny-8mUn z^~|O({7|)!SDggqbff7?;cSGF2g*7gn@bX=-?m4OqdX6EC>qPDF;+u+uyg09Mq?fW zqTMc|Yr`i+blfg6t68vSP01M$g zBw0j@j>nnnM+PMJiT-V18LY|pL&dxMECHLlb|l`Ex4H>7^2s;o8`xd%k?X2cG81HNs6bK+ACbtmS^l^pt$N<`@6RayUQ+n{tl-iodg9y8D%l|N2)h znv27v{eJ~D8O`Y3pt{6=C#Vg1oLOF%s+HG4+*CqDltSaY1B#i83*n1T* zB(}PU-oSz9;0{4;#BwNKf-Q9))|DR|lJMNCcA>-ecQL{pF@!cL1A|@DgqezkRaPU` zs|D9?zpogy+V(vsfTvC3!Cg*8^D9abns+~eX3MFwqF3XizN9?(ry`s?YPtHI2SDT9 zeQrg$ZP@ao3=^+#{Nh?e9xr%iVQRDRLd~7B zyTu=1_8|Pox0C;qZ!6GW;NH*k2u2E9{2&#YsH=v$8ZGgHEIbaJNuyx3OKzK+r!lYR zbK=a)J{fQ5tEYRy!qv;&MnGg|W1F^54S`og(~9h@H2VTrwdWNy1BqCK@3iegt^O(^ z3gSK1Kx3?-vV5s2p9Ts3c$$)xADyS`XAayp7wneDF3K zFIT7+EZhdLMNU*)lkaH8oQpZk6zJPhXrDFHc(qHMq7JO{E#;fum30aLU$0*RsUl)f zB}jt#BL8x^${Iei-SK70SInD(SiFp_`;Ua0=zERIe@QQQeT0}QXOLCUjOx>_J0x(w z{r?H5*tWriY4qFc-X5H}E47#`T?z1ZIiV#NN+Gt-{70s4L@V;qW8;mu^M_v+i&)%> zkKLh{qJ6EnS>lUtD)m=;Gy<{pgE z*;^qByp+|um&IIC-m?$o`6z(qqEsAo!Q%Cn>0`z>Ohf~V1|Z|Bf652Z9TK`hR6=bj z2GSI1?Eqw4G(w|C<7mNX%9<>CyyX^@^co!P8Vq1fCV;mFt-S`1d^z-$%Ri7SsE_Mc z{x!bs`bA=0<{(anXk*<%cubqZ9F&!(kQso7K%5~RIMK_SxVf%j7W4*rD%>5q(!nE+ zh$-%Ibq0O)s;|`k2eX;Sa(*ZLncSsH&6_Ixp=9fwmFqqebn#$6zs$Sw)_Cqv1@yA4Gy!yvs z3M+TtLlyc!o@_@ExPfnyw};f~i8$%Dgl$U+;@xZNVw#RJA1QW63hyl<7Vgb3^H(=R zsSJ5JMVPr|qOK`wo)5Dl%^Z_!YDWx1MtW#bbwd*Ngwh_v+`X`3l}tHfKbrt`m!4yjEr1 ze6F6g_13^3lTsJ|J;mzB(USWOYR9%nkE^G-l=&m`eFIl#S?$^AUrTlt(yO8m04xh> zMR@M{toZH%e$&u{$zOR~hV-UA)e!3Fl_5p)SgYP289VC`UVU zwzz@Nf3DV-iKdl&baA@8g#DOQLZ${y?a#EH(Nf>O1B(@WMu=Z*Wq<0JUxOMh;Y7H8vo9*(pFn%*eP zm6Er56QVi6=4yvgeYO z@~?oC8083MzdxS5gA{(TdADhsaG+r#fe7vX2jVtbJIwG6h)k z+@8nx)S{cCRxdtalm)r=Hk@aTwBwB_3TSjL-55|1B@&;4t(g@A5gUDNzOo* zU;Z0h<}=^F5>SQq>qHU?IDo0R<@?euRU*G!CrBcWuMfpt;HW$4Oux%20%f}bw)@sY zO`vGZB_uI*^j^?|W53u1CNp>9+v5>|RM+3P|78NS zv--zSnF^X(miqgl;ky9_H_M;i5Uj@ zZpWQ>s>p!^cTB^5!j&1}gP_LAb4RwNjT^-%Z>t%9iiVttR$arQ6Wmq5AMKi?ULK-| z}zvdYz(`yOEplM}V8;@DJS1eqi7^-rjNX;3Qvl{!^ zwzNS9o@!Z$p!G^Im2%z);%utsNk&&5B?*xCZ;**^=2aE%$gM>MSLg?USKc6cZG;5I zqc*Xui#r@V-vL9N;i0GCTepXc-3ps*k?&)a;)GwtJHc2j_l&Rz&yD_|zC0lpXXwiBu{c6wOVbd&7As9vFElm+$6ctAnxSZH2pI_a+clK zYSKz;o?p%fmuv8-cxmqG>vssmHkPkb3c9$CQ$EOix5LKre1LI!YMRWyMHH{^X#8}d zZtkn}1GR`heqe`egWo|6C{pk`mG!^ma@A?b78N20&WPb6u>XElxMV}t>(qj@nENum z={l{I`loK|7rrAY!jHezRcXU=-VAnN*sgj$BY1zM${!+(RryG+|C}i$=nsGnRKSLw zzIkQ-%=DSb|L=GOA%*|%aEKH=K^`s=5D#Cq;EBd!GUw3R;){v(T$Wy|hdb<^HYo{> zA1hBGi@!Z&G7n7hKV$ifvqBJPLO@NkvRVV(4O^Q4ULS`P{yC-k@hcvUNnmKTKsF+C z7b59J1O0~IqReic`>c1@HDwa7PrjfNsTcDWS=@iKBYTxhCIylJ$<79It>J-?<%14; zrHKK<*c%8$LDjvnY?gBkGIKoV#+KPKx*hJ@JEC8zAA1g2XmjcaQyK+#MwZwm|Z8yK@9n z7hi##Ht!D4*}(VZWILeURp1OMiC`{-RBnKoh#-WBzAo>NTgBT{AX(ekyRVuU|D!jE zQqx3L%R}&Cw%PG3xUi zrCF+N2)9|8Nt5V-wn6T|!Et`r2U}5XQJQsbrJ9y?e!@M^QAr_#=TTX@UR!xZalq5D zo&V1#T$`$mN$%6g8{eyP!IuL!KRrlOij?k;W6BVa5U>z%@9z-E?yHTwPzHG7O}zC@ zrm^S4MokUzYBtieEF<5w&CKBDNV*_h3B{W))%MzucgDDG@ za(8~kNnnqyMhRG=Fi;Ux5MaYkQBuBUFw$HwS6yt@vEB|VFda4Fy+U`&6@3j61CmIl z_n{fwRdyYPjJP3djk7ovj+cF6@a_@CvCqx1=@Hd1@wfj`Qr5~uX$;G6Fc?=9Bao`U zh-H;kRh4CnbeD2K_56g!c3hRe51S8MdmL&yE;721YgrUtsFJ zopH^1;^E*F)cliQkOi82 z&K9+P^&j7LrZJ$oeRNhZR-ujop~&lLk?NX!Vash2))>kQi^&TMkKoy)Gruxgl}?jk zRZNN(W7x~;TG!O;xfHc#oEFHo(|xBlr!Gff6!yNIsgnliwjJezT(^-*pIW4DkE?d0-aSR367mwj+Y*smrjH;@g4lTv#pCe>2 z&>}8!4p?8@tE)fz1o(5#PT(3N+5J#b+N*Z8ZPCu zx2rEJeK%g0b3ty@}#zLHB%~mDK6DWe8UGlN$)y2u=*oo1fNG>|xs0Vbc}Y;)&0e+iiuk z(|&Sw8lv!a#nINnBpOyqOD4zNCvyx*qWT%q&)QZZyQ<3ih&&ve$tk^gcW`iWS%FHE$(;*9b$vnVTd?}MUUoNGl)+RP$H^iT%X11 zPKWZK%qa!!REvje0wXSiZ0jc!p$Y83KI6V^M5W0kV+R%7 z`6utN{u!kOR_f-{Hufa3N;&=SarYcB&wN2$nBhNPG^Mg?4S#Q%eB~ncbSiNwDy&?x zQ~~K~{IRwcO2WH)8j%O=5mEYR|5aj=sL;up`i)$Gg<~IDHN^-3KpQ(fH>wtq?%KTe zLeCEf;*^%w;7yZpF&V`5DiHT5iE!m`H>N!h;^<`!RSqu6{_<4cW?B;F|0O-dK zsUb#^taM`%WSbASe`{!~+YD=&V-MkU?@H6r=*}(v4hZ@_Y!f9|AFsn_zwAN5p;$Ul z8<1=;z^LHo#IpJe`98gAH_gBg5%TzqMR#PDe9e6Z?WQ~k@?U?wrGfP7-T4aK$JY(P zQBX@f*t0@XmDPXkRML(rcB?#?iILHU-w+KioLVhcP3K|m>-I+X1pW-VDB5obiX*pC zB!Pco5d1azD40KWQ%yWUG2h}4{SIT)E=3i+>y#LDX+d1U>?p?|5f(!f@yh&Ei`7k2 zTDzxhR4l*i^pXtY2J(&_=MtX2kUF9)9#0h45QK(Gh@%RmpliXY++$J8b`lIiHFj!B zlX58;)nLbdTF|VNWoWjX@)b3%EUB@&Y^8CYW!ln*E{gV- zvsU^!qw`M+hM~WV3Gvd8 zGfwZ^pMQ=ui^$>p2!H~La z5xnZ=^F(JBM;UuZKig>@?noqi3C>+kh{Gizvj6@7CVU%7#hGW~ZO71EZcAEM?l*I#jNvqii#u-AbG&STVLWlnh(ek(u4 zZss`M+&206ohsU&ml2kZon0LR7*fimd7O>j-_V4OTBiiHnk#+#FNjJv)i_UzXE_8A z*CeT%wWa%Q3yf>=5HdTK6-bz2Sl`OZ`D4J+AcdlGGfn31= z6DDM80z;l+3Kc+((K)OCGrp}T)xhbd*tYXcK`S|-B+(B(8{W>sax-sdDt|W9GOphT z2gzSVAl7`}hFUI#8zd&8SU&J4lrMqkN^X^c6wx6SxEP;tH{=GsyKs{~ZZoRY3SOFB z6W9eTGXmhET02pyLuSy?Q-Z{dqF8mfxU`OMYdp(!NRmRJt+fw~(MgmHW4>ilf8h}6 zfc47aequ}BZYmUa018;l!FNmw0r3HKppYT1@3 zUf;m^3BI~Xx3#e8Fht9ttVi7V6C@EXLDzO8P;QIS z`^iNmpljqEU1*-H!Q}_ge|fQLTqcsM<`!vn)DNw5aI>qWh3NHp$G0m@BN?qh>vi)| zfuRLZTxdj>{cBCNu>LL15a zQQ>OZky!K1ic4oq`@QS3D%UIfxfjy&HLl4|*YkG+l8`lR>YWHqUXR!T1VwcHB*kB~ zjmsO2k`1(~I1qKr6lFVyco}rL-FoXykMY9iHzmKEzq^$u@FHe-R_4$dOAuy=!?d5r z7y840mFFZ;{T&od80Gn5+0VD3rjJ&B?Pej)7M1TZ68!X5QXUN000P^ZBpZLuscGZc zMK$L#!knYZ_ne;9290<9)iA0l_^~4ijc3NK-Pt%sP+FR-f_7CRMJ3exqAe!Ijvx#L zr^v#F`1htb^ubT0tXf8X^YW~Fvjv`i#3_Bc@1?IK#ex!!r6s2rkuVVxmh!p_cTR+b zyXdiaNn-R|QT_EP?P(ylC{=9VQ&w44SD5c4tYQUv#&#-#BAdZml%=&Z&i**EaUNZ4 z2h)SQ4VDWLf}e4EPH`hLs^1}zwhz?>zdNQ<1@X-G(nZc)9$9xmS5M=_=5lc|1kVk; zDlBF^%#b+S-`K}bw9al=0c>jid|DovORE(R+*QXFigpy&s7CIS|9#ef@F5~XBTzwlF z49Wh5&zf&xLE+1=yH~Ek)m$EC9Av|gKc=R}UDYMe$o?EmyHfC-Kwd9De~zYaFzyWL zx;PX$LzA&?V_g3e;Htk-U-p!-QnoHDDj@ppQ;WS4y9%oF2+J6Ph*PJ29`rYCvQ}ZW zI6Q3o0RFle(hjumO^XH|4e6&F_^xcc`xr&1&tzi~SIBLv&3vYzko%~zULG0p{{LxSpRow(r+%oZwX!#7) z4drl&gY43N^rf*I+Ez`LQXMGMmV7Rx>jBw$xTU@hVv`cFcZRM>x-^<><_&be4SLrK z&4VAZvhn#kLE)j*IBgzIQC=ks=u=}Uiz?4N>ma#oUZo7bV6pSd`wgbmF1O)RoYizX z6=o@@eAmab25;H{8dR(>yB?i5;u#wPmKrcw2k(Qboz#Cy#_`o6P{9nyp@SJwdX0Yposns=?><^mIbTSDca4}tv4IE zP34eIOS29dg{x1ODwObQLtW)9aShMYC?mkxRu^jA)e4^nf9_hU37^M;w=cuimATq1o)*TOvMt3E zJ)2T##Bkv8D2x9{51mx!2jUaiJXZ-}FG1pFsJ;k$zBv`))|k1GA`*f&Inyn5O6MY{ z+A%%z5y25os3hTv87uoT{26Z2$WKq+X}8kNUG?CNl(Fyk_ZY%9k?Em5}| zbwQLlQNHw-^WyHmuA4=SztBF3_nhQB!QxB#!{hSGy+%JRp5V4m06tF6X?T-UWWH+4 zC6F{2aB?o+5a0%nz;fj>dZIq@ln{S9RDh;bjUYS1@Ko357sYEv_w_qC=TabcvJ8!)2eg*DwZsSSv3VmAbfCJ#qf6ay17yXGl3uc7$ zR`HL4)Zxp=&C&bCJWg5s#fnQhC`mrL^Yw(nd_47%3!jjw4JKQN;|L1}Tal3ac789Lmrzlm0&-Cr0Q(BXAVAPKjq zH8w<3wsi`;PX{gRYfjPv3@7&^Fzgbr4Flkr2aNC@h_Nlp}@fM0M%_~=7y2V=P3e_W;w`wsz$S}B+mf{pOx2yVVq zcRSTsKU9%^0@prMCwjs>r4PLQz8oqL78pxqVo|3j{d%vSzx?!UcOCu})PeLZ1JyOj z|K}&{p73j&RCiFJ`%c)#M*8uoc`}I!IAc}*wRl-b?tXHQ1o4vS-P0Xf5Sbp`pA?dQ z{7YyKF$`KrNv5w0v2BygcbrfXyv*DZAORvb=RNid^uztyxQE}~9pK)>cW>X!R~x4m z1N{I$(eum- zZZ`ar`p7Y*DosWHX~j9D7?Pc`n~~We$&Q!3OksVPzs>{I&xzK0TYpb7GQ5&4o;uzQ z8gGI6 zB;};U1Q2wDy;E7q40g5x@cw)aR_`G<3QB=(ybQJdnf~U94ImNFO<(oD`9b8eryH9& z4lX}49Jt#&(bja}ABF>L(+p?8_VvPKB3H-29O_K0iiHYR*r)Ou(GS}9pF~$gz#Qt* zuR=Fd3iYr8+RNrD^@Xg$n+8j{IFt;T)`6|>T+4e)=v1n%mi~AXoUo{- zGp-E?MGZpGYUbxDXzJ-2-@BGcEdbuj8crfGxU$tAZYlIzA+e^Vstp9;|6m74W?Y*? zC*X6%{eJ;v8=BOagL zFZw=jXm6hT{N&{4=ftxAKr(rtzyDw|d2np{$}6W^hU60^wo04RX|p)X#uY=-iFq7z}^^v{8o@3Ka1WnoW?r=&z$QUZ3TL!ZYH;j}_StTPPcl?<_8*w2$l z7KP0%qkgcb>sKB3H4W9}*Y-9RQbl+$!c%pGbN?5Q_17I$e#)>Yd!FjH%>nY1Q1y1i{p zX{Ff~3q~V=TBr1xovkfj8&|8ODuq!;=sSV_5ujf}X^FO%_e!~Yq#q1UPY({vOb-!X zu{ojF{P_4hxsrZYy~{5Y1YZ=5qb~^~XkLBvvV#X>_YyZ$RW-zkrJe<6)a#u}r4x-; z4~Ij;)z!nH@No5*&TBAuwOX%1?-Nc`-Dr;bnHV$WjGX)8V*MhTL*uCwsX_Najf2`v zRv}P|>pu(9;S&53B_~l|qK5U4L@i;-DFh44oanE172*@tZ=yX@b9ioQFZ!1C9*keQ zA2-hj=#Mwten;npVBA*4unu&q|2p1<2E+r#eGyu_5kUSr8V{9Li7 zOi@jT@O73-^PE~{Mcigg?2nvqK(-d zhm!ZB@9~={3^f#B*bf-Wb8*O_T?WrXr1=96UirWSSMn#W1bo9(FV4qOfi6o%B}&Ff zjsEU4pXtbad+)ld^UgavgfB(WK#9Q$+z59v$}IAcyO_#-!V10$efOfUma^MD>0f>` z|MzyCT4xsubmQ{9Aj>B~${&dH5CZ(NWm(}u+c)#)2={ZTzo2*UAZeA4!bq8~%t!C= zJJ2oso2V=wp;1I#|24_ia$BmycK9IW94domx8#2mT3nx^MxfPN>X#Ict|xo5XpRi` zyI9r**DqmjW^uVJWN!xTTc{K03Uv1J_TTGkY3YOOL=w)Il0re+$EZGG^zwxf5@g!S ze**oo??EzxQYwh&@J$p$1w`9|@etgYjEZPrFgAii6DPXtEq2V=s$1K!ehvJs?^vsA zb+WCxb?xGF`#N1K8>p!X1Z!$`R;*cLOX0Q4e`B=0S%7mYWqrlXOXW(A1@NmK4y>%e1MklN6 zpD#lzve1{8q4+`;dhzG0VR&f;v^fiXbp?itS?GnI!{`$zU4vDW6r}AX`YKpXZH#i+ z=~_*!JblK@l;PD=Bf&W1csVl;%??$ETrBL#u7k`si-pr)SJk9~T(~4R6e}qx^7q90 z$D{d)wPOQhdv?eFbof?t!7~fAg-z|-8!)8c!xBXBqM6( z+l%r_)Fmc3gs}vorQYI7m0YX$tIKBR4`EeKl4466?W1YB(pJe<7|S`Sth7w3$;XNE zPwhH%D~V<>76$wV#R&YVCD|j(tiuBnV(4W#&?|lUrtQnVE`OUNzO%D$cRjZ@9_dsT zNE5X)r7xg?Yrf4y<2eNtK z0a^nbDTUT|2y3?&Q)?-Jr@jmD7ND4czmkUk4B)juGXsAi4NnpLEAYHT;1m*a+X&r4 z0ERg+x2<5{NTU7OO=1$8$OA4EJYobh;a2(t%>X zzcVN;P)s$7IdOGUngYdibN7}g|JCMZNT_YC+&;aW4foS@bl}gb9a^@k^;*c8Yj%5G zJ}~xdnk|_ZK$_$Db*ff4F<@3n5sRkfkTGJk&oB$H%=rL5zGXB%W9-(1%@&8rZiWM( z!S>qv`r0GCy$#ztJGa$^8IRIxG1oPIeQ3SI*=5jKD)r`)qGHHsiuae$P4)FnORvJr zke}Qb32#h}m1va)ZE>-zbvdi=d^W33_P@#MqwnSa{k_xrQYkU(Ot4I~XxsluWuX;W z=*!Dcd?5?H2++$hyhNZRyDJUVi+F#TfdYms^dfh)KOgm1=Rm z>D^tQ&Gy2BnZ&N1alGoBQ#^LZ)=Ux@k+m3#>x6s~Q+ididj1z#-j4P3q^8NbcKYDK z>Q0vJtUh?{wJ1D?thuRR_sxNBvzQC0M<{p}v%`dOv4|rpU51{?KoPY9dOX{9NxB+_ z6oHEQR|3>7;{67J>H+$30k2)eD?k~5epJ9~7x8{$H4G^N74w;dwrHsR{D+z5q zBDL5u^h^eds1?xT*|tlu)iA(RM9~2KC&(yzEffFq$zE&KIe<=kx)|{@O962I7psUud7&s?^rJn7~m+fs1V<=PF^il$_K+UzUzh|;Ygv#-r{-x zM8hs!K=FrL%1Zg-s_}+h`f7M6En7vRzsAxzT=ciV&NV`go+UTLXFVq$Y+sgLc+ubD zBbvs_+2cJu$7d^>4CpETjNnUMOHUYUbh;Yj(Bx!60c1j5_2r?00^(Ovm>d30Qm}Dy z+vLXOj4m+~O3Vv>kDRWfXD-d@`bcy`Q_~eu6o0+~GN80pc`7Al6$#@K5J%QaWua#> zP(-bO9?!O20_f!!QUoey>^5lBkclPq7z`_(G0A!A@h2{iV>XLslNdwTl&dwcsW8jYn=t3`?V z>8bhospqjm}tOu)0+* zx()@(2_CL4Au z%kpFzwK8P1M0|`VFR#FB57v2%oXV_I(h50fvjXHvW-@XR*)v9kgDV#FfRtnReRgXg zFjlY*b+&i^`acqhW5OmO3^%HVJiE17t>rYoV>6>9Z*ZJ|z2w66pW1jH;G zc_z!|k@X+l*NY5L<4)Y%L!y>h;O8+hYKa`Jo@SHFmO7WoWWSp+*xOqY?REp>?r+!Y zbb779pf%|A2Au(9Zm6>Qit>tGW=|~UF}sTMihS0phTo{c$%$;1tmGyK+8~DNB>=*BfY_7#@^sWLM3R) z))cDk9Guf@igbFtu1KRNUYGha8beo!UZ?)hURSW1(}B+cx2IXK&#mw{Xxj*s zfv)|(=W(6H;q2;Mha>(5vcv!*_*?Y9<8Q1<``-R$F*$y#F3*!GS9Lcf9FHm~;%^`g zq(-JQ;NH{UR(cz7+YUX5w|#)Kaqs7Ce?<28_BNo=1vCUZQvWZ!t>FEf4UttS3IHAO zHSSVh%X*r?%T?L^;fM6J==*zG+QW2dk1JT+(OQx;`iM>IsNumfEsYRLY-^0eQ- zkE5kh#5d@K@HXdPg`A^#v>@#0e~R;{OnqpT`k$j$sq`#Nv-mNn|MztL+H}2`74uyX z=kxe!A>PADHY-uXt}n_;BrG~}p*`WG^S0*av8_q`^o3-r4~_EO=x;`muQf^frrw6W z=SbgtHmX)fS(wHp>S$Dr&ioJZse`wHAw3sj)8K{Xbwt)XTUHeVeuu z?h%Z7|T_fPS<1pL*#1|5MNFXtLXz9L~7i9(NLpg$r{`1IsorV%e(K znzVYM0Q#>0{e!fbk^$z+^3RYD&Jpyz8hxQwVZlk0zSJ|IQF#osMNy(RLGSNi73#+4 zMa?i#)Eyrw#OMF@Ux{Q-rF`hylpa1*{w2FgZpDrh)l|o%p5pZWQ5l!fQgw+D&N08g zVxzceB(r-Y=V%>xhB^yYDxog$KcEO?0WVUw;p)X0C|Z(D3rPt*HOD^HJS71%)5IS@$EMRS(8Se@Z)o{PJ=#fvQ(~v)@M_3 zsw4F*SQ@3wu`Gub1h!b7uxeCbN~ECZR3Gl6PSX!&-U`YAFa18&dDEfxb)O`b=`@?~ zPg^K`_>}cg{)@R5D&A3-Q=q{fCGSI_i3WAPQT3V;IWp9KSLnHJH!292h2s9$RS*>X< z;Vv5yE`mosmlF}_TTeNJhyZolpe`pOTs##KBf<+H;h9yu{mk9m;vy${`;P(l`Tvf$ zvyFCpBb)K|9}9kNwUUxa7}aKt!Jsj#je>pu8tnVg_q1<%?W{{r?AyFv81FZ!(|IHR z8;i}eoMJ?a)mknosAUTO8;hm)pW?t`S0RwaFZo|t?5UZV@4N^9uuApQzoIeRk=%Z& zh?a{lNEz$$x=dIM3 zud8UFvwh57XE8BVE_+FJfd0sL%&IcA(Fhq^X6nBHD9s!Y0096100T31M5l3)Uk^O> z015->00000))Y|E00000XY?SHpfC7E9^pa4cb0H+EE5dZ)Hc-oE91FT*_5Cz~fyS1Ke+qPBPwr$&XP%BQ2 zs8&!rtR2+;dvc%sZt`X3u6Hx?2<|EjKB_xHsHGD48F?uDq%Z802b@&^wMI*^LYi2a zeyK?2zG$hZb9`%x0_QMto~&TsXSm2zIIu5UHA6EU#dX|a#k{e6<6gUAqqd==T8LnhSG%g84dFs_AH= zy1|$0`WJ~Ldvd2Zil8J4p+zB2h&$6Ku3y^QLv^MIf44* zgH0wokUoc4nU1AGDwXHj2_J2RNVx|OH3^P#6v2Eaf4Pr1o+*%L3RJ=DThDjrohXj7 z%IH)kAEZe7ps(ylCi8eT4$YJcg49I5ZA-4zop+l9J2j42A63!)8Cfr?4d=05%3`gw zBr@HmCuE{uCG}EP608-YUd#Ld_hT&?wNn;r$H3aDiarS#^>h+V46La#jG7`R@}ijH zda8VTFq8E(=WX3`6e(gRJTCoE+koMi~*!$yX)e+c{PI8OJ2na-yq zG|{7RTNBSbnYPjFA|GfEv7MOHM><270aHGWqV{x-rqCujO>K)Ab1SaL2#zf~4j%x5 zd|{kQWj_4|P5uLy2EBm*c-mFLQ=qIs007W7w@tPtJlnQy+qP}nwr$(CZQJJeJqJM$ z1*wXRMh+scV^OR|tW)eMS_SQnPD6L0SI}n|#PVZpu_f4T>>Hj9uYz~S$KV_BGx%!) zBYdJBF`8IU93yU#3Ym&5KsF@%l4Hqr5}wDhH^%^m|RotD36q9$WIigR8}S`zf@l>r`A-PsO{BW>QHrp z`bR6R&C!-?o3y>!3GIsZKzpP8&#gwadT+hIkcX*Z zN!S$*f~(;b_y~URF<zil9a?BG?k#4PFO7LlEW+ zD})2Xjp4(Dqs0FK2YI3cc-muNWME+AW5{A)XGmjU1@e#qGXo<46{rC6c-oDRGh&88 z6h%*LG+`6lwr#VD{o7bh>MS7(OO;!^m>=ez`!q8^E)OJ;kemS=CUhGo(43HNoT!>7 z<0OW8G){h3lR_!?#;Md3H_oM-d9gU5j%FZ=Aud(jMeC*^d}N+<1fyrUtTCjIBsP5Da# z;$ytlRgU$EtdsIDol{ab5xm&#DYsJ$h-?z7!i$?$@dS5z%ineQkmFo>E)8yx{-15jPpZp4lQ(PA3UC>NcClr)fA@QPIcEv@PJoLzI zcN}xv0g?7ACPAV`niyb^Y#O^6BE=f$tL0W&W3{z**=59w;(RmQQ_sEd(krjMF~VE#jP$`KXPouRN1u%H*$+EHynp^n z4GHN4!NUOq0RTn8|6<#=Z5&fy(q6nxEY3Saj5rCBq)3w?OO8ARij*i*ktJIWRcdN6{xoUHpiPG^J^Bn7GGfexDKq9QSh8ZxhAlgJ*>m8?i8B|jLANTpz-=G~ zq5xWE?mZ&IqA=)tcv0cRQ1$kK@ehff*#o+xXO8j5mK2YEF&2WyB$EQlyOB4`{e%gb zJ`78<)Gq9$3`Q`92~1%I^I*mxhXP6%!5Ahmg&E9Ao^vQas&Q>Jzva%^KXsM=J^T0m{|6Qec3`I#PKXhh0l%_}po$hihz|r6WF9ag3{+sd zM_`r$bO;^*AR7<~a0CYk0ceOFc!VuXAO*JZ6nUZND=J1CEI{YZ-|qIJSh!|8aFu!H zHd`}-HI4vV@A=&C-(O2f_nl&>YkHa=^D?v%gkAb3s2E*%g;v$d^n&$iGdI3T zO!XvS`_!6aP^z$TV}v>Iv%6o;x564ln}Y)Es}U!B5U;jgJ7_IledeXFK^lPfrzjH$ zK?)Ypt{ii`0M68*fWd^U2B|cfB*r6+`RYpmk&(b+p>tm0ni?MAkWu7+)WvisC{G zbS$S5apJ0~YCQZFm`4Wo4Cm=N0e<5@8=8D~(+S}fVG|c1V3opUY>1LJp81{6KO1dk zrqVPjs8Q=cvN%8{0iU>rNtFV1cwU@f{&@4TxWsPpj1R_33Fi zXWhZu5LLP7)%k$Q0L`EdOW-Tu9AFXfBzV^3M-WH`JOgI!H;;{3d>+Me!-cXk#r>LU z71Vp+qkl9Q7KFcv+8BI%5C|4eG9R(XIgJ0~P#@qIFo3DGE_fsAQQ!Po8IWf}n$A*% zqstphDBO7XM5P1ut`xn^ik9EYoQqg9lzpQeg+#Bu=CUJhF(GJeqi?}J!SL5L%j9yh z0p|ri0Xl$~VaomMMVr};+CFCjTqGpAOCJPD0~jXv_vKT+huItU@|$~YFX?XXq;S!L zpGE3u*4K|=UW6$!cM7YjiWKdfoT)0gNJBbBg5(JVe)m($@;}lmzg(fKSpkJ%*g}XYD2Al? zTs-`ST{2*sQfhg6b*Jb+Cqh?I-cL3TK%cC`W%xiFd|8O;U~(E9JCyq;66fOSb|uw z$VSk{8SH-CUPfUsP*4CDRn4f(_qLAc{c7ZeN~rGQRBg{s|G@*-O(WmO7~zU&(xl*Q zXR9@D^HQRh4C^=S(_0IilH_Q%gz5sdRXG0>^t%%7D}LK`TeM8q zWyz1*)@?~^l9pw2shWA`t(t9NPvF^A(VYa?94)dqnWgJFf;w0xwzWabXN5#e;uMaw z{XiZk(ZX_p`810vCE6yQn&lD0g!>dDBFsSh=T$@r$dp1vJ@0k$?Oyus8=2)kLs_j=Vd}@X>wA~J_xj<@ zi|?cF@-y9wq517|h4bV5Uu^9*JMnBR+x8tUD=Gz7Q&cqtwKSJeGtq;$!{kiG!El<6 z_Ch=p&}hG8+G6M#Un%TZmlm469^RXtk2MO+hv~q8uS)7oekf zjzSYyzGCNa4ylCwGAC^b!cZNT*ykRV05e@nS<*im4|8WYm+aDvhOKV29vH&CWwy3g z<~1UqV%GB3m@gcW8WF>q_kB;}0E7Up7zhj|Qo}*)#Jxftn5IDf$x~=%wWLTiZJJ@W zag`K|xyO|1==>f{c_kqYy`LmRhDK4_0nNl`?ypa+>DG zXMb&*B9Mf_pv)B(1w}5+sF(UDGs`^lvKSgV#jud@874$le`?G`MlH=oCGPNuOE35E z=yqCp(cpombf!@?fC;StGsG^mpEy9gK7*>>7?n#d(HIq4of>9J#;BdRu~q1_0VC#N z>ENfz`gfx>>&Iv^&9(vE&o8HglT-UI)1BRmVb{g9zS+6b1##iB#MPg07);4*e@S>$)@cW3*VRI-1F^vyMV6f`l0`oW!1urGYLUr^d*FB4 z(nZxBQ-YjV&CJ5}h;+So7Sv!qvawi)-pDEEoW-;&!6_h3wougpYT$`F$lVg49RqOSZv*C`_owf<_(PMoyHlq6saJQDcc_WV#&*R%B zCO?!PQmc|~U}Ce2`p;Wfe&u3Kdrr5)@K$-~SNTiwhr#TMKU>ozpW-EG&bW~?d&42P z-0-+dB_IVdGu7kduGlaR7d#Lb=uzF41;#(o?j%5OSPG8Gw<(1mfxD z&0h>_p0G(++;S^VeVvn32uvTV(ve8nFH(8MRBM`s*(9V;XG%ZpR6@Ix8xBHSV5gKn zjwS^CI~T`cn~vY=JI@kam#B$4g;eGt>4qAB%0(r3iKBY>Bn1$+O_Ryc<5b?X$7dSV zjb~>{ZI@X`k-IK-A<33)_!*hYR!0Rc|FK8qVJ>SI#ZV5WzrEHx6guZmin@BCHz)r= zbc4iUkHHY~9uH%&4Rc1g+*Qf|WjR;d3}BInEHB2I7Q7b#0B~DNQuZ{jk#6!P>t+F3 z&qqMMAlBaD7of--KoCvOe`d0y3C3oDm)@*>Dj#1%b$2>*H@Fo#<%i1(K7yF+3a71> zZq6QgA+-?Frsf-KAZB(41w^1#YB)$dWq`I+k0n^rv*1kFm^EZmo?v7O11`0x5WZTp zkign9Tj@D(8cYXOIb;B?b{{Nms-ApU4;?@*O2It!r(#V2iS3%W2B78dakGD`4W_7n z&RaTDLI_dWzM)Ev-n}-7U^q`hW2J3wM(YKd2SMlJ{iDYE2daSdG%wwp>|!FKiqwQj z9G6UtTHAguq0*B&f6{j83v!$yN^EF|6G^CBijD(oTeA-3#0v%#WJj-}+WOuhwGkXV zH7#sPMN@ip!2!KgeDV@W#)=iu1~{I1VHuvvqC7Z~co9U>X2Buvs4{HDb-uPbrohq7THn7j1>aI_~A?bHba)cy$BeZhza2vbh!SC1`V@WP*BS>PraFLW~F(O zRK@d_ZTdWVnU_+zn12aXDwoWcH}LyvEZY=NdK&W}Xfy6)ac_#;hn?1mD@jVA!p zT1(Z+pF}8AJ$6zZZiBj)7Me86jz+TTcGEGaS5qd1v@79+I4vTh6}rf`i1ByQHHbs` zh2|B547B*P!l}WINoQ`Vaj)aN*OV|pU?Ib!3&WpQMNG(!{J@wS&o$+~A*8CO>u35o zWlhZ%X5RI1x=s?rtXeU#ooPq}^3g=}WPL ziG{|bWJ0;Tqkm7Bp282t1&?)7cdkmvyO}a%530X>I8ZC-Y-7W08KcP z06syEodzNx$FmK1W`MteD}jI!ZeRewQsm5#0#FjyjcY(KfU$uKpx`kQ&ipn>H0q9~ z=RSnnfKv-^#6ylo0*;|#OIXP_7af#60yirGnqzVz>y;)3N|G_OU<(O4$27ljB}C)5 znN$a_55Zp`JC?bzkM!n!AE}PRI5eMJT?}O0CO-&GXqv$^h|anACd~|Y6(S$5o#8J@ zVI@Bj+aj)s^2uFeL{2E@1mh_W^bKt6=u#YV3J4h-&@a$2fZxPi0a-$n3R`zjB#4>$ zz$J+H?16cRr=is%h^Gk3Oh1BeG(6yP!G56Iz`oS`EdI{JUprMCxv}n8Qk{y7n$gh= zM~p}9b2%#6jo$pZw3dl^{qUXVtE)oZ>oTsYvmpFsK@x~8p7_5VBG`eH{zGT@13w`Z zZ~BL52NVrwrqT1k`7)?|pBYta{IuQiJc!>XAG+TXs5F6s6XLC50a3H|>b09mX4ES& zYxAjxb{)1s?xkw-(@8T$%ld)0_3E0s9RdT8bUQ44N(hkANXoyzC2Z$bhr@rglYN;x zLg2HKKF1ax*?Q|XGl3=vkc0*$Kq844N#aQANzw)vG{7c}Ai|6=!i+)0j8Merojv*J zi;bvCoGOd0Dog&Bc39eOWVbZuvMrby_2Mb(9wHWF#$vdMB2 zm^1rLz^JEH^L^~77>6JTK@f%@R2EZCmy1biimKKuWyjU#_68Qr7iBbU-wa1Fs)G#dHXQ>9_|%Vrx$i%DsTp#g;sAWAH;Y@aCgq5x1( zQC5{#rgAOKFE6q)uy~;W`#CApzDTq^`8Q*>*4pT8AWN_wS~x`mSmV@+^^EC8cNfW7 z7MnHC#lg*s%J25il~=c1vf1oJtz!oO1VrHI+(i*k(@2TdVfItNkC*Ycf*oaZqqok&&sx0&A@n-%z;pt7S zA^8c1h%_58Qw8CssEZm(@Fwl>R6;l)zCh>cZyk#8{CtHFQIV11-4@6w-PVb4u!WQ~ zw_nm!2S>+Qr$~_;#ay-g(*@_}Q4=Ogh8z4ZZ*!Xu1r$-m|E}!{4IOCX7)HPB>e^@V zXF_}u)*MBb5;R6eUyXjvMBpbH1Gn7M&1rVQwEy*z?IFQVV45UJ#*f8x-s<|NR>9xM zmRuv#zG`#E5w*D$XPpzZvB%brtM<#=d!A10mvh|KwnK+5ee&3D15BJ*Yolb*?fD57 zCU!!r$8P9^@liDVS>63tbX1?A7E~&rp|zbz=F#s3u4!A|!(G4LkphC^e{Y)wBTH+; zl(u%We*LLNm$@EC%Bg=u`(a#WDg$j1$`qx*L_yRwwDi|yBU4T$iJEjyZ}!NJm#*9v zk{f5g`5q8$W$=Ax&mK4^=rJMm-vyH{l#!C09Fvo0T{L>Z<@m#Amw@!YeL+hx>Z(VF zr{C#x{nuEYZ)Y*9ghh6dW&7p&r7Lq%>f=i_I+N6rQjm;{nRe2Qx1}x4IOEP>X95KA zpZt?S8WXMYZs5?lGNO6&qm!eSijtb5Ds^mYMTzeYss_La$F?)HJzt|omZjDdO^RBG z6JNR7Mb6w4_4PFcvKM>a^(!{EatDY(h3%!^z~3}m?(9Qv^JvG7h7;wxW(kWCAE0X6 zE-}0%G&Dq1Ad_**sp~fKg42~(PnwnT!#Y} zKD6I$8y?l?iBX;qzfT0K`NEDG84+F+mB2GW>r>UgzMqjpFu5yAbR1tb4;H_yEh;*) z>zkMqSKs&Sz7{(ASO5WVHxn37MxT-3NcG3I3L{z$M3JCh#xHbdCDsb?Zbm6SAvqcQ z6a?hWhc9o|pZn)d^VC_sp5iS6GBWbMDvqQI2E1FDmfT|j;BA~J;$sbm?mqx~#maK&%-esq`9_)Hbt$49eQ##&U;>v7nu$pFo3|py$FI(s%QWj%~mBRpNA3#%6|!w&BK@M!7-n#6kTHEob>QLsMkk*z1)VZ-vR!7ZG|{ThCVo3*p>@bXTe*;$DT6IloWiL)`afn|jy?_4QZYB>3 zflvx1GV%T?#2_lkk6Ht_9(GN20f@y6DG-zkOZkIm{301( zfdT~zR45x88}rs{zV{k?psm~1>Rk*A=TWwnp67LJ+m3I{YXIAI8HDqHcq|bZk8}Bt zSznloMLGoRxT3q`Vx2gN>Fx~oEy?BFdbJ#IMjd(XM;G}rrt2_D z{_GvtN@sv3PoP;v)h_K$&9R@Hfcg7yzgGDfwZ!0ez-w$i#BW;J~nd7%uHMMwcDAV$&!M_62(iqzN?E+PXA78yVCa&Ah4I#Jbear zUhHOG-R-G6l4VAEqyDsn8h;AM6vQ}B4(+A)+1h=S9b2#SpUUGYY3ohP^dx-nrvIr` z_|fHi4F_-77EzrNg3^CPoL&3753Bqy1^(QPo9p{LPrp7q9(TfKzcO+su>!W?`hOiw zAc4Wh26CvNJ{wr(aXJkq)Hx-7@_+NOi}95xp#3M%QpPJw3vgoJB;UkD|DX+0*NUkP z2eY#cuNa*|)}JNtf6LF`2Z|`errtF-7YdJpsY8}#J7Mp-~HON-BMa5_qM`&f%E|b1kaIpnz9^;b?85ZNXgMwBc-Y~b!!#d zIo#V*z0{wF{mm0okoCMQIJG>5Hxzv1mYlLlM#mo zMgq^$HKne(FhqUe89_A(DVEe~k<{9sKO{B0Io9i)vUl#gC@t^A>6Uk35&*>s!tN#- zL*-LInwUiSCpTEBfIgj{bGGbKww+e;Y;(ExchBR}B?dY9(iX!}nP=lV_{-6KK<_I0 z`|BuBucka@=$_ayC3!UB(4>L>PfcOJ=n*5w zs5S)_q#R*j%crJ(vO6~#BX=L7b>@$m_P+UI;}0pX;<7rFa{6a5zAdZr=i=NlHf-u` zgQCxlon-vp;&Ed(zT-U90J0zGaY%R(`jNWWxY*AOvCdlM$_MvtB$+PqC%Brv#9ou7 zDc6jQL-rOBy}>;9Kx-fX011Ua5Oz=)g^jbA>BW_X6fn%@G`$$%riUY*DoR0OJyJ{2 zI|rRQmXperTKsk?7a%yWOyLd(v7=9lYSbbf-B4J77$X?EPQ$aWCPkqp%o?_hYhSJE z2q3ktCbjAIYZ0k;LpvdPRiv-C#+UY1(_^R(;(*5lZooZxPy3KgnUsUQLf zBe4HM)$;gaz+3nI!BA*)x;TH8wY!}<@3ABHkb~l zL9ND{tzG6`BfR?8_Kw6pVv}Oqc$+PW>W^D}URB&h zQWh3uQ(BH#beXGAb3`#1)Pbhi^mnzSQivnj>Pk{tl61~1PPTQNCI*=gTHo$Zwtj~j zrO^8rr3unB*|XcLl4QXHmhcA+dfaEl$i(x;%pB zNKAoynSMGL$xp3YYglf_6g{m*v&niC{N@lI?SlIzo=WtHooEee?um+vtjwNOmRybp znC;jXs#qBm5q1~QX2>~P|;gJQ9Nta0G2F+4N z+3gs!39&mQ2M~dUPIvI-1}dD80uojCc#MUl=y zsOELA^0&^MwIuw(z6&1Y3ZWsQBIA9Mhs3`QMkt?w11R!i*mC$QOw6XRIu>HC-@dFD{46U0s@1C6kppJv`QE$a04&+(Pg{h6+(1%HQ z*K}>HIoR|w__{TDLQ9ZQ_^IE6^c(|{2;kL`lBU`BSROw>J7l-g@%uMLrcbmDQo+wy zI?YNU7doFSk^pg*!Kb21ErFI{jyvT<5s=KNDngWTeQb7MwLiD2C6!@tlZnD5y4A!cP4NgX;Q72jZkb@q;_dEvSQR{ANW#)nK${@&x1X{Ljj{xM2 z%!Sc%^}&azv2j)2>i9HyVFn<#sx_q9@V!!&a|lwD%y{ByWSXPboBr7^Y56^W1wdMnPrSxlYpXx`;0TuAk`$92y7H z&ZLw)DIfp=0Z(!XTd}_FE~sk4Uw75MPwMe0MV43Z&?yE#f1|X2^A=T%D{oXZ4%Ne@cKYLlM*9AJ;`#|`n3 z1&^=1-F;um;|I49Z8hw9rBZ`ay5%jpBZ4~W!rTu^jD2kWxxTJ*Yn?I978png1~MEZ z(gF<1J~Hwh!rV>eq3_jxovLKH{M2%(T%*a2v=g?R#ZsxqauI7Pd(~n-iHusUS)-|R znYOKEd~VzN4wn0IsrhtA`*|Mz^=riAr0cSUKBgFG%j?6WhwJ{8|`Cgwh6tw z{u6s{Q<_6U!N8sDeT~nlH~+^tyS6^+K(+GGJwH!G8@(v zI0HCYdMVACIK_X?%9K{S&Cr=2gl>x(?RJ}PNGKlbKEJy!YR;d2M$Dy9ox6MVB(I%)Ct!b*71o?q$Shs&-we?hgv4{G@n8m8c>Jfx6 zNX#KGFp@tlBHncaZ4g~1fZX+kW2bSM>vvkvGMc>QSv$*q=xDXjV|PzZ3uh7!qh>V% z_GHm^5s`PaP72SHkKA>zJ7&yz(q8AZzJ>gmnWG0{ximqGrx!|dHyIAD^;l!TC-=O; zWb8__px6?3h1j&H*7y9X2+;L>D4~B<#*L84_A+ZoOdOr!)_zd|ee!TS=OspN-jn|q zSuon+te_zUm!&0Cqd)`FTCm}+_~)U3V&+dln7fukEaJEo9s=i z{M!V`6%q$nTL3!gm_rYhm78N@=&qtj+fZtV`|aTZ_f4ps9Aixr1G%{Co{6{s8U;7r z;-&kV*uzYgs{7QC8eyvg7X7Hl-^tR1%|}Iy_*G9XT23PVrBIjRsxo^6i{_8jv%B6pEr|jj8=cKC6c8{FI1&g1jRX&%!nLfvL6^v&1!|}&Ngfs_M{>^}4cmD4OZ2xD+Z`KLJ5J3*YDS-ejh!;!6;+i-iLu__8j=lC} zNML#$Ns=918Hu>Z_Le470z-wW{JVvhOH+1h=zR4&RsVGCYb%GuD)>dl+#{`6B{rARhn> z-u?m{5?sGsX+NLPsmp=Sd+XM*+1KHBdynt@*UCA029Ul!0e50iAXzDSqK+|KxGk^tTKHKl^zmf6Njr!k5tHmm8 zbYWL11k<2WJI@43C9}9NnVuKb{g07UE7WVURq7Hwx$VBxV-#Y^S~|&rNW(D9>JhVA z=ByX>5(OiJW}tDOod!hf{w!Ms#LryjuNlYlD4GSgtgM^##IkJ~rC+|oOtXXG& z!*TEB7r~uhM=Z*5oTo6yX*pkf_P$?4-#Q&BO(x4HbNNIOj&GB^r;y}G=6^jG>oe!}&Cb*TB*%>=UVm!0 z!N9^jy*}4ooZnnrS=d|KTH0B`uq~~Es;$)Ct*WT2($!JWKc=Rkprd;6-pGJua-%lHiAwJD*4ve*B z{ncW$DHt%le1jfQYRYSaW=z7i4-xh+8pr@2+ESJ_7r_0K*-d*vxBFMWeHS{doRlkv zi+9-->%150Op$_uVhjX@H7~Z_gsM`ucyr0^VUi;34+B;l?I)^j?iry~PKcO38md$U zaGHW<|JF^1#|UYlrxQG5QyLv36q#d&vCaXP|ND~A%?C3PN75;MPwUMbO!jMKqB%1w zWJr%>v5lTBa^a+~Qk7U(E5@RHN%>+PRmUz`LPTEWkGdEQq-!Ml0tH}*GB*ZVvqMBy zF+FZfv3Qn2D_3Ae;#Y8?MF)w^BoF(*NH-{@Txe24N4v6dz}B%RY=IM`SDerwHUrR! zjkzd^sbjqS%k%u<;ix$`?UhQg{C!ouuW*3;8hk~lQ9pxc-Gc0T0y8>j-z7TEnShCtti_WM_J-?;5bCS1j0~VKhm(`43>9e zoIy2)a@MQFWM}4)r>Vxl{!r(7RH%?~{y2lZxeK?s3_Kr<++(asW_(kZ51vM2+n(E) zJ3~85;przDGm=(tM7-U^#>P6)6A&K(PV7`tV!I4J89Xr~`3B^HDz2fCOsb?RlaT8Y|lzICN1_)xiidpbKG z08289ec4S9e6%Rz`C@Ze%@3d5)((nM&B!#aEMmc#9po`72a_o{dUFU~kTejLkA|ll z9`|^USQAgSu|F$5^*|d%%r#-WmhNl8 z-# zRx7uX`{pKiadXNh`)fX^cB5*9drLx6NJ7VQD&bXl9HbsOb_?bOnyHf^T7!zb(5sW# zaM7tFFjcb*LSR=tSQ$hV$}AgFDeNRLB3Fq>g%6)3OtH#B#`g>+sd+P^H@P0bk~NbY zS~5UK)0nK3|4a{Z3_pA zft!JN>t|lY6|O5+?X->-$MJ1N!R4%vp}l5A-~=+8(^#PA zJ29|%tYeXl+;**v1V>iDk)1ab889iYL*}c>Sxs{F&ZiTph%D9yYUbdh<+shIyV{@D(}6<)uN^qHsx z1kT|Mvneqi11@kY8H5KD&jo)j@ywvSDAk>vYk==EVPi8gdwhn59@1<3KC(EWqh zH8si~IPpoU>EgLPuDe9YqEw)?O88IU*@5L3KOwh0rd z30}WIn?{u?6|r?DMu1~pda*l(p@~ug_Q|b_yP3uX)IeAkqZ9cMrX9&i!yE^DjyOyeR9VyGL zVgyfK6%5-<-4(JbT4ykbA(IQCo8)W7?kSqh`}XgN8B6-M*)2MtHSZ@@?)V~b@YQ%3 z1w$Q;S+1JwmwSlB&o3hcr31A$%E_phb>YEw3^^vc!!*Q%7xzZnr8y(yu zfAu1liENN4#%X;m9+!d{{q-?#hLE=bF z8$Zzb^m6W$v}yIj233_8D7$3s9y)j&OcL6u!h2?3h3%qyFb&ohl}JXe0%IFyVw}xfU;+w6$8qckFo1QqLUtBkpk_XepaX&1% zF`?)Rwz1;yo{89(oVpT213U-PbXr%@y}yO&T01y4=X>!cYmr%zlWZzGk8UVU z(Ve)VF?(_+*B5QTezDh~My9_(xO_41r9;37hUA|SMbKYwDSf5GvS|&GXWF+}Y#yd< z|8c#0t-?sWv!= zv^y_I^}&2!gF%%hBf`9811d>~=5ZinM49x=?jwRRAx^2^2>Ta+<5j^u{UoFzb6m?H z%+Gps^+s2=V$wRD+_Ish#*3$*M^-;rkYpG{fgVl(qP>X&vWHoLIujGDDC5^Q4Bo0r zq3d?M&p+_09H7&(&jd(nBkWSHF6%K7^R-Q!(a_`9Lt^h}<%ELE7{3Hnmy``R7jjQv~Vh@|sRA}V~A-tpPM8n0) zl|w^YoJ2_IwST|=@|KMh9_otwet_Dd6qMg;WG+b}-R80wrbVW>i8w0WQ+>WSVh^z~Gw14LJWzSl!}_MWS;sGDBOpb*EHWeJpo zOx>7bOWnTWeGX71h#2YLT$@+2yR&=o+kPKcdsl(@p{$f)tPyYmtTQN}EI67EEKW3D zm7*SV$e)_%9YHc{cuv6cf&>*`s*PC{P#=UuO%$c?cKYff8R1vvM}l(6b~*i4GL+jV z5|q#MpAPE`1o61GA|QkqurkMcV9j6)E4;|SL*QetAQjFNy?LJi&o|q|cE8KH;DJg* zU|}BLB(fR20({#@CMJHcs5W!TxK-7?t2z9-ju8NuM;n`lc3T7SdkjZIO7`~qSd+Lv z`)pvL(2$*RA#;NEG0`h-GF1*?2O|tZ_IsaJo$IDSg*Lk;C7Pl%PBLY3$sl_ZEZPaX zkSw&K-x$&7&%H3Z&{}+K$%>LdNreH0^XT&sqBtGY6)8;SUSsFvqWLUOxOubIBUbL? z2OnD-pLZ(nTs@qkx_@_mxiz>yOBFyM;j@ZcF!iNLC%uf3%~9hL7O@u}n$W1F4(fyN zjXv_|_T*Hh_pA8nF7B*ra=atm%?HmW|8w&71i+duq{kGvi9)lY+@Np^ikfM=nZLvykXzTY4u1Wt+ZOhE$o!4%UF9QEoc4+N4uM-7?vZ+ zr=a#xG%(bP535wV&_AhF&|4UTmEC)GYlCHgNn_-}Z`jTyZ)-TFve35EheT{krn_wS z)ZJG3PE^dd=}7kiE%mMmfk`PPuOBHtq9oc$>||#y66Itwg_>BvKSv zr0)B1i^pPils!GuuwGJXjiR4RF~YP%DU}?2>*M^v;dXvet|lTD{_%S9yBnrcc}rm3jkfJ{6Z)c`KiM3uQPsz_pBuOSt%;Nw?~2XiMJ{Cw zzm<}SL0A>~B`!|oO{M#+1Lz96#pc?d5yii%nP>zIzEBzUv4PiQ6$(*@fe<*?gcxsO zR4c&T7MF3Xc?nZfxDAh@n3|!!1pd!!1{;_(dk{rK4k;3?hT*g@9Wm2|4}t!O$YTO9 zHMSuVQH7UWMZZjT&}~)d))&;^u-XGkgq=YIP>8n69`T7yi7CnAeTVQQw%Fca5?=To zS9IrdJAZsqH%F?!?$bi6ceox5t7@_X8=500`$sU3#HxYz*X{dQ;wPWrQ(@9Q;nK%S z2&NPr156Dt+rdzx+=_a!fwhdAry?n8Xq%qsbSz-k3a=D#F=ztsm#;O>FiVQE-F6_c z^j|Qv*I%FOj1E#xIDgfc~*(pMqEN55?CvFe?nv|7xj4rfst% zZMpsJ{PASeiKN9TR&Od$u=kCwsZTx0=e3(P00H>%;d(8j$(?D&gi+Em%qI@&pr z|1+j1s-_|X=Awm&aL3M-$}S9d8`a{<__R%87Pj0(x6kp;Lzg`YzwqtX9I?HrraChI zr=M$bycuwRk(8@RVe}?|_lY!tB{xRLEP^w&BtJr=pd{4u=e{ zi5>KLnM8#x3;(4@wO_rHNyGO2y&6qDEXn@RA1!Sa`FScDGDj?Cs1y(*PKMN}WL(8$ z@f(kA&l@|h%+0J`tFnddYf*Z-2`U%(p{hqGlWLkYsiNJYpT!1;5jP765R{wE&DG5Y zVuQMwnktjmp;90p2^A953NV;ceK5qTl6CKcJ$Bpq_m@;Tf#4D76W%+#iGwQcqS?0~F!{Ea=rIty|O|V=G8E?i0tr8u|nzQqT zzdE;(7vu2W)l%rtw%x-Cp*ERYNxJ&9^9ZUkzlT13J+mI^Ch966dgX+jIgFpBzh#5j_IR;6HC_T<+$_ho z$G|`yNFFwll_wS!&-01NgvtBZYJY&1a)lWEoddP)RCJ~=^0ld<2*Wge+Mr`Dp~bg3 zv=E8m>35H#l?4#3#TLkZQRLwGGC47NMO}cjvBPR)xdSJ&R8LdWOrV%{{BYs+dEWjI z8gbzQ{lGWB&JJ>LP~e3f_U{PiaRJ1}2OALFJ1VF#jxk%X-&oo(-QZ8%dvITghzmR@ z(I#a)_|$5d>s3e^O$n$^My}lOIILX#ZVRg&#u?1D8;@Ps!L~X+ku=IGQIl#vlgMFX ze6L@b$A&@rAn=>+O})pOheFy9a#qwIKmU`M77rE|c+0?lcL|fFRF;5wB z&I%Qojsr7kwWj_ptK1i4GBzQt5B@^W6u8N|9z|gIZVK|!Y&k6`(^9+kJriA;MfuGo zyi0LnC1pKk)U26ft)noZv0r}O>!X+Eq3&(JAKbZsroQI&a^AG|c|%)Du4($#a*$cM z3Y(BFomV(KdyvL9IqT#ud|!+9RVXjbitcUb;X{ zg(_JT5nENrZMB+5gsg-$ww~%(Nxuw%a*<>0oR1)uU&*!j`=F9wzg?+6?ahkT>I$&}2T_V+2(&QRD zYeNSyw*xKd8=v4%c930-i~S3+{WaQY-*lULy9N!l4Lj%pOVZ8LZ5e~o7~Op1e+c0w zjIgBgY$|x?FT1QybVgtsM)wg_lNXG z%G|$dy#D~-nokGBjyJV}^WmNK(+;NA?fAPjG``c*?S$z>vU9Iyo$Et7b9reRZaNP_V78D1X>t(*?@;I#9qWl}gqEz^p)eC5T7%{rNb%Cjw2 z-68%=(XlmHff_#9xC3g=M_SiyIl>D93-7>rUDR9O%IY-wnvjId&j)Mdi1ak7Dwc@) zDus)ZU$74}q1ksbnkF_s#JWVPrNE*5#q+pz)mv=u#JsqgQnrA#BT ztfe0qzT3~Wvq~d)czq%z$)CVXlMg84ph`67g&d@!K8_v=bP`G)Rr;HH&mg(mb;1jR znXW#O+SQDwKA=ZbS4`s8ngj;2;aAh6pnj??PtmKM96oLZO|o?>8k=>9#77MiRHXczt#@NFoEL7eO#e>+5FYR0{feg} zn|e#Jo6!-mpYIp$S(%d@o+ORMghF?4zT0!ej}C=`QZE_zQ5?71Co2kP+S*I>Uxw<| ztPxH{v1ql&Laob`OZao5u(LgEhJi`-YIRhvfytnG_J(OnA*faeiSDrB@+}?x>Rf$2 zD>H{)uT9m`>M}FyQ*{xaCKD9kCa@F>q0UkD)VZ|$MRYeBNd61p2LK=aHS%8s#+~`a z{|j(a6r~lDfNiDFoY(}6GiuZJTcI>z;J$0gi^W@)5a|agX7)(Es6J-&GF6KP3)5>Z zMo;`p;iwQIHh7vj)Q$$l2N#qR#oYEZdwUr!afXd&9twg zZOJrc)3@5X9j%dm4D%QeomRXY#y*6IsN7=fxeYMeFlzz`9y#B8-ebLPjpP4uFBUBr zDW`B#=TrT(DO$pwc36i@-mQ+fnYNP7Fb-&iDI}m8U{3sSyuc;Bd-gGG4n=ULCiveM2=_`ss>me}cq9^wFkAHO-$7FmDM~t;KB1|bMpF~XuMi;k z)QxFXrQh(8bSRiTBGoL%D<`na7C_OUg=JX5iJg{*Cee=~!_fx{be6b2EWO@}&ZrD? z0c;!X8v)_2^r1~!0pd6{b_R32fyTeWO>+n=(j>wi0&e?7X^fF9*4ovoL+(5=PM92> z{51@{3!eV9G1KMC&$ppWhx=MUOIksdQdf|Oox-jY_B4-|$zo;+_<%t2o-_D@7a2Df zQRPM=-IWMLiy4Wqv?lE?4NCHYF+V&FL>!ABQ{a4u*&%gnoYK-wA*Gw0vidb4@33*c zeTsOX3p2e3Go6c`UXj&-c-NoRj+RJ+y=+~He0K$6597s%J*ap0nCa$n_BKfPc1SV% z+KSq!v4xZd%rP|vf+|eaQ$Jy+^e!nZfVVK^e3DNd_-JzZ3`XIZy(uGSmYZ8?BmKb{&0{_n=}8;_K<95@7?L!)ct;Wf0u z*CoOd{d3FbbaRz+(Z2%LFFAky=7TyIVWLr`fWF(E>s|k*8g=Y@Y855{S4pK-;u0`b zz#C&WrB;9wjPo!k{oNx61zmg9@f31; z|H-&{;=qw>C>5*V)WtF<+CR#4>tl*g(E2YjN^}%~I!8>WNiL&ce z2P0x41#Ha;U>>G4)3>Te+_P%-BKuZag4T21b{K{Enq(?t=TUfK=xY6QYg`eZX66X_ zxwYJaoO%&FQzx=BCF%wOl(Xp%U93LV!=W4bX(Df3I*u|tF)}bRkv(CtV>ca_Z{CCs z-GCmQlsA3I!*YKwh$^b*(D_44y~ODmp8HvgY-}8+myG;s656xXasIOk4#ylP_WZ>9 z)2*@mQ_IuwGSPvF@R6^~7?C|MU!5j2lo8cVEd47kvz%^Le^xBCQ8o`<3BQ`GNup*} z=-EvMnrE3vt#(6_-2cxbh|;Igg}lYxUkXC+C1QoEa2)>^Q#%)v!EePxAHG?#Oy!C3 zjRrb9Hjwu&UNW+N)HI|FT79zaTB*?%P)HgbW^TYMlM4-eOV*^+`%bQ4-pZ7kxn&o= zIe491PLRz|#nc%Yfq2tp4q$h5*p&*0M{KLo>tmcuEl-uLOuogO(-^WkVM=NUYpJs{ zlk<3>6`JqTZs?(6~Zx3M^V zqn>FFri%(y?37A(DiV4q{A*K~PFm&{7>zZ2ahWbp zK$tKjA)%2^#^h>_@ygL2wqN~onR0S!K4)^kIfHLBP7s2GDP!ZOn#8y8`}D;Qr*98) zTVDQB`Z?Bq2$s|F;nbQ%$OW}T2682vtG&lb$aw;b&w_sw4SI`U@U7c|?Q8>yWRk4g zt!1|#>+p4GeISM{F+}Ka@a1l4N>8>kghDqs6lS_o!Eot5o`pflmj&SKd?B0f7p-SR zBYxwXnUp+Hg;?8AO5ys{|77o8Z+w9DuFf=%H8q>}VxkxO+w`SIQ!9&_WFXYQ<}bGl zpt1_eoPOt2R5{;2+uwag=@xQ|6$(xX*eTD*uTQ`^To@C^riE*-UFn(Ykqd_yh`Tot z&aZ(KpMRf=ZrKx#Rv2W< zuMK`BmZ!D|7=-Kh0D|vQxY=T@Oih!jxYM;5fP0GUW zq5x(L7`iS^rPig0DaALY34d&z()S%ixPM4O)ZEv9+{yLnFUV5Xc31B=jkHCM?AHG{|LGZ#N+`ef)bJ`Gk!SgtalqhY(ljbM$sd#9!^J$Rtgs?;6W z(46V&X+RF!uU2cd(bJ&&57utA+Rp~yYKP`vJ5*|2@g_IK3UQ_;#P9m|88Dj!m0c>N z@jrI8U`vCS=7pX2kY7QQV2fn(A}k5|>PWdSVruNp{I7GuLM)txpfy{04ZnXZAtBhg z{Z(`QJo**xWlTDk^x8ruTV9hWbJq#x$ZGfm3=NxrqbG)ts>LirETgB`4_g~2+I!iF zAjGm|rhBr_b0R(miRRcHAMW2do{f`OE|1H`PnCjDf3WTf-aq3V;4ViZe&`%iVHky! z^Q3raGBln*@B8e|s)v{>b(jqpjdbIks8ir`t*e5A23jHV%BvI26ecxI6(>Dp?X4$q z^v$Z$ECaJ#0dhL$ctozrMQzj+bS|K$kiw{cX$igm>t_@%8>|o?{)n`r*Iv^}NPDc=d)J z#}5Cx1cA`s6aUxyMEzM)ZL2R_7XGUTgFxsn|50@KcQXit{_-Es^v_tlI{X_I1VVrP z|NJ4K!@qt(AoQ32(?Upf7dgT>- z&36xyhcCdA!pW@<2V9v?zQAs=0MqAh3v0Gq_CDS>ncu7{oROoA&V32F(oa}SnHyc4 zmlShNE?9-{Au=y}Aqf04#esl0KC?XI>lnVHV*WbuE5((tsCkG}lvR(p!3YLiW{ApR zrwXDul%E^glv1s;05Rt6&Ko>v$yy?mXeAm(rx%z4lVJ$Ey37#cMZ2gB642KY^4huv zlr#C(fF+&BjpG=vjeU4NuGW~5avBlD zKQ({e@NAF~+yYm9&v)JS*iJ=l3_)86G>Yc}y$G!sjqKg^nxHQsl-&W*y;_C2*!QMO zpHJugg;3f_Hr$<{s+U8k13J>8Qq6gZEv~VNgtU6Rom)9y4ZfIGl(`2bITK%i6k)}U z-m`Gt6o5);v-_3ZM1G-9C#5!>_q2f&OHV2T`n1fLoVdm5H@N%Z zhxHl{-j_E|p8Wp1s#;u?fsdvEE4SWZO)j)~f&4eTKMt?2=W`YQwEzBlB^0#mpn3jP zL5mB=aLugfy?`?v1gw;Lm6S}BxY~2IZI*g)Axl~!_nE;8LU7w+2r%7z?+tc93#cWU z+If>C3G{AV+Y=^sHPTjAev-81@uDZ9W6!YRc16Nx9PZ}K?Apt!A&Zm3>Lt$GxdmRy zLC?G<4|qH)dfyrAAlGgJU&rXs7e`V#nw%b4J>3~g3rOiD<0NC~4q8sdVJnd*f)O+o z%cDIQaw+AI)gi7N;K6dWgJneXt}C>BjftY3s3;b8HlZ7`YpDu_~A@JPFbSvn29zNwjWP<@H4Y(1d|!$~AdSsF0q zaElK;oOeB{X&Q6~Mbpn_BargQC5+9x3Lg&O8J}V2yq-@-=nL`G&d;XP$u>(i4RZBF z@P-raqWC#SX0 zT7`*AAHIcvgaWP1=2kbb&H;I8;`u^hREBeoCfe1|q;XGRE)0wa0+nJsioJ{OP)8T7 zXzk(0-p`Si&8nfzrSc};9zVva@)>iDq3I6je1xWEC`lIr4Va+2I3+n>1MUId^A0`2 zLEZuapg|2Pi8NFm9|s=wX~$YX5aI*NN>?WJBk=Md`545uJyK>CV85F=I$u zLXdq*#Z2#`Y_?Dc+zqyK^jNAJa-H;B#^>e8!1vnC_?Jc-ZT$HEPS^UoA7Nw~Ew@%9 zjoP+#NlHCrnf0)mtKArjyUK8kN`*jf5YiI@MzCF3qYRe4jyX|nWT#E^;Q6c^=4~Zu*54SG`7EFSWI?wltPh86+}ya z4Cy9_sxmxIMFPj)c798&bqrZ+NGfh^;C5 zd~-9~Y|!c0n_$LxI^f)>sFj%3f>*V{OCdobto@PwzWP?;rgLA zLYh!aDCm?nc7X&Q*34m?snYZ9j`r&teN*fCoY{wUY67TW@}^L}>P$DAc1^MAx_#TG z`{|UCk*I(Ju4Dp5vUuPbLG|ZiJaT()LL1L{hejzzT;RmTb75OdUs80^{jM5bp+(6% ze&mDqe0ljaJdW+lB?{ryxJJY%h)$V}<;8tK02PL2Jd;MMRG_3XD0mp_LkC;|C?7P> zvZ(mCL0QFclQWv4k7M&Nrlh#?3{9LQq1QsqOLiARAPxc3r&ZR0q$Qv-i-lA?NbXJ@ zd$+S5PAWdI9WIMagqX6|EA|!rn!lAkJAt8b~1{ z0~l5LM>7o2Iefu`rI=fC>$)NVX-jX@ZN|*>e}d@#ssNghcRx=#TSC z&c>IQGwJzqiVF&8ZI6?a*lgY0OUEwz#XAjZJ+4V9w3bxGj;c^`=LTe~%LdEJnlIV% zo?bnl-|DOO-rh=n{@Iup;kQ1%Xrq3vQ67t4F6MLl{OZ2Y+POaM?}PH)z*AyS%p)#b zqqBki?WpFT=FT@8r6e`bkph00?1?B(Yi%;bHq!m*QXoVM(c&R0+M;z;$dtY2G82hx zbE5kSwGve`xhV1;!E2)m-};ri+B-?RV2M49=icDZsimzs?_~E7lj4xz9!91EBX~)( zr-z$$W$i8?xVib8e0g(-=Kh^^0Yxb(2XMTP2jzkcD$vf^6);71>&}}tU-GU?T=hz& zTjr-dM&;6iMT{d=&v+TDUoCOKLLm3-xjQ%?t|P|ER$w=LNW@yYN7ANAYT(R*pQ=bz zpDG6z7hy;ZY!{?_GNeuk>j~N#WOYNgL>uH|^fQ7d?Srmd`W2|pmuOH!0660O#Gi!A zOR>pra5xP+)V`SkRBYvV?f zh$CYrq-0+(mgwU#A!6>;d3R=npa>AXOros{0VoKiKv$mw(4K`zQPK$M4sWT2G;q0! zPs=WUIpgyA5?wAEdp?7_9h3~ynjdxsX0pmFlaf*z6BBTbPp&WEt;{l$2<`j1?Bm>6 zuvG~$fjobaS8*Lx&b`$G!D+Za<9^Q%N-#l8Hoz@Z`JFXtrRM%Qd6`NR;7BL8A$D3R z|BLUMhepM?or_^tDYI#*9BaT`Wd!bO0N_{Mn7O)KU#gV@?&?9{R~c+*P^NUDvFGLB z-mu0%RuzD+15m&FK{cN%e*jtC2z*_G=|5nX1l{%y0>ubu3CD5h&-YlIdo4FYBCi2& z0rvryAb>udPp4j=tvH9L<5K(>a1Fi(bqdEBMU&q4CK&*25;DGtIr>Y7YXe4*n-Kg= z`WXNKU?niXMqs4@Ufj3_kinx@hg0i1?8t%9h}m`xK9wr3i)Sm+8QDYqa0md*=m#&2 zg)aK4+#eNK55=PulTt5_QU0S0;8E{ZhAvhZ@Y(rbz@K0Qd2IKWcKd4YM+fxkL@@jX z@PUW@F-l2`DTG_bB?lR-4Mvq)SS`vQ9koc8dR)p;LV#t9?w8pOQ#EYB&j7%k{&?Qy z9=%~267s=#WnixEvyCQE{_yq$@{SX7Uk(rk9Mzu~A2DjgeAXT2Mu1WOX-#^4Hb#g? zM+yM^4BmkIx%Qv|jN4{7PO_KXX%Gr$bm)!4`wCs#C{2x+h~NgSz<9<_xHwB^JiH`E z5)3im!7T_C(Os4`O`aPa2?{H~sX78A71Qj`qOJ@C6hnWH>Z(}umj3sm7(MWK{p1|L ztLIk>qSWNaD+g4gfPn89fR5S33jkpo_%xMhKyH$jMbQF2=}~nl+~&eeZYgA49EVb= zZJ`QST*vu)xM(EYqouqS$xGK&TN*PmKfC`Ij%i}MJGs%26hW+uW!}CJQGBE57|U*@ zZm-}@Rum9Q;%cA1+>ygVieuODafpO^aMXW!s9z}*fUZWog=-9FP=W^EzP zV#*e9zZb}cRG0u!eEw{_drkQ06PpbpYat)eke9_NbSa};N;2dUirVxG02%p46QYEo zY#0(=RT(lxfzL>K2`Y}_<5iV| z63-9sN|JQs)q24-@f-(bJ6X?Q$eYTdaF1e&%Cc5oX<`Nplk#%|F2FbSe@nUqBrKjA z$7l;4VvQ00yh*>uP{9l;(QyV)3Z5Yrf)f`e7-$b=^&uz?DlOwKV)%0^El^4Rjpb7% z$T=RyQO+(-;wWR5QVuC+)4(#7oZGv^E@fjBF)q^e>QTgn&ZU>OKvy%yeZ8@0)O8-b zwQD#Ar2#b@KGtZXvro0nw_Q6|zbI{y@-yDReU7h{g9rQ*74L}=hz2Oc$;F~f_?Znc z<=uxtKqJR7NJRu#8r!@_cn7~n8HL3jBihZg?BP9*o&9?}chmQb1gm2*PJe|d6X7R_ z8wqbY>$|q+Ps}v}HMWW%jm6(sFfmx7gLZ1Qm!Yd#IxXtuOuEi-sZ%@*T3t2YOM@0o zv#w|~XcviFgN{~)hHO%KS~loOr^(oLN!;$Lqey=I`ckj67D=LOtMb()sN-8|!6trk zrOL{rp74|WJ_SWluXo;#`O@2y3gRn}zkpXGD${-wl@Y41+9uuT)atA%zjTvGDx~&a zI$LB&D`<}(%|a4H=TrE$^GcwjBTc3`VP{mZ!QWj2-z8rZpqy4>y3Nr5FfAcSkt$8P z461}8GvQC{E^?L3U-lFzRP_BrVW}u@Zh0j+1tmA`Jb3cr&4({Pl>gNY6eL)PP+`JF zh!iDS409GNS+QormK}QzL}W~CwnZXSYdA9IM2xfD4qI(=)G_-Vu*zynuoiP=Kq6MW zDmBc+*&6_as_6|k(io$SHP3uQ5=M9!;w7kM1UHs-sx|kK?ZnZw^L52vrfJBCekJn zFEu#nv@_0rXC&FUgiU|#CfQ)4x30RT*>$hYNEAN$^vV;$GS389D-8%d;8wT3E_ z=k;f?#(gDmO?p%)3sh>2*3`^}xrL>bwM!dXXREh!)u+B2x9;p6+~@2rVV0~0*_^ff z`o7%NSX;&ATCTvRTfBZJVe+aro6EX2zUGo(cuQfTgp$fuN@rc_Ac=?2Fu^1 z{}nPD%Ih~){Lh_wMFp$;W##`WOP+>KWK=%3p&L5Rift}^t4IDDa>(6?uAgpm6E+#% zrxcV2+zk4WHot}a?x7;E2N!Xly|Am7x#Fs3hJ1v~oAASN%T z^o2!$fRLzyfM{(c{?ZB-Q&JHE0U_P{A6`(yuGeZAIVA>W5D;>nuYQ_eq;Ita8KI;s zsQiVce6=P2!Sy-?bBzE7c3;>(ed|C#K)oEBBcjX<9KSHifB0bkL(m{NX4dYeUs%Bx z@7G*}X;Tg!>C83Wp zXFpw5M?2s3sbPvHb#NnyEdT=hOMu%-#tc{ts|2dZwqqT37hts!fRo?w&+R|w^NwhB zhhtu+*L-~7H&9FY?$kYUnbd|5iE`_P>sD9|quu$1+|^bZKr0{J(6_fMFzEibQH_Um z79YnX!-?v;m4Q>1;i%eo>!y3v6*s(4(BA>1Zf#j5d-2R5&-Zsw$_VTSOIE_={SEyp#rWl}4tO{!U8KXIwSv!GZ}Ig@nB z9e;y&2C#UhRRY?AcC20vDV^){0gkJ)8`>`|x@32m=})(fjlc0MtO7$@DFd_oJl@H$MTr5Z%Pm*^eEb zIAvmbMlIy7=y_V20m{c4au*iL%4V49rf6lRIU=VB??WeBOaEw=hMtrLIe1Mb+n+O> zPY!xC&aKnm#N%ELT(`>7Hu%=xGF%gHTAeGxNcJoFh8E8k%mq=x`PF>Oy=bZg*sd`txYW`$Wu7Cp4ON*g)`~5&xj4fR$$99msv_@XVt+lX78kO%Dboj`)v+woHsqVM z_b~bK^YH-fEq7!hNVkh$L(5rOEB<%@?v)jTJn}rKxsXzEz==|(=v^MXH>Qxfa{H{lti0{jN z?{ODz9ma(CwQfU$+(F8MeDJpripZfhJL^wd`Nb$J` zn?x76XopU6Bhv&U^g4;L(3`QyA7kM+W6?io^@&n16Pwwo<4R6F$u`NJJ)U3us~KMY z=hBx)Ik-bP8AmxdLn)_{05se)%gOdVHALsk@qWnl~ zZnpQh$H^@%QS(Sar`o8YZebquUI`3;-_nItVcb^wIPy>w>sCWNig|>p)F$b;gPKfJzi@|wOYbb9U817C;*>9w*%9I{h=Dj7^&PgDRF6w6d z$YcB6{e)T~x315NuJHN_rELD<>6dpI@l#e5?o=tR6}Hlk!cNOwpWRc>&+m)KWmmlj zG^L7g{xlvEq*BwkP1U@Nnz6B(;#G*N9 zD+~Gwf11ZGY|CY<0r}}Vtpq1!+9lKw1vjmQi2+1aN)Zggt-F~cw58Qdt{8QwKn+}@ zP`PkyY1`|RYH2H#jr+uA8}prQO+4r_{-9~qfva9n{@q+4uJl@=(8NReN|jw&rI-o! z>0(N5BI=x&b>J7pz#o=X7F@U29Ob$&_DwvA6sou3sJ{ZR%CqXj_Z8qs>|iqhs}C#( zS%6hc>-7vuy48n z$x&uw(06GixU}5Rt0uv;QkxFwbG$Wrn@BM8K5u09FD>t(1M|)48b)PKFJ)!}@NcWTn-a~|<|A+joA58APIJ#mpWCp7 zr_!!pJnE*3Z9Eu!X2jV~Zg5@kvB8}!fW>l+?U}p$ZLcugT!;%OKIp`wLUf4v`D1Lc ziT6zKB;VV4SSWUzPh;mJ>K3rgl-+PyZ@t^s?laKdt>FZ0J7A6Wwk_K5otCI7r~2t3 zN$!y*Z+velq*wMi)8Kf3YF4r~z;Ss$TN=wdU4JDn@s@nx#N^o~W*T>Ww^G5lyfIg- zhC}Xj3YPxtK7N}VXdH>oUwou!N3l{jou+9`?{7U>y^x@yRvW{#5r#aQ*JrK+0`Vq3 zojX+^Yy@|p+;2m&k}zTrE{i*SE_AOj?@5^a^}7T7yaRX^78u1!kRYm9c(o*ycI@#s ztZUpwYCQWtXMQ~{ZYW9vYNK=tUP2oWKEv6zXSl9I=hdB27}uEUcy_ct-t3~ZUcKAf z^4KrEP%Lo536Qf>cz^Y`Dn(4TM-j;0+&zuq9d?pu(4$U@GutNlH*uDeHTqrlb3aS= zuA(yea#6APBe=x}i50g9`=00j>M#HNF6i)0*pNJBm}d#j{9UFs2A5qS0wsajJ_36s zZFaaGOck$jxN*cHa5;Yd-kIzgs3!u8^Da}FefXDM6e zT(Ko(E83P&WP9*OIr(N=(XjG5no%Dy%T2C$C=UO3%E8kYYg5-Bj$)cRT{FAHqV8C> z<}u!Gbk`AHv35dG(Q->@!p2F6Bp-o`mZd{ISxxKH5$XUPhoAf>pP?2Sd`xw1m^tYL$|uc(&WZMH(%mSS$MrS^jAjt9PezUCDW;oG(WSu(5;^n6MUN_zKh-S z=mechsx?8ZR<<`*e>n9O>-Z8gfPRuqPGY~Fg%*qFRL3|5`J=E1U}pSN{|XUO^`w%y z3*g)=B~l(dPmqdfECL>9S3Qv2MWZWsu!8EkqgG)~!H5$dtri$To}?rei*_b)-a7L` zb_E4k7nw4y&0%g^$Djp#2ba8a&v+ffO(wduy~9VxSuFfV^5wq8<%cOl+m0%O7g86f z&zE?dq{aN0?~!pTJP|r+_S{HhUo$Ti^{K;~Y@3bo-iNo~Z~3*7{rRI^I$W)#lrQtO z)Al*=k+;cbakO$1aD*swVwYDCAO6ifBM>VAbSwoPVU0^^R6{ha^o9%+)zA1Y;yz=q zpdxRMYx`T{XqjB*dm))qWY_a3SX`?U&Lp<(T=rIb z{JEa0lkIeWy0mnS>>xXsg|~n1+mJo`yI#!ItdS1TRts_%~C~% zbDXvpEH_e~xVw89nJ`ANr&L{tVD|;+^sJ5)+X!SB*-Y$%ns-}D{G5(B` zEvRd5Q;DF-a`}^`P_S(J?b04CO(*TWKmGAw@C5a z@P=lgwE{HTSZjaedLRuRFgQL*uB+#czYooM)H?zcY!^)Z5bD7ewqy$`+%7otQK=-N z%FJ+p%FM0}rZ?PRAmx;(DKQq1q>H!ozu5WUqI--mA#?ZKz97(X> zQnC1+`e1acJNyk`Ip7^@VSC5!Ecnxx4eEr@c`cS;9mFXb!5d9tDh&=&?eg9;Up=%u ze6le3_&(PzPA-ErrM|MbMR~9IA57=WaB?nG2&hn2W-6N;Iu6{pnZ=emC#`hN@+bGl@;= z11pL(LL~H{HTZ5G;mG?9#e#YGN!o=MZI%g)WuEU#3g<@Zs2np4(6XU+Oh`R{U*uB2_>#ZoCO`yF^0}WKh~rs<@mfPr$>HayVPLwjYwzs=RY&Nh-?}mJ zm#oUHcA9pvj;VMEp|wr}X(Qa$!#4f(eCc=QQl&M*gCW5~J{qJQJwg@+&8miDv-yYY z78Z)aQAcmxm!qtk8KJH;Jxp3W=61BAdvrpD1HVfFVMnh$4jd0!R%``G(qewGXzGvs zpi}XH?PYdUFCwl`jJncvz!Wv4bprrR>Rm$3Dq=OapwXXlv(y62=t(gQn3D9Vk_AM9ad;w#9a_ue6>sElFin;xr+^R{>vhcI zvM~C@9+2E`3C25<9`+5Ni^n6uo$_Yakug)N#rXFnhKKEcy}+dBU<2CLp$m_@28FCc zV*Mu*zAD5@;JT7+ss1GsSbYWM6f?0O`Z9l{t&wCk2xZ8@#=j~dc1&%!oc)zeh_JeI z!Y&ogUQ)oC< zpIl>5UL>X+K&I_yrXBoI(MMe|fL+m_>C`Oc>AH)*7XF%8d27wfrcc6Vz|xqbs-@MT z7VN>rmV+cSl#508M7|!jQ(DWr6z;tgt&01XHpwe(f4~^&$lrK{lU8YfS@SjF{;7o;(?@dLZXROEj76M$ELm=VEM~57kRY6(?7^gaY z*LZOX@259T30&I*7E$81Eo6;4Y0`yc_ch+jJ4=NBe5h%XGbJ*L)zm5um!6TjRrqX|dDk2d^7S&4#8>jl^p zQPHGKNB~)SC_YS3e-wfo?p}v57fduFcBu}tB--k5UyvIn3M7)m@@JYt+AHkON02tN-=aE16b6{^ftnJ5srNtc|QjItNj;9A)JdAOVsUkPX7gE#GLefA@=P?Lor3V0U9 zBQ!^Q#%ajI>&bg6d{BDwuiMHe{N5o@8mBSW6};U}JwVYv>v^pOhC|(N`2k;lVJG@v zYHseYw%H?G^n-Ep`uM3EPsRgJs8{fr*VlkB39l{%cU>#&eH-_$gIZR+r;ra3nN zJIr+XuVe7?Ws5&H1|A}yjfm@JHT=-;Oq`V?+LqvI6^UBI`hx&%9amfwFUAY z1Cs5nXvRiH)Ah)_~2EsquBn9Y=&m{bb+zCKR8c`Fyh$x`${47S5OKN6s5-6Ip5bDMJ(VP4cBE0fQ!hpT=#4dvO^xV?QmUKW-! zc0I^*U$QjTWn|_b{hXj)S$B=eJYv=q>+p;a>E*X~*s|rFJ%e2i@7^|h_7Y^1)x~V_ zOmtnFZgt{YL%-#AL1yLQS0K>{a)4cvfsLNmdvAuq$oFsjibriog+ojigRS_{p*eck znOysSyQEDCCt`<}Q}T;7A|_l=hG{Oz>l={EYp|_q&|L>sQb}FYO&TNCW zsPMzH0Xju(1crN?@}AfX_kX{V&(yUku4I2A_Vg2SaWQHq`v38+Y0N_p9`c$i;RaK) zwF@)-qFRkTYvqS)mZXy7)r5+xbIFPx%ZhHzwc-!wy??_=_n#Gyf1IVgtPTLU9Kb*8 z=Q|UlfzOHLJFLUHEC%2}^i#CqiNVVu#1IR*xy~^a)EHl#2 z@%LbHPJJ#jYK@L6{!K-zHcjG9;gPm=9`8j|@mLFX;)hZhZ8&1|T1%5#GkZ3yTCejdXZj%$J&O@yl-U znVM8rYn zwa%XYEM1dkKM68}*=tHn4B)z?re_euc7{d7lWZPYIHX=O45FnhCXar|?o)4S%jo{n zEjL>v>XM?Ca+NSy-UP0ltggO1!G48FTM6*+bJNN$na-m&hV4-|@0PLZ+f-2ROIICg zUw8Reglz*Je_8~yWC+$gXiioV*@mV6qqRfOn>k7Px^V=XyYy%D?sv~@Z^Uml+Do=R~{^RXjT^-9(~}N77TB!@1V88d;$+~mWACgQaaQCOsI!F6H>7Jzm z=5Rq%`MdrP7$6B*Z;&PI`#J$MPN%$j`D;q{QGf7w3_q&K@X%NT8|*a;-lgyyY2Bt$ zj%x;jG1imouCz^*CQXB)h-#e(T;wJMN$kpz(r}`v0bkWX!$}MLB8e%8A%xpkz*c(1 z8(IirHT0S0*6T?|TISLDZz`fI_nq!Z2g>{3eBkAxA?RZaN?CZ!lA_lWNgrNJ_CqTRPgy?((*R@VHt*oGg+^E?gA2KsTV5e3b)bF(Db}v zC3L#16CKOQr?K|(T&Ebs9`PoAOt@3A{W%SIUFlQ(IPJ(=3BBnAs7InU!%=gbPx;V4 zWlFP>=c7^P>Hn`)oH44=j^%dl3%^C03&D?@AGe(*IwE+OahfN2s@_dj4MAjuVB*z< z*MBwWCmCdK$N2-$ZWLI?jfW~kYjJpb7xTVyjpg=?)mjX{bvPAqeeJVcp%v~N-SV8uZ8Q-td51+=f-oY<(mz3Bvm(Ew9yxuaW33B&zPbzT5~dHT#XI1)P9cw|%2^hgFxmVd>An}PE;N;$( zSKKbkJm}hmsBq^@@)m@dt!E@3=NY-7YmQnO9jo9XV&7L0hCaz-{-#Kt?6Wn`|U+RQJl=t*oz z9-X(EJh*)KohGB8o2nL)Nps{9u{Yab(Ja23@)u_i>Hfh=cANp`u@CD&8cHqUb!z22 zBEJOrVHuhA_yxh-ipj`V%!|oQa}AFFC*`_nIJM&i*b>^3+7jD7oS}PB<|&KZh?so6 zzCb^EnB(Su%TJ)c4Gr+eKcxf^{uKD_YwaZ+2;Oi)Yk#43r*zEb9qxs9?ldw{v>tp& zObgcrWPQ+By|G7NIvpDNHH1La^-06RKwZZKJnsT(kDVnNGr2?cG8zqOyxoP57{3Q5?>HkRn|F!0QUJt$=6sWCjZ#~!cRIXk z8aA+Ph{rn;R`0nr>V%fs3P7)I8Kd5ItXK{2j{P+)7wHiSy}bOPn@vA- zIJZ4|86zjBy86Vy8LlEs6Fd#iwdb0!2lQ8}wf4%hZ6g2Em+&8xT}9{aF=`WX<4Hsf zG~dCx6LZe1PwZV@zh+2MXWppA&NF9WS9a22p=wO}Wxrk*d4qp8Wt?`ng4y)RG;1u= zJte0U&fY~u*NmHKGvv(v;QF_Q)p2U)c9(OAUbvXQbsqUYKV_8U9{=Yvl@ES>%ZS@Y zbWXtLfBu5LKx)KlFpkMMYUuL*DT$T!;nb}i#_JJ>I$211{OQ})XWli%pDl067pe9t zH>0ug?wgqbc10$J80_f+`D*wUxzzaMaH%m~=nS<-(R!6~@N4y%wvWT-zI-|OcK!5a z!=qS@g?GIpUCSeV1pkN9GSaRV0RQ#|W%ZbS+_k^{Ua)H3RD<9M6Y~T!WwF%P{6z00 z)exb~qV&}vK*O78ep;uMhLc-1fTo73F=x0(8G&k0+5%Ar&R& z@zx2wOIj$-7Me>up4QA5YnhzjRitOwOY1c6CgWzyVbH;;MYct=MVeFY+US~Zb9J>D zlbX$CvyFZI_Ck=xdI;C>0Lg3``vrd$G=eT8{|B%1W9kkE59GQ>w1r>uh9wW26`_;@ zWW`{dLL-w@qo8WtdCWY3!WhmvQwJckil?#qAiOZ$CVRSq#nW|qyQUi{_o|sSIez80 zX0&?TQOq0i$!iO_LNk=>@p{ZiBjW?2E}QybOi4K)`0!Q_M79hfwdIy0+cIflN$CVP zJxCgCjw6n)O*_y;Um>@{ z2G-gyfEHt~QJu_LWt|cj7^nw$KPvVjU_O$}Vs!W0L2Lh5>~Xf^T?1k7k+EZ0E8{+3 zX~Vnljby%>4*Ou8XR3hq+2 zdgJpd$!O=oDS)B>W0ezylxPY5+!)pV2d>DbZgFYy^h))dzz@OL(V)~aT?F+{ui`H~ zv#@#=z`b_~pBa(dQ2GrlHGd%R3~0IzzS=RxwV*0nxIE7_o39eqPOyT*D?iYFKv0Gc zS;_mo@}6F^tl|4XEx1eG3%j6Cc$4v^7ogUa(BcBK>Q)^S66bWxbvQg1Fz4wW$w@Fo zPP{4V2;5_Rl%bp6aOg^D_`7NoHZ>d+yRW(M;IVM_Q%i86K7Rb-dX#7jX$07R=<$iW~3faN@P# zss8bu2U@Os_6n8Xi?r0a>Sj^ERoGwi#GIR?+eOfDRZR$I*3uuMXvMO!LZYP0aHO&DJkn{o zQ@rV6)+lP!g|KNBo5n z2o9eO)j#`c4E2rm^|uUb^h*r&?d@-&4Pqp#Xh*)WiXaerIU9fs_+Gy2d2d>;!q#=P zpP8<<>}wv3Sxcw>%1YGIwPCX{YsJexbVq>O@G(EN`SWPaQ#+~8`Sz46FyyosHlF^7 z&*(ea`R+Ns=3>5Us`Pla);ay;E%u1djGX&Np70mp-cSPdXaD^Y%Bi9ASmbYA&8q6X z5|bB8Sc=SWTCP|zB4tY*r~7V-Y;Of(*D*FLr$wY7m=2_pz_;pjDp(dAH650vNOCym za*5tGiy1pSMJM$Sc0MP-xSY+nYwST}66Wz->LTBk5|<8CL&hArT4jFq#fei9JKt#g zqr`#E&1U1l${V>_`A-(oCA(nJ*dh?t3*!r4^UI)4|mm3^God zTl)GvERnUv`=q=Mw!@@10?*x$ksJ?TjE;&rv%84={S$?kR>ak9#Yo>^#9*cO@5tZ3 z^}(g#zklaK3bAaMh#Ro(=o{~tnwXjxn(7kTb!2Ikm z(bt#IM^)9=&p?PX+A&!HFF?gi0hx=1pZUjTczwSi{>WoOOx?aSfiZ$H`gJc==u+kp z|1C^D-Ol?%vQyQ2`;!0QZsA@h2N;%HV6!<+Ob<>L=yWE`yJ62&q6UMa$a95!{bwxi zF%}R!4G{1t78a{jH-nZ&fTz*F+o}M?Bhm5nE#?S@q;5jQJt!9;Fk2MaEwf;{_nni* zae8F)+7Y_Z9}&fUw>vV|Nu-h&;ukVAfgEc%7YK3zhdok6fFaBcSb~7+o)}h(*?Q?& zu5%-cY-yc#x9uH~@72$L51DClYVngB_;-dEe@euyIVySb@Sx~6mvta*bOpMwV>H;kj$i#oKmg@g^^!R@tpT?O(H3KbMkhS8cEV zOp_4v=YmM){x%in2NBlO;TE`4xJz9nZ5{peQ5EHV_PU_ZFjmoY=YN`Ma(Lc|E-TAR z8|#dbu~|;MkL)E5a;7FEGFoXj zgdC{sI>X%mZk3$rGHTpR6ohS&f+UIs$g>|v*DsSGPdBWvFio`y;xsKYZWKAt($DQb zIL;6KVk-g`rCH@xs%l#0$3Ji#l@!u@9F?W(ww6~E|9&~P^%H!-wyxTk;5?1E^|>zR ze>-sX)de*nPwx8KUIzjS0uA!x^AiNYZKc5zQXgj!cyxgeUE}{<0X~w@kHmw7YYB!j z&hRo%xa^T$K{a{bW?tAudN@wYxNtet^UX+voljoy_7lf3w zwIH^=qiuQJf}2IlCIpI^C}5HqJVa12K**tP4Li<}+$-*LTh4a`)$3~E#|&&Gt&%Mg z?=&&Y4Tc*{RonA>sF*@rf z)HRJ6ha#}IdNTKfLPvgwhYW%2gOt?fii_J|9DQSHB=z> z)}24^0b8YR-KV3`<@)i)dv8BEw3m(}$uXXZT~)xvfn6dfU_Ukz6?ig|^jf)K?g;=0Sy2>Zf`~(d+3gVlA;QcFQ|czuTie)JY%xAxX?ThPIA`jts#@==5!C?h6M~zE zIl}VMS)q8SXHP;zOgBm#6rqYCaWEm7a%6w(ju&p^Nw0u@e@AjP-h7#k{9Q9?S>5pR z-i?N*S>0oT*F16vU2!z`oai1{m=rH{fCu!zpB#l-n49|^?Y?Fcy}AqRZ_O-ZN~fS4 zP7b1#t!9;4M+>|2sI5zsT_q1~<;J|Qm#QtKP8FJOi<#fEfPsYo+pw%dwNs^0(+A2( zm5Lb51$gkwjv&NNr4hvw|Jqn4g)Jwrj5#nJ8th6)I9aRDA)wB2;vA+@n~1qsw@7`e zE+9o4@P-!>2H&kpJC3I2q>y{b@tOz_UQk@*<}h%uT!XM{&E~RVqd(04+t8h}mbXiQ z_|}R{bcb;RK`rbMfVu_9Yx`Y;3{iuB%ay6y>>?Y(S;gEie9T%psvR#E*E7tHl=bL!u(Al#9txj)F{i^&=k`>Y-EU2girey z!j02ioQyiOLs9LxSWnh(;Xql0dq2Xuxv0+8zpe~#CG^H2@t4?-!?v<~1G&tSetADj zrso)ZBsxVC`B8x^CQ?5JBVl=F7gVq)V&ya>?h=y~mI$QNRyGwi+Y@9dIg!9YJSeDb zLvuM|pqaUyo}njg4St@coi`!*z!gVm!2wJXa|%}PewZ9?Zu>=;FK^Jafh>TNtuFpFW8IozuR5w+}bXOzH{qy?{*VHl^gsw>%%S39dU zpSCd-inTZ-%Q%Cd7{(D8DxwlhHx@_js<&|c)?Ht|a$QA9nJd>K$01hQI)3l`Flfy7O&)A$DQd_{8v~1^j~t z_zNv6%y6c7Y^_1aW)EV3`5pXrZtTQ{OSyvgY}!w$R&K@()iQ#QJGPHxp-qpP1mYO= z#H`5@1X2vFtAIySj0ubHM!UEbTKr5qCCfFqO}CS(0sH85_@Iywv@MLv4u9il?EVI* zt6uT8-^4=l&0-Eg&k>LXPV(N4IZi2V#fFC62@MAg$8Ddv$Wp)W00xEjHLB9U8ZIhs zrgF6|t!tR~;rzDljt>K@ZpJt9c%HcblBNX5qAJ>|fs`TU$lLkl?R8hLHPKpK>mcxY zZH`nFauCEbcztci_5GyL`>l&yQ*3A-z~mHz1fPJGpRqMk)w{{ywBSCNl$_B~IZEE0 z)+Lu^FYL5h7P5Ou0e*2V|HemE%<10}q7gX$^yq~%@d2_q*cA=aWOUkC{-j6bpYV5+ z$^l*i9DW?sD1*399&5PN)4%%rrQ2~SGJ7(>-uF6u54Y=jL8r|I?I4~0s0r?cN*>E$ zcHSrkJ3<+a75T(Cf;yr0IpUC>hp|1PoPJT1CgP*>sv2K42^}MunxIohLsMC~jPx++ zUIaT*SkbWjaR6Nycj#S#pVbO9k9{bfn5Ms2=S zECPa60E6J_g0I``Ue^@5o7SE_+;YKP-Fh-{0hY9|6yz2TP9)9538K`=2=7ow{Vavs zj`o@6i(US-Xy>27ZFhFC`n85S#g**gTzjr3yOVvj+1v8QU5_Uz>4QkxROn6g>&=M= zWjU}rIX=VsxF>7ll-o0kPSb6uv%0xuVbid#;R)cpa0)bZY;O3hTXoIAI=ciot7>wW zH7Yx+|Kx*lh3jG;Ui@8v>cH~dZ348hq;ft zke&UXv3jXz!3=_3*1x3$Nn^~ALViuid{73m4`b=0dJ`B!Hi2x$xURR=q&r1sat;K* zZ=f0swG2iP_*&P3`})pv+uH8DTU3%g`{Vyj@u%;&CitZ3#(m9`-+IVzhgo`AQF!yu z;T9TvAdLVZF;8-lD88oS8@4-0GhQ%FqkBiG6BE-hQq@$tIIwT3sT-2gSqFB`-rlbC zWeio&u5uxt+gZ6tXqOP5kgxf?Z!8prgyQ*$bHS!e>91OmR!RiGdJKYBc>_KoxmXe@+cik45C1;mqqr5zTyo&S2wFt26Ks$y_y!?M~*VnK*f$CUkR z|G{&CBxRSvTPzFx^qr*@?aE{#&adnVVUph?hV$(iPzh9p@-e;ci-=utGEyAkI?lN&Pr0)psb0wO$GUp^$v2ooyHmt)`)3WJ}G+2LfG!nPBge}Y{*Q0}^GKvj^NFNWwl z@94IONm7vThM7T{WD%kJTb&4J?M-vBsfEgV)plQ;=)7nn5q4xhSX7C1byP;%cGE!) zQEhvnv(%rzh52Rl2}(%p7^BxnTXW!dc>;35JXAQPB*2&maSg)v?M6kWnvMw;*S^>I zTyLG)HBha{VoTbU=8na)#p5?qO>|a0-X)*+100$lRbsFXAlYb)jUIcbD`sXHFd*4ZPG+ml zRLmPS#lD^ZF`W|o&BpQvwxAO(%W7;WQQ~d^R_v=_A)n?S#6~KiMD9^}ZH=zuX&Wmx zB2iwH3O~`8RkxM7Xv}~2>Usj#rCExgMxXVN;zMtFYh_pr6v9!~_jvV*0D+SJP zj08>(;PK{Ye7s|M^hHl}{I;}j51j^&m@bq7q@Sc$ckVLtGCLi-GudqmB$j|XSsWH& zg_wABC4eJh7F-3;5wkOHCGbK#p}JxC2@?>PJ*^2Wwwk;D$!A5>oRjCo2F|atp^gkC zpE#;7Bl*;Aq*W_fj)d(Oa+$Q0Ua>Xg5@IK(qvpoC^=D98;g?-GdsG65+qi)%&>+BoEiOE!`191*bt30&_YgxQ<)d&pytZOW~C@!48K7a=YOkImS!M;l6 zfJ;``ON$%0DE8H~raN~ZO+`&76`<$=jV=8nQ3UZ3T07Kb5Ku@pWZezvlh~!x0cI{C zzbORFR(u|Da1WC7v{Gj{E!k|Yok!zWr-W66l8i9heZ71<-Q3WV;oG8Fz`c#($>ouZ zQx_u!5G$D5)nna;LHn66Jnq(mv#>w7s3_n;8n3=7S2Z98ufdRJt*|7~i7>Yl=1K-R zQa)R3n-amch@uOJ3XfBWDb_Cm1pp@wT6q$Nrd=~-=(34WVCkwp9tj`XhDr%0OK^u~ z-)OdFJ@A-w83*I9{6pQ|=Wzh%nzvbG3)J%JUEb(dCaA0Y2hs)R{B|7&OArKL> zF^!pZ+j-#?J?$NwJRc?7IjOX)$zgyiy{~jOi8GcEj4zr#F1-E`jX5J@I$b+pLuEGu zxIz5@kwtmVP9?VvDktA5`V&I^nqgSP?@`_@8lUFp1*%NyC)QsgFp`ys#fwm7L!J0+v~B#@gg%Do4e!l zZs|VY!XgKarZKFa_yMy#4#M>!z%;uxOPiq{g;F3LAtw?J?gwhl8%`p`OC0VGg1jrD zZ&6T|nb-oCNOU8jKWbR%L9H;zdpGDe_RAk#Uv=pDwGpxgAwEFy?^0OF5$J?*ZNEi1 z5=UVU3JaA<<9_N~c9m0v?yxV}eZ1{KrefYHRX&kz35B1{o@QWf#Y$i1nUJDTO;~DZ zsZ5{pugvb!H3d67?hOu<#R+%f>#E}rz)G#kGJQ0U9hB4r;X1ze#Yw2J-J?fbHHnm| z(lftu9Wa+wv3B?$sn-n&ImUhEkSSs6X}J4D3BCN>@zkOVrFd>k?#UNy;8X@h=zrJ` zNmTXZuEYxl_b;MwE03;spJu9Y9U!Yayh}{>_U6AW<_05Xd7!*__J62vMN2_=dk%@$ zs0kpR7eRrp`{@t=3FeXb{z{__Ns!Yf`BxtVR&nYl1;%6tEdR5F)TqJ1%g^|A|3X0+ z+D3UOPqSu!A+VbZ$k)Y~!JI%)O;*8h=5LVmF_Ga@&2&DkAQMNLGH5+AICzOn$uz3R zOB}^>wv10whq&;NK3mr|_bpunP}T0!sC3E3Cdp#s40)vIg~XyhF%IF=sFDY7Q1_>$g~1>J<6CQea9Ur6aZN zZx-ei7)=;d>=Ld1>yz{AU{lC?2*Vo3^Pe)^B-%IFH`$@zH?YofsMB^Br`jzeskJ?Tu&eolwL(mWQiED{E)?_x}xqE3ZH z%z>)0`P2`CQtN<<48V0i*O`fI$#nYON*u0=f=D5fW!Q4k<>;tW3w7K$rFO*vnGzCo zz7sJlcf-9g%#y!0$DtftvE3f&+lTFaoST=#&yCG``(=BtG7k}%@vsx;c#oT8310IW z!ygNf!#cX-6w8PGd^98ZU5kTitJGT1ZCF z!1qn-#!cDUeyEj+{t%t8-f*}a8tTwu%f_-WUtZo=>#QSlKivd6EkC^I2TmBXKc;={ z@!4FAsEt8tyE2lnc`re3zuSEdgcEcKoOE#U^q75c@S?@W3s;L0&CgGa3Ybl`n^N4U z88J~BS$CAKP=(;vJPV_*sM5tmlj+{?zSu}e9tz)hVC?K{w!foRUbI<)Wgh&}vPi8v9PuLVq#()}L;jzK@y`blh!qFLj{f z!+wY8jr}d4PncI%rmUK|P^7qQ=c-SMjrSvD-!M|E*wuoSK69fIY0(&FYSeH}*)D7< z*|w?;i{YXM)E~Ja`j%7xWyQukXJ?Y1p!4>OAJ}!vzock4j&zQ z_rD(;8%?IX8eOLRAN&uHQ10gvGi>-KHrbAssY$D;M{YPsdw-gxC-d(7y-YE!=pi5k zs$&v#siSmZLF}uq>+NIh_a9~wS0iD}cs}pyukZdK@HKD!2A7|~N#Xcl)>eG0GOsrWd_6$6P3bsWO9j7L(7-K|H&2(9sU1-)IpjXnG z`yChL_tcXXn0%Pf&n%K_Ew5G;gF(G5Xa!yYtt_Y9M=fqqm_+B()`L^k@#*ta&fm6s zwv1Q5&Mh3sUgU~Ly%FsDF##`}1Mw}W!!MT-B^Y$2@M?{LmH)LcQ}3xq_G2T{uNtx; zPFqpS=YZwCls^D7$CyxZ22{>LnfxZUC1b>kL~!NKU<93Rv0D}HDV#n+9>jHcIKM^MSarOwiTR{u1>WtmvLOMY)3+Q11jrAj zK-iD2w6%0z{tov1HXJ8V+wRTg+V^lUIyx}B%%hOxL2h%RdW3u%E{A0&rxKpF=lG}S z^+%ZeCA?oY!Djod7 z2l|FySo+{4e=&AC?G96GB|wvhjxJXD?vI5s$kQ%;wnUAA#bn%#=Iaoz_tth%-^5m) z?RQGUgOZ3+raQ1B8A8CW}p1Ndzn^sPDWg6#wQ7j)&dpmc)d$dH=! z9zv483h>@clLBF+LT3`gQ=8o)$EAi2$Sr)aveSTl8+TvenDbf^|6m2cc)2a&OGF|@|lUEcl^efBrvzf2Tb^6XgWJE8Q zEL(w-M8uf2M&`%pL=N2efQmT(@iiaxR!qdEBI#@2w8zDz|#%c zFeS)zSuU2DF1&DtyCrk8aL>e(I6IjhlS111o$n>yW8HHsBc{33~Mp z(@=dH`ua4KTuMV<{=;k-UYh~!OhYfuz;H1Qed!M{`T~@xAzD-b+Uf#*%}i{Jh0;?s zD_D8*jG2>>*%KqdIP1uCUK}27bNIP()}cKPd2hy254+P>tA*>2S( z6Df<#I<2{w=G291=#I-nGY%sN;n~))F!_t?smnJF_GGlf+RG9VwQJ|*W))}(jBZ3+of>Ijm2-Zm*V^m) zQ=z7y!XzC0nrKP>R^th7zp-uQbu|q;`{Cn7#LM{SJ0dlHV?>>!$elc+kJzHNh(39n zni4Y}sa;7#%X|~1q53rR^=T-%l!m?x&?_;#_GU823;mK5B1X*WflMBFfz|-WR@(Xm zUA4VBwHyI_>PG8-m}-rhZI( zq#kL(3cLuhqTOXqu%c-S^D8F>h(a*oPz)L_>P;wBkRxVmGSu`otLS4wf1@u%7B>`_ z6~eu~z!a<*undJDc}y;Es~I#82M6~iTw3$WA~0J(F+aQ&jvK{jB}o6EQ|OGw|Ih{4Z9dwb(}N5|H>c$rmR zR#q0RdvIt)xqVo#DK+Ty`FZ))N=Hp^5vhtqswUrn86c}=MI^kuWofRmM5D^jlh2vX z-Mf&^-IM<-xqHk5{Lel-c@M^y=9W<#WJN3fe<%&rr=hP;L&>Ey^kslviQzR0r8!&_ zsu%J8ISr*4^dbfdrCC_a&j4CVp}c(>`cw*v(G2J<>9&*h*)UAafWDE&fM-CDrQ3dB z2LQkkBYcA|q8WPNRvb2~QoopELilSx>pqExNG<;qR`ajoX5PwPJppN9G=u2?3Gr`< zYeNss%!B#X#Ke-3Re@Kh)3mM``;eKXb4yJ+tBcf6CveR=xfBdftWD*5AtLNB z$WfX#VieadvuAnHMQndZ#}&C=J9lE|I4;Xf_&Pa0HI>FJL5~YDSIhvTqhc1vwP+gp zR0@jG4CpQCwv$D(VVI&&nqx(wRuS(50#psqJ1AbOh?hcj06jtRT1C7M%!Xl#LTT0# zwG5YN8MOcvvyy0Aw@9sW8v0ZUiqQ<{E$OzCm9t@(ssv*L=y%CU^1t*eKt#;6k-HldW6xcm{TsvCP({=U7FOR+*wdk++DrEdtE=I z70Kno<}N7j$h(5F&RjAlS@ zNw=K@=#?0zD3s>qP-sNNt3?RYxUM3F2wqq&BYhY4A<59r!n()e(75%G$Xro<89!RVYdgN+nLL7+tVp#e&fl zgBGrnGn=8H`I7m+U^7g8$y^)=bZ;z_)Fy^b^x?TZKOd;r#tWIfYG~aA)CJKl z%f(5BIjIyk@xR|_D=n32wb}D!UG>fFEuLz8*TBd?sY#8MGJT2J6>kWJ=4j0V2U#Fd z4d8TNmW30|Ow-^jnJGBiEqV>BR=JDobct|lkGIU`nb*?Ls_e|S8CktWUq*bz`B^gP zTU};~doAv)EQyB;ReQ>+*fMnqkr#nB{v(?9|x`8FN$)L_suyRTMbHXUINg7IINsY4jjhcdpc|%%ey{m4%`94hSJR#Q zFA3a|^}$){e~raFnk=Yyl5ar$Pm}eFlJ$RrJ4XK(#Ceo_o5p(<^4g^=?D=ALNO8yK zFZI^gvaAhcw`87$^1mE3(Y6*KD;LhP0(Qr7A0F zFd1dOVXfM4Bvy64(FDB@kwWYt7evi)G3;qtDj^qMq&X|kOnLA#$S90L_GNp@(2V^i zu9~@fR3}POyUOQg>=V}vr8bYkd07*gkDdW5m74Dw z&+?;}St#?VN9^bMn`SlBD=9EwkJ68zkazR=@~>X*1HXNw^8D9lBap_wJB=SaIr}5< zpTa@@y~`yiS-tu@v!bWb=Y9MtbL^jwKJU*KeF)%v5AfddPeg?GJ~Sd+fQaz3jEKNY zBqIXUT?KU+5#d5ABK#S={i#{J{izw={uA)_H~x8V|4GW*T~6?J18ZRow4nC=E3ofp zKh(aN`Dy#6X8%W7EXA+;mn`AdVN`$!GJYF zHGXyS!S>wVxvj(2YO|5^JFWQ@0p^;om#JlJX(=mHm!ba;jesR{000000RR9112c8d zR{LpR4?Oh%3Ipf>0002i6j0It0002vrp0Rh&Hn8LGz5MC0RRR70ssI20001Z+GAj3 zU|?bV_m+WyHSOQoe`i@um|rlU07gClsL2N=0001Z+Kti!tQ}z#1mHR6ubyq&+S;~l z+eT2^c2I`3ji@$b)V8AA$>!Oce3`S>$a6$$ZA9xJq)>CMh**2J5G$kMr-|@ai@Kq? zgrl~EJN{^6&KYQK=J5D#R1G|b$@63r_x(k%%tZkAHPm1@nbz>pOn9q5DrqGo=t21E zPPEsRu=Ff*Aho7@Tz`!Aa)gR68c?hTpaI27CgL>&@lxMrX*%M`l16B0`-~9z33us&IO*c}Asx`3 zESUx$vg9@l#bTqw1!V4W+Xk!<(%P_eKO#&ZGUYzPbp!(CD$?aB;^iqU;q%HT#AMXcqzh8A~noq}k^GGEbfxdDG4LDcRX>is=B}r&_DW<+n4<6!CjeVG3OKTv%AFZ?Cuo9Tz5F^K3zg(8#|Sc z-6`^?V6t-iR1EVvyJzfGes-_=pt(#zkn}C5Z&Mg{2uFBy(N8HNC9&UpxeIQy0N zIMWwZOmnJ-3T6==8PZ;uKpV4@@RGLBm~7kV4K1fjfTIbG%+513hL+Lc>}|FZuD1<5 zHve(>2!PmGUaMdt+LiYYoVRhZfS4zX8I8Qx{=YS zVoWi17_W@)CTC_aYnvU++2(q4hk4n2YY{7(Rm!Skb+N`+v#rN=WLLAN*gqZYRCMY% z&7Dq8UuT3f+4<#`b?3P&-7W5J_n3Rhz30Aizj>_Zda;+u%jp&I%6rqih2BrUyg$sJ z=+E(&`ZB=|L}rsEWG&f7c9TowWgN!k;(qa}_D10w(x zr~vYK+I`OjNI|#eGm9lfXXAiDJ+J(3$;{!e%a&DdH{G8wdwR}=U zL2(6eRnTG=&|FYz7gElTUBm=mb}=1%*d;XcZkN(Rz^+yOj4T&)Q_X-qjAq&+RMKXT zsixi@mn-cF362O8*CpGwZS#K1yvK7hBK-5~vK0Rj zl2JcIXrQ4+8f&6yNTr$PT4<@2*4k*Ro%TBDsFTjR=&GCUdMKcvLJBLQsA7sMp`=nu zE2FG(%B!HFN-C?Os%omMp{DdQ$S9M{vdAi%>~e^cUmC}qP)}M1m)`4(DYv86WIY)*&@(UL@~tB+(~tnt-Z zdE}PY4GZja$=ncQo*3(0HP}$Y3^BrRTaEPIC}WH@+8g6cFwyuBYm&*Pnr4b^raNYl z&t{lqwwXRU@18sQI;5Y&R!RwR-s$hI`yP1ck;k4G;HhT@dSR6#j{4-KR|a|QgAF0x zH{bmT3BL(~hXV!z0E&YD#kOtRIHta&y?C2goOgy8aS|j+ktRcy9C->9DN&{(OST-U z)b!Rz59+$>rWXzUY0{EGn+{!i^cgT@#Fzg@yL9}+#Y2Xsfz9OI8IDIWb|ECi29CIystBX5@b z2@^7X7?x(KUD!(*j9?5Cn8FO^!Hhu;1(Yy?F-%|zGnkV+=TLrBC?;RoyAIJ)NW3 z3*8Mvx=6#%Q^+)bHseK0qc_Arlb?$KE|*S^{a%JbYm@@(p#@C99P2~O`+L<$DN?E7 K78Q^b`Tziz^yl~h literal 0 HcmV?d00001 diff --git a/internal/ui/dist/assets/ibm-plex-sans-latin-700-normal-Bxkt5Cjx.woff2 b/internal/ui/dist/assets/ibm-plex-sans-latin-700-normal-Bxkt5Cjx.woff2 new file mode 100644 index 0000000000000000000000000000000000000000..953f94fa178e8ca69a8894c2c9d1325b3a15c150 GIT binary patch literal 22832 zcmY(pV{|S&&@Notw#~b?ZQHhO8@sk`+qP}H-EDX6e$V@!bAEhTSu2_R$VxJkYp$8Z zLqVJw2pH(Uq6Gj#`JZ+#6bMLj{Qr#okNp2HIIOrqU6OdA#t?=ADyl-N+CZVcP&Cl_ zpvZ7AK^=}kSrV|J1VF&-AY`DCoM1%Yp;VBOc5p#dxF9oZGtCGPu8>q$%6+`H4R#yd zI%YzOiUDLK?IKi?T|8#LztEGDSO`}QmF8=(OxuYdAq_hz3qzIs;xQoe$Wh=R*}(2$$Q-MMJVkej$(*RVTx2}0W;iW z|B!;$l>4fzaaf zxhI5h4m^--Bvn_s17RLQTK?g+d;AU=|2j&w{m&J}~~)LA=@d?+edR z7X(HoeG4K9k(3HIER4aJ+jq63wKJW&9v11fbp1X5d3Q;4>n8N$$krLPTJnn?2y*;K z&o%J7Y;d#lYGIMJkPKKvLC}0lNSR}q$t!DM9)=TKRyl_>3e^SfPs#|UL-au6gA^U!K(?A%fz)QclC~Q zsZgfU>#EXax0YrzyZo)LbgOOJi9&lRXy%l?y9F-T2I=KdTdh}i^Qg4zq>m$?F4!Q} z0!_j{Czp1YsNHZN;{pvQMg+9}1@=;m5#->7zjH!--Tl=6<3k?!n_o$IJ|(5zpCRID z8VbN6ZOU3oTlMhQ=H)r1-Gm-y4&^F03{{|tR=_gqIX%9XW;xIP4M@%V``G6OU7CUv zi!7WW1SgDz+7)Z1M-2@)tQ z;!Eu9t=a3B09q&5_Z|Z!j)sKPkinXr2#JS=0qMVg$YyrnV=w1V&8e57rvc1NR^XvT zWST_zK=dYlHPmcFGjJzJ*g{`!!3|AEgeD^<=5l}n<*PUR8GIS~$F3a@cW({J*p~>4 zo_?SaC&h041xV&1b<=91B(@XbxuKKR`MK5%eVajy4;OHtcm5?Kwmv3GA5LK?0 zmb;CsxByUqveI!3;X7J3x#K@a0(0s@AVTkA(sWzn)C3La24hh1F{Vce1M!=S>a_v4 z<;$!m`l%XC!_;s}?y%SosWles%rAYfSZ7CB1a$HyUqpCX=Pd*46rB_L9ozfJy=JA>C1e-H37mS0x%}m% zRh33a#*m3nxWA=8tzKmJA6kx`iIokr*%5o^ttVy-hm7^FWTV_tz^^lIoanUG`1c@g z#j{SirFZ@%6rdn*9tZ;8{7dclucruv3j@cA*qoB_6esy4UYZ(Y)|9Dj)lE5rZ@Yia|PJG6I&5&0&nwhqsz7W)ol9rDLBP#J)wl z0enu@aS$yGl|d9J=znN}bo?Vr6l`b+Y|D;fiY&LMY-S*nndXU&w zxJWqU>G~BE0!|zXB?O%unMNFiY%;^hem;iaY&t*hjB{1 z$gyNRLgM*iq|rGLB2|zfXl`;;A5YUm{xCA}nYt6z)TI1ESgP2fajM zaMr)E);4N4ab9bgHfB|2UBBJhjiIhtdSai|#EYtoA;Fp0bsgyh5U&ku8v2DM)}~XA zR^{b#zCWcVa-5YBA7L%6Ny+`H7`Kxx+wvwjd$&_BskZIs(ww4WA z?l6+6mYDyFPLSO{dK!hut9$Qb%DAb+jKYDLPoz>vcE|i|MtmB_EGFMr`pIYZGel%p z5@*-z#_-GX$n-&~%+&h}#vJGn4n_b3w{sTA5CuTaB0a+#B}xJ=Wfq)jswsX28AlN3 z=dG$$SD0X|=QxEgf76#q)3C-egmo-ydX%TtQGkd_H+TeVU;D4XNG($=MK6{e;lIjfP}k6h$=<2Nd_CPX zSpV1v0zfTpg9qt4qjnQ{FodSpe2XCJOS7CDt=3^ zF|-UjO!C$JZnuXu5O?}WCmPVOu* zHv~31anjNx=(S~dcTSPd3{jsx(cmi}Tf@=$rrs9Q=phjj0AzS3FQZRpy4f+-Btec6 zJ6(X~W^;5ULuH;`cjYp9850>Y){>u&UNlu7*{jaWJAC(2-pE-aWZcE{N|!rIHrZc9 zo2eB=vNIeRr%BpAw!mko6;4eQI=Ay{hA_hhtcqqX>u35Y5@+uz&SfY~n@eSW)M*EH z`mU)E``)||r4VeJvs2&Gaa4dsP-!P=6N9X8GDTm|LNAWuD~IsI?~NL#3u1!)**pPP z5G+IFP@*?JF&{jMXU=ntw)xOw>l5LmWN`f9Jg&~EpqFC_wm zsa&CFY|JR^rv2DGm|;j*CqJ{fjvHeV9HQ&Run_-^alG$dFw=arq~cWCia1-Ly6^gL z8?cxyi%%2XC?5ElT+MwW8&{8FBD+VlX_2@9*~UWcQk&IS?vtARTdW#Q!`CLpPtpz+0Vn4c4?CIN^1(6_5)RQZ>hw zRk_ka!D+`7Pbg8Z3~5FZeskIto&3a{29`-4xf^>i+<_x`szrK{;j8 z0#$V{;aIOiM{U+Lf04WTa=HX$29yd_Lhec zZ{y|!;ug=t2>WcaQavj~d%(At)RxI?&Uj_)KhrJPC^kT8+6k*5heRt$8R z0u~Xi0>L@siFSp8ZxAV+-elee6CiEauOt2frIjH1LJ1s{2DIaDeIl{-doetLhbEAl zGGm$#HlG~lxD#q4a%H{A4E+V0%4z99Ec(e9isjNuez^osEQz0{`G=lQirVqVyC8C) zm{vv@Mo|A}(u!TO{m*Tn$k*Pa$s-up>2ds!vm*4xTQ3}SbwiB#?`Wb$ew(>AmF zTL2YO+z5$$V6_US6EQ&pKRLTphz9TnRi`9yiG2z1RF-oINTq01f^`W*rPx)1cL}hS zXjX!G3AmNmR)Tv8=%r{^!tI%F2NDAa1F$zxZy>**fFY10%dT|$a_$q{J>EU!fr6kV zY4<0TVFt1E{F2w9oVWF^FYkkJ`oRIjz?%Ih3R@9gSbGHW|BXM9#E7ASiKv7S-CsNA zK?xor$9Xr!bKi+_gS7%1>b3;2-%w}3qktjI$pb;aA=+LXAj!@ez)tm+Dy|#6aV$%s z%(X2`zpgdv9cZXW|9c#oJA+SCl23b*Mswg`*73#9^|p^@DElP`kc zu_Jdny&F0w>Fw)xt)$sV5j`hJ2_8*#UXNmsl+x{y3mv2=ZROTH2Vm-e3Bd=e#c{0v zTkZhzI2B_TMz|4HI4D1I#mXLkHB8hiEJnd7P*^DHI=gc7vt(3_&lb)Sl!p3gC`@HZ zw6%2wUy&P9Hzs$zJxTkJ-K}rj&sZp39C2{@*{2ix^ypTwha3K(yk}%x5a4f4m-5sKb?Cd$_ELFLW9<^s)9aXO?mA>6?{XSnc0Q3mNEi70C0L{3`F$z(b7KkKU} zJ7ciaz%g=cRjj=1Q3lO!0_$H`-O| zTbAV^@?8+!(C1Q^Por@%PYW`H-*CE?01-%GDB>DR+U4mL@u72JBUZHnsp_%!qy`vC zDB@6n5@8|Nf0NX^C+99KEm15;2!P6TZ(IVY2t(6>8@1kRpclW7VA4w*06u^{&L=%7 zRJAm!|A`zxelh6S@M#k{h|rG_Yn+OOsVa-Hv8^a`XcFQ?i)UHR-8j%Nqkst^feFDJ zJay(IHs?%dO2R{UUzGmwhhRpr0%`1BA*LHgEfS>@*2Mf$l3uLxCqF4dK$hXX?{EVV z(HXfBoeWH&QCrgfl(;I$gTS#W^14KlnpV;l!TsyHAhjO6ui0dpDfr(uOYm~#=}*)< zW^>zg?Y6*G!=-5g6y9~Vz(ja#&gNp2L5`qH&LaMmF!b!BkIn zH9@9@-r=T4^MQO=21w!?3~y+ORfsLF^|9dP?L-43kuL=8)&aaYXvlzAqW`WQB=QIA z2fiFB67e6B{Vj9+djDLV)5|YK zL1M8kEb7J5jl6fzz!2(&vXE7a2d~NWL)t!nf>fcrNf&vnw(RoEldxo06hTrl<>DUGmPHjW)QUNT(brl~@I&=nISuo^E4f0gB#~}CPs$=WPGEfDK=3tU1bU|nDQ`0YJ zPBq=v0eawmN#v$1Pyu<$LLAv4*dSpr*q|jWrnnMHuQ_n(8K+1j%pROhr#&a%tWE++_Q_- z$vNHWTi>d}`hURh^|GLlNe-%P0^lq?sC){$G*jOkNij*F*HegXawm98QiB@^QD{V3 z9Z1il4B}=kQNL(3(DJ;67iw{=E|D!$m4@cBtZq=@Ivf5LGp*J1C$u>1I>D|;?nnzn zD^#~e7fD!|GNn(n;O}_3>bfAGeB7rCOYtU-tFl!hpeaeBsj4hgztX5i{VDP(<=)qg z?33&eMeP0WbOyp8G{9ld(b3gF{&*GT!{n&hb|6jm!OxD>six16vPl}SwsLx`_ZS6?D6MqB>#j}JH;ys0% zn*YS3yen}_{VER=cX|qm9h30H_klzjxEvot1|tF@3Je_+YMRr)ts8@>t4q`3=Q2Oa z^kT~ZEpae=+VVIg`VEV*)m`}ZpbQB-)|H5*t`UT{wp*zVX=VIoSJBs&W*w>HMiteg z{pCAPBofpWIx_qqAvJAE)(hcR#z@oaU3-hc%QZk(luSgMcZF7`@kwe*_R%}e4J1N; zBr--?Evlk^!GMIe*M!+BX&ABqb(!f>9)j#j?&a%NEyuJtp*wem(C~o!U%b%b($DFD z{C}pdLkz$roA$iSav>2GN5Xk0PF*0O5CS$okeNtY%h=uwehu{iQvgY|XC1?q!{ zsSjMT1ZNgM2UZ&yMfs_>LC-Eo3H)1V6L+_nVnRN#M=w@7a%{gW2sANTw`c@g; z@L*SIdY1!FiX>TBfL{c%TmOS8SB4}B|FfUS3X~`NfjuR%$!{F$oCqYB5o?J;&>Db#d?%(q*P+ zjV>F!iJm?(V1k@v3a(eKD(hj`{4FlB&@L%T*wYL+AYj3eFCv zx@)~qY%zb1BM%dfOB&|3aW-|FGQfc1fg}DyD?0Ng^3Z`JlnU+mZ}y4X!dAYHC@u{$ig_EyYybXCAmqPT_$&F!))uWZ2SNSon<}W&OGz%&G9Eha>4-T zDcH)p$8SCLWcnYeAc=;po@UNID2UNq`{(x%*bifuC<5=x;`|`kusuexh=PMG{q5QU z`=tVef&*xelK(OqS)%&Rjvos|SZmg*Hf&W=@ZuEJm$jLjYjhAWH`s{4yTFv2DuyGD zx$+&^SJ5F(ov0@p>|TD1MAsF$+~Ggs z8NsY;%qM!_+1LX_9>WX7MD;q6qM(IiGp+3z z?7Xc%E=^1AH*47!`Cv62Vx~Dfe`|OMjS2(e-IMK#ITO+Fmi_~LGZeF z;)Rw;bIMft%!yedF9Y`e>J$`gfF%togdDHooCVP;iBYV9g3WL|rb4|_~~&*qgM?M?D)>^&EcOzT>H;K1H|hH=-~!pj~|P{rQ|GXT0y4Y zC=rrke%5dt(+vNbV3Fl@Jfu!ONrN9LE5fZE_Fi;W4Hb6(WmY#-Ly_J3k|lL(@Dnfl zGhZAd7$^`3ve2;z=%_{63?zV=&_r}nC_T^F4OgO5sga0`OxW@CoFH(HXmklOeO83$ zzZMkoe<>tk>8w^gsnq8p4vDvE+7t^g*WlaM`IeA)=~tnT54uibnKt?~5-FO%t{Mnb zo?Jo}ybPj^`N=8bo?<+XR2yRZ2o~RF+1i3q4J5nndk*UGjk1yGgWm%z@=X+H zXt@EWuzC2`dd`Qk3{&I`uO?e{9c*BCs)rpqVlT}X1?DXy4eNZ5-b!&4tV^OS^es!` zJov6lr}CX)vJ{k@D!_TO2~r}|l5s4_8L&wcl&IP3QbI{8Hm%Awtv@Nq&=Gmls0B_i zPvbQ4Tc&M_#J0W_k0^P=Mhu3P!y>nyD7a}1vlD(Eb?FkRi^llc6lX-{6j~w2Vn~V3 z8Og`*2`rEWu{DiU@kZ`Oo&b_#S?0gyUezgSgdR+f9EYX!0J+Wb`Vh$Fp34*zGBXv- zMbg9LrjMQVD3B~t*y|K>M`1JOuj|nW6>ZZ&truM)yQhh!V#v0#@Pbg8B7kw09iAG7 zeU2MR%2b<**_``ST}rJF@Y3V4m9rLZ+vbC!7NpwRazYs z_oL`;1QSwSi=>G;bE6GIlXa&DHTCv8VMG)%$pj*yBeKh-uhg`3I)qZe2=9(WB*BBd zi!#%KeDQh@+#8tR>$SggN2qTu(SK&}P0L#E7tk2X!;u;l`NCANW)4zk7tj$tUw0*Qyv;o@-nnW@S_pgR zE2ihc+hU_(n+J}Q2M;)gK}3NCfgm7Y&}cY_0-q`v1}(^=(StLeVPUWzgm$Ry@u7-$8CQeORANJMpa72SR+ZmYp;W7uyo;~urfDP~l}15QL(V-x zQqZ_+mxuVI+Ut$C)xkoTZ*?*CMUQ1j1OPCAFgjCbIvYLOVb@Hf0lrff7Ldlk^_mXYLY#A--V;u9C&a@tju~pjkQY zLsAyG%tP4edX9_a8aeHIuFp6#tg~>bSNpbKLm;mai(Il1xRSF}2`&;zU)XqR(j+s-gw$uepBN2S4Qo7k`0X-sv`b{7nl2 zE|W%MFc>ayS-e*!kcT7S@tHg7+RD1Bnu>aAT1q-99GQ$dGv>?o{QkXL>|COUHvyt9h#lU@lCR{8NBKZ7T+t$0=k&ee zCx8guh5FWDQR`r!^^+hVO|qi2KLRadCE!*7l9RAbW=LFp8= zjHM-J^&O=wD~AST8SIibfz6Q_n5i1$`h9!U5YFh3OHQrUL*uctOy6}^Iq-6lppUwf zTFo9E*eEuA6|Y(+7O-hQDrrAX%JYV5q@f;F>fck5VQ=@wo~@Du%~5)c$mx7d%3|b~ zF003Sh3a~c+=3s{NjMj^QTljXHG)&@=wJu!B&W2eIDBL`CEc{QMuGF8B%vRHTdC4kp8lk%&Ob0rpac6irg!xucYT~< z@q%uOJ{9JzbJzcQH$Yeu3Hw`%}5gCZ4C4{PQn55CJvcedi2(eivbSnZ9)%az`gR<2jVaMBi7v&q$e%D=cB z!9%JQBPJ-Bi}U!NVf5jpnWXXM_i(#kG``M+oAZo6l<&<1SB8+F;2p_3yXSM15kzEk zS2`$1fJKdVu?+!jhTnq_H$5XKuZ0s~X*mA#tbLR)vE3p|0$A_zS(!`wBPJ74d3*`` zJv#HP_f%>@hmA0Q=C0)UtVn`)ZtFi4-=#54Ug&@}Tidl^xgD!tRw0ESI)Y*kf0{=b zN2SanoY9FT+h=+<-iqJhhY<8P@}d!~PExm-+n?@_cUCa?igIx_HqD1I@n`y}h4ZUi^Acj!`@=`}vB1==V5w#`w2UtB!a}*ng8|!@(F4!@l z&aIH*IL*92Fq2M(1L!@=1!e#s4QnYSl3*bMH0&eZ=^6ZWa%C@ zNEury?8t%3GaIcuB{d_&2s#Gb92Wcn;z{FRP0ScN&855UWc!)R5hcvwHbuQfFE7|G z#G_A*2>ty+Je8Jft~tA1*$v3iSRz@_Z8*Ipa-hv@4jJ&~iy@p*XP4 zXNKwgsL$PN6PWwJJjZENf^uTb50KgQo-NyHxDrM`ywui0UCN(IC#E1(9=O+glK7V#?RR`$N|#v2B6rQ+hNb&1$RQ@m%FB z4&|0C8nI`BB5NDrGcxS`LgWLFpn3dY7ep zZYE@7WEP`E@kJ4pi`u#N1zG!u1#^f=NJoY6%jIG1zJ{s~o<1A{h05?(e~!v~7O5A(3UT!L-b>u*BTVmvgxa zb*F6C<7C}oNiO~l@|IB?t}G_xb5KD)@%XCnbe?%6snts*8dZnud)+5A@Ldupv53i9 z4-ANjHi&uE>I zmvSsO(2`EWTCc-qt9#Ch+;Tr4<;3=M`ZCJ8G48v3m7qwM3t`ao*0XC@U4%1fj8DNo z$34G3Ech~D(=Y3uQ6vSIYa^n0o$8Y{;*CKa3t~2|LXt31nMvZLi->uAG#cQtl*|?z z;x6@Vjj+bU4#o|s0i@J@Sfk;>8w*Un|H@waJyKv%7d5U?z*%XlC|O+vD8?45LYcg+ zJdN%t6JkU`ul)PRTIO#StJJK6&EvfrE@W+0Q`b_+@EP5f8AWb4ciz#8{v3O@l!uv> zv9<+8P<4eWM3wxRe>FtKcpxkrW11*}l4nK`zZ(eV66cF@s2y!eV5)#Dg)Bsel23&| z_8i}6Y^wkX>#bf?-e78rlWSa8se#+$!AC}$ceB+NP=K>k_6*Yb#BJ~?dPMk#S|e+^ z2#L+xrdM4)GDdQ3S65#MnCD1mR;r;H8EunqH$3ZFvCLk&Oa9;B(L6GU(!^&Q&7b=; zn|0AXO=r982@NT*+#U_=G`G?znU1h$g=lao51}p$5Cu<3`BPRC0=>%&DtV|axx5Vm zhd1;#Q%1VPx!^inrZ+a!I{Esfk{MmUtjLxQVp?pGbX3rRe62MmsT@?j;MI~6X)Q2U zIN+j8fh<=u>O1DRX3Iev>V;4_T61>HP&0P~tGhzXm-FjcgtS7_b-OiMWMO5(2rJAv zM~MVSDA&j^aKvWi8($_(Li|-{d%BZzOz1e%Bl$9vX1df1WYN`_*WFR+sVDN{1*)+D zlS#RnT^vLDmb3;s;=w9oXmPgInU^o70cQ5UnluMAnv3Z)>1d*-DDz7xYSgH^gnx=% zI~M07T9~D#>}VnS5czA&!M5&py^IAXB)mb9=Ol)2;}r0X#)5PcqLl>4Nx=|##_iUn zU`#X>)vUYBj2j+O2t6mFE#%rkZ!yY1$~%jAoknZ76IHRXKNZd7m;sXtXfiYt`iL?w z03OhMOl{Z)%^O*rUbNSyd>t{`KPA0{<`8osG)^Kvchb^GKT$`x$#rUVoW0Bek*3U^Zd+@V=+s`0TP==$Dc za0lEPil~$3mq~lg`0P6IK9*jl+I6ZFf-Dgx7JE?(*rgLC1NbIMu-MP+4^a5A1@cGt z6^6=xwDrmtznD1HdMZnbU2GgX*6){lv%OK4B0TvfZAp8>8no_=*Wgum^(7z(liH|7 z&6%DN+}b|hXUoh6+Eqo<3b`j=_@;DYl}BR2w61bA@t%cjX)3Wfwyq*Wc1n3VM+Q?x1$cNyoeqUc68$km?Lwrv@0N21z-14cdP1F{I*)A!)wF9p-(!RLpa$p$qRE@j?hBHu7gcepFL|_uh zV4(ZTahE~(En$@?p9cC=~SF3-LNRt0?Ni5NLWL zp~}d+izcp+=dJf$@|9&SIUx{oW|=hJG=o$UPx;#(xMH}{Hq7#zoFt8q8z$K$!zZ92 zC3}J{p7ynvgeUWlegjvXMQH6?+%d7Wa>@wgbBp$|`C*5PjQd|~8dAwjHyaNcCx8rB zFvJS$4+32fE}XEnohjhn?)KS2PCmr8y&>3M*qPSPL2b?c?JXev*gMUOLC0P-dd~<^ z-|I(P-IMQcE^6tcSwlbPuqS@uNC(yopK$i{#IyS!e$4w;=_g+gkmXi_MMc{X)cAu)L;2-Pj;7k<n{)r#Q(1werxKP$7uN6`yqINAE z)GT{}vt8_aXl3?6Wbr`tQ3F5iK(S`=f3Bm~CFsl?ecVCRB6242nF?t)k0OK=sZ7-MsjSf|-xqf-*#W*Fnwn8b7&iX)<- zr$nKh!4M0t!`>%tit=aJlY?@pU}lvoqW$T9+Vd2JLyEpw={=U0YhBh(-1b5_OXvW- zdQ%Nau7t}X>ki%Q+s>>dY@4`XV=){Hx#N~n-!#8gSBTIt;N4YfTN91a;k+Ozm=|^Ok!p^bUdn$Yag{ha{GUi|@dt*tb=&$6*1biyk%P$}M zsphvbm#&%1&`Kqu5wyGwsM)vY=6K@A$OcvHL0>l z>MQd(j1M~Wsp9APC=efCQl&<{-&*PoVwio^zB>)_F3<}!at>2L!FHoEre@fl+JOxq zC1+zUb@D_ctbEm@G3-TGtwf2BW#E>eJH>SO80kZU?bam>+(D=W{=;pLf29o}7_2@H zF1XsX5vte5M=AsBP(1n3iX9_ZXf*&zp4i~Ctpc1BJn#-bUkrkq7bm~sykOf z&zqAB8pa^J-nS!8PO()9nWtnGPP279Md%wvAvKax>%VcAIM-g`Eo==Aa`%x_Z)O@< z5SOJDJ!R0-+Etfh5PJ0_HUDlxW4F-jB&Iq&puUf)mGl50=y`bt+~B;U&uKN#GJZ}u zU(~TRR(opP>kL)uG}XaL)-9MDPt4g_y4`f#5Ev1`2>^cl;v;0m?_f7ox=450O^$&V z1|#{1=5w@<{60zJ+xWg#|LQaOL01?G*k?H%DwWWOhHI zdz^1HU$R8mSXMjXBX1yVS=V@tW$I{KV;-D9b`X_(uYbxC)6P>I>`Ui!g7N%vz(Ia~ z^4<_RKYDMxw>PkEY(E0r)nXkstan!S?04929#WsQqvph_?&hOZ+jK3OhtHIvQj+?; zUCCtfA+7VG=x~^E$3cLPHxfE48vCOv2aZ~XypiRL2bi-9Qg~QAAXKZ9K9bj}JLbhL z7~r5Z#GWMz2j!4Y!?dgI3U@oa?7PjbrOWFr7v!5>EPoZFN^IeSERi^3q9EXd=|tS+ekQdAUh1*xXJ7lK0Vj9xLiDKM)^ck7)Y#_H{Auw1TeQ(f;_2 z+IGQwyF};i-=D@Q8z2TweQ@Mu`{us<535zG&)RhJ5YrezL)eZ({fj?F-`CY(IibJ1XrJRqe`7I8 z&Dq?b9m-P48B0zS6#EwGN2Yl4s>&<@&u`U{`^UqzX!=;}Q;JcE(-#qi(6Tpt;1@H8@EX<&bgKzm`}>~g7CrQ!M9`_RNDcw1y|>K7Iosa84T<A2j?HiNN4|;LKe)VA6Wib1q~`3o;>|~4w9Z$va^m;V$7rGnMc5Vg({UP9pFrL zKsVB}osf3U(l<^aBP;g4q}{vg@8(})lrNd$fee(1)UkCj2RS>ntgrvIgLi$iSH>O; zV4@18zL`F;_Z6pFlnzy>6SRBwq#Gj)m?xl4z`f+#tO5|v7cd(Y#bt7g7hC=Uu{0|Z zQ7K)W!n+s*t`d{510K?W#Sl_oFNt+s;1v##o$jv;wgt{RIO*~lBZ=o{DDT~XLMnW- zbTB)R%0q5$6Q4gE;QrLO7tU1Ncl7EopY^{}4HF*_*5(f~|NNNGo((Nq5HFJX%wfd7 zI^Qw%J9Kq-Kg~353bD~gF0hUg zS0_8J;Hg;G71|^Y)!G?t<+Nb1Ny*tXZE9a=FMuaY#Bv3JJ@7#t0tvwrN*gW8Tv^j( ze7Sg9aK4Scy5yb@I9Uih`2zhBV?jJHe3PPZK|vhGk0jV`##N)q`;-9>r_Gm(7Pr_N zecMErX^}Zv&of3Sqck()Fkp!G@i15_vMOj^s5;`V9d!P2ic43Bkw%rrDnrzq?)uN&;sRDPQ}as` z=h-YP)3)#~g-Ai}w5JD?CQ5@po`}xuwi&LBPDS&hg4Dh?y={+Iq3>({8>I%+FuWm@ zi;Gc^zB$`uuj_s7ROt+O%^zTWF;oP*x>dXdc6)abf>VuUT|jr{KVMPax`1=B?}Vv> zQ^m#sFc9EE_Wzn(-@wITeSL+n#(m}S9=;sA!rph;uGq`o&>A0B*x@+qg5Yu}!ENd- z=kb2gUQ_fNa`mfmoJ_tX|Ke{<6?&#Z6D2bE>gbpCFusgp_1}tG8hNG$!yb15C5iCH zd=4hnc>N$RRe*X6qaq#Fl}>&9zU+3(ga1vayu4Ht-GoQ2Q5fV7D+BGS5=BuPMuCAR zC(A70w)>OU*h+{+hC`8PY~WKG%$Is*qma>Yus!m)A`sh3EX=t0OJe5>5>E z3vWL`g8@5Djw0mirPbRyWdT1wl{c6^s%rn>+0M@9L+R^gwkodR=927DEmJzPR=e1S zyAqzXQp;{L&j{jBv#r0y+1^saq?mO)d6w2(Zl-C=uqJM1s1cwt$n2wfgQ=<%B&e8? zDmKy{$^1wNmZmGEWURr&G^3Uw@%|$&W0^d~sJ6&!B`HrPSN~p)j2)nZhV7#hi-t!q z>sOVumq_CwuxRqgVl5P`jj67Ir-f#(ZKscqz%T^|5r?uOvXK{H1r*9?2kx1qpq1`)shg9;Ng@*Wvl9*(r;!vgACtaUTx9;Xuj-4)nuJY&@1pCmM zd3WNdi;W!|iP1OkPY^-FAbKt#cxthfh>z<&h{H4K~=j-J04ot zNBrw*D{5h@)_?XZap4$5dD>r(WFtH;$8jRPVkSSk%OJTkzi9mc9LXQ)RRK%u%zd#5 zu+Y>%v1qGj@svh8(#8epc{y1rhDZ5e!O-}OiY*y24slHEFI6?I4`^-oyIb)(^4xGp z-)0QCmZ#t7Z8y1_1LuKE=j)rsPgkOB9sX?!+4^f~40vjn`J1l4p&3#cxgvzot&-c9 z%y!R%4_)24n1{+ck%xPlNfC0qgO59lHltL zoEn3OAbQj~y>|c%Gk5K+Zhr*MtR<=DY|1aNS@ZM%nxiC>N&jo6L9k#`YGp~$%M)u^ zWIzOvS(m@@vhrIR>k1RAh8i0D!vzU-jkVvJ<-VHCbx*2+QR0bevCpY^x#Ix^{Ezl6 zg2FD3DHw8_CR$rfTZdc)s$5*Zx!#i7&)^uO&z|SMPsAm@&wqZyki}*EIb3gL-6|rm zX)gzDKhnVo@TN{>#le(pX+aauWN(%9G?ZOF6ZD6%d=Al5V_NyG5$#}c3E7^)DuOVGC!eoWn*veTJq!vl%D=yWdOTaUnyJA zl4Y_7WYTtrk<*wb$r2g)^UBU=dI!9Gx|L+FTBK*Id?%K#yRBUR>Yuc+6!XAnw$Eu7E z6;}v_6=G;mx=&lewes>7zR}nWNXxXPqI7*21o8CsE1Oi!RnJZa+4JbfHSy%GOXi)U zu4(CjdR20N@_O~aZ617HOi)*qJ= z$~imxz-VsH2CoHWYzPIhbt}Rhj0<`rW|uKjg)I^20pgU>ZYeLw2gB~Y`30ldoM@?~ODgNZ>q<%PjS5kEH0Qro* zz6VpK%3X`iO*pL7*(7Z2MoRd!4nx<8)Eb?Lj?qnrQY2?gxT(mQqt5}x=Ng#(bm34jcAfL$sg|18=W5rsK`QgFacV3&GS&KF<5 ze{Z#(F5rY&H+OFivvLYfZ_hCH3t>bV9p24t#$5~X^ZcNHFU5OQYR8`fcvR`xKk}VKrs9L(j*3P-NutAJ z52Dl0^Rt&moi+}~!N-fs3#d6RZ{qPhd0lHhse#~i9bw&nkvOi^;}=}}zCtt;PG8V5 zCL}2$GB_|jKEgXdz4hFvtPztpx=0jiAKl`<%^I7Xx!7`1V|%P8ws?9D4g!IV1xBo7 z?w&E(NT11gf>h>1T$t%$UI8LTMrb9{MiOIVh#MK_EAhl1nB-kky{Vd2&@+>k57)3Q zG=#0;C*DIxEx&|qp@CLe_?B5q&lU3@^Ubz(qp_Uy9wxVZ7s9sC5VrCj%c$j_uq`yu ziacuh1Ov)pof}7i*#BF*@*$Fc$0z$;(QQxX(jf}O{?mp1u+BwMAoiawT-?7saUIsV zYZQq654-q>=djMLqd@FGT^oIvl32P5FZ_W`~P3HAFRQ) zNNauiKwf9a-6zl5bgD)wd;Y+Ejk8`h3rZS@Nn+)L6_> zDJQEkEc6H2Fus0IKlW@ReIMk=&Gg^ETj5%fLo?Qlv9UAK72F?7_);k+$QYq}5B!m) zrx~dG+AV0uip_@hv1%6H+PBvc;l?IsJZQ)2W`_g^avj*hxW6HpH+RdxD6?*Av#R^H z7K^AID>6IK;9y+NgLbBFbx80*-N2?9(Dthtyd5Uvo7TyG96e9dKJ~(Cwqy@R>>cfM zZ!DdKN86tb3i{+cb$sn1ia>U-T(6_e>To;ViN~n2aT8+~pTzi|u{iGa#BhIKA=xR_ z4auT+xr|5gjkQU*ggZMuyRl&z-LjAkhd9VG2G+9*`-t@QEn?c49aU$s*jbQKxh397wrLkwIX{V4T&bTmk= zUY*T!e7%1Cb!}84JiwdcOCS6j7Sb^EwB!QK%u(Q()N^@fF<@6~KNP_(Y$_3#TK6cR z6g)+RmSGPgUbV=#9;y&C;3})An@)?uvf+3vQZR;w7~2v)Df}(P1t(U;B#R;u;K;S~ z7Wh38a+x#oU|H;C8MSrof$prTW>HTKq&TN$fk)TCm79ABnASd$osSEZfs2`VnHdZ+ z4{lmn!8FNpblNyFyur4?oQP>~nYbDq8DifU6|xgdR3h5gk~MG=2DM8ho(w6|2s@y~ zVdpDYc|&brp-a=qF*rgoGOblg`@Yb5YPHBjOh({Q%CHd9@nETgnNdI#Cxr26V!WJk zd0Ou9#`gWTy-Yn$KTq+K6s2i4%0>vf0;=)N-Pxu?HRQHEXbfIMNa0GsbsO-9K6(x91I3Ffs`I51Jk8hcI;hZ z4>5XvR!_nXj2Ttt^?cef%FPWGz_*P{>@&vkZaHO5det!mTy@YG3Su=CZylJ&F^jZf4!r56-J~5b%sQ zjRz0anxcnut~$dy3=VNh@8piM_5(l-phxf*_yRuiDIfq`RU}ZvVB+U-)5q@ghigEF z+3|XIIP7(qJ?gQ=Bw~ycD8;&6@<_o|33clZf@lreo(dIx(j#azG{%8&R1df?z+@#^ z(XPAkF=GUQT}jv%EKI@DX?-7yxtE+C!%FUXm@$DFl($8J4pDi({?WIMr^6RvJji{K@|J#&%SdxW{>$9NZGl&hlXv=eJ~u}%m(J<@Py9~=ip6L+Vf1(BdIRy@;u}|1B93K7FYYp z-gu{a>#g2)JU)>p+oY=S(UH`CZYv}_wNWp6g1K$-G*m;>@thIB*aMQ#WtMRM-?F~9#jr%H|&&P^}-Pj80vF2Iqy6 zie>S;XN=Xy#h@oMotjAd(nlU46rqwD+DY2cp%}JVCh2`{CsB*bQM8J-5qTQjsL@1G zo{Pl-D|Ij^kpMW+S;1IZj{pHwNy3wPYXl>=u@GQX6e7Z}ypyQ%YyDx{E}_V>SX(=dr@#qW!ZHR}#~@FkOa4o?Zk16sVu+Ji`My91SE|EKDQ8#= z=*oF$&2{dV8aH(Vby?;?5+->bj;Kh(Ns4cZ4`JtHzma9^OC-BE4U3T@(O>6LwmZ0T zWjE8Z+oc`i;M{PWS>!yHHp~2BIm)GPP-yB6qXMO5ckGTTsiMgZveZnf8U)|S6|COf zqm$V+cQm~v`o-ICqoPS(4bVRw=T029uIc4cj>PQfR%7&;x%8`~yG3S7+!gcdi!|tb zWdAm_vx}M8!9i7J#)FmWU>>H{Aga@iK5SAanY?l(#-3=xONTg~HdCo%Ue{Dt*hoU5 z!u1uR5Mh`qar?IjbRC8JR(iA<>z#6C$9kO4bmik!FU#O;r8=uzbv_evhLJ1efd78% z-nn_a-+IG2n9Jim&hhch^k%y9=Fpa^YgM-*-5dttXcueLHfrDe5_4KXC z_EN@hL&iJFDqKMo&H_%xZ0Pz>CF1*vqlC?W~&?>NXbUz5+=+V+di$NP*_0_ehrZ`<|Dkcof)f zL~~Q*>oRf$b$xCh+s`erHuExIcs!}mv_9%P!jW+?`3QHkHb^|@s%jR@*fRsh97pip zh}@5}?2-P9exixibse)$RZ1JEO0FTf!wAWp07&jQTI=!R^99*HBzF!%a)-eMR~6?; zf*PH}O`i~wI|@kF0PMEfwzF9kR3LXYLb4{}<`0Q!z*@cmB{1f+#Pd7}?7Pi<|3iMC zW6nPW^Z?KZ&^aIgcY1bux^`!SxO7j)HE0Fsb3ji)h*5Dyq8VRjp78*jP00C_vJK7= z`rILhYy*OMCVWDG0KuAoz$K=H0i0jxbAc?n2(V}vT>BimY}yNj_#DtPs_Fyse9ao8 z)~o+qCAG^)c(xt`-o;m!>q0f**c5MIq z7x{eEyy=5mo&rYS13B_=-=?LCDOTzMMduP(^tnY@l>@Av=FbW#%axf^Ia3H=6?W@Y z{zR%eD$o`IdT3sp=RSh(NsZvh-PxIR&EOl-Xul1t0SY*e-B$$!%WSI;DY~G9k@Aen zavza1Pd2RA=ZJXPR+I?P7TrUS7Hhx(eo&2yQ?+ip4}qZZosaMN=#h{7x`9Zo97J>< zJx1>GpV88+JbB;JSjC~22YGN$D#en1e=@0SlyGAN1rDc}2rw*e*gu1S0Dx?M*Z!}0 z_w4Qe3t$<90r2_?QMU!~$zxAS3}JU`&xb+?4Fd%5{5}C>k)9wSFObtjvJ`rVt)5hs z#nq($B0#;manvbhUQR4J%|_$+m!{{O-q%2MHkVwT-gqv@r?2^!+@AUK{y)evmgV20 zf64G$Fw@eKmIb9U5&>ZAi@uj-i!C0pB-5H z_h{x&LF9E%@P>)oHOgAUxa#pMlVc^Z6+2uo#>Q(>y5scsQPnM6o2qZ-@u@KCCIWT2 zv57C;SxA>bco%h>)kFk-y|c&APpivPzgw%L(-@cx>+Q7D1(dH(bDqxjUG}*%;_i+({Iv=Sk z8C$~$Ys06jLpO4zaIml{sU6hsXM0y2K{;`*T3iKC@jSMHX-#GBjqPUDvaDBLl*+k* z+hRk8xZh)+aid2Qd-@PBx3|f?+|S%c=GUe%TNo_1!-w0&-sPpT2@k2Ca%3=Ifoy~G z(zdv}z4w^;m1+cwH%j4OE9?BGOj21S8JQF&$!C>3mhtbs9M(s~oHEl=G0ops?}KcU z+<9dssbF4I!CMwaB`oFx^|}f4LB4RIkrMRm+8Bg3Tz)Yvr+i2om{op_T{GlA)V?Hu zK$e1dlt?7Zn1`hx`z^f~0Rc_kuB;p3=!I$ACEdkX{91#n=B7t~c|5$LGO69Uu2v#RsnPRyjRH{*)O5#oO z=2FyjzG8*0ZceVcN-rK&tz0#&s8ZK^8ntB^4a4tV$U~$6VS)`3E=rkv!^8^C)^ayU z<*mw-AfL4C7gegj@}j}f^4v{WOxXPu>>|7wks$csi z;g|Lql=ufqYbY__I%K~C&Yo*>!WLVtL;5|HqTSv4N+2gc$Ax?BV=#r@G!3R(VWo*t zhz29HfwGBxHqRH0Shl)3W2*Izn-mWw<5}pWVx`KIs8DXTN-e6?s8#KOIztRKI4}$| z+(@I0u*PV6)ca(NamE{~%@LPekYk5jJI$6?6g10s(PdX$b)NQ@-NI3|(CG-ff6MJ!_#>&UeGp(FArJo4DglxEO*7#q)G z8`kr5iz;?e$36~mj8mNB64$uJJ(_q#8_#g@iZ>!Y`RWWpBALXpPARLjKEUBF|FUh~ zn%h{z<7uqUf!P?pF);gLqZ}S`s>?&Af&1Z)l#cUPA}0^GYy(+pHI;v*LH=BY-=Brb|K~U77yKE*PZ>Qb9oPjl*Gf}OD%on-633L5&ka;2&c6|6 zU8TI$@E>vN5*?_iuc-V}R!Ry46i.map(i=>d[i]); -import{_ as e,a as t,c as n,d as r,f as i,i as a,l as o,m as s,n as c,o as l,r as u,s as d,t as f,u as p}from"./useNavigate-DyHkI5qo.js";import{$ as m,B as h,C as g,E as _,F as v,G as y,H as b,I as x,J as S,K as C,L as w,M as T,N as E,O as D,P as O,Q as k,R as ee,S as te,T as A,U as ne,W as j,X as re,Y as ie,Z as ae,_ as oe,a as se,at as ce,b as le,c as ue,ct as de,d as fe,dt as M,et as pe,f as me,ft as he,g as ge,h as _e,i as ve,it as ye,j as be,l as xe,lt as Se,m as Ce,mt as we,n as Te,nt as Ee,ot as De,p as Oe,pt as ke,q as Ae,r as je,rt as Me,s as Ne,st as Pe,t as Fe,tt as Ie,u as Le,ut as Re,v as ze,w as N,x as Be,y as Ve,z as He}from"./auth-yGyQH6NZ.js";(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),t.credentials=e.crossOrigin===`use-credentials`?`include`:e.crossOrigin===`anonymous`?`omit`:`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var Ue=i((e=>{function t(e,t){var n=e.length;e.push(t);a:for(;0>>1,a=e[r];if(0>>1;ri(c,n))li(u,c)?(e[r]=u,e[l]=n,r=l):(e[r]=c,e[s]=n,r=s);else if(li(u,n))e[r]=u,e[l]=n,r=l;else break a}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return n===0?e.id-t.id:n}if(e.unstable_now=void 0,typeof performance==`object`&&typeof performance.now==`function`){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var c=[],l=[],u=1,d=null,f=3,p=!1,m=!1,h=!1,g=!1,_=typeof setTimeout==`function`?setTimeout:null,v=typeof clearTimeout==`function`?clearTimeout:null,y=typeof setImmediate<`u`?setImmediate:null;function b(e){for(var i=n(l);i!==null;){if(i.callback===null)r(l);else if(i.startTime<=e)r(l),i.sortIndex=i.expirationTime,t(c,i);else break;i=n(l)}}function x(e){if(h=!1,b(e),!m)if(n(c)!==null)m=!0,S||(S=!0,O());else{var t=n(l);t!==null&&te(x,t.startTime-e)}}var S=!1,C=-1,w=5,T=-1;function E(){return g?!0:!(e.unstable_now()-Tt&&E());){var o=d.callback;if(typeof o==`function`){d.callback=null,f=d.priorityLevel;var s=o(d.expirationTime<=t);if(t=e.unstable_now(),typeof s==`function`){d.callback=s,b(t),i=!0;break b}d===n(c)&&r(c),b(t)}else r(c);d=n(c)}if(d!==null)i=!0;else{var u=n(l);u!==null&&te(x,u.startTime-t),i=!1}}break a}finally{d=null,f=a,p=!1}}}finally{i?O():S=!1}}}var O;if(typeof y==`function`)O=function(){y(D)};else if(typeof MessageChannel<`u`){var k=new MessageChannel,ee=k.port2;k.port1.onmessage=D,O=function(){ee.postMessage(null)}}else O=function(){_(D,0)};function te(t,n){C=_(function(){t(e.unstable_now())},n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_forceFrameRate=function(e){0>e||125o?(r.sortIndex=a,t(l,r),n(c)===null&&r===n(l)&&(h?(v(C),C=-1):h=!0,te(x,a-o))):(r.sortIndex=s,t(c,r),m||p||(m=!0,S||(S=!0,O()))),r},e.unstable_shouldYield=E,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}})),We=i(((e,t)=>{t.exports=Ue()})),Ge=i((e=>{var t=We(),n=r(),i=we();function a(e){var t=`https://react.dev/errors/`+e;if(1oe||(e.current=ae[oe],ae[oe]=null,oe--)}function le(e,t){oe++,ae[oe]=e.current,e.current=t}var ue=se(null),de=se(null),fe=se(null),M=se(null);function pe(e,t){switch(le(fe,t),le(de,e),le(ue,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?af(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=af(t),e=of(t,e);else switch(e){case`svg`:e=1;break;case`math`:e=2;break;default:e=0}}ce(ue),le(ue,e)}function me(){ce(ue),ce(de),ce(fe)}function he(e){e.memoizedState!==null&&le(M,e);var t=ue.current,n=of(t,e.type);t!==n&&(le(de,e),le(ue,n))}function ge(e){de.current===e&&(ce(ue),ce(de)),M.current===e&&(ce(M),hp._currentValue=ie)}var _e,ve;function ye(e){if(_e===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);_e=t&&t[1]||``,ve=-1)`:-1i||c[r]!==l[i]){var u=` -`+c[r].replace(` at new `,` at `);return e.displayName&&u.includes(``)&&(u=u.replace(``,e.displayName)),u}while(1<=r&&0<=i);break}}}finally{be=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:``)?ye(n):``}function Se(e,t){switch(e.tag){case 26:case 27:case 5:return ye(e.type);case 16:return ye(`Lazy`);case 13:return e.child!==t&&t!==null?ye(`Suspense Fallback`):ye(`Suspense`);case 19:return ye(`SuspenseList`);case 0:case 15:return xe(e.type,!1);case 11:return xe(e.type.render,!1);case 1:return xe(e.type,!0);case 31:return ye(`Activity`);default:return``}}function Ce(e){try{var t=``,n=null;do t+=Se(e,n),n=e,e=e.return;while(e);return t}catch(e){return` -Error generating stack: `+e.message+` -`+e.stack}}var Te=Object.prototype.hasOwnProperty,Ee=t.unstable_scheduleCallback,De=t.unstable_cancelCallback,Oe=t.unstable_shouldYield,ke=t.unstable_requestPaint,Ae=t.unstable_now,je=t.unstable_getCurrentPriorityLevel,Me=t.unstable_ImmediatePriority,Ne=t.unstable_UserBlockingPriority,Pe=t.unstable_NormalPriority,Fe=t.unstable_LowPriority,Ie=t.unstable_IdlePriority,Le=t.log,Re=t.unstable_setDisableYieldValue,ze=null,N=null;function Be(e){if(typeof Le==`function`&&Re(e),N&&typeof N.setStrictMode==`function`)try{N.setStrictMode(ze,e)}catch{}}var Ve=Math.clz32?Math.clz32:Ge,He=Math.log,Ue=Math.LN2;function Ge(e){return e>>>=0,e===0?32:31-(He(e)/Ue|0)|0}var Ke=256,qe=262144,Je=4194304;function Ye(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Xe(e,t,n){var r=e.pendingLanes;if(r===0)return 0;var i=0,a=e.suspendedLanes,o=e.pingedLanes;e=e.warmLanes;var s=r&134217727;return s===0?(s=r&~a,s===0?o===0?n||(n=r&~e,n!==0&&(i=Ye(n))):i=Ye(o):i=Ye(s)):(r=s&~a,r===0?(o&=s,o===0?n||(n=s&~e,n!==0&&(i=Ye(n))):i=Ye(o)):i=Ye(r)),i===0?0:t!==0&&t!==i&&(t&a)===0&&(a=i&-i,n=t&-t,a>=n||a===32&&n&4194048)?t:i}function Ze(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Qe(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function $e(){var e=Je;return Je<<=1,!(Je&62914560)&&(Je=4194304),e}function et(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function tt(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function nt(e,t,n,r,i,a){var o=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var s=e.entanglements,c=e.expirationTimes,l=e.hiddenUpdates;for(n=o&~n;0`u`||window.document===void 0||window.document.createElement===void 0),hn=!1;if(mn)try{var gn={};Object.defineProperty(gn,"passive",{get:function(){hn=!0}}),window.addEventListener(`test`,gn,gn),window.removeEventListener(`test`,gn,gn)}catch{hn=!1}var _n=null,vn=null,yn=null;function bn(){if(yn)return yn;var e,t=vn,n=t.length,r,i=`value`in _n?_n.value:_n.textContent,a=i.length;for(e=0;e=Qn),tr=` `,nr=!1;function rr(e,t){switch(e){case`keyup`:return Xn.indexOf(t.keyCode)!==-1;case`keydown`:return t.keyCode!==229;case`keypress`:case`mousedown`:case`focusout`:return!0;default:return!1}}function ir(e){return e=e.detail,typeof e==`object`&&`data`in e?e.data:null}var ar=!1;function or(e,t){switch(e){case`compositionend`:return ir(t);case`keypress`:return t.which===32?(nr=!0,tr):null;case`textInput`:return e=t.data,e===tr&&nr?null:e;default:return null}}function sr(e,t){if(ar)return e===`compositionend`||!Zn&&rr(e,t)?(e=bn(),yn=vn=_n=null,ar=!1,e):null;switch(e){case`paste`:return null;case`keypress`:if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}a:{for(;n;){if(n.nextSibling){n=n.nextSibling;break a}n=n.parentNode}n=void 0}n=Dr(n)}}function kr(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?kr(e,t.parentNode):`contains`in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Ar(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Vt(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href==`string`}catch{n=!1}if(n)e=t.contentWindow;else break;t=Vt(e.document)}return t}function jr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t===`input`&&(e.type===`text`||e.type===`search`||e.type===`tel`||e.type===`url`||e.type===`password`)||t===`textarea`||e.contentEditable===`true`)}var Mr=mn&&`documentMode`in document&&11>=document.documentMode,Nr=null,Pr=null,Fr=null,Ir=!1;function Lr(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Ir||Nr==null||Nr!==Vt(r)||(r=Nr,`selectionStart`in r&&jr(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Fr&&Er(Fr,r)||(Fr=r,r=Hd(Pr,`onSelect`),0>=o,i-=o,ki=1<<32-Ve(t)+i|n<h?(g=d,d=null):g=d.sibling;var _=p(i,d,s[h],c);if(_===null){d===null&&(d=g);break}e&&d&&_.alternate===null&&t(i,d),a=o(_,a,h),u===null?l=_:u.sibling=_,u=_,d=g}if(h===s.length)return n(i,d),Ri&&ji(i,h),l;if(d===null){for(;hg?(_=h,h=null):_=h.sibling;var y=p(i,h,v.value,l);if(y===null){h===null&&(h=_);break}e&&h&&y.alternate===null&&t(i,h),s=o(y,s,g),d===null?u=y:d.sibling=y,d=y,h=_}if(v.done)return n(i,h),Ri&&ji(i,g),u;if(h===null){for(;!v.done;g++,v=c.next())v=f(i,v.value,l),v!==null&&(s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return Ri&&ji(i,g),u}for(h=r(h);!v.done;g++,v=c.next())v=m(h,i,g,v.value,l),v!==null&&(e&&v.alternate!==null&&h.delete(v.key===null?g:v.key),s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return e&&h.forEach(function(e){return t(i,e)}),Ri&&ji(i,g),u}function b(e,r,o,c){if(typeof o==`object`&&o&&o.type===_&&o.key===null&&(o=o.props.children),typeof o==`object`&&o){switch(o.$$typeof){case h:a:{for(var l=o.key;r!==null;){if(r.key===l){if(l=o.type,l===_){if(r.tag===7){n(e,r.sibling),c=i(r,o.props.children),c.return=e,e=c;break a}}else if(r.elementType===l||typeof l==`object`&&l&&l.$$typeof===E&&Ma(l)===r.type){n(e,r.sibling),c=i(r,o.props),za(c,o),c.return=e,e=c;break a}n(e,r);break}t(e,r),r=r.sibling}o.type===_?(c=gi(o.props.children,e.mode,c,o.key),c.return=e,e=c):(c=hi(o.type,o.key,o.props,null,e.mode,c),za(c,o),c.return=e,e=c)}return s(e);case g:a:{for(l=o.key;r!==null;){if(r.key===l)if(r.tag===4&&r.stateNode.containerInfo===o.containerInfo&&r.stateNode.implementation===o.implementation){n(e,r.sibling),c=i(r,o.children||[]),c.return=e,e=c;break a}else{n(e,r);break}t(e,r),r=r.sibling}c=yi(o,e.mode,c),c.return=e,e=c}return s(e);case E:return o=Ma(o),b(e,r,o,c)}if(ne(o))return v(e,r,o,c);if(ee(o)){if(l=ee(o),typeof l!=`function`)throw Error(a(150));return o=l.call(o),y(e,r,o,c)}if(typeof o.then==`function`)return b(e,r,Ra(o),c);if(o.$$typeof===x)return b(e,r,oa(e,o),c);Ba(e,o)}return typeof o==`string`&&o!==``||typeof o==`number`||typeof o==`bigint`?(o=``+o,r!==null&&r.tag===6?(n(e,r.sibling),c=i(r,o),c.return=e,e=c):(n(e,r),c=_i(o,e.mode,c),c.return=e,e=c),s(e)):n(e,r)}return function(e,t,n,r){try{La=0;var i=b(e,t,n,r);return Ia=null,i}catch(t){if(t===Ea||t===Oa)throw t;var a=di(29,t,null,e.mode);return a.lanes=r,a.return=e,a}}}var Ha=Va(!0),Ua=Va(!1),Wa=!1;function Ga(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Ka(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function qa(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Ja(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Jl&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,t=ci(e),si(e,null,n),t}return ii(e,r,t,n),ci(e)}function Ya(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,n&4194048)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,it(e,n)}}function Xa(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var o={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};a===null?i=a=o:a=a.next=o,n=n.next}while(n!==null);a===null?i=a=t:a=a.next=t}else i=a=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,callbacks:r.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var Za=!1;function Qa(){if(Za){var e=_a;if(e!==null)throw e}}function $a(e,t,n,r){Za=!1;var i=e.updateQueue;Wa=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var c=s,l=c.next;c.next=null,o===null?a=l:o.next=l,o=c;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==o&&(s===null?u.firstBaseUpdate=l:s.next=l,u.lastBaseUpdate=c))}if(a!==null){var d=i.baseState;o=0,u=l=c=null,s=a;do{var f=s.lane&-536870913,m=f!==s.lane;if(m?(Zl&f)===f:(r&f)===f){f!==0&&f===ga&&(Za=!0),u!==null&&(u=u.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});a:{var h=e,g=s;f=t;var _=n;switch(g.tag){case 1:if(h=g.payload,typeof h==`function`){d=h.call(_,d,f);break a}d=h;break a;case 3:h.flags=h.flags&-65537|128;case 0:if(h=g.payload,f=typeof h==`function`?h.call(_,d,f):h,f==null)break a;d=p({},d,f);break a;case 2:Wa=!0}}f=s.callback,f!==null&&(e.flags|=64,m&&(e.flags|=8192),m=i.callbacks,m===null?i.callbacks=[f]:m.push(f))}else m={lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(l=u=m,c=d):u=u.next=m,o|=f;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;m=s,s=m.next,m.next=null,i.lastBaseUpdate=m,i.shared.pending=null}}while(1);u===null&&(c=d),i.baseState=c,i.firstBaseUpdate=l,i.lastBaseUpdate=u,a===null&&(i.shared.lanes=0),au|=o,e.lanes=o,e.memoizedState=d}}function eo(e,t){if(typeof e!=`function`)throw Error(a(191,e));e.call(t)}function to(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;ea?a:8;var o=j.T,s={};j.T=s,Vs(e,!1,t,n);try{var c=i(),l=j.S;l!==null&&l(s,c),typeof c==`object`&&c&&typeof c.then==`function`?Bs(e,t,ba(c,r),Du(e)):Bs(e,t,r,Du(e))}catch(n){Bs(e,t,{then:function(){},status:`rejected`,reason:n},Du())}finally{re.p=a,o!==null&&s.types!==null&&(o.types=s.types),j.T=o}}function As(){}function js(e,t,n,r){if(e.tag!==5)throw Error(a(476));var i=Ms(e).queue;ks(e,i,t,ie,n===null?As:function(){return Ns(e),n(r)})}function Ms(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:ie,baseState:ie,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ho,lastRenderedState:ie},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ho,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Ns(e){var t=Ms(e);t.next===null&&(t=e.alternate.memoizedState),Bs(e,t.next.queue,{},Du())}function Ps(){return aa(hp)}function Fs(){return Lo().memoizedState}function Is(){return Lo().memoizedState}function Ls(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=Du();e=qa(n);var r=Ja(t,e,n);r!==null&&(ku(r,t,n),Ya(r,t,n)),t={cache:fa()},e.payload=t;return}t=t.return}}function Rs(e,t,n){var r=Du();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Hs(e)?Us(t,n):(n=ai(e,t,n,r),n!==null&&(ku(n,e,r),Ws(n,t,r)))}function zs(e,t,n){Bs(e,t,n,Du())}function Bs(e,t,n,r){var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Hs(e))Us(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,s=a(o,n);if(i.hasEagerState=!0,i.eagerState=s,F(s,o))return ii(e,t,i,0),Yl===null&&ri(),!1}catch{}if(n=ai(e,t,i,r),n!==null)return ku(n,e,r),Ws(n,t,r),!0}return!1}function Vs(e,t,n,r){if(r={lane:2,revertLane:Ed(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},Hs(e)){if(t)throw Error(a(479))}else t=ai(e,n,r,2),t!==null&&ku(t,e,2)}function Hs(e){var t=e.alternate;return e===I||t!==null&&t===I}function Us(e,t){xo=bo=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Ws(e,t,n){if(n&4194048){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,it(e,n)}}var Gs={readContext:aa,use:Bo,useCallback:Do,useContext:Do,useEffect:Do,useImperativeHandle:Do,useLayoutEffect:Do,useInsertionEffect:Do,useMemo:Do,useReducer:Do,useRef:Do,useState:Do,useDebugValue:Do,useDeferredValue:Do,useTransition:Do,useSyncExternalStore:Do,useId:Do,useHostTransitionStatus:Do,useFormState:Do,useActionState:Do,useOptimistic:Do,useMemoCache:Do,useCacheRefresh:Do};Gs.useEffectEvent=Do;var Ks={readContext:aa,use:Bo,useCallback:function(e,t){return Io().memoizedState=[e,t===void 0?null:t],e},useContext:aa,useEffect:gs,useImperativeHandle:function(e,t,n){n=n==null?null:n.concat([e]),ms(4194308,4,Ss.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ms(4194308,4,e,t)},useInsertionEffect:function(e,t){ms(4,2,e,t)},useMemo:function(e,t){var n=Io();t=t===void 0?null:t;var r=e();if(So){Be(!0);try{e()}finally{Be(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=Io();if(n!==void 0){var i=n(t);if(So){Be(!0);try{n(t)}finally{Be(!1)}}}else i=t;return r.memoizedState=r.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},r.queue=e,e=e.dispatch=Rs.bind(null,I,e),[r.memoizedState,e]},useRef:function(e){var t=Io();return e={current:e},t.memoizedState=e},useState:function(e){e=Qo(e);var t=e.queue,n=zs.bind(null,I,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:ws,useDeferredValue:function(e,t){return Ds(Io(),e,t)},useTransition:function(){var e=Qo(!1);return e=ks.bind(null,I,e.queue,!0,!1),Io().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=I,i=Io();if(Ri){if(n===void 0)throw Error(a(407));n=n()}else{if(n=t(),Yl===null)throw Error(a(349));Zl&127||qo(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,gs(Yo.bind(null,r,o,e),[e]),r.flags|=2048,fs(9,{destroy:void 0},Jo.bind(null,r,o,n,t),null),n},useId:function(){var e=Io(),t=Yl.identifierPrefix;if(Ri){var n=Ai,r=ki;n=(r&~(1<<32-Ve(r)-1)).toString(32)+n,t=`_`+t+`R_`+n,n=Co++,0<\/script>`,o=o.removeChild(o.firstChild);break;case`select`:o=typeof r.is==`string`?s.createElement(`select`,{is:r.is}):s.createElement(`select`),r.multiple?o.multiple=!0:r.size&&(o.size=r.size);break;default:o=typeof r.is==`string`?s.createElement(i,{is:r.is}):s.createElement(i)}}o[dt]=t,o[ft]=r;a:for(s=t.child;s!==null;){if(s.tag===5||s.tag===6)o.appendChild(s.stateNode);else if(s.tag!==4&&s.tag!==27&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===t)break a;for(;s.sibling===null;){if(s.return===null||s.return===t)break a;s=s.return}s.sibling.return=s.return,s=s.sibling}t.stateNode=o;a:switch(Zd(o,i,r),i){case`button`:case`input`:case`select`:case`textarea`:r=!!r.autoFocus;break a;case`img`:r=!0;break a;default:r=!1}r&&Bc(t)}}return Gc(t),Vc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&Bc(t);else{if(typeof r!=`string`&&t.stateNode===null)throw Error(a(166));if(e=fe.current,Gi(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,i=Ii,i!==null)switch(i.tag){case 27:case 5:r=i.memoizedProps}e[dt]=t,e=!!(e.nodeValue===n||r!==null&&!0===r.suppressHydrationWarning||Jd(e.nodeValue,n)),e||Hi(t,!0)}else e=rf(e).createTextNode(r),e[dt]=t,t.stateNode=e}return Gc(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(r=Gi(t),n!==null){if(e===null){if(!r)throw Error(a(318));if(e=t.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(a(557));e[dt]=t}else Ki(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Gc(t),e=!1}else n=qi(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(mo(t),t):(mo(t),null);if(t.flags&128)throw Error(a(558))}return Gc(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(i=Gi(t),r!==null&&r.dehydrated!==null){if(e===null){if(!i)throw Error(a(318));if(i=t.memoizedState,i=i===null?null:i.dehydrated,!i)throw Error(a(317));i[dt]=t}else Ki(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Gc(t),i=!1}else i=qi(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=i),i=!0;if(!i)return t.flags&256?(mo(t),t):(mo(t),null)}return mo(t),t.flags&128?(t.lanes=n,t):(n=r!==null,e=e!==null&&e.memoizedState!==null,n&&(r=t.child,i=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(i=r.alternate.memoizedState.cachePool.pool),o=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(o=r.memoizedState.cachePool.pool),o!==i&&(r.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),Uc(t,t.updateQueue),Gc(t),null);case 4:return me(),e===null&&Rd(t.stateNode.containerInfo),Gc(t),null;case 10:return $i(t.type),Gc(t),null;case 19:if(ce(ho),r=t.memoizedState,r===null)return Gc(t),null;if(i=!!(t.flags&128),o=r.rendering,o===null)if(i)Wc(r,!1);else{if(iu!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=go(e),o!==null){for(t.flags|=128,Wc(r,!1),e=o.updateQueue,t.updateQueue=e,Uc(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)mi(n,e),n=n.sibling;return le(ho,ho.current&1|2),Ri&&ji(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&Ae()>hu&&(t.flags|=128,i=!0,Wc(r,!1),t.lanes=4194304)}else{if(!i)if(e=go(o),e!==null){if(t.flags|=128,i=!0,e=e.updateQueue,t.updateQueue=e,Uc(t,e),Wc(r,!0),r.tail===null&&r.tailMode===`hidden`&&!o.alternate&&!Ri)return Gc(t),null}else 2*Ae()-r.renderingStartTime>hu&&n!==536870912&&(t.flags|=128,i=!0,Wc(r,!1),t.lanes=4194304);r.isBackwards?(o.sibling=t.child,t.child=o):(e=r.last,e===null?t.child=o:e.sibling=o,r.last=o)}return r.tail===null?(Gc(t),null):(e=r.tail,r.rendering=e,r.tail=e.sibling,r.renderingStartTime=Ae(),e.sibling=null,n=ho.current,le(ho,i?n&1|2:n&1),Ri&&ji(t,r.treeForkCount),e);case 22:case 23:return mo(t),oo(),r=t.memoizedState!==null,e===null?r&&(t.flags|=8192):e.memoizedState!==null!==r&&(t.flags|=8192),r?n&536870912&&!(t.flags&128)&&(Gc(t),t.subtreeFlags&6&&(t.flags|=8192)):Gc(t),n=t.updateQueue,n!==null&&Uc(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),r=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),e!==null&&ce(Sa),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),$i(da),Gc(t),null;case 25:return null;case 30:return null}throw Error(a(156,t.tag))}function qc(e,t){switch(Pi(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return $i(da),me(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return ge(t),null;case 31:if(t.memoizedState!==null){if(mo(t),t.alternate===null)throw Error(a(340));Ki()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(mo(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(a(340));Ki()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ce(ho),null;case 4:return me(),null;case 10:return $i(t.type),null;case 22:case 23:return mo(t),oo(),e!==null&&ce(Sa),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return $i(da),null;case 25:return null;default:return null}}function Jc(e,t){switch(Pi(t),t.tag){case 3:$i(da),me();break;case 26:case 27:case 5:ge(t);break;case 4:me();break;case 31:t.memoizedState!==null&&mo(t);break;case 13:mo(t);break;case 19:ce(ho);break;case 10:$i(t.type);break;case 22:case 23:mo(t),oo(),e!==null&&ce(Sa);break;case 24:$i(da)}}function Yc(e,t){try{var n=t.updateQueue,r=n===null?null:n.lastEffect;if(r!==null){var i=r.next;n=i;do{if((n.tag&e)===e){r=void 0;var a=n.create,o=n.inst;r=a(),o.destroy=r}n=n.next}while(n!==i)}}catch(e){ad(t,t.return,e)}}function Xc(e,t,n){try{var r=t.updateQueue,i=r===null?null:r.lastEffect;if(i!==null){var a=i.next;r=a;do{if((r.tag&e)===e){var o=r.inst,s=o.destroy;if(s!==void 0){o.destroy=void 0,i=t;var c=n,l=s;try{l()}catch(e){ad(i,c,e)}}}r=r.next}while(r!==a)}}catch(e){ad(t,t.return,e)}}function Zc(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{to(t,n)}catch(t){ad(e,e.return,t)}}}function Qc(e,t,n){n.props=$s(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(n){ad(e,t,n)}}function $c(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;case 30:r=e.stateNode;break;default:r=e.stateNode}typeof n==`function`?e.refCleanup=n(r):n.current=r}}catch(n){ad(e,t,n)}}function el(e,t){var n=e.ref,r=e.refCleanup;if(n!==null)if(typeof r==`function`)try{r()}catch(n){ad(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n==`function`)try{n(null)}catch(n){ad(e,t,n)}else n.current=null}function tl(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{a:switch(t){case`button`:case`input`:case`select`:case`textarea`:n.autoFocus&&r.focus();break a;case`img`:n.src?r.src=n.src:n.srcSet&&(r.srcset=n.srcSet)}}catch(t){ad(e,e.return,t)}}function nl(e,t,n){try{var r=e.stateNode;Qd(r,e.type,n,t),r[ft]=t}catch(t){ad(e,e.return,t)}}function rl(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&hf(e.type)||e.tag===4}function il(e){a:for(;;){for(;e.sibling===null;){if(e.return===null||rl(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&hf(e.type)||e.flags&2||e.child===null||e.tag===4)continue a;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function al(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=an));else if(r!==4&&(r===27&&hf(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(al(e,t,n),e=e.sibling;e!==null;)al(e,t,n),e=e.sibling}function ol(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(r===27&&hf(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(ol(e,t,n),e=e.sibling;e!==null;)ol(e,t,n),e=e.sibling}function sl(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);Zd(t,r,n),t[dt]=e,t[ft]=n}catch(t){ad(e,e.return,t)}}var cl=!1,ll=!1,ul=!1,dl=typeof WeakSet==`function`?WeakSet:Set,fl=null;function pl(e,t){if(e=e.containerInfo,tf=wp,e=Ar(e),jr(e)){if(`selectionStart`in e)var n={start:e.selectionStart,end:e.selectionEnd};else a:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break a}var s=0,c=-1,l=-1,u=0,d=0,f=e,p=null;b:for(;;){for(var m;f!==n||i!==0&&f.nodeType!==3||(c=s+i),f!==o||r!==0&&f.nodeType!==3||(l=s+r),f.nodeType===3&&(s+=f.nodeValue.length),(m=f.firstChild)!==null;)p=f,f=m;for(;;){if(f===e)break b;if(p===n&&++u===i&&(c=s),p===o&&++d===r&&(l=s),(m=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=m}n=c===-1||l===-1?null:{start:c,end:l}}else n=null}n||={start:0,end:0}}else n=null;for(nf={focusedElem:e,selectionRange:n},wp=!1,fl=t;fl!==null;)if(t=fl,e=t.child,t.subtreeFlags&1028&&e!==null)e.return=t,fl=e;else for(;fl!==null;){switch(t=fl,o=t.alternate,e=t.flags,t.tag){case 0:if(e&4&&(e=t.updateQueue,e=e===null?null:e.events,e!==null))for(n=0;n title`))),Zd(o,r,n),o[dt]=e,wt(o),r=o;break a;case`link`:var s=ip(`link`,`href`,i).get(r+(n.href||``));if(s){for(var c=0;cg&&(o=g,g=h,h=o);var _=Or(s,h),v=Or(s,g);if(_&&v&&(p.rangeCount!==1||p.anchorNode!==_.node||p.anchorOffset!==_.offset||p.focusNode!==v.node||p.focusOffset!==v.offset)){var y=d.createRange();y.setStart(_.node,_.offset),p.removeAllRanges(),h>g?(p.addRange(y),p.extend(v.node,v.offset)):(y.setEnd(v.node,v.offset),p.addRange(y))}}}}for(d=[],p=s;p=p.parentNode;)p.nodeType===1&&d.push({element:p,left:p.scrollLeft,top:p.scrollTop});for(typeof s.focus==`function`&&s.focus(),s=0;sn?32:n,j.T=null,n=Cu,Cu=null;var o=yu,s=xu;if(vu=0,bu=yu=null,xu=0,Jl&6)throw Error(a(331));var c=Jl;if(Jl|=4,Ul(o.current),Fl(o,o.current,s,n),Jl=c,yd(0,!1),N&&typeof N.onPostCommitFiberRoot==`function`)try{N.onPostCommitFiberRoot(ze,o)}catch{}return!0}finally{re.p=i,j.T=r,td(e,t)}}function id(e,t,n){t=xi(n,t),t=ac(e.stateNode,t,2),e=Ja(e,t,2),e!==null&&(tt(e,2),vd(e))}function ad(e,t,n){if(e.tag===3)id(e,e,n);else for(;t!==null;){if(t.tag===3){id(t,e,n);break}if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(_u===null||!_u.has(r))){e=xi(n,e),n=oc(2),r=Ja(t,n,2),r!==null&&(sc(n,r,t,e),tt(r,2),vd(r));break}}t=t.return}}function od(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new ql;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(nu=!0,i.add(n),e=sd.bind(null,e,t,n),t.then(e,e))}function sd(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Yl===e&&(Zl&n)===n&&(iu===4||iu===3&&(Zl&62914560)===Zl&&300>Ae()-pu?!(Jl&2)&&Iu(e,0):su|=n,lu===Zl&&(lu=0)),vd(e)}function cd(e,t){t===0&&(t=$e()),e=oi(e,t),e!==null&&(tt(e,t),vd(e))}function ld(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),cd(e,n)}function ud(e,t){var n=0;switch(e.tag){case 31:case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(a(314))}r!==null&&r.delete(t),cd(e,n)}function dd(e,t){return Ee(e,t)}var fd=null,pd=null,md=!1,hd=!1,gd=!1,_d=0;function vd(e){e!==pd&&e.next===null&&(pd===null?fd=pd=e:pd=pd.next=e),hd=!0,md||(md=!0,Td())}function yd(e,t){if(!gd&&hd){gd=!0;do for(var n=!1,r=fd;r!==null;){if(!t)if(e!==0){var i=r.pendingLanes;if(i===0)var a=0;else{var o=r.suspendedLanes,s=r.pingedLanes;a=(1<<31-Ve(42|e)+1)-1,a&=i&~(o&~s),a=a&201326741?a&201326741|1:a?a|2:0}a!==0&&(n=!0,wd(r,a))}else a=Zl,a=Xe(r,r===Yl?a:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),!(a&3)||Ze(r,a)||(n=!0,wd(r,a));r=r.next}while(n);gd=!1}}function bd(){xd()}function xd(){hd=md=!1;var e=0;_d!==0&&lf()&&(e=_d);for(var t=Ae(),n=null,r=fd;r!==null;){var i=r.next,a=Sd(r,t);a===0?(r.next=null,n===null?fd=i:n.next=i,i===null&&(pd=n)):(n=r,(e!==0||a&3)&&(hd=!0)),r=i}vu!==0&&vu!==5||yd(e,!1),_d!==0&&(_d=0)}function Sd(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes&-62914561;0s)break;var u=c.transferSize,d=c.initiatorType;u&&$d(d)&&(c=c.responseEnd,o+=u*(c`u`?null:document;function Rf(e,t,n){var r=Lf;if(r&&typeof t==`string`&&t){var i=Ut(t);i=`link[rel="`+e+`"][href="`+i+`"]`,typeof n==`string`&&(i+=`[crossorigin="`+n+`"]`),Mf.has(i)||(Mf.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement(`link`),Zd(t,`link`,e),wt(t),r.head.appendChild(t)))}}function zf(e){Pf.D(e),Rf(`dns-prefetch`,e,null)}function Bf(e,t){Pf.C(e,t),Rf(`preconnect`,e,t)}function Vf(e,t,n){Pf.L(e,t,n);var r=Lf;if(r&&e&&t){var i=`link[rel="preload"][as="`+Ut(t)+`"]`;t===`image`&&n&&n.imageSrcSet?(i+=`[imagesrcset="`+Ut(n.imageSrcSet)+`"]`,typeof n.imageSizes==`string`&&(i+=`[imagesizes="`+Ut(n.imageSizes)+`"]`)):i+=`[href="`+Ut(e)+`"]`;var a=i;switch(t){case`style`:a=qf(e);break;case`script`:a=Zf(e)}jf.has(a)||(e=p({rel:`preload`,href:t===`image`&&n&&n.imageSrcSet?void 0:e,as:t},n),jf.set(a,e),r.querySelector(i)!==null||t===`style`&&r.querySelector(Jf(a))||t===`script`&&r.querySelector(Qf(a))||(t=r.createElement(`link`),Zd(t,`link`,e),wt(t),r.head.appendChild(t)))}}function Hf(e,t){Pf.m(e,t);var n=Lf;if(n&&e){var r=t&&typeof t.as==`string`?t.as:`script`,i=`link[rel="modulepreload"][as="`+Ut(r)+`"][href="`+Ut(e)+`"]`,a=i;switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:a=Zf(e)}if(!jf.has(a)&&(e=p({rel:`modulepreload`,href:e},t),jf.set(a,e),n.querySelector(i)===null)){switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:if(n.querySelector(Qf(a)))return}r=n.createElement(`link`),Zd(r,`link`,e),wt(r),n.head.appendChild(r)}}}function Uf(e,t,n){Pf.S(e,t,n);var r=Lf;if(r&&e){var i=Ct(r).hoistableStyles,a=qf(e);t||=`default`;var o=i.get(a);if(!o){var s={loading:0,preload:null};if(o=r.querySelector(Jf(a)))s.loading=5;else{e=p({rel:`stylesheet`,href:e,"data-precedence":t},n),(n=jf.get(a))&&tp(e,n);var c=o=r.createElement(`link`);wt(c),Zd(c,`link`,e),c._p=new Promise(function(e,t){c.onload=e,c.onerror=t}),c.addEventListener(`load`,function(){s.loading|=1}),c.addEventListener(`error`,function(){s.loading|=2}),s.loading|=4,ep(o,t,r)}o={type:`stylesheet`,instance:o,count:1,state:s},i.set(a,o)}}}function Wf(e,t){Pf.X(e,t);var n=Lf;if(n&&e){var r=Ct(n).hoistableScripts,i=Zf(e),a=r.get(i);a||(a=n.querySelector(Qf(i)),a||(e=p({src:e,async:!0},t),(t=jf.get(i))&&np(e,t),a=n.createElement(`script`),wt(a),Zd(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Gf(e,t){Pf.M(e,t);var n=Lf;if(n&&e){var r=Ct(n).hoistableScripts,i=Zf(e),a=r.get(i);a||(a=n.querySelector(Qf(i)),a||(e=p({src:e,async:!0,type:`module`},t),(t=jf.get(i))&&np(e,t),a=n.createElement(`script`),wt(a),Zd(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Kf(e,t,n,r){var i=(i=fe.current)?Nf(i):null;if(!i)throw Error(a(446));switch(e){case`meta`:case`title`:return null;case`style`:return typeof n.precedence==`string`&&typeof n.href==`string`?(t=qf(n.href),n=Ct(i).hoistableStyles,r=n.get(t),r||(r={type:`style`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};case`link`:if(n.rel===`stylesheet`&&typeof n.href==`string`&&typeof n.precedence==`string`){e=qf(n.href);var o=Ct(i).hoistableStyles,s=o.get(e);if(s||(i=i.ownerDocument||i,s={type:`stylesheet`,instance:null,count:0,state:{loading:0,preload:null}},o.set(e,s),(o=i.querySelector(Jf(e)))&&!o._p&&(s.instance=o,s.state.loading=5),jf.has(e)||(n={rel:`preload`,as:`style`,href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},jf.set(e,n),o||Xf(i,e,n,s.state))),t&&r===null)throw Error(a(528,``));return s}if(t&&r!==null)throw Error(a(529,``));return null;case`script`:return t=n.async,n=n.src,typeof n==`string`&&t&&typeof t!=`function`&&typeof t!=`symbol`?(t=Zf(n),n=Ct(i).hoistableScripts,r=n.get(t),r||(r={type:`script`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};default:throw Error(a(444,e))}}function qf(e){return`href="`+Ut(e)+`"`}function Jf(e){return`link[rel="stylesheet"][`+e+`]`}function Yf(e){return p({},e,{"data-precedence":e.precedence,precedence:null})}function Xf(e,t,n,r){e.querySelector(`link[rel="preload"][as="style"][`+t+`]`)?r.loading=1:(t=e.createElement(`link`),r.preload=t,t.addEventListener(`load`,function(){return r.loading|=1}),t.addEventListener(`error`,function(){return r.loading|=2}),Zd(t,`link`,n),wt(t),e.head.appendChild(t))}function Zf(e){return`[src="`+Ut(e)+`"]`}function Qf(e){return`script[async]`+e}function $f(e,t,n){if(t.count++,t.instance===null)switch(t.type){case`style`:var r=e.querySelector(`style[data-href~="`+Ut(n.href)+`"]`);if(r)return t.instance=r,wt(r),r;var i=p({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement(`style`),wt(r),Zd(r,`style`,i),ep(r,n.precedence,e),t.instance=r;case`stylesheet`:i=qf(n.href);var o=e.querySelector(Jf(i));if(o)return t.state.loading|=4,t.instance=o,wt(o),o;r=Yf(n),(i=jf.get(i))&&tp(r,i),o=(e.ownerDocument||e).createElement(`link`),wt(o);var s=o;return s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),Zd(o,`link`,r),t.state.loading|=4,ep(o,n.precedence,e),t.instance=o;case`script`:return o=Zf(n.src),(i=e.querySelector(Qf(o)))?(t.instance=i,wt(i),i):(r=n,(i=jf.get(o))&&(r=p({},n),np(r,i)),e=e.ownerDocument||e,i=e.createElement(`script`),wt(i),Zd(i,`link`,r),e.head.appendChild(i),t.instance=i);case`void`:return null;default:throw Error(a(443,t.type))}else t.type===`stylesheet`&&!(t.state.loading&4)&&(r=t.instance,t.state.loading|=4,ep(r,n.precedence,e));return t.instance}function ep(e,t,n){for(var r=n.querySelectorAll(`link[rel="stylesheet"][data-precedence],style[data-precedence]`),i=r.length?r[r.length-1]:null,a=i,o=0;o title`):null)}function op(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case`meta`:case`title`:return!0;case`style`:if(typeof t.precedence!=`string`||typeof t.href!=`string`||t.href===``)break;return!0;case`link`:if(typeof t.rel!=`string`||typeof t.href!=`string`||t.href===``||t.onLoad||t.onError)break;switch(t.rel){case`stylesheet`:return e=t.disabled,typeof t.precedence==`string`&&e==null;default:return!0}case`script`:if(t.async&&typeof t.async!=`function`&&typeof t.async!=`symbol`&&!t.onLoad&&!t.onError&&t.src&&typeof t.src==`string`)return!0}return!1}function sp(e){return!(e.type===`stylesheet`&&!(e.state.loading&3))}function cp(e,t,n,r){if(n.type===`stylesheet`&&(typeof r.media!=`string`||!1!==matchMedia(r.media).matches)&&!(n.state.loading&4)){if(n.instance===null){var i=qf(r.href),a=t.querySelector(Jf(i));if(a){t=a._p,typeof t==`object`&&t&&typeof t.then==`function`&&(e.count++,e=dp.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=a,wt(a);return}a=t.ownerDocument||t,r=Yf(r),(i=jf.get(i))&&tp(r,i),a=a.createElement(`link`),wt(a);var o=a;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),Zd(a,`link`,r),n.instance=a}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&!(n.state.loading&3)&&(e.count++,n=dp.bind(e),t.addEventListener(`load`,n),t.addEventListener(`error`,n))}}var lp=0;function up(e,t){return e.stylesheets&&e.count===0&&pp(e,e.stylesheets),0lp?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}function dp(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)pp(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var fp=null;function pp(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,fp=new Map,t.forEach(mp,e),fp=null,dp.call(e))}function mp(e,t){if(!(t.state.loading&4)){var n=fp.get(e);if(n)var r=n.get(null);else{n=new Map,fp.set(e,n);for(var i=e.querySelectorAll(`link[data-precedence],style[data-precedence]`),a=0;a{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=Ge()}));function qe(e){return e[e.length-1]}function Je(e){return typeof e==`function`}function Ye(e,t){return Je(e)?e(t):e}var Xe=Object.prototype.hasOwnProperty,Ze=Object.prototype.propertyIsEnumerable;function Qe(e){for(let t in e)if(Xe.call(e,t))return!0;return!1}var $e=()=>Object.create(null),et=(e,t)=>tt(e,t,$e);function tt(e,t,n=()=>({}),r=0){if(e===t)return e;if(r>500)return t;let i=t,a=at(e)&&at(i);if(!a&&!(rt(e)&&rt(i)))return i;let o=a?e:nt(e);if(!o)return i;let s=a?i:nt(i);if(!s)return i;let c=o.length,l=s.length,u=a?Array(l):n(),d=0;for(let t=0;ti||!ot(e[o],t[o],n)))return!1;return i===a}return!1}function st(e){let t,n,r=new Promise((e,r)=>{t=e,n=r});return r.status=`pending`,r.resolve=n=>{r.status=`resolved`,r.value=n,t(n),e?.(n)},r.reject=e=>{r.status=`rejected`,n(e)},r}function ct(e){return typeof e?.message==`string`?e.message.startsWith(`Failed to fetch dynamically imported module`)||e.message.startsWith(`error loading dynamically imported module`)||e.message.startsWith(`Importing a module script failed`):!1}function lt(e){return!!(e&&typeof e==`object`&&typeof e.then==`function`)}var ut=/[\x00-\x1f\x7f"<>`{}]/g;function dt(e){return e.replace(ut,e=>`%`+e.charCodeAt(0).toString(16).toUpperCase().padStart(2,`0`))}function ft(e){let t;try{t=decodeURI(e)}catch{t=e.replaceAll(/%[0-9A-F]{2}/gi,e=>{try{return decodeURI(e)}catch{return e}})}return dt(t)}var pt=[`http:`,`https:`,`mailto:`,`tel:`];function mt(e,t){if(!e)return!1;try{let n=new URL(e);return!t.has(n.protocol)}catch{return!1}}function ht(e){if(!e||!/[%\\\x00-\x1f\x7f]/.test(e)&&!e.startsWith(`//`))return{path:e,handledProtocolRelativeURL:!1};let t=/%25|%5C/gi,n=0,r=``,i;for(;(i=t.exec(e))!==null;)r+=ft(e.slice(n,i.index))+i[0],n=t.lastIndex;r+=ft(n?e.slice(n):e);let a=!1;return r.startsWith(`//`)&&(a=!0,r=`/`+r.replace(/^\/+/,``)),{path:r,handledProtocolRelativeURL:a}}function gt(e){return/\s|[^\u0000-\u007F]/.test(e)?e.replace(/\s|[^\u0000-\u007F]/gu,encodeURIComponent):e}function _t(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0;n{e.next&&(e.prev?(e.prev.next=e.next,e.next.prev=e.prev,e.next=void 0,r&&(r.next=e,e.prev=r)):(e.next.prev=void 0,n=e.next,e.next=void 0,r&&(e.prev=r,r.next=e)),r=e)};return{get(e){let n=t.get(e);if(n)return i(n),n.value},set(a,o){if(t.size>=e&&n){let e=n;t.delete(e.key),e.next&&(n=e.next,e.next.prev=void 0),e===r&&(r=void 0)}let s=t.get(a);if(s)s.value=o,i(s);else{let e={key:a,value:o,prev:r};r&&(r.next=e),r=e,n||=e,t.set(a,e)}},clear(){t.clear(),n=void 0,r=void 0}}}var bt=4,xt=5;function St(e){let t=e.indexOf(`{`);if(t===-1)return null;let n=e.indexOf(`}`,t);return n===-1||t+1>=e.length?null:[t,n]}function Ct(e,t,n=new Uint16Array(6)){let r=e.indexOf(`/`,t),i=r===-1?e.length:r,a=e.substring(t,i);if(!a||!a.includes(`$`))return n[0]=0,n[1]=t,n[2]=t,n[3]=i,n[4]=i,n[5]=i,n;if(a===`$`){let r=e.length;return n[0]=2,n[1]=t,n[2]=t,n[3]=r,n[4]=r,n[5]=r,n}if(a.charCodeAt(0)===36)return n[0]=1,n[1]=t,n[2]=t+1,n[3]=i,n[4]=i,n[5]=i,n;let o=St(a);if(o){let[r,s]=o,c=a.charCodeAt(r+1);if(c===45){if(r+2!e.parse&&e.caseSensitive===f&&e.prefix===p&&e.suffix===m);if(h)o=h;else{let e=Ot(1,n.fullPath??n.from,f,p,m);o=e,e.depth=a,e.parent=i,i.dynamic??=[],i.dynamic.push(e)}break}case 3:{let t=r.substring(u,e[1]),s=r.substring(e[4],d),f=c&&!!(t||s),p=t?f?t:t.toLowerCase():void 0,m=s?f?s:s.toLowerCase():void 0,h=!l&&i.optional?.find(e=>!e.parse&&e.caseSensitive===f&&e.prefix===p&&e.suffix===m);if(h)o=h;else{let e=Ot(3,n.fullPath??n.from,f,p,m);o=e,e.parent=i,e.depth=a,i.optional??=[],i.optional.push(e)}break}case 2:{let t=r.substring(u,e[1]),s=r.substring(e[4],d),l=c&&!!(t||s),f=t?l?t:t.toLowerCase():void 0,p=s?l?s:s.toLowerCase():void 0,m=Ot(2,n.fullPath??n.from,l,f,p);o=m,m.parent=i,m.depth=a,i.wildcard??=[],i.wildcard.push(m)}}i=o}if(l&&n.children&&!n.isRoot&&n.id&&n.id.charCodeAt(n.id.lastIndexOf(`/`)+1)===95){let e=Dt(n.fullPath??n.from);e.kind=xt,e.parent=i,a++,e.depth=a,i.pathless??=[],i.pathless.push(e),i=e}let u=(n.path||!n.children)&&!n.isRoot;if(u&&r.endsWith(`/`)){let e=Dt(n.fullPath??n.from);e.kind=bt,e.parent=i,a++,e.depth=a,i.index=e,i=e}i.parse=l??null,i.priority=n.options?.params?.priority??0,u&&!i.route&&(i.route=n,i.fullPath=n.fullPath??n.from)}if(n.children)for(let r of n.children)wt(e,t,r,s,i,a,o)}function Tt(e,t){if(e.parse&&!t.parse)return-1;if(!e.parse&&t.parse)return 1;if(e.parse&&t.parse&&(e.priority||t.priority))return t.priority-e.priority;if(e.prefix&&t.prefix&&e.prefix!==t.prefix){if(e.prefix.startsWith(t.prefix))return-1;if(t.prefix.startsWith(e.prefix))return 1}if(e.suffix&&t.suffix&&e.suffix!==t.suffix){if(e.suffix.endsWith(t.suffix))return-1;if(t.suffix.endsWith(e.suffix))return 1}return e.prefix&&!t.prefix?-1:!e.prefix&&t.prefix?1:e.suffix&&!t.suffix?-1:!e.suffix&&t.suffix?1:e.caseSensitive&&!t.caseSensitive?-1:!e.caseSensitive&&t.caseSensitive?1:0}function Et(e){if(e.pathless)for(let t of e.pathless)Et(t);if(e.static)for(let t of e.static.values())Et(t);if(e.staticInsensitive)for(let t of e.staticInsensitive.values())Et(t);if(e.dynamic?.length){e.dynamic.sort(Tt);for(let t of e.dynamic)Et(t)}if(e.optional?.length){e.optional.sort(Tt);for(let t of e.optional)Et(t)}if(e.wildcard?.length){e.wildcard.sort(Tt);for(let t of e.wildcard)Et(t)}}function Dt(e){return{kind:0,depth:0,pathless:null,index:null,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:e,parent:null,parse:null,priority:0}}function Ot(e,t,n,r,i){return{kind:e,depth:0,pathless:null,index:null,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:t,parent:null,parse:null,priority:0,caseSensitive:n,prefix:r,suffix:i}}function kt(e,t){let n=Dt(`/`),r=new Uint16Array(6);for(let t of e)wt(!1,r,t,1,n,0);Et(n),t.masksTree=n,t.flatCache=yt(1e3)}function At(e,t){e||=`/`;let n=t.flatCache.get(e);if(n)return n;let r=Ft(e,t.masksTree);return t.flatCache.set(e,r),r}function jt(e,t,n,r,i){e||=`/`,r||=`/`;let a=t?`case\0${e}`:e,o=i.singleCache.get(a);return o||(o=Dt(`/`),wt(t,new Uint16Array(6),{from:e},1,o,0),i.singleCache.set(a,o)),Ft(r,o,n)}function Mt(e,t,n=!1){let r=n?e:`nofuzz\0${e}`,i=t.matchCache.get(r);if(i!==void 0)return i;e||=`/`;let a;try{a=Ft(e,t.segmentTree,n)}catch(e){if(e instanceof URIError)a=null;else throw e}return a&&(a.branch=Lt(a.route)),t.matchCache.set(r,a),a}function Nt(e){return e===`/`?e:e.replace(/\/{1,}$/,``)}function Pt(e,t=!1,n){let r=Dt(e.fullPath),i=new Uint16Array(6),a={},o={},s=0;return wt(t,i,e,1,r,0,e=>{if(n?.(e,s),e.id in a&&vt(),a[e.id]=e,s!==0&&e.path){let t=Nt(e.fullPath);(!o[t]||e.fullPath.endsWith(`/`))&&(o[t]=e)}s++}),Et(r),{processedTree:{segmentTree:r,singleCache:yt(1e3),matchCache:yt(1e3),flatCache:null,masksTree:null},routesById:a,routesByPath:o}}function Ft(e,t,n=!1){let r=e.split(`/`),i=zt(e,r,t,n);if(!i)return null;let[a]=It(e,r,i);return{route:i.node.route,rawParams:a}}function It(e,t,n){let r=Rt(n.node),i=null,a=Object.create(null),o=n.extract?.part??0,s=n.extract?.node??0,c=n.extract?.path??0,l=n.extract?.segment??0;for(;s=0;e--){let n=i.wildcard[e],{prefix:r,suffix:a}=n;if(!(r&&(v||!(n.caseSensitive?y:b??=y.toLowerCase()).startsWith(r)))){if(a){if(v)continue;let e=t.slice(u).join(`/`).slice(-a.length);if((n.caseSensitive?e:e.toLowerCase())!==a)continue}s.push({node:n,index:o,skipped:d,depth:f+1,statics:p,dynamics:m,optionals:h,extract:g,rawParams:_})}}if(i.optional){let e=d|1<=0;n--){let r=i.optional[n];s.push({node:r,index:u,skipped:e,depth:t,statics:p,dynamics:m,optionals:h,extract:g,rawParams:_})}if(!v)for(let e=i.optional.length-1;e>=0;e--){let n=i.optional[e],{prefix:r,suffix:a}=n;if(r||a){let e=n.caseSensitive?y:b??=y.toLowerCase();if(r&&!e.startsWith(r)||a&&!e.endsWith(a))continue}s.push({node:n,index:u+1,skipped:d,depth:t,statics:p,dynamics:m,optionals:h+Bt(o,u),extract:g,rawParams:_})}}if(!v&&i.dynamic&&y)for(let e=i.dynamic.length-1;e>=0;e--){let t=i.dynamic[e],{prefix:n,suffix:r}=t;if(n||r){let e=t.caseSensitive?y:b??=y.toLowerCase();if(n&&!e.startsWith(n)||r&&!e.endsWith(r))continue}s.push({node:t,index:u+1,skipped:d,depth:f+1,statics:p,dynamics:m+Bt(o,u),optionals:h,extract:g,rawParams:_})}if(!v&&i.staticInsensitive){let e=i.staticInsensitive.get(b??=y.toLowerCase());e&&s.push({node:e,index:u+1,skipped:d,depth:f+1,statics:p+Bt(o,u),dynamics:m,optionals:h,extract:g,rawParams:_})}if(!v&&i.static){let e=i.static.get(y);e&&s.push({node:e,index:u+1,skipped:d,depth:f+1,statics:p+Bt(o,u),dynamics:m,optionals:h,extract:g,rawParams:_})}if(i.pathless){let e=f+1;for(let t=i.pathless.length-1;t>=0;t--){let n=i.pathless[t];s.push({node:n,index:u,skipped:d,depth:e,statics:p,dynamics:m,optionals:h,extract:g,rawParams:_})}}}if(l)return l;if(r&&c){let n=c.index;for(let e=0;ee.statics||t.statics===e.statics&&(t.dynamics>e.dynamics||t.dynamics===e.dynamics&&(t.optionals>e.optionals||t.optionals===e.optionals&&((t.node.kind===bt)>(e.node.kind===bt)||t.node.kind===bt==(e.node.kind===bt)&&t.depth>e.depth)))}function Wt(e){return Gt(e.filter(e=>e!==void 0).join(`/`))}function Gt(e){return e.replace(/\/{2,}/g,`/`)}function Kt(e){return e===`/`?e:e.replace(/^\/{1,}/,``)}function qt(e){let t=e.length;return t>1&&e[t-1]===`/`?e.replace(/\/{1,}$/,``):e}function Jt(e){return qt(Kt(e))}function Yt(e,t){return e?.endsWith(`/`)&&e!==`/`&&e!==`${t}/`?e.slice(0,-1):e}function Xt(e,t,n){return Yt(e,n)===Yt(t,n)}function Zt({base:e,to:t,trailingSlash:n=`never`,cache:r}){let i=t.startsWith(`/`),a=!i&&t===`.`,o;if(r){o=i?t:a?e:e+`\0`+t;let n=r.get(o);if(n)return n}let s;if(a)s=e.split(`/`);else if(i)s=t.split(`/`);else{for(s=e.split(`/`);s.length>1&&qe(s)===``;)s.pop();let n=t.split(`/`);for(let e=0,t=n.length;e1&&(qe(s)===``?n===`never`&&s.pop():n===`always`&&s.push(``));let c=Gt(s.join(`/`))||`/`;return o&&r&&r.set(o,c),c}function Qt(e){let t=new Map(e.map(e=>[encodeURIComponent(e),e])),n=Array.from(t.keys()).map(e=>e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)).join(`|`),r=new RegExp(n,`g`);return e=>e.replace(r,e=>t.get(e)??e)}function $t(e,t,n){let r=t[e];return typeof r==`string`?e===`_splat`?/^[a-zA-Z0-9\-._~!/]*$/.test(r)?r:r.split(`/`).map(e=>tn(e,n)).join(`/`):tn(r,n):r}function en({path:e,params:t,decoder:n,...r}){let i=!1,a=Object.create(null);if(!e||e===`/`)return{interpolatedPath:`/`,usedParams:a,isMissingParams:i};if(!e.includes(`$`))return{interpolatedPath:e,usedParams:a,isMissingParams:i};let o=e.length,s=0,c,l=``;for(;se.state.__TSR_key||e.href;function fn(e){let t=e.getAttribute(un);if(t)return`[${un}="${t}"]`;let n=``,r=e,i;for(;i=r.parentNode;){let e=1,t=r;for(;t=t.previousElementSibling;)e++;let a=`${r.localName}:nth-child(${e})`;n=n?`${a} > ${n}`:a,r=i}return n}var pn=!1,mn=`window`;function hn(e){try{return typeof e==`function`?e():document.querySelector(e)}catch{}}function gn(e){let t=new Set;for(let n of e){if(n===mn)continue;let e=hn(n);e&&t.add(e)}return t}function _n(e,t){let n=t??e.options.scrollRestoration,r=e._scroll;n&&(r.restoring=!0);let i=e.options.getScrollRestorationKey||dn,a=new Set,o=e=>{let t=ln[e]||={};for(let e of a)e===document?t[mn]={scrollX,scrollY}:e.isConnected&&(t[fn(e)]={scrollX:e.scrollLeft,scrollY:e.scrollTop})};n&&!r.restoration&&(r.restoration=!0,pn=!1,history.scrollRestoration=`manual`,document.addEventListener(`scroll`,e=>{pn||a.add(e.target)},!0),e.subscribe(`onBeforeLoad`,e=>{e.fromLocation&&o(i(e.fromLocation)),a.clear()}),addEventListener(`pagehide`,()=>{o(i(e.stores.resolvedLocation.get()??e.stores.location.get())),cn()})),!r.reset&&(r.reset=!0,e.subscribe(`onRendered`,t=>{let n=e.options.scrollRestorationBehavior,o=e.options.scrollToTopSelectors,s=r.next,c=r.hash,l;if(a.clear(),r.next=!0,r.hash=!1,typeof e.options.scrollRestoration==`function`&&!e.options.scrollRestoration({location:e.latestLocation}))return;let u=i(t.toLocation),d=t.fromLocation&&i(t.fromLocation);if(r.restoring&&d&&d!==u){let e=ln[d];if(e){let t=ln[u];for(let n in e){if(n===mn){if(s)continue}else{let e=hn(n);if(!e||s&&o&&(l??=gn(o),l.has(e)))continue}t||=ln[u]={},t[n]??=e[n]}}}pn=!0;try{let e=t.toLocation.hash,i=t.toLocation.state.__hashScrollIntoViewOptions??!0,a=!1;if(s){!e&&o&&(l??=gn(o));let t=e&&i&&c,s=r.restoring?ln[u]:void 0;if(s)for(let e in s){let{scrollX:r,scrollY:i}=s[e];if(e===mn){if(t)continue;scrollTo({top:i,left:r,behavior:n}),a=!0}else{let t=hn(e);t&&(t.scrollLeft=r,t.scrollTop=i,l?.delete(t))}}if(!e){let e={top:0,left:0,behavior:n};if(a||scrollTo(e),l)for(let t of l)t.scrollTo(e)}}!a&&e&&i&&document.getElementById(e)?.scrollIntoView(i)}finally{pn=!1}}))}function vn(e,t=String){let n=new URLSearchParams;for(let r in e){let i=e[r];i!==void 0&&n.set(r,t(i))}return n.toString()}function yn(e){return e?e===`false`?!1:e===`true`?!0:e*0==0&&+e+``===e?+e:e:``}function bn(e){let t=new URLSearchParams(e),n=Object.create(null);for(let[e,r]of t.entries()){let t=n[e];t==null?n[e]=yn(r):Array.isArray(t)?t.push(yn(r)):n[e]=[t,yn(r)]}return n}var xn=Cn(JSON.parse),Sn=wn(JSON.stringify,JSON.parse);function Cn(e){return t=>{t[0]===`?`&&(t=t.substring(1));let n=bn(t);for(let t in n){let r=n[t];if(typeof r==`string`)try{n[t]=e(r)}catch{}}return n}}function wn(e,t){let n=typeof t==`function`;function r(r){if(typeof r==`object`&&r)try{return e(r)}catch{}else if(n&&typeof r==`string`)try{return t(r),e(r)}catch{}return r}return e=>{let t=vn(e,r);return t?`?${t}`:``}}var Tn=`__root__`;function En(e){if(e.statusCode=e.statusCode||e.code||307,!e._builtLocation&&!e.reloadDocument&&typeof e.href==`string`)try{new URL(e.href),e.reloadDocument=!0}catch{}let t=new Headers(e.headers);e.href&&t.get(`Location`)===null&&t.set(`Location`,e.href);let n=new Response(null,{status:e.statusCode,headers:t});if(n.options=e,e.throw)throw n;return n}function Dn(e){return e instanceof Response&&!!e.options}function On(e){return{input:({url:t})=>{for(let n of e)t=An(n,t);return t},output:({url:t})=>{for(let n=e.length-1;n>=0;n--)t=jn(e[n],t);return t}}}function kn(e){let t=Jt(e.basepath),n=`/${t}`,r=e.caseSensitive?n:n.toLowerCase(),i=`${r}/`;return{input:({url:t})=>{let a=e.caseSensitive?t.pathname:t.pathname.toLowerCase();return a===r?t.pathname=`/`:a.startsWith(i)&&(t.pathname=t.pathname.slice(n.length)),t},output:({url:e})=>(e.pathname=Wt([`/`,t,e.pathname]),e)}}function An(e,t){let n=e?.input?.({url:t});if(n){if(typeof n==`string`)return new URL(n);if(n instanceof URL)return n}return t}function jn(e,t){let n=e?.output?.({url:t});if(n){if(typeof n==`string`)return new URL(n);if(n instanceof URL)return n}return t}function Mn(e,t){let{createMutableStore:n,createReadonlyStore:r,batch:i,init:a}=t,o=new Map,s=new Map,c=new Map,l=n(e.status),u=n(e.loadedAt),d=n(e.isLoading),f=n(e.isTransitioning),p=n(e.location),m=n(e.resolvedLocation),h=n(e.statusCode),g=n(e.redirect),_=n([]),v=n([]),y=n([]),b=r(()=>Nn(o,_.get())),x=r(()=>Nn(s,v.get())),S=r(()=>Nn(c,y.get())),C=r(()=>_.get()[0]),w=r(()=>_.get().some(e=>o.get(e)?.get().status===`pending`)),T=r(()=>({locationHref:p.get().href,resolvedLocationHref:m.get()?.href,status:l.get()})),E=r(()=>({status:l.get(),loadedAt:u.get(),isLoading:d.get(),isTransitioning:f.get(),matches:b.get(),location:p.get(),resolvedLocation:m.get(),statusCode:h.get(),redirect:g.get()})),D=yt(64);function O(e){let t=D.get(e);return t||(t=r(()=>{let t=_.get();for(let n of t){let t=o.get(n);if(t&&t.routeId===e)return t.get()}}),D.set(e,t)),t}let k={status:l,loadedAt:u,isLoading:d,isTransitioning:f,location:p,resolvedLocation:m,statusCode:h,redirect:g,matchesId:_,pendingIds:v,cachedIds:y,matches:b,pendingMatches:x,cachedMatches:S,firstId:C,hasPending:w,matchRouteDeps:T,matchStores:o,pendingMatchStores:s,cachedMatchStores:c,__store:E,getRouteMatchStore:O,setMatches:ee,setPending:te,setCached:A};ee(e.matches),a?.(k);function ee(e){Pn(e,o,_,n,i)}function te(e){Pn(e,s,v,n,i)}function A(e){Pn(e,c,y,n,i)}return k}function Nn(e,t){let n=[];for(let r of t){let t=e.get(r);t&&n.push(t.get())}return n}function Pn(e,t,n,r,i){let a=e.map(e=>e.id),o=new Set(a);i(()=>{for(let e of t.keys())o.has(e)||t.delete(e);for(let n of e){let e=t.get(n.id);if(!e){let e=r(n);e.routeId=n.routeId,t.set(n.id,e);continue}e.routeId=n.routeId,e.get()!==n&&e.set(n)}_t(n.get(),a)||n.set(a)})}var Fn=e=>{if(!e.rendered)return e.rendered=!0,e.onReady?.()},In=e=>e.stores.matchesId.get().some(t=>e.stores.matchStores.get(t)?.get()._forcePending),Ln=(e,t)=>!!(e.preload&&!e.router.stores.matchStores.has(t)),Rn=(e,t,n=!0)=>{let r={...e.router.options.context??{}},i=n?t:t-1;for(let t=0;t<=i;t++){let n=e.matches[t];if(!n)continue;let i=e.router.getMatch(n.id);i&&Object.assign(r,i.__routeContext,i.__beforeLoadContext)}return r},zn=(e,t)=>{if(!e.matches.length)return;let n=t.routeId,r=e.matches.findIndex(t=>t.routeId===e.router.routeTree.id),i=r>=0?r:0,a=n?e.matches.findIndex(e=>e.routeId===n):e.firstBadMatchIndex??e.matches.length-1;a<0&&(a=i);for(let t=a;t>=0;t--){let n=e.matches[t];if(e.router.looseRoutesById[n.routeId].options.notFoundComponent)return t}return n?a:i},Bn=(e,t,n)=>{if(!(!Dn(n)&&!nn(n)))throw Dn(n)&&n.redirectHandled&&!n.options.reloadDocument?n:(t&&(t._nonReactive.beforeLoadPromise?.resolve(),t._nonReactive.loaderPromise?.resolve(),t._nonReactive.beforeLoadPromise=void 0,t._nonReactive.loaderPromise=void 0,t._nonReactive.error=n,e.updateMatch(t.id,r=>({...r,status:Dn(n)?`redirected`:nn(n)?`notFound`:r.status===`pending`?`success`:r.status,context:Rn(e,t.index),isFetching:!1,error:n})),nn(n)&&!n.routeId&&(n.routeId=t.routeId),t._nonReactive.loadPromise?.resolve()),Dn(n)&&(e.rendered=!0,n.options._fromLocation=e.location,n.redirectHandled=!0,n=e.router.resolveRedirect(n)),n)},Vn=(e,t)=>{let n=e.router.getMatch(t);return!!(!n||n._nonReactive.dehydrated)},Hn=(e,t,n)=>{let r=Rn(e,n);e.updateMatch(t,e=>({...e,context:r}))},Un=(e,t,n)=>{let{id:r,routeId:i}=e.matches[t],a=e.router.looseRoutesById[i];if(n instanceof Promise)throw n;e.firstBadMatchIndex??=t,Bn(e,e.router.getMatch(r),n);try{a.options.onError?.(n)}catch(t){n=t,Bn(e,e.router.getMatch(r),n)}e.updateMatch(r,e=>(e._nonReactive.beforeLoadPromise?.resolve(),e._nonReactive.beforeLoadPromise=void 0,e._nonReactive.loadPromise?.resolve(),{...e,error:n,status:`error`,isFetching:!1,updatedAt:Date.now(),abortController:new AbortController})),!e.preload&&!Dn(n)&&!nn(n)&&(e.serialError??=n)},Wn=(e,t,n,r)=>{if(r._nonReactive.pendingTimeout!==void 0)return;let i=n.options.pendingMs??e.router.options.defaultPendingMs;if(e.onReady&&!Ln(e,t)&&(n.options.loader||n.options.beforeLoad||tr(n))&&typeof i==`number`&&i!==1/0&&(n.options.pendingComponent??e.router.options?.defaultPendingComponent)){let t=setTimeout(()=>{Fn(e)},i);r._nonReactive.pendingTimeout=t}},Gn=(e,t,n)=>{let r=e.router.getMatch(t);if(!r._nonReactive.beforeLoadPromise&&!r._nonReactive.loaderPromise)return;Wn(e,t,n,r);let i=()=>{let n=e.router.getMatch(t);n.preload&&(n.status===`redirected`||n.status===`notFound`)&&Bn(e,n,n.error)};return r._nonReactive.beforeLoadPromise?r._nonReactive.beforeLoadPromise.then(i):i()},Kn=(e,t,n,r)=>{let i=e.router.getMatch(t),a=i._nonReactive.loadPromise;i._nonReactive.loadPromise=st(()=>{a?.resolve(),a=void 0});let{paramsError:o,searchError:s}=i;o&&Un(e,n,o),s&&Un(e,n,s),Wn(e,t,r,i);let c=new AbortController,l=!1,u=()=>{l||(l=!0,e.updateMatch(t,e=>({...e,isFetching:`beforeLoad`,fetchCount:e.fetchCount+1,abortController:c})))},d=()=>{i._nonReactive.beforeLoadPromise?.resolve(),i._nonReactive.beforeLoadPromise=void 0,e.updateMatch(t,e=>({...e,isFetching:!1}))};if(!r.options.beforeLoad){e.router.batch(()=>{u(),d()});return}i._nonReactive.beforeLoadPromise=st();let f={...Rn(e,n,!1),...i.__routeContext},{search:p,params:m,cause:h}=i,g=Ln(e,t),_={search:p,abortController:c,params:m,preload:g,context:f,location:e.location,navigate:t=>e.router.navigate({...t,_fromLocation:e.location}),buildLocation:e.router.buildLocation,cause:g?`preload`:h,matches:e.matches,routeId:r.id,...e.router.options.additionalContext},v=r=>{if(r===void 0){e.router.batch(()=>{u(),d()});return}(Dn(r)||nn(r))&&(u(),Un(e,n,r)),e.router.batch(()=>{u(),e.updateMatch(t,e=>({...e,__beforeLoadContext:r})),d()})},y;try{if(y=r.options.beforeLoad(_),lt(y))return u(),y.catch(t=>{Un(e,n,t)}).then(v)}catch(t){u(),Un(e,n,t)}v(y)},qn=(e,t)=>{let{id:n,routeId:r}=e.matches[t],i=e.router.looseRoutesById[r],a=()=>s(),o=()=>Kn(e,n,t,i),s=()=>{if(Vn(e,n))return;let t=Gn(e,n,i);return lt(t)?t.then(o):o()};return a()},Jn=(e,t,n)=>{let r=e.router.getMatch(t);if(!r||!n.options.head&&!n.options.scripts&&!n.options.headers)return;let i={ssr:e.router.options.ssr,matches:e.matches,match:r,params:r.params,loaderData:r.loaderData};return Promise.all([n.options.head?.(i),n.options.scripts?.(i),n.options.headers?.(i)]).then(([e,t,n])=>({meta:e?.meta,links:e?.links,headScripts:e?.scripts,headers:n,scripts:t,styles:e?.styles}))},Yn=(e,t,n,r,i)=>{let a=t[r-1],{params:o,loaderDeps:s,abortController:c,cause:l}=e.router.getMatch(n),u=Rn(e,r),d=Ln(e,n);return{params:o,deps:s,preload:!!d,parentMatchPromise:a,abortController:c,context:u,location:e.location,navigate:t=>e.router.navigate({...t,_fromLocation:e.location}),cause:d?`preload`:l,route:i,...e.router.options.additionalContext}},Xn=async(e,t,n,r,i)=>{try{let a=e.router.getMatch(n);try{er(i);let o=i.options.loader,s=typeof o==`function`?o:o?.handler,c=s?.(Yn(e,t,n,r,i)),l=!!s&<(c);if((l||i._lazyPromise||i._componentsPromise||i.options.head||i.options.scripts||i.options.headers||a._nonReactive.minPendingPromise)&&e.updateMatch(n,e=>({...e,isFetching:`loader`})),s){let t=l?await c:c;Bn(e,e.router.getMatch(n),t),t!==void 0&&e.updateMatch(n,e=>({...e,loaderData:t}))}i._lazyPromise&&await i._lazyPromise;let u=a._nonReactive.minPendingPromise;u&&await u,i._componentsPromise&&await i._componentsPromise,e.updateMatch(n,t=>({...t,error:void 0,context:Rn(e,r),status:`success`,isFetching:!1,updatedAt:Date.now()}))}catch(t){let o=t;if(o?.name===`AbortError`){if(a.abortController.signal.aborted){a._nonReactive.loaderPromise?.resolve(),a._nonReactive.loaderPromise=void 0;return}e.updateMatch(n,t=>({...t,status:t.status===`pending`?`success`:t.status,isFetching:!1,context:Rn(e,r)}));return}let s=a._nonReactive.minPendingPromise;s&&await s,nn(t)&&await i.options.notFoundComponent?.preload?.(),Bn(e,e.router.getMatch(n),t);try{i.options.onError?.(t)}catch(t){o=t,Bn(e,e.router.getMatch(n),t)}!Dn(o)&&!nn(o)&&await er(i,[`errorComponent`]),e.updateMatch(n,t=>({...t,error:o,context:Rn(e,r),status:`error`,isFetching:!1}))}}catch(t){let r=e.router.getMatch(n);r&&(r._nonReactive.loaderPromise=void 0),Bn(e,r,t)}},Zn=async(e,t,n)=>{async function r(r,a,c,l,d){let f=Date.now()-a.updatedAt,p=r?d.options.preloadStaleTime??e.router.options.defaultPreloadStaleTime??3e4:d.options.staleTime??e.router.options.defaultStaleTime??0,m=d.options.shouldReload,h=typeof m==`function`?m(Yn(e,t,i,n,d)):m,{status:g,invalid:_}=l,v=f>=p&&(!!e.forceStaleReload||l.cause===`enter`||c!==void 0&&c!==l.id);o=g===`success`&&(_||(h??v)),r&&d.options.preload===!1||(o&&!e.sync&&u?(s=!0,(async()=>{try{await Xn(e,t,i,n,d);let r=e.router.getMatch(i);r._nonReactive.loaderPromise?.resolve(),r._nonReactive.loadPromise?.resolve(),r._nonReactive.loaderPromise=void 0,r._nonReactive.loadPromise=void 0}catch(t){Dn(t)&&await e.router.navigate(t.options)}})()):g!==`success`||o?await Xn(e,t,i,n,d):Hn(e,i,n))}let{id:i,routeId:a}=e.matches[n],o=!1,s=!1,c=e.router.looseRoutesById[a],l=c.options.loader,u=((typeof l==`function`?void 0:l?.staleReloadMode)??e.router.options.defaultStaleReloadMode)!==`blocking`;if(Vn(e,i)){if(!e.router.getMatch(i))return e.matches[n];Hn(e,i,n)}else{let t=e.router.getMatch(i),o=e.router.stores.matchesId.get()[n],s=(o&&e.router.stores.matchStores.get(o)||null)?.routeId===a?o:e.router.stores.matches.get().find(e=>e.routeId===a)?.id,l=Ln(e,i);if(t._nonReactive.loaderPromise){if(t.status===`success`&&!e.sync&&!t.preload&&u)return t;await t._nonReactive.loaderPromise;let n=e.router.getMatch(i),a=n._nonReactive.error||n.error;a&&Bn(e,n,a),n.status===`pending`&&await r(l,t,s,n,c)}else{let n=l&&!e.router.stores.matchStores.has(i),a=e.router.getMatch(i);a._nonReactive.loaderPromise=st(),n!==a.preload&&e.updateMatch(i,e=>({...e,preload:n})),await r(l,t,s,a,c)}}let d=e.router.getMatch(i);s||(d._nonReactive.loaderPromise?.resolve(),d._nonReactive.loadPromise?.resolve(),d._nonReactive.loadPromise=void 0),clearTimeout(d._nonReactive.pendingTimeout),d._nonReactive.pendingTimeout=void 0,s||(d._nonReactive.loaderPromise=void 0),d._nonReactive.dehydrated=void 0;let f=s?d.isFetching:!1;return f!==d.isFetching||d.invalid!==!1?(e.updateMatch(i,e=>({...e,isFetching:f,invalid:!1})),e.router.getMatch(i)):d};async function Qn(e){let t=e,n=[];In(t.router)&&Fn(t);let r;for(let e=0;e({...e,...a?{status:`success`,globalNotFound:!0,error:void 0}:{status:`notFound`,error:l},isFetching:!1})),u=e,await er(r,[`notFoundComponent`])}else if(!t.preload){let e=t.matches[0];e.globalNotFound||t.router.getMatch(e.id)?.globalNotFound&&t.updateMatch(e.id,e=>({...e,globalNotFound:!1,error:void 0}))}if(t.serialError&&t.firstBadMatchIndex!==void 0){let e=t.router.looseRoutesById[t.matches[t.firstBadMatchIndex].routeId];await er(e,[`errorComponent`])}for(let e=0;e<=u;e++){let{id:n,routeId:r}=t.matches[e],i=t.router.looseRoutesById[r];try{let e=Jn(t,n,i);if(e){let r=await e;t.updateMatch(n,e=>({...e,...r}))}}catch(e){console.error(`Error executing head for route ${r}:`,e)}}let d=Fn(t);if(lt(d)&&await d,l)throw l;if(t.serialError&&!t.preload&&!t.onReady)throw t.serialError;return t.matches}function $n(e,t){let n=t.map(t=>e.options[t]?.preload?.()).filter(Boolean);if(n.length!==0)return Promise.all(n)}function er(e,t=nr){!e._lazyLoaded&&e._lazyPromise===void 0&&(e.lazyFn?e._lazyPromise=e.lazyFn().then(t=>{let{id:n,...r}=t.options;Object.assign(e.options,r),e._lazyLoaded=!0,e._lazyPromise=void 0}):e._lazyLoaded=!0);let n=()=>e._componentsLoaded?void 0:t===nr?(()=>{if(e._componentsPromise===void 0){let t=$n(e,nr);t?e._componentsPromise=t.then(()=>{e._componentsLoaded=!0,e._componentsPromise=void 0}):e._componentsLoaded=!0}return e._componentsPromise})():$n(e,t);return e._lazyPromise?e._lazyPromise.then(n):n()}function tr(e){for(let t of nr)if(e.options[t]?.preload)return!0;return!1}var nr=[`component`,`errorComponent`,`pendingComponent`,`notFoundComponent`],rr=`__TSR_index`,ir=`popstate`,ar=`beforeunload`;function or(e){let t=e.getLocation(),n=new Set,r=r=>{t=e.getLocation(),n.forEach(e=>e({location:t,action:r}))},i=n=>{e.notifyOnIndexChange??!0?r(n):t=e.getLocation()},a=async({task:n,navigateOpts:r,...i})=>{if(r?.ignoreBlocker??!1){n();return}let a=e.getBlockers?.()??[],o=i.type===`PUSH`||i.type===`REPLACE`;if(typeof document<`u`&&a.length&&o)for(let n of a){let r=ur(i.path,i.state);if(await n.blockerFn({currentLocation:t,nextLocation:r,action:i.type})){e.onBlocked?.();return}}n()};return{get location(){return t},get length(){return e.getLength()},subscribers:n,subscribe:e=>(n.add(e),()=>{n.delete(e)}),push:(n,i,o)=>{let s=t.state[rr];i=sr(s+1,i),a({task:()=>{e.pushState(n,i),r({type:`PUSH`})},navigateOpts:o,type:`PUSH`,path:n,state:i})},replace:(n,i,o)=>{let s=t.state[rr];i=sr(s,i),a({task:()=>{e.replaceState(n,i),r({type:`REPLACE`})},navigateOpts:o,type:`REPLACE`,path:n,state:i})},go:(t,n)=>{a({task:()=>{e.go(t),i({type:`GO`,index:t})},navigateOpts:n,type:`GO`})},back:t=>{a({task:()=>{e.back(t?.ignoreBlocker??!1),i({type:`BACK`})},navigateOpts:t,type:`BACK`})},forward:t=>{a({task:()=>{e.forward(t?.ignoreBlocker??!1),i({type:`FORWARD`})},navigateOpts:t,type:`FORWARD`})},canGoBack:()=>t.state[rr]!==0,createHref:t=>e.createHref(t),block:t=>{if(!e.setBlockers)return()=>{};let n=e.getBlockers?.()??[];return e.setBlockers([...n,t]),()=>{let n=e.getBlockers?.()??[];e.setBlockers?.(n.filter(e=>e!==t))}},flush:()=>e.flush?.(),destroy:()=>e.destroy?.(),notify:r}}function sr(e,t){t||={};let n=dr();return{...t,key:n,__TSR_key:n,[rr]:e}}function cr(e){let t=e?.window??(typeof document<`u`?window:void 0),n=t.history.pushState,r=t.history.replaceState,i=[],a=()=>i,o=e=>i=e,s=e?.createHref??(e=>e),c=e?.parseLocation??(()=>ur(`${t.location.pathname}${t.location.search}${t.location.hash}`,t.history.state));if(!t.history.state?.__TSR_key&&!t.history.state?.key){let e=dr();t.history.replaceState({[rr]:0,key:e,__TSR_key:e},``)}let l=c(),u,d=!1,f=!1,p=!1,m=!1,h=()=>l,g,_,v=()=>{g&&(C._ignoreSubscribers=!0,(g.isPush?t.history.pushState:t.history.replaceState)(g.state,``,g.href),C._ignoreSubscribers=!1,g=void 0,_=void 0,u=void 0)},y=(e,t,n)=>{let r=s(t);_||(u=l),l=ur(t,n),g={href:r,state:n,isPush:g?.isPush||e===`push`},_||=Promise.resolve().then(()=>v())},b=e=>{l=c(),C.notify({type:e})},x=async()=>{if(f){f=!1;return}let e=c(),n=e.state[rr]-l.state[rr],r=n===1,i=n===-1,o=!r&&!i||d;d=!1;let s=o?`GO`:i?`BACK`:`FORWARD`,u=o?{type:`GO`,index:n}:{type:i?`BACK`:`FORWARD`};if(p)p=!1;else{let n=a();if(typeof document<`u`&&n.length){for(let r of n)if(await r.blockerFn({currentLocation:l,nextLocation:e,action:s})){f=!0,t.history.go(1),C.notify(u);return}}}l=c(),C.notify(u)},S=e=>{if(m){m=!1;return}let t=!1,n=a();if(typeof document<`u`&&n.length)for(let e of n){let n=e.enableBeforeUnload??!0;if(n===!0){t=!0;break}if(typeof n==`function`&&n()===!0){t=!0;break}}if(t)return e.preventDefault(),e.returnValue=``},C=or({getLocation:h,getLength:()=>t.history.length,pushState:(e,t)=>y(`push`,e,t),replaceState:(e,t)=>y(`replace`,e,t),back:e=>(e&&(p=!0),m=!0,t.history.back()),forward:e=>{e&&(p=!0),m=!0,t.history.forward()},go:e=>{d=!0,t.history.go(e)},createHref:e=>s(e),flush:v,destroy:()=>{t.history.pushState=n,t.history.replaceState=r,t.removeEventListener(ar,S,{capture:!0}),t.removeEventListener(ir,x)},onBlocked:()=>{u&&l!==u&&(l=u)},getBlockers:a,setBlockers:o,notifyOnIndexChange:!1});return t.addEventListener(ar,S,{capture:!0}),t.addEventListener(ir,x),t.history.pushState=function(...e){let r=n.apply(t.history,e);return C._ignoreSubscribers||b(`PUSH`),r},t.history.replaceState=function(...e){let n=r.apply(t.history,e);return C._ignoreSubscribers||b(`REPLACE`),n},C}function lr(e){let t=e.replace(/[\x00-\x1f\x7f]/g,``);return t.startsWith(`//`)&&(t=`/`+t.replace(/^\/+/,``)),t}function ur(e,t){let n=lr(e),r=n.indexOf(`#`),i=n.indexOf(`?`),a=dr();return{href:n,pathname:n.substring(0,r>0?i>0?Math.min(r,i):r:i>0?i:n.length),hash:r>-1?n.substring(r):``,search:i>-1?n.slice(i,r===-1?void 0:r):``,state:t||{[rr]:0,key:a,__TSR_key:a}}}function dr(){return(Math.random()+1).toString(36).substring(7)}function fr(e,t){let n=t,r=e;return{fromLocation:n,toLocation:r,pathChanged:n?.pathname!==r.pathname,hrefChanged:n?.href!==r.href,hashChanged:n?.hash!==r.hash}}var pr=class{constructor(e,t){this.tempLocationKey=`${Math.round(Math.random()*1e7)}`,this._scroll={next:!0},this.shouldViewTransition=void 0,this.isViewTransitionTypesSupported=void 0,this.subscribers=new Set,this.routeBranchCache=new WeakMap,this.lightweightCache=new WeakMap,this.startTransition=e=>e(),this.update=e=>{let t=this.options,n=this.basepath??t?.basepath??`/`,r=this.basepath===void 0,i=t?.rewrite;if(this.options={...t,...e},this.isServer=this.options.isServer??typeof document>`u`,this.protocolAllowlist=new Set(this.options.protocolAllowlist),this.options.pathParamsAllowedCharacters&&(this.pathParamsDecoder=Qt(this.options.pathParamsAllowedCharacters)),(!this.history||this.options.history&&this.options.history!==this.history)&&(this.history=this.options.history?this.options.history:cr()),this.origin=this.options.origin,this.origin||=window?.origin&&window.origin!==`null`?window.origin:`http://localhost`,this.history&&this.updateLatestLocation(),this.options.routeTree!==this.routeTree){this.routeTree=this.options.routeTree;let e;this.resolvePathCache=yt(1e3),e=this.buildRouteTree(),this.setRoutes(e)}if(!this.stores&&this.latestLocation){let e=this.getStoreConfig(this);this.batch=e.batch,this.stores=Mn(gr(this.latestLocation),e),_n(this)}let a=!1,o=this.options.basepath??`/`,s=this.options.rewrite;if(r||n!==o||i!==s){this.basepath=o;let e=[],t=Jt(o);t&&t!==`/`&&e.push(kn({basepath:o})),s&&e.push(s),this.rewrite=e.length===0?void 0:e.length===1?e[0]:On(e),this.history&&this.updateLatestLocation(),a=!0}a&&this.stores&&this.stores.location.set(this.latestLocation),typeof window<`u`&&`CSS`in window&&typeof window.CSS?.supports==`function`&&(this.isViewTransitionTypesSupported=window.CSS.supports(`selector(:active-view-transition-type(a))`))},this.updateLatestLocation=()=>{this.latestLocation=this.parseLocation(this.history.location,this.latestLocation)},this.buildRouteTree=()=>{let e=Pt(this.routeTree,this.options.caseSensitive,(e,t)=>{e.init({originalIndex:t})});return this.options.routeMasks&&kt(this.options.routeMasks,e.processedTree),e},this.subscribe=(e,t)=>{let n={eventType:e,fn:t};return this.subscribers.add(n),()=>{this.subscribers.delete(n)}},this.emit=e=>{this.subscribers.forEach(t=>{t.eventType===e.type&&t.fn(e)})},this.parseLocation=(e,t)=>{let n=({pathname:e,search:n,hash:r,href:i,state:a})=>{if(!this.rewrite&&!/[ \x00-\x1f\x7f\u0080-\uffff]/.test(e)){let i=this.options.parseSearch(n),o=this.options.stringifySearch(i);return{href:e+o+r,publicHref:e+o+r,pathname:ht(e).path,external:!1,searchStr:o,search:et(t?.search,i),hash:ht(r.slice(1)).path,state:tt(t?.state,a)}}let o=new URL(i,this.origin),s=An(this.rewrite,o),c=this.options.parseSearch(s.search),l=this.options.stringifySearch(c);return s.search=l,{href:s.href.replace(s.origin,``),publicHref:i,pathname:ht(s.pathname).path,external:!!this.rewrite&&s.origin!==this.origin,searchStr:l,search:et(t?.search,c),hash:ht(s.hash.slice(1)).path,state:tt(t?.state,a)}},r=n(e),{__tempLocation:i,__tempKey:a}=r.state;if(i&&(!a||a===this.tempLocationKey)){let e=n(i);return e.state.key=r.state.key,e.state.__TSR_key=r.state.__TSR_key,delete e.state.__tempLocation,{...e,maskedLocation:r}}return r},this.resolvePathWithBase=(e,t)=>Zt({base:e,to:t.includes(`//`)?Gt(t):t,trailingSlash:this.options.trailingSlash,cache:this.resolvePathCache}),this.matchRoutes=(e,t,n)=>typeof e==`string`?this.matchRoutesInternal({pathname:e,search:t},n):this.matchRoutesInternal(e,t),this.getMatchedRoutes=e=>vr({pathname:e,routesById:this.routesById,processedTree:this.processedTree}),this.cancelMatch=e=>{let t=this.getMatch(e);t&&(t.abortController.abort(),clearTimeout(t._nonReactive.pendingTimeout),t._nonReactive.pendingTimeout=void 0)},this.cancelMatches=()=>{this.stores.pendingIds.get().forEach(e=>{this.cancelMatch(e)}),this.stores.matchesId.get().forEach(e=>{if(this.stores.pendingMatchStores.has(e))return;let t=this.stores.matchStores.get(e)?.get();t&&(t.status===`pending`||t.isFetching===`loader`)&&this.cancelMatch(e)})},this.buildLocation=e=>{let t=(t={})=>{let n=t._fromLocation||this.pendingBuiltLocation||this.latestLocation,r=this.matchRoutesLightweight(n);t.from;let i=t.unsafeRelative===`path`?n.pathname:t.from??r.fullPath,a=t.to?`${t.to}`:void 0,o=r.search,s=Object.assign(Object.create(null),r.params),c=a?.charCodeAt(0)===47?`/`:this.resolvePathWithBase(i,`.`),l=a?this.resolvePathWithBase(c,a):c,u=t.params===!1||t.params===null?Object.create(null):(t.params??!0)===!0?s:Object.assign(s,Ye(t.params,s)),d=this.routesByPath[qt(l)],f;if(d)f=this.getRouteBranch(d);else if(l.includes(`$`))f=[];else{let e=this.getMatchedRoutes(l);f=e.matchedRoutes,this.options.notFoundRoute&&(!e.foundRoute||e.foundRoute.path!==`/`&&e.routeParams[`**`])&&(f=[...f,this.options.notFoundRoute])}if(f.length&&Qe(u))for(let e of f){let t=e.options.params?.stringify??e.options.stringifyParams;if(t)try{Object.assign(u,t(u))}catch{}}let p=e.leaveParams?l:ht(en({path:l,params:u,decoder:this.pathParamsDecoder,server:this.isServer}).interpolatedPath).path,m=o;if(e._includeValidateSearch&&this.options.search?.strict){let e={};f.forEach(t=>{if(t.options.validateSearch)try{Object.assign(e,_r(t.options.validateSearch,{...e,...m}))}catch{}}),m=e}m=yr({search:m,dest:t,destRoutes:f,_includeValidateSearch:e._includeValidateSearch}),m=et(o,m);let h=this.options.stringifySearch(m),g=t.hash===!0?n.hash:t.hash?Ye(t.hash,n.hash):void 0,_=g?`#${g}`:``,v=t.state===!0?n.state:t.state?Ye(t.state,n.state):{};v=tt(n.state,v);let y=`${p}${h}${_}`,b,x,S=!1;if(this.rewrite){let e=new URL(y,this.origin),t=jn(this.rewrite,e);b=e.href.replace(e.origin,``),t.origin===this.origin?x=t.pathname+t.search+t.hash:(x=t.href,S=!0)}else b=gt(y),x=b;return{publicHref:x,href:b,pathname:p,search:m,searchStr:h,state:v,hash:g??``,external:S,unmaskOnReload:t.unmaskOnReload}},n=(n={},r)=>{let i=t(n),a=r?t(r):void 0;if(!a){let n=Object.create(null);if(this.options.routeMasks){let o=At(i.pathname,this.processedTree);if(o){Object.assign(n,o.rawParams);let{from:i,params:s,...c}=o.route,l=s===!1||s===null?Object.create(null):(s??!0)===!0?n:Object.assign(n,Ye(s,n));r={from:e.from,...c,params:l},a=t(r)}}}return a&&(i.maskedLocation=a),i};return e.mask?n(e,{from:e.from,...e.mask}):n(e)},this.commitLocation=async({viewTransition:e,ignoreBlocker:t,...n})=>{let r,i=()=>{let e=[`key`,`__TSR_key`,`__TSR_index`,`__hashScrollIntoViewOptions`];e.forEach(e=>{n.state[e]=this.latestLocation.state[e]});let t=ot(n.state,this.latestLocation.state);return e.forEach(e=>{delete n.state[e]}),t},a=qt(this.latestLocation.href)===qt(n.href),o=this.commitLocationPromise;if(this.commitLocationPromise=st(()=>{o?.resolve(),o=void 0}),a&&i())this.load();else{let{maskedLocation:i,hashScrollIntoView:a,...o}=n;i&&(o={...i,state:{...i.state,__tempKey:void 0,__tempLocation:{...o,search:o.searchStr,state:{...o.state,__tempKey:void 0,__tempLocation:void 0,__TSR_key:void 0,key:void 0}}}},(o.unmaskOnReload??this.options.unmaskOnReload??!1)&&(o.state.__tempKey=this.tempLocationKey)),o.state.__hashScrollIntoViewOptions=a??this.options.defaultHashScrollIntoView??!0,this.shouldViewTransition=e,r=n.replace?`REPLACE`:`PUSH`,this.history[r===`REPLACE`?`replace`:`push`](o.publicHref,o.state,{ignoreBlocker:t})}return this._scroll.next=n.resetScroll??!0,this.history.subscribers.size||this.load(r?{action:{type:r}}:void 0),this.commitLocationPromise},this.buildAndCommitLocation=({replace:e,resetScroll:t,hashScrollIntoView:n,viewTransition:r,ignoreBlocker:i,href:a,...o}={})=>{if(a){let t=this.history.location.state.__TSR_index,n=ur(a,{__TSR_index:e?t:t+1}),r=new URL(n.pathname,this.origin);o.to=An(this.rewrite,r).pathname,o.search=this.options.parseSearch(n.search),o.hash=n.hash.slice(1)}let s=this.buildLocation({...o,_includeValidateSearch:!0});this.pendingBuiltLocation=s;let c=this.commitLocation({...s,viewTransition:r,replace:e,resetScroll:t,hashScrollIntoView:n,ignoreBlocker:i});return queueMicrotask(()=>{this.pendingBuiltLocation===s&&(this.pendingBuiltLocation=void 0)}),c},this.navigate=async({to:e,reloadDocument:t,href:n,publicHref:r,...i})=>{let a=!1;if(n)try{new URL(`${n}`),a=!0}catch{}if(a&&!t&&(t=!0),t){if(e!==void 0||!n){let t=this.buildLocation({to:e,...i});n??=t.publicHref,r??=t.publicHref}let t=!a&&r?r:n;if(mt(t,this.protocolAllowlist))return;if(!i.ignoreBlocker){let e=this.history.getBlockers?.()??[];for(let t of e)if(t?.blockerFn&&await t.blockerFn({currentLocation:this.latestLocation,nextLocation:this.latestLocation,action:`PUSH`}))return}i.replace?window.location.replace(t):window.location.href=t;return}return this.buildAndCommitLocation({...i,href:n,to:e,_isNavigate:!0})},this.beforeLoad=()=>{this.cancelMatches(),this.updateLatestLocation();let e=this.matchRoutes(this.latestLocation),t=this.stores.cachedMatches.get().filter(t=>!e.some(e=>e.id===t.id));this.batch(()=>{this.stores.status.set(`pending`),this.stores.statusCode.set(200),this.stores.isLoading.set(!0),this.stores.location.set(this.latestLocation),this.stores.setPending(e),this.stores.setCached(t)})},this.load=async e=>{let t=e?.action?.type,n,r,i,a=this.stores.resolvedLocation.get()??this.stores.location.get();for(i=new Promise(o=>{this.startTransition(async()=>{try{this.beforeLoad(),t&&(this._scroll.hash=t===`PUSH`||t===`REPLACE`);let n=this.latestLocation,r=fr(n,this.stores.resolvedLocation.get());this.stores.redirect.get()||this.emit({type:`onBeforeNavigate`,...r}),this.emit({type:`onBeforeLoad`,...r}),await Qn({router:this,sync:e?.sync,forceStaleReload:a.href===n.href,matches:this.stores.pendingMatches.get(),location:n,updateMatch:this.updateMatch,onReady:async()=>{this.startTransition(()=>{this.startViewTransition(async()=>{let e=null,t=null,n=null,r=null;this.batch(()=>{let i=this.stores.pendingMatches.get(),a=i.length,o=this.stores.matches.get();e=a?o.filter(e=>!this.stores.pendingMatchStores.has(e.id)):null;let s=new Set;for(let e of this.stores.pendingMatchStores.values())e.routeId&&s.add(e.routeId);let c=new Set;for(let e of this.stores.matchStores.values())e.routeId&&c.add(e.routeId);t=a?o.filter(e=>!s.has(e.routeId)):null,n=a?i.filter(e=>!c.has(e.routeId)):null,r=a?i.filter(e=>c.has(e.routeId)):o,this.stores.isLoading.set(!1),this.stores.loadedAt.set(Date.now()),a&&(this.stores.setMatches(i),this.stores.setPending([]),this.stores.setCached([...this.stores.cachedMatches.get(),...e.filter(e=>e.status!==`error`&&e.status!==`notFound`&&e.status!==`redirected`)]),this.clearExpiredCache())});for(let[e,i]of[[t,`onLeave`],[n,`onEnter`],[r,`onStay`]])if(e)for(let t of e)this.looseRoutesById[t.routeId].options[i]?.(t)})})}})}catch(e){Dn(e)?(n=e,this.navigate({...n.options,replace:!0,ignoreBlocker:!0})):nn(e)&&(r=e);let t=n?n.status:r?404:this.stores.matches.get().some(e=>e.status===`error`)?500:200;this.batch(()=>{this.stores.statusCode.set(t),this.stores.redirect.set(n)})}this.latestLoadPromise===i&&(this.commitLocationPromise?.resolve(),this.latestLoadPromise=void 0,this.commitLocationPromise=void 0),o()})}),this.latestLoadPromise=i,await i;this.latestLoadPromise&&i!==this.latestLoadPromise;)await this.latestLoadPromise;let o;this.hasNotFoundMatch()?o=404:this.stores.matches.get().some(e=>e.status===`error`)&&(o=500),o!==void 0&&this.stores.statusCode.set(o)},this.startViewTransition=e=>{let t=this.shouldViewTransition??this.options.defaultViewTransition;if(this.shouldViewTransition=void 0,t&&typeof document<`u`&&`startViewTransition`in document&&typeof document.startViewTransition==`function`){let n;if(typeof t==`object`&&this.isViewTransitionTypesSupported){let r=this.latestLocation,i=this.stores.resolvedLocation.get(),a=typeof t.types==`function`?t.types(fr(r,i)):t.types;if(a===!1){e();return}n={update:e,types:a}}else n=e;document.startViewTransition(n)}else e()},this.updateMatch=(e,t)=>{this.startTransition(()=>{let n=this.stores.pendingMatchStores.get(e);if(n){n.set(t);return}let r=this.stores.matchStores.get(e);if(r){r.set(t);return}let i=this.stores.cachedMatchStores.get(e);if(i){let n=t(i.get());n.status===`redirected`?this.stores.cachedMatchStores.delete(e)&&this.stores.cachedIds.set(t=>t.filter(t=>t!==e)):i.set(n)}})},this.getMatch=e=>this.stores.cachedMatchStores.get(e)?.get()??this.stores.pendingMatchStores.get(e)?.get()??this.stores.matchStores.get(e)?.get(),this.invalidate=e=>{let t=t=>e?.filter?.(t)??!0?{...t,invalid:!0,...e?.forcePending||t.status===`error`||t.status===`notFound`?{status:`pending`,error:void 0}:void 0}:t;return this.batch(()=>{this.stores.setMatches(this.stores.matches.get().map(t)),this.stores.setCached(this.stores.cachedMatches.get().map(t)),this.stores.setPending(this.stores.pendingMatches.get().map(t))}),this.shouldViewTransition=!1,this.load({sync:e?.sync})},this.getParsedLocationHref=e=>e.publicHref||`/`,this.resolveRedirect=e=>{let t=e.headers.get(`Location`);if(!e.options.href||e.options._builtLocation){let t=e.options._builtLocation??this.buildLocation(e.options),n=this.getParsedLocationHref(t);e.options.href=n,e.headers.set(`Location`,n)}else if(t)try{let n=new URL(t);if(this.origin&&n.origin===this.origin){let t=n.pathname+n.search+n.hash;e.options.href=t,e.headers.set(`Location`,t)}}catch{}if(e.options.href&&!e.options._builtLocation&&mt(e.options.href,this.protocolAllowlist))throw Error(`Redirect blocked: unsafe protocol`);return e.headers.get(`Location`)||e.headers.set(`Location`,e.options.href),e},this.clearCache=e=>{let t=e?.filter;t===void 0?this.stores.setCached([]):this.stores.setCached(this.stores.cachedMatches.get().filter(e=>!t(e)))},this.clearExpiredCache=()=>{let e=Date.now();this.clearCache({filter:t=>{let n=this.looseRoutesById[t.routeId];if(!n.options.loader)return!0;let r=(t.preload?n.options.preloadGcTime??this.options.defaultPreloadGcTime:n.options.gcTime??this.options.defaultGcTime)??3e5;return t.status===`error`||e-t.updatedAt>=r}})},this.loadRouteChunk=er,this.preloadRoute=async e=>{let t=e._builtLocation??this.buildLocation(e),n=this.matchRoutes(t,{throwOnError:!0,preload:!0,dest:e}),r=new Set([...this.stores.matchesId.get(),...this.stores.pendingIds.get()]),i=new Set([...r,...this.stores.cachedIds.get()]),a=n.filter(e=>!i.has(e.id));if(a.length){let e=this.stores.cachedMatches.get();this.stores.setCached([...e,...a])}try{return n=await Qn({router:this,matches:n,location:t,preload:!0,updateMatch:(e,t)=>{r.has(e)?n=n.map(n=>n.id===e?t(n):n):this.updateMatch(e,t)}}),n}catch(e){if(Dn(e))return e.options.reloadDocument?void 0:await this.preloadRoute({...e.options,_fromLocation:t});nn(e)||console.error(e);return}},this.matchRoute=(e,t)=>{let n={...e,to:e.to?this.resolvePathWithBase(e.from||``,e.to):void 0,params:e.params||{},leaveParams:!0},r=this.buildLocation(n);if(t?.pending&&this.stores.status.get()!==`pending`)return!1;let i=(t?.pending===void 0?!this.stores.isLoading.get():t.pending)?this.latestLocation:this.stores.resolvedLocation.get()||this.stores.location.get(),a=jt(r.pathname,t?.caseSensitive??!1,t?.fuzzy??!1,i.pathname,this.processedTree);return!a||e.params&&!ot(a.rawParams,e.params,{partial:!0})?!1:t?.includeSearch??!0?ot(i.search,r.search,{partial:!0})?a.rawParams:!1:a.rawParams},this.hasNotFoundMatch=()=>this.stores.matches.get().some(e=>e.status===`notFound`||e.globalNotFound),this.getStoreConfig=t,this.update({defaultPreloadDelay:50,defaultPendingMs:1e3,defaultPendingMinMs:500,context:void 0,...e,caseSensitive:e.caseSensitive??!1,notFoundMode:e.notFoundMode??`fuzzy`,stringifySearch:e.stringifySearch??Sn,parseSearch:e.parseSearch??xn,protocolAllowlist:e.protocolAllowlist??pt}),typeof document<`u`&&(self.__TSR_ROUTER__=this)}isShell(){return!!this.options.isShell}isPrerendering(){return!!this.options.isPrerendering}get state(){return this.stores.__store.get()}setRoutes({routesById:e,routesByPath:t,processedTree:n}){this.routesById=e,this.routesByPath=t,this.processedTree=n;let r=this.options.notFoundRoute;r&&(r.init({originalIndex:99999999999}),this.routesById[r.id]=r)}getRouteBranch(e){let t=this.routeBranchCache.get(e);return t||(t=Lt(e),this.routeBranchCache.set(e,t)),t}get looseRoutesById(){return this.routesById}getParentContext(e){return e?.id?e.context??this.options.context??void 0:this.options.context??void 0}matchRoutesInternal(e,t){let n=this.getMatchedRoutes(e.pathname),{foundRoute:r,routeParams:i}=n,{matchedRoutes:a}=n,o=!1;(r?r.path!==`/`&&i[`**`]:qt(e.pathname))&&(this.options.notFoundRoute?a=[...a,this.options.notFoundRoute]:o=!0);let s=o?xr(this.options.notFoundMode,a):void 0,c=Array(a.length),l=new Map;for(let e of this.stores.matchStores.values())e.routeId&&l.set(e.routeId,e.get());for(let n=0;nthis.navigate({...t,_fromLocation:e}),buildLocation:this.buildLocation,cause:n.cause,abortController:n.abortController,preload:!!n.preload,matches:c,routeId:r.id};n.__routeContext=r.options.context(t)??void 0}n.context={...a,...n.__routeContext,...n.__beforeLoadContext}}}return c}matchRoutesLightweight(e){let t=qe(this.stores.matchesId.get()),n=this.lightweightCache.get(e);if(n&&n[0]===t)return n[1];let{matchedRoutes:r,routeParams:i}=this.getMatchedRoutes(e.pathname),a=qe(r),o={...e.search};for(let e of r)try{Object.assign(o,_r(e.options.validateSearch,o))}catch{}let s=t&&this.stores.matchStores.get(t)?.get(),c=s&&s.routeId===a.id&&s.pathname===e.pathname,l;if(c)l=s.params;else{let e=Object.assign(Object.create(null),i);for(let t of r)try{Sr(t,e)}catch{}l=e}let u={matchedRoutes:r,fullPath:a.fullPath,search:o,params:l};return this.lightweightCache.set(e,[t,u]),u}},mr=class extends Error{},hr=class extends Error{};function gr(e){return{loadedAt:0,isLoading:!1,isTransitioning:!1,status:`idle`,resolvedLocation:void 0,location:e,matches:[],statusCode:200}}function _r(e,t){if(e==null)return{};if(`~standard`in e){let n=e[`~standard`].validate(t);if(n instanceof Promise)throw new mr(`Async validation not supported`);if(n.issues)throw new mr(JSON.stringify(n.issues,void 0,2),{cause:n});return n.value}return`parse`in e?e.parse(t):typeof e==`function`?e(t):{}}function vr({pathname:e,routesById:t,processedTree:n}){let r=Object.create(null),i=qt(e),a,o=Mt(i,n,!0);return o&&(a=o.route,Object.assign(r,o.rawParams)),{matchedRoutes:o?.branch||[t.__root__],routeParams:r,foundRoute:a}}function yr({search:e,dest:t,destRoutes:n,_includeValidateSearch:r}){return br(n)(e,t,r??!1)}function br(e){let t,n,r=[];for(let t of e){let e=t.options;`search`in e?e.search?.middlewares&&r.push(...e.search.middlewares):(e.preSearchFilters||e.postSearchFilters)&&r.push(({search:t,next:n})=>{let r=n(e.preSearchFilters?e.preSearchFilters.reduce((e,t)=>t(e),t):t);return e.postSearchFilters?e.postSearchFilters.reduce((e,t)=>t(e),r):r});let i=e.validateSearch;i&&r.push(({search:e,next:t,meta:r})=>{let a=t(e);if(n)try{let e=_r(i,a);if(r&&e)for(let t in e)t in a||(r.defaulted||=new Map).set(t,e[t]);return{...a,...e}}catch{}return a})}let i=(e,n,a)=>{if(e>=r.length){if(!t.search)return{};if(t.search===!0)return n;let e=Ye(t.search,n);return a&&(a.explicit=e),e}return r[e]({search:n,next:(t,n)=>{if(n){let n=a||{};return{search:i(e+1,t,n),meta:n}}return i(e+1,t,a)},meta:a})};return function(e,r,a){return t=r,n=a,i(0,e)}}function xr(e,t){if(e!==`root`)for(let e=t.length-1;e>=0;e--){let n=t[e];if(n.children)return n.id}return Tn}function Sr(e,t){let n=e.options.params?.parse??e.options.parseParams;if(n){let e=n(t);if(e===!1)throw Error(`Route params.parse returned false for a matched route`);Object.assign(t,e)}}var Cr=`Error preloading route! ☝️`,wr=class{get to(){return this._to}get id(){return this._id}get path(){return this._path}get fullPath(){return this._fullPath}constructor(e){if(this.init=e=>{this.originalIndex=e.originalIndex;let t=this.options,n=!t?.path&&!t?.id;this.parentRoute=this.options.getParentRoute?.(),n?this._path=Tn:this.parentRoute||vt();let r=n?Tn:t?.path;r&&r!==`/`&&(r=Kt(r));let i=t?.id||r,a=n?Tn:Wt([this.parentRoute.id===`__root__`?``:this.parentRoute.id,i]);r===`__root__`&&(r=`/`),a!==`__root__`&&(a=Wt([`/`,a]));let o=a===`__root__`?`/`:Wt([this.parentRoute.fullPath,r]);this._path=r,this._id=a,this._fullPath=o,this._to=qt(o)},this.addChildren=e=>this._addFileChildren(e),this._addFileChildren=e=>(Array.isArray(e)&&(this.children=e),typeof e==`object`&&e&&(this.children=Object.values(e)),this),this._addFileTypes=()=>this,this.updateLoader=e=>(Object.assign(this.options,e),this),this.update=e=>(Object.assign(this.options,e),this),this.lazy=e=>(this.lazyFn=e,this),this.redirect=e=>En({from:this.fullPath,...e}),this.options=e||{},this.isRoot=!e?.getParentRoute,e?.id&&e?.path)throw Error(`Route cannot have both an 'id' and a 'path' option.`)}},Tr=class extends wr{constructor(e){super(e)}},P=e(r(),1),F=t();function Er(e){let t=e.errorComponent??Or;return(0,F.jsx)(Dr,{getResetKey:e.getResetKey,onCatch:e.onCatch,children:({error:n,reset:r})=>n?P.createElement(t,{error:n,reset:r}):e.children})}var Dr=class extends P.Component{constructor(...e){super(...e),this.state={error:null}}static getDerivedStateFromProps(e,t){let n=e.getResetKey();return t.error&&t.resetKey!==n?{resetKey:n,error:null}:{resetKey:n}}static getDerivedStateFromError(e){return{error:e}}reset(){this.setState({error:null})}componentDidCatch(e,t){this.props.onCatch&&this.props.onCatch(e,t)}render(){return this.props.children({error:this.state.error,reset:()=>{this.reset()}})}};function Or({error:e}){let[t,n]=P.useState(!1);return(0,F.jsxs)(`div`,{style:{padding:`.5rem`,maxWidth:`100%`},children:[(0,F.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:`.5rem`},children:[(0,F.jsx)(`strong`,{style:{fontSize:`1rem`},children:`Something went wrong!`}),(0,F.jsx)(`button`,{style:{appearance:`none`,fontSize:`.6em`,border:`1px solid currentColor`,padding:`.1rem .2rem`,fontWeight:`bold`,borderRadius:`.25rem`},onClick:()=>n(e=>!e),children:t?`Hide Error`:`Show Error`})]}),(0,F.jsx)(`div`,{style:{height:`.25rem`}}),t?(0,F.jsx)(`div`,{children:(0,F.jsx)(`pre`,{style:{fontSize:`.7em`,border:`1px solid red`,borderRadius:`.25rem`,padding:`.3rem`,color:`red`,overflow:`auto`},children:e.message?(0,F.jsx)(`code`,{children:e.message}):null})}):null]})}function kr({children:e,fallback:t=null}){return Ar()?(0,F.jsx)(P.Fragment,{children:e}):(0,F.jsx)(P.Fragment,{children:t})}function Ar(){return P.useSyncExternalStore(jr,()=>!0,()=>!1)}function jr(){return()=>{}}var Mr=P.createContext(void 0),Nr=P.createContext(void 0),Pr=(e=>(e[e.None=0]=`None`,e[e.Mutable=1]=`Mutable`,e[e.Watching=2]=`Watching`,e[e.RecursedCheck=4]=`RecursedCheck`,e[e.Recursed=8]=`Recursed`,e[e.Dirty=16]=`Dirty`,e[e.Pending=32]=`Pending`,e))(Pr||{});function Fr({update:e,notify:t,unwatched:n}){return{link:r,unlink:i,propagate:a,checkDirty:o,shallowPropagate:s};function r(e,t,n){let r=t.depsTail;if(r!==void 0&&r.dep===e)return;let i=r===void 0?t.deps:r.nextDep;if(i!==void 0&&i.dep===e){i.version=n,t.depsTail=i;return}let a=e.subsTail;if(a!==void 0&&a.version===n&&a.sub===t)return;let o=t.depsTail=e.subsTail={version:n,dep:e,sub:t,prevDep:r,nextDep:i,prevSub:a,nextSub:void 0};i!==void 0&&(i.prevDep=o),r===void 0?t.deps=o:r.nextDep=o,a===void 0?e.subs=o:a.nextSub=o}function i(e,t=e.sub){let r=e.dep,i=e.prevDep,a=e.nextDep,o=e.nextSub,s=e.prevSub;return a===void 0?t.depsTail=i:a.prevDep=i,i===void 0?t.deps=a:i.nextDep=a,o===void 0?r.subsTail=s:o.prevSub=s,s===void 0?(r.subs=o)===void 0&&n(r):s.nextSub=o,a}function a(e){let n=e.nextSub,r;top:do{let i=e.sub,a=i.flags;if(a&60?a&12?a&4?!(a&48)&&c(e,i)?(i.flags=a|40,a&=1):a=0:i.flags=a&-9|32:a=0:i.flags=a|32,a&2&&t(i),a&1){let t=i.subs;if(t!==void 0){let i=(e=t).nextSub;i!==void 0&&(r={value:n,prev:r},n=i);continue}}if((e=n)!==void 0){n=e.nextSub;continue}for(;r!==void 0;)if(e=r.value,r=r.prev,e!==void 0){n=e.nextSub;continue top}break}while(!0)}function o(t,n){let r,i=0,a=!1;top:do{let o=t.dep,c=o.flags;if(n.flags&16)a=!0;else if((c&17)==17){if(e(o)){let e=o.subs;e.nextSub!==void 0&&s(e),a=!0}}else if((c&33)==33){(t.nextSub!==void 0||t.prevSub!==void 0)&&(r={value:t,prev:r}),t=o.deps,n=o,++i;continue}if(!a){let e=t.nextDep;if(e!==void 0){t=e;continue}}for(;i--;){let i=n.subs,o=i.nextSub!==void 0;if(o?(t=r.value,r=r.prev):t=i,a){if(e(n)){o&&s(i),n=t.sub;continue}a=!1}else n.flags&=-33;n=t.sub;let c=t.nextDep;if(c!==void 0){t=c;continue top}}return a}while(!0)}function s(e){do{let n=e.sub,r=n.flags;(r&48)==32&&(n.flags=r|16,(r&6)==2&&t(n))}while((e=e.nextSub)!==void 0)}function c(e,t){let n=t.depsTail;for(;n!==void 0;){if(n===e)return!0;n=n.prevDep}return!1}}function Ir(e,t,n){let r=typeof e==`object`,i=r?e:void 0;return{next:(r?e.next:e)?.bind(i),error:(r?e.error:t)?.bind(i),complete:(r?e.complete:n)?.bind(i)}}var Lr=[],Rr=0,{link:zr,unlink:Br,propagate:Vr,checkDirty:Hr,shallowPropagate:Ur}=Fr({update(e){return e._update()},notify(e){Lr[Gr++]=e,e.flags&=~Pr.Watching},unwatched(e){e.depsTail!==void 0&&(e.depsTail=void 0,e.flags=Pr.Mutable|Pr.Dirty,Yr(e))}}),Wr=0,Gr=0,Kr,qr=0;function Jr(e){try{++qr,e()}finally{--qr||Xr()}}function Yr(e){let t=e.depsTail,n=t===void 0?e.deps:t.nextDep;for(;n!==void 0;)n=Br(n,e)}function Xr(){if(!(qr>0)){for(;Wr{i.get(),n.current?t.next?.(i._snapshot):n.current=!0});return{unsubscribe:()=>{r.stop()}}},_update(e){let a=Kr,o=t?.compare??Object.is;if(n)Kr=i,++Rr,i.depsTail=void 0;else if(e===void 0)return!1;n&&(i.flags=Pr.Mutable|Pr.RecursedCheck);try{let t=i._snapshot,a=typeof e==`function`?e(t):e===void 0&&n?r(t):e;return t===void 0||!o(t,a)?(i._snapshot=a,!0):!1}finally{Kr=a,n&&(i.flags&=~Pr.RecursedCheck),Yr(i)}}};return n?(i.flags=Pr.Mutable|Pr.Dirty,i.get=function(){let e=i.flags;if(e&Pr.Dirty||e&Pr.Pending&&Hr(i.deps,i)){if(i._update()){let e=i.subs;e!==void 0&&Ur(e)}}else e&Pr.Pending&&(i.flags=e&~Pr.Pending);return Kr!==void 0&&zr(i,Kr,Rr),i._snapshot}):i.set=function(e){if(i._update(e)){let e=i.subs;e!==void 0&&(Vr(e),Ur(e),Xr())}},i}function Qr(e){let t=()=>{let t=Kr;Kr=n,++Rr,n.depsTail=void 0,n.flags=Pr.Watching|Pr.RecursedCheck;try{return e()}finally{Kr=t,n.flags&=~Pr.RecursedCheck,Yr(n)}},n={deps:void 0,depsTail:void 0,subs:void 0,subsTail:void 0,flags:Pr.Watching|Pr.RecursedCheck,notify(){let e=this.flags;e&Pr.Dirty||e&Pr.Pending&&Hr(this.deps,this)?t():this.flags=Pr.Watching},stop(){this.flags=Pr.None,this.depsTail=void 0,Yr(this)}};return t(),n}var $r=i((e=>{var t=r();function n(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var i=typeof Object.is==`function`?Object.is:n,a=t.useState,o=t.useEffect,s=t.useLayoutEffect,c=t.useDebugValue;function l(e,t){var n=t(),r=a({inst:{value:n,getSnapshot:t}}),i=r[0].inst,l=r[1];return s(function(){i.value=n,i.getSnapshot=t,u(i)&&l({inst:i})},[e,n,t]),o(function(){return u(i)&&l({inst:i}),e(function(){u(i)&&l({inst:i})})},[e]),c(n),n}function u(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!i(e,n)}catch{return!0}}function d(e,t){return t()}var f=typeof window>`u`||window.document===void 0||window.document.createElement===void 0?d:l;e.useSyncExternalStore=t.useSyncExternalStore===void 0?f:t.useSyncExternalStore})),ei=i(((e,t)=>{t.exports=$r()})),ti=i((e=>{var t=r(),n=ei();function i(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var a=typeof Object.is==`function`?Object.is:i,o=n.useSyncExternalStore,s=t.useRef,c=t.useEffect,l=t.useMemo,u=t.useDebugValue;e.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var d=s(null);if(d.current===null){var f={hasValue:!1,value:null};d.current=f}else f=d.current;d=l(function(){function e(e){if(!o){if(o=!0,s=e,e=r(e),i!==void 0&&f.hasValue){var t=f.value;if(i(t,e))return c=t}return c=e}if(t=c,a(s,e))return t;var n=r(e);return i!==void 0&&i(t,n)?(s=e,t):(s=e,c=n)}var o=!1,s,c,l=n===void 0?null:n;return[function(){return e(t())},l===null?void 0:function(){return e(l())}]},[t,n,r,i]);var p=o(e,d[0],d[1]);return c(function(){f.hasValue=!0,f.value=p},[p]),u(p),p}})),ni=i(((e,t)=>{t.exports=ti()}))();function ri(e,t){return e===t}function ii(e,t,n=ri){let r=(0,P.useCallback)(t=>{if(!e)return()=>{};let{unsubscribe:n}=e.subscribe(t);return n},[e]),i=(0,P.useCallback)(()=>e?.get(),[e]);return(0,ni.useSyncExternalStoreWithSelector)(r,i,i,t,n)}var ai={get(){},subscribe(){return{unsubscribe(){}}}};function oi(e,t){let n=P.useRef();return r=>{let i=e?.select?e.select(r):r;return e?.structuralSharing??t.options.defaultStructuralSharing?n.current=tt(n.current,i):i}}function si(e){let t=u(),n=P.useContext(e.from?Nr:Mr),r=e.from?t.stores.getRouteMatchStore(e.from):t.stores.matchStores.get(n),i=oi(e,t),a=ii(r??ai,e=>e?i(e):ai);if(a!==ai)return a;(e.shouldThrow??!0)&&vt()}function ci(e){return si({from:e.from,strict:e.strict,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.loaderData):t.loaderData})}function li(e){let{select:t,...n}=e;return si({...n,select:e=>t?t(e.loaderDeps):e.loaderDeps})}function ui(e){return si({from:e.from,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,strict:e.strict,select:t=>{let n=e.strict===!1?t.params:t._strictParams;return e.select?e.select(n):n}})}function di(e){return si({from:e.from,strict:e.strict,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.search):t.search})}function fi(e){return si({...e,select:t=>e.select?e.select(t.context):t.context})}var pi=e(we(),1);function mi(e,t){let r=u(),i=d(t),{activeProps:a,inactiveProps:o,activeOptions:s,to:c,preload:l,preloadDelay:f,preloadIntentProximity:p,hashScrollIntoView:m,replace:h,startTransition:g,resetScroll:_,viewTransition:v,children:y,target:b,disabled:x,style:S,className:C,onClick:w,onBlur:T,onFocus:E,onMouseEnter:D,onMouseLeave:O,onTouchStart:k,ignoreBlocker:ee,params:te,search:A,hash:ne,state:j,mask:re,reloadDocument:ie,unsafeRelative:ae,from:oe,_fromLocation:se,...ce}=e,le=Ar(),ue=P.useMemo(()=>e,[r,e.from,e._fromLocation,e.hash,e.to,e.search,e.params,e.state,e.mask,e.unsafeRelative]),de=ii(r.stores.location,e=>e,(e,t)=>e.href===t.href),fe=P.useMemo(()=>{let e={_fromLocation:de,...ue};return r.buildLocation(e)},[r,de,ue]),M=fe.maskedLocation?fe.maskedLocation.publicHref:fe.publicHref,pe=fe.maskedLocation?fe.maskedLocation.external:fe.external,me=P.useMemo(()=>Ci(M,pe,r.history,x),[x,pe,M,r.history]),he=P.useMemo(()=>{if(me?.external)return mt(me.href,r.protocolAllowlist)?void 0:me.href;if(!wi(c)&&typeof c==`string`&&c.indexOf(`:`)!==-1)try{return new URL(c),mt(c,r.protocolAllowlist)?void 0:c}catch{}},[c,me,r.protocolAllowlist]),ge=P.useMemo(()=>{if(he)return!1;if(s?.exact){if(!Xt(de.pathname,fe.pathname,r.basepath))return!1}else{let e=Yt(de.pathname,r.basepath),t=Yt(fe.pathname,r.basepath);if(!(e.startsWith(t)&&(e.length===t.length||e[t.length]===`/`)))return!1}return(s?.includeSearch??!0)&&!ot(de.search,fe.search,{partial:!s?.exact,ignoreUndefined:!s?.explicitUndefined})?!1:!s?.includeHash||le&&de.hash===fe.hash},[s?.exact,s?.explicitUndefined,s?.includeHash,s?.includeSearch,de,he,le,fe.hash,fe.pathname,fe.search,r.basepath]),_e=ge?Ye(a,{})??gi:hi,ve=ge?hi:Ye(o,{})??hi,ye=[C,_e.className,ve.className].filter(Boolean).join(` `),be=(S||_e.style||ve.style)&&{...S,..._e.style,...ve.style},[xe,Se]=P.useState(!1),Ce=P.useRef(!1),we=e.reloadDocument||he?!1:l??r.options.defaultPreload,Te=f??r.options.defaultPreloadDelay??0,Ee=P.useCallback(()=>{r.preloadRoute({...ue,_builtLocation:fe}).catch(e=>{console.warn(e),console.warn(Cr)})},[r,ue,fe]);n(i,P.useCallback(e=>{e?.isIntersecting&&Ee()},[Ee]),xi,{disabled:!!x||we!==`viewport`}),P.useEffect(()=>{Ce.current||!x&&we===`render`&&(Ee(),Ce.current=!0)},[x,Ee,we]);let De=e=>{let t=e.currentTarget.getAttribute(`target`),n=b===void 0?t:b;if(!x&&!Ei(e)&&!e.defaultPrevented&&(!n||n===`_self`)&&e.button===0){e.preventDefault(),(0,pi.flushSync)(()=>{Se(!0)});let t=r.subscribe(`onResolved`,()=>{t(),Se(!1)});r.navigate({...ue,replace:h,resetScroll:_,hashScrollIntoView:m,startTransition:g,viewTransition:v,ignoreBlocker:ee})}};if(he)return{...ce,ref:i,href:he,...y&&{children:y},...b&&{target:b},...x&&{disabled:x},...S&&{style:S},...C&&{className:C},...w&&{onClick:w},...T&&{onBlur:T},...E&&{onFocus:E},...D&&{onMouseEnter:D},...O&&{onMouseLeave:O},...k&&{onTouchStart:k}};let Oe=e=>{if(x||we!==`intent`)return;if(!Te){Ee();return}let t=e.currentTarget;if(bi.has(t))return;let n=setTimeout(()=>{bi.delete(t),Ee()},Te);bi.set(t,n)},ke=e=>{x||we!==`intent`||Ee()},Ae=e=>{if(x||!we||!Te)return;let t=e.currentTarget,n=bi.get(t);n&&(clearTimeout(n),bi.delete(t))};return{...ce,..._e,...ve,href:me?.href,ref:i,onClick:Si([w,De]),onBlur:Si([T,Ae]),onFocus:Si([E,Oe]),onMouseEnter:Si([D,Oe]),onMouseLeave:Si([O,Ae]),onTouchStart:Si([k,ke]),disabled:!!x,target:b,...be&&{style:be},...ye&&{className:ye},...x&&_i,...ge&&vi,...le&&xe&&yi}}var hi={},gi={className:`active`},_i={role:`link`,"aria-disabled":!0},vi={"data-status":`active`,"aria-current":`page`},yi={"data-transitioning":`transitioning`},bi=new WeakMap,xi={rootMargin:`100px`},Si=e=>t=>{for(let n of e)if(n){if(t.defaultPrevented)return;n(t)}};function Ci(e,t,n,r){if(!r)return t?{href:e,external:!0}:{href:n.createHref(e)||`/`,external:!1}}function wi(e){if(typeof e!=`string`)return!1;let t=e.charCodeAt(0);return t===47?e.charCodeAt(1)!==47:t===46}var Ti=P.forwardRef((e,t)=>{let{_asChild:n,...r}=e,{type:i,...a}=mi(r,t),o=typeof r.children==`function`?r.children({isActive:a[`data-status`]===`active`}):r.children;if(!n){let{disabled:e,...t}=a;return P.createElement(`a`,t,o)}return P.createElement(n,a,o)});function Ei(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}var Di=class extends wr{constructor(e){super(e),this.useMatch=e=>si({select:e?.select,from:this.id,structuralSharing:e?.structuralSharing}),this.useRouteContext=e=>fi({...e,from:this.id}),this.useSearch=e=>di({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useParams=e=>ui({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useLoaderDeps=e=>li({...e,from:this.id}),this.useLoaderData=e=>ci({...e,from:this.id}),this.useNavigate=()=>c({from:this.fullPath}),this.Link=P.forwardRef((e,t)=>(0,F.jsx)(Ti,{ref:t,from:this.fullPath,...e}))}};function Oi(e){return new Di(e)}var ki=class extends Tr{constructor(e){super(e),this.useMatch=e=>si({select:e?.select,from:this.id,structuralSharing:e?.structuralSharing}),this.useRouteContext=e=>fi({...e,from:this.id}),this.useSearch=e=>di({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useParams=e=>ui({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useLoaderDeps=e=>li({...e,from:this.id}),this.useLoaderData=e=>ci({...e,from:this.id}),this.useNavigate=()=>c({from:this.fullPath}),this.Link=P.forwardRef((e,t)=>(0,F.jsx)(Ti,{ref:t,from:this.fullPath,...e}))}};function Ai(e){return new ki(e)}function ji(e){return new Mi(e,{silent:!0}).createRoute}var Mi=class{constructor(e,t){this.path=e,this.createRoute=e=>{let t=Oi(e);return t.isRoot=!1,t},this.silent=t?.silent}};function Ni(e,t){let n,r,i,a,o=()=>(n||=e().then(e=>{n=void 0,r=e[t??`default`]}).catch(e=>{if(i=e,ct(i)&&i instanceof Error&&typeof window<`u`&&typeof sessionStorage<`u`){let e=`tanstack_router_reload:${i.message}`;sessionStorage.getItem(e)||(sessionStorage.setItem(e,`1`),a=!0)}}),n),s=function(e){if(a)throw window.location.reload(),new Promise(()=>{});if(i)throw i;if(!r)if(l)l(o());else throw o();return P.createElement(r,e)};return s.preload=o,s}function Pi(e){let t=u(),n=`not-found-${ii(t.stores.location,e=>e.pathname)}-${ii(t.stores.status,e=>e)}`;return(0,F.jsx)(Er,{getResetKey:()=>n,onCatch:(t,n)=>{if(nn(t))e.onCatch?.(t,n);else throw t},errorComponent:({error:t})=>{if(nn(t))return e.fallback?.(t);throw t},children:e.children})}function Fi(){return(0,F.jsx)(`p`,{children:`Not Found`})}function Ii(e){return(0,F.jsx)(F.Fragment,{children:e.children})}function Li(e,t,n){return t.options.notFoundComponent?(0,F.jsx)(t.options.notFoundComponent,{...n}):e.options.defaultNotFoundComponent?(0,F.jsx)(e.options.defaultNotFoundComponent,{...n}):(0,F.jsx)(Fi,{})}var Ri=(e,t)=>e.routeId===t.routeId&&e._displayPending===t._displayPending,zi=(e,t)=>e[0]===t[0]&&e[1]===t[1],Bi=P.memo(function({matchId:e}){let t=u(),n=t.stores.matchStores.get(e);n||vt();let r=ii(t.stores.loadedAt,e=>e),i=ii(n,e=>e,Ri);return(0,F.jsx)(Vi,{router:t,matchId:e,resetKey:r,matchState:P.useMemo(()=>{let e=i.routeId,n=t.routesById[e].parentRoute?.id;return{routeId:e,ssr:i.ssr,_displayPending:i._displayPending,parentRouteId:n}},[i._displayPending,i.routeId,i.ssr,t.routesById])})});function Vi({router:e,matchId:t,resetKey:n,matchState:r}){let i=e.routesById[r.routeId],a=i.options.pendingComponent??e.options.defaultPendingComponent,o=a?(0,F.jsx)(a,{}):null,s=i.options.errorComponent??e.options.defaultErrorComponent,c=i.options.onCatch??e.options.defaultOnCatch,l=i.isRoot?i.options.notFoundComponent??e.options.notFoundRoute?.options.component:i.options.notFoundComponent,u=r.ssr===!1||r.ssr===`data-only`,d=(!i.isRoot||i.options.wrapInSuspense||u)&&(i.options.wrapInSuspense??a??(i.options.errorComponent?.preload||u))?P.Suspense:Ii,f=s?Er:Ii,p=l?Pi:Ii;return(0,F.jsxs)(i.isRoot?i.options.shellComponent??Ii:Ii,{children:[(0,F.jsx)(Mr.Provider,{value:t,children:(0,F.jsx)(d,{fallback:o,children:(0,F.jsx)(f,{getResetKey:()=>n,errorComponent:s||Or,onCatch:(e,t)=>{if(nn(e))throw e.routeId??=r.routeId,e;c?.(e,t)},children:(0,F.jsx)(p,{fallback:e=>{if(e.routeId??=r.routeId,!l||e.routeId&&e.routeId!==r.routeId||!e.routeId&&!i.isRoot)throw e;return P.createElement(l,e)},children:u||r._displayPending?(0,F.jsx)(kr,{fallback:o,children:(0,F.jsx)(Ui,{matchId:t})}):(0,F.jsx)(Ui,{matchId:t})})})})}),r.parentRouteId===`__root__`?(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(Hi,{}),(e.options.scrollRestoration,null)]}):null]})}function Hi(){let e=u(),t=P.useRef();return o(()=>{let n=e.stores.resolvedLocation.get(),r=t.current;n&&(!r||r.href!==n.href)&&e.emit({type:`onRendered`,...fr(e.stores.location.get(),r??n)}),t.current=n},[ii(e.stores.resolvedLocation,e=>e?.state.__TSR_key),e]),null}var Ui=P.memo(function({matchId:e}){let t=u(),n=(e,n)=>t.getMatch(e.id)?._nonReactive[n]??e._nonReactive[n],r=t.stores.matchStores.get(e);r||vt();let i=ii(r,e=>e),a=i.routeId,o=t.routesById[a],s=P.useMemo(()=>{let e=(t.routesById[a].options.remountDeps??t.options.defaultRemountDeps)?.({routeId:a,loaderDeps:i.loaderDeps,params:i._strictParams,search:i._strictSearch});return e?JSON.stringify(e):void 0},[a,i.loaderDeps,i._strictParams,i._strictSearch,t.options.defaultRemountDeps,t.routesById]),c=P.useMemo(()=>{let e=o.options.component??t.options.defaultComponent;return e?(0,F.jsx)(e,{},s):(0,F.jsx)(Wi,{})},[s,o.options.component,t.options.defaultComponent]);if(i._displayPending)throw n(i,`displayPendingPromise`);if(i._forcePending)throw n(i,`minPendingPromise`);if(i.status===`pending`){let e=o.options.pendingMinMs??t.options.defaultPendingMinMs;if(e){let n=t.getMatch(i.id);if(n&&!n._nonReactive.minPendingPromise){let t=st();n._nonReactive.minPendingPromise=t,setTimeout(()=>{t.resolve(),n._nonReactive.minPendingPromise=void 0},e)}}throw n(i,`loadPromise`)}if(i.status===`notFound`)return nn(i.error)||vt(),Li(t,o,i.error);if(i.status===`redirected`)throw Dn(i.error)||vt(),n(i,`loadPromise`);if(i.status===`error`)throw i.error;return c}),Wi=P.memo(function(){let e=u(),t=P.useContext(Mr),n,r=!1,i;{let a=t?e.stores.matchStores.get(t):void 0;[n,r]=ii(a,e=>[e?.routeId,e?.globalNotFound??!1],zi),i=ii(e.stores.matchesId,e=>e[e.findIndex(e=>e===t)+1])}let a=n?e.routesById[n]:void 0,o=e.options.defaultPendingComponent?(0,F.jsx)(e.options.defaultPendingComponent,{}):null;if(r)return a||vt(),Li(e,a,void 0);if(!i)return null;let s=(0,F.jsx)(Bi,{matchId:i});return n===`__root__`?(0,F.jsx)(P.Suspense,{fallback:o,children:s}):s});function Gi(){let e=u(),t=P.useRef({router:e,mounted:!1}),[n,r]=P.useState(!1),i=ii(e.stores.isLoading,e=>e),a=ii(e.stores.hasPending,e=>e),s=p(i),c=i||n||a,l=p(c),d=i||a,f=p(d);return e.startTransition=e=>{r(!0),P.startTransition(()=>{e(),r(!1)})},P.useEffect(()=>{let t=e.history.subscribe(e.load),n=e.buildLocation({to:e.latestLocation.pathname,search:!0,params:!0,hash:!0,state:!0,_includeValidateSearch:!0});return qt(e.latestLocation.publicHref)!==qt(n.publicHref)&&e.commitLocation({...n,replace:!0}),()=>{t()}},[e,e.history]),o(()=>{typeof window<`u`&&e.ssr||t.current.router===e&&t.current.mounted||(t.current={router:e,mounted:!0},(async()=>{try{await e.load()}catch(e){console.error(e)}})())},[e]),o(()=>{s&&!i&&e.emit({type:`onLoad`,...fr(e.stores.location.get(),e.stores.resolvedLocation.get())})},[s,e,i]),o(()=>{f&&!d&&e.emit({type:`onBeforeRouteMount`,...fr(e.stores.location.get(),e.stores.resolvedLocation.get())})},[d,f,e]),o(()=>{if(l&&!c){let t=fr(e.stores.location.get(),e.stores.resolvedLocation.get());e.emit({type:`onResolved`,...t}),Jr(()=>{e.stores.status.set(`idle`),e.stores.resolvedLocation.set(e.stores.location.get())})}},[c,l,e]),null}function Ki(){let e=u(),t=e.routesById.__root__.options.pendingComponent??e.options.defaultPendingComponent,n=t?(0,F.jsx)(t,{}):null,r=(0,F.jsxs)(typeof document<`u`&&e.ssr?Ii:P.Suspense,{fallback:n,children:[(0,F.jsx)(Gi,{}),(0,F.jsx)(qi,{})]});return e.options.InnerWrap?(0,F.jsx)(e.options.InnerWrap,{children:r}):r}function qi(){let e=u(),t=ii(e.stores.firstId,e=>e),n=ii(e.stores.loadedAt,e=>e),r=t?(0,F.jsx)(Bi,{matchId:t}):null;return(0,F.jsx)(Mr.Provider,{value:t,children:e.options.disableGlobalCatchBoundary?r:(0,F.jsx)(Er,{getResetKey:()=>n,errorComponent:Or,onCatch:void 0,children:r})})}var Ji=e=>({createMutableStore:Zr,createReadonlyStore:Zr,batch:Jr}),Yi=e=>new Xi(e),Xi=class extends pr{constructor(e){super(e,Ji)}};function Zi({router:e,children:t,...n}){Qe(n)&&e.update({...e.options,...n,context:{...e.options.context,...n.context}});let r=(0,F.jsx)(a.Provider,{value:e,children:t});return e.options.Wrap?(0,F.jsx)(e.options.Wrap,{children:r}):r}function Qi({router:e,...t}){return(0,F.jsx)(Zi,{router:e,...t,children:(0,F.jsx)(Ki,{})})}function $i(e){let t=u({warn:e?.router===void 0}),n=e?.router||t;return ii(n.stores.__store,oi(e,n))}function ea(e){return typeof e!=`string`||!e.includes(`var(--mantine-scale)`)?e:e.match(/^calc\((.*?)\)$/)?.[1].split(`*`)[0].trim()}function ta(e){let t=ea(e);return typeof t==`number`?t:typeof t==`string`?t.includes(`calc`)||t.includes(`var`)?t:t.includes(`px`)?Number(t.replace(`px`,``)):t.includes(`rem`)?Number(t.replace(`rem`,``))*16:t.includes(`em`)?Number(t.replace(`em`,``))*16:Number(t):NaN}function na(e){return Array.isArray(e)||e===null?!1:typeof e==`object`&&e.type!==P.Fragment}function ra(e){let t=(0,P.createContext)(null);return[t,()=>{let n=(0,P.use)(t);if(n===null)throw Error(e);return n}]}function ia(e,t){let n=e;for(;(n=n.parentElement)&&!n.matches(t););return n}function aa(e,t,n){for(let n=e-1;n>=0;--n)if(!t[n].disabled)return n;if(n){for(let e=t.length-1;e>-1;--e)if(!t[e].disabled)return e}return e}function oa(e,t,n){for(let n=e+1;n{n?.(s);let c=Array.from(ia(s.currentTarget,e)?.querySelectorAll(t)||[]).filter(t=>sa(s.currentTarget,t,e)),l=c.findIndex(e=>s.currentTarget===e),u=oa(l,c,r),d=aa(l,c,r),f=a===`rtl`?d:u,p=a===`rtl`?u:d;switch(s.key){case`ArrowRight`:o===`horizontal`&&(s.stopPropagation(),s.preventDefault(),c[f].focus(),i&&c[f].click());break;case`ArrowLeft`:o===`horizontal`&&(s.stopPropagation(),s.preventDefault(),c[p].focus(),i&&c[p].click());break;case`ArrowUp`:o===`vertical`&&(s.stopPropagation(),s.preventDefault(),c[d].focus(),i&&c[d].click());break;case`ArrowDown`:o===`vertical`&&(s.stopPropagation(),s.preventDefault(),c[u].focus(),i&&c[u].click());break;case`Home`:s.stopPropagation(),s.preventDefault(),c[oa(-1,c,!1)]?.focus();break;case`End`:s.stopPropagation(),s.preventDefault(),c[aa(c.length,c,!1)]?.focus()}}}var la={app:100,modal:200,popover:300,overlay:400,max:9999};function ua(e){return la[e]}var da=()=>{};function fa(e,t={active:!0}){return typeof e!=`function`||!t.active?t.onKeyDown||da:n=>{n.key===`Escape`&&(e(n),t.onTrigger?.())}}function pa(e,t){return n=>{e?.(n),t?.(n)}}function ma(e,t){return e in t?ta(t[e]):ta(e)}function ha(e,t){let n=e.map(e=>({value:e,px:ma(e,t)}));return n.sort((e,t)=>e.px-t.px),n}function ga(e){return typeof e==`object`&&e?`base`in e?e.base:void 0:e}function _a(e,t,n){return n?Array.from(ia(n,t)?.querySelectorAll(e)||[]).findIndex(e=>e===n):null}function va(e){let t=(0,P.useRef)(e);return(0,P.useEffect)(()=>{t.current=e}),(0,P.useMemo)(()=>((...e)=>t.current?.(...e)),[])}function ya(e,t){let{delay:n,flushOnUnmount:r,leading:i,maxWait:a}=typeof t==`number`?{delay:t,flushOnUnmount:!1,leading:!1,maxWait:void 0}:t,o=va(e),s=(0,P.useRef)(0),c=(0,P.useRef)(0),l=(0,P.useRef)(null),u=(0,P.useMemo)(()=>{let e=Object.assign((...t)=>{window.clearTimeout(s.current),l.current=t;let r=e._isFirstCall;e._isFirstCall=!1;function u(){window.clearTimeout(s.current),window.clearTimeout(c.current),s.current=0,c.current=0,e._isFirstCall=!0,e._hasPendingCallback=!1}function d(){a!==void 0&&c.current===0&&(c.current=window.setTimeout(()=>{if(s.current!==0){let e=l.current;u(),o(...e)}},a))}if(i&&r){o(...t),e.flush=()=>{s.current!==0&&(u(),o(...t))},e.cancel=()=>{u()},s.current=window.setTimeout(()=>{u()},n),d();return}if(i&&!r){e._hasPendingCallback=!0,e.flush=()=>{s.current!==0&&(u(),o(...t))},e.cancel=()=>{u()},s.current=window.setTimeout(()=>{u()},n),d();return}e._hasPendingCallback=!0;let f=()=>{s.current!==0&&(u(),o(...t))};e.flush=f,e.cancel=()=>{u()},s.current=window.setTimeout(f,n),d()},{flush:()=>{},cancel:()=>{},isPending:()=>e._hasPendingCallback,_isFirstCall:!0,_hasPendingCallback:!1});return e},[o,n,i,a]);return(0,P.useEffect)(()=>()=>{r?u.flush():u.cancel()},[u,r]),u}var ba=[`mousedown`,`touchstart`];function xa(e,t,n,r=!0){let i=(0,P.useRef)(null),a=t||ba,o=(0,P.useEffectEvent)(t=>{let{target:r}=t??{};if(!document.body.contains(r)&&r?.tagName!==`HTML`)return;let a=t.composedPath();Array.isArray(n)?n.every(e=>!!e&&!a.includes(e))&&e(t):i.current&&!a.includes(i.current)&&e(t)}),s=a.join(`,`);return(0,P.useEffect)(()=>{if(!r)return;let e=s.split(`,`);return e.forEach(e=>document.addEventListener(e,o)),()=>{e.forEach(e=>document.removeEventListener(e,o))}},[s,r]),i}function Sa(e,t,n={leading:!1}){let[r,i]=(0,P.useState)(e),a=(0,P.useRef)(!1),o=(0,P.useRef)(null),s=(0,P.useRef)(!1),c=(0,P.useRef)(e);c.current=e;let l=(0,P.useCallback)(()=>{window.clearTimeout(o.current),o.current=null,s.current=!1},[]),u=(0,P.useCallback)(()=>{o.current&&(l(),s.current=!1,i(c.current))},[]);return(0,P.useEffect)(()=>{a.current&&(!s.current&&n.leading?(s.current=!0,i(e),o.current=window.setTimeout(()=>{s.current=!1},t)):(l(),o.current=window.setTimeout(()=>{s.current=!1,i(e)},t)))},[e,n.leading,t]),(0,P.useEffect)(()=>(a.current=!0,l),[]),[r,l,{cancel:l,flush:u}]}function Ca({opened:e,shouldReturnFocus:t=!0}){let n=(0,P.useRef)(null),r=()=>{n.current&&`focus`in n.current&&typeof n.current.focus==`function`&&n.current?.focus({preventScroll:!0})};return Ie(()=>{let i=-1,a=e=>{e.key===`Tab`&&window.clearTimeout(i)};if(document.addEventListener(`keydown`,a),e)n.current=document.activeElement;else if(t){let e=document.activeElement;i=window.setTimeout(()=>{let t=document.activeElement;(t===null||t===document.body||t===e)&&r()},10)}return()=>{window.clearTimeout(i),document.removeEventListener(`keydown`,a)}},[e,t]),r}var wa=/input|select|textarea|button|object/,Ta=`a, input, select, textarea, button, object, [tabindex]`;function Ea(e){return e.style.display===`none`}function Da(e){if(e.getAttribute(`aria-hidden`)||e.getAttribute(`hidden`)||e.getAttribute(`type`)===`hidden`)return!1;let t=e;for(;t&&t!==document.body&&t.nodeType!==11;){if(Ea(t))return!1;t=t.parentNode}return!0}function Oa(e){let t=e.getAttribute(`tabindex`);return t===null&&(t=void 0),parseInt(t,10)}function ka(e){let t=e.nodeName.toLowerCase(),n=!Number.isNaN(Oa(e));return(wa.test(t)&&!e.disabled||e instanceof HTMLAnchorElement&&e.href||n)&&Da(e)}function Aa(e){let t=Oa(e);return(Number.isNaN(t)||t>=0)&&ka(e)}function ja(e){return Array.from(e.querySelectorAll(Ta)).filter(Aa)}function Ma(e,t){let n=ja(e);if(!n.length){t.preventDefault();return}let r=n[t.shiftKey?0:n.length-1],i=e.getRootNode(),a=r===i.activeElement||e===i.activeElement,o=i.activeElement;if(o.tagName===`INPUT`&&o.getAttribute(`type`)===`radio`&&(a=n.filter(e=>e.getAttribute(`type`)===`radio`&&e.getAttribute(`name`)===o.getAttribute(`name`)).includes(r)),!a)return;t.preventDefault();let s=n[t.shiftKey?n.length-1:0];s&&s.focus()}function Na(e=!0){let t=(0,P.useRef)(null),n=e=>{let t=e.querySelector(`[data-autofocus]`);if(!t){let n=Array.from(e.querySelectorAll(Ta));t=n.find(Aa)||n.find(ka)||null,!t&&ka(e)&&(t=e)}t?t.focus({preventScroll:!0}):console.warn(`[@mantine/hooks/use-focus-trap] Failed to find focusable element within provided node`,e)},r=(0,P.useCallback)(r=>{if(e){if(r===null){t.current=null;return}t.current!==r&&(setTimeout(()=>{r.getRootNode()?n(r):console.warn(`[@mantine/hooks/use-focus-trap] Ref node is not part of the dom`,r)}),t.current=r)}},[e]);return(0,P.useEffect)(()=>{if(!e)return;t.current&&setTimeout(()=>{t.current&&n(t.current)});let r=e=>{e.key===`Tab`&&t.current&&Ma(t.current,e)};return document.addEventListener(`keydown`,r),()=>document.removeEventListener(`keydown`,r)},[e]),r}function Pa(e,t,n){let r=(0,P.useEffectEvent)(t);(0,P.useEffect)(()=>(window.addEventListener(e,r,n),()=>window.removeEventListener(e,r,n)),[e])}function Fa(e,t){if(typeof e==`function`)return e(t);typeof e==`object`&&e&&`current`in e&&(e.current=t)}function Ia(...e){let t=new Map;return n=>{if(e.forEach(e=>{let r=Fa(e,n);r&&t.set(e,r)}),t.size>0)return()=>{e.forEach(e=>{let n=t.get(e);n&&typeof n==`function`?n():Fa(e,null)}),t.clear()}}}function La(...e){return(0,P.useCallback)(Ia(...e),e)}function Ra({value:e,defaultValue:t,finalValue:n,onChange:r=()=>{}}){let[i,a]=(0,P.useState)(t===void 0?n:t);return e===void 0?[i,(e,...t)=>{a(e),r?.(e,...t)},!1]:[e,r,!0]}var za=[`mouse`,`touch`],Ba=10;function Va(e,t={}){let{threshold:n=400,events:r=za,cancelOnMove:i=!1,onStart:a,onFinish:o,onCancel:s}=t,c=(0,P.useRef)(!1),l=(0,P.useRef)(!1),u=(0,P.useRef)(-1),d=(0,P.useRef)(null);return(0,P.useEffect)(()=>()=>window.clearTimeout(u.current),[]),(0,P.useMemo)(()=>{if(typeof e!=`function`)return{};let t=i!==!1,f=i===!0?Ba:i===!1?0:i,p=t=>{!Wa(t)&&!Ua(t)||(a&&a(t),d.current=Ha(t),l.current=!0,u.current=window.setTimeout(()=>{e(t),c.current=!0},n))},m=e=>{!Wa(e)&&!Ua(e)||(c.current?o&&o(e):l.current&&s&&s(e),c.current=!1,l.current=!1,d.current=null,u.current!==-1&&(window.clearTimeout(u.current),u.current=-1))},h=e=>{if(!t||!l.current||c.current)return;let n=Ha(e);if(!n||!d.current)return;let r=n.x-d.current.x,i=n.y-d.current.y;Math.sqrt(r*r+i*i)>f&&m(e)},g={};return r.includes(`mouse`)&&(g.onMouseDown=p,g.onMouseUp=m,g.onMouseLeave=m,t&&(g.onMouseMove=h)),r.includes(`touch`)&&(g.onTouchStart=p,g.onTouchEnd=m,g.onTouchCancel=m,t&&(g.onTouchMove=h)),g},[e,n,s,o,a,i,r.join(`,`)])}function Ha(e){if(Ua(e)){let t=e.touches[0]??e.changedTouches[0];return t?{x:t.clientX,y:t.clientY}:null}return{x:e.clientX,y:e.clientY}}function Ua(e){return window.TouchEvent?e.nativeEvent instanceof TouchEvent:`touches`in e.nativeEvent}function Wa(e){return e.nativeEvent instanceof MouseEvent}function Ga(){return`development`}function Ka(e){return e?.props?.ref}function qa(e){let t=P.Children.toArray(e);return t.length!==1||!na(t[0])?null:t[0]}function Ja(e){return e===`auto`||e===`dark`||e===`light`}function Ya({key:e=`mantine-color-scheme-value`}={}){let t;return{get:t=>{if(typeof window>`u`)return t;try{let n=window.localStorage.getItem(e);return Ja(n)?n:t}catch{return t}},set:t=>{try{window.localStorage.setItem(e,t)}catch(e){console.warn(`[@mantine/core] Local storage color scheme manager was unable to save color scheme.`,e)}},subscribe:n=>{t=t=>{t.storageArea===window.localStorage&&t.key===e&&Ja(t.newValue)&&n(t.newValue)},window.addEventListener(`storage`,t)},unsubscribe:()=>{window.removeEventListener(`storage`,t)},clear:()=>{window.localStorage.removeItem(e)}}}function Xa({color:e,theme:t,autoContrast:n,colorScheme:r}){return(typeof n==`boolean`?n:t.autoContrast)&&ie({color:e||t.primaryColor,theme:t,colorScheme:r}).isLight?`var(--mantine-color-black)`:`var(--mantine-color-white)`}function Za(e,t,n){return Xa({color:n===`dark`?e.dark:e.light,theme:t,colorScheme:n,autoContrast:!0})}function Qa(e,t){let n=e.colors[e.primaryColor];return Ae(n)?e.autoContrast?Za(n,e,t):`var(--mantine-color-white)`:Xa({color:n[re(e,t)],theme:e,autoContrast:null})}function $a(e,t){let n=typeof window<`u`&&`matchMedia`in window&&window.matchMedia(`(prefers-color-scheme: dark)`)?.matches,r=e===`auto`?n?`dark`:`light`:e;t()?.setAttribute(`data-mantine-color-scheme`,r)}function eo({manager:e,defaultColorScheme:t,getRootElement:n,forceColorScheme:r}){let i=(0,P.useRef)(null),[a,o]=(0,P.useState)(()=>e.get(t)),s=r||a,c=(0,P.useCallback)(t=>{r||($a(t,n),o(t),e.set(t))},[e.set,s,r]),l=(0,P.useCallback)(()=>{o(t),$a(t,n),e.clear()},[e.clear,t]);return(0,P.useEffect)(()=>(e.subscribe(c),e.unsubscribe),[e.subscribe,e.unsubscribe]),Ee(()=>{$a(e.get(t),n)},[]),(0,P.useEffect)(()=>{if(r)return $a(r,n),()=>{};r===void 0&&$a(a,n),typeof window<`u`&&`matchMedia`in window&&(i.current=window.matchMedia(`(prefers-color-scheme: dark)`));let e=e=>{a===`auto`&&$a(e.matches?`dark`:`light`,n)};return i.current?.addEventListener(`change`,e),()=>i.current?.removeEventListener(`change`,e)},[a,r]),{colorScheme:s,setColorScheme:c,clearColorScheme:l}}function to(e){return Object.entries(e).map(([e,t])=>`${e}: ${t};`).join(``)}function no(e,t){let n=t?[t]:[`:root`,`:host`],r=to(e.variables),i=r?`${n.join(`, `)}{${r}}`:``,a=to(e.dark),o=to(e.light),s=e=>n.map(t=>t===`:host`?`${t}([data-mantine-color-scheme="${e}"])`:`${t}[data-mantine-color-scheme="${e}"]`).join(`, `);return`${i}\n\n${a?`${s(`dark`)}{${a}}`:``}\n\n${o?`${s(`light`)}{${o}}`:``}`}function ro({theme:e,color:t,colorScheme:n,name:r=t,withColorValues:i=!0}){if(!e.colors[t])return{};if(n===`light`){let n=re(e,`light`),a={[`--mantine-color-${r}-text`]:`var(--mantine-color-${r}-filled)`,[`--mantine-color-${r}-filled`]:`var(--mantine-color-${r}-${n})`,[`--mantine-color-${r}-filled-hover`]:`var(--mantine-color-${r}-${n===9?8:n+1})`,[`--mantine-color-${r}-light`]:`var(--mantine-color-${r}-1)`,[`--mantine-color-${r}-light-hover`]:`var(--mantine-color-${r}-2)`,[`--mantine-color-${r}-light-color`]:`var(--mantine-color-${r}-9)`,[`--mantine-color-${r}-outline`]:`var(--mantine-color-${r}-${n})`,[`--mantine-color-${r}-outline-hover`]:j(e.colors[t][n],.05)};return i?{[`--mantine-color-${r}-0`]:e.colors[t][0],[`--mantine-color-${r}-1`]:e.colors[t][1],[`--mantine-color-${r}-2`]:e.colors[t][2],[`--mantine-color-${r}-3`]:e.colors[t][3],[`--mantine-color-${r}-4`]:e.colors[t][4],[`--mantine-color-${r}-5`]:e.colors[t][5],[`--mantine-color-${r}-6`]:e.colors[t][6],[`--mantine-color-${r}-7`]:e.colors[t][7],[`--mantine-color-${r}-8`]:e.colors[t][8],[`--mantine-color-${r}-9`]:e.colors[t][9],...a}:a}let a=re(e,`dark`),o={[`--mantine-color-${r}-text`]:`var(--mantine-color-${r}-4)`,[`--mantine-color-${r}-filled`]:`var(--mantine-color-${r}-${a})`,[`--mantine-color-${r}-filled-hover`]:`var(--mantine-color-${r}-${a===9?8:a+1})`,[`--mantine-color-${r}-light`]:C(e.colors[t][9],.5),[`--mantine-color-${r}-light-hover`]:C(e.colors[t][9],.3),[`--mantine-color-${r}-light-color`]:`var(--mantine-color-${r}-0)`,[`--mantine-color-${r}-outline`]:`var(--mantine-color-${r}-${Math.max(a-4,0)})`,[`--mantine-color-${r}-outline-hover`]:j(e.colors[t][Math.max(a-4,0)],.05)};return i?{[`--mantine-color-${r}-0`]:e.colors[t][0],[`--mantine-color-${r}-1`]:e.colors[t][1],[`--mantine-color-${r}-2`]:e.colors[t][2],[`--mantine-color-${r}-3`]:e.colors[t][3],[`--mantine-color-${r}-4`]:e.colors[t][4],[`--mantine-color-${r}-5`]:e.colors[t][5],[`--mantine-color-${r}-6`]:e.colors[t][6],[`--mantine-color-${r}-7`]:e.colors[t][7],[`--mantine-color-${r}-8`]:e.colors[t][8],[`--mantine-color-${r}-9`]:e.colors[t][9],...o}:o}function io(e,t,n){ke(t).forEach(r=>Object.assign(e,{[`--mantine-${n}-${r}`]:t[r]}))}var ao=e=>{let t=re(e,`light`),n=e.defaultRadius in e.radius?e.radius[e.defaultRadius]:M(e.defaultRadius),r={variables:{"--mantine-z-index-app":`100`,"--mantine-z-index-modal":`200`,"--mantine-z-index-popover":`300`,"--mantine-z-index-overlay":`400`,"--mantine-z-index-max":`9999`,"--mantine-scale":e.scale.toString(),"--mantine-cursor-type":e.cursorType,"--mantine-webkit-font-smoothing":e.fontSmoothing?`antialiased`:`unset`,"--mantine-moz-font-smoothing":e.fontSmoothing?`grayscale`:`unset`,"--mantine-color-white":e.white,"--mantine-color-black":e.black,"--mantine-line-height":e.lineHeights.md,"--mantine-font-family":e.fontFamily,"--mantine-font-family-monospace":e.fontFamilyMonospace,"--mantine-font-family-headings":e.headings.fontFamily,"--mantine-heading-font-weight":e.headings.fontWeight,"--mantine-heading-text-wrap":e.headings.textWrap,"--mantine-radius-default":n,"--mantine-primary-color-filled":`var(--mantine-color-${e.primaryColor}-filled)`,"--mantine-primary-color-filled-hover":`var(--mantine-color-${e.primaryColor}-filled-hover)`,"--mantine-primary-color-light":`var(--mantine-color-${e.primaryColor}-light)`,"--mantine-primary-color-light-hover":`var(--mantine-color-${e.primaryColor}-light-hover)`,"--mantine-primary-color-light-color":`var(--mantine-color-${e.primaryColor}-light-color)`},light:{"--mantine-color-scheme":`light`,"--mantine-primary-color-contrast":Qa(e,`light`),"--mantine-color-bright":`var(--mantine-color-black)`,"--mantine-color-text":e.black,"--mantine-color-body":e.white,"--mantine-color-error":`var(--mantine-color-red-6)`,"--mantine-color-success":`var(--mantine-color-teal-8)`,"--mantine-color-placeholder":`var(--mantine-color-gray-5)`,"--mantine-color-anchor":`var(--mantine-color-${e.primaryColor}-${t})`,"--mantine-color-default":`var(--mantine-color-white)`,"--mantine-color-default-hover":`var(--mantine-color-gray-0)`,"--mantine-color-default-color":`var(--mantine-color-black)`,"--mantine-color-default-border":`var(--mantine-color-gray-4)`,"--mantine-color-dimmed":`var(--mantine-color-gray-6)`,"--mantine-color-disabled":`var(--mantine-color-gray-2)`,"--mantine-color-disabled-color":`var(--mantine-color-gray-5)`,"--mantine-color-disabled-border":`var(--mantine-color-gray-3)`},dark:{"--mantine-color-scheme":`dark`,"--mantine-primary-color-contrast":Qa(e,`dark`),"--mantine-color-bright":`var(--mantine-color-white)`,"--mantine-color-text":`var(--mantine-color-dark-0)`,"--mantine-color-body":`var(--mantine-color-dark-7)`,"--mantine-color-error":`var(--mantine-color-red-8)`,"--mantine-color-success":`var(--mantine-color-teal-8)`,"--mantine-color-placeholder":`var(--mantine-color-dark-3)`,"--mantine-color-anchor":`var(--mantine-color-${e.primaryColor}-4)`,"--mantine-color-default":`var(--mantine-color-dark-6)`,"--mantine-color-default-hover":`var(--mantine-color-dark-5)`,"--mantine-color-default-color":`var(--mantine-color-white)`,"--mantine-color-default-border":`var(--mantine-color-dark-4)`,"--mantine-color-dimmed":`var(--mantine-color-dark-2)`,"--mantine-color-disabled":`var(--mantine-color-dark-6)`,"--mantine-color-disabled-color":`var(--mantine-color-dark-3)`,"--mantine-color-disabled-border":`var(--mantine-color-dark-4)`}};io(r.variables,e.breakpoints,`breakpoint`),io(r.variables,e.spacing,`spacing`),io(r.variables,e.fontSizes,`font-size`),io(r.variables,e.lineHeights,`line-height`),io(r.variables,e.shadows,`shadow`),io(r.variables,e.radius,`radius`),io(r.variables,e.fontWeights,`font-weight`),e.colors[e.primaryColor].forEach((t,n)=>{r.variables[`--mantine-primary-color-${n}`]=`var(--mantine-color-${e.primaryColor}-${n})`}),ke(e.colors).forEach(t=>{let n=e.colors[t];if(Ae(n)){Object.assign(r.light,ro({theme:e,name:n.name,color:n.light,colorScheme:`light`,withColorValues:!0})),Object.assign(r.dark,ro({theme:e,name:n.name,color:n.dark,colorScheme:`dark`,withColorValues:!0})),r.light[`--mantine-color-${n.name}-contrast`]=Za(n,e,`light`),r.dark[`--mantine-color-${n.name}-contrast`]=Za(n,e,`dark`);return}n.forEach((e,n)=>{r.variables[`--mantine-color-${t}-${n}`]=e}),Object.assign(r.light,ro({theme:e,color:t,colorScheme:`light`,withColorValues:!1})),Object.assign(r.dark,ro({theme:e,color:t,colorScheme:`dark`,withColorValues:!1}))});let i=e.headings.sizes;return ke(i).forEach(t=>{r.variables[`--mantine-${t}-font-size`]=i[t].fontSize,r.variables[`--mantine-${t}-line-height`]=i[t].lineHeight,r.variables[`--mantine-${t}-font-weight`]=i[t].fontWeight||e.headings.fontWeight}),r};function oo(){let e=x(),t=ne(),n=ke(e.breakpoints).reduce((t,n)=>{let r=e.breakpoints[n].includes(`px`),i=ta(e.breakpoints[n]);return`${t}@media (max-width: ${r?`${i-.1}px`:Re(i-.1)}) {.mantine-visible-from-${n} {display: none !important;}}@media (min-width: ${r?`${i}px`:Re(i)}) {.mantine-hidden-from-${n} {display: none !important;}}`},``);return(0,F.jsx)(`style`,{"data-mantine-styles":`classes`,nonce:t?.(),dangerouslySetInnerHTML:{__html:n}})}function so({theme:e,generator:t}){let n=ao(e),r=t?.(e);return r?he(n,r):n}var co=ao(w);function lo(e){let t={variables:{},light:{},dark:{}};return ke(e.variables).forEach(n=>{co.variables[n]!==e.variables[n]&&(t.variables[n]=e.variables[n])}),ke(e.light).forEach(n=>{co.light[n]!==e.light[n]&&(t.light[n]=e.light[n])}),ke(e.dark).forEach(n=>{co.dark[n]!==e.dark[n]&&(t.dark[n]=e.dark[n])}),t}function uo(e){return no({variables:{},dark:{"--mantine-color-scheme":`dark`},light:{"--mantine-color-scheme":`light`}},e)}function fo({cssVariablesSelector:e,deduplicateCssVariables:t}){let n=x(),r=ne(),i=so({theme:n,generator:h()}),a=(e===void 0||e===`:root`||e===`:host`)&&t,o=no(a?lo(i):i,e);return o?(0,F.jsx)(`style`,{"data-mantine-styles":!0,nonce:r?.(),dangerouslySetInnerHTML:{__html:`${o}${a?``:uo(e)}`}}):null}fo.displayName=`@mantine/CssVariables`;function po({respectReducedMotion:e,getRootElement:t}){Ee(()=>{e&&t()?.setAttribute(`data-respect-reduced-motion`,`true`)},[e])}function mo({theme:e,children:t,getStyleNonce:n,withStaticClasses:r=!0,withGlobalClasses:i=!0,deduplicateCssVariables:a=!0,withCssVariables:o=!0,cssVariablesSelector:s,classNamesPrefix:c=`mantine`,colorSchemeManager:l=Ya(),defaultColorScheme:u=`light`,getRootElement:d=()=>document.documentElement,cssVariablesResolver:f,forceColorScheme:p,stylesTransform:m,env:h,deduplicateInlineStyles:g=!1}){let{colorScheme:_,setColorScheme:y,clearColorScheme:b}=eo({defaultColorScheme:u,forceColorScheme:p,manager:l,getRootElement:d});return po({respectReducedMotion:e?.respectReducedMotion||!1,getRootElement:d}),(0,F.jsx)(ee,{value:{colorScheme:_,setColorScheme:y,clearColorScheme:b,getRootElement:d,classNamesPrefix:c,getStyleNonce:n,cssVariablesResolver:f,cssVariablesSelector:s??`:root`,withStaticClasses:r,stylesTransform:m,env:h,deduplicateInlineStyles:g},children:(0,F.jsxs)(v,{theme:e,children:[o&&(0,F.jsx)(fo,{cssVariablesSelector:s,deduplicateCssVariables:a}),i&&(0,F.jsx)(oo,{}),t]})})}mo.displayName=`@mantine/core/MantineProvider`;function ho(e){return e}function go(e,t){return Array.isArray(e)?[...e].reduce((e,n)=>({...e,...go(n,t)}),{}):typeof e==`function`?e(t):e??{}}var _o=(0,P.createContext)({dir:`ltr`,toggleDirection:()=>{},setDirection:()=>{}});function I(){return(0,P.use)(_o)}var[vo,yo]=ra(`ScrollArea.Root component was not found in tree`);function bo(e,t){let n=(0,P.useEffectEvent)(t);Ee(()=>{let t=0;if(e){let r=new ResizeObserver(()=>{cancelAnimationFrame(t),t=window.requestAnimationFrame(n)});return r.observe(e),()=>{window.cancelAnimationFrame(t),r.unobserve(e)}}},[e])}function xo(e){let{style:t,...n}=e,r=yo(),[i,a]=(0,P.useState)(0),[o,s]=(0,P.useState)(0),c=!!(i&&o);return bo(r.scrollbarX,()=>{let e=r.scrollbarX?.offsetHeight||0;r.onCornerHeightChange(e),s(e)}),bo(r.scrollbarY,()=>{let e=r.scrollbarY?.offsetWidth||0;r.onCornerWidthChange(e),a(e)}),c?(0,F.jsx)(`div`,{...n,style:{...t,width:i,height:o}}):null}function So(e){let t=yo(),n=!!(t.scrollbarX&&t.scrollbarY);return t.type!==`scroll`&&n?(0,F.jsx)(xo,{...e}):null}var Co={scrollHideDelay:1e3,type:`hover`};function wo(e){let{type:t,scrollHideDelay:n,scrollbars:r,getStyles:i,ref:a,...o}=O(`ScrollAreaRoot`,Co,e),[s,c]=(0,P.useState)(null),[l,u]=(0,P.useState)(null),[d,f]=(0,P.useState)(null),[p,m]=(0,P.useState)(null),[h,g]=(0,P.useState)(null),[_,v]=(0,P.useState)(0),[y,b]=(0,P.useState)(0),[x,S]=(0,P.useState)(!1),[C,w]=(0,P.useState)(!1),T=La(a,c);return(0,F.jsx)(vo,{value:{type:t,scrollHideDelay:n,scrollArea:s,viewport:l,onViewportChange:u,content:d,onContentChange:f,scrollbarX:p,onScrollbarXChange:m,scrollbarXEnabled:x,onScrollbarXEnabledChange:S,scrollbarY:h,onScrollbarYChange:g,scrollbarYEnabled:C,onScrollbarYEnabledChange:w,onCornerWidthChange:v,onCornerHeightChange:b,getStyles:i},children:(0,F.jsx)(N,{...o,ref:T,__vars:{"--sa-corner-width":r===`xy`?`${_}px`:`0px`,"--sa-corner-height":r===`xy`?`${y}px`:`0px`}})})}wo.displayName=`@mantine/core/ScrollAreaRoot`;function To(e,t){let n=e/t;return Number.isNaN(n)?0:n}function Eo(e){let t=To(e.viewport,e.content),n=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,r=(e.scrollbar.size-n)*t;return Math.max(r,18)}function Do(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];let r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}function Oo(e,[t,n]){return Math.min(n,Math.max(t,e))}function ko(e,t,n=`ltr`){let r=Eo(t),i=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,a=t.scrollbar.size-i,o=t.content-t.viewport,s=a-r,c=Oo(e,n===`ltr`?[0,o]:[o*-1,0]);return Do([0,o],[0,s])(c)}function Ao(e,t,n,r=`ltr`){let i=Eo(n),a=i/2,o=t||a,s=i-o,c=n.scrollbar.paddingStart+o,l=n.scrollbar.size-n.scrollbar.paddingEnd-s,u=n.content-n.viewport,d=r===`ltr`?[0,u]:[u*-1,0];return Do([c,l],d)(e)}function jo(e,t){return e>0&&e{e?.(r),(n===!1||!r.defaultPrevented)&&t?.(r)}}var[Po,Fo]=ra(`ScrollAreaScrollbar was not found in tree`);function Io(e){let{sizes:t,hasThumb:n,onThumbChange:r,onThumbPointerUp:i,onThumbPointerDown:a,onThumbPositionChange:o,onDragScroll:s,onWheelScroll:c,onResize:l,ref:u,...d}=e,f=yo(),[p,m]=(0,P.useState)(null),h=La(u,m),g=(0,P.useRef)(null),_=(0,P.useRef)(``),{viewport:v}=f,y=t.content-t.viewport,b=(0,P.useEffectEvent)(c),x=va(o),S=ya(l,10),C=e=>{if(g.current){let t=e.clientX-g.current.left,n=e.clientY-g.current.top;s({x:t,y:n})}};return(0,P.useEffect)(()=>{let e=e=>{let t=e.target;p?.contains(t)&&b(e,y)};return document.addEventListener(`wheel`,e,{passive:!1}),()=>document.removeEventListener(`wheel`,e,{passive:!1})},[v,p,y]),(0,P.useEffect)(x,[t,x]),bo(p,S),bo(f.content,S),(0,F.jsx)(Po,{value:{scrollbar:p,hasThumb:n,onThumbChange:va(r),onThumbPointerUp:va(i),onThumbPositionChange:x,onThumbPointerDown:va(a)},children:(0,F.jsx)(`div`,{...d,ref:h,"data-mantine-scrollbar":!0,style:{position:`absolute`,...d.style},onPointerDown:No(e.onPointerDown,e=>{e.preventDefault(),e.button===0&&(e.target.setPointerCapture(e.pointerId),g.current=p.getBoundingClientRect(),_.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect=`none`,C(e))}),onPointerMove:No(e.onPointerMove,C),onPointerUp:No(e.onPointerUp,e=>{let t=e.target;t.hasPointerCapture(e.pointerId)&&(e.preventDefault(),t.releasePointerCapture(e.pointerId))}),onLostPointerCapture:()=>{document.body.style.webkitUserSelect=_.current,g.current=null}})})}var Lo=e=>{let{sizes:t,onSizesChange:n,style:r,ref:i,...a}=e,o=yo(),[s,c]=(0,P.useState)(),l=(0,P.useRef)(null),u=La(i,l,o.onScrollbarXChange);return(0,P.useEffect)(()=>{l.current&&c(getComputedStyle(l.current))},[l]),(0,F.jsx)(Io,{"data-orientation":`horizontal`,...a,ref:u,sizes:t,style:{...r,"--sa-thumb-width":`${Eo(t)}px`},onThumbPointerDown:t=>e.onThumbPointerDown(t.x),onDragScroll:t=>e.onDragScroll(t.x),onWheelScroll:(t,n)=>{if(o.viewport){let r=o.viewport.scrollLeft+t.deltaX;e.onWheelScroll(r),jo(r,n)&&t.preventDefault()}},onResize:()=>{l.current&&o.viewport&&s&&n({content:o.viewport.scrollWidth,viewport:o.viewport.offsetWidth,scrollbar:{size:l.current.clientWidth,paddingStart:Mo(s.paddingLeft),paddingEnd:Mo(s.paddingRight)}})}})};Lo.displayName=`@mantine/core/ScrollAreaScrollbarX`;function Ro(e){let{sizes:t,onSizesChange:n,style:r,ref:i,...a}=e,o=yo(),[s,c]=(0,P.useState)(),l=(0,P.useRef)(null),u=La(i,l,o.onScrollbarYChange);return(0,P.useEffect)(()=>{l.current&&c(window.getComputedStyle(l.current))},[]),(0,F.jsx)(Io,{...a,"data-orientation":`vertical`,ref:u,sizes:t,style:{"--sa-thumb-height":`${Eo(t)}px`,...r},onThumbPointerDown:t=>e.onThumbPointerDown(t.y),onDragScroll:t=>e.onDragScroll(t.y),onWheelScroll:(t,n)=>{if(o.viewport){let r=o.viewport.scrollTop+t.deltaY;e.onWheelScroll(r),jo(r,n)&&t.preventDefault()}},onResize:()=>{l.current&&o.viewport&&s&&n({content:o.viewport.scrollHeight,viewport:o.viewport.offsetHeight,scrollbar:{size:l.current.clientHeight,paddingStart:Mo(s.paddingTop),paddingEnd:Mo(s.paddingBottom)}})}})}Ro.displayName=`@mantine/core/ScrollAreaScrollbarY`;function zo(e){let{orientation:t=`vertical`,...n}=e,{dir:r}=I(),i=yo(),a=(0,P.useRef)(null),o=(0,P.useRef)(0),[s,c]=(0,P.useState)({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),l=To(s.viewport,s.content),u={...n,sizes:s,onSizesChange:c,hasThumb:l>0&&l<1,onThumbChange:e=>{a.current=e},onThumbPointerUp:()=>{o.current=0},onThumbPointerDown:e=>{o.current=e}},d=(e,t)=>Ao(e,o.current,s,t);return t===`horizontal`?(0,F.jsx)(Lo,{...u,onThumbPositionChange:()=>{if(i.viewport&&a.current){let e=i.viewport.scrollLeft,t=ko(e,s,r);a.current.style.transform=`translate3d(${t}px, 0, 0)`}},onWheelScroll:e=>{i.viewport&&(i.viewport.scrollLeft=e)},onDragScroll:e=>{i.viewport&&(i.viewport.scrollLeft=d(e,r))}}):t===`vertical`?(0,F.jsx)(Ro,{...u,onThumbPositionChange:()=>{if(i.viewport&&a.current){let e=i.viewport.scrollTop,t=ko(e,s);s.scrollbar.size===0?a.current.style.setProperty(`--thumb-opacity`,`0`):a.current.style.setProperty(`--thumb-opacity`,`1`),a.current.style.transform=`translate3d(0, ${t}px, 0)`}},onWheelScroll:e=>{i.viewport&&(i.viewport.scrollTop=e)},onDragScroll:e=>{i.viewport&&(i.viewport.scrollTop=d(e))}}):null}zo.displayName=`@mantine/core/ScrollAreaScrollbarVisible`;function Bo(e){let t=yo(),{forceMount:n,...r}=e,[i,a]=(0,P.useState)(!1),o=e.orientation===`horizontal`,s=ya(()=>{if(t.viewport){let e=t.viewport.offsetWidth{let{scrollArea:e}=r,t=0;if(e){let n=()=>{window.clearTimeout(t),a(!0)},i=()=>{t=window.setTimeout(()=>a(!1),r.scrollHideDelay)};return e.addEventListener(`pointerenter`,n),e.addEventListener(`pointerleave`,i),()=>{window.clearTimeout(t),e.removeEventListener(`pointerenter`,n),e.removeEventListener(`pointerleave`,i)}}},[r.scrollArea,r.scrollHideDelay]),t||i?(0,F.jsx)(Bo,{"data-state":i?`visible`:`hidden`,...n}):null}Vo.displayName=`@mantine/core/ScrollAreaScrollbarHover`;function Ho(e){let{forceMount:t,...n}=e,r=yo(),i=e.orientation===`horizontal`,[a,o]=(0,P.useState)(`hidden`),s=ya(()=>o(`idle`),100);return(0,P.useEffect)(()=>{if(a===`idle`){let e=window.setTimeout(()=>o(`hidden`),r.scrollHideDelay);return()=>window.clearTimeout(e)}},[a,r.scrollHideDelay]),(0,P.useEffect)(()=>{let{viewport:e}=r,t=i?`scrollLeft`:`scrollTop`;if(e){let n=e[t],r=()=>{let r=e[t];n!==r&&(o(`scrolling`),s()),n=r};return e.addEventListener(`scroll`,r),()=>e.removeEventListener(`scroll`,r)}},[r.viewport,i,s]),t||a!==`hidden`?(0,F.jsx)(zo,{"data-state":a===`hidden`?`hidden`:`visible`,...n,onPointerEnter:No(e.onPointerEnter,()=>o(`interacting`)),onPointerLeave:No(e.onPointerLeave,()=>o(`idle`))}):null}function Uo(e){let{forceMount:t,...n}=e,r=yo(),{onScrollbarXEnabledChange:i,onScrollbarYEnabledChange:a}=r,o=e.orientation===`horizontal`;return(0,P.useEffect)(()=>(o?i(!0):a(!0),()=>{o?i(!1):a(!1)}),[o,i,a]),r.type===`hover`?(0,F.jsx)(Vo,{...n,forceMount:t}):r.type===`scroll`?(0,F.jsx)(Ho,{...n,forceMount:t}):r.type===`auto`?(0,F.jsx)(Bo,{...n,forceMount:t}):r.type===`always`?(0,F.jsx)(zo,{...n}):null}Uo.displayName=`@mantine/core/ScrollAreaScrollbar`;function Wo(e,t=()=>{}){let n={left:e.scrollLeft,top:e.scrollTop},r=0;return(function i(){let a={left:e.scrollLeft,top:e.scrollTop},o=n.left!==a.left,s=n.top!==a.top;(o||s)&&t(),n=a,r=window.requestAnimationFrame(i)})(),()=>window.cancelAnimationFrame(r)}function Go(e){let{style:t,ref:n,...r}=e,i=yo(),a=Fo(),{onThumbPositionChange:o}=a,s=La(n,a.onThumbChange),c=(0,P.useRef)(void 0),l=ya(()=>{c.current&&=(c.current(),void 0)},100);return(0,P.useEffect)(()=>{let{viewport:e}=i;if(e){let t=()=>{if(l(),!c.current){let t=Wo(e,o);c.current=t,o()}};return o(),e.addEventListener(`scroll`,t),()=>e.removeEventListener(`scroll`,t)}},[i.viewport,l,o]),(0,F.jsx)(`div`,{"data-state":a.hasThumb?`visible`:`hidden`,...r,ref:s,style:{width:`var(--sa-thumb-width)`,height:`var(--sa-thumb-height)`,...t},onPointerDownCapture:No(e.onPointerDownCapture,e=>{let t=e.target.getBoundingClientRect(),n=e.clientX-t.left,r=e.clientY-t.top;a.onThumbPointerDown({x:n,y:r})}),onPointerUp:No(e.onPointerUp,a.onThumbPointerUp)})}Go.displayName=`@mantine/core/ScrollAreaThumb`;function Ko(e){let{forceMount:t,...n}=e,r=Fo();return t||r.hasThumb?(0,F.jsx)(Go,{...n}):null}Ko.displayName=`@mantine/core/ScrollAreaThumb`;function qo({children:e,style:t,ref:n,onWheel:r,...i}){let a=yo(),o=La(n,a.onViewportChange),s=e=>{if(r?.(e),a.scrollbarXEnabled&&a.viewport&&e.shiftKey){let{scrollTop:t,scrollHeight:n,clientHeight:r,scrollWidth:i,clientWidth:o}=a.viewport,s=t<1,c=t>=n-r-1;i>o&&(s||c)&&e.stopPropagation()}};return(0,F.jsx)(N,{...i,ref:o,onWheel:s,"data-scrollarea-viewport":!0,style:{overflowX:a.scrollbarXEnabled?`scroll`:`hidden`,overflowY:a.scrollbarYEnabled?`scroll`:`hidden`,...t},children:(0,F.jsx)(`div`,{...a.getStyles(`content`),ref:a.onContentChange,children:e})})}qo.displayName=`@mantine/core/ScrollAreaViewport`;var Jo={root:`m_d57069b5`,content:`m_b1336c6`,viewport:`m_c0783ff9`,viewportInner:`m_f8f631dd`,scrollbar:`m_c44ba933`,thumb:`m_d8b5e363`,corner:`m_21657268`};function Yo(){return typeof window<`u`}function Xo(e){return $o(e)?(e.nodeName||``).toLowerCase():`#document`}function Zo(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Qo(e){return(($o(e)?e.ownerDocument:e.document)||window.document)?.documentElement}function $o(e){return Yo()?e instanceof Node||e instanceof Zo(e).Node:!1}function es(e){return Yo()?e instanceof Element||e instanceof Zo(e).Element:!1}function ts(e){return Yo()?e instanceof HTMLElement||e instanceof Zo(e).HTMLElement:!1}function ns(e){return!Yo()||typeof ShadowRoot>`u`?!1:e instanceof ShadowRoot||e instanceof Zo(e).ShadowRoot}function rs(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=ms(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&i!==`inline`&&i!==`contents`}function is(e){return/^(table|td|th)$/.test(Xo(e))}function as(e){try{if(e.matches(`:popover-open`))return!0}catch{}try{return e.matches(`:modal`)}catch{return!1}}var os=/transform|translate|scale|rotate|perspective|filter/,ss=/paint|layout|strict|content/,cs=e=>!!e&&e!==`none`,ls;function us(e){let t=es(e)?ms(e):e;return cs(t.transform)||cs(t.translate)||cs(t.scale)||cs(t.rotate)||cs(t.perspective)||!fs()&&(cs(t.backdropFilter)||cs(t.filter))||os.test(t.willChange||``)||ss.test(t.contain||``)}function ds(e){let t=gs(e);for(;ts(t)&&!ps(t);){if(us(t))return t;if(as(t))return null;t=gs(t)}return null}function fs(){return ls??=typeof CSS<`u`&&CSS.supports&&CSS.supports(`-webkit-backdrop-filter`,`none`),ls}function ps(e){return/^(html|body|#document)$/.test(Xo(e))}function ms(e){return Zo(e).getComputedStyle(e)}function hs(e){return es(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function gs(e){if(Xo(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||ns(e)&&e.host||Qo(e);return ns(t)?t.host:t}function _s(e){let t=gs(e);return ps(t)?(e.ownerDocument||e).body:ts(t)&&rs(t)?t:_s(t)}function vs(e,t,n){t===void 0&&(t=[]),n===void 0&&(n=!0);let r=_s(e),i=r===e.ownerDocument?.body,a=Zo(r);if(i){let e=ys(a);return t.concat(a,a.visualViewport||[],rs(r)?r:[],e&&n?vs(e):[])}return t.concat(r,vs(r,[],n))}function ys(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}var bs=[`top`,`right`,`bottom`,`left`],xs=Math.min,Ss=Math.max,Cs=Math.round,ws=Math.floor,Ts=e=>({x:e,y:e}),Es={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function Ds(e,t,n){return Ss(e,xs(t,n))}function Os(e,t){return typeof e==`function`?e(t):e}function ks(e){return e.split(`-`)[0]}function As(e){return e.split(`-`)[1]}function js(e){return e===`x`?`y`:`x`}function Ms(e){return e===`y`?`height`:`width`}function Ns(e){let t=e[0];return t===`t`||t===`b`?`y`:`x`}function Ps(e){return js(Ns(e))}function Fs(e,t,n){n===void 0&&(n=!1);let r=As(e),i=Ps(e),a=Ms(i),o=i===`x`?r===(n?`end`:`start`)?`right`:`left`:r===`start`?`bottom`:`top`;return t.reference[a]>t.floating[a]&&(o=Ws(o)),[o,Ws(o)]}function Is(e){let t=Ws(e);return[Ls(e),t,Ls(t)]}function Ls(e){return e.includes(`start`)?e.replace(`start`,`end`):e.replace(`end`,`start`)}var Rs=[`left`,`right`],zs=[`right`,`left`],Bs=[`top`,`bottom`],Vs=[`bottom`,`top`];function Hs(e,t,n){switch(e){case`top`:case`bottom`:return n?t?zs:Rs:t?Rs:zs;case`left`:case`right`:return t?Bs:Vs;default:return[]}}function Us(e,t,n,r){let i=As(e),a=Hs(ks(e),n===`start`,r);return i&&(a=a.map(e=>e+`-`+i),t&&(a=a.concat(a.map(Ls)))),a}function Ws(e){let t=ks(e);return Es[t]+e.slice(t.length)}function Gs(e){return{top:e.top??0,right:e.right??0,bottom:e.bottom??0,left:e.left??0}}function Ks(e){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:Gs(e)}function qs(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function Js(){let e=navigator.userAgentData;return e!=null&&e.platform?e.platform:navigator.platform}function Ys(){let e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(e=>{let{brand:t,version:n}=e;return t+`/`+n}).join(` `):navigator.userAgent}function Xs(){return/apple/i.test(navigator.vendor)}function Zs(){return Js().toLowerCase().startsWith(`mac`)&&!navigator.maxTouchPoints}function Qs(){return Ys().includes(`jsdom/`)}var $s=`data-floating-ui-focusable`,ec=`input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])`;function tc(e){let t=e.activeElement;for(;((n=t)==null||(n=n.shadowRoot)==null?void 0:n.activeElement)!=null;){var n;t=t.shadowRoot.activeElement}return t}function nc(e,t){if(!e||!t)return!1;let n=t.getRootNode==null?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&ns(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function rc(e){return`composedPath`in e?e.composedPath()[0]:e.target}function ic(e,t){if(t==null)return!1;if(`composedPath`in e)return e.composedPath().includes(t);let n=e;return n.target!=null&&t.contains(n.target)}function ac(e){return e.matches(`html,body`)}function oc(e){return e?.ownerDocument||document}function sc(e){return ts(e)&&e.matches(ec)}function cc(e){if(!e||Qs())return!0;try{return e.matches(`:focus-visible`)}catch{return!0}}function lc(e){return e?e.hasAttribute($s)?e:e.querySelector(`[data-floating-ui-focusable]`)||e:null}function uc(e,t,n){return n===void 0&&(n=!0),e.filter(e=>e.parentId===t&&(!n||e.context?.open)).flatMap(t=>[t,...uc(e,t.id,n)])}function dc(e){return`nativeEvent`in e}function fc(e,t){let n=[`mouse`,`pen`];return t||n.push(``,void 0),n.includes(e)}var pc=typeof document<`u`?P.useLayoutEffect:function(){},mc={...P};function hc(e){let t=P.useRef(e);return pc(()=>{t.current=e}),t}var gc=mc.useInsertionEffect||(e=>e());function _c(e){let t=P.useRef(()=>{});return gc(()=>{t.current=e}),P.useCallback(function(){var e=[...arguments];return t.current==null?void 0:t.current(...e)},[])}function vc(e,t,n){let{reference:r,floating:i}=e,a=Ns(t),o=Ps(t),s=Ms(o),c=ks(t),l=a===`y`,u=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,f=r[s]/2-i[s]/2,p;switch(c){case`top`:p={x:u,y:r.y-i.height};break;case`bottom`:p={x:u,y:r.y+r.height};break;case`right`:p={x:r.x+r.width,y:d};break;case`left`:p={x:r.x-i.width,y:d};break;default:p={x:r.x,y:r.y}}let m=As(t);return m&&(p[o]+=f*(m===`end`?1:-1)*(n&&l?-1:1)),p}async function yc(e,t){t===void 0&&(t={});let{x:n,y:r,platform:i,rects:a,elements:o,strategy:s}=e,{boundary:c=`clippingAncestors`,rootBoundary:l=`viewport`,elementContext:u=`floating`,altBoundary:d=!1,padding:f=0}=Os(t,e),p=Ks(f),m=o[d?u===`floating`?`reference`:`floating`:u],h=qs(await i.getClippingRect({element:await(i.isElement==null?void 0:i.isElement(m))??!0?m:m.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(o.floating)),boundary:c,rootBoundary:l,strategy:s})),g=u===`floating`?{x:n,y:r,width:a.floating.width,height:a.floating.height}:a.reference,_=await(i.getOffsetParent==null?void 0:i.getOffsetParent(o.floating)),v=await(i.isElement==null?void 0:i.isElement(_))&&await(i.getScale==null?void 0:i.getScale(_))||{x:1,y:1},y=qs(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:g,offsetParent:_,strategy:s}):g);return{top:(h.top-y.top+p.top)/v.y,bottom:(y.bottom-h.bottom+p.bottom)/v.y,left:(h.left-y.left+p.left)/v.x,right:(y.right-h.right+p.right)/v.x}}var bc=50,xc=async(e,t,n)=>{let{placement:r=`bottom`,strategy:i=`absolute`,middleware:a=[],platform:o}=n,s=o.detectOverflow?o:{...o,detectOverflow:yc},c=await(o.isRTL==null?void 0:o.isRTL(t)),l=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=vc(l,r,c),f=r,p=0,m={};for(let n=0;n({name:`arrow`,options:e,async fn(t){let{x:n,y:r,placement:i,rects:a,platform:o,elements:s,middlewareData:c}=t,{element:l,padding:u=0}=Os(e,t)||{};if(l==null)return{};let d=Ks(u),f={x:n,y:r},p=Ps(i),m=Ms(p),h=await o.getDimensions(l),g=p===`y`,_=g?`top`:`left`,v=g?`bottom`:`right`,y=g?`clientHeight`:`clientWidth`,b=a.reference[m]+a.reference[p]-f[p]-a.floating[m],x=f[p]-a.reference[p],S=await(o.getOffsetParent==null?void 0:o.getOffsetParent(l)),C=S?S[y]:0;(!C||!await(o.isElement==null?void 0:o.isElement(S)))&&(C=s.floating[y]||a.floating[m]);let w=b/2-x/2,T=C/2-h[m]/2-1,E=xs(d[_],T),D=xs(d[v],T),O=C-h[m]-D,k=C/2-h[m]/2+w,ee=Ds(E,k,O),te=!c.arrow&&As(i)!=null&&k!==ee&&a.reference[m]/2-(ke<=0)){let e=(i.flip?.index||0)+1,t=S[e];if(t&&(u!==`alignment`||_===Ns(t)||T.every(e=>Ns(e.placement)!==_||e.overflows[0]>0)))return{data:{index:e,overflows:T},reset:{placement:t}};let n=T.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0]?.placement;if(!n)switch(f){case`bestFit`:{let e=T.filter(e=>{if(x){let t=Ns(e.placement);return t===_||t===`y`}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]?.[0];e&&(n=e);break}case`initialPlacement`:n=o}if(r!==n)return{reset:{placement:n}}}return{}}}};function wc(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Tc(e){return bs.some(t=>e[t]>=0)}var Ec=function(e){return e===void 0&&(e={}),{name:`hide`,options:e,async fn(t){let{rects:n,platform:r}=t,{strategy:i=`referenceHidden`,...a}=Os(e,t);switch(i){case`referenceHidden`:{let e=wc(await r.detectOverflow(t,{...a,elementContext:`reference`}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:Tc(e)}}}case`escaped`:{let e=wc(await r.detectOverflow(t,{...a,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:Tc(e)}}}default:return{}}}}};function Dc(e){let t=xs(...e.map(e=>e.left)),n=xs(...e.map(e=>e.top)),r=Ss(...e.map(e=>e.right)),i=Ss(...e.map(e=>e.bottom));return{x:t,y:n,width:r-t,height:i-n}}function Oc(e){let t=e.slice().sort((e,t)=>e.y-t.y),n=[],r=null;for(let e=0;er.height/2?n.push([i]):n[n.length-1].push(i),r=i}return n.map(e=>qs(Dc(e)))}var kc=function(e){return e===void 0&&(e={}),{name:`inline`,options:e,async fn(t){let{placement:n,elements:r,rects:i,platform:a,strategy:o}=t,{padding:s=2,x:c,y:l}=Os(e,t),u=Array.from(await(a.getClientRects==null?void 0:a.getClientRects(r.reference))||[]);if(!u.length)return{};let d=Oc(u),f=qs(Dc(u)),p=Ks(s);function m(){if(d.length===2&&(d[0].left>d[1].right||d[1].left>d[0].right)&&c!=null&&l!=null)return d.find(e=>c>e.left-p.left&&ce.top-p.top&&l=2){if(Ns(n)===`y`){let e=d[0],t=d[d.length-1],r=ks(n)===`top`,i=e.top,a=t.bottom,o=r?e.left:t.left;return qs({x:o,y:i,width:(r?e.right:t.right)-o,height:a-i})}let e=ks(n)===`left`,t=Ss(...d.map(e=>e.right)),r=xs(...d.map(e=>e.left)),i=d.filter(n=>e?n.left===r:n.right===t),a=i[0].top,o=i[i.length-1].bottom;return qs({x:r,y:a,width:t-r,height:o-a})}return f}let h=await a.getElementRects({reference:{getBoundingClientRect:m},floating:r.floating,strategy:o});return i.reference.x!==h.reference.x||i.reference.y!==h.reference.y||i.reference.width!==h.reference.width||i.reference.height!==h.reference.height?{reset:{rects:h}}:{}}}},Ac=new Set([`left`,`top`]);async function jc(e,t){let{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=ks(n),s=As(n),c=Ns(n)===`y`,l=Ac.has(o)?-1:1,u=a&&c?-1:1,d=Os(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:m}=typeof d==`number`?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof m==`number`&&(p=s===`end`?m*-1:m),c?{x:p*u,y:f*l}:{x:f*l,y:p*u}}var Mc=function(e){return e===void 0&&(e=0),{name:`offset`,options:e,async fn(t){var n;let{x:r,y:i,placement:a,middlewareData:o}=t,s=await jc(t,e);return a===o.offset?.placement&&(n=o.arrow)!=null&&n.alignmentOffset?{}:{x:r+s.x,y:i+s.y,data:{...s,placement:a}}}}},Nc=function(e){return e===void 0&&(e={}),{name:`shift`,options:e,async fn(t){let{x:n,y:r,placement:i,platform:a}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:c={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=Os(e,t),u={x:n,y:r},d=await a.detectOverflow(t,l),f=Ns(i),p=js(f),m=u[p],h=u[f],g=(e,t)=>Ds(t+d[e===`y`?`top`:`left`],t,t-d[e===`y`?`bottom`:`right`]);o&&(m=g(p,m)),s&&(h=g(f,h));let _=c.fn({...t,[p]:m,[f]:h});return{..._,data:{x:_.x-n,y:_.y-r,enabled:{[p]:o,[f]:s}}}}}},Pc=function(e){return e===void 0&&(e={}),{options:e,fn(t){let{x:n,y:r,placement:i,rects:a,middlewareData:o}=t,{offset:s=0,mainAxis:c=!0,crossAxis:l=!0}=Os(e,t),u={x:n,y:r},d=Ns(i),f=js(d),p=u[f],m=u[d],h=Os(s,t),g=typeof h==`number`?{mainAxis:h,crossAxis:0}:{mainAxis:h.mainAxis??0,crossAxis:h.crossAxis??0};if(c){let e=f===`y`?`height`:`width`,t=a.reference[f]-a.floating[e]+g.mainAxis,n=a.reference[f]+a.reference[e]-g.mainAxis;pn&&(p=n)}if(l){let e=f===`y`?`width`:`height`,t=Ac.has(ks(i)),n=a.reference[d]-a.floating[e]+(t&&o.offset?.[d]||0)+(t?0:g.crossAxis),r=a.reference[d]+a.reference[e]+(t?0:o.offset?.[d]||0)-(t?g.crossAxis:0);mr&&(m=r)}return{[f]:p,[d]:m}}}},Fc=function(e){return e===void 0&&(e={}),{name:`size`,options:e,async fn(t){let{placement:n,rects:r,platform:i,elements:a}=t,{apply:o=()=>{},...s}=Os(e,t),c=await i.detectOverflow(t,s),l=ks(n),u=As(n),d=Ns(n)===`y`,{width:f,height:p}=r.floating,m,h;l===`top`||l===`bottom`?(m=l,h=u===(await(i.isRTL==null?void 0:i.isRTL(a.floating))?`start`:`end`)?`left`:`right`):(h=l,m=u===`end`?`top`:`bottom`);let g=p-c.top-c.bottom,_=f-c.left-c.right,v=xs(p-c[m],g),y=xs(f-c[h],_),b=t.middlewareData.shift,x=!b,S=v,C=y;b!=null&&b.enabled.x&&(C=_),b!=null&&b.enabled.y&&(S=g),x&&!u&&(d?C=f-2*Ss(c.left,c.right):S=p-2*Ss(c.top,c.bottom)),await o({...t,availableWidth:C,availableHeight:S});let w=await i.getDimensions(a.floating);return f!==w.width||p!==w.height?{reset:{rects:!0}}:{}}}};function Ic(e){let t=ms(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=ts(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=Cs(n)!==a||Cs(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function Lc(e){return es(e)?e:e.contextElement}function Rc(e){let t=Lc(e);if(!ts(t))return Ts(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:a}=Ic(t),o=(a?Cs(n.width):n.width)/r,s=(a?Cs(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}var zc=Ts(0);function Bc(e){let t=Zo(e);return!fs()||!t.visualViewport?zc:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Vc(e,t,n){return t===void 0&&(t=!1),!!n&&t&&n===Zo(e)}function Hc(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=Lc(e),o=Ts(1);t&&(r?es(r)&&(o=Rc(r)):o=Rc(e));let s=Vc(a,n,r)?Bc(a):Ts(0),c=(i.left+s.x)/o.x,l=(i.top+s.y)/o.y,u=i.width/o.x,d=i.height/o.y;if(a&&r){let e=Zo(a),t=es(r)?Zo(r):r,n=e,i=ys(n);for(;i&&t!==n;){let e=Rc(i),t=i.getBoundingClientRect(),r=ms(i),a=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,l*=e.y,u*=e.x,d*=e.y,c+=a,l+=o,n=Zo(i),i=ys(n)}}return qs({width:u,height:d,x:c,y:l})}function Uc(e,t){let n=hs(e).scrollLeft;return t?t.left+n:Hc(Qo(e)).left+n}function Wc(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-Uc(e,n),y:n.top+t.scrollTop}}function Gc(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a=i===`fixed`,o=Qo(r),s=t?as(t.floating):!1;if(r===o||s&&a)return n;let c={scrollLeft:0,scrollTop:0},l=Ts(1),u=Ts(0),d=ts(r);if((d||!a)&&((Xo(r)!==`body`||rs(o))&&(c=hs(r)),d)){let e=Hc(r);l=Rc(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}let f=o&&!d&&!a?Wc(o,c):Ts(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x+f.x,y:n.y*l.y-c.scrollTop*l.y+u.y+f.y}}function Kc(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function qc(e){let t=hs(e),n=e.ownerDocument.body,r=Ss(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),i=Ss(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight),a=-t.scrollLeft+Uc(e),o=-t.scrollTop;return ms(n).direction===`rtl`&&(a+=Ss(e.clientWidth,n.clientWidth)-r),{width:r,height:i,x:a,y:o}}var Jc=25;function Yc(e,t,n){n===void 0&&(n=`viewport`);let r=n===`layoutViewport`,i=Zo(e),a=Qo(e),o=i.visualViewport,s=a.clientWidth,c=a.clientHeight,l=0,u=0;if(o){let e=!fs()||t===`fixed`;r?e||(l=-o.offsetLeft,u=-o.offsetTop):(s=o.width,c=o.height,e&&(l=o.offsetLeft,u=o.offsetTop))}if(Uc(a)<=0){let e=a.ownerDocument,t=e.body,n=getComputedStyle(t),r=e.compatMode===`CSS1Compat`&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,i=Math.abs(a.clientWidth-t.clientWidth-r),o=getComputedStyle(a).scrollbarGutter===`stable both-edges`?i/2:i;o<=Jc&&(s-=o)}return{width:s,height:c,x:l,y:u}}function Xc(e,t){let n=Hc(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=Rc(e);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}function Zc(e,t,n){let r;if(t===`viewport`||t===`layoutViewport`)r=Yc(e,n,t);else if(t===`document`)r=qc(Qo(e));else if(es(t))r=Xc(t,n);else{let n=Bc(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return qs(r)}function Qc(e,t){let n=t.get(e);if(n)return n;let r=vs(e,[],!1).filter(e=>es(e)&&Xo(e)!==`body`),i=null,a=ms(e).position===`fixed`,o=a?gs(e):e;for(;es(o)&&!ps(o);){let e=ms(o),t=us(o),n=i?i.position:a?`fixed`:``;!t&&(n===`fixed`||n===`absolute`&&e.position===`static`)?r=r.filter(e=>e!==o):i=e,o=gs(o)}return t.set(e,r),r}function $c(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[...n===`clippingAncestors`?as(t)?[]:Qc(t,this._c):[].concat(n),r],o=Zc(t,a[0],i),s=o.top,c=o.right,l=o.bottom,u=o.left;for(let e=1;e{s(!1,1e-7)},1e3)}y=!1}try{r=new IntersectionObserver(b,{...v,root:a.ownerDocument})}catch{r=new IntersectionObserver(b,v)}r.observe(e)}let c=Zo(e),l=()=>s(n);return c.addEventListener(`resize`,l),s(!0),()=>{c.removeEventListener(`resize`,l),o()}}function ul(e,t,n,r){r===void 0&&(r={});let{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver==`function`,layoutShift:s=typeof IntersectionObserver==`function`,animationFrame:c=!1}=r,l=Lc(e),u=i||a?[...l?vs(l):[],...t?vs(t):[]]:[];u.forEach(e=>{i&&e.addEventListener(`scroll`,n),a&&e.addEventListener(`resize`,n)});let d=l&&s?ll(l,n,a):null,f=-1,p=null;o&&(p=new ResizeObserver(e=>{let[r]=e;r&&r.target===l&&p&&t&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var e;(e=p)==null||e.observe(t)})),n()}),l&&!c&&p.observe(l),t&&p.observe(t));let m,h=c?Hc(e):null;c&&g();function g(){let t=Hc(e);h&&!cl(h,t)&&n(),h=t,m=requestAnimationFrame(g)}return n(),()=>{var e;u.forEach(e=>{i&&e.removeEventListener(`scroll`,n),a&&e.removeEventListener(`resize`,n)}),d?.(),(e=p)==null||e.disconnect(),p=null,c&&cancelAnimationFrame(m)}}var dl=Mc,fl=Nc,pl=Cc,ml=Fc,hl=Ec,gl=Sc,_l=kc,vl=Pc,yl=(e,t,n)=>{let r=new Map,i=n??{},a={...sl,...i.platform,_c:r};return xc(e,t,{...i,platform:a})},bl=typeof document<`u`?P.useLayoutEffect:function(){};function xl(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e==`function`&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e==`object`){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!xl(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){let n=i[r];if(!(n===`_owner`&&e.$$typeof)&&!xl(e[n],t[n]))return!1}return!0}return e!==e&&t!==t}function Sl(e){return typeof window>`u`?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Cl(e,t){let n=Sl(e);return Math.round(t*n)/n}function wl(e){let t=P.useRef(e);return bl(()=>{t.current=e}),t}function Tl(e){e===void 0&&(e={});let{placement:t=`bottom`,strategy:n=`absolute`,middleware:r=[],platform:i,elements:{reference:a,floating:o}={},transform:s=!0,whileElementsMounted:c,open:l}=e,[u,d]=P.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=P.useState(r);xl(f,r)||p(r);let[m,h]=P.useState(null),[g,_]=P.useState(null),v=P.useCallback(e=>{e!==S.current&&(S.current=e,h(e))},[]),y=P.useCallback(e=>{e!==C.current&&(C.current=e,_(e))},[]),b=a||m,x=o||g,S=P.useRef(null),C=P.useRef(null),w=P.useRef(u),T=c!=null,E=wl(c),D=wl(i),O=wl(l),k=P.useCallback(()=>{if(!S.current||!C.current)return;let e={placement:t,strategy:n,middleware:f};D.current&&(e.platform=D.current),yl(S.current,C.current,e).then(e=>{let t={...e,isPositioned:O.current!==!1};ee.current&&!xl(w.current,t)&&(w.current=t,pi.flushSync(()=>{d(t)}))})},[f,t,n,D,O]);bl(()=>{l===!1&&w.current.isPositioned&&(w.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[l]);let ee=P.useRef(!1);bl(()=>(ee.current=!0,()=>{ee.current=!1}),[]),bl(()=>{if(b&&(S.current=b),x&&(C.current=x),b&&x){if(E.current)return E.current(b,x,k);k()}},[b,x,k,E,T]);let te=P.useMemo(()=>({reference:S,floating:C,setReference:v,setFloating:y}),[v,y]),A=P.useMemo(()=>({reference:b,floating:x}),[b,x]),ne=P.useMemo(()=>{let e={position:n,left:0,top:0};if(!A.floating)return e;let t=Cl(A.floating,u.x),r=Cl(A.floating,u.y);return s?{...e,transform:`translate(`+t+`px, `+r+`px)`,...Sl(A.floating)>=1.5&&{willChange:`transform`}}:{position:n,left:t,top:r}},[n,s,A.floating,u.x,u.y]);return P.useMemo(()=>({...u,update:k,refs:te,elements:A,floatingStyles:ne}),[u,k,te,A,ne])}var El=e=>{function t(e){return{}.hasOwnProperty.call(e,`current`)}return{name:`arrow`,options:e,fn(n){let{element:r,padding:i}=typeof e==`function`?e(n):e;return r&&t(r)?r.current==null?{}:gl({element:r.current,padding:i}).fn(n):r?gl({element:r,padding:i}).fn(n):{}}}},Dl=(e,t)=>{let n=dl(e);return{name:n.name,fn:n.fn,options:[e,t]}},Ol=(e,t)=>{let n=fl(e);return{name:n.name,fn:n.fn,options:[e,t]}},kl=(e,t)=>({fn:vl(e).fn,options:[e,t]}),Al=(e,t)=>{let n=pl(e);return{name:n.name,fn:n.fn,options:[e,t]}},jl=(e,t)=>{let n=ml(e);return{name:n.name,fn:n.fn,options:[e,t]}},Ml=(e,t)=>{let n=hl(e);return{name:n.name,fn:n.fn,options:[e,t]}},Nl=(e,t)=>{let n=_l(e);return{name:n.name,fn:n.fn,options:[e,t]}},Pl=(e,t)=>{let n=El(e);return{name:n.name,fn:n.fn,options:[e,t]}};function Fl(e){let t=P.useRef(void 0),n=P.useCallback(t=>{let n=e.map(e=>{if(e!=null){if(typeof e==`function`){let n=e,r=n(t);return typeof r==`function`?r:()=>{n(null)}}return e.current=t,()=>{e.current=null}}});return()=>{n.forEach(e=>e?.())}},e);return P.useMemo(()=>e.every(e=>e==null)?null:e=>{t.current&&=(t.current(),void 0),e!=null&&(t.current=n(e))},e)}var Il=`data-floating-ui-focusable`,Ll=`active`,Rl=`selected`,zl=`ArrowLeft`,Bl=`ArrowRight`,Vl=`ArrowUp`,Hl=`ArrowDown`,Ul=[zl,Bl],Wl=[Vl,Hl];[...Ul,...Wl];var Gl={...P},Kl=!1,ql=0,Jl=()=>`floating-ui-`+Math.random().toString(36).slice(2,6)+ql++;function Yl(){let[e,t]=P.useState(()=>Kl?Jl():void 0);return pc(()=>{e??t(Jl())},[]),P.useEffect(()=>{Kl=!0},[]),e}var Xl=Gl.useId||Yl;function Zl(){let e=new Map;return{emit(t,n){var r;(r=e.get(t))==null||r.forEach(e=>e(n))},on(t,n){e.has(t)||e.set(t,new Set),e.get(t).add(n)},off(t,n){var r;(r=e.get(t))==null||r.delete(n)}}}var Ql=P.createContext(null),$l=P.createContext(null),eu=()=>P.useContext(Ql)?.id||null,tu=()=>P.useContext($l);function nu(e){return`data-floating-ui-`+e}function ru(e){e.current!==-1&&(clearTimeout(e.current),e.current=-1)}var iu=nu(`safe-polygon`);function au(e,t,n){if(n&&!fc(n))return 0;if(typeof e==`number`)return e;if(typeof e==`function`){let n=e();return typeof n==`number`?n:n?.[t]}return e?.[t]}function ou(e){return typeof e==`function`?e():e}function su(e,t){t===void 0&&(t={});let{open:n,onOpenChange:r,dataRef:i,events:a,elements:o}=e,{enabled:s=!0,delay:c=0,handleClose:l=null,mouseOnly:u=!1,restMs:d=0,move:f=!0}=t,p=tu(),m=eu(),h=hc(l),g=hc(c),_=hc(n),v=hc(d),y=P.useRef(),b=P.useRef(-1),x=P.useRef(),S=P.useRef(-1),C=P.useRef(!0),w=P.useRef(!1),T=P.useRef(()=>{}),E=P.useRef(!1),D=_c(()=>{let e=i.current.openEvent?.type;return e?.includes(`mouse`)&&e!==`mousedown`});P.useEffect(()=>{if(!s)return;function e(e){let{open:t}=e;t||(ru(b),ru(S),C.current=!0,E.current=!1)}return a.on(`openchange`,e),()=>{a.off(`openchange`,e)}},[s,a]),P.useEffect(()=>{if(!s||!h.current||!n)return;function e(e){D()&&r(!1,e,`hover`)}let t=oc(o.floating).documentElement;return t.addEventListener(`mouseleave`,e),()=>{t.removeEventListener(`mouseleave`,e)}},[o.floating,n,r,s,h,D]);let O=P.useCallback(function(e,t,n){t===void 0&&(t=!0),n===void 0&&(n=`hover`);let i=au(g.current,`close`,y.current);i&&!x.current?(ru(b),b.current=window.setTimeout(()=>r(!1,e,n),i)):t&&(ru(b),r(!1,e,n))},[g,r]),k=_c(()=>{T.current(),x.current=void 0}),ee=_c(()=>{if(w.current){let e=oc(o.floating).body;e.style.pointerEvents=``,e.removeAttribute(iu),w.current=!1}}),te=_c(()=>i.current.openEvent?[`click`,`mousedown`].includes(i.current.openEvent.type):!1);P.useEffect(()=>{if(!s)return;function e(e){if(ru(b),C.current=!1,u&&!fc(y.current)||ou(v.current)>0&&!au(g.current,`open`))return;let t=au(g.current,`open`,y.current);t?b.current=window.setTimeout(()=>{_.current||r(!0,e,`hover`)},t):n||r(!0,e,`hover`)}function t(e){if(te()){ee();return}T.current();let t=oc(o.floating);if(ru(S),E.current=!1,h.current&&i.current.floatingContext){n||ru(b),x.current=h.current({...i.current.floatingContext,tree:p,x:e.clientX,y:e.clientY,onClose(){ee(),k(),te()||O(e,!0,`safe-polygon`)}});let r=x.current;t.addEventListener(`mousemove`,r),T.current=()=>{t.removeEventListener(`mousemove`,r)};return}(y.current!==`touch`||!nc(o.floating,e.relatedTarget))&&O(e)}function a(e){te()||i.current.floatingContext&&(h.current==null||h.current({...i.current.floatingContext,tree:p,x:e.clientX,y:e.clientY,onClose(){ee(),k(),te()||O(e)}})(e))}function c(){ru(b)}function l(e){te()||O(e,!1)}if(es(o.domReference)){let r=o.domReference,i=o.floating;return n&&r.addEventListener(`mouseleave`,a),f&&r.addEventListener(`mousemove`,e,{once:!0}),r.addEventListener(`mouseenter`,e),r.addEventListener(`mouseleave`,t),i&&(i.addEventListener(`mouseleave`,a),i.addEventListener(`mouseenter`,c),i.addEventListener(`mouseleave`,l)),()=>{n&&r.removeEventListener(`mouseleave`,a),f&&r.removeEventListener(`mousemove`,e),r.removeEventListener(`mouseenter`,e),r.removeEventListener(`mouseleave`,t),i&&(i.removeEventListener(`mouseleave`,a),i.removeEventListener(`mouseenter`,c),i.removeEventListener(`mouseleave`,l))}}},[o,s,e,u,f,O,k,ee,r,n,_,p,g,h,i,te,v]),pc(()=>{var e;if(s&&n&&(e=h.current)!=null&&(e=e.__options)!=null&&e.blockPointerEvents&&D()){w.current=!0;let e=o.floating;if(es(o.domReference)&&e){var t;let n=oc(o.floating).body;n.setAttribute(iu,``);let r=o.domReference,i=p==null||(t=p.nodesRef.current.find(e=>e.id===m))==null||(t=t.context)==null?void 0:t.elements.floating;return i&&(i.style.pointerEvents=``),n.style.pointerEvents=`none`,r.style.pointerEvents=`auto`,e.style.pointerEvents=`auto`,()=>{n.style.pointerEvents=``,r.style.pointerEvents=``,e.style.pointerEvents=``}}}},[s,n,m,o,p,h,D]),pc(()=>{n||(y.current=void 0,E.current=!1,k(),ee())},[n,k,ee]),P.useEffect(()=>()=>{k(),ru(b),ru(S),ee()},[s,o.domReference,k,ee]);let A=P.useMemo(()=>{function e(e){y.current=e.pointerType}return{onPointerDown:e,onPointerEnter:e,onMouseMove(e){let{nativeEvent:t}=e;function i(){!C.current&&!_.current&&r(!0,t,`hover`)}u&&!fc(y.current)||n||ou(v.current)===0||E.current&&e.movementX**2+e.movementY**2<2||(ru(S),y.current===`touch`?i():(E.current=!0,S.current=window.setTimeout(i,ou(v.current))))}}},[u,r,n,_,v]);return P.useMemo(()=>s?{reference:A}:{},[s,A])}var cu=()=>{},lu=P.createContext({delay:0,initialDelay:0,timeoutMs:0,currentId:null,setCurrentId:cu,setState:cu,isInstantPhase:!1}),uu=()=>P.useContext(lu);function du(e){let{children:t,delay:n,timeoutMs:r=0}=e,[i,a]=P.useReducer((e,t)=>({...e,...t}),{delay:n,timeoutMs:r,initialDelay:n,currentId:null,isInstantPhase:!1}),o=P.useRef(null),s=P.useCallback(e=>{a({currentId:e})},[]);return pc(()=>{i.currentId?o.current===null?o.current=i.currentId:i.isInstantPhase||a({isInstantPhase:!0}):(i.isInstantPhase&&a({isInstantPhase:!1}),o.current=null)},[i.currentId,i.isInstantPhase]),(0,F.jsx)(lu.Provider,{value:P.useMemo(()=>({...i,setState:a,setCurrentId:s}),[i,s]),children:t})}function fu(e,t){t===void 0&&(t={});let{open:n,onOpenChange:r,floatingId:i}=e,{id:a,enabled:o=!0}=t,s=a??i,c=uu(),{currentId:l,setCurrentId:u,initialDelay:d,setState:f,timeoutMs:p}=c;return pc(()=>{o&&l&&(f({delay:{open:1,close:au(d,`close`)}}),l!==s&&r(!1))},[o,s,r,f,l,d]),pc(()=>{function e(){r(!1),f({delay:d,currentId:null})}if(o&&l&&!n&&l===s){if(p){let t=window.setTimeout(e,p);return()=>{clearTimeout(t)}}e()}},[o,n,f,l,s,r,d,p]),pc(()=>{o&&(u===cu||!n||u(s))},[o,n,u,s]),c}function pu(e,t){if(!e||!t)return!1;let n=t.getRootNode==null?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&ns(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function mu(e){return`composedPath`in e?e.composedPath()[0]:e.target}var hu={pointerdown:`onPointerDown`,mousedown:`onMouseDown`,click:`onClick`},gu={pointerdown:`onPointerDownCapture`,mousedown:`onMouseDownCapture`,click:`onClickCapture`},_u=e=>({escapeKey:typeof e==`boolean`?e:e?.escapeKey??!1,outsidePress:typeof e==`boolean`?e:e?.outsidePress??!0});function vu(e,t){t===void 0&&(t={});let{open:n,onOpenChange:r,elements:i,dataRef:a}=e,{enabled:o=!0,escapeKey:s=!0,outsidePress:c=!0,outsidePressEvent:l=`pointerdown`,referencePress:u=!1,referencePressEvent:d=`pointerdown`,ancestorScroll:f=!1,bubbles:p,capture:m}=t,h=tu(),g=_c(typeof c==`function`?c:()=>!1),_=typeof c==`function`?g:c,v=P.useRef(!1),{escapeKey:y,outsidePress:b}=_u(p),{escapeKey:x,outsidePress:S}=_u(m),C=P.useRef(!1),w=_c(e=>{if(!n||!o||!s||e.key!==`Escape`||C.current)return;let t=a.current.floatingContext?.nodeId,i=h?uc(h.nodesRef.current,t):[];if(!y&&(e.stopPropagation(),i.length>0)){let e=!0;if(i.forEach(t=>{var n;if((n=t.context)!=null&&n.open&&!t.context.dataRef.current.__escapeKeyBubbles){e=!1;return}}),!e)return}r(!1,dc(e)?e.nativeEvent:e,`escape-key`)}),T=_c(e=>{var t;let n=()=>{var t;w(e),(t=rc(e))==null||t.removeEventListener(`keydown`,n)};(t=rc(e))==null||t.addEventListener(`keydown`,n)}),E=_c(e=>{let t=a.current.insideReactTree;a.current.insideReactTree=!1;let n=v.current;if(v.current=!1,l===`click`&&n||t||typeof _==`function`&&!_(e))return;let o=rc(e),s=`[`+nu(`inert`)+`]`,c=oc(i.floating).querySelectorAll(s),u=es(o)?o:null;for(;u&&!ps(u);){let e=gs(u);if(ps(e)||!es(e))break;u=e}if(c.length&&es(o)&&!ac(o)&&!nc(o,i.floating)&&Array.from(c).every(e=>!nc(u,e)))return;if(ts(o)&&k){let t=ps(o),n=ms(o),r=/auto|scroll/,i=t||r.test(n.overflowX),a=t||r.test(n.overflowY),s=i&&o.clientWidth>0&&o.scrollWidth>o.clientWidth,c=a&&o.clientHeight>0&&o.scrollHeight>o.clientHeight,l=n.direction===`rtl`,u=c&&(l?e.offsetX<=o.offsetWidth-o.clientWidth:e.offsetX>o.clientWidth),d=s&&e.offsetY>o.clientHeight;if(u||d)return}let d=a.current.floatingContext?.nodeId,f=h&&uc(h.nodesRef.current,d).some(t=>ic(e,t.context?.elements.floating));if(ic(e,i.floating)||ic(e,i.domReference)||f)return;let p=h?uc(h.nodesRef.current,d):[];if(p.length>0){let e=!0;if(p.forEach(t=>{var n;if((n=t.context)!=null&&n.open&&!t.context.dataRef.current.__outsidePressBubbles){e=!1;return}}),!e)return}r(!1,e,`outside-press`)}),D=_c(e=>{var t;let n=()=>{var t;E(e),(t=rc(e))==null||t.removeEventListener(l,n)};(t=rc(e))==null||t.addEventListener(l,n)});P.useEffect(()=>{if(!n||!o)return;a.current.__escapeKeyBubbles=y,a.current.__outsidePressBubbles=b;let e=-1;function t(e){r(!1,e,`ancestor-scroll`)}function c(){window.clearTimeout(e),C.current=!0}function u(){e=window.setTimeout(()=>{C.current=!1},fs()?5:0)}let d=oc(i.floating);s&&(d.addEventListener(`keydown`,x?T:w,x),d.addEventListener(`compositionstart`,c),d.addEventListener(`compositionend`,u)),_&&d.addEventListener(l,S?D:E,S);let p=[];return f&&(es(i.domReference)&&(p=vs(i.domReference)),es(i.floating)&&(p=p.concat(vs(i.floating))),!es(i.reference)&&i.reference&&i.reference.contextElement&&(p=p.concat(vs(i.reference.contextElement)))),p=p.filter(e=>e!==d.defaultView?.visualViewport),p.forEach(e=>{e.addEventListener(`scroll`,t)}),()=>{s&&(d.removeEventListener(`keydown`,x?T:w,x),d.removeEventListener(`compositionstart`,c),d.removeEventListener(`compositionend`,u)),_&&d.removeEventListener(l,S?D:E,S),p.forEach(e=>{e.removeEventListener(`scroll`,t)}),window.clearTimeout(e)}},[a,i,s,_,l,n,r,f,o,y,b,w,x,T,E,S,D]),P.useEffect(()=>{a.current.insideReactTree=!1},[a,_,l]);let O=P.useMemo(()=>({onKeyDown:w,...u&&{[hu[d]]:e=>{r(!1,e.nativeEvent,`reference-press`)},...d!==`click`&&{onClick(e){r(!1,e.nativeEvent,`reference-press`)}}}}),[w,r,u,d]),k=P.useMemo(()=>{function e(e){e.button===0&&(v.current=!0)}return{onKeyDown:w,onMouseDown:e,onMouseUp:e,[gu[l]]:()=>{a.current.insideReactTree=!0}}},[w,l,a]);return P.useMemo(()=>o?{reference:O,floating:k}:{},[o,O,k])}function yu(e){let{open:t=!1,onOpenChange:n,elements:r}=e,i=Xl(),a=P.useRef({}),[o]=P.useState(()=>Zl()),s=eu()!=null,[c,l]=P.useState(r.reference),u=_c((e,t,r)=>{a.current.openEvent=e?t:void 0,o.emit(`openchange`,{open:e,event:t,reason:r,nested:s}),n?.(e,t,r)}),d=P.useMemo(()=>({setPositionReference:l}),[]),f=P.useMemo(()=>({reference:c||r.reference||null,floating:r.floating||null,domReference:r.reference}),[c,r.reference,r.floating]);return P.useMemo(()=>({dataRef:a,open:t,onOpenChange:u,elements:f,events:o,floatingId:i,refs:d}),[t,u,f,o,i,d])}function bu(e){let{elements:t,...n}=e===void 0?{}:e,{nodeId:r}=n,i=yu({...n,elements:{reference:t?.reference??null,floating:t?.floating??null}}),a=n.rootContext||i,o=a.elements,[s,c]=P.useState(null),[l,u]=P.useState(null),d=o?.domReference||s,f=P.useRef(null),p=tu();pc(()=>{d&&(f.current=d)},[d]);let m=Tl({...n,elements:{...o,...l&&{reference:l}}}),h=P.useCallback(e=>{let t=es(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),getClientRects:()=>e.getClientRects(),contextElement:e}:e;u(t),m.refs.setReference(t)},[m.refs]),g=P.useCallback(e=>{(es(e)||e===null)&&(f.current=e,c(e)),(es(m.refs.reference.current)||m.refs.reference.current===null||e!==null&&!es(e))&&m.refs.setReference(e)},[m.refs]),_=P.useMemo(()=>({...m.refs,setReference:g,setPositionReference:h,domReference:f}),[m.refs,g,h]),v=P.useMemo(()=>({...m.elements,domReference:d}),[m.elements,d]),y=P.useMemo(()=>({...m,...a,refs:_,elements:v,nodeId:r}),[m,_,v,r,a]);return pc(()=>{a.dataRef.current.floatingContext=y;let e=p?.nodesRef.current.find(e=>e.id===r);e&&(e.context=y)}),P.useMemo(()=>({...m,context:y,refs:_,elements:v}),[m,_,v,y])}function xu(){return Zs()&&Xs()}function Su(e,t){t===void 0&&(t={});let{open:n,onOpenChange:r,events:i,dataRef:a,elements:o}=e,{enabled:s=!0,visibleOnly:c=!0}=t,l=P.useRef(!1),u=P.useRef(-1),d=P.useRef(!0);P.useEffect(()=>{if(!s)return;let e=Zo(o.domReference);function t(){!n&&ts(o.domReference)&&o.domReference===tc(oc(o.domReference))&&(l.current=!0)}function r(){d.current=!0}function i(){d.current=!1}return e.addEventListener(`blur`,t),xu()&&(e.addEventListener(`keydown`,r,!0),e.addEventListener(`pointerdown`,i,!0)),()=>{e.removeEventListener(`blur`,t),xu()&&(e.removeEventListener(`keydown`,r,!0),e.removeEventListener(`pointerdown`,i,!0))}},[o.domReference,n,s]),P.useEffect(()=>{if(!s)return;function e(e){let{reason:t}=e;(t===`reference-press`||t===`escape-key`)&&(l.current=!0)}return i.on(`openchange`,e),()=>{i.off(`openchange`,e)}},[i,s]),P.useEffect(()=>()=>{ru(u)},[]);let f=P.useMemo(()=>({onMouseLeave(){l.current=!1},onFocus(e){if(l.current)return;let t=rc(e.nativeEvent);if(c&&es(t)){if(xu()&&!e.relatedTarget){if(!d.current&&!sc(t))return}else if(!cc(t))return}r(!0,e.nativeEvent,`focus`)},onBlur(e){l.current=!1;let t=e.relatedTarget,n=e.nativeEvent,i=es(t)&&t.hasAttribute(nu(`focus-guard`))&&t.getAttribute(`data-type`)===`outside`;u.current=window.setTimeout(()=>{let e=tc(o.domReference?o.domReference.ownerDocument:document);!t&&e===o.domReference||nc(a.current.floatingContext?.refs.floating.current,e)||nc(o.domReference,e)||i||r(!1,n,`focus`)})}}),[a,o.domReference,r,c]);return P.useMemo(()=>s?{reference:f}:{},[s,f])}function Cu(e,t,n){let r=new Map,i=n===`item`,a=e;if(i&&e){let{[Ll]:t,[Rl]:n,...r}=e;a=r}return{...n===`floating`&&{tabIndex:-1,[Il]:``},...a,...t.map(t=>{let r=t?t[n]:null;return typeof r==`function`?e?r(e):null:r}).concat(e).reduce((e,t)=>(t&&Object.entries(t).forEach(t=>{let[n,a]=t;if(!(i&&[Ll,Rl].includes(n)))if(n.indexOf(`on`)===0){if(r.has(n)||r.set(n,[]),typeof a==`function`){var o;(o=r.get(n))==null||o.push(a),e[n]=function(){var e=[...arguments];return r.get(n)?.map(t=>t(...e)).find(e=>e!==void 0)}}}else e[n]=a}),e),{})}}function wu(e){e===void 0&&(e=[]);let t=e.map(e=>e?.reference),n=e.map(e=>e?.floating),r=e.map(e=>e?.item),i=P.useCallback(t=>Cu(t,e,`reference`),t),a=P.useCallback(t=>Cu(t,e,`floating`),n),o=P.useCallback(t=>Cu(t,e,`item`),r);return P.useMemo(()=>({getReferenceProps:i,getFloatingProps:a,getItemProps:o}),[i,a,o])}var Tu=new Map([[`select`,`listbox`],[`combobox`,`listbox`],[`label`,!1]]);function Eu(e,t){t===void 0&&(t={});let{open:n,elements:r,floatingId:i}=e,{enabled:a=!0,role:o=`dialog`}=t,s=Xl(),c=r.domReference?.id||s,l=P.useMemo(()=>lc(r.floating)?.id||i,[r.floating,i]),u=Tu.get(o)??o,d=eu()!=null,f=P.useMemo(()=>u===`tooltip`||o===`label`?{[`aria-`+(o===`label`?`labelledby`:`describedby`)]:n?l:void 0}:{"aria-expanded":n?`true`:`false`,"aria-haspopup":u===`alertdialog`?`dialog`:u,"aria-controls":n?l:void 0,...u===`listbox`&&{role:`combobox`},...u===`menu`&&{id:c},...u===`menu`&&d&&{role:`menuitem`},...o===`select`&&{"aria-autocomplete":`none`},...o===`combobox`&&{"aria-autocomplete":`list`}},[u,l,d,n,c,o]),p=P.useMemo(()=>{let e={id:l,...u&&{role:u}};return u===`tooltip`||o===`label`?e:{...e,...u===`menu`&&{"aria-labelledby":c}}},[u,l,c,o]),m=P.useCallback(e=>{let{active:t,selected:n}=e,r={role:`option`,...t&&{id:l+`-fui-option`}};switch(o){case`select`:case`combobox`:return{...r,"aria-selected":n}}return{}},[l,o]);return P.useMemo(()=>a?{reference:f,floating:p,item:m}:{},[a,f,p,m])}function Du(e,t,n){return n===void 0&&(n=!0),e.filter(e=>e.parentId===t&&(!n||e.context?.open)).flatMap(t=>[t,...Du(e,t.id,n)])}function Ou(e,t){let[n,r]=e,i=!1,a=t.length;for(let e=0,o=a-1;e=r!=l>=r&&n<=(c-a)*(r-s)/(l-s)+a&&(i=!i)}return i}function ku(e,t){return e[0]>=t.x&&e[0]<=t.x+t.width&&e[1]>=t.y&&e[1]<=t.y+t.height}function Au(e){e===void 0&&(e={});let{buffer:t=.5,blockPointerEvents:n=!1,requireIntent:r=!0}=e,i={current:-1},a=!1,o=null,s=null,c=typeof performance<`u`?performance.now():0;function l(e,t){let n=performance.now(),r=n-c;if(o===null||s===null||r===0)return o=e,s=t,c=n,null;let i=e-o,a=t-s,l=Math.sqrt(i*i+a*a)/r;return o=e,s=t,c=n,l}let u=e=>{let{x:n,y:o,placement:s,elements:c,onClose:u,nodeId:d,tree:f}=e;return function(e){function p(){ru(i),u()}if(ru(i),!c.domReference||!c.floating||s==null||n==null||o==null)return;let{clientX:m,clientY:h}=e,g=[m,h],_=mu(e),v=e.type===`mouseleave`,y=pu(c.floating,_),b=pu(c.domReference,_),x=c.domReference.getBoundingClientRect(),S=c.floating.getBoundingClientRect(),C=s.split(`-`)[0],w=n>S.right-S.width/2,T=o>S.bottom-S.height/2,E=ku(g,x),D=S.width>x.width,O=S.height>x.height,k=(D?x:S).left,ee=(D?x:S).right,te=(O?x:S).top,A=(O?x:S).bottom;if(y&&(a=!0,!v))return;if(b&&(a=!1),b&&!v){a=!0;return}if(v&&es(e.relatedTarget)&&pu(c.floating,e.relatedTarget)||f&&Du(f.nodesRef.current,d).length)return;if(C===`top`&&o>=x.bottom-1||C===`bottom`&&o<=x.top+1||C===`left`&&n>=x.right-1||C===`right`&&n<=x.left+1)return p();let ne=[];switch(C){case`top`:ne=[[k,x.top+1],[k,S.bottom-1],[ee,S.bottom-1],[ee,x.top+1]];break;case`bottom`:ne=[[k,S.top+1],[k,x.bottom-1],[ee,x.bottom-1],[ee,S.top+1]];break;case`left`:ne=[[S.right-1,A],[S.right-1,te],[x.left+1,te],[x.left+1,A]];break;case`right`:ne=[[x.right-1,A],[x.right-1,te],[S.left+1,te],[S.left+1,A]]}function j(e){let[n,r]=e;switch(C){case`top`:return[[D?n+t/2:w?n+t*4:n-t*4,r+t+1],[D?n-t/2:w?n+t*4:n-t*4,r+t+1],[S.left,w||D?S.bottom-t:S.top],[S.right,w?D?S.bottom-t:S.top:S.bottom-t]];case`bottom`:return[[D?n+t/2:w?n+t*4:n-t*4,r-t],[D?n-t/2:w?n+t*4:n-t*4,r-t],[S.left,w||D?S.top+t:S.bottom],[S.right,w?D?S.top+t:S.bottom:S.top+t]];case`left`:{let e=[n+t+1,O?r+t/2:T?r+t*4:r-t*4],i=[n+t+1,O?r-t/2:T?r+t*4:r-t*4];return[[T||O?S.right-t:S.left,S.top],[T?O?S.right-t:S.left:S.right-t,S.bottom],e,i]}case`right`:return[[n-t,O?r+t/2:T?r+t*4:r-t*4],[n-t,O?r-t/2:T?r+t*4:r-t*4],[T||O?S.left+t:S.right,S.top],[T?O?S.left+t:S.right:S.left+t,S.bottom]]}}if(!Ou([m,h],ne)){if(a&&!E)return p();if(!v&&r){let t=l(e.clientX,e.clientY);if(t!==null&&t<.1)return p()}Ou([m,h],j([n,o]))?!a&&r&&(i.current=window.setTimeout(p,40)):p()}}};return u.__options={blockPointerEvents:n},u}var ju={scrollHideDelay:1e3,type:`hover`,scrollbars:`xy`},Mu=k((e,{scrollbarSize:t,overscrollBehavior:n,scrollbars:r})=>{let i=n;return n&&r&&(r===`x`?i=`${n} auto`:r===`y`&&(i=`auto ${n}`)),{root:{"--scrollarea-scrollbar-size":M(t),"--scrollarea-over-scroll-behavior":i}}}),Nu=_(e=>{let t=O(`ScrollArea`,ju,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,scrollbarSize:s,vars:c,type:l,scrollHideDelay:u,viewportProps:d,viewportRef:f,onScrollPositionChange:p,children:m,offsetScrollbars:h,scrollbars:g,onBottomReached:_,onTopReached:v,onLeftReached:y,onRightReached:b,overscrollBehavior:x,startScrollPosition:S,verticalScrollbarPosition:C,attributes:w,...E}=t,[D,k]=(0,P.useState)(!1),[ee,te]=(0,P.useState)(!1),[A,ne]=(0,P.useState)(!1),j=(0,P.useRef)(!0),re=(0,P.useRef)(!1),ie=(0,P.useRef)(!0),ae=(0,P.useRef)(!1),oe=T({name:`ScrollArea`,props:t,classes:Jo,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:w,vars:c,varsResolver:Mu}),se=(0,P.useRef)(null),[ce,le]=(0,P.useState)(null),ue=Fl([f,se,(0,P.useCallback)(e=>{le(t=>t===e?t:e)},[])]);return bo(h===`present`?ce:null,()=>{let e=se.current;e&&(te(e.scrollHeight>e.clientHeight),ne(e.scrollWidth>e.clientWidth))}),Ee(()=>{S&&se.current&&se.current.scrollTo({left:S.x??0,top:S.y??0})},[]),(0,F.jsxs)(wo,{getStyles:oe,type:l===`never`?`always`:l,scrollHideDelay:u,scrollbars:g,...oe(`root`),...E,children:[(0,F.jsx)(qo,{...d,...oe(`viewport`,{style:d?.style}),ref:ue,"data-offset-scrollbars":h===!0?`xy`:h||void 0,"data-scrollbars":g||void 0,"data-vertical-scrollbar-position":C||void 0,"data-horizontal-hidden":h===`present`&&!A?`true`:void 0,"data-vertical-hidden":h===`present`&&!ee?`true`:void 0,onScroll:e=>{d?.onScroll?.(e),p?.({x:e.currentTarget.scrollLeft,y:e.currentTarget.scrollTop});let{scrollTop:t,scrollHeight:n,clientHeight:r,scrollLeft:i,scrollWidth:a,clientWidth:o}=e.currentTarget,s=t-(n-r)>=-.8,c=t===0;s&&!re.current&&_?.(),c&&!j.current&&v?.(),re.current=s,j.current=c;let l=i-(a-o)>=-.8,u=i===0;l&&!ae.current&&b?.(),u&&!ie.current&&y?.(),ae.current=l,ie.current=u},children:m}),(g===`xy`||g===`x`)&&(0,F.jsx)(Uo,{...oe(`scrollbar`),orientation:`horizontal`,"data-vertical-scrollbar-position":C||void 0,"data-hidden":l===`never`||h===`present`&&!A||void 0,forceMount:!0,onMouseEnter:()=>k(!0),onMouseLeave:()=>k(!1),children:(0,F.jsx)(Ko,{...oe(`thumb`)})}),(g===`xy`||g===`y`)&&(0,F.jsx)(Uo,{...oe(`scrollbar`),orientation:`vertical`,"data-vertical-scrollbar-position":C||void 0,"data-hidden":l===`never`||h===`present`&&!ee||void 0,forceMount:!0,onMouseEnter:()=>k(!0),onMouseLeave:()=>k(!1),children:(0,F.jsx)(Ko,{...oe(`thumb`)})}),(0,F.jsx)(So,{...oe(`corner`),"data-vertical-scrollbar-position":C||void 0,"data-hovered":D||void 0,"data-hidden":l===`never`||void 0})]})});Nu.displayName=`@mantine/core/ScrollArea`;var Pu=_(e=>{let{children:t,classNames:n,styles:r,scrollbarSize:i,scrollHideDelay:a,type:o,dir:s,offsetScrollbars:c,overscrollBehavior:l,viewportRef:u,onScrollPositionChange:d,unstyled:f,variant:p,viewportProps:m,scrollbars:h,style:g,vars:_,onBottomReached:v,onTopReached:y,startScrollPosition:b,verticalScrollbarPosition:x,onOverflowChange:S,...C}=O(`ScrollAreaAutosize`,ju,e),w=(0,P.useRef)(null),[T,E]=(0,P.useState)(null),D=Fl([u,w,(0,P.useCallback)(e=>{E(t=>t===e?t:e)},[])]),k=(0,P.useRef)(!1),ee=(0,P.useRef)(!1),te=(0,P.useEffectEvent)(()=>{let e=w.current;if(!e||!S)return;let t=e.scrollHeight>e.clientHeight;t!==k.current&&(ee.current?S(t):(ee.current=!0,t&&S(!0)),k.current=t)});return bo(S?T:null,te),(0,F.jsx)(N,{...C,variant:p,style:[{display:`flex`,overflow:`hidden`},g],children:(0,F.jsx)(N,{style:{display:`flex`,flexDirection:`column`,flex:1,overflow:`hidden`,...h===`y`&&{minWidth:0},...h===`x`&&{minHeight:0},...h===`xy`&&{minWidth:0,minHeight:0},...h===!1&&{minWidth:0,minHeight:0}},children:(0,F.jsx)(Nu,{classNames:n,styles:r,scrollHideDelay:a,scrollbarSize:i,type:o,dir:s,offsetScrollbars:c,overscrollBehavior:l,viewportRef:D,onScrollPositionChange:d,unstyled:f,variant:p,viewportProps:m,vars:_,scrollbars:h,onBottomReached:v,onTopReached:y,startScrollPosition:b,verticalScrollbarPosition:x,"data-autosize":`true`,children:t})})})});Nu.classes=Jo,Nu.varsResolver=Mu,Pu.displayName=`@mantine/core/ScrollAreaAutosize`,Pu.classes=Jo,Nu.Autosize=Pu;var Fu={root:`m_515a97f8`},Iu=_(e=>{let t=O(`VisuallyHidden`,null,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,attributes:c,...l}=t;return(0,F.jsx)(N,{component:`span`,...T({name:`VisuallyHidden`,classes:Fu,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:c})(`root`),...l})});Iu.classes=Fu,Iu.displayName=`@mantine/core/VisuallyHidden`;function Lu(e,t,n,r){return e===`center`||r===`center`?{top:t}:e===`end`?{bottom:n}:e===`start`?{top:n}:{}}function Ru(e,t,n,r,i){return e===`center`||r===`center`?{left:t}:e===`end`?{[i===`ltr`?`right`:`left`]:n}:e===`start`?{[i===`ltr`?`left`:`right`]:n}:{}}var zu={bottom:`borderTopLeftRadius`,left:`borderTopRightRadius`,right:`borderBottomLeftRadius`,top:`borderBottomRightRadius`};function Bu({position:e,arrowSize:t,dir:n}){let[r,i]=e.split(`-`);if(!i)return;let a={width:t,height:t,position:`absolute`};if(r===`bottom`){let e=i===`start`,r=e?n===`ltr`?`left`:`right`:n===`ltr`?`right`:`left`;return{...a,top:-t,[r]:0,clipPath:e===(n===`rtl`)?`polygon(100% 0%, 0% 100%, 100% 100%)`:`polygon(0% 0%, 0% 100%, 100% 100%)`}}if(r===`top`){let e=i===`start`,r=e?n===`ltr`?`left`:`right`:n===`ltr`?`right`:`left`;return{...a,bottom:-t,[r]:0,clipPath:e===(n===`rtl`)?`polygon(0% 0%, 100% 0%, 100% 100%)`:`polygon(0% 0%, 100% 0%, 0% 100%)`}}if(r===`left`)return{...a,right:-t,[i===`start`?`top`:`bottom`]:0,clipPath:i===`start`?`polygon(0% 0%, 100% 0%, 0% 100%)`:`polygon(0% 0%, 0% 100%, 100% 100%)`};if(r===`right`)return{...a,left:-t,[i===`start`?`top`:`bottom`]:0,clipPath:i===`start`?`polygon(0% 0%, 100% 0%, 100% 100%)`:`polygon(100% 0%, 0% 100%, 100% 100%)`}}function Vu({position:e,arrowSize:t,arrowOffset:n,arrowRadius:r,arrowPosition:i,arrowX:a,arrowY:o,dir:s}){if(i===`merge`){let n=Bu({position:e,arrowSize:t,dir:s});if(n)return n}let[c,l=`center`]=e.split(`-`),u={width:t,height:t,transform:`rotate(45deg)`,position:`absolute`,[zu[c]]:r},d=-t/2;return c===`left`?{...u,...Lu(l,o,n,i),right:d,borderLeftColor:`transparent`,borderBottomColor:`transparent`,clipPath:`polygon(100% 0, 0 0, 100% 100%)`}:c===`right`?{...u,...Lu(l,o,n,i),left:d,borderRightColor:`transparent`,borderTopColor:`transparent`,clipPath:`polygon(0 100%, 0 0, 100% 100%)`}:c===`top`?{...u,...Ru(l,a,n,i,s),bottom:d,borderTopColor:`transparent`,borderLeftColor:`transparent`,clipPath:`polygon(0 100%, 100% 100%, 100% 0)`}:c===`bottom`?{...u,...Ru(l,a,n,i,s),top:d,borderBottomColor:`transparent`,borderRightColor:`transparent`,clipPath:`polygon(0 100%, 0 0, 100% 0)`}:{}}function Hu({position:e,dir:t}){let[n,r]=e.split(`-`);if(!r)return;let i=r===`start`&&t===`ltr`||r===`end`&&t===`rtl`;if(n===`bottom`)return i?{borderTopLeftRadius:0}:{borderTopRightRadius:0};if(n===`top`)return i?{borderBottomLeftRadius:0}:{borderBottomRightRadius:0};if(n===`left`)return r===`start`?{borderTopRightRadius:0}:{borderBottomRightRadius:0};if(n===`right`)return r===`start`?{borderTopLeftRadius:0}:{borderBottomLeftRadius:0}}function Uu({position:e,arrowSize:t,arrowOffset:n,arrowRadius:r,arrowPosition:i,visible:a,arrowX:o,arrowY:s,style:c,...l}){let{dir:u}=I();return a?(0,F.jsx)(`div`,{role:`presentation`,...l,style:{...c,...Vu({position:e,arrowSize:t,arrowOffset:n,arrowRadius:r,arrowPosition:i,dir:u,arrowX:o,arrowY:s})}}):null}Uu.displayName=`@mantine/core/FloatingArrow`;function Wu(e,t){if(e===`rtl`&&(t.includes(`right`)||t.includes(`left`))){let[e,n]=t.split(`-`),r=e===`right`?`left`:`right`;return n===void 0?r:`${r}-${n}`}return t}function Gu({open:e,close:t,openDelay:n,closeDelay:r}){let i=(0,P.useRef)(-1),a=(0,P.useRef)(-1),o=()=>{window.clearTimeout(i.current),window.clearTimeout(a.current)};return(0,P.useEffect)(()=>o,[]),{openDropdown:()=>{o(),n===0||n===void 0?e():i.current=window.setTimeout(e,n)},closeDropdown:()=>{o(),r===0||r===void 0?t():a.current=window.setTimeout(t,r)}}}var Ku={root:`m_9814e45f`},qu={zIndex:ua(`modal`)},Ju=k((e,{gradient:t,color:n,backgroundOpacity:r,blur:i,radius:a,zIndex:o})=>({root:{"--overlay-bg":t||(n!==void 0||r!==void 0)&&y(n||`#000`,r??.6)||void 0,"--overlay-filter":i?`blur(${M(i)})`:void 0,"--overlay-radius":a===void 0?void 0:ce(a),"--overlay-z-index":o?.toString()}})),Yu=A(e=>{let t=O(`Overlay`,qu,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,fixed:c,center:l,children:u,radius:d,zIndex:f,gradient:p,blur:m,color:h,backgroundOpacity:g,mod:_,attributes:v,...y}=t;return(0,F.jsx)(N,{...T({name:`Overlay`,props:t,classes:Ku,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:v,vars:s,varsResolver:Ju})(`root`),mod:[{center:l,fixed:c},_],...y,children:u})});Yu.classes=Ku,Yu.varsResolver=Ju,Yu.displayName=`@mantine/core/Overlay`;function Xu(e){let t=document.createElement(`div`);return t.setAttribute(`data-portal`,`true`),typeof e.className==`string`&&t.classList.add(...e.className.split(` `).filter(Boolean)),typeof e.style==`object`&&Object.assign(t.style,e.style),typeof e.id==`string`&&t.setAttribute(`id`,e.id),t}function Zu({target:e,reuseTargetNode:t,...n}){if(e)return typeof e==`string`?document.querySelector(e)||Xu(n):e;if(t){let e=document.querySelector(`[data-mantine-shared-portal-node]`);if(e)return e;let t=Xu(n);return t.setAttribute(`data-mantine-shared-portal-node`,`true`),document.body.appendChild(t),t}return Xu(n)}var Qu={reuseTargetNode:!0},$u=_(e=>{let{children:t,target:n,reuseTargetNode:r,ref:i,...a}=O(`Portal`,Qu,e),[o,s]=(0,P.useState)(!1),c=(0,P.useRef)(null);return Ee(()=>(s(!0),c.current=Zu({target:n,reuseTargetNode:r,...a}),Fa(i,c.current),!n&&!r&&c.current&&document.body.appendChild(c.current),()=>{!n&&!r&&c.current&&document.body.removeChild(c.current)}),[n]),!o||!c.current?null:(0,pi.createPortal)((0,F.jsx)(F.Fragment,{children:t}),c.current)});$u.displayName=`@mantine/core/Portal`;var ed=_(({withinPortal:e=!0,children:t,...n})=>b()===`test`||!e?(0,F.jsx)(F.Fragment,{children:t}):(0,F.jsx)($u,{...n,children:t}));ed.displayName=`@mantine/core/OptionalPortal`;var td={duration:100,transition:`fade`};function nd(e,t){return{...td,...t,...e}}var[rd,id]=ra(`Popover component was not found in the tree`);function ad({childProps:e,disabled:t,opened:n,longPressDelay:r=500,setReference:i,open:a}){let o=(0,P.useRef)(!1),s=(0,P.useRef)(!1),c=(0,P.useRef)(null),l=(0,P.useRef)(t);l.current=t;let u=(e,t,n)=>{i({getBoundingClientRect:()=>({x:e,y:t,width:0,height:0,top:t,left:e,right:e,bottom:t,toJSON:()=>void 0}),contextElement:n}),a()},d=pa(e.onMouseDown,e=>{t||e.button===2&&e.stopPropagation()}),f=pa(e.onContextMenu,e=>{t||e.defaultPrevented||(e.preventDefault(),!s.current&&(u(e.clientX,e.clientY,e.currentTarget),o.current&&(s.current=!0)))}),p=Va(e=>{if(l.current||s.current)return;let t=e,n=t.touches[0]??t.changedTouches[0];n&&(u(n.clientX,n.clientY,c.current),s.current=!0)},{threshold:r,events:[`touch`],cancelOnMove:!0,onStart:e=>{o.current=!0,s.current=!1,c.current=e.currentTarget},onFinish:e=>{o.current=!1,s.current=!1,l.current||e.preventDefault()},onCancel:()=>{o.current=!1,s.current=!1}});return{onContextMenu:f,onMouseDown:d,onTouchStart:pa(e.onTouchStart,p.onTouchStart),onTouchEnd:pa(e.onTouchEnd,p.onTouchEnd),onTouchCancel:pa(e.onTouchCancel,p.onTouchCancel),onTouchMove:pa(e.onTouchMove,p.onTouchMove),style:t?e.style:{...e.style,WebkitTouchCallout:`none`,WebkitUserSelect:`none`,userSelect:`none`},"data-expanded":n?!0:void 0}}function od(e){let{children:t,disabled:n,longPressDelay:r}=O(`PopoverContextMenu`,null,e),i=qa(t);if(!i)throw Error(`Popover.ContextMenu component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported`);let a=id();return(0,P.cloneElement)(i,ad({childProps:i.props,disabled:n||a.disabled,opened:a.opened,longPressDelay:r,setReference:a.reference,open:()=>{a.opened||a.onToggle()}}))}od.displayName=`@mantine/core/PopoverContextMenu`;function sd({children:e,active:t=!0,refProp:n=`ref`,innerRef:r}){let i=La(Na(t),r),a=qa(e);return a?(0,P.cloneElement)(a,{[n]:i}):e}function cd(e){return(0,F.jsx)(Iu,{tabIndex:-1,"data-autofocus":!0,...e})}sd.displayName=`@mantine/core/FocusTrap`,cd.displayName=`@mantine/core/FocusTrapInitialFocus`,sd.InitialFocus=cd;var ld={dropdown:`m_38a85659`,arrow:`m_a31dc6c1`,overlay:`m_3d7bc908`},ud=_(e=>{let t=O(`PopoverDropdown`,null,e),{className:n,style:r,vars:i,children:a,onKeyDownCapture:o,variant:s,classNames:c,styles:l,ref:u,...d}=t,f=id(),{dir:p}=I(),m=f.arrowPosition===`merge`&&f.withArrow?Hu({position:f.placement,dir:p}):void 0,h=Ca({opened:f.opened,shouldReturnFocus:f.returnFocus}),g=f.withRoles?{"aria-labelledby":f.getTargetId(),id:f.getDropdownId(),role:`dialog`,tabIndex:-1}:{},_=La(u,f.floating);return f.disabled?null:(0,F.jsx)(ed,{...f.portalProps,withinPortal:f.withinPortal,children:(0,F.jsx)(Be,{mounted:f.opened,...f.transitionProps,transition:f.transitionProps?.transition||`fade`,duration:f.transitionProps?.duration??150,keepMounted:f.keepMounted,keepMountedMode:f.keepMountedMode,exitDuration:typeof f.transitionProps?.exitDuration==`number`?f.transitionProps.exitDuration:f.transitionProps?.duration,children:e=>(0,F.jsx)(sd,{active:f.trapFocus&&f.opened,innerRef:_,children:(0,F.jsxs)(N,{...g,...d,variant:s,onKeyDownCapture:fa(()=>{f.onClose?.(),f.onDismiss?.()},{active:f.closeOnEscape,onTrigger:h,onKeyDown:o}),"data-position":f.placement,"data-fixed":f.floatingStrategy===`fixed`||void 0,...f.getStyles(`dropdown`,{className:n,props:t,classNames:c,styles:l,style:[{...e,...m,zIndex:f.zIndex,top:f.y??0,left:f.x??0,width:f.width===`target`?void 0:M(f.width),...f.referenceHidden?{display:`none`}:null},f.resolvedStyles?.dropdown,l?.dropdown,r]}),children:[a,(0,F.jsx)(Uu,{ref:f.arrowRef,arrowX:f.arrowX,arrowY:f.arrowY,visible:f.withArrow,position:f.placement,arrowSize:f.arrowSize,arrowRadius:f.arrowRadius,arrowOffset:f.arrowOffset,arrowPosition:f.arrowPosition,...f.getStyles(`arrow`,{props:t,classNames:c,styles:l})})]})})})})});ud.classes=ld,ud.displayName=`@mantine/core/PopoverDropdown`;var dd={refProp:`ref`,popupType:`dialog`},fd=_(e=>{let{children:t,refProp:n,popupType:r,ref:i,...a}=O(`PopoverTarget`,dd,e),o=qa(t);if(!o)throw Error(`Popover.Target component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported`);let s=a,c=id(),l=La(c.reference,Ka(o),i),u=c.withRoles?{"aria-haspopup":r,"aria-expanded":c.opened,"aria-controls":c.opened?c.getDropdownId():void 0,id:c.getTargetId()}:{},d=o.props;return(0,P.cloneElement)(o,{...s,...u,...c.targetProps,className:ae(c.targetProps.className,s.className,d.className),[n]:l,...c.controlled?null:{onClick:e=>{c.onToggle(),d.onClick?.(e)}}})});fd.displayName=`@mantine/core/PopoverTarget`;function pd(e){if(e===void 0)return{shift:!0,flip:!0};let t={...e};return e.shift===void 0&&(t.shift=!0),e.flip===void 0&&(t.flip=!0),t}function md(e,t,n,r){let i=pd(e.middlewares),a=[Dl(e.offset),Ml()];if(i.flip&&!n){let e=typeof i.flip==`boolean`?{}:i.flip,t=r?{fallbackStrategy:`initialPlacement`,...e}:e;a.push(Al(t))}if(i.shift){let t=typeof i.shift==`boolean`?{}:i.shift;a.push(Ol(n=>{let r=n.placement.startsWith(`top`)||n.placement.startsWith(`bottom`);return{limiter:kl(),padding:5,...e.width===`target`&&r?{mainAxis:!1}:null,...t}}))}return i.inline&&a.push(typeof i.inline==`boolean`?Nl():Nl(i.inline)),a.push(Pl({element:e.arrowRef,padding:e.arrowOffset})),(i.size||e.width===`target`)&&a.push(jl({...typeof i.size==`boolean`?{}:i.size,apply({rects:n,availableWidth:r,availableHeight:a,...o}){let s=t().refs.floating.current?.style??{};i.size&&(typeof i.size==`object`&&i.size.apply?i.size.apply({rects:n,availableWidth:r,availableHeight:a,...o}):Object.assign(s,{maxWidth:`${r}px`,maxHeight:`${a}px`})),e.width===`target`&&Object.assign(s,{width:`${n.reference.width}px`})}})),a}function hd(e){let[t,n]=Ra({value:e.opened,defaultValue:e.defaultOpened,finalValue:!1,onChange:e.onChange}),r=(0,P.useRef)(t),[i,a]=(0,P.useState)(null),o=e.preventPositionChangeWhenVisible!==!1,s=(0,P.useRef)(t);t!==s.current&&(s.current=t,t&&i!==null&&a(null));let c=(0,P.useCallback)(()=>a(null),[]),l=()=>{t&&!e.disabled&&n(!1)},u=()=>{e.disabled||n(!t)},d=bu({open:t,strategy:e.strategy,placement:o?i??e.position:e.position,middleware:md(e,()=>d,o&&i!==null,o),whileElementsMounted:e.keepMounted?void 0:ul});(0,P.useEffect)(()=>{if(!e.keepMounted)return;let n=d.refs.reference.current,r=d.refs.floating.current;if(t&&n&&r)return ul(n,r,d.update)},[e.keepMounted,t,d.update,d.elements.reference,d.elements.floating]);let f=(0,P.useRef)(!1);Ee(()=>{if(!t){f.current=!1;return}if(!o||i!==null)return;let e=d.refs.floating.current;if(!(!e||e.offsetHeight===0||e.offsetWidth===0)){if(!f.current){f.current=!0,d.update();return}d.isPositioned&&a(d.placement)}},[o,t,d.isPositioned,d.placement,i,d.update]);let p=(0,P.useRef)(d.placement);return Ee(()=>{p.current!==d.placement&&(p.current=d.placement,e.onPositionChange?.(d.placement))},[d.placement]),Ie(()=>{t!==r.current&&(t?e.onOpen?.():e.onClose?.()),r.current=t},[t,e.onClose,e.onOpen]),{floating:d,controlled:typeof e.opened==`boolean`,opened:t,onClose:l,onToggle:u,resetLockedPlacement:c}}var gd={position:`bottom`,offset:8,transitionProps:{transition:`fade`,duration:150},middlewares:{flip:!0,shift:!0,inline:!1},arrowSize:7,arrowOffset:5,arrowRadius:0,arrowPosition:`side`,closeOnClickOutside:!0,withinPortal:!0,closeOnEscape:!0,trapFocus:!1,withRoles:!0,returnFocus:!1,withOverlay:!1,hideDetached:!0,preventPositionChangeWhenVisible:!0,clickOutsideEvents:[`mousedown`,`touchstart`],zIndex:ua(`popover`),__staticSelector:`Popover`,width:`max-content`},_d=k((e,{radius:t,shadow:n})=>({dropdown:{"--popover-radius":t===void 0?void 0:ce(t),"--popover-shadow":De(n)}}));function vd(e){let t=O(`Popover`,gd,e),{children:n,position:r,offset:i,onPositionChange:a,opened:o,transitionProps:s,onExitTransitionEnd:c,onEnterTransitionEnd:l,width:u,middlewares:d,withArrow:f,arrowSize:p,arrowOffset:m,arrowRadius:h,arrowPosition:g,unstyled:_,classNames:v,styles:y,closeOnClickOutside:x,withinPortal:S,portalProps:C,closeOnEscape:w,clickOutsideEvents:D,trapFocus:k,onClose:ee,onDismiss:te,onOpen:A,onChange:ne,zIndex:j,radius:re,shadow:ie,id:ae,defaultOpened:oe,__staticSelector:se,withRoles:ce,disabled:le,returnFocus:ue,variant:de,keepMounted:fe,keepMountedMode:M,vars:me,floatingStrategy:he,withOverlay:ge,overlayProps:_e,hideDetached:ve,attributes:ye,preventPositionChangeWhenVisible:be,...xe}=t,Se=T({name:se,props:t,classes:ld,classNames:v,styles:y,unstyled:_,attributes:ye,rootSelector:`dropdown`,vars:me,varsResolver:_d}),{resolvedStyles:Ce}=E({classNames:v,styles:y,props:t}),we=(0,P.useRef)(null),[Te,Ee]=(0,P.useState)(null),[De,Oe]=(0,P.useState)(null),{dir:ke}=I(),Ae=b(),je=pe(ae),Me=hd({middlewares:d,width:u,position:Wu(ke,r),offset:typeof i==`number`?i+(f?p/2:0):i,arrowRef:we,arrowOffset:m,onPositionChange:a,opened:o,defaultOpened:oe,onChange:ne,onOpen:A,onClose:ee,onDismiss:te,strategy:he,disabled:le,preventPositionChangeWhenVisible:be,keepMounted:fe});xa(()=>{x&&(Me.onClose(),te?.())},D,[Te,De]);let Ne=(0,P.useCallback)(e=>{Ee(e),Me.floating.refs.setReference(e)},[Me.floating.refs.setReference]),Pe=(0,P.useCallback)(e=>{Oe(e),Me.floating.refs.setFloating(e)},[Me.floating.refs.setFloating]),Fe=(0,P.useCallback)(()=>{s?.onExited?.(),c?.(),Me.resetLockedPlacement()},[s?.onExited,c,Me.resetLockedPlacement]),Ie=(0,P.useCallback)(()=>{s?.onEntered?.(),l?.()},[s?.onEntered,l]);return(0,F.jsxs)(rd,{value:{returnFocus:ue,disabled:le,controlled:Me.controlled,reference:Ne,floating:Pe,x:Me.floating.x,y:Me.floating.y,arrowX:Me.floating?.middlewareData?.arrow?.x,arrowY:Me.floating?.middlewareData?.arrow?.y,opened:Me.opened,arrowRef:we,transitionProps:{...s,onExited:Fe,onEntered:Ie},width:u,withArrow:f,arrowSize:p,arrowOffset:m,arrowRadius:h,arrowPosition:g,placement:Me.floating.placement,trapFocus:k,withinPortal:S,portalProps:C,zIndex:j,radius:re,shadow:ie,closeOnEscape:w,onDismiss:te,onClose:Me.onClose,onToggle:Me.onToggle,getTargetId:()=>je,getDropdownId:()=>`${je}-dropdown`,withRoles:ce,targetProps:xe,__staticSelector:se,classNames:v,styles:y,unstyled:_,variant:de,keepMounted:fe,keepMountedMode:M,getStyles:Se,resolvedStyles:Ce,floatingStrategy:he,referenceHidden:ve&&Ae!==`test`?Me.floating.middlewareData.hide?.referenceHidden:!1},children:[n,ge&&(0,F.jsx)(Be,{transition:`fade`,mounted:Me.opened,duration:s?.duration||250,exitDuration:s?.exitDuration||250,children:e=>(0,F.jsx)(ed,{withinPortal:S,children:(0,F.jsx)(Yu,{..._e,...Se(`overlay`,{className:_e?.className,style:[e,_e?.style]})})})})]})}vd.Target=fd,vd.Dropdown=ud,vd.ContextMenu=od,vd.varsResolver=_d,vd.displayName=`@mantine/core/Popover`,vd.extend=e=>e,vd.withProps=e=>{let t=t=>(0,F.jsx)(vd,{...e,...t});return t.extend=vd.extend,t.displayName=`WithProps(${vd.displayName})`,t};var yd={root:`m_8d3f4000`,icon:`m_8d3afb97`,loader:`m_302b9fb1`,group:`m_1a0f1b21`,groupSection:`m_437b6484`},bd={orientation:`horizontal`},xd=k((e,{borderWidth:t})=>({group:{"--ai-border-width":M(t)}})),Sd=_(e=>{let t=O(`ActionIconGroup`,bd,e),{className:n,style:r,classNames:i,styles:a,unstyled:o,orientation:s,vars:c,borderWidth:l,variant:u,mod:d,attributes:f,...p}=t;return(0,F.jsx)(N,{...T({name:`ActionIconGroup`,props:t,classes:yd,className:n,style:r,classNames:i,styles:a,unstyled:o,attributes:f,vars:c,varsResolver:xd,rootSelector:`group`})(`group`),variant:u,mod:[{"data-orientation":s},d],role:`group`,...p})});Sd.classes=yd,Sd.varsResolver=xd,Sd.displayName=`@mantine/core/ActionIconGroup`;var Cd=k((e,{radius:t,color:n,gradient:r,variant:i,autoContrast:a,size:o})=>{let s=e.variantColorResolver({color:n||e.primaryColor,theme:e,gradient:r,variant:i||`filled`,autoContrast:a});return{groupSection:{"--section-height":Pe(o,`section-height`),"--section-padding-x":Pe(o,`section-padding-x`),"--section-fz":ye(o),"--section-radius":t===void 0?void 0:ce(t),"--section-bg":n||i?s.background:void 0,"--section-color":s.color,"--section-bd":n||i?s.border:void 0}}}),wd=_(e=>{let t=O(`ActionIconGroupSection`,null,e),{className:n,style:r,classNames:i,styles:a,unstyled:o,vars:s,variant:c,gradient:l,radius:u,autoContrast:d,attributes:f,...p}=t;return(0,F.jsx)(N,{...T({name:`ActionIconGroupSection`,props:t,classes:yd,className:n,style:r,classNames:i,styles:a,unstyled:o,attributes:f,vars:s,varsResolver:Cd,rootSelector:`groupSection`})(`groupSection`),variant:c,...p})});wd.classes=yd,wd.varsResolver=Cd,wd.displayName=`@mantine/core/ActionIconGroupSection`;var Td=k((e,{size:t,radius:n,variant:r,gradient:i,color:a,autoContrast:o})=>{let s=e.variantColorResolver({color:a||e.primaryColor,theme:e,gradient:i,variant:r||`filled`,autoContrast:o});return{root:{"--ai-size":Pe(t,`ai-size`),"--ai-radius":n===void 0?void 0:ce(n),"--ai-bg":a||r?s.background:void 0,"--ai-hover":a||r?s.hover:void 0,"--ai-hover-color":a||r?s.hoverColor:void 0,"--ai-color":s.color,"--ai-bd":a||r?s.border:void 0}}}),Ed=A(e=>{let t=O(`ActionIcon`,null,e),{className:n,unstyled:r,variant:i,classNames:a,styles:o,style:s,loading:c,loaderProps:l,size:u,color:d,radius:f,__staticSelector:p,gradient:m,vars:h,children:_,disabled:v,"data-disabled":y,autoContrast:b,mod:x,attributes:S,...C}=t,w=T({name:[`ActionIcon`,p],props:t,className:n,style:s,classes:yd,classNames:a,styles:o,unstyled:r,attributes:S,vars:h,varsResolver:Td});return(0,F.jsxs)(g,{...w(`root`,{active:!v&&!c&&!y}),"aria-busy":c||void 0,...C,unstyled:r,variant:i,size:u,disabled:v||c,mod:[{loading:c,disabled:v||y},x],children:[typeof c==`boolean`&&(0,F.jsx)(Be,{mounted:c,transition:`slide-down`,duration:150,children:e=>(0,F.jsx)(N,{component:`span`,...w(`loader`,{style:e}),"aria-hidden":!0,children:(0,F.jsx)(le,{color:`var(--ai-color)`,size:`calc(var(--ai-size) * 0.55)`,...l})})}),(0,F.jsx)(N,{component:`span`,mod:{loading:c},...w(`icon`),children:_})]})});Ed.classes=yd,Ed.varsResolver=Td,Ed.displayName=`@mantine/core/ActionIcon`,Ed.Group=Sd,Ed.GroupSection=wd;var[Dd,Od]=ra(`ModalBase component was not found in tree`);function kd({opened:e,transitionDuration:t}){let[n,r]=(0,P.useState)(e),i=(0,P.useRef)(-1),a=m()?0:t;return(0,P.useEffect)(()=>(e?(r(!0),window.clearTimeout(i.current)):a===0?r(!1):i.current=window.setTimeout(()=>r(!1),a),()=>window.clearTimeout(i.current)),[e,a]),n}function Ad({id:e,transitionProps:t,opened:n,trapFocus:r,closeOnEscape:i,onClose:a,returnFocus:o}){let s=pe(e),[c,l]=(0,P.useState)(!1),[u,d]=(0,P.useState)(!1),f=kd({opened:n,transitionDuration:typeof t?.duration==`number`?t?.duration:200});return Pa(`keydown`,e=>{e.key===`Escape`&&i&&!e.isComposing&&n&&e.target?.getAttribute(`data-mantine-stop-propagation`)!==`true`&&a()},{capture:!0}),Ca({opened:n,shouldReturnFocus:r&&o}),{_id:s,titleMounted:c,bodyMounted:u,shouldLockScroll:f,setTitleMounted:l,setBodyMounted:d}}var jd=function(e,t){return jd=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},jd(e,t)};function Md(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Class extends value `+String(t)+` is not a constructor or null`);jd(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var Nd=function(){return Nd=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&a[a.length-1])&&(s[0]===6||s[0]===2)){n=0;continue}if(s[0]===3&&(!a||s[1]>a[0]&&s[1]=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)}function Rd(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-->0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a}function zd(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r1||c(e,t)})},t&&(i[e]=t(i[e])))}function c(e,t){try{l(r[e](t))}catch(e){f(a[0][3],e)}}function l(e){e.value instanceof Bd?Promise.resolve(e.value.v).then(u,d):f(a[0][2],e)}function u(e){c(`next`,e)}function d(e){c(`throw`,e)}function f(e,t){e(t),a.shift(),a.length&&c(a[0][0],a[0][1])}}function Hd(e){if(!Symbol.asyncIterator)throw TypeError(`Symbol.asyncIterator is not defined.`);var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof Ld==`function`?Ld(e):e[Symbol.iterator](),n={},r(`next`),r(`throw`),r(`return`),n[Symbol.asyncIterator]=function(){return this},n);function r(t){n[t]=e[t]&&function(n){return new Promise(function(r,a){n=e[t](n),i(r,a,n.done,n.value)})}}function i(e,t,n,r){Promise.resolve(r).then(function(t){e({value:t,done:n})},t)}}var Ud=`right-scroll-bar-position`,Wd=`width-before-scroll-bar`,Gd=`with-scroll-bars-hidden`,Kd=`--removed-body-scroll-bar-size`;function qd(e,t){return typeof e==`function`?e(t):e&&(e.current=t),e}function Jd(e,t){var n=(0,P.useState)(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(e){var t=n.value;t!==e&&(n.value=e,n.callback(e,t))}}}})[0];return n.callback=t,n.facade}var Yd=typeof window<`u`?P.useLayoutEffect:P.useEffect,Xd=new WeakMap;function Zd(e,t){var n=Jd(t||null,function(t){return e.forEach(function(e){return qd(e,t)})});return Yd(function(){var t=Xd.get(n);if(t){var r=new Set(t),i=new Set(e),a=n.current;r.forEach(function(e){i.has(e)||qd(e,null)}),i.forEach(function(e){r.has(e)||qd(e,a)})}Xd.set(n,e)},[e]),n}function Qd(e){return e}function $d(e,t){t===void 0&&(t=Qd);var n=[],r=!1;return{read:function(){if(r)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(e){var i=t(e,r);return n.push(i),function(){n=n.filter(function(e){return e!==i})}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var i=n;n=[],i.forEach(e),t=n}var a=function(){var n=t;t=[],n.forEach(e)},o=function(){return Promise.resolve().then(a)};o(),n={push:function(e){t.push(e),o()},filter:function(e){return t=t.filter(e),n}}}}}function ef(e){e===void 0&&(e={});var t=$d(null);return t.options=Nd({async:!0,ssr:!1},e),t}var tf=function(e){var t=e.sideCar,n=Pd(e,[`sideCar`]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw Error(`Sidecar medium not found`);return P.createElement(r,Nd({},n))};tf.isSideCarExport=!0;function nf(e,t){return e.useMedium(t),tf}var rf=ef(),af=function(){},of=P.forwardRef(function(e,t){var n=P.useRef(null),r=P.useState({onScrollCapture:af,onWheelCapture:af,onTouchMoveCapture:af}),i=r[0],a=r[1],o=e.forwardProps,s=e.children,c=e.className,l=e.removeScrollBar,u=e.enabled,d=e.shards,f=e.sideCar,p=e.noRelative,m=e.noIsolation,h=e.inert,g=e.allowPinchZoom,_=e.as,v=_===void 0?`div`:_,y=e.gapMode,b=Pd(e,[`forwardProps`,`children`,`className`,`removeScrollBar`,`enabled`,`shards`,`sideCar`,`noRelative`,`noIsolation`,`inert`,`allowPinchZoom`,`as`,`gapMode`]),x=f,S=Zd([n,t]),C=Nd(Nd({},b),i);return P.createElement(P.Fragment,null,u&&P.createElement(x,{sideCar:rf,removeScrollBar:l,shards:d,noRelative:p,noIsolation:m,inert:h,setCallbacks:a,allowPinchZoom:!!g,lockRef:n,gapMode:y}),o?P.cloneElement(P.Children.only(s),Nd(Nd({},C),{ref:S})):P.createElement(v,Nd({},C,{className:c,ref:S}),s))});of.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},of.classNames={fullWidth:Wd,zeroRight:Ud};var sf,cf=function(){if(sf)return sf;if(typeof __webpack_nonce__<`u`)return __webpack_nonce__};function lf(){if(!document)return null;var e=document.createElement(`style`);e.type=`text/css`;var t=cf();return t&&e.setAttribute(`nonce`,t),e}function uf(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function df(e){(document.head||document.getElementsByTagName(`head`)[0]).appendChild(e)}var ff=function(){var e=0,t=null;return{add:function(n){e==0&&(t=lf())&&(uf(t,n),df(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},pf=function(){var e=ff();return function(t,n){P.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},mf=function(){var e=pf();return function(t){var n=t.styles,r=t.dynamic;return e(n,r),null}},hf={left:0,top:0,right:0,gap:0},gf=function(e){return parseInt(e||``,10)||0},_f=function(e){var t=window.getComputedStyle(document.body),n=t[e===`padding`?`paddingLeft`:`marginLeft`],r=t[e===`padding`?`paddingTop`:`marginTop`],i=t[e===`padding`?`paddingRight`:`marginRight`];return[gf(n),gf(r),gf(i)]},vf=function(e){if(e===void 0&&(e=`margin`),typeof window>`u`)return hf;var t=_f(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},yf=mf(),bf=`data-scroll-locked`,xf=function(e,t,n,r){var i=e.left,a=e.top,o=e.right,s=e.gap;return n===void 0&&(n=`margin`),` - .${Gd} { - overflow: hidden ${r}; - padding-right: ${s}px ${r}; - } - body[${bf}] { - overflow: hidden ${r}; - overscroll-behavior: contain; - ${[t&&`position: relative ${r};`,n===`margin`&&` - padding-left: ${i}px; - padding-top: ${a}px; - padding-right: ${o}px; - margin-left:0; - margin-top:0; - margin-right: ${s}px ${r}; - `,n===`padding`&&`padding-right: ${s}px ${r};`].filter(Boolean).join(``)} - } - - .${Ud} { - right: ${s}px ${r}; - } - - .${Wd} { - margin-right: ${s}px ${r}; - } - - .${Ud} .${Ud} { - right: 0 ${r}; - } - - .${Wd} .${Wd} { - margin-right: 0 ${r}; - } - - body[${bf}] { - ${Kd}: ${s}px; - } -`},Sf=function(){var e=parseInt(document.body.getAttribute(`data-scroll-locked`)||`0`,10);return isFinite(e)?e:0},Cf=function(){P.useEffect(function(){return document.body.setAttribute(bf,(Sf()+1).toString()),function(){var e=Sf()-1;e<=0?document.body.removeAttribute(bf):document.body.setAttribute(bf,e.toString())}},[])},wf=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=r===void 0?`margin`:r;Cf();var a=P.useMemo(function(){return vf(i)},[i]);return P.createElement(yf,{styles:xf(a,!t,i,n?``:`!important`)})},Tf=!1;if(typeof window<`u`)try{var Ef=Object.defineProperty({},"passive",{get:function(){return Tf=!0,!0}});window.addEventListener(`test`,Ef,Ef),window.removeEventListener(`test`,Ef,Ef)}catch{Tf=!1}var Df=Tf?{passive:!1}:!1,Of=function(e){return e.tagName===`TEXTAREA`},kf=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!==`hidden`&&!(n.overflowY===n.overflowX&&!Of(e)&&n[t]===`visible`)},Af=function(e){return kf(e,`overflowY`)},jf=function(e){return kf(e,`overflowX`)},Mf=function(e,t){var n=t.ownerDocument,r=t;do{if(typeof ShadowRoot<`u`&&r instanceof ShadowRoot&&(r=r.host),Ff(e,r)){var i=If(e,r);if(i[1]>i[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},Nf=function(e){return[e.scrollTop,e.scrollHeight,e.clientHeight]},Pf=function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]},Ff=function(e,t){return e===`v`?Af(t):jf(t)},If=function(e,t){return e===`v`?Nf(t):Pf(t)},Lf=function(e,t){return e===`h`&&t===`rtl`?-1:1},Rf=function(e,t,n,r,i){var a=Lf(e,window.getComputedStyle(t).direction),o=a*r,s=n.target,c=t.contains(s),l=!1,u=o>0,d=0,f=0;do{if(!s)break;var p=If(e,s),m=p[0],h=p[1]-p[2]-a*m;(m||h)&&Ff(e,s)&&(d+=h,f+=m);var g=s.parentNode;s=g&&g.nodeType===Node.DOCUMENT_FRAGMENT_NODE?g.host:g}while(!c&&s!==document.body||c&&(t.contains(s)||t===s));return(u&&(i&&Math.abs(d)<1||!i&&o>d)||!u&&(i&&Math.abs(f)<1||!i&&-o>f))&&(l=!0),l},zf=function(e){return`changedTouches`in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Bf=function(e){return[e.deltaX,e.deltaY]},Vf=function(e){return e&&`current`in e?e.current:e},Hf=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Uf=function(e){return` - .block-interactivity-${e} {pointer-events: none;} - .allow-interactivity-${e} {pointer-events: all;} -`},Wf=0,Gf=[];function Kf(e){var t=P.useRef([]),n=P.useRef([0,0]),r=P.useRef(),i=P.useState(Wf++)[0],a=P.useState(mf)[0],o=P.useRef(e);P.useEffect(function(){o.current=e},[e]),P.useEffect(function(){if(e.inert){document.body.classList.add(`block-interactivity-${i}`);var t=zd([e.lockRef.current],(e.shards||[]).map(Vf),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add(`allow-interactivity-${i}`)}),function(){document.body.classList.remove(`block-interactivity-${i}`),t.forEach(function(e){return e.classList.remove(`allow-interactivity-${i}`)})}}},[e.inert,e.lockRef.current,e.shards]);var s=P.useCallback(function(e,t){if(`touches`in e&&e.touches.length===2||e.type===`wheel`&&e.ctrlKey)return!o.current.allowPinchZoom;var i=zf(e),a=n.current,s=`deltaX`in e?e.deltaX:a[0]-i[0],c=`deltaY`in e?e.deltaY:a[1]-i[1],l,u=e.target,d=Math.abs(s)>Math.abs(c)?`h`:`v`;if(`touches`in e&&d===`h`&&u.type===`range`)return!1;var f=window.getSelection(),p=f&&f.anchorNode;if(p&&(p===u||p.contains(u)))return!1;var m=Mf(d,u);if(!m)return!0;if(m?l=d:(l=d===`v`?`h`:`v`,m=Mf(d,u)),!m)return!1;if(!r.current&&`changedTouches`in e&&(s||c)&&(r.current=l),!l)return!0;var h=r.current||l;return Rf(h,t,e,h===`h`?s:c,!0)},[]),c=P.useCallback(function(e){var n=e;if(!(!Gf.length||Gf[Gf.length-1]!==a)){var r=`deltaY`in n?Bf(n):zf(n),i=t.current.filter(function(e){return e.name===n.type&&(e.target===n.target||n.target===e.shadowParent)&&Hf(e.delta,r)})[0];if(i&&i.should){n.cancelable&&n.preventDefault();return}if(!i){var c=(o.current.shards||[]).map(Vf).filter(Boolean).filter(function(e){return e.contains(n.target)});(c.length>0?s(n,c[0]):!o.current.noIsolation)&&n.cancelable&&n.preventDefault()}}},[]),l=P.useCallback(function(e,n,r,i){var a={name:e,delta:n,target:r,should:i,shadowParent:qf(r)};t.current.push(a),setTimeout(function(){t.current=t.current.filter(function(e){return e!==a})},1)},[]),u=P.useCallback(function(e){n.current=zf(e),r.current=void 0},[]),d=P.useCallback(function(t){l(t.type,Bf(t),t.target,s(t,e.lockRef.current))},[]),f=P.useCallback(function(t){l(t.type,zf(t),t.target,s(t,e.lockRef.current))},[]);P.useEffect(function(){return Gf.push(a),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener(`wheel`,c,Df),document.addEventListener(`touchmove`,c,Df),document.addEventListener(`touchstart`,u,Df),function(){Gf=Gf.filter(function(e){return e!==a}),document.removeEventListener(`wheel`,c,Df),document.removeEventListener(`touchmove`,c,Df),document.removeEventListener(`touchstart`,u,Df)}},[]);var p=e.removeScrollBar,m=e.inert;return P.createElement(P.Fragment,null,m?P.createElement(a,{styles:Uf(i)}):null,p?P.createElement(wf,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function qf(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}var Jf=nf(rf,Kf),Yf=P.forwardRef(function(e,t){return P.createElement(of,Nd({},e,{ref:t,sideCar:Jf}))});Yf.classNames=of.classNames;function Xf({keepMounted:e,keepMountedMode:t=`activity`,opened:n,onClose:r,id:i,transitionProps:a,onExitTransitionEnd:o,onEnterTransitionEnd:s,trapFocus:c,closeOnEscape:l,returnFocus:u,closeOnClickOutside:d,withinPortal:f,portalProps:p,lockScroll:m,children:h,zIndex:g,shadow:_,padding:v,__vars:y,unstyled:b,removeScrollProps:x,...S}){let{_id:C,titleMounted:w,bodyMounted:T,shouldLockScroll:E,setTitleMounted:D,setBodyMounted:O}=Ad({id:i,transitionProps:a,opened:n,trapFocus:c,closeOnEscape:l,onClose:r,returnFocus:u}),{key:k,...ee}=x||{};return(0,F.jsx)(ed,{...p,withinPortal:f,children:(0,F.jsx)(Dd,{value:{opened:n,onClose:r,closeOnClickOutside:d,onExitTransitionEnd:o,onEnterTransitionEnd:s,transitionProps:{...a,keepMounted:e,keepMountedMode:t},getTitleId:()=>`${C}-title`,getBodyId:()=>`${C}-body`,titleMounted:w,bodyMounted:T,setTitleMounted:D,setBodyMounted:O,trapFocus:c,closeOnEscape:l,zIndex:g,unstyled:b},children:(0,F.jsx)(Yf,{enabled:E&&m,...ee,children:(0,F.jsx)(N,{...S,id:C,__vars:{...y,"--mb-z-index":(g||ua(`modal`)).toString(),"--mb-shadow":De(_),"--mb-padding":de(v)},children:h})},k)})})}Xf.displayName=`@mantine/core/ModalBase`;function Zf(){let e=Od();return(0,P.useEffect)(()=>(e.setBodyMounted(!0),()=>e.setBodyMounted(!1)),[]),e.getBodyId()}var Qf={title:`m_615af6c9`,header:`m_b5489c3c`,inner:`m_60c222c7`,content:`m_fd1ab0aa`,close:`m_606cb269`,body:`m_5df29311`};function $f({className:e,...t}){let n=Zf(),r=Od();return(0,F.jsx)(N,{id:n,className:ae({[Qf.body]:!r.unstyled},e),...t})}$f.displayName=`@mantine/core/ModalBaseBody`;function ep({className:e,onClick:t,...n}){let r=Od();return(0,F.jsx)(Ve,{...n,onClick:e=>{r.onClose(),t?.(e)},className:ae({[Qf.close]:!r.unstyled},e),unstyled:r.unstyled})}ep.displayName=`@mantine/core/ModalBaseCloseButton`;function tp({transitionProps:e,className:t,innerProps:n,onKeyDown:r,style:i,ref:a,...o}){let s=Od();return(0,F.jsx)(Be,{mounted:s.opened,transition:`pop`,...s.transitionProps,onExited:()=>{s.onExitTransitionEnd?.(),s.transitionProps?.onExited?.()},onEntered:()=>{s.onEnterTransitionEnd?.(),s.transitionProps?.onEntered?.()},...e,children:e=>(0,F.jsx)(`div`,{...n,className:ae({[Qf.inner]:!s.unstyled},n.className),children:(0,F.jsx)(sd,{active:s.opened&&s.trapFocus,innerRef:a,children:(0,F.jsx)(te,{...o,component:`section`,role:`dialog`,tabIndex:-1,"aria-modal":!0,"aria-describedby":s.bodyMounted?s.getBodyId():void 0,"aria-labelledby":s.titleMounted?s.getTitleId():void 0,style:[i,e],className:ae({[Qf.content]:!s.unstyled},t),unstyled:s.unstyled,children:o.children})})})})}tp.displayName=`@mantine/core/ModalBaseContent`;function np({className:e,...t}){let n=Od();return(0,F.jsx)(N,{component:`header`,className:ae({[Qf.header]:!n.unstyled},e),...t})}np.displayName=`@mantine/core/ModalBaseHeader`;var rp={duration:200,timingFunction:`ease`,transition:`fade`};function ip(e){let t=Od();return{...rp,...t.transitionProps,...e}}function ap({onClick:e,transitionProps:t,style:n,visible:r,...i}){let a=Od(),o=ip(t);return(0,F.jsx)(Be,{mounted:r===void 0?a.opened:r,...o,transition:`fade`,children:t=>(0,F.jsx)(Yu,{fixed:!0,style:[n,t],zIndex:a.zIndex,unstyled:a.unstyled,onClick:t=>{e?.(t),a.closeOnClickOutside&&a.onClose()},...i})})}ap.displayName=`@mantine/core/ModalBaseOverlay`;function op(){let e=Od();return(0,P.useEffect)(()=>(e.setTitleMounted(!0),()=>e.setTitleMounted(!1)),[]),e.getTitleId()}function sp({className:e,...t}){let n=op(),r=Od();return(0,F.jsx)(N,{component:`h2`,className:ae({[Qf.title]:!r.unstyled},e),id:n,...t})}sp.displayName=`@mantine/core/ModalBaseTitle`;function cp({children:e}){return(0,F.jsx)(F.Fragment,{children:e})}function lp({style:e,size:t=16,...n}){return(0,F.jsx)(`svg`,{viewBox:`0 0 15 15`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,style:{...e,width:M(t),height:M(t),display:`block`},...n,children:(0,F.jsx)(`path`,{d:`M3.13523 6.15803C3.3241 5.95657 3.64052 5.94637 3.84197 6.13523L7.5 9.56464L11.158 6.13523C11.3595 5.94637 11.6759 5.95657 11.8648 6.15803C12.0536 6.35949 12.0434 6.67591 11.842 6.86477L7.84197 10.6148C7.64964 10.7951 7.35036 10.7951 7.15803 10.6148L3.15803 6.86477C2.95657 6.67591 2.94637 6.35949 3.13523 6.15803Z`,fill:`currentColor`,fillRule:`evenodd`,clipRule:`evenodd`})})}lp.displayName=`@mantine/core/AccordionChevron`;var[up,dp]=ra(`AppShell was not found in tree`),fp={root:`m_89ab340`,navbar:`m_45252eee`,aside:`m_9cdde9a`,header:`m_3b16f56b`,main:`m_8983817`,footer:`m_3840c879`,section:`m_6dcfc7c7`},pp=_(e=>{let{classNames:t,className:n,style:r,styles:i,unstyled:a,vars:o,withBorder:s,zIndex:c,mod:l,...u}=O(`AppShellAside`,null,e),d=dp();return d.disabled?null:(0,F.jsx)(N,{component:`aside`,mod:[{"with-border":s??d.withBorder},l],...d.getStyles(`aside`,{className:ae({[Yf.classNames.zeroRight]:d.offsetScrollbars},n),classNames:t,styles:i,style:r}),...u,__vars:{"--app-shell-aside-z-index":`calc(${c??d.zIndex} + 1)`}})});pp.classes=fp,pp.displayName=`@mantine/core/AppShellAside`;var mp=_(e=>{let{classNames:t,className:n,style:r,styles:i,unstyled:a,vars:o,withBorder:s,zIndex:c,mod:l,...u}=O(`AppShellFooter`,null,e),d=dp();return d.disabled?null:(0,F.jsx)(N,{component:`footer`,mod:[{"with-border":s??d.withBorder},l],...d.getStyles(`footer`,{className:ae({[Yf.classNames.zeroRight]:d.offsetScrollbars},n),classNames:t,styles:i,style:r}),...u,__vars:{"--app-shell-footer-z-index":(c??d.zIndex)?.toString()}})});mp.classes=fp,mp.displayName=`@mantine/core/AppShellFooter`;var hp=_(e=>{let{classNames:t,className:n,style:r,styles:i,unstyled:a,vars:o,withBorder:s,zIndex:c,mod:l,...u}=O(`AppShellHeader`,null,e),d=dp();return d.disabled?null:(0,F.jsx)(N,{component:`header`,mod:[{"with-border":s??d.withBorder},l],...d.getStyles(`header`,{className:ae({[Yf.classNames.zeroRight]:d.offsetScrollbars},n),classNames:t,styles:i,style:r}),...u,__vars:{"--app-shell-header-z-index":(c??d.zIndex)?.toString()}})});hp.classes=fp,hp.displayName=`@mantine/core/AppShellHeader`;var gp=_(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,...o}=O(`AppShellMain`,null,e);return(0,F.jsx)(N,{component:`main`,...dp().getStyles(`main`,{className:n,style:r,classNames:t,styles:i}),...o})});gp.classes=fp,gp.displayName=`@mantine/core/AppShellMain`;var _p=_(e=>{let{classNames:t,className:n,style:r,styles:i,unstyled:a,vars:o,withBorder:s,zIndex:c,mod:l,...u}=O(`AppShellNavbar`,null,e),d=dp();return d.disabled?null:(0,F.jsx)(N,{component:`nav`,mod:[{"with-border":s??d.withBorder},l],...d.getStyles(`navbar`,{className:n,classNames:t,styles:i,style:r}),...u,__vars:{"--app-shell-navbar-z-index":`calc(${c??d.zIndex} + 1)`}})});_p.classes=fp,_p.displayName=`@mantine/core/AppShellNavbar`;var vp=A(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,grow:o,mod:s,...c}=O(`AppShellSection`,null,e),l=dp();return(0,F.jsx)(N,{mod:[{grow:o},s],...l.getStyles(`section`,{className:n,style:r,classNames:t,styles:i}),...c})});vp.classes=fp,vp.displayName=`@mantine/core/AppShellSection`;function yp(e){return typeof e==`object`?e.base:e}function bp(e){let t=typeof e==`object`&&!!e&&e.base!==void 0&&Object.keys(e).length===1;return typeof e==`number`||typeof e==`string`||t}function xp(e){return!(typeof e!=`object`||!e||Object.keys(e).length===1&&`base`in e)}function Sp({baseStyles:e,minMediaStyles:t,maxMediaStyles:n,aside:r,theme:i,mode:a}){let o=r?.width,s=`translateX(var(--app-shell-aside-width))`,c=`translateX(calc(var(--app-shell-aside-width) * -1))`;if(r?.breakpoint!==void 0&&!r?.collapsed?.mobile&&(n[r?.breakpoint]=n[r?.breakpoint]||{},a===`fixed`?(n[r?.breakpoint][`--app-shell-aside-width`]=`100%`,n[r?.breakpoint][`--app-shell-aside-offset`]=`0px`):(n[r?.breakpoint][`--app-shell-aside-width`]=`0px`,n[r?.breakpoint][`--app-shell-aside-offset`]=`0px`)),bp(o)){let t=M(yp(o));e[`--app-shell-aside-width`]=t,e[`--app-shell-aside-offset`]=t}if(xp(o)&&(o.base!==void 0&&(e[`--app-shell-aside-width`]=M(o.base),e[`--app-shell-aside-offset`]=M(o.base)),ke(o).forEach(e=>{e!==`base`&&(t[e]=t[e]||{},t[e][`--app-shell-aside-width`]=M(o[e]),t[e][`--app-shell-aside-offset`]=M(o[e]))})),r?.breakpoint!==void 0&&a===`static`&&(t[r.breakpoint]=t[r.breakpoint]||{},t[r.breakpoint][`--app-shell-aside-position`]=`sticky`,t[r.breakpoint][`--app-shell-aside-grid-row`]=`2`,t[r.breakpoint][`--app-shell-aside-grid-column`]=`3`,t[r.breakpoint][`--app-shell-main-column-end`]=`3`),r?.collapsed?.desktop){let e=r.breakpoint;t[e]=t[e]||{},t[e][`--app-shell-aside-transform`]=s,t[e][`--app-shell-aside-transform-rtl`]=c,a===`fixed`?t[e][`--app-shell-aside-offset`]=`0px !important`:(t[e][`--app-shell-aside-width`]=`0px`,t[e][`--app-shell-aside-display`]=`none`,t[e][`--app-shell-main-column-end`]=`-1`),t[e][`--app-shell-aside-scroll-locked-visibility`]=`hidden`}if(r?.collapsed?.mobile){let e=ma(r.breakpoint,i.breakpoints)-.1;n[e]=n[e]||{},a===`fixed`?(n[e][`--app-shell-aside-width`]=`100%`,n[e][`--app-shell-aside-offset`]=`0px`):n[e][`--app-shell-aside-width`]=`0px`,n[e][`--app-shell-aside-transform`]=s,n[e][`--app-shell-aside-transform-rtl`]=c,n[e][`--app-shell-aside-scroll-locked-visibility`]=`hidden`}}function Cp({baseStyles:e,minMediaStyles:t,footer:n,mode:r}){let i=n?.height,a=r===`static`?!0:n?.offset??!0;if(r===`static`&&n&&(e[`--app-shell-footer-position`]=`sticky`,e[`--app-shell-footer-grid-column`]=`1 / -1`,e[`--app-shell-footer-grid-row`]=`3`),bp(i)){let t=M(yp(i));e[`--app-shell-footer-height`]=t,a&&(e[`--app-shell-footer-offset`]=t)}xp(i)&&(i.base!==void 0&&(e[`--app-shell-footer-height`]=M(i.base),a&&(e[`--app-shell-footer-offset`]=M(i.base))),ke(i).forEach(e=>{e!==`base`&&(t[e]=t[e]||{},t[e][`--app-shell-footer-height`]=M(i[e]),a&&(t[e][`--app-shell-footer-offset`]=M(i[e])))})),n?.collapsed&&(e[`--app-shell-footer-transform`]=`translateY(var(--app-shell-footer-height))`,r===`fixed`&&(e[`--app-shell-footer-offset`]=`0px !important`))}function wp({baseStyles:e,minMediaStyles:t,header:n,mode:r}){let i=n?.height,a=r===`static`?!0:n?.offset??!0;if(r===`static`&&n&&(e[`--app-shell-header-position`]=`sticky`,e[`--app-shell-header-grid-column`]=`1 / -1`,e[`--app-shell-header-grid-row`]=`1`),bp(i)){let t=M(yp(i));e[`--app-shell-header-height`]=t,a&&(e[`--app-shell-header-offset`]=t)}xp(i)&&(i.base!==void 0&&(e[`--app-shell-header-height`]=M(i.base),a&&(e[`--app-shell-header-offset`]=M(i.base))),ke(i).forEach(e=>{e!==`base`&&(t[e]=t[e]||{},t[e][`--app-shell-header-height`]=M(i[e]),a&&(t[e][`--app-shell-header-offset`]=M(i[e])))})),n?.collapsed&&(e[`--app-shell-header-transform`]=`translateY(calc(var(--app-shell-header-height) * -1))`,r===`fixed`&&(e[`--app-shell-header-offset`]=`0px !important`))}function Tp({baseStyles:e,minMediaStyles:t,maxMediaStyles:n,navbar:r,theme:i,mode:a}){let o=r?.width,s=`translateX(calc(var(--app-shell-navbar-width) * -1))`,c=`translateX(var(--app-shell-navbar-width))`;if(r?.breakpoint!==void 0&&!r?.collapsed?.mobile&&(n[r?.breakpoint]=n[r?.breakpoint]||{},n[r?.breakpoint][`--app-shell-navbar-offset`]=`0px`,n[r?.breakpoint][`--app-shell-navbar-width`]=`100%`,a===`static`&&(n[r?.breakpoint][`--app-shell-navbar-grid-width`]=`0px`)),bp(o)){let t=M(yp(o));e[`--app-shell-navbar-width`]=t,e[`--app-shell-navbar-offset`]=t,a===`static`&&(e[`--app-shell-navbar-grid-width`]=t)}if(xp(o)&&(o.base!==void 0&&(e[`--app-shell-navbar-width`]=M(o.base),e[`--app-shell-navbar-offset`]=M(o.base),a===`static`&&(e[`--app-shell-navbar-grid-width`]=M(o.base))),ke(o).forEach(e=>{e!==`base`&&(t[e]=t[e]||{},t[e][`--app-shell-navbar-width`]=M(o[e]),t[e][`--app-shell-navbar-offset`]=M(o[e]),a===`static`&&(t[e][`--app-shell-navbar-grid-width`]=M(o[e])))})),r?.breakpoint!==void 0&&a===`static`&&(t[r.breakpoint]=t[r.breakpoint]||{},t[r.breakpoint][`--app-shell-navbar-position`]=`sticky`,t[r.breakpoint][`--app-shell-navbar-grid-row`]=`2`,t[r.breakpoint][`--app-shell-navbar-grid-column`]=`1`,t[r.breakpoint][`--app-shell-main-column-start`]=`2`),r?.collapsed?.desktop){let e=r.breakpoint;t[e]=t[e]||{},t[e][`--app-shell-navbar-transform`]=s,t[e][`--app-shell-navbar-transform-rtl`]=c,a===`fixed`?t[e][`--app-shell-navbar-offset`]=`0px !important`:(t[e][`--app-shell-navbar-width`]=`0px`,t[e][`--app-shell-navbar-display`]=`none`,t[e][`--app-shell-main-column-start`]=`1`)}if(r?.collapsed?.mobile){let e=ma(r.breakpoint,i.breakpoints)-.1;n[e]=n[e]||{},n[e][`--app-shell-navbar-width`]=`100%`,n[e][`--app-shell-navbar-offset`]=`0px`,a===`static`&&(n[e][`--app-shell-navbar-grid-width`]=`0px`),n[e][`--app-shell-navbar-transform`]=s,n[e][`--app-shell-navbar-transform-rtl`]=c}}function Ep(e){return Number(e)===0?`0px`:de(e)}function Dp({padding:e,baseStyles:t,minMediaStyles:n}){bp(e)&&(t[`--app-shell-padding`]=Ep(yp(e))),xp(e)&&(e.base&&(t[`--app-shell-padding`]=Ep(e.base)),ke(e).forEach(t=>{t!==`base`&&(n[t]=n[t]||{},n[t][`--app-shell-padding`]=Ep(e[t]))}))}function Op({navbar:e,header:t,footer:n,aside:r,padding:i,theme:a,mode:o}){let s={},c={},l={};o===`static`&&(l[`--app-shell-main-grid-column`]=`1 / -1`,l[`--app-shell-main-grid-row`]=`2`),Tp({baseStyles:l,minMediaStyles:s,maxMediaStyles:c,navbar:e,theme:a,mode:o}),Sp({baseStyles:l,minMediaStyles:s,maxMediaStyles:c,aside:r,theme:a,mode:o}),wp({baseStyles:l,minMediaStyles:s,header:t,mode:o}),Cp({baseStyles:l,minMediaStyles:s,footer:n,mode:o}),Dp({baseStyles:l,minMediaStyles:s,padding:i});let u=ha(ke(s),a.breakpoints).map(e=>({query:`(min-width: ${Re(e.px)})`,styles:s[e.value]})),d=ha(ke(c),a.breakpoints).map(e=>({query:`(max-width: ${Re(e.px)})`,styles:c[e.value]}));return{baseStyles:l,media:[...u,...d]}}function kp({navbar:e,header:t,aside:n,footer:r,padding:i,mode:a,selector:o}){let s=x(),c=He(),{media:l,baseStyles:u}=Op({navbar:e,header:t,footer:r,aside:n,padding:i,theme:s,mode:a});return(0,F.jsx)(be,{media:l,styles:u,selector:o||c.cssVariablesSelector})}function Ap({transitionDuration:e,disabled:t}){let[n,r]=(0,P.useState)(!0),i=(0,P.useRef)(-1),a=(0,P.useRef)(-1);return Pa(`resize`,()=>{r(!0),clearTimeout(i.current),i.current=window.setTimeout(()=>(0,P.startTransition)(()=>{r(!1)}),200)}),Ee(()=>{r(!0),clearTimeout(a.current),a.current=window.setTimeout(()=>(0,P.startTransition)(()=>{r(!1)}),e||0)},[t,e]),n}var jp={withBorder:!0,padding:0,transitionDuration:200,transitionTimingFunction:`ease`,zIndex:ua(`app`),mode:`fixed`},Mp=k((e,{transitionDuration:t,transitionTimingFunction:n})=>({root:{"--app-shell-transition-duration":`${t}ms`,"--app-shell-transition-timing-function":n}})),Np=_(e=>{let t=O(`AppShell`,jp,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,navbar:c,withBorder:l,padding:u,transitionDuration:d,transitionTimingFunction:f,header:p,zIndex:m,layout:h,disabled:g,aside:_,footer:v,offsetScrollbars:y=!0,mode:b,mod:x,attributes:S,id:C,...w}=t,E=T({name:`AppShell`,classes:fp,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:S,vars:s,varsResolver:Mp}),D=Ap({disabled:g,transitionDuration:d}),k=pe(C);return(0,F.jsxs)(up,{value:{getStyles:E,withBorder:l,zIndex:m,disabled:g,offsetScrollbars:y,mode:b},children:[(0,F.jsx)(kp,{navbar:c,header:p,aside:_,footer:v,padding:u,mode:b,selector:b===`static`?`#${k}`:void 0}),(0,F.jsx)(N,{...E(`root`),id:k,mod:[{resizing:D,layout:h,disabled:g,mode:b},x],...w})]})});Np.classes=fp,Np.varsResolver=Mp,Np.displayName=`@mantine/core/AppShell`,Np.Navbar=_p,Np.Header=hp,Np.Main=gp,Np.Aside=pp,Np.Footer=mp,Np.Section=vp;function Pp({size:e,style:t,...n}){return(0,F.jsx)(`svg`,{viewBox:`0 0 10 7`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,style:e===void 0?t:{width:M(e),height:M(e),...t},"aria-hidden":!0,...n,children:(0,F.jsx)(`path`,{d:`M4 4.586L1.707 2.293A1 1 0 1 0 .293 3.707l3 3a.997.997 0 0 0 1.414 0l5-5A1 1 0 1 0 8.293.293L4 4.586z`,fill:`currentColor`,fillRule:`evenodd`,clipRule:`evenodd`})})}var Fp={group:`m_11def92b`,root:`m_f85678b6`,image:`m_11f8ac07`,placeholder:`m_104cd71f`},Ip=(0,P.createContext)({withinGroup:!1}),Lp=k((e,{spacing:t})=>({group:{"--ag-spacing":de(t)}})),Rp=_(e=>{let t=O(`AvatarGroup`,null,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,spacing:c,attributes:l,...u}=t,d=T({name:`AvatarGroup`,classes:Fp,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:l,vars:s,varsResolver:Lp,rootSelector:`group`});return(0,F.jsx)(Ip,{value:{withinGroup:!0},children:(0,F.jsx)(N,{...d(`group`),...u})})});Rp.classes=Fp,Rp.varsResolver=Lp,Rp.displayName=`@mantine/core/AvatarGroup`;function zp(e){return(0,F.jsx)(`svg`,{...e,"data-avatar-placeholder-icon":!0,viewBox:`0 0 15 15`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,children:(0,F.jsx)(`path`,{d:`M0.877014 7.49988C0.877014 3.84219 3.84216 0.877045 7.49985 0.877045C11.1575 0.877045 14.1227 3.84219 14.1227 7.49988C14.1227 11.1575 11.1575 14.1227 7.49985 14.1227C3.84216 14.1227 0.877014 11.1575 0.877014 7.49988ZM7.49985 1.82704C4.36683 1.82704 1.82701 4.36686 1.82701 7.49988C1.82701 8.97196 2.38774 10.3131 3.30727 11.3213C4.19074 9.94119 5.73818 9.02499 7.50023 9.02499C9.26206 9.02499 10.8093 9.94097 11.6929 11.3208C12.6121 10.3127 13.1727 8.97172 13.1727 7.49988C13.1727 4.36686 10.6328 1.82704 7.49985 1.82704ZM10.9818 11.9787C10.2839 10.7795 8.9857 9.97499 7.50023 9.97499C6.01458 9.97499 4.71624 10.7797 4.01845 11.9791C4.97952 12.7272 6.18765 13.1727 7.49985 13.1727C8.81227 13.1727 10.0206 12.727 10.9818 11.9787ZM5.14999 6.50487C5.14999 5.207 6.20212 4.15487 7.49999 4.15487C8.79786 4.15487 9.84999 5.207 9.84999 6.50487C9.84999 7.80274 8.79786 8.85487 7.49999 8.85487C6.20212 8.85487 5.14999 7.80274 5.14999 6.50487ZM7.49999 5.10487C6.72679 5.10487 6.09999 5.73167 6.09999 6.50487C6.09999 7.27807 6.72679 7.90487 7.49999 7.90487C8.27319 7.90487 8.89999 7.27807 8.89999 6.50487C8.89999 5.73167 8.27319 5.10487 7.49999 5.10487Z`,fill:`currentColor`,fillRule:`evenodd`,clipRule:`evenodd`})})}function Bp(e){let t=0;for(let n=0;ne[0]).slice(0,t).join(``).toUpperCase()}var Wp=k((e,{size:t,radius:n,variant:r,gradient:i,color:a,autoContrast:o,name:s,allowedInitialsColors:c})=>{let l=a===`initials`&&typeof s==`string`?Hp(s,c):a,u=e.variantColorResolver({color:l||`gray`,theme:e,gradient:i,variant:r||`light`,autoContrast:o});return{root:{"--avatar-size":Pe(t,`avatar-size`),"--avatar-radius":n===void 0?void 0:ce(n),"--avatar-bg":l||r?u.background:void 0,"--avatar-color":l||r?u.color:void 0,"--avatar-bd":l||r?u.border:void 0}}}),Gp=A(e=>{let t=O(`Avatar`,null,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,src:c,alt:l,radius:u,color:d,gradient:f,imageProps:p,children:m,autoContrast:h,mod:g,name:_,allowedInitialsColors:v,attributes:y,...b}=t,x=(0,P.use)(Ip),[S,C]=(0,P.useState)(!c),w=T({name:`Avatar`,props:t,classes:Fp,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:y,vars:s,varsResolver:Wp});return(0,P.useEffect)(()=>C(!c),[c]),(0,F.jsx)(N,{...w(`root`),mod:[{"within-group":x.withinGroup},g],...b,children:S||!c?(0,F.jsx)(`span`,{...w(`placeholder`),title:l,children:m||typeof _==`string`&&Up(_)||(0,F.jsx)(zp,{})}):(0,F.jsx)(`img`,{...p,...w(`image`),src:c,alt:l,onError:e=>{C(!0),p?.onError?.(e)}})})});Gp.classes=Fp,Gp.varsResolver=Wp,Gp.displayName=`@mantine/core/Avatar`,Gp.Group=Rp;var Kp={root:`m_3eebeb36`,label:`m_9e365f20`},qp={orientation:`horizontal`},Jp=k((e,{color:t,variant:n,size:r})=>({root:{"--divider-color":t?S(t,e):void 0,"--divider-border-style":n,"--divider-size":Pe(r,`divider-size`)}})),Yp=_(e=>{let t=O(`Divider`,qp,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,color:c,orientation:l,label:u,labelPosition:d,mod:f,attributes:p,...m}=t,h=T({name:`Divider`,classes:Kp,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:p,vars:s,varsResolver:Jp});return(0,F.jsx)(N,{mod:[{orientation:l,withLabel:!!u},f],role:`separator`,...h(`root`),...m,children:u&&(0,F.jsx)(N,{component:`span`,mod:{position:d},...h(`label`),children:u})})});Yp.classes=Kp,Yp.varsResolver=Jp,Yp.displayName=`@mantine/core/Divider`;var[Xp,Zp]=ra(`Drawer component was not found in tree`),Qp={root:`m_f11b401e`,header:`m_5a7c2c9`,content:`m_b8a05bbd`,inner:`m_31cd769a`},$p=_(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,...o}=O(`DrawerBody`,null,e);return(0,F.jsx)($f,{...Zp().getStyles(`body`,{classNames:t,style:r,styles:i,className:n}),...o})});$p.classes=Qp,$p.displayName=`@mantine/core/DrawerBody`;var em=_(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,...o}=O(`DrawerCloseButton`,null,e);return(0,F.jsx)(ep,{...Zp().getStyles(`close`,{classNames:t,style:r,styles:i,className:n}),...o})});em.classes=Qp,em.displayName=`@mantine/core/DrawerCloseButton`;var tm=_(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,children:o,radius:s,__hidden:c,...l}=O(`DrawerContent`,null,e),u=Zp(),d=u.scrollAreaComponent||cp;return(0,F.jsx)(tp,{...u.getStyles(`content`,{className:n,style:r,styles:i,classNames:t}),innerProps:u.getStyles(`inner`,{className:n,style:r,styles:i,classNames:t}),...l,radius:s||u.radius||0,"data-hidden":c||void 0,children:(0,F.jsx)(d,{style:{height:`calc(100vh - var(--drawer-offset) * 2)`},children:o})})});tm.classes=Qp,tm.displayName=`@mantine/core/DrawerContent`;var nm=_(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,...o}=O(`DrawerHeader`,null,e);return(0,F.jsx)(np,{...Zp().getStyles(`header`,{classNames:t,style:r,styles:i,className:n}),...o})});nm.classes=Qp,nm.displayName=`@mantine/core/DrawerHeader`;var rm=_(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,...o}=O(`DrawerOverlay`,null,e);return(0,F.jsx)(ap,{...Zp().getStyles(`overlay`,{classNames:t,style:r,styles:i,className:n}),...o})});rm.classes=Qp,rm.displayName=`@mantine/core/DrawerOverlay`;function im(e){switch(e){case`top`:return`flex-start`;case`bottom`:return`flex-end`;default:return}}function am(e){if(e===`top`||e===`bottom`)return`0 0 calc(100% - var(--drawer-offset, 0rem) * 2)`}var om={top:`slide-down`,bottom:`slide-up`,left:`slide-right`,right:`slide-left`},sm={top:`slide-down`,bottom:`slide-up`,right:`slide-right`,left:`slide-left`},cm={closeOnClickOutside:!0,withinPortal:!0,lockScroll:!0,trapFocus:!0,returnFocus:!0,closeOnEscape:!0,keepMounted:!1,zIndex:ua(`modal`),position:`left`},lm=k((e,{position:t,size:n,offset:r})=>({root:{"--drawer-size":Pe(n,`drawer-size`),"--drawer-flex":am(t),"--drawer-height":t===`left`||t===`right`?void 0:`var(--drawer-size)`,"--drawer-align":im(t),"--drawer-justify":t===`right`?`flex-end`:void 0,"--drawer-offset":M(r)}})),um=_(e=>{let t=O(`DrawerRoot`,cm,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,scrollAreaComponent:c,position:l,transitionProps:u,radius:d,attributes:f,...p}=t,{dir:m}=I(),h=T({name:`Drawer`,classes:Qp,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:f,vars:s,varsResolver:lm}),g=(m===`rtl`?sm:om)[l];return(0,F.jsx)(Xp,{value:{scrollAreaComponent:c,getStyles:h,radius:d},children:(0,F.jsx)(Xf,{...h(`root`),transitionProps:{transition:g,...u},"data-offset-scrollbars":c===Nu.Autosize||void 0,unstyled:o,...p})})});um.classes=Qp,um.varsResolver=lm,um.displayName=`@mantine/core/DrawerRoot`;var dm=(0,P.createContext)(null);function fm({children:e}){let[t,n]=(0,P.useState)([]),[r,i]=(0,P.useState)(ua(`modal`));return(0,F.jsx)(dm,{value:{stack:t,addModal:(e,t)=>{n(t=>[...new Set([...t,e])]),i(e=>typeof t==`number`&&typeof e==`number`?Math.max(e,t):e)},removeModal:e=>n(t=>t.filter(t=>t!==e)),getZIndex:e=>`calc(${r} + ${t.indexOf(e)} + 1)`,currentId:t[t.length-1],maxZIndex:r},children:e})}fm.displayName=`@mantine/core/DrawerStack`;var pm=_(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,...o}=O(`DrawerTitle`,null,e);return(0,F.jsx)(sp,{...Zp().getStyles(`title`,{classNames:t,style:r,styles:i,className:n}),...o})});pm.classes=Qp,pm.displayName=`@mantine/core/DrawerTitle`;var mm={closeOnClickOutside:!0,withinPortal:!0,lockScroll:!0,trapFocus:!0,returnFocus:!0,closeOnEscape:!0,keepMounted:!1,zIndex:ua(`modal`),withOverlay:!0,withCloseButton:!0},hm=_(e=>{let{title:t,withOverlay:n,overlayProps:r,withCloseButton:i,closeButtonProps:a,children:o,opened:s,stackId:c,zIndex:l,...u}=O(`Drawer`,mm,e),d=(0,P.use)(dm),f=!!t||i,p=d&&c?{closeOnEscape:d.currentId===c,trapFocus:d.currentId===c,zIndex:d.getZIndex(c)}:{},m=n===!1?!1:c&&d?d.currentId===c:s;return(0,P.useEffect)(()=>{d&&c&&(s?d.addModal(c,l||ua(`modal`)):d.removeModal(c))},[s,c,l]),(0,F.jsxs)(um,{opened:s,zIndex:d&&c?d.getZIndex(c):l,...u,...p,children:[n&&(0,F.jsx)(rm,{visible:m,transitionProps:d&&c?{duration:0}:void 0,...r}),(0,F.jsxs)(tm,{__hidden:d&&c&&s?c!==d.currentId:!1,children:[f&&(0,F.jsxs)(nm,{children:[t&&(0,F.jsx)(pm,{children:t}),i&&(0,F.jsx)(em,{...a})]}),(0,F.jsx)($p,{children:o})]})]})});hm.classes=Qp,hm.displayName=`@mantine/core/Drawer`,hm.Root=um,hm.Overlay=rm,hm.Content=tm,hm.Body=$p,hm.Header=nm,hm.Title=pm,hm.CloseButton=em,hm.Stack=fm;var gm=[`borderBottomWidth`,`borderLeftWidth`,`borderRightWidth`,`borderTopWidth`,`boxSizing`,`fontFamily`,`fontSize`,`fontStyle`,`fontWeight`,`letterSpacing`,`lineHeight`,`paddingBottom`,`paddingLeft`,`paddingRight`,`paddingTop`,`tabSize`,`textIndent`,`textRendering`,`textTransform`,`width`,`wordBreak`,`wordSpacing`,`scrollbarGutter`],_m={"min-height":`0`,"max-height":`none`,height:`0`,visibility:`hidden`,overflow:`hidden`,position:`absolute`,"z-index":`-1000`,top:`0`,right:`0`,display:`block`};function vm(e){Object.keys(_m).forEach(t=>{e.style.setProperty(t,_m[t],`important`)})}function ym(e){let t=window.getComputedStyle(e);if(t===null)return null;let n={};for(let e of gm)n[e]=t[e];return n.boxSizing===``?null:{sizingStyle:n,paddingSize:parseFloat(n.paddingBottom)+parseFloat(n.paddingTop),borderSize:parseFloat(n.borderBottomWidth)+parseFloat(n.borderTopWidth)}}var bm=null;function xm(e,t,n=1,r=1/0){bm||(bm=document.createElement(`textarea`),bm.setAttribute(`tabindex`,`-1`),bm.setAttribute(`aria-hidden`,`true`),bm.setAttribute(`aria-label`,`autosize measurement`),vm(bm)),bm.parentNode===null&&document.body.appendChild(bm);let{paddingSize:i,borderSize:a,sizingStyle:o}=e,{boxSizing:s}=o;Object.keys(o).forEach(e=>{bm.style[e]=o[e]}),vm(bm),bm.value=t;let c=s===`border-box`?bm.scrollHeight+a:bm.scrollHeight-i;bm.value=t,c=s===`border-box`?bm.scrollHeight+a:bm.scrollHeight-i,bm.value=`x`;let l=bm.scrollHeight-i,u=l*n;s===`border-box`&&(u=u+i+a),c=Math.max(u,c);let d=l*r;return s===`border-box`&&(d=d+i+a),c=Math.min(d,c),[c,l]}function Sm({maxRows:e,minRows:t,onChange:n,ref:r,...i}){let a=i.value!==void 0,o=(0,P.useRef)(null),s=La(o,r),c=(0,P.useRef)(0),l=(0,P.useRef)(0),u=()=>{let n=o.current;if(!n)return;let r=ym(n);if(!r)return;let[i]=xm(r,n.value||n.placeholder||`x`,t,e);c.current!==i&&(c.current=i,n.style.setProperty(`height`,`${i}px`,`important`))},d=e=>{a||u(),n?.(e)};return(0,P.useLayoutEffect)(u),(0,P.useEffect)(()=>{let e=()=>u();return window.addEventListener(`resize`,e),()=>window.removeEventListener(`resize`,e)},[]),(0,P.useEffect)(()=>{let e=o.current;if(!e||typeof ResizeObserver>`u`)return;l.current=e.offsetWidth;let t=new ResizeObserver(()=>{o.current&&o.current.offsetWidth!==l.current&&(l.current=o.current.offsetWidth,u())});return t.observe(e),()=>t.disconnect()},[]),(0,P.useEffect)(()=>{let e=()=>u();return document.fonts.addEventListener(`loadingdone`,e),()=>document.fonts.removeEventListener(`loadingdone`,e)},[]),(0,P.useEffect)(()=>{let e=e=>{if(o.current?.form===e.target&&!a){let e=o.current.value;requestAnimationFrame(()=>{o.current&&e!==o.current.value&&u()})}};return document.body.addEventListener(`reset`,e),()=>document.body.removeEventListener(`reset`,e)},[a]),(0,F.jsx)(`textarea`,{rows:t,...i,onChange:d,ref:s})}var Cm=_(e=>{let{autosize:t,maxRows:n,minRows:r,__staticSelector:i,resize:a,bottomSection:o,bottomSectionProps:s,...c}=O([`Input`,`InputWrapper`,`Textarea`],null,e),l=t&&Ga()!==`test`,u=l?{maxRows:n,minRows:r}:{};return(0,F.jsx)(ge,{component:l?Sm:`textarea`,...c,__staticSelector:i||`Textarea`,__bottomSection:o,__bottomSectionProps:s,multiline:!0,"data-no-overflow":t&&n===void 0||void 0,__vars:{"--input-resize":a},...u})});Cm.classes=ge.classes,Cm.displayName=`@mantine/core/Textarea`;var[wm,Tm]=ra(`Menu component was not found in the tree`),Em=(0,P.createContext)(null);function Dm(e){let{value:t,defaultValue:n,onChange:r,children:i}=O(`MenuCheckboxGroup`,null,e),[a,o]=Ra({value:t,defaultValue:n,finalValue:[],onChange:r});return(0,F.jsx)(Em,{value:{values:a,onChange:(0,P.useCallback)(e=>{o(a.includes(e)?a.filter(t=>t!==e):[...a,e])},[a,o])},children:i})}Dm.displayName=`@mantine/core/MenuCheckboxGroup`;var Om=(0,P.createContext)(null);function km({role:e,checked:t,indicator:n,onSelect:r,color:i,closeMenuOnClick:a,rightSection:o,children:s,disabled:c,dataDisabled:l,className:u,style:d,styles:f,classNames:p,buttonRef:m,others:h}){let _=Tm(),v=(0,P.use)(Om),y=x(),{dir:b}=I(),S=(0,P.useRef)(null),C=pa(h.onClick,()=>{l||(r(),a&&_.closeDropdownImmediately())}),w=pa(h.onMouseMove,()=>{if(!_.hasSearch)return;let e=S.current?.closest(`[data-menu-dropdown]`);e&&e.querySelectorAll(`[data-menu-active]`).forEach(t=>{t!==S.current&&t.closest(`[data-menu-dropdown]`)===e&&t.removeAttribute(`data-menu-active`)})}),T=pa(h.onKeyDown,e=>{e.key===`ArrowLeft`&&v&&(v.close(),v.focusParentItem())}),E=i?y.variantColorResolver({color:i,theme:y,variant:`light`}):void 0,D=i?ie({color:i,theme:y}):null,O=_.alignItemsLabels!==`none`||t;return(0,F.jsxs)(g,{onMouseDown:e=>e.preventDefault(),...h,unstyled:_.unstyled,tabIndex:_.menuItemTabIndex,..._.getStyles(`item`,{className:u,style:d,styles:f,classNames:p}),ref:La(S,m),role:e,"aria-checked":t,disabled:c,"data-menu-item":!0,"data-checked":t||void 0,"data-disabled":c||l||void 0,"data-mantine-stop-propagation":!0,onClick:C,onMouseMove:w,onKeyDown:ca({siblingSelector:`[data-menu-item]:not([data-disabled])`,parentSelector:`[data-menu-dropdown]`,activateOnFocus:!1,loop:_.loop,dir:b,orientation:`vertical`,onKeyDown:T}),__vars:{"--menu-item-color":D?.isThemeColor&&D?.shade===void 0?`var(--mantine-color-${D.color}-6)`:E?.color,"--menu-item-hover":E?.hover},children:[O&&(0,F.jsx)(`div`,{..._.getStyles(`itemIndicator`,{styles:f,classNames:p}),"data-checked":t||void 0,children:t?n:null}),s&&(0,F.jsx)(`div`,{..._.getStyles(`itemLabel`,{styles:f,classNames:p}),"data-menu-item-label":!0,children:s}),o&&(0,F.jsx)(`div`,{..._.getStyles(`itemSection`,{styles:f,classNames:p}),"data-position":`right`,children:o})]})}var Am={dropdown:`m_dc9b7c9f`,label:`m_9bfac126`,divider:`m_efdf90cb`,item:`m_99ac2aa1`,search:`m_ef8769b6`,itemLabel:`m_5476e0d3`,itemIndicator:`m_8395186e`,itemSection:`m_8b75e504`,chevron:`m_b85b0bed`},jm=_(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,color:o,closeMenuOnClick:s,rightSection:c,children:l,disabled:u,"data-disabled":d,value:f,checked:p,defaultChecked:m,onChange:h,checkIcon:g,ref:_,...v}=O(`MenuCheckboxItem`,null,e),y=Tm(),b=(0,P.use)(Em),x=b&&f!==void 0?b.values.includes(f):void 0,[S,C]=Ra({value:p??x,defaultValue:m,finalValue:!1,onChange:h});return(0,F.jsx)(km,{role:`menuitemcheckbox`,checked:S,indicator:g??y.checkIcon??(0,F.jsx)(Pp,{size:10}),onSelect:()=>{h?C(!S):b&&f!==void 0?b.onChange(f):C(!S)},color:o,closeMenuOnClick:s,rightSection:c,disabled:u,dataDisabled:d,className:n,style:r,styles:i,classNames:t,buttonRef:_,others:v,children:l})});jm.classes=Am,jm.displayName=`@mantine/core/MenuCheckboxItem`;function Mm(e){let{children:t,disabled:n,longPressDelay:r}=O(`MenuContextMenu`,null,e),i=qa(t);if(!i)throw Error(`Menu.ContextMenu component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported`);let a=Tm(),o=id();return(0,P.cloneElement)(i,ad({childProps:i.props,disabled:n||o.disabled,opened:a.opened,longPressDelay:r,setReference:o.reference,open:()=>a.openDropdown()}))}Mm.displayName=`@mantine/core/MenuContextMenu`;var Nm=_(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,...o}=O(`MenuDivider`,null,e);return(0,F.jsx)(N,{...Tm().getStyles(`divider`,{className:n,style:r,styles:i,classNames:t}),...o})});Nm.classes=Am,Nm.displayName=`@mantine/core/MenuDivider`;var Pm=500;function Fm(e){return((e.querySelector(`[data-menu-item-label]`)??e).textContent??``).trim().toLowerCase()}function Im(e){return e.length>1&&e.split(``).every(t=>t===e[0])}function Lm({enabled:e,opened:t,getDropdown:n}){let r=(0,P.useRef)({buffer:``,timeoutId:null});return(0,P.useEffect)(()=>{if(t&&e)return;let n=r.current;n.timeoutId!==null&&(window.clearTimeout(n.timeoutId),n.timeoutId=null),n.buffer=``},[t,e]),(0,P.useEffect)(()=>()=>{let{timeoutId:e}=r.current;e!==null&&window.clearTimeout(e)},[]),t=>{if(!e||t.defaultPrevented||t.ctrlKey||t.metaKey||t.altKey||t.key.length!==1||t.key===` `)return;let i=t.target;if(i&&(i.tagName===`INPUT`||i.tagName===`TEXTAREA`||i.tagName===`SELECT`||i.isContentEditable))return;let a=n();if(!a)return;let o=Array.from(a.querySelectorAll(`[data-menu-item]:not([data-disabled])`)).filter(e=>e.closest(`[data-menu-dropdown]`)===a);if(o.length===0)return;let s=r.current;s.buffer=(s.buffer+t.key).toLowerCase(),s.timeoutId!==null&&window.clearTimeout(s.timeoutId),s.timeoutId=window.setTimeout(()=>{s.buffer=``,s.timeoutId=null},Pm);let c=document.activeElement,l=c?o.indexOf(c):-1,u=null;if(s.buffer.length===1||Im(s.buffer)){let e=s.buffer[0],t=l+1;for(let n=0;n{let{classNames:t,className:n,style:r,styles:i,vars:a,onMouseEnter:o,onMouseLeave:s,onKeyDown:c,children:l,ref:u,...d}=O(`MenuDropdown`,null,e),f=(0,P.useRef)(null),p=Tm(),m=Lm({enabled:!p.hasSearch,opened:p.opened,getDropdown:()=>f.current}),h=pa(c,e=>{m(e),!(e.defaultPrevented||p.hasSearch)&&(e.key===`ArrowUp`||e.key===`ArrowDown`)&&(e.preventDefault(),f.current?.querySelectorAll(`[data-menu-item]:not(:disabled)`)[0]?.focus())}),g=pa(o,()=>(p.trigger===`hover`||p.trigger===`click-hover`)&&p.openDropdown()),_=pa(s,()=>(p.trigger===`hover`||p.trigger===`click-hover`)&&p.closeDropdown());return(0,F.jsxs)(vd.Dropdown,{...d,onMouseEnter:g,onMouseLeave:_,role:`menu`,"aria-orientation":`vertical`,ref:La(u,f),...p.getStyles(`dropdown`,{className:n,style:r,styles:i,classNames:t,withStaticClass:!1}),tabIndex:-1,"data-menu-dropdown":!0,onKeyDown:h,children:[p.withInitialFocusPlaceholder&&!p.hasSearch&&(0,F.jsx)(`div`,{role:`presentation`,tabIndex:-1,"data-autofocus":!0,"data-mantine-stop-propagation":!0,style:{outline:0}}),l]})});Rm.classes=Am,Rm.displayName=`@mantine/core/MenuDropdown`;var zm=A(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,color:o,closeMenuOnClick:s,leftSection:c,rightSection:l,children:u,disabled:d,"data-disabled":f,ref:p,...m}=O(`MenuItem`,null,e),h=Tm(),_=(0,P.use)(Om),v=x(),{dir:y}=I(),b=(0,P.useRef)(null),S=m,C=pa(S.onClick,()=>{f||(typeof s==`boolean`?s&&h.closeDropdownImmediately():h.closeOnItemClick&&h.closeDropdownImmediately())}),w=pa(S.onMouseMove,()=>{if(!h.hasSearch)return;let e=b.current?.closest(`[data-menu-dropdown]`);e&&e.querySelectorAll(`[data-menu-active]`).forEach(t=>{t!==b.current&&t.closest(`[data-menu-dropdown]`)===e&&t.removeAttribute(`data-menu-active`)})}),T=o?v.variantColorResolver({color:o,theme:v,variant:`light`}):void 0,E=o?ie({color:o,theme:v}):null,D=pa(S.onKeyDown,e=>{e.key===`ArrowLeft`&&_&&(_.close(),_.focusParentItem())});return(0,F.jsxs)(g,{onMouseDown:e=>e.preventDefault(),...m,unstyled:h.unstyled,tabIndex:h.menuItemTabIndex,...h.getStyles(`item`,{className:n,style:r,styles:i,classNames:t}),ref:La(b,p),role:`menuitem`,disabled:d,"data-menu-item":!0,"data-disabled":d||f||void 0,"data-mantine-stop-propagation":!0,onClick:C,onMouseMove:w,onKeyDown:ca({siblingSelector:`[data-menu-item]:not([data-disabled])`,parentSelector:`[data-menu-dropdown]`,activateOnFocus:!1,loop:h.loop,dir:y,orientation:`vertical`,onKeyDown:D}),__vars:{"--menu-item-color":E?.isThemeColor&&E?.shade===void 0?`var(--mantine-color-${E.color}-6)`:T?.color,"--menu-item-hover":T?.hover},children:[h.alignItemsLabels===`all`&&(0,F.jsx)(`div`,{...h.getStyles(`itemIndicator`,{styles:i,classNames:t}),"data-placeholder":!0}),c&&(0,F.jsx)(`div`,{...h.getStyles(`itemSection`,{styles:i,classNames:t}),"data-position":`left`,children:c}),u&&(0,F.jsx)(`div`,{...h.getStyles(`itemLabel`,{styles:i,classNames:t}),"data-menu-item-label":!0,children:u}),l&&(0,F.jsx)(`div`,{...h.getStyles(`itemSection`,{styles:i,classNames:t}),"data-position":`right`,children:l})]})});zm.classes=Am,zm.displayName=`@mantine/core/MenuItem`;var Bm=_(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,...o}=O(`MenuLabel`,null,e);return(0,F.jsx)(N,{...Tm().getStyles(`label`,{className:n,style:r,styles:i,classNames:t}),...o})});Bm.classes=Am,Bm.displayName=`@mantine/core/MenuLabel`;var Vm=(0,P.createContext)(null);function Hm(e){let{value:t,defaultValue:n,onChange:r,children:i}=O(`MenuRadioGroup`,null,e),[a,o]=Ra({value:t,defaultValue:n,finalValue:null,onChange:r});return(0,F.jsx)(Vm,{value:{value:a,onChange:e=>o(e)},children:i})}Hm.displayName=`@mantine/core/MenuRadioGroup`;function Um({size:e,style:t,...n}){return(0,F.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 5 5`,style:{width:M(e),height:M(e),...t},"aria-hidden":!0,...n,children:(0,F.jsx)(`circle`,{cx:`2.5`,cy:`2.5`,r:`2.5`,fill:`currentColor`})})}var Wm=_(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,color:o,closeMenuOnClick:s,rightSection:c,children:l,disabled:u,"data-disabled":d,value:f,checked:p,onChange:m,checkIcon:h,ref:g,..._}=O(`MenuRadioItem`,null,e),v=Tm(),y=(0,P.use)(Vm),b=p??(y?y.value===f:!1);return(0,F.jsx)(km,{role:`menuitemradio`,checked:b,indicator:h??v.checkIcon??(0,F.jsx)(Um,{size:5}),onSelect:()=>{b||(m?m(f):y&&y.onChange(f))},color:o,closeMenuOnClick:s,rightSection:c,disabled:u,dataDisabled:d,className:n,style:r,styles:i,classNames:t,buttonRef:g,others:_,children:l})});Wm.classes=Am,Wm.displayName=`@mantine/core/MenuRadioItem`;var Gm=`[data-menu-item]:not([data-disabled])`,Km=`[data-menu-active]`;function qm(e){return e?.closest(`[data-menu-dropdown]`)}function Jm(e){return e?Array.from(e.querySelectorAll(Gm)).filter(t=>t.closest(`[data-menu-dropdown]`)===e):[]}function Ym(e){e&&e.querySelectorAll(Km).forEach(t=>{t.closest(`[data-menu-dropdown]`)===e&&t.removeAttribute(`data-menu-active`)})}function Xm(e,t){Ym(t),e&&(e.setAttribute(`data-menu-active`,`true`),e.scrollIntoView({block:`nearest`}))}function Zm(e){return e.findIndex(e=>e.hasAttribute(`data-menu-active`))}var Qm={clearSearchOnClose:!0},$m=_(e=>{let{classNames:t,styles:n,onKeyDown:r,onChange:i,size:a,clearSearchOnClose:o,ref:s,...c}=O(`MenuSearch`,Qm,e),l=Tm(),u=(0,P.useRef)(null),d=La(s,u),f=(0,P.useRef)(i);f.current=i,(0,P.useEffect)(()=>l.registerSearch(),[l.registerSearch]),(0,P.useEffect)(()=>{o?l.searchExitClearRef.current=()=>{f.current?.({currentTarget:{value:``}})}:l.searchExitClearRef.current=null},[o,l.searchExitClearRef]),(0,P.useEffect)(()=>{l.opened||Ym(qm(u.current))},[l.opened]);let p=pa(i,e=>{Ym(qm(e.currentTarget))}),m=pa(r,e=>{if(e.defaultPrevented)return;let t=qm(e.currentTarget),n=Jm(t);if(e.key===`ArrowDown`){if(e.preventDefault(),n.length===0)return;let r=Zm(n);Xm(n[r>=n.length-1?l.loop?0:r:r+1]??null,t)}else if(e.key===`ArrowUp`){if(e.preventDefault(),n.length===0)return;let r=Zm(n);Xm(n[r<=0?r===-1||l.loop?n.length-1:0:r-1]??null,t)}else if(e.key===`Home`)e.preventDefault(),n.length>0&&Xm(n[0],t);else if(e.key===`End`)e.preventDefault(),n.length>0&&Xm(n[n.length-1],t);else if(e.key===`Enter`){if(e.nativeEvent.isComposing||e.nativeEvent.keyCode===229)return;let t=n[Zm(n)];t&&(e.preventDefault(),t.hasAttribute(`data-sub-menu-item`)?(t.focus(),t.dispatchEvent(new KeyboardEvent(`keydown`,{key:`ArrowRight`,bubbles:!0}))):t.click())}}),h=l.getStyles(`search`);return(0,F.jsx)(oe,{"data-autofocus":!0,"data-mantine-stop-propagation":!0,type:`search`,size:a,...c,ref:d,classNames:[{input:h.className},t],styles:[{input:h.style},n],onKeyDown:m,onChange:p,__staticSelector:`Menu`})});$m.classes=Am,$m.displayName=`@mantine/core/MenuSearch`;var eh=_(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,onMouseEnter:o,onMouseLeave:s,onPointerEnter:c,onPointerLeave:l,onKeyDown:u,children:d,ref:f,...p}=O(`MenuSubDropdown`,null,e),m=(0,P.useRef)(null),h=Tm(),g=(0,P.use)(Om),_=Lm({enabled:!h.hasSearch,opened:g?.opened??!1,getDropdown:()=>m.current}),v=pa(u,e=>{_(e),!e.ctrlKey&&!e.metaKey&&!e.altKey&&e.key.length===1&&e.key!==` `&&e.stopPropagation()}),y=g?.getFloatingProps({onMouseEnter:o,onMouseLeave:s,onPointerEnter:c,onPointerLeave:l});return(0,F.jsx)(vd.Dropdown,{...p,...y,role:`menu`,"aria-orientation":`vertical`,ref:La(f,m,g?.setFloating),...h.getStyles(`dropdown`,{className:n,style:r,styles:i,classNames:t,withStaticClass:!1}),tabIndex:-1,"data-menu-dropdown":!0,onKeyDown:v,children:d})});eh.classes=Am,eh.displayName=`@mantine/core/MenuSubDropdown`;var th=A(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,color:o,leftSection:s,rightSection:c,children:l,disabled:u,"data-disabled":d,closeMenuOnClick:f,ref:p,...m}=O(`MenuSubItem`,null,e),h=Tm(),_=(0,P.use)(Om),v=x(),{dir:y}=I(),b=(0,P.useRef)(null),S=m,C=o?v.variantColorResolver({color:o,theme:v,variant:`light`}):void 0,w=o?ie({color:o,theme:v}):null,T=pa(S.onKeyDown,e=>{e.key===`ArrowRight`&&(_?.open(),_?.focusFirstItem()),e.key===`ArrowLeft`&&_?.parentContext&&(_.parentContext.close(),_.parentContext.focusParentItem())}),E=pa(S.onClick,()=>{!d&&f&&h.closeDropdownImmediately()}),D=pa(S.onMouseMove,()=>{if(!h.hasSearch)return;let e=b.current?.closest(`[data-menu-dropdown]`);e&&e.querySelectorAll(`[data-menu-active]`).forEach(t=>{t!==b.current&&t.closest(`[data-menu-dropdown]`)===e&&t.removeAttribute(`data-menu-active`)})}),k=_?.getReferenceProps({onMouseEnter:S.onMouseEnter,onMouseLeave:S.onMouseLeave,onPointerEnter:S.onPointerEnter,onPointerLeave:S.onPointerLeave});return(0,F.jsxs)(g,{onMouseDown:e=>e.preventDefault(),...m,...k,unstyled:h.unstyled,tabIndex:h.menuItemTabIndex,...h.getStyles(`item`,{className:n,style:r,styles:i,classNames:t}),ref:La(b,p,_?.setReference),role:`menuitem`,disabled:u,"data-menu-item":!0,"data-sub-menu-item":!0,"data-disabled":u||d||void 0,"data-mantine-stop-propagation":!0,onClick:E,onMouseMove:D,onKeyDown:ca({siblingSelector:`[data-menu-item]:not([data-disabled])`,parentSelector:`[data-menu-dropdown]`,activateOnFocus:!1,loop:h.loop,dir:y,orientation:`vertical`,onKeyDown:T}),__vars:{"--menu-item-color":w?.isThemeColor&&w?.shade===void 0?`var(--mantine-color-${w.color}-6)`:C?.color,"--menu-item-hover":C?.hover},children:[h.alignItemsLabels===`all`&&(0,F.jsx)(`div`,{...h.getStyles(`itemIndicator`,{styles:i,classNames:t}),"data-placeholder":!0}),s&&(0,F.jsx)(`div`,{...h.getStyles(`itemSection`,{styles:i,classNames:t}),"data-position":`left`,children:s}),l&&(0,F.jsx)(`div`,{...h.getStyles(`itemLabel`,{styles:i,classNames:t}),"data-menu-item-label":!0,children:l}),(0,F.jsx)(`div`,{...h.getStyles(`itemSection`,{styles:i,classNames:t}),"data-position":`right`,children:c||(0,F.jsx)(lp,{...h.getStyles(`chevron`),size:14})})]})});th.classes=Am,th.displayName=`@mantine/core/MenuSubItem`;function nh({children:e,refProp:t}){if(!na(e))throw Error(`Menu.Sub.Target component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported`);return Tm(),(0,F.jsx)(vd.Target,{refProp:t,popupType:`menu`,children:e})}nh.displayName=`@mantine/core/MenuSubTarget`;var rh={offset:0,position:`right-start`,safeAreaPolygon:!0,transitionProps:{duration:0},openDelay:0,middlewares:{shift:{crossAxis:!0}}};function ih(e){let{children:t,closeDelay:n,openDelay:r,position:i,safeAreaPolygon:a,opened:o,onChange:s,...c}=O(`MenuSub`,rh,e),l=pe(),[u,d]=Ra({value:o,finalValue:!1,onChange:s}),f=(0,P.use)(Om),p=Tm(),{dir:m}=I(),h=Wu(m,i),g=f?.registerOpenSub??p.registerOpenSub,_=(0,P.useRef)(null),v=(0,P.useCallback)(e=>{let t=_.current;return t&&t!==e&&t(),_.current=e,()=>{_.current===e&&(_.current=null)}},[]),y=(0,P.useRef)(d);y.current=d;let b=(0,P.useCallback)(()=>y.current(!0),[]),x=(0,P.useCallback)(()=>y.current(!1),[]);(0,P.useEffect)(()=>{if(u)return g(x)},[u,g,x]);let{context:S,refs:C}=bu({placement:h,open:u,onOpenChange:e=>{e?b():x()}}),{getReferenceProps:w,getFloatingProps:T}=wu([su(S,{handleClose:a?Au(typeof a==`object`?a:void 0):void 0,delay:{open:r,close:n}})]);return(0,F.jsx)(Om,{value:{opened:u,close:x,open:b,focusFirstItem:()=>window.setTimeout(()=>{document.getElementById(`${l}-dropdown`)?.querySelectorAll(`[data-menu-item]:not([data-disabled])`)[0]?.focus()},16),focusParentItem:()=>window.setTimeout(()=>{document.getElementById(`${l}-target`)?.focus()},16),parentContext:f,setReference:C.setReference,setFloating:C.setFloating,getReferenceProps:w,getFloatingProps:T,registerOpenSub:v},children:(0,F.jsx)(vd,{opened:u,onChange:e=>e?b():x(),withinPortal:!1,withArrow:!1,id:l,position:i,...c,children:t})})}ih.extend=e=>e,ih.displayName=`@mantine/core/MenuSub`,ih.Target=nh,ih.Dropdown=eh,ih.Item=th;var ah={refProp:`ref`};function oh(e){let{children:t,refProp:n,...r}=O(`MenuTarget`,ah,e),i=qa(t);if(!i)throw Error(`Menu.Target component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported`);let a=Tm(),o=i.props,s=pa(o.onClick,()=>{a.trigger===`click`?a.toggleDropdown():a.trigger===`click-hover`&&(a.setOpenedViaClick(!0),a.opened||a.openDropdown())}),c=pa(o.onMouseEnter,()=>(a.trigger===`hover`||a.trigger===`click-hover`)&&a.openDropdown()),l=pa(o.onMouseLeave,()=>{(a.trigger===`hover`||a.trigger===`click-hover`&&!a.openedViaClick)&&a.closeDropdown()});return(0,F.jsx)(vd.Target,{refProp:n,popupType:`menu`,...r,children:(0,P.cloneElement)(i,{onClick:s,onMouseEnter:c,onMouseLeave:l,"data-expanded":a.opened?!0:void 0})})}oh.displayName=`@mantine/core/MenuTarget`;var sh={trapFocus:!0,closeOnItemClick:!0,withInitialFocusPlaceholder:!0,clickOutsideEvents:[`mousedown`,`touchstart`,`keydown`],loop:!0,trigger:`click`,openDelay:0,closeDelay:100,menuItemTabIndex:-1,alignItemsLabels:`with-indicators`},ch=_(e=>{let t=O(`Menu`,sh,e),{children:n,onOpen:r,onClose:i,opened:a,defaultOpened:o,trapFocus:s,onChange:c,closeOnItemClick:l,loop:u,closeOnEscape:d,trigger:f,openDelay:p,closeDelay:m,classNames:h,styles:g,unstyled:_,variant:v,vars:y,menuItemTabIndex:b,keepMounted:x,withInitialFocusPlaceholder:S,attributes:C,onExitTransitionEnd:w,alignItemsLabels:D,checkIcon:k,...ee}=t,te=T({name:`Menu`,classes:Am,props:t,classNames:h,styles:g,unstyled:_,attributes:C}),[A,ne]=Ra({value:a,defaultValue:o,finalValue:!1,onChange:c}),[j,re]=(0,P.useState)(!1),ie=()=>{ne(!1),re(!1),A&&i?.()},ae=()=>{ne(!0),!A&&r?.()},oe=()=>{A?ie():ae()},{openDropdown:se,closeDropdown:ce}=Gu({open:ae,close:ie,closeDelay:m,openDelay:p}),le=(0,P.useRef)(null),ue=(0,P.useCallback)(e=>{let t=le.current;return t&&t!==e&&t(),le.current=e,()=>{le.current===e&&(le.current=null)}},[]),de=(0,P.useRef)(0),[fe,M]=(0,P.useState)(!1),pe=(0,P.useCallback)(()=>(de.current+=1,de.current===1&&M(!0),()=>{--de.current,de.current===0&&M(!1)}),[]),me=(0,P.useRef)(null),he=()=>{me.current?.(),w?.()},ge=e=>_a(`[data-menu-item]`,`[data-menu-dropdown]`,e),{resolvedClassNames:_e,resolvedStyles:ve}=E({classNames:h,styles:g,props:t});return(0,F.jsx)(wm,{value:{getStyles:te,opened:A,toggleDropdown:oe,getItemIndex:ge,openedViaClick:j,setOpenedViaClick:re,closeOnItemClick:l,closeDropdown:f===`click`?ie:ce,openDropdown:f===`click`?ae:se,closeDropdownImmediately:ie,loop:u,trigger:f,unstyled:_,menuItemTabIndex:b,withInitialFocusPlaceholder:S,registerOpenSub:ue,hasSearch:fe,registerSearch:pe,searchExitClearRef:me,alignItemsLabels:D,checkIcon:k},children:(0,F.jsx)(vd,{returnFocus:!0,...ee,opened:A,onChange:oe,defaultOpened:o,trapFocus:!x&&s,closeOnEscape:d,__staticSelector:`Menu`,classNames:_e,styles:ve,unstyled:_,variant:v,keepMounted:x,onExitTransitionEnd:he,children:n})})});ch.displayName=`@mantine/core/Menu`,ch.classes=Am,ch.Item=zm,ch.Label=Bm,ch.Dropdown=Rm,ch.Target=oh,ch.Divider=Nm,ch.Search=$m,ch.Sub=ih,ch.CheckboxItem=jm,ch.CheckboxGroup=Dm,ch.RadioItem=Wm,ch.RadioGroup=Hm,ch.ContextMenu=Mm;var[lh,uh]=ra(`Modal component was not found in tree`),dh={root:`m_9df02822`,content:`m_54c44539`,inner:`m_1f958f16`,header:`m_d0e2b9cd`},fh=_(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,...o}=O(`ModalBody`,null,e);return(0,F.jsx)($f,{...uh().getStyles(`body`,{classNames:t,style:r,styles:i,className:n}),...o})});fh.classes=dh,fh.displayName=`@mantine/core/ModalBody`;var ph=_(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,...o}=O(`ModalCloseButton`,null,e);return(0,F.jsx)(ep,{...uh().getStyles(`close`,{classNames:t,style:r,styles:i,className:n}),...o})});ph.classes=dh,ph.displayName=`@mantine/core/ModalCloseButton`;var mh=_(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,children:o,__hidden:s,...c}=O(`ModalContent`,null,e),l=uh(),u=l.scrollAreaComponent||cp;return(0,F.jsx)(tp,{...l.getStyles(`content`,{className:n,style:r,styles:i,classNames:t}),innerProps:l.getStyles(`inner`,{className:n,style:r,styles:i,classNames:t}),"data-full-screen":l.fullScreen||void 0,"data-modal-content":!0,"data-hidden":s||void 0,...c,children:(0,F.jsx)(u,{style:{maxHeight:l.fullScreen?`100dvh`:`calc(100dvh - (${M(l.yOffset)} * 2))`},children:o})})});mh.classes=dh,mh.displayName=`@mantine/core/ModalContent`;var hh=_(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,...o}=O(`ModalHeader`,null,e);return(0,F.jsx)(np,{...uh().getStyles(`header`,{classNames:t,style:r,styles:i,className:n}),...o})});hh.classes=dh,hh.displayName=`@mantine/core/ModalHeader`;var gh=_(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,...o}=O(`ModalOverlay`,null,e);return(0,F.jsx)(ap,{...uh().getStyles(`overlay`,{classNames:t,style:r,styles:i,className:n}),...o})});gh.classes=dh,gh.displayName=`@mantine/core/ModalOverlay`;var _h={__staticSelector:`Modal`,closeOnClickOutside:!0,withinPortal:!0,lockScroll:!0,trapFocus:!0,returnFocus:!0,closeOnEscape:!0,keepMounted:!1,zIndex:ua(`modal`),transitionProps:{duration:200,transition:`fade-down`},yOffset:`5dvh`},vh=k((e,{radius:t,size:n,yOffset:r,xOffset:i})=>({root:{"--modal-radius":t===void 0?void 0:ce(t),"--modal-size":Pe(n,`modal-size`),"--modal-y-offset":M(r),"--modal-x-offset":M(i)}})),yh=_(e=>{let t=O(`ModalRoot`,_h,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,yOffset:c,scrollAreaComponent:l,radius:u,fullScreen:d,centered:f,xOffset:p,__staticSelector:m,attributes:h,...g}=t,_=T({name:m,classes:dh,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:h,vars:s,varsResolver:vh});return(0,F.jsx)(lh,{value:{yOffset:c,scrollAreaComponent:l,getStyles:_,fullScreen:d},children:(0,F.jsx)(Xf,{..._(`root`),"data-full-screen":d||void 0,"data-centered":f||void 0,"data-offset-scrollbars":l===Nu.Autosize||void 0,unstyled:o,...g})})});yh.classes=dh,yh.varsResolver=vh,yh.displayName=`@mantine/core/ModalRoot`;var bh=(0,P.createContext)(null);function xh({children:e}){let[t,n]=(0,P.useState)([]),[r,i]=(0,P.useState)(ua(`modal`));return(0,F.jsx)(bh,{value:{stack:t,addModal:(e,t)=>{n(t=>[...new Set([...t,e])]),i(e=>typeof t==`number`&&typeof e==`number`?Math.max(e,t):e)},removeModal:e=>n(t=>t.filter(t=>t!==e)),getZIndex:e=>`calc(${r} + ${t.indexOf(e)} + 1)`,currentId:t[t.length-1],maxZIndex:r},children:e})}xh.displayName=`@mantine/core/ModalStack`;var Sh=_(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,...o}=O(`ModalTitle`,null,e);return(0,F.jsx)(sp,{...uh().getStyles(`title`,{classNames:t,style:r,styles:i,className:n}),...o})});Sh.classes=dh,Sh.displayName=`@mantine/core/ModalTitle`;var Ch={closeOnClickOutside:!0,withinPortal:!0,lockScroll:!0,trapFocus:!0,returnFocus:!0,closeOnEscape:!0,keepMounted:!1,zIndex:ua(`modal`),transitionProps:{duration:200,transition:`fade-down`},withOverlay:!0,withCloseButton:!0},wh=_(e=>{let{title:t,withOverlay:n,overlayProps:r,withCloseButton:i,closeButtonProps:a,children:o,radius:s,opened:c,stackId:l,zIndex:u,...d}=O(`Modal`,Ch,e),f=(0,P.use)(bh),p=!!t||i,m=f&&l?{closeOnEscape:f.currentId===l,trapFocus:f.currentId===l,zIndex:f.getZIndex(l)}:{},h=n===!1?!1:l&&f?f.currentId===l:c;return(0,P.useEffect)(()=>{f&&l&&(c?f.addModal(l,u||ua(`modal`)):f.removeModal(l))},[c,l,u]),(0,F.jsxs)(yh,{radius:s,opened:c,zIndex:f&&l?f.getZIndex(l):u,...d,...m,children:[n&&(0,F.jsx)(gh,{visible:h,transitionProps:f&&l?{duration:0}:void 0,...r}),(0,F.jsxs)(mh,{radius:s,__hidden:f&&l&&c?l!==f.currentId:!1,children:[p&&(0,F.jsxs)(hh,{children:[t&&(0,F.jsx)(Sh,{children:t}),i&&(0,F.jsx)(ph,{...a})]}),(0,F.jsx)(fh,{children:o})]})]})});wh.classes=dh,wh.displayName=`@mantine/core/Modal`,wh.Root=yh,wh.Overlay=gh,wh.Content=mh,wh.Body=fh,wh.Header=hh,wh.Title=Sh,wh.CloseButton=ph,wh.Stack=xh;function Th({offset:e,position:t,defaultOpened:n}){let[r,i]=(0,P.useState)(n),a=(0,P.useRef)(null),{x:o,y:s,elements:c,refs:l,update:u,placement:d}=bu({placement:t,middleware:[Ol({crossAxis:!0,padding:5,rootBoundary:`document`})]}),f=d.includes(`right`)?e:t.includes(`left`)?e*-1:0,p=d.includes(`bottom`)?e:t.includes(`top`)?e*-1:0,m=(0,P.useCallback)(({clientX:e,clientY:t})=>{l.setPositionReference({getBoundingClientRect(){return{width:0,height:0,x:e,y:t,left:e+f,top:t+p,right:e,bottom:t}}})},[c.reference]);return(0,P.useEffect)(()=>{if(l.floating.current){let e=a.current;e.addEventListener(`mousemove`,m);let t=vs(l.floating.current);return t.forEach(e=>{e.addEventListener(`scroll`,u)}),()=>{e.removeEventListener(`mousemove`,m),t.forEach(e=>{e.removeEventListener(`scroll`,u)})}}},[c.reference,l.floating.current,u,m,r]),{handleMouseMove:m,x:o,y:s,opened:r,setOpened:i,boundaryRef:a,floating:l.setFloating}}var Eh={tooltip:`m_1b3c8819`,arrow:`m_f898399f`},Dh={refProp:`ref`,withinPortal:!0,offset:10,position:`right`,zIndex:ua(`popover`)},Oh=k((e,{radius:t,color:n})=>({tooltip:{"--tooltip-radius":t===void 0?void 0:ce(t),"--tooltip-bg":n?S(n,e):void 0,"--tooltip-color":n?`var(--mantine-color-white)`:void 0}})),kh=_(e=>{let t=O(`TooltipFloating`,Dh,e),{children:n,refProp:r,withinPortal:i,style:a,className:o,classNames:s,styles:c,unstyled:l,radius:u,color:d,label:f,offset:p,position:m,multiline:h,zIndex:g,disabled:_,defaultOpened:v,variant:y,vars:b,portalProps:S,attributes:C,ref:w,...E}=t,D=x(),k=T({name:`TooltipFloating`,props:t,classes:Eh,className:o,style:a,classNames:s,styles:c,unstyled:l,attributes:C,rootSelector:`tooltip`,vars:b,varsResolver:Oh}),{handleMouseMove:ee,x:te,y:A,opened:ne,boundaryRef:j,floating:re,setOpened:ie}=Th({offset:p,position:m,defaultOpened:v}),ae=qa(n);if(!ae)throw Error(`[@mantine/core] Tooltip.Floating component children should be an element or a component that accepts ref, fragments, strings, numbers and other primitive values are not supported`);let oe=La(j,Ka(ae),w),se=ae.props,ce=e=>{se.onMouseEnter?.(e),ee(e),ie(!0)},le=e=>{se.onMouseLeave?.(e),ie(!1)};return(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(ed,{...S,withinPortal:i,children:(0,F.jsx)(N,{...E,...k(`tooltip`,{style:{...go(a,D),zIndex:g,display:!_&&ne?`block`:`none`,top:(A&&Math.round(A))??``,left:(te&&Math.round(te))??``}}),variant:y,ref:re,mod:{multiline:h},children:f})}),(0,P.cloneElement)(ae,{...se,[r]:oe,onMouseEnter:ce,onMouseLeave:le})]})});kh.classes=Eh,kh.varsResolver=Oh,kh.displayName=`@mantine/core/TooltipFloating`;var Ah=(0,P.createContext)({withinGroup:!1}),jh={openDelay:0,closeDelay:0};function Mh(e){let{openDelay:t,closeDelay:n,children:r}=O(`TooltipGroup`,jh,e);return(0,F.jsx)(Ah,{value:{withinGroup:!0},children:(0,F.jsx)(du,{delay:{open:t,close:n},children:r})})}Mh.displayName=`@mantine/core/TooltipGroup`,Mh.extend=e=>e;function Nh(e){if(e===void 0)return{shift:!0,flip:!0};let t={...e};return e.shift===void 0&&(t.shift=!0),e.flip===void 0&&(t.flip=!0),t}function Ph(e){let t=Nh(e.middlewares),n=[Dl(e.offset)];return t.shift&&n.push(Ol(typeof t.shift==`boolean`?{padding:8}:{padding:8,...t.shift})),t.flip&&n.push(typeof t.flip==`boolean`?Al():Al(t.flip)),n.push(Pl({element:e.arrowRef,padding:e.arrowOffset})),t.inline?n.push(typeof t.inline==`boolean`?Nl():Nl(t.inline)):e.inline&&n.push(Nl()),n}function Fh(e){let[t,n]=(0,P.useState)(e.defaultOpened),r=typeof e.opened==`boolean`?e.opened:t,i=(0,P.use)(Ah).withinGroup,a=pe(),o=(0,P.useCallback)(e=>{n(e),e&&g(a)},[a]),{x:s,y:c,context:l,refs:u,placement:d,middlewareData:{arrow:{x:f,y:p}={}}}=bu({strategy:e.strategy,placement:e.position,open:r,onOpenChange:o,middleware:Ph(e),whileElementsMounted:ul}),{delay:m,currentId:h,setCurrentId:g}=fu(l,{id:a}),{getReferenceProps:_,getFloatingProps:v}=wu([su(l,{enabled:e.events?.hover,delay:i?m:{open:e.openDelay,close:e.closeDelay},mouseOnly:!e.events?.touch,handleClose:e.interactive?Au():null}),Su(l,{enabled:e.events?.focus,visibleOnly:!0}),Eu(l,{role:`tooltip`}),vu(l,{enabled:e.opened===void 0})]),y=(0,P.useRef)(d);Ee(()=>{y.current!==d&&(y.current=d,e.onPositionChange?.(d))},[d]);let b=r&&h&&h!==a;return{x:s,y:c,arrowX:f,arrowY:p,reference:u.setReference,floating:u.setFloating,getFloatingProps:v,getReferenceProps:_,isGroupPhase:b,opened:r,placement:d}}var Ih={position:`top`,refProp:`ref`,withinPortal:!0,arrowSize:4,arrowOffset:5,arrowRadius:0,arrowPosition:`side`,offset:5,transitionProps:{duration:100,transition:`fade`},events:{hover:!0,focus:!1,touch:!1},zIndex:ua(`popover`),middlewares:{flip:!0,shift:!0,inline:!1}},Lh=k((e,{radius:t,color:n,variant:r,autoContrast:i})=>{let a=e.variantColorResolver({theme:e,color:n||e.primaryColor,autoContrast:i,variant:r||`filled`});return{tooltip:{"--tooltip-radius":t===void 0?void 0:ce(t),"--tooltip-bg":n?a.background:void 0,"--tooltip-color":n?a.color:void 0}}}),Rh=_(e=>{let t=O(`Tooltip`,Ih,e),{children:n,position:r,refProp:i,label:a,openDelay:o,closeDelay:s,onPositionChange:c,opened:l,defaultOpened:u,withinPortal:d,radius:f,color:p,classNames:m,styles:h,unstyled:g,style:_,className:v,withArrow:y,arrowSize:b,arrowOffset:x,arrowRadius:S,arrowPosition:C,offset:w,transitionProps:E,multiline:D,events:k,interactive:ee,zIndex:te,disabled:A,onClick:ne,onMouseEnter:j,onMouseLeave:re,inline:ie,variant:oe,keepMounted:se,vars:ce,portalProps:le,mod:ue,floatingStrategy:de,middlewares:fe,autoContrast:M,attributes:pe,target:me,ref:he,...ge}=t,{dir:_e}=I(),ve=(0,P.useRef)(null),ye=Fh({position:Wu(_e,r),closeDelay:s,openDelay:o,onPositionChange:c,opened:l,defaultOpened:u,events:k,interactive:ee,arrowRef:ve,arrowOffset:x,offset:typeof w==`number`?w+(y?b/2:0):w,inline:ie,strategy:de,middlewares:fe});(0,P.useEffect)(()=>{let e=me instanceof HTMLElement?me:typeof me==`string`?document.querySelector(me):me?.current||null;e&&ye.reference(e)},[me,ye]);let be=T({name:`Tooltip`,props:t,classes:Eh,className:v,style:_,classNames:m,styles:h,unstyled:g,attributes:pe,rootSelector:`tooltip`,vars:ce,varsResolver:Lh}),xe=qa(n);if(!me&&!xe)throw Error(`[@mantine/core] Tooltip component children should be an element or a component that accepts ref, fragments, strings, numbers and other primitive values are not supported`);let Se=be(`tooltip`),Ce=ee&&!A&&!!ye.opened,we=C===`merge`&&y?Hu({position:ye.placement,dir:_e}):void 0;if(me){let e=nd(E,{duration:100,transition:`fade`});return(0,F.jsx)(F.Fragment,{children:(0,F.jsx)(ed,{...le,withinPortal:d,children:(0,F.jsx)(Be,{...e,keepMounted:se,mounted:!A&&!!ye.opened,duration:ye.isGroupPhase?10:e.duration,children:e=>(0,F.jsxs)(N,{...ge,"data-fixed":de===`fixed`||void 0,variant:oe,mod:[{multiline:D,interactive:Ce},ue],...Se,...ye.getFloatingProps({ref:ye.floating,className:Se.className,style:{...Se.style,...e,...we,zIndex:te,top:ye.y??0,left:ye.x??0}}),children:[a,(0,F.jsx)(Uu,{ref:ve,arrowX:ye.arrowX,arrowY:ye.arrowY,visible:y,position:ye.placement,arrowSize:b,arrowOffset:x,arrowRadius:S,arrowPosition:C,...be(`arrow`)})]})})})})}let Te=xe.props,Ee=La(ye.reference,Ka(xe),he),De=nd(E,{duration:100,transition:`fade`});return(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(ed,{...le,withinPortal:d,children:(0,F.jsx)(Be,{...De,keepMounted:se,mounted:!A&&!!ye.opened,duration:ye.isGroupPhase?10:De.duration,children:e=>(0,F.jsxs)(N,{...ge,"data-fixed":de===`fixed`||void 0,variant:oe,mod:[{multiline:D,interactive:Ce},ue],...ye.getFloatingProps({ref:ye.floating,className:be(`tooltip`).className,style:{...be(`tooltip`).style,...e,...we,zIndex:te,top:ye.y??0,left:ye.x??0}}),children:[a,(0,F.jsx)(Uu,{ref:ve,arrowX:ye.arrowX,arrowY:ye.arrowY,visible:y,position:ye.placement,arrowSize:b,arrowOffset:x,arrowRadius:S,arrowPosition:C,...be(`arrow`)})]})})}),(0,P.cloneElement)(xe,ye.getReferenceProps({onClick:ne,onMouseEnter:j,onMouseLeave:re,onMouseMove:t.onMouseMove,onPointerDown:t.onPointerDown,onPointerEnter:t.onPointerEnter,...Te,className:ae(v,Te.className),[i]:Ee}))]})});Rh.classes=Eh,Rh.varsResolver=Lh,Rh.displayName=`@mantine/core/Tooltip`,Rh.Floating=kh,Rh.Group=Mh;function zh(e){if(e!==void 0)return typeof e==`number`?M(e):e}function Bh({spacing:e,verticalSpacing:t,cols:n,minColWidth:r,autoRows:i,selector:a}){let o=x(),s=t===void 0?e:t,c=r!==void 0,l=Se({"--sg-spacing-x":de(ga(e)),"--sg-spacing-y":de(ga(s)),"--sg-auto-rows":i,...c?{"--sg-min-col-width":zh(r)}:{"--sg-cols":ga(n)?.toString()}}),u=ke(o.breakpoints).reduce((t,r)=>(t[r]||(t[r]={}),typeof e==`object`&&e[r]!==void 0&&(t[r][`--sg-spacing-x`]=de(e[r])),typeof s==`object`&&s[r]!==void 0&&(t[r][`--sg-spacing-y`]=de(s[r])),!c&&typeof n==`object`&&n[r]!==void 0&&(t[r][`--sg-cols`]=n[r]),t),{});return(0,F.jsx)(be,{styles:l,media:ha(ke(u),o.breakpoints).filter(e=>ke(u[e.value]).length>0).map(e=>({query:`(min-width: ${o.breakpoints[e.value]})`,styles:u[e.value]})),selector:a})}function Vh(e){return typeof e==`object`&&e?ke(e):[]}function Hh(e){return e.sort((e,t)=>ta(e)-ta(t))}function Uh({spacing:e,verticalSpacing:t,cols:n,minColWidth:r}){return Hh(Array.from(new Set([...Vh(e),...Vh(t),...r===void 0?Vh(n):[]])))}function Wh({spacing:e,verticalSpacing:t,cols:n,minColWidth:r,autoRows:i,selector:a}){let o=t===void 0?e:t,s=r!==void 0,c=Se({"--sg-spacing-x":de(ga(e)),"--sg-spacing-y":de(ga(o)),"--sg-auto-rows":i,...s?{"--sg-min-col-width":zh(r)}:{"--sg-cols":ga(n)?.toString()}}),l=Uh({spacing:e,verticalSpacing:t,cols:n,minColWidth:r}),u=l.reduce((t,r)=>(t[r]||(t[r]={}),typeof e==`object`&&e[r]!==void 0&&(t[r][`--sg-spacing-x`]=de(e[r])),typeof o==`object`&&o[r]!==void 0&&(t[r][`--sg-spacing-y`]=de(o[r])),!s&&typeof n==`object`&&n[r]!==void 0&&(t[r][`--sg-cols`]=n[r]),t),{});return(0,F.jsx)(be,{styles:c,container:l.map(e=>({query:`simple-grid (min-width: ${e})`,styles:u[e]})),selector:a})}var Gh={container:`m_925c2d2c`,root:`m_2415a157`},Kh={cols:1,spacing:`md`,type:`media`},qh=_(e=>{let t=O(`SimpleGrid`,Kh,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,cols:c,verticalSpacing:l,spacing:u,type:d,minColWidth:f,autoFlow:p,autoRows:m,attributes:h,...g}=t,_=T({name:`SimpleGrid`,classes:Gh,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:h,vars:s}),v=D(),y=f===void 0?void 0:p||`auto-fill`;return d===`container`?(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(Wh,{...t,selector:`.${v}`}),(0,F.jsx)(`div`,{..._(`container`),children:(0,F.jsx)(N,{..._(`root`,{className:v}),...g,"data-auto-cols":y})})]}):(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(Bh,{...t,selector:`.${v}`}),(0,F.jsx)(N,{..._(`root`,{className:v}),...g,"data-auto-cols":y})]})});qh.classes=Gh,qh.displayName=`@mantine/core/SimpleGrid`;var Jh={root:`m_d08caa0`},Yh=_(e=>{let t=O(`Typography`,null,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,attributes:s,...c}=t;return(0,F.jsx)(N,{...T({name:`Typography`,classes:Jh,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:s})(`root`),...c})});Yh.classes=Jh,Yh.displayName=`@mantine/core/Typography`;var Xh=[];for(let e=0;e<256;++e)Xh.push((e+256).toString(16).slice(1));function Zh(e,t=0){return(Xh[e[t+0]]+Xh[e[t+1]]+Xh[e[t+2]]+Xh[e[t+3]]+`-`+Xh[e[t+4]]+Xh[e[t+5]]+`-`+Xh[e[t+6]]+Xh[e[t+7]]+`-`+Xh[e[t+8]]+Xh[e[t+9]]+`-`+Xh[e[t+10]]+Xh[e[t+11]]+Xh[e[t+12]]+Xh[e[t+13]]+Xh[e[t+14]]+Xh[e[t+15]]).toLowerCase()}var Qh,$h=new Uint8Array(16);function eg(){if(!Qh){if(typeof crypto>`u`||!crypto.getRandomValues)throw Error(`crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported`);Qh=crypto.getRandomValues.bind(crypto)}return Qh($h)}var tg={randomUUID:typeof crypto<`u`&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function ng(e,t,n){if(tg.randomUUID&&!t&&!e)return tg.randomUUID();e||={};let r=e.random??e.rng?.()??eg();if(r.length<16)throw Error(`Random bytes length must be >= 16`);if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,t){if(n||=0,n<0||n+16>t.length)throw RangeError(`UUID byte range ${n}:${n+15} is out of buffer bounds`);for(let e=0;e<16;++e)t[n+e]=r[e];return t}return Zh(r)}var rg;(function(e){e.assertEqual=e=>{};function t(e){}e.assertIs=t;function n(e){throw Error()}e.assertNever=n,e.arrayToEnum=e=>{let t={};for(let n of e)t[n]=n;return t},e.getValidEnumValues=t=>{let n=e.objectKeys(t).filter(e=>typeof t[t[e]]!=`number`),r={};for(let e of n)r[e]=t[e];return e.objectValues(r)},e.objectValues=t=>e.objectKeys(t).map(function(e){return t[e]}),e.objectKeys=typeof Object.keys==`function`?e=>Object.keys(e):e=>{let t=[];for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.push(n);return t},e.find=(e,t)=>{for(let n of e)if(t(n))return n},e.isInteger=typeof Number.isInteger==`function`?e=>Number.isInteger(e):e=>typeof e==`number`&&Number.isFinite(e)&&Math.floor(e)===e;function r(e,t=` | `){return e.map(e=>typeof e==`string`?`'${e}'`:e).join(t)}e.joinValues=r,e.jsonStringifyReplacer=(e,t)=>typeof t==`bigint`?t.toString():t})(rg||={});var ig;(function(e){e.mergeShapes=(e,t)=>({...e,...t})})(ig||={});var L=rg.arrayToEnum([`string`,`nan`,`number`,`integer`,`float`,`boolean`,`date`,`bigint`,`symbol`,`function`,`undefined`,`null`,`array`,`object`,`unknown`,`promise`,`void`,`never`,`map`,`set`]),ag=e=>{switch(typeof e){case`undefined`:return L.undefined;case`string`:return L.string;case`number`:return Number.isNaN(e)?L.nan:L.number;case`boolean`:return L.boolean;case`function`:return L.function;case`bigint`:return L.bigint;case`symbol`:return L.symbol;case`object`:return Array.isArray(e)?L.array:e===null?L.null:e.then&&typeof e.then==`function`&&e.catch&&typeof e.catch==`function`?L.promise:typeof Map<`u`&&e instanceof Map?L.map:typeof Set<`u`&&e instanceof Set?L.set:typeof Date<`u`&&e instanceof Date?L.date:L.object;default:return L.unknown}},R=rg.arrayToEnum([`invalid_type`,`invalid_literal`,`custom`,`invalid_union`,`invalid_union_discriminator`,`invalid_enum_value`,`unrecognized_keys`,`invalid_arguments`,`invalid_return_type`,`invalid_date`,`invalid_string`,`too_small`,`too_big`,`invalid_intersection_types`,`not_multiple_of`,`not_finite`]),og=class e extends Error{get errors(){return this.issues}constructor(e){super(),this.issues=[],this.addIssue=e=>{this.issues=[...this.issues,e]},this.addIssues=(e=[])=>{this.issues=[...this.issues,...e]};let t=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,t):this.__proto__=t,this.name=`ZodError`,this.issues=e}format(e){let t=e||function(e){return e.message},n={_errors:[]},r=e=>{for(let i of e.issues)if(i.code===`invalid_union`)i.unionErrors.map(r);else if(i.code===`invalid_return_type`)r(i.returnTypeError);else if(i.code===`invalid_arguments`)r(i.argumentsError);else if(i.path.length===0)n._errors.push(t(i));else{let e=n,r=0;for(;re.message){let t={},n=[];for(let r of this.issues)if(r.path.length>0){let n=r.path[0];t[n]=t[n]||[],t[n].push(e(r))}else n.push(e(r));return{formErrors:n,fieldErrors:t}}get formErrors(){return this.flatten()}};og.create=e=>new og(e);var sg=(e,t)=>{let n;switch(e.code){case R.invalid_type:n=e.received===L.undefined?`Required`:`Expected ${e.expected}, received ${e.received}`;break;case R.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,rg.jsonStringifyReplacer)}`;break;case R.unrecognized_keys:n=`Unrecognized key(s) in object: ${rg.joinValues(e.keys,`, `)}`;break;case R.invalid_union:n=`Invalid input`;break;case R.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${rg.joinValues(e.options)}`;break;case R.invalid_enum_value:n=`Invalid enum value. Expected ${rg.joinValues(e.options)}, received '${e.received}'`;break;case R.invalid_arguments:n=`Invalid function arguments`;break;case R.invalid_return_type:n=`Invalid function return type`;break;case R.invalid_date:n=`Invalid date`;break;case R.invalid_string:typeof e.validation==`object`?`includes`in e.validation?(n=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position==`number`&&(n=`${n} at one or more positions greater than or equal to ${e.validation.position}`)):`startsWith`in e.validation?n=`Invalid input: must start with "${e.validation.startsWith}"`:`endsWith`in e.validation?n=`Invalid input: must end with "${e.validation.endsWith}"`:rg.assertNever(e.validation):n=e.validation===`regex`?`Invalid`:`Invalid ${e.validation}`;break;case R.too_small:n=e.type===`array`?`Array must contain ${e.exact?`exactly`:e.inclusive?`at least`:`more than`} ${e.minimum} element(s)`:e.type===`string`?`String must contain ${e.exact?`exactly`:e.inclusive?`at least`:`over`} ${e.minimum} character(s)`:e.type===`number`||e.type===`bigint`?`Number must be ${e.exact?`exactly equal to `:e.inclusive?`greater than or equal to `:`greater than `}${e.minimum}`:e.type===`date`?`Date must be ${e.exact?`exactly equal to `:e.inclusive?`greater than or equal to `:`greater than `}${new Date(Number(e.minimum))}`:`Invalid input`;break;case R.too_big:n=e.type===`array`?`Array must contain ${e.exact?`exactly`:e.inclusive?`at most`:`less than`} ${e.maximum} element(s)`:e.type===`string`?`String must contain ${e.exact?`exactly`:e.inclusive?`at most`:`under`} ${e.maximum} character(s)`:e.type===`number`?`Number must be ${e.exact?`exactly`:e.inclusive?`less than or equal to`:`less than`} ${e.maximum}`:e.type===`bigint`?`BigInt must be ${e.exact?`exactly`:e.inclusive?`less than or equal to`:`less than`} ${e.maximum}`:e.type===`date`?`Date must be ${e.exact?`exactly`:e.inclusive?`smaller than or equal to`:`smaller than`} ${new Date(Number(e.maximum))}`:`Invalid input`;break;case R.custom:n=`Invalid input`;break;case R.invalid_intersection_types:n=`Intersection results could not be merged`;break;case R.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case R.not_finite:n=`Number must be finite`;break;default:n=t.defaultError,rg.assertNever(e)}return{message:n}},cg=sg;function lg(){return cg}var ug=e=>{let{data:t,path:n,errorMaps:r,issueData:i}=e,a=[...n,...i.path||[]],o={...i,path:a};if(i.message!==void 0)return{...i,path:a,message:i.message};let s=``,c=r.filter(e=>!!e).slice().reverse();for(let e of c)s=e(o,{data:t,defaultError:s}).message;return{...i,path:a,message:s}};function z(e,t){let n=lg(),r=ug({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,n,n===sg?void 0:sg].filter(e=>!!e)});e.common.issues.push(r)}var dg=class e{constructor(){this.value=`valid`}dirty(){this.value===`valid`&&(this.value=`dirty`)}abort(){this.value!==`aborted`&&(this.value=`aborted`)}static mergeArray(e,t){let n=[];for(let r of t){if(r.status===`aborted`)return B;r.status===`dirty`&&e.dirty(),n.push(r.value)}return{status:e.value,value:n}}static async mergeObjectAsync(t,n){let r=[];for(let e of n){let t=await e.key,n=await e.value;r.push({key:t,value:n})}return e.mergeObjectSync(t,r)}static mergeObjectSync(e,t){let n={};for(let r of t){let{key:t,value:i}=r;if(t.status===`aborted`||i.status===`aborted`)return B;t.status===`dirty`&&e.dirty(),i.status===`dirty`&&e.dirty(),t.value!==`__proto__`&&(i.value!==void 0||r.alwaysSet)&&(n[t.value]=i.value)}return{status:e.value,value:n}}},B=Object.freeze({status:`aborted`}),fg=e=>({status:`dirty`,value:e}),pg=e=>({status:`valid`,value:e}),mg=e=>e.status===`aborted`,hg=e=>e.status===`dirty`,gg=e=>e.status===`valid`,_g=e=>typeof Promise<`u`&&e instanceof Promise,V;(function(e){e.errToObj=e=>typeof e==`string`?{message:e}:e||{},e.toString=e=>typeof e==`string`?e:e?.message})(V||={});var vg=class{constructor(e,t,n,r){this._cachedPath=[],this.parent=e,this.data=t,this._path=n,this._key=r}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}},yg=(e,t)=>{if(gg(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw Error(`Validation failed but no issues detected.`);return{success:!1,get error(){if(this._error)return this._error;let t=new og(e.common.issues);return this._error=t,this._error}}};function bg(e){if(!e)return{};let{errorMap:t,invalid_type_error:n,required_error:r,description:i}=e;if(t&&(n||r))throw Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:i}:{errorMap:(t,i)=>{let{message:a}=e;return t.code===`invalid_enum_value`?{message:a??i.defaultError}:i.data===void 0?{message:a??r??i.defaultError}:t.code===`invalid_type`?{message:a??n??i.defaultError}:{message:i.defaultError}},description:i}}var xg=class{get description(){return this._def.description}_getType(e){return ag(e.data)}_getOrReturnCtx(e,t){return t||{common:e.parent.common,data:e.data,parsedType:ag(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new dg,ctx:{common:e.parent.common,data:e.data,parsedType:ag(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){let t=this._parse(e);if(_g(t))throw Error(`Synchronous parse encountered promise.`);return t}_parseAsync(e){let t=this._parse(e);return Promise.resolve(t)}parse(e,t){let n=this.safeParse(e,t);if(n.success)return n.data;throw n.error}safeParse(e,t){let n={common:{issues:[],async:t?.async??!1,contextualErrorMap:t?.errorMap},path:t?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:ag(e)};return yg(n,this._parseSync({data:e,path:n.path,parent:n}))}"~validate"(e){let t={common:{issues:[],async:!!this[`~standard`].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:ag(e)};if(!this[`~standard`].async)try{let n=this._parseSync({data:e,path:[],parent:t});return gg(n)?{value:n.value}:{issues:t.common.issues}}catch(e){e?.message?.toLowerCase()?.includes(`encountered`)&&(this[`~standard`].async=!0),t.common={issues:[],async:!0}}return this._parseAsync({data:e,path:[],parent:t}).then(e=>gg(e)?{value:e.value}:{issues:t.common.issues})}async parseAsync(e,t){let n=await this.safeParseAsync(e,t);if(n.success)return n.data;throw n.error}async safeParseAsync(e,t){let n={common:{issues:[],contextualErrorMap:t?.errorMap,async:!0},path:t?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:ag(e)},r=this._parse({data:e,path:n.path,parent:n});return yg(n,await(_g(r)?r:Promise.resolve(r)))}refine(e,t){let n=e=>typeof t==`string`||t===void 0?{message:t}:typeof t==`function`?t(e):t;return this._refinement((t,r)=>{let i=e(t),a=()=>r.addIssue({code:R.custom,...n(t)});return typeof Promise<`u`&&i instanceof Promise?i.then(e=>e?!0:(a(),!1)):i?!0:(a(),!1)})}refinement(e,t){return this._refinement((n,r)=>e(n)?!0:(r.addIssue(typeof t==`function`?t(n,r):t),!1))}_refinement(e){return new w_({schema:this,typeName:N_.ZodEffects,effect:{type:`refinement`,refinement:e}})}superRefine(e){return this._refinement(e)}constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this[`~standard`]={version:1,vendor:`zod`,validate:e=>this[`~validate`](e)}}optional(){return T_.create(this,this._def)}nullable(){return E_.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return a_.create(this)}promise(){return C_.create(this,this._def)}or(e){return c_.create([this,e],this._def)}and(e){return f_.create(this,e,this._def)}transform(e){return new w_({...bg(this._def),schema:this,typeName:N_.ZodEffects,effect:{type:`transform`,transform:e}})}default(e){let t=typeof e==`function`?e:()=>e;return new D_({...bg(this._def),innerType:this,defaultValue:t,typeName:N_.ZodDefault})}brand(){return new A_({typeName:N_.ZodBranded,type:this,...bg(this._def)})}catch(e){let t=typeof e==`function`?e:()=>e;return new O_({...bg(this._def),innerType:this,catchValue:t,typeName:N_.ZodCatch})}describe(e){let t=this.constructor;return new t({...this._def,description:e})}pipe(e){return j_.create(this,e)}readonly(){return M_.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}},Sg=/^c[^\s-]{8,}$/i,Cg=/^[0-9a-z]+$/,wg=/^[0-9A-HJKMNP-TV-Z]{26}$/i,Tg=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,Eg=/^[a-z0-9_-]{21}$/i,Dg=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,Og=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,kg=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,Ag=`^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$`,jg,Mg=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,Ng=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,Pg=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,Fg=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,Ig=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,Lg=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,Rg=`((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))`,zg=RegExp(`^${Rg}$`);function Bg(e){let t=`[0-5]\\d`;e.precision?t=`${t}\\.\\d{${e.precision}}`:e.precision??(t=`${t}(\\.\\d+)?`);let n=e.precision?`+`:`?`;return`([01]\\d|2[0-3]):[0-5]\\d(:${t})${n}`}function Vg(e){return RegExp(`^${Bg(e)}$`)}function Hg(e){let t=`${Rg}T${Bg(e)}`,n=[];return n.push(e.local?`Z?`:`Z`),e.offset&&n.push(`([+-]\\d{2}:?\\d{2})`),t=`${t}(${n.join(`|`)})`,RegExp(`^${t}$`)}function Ug(e,t){return!!((t===`v4`||!t)&&Mg.test(e)||(t===`v6`||!t)&&Pg.test(e))}function Wg(e,t){if(!Dg.test(e))return!1;try{let[n]=e.split(`.`);if(!n)return!1;let r=n.replace(/-/g,`+`).replace(/_/g,`/`).padEnd(n.length+(4-n.length%4)%4,`=`),i=JSON.parse(atob(r));return!(typeof i!=`object`||!i||`typ`in i&&i?.typ!==`JWT`||!i.alg||t&&i.alg!==t)}catch{return!1}}function Gg(e,t){return!!((t===`v4`||!t)&&Ng.test(e)||(t===`v6`||!t)&&Fg.test(e))}var Kg=class e extends xg{_parse(e){if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==L.string){let t=this._getOrReturnCtx(e);return z(t,{code:R.invalid_type,expected:L.string,received:t.parsedType}),B}let t=new dg,n;for(let r of this._def.checks)if(r.kind===`min`)e.data.lengthr.value&&(n=this._getOrReturnCtx(e,n),z(n,{code:R.too_big,maximum:r.value,type:`string`,inclusive:!0,exact:!1,message:r.message}),t.dirty());else if(r.kind===`length`){let i=e.data.length>r.value,a=e.data.lengthe.test(t),{validation:t,code:R.invalid_string,...V.errToObj(n)})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}email(e){return this._addCheck({kind:`email`,...V.errToObj(e)})}url(e){return this._addCheck({kind:`url`,...V.errToObj(e)})}emoji(e){return this._addCheck({kind:`emoji`,...V.errToObj(e)})}uuid(e){return this._addCheck({kind:`uuid`,...V.errToObj(e)})}nanoid(e){return this._addCheck({kind:`nanoid`,...V.errToObj(e)})}cuid(e){return this._addCheck({kind:`cuid`,...V.errToObj(e)})}cuid2(e){return this._addCheck({kind:`cuid2`,...V.errToObj(e)})}ulid(e){return this._addCheck({kind:`ulid`,...V.errToObj(e)})}base64(e){return this._addCheck({kind:`base64`,...V.errToObj(e)})}base64url(e){return this._addCheck({kind:`base64url`,...V.errToObj(e)})}jwt(e){return this._addCheck({kind:`jwt`,...V.errToObj(e)})}ip(e){return this._addCheck({kind:`ip`,...V.errToObj(e)})}cidr(e){return this._addCheck({kind:`cidr`,...V.errToObj(e)})}datetime(e){return typeof e==`string`?this._addCheck({kind:`datetime`,precision:null,offset:!1,local:!1,message:e}):this._addCheck({kind:`datetime`,precision:e?.precision===void 0?null:e?.precision,offset:e?.offset??!1,local:e?.local??!1,...V.errToObj(e?.message)})}date(e){return this._addCheck({kind:`date`,message:e})}time(e){return typeof e==`string`?this._addCheck({kind:`time`,precision:null,message:e}):this._addCheck({kind:`time`,precision:e?.precision===void 0?null:e?.precision,...V.errToObj(e?.message)})}duration(e){return this._addCheck({kind:`duration`,...V.errToObj(e)})}regex(e,t){return this._addCheck({kind:`regex`,regex:e,...V.errToObj(t)})}includes(e,t){return this._addCheck({kind:`includes`,value:e,position:t?.position,...V.errToObj(t?.message)})}startsWith(e,t){return this._addCheck({kind:`startsWith`,value:e,...V.errToObj(t)})}endsWith(e,t){return this._addCheck({kind:`endsWith`,value:e,...V.errToObj(t)})}min(e,t){return this._addCheck({kind:`min`,value:e,...V.errToObj(t)})}max(e,t){return this._addCheck({kind:`max`,value:e,...V.errToObj(t)})}length(e,t){return this._addCheck({kind:`length`,value:e,...V.errToObj(t)})}nonempty(e){return this.min(1,V.errToObj(e))}trim(){return new e({...this._def,checks:[...this._def.checks,{kind:`trim`}]})}toLowerCase(){return new e({...this._def,checks:[...this._def.checks,{kind:`toLowerCase`}]})}toUpperCase(){return new e({...this._def,checks:[...this._def.checks,{kind:`toUpperCase`}]})}get isDatetime(){return!!this._def.checks.find(e=>e.kind===`datetime`)}get isDate(){return!!this._def.checks.find(e=>e.kind===`date`)}get isTime(){return!!this._def.checks.find(e=>e.kind===`time`)}get isDuration(){return!!this._def.checks.find(e=>e.kind===`duration`)}get isEmail(){return!!this._def.checks.find(e=>e.kind===`email`)}get isURL(){return!!this._def.checks.find(e=>e.kind===`url`)}get isEmoji(){return!!this._def.checks.find(e=>e.kind===`emoji`)}get isUUID(){return!!this._def.checks.find(e=>e.kind===`uuid`)}get isNANOID(){return!!this._def.checks.find(e=>e.kind===`nanoid`)}get isCUID(){return!!this._def.checks.find(e=>e.kind===`cuid`)}get isCUID2(){return!!this._def.checks.find(e=>e.kind===`cuid2`)}get isULID(){return!!this._def.checks.find(e=>e.kind===`ulid`)}get isIP(){return!!this._def.checks.find(e=>e.kind===`ip`)}get isCIDR(){return!!this._def.checks.find(e=>e.kind===`cidr`)}get isBase64(){return!!this._def.checks.find(e=>e.kind===`base64`)}get isBase64url(){return!!this._def.checks.find(e=>e.kind===`base64url`)}get minLength(){let e=null;for(let t of this._def.checks)t.kind===`min`&&(e===null||t.value>e)&&(e=t.value);return e}get maxLength(){let e=null;for(let t of this._def.checks)t.kind===`max`&&(e===null||t.valuenew Kg({checks:[],typeName:N_.ZodString,coerce:e?.coerce??!1,...bg(e)});function qg(e,t){let n=(e.toString().split(`.`)[1]||``).length,r=(t.toString().split(`.`)[1]||``).length,i=n>r?n:r;return Number.parseInt(e.toFixed(i).replace(`.`,``))%Number.parseInt(t.toFixed(i).replace(`.`,``))/10**i}var Jg=class e extends xg{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==L.number){let t=this._getOrReturnCtx(e);return z(t,{code:R.invalid_type,expected:L.number,received:t.parsedType}),B}let t,n=new dg;for(let r of this._def.checks)r.kind===`int`?rg.isInteger(e.data)||(t=this._getOrReturnCtx(e,t),z(t,{code:R.invalid_type,expected:`integer`,received:`float`,message:r.message}),n.dirty()):r.kind===`min`?(r.inclusive?e.datar.value:e.data>=r.value)&&(t=this._getOrReturnCtx(e,t),z(t,{code:R.too_big,maximum:r.value,type:`number`,inclusive:r.inclusive,exact:!1,message:r.message}),n.dirty()):r.kind===`multipleOf`?qg(e.data,r.value)!==0&&(t=this._getOrReturnCtx(e,t),z(t,{code:R.not_multiple_of,multipleOf:r.value,message:r.message}),n.dirty()):r.kind===`finite`?Number.isFinite(e.data)||(t=this._getOrReturnCtx(e,t),z(t,{code:R.not_finite,message:r.message}),n.dirty()):rg.assertNever(r);return{status:n.value,value:e.data}}gte(e,t){return this.setLimit(`min`,e,!0,V.toString(t))}gt(e,t){return this.setLimit(`min`,e,!1,V.toString(t))}lte(e,t){return this.setLimit(`max`,e,!0,V.toString(t))}lt(e,t){return this.setLimit(`max`,e,!1,V.toString(t))}setLimit(t,n,r,i){return new e({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:V.toString(i)}]})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}int(e){return this._addCheck({kind:`int`,message:V.toString(e)})}positive(e){return this._addCheck({kind:`min`,value:0,inclusive:!1,message:V.toString(e)})}negative(e){return this._addCheck({kind:`max`,value:0,inclusive:!1,message:V.toString(e)})}nonpositive(e){return this._addCheck({kind:`max`,value:0,inclusive:!0,message:V.toString(e)})}nonnegative(e){return this._addCheck({kind:`min`,value:0,inclusive:!0,message:V.toString(e)})}multipleOf(e,t){return this._addCheck({kind:`multipleOf`,value:e,message:V.toString(t)})}finite(e){return this._addCheck({kind:`finite`,message:V.toString(e)})}safe(e){return this._addCheck({kind:`min`,inclusive:!0,value:-(2**53-1),message:V.toString(e)})._addCheck({kind:`max`,inclusive:!0,value:2**53-1,message:V.toString(e)})}get minValue(){let e=null;for(let t of this._def.checks)t.kind===`min`&&(e===null||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(let t of this._def.checks)t.kind===`max`&&(e===null||t.valuee.kind===`int`||e.kind===`multipleOf`&&rg.isInteger(e.value))}get isFinite(){let e=null,t=null;for(let n of this._def.checks)if(n.kind===`finite`||n.kind===`int`||n.kind===`multipleOf`)return!0;else n.kind===`min`?(t===null||n.value>t)&&(t=n.value):n.kind===`max`&&(e===null||n.valuenew Jg({checks:[],typeName:N_.ZodNumber,coerce:e?.coerce||!1,...bg(e)});var Yg=class e extends xg{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){if(this._def.coerce)try{e.data=BigInt(e.data)}catch{return this._getInvalidInput(e)}if(this._getType(e)!==L.bigint)return this._getInvalidInput(e);let t,n=new dg;for(let r of this._def.checks)r.kind===`min`?(r.inclusive?e.datar.value:e.data>=r.value)&&(t=this._getOrReturnCtx(e,t),z(t,{code:R.too_big,type:`bigint`,maximum:r.value,inclusive:r.inclusive,message:r.message}),n.dirty()):r.kind===`multipleOf`?e.data%r.value!==BigInt(0)&&(t=this._getOrReturnCtx(e,t),z(t,{code:R.not_multiple_of,multipleOf:r.value,message:r.message}),n.dirty()):rg.assertNever(r);return{status:n.value,value:e.data}}_getInvalidInput(e){let t=this._getOrReturnCtx(e);return z(t,{code:R.invalid_type,expected:L.bigint,received:t.parsedType}),B}gte(e,t){return this.setLimit(`min`,e,!0,V.toString(t))}gt(e,t){return this.setLimit(`min`,e,!1,V.toString(t))}lte(e,t){return this.setLimit(`max`,e,!0,V.toString(t))}lt(e,t){return this.setLimit(`max`,e,!1,V.toString(t))}setLimit(t,n,r,i){return new e({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:V.toString(i)}]})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}positive(e){return this._addCheck({kind:`min`,value:BigInt(0),inclusive:!1,message:V.toString(e)})}negative(e){return this._addCheck({kind:`max`,value:BigInt(0),inclusive:!1,message:V.toString(e)})}nonpositive(e){return this._addCheck({kind:`max`,value:BigInt(0),inclusive:!0,message:V.toString(e)})}nonnegative(e){return this._addCheck({kind:`min`,value:BigInt(0),inclusive:!0,message:V.toString(e)})}multipleOf(e,t){return this._addCheck({kind:`multipleOf`,value:e,message:V.toString(t)})}get minValue(){let e=null;for(let t of this._def.checks)t.kind===`min`&&(e===null||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(let t of this._def.checks)t.kind===`max`&&(e===null||t.valuenew Yg({checks:[],typeName:N_.ZodBigInt,coerce:e?.coerce??!1,...bg(e)});var Xg=class extends xg{_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==L.boolean){let t=this._getOrReturnCtx(e);return z(t,{code:R.invalid_type,expected:L.boolean,received:t.parsedType}),B}return pg(e.data)}};Xg.create=e=>new Xg({typeName:N_.ZodBoolean,coerce:e?.coerce||!1,...bg(e)});var Zg=class e extends xg{_parse(e){if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==L.date){let t=this._getOrReturnCtx(e);return z(t,{code:R.invalid_type,expected:L.date,received:t.parsedType}),B}if(Number.isNaN(e.data.getTime()))return z(this._getOrReturnCtx(e),{code:R.invalid_date}),B;let t=new dg,n;for(let r of this._def.checks)r.kind===`min`?e.data.getTime()r.value&&(n=this._getOrReturnCtx(e,n),z(n,{code:R.too_big,message:r.message,inclusive:!0,exact:!1,maximum:r.value,type:`date`}),t.dirty()):rg.assertNever(r);return{status:t.value,value:new Date(e.data.getTime())}}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}min(e,t){return this._addCheck({kind:`min`,value:e.getTime(),message:V.toString(t)})}max(e,t){return this._addCheck({kind:`max`,value:e.getTime(),message:V.toString(t)})}get minDate(){let e=null;for(let t of this._def.checks)t.kind===`min`&&(e===null||t.value>e)&&(e=t.value);return e==null?null:new Date(e)}get maxDate(){let e=null;for(let t of this._def.checks)t.kind===`max`&&(e===null||t.valuenew Zg({checks:[],coerce:e?.coerce||!1,typeName:N_.ZodDate,...bg(e)});var Qg=class extends xg{_parse(e){if(this._getType(e)!==L.symbol){let t=this._getOrReturnCtx(e);return z(t,{code:R.invalid_type,expected:L.symbol,received:t.parsedType}),B}return pg(e.data)}};Qg.create=e=>new Qg({typeName:N_.ZodSymbol,...bg(e)});var $g=class extends xg{_parse(e){if(this._getType(e)!==L.undefined){let t=this._getOrReturnCtx(e);return z(t,{code:R.invalid_type,expected:L.undefined,received:t.parsedType}),B}return pg(e.data)}};$g.create=e=>new $g({typeName:N_.ZodUndefined,...bg(e)});var e_=class extends xg{_parse(e){if(this._getType(e)!==L.null){let t=this._getOrReturnCtx(e);return z(t,{code:R.invalid_type,expected:L.null,received:t.parsedType}),B}return pg(e.data)}};e_.create=e=>new e_({typeName:N_.ZodNull,...bg(e)});var t_=class extends xg{constructor(){super(...arguments),this._any=!0}_parse(e){return pg(e.data)}};t_.create=e=>new t_({typeName:N_.ZodAny,...bg(e)});var n_=class extends xg{constructor(){super(...arguments),this._unknown=!0}_parse(e){return pg(e.data)}};n_.create=e=>new n_({typeName:N_.ZodUnknown,...bg(e)});var r_=class extends xg{_parse(e){let t=this._getOrReturnCtx(e);return z(t,{code:R.invalid_type,expected:L.never,received:t.parsedType}),B}};r_.create=e=>new r_({typeName:N_.ZodNever,...bg(e)});var i_=class extends xg{_parse(e){if(this._getType(e)!==L.undefined){let t=this._getOrReturnCtx(e);return z(t,{code:R.invalid_type,expected:L.void,received:t.parsedType}),B}return pg(e.data)}};i_.create=e=>new i_({typeName:N_.ZodVoid,...bg(e)});var a_=class e extends xg{_parse(e){let{ctx:t,status:n}=this._processInputParams(e),r=this._def;if(t.parsedType!==L.array)return z(t,{code:R.invalid_type,expected:L.array,received:t.parsedType}),B;if(r.exactLength!==null){let e=t.data.length>r.exactLength.value,i=t.data.lengthr.maxLength.value&&(z(t,{code:R.too_big,maximum:r.maxLength.value,type:`array`,inclusive:!0,exact:!1,message:r.maxLength.message}),n.dirty()),t.common.async)return Promise.all([...t.data].map((e,n)=>r.type._parseAsync(new vg(t,e,t.path,n)))).then(e=>dg.mergeArray(n,e));let i=[...t.data].map((e,n)=>r.type._parseSync(new vg(t,e,t.path,n)));return dg.mergeArray(n,i)}get element(){return this._def.type}min(t,n){return new e({...this._def,minLength:{value:t,message:V.toString(n)}})}max(t,n){return new e({...this._def,maxLength:{value:t,message:V.toString(n)}})}length(t,n){return new e({...this._def,exactLength:{value:t,message:V.toString(n)}})}nonempty(e){return this.min(1,e)}};a_.create=(e,t)=>new a_({type:e,minLength:null,maxLength:null,exactLength:null,typeName:N_.ZodArray,...bg(t)});function o_(e){if(e instanceof s_){let t={};for(let n in e.shape){let r=e.shape[n];t[n]=T_.create(o_(r))}return new s_({...e._def,shape:()=>t})}return e instanceof a_?new a_({...e._def,type:o_(e.element)}):e instanceof T_?T_.create(o_(e.unwrap())):e instanceof E_?E_.create(o_(e.unwrap())):e instanceof p_?p_.create(e.items.map(e=>o_(e))):e}var s_=class e extends xg{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;let e=this._def.shape(),t=rg.objectKeys(e);return this._cached={shape:e,keys:t},this._cached}_parse(e){if(this._getType(e)!==L.object){let t=this._getOrReturnCtx(e);return z(t,{code:R.invalid_type,expected:L.object,received:t.parsedType}),B}let{status:t,ctx:n}=this._processInputParams(e),{shape:r,keys:i}=this._getCached(),a=[];if(!(this._def.catchall instanceof r_&&this._def.unknownKeys===`strip`))for(let e in n.data)i.includes(e)||a.push(e);let o=[];for(let e of i){let t=r[e],i=n.data[e];o.push({key:{status:`valid`,value:e},value:t._parse(new vg(n,i,n.path,e)),alwaysSet:e in n.data})}if(this._def.catchall instanceof r_){let e=this._def.unknownKeys;if(e===`passthrough`)for(let e of a)o.push({key:{status:`valid`,value:e},value:{status:`valid`,value:n.data[e]}});else if(e===`strict`)a.length>0&&(z(n,{code:R.unrecognized_keys,keys:a}),t.dirty());else if(e!==`strip`)throw Error(`Internal ZodObject error: invalid unknownKeys value.`)}else{let e=this._def.catchall;for(let t of a){let r=n.data[t];o.push({key:{status:`valid`,value:t},value:e._parse(new vg(n,r,n.path,t)),alwaysSet:t in n.data})}}return n.common.async?Promise.resolve().then(async()=>{let e=[];for(let t of o){let n=await t.key,r=await t.value;e.push({key:n,value:r,alwaysSet:t.alwaysSet})}return e}).then(e=>dg.mergeObjectSync(t,e)):dg.mergeObjectSync(t,o)}get shape(){return this._def.shape()}strict(t){return V.errToObj,new e({...this._def,unknownKeys:`strict`,...t===void 0?{}:{errorMap:(e,n)=>{let r=this._def.errorMap?.(e,n).message??n.defaultError;return e.code===`unrecognized_keys`?{message:V.errToObj(t).message??r}:{message:r}}}})}strip(){return new e({...this._def,unknownKeys:`strip`})}passthrough(){return new e({...this._def,unknownKeys:`passthrough`})}extend(t){return new e({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new e({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:N_.ZodObject})}setKey(e,t){return this.augment({[e]:t})}catchall(t){return new e({...this._def,catchall:t})}pick(t){let n={};for(let e of rg.objectKeys(t))t[e]&&this.shape[e]&&(n[e]=this.shape[e]);return new e({...this._def,shape:()=>n})}omit(t){let n={};for(let e of rg.objectKeys(this.shape))t[e]||(n[e]=this.shape[e]);return new e({...this._def,shape:()=>n})}deepPartial(){return o_(this)}partial(t){let n={};for(let e of rg.objectKeys(this.shape)){let r=this.shape[e];n[e]=t&&!t[e]?r:r.optional()}return new e({...this._def,shape:()=>n})}required(t){let n={};for(let e of rg.objectKeys(this.shape))if(t&&!t[e])n[e]=this.shape[e];else{let t=this.shape[e];for(;t instanceof T_;)t=t._def.innerType;n[e]=t}return new e({...this._def,shape:()=>n})}keyof(){return b_(rg.objectKeys(this.shape))}};s_.create=(e,t)=>new s_({shape:()=>e,unknownKeys:`strip`,catchall:r_.create(),typeName:N_.ZodObject,...bg(t)}),s_.strictCreate=(e,t)=>new s_({shape:()=>e,unknownKeys:`strict`,catchall:r_.create(),typeName:N_.ZodObject,...bg(t)}),s_.lazycreate=(e,t)=>new s_({shape:e,unknownKeys:`strip`,catchall:r_.create(),typeName:N_.ZodObject,...bg(t)});var c_=class extends xg{_parse(e){let{ctx:t}=this._processInputParams(e),n=this._def.options;function r(e){for(let t of e)if(t.result.status===`valid`)return t.result;for(let n of e)if(n.result.status===`dirty`)return t.common.issues.push(...n.ctx.common.issues),n.result;let n=e.map(e=>new og(e.ctx.common.issues));return z(t,{code:R.invalid_union,unionErrors:n}),B}if(t.common.async)return Promise.all(n.map(async e=>{let n={...t,common:{...t.common,issues:[]},parent:null};return{result:await e._parseAsync({data:t.data,path:t.path,parent:n}),ctx:n}})).then(r);{let e,r=[];for(let i of n){let n={...t,common:{...t.common,issues:[]},parent:null},a=i._parseSync({data:t.data,path:t.path,parent:n});if(a.status===`valid`)return a;a.status===`dirty`&&!e&&(e={result:a,ctx:n}),n.common.issues.length&&r.push(n.common.issues)}if(e)return t.common.issues.push(...e.ctx.common.issues),e.result;let i=r.map(e=>new og(e));return z(t,{code:R.invalid_union,unionErrors:i}),B}}get options(){return this._def.options}};c_.create=(e,t)=>new c_({options:e,typeName:N_.ZodUnion,...bg(t)});var l_=e=>e instanceof v_?l_(e.schema):e instanceof w_?l_(e.innerType()):e instanceof y_?[e.value]:e instanceof x_?e.options:e instanceof S_?rg.objectValues(e.enum):e instanceof D_?l_(e._def.innerType):e instanceof $g?[void 0]:e instanceof e_?[null]:e instanceof T_?[void 0,...l_(e.unwrap())]:e instanceof E_?[null,...l_(e.unwrap())]:e instanceof A_||e instanceof M_?l_(e.unwrap()):e instanceof O_?l_(e._def.innerType):[],u_=class e extends xg{_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==L.object)return z(t,{code:R.invalid_type,expected:L.object,received:t.parsedType}),B;let n=this.discriminator,r=t.data[n],i=this.optionsMap.get(r);return i?t.common.async?i._parseAsync({data:t.data,path:t.path,parent:t}):i._parseSync({data:t.data,path:t.path,parent:t}):(z(t,{code:R.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[n]}),B)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(t,n,r){let i=new Map;for(let e of n){let n=l_(e.shape[t]);if(!n.length)throw Error(`A discriminator value for key \`${t}\` could not be extracted from all schema options`);for(let r of n){if(i.has(r))throw Error(`Discriminator property ${String(t)} has duplicate value ${String(r)}`);i.set(r,e)}}return new e({typeName:N_.ZodDiscriminatedUnion,discriminator:t,options:n,optionsMap:i,...bg(r)})}};function d_(e,t){let n=ag(e),r=ag(t);if(e===t)return{valid:!0,data:e};if(n===L.object&&r===L.object){let n=rg.objectKeys(t),r=rg.objectKeys(e).filter(e=>n.indexOf(e)!==-1),i={...e,...t};for(let n of r){let r=d_(e[n],t[n]);if(!r.valid)return{valid:!1};i[n]=r.data}return{valid:!0,data:i}}if(n===L.array&&r===L.array){if(e.length!==t.length)return{valid:!1};let n=[];for(let r=0;r{if(mg(e)||mg(r))return B;let i=d_(e.value,r.value);return i.valid?((hg(e)||hg(r))&&t.dirty(),{status:t.value,value:i.data}):(z(n,{code:R.invalid_intersection_types}),B)};return n.common.async?Promise.all([this._def.left._parseAsync({data:n.data,path:n.path,parent:n}),this._def.right._parseAsync({data:n.data,path:n.path,parent:n})]).then(([e,t])=>r(e,t)):r(this._def.left._parseSync({data:n.data,path:n.path,parent:n}),this._def.right._parseSync({data:n.data,path:n.path,parent:n}))}};f_.create=(e,t,n)=>new f_({left:e,right:t,typeName:N_.ZodIntersection,...bg(n)});var p_=class e extends xg{_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==L.array)return z(n,{code:R.invalid_type,expected:L.array,received:n.parsedType}),B;if(n.data.lengththis._def.items.length&&(z(n,{code:R.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:`array`}),t.dirty());let r=[...n.data].map((e,t)=>{let r=this._def.items[t]||this._def.rest;return r?r._parse(new vg(n,e,n.path,t)):null}).filter(e=>!!e);return n.common.async?Promise.all(r).then(e=>dg.mergeArray(t,e)):dg.mergeArray(t,r)}get items(){return this._def.items}rest(t){return new e({...this._def,rest:t})}};p_.create=(e,t)=>{if(!Array.isArray(e))throw Error(`You must pass an array of schemas to z.tuple([ ... ])`);return new p_({items:e,typeName:N_.ZodTuple,rest:null,...bg(t)})};var m_=class e extends xg{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==L.object)return z(n,{code:R.invalid_type,expected:L.object,received:n.parsedType}),B;let r=[],i=this._def.keyType,a=this._def.valueType;for(let e in n.data)r.push({key:i._parse(new vg(n,e,n.path,e)),value:a._parse(new vg(n,n.data[e],n.path,e)),alwaysSet:e in n.data});return n.common.async?dg.mergeObjectAsync(t,r):dg.mergeObjectSync(t,r)}get element(){return this._def.valueType}static create(t,n,r){return n instanceof xg?new e({keyType:t,valueType:n,typeName:N_.ZodRecord,...bg(r)}):new e({keyType:Kg.create(),valueType:t,typeName:N_.ZodRecord,...bg(n)})}},h_=class extends xg{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==L.map)return z(n,{code:R.invalid_type,expected:L.map,received:n.parsedType}),B;let r=this._def.keyType,i=this._def.valueType,a=[...n.data.entries()].map(([e,t],a)=>({key:r._parse(new vg(n,e,n.path,[a,`key`])),value:i._parse(new vg(n,t,n.path,[a,`value`]))}));if(n.common.async){let e=new Map;return Promise.resolve().then(async()=>{for(let n of a){let r=await n.key,i=await n.value;if(r.status===`aborted`||i.status===`aborted`)return B;(r.status===`dirty`||i.status===`dirty`)&&t.dirty(),e.set(r.value,i.value)}return{status:t.value,value:e}})}{let e=new Map;for(let n of a){let r=n.key,i=n.value;if(r.status===`aborted`||i.status===`aborted`)return B;(r.status===`dirty`||i.status===`dirty`)&&t.dirty(),e.set(r.value,i.value)}return{status:t.value,value:e}}}};h_.create=(e,t,n)=>new h_({valueType:t,keyType:e,typeName:N_.ZodMap,...bg(n)});var g_=class e extends xg{_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==L.set)return z(n,{code:R.invalid_type,expected:L.set,received:n.parsedType}),B;let r=this._def;r.minSize!==null&&n.data.sizer.maxSize.value&&(z(n,{code:R.too_big,maximum:r.maxSize.value,type:`set`,inclusive:!0,exact:!1,message:r.maxSize.message}),t.dirty());let i=this._def.valueType;function a(e){let n=new Set;for(let r of e){if(r.status===`aborted`)return B;r.status===`dirty`&&t.dirty(),n.add(r.value)}return{status:t.value,value:n}}let o=[...n.data.values()].map((e,t)=>i._parse(new vg(n,e,n.path,t)));return n.common.async?Promise.all(o).then(e=>a(e)):a(o)}min(t,n){return new e({...this._def,minSize:{value:t,message:V.toString(n)}})}max(t,n){return new e({...this._def,maxSize:{value:t,message:V.toString(n)}})}size(e,t){return this.min(e,t).max(e,t)}nonempty(e){return this.min(1,e)}};g_.create=(e,t)=>new g_({valueType:e,minSize:null,maxSize:null,typeName:N_.ZodSet,...bg(t)});var __=class e extends xg{constructor(){super(...arguments),this.validate=this.implement}_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==L.function)return z(t,{code:R.invalid_type,expected:L.function,received:t.parsedType}),B;function n(e,n){return ug({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,lg(),sg].filter(e=>!!e),issueData:{code:R.invalid_arguments,argumentsError:n}})}function r(e,n){return ug({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,lg(),sg].filter(e=>!!e),issueData:{code:R.invalid_return_type,returnTypeError:n}})}let i={errorMap:t.common.contextualErrorMap},a=t.data;if(this._def.returns instanceof C_){let e=this;return pg(async function(...t){let o=new og([]),s=await e._def.args.parseAsync(t,i).catch(e=>{throw o.addIssue(n(t,e)),o}),c=await Reflect.apply(a,this,s);return await e._def.returns._def.type.parseAsync(c,i).catch(e=>{throw o.addIssue(r(c,e)),o})})}{let e=this;return pg(function(...t){let o=e._def.args.safeParse(t,i);if(!o.success)throw new og([n(t,o.error)]);let s=Reflect.apply(a,this,o.data),c=e._def.returns.safeParse(s,i);if(!c.success)throw new og([r(s,c.error)]);return c.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...t){return new e({...this._def,args:p_.create(t).rest(n_.create())})}returns(t){return new e({...this._def,returns:t})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(t,n,r){return new e({args:t||p_.create([]).rest(n_.create()),returns:n||n_.create(),typeName:N_.ZodFunction,...bg(r)})}},v_=class extends xg{get schema(){return this._def.getter()}_parse(e){let{ctx:t}=this._processInputParams(e);return this._def.getter()._parse({data:t.data,path:t.path,parent:t})}};v_.create=(e,t)=>new v_({getter:e,typeName:N_.ZodLazy,...bg(t)});var y_=class extends xg{_parse(e){if(e.data!==this._def.value){let t=this._getOrReturnCtx(e);return z(t,{received:t.data,code:R.invalid_literal,expected:this._def.value}),B}return{status:`valid`,value:e.data}}get value(){return this._def.value}};y_.create=(e,t)=>new y_({value:e,typeName:N_.ZodLiteral,...bg(t)});function b_(e,t){return new x_({values:e,typeName:N_.ZodEnum,...bg(t)})}var x_=class e extends xg{_parse(e){if(typeof e.data!=`string`){let t=this._getOrReturnCtx(e),n=this._def.values;return z(t,{expected:rg.joinValues(n),received:t.parsedType,code:R.invalid_type}),B}if(this._cache||=new Set(this._def.values),!this._cache.has(e.data)){let t=this._getOrReturnCtx(e),n=this._def.values;return z(t,{received:t.data,code:R.invalid_enum_value,options:n}),B}return pg(e.data)}get options(){return this._def.values}get enum(){let e={};for(let t of this._def.values)e[t]=t;return e}get Values(){let e={};for(let t of this._def.values)e[t]=t;return e}get Enum(){let e={};for(let t of this._def.values)e[t]=t;return e}extract(t,n=this._def){return e.create(t,{...this._def,...n})}exclude(t,n=this._def){return e.create(this.options.filter(e=>!t.includes(e)),{...this._def,...n})}};x_.create=b_;var S_=class extends xg{_parse(e){let t=rg.getValidEnumValues(this._def.values),n=this._getOrReturnCtx(e);if(n.parsedType!==L.string&&n.parsedType!==L.number){let e=rg.objectValues(t);return z(n,{expected:rg.joinValues(e),received:n.parsedType,code:R.invalid_type}),B}if(this._cache||=new Set(rg.getValidEnumValues(this._def.values)),!this._cache.has(e.data)){let e=rg.objectValues(t);return z(n,{received:n.data,code:R.invalid_enum_value,options:e}),B}return pg(e.data)}get enum(){return this._def.values}};S_.create=(e,t)=>new S_({values:e,typeName:N_.ZodNativeEnum,...bg(t)});var C_=class extends xg{unwrap(){return this._def.type}_parse(e){let{ctx:t}=this._processInputParams(e);return t.parsedType!==L.promise&&t.common.async===!1?(z(t,{code:R.invalid_type,expected:L.promise,received:t.parsedType}),B):pg((t.parsedType===L.promise?t.data:Promise.resolve(t.data)).then(e=>this._def.type.parseAsync(e,{path:t.path,errorMap:t.common.contextualErrorMap})))}};C_.create=(e,t)=>new C_({type:e,typeName:N_.ZodPromise,...bg(t)});var w_=class extends xg{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===N_.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){let{status:t,ctx:n}=this._processInputParams(e),r=this._def.effect||null,i={addIssue:e=>{z(n,e),e.fatal?t.abort():t.dirty()},get path(){return n.path}};if(i.addIssue=i.addIssue.bind(i),r.type===`preprocess`){let e=r.transform(n.data,i);if(n.common.async)return Promise.resolve(e).then(async e=>{if(t.value===`aborted`)return B;let r=await this._def.schema._parseAsync({data:e,path:n.path,parent:n});return r.status===`aborted`?B:r.status===`dirty`||t.value===`dirty`?fg(r.value):r});{if(t.value===`aborted`)return B;let r=this._def.schema._parseSync({data:e,path:n.path,parent:n});return r.status===`aborted`?B:r.status===`dirty`||t.value===`dirty`?fg(r.value):r}}if(r.type===`refinement`){let e=e=>{let t=r.refinement(e,i);if(n.common.async)return Promise.resolve(t);if(t instanceof Promise)throw Error(`Async refinement encountered during synchronous parse operation. Use .parseAsync instead.`);return e};if(n.common.async===!1){let r=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});return r.status===`aborted`?B:(r.status===`dirty`&&t.dirty(),e(r.value),{status:t.value,value:r.value})}return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(n=>n.status===`aborted`?B:(n.status===`dirty`&&t.dirty(),e(n.value).then(()=>({status:t.value,value:n.value}))))}if(r.type===`transform`)if(n.common.async===!1){let e=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});if(!gg(e))return B;let a=r.transform(e.value,i);if(a instanceof Promise)throw Error(`Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.`);return{status:t.value,value:a}}else return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(e=>gg(e)?Promise.resolve(r.transform(e.value,i)).then(e=>({status:t.value,value:e})):B);rg.assertNever(r)}};w_.create=(e,t,n)=>new w_({schema:e,typeName:N_.ZodEffects,effect:t,...bg(n)}),w_.createWithPreprocess=(e,t,n)=>new w_({schema:t,effect:{type:`preprocess`,transform:e},typeName:N_.ZodEffects,...bg(n)});var T_=class extends xg{_parse(e){return this._getType(e)===L.undefined?pg(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}};T_.create=(e,t)=>new T_({innerType:e,typeName:N_.ZodOptional,...bg(t)});var E_=class extends xg{_parse(e){return this._getType(e)===L.null?pg(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}};E_.create=(e,t)=>new E_({innerType:e,typeName:N_.ZodNullable,...bg(t)});var D_=class extends xg{_parse(e){let{ctx:t}=this._processInputParams(e),n=t.data;return t.parsedType===L.undefined&&(n=this._def.defaultValue()),this._def.innerType._parse({data:n,path:t.path,parent:t})}removeDefault(){return this._def.innerType}};D_.create=(e,t)=>new D_({innerType:e,typeName:N_.ZodDefault,defaultValue:typeof t.default==`function`?t.default:()=>t.default,...bg(t)});var O_=class extends xg{_parse(e){let{ctx:t}=this._processInputParams(e),n={...t,common:{...t.common,issues:[]}},r=this._def.innerType._parse({data:n.data,path:n.path,parent:{...n}});return _g(r)?r.then(e=>({status:`valid`,value:e.status===`valid`?e.value:this._def.catchValue({get error(){return new og(n.common.issues)},input:n.data})})):{status:`valid`,value:r.status===`valid`?r.value:this._def.catchValue({get error(){return new og(n.common.issues)},input:n.data})}}removeCatch(){return this._def.innerType}};O_.create=(e,t)=>new O_({innerType:e,typeName:N_.ZodCatch,catchValue:typeof t.catch==`function`?t.catch:()=>t.catch,...bg(t)});var k_=class extends xg{_parse(e){if(this._getType(e)!==L.nan){let t=this._getOrReturnCtx(e);return z(t,{code:R.invalid_type,expected:L.nan,received:t.parsedType}),B}return{status:`valid`,value:e.data}}};k_.create=e=>new k_({typeName:N_.ZodNaN,...bg(e)});var A_=class extends xg{_parse(e){let{ctx:t}=this._processInputParams(e),n=t.data;return this._def.type._parse({data:n,path:t.path,parent:t})}unwrap(){return this._def.type}},j_=class e extends xg{_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.common.async)return(async()=>{let e=await this._def.in._parseAsync({data:n.data,path:n.path,parent:n});return e.status===`aborted`?B:e.status===`dirty`?(t.dirty(),fg(e.value)):this._def.out._parseAsync({data:e.value,path:n.path,parent:n})})();{let e=this._def.in._parseSync({data:n.data,path:n.path,parent:n});return e.status===`aborted`?B:e.status===`dirty`?(t.dirty(),{status:`dirty`,value:e.value}):this._def.out._parseSync({data:e.value,path:n.path,parent:n})}}static create(t,n){return new e({in:t,out:n,typeName:N_.ZodPipeline})}},M_=class extends xg{_parse(e){let t=this._def.innerType._parse(e),n=e=>(gg(e)&&(e.value=Object.freeze(e.value)),e);return _g(t)?t.then(e=>n(e)):n(t)}unwrap(){return this._def.innerType}};M_.create=(e,t)=>new M_({innerType:e,typeName:N_.ZodReadonly,...bg(t)}),s_.lazycreate;var N_;(function(e){e.ZodString=`ZodString`,e.ZodNumber=`ZodNumber`,e.ZodNaN=`ZodNaN`,e.ZodBigInt=`ZodBigInt`,e.ZodBoolean=`ZodBoolean`,e.ZodDate=`ZodDate`,e.ZodSymbol=`ZodSymbol`,e.ZodUndefined=`ZodUndefined`,e.ZodNull=`ZodNull`,e.ZodAny=`ZodAny`,e.ZodUnknown=`ZodUnknown`,e.ZodNever=`ZodNever`,e.ZodVoid=`ZodVoid`,e.ZodArray=`ZodArray`,e.ZodObject=`ZodObject`,e.ZodUnion=`ZodUnion`,e.ZodDiscriminatedUnion=`ZodDiscriminatedUnion`,e.ZodIntersection=`ZodIntersection`,e.ZodTuple=`ZodTuple`,e.ZodRecord=`ZodRecord`,e.ZodMap=`ZodMap`,e.ZodSet=`ZodSet`,e.ZodFunction=`ZodFunction`,e.ZodLazy=`ZodLazy`,e.ZodLiteral=`ZodLiteral`,e.ZodEnum=`ZodEnum`,e.ZodEffects=`ZodEffects`,e.ZodNativeEnum=`ZodNativeEnum`,e.ZodOptional=`ZodOptional`,e.ZodNullable=`ZodNullable`,e.ZodDefault=`ZodDefault`,e.ZodCatch=`ZodCatch`,e.ZodPromise=`ZodPromise`,e.ZodBranded=`ZodBranded`,e.ZodPipeline=`ZodPipeline`,e.ZodReadonly=`ZodReadonly`})(N_||={});var H=Kg.create,P_=Jg.create;k_.create,Yg.create;var F_=Xg.create;Zg.create,Qg.create,$g.create,e_.create;var I_=t_.create,L_=n_.create;r_.create,i_.create;var R_=a_.create,z_=s_.create;s_.strictCreate;var B_=c_.create,V_=u_.create;f_.create,p_.create;var H_=m_.create;h_.create,g_.create,__.create,v_.create;var U=y_.create,U_=x_.create,W_=S_.create;C_.create,w_.create,T_.create,E_.create,w_.createWithPreprocess,j_.create;var G_=Ke(),K_=z_({name:H(),arguments:H()}),q_=z_({id:H(),type:U(`function`),function:K_,encryptedValue:H().optional()}),J_=z_({id:H(),role:H(),content:H().optional(),name:H().optional(),encryptedValue:H().optional()}),Y_=z_({type:U(`text`),text:H()}),X_=V_(`type`,[z_({type:U(`data`),value:H(),mimeType:H()}),z_({type:U(`url`),value:H(),mimeType:H().optional()})]),Z_=z_({type:U(`image`),source:X_,metadata:L_().optional()}),Q_=z_({type:U(`audio`),source:X_,metadata:L_().optional()}),$_=z_({type:U(`video`),source:X_,metadata:L_().optional()}),ev=z_({type:U(`document`),source:X_,metadata:L_().optional()}),tv=z_({type:U(`binary`),mimeType:H(),id:H().optional(),url:H().optional(),data:H().optional(),filename:H().optional()}),nv=(e,t)=>{!e.id&&!e.url&&!e.data&&t.addIssue({code:R.custom,message:`BinaryInputContent requires at least one of id, url, or data.`,path:[`id`]})};tv.superRefine((e,t)=>{nv(e,t)});var rv=V_(`type`,[Y_,Z_,Q_,$_,ev,tv]).superRefine((e,t)=>{e.type===`binary`&&nv(e,t)}),iv=V_(`role`,[J_.extend({role:U(`developer`),content:H()}),J_.extend({role:U(`system`),content:H()}),J_.extend({role:U(`assistant`),content:H().optional(),toolCalls:R_(q_).optional()}),J_.extend({role:U(`user`),content:B_([H(),R_(rv)])}),z_({id:H(),content:H(),role:U(`tool`),toolCallId:H(),error:H().optional(),encryptedValue:H().optional()}),z_({id:H(),role:U(`activity`),activityType:H(),content:H_(I_())}),z_({id:H(),role:U(`reasoning`),content:H(),encryptedValue:H().optional()})]);B_([U(`developer`),U(`system`),U(`assistant`),U(`user`),U(`tool`),U(`activity`),U(`reasoning`)]);var av=z_({description:H(),value:H()}),ov=z_({name:H(),description:H(),parameters:I_(),metadata:H_(I_()).optional()}),sv=z_({id:H(),reason:H(),message:H().optional(),toolCallId:H().optional(),responseSchema:H_(I_()).optional(),expiresAt:H().optional(),metadata:H_(I_()).optional()}),cv=z_({interruptId:H(),status:U_([`resolved`,`cancelled`]),payload:I_().optional()}),lv=z_({threadId:H(),runId:H(),parentRunId:H().optional(),state:I_(),messages:R_(iv),tools:R_(ov),context:R_(av),forwardedProps:I_(),resume:R_(cv).optional()}),uv=I_(),dv=class extends Error{constructor(e){super(e)}},fv=class extends dv{constructor(){super(`Connect not implemented. This method is not supported by the current agent.`)}},pv=z_({name:H(),description:H().optional()}),mv=z_({name:H().optional(),type:H().optional(),description:H().optional(),version:H().optional(),provider:H().optional(),documentationUrl:H().optional(),metadata:H_(L_()).optional()}),hv=z_({streaming:F_().optional(),websocket:F_().optional(),httpBinary:F_().optional(),pushNotifications:F_().optional(),resumable:F_().optional()}),gv=z_({supported:F_().optional(),items:R_(ov).optional(),parallelCalls:F_().optional(),clientProvided:F_().optional()}),_v=z_({structuredOutput:F_().optional(),supportedMimeTypes:R_(H()).optional()}),vv=z_({snapshots:F_().optional(),deltas:F_().optional(),memory:F_().optional(),persistentState:F_().optional()}),yv=z_({supported:F_().optional(),delegation:F_().optional(),handoffs:F_().optional(),subAgents:R_(pv).optional()}),bv=z_({supported:F_().optional(),streaming:F_().optional(),encrypted:F_().optional()}),xv=z_({image:F_().optional(),audio:F_().optional(),video:F_().optional(),pdf:F_().optional(),file:F_().optional()}),Sv=z_({image:F_().optional(),audio:F_().optional()}),Cv=z_({input:xv.optional(),output:Sv.optional()}),wv=z_({codeExecution:F_().optional(),sandboxed:F_().optional(),maxIterations:P_().optional(),maxExecutionTime:P_().optional()}),Tv=z_({supported:F_().optional(),approvals:F_().optional(),interventions:F_().optional(),feedback:F_().optional(),interrupts:F_().optional(),approveWithEdits:F_().optional()});z_({identity:mv.optional(),transport:hv.optional(),tools:gv.optional(),output:_v.optional(),state:vv.optional(),multiAgent:yv.optional(),reasoning:bv.optional(),multimodal:Cv.optional(),execution:wv.optional(),humanInTheLoop:Tv.optional(),custom:H_(L_()).optional()});var Ev=B_([U(`developer`),U(`system`),U(`assistant`),U(`user`)]),W=function(e){return e.TEXT_MESSAGE_START=`TEXT_MESSAGE_START`,e.TEXT_MESSAGE_CONTENT=`TEXT_MESSAGE_CONTENT`,e.TEXT_MESSAGE_END=`TEXT_MESSAGE_END`,e.TEXT_MESSAGE_CHUNK=`TEXT_MESSAGE_CHUNK`,e.TOOL_CALL_START=`TOOL_CALL_START`,e.TOOL_CALL_ARGS=`TOOL_CALL_ARGS`,e.TOOL_CALL_END=`TOOL_CALL_END`,e.TOOL_CALL_CHUNK=`TOOL_CALL_CHUNK`,e.TOOL_CALL_RESULT=`TOOL_CALL_RESULT`,e.THINKING_START=`THINKING_START`,e.THINKING_END=`THINKING_END`,e.THINKING_TEXT_MESSAGE_START=`THINKING_TEXT_MESSAGE_START`,e.THINKING_TEXT_MESSAGE_CONTENT=`THINKING_TEXT_MESSAGE_CONTENT`,e.THINKING_TEXT_MESSAGE_END=`THINKING_TEXT_MESSAGE_END`,e.STATE_SNAPSHOT=`STATE_SNAPSHOT`,e.STATE_DELTA=`STATE_DELTA`,e.MESSAGES_SNAPSHOT=`MESSAGES_SNAPSHOT`,e.ACTIVITY_SNAPSHOT=`ACTIVITY_SNAPSHOT`,e.ACTIVITY_DELTA=`ACTIVITY_DELTA`,e.RAW=`RAW`,e.CUSTOM=`CUSTOM`,e.RUN_STARTED=`RUN_STARTED`,e.RUN_FINISHED=`RUN_FINISHED`,e.RUN_ERROR=`RUN_ERROR`,e.STEP_STARTED=`STEP_STARTED`,e.STEP_FINISHED=`STEP_FINISHED`,e.REASONING_START=`REASONING_START`,e.REASONING_MESSAGE_START=`REASONING_MESSAGE_START`,e.REASONING_MESSAGE_CONTENT=`REASONING_MESSAGE_CONTENT`,e.REASONING_MESSAGE_END=`REASONING_MESSAGE_END`,e.REASONING_MESSAGE_CHUNK=`REASONING_MESSAGE_CHUNK`,e.REASONING_END=`REASONING_END`,e.REASONING_ENCRYPTED_VALUE=`REASONING_ENCRYPTED_VALUE`,e}({}),Dv=z_({type:W_(W),timestamp:P_().optional(),rawEvent:I_().optional()}).passthrough(),Ov=Dv.extend({type:U(W.TEXT_MESSAGE_START),messageId:H(),role:Ev.default(`assistant`),name:H().optional()}),kv=Dv.extend({type:U(W.TEXT_MESSAGE_CONTENT),messageId:H(),delta:H()}),Av=Dv.extend({type:U(W.TEXT_MESSAGE_END),messageId:H()}),jv=Dv.extend({type:U(W.TEXT_MESSAGE_CHUNK),messageId:H().optional(),role:Ev.optional(),delta:H().optional(),name:H().optional()}),Mv=Dv.extend({type:U(W.THINKING_TEXT_MESSAGE_START)}),Nv=kv.omit({messageId:!0,type:!0}).extend({type:U(W.THINKING_TEXT_MESSAGE_CONTENT)}),Pv=Dv.extend({type:U(W.THINKING_TEXT_MESSAGE_END)}),Fv=Dv.extend({type:U(W.TOOL_CALL_START),toolCallId:H(),toolCallName:H(),parentMessageId:H().optional()}),Iv=Dv.extend({type:U(W.TOOL_CALL_ARGS),toolCallId:H(),delta:H()}),Lv=Dv.extend({type:U(W.TOOL_CALL_END),toolCallId:H()}),Rv=Dv.extend({messageId:H(),type:U(W.TOOL_CALL_RESULT),toolCallId:H(),content:H(),role:U(`tool`).optional()}),zv=Dv.extend({type:U(W.TOOL_CALL_CHUNK),toolCallId:H().optional(),toolCallName:H().optional(),parentMessageId:H().optional(),delta:H().optional()}),Bv=Dv.extend({type:U(W.THINKING_START),title:H().optional()}),Vv=Dv.extend({type:U(W.THINKING_END)}),Hv=Dv.extend({type:U(W.STATE_SNAPSHOT),snapshot:uv}),Uv=Dv.extend({type:U(W.STATE_DELTA),delta:R_(I_())}),Wv=Dv.extend({type:U(W.MESSAGES_SNAPSHOT),messages:R_(iv)}),Gv=Dv.extend({type:U(W.ACTIVITY_SNAPSHOT),messageId:H(),activityType:H(),content:H_(I_()),replace:F_().optional().default(!0)}),Kv=Dv.extend({type:U(W.ACTIVITY_DELTA),messageId:H(),activityType:H(),patch:R_(I_())}),qv=Dv.extend({type:U(W.RAW),event:I_(),source:H().optional()}),Jv=Dv.extend({type:U(W.CUSTOM),name:H(),value:I_()}),Yv=Dv.extend({type:U(W.RUN_STARTED),threadId:H(),runId:H(),parentRunId:H().optional(),input:lv.optional()}),Xv=V_(`type`,[z_({type:U(`success`)}).strict(),z_({type:U(`interrupt`),interrupts:R_(sv).min(1)}).strict()]),Zv=Dv.extend({type:U(W.RUN_FINISHED),threadId:H(),runId:H(),result:I_().optional(),outcome:Xv.nullable().optional().transform(e=>e??void 0)}),Qv=Dv.extend({type:U(W.RUN_ERROR),message:H(),code:H().optional()}),$v=Dv.extend({type:U(W.STEP_STARTED),stepName:H()}),ey=Dv.extend({type:U(W.STEP_FINISHED),stepName:H()}),ty=B_([U(`tool-call`),U(`message`)]),ny=V_(`type`,[Ov,kv,Av,jv,Bv,Vv,Mv,Nv,Pv,Fv,Iv,Lv,zv,Rv,Hv,Uv,Wv,Gv,Kv,qv,Jv,Yv,Zv,Qv,$v,ey,Dv.extend({type:U(W.REASONING_START),messageId:H()}),Dv.extend({type:U(W.REASONING_MESSAGE_START),messageId:H(),role:U(`reasoning`)}),Dv.extend({type:U(W.REASONING_MESSAGE_CONTENT),messageId:H(),delta:H()}),Dv.extend({type:U(W.REASONING_MESSAGE_END),messageId:H()}),Dv.extend({type:U(W.REASONING_MESSAGE_CHUNK),messageId:H().optional(),delta:H().optional()}),Dv.extend({type:U(W.REASONING_END),messageId:H()}),Dv.extend({type:U(W.REASONING_ENCRYPTED_VALUE),subtype:ty,entityId:H(),encryptedValue:H()})]),ry=(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),iy=Object.prototype.hasOwnProperty;function ay(e,t){return iy.call(e,t)}function oy(e){if(Array.isArray(e)){for(var t=Array(e.length),n=0;n=48&&r<=57){t++;continue}return!1}return!0}function ly(e){return e.indexOf(`/`)===-1&&e.indexOf(`~`)===-1?e:e.replace(/~/g,`~0`).replace(/\//g,`~1`)}function uy(e){return e.replace(/~1/g,`/`).replace(/~0/g,`~`)}function dy(e){if(e===void 0)return!0;if(e){if(Array.isArray(e)){for(var t=0,n=e.length;thy,_areEquals:()=>Ty,applyOperation:()=>by,applyPatch:()=>xy,applyReducer:()=>Sy,deepClone:()=>gy,getValueByPointer:()=>yy,validate:()=>wy,validator:()=>Cy}),hy=py,gy=sy,_y={add:function(e,t,n){return e[t]=this.value,{newDocument:n}},remove:function(e,t,n){var r=e[t];return delete e[t],{newDocument:n,removed:r}},replace:function(e,t,n){var r=e[t];return e[t]=this.value,{newDocument:n,removed:r}},move:function(e,t,n){var r=yy(n,this.path);r&&=sy(r);var i=by(n,{op:`remove`,path:this.from}).removed;return by(n,{op:`add`,path:this.path,value:i}),{newDocument:n,removed:r}},copy:function(e,t,n){var r=yy(n,this.from);return by(n,{op:`add`,path:this.path,value:sy(r)}),{newDocument:n}},test:function(e,t,n){return{newDocument:n,test:Ty(e[t],this.value)}},_get:function(e,t,n){return this.value=e[t],{newDocument:n}}},vy={add:function(e,t,n){return cy(t)?e.splice(t,0,this.value):e[t]=this.value,{newDocument:n,index:t}},remove:function(e,t,n){return{newDocument:n,removed:e.splice(t,1)[0]}},replace:function(e,t,n){var r=e[t];return e[t]=this.value,{newDocument:n,removed:r}},move:_y.move,copy:_y.copy,test:_y.test,_get:_y._get};function yy(e,t){if(t==``)return e;var n={op:`_get`,path:t};return by(e,n),n.value}function by(e,t,n,r,i,a){if(n===void 0&&(n=!1),r===void 0&&(r=!0),i===void 0&&(i=!0),a===void 0&&(a=0),n&&(typeof n==`function`?n(t,0,e,t.path):Cy(t,0)),t.path===``){var o={newDocument:e};if(t.op===`add`)return o.newDocument=t.value,o;if(t.op===`replace`)return o.newDocument=t.value,o.removed=e,o;if(t.op===`move`||t.op===`copy`)return o.newDocument=yy(e,t.from),t.op===`move`&&(o.removed=e),o;if(t.op===`test`){if(o.test=Ty(e,t.value),o.test===!1)throw new hy(`Test operation failed`,`TEST_OPERATION_FAILED`,a,t,e);return o.newDocument=e,o}if(t.op===`remove`)return o.removed=e,o.newDocument=null,o;if(t.op===`_get`)return t.value=e,o;if(n)throw new hy("Operation `op` property is not one of operations defined in RFC-6902",`OPERATION_OP_INVALID`,a,t,e);return o}r||(e=sy(e));var s=(t.path||``).split(`/`),c=e,l=1,u=s.length,d=void 0,f=void 0,p=void 0;for(p=typeof n==`function`?n:Cy;;){if(f=s[l],f&&f.indexOf(`~`)!=-1&&(f=uy(f)),i&&(f==`__proto__`||f==`prototype`&&l>0&&s[l-1]==`constructor`))throw TypeError("JSON-Patch: modifying `__proto__` or `constructor/prototype` prop is banned for security reasons, if this was on purpose, please set `banPrototypeModifications` flag false and pass it to this function. More info in fast-json-patch README");if(n&&d===void 0&&(c[f]===void 0?d=s.slice(0,l).join(`/`):l==u-1&&(d=t.path),d!==void 0&&p(t,0,e,d)),l++,Array.isArray(c)){if(f===`-`)f=c.length;else if(n&&!cy(f))throw new hy(`Expected an unsigned base-10 integer value, making the new referenced value the array element with the zero-based index`,`OPERATION_PATH_ILLEGAL_ARRAY_INDEX`,a,t,e);else cy(f)&&(f=~~f);if(l>=u){if(n&&t.op===`add`&&f>c.length)throw new hy(`The specified index MUST NOT be greater than the number of elements in the array`,`OPERATION_VALUE_OUT_OF_BOUNDS`,a,t,e);var o=vy[t.op].call(t,c,f,e);if(o.test===!1)throw new hy(`Test operation failed`,`TEST_OPERATION_FAILED`,a,t,e);return o}}else if(l>=u){var o=_y[t.op].call(t,c,f,e);if(o.test===!1)throw new hy(`Test operation failed`,`TEST_OPERATION_FAILED`,a,t,e);return o}if(c=c[f],n&&l0)throw new hy('Operation `path` property must start with "/"',`OPERATION_PATH_INVALID`,t,e,n);if((e.op===`move`||e.op===`copy`)&&typeof e.from!=`string`)throw new hy("Operation `from` property is not present (applicable in `move` and `copy` operations)",`OPERATION_FROM_REQUIRED`,t,e,n);if((e.op===`add`||e.op===`replace`||e.op===`test`)&&e.value===void 0)throw new hy("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)",`OPERATION_VALUE_REQUIRED`,t,e,n);if((e.op===`add`||e.op===`replace`||e.op===`test`)&&dy(e.value))throw new hy("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)",`OPERATION_VALUE_CANNOT_CONTAIN_UNDEFINED`,t,e,n);if(n){if(e.op==`add`){var i=e.path.split(`/`).length,a=r.split(`/`).length;if(i!==a+1&&i!==a)throw new hy("Cannot perform an `add` operation at the desired path",`OPERATION_PATH_CANNOT_ADD`,t,e,n)}else if(e.op===`replace`||e.op===`remove`||e.op===`_get`){if(e.path!==r)throw new hy(`Cannot perform the operation at a path that does not exist`,`OPERATION_PATH_UNRESOLVABLE`,t,e,n)}else if(e.op===`move`||e.op===`copy`){var o=wy([{op:`_get`,path:e.from,value:void 0}],n);if(o&&o.name===`OPERATION_PATH_UNRESOLVABLE`)throw new hy(`Cannot perform the operation from a path that does not exist`,`OPERATION_FROM_UNRESOLVABLE`,t,e,n)}}}function wy(e,t,n){try{if(!Array.isArray(e))throw new hy(`Patch sequence must be an array`,`SEQUENCE_NOT_AN_ARRAY`);if(t)xy(sy(t),sy(e),n||!0);else{n||=Cy;for(var r=0;rLy,generate:()=>Fy,observe:()=>Py,unobserve:()=>Ny}),Dy=new WeakMap,Oy=function(){function e(e){this.observers=new Map,this.obj=e}return e}(),ky=function(){function e(e,t){this.callback=e,this.observer=t}return e}();function Ay(e){return Dy.get(e)}function jy(e,t){return e.observers.get(t)}function My(e,t){e.observers.delete(t.callback)}function Ny(e,t){t.unobserve()}function Py(e,t){var n=[],r,i=Ay(e);if(!i)i=new Oy(e),Dy.set(e,i);else{var a=jy(i,t);r=a&&a.observer}if(r)return r;if(r={},i.value=sy(e),t){r.callback=t,r.next=null;var o=function(){Fy(r)},s=function(){clearTimeout(r.next),r.next=setTimeout(o)};typeof window<`u`&&(window.addEventListener(`mouseup`,s),window.addEventListener(`keyup`,s),window.addEventListener(`mousedown`,s),window.addEventListener(`keydown`,s),window.addEventListener(`change`,s))}return r.patches=n,r.object=e,r.unobserve=function(){Fy(r),clearTimeout(r.next),My(i,r),typeof window<`u`&&(window.removeEventListener(`mouseup`,s),window.removeEventListener(`keyup`,s),window.removeEventListener(`mousedown`,s),window.removeEventListener(`keydown`,s),window.removeEventListener(`change`,s))},i.observers.set(t,new ky(t,r)),r}function Fy(e,t){t===void 0&&(t=!1);var n=Dy.get(e.object);Iy(n.value,e.object,e.patches,``,t),e.patches.length&&xy(n.value,e.patches);var r=e.patches;return r.length>0&&(e.patches=[],e.callback&&e.callback(r)),r}function Iy(e,t,n,r,i){if(t!==e){typeof t.toJSON==`function`&&(t=t.toJSON());for(var a=oy(t),o=oy(e),s=!1,c=o.length-1;c>=0;c--){var l=o[c],u=e[l];if(ay(t,l)&&(t[l]!==void 0||u===void 0||Array.isArray(t)!==!1)){var d=t[l];typeof u==`object`&&u&&typeof d==`object`&&d&&Array.isArray(u)===Array.isArray(d)?Iy(u,d,n,r+`/`+ly(l),i):u!==d&&(i&&n.push({op:`test`,path:r+`/`+ly(l),value:sy(u)}),n.push({op:`replace`,path:r+`/`+ly(l),value:sy(d)}))}else Array.isArray(e)===Array.isArray(t)?(i&&n.push({op:`test`,path:r+`/`+ly(l),value:sy(u)}),n.push({op:`remove`,path:r+`/`+ly(l)}),s=!0):(i&&n.push({op:`test`,path:r,value:e}),n.push({op:`replace`,path:r,value:t}))}if(!(!s&&a.length==o.length))for(var c=0;c0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(t){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,t)},t.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},t.prototype._innerSubscribe=function(e){var t=this,n=this,r=n.hasError,i=n.isStopped,a=n.observers;return r||i?Wy:(this.currentObservers=null,a.push(e),new Uy(function(){t.currentObservers=null,Hy(a,e)}))},t.prototype._checkFinalizedStatuses=function(e){var t=this,n=t.hasError,r=t.thrownError,i=t.isStopped;n?e.error(r):i&&e.complete()},t.prototype.asObservable=function(){var e=new _b;return e.source=this,e},t.create=function(e,t){return new Db(e,t)},t}(_b),Db=function(e){Md(t,e);function t(t,n){var r=e.call(this)||this;return r.destination=t,r.source=n,r}return t.prototype.next=function(e){var t,n;(n=(t=this.destination)?.next)==null||n.call(t,e)},t.prototype.error=function(e){var t,n;(n=(t=this.destination)?.error)==null||n.call(t,e)},t.prototype.complete=function(){var e,t;(t=(e=this.destination)?.complete)==null||t.call(e)},t.prototype._subscribe=function(e){return this.source?.subscribe(e)??Wy},t}(Eb),Ob={now:function(){return(Ob.delegate||Date).now()},delegate:void 0},kb=function(e){Md(t,e);function t(t,n,r){t===void 0&&(t=1/0),n===void 0&&(n=1/0),r===void 0&&(r=Ob);var i=e.call(this)||this;return i._bufferSize=t,i._windowTime=n,i._timestampProvider=r,i._buffer=[],i._infiniteTimeWindow=!0,i._infiniteTimeWindow=n===1/0,i._bufferSize=Math.max(1,t),i._windowTime=Math.max(1,n),i}return t.prototype.next=function(t){var n=this,r=n.isStopped,i=n._buffer,a=n._infiniteTimeWindow,o=n._timestampProvider,s=n._windowTime;r||(i.push(t),!a&&i.push(o.now()+s)),this._trimBuffer(),e.prototype.next.call(this,t)},t.prototype._subscribe=function(e){this._throwIfClosed(),this._trimBuffer();for(var t=this._innerSubscribe(e),n=this,r=n._infiniteTimeWindow,i=n._buffer.slice(),a=0;a=0}function Ex(e){for(var t=[`topLevel`],n=0,r,i,a,o=function(e){return t.push(e)},s=function(e){return t[t.length-1]=e},c=function(e){r??(r=n,i=t.length,a=e)},l=function(e){e===a&&(r=void 0,i=void 0,a=void 0)},u=function(){return t.pop()},d=function(){return n--},f=function(e){if(`0`<=e&&e<=`9`){o(`number`);return}switch(e){case`"`:o(`string`);return;case`-`:o(`numberNeedsDigit`);return;case`t`:o(`true`);return;case`f`:o(`false`);return;case`n`:o(`null`);return;case`[`:o(`arrayNeedsValue`);return;case`{`:o(`objectNeedsKey`);return}},p=e.length;n`9`)&&(d(),u());break;case`numberNeedsDigit`:s(`number`);break;case`numberNeedsExponent`:s(m===`+`||m===`-`?`numberNeedsDigit`:`number`);break;case`true`:case`false`:case`null`:(m<`a`||m>`z`)&&(d(),u());break;case`arrayNeedsValue`:m===`]`?u():Tx(m)||(l(`collectionItem`),s(`arrayNeedsComma`),f(m));break;case`arrayNeedsComma`:m===`]`?u():m===`,`&&(c(`collectionItem`),s(`arrayNeedsValue`));break;case`objectNeedsKey`:m===`}`?u():m===`"`&&(c(`collectionItem`),s(`objectNeedsColon`),o(`string`));break;case`objectNeedsColon`:m===`:`&&s(`objectNeedsValue`);break;case`objectNeedsValue`:Tx(m)||(l(`collectionItem`),s(`objectNeedsComma`),f(m));break;case`objectNeedsComma`:m===`}`?u():m===`,`&&(c(`collectionItem`),s(`objectNeedsKey`))}}i!=null&&(t.length=i);for(var h=[r==null?e:e.slice(0,r)],g=function(t){return h.push(t.slice(e.length-e.lastIndexOf(t[0])))},_=t.length-1;_>=0;_--)switch(t[_]){case`string`:h.push(`"`);break;case`numberNeedsDigit`:case`numberNeedsExponent`:h.push(`0`);break;case`true`:g(`true`);break;case`false`:g(`false`);break;case`null`:g(`null`);break;case`arrayNeedsValue`:case`arrayNeedsComma`:h.push(`]`);break;case`objectNeedsKey`:case`objectNeedsColon`:case`objectNeedsValue`:case`objectNeedsComma`:h.push(`}`)}return h.join(``)}function Dx(){let e=0,t=0;for(let n=0;n<28;n+=7){let r=this.buf[this.pos++];if(e|=(r&127)<>4,!(n&128))return this.assertBounds(),[e,t];for(let n=3;n<=31;n+=7){let r=this.buf[this.pos++];if(t|=(r&127)<>>r,a=!(!(i>>>7)&&t==0),o=(a?i|128:i)&255;if(n.push(o),!a)return}let r=e>>>28&15|(t&7)<<4,i=!!(t>>3);if(n.push((i?r|128:r)&255),i){for(let e=3;e<31;e+=7){let r=t>>>e,i=!!(r>>>7),a=(i?r|128:r)&255;if(n.push(a),!i)return}n.push(t>>>31&1)}}var kx=4294967296;function Ax(e){let t=e[0]===`-`;t&&(e=e.slice(1));let n=1e6,r=0,i=0;function a(t,a){let o=Number(e.slice(t,a));i*=n,r=r*n+o,r>=kx&&(i+=r/kx|0,r%=kx)}return a(-24,-18),a(-18,-12),a(-12,-6),a(-6),t?Fx(r,i):Px(r,i)}function jx(e,t){let n=Px(e,t),r=n.hi&2147483648;r&&(n=Fx(n.lo,n.hi));let i=Mx(n.lo,n.hi);return r?`-`+i:i}function Mx(e,t){if({lo:e,hi:t}=Nx(e,t),t<=2097151)return String(kx*t+e);let n=e&16777215,r=(e>>>24|t<<8)&16777215,i=t>>16&65535,a=n+r*6777216+i*6710656,o=r+i*8147497,s=i*2,c=1e7;return a>=c&&(o+=Math.floor(a/c),a%=c),o>=c&&(s+=Math.floor(o/c),o%=c),s.toString()+Ix(o)+Ix(a)}function Nx(e,t){return{lo:e>>>0,hi:t>>>0}}function Px(e,t){return{lo:e|0,hi:t|0}}function Fx(e,t){return t=~t,e?e=~e+1:t+=1,Px(e,t)}var Ix=e=>{let t=String(e);return`0000000`.slice(t.length)+t};function Lx(e,t){if(e>=0){for(;e>127;)t.push(e&127|128),e>>>=7;t.push(e)}else{for(let n=0;n<9;n++)t.push(e&127|128),e>>=7;t.push(1)}}function Rx(){let e=this.buf[this.pos++],t=e&127;if(!(e&128)||(e=this.buf[this.pos++],t|=(e&127)<<7,!(e&128))||(e=this.buf[this.pos++],t|=(e&127)<<14,!(e&128))||(e=this.buf[this.pos++],t|=(e&127)<<21,!(e&128)))return this.assertBounds(),t;e=this.buf[this.pos++],t|=(e&15)<<28;for(let t=5;e&128&&t<10;t++)e=this.buf[this.pos++];if(e&128)throw Error(`invalid varint`);return this.assertBounds(),t>>>0}var zx=Bx();function Bx(){let e=new DataView(new ArrayBuffer(8));if(typeof BigInt==`function`&&typeof e.getBigInt64==`function`&&typeof e.getBigUint64==`function`&&typeof e.setBigInt64==`function`&&typeof e.setBigUint64==`function`&&(globalThis.Deno||globalThis.Bun||typeof process!=`object`||{}.BUF_BIGINT_DISABLE!==`1`)){let t=BigInt(`-9223372036854775808`),n=BigInt(`9223372036854775807`),r=BigInt(`0`),i=BigInt(`18446744073709551615`);return{zero:BigInt(0),supported:!0,parse(e){let r=typeof e==`bigint`?e:BigInt(e);if(r>n||ri||t>>0)}raw(e){return this.buf.length&&(this.chunks.push(new Uint8Array(this.buf)),this.buf=[]),this.chunks.push(e),this}uint32(e){for(Jx(e);e>127;)this.buf.push(e&127|128),e>>>=7;return this.buf.push(e),this}int32(e){return qx(e),Lx(e,this.buf),this}bool(e){return this.buf.push(+!!e),this}bytes(e){return this.uint32(e.byteLength),this.raw(e)}string(e){let t=this.encodeUtf8(e);return this.uint32(t.byteLength),this.raw(t)}float(e){Yx(e);let t=new Uint8Array(4);return new DataView(t.buffer).setFloat32(0,e,!0),this.raw(t)}double(e){let t=new Uint8Array(8);return new DataView(t.buffer).setFloat64(0,e,!0),this.raw(t)}fixed32(e){Jx(e);let t=new Uint8Array(4);return new DataView(t.buffer).setUint32(0,e,!0),this.raw(t)}sfixed32(e){qx(e);let t=new Uint8Array(4);return new DataView(t.buffer).setInt32(0,e,!0),this.raw(t)}sint32(e){return qx(e),e=(e<<1^e>>31)>>>0,Lx(e,this.buf),this}sfixed64(e){let t=new Uint8Array(8),n=new DataView(t.buffer),r=zx.enc(e);return n.setInt32(0,r.lo,!0),n.setInt32(4,r.hi,!0),this.raw(t)}fixed64(e){let t=new Uint8Array(8),n=new DataView(t.buffer),r=zx.uEnc(e);return n.setInt32(0,r.lo,!0),n.setInt32(4,r.hi,!0),this.raw(t)}int64(e){let t=zx.enc(e);return Ox(t.lo,t.hi,this.buf),this}sint64(e){let t=zx.enc(e),n=t.hi>>31;return Ox(t.lo<<1^n,(t.hi<<1|t.lo>>>31)^n,this.buf),this}uint64(e){let t=zx.uEnc(e);return Ox(t.lo,t.hi,this.buf),this}},G=class{constructor(e,t=Wx().decodeUtf8){this.decodeUtf8=t,this.varint64=Dx,this.uint32=Rx,this.buf=e,this.len=e.length,this.pos=0,this.view=new DataView(e.buffer,e.byteOffset,e.byteLength)}tag(){let e=this.pos,t=this.uint32(),n=this.pos-e;if(n>5||n==5&&this.buf[this.pos-1]>15)throw Error(`illegal tag: varint overflows uint32`);let r=t>>>3,i=t&7;if(r<=0||i>5)throw Error(`illegal tag: field no `+r+` wire type `+i);return[r,i]}skip(e,t,n=100){let r=this.pos;switch(e){case Gx.Varint:for(;this.buf[this.pos++]&128;);break;case Gx.Bit64:this.pos+=4;case Gx.Bit32:this.pos+=4;break;case Gx.LengthDelimited:let r=this.uint32();this.pos+=r;break;case Gx.StartGroup:if(n<=0)throw Error(`maximum recursion depth reached`);for(;;){let[e,r]=this.tag();if(r===Gx.EndGroup){if(t!==void 0&&e!==t)throw Error(`invalid end group tag`);break}this.skip(r,e,n-1)}break;default:throw Error(`cant skip wire type `+e)}return this.assertBounds(),this.buf.subarray(r,this.pos)}assertBounds(){if(this.pos>this.len)throw RangeError(`premature EOF`)}int32(){return this.uint32()|0}sint32(){let e=this.uint32();return e>>>1^-(e&1)}int64(){return zx.dec(...this.varint64())}uint64(){return zx.uDec(...this.varint64())}sint64(){let[e,t]=this.varint64(),n=-(e&1);return e=(e>>>1|(t&1)<<31)^n,t=t>>>1^n,zx.dec(e,t)}bool(){let[e,t]=this.varint64();return e!==0||t!==0}fixed32(){return this.view.getUint32((this.pos+=4)-4,!0)}sfixed32(){return this.view.getInt32((this.pos+=4)-4,!0)}fixed64(){return zx.uDec(this.sfixed32(),this.sfixed32())}sfixed64(){return zx.dec(this.sfixed32(),this.sfixed32())}float(){return this.view.getFloat32((this.pos+=4)-4,!0)}double(){return this.view.getFloat64((this.pos+=8)-8,!0)}bytes(){let e=this.uint32(),t=this.pos;return this.pos+=e,this.assertBounds(),this.buf.subarray(t,t+e)}string(e){return this.decodeUtf8(this.bytes(),e)}};function qx(e){if(typeof e==`string`)e=Number(e);else if(typeof e!=`number`)throw Error(`invalid int32: `+typeof e);if(!Number.isInteger(e)||e>2147483647||e<-2147483648)throw Error(`invalid int32: `+e)}function Jx(e){if(typeof e==`string`)e=Number(e);else if(typeof e!=`number`)throw Error(`invalid uint32: `+typeof e);if(!Number.isInteger(e)||e>4294967295||e<0)throw Error(`invalid uint32: `+e)}function Yx(e){if(typeof e==`string`){let t=e;if(e=Number(e),Number.isNaN(e)&&t!==`NaN`)throw Error(`invalid float32: `+t)}else if(typeof e!=`number`)throw Error(`invalid float32: `+typeof e);if(Number.isFinite(e)&&(e>34028234663852886e22||e<-34028234663852886e22))throw Error(`invalid float32: `+e)}var Xx=function(e){return e[e.NULL_VALUE=0]=`NULL_VALUE`,e[e.UNRECOGNIZED=-1]=`UNRECOGNIZED`,e}({});function Zx(){return{fields:{}}}var Qx={encode(e,t=new Kx){return Object.entries(e.fields).forEach(([e,n])=>{n!==void 0&&eS.encode({key:e,value:n},t.uint32(10).fork()).join()}),t},decode(e,t){let n=e instanceof G?e:new G(e),r=t===void 0?n.len:n.pos+t,i=Zx();for(;n.pos>>3){case 1:{if(e!==10)break;let t=eS.decode(n,n.uint32());t.value!==void 0&&(i.fields[t.key]=t.value);continue}}if((e&7)==4||e===0)break;n.skip(e&7)}return i},create(e){return Qx.fromPartial(e??{})},fromPartial(e){let t=Zx();return t.fields=Object.entries(e.fields??{}).reduce((e,[t,n])=>(n!==void 0&&(e[t]=n),e),{}),t},wrap(e){let t=Zx();if(e!==void 0)for(let n of Object.keys(e))t.fields[n]=e[n];return t},unwrap(e){let t={};if(e.fields)for(let n of Object.keys(e.fields))t[n]=e.fields[n];return t}};function $x(){return{key:``,value:void 0}}var eS={encode(e,t=new Kx){return e.key!==``&&t.uint32(10).string(e.key),e.value!==void 0&&K.encode(K.wrap(e.value),t.uint32(18).fork()).join(),t},decode(e,t){let n=e instanceof G?e:new G(e),r=t===void 0?n.len:n.pos+t,i=$x();for(;n.pos>>3){case 1:if(e!==10)break;i.key=n.string();continue;case 2:if(e!==18)break;i.value=K.unwrap(K.decode(n,n.uint32()));continue}if((e&7)==4||e===0)break;n.skip(e&7)}return i},create(e){return eS.fromPartial(e??{})},fromPartial(e){let t=$x();return t.key=e.key??``,t.value=e.value??void 0,t}};function tS(){return{nullValue:void 0,numberValue:void 0,stringValue:void 0,boolValue:void 0,structValue:void 0,listValue:void 0}}var K={encode(e,t=new Kx){return e.nullValue!==void 0&&t.uint32(8).int32(e.nullValue),e.numberValue!==void 0&&t.uint32(17).double(e.numberValue),e.stringValue!==void 0&&t.uint32(26).string(e.stringValue),e.boolValue!==void 0&&t.uint32(32).bool(e.boolValue),e.structValue!==void 0&&Qx.encode(Qx.wrap(e.structValue),t.uint32(42).fork()).join(),e.listValue!==void 0&&rS.encode(rS.wrap(e.listValue),t.uint32(50).fork()).join(),t},decode(e,t){let n=e instanceof G?e:new G(e),r=t===void 0?n.len:n.pos+t,i=tS();for(;n.pos>>3){case 1:if(e!==8)break;i.nullValue=n.int32();continue;case 2:if(e!==17)break;i.numberValue=n.double();continue;case 3:if(e!==26)break;i.stringValue=n.string();continue;case 4:if(e!==32)break;i.boolValue=n.bool();continue;case 5:if(e!==42)break;i.structValue=Qx.unwrap(Qx.decode(n,n.uint32()));continue;case 6:if(e!==50)break;i.listValue=rS.unwrap(rS.decode(n,n.uint32()));continue}if((e&7)==4||e===0)break;n.skip(e&7)}return i},create(e){return K.fromPartial(e??{})},fromPartial(e){let t=tS();return t.nullValue=e.nullValue??void 0,t.numberValue=e.numberValue??void 0,t.stringValue=e.stringValue??void 0,t.boolValue=e.boolValue??void 0,t.structValue=e.structValue??void 0,t.listValue=e.listValue??void 0,t},wrap(e){let t=tS();if(e===null)t.nullValue=Xx.NULL_VALUE;else if(typeof e==`boolean`)t.boolValue=e;else if(typeof e==`number`)t.numberValue=e;else if(typeof e==`string`)t.stringValue=e;else if(globalThis.Array.isArray(e))t.listValue=e;else if(typeof e==`object`)t.structValue=e;else if(e!==void 0)throw new globalThis.Error(`Unsupported any value type: `+typeof e);return t},unwrap(e){if(e.stringValue!==void 0)return e.stringValue;if(e?.numberValue!==void 0)return e.numberValue;if(e?.boolValue!==void 0)return e.boolValue;if(e?.structValue!==void 0)return e.structValue;if(e?.listValue!==void 0)return e.listValue;if(e?.nullValue!==void 0)return null}};function nS(){return{values:[]}}var rS={encode(e,t=new Kx){for(let n of e.values)K.encode(K.wrap(n),t.uint32(10).fork()).join();return t},decode(e,t){let n=e instanceof G?e:new G(e),r=t===void 0?n.len:n.pos+t,i=nS();for(;n.pos>>3){case 1:if(e!==10)break;i.values.push(K.unwrap(K.decode(n,n.uint32())));continue}if((e&7)==4||e===0)break;n.skip(e&7)}return i},create(e){return rS.fromPartial(e??{})},fromPartial(e){let t=nS();return t.values=e.values?.map(e=>e)||[],t},wrap(e){let t=nS();return t.values=e??[],t},unwrap(e){return e?.hasOwnProperty(`values`)&&globalThis.Array.isArray(e.values)?e.values:e}},iS=function(e){return e[e.ADD=0]=`ADD`,e[e.REMOVE=1]=`REMOVE`,e[e.REPLACE=2]=`REPLACE`,e[e.MOVE=3]=`MOVE`,e[e.COPY=4]=`COPY`,e[e.TEST=5]=`TEST`,e[e.UNRECOGNIZED=-1]=`UNRECOGNIZED`,e}({});function aS(){return{op:0,path:``,from:void 0,value:void 0}}var oS={encode(e,t=new Kx){return e.op!==0&&t.uint32(8).int32(e.op),e.path!==``&&t.uint32(18).string(e.path),e.from!==void 0&&t.uint32(26).string(e.from),e.value!==void 0&&K.encode(K.wrap(e.value),t.uint32(34).fork()).join(),t},decode(e,t){let n=e instanceof G?e:new G(e),r=t===void 0?n.len:n.pos+t,i=aS();for(;n.pos>>3){case 1:if(e!==8)break;i.op=n.int32();continue;case 2:if(e!==18)break;i.path=n.string();continue;case 3:if(e!==26)break;i.from=n.string();continue;case 4:if(e!==34)break;i.value=K.unwrap(K.decode(n,n.uint32()));continue}if((e&7)==4||e===0)break;n.skip(e&7)}return i},create(e){return oS.fromPartial(e??{})},fromPartial(e){let t=aS();return t.op=e.op??0,t.path=e.path??``,t.from=e.from??void 0,t.value=e.value??void 0,t}};function sS(){return{id:``,type:``,function:void 0}}var cS={encode(e,t=new Kx){return e.id!==``&&t.uint32(10).string(e.id),e.type!==``&&t.uint32(18).string(e.type),e.function!==void 0&&uS.encode(e.function,t.uint32(26).fork()).join(),t},decode(e,t){let n=e instanceof G?e:new G(e),r=t===void 0?n.len:n.pos+t,i=sS();for(;n.pos>>3){case 1:if(e!==10)break;i.id=n.string();continue;case 2:if(e!==18)break;i.type=n.string();continue;case 3:if(e!==26)break;i.function=uS.decode(n,n.uint32());continue}if((e&7)==4||e===0)break;n.skip(e&7)}return i},create(e){return cS.fromPartial(e??{})},fromPartial(e){let t=sS();return t.id=e.id??``,t.type=e.type??``,t.function=e.function!==void 0&&e.function!==null?uS.fromPartial(e.function):void 0,t}};function lS(){return{name:``,arguments:``}}var uS={encode(e,t=new Kx){return e.name!==``&&t.uint32(10).string(e.name),e.arguments!==``&&t.uint32(18).string(e.arguments),t},decode(e,t){let n=e instanceof G?e:new G(e),r=t===void 0?n.len:n.pos+t,i=lS();for(;n.pos>>3){case 1:if(e!==10)break;i.name=n.string();continue;case 2:if(e!==18)break;i.arguments=n.string();continue}if((e&7)==4||e===0)break;n.skip(e&7)}return i},create(e){return uS.fromPartial(e??{})},fromPartial(e){let t=lS();return t.name=e.name??``,t.arguments=e.arguments??``,t}};function dS(){return{value:``,mimeType:``}}var fS={encode(e,t=new Kx){return e.value!==``&&t.uint32(10).string(e.value),e.mimeType!==``&&t.uint32(18).string(e.mimeType),t},decode(e,t){let n=e instanceof G?e:new G(e),r=t===void 0?n.len:n.pos+t,i=dS();for(;n.pos>>3){case 1:if(e!==10)break;i.value=n.string();continue;case 2:if(e!==18)break;i.mimeType=n.string();continue}if((e&7)==4||e===0)break;n.skip(e&7)}return i},create(e){return fS.fromPartial(e??{})},fromPartial(e){let t=dS();return t.value=e.value??``,t.mimeType=e.mimeType??``,t}};function pS(){return{value:``,mimeType:void 0}}var mS={encode(e,t=new Kx){return e.value!==``&&t.uint32(10).string(e.value),e.mimeType!==void 0&&t.uint32(18).string(e.mimeType),t},decode(e,t){let n=e instanceof G?e:new G(e),r=t===void 0?n.len:n.pos+t,i=pS();for(;n.pos>>3){case 1:if(e!==10)break;i.value=n.string();continue;case 2:if(e!==18)break;i.mimeType=n.string();continue}if((e&7)==4||e===0)break;n.skip(e&7)}return i},create(e){return mS.fromPartial(e??{})},fromPartial(e){let t=pS();return t.value=e.value??``,t.mimeType=e.mimeType??void 0,t}};function hS(){return{data:void 0,url:void 0}}var gS={encode(e,t=new Kx){return e.data!==void 0&&fS.encode(e.data,t.uint32(10).fork()).join(),e.url!==void 0&&mS.encode(e.url,t.uint32(18).fork()).join(),t},decode(e,t){let n=e instanceof G?e:new G(e),r=t===void 0?n.len:n.pos+t,i=hS();for(;n.pos>>3){case 1:if(e!==10)break;i.data=fS.decode(n,n.uint32());continue;case 2:if(e!==18)break;i.url=mS.decode(n,n.uint32());continue}if((e&7)==4||e===0)break;n.skip(e&7)}return i},create(e){return gS.fromPartial(e??{})},fromPartial(e){let t=hS();return t.data=e.data!==void 0&&e.data!==null?fS.fromPartial(e.data):void 0,t.url=e.url!==void 0&&e.url!==null?mS.fromPartial(e.url):void 0,t}};function _S(){return{text:``}}var vS={encode(e,t=new Kx){return e.text!==``&&t.uint32(10).string(e.text),t},decode(e,t){let n=e instanceof G?e:new G(e),r=t===void 0?n.len:n.pos+t,i=_S();for(;n.pos>>3){case 1:if(e!==10)break;i.text=n.string();continue}if((e&7)==4||e===0)break;n.skip(e&7)}return i},create(e){return vS.fromPartial(e??{})},fromPartial(e){let t=_S();return t.text=e.text??``,t}};function yS(){return{source:void 0,metadata:void 0}}var bS={encode(e,t=new Kx){return e.source!==void 0&&gS.encode(e.source,t.uint32(10).fork()).join(),e.metadata!==void 0&&K.encode(K.wrap(e.metadata),t.uint32(18).fork()).join(),t},decode(e,t){let n=e instanceof G?e:new G(e),r=t===void 0?n.len:n.pos+t,i=yS();for(;n.pos>>3){case 1:if(e!==10)break;i.source=gS.decode(n,n.uint32());continue;case 2:if(e!==18)break;i.metadata=K.unwrap(K.decode(n,n.uint32()));continue}if((e&7)==4||e===0)break;n.skip(e&7)}return i},create(e){return bS.fromPartial(e??{})},fromPartial(e){let t=yS();return t.source=e.source!==void 0&&e.source!==null?gS.fromPartial(e.source):void 0,t.metadata=e.metadata??void 0,t}};function xS(){return{source:void 0,metadata:void 0}}var SS={encode(e,t=new Kx){return e.source!==void 0&&gS.encode(e.source,t.uint32(10).fork()).join(),e.metadata!==void 0&&K.encode(K.wrap(e.metadata),t.uint32(18).fork()).join(),t},decode(e,t){let n=e instanceof G?e:new G(e),r=t===void 0?n.len:n.pos+t,i=xS();for(;n.pos>>3){case 1:if(e!==10)break;i.source=gS.decode(n,n.uint32());continue;case 2:if(e!==18)break;i.metadata=K.unwrap(K.decode(n,n.uint32()));continue}if((e&7)==4||e===0)break;n.skip(e&7)}return i},create(e){return SS.fromPartial(e??{})},fromPartial(e){let t=xS();return t.source=e.source!==void 0&&e.source!==null?gS.fromPartial(e.source):void 0,t.metadata=e.metadata??void 0,t}};function CS(){return{source:void 0,metadata:void 0}}var wS={encode(e,t=new Kx){return e.source!==void 0&&gS.encode(e.source,t.uint32(10).fork()).join(),e.metadata!==void 0&&K.encode(K.wrap(e.metadata),t.uint32(18).fork()).join(),t},decode(e,t){let n=e instanceof G?e:new G(e),r=t===void 0?n.len:n.pos+t,i=CS();for(;n.pos>>3){case 1:if(e!==10)break;i.source=gS.decode(n,n.uint32());continue;case 2:if(e!==18)break;i.metadata=K.unwrap(K.decode(n,n.uint32()));continue}if((e&7)==4||e===0)break;n.skip(e&7)}return i},create(e){return wS.fromPartial(e??{})},fromPartial(e){let t=CS();return t.source=e.source!==void 0&&e.source!==null?gS.fromPartial(e.source):void 0,t.metadata=e.metadata??void 0,t}};function TS(){return{source:void 0,metadata:void 0}}var ES={encode(e,t=new Kx){return e.source!==void 0&&gS.encode(e.source,t.uint32(10).fork()).join(),e.metadata!==void 0&&K.encode(K.wrap(e.metadata),t.uint32(18).fork()).join(),t},decode(e,t){let n=e instanceof G?e:new G(e),r=t===void 0?n.len:n.pos+t,i=TS();for(;n.pos>>3){case 1:if(e!==10)break;i.source=gS.decode(n,n.uint32());continue;case 2:if(e!==18)break;i.metadata=K.unwrap(K.decode(n,n.uint32()));continue}if((e&7)==4||e===0)break;n.skip(e&7)}return i},create(e){return ES.fromPartial(e??{})},fromPartial(e){let t=TS();return t.source=e.source!==void 0&&e.source!==null?gS.fromPartial(e.source):void 0,t.metadata=e.metadata??void 0,t}};function DS(){return{text:void 0,image:void 0,audio:void 0,video:void 0,document:void 0}}var OS={encode(e,t=new Kx){return e.text!==void 0&&vS.encode(e.text,t.uint32(10).fork()).join(),e.image!==void 0&&bS.encode(e.image,t.uint32(18).fork()).join(),e.audio!==void 0&&SS.encode(e.audio,t.uint32(26).fork()).join(),e.video!==void 0&&wS.encode(e.video,t.uint32(34).fork()).join(),e.document!==void 0&&ES.encode(e.document,t.uint32(42).fork()).join(),t},decode(e,t){let n=e instanceof G?e:new G(e),r=t===void 0?n.len:n.pos+t,i=DS();for(;n.pos>>3){case 1:if(e!==10)break;i.text=vS.decode(n,n.uint32());continue;case 2:if(e!==18)break;i.image=bS.decode(n,n.uint32());continue;case 3:if(e!==26)break;i.audio=SS.decode(n,n.uint32());continue;case 4:if(e!==34)break;i.video=wS.decode(n,n.uint32());continue;case 5:if(e!==42)break;i.document=ES.decode(n,n.uint32());continue}if((e&7)==4||e===0)break;n.skip(e&7)}return i},create(e){return OS.fromPartial(e??{})},fromPartial(e){let t=DS();return t.text=e.text!==void 0&&e.text!==null?vS.fromPartial(e.text):void 0,t.image=e.image!==void 0&&e.image!==null?bS.fromPartial(e.image):void 0,t.audio=e.audio!==void 0&&e.audio!==null?SS.fromPartial(e.audio):void 0,t.video=e.video!==void 0&&e.video!==null?wS.fromPartial(e.video):void 0,t.document=e.document!==void 0&&e.document!==null?ES.fromPartial(e.document):void 0,t}};function kS(){return{id:``,role:``,content:void 0,name:void 0,toolCalls:[],toolCallId:void 0,error:void 0,contentParts:[]}}var AS={encode(e,t=new Kx){e.id!==``&&t.uint32(10).string(e.id),e.role!==``&&t.uint32(18).string(e.role),e.content!==void 0&&t.uint32(26).string(e.content),e.name!==void 0&&t.uint32(34).string(e.name);for(let n of e.toolCalls)cS.encode(n,t.uint32(42).fork()).join();e.toolCallId!==void 0&&t.uint32(50).string(e.toolCallId),e.error!==void 0&&t.uint32(58).string(e.error);for(let n of e.contentParts)OS.encode(n,t.uint32(66).fork()).join();return t},decode(e,t){let n=e instanceof G?e:new G(e),r=t===void 0?n.len:n.pos+t,i=kS();for(;n.pos>>3){case 1:if(e!==10)break;i.id=n.string();continue;case 2:if(e!==18)break;i.role=n.string();continue;case 3:if(e!==26)break;i.content=n.string();continue;case 4:if(e!==34)break;i.name=n.string();continue;case 5:if(e!==42)break;i.toolCalls.push(cS.decode(n,n.uint32()));continue;case 6:if(e!==50)break;i.toolCallId=n.string();continue;case 7:if(e!==58)break;i.error=n.string();continue;case 8:if(e!==66)break;i.contentParts.push(OS.decode(n,n.uint32()));continue}if((e&7)==4||e===0)break;n.skip(e&7)}return i},create(e){return AS.fromPartial(e??{})},fromPartial(e){let t=kS();return t.id=e.id??``,t.role=e.role??``,t.content=e.content??void 0,t.name=e.name??void 0,t.toolCalls=e.toolCalls?.map(e=>cS.fromPartial(e))||[],t.toolCallId=e.toolCallId??void 0,t.error=e.error??void 0,t.contentParts=e.contentParts?.map(e=>OS.fromPartial(e))||[],t}};function jS(){return{id:``,reason:``,message:void 0,toolCallId:void 0,responseSchema:void 0,expiresAt:void 0,metadata:void 0}}var MS={encode(e,t=new Kx){return e.id!==``&&t.uint32(10).string(e.id),e.reason!==``&&t.uint32(18).string(e.reason),e.message!==void 0&&t.uint32(26).string(e.message),e.toolCallId!==void 0&&t.uint32(34).string(e.toolCallId),e.responseSchema!==void 0&&K.encode(K.wrap(e.responseSchema),t.uint32(42).fork()).join(),e.expiresAt!==void 0&&t.uint32(50).string(e.expiresAt),e.metadata!==void 0&&K.encode(K.wrap(e.metadata),t.uint32(58).fork()).join(),t},decode(e,t){let n=e instanceof G?e:new G(e),r=t===void 0?n.len:n.pos+t,i=jS();for(;n.pos>>3){case 1:if(e!==10)break;i.id=n.string();continue;case 2:if(e!==18)break;i.reason=n.string();continue;case 3:if(e!==26)break;i.message=n.string();continue;case 4:if(e!==34)break;i.toolCallId=n.string();continue;case 5:if(e!==42)break;i.responseSchema=K.unwrap(K.decode(n,n.uint32()));continue;case 6:if(e!==50)break;i.expiresAt=n.string();continue;case 7:if(e!==58)break;i.metadata=K.unwrap(K.decode(n,n.uint32()));continue}if((e&7)==4||e===0)break;n.skip(e&7)}return i},create(e){return MS.fromPartial(e??{})},fromPartial(e){let t=jS();return t.id=e.id??``,t.reason=e.reason??``,t.message=e.message??void 0,t.toolCallId=e.toolCallId??void 0,t.responseSchema=e.responseSchema??void 0,t.expiresAt=e.expiresAt??void 0,t.metadata=e.metadata??void 0,t}},NS=function(e){return e[e.TEXT_MESSAGE_START=0]=`TEXT_MESSAGE_START`,e[e.TEXT_MESSAGE_CONTENT=1]=`TEXT_MESSAGE_CONTENT`,e[e.TEXT_MESSAGE_END=2]=`TEXT_MESSAGE_END`,e[e.TOOL_CALL_START=3]=`TOOL_CALL_START`,e[e.TOOL_CALL_ARGS=4]=`TOOL_CALL_ARGS`,e[e.TOOL_CALL_END=5]=`TOOL_CALL_END`,e[e.STATE_SNAPSHOT=6]=`STATE_SNAPSHOT`,e[e.STATE_DELTA=7]=`STATE_DELTA`,e[e.MESSAGES_SNAPSHOT=8]=`MESSAGES_SNAPSHOT`,e[e.RAW=9]=`RAW`,e[e.CUSTOM=10]=`CUSTOM`,e[e.RUN_STARTED=11]=`RUN_STARTED`,e[e.RUN_FINISHED=12]=`RUN_FINISHED`,e[e.RUN_ERROR=13]=`RUN_ERROR`,e[e.STEP_STARTED=14]=`STEP_STARTED`,e[e.STEP_FINISHED=15]=`STEP_FINISHED`,e[e.UNRECOGNIZED=-1]=`UNRECOGNIZED`,e}({});function PS(){return{type:0,timestamp:void 0,rawEvent:void 0}}var q={encode(e,t=new Kx){return e.type!==0&&t.uint32(8).int32(e.type),e.timestamp!==void 0&&t.uint32(16).int64(e.timestamp),e.rawEvent!==void 0&&K.encode(K.wrap(e.rawEvent),t.uint32(26).fork()).join(),t},decode(e,t){let n=e instanceof G?e:new G(e),r=t===void 0?n.len:n.pos+t,i=PS();for(;n.pos>>3){case 1:if(e!==8)break;i.type=n.int32();continue;case 2:if(e!==16)break;i.timestamp=yC(n.int64());continue;case 3:if(e!==26)break;i.rawEvent=K.unwrap(K.decode(n,n.uint32()));continue}if((e&7)==4||e===0)break;n.skip(e&7)}return i},create(e){return q.fromPartial(e??{})},fromPartial(e){let t=PS();return t.type=e.type??0,t.timestamp=e.timestamp??void 0,t.rawEvent=e.rawEvent??void 0,t}};function FS(){return{baseEvent:void 0,messageId:``,role:void 0,name:void 0}}var IS={encode(e,t=new Kx){return e.baseEvent!==void 0&&q.encode(e.baseEvent,t.uint32(10).fork()).join(),e.messageId!==``&&t.uint32(18).string(e.messageId),e.role!==void 0&&t.uint32(26).string(e.role),e.name!==void 0&&t.uint32(34).string(e.name),t},decode(e,t){let n=e instanceof G?e:new G(e),r=t===void 0?n.len:n.pos+t,i=FS();for(;n.pos>>3){case 1:if(e!==10)break;i.baseEvent=q.decode(n,n.uint32());continue;case 2:if(e!==18)break;i.messageId=n.string();continue;case 3:if(e!==26)break;i.role=n.string();continue;case 4:if(e!==34)break;i.name=n.string();continue}if((e&7)==4||e===0)break;n.skip(e&7)}return i},create(e){return IS.fromPartial(e??{})},fromPartial(e){let t=FS();return t.baseEvent=e.baseEvent!==void 0&&e.baseEvent!==null?q.fromPartial(e.baseEvent):void 0,t.messageId=e.messageId??``,t.role=e.role??void 0,t.name=e.name??void 0,t}};function LS(){return{baseEvent:void 0,messageId:``,delta:``}}var RS={encode(e,t=new Kx){return e.baseEvent!==void 0&&q.encode(e.baseEvent,t.uint32(10).fork()).join(),e.messageId!==``&&t.uint32(18).string(e.messageId),e.delta!==``&&t.uint32(26).string(e.delta),t},decode(e,t){let n=e instanceof G?e:new G(e),r=t===void 0?n.len:n.pos+t,i=LS();for(;n.pos>>3){case 1:if(e!==10)break;i.baseEvent=q.decode(n,n.uint32());continue;case 2:if(e!==18)break;i.messageId=n.string();continue;case 3:if(e!==26)break;i.delta=n.string();continue}if((e&7)==4||e===0)break;n.skip(e&7)}return i},create(e){return RS.fromPartial(e??{})},fromPartial(e){let t=LS();return t.baseEvent=e.baseEvent!==void 0&&e.baseEvent!==null?q.fromPartial(e.baseEvent):void 0,t.messageId=e.messageId??``,t.delta=e.delta??``,t}};function zS(){return{baseEvent:void 0,messageId:``}}var BS={encode(e,t=new Kx){return e.baseEvent!==void 0&&q.encode(e.baseEvent,t.uint32(10).fork()).join(),e.messageId!==``&&t.uint32(18).string(e.messageId),t},decode(e,t){let n=e instanceof G?e:new G(e),r=t===void 0?n.len:n.pos+t,i=zS();for(;n.pos>>3){case 1:if(e!==10)break;i.baseEvent=q.decode(n,n.uint32());continue;case 2:if(e!==18)break;i.messageId=n.string();continue}if((e&7)==4||e===0)break;n.skip(e&7)}return i},create(e){return BS.fromPartial(e??{})},fromPartial(e){let t=zS();return t.baseEvent=e.baseEvent!==void 0&&e.baseEvent!==null?q.fromPartial(e.baseEvent):void 0,t.messageId=e.messageId??``,t}};function VS(){return{baseEvent:void 0,toolCallId:``,toolCallName:``,parentMessageId:void 0}}var HS={encode(e,t=new Kx){return e.baseEvent!==void 0&&q.encode(e.baseEvent,t.uint32(10).fork()).join(),e.toolCallId!==``&&t.uint32(18).string(e.toolCallId),e.toolCallName!==``&&t.uint32(26).string(e.toolCallName),e.parentMessageId!==void 0&&t.uint32(34).string(e.parentMessageId),t},decode(e,t){let n=e instanceof G?e:new G(e),r=t===void 0?n.len:n.pos+t,i=VS();for(;n.pos>>3){case 1:if(e!==10)break;i.baseEvent=q.decode(n,n.uint32());continue;case 2:if(e!==18)break;i.toolCallId=n.string();continue;case 3:if(e!==26)break;i.toolCallName=n.string();continue;case 4:if(e!==34)break;i.parentMessageId=n.string();continue}if((e&7)==4||e===0)break;n.skip(e&7)}return i},create(e){return HS.fromPartial(e??{})},fromPartial(e){let t=VS();return t.baseEvent=e.baseEvent!==void 0&&e.baseEvent!==null?q.fromPartial(e.baseEvent):void 0,t.toolCallId=e.toolCallId??``,t.toolCallName=e.toolCallName??``,t.parentMessageId=e.parentMessageId??void 0,t}};function US(){return{baseEvent:void 0,toolCallId:``,delta:``}}var WS={encode(e,t=new Kx){return e.baseEvent!==void 0&&q.encode(e.baseEvent,t.uint32(10).fork()).join(),e.toolCallId!==``&&t.uint32(18).string(e.toolCallId),e.delta!==``&&t.uint32(26).string(e.delta),t},decode(e,t){let n=e instanceof G?e:new G(e),r=t===void 0?n.len:n.pos+t,i=US();for(;n.pos>>3){case 1:if(e!==10)break;i.baseEvent=q.decode(n,n.uint32());continue;case 2:if(e!==18)break;i.toolCallId=n.string();continue;case 3:if(e!==26)break;i.delta=n.string();continue}if((e&7)==4||e===0)break;n.skip(e&7)}return i},create(e){return WS.fromPartial(e??{})},fromPartial(e){let t=US();return t.baseEvent=e.baseEvent!==void 0&&e.baseEvent!==null?q.fromPartial(e.baseEvent):void 0,t.toolCallId=e.toolCallId??``,t.delta=e.delta??``,t}};function GS(){return{baseEvent:void 0,toolCallId:``}}var KS={encode(e,t=new Kx){return e.baseEvent!==void 0&&q.encode(e.baseEvent,t.uint32(10).fork()).join(),e.toolCallId!==``&&t.uint32(18).string(e.toolCallId),t},decode(e,t){let n=e instanceof G?e:new G(e),r=t===void 0?n.len:n.pos+t,i=GS();for(;n.pos>>3){case 1:if(e!==10)break;i.baseEvent=q.decode(n,n.uint32());continue;case 2:if(e!==18)break;i.toolCallId=n.string();continue}if((e&7)==4||e===0)break;n.skip(e&7)}return i},create(e){return KS.fromPartial(e??{})},fromPartial(e){let t=GS();return t.baseEvent=e.baseEvent!==void 0&&e.baseEvent!==null?q.fromPartial(e.baseEvent):void 0,t.toolCallId=e.toolCallId??``,t}};function qS(){return{baseEvent:void 0,snapshot:void 0}}var JS={encode(e,t=new Kx){return e.baseEvent!==void 0&&q.encode(e.baseEvent,t.uint32(10).fork()).join(),e.snapshot!==void 0&&K.encode(K.wrap(e.snapshot),t.uint32(18).fork()).join(),t},decode(e,t){let n=e instanceof G?e:new G(e),r=t===void 0?n.len:n.pos+t,i=qS();for(;n.pos>>3){case 1:if(e!==10)break;i.baseEvent=q.decode(n,n.uint32());continue;case 2:if(e!==18)break;i.snapshot=K.unwrap(K.decode(n,n.uint32()));continue}if((e&7)==4||e===0)break;n.skip(e&7)}return i},create(e){return JS.fromPartial(e??{})},fromPartial(e){let t=qS();return t.baseEvent=e.baseEvent!==void 0&&e.baseEvent!==null?q.fromPartial(e.baseEvent):void 0,t.snapshot=e.snapshot??void 0,t}};function YS(){return{baseEvent:void 0,delta:[]}}var XS={encode(e,t=new Kx){e.baseEvent!==void 0&&q.encode(e.baseEvent,t.uint32(10).fork()).join();for(let n of e.delta)oS.encode(n,t.uint32(18).fork()).join();return t},decode(e,t){let n=e instanceof G?e:new G(e),r=t===void 0?n.len:n.pos+t,i=YS();for(;n.pos>>3){case 1:if(e!==10)break;i.baseEvent=q.decode(n,n.uint32());continue;case 2:if(e!==18)break;i.delta.push(oS.decode(n,n.uint32()));continue}if((e&7)==4||e===0)break;n.skip(e&7)}return i},create(e){return XS.fromPartial(e??{})},fromPartial(e){let t=YS();return t.baseEvent=e.baseEvent!==void 0&&e.baseEvent!==null?q.fromPartial(e.baseEvent):void 0,t.delta=e.delta?.map(e=>oS.fromPartial(e))||[],t}};function ZS(){return{baseEvent:void 0,messages:[]}}var QS={encode(e,t=new Kx){e.baseEvent!==void 0&&q.encode(e.baseEvent,t.uint32(10).fork()).join();for(let n of e.messages)AS.encode(n,t.uint32(18).fork()).join();return t},decode(e,t){let n=e instanceof G?e:new G(e),r=t===void 0?n.len:n.pos+t,i=ZS();for(;n.pos>>3){case 1:if(e!==10)break;i.baseEvent=q.decode(n,n.uint32());continue;case 2:if(e!==18)break;i.messages.push(AS.decode(n,n.uint32()));continue}if((e&7)==4||e===0)break;n.skip(e&7)}return i},create(e){return QS.fromPartial(e??{})},fromPartial(e){let t=ZS();return t.baseEvent=e.baseEvent!==void 0&&e.baseEvent!==null?q.fromPartial(e.baseEvent):void 0,t.messages=e.messages?.map(e=>AS.fromPartial(e))||[],t}};function $S(){return{baseEvent:void 0,event:void 0,source:void 0}}var eC={encode(e,t=new Kx){return e.baseEvent!==void 0&&q.encode(e.baseEvent,t.uint32(10).fork()).join(),e.event!==void 0&&K.encode(K.wrap(e.event),t.uint32(18).fork()).join(),e.source!==void 0&&t.uint32(26).string(e.source),t},decode(e,t){let n=e instanceof G?e:new G(e),r=t===void 0?n.len:n.pos+t,i=$S();for(;n.pos>>3){case 1:if(e!==10)break;i.baseEvent=q.decode(n,n.uint32());continue;case 2:if(e!==18)break;i.event=K.unwrap(K.decode(n,n.uint32()));continue;case 3:if(e!==26)break;i.source=n.string();continue}if((e&7)==4||e===0)break;n.skip(e&7)}return i},create(e){return eC.fromPartial(e??{})},fromPartial(e){let t=$S();return t.baseEvent=e.baseEvent!==void 0&&e.baseEvent!==null?q.fromPartial(e.baseEvent):void 0,t.event=e.event??void 0,t.source=e.source??void 0,t}};function tC(){return{baseEvent:void 0,name:``,value:void 0}}var nC={encode(e,t=new Kx){return e.baseEvent!==void 0&&q.encode(e.baseEvent,t.uint32(10).fork()).join(),e.name!==``&&t.uint32(18).string(e.name),e.value!==void 0&&K.encode(K.wrap(e.value),t.uint32(26).fork()).join(),t},decode(e,t){let n=e instanceof G?e:new G(e),r=t===void 0?n.len:n.pos+t,i=tC();for(;n.pos>>3){case 1:if(e!==10)break;i.baseEvent=q.decode(n,n.uint32());continue;case 2:if(e!==18)break;i.name=n.string();continue;case 3:if(e!==26)break;i.value=K.unwrap(K.decode(n,n.uint32()));continue}if((e&7)==4||e===0)break;n.skip(e&7)}return i},create(e){return nC.fromPartial(e??{})},fromPartial(e){let t=tC();return t.baseEvent=e.baseEvent!==void 0&&e.baseEvent!==null?q.fromPartial(e.baseEvent):void 0,t.name=e.name??``,t.value=e.value??void 0,t}};function rC(){return{baseEvent:void 0,threadId:``,runId:``}}var iC={encode(e,t=new Kx){return e.baseEvent!==void 0&&q.encode(e.baseEvent,t.uint32(10).fork()).join(),e.threadId!==``&&t.uint32(18).string(e.threadId),e.runId!==``&&t.uint32(26).string(e.runId),t},decode(e,t){let n=e instanceof G?e:new G(e),r=t===void 0?n.len:n.pos+t,i=rC();for(;n.pos>>3){case 1:if(e!==10)break;i.baseEvent=q.decode(n,n.uint32());continue;case 2:if(e!==18)break;i.threadId=n.string();continue;case 3:if(e!==26)break;i.runId=n.string();continue}if((e&7)==4||e===0)break;n.skip(e&7)}return i},create(e){return iC.fromPartial(e??{})},fromPartial(e){let t=rC();return t.baseEvent=e.baseEvent!==void 0&&e.baseEvent!==null?q.fromPartial(e.baseEvent):void 0,t.threadId=e.threadId??``,t.runId=e.runId??``,t}};function aC(){return{baseEvent:void 0,threadId:``,runId:``,result:void 0,outcome:``,interrupts:[]}}var oC={encode(e,t=new Kx){e.baseEvent!==void 0&&q.encode(e.baseEvent,t.uint32(10).fork()).join(),e.threadId!==``&&t.uint32(18).string(e.threadId),e.runId!==``&&t.uint32(26).string(e.runId),e.result!==void 0&&K.encode(K.wrap(e.result),t.uint32(34).fork()).join(),e.outcome!==``&&t.uint32(42).string(e.outcome);for(let n of e.interrupts)MS.encode(n,t.uint32(50).fork()).join();return t},decode(e,t){let n=e instanceof G?e:new G(e),r=t===void 0?n.len:n.pos+t,i=aC();for(;n.pos>>3){case 1:if(e!==10)break;i.baseEvent=q.decode(n,n.uint32());continue;case 2:if(e!==18)break;i.threadId=n.string();continue;case 3:if(e!==26)break;i.runId=n.string();continue;case 4:if(e!==34)break;i.result=K.unwrap(K.decode(n,n.uint32()));continue;case 5:if(e!==42)break;i.outcome=n.string();continue;case 6:if(e!==50)break;i.interrupts.push(MS.decode(n,n.uint32()));continue}if((e&7)==4||e===0)break;n.skip(e&7)}return i},create(e){return oC.fromPartial(e??{})},fromPartial(e){let t=aC();return t.baseEvent=e.baseEvent!==void 0&&e.baseEvent!==null?q.fromPartial(e.baseEvent):void 0,t.threadId=e.threadId??``,t.runId=e.runId??``,t.result=e.result??void 0,t.outcome=e.outcome??``,t.interrupts=e.interrupts?.map(e=>MS.fromPartial(e))||[],t}};function sC(){return{baseEvent:void 0,code:void 0,message:``}}var cC={encode(e,t=new Kx){return e.baseEvent!==void 0&&q.encode(e.baseEvent,t.uint32(10).fork()).join(),e.code!==void 0&&t.uint32(18).string(e.code),e.message!==``&&t.uint32(26).string(e.message),t},decode(e,t){let n=e instanceof G?e:new G(e),r=t===void 0?n.len:n.pos+t,i=sC();for(;n.pos>>3){case 1:if(e!==10)break;i.baseEvent=q.decode(n,n.uint32());continue;case 2:if(e!==18)break;i.code=n.string();continue;case 3:if(e!==26)break;i.message=n.string();continue}if((e&7)==4||e===0)break;n.skip(e&7)}return i},create(e){return cC.fromPartial(e??{})},fromPartial(e){let t=sC();return t.baseEvent=e.baseEvent!==void 0&&e.baseEvent!==null?q.fromPartial(e.baseEvent):void 0,t.code=e.code??void 0,t.message=e.message??``,t}};function lC(){return{baseEvent:void 0,stepName:``}}var uC={encode(e,t=new Kx){return e.baseEvent!==void 0&&q.encode(e.baseEvent,t.uint32(10).fork()).join(),e.stepName!==``&&t.uint32(18).string(e.stepName),t},decode(e,t){let n=e instanceof G?e:new G(e),r=t===void 0?n.len:n.pos+t,i=lC();for(;n.pos>>3){case 1:if(e!==10)break;i.baseEvent=q.decode(n,n.uint32());continue;case 2:if(e!==18)break;i.stepName=n.string();continue}if((e&7)==4||e===0)break;n.skip(e&7)}return i},create(e){return uC.fromPartial(e??{})},fromPartial(e){let t=lC();return t.baseEvent=e.baseEvent!==void 0&&e.baseEvent!==null?q.fromPartial(e.baseEvent):void 0,t.stepName=e.stepName??``,t}};function dC(){return{baseEvent:void 0,stepName:``}}var fC={encode(e,t=new Kx){return e.baseEvent!==void 0&&q.encode(e.baseEvent,t.uint32(10).fork()).join(),e.stepName!==``&&t.uint32(18).string(e.stepName),t},decode(e,t){let n=e instanceof G?e:new G(e),r=t===void 0?n.len:n.pos+t,i=dC();for(;n.pos>>3){case 1:if(e!==10)break;i.baseEvent=q.decode(n,n.uint32());continue;case 2:if(e!==18)break;i.stepName=n.string();continue}if((e&7)==4||e===0)break;n.skip(e&7)}return i},create(e){return fC.fromPartial(e??{})},fromPartial(e){let t=dC();return t.baseEvent=e.baseEvent!==void 0&&e.baseEvent!==null?q.fromPartial(e.baseEvent):void 0,t.stepName=e.stepName??``,t}};function pC(){return{baseEvent:void 0,messageId:void 0,role:void 0,delta:void 0,name:void 0}}var mC={encode(e,t=new Kx){return e.baseEvent!==void 0&&q.encode(e.baseEvent,t.uint32(10).fork()).join(),e.messageId!==void 0&&t.uint32(18).string(e.messageId),e.role!==void 0&&t.uint32(26).string(e.role),e.delta!==void 0&&t.uint32(34).string(e.delta),e.name!==void 0&&t.uint32(42).string(e.name),t},decode(e,t){let n=e instanceof G?e:new G(e),r=t===void 0?n.len:n.pos+t,i=pC();for(;n.pos>>3){case 1:if(e!==10)break;i.baseEvent=q.decode(n,n.uint32());continue;case 2:if(e!==18)break;i.messageId=n.string();continue;case 3:if(e!==26)break;i.role=n.string();continue;case 4:if(e!==34)break;i.delta=n.string();continue;case 5:if(e!==42)break;i.name=n.string();continue}if((e&7)==4||e===0)break;n.skip(e&7)}return i},create(e){return mC.fromPartial(e??{})},fromPartial(e){let t=pC();return t.baseEvent=e.baseEvent!==void 0&&e.baseEvent!==null?q.fromPartial(e.baseEvent):void 0,t.messageId=e.messageId??void 0,t.role=e.role??void 0,t.delta=e.delta??void 0,t.name=e.name??void 0,t}};function hC(){return{baseEvent:void 0,toolCallId:void 0,toolCallName:void 0,parentMessageId:void 0,delta:void 0}}var gC={encode(e,t=new Kx){return e.baseEvent!==void 0&&q.encode(e.baseEvent,t.uint32(10).fork()).join(),e.toolCallId!==void 0&&t.uint32(18).string(e.toolCallId),e.toolCallName!==void 0&&t.uint32(26).string(e.toolCallName),e.parentMessageId!==void 0&&t.uint32(34).string(e.parentMessageId),e.delta!==void 0&&t.uint32(42).string(e.delta),t},decode(e,t){let n=e instanceof G?e:new G(e),r=t===void 0?n.len:n.pos+t,i=hC();for(;n.pos>>3){case 1:if(e!==10)break;i.baseEvent=q.decode(n,n.uint32());continue;case 2:if(e!==18)break;i.toolCallId=n.string();continue;case 3:if(e!==26)break;i.toolCallName=n.string();continue;case 4:if(e!==34)break;i.parentMessageId=n.string();continue;case 5:if(e!==42)break;i.delta=n.string();continue}if((e&7)==4||e===0)break;n.skip(e&7)}return i},create(e){return gC.fromPartial(e??{})},fromPartial(e){let t=hC();return t.baseEvent=e.baseEvent!==void 0&&e.baseEvent!==null?q.fromPartial(e.baseEvent):void 0,t.toolCallId=e.toolCallId??void 0,t.toolCallName=e.toolCallName??void 0,t.parentMessageId=e.parentMessageId??void 0,t.delta=e.delta??void 0,t}};function _C(){return{textMessageStart:void 0,textMessageContent:void 0,textMessageEnd:void 0,toolCallStart:void 0,toolCallArgs:void 0,toolCallEnd:void 0,stateSnapshot:void 0,stateDelta:void 0,messagesSnapshot:void 0,raw:void 0,custom:void 0,runStarted:void 0,runFinished:void 0,runError:void 0,stepStarted:void 0,stepFinished:void 0,textMessageChunk:void 0,toolCallChunk:void 0}}var vC={encode(e,t=new Kx){return e.textMessageStart!==void 0&&IS.encode(e.textMessageStart,t.uint32(10).fork()).join(),e.textMessageContent!==void 0&&RS.encode(e.textMessageContent,t.uint32(18).fork()).join(),e.textMessageEnd!==void 0&&BS.encode(e.textMessageEnd,t.uint32(26).fork()).join(),e.toolCallStart!==void 0&&HS.encode(e.toolCallStart,t.uint32(34).fork()).join(),e.toolCallArgs!==void 0&&WS.encode(e.toolCallArgs,t.uint32(42).fork()).join(),e.toolCallEnd!==void 0&&KS.encode(e.toolCallEnd,t.uint32(50).fork()).join(),e.stateSnapshot!==void 0&&JS.encode(e.stateSnapshot,t.uint32(58).fork()).join(),e.stateDelta!==void 0&&XS.encode(e.stateDelta,t.uint32(66).fork()).join(),e.messagesSnapshot!==void 0&&QS.encode(e.messagesSnapshot,t.uint32(74).fork()).join(),e.raw!==void 0&&eC.encode(e.raw,t.uint32(82).fork()).join(),e.custom!==void 0&&nC.encode(e.custom,t.uint32(90).fork()).join(),e.runStarted!==void 0&&iC.encode(e.runStarted,t.uint32(98).fork()).join(),e.runFinished!==void 0&&oC.encode(e.runFinished,t.uint32(106).fork()).join(),e.runError!==void 0&&cC.encode(e.runError,t.uint32(114).fork()).join(),e.stepStarted!==void 0&&uC.encode(e.stepStarted,t.uint32(122).fork()).join(),e.stepFinished!==void 0&&fC.encode(e.stepFinished,t.uint32(130).fork()).join(),e.textMessageChunk!==void 0&&mC.encode(e.textMessageChunk,t.uint32(138).fork()).join(),e.toolCallChunk!==void 0&&gC.encode(e.toolCallChunk,t.uint32(146).fork()).join(),t},decode(e,t){let n=e instanceof G?e:new G(e),r=t===void 0?n.len:n.pos+t,i=_C();for(;n.pos>>3){case 1:if(e!==10)break;i.textMessageStart=IS.decode(n,n.uint32());continue;case 2:if(e!==18)break;i.textMessageContent=RS.decode(n,n.uint32());continue;case 3:if(e!==26)break;i.textMessageEnd=BS.decode(n,n.uint32());continue;case 4:if(e!==34)break;i.toolCallStart=HS.decode(n,n.uint32());continue;case 5:if(e!==42)break;i.toolCallArgs=WS.decode(n,n.uint32());continue;case 6:if(e!==50)break;i.toolCallEnd=KS.decode(n,n.uint32());continue;case 7:if(e!==58)break;i.stateSnapshot=JS.decode(n,n.uint32());continue;case 8:if(e!==66)break;i.stateDelta=XS.decode(n,n.uint32());continue;case 9:if(e!==74)break;i.messagesSnapshot=QS.decode(n,n.uint32());continue;case 10:if(e!==82)break;i.raw=eC.decode(n,n.uint32());continue;case 11:if(e!==90)break;i.custom=nC.decode(n,n.uint32());continue;case 12:if(e!==98)break;i.runStarted=iC.decode(n,n.uint32());continue;case 13:if(e!==106)break;i.runFinished=oC.decode(n,n.uint32());continue;case 14:if(e!==114)break;i.runError=cC.decode(n,n.uint32());continue;case 15:if(e!==122)break;i.stepStarted=uC.decode(n,n.uint32());continue;case 16:if(e!==130)break;i.stepFinished=fC.decode(n,n.uint32());continue;case 17:if(e!==138)break;i.textMessageChunk=mC.decode(n,n.uint32());continue;case 18:if(e!==146)break;i.toolCallChunk=gC.decode(n,n.uint32());continue}if((e&7)==4||e===0)break;n.skip(e&7)}return i},create(e){return vC.fromPartial(e??{})},fromPartial(e){let t=_C();return t.textMessageStart=e.textMessageStart!==void 0&&e.textMessageStart!==null?IS.fromPartial(e.textMessageStart):void 0,t.textMessageContent=e.textMessageContent!==void 0&&e.textMessageContent!==null?RS.fromPartial(e.textMessageContent):void 0,t.textMessageEnd=e.textMessageEnd!==void 0&&e.textMessageEnd!==null?BS.fromPartial(e.textMessageEnd):void 0,t.toolCallStart=e.toolCallStart!==void 0&&e.toolCallStart!==null?HS.fromPartial(e.toolCallStart):void 0,t.toolCallArgs=e.toolCallArgs!==void 0&&e.toolCallArgs!==null?WS.fromPartial(e.toolCallArgs):void 0,t.toolCallEnd=e.toolCallEnd!==void 0&&e.toolCallEnd!==null?KS.fromPartial(e.toolCallEnd):void 0,t.stateSnapshot=e.stateSnapshot!==void 0&&e.stateSnapshot!==null?JS.fromPartial(e.stateSnapshot):void 0,t.stateDelta=e.stateDelta!==void 0&&e.stateDelta!==null?XS.fromPartial(e.stateDelta):void 0,t.messagesSnapshot=e.messagesSnapshot!==void 0&&e.messagesSnapshot!==null?QS.fromPartial(e.messagesSnapshot):void 0,t.raw=e.raw!==void 0&&e.raw!==null?eC.fromPartial(e.raw):void 0,t.custom=e.custom!==void 0&&e.custom!==null?nC.fromPartial(e.custom):void 0,t.runStarted=e.runStarted!==void 0&&e.runStarted!==null?iC.fromPartial(e.runStarted):void 0,t.runFinished=e.runFinished!==void 0&&e.runFinished!==null?oC.fromPartial(e.runFinished):void 0,t.runError=e.runError!==void 0&&e.runError!==null?cC.fromPartial(e.runError):void 0,t.stepStarted=e.stepStarted!==void 0&&e.stepStarted!==null?uC.fromPartial(e.stepStarted):void 0,t.stepFinished=e.stepFinished!==void 0&&e.stepFinished!==null?fC.fromPartial(e.stepFinished):void 0,t.textMessageChunk=e.textMessageChunk!==void 0&&e.textMessageChunk!==null?mC.fromPartial(e.textMessageChunk):void 0,t.toolCallChunk=e.toolCallChunk!==void 0&&e.toolCallChunk!==null?gC.fromPartial(e.toolCallChunk):void 0,t}};function yC(e){let t=globalThis.Number(e.toString());if(t>globalThis.Number.MAX_SAFE_INTEGER)throw new globalThis.Error(`Value is larger than Number.MAX_SAFE_INTEGER`);if(t{if(!(!e||typeof e!=`object`)){if(e.data)return{type:`data`,value:e.data.value,mimeType:e.data.mimeType};if(e.url)return{type:`url`,value:e.url.value,mimeType:e.url.mimeType}}},xC=e=>{if(!(!e||typeof e!=`object`)){if(e.text)return{type:`text`,text:e.text.text};if(e.image)return{type:`image`,source:bC(e.image.source),metadata:e.image.metadata};if(e.audio)return{type:`audio`,source:bC(e.audio.source),metadata:e.audio.metadata};if(e.video)return{type:`video`,source:bC(e.video.source),metadata:e.video.metadata};if(e.document)return{type:`document`,source:bC(e.document.source),metadata:e.document.metadata}}};function SC(e){let t=vC.decode(e),n=Object.values(t).find(e=>e!==void 0);if(!n)throw Error(`Invalid event`);if(n.type=NS[n.baseEvent.type],n.timestamp=n.baseEvent.timestamp,n.rawEvent=n.baseEvent.rawEvent,delete n.baseEvent,n.type===W.MESSAGES_SNAPSHOT)for(let e of n.messages){let t=e;if(t.role===`user`&&Array.isArray(t.contentParts)){let e=t.contentParts.map(e=>xC(e)).filter(e=>e!==void 0);e.length>0&&(t.content=e)}Array.isArray(t.contentParts)&&t.contentParts.length===0&&(t.contentParts=void 0),t.toolCalls?.length===0&&(t.toolCalls=void 0)}if(n.type===W.RUN_FINISHED){let e=n,t=typeof e.outcome==`string`&&e.outcome!==``?e.outcome:void 0,r=Array.isArray(e.interrupts)?e.interrupts:[];delete e.interrupts,t===`interrupt`?e.outcome={type:`interrupt`,interrupts:r}:t===`success`?e.outcome={type:`success`}:delete e.outcome}if(n.type===W.STATE_DELTA)for(let e of n.delta)e.op=iS[e.op].toLowerCase(),Object.keys(e).forEach(t=>{e[t]===void 0&&delete e[t]});return Object.keys(n).forEach(e=>{n[e]===void 0&&delete n[e]}),ny.parse(n)}var CC;(function(e){e.assertEqual=e=>{};function t(e){}e.assertIs=t;function n(e){throw Error()}e.assertNever=n,e.arrayToEnum=e=>{let t={};for(let n of e)t[n]=n;return t},e.getValidEnumValues=t=>{let n=e.objectKeys(t).filter(e=>typeof t[t[e]]!=`number`),r={};for(let e of n)r[e]=t[e];return e.objectValues(r)},e.objectValues=t=>e.objectKeys(t).map(function(e){return t[e]}),e.objectKeys=typeof Object.keys==`function`?e=>Object.keys(e):e=>{let t=[];for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.push(n);return t},e.find=(e,t)=>{for(let n of e)if(t(n))return n},e.isInteger=typeof Number.isInteger==`function`?e=>Number.isInteger(e):e=>typeof e==`number`&&Number.isFinite(e)&&Math.floor(e)===e;function r(e,t=` | `){return e.map(e=>typeof e==`string`?`'${e}'`:e).join(t)}e.joinValues=r,e.jsonStringifyReplacer=(e,t)=>typeof t==`bigint`?t.toString():t})(CC||={});var wC;(function(e){e.mergeShapes=(e,t)=>({...e,...t})})(wC||={});var J=CC.arrayToEnum([`string`,`nan`,`number`,`integer`,`float`,`boolean`,`date`,`bigint`,`symbol`,`function`,`undefined`,`null`,`array`,`object`,`unknown`,`promise`,`void`,`never`,`map`,`set`]),TC=e=>{switch(typeof e){case`undefined`:return J.undefined;case`string`:return J.string;case`number`:return Number.isNaN(e)?J.nan:J.number;case`boolean`:return J.boolean;case`function`:return J.function;case`bigint`:return J.bigint;case`symbol`:return J.symbol;case`object`:return Array.isArray(e)?J.array:e===null?J.null:e.then&&typeof e.then==`function`&&e.catch&&typeof e.catch==`function`?J.promise:typeof Map<`u`&&e instanceof Map?J.map:typeof Set<`u`&&e instanceof Set?J.set:typeof Date<`u`&&e instanceof Date?J.date:J.object;default:return J.unknown}},Y=CC.arrayToEnum([`invalid_type`,`invalid_literal`,`custom`,`invalid_union`,`invalid_union_discriminator`,`invalid_enum_value`,`unrecognized_keys`,`invalid_arguments`,`invalid_return_type`,`invalid_date`,`invalid_string`,`too_small`,`too_big`,`invalid_intersection_types`,`not_multiple_of`,`not_finite`]),EC=class e extends Error{get errors(){return this.issues}constructor(e){super(),this.issues=[],this.addIssue=e=>{this.issues=[...this.issues,e]},this.addIssues=(e=[])=>{this.issues=[...this.issues,...e]};let t=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,t):this.__proto__=t,this.name=`ZodError`,this.issues=e}format(e){let t=e||function(e){return e.message},n={_errors:[]},r=e=>{for(let i of e.issues)if(i.code===`invalid_union`)i.unionErrors.map(r);else if(i.code===`invalid_return_type`)r(i.returnTypeError);else if(i.code===`invalid_arguments`)r(i.argumentsError);else if(i.path.length===0)n._errors.push(t(i));else{let e=n,r=0;for(;re.message){let t={},n=[];for(let r of this.issues)if(r.path.length>0){let n=r.path[0];t[n]=t[n]||[],t[n].push(e(r))}else n.push(e(r));return{formErrors:n,fieldErrors:t}}get formErrors(){return this.flatten()}};EC.create=e=>new EC(e);var DC=(e,t)=>{let n;switch(e.code){case Y.invalid_type:n=e.received===J.undefined?`Required`:`Expected ${e.expected}, received ${e.received}`;break;case Y.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,CC.jsonStringifyReplacer)}`;break;case Y.unrecognized_keys:n=`Unrecognized key(s) in object: ${CC.joinValues(e.keys,`, `)}`;break;case Y.invalid_union:n=`Invalid input`;break;case Y.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${CC.joinValues(e.options)}`;break;case Y.invalid_enum_value:n=`Invalid enum value. Expected ${CC.joinValues(e.options)}, received '${e.received}'`;break;case Y.invalid_arguments:n=`Invalid function arguments`;break;case Y.invalid_return_type:n=`Invalid function return type`;break;case Y.invalid_date:n=`Invalid date`;break;case Y.invalid_string:typeof e.validation==`object`?`includes`in e.validation?(n=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position==`number`&&(n=`${n} at one or more positions greater than or equal to ${e.validation.position}`)):`startsWith`in e.validation?n=`Invalid input: must start with "${e.validation.startsWith}"`:`endsWith`in e.validation?n=`Invalid input: must end with "${e.validation.endsWith}"`:CC.assertNever(e.validation):n=e.validation===`regex`?`Invalid`:`Invalid ${e.validation}`;break;case Y.too_small:n=e.type===`array`?`Array must contain ${e.exact?`exactly`:e.inclusive?`at least`:`more than`} ${e.minimum} element(s)`:e.type===`string`?`String must contain ${e.exact?`exactly`:e.inclusive?`at least`:`over`} ${e.minimum} character(s)`:e.type===`number`||e.type===`bigint`?`Number must be ${e.exact?`exactly equal to `:e.inclusive?`greater than or equal to `:`greater than `}${e.minimum}`:e.type===`date`?`Date must be ${e.exact?`exactly equal to `:e.inclusive?`greater than or equal to `:`greater than `}${new Date(Number(e.minimum))}`:`Invalid input`;break;case Y.too_big:n=e.type===`array`?`Array must contain ${e.exact?`exactly`:e.inclusive?`at most`:`less than`} ${e.maximum} element(s)`:e.type===`string`?`String must contain ${e.exact?`exactly`:e.inclusive?`at most`:`under`} ${e.maximum} character(s)`:e.type===`number`?`Number must be ${e.exact?`exactly`:e.inclusive?`less than or equal to`:`less than`} ${e.maximum}`:e.type===`bigint`?`BigInt must be ${e.exact?`exactly`:e.inclusive?`less than or equal to`:`less than`} ${e.maximum}`:e.type===`date`?`Date must be ${e.exact?`exactly`:e.inclusive?`smaller than or equal to`:`smaller than`} ${new Date(Number(e.maximum))}`:`Invalid input`;break;case Y.custom:n=`Invalid input`;break;case Y.invalid_intersection_types:n=`Intersection results could not be merged`;break;case Y.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case Y.not_finite:n=`Number must be finite`;break;default:n=t.defaultError,CC.assertNever(e)}return{message:n}},OC=DC;function kC(){return OC}var AC=e=>{let{data:t,path:n,errorMaps:r,issueData:i}=e,a=[...n,...i.path||[]],o={...i,path:a};if(i.message!==void 0)return{...i,path:a,message:i.message};let s=``,c=r.filter(e=>!!e).slice().reverse();for(let e of c)s=e(o,{data:t,defaultError:s}).message;return{...i,path:a,message:s}};function X(e,t){let n=kC(),r=AC({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,n,n===DC?void 0:DC].filter(e=>!!e)});e.common.issues.push(r)}var jC=class e{constructor(){this.value=`valid`}dirty(){this.value===`valid`&&(this.value=`dirty`)}abort(){this.value!==`aborted`&&(this.value=`aborted`)}static mergeArray(e,t){let n=[];for(let r of t){if(r.status===`aborted`)return MC;r.status===`dirty`&&e.dirty(),n.push(r.value)}return{status:e.value,value:n}}static async mergeObjectAsync(t,n){let r=[];for(let e of n){let t=await e.key,n=await e.value;r.push({key:t,value:n})}return e.mergeObjectSync(t,r)}static mergeObjectSync(e,t){let n={};for(let r of t){let{key:t,value:i}=r;if(t.status===`aborted`||i.status===`aborted`)return MC;t.status===`dirty`&&e.dirty(),i.status===`dirty`&&e.dirty(),t.value!==`__proto__`&&(i.value!==void 0||r.alwaysSet)&&(n[t.value]=i.value)}return{status:e.value,value:n}}},MC=Object.freeze({status:`aborted`}),NC=e=>({status:`dirty`,value:e}),PC=e=>({status:`valid`,value:e}),FC=e=>e.status===`aborted`,IC=e=>e.status===`dirty`,LC=e=>e.status===`valid`,RC=e=>typeof Promise<`u`&&e instanceof Promise,Z;(function(e){e.errToObj=e=>typeof e==`string`?{message:e}:e||{},e.toString=e=>typeof e==`string`?e:e?.message})(Z||={});var zC=class{constructor(e,t,n,r){this._cachedPath=[],this.parent=e,this.data=t,this._path=n,this._key=r}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}},BC=(e,t)=>{if(LC(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw Error(`Validation failed but no issues detected.`);return{success:!1,get error(){if(this._error)return this._error;let t=new EC(e.common.issues);return this._error=t,this._error}}};function VC(e){if(!e)return{};let{errorMap:t,invalid_type_error:n,required_error:r,description:i}=e;if(t&&(n||r))throw Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:i}:{errorMap:(t,i)=>{let{message:a}=e;return t.code===`invalid_enum_value`?{message:a??i.defaultError}:i.data===void 0?{message:a??r??i.defaultError}:t.code===`invalid_type`?{message:a??n??i.defaultError}:{message:i.defaultError}},description:i}}var HC=class{get description(){return this._def.description}_getType(e){return TC(e.data)}_getOrReturnCtx(e,t){return t||{common:e.parent.common,data:e.data,parsedType:TC(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new jC,ctx:{common:e.parent.common,data:e.data,parsedType:TC(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){let t=this._parse(e);if(RC(t))throw Error(`Synchronous parse encountered promise.`);return t}_parseAsync(e){let t=this._parse(e);return Promise.resolve(t)}parse(e,t){let n=this.safeParse(e,t);if(n.success)return n.data;throw n.error}safeParse(e,t){let n={common:{issues:[],async:t?.async??!1,contextualErrorMap:t?.errorMap},path:t?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:TC(e)};return BC(n,this._parseSync({data:e,path:n.path,parent:n}))}"~validate"(e){let t={common:{issues:[],async:!!this[`~standard`].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:TC(e)};if(!this[`~standard`].async)try{let n=this._parseSync({data:e,path:[],parent:t});return LC(n)?{value:n.value}:{issues:t.common.issues}}catch(e){e?.message?.toLowerCase()?.includes(`encountered`)&&(this[`~standard`].async=!0),t.common={issues:[],async:!0}}return this._parseAsync({data:e,path:[],parent:t}).then(e=>LC(e)?{value:e.value}:{issues:t.common.issues})}async parseAsync(e,t){let n=await this.safeParseAsync(e,t);if(n.success)return n.data;throw n.error}async safeParseAsync(e,t){let n={common:{issues:[],contextualErrorMap:t?.errorMap,async:!0},path:t?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:TC(e)},r=this._parse({data:e,path:n.path,parent:n});return BC(n,await(RC(r)?r:Promise.resolve(r)))}refine(e,t){let n=e=>typeof t==`string`||t===void 0?{message:t}:typeof t==`function`?t(e):t;return this._refinement((t,r)=>{let i=e(t),a=()=>r.addIssue({code:Y.custom,...n(t)});return typeof Promise<`u`&&i instanceof Promise?i.then(e=>e?!0:(a(),!1)):i?!0:(a(),!1)})}refinement(e,t){return this._refinement((n,r)=>e(n)?!0:(r.addIssue(typeof t==`function`?t(n,r):t),!1))}_refinement(e){return new Gw({schema:this,typeName:eT.ZodEffects,effect:{type:`refinement`,refinement:e}})}superRefine(e){return this._refinement(e)}constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this[`~standard`]={version:1,vendor:`zod`,validate:e=>this[`~validate`](e)}}optional(){return Kw.create(this,this._def)}nullable(){return qw.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Ew.create(this)}promise(){return Ww.create(this,this._def)}or(e){return kw.create([this,e],this._def)}and(e){return Nw.create(this,e,this._def)}transform(e){return new Gw({...VC(this._def),schema:this,typeName:eT.ZodEffects,effect:{type:`transform`,transform:e}})}default(e){let t=typeof e==`function`?e:()=>e;return new Jw({...VC(this._def),innerType:this,defaultValue:t,typeName:eT.ZodDefault})}brand(){return new Zw({typeName:eT.ZodBranded,type:this,...VC(this._def)})}catch(e){let t=typeof e==`function`?e:()=>e;return new Yw({...VC(this._def),innerType:this,catchValue:t,typeName:eT.ZodCatch})}describe(e){let t=this.constructor;return new t({...this._def,description:e})}pipe(e){return Qw.create(this,e)}readonly(){return $w.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}},UC=/^c[^\s-]{8,}$/i,WC=/^[0-9a-z]+$/,GC=/^[0-9A-HJKMNP-TV-Z]{26}$/i,KC=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,qC=/^[a-z0-9_-]{21}$/i,JC=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,YC=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,XC=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,ZC=`^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$`,QC,$C=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,ew=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,tw=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,nw=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,rw=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,iw=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,aw=`((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))`,ow=RegExp(`^${aw}$`);function sw(e){let t=`[0-5]\\d`;e.precision?t=`${t}\\.\\d{${e.precision}}`:e.precision??(t=`${t}(\\.\\d+)?`);let n=e.precision?`+`:`?`;return`([01]\\d|2[0-3]):[0-5]\\d(:${t})${n}`}function cw(e){return RegExp(`^${sw(e)}$`)}function lw(e){let t=`${aw}T${sw(e)}`,n=[];return n.push(e.local?`Z?`:`Z`),e.offset&&n.push(`([+-]\\d{2}:?\\d{2})`),t=`${t}(${n.join(`|`)})`,RegExp(`^${t}$`)}function uw(e,t){return!!((t===`v4`||!t)&&$C.test(e)||(t===`v6`||!t)&&tw.test(e))}function dw(e,t){if(!JC.test(e))return!1;try{let[n]=e.split(`.`);if(!n)return!1;let r=n.replace(/-/g,`+`).replace(/_/g,`/`).padEnd(n.length+(4-n.length%4)%4,`=`),i=JSON.parse(atob(r));return!(typeof i!=`object`||!i||`typ`in i&&i?.typ!==`JWT`||!i.alg||t&&i.alg!==t)}catch{return!1}}function fw(e,t){return!!((t===`v4`||!t)&&ew.test(e)||(t===`v6`||!t)&&nw.test(e))}var pw=class e extends HC{_parse(e){if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==J.string){let t=this._getOrReturnCtx(e);return X(t,{code:Y.invalid_type,expected:J.string,received:t.parsedType}),MC}let t=new jC,n;for(let r of this._def.checks)if(r.kind===`min`)e.data.lengthr.value&&(n=this._getOrReturnCtx(e,n),X(n,{code:Y.too_big,maximum:r.value,type:`string`,inclusive:!0,exact:!1,message:r.message}),t.dirty());else if(r.kind===`length`){let i=e.data.length>r.value,a=e.data.lengthe.test(t),{validation:t,code:Y.invalid_string,...Z.errToObj(n)})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}email(e){return this._addCheck({kind:`email`,...Z.errToObj(e)})}url(e){return this._addCheck({kind:`url`,...Z.errToObj(e)})}emoji(e){return this._addCheck({kind:`emoji`,...Z.errToObj(e)})}uuid(e){return this._addCheck({kind:`uuid`,...Z.errToObj(e)})}nanoid(e){return this._addCheck({kind:`nanoid`,...Z.errToObj(e)})}cuid(e){return this._addCheck({kind:`cuid`,...Z.errToObj(e)})}cuid2(e){return this._addCheck({kind:`cuid2`,...Z.errToObj(e)})}ulid(e){return this._addCheck({kind:`ulid`,...Z.errToObj(e)})}base64(e){return this._addCheck({kind:`base64`,...Z.errToObj(e)})}base64url(e){return this._addCheck({kind:`base64url`,...Z.errToObj(e)})}jwt(e){return this._addCheck({kind:`jwt`,...Z.errToObj(e)})}ip(e){return this._addCheck({kind:`ip`,...Z.errToObj(e)})}cidr(e){return this._addCheck({kind:`cidr`,...Z.errToObj(e)})}datetime(e){return typeof e==`string`?this._addCheck({kind:`datetime`,precision:null,offset:!1,local:!1,message:e}):this._addCheck({kind:`datetime`,precision:e?.precision===void 0?null:e?.precision,offset:e?.offset??!1,local:e?.local??!1,...Z.errToObj(e?.message)})}date(e){return this._addCheck({kind:`date`,message:e})}time(e){return typeof e==`string`?this._addCheck({kind:`time`,precision:null,message:e}):this._addCheck({kind:`time`,precision:e?.precision===void 0?null:e?.precision,...Z.errToObj(e?.message)})}duration(e){return this._addCheck({kind:`duration`,...Z.errToObj(e)})}regex(e,t){return this._addCheck({kind:`regex`,regex:e,...Z.errToObj(t)})}includes(e,t){return this._addCheck({kind:`includes`,value:e,position:t?.position,...Z.errToObj(t?.message)})}startsWith(e,t){return this._addCheck({kind:`startsWith`,value:e,...Z.errToObj(t)})}endsWith(e,t){return this._addCheck({kind:`endsWith`,value:e,...Z.errToObj(t)})}min(e,t){return this._addCheck({kind:`min`,value:e,...Z.errToObj(t)})}max(e,t){return this._addCheck({kind:`max`,value:e,...Z.errToObj(t)})}length(e,t){return this._addCheck({kind:`length`,value:e,...Z.errToObj(t)})}nonempty(e){return this.min(1,Z.errToObj(e))}trim(){return new e({...this._def,checks:[...this._def.checks,{kind:`trim`}]})}toLowerCase(){return new e({...this._def,checks:[...this._def.checks,{kind:`toLowerCase`}]})}toUpperCase(){return new e({...this._def,checks:[...this._def.checks,{kind:`toUpperCase`}]})}get isDatetime(){return!!this._def.checks.find(e=>e.kind===`datetime`)}get isDate(){return!!this._def.checks.find(e=>e.kind===`date`)}get isTime(){return!!this._def.checks.find(e=>e.kind===`time`)}get isDuration(){return!!this._def.checks.find(e=>e.kind===`duration`)}get isEmail(){return!!this._def.checks.find(e=>e.kind===`email`)}get isURL(){return!!this._def.checks.find(e=>e.kind===`url`)}get isEmoji(){return!!this._def.checks.find(e=>e.kind===`emoji`)}get isUUID(){return!!this._def.checks.find(e=>e.kind===`uuid`)}get isNANOID(){return!!this._def.checks.find(e=>e.kind===`nanoid`)}get isCUID(){return!!this._def.checks.find(e=>e.kind===`cuid`)}get isCUID2(){return!!this._def.checks.find(e=>e.kind===`cuid2`)}get isULID(){return!!this._def.checks.find(e=>e.kind===`ulid`)}get isIP(){return!!this._def.checks.find(e=>e.kind===`ip`)}get isCIDR(){return!!this._def.checks.find(e=>e.kind===`cidr`)}get isBase64(){return!!this._def.checks.find(e=>e.kind===`base64`)}get isBase64url(){return!!this._def.checks.find(e=>e.kind===`base64url`)}get minLength(){let e=null;for(let t of this._def.checks)t.kind===`min`&&(e===null||t.value>e)&&(e=t.value);return e}get maxLength(){let e=null;for(let t of this._def.checks)t.kind===`max`&&(e===null||t.valuenew pw({checks:[],typeName:eT.ZodString,coerce:e?.coerce??!1,...VC(e)});function mw(e,t){let n=(e.toString().split(`.`)[1]||``).length,r=(t.toString().split(`.`)[1]||``).length,i=n>r?n:r;return Number.parseInt(e.toFixed(i).replace(`.`,``))%Number.parseInt(t.toFixed(i).replace(`.`,``))/10**i}var hw=class e extends HC{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==J.number){let t=this._getOrReturnCtx(e);return X(t,{code:Y.invalid_type,expected:J.number,received:t.parsedType}),MC}let t,n=new jC;for(let r of this._def.checks)r.kind===`int`?CC.isInteger(e.data)||(t=this._getOrReturnCtx(e,t),X(t,{code:Y.invalid_type,expected:`integer`,received:`float`,message:r.message}),n.dirty()):r.kind===`min`?(r.inclusive?e.datar.value:e.data>=r.value)&&(t=this._getOrReturnCtx(e,t),X(t,{code:Y.too_big,maximum:r.value,type:`number`,inclusive:r.inclusive,exact:!1,message:r.message}),n.dirty()):r.kind===`multipleOf`?mw(e.data,r.value)!==0&&(t=this._getOrReturnCtx(e,t),X(t,{code:Y.not_multiple_of,multipleOf:r.value,message:r.message}),n.dirty()):r.kind===`finite`?Number.isFinite(e.data)||(t=this._getOrReturnCtx(e,t),X(t,{code:Y.not_finite,message:r.message}),n.dirty()):CC.assertNever(r);return{status:n.value,value:e.data}}gte(e,t){return this.setLimit(`min`,e,!0,Z.toString(t))}gt(e,t){return this.setLimit(`min`,e,!1,Z.toString(t))}lte(e,t){return this.setLimit(`max`,e,!0,Z.toString(t))}lt(e,t){return this.setLimit(`max`,e,!1,Z.toString(t))}setLimit(t,n,r,i){return new e({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:Z.toString(i)}]})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}int(e){return this._addCheck({kind:`int`,message:Z.toString(e)})}positive(e){return this._addCheck({kind:`min`,value:0,inclusive:!1,message:Z.toString(e)})}negative(e){return this._addCheck({kind:`max`,value:0,inclusive:!1,message:Z.toString(e)})}nonpositive(e){return this._addCheck({kind:`max`,value:0,inclusive:!0,message:Z.toString(e)})}nonnegative(e){return this._addCheck({kind:`min`,value:0,inclusive:!0,message:Z.toString(e)})}multipleOf(e,t){return this._addCheck({kind:`multipleOf`,value:e,message:Z.toString(t)})}finite(e){return this._addCheck({kind:`finite`,message:Z.toString(e)})}safe(e){return this._addCheck({kind:`min`,inclusive:!0,value:-(2**53-1),message:Z.toString(e)})._addCheck({kind:`max`,inclusive:!0,value:2**53-1,message:Z.toString(e)})}get minValue(){let e=null;for(let t of this._def.checks)t.kind===`min`&&(e===null||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(let t of this._def.checks)t.kind===`max`&&(e===null||t.valuee.kind===`int`||e.kind===`multipleOf`&&CC.isInteger(e.value))}get isFinite(){let e=null,t=null;for(let n of this._def.checks)if(n.kind===`finite`||n.kind===`int`||n.kind===`multipleOf`)return!0;else n.kind===`min`?(t===null||n.value>t)&&(t=n.value):n.kind===`max`&&(e===null||n.valuenew hw({checks:[],typeName:eT.ZodNumber,coerce:e?.coerce||!1,...VC(e)});var gw=class e extends HC{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){if(this._def.coerce)try{e.data=BigInt(e.data)}catch{return this._getInvalidInput(e)}if(this._getType(e)!==J.bigint)return this._getInvalidInput(e);let t,n=new jC;for(let r of this._def.checks)r.kind===`min`?(r.inclusive?e.datar.value:e.data>=r.value)&&(t=this._getOrReturnCtx(e,t),X(t,{code:Y.too_big,type:`bigint`,maximum:r.value,inclusive:r.inclusive,message:r.message}),n.dirty()):r.kind===`multipleOf`?e.data%r.value!==BigInt(0)&&(t=this._getOrReturnCtx(e,t),X(t,{code:Y.not_multiple_of,multipleOf:r.value,message:r.message}),n.dirty()):CC.assertNever(r);return{status:n.value,value:e.data}}_getInvalidInput(e){let t=this._getOrReturnCtx(e);return X(t,{code:Y.invalid_type,expected:J.bigint,received:t.parsedType}),MC}gte(e,t){return this.setLimit(`min`,e,!0,Z.toString(t))}gt(e,t){return this.setLimit(`min`,e,!1,Z.toString(t))}lte(e,t){return this.setLimit(`max`,e,!0,Z.toString(t))}lt(e,t){return this.setLimit(`max`,e,!1,Z.toString(t))}setLimit(t,n,r,i){return new e({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:Z.toString(i)}]})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}positive(e){return this._addCheck({kind:`min`,value:BigInt(0),inclusive:!1,message:Z.toString(e)})}negative(e){return this._addCheck({kind:`max`,value:BigInt(0),inclusive:!1,message:Z.toString(e)})}nonpositive(e){return this._addCheck({kind:`max`,value:BigInt(0),inclusive:!0,message:Z.toString(e)})}nonnegative(e){return this._addCheck({kind:`min`,value:BigInt(0),inclusive:!0,message:Z.toString(e)})}multipleOf(e,t){return this._addCheck({kind:`multipleOf`,value:e,message:Z.toString(t)})}get minValue(){let e=null;for(let t of this._def.checks)t.kind===`min`&&(e===null||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(let t of this._def.checks)t.kind===`max`&&(e===null||t.valuenew gw({checks:[],typeName:eT.ZodBigInt,coerce:e?.coerce??!1,...VC(e)});var _w=class extends HC{_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==J.boolean){let t=this._getOrReturnCtx(e);return X(t,{code:Y.invalid_type,expected:J.boolean,received:t.parsedType}),MC}return PC(e.data)}};_w.create=e=>new _w({typeName:eT.ZodBoolean,coerce:e?.coerce||!1,...VC(e)});var vw=class e extends HC{_parse(e){if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==J.date){let t=this._getOrReturnCtx(e);return X(t,{code:Y.invalid_type,expected:J.date,received:t.parsedType}),MC}if(Number.isNaN(e.data.getTime()))return X(this._getOrReturnCtx(e),{code:Y.invalid_date}),MC;let t=new jC,n;for(let r of this._def.checks)r.kind===`min`?e.data.getTime()r.value&&(n=this._getOrReturnCtx(e,n),X(n,{code:Y.too_big,message:r.message,inclusive:!0,exact:!1,maximum:r.value,type:`date`}),t.dirty()):CC.assertNever(r);return{status:t.value,value:new Date(e.data.getTime())}}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}min(e,t){return this._addCheck({kind:`min`,value:e.getTime(),message:Z.toString(t)})}max(e,t){return this._addCheck({kind:`max`,value:e.getTime(),message:Z.toString(t)})}get minDate(){let e=null;for(let t of this._def.checks)t.kind===`min`&&(e===null||t.value>e)&&(e=t.value);return e==null?null:new Date(e)}get maxDate(){let e=null;for(let t of this._def.checks)t.kind===`max`&&(e===null||t.valuenew vw({checks:[],coerce:e?.coerce||!1,typeName:eT.ZodDate,...VC(e)});var yw=class extends HC{_parse(e){if(this._getType(e)!==J.symbol){let t=this._getOrReturnCtx(e);return X(t,{code:Y.invalid_type,expected:J.symbol,received:t.parsedType}),MC}return PC(e.data)}};yw.create=e=>new yw({typeName:eT.ZodSymbol,...VC(e)});var bw=class extends HC{_parse(e){if(this._getType(e)!==J.undefined){let t=this._getOrReturnCtx(e);return X(t,{code:Y.invalid_type,expected:J.undefined,received:t.parsedType}),MC}return PC(e.data)}};bw.create=e=>new bw({typeName:eT.ZodUndefined,...VC(e)});var xw=class extends HC{_parse(e){if(this._getType(e)!==J.null){let t=this._getOrReturnCtx(e);return X(t,{code:Y.invalid_type,expected:J.null,received:t.parsedType}),MC}return PC(e.data)}};xw.create=e=>new xw({typeName:eT.ZodNull,...VC(e)});var Sw=class extends HC{constructor(){super(...arguments),this._any=!0}_parse(e){return PC(e.data)}};Sw.create=e=>new Sw({typeName:eT.ZodAny,...VC(e)});var Cw=class extends HC{constructor(){super(...arguments),this._unknown=!0}_parse(e){return PC(e.data)}};Cw.create=e=>new Cw({typeName:eT.ZodUnknown,...VC(e)});var ww=class extends HC{_parse(e){let t=this._getOrReturnCtx(e);return X(t,{code:Y.invalid_type,expected:J.never,received:t.parsedType}),MC}};ww.create=e=>new ww({typeName:eT.ZodNever,...VC(e)});var Tw=class extends HC{_parse(e){if(this._getType(e)!==J.undefined){let t=this._getOrReturnCtx(e);return X(t,{code:Y.invalid_type,expected:J.void,received:t.parsedType}),MC}return PC(e.data)}};Tw.create=e=>new Tw({typeName:eT.ZodVoid,...VC(e)});var Ew=class e extends HC{_parse(e){let{ctx:t,status:n}=this._processInputParams(e),r=this._def;if(t.parsedType!==J.array)return X(t,{code:Y.invalid_type,expected:J.array,received:t.parsedType}),MC;if(r.exactLength!==null){let e=t.data.length>r.exactLength.value,i=t.data.lengthr.maxLength.value&&(X(t,{code:Y.too_big,maximum:r.maxLength.value,type:`array`,inclusive:!0,exact:!1,message:r.maxLength.message}),n.dirty()),t.common.async)return Promise.all([...t.data].map((e,n)=>r.type._parseAsync(new zC(t,e,t.path,n)))).then(e=>jC.mergeArray(n,e));let i=[...t.data].map((e,n)=>r.type._parseSync(new zC(t,e,t.path,n)));return jC.mergeArray(n,i)}get element(){return this._def.type}min(t,n){return new e({...this._def,minLength:{value:t,message:Z.toString(n)}})}max(t,n){return new e({...this._def,maxLength:{value:t,message:Z.toString(n)}})}length(t,n){return new e({...this._def,exactLength:{value:t,message:Z.toString(n)}})}nonempty(e){return this.min(1,e)}};Ew.create=(e,t)=>new Ew({type:e,minLength:null,maxLength:null,exactLength:null,typeName:eT.ZodArray,...VC(t)});function Dw(e){if(e instanceof Ow){let t={};for(let n in e.shape){let r=e.shape[n];t[n]=Kw.create(Dw(r))}return new Ow({...e._def,shape:()=>t})}return e instanceof Ew?new Ew({...e._def,type:Dw(e.element)}):e instanceof Kw?Kw.create(Dw(e.unwrap())):e instanceof qw?qw.create(Dw(e.unwrap())):e instanceof Pw?Pw.create(e.items.map(e=>Dw(e))):e}var Ow=class e extends HC{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;let e=this._def.shape(),t=CC.objectKeys(e);return this._cached={shape:e,keys:t},this._cached}_parse(e){if(this._getType(e)!==J.object){let t=this._getOrReturnCtx(e);return X(t,{code:Y.invalid_type,expected:J.object,received:t.parsedType}),MC}let{status:t,ctx:n}=this._processInputParams(e),{shape:r,keys:i}=this._getCached(),a=[];if(!(this._def.catchall instanceof ww&&this._def.unknownKeys===`strip`))for(let e in n.data)i.includes(e)||a.push(e);let o=[];for(let e of i){let t=r[e],i=n.data[e];o.push({key:{status:`valid`,value:e},value:t._parse(new zC(n,i,n.path,e)),alwaysSet:e in n.data})}if(this._def.catchall instanceof ww){let e=this._def.unknownKeys;if(e===`passthrough`)for(let e of a)o.push({key:{status:`valid`,value:e},value:{status:`valid`,value:n.data[e]}});else if(e===`strict`)a.length>0&&(X(n,{code:Y.unrecognized_keys,keys:a}),t.dirty());else if(e!==`strip`)throw Error(`Internal ZodObject error: invalid unknownKeys value.`)}else{let e=this._def.catchall;for(let t of a){let r=n.data[t];o.push({key:{status:`valid`,value:t},value:e._parse(new zC(n,r,n.path,t)),alwaysSet:t in n.data})}}return n.common.async?Promise.resolve().then(async()=>{let e=[];for(let t of o){let n=await t.key,r=await t.value;e.push({key:n,value:r,alwaysSet:t.alwaysSet})}return e}).then(e=>jC.mergeObjectSync(t,e)):jC.mergeObjectSync(t,o)}get shape(){return this._def.shape()}strict(t){return Z.errToObj,new e({...this._def,unknownKeys:`strict`,...t===void 0?{}:{errorMap:(e,n)=>{let r=this._def.errorMap?.(e,n).message??n.defaultError;return e.code===`unrecognized_keys`?{message:Z.errToObj(t).message??r}:{message:r}}}})}strip(){return new e({...this._def,unknownKeys:`strip`})}passthrough(){return new e({...this._def,unknownKeys:`passthrough`})}extend(t){return new e({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new e({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:eT.ZodObject})}setKey(e,t){return this.augment({[e]:t})}catchall(t){return new e({...this._def,catchall:t})}pick(t){let n={};for(let e of CC.objectKeys(t))t[e]&&this.shape[e]&&(n[e]=this.shape[e]);return new e({...this._def,shape:()=>n})}omit(t){let n={};for(let e of CC.objectKeys(this.shape))t[e]||(n[e]=this.shape[e]);return new e({...this._def,shape:()=>n})}deepPartial(){return Dw(this)}partial(t){let n={};for(let e of CC.objectKeys(this.shape)){let r=this.shape[e];n[e]=t&&!t[e]?r:r.optional()}return new e({...this._def,shape:()=>n})}required(t){let n={};for(let e of CC.objectKeys(this.shape))if(t&&!t[e])n[e]=this.shape[e];else{let t=this.shape[e];for(;t instanceof Kw;)t=t._def.innerType;n[e]=t}return new e({...this._def,shape:()=>n})}keyof(){return Vw(CC.objectKeys(this.shape))}};Ow.create=(e,t)=>new Ow({shape:()=>e,unknownKeys:`strip`,catchall:ww.create(),typeName:eT.ZodObject,...VC(t)}),Ow.strictCreate=(e,t)=>new Ow({shape:()=>e,unknownKeys:`strict`,catchall:ww.create(),typeName:eT.ZodObject,...VC(t)}),Ow.lazycreate=(e,t)=>new Ow({shape:e,unknownKeys:`strip`,catchall:ww.create(),typeName:eT.ZodObject,...VC(t)});var kw=class extends HC{_parse(e){let{ctx:t}=this._processInputParams(e),n=this._def.options;function r(e){for(let t of e)if(t.result.status===`valid`)return t.result;for(let n of e)if(n.result.status===`dirty`)return t.common.issues.push(...n.ctx.common.issues),n.result;let n=e.map(e=>new EC(e.ctx.common.issues));return X(t,{code:Y.invalid_union,unionErrors:n}),MC}if(t.common.async)return Promise.all(n.map(async e=>{let n={...t,common:{...t.common,issues:[]},parent:null};return{result:await e._parseAsync({data:t.data,path:t.path,parent:n}),ctx:n}})).then(r);{let e,r=[];for(let i of n){let n={...t,common:{...t.common,issues:[]},parent:null},a=i._parseSync({data:t.data,path:t.path,parent:n});if(a.status===`valid`)return a;a.status===`dirty`&&!e&&(e={result:a,ctx:n}),n.common.issues.length&&r.push(n.common.issues)}if(e)return t.common.issues.push(...e.ctx.common.issues),e.result;let i=r.map(e=>new EC(e));return X(t,{code:Y.invalid_union,unionErrors:i}),MC}}get options(){return this._def.options}};kw.create=(e,t)=>new kw({options:e,typeName:eT.ZodUnion,...VC(t)});var Aw=e=>e instanceof zw?Aw(e.schema):e instanceof Gw?Aw(e.innerType()):e instanceof Bw?[e.value]:e instanceof Hw?e.options:e instanceof Uw?CC.objectValues(e.enum):e instanceof Jw?Aw(e._def.innerType):e instanceof bw?[void 0]:e instanceof xw?[null]:e instanceof Kw?[void 0,...Aw(e.unwrap())]:e instanceof qw?[null,...Aw(e.unwrap())]:e instanceof Zw||e instanceof $w?Aw(e.unwrap()):e instanceof Yw?Aw(e._def.innerType):[],jw=class e extends HC{_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==J.object)return X(t,{code:Y.invalid_type,expected:J.object,received:t.parsedType}),MC;let n=this.discriminator,r=t.data[n],i=this.optionsMap.get(r);return i?t.common.async?i._parseAsync({data:t.data,path:t.path,parent:t}):i._parseSync({data:t.data,path:t.path,parent:t}):(X(t,{code:Y.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[n]}),MC)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(t,n,r){let i=new Map;for(let e of n){let n=Aw(e.shape[t]);if(!n.length)throw Error(`A discriminator value for key \`${t}\` could not be extracted from all schema options`);for(let r of n){if(i.has(r))throw Error(`Discriminator property ${String(t)} has duplicate value ${String(r)}`);i.set(r,e)}}return new e({typeName:eT.ZodDiscriminatedUnion,discriminator:t,options:n,optionsMap:i,...VC(r)})}};function Mw(e,t){let n=TC(e),r=TC(t);if(e===t)return{valid:!0,data:e};if(n===J.object&&r===J.object){let n=CC.objectKeys(t),r=CC.objectKeys(e).filter(e=>n.indexOf(e)!==-1),i={...e,...t};for(let n of r){let r=Mw(e[n],t[n]);if(!r.valid)return{valid:!1};i[n]=r.data}return{valid:!0,data:i}}if(n===J.array&&r===J.array){if(e.length!==t.length)return{valid:!1};let n=[];for(let r=0;r{if(FC(e)||FC(r))return MC;let i=Mw(e.value,r.value);return i.valid?((IC(e)||IC(r))&&t.dirty(),{status:t.value,value:i.data}):(X(n,{code:Y.invalid_intersection_types}),MC)};return n.common.async?Promise.all([this._def.left._parseAsync({data:n.data,path:n.path,parent:n}),this._def.right._parseAsync({data:n.data,path:n.path,parent:n})]).then(([e,t])=>r(e,t)):r(this._def.left._parseSync({data:n.data,path:n.path,parent:n}),this._def.right._parseSync({data:n.data,path:n.path,parent:n}))}};Nw.create=(e,t,n)=>new Nw({left:e,right:t,typeName:eT.ZodIntersection,...VC(n)});var Pw=class e extends HC{_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==J.array)return X(n,{code:Y.invalid_type,expected:J.array,received:n.parsedType}),MC;if(n.data.lengththis._def.items.length&&(X(n,{code:Y.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:`array`}),t.dirty());let r=[...n.data].map((e,t)=>{let r=this._def.items[t]||this._def.rest;return r?r._parse(new zC(n,e,n.path,t)):null}).filter(e=>!!e);return n.common.async?Promise.all(r).then(e=>jC.mergeArray(t,e)):jC.mergeArray(t,r)}get items(){return this._def.items}rest(t){return new e({...this._def,rest:t})}};Pw.create=(e,t)=>{if(!Array.isArray(e))throw Error(`You must pass an array of schemas to z.tuple([ ... ])`);return new Pw({items:e,typeName:eT.ZodTuple,rest:null,...VC(t)})};var Fw=class e extends HC{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==J.object)return X(n,{code:Y.invalid_type,expected:J.object,received:n.parsedType}),MC;let r=[],i=this._def.keyType,a=this._def.valueType;for(let e in n.data)r.push({key:i._parse(new zC(n,e,n.path,e)),value:a._parse(new zC(n,n.data[e],n.path,e)),alwaysSet:e in n.data});return n.common.async?jC.mergeObjectAsync(t,r):jC.mergeObjectSync(t,r)}get element(){return this._def.valueType}static create(t,n,r){return n instanceof HC?new e({keyType:t,valueType:n,typeName:eT.ZodRecord,...VC(r)}):new e({keyType:pw.create(),valueType:t,typeName:eT.ZodRecord,...VC(n)})}},Iw=class extends HC{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==J.map)return X(n,{code:Y.invalid_type,expected:J.map,received:n.parsedType}),MC;let r=this._def.keyType,i=this._def.valueType,a=[...n.data.entries()].map(([e,t],a)=>({key:r._parse(new zC(n,e,n.path,[a,`key`])),value:i._parse(new zC(n,t,n.path,[a,`value`]))}));if(n.common.async){let e=new Map;return Promise.resolve().then(async()=>{for(let n of a){let r=await n.key,i=await n.value;if(r.status===`aborted`||i.status===`aborted`)return MC;(r.status===`dirty`||i.status===`dirty`)&&t.dirty(),e.set(r.value,i.value)}return{status:t.value,value:e}})}{let e=new Map;for(let n of a){let r=n.key,i=n.value;if(r.status===`aborted`||i.status===`aborted`)return MC;(r.status===`dirty`||i.status===`dirty`)&&t.dirty(),e.set(r.value,i.value)}return{status:t.value,value:e}}}};Iw.create=(e,t,n)=>new Iw({valueType:t,keyType:e,typeName:eT.ZodMap,...VC(n)});var Lw=class e extends HC{_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==J.set)return X(n,{code:Y.invalid_type,expected:J.set,received:n.parsedType}),MC;let r=this._def;r.minSize!==null&&n.data.sizer.maxSize.value&&(X(n,{code:Y.too_big,maximum:r.maxSize.value,type:`set`,inclusive:!0,exact:!1,message:r.maxSize.message}),t.dirty());let i=this._def.valueType;function a(e){let n=new Set;for(let r of e){if(r.status===`aborted`)return MC;r.status===`dirty`&&t.dirty(),n.add(r.value)}return{status:t.value,value:n}}let o=[...n.data.values()].map((e,t)=>i._parse(new zC(n,e,n.path,t)));return n.common.async?Promise.all(o).then(e=>a(e)):a(o)}min(t,n){return new e({...this._def,minSize:{value:t,message:Z.toString(n)}})}max(t,n){return new e({...this._def,maxSize:{value:t,message:Z.toString(n)}})}size(e,t){return this.min(e,t).max(e,t)}nonempty(e){return this.min(1,e)}};Lw.create=(e,t)=>new Lw({valueType:e,minSize:null,maxSize:null,typeName:eT.ZodSet,...VC(t)});var Rw=class e extends HC{constructor(){super(...arguments),this.validate=this.implement}_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==J.function)return X(t,{code:Y.invalid_type,expected:J.function,received:t.parsedType}),MC;function n(e,n){return AC({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,kC(),DC].filter(e=>!!e),issueData:{code:Y.invalid_arguments,argumentsError:n}})}function r(e,n){return AC({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,kC(),DC].filter(e=>!!e),issueData:{code:Y.invalid_return_type,returnTypeError:n}})}let i={errorMap:t.common.contextualErrorMap},a=t.data;if(this._def.returns instanceof Ww){let e=this;return PC(async function(...t){let o=new EC([]),s=await e._def.args.parseAsync(t,i).catch(e=>{throw o.addIssue(n(t,e)),o}),c=await Reflect.apply(a,this,s);return await e._def.returns._def.type.parseAsync(c,i).catch(e=>{throw o.addIssue(r(c,e)),o})})}{let e=this;return PC(function(...t){let o=e._def.args.safeParse(t,i);if(!o.success)throw new EC([n(t,o.error)]);let s=Reflect.apply(a,this,o.data),c=e._def.returns.safeParse(s,i);if(!c.success)throw new EC([r(s,c.error)]);return c.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...t){return new e({...this._def,args:Pw.create(t).rest(Cw.create())})}returns(t){return new e({...this._def,returns:t})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(t,n,r){return new e({args:t||Pw.create([]).rest(Cw.create()),returns:n||Cw.create(),typeName:eT.ZodFunction,...VC(r)})}},zw=class extends HC{get schema(){return this._def.getter()}_parse(e){let{ctx:t}=this._processInputParams(e);return this._def.getter()._parse({data:t.data,path:t.path,parent:t})}};zw.create=(e,t)=>new zw({getter:e,typeName:eT.ZodLazy,...VC(t)});var Bw=class extends HC{_parse(e){if(e.data!==this._def.value){let t=this._getOrReturnCtx(e);return X(t,{received:t.data,code:Y.invalid_literal,expected:this._def.value}),MC}return{status:`valid`,value:e.data}}get value(){return this._def.value}};Bw.create=(e,t)=>new Bw({value:e,typeName:eT.ZodLiteral,...VC(t)});function Vw(e,t){return new Hw({values:e,typeName:eT.ZodEnum,...VC(t)})}var Hw=class e extends HC{_parse(e){if(typeof e.data!=`string`){let t=this._getOrReturnCtx(e),n=this._def.values;return X(t,{expected:CC.joinValues(n),received:t.parsedType,code:Y.invalid_type}),MC}if(this._cache||=new Set(this._def.values),!this._cache.has(e.data)){let t=this._getOrReturnCtx(e),n=this._def.values;return X(t,{received:t.data,code:Y.invalid_enum_value,options:n}),MC}return PC(e.data)}get options(){return this._def.values}get enum(){let e={};for(let t of this._def.values)e[t]=t;return e}get Values(){let e={};for(let t of this._def.values)e[t]=t;return e}get Enum(){let e={};for(let t of this._def.values)e[t]=t;return e}extract(t,n=this._def){return e.create(t,{...this._def,...n})}exclude(t,n=this._def){return e.create(this.options.filter(e=>!t.includes(e)),{...this._def,...n})}};Hw.create=Vw;var Uw=class extends HC{_parse(e){let t=CC.getValidEnumValues(this._def.values),n=this._getOrReturnCtx(e);if(n.parsedType!==J.string&&n.parsedType!==J.number){let e=CC.objectValues(t);return X(n,{expected:CC.joinValues(e),received:n.parsedType,code:Y.invalid_type}),MC}if(this._cache||=new Set(CC.getValidEnumValues(this._def.values)),!this._cache.has(e.data)){let e=CC.objectValues(t);return X(n,{received:n.data,code:Y.invalid_enum_value,options:e}),MC}return PC(e.data)}get enum(){return this._def.values}};Uw.create=(e,t)=>new Uw({values:e,typeName:eT.ZodNativeEnum,...VC(t)});var Ww=class extends HC{unwrap(){return this._def.type}_parse(e){let{ctx:t}=this._processInputParams(e);return t.parsedType!==J.promise&&t.common.async===!1?(X(t,{code:Y.invalid_type,expected:J.promise,received:t.parsedType}),MC):PC((t.parsedType===J.promise?t.data:Promise.resolve(t.data)).then(e=>this._def.type.parseAsync(e,{path:t.path,errorMap:t.common.contextualErrorMap})))}};Ww.create=(e,t)=>new Ww({type:e,typeName:eT.ZodPromise,...VC(t)});var Gw=class extends HC{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===eT.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){let{status:t,ctx:n}=this._processInputParams(e),r=this._def.effect||null,i={addIssue:e=>{X(n,e),e.fatal?t.abort():t.dirty()},get path(){return n.path}};if(i.addIssue=i.addIssue.bind(i),r.type===`preprocess`){let e=r.transform(n.data,i);if(n.common.async)return Promise.resolve(e).then(async e=>{if(t.value===`aborted`)return MC;let r=await this._def.schema._parseAsync({data:e,path:n.path,parent:n});return r.status===`aborted`?MC:r.status===`dirty`||t.value===`dirty`?NC(r.value):r});{if(t.value===`aborted`)return MC;let r=this._def.schema._parseSync({data:e,path:n.path,parent:n});return r.status===`aborted`?MC:r.status===`dirty`||t.value===`dirty`?NC(r.value):r}}if(r.type===`refinement`){let e=e=>{let t=r.refinement(e,i);if(n.common.async)return Promise.resolve(t);if(t instanceof Promise)throw Error(`Async refinement encountered during synchronous parse operation. Use .parseAsync instead.`);return e};if(n.common.async===!1){let r=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});return r.status===`aborted`?MC:(r.status===`dirty`&&t.dirty(),e(r.value),{status:t.value,value:r.value})}return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(n=>n.status===`aborted`?MC:(n.status===`dirty`&&t.dirty(),e(n.value).then(()=>({status:t.value,value:n.value}))))}if(r.type===`transform`)if(n.common.async===!1){let e=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});if(!LC(e))return MC;let a=r.transform(e.value,i);if(a instanceof Promise)throw Error(`Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.`);return{status:t.value,value:a}}else return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(e=>LC(e)?Promise.resolve(r.transform(e.value,i)).then(e=>({status:t.value,value:e})):MC);CC.assertNever(r)}};Gw.create=(e,t,n)=>new Gw({schema:e,typeName:eT.ZodEffects,effect:t,...VC(n)}),Gw.createWithPreprocess=(e,t,n)=>new Gw({schema:t,effect:{type:`preprocess`,transform:e},typeName:eT.ZodEffects,...VC(n)});var Kw=class extends HC{_parse(e){return this._getType(e)===J.undefined?PC(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}};Kw.create=(e,t)=>new Kw({innerType:e,typeName:eT.ZodOptional,...VC(t)});var qw=class extends HC{_parse(e){return this._getType(e)===J.null?PC(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}};qw.create=(e,t)=>new qw({innerType:e,typeName:eT.ZodNullable,...VC(t)});var Jw=class extends HC{_parse(e){let{ctx:t}=this._processInputParams(e),n=t.data;return t.parsedType===J.undefined&&(n=this._def.defaultValue()),this._def.innerType._parse({data:n,path:t.path,parent:t})}removeDefault(){return this._def.innerType}};Jw.create=(e,t)=>new Jw({innerType:e,typeName:eT.ZodDefault,defaultValue:typeof t.default==`function`?t.default:()=>t.default,...VC(t)});var Yw=class extends HC{_parse(e){let{ctx:t}=this._processInputParams(e),n={...t,common:{...t.common,issues:[]}},r=this._def.innerType._parse({data:n.data,path:n.path,parent:{...n}});return RC(r)?r.then(e=>({status:`valid`,value:e.status===`valid`?e.value:this._def.catchValue({get error(){return new EC(n.common.issues)},input:n.data})})):{status:`valid`,value:r.status===`valid`?r.value:this._def.catchValue({get error(){return new EC(n.common.issues)},input:n.data})}}removeCatch(){return this._def.innerType}};Yw.create=(e,t)=>new Yw({innerType:e,typeName:eT.ZodCatch,catchValue:typeof t.catch==`function`?t.catch:()=>t.catch,...VC(t)});var Xw=class extends HC{_parse(e){if(this._getType(e)!==J.nan){let t=this._getOrReturnCtx(e);return X(t,{code:Y.invalid_type,expected:J.nan,received:t.parsedType}),MC}return{status:`valid`,value:e.data}}};Xw.create=e=>new Xw({typeName:eT.ZodNaN,...VC(e)});var Zw=class extends HC{_parse(e){let{ctx:t}=this._processInputParams(e),n=t.data;return this._def.type._parse({data:n,path:t.path,parent:t})}unwrap(){return this._def.type}},Qw=class e extends HC{_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.common.async)return(async()=>{let e=await this._def.in._parseAsync({data:n.data,path:n.path,parent:n});return e.status===`aborted`?MC:e.status===`dirty`?(t.dirty(),NC(e.value)):this._def.out._parseAsync({data:e.value,path:n.path,parent:n})})();{let e=this._def.in._parseSync({data:n.data,path:n.path,parent:n});return e.status===`aborted`?MC:e.status===`dirty`?(t.dirty(),{status:`dirty`,value:e.value}):this._def.out._parseSync({data:e.value,path:n.path,parent:n})}}static create(t,n){return new e({in:t,out:n,typeName:eT.ZodPipeline})}},$w=class extends HC{_parse(e){let t=this._def.innerType._parse(e),n=e=>(LC(e)&&(e.value=Object.freeze(e.value)),e);return RC(t)?t.then(e=>n(e)):n(t)}unwrap(){return this._def.innerType}};$w.create=(e,t)=>new $w({innerType:e,typeName:eT.ZodReadonly,...VC(t)}),Ow.lazycreate;var eT;(function(e){e.ZodString=`ZodString`,e.ZodNumber=`ZodNumber`,e.ZodNaN=`ZodNaN`,e.ZodBigInt=`ZodBigInt`,e.ZodBoolean=`ZodBoolean`,e.ZodDate=`ZodDate`,e.ZodSymbol=`ZodSymbol`,e.ZodUndefined=`ZodUndefined`,e.ZodNull=`ZodNull`,e.ZodAny=`ZodAny`,e.ZodUnknown=`ZodUnknown`,e.ZodNever=`ZodNever`,e.ZodVoid=`ZodVoid`,e.ZodArray=`ZodArray`,e.ZodObject=`ZodObject`,e.ZodUnion=`ZodUnion`,e.ZodDiscriminatedUnion=`ZodDiscriminatedUnion`,e.ZodIntersection=`ZodIntersection`,e.ZodTuple=`ZodTuple`,e.ZodRecord=`ZodRecord`,e.ZodMap=`ZodMap`,e.ZodSet=`ZodSet`,e.ZodFunction=`ZodFunction`,e.ZodLazy=`ZodLazy`,e.ZodLiteral=`ZodLiteral`,e.ZodEnum=`ZodEnum`,e.ZodEffects=`ZodEffects`,e.ZodNativeEnum=`ZodNativeEnum`,e.ZodOptional=`ZodOptional`,e.ZodNullable=`ZodNullable`,e.ZodDefault=`ZodDefault`,e.ZodCatch=`ZodCatch`,e.ZodPromise=`ZodPromise`,e.ZodBranded=`ZodBranded`,e.ZodPipeline=`ZodPipeline`,e.ZodReadonly=`ZodReadonly`})(eT||={});var tT=pw.create;hw.create,Xw.create,gw.create;var nT=_w.create;vw.create,yw.create,bw.create,xw.create;var rT=Sw.create;Cw.create,ww.create,Tw.create,Ew.create;var iT=Ow.create;Ow.strictCreate,kw.create;var aT=jw.create;Nw.create,Pw.create,Fw.create,Iw.create,Lw.create,Rw.create,zw.create;var oT=Bw.create,sT=Hw.create;Uw.create,Ww.create,Gw.create,Kw.create,qw.create,Gw.createWithPreprocess,Qw.create;var cT=/^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i,lT=e=>{if(typeof e!=`string`)throw TypeError(`Invalid argument expected string`);let t=e.match(cT);if(!t)throw Error(`Invalid argument not valid semver ('${e}' received)`);return t.shift(),t},uT=e=>e===`*`||e===`x`||e===`X`,dT=e=>{let t=parseInt(e,10);return isNaN(t)?e:t},fT=(e,t)=>typeof e==typeof t?[e,t]:[String(e),String(t)],pT=(e,t)=>{if(uT(e)||uT(t))return 0;let[n,r]=fT(dT(e),dT(t));return n>r?1:n{for(let n=0;n{let n=lT(e),r=lT(t),i=n.pop(),a=r.pop(),o=mT(n,r);return o===0?i&&a?mT(i.split(`.`),a.split(`.`)):i||a?i?-1:1:0:o},gT=e=>{if(typeof structuredClone==`function`)return structuredClone(e);try{return JSON.parse(JSON.stringify(e))}catch{return Array.isArray(e)?[...e]:{...e}}};function _T(){return ng()}function vT(e){if(Object.freeze(e),typeof e==`object`&&e)for(let t of Object.values(e))typeof t==`object`&&t&&!Object.isFrozen(t)&&vT(t);return e}var yT=524288;function bT(e,t,n){let r=0,i=[e,t],a=new WeakSet;for(;i.length>0;){let e=i.pop();if(typeof e==`string`){if(r+=e.length,r>n)return!0}else if(typeof e==`object`&&e){if(a.has(e))continue;if(a.add(e),Array.isArray(e))for(let t=0;tn)return!0;i.push(e[o])}}}}return!1}async function xT(e,t,n,r){let i=typeof process<`u`&&!0,a=i&&!!{}.VITEST_WORKER_ID,o=i&&!!{}.VITEST_WORKER_ID,s=o&&!bT(t,n,yT),c=s?gT(t):t,l=s?gT(n):n,u=!1,d=!1,f;for(let t of e)try{s&&(vT(c),vT(l));let e=await r(t,c,l);if(e===void 0)continue;let n=!1;if(e.messages!==void 0&&e.messages!==c&&(c=gT(e.messages),u=!0,n=!0),e.state!==void 0&&e.state!==l&&(l=gT(e.state),d=!0,n=!0),s&&n&&bT(c,l,yT)&&(s=!1),f=e.stopPropagation,f===!0)break}catch(e){if(o&&e instanceof TypeError){if(a)throw e;console.error(`AG-UI: Subscriber attempted to mutate frozen inputs in-place. Return mutations via AgentStateMutation instead of mutating directly.`,e)}else a||console.error(`Subscriber error:`,e);continue}return{...u?{messages:Object.isFrozen(c)?gT(c):c}:{},...d?{state:Object.isFrozen(l)?gT(l):l}:{},...f===void 0?{}:{stopPropagation:f}}}function ST(e){if(!e)return{enabled:!1,events:!1,lifecycle:!1,verbose:!1};if(e===!0)return{enabled:!0,events:!0,lifecycle:!0,verbose:!0};let t=e.events??!0,n=e.lifecycle??!0,r=e.verbose??!1;return{enabled:t||n,events:t,lifecycle:n,verbose:r}}function CT(e){if(e instanceof wT)return e;if(e===!0)return new wT(ST(!0))}var wT=class{constructor(e){this.config=e}event(e,t,n,r){this.config.events&&(this.config.verbose?console.debug(`[${e}] ${t}`,typeof n==`string`?n:JSON.stringify(n)):console.debug(`[${e}] ${t}`,r??n))}lifecycle(e,t,n){this.config.lifecycle&&(n?console.debug(`[${e}] ${t}`,n):console.debug(`[${e}] ${t}`))}get eventsEnabled(){return this.config.events}get lifecycleEnabled(){return this.config.lifecycle}get enabled(){return this.config.enabled}};function TT(e){return e.enabled?new wT(e):void 0}function ET(e,t,n){if(t){let r=e.find(e=>e.id===t);if(r?.role===`assistant`)return r;r&&console.warn(`TOOL_CALL_START: parentMessageId '${t}' matches a '${r.role}' message, not assistant — falling back to toolCallId`);let i={id:r?n:t,role:`assistant`,toolCalls:[]};return e.push(i),i}let r={id:n,role:`assistant`,toolCalls:[]};return e.push(r),r}var DT=(e,t,n,r,i)=>{let a=CT(i),o=gT(n.messages),s=gT(e.state),c={},l=e=>{e.messages!==void 0&&(o=e.messages,c.messages=e.messages),e.state!==void 0&&(s=e.state,c.state=e.state)},u=()=>{let e=gT(c);return c={},e.messages!==void 0||e.state!==void 0?lx(e):Ab};return t.pipe(yx(async t=>{let i=await xT(r,o,s,(r,i,a)=>r.onEvent?.({event:t,agent:n,input:e,messages:i,state:a}));if(l(i),i.stopPropagation===!0?a?.event(`APPLY`,`Event dropped:`,t,{type:t.type,reason:`stopPropagation by subscriber`}):a?.event(`APPLY`,`Event applied:`,t,{type:t.type,subscribers:r.length}),i.stopPropagation===!0)return u();switch(t.type){case W.TEXT_MESSAGE_START:{let i=await xT(r,o,s,(r,i,a)=>r.onTextMessageStartEvent?.({event:t,messages:i,state:a,agent:n,input:e}));if(l(i),i.stopPropagation!==!0){let{messageId:e,role:n=`assistant`,name:r}=t;if(!o.find(t=>t.id===e)){let t={id:e,role:n,content:``,...r!==void 0&&{name:r}};o.push(t),l({messages:o})}}return u()}case W.TEXT_MESSAGE_CONTENT:{let{messageId:i,delta:a}=t,c=o.find(e=>e.id===i);if(!c)return console.warn(`TEXT_MESSAGE_CONTENT: No message found with ID '${i}'`),u();let d=await xT(r,o,s,(r,i,a)=>r.onTextMessageContentEvent?.({event:t,messages:i,state:a,agent:n,input:e,textMessageBuffer:typeof c.content==`string`?c.content:``}));return l(d),d.stopPropagation!==!0&&(c.content=`${typeof c.content==`string`?c.content:``}${a}`,l({messages:o})),u()}case W.TEXT_MESSAGE_END:{let{messageId:i}=t,a=o.find(e=>e.id===i);return a?(l(await xT(r,o,s,(r,i,o)=>r.onTextMessageEndEvent?.({event:t,messages:i,state:o,agent:n,input:e,textMessageBuffer:typeof a.content==`string`?a.content:``}))),await Promise.all(r.map(t=>{t.onNewMessage?.({message:a,messages:o,state:s,agent:n,input:e})})),u()):(console.warn(`TEXT_MESSAGE_END: No message found with ID '${i}'`),u())}case W.TOOL_CALL_START:{let i=await xT(r,o,s,(r,i,a)=>r.onToolCallStartEvent?.({event:t,messages:i,state:a,agent:n,input:e}));if(l(i),i.stopPropagation!==!0){let{toolCallId:e,toolCallName:n,parentMessageId:r}=t,i=ET(o,r,e);i.toolCalls??=[],i.toolCalls.push({id:e,type:`function`,function:{name:n,arguments:``}}),l({messages:o})}return u()}case W.TOOL_CALL_ARGS:{let{toolCallId:i,delta:a}=t,c=o.find(e=>e.toolCalls?.some(e=>e.id===i));if(!c)return console.warn(`TOOL_CALL_ARGS: No message found containing tool call with ID '${i}'`),u();let d=c.toolCalls?.find(e=>e.id===i);if(!d)return console.warn(`TOOL_CALL_ARGS: No tool call found with ID '${i}'`),u();let f=await xT(r,o,s,(r,i,a)=>{let o=d.function.arguments,s=d.function.name,c={};try{c=Ex(o)}catch{}return r.onToolCallArgsEvent?.({event:t,messages:i,state:a,agent:n,input:e,toolCallBuffer:o,toolCallName:s,partialToolCallArgs:c})});return l(f),f.stopPropagation!==!0&&(d.function.arguments+=a,l({messages:o})),u()}case W.TOOL_CALL_END:{let{toolCallId:i}=t,a=o.find(e=>e.toolCalls?.some(e=>e.id===i));if(!a)return console.warn(`TOOL_CALL_END: No message found containing tool call with ID '${i}'`),u();let c=a.toolCalls?.find(e=>e.id===i);return c?(l(await xT(r,o,s,(r,i,a)=>{let o=c.function.arguments,s=c.function.name,l={};try{l=JSON.parse(o)}catch{}return r.onToolCallEndEvent?.({event:t,messages:i,state:a,agent:n,input:e,toolCallName:s,toolCallArgs:l})})),await Promise.all(r.map(t=>{t.onNewToolCall?.({toolCall:c,messages:o,state:s,agent:n,input:e})})),u()):(console.warn(`TOOL_CALL_END: No tool call found with ID '${i}'`),u())}case W.TOOL_CALL_RESULT:{let i=await xT(r,o,s,(r,i,a)=>r.onToolCallResultEvent?.({event:t,messages:i,state:a,agent:n,input:e}));if(l(i),i.stopPropagation!==!0){let{messageId:i,toolCallId:a,content:c,role:u}=t,d={id:i,toolCallId:a,role:u||`tool`,content:c},f=o.findIndex(e=>e.role===`assistant`&&e.toolCalls?.some(e=>e.id===a));if(f===-1)o.push(d);else{let e=f+1;for(;e{t.onNewMessage?.({message:d,messages:o,state:s,agent:n,input:e})})),l({messages:o})}return u()}case W.STATE_SNAPSHOT:{let i=await xT(r,o,s,(r,i,a)=>r.onStateSnapshotEvent?.({event:t,messages:i,state:a,agent:n,input:e}));if(l(i),i.stopPropagation!==!0){let{snapshot:e}=t;s=e,l({state:s})}return u()}case W.STATE_DELTA:{let i=await xT(r,o,s,(r,i,a)=>r.onStateDeltaEvent?.({event:t,messages:i,state:a,agent:n,input:e}));if(l(i),i.stopPropagation!==!0){let{delta:e}=t;try{s=Ry.applyPatch(s,e,!0,!1).newDocument,l({state:s})}catch(t){let n=t instanceof Error?t.message:String(t);console.warn(`Failed to apply state patch:\nCurrent state: ${JSON.stringify(s,null,2)}\nPatch operations: ${JSON.stringify(e,null,2)}\nError: ${n}`)}}return u()}case W.MESSAGES_SNAPSHOT:{let i=await xT(r,o,s,(r,i,a)=>r.onMessagesSnapshotEvent?.({event:t,messages:i,state:a,agent:n,input:e}));if(l(i),i.stopPropagation!==!0){let{messages:e}=t,n=new Map(e.map(e=>[e.id,e])),r=e.some(e=>e.role===`reasoning`),i=e=>e.role===`activity`||e.role===`reasoning`&&!r;o=o.filter(e=>i(e)||n.has(e.id)).map(e=>i(e)?e:n.get(e.id));let a=new Set(o.map(e=>e.id));for(let t of e)a.has(t.id)||o.push(t);l({messages:o})}return u()}case W.ACTIVITY_SNAPSHOT:{let i=t,a=o.findIndex(e=>e.id===i.messageId),c=a>=0?o[a]:void 0,d=c?.role===`activity`?c:void 0,f=i.replace??!0,p=await xT(r,o,s,(t,r,a)=>t.onActivitySnapshotEvent?.({event:i,messages:r,state:a,agent:n,input:e,activityMessage:d,existingMessage:c}));if(l(p),p.stopPropagation!==!0){let t={id:i.messageId,role:`activity`,activityType:i.activityType,content:gT(i.content)},c;a===-1?(o.push(t),c=t):d?f&&(o[a]={...d,activityType:i.activityType,content:gT(i.content)}):f&&(o[a]=t,c=t),l({messages:o}),c&&await Promise.all(r.map(t=>t.onNewMessage?.({message:c,messages:o,state:s,agent:n,input:e})))}return u()}case W.ACTIVITY_DELTA:{let i=t,a=o.findIndex(e=>e.id===i.messageId);if(a===-1)return u();let c=o[a];if(c.role!==`activity`)return console.warn(`ACTIVITY_DELTA: Message '${i.messageId}' is not an activity message`),u();let d=c,f=await xT(r,o,s,(t,r,a)=>t.onActivityDeltaEvent?.({event:i,messages:r,state:a,agent:n,input:e,activityMessage:d}));if(l(f),f.stopPropagation!==!0)try{let e=gT(d.content??{}),t=Ry.applyPatch(e,i.patch??[],!0,!1).newDocument;o[a]={...d,content:gT(t),activityType:i.activityType},l({messages:o})}catch(e){let t=e instanceof Error?e.message:String(e);console.warn(`Failed to apply activity patch for '${i.messageId}': ${t}`)}return u()}case W.RAW:return l(await xT(r,o,s,(r,i,a)=>r.onRawEvent?.({event:t,messages:i,state:a,agent:n,input:e}))),u();case W.CUSTOM:return l(await xT(r,o,s,(r,i,a)=>r.onCustomEvent?.({event:t,messages:i,state:a,agent:n,input:e}))),u();case W.RUN_STARTED:{let i=await xT(r,o,s,(r,i,a)=>r.onRunStartedEvent?.({event:t,messages:i,state:a,agent:n,input:e}));if(l(i),i.stopPropagation!==!0){let e=t;if(e.input?.messages){for(let t of e.input.messages)o.find(e=>e.id===t.id)||o.push(t);l({messages:o})}}return u()}case W.RUN_FINISHED:{let i=t,a=i.outcome?.type===`interrupt`?{event:i,outcome:`interrupt`,interrupts:i.outcome.interrupts}:{event:i,outcome:`success`,result:i.result},c=await xT(r,o,s,(t,r,i)=>t.onRunFinishedEvent?.({...a,messages:r,state:i,agent:n,input:e}));return l(c),c.stopPropagation!==!0&&(n.pendingInterrupts=a.outcome===`interrupt`?[...a.interrupts]:[]),u()}case W.RUN_ERROR:return l(await xT(r,o,s,(r,i,a)=>r.onRunErrorEvent?.({event:t,messages:i,state:a,agent:n,input:e}))),u();case W.STEP_STARTED:return l(await xT(r,o,s,(r,i,a)=>r.onStepStartedEvent?.({event:t,messages:i,state:a,agent:n,input:e}))),u();case W.STEP_FINISHED:return l(await xT(r,o,s,(r,i,a)=>r.onStepFinishedEvent?.({event:t,messages:i,state:a,agent:n,input:e}))),u();case W.TEXT_MESSAGE_CHUNK:throw Error(`TEXT_MESSAGE_CHUNK must be tranformed before being applied`);case W.TOOL_CALL_CHUNK:throw Error(`TOOL_CALL_CHUNK must be tranformed before being applied`);case W.THINKING_START:return u();case W.THINKING_END:return u();case W.THINKING_TEXT_MESSAGE_START:return u();case W.THINKING_TEXT_MESSAGE_CONTENT:return u();case W.THINKING_TEXT_MESSAGE_END:return u();case W.REASONING_START:return l(await xT(r,o,s,(r,i,a)=>r.onReasoningStartEvent?.({event:t,messages:i,state:a,agent:n,input:e}))),u();case W.REASONING_MESSAGE_START:{let i=await xT(r,o,s,(r,i,a)=>r.onReasoningMessageStartEvent?.({event:t,messages:i,state:a,agent:n,input:e}));if(l(i),i.stopPropagation!==!0){let{messageId:e}=t;if(!o.find(t=>t.id===e)){let t={id:e,role:`reasoning`,content:``};o.push(t),l({messages:o})}}return u()}case W.REASONING_MESSAGE_CONTENT:{let{messageId:i,delta:a}=t,c=o.find(e=>e.id===i);if(!c)return console.warn(`REASONING_MESSAGE_CONTENT: No message found with ID '${i}'`),u();let d=await xT(r,o,s,(r,i,a)=>r.onReasoningMessageContentEvent?.({event:t,messages:i,state:a,agent:n,input:e,reasoningMessageBuffer:typeof c.content==`string`?c.content:``}));return l(d),d.stopPropagation!==!0&&(c.content=`${typeof c.content==`string`?c.content:``}${a}`,l({messages:o})),u()}case W.REASONING_MESSAGE_END:{let{messageId:i}=t,a=o.find(e=>e.id===i);return a?(l(await xT(r,o,s,(r,i,o)=>r.onReasoningMessageEndEvent?.({event:t,messages:i,state:o,agent:n,input:e,reasoningMessageBuffer:typeof a.content==`string`?a.content:``}))),await Promise.all(r.map(t=>{t.onNewMessage?.({message:a,messages:o,state:s,agent:n,input:e})})),u()):(console.warn(`REASONING_MESSAGE_END: No message found with ID '${i}'`),u())}case W.REASONING_MESSAGE_CHUNK:throw Error(`REASONING_MESSAGE_CHUNK must be transformed before being applied`);case W.REASONING_END:return l(await xT(r,o,s,(r,i,a)=>r.onReasoningEndEvent?.({event:t,messages:i,state:a,agent:n,input:e}))),u();case W.REASONING_ENCRYPTED_VALUE:{let{subtype:i,entityId:a,encryptedValue:d}=t,f=await xT(r,o,s,(r,i,a)=>r.onReasoningEncryptedValueEvent?.({event:t,messages:i,state:a,agent:n,input:e}));if(l(f),f.stopPropagation!==!0){let e=!1;if(i===`tool-call`){for(let t of o)if(t.role===`assistant`&&t.toolCalls){let n=t.toolCalls.find(e=>e.id===a);if(n){n.encryptedValue=d,e=!0;break}}}else{let t=o.find(e=>e.id===a);t?.role!==`activity`&&t&&(t.encryptedValue=d,e=!0)}e&&(c.messages=o)}return u()}}return t.type,u()}),gx(),r.length>0?bx({}):e=>e)},OT=e=>t=>{let n=CT(e),r=new Map,i=new Map,a=!1,o=!1,s=!1,c=new Map,l=!1,u=!1,d=!1,f=()=>{r.clear(),i.clear(),c.clear(),l=!1,u=!1,a=!1,o=!1,d=!0};return t.pipe(hx(e=>{let t=e.type;if(n?.event(`VERIFY`,`Event:`,e,{type:e.type}),o)return ux(()=>new dv(`Cannot send event type '${t}': The run has already errored with 'RUN_ERROR'. No further events can be sent.`));if(a&&t!==W.RUN_ERROR&&t!==W.RUN_STARTED)return ux(()=>new dv(`Cannot send event type '${t}': The run has already finished with 'RUN_FINISHED'. Start a new run with 'RUN_STARTED'.`));if(!s){if(s=!0,t!==W.RUN_STARTED&&t!==W.RUN_ERROR)return ux(()=>new dv(`First event must be 'RUN_STARTED'`))}else if(t===W.RUN_STARTED){if(d&&!a)return ux(()=>new dv(`Cannot send 'RUN_STARTED' while a run is still active. The previous run must be finished with 'RUN_FINISHED' before starting a new run.`));a&&f()}switch(t){case W.TEXT_MESSAGE_START:{let t=e.messageId;return r.has(t)?ux(()=>new dv(`Cannot send 'TEXT_MESSAGE_START' event: A text message with ID '${t}' is already in progress. Complete it with 'TEXT_MESSAGE_END' first.`)):(r.set(t,!0),lx(e))}case W.TEXT_MESSAGE_CONTENT:{let t=e.messageId;return r.has(t)?lx(e):ux(()=>new dv(`Cannot send 'TEXT_MESSAGE_CONTENT' event: No active text message found with ID '${t}'. Start a text message with 'TEXT_MESSAGE_START' first.`))}case W.TEXT_MESSAGE_END:{let t=e.messageId;return r.has(t)?(r.delete(t),lx(e)):ux(()=>new dv(`Cannot send 'TEXT_MESSAGE_END' event: No active text message found with ID '${t}'. A 'TEXT_MESSAGE_START' event must be sent first.`))}case W.TOOL_CALL_START:{let t=e.toolCallId;return i.has(t)?ux(()=>new dv(`Cannot send 'TOOL_CALL_START' event: A tool call with ID '${t}' is already in progress. Complete it with 'TOOL_CALL_END' first.`)):(i.set(t,!0),lx(e))}case W.TOOL_CALL_ARGS:{let t=e.toolCallId;return i.has(t)?lx(e):ux(()=>new dv(`Cannot send 'TOOL_CALL_ARGS' event: No active tool call found with ID '${t}'. Start a tool call with 'TOOL_CALL_START' first.`))}case W.TOOL_CALL_END:{let t=e.toolCallId;return i.has(t)?(i.delete(t),lx(e)):ux(()=>new dv(`Cannot send 'TOOL_CALL_END' event: No active tool call found with ID '${t}'. A 'TOOL_CALL_START' event must be sent first.`))}case W.STEP_STARTED:{let t=e.stepName;return c.has(t)?ux(()=>new dv(`Step "${t}" is already active for 'STEP_STARTED'`)):(c.set(t,!0),lx(e))}case W.STEP_FINISHED:{let t=e.stepName;return c.has(t)?(c.delete(t),lx(e)):ux(()=>new dv(`Cannot send 'STEP_FINISHED' for step "${t}" that was not started`))}case W.RUN_STARTED:return d=!0,lx(e);case W.RUN_FINISHED:if(c.size>0){let e=Array.from(c.keys()).join(`, `);return ux(()=>new dv(`Cannot send 'RUN_FINISHED' while steps are still active: ${e}`))}if(r.size>0){let e=Array.from(r.keys()).join(`, `);return ux(()=>new dv(`Cannot send 'RUN_FINISHED' while text messages are still active: ${e}`))}if(i.size>0){let e=Array.from(i.keys()).join(`, `);return ux(()=>new dv(`Cannot send 'RUN_FINISHED' while tool calls are still active: ${e}`))}return a=!0,lx(e);case W.RUN_ERROR:return o=!0,lx(e);case W.CUSTOM:return lx(e);case W.THINKING_TEXT_MESSAGE_START:return l?u?ux(()=>new dv(`Cannot send 'THINKING_TEXT_MESSAGE_START' event: A thinking message is already in progress. Complete it with 'THINKING_TEXT_MESSAGE_END' first.`)):(u=!0,lx(e)):ux(()=>new dv(`Cannot send 'THINKING_TEXT_MESSAGE_START' event: A thinking step is not in progress. Create one with 'THINKING_START' first.`));case W.THINKING_TEXT_MESSAGE_CONTENT:return u?lx(e):ux(()=>new dv(`Cannot send 'THINKING_TEXT_MESSAGE_CONTENT' event: No active thinking message found. Start a message with 'THINKING_TEXT_MESSAGE_START' first.`));case W.THINKING_TEXT_MESSAGE_END:return u?(u=!1,lx(e)):ux(()=>new dv(`Cannot send 'THINKING_TEXT_MESSAGE_END' event: No active thinking message found. A 'THINKING_TEXT_MESSAGE_START' event must be sent first.`));case W.THINKING_START:return l?ux(()=>new dv(`Cannot send 'THINKING_START' event: A thinking step is already in progress. End it with 'THINKING_END' first.`)):(l=!0,lx(e));case W.THINKING_END:return l?(l=!1,lx(e)):ux(()=>new dv(`Cannot send 'THINKING_END' event: No active thinking step found. A 'THINKING_START' event must be sent first.`));default:return lx(e)}}))},kT=function(e){return e.HEADERS=`headers`,e.DATA=`data`,e}({}),AT=e=>_x(()=>cx(e())).pipe(Sx(e=>{if(!e.ok){let t=e.headers.get(`content-type`)||``;return cx(e.text()).pipe(hx(n=>{let r=n;if(t.includes(`application/json`))try{r=JSON.parse(n)}catch{}let i=Error(`HTTP ${e.status}: ${typeof r==`string`?r:JSON.stringify(r)}`);return i.status=e.status,i.payload=r,ux(()=>i)}))}let t={type:kT.HEADERS,status:e.status,headers:e.headers},n=e.body?.getReader();return n?new _b(e=>(e.next(t),(async()=>{try{for(;;){let{done:t,value:r}=await n.read();if(t)break;let i={type:kT.DATA,data:r};e.next(i)}e.complete()}catch(t){e.error(t)}})(),()=>{n.cancel().catch(e=>{if(e?.name!==`AbortError`)throw e})})):ux(()=>Error(`Failed to getReader() from response`))})),jT=(e,t)=>{let n=CT(t),r=new Eb,i=new TextDecoder(`utf-8`,{fatal:!1}),a=``;e.subscribe({next:e=>{if(e.type!==kT.HEADERS&&e.type===kT.DATA&&e.data){let t=i.decode(e.data,{stream:!0});a+=t;let n=a.split(/\n\n/);a=n.pop()||``;for(let e of n)o(e)}},error:e=>r.error(e),complete:()=>{a&&(a+=i.decode(),o(a)),r.complete()}});function o(e){let t=e.split(` -`),i=[];for(let e of t)e.startsWith(`data:`)&&i.push(e.slice(5).replace(/^ /,``));if(i.length>0)try{let e=i.join(` -`),t=JSON.parse(e);n?.event(`SSE`,`Event received:`,t,{type:t.type}),r.next(t)}catch(e){r.error(e)}}return r.asObservable()},MT=e=>{let t=new Eb,n=new Uint8Array;e.subscribe({next:e=>{if(e.type!==kT.HEADERS&&e.type===kT.DATA&&e.data){let t=new Uint8Array(n.length+e.data.length);t.set(n,0),t.set(e.data,n.length),n=t,r()}},error:e=>t.error(e),complete:()=>{if(n.length>0)try{r()}catch{console.warn(`Incomplete or invalid protocol buffer data at stream end`)}t.complete()}});function r(){for(;n.length>=4;){let e=4+new DataView(n.buffer,n.byteOffset,4).getUint32(0,!1);if(n.length{let n=CT(t),r=new Eb,i=new kb,a=!1;return e.subscribe({next:e=>{if(i.next(e),e.type===kT.HEADERS&&!a){a=!0;let t=e.headers.get(`content-type`);n?.lifecycle(`HTTP`,`Stream format detected:`,{contentType:t,parser:t===`application/vnd.ag-ui.event+proto`?`protobuf`:`sse`}),t===`application/vnd.ag-ui.event+proto`?MT(i).subscribe({next:e=>r.next(e),error:e=>r.error(e),complete:()=>r.complete()}):jT(i,n).subscribe({next:e=>{try{let t=ny.parse(e);n?.event(`HTTP`,`Event validated:`,t,{type:t.type,valid:!0}),r.next(t)}catch(t){n?.event(`HTTP`,`Event invalid:`,{json:e,error:String(t)}),r.error(t)}},error:e=>{if(e?.name===`AbortError`){r.next({type:W.RUN_ERROR,message:e.message||`Request aborted`,code:`abort`,rawEvent:e}),r.complete();return}return r.error(e)},complete:()=>r.complete()})}else a||r.error(Error(`No headers event received before data events`))},error:e=>{i.error(e),r.error(e)},complete:()=>{i.complete()}}),r.asObservable()},PT=sT([`TextMessageStart`,`TextMessageContent`,`TextMessageEnd`,`ActionExecutionStart`,`ActionExecutionArgs`,`ActionExecutionEnd`,`ActionExecutionResult`,`AgentStateMessage`,`MetaEvent`,`RunStarted`,`RunFinished`,`RunError`,`NodeStarted`,`NodeFinished`]),FT=sT([`LangGraphInterruptEvent`,`PredictState`,`Exit`]);aT(`type`,[iT({type:oT(PT.enum.TextMessageStart),messageId:tT(),parentMessageId:tT().optional(),role:tT().optional()}),iT({type:oT(PT.enum.TextMessageContent),messageId:tT(),content:tT()}),iT({type:oT(PT.enum.TextMessageEnd),messageId:tT()}),iT({type:oT(PT.enum.ActionExecutionStart),actionExecutionId:tT(),actionName:tT(),parentMessageId:tT().optional()}),iT({type:oT(PT.enum.ActionExecutionArgs),actionExecutionId:tT(),args:tT()}),iT({type:oT(PT.enum.ActionExecutionEnd),actionExecutionId:tT()}),iT({type:oT(PT.enum.ActionExecutionResult),actionName:tT(),actionExecutionId:tT(),result:tT()}),iT({type:oT(PT.enum.AgentStateMessage),threadId:tT(),agentName:tT(),nodeName:tT(),runId:tT(),active:nT(),role:tT(),state:tT(),running:nT()}),iT({type:oT(PT.enum.MetaEvent),name:FT,value:rT()}),iT({type:oT(PT.enum.RunError),message:tT(),code:tT().optional()})]),iT({id:tT(),role:tT(),content:tT(),parentMessageId:tT().optional()}),iT({id:tT(),name:tT(),arguments:rT(),parentMessageId:tT().optional()}),iT({id:tT(),result:rT(),actionExecutionId:tT(),actionName:tT()});var IT=e=>{if(typeof e==`string`)return e;if(!Array.isArray(e))return;let t=e.filter(e=>e.type===`text`).map(e=>e.text).filter(e=>e.length>0);if(t.length!==0)return t.join(` -`)},LT=(e,t,n)=>r=>{let i={},a=!0,o=!0,s=``,c=null,l=null,u=[],d={},f=e=>{typeof e==`object`&&e&&(`messages`in e&&delete e.messages,i=e)};return r.pipe(hx(r=>{switch(r.type){case W.TEXT_MESSAGE_START:{let e=r;return[{type:PT.enum.TextMessageStart,messageId:e.messageId,role:e.role}]}case W.TEXT_MESSAGE_CONTENT:{let e=r;return[{type:PT.enum.TextMessageContent,messageId:e.messageId,content:e.delta}]}case W.TEXT_MESSAGE_END:{let e=r;return[{type:PT.enum.TextMessageEnd,messageId:e.messageId}]}case W.TOOL_CALL_START:{let e=r;return u.push({id:e.toolCallId,type:`function`,function:{name:e.toolCallName,arguments:``}}),o=!0,d[e.toolCallId]=e.toolCallName,[{type:PT.enum.ActionExecutionStart,actionExecutionId:e.toolCallId,actionName:e.toolCallName,parentMessageId:e.parentMessageId}]}case W.TOOL_CALL_ARGS:{let c=r,d=u.find(e=>e.id===c.toolCallId);if(!d)return console.warn(`TOOL_CALL_ARGS: No tool call found with ID '${c.toolCallId}'`),[];d.function.arguments+=c.delta;let p=!1;if(l){let e=l.find(e=>e.tool==d.function.name);if(e)try{let t=JSON.parse(Ex(d.function.arguments));e.tool_argument&&e.tool_argument in t?(f({...i,[e.state_key]:t[e.tool_argument]}),p=!0):e.tool_argument||(f({...i,[e.state_key]:t}),p=!0)}catch{}}return[{type:PT.enum.ActionExecutionArgs,actionExecutionId:c.toolCallId,args:c.delta},...p?[{type:PT.enum.AgentStateMessage,threadId:e,agentName:n,nodeName:s,runId:t,running:a,role:`assistant`,state:JSON.stringify(i),active:o}]:[]]}case W.TOOL_CALL_END:{let e=r;return[{type:PT.enum.ActionExecutionEnd,actionExecutionId:e.toolCallId}]}case W.TOOL_CALL_RESULT:{let e=r;return[{type:PT.enum.ActionExecutionResult,actionExecutionId:e.toolCallId,result:e.content,actionName:d[e.toolCallId]||`unknown`}]}case W.RAW:return[];case W.CUSTOM:{let e=r;switch(e.name){case`Exit`:a=!1;break;case`PredictState`:l=e.value}return[{type:PT.enum.MetaEvent,name:e.name,value:e.value}]}case W.STATE_SNAPSHOT:return f(r.snapshot),[{type:PT.enum.AgentStateMessage,threadId:e,agentName:n,nodeName:s,runId:t,running:a,role:`assistant`,state:JSON.stringify(i),active:o}];case W.STATE_DELTA:{let c=r,l=Ry.applyPatch(i,c.delta,!0,!1);return l?(f(l.newDocument),[{type:PT.enum.AgentStateMessage,threadId:e,agentName:n,nodeName:s,runId:t,running:a,role:`assistant`,state:JSON.stringify(i),active:o}]):[]}case W.MESSAGES_SNAPSHOT:return c=r.messages,[{type:PT.enum.AgentStateMessage,threadId:e,agentName:n,nodeName:s,runId:t,running:a,role:`assistant`,state:JSON.stringify({...i,...c?{messages:c}:{}}),active:!0}];case W.RUN_STARTED:return[];case W.RUN_FINISHED:return c&&(i.messages=c),Object.keys(i).length===0?[]:[{type:PT.enum.AgentStateMessage,threadId:e,agentName:n,nodeName:s,runId:t,running:a,role:`assistant`,state:JSON.stringify({...i,...c?{messages:RT(c)}:{}}),active:!1}];case W.RUN_ERROR:{let e=r;return[{type:PT.enum.RunError,message:e.message,code:e.code}]}case W.STEP_STARTED:return s=r.stepName,u=[],l=null,[{type:PT.enum.AgentStateMessage,threadId:e,agentName:n,nodeName:s,runId:t,running:a,role:`assistant`,state:JSON.stringify(i),active:!0}];case W.STEP_FINISHED:return u=[],l=null,[{type:PT.enum.AgentStateMessage,threadId:e,agentName:n,nodeName:s,runId:t,running:a,role:`assistant`,state:JSON.stringify(i),active:!1}];default:return[]}}))};function RT(e){let t=[];for(let n of e)if(n.role===`assistant`||n.role===`user`||n.role===`system`){let e=IT(n.content);if(e){let r={id:n.id,role:n.role,content:e};t.push(r)}if(n.role===`assistant`&&n.toolCalls&&n.toolCalls.length>0)for(let e of n.toolCalls){let r={id:e.id,name:e.function.name,arguments:JSON.parse(e.function.arguments),parentMessageId:n.id};t.push(r)}}else if(n.role===`tool`){let r=`unknown`;for(let t of e)if(t.role===`assistant`&&t.toolCalls?.length){for(let e of t.toolCalls)if(e.id===n.toolCallId){r=e.function.name;break}}let i={id:n.id,result:n.content,actionExecutionId:n.toolCallId,actionName:r};t.push(i)}return t}var zT=e=>t=>{let n=CT(e),r,i,a,o,s=()=>{if(!r||o!==`text`)throw Error(`No text message to close`);let e={type:W.TEXT_MESSAGE_END,messageId:r.messageId};return o=void 0,r=void 0,n?.event(`TRANSFORM`,`TEXT_MESSAGE_END`,e,{messageId:e.messageId}),e},c=()=>{if(!i||o!==`tool`)throw Error(`No tool call to close`);let e={type:W.TOOL_CALL_END,toolCallId:i.toolCallId};return o=void 0,i=void 0,n?.event(`TRANSFORM`,`TOOL_CALL_END`,e,{toolCallId:e.toolCallId}),e},l=()=>{if(!a||o!==`reasoning`)throw Error(`No reasoning message to close`);let e={type:W.REASONING_MESSAGE_END,messageId:a.messageId};return o=void 0,a=void 0,n?.event(`TRANSFORM`,`REASONING_MESSAGE_END`,e,{messageId:e.messageId}),e},u=()=>o===`text`?[s()]:o===`tool`?[c()]:o===`reasoning`?[l()]:[];return t.pipe(hx(e=>{switch(e.type){case W.TEXT_MESSAGE_START:case W.TEXT_MESSAGE_CONTENT:case W.TEXT_MESSAGE_END:case W.TOOL_CALL_START:case W.TOOL_CALL_ARGS:case W.TOOL_CALL_END:case W.TOOL_CALL_RESULT:case W.STATE_SNAPSHOT:case W.STATE_DELTA:case W.MESSAGES_SNAPSHOT:case W.CUSTOM:case W.RUN_STARTED:case W.RUN_FINISHED:case W.RUN_ERROR:case W.STEP_STARTED:case W.STEP_FINISHED:case W.THINKING_START:case W.THINKING_END:case W.THINKING_TEXT_MESSAGE_START:case W.THINKING_TEXT_MESSAGE_CONTENT:case W.THINKING_TEXT_MESSAGE_END:case W.REASONING_START:case W.REASONING_MESSAGE_START:case W.REASONING_MESSAGE_CONTENT:case W.REASONING_MESSAGE_END:case W.REASONING_END:return[...u(),e];case W.RAW:case W.ACTIVITY_SNAPSHOT:case W.ACTIVITY_DELTA:case W.REASONING_ENCRYPTED_VALUE:return[e];case W.TEXT_MESSAGE_CHUNK:let t=e,s=[];if((o!==`text`||t.messageId!==void 0&&t.messageId!==r?.messageId)&&s.push(...u()),o!==`text`){if(t.messageId===void 0)throw Error(`First TEXT_MESSAGE_CHUNK must have a messageId`);r={messageId:t.messageId,name:t.name},o=`text`;let e={type:W.TEXT_MESSAGE_START,messageId:t.messageId,role:t.role||`assistant`,...t.name!==void 0&&{name:t.name}};s.push(e),n?.event(`TRANSFORM`,`TEXT_MESSAGE_START`,e,{messageId:t.messageId})}if(t.delta!==void 0){let e={type:W.TEXT_MESSAGE_CONTENT,messageId:r.messageId,delta:t.delta};s.push(e),n?.event(`TRANSFORM`,`TEXT_MESSAGE_CONTENT`,e,{messageId:r.messageId})}return s;case W.TOOL_CALL_CHUNK:let c=e,l=[];if((o!==`tool`||c.toolCallId!==void 0&&c.toolCallId!==i?.toolCallId)&&l.push(...u()),o!==`tool`){if(c.toolCallId===void 0)throw Error(`First TOOL_CALL_CHUNK must have a toolCallId`);if(c.toolCallName===void 0)throw Error(`First TOOL_CALL_CHUNK must have a toolCallName`);i={toolCallId:c.toolCallId,toolCallName:c.toolCallName,parentMessageId:c.parentMessageId},o=`tool`;let e={type:W.TOOL_CALL_START,toolCallId:c.toolCallId,toolCallName:c.toolCallName,parentMessageId:c.parentMessageId};l.push(e),n?.event(`TRANSFORM`,`TOOL_CALL_START`,e,{toolCallId:c.toolCallId,toolCallName:c.toolCallName})}if(c.delta!==void 0){let e={type:W.TOOL_CALL_ARGS,toolCallId:i.toolCallId,delta:c.delta};l.push(e),n?.event(`TRANSFORM`,`TOOL_CALL_ARGS`,e,{toolCallId:i.toolCallId})}return l;case W.REASONING_MESSAGE_CHUNK:let d=e,f=[];if((o!==`reasoning`||d.messageId&&d.messageId!==a?.messageId)&&f.push(...u()),o!==`reasoning`){if(d.messageId===void 0)throw Error(`First REASONING_MESSAGE_CHUNK must have a messageId`);a={messageId:d.messageId},o=`reasoning`;let e={type:W.REASONING_MESSAGE_START,messageId:d.messageId};f.push(e),n?.event(`TRANSFORM`,`REASONING_MESSAGE_START`,e,{messageId:d.messageId})}if(d.delta!==void 0){let e={type:W.REASONING_MESSAGE_CONTENT,messageId:a.messageId,delta:d.delta};f.push(e),n?.event(`TRANSFORM`,`REASONING_MESSAGE_CONTENT`,e,{messageId:a.messageId})}return f}return e.type,[]}),xx(()=>{u()}))};function BT(e,t=new Date){return e.expiresAt!==void 0&&new Date(e.expiresAt)<=t}var VT=class{runNext(e,t){return t.run(e).pipe(zT(!1))}runNextWithState(e,t){let n=gT(e.messages||[]),r=gT(e.state||{}),i=new kb;return DT(e,i,t,[]).subscribe(e=>{e.messages!==void 0&&(n=e.messages),e.state!==void 0&&(r=e.state)}),this.runNext(e,t).pipe(yx(async e=>(i.next(e),await new Promise(e=>setTimeout(e,0)),{event:e,messages:gT(n),state:gT(r)})))}},HT=class extends VT{constructor(e){super(),this.fn=e}run(e,t){return this.fn(e,t)}};function UT(e){let t=e.content;if(Array.isArray(t)){let n=t.filter(e=>typeof e==`object`&&!!e&&`type`in e&&e.type===`text`&&typeof e.text==`string`).map(e=>e.text).join(``);return{...e,content:n}}return typeof t==`string`?e:{...e,content:``}}var WT=class extends VT{run(e,t){let{parentRunId:n,...r}=e,i={...r,messages:r.messages.map(UT)};return this.runNext(i,t)}},GT=`THINKING_START`,KT=`THINKING_END`,qT=`THINKING_TEXT_MESSAGE_START`,JT=`THINKING_TEXT_MESSAGE_CONTENT`,YT=`THINKING_TEXT_MESSAGE_END`,XT=class extends VT{constructor(...e){super(...e),this.currentReasoningId=null,this.currentMessageId=null}warnAboutTransformation(e,t){typeof process<`u`&&{}.SUPPRESS_TRANSFORMATION_WARNINGS||console.warn(`AG-UI is converting ${e} to ${t}. To remove this warning, upgrade your AG-UI integration package (e.g. @ag-ui/langgraph). To surpress it, set SUPPRESS_TRANSFORMATION_WARNINGS=true in your .env file.`)}run(e,t){return this.currentReasoningId=null,this.currentMessageId=null,this.runNext(e,t).pipe(px(e=>this.transformEvent(e)))}transformEvent(e){switch(e.type){case GT:{this.currentReasoningId=_T();let{title:t,...n}=e;return this.warnAboutTransformation(GT,W.REASONING_START),{...n,type:W.REASONING_START,messageId:this.currentReasoningId}}case qT:return this.currentMessageId=_T(),this.warnAboutTransformation(qT,W.REASONING_MESSAGE_START),{...e,type:W.REASONING_MESSAGE_START,messageId:this.currentMessageId,role:`assistant`};case JT:{let{delta:t,...n}=e;return this.warnAboutTransformation(JT,W.REASONING_MESSAGE_CONTENT),{...n,type:W.REASONING_MESSAGE_CONTENT,messageId:this.currentMessageId??_T(),delta:t}}case YT:{let t=this.currentMessageId??_T();return this.warnAboutTransformation(YT,W.REASONING_MESSAGE_END),{...e,type:W.REASONING_MESSAGE_END,messageId:t}}case KT:{let t=this.currentReasoningId??_T();return this.warnAboutTransformation(KT,W.REASONING_END),{...e,type:W.REASONING_END,messageId:t}}default:return e}}};function ZT(e){return e.startsWith(`image/`)?`image`:e.startsWith(`audio/`)?`audio`:e.startsWith(`video/`)?`video`:`document`}function QT(e){return typeof e==`object`&&!!e&&`type`in e&&e.type===`binary`&&`mimeType`in e&&typeof e.mimeType==`string`}function $T(e){let t=ZT(e.mimeType);return e.data?{type:t,source:{type:`data`,value:e.data,mimeType:e.mimeType},...e.filename?{metadata:{filename:e.filename}}:{}}:e.url?{type:t,source:{type:`url`,value:e.url,mimeType:e.mimeType},...e.filename?{metadata:{filename:e.filename}}:{}}:e}function eE(e){let t=e.content;if(!Array.isArray(t))return e;let n=t.map(e=>QT(e)?$T(e):e);return{...e,content:n}}var tE=class extends VT{run(e,t){let n={...e,messages:e.messages.map(eE)};return this.runNext(n,t)}},nE=`0.0.57`,rE=class{get maxVersion(){return nE}get debug(){return this._debug}set debug(e){this._debug=ST(e),this._debugLogger=TT(this._debug)}get debugLogger(){return this._debugLogger}set debugLogger(e){this._debugLogger=typeof e==`boolean`?e?TT(ST(!0)):void 0:e}constructor({agentId:e,description:t,threadId:n,initialMessages:r,initialState:i,debug:a}={}){this.subscribers=[],this.isRunning=!1,this.pendingInterrupts=[],this.middlewares=[],this.agentId=e,this.description=t??``,this.threadId=n??ng(),this.messages=gT(r??[]),this.state=gT(i??{}),this._debug=ST(a),this._debugLogger=TT(this._debug),hT(this.maxVersion,`0.0.39`)<=0&&this.middlewares.unshift(new WT),hT(this.maxVersion,`0.0.45`)<=0&&this.middlewares.unshift(new XT),hT(this.maxVersion,`0.0.47`)<=0&&this.middlewares.unshift(new tE)}subscribe(e){return this.subscribers.push(e),{unsubscribe:()=>{this.subscribers=this.subscribers.filter(t=>t!==e)}}}use(...e){let t=e.map(e=>typeof e==`function`?new HT(e):e);return this.middlewares.push(...t),this}async runAgent(e,t){try{this.isRunning=!0,this.agentId=this.agentId??ng();let n=this.prepareRunAgentInput(e);this.debugLogger?.lifecycle(`LIFECYCLE`,`Run started:`,{agentId:this.agentId,threadId:this.threadId});let r,i=new Set(this.messages.map(e=>e.id)),a=[{onRunFinishedEvent:e=>{e.outcome===`success`&&(r=e.result)}},...this.subscribers,t??{}];await this.onInitialize(n,a),this.activeRunDetach$=new Eb;let o;this.activeRunCompletionPromise=new Promise(e=>{o=e}),await fx(hb(()=>this.middlewares.length===0?this.run(n):this.middlewares.reduceRight((e,t)=>({run:n=>t.run(n,e),get messages(){return e.messages},get state(){return e.state}}),this).run(n),zT(this.debugLogger),OT(this.debugLogger),e=>e.pipe(Cx(this.activeRunDetach$)),e=>this.apply(n,e,a),e=>this.processApplyEvents(n,e,a),vx(e=>(this.debugLogger?.lifecycle(`LIFECYCLE`,`Run errored:`,{agentId:this.agentId,error:e instanceof Error?e.message:String(e)}),this.isRunning=!1,this.onError(n,e,a))),xx(()=>{this.debugLogger?.lifecycle(`LIFECYCLE`,`Run finished:`,{agentId:this.agentId,threadId:this.threadId}),this.isRunning=!1,this.onFinalize(n,a),o?.(),o=void 0,this.activeRunCompletionPromise=void 0,this.activeRunDetach$=void 0}))(lx(null)));let s=gT(this.messages).filter(e=>!i.has(e.id));return{result:r,newMessages:s}}finally{this.isRunning=!1}}connect(e){throw new fv}async connectAgent(e,t){try{this.isRunning=!0,this.agentId=this.agentId??ng();let n=this.prepareRunAgentInput(e),r,i=new Set(this.messages.map(e=>e.id)),a=[{onRunFinishedEvent:e=>{e.outcome===`success`&&(r=e.result)}},...this.subscribers,t??{}];await this.onInitialize(n,a),this.activeRunDetach$=new Eb;let o;this.activeRunCompletionPromise=new Promise(e=>{o=e}),await fx(hb(()=>_x(()=>this.connect(n)),zT(this.debugLogger),OT(this.debugLogger),e=>e.pipe(Cx(this.activeRunDetach$)),e=>this.apply(n,e,a),e=>this.processApplyEvents(n,e,a),vx(e=>(this.isRunning=!1,e instanceof fv?Ab:this.onError(n,e,a))),xx(()=>{this.isRunning=!1,this.onFinalize(n,a),o?.(),o=void 0,this.activeRunCompletionPromise=void 0,this.activeRunDetach$=void 0}))(lx(null)),{defaultValue:void 0});let s=gT(this.messages).filter(e=>!i.has(e.id));return{result:r,newMessages:s}}finally{this.isRunning=!1}}abortRun(){}async detachActiveRun(){if(!this.activeRunDetach$)return;let e=this.activeRunCompletionPromise??Promise.resolve();this.activeRunDetach$.next(),this.activeRunDetach$?.complete(),await e}apply(e,t,n){return DT(e,t,this,n,this.debugLogger)}processApplyEvents(e,t,n){return t.pipe(wx(t=>{t.messages&&(this.messages=t.messages,n.forEach(t=>{t.onMessagesChanged?.({messages:this.messages,state:this.state,agent:this,input:e})})),t.state&&(this.state=t.state,n.forEach(t=>{t.onStateChanged?.({state:this.state,messages:this.messages,agent:this,input:e})}))}))}prepareRunAgentInput(e){let t=gT(this.messages).filter(e=>e.role!==`activity`);return{threadId:this.threadId,runId:e?.runId||ng(),tools:gT(e?.tools??[]),context:gT(e?.context??[]),forwardedProps:gT(e?.forwardedProps??{}),state:gT(this.state),messages:t,...e?.resume===void 0?{}:{resume:gT(e.resume)}}}async onInitialize(e,t){if(this.pendingInterrupts.length>0){let t=new Set((e.resume??[]).map(e=>e.interruptId)),n=this.pendingInterrupts.map(e=>e.id).filter(e=>!t.has(e));if(n.length>0)throw new dv(`Thread has ${n.length} pending interrupt(s) not addressed by resume: ${n.join(`, `)}`);for(let e of this.pendingInterrupts)if(BT(e))throw new dv(`Interrupt ${e.id} expired at ${e.expiresAt}`)}let n=await xT(t,this.messages,this.state,(t,n,r)=>t.onRunInitialized?.({messages:n,state:r,agent:this,input:e}));(n.messages!==void 0||n.state!==void 0)&&(n.messages&&(this.messages=n.messages,e.messages=n.messages,t.forEach(t=>{t.onMessagesChanged?.({messages:this.messages,state:this.state,agent:this,input:e})})),n.state&&(this.state=n.state,e.state=n.state,t.forEach(t=>{t.onStateChanged?.({state:this.state,messages:this.messages,agent:this,input:e})})))}onError(e,t,n){return cx(xT(n,this.messages,this.state,(n,r,i)=>n.onRunFailed?.({error:t,messages:r,state:i,agent:this,input:e}))).pipe(px(r=>{let i=r;if((i.messages!==void 0||i.state!==void 0)&&(i.messages!==void 0&&(this.messages=i.messages,n.forEach(t=>{t.onMessagesChanged?.({messages:this.messages,state:this.state,agent:this,input:e})})),i.state!==void 0&&(this.state=i.state,n.forEach(t=>{t.onStateChanged?.({state:this.state,messages:this.messages,agent:this,input:e})}))),i.stopPropagation!==!0){let e=String(t);if(t.name!==`AbortError`&&t.message!==`Fetch is aborted`&&t.message!==`signal is aborted without reason`&&t.message!==`component unmounted`&&e!==`component unmounted`)throw console.error(`Agent execution failed:`,t),t}return{}}))}async onFinalize(e,t){let n=await xT(t,this.messages,this.state,(t,n,r)=>t.onRunFinalized?.({messages:n,state:r,agent:this,input:e}));(n.messages!==void 0||n.state!==void 0)&&(n.messages!==void 0&&(this.messages=n.messages,t.forEach(t=>{t.onMessagesChanged?.({messages:this.messages,state:this.state,agent:this,input:e})})),n.state!==void 0&&(this.state=n.state,t.forEach(t=>{t.onStateChanged?.({state:this.state,messages:this.messages,agent:this,input:e})})))}clone(){let e=Object.create(Object.getPrototypeOf(this));return e.agentId=this.agentId,e.description=this.description,e.threadId=this.threadId,e.messages=gT(this.messages),e.state=gT(this.state),e._debug=this._debug,e._debugLogger=this._debugLogger,e.isRunning=this.isRunning,e.subscribers=[...this.subscribers],e.middlewares=[...this.middlewares],e.pendingInterrupts=gT(this.pendingInterrupts),e}addMessage(e){this.messages.push(e),(async()=>{for(let t of this.subscribers)await t.onNewMessage?.({message:e,messages:this.messages,state:this.state,agent:this});if(e.role===`assistant`&&e.toolCalls)for(let t of e.toolCalls)for(let e of this.subscribers)await e.onNewToolCall?.({toolCall:t,messages:this.messages,state:this.state,agent:this});for(let e of this.subscribers)await e.onMessagesChanged?.({messages:this.messages,state:this.state,agent:this})})()}addMessages(e){this.messages.push(...e),(async()=>{for(let t of e){for(let e of this.subscribers)await e.onNewMessage?.({message:t,messages:this.messages,state:this.state,agent:this});if(t.role===`assistant`&&t.toolCalls)for(let e of t.toolCalls)for(let t of this.subscribers)await t.onNewToolCall?.({toolCall:e,messages:this.messages,state:this.state,agent:this})}for(let e of this.subscribers)await e.onMessagesChanged?.({messages:this.messages,state:this.state,agent:this})})()}setMessages(e){this.messages=gT(e),(async()=>{for(let e of this.subscribers)await e.onMessagesChanged?.({messages:this.messages,state:this.state,agent:this})})()}setState(e){this.state=gT(e),(async()=>{for(let e of this.subscribers)await e.onStateChanged?.({messages:this.messages,state:this.state,agent:this})})()}legacy_to_be_removed_runAgentBridged(e){this.agentId=this.agentId??ng();let t=this.prepareRunAgentInput(e);return(this.middlewares.length===0?this.run(t):this.middlewares.reduceRight((e,t)=>({run:n=>t.run(n,e),get messages(){return e.messages},get state(){return e.state}}),this).run(t)).pipe(zT(this.debugLogger),OT(this.debugLogger),LT(this.threadId,t.runId,this.agentId),e=>e.pipe(px(e=>(this.debugLogger?.event(`LEGACY`,`Event:`,e,{type:e.type}),e))))}},iE=class extends rE{requestInit(e){return{method:`POST`,headers:{...this.headers,"Content-Type":`application/json`,Accept:`text/event-stream`},body:JSON.stringify(e),signal:this.abortController.signal}}runAgent(e,t){return this.abortController=e?.abortController??new AbortController,super.runAgent(e,t)}abortRun(){this.abortController.abort(),super.abortRun()}constructor(e){super(e),this.abortController=new AbortController,this.url=e.url,this.headers=gT(e.headers??{}),this.fetch=e.fetch??((e,t)=>fetch(e,t))}run(e){return NT(AT(()=>this.fetch(this.url,this.requestInit(e))),this.debugLogger)}clone(){let e=super.clone();e.url=this.url,e.headers=gT(this.headers??{}),e.fetch=this.fetch;let t=new AbortController,n=this.abortController.signal;return n.aborted&&t.abort(n.reason),e.abortController=t,e}},aE=new Map([[`bold`,P.createElement(P.Fragment,null,P.createElement(`path`,{d:`M204,64V168a12,12,0,0,1-24,0V93L72.49,200.49a12,12,0,0,1-17-17L163,76H88a12,12,0,0,1,0-24H192A12,12,0,0,1,204,64Z`}))],[`duotone`,P.createElement(P.Fragment,null,P.createElement(`path`,{d:`M192,64V168L88,64Z`,opacity:`0.2`}),P.createElement(`path`,{d:`M192,56H88a8,8,0,0,0-5.66,13.66L128.69,116,58.34,186.34a8,8,0,0,0,11.32,11.32L140,127.31l46.34,46.35A8,8,0,0,0,200,168V64A8,8,0,0,0,192,56Zm-8,92.69-38.34-38.34h0L107.31,72H184Z`}))],[`fill`,P.createElement(P.Fragment,null,P.createElement(`path`,{d:`M200,64V168a8,8,0,0,1-13.66,5.66L140,127.31,69.66,197.66a8,8,0,0,1-11.32-11.32L128.69,116,82.34,69.66A8,8,0,0,1,88,56H192A8,8,0,0,1,200,64Z`}))],[`light`,P.createElement(P.Fragment,null,P.createElement(`path`,{d:`M198,64V168a6,6,0,0,1-12,0V78.48L68.24,196.24a6,6,0,0,1-8.48-8.48L177.52,70H88a6,6,0,0,1,0-12H192A6,6,0,0,1,198,64Z`}))],[`regular`,P.createElement(P.Fragment,null,P.createElement(`path`,{d:`M200,64V168a8,8,0,0,1-16,0V83.31L69.66,197.66a8,8,0,0,1-11.32-11.32L172.69,72H88a8,8,0,0,1,0-16H192A8,8,0,0,1,200,64Z`}))],[`thin`,P.createElement(P.Fragment,null,P.createElement(`path`,{d:`M196,64V168a4,4,0,0,1-8,0V73.66L66.83,194.83a4,4,0,0,1-5.66-5.66L182.34,68H88a4,4,0,0,1,0-8H192A4,4,0,0,1,196,64Z`}))]]),oE=new Map([[`bold`,P.createElement(P.Fragment,null,P.createElement(`path`,{d:`M172,108a12,12,0,0,1-12,12H96a12,12,0,0,1,0-24h64A12,12,0,0,1,172,108Zm-12,28H96a12,12,0,0,0,0,24h64a12,12,0,0,0,0-24Zm76-8A108,108,0,0,1,78.77,224.15L46.34,235A20,20,0,0,1,21,209.66l10.81-32.43A108,108,0,1,1,236,128Zm-24,0A84,84,0,1,0,55.27,170.06a12,12,0,0,1,1,9.81l-9.93,29.79,29.79-9.93a12.1,12.1,0,0,1,3.8-.62,12,12,0,0,1,6,1.62A84,84,0,0,0,212,128Z`}))],[`duotone`,P.createElement(P.Fragment,null,P.createElement(`path`,{d:`M224,128A96,96,0,0,1,79.93,211.11h0L42.54,223.58a8,8,0,0,1-10.12-10.12l12.47-37.39h0A96,96,0,1,1,224,128Z`,opacity:`0.2`}),P.createElement(`path`,{d:`M128,24A104,104,0,0,0,36.18,176.88L24.83,210.93a16,16,0,0,0,20.24,20.24l34.05-11.35A104,104,0,1,0,128,24Zm0,192a87.87,87.87,0,0,1-44.06-11.81,8,8,0,0,0-4-1.08,7.85,7.85,0,0,0-2.53.42L40,216,52.47,178.6a8,8,0,0,0-.66-6.54A88,88,0,1,1,128,216Zm40-104a8,8,0,0,1-8,8H96a8,8,0,0,1,0-16h64A8,8,0,0,1,168,112Zm0,32a8,8,0,0,1-8,8H96a8,8,0,0,1,0-16h64A8,8,0,0,1,168,144Z`}))],[`fill`,P.createElement(P.Fragment,null,P.createElement(`path`,{d:`M128,24A104,104,0,0,0,36.18,176.88L24.83,210.93a16,16,0,0,0,20.24,20.24l34.05-11.35A104,104,0,1,0,128,24Zm32,128H96a8,8,0,0,1,0-16h64a8,8,0,0,1,0,16Zm0-32H96a8,8,0,0,1,0-16h64a8,8,0,0,1,0,16Z`}))],[`light`,P.createElement(P.Fragment,null,P.createElement(`path`,{d:`M166,112a6,6,0,0,1-6,6H96a6,6,0,0,1,0-12h64A6,6,0,0,1,166,112Zm-6,26H96a6,6,0,0,0,0,12h64a6,6,0,0,0,0-12Zm70-10A102,102,0,0,1,79.31,217.65L44.44,229.27a14,14,0,0,1-17.71-17.71l11.62-34.87A102,102,0,1,1,230,128Zm-12,0A90,90,0,1,0,50.08,173.06a6,6,0,0,1,.5,4.91L38.12,215.35a2,2,0,0,0,2.53,2.53L78,205.42a6.2,6.2,0,0,1,1.9-.31,6.09,6.09,0,0,1,3,.81A90,90,0,0,0,218,128Z`}))],[`regular`,P.createElement(P.Fragment,null,P.createElement(`path`,{d:`M168,112a8,8,0,0,1-8,8H96a8,8,0,0,1,0-16h64A8,8,0,0,1,168,112Zm-8,24H96a8,8,0,0,0,0,16h64a8,8,0,0,0,0-16Zm72-8A104,104,0,0,1,79.12,219.82L45.07,231.17a16,16,0,0,1-20.24-20.24l11.35-34.05A104,104,0,1,1,232,128Zm-16,0A88,88,0,1,0,51.81,172.06a8,8,0,0,1,.66,6.54L40,216,77.4,203.53a7.85,7.85,0,0,1,2.53-.42,8,8,0,0,1,4,1.08A88,88,0,0,0,216,128Z`}))],[`thin`,P.createElement(P.Fragment,null,P.createElement(`path`,{d:`M164,112a4,4,0,0,1-4,4H96a4,4,0,0,1,0-8h64A4,4,0,0,1,164,112Zm-4,28H96a4,4,0,0,0,0,8h64a4,4,0,0,0,0-8Zm68-12A100,100,0,0,1,79.5,215.47l-35.69,11.9a12,12,0,0,1-15.18-15.18l11.9-35.69A100,100,0,1,1,228,128Zm-8,0A92,92,0,1,0,48.35,174.07a4,4,0,0,1,.33,3.27L36.22,214.72a4,4,0,0,0,5.06,5.06l37.38-12.46a3.93,3.93,0,0,1,1.27-.21,4.05,4.05,0,0,1,2,.54A92,92,0,0,0,220,128Z`}))]]),sE=new Map([[`bold`,P.createElement(P.Fragment,null,P.createElement(`path`,{d:`M140,80v41.21l34.17,20.5a12,12,0,1,1-12.34,20.58l-40-24A12,12,0,0,1,116,128V80a12,12,0,0,1,24,0ZM128,28A99.38,99.38,0,0,0,57.24,57.34c-4.69,4.74-9,9.37-13.24,14V64a12,12,0,0,0-24,0v40a12,12,0,0,0,12,12H72a12,12,0,0,0,0-24H57.77C63,86,68.37,80.22,74.26,74.26a76,76,0,1,1,1.58,109,12,12,0,0,0-16.48,17.46A100,100,0,1,0,128,28Z`}))],[`duotone`,P.createElement(P.Fragment,null,P.createElement(`path`,{d:`M216,128a88,88,0,1,1-88-88A88,88,0,0,1,216,128Z`,opacity:`0.2`}),P.createElement(`path`,{d:`M136,80v43.47l36.12,21.67a8,8,0,0,1-8.24,13.72l-40-24A8,8,0,0,1,120,128V80a8,8,0,0,1,16,0Zm-8-48A95.44,95.44,0,0,0,60.08,60.15C52.81,67.51,46.35,74.59,40,82V64a8,8,0,0,0-16,0v40a8,8,0,0,0,8,8H72a8,8,0,0,0,0-16H49c7.15-8.42,14.27-16.35,22.39-24.57a80,80,0,1,1,1.66,114.75,8,8,0,1,0-11,11.64A96,96,0,1,0,128,32Z`}))],[`fill`,P.createElement(P.Fragment,null,P.createElement(`path`,{d:`M224,128A96,96,0,0,1,62.11,197.82a8,8,0,1,1,11-11.64A80,80,0,1,0,71.43,71.43C67.9,75,64.58,78.51,61.35,82L77.66,98.34A8,8,0,0,1,72,112H32a8,8,0,0,1-8-8V64a8,8,0,0,1,13.66-5.66L50,70.7c3.22-3.49,6.54-7,10.06-10.55A96,96,0,0,1,224,128ZM128,72a8,8,0,0,0-8,8v48a8,8,0,0,0,3.88,6.86l40,24a8,8,0,1,0,8.24-13.72L136,123.47V80A8,8,0,0,0,128,72Z`}))],[`light`,P.createElement(P.Fragment,null,P.createElement(`path`,{d:`M134,80v44.6l37.09,22.25a6,6,0,0,1-6.18,10.3l-40-24A6,6,0,0,1,122,128V80a6,6,0,0,1,12,0Zm-6-46A93.4,93.4,0,0,0,61.51,61.56c-8.58,8.68-16,17-23.51,25.8V64a6,6,0,0,0-12,0v40a6,6,0,0,0,6,6H72a6,6,0,0,0,0-12H44.73C52.86,88.29,60.79,79.35,70,70a82,82,0,1,1,1.7,117.62,6,6,0,1,0-8.24,8.72A94,94,0,1,0,128,34Z`}))],[`regular`,P.createElement(P.Fragment,null,P.createElement(`path`,{d:`M136,80v43.47l36.12,21.67a8,8,0,0,1-8.24,13.72l-40-24A8,8,0,0,1,120,128V80a8,8,0,0,1,16,0Zm-8-48A95.44,95.44,0,0,0,60.08,60.15C52.81,67.51,46.35,74.59,40,82V64a8,8,0,0,0-16,0v40a8,8,0,0,0,8,8H72a8,8,0,0,0,0-16H49c7.15-8.42,14.27-16.35,22.39-24.57a80,80,0,1,1,1.66,114.75,8,8,0,1,0-11,11.64A96,96,0,1,0,128,32Z`}))],[`thin`,P.createElement(P.Fragment,null,P.createElement(`path`,{d:`M132,80v45.74l38.06,22.83a4,4,0,0,1-4.12,6.86l-40-24A4,4,0,0,1,124,128V80a4,4,0,0,1,8,0Zm-4-44A91.42,91.42,0,0,0,62.93,63C53.05,73,44.66,82.47,36,92.86V64a4,4,0,0,0-8,0v40a4,4,0,0,0,4,4H72a4,4,0,0,0,0-8H40.47C49.61,89,58.3,79,68.6,68.6a84,84,0,1,1,1.75,120.49,4,4,0,1,0-5.5,5.82A92,92,0,1,0,128,36Z`}))]]),cE=new Map([[`bold`,P.createElement(P.Fragment,null,P.createElement(`path`,{d:`M144,128a16,16,0,1,1-16-16A16,16,0,0,1,144,128ZM60,112a16,16,0,1,0,16,16A16,16,0,0,0,60,112Zm136,0a16,16,0,1,0,16,16A16,16,0,0,0,196,112Z`}))],[`duotone`,P.createElement(P.Fragment,null,P.createElement(`path`,{d:`M240,96v64a16,16,0,0,1-16,16H32a16,16,0,0,1-16-16V96A16,16,0,0,1,32,80H224A16,16,0,0,1,240,96Z`,opacity:`0.2`}),P.createElement(`path`,{d:`M140,128a12,12,0,1,1-12-12A12,12,0,0,1,140,128Zm56-12a12,12,0,1,0,12,12A12,12,0,0,0,196,116ZM60,116a12,12,0,1,0,12,12A12,12,0,0,0,60,116Z`}))],[`fill`,P.createElement(P.Fragment,null,P.createElement(`path`,{d:`M224,80H32A16,16,0,0,0,16,96v64a16,16,0,0,0,16,16H224a16,16,0,0,0,16-16V96A16,16,0,0,0,224,80ZM60,140a12,12,0,1,1,12-12A12,12,0,0,1,60,140Zm68,0a12,12,0,1,1,12-12A12,12,0,0,1,128,140Zm68,0a12,12,0,1,1,12-12A12,12,0,0,1,196,140Z`}))],[`light`,P.createElement(P.Fragment,null,P.createElement(`path`,{d:`M138,128a10,10,0,1,1-10-10A10,10,0,0,1,138,128ZM60,118a10,10,0,1,0,10,10A10,10,0,0,0,60,118Zm136,0a10,10,0,1,0,10,10A10,10,0,0,0,196,118Z`}))],[`regular`,P.createElement(P.Fragment,null,P.createElement(`path`,{d:`M140,128a12,12,0,1,1-12-12A12,12,0,0,1,140,128Zm56-12a12,12,0,1,0,12,12A12,12,0,0,0,196,116ZM60,116a12,12,0,1,0,12,12A12,12,0,0,0,60,116Z`}))],[`thin`,P.createElement(P.Fragment,null,P.createElement(`path`,{d:`M136,128a8,8,0,1,1-8-8A8,8,0,0,1,136,128Zm-76-8a8,8,0,1,0,8,8A8,8,0,0,0,60,120Zm136,0a8,8,0,1,0,8,8A8,8,0,0,0,196,120Z`}))]]),lE=new Map([[`bold`,P.createElement(P.Fragment,null,P.createElement(`path`,{d:`M212.62,75.17A63.7,63.7,0,0,0,206.39,26,12,12,0,0,0,196,20a63.71,63.71,0,0,0-50,24H126A63.71,63.71,0,0,0,76,20a12,12,0,0,0-10.39,6,63.7,63.7,0,0,0-6.23,49.17A61.5,61.5,0,0,0,52,104v8a60.1,60.1,0,0,0,45.76,58.28A43.66,43.66,0,0,0,92,192v4H76a20,20,0,0,1-20-20,44.05,44.05,0,0,0-44-44,12,12,0,0,0,0,24,20,20,0,0,1,20,20,44.05,44.05,0,0,0,44,44H92v12a12,12,0,0,0,24,0V192a20,20,0,0,1,40,0v40a12,12,0,0,0,24,0V192a43.66,43.66,0,0,0-5.76-21.72A60.1,60.1,0,0,0,220,112v-8A61.5,61.5,0,0,0,212.62,75.17ZM196,112a36,36,0,0,1-36,36H112a36,36,0,0,1-36-36v-8a37.87,37.87,0,0,1,6.13-20.12,11.65,11.65,0,0,0,1.58-11.49,39.9,39.9,0,0,1-.4-27.72,39.87,39.87,0,0,1,26.41,17.8A12,12,0,0,0,119.82,68h32.35a12,12,0,0,0,10.11-5.53,39.84,39.84,0,0,1,26.41-17.8,39.9,39.9,0,0,1-.4,27.72,12,12,0,0,0,1.61,11.53A37.85,37.85,0,0,1,196,104Z`}))],[`duotone`,P.createElement(P.Fragment,null,P.createElement(`path`,{d:`M208,104v8a48,48,0,0,1-48,48H136a32,32,0,0,1,32,32v40H104V192a32,32,0,0,1,32-32H112a48,48,0,0,1-48-48v-8a49.28,49.28,0,0,1,8.51-27.3A51.92,51.92,0,0,1,76,32a52,52,0,0,1,43.83,24h32.34A52,52,0,0,1,196,32a51.92,51.92,0,0,1,3.49,44.7A49.28,49.28,0,0,1,208,104Z`,opacity:`0.2`}),P.createElement(`path`,{d:`M208.3,75.68A59.74,59.74,0,0,0,202.93,28,8,8,0,0,0,196,24a59.75,59.75,0,0,0-48,24H124A59.75,59.75,0,0,0,76,24a8,8,0,0,0-6.93,4,59.78,59.78,0,0,0-5.38,47.68A58.14,58.14,0,0,0,56,104v8a56.06,56.06,0,0,0,48.44,55.47A39.8,39.8,0,0,0,96,192v8H72a24,24,0,0,1-24-24A40,40,0,0,0,8,136a8,8,0,0,0,0,16,24,24,0,0,1,24,24,40,40,0,0,0,40,40H96v16a8,8,0,0,0,16,0V192a24,24,0,0,1,48,0v40a8,8,0,0,0,16,0V192a39.8,39.8,0,0,0-8.44-24.53A56.06,56.06,0,0,0,216,112v-8A58,58,0,0,0,208.3,75.68ZM200,112a40,40,0,0,1-40,40H112a40,40,0,0,1-40-40v-8a41.74,41.74,0,0,1,6.9-22.48A8,8,0,0,0,80,73.83a43.81,43.81,0,0,1,.79-33.58,43.88,43.88,0,0,1,32.32,20.06A8,8,0,0,0,119.82,64h32.35a8,8,0,0,0,6.74-3.69,43.87,43.87,0,0,1,32.32-20.06A43.81,43.81,0,0,1,192,73.83a8.09,8.09,0,0,0,1,7.65A41.76,41.76,0,0,1,200,104Z`}))],[`fill`,P.createElement(P.Fragment,null,P.createElement(`path`,{d:`M216,104v8a56.06,56.06,0,0,1-48.44,55.47A39.8,39.8,0,0,1,176,192v40a8,8,0,0,1-8,8H104a8,8,0,0,1-8-8V216H72a40,40,0,0,1-40-40A24,24,0,0,0,8,152a8,8,0,0,1,0-16,40,40,0,0,1,40,40,24,24,0,0,0,24,24H96v-8a39.8,39.8,0,0,1,8.44-24.53A56.06,56.06,0,0,1,56,112v-8a58.14,58.14,0,0,1,7.69-28.32A59.78,59.78,0,0,1,69.07,28,8,8,0,0,1,76,24a59.75,59.75,0,0,1,48,24h24a59.75,59.75,0,0,1,48-24,8,8,0,0,1,6.93,4,59.74,59.74,0,0,1,5.37,47.68A58,58,0,0,1,216,104Z`}))],[`light`,P.createElement(P.Fragment,null,P.createElement(`path`,{d:`M206.13,75.92A57.79,57.79,0,0,0,201.2,29a6,6,0,0,0-5.2-3,57.77,57.77,0,0,0-47,24H123A57.77,57.77,0,0,0,76,26a6,6,0,0,0-5.2,3,57.79,57.79,0,0,0-4.93,46.92A55.88,55.88,0,0,0,58,104v8a54.06,54.06,0,0,0,50.45,53.87A37.85,37.85,0,0,0,98,192v10H72a26,26,0,0,1-26-26A38,38,0,0,0,8,138a6,6,0,0,0,0,12,26,26,0,0,1,26,26,38,38,0,0,0,38,38H98v18a6,6,0,0,0,12,0V192a26,26,0,0,1,52,0v40a6,6,0,0,0,12,0V192a37.85,37.85,0,0,0-10.45-26.13A54.06,54.06,0,0,0,214,112v-8A55.88,55.88,0,0,0,206.13,75.92ZM202,112a42,42,0,0,1-42,42H112a42,42,0,0,1-42-42v-8a43.86,43.86,0,0,1,7.3-23.69,6,6,0,0,0,.81-5.76,45.85,45.85,0,0,1,1.43-36.42,45.85,45.85,0,0,1,35.23,21.1A6,6,0,0,0,119.83,62h32.34a6,6,0,0,0,5.06-2.76,45.83,45.83,0,0,1,35.23-21.11,45.85,45.85,0,0,1,1.43,36.42,6,6,0,0,0,.79,5.74A43.78,43.78,0,0,1,202,104Z`}))],[`regular`,P.createElement(P.Fragment,null,P.createElement(`path`,{d:`M208.31,75.68A59.78,59.78,0,0,0,202.93,28,8,8,0,0,0,196,24a59.75,59.75,0,0,0-48,24H124A59.75,59.75,0,0,0,76,24a8,8,0,0,0-6.93,4,59.78,59.78,0,0,0-5.38,47.68A58.14,58.14,0,0,0,56,104v8a56.06,56.06,0,0,0,48.44,55.47A39.8,39.8,0,0,0,96,192v8H72a24,24,0,0,1-24-24A40,40,0,0,0,8,136a8,8,0,0,0,0,16,24,24,0,0,1,24,24,40,40,0,0,0,40,40H96v16a8,8,0,0,0,16,0V192a24,24,0,0,1,48,0v40a8,8,0,0,0,16,0V192a39.8,39.8,0,0,0-8.44-24.53A56.06,56.06,0,0,0,216,112v-8A58.14,58.14,0,0,0,208.31,75.68ZM200,112a40,40,0,0,1-40,40H112a40,40,0,0,1-40-40v-8a41.74,41.74,0,0,1,6.9-22.48A8,8,0,0,0,80,73.83a43.81,43.81,0,0,1,.79-33.58,43.88,43.88,0,0,1,32.32,20.06A8,8,0,0,0,119.82,64h32.35a8,8,0,0,0,6.74-3.69,43.87,43.87,0,0,1,32.32-20.06A43.81,43.81,0,0,1,192,73.83a8.09,8.09,0,0,0,1,7.65A41.72,41.72,0,0,1,200,104Z`}))],[`thin`,P.createElement(P.Fragment,null,P.createElement(`path`,{d:`M203.94,76.16A55.73,55.73,0,0,0,199.46,30,4,4,0,0,0,196,28a55.78,55.78,0,0,0-46,24H122A55.78,55.78,0,0,0,76,28a4,4,0,0,0-3.46,2,55.73,55.73,0,0,0-4.48,46.16A53.78,53.78,0,0,0,60,104v8a52.06,52.06,0,0,0,52,52h1.41A36,36,0,0,0,100,192v12H72a28,28,0,0,1-28-28A36,36,0,0,0,8,140a4,4,0,0,0,0,8,28,28,0,0,1,28,28,36,36,0,0,0,36,36h28v20a4,4,0,0,0,8,0V192a28,28,0,0,1,56,0v40a4,4,0,0,0,8,0V192a36,36,0,0,0-13.41-28H160a52.06,52.06,0,0,0,52-52v-8A53.78,53.78,0,0,0,203.94,76.16ZM204,112a44.05,44.05,0,0,1-44,44H112a44.05,44.05,0,0,1-44-44v-8a45.76,45.76,0,0,1,7.71-24.89,4,4,0,0,0,.53-3.84,47.82,47.82,0,0,1,2.1-39.21,47.8,47.8,0,0,1,38.12,22.1A4,4,0,0,0,119.83,60h32.34a4,4,0,0,0,3.37-1.84,47.8,47.8,0,0,1,38.12-22.1,47.82,47.82,0,0,1,2.1,39.21,4,4,0,0,0,.53,3.83A45.85,45.85,0,0,1,204,104Z`}))]]),uE=new Map([[`bold`,P.createElement(P.Fragment,null,P.createElement(`path`,{d:`M128,20A108,108,0,1,0,236,128,108.12,108.12,0,0,0,128,20Zm84,108a83.64,83.64,0,0,1-4.47,27L167,130a19.65,19.65,0,0,0-7.8-2.78l-22.82-3.08A20.14,20.14,0,0,0,117.72,132h-4.07l-2.71-5.6a19.88,19.88,0,0,0-13.8-10.84L94.46,115l4-7h14.39a20,20,0,0,0,9.66-2.49l12.25-6.76a20.57,20.57,0,0,0,3.74-2.68l26.92-24.33A20,20,0,0,0,172,56.49,84,84,0,0,1,212,128ZM140.76,45l6.2,11.1L122.75,78l-10.93,6H96.14A20.05,20.05,0,0,0,78.78,94.06l-4.49,7.85L67.68,84.28l9.91-23.42A83.91,83.91,0,0,1,140.76,45ZM44,128a83.52,83.52,0,0,1,4.4-26.77l7.74,20.65a19.89,19.89,0,0,0,14.52,12.53l19.53,4.2,3,6.1a20.11,20.11,0,0,0,13.55,10.77l-5,11.12a20,20,0,0,0,3.58,21.71l.21.22,18.16,18.7-.89,4.59A84.09,84.09,0,0,1,44,128Zm103.65,81.66a20.11,20.11,0,0,0-5-17.3l-.21-.22-17.72-18.25,11.37-25.52,19,2.56,41.43,25.48A84.2,84.2,0,0,1,147.65,209.66Z`}))],[`duotone`,P.createElement(P.Fragment,null,P.createElement(`path`,{d:`M213.09,172.48a96,96,0,0,1-80.41,51.41l3.17-16.44a8,8,0,0,0-2-6.95l-19.74-20.33a8,8,0,0,1-1.44-8.69l13.7-30.74a8,8,0,0,1,8.38-4.67l22.82,3.08a8.11,8.11,0,0,1,3.12,1.11ZM116.71,95,129,88.24a7.46,7.46,0,0,0,1.5-1.07l26.91-24.33A8,8,0,0,0,159,53l-10.5-18.81A96.62,96.62,0,0,0,128,32,95.61,95.61,0,0,0,67.78,53.23L56,81.08A8,8,0,0,0,55.88,87l11.5,30.67a8,8,0,0,0,5.81,5l2.69.58L89.2,100a8,8,0,0,1,6.94-4h16.71A7.9,7.9,0,0,0,116.71,95Z`,opacity:`0.2`}),P.createElement(`path`,{d:`M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm88,104a87.62,87.62,0,0,1-6.4,32.94l-44.7-27.49a15.92,15.92,0,0,0-6.24-2.23l-22.82-3.08a16.11,16.11,0,0,0-16,7.86h-8.72l-3.8-7.86a15.91,15.91,0,0,0-11-8.67l-8-1.73L96.14,104h16.71a16.06,16.06,0,0,0,7.73-2l12.25-6.76a16.62,16.62,0,0,0,3-2.14l26.91-24.34A15.93,15.93,0,0,0,166,49.1l-.36-.65A88.11,88.11,0,0,1,216,128ZM143.31,41.34,152,56.9,125.09,81.24,112.85,88H96.14a16,16,0,0,0-13.88,8l-8.73,15.23L63.38,84.19,74.32,58.32a87.87,87.87,0,0,1,69-17ZM40,128a87.53,87.53,0,0,1,8.54-37.8l11.34,30.27a16,16,0,0,0,11.62,10l21.43,4.61L96.74,143a16.09,16.09,0,0,0,14.4,9h1.48l-7.23,16.23a16,16,0,0,0,2.86,17.37l.14.14L128,205.94l-1.94,10A88.11,88.11,0,0,1,40,128Zm102.58,86.78,1.13-5.81a16.09,16.09,0,0,0-4-13.9,1.85,1.85,0,0,1-.14-.14L120,174.74,133.7,144l22.82,3.08,45.72,28.12A88.18,88.18,0,0,1,142.58,214.78Z`}))],[`fill`,P.createElement(P.Fragment,null,P.createElement(`path`,{d:`M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm88,104a87.62,87.62,0,0,1-6.4,32.94l-44.7-27.49a15.92,15.92,0,0,0-6.24-2.23l-22.82-3.08a16.11,16.11,0,0,0-16,7.86h-8.72l-3.8-7.86a15.91,15.91,0,0,0-11-8.67l-8-1.73L96.14,104h16.71a16.06,16.06,0,0,0,7.73-2l12.25-6.76a16.62,16.62,0,0,0,3-2.14l26.91-24.34A15.93,15.93,0,0,0,166,49.1l-.36-.65A88.11,88.11,0,0,1,216,128ZM40,128a87.53,87.53,0,0,1,8.54-37.8l11.34,30.27a16,16,0,0,0,11.62,10l21.43,4.61L96.74,143a16.09,16.09,0,0,0,14.4,9h1.48l-7.23,16.23a16,16,0,0,0,2.86,17.37l.14.14L128,205.94l-1.94,10A88.11,88.11,0,0,1,40,128Z`}))],[`light`,P.createElement(P.Fragment,null,P.createElement(`path`,{d:`M128,26A102,102,0,1,0,230,128,102.12,102.12,0,0,0,128,26Zm90,102a89.55,89.55,0,0,1-7.46,35.86l-46.69-28.71a13.94,13.94,0,0,0-5.46-2l-22.82-3.07A14.06,14.06,0,0,0,121.06,138h-9.92a2,2,0,0,1-1.8-1.13l-3.8-7.86a13.94,13.94,0,0,0-9.66-7.59l-10.71-2.3L94.4,103a2,2,0,0,1,1.74-1h16.71a13.9,13.9,0,0,0,6.76-1.75l12.25-6.75a14.73,14.73,0,0,0,2.62-1.88l26.91-24.33a13.93,13.93,0,0,0,2.83-17.21L161,44.25A90.16,90.16,0,0,1,218,128ZM144.6,39.54l9.15,16.39a2,2,0,0,1-.41,2.46L126.43,82.72a1.84,1.84,0,0,1-.37.27l-12.25,6.76a2,2,0,0,1-1,.25H96.14A14,14,0,0,0,84,97L73.18,115.91a2,2,0,0,1-.19-.35L61.5,84.89a2,2,0,0,1,0-1.48L72.68,57.06A89.9,89.9,0,0,1,144.6,39.54ZM38,128A89.52,89.52,0,0,1,49.38,84.23a13.85,13.85,0,0,0,.89,4.87l11.49,30.67a13.94,13.94,0,0,0,10.16,8.78l21.44,4.6a2,2,0,0,1,1.38,1.09l3.8,7.86a14.07,14.07,0,0,0,12.6,7.9h4.56l-8.49,19a14,14,0,0,0,2.51,15.2l.1.11,19.68,20.26a2,2,0,0,1,.46,1.7L127.7,218A90.1,90.1,0,0,1,38,128Zm102.08,89.19,1.67-8.6a14.07,14.07,0,0,0-3.47-12.16l-.1-.11L118.5,176.06a2,2,0,0,1-.33-2.14l13.7-30.73A2,2,0,0,1,134,142l22.82,3.08a2,2,0,0,1,.78.27L205,174.55A90.18,90.18,0,0,1,140.08,217.19Z`}))],[`regular`,P.createElement(P.Fragment,null,P.createElement(`path`,{d:`M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm88,104a87.62,87.62,0,0,1-6.4,32.94l-44.7-27.49a15.92,15.92,0,0,0-6.24-2.23l-22.82-3.08a16.11,16.11,0,0,0-16,7.86h-8.72l-3.8-7.86a15.91,15.91,0,0,0-11-8.67l-8-1.73L96.14,104h16.71a16.06,16.06,0,0,0,7.73-2l12.25-6.76a16.62,16.62,0,0,0,3-2.14l26.91-24.34A15.93,15.93,0,0,0,166,49.1l-.36-.65A88.11,88.11,0,0,1,216,128ZM143.31,41.34,152,56.9,125.09,81.24,112.85,88H96.14a16,16,0,0,0-13.88,8l-8.73,15.23L63.38,84.19,74.32,58.32a87.87,87.87,0,0,1,69-17ZM40,128a87.53,87.53,0,0,1,8.54-37.8l11.34,30.27a16,16,0,0,0,11.62,10l21.43,4.61L96.74,143a16.09,16.09,0,0,0,14.4,9h1.48l-7.23,16.23a16,16,0,0,0,2.86,17.37l.14.14L128,205.94l-1.94,10A88.11,88.11,0,0,1,40,128Zm102.58,86.78,1.13-5.81a16.09,16.09,0,0,0-4-13.9,1.85,1.85,0,0,1-.14-.14L120,174.74,133.7,144l22.82,3.08,45.72,28.12A88.18,88.18,0,0,1,142.58,214.78Z`}))],[`thin`,P.createElement(P.Fragment,null,P.createElement(`path`,{d:`M128,28A100,100,0,1,0,228,128,100.11,100.11,0,0,0,128,28Zm92,100a91.44,91.44,0,0,1-8.58,38.76L162.8,136.85a12.07,12.07,0,0,0-4.68-1.67l-22.82-3.07a12,12,0,0,0-12.56,7l-.4.88h-11.2a4,4,0,0,1-3.6-2.26l-3.8-7.86a11.93,11.93,0,0,0-8.28-6.5L82.07,120.5,92.67,102a4,4,0,0,1,3.47-2h16.71a12,12,0,0,0,5.8-1.5l12.24-6.76a11.79,11.79,0,0,0,2.25-1.6L160.05,65.8a12,12,0,0,0,2.43-14.75l-5.86-10.49A92.17,92.17,0,0,1,220,128ZM145.89,37.75l9.6,17.2a4,4,0,0,1-.81,4.92L127.77,84.21a4.41,4.41,0,0,1-.75.53L114.78,91.5a4,4,0,0,1-1.93.5H96.14a12,12,0,0,0-10.41,6l-11.86,20.7a4,4,0,0,1-2.75-2.47L59.63,85.6a4,4,0,0,1,.06-3L71,55.81A91.51,91.51,0,0,1,128,36,92.53,92.53,0,0,1,145.89,37.75ZM36,128A91.52,91.52,0,0,1,56,70.77l-3.71,8.75a12,12,0,0,0-.18,8.88l11.49,30.67a11.93,11.93,0,0,0,8.72,7.52l21.43,4.61a4,4,0,0,1,2.76,2.17l3.8,7.86a12.07,12.07,0,0,0,10.8,6.77h7.64L109,169.85A12,12,0,0,0,111.26,183l19.68,20.26a4,4,0,0,1,1,3.47L129.36,220,128,220A92.1,92.1,0,0,1,36,128Zm101.6,91.5,2.18-11.29a12.08,12.08,0,0,0-3-10.49l-19.68-20.26a4,4,0,0,1-.71-4.35l13.7-30.74a4,4,0,0,1,4.18-2.33l22.82,3.07a4.12,4.12,0,0,1,1.56.56l49.11,30.2A92.12,92.12,0,0,1,137.6,219.5Z`}))]]),dE=new Map([[`bold`,P.createElement(P.Fragment,null,P.createElement(`path`,{d:`M216,36H40A20,20,0,0,0,20,56V200a20,20,0,0,0,20,20H216a20,20,0,0,0,20-20V56A20,20,0,0,0,216,36Zm-4,24V92H44V60ZM44,116H92v80H44Zm72,80V116h96v80Z`}))],[`duotone`,P.createElement(P.Fragment,null,P.createElement(`path`,{d:`M104,104V208H40a8,8,0,0,1-8-8V104Z`,opacity:`0.2`}),P.createElement(`path`,{d:`M216,40H40A16,16,0,0,0,24,56V200a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A16,16,0,0,0,216,40Zm0,16V96H40V56ZM40,112H96v88H40Zm176,88H112V112H216v88Z`}))],[`fill`,P.createElement(P.Fragment,null,P.createElement(`path`,{d:`M216,40H40A16,16,0,0,0,24,56V200a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A16,16,0,0,0,216,40ZM40,56H216V96H40ZM216,200H112V112H216v88Z`}))],[`light`,P.createElement(P.Fragment,null,P.createElement(`path`,{d:`M216,42H40A14,14,0,0,0,26,56V200a14,14,0,0,0,14,14H216a14,14,0,0,0,14-14V56A14,14,0,0,0,216,42ZM40,54H216a2,2,0,0,1,2,2V98H38V56A2,2,0,0,1,40,54ZM38,200V110H98v92H40A2,2,0,0,1,38,200Zm178,2H110V110H218v90A2,2,0,0,1,216,202Z`}))],[`regular`,P.createElement(P.Fragment,null,P.createElement(`path`,{d:`M216,40H40A16,16,0,0,0,24,56V200a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A16,16,0,0,0,216,40Zm0,16V96H40V56ZM40,112H96v88H40Zm176,88H112V112H216v88Z`}))],[`thin`,P.createElement(P.Fragment,null,P.createElement(`path`,{d:`M216,44H40A12,12,0,0,0,28,56V200a12,12,0,0,0,12,12H216a12,12,0,0,0,12-12V56A12,12,0,0,0,216,44ZM40,52H216a4,4,0,0,1,4,4v44H36V56A4,4,0,0,1,40,52ZM36,200V108h64v96H40A4,4,0,0,1,36,200Zm180,4H108V108H220v92A4,4,0,0,1,216,204Z`}))]]),fE=new Map([[`bold`,P.createElement(P.Fragment,null,P.createElement(`path`,{d:`M232.49,215.51,185,168a92.12,92.12,0,1,0-17,17l47.53,47.54a12,12,0,0,0,17-17ZM44,112a68,68,0,1,1,68,68A68.07,68.07,0,0,1,44,112Z`}))],[`duotone`,P.createElement(P.Fragment,null,P.createElement(`path`,{d:`M192,112a80,80,0,1,1-80-80A80,80,0,0,1,192,112Z`,opacity:`0.2`}),P.createElement(`path`,{d:`M229.66,218.34,179.6,168.28a88.21,88.21,0,1,0-11.32,11.31l50.06,50.07a8,8,0,0,0,11.32-11.32ZM40,112a72,72,0,1,1,72,72A72.08,72.08,0,0,1,40,112Z`}))],[`fill`,P.createElement(P.Fragment,null,P.createElement(`path`,{d:`M168,112a56,56,0,1,1-56-56A56,56,0,0,1,168,112Zm61.66,117.66a8,8,0,0,1-11.32,0l-50.06-50.07a88,88,0,1,1,11.32-11.31l50.06,50.06A8,8,0,0,1,229.66,229.66ZM112,184a72,72,0,1,0-72-72A72.08,72.08,0,0,0,112,184Z`}))],[`light`,P.createElement(P.Fragment,null,P.createElement(`path`,{d:`M228.24,219.76l-51.38-51.38a86.15,86.15,0,1,0-8.48,8.48l51.38,51.38a6,6,0,0,0,8.48-8.48ZM38,112a74,74,0,1,1,74,74A74.09,74.09,0,0,1,38,112Z`}))],[`regular`,P.createElement(P.Fragment,null,P.createElement(`path`,{d:`M229.66,218.34l-50.07-50.06a88.11,88.11,0,1,0-11.31,11.31l50.06,50.07a8,8,0,0,0,11.32-11.32ZM40,112a72,72,0,1,1,72,72A72.08,72.08,0,0,1,40,112Z`}))],[`thin`,P.createElement(P.Fragment,null,P.createElement(`path`,{d:`M226.83,221.17l-52.7-52.7a84.1,84.1,0,1,0-5.66,5.66l52.7,52.7a4,4,0,0,0,5.66-5.66ZM36,112a76,76,0,1,1,76,76A76.08,76.08,0,0,1,36,112Z`}))]]),pE=new Map([[`bold`,P.createElement(P.Fragment,null,P.createElement(`path`,{d:`M230.14,25.86a20,20,0,0,0-19.57-5.11l-.22.07L18.44,79a20,20,0,0,0-3.06,37.25L99,157l40.71,83.65a19.81,19.81,0,0,0,18,11.38c.57,0,1.15,0,1.73-.07A19.82,19.82,0,0,0,177,237.56L235.18,45.65a1.42,1.42,0,0,0,.07-.22A20,20,0,0,0,230.14,25.86ZM156.91,221.07l-34.37-70.64,46-45.95a12,12,0,0,0-17-17l-46,46L34.93,99.09,210,46Z`}))],[`duotone`,P.createElement(P.Fragment,null,P.createElement(`path`,{d:`M223.69,42.18l-58.22,192a8,8,0,0,1-14.92,1.25L108,148,20.58,105.45a8,8,0,0,1,1.25-14.92l192-58.22A8,8,0,0,1,223.69,42.18Z`,opacity:`0.2`}),P.createElement(`path`,{d:`M227.32,28.68a16,16,0,0,0-15.66-4.08l-.15,0L19.57,82.84a16,16,0,0,0-2.49,29.8L102,154l41.3,84.87A15.86,15.86,0,0,0,157.74,248q.69,0,1.38-.06a15.88,15.88,0,0,0,14-11.51l58.2-191.94c0-.05,0-.1,0-.15A16,16,0,0,0,227.32,28.68ZM157.83,231.85l-.05.14,0-.07-40.06-82.3,48-48a8,8,0,0,0-11.31-11.31l-48,48L24.08,98.25l-.07,0,.14,0L216,40Z`}))],[`fill`,P.createElement(P.Fragment,null,P.createElement(`path`,{d:`M231.4,44.34s0,.1,0,.15l-58.2,191.94a15.88,15.88,0,0,1-14,11.51q-.69.06-1.38.06a15.86,15.86,0,0,1-14.42-9.15L107,164.15a4,4,0,0,1,.77-4.58l57.92-57.92a8,8,0,0,0-11.31-11.31L96.43,148.26a4,4,0,0,1-4.58.77L17.08,112.64a16,16,0,0,1,2.49-29.8l191.94-58.2.15,0A16,16,0,0,1,231.4,44.34Z`}))],[`light`,P.createElement(P.Fragment,null,P.createElement(`path`,{d:`M225.88,30.12a13.83,13.83,0,0,0-13.7-3.58l-.11,0L20.14,84.77A14,14,0,0,0,18,110.85l85.56,41.64L145.12,238a13.87,13.87,0,0,0,12.61,8c.4,0,.81,0,1.21-.05a13.9,13.9,0,0,0,12.29-10.09l58.2-191.93,0-.11A13.83,13.83,0,0,0,225.88,30.12Zm-8,10.4L159.73,232.43l0,.11a2,2,0,0,1-3.76.26l-40.68-83.58,49-49a6,6,0,1,0-8.49-8.49l-49,49L23.15,100a2,2,0,0,1,.31-3.74l.11,0L215.48,38.08a1.94,1.94,0,0,1,1.92.52A2,2,0,0,1,217.92,40.52Z`}))],[`regular`,P.createElement(P.Fragment,null,P.createElement(`path`,{d:`M227.32,28.68a16,16,0,0,0-15.66-4.08l-.15,0L19.57,82.84a16,16,0,0,0-2.49,29.8L102,154l41.3,84.87A15.86,15.86,0,0,0,157.74,248q.69,0,1.38-.06a15.88,15.88,0,0,0,14-11.51l58.2-191.94c0-.05,0-.1,0-.15A16,16,0,0,0,227.32,28.68ZM157.83,231.85l-.05.14,0-.07-40.06-82.3,48-48a8,8,0,0,0-11.31-11.31l-48,48L24.08,98.25l-.07,0,.14,0L216,40Z`}))],[`thin`,P.createElement(P.Fragment,null,P.createElement(`path`,{d:`M224.47,31.52a11.87,11.87,0,0,0-11.82-3L20.74,86.67a12,12,0,0,0-1.91,22.38L105,151l41.92,86.15A11.88,11.88,0,0,0,157.74,244c.34,0,.69,0,1,0a11.89,11.89,0,0,0,10.52-8.63l58.21-192,0-.08A11.85,11.85,0,0,0,224.47,31.52Zm-4.62,9.54-58.23,192a4,4,0,0,1-7.48.59l-41.3-84.86,50-50a4,4,0,1,0-5.66-5.66l-50,50-84.9-41.31a3.88,3.88,0,0,1-2.27-4,3.93,3.93,0,0,1,3-3.54L214.9,36.16A3.93,3.93,0,0,1,216,36a4,4,0,0,1,2.79,1.19A3.93,3.93,0,0,1,219.85,41.06Z`}))]]),mE=new Map([[`bold`,P.createElement(P.Fragment,null,P.createElement(`path`,{d:`M230.14,70.54,185.46,25.85a20,20,0,0,0-28.29,0L33.86,149.17A19.85,19.85,0,0,0,28,163.31V208a20,20,0,0,0,20,20H92.69a19.86,19.86,0,0,0,14.14-5.86L230.14,98.82a20,20,0,0,0,0-28.28ZM91,204H52V165l84-84,39,39ZM192,103,153,64l18.34-18.34,39,39Z`}))],[`duotone`,P.createElement(P.Fragment,null,P.createElement(`path`,{d:`M221.66,90.34,192,120,136,64l29.66-29.66a8,8,0,0,1,11.31,0L221.66,79A8,8,0,0,1,221.66,90.34Z`,opacity:`0.2`}),P.createElement(`path`,{d:`M227.31,73.37,182.63,28.68a16,16,0,0,0-22.63,0L36.69,152A15.86,15.86,0,0,0,32,163.31V208a16,16,0,0,0,16,16H92.69A15.86,15.86,0,0,0,104,219.31L227.31,96a16,16,0,0,0,0-22.63ZM92.69,208H48V163.31l88-88L180.69,120ZM192,108.68,147.31,64l24-24L216,84.68Z`}))],[`fill`,P.createElement(P.Fragment,null,P.createElement(`path`,{d:`M227.31,73.37,182.63,28.68a16,16,0,0,0-22.63,0L36.69,152A15.86,15.86,0,0,0,32,163.31V208a16,16,0,0,0,16,16H92.69A15.86,15.86,0,0,0,104,219.31L227.31,96a16,16,0,0,0,0-22.63ZM192,108.68,147.31,64l24-24L216,84.68Z`}))],[`light`,P.createElement(P.Fragment,null,P.createElement(`path`,{d:`M225.9,74.78,181.21,30.09a14,14,0,0,0-19.8,0L38.1,153.41a13.94,13.94,0,0,0-4.1,9.9V208a14,14,0,0,0,14,14H92.69a13.94,13.94,0,0,0,9.9-4.1L225.9,94.58a14,14,0,0,0,0-19.8ZM94.1,209.41a2,2,0,0,1-1.41.59H48a2,2,0,0,1-2-2V163.31a2,2,0,0,1,.59-1.41L136,72.48,183.51,120ZM217.41,86.1,192,111.51,144.49,64,169.9,38.58a2,2,0,0,1,2.83,0l44.68,44.69a2,2,0,0,1,0,2.83Z`}))],[`regular`,P.createElement(P.Fragment,null,P.createElement(`path`,{d:`M227.31,73.37,182.63,28.68a16,16,0,0,0-22.63,0L36.69,152A15.86,15.86,0,0,0,32,163.31V208a16,16,0,0,0,16,16H92.69A15.86,15.86,0,0,0,104,219.31L227.31,96a16,16,0,0,0,0-22.63ZM92.69,208H48V163.31l88-88L180.69,120ZM192,108.68,147.31,64l24-24L216,84.68Z`}))],[`thin`,P.createElement(P.Fragment,null,P.createElement(`path`,{d:`M224.49,76.2,179.8,31.51a12,12,0,0,0-17,0L133.17,61.17h0L39.52,154.83A11.9,11.9,0,0,0,36,163.31V208a12,12,0,0,0,12,12H92.69a12,12,0,0,0,8.48-3.51L224.48,93.17a12,12,0,0,0,0-17Zm-129,134.63A4,4,0,0,1,92.69,212H48a4,4,0,0,1-4-4V163.31a4,4,0,0,1,1.17-2.83L136,69.65,186.34,120ZM218.83,87.51,192,114.34,141.66,64l26.82-26.83a4,4,0,0,1,5.66,0l44.69,44.68a4,4,0,0,1,0,5.66Z`}))]]),hE=new Map([[`bold`,P.createElement(P.Fragment,null,P.createElement(`path`,{d:`M228,128a12,12,0,0,1-12,12H140v76a12,12,0,0,1-24,0V140H40a12,12,0,0,1,0-24h76V40a12,12,0,0,1,24,0v76h76A12,12,0,0,1,228,128Z`}))],[`duotone`,P.createElement(P.Fragment,null,P.createElement(`path`,{d:`M216,56V200a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V56A16,16,0,0,1,56,40H200A16,16,0,0,1,216,56Z`,opacity:`0.2`}),P.createElement(`path`,{d:`M224,128a8,8,0,0,1-8,8H136v80a8,8,0,0,1-16,0V136H40a8,8,0,0,1,0-16h80V40a8,8,0,0,1,16,0v80h80A8,8,0,0,1,224,128Z`}))],[`fill`,P.createElement(P.Fragment,null,P.createElement(`path`,{d:`M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM184,136H136v48a8,8,0,0,1-16,0V136H72a8,8,0,0,1,0-16h48V72a8,8,0,0,1,16,0v48h48a8,8,0,0,1,0,16Z`}))],[`light`,P.createElement(P.Fragment,null,P.createElement(`path`,{d:`M222,128a6,6,0,0,1-6,6H134v82a6,6,0,0,1-12,0V134H40a6,6,0,0,1,0-12h82V40a6,6,0,0,1,12,0v82h82A6,6,0,0,1,222,128Z`}))],[`regular`,P.createElement(P.Fragment,null,P.createElement(`path`,{d:`M224,128a8,8,0,0,1-8,8H136v80a8,8,0,0,1-16,0V136H40a8,8,0,0,1,0-16h80V40a8,8,0,0,1,16,0v80h80A8,8,0,0,1,224,128Z`}))],[`thin`,P.createElement(P.Fragment,null,P.createElement(`path`,{d:`M220,128a4,4,0,0,1-4,4H132v84a4,4,0,0,1-8,0V132H40a4,4,0,0,1,0-8h84V40a4,4,0,0,1,8,0v84h84A4,4,0,0,1,220,128Z`}))]]),gE=new Map([[`bold`,P.createElement(P.Fragment,null,P.createElement(`path`,{d:`M124,216a12,12,0,0,1-12,12H48a12,12,0,0,1-12-12V40A12,12,0,0,1,48,28h64a12,12,0,0,1,0,24H60V204h52A12,12,0,0,1,124,216Zm108.49-96.49-40-40a12,12,0,0,0-17,17L195,116H112a12,12,0,0,0,0,24h83l-19.52,19.51a12,12,0,0,0,17,17l40-40A12,12,0,0,0,232.49,119.51Z`}))],[`duotone`,P.createElement(P.Fragment,null,P.createElement(`path`,{d:`M224,56V200a16,16,0,0,1-16,16H48V40H208A16,16,0,0,1,224,56Z`,opacity:`0.2`}),P.createElement(`path`,{d:`M120,216a8,8,0,0,1-8,8H48a8,8,0,0,1-8-8V40a8,8,0,0,1,8-8h64a8,8,0,0,1,0,16H56V208h56A8,8,0,0,1,120,216Zm109.66-93.66-40-40a8,8,0,0,0-11.32,11.32L204.69,120H112a8,8,0,0,0,0,16h92.69l-26.35,26.34a8,8,0,0,0,11.32,11.32l40-40A8,8,0,0,0,229.66,122.34Z`}))],[`fill`,P.createElement(P.Fragment,null,P.createElement(`path`,{d:`M120,216a8,8,0,0,1-8,8H48a8,8,0,0,1-8-8V40a8,8,0,0,1,8-8h64a8,8,0,0,1,0,16H56V208h56A8,8,0,0,1,120,216Zm109.66-93.66-40-40A8,8,0,0,0,176,88v32H112a8,8,0,0,0,0,16h64v32a8,8,0,0,0,13.66,5.66l40-40A8,8,0,0,0,229.66,122.34Z`}))],[`light`,P.createElement(P.Fragment,null,P.createElement(`path`,{d:`M118,216a6,6,0,0,1-6,6H48a6,6,0,0,1-6-6V40a6,6,0,0,1,6-6h64a6,6,0,0,1,0,12H54V210h58A6,6,0,0,1,118,216Zm110.24-92.24-40-40a6,6,0,0,0-8.48,8.48L209.51,122H112a6,6,0,0,0,0,12h97.51l-29.75,29.76a6,6,0,1,0,8.48,8.48l40-40A6,6,0,0,0,228.24,123.76Z`}))],[`regular`,P.createElement(P.Fragment,null,P.createElement(`path`,{d:`M120,216a8,8,0,0,1-8,8H48a8,8,0,0,1-8-8V40a8,8,0,0,1,8-8h64a8,8,0,0,1,0,16H56V208h56A8,8,0,0,1,120,216Zm109.66-93.66-40-40a8,8,0,0,0-11.32,11.32L204.69,120H112a8,8,0,0,0,0,16h92.69l-26.35,26.34a8,8,0,0,0,11.32,11.32l40-40A8,8,0,0,0,229.66,122.34Z`}))],[`thin`,P.createElement(P.Fragment,null,P.createElement(`path`,{d:`M116,216a4,4,0,0,1-4,4H48a4,4,0,0,1-4-4V40a4,4,0,0,1,4-4h64a4,4,0,0,1,0,8H52V212h60A4,4,0,0,1,116,216Zm110.83-90.83-40-40a4,4,0,0,0-5.66,5.66L214.34,124H112a4,4,0,0,0,0,8H214.34l-33.17,33.17a4,4,0,0,0,5.66,5.66l40-40A4,4,0,0,0,226.83,125.17Z`}))]]),_E=new Map([[`bold`,P.createElement(P.Fragment,null,P.createElement(`path`,{d:`M216,48H180V36A28,28,0,0,0,152,8H104A28,28,0,0,0,76,36V48H40a12,12,0,0,0,0,24h4V208a20,20,0,0,0,20,20H192a20,20,0,0,0,20-20V72h4a12,12,0,0,0,0-24ZM100,36a4,4,0,0,1,4-4h48a4,4,0,0,1,4,4V48H100Zm88,168H68V72H188ZM116,104v64a12,12,0,0,1-24,0V104a12,12,0,0,1,24,0Zm48,0v64a12,12,0,0,1-24,0V104a12,12,0,0,1,24,0Z`}))],[`duotone`,P.createElement(P.Fragment,null,P.createElement(`path`,{d:`M200,56V208a8,8,0,0,1-8,8H64a8,8,0,0,1-8-8V56Z`,opacity:`0.2`}),P.createElement(`path`,{d:`M216,48H176V40a24,24,0,0,0-24-24H104A24,24,0,0,0,80,40v8H40a8,8,0,0,0,0,16h8V208a16,16,0,0,0,16,16H192a16,16,0,0,0,16-16V64h8a8,8,0,0,0,0-16ZM96,40a8,8,0,0,1,8-8h48a8,8,0,0,1,8,8v8H96Zm96,168H64V64H192ZM112,104v64a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Zm48,0v64a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Z`}))],[`fill`,P.createElement(P.Fragment,null,P.createElement(`path`,{d:`M216,48H176V40a24,24,0,0,0-24-24H104A24,24,0,0,0,80,40v8H40a8,8,0,0,0,0,16h8V208a16,16,0,0,0,16,16H192a16,16,0,0,0,16-16V64h8a8,8,0,0,0,0-16ZM112,168a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Zm48,0a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Zm0-120H96V40a8,8,0,0,1,8-8h48a8,8,0,0,1,8,8Z`}))],[`light`,P.createElement(P.Fragment,null,P.createElement(`path`,{d:`M216,50H174V40a22,22,0,0,0-22-22H104A22,22,0,0,0,82,40V50H40a6,6,0,0,0,0,12H50V208a14,14,0,0,0,14,14H192a14,14,0,0,0,14-14V62h10a6,6,0,0,0,0-12ZM94,40a10,10,0,0,1,10-10h48a10,10,0,0,1,10,10V50H94ZM194,208a2,2,0,0,1-2,2H64a2,2,0,0,1-2-2V62H194ZM110,104v64a6,6,0,0,1-12,0V104a6,6,0,0,1,12,0Zm48,0v64a6,6,0,0,1-12,0V104a6,6,0,0,1,12,0Z`}))],[`regular`,P.createElement(P.Fragment,null,P.createElement(`path`,{d:`M216,48H176V40a24,24,0,0,0-24-24H104A24,24,0,0,0,80,40v8H40a8,8,0,0,0,0,16h8V208a16,16,0,0,0,16,16H192a16,16,0,0,0,16-16V64h8a8,8,0,0,0,0-16ZM96,40a8,8,0,0,1,8-8h48a8,8,0,0,1,8,8v8H96Zm96,168H64V64H192ZM112,104v64a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Zm48,0v64a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Z`}))],[`thin`,P.createElement(P.Fragment,null,P.createElement(`path`,{d:`M216,52H172V40a20,20,0,0,0-20-20H104A20,20,0,0,0,84,40V52H40a4,4,0,0,0,0,8H52V208a12,12,0,0,0,12,12H192a12,12,0,0,0,12-12V60h12a4,4,0,0,0,0-8ZM92,40a12,12,0,0,1,12-12h48a12,12,0,0,1,12,12V52H92ZM196,208a4,4,0,0,1-4,4H64a4,4,0,0,1-4-4V60H196ZM108,104v64a4,4,0,0,1-8,0V104a4,4,0,0,1,8,0Zm48,0v64a4,4,0,0,1-8,0V104a4,4,0,0,1,8,0Z`}))]]),vE=P.forwardRef((e,t)=>P.createElement(Ne,{ref:t,...e,weights:aE}));vE.displayName=`ArrowUpRightIcon`;var yE=vE,bE=P.forwardRef((e,t)=>P.createElement(Ne,{ref:t,...e,weights:oE}));bE.displayName=`ChatCircleTextIcon`;var xE=bE,SE=P.forwardRef((e,t)=>P.createElement(Ne,{ref:t,...e,weights:sE}));SE.displayName=`ClockCounterClockwiseIcon`;var CE=SE,wE=P.forwardRef((e,t)=>P.createElement(Ne,{ref:t,...e,weights:cE}));wE.displayName=`DotsThreeIcon`;var TE=wE,EE=P.forwardRef((e,t)=>P.createElement(Ne,{ref:t,...e,weights:lE}));EE.displayName=`GithubLogoIcon`;var DE=EE,OE=P.forwardRef((e,t)=>P.createElement(Ne,{ref:t,...e,weights:uE}));OE.displayName=`GlobeHemisphereWestIcon`;var kE=OE,AE=P.forwardRef((e,t)=>P.createElement(Ne,{ref:t,...e,weights:dE}));AE.displayName=`LayoutIcon`;var jE=AE,ME=P.forwardRef((e,t)=>P.createElement(Ne,{ref:t,...e,weights:fE}));ME.displayName=`MagnifyingGlassIcon`;var NE=ME,PE=P.forwardRef((e,t)=>P.createElement(Ne,{ref:t,...e,weights:pE}));PE.displayName=`PaperPlaneTiltIcon`;var FE=PE,IE=P.forwardRef((e,t)=>P.createElement(Ne,{ref:t,...e,weights:mE}));IE.displayName=`PencilSimpleIcon`;var LE=IE,RE=P.forwardRef((e,t)=>P.createElement(Ne,{ref:t,...e,weights:hE}));RE.displayName=`PlusIcon`;var zE=RE,BE=P.forwardRef((e,t)=>P.createElement(Ne,{ref:t,...e,weights:gE}));BE.displayName=`SignOutIcon`;var VE=BE,HE=P.forwardRef((e,t)=>P.createElement(Ne,{ref:t,...e,weights:_E}));HE.displayName=`TrashIcon`;var UE=HE,WE=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},GE=new class extends WE{#e;#t;#n;constructor(){super(),this.#n=e=>{if(typeof window<`u`&&window.addEventListener){let t=()=>e();return window.addEventListener(`visibilitychange`,t,!1),()=>{window.removeEventListener(`visibilitychange`,t)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(e=>{typeof e==`boolean`?this.setFocused(e):this.onFocus()})}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){let e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return typeof this.#e==`boolean`?this.#e:globalThis.document?.visibilityState!==`hidden`}},KE={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},qE=new class{#e=KE;setTimeoutProvider(e){this.#e=e}setTimeout(e,t){return this.#e.setTimeout(e,t)}clearTimeout(e){this.#e.clearTimeout(e)}setInterval(e,t){return this.#e.setInterval(e,t)}clearInterval(e){this.#e.clearInterval(e)}};function JE(e){setTimeout(e,0)}var YE=typeof window>`u`||`Deno`in globalThis;function XE(){}function ZE(e,t){return typeof e==`function`?e(t):e}function QE(e){return typeof e==`number`&&e>=0&&e!==1/0}function $E(e,t){return Math.max(e+(t||0)-Date.now(),0)}function eD(e,t){return typeof e==`function`?e(t):e}function tD(e,t){return typeof e==`function`?e(t):e}function nD(e,t){let{type:n=`all`,exact:r,fetchStatus:i,predicate:a,queryKey:o,stale:s}=e;if(o){if(r){if(t.queryHash!==iD(o,t.options))return!1}else if(!oD(t.queryKey,o))return!1}if(n!==`all`){let e=t.isActive();if(n===`active`&&!e||n===`inactive`&&e)return!1}return!(typeof s==`boolean`&&t.isStale()!==s||i&&i!==t.state.fetchStatus||a&&!a(t))}function rD(e,t){let{exact:n,status:r,predicate:i,mutationKey:a}=e;if(a){if(!t.options.mutationKey)return!1;if(n){if(aD(t.options.mutationKey)!==aD(a))return!1}else if(!oD(t.options.mutationKey,a))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function iD(e,t){return(t?.queryKeyHashFn||aD)(e)}function aD(e){return JSON.stringify(e,(e,t)=>dD(t)?Object.keys(t).sort().reduce((e,n)=>(e[n]=t[n],e),{}):t)}function oD(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(e&&t&&typeof e==`object`&&typeof t==`object`){if(Array.isArray(e)&&Array.isArray(t)){for(let n=0;n500)return t;let r=uD(e)&&uD(t);if(!r&&!(dD(e)&&dD(t)))return t;let i=(r?e:Object.keys(e)).length,a=r?t:Object.keys(t),o=a.length,s=r?Array(o):{},c=0;for(let l=0;l{qE.setTimeout(t,e)})}function mD(e,t,n){return typeof n.structuralSharing==`function`?n.structuralSharing(e,t):n.structuralSharing===!1?t:cD(e,t)}function hD(e,t,n=0){let r=[...e,t];return n&&r.length>n?r.slice(1):r}function gD(e,t,n=0){let r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var _D=Symbol();function vD(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===_D?()=>Promise.reject(Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function yD(e,t){return typeof e==`function`?e(...t):!!e}function bD(e,t,n){let r=!1,i;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(i??=t(),r?i:(r=!0,i.aborted?n():i.addEventListener(`abort`,n,{once:!0}),i))}),e}var xD=(()=>{let e=()=>YE;return{isServer(){return e()},setIsServer(t){e=t}}})();function SD(){let e,t,n=new Promise((n,r)=>{e=n,t=r});n.status=`pending`,n.catch(()=>{});function r(e){Object.assign(n,e),delete n.resolve,delete n.reject}return n.resolve=t=>{r({status:`fulfilled`,value:t}),e(t)},n.reject=e=>{r({status:`rejected`,reason:e}),t(e)},n}var CD=JE;function wD(){let e=[],t=0,n=e=>{e()},r=e=>{e()},i=CD,a=r=>{t?e.push(r):i(()=>{n(r)})},o=()=>{let t=e;e=[],t.length&&i(()=>{r(()=>{t.forEach(e=>{n(e)})})})};return{batch:e=>{let n;t++;try{n=e()}finally{t--,t||o()}return n},batchCalls:e=>(...t)=>{a(()=>{e(...t)})},schedule:a,setNotifyFunction:e=>{n=e},setBatchNotifyFunction:e=>{r=e},setScheduler:e=>{i=e}}}var TD=wD(),ED=new class extends WE{#e=!0;#t;#n;constructor(){super(),this.#n=e=>{if(typeof window<`u`&&window.addEventListener){let t=()=>e(!0),n=()=>e(!1);return window.addEventListener(`online`,t,!1),window.addEventListener(`offline`,n,!1),()=>{window.removeEventListener(`online`,t),window.removeEventListener(`offline`,n)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(this.setOnline.bind(this))}setOnline(e){this.#e!==e&&(this.#e=e,this.listeners.forEach(t=>{t(e)}))}isOnline(){return this.#e}};function DD(e){return Math.min(1e3*2**e,3e4)}function OD(e){return(e??`online`)!==`online`||ED.isOnline()}var kD=class extends Error{constructor(e){super(`CancelledError`),this.revert=e?.revert,this.silent=e?.silent}};function AD(e){let t=!1,n=0,r,i=SD(),a=()=>i.status!==`pending`,o=t=>{if(!a()){let n=new kD(t);f(n),e.onCancel?.(n)}},s=()=>{t=!0},c=()=>{t=!1},l=()=>GE.isFocused()&&(e.networkMode===`always`||ED.isOnline())&&e.canRun(),u=()=>OD(e.networkMode)&&e.canRun(),d=e=>{a()||(r?.(),i.resolve(e))},f=e=>{a()||(r?.(),i.reject(e))},p=()=>new Promise(t=>{r=e=>{(a()||l())&&t(e)},e.onPause?.()}).then(()=>{r=void 0,a()||e.onContinue?.()}),m=()=>{if(a())return;let r,i=n===0?e.initialPromise:void 0;try{r=i??e.fn()}catch(e){r=Promise.reject(e)}Promise.resolve(r).then(d).catch(r=>{if(a())return;let i=e.retry??(xD.isServer()?0:3),o=e.retryDelay??DD,s=typeof o==`function`?o(n,r):o,c=i===!0||typeof i==`number`&&nl()?void 0:p()).then(()=>{t?f(r):m()})})};return{promise:i,status:()=>i.status,cancel:o,continue:()=>(r?.(),i),cancelRetry:s,continueRetry:c,canStart:u,start:()=>(u()?m():p().then(m),i)}}var jD=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),QE(this.gcTime)&&(this.#e=qE.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(xD.isServer()?1/0:3e5))}clearGcTimeout(){this.#e!==void 0&&(qE.clearTimeout(this.#e),this.#e=void 0)}};function MD(e){return{onFetch:(t,n)=>{let r=t.options,i=t.fetchOptions?.meta?.fetchMore?.direction,a=t.state.data?.pages||[],o=t.state.data?.pageParams||[],s={pages:[],pageParams:[]},c=0,l=async()=>{let n=!1,l=e=>{bD(e,()=>t.signal,()=>n=!0)},u=vD(t.options,t.fetchOptions),d=async(e,r,i)=>{if(n)return Promise.reject(t.signal.reason);if(r==null&&e.pages.length)return Promise.resolve(e);let a=(()=>{let e={client:t.client,queryKey:t.queryKey,pageParam:r,direction:i?`backward`:`forward`,meta:t.options.meta};return l(e),e})(),o=await u(a),{maxPages:s}=t.options,c=i?gD:hD;return{pages:c(e.pages,o,s),pageParams:c(e.pageParams,r,s)}};if(i&&a.length){let e=i===`backward`,t=e?PD:ND,n={pages:a,pageParams:o};s=await d(n,t(r,n),e)}else{let t=e??a.length;do{let e=c===0?o[0]??r.initialPageParam:ND(r,s);if(c>0&&e==null)break;s=await d(s,e),c++}while(ct.options.persister?.(l,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n):l}}}function ND(e,{pages:t,pageParams:n}){let r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function PD(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}function FD(e,t){return t?ND(e,t)!=null:!1}function ID(e,t){return!t||!e.getPreviousPageParam?!1:PD(e,t)!=null}var LD=class extends jD{#e;#t;#n;#r;#i;#a;#o;#s;constructor(e){super(),this.#s=!1,this.#o=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#i=e.client,this.#r=this.#i.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#t=BD(this.options),this.state=e.state??this.#t,this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return this.#e}get promise(){return this.#a?.promise}setOptions(e){if(this.options={...this.#o,...e},e?._type&&(this.#e=e._type),this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){let e=BD(this.options);e.data!==void 0&&(this.setState(zD(e.data,e.dataUpdatedAt)),this.#t=e)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus===`idle`&&this.#r.remove(this)}setData(e,t){let n=mD(this.state.data,e,this.options);return this.#l({data:n,type:`success`,dataUpdatedAt:t?.updatedAt,manual:t?.manual}),n}setState(e){this.#l({type:`setState`,state:e})}cancel(e){let t=this.#a?.promise;return this.#a?.cancel(e),t?t.then(XE).catch(XE):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return this.#t}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(e=>tD(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===_D||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0&&this.observers.some(e=>eD(e.options.staleTime,this)===`static`)}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e===`static`?!1:this.state.isInvalidated?!0:!$E(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(e=>e.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#a?.continue()}onOnline(){this.observers.find(e=>e.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#a?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#r.notify({type:`observerAdded`,query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#a&&(this.#s||this.#c()?this.#a.cancel({revert:!0}):this.#a.cancelRetry()),this.scheduleGc()),this.#r.notify({type:`observerRemoved`,query:this,observer:e}))}getObserversCount(){return this.observers.length}#c(){return this.state.fetchStatus===`paused`&&this.state.status===`pending`}invalidate(){this.state.isInvalidated||this.#l({type:`invalidate`})}async fetch(e,t){if(this.state.fetchStatus!==`idle`&&this.#a?.status()!==`rejected`){if(this.state.data!==void 0&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#a)return this.#a.continueRetry(),this.#a.promise}if(e&&this.setOptions(e),!this.options.queryFn){let e=this.observers.find(e=>e.options.queryFn);e&&this.setOptions(e.options)}let n=new AbortController,r=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(this.#s=!0,n.signal)})},i=()=>{let e=vD(this.options,t),n=(()=>{let e={client:this.#i,queryKey:this.queryKey,meta:this.meta};return r(e),e})();return this.#s=!1,this.options.persister?this.options.persister(e,n,this):e(n)},a=(()=>{let e={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#i,state:this.state,fetchFn:i};return r(e),e})();(this.#e===`infinite`?MD(this.options.pages):this.options.behavior)?.onFetch(a,this),this.#n=this.state,(this.state.fetchStatus===`idle`||this.state.fetchMeta!==a.fetchOptions?.meta)&&this.#l({type:`fetch`,meta:a.fetchOptions?.meta}),this.#a=AD({initialPromise:t?.initialPromise,fn:a.fetchFn,onCancel:e=>{e instanceof kD&&e.revert&&this.setState({...this.#n,fetchStatus:`idle`}),n.abort()},onFail:(e,t)=>{this.#l({type:`failed`,failureCount:e,error:t})},onPause:()=>{this.#l({type:`pause`})},onContinue:()=>{this.#l({type:`continue`})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0});try{let e=await this.#a.start();if(e===void 0)throw Error(`${this.queryHash} data is undefined`);return this.setData(e),this.#r.config.onSuccess?.(e,this),this.#r.config.onSettled?.(e,this.state.error,this),e}catch(e){if(e instanceof kD){if(e.silent)return this.#a.promise;if(e.revert){if(this.state.data===void 0)throw e;return this.state.data}}throw this.#l({type:`error`,error:e}),this.#r.config.onError?.(e,this),this.#r.config.onSettled?.(this.state.data,e,this),e}finally{this.scheduleGc()}}#l(e){let t=t=>{switch(e.type){case`failed`:return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case`pause`:return{...t,fetchStatus:`paused`};case`continue`:return{...t,fetchStatus:`fetching`};case`fetch`:return{...t,...RD(t.data,this.options),fetchMeta:e.meta??null};case`success`:let n={...t,...zD(e.data,e.dataUpdatedAt),dataUpdateCount:t.dataUpdateCount+1,...!e.manual&&{fetchStatus:`idle`,fetchFailureCount:0,fetchFailureReason:null}};return this.#n=e.manual?n:void 0,n;case`error`:let r=e.error;return{...t,error:r,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:r,fetchStatus:`idle`,status:`error`,isInvalidated:!0};case`invalidate`:return{...t,isInvalidated:!0};case`setState`:return{...t,...e.state}}};this.state=t(this.state),TD.batch(()=>{this.observers.forEach(e=>{e.onQueryUpdate()}),this.#r.notify({query:this,type:`updated`,action:e})})}};function RD(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:OD(t.networkMode)?`fetching`:`paused`,...e===void 0&&{error:null,status:`pending`}}}function zD(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:`success`}}function BD(e){let t=typeof e.initialData==`function`?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt==`function`?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?`success`:`pending`,fetchStatus:`idle`}}var VD=class extends WE{constructor(e,t){super(),this.options=t,this.#e=e,this.#s=null,this.#o=SD(),this.bindMethods(),this.setOptions(t)}#e;#t=void 0;#n=void 0;#r=void 0;#i;#a;#o;#s;#c;#l;#u;#d;#f;#p;#m=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#t.addObserver(this),UD(this.#t,this.options)?this.#h():this.updateResult(),this.#y())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return WD(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return WD(this.#t,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#b(),this.#x(),this.#t.removeObserver(this)}setOptions(e){let t=this.options,n=this.#t;if(this.options=this.#e.defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!=`boolean`&&typeof this.options.enabled!=`function`&&typeof tD(this.options.enabled,this.#t)!=`boolean`)throw Error(`Expected enabled to be a boolean or a callback that returns a boolean`);this.#S(),this.#t.setOptions(this.options),t._defaulted&&!lD(this.options,t)&&this.#e.getQueryCache().notify({type:`observerOptionsUpdated`,query:this.#t,observer:this});let r=this.hasListeners();r&&GD(this.#t,n,this.options,t)&&this.#h(),this.updateResult(),r&&(this.#t!==n||tD(this.options.enabled,this.#t)!==tD(t.enabled,this.#t)||eD(this.options.staleTime,this.#t)!==eD(t.staleTime,this.#t))&&this.#g();let i=this.#_();r&&(this.#t!==n||tD(this.options.enabled,this.#t)!==tD(t.enabled,this.#t)||i!==this.#p)&&this.#v(i)}getOptimisticResult(e){let t=this.#e.getQueryCache().build(this.#e,e),n=this.createResult(t,e);return qD(this,n)&&(this.#r=n,this.#a=this.options,this.#i=this.#t.state),n}getCurrentResult(){return this.#r}trackResult(e,t){return new Proxy(e,{get:(e,n)=>(this.trackProp(n),t?.(n),n===`promise`&&(this.trackProp(`data`),!this.options.experimental_prefetchInRender&&this.#o.status===`pending`&&this.#o.reject(Error(`experimental_prefetchInRender feature flag is not enabled`))),Reflect.get(e,n))})}trackProp(e){this.#m.add(e)}getCurrentQuery(){return this.#t}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){let t=this.#e.defaultQueryOptions(e),n=this.#e.getQueryCache().build(this.#e,t);return n.fetch().then(()=>this.createResult(n,t))}fetch(e){return this.#h({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#r))}#h(e){this.#S();let t=this.#t.fetch(this.options,e);return e?.throwOnError||(t=t.catch(XE)),t}#g(){this.#b();let e=eD(this.options.staleTime,this.#t);if(xD.isServer()||this.#r.isStale||!QE(e))return;let t=$E(this.#r.dataUpdatedAt,e)+1;this.#d=qE.setTimeout(()=>{this.#r.isStale||this.updateResult()},t)}#_(){return(typeof this.options.refetchInterval==`function`?this.options.refetchInterval(this.#t):this.options.refetchInterval)??!1}#v(e){this.#x(),this.#p=e,!(xD.isServer()||tD(this.options.enabled,this.#t)===!1||!QE(this.#p)||this.#p===0)&&(this.#f=qE.setInterval(()=>{(this.options.refetchIntervalInBackground||GE.isFocused())&&this.#h()},this.#p))}#y(){this.#g(),this.#v(this.#_())}#b(){this.#d!==void 0&&(qE.clearTimeout(this.#d),this.#d=void 0)}#x(){this.#f!==void 0&&(qE.clearInterval(this.#f),this.#f=void 0)}createResult(e,t){let n=this.#t,r=this.options,i=this.#r,a=this.#i,o=this.#a,s=e===n?this.#n:e.state,{state:c}=e,l={...c},u=!1,d;if(t._optimisticResults){let i=this.hasListeners(),a=!i&&UD(e,t),o=i&&GD(e,n,t,r);(a||o)&&(l={...l,...RD(c.data,e.options)}),t._optimisticResults===`isRestoring`&&(l.fetchStatus=`idle`)}let{error:f,errorUpdatedAt:p,status:m}=l;d=l.data;let h=!1;if(t.placeholderData!==void 0&&d===void 0&&m===`pending`){let e;i?.isPlaceholderData&&t.placeholderData===o?.placeholderData?(e=i.data,h=!0):e=typeof t.placeholderData==`function`?t.placeholderData(this.#u?.state.data,this.#u):t.placeholderData,e!==void 0&&(m=`success`,d=mD(i?.data,e,t),u=!0)}if(t.select&&d!==void 0&&!h)if(i&&d===a?.data&&t.select===this.#c)d=this.#l;else try{this.#c=t.select,d=t.select(d),d=mD(i?.data,d,t),this.#l=d,this.#s=null}catch(e){this.#s=e}this.#s&&(f=this.#s,d=this.#l,p=Date.now(),m=`error`);let g=l.fetchStatus===`fetching`,_=m===`pending`,v=m===`error`,y=_&&g,b=d!==void 0,x={status:m,fetchStatus:l.fetchStatus,isPending:_,isSuccess:m===`success`,isError:v,isInitialLoading:y,isLoading:y,data:d,dataUpdatedAt:l.dataUpdatedAt,error:f,errorUpdatedAt:p,failureCount:l.fetchFailureCount,failureReason:l.fetchFailureReason,errorUpdateCount:l.errorUpdateCount,isFetched:e.isFetched(),isFetchedAfterMount:l.dataUpdateCount>s.dataUpdateCount||l.errorUpdateCount>s.errorUpdateCount,isFetching:g,isRefetching:g&&!_,isLoadingError:v&&!b,isPaused:l.fetchStatus===`paused`,isPlaceholderData:u,isRefetchError:v&&b,isStale:KD(e,t),refetch:this.refetch,promise:this.#o,isEnabled:tD(t.enabled,e)!==!1};if(this.options.experimental_prefetchInRender){let t=x.data!==void 0,r=x.status===`error`&&!t,i=e=>{r?e.reject(x.error):t&&e.resolve(x.data)},a=()=>{let e=this.#o=x.promise=SD();i(e)},o=this.#o;switch(o.status){case`pending`:e.queryHash===n.queryHash&&i(o);break;case`fulfilled`:(r||x.data!==o.value)&&a();break;case`rejected`:(!r||x.error!==o.reason)&&a()}}return x}updateResult(){let e=this.#r,t=this.createResult(this.#t,this.options);this.#i=this.#t.state,this.#a=this.options,this.#i.data!==void 0&&(this.#u=this.#t),!lD(t,e)&&(this.#r=t,this.#C({listeners:(()=>{if(!e)return!0;let{notifyOnChangeProps:t}=this.options,n=typeof t==`function`?t():t;if(n===`all`||!n&&!this.#m.size)return!0;let r=new Set(n??this.#m);return this.options.throwOnError&&r.add(`error`),Object.keys(this.#r).some(t=>{let n=t;return this.#r[n]!==e[n]&&r.has(n)})})()}))}#S(){let e=this.#e.getQueryCache().build(this.#e,this.options);if(e===this.#t)return;let t=this.#t;this.#t=e,this.#n=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#y()}#C(e){TD.batch(()=>{e.listeners&&this.listeners.forEach(e=>{e(this.#r)}),this.#e.getQueryCache().notify({query:this.#t,type:`observerResultsUpdated`})})}};function HD(e,t){return tD(t.enabled,e)!==!1&&e.state.data===void 0&&(e.state.status!==`error`||tD(t.retryOnMount,e)!==!1)}function UD(e,t){return HD(e,t)||e.state.data!==void 0&&WD(e,t,t.refetchOnMount)}function WD(e,t,n){if(tD(t.enabled,e)!==!1&&eD(t.staleTime,e)!==`static`){let r=typeof n==`function`?n(e):n;return r===`always`||r!==!1&&KD(e,t)}return!1}function GD(e,t,n,r){return(e!==t||tD(r.enabled,e)===!1)&&(!n.suspense||e.state.status!==`error`)&&KD(e,n)}function KD(e,t){return tD(t.enabled,e)!==!1&&e.isStaleByTime(eD(t.staleTime,e))}function qD(e,t){return!lD(e.getCurrentResult(),t)}var JD=class extends VD{constructor(e,t){super(e,t)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(e){e._type=`infinite`,super.setOptions(e)}getOptimisticResult(e){return e._type=`infinite`,super.getOptimisticResult(e)}fetchNextPage(e){return this.fetch({...e,meta:{fetchMore:{direction:`forward`}}})}fetchPreviousPage(e){return this.fetch({...e,meta:{fetchMore:{direction:`backward`}}})}createResult(e,t){let{state:n}=e,r=super.createResult(e,t),{isFetching:i,isRefetching:a,isError:o,isRefetchError:s}=r,c=n.fetchMeta?.fetchMore?.direction,l=o&&c===`forward`,u=i&&c===`forward`,d=o&&c===`backward`,f=i&&c===`backward`;return{...r,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:FD(t,n.data),hasPreviousPage:ID(t,n.data),isFetchNextPageError:l,isFetchingNextPage:u,isFetchPreviousPageError:d,isFetchingPreviousPage:f,isRefetchError:s&&!l&&!d,isRefetching:a&&!u&&!f}}},YD=class extends jD{#e;#t;#n;#r;constructor(e){super(),this.#e=e.client,this.mutationId=e.mutationId,this.#n=e.mutationCache,this.#t=[],this.state=e.state||XD(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#t.includes(e)||(this.#t.push(e),this.clearGcTimeout(),this.#n.notify({type:`observerAdded`,mutation:this,observer:e}))}removeObserver(e){this.#t=this.#t.filter(t=>t!==e),this.scheduleGc(),this.#n.notify({type:`observerRemoved`,mutation:this,observer:e})}optionalRemove(){this.#t.length||(this.state.status===`pending`?this.scheduleGc():this.#n.remove(this))}continue(){return this.#r?.continue()??this.execute(this.state.variables)}async execute(e){let t=()=>{this.#i({type:`continue`})},n={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#r=AD({fn:()=>this.options.mutationFn?this.options.mutationFn(e,n):Promise.reject(Error(`No mutationFn found`)),onFail:(e,t)=>{this.#i({type:`failed`,failureCount:e,error:t})},onPause:()=>{this.#i({type:`pause`})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#n.canRun(this)});let r=this.state.status===`pending`,i=!this.#r.canStart();try{if(r)t();else{this.#i({type:`pending`,variables:e,isPaused:i}),this.#n.config.onMutate&&await this.#n.config.onMutate(e,this,n);let t=await this.options.onMutate?.(e,n);t!==this.state.context&&this.#i({type:`pending`,context:t,variables:e,isPaused:i})}let a=await this.#r.start();return await this.#n.config.onSuccess?.(a,e,this.state.context,this,n),await this.options.onSuccess?.(a,e,this.state.context,n),await this.#n.config.onSettled?.(a,null,this.state.variables,this.state.context,this,n),await this.options.onSettled?.(a,null,e,this.state.context,n),this.#i({type:`success`,data:a}),a}catch(t){try{await this.#n.config.onError?.(t,e,this.state.context,this,n)}catch(e){Promise.reject(e)}try{await this.options.onError?.(t,e,this.state.context,n)}catch(e){Promise.reject(e)}try{await this.#n.config.onSettled?.(void 0,t,this.state.variables,this.state.context,this,n)}catch(e){Promise.reject(e)}try{await this.options.onSettled?.(void 0,t,e,this.state.context,n)}catch(e){Promise.reject(e)}throw this.#i({type:`error`,error:t}),t}finally{this.#n.runNext(this)}}#i(e){let t=t=>{switch(e.type){case`failed`:return{...t,failureCount:e.failureCount,failureReason:e.error};case`pause`:return{...t,isPaused:!0};case`continue`:return{...t,isPaused:!1};case`pending`:return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:`pending`,variables:e.variables,submittedAt:Date.now()};case`success`:return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:`success`,isPaused:!1};case`error`:return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:`error`}}};this.state=t(this.state),TD.batch(()=>{this.#t.forEach(t=>{t.onMutationUpdate(e)}),this.#n.notify({mutation:this,type:`updated`,action:e})})}};function XD(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:`idle`,variables:void 0,submittedAt:0}}var ZD=class extends WE{constructor(e={}){super(),this.config=e,this.#e=new Set,this.#t=new Map,this.#n=0}#e;#t;#n;build(e,t,n){let r=new YD({client:e,mutationCache:this,mutationId:++this.#n,options:e.defaultMutationOptions(t),state:n});return this.add(r),r}add(e){this.#e.add(e);let t=QD(e);if(typeof t==`string`){let n=this.#t.get(t);n?n.push(e):this.#t.set(t,[e])}this.notify({type:`added`,mutation:e})}remove(e){if(this.#e.delete(e)){let t=QD(e);if(typeof t==`string`){let n=this.#t.get(t);if(n)if(n.length>1){let t=n.indexOf(e);t!==-1&&n.splice(t,1)}else n[0]===e&&this.#t.delete(t)}}this.notify({type:`removed`,mutation:e})}canRun(e){let t=QD(e);if(typeof t==`string`){let n=this.#t.get(t)?.find(e=>e.state.status===`pending`);return!n||n===e}return!0}runNext(e){let t=QD(e);return typeof t==`string`?(this.#t.get(t)?.find(t=>t!==e&&t.state.isPaused))?.continue()??Promise.resolve():Promise.resolve()}clear(){TD.batch(()=>{this.#e.forEach(e=>{this.notify({type:`removed`,mutation:e})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(e){let t={exact:!0,...e};return this.getAll().find(e=>rD(t,e))}findAll(e={}){return this.getAll().filter(t=>rD(e,t))}notify(e){TD.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){let e=this.getAll().filter(e=>e.state.isPaused);return TD.batch(()=>Promise.all(e.map(e=>e.continue().catch(XE))))}};function QD(e){return e.options.scope?.id}var $D=class extends WE{constructor(e={}){super(),this.config=e,this.#e=new Map}#e;build(e,t,n){let r=t.queryKey,i=t.queryHash??iD(r,t),a=this.get(i);return a||(a=new LD({client:e,queryKey:r,queryHash:i,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(r)}),this.add(a)),a}add(e){this.#e.has(e.queryHash)||(this.#e.set(e.queryHash,e),this.notify({type:`added`,query:e}))}remove(e){let t=this.#e.get(e.queryHash);t&&(e.destroy(),t===e&&this.#e.delete(e.queryHash),this.notify({type:`removed`,query:e}))}clear(){TD.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#e.get(e)}getAll(){return[...this.#e.values()]}find(e){let t={exact:!0,...e};return this.getAll().find(e=>nD(t,e))}findAll(e={}){let t=this.getAll();return Object.keys(e).length>0?t.filter(t=>nD(e,t)):t}notify(e){TD.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){TD.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){TD.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},eO=class{#e;#t;#n;#r;#i;#a;#o;#s;constructor(e={}){this.#e=e.queryCache||new $D,this.#t=e.mutationCache||new ZD,this.#n=e.defaultOptions||{},this.#r=new Map,this.#i=new Map,this.#a=0}mount(){this.#a++,this.#a===1&&(this.#o=GE.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#s=ED.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#a--,this.#a===0&&(this.#o?.(),this.#o=void 0,this.#s?.(),this.#s=void 0)}isFetching(e){return this.#e.findAll({...e,fetchStatus:`fetching`}).length}isMutating(e){return this.#t.findAll({...e,status:`pending`}).length}getQueryData(e){let t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state.data}ensureQueryData(e){let t=this.defaultQueryOptions(e),n=this.#e.build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(eD(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return this.#e.findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,t,n){let r=this.defaultQueryOptions({queryKey:e}),i=this.#e.get(r.queryHash)?.state.data,a=ZE(t,i);if(a!==void 0)return this.#e.build(this,r).setData(a,{...n,manual:!0})}setQueriesData(e,t,n){return TD.batch(()=>this.#e.findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,n)]))}getQueryState(e){let t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state}removeQueries(e){let t=this.#e;TD.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){let n=this.#e;return TD.batch(()=>(n.findAll(e).forEach(e=>{e.reset()}),this.refetchQueries({type:`active`,...e},t)))}cancelQueries(e,t={}){let n={revert:!0,...t},r=TD.batch(()=>this.#e.findAll(e).map(e=>e.cancel(n)));return Promise.all(r).then(XE).catch(XE)}invalidateQueries(e,t={}){return TD.batch(()=>(this.#e.findAll(e).forEach(e=>{e.invalidate()}),e?.refetchType===`none`?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??`active`},t)))}refetchQueries(e,t={}){let n={...t,cancelRefetch:t.cancelRefetch??!0},r=TD.batch(()=>this.#e.findAll(e).filter(e=>!e.isDisabled()&&!e.isStatic()).map(e=>{let t=e.fetch(void 0,n);return n.throwOnError||(t=t.catch(XE)),e.state.fetchStatus===`paused`?Promise.resolve():t}));return Promise.all(r).then(XE)}fetchQuery(e){let t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);let n=this.#e.build(this,t);return n.isStaleByTime(eD(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(XE).catch(XE)}fetchInfiniteQuery(e){return e._type=`infinite`,this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(XE).catch(XE)}ensureInfiniteQueryData(e){return e._type=`infinite`,this.ensureQueryData(e)}resumePausedMutations(){return ED.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#n}setDefaultOptions(e){this.#n=e}setQueryDefaults(e,t){this.#r.set(aD(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){let t=[...this.#r.values()],n={};return t.forEach(t=>{oD(e,t.queryKey)&&Object.assign(n,t.defaultOptions)}),n}setMutationDefaults(e,t){this.#i.set(aD(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){let t=[...this.#i.values()],n={};return t.forEach(t=>{oD(e,t.mutationKey)&&Object.assign(n,t.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;let t={...this.#n.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||=iD(t.queryKey,t),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!==`always`),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode=`offlineFirst`),t.queryFn===_D&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#n.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}},tO=P.createContext(void 0),nO=e=>{let t=P.useContext(tO);if(e)return e;if(!t)throw Error(`No QueryClient set, use QueryClientProvider to set one`);return t},rO=({client:e,children:t})=>(P.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),(0,F.jsx)(tO.Provider,{value:e,children:t})),iO=P.createContext(!1),aO=()=>P.useContext(iO);iO.Provider;function oO(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var sO=P.createContext(oO()),cO=()=>P.useContext(sO),lO=(e,t,n)=>{let r=n?.state.error&&typeof e.throwOnError==`function`?yD(e.throwOnError,[n.state.error,n]):e.throwOnError;(e.suspense||e.experimental_prefetchInRender||r)&&(t.isReset()||(e.retryOnMount=!1))},uO=e=>{P.useEffect(()=>{e.clearReset()},[e])},dO=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:i})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(i&&e.data===void 0||yD(n,[e.error,r])),fO=e=>{if(e.suspense){let t=1e3,n=e=>e===`static`?e:Math.max(e??t,t),r=e.staleTime;e.staleTime=typeof r==`function`?(...e)=>n(r(...e)):n(r),typeof e.gcTime==`number`&&(e.gcTime=Math.max(e.gcTime,t))}},pO=(e,t)=>e.isLoading&&e.isFetching&&!t,mO=(e,t)=>e?.suspense&&t.isPending,hO=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function gO(e,t,n){let r=aO(),i=cO(),a=nO(n),o=a.defaultQueryOptions(e);a.getDefaultOptions().queries?._experimental_beforeQuery?.(o);let s=a.getQueryCache().get(o.queryHash),c=e.subscribed!==!1;o._optimisticResults=r?`isRestoring`:c?`optimistic`:void 0,fO(o),lO(o,i,s),uO(i);let l=!a.getQueryCache().get(o.queryHash),[u]=P.useState(()=>new t(a,o)),d=u.getOptimisticResult(o),f=!r&&c;if(P.useSyncExternalStore(P.useCallback(e=>{let t=f?u.subscribe(TD.batchCalls(e)):XE;return u.updateResult(),t},[u,f]),()=>u.getCurrentResult(),()=>u.getCurrentResult()),P.useEffect(()=>{u.setOptions(o)},[o,u]),mO(o,d))throw hO(o,u,i);if(dO({result:d,errorResetBoundary:i,throwOnError:o.throwOnError,query:s,suspense:o.suspense}))throw d.error;return a.getDefaultOptions().queries?._experimental_afterQuery?.(o,d),o.experimental_prefetchInRender&&!xD.isServer()&&pO(d,r)&&(l?hO(o,u,i):s?.promise)?.catch(XE).finally(()=>{u.updateResult()}),o.notifyOnChangeProps?d:u.trackResult(d)}function _O(e,t){return gO(e,JD,t)}function vO(e,t){let n=t||{};return(e[e.length-1]===``?[...e,``]:e).join((n.padRight?` `:``)+`,`+(n.padLeft===!1?``:` `)).trim()}var yO=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,bO=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,xO={};function SO(e,t){return((t||xO).jsx?bO:yO).test(e)}var CO=/[ \t\n\f\r]/g;function wO(e){return typeof e==`object`?e.type===`text`&&TO(e.value):TO(e)}function TO(e){return e.replace(CO,``)===``}var EO=class{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}};EO.prototype.normal={},EO.prototype.property={},EO.prototype.space=void 0;function DO(e,t){let n={},r={};for(let t of e)Object.assign(n,t.property),Object.assign(r,t.normal);return new EO(n,r,t)}function OO(e){return e.toLowerCase()}var kO=class{constructor(e,t){this.attribute=t,this.property=e}};kO.prototype.attribute=``,kO.prototype.booleanish=!1,kO.prototype.boolean=!1,kO.prototype.commaOrSpaceSeparated=!1,kO.prototype.commaSeparated=!1,kO.prototype.defined=!1,kO.prototype.mustUseProperty=!1,kO.prototype.number=!1,kO.prototype.overloadedBoolean=!1,kO.prototype.property=``,kO.prototype.spaceSeparated=!1,kO.prototype.space=void 0;var AO=s({boolean:()=>MO,booleanish:()=>NO,commaOrSpaceSeparated:()=>LO,commaSeparated:()=>IO,number:()=>Q,overloadedBoolean:()=>PO,spaceSeparated:()=>FO}),jO=0,MO=RO(),NO=RO(),PO=RO(),Q=RO(),FO=RO(),IO=RO(),LO=RO();function RO(){return 2**++jO}var zO=Object.keys(AO),BO=class extends kO{constructor(e,t,n,r){let i=-1;if(super(e,t),VO(this,`space`,r),typeof n==`number`)for(;++i4&&n.slice(0,4)===`data`&&ek.test(t)){if(t.charAt(4)===`-`){let e=t.slice(5).replace($O,rk);r=`data`+e.charAt(0).toUpperCase()+e.slice(1)}else{let e=t.slice(4);if(!$O.test(e)){let n=e.replace(QO,nk);n.charAt(0)!==`-`&&(n=`-`+n),t=`data`+n}}i=BO}return new i(r,t)}function nk(e){return`-`+e.toLowerCase()}function rk(e){return e.charAt(1).toUpperCase()}var ik=DO([UO,KO,JO,YO,XO],`html`),ak=DO([UO,qO,JO,YO,XO],`svg`);function ok(e){return e.join(` `).trim()}var sk=i(((e,t)=>{var n=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,r=/\n/g,i=/^\s*/,a=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,c=/^[;\s]*/,l=/^\s+|\s+$/g;function u(e,t){if(typeof e!=`string`)throw TypeError(`First argument must be a string`);if(!e)return[];t||={};var l=1,u=1;function f(e){var t=e.match(r);t&&(l+=t.length);var n=e.lastIndexOf(` -`);u=~n?e.length-n:u+e.length}function p(){var e={line:l,column:u};return function(t){return t.position=new m(e),_(),t}}function m(e){this.start=e,this.end={line:l,column:u},this.source=t.source}m.prototype.content=e;function h(n){var r=Error(t.source+`:`+l+`:`+u+`: `+n);if(r.reason=n,r.filename=t.source,r.line=l,r.column=u,r.source=e,!t.silent)throw r}function g(t){var n=t.exec(e);if(n){var r=n[0];return f(r),e=e.slice(r.length),n}}function _(){g(i)}function v(e){var t;for(e||=[];t=y();)t!==!1&&e.push(t);return e}function y(){var t=p();if(e.charAt(0)==`/`&&e.charAt(1)==`*`){for(var n=2;e.charAt(n)!=``&&(e.charAt(n)!=`*`||e.charAt(n+1)!=`/`);)++n;if(n+=2,e.charAt(n-1)===``)return h(`End of comment missing`);var r=e.slice(2,n-2);return u+=2,f(r),e=e.slice(n),u+=2,t({type:`comment`,comment:r})}}function b(){var e=p(),t=g(a);if(t){if(y(),!g(o))return h(`property missing ':'`);var r=g(s),i=e({type:`declaration`,property:d(t[0].replace(n,``)),value:r?d(r[0].replace(n,``)):``});return g(c),i}}function x(){var e=[];v(e);for(var t;t=b();)t!==!1&&(e.push(t),v(e));return e}return _(),x()}function d(e){return e?e.replace(l,``):``}t.exports=u})),ck=i((e=>{var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.default=r;var n=t(sk());function r(e,t){let r=null;if(!e||typeof e!=`string`)return r;let i=(0,n.default)(e),a=typeof t==`function`;return i.forEach(e=>{if(e.type!==`declaration`)return;let{property:n,value:i}=e;a?t(n,i,e):i&&(r||={},r[n]=i)}),r}})),lk=i((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.camelCase=void 0;var t=/^--[a-zA-Z0-9_-]+$/,n=/-([a-z])/g,r=/^[^-]+$/,i=/^-(webkit|moz|ms|o|khtml)-/,a=/^-(ms)-/,o=function(e){return!e||r.test(e)||t.test(e)},s=function(e,t){return t.toUpperCase()},c=function(e,t){return`${t}-`};e.camelCase=function(e,t){return t===void 0&&(t={}),o(e)?e:(e=e.toLowerCase(),e=t.reactCompat?e.replace(a,c):e.replace(i,c),e.replace(n,s))}})),uk=i(((e,t)=>{var n=(e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}})(ck()),r=lk();function i(e,t){var i={};return!e||typeof e!=`string`||(0,n.default)(e,function(e,n){e&&n&&(i[(0,r.camelCase)(e,t)]=n)}),i}i.default=i,t.exports=i})),dk=pk(`end`),fk=pk(`start`);function pk(e){return t;function t(t){let n=t&&t.position&&t.position[e]||{};if(typeof n.line==`number`&&n.line>0&&typeof n.column==`number`&&n.column>0)return{line:n.line,column:n.column,offset:typeof n.offset==`number`&&n.offset>-1?n.offset:void 0}}}function mk(e){let t=fk(e),n=dk(e);if(t&&n)return{start:t,end:n}}function hk(e){return!e||typeof e!=`object`?``:`position`in e||`type`in e?_k(e.position):`start`in e||`end`in e?_k(e):`line`in e||`column`in e?gk(e):``}function gk(e){return vk(e&&e.line)+`:`+vk(e&&e.column)}function _k(e){return gk(e&&e.start)+`-`+gk(e&&e.end)}function vk(e){return e&&typeof e==`number`?e:1}var yk=class extends Error{constructor(e,t,n){super(),typeof t==`string`&&(n=t,t=void 0);let r=``,i={},a=!1;if(t&&(i=`line`in t&&`column`in t||`start`in t&&`end`in t?{place:t}:`type`in t?{ancestors:[t],place:t.position}:{...t}),typeof e==`string`?r=e:!i.cause&&e&&(a=!0,r=e.message,i.cause=e),!i.ruleId&&!i.source&&typeof n==`string`){let e=n.indexOf(`:`);e===-1?i.ruleId=n:(i.source=n.slice(0,e),i.ruleId=n.slice(e+1))}if(!i.place&&i.ancestors&&i.ancestors){let e=i.ancestors[i.ancestors.length-1];e&&(i.place=e.position)}let o=i.place&&`start`in i.place?i.place.start:i.place;this.ancestors=i.ancestors||void 0,this.cause=i.cause||void 0,this.column=o?o.column:void 0,this.fatal=void 0,this.file=``,this.message=r,this.line=o?o.line:void 0,this.name=hk(i.place)||`1:1`,this.place=i.place||void 0,this.reason=this.message,this.ruleId=i.ruleId||void 0,this.source=i.source||void 0,this.stack=a&&i.cause&&typeof i.cause.stack==`string`?i.cause.stack:``,this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}};yk.prototype.file=``,yk.prototype.name=``,yk.prototype.reason=``,yk.prototype.message=``,yk.prototype.stack=``,yk.prototype.column=void 0,yk.prototype.line=void 0,yk.prototype.ancestors=void 0,yk.prototype.cause=void 0,yk.prototype.fatal=void 0,yk.prototype.place=void 0,yk.prototype.ruleId=void 0,yk.prototype.source=void 0;var bk=e(uk(),1),xk={}.hasOwnProperty,Sk=new Map,Ck=/[A-Z]/g,wk=new Set([`table`,`tbody`,`thead`,`tfoot`,`tr`]),Tk=new Set([`td`,`th`]);function Ek(e,t){if(!t||t.Fragment===void 0)throw TypeError("Expected `Fragment` in options");let n=t.filePath||void 0,r;if(t.development){if(typeof t.jsxDEV!=`function`)throw TypeError("Expected `jsxDEV` in options when `development: true`");r=Lk(n,t.jsxDEV)}else{if(typeof t.jsx!=`function`)throw TypeError("Expected `jsx` in production options");if(typeof t.jsxs!=`function`)throw TypeError("Expected `jsxs` in production options");r=Ik(n,t.jsx,t.jsxs)}let i={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||`react`,evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space===`svg`?ak:ik,stylePropertyNameCase:t.stylePropertyNameCase||`dom`,tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},a=Dk(i,e,void 0);return a&&typeof a!=`string`?a:i.create(e,i.Fragment,{children:a||void 0},void 0)}function Dk(e,t,n){if(t.type===`element`)return Ok(e,t,n);if(t.type===`mdxFlowExpression`||t.type===`mdxTextExpression`)return kk(e,t);if(t.type===`mdxJsxFlowElement`||t.type===`mdxJsxTextElement`)return jk(e,t,n);if(t.type===`mdxjsEsm`)return Ak(e,t);if(t.type===`root`)return Mk(e,t,n);if(t.type===`text`)return Nk(e,t)}function Ok(e,t,n){let r=e.schema,i=r;t.tagName.toLowerCase()===`svg`&&r.space===`html`&&(i=ak,e.schema=i),e.ancestors.push(t);let a=Uk(e,t.tagName,!1),o=Rk(e,t),s=Bk(e,t);return wk.has(t.tagName)&&(s=s.filter(function(e){return typeof e!=`string`||!wO(e)})),Pk(e,o,a,t),Fk(o,s),e.ancestors.pop(),e.schema=r,e.create(t,a,o,n)}function kk(e,t){if(t.data&&t.data.estree&&e.evaluater){let n=t.data.estree.body[0];return n.type,e.evaluater.evaluateExpression(n.expression)}Wk(e,t.position)}function Ak(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);Wk(e,t.position)}function jk(e,t,n){let r=e.schema,i=r;t.name===`svg`&&r.space===`html`&&(i=ak,e.schema=i),e.ancestors.push(t);let a=t.name===null?e.Fragment:Uk(e,t.name,!0),o=zk(e,t),s=Bk(e,t);return Pk(e,o,a,t),Fk(o,s),e.ancestors.pop(),e.schema=r,e.create(t,a,o,n)}function Mk(e,t,n){let r={};return Fk(r,Bk(e,t)),e.create(t,e.Fragment,r,n)}function Nk(e,t){return t.value}function Pk(e,t,n,r){typeof n!=`string`&&n!==e.Fragment&&e.passNode&&(t.node=r)}function Fk(e,t){if(t.length>0){let n=t.length>1?t:t[0];n&&(e.children=n)}}function Ik(e,t,n){return r;function r(e,r,i,a){let o=Array.isArray(i.children)?n:t;return a?o(r,i,a):o(r,i)}}function Lk(e,t){return n;function n(n,r,i,a){let o=Array.isArray(i.children),s=fk(n);return t(r,i,a,o,{columnNumber:s?s.column-1:void 0,fileName:e,lineNumber:s?s.line:void 0},void 0)}}function Rk(e,t){let n={},r,i;for(i in t.properties)if(i!==`children`&&xk.call(t.properties,i)){let a=Vk(e,i,t.properties[i]);if(a){let[i,o]=a;e.tableCellAlignToStyle&&i===`align`&&typeof o==`string`&&Tk.has(t.tagName)?r=o:n[i]=o}}if(r){let t=n.style||={};t[e.stylePropertyNameCase===`css`?`text-align`:`textAlign`]=r}return n}function zk(e,t){let n={};for(let r of t.attributes)if(r.type===`mdxJsxExpressionAttribute`)if(r.data&&r.data.estree&&e.evaluater){let t=r.data.estree.body[0];t.type;let i=t.expression;i.type;let a=i.properties[0];a.type,Object.assign(n,e.evaluater.evaluateExpression(a.argument))}else Wk(e,t.position);else{let i=r.name,a;if(r.value&&typeof r.value==`object`)if(r.value.data&&r.value.data.estree&&e.evaluater){let t=r.value.data.estree.body[0];t.type,a=e.evaluater.evaluateExpression(t.expression)}else Wk(e,t.position);else a=r.value===null||r.value;n[i]=a}return n}function Bk(e,t){let n=[],r=-1,i=e.passKeys?new Map:Sk;for(;++ri?0:i+t:t>i?i:t,n=n>0?n:0,r.length<1e4)o=Array.from(r),o.unshift(t,n),e.splice(...o);else for(n&&e.splice(t,n);a0?(nA(e,e.length,0,t),e):t}var iA={}.hasOwnProperty;function aA(e){let t={},n=-1;for(;++n13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)==65535||(n&65535)==65534||n>1114111?`�`:String.fromCodePoint(n)}function lA(e){return e.replace(/[\t\n\r ]+/g,` `).replace(/^ | $/g,``).toLowerCase().toUpperCase()}var uA=xA(/[A-Za-z]/),dA=xA(/[\dA-Za-z]/),fA=xA(/[#-'*+\--9=?A-Z^-~]/);function pA(e){return e!==null&&(e<32||e===127)}var mA=xA(/\d/),hA=xA(/[\dA-Fa-f]/),gA=xA(/[!-/:-@[-`{-~]/);function $(e){return e!==null&&e<-2}function _A(e){return e!==null&&(e<0||e===32)}function vA(e){return e===-2||e===-1||e===32}var yA=xA(/\p{P}|\p{S}/u),bA=xA(/\s/);function xA(e){return t;function t(t){return t!==null&&t>-1&&e.test(String.fromCharCode(t))}}function SA(e){let t=[],n=-1,r=0,i=0;for(;++n55295&&a<57344){let t=e.charCodeAt(n+1);a<56320&&t>56319&&t<57344?(o=String.fromCharCode(a,t),i=1):o=`�`}else o=String.fromCharCode(a);o&&=(t.push(e.slice(r,n),encodeURIComponent(o)),r=n+i+1,``),i&&=(n+=i,0)}return t.join(``)+e.slice(r)}function CA(e,t,n,r){let i=r?r-1:1/0,a=0;return o;function o(r){return vA(r)?(e.enter(n),s(r)):t(r)}function s(r){return vA(r)&&a++o))return;let n=t.events.length,a=n,s,c;for(;a--;)if(t.events[a][0]===`exit`&&t.events[a][1].type===`chunkFlow`){if(s){c=t.events[a][1].end;break}s=!0}for(_(r),e=n;er;){let r=n[i];t.containerState=r[1],r[0].exit.call(t,e)}n.length=r}function v(){i.write([null]),a=void 0,i=void 0,t.containerState._closeFlow=void 0}}function kA(e,t,n){return CA(e,e.attempt(this.parser.constructs.document,t,n),`linePrefix`,this.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)}function AA(e){if(e===null||_A(e)||bA(e))return 1;if(yA(e))return 2}function jA(e,t,n){let r=[],i=-1;for(;++i1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;let d={...e[r][1].end},f={...e[n][1].start};FA(d,-c),FA(f,c),o={type:c>1?`strongSequence`:`emphasisSequence`,start:d,end:{...e[r][1].end}},s={type:c>1?`strongSequence`:`emphasisSequence`,start:{...e[n][1].start},end:f},a={type:c>1?`strongText`:`emphasisText`,start:{...e[r][1].end},end:{...e[n][1].start}},i={type:c>1?`strong`:`emphasis`,start:{...o.start},end:{...s.end}},e[r][1].end={...o.start},e[n][1].start={...s.end},l=[],e[r][1].end.offset-e[r][1].start.offset&&(l=rA(l,[[`enter`,e[r][1],t],[`exit`,e[r][1],t]])),l=rA(l,[[`enter`,i,t],[`enter`,o,t],[`exit`,o,t],[`enter`,a,t]]),l=rA(l,jA(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),l=rA(l,[[`exit`,a,t],[`enter`,s,t],[`exit`,s,t],[`exit`,i,t]]),e[n][1].end.offset-e[n][1].start.offset?(u=2,l=rA(l,[[`enter`,e[n][1],t],[`exit`,e[n][1],t]])):u=0,nA(e,r-1,n-r+3,l),n=r+l.length-u-2;break}}for(n=-1;++n0&&vA(t)?CA(e,v,`linePrefix`,a+1)(t):v(t)}function v(t){return t===null||$(t)?e.check(JA,h,b)(t):(e.enter(`codeFlowValue`),y(t))}function y(t){return t===null||$(t)?(e.exit(`codeFlowValue`),v(t)):(e.consume(t),y)}function b(n){return e.exit(`codeFenced`),t(n)}function x(e,t,n){let i=0;return a;function a(t){return e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),c}function c(t){return e.enter(`codeFencedFence`),vA(t)?CA(e,l,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):l(t)}function l(t){return t===s?(e.enter(`codeFencedFenceSequence`),u(t)):n(t)}function u(t){return t===s?(i++,e.consume(t),u):i>=o?(e.exit(`codeFencedFenceSequence`),vA(t)?CA(e,d,`whitespace`)(t):d(t)):n(t)}function d(r){return r===null||$(r)?(e.exit(`codeFencedFence`),t(r)):n(r)}}}function ZA(e,t,n){let r=this;return i;function i(t){return t===null?n(t):(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),a)}function a(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}var QA={name:`codeIndented`,tokenize:ej},$A={partial:!0,tokenize:tj};function ej(e,t,n){let r=this;return i;function i(t){return e.enter(`codeIndented`),CA(e,a,`linePrefix`,5)(t)}function a(e){let t=r.events[r.events.length-1];return t&&t[1].type===`linePrefix`&&t[2].sliceSerialize(t[1],!0).length>=4?o(e):n(e)}function o(t){return t===null?c(t):$(t)?e.attempt($A,o,c)(t):(e.enter(`codeFlowValue`),s(t))}function s(t){return t===null||$(t)?(e.exit(`codeFlowValue`),o(t)):(e.consume(t),s)}function c(n){return e.exit(`codeIndented`),t(n)}}function tj(e,t,n){let r=this;return i;function i(t){return r.parser.lazy[r.now().line]?n(t):$(t)?(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),i):CA(e,a,`linePrefix`,5)(t)}function a(e){let a=r.events[r.events.length-1];return a&&a[1].type===`linePrefix`&&a[2].sliceSerialize(a[1],!0).length>=4?t(e):$(e)?i(e):n(e)}}var nj={name:`codeText`,previous:ij,resolve:rj,tokenize:aj};function rj(e){let t=e.length-4,n=3,r,i;if((e[n][1].type===`lineEnding`||e[n][1].type===`space`)&&(e[t][1].type===`lineEnding`||e[t][1].type===`space`)){for(r=n;++r=this.left.length+this.right.length)throw RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return ethis.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(e,t,n){let r=t||0;this.setCursor(Math.trunc(e));let i=this.right.splice(this.right.length-r,1/0);return n&&sj(this.left,n),i.reverse()}pop(){return this.setCursor(1/0),this.left.pop()}push(e){this.setCursor(1/0),this.left.push(e)}pushMany(e){this.setCursor(1/0),sj(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),sj(this.right,e.reverse())}setCursor(e){if(!(e===this.left.length||e>this.left.length&&this.right.length===0||e<0&&this.left.length===0))if(e=4?t(i):e.interrupt(r.parser.constructs.flow,n,t)(i)}}function hj(e,t,n,r,i,a,o,s,c){let l=c||1/0,u=0;return d;function d(t){return t===60?(e.enter(r),e.enter(i),e.enter(a),e.consume(t),e.exit(a),f):t===null||t===32||t===41||pA(t)?n(t):(e.enter(r),e.enter(o),e.enter(s),e.enter(`chunkString`,{contentType:`string`}),h(t))}function f(n){return n===62?(e.enter(a),e.consume(n),e.exit(a),e.exit(i),e.exit(r),t):(e.enter(s),e.enter(`chunkString`,{contentType:`string`}),p(n))}function p(t){return t===62?(e.exit(`chunkString`),e.exit(s),f(t)):t===null||t===60||$(t)?n(t):(e.consume(t),t===92?m:p)}function m(t){return t===60||t===62||t===92?(e.consume(t),p):p(t)}function h(i){return!u&&(i===null||i===41||_A(i))?(e.exit(`chunkString`),e.exit(s),e.exit(o),e.exit(r),t(i)):u999||l===null||l===91||l===93&&!c||l===94&&!s&&`_hiddenFootnoteSupport`in o.parser.constructs?n(l):l===93?(e.exit(a),e.enter(i),e.consume(l),e.exit(i),e.exit(r),t):$(l)?(e.enter(`lineEnding`),e.consume(l),e.exit(`lineEnding`),u):(e.enter(`chunkString`,{contentType:`string`}),d(l))}function d(t){return t===null||t===91||t===93||$(t)||s++>999?(e.exit(`chunkString`),u(t)):(e.consume(t),c||=!vA(t),t===92?f:d)}function f(t){return t===91||t===92||t===93?(e.consume(t),s++,d):d(t)}}function _j(e,t,n,r,i,a){let o;return s;function s(t){return t===34||t===39||t===40?(e.enter(r),e.enter(i),e.consume(t),e.exit(i),o=t===40?41:t,c):n(t)}function c(n){return n===o?(e.enter(i),e.consume(n),e.exit(i),e.exit(r),t):(e.enter(a),l(n))}function l(t){return t===o?(e.exit(a),c(o)):t===null?n(t):$(t)?(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),CA(e,l,`linePrefix`)):(e.enter(`chunkString`,{contentType:`string`}),u(t))}function u(t){return t===o||t===null||$(t)?(e.exit(`chunkString`),l(t)):(e.consume(t),t===92?d:u)}function d(t){return t===o||t===92?(e.consume(t),u):u(t)}}function vj(e,t){let n;return r;function r(i){return $(i)?(e.enter(`lineEnding`),e.consume(i),e.exit(`lineEnding`),n=!0,r):vA(i)?CA(e,r,n?`linePrefix`:`lineSuffix`)(i):t(i)}}var yj={name:`definition`,tokenize:xj},bj={partial:!0,tokenize:Sj};function xj(e,t,n){let r=this,i;return a;function a(t){return e.enter(`definition`),o(t)}function o(t){return gj.call(r,e,s,n,`definitionLabel`,`definitionLabelMarker`,`definitionLabelString`)(t)}function s(t){return i=lA(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),t===58?(e.enter(`definitionMarker`),e.consume(t),e.exit(`definitionMarker`),c):n(t)}function c(t){return _A(t)?vj(e,l)(t):l(t)}function l(t){return hj(e,u,n,`definitionDestination`,`definitionDestinationLiteral`,`definitionDestinationLiteralMarker`,`definitionDestinationRaw`,`definitionDestinationString`)(t)}function u(t){return e.attempt(bj,d,d)(t)}function d(t){return vA(t)?CA(e,f,`whitespace`)(t):f(t)}function f(a){return a===null||$(a)?(e.exit(`definition`),r.parser.defined.push(i),t(a)):n(a)}}function Sj(e,t,n){return r;function r(t){return _A(t)?vj(e,i)(t):n(t)}function i(t){return _j(e,a,n,`definitionTitle`,`definitionTitleMarker`,`definitionTitleString`)(t)}function a(t){return vA(t)?CA(e,o,`whitespace`)(t):o(t)}function o(e){return e===null||$(e)?t(e):n(e)}}var Cj={name:`hardBreakEscape`,tokenize:wj};function wj(e,t,n){return r;function r(t){return e.enter(`hardBreakEscape`),e.consume(t),i}function i(r){return $(r)?(e.exit(`hardBreakEscape`),t(r)):n(r)}}var Tj={name:`headingAtx`,resolve:Ej,tokenize:Dj};function Ej(e,t){let n=e.length-2,r=3,i,a;return e[r][1].type===`whitespace`&&(r+=2),n-2>r&&e[n][1].type===`whitespace`&&(n-=2),e[n][1].type===`atxHeadingSequence`&&(r===n-1||n-4>r&&e[n-2][1].type===`whitespace`)&&(n-=r+1===n?2:4),n>r&&(i={type:`atxHeadingText`,start:e[r][1].start,end:e[n][1].end},a={type:`chunkText`,start:e[r][1].start,end:e[n][1].end,contentType:`text`},nA(e,r,n-r+1,[[`enter`,i,t],[`enter`,a,t],[`exit`,a,t],[`exit`,i,t]])),e}function Dj(e,t,n){let r=0;return i;function i(t){return e.enter(`atxHeading`),a(t)}function a(t){return e.enter(`atxHeadingSequence`),o(t)}function o(t){return t===35&&r++<6?(e.consume(t),o):t===null||_A(t)?(e.exit(`atxHeadingSequence`),s(t)):n(t)}function s(n){return n===35?(e.enter(`atxHeadingSequence`),c(n)):n===null||$(n)?(e.exit(`atxHeading`),t(n)):vA(n)?CA(e,s,`whitespace`)(n):(e.enter(`atxHeadingText`),l(n))}function c(t){return t===35?(e.consume(t),c):(e.exit(`atxHeadingSequence`),s(t))}function l(t){return t===null||t===35||_A(t)?(e.exit(`atxHeadingText`),s(t)):(e.consume(t),l)}}var Oj=`address.article.aside.base.basefont.blockquote.body.caption.center.col.colgroup.dd.details.dialog.dir.div.dl.dt.fieldset.figcaption.figure.footer.form.frame.frameset.h1.h2.h3.h4.h5.h6.head.header.hr.html.iframe.legend.li.link.main.menu.menuitem.nav.noframes.ol.optgroup.option.p.param.search.section.summary.table.tbody.td.tfoot.th.thead.title.tr.track.ul`.split(`.`),kj=[`pre`,`script`,`style`,`textarea`],Aj={concrete:!0,name:`htmlFlow`,resolveTo:Nj,tokenize:Pj},jj={partial:!0,tokenize:Ij},Mj={partial:!0,tokenize:Fj};function Nj(e){let t=e.length;for(;t--&&(e[t][0]!==`enter`||e[t][1].type!==`htmlFlow`););return t>1&&e[t-2][1].type===`linePrefix`&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function Pj(e,t,n){let r=this,i,a,o,s,c;return l;function l(e){return u(e)}function u(t){return e.enter(`htmlFlow`),e.enter(`htmlFlowData`),e.consume(t),d}function d(s){return s===33?(e.consume(s),f):s===47?(e.consume(s),a=!0,h):s===63?(e.consume(s),i=3,r.interrupt?t:ie):uA(s)?(e.consume(s),o=String.fromCharCode(s),g):n(s)}function f(a){return a===45?(e.consume(a),i=2,p):a===91?(e.consume(a),i=5,s=0,m):uA(a)?(e.consume(a),i=4,r.interrupt?t:ie):n(a)}function p(i){return i===45?(e.consume(i),r.interrupt?t:ie):n(i)}function m(i){return i===`CDATA[`.charCodeAt(s++)?(e.consume(i),s===6?r.interrupt?t:O:m):n(i)}function h(t){return uA(t)?(e.consume(t),o=String.fromCharCode(t),g):n(t)}function g(s){if(s===null||s===47||s===62||_A(s)){let c=s===47,l=o.toLowerCase();return!c&&!a&&kj.includes(l)?(i=1,r.interrupt?t(s):O(s)):Oj.includes(o.toLowerCase())?(i=6,c?(e.consume(s),_):r.interrupt?t(s):O(s)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(s):a?v(s):y(s))}return s===45||dA(s)?(e.consume(s),o+=String.fromCharCode(s),g):n(s)}function _(i){return i===62?(e.consume(i),r.interrupt?t:O):n(i)}function v(t){return vA(t)?(e.consume(t),v):E(t)}function y(t){return t===47?(e.consume(t),E):t===58||t===95||uA(t)?(e.consume(t),b):vA(t)?(e.consume(t),y):E(t)}function b(t){return t===45||t===46||t===58||t===95||dA(t)?(e.consume(t),b):x(t)}function x(t){return t===61?(e.consume(t),S):vA(t)?(e.consume(t),x):y(t)}function S(t){return t===null||t===60||t===61||t===62||t===96?n(t):t===34||t===39?(e.consume(t),c=t,C):vA(t)?(e.consume(t),S):w(t)}function C(t){return t===c?(e.consume(t),c=null,T):t===null||$(t)?n(t):(e.consume(t),C)}function w(t){return t===null||t===34||t===39||t===47||t===60||t===61||t===62||t===96||_A(t)?x(t):(e.consume(t),w)}function T(e){return e===47||e===62||vA(e)?y(e):n(e)}function E(t){return t===62?(e.consume(t),D):n(t)}function D(t){return t===null||$(t)?O(t):vA(t)?(e.consume(t),D):n(t)}function O(t){return t===45&&i===2?(e.consume(t),A):t===60&&i===1?(e.consume(t),ne):t===62&&i===4?(e.consume(t),ae):t===63&&i===3?(e.consume(t),ie):t===93&&i===5?(e.consume(t),re):$(t)&&(i===6||i===7)?(e.exit(`htmlFlowData`),e.check(jj,oe,k)(t)):t===null||$(t)?(e.exit(`htmlFlowData`),k(t)):(e.consume(t),O)}function k(t){return e.check(Mj,ee,oe)(t)}function ee(t){return e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),te}function te(t){return t===null||$(t)?k(t):(e.enter(`htmlFlowData`),O(t))}function A(t){return t===45?(e.consume(t),ie):O(t)}function ne(t){return t===47?(e.consume(t),o=``,j):O(t)}function j(t){if(t===62){let n=o.toLowerCase();return kj.includes(n)?(e.consume(t),ae):O(t)}return uA(t)&&o.length<8?(e.consume(t),o+=String.fromCharCode(t),j):O(t)}function re(t){return t===93?(e.consume(t),ie):O(t)}function ie(t){return t===62?(e.consume(t),ae):t===45&&i===2?(e.consume(t),ie):O(t)}function ae(t){return t===null||$(t)?(e.exit(`htmlFlowData`),oe(t)):(e.consume(t),ae)}function oe(n){return e.exit(`htmlFlow`),t(n)}}function Fj(e,t,n){let r=this;return i;function i(t){return $(t)?(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),a):n(t)}function a(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}function Ij(e,t,n){return r;function r(r){return e.enter(`lineEnding`),e.consume(r),e.exit(`lineEnding`),e.attempt(RA,t,n)}}var Lj={name:`htmlText`,tokenize:Rj};function Rj(e,t,n){let r=this,i,a,o;return s;function s(t){return e.enter(`htmlText`),e.enter(`htmlTextData`),e.consume(t),c}function c(t){return t===33?(e.consume(t),l):t===47?(e.consume(t),x):t===63?(e.consume(t),y):uA(t)?(e.consume(t),w):n(t)}function l(t){return t===45?(e.consume(t),u):t===91?(e.consume(t),a=0,m):uA(t)?(e.consume(t),v):n(t)}function u(t){return t===45?(e.consume(t),p):n(t)}function d(t){return t===null?n(t):t===45?(e.consume(t),f):$(t)?(o=d,ne(t)):(e.consume(t),d)}function f(t){return t===45?(e.consume(t),p):d(t)}function p(e){return e===62?A(e):e===45?f(e):d(e)}function m(t){return t===`CDATA[`.charCodeAt(a++)?(e.consume(t),a===6?h:m):n(t)}function h(t){return t===null?n(t):t===93?(e.consume(t),g):$(t)?(o=h,ne(t)):(e.consume(t),h)}function g(t){return t===93?(e.consume(t),_):h(t)}function _(t){return t===62?A(t):t===93?(e.consume(t),_):h(t)}function v(t){return t===null||t===62?A(t):$(t)?(o=v,ne(t)):(e.consume(t),v)}function y(t){return t===null?n(t):t===63?(e.consume(t),b):$(t)?(o=y,ne(t)):(e.consume(t),y)}function b(e){return e===62?A(e):y(e)}function x(t){return uA(t)?(e.consume(t),S):n(t)}function S(t){return t===45||dA(t)?(e.consume(t),S):C(t)}function C(t){return $(t)?(o=C,ne(t)):vA(t)?(e.consume(t),C):A(t)}function w(t){return t===45||dA(t)?(e.consume(t),w):t===47||t===62||_A(t)?T(t):n(t)}function T(t){return t===47?(e.consume(t),A):t===58||t===95||uA(t)?(e.consume(t),E):$(t)?(o=T,ne(t)):vA(t)?(e.consume(t),T):A(t)}function E(t){return t===45||t===46||t===58||t===95||dA(t)?(e.consume(t),E):D(t)}function D(t){return t===61?(e.consume(t),O):$(t)?(o=D,ne(t)):vA(t)?(e.consume(t),D):T(t)}function O(t){return t===null||t===60||t===61||t===62||t===96?n(t):t===34||t===39?(e.consume(t),i=t,k):$(t)?(o=O,ne(t)):vA(t)?(e.consume(t),O):(e.consume(t),ee)}function k(t){return t===i?(e.consume(t),i=void 0,te):t===null?n(t):$(t)?(o=k,ne(t)):(e.consume(t),k)}function ee(t){return t===null||t===34||t===39||t===60||t===61||t===96?n(t):t===47||t===62||_A(t)?T(t):(e.consume(t),ee)}function te(e){return e===47||e===62||_A(e)?T(e):n(e)}function A(r){return r===62?(e.consume(r),e.exit(`htmlTextData`),e.exit(`htmlText`),t):n(r)}function ne(t){return e.exit(`htmlTextData`),e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),j}function j(t){return vA(t)?CA(e,re,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):re(t)}function re(t){return e.enter(`htmlTextData`),o(t)}}var zj={name:`labelEnd`,resolveAll:Uj,resolveTo:Wj,tokenize:Gj},Bj={tokenize:Kj},Vj={tokenize:qj},Hj={tokenize:Jj};function Uj(e){let t=-1,n=[];for(;++t=3&&(a===null||$(a))?(e.exit(`thematicBreak`),t(a)):n(a)}function c(t){return t===i?(e.consume(t),r++,c):(e.exit(`thematicBreakSequence`),vA(t)?CA(e,s,`whitespace`)(t):s(t))}}var rM={continuation:{tokenize:sM},exit:lM,name:`list`,tokenize:oM},iM={partial:!0,tokenize:uM},aM={partial:!0,tokenize:cM};function oM(e,t,n){let r=this,i=r.events[r.events.length-1],a=i&&i[1].type===`linePrefix`?i[2].sliceSerialize(i[1],!0).length:0,o=0;return s;function s(t){let i=r.containerState.type||(t===42||t===43||t===45?`listUnordered`:`listOrdered`);if(i===`listUnordered`?!r.containerState.marker||t===r.containerState.marker:mA(t)){if(r.containerState.type||(r.containerState.type=i,e.enter(i,{_container:!0})),i===`listUnordered`)return e.enter(`listItemPrefix`),t===42||t===45?e.check(tM,n,l)(t):l(t);if(!r.interrupt||t===49)return e.enter(`listItemPrefix`),e.enter(`listItemValue`),c(t)}return n(t)}function c(t){return mA(t)&&++o<10?(e.consume(t),c):(!r.interrupt||o<2)&&(r.containerState.marker?t===r.containerState.marker:t===41||t===46)?(e.exit(`listItemValue`),l(t)):n(t)}function l(t){return e.enter(`listItemMarker`),e.consume(t),e.exit(`listItemMarker`),r.containerState.marker=r.containerState.marker||t,e.check(RA,r.interrupt?n:u,e.attempt(iM,f,d))}function u(e){return r.containerState.initialBlankLine=!0,a++,f(e)}function d(t){return vA(t)?(e.enter(`listItemPrefixWhitespace`),e.consume(t),e.exit(`listItemPrefixWhitespace`),f):n(t)}function f(n){return r.containerState.size=a+r.sliceSerialize(e.exit(`listItemPrefix`),!0).length,t(n)}}function sM(e,t,n){let r=this;return r.containerState._closeFlow=void 0,e.check(RA,i,a);function i(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,CA(e,t,`listItemIndent`,r.containerState.size+1)(n)}function a(n){return r.containerState.furtherBlankLines||!vA(n)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(n)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(aM,t,o)(n))}function o(i){return r.containerState._closeFlow=!0,r.interrupt=void 0,CA(e,e.attempt(rM,t,n),`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(i)}}function cM(e,t,n){let r=this;return CA(e,i,`listItemIndent`,r.containerState.size+1);function i(e){let i=r.events[r.events.length-1];return i&&i[1].type===`listItemIndent`&&i[2].sliceSerialize(i[1],!0).length===r.containerState.size?t(e):n(e)}}function lM(e){e.exit(this.containerState.type)}function uM(e,t,n){let r=this;return CA(e,i,`listItemPrefixWhitespace`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:5);function i(e){let i=r.events[r.events.length-1];return!vA(e)&&i&&i[1].type===`listItemPrefixWhitespace`?t(e):n(e)}}var dM={name:`setextUnderline`,resolveTo:fM,tokenize:pM};function fM(e,t){let n=e.length,r,i,a;for(;n--;)if(e[n][0]===`enter`){if(e[n][1].type===`content`){r=n;break}e[n][1].type===`paragraph`&&(i=n)}else e[n][1].type===`content`&&e.splice(n,1),!a&&e[n][1].type===`definition`&&(a=n);let o={type:`setextHeading`,start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type=`setextHeadingText`,a?(e.splice(i,0,[`enter`,o,t]),e.splice(a+1,0,[`exit`,e[r][1],t]),e[r][1].end={...e[a][1].end}):e[r][1]=o,e.push([`exit`,o,t]),e}function pM(e,t,n){let r=this,i;return a;function a(t){let a=r.events.length,s;for(;a--;)if(r.events[a][1].type!==`lineEnding`&&r.events[a][1].type!==`linePrefix`&&r.events[a][1].type!==`content`){s=r.events[a][1].type===`paragraph`;break}return!r.parser.lazy[r.now().line]&&(r.interrupt||s)?(e.enter(`setextHeadingLine`),i=t,o(t)):n(t)}function o(t){return e.enter(`setextHeadingLineSequence`),s(t)}function s(t){return t===i?(e.consume(t),s):(e.exit(`setextHeadingLineSequence`),vA(t)?CA(e,c,`lineSuffix`)(t):c(t))}function c(r){return r===null||$(r)?(e.exit(`setextHeadingLine`),t(r)):n(r)}}var mM={tokenize:hM};function hM(e){let t=this,n=e.attempt(RA,r,e.attempt(this.parser.constructs.flowInitial,i,CA(e,e.attempt(this.parser.constructs.flow,i,e.attempt(uj,i)),`linePrefix`)));return n;function r(r){if(r===null){e.consume(r);return}return e.enter(`lineEndingBlank`),e.consume(r),e.exit(`lineEndingBlank`),t.currentConstruct=void 0,n}function i(r){if(r===null){e.consume(r);return}return e.enter(`lineEnding`),e.consume(r),e.exit(`lineEnding`),t.currentConstruct=void 0,n}}var gM={resolveAll:bM()},_M=yM(`string`),vM=yM(`text`);function yM(e){return{resolveAll:bM(e===`text`?xM:void 0),tokenize:t};function t(t){let n=this,r=this.parser.constructs[e],i=t.attempt(r,a,o);return a;function a(e){return c(e)?i(e):o(e)}function o(e){if(e===null){t.consume(e);return}return t.enter(`data`),t.consume(e),s}function s(e){return c(e)?(t.exit(`data`),i(e)):(t.consume(e),s)}function c(e){if(e===null)return!0;let t=r[e],i=-1;if(t)for(;++iAM,contentInitial:()=>wM,disable:()=>jM,document:()=>CM,flow:()=>EM,flowInitial:()=>TM,insideSpan:()=>kM,string:()=>DM,text:()=>OM}),CM={42:rM,43:rM,45:rM,48:rM,49:rM,50:rM,51:rM,52:rM,53:rM,54:rM,55:rM,56:rM,57:rM,62:BA},wM={91:yj},TM={[-2]:QA,[-1]:QA,32:QA},EM={35:Tj,42:tM,45:[dM,tM],60:Aj,61:dM,95:tM,96:YA,126:YA},DM={38:KA,92:WA},OM={[-5]:$j,[-4]:$j,[-3]:$j,33:Yj,38:KA,42:MA,60:[IA,Lj],91:Zj,92:[Cj,WA],93:zj,95:MA,96:nj},kM={null:[MA,gM]},AM={null:[42,95]},jM={null:[]};function MM(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0},i={},a=[],o=[],s=[],c={attempt:C(x),check:C(S),consume:v,enter:y,exit:b,interrupt:C(S,{interrupt:!0})},l={code:null,containerState:{},defineSkip:h,events:[],now:m,parser:e,previous:null,sliceSerialize:f,sliceStream:p,write:d},u=t.tokenize.call(l,c);return t.resolveAll&&a.push(t),l;function d(e){return o=rA(o,e),g(),o[o.length-1]===null?(w(t,0),l.events=jA(a,l.events,l),l.events):[]}function f(e,t){return PM(p(e),t)}function p(e){return NM(o,e)}function m(){let{_bufferIndex:e,_index:t,line:n,column:i,offset:a}=r;return{_bufferIndex:e,_index:t,line:n,column:i,offset:a}}function h(e){i[e.line]=e.column,E()}function g(){let e;for(;r._index-1){let e=o[0];typeof e==`string`?o[0]=e.slice(r):o.shift()}a>0&&o.push(e[i].slice(0,a))}return o}function PM(e,t){let n=-1,r=[],i;for(;++n0){let e=a.tokenStack[a.tokenStack.length-1];(e[1]||JM).call(a,void 0,e[0])}for(r.position={start:GM(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:GM(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},d=-1;++d0&&(r.className=[`language-`+i[0]]);let a={type:`element`,tagName:`code`,properties:r,children:[{type:`text`,value:n}]};return t.meta&&(a.data={meta:t.meta}),e.patch(t,a),a=e.applyData(t,a),a={type:`element`,tagName:`pre`,properties:{},children:[a]},e.patch(t,a),a}function $M(e,t){let n={type:`element`,tagName:`del`,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function eN(e,t){let n={type:`element`,tagName:`em`,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function tN(e,t){let n=typeof e.options.clobberPrefix==`string`?e.options.clobberPrefix:`user-content-`,r=String(t.identifier).toUpperCase(),i=SA(r.toLowerCase()),a=e.footnoteOrder.indexOf(r),o,s=e.footnoteCounts.get(r);s===void 0?(s=0,e.footnoteOrder.push(r),o=e.footnoteOrder.length):o=a+1,s+=1,e.footnoteCounts.set(r,s);let c={type:`element`,tagName:`a`,properties:{href:`#`+n+`fn-`+i,id:n+`fnref-`+i+(s>1?`-`+s:``),dataFootnoteRef:!0,ariaDescribedBy:[`footnote-label`]},children:[{type:`text`,value:String(o)}]};e.patch(t,c);let l={type:`element`,tagName:`sup`,properties:{},children:[c]};return e.patch(t,l),e.applyData(t,l)}function nN(e,t){let n={type:`element`,tagName:`h`+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function rN(e,t){if(e.options.allowDangerousHtml){let n={type:`raw`,value:t.value};return e.patch(t,n),e.applyData(t,n)}}function iN(e,t){let n=t.referenceType,r=`]`;if(n===`collapsed`?r+=`[]`:n===`full`&&(r+=`[`+(t.label||t.identifier)+`]`),t.type===`imageReference`)return[{type:`text`,value:`![`+t.alt+r}];let i=e.all(t),a=i[0];a&&a.type===`text`?a.value=`[`+a.value:i.unshift({type:`text`,value:`[`});let o=i[i.length-1];return o&&o.type===`text`?o.value+=r:i.push({type:`text`,value:r}),i}function aN(e,t){let n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return iN(e,t);let i={src:SA(r.url||``),alt:t.alt};r.title!==null&&r.title!==void 0&&(i.title=r.title);let a={type:`element`,tagName:`img`,properties:i,children:[]};return e.patch(t,a),e.applyData(t,a)}function oN(e,t){let n={src:SA(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);let r={type:`element`,tagName:`img`,properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function sN(e,t){let n={type:`text`,value:t.value.replace(/\r?\n|\r/g,` `)};e.patch(t,n);let r={type:`element`,tagName:`code`,properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function cN(e,t){let n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return iN(e,t);let i={href:SA(r.url||``)};r.title!==null&&r.title!==void 0&&(i.title=r.title);let a={type:`element`,tagName:`a`,properties:i,children:e.all(t)};return e.patch(t,a),e.applyData(t,a)}function lN(e,t){let n={href:SA(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);let r={type:`element`,tagName:`a`,properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function uN(e,t,n){let r=e.all(t),i=n?dN(n):fN(t),a={},o=[];if(typeof t.checked==`boolean`){let e=r[0],n;e&&e.type===`element`&&e.tagName===`p`?n=e:(n={type:`element`,tagName:`p`,properties:{},children:[]},r.unshift(n)),n.children.length>0&&n.children.unshift({type:`text`,value:` `}),n.children.unshift({type:`element`,tagName:`input`,properties:{type:`checkbox`,checked:t.checked,disabled:!0},children:[]}),a.className=[`task-list-item`]}let s=-1;for(;++s1}function pN(e,t){let n={},r=e.all(t),i=-1;for(typeof t.start==`number`&&t.start!==1&&(n.start=t.start);++i0){let r={type:`element`,tagName:`tbody`,properties:{},children:e.wrap(n,!0)},a=fk(t.children[1]),o=dk(t.children[t.children.length-1]);a&&o&&(r.position={start:a,end:o}),i.push(r)}let a={type:`element`,tagName:`table`,properties:{},children:e.wrap(i,!0)};return e.patch(t,a),e.applyData(t,a)}function vN(e,t,n){let r=n?n.children:void 0,i=(r?r.indexOf(t):1)===0?`th`:`td`,a=n&&n.type===`table`?n.align:void 0,o=a?a.length:t.children.length,s=-1,c=[];for(;++s0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return a.push(CN(t.slice(i),i>0,!1)),a.join(``)}function CN(e,t,n){let r=0,i=e.length;if(t){let t=e.codePointAt(r);for(;t===bN||t===xN;)r++,t=e.codePointAt(r)}if(n){let t=e.codePointAt(i-1);for(;t===bN||t===xN;)i--,t=e.codePointAt(i-1)}return i>r?e.slice(r,i):``}function wN(e,t){let n={type:`text`,value:SN(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function TN(e,t){let n={type:`element`,tagName:`hr`,properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}var EN={blockquote:XM,break:ZM,code:QM,delete:$M,emphasis:eN,footnoteReference:tN,heading:nN,html:rN,imageReference:aN,image:oN,inlineCode:sN,linkReference:cN,link:lN,listItem:uN,list:pN,paragraph:mN,root:hN,strong:gN,table:_N,tableCell:yN,tableRow:vN,text:wN,thematicBreak:TN,toml:DN,yaml:DN,definition:DN,footnoteDefinition:DN};function DN(){}var ON=typeof self==`object`?self:globalThis,kN=(e,t)=>{switch(e){case`Function`:case`SharedWorker`:case`Worker`:case`eval`:case`setInterval`:case`setTimeout`:throw TypeError(`unable to deserialize `+e)}return new ON[e](t)},AN=(e,t)=>{let n=(t,n)=>(e.set(n,t),t),r=i=>{if(e.has(i))return e.get(i);let[a,o]=t[i];switch(a){case 0:case-1:return n(o,i);case 1:{let e=n([],i);for(let t of o)e.push(r(t));return e}case 2:{let e=n({},i);for(let[t,n]of o)e[r(t)]=r(n);return e}case 3:return n(new Date(o),i);case 4:{let{source:e,flags:t}=o;return n(new RegExp(e,t),i)}case 5:{let e=n(new Map,i);for(let[t,n]of o)e.set(r(t),r(n));return e}case 6:{let e=n(new Set,i);for(let t of o)e.add(r(t));return e}case 7:{let{name:e,message:t}=o;return n(typeof ON[e]==`function`?kN(e,t):Error(t),i)}case 8:return n(BigInt(o),i);case`BigInt`:return n(Object(BigInt(o)),i);case`ArrayBuffer`:return n(new Uint8Array(o).buffer,o);case`DataView`:{let{buffer:e}=new Uint8Array(o);return n(new DataView(e),o)}}return n(kN(a,o),i)};return r},jN=e=>AN(new Map,e)(0),MN=``,{toString:NN}={},{keys:PN}=Object,FN=e=>{let t=typeof e;if(t!==`object`||!e)return[0,t];let n=NN.call(e).slice(8,-1);switch(n){case`Array`:return[1,MN];case`Object`:return[2,MN];case`Date`:return[3,MN];case`RegExp`:return[4,MN];case`Map`:return[5,MN];case`Set`:return[6,MN];case`DataView`:return[1,n]}return n.includes(`Array`)?[1,n]:e instanceof Error?[7,e.name||`Error`]:[2,n]},IN=([e,t])=>e===0&&(t===`function`||t===`symbol`),LN=(e,t,n,r)=>{let i=(e,t)=>{let i=r.push(e)-1;return n.set(t,i),i},a=r=>{if(n.has(r))return n.get(r);let[o,s]=FN(r);switch(o){case 0:{let t=r;switch(s){case`bigint`:o=8,t=r.toString();break;case`function`:case`symbol`:if(e)throw TypeError(`unable to serialize `+s);t=null;break;case`undefined`:return i([-1],r)}return i([o,t],r)}case 1:{if(s){let e=r;return s===`DataView`?e=new Uint8Array(r.buffer):s===`ArrayBuffer`&&(e=new Uint8Array(r)),i([s,[...e]],r)}let e=[],t=i([o,e],r);for(let t of r)e.push(a(t));return t}case 2:{if(s)switch(s){case`BigInt`:return i([s,r.toString()],r);case`Boolean`:case`Number`:case`String`:return i([s,r.valueOf()],r)}if(t&&`toJSON`in r)return a(r.toJSON());let n=[],c=i([o,n],r);for(let t of PN(r))(e||!IN(FN(r[t])))&&n.push([a(t),a(r[t])]);return c}case 3:return i([o,isNaN(r.getTime())?MN:r.toISOString()],r);case 4:{let{source:e,flags:t}=r;return i([o,{source:e,flags:t}],r)}case 5:{let t=[],n=i([o,t],r);for(let[n,i]of r)(e||!(IN(FN(n))||IN(FN(i))))&&t.push([a(n),a(i)]);return n}case 6:{let t=[],n=i([o,t],r);for(let n of r)(e||!IN(FN(n)))&&t.push(a(n));return n}}let{message:c}=r;return i([o,{name:s,message:c}],r)};return a},RN=(e,{json:t,lossy:n}={})=>{let r=[];return LN(!(t||n),!!t,new Map,r)(e),r},zN=typeof structuredClone==`function`?(e,t)=>t&&(`json`in t||`lossy`in t)?jN(RN(e,t)):structuredClone(e):(e,t)=>jN(RN(e,t));function BN(e,t){let n=[{type:`text`,value:`↩`}];return t>1&&n.push({type:`element`,tagName:`sup`,properties:{},children:[{type:`text`,value:String(t)}]}),n}function VN(e,t){return`Back to reference `+(e+1)+(t>1?`-`+t:``)}function HN(e){let t=typeof e.options.clobberPrefix==`string`?e.options.clobberPrefix:`user-content-`,n=e.options.footnoteBackContent||BN,r=e.options.footnoteBackLabel||VN,i=e.options.footnoteLabel||`Footnotes`,a=e.options.footnoteLabelTagName||`h2`,o=e.options.footnoteLabelProperties||{className:[`sr-only`]},s=[],c=-1;for(;++c0&&d.push({type:`text`,value:` `});let e=typeof n==`string`?n:n(c,u);typeof e==`string`&&(e={type:`text`,value:e}),d.push({type:`element`,tagName:`a`,properties:{href:`#`+t+`fnref-`+l+(u>1?`-`+u:``),dataFootnoteBackref:``,ariaLabel:typeof r==`string`?r:r(c,u),className:[`data-footnote-backref`]},children:Array.isArray(e)?e:[e]})}let p=a[a.length-1];if(p&&p.type===`element`&&p.tagName===`p`){let e=p.children[p.children.length-1];e&&e.type===`text`?e.value+=` `:p.children.push({type:`text`,value:` `}),p.children.push(...d)}else a.push(...d);let m={type:`element`,tagName:`li`,properties:{id:t+`fn-`+l},children:e.wrap(a,!0)};e.patch(i,m),s.push(m)}if(s.length!==0)return{type:`element`,tagName:`section`,properties:{dataFootnotes:!0,className:[`footnotes`]},children:[{type:`element`,tagName:a,properties:{...zN(o),id:`footnote-label`},children:[{type:`text`,value:i}]},{type:`text`,value:` -`},{type:`element`,tagName:`ol`,properties:{},children:e.wrap(s,!0)},{type:`text`,value:` -`}]}}var UN=(function(e){if(e==null)return JN;if(typeof e==`function`)return qN(e);if(typeof e==`object`)return Array.isArray(e)?WN(e):GN(e);if(typeof e==`string`)return KN(e);throw Error(`Expected function, string, or object as test`)});function WN(e){let t=[],n=-1;for(;++n`:``))+`)`})}return u;function u(){let l=ZN,u,d,f;if((!t||a(e,i,c[c.length-1]||void 0))&&(l=$N(n(e,c)),l[0]===!1))return l;if(`children`in e&&e.children){let t=e;if(t.children&&l[0]!==`skip`)for(d=(r?t.children.length:-1)+o,f=c.concat(t);d>-1&&d0&&n.push({type:`text`,value:` -`}),n}function cP(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function lP(e,t){let n=rP(e,t),r=n.one(e,void 0),i=HN(n),a=Array.isArray(r)?{type:`root`,children:r}:r||{type:`root`,children:[]};return i&&(`children`in a,a.children.push({type:`text`,value:` -`},i)),a}function uP(e,t){return e&&`run`in e?async function(n,r){let i=lP(n,{file:r,...t});await e.run(i,r)}:function(n,r){return lP(n,{file:r,...e||t})}}function dP(e){if(e)throw e}var fP=i(((e,t)=>{var n=Object.prototype.hasOwnProperty,r=Object.prototype.toString,i=Object.defineProperty,a=Object.getOwnPropertyDescriptor,o=function(e){return typeof Array.isArray==`function`?Array.isArray(e):r.call(e)===`[object Array]`},s=function(e){if(!e||r.call(e)!==`[object Object]`)return!1;var t=n.call(e,`constructor`),i=e.constructor&&e.constructor.prototype&&n.call(e.constructor.prototype,`isPrototypeOf`);if(e.constructor&&!t&&!i)return!1;for(var a in e);return a===void 0||n.call(e,a)},c=function(e,t){i&&t.name===`__proto__`?i(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(e,t){if(t===`__proto__`){if(!n.call(e,t))return;if(a)return a(e,t).value}return e[t]};t.exports=function e(){var t,n,r,i,a,u,d=arguments[0],f=1,p=arguments.length,m=!1;for(typeof d==`boolean`&&(m=d,d=arguments[1]||{},f=2),(d==null||typeof d!=`object`&&typeof d!=`function`)&&(d={});ft.length,o;r&&t.push(i);try{o=e.apply(this,t)}catch(e){let t=e;if(r&&n)throw t;return i(t)}r||(o&&o.then&&typeof o.then==`function`?o.then(a,i):o instanceof Error?i(o):a(o))}function i(e,...r){n||(n=!0,t(e,...r))}function a(e){i(null,e)}}var gP={basename:_P,dirname:vP,extname:yP,join:bP,sep:`/`};function _P(e,t){if(t!==void 0&&typeof t!=`string`)throw TypeError(`"ext" argument must be a string`);CP(e);let n=0,r=-1,i=e.length,a;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(a){n=i+1;break}}else r<0&&(a=!0,r=i+1);return r<0?``:e.slice(n,r)}if(t===e)return``;let o=-1,s=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(a){n=i+1;break}}else o<0&&(a=!0,o=i+1),s>-1&&(e.codePointAt(i)===t.codePointAt(s--)?s<0&&(r=i):(s=-1,r=o));return n===r?r=o:r<0&&(r=e.length),e.slice(n,r)}function vP(e){if(CP(e),e.length===0)return`.`;let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||=!0;return t<0?e.codePointAt(0)===47?`/`:`.`:t===1&&e.codePointAt(0)===47?`//`:e.slice(0,t)}function yP(e){CP(e);let t=e.length,n=-1,r=0,i=-1,a=0,o;for(;t--;){let s=e.codePointAt(t);if(s===47){if(o){r=t+1;break}continue}n<0&&(o=!0,n=t+1),s===46?i<0?i=t:a!==1&&(a=1):i>-1&&(a=-1)}return i<0||n<0||a===0||a===1&&i===n-1&&i===r+1?``:e.slice(i,n)}function bP(...e){let t=-1,n;for(;++t0&&e.codePointAt(e.length-1)===47&&(n+=`/`),t?`/`+n:n}function SP(e,t){let n=``,r=0,i=-1,a=0,o=-1,s,c;for(;++o<=e.length;){if(o2){if(c=n.lastIndexOf(`/`),c!==n.length-1){c<0?(n=``,r=0):(n=n.slice(0,c),r=n.length-1-n.lastIndexOf(`/`)),i=o,a=0;continue}}else if(n.length>0){n=``,r=0,i=o,a=0;continue}}t&&(n=n.length>0?n+`/..`:`..`,r=2)}else n.length>0?n+=`/`+e.slice(i+1,o):n=e.slice(i+1,o),r=o-i-1;i=o,a=0}else s===46&&a>-1?a++:a=-1}return n}function CP(e){if(typeof e!=`string`)throw TypeError(`Path must be a string. Received `+JSON.stringify(e))}var wP={cwd:TP};function TP(){return`/`}function EP(e){return!!(typeof e==`object`&&e&&`href`in e&&e.href&&`protocol`in e&&e.protocol&&e.auth===void 0)}function DP(e){if(typeof e==`string`)e=new URL(e);else if(!EP(e)){let t=TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code=`ERR_INVALID_ARG_TYPE`,t}if(e.protocol!==`file:`){let e=TypeError(`The URL must be of scheme file`);throw e.code=`ERR_INVALID_URL_SCHEME`,e}return OP(e)}function OP(e){if(e.hostname!==``){let e=TypeError(`File URL host must be "localhost" or empty on darwin`);throw e.code=`ERR_INVALID_FILE_URL_HOST`,e}let t=e.pathname,n=-1;for(;++n0){let[r,...a]=t,o=n[i][1];pP(o)&&pP(r)&&(r=(0,IP.default)(!0,o,r)),n[i]=[e,r,...a]}}}}().freeze();function zP(e,t){if(typeof t!=`function`)throw TypeError("Cannot `"+e+"` without `parser`")}function BP(e,t){if(typeof t!=`function`)throw TypeError("Cannot `"+e+"` without `compiler`")}function VP(e,t){if(t)throw Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function HP(e){if(!pP(e)||typeof e.type!=`string`)throw TypeError("Expected node, got `"+e+"`")}function UP(e,t,n){if(!n)throw Error("`"+e+"` finished async. Use `"+t+"` instead")}function WP(e){return GP(e)?e:new AP(e)}function GP(e){return!!(e&&typeof e==`object`&&`message`in e&&`messages`in e)}function KP(e){return typeof e==`string`||qP(e)}function qP(e){return!!(e&&typeof e==`object`&&`byteLength`in e&&`byteOffset`in e)}var JP=[],YP={allowDangerousHtml:!0},XP=/^(https?|ircs?|mailto|xmpp)$/i,ZP=[{from:`astPlugins`,id:`remove-buggy-html-in-markdown-parser`},{from:`allowDangerousHtml`,id:`remove-buggy-html-in-markdown-parser`},{from:`allowNode`,id:`replace-allownode-allowedtypes-and-disallowedtypes`,to:`allowElement`},{from:`allowedTypes`,id:`replace-allownode-allowedtypes-and-disallowedtypes`,to:`allowedElements`},{from:`className`,id:`remove-classname`},{from:`disallowedTypes`,id:`replace-allownode-allowedtypes-and-disallowedtypes`,to:`disallowedElements`},{from:`escapeHtml`,id:`remove-buggy-html-in-markdown-parser`},{from:`includeElementIndex`,id:`#remove-includeelementindex`},{from:`includeNodeIndex`,id:`change-includenodeindex-to-includeelementindex`},{from:`linkTarget`,id:`remove-linktarget`},{from:`plugins`,id:`change-plugins-to-remarkplugins`,to:`remarkPlugins`},{from:`rawSourcePos`,id:`#remove-rawsourcepos`},{from:`renderers`,id:`change-renderers-to-components`,to:`components`},{from:`source`,id:`change-source-to-children`,to:`children`},{from:`sourcePos`,id:`#remove-sourcepos`},{from:`transformImageUri`,id:`#add-urltransform`,to:`urlTransform`},{from:`transformLinkUri`,id:`#add-urltransform`,to:`urlTransform`}];function QP(e){let t=$P(e),n=eF(e);return tF(t.runSync(t.parse(n),n),e)}function $P(e){let t=e.rehypePlugins||JP,n=e.remarkPlugins||JP,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...YP}:YP;return RP().use(YM).use(n).use(uP,r).use(t)}function eF(e){let t=e.children||``,n=new AP;return typeof t==`string`?n.value=t:``+t,n}function tF(e,t){let n=t.allowedElements,r=t.allowElement,i=t.components,a=t.disallowedElements,o=t.skipHtml,s=t.unwrapDisallowed,c=t.urlTransform||nF;for(let e of ZP)Object.hasOwn(t,e.from)&&``+e.from+(e.to?"use `"+e.to+"` instead":`remove it`)+e.id;return eP(e,l),Ek(e,{Fragment:F.Fragment,components:i,ignoreInvalidStyle:!0,jsx:F.jsx,jsxs:F.jsxs,passKeys:!0,passNode:!0});function l(e,t,i){if(e.type===`raw`&&i&&typeof t==`number`)return o?i.children.splice(t,1):i.children[t]={type:`text`,value:e.value},t;if(e.type===`element`){let t;for(t in Jk)if(Object.hasOwn(Jk,t)&&Object.hasOwn(e.properties,t)){let n=e.properties[t],r=Jk[t];(r===null||r.includes(e.tagName))&&(e.properties[t]=c(String(n||``),t,e))}}if(e.type===`element`){let o=n?!n.includes(e.tagName):a?a.includes(e.tagName):!1;if(!o&&r&&typeof t==`number`&&(o=!r(e,t,i)),o&&i&&typeof t==`number`)return s&&e.children?i.children.splice(t,1,...e.children):i.children.splice(t,1),t}}}function nF(e){let t=e.indexOf(`:`),n=e.indexOf(`?`),r=e.indexOf(`#`),i=e.indexOf(`/`);return t===-1||i!==-1&&t>i||n!==-1&&t>n||r!==-1&&t>r||XP.test(e.slice(0,t))?e:``}function rF(e,t){let n=String(e);if(typeof t!=`string`)throw TypeError(`Expected character`);let r=0,i=n.indexOf(t);for(;i!==-1;)r++,i=n.indexOf(t,i+t.length);return r}function iF(e){if(typeof e!=`string`)throw TypeError(`Expected a string`);return e.replace(/[|\\{}()[\]^$+*?.]/g,`\\$&`).replace(/-/g,`\\x2d`)}function aF(e,t,n){let r=UN((n||{}).ignore||[]),i=oF(t),a=-1;for(;++a0?{type:`text`,value:a}:void 0),a===!1?r.lastIndex=n+1:(s!==n&&u.push({type:`text`,value:e.value.slice(s,n)}),Array.isArray(a)?u.push(...a):a&&u.push(a),s=n+d[0].length,l=!0),!r.global)break;d=r.exec(e.value)}return l?(s?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(`)`),i=rF(e,`(`),a=rF(e,`)`);for(;r!==-1&&i>a;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(`)`),a++;return[e,n]}function wF(e,t){let n=e.input.charCodeAt(e.index-1);return(e.index===0||bA(n)||yA(n))&&(!t||n!==47)}PF.peek=NF;function TF(){this.buffer()}function EF(e){this.enter({type:`footnoteReference`,identifier:``,label:``},e)}function DF(){this.buffer()}function OF(e){this.enter({type:`footnoteDefinition`,identifier:``,label:``,children:[]},e)}function kF(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=lA(this.sliceSerialize(e)).toLowerCase(),n.label=t}function AF(e){this.exit(e)}function jF(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=lA(this.sliceSerialize(e)).toLowerCase(),n.label=t}function MF(e){this.exit(e)}function NF(){return`[`}function PF(e,t,n,r){let i=n.createTracker(r),a=i.move(`[^`),o=n.enter(`footnoteReference`),s=n.enter(`reference`);return a+=i.move(n.safe(n.associationId(e),{after:`]`,before:a})),s(),o(),a+=i.move(`]`),a}function FF(){return{enter:{gfmFootnoteCallString:TF,gfmFootnoteCall:EF,gfmFootnoteDefinitionLabelString:DF,gfmFootnoteDefinition:OF},exit:{gfmFootnoteCallString:kF,gfmFootnoteCall:AF,gfmFootnoteDefinitionLabelString:jF,gfmFootnoteDefinition:MF}}}function IF(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:n,footnoteReference:PF},unsafe:[{character:`[`,inConstruct:[`label`,`phrasing`,`reference`]}]};function n(e,n,r,i){let a=r.createTracker(i),o=a.move(`[^`),s=r.enter(`footnoteDefinition`),c=r.enter(`label`);return o+=a.move(r.safe(r.associationId(e),{before:o,after:`]`})),c(),o+=a.move(`]:`),e.children&&e.children.length>0&&(a.shift(4),o+=a.move((t?` -`:` `)+r.indentLines(r.containerFlow(e,a.current()),t?RF:LF))),s(),o}}function LF(e,t,n){return t===0?e:RF(e,t,n)}function RF(e,t,n){return(n?``:` `)+e}var zF=[`autolink`,`destinationLiteral`,`destinationRaw`,`reference`,`titleQuote`,`titleApostrophe`];WF.peek=GF;function BF(){return{canContainEols:[`delete`],enter:{strikethrough:HF},exit:{strikethrough:UF}}}function VF(){return{unsafe:[{character:`~`,inConstruct:`phrasing`,notInConstruct:zF}],handlers:{delete:WF}}}function HF(e){this.enter({type:`delete`,children:[]},e)}function UF(e){this.exit(e)}function WF(e,t,n,r){let i=n.createTracker(r),a=n.enter(`strikethrough`),o=i.move(`~~`);return o+=n.containerPhrasing(e,{...i.current(),before:o,after:`~`}),o+=i.move(`~~`),a(),o}function GF(){return`~`}function KF(e){return e.length}function qF(e,t){let n=t||{},r=(n.align||[]).concat(),i=n.stringLength||KF,a=[],o=[],s=[],c=[],l=0,u=-1;for(;++ul&&(l=e[u].length);++ac[a])&&(c[a]=e)}t.push(o)}o[u]=t,s[u]=r}let d=-1;if(typeof r==`object`&&`length`in r)for(;++dc[d]&&(c[d]=i),p[d]=i),f[d]=o}o.splice(1,0,f),s.splice(1,0,p),u=-1;let m=[];for(;++u `),a.shift(2);let o=n.indentLines(n.containerFlow(e,a.current()),ZF);return i(),o}function ZF(e,t,n){return`>`+(n?``:` `)+e}function QF(e,t){return $F(e,t.inConstruct,!0)&&!$F(e,t.notInConstruct,!1)}function $F(e,t,n){if(typeof t==`string`&&(t=[t]),!t||t.length===0)return n;let r=-1;for(;++ro&&(o=a):a=1,i=r+t.length,r=n.indexOf(t,i);return o}function nI(e,t){return!!(t.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function rI(e){let t=e.options.fence||"`";if(t!=="`"&&t!==`~`)throw Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}function iI(e,t,n,r){let i=rI(n),a=e.value||``,o=i==="`"?`GraveAccent`:`Tilde`;if(nI(e,n)){let e=n.enter(`codeIndented`),t=n.indentLines(a,aI);return e(),t}let s=n.createTracker(r),c=i.repeat(Math.max(tI(a,i)+1,3)),l=n.enter(`codeFenced`),u=s.move(c);if(e.lang){let t=n.enter(`codeFencedLang${o}`);u+=s.move(n.safe(e.lang,{before:u,after:` `,encode:["`"],...s.current()})),t()}if(e.lang&&e.meta){let t=n.enter(`codeFencedMeta${o}`);u+=s.move(` `),u+=s.move(n.safe(e.meta,{before:u,after:` -`,encode:["`"],...s.current()})),t()}return u+=s.move(` -`),a&&(u+=s.move(a+` -`)),u+=s.move(c),l(),u}function aI(e,t,n){return(n?``:` `)+e}function oI(e){let t=e.options.quote||`"`;if(t!==`"`&&t!==`'`)throw Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function sI(e,t,n,r){let i=oI(n),a=i===`"`?`Quote`:`Apostrophe`,o=n.enter(`definition`),s=n.enter(`label`),c=n.createTracker(r),l=c.move(`[`);return l+=c.move(n.safe(n.associationId(e),{before:l,after:`]`,...c.current()})),l+=c.move(`]: `),s(),!e.url||/[\0- \u007F]/.test(e.url)?(s=n.enter(`destinationLiteral`),l+=c.move(`<`),l+=c.move(n.safe(e.url,{before:l,after:`>`,...c.current()})),l+=c.move(`>`)):(s=n.enter(`destinationRaw`),l+=c.move(n.safe(e.url,{before:l,after:e.title?` `:` -`,...c.current()}))),s(),e.title&&(s=n.enter(`title${a}`),l+=c.move(` `+i),l+=c.move(n.safe(e.title,{before:l,after:i,...c.current()})),l+=c.move(i),s()),o(),l}function cI(e){let t=e.options.emphasis||`*`;if(t!==`*`&&t!==`_`)throw Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}function lI(e){return`&#x`+e.toString(16).toUpperCase()+`;`}function uI(e,t,n){let r=AA(e),i=AA(t);return r===void 0?i===void 0?n===`_`?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:r===1?i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}dI.peek=fI;function dI(e,t,n,r){let i=cI(n),a=n.enter(`emphasis`),o=n.createTracker(r),s=o.move(i),c=o.move(n.containerPhrasing(e,{after:i,before:s,...o.current()})),l=c.charCodeAt(0),u=uI(r.before.charCodeAt(r.before.length-1),l,i);u.inside&&(c=lI(l)+c.slice(1));let d=c.charCodeAt(c.length-1),f=uI(r.after.charCodeAt(0),d,i);f.inside&&(c=c.slice(0,-1)+lI(d));let p=o.move(i);return a(),n.attentionEncodeSurroundingInfo={after:f.outside,before:u.outside},s+c+p}function fI(e,t,n){return n.options.emphasis||`*`}function pI(e,t){let n=!1;return eP(e,function(e){if(`value`in e&&/\r?\n|\r/.test(e.value)||e.type===`break`)return n=!0,!1}),!!((!e.depth||e.depth<3)&&Xk(e)&&(t.options.setext||n))}function mI(e,t,n,r){let i=Math.max(Math.min(6,e.depth||1),1),a=n.createTracker(r);if(pI(e,n)){let t=n.enter(`headingSetext`),r=n.enter(`phrasing`),o=n.containerPhrasing(e,{...a.current(),before:` -`,after:` -`});return r(),t(),o+` -`+(i===1?`=`:`-`).repeat(o.length-(Math.max(o.lastIndexOf(`\r`),o.lastIndexOf(` -`))+1))}let o=`#`.repeat(i),s=n.enter(`headingAtx`),c=n.enter(`phrasing`);a.move(o+` `);let l=n.containerPhrasing(e,{before:`# `,after:` -`,...a.current()});return/^[\t ]/.test(l)&&(l=lI(l.charCodeAt(0))+l.slice(1)),l=l?o+` `+l:o,n.options.closeAtx&&(l+=` `+o),c(),s(),l}hI.peek=gI;function hI(e){return e.value||``}function gI(){return`<`}_I.peek=vI;function _I(e,t,n,r){let i=oI(n),a=i===`"`?`Quote`:`Apostrophe`,o=n.enter(`image`),s=n.enter(`label`),c=n.createTracker(r),l=c.move(`![`);return l+=c.move(n.safe(e.alt,{before:l,after:`]`,...c.current()})),l+=c.move(`](`),s(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(s=n.enter(`destinationLiteral`),l+=c.move(`<`),l+=c.move(n.safe(e.url,{before:l,after:`>`,...c.current()})),l+=c.move(`>`)):(s=n.enter(`destinationRaw`),l+=c.move(n.safe(e.url,{before:l,after:e.title?` `:`)`,...c.current()}))),s(),e.title&&(s=n.enter(`title${a}`),l+=c.move(` `+i),l+=c.move(n.safe(e.title,{before:l,after:i,...c.current()})),l+=c.move(i),s()),l+=c.move(`)`),o(),l}function vI(){return`!`}yI.peek=bI;function yI(e,t,n,r){let i=e.referenceType,a=n.enter(`imageReference`),o=n.enter(`label`),s=n.createTracker(r),c=s.move(`![`),l=n.safe(e.alt,{before:c,after:`]`,...s.current()});c+=s.move(l+`][`),o();let u=n.stack;n.stack=[],o=n.enter(`reference`);let d=n.safe(n.associationId(e),{before:c,after:`]`,...s.current()});return o(),n.stack=u,a(),i===`full`||!l||l!==d?c+=s.move(d+`]`):i===`shortcut`?c=c.slice(0,-1):c+=s.move(`]`),c}function bI(){return`!`}xI.peek=SI;function xI(e,t,n){let r=e.value||``,i="`",a=-1;for(;RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=` `+r+` `);++a\u007F]/.test(e.url))}wI.peek=TI;function wI(e,t,n,r){let i=oI(n),a=i===`"`?`Quote`:`Apostrophe`,o=n.createTracker(r),s,c;if(CI(e,n)){let t=n.stack;n.stack=[],s=n.enter(`autolink`);let r=o.move(`<`);return r+=o.move(n.containerPhrasing(e,{before:r,after:`>`,...o.current()})),r+=o.move(`>`),s(),n.stack=t,r}s=n.enter(`link`),c=n.enter(`label`);let l=o.move(`[`);return l+=o.move(n.containerPhrasing(e,{before:l,after:`](`,...o.current()})),l+=o.move(`](`),c(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(c=n.enter(`destinationLiteral`),l+=o.move(`<`),l+=o.move(n.safe(e.url,{before:l,after:`>`,...o.current()})),l+=o.move(`>`)):(c=n.enter(`destinationRaw`),l+=o.move(n.safe(e.url,{before:l,after:e.title?` `:`)`,...o.current()}))),c(),e.title&&(c=n.enter(`title${a}`),l+=o.move(` `+i),l+=o.move(n.safe(e.title,{before:l,after:i,...o.current()})),l+=o.move(i),c()),l+=o.move(`)`),s(),l}function TI(e,t,n){return CI(e,n)?`<`:`[`}EI.peek=DI;function EI(e,t,n,r){let i=e.referenceType,a=n.enter(`linkReference`),o=n.enter(`label`),s=n.createTracker(r),c=s.move(`[`),l=n.containerPhrasing(e,{before:c,after:`]`,...s.current()});c+=s.move(l+`][`),o();let u=n.stack;n.stack=[],o=n.enter(`reference`);let d=n.safe(n.associationId(e),{before:c,after:`]`,...s.current()});return o(),n.stack=u,a(),i===`full`||!l||l!==d?c+=s.move(d+`]`):i===`shortcut`?c=c.slice(0,-1):c+=s.move(`]`),c}function DI(){return`[`}function OI(e){let t=e.options.bullet||`*`;if(t!==`*`&&t!==`+`&&t!==`-`)throw Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function kI(e){let t=OI(e),n=e.options.bulletOther;if(!n)return t===`*`?`-`:`*`;if(n!==`*`&&n!==`+`&&n!==`-`)throw Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}function AI(e){let t=e.options.bulletOrdered||`.`;if(t!==`.`&&t!==`)`)throw Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function jI(e){let t=e.options.rule||`*`;if(t!==`*`&&t!==`-`&&t!==`_`)throw Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function MI(e,t,n,r){let i=n.enter(`list`),a=n.bulletCurrent,o=e.ordered?AI(n):OI(n),s=e.ordered?o===`.`?`)`:`.`:kI(n),c=t&&n.bulletLastUsed?o===n.bulletLastUsed:!1;if(!e.ordered){let t=e.children?e.children[0]:void 0;if((o===`*`||o===`-`)&&t&&(!t.children||!t.children[0])&&n.stack[n.stack.length-1]===`list`&&n.stack[n.stack.length-2]===`listItem`&&n.stack[n.stack.length-3]===`list`&&n.stack[n.stack.length-4]===`listItem`&&n.indexStack[n.indexStack.length-1]===0&&n.indexStack[n.indexStack.length-2]===0&&n.indexStack[n.indexStack.length-3]===0&&(c=!0),jI(n)===o&&t){let t=-1;for(;++t-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+a);let o=a.length+1;(i===`tab`||i===`mixed`&&(t&&t.type===`list`&&t.spread||e.spread))&&(o=Math.ceil(o/4)*4);let s=n.createTracker(r);s.move(a+` `.repeat(o-a.length)),s.shift(o);let c=n.enter(`listItem`),l=n.indentLines(n.containerFlow(e,s.current()),u);return c(),l;function u(e,t,n){return t?(n?``:` `.repeat(o))+e:(n?a:a+` `.repeat(o-a.length))+e}}function FI(e,t,n,r){let i=n.enter(`paragraph`),a=n.enter(`phrasing`),o=n.containerPhrasing(e,r);return a(),i(),o}var II=UN([`break`,`delete`,`emphasis`,`footnote`,`footnoteReference`,`image`,`imageReference`,`inlineCode`,`inlineMath`,`link`,`linkReference`,`mdxJsxTextElement`,`mdxTextExpression`,`strong`,`text`,`textDirective`]);function LI(e,t,n,r){return(e.children.some(function(e){return II(e)})?n.containerPhrasing:n.containerFlow).call(n,e,r)}function RI(e){let t=e.options.strong||`*`;if(t!==`*`&&t!==`_`)throw Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}zI.peek=BI;function zI(e,t,n,r){let i=RI(n),a=n.enter(`strong`),o=n.createTracker(r),s=o.move(i+i),c=o.move(n.containerPhrasing(e,{after:i,before:s,...o.current()})),l=c.charCodeAt(0),u=uI(r.before.charCodeAt(r.before.length-1),l,i);u.inside&&(c=lI(l)+c.slice(1));let d=c.charCodeAt(c.length-1),f=uI(r.after.charCodeAt(0),d,i);f.inside&&(c=c.slice(0,-1)+lI(d));let p=o.move(i+i);return a(),n.attentionEncodeSurroundingInfo={after:f.outside,before:u.outside},s+c+p}function BI(e,t,n){return n.options.strong||`*`}function VI(e,t,n,r){return n.safe(e.value,r)}function HI(e){let t=e.options.ruleRepetition||3;if(t<3)throw Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function UI(e,t,n){let r=(jI(n)+(n.options.ruleSpaces?` `:``)).repeat(HI(n));return n.options.ruleSpaces?r.slice(0,-1):r}var WI={blockquote:XF,break:eI,code:iI,definition:sI,emphasis:dI,hardBreak:eI,heading:mI,html:hI,image:_I,imageReference:yI,inlineCode:xI,link:wI,linkReference:EI,list:MI,listItem:PI,paragraph:FI,root:LI,strong:zI,text:VI,thematicBreak:UI};function GI(){return{enter:{table:KI,tableData:XI,tableHeader:XI,tableRow:JI},exit:{codeText:ZI,table:qI,tableData:YI,tableHeader:YI,tableRow:YI}}}function KI(e){let t=e._align;this.enter({type:`table`,align:t.map(function(e){return e===`none`?null:e}),children:[]},e),this.data.inTable=!0}function qI(e){this.exit(e),this.data.inTable=void 0}function JI(e){this.enter({type:`tableRow`,children:[]},e)}function YI(e){this.exit(e)}function XI(e){this.enter({type:`tableCell`,children:[]},e)}function ZI(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,QI));let n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function QI(e,t){return t===`|`?t:e}function $I(e){let t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,i=t.stringLength,a=n?` `:`|`;return{unsafe:[{character:`\r`,inConstruct:`tableCell`},{character:` -`,inConstruct:`tableCell`},{atBreak:!0,character:`|`,after:`[ :-]`},{character:`|`,inConstruct:`tableCell`},{atBreak:!0,character:`:`,after:`-`},{atBreak:!0,character:`-`,after:`[:|-]`}],handlers:{inlineCode:f,table:o,tableCell:c,tableRow:s}};function o(e,t,n,r){return l(u(e,n,r),e.align)}function s(e,t,n,r){let i=l([d(e,n,r)]);return i.slice(0,i.indexOf(` -`))}function c(e,t,n,r){let i=n.enter(`tableCell`),o=n.enter(`phrasing`),s=n.containerPhrasing(e,{...r,before:a,after:a});return o(),i(),s}function l(e,t){return qF(e,{align:t,alignDelimiters:r,padding:n,stringLength:i})}function u(e,t,n){let r=e.children,i=-1,a=[],o=t.enter(`table`);for(;++i0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}var jL={tokenize:zL,partial:!0};function ML(){return{document:{91:{name:`gfmFootnoteDefinition`,tokenize:IL,continuation:{tokenize:LL},exit:RL}},text:{91:{name:`gfmFootnoteCall`,tokenize:FL},93:{name:`gfmPotentialFootnoteCall`,add:`after`,tokenize:NL,resolveTo:PL}}}}function NL(e,t,n){let r=this,i=r.events.length,a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]),o;for(;i--;){let e=r.events[i][1];if(e.type===`labelImage`){o=e;break}if(e.type===`gfmFootnoteCall`||e.type===`labelLink`||e.type===`label`||e.type===`image`||e.type===`link`)break}return s;function s(i){if(!o||!o._balanced)return n(i);let s=lA(r.sliceSerialize({start:o.end,end:r.now()}));return s.codePointAt(0)!==94||!a.includes(s.slice(1))?n(i):(e.enter(`gfmFootnoteCallLabelMarker`),e.consume(i),e.exit(`gfmFootnoteCallLabelMarker`),t(i))}}function PL(e,t){let n=e.length;for(;n--;)if(e[n][1].type===`labelImage`&&e[n][0]===`enter`){e[n][1];break}e[n+1][1].type=`data`,e[n+3][1].type=`gfmFootnoteCallLabelMarker`;let r={type:`gfmFootnoteCall`,start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:`gfmFootnoteCallMarker`,start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;let a={type:`gfmFootnoteCallString`,start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},o={type:`chunkString`,contentType:`string`,start:Object.assign({},a.start),end:Object.assign({},a.end)},s=[e[n+1],e[n+2],[`enter`,r,t],e[n+3],e[n+4],[`enter`,i,t],[`exit`,i,t],[`enter`,a,t],[`enter`,o,t],[`exit`,o,t],[`exit`,a,t],e[e.length-2],e[e.length-1],[`exit`,r,t]];return e.splice(n,e.length-n+1,...s),e}function FL(e,t,n){let r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]),a=0,o;return s;function s(t){return e.enter(`gfmFootnoteCall`),e.enter(`gfmFootnoteCallLabelMarker`),e.consume(t),e.exit(`gfmFootnoteCallLabelMarker`),c}function c(t){return t===94?(e.enter(`gfmFootnoteCallMarker`),e.consume(t),e.exit(`gfmFootnoteCallMarker`),e.enter(`gfmFootnoteCallString`),e.enter(`chunkString`).contentType=`string`,l):n(t)}function l(s){if(a>999||s===93&&!o||s===null||s===91||_A(s))return n(s);if(s===93){e.exit(`chunkString`);let a=e.exit(`gfmFootnoteCallString`);return i.includes(lA(r.sliceSerialize(a)))?(e.enter(`gfmFootnoteCallLabelMarker`),e.consume(s),e.exit(`gfmFootnoteCallLabelMarker`),e.exit(`gfmFootnoteCall`),t):n(s)}return _A(s)||(o=!0),a++,e.consume(s),s===92?u:l}function u(t){return t===91||t===92||t===93?(e.consume(t),a++,l):l(t)}}function IL(e,t,n){let r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]),a,o=0,s;return c;function c(t){return e.enter(`gfmFootnoteDefinition`)._container=!0,e.enter(`gfmFootnoteDefinitionLabel`),e.enter(`gfmFootnoteDefinitionLabelMarker`),e.consume(t),e.exit(`gfmFootnoteDefinitionLabelMarker`),l}function l(t){return t===94?(e.enter(`gfmFootnoteDefinitionMarker`),e.consume(t),e.exit(`gfmFootnoteDefinitionMarker`),e.enter(`gfmFootnoteDefinitionLabelString`),e.enter(`chunkString`).contentType=`string`,u):n(t)}function u(t){if(o>999||t===93&&!s||t===null||t===91||_A(t))return n(t);if(t===93){e.exit(`chunkString`);let n=e.exit(`gfmFootnoteDefinitionLabelString`);return a=lA(r.sliceSerialize(n)),e.enter(`gfmFootnoteDefinitionLabelMarker`),e.consume(t),e.exit(`gfmFootnoteDefinitionLabelMarker`),e.exit(`gfmFootnoteDefinitionLabel`),f}return _A(t)||(s=!0),o++,e.consume(t),t===92?d:u}function d(t){return t===91||t===92||t===93?(e.consume(t),o++,u):u(t)}function f(t){return t===58?(e.enter(`definitionMarker`),e.consume(t),e.exit(`definitionMarker`),i.includes(a)||i.push(a),CA(e,p,`gfmFootnoteDefinitionWhitespace`)):n(t)}function p(e){return t(e)}}function LL(e,t,n){return e.check(RA,t,e.attempt(jL,t,n))}function RL(e){e.exit(`gfmFootnoteDefinition`)}function zL(e,t,n){let r=this;return CA(e,i,`gfmFootnoteDefinitionIndent`,5);function i(e){let i=r.events[r.events.length-1];return i&&i[1].type===`gfmFootnoteDefinitionIndent`&&i[2].sliceSerialize(i[1],!0).length===4?t(e):n(e)}}function BL(e){let t=(e||{}).singleTilde,n={name:`strikethrough`,tokenize:i,resolveAll:r};return t??=!0,{text:{126:n},insideSpan:{null:[n]},attentionMarkers:{null:[126]}};function r(e,t){let n=-1;for(;++n1?r(a):(e.consume(a),o++,c);if(o<2&&!t)return r(a);let l=e.exit(`strikethroughSequenceTemporary`),u=AA(a);return l._open=!u||u===2&&!!s,l._close=!s||s===2&&!!u,n(a)}}}var VL=class{constructor(){this.map=[]}add(e,t,n){HL(this,e,t,n)}consume(e){if(this.map.sort(function(e,t){return e[0]-t[0]}),this.map.length===0)return;let t=this.map.length,n=[];for(;t>0;)--t,n.push(e.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),e.length=this.map[t][0];n.push(e.slice()),e.length=0;let r=n.pop();for(;r;){for(let t of r)e.push(t);r=n.pop()}this.map.length=0}};function HL(e,t,n,r){let i=0;if(n!==0||r.length!==0){for(;i-1;){let e=r.events[t][1].type;if(e===`lineEnding`||e===`linePrefix`)t--;else break}let i=t>-1?r.events[t][1].type:null,a=i===`tableHead`||i===`tableRow`?S:c;return a===S&&r.parser.lazy[r.now().line]?n(e):a(e)}function c(t){return e.enter(`tableHead`),e.enter(`tableRow`),l(t)}function l(e){return e===124?u(e):(o=!0,a+=1,u(e))}function u(t){return t===null?n(t):$(t)?a>1?(a=0,r.interrupt=!0,e.exit(`tableRow`),e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),p):n(t):vA(t)?CA(e,u,`whitespace`)(t):(a+=1,o&&(o=!1,i+=1),t===124?(e.enter(`tableCellDivider`),e.consume(t),e.exit(`tableCellDivider`),o=!0,u):(e.enter(`data`),d(t)))}function d(t){return t===null||t===124||_A(t)?(e.exit(`data`),u(t)):(e.consume(t),t===92?f:d)}function f(t){return t===92||t===124?(e.consume(t),d):d(t)}function p(t){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(t):(e.enter(`tableDelimiterRow`),o=!1,vA(t)?CA(e,m,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):m(t))}function m(t){return t===45||t===58?g(t):t===124?(o=!0,e.enter(`tableCellDivider`),e.consume(t),e.exit(`tableCellDivider`),h):x(t)}function h(t){return vA(t)?CA(e,g,`whitespace`)(t):g(t)}function g(t){return t===58?(a+=1,o=!0,e.enter(`tableDelimiterMarker`),e.consume(t),e.exit(`tableDelimiterMarker`),_):t===45?(a+=1,_(t)):t===null||$(t)?b(t):x(t)}function _(t){return t===45?(e.enter(`tableDelimiterFiller`),v(t)):x(t)}function v(t){return t===45?(e.consume(t),v):t===58?(o=!0,e.exit(`tableDelimiterFiller`),e.enter(`tableDelimiterMarker`),e.consume(t),e.exit(`tableDelimiterMarker`),y):(e.exit(`tableDelimiterFiller`),y(t))}function y(t){return vA(t)?CA(e,b,`whitespace`)(t):b(t)}function b(n){return n===124?m(n):n===null||$(n)?!o||i!==a?x(n):(e.exit(`tableDelimiterRow`),e.exit(`tableHead`),t(n)):x(n)}function x(e){return n(e)}function S(t){return e.enter(`tableRow`),C(t)}function C(n){return n===124?(e.enter(`tableCellDivider`),e.consume(n),e.exit(`tableCellDivider`),C):n===null||$(n)?(e.exit(`tableRow`),t(n)):vA(n)?CA(e,C,`whitespace`)(n):(e.enter(`data`),w(n))}function w(t){return t===null||t===124||_A(t)?(e.exit(`data`),C(t)):(e.consume(t),t===92?T:w)}function T(t){return t===92||t===124?(e.consume(t),w):w(t)}}function KL(e,t){let n=-1,r=!0,i=0,a=[0,0,0,0],o=[0,0,0,0],s=!1,c=0,l,u,d,f=new VL;for(;++nn[2]+1){let t=n[2]+1,r=n[3]-n[2]-1;e.add(t,r,[])}}e.add(n[3]+1,0,[[`exit`,o,t]])}return i!==void 0&&(a.end=Object.assign({},YL(t.events,i)),e.add(i,0,[[`exit`,a,t]]),a=void 0),a}function JL(e,t,n,r,i){let a=[],o=YL(t.events,n);i&&(i.end=Object.assign({},o),a.push([`exit`,i,t])),r.end=Object.assign({},o),a.push([`exit`,r,t]),e.add(n+1,0,a)}function YL(e,t){let n=e[t],r=n[0]===`enter`?`start`:`end`;return n[1][r]}var XL={name:`tasklistCheck`,tokenize:QL};function ZL(){return{text:{91:XL}}}function QL(e,t,n){let r=this;return i;function i(t){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(t):(e.enter(`taskListCheck`),e.enter(`taskListCheckMarker`),e.consume(t),e.exit(`taskListCheckMarker`),a)}function a(t){return _A(t)?(e.enter(`taskListCheckValueUnchecked`),e.consume(t),e.exit(`taskListCheckValueUnchecked`),o):t===88||t===120?(e.enter(`taskListCheckValueChecked`),e.consume(t),e.exit(`taskListCheckValueChecked`),o):n(t)}function o(t){return t===93?(e.enter(`taskListCheckMarker`),e.consume(t),e.exit(`taskListCheckMarker`),e.exit(`taskListCheck`),s):n(t)}function s(r){return $(r)?t(r):vA(r)?e.check({tokenize:$L},t,n)(r):n(r)}}function $L(e,t,n){return CA(e,r,`whitespace`);function r(e){return e===null?n(e):t(e)}}function eR(e){return aA([gL(),ML(),BL(e),WL(),ZL()])}var tR={};function nR(e){let t=this,n=e||tR,r=t.data(),i=r.micromarkExtensions||=[],a=r.fromMarkdownExtensions||=[],o=r.toMarkdownExtensions||=[];i.push(eR(n)),a.push(aL()),o.push(oL(n))}var rR=[`agent-threads`];async function iR(e,t){let n=new URLSearchParams({limit:`30`});e&&n.set(`q`,e),t&&n.set(`cursor`,t);let r=await ve(`/api/agent/threads?${n}`);if(!r.ok)throw Error(`Unable to load conversations (${r.status})`);return r.json()}function aR({opened:e,activeThreadID:t,onClose:n,onNewChat:r,onSelect:i,onDeleted:a}){let o=Me(`(max-width: 48em)`),s=nO(),[c,l]=(0,P.useState)(``),[u]=Sa(c.trim(),250),[d,f]=(0,P.useState)(null),[p,m]=(0,P.useState)(null),[h,_]=(0,P.useState)(``),[v,y]=(0,P.useState)(``),[b,x]=(0,P.useState)(!1),S=(0,P.useRef)(null),C=_O({queryKey:[...rR,u],queryFn:({pageParam:e})=>iR(u,e),initialPageParam:``,getNextPageParam:e=>e.nextCursor||void 0,enabled:e}),w=(0,P.useMemo)(()=>C.data?.pages.flatMap(e=>e.threads)??[],[C.data]),T=(0,P.useMemo)(()=>cR(w),[w]);(0,P.useEffect)(()=>{e&&requestAnimationFrame(()=>S.current?.focus())},[e]);function E(e){y(``),_(e.title),f(e)}async function D(){if(!(!d||!h.trim())){x(!0),y(``);try{let e=await ve(`/api/agent/threads/${encodeURIComponent(d.threadId)}`,{method:`PATCH`,headers:{"Content-Type":`application/json`},body:JSON.stringify({title:h.trim()})});if(!e.ok)throw Error(`Unable to rename conversation (${e.status})`);await s.invalidateQueries({queryKey:rR}),f(null)}catch(e){y(e instanceof Error?e.message:`Unable to rename this conversation.`)}finally{x(!1)}}}async function O(){if(p){x(!0),y(``);try{let e=await ve(`/api/agent/threads/${encodeURIComponent(p.threadId)}`,{method:`DELETE`});if(!e.ok)throw Error(`Unable to delete conversation (${e.status})`);let t=p.threadId;m(null),await s.invalidateQueries({queryKey:rR}),a(t)}catch(e){y(e instanceof Error?e.message:`Unable to delete this conversation.`)}finally{x(!1)}}}return(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(hm,{opened:e,onClose:n,position:`left`,size:o?`100%`:372,title:(0,F.jsx)(Ce,{fw:700,children:`Investigations`}),padding:`md`,overlayProps:{backgroundOpacity:.24,blur:1},children:(0,F.jsxs)(Le,{gap:`sm`,h:`calc(100dvh - 86px)`,children:[(0,F.jsx)(Oe,{leftSection:(0,F.jsx)(zE,{size:17,weight:`bold`}),onClick:r,children:`New investigation`}),(0,F.jsx)(xe,{ref:S,value:c,onChange:e=>l(e.currentTarget.value),leftSection:(0,F.jsx)(NE,{size:16}),placeholder:`Search investigations`,"aria-label":`Search investigations`}),(0,F.jsx)(Yp,{}),(0,F.jsxs)(Nu,{type:`auto`,offsetScrollbars:!0,flex:1,children:[C.isLoading&&(0,F.jsx)(me,{py:`xl`,children:(0,F.jsx)(le,{size:`sm`})}),C.isError&&(0,F.jsx)(_e,{color:`red`,title:`History unavailable`,children:`Your conversations could not be loaded.`}),!C.isLoading&&!C.isError&&w.length===0&&(0,F.jsxs)(N,{py:`xl`,px:`sm`,ta:`center`,children:[(0,F.jsx)(Ce,{fw:600,children:u?`No matching investigations`:`No investigations yet`}),(0,F.jsx)(Ce,{c:`dimmed`,size:`sm`,mt:4,children:u?`Try words from the opening question.`:`Your completed investigations will appear here.`})]}),(0,F.jsxs)(Le,{gap:`lg`,pb:`md`,children:[T.map(e=>(0,F.jsxs)(Le,{gap:4,children:[(0,F.jsx)(Ce,{c:`dimmed`,size:`xs`,fw:700,tt:`uppercase`,lts:`0.08em`,px:`sm`,children:e.label}),e.threads.map(e=>{let n=e.threadId===t;return(0,F.jsx)(N,{"data-active":n||void 0,className:`chat-history-item`,children:(0,F.jsxs)(ze,{gap:2,wrap:`nowrap`,children:[(0,F.jsx)(g,{onClick:()=>i(e.threadId),"aria-current":n?`page`:void 0,p:`sm`,flex:1,style:{minWidth:0},children:(0,F.jsxs)(ze,{justify:`space-between`,gap:`sm`,wrap:`nowrap`,children:[(0,F.jsx)(Ce,{size:`sm`,fw:n?650:500,truncate:!0,children:e.title}),(0,F.jsx)(Ce,{c:`dimmed`,size:`xs`,style:{flexShrink:0},children:lR(e.updatedAt)})]})}),(0,F.jsxs)(ch,{position:`bottom-end`,withinPortal:!0,children:[(0,F.jsx)(ch.Target,{children:(0,F.jsx)(Ed,{className:`chat-history-actions`,variant:`subtle`,color:`gray`,size:`sm`,mr:6,"aria-label":`Actions for ${e.title}`,children:(0,F.jsx)(TE,{size:18,weight:`bold`})})}),(0,F.jsxs)(ch.Dropdown,{children:[(0,F.jsx)(ch.Item,{leftSection:(0,F.jsx)(LE,{size:15}),onClick:()=>E(e),children:`Rename`}),(0,F.jsx)(ch.Item,{color:`red`,leftSection:(0,F.jsx)(UE,{size:15}),onClick:()=>{y(``),m(e)},children:`Delete`})]})]})]})},e.threadId)})]},e.label)),C.hasNextPage&&(0,F.jsx)(Oe,{variant:`subtle`,color:`gray`,loading:C.isFetchingNextPage,onClick:()=>void C.fetchNextPage(),children:`Load older`})]})]})]})}),(0,F.jsx)(wh,{opened:d!==null,onClose:()=>!b&&f(null),title:`Rename investigation`,centered:!0,children:(0,F.jsx)(`form`,{onSubmit:e=>{e.preventDefault(),D()},children:(0,F.jsxs)(Le,{children:[(0,F.jsx)(xe,{label:`Name`,value:h,onChange:e=>_(e.currentTarget.value),maxLength:120,autoFocus:!0}),v&&(0,F.jsx)(_e,{color:`red`,children:v}),(0,F.jsxs)(ze,{justify:`flex-end`,children:[(0,F.jsx)(Oe,{variant:`default`,onClick:()=>f(null),disabled:b,children:`Cancel`}),(0,F.jsx)(Oe,{type:`submit`,loading:b,disabled:!h.trim(),children:`Save`})]})]})})}),(0,F.jsx)(wh,{opened:p!==null,onClose:()=>!b&&m(null),title:`Delete investigation?`,centered:!0,children:(0,F.jsxs)(Le,{children:[(0,F.jsxs)(Ce,{size:`sm`,children:[`This permanently removes `,(0,F.jsx)(Ce,{span:!0,fw:650,children:p?.title}),` and its saved conversation.`]}),v&&(0,F.jsx)(_e,{color:`red`,children:v}),(0,F.jsxs)(ze,{justify:`flex-end`,children:[(0,F.jsx)(Oe,{variant:`default`,onClick:()=>m(null),disabled:b,children:`Cancel`}),(0,F.jsx)(Oe,{color:`red`,loading:b,onClick:()=>void O(),children:`Delete`})]})]})})]})}function oR(e){return e.includes(`T`)?new Date(e):new Date(`${e.replace(` `,`T`)}Z`)}function sR(e){return new Date(e.getFullYear(),e.getMonth(),e.getDate()).getTime()}function cR(e){let t=sR(new Date),n=new Map;for(let r of e){let e=Math.floor((t-sR(oR(r.updatedAt)))/864e5),i=e<=0?`Today`:e===1?`Yesterday`:e<=7?`Previous 7 days`:`Older`,a=n.get(i)??[];a.push(r),n.set(i,a)}return[...n].map(([e,t])=>({label:e,threads:t}))}function lR(e){let t=oR(e),n=sR(new Date);return Math.floor((n-sR(t))/864e5)<=1?new Intl.DateTimeFormat(void 0,{hour:`numeric`,minute:`2-digit`}).format(t):new Intl.DateTimeFormat(void 0,{month:`short`,day:`numeric`}).format(t)}var uR=[];for(let e=0;e<256;++e)uR.push((e+256).toString(16).slice(1));function dR(e,t=0){return(uR[e[t+0]]+uR[e[t+1]]+uR[e[t+2]]+uR[e[t+3]]+`-`+uR[e[t+4]]+uR[e[t+5]]+`-`+uR[e[t+6]]+uR[e[t+7]]+`-`+uR[e[t+8]]+uR[e[t+9]]+`-`+uR[e[t+10]]+uR[e[t+11]]+uR[e[t+12]]+uR[e[t+13]]+uR[e[t+14]]+uR[e[t+15]]).toLowerCase()}var fR=new Uint8Array(16);function pR(){return crypto.getRandomValues(fR)}var mR={};function hR(e,t,n){let r;if(e)r=_R(e.random??e.rng?.()??pR(),e.msecs,e.seq,t,n);else{let e=Date.now(),i=pR();gR(mR,e,i),r=_R(i,mR.msecs,mR.seq,t,n)}return t??dR(r)}function gR(e,t,n){return e.msecs??=-1/0,e.seq??=0,t>e.msecs?(e.seq=n[6]<<23|n[7]<<16|n[8]<<8|n[9],e.msecs=t):(e.seq=e.seq+1|0,e.seq===0&&e.msecs++),e}function _R(e,t,n,r,i=0){if(e.length<16)throw Error(`Random bytes length must be >= 16`);if(!r)r=new Uint8Array(16),i=0;else if(i<0||i+16>r.length)throw RangeError(`UUID byte range ${i}:${i+15} is out of buffer bounds`);return t??=Date.now(),n??=e[6]*127<<24|e[7]<<16|e[8]<<8|e[9],r[i++]=t/1099511627776&255,r[i++]=t/4294967296&255,r[i++]=t/16777216&255,r[i++]=t/65536&255,r[i++]=t/256&255,r[i++]=t&255,r[i++]=112|n>>>28&15,r[i++]=n>>>20&255,r[i++]=128|n>>>14&63,r[i++]=n>>>6&255,r[i++]=n<<2&255|e[10]&3,r[i++]=e[11],r[i++]=e[12],r[i++]=e[13],r[i++]=e[14],r[i++]=e[15],r}function vR(){return hR()}var yR=`modulepreload`,bR=function(e){return`/`+e},xR={},SR=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=document.getElementsByTagName(`link`),i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}function s(e){return import.meta.resolve?import.meta.resolve(e):new URL(e,import.meta.url).href}r=o(t.map(t=>{if(t=bR(t,n),t=s(t),t in xR)return;xR[t]=!0;let r=t.endsWith(`.css`);for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.href===t&&(!r||i.rel===`stylesheet`))return}let i=document.createElement(`link`);if(i.rel=r?`stylesheet`:yR,r||(i.as=`script`),i.crossOrigin=``,i.href=t,a&&i.setAttribute(`nonce`,a),document.head.appendChild(i),r)return new Promise((e,n)=>{i.addEventListener(`load`,e),i.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${t}`)))})}))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})},CR=(0,P.lazy)(()=>SR(()=>import(`./mcp-app-frame-DW3Lt9OA.js`),__vite__mapDeps([0,1,2]))),wR=(0,P.createContext)(null);function TR(){let e=(0,P.useContext)(wR);if(!e)throw Error(`Fanout app context is unavailable`);return e}function ER(){let{agent_available:e}=Te(),t=c(),n=nO(),r=$i({select:e=>e.location.pathname}),i=r===`/chat`||r===`/chat/`||r.startsWith(`/chat/`),{threadId:a}=ui({strict:!1}),o=(0,P.useRef)(vR()).current,[s,l]=(0,P.useState)(a??``),u=a??(s||o),[d,f]=(0,P.useState)([]),[p,m]=(0,P.useState)(``),[h,g]=(0,P.useState)(!1),[_,v]=(0,P.useState)(``),[y,b]=(0,P.useState)(``),[x,S]=(0,P.useState)(!1),C=(0,P.useRef)(``),w=(0,P.useRef)(null),T=(0,P.useRef)(null),E=(0,P.useMemo)(()=>new iE({url:`/api/agent`,threadId:u,fetch:(e,t)=>ve(e,t)}),[u]),D=!e||p===u;(0,P.useEffect)(()=>{a&&l(a)},[a]),(0,P.useEffect)(()=>{let t=!0;if(f([]),m(``),g(!1),b(``),!e){m(u);return}ve(`/api/agent/threads/${encodeURIComponent(u)}`).then(async e=>e.status===404?{messages:[]}:e.ok?e.json():Promise.reject(Error(`Unable to load thread (${e.status})`))).then(e=>{t&&(E.setMessages(e.messages??[]),f([...e.messages??[]]),m(u))}).catch(()=>{t&&(C.current=``,b(`This conversation could not be restored. Start a new chat or try again.`))});let r=E.subscribe({onEvent:({messages:e})=>f([...e]),onRunInitialized:()=>{g(!0),b(``)},onRunFinalized:({messages:e})=>{f([...e]),g(!1),n.invalidateQueries({queryKey:rR})},onRunFailed:e=>{console.error(`Agent run failed`,e),b(`Fanout could not complete this analysis. Please try again.`),g(!1),n.invalidateQueries({queryKey:rR})}});return()=>{t=!1,r.unsubscribe(),E.abortRun()}},[E,e,n,u]),(0,P.useEffect)(()=>{w.current?.scrollIntoView({behavior:`smooth`,block:`end`})},[d,h]),(0,P.useEffect)(()=>{if(!e)return;let n=e=>{let n=e.target,r=n?.matches(`input, textarea, [contenteditable='true']`);if((e.metaKey||e.ctrlKey)&&e.key.toLowerCase()===`k`){e.preventDefault(),S(!0);return}e.key===`/`&&!r&&(e.preventDefault(),t(s?{to:`/chat/$threadId`,params:{threadId:s}}:{to:`/chat`}),requestAnimationFrame(()=>T.current?.focus())),e.key===`Escape`&&n===T.current&&(v(``),T.current?.blur())};return window.addEventListener(`keydown`,n),()=>window.removeEventListener(`keydown`,n)},[e,s,t]);async function O(t){let n=t.trim();if(!e||!n||h||!D)return;let r={id:vR(),role:`user`,content:n};E.addMessage(r),f([...E.messages]),v(``),g(!0),b(``);try{await E.runAgent()}catch(e){console.error(`Agent run failed`,e),b(`Fanout could not complete this analysis. Please try again.`),g(!1)}}(0,P.useEffect)(()=>{let e=C.current;!D||!i||!e||(C.current=``,O(e))},[i,D,u]);function k(e){e.preventDefault(),O(_)}function ee(n){if(!e)return;let r=vR();C.current=n??``,S(!1),t({to:`/chat/$threadId`,params:{threadId:r}})}function te(){E.abortRun(),C.current=``,S(!1),t({to:`/chat`})}function A(){t(s?{to:`/chat/$threadId`,params:{threadId:s}}:{to:`/chat`})}function ne(e){S(!1),t({to:`/chat/$threadId`,params:{threadId:e}})}return(0,F.jsxs)(wR.Provider,{value:{agentAvailable:e,messages:d,ready:D,running:h,input:_,setInput:v,error:y,bottomRef:w,inputRef:T,send:O,submit:k,openChat:ee},children:[e&&(0,F.jsx)(aR,{opened:x,activeThreadID:i?u:void 0,onClose:()=>S(!1),onNewChat:te,onSelect:ne,onDeleted:e=>{e===u&&te()}}),(0,F.jsxs)(Np,{header:{height:56},footer:{height:42},padding:0,children:[(0,F.jsx)(Np.Header,{children:(0,F.jsxs)(ze,{h:`100%`,px:{base:`sm`,sm:`lg`},justify:`space-between`,wrap:`nowrap`,children:[(0,F.jsx)(je,{size:`small`}),(0,F.jsxs)(ze,{gap:`xs`,wrap:`nowrap`,children:[(0,F.jsxs)(ze,{gap:6,mr:4,visibleFrom:`md`,children:[(0,F.jsx)(N,{w:7,h:7,bg:`teal.6`,style:{borderRadius:`50%`}}),(0,F.jsx)(Ce,{c:`dimmed`,size:`xs`,fw:600,children:`Live`})]}),(e||i)&&(0,F.jsx)(Oe,{variant:`subtle`,color:`gray`,size:`compact-sm`,leftSection:i?(0,F.jsx)(jE,{size:16,weight:`bold`}):(0,F.jsx)(xE,{size:16,weight:`bold`}),onClick:()=>i?void t({to:`/dashboards`}):A(),children:i?`Dashboard`:`Chat`}),e&&(0,F.jsx)(Rh,{label:`Conversation history`,children:(0,F.jsx)(Ed,{variant:`subtle`,color:`gray`,"aria-label":`Conversation history`,onClick:()=>S(!0),children:(0,F.jsx)(CE,{size:17,weight:`bold`})})}),e&&i&&(0,F.jsx)(Rh,{label:`New chat`,children:(0,F.jsx)(Ed,{variant:`subtle`,color:`gray`,"aria-label":`New chat`,onClick:te,children:(0,F.jsx)(zE,{size:17,weight:`bold`})})}),(0,F.jsx)(Rh,{label:`Sign out`,children:(0,F.jsx)(Ed,{variant:`subtle`,color:`gray`,"aria-label":`Sign out`,onClick:()=>void se().catch(e=>b(e instanceof Error?e.message:`Sign-out failed — your session is still active.`)),children:(0,F.jsx)(VE,{size:17})})})]})]})}),(0,F.jsxs)(Np.Main,{children:[(0,F.jsx)(Wi,{}),e&&i&&(0,F.jsx)(DR,{})]}),(0,F.jsx)(AR,{})]})]})}function DR(){let{input:e,setInput:t,inputRef:n,submit:r,send:i,ready:a,running:o}=TR();return(0,F.jsx)(N,{pos:`fixed`,bottom:42,left:0,right:0,pb:`md`,pt:`md`,bg:`var(--mantine-color-body)`,style:{zIndex:20},children:(0,F.jsx)(N,{maw:1440,mx:`auto`,px:{base:`md`,sm:`xl`,lg:72},children:(0,F.jsx)(te,{component:`form`,onSubmit:r,className:`chat-composer-field`,withBorder:!0,shadow:`sm`,radius:28,py:6,pl:`lg`,pr:6,children:(0,F.jsxs)(ze,{align:`flex-end`,gap:`xs`,wrap:`nowrap`,children:[(0,F.jsx)(Cm,{ref:n,"aria-label":`Message Fanout`,value:e,onChange:e=>t(e.currentTarget.value),onKeyDown:t=>{t.key===`Enter`&&!t.shiftKey&&(t.preventDefault(),i(e))},placeholder:o?`Fanout is analyzing…`:`Ask about health, errors, or latency…`,disabled:!a||o,autosize:!0,minRows:1,maxRows:6,variant:`unstyled`,flex:1}),(0,F.jsx)(Ed,{type:`submit`,variant:`filled`,size:40,radius:`xl`,disabled:!e.trim()||!a||o,"aria-label":`Send message`,children:(0,F.jsx)(FE,{size:17,weight:`fill`})})]})})})})}function OR(){let{agentAvailable:e,messages:t,ready:n,running:r,error:i,bottomRef:a,send:o}=TR();if(!e)return(0,F.jsx)(fe,{size:`sm`,py:96,children:(0,F.jsx)(te,{withBorder:!0,radius:`xl`,p:{base:`xl`,sm:40},children:(0,F.jsxs)(Le,{gap:`md`,children:[(0,F.jsx)(Ce,{c:`teal.7`,fw:700,size:`xs`,tt:`uppercase`,lts:`0.12em`,children:`Optional capability`}),(0,F.jsx)(ue,{order:1,children:`Chat is not configured`}),(0,F.jsx)(Ce,{c:`dimmed`,children:`Add an AI provider key to enable investigation chat. Telemetry ingest, dashboards, traces, logs, and metrics remain available without it.`}),(0,F.jsx)(Oe,{component:`a`,href:`/dashboards`,variant:`light`,mt:`sm`,children:`Open dashboards`})]})})});let s=t.filter(e=>e.role!==`tool`);return n?(0,F.jsxs)(fe,{size:1440,px:{base:`md`,sm:`xl`,lg:72},pt:{base:36,sm:64},pb:190,children:[s.length===0&&(0,F.jsx)(kR,{onSelect:o}),(0,F.jsxs)(Le,{gap:`xl`,"aria-live":`polite`,children:[s.map(e=>(0,F.jsx)(jR,{message:e,send:o},e.id)),r&&(0,F.jsxs)(ze,{gap:`xs`,children:[(0,F.jsx)(le,{type:`dots`,size:`sm`}),(0,F.jsx)(Ce,{c:`dimmed`,size:`sm`,children:`Analyzing your system`})]}),i&&(0,F.jsx)(_e,{color:`red`,title:`Something went wrong`,children:i}),(0,F.jsx)(`div`,{ref:a})]})]}):(0,F.jsxs)(me,{mih:`50vh`,children:[(0,F.jsx)(le,{size:`sm`}),(0,F.jsx)(Ce,{c:`dimmed`,size:`sm`,ml:`sm`,children:`Loading conversation`})]})}function kR({onSelect:e}){return(0,F.jsxs)(Le,{align:`center`,gap:`lg`,maw:780,mx:`auto`,mb:56,ta:`center`,children:[(0,F.jsx)(je,{size:`large`}),(0,F.jsx)(Ce,{c:`teal`,fw:700,size:`xs`,tt:`uppercase`,lts:`0.14em`,children:`Your system, understood`}),(0,F.jsxs)(ue,{order:1,fz:{base:40,sm:56},lh:1.05,lts:`-0.045em`,children:[`See what changed.`,(0,F.jsx)(`br`,{}),`Know what to do next.`]}),(0,F.jsx)(Ce,{c:`dimmed`,maw:620,children:`Ask about service health, latency, errors, or dependencies. Fanout turns live signals into clear answers and focused views.`}),(0,F.jsx)(qh,{cols:{base:1,sm:3},spacing:`sm`,w:`100%`,mt:`md`,children:[`Summarize system health for the last hour`,`Find the source of elevated errors`,`Map the current service dependencies`].map((t,n)=>(0,F.jsx)(g,{onClick:()=>void e(t),children:(0,F.jsx)(te,{withBorder:!0,radius:`lg`,p:`md`,mih:{base:74,sm:120},h:`100%`,children:(0,F.jsxs)(Le,{justify:`space-between`,h:`100%`,gap:`md`,children:[(0,F.jsxs)(Ce,{c:`dimmed`,size:`xs`,fw:700,children:[`0`,n+1]}),(0,F.jsxs)(ze,{justify:`space-between`,wrap:`nowrap`,children:[(0,F.jsx)(Ce,{size:`sm`,fw:500,children:t}),(0,F.jsx)(yE,{size:17,weight:`bold`})]})]})})},t))})]})}function AR(){return(0,F.jsx)(Np.Footer,{children:(0,F.jsxs)(ze,{h:`100%`,px:{base:`sm`,sm:`lg`},justify:`space-between`,wrap:`nowrap`,children:[(0,F.jsxs)(Ce,{c:`dimmed`,size:`xs`,children:[`© 2026 Fanout by `,(0,F.jsx)(Ce,{component:`a`,href:`https://labstack.com`,target:`_blank`,rel:`noreferrer`,inherit:!0,fw:600,c:`var(--mantine-color-text)`,children:`LabStack`})]}),(0,F.jsxs)(ze,{gap:4,children:[(0,F.jsx)(Rh,{label:`GitHub`,children:(0,F.jsx)(Ed,{component:`a`,href:`https://github.com/labstack/fanout`,target:`_blank`,rel:`noreferrer`,variant:`subtle`,color:`gray`,size:`sm`,"aria-label":`Fanout on GitHub`,children:(0,F.jsx)(DE,{size:14,weight:`bold`})})}),(0,F.jsx)(Rh,{label:`LabStack`,children:(0,F.jsx)(Ed,{component:`a`,href:`https://labstack.com`,target:`_blank`,rel:`noreferrer`,variant:`subtle`,color:`gray`,size:`sm`,"aria-label":`LabStack website`,children:(0,F.jsx)(kE,{size:14})})})]})]})})}function jR({message:e,send:t}){if(e.role===`activity`){let n=e;return n.activityType===`mcp-app`?(0,F.jsx)(te,{radius:`lg`,shadow:`md`,style:{overflow:`hidden`},"aria-label":MR(n.content.toolName),children:(0,F.jsx)(P.Suspense,{fallback:(0,F.jsx)(me,{mih:180,children:(0,F.jsx)(le,{size:`sm`})}),children:(0,F.jsx)(CR,{content:n.content,onMessage:t})})}):null}let n=typeof e.content==`string`?e.content:JSON.stringify(e.content);if(!n&&e.role===`assistant`)return null;let r=e.role===`user`;return(0,F.jsxs)(Le,{gap:`xs`,align:r?`flex-end`:`stretch`,maw:r?`min(92%, 650px)`:780,ml:r?`auto`:void 0,children:[(0,F.jsxs)(ze,{gap:`xs`,justify:r?`flex-end`:`flex-start`,children:[(0,F.jsx)(Gp,{size:22,radius:`sm`,color:r?`gray`:`teal`,children:r?`Y`:`F`}),(0,F.jsx)(Ce,{c:`dimmed`,size:`xs`,fw:700,tt:`uppercase`,lts:`0.08em`,children:r?`You`:`Fanout`})]}),r?(0,F.jsx)(te,{withBorder:!0,radius:`lg`,p:`sm`,bg:`teal.0`,children:(0,F.jsx)(Ce,{style:{whiteSpace:`pre-wrap`},children:n})}):(0,F.jsx)(Yh,{children:(0,F.jsx)(QP,{remarkPlugins:[nR],children:n})})]})}function MR(e){return{observability_overview:`System health`,service_topology:`Service map`,service_performance:`Performance`,trace_detail:`Trace analysis`,search_logs:`Logs`}[e]??`System analysis`}function NR(){let e=(0,P.useMemo)(()=>new eO,[]);return(0,F.jsx)(rO,{client:e,children:(0,F.jsx)(Fe,{children:(0,F.jsx)(ER,{})})})}var PR=Ai({component:NR,notFoundComponent:()=>(0,F.jsx)(f,{to:`/`,replace:!0})}),FR=ji(`/`)({component:Ni(()=>SR(()=>import(`./routes-CsFJ-l_t.js`),__vite__mapDeps([3,1,2])),`component`)}),IR=ji(`/chat/`)({component:Ni(()=>SR(()=>import(`./chat.index-m5Pb-ySL.js`),__vite__mapDeps([4,1])),`component`)}),LR=ji(`/chat/$threadId`)({component:Ni(()=>SR(()=>import(`./chat._threadId-CTS2jH1q.js`),[]),`component`)}),RR=ji(`/dashboards/`)({component:Ni(()=>SR(()=>import(`./dashboards.index-xNh_VXJL.js`),__vite__mapDeps([5,1,6,2])),`component`)}),zR=ji(`/dashboards/$dashboardId`)({component:Ni(()=>SR(()=>import(`./dashboards._dashboardId-C0kfFh1B.js`),__vite__mapDeps([7,1,6,2])),`component`)}),BR=FR.update({id:`/`,path:`/`,getParentRoute:()=>PR}),VR=IR.update({id:`/chat/`,path:`/chat/`,getParentRoute:()=>PR}),HR=LR.update({id:`/chat/$threadId`,path:`/chat/$threadId`,getParentRoute:()=>PR}),UR=RR.update({id:`/dashboards/`,path:`/dashboards/`,getParentRoute:()=>PR}),WR={IndexRoute:BR,ChatThreadIdRoute:HR,DashboardsDashboardIdRoute:zR.update({id:`/dashboards/$dashboardId`,path:`/dashboards/$dashboardId`,getParentRoute:()=>PR}),ChatIndexRoute:VR,DashboardsIndexRoute:UR},GR=Yi({routeTree:PR._addFileChildren(WR)._addFileTypes(),defaultPreload:`intent`,scrollRestoration:!0}),KR=ho({primaryColor:`teal`,defaultRadius:`md`,fontFamily:`Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, Segoe UI, sans-serif`,fontFamilyMonospace:`ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace`,headings:{fontFamily:`inherit`,fontWeight:`650`},cursorType:`pointer`});(0,G_.createRoot)(document.getElementById(`root`)).render((0,F.jsx)(P.StrictMode,{children:(0,F.jsx)(mo,{theme:KR,defaultColorScheme:`light`,children:(0,F.jsx)(Qi,{router:GR})})}));export{ra as A,vd as C,Ka as D,qa as E,Ra as O,Ed as S,Xa as T,qh as _,gO as a,Yp as b,VD as c,XE as d,lD as f,yE as g,zE as h,vR as i,na as j,La as k,TD as l,WE as m,OR as n,nO as o,yD as p,TR as r,XD as s,zR as t,aD as u,Rh as v,Nu as w,Pp as x,ch as y}; \ No newline at end of file diff --git a/internal/ui/dist/assets/index-BbOYseT5.css b/internal/ui/dist/assets/index-BR1I2Za9.css similarity index 97% rename from internal/ui/dist/assets/index-BbOYseT5.css rename to internal/ui/dist/assets/index-BR1I2Za9.css index fe5f90d5..d09e2ce5 100644 --- a/internal/ui/dist/assets/index-BbOYseT5.css +++ b/internal/ui/dist/assets/index-BR1I2Za9.css @@ -1 +1 @@ -:root,:host{color-scheme:var(--mantine-color-scheme)}*,:before,:after{box-sizing:border-box}input,button,textarea,select{font:inherit}button,select{text-transform:none}body,:host{font-family:var(--mantine-font-family);font-size:var(--mantine-font-size-md);line-height:var(--mantine-line-height);background-color:var(--mantine-color-body);color:var(--mantine-color-text);-webkit-font-smoothing:var(--mantine-webkit-font-smoothing);-moz-osx-font-smoothing:var(--mantine-moz-font-smoothing);margin:0}@media screen and (device-width<=31.25em){body,:host{-webkit-text-size-adjust:100%}}@media (prefers-reduced-motion:reduce){[data-respect-reduced-motion] [data-reduce-motion]{transition:none;animation:none}}[data-mantine-color-scheme=light] .mantine-light-hidden,[data-mantine-color-scheme=dark] .mantine-dark-hidden{display:none}.mantine-focus-auto:focus-visible,.mantine-focus-always:focus{outline:2px solid var(--mantine-primary-color-filled);outline-offset:calc(.125rem * var(--mantine-scale))}.mantine-focus-never:focus{outline:none}.mantine-active:active{transform:translateY(calc(.0625rem * var(--mantine-scale)))}fieldset:disabled .mantine-active:active{transform:none}:where([dir=rtl]) .mantine-rotate-rtl{transform:rotate(180deg)}:root,:host{--mantine-z-index-app:100;--mantine-z-index-modal:200;--mantine-z-index-popover:300;--mantine-z-index-overlay:400;--mantine-z-index-max:9999;--mantine-scale:1;--mantine-cursor-type:default;--mantine-webkit-font-smoothing:antialiased;--mantine-moz-font-smoothing:grayscale;--mantine-color-white:#fff;--mantine-color-black:#000;--mantine-line-height:1.55;--mantine-font-family:-apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji;--mantine-font-family-monospace:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, Courier New, monospace;--mantine-font-family-headings:-apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji;--mantine-heading-font-weight:700;--mantine-heading-text-wrap:wrap;--mantine-radius-default:calc(.5rem * var(--mantine-scale));--mantine-primary-color-filled:var(--mantine-color-blue-filled);--mantine-primary-color-filled-hover:var(--mantine-color-blue-filled-hover);--mantine-primary-color-light:var(--mantine-color-blue-light);--mantine-primary-color-light-hover:var(--mantine-color-blue-light-hover);--mantine-primary-color-light-color:var(--mantine-color-blue-light-color);--mantine-breakpoint-xs:36em;--mantine-breakpoint-sm:48em;--mantine-breakpoint-md:62em;--mantine-breakpoint-lg:75em;--mantine-breakpoint-xl:88em;--mantine-spacing-xs:calc(.625rem * var(--mantine-scale));--mantine-spacing-sm:calc(.75rem * var(--mantine-scale));--mantine-spacing-md:calc(1rem * var(--mantine-scale));--mantine-spacing-lg:calc(1.25rem * var(--mantine-scale));--mantine-spacing-xl:calc(2rem * var(--mantine-scale));--mantine-font-size-xs:calc(.75rem * var(--mantine-scale));--mantine-font-size-sm:calc(.875rem * var(--mantine-scale));--mantine-font-size-md:calc(1rem * var(--mantine-scale));--mantine-font-size-lg:calc(1.125rem * var(--mantine-scale));--mantine-font-size-xl:calc(1.25rem * var(--mantine-scale));--mantine-line-height-xs:1.4;--mantine-line-height-sm:1.45;--mantine-line-height-md:1.55;--mantine-line-height-lg:1.6;--mantine-line-height-xl:1.65;--mantine-shadow-xs:0 calc(.0625rem * var(--mantine-scale)) calc(.1875rem * var(--mantine-scale)) #0000000d, 0 calc(.0625rem * var(--mantine-scale)) calc(.125rem * var(--mantine-scale)) #0000001a;--mantine-shadow-sm:0 calc(.0625rem * var(--mantine-scale)) calc(.1875rem * var(--mantine-scale)) #0000000d, #0000000d 0 calc(.625rem * var(--mantine-scale)) calc(.9375rem * var(--mantine-scale)) calc(-.3125rem * var(--mantine-scale)), #0000000a 0 calc(.4375rem * var(--mantine-scale)) calc(.4375rem * var(--mantine-scale)) calc(-.3125rem * var(--mantine-scale));--mantine-shadow-md:0 calc(.0625rem * var(--mantine-scale)) calc(.1875rem * var(--mantine-scale)) #0000000d, #0000000d 0 calc(1.25rem * var(--mantine-scale)) calc(1.5625rem * var(--mantine-scale)) calc(-.3125rem * var(--mantine-scale)), #0000000a 0 calc(.625rem * var(--mantine-scale)) calc(.625rem * var(--mantine-scale)) calc(-.3125rem * var(--mantine-scale));--mantine-shadow-lg:0 calc(.0625rem * var(--mantine-scale)) calc(.1875rem * var(--mantine-scale)) #0000000d, #0000000d 0 calc(1.75rem * var(--mantine-scale)) calc(1.4375rem * var(--mantine-scale)) calc(-.4375rem * var(--mantine-scale)), #0000000a 0 calc(.75rem * var(--mantine-scale)) calc(.75rem * var(--mantine-scale)) calc(-.4375rem * var(--mantine-scale));--mantine-shadow-xl:0 calc(.0625rem * var(--mantine-scale)) calc(.1875rem * var(--mantine-scale)) #0000000d, #0000000d 0 calc(2.25rem * var(--mantine-scale)) calc(1.75rem * var(--mantine-scale)) calc(-.4375rem * var(--mantine-scale)), #0000000a 0 calc(1.0625rem * var(--mantine-scale)) calc(1.0625rem * var(--mantine-scale)) calc(-.4375rem * var(--mantine-scale));--mantine-radius-xs:calc(.125rem * var(--mantine-scale));--mantine-radius-sm:calc(.25rem * var(--mantine-scale));--mantine-radius-md:calc(.5rem * var(--mantine-scale));--mantine-radius-lg:calc(1rem * var(--mantine-scale));--mantine-radius-xl:calc(2rem * var(--mantine-scale));--mantine-font-weight-regular:400;--mantine-font-weight-medium:600;--mantine-font-weight-bold:700;--mantine-primary-color-0:var(--mantine-color-blue-0);--mantine-primary-color-1:var(--mantine-color-blue-1);--mantine-primary-color-2:var(--mantine-color-blue-2);--mantine-primary-color-3:var(--mantine-color-blue-3);--mantine-primary-color-4:var(--mantine-color-blue-4);--mantine-primary-color-5:var(--mantine-color-blue-5);--mantine-primary-color-6:var(--mantine-color-blue-6);--mantine-primary-color-7:var(--mantine-color-blue-7);--mantine-primary-color-8:var(--mantine-color-blue-8);--mantine-primary-color-9:var(--mantine-color-blue-9);--mantine-color-dark-0:#c9c9c9;--mantine-color-dark-1:#b8b8b8;--mantine-color-dark-2:#828282;--mantine-color-dark-3:#696969;--mantine-color-dark-4:#424242;--mantine-color-dark-5:#3b3b3b;--mantine-color-dark-6:#2e2e2e;--mantine-color-dark-7:#242424;--mantine-color-dark-8:#1f1f1f;--mantine-color-dark-9:#141414;--mantine-color-gray-0:#f8f9fa;--mantine-color-gray-1:#f1f3f5;--mantine-color-gray-2:#e9ecef;--mantine-color-gray-3:#dee2e6;--mantine-color-gray-4:#ced4da;--mantine-color-gray-5:#adb5bd;--mantine-color-gray-6:#868e96;--mantine-color-gray-7:#495057;--mantine-color-gray-8:#343a40;--mantine-color-gray-9:#212529;--mantine-color-red-0:#fff5f5;--mantine-color-red-1:#ffe3e3;--mantine-color-red-2:#ffc9c9;--mantine-color-red-3:#ffa8a8;--mantine-color-red-4:#ff8787;--mantine-color-red-5:#ff6b6b;--mantine-color-red-6:#fa5252;--mantine-color-red-7:#f03e3e;--mantine-color-red-8:#e03131;--mantine-color-red-9:#c92a2a;--mantine-color-pink-0:#fff0f6;--mantine-color-pink-1:#ffdeeb;--mantine-color-pink-2:#fcc2d7;--mantine-color-pink-3:#faa2c1;--mantine-color-pink-4:#f783ac;--mantine-color-pink-5:#f06595;--mantine-color-pink-6:#e64980;--mantine-color-pink-7:#d6336c;--mantine-color-pink-8:#c2255c;--mantine-color-pink-9:#a61e4d;--mantine-color-grape-0:#f8f0fc;--mantine-color-grape-1:#f3d9fa;--mantine-color-grape-2:#eebefa;--mantine-color-grape-3:#e599f7;--mantine-color-grape-4:#da77f2;--mantine-color-grape-5:#cc5de8;--mantine-color-grape-6:#be4bdb;--mantine-color-grape-7:#ae3ec9;--mantine-color-grape-8:#9c36b5;--mantine-color-grape-9:#862e9c;--mantine-color-violet-0:#f3f0ff;--mantine-color-violet-1:#e5dbff;--mantine-color-violet-2:#d0bfff;--mantine-color-violet-3:#b197fc;--mantine-color-violet-4:#9775fa;--mantine-color-violet-5:#845ef7;--mantine-color-violet-6:#7950f2;--mantine-color-violet-7:#7048e8;--mantine-color-violet-8:#6741d9;--mantine-color-violet-9:#5f3dc4;--mantine-color-indigo-0:#edf2ff;--mantine-color-indigo-1:#dbe4ff;--mantine-color-indigo-2:#bac8ff;--mantine-color-indigo-3:#91a7ff;--mantine-color-indigo-4:#748ffc;--mantine-color-indigo-5:#5c7cfa;--mantine-color-indigo-6:#4c6ef5;--mantine-color-indigo-7:#4263eb;--mantine-color-indigo-8:#3b5bdb;--mantine-color-indigo-9:#364fc7;--mantine-color-blue-0:#e7f5ff;--mantine-color-blue-1:#d0ebff;--mantine-color-blue-2:#a5d8ff;--mantine-color-blue-3:#74c0fc;--mantine-color-blue-4:#4dabf7;--mantine-color-blue-5:#339af0;--mantine-color-blue-6:#228be6;--mantine-color-blue-7:#1c7ed6;--mantine-color-blue-8:#1971c2;--mantine-color-blue-9:#1864ab;--mantine-color-cyan-0:#e3fafc;--mantine-color-cyan-1:#c5f6fa;--mantine-color-cyan-2:#99e9f2;--mantine-color-cyan-3:#66d9e8;--mantine-color-cyan-4:#3bc9db;--mantine-color-cyan-5:#22b8cf;--mantine-color-cyan-6:#15aabf;--mantine-color-cyan-7:#1098ad;--mantine-color-cyan-8:#0c8599;--mantine-color-cyan-9:#0b7285;--mantine-color-teal-0:#e6fcf5;--mantine-color-teal-1:#c3fae8;--mantine-color-teal-2:#96f2d7;--mantine-color-teal-3:#63e6be;--mantine-color-teal-4:#38d9a9;--mantine-color-teal-5:#20c997;--mantine-color-teal-6:#12b886;--mantine-color-teal-7:#0ca678;--mantine-color-teal-8:#099268;--mantine-color-teal-9:#087f5b;--mantine-color-green-0:#ebfbee;--mantine-color-green-1:#d3f9d8;--mantine-color-green-2:#b2f2bb;--mantine-color-green-3:#8ce99a;--mantine-color-green-4:#69db7c;--mantine-color-green-5:#51cf66;--mantine-color-green-6:#40c057;--mantine-color-green-7:#37b24d;--mantine-color-green-8:#2f9e44;--mantine-color-green-9:#2b8a3e;--mantine-color-lime-0:#f4fce3;--mantine-color-lime-1:#e9fac8;--mantine-color-lime-2:#d8f5a2;--mantine-color-lime-3:#c0eb75;--mantine-color-lime-4:#a9e34b;--mantine-color-lime-5:#94d82d;--mantine-color-lime-6:#82c91e;--mantine-color-lime-7:#74b816;--mantine-color-lime-8:#66a80f;--mantine-color-lime-9:#5c940d;--mantine-color-yellow-0:#fff9db;--mantine-color-yellow-1:#fff3bf;--mantine-color-yellow-2:#ffec99;--mantine-color-yellow-3:#ffe066;--mantine-color-yellow-4:#ffd43b;--mantine-color-yellow-5:#fcc419;--mantine-color-yellow-6:#fab005;--mantine-color-yellow-7:#f59f00;--mantine-color-yellow-8:#f08c00;--mantine-color-yellow-9:#e67700;--mantine-color-orange-0:#fff4e6;--mantine-color-orange-1:#ffe8cc;--mantine-color-orange-2:#ffd8a8;--mantine-color-orange-3:#ffc078;--mantine-color-orange-4:#ffa94d;--mantine-color-orange-5:#ff922b;--mantine-color-orange-6:#fd7e14;--mantine-color-orange-7:#f76707;--mantine-color-orange-8:#e8590c;--mantine-color-orange-9:#d9480f;--mantine-h1-font-size:calc(2.125rem * var(--mantine-scale));--mantine-h1-line-height:1.3;--mantine-h1-font-weight:700;--mantine-h2-font-size:calc(1.625rem * var(--mantine-scale));--mantine-h2-line-height:1.35;--mantine-h2-font-weight:700;--mantine-h3-font-size:calc(1.375rem * var(--mantine-scale));--mantine-h3-line-height:1.4;--mantine-h3-font-weight:700;--mantine-h4-font-size:calc(1.125rem * var(--mantine-scale));--mantine-h4-line-height:1.45;--mantine-h4-font-weight:700;--mantine-h5-font-size:calc(1rem * var(--mantine-scale));--mantine-h5-line-height:1.5;--mantine-h5-font-weight:700;--mantine-h6-font-size:calc(.875rem * var(--mantine-scale));--mantine-h6-line-height:1.5;--mantine-h6-font-weight:700}:root[data-mantine-color-scheme=dark],:host([data-mantine-color-scheme=dark]){--mantine-color-scheme:dark;--mantine-primary-color-contrast:var(--mantine-color-white);--mantine-color-bright:var(--mantine-color-white);--mantine-color-text:var(--mantine-color-dark-0);--mantine-color-body:var(--mantine-color-dark-7);--mantine-color-error:var(--mantine-color-red-8);--mantine-color-success:var(--mantine-color-teal-8);--mantine-color-placeholder:var(--mantine-color-dark-3);--mantine-color-anchor:var(--mantine-color-blue-4);--mantine-color-default:var(--mantine-color-dark-6);--mantine-color-default-hover:var(--mantine-color-dark-5);--mantine-color-default-color:var(--mantine-color-white);--mantine-color-default-border:var(--mantine-color-dark-4);--mantine-color-dimmed:var(--mantine-color-dark-2);--mantine-color-disabled:var(--mantine-color-dark-6);--mantine-color-disabled-color:var(--mantine-color-dark-3);--mantine-color-disabled-border:var(--mantine-color-dark-4);--mantine-color-dark-text:var(--mantine-color-dark-4);--mantine-color-dark-filled:var(--mantine-color-dark-8);--mantine-color-dark-filled-hover:var(--mantine-color-dark-9);--mantine-color-dark-light:#0a0a0a;--mantine-color-dark-light-hover:#0e0e0e;--mantine-color-dark-light-color:var(--mantine-color-dark-0);--mantine-color-dark-outline:var(--mantine-color-dark-4);--mantine-color-dark-outline-hover:#4242420d;--mantine-color-gray-text:var(--mantine-color-gray-4);--mantine-color-gray-filled:var(--mantine-color-gray-8);--mantine-color-gray-filled-hover:var(--mantine-color-gray-9);--mantine-color-gray-light:#111315;--mantine-color-gray-light-hover:#171a1d;--mantine-color-gray-light-color:var(--mantine-color-gray-0);--mantine-color-gray-outline:var(--mantine-color-gray-4);--mantine-color-gray-outline-hover:#ced4da0d;--mantine-color-red-text:var(--mantine-color-red-4);--mantine-color-red-filled:var(--mantine-color-red-8);--mantine-color-red-filled-hover:var(--mantine-color-red-9);--mantine-color-red-light:#651515;--mantine-color-red-light-hover:#8d1d1d;--mantine-color-red-light-color:var(--mantine-color-red-0);--mantine-color-red-outline:var(--mantine-color-red-4);--mantine-color-red-outline-hover:#ff87870d;--mantine-color-pink-text:var(--mantine-color-pink-4);--mantine-color-pink-filled:var(--mantine-color-pink-8);--mantine-color-pink-filled-hover:var(--mantine-color-pink-9);--mantine-color-pink-light:#530f27;--mantine-color-pink-light-hover:#741536;--mantine-color-pink-light-color:var(--mantine-color-pink-0);--mantine-color-pink-outline:var(--mantine-color-pink-4);--mantine-color-pink-outline-hover:#f783ac0d;--mantine-color-grape-text:var(--mantine-color-grape-4);--mantine-color-grape-filled:var(--mantine-color-grape-8);--mantine-color-grape-filled-hover:var(--mantine-color-grape-9);--mantine-color-grape-light:#43174e;--mantine-color-grape-light-hover:#5e206d;--mantine-color-grape-light-color:var(--mantine-color-grape-0);--mantine-color-grape-outline:var(--mantine-color-grape-4);--mantine-color-grape-outline-hover:#da77f20d;--mantine-color-violet-text:var(--mantine-color-violet-4);--mantine-color-violet-filled:var(--mantine-color-violet-8);--mantine-color-violet-filled-hover:var(--mantine-color-violet-9);--mantine-color-violet-light:#301f62;--mantine-color-violet-light-hover:#432b89;--mantine-color-violet-light-color:var(--mantine-color-violet-0);--mantine-color-violet-outline:var(--mantine-color-violet-4);--mantine-color-violet-outline-hover:#9775fa0d;--mantine-color-indigo-text:var(--mantine-color-indigo-4);--mantine-color-indigo-filled:var(--mantine-color-indigo-8);--mantine-color-indigo-filled-hover:var(--mantine-color-indigo-9);--mantine-color-indigo-light:#1b2864;--mantine-color-indigo-light-hover:#26378b;--mantine-color-indigo-light-color:var(--mantine-color-indigo-0);--mantine-color-indigo-outline:var(--mantine-color-indigo-4);--mantine-color-indigo-outline-hover:#748ffc0d;--mantine-color-blue-text:var(--mantine-color-blue-4);--mantine-color-blue-filled:var(--mantine-color-blue-8);--mantine-color-blue-filled-hover:var(--mantine-color-blue-9);--mantine-color-blue-light:#0c3256;--mantine-color-blue-light-hover:#114678;--mantine-color-blue-light-color:var(--mantine-color-blue-0);--mantine-color-blue-outline:var(--mantine-color-blue-4);--mantine-color-blue-outline-hover:#4dabf70d;--mantine-color-cyan-text:var(--mantine-color-cyan-4);--mantine-color-cyan-filled:var(--mantine-color-cyan-8);--mantine-color-cyan-filled-hover:var(--mantine-color-cyan-9);--mantine-color-cyan-light:#063943;--mantine-color-cyan-light-hover:#08505d;--mantine-color-cyan-light-color:var(--mantine-color-cyan-0);--mantine-color-cyan-outline:var(--mantine-color-cyan-4);--mantine-color-cyan-outline-hover:#3bc9db0d;--mantine-color-teal-text:var(--mantine-color-teal-4);--mantine-color-teal-filled:var(--mantine-color-teal-8);--mantine-color-teal-filled-hover:var(--mantine-color-teal-9);--mantine-color-teal-light:#04402e;--mantine-color-teal-light-hover:#065940;--mantine-color-teal-light-color:var(--mantine-color-teal-0);--mantine-color-teal-outline:var(--mantine-color-teal-4);--mantine-color-teal-outline-hover:#38d9a90d;--mantine-color-green-text:var(--mantine-color-green-4);--mantine-color-green-filled:var(--mantine-color-green-8);--mantine-color-green-filled-hover:var(--mantine-color-green-9);--mantine-color-green-light:#16451f;--mantine-color-green-light-hover:#1e612b;--mantine-color-green-light-color:var(--mantine-color-green-0);--mantine-color-green-outline:var(--mantine-color-green-4);--mantine-color-green-outline-hover:#69db7c0d;--mantine-color-lime-text:var(--mantine-color-lime-4);--mantine-color-lime-filled:var(--mantine-color-lime-8);--mantine-color-lime-filled-hover:var(--mantine-color-lime-9);--mantine-color-lime-light:#2e4a07;--mantine-color-lime-light-hover:#406809;--mantine-color-lime-light-color:var(--mantine-color-lime-0);--mantine-color-lime-outline:var(--mantine-color-lime-4);--mantine-color-lime-outline-hover:#a9e34b0d;--mantine-color-yellow-text:var(--mantine-color-yellow-4);--mantine-color-yellow-filled:var(--mantine-color-yellow-8);--mantine-color-yellow-filled-hover:var(--mantine-color-yellow-9);--mantine-color-yellow-light:#733c00;--mantine-color-yellow-light-hover:#a15300;--mantine-color-yellow-light-color:var(--mantine-color-yellow-0);--mantine-color-yellow-outline:var(--mantine-color-yellow-4);--mantine-color-yellow-outline-hover:#ffd43b0d;--mantine-color-orange-text:var(--mantine-color-orange-4);--mantine-color-orange-filled:var(--mantine-color-orange-8);--mantine-color-orange-filled-hover:var(--mantine-color-orange-9);--mantine-color-orange-light:#6d2408;--mantine-color-orange-light-hover:#98320b;--mantine-color-orange-light-color:var(--mantine-color-orange-0);--mantine-color-orange-outline:var(--mantine-color-orange-4);--mantine-color-orange-outline-hover:#ffa94d0d}:root[data-mantine-color-scheme=light],:host([data-mantine-color-scheme=light]){--mantine-color-scheme:light;--mantine-primary-color-contrast:var(--mantine-color-white);--mantine-color-bright:var(--mantine-color-black);--mantine-color-text:#000;--mantine-color-body:#fff;--mantine-color-error:var(--mantine-color-red-6);--mantine-color-success:var(--mantine-color-teal-8);--mantine-color-placeholder:var(--mantine-color-gray-5);--mantine-color-anchor:var(--mantine-color-blue-6);--mantine-color-default:var(--mantine-color-white);--mantine-color-default-hover:var(--mantine-color-gray-0);--mantine-color-default-color:var(--mantine-color-black);--mantine-color-default-border:var(--mantine-color-gray-4);--mantine-color-dimmed:var(--mantine-color-gray-6);--mantine-color-disabled:var(--mantine-color-gray-2);--mantine-color-disabled-color:var(--mantine-color-gray-5);--mantine-color-disabled-border:var(--mantine-color-gray-3);--mantine-color-dark-text:var(--mantine-color-dark-filled);--mantine-color-dark-filled:var(--mantine-color-dark-6);--mantine-color-dark-filled-hover:var(--mantine-color-dark-7);--mantine-color-dark-light:var(--mantine-color-dark-1);--mantine-color-dark-light-hover:var(--mantine-color-dark-2);--mantine-color-dark-light-color:var(--mantine-color-dark-9);--mantine-color-dark-outline:var(--mantine-color-dark-6);--mantine-color-dark-outline-hover:#2e2e2e0d;--mantine-color-gray-text:var(--mantine-color-gray-filled);--mantine-color-gray-filled:var(--mantine-color-gray-6);--mantine-color-gray-filled-hover:var(--mantine-color-gray-7);--mantine-color-gray-light:var(--mantine-color-gray-1);--mantine-color-gray-light-hover:var(--mantine-color-gray-2);--mantine-color-gray-light-color:var(--mantine-color-gray-9);--mantine-color-gray-outline:var(--mantine-color-gray-6);--mantine-color-gray-outline-hover:#868e960d;--mantine-color-red-text:var(--mantine-color-red-filled);--mantine-color-red-filled:var(--mantine-color-red-6);--mantine-color-red-filled-hover:var(--mantine-color-red-7);--mantine-color-red-light:var(--mantine-color-red-1);--mantine-color-red-light-hover:var(--mantine-color-red-2);--mantine-color-red-light-color:var(--mantine-color-red-9);--mantine-color-red-outline:var(--mantine-color-red-6);--mantine-color-red-outline-hover:#fa52520d;--mantine-color-pink-text:var(--mantine-color-pink-filled);--mantine-color-pink-filled:var(--mantine-color-pink-6);--mantine-color-pink-filled-hover:var(--mantine-color-pink-7);--mantine-color-pink-light:var(--mantine-color-pink-1);--mantine-color-pink-light-hover:var(--mantine-color-pink-2);--mantine-color-pink-light-color:var(--mantine-color-pink-9);--mantine-color-pink-outline:var(--mantine-color-pink-6);--mantine-color-pink-outline-hover:#e649800d;--mantine-color-grape-text:var(--mantine-color-grape-filled);--mantine-color-grape-filled:var(--mantine-color-grape-6);--mantine-color-grape-filled-hover:var(--mantine-color-grape-7);--mantine-color-grape-light:var(--mantine-color-grape-1);--mantine-color-grape-light-hover:var(--mantine-color-grape-2);--mantine-color-grape-light-color:var(--mantine-color-grape-9);--mantine-color-grape-outline:var(--mantine-color-grape-6);--mantine-color-grape-outline-hover:#be4bdb0d;--mantine-color-violet-text:var(--mantine-color-violet-filled);--mantine-color-violet-filled:var(--mantine-color-violet-6);--mantine-color-violet-filled-hover:var(--mantine-color-violet-7);--mantine-color-violet-light:var(--mantine-color-violet-1);--mantine-color-violet-light-hover:var(--mantine-color-violet-2);--mantine-color-violet-light-color:var(--mantine-color-violet-9);--mantine-color-violet-outline:var(--mantine-color-violet-6);--mantine-color-violet-outline-hover:#7950f20d;--mantine-color-indigo-text:var(--mantine-color-indigo-filled);--mantine-color-indigo-filled:var(--mantine-color-indigo-6);--mantine-color-indigo-filled-hover:var(--mantine-color-indigo-7);--mantine-color-indigo-light:var(--mantine-color-indigo-1);--mantine-color-indigo-light-hover:var(--mantine-color-indigo-2);--mantine-color-indigo-light-color:var(--mantine-color-indigo-9);--mantine-color-indigo-outline:var(--mantine-color-indigo-6);--mantine-color-indigo-outline-hover:#4c6ef50d;--mantine-color-blue-text:var(--mantine-color-blue-filled);--mantine-color-blue-filled:var(--mantine-color-blue-6);--mantine-color-blue-filled-hover:var(--mantine-color-blue-7);--mantine-color-blue-light:var(--mantine-color-blue-1);--mantine-color-blue-light-hover:var(--mantine-color-blue-2);--mantine-color-blue-light-color:var(--mantine-color-blue-9);--mantine-color-blue-outline:var(--mantine-color-blue-6);--mantine-color-blue-outline-hover:#228be60d;--mantine-color-cyan-text:var(--mantine-color-cyan-filled);--mantine-color-cyan-filled:var(--mantine-color-cyan-6);--mantine-color-cyan-filled-hover:var(--mantine-color-cyan-7);--mantine-color-cyan-light:var(--mantine-color-cyan-1);--mantine-color-cyan-light-hover:var(--mantine-color-cyan-2);--mantine-color-cyan-light-color:var(--mantine-color-cyan-9);--mantine-color-cyan-outline:var(--mantine-color-cyan-6);--mantine-color-cyan-outline-hover:#15aabf0d;--mantine-color-teal-text:var(--mantine-color-teal-filled);--mantine-color-teal-filled:var(--mantine-color-teal-6);--mantine-color-teal-filled-hover:var(--mantine-color-teal-7);--mantine-color-teal-light:var(--mantine-color-teal-1);--mantine-color-teal-light-hover:var(--mantine-color-teal-2);--mantine-color-teal-light-color:var(--mantine-color-teal-9);--mantine-color-teal-outline:var(--mantine-color-teal-6);--mantine-color-teal-outline-hover:#12b8860d;--mantine-color-green-text:var(--mantine-color-green-filled);--mantine-color-green-filled:var(--mantine-color-green-6);--mantine-color-green-filled-hover:var(--mantine-color-green-7);--mantine-color-green-light:var(--mantine-color-green-1);--mantine-color-green-light-hover:var(--mantine-color-green-2);--mantine-color-green-light-color:var(--mantine-color-green-9);--mantine-color-green-outline:var(--mantine-color-green-6);--mantine-color-green-outline-hover:#40c0570d;--mantine-color-lime-text:var(--mantine-color-lime-filled);--mantine-color-lime-filled:var(--mantine-color-lime-6);--mantine-color-lime-filled-hover:var(--mantine-color-lime-7);--mantine-color-lime-light:var(--mantine-color-lime-1);--mantine-color-lime-light-hover:var(--mantine-color-lime-2);--mantine-color-lime-light-color:var(--mantine-color-lime-9);--mantine-color-lime-outline:var(--mantine-color-lime-6);--mantine-color-lime-outline-hover:#82c91e0d;--mantine-color-yellow-text:var(--mantine-color-yellow-filled);--mantine-color-yellow-filled:var(--mantine-color-yellow-6);--mantine-color-yellow-filled-hover:var(--mantine-color-yellow-7);--mantine-color-yellow-light:var(--mantine-color-yellow-1);--mantine-color-yellow-light-hover:var(--mantine-color-yellow-2);--mantine-color-yellow-light-color:var(--mantine-color-yellow-9);--mantine-color-yellow-outline:var(--mantine-color-yellow-6);--mantine-color-yellow-outline-hover:#fab0050d;--mantine-color-orange-text:var(--mantine-color-orange-filled);--mantine-color-orange-filled:var(--mantine-color-orange-6);--mantine-color-orange-filled-hover:var(--mantine-color-orange-7);--mantine-color-orange-light:var(--mantine-color-orange-1);--mantine-color-orange-light-hover:var(--mantine-color-orange-2);--mantine-color-orange-light-color:var(--mantine-color-orange-9);--mantine-color-orange-outline:var(--mantine-color-orange-6);--mantine-color-orange-outline-hover:#fd7e140d}.m_d57069b5{--scrollarea-scrollbar-size:calc(.75rem * var(--mantine-scale));position:relative;overflow:hidden}.m_d57069b5:where([data-autosize]) .m_b1336c6{min-width:min-content}.m_c0783ff9{scrollbar-width:none;overscroll-behavior:var(--scrollarea-over-scroll-behavior);-ms-overflow-style:none;-webkit-overflow-scrolling:touch;width:100%;height:100%}.m_c0783ff9::-webkit-scrollbar{display:none}.m_c0783ff9:where([data-scrollbars=xy],[data-scrollbars=y]):where([data-offset-scrollbars=xy],[data-offset-scrollbars=y],[data-offset-scrollbars=present]):where([data-vertical-hidden]){padding-inline:0}.m_c0783ff9:where([data-scrollbars=xy],[data-scrollbars=y]):where([data-offset-scrollbars=xy],[data-offset-scrollbars=y],[data-offset-scrollbars=present]):not([data-vertical-hidden]){padding-inline-start:unset;padding-inline-end:var(--scrollarea-scrollbar-size)}.m_c0783ff9:where([data-scrollbars=xy],[data-scrollbars=y]):where([data-offset-scrollbars=xy],[data-offset-scrollbars=y],[data-offset-scrollbars=present]):not([data-vertical-hidden]):where([data-vertical-scrollbar-position=left]){padding-inline-end:unset;padding-left:var(--scrollarea-scrollbar-size);padding-right:unset}.m_c0783ff9:where([data-scrollbars=xy],[data-scrollbars=y]):where([data-offset-scrollbars=xy],[data-offset-scrollbars=y],[data-offset-scrollbars=present]):not([data-vertical-hidden]):where([data-vertical-scrollbar-position=right]){padding-inline-end:unset;padding-left:unset;padding-right:var(--scrollarea-scrollbar-size)}.m_c0783ff9:where([data-scrollbars=xy],[data-scrollbars=x]):where([data-offset-scrollbars=xy],[data-offset-scrollbars=x],[data-offset-scrollbars=present]):where([data-horizontal-hidden]){padding-bottom:0}.m_c0783ff9:where([data-scrollbars=xy],[data-scrollbars=x]):where([data-offset-scrollbars=xy],[data-offset-scrollbars=x],[data-offset-scrollbars=present]):not([data-horizontal-hidden]){padding-bottom:var(--scrollarea-scrollbar-size)}.m_f8f631dd{min-width:100%;display:table}.m_c44ba933{-webkit-user-select:none;user-select:none;touch-action:none;box-sizing:border-box;padding:calc(var(--scrollarea-scrollbar-size) / 5);background-color:#0000;flex-direction:row;transition:background-color .15s,opacity .15s;display:flex}@media (hover:hover){:where([data-mantine-color-scheme=light]) .m_c44ba933:hover{background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=light]) .m_c44ba933:hover>.m_d8b5e363{background-color:#00000080}:where([data-mantine-color-scheme=dark]) .m_c44ba933:hover{background-color:var(--mantine-color-dark-8)}:where([data-mantine-color-scheme=dark]) .m_c44ba933:hover>.m_d8b5e363{background-color:#ffffff80}}@media (hover:none){:where([data-mantine-color-scheme=light]) .m_c44ba933:active{background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=light]) .m_c44ba933:active>.m_d8b5e363{background-color:#00000080}:where([data-mantine-color-scheme=dark]) .m_c44ba933:active{background-color:var(--mantine-color-dark-8)}:where([data-mantine-color-scheme=dark]) .m_c44ba933:active>.m_d8b5e363{background-color:#ffffff80}}.m_c44ba933:where([data-hidden],[data-state=hidden]){display:none}.m_c44ba933:where([data-orientation=vertical]){width:var(--scrollarea-scrollbar-size);top:0;bottom:var(--sa-corner-width);inset-inline-end:0}.m_c44ba933:where([data-orientation=vertical]):where([data-vertical-scrollbar-position=left]){inset-inline-end:auto;left:0;right:auto}.m_c44ba933:where([data-orientation=vertical]):where([data-vertical-scrollbar-position=right]){inset-inline-end:auto;left:auto;right:0}.m_c44ba933:where([data-orientation=horizontal]){height:var(--scrollarea-scrollbar-size);bottom:0;flex-direction:column;inset-inline-start:0;inset-inline-end:var(--sa-corner-width)}.m_c44ba933:where([data-orientation=horizontal]):where([data-vertical-scrollbar-position=left]){inset-inline:auto;left:var(--sa-corner-width);right:0}.m_c44ba933:where([data-orientation=horizontal]):where([data-vertical-scrollbar-position=right]){inset-inline:auto;left:0;right:var(--sa-corner-width)}.m_d8b5e363{border-radius:var(--scrollarea-scrollbar-size);opacity:var(--thumb-opacity);flex:1;transition:background-color .15s;position:relative;overflow:hidden}.m_d8b5e363:before{content:"";width:100%;height:100%;min-width:calc(2.75rem * var(--mantine-scale));min-height:calc(2.75rem * var(--mantine-scale));position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}:where([data-mantine-color-scheme=light]) .m_d8b5e363{background-color:#0006}:where([data-mantine-color-scheme=dark]) .m_d8b5e363{background-color:#fff6}.m_21657268{opacity:0;inset-inline-end:0;transition:opacity .15s;display:block;position:absolute;bottom:0}.m_21657268:where([data-vertical-scrollbar-position=left]){inset-inline-end:auto;left:0;right:auto}.m_21657268:where([data-vertical-scrollbar-position=right]){inset-inline-end:auto;left:auto;right:0}:where([data-mantine-color-scheme=light]) .m_21657268{background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_21657268{background-color:var(--mantine-color-dark-8)}.m_21657268:where([data-hovered]){opacity:1}.m_21657268:where([data-hidden]){display:none}.m_b1336c6{min-width:100%}.m_87cf2631{cursor:pointer;appearance:none;font-size:var(--mantine-font-size-md);text-align:start;color:inherit;touch-action:manipulation;-webkit-tap-highlight-color:transparent;background-color:#0000;border:0;padding:0;text-decoration:none}.m_515a97f8{clip:rect(0 0 0 0);height:calc(.0625rem * var(--mantine-scale));width:calc(.0625rem * var(--mantine-scale));margin:calc(-.0625rem * var(--mantine-scale));white-space:nowrap;border:0;padding:0;position:absolute;overflow:hidden}.m_1b7284a3{--paper-radius:var(--mantine-radius-default);-webkit-tap-highlight-color:transparent;touch-action:manipulation;border-radius:var(--paper-radius);box-shadow:var(--paper-shadow);background-color:var(--mantine-color-body);outline:0;text-decoration:none;display:block}[data-mantine-color-scheme=light] .m_1b7284a3{--paper-border-color:var(--mantine-color-gray-3)}[data-mantine-color-scheme=dark] .m_1b7284a3{--paper-border-color:var(--mantine-color-dark-4)}.m_1b7284a3:where([data-with-border]){border:calc(.0625rem * var(--mantine-scale)) solid var(--paper-border-color)}.m_9814e45f{background:var(--overlay-bg,#0009);-webkit-backdrop-filter:var(--overlay-filter);backdrop-filter:var(--overlay-filter);border-radius:var(--overlay-radius,0);z-index:var(--overlay-z-index);position:absolute;inset:0}.m_9814e45f:where([data-fixed]){position:fixed}.m_9814e45f:where([data-center]){justify-content:center;align-items:center;display:flex}.m_38a85659{border:1px solid var(--popover-border-color);padding:var(--mantine-spacing-sm) var(--mantine-spacing-md);box-shadow:var(--popover-shadow,none);border-radius:var(--popover-radius,var(--mantine-radius-default));position:absolute}.m_38a85659:where([data-fixed]){position:fixed}.m_38a85659:focus{outline:none}:where([data-mantine-color-scheme=light]) .m_38a85659{--popover-border-color:var(--mantine-color-gray-2);background-color:var(--mantine-color-white)}:where([data-mantine-color-scheme=dark]) .m_38a85659{--popover-border-color:var(--mantine-color-dark-4);background-color:var(--mantine-color-dark-6)}.m_a31dc6c1{background-color:inherit;border:1px solid var(--popover-border-color);z-index:1}.m_3d7bc908{position:fixed;inset:0}.m_5ae2e3c{--loader-size-xs:calc(1.125rem * var(--mantine-scale));--loader-size-sm:calc(1.375rem * var(--mantine-scale));--loader-size-md:calc(2.25rem * var(--mantine-scale));--loader-size-lg:calc(2.75rem * var(--mantine-scale));--loader-size-xl:calc(3.625rem * var(--mantine-scale));--loader-size:var(--loader-size-md);--loader-color:var(--mantine-primary-color-filled)}@keyframes m_5d2b3b9d{0%{opacity:0;transform:scale(.6)}50%,to{transform:scale(1)}}.m_7a2bd4cd{width:var(--loader-size);height:var(--loader-size);gap:calc(var(--loader-size) / 5);display:flex;position:relative}.m_870bb79{background:var(--loader-color);border-radius:calc(.125rem * var(--mantine-scale));flex:1;animation:1.2s cubic-bezier(0,.5,.5,1) infinite m_5d2b3b9d}.m_870bb79:first-of-type{animation-delay:-240ms}.m_870bb79:nth-of-type(2){animation-delay:-120ms}.m_870bb79:nth-of-type(3){animation-delay:0}@keyframes m_aac34a1{0%,to{opacity:1;transform:scale(1)}50%{opacity:.5;transform:scale(.6)}}.m_4e3f22d7{justify-content:center;align-items:center;gap:calc(var(--loader-size) / 10);width:var(--loader-size);height:var(--loader-size);display:flex;position:relative}.m_870c4af{width:calc(var(--loader-size) / 3 - var(--loader-size) / 15);height:calc(var(--loader-size) / 3 - var(--loader-size) / 15);background:var(--loader-color);border-radius:50%;animation:.8s linear infinite m_aac34a1}.m_870c4af:nth-child(2){animation-delay:.4s}@keyframes m_f8e89c4b{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.m_b34414df{width:var(--loader-size);height:var(--loader-size);display:inline-block}.m_b34414df:after{content:"";width:var(--loader-size);height:var(--loader-size);border-radius:calc(625rem * var(--mantine-scale));border-width:calc(var(--loader-size) / 8);border-style:solid;border-color:var(--loader-color) var(--loader-color) var(--loader-color) transparent;animation:1.2s linear infinite m_f8e89c4b;display:block}.m_8d3f4000{--ai-size-xs:calc(1.125rem * var(--mantine-scale));--ai-size-sm:calc(1.375rem * var(--mantine-scale));--ai-size-md:calc(1.75rem * var(--mantine-scale));--ai-size-lg:calc(2.125rem * var(--mantine-scale));--ai-size-xl:calc(2.75rem * var(--mantine-scale));--ai-size-input-xs:calc(1.875rem * var(--mantine-scale));--ai-size-input-sm:calc(2.25rem * var(--mantine-scale));--ai-size-input-md:calc(2.625rem * var(--mantine-scale));--ai-size-input-lg:calc(3.125rem * var(--mantine-scale));--ai-size-input-xl:calc(3.75rem * var(--mantine-scale));--ai-size:var(--ai-size-md);--ai-color:var(--mantine-color-white);-webkit-user-select:none;user-select:none;width:var(--ai-size);height:var(--ai-size);min-width:var(--ai-size);min-height:var(--ai-size);border-radius:var(--ai-radius,var(--mantine-radius-default));background:var(--ai-bg,var(--mantine-primary-color-filled));color:var(--ai-color,var(--mantine-color-white));border:var(--ai-bd,calc(.0625rem * var(--mantine-scale)) solid transparent);cursor:pointer;justify-content:center;align-items:center;line-height:1;display:inline-flex;position:relative;overflow:hidden}@media (hover:hover){.m_8d3f4000:hover:where(:not([data-loading],:disabled,[data-disabled])){background-color:var(--ai-hover,var(--mantine-primary-color-filled-hover));color:var(--ai-hover-color,var(--ai-color))}}@media (hover:none){.m_8d3f4000:active:where(:not([data-loading],:disabled,[data-disabled])){background-color:var(--ai-hover,var(--mantine-primary-color-filled-hover));color:var(--ai-hover-color,var(--ai-color))}}.m_8d3f4000[data-loading]{cursor:not-allowed}.m_8d3f4000[data-loading] .m_8d3afb97{opacity:0;transform:translateY(100%)}.m_8d3f4000:where(:disabled:not([data-loading]),[data-disabled]:not([data-loading])){cursor:not-allowed;border:calc(.0625rem * var(--mantine-scale)) solid transparent;color:var(--mantine-color-disabled-color);background:var(--mantine-color-disabled)}.m_8d3f4000:where(:disabled:not([data-loading]),[data-disabled]:not([data-loading])):active{transform:none}.m_302b9fb1{inset:calc(-.0625rem * var(--mantine-scale));border-radius:var(--ai-radius,var(--mantine-radius-default));justify-content:center;align-items:center;display:flex;position:absolute}:where([data-mantine-color-scheme=light]) .m_302b9fb1{background-color:#ffffff26}:where([data-mantine-color-scheme=dark]) .m_302b9fb1{background-color:#00000026}.m_1a0f1b21{--ai-border-width:calc(.0625rem * var(--mantine-scale));display:flex}.m_1a0f1b21 :where(*):focus{z-index:1;position:relative}.m_1a0f1b21[data-orientation=horizontal]{flex-direction:row}.m_1a0f1b21[data-orientation=horizontal] .m_8d3f4000:not(:only-child):first-child,.m_1a0f1b21[data-orientation=horizontal] .m_437b6484:not(:only-child):first-child{border-inline-end-width:calc(var(--ai-border-width) / 2);border-start-end-radius:0;border-end-end-radius:0}.m_1a0f1b21[data-orientation=horizontal] .m_8d3f4000:not(:only-child):last-child,.m_1a0f1b21[data-orientation=horizontal] .m_437b6484:not(:only-child):last-child{border-inline-start-width:calc(var(--ai-border-width) / 2);border-start-start-radius:0;border-end-start-radius:0}.m_1a0f1b21[data-orientation=horizontal] .m_8d3f4000:not(:only-child):not(:first-child):not(:last-child),.m_1a0f1b21[data-orientation=horizontal] .m_437b6484:not(:only-child):not(:first-child):not(:last-child){border-inline-width:calc(var(--ai-border-width) / 2);border-radius:0}.m_1a0f1b21[data-orientation=vertical]{flex-direction:column}.m_1a0f1b21[data-orientation=vertical] .m_8d3f4000:not(:only-child):first-child,.m_1a0f1b21[data-orientation=vertical] .m_437b6484:not(:only-child):first-child{border-bottom-width:calc(var(--ai-border-width) / 2);border-end-end-radius:0;border-end-start-radius:0}.m_1a0f1b21[data-orientation=vertical] .m_8d3f4000:not(:only-child):last-child,.m_1a0f1b21[data-orientation=vertical] .m_437b6484:not(:only-child):last-child{border-top-width:calc(var(--ai-border-width) / 2);border-start-start-radius:0;border-start-end-radius:0}.m_1a0f1b21[data-orientation=vertical] .m_8d3f4000:not(:only-child):not(:first-child):not(:last-child),.m_1a0f1b21[data-orientation=vertical] .m_437b6484:not(:only-child):not(:first-child):not(:last-child){border-bottom-width:calc(var(--ai-border-width) / 2);border-top-width:calc(var(--ai-border-width) / 2);border-radius:0}.m_8d3afb97{justify-content:center;align-items:center;width:100%;height:100%;transition:transform .15s,opacity .1s;display:flex}.m_437b6484{--section-height-xs:calc(1.125rem * var(--mantine-scale));--section-height-sm:calc(1.375rem * var(--mantine-scale));--section-height-md:calc(1.75rem * var(--mantine-scale));--section-height-lg:calc(2.125rem * var(--mantine-scale));--section-height-xl:calc(2.75rem * var(--mantine-scale));--section-height-input-xs:calc(1.875rem * var(--mantine-scale));--section-height-input-sm:calc(2.25rem * var(--mantine-scale));--section-height-input-md:calc(2.625rem * var(--mantine-scale));--section-height-input-lg:calc(3.125rem * var(--mantine-scale));--section-height-input-xl:calc(3.75rem * var(--mantine-scale));--section-padding-x-xs:calc(.375rem * var(--mantine-scale));--section-padding-x-sm:calc(.5rem * var(--mantine-scale));--section-padding-x-md:calc(.625rem * var(--mantine-scale));--section-padding-x-lg:calc(.75rem * var(--mantine-scale));--section-padding-x-xl:calc(1rem * var(--mantine-scale));--section-height:var(--section-height-sm);--section-padding-x:var(--section-padding-x-sm);--section-color:var(--mantine-color-white);font-weight:var(--mantine-font-weight-medium);border-radius:var(--section-radius,var(--mantine-radius-default));width:auto;font-size:var(--section-fz,var(--mantine-font-size-sm));background:var(--section-bg,var(--mantine-primary-color-filled));border:var(--section-bd,calc(.0625rem * var(--mantine-scale)) solid transparent);color:var(--section-color,var(--mantine-color-white));height:var(--section-height,var(--section-height-sm));padding-inline:var(--section-padding-x,var(--section-padding-x-sm));vertical-align:middle;justify-content:center;align-items:center;line-height:1;display:inline-flex}.m_86a44da5{--cb-size-xs:calc(1.125rem * var(--mantine-scale));--cb-size-sm:calc(1.375rem * var(--mantine-scale));--cb-size-md:calc(1.75rem * var(--mantine-scale));--cb-size-lg:calc(2.125rem * var(--mantine-scale));--cb-size-xl:calc(2.75rem * var(--mantine-scale));--cb-size:var(--cb-size-md);--cb-icon-size:70%;--cb-radius:var(--mantine-radius-default);-webkit-user-select:none;user-select:none;width:var(--cb-size);height:var(--cb-size);min-width:var(--cb-size);min-height:var(--cb-size);border-radius:var(--cb-radius);justify-content:center;align-items:center;line-height:1;display:inline-flex;position:relative}:where([data-mantine-color-scheme=light]) .m_86a44da5{color:var(--mantine-color-gray-7)}:where([data-mantine-color-scheme=dark]) .m_86a44da5{color:var(--mantine-color-dark-1)}.m_86a44da5[data-disabled],.m_86a44da5:disabled{cursor:not-allowed;opacity:.6}@media (hover:hover){:where([data-mantine-color-scheme=light]) .m_220c80f2:where(:not([data-disabled],:disabled)):hover{background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_220c80f2:where(:not([data-disabled],:disabled)):hover{background-color:var(--mantine-color-dark-6)}}@media (hover:none){:where([data-mantine-color-scheme=light]) .m_220c80f2:where(:not([data-disabled],:disabled)):active{background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_220c80f2:where(:not([data-disabled],:disabled)):active{background-color:var(--mantine-color-dark-6)}}.m_4081bf90{flex-direction:row;flex-wrap:var(--group-wrap,wrap);justify-content:var(--group-justify,flex-start);align-items:var(--group-align,center);gap:var(--group-gap,var(--mantine-spacing-md));display:flex}.m_4081bf90:where([data-grow])>*{max-width:var(--group-child-width);flex-grow:1}.m_615af6c9{line-height:1;font-weight:var(--mantine-font-weight-regular);font-size:var(--mantine-font-size-md);margin:0;padding:0}.m_b5489c3c{padding:var(--mb-padding,var(--mantine-spacing-md));background-color:var(--mantine-color-body);z-index:1000;min-height:calc(3.75rem * var(--mantine-scale));justify-content:space-between;align-items:center;padding-inline-end:calc(var(--mb-padding,var(--mantine-spacing-md)) - calc(.3125rem * var(--mantine-scale)));transition:padding-inline-end .1s;display:flex;position:sticky;top:0}.m_60c222c7{width:100%;z-index:var(--mb-z-index);pointer-events:none;position:fixed;top:0;bottom:0}.m_fd1ab0aa{pointer-events:all;box-shadow:var(--mb-shadow,var(--mantine-shadow-xl))}.m_fd1ab0aa [data-mantine-scrollbar]{z-index:1001}[data-offset-scrollbars] .m_fd1ab0aa:has([data-mantine-scrollbar]) .m_b5489c3c{padding-inline-end:calc(var(--mb-padding,var(--mantine-spacing-md)) + calc(.3125rem * var(--mantine-scale)))}.m_606cb269{margin-inline-start:auto}.m_5df29311{padding:var(--mb-padding,var(--mantine-spacing-md));padding-top:var(--mb-padding,var(--mantine-spacing-md))}.m_5df29311:where(:not(:only-child)){padding-top:0}.m_6c018570{margin-top:var(--input-margin-top,0rem);margin-bottom:var(--input-margin-bottom,0rem);--input-height-xs:calc(1.875rem * var(--mantine-scale));--input-height-sm:calc(2.25rem * var(--mantine-scale));--input-height-md:calc(2.625rem * var(--mantine-scale));--input-height-lg:calc(3.125rem * var(--mantine-scale));--input-height-xl:calc(3.75rem * var(--mantine-scale));--input-padding-y-xs:calc(.3125rem * var(--mantine-scale));--input-padding-y-sm:calc(.375rem * var(--mantine-scale));--input-padding-y-md:calc(.5rem * var(--mantine-scale));--input-padding-y-lg:calc(.625rem * var(--mantine-scale));--input-padding-y-xl:calc(.8125rem * var(--mantine-scale));--input-height:var(--input-height-sm);--input-radius:var(--mantine-radius-default);--input-cursor:text;--input-line-height:calc(var(--input-height) - calc(.125rem * var(--mantine-scale)));--input-padding:calc(var(--input-height) / 3);--input-padding-inline-start:var(--input-padding);--input-padding-inline-end:var(--input-padding);--input-placeholder-color:var(--mantine-color-placeholder);--input-color:var(--mantine-color-text);--input-disabled-bg:var(--mantine-color-disabled);--input-disabled-color:var(--mantine-color-disabled-color);--input-left-section-size:var(--input-left-section-width,calc(var(--input-height) - calc(.125rem * var(--mantine-scale))));--input-right-section-size:var(--input-right-section-width,calc(var(--input-height) - calc(.125rem * var(--mantine-scale))));--input-size:var(--input-height);--section-y:calc(.0625rem * var(--mantine-scale));--left-section-start:calc(.0625rem * var(--mantine-scale));--left-section-border-radius:var(--input-radius) 0 0 var(--input-radius);--right-section-end:calc(.0625rem * var(--mantine-scale));--right-section-border-radius:0 var(--input-radius) var(--input-radius) 0;position:relative}.m_6c018570[data-variant=unstyled]{--input-padding:0;--input-padding-y:0;--input-padding-inline-start:0;--input-padding-inline-end:0}.m_6c018570[data-pointer]{--input-cursor:pointer}.m_6c018570[data-with-bottom-section]{--input-bottom-section-height:calc(1.75rem * var(--mantine-scale))}.m_6c018570[data-multiline]{--input-padding-y-xs:calc(.28125rem * var(--mantine-scale));--input-padding-y-sm:calc(.34375rem * var(--mantine-scale));--input-padding-y-md:calc(.4375rem * var(--mantine-scale));--input-padding-y-lg:calc(.59375rem * var(--mantine-scale));--input-padding-y-xl:calc(.8125rem * var(--mantine-scale));--input-size:auto;--input-line-height:var(--mantine-line-height)}.m_6c018570[data-with-left-section]{--input-padding-inline-start:var(--input-left-section-size)}.m_6c018570[data-with-right-section]{--input-padding-inline-end:var(--input-right-section-size)}.m_6c018570[data-size=xs] .m_6c018570[data-with-right-section]:has([data-combined-clear-section]){--input-padding-inline-end:calc(2.5625rem * var(--mantine-scale))}.m_6c018570[data-size=sm] .m_6c018570[data-with-right-section]:has([data-combined-clear-section]){--input-padding-inline-end:calc(3.125rem * var(--mantine-scale))}.m_6c018570[data-size=md] .m_6c018570[data-with-right-section]:has([data-combined-clear-section]){--input-padding-inline-end:calc(3.75rem * var(--mantine-scale))}.m_6c018570[data-size=lg] .m_6c018570[data-with-right-section]:has([data-combined-clear-section]){--input-padding-inline-end:calc(4.5rem * var(--mantine-scale))}.m_6c018570[data-size=xl] .m_6c018570[data-with-right-section]:has([data-combined-clear-section]){--input-padding-inline-end:calc(5.5625rem * var(--mantine-scale))}[data-mantine-color-scheme=light] .m_6c018570[data-variant=default]{--input-bd:var(--mantine-color-gray-4);--input-bg:var(--mantine-color-white);--input-bd-focus:var(--mantine-primary-color-filled)}[data-mantine-color-scheme=light] .m_6c018570[data-variant=filled]{--input-bd:transparent;--input-bg:var(--mantine-color-gray-1);--input-bd-focus:var(--mantine-primary-color-filled)}[data-mantine-color-scheme=light] .m_6c018570[data-variant=unstyled]{--input-bd:transparent;--input-bg:transparent;--input-bd-focus:transparent}[data-mantine-color-scheme=dark] .m_6c018570[data-variant=default]{--input-bd:var(--mantine-color-dark-4);--input-bg:var(--mantine-color-dark-6);--input-bd-focus:var(--mantine-primary-color-filled)}[data-mantine-color-scheme=dark] .m_6c018570[data-variant=filled]{--input-bd:transparent;--input-bg:var(--mantine-color-dark-5);--input-bd-focus:var(--mantine-primary-color-filled)}[data-mantine-color-scheme=dark] .m_6c018570[data-variant=unstyled]{--input-bd:transparent;--input-bg:transparent;--input-bd-focus:transparent}[data-mantine-color-scheme] .m_6c018570[data-error]:not([data-variant=unstyled]){--input-bd:var(--mantine-color-error)}[data-mantine-color-scheme] .m_6c018570[data-error]{--input-color:var(--mantine-color-error);--input-placeholder-color:var(--mantine-color-error);--input-section-color:var(--mantine-color-error)}[data-mantine-color-scheme] .m_6c018570[data-success]:not([data-variant=unstyled]){--input-bd:var(--mantine-color-success)}[data-mantine-color-scheme] .m_6c018570[data-success]{--input-section-color:var(--mantine-color-success)}:where([dir=rtl]) .m_6c018570{--left-section-border-radius:0 var(--input-radius) var(--input-radius) 0;--right-section-border-radius:var(--input-radius) 0 0 var(--input-radius)}.m_6c018570[dir=ltr]{--left-section-border-radius:var(--input-radius) 0 0 var(--input-radius);--right-section-border-radius:0 var(--input-radius) var(--input-radius) 0}.m_8fb7ebe7{-webkit-tap-highlight-color:transparent;appearance:none;resize:var(--input-resize,none);width:100%;text-align:var(--input-text-align,start);color:var(--input-color);border:calc(.0625rem * var(--mantine-scale)) solid var(--input-bd);background-color:var(--input-bg);font-family:var(--input-font-family,var(--mantine-font-family));height:var(--input-size);min-height:var(--input-height);line-height:var(--input-line-height);font-size:var(--_input-fz,var(--input-fz,var(--mantine-font-size-md)));border-radius:var(--input-radius);padding-inline-start:var(--input-padding-inline-start);padding-inline-end:var(--input-padding-inline-end);padding-top:var(--input-padding-y,0rem);padding-bottom:var(--input-padding-y,0rem);cursor:var(--input-cursor);overflow:var(--input-overflow);transition:border-color .1s;display:block}.m_8fb7ebe7[data-no-overflow]{--input-overflow:hidden}.m_8fb7ebe7[data-monospace]{--input-font-family:var(--mantine-font-family-monospace);--_input-fz:calc(var(--input-fz) - calc(.125rem * var(--mantine-scale)))}.m_8fb7ebe7:focus,.m_8fb7ebe7:focus-within{--input-bd:var(--input-bd-focus);outline:none}.m_6c018570[data-error] .m_8fb7ebe7:focus,.m_6c018570[data-error] .m_8fb7ebe7:focus-within{--input-bd:var(--mantine-color-error)}.m_6c018570[data-success] .m_8fb7ebe7:focus,.m_6c018570[data-success] .m_8fb7ebe7:focus-within{--input-bd:var(--mantine-color-success)}.m_8fb7ebe7::placeholder{color:var(--input-placeholder-color);opacity:1}.m_8fb7ebe7::-webkit-inner-spin-button{appearance:none}.m_8fb7ebe7::-webkit-outer-spin-button{appearance:none}.m_8fb7ebe7::-webkit-search-decoration{appearance:none}.m_8fb7ebe7::-webkit-search-cancel-button{appearance:none}.m_8fb7ebe7::-webkit-search-results-button{appearance:none}.m_8fb7ebe7::-webkit-search-results-decoration{appearance:none}.m_8fb7ebe7[type=number]{-moz-appearance:textfield}.m_8fb7ebe7:disabled,.m_8fb7ebe7[data-disabled]{cursor:not-allowed;opacity:.6;background-color:var(--input-disabled-bg);color:var(--input-disabled-color)}.m_8fb7ebe7:has(input:disabled){cursor:not-allowed;opacity:.6;background-color:var(--input-disabled-bg);color:var(--input-disabled-color)}.m_8fb7ebe7[readonly]{caret-color:#0000}[data-with-bottom-section] .m_8fb7ebe7{padding-bottom:calc(var(--input-padding-y,0rem) + var(--input-bottom-section-height))}.m_93f4ed57{bottom:calc(.0625rem * var(--mantine-scale));left:calc(.0625rem * var(--mantine-scale));right:calc(.0625rem * var(--mantine-scale));height:var(--input-bottom-section-height);padding-inline:var(--input-padding);border-radius:0 0 var(--input-radius) var(--input-radius);pointer-events:all;color:var(--mantine-color-dimmed);font-size:var(--input-fz,var(--mantine-font-size-sm));justify-content:flex-start;align-items:center;display:flex;position:absolute}.m_82577fc2{pointer-events:var(--section-pointer-events);z-index:1;inset-inline-start:var(--section-start);inset-inline-end:var(--section-end);bottom:var(--section-y);top:var(--section-y);width:var(--section-size);border-radius:var(--section-border-radius);color:var(--input-section-color,var(--mantine-color-dimmed));justify-content:center;align-items:center;display:flex;position:absolute}.m_82577fc2[data-position=right]{--section-pointer-events:var(--input-right-section-pointer-events);--section-end:var(--right-section-end);--section-size:var(--input-right-section-size);--section-border-radius:var(--right-section-border-radius)}.m_6c018570[data-size=xs] .m_82577fc2[data-position=right]:has([data-combined-clear-section]){--section-size:calc(2.5625rem * var(--mantine-scale))}.m_6c018570[data-size=sm] .m_82577fc2[data-position=right]:has([data-combined-clear-section]){--section-size:calc(3.125rem * var(--mantine-scale))}.m_6c018570[data-size=md] .m_82577fc2[data-position=right]:has([data-combined-clear-section]){--section-size:calc(3.75rem * var(--mantine-scale))}.m_6c018570[data-size=lg] .m_82577fc2[data-position=right]:has([data-combined-clear-section]){--section-size:calc(4.5rem * var(--mantine-scale))}.m_6c018570[data-size=xl] .m_82577fc2[data-position=right]:has([data-combined-clear-section]){--section-size:calc(5.5625rem * var(--mantine-scale))}.m_82577fc2[data-position=left]{--section-pointer-events:var(--input-left-section-pointer-events);--section-start:var(--left-section-start);--section-size:var(--input-left-section-size);--section-border-radius:var(--left-section-border-radius)}.m_88bacfd0{color:var(--input-placeholder-color,var(--mantine-color-placeholder))}.m_6c018570[data-error] .m_88bacfd0{--input-placeholder-color:var(--input-color,var(--mantine-color-placeholder))}.m_46b77525{line-height:var(--mantine-line-height)}.m_8fdc1311{font-weight:var(--mantine-font-weight-medium);overflow-wrap:break-word;cursor:default;-webkit-tap-highlight-color:transparent;font-size:var(--input-label-size,var(--mantine-font-size-sm));display:inline-block}.m_78a94662{color:var(--input-asterisk-color,var(--mantine-color-error))}.m_8f816625,.m_9d9d40e0,.m_fe47ce59{word-wrap:break-word;margin:0;padding:0;line-height:1.2;display:block}.m_8f816625{color:var(--mantine-color-error);font-size:var(--input-error-size,calc(var(--mantine-font-size-sm) - calc(.125rem * var(--mantine-scale))))}.m_9d9d40e0{color:var(--mantine-color-success);font-size:var(--input-success-size,calc(var(--mantine-font-size-sm) - calc(.125rem * var(--mantine-scale))))}.m_fe47ce59{color:var(--mantine-color-dimmed);font-size:var(--input-description-size,calc(var(--mantine-font-size-sm) - calc(.125rem * var(--mantine-scale))))}.m_8bffd616{display:flex}.m_96b553a6{--transition-duration:.15s;z-index:0;transition-property:transform,width,height;transition-duration:0s;transition-timing-function:ease;position:absolute;top:0;left:0}.m_96b553a6:where([data-initialized]){transition-duration:var(--transition-duration)}.m_96b553a6:where([data-hidden]){display:none}.m_9bdbb667{--accordion-radius:var(--mantine-radius-default)}.m_df78851f{overflow-wrap:break-word}.m_4ba554d4{padding:var(--mantine-spacing-md);padding-top:calc(var(--mantine-spacing-xs) / 2)}.m_8fa820a0{width:100%;margin:0;padding:0}.m_4ba585b8{width:100%;padding-inline:var(--mantine-spacing-md);opacity:1;cursor:pointer;color:var(--mantine-color-bright);background-color:#0000;flex-direction:row-reverse;align-items:center;display:flex}.m_4ba585b8:where([data-chevron-position=left]){flex-direction:row;padding-inline-start:0}.m_4ba585b8:where(:disabled,[data-disabled]){opacity:.4;cursor:not-allowed}@media (hover:hover){:where([data-mantine-color-scheme=light]) .m_6939a5e9:where(:not(:disabled,[data-disabled])):hover,:where([data-mantine-color-scheme=light]) .m_4271d21b:where(:not(:disabled,[data-disabled])):hover{background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_6939a5e9:where(:not(:disabled,[data-disabled])):hover,:where([data-mantine-color-scheme=dark]) .m_4271d21b:where(:not(:disabled,[data-disabled])):hover{background-color:var(--mantine-color-dark-6)}}@media (hover:none){:where([data-mantine-color-scheme=light]) .m_6939a5e9:where(:not(:disabled,[data-disabled])):active,:where([data-mantine-color-scheme=light]) .m_4271d21b:where(:not(:disabled,[data-disabled])):active{background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_6939a5e9:where(:not(:disabled,[data-disabled])):active,:where([data-mantine-color-scheme=dark]) .m_4271d21b:where(:not(:disabled,[data-disabled])):active{background-color:var(--mantine-color-dark-6)}}.m_df3ffa0f{color:inherit;font-weight:var(--mantine-font-weight-regular);text-overflow:ellipsis;padding-top:var(--mantine-spacing-sm);padding-bottom:var(--mantine-spacing-sm);flex:1;overflow:hidden}.m_3f35ae96{transition:transform var(--accordion-transition-duration,.2s) ease;width:var(--accordion-chevron-size,calc(.9375rem * var(--mantine-scale)));min-width:var(--accordion-chevron-size,calc(.9375rem * var(--mantine-scale)));justify-content:flex-start;align-items:center;display:flex;transform:rotate(0)}.m_3f35ae96:where([data-rotate]){transform:rotate(180deg)}.m_3f35ae96:where([data-position=left]){margin-inline-start:var(--mantine-spacing-md);margin-inline-end:var(--mantine-spacing-md)}.m_9bd771fe{justify-content:center;align-items:center;margin-inline-end:var(--mantine-spacing-sm);display:flex}.m_9bd771fe:where([data-chevron-position=left]){margin-inline-start:var(--mantine-spacing-lg);margin-inline-end:0}:where([data-mantine-color-scheme=light]) .m_9bd7b098{--item-border-color:var(--mantine-color-gray-3);--item-filled-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_9bd7b098{--item-border-color:var(--mantine-color-dark-4);--item-filled-color:var(--mantine-color-dark-6)}.m_fe19b709{border-bottom:1px solid var(--item-border-color)}.m_1f921b3b{border:1px solid var(--item-border-color);transition:background-color .15s}.m_1f921b3b:where([data-active]){background-color:var(--item-filled-color)}.m_1f921b3b:first-of-type,.m_1f921b3b:first-of-type>[data-accordion-control]{border-start-start-radius:var(--accordion-radius);border-start-end-radius:var(--accordion-radius)}.m_1f921b3b:last-of-type,.m_1f921b3b:last-of-type>[data-accordion-control]{border-end-end-radius:var(--accordion-radius);border-end-start-radius:var(--accordion-radius)}.m_1f921b3b+.m_1f921b3b{border-top:0}.m_2cdf939a{border-radius:var(--accordion-radius)}.m_2cdf939a:where([data-active]){background-color:var(--item-filled-color)}.m_9f59b069{background-color:var(--item-filled-color);border-radius:var(--accordion-radius);border:calc(.0625rem * var(--mantine-scale)) solid transparent;transition:background-color .15s}.m_9f59b069[data-active]{border-color:var(--item-border-color)}:where([data-mantine-color-scheme=light]) .m_9f59b069[data-active]{background-color:var(--mantine-color-white)}:where([data-mantine-color-scheme=dark]) .m_9f59b069[data-active]{background-color:var(--mantine-color-dark-7)}.m_9f59b069+.m_9f59b069{margin-top:var(--mantine-spacing-md)}.m_7f854edf{z-index:var(--affix-z-index);inset-inline-start:var(--affix-left);inset-inline-end:var(--affix-right);top:var(--affix-top);bottom:var(--affix-bottom);position:fixed}.m_66836ed3{--alert-radius:var(--mantine-radius-default);--alert-bg:var(--mantine-primary-color-light);--alert-bd:calc(.0625rem * var(--mantine-scale)) solid transparent;--alert-color:var(--mantine-primary-color-light-color);padding:var(--mantine-spacing-md) var(--mantine-spacing-md);border-radius:var(--alert-radius);background-color:var(--alert-bg);border:var(--alert-bd);color:var(--alert-color);position:relative;overflow:hidden}.m_a5d60502{display:flex}.m_667c2793{gap:var(--mantine-spacing-xs);flex-direction:column;flex:1;display:flex}.m_6a03f287{font-size:var(--mantine-font-size-sm);font-weight:var(--mantine-font-weight-bold);justify-content:space-between;align-items:center;display:flex}.m_6a03f287:where([data-with-close-button]){padding-inline-end:var(--mantine-spacing-md)}.m_698f4f23{text-overflow:ellipsis;display:block;overflow:hidden}.m_667f2a6a{width:calc(1.25rem * var(--mantine-scale));height:calc(1.25rem * var(--mantine-scale));margin-inline-end:var(--mantine-spacing-md);margin-top:calc(.0625rem * var(--mantine-scale));justify-content:flex-start;align-items:center;line-height:1;display:flex}.m_7fa78076{text-overflow:ellipsis;font-size:var(--mantine-font-size-sm);overflow:hidden}:where([data-mantine-color-scheme=light]) .m_7fa78076{color:var(--mantine-color-black)}:where([data-mantine-color-scheme=dark]) .m_7fa78076{color:var(--mantine-color-white)}.m_7fa78076:where([data-variant=filled]){color:var(--alert-color)}.m_7fa78076:where([data-variant=white]){color:var(--mantine-color-black)}.m_87f54839{width:calc(1.25rem * var(--mantine-scale));height:calc(1.25rem * var(--mantine-scale));color:var(--alert-color)}.m_b6d8b162{-webkit-tap-highlight-color:transparent;font-size:var(--text-fz,var(--mantine-font-size-md));line-height:var(--text-lh,var(--mantine-line-height-md));font-weight:var(--mantine-font-weight-regular);text-wrap:var(--text-text-wrap,var(--mantine-text-wrap));margin:0;padding:0;text-decoration:none}.m_b6d8b162:where([data-truncate]){text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.m_b6d8b162:where([data-truncate=start]){text-align:end;direction:rtl}:where([dir=rtl]) .m_b6d8b162:where([data-truncate=start]){text-align:start;direction:ltr}.m_b6d8b162:where([data-variant=gradient]){background-image:var(--text-gradient);-webkit-text-fill-color:transparent;-webkit-background-clip:text;background-clip:text}.m_b6d8b162:where([data-line-clamp]){text-overflow:ellipsis;-webkit-line-clamp:var(--text-line-clamp);-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.m_b6d8b162:where([data-inherit]){line-height:inherit;font-weight:inherit;font-size:inherit}.m_b6d8b162:where([data-inline]){line-height:1}.m_849cf0da{color:var(--mantine-color-anchor);appearance:none;cursor:pointer;background-color:#0000;border:none;margin:0;padding:0;text-decoration:none;display:inline}@media (hover:hover){.m_849cf0da:where([data-underline=hover]):hover{text-decoration:underline}}@media (hover:none){.m_849cf0da:where([data-underline=hover]):active{text-decoration:underline}}.m_849cf0da:where([data-underline=not-hover]){text-decoration:underline}@media (hover:hover){.m_849cf0da:where([data-underline=not-hover]):hover{text-decoration:none}}@media (hover:none){.m_849cf0da:where([data-underline=not-hover]):active{text-decoration:none}}.m_849cf0da:where([data-underline=always]){text-decoration:underline}.m_849cf0da:where([data-variant=gradient]),.m_849cf0da:where([data-variant=gradient]):hover{text-decoration:none}.m_849cf0da:where([data-line-clamp]){display:-webkit-box}.m_48204f9b{width:var(--slider-size);height:var(--slider-size);-webkit-user-select:none;user-select:none;border-radius:100%;justify-content:center;align-items:center;display:flex;position:relative}.m_48204f9b:focus-within{outline:2px solid var(--mantine-primary-color-filled);outline-offset:calc(.125rem * var(--mantine-scale))}.m_48204f9b{--slider-size:calc(3.75rem * var(--mantine-scale));--thumb-size:calc(var(--slider-size) / 5)}:where([data-mantine-color-scheme=light]) .m_48204f9b{background-color:var(--mantine-color-gray-1)}:where([data-mantine-color-scheme=dark]) .m_48204f9b{background-color:var(--mantine-color-dark-5)}.m_bb9cdbad{inset:calc(.0625rem * var(--mantine-scale));border-radius:var(--slider-size);pointer-events:none;position:absolute}.m_481dd586{width:calc(.125rem * var(--mantine-scale));transform:rotate(var(--angle));position:absolute;top:0;bottom:0;left:calc(50% - 1px)}.m_481dd586:before{content:"";top:calc(var(--thumb-size) / 3);left:calc(.03125rem * var(--mantine-scale));width:calc(.0625rem * var(--mantine-scale));height:calc(var(--thumb-size) / 1.5);position:absolute;transform:translate(-50%,-50%)}:where([data-mantine-color-scheme=light]) .m_481dd586:before{background-color:var(--mantine-color-gray-4)}:where([data-mantine-color-scheme=dark]) .m_481dd586:before{background-color:var(--mantine-color-dark-3)}.m_481dd586[data-label]:after{min-width:calc(1.125rem * var(--mantine-scale));text-align:center;content:attr(data-label);top:calc(-1.5rem * var(--mantine-scale));left:calc(-.4375rem * var(--mantine-scale));transform:rotate(calc(360deg - var(--angle)));font-size:var(--mantine-font-size-xs);position:absolute}.m_bc02ba3d{height:100%;width:calc(.1875rem * var(--mantine-scale));pointer-events:none;outline:none;position:absolute;inset-block:0;inset-inline:calc(50% - 1.5px) 0}.m_bc02ba3d:before{content:"";height:min(var(--thumb-size), calc(var(--slider-size) / 2));width:calc(.1875rem * var(--mantine-scale));position:absolute;top:0;right:0}:where([data-mantine-color-scheme=light]) .m_bc02ba3d:before{background-color:var(--mantine-color-gray-7)}:where([data-mantine-color-scheme=dark]) .m_bc02ba3d:before{background-color:var(--mantine-color-dark-1)}.m_bb8e875b{font-size:var(--mantine-font-size-xs)}.m_89ab340[data-resizing]{--app-shell-transition-duration:0s!important}.m_89ab340[data-disabled]{--app-shell-header-offset:0rem!important;--app-shell-navbar-offset:0rem!important;--app-shell-aside-offset:0rem!important;--app-shell-footer-offset:0rem!important}.m_89ab340[data-mode=static]{grid-template-columns:var(--app-shell-navbar-width,0) 1fr var(--app-shell-aside-width,0);grid-template-rows:auto 1fr auto;height:100%;display:grid;position:relative;overflow:auto}[data-mantine-color-scheme=light] .m_89ab340{--app-shell-border-color:var(--mantine-color-gray-3)}[data-mantine-color-scheme=dark] .m_89ab340{--app-shell-border-color:var(--mantine-color-dark-4)}.m_45252eee,.m_9cdde9a,.m_3b16f56b,.m_8983817,.m_3840c879{transition-duration:var(--app-shell-transition-duration);transition-timing-function:var(--app-shell-transition-timing-function)}.m_45252eee,.m_9cdde9a{top:var(--app-shell-header-offset,0rem);height:calc(100dvh - var(--app-shell-header-offset,0rem) - var(--app-shell-footer-offset,0rem));background-color:var(--mantine-color-body);flex-direction:column;transition-property:transform,top,height;display:flex;position:fixed}:where([data-mode=static]) .m_45252eee,:where([data-mode=static]) .m_9cdde9a{position:var(--app-shell-navbar-position,fixed);grid-row:var(--app-shell-navbar-grid-row,auto);height:100%}:where([data-layout=alt]) .m_45252eee,:where([data-layout=alt]) .m_9cdde9a{height:100dvh;top:0}:where([data-mode=static][data-layout=alt]) .m_45252eee,:where([data-mode=static][data-layout=alt]) .m_9cdde9a{grid-row:1/-1;height:100%}.m_45252eee{width:var(--app-shell-navbar-width);transform:var(--app-shell-navbar-transform);z-index:var(--app-shell-navbar-z-index);transition-property:transform,top,height;inset-inline-start:0}:where([data-mode=static]) .m_45252eee{grid-column:var(--app-shell-navbar-grid-column,auto);display:var(--app-shell-navbar-display,flex)}:where([dir=rtl]) .m_45252eee{transform:var(--app-shell-navbar-transform-rtl)}.m_45252eee:where([data-with-border]){border-inline-end:1px solid var(--app-shell-border-color)}.m_9cdde9a{width:var(--app-shell-aside-width);transform:var(--app-shell-aside-transform);z-index:var(--app-shell-aside-z-index);inset-inline-end:0}:where([data-mode=static]) .m_9cdde9a{position:var(--app-shell-aside-position,fixed);grid-column:var(--app-shell-aside-grid-column,auto);grid-row:var(--app-shell-aside-grid-row,auto);display:var(--app-shell-aside-display,flex)}:where([dir=rtl]) .m_9cdde9a{transform:var(--app-shell-aside-transform-rtl)}.m_9cdde9a:where([data-with-border]){border-inline-start:1px solid var(--app-shell-border-color)}:where([data-mode=static][data-layout=alt]) .m_9cdde9a{grid-row:1/-1}:where([data-scroll-locked]) .m_9cdde9a{visibility:var(--app-shell-aside-scroll-locked-visibility)}.m_8983817{padding-inline-start:calc(var(--app-shell-navbar-offset,0rem) + var(--app-shell-padding));padding-inline-end:calc(var(--app-shell-aside-offset,0rem) + var(--app-shell-padding));padding-top:calc(var(--app-shell-header-offset,0rem) + var(--app-shell-padding));padding-bottom:calc(var(--app-shell-footer-offset,0rem) + var(--app-shell-padding));min-height:100dvh;transition-property:padding}:where([data-mode=static]) .m_8983817{padding-inline-start:var(--app-shell-padding);padding-inline-end:var(--app-shell-padding);padding-top:var(--app-shell-padding);padding-bottom:var(--app-shell-padding);grid-column:var(--app-shell-main-column-start,1) / var(--app-shell-main-column-end,-1);grid-row:var(--app-shell-main-grid-row,2);min-height:auto}.m_3b16f56b,.m_3840c879{background-color:var(--mantine-color-body);transition-property:transform,margin-inline-start,margin-inline-end;position:fixed;inset-inline:0}:where([data-mode=static]) .m_3b16f56b,:where([data-mode=static]) .m_3840c879{position:var(--app-shell-header-position,fixed);grid-column:var(--app-shell-header-grid-column,auto)}:where([data-layout=alt]) .m_3b16f56b,:where([data-layout=alt]) .m_3840c879{margin-inline-start:var(--app-shell-navbar-offset,0rem);margin-inline-end:var(--app-shell-aside-offset,0rem)}:where([data-mode=static][data-layout=alt]) .m_3b16f56b,:where([data-mode=static][data-layout=alt]) .m_3840c879{grid-column:var(--app-shell-main-column-start,1) / var(--app-shell-main-column-end,-1);margin-inline:0}.m_3b16f56b{height:var(--app-shell-header-height);background-color:var(--mantine-color-body);transform:var(--app-shell-header-transform);z-index:var(--app-shell-header-z-index);top:0}:where([data-mode=static]) .m_3b16f56b{grid-row:var(--app-shell-header-grid-row,auto)}.m_3b16f56b:where([data-with-border]){border-bottom:1px solid var(--app-shell-border-color)}.m_3840c879{height:calc(var(--app-shell-footer-height) + env(safe-area-inset-bottom));padding-bottom:env(safe-area-inset-bottom);transform:var(--app-shell-footer-transform);z-index:var(--app-shell-footer-z-index);bottom:0}:where([data-mode=static]) .m_3840c879{position:var(--app-shell-footer-position,fixed);grid-column:var(--app-shell-footer-grid-column,auto);grid-row:var(--app-shell-footer-grid-row,auto)}:where([data-mode=static][data-layout=alt]) .m_3840c879{grid-column:var(--app-shell-main-column-start,1) / var(--app-shell-main-column-end,-1)}.m_3840c879:where([data-with-border]){border-top:1px solid var(--app-shell-border-color)}.m_6dcfc7c7{flex-grow:0}.m_6dcfc7c7:where([data-grow]){flex-grow:1}.m_71ac47fc{--ar-ratio:1;max-width:100%}.m_71ac47fc>:where(:not(style)){aspect-ratio:var(--ar-ratio);width:100%}.m_71ac47fc>:where(img,video){object-fit:cover}.m_88b62a41{--combobox-padding:calc(.25rem * var(--mantine-scale));padding:var(--combobox-padding)}.m_88b62a41:has([data-mantine-scrollbar]) .m_985517d8{max-width:calc(100% + var(--combobox-padding))}.m_88b62a41[data-composed]{padding-inline-end:0}.m_88b62a41[data-hidden]{display:none}.m_88b62a41[data-floating-height=viewport]:not([data-hidden]){--combobox-floating-options-max-height:calc(var(--combobox-floating-max-height,100vh) - var(--combobox-padding) * 2);max-height:var(--combobox-floating-max-height,none);overflow:hidden}.m_88b62a41,.m_b2821a6e{--combobox-option-padding-xs:calc(.25rem * var(--mantine-scale)) calc(.5rem * var(--mantine-scale));--combobox-option-padding-sm:calc(.375rem * var(--mantine-scale)) calc(.625rem * var(--mantine-scale));--combobox-option-padding-md:calc(.5rem * var(--mantine-scale)) calc(.75rem * var(--mantine-scale));--combobox-option-padding-lg:calc(.625rem * var(--mantine-scale)) calc(1rem * var(--mantine-scale));--combobox-option-padding-xl:calc(.875rem * var(--mantine-scale)) calc(1.25rem * var(--mantine-scale));--combobox-option-padding:var(--combobox-option-padding-sm)}.m_92253aa5{padding:var(--combobox-option-padding);font-size:var(--combobox-option-fz,var(--mantine-font-size-sm));border-radius:var(--mantine-radius-default);color:inherit;cursor:pointer;overflow-wrap:break-word;background-color:#0000}.m_92253aa5:where([data-combobox-selected]){background-color:var(--mantine-primary-color-filled);color:var(--mantine-color-white)}.m_92253aa5:where([data-combobox-disabled]){cursor:not-allowed;opacity:.35}@media (hover:hover){:where([data-mantine-color-scheme=light]) .m_92253aa5:hover:where(:not([data-combobox-selected],[data-combobox-disabled])){background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_92253aa5:hover:where(:not([data-combobox-selected],[data-combobox-disabled])){background-color:var(--mantine-color-dark-7)}}@media (hover:none){:where([data-mantine-color-scheme=light]) .m_92253aa5:active:where(:not([data-combobox-selected],[data-combobox-disabled])){background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_92253aa5:active:where(:not([data-combobox-selected],[data-combobox-disabled])){background-color:var(--mantine-color-dark-7)}}.m_985517d8{margin-inline:calc(var(--combobox-padding) * -1);margin-top:calc(var(--combobox-padding) * -1);width:calc(100% + var(--combobox-padding) * 2);border-top-width:0;margin-bottom:var(--combobox-padding);border-inline-width:0;border-end-end-radius:0;border-end-start-radius:0;position:relative}:where([data-mantine-color-scheme=light]) .m_985517d8,:where([data-mantine-color-scheme=light]) .m_985517d8:focus{border-color:var(--mantine-color-gray-2)}:where([data-mantine-color-scheme=dark]) .m_985517d8,:where([data-mantine-color-scheme=dark]) .m_985517d8:focus{border-color:var(--mantine-color-dark-4)}:where([data-mantine-color-scheme=light]) .m_985517d8{background-color:var(--mantine-color-white)}:where([data-mantine-color-scheme=dark]) .m_985517d8{background-color:var(--mantine-color-dark-7)}.m_2530cd1d{font-size:var(--combobox-option-fz,var(--mantine-font-size-sm));text-align:center;padding:var(--combobox-option-padding);color:var(--mantine-color-dimmed)}.m_858f94bd,.m_82b967cb{font-size:var(--combobox-option-fz,var(--mantine-font-size-sm));margin-inline:calc(var(--combobox-padding) * -1);padding:var(--combobox-option-padding);border:0 solid #0000}:where([data-mantine-color-scheme=light]) .m_858f94bd,:where([data-mantine-color-scheme=light]) .m_82b967cb{border-color:var(--mantine-color-gray-2)}:where([data-mantine-color-scheme=dark]) .m_858f94bd,:where([data-mantine-color-scheme=dark]) .m_82b967cb{border-color:var(--mantine-color-dark-4)}.m_82b967cb{border-top-width:calc(.0625rem * var(--mantine-scale));margin-top:var(--combobox-padding);margin-bottom:calc(var(--combobox-padding) * -1)}.m_858f94bd{border-bottom-width:calc(.0625rem * var(--mantine-scale));margin-bottom:var(--combobox-padding);margin-top:calc(var(--combobox-padding) * -1)}.m_254f3e4f:has(.m_2bb2e9e5:only-child){display:none}.m_2bb2e9e5{color:var(--mantine-color-dimmed);font-size:calc(var(--combobox-option-fz,var(--mantine-font-size-sm)) * .85);padding:var(--combobox-option-padding);font-weight:var(--mantine-font-weight-medium);align-items:center;display:flex;position:relative}.m_2bb2e9e5:after{content:"";height:calc(.0625rem * var(--mantine-scale));flex:1;margin-inline-start:var(--mantine-spacing-xs);inset-inline:0}:where([data-mantine-color-scheme=light]) .m_2bb2e9e5:after{background-color:var(--mantine-color-gray-2)}:where([data-mantine-color-scheme=dark]) .m_2bb2e9e5:after{background-color:var(--mantine-color-dark-4)}.m_2bb2e9e5:only-child{display:none}.m_2943220b{--combobox-chevron-size-xs:calc(.875rem * var(--mantine-scale));--combobox-chevron-size-sm:calc(1.125rem * var(--mantine-scale));--combobox-chevron-size-md:calc(1.25rem * var(--mantine-scale));--combobox-chevron-size-lg:calc(1.5rem * var(--mantine-scale));--combobox-chevron-size-xl:calc(1.75rem * var(--mantine-scale));--combobox-chevron-size:var(--combobox-chevron-size-sm)}:where([data-mantine-color-scheme=light]) .m_2943220b{--_combobox-chevron-color:var(--combobox-chevron-color,var(--mantine-color-gray-6))}:where([data-mantine-color-scheme=dark]) .m_2943220b{--_combobox-chevron-color:var(--combobox-chevron-color,var(--mantine-color-dark-3))}.m_2943220b{width:var(--combobox-chevron-size);height:var(--combobox-chevron-size);color:var(--_combobox-chevron-color)}.m_2943220b:where([data-error]){color:var(--combobox-chevron-color,var(--mantine-color-error))}.m_390b5f4{align-items:center;gap:calc(.5rem * var(--mantine-scale));display:flex}.m_390b5f4:where([data-reverse]){justify-content:space-between}.m_8ee53fc2{opacity:.4;width:.8em;min-width:.8em;height:.8em}:where([data-combobox-selected]) .m_8ee53fc2{opacity:1}.m_a530ee0a{width:.8em;min-width:.8em;height:.8em}.m_5f75b09e{--label-lh-xs:calc(1rem * var(--mantine-scale));--label-lh-sm:calc(1.25rem * var(--mantine-scale));--label-lh-md:calc(1.5rem * var(--mantine-scale));--label-lh-lg:calc(1.875rem * var(--mantine-scale));--label-lh-xl:calc(2.25rem * var(--mantine-scale));--label-lh:var(--label-lh-sm)}.m_5f75b09e[data-label-position=left]{--label-order:1;--label-offset-end:var(--mantine-spacing-sm);--label-offset-start:0}.m_5f75b09e[data-label-position=right]{--label-order:2;--label-offset-end:0;--label-offset-start:var(--mantine-spacing-sm)}.m_5f6e695e{-webkit-tap-highlight-color:transparent;display:flex}.m_d3ea56bb{--label-cursor:var(--mantine-cursor-type);-webkit-tap-highlight-color:transparent;font-size:var(--label-fz,var(--mantine-font-size-sm));line-height:var(--label-lh);cursor:var(--label-cursor);flex-direction:column;order:var(--label-order);display:inline-flex}fieldset:disabled .m_d3ea56bb,.m_d3ea56bb[data-disabled]{--label-cursor:not-allowed}.m_8ee546b8{cursor:var(--label-cursor);color:inherit;padding-inline-start:var(--label-offset-start);padding-inline-end:var(--label-offset-end)}fieldset:disabled .m_8ee546b8,.m_8ee546b8:where([data-disabled]){color:var(--mantine-color-disabled-color)}.m_328f68c0{margin-top:calc(var(--mantine-spacing-xs) / 2);cursor:default;padding-inline-start:var(--label-offset-start);padding-inline-end:var(--label-offset-end)}.m_8e8a99cc{margin-top:calc(var(--mantine-spacing-xs) / 2);padding-inline-start:var(--label-offset-start);padding-inline-end:var(--label-offset-end)}.m_26775b0a{--card-radius:var(--mantine-radius-default);border-radius:var(--card-radius);cursor:pointer;width:100%;display:block}.m_26775b0a :where(*){cursor:inherit}.m_26775b0a:where([data-with-border]){border:calc(.0625rem * var(--mantine-scale)) solid transparent}:where([data-mantine-color-scheme=light]) .m_26775b0a:where([data-with-border]){border-color:var(--mantine-color-gray-3)}:where([data-mantine-color-scheme=dark]) .m_26775b0a:where([data-with-border]){border-color:var(--mantine-color-dark-4)}.m_5e5256ee{--checkbox-size-xs:calc(1rem * var(--mantine-scale));--checkbox-size-sm:calc(1.25rem * var(--mantine-scale));--checkbox-size-md:calc(1.5rem * var(--mantine-scale));--checkbox-size-lg:calc(1.875rem * var(--mantine-scale));--checkbox-size-xl:calc(2.25rem * var(--mantine-scale));--checkbox-size:var(--checkbox-size-sm);--checkbox-color:var(--mantine-primary-color-filled)}.m_5e5256ee:where([data-variant=filled]){--checkbox-icon-color:var(--mantine-color-white)}.m_5e5256ee:where([data-variant=outline]){--checkbox-icon-color:var(--checkbox-color)}.m_5e5256ee{border:calc(.0625rem * var(--mantine-scale)) solid transparent;width:var(--checkbox-size);min-width:var(--checkbox-size);height:var(--checkbox-size);min-height:var(--checkbox-size);border-radius:var(--checkbox-radius,var(--mantine-radius-default));cursor:var(--mantine-cursor-type);-webkit-tap-highlight-color:transparent;justify-content:center;align-items:center;transition:border-color .1s,background-color .1s;display:flex;position:relative}:where([data-mantine-color-scheme=light]) .m_5e5256ee{background-color:var(--mantine-color-white);border-color:var(--mantine-color-gray-4)}:where([data-mantine-color-scheme=dark]) .m_5e5256ee{background-color:var(--mantine-color-dark-6);border-color:var(--mantine-color-dark-4)}.m_5e5256ee[data-indeterminate],.m_5e5256ee[data-checked]{background-color:var(--checkbox-color);border-color:var(--checkbox-color)}.m_5e5256ee[data-indeterminate]>.m_1b1c543a,.m_5e5256ee[data-checked]>.m_1b1c543a{opacity:1;color:var(--checkbox-icon-color);transform:none}.m_5e5256ee[data-disabled]{cursor:not-allowed;border-color:var(--mantine-color-disabled-border);background-color:var(--mantine-color-disabled)}[data-mantine-color-scheme=light] .m_5e5256ee[data-disabled][data-checked]>.m_1b1c543a{color:var(--mantine-color-gray-5)}[data-mantine-color-scheme=dark] .m_5e5256ee[data-disabled][data-checked]>.m_1b1c543a{color:var(--mantine-color-dark-3)}.m_76e20374[data-indeterminate]:not([data-disabled]),.m_76e20374[data-checked]:not([data-disabled]){border-color:var(--checkbox-color);background-color:#0000}.m_76e20374[data-indeterminate]:not([data-disabled])>.m_1b1c543a,.m_76e20374[data-checked]:not([data-disabled])>.m_1b1c543a{color:var(--checkbox-icon-color);opacity:1;transform:none}.m_1b1c543a{color:#0000;pointer-events:none;width:60%;transform:translateY(calc(.3125rem * var(--mantine-scale))) scale(.5);opacity:1;transition:transform .1s,opacity .1s;display:block}.m_bf2d988c{--checkbox-size-xs:calc(1rem * var(--mantine-scale));--checkbox-size-sm:calc(1.25rem * var(--mantine-scale));--checkbox-size-md:calc(1.5rem * var(--mantine-scale));--checkbox-size-lg:calc(1.875rem * var(--mantine-scale));--checkbox-size-xl:calc(2.25rem * var(--mantine-scale));--checkbox-size:var(--checkbox-size-sm);--checkbox-color:var(--mantine-primary-color-filled)}.m_bf2d988c:where([data-variant=filled]){--checkbox-icon-color:var(--mantine-color-white)}.m_bf2d988c:where([data-variant=outline]){--checkbox-icon-color:var(--checkbox-color)}.m_26062bec{width:var(--checkbox-size);height:var(--checkbox-size);order:1;position:relative}.m_26062bec:where([data-label-position=left]){order:2}.m_26063560{appearance:none;border:calc(.0625rem * var(--mantine-scale)) solid transparent;width:var(--checkbox-size);height:var(--checkbox-size);border-radius:var(--checkbox-radius,var(--mantine-radius-default));cursor:var(--mantine-cursor-type);-webkit-tap-highlight-color:transparent;margin:0;padding:0;transition:border-color .1s,background-color .1s;display:block}:where([data-mantine-color-scheme=light]) .m_26063560{background-color:var(--mantine-color-white);border-color:var(--mantine-color-gray-4)}:where([data-mantine-color-scheme=dark]) .m_26063560{background-color:var(--mantine-color-dark-6);border-color:var(--mantine-color-dark-4)}.m_26063560:where([data-with-error-styles][data-error]){border-color:var(--mantine-color-error)}.m_26063560[data-indeterminate],.m_26063560:checked{background-color:var(--checkbox-color);border-color:var(--checkbox-color)}.m_26063560[data-indeterminate]+.m_bf295423,.m_26063560:checked+.m_bf295423{opacity:1;transform:none}.m_26063560:disabled{cursor:not-allowed;border-color:var(--mantine-color-disabled-border);background-color:var(--mantine-color-disabled)}.m_26063560:disabled+.m_bf295423{color:var(--mantine-color-disabled-color)}.m_215c4542+.m_bf295423{color:var(--checkbox-color)}.m_215c4542[data-indeterminate]:not(:disabled),.m_215c4542:checked:not(:disabled){border-color:var(--checkbox-color);background-color:#0000}.m_215c4542[data-indeterminate]:not(:disabled)+.m_bf295423,.m_215c4542:checked:not(:disabled)+.m_bf295423{color:var(--checkbox-icon-color);opacity:1;transform:none}.m_bf295423{width:60%;color:var(--checkbox-icon-color);pointer-events:none;transform:translateY(calc(.3125rem * var(--mantine-scale))) scale(.5);opacity:0;margin:auto;transition:transform .1s,opacity .1s;position:absolute;inset:0}.m_11def92b{--ag-spacing:var(--mantine-spacing-sm);--ag-offset:calc(var(--ag-spacing) * -1);padding-inline-start:var(--ag-spacing);display:flex}.m_f85678b6{--avatar-size-xs:calc(1rem * var(--mantine-scale));--avatar-size-sm:calc(1.625rem * var(--mantine-scale));--avatar-size-md:calc(2.375rem * var(--mantine-scale));--avatar-size-lg:calc(3.5rem * var(--mantine-scale));--avatar-size-xl:calc(5.25rem * var(--mantine-scale));--avatar-size:var(--avatar-size-md);--avatar-radius:calc(62.5rem * var(--mantine-scale));--avatar-bg:var(--mantine-color-gray-light);--avatar-bd:calc(.0625rem * var(--mantine-scale)) solid transparent;--avatar-color:var(--mantine-color-gray-light-color);--avatar-placeholder-fz:calc(var(--avatar-size) / 2.5);-webkit-tap-highlight-color:transparent;-webkit-user-select:none;user-select:none;border-radius:var(--avatar-radius);width:var(--avatar-size);height:var(--avatar-size);min-width:var(--avatar-size);padding:0;text-decoration:none;display:block;position:relative;overflow:hidden}.m_f85678b6:where([data-within-group]){border:2px solid var(--mantine-color-body);background:var(--mantine-color-body);margin-inline-start:var(--ag-offset)}.m_11f8ac07{object-fit:cover;width:100%;height:100%;display:block}.m_104cd71f{font-weight:var(--mantine-font-weight-bold);-webkit-user-select:none;user-select:none;border-radius:var(--avatar-radius);width:100%;height:100%;font-size:var(--avatar-placeholder-fz);background:var(--avatar-bg);border:var(--avatar-bd);color:var(--avatar-color);justify-content:center;align-items:center;display:flex}.m_104cd71f>[data-avatar-placeholder-icon]{width:70%;height:70%}.m_2ce0de02{border-radius:var(--bi-radius,0);background-position:50%;background-size:cover;border:0;width:100%;text-decoration:none;display:block}.m_347db0ec{--badge-height-xs:calc(1rem * var(--mantine-scale));--badge-height-sm:calc(1.125rem * var(--mantine-scale));--badge-height-md:calc(1.25rem * var(--mantine-scale));--badge-height-lg:calc(1.625rem * var(--mantine-scale));--badge-height-xl:calc(2rem * var(--mantine-scale));--badge-fz-xs:calc(.5625rem * var(--mantine-scale));--badge-fz-sm:calc(.625rem * var(--mantine-scale));--badge-fz-md:calc(.6875rem * var(--mantine-scale));--badge-fz-lg:calc(.8125rem * var(--mantine-scale));--badge-fz-xl:calc(1rem * var(--mantine-scale));--badge-padding-x-xs:calc(.375rem * var(--mantine-scale));--badge-padding-x-sm:calc(.5rem * var(--mantine-scale));--badge-padding-x-md:calc(.625rem * var(--mantine-scale));--badge-padding-x-lg:calc(.75rem * var(--mantine-scale));--badge-padding-x-xl:calc(1rem * var(--mantine-scale));--badge-height:var(--badge-height-md);--badge-fz:var(--badge-fz-md);--badge-padding-x:var(--badge-padding-x-md);--badge-radius:calc(62.5rem * var(--mantine-scale));--badge-lh:calc(var(--badge-height) - calc(.125rem * var(--mantine-scale)));--badge-color:var(--mantine-color-white);--badge-bg:var(--mantine-primary-color-filled);--badge-border-width:calc(.0625rem * var(--mantine-scale));--badge-bd:var(--badge-border-width) solid transparent;-webkit-tap-highlight-color:transparent;font-size:var(--badge-fz);border-radius:var(--badge-radius);height:var(--badge-height);line-height:var(--badge-lh);padding:0 var(--badge-padding-x);text-transform:uppercase;width:fit-content;font-weight:var(--mantine-font-weight-bold);letter-spacing:calc(.015625rem * var(--mantine-scale));cursor:default;text-overflow:ellipsis;color:var(--badge-color);background:var(--badge-bg);border:var(--badge-bd);justify-content:center;align-items:center;text-decoration:none;display:inline-grid;overflow:hidden}.m_347db0ec:where([data-with-left-section],[data-variant=dot]){grid-template-columns:auto 1fr}.m_347db0ec:where([data-with-right-section]){grid-template-columns:1fr auto}.m_347db0ec:where([data-with-left-section][data-with-right-section],[data-variant=dot][data-with-right-section]){grid-template-columns:auto 1fr auto}.m_347db0ec:where([data-block]){width:100%;display:flex}.m_347db0ec:where([data-circle]){padding-inline:calc(.125rem * var(--mantine-scale));width:var(--badge-height);display:flex}.m_fbd81e3d{--badge-dot-size:calc(var(--badge-height) / 3.4)}:where([data-mantine-color-scheme=light]) .m_fbd81e3d{background-color:var(--mantine-color-white);border-color:var(--mantine-color-gray-4);color:var(--mantine-color-black)}:where([data-mantine-color-scheme=dark]) .m_fbd81e3d{background-color:var(--mantine-color-dark-5);border-color:var(--mantine-color-dark-5);color:var(--mantine-color-white)}.m_fbd81e3d:before{content:"";width:var(--badge-dot-size);height:var(--badge-dot-size);border-radius:var(--badge-dot-size);background-color:var(--badge-dot-color);margin-inline-end:var(--badge-dot-size);display:block}.m_5add502a{white-space:nowrap;text-overflow:ellipsis;text-align:center;cursor:inherit;overflow:hidden}.m_91fdda9b{--badge-section-margin:calc(var(--mantine-spacing-xs) / 2);max-height:calc(var(--badge-height) - var(--badge-border-width) * 2);justify-content:center;align-items:center;display:inline-flex}.m_91fdda9b:where([data-position=left]){margin-inline-end:var(--badge-section-margin)}.m_91fdda9b:where([data-position=right]){margin-inline-start:var(--badge-section-margin)}.m_ddec01c0{--blockquote-border:3px solid var(--bq-bd);text-wrap:var(--bq-text-wrap,var(--mantine-text-wrap));border-inline-start:var(--blockquote-border);padding:var(--mantine-spacing-xl) calc(2.375rem * var(--mantine-scale));border-start-end-radius:var(--bq-radius);border-end-end-radius:var(--bq-radius);margin:0;position:relative}:where([data-mantine-color-scheme=light]) .m_ddec01c0{background-color:var(--bq-bg-light)}:where([data-mantine-color-scheme=dark]) .m_ddec01c0{background-color:var(--bq-bg-dark)}.m_dde7bd57{--blockquote-icon-offset:calc(var(--bq-icon-size) / -2);color:var(--bq-bd);background-color:var(--mantine-color-body);top:var(--blockquote-icon-offset);width:var(--bq-icon-size);height:var(--bq-icon-size);border-radius:var(--bq-icon-size);justify-content:center;align-items:center;display:flex;position:absolute;inset-inline-start:var(--blockquote-icon-offset)}.m_dde51a35{margin-top:var(--mantine-spacing-md);opacity:.6;font-size:85%;display:block}.m_8b3717df{flex-wrap:wrap;align-items:center;display:flex}.m_f678d540{white-space:nowrap;-webkit-tap-highlight-color:transparent;line-height:1}.m_3b8f2208{margin-inline:var(--bc-separator-margin,var(--mantine-spacing-xs));justify-content:center;align-items:center;line-height:1;display:flex}:where([data-mantine-color-scheme=light]) .m_3b8f2208{color:var(--mantine-color-gray-7)}:where([data-mantine-color-scheme=dark]) .m_3b8f2208{color:var(--mantine-color-dark-2)}.m_fea6bf1a{--burger-size-xs:calc(.75rem * var(--mantine-scale));--burger-size-sm:calc(1.125rem * var(--mantine-scale));--burger-size-md:calc(1.5rem * var(--mantine-scale));--burger-size-lg:calc(2.125rem * var(--mantine-scale));--burger-size-xl:calc(2.625rem * var(--mantine-scale));--burger-size:var(--burger-size-md);--burger-line-size:calc(var(--burger-size) / 12);width:calc(var(--burger-size) + var(--mantine-spacing-xs));height:calc(var(--burger-size) + var(--mantine-spacing-xs));padding:calc(var(--mantine-spacing-xs) / 2);cursor:pointer}:where([data-mantine-color-scheme=light]) .m_fea6bf1a{--burger-color:var(--mantine-color-black)}:where([data-mantine-color-scheme=dark]) .m_fea6bf1a{--burger-color:var(--mantine-color-white)}.m_d4fb9cad{-webkit-user-select:none;user-select:none;position:relative}.m_d4fb9cad,.m_d4fb9cad:before,.m_d4fb9cad:after{width:var(--burger-size);height:var(--burger-line-size);background-color:var(--burger-color);outline:calc(.0625rem * var(--mantine-scale)) solid transparent;transition-property:background-color,transform;transition-duration:var(--burger-transition-duration,.3s);transition-timing-function:var(--burger-transition-timing-function,ease);display:block}.m_d4fb9cad:before,.m_d4fb9cad:after{content:"";position:absolute;inset-inline-start:0}.m_d4fb9cad:before{top:calc(var(--burger-size) / -3)}.m_d4fb9cad:after{top:calc(var(--burger-size) / 3)}.m_d4fb9cad[data-opened]{background-color:#0000}.m_d4fb9cad[data-opened]:before{transform:translateY(calc(var(--burger-size) / 3)) rotate(45deg)}.m_d4fb9cad[data-opened]:after{transform:translateY(calc(var(--burger-size) / -3)) rotate(-45deg)}.m_77c9d27d{--button-height-xs:calc(1.875rem * var(--mantine-scale));--button-height-sm:calc(2.25rem * var(--mantine-scale));--button-height-md:calc(2.625rem * var(--mantine-scale));--button-height-lg:calc(3.125rem * var(--mantine-scale));--button-height-xl:calc(3.75rem * var(--mantine-scale));--button-height-compact-xs:calc(1.375rem * var(--mantine-scale));--button-height-compact-sm:calc(1.625rem * var(--mantine-scale));--button-height-compact-md:calc(1.875rem * var(--mantine-scale));--button-height-compact-lg:calc(2.125rem * var(--mantine-scale));--button-height-compact-xl:calc(2.5rem * var(--mantine-scale));--button-padding-x-xs:calc(.875rem * var(--mantine-scale));--button-padding-x-sm:calc(1.125rem * var(--mantine-scale));--button-padding-x-md:calc(1.375rem * var(--mantine-scale));--button-padding-x-lg:calc(1.625rem * var(--mantine-scale));--button-padding-x-xl:calc(2rem * var(--mantine-scale));--button-padding-x-compact-xs:calc(.4375rem * var(--mantine-scale));--button-padding-x-compact-sm:calc(.5rem * var(--mantine-scale));--button-padding-x-compact-md:calc(.625rem * var(--mantine-scale));--button-padding-x-compact-lg:calc(.75rem * var(--mantine-scale));--button-padding-x-compact-xl:calc(.875rem * var(--mantine-scale));--button-height:var(--button-height-sm);--button-padding-x:var(--button-padding-x-sm);--button-color:var(--mantine-color-white);-webkit-user-select:none;user-select:none;font-weight:var(--mantine-font-weight-medium);text-align:center;cursor:pointer;border-radius:var(--button-radius,var(--mantine-radius-default));width:auto;line-height:1;font-size:var(--button-fz,var(--mantine-font-size-sm));background:var(--button-bg,var(--mantine-primary-color-filled));border:var(--button-bd,calc(.0625rem * var(--mantine-scale)) solid transparent);color:var(--button-color,var(--mantine-color-white));height:var(--button-height,var(--button-height-sm));padding-inline:var(--button-padding-x,var(--button-padding-x-sm));vertical-align:middle;display:inline-block;position:relative;overflow:hidden}.m_77c9d27d:where([data-block]){width:100%;display:block}.m_77c9d27d:where([data-with-left-section]){padding-inline-start:calc(var(--button-padding-x) / 1.5)}.m_77c9d27d:where([data-with-right-section]){padding-inline-end:calc(var(--button-padding-x) / 1.5)}.m_77c9d27d:where(:disabled:not([data-loading]),[data-disabled]:not([data-loading])){cursor:not-allowed;border:calc(.0625rem * var(--mantine-scale)) solid transparent;color:var(--mantine-color-disabled-color);background:var(--mantine-color-disabled);transform:none}.m_77c9d27d:before{content:"";pointer-events:none;inset:calc(-.0625rem * var(--mantine-scale));border-radius:var(--button-radius,var(--mantine-radius-default));opacity:0;filter:blur(12px);transition:transform .15s,opacity .1s;position:absolute;transform:translateY(-100%)}:where([data-mantine-color-scheme=light]) .m_77c9d27d:before{background-color:#ffffff26}:where([data-mantine-color-scheme=dark]) .m_77c9d27d:before{background-color:#00000026}.m_77c9d27d:where([data-loading]){cursor:not-allowed;transform:none}.m_77c9d27d:where([data-loading]):before{opacity:1;transform:translateY(0)}.m_77c9d27d:where([data-loading]) .m_80f1301b{opacity:0;transform:translateY(100%)}@media (hover:hover){.m_77c9d27d:hover:where(:not([data-loading],:disabled,[data-disabled])){background-color:var(--button-hover,var(--mantine-primary-color-filled-hover));color:var(--button-hover-color,var(--button-color))}}@media (hover:none){.m_77c9d27d:active:where(:not([data-loading],:disabled,[data-disabled])){background-color:var(--button-hover,var(--mantine-primary-color-filled-hover));color:var(--button-hover-color,var(--button-color))}}.m_80f1301b{align-items:center;justify-content:var(--button-justify,center);height:100%;transition:transform .15s,opacity .1s;display:flex;overflow:visible}.m_811560b9{white-space:nowrap;opacity:1;text-box-trim:trim-both;text-box-edge:cap alphabetic;align-items:center;height:100%;display:flex;overflow:hidden}.m_811560b9:where([data-loading]){opacity:.2}.m_a74036a{align-items:center;display:flex}.m_a74036a:where([data-position=left]){margin-inline-end:var(--mantine-spacing-xs)}.m_a74036a:where([data-position=right]){margin-inline-start:var(--mantine-spacing-xs)}.m_a25b86ee{position:absolute;top:50%;left:50%}.m_80d6d844{--button-border-width:calc(.0625rem * var(--mantine-scale));display:flex}.m_80d6d844 :where(.m_77c9d27d):focus{z-index:1;position:relative}.m_80d6d844[data-orientation=horizontal]{flex-direction:row}.m_80d6d844[data-orientation=horizontal] .m_77c9d27d:not(:only-child):first-child,.m_80d6d844[data-orientation=horizontal] .m_70be2a01:not(:only-child):first-child{border-inline-end-width:calc(var(--button-border-width) / 2);border-start-end-radius:0;border-end-end-radius:0}.m_80d6d844[data-orientation=horizontal] .m_77c9d27d:not(:only-child):last-child,.m_80d6d844[data-orientation=horizontal] .m_70be2a01:not(:only-child):last-child{border-inline-start-width:calc(var(--button-border-width) / 2);border-start-start-radius:0;border-end-start-radius:0}.m_80d6d844[data-orientation=horizontal] .m_77c9d27d:not(:only-child):not(:first-child):not(:last-child),.m_80d6d844[data-orientation=horizontal] .m_70be2a01:not(:only-child):not(:first-child):not(:last-child){border-inline-width:calc(var(--button-border-width) / 2);border-radius:0}.m_80d6d844[data-orientation=vertical]{flex-direction:column}.m_80d6d844[data-orientation=vertical] .m_77c9d27d:not(:only-child):first-child,.m_80d6d844[data-orientation=vertical] .m_70be2a01:not(:only-child):first-child{border-bottom-width:calc(var(--button-border-width) / 2);border-end-end-radius:0;border-end-start-radius:0}.m_80d6d844[data-orientation=vertical] .m_77c9d27d:not(:only-child):last-child,.m_80d6d844[data-orientation=vertical] .m_70be2a01:not(:only-child):last-child{border-top-width:calc(var(--button-border-width) / 2);border-start-start-radius:0;border-start-end-radius:0}.m_80d6d844[data-orientation=vertical] .m_77c9d27d:not(:only-child):not(:first-child):not(:last-child),.m_80d6d844[data-orientation=vertical] .m_70be2a01:not(:only-child):not(:first-child):not(:last-child){border-bottom-width:calc(var(--button-border-width) / 2);border-top-width:calc(var(--button-border-width) / 2);border-radius:0}.m_70be2a01{--section-height-xs:calc(1.875rem * var(--mantine-scale));--section-height-sm:calc(2.25rem * var(--mantine-scale));--section-height-md:calc(2.625rem * var(--mantine-scale));--section-height-lg:calc(3.125rem * var(--mantine-scale));--section-height-xl:calc(3.75rem * var(--mantine-scale));--section-height-compact-xs:calc(1.375rem * var(--mantine-scale));--section-height-compact-sm:calc(1.625rem * var(--mantine-scale));--section-height-compact-md:calc(1.875rem * var(--mantine-scale));--section-height-compact-lg:calc(2.125rem * var(--mantine-scale));--section-height-compact-xl:calc(2.5rem * var(--mantine-scale));--section-padding-x-xs:calc(.875rem * var(--mantine-scale));--section-padding-x-sm:calc(1.125rem * var(--mantine-scale));--section-padding-x-md:calc(1.375rem * var(--mantine-scale));--section-padding-x-lg:calc(1.625rem * var(--mantine-scale));--section-padding-x-xl:calc(2rem * var(--mantine-scale));--section-padding-x-compact-xs:calc(.4375rem * var(--mantine-scale));--section-padding-x-compact-sm:calc(.5rem * var(--mantine-scale));--section-padding-x-compact-md:calc(.625rem * var(--mantine-scale));--section-padding-x-compact-lg:calc(.75rem * var(--mantine-scale));--section-padding-x-compact-xl:calc(.875rem * var(--mantine-scale));--section-height:var(--section-height-sm);--section-padding-x:var(--section-padding-x-sm);--section-color:var(--mantine-color-white);font-weight:var(--mantine-font-weight-medium);border-radius:var(--section-radius,var(--mantine-radius-default));width:auto;font-size:var(--section-fz,var(--mantine-font-size-sm));background:var(--section-bg,var(--mantine-primary-color-filled));border:var(--section-bd,calc(.0625rem * var(--mantine-scale)) solid transparent);color:var(--section-color,var(--mantine-color-white));height:var(--section-height,var(--section-height-sm));padding-inline:var(--section-padding-x,var(--section-padding-x-sm));vertical-align:middle;justify-content:center;align-items:center;line-height:1;display:inline-flex}.m_e615b15f{--card-padding:var(--mantine-spacing-md);padding:var(--card-padding);color:var(--mantine-color-text);display:flex;position:relative;overflow:hidden}.m_e615b15f:where([data-orientation=horizontal]){flex-direction:row}.m_e615b15f:where([data-orientation=vertical]){flex-direction:column}:where([data-mantine-color-scheme=light]) .m_e615b15f{background-color:var(--mantine-color-white)}:where([data-mantine-color-scheme=dark]) .m_e615b15f{background-color:var(--mantine-color-dark-6)}.m_599a2148{margin-inline:calc(var(--card-padding) * -1);display:block}:where([data-mantine-color-scheme=light]) .m_599a2148{--border-color:var(--mantine-color-gray-3)}:where([data-mantine-color-scheme=dark]) .m_599a2148{--border-color:var(--mantine-color-dark-4)}.m_599a2148:where([data-orientation=vertical]):first-child{margin-top:calc(var(--card-padding) * -1);border-top:none!important}.m_599a2148:where([data-orientation=vertical]):last-child{margin-bottom:calc(var(--card-padding) * -1);border-bottom:none!important}.m_599a2148:where([data-orientation=vertical])[data-inherit-padding]{padding-inline:var(--card-padding)}.m_599a2148:where([data-orientation=vertical])[data-with-border]{border-top:1px solid var(--border-color);border-bottom:1px solid var(--border-color)}.m_599a2148:where([data-orientation=vertical])+.m_599a2148:where([data-orientation=vertical]){border-top:none!important}.m_599a2148:where([data-orientation=horizontal]){margin-block:calc(var(--card-padding) * -1);margin-inline:0}.m_599a2148:where([data-orientation=horizontal]):first-child{margin-inline-start:calc(var(--card-padding) * -1);border-inline-start:none!important}.m_599a2148:where([data-orientation=horizontal]):last-child{margin-inline-end:calc(var(--card-padding) * -1);border-inline-end:none!important}.m_599a2148:where([data-orientation=horizontal])[data-inherit-padding]{padding-block:var(--card-padding)}.m_599a2148:where([data-orientation=horizontal])[data-with-border]{border-inline-start:1px solid var(--border-color);border-inline-end:1px solid var(--border-color)}.m_599a2148:where([data-orientation=horizontal])+.m_599a2148:where([data-orientation=horizontal]){border-inline-start:none!important}.m_9a782f2c{--cascader-column-width:calc(12.5rem * var(--mantine-scale));flex-direction:row;align-items:stretch;display:flex}.m_4c5a03a5{width:var(--cascader-column-width);min-width:var(--cascader-column-width);border-inline-end:calc(.0625rem * var(--mantine-scale)) solid var(--popover-border-color,var(--mantine-color-default-border));flex-direction:column;display:flex}.m_4c5a03a5:where([data-last]){border-inline-end-color:#0000}.m_7f3ac6d2{padding:var(--combobox-padding);flex:1}.m_6b93b90{padding-inline:calc(var(--combobox-padding) / 2);color:var(--mantine-color-dimmed);cursor:pointer;border-inline-end:calc(.0625rem * var(--mantine-scale)) solid var(--popover-border-color,var(--mantine-color-default-border));justify-content:center;align-self:stretch;align-items:center;display:flex}@media (hover:hover){:where([data-mantine-color-scheme=light]) .m_6b93b90:hover{background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_6b93b90:hover{background-color:var(--mantine-color-dark-7)}}@media (hover:none){:where([data-mantine-color-scheme=light]) .m_6b93b90:active{background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_6b93b90:active{background-color:var(--mantine-color-dark-7)}}.m_6b93b90>svg{width:.9em;height:.9em;transform:rotate(90deg)}.m_6b93b90:where([data-position=start]){border-start-start-radius:var(--popover-radius,var(--mantine-radius-default));border-end-start-radius:var(--popover-radius,var(--mantine-radius-default))}.m_6b93b90:where([data-position=end]){border-inline-end-color:#0000;border-start-end-radius:var(--popover-radius,var(--mantine-radius-default));border-end-end-radius:var(--popover-radius,var(--mantine-radius-default))}.m_6b93b90:where([data-position=end])>svg,:where([dir=rtl]) .m_6b93b90>svg{transform:rotate(-90deg)}:where([dir=rtl]) .m_6b93b90:where([data-position=end])>svg{transform:rotate(90deg)}.m_791f687a{align-items:center;gap:var(--mantine-spacing-xs);width:100%;padding:var(--combobox-option-padding);font-size:var(--combobox-option-fz,var(--mantine-font-size-sm));border-radius:var(--combobox-option-radius,var(--mantine-radius-default));color:var(--mantine-color-text);cursor:pointer;display:flex}@media (hover:hover){:where([data-mantine-color-scheme=light]) .m_791f687a:hover:where(:not([data-disabled],[data-active])){background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_791f687a:hover:where(:not([data-disabled],[data-active])){background-color:var(--mantine-color-dark-7)}}@media (hover:none){:where([data-mantine-color-scheme=light]) .m_791f687a:active:where(:not([data-disabled],[data-active])){background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_791f687a:active:where(:not([data-disabled],[data-active])){background-color:var(--mantine-color-dark-7)}}:where([data-mantine-color-scheme=light]) .m_791f687a:where([data-in-path]){background-color:var(--mantine-color-gray-1)}:where([data-mantine-color-scheme=dark]) .m_791f687a:where([data-in-path]){background-color:var(--mantine-color-dark-6)}.m_791f687a:where([data-active]){background-color:var(--mantine-primary-color-filled);color:var(--mantine-color-white)}@media (hover:hover){.m_791f687a:where([data-active]):hover{background-color:var(--mantine-primary-color-filled-hover)}}@media (hover:none){.m_791f687a:where([data-active]):active{background-color:var(--mantine-primary-color-filled-hover)}}.m_791f687a:where([data-disabled]){color:var(--mantine-color-dimmed);cursor:not-allowed;opacity:.5}.m_452a61d{align-items:center;gap:var(--mantine-spacing-xs);width:100%;display:flex}.m_aecd629a{text-overflow:ellipsis;white-space:nowrap;flex:1;overflow:hidden}.m_92054c13{width:.9em;min-width:.9em;height:.9em;color:var(--mantine-color-dimmed);justify-content:center;align-items:center;display:flex;transform:rotate(-90deg)}:where([data-active]) .m_92054c13{color:inherit}:where([dir=rtl]) .m_92054c13{transform:rotate(90deg)}.m_ae51c8ae{opacity:.4;width:.8em;min-width:.8em;height:.8em}:where([data-active]) .m_ae51c8ae,:where([data-combobox-selected]) .m_ae51c8ae{opacity:1}.m_97ff10a8{padding:var(--combobox-option-padding);color:var(--mantine-color-dimmed);font-size:var(--combobox-option-fz,var(--mantine-font-size-sm));white-space:nowrap;justify-content:center;align-items:center;display:flex}.m_4451eb3a{justify-content:center;align-items:center;display:flex}.m_4451eb3a:where([data-inline]){display:inline-flex}.m_f59ffda3{--chip-size-xs:calc(1.4375rem * var(--mantine-scale));--chip-size-sm:calc(1.75rem * var(--mantine-scale));--chip-size-md:calc(2rem * var(--mantine-scale));--chip-size-lg:calc(2.25rem * var(--mantine-scale));--chip-size-xl:calc(2.5rem * var(--mantine-scale));--chip-icon-size-xs:calc(.5625rem * var(--mantine-scale));--chip-icon-size-sm:calc(.75rem * var(--mantine-scale));--chip-icon-size-md:calc(.875rem * var(--mantine-scale));--chip-icon-size-lg:calc(1rem * var(--mantine-scale));--chip-icon-size-xl:calc(1.125rem * var(--mantine-scale));--chip-padding-xs:calc(1rem * var(--mantine-scale));--chip-padding-sm:calc(1.25rem * var(--mantine-scale));--chip-padding-md:calc(1.5rem * var(--mantine-scale));--chip-padding-lg:calc(1.75rem * var(--mantine-scale));--chip-padding-xl:calc(2rem * var(--mantine-scale));--chip-checked-padding-xs:calc(.5125rem * var(--mantine-scale));--chip-checked-padding-sm:calc(.625rem * var(--mantine-scale));--chip-checked-padding-md:calc(.73125rem * var(--mantine-scale));--chip-checked-padding-lg:calc(.84375rem * var(--mantine-scale));--chip-checked-padding-xl:calc(.98125rem * var(--mantine-scale));--chip-spacing-xs:calc(.625rem * var(--mantine-scale));--chip-spacing-sm:calc(.75rem * var(--mantine-scale));--chip-spacing-md:calc(1rem * var(--mantine-scale));--chip-spacing-lg:calc(1.25rem * var(--mantine-scale));--chip-spacing-xl:calc(1.375rem * var(--mantine-scale));--chip-size:var(--chip-size-sm);--chip-icon-size:var(--chip-icon-size-sm);--chip-padding:var(--chip-padding-sm);--chip-spacing:var(--chip-spacing-sm);--chip-checked-padding:var(--chip-checked-padding-sm);--chip-bg:var(--mantine-primary-color-filled);--chip-hover:var(--mantine-primary-color-filled-hover);--chip-color:var(--mantine-color-white);--chip-bd:calc(.0625rem * var(--mantine-scale)) solid transparent}.m_be049a53{-webkit-user-select:none;user-select:none;border-radius:var(--chip-radius,1000rem);height:var(--chip-size);font-size:var(--chip-fz,var(--mantine-font-size-sm));line-height:calc(var(--chip-size) - calc(.125rem * var(--mantine-scale)));padding-inline:var(--chip-padding);cursor:pointer;white-space:nowrap;-webkit-tap-highlight-color:transparent;border:calc(.0625rem * var(--mantine-scale)) solid transparent;color:var(--mantine-color-text);text-box-trim:trim-both;text-box-edge:cap alphabetic;align-items:center;display:inline-flex}.m_be049a53:where([data-checked]){padding-inline:var(--chip-checked-padding)}.m_be049a53:where([data-disabled]){cursor:not-allowed;background-color:var(--mantine-color-disabled);color:var(--mantine-color-disabled-color)}:where([data-mantine-color-scheme=light]) .m_3904c1af:not([data-disabled]){background-color:var(--mantine-color-white);border:1px solid var(--mantine-color-gray-3)}:where([data-mantine-color-scheme=dark]) .m_3904c1af:not([data-disabled]){background-color:var(--mantine-color-dark-6);border:1px solid var(--mantine-color-dark-4)}@media (hover:hover){:where([data-mantine-color-scheme=light]) .m_3904c1af:not([data-disabled]):hover{background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_3904c1af:not([data-disabled]):hover{background-color:var(--mantine-color-dark-5)}}@media (hover:none){:where([data-mantine-color-scheme=light]) .m_3904c1af:not([data-disabled]):active{background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_3904c1af:not([data-disabled]):active{background-color:var(--mantine-color-dark-5)}}.m_3904c1af:not([data-disabled]):where([data-checked]){--chip-icon-color:var(--chip-color);border:var(--chip-bd)}@media (hover:hover){.m_3904c1af:not([data-disabled]):where([data-checked]):hover{background-color:var(--chip-hover)}}@media (hover:none){.m_3904c1af:not([data-disabled]):where([data-checked]):active{background-color:var(--chip-hover)}}.m_fa109255:not([data-disabled]),.m_f7e165c3:not([data-disabled]){border:calc(.0625rem * var(--mantine-scale)) solid transparent;color:var(--mantine-color-text)}:where([data-mantine-color-scheme=light]) .m_fa109255:not([data-disabled]),:where([data-mantine-color-scheme=light]) .m_f7e165c3:not([data-disabled]){background-color:var(--mantine-color-gray-1)}:where([data-mantine-color-scheme=dark]) .m_fa109255:not([data-disabled]),:where([data-mantine-color-scheme=dark]) .m_f7e165c3:not([data-disabled]){background-color:var(--mantine-color-dark-5)}@media (hover:hover){:where([data-mantine-color-scheme=light]) .m_fa109255:not([data-disabled]):hover,:where([data-mantine-color-scheme=light]) .m_f7e165c3:not([data-disabled]):hover{background-color:var(--mantine-color-gray-2)}:where([data-mantine-color-scheme=dark]) .m_fa109255:not([data-disabled]):hover,:where([data-mantine-color-scheme=dark]) .m_f7e165c3:not([data-disabled]):hover{background-color:var(--mantine-color-dark-4)}}@media (hover:none){:where([data-mantine-color-scheme=light]) .m_fa109255:not([data-disabled]):active,:where([data-mantine-color-scheme=light]) .m_f7e165c3:not([data-disabled]):active{background-color:var(--mantine-color-gray-2)}:where([data-mantine-color-scheme=dark]) .m_fa109255:not([data-disabled]):active,:where([data-mantine-color-scheme=dark]) .m_f7e165c3:not([data-disabled]):active{background-color:var(--mantine-color-dark-4)}}.m_fa109255:not([data-disabled]):where([data-checked]),.m_f7e165c3:not([data-disabled]):where([data-checked]){--chip-icon-color:var(--chip-color);color:var(--chip-color);background-color:var(--chip-bg)}@media (hover:hover){.m_fa109255:not([data-disabled]):where([data-checked]):hover,.m_f7e165c3:not([data-disabled]):where([data-checked]):hover{background-color:var(--chip-hover)}}@media (hover:none){.m_fa109255:not([data-disabled]):where([data-checked]):active,.m_f7e165c3:not([data-disabled]):where([data-checked]):active{background-color:var(--chip-hover)}}.m_9ac86df9{width:calc(var(--chip-icon-size) + (var(--chip-spacing) / 1.5));max-width:calc(var(--chip-icon-size) + (var(--chip-spacing) / 1.5));height:var(--chip-icon-size);align-items:center;display:flex;overflow:hidden}.m_d6d72580{width:var(--chip-icon-size);height:var(--chip-icon-size);color:var(--chip-icon-color,inherit);display:block}.m_bde07329{opacity:0;width:0;height:0;margin:0;padding:0}.m_bde07329:focus-visible+.m_be049a53{outline:2px solid var(--mantine-primary-color-filled);outline-offset:calc(.125rem * var(--mantine-scale))}.m_b183c0a2{font-family:var(--mantine-font-family-monospace);line-height:var(--mantine-line-height);padding:2px calc(var(--mantine-spacing-xs) / 2);border-radius:var(--mantine-radius-sm);font-size:var(--mantine-font-size-xs);margin:0;overflow:auto}:where([data-mantine-color-scheme=light]) .m_b183c0a2{background-color:var(--code-bg,var(--mantine-color-gray-0))}:where([data-mantine-color-scheme=dark]) .m_b183c0a2{background-color:var(--code-bg,var(--mantine-color-dark-6))}.m_b183c0a2[data-block]{padding:var(--mantine-spacing-xs)}.m_de3d2490{--cs-size:calc(1.75rem * var(--mantine-scale));--cs-radius:calc(62.5rem * var(--mantine-scale));-webkit-tap-highlight-color:transparent;appearance:none;width:var(--cs-size);height:var(--cs-size);min-width:var(--cs-size);min-height:var(--cs-size);border-radius:var(--cs-radius);color:inherit;border:none;line-height:1;text-decoration:none;display:block;position:relative}[data-mantine-color-scheme=light] .m_de3d2490{--alpha-overlay-color:var(--mantine-color-gray-3);--alpha-overlay-bg:var(--mantine-color-white)}[data-mantine-color-scheme=dark] .m_de3d2490{--alpha-overlay-color:var(--mantine-color-dark-4);--alpha-overlay-bg:var(--mantine-color-dark-7)}.m_862f3d1b{border-radius:var(--cs-radius);position:absolute;inset:0}.m_98ae7f22{border-radius:var(--cs-radius);z-index:1;box-shadow:#0000001a 0 0 0 calc(.0625rem * var(--mantine-scale)) inset, #00000026 0 0 calc(.25rem * var(--mantine-scale)) inset;position:absolute;inset:0}.m_95709ac0{border-radius:var(--cs-radius);background-size:calc(.5rem * var(--mantine-scale)) calc(.5rem * var(--mantine-scale));background-position:0 0, 0 calc(.25rem * var(--mantine-scale)), calc(.25rem * var(--mantine-scale)) calc(-.25rem * var(--mantine-scale)), calc(-.25rem * var(--mantine-scale)) 0;background-image:linear-gradient(45deg, var(--alpha-overlay-color) 25%, transparent 25%), linear-gradient(-45deg, var(--alpha-overlay-color) 25%, transparent 25%), linear-gradient(45deg, transparent 75%, var(--alpha-overlay-color) 75%), linear-gradient(-45deg, var(--alpha-overlay-bg) 75%, var(--alpha-overlay-color) 75%);position:absolute;inset:0}.m_93e74e3{border-radius:var(--cs-radius);z-index:2;justify-content:center;align-items:center;display:flex;position:absolute;inset:0}.m_fee9c77{--cp-width-xs:calc(11.25rem * var(--mantine-scale));--cp-width-sm:calc(12.5rem * var(--mantine-scale));--cp-width-md:calc(15rem * var(--mantine-scale));--cp-width-lg:calc(17.5rem * var(--mantine-scale));--cp-width-xl:calc(20rem * var(--mantine-scale));--cp-preview-size-xs:calc(1.625rem * var(--mantine-scale));--cp-preview-size-sm:calc(2.125rem * var(--mantine-scale));--cp-preview-size-md:calc(2.625rem * var(--mantine-scale));--cp-preview-size-lg:calc(3.125rem * var(--mantine-scale));--cp-preview-size-xl:calc(3.375rem * var(--mantine-scale));--cp-thumb-size-xs:calc(.5rem * var(--mantine-scale));--cp-thumb-size-sm:calc(.75rem * var(--mantine-scale));--cp-thumb-size-md:calc(1rem * var(--mantine-scale));--cp-thumb-size-lg:calc(1.25rem * var(--mantine-scale));--cp-thumb-size-xl:calc(1.375rem * var(--mantine-scale));--cp-saturation-height-xs:calc(6.25rem * var(--mantine-scale));--cp-saturation-height-sm:calc(6.875rem * var(--mantine-scale));--cp-saturation-height-md:calc(7.5rem * var(--mantine-scale));--cp-saturation-height-lg:calc(8.75rem * var(--mantine-scale));--cp-saturation-height-xl:calc(10rem * var(--mantine-scale));--cp-preview-size:var(--cp-preview-size-sm);--cp-thumb-size:var(--cp-thumb-size-sm);--cp-saturation-height:var(--cp-saturation-height-sm);--cp-width:var(--cp-width-sm);--cp-body-spacing:var(--mantine-spacing-sm);width:var(--cp-width);padding:calc(.0625rem * var(--mantine-scale))}.m_fee9c77:where([data-full-width]){width:100%}.m_9dddfbac{width:var(--cp-preview-size);height:var(--cp-preview-size)}.m_bffecc3e{padding-top:calc(var(--cp-body-spacing) / 2);display:flex}.m_3283bb96{flex:1}.m_3283bb96:not(:only-child){margin-inline-end:var(--mantine-spacing-xs)}.m_40d572ba{border:2px solid var(--mantine-color-white);width:var(--cp-thumb-size);height:var(--cp-thumb-size);border-radius:var(--cp-thumb-size);left:calc(var(--thumb-x-offset) - var(--cp-thumb-size) / 2);top:calc(var(--thumb-y-offset) - var(--cp-thumb-size) / 2);position:absolute;overflow:hidden;box-shadow:0 0 1px #0009}.m_d8ee6fd8{margin:calc(.125rem * var(--mantine-scale));cursor:pointer;padding-bottom:calc(var(--cp-swatch-size) - calc(.25rem * var(--mantine-scale)));flex:0 0 calc(var(--cp-swatch-size) - calc(.25rem * var(--mantine-scale)));height:unset!important;width:unset!important;min-width:0!important;min-height:0!important}.m_5711e686{margin-top:calc(.3125rem * var(--mantine-scale));margin-inline:calc(-.125rem * var(--mantine-scale));flex-wrap:wrap;display:flex}.m_5711e686:only-child{margin-top:0}.m_202a296e{--cp-thumb-size-xs:calc(.5rem * var(--mantine-scale));--cp-thumb-size-sm:calc(.75rem * var(--mantine-scale));--cp-thumb-size-md:calc(1rem * var(--mantine-scale));--cp-thumb-size-lg:calc(1.25rem * var(--mantine-scale));--cp-thumb-size-xl:calc(1.375rem * var(--mantine-scale));-webkit-tap-highlight-color:transparent;height:var(--cp-saturation-height);border-radius:var(--mantine-radius-sm);margin:calc(var(--cp-thumb-size) / 2);position:relative}.m_202a296e:where([data-focus-ring=auto]):focus:focus-visible .m_40d572ba,.m_202a296e:where([data-focus-ring=always]):focus .m_40d572ba{outline:2px solid var(--mantine-color-blue-filled)}.m_11b3db02{border-radius:var(--mantine-radius-sm);inset:calc(var(--cp-thumb-size) * -1 / 2 - calc(.0625rem * var(--mantine-scale)));position:absolute}.m_d856d47d{--cp-thumb-size-xs:calc(.5rem * var(--mantine-scale));--cp-thumb-size-sm:calc(.75rem * var(--mantine-scale));--cp-thumb-size-md:calc(1rem * var(--mantine-scale));--cp-thumb-size-lg:calc(1.25rem * var(--mantine-scale));--cp-thumb-size-xl:calc(1.375rem * var(--mantine-scale));--cp-thumb-size:var(--cp-thumb-size,calc(.75rem * var(--mantine-scale)));height:calc(var(--cp-thumb-size) + calc(.125rem * var(--mantine-scale)));margin-inline:calc(var(--cp-thumb-size) / 2);outline:none;position:relative}.m_d856d47d+.m_d856d47d{margin-top:calc(.375rem * var(--mantine-scale))}.m_d856d47d:where([data-focus-ring=auto]):focus:focus-visible .m_40d572ba,.m_d856d47d:where([data-focus-ring=always]):focus .m_40d572ba{outline:2px solid var(--mantine-color-blue-filled)}:where([data-mantine-color-scheme=light]) .m_d856d47d{--slider-checkers:var(--mantine-color-gray-3)}:where([data-mantine-color-scheme=dark]) .m_d856d47d{--slider-checkers:var(--mantine-color-dark-4)}.m_8f327113{top:0;bottom:0;inset-inline:calc(var(--cp-thumb-size) * -1 / 2 - calc(.0625rem * var(--mantine-scale)));border-radius:10000rem;position:absolute}.m_b077c2bc{--ci-eye-dropper-icon-size-xs:calc(.875rem * var(--mantine-scale));--ci-eye-dropper-icon-size-sm:calc(1rem * var(--mantine-scale));--ci-eye-dropper-icon-size-md:calc(1.125rem * var(--mantine-scale));--ci-eye-dropper-icon-size-lg:calc(1.25rem * var(--mantine-scale));--ci-eye-dropper-icon-size-xl:calc(1.375rem * var(--mantine-scale));--ci-eye-dropper-icon-size:var(--ci-eye-dropper-icon-size-sm)}.m_66a028b5{--ci-button-size-xs:calc(1.375rem * var(--mantine-scale));--ci-button-size-sm:calc(1.625rem * var(--mantine-scale));--ci-button-size-md:calc(1.75rem * var(--mantine-scale));--ci-button-size-lg:calc(2rem * var(--mantine-scale));--ci-button-size-xl:calc(2.5rem * var(--mantine-scale));--ci-button-size:var(--ci-button-size-sm);width:var(--ci-button-size);height:var(--ci-button-size);min-width:var(--ci-button-size);min-height:var(--ci-button-size)}.m_c5ccdcab{--ci-preview-size-xs:calc(1rem * var(--mantine-scale));--ci-preview-size-sm:calc(1.125rem * var(--mantine-scale));--ci-preview-size-md:calc(1.375rem * var(--mantine-scale));--ci-preview-size-lg:calc(1.75rem * var(--mantine-scale));--ci-preview-size-xl:calc(2.25rem * var(--mantine-scale));--ci-preview-size:var(--ci-preview-size-sm)}.m_5ece2cd7{padding:calc(.5rem * var(--mantine-scale))}.m_7485cace{--container-size-xs:calc(33.75rem * var(--mantine-scale));--container-size-sm:calc(45rem * var(--mantine-scale));--container-size-md:calc(60rem * var(--mantine-scale));--container-size-lg:calc(71.25rem * var(--mantine-scale));--container-size-xl:calc(82.5rem * var(--mantine-scale));--container-size:var(--container-size-md)}.m_7485cace:where([data-strategy=block]){max-width:var(--container-size);padding-inline:var(--mantine-spacing-md);margin-inline:auto}.m_7485cace:where([data-strategy=block]):where([data-fluid]){max-width:100%}.m_7485cace:where([data-strategy=grid]){grid-template-columns:1fr min(100%, var(--container-size)) 1fr;margin-inline:auto;display:grid}.m_7485cace:where([data-strategy=grid])>*{grid-column:2}.m_7485cace:where([data-strategy=grid])>[data-breakout]{grid-column:1/-1}.m_7485cace:where([data-strategy=grid])>[data-breakout]>[data-container]{max-width:var(--container-size);margin-inline:auto}.m_f84d0407{--data-list-fz:var(--mantine-font-size-sm);--data-list-lh:var(--mantine-line-height-sm);--data-list-gap:var(--mantine-spacing-sm);--data-list-label-width:calc(7.5rem * var(--mantine-scale));gap:var(--data-list-gap);font-size:var(--data-list-fz);line-height:var(--data-list-lh);flex-direction:column;margin:0;padding:0;display:flex}.m_f84d0407:where([data-with-divider]){gap:0}.m_f848fe38{align-items:baseline;gap:var(--mantine-spacing-xs);flex-direction:row;display:flex}.m_f84d0407:where([data-orientation=vertical])>.m_f848fe38{flex-direction:column;gap:0}.m_c791b39c{color:var(--mantine-color-dimmed);font-size:var(--data-list-fz);line-height:var(--data-list-lh);min-width:var(--data-list-label-width);margin:0}.m_f84d0407:where([data-orientation=vertical]) .m_c791b39c{min-width:100%}.m_c81ec619{font-size:var(--data-list-fz);line-height:var(--data-list-lh);margin:0}.m_f84d0407:where([data-with-divider])>.m_f848fe38:where(:not(:first-of-type)){border-top:calc(.0625rem * var(--mantine-scale)) solid var(--mantine-color-default-border);padding-top:var(--data-list-gap);margin-top:var(--data-list-gap)}.m_e2125a27{--dialog-size-xs:calc(10rem * var(--mantine-scale));--dialog-size-sm:calc(12.5rem * var(--mantine-scale));--dialog-size-md:calc(21.25rem * var(--mantine-scale));--dialog-size-lg:calc(25rem * var(--mantine-scale));--dialog-size-xl:calc(31.25rem * var(--mantine-scale));--dialog-size:var(--dialog-size-md);width:var(--dialog-size);max-width:calc(100vw - var(--mantine-spacing-xl) * 2);min-height:calc(3.125rem * var(--mantine-scale));position:relative}.m_5abab665{top:calc(var(--mantine-spacing-md) / 2);position:absolute;inset-inline-end:calc(var(--mantine-spacing-md) / 2)}.m_3eebeb36{--divider-size-xs:calc(.0625rem * var(--mantine-scale));--divider-size-sm:calc(.125rem * var(--mantine-scale));--divider-size-md:calc(.1875rem * var(--mantine-scale));--divider-size-lg:calc(.25rem * var(--mantine-scale));--divider-size-xl:calc(.3125rem * var(--mantine-scale));--divider-size:var(--divider-size-xs)}:where([data-mantine-color-scheme=light]) .m_3eebeb36{--divider-color:var(--mantine-color-gray-3)}:where([data-mantine-color-scheme=dark]) .m_3eebeb36{--divider-color:var(--mantine-color-dark-4)}.m_3eebeb36:where([data-orientation=horizontal]){border-top:var(--divider-size) var(--divider-border-style,solid) var(--divider-color)}.m_3eebeb36:where([data-orientation=vertical]){border-inline-start:var(--divider-size) var(--divider-border-style,solid) var(--divider-color);align-self:stretch;height:auto}.m_3eebeb36:where([data-with-label]){border:0}.m_9e365f20{font-size:var(--mantine-font-size-xs);color:var(--mantine-color-dimmed);white-space:nowrap;align-items:center;display:flex}.m_9e365f20:where([data-position=left]):before,.m_9e365f20:where([data-position=right]):after{display:none}.m_9e365f20:before{content:"";height:calc(.0625rem * var(--mantine-scale));border-top:var(--divider-size) var(--divider-border-style,solid) var(--divider-color);flex:1;margin-inline-end:var(--mantine-spacing-xs)}.m_9e365f20:after{content:"";height:calc(.0625rem * var(--mantine-scale));border-top:var(--divider-size) var(--divider-border-style,solid) var(--divider-color);flex:1;margin-inline-start:var(--mantine-spacing-xs)}.m_f11b401e{--drawer-size-xs:calc(20rem * var(--mantine-scale));--drawer-size-sm:calc(23.75rem * var(--mantine-scale));--drawer-size-md:calc(27.5rem * var(--mantine-scale));--drawer-size-lg:calc(38.75rem * var(--mantine-scale));--drawer-size-xl:calc(48.75rem * var(--mantine-scale));--drawer-size:var(--drawer-size-md);--drawer-offset:0rem}.m_5a7c2c9{z-index:1000}.m_b8a05bbd{flex:var(--drawer-flex,0 0 var(--drawer-size));height:var(--drawer-height,calc(100% - var(--drawer-offset) * 2));margin:var(--drawer-offset);max-width:calc(100% - var(--drawer-offset) * 2);max-height:calc(100% - var(--drawer-offset) * 2);overflow-y:auto}.m_b8a05bbd[data-hidden]{pointer-events:none;opacity:0!important}.m_31cd769a{justify-content:var(--drawer-justify,flex-start);align-items:var(--drawer-align,flex-start);display:flex}.m_7ffcadab{--empty-state-indicator-size-xs:calc(2rem * var(--mantine-scale));--empty-state-indicator-size-sm:calc(2.5rem * var(--mantine-scale));--empty-state-indicator-size-md:calc(3rem * var(--mantine-scale));--empty-state-indicator-size-lg:calc(3.75rem * var(--mantine-scale));--empty-state-indicator-size-xl:calc(4.5rem * var(--mantine-scale));--empty-state-gap-xs:calc(.375rem * var(--mantine-scale));--empty-state-gap-sm:calc(.5rem * var(--mantine-scale));--empty-state-gap-md:calc(.625rem * var(--mantine-scale));--empty-state-gap-lg:calc(.75rem * var(--mantine-scale));--empty-state-gap-xl:calc(1rem * var(--mantine-scale));--empty-state-title-fz-xs:var(--mantine-font-size-sm);--empty-state-title-fz-sm:var(--mantine-font-size-md);--empty-state-title-fz-md:var(--mantine-font-size-lg);--empty-state-title-fz-lg:var(--mantine-font-size-xl);--empty-state-title-fz-xl:calc(var(--mantine-font-size-xl) * 1.2);--empty-state-description-fz-xs:var(--mantine-font-size-xs);--empty-state-description-fz-sm:var(--mantine-font-size-sm);--empty-state-description-fz-md:var(--mantine-font-size-sm);--empty-state-description-fz-lg:var(--mantine-font-size-md);--empty-state-description-fz-xl:var(--mantine-font-size-lg);gap:var(--empty-state-gap,var(--empty-state-gap-md));display:flex}.m_7ffcadab[data-align=center]{flex-direction:column;align-items:center}.m_7ffcadab[data-align=left]{flex-direction:row;align-items:flex-start}.m_7ffcadab[data-align=right]{flex-direction:row-reverse;align-items:flex-start}.m_7ff5666b{gap:var(--empty-state-gap,var(--empty-state-gap-md));flex-direction:column;min-width:0;display:flex}[data-align=center]>.m_7ff5666b{text-align:center;align-items:center}[data-align=left]>.m_7ff5666b{text-align:left;align-items:flex-start}[data-align=right]>.m_7ff5666b{text-align:right;align-items:flex-end}.m_866226e6{color:var(--empty-state-indicator-color,var(--mantine-color-dimmed));font-size:var(--empty-state-indicator-size,var(--empty-state-indicator-size-md));flex-shrink:0;justify-content:center;align-items:center;line-height:1;display:flex}.m_866226e6>svg{width:1em;height:1em}[data-mantine-color-scheme=light] .m_866226e6[data-with-background]{--empty-state-indicator-default-bg:var(--mantine-color-gray-1)}[data-mantine-color-scheme=dark] .m_866226e6[data-with-background]{--empty-state-indicator-default-bg:var(--mantine-color-dark-6)}.m_866226e6[data-with-background]{border-radius:calc(62.5rem * var(--mantine-scale));background-color:var(--empty-state-indicator-bg,var(--empty-state-indicator-default-bg));width:2em;height:2em}.m_7fb28eaf{font-size:var(--empty-state-title-fz,var(--empty-state-title-fz-md));color:var(--mantine-color-bright);text-wrap:balance;margin:0;font-weight:600;line-height:1.3}.m_5f111313{font-size:var(--empty-state-description-fz,var(--empty-state-description-fz-md));color:var(--mantine-color-dimmed);text-wrap:pretty;max-width:32rem;margin:0;line-height:1.55}.m_65f4fb94{align-items:center;gap:var(--mantine-spacing-sm);flex-wrap:wrap;display:flex}.m_e9408a47{padding:var(--mantine-spacing-lg);padding-top:var(--mantine-spacing-xs);border-radius:var(--fieldset-radius,var(--mantine-radius-default));min-inline-size:auto}.m_84c9523a{border:calc(.0625rem * var(--mantine-scale)) solid}:where([data-mantine-color-scheme=light]) .m_84c9523a{border-color:var(--mantine-color-gray-3);background-color:var(--mantine-color-white)}:where([data-mantine-color-scheme=dark]) .m_84c9523a{border-color:var(--mantine-color-dark-4);background-color:var(--mantine-color-dark-7)}.m_ef274e49{border:calc(.0625rem * var(--mantine-scale)) solid}:where([data-mantine-color-scheme=light]) .m_ef274e49{border-color:var(--mantine-color-gray-3);background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_ef274e49{border-color:var(--mantine-color-dark-4);background-color:var(--mantine-color-dark-6)}.m_eda993d3{border:0;border-radius:0;padding:0}.m_90794832{font-size:var(--mantine-font-size-sm)}.m_74ca27fe{margin-bottom:var(--mantine-spacing-sm);padding:0}.m_df020499{z-index:var(--floating-window-z-index);width:var(--floating-window-width,auto);height:var(--floating-window-height,auto);position:fixed}.m_8478a6da{container:mantine-grid/inline-size}.m_410352e9{--grid-overflow:visible;--grid-column-gap:var(--grid-gap);--grid-row-gap:var(--grid-gap);overflow:var(--grid-overflow)}.m_dee7bd2f{justify-content:var(--grid-justify);align-items:var(--grid-align);gap:var(--grid-row-gap) var(--grid-column-gap);flex-wrap:wrap;display:flex}.m_96bdd299{--col-flex-grow:0;--col-offset:0rem;flex-shrink:0;order:var(--col-order);flex-basis:var(--col-flex-basis);width:var(--col-width);max-width:var(--col-max-width);flex-grow:var(--col-flex-grow);align-self:var(--col-align-self);margin-inline-start:var(--col-offset)}.m_bcb3f3c2{color:var(--mantine-color-black)}:where([data-mantine-color-scheme=light]) .m_bcb3f3c2{background-color:var(--mark-bg-light)}:where([data-mantine-color-scheme=dark]) .m_bcb3f3c2{background-color:var(--mark-bg-dark)}.m_9e117634{object-fit:var(--image-object-fit,cover);border-radius:var(--image-radius,0);width:100%;display:block}@keyframes m_885901b1{0%{opacity:.6;transform:scale(0)}to{opacity:0;transform:scale(2.8)}}.m_e5262200{--indicator-size:calc(.625rem * var(--mantine-scale));--indicator-color:var(--mantine-primary-color-filled);display:block;position:relative}.m_e5262200:where([data-inline]){display:inline-block}.m_760d1fb1{top:var(--indicator-top);left:var(--indicator-left);right:var(--indicator-right);bottom:var(--indicator-bottom);transform:translate(var(--indicator-translate-x), var(--indicator-translate-y));min-width:var(--indicator-size);height:var(--indicator-size);border-radius:var(--indicator-radius,1000rem);z-index:var(--indicator-z-index,200);font-size:var(--mantine-font-size-xs);background-color:var(--indicator-color);color:var(--indicator-text-color,var(--mantine-color-white));white-space:nowrap;justify-content:center;align-items:center;display:flex;position:absolute}.m_760d1fb1:before{content:"";background-color:var(--indicator-color);border-radius:var(--indicator-radius,1000rem);z-index:-1;position:absolute;inset:0}.m_760d1fb1:where([data-with-label]){padding-inline:calc(var(--mantine-spacing-xs) / 2)}.m_760d1fb1:where([data-with-border]){border:2px solid var(--mantine-color-body)}.m_760d1fb1[data-processing]:before{animation:1s linear infinite m_885901b1}.m_dc6f14e2{--kbd-fz-xs:calc(.625rem * var(--mantine-scale));--kbd-fz-sm:calc(.75rem * var(--mantine-scale));--kbd-fz-md:calc(.875rem * var(--mantine-scale));--kbd-fz-lg:calc(1rem * var(--mantine-scale));--kbd-fz-xl:calc(1.25rem * var(--mantine-scale));--kbd-fz:var(--kbd-fz-sm);font-family:var(--mantine-font-family-monospace);line-height:var(--mantine-line-height);font-weight:var(--mantine-font-weight-bold);font-size:var(--kbd-fz);border-radius:var(--mantine-radius-sm);border:calc(.0625rem * var(--mantine-scale)) solid;border-bottom-width:calc(.1875rem * var(--mantine-scale));text-align:center;unicode-bidi:embed;padding:.12em .45em}:where([data-mantine-color-scheme=light]) .m_dc6f14e2{border-color:var(--mantine-color-gray-3);color:var(--mantine-color-gray-7);background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_dc6f14e2{border-color:var(--mantine-color-dark-4);color:var(--mantine-color-dark-0);background-color:var(--mantine-color-dark-6)}.m_abbac491{--list-fz:var(--mantine-font-size-md);--list-lh:var(--mantine-line-height-md);--list-marker-gap:var(--mantine-spacing-lg);font-size:var(--list-fz);line-height:var(--list-lh);margin:0;padding:0;padding-inline-start:var(--list-marker-gap);list-style-position:outside}.m_abbac491[data-type=none]{--list-marker-gap:0}.m_abbac491:where([data-with-padding]){padding-inline-start:calc(var(--list-marker-gap) + var(--mantine-spacing-md))}.m_abb6bec2{white-space:normal;line-height:var(--list-lh)}.m_abb6bec2:where([data-with-icon]){list-style:none}.m_abb6bec2:where([data-with-icon]) .m_75cd9f71{--li-direction:row;--li-align:center}.m_abb6bec2:where(:not(:first-of-type)){margin-top:var(--list-spacing,0)}.m_abb6bec2:where([data-centered]){line-height:1}.m_75cd9f71{flex-direction:var(--li-direction,column);align-items:var(--li-align,flex-start);white-space:normal;display:inline-flex}.m_60f83e5b{vertical-align:middle;margin-inline-end:var(--mantine-spacing-sm);display:inline-block}.m_6e45937b{z-index:var(--lo-z-index);justify-content:center;align-items:center;display:flex;position:absolute;inset:0;overflow:hidden}.m_e8eb006c{z-index:calc(var(--lo-z-index) + 1);position:relative}.m_df587f17{z-index:var(--lo-z-index)}@keyframes m_55dc625a{0%{transform:translate(0)}to{transform:translateX(calc(-100% / var(--marquee-repeat,4) - var(--marquee-gap,var(--mantine-spacing-md)) / var(--marquee-repeat,4)))}}@keyframes m_cdef532c{0%{transform:translateY(0)}to{transform:translateY(calc(-100% / var(--marquee-repeat,4) - var(--marquee-gap,var(--mantine-spacing-md)) / var(--marquee-repeat,4)))}}.m_7dc7d3cd{--_fade-color:var(--marquee-fade-color,var(--mantine-color-body));--_fade-size:var(--marquee-fade-size,5%);max-width:100%;max-height:100%;display:flex;position:relative;overflow:hidden}.m_7dc7d3cd:where([data-orientation=horizontal]){flex-direction:row}.m_7dc7d3cd:where([data-orientation=vertical]){flex-direction:column}.m_7dc7d3cd[data-fade-edges]:before,.m_7dc7d3cd[data-fade-edges]:after{content:"";z-index:1;pointer-events:none;position:absolute}.m_7dc7d3cd[data-orientation=horizontal][data-fade-edges]:before,.m_7dc7d3cd[data-orientation=horizontal][data-fade-edges]:after{width:var(--_fade-size);top:0;bottom:0}.m_7dc7d3cd[data-orientation=horizontal][data-fade-edges]:before{background:linear-gradient(to right, var(--_fade-color), transparent);left:0}.m_7dc7d3cd[data-orientation=horizontal][data-fade-edges]:after{background:linear-gradient(to left, var(--_fade-color), transparent);right:0}.m_7dc7d3cd[data-orientation=vertical][data-fade-edges]:before,.m_7dc7d3cd[data-orientation=vertical][data-fade-edges]:after{height:var(--_fade-size);left:0;right:0}.m_7dc7d3cd[data-orientation=vertical][data-fade-edges]:before{background:linear-gradient(to bottom, var(--_fade-color), transparent);top:0}.m_7dc7d3cd[data-orientation=vertical][data-fade-edges]:after{background:linear-gradient(to top, var(--_fade-color), transparent);bottom:0}.m_1f9675ae{gap:var(--marquee-gap,var(--mantine-spacing-md));animation-duration:var(--marquee-duration,40s);animation-timing-function:linear;animation-iteration-count:infinite;display:flex}.m_7dc7d3cd[data-orientation=horizontal]>.m_1f9675ae{flex-direction:row;animation-name:m_55dc625a}.m_7dc7d3cd[data-orientation=vertical]>.m_1f9675ae{flex-direction:column;animation-name:m_cdef532c}.m_7dc7d3cd[data-reverse]>.m_1f9675ae{animation-direction:reverse}.m_7dc7d3cd[data-pause-on-hover]:hover>.m_1f9675ae{animation-play-state:paused}.m_3a9900f4{gap:var(--marquee-gap,var(--mantine-spacing-md));flex-shrink:0;display:flex}.m_7dc7d3cd[data-orientation=horizontal] .m_3a9900f4{flex-direction:row}.m_7dc7d3cd[data-orientation=vertical] .m_3a9900f4{flex-direction:column}.m_dc9b7c9f{padding:calc(.25rem * var(--mantine-scale))}.m_9bfac126{color:var(--mantine-color-dimmed);font-weight:var(--mantine-font-weight-medium);font-size:var(--mantine-font-size-xs);padding:calc(var(--mantine-spacing-xs) / 2) var(--mantine-spacing-sm);cursor:default}.m_efdf90cb{margin-top:calc(.25rem * var(--mantine-scale));margin-bottom:calc(.25rem * var(--mantine-scale));border-top:calc(.0625rem * var(--mantine-scale)) solid}:where([data-mantine-color-scheme=light]) .m_efdf90cb{border-color:var(--mantine-color-gray-2)}:where([data-mantine-color-scheme=dark]) .m_efdf90cb{border-color:var(--mantine-color-dark-4)}.m_99ac2aa1{font-size:var(--mantine-font-size-sm);width:100%;padding:calc(var(--mantine-spacing-xs) / 1.5) var(--mantine-spacing-sm);border-radius:var(--popover-radius,var(--mantine-radius-default));color:var(--menu-item-color,var(--mantine-color-text));-webkit-user-select:none;user-select:none;align-items:center;display:flex}.m_99ac2aa1:where([data-disabled],:disabled){color:var(--mantine-color-disabled-color);opacity:.6;cursor:not-allowed}:where([data-mantine-color-scheme=light]) .m_99ac2aa1:where(:hover,:focus,[data-menu-active]):where(:not(:disabled,[data-disabled])){background-color:var(--menu-item-hover,var(--mantine-color-gray-1))}:where([data-mantine-color-scheme=dark]) .m_99ac2aa1:where(:hover,:focus,[data-menu-active]):where(:not(:disabled,[data-disabled])){background-color:var(--menu-item-hover,var(--mantine-color-dark-4))}.m_99ac2aa1:where([data-sub-menu-item]){padding-inline-end:calc(.3125rem * var(--mantine-scale))}.m_ef8769b6{--menu-search-padding:var(--popover-padding,4px);margin-inline:calc(var(--menu-search-padding) * -1);margin-top:calc(var(--menu-search-padding) * -1);width:calc(100% + var(--menu-search-padding) * 2);border-top-width:0;margin-bottom:var(--menu-search-padding);border-inline-width:0;border-end-end-radius:0;border-end-start-radius:0}:where([data-mantine-color-scheme=light]) .m_ef8769b6,:where([data-mantine-color-scheme=light]) .m_ef8769b6:focus{border-color:var(--mantine-color-gray-2)}:where([data-mantine-color-scheme=dark]) .m_ef8769b6,:where([data-mantine-color-scheme=dark]) .m_ef8769b6:focus{border-color:var(--mantine-color-dark-4)}:where([data-mantine-color-scheme=light]) .m_ef8769b6{background-color:var(--mantine-color-white)}:where([data-mantine-color-scheme=dark]) .m_ef8769b6{background-color:var(--mantine-color-dark-7)}.m_5476e0d3{flex:1}.m_8395186e{width:calc(.75rem * var(--mantine-scale));height:calc(.75rem * var(--mantine-scale));flex-shrink:0;justify-content:center;align-items:center;margin-inline-end:calc(.5rem * var(--mantine-scale));display:inline-flex}.m_8b75e504{justify-content:center;align-items:center;display:flex}.m_8b75e504:where([data-position=left]){margin-inline-end:var(--mantine-spacing-xs)}.m_8b75e504:where([data-position=right]){margin-inline-start:var(--mantine-spacing-xs)}.m_b85b0bed{transform:rotate(-90deg)}:where([dir=rtl]) .m_b85b0bed{transform:rotate(90deg)}.m_de2654db{align-items:center;display:flex}.m_f08a2b4a{font-size:var(--mantine-font-size-sm);padding:calc(var(--mantine-spacing-xs) / 1.5) var(--mantine-spacing-sm);border-radius:var(--mantine-radius-default);color:var(--mantine-color-text);-webkit-user-select:none;user-select:none;cursor:pointer;background-color:#0000;line-height:1}.m_f08a2b4a:where([data-disabled],:disabled){color:var(--mantine-color-disabled-color);opacity:.6;cursor:not-allowed}:where([data-mantine-color-scheme=light]) .m_f08a2b4a:where(:hover,:focus-visible,[data-expanded]):where(:not(:disabled,[data-disabled])){background-color:var(--mantine-color-gray-1)}:where([data-mantine-color-scheme=dark]) .m_f08a2b4a:where(:hover,:focus-visible,[data-expanded]):where(:not(:disabled,[data-disabled])){background-color:var(--mantine-color-dark-5)}.m_9df02822{--modal-size-xs:calc(20rem * var(--mantine-scale));--modal-size-sm:calc(23.75rem * var(--mantine-scale));--modal-size-md:calc(27.5rem * var(--mantine-scale));--modal-size-lg:calc(38.75rem * var(--mantine-scale));--modal-size-xl:calc(48.75rem * var(--mantine-scale));--modal-size:var(--modal-size-md);--modal-y-offset:5dvh;--modal-x-offset:5vw}.m_9df02822[data-full-screen]{--modal-border-radius:0!important}.m_9df02822[data-full-screen] .m_54c44539{--modal-content-flex:0 0 100%;--modal-content-max-height:auto;--modal-content-height:100dvh}.m_9df02822[data-full-screen] .m_1f958f16{--modal-inner-y-offset:0;--modal-inner-x-offset:0}.m_9df02822[data-centered] .m_1f958f16{--modal-inner-align:center}.m_d0e2b9cd{border-start-start-radius:var(--modal-radius,var(--mantine-radius-default));border-start-end-radius:var(--modal-radius,var(--mantine-radius-default))}.m_54c44539{flex:var(--modal-content-flex,0 0 var(--modal-size));max-width:100%;max-height:var(--modal-content-max-height,calc(100dvh - var(--modal-y-offset) * 2));height:var(--modal-content-height,auto);overflow-y:auto}.m_54c44539[data-full-screen]{border-radius:0}.m_54c44539[data-hidden]{pointer-events:none;opacity:0!important}.m_1f958f16{justify-content:center;align-items:var(--modal-inner-align,flex-start);padding-top:var(--modal-inner-y-offset,var(--modal-y-offset));padding-bottom:var(--modal-inner-y-offset,var(--modal-y-offset));padding-inline:var(--modal-inner-x-offset,var(--modal-x-offset));display:flex}.m_7cda1cd6{--pill-fz-xs:calc(.625rem * var(--mantine-scale));--pill-fz-sm:calc(.75rem * var(--mantine-scale));--pill-fz-md:calc(.875rem * var(--mantine-scale));--pill-fz-lg:calc(1rem * var(--mantine-scale));--pill-fz-xl:calc(1.125rem * var(--mantine-scale));--pill-height-xs:calc(1.125rem * var(--mantine-scale));--pill-height-sm:calc(1.375rem * var(--mantine-scale));--pill-height-md:calc(1.5625rem * var(--mantine-scale));--pill-height-lg:calc(1.75rem * var(--mantine-scale));--pill-height-xl:calc(2rem * var(--mantine-scale));--pill-fz:var(--pill-fz-sm);--pill-height:var(--pill-height-sm);font-size:var(--pill-fz);height:var(--pill-height);border-radius:var(--pill-radius,1000rem);white-space:nowrap;-webkit-user-select:none;user-select:none;flex:0;align-items:center;max-width:100%;padding-inline:.8em;line-height:1;display:inline-flex;position:relative}:where([data-mantine-color-scheme=dark]) .m_7cda1cd6{background-color:var(--mantine-color-dark-7);color:var(--mantine-color-dark-0)}:where([data-mantine-color-scheme=light]) .m_7cda1cd6{color:var(--mantine-color-black)}.m_7cda1cd6:where([data-with-remove]:not(:has(button:disabled))){padding-inline-end:0}.m_7cda1cd6:where([data-disabled],:has(button:disabled)){cursor:not-allowed}.m_7cda1cd6:where([draggable=true]){cursor:grab}.m_7cda1cd6:where([draggable=true]):focus-visible{outline:2px solid var(--mantine-primary-color-filled);outline-offset:calc(.125rem * var(--mantine-scale))}.m_7cda1cd6:where([data-dragging]){opacity:.4;cursor:grabbing}.m_7cda1cd6:where([data-drag-over=before]):before,.m_7cda1cd6:where([data-drag-over=after]):after{content:"";width:calc(.125rem * var(--mantine-scale));background-color:var(--mantine-primary-color-filled);pointer-events:none;z-index:1;position:absolute;top:0;bottom:0}.m_7cda1cd6:where([data-drag-over=before]):before{inset-inline-start:calc(-.25rem * var(--mantine-scale))}.m_7cda1cd6:where([data-drag-over=after]):after{inset-inline-end:calc(-.25rem * var(--mantine-scale))}:where([data-mantine-color-scheme=light]) .m_44da308b{background-color:var(--mantine-color-gray-1)}:where([data-mantine-color-scheme=light]) .m_44da308b:where([data-disabled],:has(button:disabled)){background-color:var(--mantine-color-disabled)}:where([data-mantine-color-scheme=light]) .m_e3a01f8{background-color:var(--mantine-color-white)}:where([data-mantine-color-scheme=light]) .m_e3a01f8:where([data-disabled],:has(button:disabled)){background-color:var(--mantine-color-disabled)}.m_1e0e6180{cursor:inherit;height:100%;line-height:var(--pill-height);text-overflow:ellipsis;display:block;overflow:hidden}.m_ae386778{color:inherit;font-size:inherit;height:100%;min-height:unset;min-width:2em;width:unset;border-radius:0;border-start-end-radius:var(--pill-radius,50%);border-end-end-radius:var(--pill-radius,50%);flex:0;padding-inline:.1em .3em}.m_7cda1cd6[data-disabled]>.m_ae386778,.m_ae386778:disabled{cursor:not-allowed;background-color:#0000;width:.8em;min-width:.8em;padding:0;display:none}.m_7cda1cd6[data-disabled]>.m_ae386778>svg,.m_ae386778:disabled>svg{display:none}.m_ae386778>svg{pointer-events:none}.m_1dcfd90b{--pg-gap-xs:calc(.375rem * var(--mantine-scale));--pg-gap-sm:calc(.5rem * var(--mantine-scale));--pg-gap-md:calc(.625rem * var(--mantine-scale));--pg-gap-lg:calc(.75rem * var(--mantine-scale));--pg-gap-xl:calc(.75rem * var(--mantine-scale));--pg-gap:var(--pg-gap-sm);align-items:center;gap:var(--pg-gap);flex-wrap:wrap;display:flex}.m_45c4369d{appearance:none;min-width:calc(6.25rem * var(--mantine-scale));font-size:inherit;height:1.6em;color:inherit;background-color:#0000;border:0;flex:1;padding:0}.m_45c4369d::placeholder{color:var(--input-placeholder-color);opacity:1}.m_45c4369d:where([data-type=hidden],[data-type=auto]){height:calc(.0625rem * var(--mantine-scale));width:calc(.0625rem * var(--mantine-scale));pointer-events:none;opacity:0;position:absolute;top:0;left:0}.m_45c4369d:focus{outline:none}.m_45c4369d:where([data-type=auto]:focus){visibility:visible;opacity:1;height:1.6em;position:static}.m_45c4369d:where([data-pointer]:not([data-disabled],:disabled)){cursor:pointer}.m_45c4369d:where([data-disabled],:disabled){cursor:not-allowed}.m_f0824112{--nl-bg:var(--mantine-primary-color-light);--nl-hover:var(--mantine-primary-color-light-hover);--nl-color:var(--mantine-primary-color-light-color);width:100%;padding:8px var(--mantine-spacing-sm);-webkit-user-select:none;user-select:none;align-items:center;display:flex}@media (hover:hover){:where([data-mantine-color-scheme=light]) .m_f0824112:hover{background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_f0824112:hover{background-color:var(--mantine-color-dark-6)}}@media (hover:none){:where([data-mantine-color-scheme=light]) .m_f0824112:active{background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_f0824112:active{background-color:var(--mantine-color-dark-6)}}.m_f0824112:where([data-disabled]){opacity:.4;pointer-events:none}.m_f0824112:where([data-active],[aria-current=page]){background-color:var(--nl-bg);color:var(--nl-color)}@media (hover:hover){.m_f0824112:where([data-active],[aria-current=page]):hover{background-color:var(--nl-hover)}}@media (hover:none){.m_f0824112:where([data-active],[aria-current=page]):active{background-color:var(--nl-hover)}}.m_f0824112:where([data-active],[aria-current=page]) .m_57492dcc{--description-opacity:.9;--description-color:var(--nl-color)}.m_690090b5{justify-content:center;align-items:center;transition:transform .15s;display:flex}.m_690090b5>svg{display:block}.m_690090b5:where([data-position=left]){margin-inline-end:var(--mantine-spacing-sm)}.m_690090b5:where([data-position=right]){margin-inline-start:var(--mantine-spacing-sm)}.m_690090b5:where([data-rotate]){transform:rotate(90deg)}.m_1f6ac4c4{font-size:var(--mantine-font-size-sm)}.m_f07af9d2{text-overflow:ellipsis;flex:1;overflow:hidden}.m_f07af9d2:where([data-no-wrap]){white-space:nowrap}.m_57492dcc{font-size:var(--mantine-font-size-xs);opacity:var(--description-opacity,1);color:var(--description-color,var(--mantine-color-dimmed));text-overflow:ellipsis;display:block;overflow:hidden}:where([data-no-wrap]) .m_57492dcc{white-space:nowrap}.m_e17b862f{padding-inline-start:var(--nl-offset,var(--mantine-spacing-lg))}.m_1fd8a00b{transform:rotate(-90deg)}.m_a513464{--notification-radius:var(--mantine-radius-default);--notification-color:var(--mantine-primary-color-filled);box-sizing:border-box;padding-inline-start:calc(1.375rem * var(--mantine-scale));padding-inline-end:var(--mantine-spacing-xs);padding-top:var(--mantine-spacing-xs);padding-bottom:var(--mantine-spacing-xs);border-radius:var(--notification-radius);box-shadow:var(--mantine-shadow-lg);align-items:center;display:flex;position:relative;overflow:hidden}.m_a513464:before{content:"";width:calc(.375rem * var(--mantine-scale));top:var(--notification-radius);bottom:var(--notification-radius);border-radius:var(--notification-radius);background-color:var(--notification-color);display:block;position:absolute;inset-inline-start:calc(.25rem * var(--mantine-scale))}:where([data-mantine-color-scheme=light]) .m_a513464{background-color:var(--mantine-color-white)}:where([data-mantine-color-scheme=dark]) .m_a513464{background-color:var(--mantine-color-dark-6)}.m_a513464:where([data-with-icon]):before{display:none}:where([data-mantine-color-scheme=light]) .m_a513464:where([data-with-border]){border:1px solid var(--mantine-color-gray-3)}:where([data-mantine-color-scheme=dark]) .m_a513464:where([data-with-border]){border:1px solid var(--mantine-color-dark-4)}.m_a4ceffb{box-sizing:border-box;width:calc(1.75rem * var(--mantine-scale));height:calc(1.75rem * var(--mantine-scale));border-radius:calc(1.75rem * var(--mantine-scale));background-color:var(--notification-color);color:var(--mantine-color-white);justify-content:center;align-items:center;margin-inline-end:var(--mantine-spacing-md);display:flex}.m_b0920b15{margin-inline-end:var(--mantine-spacing-md)}.m_a49ed24{flex:1;margin-inline-end:var(--mantine-spacing-xs);overflow:hidden}.m_3feedf16{margin-bottom:calc(.125rem * var(--mantine-scale));text-overflow:ellipsis;font-size:var(--mantine-font-size-sm);line-height:var(--mantine-line-height-sm);font-weight:var(--mantine-font-weight-medium);overflow:hidden}:where([data-mantine-color-scheme=light]) .m_3feedf16{color:var(--mantine-color-gray-9)}:where([data-mantine-color-scheme=dark]) .m_3feedf16{color:var(--mantine-color-white)}.m_3d733a3a{font-size:var(--mantine-font-size-sm);line-height:var(--mantine-line-height-sm);text-overflow:ellipsis;overflow:hidden}:where([data-mantine-color-scheme=light]) .m_3d733a3a{color:var(--mantine-color-black)}:where([data-mantine-color-scheme=dark]) .m_3d733a3a{color:var(--mantine-color-dark-0)}:where([data-mantine-color-scheme=light]) .m_3d733a3a:where([data-with-title]){color:var(--mantine-color-gray-6)}:where([data-mantine-color-scheme=dark]) .m_3d733a3a:where([data-with-title]){color:var(--mantine-color-dark-2)}@media (hover:hover){:where([data-mantine-color-scheme=light]) .m_919a4d88:hover{background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_919a4d88:hover{background-color:var(--mantine-color-dark-8)}}@media (hover:none){:where([data-mantine-color-scheme=light]) .m_919a4d88:active{background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_919a4d88:active{background-color:var(--mantine-color-dark-8)}}.m_e2f5cd4e{--ni-right-section-width-xs:calc(1.0625rem * var(--mantine-scale));--ni-right-section-width-sm:calc(1.5rem * var(--mantine-scale));--ni-right-section-width-md:calc(1.6875rem * var(--mantine-scale));--ni-right-section-width-lg:calc(1.9375rem * var(--mantine-scale));--ni-right-section-width-xl:calc(2.125rem * var(--mantine-scale))}.m_95e17d22{--ni-chevron-size-xs:calc(.625rem * var(--mantine-scale));--ni-chevron-size-sm:calc(.875rem * var(--mantine-scale));--ni-chevron-size-md:calc(1rem * var(--mantine-scale));--ni-chevron-size-lg:calc(1.125rem * var(--mantine-scale));--ni-chevron-size-xl:calc(1.25rem * var(--mantine-scale));--ni-chevron-size:var(--ni-chevron-size-sm);width:100%;height:calc(var(--input-height) - calc(.125rem * var(--mantine-scale)));max-width:calc(var(--ni-chevron-size) * 1.7);flex-direction:column;margin-inline-start:auto;display:flex}.m_80b4b171{--control-border:1px solid var(--input-bd);--control-radius:calc(var(--input-radius) - calc(.0625rem * var(--mantine-scale)));width:100%;height:calc(var(--input-height) / 2 - calc(.0625rem * var(--mantine-scale)));border-inline-start:var(--control-border);color:var(--mantine-color-text);cursor:pointer;background-color:#0000;flex:0 0 50%;justify-content:center;align-items:center;padding:0;display:flex}.m_80b4b171:where(:disabled){cursor:not-allowed;opacity:.6;color:var(--mantine-color-disabled-color);background-color:#0000}.m_e2f5cd4e[data-error] :where(.m_80b4b171){color:var(--mantine-color-error)}@media (hover:hover){:where([data-mantine-color-scheme=light]) .m_80b4b171:hover{background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_80b4b171:hover{background-color:var(--mantine-color-dark-4)}}@media (hover:none){:where([data-mantine-color-scheme=light]) .m_80b4b171:active{background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_80b4b171:active{background-color:var(--mantine-color-dark-4)}}.m_80b4b171:where(:first-of-type){border-radius:0;border-start-end-radius:var(--control-radius)}.m_80b4b171:last-of-type{border-radius:0;border-end-end-radius:var(--control-radius)}.m_f62ab2af{contain:layout style;gap:var(--ol-gap,var(--mantine-spacing-xs));flex-wrap:wrap;display:flex}.m_4addd315{--pagination-control-size-xs:calc(1.375rem * var(--mantine-scale));--pagination-control-size-sm:calc(1.625rem * var(--mantine-scale));--pagination-control-size-md:calc(2rem * var(--mantine-scale));--pagination-control-size-lg:calc(2.375rem * var(--mantine-scale));--pagination-control-size-xl:calc(2.75rem * var(--mantine-scale));--pagination-control-size-input-xs:calc(1.875rem * var(--mantine-scale));--pagination-control-size-input-sm:calc(2.25rem * var(--mantine-scale));--pagination-control-size-input-md:calc(2.625rem * var(--mantine-scale));--pagination-control-size-input-lg:calc(3.125rem * var(--mantine-scale));--pagination-control-size-input-xl:calc(3.75rem * var(--mantine-scale));--pagination-control-size:var(--pagination-control-size-md);--pagination-control-fz:var(--mantine-font-size-md);--pagination-active-bg:var(--mantine-primary-color-filled)}.m_4addd315:where([data-layout=responsive]){container-type:inline-size}.m_326d024a{border:calc(.0625rem * var(--mantine-scale)) solid;cursor:pointer;color:var(--mantine-color-text);height:var(--pagination-control-size);min-width:var(--pagination-control-size);font-size:var(--pagination-control-fz);border-radius:var(--pagination-control-radius,var(--mantine-radius-default));justify-content:center;align-items:center;line-height:1;display:flex}.m_326d024a:where([data-with-padding]){padding:calc(var(--pagination-control-size) / 4)}.m_326d024a:where(:disabled,[data-disabled]){cursor:not-allowed;opacity:.4}:where([data-mantine-color-scheme=light]) .m_326d024a{border-color:var(--mantine-color-gray-4);background-color:var(--mantine-color-white)}@media (hover:hover){:where([data-mantine-color-scheme=light]) .m_326d024a:hover:where(:not(:disabled,[data-disabled])){background-color:var(--mantine-color-gray-0)}}@media (hover:none){:where([data-mantine-color-scheme=light]) .m_326d024a:active:where(:not(:disabled,[data-disabled])){background-color:var(--mantine-color-gray-0)}}:where([data-mantine-color-scheme=dark]) .m_326d024a{border-color:var(--mantine-color-dark-4);background-color:var(--mantine-color-dark-6)}@media (hover:hover){:where([data-mantine-color-scheme=dark]) .m_326d024a:hover:where(:not(:disabled,[data-disabled])){background-color:var(--mantine-color-dark-5)}}@media (hover:none){:where([data-mantine-color-scheme=dark]) .m_326d024a:active:where(:not(:disabled,[data-disabled])){background-color:var(--mantine-color-dark-5)}}.m_326d024a:where([data-active]){background-color:var(--pagination-active-bg);border-color:var(--pagination-active-bg);color:var(--pagination-active-color,var(--mantine-color-white))}@media (hover:hover){.m_326d024a:where([data-active]):hover{background-color:var(--pagination-active-bg)}}@media (hover:none){.m_326d024a:where([data-active]):active{background-color:var(--pagination-active-bg)}}.m_4ad7767d{height:var(--pagination-control-size);min-width:var(--pagination-control-size);pointer-events:none;justify-content:center;align-items:center;display:flex}.m_105fdbed{gap:inherit;align-items:center;display:flex}@container (width<=400px){.m_105fdbed{display:none}}.m_10817321{height:var(--pagination-control-size);font-size:var(--pagination-control-fz);white-space:nowrap;justify-content:center;align-items:center;display:none}@container (width<=400px){.m_10817321{display:flex}}.m_f61ca620{--psi-button-size-xs:calc(1.375rem * var(--mantine-scale));--psi-button-size-sm:calc(1.625rem * var(--mantine-scale));--psi-button-size-md:calc(1.75rem * var(--mantine-scale));--psi-button-size-lg:calc(2rem * var(--mantine-scale));--psi-button-size-xl:calc(2.5rem * var(--mantine-scale));--psi-icon-size-xs:calc(1rem * var(--mantine-scale));--psi-icon-size-sm:calc(1.25rem * var(--mantine-scale));--psi-icon-size-md:calc(1.375rem * var(--mantine-scale));--psi-icon-size-lg:calc(1.5rem * var(--mantine-scale));--psi-icon-size-xl:calc(1.75rem * var(--mantine-scale));--psi-button-size:var(--psi-button-size-sm);--psi-icon-size:var(--psi-icon-size-sm)}.m_ccf8da4c{position:relative;overflow:hidden}.m_f2d85dd2{font-family:var(--mantine-font-family);font-size:inherit;line-height:var(--mantine-line-height);width:100%;height:100%;color:inherit;background-color:#0000;border:0;outline:0;padding-inline-start:var(--input-padding-inline-start);padding-inline-end:var(--input-padding-inline-end);position:absolute;inset:0}.m_ccf8da4c[data-disabled] .m_f2d85dd2,.m_f2d85dd2:disabled{cursor:not-allowed}.m_f2d85dd2::placeholder{color:var(--input-placeholder-color);opacity:1}.m_f2d85dd2::-ms-reveal{display:none}.m_b1072d44{width:var(--psi-button-size);height:var(--psi-button-size);min-width:var(--psi-button-size);min-height:var(--psi-button-size)}.m_b1072d44:disabled{display:none}.m_f1cb205a{--pin-input-size-xs:calc(1.875rem * var(--mantine-scale));--pin-input-size-sm:calc(2.25rem * var(--mantine-scale));--pin-input-size-md:calc(2.625rem * var(--mantine-scale));--pin-input-size-lg:calc(3.125rem * var(--mantine-scale));--pin-input-size-xl:calc(3.75rem * var(--mantine-scale));--pin-input-size:var(--pin-input-size-sm)}.m_cb288ead{width:var(--pin-input-size);height:var(--pin-input-size)}@keyframes m_81a374bd{0%{background-position:0 0}to{background-position:calc(2.5rem * var(--mantine-scale)) 0}}@keyframes m_e0fb7a86{0%{background-position:0 0}to{background-position:0 calc(2.5rem * var(--mantine-scale))}}.m_db6d6462{--progress-radius:var(--mantine-radius-default);--progress-size:var(--progress-size-md);--progress-size-xs:calc(.1875rem * var(--mantine-scale));--progress-size-sm:calc(.3125rem * var(--mantine-scale));--progress-size-md:calc(.5rem * var(--mantine-scale));--progress-size-lg:calc(.75rem * var(--mantine-scale));--progress-size-xl:calc(1rem * var(--mantine-scale));height:var(--progress-size);border-radius:var(--progress-radius);display:flex;position:relative;overflow:hidden}:where([data-mantine-color-scheme=light]) .m_db6d6462{background-color:var(--mantine-color-gray-2)}:where([data-mantine-color-scheme=dark]) .m_db6d6462{background-color:var(--mantine-color-dark-4)}.m_db6d6462:where([data-orientation=vertical]){height:auto;width:var(--progress-size);flex-direction:column-reverse}.m_2242eb65{background-color:var(--progress-section-color);height:100%;width:var(--progress-section-size);background-size:calc(1.25rem * var(--mantine-scale)) calc(1.25rem * var(--mantine-scale));transition:width var(--progress-transition-duration,.1s) ease;justify-content:center;align-items:center;display:flex;overflow:hidden}.m_2242eb65:where([data-striped]){background-image:linear-gradient(45deg,#ffffff26 25%,#0000 25% 50%,#ffffff26 50% 75%,#0000 75%,#0000)}.m_2242eb65:where([data-animated]){animation:1s linear infinite m_81a374bd}.m_2242eb65:where(:last-of-type){border-radius:0;border-start-end-radius:var(--progress-radius);border-end-end-radius:var(--progress-radius)}.m_2242eb65:where(:first-of-type){border-radius:0;border-start-start-radius:var(--progress-radius);border-end-start-radius:var(--progress-radius)}.m_db6d6462:where([data-orientation=vertical]) .m_2242eb65{width:100%;height:var(--progress-section-size);transition:height var(--progress-transition-duration,.1s) ease}.m_db6d6462:where([data-orientation=vertical]) .m_2242eb65:where([data-striped]){background-image:linear-gradient(135deg,#ffffff26 25%,#0000 25% 50%,#ffffff26 50% 75%,#0000 75%,#0000)}.m_db6d6462:where([data-orientation=vertical]) .m_2242eb65:where([data-animated]){animation:1s linear infinite m_e0fb7a86}.m_db6d6462:where([data-orientation=vertical]) .m_2242eb65:where(:last-of-type){border-radius:0;border-start-start-radius:var(--progress-radius);border-start-end-radius:var(--progress-radius)}.m_db6d6462:where([data-orientation=vertical]) .m_2242eb65:where(:first-of-type){border-radius:0;border-end-end-radius:var(--progress-radius);border-end-start-radius:var(--progress-radius)}.m_91e40b74{color:var(--progress-label-color,var(--mantine-color-white));-webkit-user-select:none;user-select:none;white-space:nowrap;text-overflow:ellipsis;font-weight:700;font-size:min(calc(var(--progress-size) * .65), calc(1.125rem * var(--mantine-scale)));padding-inline:calc(.25rem * var(--mantine-scale));line-height:1;overflow:hidden}.m_db6d6462:where([data-orientation=vertical]) .m_91e40b74{writing-mode:vertical-rl}.m_9dc8ae12{--card-radius:var(--mantine-radius-default);border-radius:var(--card-radius);cursor:pointer;width:100%;display:block}.m_9dc8ae12 :where(*){cursor:inherit}.m_9dc8ae12:where([data-with-border]){border:calc(.0625rem * var(--mantine-scale)) solid transparent}:where([data-mantine-color-scheme=light]) .m_9dc8ae12:where([data-with-border]){border-color:var(--mantine-color-gray-3)}:where([data-mantine-color-scheme=dark]) .m_9dc8ae12:where([data-with-border]){border-color:var(--mantine-color-dark-4)}.m_717d7ff6{--radio-size-xs:calc(1rem * var(--mantine-scale));--radio-size-sm:calc(1.25rem * var(--mantine-scale));--radio-size-md:calc(1.5rem * var(--mantine-scale));--radio-size-lg:calc(1.875rem * var(--mantine-scale));--radio-size-xl:calc(2.25rem * var(--mantine-scale));--radio-icon-size-xs:calc(.375rem * var(--mantine-scale));--radio-icon-size-sm:calc(.5rem * var(--mantine-scale));--radio-icon-size-md:calc(.625rem * var(--mantine-scale));--radio-icon-size-lg:calc(.875rem * var(--mantine-scale));--radio-icon-size-xl:calc(1rem * var(--mantine-scale));--radio-icon-size:var(--radio-icon-size-sm);--radio-size:var(--radio-size-sm);--radio-color:var(--mantine-primary-color-filled);--radio-icon-color:var(--mantine-color-white);border:calc(.0625rem * var(--mantine-scale)) solid transparent;width:var(--radio-size);min-width:var(--radio-size);height:var(--radio-size);min-height:var(--radio-size);border-radius:var(--radio-radius,10000px);cursor:var(--mantine-cursor-type);-webkit-tap-highlight-color:transparent;justify-content:center;align-items:center;transition:border-color .1s,background-color .1s;display:flex;position:relative}:where([data-mantine-color-scheme=light]) .m_717d7ff6{background-color:var(--mantine-color-white);border-color:var(--mantine-color-gray-4)}:where([data-mantine-color-scheme=dark]) .m_717d7ff6{background-color:var(--mantine-color-dark-6);border-color:var(--mantine-color-dark-4)}.m_717d7ff6[data-checked]{background-color:var(--radio-color);border-color:var(--radio-color)}.m_717d7ff6[data-checked]>.m_3e4da632{opacity:1;color:var(--radio-icon-color);transform:none}.m_717d7ff6[data-disabled]{cursor:not-allowed;background-color:var(--mantine-color-disabled);border-color:var(--mantine-color-disabled-border)}.m_717d7ff6[data-disabled][data-checked]>.m_3e4da632{color:var(--mantine-color-disabled-color)}.m_2980836c[data-checked]:not([data-disabled]){border-color:var(--radio-color);background-color:#0000}.m_2980836c[data-checked]:not([data-disabled])>.m_3e4da632{color:var(--radio-color);opacity:1;transform:none}.m_3e4da632{width:var(--radio-icon-size);height:var(--radio-icon-size);color:#0000;pointer-events:none;transform:translateY(calc(.3125rem * var(--mantine-scale))) scale(.5);opacity:1;transition:transform .1s,opacity .1s;display:block}.m_f3f1af94{--radio-size-xs:calc(1rem * var(--mantine-scale));--radio-size-sm:calc(1.25rem * var(--mantine-scale));--radio-size-md:calc(1.5rem * var(--mantine-scale));--radio-size-lg:calc(1.875rem * var(--mantine-scale));--radio-size-xl:calc(2.25rem * var(--mantine-scale));--radio-size:var(--radio-size-sm);--radio-icon-size-xs:calc(.375rem * var(--mantine-scale));--radio-icon-size-sm:calc(.5rem * var(--mantine-scale));--radio-icon-size-md:calc(.625rem * var(--mantine-scale));--radio-icon-size-lg:calc(.875rem * var(--mantine-scale));--radio-icon-size-xl:calc(1rem * var(--mantine-scale));--radio-icon-size:var(--radio-icon-size-sm);--radio-icon-color:var(--mantine-color-white)}.m_89c4f5e4{width:var(--radio-size);height:var(--radio-size);order:1;position:relative}.m_89c4f5e4:where([data-label-position=left]){order:2}.m_f3ed6b2b{color:var(--radio-icon-color);opacity:var(--radio-icon-opacity,0);translate:-50% -50%;transform:var(--radio-icon-transform,scale(.2) translateY(calc(.625rem * var(--mantine-scale))));pointer-events:none;width:var(--radio-icon-size);height:var(--radio-icon-size);transition:opacity .1s,transform .2s;position:absolute;top:50%;left:50%}.m_8a3dbb89{border:calc(.0625rem * var(--mantine-scale)) solid;appearance:none;width:var(--radio-size);height:var(--radio-size);border-radius:var(--radio-radius,var(--radio-size));cursor:var(--mantine-cursor-type);-webkit-tap-highlight-color:transparent;justify-content:center;align-items:center;margin:0;transition-property:background-color,border-color;transition-duration:.1s;transition-timing-function:ease;display:flex;position:relative}:where([data-mantine-color-scheme=light]) .m_8a3dbb89{background-color:var(--mantine-color-white);border-color:var(--mantine-color-gray-4)}:where([data-mantine-color-scheme=dark]) .m_8a3dbb89{background-color:var(--mantine-color-dark-6);border-color:var(--mantine-color-dark-4)}.m_8a3dbb89:checked{background-color:var(--radio-color,var(--mantine-primary-color-filled));border-color:var(--radio-color,var(--mantine-primary-color-filled))}.m_8a3dbb89:checked+.m_f3ed6b2b{--radio-icon-opacity:1;--radio-icon-transform:scale(1)}.m_8a3dbb89:disabled{cursor:not-allowed;background-color:var(--mantine-color-disabled);border-color:var(--mantine-color-disabled-border)}.m_8a3dbb89:disabled+.m_f3ed6b2b{--radio-icon-color:var(--mantine-color-disabled-color)}.m_8a3dbb89:where([data-with-error-styles][data-error]){border-color:var(--mantine-color-error)}.m_1bfe9d39+.m_f3ed6b2b{--radio-icon-color:var(--radio-color)}.m_1bfe9d39:checked:not(:disabled){border-color:var(--radio-color);background-color:#0000}.m_1bfe9d39:checked:not(:disabled)+.m_f3ed6b2b{--radio-icon-color:var(--radio-color);--radio-icon-opacity:1;--radio-icon-transform:none}.m_f8d312f2{--rating-size-xs:calc(.875rem * var(--mantine-scale));--rating-size-sm:calc(1.125rem * var(--mantine-scale));--rating-size-md:calc(1.25rem * var(--mantine-scale));--rating-size-lg:calc(1.75rem * var(--mantine-scale));--rating-size-xl:calc(2rem * var(--mantine-scale));width:max-content;display:flex}.m_f8d312f2:where(:has(input:disabled)){pointer-events:none}.m_61734bb7{transition:transform .1s;position:relative}.m_61734bb7:where([data-active]){z-index:1;transform:scale(1.1)}.m_5662a89a{width:var(--rating-size);height:var(--rating-size);display:block}:where([data-mantine-color-scheme=light]) .m_5662a89a{fill:var(--mantine-color-gray-3);stroke:var(--mantine-color-gray-3)}:where([data-mantine-color-scheme=dark]) .m_5662a89a{fill:var(--mantine-color-dark-3);stroke:var(--mantine-color-dark-3)}.m_5662a89a:where([data-filled]){fill:var(--rating-color);stroke:var(--rating-color)}.m_211007ba{white-space:nowrap;opacity:0;-webkit-tap-highlight-color:transparent;width:0;height:0;position:absolute;overflow:hidden}.m_211007ba:focus-visible+label{outline:2px solid var(--mantine-primary-color-filled);outline-offset:calc(.125rem * var(--mantine-scale))}.m_21342ee4{cursor:pointer;z-index:var(--rating-item-z-index,0);-webkit-tap-highlight-color:transparent;display:block;position:absolute;top:0;left:0}.m_21342ee4:where([data-read-only]){cursor:default}.m_21342ee4:where(:last-of-type){position:relative}.m_fae05d6a{clip-path:var(--rating-symbol-clip-path)}.m_47dd3981{align-items:baseline;display:inline-flex;overflow:hidden}.m_47dd3981[data-tabular-numbers]{font-variant-numeric:tabular-nums}.m_b301d46e{width:1ch;height:1em;transition:width var(--rn-duration) var(--rn-timing-function), opacity var(--rn-duration) var(--rn-timing-function);line-height:1;display:inline-block;overflow:hidden}.m_b301d46e[data-empty]{opacity:0;width:0}.m_8ae40964{animation:m_18d73873 var(--rn-duration) var(--rn-timing-function);flex-direction:column;display:flex}.m_8ae40964>span{justify-content:center;align-items:center;height:1em;display:flex}.m_47d64bf5{white-space:pre;transition:opacity var(--rn-duration) var(--rn-timing-function);display:inline-block;overflow:hidden}.m_47d64bf5[data-empty]{opacity:0;width:0}@keyframes m_18d73873{0%{transform:var(--rn-roll-from)}to{transform:var(--rn-roll-to)}}.m_1b3c8819{--tooltip-radius:var(--mantine-radius-default);padding:calc(var(--mantine-spacing-xs) / 2) var(--mantine-spacing-xs);pointer-events:none;font-size:var(--mantine-font-size-sm);white-space:nowrap;border-radius:var(--tooltip-radius);position:absolute}:where([data-mantine-color-scheme=light]) .m_1b3c8819{background-color:var(--tooltip-bg,var(--mantine-color-gray-9));color:var(--tooltip-color,var(--mantine-color-white))}:where([data-mantine-color-scheme=dark]) .m_1b3c8819{background-color:var(--tooltip-bg,var(--mantine-color-gray-2));color:var(--tooltip-color,var(--mantine-color-black))}.m_1b3c8819:where([data-multiline]){white-space:normal}.m_1b3c8819:where([data-fixed]){position:fixed}.m_1b3c8819:where([data-interactive]){pointer-events:auto}.m_f898399f{background-color:inherit;z-index:1;border:0}.m_b32e4812{width:var(--rp-size);height:var(--rp-size);min-width:var(--rp-size);min-height:var(--rp-size);--rp-transition-duration:0s;position:relative}.m_d43b5134{width:var(--rp-size);height:var(--rp-size);min-width:var(--rp-size);min-height:var(--rp-size);transform:rotate(calc(var(--rp-start-angle,270deg) - 360deg))}.m_b1ca1fbf{stroke:var(--curve-color,var(--rp-curve-root-color));transition:stroke-dashoffset var(--rp-transition-duration) ease, stroke-dasharray var(--rp-transition-duration) ease, stroke var(--rp-transition-duration)}[data-mantine-color-scheme=light] .m_b1ca1fbf{--rp-curve-root-color:var(--mantine-color-gray-2)}[data-mantine-color-scheme=dark] .m_b1ca1fbf{--rp-curve-root-color:var(--mantine-color-dark-4)}.m_b23f9dc4{top:50%;inset-inline:var(--rp-label-offset);position:absolute;transform:translateY(-50%)}.m_bc8f275{--scroller-control-size:calc(3.125rem * var(--mantine-scale));--scroller-background-color:var(--mantine-color-body);align-items:center;max-width:100%;display:flex;position:relative;overflow:hidden}.m_ee44dece{scrollbar-width:none;-ms-overflow-style:none;-webkit-user-select:none;user-select:none;flex:1;overflow:auto hidden}.m_ee44dece::-webkit-scrollbar{display:none}.m_ee44dece[data-draggable]{cursor:grab}.m_53e4f606{white-space:nowrap;display:inline-flex}.m_47754fc8{width:var(--scroller-control-size);height:var(--scroller-control-size)}.m_53e526ea{width:var(--scroller-control-size);z-index:1;color:var(--mantine-color-dimmed);opacity:1;pointer-events:auto;align-items:center;transition:opacity .2s,color .15s;display:flex;position:absolute;top:0;bottom:0}.m_53e526ea:hover{color:var(--mantine-color-text)}.m_53e526ea:where([data-position=start]){background:linear-gradient(to right, var(--scroller-background-color) 40%, transparent);justify-content:flex-start;inset-inline-start:0}.m_53e526ea:where([data-position=start]) .m_47754fc8{transform:rotate(90deg)}.m_53e526ea:where([data-position=end]){background:linear-gradient(to left, var(--scroller-background-color) 40%, transparent);justify-content:flex-end;inset-inline-end:0}.m_53e526ea:where([data-position=end]) .m_47754fc8{transform:rotate(-90deg)}.m_53e526ea:where([data-hidden]){opacity:0;pointer-events:none}.m_cf365364{--sc-padding-xs:calc(.125rem * var(--mantine-scale)) calc(.375rem * var(--mantine-scale));--sc-padding-sm:calc(.1875rem * var(--mantine-scale)) calc(.625rem * var(--mantine-scale));--sc-padding-md:calc(.25rem * var(--mantine-scale)) calc(.875rem * var(--mantine-scale));--sc-padding-lg:calc(.4375rem * var(--mantine-scale)) calc(1rem * var(--mantine-scale));--sc-padding-xl:calc(.625rem * var(--mantine-scale)) calc(1.25rem * var(--mantine-scale));--sc-transition-duration:.2s;--sc-padding:var(--sc-padding-sm);--sc-transition-timing-function:ease;--sc-font-size:var(--mantine-font-size-sm);border-radius:var(--sc-radius,var(--mantine-radius-default));width:auto;padding:calc(.25rem * var(--mantine-scale));flex-direction:row;display:inline-flex;position:relative;overflow:hidden}.m_cf365364:where([data-full-width]){display:flex}.m_cf365364:where([data-orientation=vertical]){flex-direction:column;width:max-content;display:flex}.m_cf365364:where([data-orientation=vertical]):where([data-full-width]){width:auto}:where([data-mantine-color-scheme=light]) .m_cf365364{background-color:var(--mantine-color-gray-1)}:where([data-mantine-color-scheme=dark]) .m_cf365364{background-color:var(--mantine-color-dark-8)}.m_9e182ccd{z-index:1;border-radius:max(calc(var(--sc-radius,var(--mantine-radius-default)) - 4px), calc(var(--sc-radius,var(--mantine-radius-default)) / 4));display:block;position:absolute}:where([data-mantine-color-scheme=light]) .m_9e182ccd{box-shadow:var(--sc-shadow,none);background-color:var(--sc-color,var(--mantine-color-white))}:where([data-mantine-color-scheme=dark]) .m_9e182ccd{box-shadow:none;background-color:var(--sc-color,var(--mantine-color-dark-5))}.m_1738fcb2{-webkit-tap-highlight-color:transparent;font-weight:var(--mantine-font-weight-medium);text-align:center;white-space:nowrap;text-overflow:ellipsis;-webkit-user-select:none;user-select:none;border-radius:calc(var(--sc-radius,var(--mantine-radius-default)) - 4px);font-size:var(--sc-font-size);padding:var(--sc-padding);transition:color var(--sc-transition-duration) var(--sc-transition-timing-function);cursor:pointer;outline:var(--segmented-control-outline,none);display:block;overflow:hidden}:where([data-mantine-color-scheme=light]) .m_1738fcb2{color:var(--mantine-color-gray-7)}:where([data-mantine-color-scheme=dark]) .m_1738fcb2{color:var(--mantine-color-dark-1)}.m_1738fcb2:where([data-read-only]){cursor:default}fieldset:disabled .m_1738fcb2,.m_1738fcb2:where([data-disabled]){cursor:not-allowed;color:var(--mantine-color-disabled-color)}:where([data-mantine-color-scheme=light]) .m_1738fcb2:where([data-active]){color:var(--sc-label-color,var(--mantine-color-black))}:where([data-mantine-color-scheme=dark]) .m_1738fcb2:where([data-active]){color:var(--sc-label-color,var(--mantine-color-white))}.m_cf365364:where([data-initialized]) .m_1738fcb2:where([data-active]):before{display:none}.m_1738fcb2:where([data-active]):before{content:"";z-index:0;border-radius:calc(var(--sc-radius,var(--mantine-radius-default)) - 4px);position:absolute;inset:0}:where([data-mantine-color-scheme=light]) .m_1738fcb2:where([data-active]):before{box-shadow:var(--sc-shadow,none);background-color:var(--sc-color,var(--mantine-color-white))}:where([data-mantine-color-scheme=dark]) .m_1738fcb2:where([data-active]):before{box-shadow:none;background-color:var(--sc-color,var(--mantine-color-dark-5))}@media (hover:hover){:where([data-mantine-color-scheme=light]) .m_1738fcb2:where(:not([data-disabled],[data-active],[data-read-only])):hover{color:var(--mantine-color-black)}:where([data-mantine-color-scheme=dark]) .m_1738fcb2:where(:not([data-disabled],[data-active],[data-read-only])):hover{color:var(--mantine-color-white)}}@media (hover:none){:where([data-mantine-color-scheme=light]) .m_1738fcb2:where(:not([data-disabled],[data-active],[data-read-only])):active{color:var(--mantine-color-black)}:where([data-mantine-color-scheme=dark]) .m_1738fcb2:where(:not([data-disabled],[data-active],[data-read-only])):active{color:var(--mantine-color-white)}}@media (hover:hover){fieldset:disabled .m_1738fcb2:hover{color:var(--mantine-color-disabled-color)!important}}@media (hover:none){fieldset:disabled .m_1738fcb2:active{color:var(--mantine-color-disabled-color)!important}}.m_1714d588{white-space:nowrap;opacity:0;width:0;height:0;position:absolute;overflow:hidden}.m_1714d588[data-focus-ring=auto]:focus:focus-visible+.m_1738fcb2,.m_1714d588[data-focus-ring=always]:focus+.m_1738fcb2{--segmented-control-outline:2px solid var(--mantine-primary-color-filled)}.m_69686b9b{z-index:2;transition:border-color var(--sc-transition-duration) var(--sc-transition-timing-function);flex:1;position:relative}.m_cf365364[data-with-items-borders] :where(.m_69686b9b):before{content:"";top:0;bottom:0;background-color:var(--separator-color);width:calc(.0625rem * var(--mantine-scale));transition:background-color var(--sc-transition-duration) var(--sc-transition-timing-function);position:absolute;inset-inline-start:0}.m_69686b9b[data-orientation=vertical]:before{top:0;inset-inline:0;height:calc(.0625rem * var(--mantine-scale));width:auto;bottom:auto}:where([data-mantine-color-scheme=light]) .m_69686b9b{--separator-color:var(--mantine-color-gray-3)}:where([data-mantine-color-scheme=dark]) .m_69686b9b{--separator-color:var(--mantine-color-dark-4)}.m_69686b9b:first-of-type:before,[data-mantine-color-scheme] .m_69686b9b[data-active]:before,[data-mantine-color-scheme] .m_69686b9b[data-active]+.m_69686b9b:before{--separator-color:transparent}.m_78882f40{z-index:2;position:relative}.m_fa528724{--scp-filled-segment-color:var(--mantine-primary-color-filled);--scp-transition-duration:0s;--scp-thickness:calc(.75rem * var(--mantine-scale))}:where([data-mantine-color-scheme=light]) .m_fa528724{--scp-empty-segment-color:var(--mantine-color-gray-2)}:where([data-mantine-color-scheme=dark]) .m_fa528724{--scp-empty-segment-color:var(--mantine-color-dark-4)}.m_fa528724{width:fit-content;position:relative}.m_62e9e7e2{transform:var(--scp-rotation);display:block;overflow:hidden}.m_c573fb6f{transition:stroke-dashoffset var(--scp-transition-duration) ease, stroke-dasharray var(--scp-transition-duration) ease, stroke-opacity var(--scp-transition-duration) ease, stroke var(--scp-transition-duration)}.m_4fa340f2{text-align:center;z-index:1;margin:0;padding:0;position:absolute;inset-inline:0}.m_4fa340f2:where([data-position=bottom]){padding-inline:calc(var(--scp-thickness) * 2);bottom:0}.m_4fa340f2:where([data-position=bottom]):where([data-orientation=down]){top:0;bottom:auto}.m_4fa340f2:where([data-position=center]){padding-inline:calc(var(--scp-thickness) * 3);top:50%;transform:translateY(-50%)}.m_925c2d2c{container:simple-grid/inline-size}.m_2415a157{grid-template-columns:repeat(var(--sg-cols), minmax(0, 1fr));grid-auto-rows:var(--sg-auto-rows,auto);gap:var(--sg-spacing-y) var(--sg-spacing-x);display:grid}.m_2415a157[data-auto-cols=auto-fill]{grid-template-columns:repeat(auto-fill, minmax(var(--sg-min-col-width), 1fr))}.m_2415a157[data-auto-cols=auto-fit]{grid-template-columns:repeat(auto-fit, minmax(var(--sg-min-col-width), 1fr))}@keyframes m_299c329c{0%,to{opacity:.4}50%{opacity:1}}.m_18320242{height:var(--skeleton-height,auto);width:var(--skeleton-width,100%);border-radius:var(--skeleton-radius,var(--mantine-radius-default));position:relative;transform:translateZ(0)}.m_18320242:where([data-animate]):after{animation:1.5s linear infinite m_299c329c}.m_18320242:where([data-visible]){overflow:hidden}.m_18320242:where([data-visible]):before{content:"";z-index:10;background-color:var(--mantine-color-body);position:absolute;inset:0}.m_18320242:where([data-visible]):after{content:"";z-index:11;position:absolute;inset:0}:where([data-mantine-color-scheme=light]) .m_18320242:where([data-visible]):after{background-color:var(--mantine-color-gray-3)}:where([data-mantine-color-scheme=dark]) .m_18320242:where([data-visible]):after{background-color:var(--mantine-color-dark-4)}.m_dd36362e{--slider-size-xs:calc(.25rem * var(--mantine-scale));--slider-size-sm:calc(.375rem * var(--mantine-scale));--slider-size-md:calc(.5rem * var(--mantine-scale));--slider-size-lg:calc(.625rem * var(--mantine-scale));--slider-size-xl:calc(.75rem * var(--mantine-scale));--slider-size:var(--slider-size-md);--slider-radius:calc(62.5rem * var(--mantine-scale));--slider-color:var(--mantine-primary-color-filled);--slider-track-disabled-bg:var(--mantine-color-disabled);-webkit-tap-highlight-color:transparent;height:calc(var(--slider-size) * 2);padding-inline:var(--slider-size);touch-action:none;outline:none;flex-direction:column;align-items:center;display:flex;position:relative}[data-mantine-color-scheme=light] .m_dd36362e{--slider-track-bg:var(--mantine-color-gray-2)}[data-mantine-color-scheme=dark] .m_dd36362e{--slider-track-bg:var(--mantine-color-dark-4)}.m_dd36362e[data-orientation=vertical]{width:calc(var(--slider-size) * 2);height:calc(12.5rem * var(--mantine-scale));padding-inline:0;padding-block:var(--slider-size)}.m_c9357328{top:calc(-2.25rem * var(--mantine-scale));font-size:var(--mantine-font-size-xs);color:var(--mantine-color-white);padding:calc(var(--mantine-spacing-xs) / 2);border-radius:var(--mantine-radius-sm);white-space:nowrap;pointer-events:none;-webkit-user-select:none;user-select:none;touch-action:none;position:absolute}:where([data-mantine-color-scheme=light]) .m_c9357328{background-color:var(--mantine-color-gray-9)}:where([data-mantine-color-scheme=dark]) .m_c9357328{background-color:var(--mantine-color-dark-4)}:where(.m_dd36362e[data-orientation=vertical]) .m_c9357328{top:auto;inset-inline-start:calc(100% + 8px)}.m_c9a9a60a{height:var(--slider-thumb-size);width:var(--slider-thumb-size);border:calc(.25rem * var(--mantine-scale)) solid;cursor:pointer;border-radius:var(--slider-radius);z-index:3;-webkit-user-select:none;user-select:none;touch-action:none;outline-offset:calc(.125rem * var(--mantine-scale));top:50%;left:var(--slider-thumb-offset);justify-content:center;align-items:center;transition:box-shadow .1s,transform .1s;display:flex;position:absolute;transform:translate(-50%,-50%)}:where([dir=rtl]) .m_c9a9a60a{left:auto;right:calc(var(--slider-thumb-offset) - var(--slider-thumb-size))}fieldset:disabled .m_c9a9a60a,.m_c9a9a60a:where([data-disabled]){display:none}.m_c9a9a60a:where([data-dragging]){box-shadow:var(--mantine-shadow-sm);transform:translate(-50%,-50%)scale(1.05)}:where([data-mantine-color-scheme=light]) .m_c9a9a60a{color:var(--slider-color);border-color:var(--slider-color);background-color:var(--mantine-color-white)}:where([data-mantine-color-scheme=dark]) .m_c9a9a60a{color:var(--mantine-color-white);border-color:var(--mantine-color-white);background-color:var(--slider-color)}:where(.m_dd36362e[data-orientation=vertical]) .m_c9a9a60a{top:auto;left:50%;right:auto;bottom:var(--slider-thumb-offset);transform:translate(-50%,50%)}:where(.m_dd36362e[data-orientation=vertical]) .m_c9a9a60a:where([data-dragging]){transform:translate(-50%,50%)scale(1.05)}:where([dir=rtl]) :where(.m_dd36362e[data-orientation=vertical]) .m_c9a9a60a{left:50%;right:auto}.m_a8645c2{width:100%;height:calc(var(--slider-size) * 2);cursor:pointer;align-items:center;display:flex}fieldset:disabled .m_a8645c2,.m_a8645c2:where([data-disabled]){cursor:not-allowed}:where(.m_dd36362e[data-orientation=vertical]) .m_a8645c2{width:calc(var(--slider-size) * 2);flex-direction:column;height:100%}.m_c9ade57f{width:100%;height:var(--slider-size);position:relative}.m_c9ade57f:where([data-inverted]:not([data-disabled])){--track-bg:var(--slider-color)}fieldset:disabled .m_c9ade57f:where([data-inverted]),.m_c9ade57f:where([data-inverted][data-disabled]){--track-bg:var(--slider-track-disabled-bg)}.m_c9ade57f:before{content:"";border-radius:var(--slider-radius);top:0;bottom:0;inset-inline:calc(var(--slider-size) * -1);background-color:var(--track-bg,var(--slider-track-bg));z-index:0;position:absolute}:where(.m_dd36362e[data-orientation=vertical]) .m_c9ade57f{width:var(--slider-size);height:100%}:where(.m_dd36362e[data-orientation=vertical]) .m_c9ade57f:before{inset-inline:0;top:calc(var(--slider-size) * -1);bottom:calc(var(--slider-size) * -1)}.m_38aeed47{z-index:1;background-color:var(--slider-color);border-radius:var(--slider-radius);width:var(--slider-bar-width);top:0;bottom:0;position:absolute;inset-inline-start:var(--slider-bar-offset)}.m_38aeed47:where([data-inverted]){background-color:var(--slider-track-bg)}fieldset:disabled .m_38aeed47:where(:not([data-inverted])),.m_38aeed47:where([data-disabled]:not([data-inverted])){background-color:var(--mantine-color-disabled-color)}:where(.m_dd36362e[data-orientation=vertical]) .m_38aeed47{top:auto;bottom:var(--slider-bar-offset);width:100%;height:var(--slider-bar-width);inset-inline-start:0}.m_b7b0423a{inset-inline-start:calc(var(--mark-offset) - var(--slider-size) / 2);z-index:2;pointer-events:none;height:0;position:absolute;top:0}:where(.m_dd36362e[data-orientation=vertical]) .m_b7b0423a{inset-inline-start:0;top:auto;bottom:calc(var(--mark-offset) + var(--slider-size) / 2);width:0;height:0}.m_dd33bc19{border:calc(.125rem * var(--mantine-scale)) solid;height:var(--slider-size);width:var(--slider-size);border-radius:calc(62.5rem * var(--mantine-scale));background-color:var(--mantine-color-white);pointer-events:none}:where([data-mantine-color-scheme=light]) .m_dd33bc19{border-color:var(--mantine-color-gray-2)}:where([data-mantine-color-scheme=dark]) .m_dd33bc19{border-color:var(--mantine-color-dark-4)}.m_dd33bc19:where([data-filled]){border-color:var(--slider-color)}.m_dd33bc19:where([data-filled]):where([data-disabled]){border-color:var(--mantine-color-disabled-border)}.m_68c77a5b{transform:translate(calc(-50% + var(--slider-size) / 2), calc(var(--mantine-spacing-xs) / 2));font-size:var(--mantine-font-size-sm);white-space:nowrap;cursor:pointer;-webkit-user-select:none;user-select:none}:where([dir=rtl]) .m_68c77a5b{transform:translate(calc(50% - var(--slider-size) / 2), calc(var(--mantine-spacing-xs) / 2))}:where([data-mantine-color-scheme=light]) .m_68c77a5b{color:var(--mantine-color-gray-6)}:where([data-mantine-color-scheme=dark]) .m_68c77a5b{color:var(--mantine-color-dark-2)}:where(.m_dd36362e[data-orientation=vertical]) .m_68c77a5b{transform:translate(calc(var(--slider-size) + var(--mantine-spacing-xs) / 2), calc(-50% - var(--slider-size) / 2))}.m_19e66008{display:flex}.m_19e66008:where([data-orientation=horizontal]){flex-direction:row}.m_19e66008:where([data-orientation=vertical]){flex-direction:column}.m_19e5428e{flex-grow:0;flex-shrink:1;overflow:auto}.m_27f81bce{flex:0 0 var(--splitter-line-size,calc(.125rem * var(--mantine-scale)));touch-action:none;background-color:var(--splitter-handle-color,var(--mantine-color-body));outline:none;justify-content:center;align-items:center;display:flex;position:relative}.m_27f81bce:where([data-orientation=horizontal]){cursor:col-resize}.m_27f81bce:where([data-orientation=vertical]){cursor:row-resize}.m_22feb770{z-index:1;border-radius:calc(62.5rem * var(--mantine-scale));color:var(--mantine-color-dimmed);justify-content:center;align-items:center;transition:color .1s;display:flex;position:absolute}:where([data-mantine-color-scheme=light]) .m_22feb770{background-color:var(--mantine-color-white);border:calc(.0625rem * var(--mantine-scale)) solid var(--mantine-color-gray-3)}:where([data-mantine-color-scheme=dark]) .m_22feb770{background-color:var(--mantine-color-dark-6);border:calc(.0625rem * var(--mantine-scale)) solid var(--mantine-color-dark-4)}.m_22feb770:where([data-orientation=horizontal]){width:calc(.75rem * var(--mantine-scale));height:calc(3.75rem * var(--mantine-scale))}.m_22feb770:where([data-orientation=vertical]){width:calc(3.75rem * var(--mantine-scale));height:calc(.75rem * var(--mantine-scale))}.m_22feb770>svg{width:100%;height:100%}.m_27f81bce:focus-visible .m_22feb770{box-shadow:0 0 0 calc(.125rem * var(--mantine-scale)) var(--mantine-primary-color-filled)}.m_559cce2d{position:relative}.m_559cce2d:where([data-has-spoiler]){margin-bottom:calc(1.5rem * var(--mantine-scale))}.m_b912df4e{transition:max-height var(--spoiler-transition-duration,.2s) ease;flex-direction:column;display:flex;overflow:hidden}.m_b9131032{inset-inline-start:0;height:calc(1.5rem * var(--mantine-scale));position:absolute;top:100%}.m_6d731127{align-items:var(--stack-align,stretch);justify-content:var(--stack-justify,flex-start);gap:var(--stack-gap,var(--mantine-spacing-md));flex-direction:column;display:flex}.m_cbb4ea7e{--stepper-icon-size-xs:calc(2.125rem * var(--mantine-scale));--stepper-icon-size-sm:calc(2.25rem * var(--mantine-scale));--stepper-icon-size-md:calc(2.625rem * var(--mantine-scale));--stepper-icon-size-lg:calc(3rem * var(--mantine-scale));--stepper-icon-size-xl:calc(3.25rem * var(--mantine-scale));--stepper-icon-size:var(--stepper-icon-size-md);--stepper-color:var(--mantine-primary-color-filled);--stepper-content-padding:var(--mantine-spacing-md);--stepper-spacing:var(--mantine-spacing-md);--stepper-radius:calc(62.5rem * var(--mantine-scale));--stepper-fz:var(--mantine-font-size-md);--stepper-outline-thickness:calc(.125rem * var(--mantine-scale))}[data-mantine-color-scheme=light] .m_cbb4ea7e{--stepper-outline-color:var(--mantine-color-gray-2)}[data-mantine-color-scheme=dark] .m_cbb4ea7e{--stepper-outline-color:var(--mantine-color-dark-5)}.m_aaf89d0b{flex-wrap:nowrap;align-items:center;display:flex}.m_aaf89d0b:where([data-wrap]){gap:var(--mantine-spacing-md) 0;flex-wrap:wrap}.m_aaf89d0b:where([data-orientation=vertical]){flex-direction:column}.m_aaf89d0b:where([data-orientation=vertical]):where([data-icon-position=left]){align-items:flex-start}.m_aaf89d0b:where([data-orientation=vertical]):where([data-icon-position=right]){align-items:flex-end}.m_aaf89d0b:where([data-orientation=horizontal]){flex-direction:row}.m_2a371ac9{height:var(--stepper-outline-thickness);margin-inline:var(--mantine-spacing-md);background-color:var(--stepper-outline-color);flex:1;transition:background-color .15s}.m_2a371ac9:where([data-active]){background-color:var(--stepper-color)}.m_78da155d{padding-top:var(--stepper-content-padding)}.m_cbb57068{--step-color:var(--stepper-color);cursor:default;display:flex}.m_cbb57068:where([data-allow-click]){cursor:pointer}.m_cbb57068:where([data-icon-position=left]){flex-direction:row}.m_cbb57068:where([data-icon-position=right]){flex-direction:row-reverse}.m_f56b1e2c{align-items:center}.m_833edb7e{--separator-spacing:calc(var(--mantine-spacing-xs) / 2);min-height:calc(var(--stepper-icon-size) + var(--mantine-spacing-xl) + var(--separator-spacing));margin-top:var(--separator-spacing);justify-content:flex-start;overflow:hidden}.m_833edb7e:where(:first-of-type){margin-top:0}.m_833edb7e:where(:last-of-type){min-height:auto}.m_833edb7e:where(:last-of-type) .m_6496b3f3{display:none}.m_818e70b{position:relative}.m_6496b3f3{top:calc(var(--stepper-icon-size) + var(--separator-spacing));border-inline-start:var(--stepper-outline-thickness) solid var(--stepper-outline-color);height:100vh;position:absolute;inset-inline-start:calc(var(--stepper-icon-size) / 2)}.m_6496b3f3:where([data-active]){border-color:var(--stepper-color)}.m_1959ad01{height:var(--stepper-icon-size);width:var(--stepper-icon-size);min-height:var(--stepper-icon-size);min-width:var(--stepper-icon-size);border-radius:var(--stepper-radius);font-size:var(--stepper-fz);border:var(--stepper-outline-thickness) solid var(--stepper-outline-color);background-color:var(--stepper-outline-color);justify-content:center;align-items:center;font-weight:700;transition:background-color .15s,border-color .15s;display:flex;position:relative}:where([data-mantine-color-scheme=light]) .m_1959ad01{color:var(--mantine-color-gray-7)}:where([data-mantine-color-scheme=dark]) .m_1959ad01{color:var(--mantine-color-dark-1)}.m_1959ad01:where([data-progress]){border-color:var(--step-color)}.m_1959ad01:where([data-completed]){color:var(--stepper-icon-color,var(--mantine-color-white));background-color:var(--step-color);border-color:var(--step-color)}.m_8faaac38{display:flex}.m_a79331dc{color:var(--stepper-icon-color,var(--mantine-color-white));justify-content:center;align-items:center;display:flex;position:absolute;inset:0}.m_1956aa2a{flex-direction:column;display:flex}.m_1956aa2a:where([data-icon-position=left]){margin-inline-start:var(--mantine-spacing-sm)}.m_1956aa2a:where([data-icon-position=right]){text-align:end;margin-inline-end:var(--mantine-spacing-sm)}.m_12051f6c{font-weight:var(--mantine-font-weight-medium);font-size:var(--stepper-fz);line-height:1}.m_164eea74{margin-top:calc(var(--stepper-spacing) / 3);margin-bottom:calc(var(--stepper-spacing) / 3);font-size:calc(var(--stepper-fz) - calc(.125rem * var(--mantine-scale)));color:var(--mantine-color-dimmed);line-height:1}.m_5f93f3bb{--switch-height-xs:calc(1rem * var(--mantine-scale));--switch-height-sm:calc(1.25rem * var(--mantine-scale));--switch-height-md:calc(1.5rem * var(--mantine-scale));--switch-height-lg:calc(1.875rem * var(--mantine-scale));--switch-height-xl:calc(2.25rem * var(--mantine-scale));--switch-width-xs:calc(2rem * var(--mantine-scale));--switch-width-sm:calc(2.375rem * var(--mantine-scale));--switch-width-md:calc(2.875rem * var(--mantine-scale));--switch-width-lg:calc(3.5rem * var(--mantine-scale));--switch-width-xl:calc(4.5rem * var(--mantine-scale));--switch-thumb-size-xs:calc(.75rem * var(--mantine-scale));--switch-thumb-size-sm:calc(.875rem * var(--mantine-scale));--switch-thumb-size-md:calc(1.125rem * var(--mantine-scale));--switch-thumb-size-lg:calc(1.375rem * var(--mantine-scale));--switch-thumb-size-xl:calc(1.75rem * var(--mantine-scale));--switch-label-font-size-xs:calc(.3125rem * var(--mantine-scale));--switch-label-font-size-sm:calc(.375rem * var(--mantine-scale));--switch-label-font-size-md:calc(.4375rem * var(--mantine-scale));--switch-label-font-size-lg:calc(.5625rem * var(--mantine-scale));--switch-label-font-size-xl:calc(.6875rem * var(--mantine-scale));--switch-track-label-padding-xs:calc(.125rem * var(--mantine-scale));--switch-track-label-padding-sm:calc(.15625rem * var(--mantine-scale));--switch-track-label-padding-md:calc(.1875rem * var(--mantine-scale));--switch-track-label-padding-lg:calc(.1875rem * var(--mantine-scale));--switch-track-label-padding-xl:calc(.21875rem * var(--mantine-scale));--switch-height:var(--switch-height-sm);--switch-width:var(--switch-width-sm);--switch-thumb-size:var(--switch-thumb-size-sm);--switch-label-font-size:var(--switch-label-font-size-sm);--switch-track-label-padding:var(--switch-track-label-padding-sm);--switch-radius:calc(62.5rem * var(--mantine-scale));--switch-color:var(--mantine-primary-color-filled);--switch-disabled-color:var(--mantine-color-disabled);position:relative}.m_926b4011{opacity:0;white-space:nowrap;width:100%;height:100%;margin:0;padding:0;position:absolute;overflow:hidden}.m_9307d992{-webkit-tap-highlight-color:transparent;cursor:var(--switch-cursor,var(--mantine-cursor-type));border-radius:var(--switch-radius);background-color:var(--switch-bg);height:var(--switch-height);min-width:var(--switch-width);appearance:none;font-size:var(--switch-label-font-size);font-weight:var(--mantine-font-weight-medium);order:var(--switch-order,1);-webkit-user-select:none;user-select:none;z-index:0;color:var(--switch-text-color);align-items:center;margin:0;line-height:0;transition:background-color .15s,border-color .15s;display:flex;position:relative;overflow:hidden}.m_9307d992:where([data-without-labels]){width:var(--switch-width)}.m_926b4011:focus-visible+.m_9307d992{outline:2px solid var(--mantine-primary-color-filled);outline-offset:calc(.125rem * var(--mantine-scale))}.m_926b4011:checked+.m_9307d992{--switch-bg:var(--switch-color);--switch-text-color:var(--mantine-color-white)}.m_926b4011:disabled+.m_9307d992,.m_926b4011[data-disabled]+.m_9307d992{--switch-bg:var(--switch-disabled-color);--switch-cursor:not-allowed}[data-mantine-color-scheme=light] .m_9307d992{--switch-bg:var(--mantine-color-gray-3);--switch-text-color:var(--mantine-color-gray-6)}[data-mantine-color-scheme=dark] .m_9307d992{--switch-bg:var(--mantine-color-dark-5);--switch-text-color:var(--mantine-color-dark-1)}.m_9307d992[data-label-position=left]{--switch-order:2}.m_93039a1d{z-index:1;border-radius:var(--switch-radius);background-color:var(--switch-thumb-bg,var(--mantine-color-white));height:var(--switch-thumb-size);width:var(--switch-thumb-size);transition:inset-inline-start .15s;display:flex;position:absolute;inset-inline-start:var(--switch-thumb-start,var(--switch-track-label-padding))}.m_93039a1d:where([data-with-thumb-indicator]):before{content:"";background-color:var(--switch-bg);border-radius:var(--switch-radius);width:40%;height:40%;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.m_93039a1d>*{margin:auto}.m_926b4011:checked+*>.m_93039a1d{--switch-thumb-start:calc(100% - var(--switch-thumb-size) - var(--switch-track-label-padding))}.m_926b4011:disabled+*>.m_93039a1d,.m_926b4011[data-disabled]+*>.m_93039a1d{--switch-thumb-bg:var(--switch-thumb-bg-disabled)}[data-mantine-color-scheme=light] .m_93039a1d{--switch-thumb-bg-disabled:var(--mantine-color-gray-0)}[data-mantine-color-scheme=dark] .m_93039a1d{--switch-thumb-bg-disabled:var(--mantine-color-dark-3)}.m_8277e082{height:100%;min-width:calc(var(--switch-width) - var(--switch-thumb-size));padding-inline:var(--switch-track-label-padding);place-content:center;margin-inline-start:calc(var(--switch-thumb-size) + var(--switch-track-label-padding));transition:margin .15s;display:grid}.m_926b4011:checked+*>.m_8277e082{margin-inline-start:0;margin-inline-end:calc(var(--switch-thumb-size) + var(--switch-track-label-padding))}.m_b23fa0ef{border-collapse:collapse;border-spacing:0;width:100%;line-height:var(--mantine-line-height);font-size:var(--mantine-font-size-sm);table-layout:var(--table-layout,auto);caption-side:var(--table-caption-side,bottom);border:none}:where([data-mantine-color-scheme=light]) .m_b23fa0ef{--table-hover-color:var(--mantine-color-gray-1);--table-striped-color:var(--mantine-color-gray-0);--table-border-color:var(--mantine-color-gray-3)}:where([data-mantine-color-scheme=dark]) .m_b23fa0ef{--table-hover-color:var(--mantine-color-dark-5);--table-striped-color:var(--mantine-color-dark-6);--table-border-color:var(--mantine-color-dark-4)}.m_b23fa0ef:where([data-with-table-border]){border:calc(.0625rem * var(--mantine-scale)) solid var(--table-border-color)}.m_b23fa0ef:where([data-tabular-nums]){font-variant-numeric:tabular-nums}.m_b23fa0ef:where([data-variant=vertical]) :where(.m_4e7aa4f3){font-weight:var(--mantine-font-weight-medium)}:where([data-mantine-color-scheme=light]) .m_b23fa0ef:where([data-variant=vertical]) :where(.m_4e7aa4f3){background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_b23fa0ef:where([data-variant=vertical]) :where(.m_4e7aa4f3){background-color:var(--mantine-color-dark-6)}.m_4e7aa4f3{text-align:start}.m_4e7aa4fd{background-color:#0000;border-bottom:none}@media (hover:hover){.m_4e7aa4fd:hover:where([data-hover]){background-color:var(--tr-hover-bg)}}@media (hover:none){.m_4e7aa4fd:active:where([data-hover]){background-color:var(--tr-hover-bg)}}.m_4e7aa4fd:where([data-with-row-border]){border-bottom:calc(.0625rem * var(--mantine-scale)) solid var(--table-border-color)}.m_4e7aa4ef,.m_4e7aa4f3{padding:var(--table-vertical-spacing) var(--table-horizontal-spacing,var(--mantine-spacing-xs))}.m_4e7aa4ef:where([data-with-column-border]:not(:first-child)),.m_4e7aa4f3:where([data-with-column-border]:not(:first-child)){border-inline-start:calc(.0625rem * var(--mantine-scale)) solid var(--table-border-color)}.m_4e7aa4ef:where([data-with-column-border]:not(:last-child)),.m_4e7aa4f3:where([data-with-column-border]:not(:last-child)){border-inline-end:calc(.0625rem * var(--mantine-scale)) solid var(--table-border-color)}.m_b2404537>:where(tr):where([data-with-row-border]:last-of-type){border-bottom:none}.m_b2404537>:where(tr):where([data-striped=odd]:nth-of-type(odd)),.m_b2404537>:where(tr):where([data-striped=even]:nth-of-type(2n)){background-color:var(--table-striped-color)}.m_b2404537>:where(tr)[data-hover]{--tr-hover-bg:var(--table-highlight-on-hover-color,var(--table-hover-color))}.m_b242d975{top:var(--table-sticky-header-offset,0);z-index:3}.m_b242d975:where([data-sticky]){position:sticky}.m_b242d975:where([data-sticky]) :where(.m_4e7aa4f3){top:var(--table-sticky-header-offset,0);background-color:var(--mantine-color-body);position:sticky}.m_b242d975:where([data-sticky]) :where(.m_4e7aa4fd[data-with-row-border]){border-bottom:none}.m_b242d975:where([data-sticky]) :where(.m_4e7aa4fd[data-with-row-border]) :where(.m_4e7aa4f3){box-shadow:inset 0 -1px 0 var(--table-border-color)}.m_b242d975:where([data-sticky]) :where(.m_4e7aa4f3[data-with-column-border]){border-inline:none}.m_b242d975:where([data-sticky]) :where(.m_4e7aa4f3[data-with-column-border]:not(:first-child)):before{content:"";width:calc(.0625rem * var(--mantine-scale));background-color:var(--table-border-color);position:absolute;inset-block:0;inset-inline-start:calc(-.03125rem * var(--mantine-scale))}:where([data-with-table-border]) .m_b242d975[data-sticky]{top:var(--table-sticky-header-offset,0);z-index:4;border-top:none;position:sticky}:where([data-with-table-border]) .m_b242d975[data-sticky]:before{content:"";left:0;top:calc(-.03125rem * var(--mantine-scale));width:100%;height:calc(.0625rem * var(--mantine-scale));background-color:var(--table-border-color);z-index:5;display:block;position:absolute}:where([data-with-table-border]) .m_b242d975[data-sticky] .m_4e7aa4f3:first-child{border-top:none}.m_9e5a3ac7{color:var(--mantine-color-dimmed)}.m_9e5a3ac7:where([data-side=top]){margin-bottom:var(--mantine-spacing-xs)}.m_9e5a3ac7:where([data-side=bottom]){margin-top:var(--mantine-spacing-xs)}.m_a100c15{overflow-x:var(--table-overflow)}.m_62259741{min-width:var(--table-min-width);max-height:var(--table-max-height)}.m_bcaa9990{--toc-depth-offset:.8em;flex-direction:column;display:flex}.m_375a65ef{font-size:var(--toc-size,var(--mantine-font-size-md));border-radius:var(--toc-radius,var(--mantine-radius-default));padding:.3em .8em;padding-left:max(calc(var(--depth-offset) * var(--toc-depth-offset)), .8em);display:block}@media (hover:hover){:where([data-mantine-color-scheme=light]) .m_375a65ef:where(:hover):where(:not([data-variant=none])){background-color:var(--mantine-color-gray-1)}:where([data-mantine-color-scheme=dark]) .m_375a65ef:where(:hover):where(:not([data-variant=none])){background-color:var(--mantine-color-dark-5)}}@media (hover:none){:where([data-mantine-color-scheme=light]) .m_375a65ef:where(:active):where(:not([data-variant=none])){background-color:var(--mantine-color-gray-1)}:where([data-mantine-color-scheme=dark]) .m_375a65ef:where(:active):where(:not([data-variant=none])){background-color:var(--mantine-color-dark-5)}}.m_375a65ef:where([data-active]){background-color:var(--toc-bg);color:var(--toc-color)}[data-mantine-color-scheme=light] .m_89d60db1{--tab-border-color:var(--mantine-color-gray-3)}[data-mantine-color-scheme=dark] .m_89d60db1{--tab-border-color:var(--mantine-color-dark-4)}.m_89d60db1{display:var(--tabs-display);flex-direction:var(--tabs-flex-direction);--tabs-list-direction:row;--tabs-panel-grow:unset;--tabs-display:block;--tabs-flex-direction:row;--tabs-list-border-width:0;--tabs-list-border-size:0 0 var(--tabs-list-border-width) 0;--tabs-list-gap:unset;--tabs-list-line-bottom:0;--tabs-list-line-top:unset;--tabs-list-line-start:0;--tabs-list-line-end:0;--tab-radius:var(--tabs-radius) var(--tabs-radius) 0 0;--tab-border-width:0 0 var(--tabs-list-border-width) 0}.m_89d60db1[data-inverted]{--tabs-list-line-bottom:unset;--tabs-list-line-top:0;--tab-radius:0 0 var(--tabs-radius) var(--tabs-radius);--tab-border-width:var(--tabs-list-border-width) 0 0 0}.m_89d60db1[data-inverted] .m_576c9d4:before{top:0;bottom:unset}.m_89d60db1[data-orientation=vertical]{--tabs-list-line-start:unset;--tabs-list-line-end:0;--tabs-list-line-top:0;--tabs-list-line-bottom:0;--tabs-list-border-size:0 var(--tabs-list-border-width) 0 0;--tab-border-width:0 var(--tabs-list-border-width) 0 0;--tab-radius:var(--tabs-radius) 0 0 var(--tabs-radius);--tabs-list-direction:column;--tabs-panel-grow:1;--tabs-display:flex}[dir=rtl] .m_89d60db1[data-orientation=vertical]{--tabs-list-border-size:0 0 0 var(--tabs-list-border-width);--tab-border-width:0 0 0 var(--tabs-list-border-width);--tab-radius:0 var(--tabs-radius) var(--tabs-radius) 0}.m_89d60db1[data-orientation=vertical][data-placement=right]{--tabs-flex-direction:row-reverse;--tabs-list-line-start:0;--tabs-list-line-end:unset;--tabs-list-border-size:0 0 0 var(--tabs-list-border-width);--tab-border-width:0 0 0 var(--tabs-list-border-width);--tab-radius:0 var(--tabs-radius) var(--tabs-radius) 0}[dir=rtl] .m_89d60db1[data-orientation=vertical][data-placement=right]{--tabs-list-border-size:0 var(--tabs-list-border-width) 0 0;--tab-border-width:0 var(--tabs-list-border-width) 0 0;--tab-radius:var(--tabs-radius) 0 0 var(--tabs-radius)}.m_89d60db1[data-variant=default]{--tabs-list-border-width:calc(.125rem * var(--mantine-scale))}[data-mantine-color-scheme=light] .m_89d60db1[data-variant=default]{--tab-hover-color:var(--mantine-color-gray-0)}[data-mantine-color-scheme=dark] .m_89d60db1[data-variant=default]{--tab-hover-color:var(--mantine-color-dark-6)}.m_89d60db1[data-variant=outline]{--tabs-list-border-width:calc(.0625rem * var(--mantine-scale))}.m_89d60db1[data-variant=pills]{--tabs-list-gap:calc(var(--mantine-spacing-sm) / 2)}[data-mantine-color-scheme=light] .m_89d60db1[data-variant=pills]{--tab-hover-color:var(--mantine-color-gray-0)}[data-mantine-color-scheme=dark] .m_89d60db1[data-variant=pills]{--tab-hover-color:var(--mantine-color-dark-6)}.m_89d33d6d{justify-content:var(--tabs-justify,flex-start);flex-wrap:wrap;flex-direction:var(--tabs-list-direction);gap:var(--tabs-list-gap);display:flex}.m_89d33d6d:where([data-grow]) .m_4ec4dce6{flex:1}.m_b0c91715{flex-grow:var(--tabs-panel-grow)}.m_4ec4dce6{padding:var(--mantine-spacing-xs) var(--mantine-spacing-md);font-size:var(--mantine-font-size-sm);white-space:nowrap;z-index:0;-webkit-user-select:none;user-select:none;align-items:center;line-height:1;display:flex;position:relative}.m_4ec4dce6:where(:disabled,[data-disabled]){opacity:.5;cursor:not-allowed}.m_4ec4dce6:focus{z-index:1}.m_fc420b1f{justify-content:center;align-items:center;display:flex}.m_fc420b1f:where([data-position=left]:not(:only-child)){margin-inline-end:var(--mantine-spacing-xs)}.m_fc420b1f:where([data-position=right]:not(:only-child)){margin-inline-start:var(--mantine-spacing-xs)}.m_42bbd1ae{text-align:center;flex:1}.m_576c9d4{position:relative}.m_576c9d4:before{content:"";border:1px solid var(--tab-border-color);bottom:var(--tabs-list-line-bottom);inset-inline-start:var(--tabs-list-line-start);inset-inline-end:var(--tabs-list-line-end);top:var(--tabs-list-line-top);position:absolute}.m_539e827b{border-radius:var(--tab-radius);border-width:var(--tab-border-width);background-color:#0000;border-style:solid;border-color:#0000}.m_539e827b:where([data-active]){border-color:var(--tabs-color)}@media (hover:hover){.m_539e827b:hover{background-color:var(--tab-hover-color)}.m_539e827b:hover:where(:not([data-active])){border-color:var(--tab-border-color)}}@media (hover:none){.m_539e827b:active{background-color:var(--tab-hover-color)}.m_539e827b:active:where(:not([data-active])){border-color:var(--tab-border-color)}}@media (hover:hover){.m_539e827b:disabled:hover,.m_539e827b[data-disabled]:hover{background-color:#0000}}@media (hover:none){.m_539e827b:disabled:active,.m_539e827b[data-disabled]:active{background-color:#0000}}.m_6772fbd5{position:relative}.m_6772fbd5:before{content:"";border-color:var(--tab-border-color);border-width:var(--tabs-list-border-size);bottom:var(--tabs-list-line-bottom);inset-inline-start:var(--tabs-list-line-start);inset-inline-end:var(--tabs-list-line-end);top:var(--tabs-list-line-top);border-style:solid;position:absolute}.m_b59ab47c{border-top:calc(.0625rem * var(--mantine-scale)) solid transparent;border-bottom:calc(.0625rem * var(--mantine-scale)) solid transparent;border-inline:calc(.0625rem * var(--mantine-scale)) solid transparent;border-top-color:var(--tab-border-top-color);border-bottom-color:var(--tab-border-bottom-color);border-radius:var(--tab-radius);--tab-border-bottom-color:transparent;--tab-border-top-color:transparent;--tab-border-inline-end-color:transparent;--tab-border-inline-start-color:transparent;position:relative}.m_b59ab47c:where([data-active]):before{content:"";background-color:var(--tab-border-color);bottom:var(--tab-before-bottom,calc(-.0625rem * var(--mantine-scale)));inset-inline-start:var(--tab-before-start,calc(-.0625rem * var(--mantine-scale)));inset-inline-end:var(--tab-before-end,auto);top:var(--tab-before-top,auto);width:calc(.0625rem * var(--mantine-scale));height:calc(.0625rem * var(--mantine-scale));position:absolute}.m_b59ab47c:where([data-active]):after{content:"";background-color:var(--tab-border-color);bottom:var(--tab-after-bottom,calc(-.0625rem * var(--mantine-scale)));inset-inline-start:var(--tab-after-start,auto);inset-inline-end:var(--tab-after-end,calc(-.0625rem * var(--mantine-scale)));top:var(--tab-after-top,auto);width:calc(.0625rem * var(--mantine-scale));height:calc(.0625rem * var(--mantine-scale));position:absolute}.m_b59ab47c:where([data-active]){border-top-color:var(--tab-border-top-color);border-bottom-color:var(--tab-border-bottom-color);border-inline-start-color:var(--tab-border-inline-start-color);border-inline-end-color:var(--tab-border-inline-end-color);--tab-border-top-color:var(--tab-border-color);--tab-border-inline-start-color:var(--tab-border-color);--tab-border-inline-end-color:var(--tab-border-color);--tab-border-bottom-color:var(--mantine-color-body)}.m_b59ab47c:where([data-active])[data-inverted]{--tab-border-bottom-color:var(--tab-border-color);--tab-border-top-color:var(--mantine-color-body);--tab-before-bottom:auto;--tab-before-top:calc(-.0625rem * var(--mantine-scale));--tab-after-bottom:auto;--tab-after-top:calc(-.0625rem * var(--mantine-scale))}.m_b59ab47c:where([data-active])[data-orientation=vertical][data-placement=left]{--tab-border-inline-end-color:var(--mantine-color-body);--tab-border-inline-start-color:var(--tab-border-color);--tab-border-bottom-color:var(--tab-border-color);--tab-before-end:calc(-.0625rem * var(--mantine-scale));--tab-before-start:auto;--tab-before-bottom:auto;--tab-before-top:calc(-.0625rem * var(--mantine-scale));--tab-after-start:auto;--tab-after-end:calc(-.0625rem * var(--mantine-scale))}.m_b59ab47c:where([data-active])[data-orientation=vertical][data-placement=right]{--tab-border-inline-start-color:var(--mantine-color-body);--tab-border-inline-end-color:var(--tab-border-color);--tab-border-bottom-color:var(--tab-border-color);--tab-before-start:calc(-.0625rem * var(--mantine-scale));--tab-before-end:auto;--tab-before-bottom:auto;--tab-before-top:calc(-.0625rem * var(--mantine-scale));--tab-after-end:auto;--tab-after-start:calc(-.0625rem * var(--mantine-scale))}.m_c3381914{border-radius:var(--tabs-radius);background-color:var(--tab-bg);color:var(--tab-color);--tab-bg:transparent;--tab-color:inherit}@media (hover:hover){.m_c3381914:not([data-disabled]):hover{--tab-bg:var(--tab-hover-color)}}@media (hover:none){.m_c3381914:not([data-disabled]):active{--tab-bg:var(--tab-hover-color)}}.m_c3381914[data-active][data-active]{--tab-bg:var(--tabs-color);--tab-color:var(--tabs-text-color,var(--mantine-color-white))}@media (hover:hover){.m_c3381914[data-active][data-active]:hover{--tab-bg:var(--tabs-color)}}@media (hover:none){.m_c3381914[data-active][data-active]:active{--tab-bg:var(--tabs-color)}}.m_7341320d{--ti-size-xs:calc(1.125rem * var(--mantine-scale));--ti-size-sm:calc(1.375rem * var(--mantine-scale));--ti-size-md:calc(1.75rem * var(--mantine-scale));--ti-size-lg:calc(2.125rem * var(--mantine-scale));--ti-size-xl:calc(2.75rem * var(--mantine-scale));--ti-size:var(--ti-size-md);-webkit-user-select:none;user-select:none;width:var(--ti-size);height:var(--ti-size);min-width:var(--ti-size);min-height:var(--ti-size);border-radius:var(--ti-radius,var(--mantine-radius-default));background:var(--ti-bg,var(--mantine-primary-color-filled));color:var(--ti-color,var(--mantine-color-white));border:var(--ti-bd,1px solid transparent);justify-content:center;align-items:center;line-height:1;display:inline-flex;position:relative}.m_43657ece{--offset:calc(var(--tl-bullet-size) / 2 + var(--tl-line-width) / 2);--tl-bullet-size:calc(1.25rem * var(--mantine-scale));--tl-line-width:calc(.25rem * var(--mantine-scale));--tl-radius:calc(62.5rem * var(--mantine-scale));--tl-color:var(--mantine-primary-color-filled)}.m_43657ece:where(:not([data-opposite])):where([data-align=left]){padding-inline-start:var(--offset)}.m_43657ece:where(:not([data-opposite])):where([data-align=right]){padding-inline-end:var(--offset)}.m_2ebe8099{font-weight:var(--mantine-font-weight-medium);margin-bottom:calc(var(--mantine-spacing-xs) / 2);line-height:1}.m_436178ff{--item-border:var(--tl-line-width) var(--tli-border-style,solid) var(--item-border-color);color:var(--mantine-color-text);position:relative}.m_436178ff:before{content:"";pointer-events:none;top:0;inset-inline-start:var(--timeline-line-start,0);inset-inline-end:var(--timeline-line-end,0);bottom:calc(var(--mantine-spacing-xl) * -1);border-inline-start:var(--item-border);display:var(--timeline-line-display,none);position:absolute}.m_43657ece:where(:not([data-opposite]))[data-align=left] .m_436178ff:before{--timeline-line-start:calc(var(--tl-line-width) * -1);--timeline-line-end:auto}.m_43657ece:where(:not([data-opposite]))[data-align=right] .m_436178ff:before{--timeline-line-start:auto;--timeline-line-end:calc(var(--tl-line-width) * -1)}.m_43657ece:where([data-opposite]) .m_436178ff:before{--timeline-line-start:calc(50% - var(--tl-line-width) / 2);--timeline-line-end:auto}.m_43657ece:where(:not([data-opposite])):where([data-align=left]) .m_436178ff{text-align:start;padding-inline-start:var(--offset)}.m_43657ece:where(:not([data-opposite])):where([data-align=right]) .m_436178ff{text-align:end;padding-inline-end:var(--offset)}.m_43657ece:where([data-opposite]) .m_436178ff{grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);display:grid}:where([data-mantine-color-scheme=light]) .m_436178ff{--item-border-color:var(--mantine-color-gray-3)}:where([data-mantine-color-scheme=dark]) .m_436178ff{--item-border-color:var(--mantine-color-dark-4)}.m_436178ff:where([data-line-active]):before{border-color:var(--tli-color,var(--tl-color))}.m_436178ff:where(:not(:last-of-type)){--timeline-line-display:block}.m_436178ff:where(:not(:first-of-type)){margin-top:var(--mantine-spacing-xl)}.m_8affcee1{width:var(--tl-bullet-size);height:var(--tl-bullet-size);border-radius:var(--tli-radius,var(--tl-radius));border:var(--tl-line-width) solid;background-color:var(--mantine-color-body);color:var(--mantine-color-text);justify-content:center;align-items:center;display:flex;position:absolute;top:0}:where([data-mantine-color-scheme=light]) .m_8affcee1{border-color:var(--mantine-color-gray-3)}:where([data-mantine-color-scheme=dark]) .m_8affcee1{border-color:var(--mantine-color-dark-4)}.m_43657ece:where(:not([data-opposite])):where([data-align=left]) .m_8affcee1{inset-inline-start:calc((var(--tl-bullet-size) / 2 + var(--tl-line-width) / 2) * -1);inset-inline-end:auto}.m_43657ece:where(:not([data-opposite])):where([data-align=right]) .m_8affcee1{inset-inline-start:auto;inset-inline-end:calc((var(--tl-bullet-size) / 2 + var(--tl-line-width) / 2) * -1)}.m_43657ece:where([data-opposite]) .m_8affcee1{grid-area:1/2;position:relative;inset-inline-start:unset;inset-inline-end:unset}.m_8affcee1:where([data-with-child]){border-width:var(--tl-line-width)}:where([data-mantine-color-scheme=light]) .m_8affcee1:where([data-with-child]){background-color:var(--mantine-color-gray-3)}:where([data-mantine-color-scheme=dark]) .m_8affcee1:where([data-with-child]){background-color:var(--mantine-color-dark-4)}.m_8affcee1:where([data-active]){border-color:var(--tli-color,var(--tl-color));background-color:var(--mantine-color-white);color:var(--tl-icon-color,var(--mantine-color-white))}.m_8affcee1:where([data-active]):where([data-with-child]){background-color:var(--tli-color,var(--tl-color));color:var(--tl-icon-color,var(--mantine-color-white))}.m_43657ece:where(:not([data-opposite])):where([data-align=left]) .m_540e8f41{text-align:start;padding-inline-start:var(--offset)}.m_43657ece:where(:not([data-opposite])):where([data-align=right]) .m_540e8f41{text-align:end;padding-inline-end:var(--offset)}.m_43657ece:where([data-opposite]):where([data-align=left]) .m_540e8f41{text-align:start;grid-area:1/3;padding-inline-start:var(--offset)}.m_43657ece:where([data-opposite]):where([data-align=right]) .m_540e8f41{text-align:end;grid-area:1/1;padding-inline-end:var(--offset)}.m_43657ece:where([data-opposite]):where([data-align=left]) .m_436178ff:where([data-alternate]) .m_540e8f41{text-align:end;grid-column:1;padding-inline-start:0;padding-inline-end:var(--offset)}.m_43657ece:where([data-opposite]):where([data-align=right]) .m_436178ff:where([data-alternate]) .m_540e8f41{text-align:start;grid-column:3;padding-inline-start:var(--offset);padding-inline-end:0}.m_43657ece:where([data-align=left]) .m_f3ba506{text-align:end;grid-area:1/1;padding-inline-end:var(--offset)}.m_43657ece:where([data-align=right]) .m_f3ba506{text-align:start;grid-area:1/3;padding-inline-start:var(--offset)}.m_43657ece:where([data-align=left]) .m_436178ff:where([data-alternate]) .m_f3ba506{text-align:start;grid-column:3;padding-inline-start:var(--offset);padding-inline-end:0}.m_43657ece:where([data-align=right]) .m_436178ff:where([data-alternate]) .m_f3ba506{text-align:end;grid-column:1;padding-inline-start:0;padding-inline-end:var(--offset)}.m_8a5d1357{font-weight:var(--title-fw);font-size:var(--title-fz);line-height:var(--title-lh);font-family:var(--mantine-font-family-headings);text-wrap:var(--title-text-wrap,var(--mantine-heading-text-wrap));margin:0}.m_8a5d1357:where([data-line-clamp]){text-overflow:ellipsis;-webkit-line-clamp:var(--title-line-clamp);-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}:where([data-tree-root]){--level-offset:var(--mantine-spacing-lg);--tree-line-width:calc(.0625rem * var(--mantine-scale));--tree-line-color:var(--mantine-color-default-border)}.m_f698e191{-webkit-user-select:none;user-select:none;margin:0;padding:0}.m_75f3ecf{margin:0;padding:0}.m_f6970eb1{cursor:pointer;outline:0;margin:0;padding:0;list-style:none}.m_f6970eb1:focus-visible>.m_dc283425,.m_f6970eb1[data-focus-ring]:focus>.m_dc283425{outline:2px solid var(--mantine-primary-color-filled);outline-offset:calc(.125rem * var(--mantine-scale))}.m_dc283425{padding-inline-start:var(--label-offset);position:relative}:where([data-mantine-color-scheme=light]) .m_dc283425:where([data-selected]){background-color:var(--mantine-color-gray-1)}:where([data-mantine-color-scheme=dark]) .m_dc283425:where([data-selected]){background-color:var(--mantine-color-dark-5)}.m_dc283425:where([data-dragging]){opacity:.4}.m_dc283425:where([data-drag-over=before]):before{content:"";top:calc(-.0625rem * var(--mantine-scale));height:calc(.125rem * var(--mantine-scale));background-color:var(--mantine-primary-color-filled);pointer-events:none;z-index:1;position:absolute;inset-inline-start:var(--label-offset,0);inset-inline-end:0}.m_dc283425:where([data-drag-over=after]):after{content:"";bottom:calc(-.0625rem * var(--mantine-scale));height:calc(.125rem * var(--mantine-scale));background-color:var(--mantine-primary-color-filled);pointer-events:none;z-index:1;position:absolute;inset-inline-start:var(--label-offset,0);inset-inline-end:0}.m_dc283425:where([data-drag-over=inside]){background-color:var(--mantine-primary-color-light)}:where([data-with-lines]) .m_f6970eb1{position:relative}:where([data-with-lines]) .m_f6970eb1:not([data-level="1"]):before{content:"";top:calc(.75rem * var(--mantine-scale));width:calc(var(--level-offset) / 2);border-top:var(--tree-line-width) solid var(--tree-line-color);pointer-events:none;z-index:1;height:0;position:absolute;inset-inline-start:calc(var(--label-offset) - var(--level-offset) / 2)}:where([data-with-lines]) .m_75f3ecf>.m_f6970eb1:after{content:"";top:0;bottom:0;border-inline-start:var(--tree-line-width) solid var(--tree-line-color);pointer-events:none;z-index:1;width:0;position:absolute;inset-inline-start:calc(var(--label-offset) - var(--level-offset) / 2)}:where([data-with-lines]) .m_75f3ecf>.m_f6970eb1:last-child:after{height:calc(.75rem * var(--mantine-scale));bottom:auto}:where([data-with-lines]) .m_f6970eb1:where([data-dragging]):before,:where([data-with-lines]) .m_f6970eb1:where([data-dragging]):after,:where([data-with-lines]) .m_f6970eb1:where([data-dragging]) .m_c03b303c{display:none}.m_c03b303c{width:0;top:0;bottom:0;border-inline-start:var(--tree-line-width) solid var(--tree-line-color);pointer-events:none;z-index:1;display:none;position:absolute;inset-inline-start:calc((var(--flat-line-column) - 1.5) * var(--level-offset))}:where([data-with-lines]) .m_c03b303c{display:block}.m_bf7448d9{height:calc(.75rem * var(--mantine-scale));bottom:auto}.m_529d33e8{--ts-level-offset:calc(1.25rem * var(--mantine-scale));--ts-line-width:calc(.0625rem * var(--mantine-scale));--ts-line-color:var(--mantine-color-default-border);--ts-option-padding-y:calc(.25rem * var(--mantine-scale));--ts-option-padding-x:calc(.5rem * var(--mantine-scale))}.m_28bb748{align-items:center;gap:calc(.375rem * var(--mantine-scale));padding:var(--ts-option-padding-y) var(--ts-option-padding-x);padding-inline-start:var(--ts-option-padding-x);display:flex;position:relative}.m_aa3e3f86{--_ts-expand-icon-size:calc(1.45 * var(--combobox-option-fz,var(--mantine-font-size-sm)));width:var(--_ts-expand-icon-size);min-width:var(--_ts-expand-icon-size);height:var(--_ts-expand-icon-size);border-radius:var(--mantine-radius-sm);cursor:pointer;color:var(--mantine-color-dimmed);justify-content:center;align-items:center;display:flex;transform:rotate(-90deg)}:where([data-combobox-selected]) .m_aa3e3f86{color:var(--mantine-color-white)}:where([dir=rtl]) .m_aa3e3f86{transform:rotate(90deg)}.m_aa3e3f86:where([data-expanded]){transform:rotate(0)}@media (hover:hover){:where([data-mantine-color-scheme=light]) .m_aa3e3f86:hover{background-color:var(--mantine-color-gray-1)}:where([data-mantine-color-scheme=dark]) .m_aa3e3f86:hover{background-color:var(--mantine-color-dark-5)}}@media (hover:none){:where([data-mantine-color-scheme=light]) .m_aa3e3f86:active{background-color:var(--mantine-color-gray-1)}:where([data-mantine-color-scheme=dark]) .m_aa3e3f86:active{background-color:var(--mantine-color-dark-5)}}.m_eaa4cdee{opacity:.4;width:.8em;min-width:.8em;height:.8em;margin-inline-start:auto}:where([data-combobox-selected]) .m_eaa4cdee{opacity:1}.m_ffe3a9c1{text-overflow:ellipsis;white-space:nowrap;flex:1;overflow:hidden}.m_57207d5d,.m_41b9db0b{border-inline-start:var(--ts-line-width) solid var(--ts-line-color);pointer-events:none;width:0;position:absolute;top:0;bottom:0}.m_41b9db0b:where([data-last]){height:50%;bottom:auto}.m_1246e79{border-top:var(--ts-line-width) solid var(--ts-line-color);pointer-events:none;height:0;position:absolute;top:50%}.m_d08caa0 :first-child{margin-top:0}.m_d08caa0 :last-child{margin-bottom:0}.m_d08caa0 :where(h1,h2,h3,h4,h5,h6){margin-bottom:var(--mantine-spacing-xs);text-wrap:var(--mantine-heading-text-wrap);font-family:var(--mantine-font-family-headings)}.m_d08caa0 :where(h1){margin-top:calc(1.5 * var(--mantine-spacing-xl));font-size:var(--mantine-h1-font-size);line-height:var(--mantine-h1-line-height);font-weight:var(--mantine-h1-font-weight)}.m_d08caa0 :where(h2){margin-top:var(--mantine-spacing-xl);font-size:var(--mantine-h2-font-size);line-height:var(--mantine-h2-line-height);font-weight:var(--mantine-h2-font-weight)}.m_d08caa0 :where(h3){margin-top:calc(.8 * var(--mantine-spacing-xl));font-size:var(--mantine-h3-font-size);line-height:var(--mantine-h3-line-height);font-weight:var(--mantine-h3-font-weight)}.m_d08caa0 :where(h4){margin-top:calc(.8 * var(--mantine-spacing-xl));font-size:var(--mantine-h4-font-size);line-height:var(--mantine-h4-line-height);font-weight:var(--mantine-h4-font-weight)}.m_d08caa0 :where(h5){margin-top:calc(.5 * var(--mantine-spacing-xl));font-size:var(--mantine-h5-font-size);line-height:var(--mantine-h5-line-height);font-weight:var(--mantine-h5-font-weight)}.m_d08caa0 :where(h6){margin-top:calc(.5 * var(--mantine-spacing-xl));font-size:var(--mantine-h6-font-size);line-height:var(--mantine-h6-line-height);font-weight:var(--mantine-h6-font-weight)}.m_d08caa0 :where(img){max-width:100%;margin-bottom:var(--mantine-spacing-xs)}.m_d08caa0 :where(p){margin-top:0;margin-bottom:var(--mantine-spacing-lg)}:where([data-mantine-color-scheme=light]) .m_d08caa0 :where(mark){background-color:var(--mantine-color-yellow-2);color:inherit}:where([data-mantine-color-scheme=dark]) .m_d08caa0 :where(mark){background-color:var(--mantine-color-yellow-5);color:var(--mantine-color-black)}.m_d08caa0 :where(a){color:var(--mantine-color-anchor);text-decoration:none}@media (hover:hover){.m_d08caa0 :where(a):hover{text-decoration:underline}}@media (hover:none){.m_d08caa0 :where(a):active{text-decoration:underline}}.m_d08caa0 :where(hr){margin-top:var(--mantine-spacing-md);margin-bottom:var(--mantine-spacing-md);border:0;border-top:calc(.0625rem * var(--mantine-scale)) solid}:where([data-mantine-color-scheme=light]) .m_d08caa0 :where(hr){border-color:var(--mantine-color-gray-3)}:where([data-mantine-color-scheme=dark]) .m_d08caa0 :where(hr){border-color:var(--mantine-color-dark-3)}.m_d08caa0 :where(pre){padding:var(--mantine-spacing-xs);line-height:var(--mantine-line-height);margin:0;margin-top:var(--mantine-spacing-md);margin-bottom:var(--mantine-spacing-md);font-family:var(--mantine-font-family-monospace);font-size:var(--mantine-font-size-xs);border-radius:var(--mantine-radius-sm);overflow-x:auto}:where([data-mantine-color-scheme=light]) .m_d08caa0 :where(pre){background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_d08caa0 :where(pre){background-color:var(--mantine-color-dark-8)}.m_d08caa0 :where(pre) :where(code){color:inherit;background-color:#0000;border:0;border-radius:0;padding:0}.m_d08caa0 :where(kbd){--kbd-fz:calc(.75rem * var(--mantine-scale));--kbd-padding:calc(.1875rem * var(--mantine-scale)) calc(.3125rem * var(--mantine-scale));font-family:var(--mantine-font-family-monospace);line-height:var(--mantine-line-height);font-weight:var(--mantine-font-weight-bold);padding:var(--kbd-padding);font-size:var(--kbd-fz);border-radius:var(--mantine-radius-sm);border:calc(.0625rem * var(--mantine-scale)) solid;border-bottom-width:calc(.1875rem * var(--mantine-scale))}:where([data-mantine-color-scheme=light]) .m_d08caa0 :where(kbd){border-color:var(--mantine-color-gray-3);color:var(--mantine-color-gray-7);background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_d08caa0 :where(kbd){border-color:var(--mantine-color-dark-3);color:var(--mantine-color-dark-0);background-color:var(--mantine-color-dark-5)}.m_d08caa0 :where(code){line-height:var(--mantine-line-height);padding:calc(.0625rem * var(--mantine-scale)) calc(.3125rem * var(--mantine-scale));border-radius:var(--mantine-radius-sm);font-family:var(--mantine-font-family-monospace);font-size:var(--mantine-font-size-xs)}:where([data-mantine-color-scheme=light]) .m_d08caa0 :where(code){background-color:var(--mantine-color-gray-0);color:var(--mantine-color-black)}:where([data-mantine-color-scheme=dark]) .m_d08caa0 :where(code){background-color:var(--mantine-color-dark-5);color:var(--mantine-color-white)}.m_d08caa0 :where(ul,ol):not([data-type=taskList]){margin-bottom:var(--mantine-spacing-md);padding-inline-start:var(--mantine-spacing-xl);list-style-position:outside}.m_d08caa0 :where(table){border-collapse:collapse;caption-side:bottom;width:100%;margin-bottom:var(--mantine-spacing-md)}:where([data-mantine-color-scheme=light]) .m_d08caa0 :where(table){--table-border-color:var(--mantine-color-gray-3)}:where([data-mantine-color-scheme=dark]) .m_d08caa0 :where(table){--table-border-color:var(--mantine-color-dark-4)}.m_d08caa0 :where(table) :where(caption){margin-top:var(--mantine-spacing-xs);font-size:var(--mantine-font-size-sm);color:var(--mantine-color-dimmed)}.m_d08caa0 :where(table) :where(th){text-align:start;font-weight:700;font-size:var(--mantine-font-size-sm);padding:var(--mantine-spacing-xs) var(--mantine-spacing-sm)}.m_d08caa0 :where(table) :where(thead th){border-bottom:calc(.0625rem * var(--mantine-scale)) solid;border-color:var(--table-border-color)}.m_d08caa0 :where(table) :where(tfoot th){border-top:calc(.0625rem * var(--mantine-scale)) solid;border-color:var(--table-border-color)}.m_d08caa0 :where(table) :where(td){padding:var(--mantine-spacing-xs) var(--mantine-spacing-sm);border-bottom:calc(.0625rem * var(--mantine-scale)) solid;border-color:var(--table-border-color);font-size:var(--mantine-font-size-sm)}.m_d08caa0 :where(table) :where(tr:last-of-type td){border-bottom:0}.m_d08caa0 :where(blockquote){font-size:var(--mantine-font-size-lg);line-height:var(--mantine-line-height);margin:var(--mantine-spacing-md) 0;border-radius:var(--mantine-radius-sm);padding:var(--mantine-spacing-md) var(--mantine-spacing-lg)}:where([data-mantine-color-scheme=light]) .m_d08caa0 :where(blockquote){background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_d08caa0 :where(blockquote){background-color:var(--mantine-color-dark-8)}.react-grid-layout{transition:height .2s;position:relative}.react-grid-item{transition:left .2s,top .2s,width .2s,height .2s}.react-grid-item img{pointer-events:none;-webkit-user-select:none;user-select:none}.react-grid-item.cssTransforms{transition-property:transform,width,height}.react-grid-item.resizing{z-index:1;will-change:width, height;transition:none}.react-grid-item.react-draggable-dragging{z-index:3;will-change:transform;transition:none}.react-grid-item.dropping{visibility:hidden}.react-grid-item.react-grid-placeholder{opacity:.2;z-index:2;-webkit-user-select:none;user-select:none;background:red;transition-duration:.1s}.react-grid-item.react-grid-placeholder.placeholder-resizing{transition:none}.react-grid-item>.react-resizable-handle{opacity:0;width:20px;height:20px;position:absolute}.react-grid-item:hover>.react-resizable-handle{opacity:1}.react-grid-item>.react-resizable-handle:after{content:"";border-bottom:2px solid #0006;border-right:2px solid #0006;width:5px;height:5px;position:absolute;bottom:3px;right:3px}.react-resizable-hide>.react-resizable-handle{display:none}.react-grid-item>.react-resizable-handle.react-resizable-handle-sw{cursor:sw-resize;bottom:0;left:0;transform:rotate(90deg)}.react-grid-item>.react-resizable-handle.react-resizable-handle-se{cursor:se-resize;bottom:0;right:0}.react-grid-item>.react-resizable-handle.react-resizable-handle-nw{cursor:nw-resize;top:0;left:0;transform:rotate(180deg)}.react-grid-item>.react-resizable-handle.react-resizable-handle-ne{cursor:ne-resize;top:0;right:0;transform:rotate(270deg)}.react-grid-item>.react-resizable-handle.react-resizable-handle-w,.react-grid-item>.react-resizable-handle.react-resizable-handle-e{cursor:ew-resize;margin-top:-10px;top:50%}.react-grid-item>.react-resizable-handle.react-resizable-handle-w{left:0;transform:rotate(135deg)}.react-grid-item>.react-resizable-handle.react-resizable-handle-e{right:0;transform:rotate(315deg)}.react-grid-item>.react-resizable-handle.react-resizable-handle-n,.react-grid-item>.react-resizable-handle.react-resizable-handle-s{cursor:ns-resize;margin-left:-10px;left:50%}.react-grid-item>.react-resizable-handle.react-resizable-handle-n{top:0;transform:rotate(225deg)}.react-grid-item>.react-resizable-handle.react-resizable-handle-s{bottom:0;transform:rotate(45deg)}.react-resizable{position:relative}.react-resizable-handle{box-sizing:border-box;background-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA2IDYiIHN0eWxlPSJiYWNrZ3JvdW5kLWNvbG9yOiNmZmZmZmYwMCIgeD0iMHB4IiB5PSIwcHgiIHdpZHRoPSI2cHgiIGhlaWdodD0iNnB4Ij48ZyBvcGFjaXR5PSIwLjMwMiI+PHBhdGggZD0iTSA2IDYgTCAwIDYgTCAwIDQuMiBMIDQgNC4yIEwgNC4yIDQuMiBMIDQuMiAwIEwgNiAwIEwgNiA2IEwgNiA2IFoiIGZpbGw9IiMwMDAwMDAiLz48L2c+PC9zdmc+);background-position:100% 100%;background-repeat:no-repeat;background-origin:content-box;width:20px;height:20px;padding:0 3px 3px 0;position:absolute}.react-resizable-handle-sw{cursor:sw-resize;bottom:0;left:0;transform:rotate(90deg)}.react-resizable-handle-se{cursor:se-resize;bottom:0;right:0}.react-resizable-handle-nw{cursor:nw-resize;top:0;left:0;transform:rotate(180deg)}.react-resizable-handle-ne{cursor:ne-resize;top:0;right:0;transform:rotate(270deg)}.react-resizable-handle-w,.react-resizable-handle-e{cursor:ew-resize;margin-top:-10px;top:50%}.react-resizable-handle-w{left:0;transform:rotate(135deg)}.react-resizable-handle-e{right:0;transform:rotate(315deg)}.react-resizable-handle-n,.react-resizable-handle-s{cursor:ns-resize;margin-left:-10px;left:50%}.react-resizable-handle-n{top:0;transform:rotate(225deg)}.react-resizable-handle-s{bottom:0;transform:rotate(45deg)}html,body,#root{min-width:320px;min-height:100%}.dashboard-grid{min-height:420px}.chat-composer-field{background:var(--mantine-color-body);transition:border-color .15s,box-shadow .15s}.chat-composer-field:focus-within{border-color:var(--mantine-primary-color-filled);box-shadow:0 0 0 2px var(--mantine-primary-color-light)}.chat-history-item{border-radius:var(--mantine-radius-md);transition:background-color .12s}.chat-history-item:hover{background:var(--mantine-color-default-hover)}.chat-history-item[data-active]{background:var(--mantine-primary-color-light)}.chat-history-actions{opacity:0;transition:opacity .12s}.chat-history-item:hover .chat-history-actions,.chat-history-item:focus-within .chat-history-actions{opacity:1}@media (hover:none){.chat-history-actions{opacity:1}}.react-grid-item.react-grid-placeholder{border-radius:var(--mantine-radius-lg);background:var(--mantine-primary-color-filled);opacity:.14}.react-grid-item>.react-resizable-handle{opacity:0;transition:opacity .15s}.react-grid-item:hover>.react-resizable-handle,.react-grid-item:focus-within>.react-resizable-handle{opacity:.55} +:root,:host{color-scheme:var(--mantine-color-scheme)}*,:before,:after{box-sizing:border-box}input,button,textarea,select{font:inherit}button,select{text-transform:none}body,:host{font-family:var(--mantine-font-family);font-size:var(--mantine-font-size-md);line-height:var(--mantine-line-height);background-color:var(--mantine-color-body);color:var(--mantine-color-text);-webkit-font-smoothing:var(--mantine-webkit-font-smoothing);-moz-osx-font-smoothing:var(--mantine-moz-font-smoothing);margin:0}@media screen and (device-width<=31.25em){body,:host{-webkit-text-size-adjust:100%}}@media (prefers-reduced-motion:reduce){[data-respect-reduced-motion] [data-reduce-motion]{transition:none;animation:none}}[data-mantine-color-scheme=light] .mantine-light-hidden,[data-mantine-color-scheme=dark] .mantine-dark-hidden{display:none}.mantine-focus-auto:focus-visible,.mantine-focus-always:focus{outline:2px solid var(--mantine-primary-color-filled);outline-offset:calc(.125rem * var(--mantine-scale))}.mantine-focus-never:focus{outline:none}.mantine-active:active{transform:translateY(calc(.0625rem * var(--mantine-scale)))}fieldset:disabled .mantine-active:active{transform:none}:where([dir=rtl]) .mantine-rotate-rtl{transform:rotate(180deg)}:root,:host{--mantine-z-index-app:100;--mantine-z-index-modal:200;--mantine-z-index-popover:300;--mantine-z-index-overlay:400;--mantine-z-index-max:9999;--mantine-scale:1;--mantine-cursor-type:default;--mantine-webkit-font-smoothing:antialiased;--mantine-moz-font-smoothing:grayscale;--mantine-color-white:#fff;--mantine-color-black:#000;--mantine-line-height:1.55;--mantine-font-family:-apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji;--mantine-font-family-monospace:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, Courier New, monospace;--mantine-font-family-headings:-apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji;--mantine-heading-font-weight:700;--mantine-heading-text-wrap:wrap;--mantine-radius-default:calc(.5rem * var(--mantine-scale));--mantine-primary-color-filled:var(--mantine-color-blue-filled);--mantine-primary-color-filled-hover:var(--mantine-color-blue-filled-hover);--mantine-primary-color-light:var(--mantine-color-blue-light);--mantine-primary-color-light-hover:var(--mantine-color-blue-light-hover);--mantine-primary-color-light-color:var(--mantine-color-blue-light-color);--mantine-breakpoint-xs:36em;--mantine-breakpoint-sm:48em;--mantine-breakpoint-md:62em;--mantine-breakpoint-lg:75em;--mantine-breakpoint-xl:88em;--mantine-spacing-xs:calc(.625rem * var(--mantine-scale));--mantine-spacing-sm:calc(.75rem * var(--mantine-scale));--mantine-spacing-md:calc(1rem * var(--mantine-scale));--mantine-spacing-lg:calc(1.25rem * var(--mantine-scale));--mantine-spacing-xl:calc(2rem * var(--mantine-scale));--mantine-font-size-xs:calc(.75rem * var(--mantine-scale));--mantine-font-size-sm:calc(.875rem * var(--mantine-scale));--mantine-font-size-md:calc(1rem * var(--mantine-scale));--mantine-font-size-lg:calc(1.125rem * var(--mantine-scale));--mantine-font-size-xl:calc(1.25rem * var(--mantine-scale));--mantine-line-height-xs:1.4;--mantine-line-height-sm:1.45;--mantine-line-height-md:1.55;--mantine-line-height-lg:1.6;--mantine-line-height-xl:1.65;--mantine-shadow-xs:0 calc(.0625rem * var(--mantine-scale)) calc(.1875rem * var(--mantine-scale)) #0000000d, 0 calc(.0625rem * var(--mantine-scale)) calc(.125rem * var(--mantine-scale)) #0000001a;--mantine-shadow-sm:0 calc(.0625rem * var(--mantine-scale)) calc(.1875rem * var(--mantine-scale)) #0000000d, #0000000d 0 calc(.625rem * var(--mantine-scale)) calc(.9375rem * var(--mantine-scale)) calc(-.3125rem * var(--mantine-scale)), #0000000a 0 calc(.4375rem * var(--mantine-scale)) calc(.4375rem * var(--mantine-scale)) calc(-.3125rem * var(--mantine-scale));--mantine-shadow-md:0 calc(.0625rem * var(--mantine-scale)) calc(.1875rem * var(--mantine-scale)) #0000000d, #0000000d 0 calc(1.25rem * var(--mantine-scale)) calc(1.5625rem * var(--mantine-scale)) calc(-.3125rem * var(--mantine-scale)), #0000000a 0 calc(.625rem * var(--mantine-scale)) calc(.625rem * var(--mantine-scale)) calc(-.3125rem * var(--mantine-scale));--mantine-shadow-lg:0 calc(.0625rem * var(--mantine-scale)) calc(.1875rem * var(--mantine-scale)) #0000000d, #0000000d 0 calc(1.75rem * var(--mantine-scale)) calc(1.4375rem * var(--mantine-scale)) calc(-.4375rem * var(--mantine-scale)), #0000000a 0 calc(.75rem * var(--mantine-scale)) calc(.75rem * var(--mantine-scale)) calc(-.4375rem * var(--mantine-scale));--mantine-shadow-xl:0 calc(.0625rem * var(--mantine-scale)) calc(.1875rem * var(--mantine-scale)) #0000000d, #0000000d 0 calc(2.25rem * var(--mantine-scale)) calc(1.75rem * var(--mantine-scale)) calc(-.4375rem * var(--mantine-scale)), #0000000a 0 calc(1.0625rem * var(--mantine-scale)) calc(1.0625rem * var(--mantine-scale)) calc(-.4375rem * var(--mantine-scale));--mantine-radius-xs:calc(.125rem * var(--mantine-scale));--mantine-radius-sm:calc(.25rem * var(--mantine-scale));--mantine-radius-md:calc(.5rem * var(--mantine-scale));--mantine-radius-lg:calc(1rem * var(--mantine-scale));--mantine-radius-xl:calc(2rem * var(--mantine-scale));--mantine-font-weight-regular:400;--mantine-font-weight-medium:600;--mantine-font-weight-bold:700;--mantine-primary-color-0:var(--mantine-color-blue-0);--mantine-primary-color-1:var(--mantine-color-blue-1);--mantine-primary-color-2:var(--mantine-color-blue-2);--mantine-primary-color-3:var(--mantine-color-blue-3);--mantine-primary-color-4:var(--mantine-color-blue-4);--mantine-primary-color-5:var(--mantine-color-blue-5);--mantine-primary-color-6:var(--mantine-color-blue-6);--mantine-primary-color-7:var(--mantine-color-blue-7);--mantine-primary-color-8:var(--mantine-color-blue-8);--mantine-primary-color-9:var(--mantine-color-blue-9);--mantine-color-dark-0:#c9c9c9;--mantine-color-dark-1:#b8b8b8;--mantine-color-dark-2:#828282;--mantine-color-dark-3:#696969;--mantine-color-dark-4:#424242;--mantine-color-dark-5:#3b3b3b;--mantine-color-dark-6:#2e2e2e;--mantine-color-dark-7:#242424;--mantine-color-dark-8:#1f1f1f;--mantine-color-dark-9:#141414;--mantine-color-gray-0:#f8f9fa;--mantine-color-gray-1:#f1f3f5;--mantine-color-gray-2:#e9ecef;--mantine-color-gray-3:#dee2e6;--mantine-color-gray-4:#ced4da;--mantine-color-gray-5:#adb5bd;--mantine-color-gray-6:#868e96;--mantine-color-gray-7:#495057;--mantine-color-gray-8:#343a40;--mantine-color-gray-9:#212529;--mantine-color-red-0:#fff5f5;--mantine-color-red-1:#ffe3e3;--mantine-color-red-2:#ffc9c9;--mantine-color-red-3:#ffa8a8;--mantine-color-red-4:#ff8787;--mantine-color-red-5:#ff6b6b;--mantine-color-red-6:#fa5252;--mantine-color-red-7:#f03e3e;--mantine-color-red-8:#e03131;--mantine-color-red-9:#c92a2a;--mantine-color-pink-0:#fff0f6;--mantine-color-pink-1:#ffdeeb;--mantine-color-pink-2:#fcc2d7;--mantine-color-pink-3:#faa2c1;--mantine-color-pink-4:#f783ac;--mantine-color-pink-5:#f06595;--mantine-color-pink-6:#e64980;--mantine-color-pink-7:#d6336c;--mantine-color-pink-8:#c2255c;--mantine-color-pink-9:#a61e4d;--mantine-color-grape-0:#f8f0fc;--mantine-color-grape-1:#f3d9fa;--mantine-color-grape-2:#eebefa;--mantine-color-grape-3:#e599f7;--mantine-color-grape-4:#da77f2;--mantine-color-grape-5:#cc5de8;--mantine-color-grape-6:#be4bdb;--mantine-color-grape-7:#ae3ec9;--mantine-color-grape-8:#9c36b5;--mantine-color-grape-9:#862e9c;--mantine-color-violet-0:#f3f0ff;--mantine-color-violet-1:#e5dbff;--mantine-color-violet-2:#d0bfff;--mantine-color-violet-3:#b197fc;--mantine-color-violet-4:#9775fa;--mantine-color-violet-5:#845ef7;--mantine-color-violet-6:#7950f2;--mantine-color-violet-7:#7048e8;--mantine-color-violet-8:#6741d9;--mantine-color-violet-9:#5f3dc4;--mantine-color-indigo-0:#edf2ff;--mantine-color-indigo-1:#dbe4ff;--mantine-color-indigo-2:#bac8ff;--mantine-color-indigo-3:#91a7ff;--mantine-color-indigo-4:#748ffc;--mantine-color-indigo-5:#5c7cfa;--mantine-color-indigo-6:#4c6ef5;--mantine-color-indigo-7:#4263eb;--mantine-color-indigo-8:#3b5bdb;--mantine-color-indigo-9:#364fc7;--mantine-color-blue-0:#e7f5ff;--mantine-color-blue-1:#d0ebff;--mantine-color-blue-2:#a5d8ff;--mantine-color-blue-3:#74c0fc;--mantine-color-blue-4:#4dabf7;--mantine-color-blue-5:#339af0;--mantine-color-blue-6:#228be6;--mantine-color-blue-7:#1c7ed6;--mantine-color-blue-8:#1971c2;--mantine-color-blue-9:#1864ab;--mantine-color-cyan-0:#e3fafc;--mantine-color-cyan-1:#c5f6fa;--mantine-color-cyan-2:#99e9f2;--mantine-color-cyan-3:#66d9e8;--mantine-color-cyan-4:#3bc9db;--mantine-color-cyan-5:#22b8cf;--mantine-color-cyan-6:#15aabf;--mantine-color-cyan-7:#1098ad;--mantine-color-cyan-8:#0c8599;--mantine-color-cyan-9:#0b7285;--mantine-color-teal-0:#e6fcf5;--mantine-color-teal-1:#c3fae8;--mantine-color-teal-2:#96f2d7;--mantine-color-teal-3:#63e6be;--mantine-color-teal-4:#38d9a9;--mantine-color-teal-5:#20c997;--mantine-color-teal-6:#12b886;--mantine-color-teal-7:#0ca678;--mantine-color-teal-8:#099268;--mantine-color-teal-9:#087f5b;--mantine-color-green-0:#ebfbee;--mantine-color-green-1:#d3f9d8;--mantine-color-green-2:#b2f2bb;--mantine-color-green-3:#8ce99a;--mantine-color-green-4:#69db7c;--mantine-color-green-5:#51cf66;--mantine-color-green-6:#40c057;--mantine-color-green-7:#37b24d;--mantine-color-green-8:#2f9e44;--mantine-color-green-9:#2b8a3e;--mantine-color-lime-0:#f4fce3;--mantine-color-lime-1:#e9fac8;--mantine-color-lime-2:#d8f5a2;--mantine-color-lime-3:#c0eb75;--mantine-color-lime-4:#a9e34b;--mantine-color-lime-5:#94d82d;--mantine-color-lime-6:#82c91e;--mantine-color-lime-7:#74b816;--mantine-color-lime-8:#66a80f;--mantine-color-lime-9:#5c940d;--mantine-color-yellow-0:#fff9db;--mantine-color-yellow-1:#fff3bf;--mantine-color-yellow-2:#ffec99;--mantine-color-yellow-3:#ffe066;--mantine-color-yellow-4:#ffd43b;--mantine-color-yellow-5:#fcc419;--mantine-color-yellow-6:#fab005;--mantine-color-yellow-7:#f59f00;--mantine-color-yellow-8:#f08c00;--mantine-color-yellow-9:#e67700;--mantine-color-orange-0:#fff4e6;--mantine-color-orange-1:#ffe8cc;--mantine-color-orange-2:#ffd8a8;--mantine-color-orange-3:#ffc078;--mantine-color-orange-4:#ffa94d;--mantine-color-orange-5:#ff922b;--mantine-color-orange-6:#fd7e14;--mantine-color-orange-7:#f76707;--mantine-color-orange-8:#e8590c;--mantine-color-orange-9:#d9480f;--mantine-h1-font-size:calc(2.125rem * var(--mantine-scale));--mantine-h1-line-height:1.3;--mantine-h1-font-weight:700;--mantine-h2-font-size:calc(1.625rem * var(--mantine-scale));--mantine-h2-line-height:1.35;--mantine-h2-font-weight:700;--mantine-h3-font-size:calc(1.375rem * var(--mantine-scale));--mantine-h3-line-height:1.4;--mantine-h3-font-weight:700;--mantine-h4-font-size:calc(1.125rem * var(--mantine-scale));--mantine-h4-line-height:1.45;--mantine-h4-font-weight:700;--mantine-h5-font-size:calc(1rem * var(--mantine-scale));--mantine-h5-line-height:1.5;--mantine-h5-font-weight:700;--mantine-h6-font-size:calc(.875rem * var(--mantine-scale));--mantine-h6-line-height:1.5;--mantine-h6-font-weight:700}:root[data-mantine-color-scheme=dark],:host([data-mantine-color-scheme=dark]){--mantine-color-scheme:dark;--mantine-primary-color-contrast:var(--mantine-color-white);--mantine-color-bright:var(--mantine-color-white);--mantine-color-text:var(--mantine-color-dark-0);--mantine-color-body:var(--mantine-color-dark-7);--mantine-color-error:var(--mantine-color-red-8);--mantine-color-success:var(--mantine-color-teal-8);--mantine-color-placeholder:var(--mantine-color-dark-3);--mantine-color-anchor:var(--mantine-color-blue-4);--mantine-color-default:var(--mantine-color-dark-6);--mantine-color-default-hover:var(--mantine-color-dark-5);--mantine-color-default-color:var(--mantine-color-white);--mantine-color-default-border:var(--mantine-color-dark-4);--mantine-color-dimmed:var(--mantine-color-dark-2);--mantine-color-disabled:var(--mantine-color-dark-6);--mantine-color-disabled-color:var(--mantine-color-dark-3);--mantine-color-disabled-border:var(--mantine-color-dark-4);--mantine-color-dark-text:var(--mantine-color-dark-4);--mantine-color-dark-filled:var(--mantine-color-dark-8);--mantine-color-dark-filled-hover:var(--mantine-color-dark-9);--mantine-color-dark-light:#0a0a0a;--mantine-color-dark-light-hover:#0e0e0e;--mantine-color-dark-light-color:var(--mantine-color-dark-0);--mantine-color-dark-outline:var(--mantine-color-dark-4);--mantine-color-dark-outline-hover:#4242420d;--mantine-color-gray-text:var(--mantine-color-gray-4);--mantine-color-gray-filled:var(--mantine-color-gray-8);--mantine-color-gray-filled-hover:var(--mantine-color-gray-9);--mantine-color-gray-light:#111315;--mantine-color-gray-light-hover:#171a1d;--mantine-color-gray-light-color:var(--mantine-color-gray-0);--mantine-color-gray-outline:var(--mantine-color-gray-4);--mantine-color-gray-outline-hover:#ced4da0d;--mantine-color-red-text:var(--mantine-color-red-4);--mantine-color-red-filled:var(--mantine-color-red-8);--mantine-color-red-filled-hover:var(--mantine-color-red-9);--mantine-color-red-light:#651515;--mantine-color-red-light-hover:#8d1d1d;--mantine-color-red-light-color:var(--mantine-color-red-0);--mantine-color-red-outline:var(--mantine-color-red-4);--mantine-color-red-outline-hover:#ff87870d;--mantine-color-pink-text:var(--mantine-color-pink-4);--mantine-color-pink-filled:var(--mantine-color-pink-8);--mantine-color-pink-filled-hover:var(--mantine-color-pink-9);--mantine-color-pink-light:#530f27;--mantine-color-pink-light-hover:#741536;--mantine-color-pink-light-color:var(--mantine-color-pink-0);--mantine-color-pink-outline:var(--mantine-color-pink-4);--mantine-color-pink-outline-hover:#f783ac0d;--mantine-color-grape-text:var(--mantine-color-grape-4);--mantine-color-grape-filled:var(--mantine-color-grape-8);--mantine-color-grape-filled-hover:var(--mantine-color-grape-9);--mantine-color-grape-light:#43174e;--mantine-color-grape-light-hover:#5e206d;--mantine-color-grape-light-color:var(--mantine-color-grape-0);--mantine-color-grape-outline:var(--mantine-color-grape-4);--mantine-color-grape-outline-hover:#da77f20d;--mantine-color-violet-text:var(--mantine-color-violet-4);--mantine-color-violet-filled:var(--mantine-color-violet-8);--mantine-color-violet-filled-hover:var(--mantine-color-violet-9);--mantine-color-violet-light:#301f62;--mantine-color-violet-light-hover:#432b89;--mantine-color-violet-light-color:var(--mantine-color-violet-0);--mantine-color-violet-outline:var(--mantine-color-violet-4);--mantine-color-violet-outline-hover:#9775fa0d;--mantine-color-indigo-text:var(--mantine-color-indigo-4);--mantine-color-indigo-filled:var(--mantine-color-indigo-8);--mantine-color-indigo-filled-hover:var(--mantine-color-indigo-9);--mantine-color-indigo-light:#1b2864;--mantine-color-indigo-light-hover:#26378b;--mantine-color-indigo-light-color:var(--mantine-color-indigo-0);--mantine-color-indigo-outline:var(--mantine-color-indigo-4);--mantine-color-indigo-outline-hover:#748ffc0d;--mantine-color-blue-text:var(--mantine-color-blue-4);--mantine-color-blue-filled:var(--mantine-color-blue-8);--mantine-color-blue-filled-hover:var(--mantine-color-blue-9);--mantine-color-blue-light:#0c3256;--mantine-color-blue-light-hover:#114678;--mantine-color-blue-light-color:var(--mantine-color-blue-0);--mantine-color-blue-outline:var(--mantine-color-blue-4);--mantine-color-blue-outline-hover:#4dabf70d;--mantine-color-cyan-text:var(--mantine-color-cyan-4);--mantine-color-cyan-filled:var(--mantine-color-cyan-8);--mantine-color-cyan-filled-hover:var(--mantine-color-cyan-9);--mantine-color-cyan-light:#063943;--mantine-color-cyan-light-hover:#08505d;--mantine-color-cyan-light-color:var(--mantine-color-cyan-0);--mantine-color-cyan-outline:var(--mantine-color-cyan-4);--mantine-color-cyan-outline-hover:#3bc9db0d;--mantine-color-teal-text:var(--mantine-color-teal-4);--mantine-color-teal-filled:var(--mantine-color-teal-8);--mantine-color-teal-filled-hover:var(--mantine-color-teal-9);--mantine-color-teal-light:#04402e;--mantine-color-teal-light-hover:#065940;--mantine-color-teal-light-color:var(--mantine-color-teal-0);--mantine-color-teal-outline:var(--mantine-color-teal-4);--mantine-color-teal-outline-hover:#38d9a90d;--mantine-color-green-text:var(--mantine-color-green-4);--mantine-color-green-filled:var(--mantine-color-green-8);--mantine-color-green-filled-hover:var(--mantine-color-green-9);--mantine-color-green-light:#16451f;--mantine-color-green-light-hover:#1e612b;--mantine-color-green-light-color:var(--mantine-color-green-0);--mantine-color-green-outline:var(--mantine-color-green-4);--mantine-color-green-outline-hover:#69db7c0d;--mantine-color-lime-text:var(--mantine-color-lime-4);--mantine-color-lime-filled:var(--mantine-color-lime-8);--mantine-color-lime-filled-hover:var(--mantine-color-lime-9);--mantine-color-lime-light:#2e4a07;--mantine-color-lime-light-hover:#406809;--mantine-color-lime-light-color:var(--mantine-color-lime-0);--mantine-color-lime-outline:var(--mantine-color-lime-4);--mantine-color-lime-outline-hover:#a9e34b0d;--mantine-color-yellow-text:var(--mantine-color-yellow-4);--mantine-color-yellow-filled:var(--mantine-color-yellow-8);--mantine-color-yellow-filled-hover:var(--mantine-color-yellow-9);--mantine-color-yellow-light:#733c00;--mantine-color-yellow-light-hover:#a15300;--mantine-color-yellow-light-color:var(--mantine-color-yellow-0);--mantine-color-yellow-outline:var(--mantine-color-yellow-4);--mantine-color-yellow-outline-hover:#ffd43b0d;--mantine-color-orange-text:var(--mantine-color-orange-4);--mantine-color-orange-filled:var(--mantine-color-orange-8);--mantine-color-orange-filled-hover:var(--mantine-color-orange-9);--mantine-color-orange-light:#6d2408;--mantine-color-orange-light-hover:#98320b;--mantine-color-orange-light-color:var(--mantine-color-orange-0);--mantine-color-orange-outline:var(--mantine-color-orange-4);--mantine-color-orange-outline-hover:#ffa94d0d}:root[data-mantine-color-scheme=light],:host([data-mantine-color-scheme=light]){--mantine-color-scheme:light;--mantine-primary-color-contrast:var(--mantine-color-white);--mantine-color-bright:var(--mantine-color-black);--mantine-color-text:#000;--mantine-color-body:#fff;--mantine-color-error:var(--mantine-color-red-6);--mantine-color-success:var(--mantine-color-teal-8);--mantine-color-placeholder:var(--mantine-color-gray-5);--mantine-color-anchor:var(--mantine-color-blue-6);--mantine-color-default:var(--mantine-color-white);--mantine-color-default-hover:var(--mantine-color-gray-0);--mantine-color-default-color:var(--mantine-color-black);--mantine-color-default-border:var(--mantine-color-gray-4);--mantine-color-dimmed:var(--mantine-color-gray-6);--mantine-color-disabled:var(--mantine-color-gray-2);--mantine-color-disabled-color:var(--mantine-color-gray-5);--mantine-color-disabled-border:var(--mantine-color-gray-3);--mantine-color-dark-text:var(--mantine-color-dark-filled);--mantine-color-dark-filled:var(--mantine-color-dark-6);--mantine-color-dark-filled-hover:var(--mantine-color-dark-7);--mantine-color-dark-light:var(--mantine-color-dark-1);--mantine-color-dark-light-hover:var(--mantine-color-dark-2);--mantine-color-dark-light-color:var(--mantine-color-dark-9);--mantine-color-dark-outline:var(--mantine-color-dark-6);--mantine-color-dark-outline-hover:#2e2e2e0d;--mantine-color-gray-text:var(--mantine-color-gray-filled);--mantine-color-gray-filled:var(--mantine-color-gray-6);--mantine-color-gray-filled-hover:var(--mantine-color-gray-7);--mantine-color-gray-light:var(--mantine-color-gray-1);--mantine-color-gray-light-hover:var(--mantine-color-gray-2);--mantine-color-gray-light-color:var(--mantine-color-gray-9);--mantine-color-gray-outline:var(--mantine-color-gray-6);--mantine-color-gray-outline-hover:#868e960d;--mantine-color-red-text:var(--mantine-color-red-filled);--mantine-color-red-filled:var(--mantine-color-red-6);--mantine-color-red-filled-hover:var(--mantine-color-red-7);--mantine-color-red-light:var(--mantine-color-red-1);--mantine-color-red-light-hover:var(--mantine-color-red-2);--mantine-color-red-light-color:var(--mantine-color-red-9);--mantine-color-red-outline:var(--mantine-color-red-6);--mantine-color-red-outline-hover:#fa52520d;--mantine-color-pink-text:var(--mantine-color-pink-filled);--mantine-color-pink-filled:var(--mantine-color-pink-6);--mantine-color-pink-filled-hover:var(--mantine-color-pink-7);--mantine-color-pink-light:var(--mantine-color-pink-1);--mantine-color-pink-light-hover:var(--mantine-color-pink-2);--mantine-color-pink-light-color:var(--mantine-color-pink-9);--mantine-color-pink-outline:var(--mantine-color-pink-6);--mantine-color-pink-outline-hover:#e649800d;--mantine-color-grape-text:var(--mantine-color-grape-filled);--mantine-color-grape-filled:var(--mantine-color-grape-6);--mantine-color-grape-filled-hover:var(--mantine-color-grape-7);--mantine-color-grape-light:var(--mantine-color-grape-1);--mantine-color-grape-light-hover:var(--mantine-color-grape-2);--mantine-color-grape-light-color:var(--mantine-color-grape-9);--mantine-color-grape-outline:var(--mantine-color-grape-6);--mantine-color-grape-outline-hover:#be4bdb0d;--mantine-color-violet-text:var(--mantine-color-violet-filled);--mantine-color-violet-filled:var(--mantine-color-violet-6);--mantine-color-violet-filled-hover:var(--mantine-color-violet-7);--mantine-color-violet-light:var(--mantine-color-violet-1);--mantine-color-violet-light-hover:var(--mantine-color-violet-2);--mantine-color-violet-light-color:var(--mantine-color-violet-9);--mantine-color-violet-outline:var(--mantine-color-violet-6);--mantine-color-violet-outline-hover:#7950f20d;--mantine-color-indigo-text:var(--mantine-color-indigo-filled);--mantine-color-indigo-filled:var(--mantine-color-indigo-6);--mantine-color-indigo-filled-hover:var(--mantine-color-indigo-7);--mantine-color-indigo-light:var(--mantine-color-indigo-1);--mantine-color-indigo-light-hover:var(--mantine-color-indigo-2);--mantine-color-indigo-light-color:var(--mantine-color-indigo-9);--mantine-color-indigo-outline:var(--mantine-color-indigo-6);--mantine-color-indigo-outline-hover:#4c6ef50d;--mantine-color-blue-text:var(--mantine-color-blue-filled);--mantine-color-blue-filled:var(--mantine-color-blue-6);--mantine-color-blue-filled-hover:var(--mantine-color-blue-7);--mantine-color-blue-light:var(--mantine-color-blue-1);--mantine-color-blue-light-hover:var(--mantine-color-blue-2);--mantine-color-blue-light-color:var(--mantine-color-blue-9);--mantine-color-blue-outline:var(--mantine-color-blue-6);--mantine-color-blue-outline-hover:#228be60d;--mantine-color-cyan-text:var(--mantine-color-cyan-filled);--mantine-color-cyan-filled:var(--mantine-color-cyan-6);--mantine-color-cyan-filled-hover:var(--mantine-color-cyan-7);--mantine-color-cyan-light:var(--mantine-color-cyan-1);--mantine-color-cyan-light-hover:var(--mantine-color-cyan-2);--mantine-color-cyan-light-color:var(--mantine-color-cyan-9);--mantine-color-cyan-outline:var(--mantine-color-cyan-6);--mantine-color-cyan-outline-hover:#15aabf0d;--mantine-color-teal-text:var(--mantine-color-teal-filled);--mantine-color-teal-filled:var(--mantine-color-teal-6);--mantine-color-teal-filled-hover:var(--mantine-color-teal-7);--mantine-color-teal-light:var(--mantine-color-teal-1);--mantine-color-teal-light-hover:var(--mantine-color-teal-2);--mantine-color-teal-light-color:var(--mantine-color-teal-9);--mantine-color-teal-outline:var(--mantine-color-teal-6);--mantine-color-teal-outline-hover:#12b8860d;--mantine-color-green-text:var(--mantine-color-green-filled);--mantine-color-green-filled:var(--mantine-color-green-6);--mantine-color-green-filled-hover:var(--mantine-color-green-7);--mantine-color-green-light:var(--mantine-color-green-1);--mantine-color-green-light-hover:var(--mantine-color-green-2);--mantine-color-green-light-color:var(--mantine-color-green-9);--mantine-color-green-outline:var(--mantine-color-green-6);--mantine-color-green-outline-hover:#40c0570d;--mantine-color-lime-text:var(--mantine-color-lime-filled);--mantine-color-lime-filled:var(--mantine-color-lime-6);--mantine-color-lime-filled-hover:var(--mantine-color-lime-7);--mantine-color-lime-light:var(--mantine-color-lime-1);--mantine-color-lime-light-hover:var(--mantine-color-lime-2);--mantine-color-lime-light-color:var(--mantine-color-lime-9);--mantine-color-lime-outline:var(--mantine-color-lime-6);--mantine-color-lime-outline-hover:#82c91e0d;--mantine-color-yellow-text:var(--mantine-color-yellow-filled);--mantine-color-yellow-filled:var(--mantine-color-yellow-6);--mantine-color-yellow-filled-hover:var(--mantine-color-yellow-7);--mantine-color-yellow-light:var(--mantine-color-yellow-1);--mantine-color-yellow-light-hover:var(--mantine-color-yellow-2);--mantine-color-yellow-light-color:var(--mantine-color-yellow-9);--mantine-color-yellow-outline:var(--mantine-color-yellow-6);--mantine-color-yellow-outline-hover:#fab0050d;--mantine-color-orange-text:var(--mantine-color-orange-filled);--mantine-color-orange-filled:var(--mantine-color-orange-6);--mantine-color-orange-filled-hover:var(--mantine-color-orange-7);--mantine-color-orange-light:var(--mantine-color-orange-1);--mantine-color-orange-light-hover:var(--mantine-color-orange-2);--mantine-color-orange-light-color:var(--mantine-color-orange-9);--mantine-color-orange-outline:var(--mantine-color-orange-6);--mantine-color-orange-outline-hover:#fd7e140d}.m_d57069b5{--scrollarea-scrollbar-size:calc(.75rem * var(--mantine-scale));position:relative;overflow:hidden}.m_d57069b5:where([data-autosize]) .m_b1336c6{min-width:min-content}.m_c0783ff9{scrollbar-width:none;overscroll-behavior:var(--scrollarea-over-scroll-behavior);-ms-overflow-style:none;-webkit-overflow-scrolling:touch;width:100%;height:100%}.m_c0783ff9::-webkit-scrollbar{display:none}.m_c0783ff9:where([data-scrollbars=xy],[data-scrollbars=y]):where([data-offset-scrollbars=xy],[data-offset-scrollbars=y],[data-offset-scrollbars=present]):where([data-vertical-hidden]){padding-inline:0}.m_c0783ff9:where([data-scrollbars=xy],[data-scrollbars=y]):where([data-offset-scrollbars=xy],[data-offset-scrollbars=y],[data-offset-scrollbars=present]):not([data-vertical-hidden]){padding-inline-start:unset;padding-inline-end:var(--scrollarea-scrollbar-size)}.m_c0783ff9:where([data-scrollbars=xy],[data-scrollbars=y]):where([data-offset-scrollbars=xy],[data-offset-scrollbars=y],[data-offset-scrollbars=present]):not([data-vertical-hidden]):where([data-vertical-scrollbar-position=left]){padding-inline-end:unset;padding-left:var(--scrollarea-scrollbar-size);padding-right:unset}.m_c0783ff9:where([data-scrollbars=xy],[data-scrollbars=y]):where([data-offset-scrollbars=xy],[data-offset-scrollbars=y],[data-offset-scrollbars=present]):not([data-vertical-hidden]):where([data-vertical-scrollbar-position=right]){padding-inline-end:unset;padding-left:unset;padding-right:var(--scrollarea-scrollbar-size)}.m_c0783ff9:where([data-scrollbars=xy],[data-scrollbars=x]):where([data-offset-scrollbars=xy],[data-offset-scrollbars=x],[data-offset-scrollbars=present]):where([data-horizontal-hidden]){padding-bottom:0}.m_c0783ff9:where([data-scrollbars=xy],[data-scrollbars=x]):where([data-offset-scrollbars=xy],[data-offset-scrollbars=x],[data-offset-scrollbars=present]):not([data-horizontal-hidden]){padding-bottom:var(--scrollarea-scrollbar-size)}.m_f8f631dd{min-width:100%;display:table}.m_c44ba933{-webkit-user-select:none;user-select:none;touch-action:none;box-sizing:border-box;padding:calc(var(--scrollarea-scrollbar-size) / 5);background-color:#0000;flex-direction:row;transition:background-color .15s,opacity .15s;display:flex}@media (hover:hover){:where([data-mantine-color-scheme=light]) .m_c44ba933:hover{background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=light]) .m_c44ba933:hover>.m_d8b5e363{background-color:#00000080}:where([data-mantine-color-scheme=dark]) .m_c44ba933:hover{background-color:var(--mantine-color-dark-8)}:where([data-mantine-color-scheme=dark]) .m_c44ba933:hover>.m_d8b5e363{background-color:#ffffff80}}@media (hover:none){:where([data-mantine-color-scheme=light]) .m_c44ba933:active{background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=light]) .m_c44ba933:active>.m_d8b5e363{background-color:#00000080}:where([data-mantine-color-scheme=dark]) .m_c44ba933:active{background-color:var(--mantine-color-dark-8)}:where([data-mantine-color-scheme=dark]) .m_c44ba933:active>.m_d8b5e363{background-color:#ffffff80}}.m_c44ba933:where([data-hidden],[data-state=hidden]){display:none}.m_c44ba933:where([data-orientation=vertical]){width:var(--scrollarea-scrollbar-size);top:0;bottom:var(--sa-corner-width);inset-inline-end:0}.m_c44ba933:where([data-orientation=vertical]):where([data-vertical-scrollbar-position=left]){inset-inline-end:auto;left:0;right:auto}.m_c44ba933:where([data-orientation=vertical]):where([data-vertical-scrollbar-position=right]){inset-inline-end:auto;left:auto;right:0}.m_c44ba933:where([data-orientation=horizontal]){height:var(--scrollarea-scrollbar-size);bottom:0;flex-direction:column;inset-inline-start:0;inset-inline-end:var(--sa-corner-width)}.m_c44ba933:where([data-orientation=horizontal]):where([data-vertical-scrollbar-position=left]){inset-inline:auto;left:var(--sa-corner-width);right:0}.m_c44ba933:where([data-orientation=horizontal]):where([data-vertical-scrollbar-position=right]){inset-inline:auto;left:0;right:var(--sa-corner-width)}.m_d8b5e363{border-radius:var(--scrollarea-scrollbar-size);opacity:var(--thumb-opacity);flex:1;transition:background-color .15s;position:relative;overflow:hidden}.m_d8b5e363:before{content:"";width:100%;height:100%;min-width:calc(2.75rem * var(--mantine-scale));min-height:calc(2.75rem * var(--mantine-scale));position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}:where([data-mantine-color-scheme=light]) .m_d8b5e363{background-color:#0006}:where([data-mantine-color-scheme=dark]) .m_d8b5e363{background-color:#fff6}.m_21657268{opacity:0;inset-inline-end:0;transition:opacity .15s;display:block;position:absolute;bottom:0}.m_21657268:where([data-vertical-scrollbar-position=left]){inset-inline-end:auto;left:0;right:auto}.m_21657268:where([data-vertical-scrollbar-position=right]){inset-inline-end:auto;left:auto;right:0}:where([data-mantine-color-scheme=light]) .m_21657268{background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_21657268{background-color:var(--mantine-color-dark-8)}.m_21657268:where([data-hovered]){opacity:1}.m_21657268:where([data-hidden]){display:none}.m_b1336c6{min-width:100%}.m_87cf2631{cursor:pointer;appearance:none;font-size:var(--mantine-font-size-md);text-align:start;color:inherit;touch-action:manipulation;-webkit-tap-highlight-color:transparent;background-color:#0000;border:0;padding:0;text-decoration:none}.m_515a97f8{clip:rect(0 0 0 0);height:calc(.0625rem * var(--mantine-scale));width:calc(.0625rem * var(--mantine-scale));margin:calc(-.0625rem * var(--mantine-scale));white-space:nowrap;border:0;padding:0;position:absolute;overflow:hidden}.m_1b7284a3{--paper-radius:var(--mantine-radius-default);-webkit-tap-highlight-color:transparent;touch-action:manipulation;border-radius:var(--paper-radius);box-shadow:var(--paper-shadow);background-color:var(--mantine-color-body);outline:0;text-decoration:none;display:block}[data-mantine-color-scheme=light] .m_1b7284a3{--paper-border-color:var(--mantine-color-gray-3)}[data-mantine-color-scheme=dark] .m_1b7284a3{--paper-border-color:var(--mantine-color-dark-4)}.m_1b7284a3:where([data-with-border]){border:calc(.0625rem * var(--mantine-scale)) solid var(--paper-border-color)}.m_9814e45f{background:var(--overlay-bg,#0009);-webkit-backdrop-filter:var(--overlay-filter);backdrop-filter:var(--overlay-filter);border-radius:var(--overlay-radius,0);z-index:var(--overlay-z-index);position:absolute;inset:0}.m_9814e45f:where([data-fixed]){position:fixed}.m_9814e45f:where([data-center]){justify-content:center;align-items:center;display:flex}.m_38a85659{border:1px solid var(--popover-border-color);padding:var(--mantine-spacing-sm) var(--mantine-spacing-md);box-shadow:var(--popover-shadow,none);border-radius:var(--popover-radius,var(--mantine-radius-default));position:absolute}.m_38a85659:where([data-fixed]){position:fixed}.m_38a85659:focus{outline:none}:where([data-mantine-color-scheme=light]) .m_38a85659{--popover-border-color:var(--mantine-color-gray-2);background-color:var(--mantine-color-white)}:where([data-mantine-color-scheme=dark]) .m_38a85659{--popover-border-color:var(--mantine-color-dark-4);background-color:var(--mantine-color-dark-6)}.m_a31dc6c1{background-color:inherit;border:1px solid var(--popover-border-color);z-index:1}.m_3d7bc908{position:fixed;inset:0}.m_5ae2e3c{--loader-size-xs:calc(1.125rem * var(--mantine-scale));--loader-size-sm:calc(1.375rem * var(--mantine-scale));--loader-size-md:calc(2.25rem * var(--mantine-scale));--loader-size-lg:calc(2.75rem * var(--mantine-scale));--loader-size-xl:calc(3.625rem * var(--mantine-scale));--loader-size:var(--loader-size-md);--loader-color:var(--mantine-primary-color-filled)}@keyframes m_5d2b3b9d{0%{opacity:0;transform:scale(.6)}50%,to{transform:scale(1)}}.m_7a2bd4cd{width:var(--loader-size);height:var(--loader-size);gap:calc(var(--loader-size) / 5);display:flex;position:relative}.m_870bb79{background:var(--loader-color);border-radius:calc(.125rem * var(--mantine-scale));flex:1;animation:1.2s cubic-bezier(0,.5,.5,1) infinite m_5d2b3b9d}.m_870bb79:first-of-type{animation-delay:-240ms}.m_870bb79:nth-of-type(2){animation-delay:-120ms}.m_870bb79:nth-of-type(3){animation-delay:0}@keyframes m_aac34a1{0%,to{opacity:1;transform:scale(1)}50%{opacity:.5;transform:scale(.6)}}.m_4e3f22d7{justify-content:center;align-items:center;gap:calc(var(--loader-size) / 10);width:var(--loader-size);height:var(--loader-size);display:flex;position:relative}.m_870c4af{width:calc(var(--loader-size) / 3 - var(--loader-size) / 15);height:calc(var(--loader-size) / 3 - var(--loader-size) / 15);background:var(--loader-color);border-radius:50%;animation:.8s linear infinite m_aac34a1}.m_870c4af:nth-child(2){animation-delay:.4s}@keyframes m_f8e89c4b{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.m_b34414df{width:var(--loader-size);height:var(--loader-size);display:inline-block}.m_b34414df:after{content:"";width:var(--loader-size);height:var(--loader-size);border-radius:calc(625rem * var(--mantine-scale));border-width:calc(var(--loader-size) / 8);border-style:solid;border-color:var(--loader-color) var(--loader-color) var(--loader-color) transparent;animation:1.2s linear infinite m_f8e89c4b;display:block}.m_8d3f4000{--ai-size-xs:calc(1.125rem * var(--mantine-scale));--ai-size-sm:calc(1.375rem * var(--mantine-scale));--ai-size-md:calc(1.75rem * var(--mantine-scale));--ai-size-lg:calc(2.125rem * var(--mantine-scale));--ai-size-xl:calc(2.75rem * var(--mantine-scale));--ai-size-input-xs:calc(1.875rem * var(--mantine-scale));--ai-size-input-sm:calc(2.25rem * var(--mantine-scale));--ai-size-input-md:calc(2.625rem * var(--mantine-scale));--ai-size-input-lg:calc(3.125rem * var(--mantine-scale));--ai-size-input-xl:calc(3.75rem * var(--mantine-scale));--ai-size:var(--ai-size-md);--ai-color:var(--mantine-color-white);-webkit-user-select:none;user-select:none;width:var(--ai-size);height:var(--ai-size);min-width:var(--ai-size);min-height:var(--ai-size);border-radius:var(--ai-radius,var(--mantine-radius-default));background:var(--ai-bg,var(--mantine-primary-color-filled));color:var(--ai-color,var(--mantine-color-white));border:var(--ai-bd,calc(.0625rem * var(--mantine-scale)) solid transparent);cursor:pointer;justify-content:center;align-items:center;line-height:1;display:inline-flex;position:relative;overflow:hidden}@media (hover:hover){.m_8d3f4000:hover:where(:not([data-loading],:disabled,[data-disabled])){background-color:var(--ai-hover,var(--mantine-primary-color-filled-hover));color:var(--ai-hover-color,var(--ai-color))}}@media (hover:none){.m_8d3f4000:active:where(:not([data-loading],:disabled,[data-disabled])){background-color:var(--ai-hover,var(--mantine-primary-color-filled-hover));color:var(--ai-hover-color,var(--ai-color))}}.m_8d3f4000[data-loading]{cursor:not-allowed}.m_8d3f4000[data-loading] .m_8d3afb97{opacity:0;transform:translateY(100%)}.m_8d3f4000:where(:disabled:not([data-loading]),[data-disabled]:not([data-loading])){cursor:not-allowed;border:calc(.0625rem * var(--mantine-scale)) solid transparent;color:var(--mantine-color-disabled-color);background:var(--mantine-color-disabled)}.m_8d3f4000:where(:disabled:not([data-loading]),[data-disabled]:not([data-loading])):active{transform:none}.m_302b9fb1{inset:calc(-.0625rem * var(--mantine-scale));border-radius:var(--ai-radius,var(--mantine-radius-default));justify-content:center;align-items:center;display:flex;position:absolute}:where([data-mantine-color-scheme=light]) .m_302b9fb1{background-color:#ffffff26}:where([data-mantine-color-scheme=dark]) .m_302b9fb1{background-color:#00000026}.m_1a0f1b21{--ai-border-width:calc(.0625rem * var(--mantine-scale));display:flex}.m_1a0f1b21 :where(*):focus{z-index:1;position:relative}.m_1a0f1b21[data-orientation=horizontal]{flex-direction:row}.m_1a0f1b21[data-orientation=horizontal] .m_8d3f4000:not(:only-child):first-child,.m_1a0f1b21[data-orientation=horizontal] .m_437b6484:not(:only-child):first-child{border-inline-end-width:calc(var(--ai-border-width) / 2);border-start-end-radius:0;border-end-end-radius:0}.m_1a0f1b21[data-orientation=horizontal] .m_8d3f4000:not(:only-child):last-child,.m_1a0f1b21[data-orientation=horizontal] .m_437b6484:not(:only-child):last-child{border-inline-start-width:calc(var(--ai-border-width) / 2);border-start-start-radius:0;border-end-start-radius:0}.m_1a0f1b21[data-orientation=horizontal] .m_8d3f4000:not(:only-child):not(:first-child):not(:last-child),.m_1a0f1b21[data-orientation=horizontal] .m_437b6484:not(:only-child):not(:first-child):not(:last-child){border-inline-width:calc(var(--ai-border-width) / 2);border-radius:0}.m_1a0f1b21[data-orientation=vertical]{flex-direction:column}.m_1a0f1b21[data-orientation=vertical] .m_8d3f4000:not(:only-child):first-child,.m_1a0f1b21[data-orientation=vertical] .m_437b6484:not(:only-child):first-child{border-bottom-width:calc(var(--ai-border-width) / 2);border-end-end-radius:0;border-end-start-radius:0}.m_1a0f1b21[data-orientation=vertical] .m_8d3f4000:not(:only-child):last-child,.m_1a0f1b21[data-orientation=vertical] .m_437b6484:not(:only-child):last-child{border-top-width:calc(var(--ai-border-width) / 2);border-start-start-radius:0;border-start-end-radius:0}.m_1a0f1b21[data-orientation=vertical] .m_8d3f4000:not(:only-child):not(:first-child):not(:last-child),.m_1a0f1b21[data-orientation=vertical] .m_437b6484:not(:only-child):not(:first-child):not(:last-child){border-bottom-width:calc(var(--ai-border-width) / 2);border-top-width:calc(var(--ai-border-width) / 2);border-radius:0}.m_8d3afb97{justify-content:center;align-items:center;width:100%;height:100%;transition:transform .15s,opacity .1s;display:flex}.m_437b6484{--section-height-xs:calc(1.125rem * var(--mantine-scale));--section-height-sm:calc(1.375rem * var(--mantine-scale));--section-height-md:calc(1.75rem * var(--mantine-scale));--section-height-lg:calc(2.125rem * var(--mantine-scale));--section-height-xl:calc(2.75rem * var(--mantine-scale));--section-height-input-xs:calc(1.875rem * var(--mantine-scale));--section-height-input-sm:calc(2.25rem * var(--mantine-scale));--section-height-input-md:calc(2.625rem * var(--mantine-scale));--section-height-input-lg:calc(3.125rem * var(--mantine-scale));--section-height-input-xl:calc(3.75rem * var(--mantine-scale));--section-padding-x-xs:calc(.375rem * var(--mantine-scale));--section-padding-x-sm:calc(.5rem * var(--mantine-scale));--section-padding-x-md:calc(.625rem * var(--mantine-scale));--section-padding-x-lg:calc(.75rem * var(--mantine-scale));--section-padding-x-xl:calc(1rem * var(--mantine-scale));--section-height:var(--section-height-sm);--section-padding-x:var(--section-padding-x-sm);--section-color:var(--mantine-color-white);font-weight:var(--mantine-font-weight-medium);border-radius:var(--section-radius,var(--mantine-radius-default));width:auto;font-size:var(--section-fz,var(--mantine-font-size-sm));background:var(--section-bg,var(--mantine-primary-color-filled));border:var(--section-bd,calc(.0625rem * var(--mantine-scale)) solid transparent);color:var(--section-color,var(--mantine-color-white));height:var(--section-height,var(--section-height-sm));padding-inline:var(--section-padding-x,var(--section-padding-x-sm));vertical-align:middle;justify-content:center;align-items:center;line-height:1;display:inline-flex}.m_86a44da5{--cb-size-xs:calc(1.125rem * var(--mantine-scale));--cb-size-sm:calc(1.375rem * var(--mantine-scale));--cb-size-md:calc(1.75rem * var(--mantine-scale));--cb-size-lg:calc(2.125rem * var(--mantine-scale));--cb-size-xl:calc(2.75rem * var(--mantine-scale));--cb-size:var(--cb-size-md);--cb-icon-size:70%;--cb-radius:var(--mantine-radius-default);-webkit-user-select:none;user-select:none;width:var(--cb-size);height:var(--cb-size);min-width:var(--cb-size);min-height:var(--cb-size);border-radius:var(--cb-radius);justify-content:center;align-items:center;line-height:1;display:inline-flex;position:relative}:where([data-mantine-color-scheme=light]) .m_86a44da5{color:var(--mantine-color-gray-7)}:where([data-mantine-color-scheme=dark]) .m_86a44da5{color:var(--mantine-color-dark-1)}.m_86a44da5[data-disabled],.m_86a44da5:disabled{cursor:not-allowed;opacity:.6}@media (hover:hover){:where([data-mantine-color-scheme=light]) .m_220c80f2:where(:not([data-disabled],:disabled)):hover{background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_220c80f2:where(:not([data-disabled],:disabled)):hover{background-color:var(--mantine-color-dark-6)}}@media (hover:none){:where([data-mantine-color-scheme=light]) .m_220c80f2:where(:not([data-disabled],:disabled)):active{background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_220c80f2:where(:not([data-disabled],:disabled)):active{background-color:var(--mantine-color-dark-6)}}.m_4081bf90{flex-direction:row;flex-wrap:var(--group-wrap,wrap);justify-content:var(--group-justify,flex-start);align-items:var(--group-align,center);gap:var(--group-gap,var(--mantine-spacing-md));display:flex}.m_4081bf90:where([data-grow])>*{max-width:var(--group-child-width);flex-grow:1}.m_615af6c9{line-height:1;font-weight:var(--mantine-font-weight-regular);font-size:var(--mantine-font-size-md);margin:0;padding:0}.m_b5489c3c{padding:var(--mb-padding,var(--mantine-spacing-md));background-color:var(--mantine-color-body);z-index:1000;min-height:calc(3.75rem * var(--mantine-scale));justify-content:space-between;align-items:center;padding-inline-end:calc(var(--mb-padding,var(--mantine-spacing-md)) - calc(.3125rem * var(--mantine-scale)));transition:padding-inline-end .1s;display:flex;position:sticky;top:0}.m_60c222c7{width:100%;z-index:var(--mb-z-index);pointer-events:none;position:fixed;top:0;bottom:0}.m_fd1ab0aa{pointer-events:all;box-shadow:var(--mb-shadow,var(--mantine-shadow-xl))}.m_fd1ab0aa [data-mantine-scrollbar]{z-index:1001}[data-offset-scrollbars] .m_fd1ab0aa:has([data-mantine-scrollbar]) .m_b5489c3c{padding-inline-end:calc(var(--mb-padding,var(--mantine-spacing-md)) + calc(.3125rem * var(--mantine-scale)))}.m_606cb269{margin-inline-start:auto}.m_5df29311{padding:var(--mb-padding,var(--mantine-spacing-md));padding-top:var(--mb-padding,var(--mantine-spacing-md))}.m_5df29311:where(:not(:only-child)){padding-top:0}.m_6c018570{margin-top:var(--input-margin-top,0rem);margin-bottom:var(--input-margin-bottom,0rem);--input-height-xs:calc(1.875rem * var(--mantine-scale));--input-height-sm:calc(2.25rem * var(--mantine-scale));--input-height-md:calc(2.625rem * var(--mantine-scale));--input-height-lg:calc(3.125rem * var(--mantine-scale));--input-height-xl:calc(3.75rem * var(--mantine-scale));--input-padding-y-xs:calc(.3125rem * var(--mantine-scale));--input-padding-y-sm:calc(.375rem * var(--mantine-scale));--input-padding-y-md:calc(.5rem * var(--mantine-scale));--input-padding-y-lg:calc(.625rem * var(--mantine-scale));--input-padding-y-xl:calc(.8125rem * var(--mantine-scale));--input-height:var(--input-height-sm);--input-radius:var(--mantine-radius-default);--input-cursor:text;--input-line-height:calc(var(--input-height) - calc(.125rem * var(--mantine-scale)));--input-padding:calc(var(--input-height) / 3);--input-padding-inline-start:var(--input-padding);--input-padding-inline-end:var(--input-padding);--input-placeholder-color:var(--mantine-color-placeholder);--input-color:var(--mantine-color-text);--input-disabled-bg:var(--mantine-color-disabled);--input-disabled-color:var(--mantine-color-disabled-color);--input-left-section-size:var(--input-left-section-width,calc(var(--input-height) - calc(.125rem * var(--mantine-scale))));--input-right-section-size:var(--input-right-section-width,calc(var(--input-height) - calc(.125rem * var(--mantine-scale))));--input-size:var(--input-height);--section-y:calc(.0625rem * var(--mantine-scale));--left-section-start:calc(.0625rem * var(--mantine-scale));--left-section-border-radius:var(--input-radius) 0 0 var(--input-radius);--right-section-end:calc(.0625rem * var(--mantine-scale));--right-section-border-radius:0 var(--input-radius) var(--input-radius) 0;position:relative}.m_6c018570[data-variant=unstyled]{--input-padding:0;--input-padding-y:0;--input-padding-inline-start:0;--input-padding-inline-end:0}.m_6c018570[data-pointer]{--input-cursor:pointer}.m_6c018570[data-with-bottom-section]{--input-bottom-section-height:calc(1.75rem * var(--mantine-scale))}.m_6c018570[data-multiline]{--input-padding-y-xs:calc(.28125rem * var(--mantine-scale));--input-padding-y-sm:calc(.34375rem * var(--mantine-scale));--input-padding-y-md:calc(.4375rem * var(--mantine-scale));--input-padding-y-lg:calc(.59375rem * var(--mantine-scale));--input-padding-y-xl:calc(.8125rem * var(--mantine-scale));--input-size:auto;--input-line-height:var(--mantine-line-height)}.m_6c018570[data-with-left-section]{--input-padding-inline-start:var(--input-left-section-size)}.m_6c018570[data-with-right-section]{--input-padding-inline-end:var(--input-right-section-size)}.m_6c018570[data-size=xs] .m_6c018570[data-with-right-section]:has([data-combined-clear-section]){--input-padding-inline-end:calc(2.5625rem * var(--mantine-scale))}.m_6c018570[data-size=sm] .m_6c018570[data-with-right-section]:has([data-combined-clear-section]){--input-padding-inline-end:calc(3.125rem * var(--mantine-scale))}.m_6c018570[data-size=md] .m_6c018570[data-with-right-section]:has([data-combined-clear-section]){--input-padding-inline-end:calc(3.75rem * var(--mantine-scale))}.m_6c018570[data-size=lg] .m_6c018570[data-with-right-section]:has([data-combined-clear-section]){--input-padding-inline-end:calc(4.5rem * var(--mantine-scale))}.m_6c018570[data-size=xl] .m_6c018570[data-with-right-section]:has([data-combined-clear-section]){--input-padding-inline-end:calc(5.5625rem * var(--mantine-scale))}[data-mantine-color-scheme=light] .m_6c018570[data-variant=default]{--input-bd:var(--mantine-color-gray-4);--input-bg:var(--mantine-color-white);--input-bd-focus:var(--mantine-primary-color-filled)}[data-mantine-color-scheme=light] .m_6c018570[data-variant=filled]{--input-bd:transparent;--input-bg:var(--mantine-color-gray-1);--input-bd-focus:var(--mantine-primary-color-filled)}[data-mantine-color-scheme=light] .m_6c018570[data-variant=unstyled]{--input-bd:transparent;--input-bg:transparent;--input-bd-focus:transparent}[data-mantine-color-scheme=dark] .m_6c018570[data-variant=default]{--input-bd:var(--mantine-color-dark-4);--input-bg:var(--mantine-color-dark-6);--input-bd-focus:var(--mantine-primary-color-filled)}[data-mantine-color-scheme=dark] .m_6c018570[data-variant=filled]{--input-bd:transparent;--input-bg:var(--mantine-color-dark-5);--input-bd-focus:var(--mantine-primary-color-filled)}[data-mantine-color-scheme=dark] .m_6c018570[data-variant=unstyled]{--input-bd:transparent;--input-bg:transparent;--input-bd-focus:transparent}[data-mantine-color-scheme] .m_6c018570[data-error]:not([data-variant=unstyled]){--input-bd:var(--mantine-color-error)}[data-mantine-color-scheme] .m_6c018570[data-error]{--input-color:var(--mantine-color-error);--input-placeholder-color:var(--mantine-color-error);--input-section-color:var(--mantine-color-error)}[data-mantine-color-scheme] .m_6c018570[data-success]:not([data-variant=unstyled]){--input-bd:var(--mantine-color-success)}[data-mantine-color-scheme] .m_6c018570[data-success]{--input-section-color:var(--mantine-color-success)}:where([dir=rtl]) .m_6c018570{--left-section-border-radius:0 var(--input-radius) var(--input-radius) 0;--right-section-border-radius:var(--input-radius) 0 0 var(--input-radius)}.m_6c018570[dir=ltr]{--left-section-border-radius:var(--input-radius) 0 0 var(--input-radius);--right-section-border-radius:0 var(--input-radius) var(--input-radius) 0}.m_8fb7ebe7{-webkit-tap-highlight-color:transparent;appearance:none;resize:var(--input-resize,none);width:100%;text-align:var(--input-text-align,start);color:var(--input-color);border:calc(.0625rem * var(--mantine-scale)) solid var(--input-bd);background-color:var(--input-bg);font-family:var(--input-font-family,var(--mantine-font-family));height:var(--input-size);min-height:var(--input-height);line-height:var(--input-line-height);font-size:var(--_input-fz,var(--input-fz,var(--mantine-font-size-md)));border-radius:var(--input-radius);padding-inline-start:var(--input-padding-inline-start);padding-inline-end:var(--input-padding-inline-end);padding-top:var(--input-padding-y,0rem);padding-bottom:var(--input-padding-y,0rem);cursor:var(--input-cursor);overflow:var(--input-overflow);transition:border-color .1s;display:block}.m_8fb7ebe7[data-no-overflow]{--input-overflow:hidden}.m_8fb7ebe7[data-monospace]{--input-font-family:var(--mantine-font-family-monospace);--_input-fz:calc(var(--input-fz) - calc(.125rem * var(--mantine-scale)))}.m_8fb7ebe7:focus,.m_8fb7ebe7:focus-within{--input-bd:var(--input-bd-focus);outline:none}.m_6c018570[data-error] .m_8fb7ebe7:focus,.m_6c018570[data-error] .m_8fb7ebe7:focus-within{--input-bd:var(--mantine-color-error)}.m_6c018570[data-success] .m_8fb7ebe7:focus,.m_6c018570[data-success] .m_8fb7ebe7:focus-within{--input-bd:var(--mantine-color-success)}.m_8fb7ebe7::placeholder{color:var(--input-placeholder-color);opacity:1}.m_8fb7ebe7::-webkit-inner-spin-button{appearance:none}.m_8fb7ebe7::-webkit-outer-spin-button{appearance:none}.m_8fb7ebe7::-webkit-search-decoration{appearance:none}.m_8fb7ebe7::-webkit-search-cancel-button{appearance:none}.m_8fb7ebe7::-webkit-search-results-button{appearance:none}.m_8fb7ebe7::-webkit-search-results-decoration{appearance:none}.m_8fb7ebe7[type=number]{-moz-appearance:textfield}.m_8fb7ebe7:disabled,.m_8fb7ebe7[data-disabled]{cursor:not-allowed;opacity:.6;background-color:var(--input-disabled-bg);color:var(--input-disabled-color)}.m_8fb7ebe7:has(input:disabled){cursor:not-allowed;opacity:.6;background-color:var(--input-disabled-bg);color:var(--input-disabled-color)}.m_8fb7ebe7[readonly]{caret-color:#0000}[data-with-bottom-section] .m_8fb7ebe7{padding-bottom:calc(var(--input-padding-y,0rem) + var(--input-bottom-section-height))}.m_93f4ed57{bottom:calc(.0625rem * var(--mantine-scale));left:calc(.0625rem * var(--mantine-scale));right:calc(.0625rem * var(--mantine-scale));height:var(--input-bottom-section-height);padding-inline:var(--input-padding);border-radius:0 0 var(--input-radius) var(--input-radius);pointer-events:all;color:var(--mantine-color-dimmed);font-size:var(--input-fz,var(--mantine-font-size-sm));justify-content:flex-start;align-items:center;display:flex;position:absolute}.m_82577fc2{pointer-events:var(--section-pointer-events);z-index:1;inset-inline-start:var(--section-start);inset-inline-end:var(--section-end);bottom:var(--section-y);top:var(--section-y);width:var(--section-size);border-radius:var(--section-border-radius);color:var(--input-section-color,var(--mantine-color-dimmed));justify-content:center;align-items:center;display:flex;position:absolute}.m_82577fc2[data-position=right]{--section-pointer-events:var(--input-right-section-pointer-events);--section-end:var(--right-section-end);--section-size:var(--input-right-section-size);--section-border-radius:var(--right-section-border-radius)}.m_6c018570[data-size=xs] .m_82577fc2[data-position=right]:has([data-combined-clear-section]){--section-size:calc(2.5625rem * var(--mantine-scale))}.m_6c018570[data-size=sm] .m_82577fc2[data-position=right]:has([data-combined-clear-section]){--section-size:calc(3.125rem * var(--mantine-scale))}.m_6c018570[data-size=md] .m_82577fc2[data-position=right]:has([data-combined-clear-section]){--section-size:calc(3.75rem * var(--mantine-scale))}.m_6c018570[data-size=lg] .m_82577fc2[data-position=right]:has([data-combined-clear-section]){--section-size:calc(4.5rem * var(--mantine-scale))}.m_6c018570[data-size=xl] .m_82577fc2[data-position=right]:has([data-combined-clear-section]){--section-size:calc(5.5625rem * var(--mantine-scale))}.m_82577fc2[data-position=left]{--section-pointer-events:var(--input-left-section-pointer-events);--section-start:var(--left-section-start);--section-size:var(--input-left-section-size);--section-border-radius:var(--left-section-border-radius)}.m_88bacfd0{color:var(--input-placeholder-color,var(--mantine-color-placeholder))}.m_6c018570[data-error] .m_88bacfd0{--input-placeholder-color:var(--input-color,var(--mantine-color-placeholder))}.m_46b77525{line-height:var(--mantine-line-height)}.m_8fdc1311{font-weight:var(--mantine-font-weight-medium);overflow-wrap:break-word;cursor:default;-webkit-tap-highlight-color:transparent;font-size:var(--input-label-size,var(--mantine-font-size-sm));display:inline-block}.m_78a94662{color:var(--input-asterisk-color,var(--mantine-color-error))}.m_8f816625,.m_9d9d40e0,.m_fe47ce59{word-wrap:break-word;margin:0;padding:0;line-height:1.2;display:block}.m_8f816625{color:var(--mantine-color-error);font-size:var(--input-error-size,calc(var(--mantine-font-size-sm) - calc(.125rem * var(--mantine-scale))))}.m_9d9d40e0{color:var(--mantine-color-success);font-size:var(--input-success-size,calc(var(--mantine-font-size-sm) - calc(.125rem * var(--mantine-scale))))}.m_fe47ce59{color:var(--mantine-color-dimmed);font-size:var(--input-description-size,calc(var(--mantine-font-size-sm) - calc(.125rem * var(--mantine-scale))))}.m_8bffd616{display:flex}.m_96b553a6{--transition-duration:.15s;z-index:0;transition-property:transform,width,height;transition-duration:0s;transition-timing-function:ease;position:absolute;top:0;left:0}.m_96b553a6:where([data-initialized]){transition-duration:var(--transition-duration)}.m_96b553a6:where([data-hidden]){display:none}.m_9bdbb667{--accordion-radius:var(--mantine-radius-default)}.m_df78851f{overflow-wrap:break-word}.m_4ba554d4{padding:var(--mantine-spacing-md);padding-top:calc(var(--mantine-spacing-xs) / 2)}.m_8fa820a0{width:100%;margin:0;padding:0}.m_4ba585b8{width:100%;padding-inline:var(--mantine-spacing-md);opacity:1;cursor:pointer;color:var(--mantine-color-bright);background-color:#0000;flex-direction:row-reverse;align-items:center;display:flex}.m_4ba585b8:where([data-chevron-position=left]){flex-direction:row;padding-inline-start:0}.m_4ba585b8:where(:disabled,[data-disabled]){opacity:.4;cursor:not-allowed}@media (hover:hover){:where([data-mantine-color-scheme=light]) .m_6939a5e9:where(:not(:disabled,[data-disabled])):hover,:where([data-mantine-color-scheme=light]) .m_4271d21b:where(:not(:disabled,[data-disabled])):hover{background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_6939a5e9:where(:not(:disabled,[data-disabled])):hover,:where([data-mantine-color-scheme=dark]) .m_4271d21b:where(:not(:disabled,[data-disabled])):hover{background-color:var(--mantine-color-dark-6)}}@media (hover:none){:where([data-mantine-color-scheme=light]) .m_6939a5e9:where(:not(:disabled,[data-disabled])):active,:where([data-mantine-color-scheme=light]) .m_4271d21b:where(:not(:disabled,[data-disabled])):active{background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_6939a5e9:where(:not(:disabled,[data-disabled])):active,:where([data-mantine-color-scheme=dark]) .m_4271d21b:where(:not(:disabled,[data-disabled])):active{background-color:var(--mantine-color-dark-6)}}.m_df3ffa0f{color:inherit;font-weight:var(--mantine-font-weight-regular);text-overflow:ellipsis;padding-top:var(--mantine-spacing-sm);padding-bottom:var(--mantine-spacing-sm);flex:1;overflow:hidden}.m_3f35ae96{transition:transform var(--accordion-transition-duration,.2s) ease;width:var(--accordion-chevron-size,calc(.9375rem * var(--mantine-scale)));min-width:var(--accordion-chevron-size,calc(.9375rem * var(--mantine-scale)));justify-content:flex-start;align-items:center;display:flex;transform:rotate(0)}.m_3f35ae96:where([data-rotate]){transform:rotate(180deg)}.m_3f35ae96:where([data-position=left]){margin-inline-start:var(--mantine-spacing-md);margin-inline-end:var(--mantine-spacing-md)}.m_9bd771fe{justify-content:center;align-items:center;margin-inline-end:var(--mantine-spacing-sm);display:flex}.m_9bd771fe:where([data-chevron-position=left]){margin-inline-start:var(--mantine-spacing-lg);margin-inline-end:0}:where([data-mantine-color-scheme=light]) .m_9bd7b098{--item-border-color:var(--mantine-color-gray-3);--item-filled-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_9bd7b098{--item-border-color:var(--mantine-color-dark-4);--item-filled-color:var(--mantine-color-dark-6)}.m_fe19b709{border-bottom:1px solid var(--item-border-color)}.m_1f921b3b{border:1px solid var(--item-border-color);transition:background-color .15s}.m_1f921b3b:where([data-active]){background-color:var(--item-filled-color)}.m_1f921b3b:first-of-type,.m_1f921b3b:first-of-type>[data-accordion-control]{border-start-start-radius:var(--accordion-radius);border-start-end-radius:var(--accordion-radius)}.m_1f921b3b:last-of-type,.m_1f921b3b:last-of-type>[data-accordion-control]{border-end-end-radius:var(--accordion-radius);border-end-start-radius:var(--accordion-radius)}.m_1f921b3b+.m_1f921b3b{border-top:0}.m_2cdf939a{border-radius:var(--accordion-radius)}.m_2cdf939a:where([data-active]){background-color:var(--item-filled-color)}.m_9f59b069{background-color:var(--item-filled-color);border-radius:var(--accordion-radius);border:calc(.0625rem * var(--mantine-scale)) solid transparent;transition:background-color .15s}.m_9f59b069[data-active]{border-color:var(--item-border-color)}:where([data-mantine-color-scheme=light]) .m_9f59b069[data-active]{background-color:var(--mantine-color-white)}:where([data-mantine-color-scheme=dark]) .m_9f59b069[data-active]{background-color:var(--mantine-color-dark-7)}.m_9f59b069+.m_9f59b069{margin-top:var(--mantine-spacing-md)}.m_7f854edf{z-index:var(--affix-z-index);inset-inline-start:var(--affix-left);inset-inline-end:var(--affix-right);top:var(--affix-top);bottom:var(--affix-bottom);position:fixed}.m_66836ed3{--alert-radius:var(--mantine-radius-default);--alert-bg:var(--mantine-primary-color-light);--alert-bd:calc(.0625rem * var(--mantine-scale)) solid transparent;--alert-color:var(--mantine-primary-color-light-color);padding:var(--mantine-spacing-md) var(--mantine-spacing-md);border-radius:var(--alert-radius);background-color:var(--alert-bg);border:var(--alert-bd);color:var(--alert-color);position:relative;overflow:hidden}.m_a5d60502{display:flex}.m_667c2793{gap:var(--mantine-spacing-xs);flex-direction:column;flex:1;display:flex}.m_6a03f287{font-size:var(--mantine-font-size-sm);font-weight:var(--mantine-font-weight-bold);justify-content:space-between;align-items:center;display:flex}.m_6a03f287:where([data-with-close-button]){padding-inline-end:var(--mantine-spacing-md)}.m_698f4f23{text-overflow:ellipsis;display:block;overflow:hidden}.m_667f2a6a{width:calc(1.25rem * var(--mantine-scale));height:calc(1.25rem * var(--mantine-scale));margin-inline-end:var(--mantine-spacing-md);margin-top:calc(.0625rem * var(--mantine-scale));justify-content:flex-start;align-items:center;line-height:1;display:flex}.m_7fa78076{text-overflow:ellipsis;font-size:var(--mantine-font-size-sm);overflow:hidden}:where([data-mantine-color-scheme=light]) .m_7fa78076{color:var(--mantine-color-black)}:where([data-mantine-color-scheme=dark]) .m_7fa78076{color:var(--mantine-color-white)}.m_7fa78076:where([data-variant=filled]){color:var(--alert-color)}.m_7fa78076:where([data-variant=white]){color:var(--mantine-color-black)}.m_87f54839{width:calc(1.25rem * var(--mantine-scale));height:calc(1.25rem * var(--mantine-scale));color:var(--alert-color)}.m_b6d8b162{-webkit-tap-highlight-color:transparent;font-size:var(--text-fz,var(--mantine-font-size-md));line-height:var(--text-lh,var(--mantine-line-height-md));font-weight:var(--mantine-font-weight-regular);text-wrap:var(--text-text-wrap,var(--mantine-text-wrap));margin:0;padding:0;text-decoration:none}.m_b6d8b162:where([data-truncate]){text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.m_b6d8b162:where([data-truncate=start]){text-align:end;direction:rtl}:where([dir=rtl]) .m_b6d8b162:where([data-truncate=start]){text-align:start;direction:ltr}.m_b6d8b162:where([data-variant=gradient]){background-image:var(--text-gradient);-webkit-text-fill-color:transparent;-webkit-background-clip:text;background-clip:text}.m_b6d8b162:where([data-line-clamp]){text-overflow:ellipsis;-webkit-line-clamp:var(--text-line-clamp);-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.m_b6d8b162:where([data-inherit]){line-height:inherit;font-weight:inherit;font-size:inherit}.m_b6d8b162:where([data-inline]){line-height:1}.m_849cf0da{color:var(--mantine-color-anchor);appearance:none;cursor:pointer;background-color:#0000;border:none;margin:0;padding:0;text-decoration:none;display:inline}@media (hover:hover){.m_849cf0da:where([data-underline=hover]):hover{text-decoration:underline}}@media (hover:none){.m_849cf0da:where([data-underline=hover]):active{text-decoration:underline}}.m_849cf0da:where([data-underline=not-hover]){text-decoration:underline}@media (hover:hover){.m_849cf0da:where([data-underline=not-hover]):hover{text-decoration:none}}@media (hover:none){.m_849cf0da:where([data-underline=not-hover]):active{text-decoration:none}}.m_849cf0da:where([data-underline=always]){text-decoration:underline}.m_849cf0da:where([data-variant=gradient]),.m_849cf0da:where([data-variant=gradient]):hover{text-decoration:none}.m_849cf0da:where([data-line-clamp]){display:-webkit-box}.m_48204f9b{width:var(--slider-size);height:var(--slider-size);-webkit-user-select:none;user-select:none;border-radius:100%;justify-content:center;align-items:center;display:flex;position:relative}.m_48204f9b:focus-within{outline:2px solid var(--mantine-primary-color-filled);outline-offset:calc(.125rem * var(--mantine-scale))}.m_48204f9b{--slider-size:calc(3.75rem * var(--mantine-scale));--thumb-size:calc(var(--slider-size) / 5)}:where([data-mantine-color-scheme=light]) .m_48204f9b{background-color:var(--mantine-color-gray-1)}:where([data-mantine-color-scheme=dark]) .m_48204f9b{background-color:var(--mantine-color-dark-5)}.m_bb9cdbad{inset:calc(.0625rem * var(--mantine-scale));border-radius:var(--slider-size);pointer-events:none;position:absolute}.m_481dd586{width:calc(.125rem * var(--mantine-scale));transform:rotate(var(--angle));position:absolute;top:0;bottom:0;left:calc(50% - 1px)}.m_481dd586:before{content:"";top:calc(var(--thumb-size) / 3);left:calc(.03125rem * var(--mantine-scale));width:calc(.0625rem * var(--mantine-scale));height:calc(var(--thumb-size) / 1.5);position:absolute;transform:translate(-50%,-50%)}:where([data-mantine-color-scheme=light]) .m_481dd586:before{background-color:var(--mantine-color-gray-4)}:where([data-mantine-color-scheme=dark]) .m_481dd586:before{background-color:var(--mantine-color-dark-3)}.m_481dd586[data-label]:after{min-width:calc(1.125rem * var(--mantine-scale));text-align:center;content:attr(data-label);top:calc(-1.5rem * var(--mantine-scale));left:calc(-.4375rem * var(--mantine-scale));transform:rotate(calc(360deg - var(--angle)));font-size:var(--mantine-font-size-xs);position:absolute}.m_bc02ba3d{height:100%;width:calc(.1875rem * var(--mantine-scale));pointer-events:none;outline:none;position:absolute;inset-block:0;inset-inline:calc(50% - 1.5px) 0}.m_bc02ba3d:before{content:"";height:min(var(--thumb-size), calc(var(--slider-size) / 2));width:calc(.1875rem * var(--mantine-scale));position:absolute;top:0;right:0}:where([data-mantine-color-scheme=light]) .m_bc02ba3d:before{background-color:var(--mantine-color-gray-7)}:where([data-mantine-color-scheme=dark]) .m_bc02ba3d:before{background-color:var(--mantine-color-dark-1)}.m_bb8e875b{font-size:var(--mantine-font-size-xs)}.m_89ab340[data-resizing]{--app-shell-transition-duration:0s!important}.m_89ab340[data-disabled]{--app-shell-header-offset:0rem!important;--app-shell-navbar-offset:0rem!important;--app-shell-aside-offset:0rem!important;--app-shell-footer-offset:0rem!important}.m_89ab340[data-mode=static]{grid-template-columns:var(--app-shell-navbar-width,0) 1fr var(--app-shell-aside-width,0);grid-template-rows:auto 1fr auto;height:100%;display:grid;position:relative;overflow:auto}[data-mantine-color-scheme=light] .m_89ab340{--app-shell-border-color:var(--mantine-color-gray-3)}[data-mantine-color-scheme=dark] .m_89ab340{--app-shell-border-color:var(--mantine-color-dark-4)}.m_45252eee,.m_9cdde9a,.m_3b16f56b,.m_8983817,.m_3840c879{transition-duration:var(--app-shell-transition-duration);transition-timing-function:var(--app-shell-transition-timing-function)}.m_45252eee,.m_9cdde9a{top:var(--app-shell-header-offset,0rem);height:calc(100dvh - var(--app-shell-header-offset,0rem) - var(--app-shell-footer-offset,0rem));background-color:var(--mantine-color-body);flex-direction:column;transition-property:transform,top,height;display:flex;position:fixed}:where([data-mode=static]) .m_45252eee,:where([data-mode=static]) .m_9cdde9a{position:var(--app-shell-navbar-position,fixed);grid-row:var(--app-shell-navbar-grid-row,auto);height:100%}:where([data-layout=alt]) .m_45252eee,:where([data-layout=alt]) .m_9cdde9a{height:100dvh;top:0}:where([data-mode=static][data-layout=alt]) .m_45252eee,:where([data-mode=static][data-layout=alt]) .m_9cdde9a{grid-row:1/-1;height:100%}.m_45252eee{width:var(--app-shell-navbar-width);transform:var(--app-shell-navbar-transform);z-index:var(--app-shell-navbar-z-index);transition-property:transform,top,height;inset-inline-start:0}:where([data-mode=static]) .m_45252eee{grid-column:var(--app-shell-navbar-grid-column,auto);display:var(--app-shell-navbar-display,flex)}:where([dir=rtl]) .m_45252eee{transform:var(--app-shell-navbar-transform-rtl)}.m_45252eee:where([data-with-border]){border-inline-end:1px solid var(--app-shell-border-color)}.m_9cdde9a{width:var(--app-shell-aside-width);transform:var(--app-shell-aside-transform);z-index:var(--app-shell-aside-z-index);inset-inline-end:0}:where([data-mode=static]) .m_9cdde9a{position:var(--app-shell-aside-position,fixed);grid-column:var(--app-shell-aside-grid-column,auto);grid-row:var(--app-shell-aside-grid-row,auto);display:var(--app-shell-aside-display,flex)}:where([dir=rtl]) .m_9cdde9a{transform:var(--app-shell-aside-transform-rtl)}.m_9cdde9a:where([data-with-border]){border-inline-start:1px solid var(--app-shell-border-color)}:where([data-mode=static][data-layout=alt]) .m_9cdde9a{grid-row:1/-1}:where([data-scroll-locked]) .m_9cdde9a{visibility:var(--app-shell-aside-scroll-locked-visibility)}.m_8983817{padding-inline-start:calc(var(--app-shell-navbar-offset,0rem) + var(--app-shell-padding));padding-inline-end:calc(var(--app-shell-aside-offset,0rem) + var(--app-shell-padding));padding-top:calc(var(--app-shell-header-offset,0rem) + var(--app-shell-padding));padding-bottom:calc(var(--app-shell-footer-offset,0rem) + var(--app-shell-padding));min-height:100dvh;transition-property:padding}:where([data-mode=static]) .m_8983817{padding-inline-start:var(--app-shell-padding);padding-inline-end:var(--app-shell-padding);padding-top:var(--app-shell-padding);padding-bottom:var(--app-shell-padding);grid-column:var(--app-shell-main-column-start,1) / var(--app-shell-main-column-end,-1);grid-row:var(--app-shell-main-grid-row,2);min-height:auto}.m_3b16f56b,.m_3840c879{background-color:var(--mantine-color-body);transition-property:transform,margin-inline-start,margin-inline-end;position:fixed;inset-inline:0}:where([data-mode=static]) .m_3b16f56b,:where([data-mode=static]) .m_3840c879{position:var(--app-shell-header-position,fixed);grid-column:var(--app-shell-header-grid-column,auto)}:where([data-layout=alt]) .m_3b16f56b,:where([data-layout=alt]) .m_3840c879{margin-inline-start:var(--app-shell-navbar-offset,0rem);margin-inline-end:var(--app-shell-aside-offset,0rem)}:where([data-mode=static][data-layout=alt]) .m_3b16f56b,:where([data-mode=static][data-layout=alt]) .m_3840c879{grid-column:var(--app-shell-main-column-start,1) / var(--app-shell-main-column-end,-1);margin-inline:0}.m_3b16f56b{height:var(--app-shell-header-height);background-color:var(--mantine-color-body);transform:var(--app-shell-header-transform);z-index:var(--app-shell-header-z-index);top:0}:where([data-mode=static]) .m_3b16f56b{grid-row:var(--app-shell-header-grid-row,auto)}.m_3b16f56b:where([data-with-border]){border-bottom:1px solid var(--app-shell-border-color)}.m_3840c879{height:calc(var(--app-shell-footer-height) + env(safe-area-inset-bottom));padding-bottom:env(safe-area-inset-bottom);transform:var(--app-shell-footer-transform);z-index:var(--app-shell-footer-z-index);bottom:0}:where([data-mode=static]) .m_3840c879{position:var(--app-shell-footer-position,fixed);grid-column:var(--app-shell-footer-grid-column,auto);grid-row:var(--app-shell-footer-grid-row,auto)}:where([data-mode=static][data-layout=alt]) .m_3840c879{grid-column:var(--app-shell-main-column-start,1) / var(--app-shell-main-column-end,-1)}.m_3840c879:where([data-with-border]){border-top:1px solid var(--app-shell-border-color)}.m_6dcfc7c7{flex-grow:0}.m_6dcfc7c7:where([data-grow]){flex-grow:1}.m_71ac47fc{--ar-ratio:1;max-width:100%}.m_71ac47fc>:where(:not(style)){aspect-ratio:var(--ar-ratio);width:100%}.m_71ac47fc>:where(img,video){object-fit:cover}.m_88b62a41{--combobox-padding:calc(.25rem * var(--mantine-scale));padding:var(--combobox-padding)}.m_88b62a41:has([data-mantine-scrollbar]) .m_985517d8{max-width:calc(100% + var(--combobox-padding))}.m_88b62a41[data-composed]{padding-inline-end:0}.m_88b62a41[data-hidden]{display:none}.m_88b62a41[data-floating-height=viewport]:not([data-hidden]){--combobox-floating-options-max-height:calc(var(--combobox-floating-max-height,100vh) - var(--combobox-padding) * 2);max-height:var(--combobox-floating-max-height,none);overflow:hidden}.m_88b62a41,.m_b2821a6e{--combobox-option-padding-xs:calc(.25rem * var(--mantine-scale)) calc(.5rem * var(--mantine-scale));--combobox-option-padding-sm:calc(.375rem * var(--mantine-scale)) calc(.625rem * var(--mantine-scale));--combobox-option-padding-md:calc(.5rem * var(--mantine-scale)) calc(.75rem * var(--mantine-scale));--combobox-option-padding-lg:calc(.625rem * var(--mantine-scale)) calc(1rem * var(--mantine-scale));--combobox-option-padding-xl:calc(.875rem * var(--mantine-scale)) calc(1.25rem * var(--mantine-scale));--combobox-option-padding:var(--combobox-option-padding-sm)}.m_92253aa5{padding:var(--combobox-option-padding);font-size:var(--combobox-option-fz,var(--mantine-font-size-sm));border-radius:var(--mantine-radius-default);color:inherit;cursor:pointer;overflow-wrap:break-word;background-color:#0000}.m_92253aa5:where([data-combobox-selected]){background-color:var(--mantine-primary-color-filled);color:var(--mantine-color-white)}.m_92253aa5:where([data-combobox-disabled]){cursor:not-allowed;opacity:.35}@media (hover:hover){:where([data-mantine-color-scheme=light]) .m_92253aa5:hover:where(:not([data-combobox-selected],[data-combobox-disabled])){background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_92253aa5:hover:where(:not([data-combobox-selected],[data-combobox-disabled])){background-color:var(--mantine-color-dark-7)}}@media (hover:none){:where([data-mantine-color-scheme=light]) .m_92253aa5:active:where(:not([data-combobox-selected],[data-combobox-disabled])){background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_92253aa5:active:where(:not([data-combobox-selected],[data-combobox-disabled])){background-color:var(--mantine-color-dark-7)}}.m_985517d8{margin-inline:calc(var(--combobox-padding) * -1);margin-top:calc(var(--combobox-padding) * -1);width:calc(100% + var(--combobox-padding) * 2);border-top-width:0;margin-bottom:var(--combobox-padding);border-inline-width:0;border-end-end-radius:0;border-end-start-radius:0;position:relative}:where([data-mantine-color-scheme=light]) .m_985517d8,:where([data-mantine-color-scheme=light]) .m_985517d8:focus{border-color:var(--mantine-color-gray-2)}:where([data-mantine-color-scheme=dark]) .m_985517d8,:where([data-mantine-color-scheme=dark]) .m_985517d8:focus{border-color:var(--mantine-color-dark-4)}:where([data-mantine-color-scheme=light]) .m_985517d8{background-color:var(--mantine-color-white)}:where([data-mantine-color-scheme=dark]) .m_985517d8{background-color:var(--mantine-color-dark-7)}.m_2530cd1d{font-size:var(--combobox-option-fz,var(--mantine-font-size-sm));text-align:center;padding:var(--combobox-option-padding);color:var(--mantine-color-dimmed)}.m_858f94bd,.m_82b967cb{font-size:var(--combobox-option-fz,var(--mantine-font-size-sm));margin-inline:calc(var(--combobox-padding) * -1);padding:var(--combobox-option-padding);border:0 solid #0000}:where([data-mantine-color-scheme=light]) .m_858f94bd,:where([data-mantine-color-scheme=light]) .m_82b967cb{border-color:var(--mantine-color-gray-2)}:where([data-mantine-color-scheme=dark]) .m_858f94bd,:where([data-mantine-color-scheme=dark]) .m_82b967cb{border-color:var(--mantine-color-dark-4)}.m_82b967cb{border-top-width:calc(.0625rem * var(--mantine-scale));margin-top:var(--combobox-padding);margin-bottom:calc(var(--combobox-padding) * -1)}.m_858f94bd{border-bottom-width:calc(.0625rem * var(--mantine-scale));margin-bottom:var(--combobox-padding);margin-top:calc(var(--combobox-padding) * -1)}.m_254f3e4f:has(.m_2bb2e9e5:only-child){display:none}.m_2bb2e9e5{color:var(--mantine-color-dimmed);font-size:calc(var(--combobox-option-fz,var(--mantine-font-size-sm)) * .85);padding:var(--combobox-option-padding);font-weight:var(--mantine-font-weight-medium);align-items:center;display:flex;position:relative}.m_2bb2e9e5:after{content:"";height:calc(.0625rem * var(--mantine-scale));flex:1;margin-inline-start:var(--mantine-spacing-xs);inset-inline:0}:where([data-mantine-color-scheme=light]) .m_2bb2e9e5:after{background-color:var(--mantine-color-gray-2)}:where([data-mantine-color-scheme=dark]) .m_2bb2e9e5:after{background-color:var(--mantine-color-dark-4)}.m_2bb2e9e5:only-child{display:none}.m_2943220b{--combobox-chevron-size-xs:calc(.875rem * var(--mantine-scale));--combobox-chevron-size-sm:calc(1.125rem * var(--mantine-scale));--combobox-chevron-size-md:calc(1.25rem * var(--mantine-scale));--combobox-chevron-size-lg:calc(1.5rem * var(--mantine-scale));--combobox-chevron-size-xl:calc(1.75rem * var(--mantine-scale));--combobox-chevron-size:var(--combobox-chevron-size-sm)}:where([data-mantine-color-scheme=light]) .m_2943220b{--_combobox-chevron-color:var(--combobox-chevron-color,var(--mantine-color-gray-6))}:where([data-mantine-color-scheme=dark]) .m_2943220b{--_combobox-chevron-color:var(--combobox-chevron-color,var(--mantine-color-dark-3))}.m_2943220b{width:var(--combobox-chevron-size);height:var(--combobox-chevron-size);color:var(--_combobox-chevron-color)}.m_2943220b:where([data-error]){color:var(--combobox-chevron-color,var(--mantine-color-error))}.m_390b5f4{align-items:center;gap:calc(.5rem * var(--mantine-scale));display:flex}.m_390b5f4:where([data-reverse]){justify-content:space-between}.m_8ee53fc2{opacity:.4;width:.8em;min-width:.8em;height:.8em}:where([data-combobox-selected]) .m_8ee53fc2{opacity:1}.m_a530ee0a{width:.8em;min-width:.8em;height:.8em}.m_5f75b09e{--label-lh-xs:calc(1rem * var(--mantine-scale));--label-lh-sm:calc(1.25rem * var(--mantine-scale));--label-lh-md:calc(1.5rem * var(--mantine-scale));--label-lh-lg:calc(1.875rem * var(--mantine-scale));--label-lh-xl:calc(2.25rem * var(--mantine-scale));--label-lh:var(--label-lh-sm)}.m_5f75b09e[data-label-position=left]{--label-order:1;--label-offset-end:var(--mantine-spacing-sm);--label-offset-start:0}.m_5f75b09e[data-label-position=right]{--label-order:2;--label-offset-end:0;--label-offset-start:var(--mantine-spacing-sm)}.m_5f6e695e{-webkit-tap-highlight-color:transparent;display:flex}.m_d3ea56bb{--label-cursor:var(--mantine-cursor-type);-webkit-tap-highlight-color:transparent;font-size:var(--label-fz,var(--mantine-font-size-sm));line-height:var(--label-lh);cursor:var(--label-cursor);flex-direction:column;order:var(--label-order);display:inline-flex}fieldset:disabled .m_d3ea56bb,.m_d3ea56bb[data-disabled]{--label-cursor:not-allowed}.m_8ee546b8{cursor:var(--label-cursor);color:inherit;padding-inline-start:var(--label-offset-start);padding-inline-end:var(--label-offset-end)}fieldset:disabled .m_8ee546b8,.m_8ee546b8:where([data-disabled]){color:var(--mantine-color-disabled-color)}.m_328f68c0{margin-top:calc(var(--mantine-spacing-xs) / 2);cursor:default;padding-inline-start:var(--label-offset-start);padding-inline-end:var(--label-offset-end)}.m_8e8a99cc{margin-top:calc(var(--mantine-spacing-xs) / 2);padding-inline-start:var(--label-offset-start);padding-inline-end:var(--label-offset-end)}.m_26775b0a{--card-radius:var(--mantine-radius-default);border-radius:var(--card-radius);cursor:pointer;width:100%;display:block}.m_26775b0a :where(*){cursor:inherit}.m_26775b0a:where([data-with-border]){border:calc(.0625rem * var(--mantine-scale)) solid transparent}:where([data-mantine-color-scheme=light]) .m_26775b0a:where([data-with-border]){border-color:var(--mantine-color-gray-3)}:where([data-mantine-color-scheme=dark]) .m_26775b0a:where([data-with-border]){border-color:var(--mantine-color-dark-4)}.m_5e5256ee{--checkbox-size-xs:calc(1rem * var(--mantine-scale));--checkbox-size-sm:calc(1.25rem * var(--mantine-scale));--checkbox-size-md:calc(1.5rem * var(--mantine-scale));--checkbox-size-lg:calc(1.875rem * var(--mantine-scale));--checkbox-size-xl:calc(2.25rem * var(--mantine-scale));--checkbox-size:var(--checkbox-size-sm);--checkbox-color:var(--mantine-primary-color-filled)}.m_5e5256ee:where([data-variant=filled]){--checkbox-icon-color:var(--mantine-color-white)}.m_5e5256ee:where([data-variant=outline]){--checkbox-icon-color:var(--checkbox-color)}.m_5e5256ee{border:calc(.0625rem * var(--mantine-scale)) solid transparent;width:var(--checkbox-size);min-width:var(--checkbox-size);height:var(--checkbox-size);min-height:var(--checkbox-size);border-radius:var(--checkbox-radius,var(--mantine-radius-default));cursor:var(--mantine-cursor-type);-webkit-tap-highlight-color:transparent;justify-content:center;align-items:center;transition:border-color .1s,background-color .1s;display:flex;position:relative}:where([data-mantine-color-scheme=light]) .m_5e5256ee{background-color:var(--mantine-color-white);border-color:var(--mantine-color-gray-4)}:where([data-mantine-color-scheme=dark]) .m_5e5256ee{background-color:var(--mantine-color-dark-6);border-color:var(--mantine-color-dark-4)}.m_5e5256ee[data-indeterminate],.m_5e5256ee[data-checked]{background-color:var(--checkbox-color);border-color:var(--checkbox-color)}.m_5e5256ee[data-indeterminate]>.m_1b1c543a,.m_5e5256ee[data-checked]>.m_1b1c543a{opacity:1;color:var(--checkbox-icon-color);transform:none}.m_5e5256ee[data-disabled]{cursor:not-allowed;border-color:var(--mantine-color-disabled-border);background-color:var(--mantine-color-disabled)}[data-mantine-color-scheme=light] .m_5e5256ee[data-disabled][data-checked]>.m_1b1c543a{color:var(--mantine-color-gray-5)}[data-mantine-color-scheme=dark] .m_5e5256ee[data-disabled][data-checked]>.m_1b1c543a{color:var(--mantine-color-dark-3)}.m_76e20374[data-indeterminate]:not([data-disabled]),.m_76e20374[data-checked]:not([data-disabled]){border-color:var(--checkbox-color);background-color:#0000}.m_76e20374[data-indeterminate]:not([data-disabled])>.m_1b1c543a,.m_76e20374[data-checked]:not([data-disabled])>.m_1b1c543a{color:var(--checkbox-icon-color);opacity:1;transform:none}.m_1b1c543a{color:#0000;pointer-events:none;width:60%;transform:translateY(calc(.3125rem * var(--mantine-scale))) scale(.5);opacity:1;transition:transform .1s,opacity .1s;display:block}.m_bf2d988c{--checkbox-size-xs:calc(1rem * var(--mantine-scale));--checkbox-size-sm:calc(1.25rem * var(--mantine-scale));--checkbox-size-md:calc(1.5rem * var(--mantine-scale));--checkbox-size-lg:calc(1.875rem * var(--mantine-scale));--checkbox-size-xl:calc(2.25rem * var(--mantine-scale));--checkbox-size:var(--checkbox-size-sm);--checkbox-color:var(--mantine-primary-color-filled)}.m_bf2d988c:where([data-variant=filled]){--checkbox-icon-color:var(--mantine-color-white)}.m_bf2d988c:where([data-variant=outline]){--checkbox-icon-color:var(--checkbox-color)}.m_26062bec{width:var(--checkbox-size);height:var(--checkbox-size);order:1;position:relative}.m_26062bec:where([data-label-position=left]){order:2}.m_26063560{appearance:none;border:calc(.0625rem * var(--mantine-scale)) solid transparent;width:var(--checkbox-size);height:var(--checkbox-size);border-radius:var(--checkbox-radius,var(--mantine-radius-default));cursor:var(--mantine-cursor-type);-webkit-tap-highlight-color:transparent;margin:0;padding:0;transition:border-color .1s,background-color .1s;display:block}:where([data-mantine-color-scheme=light]) .m_26063560{background-color:var(--mantine-color-white);border-color:var(--mantine-color-gray-4)}:where([data-mantine-color-scheme=dark]) .m_26063560{background-color:var(--mantine-color-dark-6);border-color:var(--mantine-color-dark-4)}.m_26063560:where([data-with-error-styles][data-error]){border-color:var(--mantine-color-error)}.m_26063560[data-indeterminate],.m_26063560:checked{background-color:var(--checkbox-color);border-color:var(--checkbox-color)}.m_26063560[data-indeterminate]+.m_bf295423,.m_26063560:checked+.m_bf295423{opacity:1;transform:none}.m_26063560:disabled{cursor:not-allowed;border-color:var(--mantine-color-disabled-border);background-color:var(--mantine-color-disabled)}.m_26063560:disabled+.m_bf295423{color:var(--mantine-color-disabled-color)}.m_215c4542+.m_bf295423{color:var(--checkbox-color)}.m_215c4542[data-indeterminate]:not(:disabled),.m_215c4542:checked:not(:disabled){border-color:var(--checkbox-color);background-color:#0000}.m_215c4542[data-indeterminate]:not(:disabled)+.m_bf295423,.m_215c4542:checked:not(:disabled)+.m_bf295423{color:var(--checkbox-icon-color);opacity:1;transform:none}.m_bf295423{width:60%;color:var(--checkbox-icon-color);pointer-events:none;transform:translateY(calc(.3125rem * var(--mantine-scale))) scale(.5);opacity:0;margin:auto;transition:transform .1s,opacity .1s;position:absolute;inset:0}.m_11def92b{--ag-spacing:var(--mantine-spacing-sm);--ag-offset:calc(var(--ag-spacing) * -1);padding-inline-start:var(--ag-spacing);display:flex}.m_f85678b6{--avatar-size-xs:calc(1rem * var(--mantine-scale));--avatar-size-sm:calc(1.625rem * var(--mantine-scale));--avatar-size-md:calc(2.375rem * var(--mantine-scale));--avatar-size-lg:calc(3.5rem * var(--mantine-scale));--avatar-size-xl:calc(5.25rem * var(--mantine-scale));--avatar-size:var(--avatar-size-md);--avatar-radius:calc(62.5rem * var(--mantine-scale));--avatar-bg:var(--mantine-color-gray-light);--avatar-bd:calc(.0625rem * var(--mantine-scale)) solid transparent;--avatar-color:var(--mantine-color-gray-light-color);--avatar-placeholder-fz:calc(var(--avatar-size) / 2.5);-webkit-tap-highlight-color:transparent;-webkit-user-select:none;user-select:none;border-radius:var(--avatar-radius);width:var(--avatar-size);height:var(--avatar-size);min-width:var(--avatar-size);padding:0;text-decoration:none;display:block;position:relative;overflow:hidden}.m_f85678b6:where([data-within-group]){border:2px solid var(--mantine-color-body);background:var(--mantine-color-body);margin-inline-start:var(--ag-offset)}.m_11f8ac07{object-fit:cover;width:100%;height:100%;display:block}.m_104cd71f{font-weight:var(--mantine-font-weight-bold);-webkit-user-select:none;user-select:none;border-radius:var(--avatar-radius);width:100%;height:100%;font-size:var(--avatar-placeholder-fz);background:var(--avatar-bg);border:var(--avatar-bd);color:var(--avatar-color);justify-content:center;align-items:center;display:flex}.m_104cd71f>[data-avatar-placeholder-icon]{width:70%;height:70%}.m_2ce0de02{border-radius:var(--bi-radius,0);background-position:50%;background-size:cover;border:0;width:100%;text-decoration:none;display:block}.m_347db0ec{--badge-height-xs:calc(1rem * var(--mantine-scale));--badge-height-sm:calc(1.125rem * var(--mantine-scale));--badge-height-md:calc(1.25rem * var(--mantine-scale));--badge-height-lg:calc(1.625rem * var(--mantine-scale));--badge-height-xl:calc(2rem * var(--mantine-scale));--badge-fz-xs:calc(.5625rem * var(--mantine-scale));--badge-fz-sm:calc(.625rem * var(--mantine-scale));--badge-fz-md:calc(.6875rem * var(--mantine-scale));--badge-fz-lg:calc(.8125rem * var(--mantine-scale));--badge-fz-xl:calc(1rem * var(--mantine-scale));--badge-padding-x-xs:calc(.375rem * var(--mantine-scale));--badge-padding-x-sm:calc(.5rem * var(--mantine-scale));--badge-padding-x-md:calc(.625rem * var(--mantine-scale));--badge-padding-x-lg:calc(.75rem * var(--mantine-scale));--badge-padding-x-xl:calc(1rem * var(--mantine-scale));--badge-height:var(--badge-height-md);--badge-fz:var(--badge-fz-md);--badge-padding-x:var(--badge-padding-x-md);--badge-radius:calc(62.5rem * var(--mantine-scale));--badge-lh:calc(var(--badge-height) - calc(.125rem * var(--mantine-scale)));--badge-color:var(--mantine-color-white);--badge-bg:var(--mantine-primary-color-filled);--badge-border-width:calc(.0625rem * var(--mantine-scale));--badge-bd:var(--badge-border-width) solid transparent;-webkit-tap-highlight-color:transparent;font-size:var(--badge-fz);border-radius:var(--badge-radius);height:var(--badge-height);line-height:var(--badge-lh);padding:0 var(--badge-padding-x);text-transform:uppercase;width:fit-content;font-weight:var(--mantine-font-weight-bold);letter-spacing:calc(.015625rem * var(--mantine-scale));cursor:default;text-overflow:ellipsis;color:var(--badge-color);background:var(--badge-bg);border:var(--badge-bd);justify-content:center;align-items:center;text-decoration:none;display:inline-grid;overflow:hidden}.m_347db0ec:where([data-with-left-section],[data-variant=dot]){grid-template-columns:auto 1fr}.m_347db0ec:where([data-with-right-section]){grid-template-columns:1fr auto}.m_347db0ec:where([data-with-left-section][data-with-right-section],[data-variant=dot][data-with-right-section]){grid-template-columns:auto 1fr auto}.m_347db0ec:where([data-block]){width:100%;display:flex}.m_347db0ec:where([data-circle]){padding-inline:calc(.125rem * var(--mantine-scale));width:var(--badge-height);display:flex}.m_fbd81e3d{--badge-dot-size:calc(var(--badge-height) / 3.4)}:where([data-mantine-color-scheme=light]) .m_fbd81e3d{background-color:var(--mantine-color-white);border-color:var(--mantine-color-gray-4);color:var(--mantine-color-black)}:where([data-mantine-color-scheme=dark]) .m_fbd81e3d{background-color:var(--mantine-color-dark-5);border-color:var(--mantine-color-dark-5);color:var(--mantine-color-white)}.m_fbd81e3d:before{content:"";width:var(--badge-dot-size);height:var(--badge-dot-size);border-radius:var(--badge-dot-size);background-color:var(--badge-dot-color);margin-inline-end:var(--badge-dot-size);display:block}.m_5add502a{white-space:nowrap;text-overflow:ellipsis;text-align:center;cursor:inherit;overflow:hidden}.m_91fdda9b{--badge-section-margin:calc(var(--mantine-spacing-xs) / 2);max-height:calc(var(--badge-height) - var(--badge-border-width) * 2);justify-content:center;align-items:center;display:inline-flex}.m_91fdda9b:where([data-position=left]){margin-inline-end:var(--badge-section-margin)}.m_91fdda9b:where([data-position=right]){margin-inline-start:var(--badge-section-margin)}.m_ddec01c0{--blockquote-border:3px solid var(--bq-bd);text-wrap:var(--bq-text-wrap,var(--mantine-text-wrap));border-inline-start:var(--blockquote-border);padding:var(--mantine-spacing-xl) calc(2.375rem * var(--mantine-scale));border-start-end-radius:var(--bq-radius);border-end-end-radius:var(--bq-radius);margin:0;position:relative}:where([data-mantine-color-scheme=light]) .m_ddec01c0{background-color:var(--bq-bg-light)}:where([data-mantine-color-scheme=dark]) .m_ddec01c0{background-color:var(--bq-bg-dark)}.m_dde7bd57{--blockquote-icon-offset:calc(var(--bq-icon-size) / -2);color:var(--bq-bd);background-color:var(--mantine-color-body);top:var(--blockquote-icon-offset);width:var(--bq-icon-size);height:var(--bq-icon-size);border-radius:var(--bq-icon-size);justify-content:center;align-items:center;display:flex;position:absolute;inset-inline-start:var(--blockquote-icon-offset)}.m_dde51a35{margin-top:var(--mantine-spacing-md);opacity:.6;font-size:85%;display:block}.m_8b3717df{flex-wrap:wrap;align-items:center;display:flex}.m_f678d540{white-space:nowrap;-webkit-tap-highlight-color:transparent;line-height:1}.m_3b8f2208{margin-inline:var(--bc-separator-margin,var(--mantine-spacing-xs));justify-content:center;align-items:center;line-height:1;display:flex}:where([data-mantine-color-scheme=light]) .m_3b8f2208{color:var(--mantine-color-gray-7)}:where([data-mantine-color-scheme=dark]) .m_3b8f2208{color:var(--mantine-color-dark-2)}.m_fea6bf1a{--burger-size-xs:calc(.75rem * var(--mantine-scale));--burger-size-sm:calc(1.125rem * var(--mantine-scale));--burger-size-md:calc(1.5rem * var(--mantine-scale));--burger-size-lg:calc(2.125rem * var(--mantine-scale));--burger-size-xl:calc(2.625rem * var(--mantine-scale));--burger-size:var(--burger-size-md);--burger-line-size:calc(var(--burger-size) / 12);width:calc(var(--burger-size) + var(--mantine-spacing-xs));height:calc(var(--burger-size) + var(--mantine-spacing-xs));padding:calc(var(--mantine-spacing-xs) / 2);cursor:pointer}:where([data-mantine-color-scheme=light]) .m_fea6bf1a{--burger-color:var(--mantine-color-black)}:where([data-mantine-color-scheme=dark]) .m_fea6bf1a{--burger-color:var(--mantine-color-white)}.m_d4fb9cad{-webkit-user-select:none;user-select:none;position:relative}.m_d4fb9cad,.m_d4fb9cad:before,.m_d4fb9cad:after{width:var(--burger-size);height:var(--burger-line-size);background-color:var(--burger-color);outline:calc(.0625rem * var(--mantine-scale)) solid transparent;transition-property:background-color,transform;transition-duration:var(--burger-transition-duration,.3s);transition-timing-function:var(--burger-transition-timing-function,ease);display:block}.m_d4fb9cad:before,.m_d4fb9cad:after{content:"";position:absolute;inset-inline-start:0}.m_d4fb9cad:before{top:calc(var(--burger-size) / -3)}.m_d4fb9cad:after{top:calc(var(--burger-size) / 3)}.m_d4fb9cad[data-opened]{background-color:#0000}.m_d4fb9cad[data-opened]:before{transform:translateY(calc(var(--burger-size) / 3)) rotate(45deg)}.m_d4fb9cad[data-opened]:after{transform:translateY(calc(var(--burger-size) / -3)) rotate(-45deg)}.m_77c9d27d{--button-height-xs:calc(1.875rem * var(--mantine-scale));--button-height-sm:calc(2.25rem * var(--mantine-scale));--button-height-md:calc(2.625rem * var(--mantine-scale));--button-height-lg:calc(3.125rem * var(--mantine-scale));--button-height-xl:calc(3.75rem * var(--mantine-scale));--button-height-compact-xs:calc(1.375rem * var(--mantine-scale));--button-height-compact-sm:calc(1.625rem * var(--mantine-scale));--button-height-compact-md:calc(1.875rem * var(--mantine-scale));--button-height-compact-lg:calc(2.125rem * var(--mantine-scale));--button-height-compact-xl:calc(2.5rem * var(--mantine-scale));--button-padding-x-xs:calc(.875rem * var(--mantine-scale));--button-padding-x-sm:calc(1.125rem * var(--mantine-scale));--button-padding-x-md:calc(1.375rem * var(--mantine-scale));--button-padding-x-lg:calc(1.625rem * var(--mantine-scale));--button-padding-x-xl:calc(2rem * var(--mantine-scale));--button-padding-x-compact-xs:calc(.4375rem * var(--mantine-scale));--button-padding-x-compact-sm:calc(.5rem * var(--mantine-scale));--button-padding-x-compact-md:calc(.625rem * var(--mantine-scale));--button-padding-x-compact-lg:calc(.75rem * var(--mantine-scale));--button-padding-x-compact-xl:calc(.875rem * var(--mantine-scale));--button-height:var(--button-height-sm);--button-padding-x:var(--button-padding-x-sm);--button-color:var(--mantine-color-white);-webkit-user-select:none;user-select:none;font-weight:var(--mantine-font-weight-medium);text-align:center;cursor:pointer;border-radius:var(--button-radius,var(--mantine-radius-default));width:auto;line-height:1;font-size:var(--button-fz,var(--mantine-font-size-sm));background:var(--button-bg,var(--mantine-primary-color-filled));border:var(--button-bd,calc(.0625rem * var(--mantine-scale)) solid transparent);color:var(--button-color,var(--mantine-color-white));height:var(--button-height,var(--button-height-sm));padding-inline:var(--button-padding-x,var(--button-padding-x-sm));vertical-align:middle;display:inline-block;position:relative;overflow:hidden}.m_77c9d27d:where([data-block]){width:100%;display:block}.m_77c9d27d:where([data-with-left-section]){padding-inline-start:calc(var(--button-padding-x) / 1.5)}.m_77c9d27d:where([data-with-right-section]){padding-inline-end:calc(var(--button-padding-x) / 1.5)}.m_77c9d27d:where(:disabled:not([data-loading]),[data-disabled]:not([data-loading])){cursor:not-allowed;border:calc(.0625rem * var(--mantine-scale)) solid transparent;color:var(--mantine-color-disabled-color);background:var(--mantine-color-disabled);transform:none}.m_77c9d27d:before{content:"";pointer-events:none;inset:calc(-.0625rem * var(--mantine-scale));border-radius:var(--button-radius,var(--mantine-radius-default));opacity:0;filter:blur(12px);transition:transform .15s,opacity .1s;position:absolute;transform:translateY(-100%)}:where([data-mantine-color-scheme=light]) .m_77c9d27d:before{background-color:#ffffff26}:where([data-mantine-color-scheme=dark]) .m_77c9d27d:before{background-color:#00000026}.m_77c9d27d:where([data-loading]){cursor:not-allowed;transform:none}.m_77c9d27d:where([data-loading]):before{opacity:1;transform:translateY(0)}.m_77c9d27d:where([data-loading]) .m_80f1301b{opacity:0;transform:translateY(100%)}@media (hover:hover){.m_77c9d27d:hover:where(:not([data-loading],:disabled,[data-disabled])){background-color:var(--button-hover,var(--mantine-primary-color-filled-hover));color:var(--button-hover-color,var(--button-color))}}@media (hover:none){.m_77c9d27d:active:where(:not([data-loading],:disabled,[data-disabled])){background-color:var(--button-hover,var(--mantine-primary-color-filled-hover));color:var(--button-hover-color,var(--button-color))}}.m_80f1301b{align-items:center;justify-content:var(--button-justify,center);height:100%;transition:transform .15s,opacity .1s;display:flex;overflow:visible}.m_811560b9{white-space:nowrap;opacity:1;text-box-trim:trim-both;text-box-edge:cap alphabetic;align-items:center;height:100%;display:flex;overflow:hidden}.m_811560b9:where([data-loading]){opacity:.2}.m_a74036a{align-items:center;display:flex}.m_a74036a:where([data-position=left]){margin-inline-end:var(--mantine-spacing-xs)}.m_a74036a:where([data-position=right]){margin-inline-start:var(--mantine-spacing-xs)}.m_a25b86ee{position:absolute;top:50%;left:50%}.m_80d6d844{--button-border-width:calc(.0625rem * var(--mantine-scale));display:flex}.m_80d6d844 :where(.m_77c9d27d):focus{z-index:1;position:relative}.m_80d6d844[data-orientation=horizontal]{flex-direction:row}.m_80d6d844[data-orientation=horizontal] .m_77c9d27d:not(:only-child):first-child,.m_80d6d844[data-orientation=horizontal] .m_70be2a01:not(:only-child):first-child{border-inline-end-width:calc(var(--button-border-width) / 2);border-start-end-radius:0;border-end-end-radius:0}.m_80d6d844[data-orientation=horizontal] .m_77c9d27d:not(:only-child):last-child,.m_80d6d844[data-orientation=horizontal] .m_70be2a01:not(:only-child):last-child{border-inline-start-width:calc(var(--button-border-width) / 2);border-start-start-radius:0;border-end-start-radius:0}.m_80d6d844[data-orientation=horizontal] .m_77c9d27d:not(:only-child):not(:first-child):not(:last-child),.m_80d6d844[data-orientation=horizontal] .m_70be2a01:not(:only-child):not(:first-child):not(:last-child){border-inline-width:calc(var(--button-border-width) / 2);border-radius:0}.m_80d6d844[data-orientation=vertical]{flex-direction:column}.m_80d6d844[data-orientation=vertical] .m_77c9d27d:not(:only-child):first-child,.m_80d6d844[data-orientation=vertical] .m_70be2a01:not(:only-child):first-child{border-bottom-width:calc(var(--button-border-width) / 2);border-end-end-radius:0;border-end-start-radius:0}.m_80d6d844[data-orientation=vertical] .m_77c9d27d:not(:only-child):last-child,.m_80d6d844[data-orientation=vertical] .m_70be2a01:not(:only-child):last-child{border-top-width:calc(var(--button-border-width) / 2);border-start-start-radius:0;border-start-end-radius:0}.m_80d6d844[data-orientation=vertical] .m_77c9d27d:not(:only-child):not(:first-child):not(:last-child),.m_80d6d844[data-orientation=vertical] .m_70be2a01:not(:only-child):not(:first-child):not(:last-child){border-bottom-width:calc(var(--button-border-width) / 2);border-top-width:calc(var(--button-border-width) / 2);border-radius:0}.m_70be2a01{--section-height-xs:calc(1.875rem * var(--mantine-scale));--section-height-sm:calc(2.25rem * var(--mantine-scale));--section-height-md:calc(2.625rem * var(--mantine-scale));--section-height-lg:calc(3.125rem * var(--mantine-scale));--section-height-xl:calc(3.75rem * var(--mantine-scale));--section-height-compact-xs:calc(1.375rem * var(--mantine-scale));--section-height-compact-sm:calc(1.625rem * var(--mantine-scale));--section-height-compact-md:calc(1.875rem * var(--mantine-scale));--section-height-compact-lg:calc(2.125rem * var(--mantine-scale));--section-height-compact-xl:calc(2.5rem * var(--mantine-scale));--section-padding-x-xs:calc(.875rem * var(--mantine-scale));--section-padding-x-sm:calc(1.125rem * var(--mantine-scale));--section-padding-x-md:calc(1.375rem * var(--mantine-scale));--section-padding-x-lg:calc(1.625rem * var(--mantine-scale));--section-padding-x-xl:calc(2rem * var(--mantine-scale));--section-padding-x-compact-xs:calc(.4375rem * var(--mantine-scale));--section-padding-x-compact-sm:calc(.5rem * var(--mantine-scale));--section-padding-x-compact-md:calc(.625rem * var(--mantine-scale));--section-padding-x-compact-lg:calc(.75rem * var(--mantine-scale));--section-padding-x-compact-xl:calc(.875rem * var(--mantine-scale));--section-height:var(--section-height-sm);--section-padding-x:var(--section-padding-x-sm);--section-color:var(--mantine-color-white);font-weight:var(--mantine-font-weight-medium);border-radius:var(--section-radius,var(--mantine-radius-default));width:auto;font-size:var(--section-fz,var(--mantine-font-size-sm));background:var(--section-bg,var(--mantine-primary-color-filled));border:var(--section-bd,calc(.0625rem * var(--mantine-scale)) solid transparent);color:var(--section-color,var(--mantine-color-white));height:var(--section-height,var(--section-height-sm));padding-inline:var(--section-padding-x,var(--section-padding-x-sm));vertical-align:middle;justify-content:center;align-items:center;line-height:1;display:inline-flex}.m_e615b15f{--card-padding:var(--mantine-spacing-md);padding:var(--card-padding);color:var(--mantine-color-text);display:flex;position:relative;overflow:hidden}.m_e615b15f:where([data-orientation=horizontal]){flex-direction:row}.m_e615b15f:where([data-orientation=vertical]){flex-direction:column}:where([data-mantine-color-scheme=light]) .m_e615b15f{background-color:var(--mantine-color-white)}:where([data-mantine-color-scheme=dark]) .m_e615b15f{background-color:var(--mantine-color-dark-6)}.m_599a2148{margin-inline:calc(var(--card-padding) * -1);display:block}:where([data-mantine-color-scheme=light]) .m_599a2148{--border-color:var(--mantine-color-gray-3)}:where([data-mantine-color-scheme=dark]) .m_599a2148{--border-color:var(--mantine-color-dark-4)}.m_599a2148:where([data-orientation=vertical]):first-child{margin-top:calc(var(--card-padding) * -1);border-top:none!important}.m_599a2148:where([data-orientation=vertical]):last-child{margin-bottom:calc(var(--card-padding) * -1);border-bottom:none!important}.m_599a2148:where([data-orientation=vertical])[data-inherit-padding]{padding-inline:var(--card-padding)}.m_599a2148:where([data-orientation=vertical])[data-with-border]{border-top:1px solid var(--border-color);border-bottom:1px solid var(--border-color)}.m_599a2148:where([data-orientation=vertical])+.m_599a2148:where([data-orientation=vertical]){border-top:none!important}.m_599a2148:where([data-orientation=horizontal]){margin-block:calc(var(--card-padding) * -1);margin-inline:0}.m_599a2148:where([data-orientation=horizontal]):first-child{margin-inline-start:calc(var(--card-padding) * -1);border-inline-start:none!important}.m_599a2148:where([data-orientation=horizontal]):last-child{margin-inline-end:calc(var(--card-padding) * -1);border-inline-end:none!important}.m_599a2148:where([data-orientation=horizontal])[data-inherit-padding]{padding-block:var(--card-padding)}.m_599a2148:where([data-orientation=horizontal])[data-with-border]{border-inline-start:1px solid var(--border-color);border-inline-end:1px solid var(--border-color)}.m_599a2148:where([data-orientation=horizontal])+.m_599a2148:where([data-orientation=horizontal]){border-inline-start:none!important}.m_9a782f2c{--cascader-column-width:calc(12.5rem * var(--mantine-scale));flex-direction:row;align-items:stretch;display:flex}.m_4c5a03a5{width:var(--cascader-column-width);min-width:var(--cascader-column-width);border-inline-end:calc(.0625rem * var(--mantine-scale)) solid var(--popover-border-color,var(--mantine-color-default-border));flex-direction:column;display:flex}.m_4c5a03a5:where([data-last]){border-inline-end-color:#0000}.m_7f3ac6d2{padding:var(--combobox-padding);flex:1}.m_6b93b90{padding-inline:calc(var(--combobox-padding) / 2);color:var(--mantine-color-dimmed);cursor:pointer;border-inline-end:calc(.0625rem * var(--mantine-scale)) solid var(--popover-border-color,var(--mantine-color-default-border));justify-content:center;align-self:stretch;align-items:center;display:flex}@media (hover:hover){:where([data-mantine-color-scheme=light]) .m_6b93b90:hover{background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_6b93b90:hover{background-color:var(--mantine-color-dark-7)}}@media (hover:none){:where([data-mantine-color-scheme=light]) .m_6b93b90:active{background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_6b93b90:active{background-color:var(--mantine-color-dark-7)}}.m_6b93b90>svg{width:.9em;height:.9em;transform:rotate(90deg)}.m_6b93b90:where([data-position=start]){border-start-start-radius:var(--popover-radius,var(--mantine-radius-default));border-end-start-radius:var(--popover-radius,var(--mantine-radius-default))}.m_6b93b90:where([data-position=end]){border-inline-end-color:#0000;border-start-end-radius:var(--popover-radius,var(--mantine-radius-default));border-end-end-radius:var(--popover-radius,var(--mantine-radius-default))}.m_6b93b90:where([data-position=end])>svg,:where([dir=rtl]) .m_6b93b90>svg{transform:rotate(-90deg)}:where([dir=rtl]) .m_6b93b90:where([data-position=end])>svg{transform:rotate(90deg)}.m_791f687a{align-items:center;gap:var(--mantine-spacing-xs);width:100%;padding:var(--combobox-option-padding);font-size:var(--combobox-option-fz,var(--mantine-font-size-sm));border-radius:var(--combobox-option-radius,var(--mantine-radius-default));color:var(--mantine-color-text);cursor:pointer;display:flex}@media (hover:hover){:where([data-mantine-color-scheme=light]) .m_791f687a:hover:where(:not([data-disabled],[data-active])){background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_791f687a:hover:where(:not([data-disabled],[data-active])){background-color:var(--mantine-color-dark-7)}}@media (hover:none){:where([data-mantine-color-scheme=light]) .m_791f687a:active:where(:not([data-disabled],[data-active])){background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_791f687a:active:where(:not([data-disabled],[data-active])){background-color:var(--mantine-color-dark-7)}}:where([data-mantine-color-scheme=light]) .m_791f687a:where([data-in-path]){background-color:var(--mantine-color-gray-1)}:where([data-mantine-color-scheme=dark]) .m_791f687a:where([data-in-path]){background-color:var(--mantine-color-dark-6)}.m_791f687a:where([data-active]){background-color:var(--mantine-primary-color-filled);color:var(--mantine-color-white)}@media (hover:hover){.m_791f687a:where([data-active]):hover{background-color:var(--mantine-primary-color-filled-hover)}}@media (hover:none){.m_791f687a:where([data-active]):active{background-color:var(--mantine-primary-color-filled-hover)}}.m_791f687a:where([data-disabled]){color:var(--mantine-color-dimmed);cursor:not-allowed;opacity:.5}.m_452a61d{align-items:center;gap:var(--mantine-spacing-xs);width:100%;display:flex}.m_aecd629a{text-overflow:ellipsis;white-space:nowrap;flex:1;overflow:hidden}.m_92054c13{width:.9em;min-width:.9em;height:.9em;color:var(--mantine-color-dimmed);justify-content:center;align-items:center;display:flex;transform:rotate(-90deg)}:where([data-active]) .m_92054c13{color:inherit}:where([dir=rtl]) .m_92054c13{transform:rotate(90deg)}.m_ae51c8ae{opacity:.4;width:.8em;min-width:.8em;height:.8em}:where([data-active]) .m_ae51c8ae,:where([data-combobox-selected]) .m_ae51c8ae{opacity:1}.m_97ff10a8{padding:var(--combobox-option-padding);color:var(--mantine-color-dimmed);font-size:var(--combobox-option-fz,var(--mantine-font-size-sm));white-space:nowrap;justify-content:center;align-items:center;display:flex}.m_4451eb3a{justify-content:center;align-items:center;display:flex}.m_4451eb3a:where([data-inline]){display:inline-flex}.m_f59ffda3{--chip-size-xs:calc(1.4375rem * var(--mantine-scale));--chip-size-sm:calc(1.75rem * var(--mantine-scale));--chip-size-md:calc(2rem * var(--mantine-scale));--chip-size-lg:calc(2.25rem * var(--mantine-scale));--chip-size-xl:calc(2.5rem * var(--mantine-scale));--chip-icon-size-xs:calc(.5625rem * var(--mantine-scale));--chip-icon-size-sm:calc(.75rem * var(--mantine-scale));--chip-icon-size-md:calc(.875rem * var(--mantine-scale));--chip-icon-size-lg:calc(1rem * var(--mantine-scale));--chip-icon-size-xl:calc(1.125rem * var(--mantine-scale));--chip-padding-xs:calc(1rem * var(--mantine-scale));--chip-padding-sm:calc(1.25rem * var(--mantine-scale));--chip-padding-md:calc(1.5rem * var(--mantine-scale));--chip-padding-lg:calc(1.75rem * var(--mantine-scale));--chip-padding-xl:calc(2rem * var(--mantine-scale));--chip-checked-padding-xs:calc(.5125rem * var(--mantine-scale));--chip-checked-padding-sm:calc(.625rem * var(--mantine-scale));--chip-checked-padding-md:calc(.73125rem * var(--mantine-scale));--chip-checked-padding-lg:calc(.84375rem * var(--mantine-scale));--chip-checked-padding-xl:calc(.98125rem * var(--mantine-scale));--chip-spacing-xs:calc(.625rem * var(--mantine-scale));--chip-spacing-sm:calc(.75rem * var(--mantine-scale));--chip-spacing-md:calc(1rem * var(--mantine-scale));--chip-spacing-lg:calc(1.25rem * var(--mantine-scale));--chip-spacing-xl:calc(1.375rem * var(--mantine-scale));--chip-size:var(--chip-size-sm);--chip-icon-size:var(--chip-icon-size-sm);--chip-padding:var(--chip-padding-sm);--chip-spacing:var(--chip-spacing-sm);--chip-checked-padding:var(--chip-checked-padding-sm);--chip-bg:var(--mantine-primary-color-filled);--chip-hover:var(--mantine-primary-color-filled-hover);--chip-color:var(--mantine-color-white);--chip-bd:calc(.0625rem * var(--mantine-scale)) solid transparent}.m_be049a53{-webkit-user-select:none;user-select:none;border-radius:var(--chip-radius,1000rem);height:var(--chip-size);font-size:var(--chip-fz,var(--mantine-font-size-sm));line-height:calc(var(--chip-size) - calc(.125rem * var(--mantine-scale)));padding-inline:var(--chip-padding);cursor:pointer;white-space:nowrap;-webkit-tap-highlight-color:transparent;border:calc(.0625rem * var(--mantine-scale)) solid transparent;color:var(--mantine-color-text);text-box-trim:trim-both;text-box-edge:cap alphabetic;align-items:center;display:inline-flex}.m_be049a53:where([data-checked]){padding-inline:var(--chip-checked-padding)}.m_be049a53:where([data-disabled]){cursor:not-allowed;background-color:var(--mantine-color-disabled);color:var(--mantine-color-disabled-color)}:where([data-mantine-color-scheme=light]) .m_3904c1af:not([data-disabled]){background-color:var(--mantine-color-white);border:1px solid var(--mantine-color-gray-3)}:where([data-mantine-color-scheme=dark]) .m_3904c1af:not([data-disabled]){background-color:var(--mantine-color-dark-6);border:1px solid var(--mantine-color-dark-4)}@media (hover:hover){:where([data-mantine-color-scheme=light]) .m_3904c1af:not([data-disabled]):hover{background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_3904c1af:not([data-disabled]):hover{background-color:var(--mantine-color-dark-5)}}@media (hover:none){:where([data-mantine-color-scheme=light]) .m_3904c1af:not([data-disabled]):active{background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_3904c1af:not([data-disabled]):active{background-color:var(--mantine-color-dark-5)}}.m_3904c1af:not([data-disabled]):where([data-checked]){--chip-icon-color:var(--chip-color);border:var(--chip-bd)}@media (hover:hover){.m_3904c1af:not([data-disabled]):where([data-checked]):hover{background-color:var(--chip-hover)}}@media (hover:none){.m_3904c1af:not([data-disabled]):where([data-checked]):active{background-color:var(--chip-hover)}}.m_fa109255:not([data-disabled]),.m_f7e165c3:not([data-disabled]){border:calc(.0625rem * var(--mantine-scale)) solid transparent;color:var(--mantine-color-text)}:where([data-mantine-color-scheme=light]) .m_fa109255:not([data-disabled]),:where([data-mantine-color-scheme=light]) .m_f7e165c3:not([data-disabled]){background-color:var(--mantine-color-gray-1)}:where([data-mantine-color-scheme=dark]) .m_fa109255:not([data-disabled]),:where([data-mantine-color-scheme=dark]) .m_f7e165c3:not([data-disabled]){background-color:var(--mantine-color-dark-5)}@media (hover:hover){:where([data-mantine-color-scheme=light]) .m_fa109255:not([data-disabled]):hover,:where([data-mantine-color-scheme=light]) .m_f7e165c3:not([data-disabled]):hover{background-color:var(--mantine-color-gray-2)}:where([data-mantine-color-scheme=dark]) .m_fa109255:not([data-disabled]):hover,:where([data-mantine-color-scheme=dark]) .m_f7e165c3:not([data-disabled]):hover{background-color:var(--mantine-color-dark-4)}}@media (hover:none){:where([data-mantine-color-scheme=light]) .m_fa109255:not([data-disabled]):active,:where([data-mantine-color-scheme=light]) .m_f7e165c3:not([data-disabled]):active{background-color:var(--mantine-color-gray-2)}:where([data-mantine-color-scheme=dark]) .m_fa109255:not([data-disabled]):active,:where([data-mantine-color-scheme=dark]) .m_f7e165c3:not([data-disabled]):active{background-color:var(--mantine-color-dark-4)}}.m_fa109255:not([data-disabled]):where([data-checked]),.m_f7e165c3:not([data-disabled]):where([data-checked]){--chip-icon-color:var(--chip-color);color:var(--chip-color);background-color:var(--chip-bg)}@media (hover:hover){.m_fa109255:not([data-disabled]):where([data-checked]):hover,.m_f7e165c3:not([data-disabled]):where([data-checked]):hover{background-color:var(--chip-hover)}}@media (hover:none){.m_fa109255:not([data-disabled]):where([data-checked]):active,.m_f7e165c3:not([data-disabled]):where([data-checked]):active{background-color:var(--chip-hover)}}.m_9ac86df9{width:calc(var(--chip-icon-size) + (var(--chip-spacing) / 1.5));max-width:calc(var(--chip-icon-size) + (var(--chip-spacing) / 1.5));height:var(--chip-icon-size);align-items:center;display:flex;overflow:hidden}.m_d6d72580{width:var(--chip-icon-size);height:var(--chip-icon-size);color:var(--chip-icon-color,inherit);display:block}.m_bde07329{opacity:0;width:0;height:0;margin:0;padding:0}.m_bde07329:focus-visible+.m_be049a53{outline:2px solid var(--mantine-primary-color-filled);outline-offset:calc(.125rem * var(--mantine-scale))}.m_b183c0a2{font-family:var(--mantine-font-family-monospace);line-height:var(--mantine-line-height);padding:2px calc(var(--mantine-spacing-xs) / 2);border-radius:var(--mantine-radius-sm);font-size:var(--mantine-font-size-xs);margin:0;overflow:auto}:where([data-mantine-color-scheme=light]) .m_b183c0a2{background-color:var(--code-bg,var(--mantine-color-gray-0))}:where([data-mantine-color-scheme=dark]) .m_b183c0a2{background-color:var(--code-bg,var(--mantine-color-dark-6))}.m_b183c0a2[data-block]{padding:var(--mantine-spacing-xs)}.m_de3d2490{--cs-size:calc(1.75rem * var(--mantine-scale));--cs-radius:calc(62.5rem * var(--mantine-scale));-webkit-tap-highlight-color:transparent;appearance:none;width:var(--cs-size);height:var(--cs-size);min-width:var(--cs-size);min-height:var(--cs-size);border-radius:var(--cs-radius);color:inherit;border:none;line-height:1;text-decoration:none;display:block;position:relative}[data-mantine-color-scheme=light] .m_de3d2490{--alpha-overlay-color:var(--mantine-color-gray-3);--alpha-overlay-bg:var(--mantine-color-white)}[data-mantine-color-scheme=dark] .m_de3d2490{--alpha-overlay-color:var(--mantine-color-dark-4);--alpha-overlay-bg:var(--mantine-color-dark-7)}.m_862f3d1b{border-radius:var(--cs-radius);position:absolute;inset:0}.m_98ae7f22{border-radius:var(--cs-radius);z-index:1;box-shadow:#0000001a 0 0 0 calc(.0625rem * var(--mantine-scale)) inset, #00000026 0 0 calc(.25rem * var(--mantine-scale)) inset;position:absolute;inset:0}.m_95709ac0{border-radius:var(--cs-radius);background-size:calc(.5rem * var(--mantine-scale)) calc(.5rem * var(--mantine-scale));background-position:0 0, 0 calc(.25rem * var(--mantine-scale)), calc(.25rem * var(--mantine-scale)) calc(-.25rem * var(--mantine-scale)), calc(-.25rem * var(--mantine-scale)) 0;background-image:linear-gradient(45deg, var(--alpha-overlay-color) 25%, transparent 25%), linear-gradient(-45deg, var(--alpha-overlay-color) 25%, transparent 25%), linear-gradient(45deg, transparent 75%, var(--alpha-overlay-color) 75%), linear-gradient(-45deg, var(--alpha-overlay-bg) 75%, var(--alpha-overlay-color) 75%);position:absolute;inset:0}.m_93e74e3{border-radius:var(--cs-radius);z-index:2;justify-content:center;align-items:center;display:flex;position:absolute;inset:0}.m_fee9c77{--cp-width-xs:calc(11.25rem * var(--mantine-scale));--cp-width-sm:calc(12.5rem * var(--mantine-scale));--cp-width-md:calc(15rem * var(--mantine-scale));--cp-width-lg:calc(17.5rem * var(--mantine-scale));--cp-width-xl:calc(20rem * var(--mantine-scale));--cp-preview-size-xs:calc(1.625rem * var(--mantine-scale));--cp-preview-size-sm:calc(2.125rem * var(--mantine-scale));--cp-preview-size-md:calc(2.625rem * var(--mantine-scale));--cp-preview-size-lg:calc(3.125rem * var(--mantine-scale));--cp-preview-size-xl:calc(3.375rem * var(--mantine-scale));--cp-thumb-size-xs:calc(.5rem * var(--mantine-scale));--cp-thumb-size-sm:calc(.75rem * var(--mantine-scale));--cp-thumb-size-md:calc(1rem * var(--mantine-scale));--cp-thumb-size-lg:calc(1.25rem * var(--mantine-scale));--cp-thumb-size-xl:calc(1.375rem * var(--mantine-scale));--cp-saturation-height-xs:calc(6.25rem * var(--mantine-scale));--cp-saturation-height-sm:calc(6.875rem * var(--mantine-scale));--cp-saturation-height-md:calc(7.5rem * var(--mantine-scale));--cp-saturation-height-lg:calc(8.75rem * var(--mantine-scale));--cp-saturation-height-xl:calc(10rem * var(--mantine-scale));--cp-preview-size:var(--cp-preview-size-sm);--cp-thumb-size:var(--cp-thumb-size-sm);--cp-saturation-height:var(--cp-saturation-height-sm);--cp-width:var(--cp-width-sm);--cp-body-spacing:var(--mantine-spacing-sm);width:var(--cp-width);padding:calc(.0625rem * var(--mantine-scale))}.m_fee9c77:where([data-full-width]){width:100%}.m_9dddfbac{width:var(--cp-preview-size);height:var(--cp-preview-size)}.m_bffecc3e{padding-top:calc(var(--cp-body-spacing) / 2);display:flex}.m_3283bb96{flex:1}.m_3283bb96:not(:only-child){margin-inline-end:var(--mantine-spacing-xs)}.m_40d572ba{border:2px solid var(--mantine-color-white);width:var(--cp-thumb-size);height:var(--cp-thumb-size);border-radius:var(--cp-thumb-size);left:calc(var(--thumb-x-offset) - var(--cp-thumb-size) / 2);top:calc(var(--thumb-y-offset) - var(--cp-thumb-size) / 2);position:absolute;overflow:hidden;box-shadow:0 0 1px #0009}.m_d8ee6fd8{margin:calc(.125rem * var(--mantine-scale));cursor:pointer;padding-bottom:calc(var(--cp-swatch-size) - calc(.25rem * var(--mantine-scale)));flex:0 0 calc(var(--cp-swatch-size) - calc(.25rem * var(--mantine-scale)));height:unset!important;width:unset!important;min-width:0!important;min-height:0!important}.m_5711e686{margin-top:calc(.3125rem * var(--mantine-scale));margin-inline:calc(-.125rem * var(--mantine-scale));flex-wrap:wrap;display:flex}.m_5711e686:only-child{margin-top:0}.m_202a296e{--cp-thumb-size-xs:calc(.5rem * var(--mantine-scale));--cp-thumb-size-sm:calc(.75rem * var(--mantine-scale));--cp-thumb-size-md:calc(1rem * var(--mantine-scale));--cp-thumb-size-lg:calc(1.25rem * var(--mantine-scale));--cp-thumb-size-xl:calc(1.375rem * var(--mantine-scale));-webkit-tap-highlight-color:transparent;height:var(--cp-saturation-height);border-radius:var(--mantine-radius-sm);margin:calc(var(--cp-thumb-size) / 2);position:relative}.m_202a296e:where([data-focus-ring=auto]):focus:focus-visible .m_40d572ba,.m_202a296e:where([data-focus-ring=always]):focus .m_40d572ba{outline:2px solid var(--mantine-color-blue-filled)}.m_11b3db02{border-radius:var(--mantine-radius-sm);inset:calc(var(--cp-thumb-size) * -1 / 2 - calc(.0625rem * var(--mantine-scale)));position:absolute}.m_d856d47d{--cp-thumb-size-xs:calc(.5rem * var(--mantine-scale));--cp-thumb-size-sm:calc(.75rem * var(--mantine-scale));--cp-thumb-size-md:calc(1rem * var(--mantine-scale));--cp-thumb-size-lg:calc(1.25rem * var(--mantine-scale));--cp-thumb-size-xl:calc(1.375rem * var(--mantine-scale));--cp-thumb-size:var(--cp-thumb-size,calc(.75rem * var(--mantine-scale)));height:calc(var(--cp-thumb-size) + calc(.125rem * var(--mantine-scale)));margin-inline:calc(var(--cp-thumb-size) / 2);outline:none;position:relative}.m_d856d47d+.m_d856d47d{margin-top:calc(.375rem * var(--mantine-scale))}.m_d856d47d:where([data-focus-ring=auto]):focus:focus-visible .m_40d572ba,.m_d856d47d:where([data-focus-ring=always]):focus .m_40d572ba{outline:2px solid var(--mantine-color-blue-filled)}:where([data-mantine-color-scheme=light]) .m_d856d47d{--slider-checkers:var(--mantine-color-gray-3)}:where([data-mantine-color-scheme=dark]) .m_d856d47d{--slider-checkers:var(--mantine-color-dark-4)}.m_8f327113{top:0;bottom:0;inset-inline:calc(var(--cp-thumb-size) * -1 / 2 - calc(.0625rem * var(--mantine-scale)));border-radius:10000rem;position:absolute}.m_b077c2bc{--ci-eye-dropper-icon-size-xs:calc(.875rem * var(--mantine-scale));--ci-eye-dropper-icon-size-sm:calc(1rem * var(--mantine-scale));--ci-eye-dropper-icon-size-md:calc(1.125rem * var(--mantine-scale));--ci-eye-dropper-icon-size-lg:calc(1.25rem * var(--mantine-scale));--ci-eye-dropper-icon-size-xl:calc(1.375rem * var(--mantine-scale));--ci-eye-dropper-icon-size:var(--ci-eye-dropper-icon-size-sm)}.m_66a028b5{--ci-button-size-xs:calc(1.375rem * var(--mantine-scale));--ci-button-size-sm:calc(1.625rem * var(--mantine-scale));--ci-button-size-md:calc(1.75rem * var(--mantine-scale));--ci-button-size-lg:calc(2rem * var(--mantine-scale));--ci-button-size-xl:calc(2.5rem * var(--mantine-scale));--ci-button-size:var(--ci-button-size-sm);width:var(--ci-button-size);height:var(--ci-button-size);min-width:var(--ci-button-size);min-height:var(--ci-button-size)}.m_c5ccdcab{--ci-preview-size-xs:calc(1rem * var(--mantine-scale));--ci-preview-size-sm:calc(1.125rem * var(--mantine-scale));--ci-preview-size-md:calc(1.375rem * var(--mantine-scale));--ci-preview-size-lg:calc(1.75rem * var(--mantine-scale));--ci-preview-size-xl:calc(2.25rem * var(--mantine-scale));--ci-preview-size:var(--ci-preview-size-sm)}.m_5ece2cd7{padding:calc(.5rem * var(--mantine-scale))}.m_7485cace{--container-size-xs:calc(33.75rem * var(--mantine-scale));--container-size-sm:calc(45rem * var(--mantine-scale));--container-size-md:calc(60rem * var(--mantine-scale));--container-size-lg:calc(71.25rem * var(--mantine-scale));--container-size-xl:calc(82.5rem * var(--mantine-scale));--container-size:var(--container-size-md)}.m_7485cace:where([data-strategy=block]){max-width:var(--container-size);padding-inline:var(--mantine-spacing-md);margin-inline:auto}.m_7485cace:where([data-strategy=block]):where([data-fluid]){max-width:100%}.m_7485cace:where([data-strategy=grid]){grid-template-columns:1fr min(100%, var(--container-size)) 1fr;margin-inline:auto;display:grid}.m_7485cace:where([data-strategy=grid])>*{grid-column:2}.m_7485cace:where([data-strategy=grid])>[data-breakout]{grid-column:1/-1}.m_7485cace:where([data-strategy=grid])>[data-breakout]>[data-container]{max-width:var(--container-size);margin-inline:auto}.m_f84d0407{--data-list-fz:var(--mantine-font-size-sm);--data-list-lh:var(--mantine-line-height-sm);--data-list-gap:var(--mantine-spacing-sm);--data-list-label-width:calc(7.5rem * var(--mantine-scale));gap:var(--data-list-gap);font-size:var(--data-list-fz);line-height:var(--data-list-lh);flex-direction:column;margin:0;padding:0;display:flex}.m_f84d0407:where([data-with-divider]){gap:0}.m_f848fe38{align-items:baseline;gap:var(--mantine-spacing-xs);flex-direction:row;display:flex}.m_f84d0407:where([data-orientation=vertical])>.m_f848fe38{flex-direction:column;gap:0}.m_c791b39c{color:var(--mantine-color-dimmed);font-size:var(--data-list-fz);line-height:var(--data-list-lh);min-width:var(--data-list-label-width);margin:0}.m_f84d0407:where([data-orientation=vertical]) .m_c791b39c{min-width:100%}.m_c81ec619{font-size:var(--data-list-fz);line-height:var(--data-list-lh);margin:0}.m_f84d0407:where([data-with-divider])>.m_f848fe38:where(:not(:first-of-type)){border-top:calc(.0625rem * var(--mantine-scale)) solid var(--mantine-color-default-border);padding-top:var(--data-list-gap);margin-top:var(--data-list-gap)}.m_e2125a27{--dialog-size-xs:calc(10rem * var(--mantine-scale));--dialog-size-sm:calc(12.5rem * var(--mantine-scale));--dialog-size-md:calc(21.25rem * var(--mantine-scale));--dialog-size-lg:calc(25rem * var(--mantine-scale));--dialog-size-xl:calc(31.25rem * var(--mantine-scale));--dialog-size:var(--dialog-size-md);width:var(--dialog-size);max-width:calc(100vw - var(--mantine-spacing-xl) * 2);min-height:calc(3.125rem * var(--mantine-scale));position:relative}.m_5abab665{top:calc(var(--mantine-spacing-md) / 2);position:absolute;inset-inline-end:calc(var(--mantine-spacing-md) / 2)}.m_3eebeb36{--divider-size-xs:calc(.0625rem * var(--mantine-scale));--divider-size-sm:calc(.125rem * var(--mantine-scale));--divider-size-md:calc(.1875rem * var(--mantine-scale));--divider-size-lg:calc(.25rem * var(--mantine-scale));--divider-size-xl:calc(.3125rem * var(--mantine-scale));--divider-size:var(--divider-size-xs)}:where([data-mantine-color-scheme=light]) .m_3eebeb36{--divider-color:var(--mantine-color-gray-3)}:where([data-mantine-color-scheme=dark]) .m_3eebeb36{--divider-color:var(--mantine-color-dark-4)}.m_3eebeb36:where([data-orientation=horizontal]){border-top:var(--divider-size) var(--divider-border-style,solid) var(--divider-color)}.m_3eebeb36:where([data-orientation=vertical]){border-inline-start:var(--divider-size) var(--divider-border-style,solid) var(--divider-color);align-self:stretch;height:auto}.m_3eebeb36:where([data-with-label]){border:0}.m_9e365f20{font-size:var(--mantine-font-size-xs);color:var(--mantine-color-dimmed);white-space:nowrap;align-items:center;display:flex}.m_9e365f20:where([data-position=left]):before,.m_9e365f20:where([data-position=right]):after{display:none}.m_9e365f20:before{content:"";height:calc(.0625rem * var(--mantine-scale));border-top:var(--divider-size) var(--divider-border-style,solid) var(--divider-color);flex:1;margin-inline-end:var(--mantine-spacing-xs)}.m_9e365f20:after{content:"";height:calc(.0625rem * var(--mantine-scale));border-top:var(--divider-size) var(--divider-border-style,solid) var(--divider-color);flex:1;margin-inline-start:var(--mantine-spacing-xs)}.m_f11b401e{--drawer-size-xs:calc(20rem * var(--mantine-scale));--drawer-size-sm:calc(23.75rem * var(--mantine-scale));--drawer-size-md:calc(27.5rem * var(--mantine-scale));--drawer-size-lg:calc(38.75rem * var(--mantine-scale));--drawer-size-xl:calc(48.75rem * var(--mantine-scale));--drawer-size:var(--drawer-size-md);--drawer-offset:0rem}.m_5a7c2c9{z-index:1000}.m_b8a05bbd{flex:var(--drawer-flex,0 0 var(--drawer-size));height:var(--drawer-height,calc(100% - var(--drawer-offset) * 2));margin:var(--drawer-offset);max-width:calc(100% - var(--drawer-offset) * 2);max-height:calc(100% - var(--drawer-offset) * 2);overflow-y:auto}.m_b8a05bbd[data-hidden]{pointer-events:none;opacity:0!important}.m_31cd769a{justify-content:var(--drawer-justify,flex-start);align-items:var(--drawer-align,flex-start);display:flex}.m_7ffcadab{--empty-state-indicator-size-xs:calc(2rem * var(--mantine-scale));--empty-state-indicator-size-sm:calc(2.5rem * var(--mantine-scale));--empty-state-indicator-size-md:calc(3rem * var(--mantine-scale));--empty-state-indicator-size-lg:calc(3.75rem * var(--mantine-scale));--empty-state-indicator-size-xl:calc(4.5rem * var(--mantine-scale));--empty-state-gap-xs:calc(.375rem * var(--mantine-scale));--empty-state-gap-sm:calc(.5rem * var(--mantine-scale));--empty-state-gap-md:calc(.625rem * var(--mantine-scale));--empty-state-gap-lg:calc(.75rem * var(--mantine-scale));--empty-state-gap-xl:calc(1rem * var(--mantine-scale));--empty-state-title-fz-xs:var(--mantine-font-size-sm);--empty-state-title-fz-sm:var(--mantine-font-size-md);--empty-state-title-fz-md:var(--mantine-font-size-lg);--empty-state-title-fz-lg:var(--mantine-font-size-xl);--empty-state-title-fz-xl:calc(var(--mantine-font-size-xl) * 1.2);--empty-state-description-fz-xs:var(--mantine-font-size-xs);--empty-state-description-fz-sm:var(--mantine-font-size-sm);--empty-state-description-fz-md:var(--mantine-font-size-sm);--empty-state-description-fz-lg:var(--mantine-font-size-md);--empty-state-description-fz-xl:var(--mantine-font-size-lg);gap:var(--empty-state-gap,var(--empty-state-gap-md));display:flex}.m_7ffcadab[data-align=center]{flex-direction:column;align-items:center}.m_7ffcadab[data-align=left]{flex-direction:row;align-items:flex-start}.m_7ffcadab[data-align=right]{flex-direction:row-reverse;align-items:flex-start}.m_7ff5666b{gap:var(--empty-state-gap,var(--empty-state-gap-md));flex-direction:column;min-width:0;display:flex}[data-align=center]>.m_7ff5666b{text-align:center;align-items:center}[data-align=left]>.m_7ff5666b{text-align:left;align-items:flex-start}[data-align=right]>.m_7ff5666b{text-align:right;align-items:flex-end}.m_866226e6{color:var(--empty-state-indicator-color,var(--mantine-color-dimmed));font-size:var(--empty-state-indicator-size,var(--empty-state-indicator-size-md));flex-shrink:0;justify-content:center;align-items:center;line-height:1;display:flex}.m_866226e6>svg{width:1em;height:1em}[data-mantine-color-scheme=light] .m_866226e6[data-with-background]{--empty-state-indicator-default-bg:var(--mantine-color-gray-1)}[data-mantine-color-scheme=dark] .m_866226e6[data-with-background]{--empty-state-indicator-default-bg:var(--mantine-color-dark-6)}.m_866226e6[data-with-background]{border-radius:calc(62.5rem * var(--mantine-scale));background-color:var(--empty-state-indicator-bg,var(--empty-state-indicator-default-bg));width:2em;height:2em}.m_7fb28eaf{font-size:var(--empty-state-title-fz,var(--empty-state-title-fz-md));color:var(--mantine-color-bright);text-wrap:balance;margin:0;font-weight:600;line-height:1.3}.m_5f111313{font-size:var(--empty-state-description-fz,var(--empty-state-description-fz-md));color:var(--mantine-color-dimmed);text-wrap:pretty;max-width:32rem;margin:0;line-height:1.55}.m_65f4fb94{align-items:center;gap:var(--mantine-spacing-sm);flex-wrap:wrap;display:flex}.m_e9408a47{padding:var(--mantine-spacing-lg);padding-top:var(--mantine-spacing-xs);border-radius:var(--fieldset-radius,var(--mantine-radius-default));min-inline-size:auto}.m_84c9523a{border:calc(.0625rem * var(--mantine-scale)) solid}:where([data-mantine-color-scheme=light]) .m_84c9523a{border-color:var(--mantine-color-gray-3);background-color:var(--mantine-color-white)}:where([data-mantine-color-scheme=dark]) .m_84c9523a{border-color:var(--mantine-color-dark-4);background-color:var(--mantine-color-dark-7)}.m_ef274e49{border:calc(.0625rem * var(--mantine-scale)) solid}:where([data-mantine-color-scheme=light]) .m_ef274e49{border-color:var(--mantine-color-gray-3);background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_ef274e49{border-color:var(--mantine-color-dark-4);background-color:var(--mantine-color-dark-6)}.m_eda993d3{border:0;border-radius:0;padding:0}.m_90794832{font-size:var(--mantine-font-size-sm)}.m_74ca27fe{margin-bottom:var(--mantine-spacing-sm);padding:0}.m_df020499{z-index:var(--floating-window-z-index);width:var(--floating-window-width,auto);height:var(--floating-window-height,auto);position:fixed}.m_8478a6da{container:mantine-grid/inline-size}.m_410352e9{--grid-overflow:visible;--grid-column-gap:var(--grid-gap);--grid-row-gap:var(--grid-gap);overflow:var(--grid-overflow)}.m_dee7bd2f{justify-content:var(--grid-justify);align-items:var(--grid-align);gap:var(--grid-row-gap) var(--grid-column-gap);flex-wrap:wrap;display:flex}.m_96bdd299{--col-flex-grow:0;--col-offset:0rem;flex-shrink:0;order:var(--col-order);flex-basis:var(--col-flex-basis);width:var(--col-width);max-width:var(--col-max-width);flex-grow:var(--col-flex-grow);align-self:var(--col-align-self);margin-inline-start:var(--col-offset)}.m_bcb3f3c2{color:var(--mantine-color-black)}:where([data-mantine-color-scheme=light]) .m_bcb3f3c2{background-color:var(--mark-bg-light)}:where([data-mantine-color-scheme=dark]) .m_bcb3f3c2{background-color:var(--mark-bg-dark)}.m_9e117634{object-fit:var(--image-object-fit,cover);border-radius:var(--image-radius,0);width:100%;display:block}@keyframes m_885901b1{0%{opacity:.6;transform:scale(0)}to{opacity:0;transform:scale(2.8)}}.m_e5262200{--indicator-size:calc(.625rem * var(--mantine-scale));--indicator-color:var(--mantine-primary-color-filled);display:block;position:relative}.m_e5262200:where([data-inline]){display:inline-block}.m_760d1fb1{top:var(--indicator-top);left:var(--indicator-left);right:var(--indicator-right);bottom:var(--indicator-bottom);transform:translate(var(--indicator-translate-x), var(--indicator-translate-y));min-width:var(--indicator-size);height:var(--indicator-size);border-radius:var(--indicator-radius,1000rem);z-index:var(--indicator-z-index,200);font-size:var(--mantine-font-size-xs);background-color:var(--indicator-color);color:var(--indicator-text-color,var(--mantine-color-white));white-space:nowrap;justify-content:center;align-items:center;display:flex;position:absolute}.m_760d1fb1:before{content:"";background-color:var(--indicator-color);border-radius:var(--indicator-radius,1000rem);z-index:-1;position:absolute;inset:0}.m_760d1fb1:where([data-with-label]){padding-inline:calc(var(--mantine-spacing-xs) / 2)}.m_760d1fb1:where([data-with-border]){border:2px solid var(--mantine-color-body)}.m_760d1fb1[data-processing]:before{animation:1s linear infinite m_885901b1}.m_dc6f14e2{--kbd-fz-xs:calc(.625rem * var(--mantine-scale));--kbd-fz-sm:calc(.75rem * var(--mantine-scale));--kbd-fz-md:calc(.875rem * var(--mantine-scale));--kbd-fz-lg:calc(1rem * var(--mantine-scale));--kbd-fz-xl:calc(1.25rem * var(--mantine-scale));--kbd-fz:var(--kbd-fz-sm);font-family:var(--mantine-font-family-monospace);line-height:var(--mantine-line-height);font-weight:var(--mantine-font-weight-bold);font-size:var(--kbd-fz);border-radius:var(--mantine-radius-sm);border:calc(.0625rem * var(--mantine-scale)) solid;border-bottom-width:calc(.1875rem * var(--mantine-scale));text-align:center;unicode-bidi:embed;padding:.12em .45em}:where([data-mantine-color-scheme=light]) .m_dc6f14e2{border-color:var(--mantine-color-gray-3);color:var(--mantine-color-gray-7);background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_dc6f14e2{border-color:var(--mantine-color-dark-4);color:var(--mantine-color-dark-0);background-color:var(--mantine-color-dark-6)}.m_abbac491{--list-fz:var(--mantine-font-size-md);--list-lh:var(--mantine-line-height-md);--list-marker-gap:var(--mantine-spacing-lg);font-size:var(--list-fz);line-height:var(--list-lh);margin:0;padding:0;padding-inline-start:var(--list-marker-gap);list-style-position:outside}.m_abbac491[data-type=none]{--list-marker-gap:0}.m_abbac491:where([data-with-padding]){padding-inline-start:calc(var(--list-marker-gap) + var(--mantine-spacing-md))}.m_abb6bec2{white-space:normal;line-height:var(--list-lh)}.m_abb6bec2:where([data-with-icon]){list-style:none}.m_abb6bec2:where([data-with-icon]) .m_75cd9f71{--li-direction:row;--li-align:center}.m_abb6bec2:where(:not(:first-of-type)){margin-top:var(--list-spacing,0)}.m_abb6bec2:where([data-centered]){line-height:1}.m_75cd9f71{flex-direction:var(--li-direction,column);align-items:var(--li-align,flex-start);white-space:normal;display:inline-flex}.m_60f83e5b{vertical-align:middle;margin-inline-end:var(--mantine-spacing-sm);display:inline-block}.m_6e45937b{z-index:var(--lo-z-index);justify-content:center;align-items:center;display:flex;position:absolute;inset:0;overflow:hidden}.m_e8eb006c{z-index:calc(var(--lo-z-index) + 1);position:relative}.m_df587f17{z-index:var(--lo-z-index)}@keyframes m_55dc625a{0%{transform:translate(0)}to{transform:translateX(calc(-100% / var(--marquee-repeat,4) - var(--marquee-gap,var(--mantine-spacing-md)) / var(--marquee-repeat,4)))}}@keyframes m_cdef532c{0%{transform:translateY(0)}to{transform:translateY(calc(-100% / var(--marquee-repeat,4) - var(--marquee-gap,var(--mantine-spacing-md)) / var(--marquee-repeat,4)))}}.m_7dc7d3cd{--_fade-color:var(--marquee-fade-color,var(--mantine-color-body));--_fade-size:var(--marquee-fade-size,5%);max-width:100%;max-height:100%;display:flex;position:relative;overflow:hidden}.m_7dc7d3cd:where([data-orientation=horizontal]){flex-direction:row}.m_7dc7d3cd:where([data-orientation=vertical]){flex-direction:column}.m_7dc7d3cd[data-fade-edges]:before,.m_7dc7d3cd[data-fade-edges]:after{content:"";z-index:1;pointer-events:none;position:absolute}.m_7dc7d3cd[data-orientation=horizontal][data-fade-edges]:before,.m_7dc7d3cd[data-orientation=horizontal][data-fade-edges]:after{width:var(--_fade-size);top:0;bottom:0}.m_7dc7d3cd[data-orientation=horizontal][data-fade-edges]:before{background:linear-gradient(to right, var(--_fade-color), transparent);left:0}.m_7dc7d3cd[data-orientation=horizontal][data-fade-edges]:after{background:linear-gradient(to left, var(--_fade-color), transparent);right:0}.m_7dc7d3cd[data-orientation=vertical][data-fade-edges]:before,.m_7dc7d3cd[data-orientation=vertical][data-fade-edges]:after{height:var(--_fade-size);left:0;right:0}.m_7dc7d3cd[data-orientation=vertical][data-fade-edges]:before{background:linear-gradient(to bottom, var(--_fade-color), transparent);top:0}.m_7dc7d3cd[data-orientation=vertical][data-fade-edges]:after{background:linear-gradient(to top, var(--_fade-color), transparent);bottom:0}.m_1f9675ae{gap:var(--marquee-gap,var(--mantine-spacing-md));animation-duration:var(--marquee-duration,40s);animation-timing-function:linear;animation-iteration-count:infinite;display:flex}.m_7dc7d3cd[data-orientation=horizontal]>.m_1f9675ae{flex-direction:row;animation-name:m_55dc625a}.m_7dc7d3cd[data-orientation=vertical]>.m_1f9675ae{flex-direction:column;animation-name:m_cdef532c}.m_7dc7d3cd[data-reverse]>.m_1f9675ae{animation-direction:reverse}.m_7dc7d3cd[data-pause-on-hover]:hover>.m_1f9675ae{animation-play-state:paused}.m_3a9900f4{gap:var(--marquee-gap,var(--mantine-spacing-md));flex-shrink:0;display:flex}.m_7dc7d3cd[data-orientation=horizontal] .m_3a9900f4{flex-direction:row}.m_7dc7d3cd[data-orientation=vertical] .m_3a9900f4{flex-direction:column}.m_dc9b7c9f{padding:calc(.25rem * var(--mantine-scale))}.m_9bfac126{color:var(--mantine-color-dimmed);font-weight:var(--mantine-font-weight-medium);font-size:var(--mantine-font-size-xs);padding:calc(var(--mantine-spacing-xs) / 2) var(--mantine-spacing-sm);cursor:default}.m_efdf90cb{margin-top:calc(.25rem * var(--mantine-scale));margin-bottom:calc(.25rem * var(--mantine-scale));border-top:calc(.0625rem * var(--mantine-scale)) solid}:where([data-mantine-color-scheme=light]) .m_efdf90cb{border-color:var(--mantine-color-gray-2)}:where([data-mantine-color-scheme=dark]) .m_efdf90cb{border-color:var(--mantine-color-dark-4)}.m_99ac2aa1{font-size:var(--mantine-font-size-sm);width:100%;padding:calc(var(--mantine-spacing-xs) / 1.5) var(--mantine-spacing-sm);border-radius:var(--popover-radius,var(--mantine-radius-default));color:var(--menu-item-color,var(--mantine-color-text));-webkit-user-select:none;user-select:none;align-items:center;display:flex}.m_99ac2aa1:where([data-disabled],:disabled){color:var(--mantine-color-disabled-color);opacity:.6;cursor:not-allowed}:where([data-mantine-color-scheme=light]) .m_99ac2aa1:where(:hover,:focus,[data-menu-active]):where(:not(:disabled,[data-disabled])){background-color:var(--menu-item-hover,var(--mantine-color-gray-1))}:where([data-mantine-color-scheme=dark]) .m_99ac2aa1:where(:hover,:focus,[data-menu-active]):where(:not(:disabled,[data-disabled])){background-color:var(--menu-item-hover,var(--mantine-color-dark-4))}.m_99ac2aa1:where([data-sub-menu-item]){padding-inline-end:calc(.3125rem * var(--mantine-scale))}.m_ef8769b6{--menu-search-padding:var(--popover-padding,4px);margin-inline:calc(var(--menu-search-padding) * -1);margin-top:calc(var(--menu-search-padding) * -1);width:calc(100% + var(--menu-search-padding) * 2);border-top-width:0;margin-bottom:var(--menu-search-padding);border-inline-width:0;border-end-end-radius:0;border-end-start-radius:0}:where([data-mantine-color-scheme=light]) .m_ef8769b6,:where([data-mantine-color-scheme=light]) .m_ef8769b6:focus{border-color:var(--mantine-color-gray-2)}:where([data-mantine-color-scheme=dark]) .m_ef8769b6,:where([data-mantine-color-scheme=dark]) .m_ef8769b6:focus{border-color:var(--mantine-color-dark-4)}:where([data-mantine-color-scheme=light]) .m_ef8769b6{background-color:var(--mantine-color-white)}:where([data-mantine-color-scheme=dark]) .m_ef8769b6{background-color:var(--mantine-color-dark-7)}.m_5476e0d3{flex:1}.m_8395186e{width:calc(.75rem * var(--mantine-scale));height:calc(.75rem * var(--mantine-scale));flex-shrink:0;justify-content:center;align-items:center;margin-inline-end:calc(.5rem * var(--mantine-scale));display:inline-flex}.m_8b75e504{justify-content:center;align-items:center;display:flex}.m_8b75e504:where([data-position=left]){margin-inline-end:var(--mantine-spacing-xs)}.m_8b75e504:where([data-position=right]){margin-inline-start:var(--mantine-spacing-xs)}.m_b85b0bed{transform:rotate(-90deg)}:where([dir=rtl]) .m_b85b0bed{transform:rotate(90deg)}.m_de2654db{align-items:center;display:flex}.m_f08a2b4a{font-size:var(--mantine-font-size-sm);padding:calc(var(--mantine-spacing-xs) / 1.5) var(--mantine-spacing-sm);border-radius:var(--mantine-radius-default);color:var(--mantine-color-text);-webkit-user-select:none;user-select:none;cursor:pointer;background-color:#0000;line-height:1}.m_f08a2b4a:where([data-disabled],:disabled){color:var(--mantine-color-disabled-color);opacity:.6;cursor:not-allowed}:where([data-mantine-color-scheme=light]) .m_f08a2b4a:where(:hover,:focus-visible,[data-expanded]):where(:not(:disabled,[data-disabled])){background-color:var(--mantine-color-gray-1)}:where([data-mantine-color-scheme=dark]) .m_f08a2b4a:where(:hover,:focus-visible,[data-expanded]):where(:not(:disabled,[data-disabled])){background-color:var(--mantine-color-dark-5)}.m_9df02822{--modal-size-xs:calc(20rem * var(--mantine-scale));--modal-size-sm:calc(23.75rem * var(--mantine-scale));--modal-size-md:calc(27.5rem * var(--mantine-scale));--modal-size-lg:calc(38.75rem * var(--mantine-scale));--modal-size-xl:calc(48.75rem * var(--mantine-scale));--modal-size:var(--modal-size-md);--modal-y-offset:5dvh;--modal-x-offset:5vw}.m_9df02822[data-full-screen]{--modal-border-radius:0!important}.m_9df02822[data-full-screen] .m_54c44539{--modal-content-flex:0 0 100%;--modal-content-max-height:auto;--modal-content-height:100dvh}.m_9df02822[data-full-screen] .m_1f958f16{--modal-inner-y-offset:0;--modal-inner-x-offset:0}.m_9df02822[data-centered] .m_1f958f16{--modal-inner-align:center}.m_d0e2b9cd{border-start-start-radius:var(--modal-radius,var(--mantine-radius-default));border-start-end-radius:var(--modal-radius,var(--mantine-radius-default))}.m_54c44539{flex:var(--modal-content-flex,0 0 var(--modal-size));max-width:100%;max-height:var(--modal-content-max-height,calc(100dvh - var(--modal-y-offset) * 2));height:var(--modal-content-height,auto);overflow-y:auto}.m_54c44539[data-full-screen]{border-radius:0}.m_54c44539[data-hidden]{pointer-events:none;opacity:0!important}.m_1f958f16{justify-content:center;align-items:var(--modal-inner-align,flex-start);padding-top:var(--modal-inner-y-offset,var(--modal-y-offset));padding-bottom:var(--modal-inner-y-offset,var(--modal-y-offset));padding-inline:var(--modal-inner-x-offset,var(--modal-x-offset));display:flex}.m_7cda1cd6{--pill-fz-xs:calc(.625rem * var(--mantine-scale));--pill-fz-sm:calc(.75rem * var(--mantine-scale));--pill-fz-md:calc(.875rem * var(--mantine-scale));--pill-fz-lg:calc(1rem * var(--mantine-scale));--pill-fz-xl:calc(1.125rem * var(--mantine-scale));--pill-height-xs:calc(1.125rem * var(--mantine-scale));--pill-height-sm:calc(1.375rem * var(--mantine-scale));--pill-height-md:calc(1.5625rem * var(--mantine-scale));--pill-height-lg:calc(1.75rem * var(--mantine-scale));--pill-height-xl:calc(2rem * var(--mantine-scale));--pill-fz:var(--pill-fz-sm);--pill-height:var(--pill-height-sm);font-size:var(--pill-fz);height:var(--pill-height);border-radius:var(--pill-radius,1000rem);white-space:nowrap;-webkit-user-select:none;user-select:none;flex:0;align-items:center;max-width:100%;padding-inline:.8em;line-height:1;display:inline-flex;position:relative}:where([data-mantine-color-scheme=dark]) .m_7cda1cd6{background-color:var(--mantine-color-dark-7);color:var(--mantine-color-dark-0)}:where([data-mantine-color-scheme=light]) .m_7cda1cd6{color:var(--mantine-color-black)}.m_7cda1cd6:where([data-with-remove]:not(:has(button:disabled))){padding-inline-end:0}.m_7cda1cd6:where([data-disabled],:has(button:disabled)){cursor:not-allowed}.m_7cda1cd6:where([draggable=true]){cursor:grab}.m_7cda1cd6:where([draggable=true]):focus-visible{outline:2px solid var(--mantine-primary-color-filled);outline-offset:calc(.125rem * var(--mantine-scale))}.m_7cda1cd6:where([data-dragging]){opacity:.4;cursor:grabbing}.m_7cda1cd6:where([data-drag-over=before]):before,.m_7cda1cd6:where([data-drag-over=after]):after{content:"";width:calc(.125rem * var(--mantine-scale));background-color:var(--mantine-primary-color-filled);pointer-events:none;z-index:1;position:absolute;top:0;bottom:0}.m_7cda1cd6:where([data-drag-over=before]):before{inset-inline-start:calc(-.25rem * var(--mantine-scale))}.m_7cda1cd6:where([data-drag-over=after]):after{inset-inline-end:calc(-.25rem * var(--mantine-scale))}:where([data-mantine-color-scheme=light]) .m_44da308b{background-color:var(--mantine-color-gray-1)}:where([data-mantine-color-scheme=light]) .m_44da308b:where([data-disabled],:has(button:disabled)){background-color:var(--mantine-color-disabled)}:where([data-mantine-color-scheme=light]) .m_e3a01f8{background-color:var(--mantine-color-white)}:where([data-mantine-color-scheme=light]) .m_e3a01f8:where([data-disabled],:has(button:disabled)){background-color:var(--mantine-color-disabled)}.m_1e0e6180{cursor:inherit;height:100%;line-height:var(--pill-height);text-overflow:ellipsis;display:block;overflow:hidden}.m_ae386778{color:inherit;font-size:inherit;height:100%;min-height:unset;min-width:2em;width:unset;border-radius:0;border-start-end-radius:var(--pill-radius,50%);border-end-end-radius:var(--pill-radius,50%);flex:0;padding-inline:.1em .3em}.m_7cda1cd6[data-disabled]>.m_ae386778,.m_ae386778:disabled{cursor:not-allowed;background-color:#0000;width:.8em;min-width:.8em;padding:0;display:none}.m_7cda1cd6[data-disabled]>.m_ae386778>svg,.m_ae386778:disabled>svg{display:none}.m_ae386778>svg{pointer-events:none}.m_1dcfd90b{--pg-gap-xs:calc(.375rem * var(--mantine-scale));--pg-gap-sm:calc(.5rem * var(--mantine-scale));--pg-gap-md:calc(.625rem * var(--mantine-scale));--pg-gap-lg:calc(.75rem * var(--mantine-scale));--pg-gap-xl:calc(.75rem * var(--mantine-scale));--pg-gap:var(--pg-gap-sm);align-items:center;gap:var(--pg-gap);flex-wrap:wrap;display:flex}.m_45c4369d{appearance:none;min-width:calc(6.25rem * var(--mantine-scale));font-size:inherit;height:1.6em;color:inherit;background-color:#0000;border:0;flex:1;padding:0}.m_45c4369d::placeholder{color:var(--input-placeholder-color);opacity:1}.m_45c4369d:where([data-type=hidden],[data-type=auto]){height:calc(.0625rem * var(--mantine-scale));width:calc(.0625rem * var(--mantine-scale));pointer-events:none;opacity:0;position:absolute;top:0;left:0}.m_45c4369d:focus{outline:none}.m_45c4369d:where([data-type=auto]:focus){visibility:visible;opacity:1;height:1.6em;position:static}.m_45c4369d:where([data-pointer]:not([data-disabled],:disabled)){cursor:pointer}.m_45c4369d:where([data-disabled],:disabled){cursor:not-allowed}.m_f0824112{--nl-bg:var(--mantine-primary-color-light);--nl-hover:var(--mantine-primary-color-light-hover);--nl-color:var(--mantine-primary-color-light-color);width:100%;padding:8px var(--mantine-spacing-sm);-webkit-user-select:none;user-select:none;align-items:center;display:flex}@media (hover:hover){:where([data-mantine-color-scheme=light]) .m_f0824112:hover{background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_f0824112:hover{background-color:var(--mantine-color-dark-6)}}@media (hover:none){:where([data-mantine-color-scheme=light]) .m_f0824112:active{background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_f0824112:active{background-color:var(--mantine-color-dark-6)}}.m_f0824112:where([data-disabled]){opacity:.4;pointer-events:none}.m_f0824112:where([data-active],[aria-current=page]){background-color:var(--nl-bg);color:var(--nl-color)}@media (hover:hover){.m_f0824112:where([data-active],[aria-current=page]):hover{background-color:var(--nl-hover)}}@media (hover:none){.m_f0824112:where([data-active],[aria-current=page]):active{background-color:var(--nl-hover)}}.m_f0824112:where([data-active],[aria-current=page]) .m_57492dcc{--description-opacity:.9;--description-color:var(--nl-color)}.m_690090b5{justify-content:center;align-items:center;transition:transform .15s;display:flex}.m_690090b5>svg{display:block}.m_690090b5:where([data-position=left]){margin-inline-end:var(--mantine-spacing-sm)}.m_690090b5:where([data-position=right]){margin-inline-start:var(--mantine-spacing-sm)}.m_690090b5:where([data-rotate]){transform:rotate(90deg)}.m_1f6ac4c4{font-size:var(--mantine-font-size-sm)}.m_f07af9d2{text-overflow:ellipsis;flex:1;overflow:hidden}.m_f07af9d2:where([data-no-wrap]){white-space:nowrap}.m_57492dcc{font-size:var(--mantine-font-size-xs);opacity:var(--description-opacity,1);color:var(--description-color,var(--mantine-color-dimmed));text-overflow:ellipsis;display:block;overflow:hidden}:where([data-no-wrap]) .m_57492dcc{white-space:nowrap}.m_e17b862f{padding-inline-start:var(--nl-offset,var(--mantine-spacing-lg))}.m_1fd8a00b{transform:rotate(-90deg)}.m_a513464{--notification-radius:var(--mantine-radius-default);--notification-color:var(--mantine-primary-color-filled);box-sizing:border-box;padding-inline-start:calc(1.375rem * var(--mantine-scale));padding-inline-end:var(--mantine-spacing-xs);padding-top:var(--mantine-spacing-xs);padding-bottom:var(--mantine-spacing-xs);border-radius:var(--notification-radius);box-shadow:var(--mantine-shadow-lg);align-items:center;display:flex;position:relative;overflow:hidden}.m_a513464:before{content:"";width:calc(.375rem * var(--mantine-scale));top:var(--notification-radius);bottom:var(--notification-radius);border-radius:var(--notification-radius);background-color:var(--notification-color);display:block;position:absolute;inset-inline-start:calc(.25rem * var(--mantine-scale))}:where([data-mantine-color-scheme=light]) .m_a513464{background-color:var(--mantine-color-white)}:where([data-mantine-color-scheme=dark]) .m_a513464{background-color:var(--mantine-color-dark-6)}.m_a513464:where([data-with-icon]):before{display:none}:where([data-mantine-color-scheme=light]) .m_a513464:where([data-with-border]){border:1px solid var(--mantine-color-gray-3)}:where([data-mantine-color-scheme=dark]) .m_a513464:where([data-with-border]){border:1px solid var(--mantine-color-dark-4)}.m_a4ceffb{box-sizing:border-box;width:calc(1.75rem * var(--mantine-scale));height:calc(1.75rem * var(--mantine-scale));border-radius:calc(1.75rem * var(--mantine-scale));background-color:var(--notification-color);color:var(--mantine-color-white);justify-content:center;align-items:center;margin-inline-end:var(--mantine-spacing-md);display:flex}.m_b0920b15{margin-inline-end:var(--mantine-spacing-md)}.m_a49ed24{flex:1;margin-inline-end:var(--mantine-spacing-xs);overflow:hidden}.m_3feedf16{margin-bottom:calc(.125rem * var(--mantine-scale));text-overflow:ellipsis;font-size:var(--mantine-font-size-sm);line-height:var(--mantine-line-height-sm);font-weight:var(--mantine-font-weight-medium);overflow:hidden}:where([data-mantine-color-scheme=light]) .m_3feedf16{color:var(--mantine-color-gray-9)}:where([data-mantine-color-scheme=dark]) .m_3feedf16{color:var(--mantine-color-white)}.m_3d733a3a{font-size:var(--mantine-font-size-sm);line-height:var(--mantine-line-height-sm);text-overflow:ellipsis;overflow:hidden}:where([data-mantine-color-scheme=light]) .m_3d733a3a{color:var(--mantine-color-black)}:where([data-mantine-color-scheme=dark]) .m_3d733a3a{color:var(--mantine-color-dark-0)}:where([data-mantine-color-scheme=light]) .m_3d733a3a:where([data-with-title]){color:var(--mantine-color-gray-6)}:where([data-mantine-color-scheme=dark]) .m_3d733a3a:where([data-with-title]){color:var(--mantine-color-dark-2)}@media (hover:hover){:where([data-mantine-color-scheme=light]) .m_919a4d88:hover{background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_919a4d88:hover{background-color:var(--mantine-color-dark-8)}}@media (hover:none){:where([data-mantine-color-scheme=light]) .m_919a4d88:active{background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_919a4d88:active{background-color:var(--mantine-color-dark-8)}}.m_e2f5cd4e{--ni-right-section-width-xs:calc(1.0625rem * var(--mantine-scale));--ni-right-section-width-sm:calc(1.5rem * var(--mantine-scale));--ni-right-section-width-md:calc(1.6875rem * var(--mantine-scale));--ni-right-section-width-lg:calc(1.9375rem * var(--mantine-scale));--ni-right-section-width-xl:calc(2.125rem * var(--mantine-scale))}.m_95e17d22{--ni-chevron-size-xs:calc(.625rem * var(--mantine-scale));--ni-chevron-size-sm:calc(.875rem * var(--mantine-scale));--ni-chevron-size-md:calc(1rem * var(--mantine-scale));--ni-chevron-size-lg:calc(1.125rem * var(--mantine-scale));--ni-chevron-size-xl:calc(1.25rem * var(--mantine-scale));--ni-chevron-size:var(--ni-chevron-size-sm);width:100%;height:calc(var(--input-height) - calc(.125rem * var(--mantine-scale)));max-width:calc(var(--ni-chevron-size) * 1.7);flex-direction:column;margin-inline-start:auto;display:flex}.m_80b4b171{--control-border:1px solid var(--input-bd);--control-radius:calc(var(--input-radius) - calc(.0625rem * var(--mantine-scale)));width:100%;height:calc(var(--input-height) / 2 - calc(.0625rem * var(--mantine-scale)));border-inline-start:var(--control-border);color:var(--mantine-color-text);cursor:pointer;background-color:#0000;flex:0 0 50%;justify-content:center;align-items:center;padding:0;display:flex}.m_80b4b171:where(:disabled){cursor:not-allowed;opacity:.6;color:var(--mantine-color-disabled-color);background-color:#0000}.m_e2f5cd4e[data-error] :where(.m_80b4b171){color:var(--mantine-color-error)}@media (hover:hover){:where([data-mantine-color-scheme=light]) .m_80b4b171:hover{background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_80b4b171:hover{background-color:var(--mantine-color-dark-4)}}@media (hover:none){:where([data-mantine-color-scheme=light]) .m_80b4b171:active{background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_80b4b171:active{background-color:var(--mantine-color-dark-4)}}.m_80b4b171:where(:first-of-type){border-radius:0;border-start-end-radius:var(--control-radius)}.m_80b4b171:last-of-type{border-radius:0;border-end-end-radius:var(--control-radius)}.m_f62ab2af{contain:layout style;gap:var(--ol-gap,var(--mantine-spacing-xs));flex-wrap:wrap;display:flex}.m_4addd315{--pagination-control-size-xs:calc(1.375rem * var(--mantine-scale));--pagination-control-size-sm:calc(1.625rem * var(--mantine-scale));--pagination-control-size-md:calc(2rem * var(--mantine-scale));--pagination-control-size-lg:calc(2.375rem * var(--mantine-scale));--pagination-control-size-xl:calc(2.75rem * var(--mantine-scale));--pagination-control-size-input-xs:calc(1.875rem * var(--mantine-scale));--pagination-control-size-input-sm:calc(2.25rem * var(--mantine-scale));--pagination-control-size-input-md:calc(2.625rem * var(--mantine-scale));--pagination-control-size-input-lg:calc(3.125rem * var(--mantine-scale));--pagination-control-size-input-xl:calc(3.75rem * var(--mantine-scale));--pagination-control-size:var(--pagination-control-size-md);--pagination-control-fz:var(--mantine-font-size-md);--pagination-active-bg:var(--mantine-primary-color-filled)}.m_4addd315:where([data-layout=responsive]){container-type:inline-size}.m_326d024a{border:calc(.0625rem * var(--mantine-scale)) solid;cursor:pointer;color:var(--mantine-color-text);height:var(--pagination-control-size);min-width:var(--pagination-control-size);font-size:var(--pagination-control-fz);border-radius:var(--pagination-control-radius,var(--mantine-radius-default));justify-content:center;align-items:center;line-height:1;display:flex}.m_326d024a:where([data-with-padding]){padding:calc(var(--pagination-control-size) / 4)}.m_326d024a:where(:disabled,[data-disabled]){cursor:not-allowed;opacity:.4}:where([data-mantine-color-scheme=light]) .m_326d024a{border-color:var(--mantine-color-gray-4);background-color:var(--mantine-color-white)}@media (hover:hover){:where([data-mantine-color-scheme=light]) .m_326d024a:hover:where(:not(:disabled,[data-disabled])){background-color:var(--mantine-color-gray-0)}}@media (hover:none){:where([data-mantine-color-scheme=light]) .m_326d024a:active:where(:not(:disabled,[data-disabled])){background-color:var(--mantine-color-gray-0)}}:where([data-mantine-color-scheme=dark]) .m_326d024a{border-color:var(--mantine-color-dark-4);background-color:var(--mantine-color-dark-6)}@media (hover:hover){:where([data-mantine-color-scheme=dark]) .m_326d024a:hover:where(:not(:disabled,[data-disabled])){background-color:var(--mantine-color-dark-5)}}@media (hover:none){:where([data-mantine-color-scheme=dark]) .m_326d024a:active:where(:not(:disabled,[data-disabled])){background-color:var(--mantine-color-dark-5)}}.m_326d024a:where([data-active]){background-color:var(--pagination-active-bg);border-color:var(--pagination-active-bg);color:var(--pagination-active-color,var(--mantine-color-white))}@media (hover:hover){.m_326d024a:where([data-active]):hover{background-color:var(--pagination-active-bg)}}@media (hover:none){.m_326d024a:where([data-active]):active{background-color:var(--pagination-active-bg)}}.m_4ad7767d{height:var(--pagination-control-size);min-width:var(--pagination-control-size);pointer-events:none;justify-content:center;align-items:center;display:flex}.m_105fdbed{gap:inherit;align-items:center;display:flex}@container (width<=400px){.m_105fdbed{display:none}}.m_10817321{height:var(--pagination-control-size);font-size:var(--pagination-control-fz);white-space:nowrap;justify-content:center;align-items:center;display:none}@container (width<=400px){.m_10817321{display:flex}}.m_f61ca620{--psi-button-size-xs:calc(1.375rem * var(--mantine-scale));--psi-button-size-sm:calc(1.625rem * var(--mantine-scale));--psi-button-size-md:calc(1.75rem * var(--mantine-scale));--psi-button-size-lg:calc(2rem * var(--mantine-scale));--psi-button-size-xl:calc(2.5rem * var(--mantine-scale));--psi-icon-size-xs:calc(1rem * var(--mantine-scale));--psi-icon-size-sm:calc(1.25rem * var(--mantine-scale));--psi-icon-size-md:calc(1.375rem * var(--mantine-scale));--psi-icon-size-lg:calc(1.5rem * var(--mantine-scale));--psi-icon-size-xl:calc(1.75rem * var(--mantine-scale));--psi-button-size:var(--psi-button-size-sm);--psi-icon-size:var(--psi-icon-size-sm)}.m_ccf8da4c{position:relative;overflow:hidden}.m_f2d85dd2{font-family:var(--mantine-font-family);font-size:inherit;line-height:var(--mantine-line-height);width:100%;height:100%;color:inherit;background-color:#0000;border:0;outline:0;padding-inline-start:var(--input-padding-inline-start);padding-inline-end:var(--input-padding-inline-end);position:absolute;inset:0}.m_ccf8da4c[data-disabled] .m_f2d85dd2,.m_f2d85dd2:disabled{cursor:not-allowed}.m_f2d85dd2::placeholder{color:var(--input-placeholder-color);opacity:1}.m_f2d85dd2::-ms-reveal{display:none}.m_b1072d44{width:var(--psi-button-size);height:var(--psi-button-size);min-width:var(--psi-button-size);min-height:var(--psi-button-size)}.m_b1072d44:disabled{display:none}.m_f1cb205a{--pin-input-size-xs:calc(1.875rem * var(--mantine-scale));--pin-input-size-sm:calc(2.25rem * var(--mantine-scale));--pin-input-size-md:calc(2.625rem * var(--mantine-scale));--pin-input-size-lg:calc(3.125rem * var(--mantine-scale));--pin-input-size-xl:calc(3.75rem * var(--mantine-scale));--pin-input-size:var(--pin-input-size-sm)}.m_cb288ead{width:var(--pin-input-size);height:var(--pin-input-size)}@keyframes m_81a374bd{0%{background-position:0 0}to{background-position:calc(2.5rem * var(--mantine-scale)) 0}}@keyframes m_e0fb7a86{0%{background-position:0 0}to{background-position:0 calc(2.5rem * var(--mantine-scale))}}.m_db6d6462{--progress-radius:var(--mantine-radius-default);--progress-size:var(--progress-size-md);--progress-size-xs:calc(.1875rem * var(--mantine-scale));--progress-size-sm:calc(.3125rem * var(--mantine-scale));--progress-size-md:calc(.5rem * var(--mantine-scale));--progress-size-lg:calc(.75rem * var(--mantine-scale));--progress-size-xl:calc(1rem * var(--mantine-scale));height:var(--progress-size);border-radius:var(--progress-radius);display:flex;position:relative;overflow:hidden}:where([data-mantine-color-scheme=light]) .m_db6d6462{background-color:var(--mantine-color-gray-2)}:where([data-mantine-color-scheme=dark]) .m_db6d6462{background-color:var(--mantine-color-dark-4)}.m_db6d6462:where([data-orientation=vertical]){height:auto;width:var(--progress-size);flex-direction:column-reverse}.m_2242eb65{background-color:var(--progress-section-color);height:100%;width:var(--progress-section-size);background-size:calc(1.25rem * var(--mantine-scale)) calc(1.25rem * var(--mantine-scale));transition:width var(--progress-transition-duration,.1s) ease;justify-content:center;align-items:center;display:flex;overflow:hidden}.m_2242eb65:where([data-striped]){background-image:linear-gradient(45deg,#ffffff26 25%,#0000 25% 50%,#ffffff26 50% 75%,#0000 75%,#0000)}.m_2242eb65:where([data-animated]){animation:1s linear infinite m_81a374bd}.m_2242eb65:where(:last-of-type){border-radius:0;border-start-end-radius:var(--progress-radius);border-end-end-radius:var(--progress-radius)}.m_2242eb65:where(:first-of-type){border-radius:0;border-start-start-radius:var(--progress-radius);border-end-start-radius:var(--progress-radius)}.m_db6d6462:where([data-orientation=vertical]) .m_2242eb65{width:100%;height:var(--progress-section-size);transition:height var(--progress-transition-duration,.1s) ease}.m_db6d6462:where([data-orientation=vertical]) .m_2242eb65:where([data-striped]){background-image:linear-gradient(135deg,#ffffff26 25%,#0000 25% 50%,#ffffff26 50% 75%,#0000 75%,#0000)}.m_db6d6462:where([data-orientation=vertical]) .m_2242eb65:where([data-animated]){animation:1s linear infinite m_e0fb7a86}.m_db6d6462:where([data-orientation=vertical]) .m_2242eb65:where(:last-of-type){border-radius:0;border-start-start-radius:var(--progress-radius);border-start-end-radius:var(--progress-radius)}.m_db6d6462:where([data-orientation=vertical]) .m_2242eb65:where(:first-of-type){border-radius:0;border-end-end-radius:var(--progress-radius);border-end-start-radius:var(--progress-radius)}.m_91e40b74{color:var(--progress-label-color,var(--mantine-color-white));-webkit-user-select:none;user-select:none;white-space:nowrap;text-overflow:ellipsis;font-weight:700;font-size:min(calc(var(--progress-size) * .65), calc(1.125rem * var(--mantine-scale)));padding-inline:calc(.25rem * var(--mantine-scale));line-height:1;overflow:hidden}.m_db6d6462:where([data-orientation=vertical]) .m_91e40b74{writing-mode:vertical-rl}.m_9dc8ae12{--card-radius:var(--mantine-radius-default);border-radius:var(--card-radius);cursor:pointer;width:100%;display:block}.m_9dc8ae12 :where(*){cursor:inherit}.m_9dc8ae12:where([data-with-border]){border:calc(.0625rem * var(--mantine-scale)) solid transparent}:where([data-mantine-color-scheme=light]) .m_9dc8ae12:where([data-with-border]){border-color:var(--mantine-color-gray-3)}:where([data-mantine-color-scheme=dark]) .m_9dc8ae12:where([data-with-border]){border-color:var(--mantine-color-dark-4)}.m_717d7ff6{--radio-size-xs:calc(1rem * var(--mantine-scale));--radio-size-sm:calc(1.25rem * var(--mantine-scale));--radio-size-md:calc(1.5rem * var(--mantine-scale));--radio-size-lg:calc(1.875rem * var(--mantine-scale));--radio-size-xl:calc(2.25rem * var(--mantine-scale));--radio-icon-size-xs:calc(.375rem * var(--mantine-scale));--radio-icon-size-sm:calc(.5rem * var(--mantine-scale));--radio-icon-size-md:calc(.625rem * var(--mantine-scale));--radio-icon-size-lg:calc(.875rem * var(--mantine-scale));--radio-icon-size-xl:calc(1rem * var(--mantine-scale));--radio-icon-size:var(--radio-icon-size-sm);--radio-size:var(--radio-size-sm);--radio-color:var(--mantine-primary-color-filled);--radio-icon-color:var(--mantine-color-white);border:calc(.0625rem * var(--mantine-scale)) solid transparent;width:var(--radio-size);min-width:var(--radio-size);height:var(--radio-size);min-height:var(--radio-size);border-radius:var(--radio-radius,10000px);cursor:var(--mantine-cursor-type);-webkit-tap-highlight-color:transparent;justify-content:center;align-items:center;transition:border-color .1s,background-color .1s;display:flex;position:relative}:where([data-mantine-color-scheme=light]) .m_717d7ff6{background-color:var(--mantine-color-white);border-color:var(--mantine-color-gray-4)}:where([data-mantine-color-scheme=dark]) .m_717d7ff6{background-color:var(--mantine-color-dark-6);border-color:var(--mantine-color-dark-4)}.m_717d7ff6[data-checked]{background-color:var(--radio-color);border-color:var(--radio-color)}.m_717d7ff6[data-checked]>.m_3e4da632{opacity:1;color:var(--radio-icon-color);transform:none}.m_717d7ff6[data-disabled]{cursor:not-allowed;background-color:var(--mantine-color-disabled);border-color:var(--mantine-color-disabled-border)}.m_717d7ff6[data-disabled][data-checked]>.m_3e4da632{color:var(--mantine-color-disabled-color)}.m_2980836c[data-checked]:not([data-disabled]){border-color:var(--radio-color);background-color:#0000}.m_2980836c[data-checked]:not([data-disabled])>.m_3e4da632{color:var(--radio-color);opacity:1;transform:none}.m_3e4da632{width:var(--radio-icon-size);height:var(--radio-icon-size);color:#0000;pointer-events:none;transform:translateY(calc(.3125rem * var(--mantine-scale))) scale(.5);opacity:1;transition:transform .1s,opacity .1s;display:block}.m_f3f1af94{--radio-size-xs:calc(1rem * var(--mantine-scale));--radio-size-sm:calc(1.25rem * var(--mantine-scale));--radio-size-md:calc(1.5rem * var(--mantine-scale));--radio-size-lg:calc(1.875rem * var(--mantine-scale));--radio-size-xl:calc(2.25rem * var(--mantine-scale));--radio-size:var(--radio-size-sm);--radio-icon-size-xs:calc(.375rem * var(--mantine-scale));--radio-icon-size-sm:calc(.5rem * var(--mantine-scale));--radio-icon-size-md:calc(.625rem * var(--mantine-scale));--radio-icon-size-lg:calc(.875rem * var(--mantine-scale));--radio-icon-size-xl:calc(1rem * var(--mantine-scale));--radio-icon-size:var(--radio-icon-size-sm);--radio-icon-color:var(--mantine-color-white)}.m_89c4f5e4{width:var(--radio-size);height:var(--radio-size);order:1;position:relative}.m_89c4f5e4:where([data-label-position=left]){order:2}.m_f3ed6b2b{color:var(--radio-icon-color);opacity:var(--radio-icon-opacity,0);translate:-50% -50%;transform:var(--radio-icon-transform,scale(.2) translateY(calc(.625rem * var(--mantine-scale))));pointer-events:none;width:var(--radio-icon-size);height:var(--radio-icon-size);transition:opacity .1s,transform .2s;position:absolute;top:50%;left:50%}.m_8a3dbb89{border:calc(.0625rem * var(--mantine-scale)) solid;appearance:none;width:var(--radio-size);height:var(--radio-size);border-radius:var(--radio-radius,var(--radio-size));cursor:var(--mantine-cursor-type);-webkit-tap-highlight-color:transparent;justify-content:center;align-items:center;margin:0;transition-property:background-color,border-color;transition-duration:.1s;transition-timing-function:ease;display:flex;position:relative}:where([data-mantine-color-scheme=light]) .m_8a3dbb89{background-color:var(--mantine-color-white);border-color:var(--mantine-color-gray-4)}:where([data-mantine-color-scheme=dark]) .m_8a3dbb89{background-color:var(--mantine-color-dark-6);border-color:var(--mantine-color-dark-4)}.m_8a3dbb89:checked{background-color:var(--radio-color,var(--mantine-primary-color-filled));border-color:var(--radio-color,var(--mantine-primary-color-filled))}.m_8a3dbb89:checked+.m_f3ed6b2b{--radio-icon-opacity:1;--radio-icon-transform:scale(1)}.m_8a3dbb89:disabled{cursor:not-allowed;background-color:var(--mantine-color-disabled);border-color:var(--mantine-color-disabled-border)}.m_8a3dbb89:disabled+.m_f3ed6b2b{--radio-icon-color:var(--mantine-color-disabled-color)}.m_8a3dbb89:where([data-with-error-styles][data-error]){border-color:var(--mantine-color-error)}.m_1bfe9d39+.m_f3ed6b2b{--radio-icon-color:var(--radio-color)}.m_1bfe9d39:checked:not(:disabled){border-color:var(--radio-color);background-color:#0000}.m_1bfe9d39:checked:not(:disabled)+.m_f3ed6b2b{--radio-icon-color:var(--radio-color);--radio-icon-opacity:1;--radio-icon-transform:none}.m_f8d312f2{--rating-size-xs:calc(.875rem * var(--mantine-scale));--rating-size-sm:calc(1.125rem * var(--mantine-scale));--rating-size-md:calc(1.25rem * var(--mantine-scale));--rating-size-lg:calc(1.75rem * var(--mantine-scale));--rating-size-xl:calc(2rem * var(--mantine-scale));width:max-content;display:flex}.m_f8d312f2:where(:has(input:disabled)){pointer-events:none}.m_61734bb7{transition:transform .1s;position:relative}.m_61734bb7:where([data-active]){z-index:1;transform:scale(1.1)}.m_5662a89a{width:var(--rating-size);height:var(--rating-size);display:block}:where([data-mantine-color-scheme=light]) .m_5662a89a{fill:var(--mantine-color-gray-3);stroke:var(--mantine-color-gray-3)}:where([data-mantine-color-scheme=dark]) .m_5662a89a{fill:var(--mantine-color-dark-3);stroke:var(--mantine-color-dark-3)}.m_5662a89a:where([data-filled]){fill:var(--rating-color);stroke:var(--rating-color)}.m_211007ba{white-space:nowrap;opacity:0;-webkit-tap-highlight-color:transparent;width:0;height:0;position:absolute;overflow:hidden}.m_211007ba:focus-visible+label{outline:2px solid var(--mantine-primary-color-filled);outline-offset:calc(.125rem * var(--mantine-scale))}.m_21342ee4{cursor:pointer;z-index:var(--rating-item-z-index,0);-webkit-tap-highlight-color:transparent;display:block;position:absolute;top:0;left:0}.m_21342ee4:where([data-read-only]){cursor:default}.m_21342ee4:where(:last-of-type){position:relative}.m_fae05d6a{clip-path:var(--rating-symbol-clip-path)}.m_47dd3981{align-items:baseline;display:inline-flex;overflow:hidden}.m_47dd3981[data-tabular-numbers]{font-variant-numeric:tabular-nums}.m_b301d46e{width:1ch;height:1em;transition:width var(--rn-duration) var(--rn-timing-function), opacity var(--rn-duration) var(--rn-timing-function);line-height:1;display:inline-block;overflow:hidden}.m_b301d46e[data-empty]{opacity:0;width:0}.m_8ae40964{animation:m_18d73873 var(--rn-duration) var(--rn-timing-function);flex-direction:column;display:flex}.m_8ae40964>span{justify-content:center;align-items:center;height:1em;display:flex}.m_47d64bf5{white-space:pre;transition:opacity var(--rn-duration) var(--rn-timing-function);display:inline-block;overflow:hidden}.m_47d64bf5[data-empty]{opacity:0;width:0}@keyframes m_18d73873{0%{transform:var(--rn-roll-from)}to{transform:var(--rn-roll-to)}}.m_1b3c8819{--tooltip-radius:var(--mantine-radius-default);padding:calc(var(--mantine-spacing-xs) / 2) var(--mantine-spacing-xs);pointer-events:none;font-size:var(--mantine-font-size-sm);white-space:nowrap;border-radius:var(--tooltip-radius);position:absolute}:where([data-mantine-color-scheme=light]) .m_1b3c8819{background-color:var(--tooltip-bg,var(--mantine-color-gray-9));color:var(--tooltip-color,var(--mantine-color-white))}:where([data-mantine-color-scheme=dark]) .m_1b3c8819{background-color:var(--tooltip-bg,var(--mantine-color-gray-2));color:var(--tooltip-color,var(--mantine-color-black))}.m_1b3c8819:where([data-multiline]){white-space:normal}.m_1b3c8819:where([data-fixed]){position:fixed}.m_1b3c8819:where([data-interactive]){pointer-events:auto}.m_f898399f{background-color:inherit;z-index:1;border:0}.m_b32e4812{width:var(--rp-size);height:var(--rp-size);min-width:var(--rp-size);min-height:var(--rp-size);--rp-transition-duration:0s;position:relative}.m_d43b5134{width:var(--rp-size);height:var(--rp-size);min-width:var(--rp-size);min-height:var(--rp-size);transform:rotate(calc(var(--rp-start-angle,270deg) - 360deg))}.m_b1ca1fbf{stroke:var(--curve-color,var(--rp-curve-root-color));transition:stroke-dashoffset var(--rp-transition-duration) ease, stroke-dasharray var(--rp-transition-duration) ease, stroke var(--rp-transition-duration)}[data-mantine-color-scheme=light] .m_b1ca1fbf{--rp-curve-root-color:var(--mantine-color-gray-2)}[data-mantine-color-scheme=dark] .m_b1ca1fbf{--rp-curve-root-color:var(--mantine-color-dark-4)}.m_b23f9dc4{top:50%;inset-inline:var(--rp-label-offset);position:absolute;transform:translateY(-50%)}.m_bc8f275{--scroller-control-size:calc(3.125rem * var(--mantine-scale));--scroller-background-color:var(--mantine-color-body);align-items:center;max-width:100%;display:flex;position:relative;overflow:hidden}.m_ee44dece{scrollbar-width:none;-ms-overflow-style:none;-webkit-user-select:none;user-select:none;flex:1;overflow:auto hidden}.m_ee44dece::-webkit-scrollbar{display:none}.m_ee44dece[data-draggable]{cursor:grab}.m_53e4f606{white-space:nowrap;display:inline-flex}.m_47754fc8{width:var(--scroller-control-size);height:var(--scroller-control-size)}.m_53e526ea{width:var(--scroller-control-size);z-index:1;color:var(--mantine-color-dimmed);opacity:1;pointer-events:auto;align-items:center;transition:opacity .2s,color .15s;display:flex;position:absolute;top:0;bottom:0}.m_53e526ea:hover{color:var(--mantine-color-text)}.m_53e526ea:where([data-position=start]){background:linear-gradient(to right, var(--scroller-background-color) 40%, transparent);justify-content:flex-start;inset-inline-start:0}.m_53e526ea:where([data-position=start]) .m_47754fc8{transform:rotate(90deg)}.m_53e526ea:where([data-position=end]){background:linear-gradient(to left, var(--scroller-background-color) 40%, transparent);justify-content:flex-end;inset-inline-end:0}.m_53e526ea:where([data-position=end]) .m_47754fc8{transform:rotate(-90deg)}.m_53e526ea:where([data-hidden]){opacity:0;pointer-events:none}.m_cf365364{--sc-padding-xs:calc(.125rem * var(--mantine-scale)) calc(.375rem * var(--mantine-scale));--sc-padding-sm:calc(.1875rem * var(--mantine-scale)) calc(.625rem * var(--mantine-scale));--sc-padding-md:calc(.25rem * var(--mantine-scale)) calc(.875rem * var(--mantine-scale));--sc-padding-lg:calc(.4375rem * var(--mantine-scale)) calc(1rem * var(--mantine-scale));--sc-padding-xl:calc(.625rem * var(--mantine-scale)) calc(1.25rem * var(--mantine-scale));--sc-transition-duration:.2s;--sc-padding:var(--sc-padding-sm);--sc-transition-timing-function:ease;--sc-font-size:var(--mantine-font-size-sm);border-radius:var(--sc-radius,var(--mantine-radius-default));width:auto;padding:calc(.25rem * var(--mantine-scale));flex-direction:row;display:inline-flex;position:relative;overflow:hidden}.m_cf365364:where([data-full-width]){display:flex}.m_cf365364:where([data-orientation=vertical]){flex-direction:column;width:max-content;display:flex}.m_cf365364:where([data-orientation=vertical]):where([data-full-width]){width:auto}:where([data-mantine-color-scheme=light]) .m_cf365364{background-color:var(--mantine-color-gray-1)}:where([data-mantine-color-scheme=dark]) .m_cf365364{background-color:var(--mantine-color-dark-8)}.m_9e182ccd{z-index:1;border-radius:max(calc(var(--sc-radius,var(--mantine-radius-default)) - 4px), calc(var(--sc-radius,var(--mantine-radius-default)) / 4));display:block;position:absolute}:where([data-mantine-color-scheme=light]) .m_9e182ccd{box-shadow:var(--sc-shadow,none);background-color:var(--sc-color,var(--mantine-color-white))}:where([data-mantine-color-scheme=dark]) .m_9e182ccd{box-shadow:none;background-color:var(--sc-color,var(--mantine-color-dark-5))}.m_1738fcb2{-webkit-tap-highlight-color:transparent;font-weight:var(--mantine-font-weight-medium);text-align:center;white-space:nowrap;text-overflow:ellipsis;-webkit-user-select:none;user-select:none;border-radius:calc(var(--sc-radius,var(--mantine-radius-default)) - 4px);font-size:var(--sc-font-size);padding:var(--sc-padding);transition:color var(--sc-transition-duration) var(--sc-transition-timing-function);cursor:pointer;outline:var(--segmented-control-outline,none);display:block;overflow:hidden}:where([data-mantine-color-scheme=light]) .m_1738fcb2{color:var(--mantine-color-gray-7)}:where([data-mantine-color-scheme=dark]) .m_1738fcb2{color:var(--mantine-color-dark-1)}.m_1738fcb2:where([data-read-only]){cursor:default}fieldset:disabled .m_1738fcb2,.m_1738fcb2:where([data-disabled]){cursor:not-allowed;color:var(--mantine-color-disabled-color)}:where([data-mantine-color-scheme=light]) .m_1738fcb2:where([data-active]){color:var(--sc-label-color,var(--mantine-color-black))}:where([data-mantine-color-scheme=dark]) .m_1738fcb2:where([data-active]){color:var(--sc-label-color,var(--mantine-color-white))}.m_cf365364:where([data-initialized]) .m_1738fcb2:where([data-active]):before{display:none}.m_1738fcb2:where([data-active]):before{content:"";z-index:0;border-radius:calc(var(--sc-radius,var(--mantine-radius-default)) - 4px);position:absolute;inset:0}:where([data-mantine-color-scheme=light]) .m_1738fcb2:where([data-active]):before{box-shadow:var(--sc-shadow,none);background-color:var(--sc-color,var(--mantine-color-white))}:where([data-mantine-color-scheme=dark]) .m_1738fcb2:where([data-active]):before{box-shadow:none;background-color:var(--sc-color,var(--mantine-color-dark-5))}@media (hover:hover){:where([data-mantine-color-scheme=light]) .m_1738fcb2:where(:not([data-disabled],[data-active],[data-read-only])):hover{color:var(--mantine-color-black)}:where([data-mantine-color-scheme=dark]) .m_1738fcb2:where(:not([data-disabled],[data-active],[data-read-only])):hover{color:var(--mantine-color-white)}}@media (hover:none){:where([data-mantine-color-scheme=light]) .m_1738fcb2:where(:not([data-disabled],[data-active],[data-read-only])):active{color:var(--mantine-color-black)}:where([data-mantine-color-scheme=dark]) .m_1738fcb2:where(:not([data-disabled],[data-active],[data-read-only])):active{color:var(--mantine-color-white)}}@media (hover:hover){fieldset:disabled .m_1738fcb2:hover{color:var(--mantine-color-disabled-color)!important}}@media (hover:none){fieldset:disabled .m_1738fcb2:active{color:var(--mantine-color-disabled-color)!important}}.m_1714d588{white-space:nowrap;opacity:0;width:0;height:0;position:absolute;overflow:hidden}.m_1714d588[data-focus-ring=auto]:focus:focus-visible+.m_1738fcb2,.m_1714d588[data-focus-ring=always]:focus+.m_1738fcb2{--segmented-control-outline:2px solid var(--mantine-primary-color-filled)}.m_69686b9b{z-index:2;transition:border-color var(--sc-transition-duration) var(--sc-transition-timing-function);flex:1;position:relative}.m_cf365364[data-with-items-borders] :where(.m_69686b9b):before{content:"";top:0;bottom:0;background-color:var(--separator-color);width:calc(.0625rem * var(--mantine-scale));transition:background-color var(--sc-transition-duration) var(--sc-transition-timing-function);position:absolute;inset-inline-start:0}.m_69686b9b[data-orientation=vertical]:before{top:0;inset-inline:0;height:calc(.0625rem * var(--mantine-scale));width:auto;bottom:auto}:where([data-mantine-color-scheme=light]) .m_69686b9b{--separator-color:var(--mantine-color-gray-3)}:where([data-mantine-color-scheme=dark]) .m_69686b9b{--separator-color:var(--mantine-color-dark-4)}.m_69686b9b:first-of-type:before,[data-mantine-color-scheme] .m_69686b9b[data-active]:before,[data-mantine-color-scheme] .m_69686b9b[data-active]+.m_69686b9b:before{--separator-color:transparent}.m_78882f40{z-index:2;position:relative}.m_fa528724{--scp-filled-segment-color:var(--mantine-primary-color-filled);--scp-transition-duration:0s;--scp-thickness:calc(.75rem * var(--mantine-scale))}:where([data-mantine-color-scheme=light]) .m_fa528724{--scp-empty-segment-color:var(--mantine-color-gray-2)}:where([data-mantine-color-scheme=dark]) .m_fa528724{--scp-empty-segment-color:var(--mantine-color-dark-4)}.m_fa528724{width:fit-content;position:relative}.m_62e9e7e2{transform:var(--scp-rotation);display:block;overflow:hidden}.m_c573fb6f{transition:stroke-dashoffset var(--scp-transition-duration) ease, stroke-dasharray var(--scp-transition-duration) ease, stroke-opacity var(--scp-transition-duration) ease, stroke var(--scp-transition-duration)}.m_4fa340f2{text-align:center;z-index:1;margin:0;padding:0;position:absolute;inset-inline:0}.m_4fa340f2:where([data-position=bottom]){padding-inline:calc(var(--scp-thickness) * 2);bottom:0}.m_4fa340f2:where([data-position=bottom]):where([data-orientation=down]){top:0;bottom:auto}.m_4fa340f2:where([data-position=center]){padding-inline:calc(var(--scp-thickness) * 3);top:50%;transform:translateY(-50%)}.m_925c2d2c{container:simple-grid/inline-size}.m_2415a157{grid-template-columns:repeat(var(--sg-cols), minmax(0, 1fr));grid-auto-rows:var(--sg-auto-rows,auto);gap:var(--sg-spacing-y) var(--sg-spacing-x);display:grid}.m_2415a157[data-auto-cols=auto-fill]{grid-template-columns:repeat(auto-fill, minmax(var(--sg-min-col-width), 1fr))}.m_2415a157[data-auto-cols=auto-fit]{grid-template-columns:repeat(auto-fit, minmax(var(--sg-min-col-width), 1fr))}@keyframes m_299c329c{0%,to{opacity:.4}50%{opacity:1}}.m_18320242{height:var(--skeleton-height,auto);width:var(--skeleton-width,100%);border-radius:var(--skeleton-radius,var(--mantine-radius-default));position:relative;transform:translateZ(0)}.m_18320242:where([data-animate]):after{animation:1.5s linear infinite m_299c329c}.m_18320242:where([data-visible]){overflow:hidden}.m_18320242:where([data-visible]):before{content:"";z-index:10;background-color:var(--mantine-color-body);position:absolute;inset:0}.m_18320242:where([data-visible]):after{content:"";z-index:11;position:absolute;inset:0}:where([data-mantine-color-scheme=light]) .m_18320242:where([data-visible]):after{background-color:var(--mantine-color-gray-3)}:where([data-mantine-color-scheme=dark]) .m_18320242:where([data-visible]):after{background-color:var(--mantine-color-dark-4)}.m_dd36362e{--slider-size-xs:calc(.25rem * var(--mantine-scale));--slider-size-sm:calc(.375rem * var(--mantine-scale));--slider-size-md:calc(.5rem * var(--mantine-scale));--slider-size-lg:calc(.625rem * var(--mantine-scale));--slider-size-xl:calc(.75rem * var(--mantine-scale));--slider-size:var(--slider-size-md);--slider-radius:calc(62.5rem * var(--mantine-scale));--slider-color:var(--mantine-primary-color-filled);--slider-track-disabled-bg:var(--mantine-color-disabled);-webkit-tap-highlight-color:transparent;height:calc(var(--slider-size) * 2);padding-inline:var(--slider-size);touch-action:none;outline:none;flex-direction:column;align-items:center;display:flex;position:relative}[data-mantine-color-scheme=light] .m_dd36362e{--slider-track-bg:var(--mantine-color-gray-2)}[data-mantine-color-scheme=dark] .m_dd36362e{--slider-track-bg:var(--mantine-color-dark-4)}.m_dd36362e[data-orientation=vertical]{width:calc(var(--slider-size) * 2);height:calc(12.5rem * var(--mantine-scale));padding-inline:0;padding-block:var(--slider-size)}.m_c9357328{top:calc(-2.25rem * var(--mantine-scale));font-size:var(--mantine-font-size-xs);color:var(--mantine-color-white);padding:calc(var(--mantine-spacing-xs) / 2);border-radius:var(--mantine-radius-sm);white-space:nowrap;pointer-events:none;-webkit-user-select:none;user-select:none;touch-action:none;position:absolute}:where([data-mantine-color-scheme=light]) .m_c9357328{background-color:var(--mantine-color-gray-9)}:where([data-mantine-color-scheme=dark]) .m_c9357328{background-color:var(--mantine-color-dark-4)}:where(.m_dd36362e[data-orientation=vertical]) .m_c9357328{top:auto;inset-inline-start:calc(100% + 8px)}.m_c9a9a60a{height:var(--slider-thumb-size);width:var(--slider-thumb-size);border:calc(.25rem * var(--mantine-scale)) solid;cursor:pointer;border-radius:var(--slider-radius);z-index:3;-webkit-user-select:none;user-select:none;touch-action:none;outline-offset:calc(.125rem * var(--mantine-scale));top:50%;left:var(--slider-thumb-offset);justify-content:center;align-items:center;transition:box-shadow .1s,transform .1s;display:flex;position:absolute;transform:translate(-50%,-50%)}:where([dir=rtl]) .m_c9a9a60a{left:auto;right:calc(var(--slider-thumb-offset) - var(--slider-thumb-size))}fieldset:disabled .m_c9a9a60a,.m_c9a9a60a:where([data-disabled]){display:none}.m_c9a9a60a:where([data-dragging]){box-shadow:var(--mantine-shadow-sm);transform:translate(-50%,-50%)scale(1.05)}:where([data-mantine-color-scheme=light]) .m_c9a9a60a{color:var(--slider-color);border-color:var(--slider-color);background-color:var(--mantine-color-white)}:where([data-mantine-color-scheme=dark]) .m_c9a9a60a{color:var(--mantine-color-white);border-color:var(--mantine-color-white);background-color:var(--slider-color)}:where(.m_dd36362e[data-orientation=vertical]) .m_c9a9a60a{top:auto;left:50%;right:auto;bottom:var(--slider-thumb-offset);transform:translate(-50%,50%)}:where(.m_dd36362e[data-orientation=vertical]) .m_c9a9a60a:where([data-dragging]){transform:translate(-50%,50%)scale(1.05)}:where([dir=rtl]) :where(.m_dd36362e[data-orientation=vertical]) .m_c9a9a60a{left:50%;right:auto}.m_a8645c2{width:100%;height:calc(var(--slider-size) * 2);cursor:pointer;align-items:center;display:flex}fieldset:disabled .m_a8645c2,.m_a8645c2:where([data-disabled]){cursor:not-allowed}:where(.m_dd36362e[data-orientation=vertical]) .m_a8645c2{width:calc(var(--slider-size) * 2);flex-direction:column;height:100%}.m_c9ade57f{width:100%;height:var(--slider-size);position:relative}.m_c9ade57f:where([data-inverted]:not([data-disabled])){--track-bg:var(--slider-color)}fieldset:disabled .m_c9ade57f:where([data-inverted]),.m_c9ade57f:where([data-inverted][data-disabled]){--track-bg:var(--slider-track-disabled-bg)}.m_c9ade57f:before{content:"";border-radius:var(--slider-radius);top:0;bottom:0;inset-inline:calc(var(--slider-size) * -1);background-color:var(--track-bg,var(--slider-track-bg));z-index:0;position:absolute}:where(.m_dd36362e[data-orientation=vertical]) .m_c9ade57f{width:var(--slider-size);height:100%}:where(.m_dd36362e[data-orientation=vertical]) .m_c9ade57f:before{inset-inline:0;top:calc(var(--slider-size) * -1);bottom:calc(var(--slider-size) * -1)}.m_38aeed47{z-index:1;background-color:var(--slider-color);border-radius:var(--slider-radius);width:var(--slider-bar-width);top:0;bottom:0;position:absolute;inset-inline-start:var(--slider-bar-offset)}.m_38aeed47:where([data-inverted]){background-color:var(--slider-track-bg)}fieldset:disabled .m_38aeed47:where(:not([data-inverted])),.m_38aeed47:where([data-disabled]:not([data-inverted])){background-color:var(--mantine-color-disabled-color)}:where(.m_dd36362e[data-orientation=vertical]) .m_38aeed47{top:auto;bottom:var(--slider-bar-offset);width:100%;height:var(--slider-bar-width);inset-inline-start:0}.m_b7b0423a{inset-inline-start:calc(var(--mark-offset) - var(--slider-size) / 2);z-index:2;pointer-events:none;height:0;position:absolute;top:0}:where(.m_dd36362e[data-orientation=vertical]) .m_b7b0423a{inset-inline-start:0;top:auto;bottom:calc(var(--mark-offset) + var(--slider-size) / 2);width:0;height:0}.m_dd33bc19{border:calc(.125rem * var(--mantine-scale)) solid;height:var(--slider-size);width:var(--slider-size);border-radius:calc(62.5rem * var(--mantine-scale));background-color:var(--mantine-color-white);pointer-events:none}:where([data-mantine-color-scheme=light]) .m_dd33bc19{border-color:var(--mantine-color-gray-2)}:where([data-mantine-color-scheme=dark]) .m_dd33bc19{border-color:var(--mantine-color-dark-4)}.m_dd33bc19:where([data-filled]){border-color:var(--slider-color)}.m_dd33bc19:where([data-filled]):where([data-disabled]){border-color:var(--mantine-color-disabled-border)}.m_68c77a5b{transform:translate(calc(-50% + var(--slider-size) / 2), calc(var(--mantine-spacing-xs) / 2));font-size:var(--mantine-font-size-sm);white-space:nowrap;cursor:pointer;-webkit-user-select:none;user-select:none}:where([dir=rtl]) .m_68c77a5b{transform:translate(calc(50% - var(--slider-size) / 2), calc(var(--mantine-spacing-xs) / 2))}:where([data-mantine-color-scheme=light]) .m_68c77a5b{color:var(--mantine-color-gray-6)}:where([data-mantine-color-scheme=dark]) .m_68c77a5b{color:var(--mantine-color-dark-2)}:where(.m_dd36362e[data-orientation=vertical]) .m_68c77a5b{transform:translate(calc(var(--slider-size) + var(--mantine-spacing-xs) / 2), calc(-50% - var(--slider-size) / 2))}.m_19e66008{display:flex}.m_19e66008:where([data-orientation=horizontal]){flex-direction:row}.m_19e66008:where([data-orientation=vertical]){flex-direction:column}.m_19e5428e{flex-grow:0;flex-shrink:1;overflow:auto}.m_27f81bce{flex:0 0 var(--splitter-line-size,calc(.125rem * var(--mantine-scale)));touch-action:none;background-color:var(--splitter-handle-color,var(--mantine-color-body));outline:none;justify-content:center;align-items:center;display:flex;position:relative}.m_27f81bce:where([data-orientation=horizontal]){cursor:col-resize}.m_27f81bce:where([data-orientation=vertical]){cursor:row-resize}.m_22feb770{z-index:1;border-radius:calc(62.5rem * var(--mantine-scale));color:var(--mantine-color-dimmed);justify-content:center;align-items:center;transition:color .1s;display:flex;position:absolute}:where([data-mantine-color-scheme=light]) .m_22feb770{background-color:var(--mantine-color-white);border:calc(.0625rem * var(--mantine-scale)) solid var(--mantine-color-gray-3)}:where([data-mantine-color-scheme=dark]) .m_22feb770{background-color:var(--mantine-color-dark-6);border:calc(.0625rem * var(--mantine-scale)) solid var(--mantine-color-dark-4)}.m_22feb770:where([data-orientation=horizontal]){width:calc(.75rem * var(--mantine-scale));height:calc(3.75rem * var(--mantine-scale))}.m_22feb770:where([data-orientation=vertical]){width:calc(3.75rem * var(--mantine-scale));height:calc(.75rem * var(--mantine-scale))}.m_22feb770>svg{width:100%;height:100%}.m_27f81bce:focus-visible .m_22feb770{box-shadow:0 0 0 calc(.125rem * var(--mantine-scale)) var(--mantine-primary-color-filled)}.m_559cce2d{position:relative}.m_559cce2d:where([data-has-spoiler]){margin-bottom:calc(1.5rem * var(--mantine-scale))}.m_b912df4e{transition:max-height var(--spoiler-transition-duration,.2s) ease;flex-direction:column;display:flex;overflow:hidden}.m_b9131032{inset-inline-start:0;height:calc(1.5rem * var(--mantine-scale));position:absolute;top:100%}.m_6d731127{align-items:var(--stack-align,stretch);justify-content:var(--stack-justify,flex-start);gap:var(--stack-gap,var(--mantine-spacing-md));flex-direction:column;display:flex}.m_cbb4ea7e{--stepper-icon-size-xs:calc(2.125rem * var(--mantine-scale));--stepper-icon-size-sm:calc(2.25rem * var(--mantine-scale));--stepper-icon-size-md:calc(2.625rem * var(--mantine-scale));--stepper-icon-size-lg:calc(3rem * var(--mantine-scale));--stepper-icon-size-xl:calc(3.25rem * var(--mantine-scale));--stepper-icon-size:var(--stepper-icon-size-md);--stepper-color:var(--mantine-primary-color-filled);--stepper-content-padding:var(--mantine-spacing-md);--stepper-spacing:var(--mantine-spacing-md);--stepper-radius:calc(62.5rem * var(--mantine-scale));--stepper-fz:var(--mantine-font-size-md);--stepper-outline-thickness:calc(.125rem * var(--mantine-scale))}[data-mantine-color-scheme=light] .m_cbb4ea7e{--stepper-outline-color:var(--mantine-color-gray-2)}[data-mantine-color-scheme=dark] .m_cbb4ea7e{--stepper-outline-color:var(--mantine-color-dark-5)}.m_aaf89d0b{flex-wrap:nowrap;align-items:center;display:flex}.m_aaf89d0b:where([data-wrap]){gap:var(--mantine-spacing-md) 0;flex-wrap:wrap}.m_aaf89d0b:where([data-orientation=vertical]){flex-direction:column}.m_aaf89d0b:where([data-orientation=vertical]):where([data-icon-position=left]){align-items:flex-start}.m_aaf89d0b:where([data-orientation=vertical]):where([data-icon-position=right]){align-items:flex-end}.m_aaf89d0b:where([data-orientation=horizontal]){flex-direction:row}.m_2a371ac9{height:var(--stepper-outline-thickness);margin-inline:var(--mantine-spacing-md);background-color:var(--stepper-outline-color);flex:1;transition:background-color .15s}.m_2a371ac9:where([data-active]){background-color:var(--stepper-color)}.m_78da155d{padding-top:var(--stepper-content-padding)}.m_cbb57068{--step-color:var(--stepper-color);cursor:default;display:flex}.m_cbb57068:where([data-allow-click]){cursor:pointer}.m_cbb57068:where([data-icon-position=left]){flex-direction:row}.m_cbb57068:where([data-icon-position=right]){flex-direction:row-reverse}.m_f56b1e2c{align-items:center}.m_833edb7e{--separator-spacing:calc(var(--mantine-spacing-xs) / 2);min-height:calc(var(--stepper-icon-size) + var(--mantine-spacing-xl) + var(--separator-spacing));margin-top:var(--separator-spacing);justify-content:flex-start;overflow:hidden}.m_833edb7e:where(:first-of-type){margin-top:0}.m_833edb7e:where(:last-of-type){min-height:auto}.m_833edb7e:where(:last-of-type) .m_6496b3f3{display:none}.m_818e70b{position:relative}.m_6496b3f3{top:calc(var(--stepper-icon-size) + var(--separator-spacing));border-inline-start:var(--stepper-outline-thickness) solid var(--stepper-outline-color);height:100vh;position:absolute;inset-inline-start:calc(var(--stepper-icon-size) / 2)}.m_6496b3f3:where([data-active]){border-color:var(--stepper-color)}.m_1959ad01{height:var(--stepper-icon-size);width:var(--stepper-icon-size);min-height:var(--stepper-icon-size);min-width:var(--stepper-icon-size);border-radius:var(--stepper-radius);font-size:var(--stepper-fz);border:var(--stepper-outline-thickness) solid var(--stepper-outline-color);background-color:var(--stepper-outline-color);justify-content:center;align-items:center;font-weight:700;transition:background-color .15s,border-color .15s;display:flex;position:relative}:where([data-mantine-color-scheme=light]) .m_1959ad01{color:var(--mantine-color-gray-7)}:where([data-mantine-color-scheme=dark]) .m_1959ad01{color:var(--mantine-color-dark-1)}.m_1959ad01:where([data-progress]){border-color:var(--step-color)}.m_1959ad01:where([data-completed]){color:var(--stepper-icon-color,var(--mantine-color-white));background-color:var(--step-color);border-color:var(--step-color)}.m_8faaac38{display:flex}.m_a79331dc{color:var(--stepper-icon-color,var(--mantine-color-white));justify-content:center;align-items:center;display:flex;position:absolute;inset:0}.m_1956aa2a{flex-direction:column;display:flex}.m_1956aa2a:where([data-icon-position=left]){margin-inline-start:var(--mantine-spacing-sm)}.m_1956aa2a:where([data-icon-position=right]){text-align:end;margin-inline-end:var(--mantine-spacing-sm)}.m_12051f6c{font-weight:var(--mantine-font-weight-medium);font-size:var(--stepper-fz);line-height:1}.m_164eea74{margin-top:calc(var(--stepper-spacing) / 3);margin-bottom:calc(var(--stepper-spacing) / 3);font-size:calc(var(--stepper-fz) - calc(.125rem * var(--mantine-scale)));color:var(--mantine-color-dimmed);line-height:1}.m_5f93f3bb{--switch-height-xs:calc(1rem * var(--mantine-scale));--switch-height-sm:calc(1.25rem * var(--mantine-scale));--switch-height-md:calc(1.5rem * var(--mantine-scale));--switch-height-lg:calc(1.875rem * var(--mantine-scale));--switch-height-xl:calc(2.25rem * var(--mantine-scale));--switch-width-xs:calc(2rem * var(--mantine-scale));--switch-width-sm:calc(2.375rem * var(--mantine-scale));--switch-width-md:calc(2.875rem * var(--mantine-scale));--switch-width-lg:calc(3.5rem * var(--mantine-scale));--switch-width-xl:calc(4.5rem * var(--mantine-scale));--switch-thumb-size-xs:calc(.75rem * var(--mantine-scale));--switch-thumb-size-sm:calc(.875rem * var(--mantine-scale));--switch-thumb-size-md:calc(1.125rem * var(--mantine-scale));--switch-thumb-size-lg:calc(1.375rem * var(--mantine-scale));--switch-thumb-size-xl:calc(1.75rem * var(--mantine-scale));--switch-label-font-size-xs:calc(.3125rem * var(--mantine-scale));--switch-label-font-size-sm:calc(.375rem * var(--mantine-scale));--switch-label-font-size-md:calc(.4375rem * var(--mantine-scale));--switch-label-font-size-lg:calc(.5625rem * var(--mantine-scale));--switch-label-font-size-xl:calc(.6875rem * var(--mantine-scale));--switch-track-label-padding-xs:calc(.125rem * var(--mantine-scale));--switch-track-label-padding-sm:calc(.15625rem * var(--mantine-scale));--switch-track-label-padding-md:calc(.1875rem * var(--mantine-scale));--switch-track-label-padding-lg:calc(.1875rem * var(--mantine-scale));--switch-track-label-padding-xl:calc(.21875rem * var(--mantine-scale));--switch-height:var(--switch-height-sm);--switch-width:var(--switch-width-sm);--switch-thumb-size:var(--switch-thumb-size-sm);--switch-label-font-size:var(--switch-label-font-size-sm);--switch-track-label-padding:var(--switch-track-label-padding-sm);--switch-radius:calc(62.5rem * var(--mantine-scale));--switch-color:var(--mantine-primary-color-filled);--switch-disabled-color:var(--mantine-color-disabled);position:relative}.m_926b4011{opacity:0;white-space:nowrap;width:100%;height:100%;margin:0;padding:0;position:absolute;overflow:hidden}.m_9307d992{-webkit-tap-highlight-color:transparent;cursor:var(--switch-cursor,var(--mantine-cursor-type));border-radius:var(--switch-radius);background-color:var(--switch-bg);height:var(--switch-height);min-width:var(--switch-width);appearance:none;font-size:var(--switch-label-font-size);font-weight:var(--mantine-font-weight-medium);order:var(--switch-order,1);-webkit-user-select:none;user-select:none;z-index:0;color:var(--switch-text-color);align-items:center;margin:0;line-height:0;transition:background-color .15s,border-color .15s;display:flex;position:relative;overflow:hidden}.m_9307d992:where([data-without-labels]){width:var(--switch-width)}.m_926b4011:focus-visible+.m_9307d992{outline:2px solid var(--mantine-primary-color-filled);outline-offset:calc(.125rem * var(--mantine-scale))}.m_926b4011:checked+.m_9307d992{--switch-bg:var(--switch-color);--switch-text-color:var(--mantine-color-white)}.m_926b4011:disabled+.m_9307d992,.m_926b4011[data-disabled]+.m_9307d992{--switch-bg:var(--switch-disabled-color);--switch-cursor:not-allowed}[data-mantine-color-scheme=light] .m_9307d992{--switch-bg:var(--mantine-color-gray-3);--switch-text-color:var(--mantine-color-gray-6)}[data-mantine-color-scheme=dark] .m_9307d992{--switch-bg:var(--mantine-color-dark-5);--switch-text-color:var(--mantine-color-dark-1)}.m_9307d992[data-label-position=left]{--switch-order:2}.m_93039a1d{z-index:1;border-radius:var(--switch-radius);background-color:var(--switch-thumb-bg,var(--mantine-color-white));height:var(--switch-thumb-size);width:var(--switch-thumb-size);transition:inset-inline-start .15s;display:flex;position:absolute;inset-inline-start:var(--switch-thumb-start,var(--switch-track-label-padding))}.m_93039a1d:where([data-with-thumb-indicator]):before{content:"";background-color:var(--switch-bg);border-radius:var(--switch-radius);width:40%;height:40%;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.m_93039a1d>*{margin:auto}.m_926b4011:checked+*>.m_93039a1d{--switch-thumb-start:calc(100% - var(--switch-thumb-size) - var(--switch-track-label-padding))}.m_926b4011:disabled+*>.m_93039a1d,.m_926b4011[data-disabled]+*>.m_93039a1d{--switch-thumb-bg:var(--switch-thumb-bg-disabled)}[data-mantine-color-scheme=light] .m_93039a1d{--switch-thumb-bg-disabled:var(--mantine-color-gray-0)}[data-mantine-color-scheme=dark] .m_93039a1d{--switch-thumb-bg-disabled:var(--mantine-color-dark-3)}.m_8277e082{height:100%;min-width:calc(var(--switch-width) - var(--switch-thumb-size));padding-inline:var(--switch-track-label-padding);place-content:center;margin-inline-start:calc(var(--switch-thumb-size) + var(--switch-track-label-padding));transition:margin .15s;display:grid}.m_926b4011:checked+*>.m_8277e082{margin-inline-start:0;margin-inline-end:calc(var(--switch-thumb-size) + var(--switch-track-label-padding))}.m_b23fa0ef{border-collapse:collapse;border-spacing:0;width:100%;line-height:var(--mantine-line-height);font-size:var(--mantine-font-size-sm);table-layout:var(--table-layout,auto);caption-side:var(--table-caption-side,bottom);border:none}:where([data-mantine-color-scheme=light]) .m_b23fa0ef{--table-hover-color:var(--mantine-color-gray-1);--table-striped-color:var(--mantine-color-gray-0);--table-border-color:var(--mantine-color-gray-3)}:where([data-mantine-color-scheme=dark]) .m_b23fa0ef{--table-hover-color:var(--mantine-color-dark-5);--table-striped-color:var(--mantine-color-dark-6);--table-border-color:var(--mantine-color-dark-4)}.m_b23fa0ef:where([data-with-table-border]){border:calc(.0625rem * var(--mantine-scale)) solid var(--table-border-color)}.m_b23fa0ef:where([data-tabular-nums]){font-variant-numeric:tabular-nums}.m_b23fa0ef:where([data-variant=vertical]) :where(.m_4e7aa4f3){font-weight:var(--mantine-font-weight-medium)}:where([data-mantine-color-scheme=light]) .m_b23fa0ef:where([data-variant=vertical]) :where(.m_4e7aa4f3){background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_b23fa0ef:where([data-variant=vertical]) :where(.m_4e7aa4f3){background-color:var(--mantine-color-dark-6)}.m_4e7aa4f3{text-align:start}.m_4e7aa4fd{background-color:#0000;border-bottom:none}@media (hover:hover){.m_4e7aa4fd:hover:where([data-hover]){background-color:var(--tr-hover-bg)}}@media (hover:none){.m_4e7aa4fd:active:where([data-hover]){background-color:var(--tr-hover-bg)}}.m_4e7aa4fd:where([data-with-row-border]){border-bottom:calc(.0625rem * var(--mantine-scale)) solid var(--table-border-color)}.m_4e7aa4ef,.m_4e7aa4f3{padding:var(--table-vertical-spacing) var(--table-horizontal-spacing,var(--mantine-spacing-xs))}.m_4e7aa4ef:where([data-with-column-border]:not(:first-child)),.m_4e7aa4f3:where([data-with-column-border]:not(:first-child)){border-inline-start:calc(.0625rem * var(--mantine-scale)) solid var(--table-border-color)}.m_4e7aa4ef:where([data-with-column-border]:not(:last-child)),.m_4e7aa4f3:where([data-with-column-border]:not(:last-child)){border-inline-end:calc(.0625rem * var(--mantine-scale)) solid var(--table-border-color)}.m_b2404537>:where(tr):where([data-with-row-border]:last-of-type){border-bottom:none}.m_b2404537>:where(tr):where([data-striped=odd]:nth-of-type(odd)),.m_b2404537>:where(tr):where([data-striped=even]:nth-of-type(2n)){background-color:var(--table-striped-color)}.m_b2404537>:where(tr)[data-hover]{--tr-hover-bg:var(--table-highlight-on-hover-color,var(--table-hover-color))}.m_b242d975{top:var(--table-sticky-header-offset,0);z-index:3}.m_b242d975:where([data-sticky]){position:sticky}.m_b242d975:where([data-sticky]) :where(.m_4e7aa4f3){top:var(--table-sticky-header-offset,0);background-color:var(--mantine-color-body);position:sticky}.m_b242d975:where([data-sticky]) :where(.m_4e7aa4fd[data-with-row-border]){border-bottom:none}.m_b242d975:where([data-sticky]) :where(.m_4e7aa4fd[data-with-row-border]) :where(.m_4e7aa4f3){box-shadow:inset 0 -1px 0 var(--table-border-color)}.m_b242d975:where([data-sticky]) :where(.m_4e7aa4f3[data-with-column-border]){border-inline:none}.m_b242d975:where([data-sticky]) :where(.m_4e7aa4f3[data-with-column-border]:not(:first-child)):before{content:"";width:calc(.0625rem * var(--mantine-scale));background-color:var(--table-border-color);position:absolute;inset-block:0;inset-inline-start:calc(-.03125rem * var(--mantine-scale))}:where([data-with-table-border]) .m_b242d975[data-sticky]{top:var(--table-sticky-header-offset,0);z-index:4;border-top:none;position:sticky}:where([data-with-table-border]) .m_b242d975[data-sticky]:before{content:"";left:0;top:calc(-.03125rem * var(--mantine-scale));width:100%;height:calc(.0625rem * var(--mantine-scale));background-color:var(--table-border-color);z-index:5;display:block;position:absolute}:where([data-with-table-border]) .m_b242d975[data-sticky] .m_4e7aa4f3:first-child{border-top:none}.m_9e5a3ac7{color:var(--mantine-color-dimmed)}.m_9e5a3ac7:where([data-side=top]){margin-bottom:var(--mantine-spacing-xs)}.m_9e5a3ac7:where([data-side=bottom]){margin-top:var(--mantine-spacing-xs)}.m_a100c15{overflow-x:var(--table-overflow)}.m_62259741{min-width:var(--table-min-width);max-height:var(--table-max-height)}.m_bcaa9990{--toc-depth-offset:.8em;flex-direction:column;display:flex}.m_375a65ef{font-size:var(--toc-size,var(--mantine-font-size-md));border-radius:var(--toc-radius,var(--mantine-radius-default));padding:.3em .8em;padding-left:max(calc(var(--depth-offset) * var(--toc-depth-offset)), .8em);display:block}@media (hover:hover){:where([data-mantine-color-scheme=light]) .m_375a65ef:where(:hover):where(:not([data-variant=none])){background-color:var(--mantine-color-gray-1)}:where([data-mantine-color-scheme=dark]) .m_375a65ef:where(:hover):where(:not([data-variant=none])){background-color:var(--mantine-color-dark-5)}}@media (hover:none){:where([data-mantine-color-scheme=light]) .m_375a65ef:where(:active):where(:not([data-variant=none])){background-color:var(--mantine-color-gray-1)}:where([data-mantine-color-scheme=dark]) .m_375a65ef:where(:active):where(:not([data-variant=none])){background-color:var(--mantine-color-dark-5)}}.m_375a65ef:where([data-active]){background-color:var(--toc-bg);color:var(--toc-color)}[data-mantine-color-scheme=light] .m_89d60db1{--tab-border-color:var(--mantine-color-gray-3)}[data-mantine-color-scheme=dark] .m_89d60db1{--tab-border-color:var(--mantine-color-dark-4)}.m_89d60db1{display:var(--tabs-display);flex-direction:var(--tabs-flex-direction);--tabs-list-direction:row;--tabs-panel-grow:unset;--tabs-display:block;--tabs-flex-direction:row;--tabs-list-border-width:0;--tabs-list-border-size:0 0 var(--tabs-list-border-width) 0;--tabs-list-gap:unset;--tabs-list-line-bottom:0;--tabs-list-line-top:unset;--tabs-list-line-start:0;--tabs-list-line-end:0;--tab-radius:var(--tabs-radius) var(--tabs-radius) 0 0;--tab-border-width:0 0 var(--tabs-list-border-width) 0}.m_89d60db1[data-inverted]{--tabs-list-line-bottom:unset;--tabs-list-line-top:0;--tab-radius:0 0 var(--tabs-radius) var(--tabs-radius);--tab-border-width:var(--tabs-list-border-width) 0 0 0}.m_89d60db1[data-inverted] .m_576c9d4:before{top:0;bottom:unset}.m_89d60db1[data-orientation=vertical]{--tabs-list-line-start:unset;--tabs-list-line-end:0;--tabs-list-line-top:0;--tabs-list-line-bottom:0;--tabs-list-border-size:0 var(--tabs-list-border-width) 0 0;--tab-border-width:0 var(--tabs-list-border-width) 0 0;--tab-radius:var(--tabs-radius) 0 0 var(--tabs-radius);--tabs-list-direction:column;--tabs-panel-grow:1;--tabs-display:flex}[dir=rtl] .m_89d60db1[data-orientation=vertical]{--tabs-list-border-size:0 0 0 var(--tabs-list-border-width);--tab-border-width:0 0 0 var(--tabs-list-border-width);--tab-radius:0 var(--tabs-radius) var(--tabs-radius) 0}.m_89d60db1[data-orientation=vertical][data-placement=right]{--tabs-flex-direction:row-reverse;--tabs-list-line-start:0;--tabs-list-line-end:unset;--tabs-list-border-size:0 0 0 var(--tabs-list-border-width);--tab-border-width:0 0 0 var(--tabs-list-border-width);--tab-radius:0 var(--tabs-radius) var(--tabs-radius) 0}[dir=rtl] .m_89d60db1[data-orientation=vertical][data-placement=right]{--tabs-list-border-size:0 var(--tabs-list-border-width) 0 0;--tab-border-width:0 var(--tabs-list-border-width) 0 0;--tab-radius:var(--tabs-radius) 0 0 var(--tabs-radius)}.m_89d60db1[data-variant=default]{--tabs-list-border-width:calc(.125rem * var(--mantine-scale))}[data-mantine-color-scheme=light] .m_89d60db1[data-variant=default]{--tab-hover-color:var(--mantine-color-gray-0)}[data-mantine-color-scheme=dark] .m_89d60db1[data-variant=default]{--tab-hover-color:var(--mantine-color-dark-6)}.m_89d60db1[data-variant=outline]{--tabs-list-border-width:calc(.0625rem * var(--mantine-scale))}.m_89d60db1[data-variant=pills]{--tabs-list-gap:calc(var(--mantine-spacing-sm) / 2)}[data-mantine-color-scheme=light] .m_89d60db1[data-variant=pills]{--tab-hover-color:var(--mantine-color-gray-0)}[data-mantine-color-scheme=dark] .m_89d60db1[data-variant=pills]{--tab-hover-color:var(--mantine-color-dark-6)}.m_89d33d6d{justify-content:var(--tabs-justify,flex-start);flex-wrap:wrap;flex-direction:var(--tabs-list-direction);gap:var(--tabs-list-gap);display:flex}.m_89d33d6d:where([data-grow]) .m_4ec4dce6{flex:1}.m_b0c91715{flex-grow:var(--tabs-panel-grow)}.m_4ec4dce6{padding:var(--mantine-spacing-xs) var(--mantine-spacing-md);font-size:var(--mantine-font-size-sm);white-space:nowrap;z-index:0;-webkit-user-select:none;user-select:none;align-items:center;line-height:1;display:flex;position:relative}.m_4ec4dce6:where(:disabled,[data-disabled]){opacity:.5;cursor:not-allowed}.m_4ec4dce6:focus{z-index:1}.m_fc420b1f{justify-content:center;align-items:center;display:flex}.m_fc420b1f:where([data-position=left]:not(:only-child)){margin-inline-end:var(--mantine-spacing-xs)}.m_fc420b1f:where([data-position=right]:not(:only-child)){margin-inline-start:var(--mantine-spacing-xs)}.m_42bbd1ae{text-align:center;flex:1}.m_576c9d4{position:relative}.m_576c9d4:before{content:"";border:1px solid var(--tab-border-color);bottom:var(--tabs-list-line-bottom);inset-inline-start:var(--tabs-list-line-start);inset-inline-end:var(--tabs-list-line-end);top:var(--tabs-list-line-top);position:absolute}.m_539e827b{border-radius:var(--tab-radius);border-width:var(--tab-border-width);background-color:#0000;border-style:solid;border-color:#0000}.m_539e827b:where([data-active]){border-color:var(--tabs-color)}@media (hover:hover){.m_539e827b:hover{background-color:var(--tab-hover-color)}.m_539e827b:hover:where(:not([data-active])){border-color:var(--tab-border-color)}}@media (hover:none){.m_539e827b:active{background-color:var(--tab-hover-color)}.m_539e827b:active:where(:not([data-active])){border-color:var(--tab-border-color)}}@media (hover:hover){.m_539e827b:disabled:hover,.m_539e827b[data-disabled]:hover{background-color:#0000}}@media (hover:none){.m_539e827b:disabled:active,.m_539e827b[data-disabled]:active{background-color:#0000}}.m_6772fbd5{position:relative}.m_6772fbd5:before{content:"";border-color:var(--tab-border-color);border-width:var(--tabs-list-border-size);bottom:var(--tabs-list-line-bottom);inset-inline-start:var(--tabs-list-line-start);inset-inline-end:var(--tabs-list-line-end);top:var(--tabs-list-line-top);border-style:solid;position:absolute}.m_b59ab47c{border-top:calc(.0625rem * var(--mantine-scale)) solid transparent;border-bottom:calc(.0625rem * var(--mantine-scale)) solid transparent;border-inline:calc(.0625rem * var(--mantine-scale)) solid transparent;border-top-color:var(--tab-border-top-color);border-bottom-color:var(--tab-border-bottom-color);border-radius:var(--tab-radius);--tab-border-bottom-color:transparent;--tab-border-top-color:transparent;--tab-border-inline-end-color:transparent;--tab-border-inline-start-color:transparent;position:relative}.m_b59ab47c:where([data-active]):before{content:"";background-color:var(--tab-border-color);bottom:var(--tab-before-bottom,calc(-.0625rem * var(--mantine-scale)));inset-inline-start:var(--tab-before-start,calc(-.0625rem * var(--mantine-scale)));inset-inline-end:var(--tab-before-end,auto);top:var(--tab-before-top,auto);width:calc(.0625rem * var(--mantine-scale));height:calc(.0625rem * var(--mantine-scale));position:absolute}.m_b59ab47c:where([data-active]):after{content:"";background-color:var(--tab-border-color);bottom:var(--tab-after-bottom,calc(-.0625rem * var(--mantine-scale)));inset-inline-start:var(--tab-after-start,auto);inset-inline-end:var(--tab-after-end,calc(-.0625rem * var(--mantine-scale)));top:var(--tab-after-top,auto);width:calc(.0625rem * var(--mantine-scale));height:calc(.0625rem * var(--mantine-scale));position:absolute}.m_b59ab47c:where([data-active]){border-top-color:var(--tab-border-top-color);border-bottom-color:var(--tab-border-bottom-color);border-inline-start-color:var(--tab-border-inline-start-color);border-inline-end-color:var(--tab-border-inline-end-color);--tab-border-top-color:var(--tab-border-color);--tab-border-inline-start-color:var(--tab-border-color);--tab-border-inline-end-color:var(--tab-border-color);--tab-border-bottom-color:var(--mantine-color-body)}.m_b59ab47c:where([data-active])[data-inverted]{--tab-border-bottom-color:var(--tab-border-color);--tab-border-top-color:var(--mantine-color-body);--tab-before-bottom:auto;--tab-before-top:calc(-.0625rem * var(--mantine-scale));--tab-after-bottom:auto;--tab-after-top:calc(-.0625rem * var(--mantine-scale))}.m_b59ab47c:where([data-active])[data-orientation=vertical][data-placement=left]{--tab-border-inline-end-color:var(--mantine-color-body);--tab-border-inline-start-color:var(--tab-border-color);--tab-border-bottom-color:var(--tab-border-color);--tab-before-end:calc(-.0625rem * var(--mantine-scale));--tab-before-start:auto;--tab-before-bottom:auto;--tab-before-top:calc(-.0625rem * var(--mantine-scale));--tab-after-start:auto;--tab-after-end:calc(-.0625rem * var(--mantine-scale))}.m_b59ab47c:where([data-active])[data-orientation=vertical][data-placement=right]{--tab-border-inline-start-color:var(--mantine-color-body);--tab-border-inline-end-color:var(--tab-border-color);--tab-border-bottom-color:var(--tab-border-color);--tab-before-start:calc(-.0625rem * var(--mantine-scale));--tab-before-end:auto;--tab-before-bottom:auto;--tab-before-top:calc(-.0625rem * var(--mantine-scale));--tab-after-end:auto;--tab-after-start:calc(-.0625rem * var(--mantine-scale))}.m_c3381914{border-radius:var(--tabs-radius);background-color:var(--tab-bg);color:var(--tab-color);--tab-bg:transparent;--tab-color:inherit}@media (hover:hover){.m_c3381914:not([data-disabled]):hover{--tab-bg:var(--tab-hover-color)}}@media (hover:none){.m_c3381914:not([data-disabled]):active{--tab-bg:var(--tab-hover-color)}}.m_c3381914[data-active][data-active]{--tab-bg:var(--tabs-color);--tab-color:var(--tabs-text-color,var(--mantine-color-white))}@media (hover:hover){.m_c3381914[data-active][data-active]:hover{--tab-bg:var(--tabs-color)}}@media (hover:none){.m_c3381914[data-active][data-active]:active{--tab-bg:var(--tabs-color)}}.m_7341320d{--ti-size-xs:calc(1.125rem * var(--mantine-scale));--ti-size-sm:calc(1.375rem * var(--mantine-scale));--ti-size-md:calc(1.75rem * var(--mantine-scale));--ti-size-lg:calc(2.125rem * var(--mantine-scale));--ti-size-xl:calc(2.75rem * var(--mantine-scale));--ti-size:var(--ti-size-md);-webkit-user-select:none;user-select:none;width:var(--ti-size);height:var(--ti-size);min-width:var(--ti-size);min-height:var(--ti-size);border-radius:var(--ti-radius,var(--mantine-radius-default));background:var(--ti-bg,var(--mantine-primary-color-filled));color:var(--ti-color,var(--mantine-color-white));border:var(--ti-bd,1px solid transparent);justify-content:center;align-items:center;line-height:1;display:inline-flex;position:relative}.m_43657ece{--offset:calc(var(--tl-bullet-size) / 2 + var(--tl-line-width) / 2);--tl-bullet-size:calc(1.25rem * var(--mantine-scale));--tl-line-width:calc(.25rem * var(--mantine-scale));--tl-radius:calc(62.5rem * var(--mantine-scale));--tl-color:var(--mantine-primary-color-filled)}.m_43657ece:where(:not([data-opposite])):where([data-align=left]){padding-inline-start:var(--offset)}.m_43657ece:where(:not([data-opposite])):where([data-align=right]){padding-inline-end:var(--offset)}.m_2ebe8099{font-weight:var(--mantine-font-weight-medium);margin-bottom:calc(var(--mantine-spacing-xs) / 2);line-height:1}.m_436178ff{--item-border:var(--tl-line-width) var(--tli-border-style,solid) var(--item-border-color);color:var(--mantine-color-text);position:relative}.m_436178ff:before{content:"";pointer-events:none;top:0;inset-inline-start:var(--timeline-line-start,0);inset-inline-end:var(--timeline-line-end,0);bottom:calc(var(--mantine-spacing-xl) * -1);border-inline-start:var(--item-border);display:var(--timeline-line-display,none);position:absolute}.m_43657ece:where(:not([data-opposite]))[data-align=left] .m_436178ff:before{--timeline-line-start:calc(var(--tl-line-width) * -1);--timeline-line-end:auto}.m_43657ece:where(:not([data-opposite]))[data-align=right] .m_436178ff:before{--timeline-line-start:auto;--timeline-line-end:calc(var(--tl-line-width) * -1)}.m_43657ece:where([data-opposite]) .m_436178ff:before{--timeline-line-start:calc(50% - var(--tl-line-width) / 2);--timeline-line-end:auto}.m_43657ece:where(:not([data-opposite])):where([data-align=left]) .m_436178ff{text-align:start;padding-inline-start:var(--offset)}.m_43657ece:where(:not([data-opposite])):where([data-align=right]) .m_436178ff{text-align:end;padding-inline-end:var(--offset)}.m_43657ece:where([data-opposite]) .m_436178ff{grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);display:grid}:where([data-mantine-color-scheme=light]) .m_436178ff{--item-border-color:var(--mantine-color-gray-3)}:where([data-mantine-color-scheme=dark]) .m_436178ff{--item-border-color:var(--mantine-color-dark-4)}.m_436178ff:where([data-line-active]):before{border-color:var(--tli-color,var(--tl-color))}.m_436178ff:where(:not(:last-of-type)){--timeline-line-display:block}.m_436178ff:where(:not(:first-of-type)){margin-top:var(--mantine-spacing-xl)}.m_8affcee1{width:var(--tl-bullet-size);height:var(--tl-bullet-size);border-radius:var(--tli-radius,var(--tl-radius));border:var(--tl-line-width) solid;background-color:var(--mantine-color-body);color:var(--mantine-color-text);justify-content:center;align-items:center;display:flex;position:absolute;top:0}:where([data-mantine-color-scheme=light]) .m_8affcee1{border-color:var(--mantine-color-gray-3)}:where([data-mantine-color-scheme=dark]) .m_8affcee1{border-color:var(--mantine-color-dark-4)}.m_43657ece:where(:not([data-opposite])):where([data-align=left]) .m_8affcee1{inset-inline-start:calc((var(--tl-bullet-size) / 2 + var(--tl-line-width) / 2) * -1);inset-inline-end:auto}.m_43657ece:where(:not([data-opposite])):where([data-align=right]) .m_8affcee1{inset-inline-start:auto;inset-inline-end:calc((var(--tl-bullet-size) / 2 + var(--tl-line-width) / 2) * -1)}.m_43657ece:where([data-opposite]) .m_8affcee1{grid-area:1/2;position:relative;inset-inline-start:unset;inset-inline-end:unset}.m_8affcee1:where([data-with-child]){border-width:var(--tl-line-width)}:where([data-mantine-color-scheme=light]) .m_8affcee1:where([data-with-child]){background-color:var(--mantine-color-gray-3)}:where([data-mantine-color-scheme=dark]) .m_8affcee1:where([data-with-child]){background-color:var(--mantine-color-dark-4)}.m_8affcee1:where([data-active]){border-color:var(--tli-color,var(--tl-color));background-color:var(--mantine-color-white);color:var(--tl-icon-color,var(--mantine-color-white))}.m_8affcee1:where([data-active]):where([data-with-child]){background-color:var(--tli-color,var(--tl-color));color:var(--tl-icon-color,var(--mantine-color-white))}.m_43657ece:where(:not([data-opposite])):where([data-align=left]) .m_540e8f41{text-align:start;padding-inline-start:var(--offset)}.m_43657ece:where(:not([data-opposite])):where([data-align=right]) .m_540e8f41{text-align:end;padding-inline-end:var(--offset)}.m_43657ece:where([data-opposite]):where([data-align=left]) .m_540e8f41{text-align:start;grid-area:1/3;padding-inline-start:var(--offset)}.m_43657ece:where([data-opposite]):where([data-align=right]) .m_540e8f41{text-align:end;grid-area:1/1;padding-inline-end:var(--offset)}.m_43657ece:where([data-opposite]):where([data-align=left]) .m_436178ff:where([data-alternate]) .m_540e8f41{text-align:end;grid-column:1;padding-inline-start:0;padding-inline-end:var(--offset)}.m_43657ece:where([data-opposite]):where([data-align=right]) .m_436178ff:where([data-alternate]) .m_540e8f41{text-align:start;grid-column:3;padding-inline-start:var(--offset);padding-inline-end:0}.m_43657ece:where([data-align=left]) .m_f3ba506{text-align:end;grid-area:1/1;padding-inline-end:var(--offset)}.m_43657ece:where([data-align=right]) .m_f3ba506{text-align:start;grid-area:1/3;padding-inline-start:var(--offset)}.m_43657ece:where([data-align=left]) .m_436178ff:where([data-alternate]) .m_f3ba506{text-align:start;grid-column:3;padding-inline-start:var(--offset);padding-inline-end:0}.m_43657ece:where([data-align=right]) .m_436178ff:where([data-alternate]) .m_f3ba506{text-align:end;grid-column:1;padding-inline-start:0;padding-inline-end:var(--offset)}.m_8a5d1357{font-weight:var(--title-fw);font-size:var(--title-fz);line-height:var(--title-lh);font-family:var(--mantine-font-family-headings);text-wrap:var(--title-text-wrap,var(--mantine-heading-text-wrap));margin:0}.m_8a5d1357:where([data-line-clamp]){text-overflow:ellipsis;-webkit-line-clamp:var(--title-line-clamp);-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}:where([data-tree-root]){--level-offset:var(--mantine-spacing-lg);--tree-line-width:calc(.0625rem * var(--mantine-scale));--tree-line-color:var(--mantine-color-default-border)}.m_f698e191{-webkit-user-select:none;user-select:none;margin:0;padding:0}.m_75f3ecf{margin:0;padding:0}.m_f6970eb1{cursor:pointer;outline:0;margin:0;padding:0;list-style:none}.m_f6970eb1:focus-visible>.m_dc283425,.m_f6970eb1[data-focus-ring]:focus>.m_dc283425{outline:2px solid var(--mantine-primary-color-filled);outline-offset:calc(.125rem * var(--mantine-scale))}.m_dc283425{padding-inline-start:var(--label-offset);position:relative}:where([data-mantine-color-scheme=light]) .m_dc283425:where([data-selected]){background-color:var(--mantine-color-gray-1)}:where([data-mantine-color-scheme=dark]) .m_dc283425:where([data-selected]){background-color:var(--mantine-color-dark-5)}.m_dc283425:where([data-dragging]){opacity:.4}.m_dc283425:where([data-drag-over=before]):before{content:"";top:calc(-.0625rem * var(--mantine-scale));height:calc(.125rem * var(--mantine-scale));background-color:var(--mantine-primary-color-filled);pointer-events:none;z-index:1;position:absolute;inset-inline-start:var(--label-offset,0);inset-inline-end:0}.m_dc283425:where([data-drag-over=after]):after{content:"";bottom:calc(-.0625rem * var(--mantine-scale));height:calc(.125rem * var(--mantine-scale));background-color:var(--mantine-primary-color-filled);pointer-events:none;z-index:1;position:absolute;inset-inline-start:var(--label-offset,0);inset-inline-end:0}.m_dc283425:where([data-drag-over=inside]){background-color:var(--mantine-primary-color-light)}:where([data-with-lines]) .m_f6970eb1{position:relative}:where([data-with-lines]) .m_f6970eb1:not([data-level="1"]):before{content:"";top:calc(.75rem * var(--mantine-scale));width:calc(var(--level-offset) / 2);border-top:var(--tree-line-width) solid var(--tree-line-color);pointer-events:none;z-index:1;height:0;position:absolute;inset-inline-start:calc(var(--label-offset) - var(--level-offset) / 2)}:where([data-with-lines]) .m_75f3ecf>.m_f6970eb1:after{content:"";top:0;bottom:0;border-inline-start:var(--tree-line-width) solid var(--tree-line-color);pointer-events:none;z-index:1;width:0;position:absolute;inset-inline-start:calc(var(--label-offset) - var(--level-offset) / 2)}:where([data-with-lines]) .m_75f3ecf>.m_f6970eb1:last-child:after{height:calc(.75rem * var(--mantine-scale));bottom:auto}:where([data-with-lines]) .m_f6970eb1:where([data-dragging]):before,:where([data-with-lines]) .m_f6970eb1:where([data-dragging]):after,:where([data-with-lines]) .m_f6970eb1:where([data-dragging]) .m_c03b303c{display:none}.m_c03b303c{width:0;top:0;bottom:0;border-inline-start:var(--tree-line-width) solid var(--tree-line-color);pointer-events:none;z-index:1;display:none;position:absolute;inset-inline-start:calc((var(--flat-line-column) - 1.5) * var(--level-offset))}:where([data-with-lines]) .m_c03b303c{display:block}.m_bf7448d9{height:calc(.75rem * var(--mantine-scale));bottom:auto}.m_529d33e8{--ts-level-offset:calc(1.25rem * var(--mantine-scale));--ts-line-width:calc(.0625rem * var(--mantine-scale));--ts-line-color:var(--mantine-color-default-border);--ts-option-padding-y:calc(.25rem * var(--mantine-scale));--ts-option-padding-x:calc(.5rem * var(--mantine-scale))}.m_28bb748{align-items:center;gap:calc(.375rem * var(--mantine-scale));padding:var(--ts-option-padding-y) var(--ts-option-padding-x);padding-inline-start:var(--ts-option-padding-x);display:flex;position:relative}.m_aa3e3f86{--_ts-expand-icon-size:calc(1.45 * var(--combobox-option-fz,var(--mantine-font-size-sm)));width:var(--_ts-expand-icon-size);min-width:var(--_ts-expand-icon-size);height:var(--_ts-expand-icon-size);border-radius:var(--mantine-radius-sm);cursor:pointer;color:var(--mantine-color-dimmed);justify-content:center;align-items:center;display:flex;transform:rotate(-90deg)}:where([data-combobox-selected]) .m_aa3e3f86{color:var(--mantine-color-white)}:where([dir=rtl]) .m_aa3e3f86{transform:rotate(90deg)}.m_aa3e3f86:where([data-expanded]){transform:rotate(0)}@media (hover:hover){:where([data-mantine-color-scheme=light]) .m_aa3e3f86:hover{background-color:var(--mantine-color-gray-1)}:where([data-mantine-color-scheme=dark]) .m_aa3e3f86:hover{background-color:var(--mantine-color-dark-5)}}@media (hover:none){:where([data-mantine-color-scheme=light]) .m_aa3e3f86:active{background-color:var(--mantine-color-gray-1)}:where([data-mantine-color-scheme=dark]) .m_aa3e3f86:active{background-color:var(--mantine-color-dark-5)}}.m_eaa4cdee{opacity:.4;width:.8em;min-width:.8em;height:.8em;margin-inline-start:auto}:where([data-combobox-selected]) .m_eaa4cdee{opacity:1}.m_ffe3a9c1{text-overflow:ellipsis;white-space:nowrap;flex:1;overflow:hidden}.m_57207d5d,.m_41b9db0b{border-inline-start:var(--ts-line-width) solid var(--ts-line-color);pointer-events:none;width:0;position:absolute;top:0;bottom:0}.m_41b9db0b:where([data-last]){height:50%;bottom:auto}.m_1246e79{border-top:var(--ts-line-width) solid var(--ts-line-color);pointer-events:none;height:0;position:absolute;top:50%}.m_d08caa0 :first-child{margin-top:0}.m_d08caa0 :last-child{margin-bottom:0}.m_d08caa0 :where(h1,h2,h3,h4,h5,h6){margin-bottom:var(--mantine-spacing-xs);text-wrap:var(--mantine-heading-text-wrap);font-family:var(--mantine-font-family-headings)}.m_d08caa0 :where(h1){margin-top:calc(1.5 * var(--mantine-spacing-xl));font-size:var(--mantine-h1-font-size);line-height:var(--mantine-h1-line-height);font-weight:var(--mantine-h1-font-weight)}.m_d08caa0 :where(h2){margin-top:var(--mantine-spacing-xl);font-size:var(--mantine-h2-font-size);line-height:var(--mantine-h2-line-height);font-weight:var(--mantine-h2-font-weight)}.m_d08caa0 :where(h3){margin-top:calc(.8 * var(--mantine-spacing-xl));font-size:var(--mantine-h3-font-size);line-height:var(--mantine-h3-line-height);font-weight:var(--mantine-h3-font-weight)}.m_d08caa0 :where(h4){margin-top:calc(.8 * var(--mantine-spacing-xl));font-size:var(--mantine-h4-font-size);line-height:var(--mantine-h4-line-height);font-weight:var(--mantine-h4-font-weight)}.m_d08caa0 :where(h5){margin-top:calc(.5 * var(--mantine-spacing-xl));font-size:var(--mantine-h5-font-size);line-height:var(--mantine-h5-line-height);font-weight:var(--mantine-h5-font-weight)}.m_d08caa0 :where(h6){margin-top:calc(.5 * var(--mantine-spacing-xl));font-size:var(--mantine-h6-font-size);line-height:var(--mantine-h6-line-height);font-weight:var(--mantine-h6-font-weight)}.m_d08caa0 :where(img){max-width:100%;margin-bottom:var(--mantine-spacing-xs)}.m_d08caa0 :where(p){margin-top:0;margin-bottom:var(--mantine-spacing-lg)}:where([data-mantine-color-scheme=light]) .m_d08caa0 :where(mark){background-color:var(--mantine-color-yellow-2);color:inherit}:where([data-mantine-color-scheme=dark]) .m_d08caa0 :where(mark){background-color:var(--mantine-color-yellow-5);color:var(--mantine-color-black)}.m_d08caa0 :where(a){color:var(--mantine-color-anchor);text-decoration:none}@media (hover:hover){.m_d08caa0 :where(a):hover{text-decoration:underline}}@media (hover:none){.m_d08caa0 :where(a):active{text-decoration:underline}}.m_d08caa0 :where(hr){margin-top:var(--mantine-spacing-md);margin-bottom:var(--mantine-spacing-md);border:0;border-top:calc(.0625rem * var(--mantine-scale)) solid}:where([data-mantine-color-scheme=light]) .m_d08caa0 :where(hr){border-color:var(--mantine-color-gray-3)}:where([data-mantine-color-scheme=dark]) .m_d08caa0 :where(hr){border-color:var(--mantine-color-dark-3)}.m_d08caa0 :where(pre){padding:var(--mantine-spacing-xs);line-height:var(--mantine-line-height);margin:0;margin-top:var(--mantine-spacing-md);margin-bottom:var(--mantine-spacing-md);font-family:var(--mantine-font-family-monospace);font-size:var(--mantine-font-size-xs);border-radius:var(--mantine-radius-sm);overflow-x:auto}:where([data-mantine-color-scheme=light]) .m_d08caa0 :where(pre){background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_d08caa0 :where(pre){background-color:var(--mantine-color-dark-8)}.m_d08caa0 :where(pre) :where(code){color:inherit;background-color:#0000;border:0;border-radius:0;padding:0}.m_d08caa0 :where(kbd){--kbd-fz:calc(.75rem * var(--mantine-scale));--kbd-padding:calc(.1875rem * var(--mantine-scale)) calc(.3125rem * var(--mantine-scale));font-family:var(--mantine-font-family-monospace);line-height:var(--mantine-line-height);font-weight:var(--mantine-font-weight-bold);padding:var(--kbd-padding);font-size:var(--kbd-fz);border-radius:var(--mantine-radius-sm);border:calc(.0625rem * var(--mantine-scale)) solid;border-bottom-width:calc(.1875rem * var(--mantine-scale))}:where([data-mantine-color-scheme=light]) .m_d08caa0 :where(kbd){border-color:var(--mantine-color-gray-3);color:var(--mantine-color-gray-7);background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_d08caa0 :where(kbd){border-color:var(--mantine-color-dark-3);color:var(--mantine-color-dark-0);background-color:var(--mantine-color-dark-5)}.m_d08caa0 :where(code){line-height:var(--mantine-line-height);padding:calc(.0625rem * var(--mantine-scale)) calc(.3125rem * var(--mantine-scale));border-radius:var(--mantine-radius-sm);font-family:var(--mantine-font-family-monospace);font-size:var(--mantine-font-size-xs)}:where([data-mantine-color-scheme=light]) .m_d08caa0 :where(code){background-color:var(--mantine-color-gray-0);color:var(--mantine-color-black)}:where([data-mantine-color-scheme=dark]) .m_d08caa0 :where(code){background-color:var(--mantine-color-dark-5);color:var(--mantine-color-white)}.m_d08caa0 :where(ul,ol):not([data-type=taskList]){margin-bottom:var(--mantine-spacing-md);padding-inline-start:var(--mantine-spacing-xl);list-style-position:outside}.m_d08caa0 :where(table){border-collapse:collapse;caption-side:bottom;width:100%;margin-bottom:var(--mantine-spacing-md)}:where([data-mantine-color-scheme=light]) .m_d08caa0 :where(table){--table-border-color:var(--mantine-color-gray-3)}:where([data-mantine-color-scheme=dark]) .m_d08caa0 :where(table){--table-border-color:var(--mantine-color-dark-4)}.m_d08caa0 :where(table) :where(caption){margin-top:var(--mantine-spacing-xs);font-size:var(--mantine-font-size-sm);color:var(--mantine-color-dimmed)}.m_d08caa0 :where(table) :where(th){text-align:start;font-weight:700;font-size:var(--mantine-font-size-sm);padding:var(--mantine-spacing-xs) var(--mantine-spacing-sm)}.m_d08caa0 :where(table) :where(thead th){border-bottom:calc(.0625rem * var(--mantine-scale)) solid;border-color:var(--table-border-color)}.m_d08caa0 :where(table) :where(tfoot th){border-top:calc(.0625rem * var(--mantine-scale)) solid;border-color:var(--table-border-color)}.m_d08caa0 :where(table) :where(td){padding:var(--mantine-spacing-xs) var(--mantine-spacing-sm);border-bottom:calc(.0625rem * var(--mantine-scale)) solid;border-color:var(--table-border-color);font-size:var(--mantine-font-size-sm)}.m_d08caa0 :where(table) :where(tr:last-of-type td){border-bottom:0}.m_d08caa0 :where(blockquote){font-size:var(--mantine-font-size-lg);line-height:var(--mantine-line-height);margin:var(--mantine-spacing-md) 0;border-radius:var(--mantine-radius-sm);padding:var(--mantine-spacing-md) var(--mantine-spacing-lg)}:where([data-mantine-color-scheme=light]) .m_d08caa0 :where(blockquote){background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_d08caa0 :where(blockquote){background-color:var(--mantine-color-dark-8)}@font-face{font-family:IBM Plex Sans;font-style:normal;font-display:swap;font-weight:400;src:url(/assets/ibm-plex-sans-latin-400-normal-CDDApCn2.woff2)format("woff2"),url(/assets/ibm-plex-sans-latin-400-normal-CYLoc0-x.woff)format("woff")}@font-face{font-family:IBM Plex Sans;font-style:italic;font-display:swap;font-weight:400;src:url(/assets/ibm-plex-sans-latin-400-italic-CZTNEAuW.woff2)format("woff2"),url(/assets/ibm-plex-sans-latin-400-italic-CsGl1sm0.woff)format("woff")}@font-face{font-family:IBM Plex Sans;font-style:normal;font-display:swap;font-weight:500;src:url(/assets/ibm-plex-sans-latin-500-normal-6ng42L7E.woff2)format("woff2"),url(/assets/ibm-plex-sans-latin-500-normal-BgVn5rGT.woff)format("woff")}@font-face{font-family:IBM Plex Sans;font-style:normal;font-display:swap;font-weight:600;src:url(/assets/ibm-plex-sans-latin-600-normal-CuJfVYMP.woff2)format("woff2"),url(/assets/ibm-plex-sans-latin-600-normal-Cu4Hd6ag.woff)format("woff")}@font-face{font-family:IBM Plex Sans;font-style:normal;font-display:swap;font-weight:700;src:url(/assets/ibm-plex-sans-latin-700-normal-Bxkt5Cjx.woff2)format("woff2"),url(/assets/ibm-plex-sans-latin-700-normal-Bth3BMcD.woff)format("woff")}@font-face{font-family:IBM Plex Mono;font-style:normal;font-display:swap;font-weight:400;src:url(/assets/ibm-plex-mono-latin-400-normal-DMJ8VG8y.woff2)format("woff2"),url(/assets/ibm-plex-mono-latin-400-normal-CvHOgSBP.woff)format("woff")}@font-face{font-family:IBM Plex Mono;font-style:normal;font-display:swap;font-weight:500;src:url(/assets/ibm-plex-mono-latin-500-normal-DSY6xOcd.woff2)format("woff2"),url(/assets/ibm-plex-mono-latin-500-normal-CB9ihrfo.woff)format("woff")}@font-face{font-family:IBM Plex Mono;font-style:normal;font-display:swap;font-weight:600;src:url(/assets/ibm-plex-mono-latin-600-normal-BgSNZQsw.woff2)format("woff2"),url(/assets/ibm-plex-mono-latin-600-normal-DWFSQ4vo.woff)format("woff")}.react-grid-layout{transition:height .2s;position:relative}.react-grid-item{transition:left .2s,top .2s,width .2s,height .2s}.react-grid-item img{pointer-events:none;-webkit-user-select:none;user-select:none}.react-grid-item.cssTransforms{transition-property:transform,width,height}.react-grid-item.resizing{z-index:1;will-change:width, height;transition:none}.react-grid-item.react-draggable-dragging{z-index:3;will-change:transform;transition:none}.react-grid-item.dropping{visibility:hidden}.react-grid-item.react-grid-placeholder{opacity:.2;z-index:2;-webkit-user-select:none;user-select:none;background:red;transition-duration:.1s}.react-grid-item.react-grid-placeholder.placeholder-resizing{transition:none}.react-grid-item>.react-resizable-handle{opacity:0;width:20px;height:20px;position:absolute}.react-grid-item:hover>.react-resizable-handle{opacity:1}.react-grid-item>.react-resizable-handle:after{content:"";border-bottom:2px solid #0006;border-right:2px solid #0006;width:5px;height:5px;position:absolute;bottom:3px;right:3px}.react-resizable-hide>.react-resizable-handle{display:none}.react-grid-item>.react-resizable-handle.react-resizable-handle-sw{cursor:sw-resize;bottom:0;left:0;transform:rotate(90deg)}.react-grid-item>.react-resizable-handle.react-resizable-handle-se{cursor:se-resize;bottom:0;right:0}.react-grid-item>.react-resizable-handle.react-resizable-handle-nw{cursor:nw-resize;top:0;left:0;transform:rotate(180deg)}.react-grid-item>.react-resizable-handle.react-resizable-handle-ne{cursor:ne-resize;top:0;right:0;transform:rotate(270deg)}.react-grid-item>.react-resizable-handle.react-resizable-handle-w,.react-grid-item>.react-resizable-handle.react-resizable-handle-e{cursor:ew-resize;margin-top:-10px;top:50%}.react-grid-item>.react-resizable-handle.react-resizable-handle-w{left:0;transform:rotate(135deg)}.react-grid-item>.react-resizable-handle.react-resizable-handle-e{right:0;transform:rotate(315deg)}.react-grid-item>.react-resizable-handle.react-resizable-handle-n,.react-grid-item>.react-resizable-handle.react-resizable-handle-s{cursor:ns-resize;margin-left:-10px;left:50%}.react-grid-item>.react-resizable-handle.react-resizable-handle-n{top:0;transform:rotate(225deg)}.react-grid-item>.react-resizable-handle.react-resizable-handle-s{bottom:0;transform:rotate(45deg)}.react-resizable{position:relative}.react-resizable-handle{box-sizing:border-box;background-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA2IDYiIHN0eWxlPSJiYWNrZ3JvdW5kLWNvbG9yOiNmZmZmZmYwMCIgeD0iMHB4IiB5PSIwcHgiIHdpZHRoPSI2cHgiIGhlaWdodD0iNnB4Ij48ZyBvcGFjaXR5PSIwLjMwMiI+PHBhdGggZD0iTSA2IDYgTCAwIDYgTCAwIDQuMiBMIDQgNC4yIEwgNC4yIDQuMiBMIDQuMiAwIEwgNiAwIEwgNiA2IEwgNiA2IFoiIGZpbGw9IiMwMDAwMDAiLz48L2c+PC9zdmc+);background-position:100% 100%;background-repeat:no-repeat;background-origin:content-box;width:20px;height:20px;padding:0 3px 3px 0;position:absolute}.react-resizable-handle-sw{cursor:sw-resize;bottom:0;left:0;transform:rotate(90deg)}.react-resizable-handle-se{cursor:se-resize;bottom:0;right:0}.react-resizable-handle-nw{cursor:nw-resize;top:0;left:0;transform:rotate(180deg)}.react-resizable-handle-ne{cursor:ne-resize;top:0;right:0;transform:rotate(270deg)}.react-resizable-handle-w,.react-resizable-handle-e{cursor:ew-resize;margin-top:-10px;top:50%}.react-resizable-handle-w{left:0;transform:rotate(135deg)}.react-resizable-handle-e{right:0;transform:rotate(315deg)}.react-resizable-handle-n,.react-resizable-handle-s{cursor:ns-resize;margin-left:-10px;left:50%}.react-resizable-handle-n{top:0;transform:rotate(225deg)}.react-resizable-handle-s{bottom:0;transform:rotate(45deg)}html{background:#fcfcfc}html[data-mantine-color-scheme=dark]{background:#0b0e14}:where(.mantine-Title-root,h1,h2,h3,h4,h5,h6){letter-spacing:-.015em}html,body,#root{min-width:320px;min-height:100%}.dashboard-grid{min-height:420px}.chat-composer-field{background:var(--mantine-color-body);transition:border-color .15s,box-shadow .15s}.chat-composer-field:focus-within{border-color:var(--mantine-primary-color-filled);box-shadow:0 0 0 2px var(--mantine-primary-color-light)}.chat-history-item{border-radius:var(--mantine-radius-md);transition:background-color .12s}.chat-history-item:hover{background:var(--mantine-color-default-hover)}.chat-history-item[data-active]{background:var(--mantine-primary-color-light)}.chat-history-actions{opacity:0;transition:opacity .12s}.chat-history-item:hover .chat-history-actions,.chat-history-item:focus-within .chat-history-actions{opacity:1}@media (hover:none){.chat-history-actions{opacity:1}}.react-grid-item.react-grid-placeholder{border-radius:var(--mantine-radius-lg);background:var(--mantine-primary-color-filled);opacity:.14}.react-grid-item>.react-resizable-handle{opacity:0;transition:opacity .15s}.react-grid-item:hover>.react-resizable-handle,.react-grid-item:focus-within>.react-resizable-handle{opacity:.55} diff --git a/internal/ui/dist/assets/index-BtOLla1t.js b/internal/ui/dist/assets/index-BtOLla1t.js new file mode 100644 index 00000000..6d31ca2d --- /dev/null +++ b/internal/ui/dist/assets/index-BtOLla1t.js @@ -0,0 +1,85 @@ +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/mcp-app-frame-CUbf0me4.js","assets/useNavigate-DyHkI5qo.js","assets/auth-C4PUlevI.js","assets/routes-CYxgPfgb.js","assets/chat.index-ChMb2Nc1.js","assets/dashboards.index-ClORdutW.js","assets/dashboard-D_m9uFDI.js","assets/dashboards._dashboardId-XXCiLIvn.js"])))=>i.map(i=>d[i]); +import{_ as e,a as t,c as n,d as r,f as i,i as a,l as o,m as s,n as c,o as l,r as u,s as d,t as f,u as p}from"./useNavigate-DyHkI5qo.js";import{$ as m,B as h,C as g,E as _,F as v,G as y,H as b,I as x,J as S,K as C,L as w,M as T,N as E,O as D,P as O,Q as k,R as ee,S as te,T as A,U as ne,W as j,X as re,Y as ie,Z as ae,_ as oe,a as se,at as ce,b as le,c as ue,ct as de,d as fe,dt as M,et as pe,f as me,ft as he,g as ge,h as _e,i as ve,it as ye,j as be,l as xe,lt as Se,m as Ce,mt as we,n as Te,nt as Ee,ot as De,p as Oe,pt as ke,q as Ae,r as je,rt as Me,s as Ne,st as Pe,t as Fe,tt as Ie,u as Le,ut as Re,v as ze,w as N,x as Be,y as Ve,z as He}from"./auth-C4PUlevI.js";(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),t.credentials=e.crossOrigin===`use-credentials`?`include`:e.crossOrigin===`anonymous`?`omit`:`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var Ue=i((e=>{function t(e,t){var n=e.length;e.push(t);a:for(;0>>1,a=e[r];if(0>>1;ri(c,n))li(u,c)?(e[r]=u,e[l]=n,r=l):(e[r]=c,e[s]=n,r=s);else if(li(u,n))e[r]=u,e[l]=n,r=l;else break a}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return n===0?e.id-t.id:n}if(e.unstable_now=void 0,typeof performance==`object`&&typeof performance.now==`function`){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var c=[],l=[],u=1,d=null,f=3,p=!1,m=!1,h=!1,g=!1,_=typeof setTimeout==`function`?setTimeout:null,v=typeof clearTimeout==`function`?clearTimeout:null,y=typeof setImmediate<`u`?setImmediate:null;function b(e){for(var i=n(l);i!==null;){if(i.callback===null)r(l);else if(i.startTime<=e)r(l),i.sortIndex=i.expirationTime,t(c,i);else break;i=n(l)}}function x(e){if(h=!1,b(e),!m)if(n(c)!==null)m=!0,S||(S=!0,O());else{var t=n(l);t!==null&&te(x,t.startTime-e)}}var S=!1,C=-1,w=5,T=-1;function E(){return g?!0:!(e.unstable_now()-Tt&&E());){var o=d.callback;if(typeof o==`function`){d.callback=null,f=d.priorityLevel;var s=o(d.expirationTime<=t);if(t=e.unstable_now(),typeof s==`function`){d.callback=s,b(t),i=!0;break b}d===n(c)&&r(c),b(t)}else r(c);d=n(c)}if(d!==null)i=!0;else{var u=n(l);u!==null&&te(x,u.startTime-t),i=!1}}break a}finally{d=null,f=a,p=!1}}}finally{i?O():S=!1}}}var O;if(typeof y==`function`)O=function(){y(D)};else if(typeof MessageChannel<`u`){var k=new MessageChannel,ee=k.port2;k.port1.onmessage=D,O=function(){ee.postMessage(null)}}else O=function(){_(D,0)};function te(t,n){C=_(function(){t(e.unstable_now())},n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_forceFrameRate=function(e){0>e||125o?(r.sortIndex=a,t(l,r),n(c)===null&&r===n(l)&&(h?(v(C),C=-1):h=!0,te(x,a-o))):(r.sortIndex=s,t(c,r),m||p||(m=!0,S||(S=!0,O()))),r},e.unstable_shouldYield=E,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}})),We=i(((e,t)=>{t.exports=Ue()})),Ge=i((e=>{var t=We(),n=r(),i=we();function a(e){var t=`https://react.dev/errors/`+e;if(1oe||(e.current=ae[oe],ae[oe]=null,oe--)}function le(e,t){oe++,ae[oe]=e.current,e.current=t}var ue=se(null),de=se(null),fe=se(null),M=se(null);function pe(e,t){switch(le(fe,t),le(de,e),le(ue,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?of(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=of(t),e=sf(t,e);else switch(e){case`svg`:e=1;break;case`math`:e=2;break;default:e=0}}ce(ue),le(ue,e)}function me(){ce(ue),ce(de),ce(fe)}function he(e){e.memoizedState!==null&&le(M,e);var t=ue.current,n=sf(t,e.type);t!==n&&(le(de,e),le(ue,n))}function ge(e){de.current===e&&(ce(ue),ce(de)),M.current===e&&(ce(M),gp._currentValue=ie)}var _e,ve;function ye(e){if(_e===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);_e=t&&t[1]||``,ve=-1)`:-1i||c[r]!==l[i]){var u=` +`+c[r].replace(` at new `,` at `);return e.displayName&&u.includes(``)&&(u=u.replace(``,e.displayName)),u}while(1<=r&&0<=i);break}}}finally{be=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:``)?ye(n):``}function Se(e,t){switch(e.tag){case 26:case 27:case 5:return ye(e.type);case 16:return ye(`Lazy`);case 13:return e.child!==t&&t!==null?ye(`Suspense Fallback`):ye(`Suspense`);case 19:return ye(`SuspenseList`);case 0:case 15:return xe(e.type,!1);case 11:return xe(e.type.render,!1);case 1:return xe(e.type,!0);case 31:return ye(`Activity`);default:return``}}function Ce(e){try{var t=``,n=null;do t+=Se(e,n),n=e,e=e.return;while(e);return t}catch(e){return` +Error generating stack: `+e.message+` +`+e.stack}}var Te=Object.prototype.hasOwnProperty,Ee=t.unstable_scheduleCallback,De=t.unstable_cancelCallback,Oe=t.unstable_shouldYield,ke=t.unstable_requestPaint,Ae=t.unstable_now,je=t.unstable_getCurrentPriorityLevel,Me=t.unstable_ImmediatePriority,Ne=t.unstable_UserBlockingPriority,Pe=t.unstable_NormalPriority,Fe=t.unstable_LowPriority,Ie=t.unstable_IdlePriority,Le=t.log,Re=t.unstable_setDisableYieldValue,ze=null,N=null;function Be(e){if(typeof Le==`function`&&Re(e),N&&typeof N.setStrictMode==`function`)try{N.setStrictMode(ze,e)}catch{}}var Ve=Math.clz32?Math.clz32:Ge,He=Math.log,Ue=Math.LN2;function Ge(e){return e>>>=0,e===0?32:31-(He(e)/Ue|0)|0}var Ke=256,qe=262144,Je=4194304;function Ye(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Xe(e,t,n){var r=e.pendingLanes;if(r===0)return 0;var i=0,a=e.suspendedLanes,o=e.pingedLanes;e=e.warmLanes;var s=r&134217727;return s===0?(s=r&~a,s===0?o===0?n||(n=r&~e,n!==0&&(i=Ye(n))):i=Ye(o):i=Ye(s)):(r=s&~a,r===0?(o&=s,o===0?n||(n=s&~e,n!==0&&(i=Ye(n))):i=Ye(o)):i=Ye(r)),i===0?0:t!==0&&t!==i&&(t&a)===0&&(a=i&-i,n=t&-t,a>=n||a===32&&n&4194048)?t:i}function Ze(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Qe(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function $e(){var e=Je;return Je<<=1,!(Je&62914560)&&(Je=4194304),e}function et(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function tt(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function nt(e,t,n,r,i,a){var o=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var s=e.entanglements,c=e.expirationTimes,l=e.hiddenUpdates;for(n=o&~n;0`u`||window.document===void 0||window.document.createElement===void 0),hn=!1;if(mn)try{var gn={};Object.defineProperty(gn,"passive",{get:function(){hn=!0}}),window.addEventListener(`test`,gn,gn),window.removeEventListener(`test`,gn,gn)}catch{hn=!1}var _n=null,vn=null,yn=null;function bn(){if(yn)return yn;var e,t=vn,n=t.length,r,i=`value`in _n?_n.value:_n.textContent,a=i.length;for(e=0;e=Qn),tr=` `,nr=!1;function rr(e,t){switch(e){case`keyup`:return Xn.indexOf(t.keyCode)!==-1;case`keydown`:return t.keyCode!==229;case`keypress`:case`mousedown`:case`focusout`:return!0;default:return!1}}function ir(e){return e=e.detail,typeof e==`object`&&`data`in e?e.data:null}var ar=!1;function or(e,t){switch(e){case`compositionend`:return ir(t);case`keypress`:return t.which===32?(nr=!0,tr):null;case`textInput`:return e=t.data,e===tr&&nr?null:e;default:return null}}function sr(e,t){if(ar)return e===`compositionend`||!Zn&&rr(e,t)?(e=bn(),yn=vn=_n=null,ar=!1,e):null;switch(e){case`paste`:return null;case`keypress`:if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}a:{for(;n;){if(n.nextSibling){n=n.nextSibling;break a}n=n.parentNode}n=void 0}n=Dr(n)}}function kr(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?kr(e,t.parentNode):`contains`in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Ar(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Vt(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href==`string`}catch{n=!1}if(n)e=t.contentWindow;else break;t=Vt(e.document)}return t}function jr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t===`input`&&(e.type===`text`||e.type===`search`||e.type===`tel`||e.type===`url`||e.type===`password`)||t===`textarea`||e.contentEditable===`true`)}var Mr=mn&&`documentMode`in document&&11>=document.documentMode,Nr=null,Pr=null,Fr=null,Ir=!1;function Lr(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Ir||Nr==null||Nr!==Vt(r)||(r=Nr,`selectionStart`in r&&jr(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Fr&&Er(Fr,r)||(Fr=r,r=Ud(Pr,`onSelect`),0>=o,i-=o,ki=1<<32-Ve(t)+i|n<h?(g=d,d=null):g=d.sibling;var _=p(i,d,s[h],c);if(_===null){d===null&&(d=g);break}e&&d&&_.alternate===null&&t(i,d),a=o(_,a,h),u===null?l=_:u.sibling=_,u=_,d=g}if(h===s.length)return n(i,d),Ri&&ji(i,h),l;if(d===null){for(;hg?(_=h,h=null):_=h.sibling;var y=p(i,h,v.value,l);if(y===null){h===null&&(h=_);break}e&&h&&y.alternate===null&&t(i,h),s=o(y,s,g),d===null?u=y:d.sibling=y,d=y,h=_}if(v.done)return n(i,h),Ri&&ji(i,g),u;if(h===null){for(;!v.done;g++,v=c.next())v=f(i,v.value,l),v!==null&&(s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return Ri&&ji(i,g),u}for(h=r(h);!v.done;g++,v=c.next())v=m(h,i,g,v.value,l),v!==null&&(e&&v.alternate!==null&&h.delete(v.key===null?g:v.key),s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return e&&h.forEach(function(e){return t(i,e)}),Ri&&ji(i,g),u}function b(e,r,o,c){if(typeof o==`object`&&o&&o.type===_&&o.key===null&&(o=o.props.children),typeof o==`object`&&o){switch(o.$$typeof){case h:a:{for(var l=o.key;r!==null;){if(r.key===l){if(l=o.type,l===_){if(r.tag===7){n(e,r.sibling),c=i(r,o.props.children),c.return=e,e=c;break a}}else if(r.elementType===l||typeof l==`object`&&l&&l.$$typeof===E&&Ma(l)===r.type){n(e,r.sibling),c=i(r,o.props),za(c,o),c.return=e,e=c;break a}n(e,r);break}t(e,r),r=r.sibling}o.type===_?(c=gi(o.props.children,e.mode,c,o.key),c.return=e,e=c):(c=hi(o.type,o.key,o.props,null,e.mode,c),za(c,o),c.return=e,e=c)}return s(e);case g:a:{for(l=o.key;r!==null;){if(r.key===l)if(r.tag===4&&r.stateNode.containerInfo===o.containerInfo&&r.stateNode.implementation===o.implementation){n(e,r.sibling),c=i(r,o.children||[]),c.return=e,e=c;break a}else{n(e,r);break}t(e,r),r=r.sibling}c=yi(o,e.mode,c),c.return=e,e=c}return s(e);case E:return o=Ma(o),b(e,r,o,c)}if(ne(o))return v(e,r,o,c);if(ee(o)){if(l=ee(o),typeof l!=`function`)throw Error(a(150));return o=l.call(o),y(e,r,o,c)}if(typeof o.then==`function`)return b(e,r,Ra(o),c);if(o.$$typeof===x)return b(e,r,oa(e,o),c);Ba(e,o)}return typeof o==`string`&&o!==``||typeof o==`number`||typeof o==`bigint`?(o=``+o,r!==null&&r.tag===6?(n(e,r.sibling),c=i(r,o),c.return=e,e=c):(n(e,r),c=_i(o,e.mode,c),c.return=e,e=c),s(e)):n(e,r)}return function(e,t,n,r){try{La=0;var i=b(e,t,n,r);return Ia=null,i}catch(t){if(t===Ea||t===Oa)throw t;var a=di(29,t,null,e.mode);return a.lanes=r,a.return=e,a}}}var Ha=Va(!0),Ua=Va(!1),Wa=!1;function Ga(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Ka(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function qa(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Ja(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Yl&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,t=ci(e),si(e,null,n),t}return ii(e,r,t,n),ci(e)}function Ya(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,n&4194048)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,it(e,n)}}function Xa(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var o={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};a===null?i=a=o:a=a.next=o,n=n.next}while(n!==null);a===null?i=a=t:a=a.next=t}else i=a=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,callbacks:r.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var Za=!1;function Qa(){if(Za){var e=_a;if(e!==null)throw e}}function $a(e,t,n,r){Za=!1;var i=e.updateQueue;Wa=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var c=s,l=c.next;c.next=null,o===null?a=l:o.next=l,o=c;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==o&&(s===null?u.firstBaseUpdate=l:s.next=l,u.lastBaseUpdate=c))}if(a!==null){var d=i.baseState;o=0,u=l=c=null,s=a;do{var f=s.lane&-536870913,m=f!==s.lane;if(m?(Ql&f)===f:(r&f)===f){f!==0&&f===ga&&(Za=!0),u!==null&&(u=u.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});a:{var h=e,g=s;f=t;var _=n;switch(g.tag){case 1:if(h=g.payload,typeof h==`function`){d=h.call(_,d,f);break a}d=h;break a;case 3:h.flags=h.flags&-65537|128;case 0:if(h=g.payload,f=typeof h==`function`?h.call(_,d,f):h,f==null)break a;d=p({},d,f);break a;case 2:Wa=!0}}f=s.callback,f!==null&&(e.flags|=64,m&&(e.flags|=8192),m=i.callbacks,m===null?i.callbacks=[f]:m.push(f))}else m={lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(l=u=m,c=d):u=u.next=m,o|=f;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;m=s,s=m.next,m.next=null,i.lastBaseUpdate=m,i.shared.pending=null}}while(1);u===null&&(c=d),i.baseState=c,i.firstBaseUpdate=l,i.lastBaseUpdate=u,a===null&&(i.shared.lanes=0),ou|=o,e.lanes=o,e.memoizedState=d}}function eo(e,t){if(typeof e!=`function`)throw Error(a(191,e));e.call(t)}function to(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;ea?a:8;var o=j.T,s={};j.T=s,Hs(e,!1,t,n);try{var c=i(),l=j.S;l!==null&&l(s,c),typeof c==`object`&&c&&typeof c.then==`function`?Vs(e,t,ba(c,r),Ou(e)):Vs(e,t,r,Ou(e))}catch(n){Vs(e,t,{then:function(){},status:`rejected`,reason:n},Ou())}finally{re.p=a,o!==null&&s.types!==null&&(o.types=s.types),j.T=o}}function js(){}function Ms(e,t,n,r){if(e.tag!==5)throw Error(a(476));var i=Ns(e).queue;As(e,i,t,ie,n===null?js:function(){return Ps(e),n(r)})}function Ns(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:ie,baseState:ie,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Uo,lastRenderedState:ie},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Uo,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Ps(e){var t=Ns(e);t.next===null&&(t=e.alternate.memoizedState),Vs(e,t.next.queue,{},Ou())}function Fs(){return aa(gp)}function Is(){return Ro().memoizedState}function Ls(){return Ro().memoizedState}function Rs(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=Ou();e=qa(n);var r=Ja(t,e,n);r!==null&&(Au(r,t,n),Ya(r,t,n)),t={cache:fa()},e.payload=t;return}t=t.return}}function zs(e,t,n){var r=Ou();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Us(e)?Ws(t,n):(n=ai(e,t,n,r),n!==null&&(Au(n,e,r),Gs(n,t,r)))}function Bs(e,t,n){Vs(e,t,n,Ou())}function Vs(e,t,n,r){var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Us(e))Ws(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,s=a(o,n);if(i.hasEagerState=!0,i.eagerState=s,F(s,o))return ii(e,t,i,0),Xl===null&&ri(),!1}catch{}if(n=ai(e,t,i,r),n!==null)return Au(n,e,r),Gs(n,t,r),!0}return!1}function Hs(e,t,n,r){if(r={lane:2,revertLane:Dd(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},Us(e)){if(t)throw Error(a(479))}else t=ai(e,n,r,2),t!==null&&Au(t,e,2)}function Us(e){var t=e.alternate;return e===vo||t!==null&&t===vo}function Ws(e,t){So=xo=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Gs(e,t,n){if(n&4194048){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,it(e,n)}}var Ks={readContext:aa,use:Vo,useCallback:Oo,useContext:Oo,useEffect:Oo,useImperativeHandle:Oo,useLayoutEffect:Oo,useInsertionEffect:Oo,useMemo:Oo,useReducer:Oo,useRef:Oo,useState:Oo,useDebugValue:Oo,useDeferredValue:Oo,useTransition:Oo,useSyncExternalStore:Oo,useId:Oo,useHostTransitionStatus:Oo,useFormState:Oo,useActionState:Oo,useOptimistic:Oo,useMemoCache:Oo,useCacheRefresh:Oo};Ks.useEffectEvent=Oo;var qs={readContext:aa,use:Vo,useCallback:function(e,t){return Lo().memoizedState=[e,t===void 0?null:t],e},useContext:aa,useEffect:_s,useImperativeHandle:function(e,t,n){n=n==null?null:n.concat([e]),hs(4194308,4,Cs.bind(null,t,e),n)},useLayoutEffect:function(e,t){return hs(4194308,4,e,t)},useInsertionEffect:function(e,t){hs(4,2,e,t)},useMemo:function(e,t){var n=Lo();t=t===void 0?null:t;var r=e();if(Co){Be(!0);try{e()}finally{Be(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=Lo();if(n!==void 0){var i=n(t);if(Co){Be(!0);try{n(t)}finally{Be(!1)}}}else i=t;return r.memoizedState=r.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},r.queue=e,e=e.dispatch=zs.bind(null,vo,e),[r.memoizedState,e]},useRef:function(e){var t=Lo();return e={current:e},t.memoizedState=e},useState:function(e){e=$o(e);var t=e.queue,n=Bs.bind(null,vo,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:Ts,useDeferredValue:function(e,t){return Os(Lo(),e,t)},useTransition:function(){var e=$o(!1);return e=As.bind(null,vo,e.queue,!0,!1),Lo().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=vo,i=Lo();if(Ri){if(n===void 0)throw Error(a(407));n=n()}else{if(n=t(),Xl===null)throw Error(a(349));Ql&127||Jo(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,_s(Xo.bind(null,r,o,e),[e]),r.flags|=2048,ps(9,{destroy:void 0},Yo.bind(null,r,o,n,t),null),n},useId:function(){var e=Lo(),t=Xl.identifierPrefix;if(Ri){var n=Ai,r=ki;n=(r&~(1<<32-Ve(r)-1)).toString(32)+n,t=`_`+t+`R_`+n,n=wo++,0<\/script>`,o=o.removeChild(o.firstChild);break;case`select`:o=typeof r.is==`string`?s.createElement(`select`,{is:r.is}):s.createElement(`select`),r.multiple?o.multiple=!0:r.size&&(o.size=r.size);break;default:o=typeof r.is==`string`?s.createElement(i,{is:r.is}):s.createElement(i)}}o[dt]=t,o[ft]=r;a:for(s=t.child;s!==null;){if(s.tag===5||s.tag===6)o.appendChild(s.stateNode);else if(s.tag!==4&&s.tag!==27&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===t)break a;for(;s.sibling===null;){if(s.return===null||s.return===t)break a;s=s.return}s.sibling.return=s.return,s=s.sibling}t.stateNode=o;a:switch(Qd(o,i,r),i){case`button`:case`input`:case`select`:case`textarea`:r=!!r.autoFocus;break a;case`img`:r=!0;break a;default:r=!1}r&&Vc(t)}}return Kc(t),Hc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&Vc(t);else{if(typeof r!=`string`&&t.stateNode===null)throw Error(a(166));if(e=fe.current,Gi(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,i=Ii,i!==null)switch(i.tag){case 27:case 5:r=i.memoizedProps}e[dt]=t,e=!!(e.nodeValue===n||r!==null&&!0===r.suppressHydrationWarning||Yd(e.nodeValue,n)),e||Hi(t,!0)}else e=af(e).createTextNode(r),e[dt]=t,t.stateNode=e}return Kc(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(r=Gi(t),n!==null){if(e===null){if(!r)throw Error(a(318));if(e=t.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(a(557));e[dt]=t}else Ki(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Kc(t),e=!1}else n=qi(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(mo(t),t):(mo(t),null);if(t.flags&128)throw Error(a(558))}return Kc(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(i=Gi(t),r!==null&&r.dehydrated!==null){if(e===null){if(!i)throw Error(a(318));if(i=t.memoizedState,i=i===null?null:i.dehydrated,!i)throw Error(a(317));i[dt]=t}else Ki(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Kc(t),i=!1}else i=qi(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=i),i=!0;if(!i)return t.flags&256?(mo(t),t):(mo(t),null)}return mo(t),t.flags&128?(t.lanes=n,t):(n=r!==null,e=e!==null&&e.memoizedState!==null,n&&(r=t.child,i=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(i=r.alternate.memoizedState.cachePool.pool),o=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(o=r.memoizedState.cachePool.pool),o!==i&&(r.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),Wc(t,t.updateQueue),Kc(t),null);case 4:return me(),e===null&&zd(t.stateNode.containerInfo),Kc(t),null;case 10:return $i(t.type),Kc(t),null;case 19:if(ce(ho),r=t.memoizedState,r===null)return Kc(t),null;if(i=!!(t.flags&128),o=r.rendering,o===null)if(i)Gc(r,!1);else{if(au!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=go(e),o!==null){for(t.flags|=128,Gc(r,!1),e=o.updateQueue,t.updateQueue=e,Wc(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)mi(n,e),n=n.sibling;return le(ho,ho.current&1|2),Ri&&ji(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&Ae()>gu&&(t.flags|=128,i=!0,Gc(r,!1),t.lanes=4194304)}else{if(!i)if(e=go(o),e!==null){if(t.flags|=128,i=!0,e=e.updateQueue,t.updateQueue=e,Wc(t,e),Gc(r,!0),r.tail===null&&r.tailMode===`hidden`&&!o.alternate&&!Ri)return Kc(t),null}else 2*Ae()-r.renderingStartTime>gu&&n!==536870912&&(t.flags|=128,i=!0,Gc(r,!1),t.lanes=4194304);r.isBackwards?(o.sibling=t.child,t.child=o):(e=r.last,e===null?t.child=o:e.sibling=o,r.last=o)}return r.tail===null?(Kc(t),null):(e=r.tail,r.rendering=e,r.tail=e.sibling,r.renderingStartTime=Ae(),e.sibling=null,n=ho.current,le(ho,i?n&1|2:n&1),Ri&&ji(t,r.treeForkCount),e);case 22:case 23:return mo(t),oo(),r=t.memoizedState!==null,e===null?r&&(t.flags|=8192):e.memoizedState!==null!==r&&(t.flags|=8192),r?n&536870912&&!(t.flags&128)&&(Kc(t),t.subtreeFlags&6&&(t.flags|=8192)):Kc(t),n=t.updateQueue,n!==null&&Wc(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),r=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),e!==null&&ce(Sa),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),$i(da),Kc(t),null;case 25:return null;case 30:return null}throw Error(a(156,t.tag))}function Jc(e,t){switch(Pi(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return $i(da),me(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return ge(t),null;case 31:if(t.memoizedState!==null){if(mo(t),t.alternate===null)throw Error(a(340));Ki()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(mo(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(a(340));Ki()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ce(ho),null;case 4:return me(),null;case 10:return $i(t.type),null;case 22:case 23:return mo(t),oo(),e!==null&&ce(Sa),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return $i(da),null;case 25:return null;default:return null}}function Yc(e,t){switch(Pi(t),t.tag){case 3:$i(da),me();break;case 26:case 27:case 5:ge(t);break;case 4:me();break;case 31:t.memoizedState!==null&&mo(t);break;case 13:mo(t);break;case 19:ce(ho);break;case 10:$i(t.type);break;case 22:case 23:mo(t),oo(),e!==null&&ce(Sa);break;case 24:$i(da)}}function Xc(e,t){try{var n=t.updateQueue,r=n===null?null:n.lastEffect;if(r!==null){var i=r.next;n=i;do{if((n.tag&e)===e){r=void 0;var a=n.create,o=n.inst;r=a(),o.destroy=r}n=n.next}while(n!==i)}}catch(e){od(t,t.return,e)}}function Zc(e,t,n){try{var r=t.updateQueue,i=r===null?null:r.lastEffect;if(i!==null){var a=i.next;r=a;do{if((r.tag&e)===e){var o=r.inst,s=o.destroy;if(s!==void 0){o.destroy=void 0,i=t;var c=n,l=s;try{l()}catch(e){od(i,c,e)}}}r=r.next}while(r!==a)}}catch(e){od(t,t.return,e)}}function Qc(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{to(t,n)}catch(t){od(e,e.return,t)}}}function $c(e,t,n){n.props=ec(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(n){od(e,t,n)}}function el(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;case 30:r=e.stateNode;break;default:r=e.stateNode}typeof n==`function`?e.refCleanup=n(r):n.current=r}}catch(n){od(e,t,n)}}function tl(e,t){var n=e.ref,r=e.refCleanup;if(n!==null)if(typeof r==`function`)try{r()}catch(n){od(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n==`function`)try{n(null)}catch(n){od(e,t,n)}else n.current=null}function nl(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{a:switch(t){case`button`:case`input`:case`select`:case`textarea`:n.autoFocus&&r.focus();break a;case`img`:n.src?r.src=n.src:n.srcSet&&(r.srcset=n.srcSet)}}catch(t){od(e,e.return,t)}}function rl(e,t,n){try{var r=e.stateNode;$d(r,e.type,n,t),r[ft]=t}catch(t){od(e,e.return,t)}}function il(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&gf(e.type)||e.tag===4}function al(e){a:for(;;){for(;e.sibling===null;){if(e.return===null||il(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&gf(e.type)||e.flags&2||e.child===null||e.tag===4)continue a;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function ol(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=an));else if(r!==4&&(r===27&&gf(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(ol(e,t,n),e=e.sibling;e!==null;)ol(e,t,n),e=e.sibling}function sl(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(r===27&&gf(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(sl(e,t,n),e=e.sibling;e!==null;)sl(e,t,n),e=e.sibling}function cl(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);Qd(t,r,n),t[dt]=e,t[ft]=n}catch(t){od(e,e.return,t)}}var ll=!1,ul=!1,dl=!1,fl=typeof WeakSet==`function`?WeakSet:Set,pl=null;function ml(e,t){if(e=e.containerInfo,nf=Tp,e=Ar(e),jr(e)){if(`selectionStart`in e)var n={start:e.selectionStart,end:e.selectionEnd};else a:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break a}var s=0,c=-1,l=-1,u=0,d=0,f=e,p=null;b:for(;;){for(var m;f!==n||i!==0&&f.nodeType!==3||(c=s+i),f!==o||r!==0&&f.nodeType!==3||(l=s+r),f.nodeType===3&&(s+=f.nodeValue.length),(m=f.firstChild)!==null;)p=f,f=m;for(;;){if(f===e)break b;if(p===n&&++u===i&&(c=s),p===o&&++d===r&&(l=s),(m=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=m}n=c===-1||l===-1?null:{start:c,end:l}}else n=null}n||={start:0,end:0}}else n=null;for(rf={focusedElem:e,selectionRange:n},Tp=!1,pl=t;pl!==null;)if(t=pl,e=t.child,t.subtreeFlags&1028&&e!==null)e.return=t,pl=e;else for(;pl!==null;){switch(t=pl,o=t.alternate,e=t.flags,t.tag){case 0:if(e&4&&(e=t.updateQueue,e=e===null?null:e.events,e!==null))for(n=0;n title`))),Qd(o,r,n),o[dt]=e,wt(o),r=o;break a;case`link`:var s=ap(`link`,`href`,i).get(r+(n.href||``));if(s){for(var c=0;cg&&(o=g,g=h,h=o);var _=Or(s,h),v=Or(s,g);if(_&&v&&(p.rangeCount!==1||p.anchorNode!==_.node||p.anchorOffset!==_.offset||p.focusNode!==v.node||p.focusOffset!==v.offset)){var y=d.createRange();y.setStart(_.node,_.offset),p.removeAllRanges(),h>g?(p.addRange(y),p.extend(v.node,v.offset)):(y.setEnd(v.node,v.offset),p.addRange(y))}}}}for(d=[],p=s;p=p.parentNode;)p.nodeType===1&&d.push({element:p,left:p.scrollLeft,top:p.scrollTop});for(typeof s.focus==`function`&&s.focus(),s=0;sn?32:n,j.T=null,n=wu,wu=null;var o=bu,s=Su;if(yu=0,xu=bu=null,Su=0,Yl&6)throw Error(a(331));var c=Yl;if(Yl|=4,Wl(o.current),Il(o,o.current,s,n),Yl=c,bd(0,!1),N&&typeof N.onPostCommitFiberRoot==`function`)try{N.onPostCommitFiberRoot(ze,o)}catch{}return!0}finally{re.p=i,j.T=r,nd(e,t)}}function ad(e,t,n){t=xi(n,t),t=oc(e.stateNode,t,2),e=Ja(e,t,2),e!==null&&(tt(e,2),yd(e))}function od(e,t,n){if(e.tag===3)ad(e,e,n);else for(;t!==null;){if(t.tag===3){ad(t,e,n);break}if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(vu===null||!vu.has(r))){e=xi(n,e),n=sc(2),r=Ja(t,n,2),r!==null&&(cc(n,r,t,e),tt(r,2),yd(r));break}}t=t.return}}function sd(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Jl;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(ru=!0,i.add(n),e=cd.bind(null,e,t,n),t.then(e,e))}function cd(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Xl===e&&(Ql&n)===n&&(au===4||au===3&&(Ql&62914560)===Ql&&300>Ae()-mu?!(Yl&2)&&Lu(e,0):cu|=n,uu===Ql&&(uu=0)),yd(e)}function ld(e,t){t===0&&(t=$e()),e=oi(e,t),e!==null&&(tt(e,t),yd(e))}function ud(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),ld(e,n)}function dd(e,t){var n=0;switch(e.tag){case 31:case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(a(314))}r!==null&&r.delete(t),ld(e,n)}function fd(e,t){return Ee(e,t)}var pd=null,md=null,hd=!1,gd=!1,_d=!1,vd=0;function yd(e){e!==md&&e.next===null&&(md===null?pd=md=e:md=md.next=e),gd=!0,hd||(hd=!0,Ed())}function bd(e,t){if(!_d&&gd){_d=!0;do for(var n=!1,r=pd;r!==null;){if(!t)if(e!==0){var i=r.pendingLanes;if(i===0)var a=0;else{var o=r.suspendedLanes,s=r.pingedLanes;a=(1<<31-Ve(42|e)+1)-1,a&=i&~(o&~s),a=a&201326741?a&201326741|1:a?a|2:0}a!==0&&(n=!0,Td(r,a))}else a=Ql,a=Xe(r,r===Xl?a:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),!(a&3)||Ze(r,a)||(n=!0,Td(r,a));r=r.next}while(n);_d=!1}}function xd(){Sd()}function Sd(){gd=hd=!1;var e=0;vd!==0&&uf()&&(e=vd);for(var t=Ae(),n=null,r=pd;r!==null;){var i=r.next,a=Cd(r,t);a===0?(r.next=null,n===null?pd=i:n.next=i,i===null&&(md=n)):(n=r,(e!==0||a&3)&&(gd=!0)),r=i}yu!==0&&yu!==5||bd(e,!1),vd!==0&&(vd=0)}function Cd(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes&-62914561;0s)break;var u=c.transferSize,d=c.initiatorType;u&&ef(d)&&(c=c.responseEnd,o+=u*(c`u`?null:document;function zf(e,t,n){var r=Rf;if(r&&typeof t==`string`&&t){var i=Ut(t);i=`link[rel="`+e+`"][href="`+i+`"]`,typeof n==`string`&&(i+=`[crossorigin="`+n+`"]`),Nf.has(i)||(Nf.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement(`link`),Qd(t,`link`,e),wt(t),r.head.appendChild(t)))}}function Bf(e){Ff.D(e),zf(`dns-prefetch`,e,null)}function Vf(e,t){Ff.C(e,t),zf(`preconnect`,e,t)}function Hf(e,t,n){Ff.L(e,t,n);var r=Rf;if(r&&e&&t){var i=`link[rel="preload"][as="`+Ut(t)+`"]`;t===`image`&&n&&n.imageSrcSet?(i+=`[imagesrcset="`+Ut(n.imageSrcSet)+`"]`,typeof n.imageSizes==`string`&&(i+=`[imagesizes="`+Ut(n.imageSizes)+`"]`)):i+=`[href="`+Ut(e)+`"]`;var a=i;switch(t){case`style`:a=Jf(e);break;case`script`:a=Qf(e)}Mf.has(a)||(e=p({rel:`preload`,href:t===`image`&&n&&n.imageSrcSet?void 0:e,as:t},n),Mf.set(a,e),r.querySelector(i)!==null||t===`style`&&r.querySelector(Yf(a))||t===`script`&&r.querySelector($f(a))||(t=r.createElement(`link`),Qd(t,`link`,e),wt(t),r.head.appendChild(t)))}}function Uf(e,t){Ff.m(e,t);var n=Rf;if(n&&e){var r=t&&typeof t.as==`string`?t.as:`script`,i=`link[rel="modulepreload"][as="`+Ut(r)+`"][href="`+Ut(e)+`"]`,a=i;switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:a=Qf(e)}if(!Mf.has(a)&&(e=p({rel:`modulepreload`,href:e},t),Mf.set(a,e),n.querySelector(i)===null)){switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:if(n.querySelector($f(a)))return}r=n.createElement(`link`),Qd(r,`link`,e),wt(r),n.head.appendChild(r)}}}function Wf(e,t,n){Ff.S(e,t,n);var r=Rf;if(r&&e){var i=Ct(r).hoistableStyles,a=Jf(e);t||=`default`;var o=i.get(a);if(!o){var s={loading:0,preload:null};if(o=r.querySelector(Yf(a)))s.loading=5;else{e=p({rel:`stylesheet`,href:e,"data-precedence":t},n),(n=Mf.get(a))&&np(e,n);var c=o=r.createElement(`link`);wt(c),Qd(c,`link`,e),c._p=new Promise(function(e,t){c.onload=e,c.onerror=t}),c.addEventListener(`load`,function(){s.loading|=1}),c.addEventListener(`error`,function(){s.loading|=2}),s.loading|=4,tp(o,t,r)}o={type:`stylesheet`,instance:o,count:1,state:s},i.set(a,o)}}}function Gf(e,t){Ff.X(e,t);var n=Rf;if(n&&e){var r=Ct(n).hoistableScripts,i=Qf(e),a=r.get(i);a||(a=n.querySelector($f(i)),a||(e=p({src:e,async:!0},t),(t=Mf.get(i))&&rp(e,t),a=n.createElement(`script`),wt(a),Qd(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Kf(e,t){Ff.M(e,t);var n=Rf;if(n&&e){var r=Ct(n).hoistableScripts,i=Qf(e),a=r.get(i);a||(a=n.querySelector($f(i)),a||(e=p({src:e,async:!0,type:`module`},t),(t=Mf.get(i))&&rp(e,t),a=n.createElement(`script`),wt(a),Qd(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function qf(e,t,n,r){var i=(i=fe.current)?Pf(i):null;if(!i)throw Error(a(446));switch(e){case`meta`:case`title`:return null;case`style`:return typeof n.precedence==`string`&&typeof n.href==`string`?(t=Jf(n.href),n=Ct(i).hoistableStyles,r=n.get(t),r||(r={type:`style`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};case`link`:if(n.rel===`stylesheet`&&typeof n.href==`string`&&typeof n.precedence==`string`){e=Jf(n.href);var o=Ct(i).hoistableStyles,s=o.get(e);if(s||(i=i.ownerDocument||i,s={type:`stylesheet`,instance:null,count:0,state:{loading:0,preload:null}},o.set(e,s),(o=i.querySelector(Yf(e)))&&!o._p&&(s.instance=o,s.state.loading=5),Mf.has(e)||(n={rel:`preload`,as:`style`,href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},Mf.set(e,n),o||Zf(i,e,n,s.state))),t&&r===null)throw Error(a(528,``));return s}if(t&&r!==null)throw Error(a(529,``));return null;case`script`:return t=n.async,n=n.src,typeof n==`string`&&t&&typeof t!=`function`&&typeof t!=`symbol`?(t=Qf(n),n=Ct(i).hoistableScripts,r=n.get(t),r||(r={type:`script`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};default:throw Error(a(444,e))}}function Jf(e){return`href="`+Ut(e)+`"`}function Yf(e){return`link[rel="stylesheet"][`+e+`]`}function Xf(e){return p({},e,{"data-precedence":e.precedence,precedence:null})}function Zf(e,t,n,r){e.querySelector(`link[rel="preload"][as="style"][`+t+`]`)?r.loading=1:(t=e.createElement(`link`),r.preload=t,t.addEventListener(`load`,function(){return r.loading|=1}),t.addEventListener(`error`,function(){return r.loading|=2}),Qd(t,`link`,n),wt(t),e.head.appendChild(t))}function Qf(e){return`[src="`+Ut(e)+`"]`}function $f(e){return`script[async]`+e}function ep(e,t,n){if(t.count++,t.instance===null)switch(t.type){case`style`:var r=e.querySelector(`style[data-href~="`+Ut(n.href)+`"]`);if(r)return t.instance=r,wt(r),r;var i=p({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement(`style`),wt(r),Qd(r,`style`,i),tp(r,n.precedence,e),t.instance=r;case`stylesheet`:i=Jf(n.href);var o=e.querySelector(Yf(i));if(o)return t.state.loading|=4,t.instance=o,wt(o),o;r=Xf(n),(i=Mf.get(i))&&np(r,i),o=(e.ownerDocument||e).createElement(`link`),wt(o);var s=o;return s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),Qd(o,`link`,r),t.state.loading|=4,tp(o,n.precedence,e),t.instance=o;case`script`:return o=Qf(n.src),(i=e.querySelector($f(o)))?(t.instance=i,wt(i),i):(r=n,(i=Mf.get(o))&&(r=p({},n),rp(r,i)),e=e.ownerDocument||e,i=e.createElement(`script`),wt(i),Qd(i,`link`,r),e.head.appendChild(i),t.instance=i);case`void`:return null;default:throw Error(a(443,t.type))}else t.type===`stylesheet`&&!(t.state.loading&4)&&(r=t.instance,t.state.loading|=4,tp(r,n.precedence,e));return t.instance}function tp(e,t,n){for(var r=n.querySelectorAll(`link[rel="stylesheet"][data-precedence],style[data-precedence]`),i=r.length?r[r.length-1]:null,a=i,o=0;o title`):null)}function sp(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case`meta`:case`title`:return!0;case`style`:if(typeof t.precedence!=`string`||typeof t.href!=`string`||t.href===``)break;return!0;case`link`:if(typeof t.rel!=`string`||typeof t.href!=`string`||t.href===``||t.onLoad||t.onError)break;switch(t.rel){case`stylesheet`:return e=t.disabled,typeof t.precedence==`string`&&e==null;default:return!0}case`script`:if(t.async&&typeof t.async!=`function`&&typeof t.async!=`symbol`&&!t.onLoad&&!t.onError&&t.src&&typeof t.src==`string`)return!0}return!1}function cp(e){return!(e.type===`stylesheet`&&!(e.state.loading&3))}function lp(e,t,n,r){if(n.type===`stylesheet`&&(typeof r.media!=`string`||!1!==matchMedia(r.media).matches)&&!(n.state.loading&4)){if(n.instance===null){var i=Jf(r.href),a=t.querySelector(Yf(i));if(a){t=a._p,typeof t==`object`&&t&&typeof t.then==`function`&&(e.count++,e=fp.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=a,wt(a);return}a=t.ownerDocument||t,r=Xf(r),(i=Mf.get(i))&&np(r,i),a=a.createElement(`link`),wt(a);var o=a;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),Qd(a,`link`,r),n.instance=a}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&!(n.state.loading&3)&&(e.count++,n=fp.bind(e),t.addEventListener(`load`,n),t.addEventListener(`error`,n))}}var up=0;function dp(e,t){return e.stylesheets&&e.count===0&&mp(e,e.stylesheets),0up?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}function fp(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)mp(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var pp=null;function mp(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,pp=new Map,t.forEach(hp,e),pp=null,fp.call(e))}function hp(e,t){if(!(t.state.loading&4)){var n=pp.get(e);if(n)var r=n.get(null);else{n=new Map,pp.set(e,n);for(var i=e.querySelectorAll(`link[data-precedence],style[data-precedence]`),a=0;a{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=Ge()}));function qe(e){return e[e.length-1]}function Je(e){return typeof e==`function`}function Ye(e,t){return Je(e)?e(t):e}var Xe=Object.prototype.hasOwnProperty,Ze=Object.prototype.propertyIsEnumerable;function Qe(e){for(let t in e)if(Xe.call(e,t))return!0;return!1}var $e=()=>Object.create(null),et=(e,t)=>tt(e,t,$e);function tt(e,t,n=()=>({}),r=0){if(e===t)return e;if(r>500)return t;let i=t,a=at(e)&&at(i);if(!a&&!(rt(e)&&rt(i)))return i;let o=a?e:nt(e);if(!o)return i;let s=a?i:nt(i);if(!s)return i;let c=o.length,l=s.length,u=a?Array(l):n(),d=0;for(let t=0;ti||!ot(e[o],t[o],n)))return!1;return i===a}return!1}function st(e){let t,n,r=new Promise((e,r)=>{t=e,n=r});return r.status=`pending`,r.resolve=n=>{r.status=`resolved`,r.value=n,t(n),e?.(n)},r.reject=e=>{r.status=`rejected`,n(e)},r}function ct(e){return typeof e?.message==`string`?e.message.startsWith(`Failed to fetch dynamically imported module`)||e.message.startsWith(`error loading dynamically imported module`)||e.message.startsWith(`Importing a module script failed`):!1}function lt(e){return!!(e&&typeof e==`object`&&typeof e.then==`function`)}var ut=/[\x00-\x1f\x7f"<>`{}]/g;function dt(e){return e.replace(ut,e=>`%`+e.charCodeAt(0).toString(16).toUpperCase().padStart(2,`0`))}function ft(e){let t;try{t=decodeURI(e)}catch{t=e.replaceAll(/%[0-9A-F]{2}/gi,e=>{try{return decodeURI(e)}catch{return e}})}return dt(t)}var pt=[`http:`,`https:`,`mailto:`,`tel:`];function mt(e,t){if(!e)return!1;try{let n=new URL(e);return!t.has(n.protocol)}catch{return!1}}function ht(e){if(!e||!/[%\\\x00-\x1f\x7f]/.test(e)&&!e.startsWith(`//`))return{path:e,handledProtocolRelativeURL:!1};let t=/%25|%5C/gi,n=0,r=``,i;for(;(i=t.exec(e))!==null;)r+=ft(e.slice(n,i.index))+i[0],n=t.lastIndex;r+=ft(n?e.slice(n):e);let a=!1;return r.startsWith(`//`)&&(a=!0,r=`/`+r.replace(/^\/+/,``)),{path:r,handledProtocolRelativeURL:a}}function gt(e){return/\s|[^\u0000-\u007F]/.test(e)?e.replace(/\s|[^\u0000-\u007F]/gu,encodeURIComponent):e}function _t(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0;n{e.next&&(e.prev?(e.prev.next=e.next,e.next.prev=e.prev,e.next=void 0,r&&(r.next=e,e.prev=r)):(e.next.prev=void 0,n=e.next,e.next=void 0,r&&(e.prev=r,r.next=e)),r=e)};return{get(e){let n=t.get(e);if(n)return i(n),n.value},set(a,o){if(t.size>=e&&n){let e=n;t.delete(e.key),e.next&&(n=e.next,e.next.prev=void 0),e===r&&(r=void 0)}let s=t.get(a);if(s)s.value=o,i(s);else{let e={key:a,value:o,prev:r};r&&(r.next=e),r=e,n||=e,t.set(a,e)}},clear(){t.clear(),n=void 0,r=void 0}}}var bt=4,xt=5;function St(e){let t=e.indexOf(`{`);if(t===-1)return null;let n=e.indexOf(`}`,t);return n===-1||t+1>=e.length?null:[t,n]}function Ct(e,t,n=new Uint16Array(6)){let r=e.indexOf(`/`,t),i=r===-1?e.length:r,a=e.substring(t,i);if(!a||!a.includes(`$`))return n[0]=0,n[1]=t,n[2]=t,n[3]=i,n[4]=i,n[5]=i,n;if(a===`$`){let r=e.length;return n[0]=2,n[1]=t,n[2]=t,n[3]=r,n[4]=r,n[5]=r,n}if(a.charCodeAt(0)===36)return n[0]=1,n[1]=t,n[2]=t+1,n[3]=i,n[4]=i,n[5]=i,n;let o=St(a);if(o){let[r,s]=o,c=a.charCodeAt(r+1);if(c===45){if(r+2!e.parse&&e.caseSensitive===f&&e.prefix===p&&e.suffix===m);if(h)o=h;else{let e=Ot(1,n.fullPath??n.from,f,p,m);o=e,e.depth=a,e.parent=i,i.dynamic??=[],i.dynamic.push(e)}break}case 3:{let t=r.substring(u,e[1]),s=r.substring(e[4],d),f=c&&!!(t||s),p=t?f?t:t.toLowerCase():void 0,m=s?f?s:s.toLowerCase():void 0,h=!l&&i.optional?.find(e=>!e.parse&&e.caseSensitive===f&&e.prefix===p&&e.suffix===m);if(h)o=h;else{let e=Ot(3,n.fullPath??n.from,f,p,m);o=e,e.parent=i,e.depth=a,i.optional??=[],i.optional.push(e)}break}case 2:{let t=r.substring(u,e[1]),s=r.substring(e[4],d),l=c&&!!(t||s),f=t?l?t:t.toLowerCase():void 0,p=s?l?s:s.toLowerCase():void 0,m=Ot(2,n.fullPath??n.from,l,f,p);o=m,m.parent=i,m.depth=a,i.wildcard??=[],i.wildcard.push(m)}}i=o}if(l&&n.children&&!n.isRoot&&n.id&&n.id.charCodeAt(n.id.lastIndexOf(`/`)+1)===95){let e=Dt(n.fullPath??n.from);e.kind=xt,e.parent=i,a++,e.depth=a,i.pathless??=[],i.pathless.push(e),i=e}let u=(n.path||!n.children)&&!n.isRoot;if(u&&r.endsWith(`/`)){let e=Dt(n.fullPath??n.from);e.kind=bt,e.parent=i,a++,e.depth=a,i.index=e,i=e}i.parse=l??null,i.priority=n.options?.params?.priority??0,u&&!i.route&&(i.route=n,i.fullPath=n.fullPath??n.from)}if(n.children)for(let r of n.children)wt(e,t,r,s,i,a,o)}function Tt(e,t){if(e.parse&&!t.parse)return-1;if(!e.parse&&t.parse)return 1;if(e.parse&&t.parse&&(e.priority||t.priority))return t.priority-e.priority;if(e.prefix&&t.prefix&&e.prefix!==t.prefix){if(e.prefix.startsWith(t.prefix))return-1;if(t.prefix.startsWith(e.prefix))return 1}if(e.suffix&&t.suffix&&e.suffix!==t.suffix){if(e.suffix.endsWith(t.suffix))return-1;if(t.suffix.endsWith(e.suffix))return 1}return e.prefix&&!t.prefix?-1:!e.prefix&&t.prefix?1:e.suffix&&!t.suffix?-1:!e.suffix&&t.suffix?1:e.caseSensitive&&!t.caseSensitive?-1:!e.caseSensitive&&t.caseSensitive?1:0}function Et(e){if(e.pathless)for(let t of e.pathless)Et(t);if(e.static)for(let t of e.static.values())Et(t);if(e.staticInsensitive)for(let t of e.staticInsensitive.values())Et(t);if(e.dynamic?.length){e.dynamic.sort(Tt);for(let t of e.dynamic)Et(t)}if(e.optional?.length){e.optional.sort(Tt);for(let t of e.optional)Et(t)}if(e.wildcard?.length){e.wildcard.sort(Tt);for(let t of e.wildcard)Et(t)}}function Dt(e){return{kind:0,depth:0,pathless:null,index:null,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:e,parent:null,parse:null,priority:0}}function Ot(e,t,n,r,i){return{kind:e,depth:0,pathless:null,index:null,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:t,parent:null,parse:null,priority:0,caseSensitive:n,prefix:r,suffix:i}}function kt(e,t){let n=Dt(`/`),r=new Uint16Array(6);for(let t of e)wt(!1,r,t,1,n,0);Et(n),t.masksTree=n,t.flatCache=yt(1e3)}function At(e,t){e||=`/`;let n=t.flatCache.get(e);if(n)return n;let r=Ft(e,t.masksTree);return t.flatCache.set(e,r),r}function jt(e,t,n,r,i){e||=`/`,r||=`/`;let a=t?`case\0${e}`:e,o=i.singleCache.get(a);return o||(o=Dt(`/`),wt(t,new Uint16Array(6),{from:e},1,o,0),i.singleCache.set(a,o)),Ft(r,o,n)}function Mt(e,t,n=!1){let r=n?e:`nofuzz\0${e}`,i=t.matchCache.get(r);if(i!==void 0)return i;e||=`/`;let a;try{a=Ft(e,t.segmentTree,n)}catch(e){if(e instanceof URIError)a=null;else throw e}return a&&(a.branch=Lt(a.route)),t.matchCache.set(r,a),a}function Nt(e){return e===`/`?e:e.replace(/\/{1,}$/,``)}function Pt(e,t=!1,n){let r=Dt(e.fullPath),i=new Uint16Array(6),a={},o={},s=0;return wt(t,i,e,1,r,0,e=>{if(n?.(e,s),e.id in a&&vt(),a[e.id]=e,s!==0&&e.path){let t=Nt(e.fullPath);(!o[t]||e.fullPath.endsWith(`/`))&&(o[t]=e)}s++}),Et(r),{processedTree:{segmentTree:r,singleCache:yt(1e3),matchCache:yt(1e3),flatCache:null,masksTree:null},routesById:a,routesByPath:o}}function Ft(e,t,n=!1){let r=e.split(`/`),i=zt(e,r,t,n);if(!i)return null;let[a]=It(e,r,i);return{route:i.node.route,rawParams:a}}function It(e,t,n){let r=Rt(n.node),i=null,a=Object.create(null),o=n.extract?.part??0,s=n.extract?.node??0,c=n.extract?.path??0,l=n.extract?.segment??0;for(;s=0;e--){let n=i.wildcard[e],{prefix:r,suffix:a}=n;if(!(r&&(v||!(n.caseSensitive?y:b??=y.toLowerCase()).startsWith(r)))){if(a){if(v)continue;let e=t.slice(u).join(`/`).slice(-a.length);if((n.caseSensitive?e:e.toLowerCase())!==a)continue}s.push({node:n,index:o,skipped:d,depth:f+1,statics:p,dynamics:m,optionals:h,extract:g,rawParams:_})}}if(i.optional){let e=d|1<=0;n--){let r=i.optional[n];s.push({node:r,index:u,skipped:e,depth:t,statics:p,dynamics:m,optionals:h,extract:g,rawParams:_})}if(!v)for(let e=i.optional.length-1;e>=0;e--){let n=i.optional[e],{prefix:r,suffix:a}=n;if(r||a){let e=n.caseSensitive?y:b??=y.toLowerCase();if(r&&!e.startsWith(r)||a&&!e.endsWith(a))continue}s.push({node:n,index:u+1,skipped:d,depth:t,statics:p,dynamics:m,optionals:h+Bt(o,u),extract:g,rawParams:_})}}if(!v&&i.dynamic&&y)for(let e=i.dynamic.length-1;e>=0;e--){let t=i.dynamic[e],{prefix:n,suffix:r}=t;if(n||r){let e=t.caseSensitive?y:b??=y.toLowerCase();if(n&&!e.startsWith(n)||r&&!e.endsWith(r))continue}s.push({node:t,index:u+1,skipped:d,depth:f+1,statics:p,dynamics:m+Bt(o,u),optionals:h,extract:g,rawParams:_})}if(!v&&i.staticInsensitive){let e=i.staticInsensitive.get(b??=y.toLowerCase());e&&s.push({node:e,index:u+1,skipped:d,depth:f+1,statics:p+Bt(o,u),dynamics:m,optionals:h,extract:g,rawParams:_})}if(!v&&i.static){let e=i.static.get(y);e&&s.push({node:e,index:u+1,skipped:d,depth:f+1,statics:p+Bt(o,u),dynamics:m,optionals:h,extract:g,rawParams:_})}if(i.pathless){let e=f+1;for(let t=i.pathless.length-1;t>=0;t--){let n=i.pathless[t];s.push({node:n,index:u,skipped:d,depth:e,statics:p,dynamics:m,optionals:h,extract:g,rawParams:_})}}}if(l)return l;if(r&&c){let n=c.index;for(let e=0;ee.statics||t.statics===e.statics&&(t.dynamics>e.dynamics||t.dynamics===e.dynamics&&(t.optionals>e.optionals||t.optionals===e.optionals&&((t.node.kind===bt)>(e.node.kind===bt)||t.node.kind===bt==(e.node.kind===bt)&&t.depth>e.depth)))}function Wt(e){return Gt(e.filter(e=>e!==void 0).join(`/`))}function Gt(e){return e.replace(/\/{2,}/g,`/`)}function Kt(e){return e===`/`?e:e.replace(/^\/{1,}/,``)}function qt(e){let t=e.length;return t>1&&e[t-1]===`/`?e.replace(/\/{1,}$/,``):e}function Jt(e){return qt(Kt(e))}function Yt(e,t){return e?.endsWith(`/`)&&e!==`/`&&e!==`${t}/`?e.slice(0,-1):e}function Xt(e,t,n){return Yt(e,n)===Yt(t,n)}function Zt({base:e,to:t,trailingSlash:n=`never`,cache:r}){let i=t.startsWith(`/`),a=!i&&t===`.`,o;if(r){o=i?t:a?e:e+`\0`+t;let n=r.get(o);if(n)return n}let s;if(a)s=e.split(`/`);else if(i)s=t.split(`/`);else{for(s=e.split(`/`);s.length>1&&qe(s)===``;)s.pop();let n=t.split(`/`);for(let e=0,t=n.length;e1&&(qe(s)===``?n===`never`&&s.pop():n===`always`&&s.push(``));let c=Gt(s.join(`/`))||`/`;return o&&r&&r.set(o,c),c}function Qt(e){let t=new Map(e.map(e=>[encodeURIComponent(e),e])),n=Array.from(t.keys()).map(e=>e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)).join(`|`),r=new RegExp(n,`g`);return e=>e.replace(r,e=>t.get(e)??e)}function $t(e,t,n){let r=t[e];return typeof r==`string`?e===`_splat`?/^[a-zA-Z0-9\-._~!/]*$/.test(r)?r:r.split(`/`).map(e=>tn(e,n)).join(`/`):tn(r,n):r}function en({path:e,params:t,decoder:n,...r}){let i=!1,a=Object.create(null);if(!e||e===`/`)return{interpolatedPath:`/`,usedParams:a,isMissingParams:i};if(!e.includes(`$`))return{interpolatedPath:e,usedParams:a,isMissingParams:i};let o=e.length,s=0,c,l=``;for(;se.state.__TSR_key||e.href;function fn(e){let t=e.getAttribute(un);if(t)return`[${un}="${t}"]`;let n=``,r=e,i;for(;i=r.parentNode;){let e=1,t=r;for(;t=t.previousElementSibling;)e++;let a=`${r.localName}:nth-child(${e})`;n=n?`${a} > ${n}`:a,r=i}return n}var pn=!1,mn=`window`;function hn(e){try{return typeof e==`function`?e():document.querySelector(e)}catch{}}function gn(e){let t=new Set;for(let n of e){if(n===mn)continue;let e=hn(n);e&&t.add(e)}return t}function _n(e,t){let n=t??e.options.scrollRestoration,r=e._scroll;n&&(r.restoring=!0);let i=e.options.getScrollRestorationKey||dn,a=new Set,o=e=>{let t=ln[e]||={};for(let e of a)e===document?t[mn]={scrollX,scrollY}:e.isConnected&&(t[fn(e)]={scrollX:e.scrollLeft,scrollY:e.scrollTop})};n&&!r.restoration&&(r.restoration=!0,pn=!1,history.scrollRestoration=`manual`,document.addEventListener(`scroll`,e=>{pn||a.add(e.target)},!0),e.subscribe(`onBeforeLoad`,e=>{e.fromLocation&&o(i(e.fromLocation)),a.clear()}),addEventListener(`pagehide`,()=>{o(i(e.stores.resolvedLocation.get()??e.stores.location.get())),cn()})),!r.reset&&(r.reset=!0,e.subscribe(`onRendered`,t=>{let n=e.options.scrollRestorationBehavior,o=e.options.scrollToTopSelectors,s=r.next,c=r.hash,l;if(a.clear(),r.next=!0,r.hash=!1,typeof e.options.scrollRestoration==`function`&&!e.options.scrollRestoration({location:e.latestLocation}))return;let u=i(t.toLocation),d=t.fromLocation&&i(t.fromLocation);if(r.restoring&&d&&d!==u){let e=ln[d];if(e){let t=ln[u];for(let n in e){if(n===mn){if(s)continue}else{let e=hn(n);if(!e||s&&o&&(l??=gn(o),l.has(e)))continue}t||=ln[u]={},t[n]??=e[n]}}}pn=!0;try{let e=t.toLocation.hash,i=t.toLocation.state.__hashScrollIntoViewOptions??!0,a=!1;if(s){!e&&o&&(l??=gn(o));let t=e&&i&&c,s=r.restoring?ln[u]:void 0;if(s)for(let e in s){let{scrollX:r,scrollY:i}=s[e];if(e===mn){if(t)continue;scrollTo({top:i,left:r,behavior:n}),a=!0}else{let t=hn(e);t&&(t.scrollLeft=r,t.scrollTop=i,l?.delete(t))}}if(!e){let e={top:0,left:0,behavior:n};if(a||scrollTo(e),l)for(let t of l)t.scrollTo(e)}}!a&&e&&i&&document.getElementById(e)?.scrollIntoView(i)}finally{pn=!1}}))}function vn(e,t=String){let n=new URLSearchParams;for(let r in e){let i=e[r];i!==void 0&&n.set(r,t(i))}return n.toString()}function yn(e){return e?e===`false`?!1:e===`true`?!0:e*0==0&&+e+``===e?+e:e:``}function bn(e){let t=new URLSearchParams(e),n=Object.create(null);for(let[e,r]of t.entries()){let t=n[e];t==null?n[e]=yn(r):Array.isArray(t)?t.push(yn(r)):n[e]=[t,yn(r)]}return n}var xn=Cn(JSON.parse),Sn=wn(JSON.stringify,JSON.parse);function Cn(e){return t=>{t[0]===`?`&&(t=t.substring(1));let n=bn(t);for(let t in n){let r=n[t];if(typeof r==`string`)try{n[t]=e(r)}catch{}}return n}}function wn(e,t){let n=typeof t==`function`;function r(r){if(typeof r==`object`&&r)try{return e(r)}catch{}else if(n&&typeof r==`string`)try{return t(r),e(r)}catch{}return r}return e=>{let t=vn(e,r);return t?`?${t}`:``}}var Tn=`__root__`;function En(e){if(e.statusCode=e.statusCode||e.code||307,!e._builtLocation&&!e.reloadDocument&&typeof e.href==`string`)try{new URL(e.href),e.reloadDocument=!0}catch{}let t=new Headers(e.headers);e.href&&t.get(`Location`)===null&&t.set(`Location`,e.href);let n=new Response(null,{status:e.statusCode,headers:t});if(n.options=e,e.throw)throw n;return n}function Dn(e){return e instanceof Response&&!!e.options}function On(e){return{input:({url:t})=>{for(let n of e)t=An(n,t);return t},output:({url:t})=>{for(let n=e.length-1;n>=0;n--)t=jn(e[n],t);return t}}}function kn(e){let t=Jt(e.basepath),n=`/${t}`,r=e.caseSensitive?n:n.toLowerCase(),i=`${r}/`;return{input:({url:t})=>{let a=e.caseSensitive?t.pathname:t.pathname.toLowerCase();return a===r?t.pathname=`/`:a.startsWith(i)&&(t.pathname=t.pathname.slice(n.length)),t},output:({url:e})=>(e.pathname=Wt([`/`,t,e.pathname]),e)}}function An(e,t){let n=e?.input?.({url:t});if(n){if(typeof n==`string`)return new URL(n);if(n instanceof URL)return n}return t}function jn(e,t){let n=e?.output?.({url:t});if(n){if(typeof n==`string`)return new URL(n);if(n instanceof URL)return n}return t}function Mn(e,t){let{createMutableStore:n,createReadonlyStore:r,batch:i,init:a}=t,o=new Map,s=new Map,c=new Map,l=n(e.status),u=n(e.loadedAt),d=n(e.isLoading),f=n(e.isTransitioning),p=n(e.location),m=n(e.resolvedLocation),h=n(e.statusCode),g=n(e.redirect),_=n([]),v=n([]),y=n([]),b=r(()=>Nn(o,_.get())),x=r(()=>Nn(s,v.get())),S=r(()=>Nn(c,y.get())),C=r(()=>_.get()[0]),w=r(()=>_.get().some(e=>o.get(e)?.get().status===`pending`)),T=r(()=>({locationHref:p.get().href,resolvedLocationHref:m.get()?.href,status:l.get()})),E=r(()=>({status:l.get(),loadedAt:u.get(),isLoading:d.get(),isTransitioning:f.get(),matches:b.get(),location:p.get(),resolvedLocation:m.get(),statusCode:h.get(),redirect:g.get()})),D=yt(64);function O(e){let t=D.get(e);return t||(t=r(()=>{let t=_.get();for(let n of t){let t=o.get(n);if(t&&t.routeId===e)return t.get()}}),D.set(e,t)),t}let k={status:l,loadedAt:u,isLoading:d,isTransitioning:f,location:p,resolvedLocation:m,statusCode:h,redirect:g,matchesId:_,pendingIds:v,cachedIds:y,matches:b,pendingMatches:x,cachedMatches:S,firstId:C,hasPending:w,matchRouteDeps:T,matchStores:o,pendingMatchStores:s,cachedMatchStores:c,__store:E,getRouteMatchStore:O,setMatches:ee,setPending:te,setCached:A};ee(e.matches),a?.(k);function ee(e){Pn(e,o,_,n,i)}function te(e){Pn(e,s,v,n,i)}function A(e){Pn(e,c,y,n,i)}return k}function Nn(e,t){let n=[];for(let r of t){let t=e.get(r);t&&n.push(t.get())}return n}function Pn(e,t,n,r,i){let a=e.map(e=>e.id),o=new Set(a);i(()=>{for(let e of t.keys())o.has(e)||t.delete(e);for(let n of e){let e=t.get(n.id);if(!e){let e=r(n);e.routeId=n.routeId,t.set(n.id,e);continue}e.routeId=n.routeId,e.get()!==n&&e.set(n)}_t(n.get(),a)||n.set(a)})}var Fn=e=>{if(!e.rendered)return e.rendered=!0,e.onReady?.()},In=e=>e.stores.matchesId.get().some(t=>e.stores.matchStores.get(t)?.get()._forcePending),Ln=(e,t)=>!!(e.preload&&!e.router.stores.matchStores.has(t)),Rn=(e,t,n=!0)=>{let r={...e.router.options.context??{}},i=n?t:t-1;for(let t=0;t<=i;t++){let n=e.matches[t];if(!n)continue;let i=e.router.getMatch(n.id);i&&Object.assign(r,i.__routeContext,i.__beforeLoadContext)}return r},zn=(e,t)=>{if(!e.matches.length)return;let n=t.routeId,r=e.matches.findIndex(t=>t.routeId===e.router.routeTree.id),i=r>=0?r:0,a=n?e.matches.findIndex(e=>e.routeId===n):e.firstBadMatchIndex??e.matches.length-1;a<0&&(a=i);for(let t=a;t>=0;t--){let n=e.matches[t];if(e.router.looseRoutesById[n.routeId].options.notFoundComponent)return t}return n?a:i},Bn=(e,t,n)=>{if(!(!Dn(n)&&!nn(n)))throw Dn(n)&&n.redirectHandled&&!n.options.reloadDocument?n:(t&&(t._nonReactive.beforeLoadPromise?.resolve(),t._nonReactive.loaderPromise?.resolve(),t._nonReactive.beforeLoadPromise=void 0,t._nonReactive.loaderPromise=void 0,t._nonReactive.error=n,e.updateMatch(t.id,r=>({...r,status:Dn(n)?`redirected`:nn(n)?`notFound`:r.status===`pending`?`success`:r.status,context:Rn(e,t.index),isFetching:!1,error:n})),nn(n)&&!n.routeId&&(n.routeId=t.routeId),t._nonReactive.loadPromise?.resolve()),Dn(n)&&(e.rendered=!0,n.options._fromLocation=e.location,n.redirectHandled=!0,n=e.router.resolveRedirect(n)),n)},Vn=(e,t)=>{let n=e.router.getMatch(t);return!!(!n||n._nonReactive.dehydrated)},Hn=(e,t,n)=>{let r=Rn(e,n);e.updateMatch(t,e=>({...e,context:r}))},Un=(e,t,n)=>{let{id:r,routeId:i}=e.matches[t],a=e.router.looseRoutesById[i];if(n instanceof Promise)throw n;e.firstBadMatchIndex??=t,Bn(e,e.router.getMatch(r),n);try{a.options.onError?.(n)}catch(t){n=t,Bn(e,e.router.getMatch(r),n)}e.updateMatch(r,e=>(e._nonReactive.beforeLoadPromise?.resolve(),e._nonReactive.beforeLoadPromise=void 0,e._nonReactive.loadPromise?.resolve(),{...e,error:n,status:`error`,isFetching:!1,updatedAt:Date.now(),abortController:new AbortController})),!e.preload&&!Dn(n)&&!nn(n)&&(e.serialError??=n)},Wn=(e,t,n,r)=>{if(r._nonReactive.pendingTimeout!==void 0)return;let i=n.options.pendingMs??e.router.options.defaultPendingMs;if(e.onReady&&!Ln(e,t)&&(n.options.loader||n.options.beforeLoad||tr(n))&&typeof i==`number`&&i!==1/0&&(n.options.pendingComponent??e.router.options?.defaultPendingComponent)){let t=setTimeout(()=>{Fn(e)},i);r._nonReactive.pendingTimeout=t}},Gn=(e,t,n)=>{let r=e.router.getMatch(t);if(!r._nonReactive.beforeLoadPromise&&!r._nonReactive.loaderPromise)return;Wn(e,t,n,r);let i=()=>{let n=e.router.getMatch(t);n.preload&&(n.status===`redirected`||n.status===`notFound`)&&Bn(e,n,n.error)};return r._nonReactive.beforeLoadPromise?r._nonReactive.beforeLoadPromise.then(i):i()},Kn=(e,t,n,r)=>{let i=e.router.getMatch(t),a=i._nonReactive.loadPromise;i._nonReactive.loadPromise=st(()=>{a?.resolve(),a=void 0});let{paramsError:o,searchError:s}=i;o&&Un(e,n,o),s&&Un(e,n,s),Wn(e,t,r,i);let c=new AbortController,l=!1,u=()=>{l||(l=!0,e.updateMatch(t,e=>({...e,isFetching:`beforeLoad`,fetchCount:e.fetchCount+1,abortController:c})))},d=()=>{i._nonReactive.beforeLoadPromise?.resolve(),i._nonReactive.beforeLoadPromise=void 0,e.updateMatch(t,e=>({...e,isFetching:!1}))};if(!r.options.beforeLoad){e.router.batch(()=>{u(),d()});return}i._nonReactive.beforeLoadPromise=st();let f={...Rn(e,n,!1),...i.__routeContext},{search:p,params:m,cause:h}=i,g=Ln(e,t),_={search:p,abortController:c,params:m,preload:g,context:f,location:e.location,navigate:t=>e.router.navigate({...t,_fromLocation:e.location}),buildLocation:e.router.buildLocation,cause:g?`preload`:h,matches:e.matches,routeId:r.id,...e.router.options.additionalContext},v=r=>{if(r===void 0){e.router.batch(()=>{u(),d()});return}(Dn(r)||nn(r))&&(u(),Un(e,n,r)),e.router.batch(()=>{u(),e.updateMatch(t,e=>({...e,__beforeLoadContext:r})),d()})},y;try{if(y=r.options.beforeLoad(_),lt(y))return u(),y.catch(t=>{Un(e,n,t)}).then(v)}catch(t){u(),Un(e,n,t)}v(y)},qn=(e,t)=>{let{id:n,routeId:r}=e.matches[t],i=e.router.looseRoutesById[r],a=()=>s(),o=()=>Kn(e,n,t,i),s=()=>{if(Vn(e,n))return;let t=Gn(e,n,i);return lt(t)?t.then(o):o()};return a()},Jn=(e,t,n)=>{let r=e.router.getMatch(t);if(!r||!n.options.head&&!n.options.scripts&&!n.options.headers)return;let i={ssr:e.router.options.ssr,matches:e.matches,match:r,params:r.params,loaderData:r.loaderData};return Promise.all([n.options.head?.(i),n.options.scripts?.(i),n.options.headers?.(i)]).then(([e,t,n])=>({meta:e?.meta,links:e?.links,headScripts:e?.scripts,headers:n,scripts:t,styles:e?.styles}))},Yn=(e,t,n,r,i)=>{let a=t[r-1],{params:o,loaderDeps:s,abortController:c,cause:l}=e.router.getMatch(n),u=Rn(e,r),d=Ln(e,n);return{params:o,deps:s,preload:!!d,parentMatchPromise:a,abortController:c,context:u,location:e.location,navigate:t=>e.router.navigate({...t,_fromLocation:e.location}),cause:d?`preload`:l,route:i,...e.router.options.additionalContext}},Xn=async(e,t,n,r,i)=>{try{let a=e.router.getMatch(n);try{er(i);let o=i.options.loader,s=typeof o==`function`?o:o?.handler,c=s?.(Yn(e,t,n,r,i)),l=!!s&<(c);if((l||i._lazyPromise||i._componentsPromise||i.options.head||i.options.scripts||i.options.headers||a._nonReactive.minPendingPromise)&&e.updateMatch(n,e=>({...e,isFetching:`loader`})),s){let t=l?await c:c;Bn(e,e.router.getMatch(n),t),t!==void 0&&e.updateMatch(n,e=>({...e,loaderData:t}))}i._lazyPromise&&await i._lazyPromise;let u=a._nonReactive.minPendingPromise;u&&await u,i._componentsPromise&&await i._componentsPromise,e.updateMatch(n,t=>({...t,error:void 0,context:Rn(e,r),status:`success`,isFetching:!1,updatedAt:Date.now()}))}catch(t){let o=t;if(o?.name===`AbortError`){if(a.abortController.signal.aborted){a._nonReactive.loaderPromise?.resolve(),a._nonReactive.loaderPromise=void 0;return}e.updateMatch(n,t=>({...t,status:t.status===`pending`?`success`:t.status,isFetching:!1,context:Rn(e,r)}));return}let s=a._nonReactive.minPendingPromise;s&&await s,nn(t)&&await i.options.notFoundComponent?.preload?.(),Bn(e,e.router.getMatch(n),t);try{i.options.onError?.(t)}catch(t){o=t,Bn(e,e.router.getMatch(n),t)}!Dn(o)&&!nn(o)&&await er(i,[`errorComponent`]),e.updateMatch(n,t=>({...t,error:o,context:Rn(e,r),status:`error`,isFetching:!1}))}}catch(t){let r=e.router.getMatch(n);r&&(r._nonReactive.loaderPromise=void 0),Bn(e,r,t)}},Zn=async(e,t,n)=>{async function r(r,a,c,l,d){let f=Date.now()-a.updatedAt,p=r?d.options.preloadStaleTime??e.router.options.defaultPreloadStaleTime??3e4:d.options.staleTime??e.router.options.defaultStaleTime??0,m=d.options.shouldReload,h=typeof m==`function`?m(Yn(e,t,i,n,d)):m,{status:g,invalid:_}=l,v=f>=p&&(!!e.forceStaleReload||l.cause===`enter`||c!==void 0&&c!==l.id);o=g===`success`&&(_||(h??v)),r&&d.options.preload===!1||(o&&!e.sync&&u?(s=!0,(async()=>{try{await Xn(e,t,i,n,d);let r=e.router.getMatch(i);r._nonReactive.loaderPromise?.resolve(),r._nonReactive.loadPromise?.resolve(),r._nonReactive.loaderPromise=void 0,r._nonReactive.loadPromise=void 0}catch(t){Dn(t)&&await e.router.navigate(t.options)}})()):g!==`success`||o?await Xn(e,t,i,n,d):Hn(e,i,n))}let{id:i,routeId:a}=e.matches[n],o=!1,s=!1,c=e.router.looseRoutesById[a],l=c.options.loader,u=((typeof l==`function`?void 0:l?.staleReloadMode)??e.router.options.defaultStaleReloadMode)!==`blocking`;if(Vn(e,i)){if(!e.router.getMatch(i))return e.matches[n];Hn(e,i,n)}else{let t=e.router.getMatch(i),o=e.router.stores.matchesId.get()[n],s=(o&&e.router.stores.matchStores.get(o)||null)?.routeId===a?o:e.router.stores.matches.get().find(e=>e.routeId===a)?.id,l=Ln(e,i);if(t._nonReactive.loaderPromise){if(t.status===`success`&&!e.sync&&!t.preload&&u)return t;await t._nonReactive.loaderPromise;let n=e.router.getMatch(i),a=n._nonReactive.error||n.error;a&&Bn(e,n,a),n.status===`pending`&&await r(l,t,s,n,c)}else{let n=l&&!e.router.stores.matchStores.has(i),a=e.router.getMatch(i);a._nonReactive.loaderPromise=st(),n!==a.preload&&e.updateMatch(i,e=>({...e,preload:n})),await r(l,t,s,a,c)}}let d=e.router.getMatch(i);s||(d._nonReactive.loaderPromise?.resolve(),d._nonReactive.loadPromise?.resolve(),d._nonReactive.loadPromise=void 0),clearTimeout(d._nonReactive.pendingTimeout),d._nonReactive.pendingTimeout=void 0,s||(d._nonReactive.loaderPromise=void 0),d._nonReactive.dehydrated=void 0;let f=s?d.isFetching:!1;return f!==d.isFetching||d.invalid!==!1?(e.updateMatch(i,e=>({...e,isFetching:f,invalid:!1})),e.router.getMatch(i)):d};async function Qn(e){let t=e,n=[];In(t.router)&&Fn(t);let r;for(let e=0;e({...e,...a?{status:`success`,globalNotFound:!0,error:void 0}:{status:`notFound`,error:l},isFetching:!1})),u=e,await er(r,[`notFoundComponent`])}else if(!t.preload){let e=t.matches[0];e.globalNotFound||t.router.getMatch(e.id)?.globalNotFound&&t.updateMatch(e.id,e=>({...e,globalNotFound:!1,error:void 0}))}if(t.serialError&&t.firstBadMatchIndex!==void 0){let e=t.router.looseRoutesById[t.matches[t.firstBadMatchIndex].routeId];await er(e,[`errorComponent`])}for(let e=0;e<=u;e++){let{id:n,routeId:r}=t.matches[e],i=t.router.looseRoutesById[r];try{let e=Jn(t,n,i);if(e){let r=await e;t.updateMatch(n,e=>({...e,...r}))}}catch(e){console.error(`Error executing head for route ${r}:`,e)}}let d=Fn(t);if(lt(d)&&await d,l)throw l;if(t.serialError&&!t.preload&&!t.onReady)throw t.serialError;return t.matches}function $n(e,t){let n=t.map(t=>e.options[t]?.preload?.()).filter(Boolean);if(n.length!==0)return Promise.all(n)}function er(e,t=nr){!e._lazyLoaded&&e._lazyPromise===void 0&&(e.lazyFn?e._lazyPromise=e.lazyFn().then(t=>{let{id:n,...r}=t.options;Object.assign(e.options,r),e._lazyLoaded=!0,e._lazyPromise=void 0}):e._lazyLoaded=!0);let n=()=>e._componentsLoaded?void 0:t===nr?(()=>{if(e._componentsPromise===void 0){let t=$n(e,nr);t?e._componentsPromise=t.then(()=>{e._componentsLoaded=!0,e._componentsPromise=void 0}):e._componentsLoaded=!0}return e._componentsPromise})():$n(e,t);return e._lazyPromise?e._lazyPromise.then(n):n()}function tr(e){for(let t of nr)if(e.options[t]?.preload)return!0;return!1}var nr=[`component`,`errorComponent`,`pendingComponent`,`notFoundComponent`],rr=`__TSR_index`,ir=`popstate`,ar=`beforeunload`;function or(e){let t=e.getLocation(),n=new Set,r=r=>{t=e.getLocation(),n.forEach(e=>e({location:t,action:r}))},i=n=>{e.notifyOnIndexChange??!0?r(n):t=e.getLocation()},a=async({task:n,navigateOpts:r,...i})=>{if(r?.ignoreBlocker??!1){n();return}let a=e.getBlockers?.()??[],o=i.type===`PUSH`||i.type===`REPLACE`;if(typeof document<`u`&&a.length&&o)for(let n of a){let r=ur(i.path,i.state);if(await n.blockerFn({currentLocation:t,nextLocation:r,action:i.type})){e.onBlocked?.();return}}n()};return{get location(){return t},get length(){return e.getLength()},subscribers:n,subscribe:e=>(n.add(e),()=>{n.delete(e)}),push:(n,i,o)=>{let s=t.state[rr];i=sr(s+1,i),a({task:()=>{e.pushState(n,i),r({type:`PUSH`})},navigateOpts:o,type:`PUSH`,path:n,state:i})},replace:(n,i,o)=>{let s=t.state[rr];i=sr(s,i),a({task:()=>{e.replaceState(n,i),r({type:`REPLACE`})},navigateOpts:o,type:`REPLACE`,path:n,state:i})},go:(t,n)=>{a({task:()=>{e.go(t),i({type:`GO`,index:t})},navigateOpts:n,type:`GO`})},back:t=>{a({task:()=>{e.back(t?.ignoreBlocker??!1),i({type:`BACK`})},navigateOpts:t,type:`BACK`})},forward:t=>{a({task:()=>{e.forward(t?.ignoreBlocker??!1),i({type:`FORWARD`})},navigateOpts:t,type:`FORWARD`})},canGoBack:()=>t.state[rr]!==0,createHref:t=>e.createHref(t),block:t=>{if(!e.setBlockers)return()=>{};let n=e.getBlockers?.()??[];return e.setBlockers([...n,t]),()=>{let n=e.getBlockers?.()??[];e.setBlockers?.(n.filter(e=>e!==t))}},flush:()=>e.flush?.(),destroy:()=>e.destroy?.(),notify:r}}function sr(e,t){t||={};let n=dr();return{...t,key:n,__TSR_key:n,[rr]:e}}function cr(e){let t=e?.window??(typeof document<`u`?window:void 0),n=t.history.pushState,r=t.history.replaceState,i=[],a=()=>i,o=e=>i=e,s=e?.createHref??(e=>e),c=e?.parseLocation??(()=>ur(`${t.location.pathname}${t.location.search}${t.location.hash}`,t.history.state));if(!t.history.state?.__TSR_key&&!t.history.state?.key){let e=dr();t.history.replaceState({[rr]:0,key:e,__TSR_key:e},``)}let l=c(),u,d=!1,f=!1,p=!1,m=!1,h=()=>l,g,_,v=()=>{g&&(C._ignoreSubscribers=!0,(g.isPush?t.history.pushState:t.history.replaceState)(g.state,``,g.href),C._ignoreSubscribers=!1,g=void 0,_=void 0,u=void 0)},y=(e,t,n)=>{let r=s(t);_||(u=l),l=ur(t,n),g={href:r,state:n,isPush:g?.isPush||e===`push`},_||=Promise.resolve().then(()=>v())},b=e=>{l=c(),C.notify({type:e})},x=async()=>{if(f){f=!1;return}let e=c(),n=e.state[rr]-l.state[rr],r=n===1,i=n===-1,o=!r&&!i||d;d=!1;let s=o?`GO`:i?`BACK`:`FORWARD`,u=o?{type:`GO`,index:n}:{type:i?`BACK`:`FORWARD`};if(p)p=!1;else{let n=a();if(typeof document<`u`&&n.length){for(let r of n)if(await r.blockerFn({currentLocation:l,nextLocation:e,action:s})){f=!0,t.history.go(1),C.notify(u);return}}}l=c(),C.notify(u)},S=e=>{if(m){m=!1;return}let t=!1,n=a();if(typeof document<`u`&&n.length)for(let e of n){let n=e.enableBeforeUnload??!0;if(n===!0){t=!0;break}if(typeof n==`function`&&n()===!0){t=!0;break}}if(t)return e.preventDefault(),e.returnValue=``},C=or({getLocation:h,getLength:()=>t.history.length,pushState:(e,t)=>y(`push`,e,t),replaceState:(e,t)=>y(`replace`,e,t),back:e=>(e&&(p=!0),m=!0,t.history.back()),forward:e=>{e&&(p=!0),m=!0,t.history.forward()},go:e=>{d=!0,t.history.go(e)},createHref:e=>s(e),flush:v,destroy:()=>{t.history.pushState=n,t.history.replaceState=r,t.removeEventListener(ar,S,{capture:!0}),t.removeEventListener(ir,x)},onBlocked:()=>{u&&l!==u&&(l=u)},getBlockers:a,setBlockers:o,notifyOnIndexChange:!1});return t.addEventListener(ar,S,{capture:!0}),t.addEventListener(ir,x),t.history.pushState=function(...e){let r=n.apply(t.history,e);return C._ignoreSubscribers||b(`PUSH`),r},t.history.replaceState=function(...e){let n=r.apply(t.history,e);return C._ignoreSubscribers||b(`REPLACE`),n},C}function lr(e){let t=e.replace(/[\x00-\x1f\x7f]/g,``);return t.startsWith(`//`)&&(t=`/`+t.replace(/^\/+/,``)),t}function ur(e,t){let n=lr(e),r=n.indexOf(`#`),i=n.indexOf(`?`),a=dr();return{href:n,pathname:n.substring(0,r>0?i>0?Math.min(r,i):r:i>0?i:n.length),hash:r>-1?n.substring(r):``,search:i>-1?n.slice(i,r===-1?void 0:r):``,state:t||{[rr]:0,key:a,__TSR_key:a}}}function dr(){return(Math.random()+1).toString(36).substring(7)}function fr(e,t){let n=t,r=e;return{fromLocation:n,toLocation:r,pathChanged:n?.pathname!==r.pathname,hrefChanged:n?.href!==r.href,hashChanged:n?.hash!==r.hash}}var pr=class{constructor(e,t){this.tempLocationKey=`${Math.round(Math.random()*1e7)}`,this._scroll={next:!0},this.shouldViewTransition=void 0,this.isViewTransitionTypesSupported=void 0,this.subscribers=new Set,this.routeBranchCache=new WeakMap,this.lightweightCache=new WeakMap,this.startTransition=e=>e(),this.update=e=>{let t=this.options,n=this.basepath??t?.basepath??`/`,r=this.basepath===void 0,i=t?.rewrite;if(this.options={...t,...e},this.isServer=this.options.isServer??typeof document>`u`,this.protocolAllowlist=new Set(this.options.protocolAllowlist),this.options.pathParamsAllowedCharacters&&(this.pathParamsDecoder=Qt(this.options.pathParamsAllowedCharacters)),(!this.history||this.options.history&&this.options.history!==this.history)&&(this.history=this.options.history?this.options.history:cr()),this.origin=this.options.origin,this.origin||=window?.origin&&window.origin!==`null`?window.origin:`http://localhost`,this.history&&this.updateLatestLocation(),this.options.routeTree!==this.routeTree){this.routeTree=this.options.routeTree;let e;this.resolvePathCache=yt(1e3),e=this.buildRouteTree(),this.setRoutes(e)}if(!this.stores&&this.latestLocation){let e=this.getStoreConfig(this);this.batch=e.batch,this.stores=Mn(gr(this.latestLocation),e),_n(this)}let a=!1,o=this.options.basepath??`/`,s=this.options.rewrite;if(r||n!==o||i!==s){this.basepath=o;let e=[],t=Jt(o);t&&t!==`/`&&e.push(kn({basepath:o})),s&&e.push(s),this.rewrite=e.length===0?void 0:e.length===1?e[0]:On(e),this.history&&this.updateLatestLocation(),a=!0}a&&this.stores&&this.stores.location.set(this.latestLocation),typeof window<`u`&&`CSS`in window&&typeof window.CSS?.supports==`function`&&(this.isViewTransitionTypesSupported=window.CSS.supports(`selector(:active-view-transition-type(a))`))},this.updateLatestLocation=()=>{this.latestLocation=this.parseLocation(this.history.location,this.latestLocation)},this.buildRouteTree=()=>{let e=Pt(this.routeTree,this.options.caseSensitive,(e,t)=>{e.init({originalIndex:t})});return this.options.routeMasks&&kt(this.options.routeMasks,e.processedTree),e},this.subscribe=(e,t)=>{let n={eventType:e,fn:t};return this.subscribers.add(n),()=>{this.subscribers.delete(n)}},this.emit=e=>{this.subscribers.forEach(t=>{t.eventType===e.type&&t.fn(e)})},this.parseLocation=(e,t)=>{let n=({pathname:e,search:n,hash:r,href:i,state:a})=>{if(!this.rewrite&&!/[ \x00-\x1f\x7f\u0080-\uffff]/.test(e)){let i=this.options.parseSearch(n),o=this.options.stringifySearch(i);return{href:e+o+r,publicHref:e+o+r,pathname:ht(e).path,external:!1,searchStr:o,search:et(t?.search,i),hash:ht(r.slice(1)).path,state:tt(t?.state,a)}}let o=new URL(i,this.origin),s=An(this.rewrite,o),c=this.options.parseSearch(s.search),l=this.options.stringifySearch(c);return s.search=l,{href:s.href.replace(s.origin,``),publicHref:i,pathname:ht(s.pathname).path,external:!!this.rewrite&&s.origin!==this.origin,searchStr:l,search:et(t?.search,c),hash:ht(s.hash.slice(1)).path,state:tt(t?.state,a)}},r=n(e),{__tempLocation:i,__tempKey:a}=r.state;if(i&&(!a||a===this.tempLocationKey)){let e=n(i);return e.state.key=r.state.key,e.state.__TSR_key=r.state.__TSR_key,delete e.state.__tempLocation,{...e,maskedLocation:r}}return r},this.resolvePathWithBase=(e,t)=>Zt({base:e,to:t.includes(`//`)?Gt(t):t,trailingSlash:this.options.trailingSlash,cache:this.resolvePathCache}),this.matchRoutes=(e,t,n)=>typeof e==`string`?this.matchRoutesInternal({pathname:e,search:t},n):this.matchRoutesInternal(e,t),this.getMatchedRoutes=e=>vr({pathname:e,routesById:this.routesById,processedTree:this.processedTree}),this.cancelMatch=e=>{let t=this.getMatch(e);t&&(t.abortController.abort(),clearTimeout(t._nonReactive.pendingTimeout),t._nonReactive.pendingTimeout=void 0)},this.cancelMatches=()=>{this.stores.pendingIds.get().forEach(e=>{this.cancelMatch(e)}),this.stores.matchesId.get().forEach(e=>{if(this.stores.pendingMatchStores.has(e))return;let t=this.stores.matchStores.get(e)?.get();t&&(t.status===`pending`||t.isFetching===`loader`)&&this.cancelMatch(e)})},this.buildLocation=e=>{let t=(t={})=>{let n=t._fromLocation||this.pendingBuiltLocation||this.latestLocation,r=this.matchRoutesLightweight(n);t.from;let i=t.unsafeRelative===`path`?n.pathname:t.from??r.fullPath,a=t.to?`${t.to}`:void 0,o=r.search,s=Object.assign(Object.create(null),r.params),c=a?.charCodeAt(0)===47?`/`:this.resolvePathWithBase(i,`.`),l=a?this.resolvePathWithBase(c,a):c,u=t.params===!1||t.params===null?Object.create(null):(t.params??!0)===!0?s:Object.assign(s,Ye(t.params,s)),d=this.routesByPath[qt(l)],f;if(d)f=this.getRouteBranch(d);else if(l.includes(`$`))f=[];else{let e=this.getMatchedRoutes(l);f=e.matchedRoutes,this.options.notFoundRoute&&(!e.foundRoute||e.foundRoute.path!==`/`&&e.routeParams[`**`])&&(f=[...f,this.options.notFoundRoute])}if(f.length&&Qe(u))for(let e of f){let t=e.options.params?.stringify??e.options.stringifyParams;if(t)try{Object.assign(u,t(u))}catch{}}let p=e.leaveParams?l:ht(en({path:l,params:u,decoder:this.pathParamsDecoder,server:this.isServer}).interpolatedPath).path,m=o;if(e._includeValidateSearch&&this.options.search?.strict){let e={};f.forEach(t=>{if(t.options.validateSearch)try{Object.assign(e,_r(t.options.validateSearch,{...e,...m}))}catch{}}),m=e}m=yr({search:m,dest:t,destRoutes:f,_includeValidateSearch:e._includeValidateSearch}),m=et(o,m);let h=this.options.stringifySearch(m),g=t.hash===!0?n.hash:t.hash?Ye(t.hash,n.hash):void 0,_=g?`#${g}`:``,v=t.state===!0?n.state:t.state?Ye(t.state,n.state):{};v=tt(n.state,v);let y=`${p}${h}${_}`,b,x,S=!1;if(this.rewrite){let e=new URL(y,this.origin),t=jn(this.rewrite,e);b=e.href.replace(e.origin,``),t.origin===this.origin?x=t.pathname+t.search+t.hash:(x=t.href,S=!0)}else b=gt(y),x=b;return{publicHref:x,href:b,pathname:p,search:m,searchStr:h,state:v,hash:g??``,external:S,unmaskOnReload:t.unmaskOnReload}},n=(n={},r)=>{let i=t(n),a=r?t(r):void 0;if(!a){let n=Object.create(null);if(this.options.routeMasks){let o=At(i.pathname,this.processedTree);if(o){Object.assign(n,o.rawParams);let{from:i,params:s,...c}=o.route,l=s===!1||s===null?Object.create(null):(s??!0)===!0?n:Object.assign(n,Ye(s,n));r={from:e.from,...c,params:l},a=t(r)}}}return a&&(i.maskedLocation=a),i};return e.mask?n(e,{from:e.from,...e.mask}):n(e)},this.commitLocation=async({viewTransition:e,ignoreBlocker:t,...n})=>{let r,i=()=>{let e=[`key`,`__TSR_key`,`__TSR_index`,`__hashScrollIntoViewOptions`];e.forEach(e=>{n.state[e]=this.latestLocation.state[e]});let t=ot(n.state,this.latestLocation.state);return e.forEach(e=>{delete n.state[e]}),t},a=qt(this.latestLocation.href)===qt(n.href),o=this.commitLocationPromise;if(this.commitLocationPromise=st(()=>{o?.resolve(),o=void 0}),a&&i())this.load();else{let{maskedLocation:i,hashScrollIntoView:a,...o}=n;i&&(o={...i,state:{...i.state,__tempKey:void 0,__tempLocation:{...o,search:o.searchStr,state:{...o.state,__tempKey:void 0,__tempLocation:void 0,__TSR_key:void 0,key:void 0}}}},(o.unmaskOnReload??this.options.unmaskOnReload??!1)&&(o.state.__tempKey=this.tempLocationKey)),o.state.__hashScrollIntoViewOptions=a??this.options.defaultHashScrollIntoView??!0,this.shouldViewTransition=e,r=n.replace?`REPLACE`:`PUSH`,this.history[r===`REPLACE`?`replace`:`push`](o.publicHref,o.state,{ignoreBlocker:t})}return this._scroll.next=n.resetScroll??!0,this.history.subscribers.size||this.load(r?{action:{type:r}}:void 0),this.commitLocationPromise},this.buildAndCommitLocation=({replace:e,resetScroll:t,hashScrollIntoView:n,viewTransition:r,ignoreBlocker:i,href:a,...o}={})=>{if(a){let t=this.history.location.state.__TSR_index,n=ur(a,{__TSR_index:e?t:t+1}),r=new URL(n.pathname,this.origin);o.to=An(this.rewrite,r).pathname,o.search=this.options.parseSearch(n.search),o.hash=n.hash.slice(1)}let s=this.buildLocation({...o,_includeValidateSearch:!0});this.pendingBuiltLocation=s;let c=this.commitLocation({...s,viewTransition:r,replace:e,resetScroll:t,hashScrollIntoView:n,ignoreBlocker:i});return queueMicrotask(()=>{this.pendingBuiltLocation===s&&(this.pendingBuiltLocation=void 0)}),c},this.navigate=async({to:e,reloadDocument:t,href:n,publicHref:r,...i})=>{let a=!1;if(n)try{new URL(`${n}`),a=!0}catch{}if(a&&!t&&(t=!0),t){if(e!==void 0||!n){let t=this.buildLocation({to:e,...i});n??=t.publicHref,r??=t.publicHref}let t=!a&&r?r:n;if(mt(t,this.protocolAllowlist))return;if(!i.ignoreBlocker){let e=this.history.getBlockers?.()??[];for(let t of e)if(t?.blockerFn&&await t.blockerFn({currentLocation:this.latestLocation,nextLocation:this.latestLocation,action:`PUSH`}))return}i.replace?window.location.replace(t):window.location.href=t;return}return this.buildAndCommitLocation({...i,href:n,to:e,_isNavigate:!0})},this.beforeLoad=()=>{this.cancelMatches(),this.updateLatestLocation();let e=this.matchRoutes(this.latestLocation),t=this.stores.cachedMatches.get().filter(t=>!e.some(e=>e.id===t.id));this.batch(()=>{this.stores.status.set(`pending`),this.stores.statusCode.set(200),this.stores.isLoading.set(!0),this.stores.location.set(this.latestLocation),this.stores.setPending(e),this.stores.setCached(t)})},this.load=async e=>{let t=e?.action?.type,n,r,i,a=this.stores.resolvedLocation.get()??this.stores.location.get();for(i=new Promise(o=>{this.startTransition(async()=>{try{this.beforeLoad(),t&&(this._scroll.hash=t===`PUSH`||t===`REPLACE`);let n=this.latestLocation,r=fr(n,this.stores.resolvedLocation.get());this.stores.redirect.get()||this.emit({type:`onBeforeNavigate`,...r}),this.emit({type:`onBeforeLoad`,...r}),await Qn({router:this,sync:e?.sync,forceStaleReload:a.href===n.href,matches:this.stores.pendingMatches.get(),location:n,updateMatch:this.updateMatch,onReady:async()=>{this.startTransition(()=>{this.startViewTransition(async()=>{let e=null,t=null,n=null,r=null;this.batch(()=>{let i=this.stores.pendingMatches.get(),a=i.length,o=this.stores.matches.get();e=a?o.filter(e=>!this.stores.pendingMatchStores.has(e.id)):null;let s=new Set;for(let e of this.stores.pendingMatchStores.values())e.routeId&&s.add(e.routeId);let c=new Set;for(let e of this.stores.matchStores.values())e.routeId&&c.add(e.routeId);t=a?o.filter(e=>!s.has(e.routeId)):null,n=a?i.filter(e=>!c.has(e.routeId)):null,r=a?i.filter(e=>c.has(e.routeId)):o,this.stores.isLoading.set(!1),this.stores.loadedAt.set(Date.now()),a&&(this.stores.setMatches(i),this.stores.setPending([]),this.stores.setCached([...this.stores.cachedMatches.get(),...e.filter(e=>e.status!==`error`&&e.status!==`notFound`&&e.status!==`redirected`)]),this.clearExpiredCache())});for(let[e,i]of[[t,`onLeave`],[n,`onEnter`],[r,`onStay`]])if(e)for(let t of e)this.looseRoutesById[t.routeId].options[i]?.(t)})})}})}catch(e){Dn(e)?(n=e,this.navigate({...n.options,replace:!0,ignoreBlocker:!0})):nn(e)&&(r=e);let t=n?n.status:r?404:this.stores.matches.get().some(e=>e.status===`error`)?500:200;this.batch(()=>{this.stores.statusCode.set(t),this.stores.redirect.set(n)})}this.latestLoadPromise===i&&(this.commitLocationPromise?.resolve(),this.latestLoadPromise=void 0,this.commitLocationPromise=void 0),o()})}),this.latestLoadPromise=i,await i;this.latestLoadPromise&&i!==this.latestLoadPromise;)await this.latestLoadPromise;let o;this.hasNotFoundMatch()?o=404:this.stores.matches.get().some(e=>e.status===`error`)&&(o=500),o!==void 0&&this.stores.statusCode.set(o)},this.startViewTransition=e=>{let t=this.shouldViewTransition??this.options.defaultViewTransition;if(this.shouldViewTransition=void 0,t&&typeof document<`u`&&`startViewTransition`in document&&typeof document.startViewTransition==`function`){let n;if(typeof t==`object`&&this.isViewTransitionTypesSupported){let r=this.latestLocation,i=this.stores.resolvedLocation.get(),a=typeof t.types==`function`?t.types(fr(r,i)):t.types;if(a===!1){e();return}n={update:e,types:a}}else n=e;document.startViewTransition(n)}else e()},this.updateMatch=(e,t)=>{this.startTransition(()=>{let n=this.stores.pendingMatchStores.get(e);if(n){n.set(t);return}let r=this.stores.matchStores.get(e);if(r){r.set(t);return}let i=this.stores.cachedMatchStores.get(e);if(i){let n=t(i.get());n.status===`redirected`?this.stores.cachedMatchStores.delete(e)&&this.stores.cachedIds.set(t=>t.filter(t=>t!==e)):i.set(n)}})},this.getMatch=e=>this.stores.cachedMatchStores.get(e)?.get()??this.stores.pendingMatchStores.get(e)?.get()??this.stores.matchStores.get(e)?.get(),this.invalidate=e=>{let t=t=>e?.filter?.(t)??!0?{...t,invalid:!0,...e?.forcePending||t.status===`error`||t.status===`notFound`?{status:`pending`,error:void 0}:void 0}:t;return this.batch(()=>{this.stores.setMatches(this.stores.matches.get().map(t)),this.stores.setCached(this.stores.cachedMatches.get().map(t)),this.stores.setPending(this.stores.pendingMatches.get().map(t))}),this.shouldViewTransition=!1,this.load({sync:e?.sync})},this.getParsedLocationHref=e=>e.publicHref||`/`,this.resolveRedirect=e=>{let t=e.headers.get(`Location`);if(!e.options.href||e.options._builtLocation){let t=e.options._builtLocation??this.buildLocation(e.options),n=this.getParsedLocationHref(t);e.options.href=n,e.headers.set(`Location`,n)}else if(t)try{let n=new URL(t);if(this.origin&&n.origin===this.origin){let t=n.pathname+n.search+n.hash;e.options.href=t,e.headers.set(`Location`,t)}}catch{}if(e.options.href&&!e.options._builtLocation&&mt(e.options.href,this.protocolAllowlist))throw Error(`Redirect blocked: unsafe protocol`);return e.headers.get(`Location`)||e.headers.set(`Location`,e.options.href),e},this.clearCache=e=>{let t=e?.filter;t===void 0?this.stores.setCached([]):this.stores.setCached(this.stores.cachedMatches.get().filter(e=>!t(e)))},this.clearExpiredCache=()=>{let e=Date.now();this.clearCache({filter:t=>{let n=this.looseRoutesById[t.routeId];if(!n.options.loader)return!0;let r=(t.preload?n.options.preloadGcTime??this.options.defaultPreloadGcTime:n.options.gcTime??this.options.defaultGcTime)??3e5;return t.status===`error`||e-t.updatedAt>=r}})},this.loadRouteChunk=er,this.preloadRoute=async e=>{let t=e._builtLocation??this.buildLocation(e),n=this.matchRoutes(t,{throwOnError:!0,preload:!0,dest:e}),r=new Set([...this.stores.matchesId.get(),...this.stores.pendingIds.get()]),i=new Set([...r,...this.stores.cachedIds.get()]),a=n.filter(e=>!i.has(e.id));if(a.length){let e=this.stores.cachedMatches.get();this.stores.setCached([...e,...a])}try{return n=await Qn({router:this,matches:n,location:t,preload:!0,updateMatch:(e,t)=>{r.has(e)?n=n.map(n=>n.id===e?t(n):n):this.updateMatch(e,t)}}),n}catch(e){if(Dn(e))return e.options.reloadDocument?void 0:await this.preloadRoute({...e.options,_fromLocation:t});nn(e)||console.error(e);return}},this.matchRoute=(e,t)=>{let n={...e,to:e.to?this.resolvePathWithBase(e.from||``,e.to):void 0,params:e.params||{},leaveParams:!0},r=this.buildLocation(n);if(t?.pending&&this.stores.status.get()!==`pending`)return!1;let i=(t?.pending===void 0?!this.stores.isLoading.get():t.pending)?this.latestLocation:this.stores.resolvedLocation.get()||this.stores.location.get(),a=jt(r.pathname,t?.caseSensitive??!1,t?.fuzzy??!1,i.pathname,this.processedTree);return!a||e.params&&!ot(a.rawParams,e.params,{partial:!0})?!1:t?.includeSearch??!0?ot(i.search,r.search,{partial:!0})?a.rawParams:!1:a.rawParams},this.hasNotFoundMatch=()=>this.stores.matches.get().some(e=>e.status===`notFound`||e.globalNotFound),this.getStoreConfig=t,this.update({defaultPreloadDelay:50,defaultPendingMs:1e3,defaultPendingMinMs:500,context:void 0,...e,caseSensitive:e.caseSensitive??!1,notFoundMode:e.notFoundMode??`fuzzy`,stringifySearch:e.stringifySearch??Sn,parseSearch:e.parseSearch??xn,protocolAllowlist:e.protocolAllowlist??pt}),typeof document<`u`&&(self.__TSR_ROUTER__=this)}isShell(){return!!this.options.isShell}isPrerendering(){return!!this.options.isPrerendering}get state(){return this.stores.__store.get()}setRoutes({routesById:e,routesByPath:t,processedTree:n}){this.routesById=e,this.routesByPath=t,this.processedTree=n;let r=this.options.notFoundRoute;r&&(r.init({originalIndex:99999999999}),this.routesById[r.id]=r)}getRouteBranch(e){let t=this.routeBranchCache.get(e);return t||(t=Lt(e),this.routeBranchCache.set(e,t)),t}get looseRoutesById(){return this.routesById}getParentContext(e){return e?.id?e.context??this.options.context??void 0:this.options.context??void 0}matchRoutesInternal(e,t){let n=this.getMatchedRoutes(e.pathname),{foundRoute:r,routeParams:i}=n,{matchedRoutes:a}=n,o=!1;(r?r.path!==`/`&&i[`**`]:qt(e.pathname))&&(this.options.notFoundRoute?a=[...a,this.options.notFoundRoute]:o=!0);let s=o?xr(this.options.notFoundMode,a):void 0,c=Array(a.length),l=new Map;for(let e of this.stores.matchStores.values())e.routeId&&l.set(e.routeId,e.get());for(let n=0;nthis.navigate({...t,_fromLocation:e}),buildLocation:this.buildLocation,cause:n.cause,abortController:n.abortController,preload:!!n.preload,matches:c,routeId:r.id};n.__routeContext=r.options.context(t)??void 0}n.context={...a,...n.__routeContext,...n.__beforeLoadContext}}}return c}matchRoutesLightweight(e){let t=qe(this.stores.matchesId.get()),n=this.lightweightCache.get(e);if(n&&n[0]===t)return n[1];let{matchedRoutes:r,routeParams:i}=this.getMatchedRoutes(e.pathname),a=qe(r),o={...e.search};for(let e of r)try{Object.assign(o,_r(e.options.validateSearch,o))}catch{}let s=t&&this.stores.matchStores.get(t)?.get(),c=s&&s.routeId===a.id&&s.pathname===e.pathname,l;if(c)l=s.params;else{let e=Object.assign(Object.create(null),i);for(let t of r)try{Sr(t,e)}catch{}l=e}let u={matchedRoutes:r,fullPath:a.fullPath,search:o,params:l};return this.lightweightCache.set(e,[t,u]),u}},mr=class extends Error{},hr=class extends Error{};function gr(e){return{loadedAt:0,isLoading:!1,isTransitioning:!1,status:`idle`,resolvedLocation:void 0,location:e,matches:[],statusCode:200}}function _r(e,t){if(e==null)return{};if(`~standard`in e){let n=e[`~standard`].validate(t);if(n instanceof Promise)throw new mr(`Async validation not supported`);if(n.issues)throw new mr(JSON.stringify(n.issues,void 0,2),{cause:n});return n.value}return`parse`in e?e.parse(t):typeof e==`function`?e(t):{}}function vr({pathname:e,routesById:t,processedTree:n}){let r=Object.create(null),i=qt(e),a,o=Mt(i,n,!0);return o&&(a=o.route,Object.assign(r,o.rawParams)),{matchedRoutes:o?.branch||[t.__root__],routeParams:r,foundRoute:a}}function yr({search:e,dest:t,destRoutes:n,_includeValidateSearch:r}){return br(n)(e,t,r??!1)}function br(e){let t,n,r=[];for(let t of e){let e=t.options;`search`in e?e.search?.middlewares&&r.push(...e.search.middlewares):(e.preSearchFilters||e.postSearchFilters)&&r.push(({search:t,next:n})=>{let r=n(e.preSearchFilters?e.preSearchFilters.reduce((e,t)=>t(e),t):t);return e.postSearchFilters?e.postSearchFilters.reduce((e,t)=>t(e),r):r});let i=e.validateSearch;i&&r.push(({search:e,next:t,meta:r})=>{let a=t(e);if(n)try{let e=_r(i,a);if(r&&e)for(let t in e)t in a||(r.defaulted||=new Map).set(t,e[t]);return{...a,...e}}catch{}return a})}let i=(e,n,a)=>{if(e>=r.length){if(!t.search)return{};if(t.search===!0)return n;let e=Ye(t.search,n);return a&&(a.explicit=e),e}return r[e]({search:n,next:(t,n)=>{if(n){let n=a||{};return{search:i(e+1,t,n),meta:n}}return i(e+1,t,a)},meta:a})};return function(e,r,a){return t=r,n=a,i(0,e)}}function xr(e,t){if(e!==`root`)for(let e=t.length-1;e>=0;e--){let n=t[e];if(n.children)return n.id}return Tn}function Sr(e,t){let n=e.options.params?.parse??e.options.parseParams;if(n){let e=n(t);if(e===!1)throw Error(`Route params.parse returned false for a matched route`);Object.assign(t,e)}}var Cr=`Error preloading route! ☝️`,wr=class{get to(){return this._to}get id(){return this._id}get path(){return this._path}get fullPath(){return this._fullPath}constructor(e){if(this.init=e=>{this.originalIndex=e.originalIndex;let t=this.options,n=!t?.path&&!t?.id;this.parentRoute=this.options.getParentRoute?.(),n?this._path=Tn:this.parentRoute||vt();let r=n?Tn:t?.path;r&&r!==`/`&&(r=Kt(r));let i=t?.id||r,a=n?Tn:Wt([this.parentRoute.id===`__root__`?``:this.parentRoute.id,i]);r===`__root__`&&(r=`/`),a!==`__root__`&&(a=Wt([`/`,a]));let o=a===`__root__`?`/`:Wt([this.parentRoute.fullPath,r]);this._path=r,this._id=a,this._fullPath=o,this._to=qt(o)},this.addChildren=e=>this._addFileChildren(e),this._addFileChildren=e=>(Array.isArray(e)&&(this.children=e),typeof e==`object`&&e&&(this.children=Object.values(e)),this),this._addFileTypes=()=>this,this.updateLoader=e=>(Object.assign(this.options,e),this),this.update=e=>(Object.assign(this.options,e),this),this.lazy=e=>(this.lazyFn=e,this),this.redirect=e=>En({from:this.fullPath,...e}),this.options=e||{},this.isRoot=!e?.getParentRoute,e?.id&&e?.path)throw Error(`Route cannot have both an 'id' and a 'path' option.`)}},Tr=class extends wr{constructor(e){super(e)}},P=e(r(),1),F=t();function Er(e){let t=e.errorComponent??Or;return(0,F.jsx)(Dr,{getResetKey:e.getResetKey,onCatch:e.onCatch,children:({error:n,reset:r})=>n?P.createElement(t,{error:n,reset:r}):e.children})}var Dr=class extends P.Component{constructor(...e){super(...e),this.state={error:null}}static getDerivedStateFromProps(e,t){let n=e.getResetKey();return t.error&&t.resetKey!==n?{resetKey:n,error:null}:{resetKey:n}}static getDerivedStateFromError(e){return{error:e}}reset(){this.setState({error:null})}componentDidCatch(e,t){this.props.onCatch&&this.props.onCatch(e,t)}render(){return this.props.children({error:this.state.error,reset:()=>{this.reset()}})}};function Or({error:e}){let[t,n]=P.useState(!1);return(0,F.jsxs)(`div`,{style:{padding:`.5rem`,maxWidth:`100%`},children:[(0,F.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:`.5rem`},children:[(0,F.jsx)(`strong`,{style:{fontSize:`1rem`},children:`Something went wrong!`}),(0,F.jsx)(`button`,{style:{appearance:`none`,fontSize:`.6em`,border:`1px solid currentColor`,padding:`.1rem .2rem`,fontWeight:`bold`,borderRadius:`.25rem`},onClick:()=>n(e=>!e),children:t?`Hide Error`:`Show Error`})]}),(0,F.jsx)(`div`,{style:{height:`.25rem`}}),t?(0,F.jsx)(`div`,{children:(0,F.jsx)(`pre`,{style:{fontSize:`.7em`,border:`1px solid red`,borderRadius:`.25rem`,padding:`.3rem`,color:`red`,overflow:`auto`},children:e.message?(0,F.jsx)(`code`,{children:e.message}):null})}):null]})}function kr({children:e,fallback:t=null}){return Ar()?(0,F.jsx)(P.Fragment,{children:e}):(0,F.jsx)(P.Fragment,{children:t})}function Ar(){return P.useSyncExternalStore(jr,()=>!0,()=>!1)}function jr(){return()=>{}}var Mr=P.createContext(void 0),Nr=P.createContext(void 0),Pr=(e=>(e[e.None=0]=`None`,e[e.Mutable=1]=`Mutable`,e[e.Watching=2]=`Watching`,e[e.RecursedCheck=4]=`RecursedCheck`,e[e.Recursed=8]=`Recursed`,e[e.Dirty=16]=`Dirty`,e[e.Pending=32]=`Pending`,e))(Pr||{});function Fr({update:e,notify:t,unwatched:n}){return{link:r,unlink:i,propagate:a,checkDirty:o,shallowPropagate:s};function r(e,t,n){let r=t.depsTail;if(r!==void 0&&r.dep===e)return;let i=r===void 0?t.deps:r.nextDep;if(i!==void 0&&i.dep===e){i.version=n,t.depsTail=i;return}let a=e.subsTail;if(a!==void 0&&a.version===n&&a.sub===t)return;let o=t.depsTail=e.subsTail={version:n,dep:e,sub:t,prevDep:r,nextDep:i,prevSub:a,nextSub:void 0};i!==void 0&&(i.prevDep=o),r===void 0?t.deps=o:r.nextDep=o,a===void 0?e.subs=o:a.nextSub=o}function i(e,t=e.sub){let r=e.dep,i=e.prevDep,a=e.nextDep,o=e.nextSub,s=e.prevSub;return a===void 0?t.depsTail=i:a.prevDep=i,i===void 0?t.deps=a:i.nextDep=a,o===void 0?r.subsTail=s:o.prevSub=s,s===void 0?(r.subs=o)===void 0&&n(r):s.nextSub=o,a}function a(e){let n=e.nextSub,r;top:do{let i=e.sub,a=i.flags;if(a&60?a&12?a&4?!(a&48)&&c(e,i)?(i.flags=a|40,a&=1):a=0:i.flags=a&-9|32:a=0:i.flags=a|32,a&2&&t(i),a&1){let t=i.subs;if(t!==void 0){let i=(e=t).nextSub;i!==void 0&&(r={value:n,prev:r},n=i);continue}}if((e=n)!==void 0){n=e.nextSub;continue}for(;r!==void 0;)if(e=r.value,r=r.prev,e!==void 0){n=e.nextSub;continue top}break}while(!0)}function o(t,n){let r,i=0,a=!1;top:do{let o=t.dep,c=o.flags;if(n.flags&16)a=!0;else if((c&17)==17){if(e(o)){let e=o.subs;e.nextSub!==void 0&&s(e),a=!0}}else if((c&33)==33){(t.nextSub!==void 0||t.prevSub!==void 0)&&(r={value:t,prev:r}),t=o.deps,n=o,++i;continue}if(!a){let e=t.nextDep;if(e!==void 0){t=e;continue}}for(;i--;){let i=n.subs,o=i.nextSub!==void 0;if(o?(t=r.value,r=r.prev):t=i,a){if(e(n)){o&&s(i),n=t.sub;continue}a=!1}else n.flags&=-33;n=t.sub;let c=t.nextDep;if(c!==void 0){t=c;continue top}}return a}while(!0)}function s(e){do{let n=e.sub,r=n.flags;(r&48)==32&&(n.flags=r|16,(r&6)==2&&t(n))}while((e=e.nextSub)!==void 0)}function c(e,t){let n=t.depsTail;for(;n!==void 0;){if(n===e)return!0;n=n.prevDep}return!1}}function Ir(e,t,n){let r=typeof e==`object`,i=r?e:void 0;return{next:(r?e.next:e)?.bind(i),error:(r?e.error:t)?.bind(i),complete:(r?e.complete:n)?.bind(i)}}var Lr=[],Rr=0,{link:zr,unlink:Br,propagate:Vr,checkDirty:Hr,shallowPropagate:Ur}=Fr({update(e){return e._update()},notify(e){Lr[Gr++]=e,e.flags&=~Pr.Watching},unwatched(e){e.depsTail!==void 0&&(e.depsTail=void 0,e.flags=Pr.Mutable|Pr.Dirty,Yr(e))}}),Wr=0,Gr=0,Kr,qr=0;function Jr(e){try{++qr,e()}finally{--qr||Xr()}}function Yr(e){let t=e.depsTail,n=t===void 0?e.deps:t.nextDep;for(;n!==void 0;)n=Br(n,e)}function Xr(){if(!(qr>0)){for(;Wr{i.get(),n.current?t.next?.(i._snapshot):n.current=!0});return{unsubscribe:()=>{r.stop()}}},_update(e){let a=Kr,o=t?.compare??Object.is;if(n)Kr=i,++Rr,i.depsTail=void 0;else if(e===void 0)return!1;n&&(i.flags=Pr.Mutable|Pr.RecursedCheck);try{let t=i._snapshot,a=typeof e==`function`?e(t):e===void 0&&n?r(t):e;return t===void 0||!o(t,a)?(i._snapshot=a,!0):!1}finally{Kr=a,n&&(i.flags&=~Pr.RecursedCheck),Yr(i)}}};return n?(i.flags=Pr.Mutable|Pr.Dirty,i.get=function(){let e=i.flags;if(e&Pr.Dirty||e&Pr.Pending&&Hr(i.deps,i)){if(i._update()){let e=i.subs;e!==void 0&&Ur(e)}}else e&Pr.Pending&&(i.flags=e&~Pr.Pending);return Kr!==void 0&&zr(i,Kr,Rr),i._snapshot}):i.set=function(e){if(i._update(e)){let e=i.subs;e!==void 0&&(Vr(e),Ur(e),Xr())}},i}function Qr(e){let t=()=>{let t=Kr;Kr=n,++Rr,n.depsTail=void 0,n.flags=Pr.Watching|Pr.RecursedCheck;try{return e()}finally{Kr=t,n.flags&=~Pr.RecursedCheck,Yr(n)}},n={deps:void 0,depsTail:void 0,subs:void 0,subsTail:void 0,flags:Pr.Watching|Pr.RecursedCheck,notify(){let e=this.flags;e&Pr.Dirty||e&Pr.Pending&&Hr(this.deps,this)?t():this.flags=Pr.Watching},stop(){this.flags=Pr.None,this.depsTail=void 0,Yr(this)}};return t(),n}var $r=i((e=>{var t=r();function n(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var i=typeof Object.is==`function`?Object.is:n,a=t.useState,o=t.useEffect,s=t.useLayoutEffect,c=t.useDebugValue;function l(e,t){var n=t(),r=a({inst:{value:n,getSnapshot:t}}),i=r[0].inst,l=r[1];return s(function(){i.value=n,i.getSnapshot=t,u(i)&&l({inst:i})},[e,n,t]),o(function(){return u(i)&&l({inst:i}),e(function(){u(i)&&l({inst:i})})},[e]),c(n),n}function u(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!i(e,n)}catch{return!0}}function d(e,t){return t()}var f=typeof window>`u`||window.document===void 0||window.document.createElement===void 0?d:l;e.useSyncExternalStore=t.useSyncExternalStore===void 0?f:t.useSyncExternalStore})),ei=i(((e,t)=>{t.exports=$r()})),ti=i((e=>{var t=r(),n=ei();function i(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var a=typeof Object.is==`function`?Object.is:i,o=n.useSyncExternalStore,s=t.useRef,c=t.useEffect,l=t.useMemo,u=t.useDebugValue;e.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var d=s(null);if(d.current===null){var f={hasValue:!1,value:null};d.current=f}else f=d.current;d=l(function(){function e(e){if(!o){if(o=!0,s=e,e=r(e),i!==void 0&&f.hasValue){var t=f.value;if(i(t,e))return c=t}return c=e}if(t=c,a(s,e))return t;var n=r(e);return i!==void 0&&i(t,n)?(s=e,t):(s=e,c=n)}var o=!1,s,c,l=n===void 0?null:n;return[function(){return e(t())},l===null?void 0:function(){return e(l())}]},[t,n,r,i]);var p=o(e,d[0],d[1]);return c(function(){f.hasValue=!0,f.value=p},[p]),u(p),p}})),ni=i(((e,t)=>{t.exports=ti()}))();function ri(e,t){return e===t}function ii(e,t,n=ri){let r=(0,P.useCallback)(t=>{if(!e)return()=>{};let{unsubscribe:n}=e.subscribe(t);return n},[e]),i=(0,P.useCallback)(()=>e?.get(),[e]);return(0,ni.useSyncExternalStoreWithSelector)(r,i,i,t,n)}var ai={get(){},subscribe(){return{unsubscribe(){}}}};function oi(e,t){let n=P.useRef();return r=>{let i=e?.select?e.select(r):r;return e?.structuralSharing??t.options.defaultStructuralSharing?n.current=tt(n.current,i):i}}function si(e){let t=u(),n=P.useContext(e.from?Nr:Mr),r=e.from?t.stores.getRouteMatchStore(e.from):t.stores.matchStores.get(n),i=oi(e,t),a=ii(r??ai,e=>e?i(e):ai);if(a!==ai)return a;(e.shouldThrow??!0)&&vt()}function ci(e){return si({from:e.from,strict:e.strict,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.loaderData):t.loaderData})}function li(e){let{select:t,...n}=e;return si({...n,select:e=>t?t(e.loaderDeps):e.loaderDeps})}function ui(e){return si({from:e.from,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,strict:e.strict,select:t=>{let n=e.strict===!1?t.params:t._strictParams;return e.select?e.select(n):n}})}function di(e){return si({from:e.from,strict:e.strict,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.search):t.search})}function fi(e){return si({...e,select:t=>e.select?e.select(t.context):t.context})}var pi=e(we(),1);function mi(e,t){let r=u(),i=d(t),{activeProps:a,inactiveProps:o,activeOptions:s,to:c,preload:l,preloadDelay:f,preloadIntentProximity:p,hashScrollIntoView:m,replace:h,startTransition:g,resetScroll:_,viewTransition:v,children:y,target:b,disabled:x,style:S,className:C,onClick:w,onBlur:T,onFocus:E,onMouseEnter:D,onMouseLeave:O,onTouchStart:k,ignoreBlocker:ee,params:te,search:A,hash:ne,state:j,mask:re,reloadDocument:ie,unsafeRelative:ae,from:oe,_fromLocation:se,...ce}=e,le=Ar(),ue=P.useMemo(()=>e,[r,e.from,e._fromLocation,e.hash,e.to,e.search,e.params,e.state,e.mask,e.unsafeRelative]),de=ii(r.stores.location,e=>e,(e,t)=>e.href===t.href),fe=P.useMemo(()=>{let e={_fromLocation:de,...ue};return r.buildLocation(e)},[r,de,ue]),M=fe.maskedLocation?fe.maskedLocation.publicHref:fe.publicHref,pe=fe.maskedLocation?fe.maskedLocation.external:fe.external,me=P.useMemo(()=>Ci(M,pe,r.history,x),[x,pe,M,r.history]),he=P.useMemo(()=>{if(me?.external)return mt(me.href,r.protocolAllowlist)?void 0:me.href;if(!wi(c)&&typeof c==`string`&&c.indexOf(`:`)!==-1)try{return new URL(c),mt(c,r.protocolAllowlist)?void 0:c}catch{}},[c,me,r.protocolAllowlist]),ge=P.useMemo(()=>{if(he)return!1;if(s?.exact){if(!Xt(de.pathname,fe.pathname,r.basepath))return!1}else{let e=Yt(de.pathname,r.basepath),t=Yt(fe.pathname,r.basepath);if(!(e.startsWith(t)&&(e.length===t.length||e[t.length]===`/`)))return!1}return(s?.includeSearch??!0)&&!ot(de.search,fe.search,{partial:!s?.exact,ignoreUndefined:!s?.explicitUndefined})?!1:!s?.includeHash||le&&de.hash===fe.hash},[s?.exact,s?.explicitUndefined,s?.includeHash,s?.includeSearch,de,he,le,fe.hash,fe.pathname,fe.search,r.basepath]),_e=ge?Ye(a,{})??gi:hi,ve=ge?hi:Ye(o,{})??hi,ye=[C,_e.className,ve.className].filter(Boolean).join(` `),be=(S||_e.style||ve.style)&&{...S,..._e.style,...ve.style},[xe,Se]=P.useState(!1),Ce=P.useRef(!1),we=e.reloadDocument||he?!1:l??r.options.defaultPreload,Te=f??r.options.defaultPreloadDelay??0,Ee=P.useCallback(()=>{r.preloadRoute({...ue,_builtLocation:fe}).catch(e=>{console.warn(e),console.warn(Cr)})},[r,ue,fe]);n(i,P.useCallback(e=>{e?.isIntersecting&&Ee()},[Ee]),xi,{disabled:!!x||we!==`viewport`}),P.useEffect(()=>{Ce.current||!x&&we===`render`&&(Ee(),Ce.current=!0)},[x,Ee,we]);let De=e=>{let t=e.currentTarget.getAttribute(`target`),n=b===void 0?t:b;if(!x&&!Ei(e)&&!e.defaultPrevented&&(!n||n===`_self`)&&e.button===0){e.preventDefault(),(0,pi.flushSync)(()=>{Se(!0)});let t=r.subscribe(`onResolved`,()=>{t(),Se(!1)});r.navigate({...ue,replace:h,resetScroll:_,hashScrollIntoView:m,startTransition:g,viewTransition:v,ignoreBlocker:ee})}};if(he)return{...ce,ref:i,href:he,...y&&{children:y},...b&&{target:b},...x&&{disabled:x},...S&&{style:S},...C&&{className:C},...w&&{onClick:w},...T&&{onBlur:T},...E&&{onFocus:E},...D&&{onMouseEnter:D},...O&&{onMouseLeave:O},...k&&{onTouchStart:k}};let Oe=e=>{if(x||we!==`intent`)return;if(!Te){Ee();return}let t=e.currentTarget;if(bi.has(t))return;let n=setTimeout(()=>{bi.delete(t),Ee()},Te);bi.set(t,n)},ke=e=>{x||we!==`intent`||Ee()},Ae=e=>{if(x||!we||!Te)return;let t=e.currentTarget,n=bi.get(t);n&&(clearTimeout(n),bi.delete(t))};return{...ce,..._e,...ve,href:me?.href,ref:i,onClick:Si([w,De]),onBlur:Si([T,Ae]),onFocus:Si([E,Oe]),onMouseEnter:Si([D,Oe]),onMouseLeave:Si([O,Ae]),onTouchStart:Si([k,ke]),disabled:!!x,target:b,...be&&{style:be},...ye&&{className:ye},...x&&_i,...ge&&vi,...le&&xe&&yi}}var hi={},gi={className:`active`},_i={role:`link`,"aria-disabled":!0},vi={"data-status":`active`,"aria-current":`page`},yi={"data-transitioning":`transitioning`},bi=new WeakMap,xi={rootMargin:`100px`},Si=e=>t=>{for(let n of e)if(n){if(t.defaultPrevented)return;n(t)}};function Ci(e,t,n,r){if(!r)return t?{href:e,external:!0}:{href:n.createHref(e)||`/`,external:!1}}function wi(e){if(typeof e!=`string`)return!1;let t=e.charCodeAt(0);return t===47?e.charCodeAt(1)!==47:t===46}var Ti=P.forwardRef((e,t)=>{let{_asChild:n,...r}=e,{type:i,...a}=mi(r,t),o=typeof r.children==`function`?r.children({isActive:a[`data-status`]===`active`}):r.children;if(!n){let{disabled:e,...t}=a;return P.createElement(`a`,t,o)}return P.createElement(n,a,o)});function Ei(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}var Di=class extends wr{constructor(e){super(e),this.useMatch=e=>si({select:e?.select,from:this.id,structuralSharing:e?.structuralSharing}),this.useRouteContext=e=>fi({...e,from:this.id}),this.useSearch=e=>di({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useParams=e=>ui({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useLoaderDeps=e=>li({...e,from:this.id}),this.useLoaderData=e=>ci({...e,from:this.id}),this.useNavigate=()=>c({from:this.fullPath}),this.Link=P.forwardRef((e,t)=>(0,F.jsx)(Ti,{ref:t,from:this.fullPath,...e}))}};function Oi(e){return new Di(e)}var ki=class extends Tr{constructor(e){super(e),this.useMatch=e=>si({select:e?.select,from:this.id,structuralSharing:e?.structuralSharing}),this.useRouteContext=e=>fi({...e,from:this.id}),this.useSearch=e=>di({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useParams=e=>ui({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useLoaderDeps=e=>li({...e,from:this.id}),this.useLoaderData=e=>ci({...e,from:this.id}),this.useNavigate=()=>c({from:this.fullPath}),this.Link=P.forwardRef((e,t)=>(0,F.jsx)(Ti,{ref:t,from:this.fullPath,...e}))}};function Ai(e){return new ki(e)}function ji(e){return new Mi(e,{silent:!0}).createRoute}var Mi=class{constructor(e,t){this.path=e,this.createRoute=e=>{let t=Oi(e);return t.isRoot=!1,t},this.silent=t?.silent}};function Ni(e,t){let n,r,i,a,o=()=>(n||=e().then(e=>{n=void 0,r=e[t??`default`]}).catch(e=>{if(i=e,ct(i)&&i instanceof Error&&typeof window<`u`&&typeof sessionStorage<`u`){let e=`tanstack_router_reload:${i.message}`;sessionStorage.getItem(e)||(sessionStorage.setItem(e,`1`),a=!0)}}),n),s=function(e){if(a)throw window.location.reload(),new Promise(()=>{});if(i)throw i;if(!r)if(l)l(o());else throw o();return P.createElement(r,e)};return s.preload=o,s}function Pi(e){let t=u(),n=`not-found-${ii(t.stores.location,e=>e.pathname)}-${ii(t.stores.status,e=>e)}`;return(0,F.jsx)(Er,{getResetKey:()=>n,onCatch:(t,n)=>{if(nn(t))e.onCatch?.(t,n);else throw t},errorComponent:({error:t})=>{if(nn(t))return e.fallback?.(t);throw t},children:e.children})}function Fi(){return(0,F.jsx)(`p`,{children:`Not Found`})}function Ii(e){return(0,F.jsx)(F.Fragment,{children:e.children})}function Li(e,t,n){return t.options.notFoundComponent?(0,F.jsx)(t.options.notFoundComponent,{...n}):e.options.defaultNotFoundComponent?(0,F.jsx)(e.options.defaultNotFoundComponent,{...n}):(0,F.jsx)(Fi,{})}var Ri=(e,t)=>e.routeId===t.routeId&&e._displayPending===t._displayPending,zi=(e,t)=>e[0]===t[0]&&e[1]===t[1],Bi=P.memo(function({matchId:e}){let t=u(),n=t.stores.matchStores.get(e);n||vt();let r=ii(t.stores.loadedAt,e=>e),i=ii(n,e=>e,Ri);return(0,F.jsx)(Vi,{router:t,matchId:e,resetKey:r,matchState:P.useMemo(()=>{let e=i.routeId,n=t.routesById[e].parentRoute?.id;return{routeId:e,ssr:i.ssr,_displayPending:i._displayPending,parentRouteId:n}},[i._displayPending,i.routeId,i.ssr,t.routesById])})});function Vi({router:e,matchId:t,resetKey:n,matchState:r}){let i=e.routesById[r.routeId],a=i.options.pendingComponent??e.options.defaultPendingComponent,o=a?(0,F.jsx)(a,{}):null,s=i.options.errorComponent??e.options.defaultErrorComponent,c=i.options.onCatch??e.options.defaultOnCatch,l=i.isRoot?i.options.notFoundComponent??e.options.notFoundRoute?.options.component:i.options.notFoundComponent,u=r.ssr===!1||r.ssr===`data-only`,d=(!i.isRoot||i.options.wrapInSuspense||u)&&(i.options.wrapInSuspense??a??(i.options.errorComponent?.preload||u))?P.Suspense:Ii,f=s?Er:Ii,p=l?Pi:Ii;return(0,F.jsxs)(i.isRoot?i.options.shellComponent??Ii:Ii,{children:[(0,F.jsx)(Mr.Provider,{value:t,children:(0,F.jsx)(d,{fallback:o,children:(0,F.jsx)(f,{getResetKey:()=>n,errorComponent:s||Or,onCatch:(e,t)=>{if(nn(e))throw e.routeId??=r.routeId,e;c?.(e,t)},children:(0,F.jsx)(p,{fallback:e=>{if(e.routeId??=r.routeId,!l||e.routeId&&e.routeId!==r.routeId||!e.routeId&&!i.isRoot)throw e;return P.createElement(l,e)},children:u||r._displayPending?(0,F.jsx)(kr,{fallback:o,children:(0,F.jsx)(Ui,{matchId:t})}):(0,F.jsx)(Ui,{matchId:t})})})})}),r.parentRouteId===`__root__`?(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(Hi,{}),(e.options.scrollRestoration,null)]}):null]})}function Hi(){let e=u(),t=P.useRef();return o(()=>{let n=e.stores.resolvedLocation.get(),r=t.current;n&&(!r||r.href!==n.href)&&e.emit({type:`onRendered`,...fr(e.stores.location.get(),r??n)}),t.current=n},[ii(e.stores.resolvedLocation,e=>e?.state.__TSR_key),e]),null}var Ui=P.memo(function({matchId:e}){let t=u(),n=(e,n)=>t.getMatch(e.id)?._nonReactive[n]??e._nonReactive[n],r=t.stores.matchStores.get(e);r||vt();let i=ii(r,e=>e),a=i.routeId,o=t.routesById[a],s=P.useMemo(()=>{let e=(t.routesById[a].options.remountDeps??t.options.defaultRemountDeps)?.({routeId:a,loaderDeps:i.loaderDeps,params:i._strictParams,search:i._strictSearch});return e?JSON.stringify(e):void 0},[a,i.loaderDeps,i._strictParams,i._strictSearch,t.options.defaultRemountDeps,t.routesById]),c=P.useMemo(()=>{let e=o.options.component??t.options.defaultComponent;return e?(0,F.jsx)(e,{},s):(0,F.jsx)(Wi,{})},[s,o.options.component,t.options.defaultComponent]);if(i._displayPending)throw n(i,`displayPendingPromise`);if(i._forcePending)throw n(i,`minPendingPromise`);if(i.status===`pending`){let e=o.options.pendingMinMs??t.options.defaultPendingMinMs;if(e){let n=t.getMatch(i.id);if(n&&!n._nonReactive.minPendingPromise){let t=st();n._nonReactive.minPendingPromise=t,setTimeout(()=>{t.resolve(),n._nonReactive.minPendingPromise=void 0},e)}}throw n(i,`loadPromise`)}if(i.status===`notFound`)return nn(i.error)||vt(),Li(t,o,i.error);if(i.status===`redirected`)throw Dn(i.error)||vt(),n(i,`loadPromise`);if(i.status===`error`)throw i.error;return c}),Wi=P.memo(function(){let e=u(),t=P.useContext(Mr),n,r=!1,i;{let a=t?e.stores.matchStores.get(t):void 0;[n,r]=ii(a,e=>[e?.routeId,e?.globalNotFound??!1],zi),i=ii(e.stores.matchesId,e=>e[e.findIndex(e=>e===t)+1])}let a=n?e.routesById[n]:void 0,o=e.options.defaultPendingComponent?(0,F.jsx)(e.options.defaultPendingComponent,{}):null;if(r)return a||vt(),Li(e,a,void 0);if(!i)return null;let s=(0,F.jsx)(Bi,{matchId:i});return n===`__root__`?(0,F.jsx)(P.Suspense,{fallback:o,children:s}):s});function Gi(){let e=u(),t=P.useRef({router:e,mounted:!1}),[n,r]=P.useState(!1),i=ii(e.stores.isLoading,e=>e),a=ii(e.stores.hasPending,e=>e),s=p(i),c=i||n||a,l=p(c),d=i||a,f=p(d);return e.startTransition=e=>{r(!0),P.startTransition(()=>{e(),r(!1)})},P.useEffect(()=>{let t=e.history.subscribe(e.load),n=e.buildLocation({to:e.latestLocation.pathname,search:!0,params:!0,hash:!0,state:!0,_includeValidateSearch:!0});return qt(e.latestLocation.publicHref)!==qt(n.publicHref)&&e.commitLocation({...n,replace:!0}),()=>{t()}},[e,e.history]),o(()=>{typeof window<`u`&&e.ssr||t.current.router===e&&t.current.mounted||(t.current={router:e,mounted:!0},(async()=>{try{await e.load()}catch(e){console.error(e)}})())},[e]),o(()=>{s&&!i&&e.emit({type:`onLoad`,...fr(e.stores.location.get(),e.stores.resolvedLocation.get())})},[s,e,i]),o(()=>{f&&!d&&e.emit({type:`onBeforeRouteMount`,...fr(e.stores.location.get(),e.stores.resolvedLocation.get())})},[d,f,e]),o(()=>{if(l&&!c){let t=fr(e.stores.location.get(),e.stores.resolvedLocation.get());e.emit({type:`onResolved`,...t}),Jr(()=>{e.stores.status.set(`idle`),e.stores.resolvedLocation.set(e.stores.location.get())})}},[c,l,e]),null}function Ki(){let e=u(),t=e.routesById.__root__.options.pendingComponent??e.options.defaultPendingComponent,n=t?(0,F.jsx)(t,{}):null,r=(0,F.jsxs)(typeof document<`u`&&e.ssr?Ii:P.Suspense,{fallback:n,children:[(0,F.jsx)(Gi,{}),(0,F.jsx)(qi,{})]});return e.options.InnerWrap?(0,F.jsx)(e.options.InnerWrap,{children:r}):r}function qi(){let e=u(),t=ii(e.stores.firstId,e=>e),n=ii(e.stores.loadedAt,e=>e),r=t?(0,F.jsx)(Bi,{matchId:t}):null;return(0,F.jsx)(Mr.Provider,{value:t,children:e.options.disableGlobalCatchBoundary?r:(0,F.jsx)(Er,{getResetKey:()=>n,errorComponent:Or,onCatch:void 0,children:r})})}var Ji=e=>({createMutableStore:Zr,createReadonlyStore:Zr,batch:Jr}),Yi=e=>new Xi(e),Xi=class extends pr{constructor(e){super(e,Ji)}};function Zi({router:e,children:t,...n}){Qe(n)&&e.update({...e.options,...n,context:{...e.options.context,...n.context}});let r=(0,F.jsx)(a.Provider,{value:e,children:t});return e.options.Wrap?(0,F.jsx)(e.options.Wrap,{children:r}):r}function Qi({router:e,...t}){return(0,F.jsx)(Zi,{router:e,...t,children:(0,F.jsx)(Ki,{})})}function $i(e){let t=u({warn:e?.router===void 0}),n=e?.router||t;return ii(n.stores.__store,oi(e,n))}function ea(e){return typeof e!=`string`||!e.includes(`var(--mantine-scale)`)?e:e.match(/^calc\((.*?)\)$/)?.[1].split(`*`)[0].trim()}function ta(e){let t=ea(e);return typeof t==`number`?t:typeof t==`string`?t.includes(`calc`)||t.includes(`var`)?t:t.includes(`px`)?Number(t.replace(`px`,``)):t.includes(`rem`)?Number(t.replace(`rem`,``))*16:t.includes(`em`)?Number(t.replace(`em`,``))*16:Number(t):NaN}function na(e){return Array.isArray(e)||e===null?!1:typeof e==`object`&&e.type!==P.Fragment}function ra(e){let t=(0,P.createContext)(null);return[t,()=>{let n=(0,P.use)(t);if(n===null)throw Error(e);return n}]}function ia(e,t){let n=e;for(;(n=n.parentElement)&&!n.matches(t););return n}function aa(e,t,n){for(let n=e-1;n>=0;--n)if(!t[n].disabled)return n;if(n){for(let e=t.length-1;e>-1;--e)if(!t[e].disabled)return e}return e}function oa(e,t,n){for(let n=e+1;n{n?.(s);let c=Array.from(ia(s.currentTarget,e)?.querySelectorAll(t)||[]).filter(t=>sa(s.currentTarget,t,e)),l=c.findIndex(e=>s.currentTarget===e),u=oa(l,c,r),d=aa(l,c,r),f=a===`rtl`?d:u,p=a===`rtl`?u:d;switch(s.key){case`ArrowRight`:o===`horizontal`&&(s.stopPropagation(),s.preventDefault(),c[f].focus(),i&&c[f].click());break;case`ArrowLeft`:o===`horizontal`&&(s.stopPropagation(),s.preventDefault(),c[p].focus(),i&&c[p].click());break;case`ArrowUp`:o===`vertical`&&(s.stopPropagation(),s.preventDefault(),c[d].focus(),i&&c[d].click());break;case`ArrowDown`:o===`vertical`&&(s.stopPropagation(),s.preventDefault(),c[u].focus(),i&&c[u].click());break;case`Home`:s.stopPropagation(),s.preventDefault(),c[oa(-1,c,!1)]?.focus();break;case`End`:s.stopPropagation(),s.preventDefault(),c[aa(c.length,c,!1)]?.focus()}}}var la={app:100,modal:200,popover:300,overlay:400,max:9999};function ua(e){return la[e]}var da=()=>{};function fa(e,t={active:!0}){return typeof e!=`function`||!t.active?t.onKeyDown||da:n=>{n.key===`Escape`&&(e(n),t.onTrigger?.())}}function pa(e,t){return n=>{e?.(n),t?.(n)}}function ma(e,t){return e in t?ta(t[e]):ta(e)}function ha(e,t){let n=e.map(e=>({value:e,px:ma(e,t)}));return n.sort((e,t)=>e.px-t.px),n}function ga(e){return typeof e==`object`&&e?`base`in e?e.base:void 0:e}function _a(e,t,n){return n?Array.from(ia(n,t)?.querySelectorAll(e)||[]).findIndex(e=>e===n):null}function va(e){let t=(0,P.useRef)(e);return(0,P.useEffect)(()=>{t.current=e}),(0,P.useMemo)(()=>((...e)=>t.current?.(...e)),[])}function ya(e,t){let{delay:n,flushOnUnmount:r,leading:i,maxWait:a}=typeof t==`number`?{delay:t,flushOnUnmount:!1,leading:!1,maxWait:void 0}:t,o=va(e),s=(0,P.useRef)(0),c=(0,P.useRef)(0),l=(0,P.useRef)(null),u=(0,P.useMemo)(()=>{let e=Object.assign((...t)=>{window.clearTimeout(s.current),l.current=t;let r=e._isFirstCall;e._isFirstCall=!1;function u(){window.clearTimeout(s.current),window.clearTimeout(c.current),s.current=0,c.current=0,e._isFirstCall=!0,e._hasPendingCallback=!1}function d(){a!==void 0&&c.current===0&&(c.current=window.setTimeout(()=>{if(s.current!==0){let e=l.current;u(),o(...e)}},a))}if(i&&r){o(...t),e.flush=()=>{s.current!==0&&(u(),o(...t))},e.cancel=()=>{u()},s.current=window.setTimeout(()=>{u()},n),d();return}if(i&&!r){e._hasPendingCallback=!0,e.flush=()=>{s.current!==0&&(u(),o(...t))},e.cancel=()=>{u()},s.current=window.setTimeout(()=>{u()},n),d();return}e._hasPendingCallback=!0;let f=()=>{s.current!==0&&(u(),o(...t))};e.flush=f,e.cancel=()=>{u()},s.current=window.setTimeout(f,n),d()},{flush:()=>{},cancel:()=>{},isPending:()=>e._hasPendingCallback,_isFirstCall:!0,_hasPendingCallback:!1});return e},[o,n,i,a]);return(0,P.useEffect)(()=>()=>{r?u.flush():u.cancel()},[u,r]),u}var ba=[`mousedown`,`touchstart`];function xa(e,t,n,r=!0){let i=(0,P.useRef)(null),a=t||ba,o=(0,P.useEffectEvent)(t=>{let{target:r}=t??{};if(!document.body.contains(r)&&r?.tagName!==`HTML`)return;let a=t.composedPath();Array.isArray(n)?n.every(e=>!!e&&!a.includes(e))&&e(t):i.current&&!a.includes(i.current)&&e(t)}),s=a.join(`,`);return(0,P.useEffect)(()=>{if(!r)return;let e=s.split(`,`);return e.forEach(e=>document.addEventListener(e,o)),()=>{e.forEach(e=>document.removeEventListener(e,o))}},[s,r]),i}function Sa(e,t){return Me(`(prefers-color-scheme: dark)`,e===`dark`,t)?`dark`:`light`}function Ca(e,t,n={leading:!1}){let[r,i]=(0,P.useState)(e),a=(0,P.useRef)(!1),o=(0,P.useRef)(null),s=(0,P.useRef)(!1),c=(0,P.useRef)(e);c.current=e;let l=(0,P.useCallback)(()=>{window.clearTimeout(o.current),o.current=null,s.current=!1},[]),u=(0,P.useCallback)(()=>{o.current&&(l(),s.current=!1,i(c.current))},[]);return(0,P.useEffect)(()=>{a.current&&(!s.current&&n.leading?(s.current=!0,i(e),o.current=window.setTimeout(()=>{s.current=!1},t)):(l(),o.current=window.setTimeout(()=>{s.current=!1,i(e)},t)))},[e,n.leading,t]),(0,P.useEffect)(()=>(a.current=!0,l),[]),[r,l,{cancel:l,flush:u}]}function wa({opened:e,shouldReturnFocus:t=!0}){let n=(0,P.useRef)(null),r=()=>{n.current&&`focus`in n.current&&typeof n.current.focus==`function`&&n.current?.focus({preventScroll:!0})};return Ie(()=>{let i=-1,a=e=>{e.key===`Tab`&&window.clearTimeout(i)};if(document.addEventListener(`keydown`,a),e)n.current=document.activeElement;else if(t){let e=document.activeElement;i=window.setTimeout(()=>{let t=document.activeElement;(t===null||t===document.body||t===e)&&r()},10)}return()=>{window.clearTimeout(i),document.removeEventListener(`keydown`,a)}},[e,t]),r}var Ta=/input|select|textarea|button|object/,Ea=`a, input, select, textarea, button, object, [tabindex]`;function Da(e){return e.style.display===`none`}function Oa(e){if(e.getAttribute(`aria-hidden`)||e.getAttribute(`hidden`)||e.getAttribute(`type`)===`hidden`)return!1;let t=e;for(;t&&t!==document.body&&t.nodeType!==11;){if(Da(t))return!1;t=t.parentNode}return!0}function ka(e){let t=e.getAttribute(`tabindex`);return t===null&&(t=void 0),parseInt(t,10)}function Aa(e){let t=e.nodeName.toLowerCase(),n=!Number.isNaN(ka(e));return(Ta.test(t)&&!e.disabled||e instanceof HTMLAnchorElement&&e.href||n)&&Oa(e)}function ja(e){let t=ka(e);return(Number.isNaN(t)||t>=0)&&Aa(e)}function Ma(e){return Array.from(e.querySelectorAll(Ea)).filter(ja)}function Na(e,t){let n=Ma(e);if(!n.length){t.preventDefault();return}let r=n[t.shiftKey?0:n.length-1],i=e.getRootNode(),a=r===i.activeElement||e===i.activeElement,o=i.activeElement;if(o.tagName===`INPUT`&&o.getAttribute(`type`)===`radio`&&(a=n.filter(e=>e.getAttribute(`type`)===`radio`&&e.getAttribute(`name`)===o.getAttribute(`name`)).includes(r)),!a)return;t.preventDefault();let s=n[t.shiftKey?n.length-1:0];s&&s.focus()}function Pa(e=!0){let t=(0,P.useRef)(null),n=e=>{let t=e.querySelector(`[data-autofocus]`);if(!t){let n=Array.from(e.querySelectorAll(Ea));t=n.find(ja)||n.find(Aa)||null,!t&&Aa(e)&&(t=e)}t?t.focus({preventScroll:!0}):console.warn(`[@mantine/hooks/use-focus-trap] Failed to find focusable element within provided node`,e)},r=(0,P.useCallback)(r=>{if(e){if(r===null){t.current=null;return}t.current!==r&&(setTimeout(()=>{r.getRootNode()?n(r):console.warn(`[@mantine/hooks/use-focus-trap] Ref node is not part of the dom`,r)}),t.current=r)}},[e]);return(0,P.useEffect)(()=>{if(!e)return;t.current&&setTimeout(()=>{t.current&&n(t.current)});let r=e=>{e.key===`Tab`&&t.current&&Na(t.current,e)};return document.addEventListener(`keydown`,r),()=>document.removeEventListener(`keydown`,r)},[e]),r}function Fa(e,t,n){let r=(0,P.useEffectEvent)(t);(0,P.useEffect)(()=>(window.addEventListener(e,r,n),()=>window.removeEventListener(e,r,n)),[e])}function Ia(e,t){if(typeof e==`function`)return e(t);typeof e==`object`&&e&&`current`in e&&(e.current=t)}function La(...e){let t=new Map;return n=>{if(e.forEach(e=>{let r=Ia(e,n);r&&t.set(e,r)}),t.size>0)return()=>{e.forEach(e=>{let n=t.get(e);n&&typeof n==`function`?n():Ia(e,null)}),t.clear()}}}function Ra(...e){return(0,P.useCallback)(La(...e),e)}function za({value:e,defaultValue:t,finalValue:n,onChange:r=()=>{}}){let[i,a]=(0,P.useState)(t===void 0?n:t);return e===void 0?[i,(e,...t)=>{a(e),r?.(e,...t)},!1]:[e,r,!0]}var Ba=[`mouse`,`touch`],Va=10;function Ha(e,t={}){let{threshold:n=400,events:r=Ba,cancelOnMove:i=!1,onStart:a,onFinish:o,onCancel:s}=t,c=(0,P.useRef)(!1),l=(0,P.useRef)(!1),u=(0,P.useRef)(-1),d=(0,P.useRef)(null);return(0,P.useEffect)(()=>()=>window.clearTimeout(u.current),[]),(0,P.useMemo)(()=>{if(typeof e!=`function`)return{};let t=i!==!1,f=i===!0?Va:i===!1?0:i,p=t=>{!Ga(t)&&!Wa(t)||(a&&a(t),d.current=Ua(t),l.current=!0,u.current=window.setTimeout(()=>{e(t),c.current=!0},n))},m=e=>{!Ga(e)&&!Wa(e)||(c.current?o&&o(e):l.current&&s&&s(e),c.current=!1,l.current=!1,d.current=null,u.current!==-1&&(window.clearTimeout(u.current),u.current=-1))},h=e=>{if(!t||!l.current||c.current)return;let n=Ua(e);if(!n||!d.current)return;let r=n.x-d.current.x,i=n.y-d.current.y;Math.sqrt(r*r+i*i)>f&&m(e)},g={};return r.includes(`mouse`)&&(g.onMouseDown=p,g.onMouseUp=m,g.onMouseLeave=m,t&&(g.onMouseMove=h)),r.includes(`touch`)&&(g.onTouchStart=p,g.onTouchEnd=m,g.onTouchCancel=m,t&&(g.onTouchMove=h)),g},[e,n,s,o,a,i,r.join(`,`)])}function Ua(e){if(Wa(e)){let t=e.touches[0]??e.changedTouches[0];return t?{x:t.clientX,y:t.clientY}:null}return{x:e.clientX,y:e.clientY}}function Wa(e){return window.TouchEvent?e.nativeEvent instanceof TouchEvent:`touches`in e.nativeEvent}function Ga(e){return e.nativeEvent instanceof MouseEvent}function Ka(){return`development`}function qa(e){return e?.props?.ref}function Ja(e){let t=P.Children.toArray(e);return t.length!==1||!na(t[0])?null:t[0]}function Ya(e){return e===`auto`||e===`dark`||e===`light`}function Xa({key:e=`mantine-color-scheme-value`}={}){let t;return{get:t=>{if(typeof window>`u`)return t;try{let n=window.localStorage.getItem(e);return Ya(n)?n:t}catch{return t}},set:t=>{try{window.localStorage.setItem(e,t)}catch(e){console.warn(`[@mantine/core] Local storage color scheme manager was unable to save color scheme.`,e)}},subscribe:n=>{t=t=>{t.storageArea===window.localStorage&&t.key===e&&Ya(t.newValue)&&n(t.newValue)},window.addEventListener(`storage`,t)},unsubscribe:()=>{window.removeEventListener(`storage`,t)},clear:()=>{window.localStorage.removeItem(e)}}}function Za({color:e,theme:t,autoContrast:n,colorScheme:r}){return(typeof n==`boolean`?n:t.autoContrast)&&ie({color:e||t.primaryColor,theme:t,colorScheme:r}).isLight?`var(--mantine-color-black)`:`var(--mantine-color-white)`}function Qa(e,t,n){return Za({color:n===`dark`?e.dark:e.light,theme:t,colorScheme:n,autoContrast:!0})}function $a(e,t){let n=e.colors[e.primaryColor];return Ae(n)?e.autoContrast?Qa(n,e,t):`var(--mantine-color-white)`:Za({color:n[re(e,t)],theme:e,autoContrast:null})}function eo(e){let t=document.createElement(`style`);return t.setAttribute(`data-mantine-styles`,`inline`),t.innerHTML=`*, *::before, *::after {transition: none !important;}`,t.setAttribute(`data-mantine-disable-transition`,`true`),e&&t.setAttribute(`nonce`,e),document.head.appendChild(t),()=>document.querySelectorAll(`[data-mantine-disable-transition]`).forEach(e=>e.remove())}function to({keepTransitions:e}={}){let t=(0,P.useRef)(da),n=(0,P.useRef)(-1),r=(0,P.use)(ee),i=(0,P.useRef)(ne()?.());if(!r)throw Error(`[@mantine/core] MantineProvider was not found in tree`);let a=a=>{r.setColorScheme(a),t.current=e?()=>{}:eo(i.current),window.clearTimeout(n.current),n.current=window.setTimeout(()=>{t.current?.()},10)},o=()=>{r.clearColorScheme(),t.current=e?()=>{}:eo(i.current),window.clearTimeout(n.current),n.current=window.setTimeout(()=>{t.current?.()},10)},s=Sa(`light`,{getInitialValueInEffect:!1}),c=r.colorScheme===`auto`?s:r.colorScheme,l=(0,P.useCallback)(()=>a(c===`light`?`dark`:`light`),[a,c]);return(0,P.useEffect)(()=>()=>{t.current?.(),window.clearTimeout(n.current)},[]),{colorScheme:r.colorScheme,setColorScheme:a,clearColorScheme:o,toggleColorScheme:l}}function no(e,t){let n=typeof window<`u`&&`matchMedia`in window&&window.matchMedia(`(prefers-color-scheme: dark)`)?.matches,r=e===`auto`?n?`dark`:`light`:e;t()?.setAttribute(`data-mantine-color-scheme`,r)}function ro({manager:e,defaultColorScheme:t,getRootElement:n,forceColorScheme:r}){let i=(0,P.useRef)(null),[a,o]=(0,P.useState)(()=>e.get(t)),s=r||a,c=(0,P.useCallback)(t=>{r||(no(t,n),o(t),e.set(t))},[e.set,s,r]),l=(0,P.useCallback)(()=>{o(t),no(t,n),e.clear()},[e.clear,t]);return(0,P.useEffect)(()=>(e.subscribe(c),e.unsubscribe),[e.subscribe,e.unsubscribe]),Ee(()=>{no(e.get(t),n)},[]),(0,P.useEffect)(()=>{if(r)return no(r,n),()=>{};r===void 0&&no(a,n),typeof window<`u`&&`matchMedia`in window&&(i.current=window.matchMedia(`(prefers-color-scheme: dark)`));let e=e=>{a===`auto`&&no(e.matches?`dark`:`light`,n)};return i.current?.addEventListener(`change`,e),()=>i.current?.removeEventListener(`change`,e)},[a,r]),{colorScheme:s,setColorScheme:c,clearColorScheme:l}}function io(e,t={getInitialValueInEffect:!0}){let n=Sa(e,t),{colorScheme:r}=to();return r===`auto`?n:r}function ao(e){return Object.entries(e).map(([e,t])=>`${e}: ${t};`).join(``)}function oo(e,t){let n=t?[t]:[`:root`,`:host`],r=ao(e.variables),i=r?`${n.join(`, `)}{${r}}`:``,a=ao(e.dark),o=ao(e.light),s=e=>n.map(t=>t===`:host`?`${t}([data-mantine-color-scheme="${e}"])`:`${t}[data-mantine-color-scheme="${e}"]`).join(`, `);return`${i}\n\n${a?`${s(`dark`)}{${a}}`:``}\n\n${o?`${s(`light`)}{${o}}`:``}`}function so({theme:e,color:t,colorScheme:n,name:r=t,withColorValues:i=!0}){if(!e.colors[t])return{};if(n===`light`){let n=re(e,`light`),a={[`--mantine-color-${r}-text`]:`var(--mantine-color-${r}-filled)`,[`--mantine-color-${r}-filled`]:`var(--mantine-color-${r}-${n})`,[`--mantine-color-${r}-filled-hover`]:`var(--mantine-color-${r}-${n===9?8:n+1})`,[`--mantine-color-${r}-light`]:`var(--mantine-color-${r}-1)`,[`--mantine-color-${r}-light-hover`]:`var(--mantine-color-${r}-2)`,[`--mantine-color-${r}-light-color`]:`var(--mantine-color-${r}-9)`,[`--mantine-color-${r}-outline`]:`var(--mantine-color-${r}-${n})`,[`--mantine-color-${r}-outline-hover`]:j(e.colors[t][n],.05)};return i?{[`--mantine-color-${r}-0`]:e.colors[t][0],[`--mantine-color-${r}-1`]:e.colors[t][1],[`--mantine-color-${r}-2`]:e.colors[t][2],[`--mantine-color-${r}-3`]:e.colors[t][3],[`--mantine-color-${r}-4`]:e.colors[t][4],[`--mantine-color-${r}-5`]:e.colors[t][5],[`--mantine-color-${r}-6`]:e.colors[t][6],[`--mantine-color-${r}-7`]:e.colors[t][7],[`--mantine-color-${r}-8`]:e.colors[t][8],[`--mantine-color-${r}-9`]:e.colors[t][9],...a}:a}let a=re(e,`dark`),o={[`--mantine-color-${r}-text`]:`var(--mantine-color-${r}-4)`,[`--mantine-color-${r}-filled`]:`var(--mantine-color-${r}-${a})`,[`--mantine-color-${r}-filled-hover`]:`var(--mantine-color-${r}-${a===9?8:a+1})`,[`--mantine-color-${r}-light`]:C(e.colors[t][9],.5),[`--mantine-color-${r}-light-hover`]:C(e.colors[t][9],.3),[`--mantine-color-${r}-light-color`]:`var(--mantine-color-${r}-0)`,[`--mantine-color-${r}-outline`]:`var(--mantine-color-${r}-${Math.max(a-4,0)})`,[`--mantine-color-${r}-outline-hover`]:j(e.colors[t][Math.max(a-4,0)],.05)};return i?{[`--mantine-color-${r}-0`]:e.colors[t][0],[`--mantine-color-${r}-1`]:e.colors[t][1],[`--mantine-color-${r}-2`]:e.colors[t][2],[`--mantine-color-${r}-3`]:e.colors[t][3],[`--mantine-color-${r}-4`]:e.colors[t][4],[`--mantine-color-${r}-5`]:e.colors[t][5],[`--mantine-color-${r}-6`]:e.colors[t][6],[`--mantine-color-${r}-7`]:e.colors[t][7],[`--mantine-color-${r}-8`]:e.colors[t][8],[`--mantine-color-${r}-9`]:e.colors[t][9],...o}:o}function co(e,t,n){ke(t).forEach(r=>Object.assign(e,{[`--mantine-${n}-${r}`]:t[r]}))}var lo=e=>{let t=re(e,`light`),n=e.defaultRadius in e.radius?e.radius[e.defaultRadius]:M(e.defaultRadius),r={variables:{"--mantine-z-index-app":`100`,"--mantine-z-index-modal":`200`,"--mantine-z-index-popover":`300`,"--mantine-z-index-overlay":`400`,"--mantine-z-index-max":`9999`,"--mantine-scale":e.scale.toString(),"--mantine-cursor-type":e.cursorType,"--mantine-webkit-font-smoothing":e.fontSmoothing?`antialiased`:`unset`,"--mantine-moz-font-smoothing":e.fontSmoothing?`grayscale`:`unset`,"--mantine-color-white":e.white,"--mantine-color-black":e.black,"--mantine-line-height":e.lineHeights.md,"--mantine-font-family":e.fontFamily,"--mantine-font-family-monospace":e.fontFamilyMonospace,"--mantine-font-family-headings":e.headings.fontFamily,"--mantine-heading-font-weight":e.headings.fontWeight,"--mantine-heading-text-wrap":e.headings.textWrap,"--mantine-radius-default":n,"--mantine-primary-color-filled":`var(--mantine-color-${e.primaryColor}-filled)`,"--mantine-primary-color-filled-hover":`var(--mantine-color-${e.primaryColor}-filled-hover)`,"--mantine-primary-color-light":`var(--mantine-color-${e.primaryColor}-light)`,"--mantine-primary-color-light-hover":`var(--mantine-color-${e.primaryColor}-light-hover)`,"--mantine-primary-color-light-color":`var(--mantine-color-${e.primaryColor}-light-color)`},light:{"--mantine-color-scheme":`light`,"--mantine-primary-color-contrast":$a(e,`light`),"--mantine-color-bright":`var(--mantine-color-black)`,"--mantine-color-text":e.black,"--mantine-color-body":e.white,"--mantine-color-error":`var(--mantine-color-red-6)`,"--mantine-color-success":`var(--mantine-color-teal-8)`,"--mantine-color-placeholder":`var(--mantine-color-gray-5)`,"--mantine-color-anchor":`var(--mantine-color-${e.primaryColor}-${t})`,"--mantine-color-default":`var(--mantine-color-white)`,"--mantine-color-default-hover":`var(--mantine-color-gray-0)`,"--mantine-color-default-color":`var(--mantine-color-black)`,"--mantine-color-default-border":`var(--mantine-color-gray-4)`,"--mantine-color-dimmed":`var(--mantine-color-gray-6)`,"--mantine-color-disabled":`var(--mantine-color-gray-2)`,"--mantine-color-disabled-color":`var(--mantine-color-gray-5)`,"--mantine-color-disabled-border":`var(--mantine-color-gray-3)`},dark:{"--mantine-color-scheme":`dark`,"--mantine-primary-color-contrast":$a(e,`dark`),"--mantine-color-bright":`var(--mantine-color-white)`,"--mantine-color-text":`var(--mantine-color-dark-0)`,"--mantine-color-body":`var(--mantine-color-dark-7)`,"--mantine-color-error":`var(--mantine-color-red-8)`,"--mantine-color-success":`var(--mantine-color-teal-8)`,"--mantine-color-placeholder":`var(--mantine-color-dark-3)`,"--mantine-color-anchor":`var(--mantine-color-${e.primaryColor}-4)`,"--mantine-color-default":`var(--mantine-color-dark-6)`,"--mantine-color-default-hover":`var(--mantine-color-dark-5)`,"--mantine-color-default-color":`var(--mantine-color-white)`,"--mantine-color-default-border":`var(--mantine-color-dark-4)`,"--mantine-color-dimmed":`var(--mantine-color-dark-2)`,"--mantine-color-disabled":`var(--mantine-color-dark-6)`,"--mantine-color-disabled-color":`var(--mantine-color-dark-3)`,"--mantine-color-disabled-border":`var(--mantine-color-dark-4)`}};co(r.variables,e.breakpoints,`breakpoint`),co(r.variables,e.spacing,`spacing`),co(r.variables,e.fontSizes,`font-size`),co(r.variables,e.lineHeights,`line-height`),co(r.variables,e.shadows,`shadow`),co(r.variables,e.radius,`radius`),co(r.variables,e.fontWeights,`font-weight`),e.colors[e.primaryColor].forEach((t,n)=>{r.variables[`--mantine-primary-color-${n}`]=`var(--mantine-color-${e.primaryColor}-${n})`}),ke(e.colors).forEach(t=>{let n=e.colors[t];if(Ae(n)){Object.assign(r.light,so({theme:e,name:n.name,color:n.light,colorScheme:`light`,withColorValues:!0})),Object.assign(r.dark,so({theme:e,name:n.name,color:n.dark,colorScheme:`dark`,withColorValues:!0})),r.light[`--mantine-color-${n.name}-contrast`]=Qa(n,e,`light`),r.dark[`--mantine-color-${n.name}-contrast`]=Qa(n,e,`dark`);return}n.forEach((e,n)=>{r.variables[`--mantine-color-${t}-${n}`]=e}),Object.assign(r.light,so({theme:e,color:t,colorScheme:`light`,withColorValues:!1})),Object.assign(r.dark,so({theme:e,color:t,colorScheme:`dark`,withColorValues:!1}))});let i=e.headings.sizes;return ke(i).forEach(t=>{r.variables[`--mantine-${t}-font-size`]=i[t].fontSize,r.variables[`--mantine-${t}-line-height`]=i[t].lineHeight,r.variables[`--mantine-${t}-font-weight`]=i[t].fontWeight||e.headings.fontWeight}),r};function uo(){let e=x(),t=ne(),n=ke(e.breakpoints).reduce((t,n)=>{let r=e.breakpoints[n].includes(`px`),i=ta(e.breakpoints[n]);return`${t}@media (max-width: ${r?`${i-.1}px`:Re(i-.1)}) {.mantine-visible-from-${n} {display: none !important;}}@media (min-width: ${r?`${i}px`:Re(i)}) {.mantine-hidden-from-${n} {display: none !important;}}`},``);return(0,F.jsx)(`style`,{"data-mantine-styles":`classes`,nonce:t?.(),dangerouslySetInnerHTML:{__html:n}})}function fo({theme:e,generator:t}){let n=lo(e),r=t?.(e);return r?he(n,r):n}var po=lo(w);function mo(e){let t={variables:{},light:{},dark:{}};return ke(e.variables).forEach(n=>{po.variables[n]!==e.variables[n]&&(t.variables[n]=e.variables[n])}),ke(e.light).forEach(n=>{po.light[n]!==e.light[n]&&(t.light[n]=e.light[n])}),ke(e.dark).forEach(n=>{po.dark[n]!==e.dark[n]&&(t.dark[n]=e.dark[n])}),t}function ho(e){return oo({variables:{},dark:{"--mantine-color-scheme":`dark`},light:{"--mantine-color-scheme":`light`}},e)}function go({cssVariablesSelector:e,deduplicateCssVariables:t}){let n=x(),r=ne(),i=fo({theme:n,generator:h()}),a=(e===void 0||e===`:root`||e===`:host`)&&t,o=oo(a?mo(i):i,e);return o?(0,F.jsx)(`style`,{"data-mantine-styles":!0,nonce:r?.(),dangerouslySetInnerHTML:{__html:`${o}${a?``:ho(e)}`}}):null}go.displayName=`@mantine/CssVariables`;function _o({respectReducedMotion:e,getRootElement:t}){Ee(()=>{e&&t()?.setAttribute(`data-respect-reduced-motion`,`true`)},[e])}function vo({theme:e,children:t,getStyleNonce:n,withStaticClasses:r=!0,withGlobalClasses:i=!0,deduplicateCssVariables:a=!0,withCssVariables:o=!0,cssVariablesSelector:s,classNamesPrefix:c=`mantine`,colorSchemeManager:l=Xa(),defaultColorScheme:u=`light`,getRootElement:d=()=>document.documentElement,cssVariablesResolver:f,forceColorScheme:p,stylesTransform:m,env:h,deduplicateInlineStyles:g=!1}){let{colorScheme:_,setColorScheme:y,clearColorScheme:b}=ro({defaultColorScheme:u,forceColorScheme:p,manager:l,getRootElement:d});return _o({respectReducedMotion:e?.respectReducedMotion||!1,getRootElement:d}),(0,F.jsx)(ee,{value:{colorScheme:_,setColorScheme:y,clearColorScheme:b,getRootElement:d,classNamesPrefix:c,getStyleNonce:n,cssVariablesResolver:f,cssVariablesSelector:s??`:root`,withStaticClasses:r,stylesTransform:m,env:h,deduplicateInlineStyles:g},children:(0,F.jsxs)(v,{theme:e,children:[o&&(0,F.jsx)(go,{cssVariablesSelector:s,deduplicateCssVariables:a}),i&&(0,F.jsx)(uo,{}),t]})})}vo.displayName=`@mantine/core/MantineProvider`;function yo(e){return e}function bo(e,t){return Array.isArray(e)?[...e].reduce((e,n)=>({...e,...bo(n,t)}),{}):typeof e==`function`?e(t):e??{}}var xo=(0,P.createContext)({dir:`ltr`,toggleDirection:()=>{},setDirection:()=>{}});function So(){return(0,P.use)(xo)}var[Co,wo]=ra(`ScrollArea.Root component was not found in tree`);function To(e,t){let n=(0,P.useEffectEvent)(t);Ee(()=>{let t=0;if(e){let r=new ResizeObserver(()=>{cancelAnimationFrame(t),t=window.requestAnimationFrame(n)});return r.observe(e),()=>{window.cancelAnimationFrame(t),r.unobserve(e)}}},[e])}function Eo(e){let{style:t,...n}=e,r=wo(),[i,a]=(0,P.useState)(0),[o,s]=(0,P.useState)(0),c=!!(i&&o);return To(r.scrollbarX,()=>{let e=r.scrollbarX?.offsetHeight||0;r.onCornerHeightChange(e),s(e)}),To(r.scrollbarY,()=>{let e=r.scrollbarY?.offsetWidth||0;r.onCornerWidthChange(e),a(e)}),c?(0,F.jsx)(`div`,{...n,style:{...t,width:i,height:o}}):null}function Do(e){let t=wo(),n=!!(t.scrollbarX&&t.scrollbarY);return t.type!==`scroll`&&n?(0,F.jsx)(Eo,{...e}):null}var Oo={scrollHideDelay:1e3,type:`hover`};function ko(e){let{type:t,scrollHideDelay:n,scrollbars:r,getStyles:i,ref:a,...o}=O(`ScrollAreaRoot`,Oo,e),[s,c]=(0,P.useState)(null),[l,u]=(0,P.useState)(null),[d,f]=(0,P.useState)(null),[p,m]=(0,P.useState)(null),[h,g]=(0,P.useState)(null),[_,v]=(0,P.useState)(0),[y,b]=(0,P.useState)(0),[x,S]=(0,P.useState)(!1),[C,w]=(0,P.useState)(!1),T=Ra(a,c);return(0,F.jsx)(Co,{value:{type:t,scrollHideDelay:n,scrollArea:s,viewport:l,onViewportChange:u,content:d,onContentChange:f,scrollbarX:p,onScrollbarXChange:m,scrollbarXEnabled:x,onScrollbarXEnabledChange:S,scrollbarY:h,onScrollbarYChange:g,scrollbarYEnabled:C,onScrollbarYEnabledChange:w,onCornerWidthChange:v,onCornerHeightChange:b,getStyles:i},children:(0,F.jsx)(N,{...o,ref:T,__vars:{"--sa-corner-width":r===`xy`?`${_}px`:`0px`,"--sa-corner-height":r===`xy`?`${y}px`:`0px`}})})}ko.displayName=`@mantine/core/ScrollAreaRoot`;function Ao(e,t){let n=e/t;return Number.isNaN(n)?0:n}function jo(e){let t=Ao(e.viewport,e.content),n=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,r=(e.scrollbar.size-n)*t;return Math.max(r,18)}function Mo(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];let r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}function No(e,[t,n]){return Math.min(n,Math.max(t,e))}function Po(e,t,n=`ltr`){let r=jo(t),i=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,a=t.scrollbar.size-i,o=t.content-t.viewport,s=a-r,c=No(e,n===`ltr`?[0,o]:[o*-1,0]);return Mo([0,o],[0,s])(c)}function Fo(e,t,n,r=`ltr`){let i=jo(n),a=i/2,o=t||a,s=i-o,c=n.scrollbar.paddingStart+o,l=n.scrollbar.size-n.scrollbar.paddingEnd-s,u=n.content-n.viewport,d=r===`ltr`?[0,u]:[u*-1,0];return Mo([c,l],d)(e)}function Io(e,t){return e>0&&e{e?.(r),(n===!1||!r.defaultPrevented)&&t?.(r)}}var[zo,Bo]=ra(`ScrollAreaScrollbar was not found in tree`);function Vo(e){let{sizes:t,hasThumb:n,onThumbChange:r,onThumbPointerUp:i,onThumbPointerDown:a,onThumbPositionChange:o,onDragScroll:s,onWheelScroll:c,onResize:l,ref:u,...d}=e,f=wo(),[p,m]=(0,P.useState)(null),h=Ra(u,m),g=(0,P.useRef)(null),_=(0,P.useRef)(``),{viewport:v}=f,y=t.content-t.viewport,b=(0,P.useEffectEvent)(c),x=va(o),S=ya(l,10),C=e=>{if(g.current){let t=e.clientX-g.current.left,n=e.clientY-g.current.top;s({x:t,y:n})}};return(0,P.useEffect)(()=>{let e=e=>{let t=e.target;p?.contains(t)&&b(e,y)};return document.addEventListener(`wheel`,e,{passive:!1}),()=>document.removeEventListener(`wheel`,e,{passive:!1})},[v,p,y]),(0,P.useEffect)(x,[t,x]),To(p,S),To(f.content,S),(0,F.jsx)(zo,{value:{scrollbar:p,hasThumb:n,onThumbChange:va(r),onThumbPointerUp:va(i),onThumbPositionChange:x,onThumbPointerDown:va(a)},children:(0,F.jsx)(`div`,{...d,ref:h,"data-mantine-scrollbar":!0,style:{position:`absolute`,...d.style},onPointerDown:Ro(e.onPointerDown,e=>{e.preventDefault(),e.button===0&&(e.target.setPointerCapture(e.pointerId),g.current=p.getBoundingClientRect(),_.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect=`none`,C(e))}),onPointerMove:Ro(e.onPointerMove,C),onPointerUp:Ro(e.onPointerUp,e=>{let t=e.target;t.hasPointerCapture(e.pointerId)&&(e.preventDefault(),t.releasePointerCapture(e.pointerId))}),onLostPointerCapture:()=>{document.body.style.webkitUserSelect=_.current,g.current=null}})})}var Ho=e=>{let{sizes:t,onSizesChange:n,style:r,ref:i,...a}=e,o=wo(),[s,c]=(0,P.useState)(),l=(0,P.useRef)(null),u=Ra(i,l,o.onScrollbarXChange);return(0,P.useEffect)(()=>{l.current&&c(getComputedStyle(l.current))},[l]),(0,F.jsx)(Vo,{"data-orientation":`horizontal`,...a,ref:u,sizes:t,style:{...r,"--sa-thumb-width":`${jo(t)}px`},onThumbPointerDown:t=>e.onThumbPointerDown(t.x),onDragScroll:t=>e.onDragScroll(t.x),onWheelScroll:(t,n)=>{if(o.viewport){let r=o.viewport.scrollLeft+t.deltaX;e.onWheelScroll(r),Io(r,n)&&t.preventDefault()}},onResize:()=>{l.current&&o.viewport&&s&&n({content:o.viewport.scrollWidth,viewport:o.viewport.offsetWidth,scrollbar:{size:l.current.clientWidth,paddingStart:Lo(s.paddingLeft),paddingEnd:Lo(s.paddingRight)}})}})};Ho.displayName=`@mantine/core/ScrollAreaScrollbarX`;function Uo(e){let{sizes:t,onSizesChange:n,style:r,ref:i,...a}=e,o=wo(),[s,c]=(0,P.useState)(),l=(0,P.useRef)(null),u=Ra(i,l,o.onScrollbarYChange);return(0,P.useEffect)(()=>{l.current&&c(window.getComputedStyle(l.current))},[]),(0,F.jsx)(Vo,{...a,"data-orientation":`vertical`,ref:u,sizes:t,style:{"--sa-thumb-height":`${jo(t)}px`,...r},onThumbPointerDown:t=>e.onThumbPointerDown(t.y),onDragScroll:t=>e.onDragScroll(t.y),onWheelScroll:(t,n)=>{if(o.viewport){let r=o.viewport.scrollTop+t.deltaY;e.onWheelScroll(r),Io(r,n)&&t.preventDefault()}},onResize:()=>{l.current&&o.viewport&&s&&n({content:o.viewport.scrollHeight,viewport:o.viewport.offsetHeight,scrollbar:{size:l.current.clientHeight,paddingStart:Lo(s.paddingTop),paddingEnd:Lo(s.paddingBottom)}})}})}Uo.displayName=`@mantine/core/ScrollAreaScrollbarY`;function Wo(e){let{orientation:t=`vertical`,...n}=e,{dir:r}=So(),i=wo(),a=(0,P.useRef)(null),o=(0,P.useRef)(0),[s,c]=(0,P.useState)({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),l=Ao(s.viewport,s.content),u={...n,sizes:s,onSizesChange:c,hasThumb:l>0&&l<1,onThumbChange:e=>{a.current=e},onThumbPointerUp:()=>{o.current=0},onThumbPointerDown:e=>{o.current=e}},d=(e,t)=>Fo(e,o.current,s,t);return t===`horizontal`?(0,F.jsx)(Ho,{...u,onThumbPositionChange:()=>{if(i.viewport&&a.current){let e=i.viewport.scrollLeft,t=Po(e,s,r);a.current.style.transform=`translate3d(${t}px, 0, 0)`}},onWheelScroll:e=>{i.viewport&&(i.viewport.scrollLeft=e)},onDragScroll:e=>{i.viewport&&(i.viewport.scrollLeft=d(e,r))}}):t===`vertical`?(0,F.jsx)(Uo,{...u,onThumbPositionChange:()=>{if(i.viewport&&a.current){let e=i.viewport.scrollTop,t=Po(e,s);s.scrollbar.size===0?a.current.style.setProperty(`--thumb-opacity`,`0`):a.current.style.setProperty(`--thumb-opacity`,`1`),a.current.style.transform=`translate3d(0, ${t}px, 0)`}},onWheelScroll:e=>{i.viewport&&(i.viewport.scrollTop=e)},onDragScroll:e=>{i.viewport&&(i.viewport.scrollTop=d(e))}}):null}Wo.displayName=`@mantine/core/ScrollAreaScrollbarVisible`;function Go(e){let t=wo(),{forceMount:n,...r}=e,[i,a]=(0,P.useState)(!1),o=e.orientation===`horizontal`,s=ya(()=>{if(t.viewport){let e=t.viewport.offsetWidth{let{scrollArea:e}=r,t=0;if(e){let n=()=>{window.clearTimeout(t),a(!0)},i=()=>{t=window.setTimeout(()=>a(!1),r.scrollHideDelay)};return e.addEventListener(`pointerenter`,n),e.addEventListener(`pointerleave`,i),()=>{window.clearTimeout(t),e.removeEventListener(`pointerenter`,n),e.removeEventListener(`pointerleave`,i)}}},[r.scrollArea,r.scrollHideDelay]),t||i?(0,F.jsx)(Go,{"data-state":i?`visible`:`hidden`,...n}):null}Ko.displayName=`@mantine/core/ScrollAreaScrollbarHover`;function qo(e){let{forceMount:t,...n}=e,r=wo(),i=e.orientation===`horizontal`,[a,o]=(0,P.useState)(`hidden`),s=ya(()=>o(`idle`),100);return(0,P.useEffect)(()=>{if(a===`idle`){let e=window.setTimeout(()=>o(`hidden`),r.scrollHideDelay);return()=>window.clearTimeout(e)}},[a,r.scrollHideDelay]),(0,P.useEffect)(()=>{let{viewport:e}=r,t=i?`scrollLeft`:`scrollTop`;if(e){let n=e[t],r=()=>{let r=e[t];n!==r&&(o(`scrolling`),s()),n=r};return e.addEventListener(`scroll`,r),()=>e.removeEventListener(`scroll`,r)}},[r.viewport,i,s]),t||a!==`hidden`?(0,F.jsx)(Wo,{"data-state":a===`hidden`?`hidden`:`visible`,...n,onPointerEnter:Ro(e.onPointerEnter,()=>o(`interacting`)),onPointerLeave:Ro(e.onPointerLeave,()=>o(`idle`))}):null}function Jo(e){let{forceMount:t,...n}=e,r=wo(),{onScrollbarXEnabledChange:i,onScrollbarYEnabledChange:a}=r,o=e.orientation===`horizontal`;return(0,P.useEffect)(()=>(o?i(!0):a(!0),()=>{o?i(!1):a(!1)}),[o,i,a]),r.type===`hover`?(0,F.jsx)(Ko,{...n,forceMount:t}):r.type===`scroll`?(0,F.jsx)(qo,{...n,forceMount:t}):r.type===`auto`?(0,F.jsx)(Go,{...n,forceMount:t}):r.type===`always`?(0,F.jsx)(Wo,{...n}):null}Jo.displayName=`@mantine/core/ScrollAreaScrollbar`;function Yo(e,t=()=>{}){let n={left:e.scrollLeft,top:e.scrollTop},r=0;return(function i(){let a={left:e.scrollLeft,top:e.scrollTop},o=n.left!==a.left,s=n.top!==a.top;(o||s)&&t(),n=a,r=window.requestAnimationFrame(i)})(),()=>window.cancelAnimationFrame(r)}function Xo(e){let{style:t,ref:n,...r}=e,i=wo(),a=Bo(),{onThumbPositionChange:o}=a,s=Ra(n,a.onThumbChange),c=(0,P.useRef)(void 0),l=ya(()=>{c.current&&=(c.current(),void 0)},100);return(0,P.useEffect)(()=>{let{viewport:e}=i;if(e){let t=()=>{if(l(),!c.current){let t=Yo(e,o);c.current=t,o()}};return o(),e.addEventListener(`scroll`,t),()=>e.removeEventListener(`scroll`,t)}},[i.viewport,l,o]),(0,F.jsx)(`div`,{"data-state":a.hasThumb?`visible`:`hidden`,...r,ref:s,style:{width:`var(--sa-thumb-width)`,height:`var(--sa-thumb-height)`,...t},onPointerDownCapture:Ro(e.onPointerDownCapture,e=>{let t=e.target.getBoundingClientRect(),n=e.clientX-t.left,r=e.clientY-t.top;a.onThumbPointerDown({x:n,y:r})}),onPointerUp:Ro(e.onPointerUp,a.onThumbPointerUp)})}Xo.displayName=`@mantine/core/ScrollAreaThumb`;function Zo(e){let{forceMount:t,...n}=e,r=Bo();return t||r.hasThumb?(0,F.jsx)(Xo,{...n}):null}Zo.displayName=`@mantine/core/ScrollAreaThumb`;function Qo({children:e,style:t,ref:n,onWheel:r,...i}){let a=wo(),o=Ra(n,a.onViewportChange),s=e=>{if(r?.(e),a.scrollbarXEnabled&&a.viewport&&e.shiftKey){let{scrollTop:t,scrollHeight:n,clientHeight:r,scrollWidth:i,clientWidth:o}=a.viewport,s=t<1,c=t>=n-r-1;i>o&&(s||c)&&e.stopPropagation()}};return(0,F.jsx)(N,{...i,ref:o,onWheel:s,"data-scrollarea-viewport":!0,style:{overflowX:a.scrollbarXEnabled?`scroll`:`hidden`,overflowY:a.scrollbarYEnabled?`scroll`:`hidden`,...t},children:(0,F.jsx)(`div`,{...a.getStyles(`content`),ref:a.onContentChange,children:e})})}Qo.displayName=`@mantine/core/ScrollAreaViewport`;var $o={root:`m_d57069b5`,content:`m_b1336c6`,viewport:`m_c0783ff9`,viewportInner:`m_f8f631dd`,scrollbar:`m_c44ba933`,thumb:`m_d8b5e363`,corner:`m_21657268`};function es(){return typeof window<`u`}function ts(e){return is(e)?(e.nodeName||``).toLowerCase():`#document`}function ns(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function rs(e){return((is(e)?e.ownerDocument:e.document)||window.document)?.documentElement}function is(e){return es()?e instanceof Node||e instanceof ns(e).Node:!1}function as(e){return es()?e instanceof Element||e instanceof ns(e).Element:!1}function os(e){return es()?e instanceof HTMLElement||e instanceof ns(e).HTMLElement:!1}function ss(e){return!es()||typeof ShadowRoot>`u`?!1:e instanceof ShadowRoot||e instanceof ns(e).ShadowRoot}function cs(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=ys(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&i!==`inline`&&i!==`contents`}function ls(e){return/^(table|td|th)$/.test(ts(e))}function us(e){try{if(e.matches(`:popover-open`))return!0}catch{}try{return e.matches(`:modal`)}catch{return!1}}var ds=/transform|translate|scale|rotate|perspective|filter/,fs=/paint|layout|strict|content/,ps=e=>!!e&&e!==`none`,ms;function hs(e){let t=as(e)?ys(e):e;return ps(t.transform)||ps(t.translate)||ps(t.scale)||ps(t.rotate)||ps(t.perspective)||!_s()&&(ps(t.backdropFilter)||ps(t.filter))||ds.test(t.willChange||``)||fs.test(t.contain||``)}function gs(e){let t=xs(e);for(;os(t)&&!vs(t);){if(hs(t))return t;if(us(t))return null;t=xs(t)}return null}function _s(){return ms??=typeof CSS<`u`&&CSS.supports&&CSS.supports(`-webkit-backdrop-filter`,`none`),ms}function vs(e){return/^(html|body|#document)$/.test(ts(e))}function ys(e){return ns(e).getComputedStyle(e)}function bs(e){return as(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function xs(e){if(ts(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||ss(e)&&e.host||rs(e);return ss(t)?t.host:t}function Ss(e){let t=xs(e);return vs(t)?(e.ownerDocument||e).body:os(t)&&cs(t)?t:Ss(t)}function Cs(e,t,n){t===void 0&&(t=[]),n===void 0&&(n=!0);let r=Ss(e),i=r===e.ownerDocument?.body,a=ns(r);if(i){let e=ws(a);return t.concat(a,a.visualViewport||[],cs(r)?r:[],e&&n?Cs(e):[])}return t.concat(r,Cs(r,[],n))}function ws(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}var Ts=[`top`,`right`,`bottom`,`left`],Es=Math.min,Ds=Math.max,Os=Math.round,ks=Math.floor,As=e=>({x:e,y:e}),js={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function Ms(e,t,n){return Ds(e,Es(t,n))}function Ns(e,t){return typeof e==`function`?e(t):e}function Ps(e){return e.split(`-`)[0]}function Fs(e){return e.split(`-`)[1]}function Is(e){return e===`x`?`y`:`x`}function Ls(e){return e===`y`?`height`:`width`}function Rs(e){let t=e[0];return t===`t`||t===`b`?`y`:`x`}function zs(e){return Is(Rs(e))}function Bs(e,t,n){n===void 0&&(n=!1);let r=Fs(e),i=zs(e),a=Ls(i),o=i===`x`?r===(n?`end`:`start`)?`right`:`left`:r===`start`?`bottom`:`top`;return t.reference[a]>t.floating[a]&&(o=Ys(o)),[o,Ys(o)]}function Vs(e){let t=Ys(e);return[Hs(e),t,Hs(t)]}function Hs(e){return e.includes(`start`)?e.replace(`start`,`end`):e.replace(`end`,`start`)}var Us=[`left`,`right`],Ws=[`right`,`left`],Gs=[`top`,`bottom`],Ks=[`bottom`,`top`];function qs(e,t,n){switch(e){case`top`:case`bottom`:return n?t?Ws:Us:t?Us:Ws;case`left`:case`right`:return t?Gs:Ks;default:return[]}}function Js(e,t,n,r){let i=Fs(e),a=qs(Ps(e),n===`start`,r);return i&&(a=a.map(e=>e+`-`+i),t&&(a=a.concat(a.map(Hs)))),a}function Ys(e){let t=Ps(e);return js[t]+e.slice(t.length)}function Xs(e){return{top:e.top??0,right:e.right??0,bottom:e.bottom??0,left:e.left??0}}function Zs(e){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:Xs(e)}function Qs(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function $s(){let e=navigator.userAgentData;return e!=null&&e.platform?e.platform:navigator.platform}function ec(){let e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(e=>{let{brand:t,version:n}=e;return t+`/`+n}).join(` `):navigator.userAgent}function tc(){return/apple/i.test(navigator.vendor)}function nc(){return $s().toLowerCase().startsWith(`mac`)&&!navigator.maxTouchPoints}function rc(){return ec().includes(`jsdom/`)}var ic=`data-floating-ui-focusable`,ac=`input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])`;function oc(e){let t=e.activeElement;for(;((n=t)==null||(n=n.shadowRoot)==null?void 0:n.activeElement)!=null;){var n;t=t.shadowRoot.activeElement}return t}function sc(e,t){if(!e||!t)return!1;let n=t.getRootNode==null?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&ss(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function cc(e){return`composedPath`in e?e.composedPath()[0]:e.target}function lc(e,t){if(t==null)return!1;if(`composedPath`in e)return e.composedPath().includes(t);let n=e;return n.target!=null&&t.contains(n.target)}function uc(e){return e.matches(`html,body`)}function dc(e){return e?.ownerDocument||document}function fc(e){return os(e)&&e.matches(ac)}function pc(e){if(!e||rc())return!0;try{return e.matches(`:focus-visible`)}catch{return!0}}function mc(e){return e?e.hasAttribute(ic)?e:e.querySelector(`[data-floating-ui-focusable]`)||e:null}function hc(e,t,n){return n===void 0&&(n=!0),e.filter(e=>e.parentId===t&&(!n||e.context?.open)).flatMap(t=>[t,...hc(e,t.id,n)])}function gc(e){return`nativeEvent`in e}function _c(e,t){let n=[`mouse`,`pen`];return t||n.push(``,void 0),n.includes(e)}var vc=typeof document<`u`?P.useLayoutEffect:function(){},yc={...P};function bc(e){let t=P.useRef(e);return vc(()=>{t.current=e}),t}var xc=yc.useInsertionEffect||(e=>e());function Sc(e){let t=P.useRef(()=>{});return xc(()=>{t.current=e}),P.useCallback(function(){var e=[...arguments];return t.current==null?void 0:t.current(...e)},[])}function Cc(e,t,n){let{reference:r,floating:i}=e,a=Rs(t),o=zs(t),s=Ls(o),c=Ps(t),l=a===`y`,u=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,f=r[s]/2-i[s]/2,p;switch(c){case`top`:p={x:u,y:r.y-i.height};break;case`bottom`:p={x:u,y:r.y+r.height};break;case`right`:p={x:r.x+r.width,y:d};break;case`left`:p={x:r.x-i.width,y:d};break;default:p={x:r.x,y:r.y}}let m=Fs(t);return m&&(p[o]+=f*(m===`end`?1:-1)*(n&&l?-1:1)),p}async function wc(e,t){t===void 0&&(t={});let{x:n,y:r,platform:i,rects:a,elements:o,strategy:s}=e,{boundary:c=`clippingAncestors`,rootBoundary:l=`viewport`,elementContext:u=`floating`,altBoundary:d=!1,padding:f=0}=Ns(t,e),p=Zs(f),m=o[d?u===`floating`?`reference`:`floating`:u],h=Qs(await i.getClippingRect({element:await(i.isElement==null?void 0:i.isElement(m))??!0?m:m.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(o.floating)),boundary:c,rootBoundary:l,strategy:s})),g=u===`floating`?{x:n,y:r,width:a.floating.width,height:a.floating.height}:a.reference,_=await(i.getOffsetParent==null?void 0:i.getOffsetParent(o.floating)),v=await(i.isElement==null?void 0:i.isElement(_))&&await(i.getScale==null?void 0:i.getScale(_))||{x:1,y:1},y=Qs(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:g,offsetParent:_,strategy:s}):g);return{top:(h.top-y.top+p.top)/v.y,bottom:(y.bottom-h.bottom+p.bottom)/v.y,left:(h.left-y.left+p.left)/v.x,right:(y.right-h.right+p.right)/v.x}}var Tc=50,Ec=async(e,t,n)=>{let{placement:r=`bottom`,strategy:i=`absolute`,middleware:a=[],platform:o}=n,s=o.detectOverflow?o:{...o,detectOverflow:wc},c=await(o.isRTL==null?void 0:o.isRTL(t)),l=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=Cc(l,r,c),f=r,p=0,m={};for(let n=0;n({name:`arrow`,options:e,async fn(t){let{x:n,y:r,placement:i,rects:a,platform:o,elements:s,middlewareData:c}=t,{element:l,padding:u=0}=Ns(e,t)||{};if(l==null)return{};let d=Zs(u),f={x:n,y:r},p=zs(i),m=Ls(p),h=await o.getDimensions(l),g=p===`y`,_=g?`top`:`left`,v=g?`bottom`:`right`,y=g?`clientHeight`:`clientWidth`,b=a.reference[m]+a.reference[p]-f[p]-a.floating[m],x=f[p]-a.reference[p],S=await(o.getOffsetParent==null?void 0:o.getOffsetParent(l)),C=S?S[y]:0;(!C||!await(o.isElement==null?void 0:o.isElement(S)))&&(C=s.floating[y]||a.floating[m]);let w=b/2-x/2,T=C/2-h[m]/2-1,E=Es(d[_],T),D=Es(d[v],T),O=C-h[m]-D,k=C/2-h[m]/2+w,ee=Ms(E,k,O),te=!c.arrow&&Fs(i)!=null&&k!==ee&&a.reference[m]/2-(ke<=0)){let e=(i.flip?.index||0)+1,t=S[e];if(t&&(u!==`alignment`||_===Rs(t)||T.every(e=>Rs(e.placement)!==_||e.overflows[0]>0)))return{data:{index:e,overflows:T},reset:{placement:t}};let n=T.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0]?.placement;if(!n)switch(f){case`bestFit`:{let e=T.filter(e=>{if(x){let t=Rs(e.placement);return t===_||t===`y`}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]?.[0];e&&(n=e);break}case`initialPlacement`:n=o}if(r!==n)return{reset:{placement:n}}}return{}}}};function kc(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Ac(e){return Ts.some(t=>e[t]>=0)}var jc=function(e){return e===void 0&&(e={}),{name:`hide`,options:e,async fn(t){let{rects:n,platform:r}=t,{strategy:i=`referenceHidden`,...a}=Ns(e,t);switch(i){case`referenceHidden`:{let e=kc(await r.detectOverflow(t,{...a,elementContext:`reference`}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:Ac(e)}}}case`escaped`:{let e=kc(await r.detectOverflow(t,{...a,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:Ac(e)}}}default:return{}}}}};function Mc(e){let t=Es(...e.map(e=>e.left)),n=Es(...e.map(e=>e.top)),r=Ds(...e.map(e=>e.right)),i=Ds(...e.map(e=>e.bottom));return{x:t,y:n,width:r-t,height:i-n}}function Nc(e){let t=e.slice().sort((e,t)=>e.y-t.y),n=[],r=null;for(let e=0;er.height/2?n.push([i]):n[n.length-1].push(i),r=i}return n.map(e=>Qs(Mc(e)))}var Pc=function(e){return e===void 0&&(e={}),{name:`inline`,options:e,async fn(t){let{placement:n,elements:r,rects:i,platform:a,strategy:o}=t,{padding:s=2,x:c,y:l}=Ns(e,t),u=Array.from(await(a.getClientRects==null?void 0:a.getClientRects(r.reference))||[]);if(!u.length)return{};let d=Nc(u),f=Qs(Mc(u)),p=Zs(s);function m(){if(d.length===2&&(d[0].left>d[1].right||d[1].left>d[0].right)&&c!=null&&l!=null)return d.find(e=>c>e.left-p.left&&ce.top-p.top&&l=2){if(Rs(n)===`y`){let e=d[0],t=d[d.length-1],r=Ps(n)===`top`,i=e.top,a=t.bottom,o=r?e.left:t.left;return Qs({x:o,y:i,width:(r?e.right:t.right)-o,height:a-i})}let e=Ps(n)===`left`,t=Ds(...d.map(e=>e.right)),r=Es(...d.map(e=>e.left)),i=d.filter(n=>e?n.left===r:n.right===t),a=i[0].top,o=i[i.length-1].bottom;return Qs({x:r,y:a,width:t-r,height:o-a})}return f}let h=await a.getElementRects({reference:{getBoundingClientRect:m},floating:r.floating,strategy:o});return i.reference.x!==h.reference.x||i.reference.y!==h.reference.y||i.reference.width!==h.reference.width||i.reference.height!==h.reference.height?{reset:{rects:h}}:{}}}},Fc=new Set([`left`,`top`]);async function Ic(e,t){let{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=Ps(n),s=Fs(n),c=Rs(n)===`y`,l=Fc.has(o)?-1:1,u=a&&c?-1:1,d=Ns(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:m}=typeof d==`number`?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof m==`number`&&(p=s===`end`?m*-1:m),c?{x:p*u,y:f*l}:{x:f*l,y:p*u}}var Lc=function(e){return e===void 0&&(e=0),{name:`offset`,options:e,async fn(t){var n;let{x:r,y:i,placement:a,middlewareData:o}=t,s=await Ic(t,e);return a===o.offset?.placement&&(n=o.arrow)!=null&&n.alignmentOffset?{}:{x:r+s.x,y:i+s.y,data:{...s,placement:a}}}}},Rc=function(e){return e===void 0&&(e={}),{name:`shift`,options:e,async fn(t){let{x:n,y:r,placement:i,platform:a}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:c={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=Ns(e,t),u={x:n,y:r},d=await a.detectOverflow(t,l),f=Rs(i),p=Is(f),m=u[p],h=u[f],g=(e,t)=>Ms(t+d[e===`y`?`top`:`left`],t,t-d[e===`y`?`bottom`:`right`]);o&&(m=g(p,m)),s&&(h=g(f,h));let _=c.fn({...t,[p]:m,[f]:h});return{..._,data:{x:_.x-n,y:_.y-r,enabled:{[p]:o,[f]:s}}}}}},zc=function(e){return e===void 0&&(e={}),{options:e,fn(t){let{x:n,y:r,placement:i,rects:a,middlewareData:o}=t,{offset:s=0,mainAxis:c=!0,crossAxis:l=!0}=Ns(e,t),u={x:n,y:r},d=Rs(i),f=Is(d),p=u[f],m=u[d],h=Ns(s,t),g=typeof h==`number`?{mainAxis:h,crossAxis:0}:{mainAxis:h.mainAxis??0,crossAxis:h.crossAxis??0};if(c){let e=f===`y`?`height`:`width`,t=a.reference[f]-a.floating[e]+g.mainAxis,n=a.reference[f]+a.reference[e]-g.mainAxis;pn&&(p=n)}if(l){let e=f===`y`?`width`:`height`,t=Fc.has(Ps(i)),n=a.reference[d]-a.floating[e]+(t&&o.offset?.[d]||0)+(t?0:g.crossAxis),r=a.reference[d]+a.reference[e]+(t?0:o.offset?.[d]||0)-(t?g.crossAxis:0);mr&&(m=r)}return{[f]:p,[d]:m}}}},Bc=function(e){return e===void 0&&(e={}),{name:`size`,options:e,async fn(t){let{placement:n,rects:r,platform:i,elements:a}=t,{apply:o=()=>{},...s}=Ns(e,t),c=await i.detectOverflow(t,s),l=Ps(n),u=Fs(n),d=Rs(n)===`y`,{width:f,height:p}=r.floating,m,h;l===`top`||l===`bottom`?(m=l,h=u===(await(i.isRTL==null?void 0:i.isRTL(a.floating))?`start`:`end`)?`left`:`right`):(h=l,m=u===`end`?`top`:`bottom`);let g=p-c.top-c.bottom,_=f-c.left-c.right,v=Es(p-c[m],g),y=Es(f-c[h],_),b=t.middlewareData.shift,x=!b,S=v,C=y;b!=null&&b.enabled.x&&(C=_),b!=null&&b.enabled.y&&(S=g),x&&!u&&(d?C=f-2*Ds(c.left,c.right):S=p-2*Ds(c.top,c.bottom)),await o({...t,availableWidth:C,availableHeight:S});let w=await i.getDimensions(a.floating);return f!==w.width||p!==w.height?{reset:{rects:!0}}:{}}}};function Vc(e){let t=ys(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=os(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=Os(n)!==a||Os(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function Hc(e){return as(e)?e:e.contextElement}function Uc(e){let t=Hc(e);if(!os(t))return As(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:a}=Vc(t),o=(a?Os(n.width):n.width)/r,s=(a?Os(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}var Wc=As(0);function Gc(e){let t=ns(e);return!_s()||!t.visualViewport?Wc:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Kc(e,t,n){return t===void 0&&(t=!1),!!n&&t&&n===ns(e)}function qc(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=Hc(e),o=As(1);t&&(r?as(r)&&(o=Uc(r)):o=Uc(e));let s=Kc(a,n,r)?Gc(a):As(0),c=(i.left+s.x)/o.x,l=(i.top+s.y)/o.y,u=i.width/o.x,d=i.height/o.y;if(a&&r){let e=ns(a),t=as(r)?ns(r):r,n=e,i=ws(n);for(;i&&t!==n;){let e=Uc(i),t=i.getBoundingClientRect(),r=ys(i),a=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,l*=e.y,u*=e.x,d*=e.y,c+=a,l+=o,n=ns(i),i=ws(n)}}return Qs({width:u,height:d,x:c,y:l})}function Jc(e,t){let n=bs(e).scrollLeft;return t?t.left+n:qc(rs(e)).left+n}function Yc(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-Jc(e,n),y:n.top+t.scrollTop}}function Xc(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a=i===`fixed`,o=rs(r),s=t?us(t.floating):!1;if(r===o||s&&a)return n;let c={scrollLeft:0,scrollTop:0},l=As(1),u=As(0),d=os(r);if((d||!a)&&((ts(r)!==`body`||cs(o))&&(c=bs(r)),d)){let e=qc(r);l=Uc(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}let f=o&&!d&&!a?Yc(o,c):As(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x+f.x,y:n.y*l.y-c.scrollTop*l.y+u.y+f.y}}function Zc(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function Qc(e){let t=bs(e),n=e.ownerDocument.body,r=Ds(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),i=Ds(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight),a=-t.scrollLeft+Jc(e),o=-t.scrollTop;return ys(n).direction===`rtl`&&(a+=Ds(e.clientWidth,n.clientWidth)-r),{width:r,height:i,x:a,y:o}}var $c=25;function el(e,t,n){n===void 0&&(n=`viewport`);let r=n===`layoutViewport`,i=ns(e),a=rs(e),o=i.visualViewport,s=a.clientWidth,c=a.clientHeight,l=0,u=0;if(o){let e=!_s()||t===`fixed`;r?e||(l=-o.offsetLeft,u=-o.offsetTop):(s=o.width,c=o.height,e&&(l=o.offsetLeft,u=o.offsetTop))}if(Jc(a)<=0){let e=a.ownerDocument,t=e.body,n=getComputedStyle(t),r=e.compatMode===`CSS1Compat`&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,i=Math.abs(a.clientWidth-t.clientWidth-r),o=getComputedStyle(a).scrollbarGutter===`stable both-edges`?i/2:i;o<=$c&&(s-=o)}return{width:s,height:c,x:l,y:u}}function tl(e,t){let n=qc(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=Uc(e);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}function nl(e,t,n){let r;if(t===`viewport`||t===`layoutViewport`)r=el(e,n,t);else if(t===`document`)r=Qc(rs(e));else if(as(t))r=tl(t,n);else{let n=Gc(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return Qs(r)}function rl(e,t){let n=t.get(e);if(n)return n;let r=Cs(e,[],!1).filter(e=>as(e)&&ts(e)!==`body`),i=null,a=ys(e).position===`fixed`,o=a?xs(e):e;for(;as(o)&&!vs(o);){let e=ys(o),t=hs(o),n=i?i.position:a?`fixed`:``;!t&&(n===`fixed`||n===`absolute`&&e.position===`static`)?r=r.filter(e=>e!==o):i=e,o=xs(o)}return t.set(e,r),r}function il(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[...n===`clippingAncestors`?us(t)?[]:rl(t,this._c):[].concat(n),r],o=nl(t,a[0],i),s=o.top,c=o.right,l=o.bottom,u=o.left;for(let e=1;e{s(!1,1e-7)},1e3)}y=!1}try{r=new IntersectionObserver(b,{...v,root:a.ownerDocument})}catch{r=new IntersectionObserver(b,v)}r.observe(e)}let c=ns(e),l=()=>s(n);return c.addEventListener(`resize`,l),s(!0),()=>{c.removeEventListener(`resize`,l),o()}}function hl(e,t,n,r){r===void 0&&(r={});let{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver==`function`,layoutShift:s=typeof IntersectionObserver==`function`,animationFrame:c=!1}=r,l=Hc(e),u=i||a?[...l?Cs(l):[],...t?Cs(t):[]]:[];u.forEach(e=>{i&&e.addEventListener(`scroll`,n),a&&e.addEventListener(`resize`,n)});let d=l&&s?ml(l,n,a):null,f=-1,p=null;o&&(p=new ResizeObserver(e=>{let[r]=e;r&&r.target===l&&p&&t&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var e;(e=p)==null||e.observe(t)})),n()}),l&&!c&&p.observe(l),t&&p.observe(t));let m,h=c?qc(e):null;c&&g();function g(){let t=qc(e);h&&!pl(h,t)&&n(),h=t,m=requestAnimationFrame(g)}return n(),()=>{var e;u.forEach(e=>{i&&e.removeEventListener(`scroll`,n),a&&e.removeEventListener(`resize`,n)}),d?.(),(e=p)==null||e.disconnect(),p=null,c&&cancelAnimationFrame(m)}}var gl=Lc,_l=Rc,vl=Oc,yl=Bc,bl=jc,xl=Dc,Sl=Pc,Cl=zc,wl=(e,t,n)=>{let r=new Map,i=n??{},a={...fl,...i.platform,_c:r};return Ec(e,t,{...i,platform:a})},Tl=typeof document<`u`?P.useLayoutEffect:function(){};function El(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e==`function`&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e==`object`){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!El(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){let n=i[r];if(!(n===`_owner`&&e.$$typeof)&&!El(e[n],t[n]))return!1}return!0}return e!==e&&t!==t}function Dl(e){return typeof window>`u`?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Ol(e,t){let n=Dl(e);return Math.round(t*n)/n}function kl(e){let t=P.useRef(e);return Tl(()=>{t.current=e}),t}function Al(e){e===void 0&&(e={});let{placement:t=`bottom`,strategy:n=`absolute`,middleware:r=[],platform:i,elements:{reference:a,floating:o}={},transform:s=!0,whileElementsMounted:c,open:l}=e,[u,d]=P.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=P.useState(r);El(f,r)||p(r);let[m,h]=P.useState(null),[g,_]=P.useState(null),v=P.useCallback(e=>{e!==S.current&&(S.current=e,h(e))},[]),y=P.useCallback(e=>{e!==C.current&&(C.current=e,_(e))},[]),b=a||m,x=o||g,S=P.useRef(null),C=P.useRef(null),w=P.useRef(u),T=c!=null,E=kl(c),D=kl(i),O=kl(l),k=P.useCallback(()=>{if(!S.current||!C.current)return;let e={placement:t,strategy:n,middleware:f};D.current&&(e.platform=D.current),wl(S.current,C.current,e).then(e=>{let t={...e,isPositioned:O.current!==!1};ee.current&&!El(w.current,t)&&(w.current=t,pi.flushSync(()=>{d(t)}))})},[f,t,n,D,O]);Tl(()=>{l===!1&&w.current.isPositioned&&(w.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[l]);let ee=P.useRef(!1);Tl(()=>(ee.current=!0,()=>{ee.current=!1}),[]),Tl(()=>{if(b&&(S.current=b),x&&(C.current=x),b&&x){if(E.current)return E.current(b,x,k);k()}},[b,x,k,E,T]);let te=P.useMemo(()=>({reference:S,floating:C,setReference:v,setFloating:y}),[v,y]),A=P.useMemo(()=>({reference:b,floating:x}),[b,x]),ne=P.useMemo(()=>{let e={position:n,left:0,top:0};if(!A.floating)return e;let t=Ol(A.floating,u.x),r=Ol(A.floating,u.y);return s?{...e,transform:`translate(`+t+`px, `+r+`px)`,...Dl(A.floating)>=1.5&&{willChange:`transform`}}:{position:n,left:t,top:r}},[n,s,A.floating,u.x,u.y]);return P.useMemo(()=>({...u,update:k,refs:te,elements:A,floatingStyles:ne}),[u,k,te,A,ne])}var jl=e=>{function t(e){return{}.hasOwnProperty.call(e,`current`)}return{name:`arrow`,options:e,fn(n){let{element:r,padding:i}=typeof e==`function`?e(n):e;return r&&t(r)?r.current==null?{}:xl({element:r.current,padding:i}).fn(n):r?xl({element:r,padding:i}).fn(n):{}}}},Ml=(e,t)=>{let n=gl(e);return{name:n.name,fn:n.fn,options:[e,t]}},Nl=(e,t)=>{let n=_l(e);return{name:n.name,fn:n.fn,options:[e,t]}},Pl=(e,t)=>({fn:Cl(e).fn,options:[e,t]}),Fl=(e,t)=>{let n=vl(e);return{name:n.name,fn:n.fn,options:[e,t]}},Il=(e,t)=>{let n=yl(e);return{name:n.name,fn:n.fn,options:[e,t]}},Ll=(e,t)=>{let n=bl(e);return{name:n.name,fn:n.fn,options:[e,t]}},Rl=(e,t)=>{let n=Sl(e);return{name:n.name,fn:n.fn,options:[e,t]}},zl=(e,t)=>{let n=jl(e);return{name:n.name,fn:n.fn,options:[e,t]}};function Bl(e){let t=P.useRef(void 0),n=P.useCallback(t=>{let n=e.map(e=>{if(e!=null){if(typeof e==`function`){let n=e,r=n(t);return typeof r==`function`?r:()=>{n(null)}}return e.current=t,()=>{e.current=null}}});return()=>{n.forEach(e=>e?.())}},e);return P.useMemo(()=>e.every(e=>e==null)?null:e=>{t.current&&=(t.current(),void 0),e!=null&&(t.current=n(e))},e)}var Vl=`data-floating-ui-focusable`,Hl=`active`,Ul=`selected`,Wl=`ArrowLeft`,Gl=`ArrowRight`,Kl=`ArrowUp`,ql=`ArrowDown`,Jl=[Wl,Gl],Yl=[Kl,ql];[...Jl,...Yl];var Xl={...P},Zl=!1,Ql=0,$l=()=>`floating-ui-`+Math.random().toString(36).slice(2,6)+Ql++;function eu(){let[e,t]=P.useState(()=>Zl?$l():void 0);return vc(()=>{e??t($l())},[]),P.useEffect(()=>{Zl=!0},[]),e}var tu=Xl.useId||eu;function nu(){let e=new Map;return{emit(t,n){var r;(r=e.get(t))==null||r.forEach(e=>e(n))},on(t,n){e.has(t)||e.set(t,new Set),e.get(t).add(n)},off(t,n){var r;(r=e.get(t))==null||r.delete(n)}}}var ru=P.createContext(null),iu=P.createContext(null),au=()=>P.useContext(ru)?.id||null,ou=()=>P.useContext(iu);function su(e){return`data-floating-ui-`+e}function cu(e){e.current!==-1&&(clearTimeout(e.current),e.current=-1)}var lu=su(`safe-polygon`);function uu(e,t,n){if(n&&!_c(n))return 0;if(typeof e==`number`)return e;if(typeof e==`function`){let n=e();return typeof n==`number`?n:n?.[t]}return e?.[t]}function du(e){return typeof e==`function`?e():e}function fu(e,t){t===void 0&&(t={});let{open:n,onOpenChange:r,dataRef:i,events:a,elements:o}=e,{enabled:s=!0,delay:c=0,handleClose:l=null,mouseOnly:u=!1,restMs:d=0,move:f=!0}=t,p=ou(),m=au(),h=bc(l),g=bc(c),_=bc(n),v=bc(d),y=P.useRef(),b=P.useRef(-1),x=P.useRef(),S=P.useRef(-1),C=P.useRef(!0),w=P.useRef(!1),T=P.useRef(()=>{}),E=P.useRef(!1),D=Sc(()=>{let e=i.current.openEvent?.type;return e?.includes(`mouse`)&&e!==`mousedown`});P.useEffect(()=>{if(!s)return;function e(e){let{open:t}=e;t||(cu(b),cu(S),C.current=!0,E.current=!1)}return a.on(`openchange`,e),()=>{a.off(`openchange`,e)}},[s,a]),P.useEffect(()=>{if(!s||!h.current||!n)return;function e(e){D()&&r(!1,e,`hover`)}let t=dc(o.floating).documentElement;return t.addEventListener(`mouseleave`,e),()=>{t.removeEventListener(`mouseleave`,e)}},[o.floating,n,r,s,h,D]);let O=P.useCallback(function(e,t,n){t===void 0&&(t=!0),n===void 0&&(n=`hover`);let i=uu(g.current,`close`,y.current);i&&!x.current?(cu(b),b.current=window.setTimeout(()=>r(!1,e,n),i)):t&&(cu(b),r(!1,e,n))},[g,r]),k=Sc(()=>{T.current(),x.current=void 0}),ee=Sc(()=>{if(w.current){let e=dc(o.floating).body;e.style.pointerEvents=``,e.removeAttribute(lu),w.current=!1}}),te=Sc(()=>i.current.openEvent?[`click`,`mousedown`].includes(i.current.openEvent.type):!1);P.useEffect(()=>{if(!s)return;function e(e){if(cu(b),C.current=!1,u&&!_c(y.current)||du(v.current)>0&&!uu(g.current,`open`))return;let t=uu(g.current,`open`,y.current);t?b.current=window.setTimeout(()=>{_.current||r(!0,e,`hover`)},t):n||r(!0,e,`hover`)}function t(e){if(te()){ee();return}T.current();let t=dc(o.floating);if(cu(S),E.current=!1,h.current&&i.current.floatingContext){n||cu(b),x.current=h.current({...i.current.floatingContext,tree:p,x:e.clientX,y:e.clientY,onClose(){ee(),k(),te()||O(e,!0,`safe-polygon`)}});let r=x.current;t.addEventListener(`mousemove`,r),T.current=()=>{t.removeEventListener(`mousemove`,r)};return}(y.current!==`touch`||!sc(o.floating,e.relatedTarget))&&O(e)}function a(e){te()||i.current.floatingContext&&(h.current==null||h.current({...i.current.floatingContext,tree:p,x:e.clientX,y:e.clientY,onClose(){ee(),k(),te()||O(e)}})(e))}function c(){cu(b)}function l(e){te()||O(e,!1)}if(as(o.domReference)){let r=o.domReference,i=o.floating;return n&&r.addEventListener(`mouseleave`,a),f&&r.addEventListener(`mousemove`,e,{once:!0}),r.addEventListener(`mouseenter`,e),r.addEventListener(`mouseleave`,t),i&&(i.addEventListener(`mouseleave`,a),i.addEventListener(`mouseenter`,c),i.addEventListener(`mouseleave`,l)),()=>{n&&r.removeEventListener(`mouseleave`,a),f&&r.removeEventListener(`mousemove`,e),r.removeEventListener(`mouseenter`,e),r.removeEventListener(`mouseleave`,t),i&&(i.removeEventListener(`mouseleave`,a),i.removeEventListener(`mouseenter`,c),i.removeEventListener(`mouseleave`,l))}}},[o,s,e,u,f,O,k,ee,r,n,_,p,g,h,i,te,v]),vc(()=>{var e;if(s&&n&&(e=h.current)!=null&&(e=e.__options)!=null&&e.blockPointerEvents&&D()){w.current=!0;let e=o.floating;if(as(o.domReference)&&e){var t;let n=dc(o.floating).body;n.setAttribute(lu,``);let r=o.domReference,i=p==null||(t=p.nodesRef.current.find(e=>e.id===m))==null||(t=t.context)==null?void 0:t.elements.floating;return i&&(i.style.pointerEvents=``),n.style.pointerEvents=`none`,r.style.pointerEvents=`auto`,e.style.pointerEvents=`auto`,()=>{n.style.pointerEvents=``,r.style.pointerEvents=``,e.style.pointerEvents=``}}}},[s,n,m,o,p,h,D]),vc(()=>{n||(y.current=void 0,E.current=!1,k(),ee())},[n,k,ee]),P.useEffect(()=>()=>{k(),cu(b),cu(S),ee()},[s,o.domReference,k,ee]);let A=P.useMemo(()=>{function e(e){y.current=e.pointerType}return{onPointerDown:e,onPointerEnter:e,onMouseMove(e){let{nativeEvent:t}=e;function i(){!C.current&&!_.current&&r(!0,t,`hover`)}u&&!_c(y.current)||n||du(v.current)===0||E.current&&e.movementX**2+e.movementY**2<2||(cu(S),y.current===`touch`?i():(E.current=!0,S.current=window.setTimeout(i,du(v.current))))}}},[u,r,n,_,v]);return P.useMemo(()=>s?{reference:A}:{},[s,A])}var pu=()=>{},mu=P.createContext({delay:0,initialDelay:0,timeoutMs:0,currentId:null,setCurrentId:pu,setState:pu,isInstantPhase:!1}),hu=()=>P.useContext(mu);function gu(e){let{children:t,delay:n,timeoutMs:r=0}=e,[i,a]=P.useReducer((e,t)=>({...e,...t}),{delay:n,timeoutMs:r,initialDelay:n,currentId:null,isInstantPhase:!1}),o=P.useRef(null),s=P.useCallback(e=>{a({currentId:e})},[]);return vc(()=>{i.currentId?o.current===null?o.current=i.currentId:i.isInstantPhase||a({isInstantPhase:!0}):(i.isInstantPhase&&a({isInstantPhase:!1}),o.current=null)},[i.currentId,i.isInstantPhase]),(0,F.jsx)(mu.Provider,{value:P.useMemo(()=>({...i,setState:a,setCurrentId:s}),[i,s]),children:t})}function _u(e,t){t===void 0&&(t={});let{open:n,onOpenChange:r,floatingId:i}=e,{id:a,enabled:o=!0}=t,s=a??i,c=hu(),{currentId:l,setCurrentId:u,initialDelay:d,setState:f,timeoutMs:p}=c;return vc(()=>{o&&l&&(f({delay:{open:1,close:uu(d,`close`)}}),l!==s&&r(!1))},[o,s,r,f,l,d]),vc(()=>{function e(){r(!1),f({delay:d,currentId:null})}if(o&&l&&!n&&l===s){if(p){let t=window.setTimeout(e,p);return()=>{clearTimeout(t)}}e()}},[o,n,f,l,s,r,d,p]),vc(()=>{o&&(u===pu||!n||u(s))},[o,n,u,s]),c}function vu(e,t){if(!e||!t)return!1;let n=t.getRootNode==null?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&ss(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function yu(e){return`composedPath`in e?e.composedPath()[0]:e.target}var bu={pointerdown:`onPointerDown`,mousedown:`onMouseDown`,click:`onClick`},xu={pointerdown:`onPointerDownCapture`,mousedown:`onMouseDownCapture`,click:`onClickCapture`},Su=e=>({escapeKey:typeof e==`boolean`?e:e?.escapeKey??!1,outsidePress:typeof e==`boolean`?e:e?.outsidePress??!0});function Cu(e,t){t===void 0&&(t={});let{open:n,onOpenChange:r,elements:i,dataRef:a}=e,{enabled:o=!0,escapeKey:s=!0,outsidePress:c=!0,outsidePressEvent:l=`pointerdown`,referencePress:u=!1,referencePressEvent:d=`pointerdown`,ancestorScroll:f=!1,bubbles:p,capture:m}=t,h=ou(),g=Sc(typeof c==`function`?c:()=>!1),_=typeof c==`function`?g:c,v=P.useRef(!1),{escapeKey:y,outsidePress:b}=Su(p),{escapeKey:x,outsidePress:S}=Su(m),C=P.useRef(!1),w=Sc(e=>{if(!n||!o||!s||e.key!==`Escape`||C.current)return;let t=a.current.floatingContext?.nodeId,i=h?hc(h.nodesRef.current,t):[];if(!y&&(e.stopPropagation(),i.length>0)){let e=!0;if(i.forEach(t=>{var n;if((n=t.context)!=null&&n.open&&!t.context.dataRef.current.__escapeKeyBubbles){e=!1;return}}),!e)return}r(!1,gc(e)?e.nativeEvent:e,`escape-key`)}),T=Sc(e=>{var t;let n=()=>{var t;w(e),(t=cc(e))==null||t.removeEventListener(`keydown`,n)};(t=cc(e))==null||t.addEventListener(`keydown`,n)}),E=Sc(e=>{let t=a.current.insideReactTree;a.current.insideReactTree=!1;let n=v.current;if(v.current=!1,l===`click`&&n||t||typeof _==`function`&&!_(e))return;let o=cc(e),s=`[`+su(`inert`)+`]`,c=dc(i.floating).querySelectorAll(s),u=as(o)?o:null;for(;u&&!vs(u);){let e=xs(u);if(vs(e)||!as(e))break;u=e}if(c.length&&as(o)&&!uc(o)&&!sc(o,i.floating)&&Array.from(c).every(e=>!sc(u,e)))return;if(os(o)&&k){let t=vs(o),n=ys(o),r=/auto|scroll/,i=t||r.test(n.overflowX),a=t||r.test(n.overflowY),s=i&&o.clientWidth>0&&o.scrollWidth>o.clientWidth,c=a&&o.clientHeight>0&&o.scrollHeight>o.clientHeight,l=n.direction===`rtl`,u=c&&(l?e.offsetX<=o.offsetWidth-o.clientWidth:e.offsetX>o.clientWidth),d=s&&e.offsetY>o.clientHeight;if(u||d)return}let d=a.current.floatingContext?.nodeId,f=h&&hc(h.nodesRef.current,d).some(t=>lc(e,t.context?.elements.floating));if(lc(e,i.floating)||lc(e,i.domReference)||f)return;let p=h?hc(h.nodesRef.current,d):[];if(p.length>0){let e=!0;if(p.forEach(t=>{var n;if((n=t.context)!=null&&n.open&&!t.context.dataRef.current.__outsidePressBubbles){e=!1;return}}),!e)return}r(!1,e,`outside-press`)}),D=Sc(e=>{var t;let n=()=>{var t;E(e),(t=cc(e))==null||t.removeEventListener(l,n)};(t=cc(e))==null||t.addEventListener(l,n)});P.useEffect(()=>{if(!n||!o)return;a.current.__escapeKeyBubbles=y,a.current.__outsidePressBubbles=b;let e=-1;function t(e){r(!1,e,`ancestor-scroll`)}function c(){window.clearTimeout(e),C.current=!0}function u(){e=window.setTimeout(()=>{C.current=!1},_s()?5:0)}let d=dc(i.floating);s&&(d.addEventListener(`keydown`,x?T:w,x),d.addEventListener(`compositionstart`,c),d.addEventListener(`compositionend`,u)),_&&d.addEventListener(l,S?D:E,S);let p=[];return f&&(as(i.domReference)&&(p=Cs(i.domReference)),as(i.floating)&&(p=p.concat(Cs(i.floating))),!as(i.reference)&&i.reference&&i.reference.contextElement&&(p=p.concat(Cs(i.reference.contextElement)))),p=p.filter(e=>e!==d.defaultView?.visualViewport),p.forEach(e=>{e.addEventListener(`scroll`,t)}),()=>{s&&(d.removeEventListener(`keydown`,x?T:w,x),d.removeEventListener(`compositionstart`,c),d.removeEventListener(`compositionend`,u)),_&&d.removeEventListener(l,S?D:E,S),p.forEach(e=>{e.removeEventListener(`scroll`,t)}),window.clearTimeout(e)}},[a,i,s,_,l,n,r,f,o,y,b,w,x,T,E,S,D]),P.useEffect(()=>{a.current.insideReactTree=!1},[a,_,l]);let O=P.useMemo(()=>({onKeyDown:w,...u&&{[bu[d]]:e=>{r(!1,e.nativeEvent,`reference-press`)},...d!==`click`&&{onClick(e){r(!1,e.nativeEvent,`reference-press`)}}}}),[w,r,u,d]),k=P.useMemo(()=>{function e(e){e.button===0&&(v.current=!0)}return{onKeyDown:w,onMouseDown:e,onMouseUp:e,[xu[l]]:()=>{a.current.insideReactTree=!0}}},[w,l,a]);return P.useMemo(()=>o?{reference:O,floating:k}:{},[o,O,k])}function wu(e){let{open:t=!1,onOpenChange:n,elements:r}=e,i=tu(),a=P.useRef({}),[o]=P.useState(()=>nu()),s=au()!=null,[c,l]=P.useState(r.reference),u=Sc((e,t,r)=>{a.current.openEvent=e?t:void 0,o.emit(`openchange`,{open:e,event:t,reason:r,nested:s}),n?.(e,t,r)}),d=P.useMemo(()=>({setPositionReference:l}),[]),f=P.useMemo(()=>({reference:c||r.reference||null,floating:r.floating||null,domReference:r.reference}),[c,r.reference,r.floating]);return P.useMemo(()=>({dataRef:a,open:t,onOpenChange:u,elements:f,events:o,floatingId:i,refs:d}),[t,u,f,o,i,d])}function Tu(e){let{elements:t,...n}=e===void 0?{}:e,{nodeId:r}=n,i=wu({...n,elements:{reference:t?.reference??null,floating:t?.floating??null}}),a=n.rootContext||i,o=a.elements,[s,c]=P.useState(null),[l,u]=P.useState(null),d=o?.domReference||s,f=P.useRef(null),p=ou();vc(()=>{d&&(f.current=d)},[d]);let m=Al({...n,elements:{...o,...l&&{reference:l}}}),h=P.useCallback(e=>{let t=as(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),getClientRects:()=>e.getClientRects(),contextElement:e}:e;u(t),m.refs.setReference(t)},[m.refs]),g=P.useCallback(e=>{(as(e)||e===null)&&(f.current=e,c(e)),(as(m.refs.reference.current)||m.refs.reference.current===null||e!==null&&!as(e))&&m.refs.setReference(e)},[m.refs]),_=P.useMemo(()=>({...m.refs,setReference:g,setPositionReference:h,domReference:f}),[m.refs,g,h]),v=P.useMemo(()=>({...m.elements,domReference:d}),[m.elements,d]),y=P.useMemo(()=>({...m,...a,refs:_,elements:v,nodeId:r}),[m,_,v,r,a]);return vc(()=>{a.dataRef.current.floatingContext=y;let e=p?.nodesRef.current.find(e=>e.id===r);e&&(e.context=y)}),P.useMemo(()=>({...m,context:y,refs:_,elements:v}),[m,_,v,y])}function Eu(){return nc()&&tc()}function Du(e,t){t===void 0&&(t={});let{open:n,onOpenChange:r,events:i,dataRef:a,elements:o}=e,{enabled:s=!0,visibleOnly:c=!0}=t,l=P.useRef(!1),u=P.useRef(-1),d=P.useRef(!0);P.useEffect(()=>{if(!s)return;let e=ns(o.domReference);function t(){!n&&os(o.domReference)&&o.domReference===oc(dc(o.domReference))&&(l.current=!0)}function r(){d.current=!0}function i(){d.current=!1}return e.addEventListener(`blur`,t),Eu()&&(e.addEventListener(`keydown`,r,!0),e.addEventListener(`pointerdown`,i,!0)),()=>{e.removeEventListener(`blur`,t),Eu()&&(e.removeEventListener(`keydown`,r,!0),e.removeEventListener(`pointerdown`,i,!0))}},[o.domReference,n,s]),P.useEffect(()=>{if(!s)return;function e(e){let{reason:t}=e;(t===`reference-press`||t===`escape-key`)&&(l.current=!0)}return i.on(`openchange`,e),()=>{i.off(`openchange`,e)}},[i,s]),P.useEffect(()=>()=>{cu(u)},[]);let f=P.useMemo(()=>({onMouseLeave(){l.current=!1},onFocus(e){if(l.current)return;let t=cc(e.nativeEvent);if(c&&as(t)){if(Eu()&&!e.relatedTarget){if(!d.current&&!fc(t))return}else if(!pc(t))return}r(!0,e.nativeEvent,`focus`)},onBlur(e){l.current=!1;let t=e.relatedTarget,n=e.nativeEvent,i=as(t)&&t.hasAttribute(su(`focus-guard`))&&t.getAttribute(`data-type`)===`outside`;u.current=window.setTimeout(()=>{let e=oc(o.domReference?o.domReference.ownerDocument:document);!t&&e===o.domReference||sc(a.current.floatingContext?.refs.floating.current,e)||sc(o.domReference,e)||i||r(!1,n,`focus`)})}}),[a,o.domReference,r,c]);return P.useMemo(()=>s?{reference:f}:{},[s,f])}function Ou(e,t,n){let r=new Map,i=n===`item`,a=e;if(i&&e){let{[Hl]:t,[Ul]:n,...r}=e;a=r}return{...n===`floating`&&{tabIndex:-1,[Vl]:``},...a,...t.map(t=>{let r=t?t[n]:null;return typeof r==`function`?e?r(e):null:r}).concat(e).reduce((e,t)=>(t&&Object.entries(t).forEach(t=>{let[n,a]=t;if(!(i&&[Hl,Ul].includes(n)))if(n.indexOf(`on`)===0){if(r.has(n)||r.set(n,[]),typeof a==`function`){var o;(o=r.get(n))==null||o.push(a),e[n]=function(){var e=[...arguments];return r.get(n)?.map(t=>t(...e)).find(e=>e!==void 0)}}}else e[n]=a}),e),{})}}function ku(e){e===void 0&&(e=[]);let t=e.map(e=>e?.reference),n=e.map(e=>e?.floating),r=e.map(e=>e?.item),i=P.useCallback(t=>Ou(t,e,`reference`),t),a=P.useCallback(t=>Ou(t,e,`floating`),n),o=P.useCallback(t=>Ou(t,e,`item`),r);return P.useMemo(()=>({getReferenceProps:i,getFloatingProps:a,getItemProps:o}),[i,a,o])}var Au=new Map([[`select`,`listbox`],[`combobox`,`listbox`],[`label`,!1]]);function ju(e,t){t===void 0&&(t={});let{open:n,elements:r,floatingId:i}=e,{enabled:a=!0,role:o=`dialog`}=t,s=tu(),c=r.domReference?.id||s,l=P.useMemo(()=>mc(r.floating)?.id||i,[r.floating,i]),u=Au.get(o)??o,d=au()!=null,f=P.useMemo(()=>u===`tooltip`||o===`label`?{[`aria-`+(o===`label`?`labelledby`:`describedby`)]:n?l:void 0}:{"aria-expanded":n?`true`:`false`,"aria-haspopup":u===`alertdialog`?`dialog`:u,"aria-controls":n?l:void 0,...u===`listbox`&&{role:`combobox`},...u===`menu`&&{id:c},...u===`menu`&&d&&{role:`menuitem`},...o===`select`&&{"aria-autocomplete":`none`},...o===`combobox`&&{"aria-autocomplete":`list`}},[u,l,d,n,c,o]),p=P.useMemo(()=>{let e={id:l,...u&&{role:u}};return u===`tooltip`||o===`label`?e:{...e,...u===`menu`&&{"aria-labelledby":c}}},[u,l,c,o]),m=P.useCallback(e=>{let{active:t,selected:n}=e,r={role:`option`,...t&&{id:l+`-fui-option`}};switch(o){case`select`:case`combobox`:return{...r,"aria-selected":n}}return{}},[l,o]);return P.useMemo(()=>a?{reference:f,floating:p,item:m}:{},[a,f,p,m])}function Mu(e,t,n){return n===void 0&&(n=!0),e.filter(e=>e.parentId===t&&(!n||e.context?.open)).flatMap(t=>[t,...Mu(e,t.id,n)])}function Nu(e,t){let[n,r]=e,i=!1,a=t.length;for(let e=0,o=a-1;e=r!=l>=r&&n<=(c-a)*(r-s)/(l-s)+a&&(i=!i)}return i}function Pu(e,t){return e[0]>=t.x&&e[0]<=t.x+t.width&&e[1]>=t.y&&e[1]<=t.y+t.height}function Fu(e){e===void 0&&(e={});let{buffer:t=.5,blockPointerEvents:n=!1,requireIntent:r=!0}=e,i={current:-1},a=!1,o=null,s=null,c=typeof performance<`u`?performance.now():0;function l(e,t){let n=performance.now(),r=n-c;if(o===null||s===null||r===0)return o=e,s=t,c=n,null;let i=e-o,a=t-s,l=Math.sqrt(i*i+a*a)/r;return o=e,s=t,c=n,l}let u=e=>{let{x:n,y:o,placement:s,elements:c,onClose:u,nodeId:d,tree:f}=e;return function(e){function p(){cu(i),u()}if(cu(i),!c.domReference||!c.floating||s==null||n==null||o==null)return;let{clientX:m,clientY:h}=e,g=[m,h],_=yu(e),v=e.type===`mouseleave`,y=vu(c.floating,_),b=vu(c.domReference,_),x=c.domReference.getBoundingClientRect(),S=c.floating.getBoundingClientRect(),C=s.split(`-`)[0],w=n>S.right-S.width/2,T=o>S.bottom-S.height/2,E=Pu(g,x),D=S.width>x.width,O=S.height>x.height,k=(D?x:S).left,ee=(D?x:S).right,te=(O?x:S).top,A=(O?x:S).bottom;if(y&&(a=!0,!v))return;if(b&&(a=!1),b&&!v){a=!0;return}if(v&&as(e.relatedTarget)&&vu(c.floating,e.relatedTarget)||f&&Mu(f.nodesRef.current,d).length)return;if(C===`top`&&o>=x.bottom-1||C===`bottom`&&o<=x.top+1||C===`left`&&n>=x.right-1||C===`right`&&n<=x.left+1)return p();let ne=[];switch(C){case`top`:ne=[[k,x.top+1],[k,S.bottom-1],[ee,S.bottom-1],[ee,x.top+1]];break;case`bottom`:ne=[[k,S.top+1],[k,x.bottom-1],[ee,x.bottom-1],[ee,S.top+1]];break;case`left`:ne=[[S.right-1,A],[S.right-1,te],[x.left+1,te],[x.left+1,A]];break;case`right`:ne=[[x.right-1,A],[x.right-1,te],[S.left+1,te],[S.left+1,A]]}function j(e){let[n,r]=e;switch(C){case`top`:return[[D?n+t/2:w?n+t*4:n-t*4,r+t+1],[D?n-t/2:w?n+t*4:n-t*4,r+t+1],[S.left,w||D?S.bottom-t:S.top],[S.right,w?D?S.bottom-t:S.top:S.bottom-t]];case`bottom`:return[[D?n+t/2:w?n+t*4:n-t*4,r-t],[D?n-t/2:w?n+t*4:n-t*4,r-t],[S.left,w||D?S.top+t:S.bottom],[S.right,w?D?S.top+t:S.bottom:S.top+t]];case`left`:{let e=[n+t+1,O?r+t/2:T?r+t*4:r-t*4],i=[n+t+1,O?r-t/2:T?r+t*4:r-t*4];return[[T||O?S.right-t:S.left,S.top],[T?O?S.right-t:S.left:S.right-t,S.bottom],e,i]}case`right`:return[[n-t,O?r+t/2:T?r+t*4:r-t*4],[n-t,O?r-t/2:T?r+t*4:r-t*4],[T||O?S.left+t:S.right,S.top],[T?O?S.left+t:S.right:S.left+t,S.bottom]]}}if(!Nu([m,h],ne)){if(a&&!E)return p();if(!v&&r){let t=l(e.clientX,e.clientY);if(t!==null&&t<.1)return p()}Nu([m,h],j([n,o]))?!a&&r&&(i.current=window.setTimeout(p,40)):p()}}};return u.__options={blockPointerEvents:n},u}var Iu={scrollHideDelay:1e3,type:`hover`,scrollbars:`xy`},Lu=k((e,{scrollbarSize:t,overscrollBehavior:n,scrollbars:r})=>{let i=n;return n&&r&&(r===`x`?i=`${n} auto`:r===`y`&&(i=`auto ${n}`)),{root:{"--scrollarea-scrollbar-size":M(t),"--scrollarea-over-scroll-behavior":i}}}),Ru=_(e=>{let t=O(`ScrollArea`,Iu,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,scrollbarSize:s,vars:c,type:l,scrollHideDelay:u,viewportProps:d,viewportRef:f,onScrollPositionChange:p,children:m,offsetScrollbars:h,scrollbars:g,onBottomReached:_,onTopReached:v,onLeftReached:y,onRightReached:b,overscrollBehavior:x,startScrollPosition:S,verticalScrollbarPosition:C,attributes:w,...E}=t,[D,k]=(0,P.useState)(!1),[ee,te]=(0,P.useState)(!1),[A,ne]=(0,P.useState)(!1),j=(0,P.useRef)(!0),re=(0,P.useRef)(!1),ie=(0,P.useRef)(!0),ae=(0,P.useRef)(!1),oe=T({name:`ScrollArea`,props:t,classes:$o,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:w,vars:c,varsResolver:Lu}),se=(0,P.useRef)(null),[ce,le]=(0,P.useState)(null),ue=Bl([f,se,(0,P.useCallback)(e=>{le(t=>t===e?t:e)},[])]);return To(h===`present`?ce:null,()=>{let e=se.current;e&&(te(e.scrollHeight>e.clientHeight),ne(e.scrollWidth>e.clientWidth))}),Ee(()=>{S&&se.current&&se.current.scrollTo({left:S.x??0,top:S.y??0})},[]),(0,F.jsxs)(ko,{getStyles:oe,type:l===`never`?`always`:l,scrollHideDelay:u,scrollbars:g,...oe(`root`),...E,children:[(0,F.jsx)(Qo,{...d,...oe(`viewport`,{style:d?.style}),ref:ue,"data-offset-scrollbars":h===!0?`xy`:h||void 0,"data-scrollbars":g||void 0,"data-vertical-scrollbar-position":C||void 0,"data-horizontal-hidden":h===`present`&&!A?`true`:void 0,"data-vertical-hidden":h===`present`&&!ee?`true`:void 0,onScroll:e=>{d?.onScroll?.(e),p?.({x:e.currentTarget.scrollLeft,y:e.currentTarget.scrollTop});let{scrollTop:t,scrollHeight:n,clientHeight:r,scrollLeft:i,scrollWidth:a,clientWidth:o}=e.currentTarget,s=t-(n-r)>=-.8,c=t===0;s&&!re.current&&_?.(),c&&!j.current&&v?.(),re.current=s,j.current=c;let l=i-(a-o)>=-.8,u=i===0;l&&!ae.current&&b?.(),u&&!ie.current&&y?.(),ae.current=l,ie.current=u},children:m}),(g===`xy`||g===`x`)&&(0,F.jsx)(Jo,{...oe(`scrollbar`),orientation:`horizontal`,"data-vertical-scrollbar-position":C||void 0,"data-hidden":l===`never`||h===`present`&&!A||void 0,forceMount:!0,onMouseEnter:()=>k(!0),onMouseLeave:()=>k(!1),children:(0,F.jsx)(Zo,{...oe(`thumb`)})}),(g===`xy`||g===`y`)&&(0,F.jsx)(Jo,{...oe(`scrollbar`),orientation:`vertical`,"data-vertical-scrollbar-position":C||void 0,"data-hidden":l===`never`||h===`present`&&!ee||void 0,forceMount:!0,onMouseEnter:()=>k(!0),onMouseLeave:()=>k(!1),children:(0,F.jsx)(Zo,{...oe(`thumb`)})}),(0,F.jsx)(Do,{...oe(`corner`),"data-vertical-scrollbar-position":C||void 0,"data-hovered":D||void 0,"data-hidden":l===`never`||void 0})]})});Ru.displayName=`@mantine/core/ScrollArea`;var zu=_(e=>{let{children:t,classNames:n,styles:r,scrollbarSize:i,scrollHideDelay:a,type:o,dir:s,offsetScrollbars:c,overscrollBehavior:l,viewportRef:u,onScrollPositionChange:d,unstyled:f,variant:p,viewportProps:m,scrollbars:h,style:g,vars:_,onBottomReached:v,onTopReached:y,startScrollPosition:b,verticalScrollbarPosition:x,onOverflowChange:S,...C}=O(`ScrollAreaAutosize`,Iu,e),w=(0,P.useRef)(null),[T,E]=(0,P.useState)(null),D=Bl([u,w,(0,P.useCallback)(e=>{E(t=>t===e?t:e)},[])]),k=(0,P.useRef)(!1),ee=(0,P.useRef)(!1),te=(0,P.useEffectEvent)(()=>{let e=w.current;if(!e||!S)return;let t=e.scrollHeight>e.clientHeight;t!==k.current&&(ee.current?S(t):(ee.current=!0,t&&S(!0)),k.current=t)});return To(S?T:null,te),(0,F.jsx)(N,{...C,variant:p,style:[{display:`flex`,overflow:`hidden`},g],children:(0,F.jsx)(N,{style:{display:`flex`,flexDirection:`column`,flex:1,overflow:`hidden`,...h===`y`&&{minWidth:0},...h===`x`&&{minHeight:0},...h===`xy`&&{minWidth:0,minHeight:0},...h===!1&&{minWidth:0,minHeight:0}},children:(0,F.jsx)(Ru,{classNames:n,styles:r,scrollHideDelay:a,scrollbarSize:i,type:o,dir:s,offsetScrollbars:c,overscrollBehavior:l,viewportRef:D,onScrollPositionChange:d,unstyled:f,variant:p,viewportProps:m,vars:_,scrollbars:h,onBottomReached:v,onTopReached:y,startScrollPosition:b,verticalScrollbarPosition:x,"data-autosize":`true`,children:t})})})});Ru.classes=$o,Ru.varsResolver=Lu,zu.displayName=`@mantine/core/ScrollAreaAutosize`,zu.classes=$o,Ru.Autosize=zu;var Bu={root:`m_515a97f8`},Vu=_(e=>{let t=O(`VisuallyHidden`,null,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,attributes:c,...l}=t;return(0,F.jsx)(N,{component:`span`,...T({name:`VisuallyHidden`,classes:Bu,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:c})(`root`),...l})});Vu.classes=Bu,Vu.displayName=`@mantine/core/VisuallyHidden`;function Hu(e,t,n,r){return e===`center`||r===`center`?{top:t}:e===`end`?{bottom:n}:e===`start`?{top:n}:{}}function Uu(e,t,n,r,i){return e===`center`||r===`center`?{left:t}:e===`end`?{[i===`ltr`?`right`:`left`]:n}:e===`start`?{[i===`ltr`?`left`:`right`]:n}:{}}var Wu={bottom:`borderTopLeftRadius`,left:`borderTopRightRadius`,right:`borderBottomLeftRadius`,top:`borderBottomRightRadius`};function Gu({position:e,arrowSize:t,dir:n}){let[r,i]=e.split(`-`);if(!i)return;let a={width:t,height:t,position:`absolute`};if(r===`bottom`){let e=i===`start`,r=e?n===`ltr`?`left`:`right`:n===`ltr`?`right`:`left`;return{...a,top:-t,[r]:0,clipPath:e===(n===`rtl`)?`polygon(100% 0%, 0% 100%, 100% 100%)`:`polygon(0% 0%, 0% 100%, 100% 100%)`}}if(r===`top`){let e=i===`start`,r=e?n===`ltr`?`left`:`right`:n===`ltr`?`right`:`left`;return{...a,bottom:-t,[r]:0,clipPath:e===(n===`rtl`)?`polygon(0% 0%, 100% 0%, 100% 100%)`:`polygon(0% 0%, 100% 0%, 0% 100%)`}}if(r===`left`)return{...a,right:-t,[i===`start`?`top`:`bottom`]:0,clipPath:i===`start`?`polygon(0% 0%, 100% 0%, 0% 100%)`:`polygon(0% 0%, 0% 100%, 100% 100%)`};if(r===`right`)return{...a,left:-t,[i===`start`?`top`:`bottom`]:0,clipPath:i===`start`?`polygon(0% 0%, 100% 0%, 100% 100%)`:`polygon(100% 0%, 0% 100%, 100% 100%)`}}function Ku({position:e,arrowSize:t,arrowOffset:n,arrowRadius:r,arrowPosition:i,arrowX:a,arrowY:o,dir:s}){if(i===`merge`){let n=Gu({position:e,arrowSize:t,dir:s});if(n)return n}let[c,l=`center`]=e.split(`-`),u={width:t,height:t,transform:`rotate(45deg)`,position:`absolute`,[Wu[c]]:r},d=-t/2;return c===`left`?{...u,...Hu(l,o,n,i),right:d,borderLeftColor:`transparent`,borderBottomColor:`transparent`,clipPath:`polygon(100% 0, 0 0, 100% 100%)`}:c===`right`?{...u,...Hu(l,o,n,i),left:d,borderRightColor:`transparent`,borderTopColor:`transparent`,clipPath:`polygon(0 100%, 0 0, 100% 100%)`}:c===`top`?{...u,...Uu(l,a,n,i,s),bottom:d,borderTopColor:`transparent`,borderLeftColor:`transparent`,clipPath:`polygon(0 100%, 100% 100%, 100% 0)`}:c===`bottom`?{...u,...Uu(l,a,n,i,s),top:d,borderBottomColor:`transparent`,borderRightColor:`transparent`,clipPath:`polygon(0 100%, 0 0, 100% 0)`}:{}}function qu({position:e,dir:t}){let[n,r]=e.split(`-`);if(!r)return;let i=r===`start`&&t===`ltr`||r===`end`&&t===`rtl`;if(n===`bottom`)return i?{borderTopLeftRadius:0}:{borderTopRightRadius:0};if(n===`top`)return i?{borderBottomLeftRadius:0}:{borderBottomRightRadius:0};if(n===`left`)return r===`start`?{borderTopRightRadius:0}:{borderBottomRightRadius:0};if(n===`right`)return r===`start`?{borderTopLeftRadius:0}:{borderBottomLeftRadius:0}}function Ju({position:e,arrowSize:t,arrowOffset:n,arrowRadius:r,arrowPosition:i,visible:a,arrowX:o,arrowY:s,style:c,...l}){let{dir:u}=So();return a?(0,F.jsx)(`div`,{role:`presentation`,...l,style:{...c,...Ku({position:e,arrowSize:t,arrowOffset:n,arrowRadius:r,arrowPosition:i,dir:u,arrowX:o,arrowY:s})}}):null}Ju.displayName=`@mantine/core/FloatingArrow`;function Yu(e,t){if(e===`rtl`&&(t.includes(`right`)||t.includes(`left`))){let[e,n]=t.split(`-`),r=e===`right`?`left`:`right`;return n===void 0?r:`${r}-${n}`}return t}function Xu({open:e,close:t,openDelay:n,closeDelay:r}){let i=(0,P.useRef)(-1),a=(0,P.useRef)(-1),o=()=>{window.clearTimeout(i.current),window.clearTimeout(a.current)};return(0,P.useEffect)(()=>o,[]),{openDropdown:()=>{o(),n===0||n===void 0?e():i.current=window.setTimeout(e,n)},closeDropdown:()=>{o(),r===0||r===void 0?t():a.current=window.setTimeout(t,r)}}}var Zu={root:`m_9814e45f`},Qu={zIndex:ua(`modal`)},$u=k((e,{gradient:t,color:n,backgroundOpacity:r,blur:i,radius:a,zIndex:o})=>({root:{"--overlay-bg":t||(n!==void 0||r!==void 0)&&y(n||`#000`,r??.6)||void 0,"--overlay-filter":i?`blur(${M(i)})`:void 0,"--overlay-radius":a===void 0?void 0:ce(a),"--overlay-z-index":o?.toString()}})),ed=A(e=>{let t=O(`Overlay`,Qu,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,fixed:c,center:l,children:u,radius:d,zIndex:f,gradient:p,blur:m,color:h,backgroundOpacity:g,mod:_,attributes:v,...y}=t;return(0,F.jsx)(N,{...T({name:`Overlay`,props:t,classes:Zu,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:v,vars:s,varsResolver:$u})(`root`),mod:[{center:l,fixed:c},_],...y,children:u})});ed.classes=Zu,ed.varsResolver=$u,ed.displayName=`@mantine/core/Overlay`;function td(e){let t=document.createElement(`div`);return t.setAttribute(`data-portal`,`true`),typeof e.className==`string`&&t.classList.add(...e.className.split(` `).filter(Boolean)),typeof e.style==`object`&&Object.assign(t.style,e.style),typeof e.id==`string`&&t.setAttribute(`id`,e.id),t}function nd({target:e,reuseTargetNode:t,...n}){if(e)return typeof e==`string`?document.querySelector(e)||td(n):e;if(t){let e=document.querySelector(`[data-mantine-shared-portal-node]`);if(e)return e;let t=td(n);return t.setAttribute(`data-mantine-shared-portal-node`,`true`),document.body.appendChild(t),t}return td(n)}var rd={reuseTargetNode:!0},id=_(e=>{let{children:t,target:n,reuseTargetNode:r,ref:i,...a}=O(`Portal`,rd,e),[o,s]=(0,P.useState)(!1),c=(0,P.useRef)(null);return Ee(()=>(s(!0),c.current=nd({target:n,reuseTargetNode:r,...a}),Ia(i,c.current),!n&&!r&&c.current&&document.body.appendChild(c.current),()=>{!n&&!r&&c.current&&document.body.removeChild(c.current)}),[n]),!o||!c.current?null:(0,pi.createPortal)((0,F.jsx)(F.Fragment,{children:t}),c.current)});id.displayName=`@mantine/core/Portal`;var ad=_(({withinPortal:e=!0,children:t,...n})=>b()===`test`||!e?(0,F.jsx)(F.Fragment,{children:t}):(0,F.jsx)(id,{...n,children:t}));ad.displayName=`@mantine/core/OptionalPortal`;var od={duration:100,transition:`fade`};function sd(e,t){return{...od,...t,...e}}var[cd,ld]=ra(`Popover component was not found in the tree`);function ud({childProps:e,disabled:t,opened:n,longPressDelay:r=500,setReference:i,open:a}){let o=(0,P.useRef)(!1),s=(0,P.useRef)(!1),c=(0,P.useRef)(null),l=(0,P.useRef)(t);l.current=t;let u=(e,t,n)=>{i({getBoundingClientRect:()=>({x:e,y:t,width:0,height:0,top:t,left:e,right:e,bottom:t,toJSON:()=>void 0}),contextElement:n}),a()},d=pa(e.onMouseDown,e=>{t||e.button===2&&e.stopPropagation()}),f=pa(e.onContextMenu,e=>{t||e.defaultPrevented||(e.preventDefault(),!s.current&&(u(e.clientX,e.clientY,e.currentTarget),o.current&&(s.current=!0)))}),p=Ha(e=>{if(l.current||s.current)return;let t=e,n=t.touches[0]??t.changedTouches[0];n&&(u(n.clientX,n.clientY,c.current),s.current=!0)},{threshold:r,events:[`touch`],cancelOnMove:!0,onStart:e=>{o.current=!0,s.current=!1,c.current=e.currentTarget},onFinish:e=>{o.current=!1,s.current=!1,l.current||e.preventDefault()},onCancel:()=>{o.current=!1,s.current=!1}});return{onContextMenu:f,onMouseDown:d,onTouchStart:pa(e.onTouchStart,p.onTouchStart),onTouchEnd:pa(e.onTouchEnd,p.onTouchEnd),onTouchCancel:pa(e.onTouchCancel,p.onTouchCancel),onTouchMove:pa(e.onTouchMove,p.onTouchMove),style:t?e.style:{...e.style,WebkitTouchCallout:`none`,WebkitUserSelect:`none`,userSelect:`none`},"data-expanded":n?!0:void 0}}function dd(e){let{children:t,disabled:n,longPressDelay:r}=O(`PopoverContextMenu`,null,e),i=Ja(t);if(!i)throw Error(`Popover.ContextMenu component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported`);let a=ld();return(0,P.cloneElement)(i,ud({childProps:i.props,disabled:n||a.disabled,opened:a.opened,longPressDelay:r,setReference:a.reference,open:()=>{a.opened||a.onToggle()}}))}dd.displayName=`@mantine/core/PopoverContextMenu`;function fd({children:e,active:t=!0,refProp:n=`ref`,innerRef:r}){let i=Ra(Pa(t),r),a=Ja(e);return a?(0,P.cloneElement)(a,{[n]:i}):e}function pd(e){return(0,F.jsx)(Vu,{tabIndex:-1,"data-autofocus":!0,...e})}fd.displayName=`@mantine/core/FocusTrap`,pd.displayName=`@mantine/core/FocusTrapInitialFocus`,fd.InitialFocus=pd;var md={dropdown:`m_38a85659`,arrow:`m_a31dc6c1`,overlay:`m_3d7bc908`},hd=_(e=>{let t=O(`PopoverDropdown`,null,e),{className:n,style:r,vars:i,children:a,onKeyDownCapture:o,variant:s,classNames:c,styles:l,ref:u,...d}=t,f=ld(),{dir:p}=So(),m=f.arrowPosition===`merge`&&f.withArrow?qu({position:f.placement,dir:p}):void 0,h=wa({opened:f.opened,shouldReturnFocus:f.returnFocus}),g=f.withRoles?{"aria-labelledby":f.getTargetId(),id:f.getDropdownId(),role:`dialog`,tabIndex:-1}:{},_=Ra(u,f.floating);return f.disabled?null:(0,F.jsx)(ad,{...f.portalProps,withinPortal:f.withinPortal,children:(0,F.jsx)(Be,{mounted:f.opened,...f.transitionProps,transition:f.transitionProps?.transition||`fade`,duration:f.transitionProps?.duration??150,keepMounted:f.keepMounted,keepMountedMode:f.keepMountedMode,exitDuration:typeof f.transitionProps?.exitDuration==`number`?f.transitionProps.exitDuration:f.transitionProps?.duration,children:e=>(0,F.jsx)(fd,{active:f.trapFocus&&f.opened,innerRef:_,children:(0,F.jsxs)(N,{...g,...d,variant:s,onKeyDownCapture:fa(()=>{f.onClose?.(),f.onDismiss?.()},{active:f.closeOnEscape,onTrigger:h,onKeyDown:o}),"data-position":f.placement,"data-fixed":f.floatingStrategy===`fixed`||void 0,...f.getStyles(`dropdown`,{className:n,props:t,classNames:c,styles:l,style:[{...e,...m,zIndex:f.zIndex,top:f.y??0,left:f.x??0,width:f.width===`target`?void 0:M(f.width),...f.referenceHidden?{display:`none`}:null},f.resolvedStyles?.dropdown,l?.dropdown,r]}),children:[a,(0,F.jsx)(Ju,{ref:f.arrowRef,arrowX:f.arrowX,arrowY:f.arrowY,visible:f.withArrow,position:f.placement,arrowSize:f.arrowSize,arrowRadius:f.arrowRadius,arrowOffset:f.arrowOffset,arrowPosition:f.arrowPosition,...f.getStyles(`arrow`,{props:t,classNames:c,styles:l})})]})})})})});hd.classes=md,hd.displayName=`@mantine/core/PopoverDropdown`;var gd={refProp:`ref`,popupType:`dialog`},_d=_(e=>{let{children:t,refProp:n,popupType:r,ref:i,...a}=O(`PopoverTarget`,gd,e),o=Ja(t);if(!o)throw Error(`Popover.Target component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported`);let s=a,c=ld(),l=Ra(c.reference,qa(o),i),u=c.withRoles?{"aria-haspopup":r,"aria-expanded":c.opened,"aria-controls":c.opened?c.getDropdownId():void 0,id:c.getTargetId()}:{},d=o.props;return(0,P.cloneElement)(o,{...s,...u,...c.targetProps,className:ae(c.targetProps.className,s.className,d.className),[n]:l,...c.controlled?null:{onClick:e=>{c.onToggle(),d.onClick?.(e)}}})});_d.displayName=`@mantine/core/PopoverTarget`;function vd(e){if(e===void 0)return{shift:!0,flip:!0};let t={...e};return e.shift===void 0&&(t.shift=!0),e.flip===void 0&&(t.flip=!0),t}function yd(e,t,n,r){let i=vd(e.middlewares),a=[Ml(e.offset),Ll()];if(i.flip&&!n){let e=typeof i.flip==`boolean`?{}:i.flip,t=r?{fallbackStrategy:`initialPlacement`,...e}:e;a.push(Fl(t))}if(i.shift){let t=typeof i.shift==`boolean`?{}:i.shift;a.push(Nl(n=>{let r=n.placement.startsWith(`top`)||n.placement.startsWith(`bottom`);return{limiter:Pl(),padding:5,...e.width===`target`&&r?{mainAxis:!1}:null,...t}}))}return i.inline&&a.push(typeof i.inline==`boolean`?Rl():Rl(i.inline)),a.push(zl({element:e.arrowRef,padding:e.arrowOffset})),(i.size||e.width===`target`)&&a.push(Il({...typeof i.size==`boolean`?{}:i.size,apply({rects:n,availableWidth:r,availableHeight:a,...o}){let s=t().refs.floating.current?.style??{};i.size&&(typeof i.size==`object`&&i.size.apply?i.size.apply({rects:n,availableWidth:r,availableHeight:a,...o}):Object.assign(s,{maxWidth:`${r}px`,maxHeight:`${a}px`})),e.width===`target`&&Object.assign(s,{width:`${n.reference.width}px`})}})),a}function bd(e){let[t,n]=za({value:e.opened,defaultValue:e.defaultOpened,finalValue:!1,onChange:e.onChange}),r=(0,P.useRef)(t),[i,a]=(0,P.useState)(null),o=e.preventPositionChangeWhenVisible!==!1,s=(0,P.useRef)(t);t!==s.current&&(s.current=t,t&&i!==null&&a(null));let c=(0,P.useCallback)(()=>a(null),[]),l=()=>{t&&!e.disabled&&n(!1)},u=()=>{e.disabled||n(!t)},d=Tu({open:t,strategy:e.strategy,placement:o?i??e.position:e.position,middleware:yd(e,()=>d,o&&i!==null,o),whileElementsMounted:e.keepMounted?void 0:hl});(0,P.useEffect)(()=>{if(!e.keepMounted)return;let n=d.refs.reference.current,r=d.refs.floating.current;if(t&&n&&r)return hl(n,r,d.update)},[e.keepMounted,t,d.update,d.elements.reference,d.elements.floating]);let f=(0,P.useRef)(!1);Ee(()=>{if(!t){f.current=!1;return}if(!o||i!==null)return;let e=d.refs.floating.current;if(!(!e||e.offsetHeight===0||e.offsetWidth===0)){if(!f.current){f.current=!0,d.update();return}d.isPositioned&&a(d.placement)}},[o,t,d.isPositioned,d.placement,i,d.update]);let p=(0,P.useRef)(d.placement);return Ee(()=>{p.current!==d.placement&&(p.current=d.placement,e.onPositionChange?.(d.placement))},[d.placement]),Ie(()=>{t!==r.current&&(t?e.onOpen?.():e.onClose?.()),r.current=t},[t,e.onClose,e.onOpen]),{floating:d,controlled:typeof e.opened==`boolean`,opened:t,onClose:l,onToggle:u,resetLockedPlacement:c}}var xd={position:`bottom`,offset:8,transitionProps:{transition:`fade`,duration:150},middlewares:{flip:!0,shift:!0,inline:!1},arrowSize:7,arrowOffset:5,arrowRadius:0,arrowPosition:`side`,closeOnClickOutside:!0,withinPortal:!0,closeOnEscape:!0,trapFocus:!1,withRoles:!0,returnFocus:!1,withOverlay:!1,hideDetached:!0,preventPositionChangeWhenVisible:!0,clickOutsideEvents:[`mousedown`,`touchstart`],zIndex:ua(`popover`),__staticSelector:`Popover`,width:`max-content`},Sd=k((e,{radius:t,shadow:n})=>({dropdown:{"--popover-radius":t===void 0?void 0:ce(t),"--popover-shadow":De(n)}}));function Cd(e){let t=O(`Popover`,xd,e),{children:n,position:r,offset:i,onPositionChange:a,opened:o,transitionProps:s,onExitTransitionEnd:c,onEnterTransitionEnd:l,width:u,middlewares:d,withArrow:f,arrowSize:p,arrowOffset:m,arrowRadius:h,arrowPosition:g,unstyled:_,classNames:v,styles:y,closeOnClickOutside:x,withinPortal:S,portalProps:C,closeOnEscape:w,clickOutsideEvents:D,trapFocus:k,onClose:ee,onDismiss:te,onOpen:A,onChange:ne,zIndex:j,radius:re,shadow:ie,id:ae,defaultOpened:oe,__staticSelector:se,withRoles:ce,disabled:le,returnFocus:ue,variant:de,keepMounted:fe,keepMountedMode:M,vars:me,floatingStrategy:he,withOverlay:ge,overlayProps:_e,hideDetached:ve,attributes:ye,preventPositionChangeWhenVisible:be,...xe}=t,Se=T({name:se,props:t,classes:md,classNames:v,styles:y,unstyled:_,attributes:ye,rootSelector:`dropdown`,vars:me,varsResolver:Sd}),{resolvedStyles:Ce}=E({classNames:v,styles:y,props:t}),we=(0,P.useRef)(null),[Te,Ee]=(0,P.useState)(null),[De,Oe]=(0,P.useState)(null),{dir:ke}=So(),Ae=b(),je=pe(ae),Me=bd({middlewares:d,width:u,position:Yu(ke,r),offset:typeof i==`number`?i+(f?p/2:0):i,arrowRef:we,arrowOffset:m,onPositionChange:a,opened:o,defaultOpened:oe,onChange:ne,onOpen:A,onClose:ee,onDismiss:te,strategy:he,disabled:le,preventPositionChangeWhenVisible:be,keepMounted:fe});xa(()=>{x&&(Me.onClose(),te?.())},D,[Te,De]);let Ne=(0,P.useCallback)(e=>{Ee(e),Me.floating.refs.setReference(e)},[Me.floating.refs.setReference]),Pe=(0,P.useCallback)(e=>{Oe(e),Me.floating.refs.setFloating(e)},[Me.floating.refs.setFloating]),Fe=(0,P.useCallback)(()=>{s?.onExited?.(),c?.(),Me.resetLockedPlacement()},[s?.onExited,c,Me.resetLockedPlacement]),Ie=(0,P.useCallback)(()=>{s?.onEntered?.(),l?.()},[s?.onEntered,l]);return(0,F.jsxs)(cd,{value:{returnFocus:ue,disabled:le,controlled:Me.controlled,reference:Ne,floating:Pe,x:Me.floating.x,y:Me.floating.y,arrowX:Me.floating?.middlewareData?.arrow?.x,arrowY:Me.floating?.middlewareData?.arrow?.y,opened:Me.opened,arrowRef:we,transitionProps:{...s,onExited:Fe,onEntered:Ie},width:u,withArrow:f,arrowSize:p,arrowOffset:m,arrowRadius:h,arrowPosition:g,placement:Me.floating.placement,trapFocus:k,withinPortal:S,portalProps:C,zIndex:j,radius:re,shadow:ie,closeOnEscape:w,onDismiss:te,onClose:Me.onClose,onToggle:Me.onToggle,getTargetId:()=>je,getDropdownId:()=>`${je}-dropdown`,withRoles:ce,targetProps:xe,__staticSelector:se,classNames:v,styles:y,unstyled:_,variant:de,keepMounted:fe,keepMountedMode:M,getStyles:Se,resolvedStyles:Ce,floatingStrategy:he,referenceHidden:ve&&Ae!==`test`?Me.floating.middlewareData.hide?.referenceHidden:!1},children:[n,ge&&(0,F.jsx)(Be,{transition:`fade`,mounted:Me.opened,duration:s?.duration||250,exitDuration:s?.exitDuration||250,children:e=>(0,F.jsx)(ad,{withinPortal:S,children:(0,F.jsx)(ed,{..._e,...Se(`overlay`,{className:_e?.className,style:[e,_e?.style]})})})})]})}Cd.Target=_d,Cd.Dropdown=hd,Cd.ContextMenu=dd,Cd.varsResolver=Sd,Cd.displayName=`@mantine/core/Popover`,Cd.extend=e=>e,Cd.withProps=e=>{let t=t=>(0,F.jsx)(Cd,{...e,...t});return t.extend=Cd.extend,t.displayName=`WithProps(${Cd.displayName})`,t};var wd={root:`m_8d3f4000`,icon:`m_8d3afb97`,loader:`m_302b9fb1`,group:`m_1a0f1b21`,groupSection:`m_437b6484`},Td={orientation:`horizontal`},Ed=k((e,{borderWidth:t})=>({group:{"--ai-border-width":M(t)}})),Dd=_(e=>{let t=O(`ActionIconGroup`,Td,e),{className:n,style:r,classNames:i,styles:a,unstyled:o,orientation:s,vars:c,borderWidth:l,variant:u,mod:d,attributes:f,...p}=t;return(0,F.jsx)(N,{...T({name:`ActionIconGroup`,props:t,classes:wd,className:n,style:r,classNames:i,styles:a,unstyled:o,attributes:f,vars:c,varsResolver:Ed,rootSelector:`group`})(`group`),variant:u,mod:[{"data-orientation":s},d],role:`group`,...p})});Dd.classes=wd,Dd.varsResolver=Ed,Dd.displayName=`@mantine/core/ActionIconGroup`;var Od=k((e,{radius:t,color:n,gradient:r,variant:i,autoContrast:a,size:o})=>{let s=e.variantColorResolver({color:n||e.primaryColor,theme:e,gradient:r,variant:i||`filled`,autoContrast:a});return{groupSection:{"--section-height":Pe(o,`section-height`),"--section-padding-x":Pe(o,`section-padding-x`),"--section-fz":ye(o),"--section-radius":t===void 0?void 0:ce(t),"--section-bg":n||i?s.background:void 0,"--section-color":s.color,"--section-bd":n||i?s.border:void 0}}}),kd=_(e=>{let t=O(`ActionIconGroupSection`,null,e),{className:n,style:r,classNames:i,styles:a,unstyled:o,vars:s,variant:c,gradient:l,radius:u,autoContrast:d,attributes:f,...p}=t;return(0,F.jsx)(N,{...T({name:`ActionIconGroupSection`,props:t,classes:wd,className:n,style:r,classNames:i,styles:a,unstyled:o,attributes:f,vars:s,varsResolver:Od,rootSelector:`groupSection`})(`groupSection`),variant:c,...p})});kd.classes=wd,kd.varsResolver=Od,kd.displayName=`@mantine/core/ActionIconGroupSection`;var Ad=k((e,{size:t,radius:n,variant:r,gradient:i,color:a,autoContrast:o})=>{let s=e.variantColorResolver({color:a||e.primaryColor,theme:e,gradient:i,variant:r||`filled`,autoContrast:o});return{root:{"--ai-size":Pe(t,`ai-size`),"--ai-radius":n===void 0?void 0:ce(n),"--ai-bg":a||r?s.background:void 0,"--ai-hover":a||r?s.hover:void 0,"--ai-hover-color":a||r?s.hoverColor:void 0,"--ai-color":s.color,"--ai-bd":a||r?s.border:void 0}}}),jd=A(e=>{let t=O(`ActionIcon`,null,e),{className:n,unstyled:r,variant:i,classNames:a,styles:o,style:s,loading:c,loaderProps:l,size:u,color:d,radius:f,__staticSelector:p,gradient:m,vars:h,children:_,disabled:v,"data-disabled":y,autoContrast:b,mod:x,attributes:S,...C}=t,w=T({name:[`ActionIcon`,p],props:t,className:n,style:s,classes:wd,classNames:a,styles:o,unstyled:r,attributes:S,vars:h,varsResolver:Ad});return(0,F.jsxs)(g,{...w(`root`,{active:!v&&!c&&!y}),"aria-busy":c||void 0,...C,unstyled:r,variant:i,size:u,disabled:v||c,mod:[{loading:c,disabled:v||y},x],children:[typeof c==`boolean`&&(0,F.jsx)(Be,{mounted:c,transition:`slide-down`,duration:150,children:e=>(0,F.jsx)(N,{component:`span`,...w(`loader`,{style:e}),"aria-hidden":!0,children:(0,F.jsx)(le,{color:`var(--ai-color)`,size:`calc(var(--ai-size) * 0.55)`,...l})})}),(0,F.jsx)(N,{component:`span`,mod:{loading:c},...w(`icon`),children:_})]})});jd.classes=wd,jd.varsResolver=Ad,jd.displayName=`@mantine/core/ActionIcon`,jd.Group=Dd,jd.GroupSection=kd;var[Md,Nd]=ra(`ModalBase component was not found in tree`);function Pd({opened:e,transitionDuration:t}){let[n,r]=(0,P.useState)(e),i=(0,P.useRef)(-1),a=m()?0:t;return(0,P.useEffect)(()=>(e?(r(!0),window.clearTimeout(i.current)):a===0?r(!1):i.current=window.setTimeout(()=>r(!1),a),()=>window.clearTimeout(i.current)),[e,a]),n}function Fd({id:e,transitionProps:t,opened:n,trapFocus:r,closeOnEscape:i,onClose:a,returnFocus:o}){let s=pe(e),[c,l]=(0,P.useState)(!1),[u,d]=(0,P.useState)(!1),f=Pd({opened:n,transitionDuration:typeof t?.duration==`number`?t?.duration:200});return Fa(`keydown`,e=>{e.key===`Escape`&&i&&!e.isComposing&&n&&e.target?.getAttribute(`data-mantine-stop-propagation`)!==`true`&&a()},{capture:!0}),wa({opened:n,shouldReturnFocus:r&&o}),{_id:s,titleMounted:c,bodyMounted:u,shouldLockScroll:f,setTitleMounted:l,setBodyMounted:d}}var Id=function(e,t){return Id=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},Id(e,t)};function Ld(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Class extends value `+String(t)+` is not a constructor or null`);Id(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var Rd=function(){return Rd=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&a[a.length-1])&&(s[0]===6||s[0]===2)){n=0;continue}if(s[0]===3&&(!a||s[1]>a[0]&&s[1]=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)}function Ud(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-->0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a}function Wd(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r1||c(e,t)})},t&&(i[e]=t(i[e])))}function c(e,t){try{l(r[e](t))}catch(e){f(a[0][3],e)}}function l(e){e.value instanceof Gd?Promise.resolve(e.value.v).then(u,d):f(a[0][2],e)}function u(e){c(`next`,e)}function d(e){c(`throw`,e)}function f(e,t){e(t),a.shift(),a.length&&c(a[0][0],a[0][1])}}function qd(e){if(!Symbol.asyncIterator)throw TypeError(`Symbol.asyncIterator is not defined.`);var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof Hd==`function`?Hd(e):e[Symbol.iterator](),n={},r(`next`),r(`throw`),r(`return`),n[Symbol.asyncIterator]=function(){return this},n);function r(t){n[t]=e[t]&&function(n){return new Promise(function(r,a){n=e[t](n),i(r,a,n.done,n.value)})}}function i(e,t,n,r){Promise.resolve(r).then(function(t){e({value:t,done:n})},t)}}var Jd=`right-scroll-bar-position`,Yd=`width-before-scroll-bar`,Xd=`with-scroll-bars-hidden`,Zd=`--removed-body-scroll-bar-size`;function Qd(e,t){return typeof e==`function`?e(t):e&&(e.current=t),e}function $d(e,t){var n=(0,P.useState)(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(e){var t=n.value;t!==e&&(n.value=e,n.callback(e,t))}}}})[0];return n.callback=t,n.facade}var ef=typeof window<`u`?P.useLayoutEffect:P.useEffect,tf=new WeakMap;function nf(e,t){var n=$d(t||null,function(t){return e.forEach(function(e){return Qd(e,t)})});return ef(function(){var t=tf.get(n);if(t){var r=new Set(t),i=new Set(e),a=n.current;r.forEach(function(e){i.has(e)||Qd(e,null)}),i.forEach(function(e){r.has(e)||Qd(e,a)})}tf.set(n,e)},[e]),n}function rf(e){return e}function af(e,t){t===void 0&&(t=rf);var n=[],r=!1;return{read:function(){if(r)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(e){var i=t(e,r);return n.push(i),function(){n=n.filter(function(e){return e!==i})}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var i=n;n=[],i.forEach(e),t=n}var a=function(){var n=t;t=[],n.forEach(e)},o=function(){return Promise.resolve().then(a)};o(),n={push:function(e){t.push(e),o()},filter:function(e){return t=t.filter(e),n}}}}}function of(e){e===void 0&&(e={});var t=af(null);return t.options=Rd({async:!0,ssr:!1},e),t}var sf=function(e){var t=e.sideCar,n=zd(e,[`sideCar`]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw Error(`Sidecar medium not found`);return P.createElement(r,Rd({},n))};sf.isSideCarExport=!0;function cf(e,t){return e.useMedium(t),sf}var lf=of(),uf=function(){},df=P.forwardRef(function(e,t){var n=P.useRef(null),r=P.useState({onScrollCapture:uf,onWheelCapture:uf,onTouchMoveCapture:uf}),i=r[0],a=r[1],o=e.forwardProps,s=e.children,c=e.className,l=e.removeScrollBar,u=e.enabled,d=e.shards,f=e.sideCar,p=e.noRelative,m=e.noIsolation,h=e.inert,g=e.allowPinchZoom,_=e.as,v=_===void 0?`div`:_,y=e.gapMode,b=zd(e,[`forwardProps`,`children`,`className`,`removeScrollBar`,`enabled`,`shards`,`sideCar`,`noRelative`,`noIsolation`,`inert`,`allowPinchZoom`,`as`,`gapMode`]),x=f,S=nf([n,t]),C=Rd(Rd({},b),i);return P.createElement(P.Fragment,null,u&&P.createElement(x,{sideCar:lf,removeScrollBar:l,shards:d,noRelative:p,noIsolation:m,inert:h,setCallbacks:a,allowPinchZoom:!!g,lockRef:n,gapMode:y}),o?P.cloneElement(P.Children.only(s),Rd(Rd({},C),{ref:S})):P.createElement(v,Rd({},C,{className:c,ref:S}),s))});df.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},df.classNames={fullWidth:Yd,zeroRight:Jd};var ff,pf=function(){if(ff)return ff;if(typeof __webpack_nonce__<`u`)return __webpack_nonce__};function mf(){if(!document)return null;var e=document.createElement(`style`);e.type=`text/css`;var t=pf();return t&&e.setAttribute(`nonce`,t),e}function hf(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function gf(e){(document.head||document.getElementsByTagName(`head`)[0]).appendChild(e)}var _f=function(){var e=0,t=null;return{add:function(n){e==0&&(t=mf())&&(hf(t,n),gf(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},vf=function(){var e=_f();return function(t,n){P.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},yf=function(){var e=vf();return function(t){var n=t.styles,r=t.dynamic;return e(n,r),null}},bf={left:0,top:0,right:0,gap:0},xf=function(e){return parseInt(e||``,10)||0},Sf=function(e){var t=window.getComputedStyle(document.body),n=t[e===`padding`?`paddingLeft`:`marginLeft`],r=t[e===`padding`?`paddingTop`:`marginTop`],i=t[e===`padding`?`paddingRight`:`marginRight`];return[xf(n),xf(r),xf(i)]},Cf=function(e){if(e===void 0&&(e=`margin`),typeof window>`u`)return bf;var t=Sf(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},wf=yf(),Tf=`data-scroll-locked`,Ef=function(e,t,n,r){var i=e.left,a=e.top,o=e.right,s=e.gap;return n===void 0&&(n=`margin`),` + .${Xd} { + overflow: hidden ${r}; + padding-right: ${s}px ${r}; + } + body[${Tf}] { + overflow: hidden ${r}; + overscroll-behavior: contain; + ${[t&&`position: relative ${r};`,n===`margin`&&` + padding-left: ${i}px; + padding-top: ${a}px; + padding-right: ${o}px; + margin-left:0; + margin-top:0; + margin-right: ${s}px ${r}; + `,n===`padding`&&`padding-right: ${s}px ${r};`].filter(Boolean).join(``)} + } + + .${Jd} { + right: ${s}px ${r}; + } + + .${Yd} { + margin-right: ${s}px ${r}; + } + + .${Jd} .${Jd} { + right: 0 ${r}; + } + + .${Yd} .${Yd} { + margin-right: 0 ${r}; + } + + body[${Tf}] { + ${Zd}: ${s}px; + } +`},Df=function(){var e=parseInt(document.body.getAttribute(`data-scroll-locked`)||`0`,10);return isFinite(e)?e:0},Of=function(){P.useEffect(function(){return document.body.setAttribute(Tf,(Df()+1).toString()),function(){var e=Df()-1;e<=0?document.body.removeAttribute(Tf):document.body.setAttribute(Tf,e.toString())}},[])},kf=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=r===void 0?`margin`:r;Of();var a=P.useMemo(function(){return Cf(i)},[i]);return P.createElement(wf,{styles:Ef(a,!t,i,n?``:`!important`)})},Af=!1;if(typeof window<`u`)try{var jf=Object.defineProperty({},"passive",{get:function(){return Af=!0,!0}});window.addEventListener(`test`,jf,jf),window.removeEventListener(`test`,jf,jf)}catch{Af=!1}var Mf=Af?{passive:!1}:!1,Nf=function(e){return e.tagName===`TEXTAREA`},Pf=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!==`hidden`&&!(n.overflowY===n.overflowX&&!Nf(e)&&n[t]===`visible`)},Ff=function(e){return Pf(e,`overflowY`)},If=function(e){return Pf(e,`overflowX`)},Lf=function(e,t){var n=t.ownerDocument,r=t;do{if(typeof ShadowRoot<`u`&&r instanceof ShadowRoot&&(r=r.host),Bf(e,r)){var i=Vf(e,r);if(i[1]>i[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},Rf=function(e){return[e.scrollTop,e.scrollHeight,e.clientHeight]},zf=function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]},Bf=function(e,t){return e===`v`?Ff(t):If(t)},Vf=function(e,t){return e===`v`?Rf(t):zf(t)},Hf=function(e,t){return e===`h`&&t===`rtl`?-1:1},Uf=function(e,t,n,r,i){var a=Hf(e,window.getComputedStyle(t).direction),o=a*r,s=n.target,c=t.contains(s),l=!1,u=o>0,d=0,f=0;do{if(!s)break;var p=Vf(e,s),m=p[0],h=p[1]-p[2]-a*m;(m||h)&&Bf(e,s)&&(d+=h,f+=m);var g=s.parentNode;s=g&&g.nodeType===Node.DOCUMENT_FRAGMENT_NODE?g.host:g}while(!c&&s!==document.body||c&&(t.contains(s)||t===s));return(u&&(i&&Math.abs(d)<1||!i&&o>d)||!u&&(i&&Math.abs(f)<1||!i&&-o>f))&&(l=!0),l},Wf=function(e){return`changedTouches`in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Gf=function(e){return[e.deltaX,e.deltaY]},Kf=function(e){return e&&`current`in e?e.current:e},qf=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Jf=function(e){return` + .block-interactivity-${e} {pointer-events: none;} + .allow-interactivity-${e} {pointer-events: all;} +`},Yf=0,Xf=[];function Zf(e){var t=P.useRef([]),n=P.useRef([0,0]),r=P.useRef(),i=P.useState(Yf++)[0],a=P.useState(yf)[0],o=P.useRef(e);P.useEffect(function(){o.current=e},[e]),P.useEffect(function(){if(e.inert){document.body.classList.add(`block-interactivity-${i}`);var t=Wd([e.lockRef.current],(e.shards||[]).map(Kf),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add(`allow-interactivity-${i}`)}),function(){document.body.classList.remove(`block-interactivity-${i}`),t.forEach(function(e){return e.classList.remove(`allow-interactivity-${i}`)})}}},[e.inert,e.lockRef.current,e.shards]);var s=P.useCallback(function(e,t){if(`touches`in e&&e.touches.length===2||e.type===`wheel`&&e.ctrlKey)return!o.current.allowPinchZoom;var i=Wf(e),a=n.current,s=`deltaX`in e?e.deltaX:a[0]-i[0],c=`deltaY`in e?e.deltaY:a[1]-i[1],l,u=e.target,d=Math.abs(s)>Math.abs(c)?`h`:`v`;if(`touches`in e&&d===`h`&&u.type===`range`)return!1;var f=window.getSelection(),p=f&&f.anchorNode;if(p&&(p===u||p.contains(u)))return!1;var m=Lf(d,u);if(!m)return!0;if(m?l=d:(l=d===`v`?`h`:`v`,m=Lf(d,u)),!m)return!1;if(!r.current&&`changedTouches`in e&&(s||c)&&(r.current=l),!l)return!0;var h=r.current||l;return Uf(h,t,e,h===`h`?s:c,!0)},[]),c=P.useCallback(function(e){var n=e;if(!(!Xf.length||Xf[Xf.length-1]!==a)){var r=`deltaY`in n?Gf(n):Wf(n),i=t.current.filter(function(e){return e.name===n.type&&(e.target===n.target||n.target===e.shadowParent)&&qf(e.delta,r)})[0];if(i&&i.should){n.cancelable&&n.preventDefault();return}if(!i){var c=(o.current.shards||[]).map(Kf).filter(Boolean).filter(function(e){return e.contains(n.target)});(c.length>0?s(n,c[0]):!o.current.noIsolation)&&n.cancelable&&n.preventDefault()}}},[]),l=P.useCallback(function(e,n,r,i){var a={name:e,delta:n,target:r,should:i,shadowParent:Qf(r)};t.current.push(a),setTimeout(function(){t.current=t.current.filter(function(e){return e!==a})},1)},[]),u=P.useCallback(function(e){n.current=Wf(e),r.current=void 0},[]),d=P.useCallback(function(t){l(t.type,Gf(t),t.target,s(t,e.lockRef.current))},[]),f=P.useCallback(function(t){l(t.type,Wf(t),t.target,s(t,e.lockRef.current))},[]);P.useEffect(function(){return Xf.push(a),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener(`wheel`,c,Mf),document.addEventListener(`touchmove`,c,Mf),document.addEventListener(`touchstart`,u,Mf),function(){Xf=Xf.filter(function(e){return e!==a}),document.removeEventListener(`wheel`,c,Mf),document.removeEventListener(`touchmove`,c,Mf),document.removeEventListener(`touchstart`,u,Mf)}},[]);var p=e.removeScrollBar,m=e.inert;return P.createElement(P.Fragment,null,m?P.createElement(a,{styles:Jf(i)}):null,p?P.createElement(kf,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function Qf(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}var $f=cf(lf,Zf),ep=P.forwardRef(function(e,t){return P.createElement(df,Rd({},e,{ref:t,sideCar:$f}))});ep.classNames=df.classNames;function tp({keepMounted:e,keepMountedMode:t=`activity`,opened:n,onClose:r,id:i,transitionProps:a,onExitTransitionEnd:o,onEnterTransitionEnd:s,trapFocus:c,closeOnEscape:l,returnFocus:u,closeOnClickOutside:d,withinPortal:f,portalProps:p,lockScroll:m,children:h,zIndex:g,shadow:_,padding:v,__vars:y,unstyled:b,removeScrollProps:x,...S}){let{_id:C,titleMounted:w,bodyMounted:T,shouldLockScroll:E,setTitleMounted:D,setBodyMounted:O}=Fd({id:i,transitionProps:a,opened:n,trapFocus:c,closeOnEscape:l,onClose:r,returnFocus:u}),{key:k,...ee}=x||{};return(0,F.jsx)(ad,{...p,withinPortal:f,children:(0,F.jsx)(Md,{value:{opened:n,onClose:r,closeOnClickOutside:d,onExitTransitionEnd:o,onEnterTransitionEnd:s,transitionProps:{...a,keepMounted:e,keepMountedMode:t},getTitleId:()=>`${C}-title`,getBodyId:()=>`${C}-body`,titleMounted:w,bodyMounted:T,setTitleMounted:D,setBodyMounted:O,trapFocus:c,closeOnEscape:l,zIndex:g,unstyled:b},children:(0,F.jsx)(ep,{enabled:E&&m,...ee,children:(0,F.jsx)(N,{...S,id:C,__vars:{...y,"--mb-z-index":(g||ua(`modal`)).toString(),"--mb-shadow":De(_),"--mb-padding":de(v)},children:h})},k)})})}tp.displayName=`@mantine/core/ModalBase`;function np(){let e=Nd();return(0,P.useEffect)(()=>(e.setBodyMounted(!0),()=>e.setBodyMounted(!1)),[]),e.getBodyId()}var rp={title:`m_615af6c9`,header:`m_b5489c3c`,inner:`m_60c222c7`,content:`m_fd1ab0aa`,close:`m_606cb269`,body:`m_5df29311`};function ip({className:e,...t}){let n=np(),r=Nd();return(0,F.jsx)(N,{id:n,className:ae({[rp.body]:!r.unstyled},e),...t})}ip.displayName=`@mantine/core/ModalBaseBody`;function ap({className:e,onClick:t,...n}){let r=Nd();return(0,F.jsx)(Ve,{...n,onClick:e=>{r.onClose(),t?.(e)},className:ae({[rp.close]:!r.unstyled},e),unstyled:r.unstyled})}ap.displayName=`@mantine/core/ModalBaseCloseButton`;function op({transitionProps:e,className:t,innerProps:n,onKeyDown:r,style:i,ref:a,...o}){let s=Nd();return(0,F.jsx)(Be,{mounted:s.opened,transition:`pop`,...s.transitionProps,onExited:()=>{s.onExitTransitionEnd?.(),s.transitionProps?.onExited?.()},onEntered:()=>{s.onEnterTransitionEnd?.(),s.transitionProps?.onEntered?.()},...e,children:e=>(0,F.jsx)(`div`,{...n,className:ae({[rp.inner]:!s.unstyled},n.className),children:(0,F.jsx)(fd,{active:s.opened&&s.trapFocus,innerRef:a,children:(0,F.jsx)(te,{...o,component:`section`,role:`dialog`,tabIndex:-1,"aria-modal":!0,"aria-describedby":s.bodyMounted?s.getBodyId():void 0,"aria-labelledby":s.titleMounted?s.getTitleId():void 0,style:[i,e],className:ae({[rp.content]:!s.unstyled},t),unstyled:s.unstyled,children:o.children})})})})}op.displayName=`@mantine/core/ModalBaseContent`;function sp({className:e,...t}){let n=Nd();return(0,F.jsx)(N,{component:`header`,className:ae({[rp.header]:!n.unstyled},e),...t})}sp.displayName=`@mantine/core/ModalBaseHeader`;var cp={duration:200,timingFunction:`ease`,transition:`fade`};function lp(e){let t=Nd();return{...cp,...t.transitionProps,...e}}function up({onClick:e,transitionProps:t,style:n,visible:r,...i}){let a=Nd(),o=lp(t);return(0,F.jsx)(Be,{mounted:r===void 0?a.opened:r,...o,transition:`fade`,children:t=>(0,F.jsx)(ed,{fixed:!0,style:[n,t],zIndex:a.zIndex,unstyled:a.unstyled,onClick:t=>{e?.(t),a.closeOnClickOutside&&a.onClose()},...i})})}up.displayName=`@mantine/core/ModalBaseOverlay`;function dp(){let e=Nd();return(0,P.useEffect)(()=>(e.setTitleMounted(!0),()=>e.setTitleMounted(!1)),[]),e.getTitleId()}function fp({className:e,...t}){let n=dp(),r=Nd();return(0,F.jsx)(N,{component:`h2`,className:ae({[rp.title]:!r.unstyled},e),id:n,...t})}fp.displayName=`@mantine/core/ModalBaseTitle`;function pp({children:e}){return(0,F.jsx)(F.Fragment,{children:e})}function mp({style:e,size:t=16,...n}){return(0,F.jsx)(`svg`,{viewBox:`0 0 15 15`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,style:{...e,width:M(t),height:M(t),display:`block`},...n,children:(0,F.jsx)(`path`,{d:`M3.13523 6.15803C3.3241 5.95657 3.64052 5.94637 3.84197 6.13523L7.5 9.56464L11.158 6.13523C11.3595 5.94637 11.6759 5.95657 11.8648 6.15803C12.0536 6.35949 12.0434 6.67591 11.842 6.86477L7.84197 10.6148C7.64964 10.7951 7.35036 10.7951 7.15803 10.6148L3.15803 6.86477C2.95657 6.67591 2.94637 6.35949 3.13523 6.15803Z`,fill:`currentColor`,fillRule:`evenodd`,clipRule:`evenodd`})})}mp.displayName=`@mantine/core/AccordionChevron`;var[hp,gp]=ra(`AppShell was not found in tree`),_p={root:`m_89ab340`,navbar:`m_45252eee`,aside:`m_9cdde9a`,header:`m_3b16f56b`,main:`m_8983817`,footer:`m_3840c879`,section:`m_6dcfc7c7`},vp=_(e=>{let{classNames:t,className:n,style:r,styles:i,unstyled:a,vars:o,withBorder:s,zIndex:c,mod:l,...u}=O(`AppShellAside`,null,e),d=gp();return d.disabled?null:(0,F.jsx)(N,{component:`aside`,mod:[{"with-border":s??d.withBorder},l],...d.getStyles(`aside`,{className:ae({[ep.classNames.zeroRight]:d.offsetScrollbars},n),classNames:t,styles:i,style:r}),...u,__vars:{"--app-shell-aside-z-index":`calc(${c??d.zIndex} + 1)`}})});vp.classes=_p,vp.displayName=`@mantine/core/AppShellAside`;var yp=_(e=>{let{classNames:t,className:n,style:r,styles:i,unstyled:a,vars:o,withBorder:s,zIndex:c,mod:l,...u}=O(`AppShellFooter`,null,e),d=gp();return d.disabled?null:(0,F.jsx)(N,{component:`footer`,mod:[{"with-border":s??d.withBorder},l],...d.getStyles(`footer`,{className:ae({[ep.classNames.zeroRight]:d.offsetScrollbars},n),classNames:t,styles:i,style:r}),...u,__vars:{"--app-shell-footer-z-index":(c??d.zIndex)?.toString()}})});yp.classes=_p,yp.displayName=`@mantine/core/AppShellFooter`;var bp=_(e=>{let{classNames:t,className:n,style:r,styles:i,unstyled:a,vars:o,withBorder:s,zIndex:c,mod:l,...u}=O(`AppShellHeader`,null,e),d=gp();return d.disabled?null:(0,F.jsx)(N,{component:`header`,mod:[{"with-border":s??d.withBorder},l],...d.getStyles(`header`,{className:ae({[ep.classNames.zeroRight]:d.offsetScrollbars},n),classNames:t,styles:i,style:r}),...u,__vars:{"--app-shell-header-z-index":(c??d.zIndex)?.toString()}})});bp.classes=_p,bp.displayName=`@mantine/core/AppShellHeader`;var xp=_(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,...o}=O(`AppShellMain`,null,e);return(0,F.jsx)(N,{component:`main`,...gp().getStyles(`main`,{className:n,style:r,classNames:t,styles:i}),...o})});xp.classes=_p,xp.displayName=`@mantine/core/AppShellMain`;var Sp=_(e=>{let{classNames:t,className:n,style:r,styles:i,unstyled:a,vars:o,withBorder:s,zIndex:c,mod:l,...u}=O(`AppShellNavbar`,null,e),d=gp();return d.disabled?null:(0,F.jsx)(N,{component:`nav`,mod:[{"with-border":s??d.withBorder},l],...d.getStyles(`navbar`,{className:n,classNames:t,styles:i,style:r}),...u,__vars:{"--app-shell-navbar-z-index":`calc(${c??d.zIndex} + 1)`}})});Sp.classes=_p,Sp.displayName=`@mantine/core/AppShellNavbar`;var Cp=A(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,grow:o,mod:s,...c}=O(`AppShellSection`,null,e),l=gp();return(0,F.jsx)(N,{mod:[{grow:o},s],...l.getStyles(`section`,{className:n,style:r,classNames:t,styles:i}),...c})});Cp.classes=_p,Cp.displayName=`@mantine/core/AppShellSection`;function wp(e){return typeof e==`object`?e.base:e}function Tp(e){let t=typeof e==`object`&&!!e&&e.base!==void 0&&Object.keys(e).length===1;return typeof e==`number`||typeof e==`string`||t}function Ep(e){return!(typeof e!=`object`||!e||Object.keys(e).length===1&&`base`in e)}function Dp({baseStyles:e,minMediaStyles:t,maxMediaStyles:n,aside:r,theme:i,mode:a}){let o=r?.width,s=`translateX(var(--app-shell-aside-width))`,c=`translateX(calc(var(--app-shell-aside-width) * -1))`;if(r?.breakpoint!==void 0&&!r?.collapsed?.mobile&&(n[r?.breakpoint]=n[r?.breakpoint]||{},a===`fixed`?(n[r?.breakpoint][`--app-shell-aside-width`]=`100%`,n[r?.breakpoint][`--app-shell-aside-offset`]=`0px`):(n[r?.breakpoint][`--app-shell-aside-width`]=`0px`,n[r?.breakpoint][`--app-shell-aside-offset`]=`0px`)),Tp(o)){let t=M(wp(o));e[`--app-shell-aside-width`]=t,e[`--app-shell-aside-offset`]=t}if(Ep(o)&&(o.base!==void 0&&(e[`--app-shell-aside-width`]=M(o.base),e[`--app-shell-aside-offset`]=M(o.base)),ke(o).forEach(e=>{e!==`base`&&(t[e]=t[e]||{},t[e][`--app-shell-aside-width`]=M(o[e]),t[e][`--app-shell-aside-offset`]=M(o[e]))})),r?.breakpoint!==void 0&&a===`static`&&(t[r.breakpoint]=t[r.breakpoint]||{},t[r.breakpoint][`--app-shell-aside-position`]=`sticky`,t[r.breakpoint][`--app-shell-aside-grid-row`]=`2`,t[r.breakpoint][`--app-shell-aside-grid-column`]=`3`,t[r.breakpoint][`--app-shell-main-column-end`]=`3`),r?.collapsed?.desktop){let e=r.breakpoint;t[e]=t[e]||{},t[e][`--app-shell-aside-transform`]=s,t[e][`--app-shell-aside-transform-rtl`]=c,a===`fixed`?t[e][`--app-shell-aside-offset`]=`0px !important`:(t[e][`--app-shell-aside-width`]=`0px`,t[e][`--app-shell-aside-display`]=`none`,t[e][`--app-shell-main-column-end`]=`-1`),t[e][`--app-shell-aside-scroll-locked-visibility`]=`hidden`}if(r?.collapsed?.mobile){let e=ma(r.breakpoint,i.breakpoints)-.1;n[e]=n[e]||{},a===`fixed`?(n[e][`--app-shell-aside-width`]=`100%`,n[e][`--app-shell-aside-offset`]=`0px`):n[e][`--app-shell-aside-width`]=`0px`,n[e][`--app-shell-aside-transform`]=s,n[e][`--app-shell-aside-transform-rtl`]=c,n[e][`--app-shell-aside-scroll-locked-visibility`]=`hidden`}}function Op({baseStyles:e,minMediaStyles:t,footer:n,mode:r}){let i=n?.height,a=r===`static`?!0:n?.offset??!0;if(r===`static`&&n&&(e[`--app-shell-footer-position`]=`sticky`,e[`--app-shell-footer-grid-column`]=`1 / -1`,e[`--app-shell-footer-grid-row`]=`3`),Tp(i)){let t=M(wp(i));e[`--app-shell-footer-height`]=t,a&&(e[`--app-shell-footer-offset`]=t)}Ep(i)&&(i.base!==void 0&&(e[`--app-shell-footer-height`]=M(i.base),a&&(e[`--app-shell-footer-offset`]=M(i.base))),ke(i).forEach(e=>{e!==`base`&&(t[e]=t[e]||{},t[e][`--app-shell-footer-height`]=M(i[e]),a&&(t[e][`--app-shell-footer-offset`]=M(i[e])))})),n?.collapsed&&(e[`--app-shell-footer-transform`]=`translateY(var(--app-shell-footer-height))`,r===`fixed`&&(e[`--app-shell-footer-offset`]=`0px !important`))}function kp({baseStyles:e,minMediaStyles:t,header:n,mode:r}){let i=n?.height,a=r===`static`?!0:n?.offset??!0;if(r===`static`&&n&&(e[`--app-shell-header-position`]=`sticky`,e[`--app-shell-header-grid-column`]=`1 / -1`,e[`--app-shell-header-grid-row`]=`1`),Tp(i)){let t=M(wp(i));e[`--app-shell-header-height`]=t,a&&(e[`--app-shell-header-offset`]=t)}Ep(i)&&(i.base!==void 0&&(e[`--app-shell-header-height`]=M(i.base),a&&(e[`--app-shell-header-offset`]=M(i.base))),ke(i).forEach(e=>{e!==`base`&&(t[e]=t[e]||{},t[e][`--app-shell-header-height`]=M(i[e]),a&&(t[e][`--app-shell-header-offset`]=M(i[e])))})),n?.collapsed&&(e[`--app-shell-header-transform`]=`translateY(calc(var(--app-shell-header-height) * -1))`,r===`fixed`&&(e[`--app-shell-header-offset`]=`0px !important`))}function Ap({baseStyles:e,minMediaStyles:t,maxMediaStyles:n,navbar:r,theme:i,mode:a}){let o=r?.width,s=`translateX(calc(var(--app-shell-navbar-width) * -1))`,c=`translateX(var(--app-shell-navbar-width))`;if(r?.breakpoint!==void 0&&!r?.collapsed?.mobile&&(n[r?.breakpoint]=n[r?.breakpoint]||{},n[r?.breakpoint][`--app-shell-navbar-offset`]=`0px`,n[r?.breakpoint][`--app-shell-navbar-width`]=`100%`,a===`static`&&(n[r?.breakpoint][`--app-shell-navbar-grid-width`]=`0px`)),Tp(o)){let t=M(wp(o));e[`--app-shell-navbar-width`]=t,e[`--app-shell-navbar-offset`]=t,a===`static`&&(e[`--app-shell-navbar-grid-width`]=t)}if(Ep(o)&&(o.base!==void 0&&(e[`--app-shell-navbar-width`]=M(o.base),e[`--app-shell-navbar-offset`]=M(o.base),a===`static`&&(e[`--app-shell-navbar-grid-width`]=M(o.base))),ke(o).forEach(e=>{e!==`base`&&(t[e]=t[e]||{},t[e][`--app-shell-navbar-width`]=M(o[e]),t[e][`--app-shell-navbar-offset`]=M(o[e]),a===`static`&&(t[e][`--app-shell-navbar-grid-width`]=M(o[e])))})),r?.breakpoint!==void 0&&a===`static`&&(t[r.breakpoint]=t[r.breakpoint]||{},t[r.breakpoint][`--app-shell-navbar-position`]=`sticky`,t[r.breakpoint][`--app-shell-navbar-grid-row`]=`2`,t[r.breakpoint][`--app-shell-navbar-grid-column`]=`1`,t[r.breakpoint][`--app-shell-main-column-start`]=`2`),r?.collapsed?.desktop){let e=r.breakpoint;t[e]=t[e]||{},t[e][`--app-shell-navbar-transform`]=s,t[e][`--app-shell-navbar-transform-rtl`]=c,a===`fixed`?t[e][`--app-shell-navbar-offset`]=`0px !important`:(t[e][`--app-shell-navbar-width`]=`0px`,t[e][`--app-shell-navbar-display`]=`none`,t[e][`--app-shell-main-column-start`]=`1`)}if(r?.collapsed?.mobile){let e=ma(r.breakpoint,i.breakpoints)-.1;n[e]=n[e]||{},n[e][`--app-shell-navbar-width`]=`100%`,n[e][`--app-shell-navbar-offset`]=`0px`,a===`static`&&(n[e][`--app-shell-navbar-grid-width`]=`0px`),n[e][`--app-shell-navbar-transform`]=s,n[e][`--app-shell-navbar-transform-rtl`]=c}}function jp(e){return Number(e)===0?`0px`:de(e)}function Mp({padding:e,baseStyles:t,minMediaStyles:n}){Tp(e)&&(t[`--app-shell-padding`]=jp(wp(e))),Ep(e)&&(e.base&&(t[`--app-shell-padding`]=jp(e.base)),ke(e).forEach(t=>{t!==`base`&&(n[t]=n[t]||{},n[t][`--app-shell-padding`]=jp(e[t]))}))}function Np({navbar:e,header:t,footer:n,aside:r,padding:i,theme:a,mode:o}){let s={},c={},l={};o===`static`&&(l[`--app-shell-main-grid-column`]=`1 / -1`,l[`--app-shell-main-grid-row`]=`2`),Ap({baseStyles:l,minMediaStyles:s,maxMediaStyles:c,navbar:e,theme:a,mode:o}),Dp({baseStyles:l,minMediaStyles:s,maxMediaStyles:c,aside:r,theme:a,mode:o}),kp({baseStyles:l,minMediaStyles:s,header:t,mode:o}),Op({baseStyles:l,minMediaStyles:s,footer:n,mode:o}),Mp({baseStyles:l,minMediaStyles:s,padding:i});let u=ha(ke(s),a.breakpoints).map(e=>({query:`(min-width: ${Re(e.px)})`,styles:s[e.value]})),d=ha(ke(c),a.breakpoints).map(e=>({query:`(max-width: ${Re(e.px)})`,styles:c[e.value]}));return{baseStyles:l,media:[...u,...d]}}function Pp({navbar:e,header:t,aside:n,footer:r,padding:i,mode:a,selector:o}){let s=x(),c=He(),{media:l,baseStyles:u}=Np({navbar:e,header:t,footer:r,aside:n,padding:i,theme:s,mode:a});return(0,F.jsx)(be,{media:l,styles:u,selector:o||c.cssVariablesSelector})}function Fp({transitionDuration:e,disabled:t}){let[n,r]=(0,P.useState)(!0),i=(0,P.useRef)(-1),a=(0,P.useRef)(-1);return Fa(`resize`,()=>{r(!0),clearTimeout(i.current),i.current=window.setTimeout(()=>(0,P.startTransition)(()=>{r(!1)}),200)}),Ee(()=>{r(!0),clearTimeout(a.current),a.current=window.setTimeout(()=>(0,P.startTransition)(()=>{r(!1)}),e||0)},[t,e]),n}var Ip={withBorder:!0,padding:0,transitionDuration:200,transitionTimingFunction:`ease`,zIndex:ua(`app`),mode:`fixed`},Lp=k((e,{transitionDuration:t,transitionTimingFunction:n})=>({root:{"--app-shell-transition-duration":`${t}ms`,"--app-shell-transition-timing-function":n}})),Rp=_(e=>{let t=O(`AppShell`,Ip,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,navbar:c,withBorder:l,padding:u,transitionDuration:d,transitionTimingFunction:f,header:p,zIndex:m,layout:h,disabled:g,aside:_,footer:v,offsetScrollbars:y=!0,mode:b,mod:x,attributes:S,id:C,...w}=t,E=T({name:`AppShell`,classes:_p,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:S,vars:s,varsResolver:Lp}),D=Fp({disabled:g,transitionDuration:d}),k=pe(C);return(0,F.jsxs)(hp,{value:{getStyles:E,withBorder:l,zIndex:m,disabled:g,offsetScrollbars:y,mode:b},children:[(0,F.jsx)(Pp,{navbar:c,header:p,aside:_,footer:v,padding:u,mode:b,selector:b===`static`?`#${k}`:void 0}),(0,F.jsx)(N,{...E(`root`),id:k,mod:[{resizing:D,layout:h,disabled:g,mode:b},x],...w})]})});Rp.classes=_p,Rp.varsResolver=Lp,Rp.displayName=`@mantine/core/AppShell`,Rp.Navbar=Sp,Rp.Header=bp,Rp.Main=xp,Rp.Aside=vp,Rp.Footer=yp,Rp.Section=Cp;function zp({size:e,style:t,...n}){return(0,F.jsx)(`svg`,{viewBox:`0 0 10 7`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,style:e===void 0?t:{width:M(e),height:M(e),...t},"aria-hidden":!0,...n,children:(0,F.jsx)(`path`,{d:`M4 4.586L1.707 2.293A1 1 0 1 0 .293 3.707l3 3a.997.997 0 0 0 1.414 0l5-5A1 1 0 1 0 8.293.293L4 4.586z`,fill:`currentColor`,fillRule:`evenodd`,clipRule:`evenodd`})})}var Bp={group:`m_11def92b`,root:`m_f85678b6`,image:`m_11f8ac07`,placeholder:`m_104cd71f`},Vp=(0,P.createContext)({withinGroup:!1}),Hp=k((e,{spacing:t})=>({group:{"--ag-spacing":de(t)}})),Up=_(e=>{let t=O(`AvatarGroup`,null,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,spacing:c,attributes:l,...u}=t,d=T({name:`AvatarGroup`,classes:Bp,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:l,vars:s,varsResolver:Hp,rootSelector:`group`});return(0,F.jsx)(Vp,{value:{withinGroup:!0},children:(0,F.jsx)(N,{...d(`group`),...u})})});Up.classes=Bp,Up.varsResolver=Hp,Up.displayName=`@mantine/core/AvatarGroup`;function Wp(e){return(0,F.jsx)(`svg`,{...e,"data-avatar-placeholder-icon":!0,viewBox:`0 0 15 15`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,children:(0,F.jsx)(`path`,{d:`M0.877014 7.49988C0.877014 3.84219 3.84216 0.877045 7.49985 0.877045C11.1575 0.877045 14.1227 3.84219 14.1227 7.49988C14.1227 11.1575 11.1575 14.1227 7.49985 14.1227C3.84216 14.1227 0.877014 11.1575 0.877014 7.49988ZM7.49985 1.82704C4.36683 1.82704 1.82701 4.36686 1.82701 7.49988C1.82701 8.97196 2.38774 10.3131 3.30727 11.3213C4.19074 9.94119 5.73818 9.02499 7.50023 9.02499C9.26206 9.02499 10.8093 9.94097 11.6929 11.3208C12.6121 10.3127 13.1727 8.97172 13.1727 7.49988C13.1727 4.36686 10.6328 1.82704 7.49985 1.82704ZM10.9818 11.9787C10.2839 10.7795 8.9857 9.97499 7.50023 9.97499C6.01458 9.97499 4.71624 10.7797 4.01845 11.9791C4.97952 12.7272 6.18765 13.1727 7.49985 13.1727C8.81227 13.1727 10.0206 12.727 10.9818 11.9787ZM5.14999 6.50487C5.14999 5.207 6.20212 4.15487 7.49999 4.15487C8.79786 4.15487 9.84999 5.207 9.84999 6.50487C9.84999 7.80274 8.79786 8.85487 7.49999 8.85487C6.20212 8.85487 5.14999 7.80274 5.14999 6.50487ZM7.49999 5.10487C6.72679 5.10487 6.09999 5.73167 6.09999 6.50487C6.09999 7.27807 6.72679 7.90487 7.49999 7.90487C8.27319 7.90487 8.89999 7.27807 8.89999 6.50487C8.89999 5.73167 8.27319 5.10487 7.49999 5.10487Z`,fill:`currentColor`,fillRule:`evenodd`,clipRule:`evenodd`})})}function Gp(e){let t=0;for(let n=0;ne[0]).slice(0,t).join(``).toUpperCase()}var Yp=k((e,{size:t,radius:n,variant:r,gradient:i,color:a,autoContrast:o,name:s,allowedInitialsColors:c})=>{let l=a===`initials`&&typeof s==`string`?qp(s,c):a,u=e.variantColorResolver({color:l||`gray`,theme:e,gradient:i,variant:r||`light`,autoContrast:o});return{root:{"--avatar-size":Pe(t,`avatar-size`),"--avatar-radius":n===void 0?void 0:ce(n),"--avatar-bg":l||r?u.background:void 0,"--avatar-color":l||r?u.color:void 0,"--avatar-bd":l||r?u.border:void 0}}}),Xp=A(e=>{let t=O(`Avatar`,null,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,src:c,alt:l,radius:u,color:d,gradient:f,imageProps:p,children:m,autoContrast:h,mod:g,name:_,allowedInitialsColors:v,attributes:y,...b}=t,x=(0,P.use)(Vp),[S,C]=(0,P.useState)(!c),w=T({name:`Avatar`,props:t,classes:Bp,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:y,vars:s,varsResolver:Yp});return(0,P.useEffect)(()=>C(!c),[c]),(0,F.jsx)(N,{...w(`root`),mod:[{"within-group":x.withinGroup},g],...b,children:S||!c?(0,F.jsx)(`span`,{...w(`placeholder`),title:l,children:m||typeof _==`string`&&Jp(_)||(0,F.jsx)(Wp,{})}):(0,F.jsx)(`img`,{...p,...w(`image`),src:c,alt:l,onError:e=>{C(!0),p?.onError?.(e)}})})});Xp.classes=Bp,Xp.varsResolver=Yp,Xp.displayName=`@mantine/core/Avatar`,Xp.Group=Up;var Zp={root:`m_3eebeb36`,label:`m_9e365f20`},Qp={orientation:`horizontal`},$p=k((e,{color:t,variant:n,size:r})=>({root:{"--divider-color":t?S(t,e):void 0,"--divider-border-style":n,"--divider-size":Pe(r,`divider-size`)}})),em=_(e=>{let t=O(`Divider`,Qp,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,color:c,orientation:l,label:u,labelPosition:d,mod:f,attributes:p,...m}=t,h=T({name:`Divider`,classes:Zp,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:p,vars:s,varsResolver:$p});return(0,F.jsx)(N,{mod:[{orientation:l,withLabel:!!u},f],role:`separator`,...h(`root`),...m,children:u&&(0,F.jsx)(N,{component:`span`,mod:{position:d},...h(`label`),children:u})})});em.classes=Zp,em.varsResolver=$p,em.displayName=`@mantine/core/Divider`;var[tm,nm]=ra(`Drawer component was not found in tree`),rm={root:`m_f11b401e`,header:`m_5a7c2c9`,content:`m_b8a05bbd`,inner:`m_31cd769a`},im=_(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,...o}=O(`DrawerBody`,null,e);return(0,F.jsx)(ip,{...nm().getStyles(`body`,{classNames:t,style:r,styles:i,className:n}),...o})});im.classes=rm,im.displayName=`@mantine/core/DrawerBody`;var am=_(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,...o}=O(`DrawerCloseButton`,null,e);return(0,F.jsx)(ap,{...nm().getStyles(`close`,{classNames:t,style:r,styles:i,className:n}),...o})});am.classes=rm,am.displayName=`@mantine/core/DrawerCloseButton`;var om=_(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,children:o,radius:s,__hidden:c,...l}=O(`DrawerContent`,null,e),u=nm(),d=u.scrollAreaComponent||pp;return(0,F.jsx)(op,{...u.getStyles(`content`,{className:n,style:r,styles:i,classNames:t}),innerProps:u.getStyles(`inner`,{className:n,style:r,styles:i,classNames:t}),...l,radius:s||u.radius||0,"data-hidden":c||void 0,children:(0,F.jsx)(d,{style:{height:`calc(100vh - var(--drawer-offset) * 2)`},children:o})})});om.classes=rm,om.displayName=`@mantine/core/DrawerContent`;var sm=_(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,...o}=O(`DrawerHeader`,null,e);return(0,F.jsx)(sp,{...nm().getStyles(`header`,{classNames:t,style:r,styles:i,className:n}),...o})});sm.classes=rm,sm.displayName=`@mantine/core/DrawerHeader`;var cm=_(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,...o}=O(`DrawerOverlay`,null,e);return(0,F.jsx)(up,{...nm().getStyles(`overlay`,{classNames:t,style:r,styles:i,className:n}),...o})});cm.classes=rm,cm.displayName=`@mantine/core/DrawerOverlay`;function lm(e){switch(e){case`top`:return`flex-start`;case`bottom`:return`flex-end`;default:return}}function um(e){if(e===`top`||e===`bottom`)return`0 0 calc(100% - var(--drawer-offset, 0rem) * 2)`}var dm={top:`slide-down`,bottom:`slide-up`,left:`slide-right`,right:`slide-left`},fm={top:`slide-down`,bottom:`slide-up`,right:`slide-right`,left:`slide-left`},pm={closeOnClickOutside:!0,withinPortal:!0,lockScroll:!0,trapFocus:!0,returnFocus:!0,closeOnEscape:!0,keepMounted:!1,zIndex:ua(`modal`),position:`left`},mm=k((e,{position:t,size:n,offset:r})=>({root:{"--drawer-size":Pe(n,`drawer-size`),"--drawer-flex":um(t),"--drawer-height":t===`left`||t===`right`?void 0:`var(--drawer-size)`,"--drawer-align":lm(t),"--drawer-justify":t===`right`?`flex-end`:void 0,"--drawer-offset":M(r)}})),hm=_(e=>{let t=O(`DrawerRoot`,pm,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,scrollAreaComponent:c,position:l,transitionProps:u,radius:d,attributes:f,...p}=t,{dir:m}=So(),h=T({name:`Drawer`,classes:rm,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:f,vars:s,varsResolver:mm}),g=(m===`rtl`?fm:dm)[l];return(0,F.jsx)(tm,{value:{scrollAreaComponent:c,getStyles:h,radius:d},children:(0,F.jsx)(tp,{...h(`root`),transitionProps:{transition:g,...u},"data-offset-scrollbars":c===Ru.Autosize||void 0,unstyled:o,...p})})});hm.classes=rm,hm.varsResolver=mm,hm.displayName=`@mantine/core/DrawerRoot`;var gm=(0,P.createContext)(null);function _m({children:e}){let[t,n]=(0,P.useState)([]),[r,i]=(0,P.useState)(ua(`modal`));return(0,F.jsx)(gm,{value:{stack:t,addModal:(e,t)=>{n(t=>[...new Set([...t,e])]),i(e=>typeof t==`number`&&typeof e==`number`?Math.max(e,t):e)},removeModal:e=>n(t=>t.filter(t=>t!==e)),getZIndex:e=>`calc(${r} + ${t.indexOf(e)} + 1)`,currentId:t[t.length-1],maxZIndex:r},children:e})}_m.displayName=`@mantine/core/DrawerStack`;var vm=_(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,...o}=O(`DrawerTitle`,null,e);return(0,F.jsx)(fp,{...nm().getStyles(`title`,{classNames:t,style:r,styles:i,className:n}),...o})});vm.classes=rm,vm.displayName=`@mantine/core/DrawerTitle`;var ym={closeOnClickOutside:!0,withinPortal:!0,lockScroll:!0,trapFocus:!0,returnFocus:!0,closeOnEscape:!0,keepMounted:!1,zIndex:ua(`modal`),withOverlay:!0,withCloseButton:!0},bm=_(e=>{let{title:t,withOverlay:n,overlayProps:r,withCloseButton:i,closeButtonProps:a,children:o,opened:s,stackId:c,zIndex:l,...u}=O(`Drawer`,ym,e),d=(0,P.use)(gm),f=!!t||i,p=d&&c?{closeOnEscape:d.currentId===c,trapFocus:d.currentId===c,zIndex:d.getZIndex(c)}:{},m=n===!1?!1:c&&d?d.currentId===c:s;return(0,P.useEffect)(()=>{d&&c&&(s?d.addModal(c,l||ua(`modal`)):d.removeModal(c))},[s,c,l]),(0,F.jsxs)(hm,{opened:s,zIndex:d&&c?d.getZIndex(c):l,...u,...p,children:[n&&(0,F.jsx)(cm,{visible:m,transitionProps:d&&c?{duration:0}:void 0,...r}),(0,F.jsxs)(om,{__hidden:d&&c&&s?c!==d.currentId:!1,children:[f&&(0,F.jsxs)(sm,{children:[t&&(0,F.jsx)(vm,{children:t}),i&&(0,F.jsx)(am,{...a})]}),(0,F.jsx)(im,{children:o})]})]})});bm.classes=rm,bm.displayName=`@mantine/core/Drawer`,bm.Root=hm,bm.Overlay=cm,bm.Content=om,bm.Body=im,bm.Header=sm,bm.Title=vm,bm.CloseButton=am,bm.Stack=_m;var xm=[`borderBottomWidth`,`borderLeftWidth`,`borderRightWidth`,`borderTopWidth`,`boxSizing`,`fontFamily`,`fontSize`,`fontStyle`,`fontWeight`,`letterSpacing`,`lineHeight`,`paddingBottom`,`paddingLeft`,`paddingRight`,`paddingTop`,`tabSize`,`textIndent`,`textRendering`,`textTransform`,`width`,`wordBreak`,`wordSpacing`,`scrollbarGutter`],Sm={"min-height":`0`,"max-height":`none`,height:`0`,visibility:`hidden`,overflow:`hidden`,position:`absolute`,"z-index":`-1000`,top:`0`,right:`0`,display:`block`};function Cm(e){Object.keys(Sm).forEach(t=>{e.style.setProperty(t,Sm[t],`important`)})}function wm(e){let t=window.getComputedStyle(e);if(t===null)return null;let n={};for(let e of xm)n[e]=t[e];return n.boxSizing===``?null:{sizingStyle:n,paddingSize:parseFloat(n.paddingBottom)+parseFloat(n.paddingTop),borderSize:parseFloat(n.borderBottomWidth)+parseFloat(n.borderTopWidth)}}var Tm=null;function Em(e,t,n=1,r=1/0){Tm||(Tm=document.createElement(`textarea`),Tm.setAttribute(`tabindex`,`-1`),Tm.setAttribute(`aria-hidden`,`true`),Tm.setAttribute(`aria-label`,`autosize measurement`),Cm(Tm)),Tm.parentNode===null&&document.body.appendChild(Tm);let{paddingSize:i,borderSize:a,sizingStyle:o}=e,{boxSizing:s}=o;Object.keys(o).forEach(e=>{Tm.style[e]=o[e]}),Cm(Tm),Tm.value=t;let c=s===`border-box`?Tm.scrollHeight+a:Tm.scrollHeight-i;Tm.value=t,c=s===`border-box`?Tm.scrollHeight+a:Tm.scrollHeight-i,Tm.value=`x`;let l=Tm.scrollHeight-i,u=l*n;s===`border-box`&&(u=u+i+a),c=Math.max(u,c);let d=l*r;return s===`border-box`&&(d=d+i+a),c=Math.min(d,c),[c,l]}function Dm({maxRows:e,minRows:t,onChange:n,ref:r,...i}){let a=i.value!==void 0,o=(0,P.useRef)(null),s=Ra(o,r),c=(0,P.useRef)(0),l=(0,P.useRef)(0),u=()=>{let n=o.current;if(!n)return;let r=wm(n);if(!r)return;let[i]=Em(r,n.value||n.placeholder||`x`,t,e);c.current!==i&&(c.current=i,n.style.setProperty(`height`,`${i}px`,`important`))},d=e=>{a||u(),n?.(e)};return(0,P.useLayoutEffect)(u),(0,P.useEffect)(()=>{let e=()=>u();return window.addEventListener(`resize`,e),()=>window.removeEventListener(`resize`,e)},[]),(0,P.useEffect)(()=>{let e=o.current;if(!e||typeof ResizeObserver>`u`)return;l.current=e.offsetWidth;let t=new ResizeObserver(()=>{o.current&&o.current.offsetWidth!==l.current&&(l.current=o.current.offsetWidth,u())});return t.observe(e),()=>t.disconnect()},[]),(0,P.useEffect)(()=>{let e=()=>u();return document.fonts.addEventListener(`loadingdone`,e),()=>document.fonts.removeEventListener(`loadingdone`,e)},[]),(0,P.useEffect)(()=>{let e=e=>{if(o.current?.form===e.target&&!a){let e=o.current.value;requestAnimationFrame(()=>{o.current&&e!==o.current.value&&u()})}};return document.body.addEventListener(`reset`,e),()=>document.body.removeEventListener(`reset`,e)},[a]),(0,F.jsx)(`textarea`,{rows:t,...i,onChange:d,ref:s})}var Om=_(e=>{let{autosize:t,maxRows:n,minRows:r,__staticSelector:i,resize:a,bottomSection:o,bottomSectionProps:s,...c}=O([`Input`,`InputWrapper`,`Textarea`],null,e),l=t&&Ka()!==`test`,u=l?{maxRows:n,minRows:r}:{};return(0,F.jsx)(ge,{component:l?Dm:`textarea`,...c,__staticSelector:i||`Textarea`,__bottomSection:o,__bottomSectionProps:s,multiline:!0,"data-no-overflow":t&&n===void 0||void 0,__vars:{"--input-resize":a},...u})});Om.classes=ge.classes,Om.displayName=`@mantine/core/Textarea`;var[km,Am]=ra(`Menu component was not found in the tree`),jm=(0,P.createContext)(null);function Mm(e){let{value:t,defaultValue:n,onChange:r,children:i}=O(`MenuCheckboxGroup`,null,e),[a,o]=za({value:t,defaultValue:n,finalValue:[],onChange:r});return(0,F.jsx)(jm,{value:{values:a,onChange:(0,P.useCallback)(e=>{o(a.includes(e)?a.filter(t=>t!==e):[...a,e])},[a,o])},children:i})}Mm.displayName=`@mantine/core/MenuCheckboxGroup`;var Nm=(0,P.createContext)(null);function Pm({role:e,checked:t,indicator:n,onSelect:r,color:i,closeMenuOnClick:a,rightSection:o,children:s,disabled:c,dataDisabled:l,className:u,style:d,styles:f,classNames:p,buttonRef:m,others:h}){let _=Am(),v=(0,P.use)(Nm),y=x(),{dir:b}=So(),S=(0,P.useRef)(null),C=pa(h.onClick,()=>{l||(r(),a&&_.closeDropdownImmediately())}),w=pa(h.onMouseMove,()=>{if(!_.hasSearch)return;let e=S.current?.closest(`[data-menu-dropdown]`);e&&e.querySelectorAll(`[data-menu-active]`).forEach(t=>{t!==S.current&&t.closest(`[data-menu-dropdown]`)===e&&t.removeAttribute(`data-menu-active`)})}),T=pa(h.onKeyDown,e=>{e.key===`ArrowLeft`&&v&&(v.close(),v.focusParentItem())}),E=i?y.variantColorResolver({color:i,theme:y,variant:`light`}):void 0,D=i?ie({color:i,theme:y}):null,O=_.alignItemsLabels!==`none`||t;return(0,F.jsxs)(g,{onMouseDown:e=>e.preventDefault(),...h,unstyled:_.unstyled,tabIndex:_.menuItemTabIndex,..._.getStyles(`item`,{className:u,style:d,styles:f,classNames:p}),ref:Ra(S,m),role:e,"aria-checked":t,disabled:c,"data-menu-item":!0,"data-checked":t||void 0,"data-disabled":c||l||void 0,"data-mantine-stop-propagation":!0,onClick:C,onMouseMove:w,onKeyDown:ca({siblingSelector:`[data-menu-item]:not([data-disabled])`,parentSelector:`[data-menu-dropdown]`,activateOnFocus:!1,loop:_.loop,dir:b,orientation:`vertical`,onKeyDown:T}),__vars:{"--menu-item-color":D?.isThemeColor&&D?.shade===void 0?`var(--mantine-color-${D.color}-6)`:E?.color,"--menu-item-hover":E?.hover},children:[O&&(0,F.jsx)(`div`,{..._.getStyles(`itemIndicator`,{styles:f,classNames:p}),"data-checked":t||void 0,children:t?n:null}),s&&(0,F.jsx)(`div`,{..._.getStyles(`itemLabel`,{styles:f,classNames:p}),"data-menu-item-label":!0,children:s}),o&&(0,F.jsx)(`div`,{..._.getStyles(`itemSection`,{styles:f,classNames:p}),"data-position":`right`,children:o})]})}var Fm={dropdown:`m_dc9b7c9f`,label:`m_9bfac126`,divider:`m_efdf90cb`,item:`m_99ac2aa1`,search:`m_ef8769b6`,itemLabel:`m_5476e0d3`,itemIndicator:`m_8395186e`,itemSection:`m_8b75e504`,chevron:`m_b85b0bed`},Im=_(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,color:o,closeMenuOnClick:s,rightSection:c,children:l,disabled:u,"data-disabled":d,value:f,checked:p,defaultChecked:m,onChange:h,checkIcon:g,ref:_,...v}=O(`MenuCheckboxItem`,null,e),y=Am(),b=(0,P.use)(jm),x=b&&f!==void 0?b.values.includes(f):void 0,[S,C]=za({value:p??x,defaultValue:m,finalValue:!1,onChange:h});return(0,F.jsx)(Pm,{role:`menuitemcheckbox`,checked:S,indicator:g??y.checkIcon??(0,F.jsx)(zp,{size:10}),onSelect:()=>{h?C(!S):b&&f!==void 0?b.onChange(f):C(!S)},color:o,closeMenuOnClick:s,rightSection:c,disabled:u,dataDisabled:d,className:n,style:r,styles:i,classNames:t,buttonRef:_,others:v,children:l})});Im.classes=Fm,Im.displayName=`@mantine/core/MenuCheckboxItem`;function Lm(e){let{children:t,disabled:n,longPressDelay:r}=O(`MenuContextMenu`,null,e),i=Ja(t);if(!i)throw Error(`Menu.ContextMenu component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported`);let a=Am(),o=ld();return(0,P.cloneElement)(i,ud({childProps:i.props,disabled:n||o.disabled,opened:a.opened,longPressDelay:r,setReference:o.reference,open:()=>a.openDropdown()}))}Lm.displayName=`@mantine/core/MenuContextMenu`;var Rm=_(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,...o}=O(`MenuDivider`,null,e);return(0,F.jsx)(N,{...Am().getStyles(`divider`,{className:n,style:r,styles:i,classNames:t}),...o})});Rm.classes=Fm,Rm.displayName=`@mantine/core/MenuDivider`;var zm=500;function Bm(e){return((e.querySelector(`[data-menu-item-label]`)??e).textContent??``).trim().toLowerCase()}function Vm(e){return e.length>1&&e.split(``).every(t=>t===e[0])}function Hm({enabled:e,opened:t,getDropdown:n}){let r=(0,P.useRef)({buffer:``,timeoutId:null});return(0,P.useEffect)(()=>{if(t&&e)return;let n=r.current;n.timeoutId!==null&&(window.clearTimeout(n.timeoutId),n.timeoutId=null),n.buffer=``},[t,e]),(0,P.useEffect)(()=>()=>{let{timeoutId:e}=r.current;e!==null&&window.clearTimeout(e)},[]),t=>{if(!e||t.defaultPrevented||t.ctrlKey||t.metaKey||t.altKey||t.key.length!==1||t.key===` `)return;let i=t.target;if(i&&(i.tagName===`INPUT`||i.tagName===`TEXTAREA`||i.tagName===`SELECT`||i.isContentEditable))return;let a=n();if(!a)return;let o=Array.from(a.querySelectorAll(`[data-menu-item]:not([data-disabled])`)).filter(e=>e.closest(`[data-menu-dropdown]`)===a);if(o.length===0)return;let s=r.current;s.buffer=(s.buffer+t.key).toLowerCase(),s.timeoutId!==null&&window.clearTimeout(s.timeoutId),s.timeoutId=window.setTimeout(()=>{s.buffer=``,s.timeoutId=null},zm);let c=document.activeElement,l=c?o.indexOf(c):-1,u=null;if(s.buffer.length===1||Vm(s.buffer)){let e=s.buffer[0],t=l+1;for(let n=0;n{let{classNames:t,className:n,style:r,styles:i,vars:a,onMouseEnter:o,onMouseLeave:s,onKeyDown:c,children:l,ref:u,...d}=O(`MenuDropdown`,null,e),f=(0,P.useRef)(null),p=Am(),m=Hm({enabled:!p.hasSearch,opened:p.opened,getDropdown:()=>f.current}),h=pa(c,e=>{m(e),!(e.defaultPrevented||p.hasSearch)&&(e.key===`ArrowUp`||e.key===`ArrowDown`)&&(e.preventDefault(),f.current?.querySelectorAll(`[data-menu-item]:not(:disabled)`)[0]?.focus())}),g=pa(o,()=>(p.trigger===`hover`||p.trigger===`click-hover`)&&p.openDropdown()),_=pa(s,()=>(p.trigger===`hover`||p.trigger===`click-hover`)&&p.closeDropdown());return(0,F.jsxs)(Cd.Dropdown,{...d,onMouseEnter:g,onMouseLeave:_,role:`menu`,"aria-orientation":`vertical`,ref:Ra(u,f),...p.getStyles(`dropdown`,{className:n,style:r,styles:i,classNames:t,withStaticClass:!1}),tabIndex:-1,"data-menu-dropdown":!0,onKeyDown:h,children:[p.withInitialFocusPlaceholder&&!p.hasSearch&&(0,F.jsx)(`div`,{role:`presentation`,tabIndex:-1,"data-autofocus":!0,"data-mantine-stop-propagation":!0,style:{outline:0}}),l]})});Um.classes=Fm,Um.displayName=`@mantine/core/MenuDropdown`;var Wm=A(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,color:o,closeMenuOnClick:s,leftSection:c,rightSection:l,children:u,disabled:d,"data-disabled":f,ref:p,...m}=O(`MenuItem`,null,e),h=Am(),_=(0,P.use)(Nm),v=x(),{dir:y}=So(),b=(0,P.useRef)(null),S=m,C=pa(S.onClick,()=>{f||(typeof s==`boolean`?s&&h.closeDropdownImmediately():h.closeOnItemClick&&h.closeDropdownImmediately())}),w=pa(S.onMouseMove,()=>{if(!h.hasSearch)return;let e=b.current?.closest(`[data-menu-dropdown]`);e&&e.querySelectorAll(`[data-menu-active]`).forEach(t=>{t!==b.current&&t.closest(`[data-menu-dropdown]`)===e&&t.removeAttribute(`data-menu-active`)})}),T=o?v.variantColorResolver({color:o,theme:v,variant:`light`}):void 0,E=o?ie({color:o,theme:v}):null,D=pa(S.onKeyDown,e=>{e.key===`ArrowLeft`&&_&&(_.close(),_.focusParentItem())});return(0,F.jsxs)(g,{onMouseDown:e=>e.preventDefault(),...m,unstyled:h.unstyled,tabIndex:h.menuItemTabIndex,...h.getStyles(`item`,{className:n,style:r,styles:i,classNames:t}),ref:Ra(b,p),role:`menuitem`,disabled:d,"data-menu-item":!0,"data-disabled":d||f||void 0,"data-mantine-stop-propagation":!0,onClick:C,onMouseMove:w,onKeyDown:ca({siblingSelector:`[data-menu-item]:not([data-disabled])`,parentSelector:`[data-menu-dropdown]`,activateOnFocus:!1,loop:h.loop,dir:y,orientation:`vertical`,onKeyDown:D}),__vars:{"--menu-item-color":E?.isThemeColor&&E?.shade===void 0?`var(--mantine-color-${E.color}-6)`:T?.color,"--menu-item-hover":T?.hover},children:[h.alignItemsLabels===`all`&&(0,F.jsx)(`div`,{...h.getStyles(`itemIndicator`,{styles:i,classNames:t}),"data-placeholder":!0}),c&&(0,F.jsx)(`div`,{...h.getStyles(`itemSection`,{styles:i,classNames:t}),"data-position":`left`,children:c}),u&&(0,F.jsx)(`div`,{...h.getStyles(`itemLabel`,{styles:i,classNames:t}),"data-menu-item-label":!0,children:u}),l&&(0,F.jsx)(`div`,{...h.getStyles(`itemSection`,{styles:i,classNames:t}),"data-position":`right`,children:l})]})});Wm.classes=Fm,Wm.displayName=`@mantine/core/MenuItem`;var Gm=_(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,...o}=O(`MenuLabel`,null,e);return(0,F.jsx)(N,{...Am().getStyles(`label`,{className:n,style:r,styles:i,classNames:t}),...o})});Gm.classes=Fm,Gm.displayName=`@mantine/core/MenuLabel`;var Km=(0,P.createContext)(null);function qm(e){let{value:t,defaultValue:n,onChange:r,children:i}=O(`MenuRadioGroup`,null,e),[a,o]=za({value:t,defaultValue:n,finalValue:null,onChange:r});return(0,F.jsx)(Km,{value:{value:a,onChange:e=>o(e)},children:i})}qm.displayName=`@mantine/core/MenuRadioGroup`;function Jm({size:e,style:t,...n}){return(0,F.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 5 5`,style:{width:M(e),height:M(e),...t},"aria-hidden":!0,...n,children:(0,F.jsx)(`circle`,{cx:`2.5`,cy:`2.5`,r:`2.5`,fill:`currentColor`})})}var Ym=_(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,color:o,closeMenuOnClick:s,rightSection:c,children:l,disabled:u,"data-disabled":d,value:f,checked:p,onChange:m,checkIcon:h,ref:g,..._}=O(`MenuRadioItem`,null,e),v=Am(),y=(0,P.use)(Km),b=p??(y?y.value===f:!1);return(0,F.jsx)(Pm,{role:`menuitemradio`,checked:b,indicator:h??v.checkIcon??(0,F.jsx)(Jm,{size:5}),onSelect:()=>{b||(m?m(f):y&&y.onChange(f))},color:o,closeMenuOnClick:s,rightSection:c,disabled:u,dataDisabled:d,className:n,style:r,styles:i,classNames:t,buttonRef:g,others:_,children:l})});Ym.classes=Fm,Ym.displayName=`@mantine/core/MenuRadioItem`;var Xm=`[data-menu-item]:not([data-disabled])`,Zm=`[data-menu-active]`;function Qm(e){return e?.closest(`[data-menu-dropdown]`)}function $m(e){return e?Array.from(e.querySelectorAll(Xm)).filter(t=>t.closest(`[data-menu-dropdown]`)===e):[]}function eh(e){e&&e.querySelectorAll(Zm).forEach(t=>{t.closest(`[data-menu-dropdown]`)===e&&t.removeAttribute(`data-menu-active`)})}function th(e,t){eh(t),e&&(e.setAttribute(`data-menu-active`,`true`),e.scrollIntoView({block:`nearest`}))}function nh(e){return e.findIndex(e=>e.hasAttribute(`data-menu-active`))}var rh={clearSearchOnClose:!0},ih=_(e=>{let{classNames:t,styles:n,onKeyDown:r,onChange:i,size:a,clearSearchOnClose:o,ref:s,...c}=O(`MenuSearch`,rh,e),l=Am(),u=(0,P.useRef)(null),d=Ra(s,u),f=(0,P.useRef)(i);f.current=i,(0,P.useEffect)(()=>l.registerSearch(),[l.registerSearch]),(0,P.useEffect)(()=>{o?l.searchExitClearRef.current=()=>{f.current?.({currentTarget:{value:``}})}:l.searchExitClearRef.current=null},[o,l.searchExitClearRef]),(0,P.useEffect)(()=>{l.opened||eh(Qm(u.current))},[l.opened]);let p=pa(i,e=>{eh(Qm(e.currentTarget))}),m=pa(r,e=>{if(e.defaultPrevented)return;let t=Qm(e.currentTarget),n=$m(t);if(e.key===`ArrowDown`){if(e.preventDefault(),n.length===0)return;let r=nh(n);th(n[r>=n.length-1?l.loop?0:r:r+1]??null,t)}else if(e.key===`ArrowUp`){if(e.preventDefault(),n.length===0)return;let r=nh(n);th(n[r<=0?r===-1||l.loop?n.length-1:0:r-1]??null,t)}else if(e.key===`Home`)e.preventDefault(),n.length>0&&th(n[0],t);else if(e.key===`End`)e.preventDefault(),n.length>0&&th(n[n.length-1],t);else if(e.key===`Enter`){if(e.nativeEvent.isComposing||e.nativeEvent.keyCode===229)return;let t=n[nh(n)];t&&(e.preventDefault(),t.hasAttribute(`data-sub-menu-item`)?(t.focus(),t.dispatchEvent(new KeyboardEvent(`keydown`,{key:`ArrowRight`,bubbles:!0}))):t.click())}}),h=l.getStyles(`search`);return(0,F.jsx)(oe,{"data-autofocus":!0,"data-mantine-stop-propagation":!0,type:`search`,size:a,...c,ref:d,classNames:[{input:h.className},t],styles:[{input:h.style},n],onKeyDown:m,onChange:p,__staticSelector:`Menu`})});ih.classes=Fm,ih.displayName=`@mantine/core/MenuSearch`;var ah=_(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,onMouseEnter:o,onMouseLeave:s,onPointerEnter:c,onPointerLeave:l,onKeyDown:u,children:d,ref:f,...p}=O(`MenuSubDropdown`,null,e),m=(0,P.useRef)(null),h=Am(),g=(0,P.use)(Nm),_=Hm({enabled:!h.hasSearch,opened:g?.opened??!1,getDropdown:()=>m.current}),v=pa(u,e=>{_(e),!e.ctrlKey&&!e.metaKey&&!e.altKey&&e.key.length===1&&e.key!==` `&&e.stopPropagation()}),y=g?.getFloatingProps({onMouseEnter:o,onMouseLeave:s,onPointerEnter:c,onPointerLeave:l});return(0,F.jsx)(Cd.Dropdown,{...p,...y,role:`menu`,"aria-orientation":`vertical`,ref:Ra(f,m,g?.setFloating),...h.getStyles(`dropdown`,{className:n,style:r,styles:i,classNames:t,withStaticClass:!1}),tabIndex:-1,"data-menu-dropdown":!0,onKeyDown:v,children:d})});ah.classes=Fm,ah.displayName=`@mantine/core/MenuSubDropdown`;var oh=A(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,color:o,leftSection:s,rightSection:c,children:l,disabled:u,"data-disabled":d,closeMenuOnClick:f,ref:p,...m}=O(`MenuSubItem`,null,e),h=Am(),_=(0,P.use)(Nm),v=x(),{dir:y}=So(),b=(0,P.useRef)(null),S=m,C=o?v.variantColorResolver({color:o,theme:v,variant:`light`}):void 0,w=o?ie({color:o,theme:v}):null,T=pa(S.onKeyDown,e=>{e.key===`ArrowRight`&&(_?.open(),_?.focusFirstItem()),e.key===`ArrowLeft`&&_?.parentContext&&(_.parentContext.close(),_.parentContext.focusParentItem())}),E=pa(S.onClick,()=>{!d&&f&&h.closeDropdownImmediately()}),D=pa(S.onMouseMove,()=>{if(!h.hasSearch)return;let e=b.current?.closest(`[data-menu-dropdown]`);e&&e.querySelectorAll(`[data-menu-active]`).forEach(t=>{t!==b.current&&t.closest(`[data-menu-dropdown]`)===e&&t.removeAttribute(`data-menu-active`)})}),k=_?.getReferenceProps({onMouseEnter:S.onMouseEnter,onMouseLeave:S.onMouseLeave,onPointerEnter:S.onPointerEnter,onPointerLeave:S.onPointerLeave});return(0,F.jsxs)(g,{onMouseDown:e=>e.preventDefault(),...m,...k,unstyled:h.unstyled,tabIndex:h.menuItemTabIndex,...h.getStyles(`item`,{className:n,style:r,styles:i,classNames:t}),ref:Ra(b,p,_?.setReference),role:`menuitem`,disabled:u,"data-menu-item":!0,"data-sub-menu-item":!0,"data-disabled":u||d||void 0,"data-mantine-stop-propagation":!0,onClick:E,onMouseMove:D,onKeyDown:ca({siblingSelector:`[data-menu-item]:not([data-disabled])`,parentSelector:`[data-menu-dropdown]`,activateOnFocus:!1,loop:h.loop,dir:y,orientation:`vertical`,onKeyDown:T}),__vars:{"--menu-item-color":w?.isThemeColor&&w?.shade===void 0?`var(--mantine-color-${w.color}-6)`:C?.color,"--menu-item-hover":C?.hover},children:[h.alignItemsLabels===`all`&&(0,F.jsx)(`div`,{...h.getStyles(`itemIndicator`,{styles:i,classNames:t}),"data-placeholder":!0}),s&&(0,F.jsx)(`div`,{...h.getStyles(`itemSection`,{styles:i,classNames:t}),"data-position":`left`,children:s}),l&&(0,F.jsx)(`div`,{...h.getStyles(`itemLabel`,{styles:i,classNames:t}),"data-menu-item-label":!0,children:l}),(0,F.jsx)(`div`,{...h.getStyles(`itemSection`,{styles:i,classNames:t}),"data-position":`right`,children:c||(0,F.jsx)(mp,{...h.getStyles(`chevron`),size:14})})]})});oh.classes=Fm,oh.displayName=`@mantine/core/MenuSubItem`;function sh({children:e,refProp:t}){if(!na(e))throw Error(`Menu.Sub.Target component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported`);return Am(),(0,F.jsx)(Cd.Target,{refProp:t,popupType:`menu`,children:e})}sh.displayName=`@mantine/core/MenuSubTarget`;var ch={offset:0,position:`right-start`,safeAreaPolygon:!0,transitionProps:{duration:0},openDelay:0,middlewares:{shift:{crossAxis:!0}}};function lh(e){let{children:t,closeDelay:n,openDelay:r,position:i,safeAreaPolygon:a,opened:o,onChange:s,...c}=O(`MenuSub`,ch,e),l=pe(),[u,d]=za({value:o,finalValue:!1,onChange:s}),f=(0,P.use)(Nm),p=Am(),{dir:m}=So(),h=Yu(m,i),g=f?.registerOpenSub??p.registerOpenSub,_=(0,P.useRef)(null),v=(0,P.useCallback)(e=>{let t=_.current;return t&&t!==e&&t(),_.current=e,()=>{_.current===e&&(_.current=null)}},[]),y=(0,P.useRef)(d);y.current=d;let b=(0,P.useCallback)(()=>y.current(!0),[]),x=(0,P.useCallback)(()=>y.current(!1),[]);(0,P.useEffect)(()=>{if(u)return g(x)},[u,g,x]);let{context:S,refs:C}=Tu({placement:h,open:u,onOpenChange:e=>{e?b():x()}}),{getReferenceProps:w,getFloatingProps:T}=ku([fu(S,{handleClose:a?Fu(typeof a==`object`?a:void 0):void 0,delay:{open:r,close:n}})]);return(0,F.jsx)(Nm,{value:{opened:u,close:x,open:b,focusFirstItem:()=>window.setTimeout(()=>{document.getElementById(`${l}-dropdown`)?.querySelectorAll(`[data-menu-item]:not([data-disabled])`)[0]?.focus()},16),focusParentItem:()=>window.setTimeout(()=>{document.getElementById(`${l}-target`)?.focus()},16),parentContext:f,setReference:C.setReference,setFloating:C.setFloating,getReferenceProps:w,getFloatingProps:T,registerOpenSub:v},children:(0,F.jsx)(Cd,{opened:u,onChange:e=>e?b():x(),withinPortal:!1,withArrow:!1,id:l,position:i,...c,children:t})})}lh.extend=e=>e,lh.displayName=`@mantine/core/MenuSub`,lh.Target=sh,lh.Dropdown=ah,lh.Item=oh;var uh={refProp:`ref`};function dh(e){let{children:t,refProp:n,...r}=O(`MenuTarget`,uh,e),i=Ja(t);if(!i)throw Error(`Menu.Target component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported`);let a=Am(),o=i.props,s=pa(o.onClick,()=>{a.trigger===`click`?a.toggleDropdown():a.trigger===`click-hover`&&(a.setOpenedViaClick(!0),a.opened||a.openDropdown())}),c=pa(o.onMouseEnter,()=>(a.trigger===`hover`||a.trigger===`click-hover`)&&a.openDropdown()),l=pa(o.onMouseLeave,()=>{(a.trigger===`hover`||a.trigger===`click-hover`&&!a.openedViaClick)&&a.closeDropdown()});return(0,F.jsx)(Cd.Target,{refProp:n,popupType:`menu`,...r,children:(0,P.cloneElement)(i,{onClick:s,onMouseEnter:c,onMouseLeave:l,"data-expanded":a.opened?!0:void 0})})}dh.displayName=`@mantine/core/MenuTarget`;var fh={trapFocus:!0,closeOnItemClick:!0,withInitialFocusPlaceholder:!0,clickOutsideEvents:[`mousedown`,`touchstart`,`keydown`],loop:!0,trigger:`click`,openDelay:0,closeDelay:100,menuItemTabIndex:-1,alignItemsLabels:`with-indicators`},ph=_(e=>{let t=O(`Menu`,fh,e),{children:n,onOpen:r,onClose:i,opened:a,defaultOpened:o,trapFocus:s,onChange:c,closeOnItemClick:l,loop:u,closeOnEscape:d,trigger:f,openDelay:p,closeDelay:m,classNames:h,styles:g,unstyled:_,variant:v,vars:y,menuItemTabIndex:b,keepMounted:x,withInitialFocusPlaceholder:S,attributes:C,onExitTransitionEnd:w,alignItemsLabels:D,checkIcon:k,...ee}=t,te=T({name:`Menu`,classes:Fm,props:t,classNames:h,styles:g,unstyled:_,attributes:C}),[A,ne]=za({value:a,defaultValue:o,finalValue:!1,onChange:c}),[j,re]=(0,P.useState)(!1),ie=()=>{ne(!1),re(!1),A&&i?.()},ae=()=>{ne(!0),!A&&r?.()},oe=()=>{A?ie():ae()},{openDropdown:se,closeDropdown:ce}=Xu({open:ae,close:ie,closeDelay:m,openDelay:p}),le=(0,P.useRef)(null),ue=(0,P.useCallback)(e=>{let t=le.current;return t&&t!==e&&t(),le.current=e,()=>{le.current===e&&(le.current=null)}},[]),de=(0,P.useRef)(0),[fe,M]=(0,P.useState)(!1),pe=(0,P.useCallback)(()=>(de.current+=1,de.current===1&&M(!0),()=>{--de.current,de.current===0&&M(!1)}),[]),me=(0,P.useRef)(null),he=()=>{me.current?.(),w?.()},ge=e=>_a(`[data-menu-item]`,`[data-menu-dropdown]`,e),{resolvedClassNames:_e,resolvedStyles:ve}=E({classNames:h,styles:g,props:t});return(0,F.jsx)(km,{value:{getStyles:te,opened:A,toggleDropdown:oe,getItemIndex:ge,openedViaClick:j,setOpenedViaClick:re,closeOnItemClick:l,closeDropdown:f===`click`?ie:ce,openDropdown:f===`click`?ae:se,closeDropdownImmediately:ie,loop:u,trigger:f,unstyled:_,menuItemTabIndex:b,withInitialFocusPlaceholder:S,registerOpenSub:ue,hasSearch:fe,registerSearch:pe,searchExitClearRef:me,alignItemsLabels:D,checkIcon:k},children:(0,F.jsx)(Cd,{returnFocus:!0,...ee,opened:A,onChange:oe,defaultOpened:o,trapFocus:!x&&s,closeOnEscape:d,__staticSelector:`Menu`,classNames:_e,styles:ve,unstyled:_,variant:v,keepMounted:x,onExitTransitionEnd:he,children:n})})});ph.displayName=`@mantine/core/Menu`,ph.classes=Fm,ph.Item=Wm,ph.Label=Gm,ph.Dropdown=Um,ph.Target=dh,ph.Divider=Rm,ph.Search=ih,ph.Sub=lh,ph.CheckboxItem=Im,ph.CheckboxGroup=Mm,ph.RadioItem=Ym,ph.RadioGroup=qm,ph.ContextMenu=Lm;var[mh,hh]=ra(`Modal component was not found in tree`),gh={root:`m_9df02822`,content:`m_54c44539`,inner:`m_1f958f16`,header:`m_d0e2b9cd`},_h=_(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,...o}=O(`ModalBody`,null,e);return(0,F.jsx)(ip,{...hh().getStyles(`body`,{classNames:t,style:r,styles:i,className:n}),...o})});_h.classes=gh,_h.displayName=`@mantine/core/ModalBody`;var vh=_(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,...o}=O(`ModalCloseButton`,null,e);return(0,F.jsx)(ap,{...hh().getStyles(`close`,{classNames:t,style:r,styles:i,className:n}),...o})});vh.classes=gh,vh.displayName=`@mantine/core/ModalCloseButton`;var yh=_(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,children:o,__hidden:s,...c}=O(`ModalContent`,null,e),l=hh(),u=l.scrollAreaComponent||pp;return(0,F.jsx)(op,{...l.getStyles(`content`,{className:n,style:r,styles:i,classNames:t}),innerProps:l.getStyles(`inner`,{className:n,style:r,styles:i,classNames:t}),"data-full-screen":l.fullScreen||void 0,"data-modal-content":!0,"data-hidden":s||void 0,...c,children:(0,F.jsx)(u,{style:{maxHeight:l.fullScreen?`100dvh`:`calc(100dvh - (${M(l.yOffset)} * 2))`},children:o})})});yh.classes=gh,yh.displayName=`@mantine/core/ModalContent`;var bh=_(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,...o}=O(`ModalHeader`,null,e);return(0,F.jsx)(sp,{...hh().getStyles(`header`,{classNames:t,style:r,styles:i,className:n}),...o})});bh.classes=gh,bh.displayName=`@mantine/core/ModalHeader`;var xh=_(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,...o}=O(`ModalOverlay`,null,e);return(0,F.jsx)(up,{...hh().getStyles(`overlay`,{classNames:t,style:r,styles:i,className:n}),...o})});xh.classes=gh,xh.displayName=`@mantine/core/ModalOverlay`;var Sh={__staticSelector:`Modal`,closeOnClickOutside:!0,withinPortal:!0,lockScroll:!0,trapFocus:!0,returnFocus:!0,closeOnEscape:!0,keepMounted:!1,zIndex:ua(`modal`),transitionProps:{duration:200,transition:`fade-down`},yOffset:`5dvh`},Ch=k((e,{radius:t,size:n,yOffset:r,xOffset:i})=>({root:{"--modal-radius":t===void 0?void 0:ce(t),"--modal-size":Pe(n,`modal-size`),"--modal-y-offset":M(r),"--modal-x-offset":M(i)}})),wh=_(e=>{let t=O(`ModalRoot`,Sh,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,yOffset:c,scrollAreaComponent:l,radius:u,fullScreen:d,centered:f,xOffset:p,__staticSelector:m,attributes:h,...g}=t,_=T({name:m,classes:gh,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:h,vars:s,varsResolver:Ch});return(0,F.jsx)(mh,{value:{yOffset:c,scrollAreaComponent:l,getStyles:_,fullScreen:d},children:(0,F.jsx)(tp,{..._(`root`),"data-full-screen":d||void 0,"data-centered":f||void 0,"data-offset-scrollbars":l===Ru.Autosize||void 0,unstyled:o,...g})})});wh.classes=gh,wh.varsResolver=Ch,wh.displayName=`@mantine/core/ModalRoot`;var Th=(0,P.createContext)(null);function Eh({children:e}){let[t,n]=(0,P.useState)([]),[r,i]=(0,P.useState)(ua(`modal`));return(0,F.jsx)(Th,{value:{stack:t,addModal:(e,t)=>{n(t=>[...new Set([...t,e])]),i(e=>typeof t==`number`&&typeof e==`number`?Math.max(e,t):e)},removeModal:e=>n(t=>t.filter(t=>t!==e)),getZIndex:e=>`calc(${r} + ${t.indexOf(e)} + 1)`,currentId:t[t.length-1],maxZIndex:r},children:e})}Eh.displayName=`@mantine/core/ModalStack`;var Dh=_(e=>{let{classNames:t,className:n,style:r,styles:i,vars:a,...o}=O(`ModalTitle`,null,e);return(0,F.jsx)(fp,{...hh().getStyles(`title`,{classNames:t,style:r,styles:i,className:n}),...o})});Dh.classes=gh,Dh.displayName=`@mantine/core/ModalTitle`;var Oh={closeOnClickOutside:!0,withinPortal:!0,lockScroll:!0,trapFocus:!0,returnFocus:!0,closeOnEscape:!0,keepMounted:!1,zIndex:ua(`modal`),transitionProps:{duration:200,transition:`fade-down`},withOverlay:!0,withCloseButton:!0},kh=_(e=>{let{title:t,withOverlay:n,overlayProps:r,withCloseButton:i,closeButtonProps:a,children:o,radius:s,opened:c,stackId:l,zIndex:u,...d}=O(`Modal`,Oh,e),f=(0,P.use)(Th),p=!!t||i,m=f&&l?{closeOnEscape:f.currentId===l,trapFocus:f.currentId===l,zIndex:f.getZIndex(l)}:{},h=n===!1?!1:l&&f?f.currentId===l:c;return(0,P.useEffect)(()=>{f&&l&&(c?f.addModal(l,u||ua(`modal`)):f.removeModal(l))},[c,l,u]),(0,F.jsxs)(wh,{radius:s,opened:c,zIndex:f&&l?f.getZIndex(l):u,...d,...m,children:[n&&(0,F.jsx)(xh,{visible:h,transitionProps:f&&l?{duration:0}:void 0,...r}),(0,F.jsxs)(yh,{radius:s,__hidden:f&&l&&c?l!==f.currentId:!1,children:[p&&(0,F.jsxs)(bh,{children:[t&&(0,F.jsx)(Dh,{children:t}),i&&(0,F.jsx)(vh,{...a})]}),(0,F.jsx)(_h,{children:o})]})]})});kh.classes=gh,kh.displayName=`@mantine/core/Modal`,kh.Root=wh,kh.Overlay=xh,kh.Content=yh,kh.Body=_h,kh.Header=bh,kh.Title=Dh,kh.CloseButton=vh,kh.Stack=Eh;function Ah({offset:e,position:t,defaultOpened:n}){let[r,i]=(0,P.useState)(n),a=(0,P.useRef)(null),{x:o,y:s,elements:c,refs:l,update:u,placement:d}=Tu({placement:t,middleware:[Nl({crossAxis:!0,padding:5,rootBoundary:`document`})]}),f=d.includes(`right`)?e:t.includes(`left`)?e*-1:0,p=d.includes(`bottom`)?e:t.includes(`top`)?e*-1:0,m=(0,P.useCallback)(({clientX:e,clientY:t})=>{l.setPositionReference({getBoundingClientRect(){return{width:0,height:0,x:e,y:t,left:e+f,top:t+p,right:e,bottom:t}}})},[c.reference]);return(0,P.useEffect)(()=>{if(l.floating.current){let e=a.current;e.addEventListener(`mousemove`,m);let t=Cs(l.floating.current);return t.forEach(e=>{e.addEventListener(`scroll`,u)}),()=>{e.removeEventListener(`mousemove`,m),t.forEach(e=>{e.removeEventListener(`scroll`,u)})}}},[c.reference,l.floating.current,u,m,r]),{handleMouseMove:m,x:o,y:s,opened:r,setOpened:i,boundaryRef:a,floating:l.setFloating}}var jh={tooltip:`m_1b3c8819`,arrow:`m_f898399f`},Mh={refProp:`ref`,withinPortal:!0,offset:10,position:`right`,zIndex:ua(`popover`)},Nh=k((e,{radius:t,color:n})=>({tooltip:{"--tooltip-radius":t===void 0?void 0:ce(t),"--tooltip-bg":n?S(n,e):void 0,"--tooltip-color":n?`var(--mantine-color-white)`:void 0}})),Ph=_(e=>{let t=O(`TooltipFloating`,Mh,e),{children:n,refProp:r,withinPortal:i,style:a,className:o,classNames:s,styles:c,unstyled:l,radius:u,color:d,label:f,offset:p,position:m,multiline:h,zIndex:g,disabled:_,defaultOpened:v,variant:y,vars:b,portalProps:S,attributes:C,ref:w,...E}=t,D=x(),k=T({name:`TooltipFloating`,props:t,classes:jh,className:o,style:a,classNames:s,styles:c,unstyled:l,attributes:C,rootSelector:`tooltip`,vars:b,varsResolver:Nh}),{handleMouseMove:ee,x:te,y:A,opened:ne,boundaryRef:j,floating:re,setOpened:ie}=Ah({offset:p,position:m,defaultOpened:v}),ae=Ja(n);if(!ae)throw Error(`[@mantine/core] Tooltip.Floating component children should be an element or a component that accepts ref, fragments, strings, numbers and other primitive values are not supported`);let oe=Ra(j,qa(ae),w),se=ae.props,ce=e=>{se.onMouseEnter?.(e),ee(e),ie(!0)},le=e=>{se.onMouseLeave?.(e),ie(!1)};return(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(ad,{...S,withinPortal:i,children:(0,F.jsx)(N,{...E,...k(`tooltip`,{style:{...bo(a,D),zIndex:g,display:!_&&ne?`block`:`none`,top:(A&&Math.round(A))??``,left:(te&&Math.round(te))??``}}),variant:y,ref:re,mod:{multiline:h},children:f})}),(0,P.cloneElement)(ae,{...se,[r]:oe,onMouseEnter:ce,onMouseLeave:le})]})});Ph.classes=jh,Ph.varsResolver=Nh,Ph.displayName=`@mantine/core/TooltipFloating`;var Fh=(0,P.createContext)({withinGroup:!1}),Ih={openDelay:0,closeDelay:0};function Lh(e){let{openDelay:t,closeDelay:n,children:r}=O(`TooltipGroup`,Ih,e);return(0,F.jsx)(Fh,{value:{withinGroup:!0},children:(0,F.jsx)(gu,{delay:{open:t,close:n},children:r})})}Lh.displayName=`@mantine/core/TooltipGroup`,Lh.extend=e=>e;function Rh(e){if(e===void 0)return{shift:!0,flip:!0};let t={...e};return e.shift===void 0&&(t.shift=!0),e.flip===void 0&&(t.flip=!0),t}function zh(e){let t=Rh(e.middlewares),n=[Ml(e.offset)];return t.shift&&n.push(Nl(typeof t.shift==`boolean`?{padding:8}:{padding:8,...t.shift})),t.flip&&n.push(typeof t.flip==`boolean`?Fl():Fl(t.flip)),n.push(zl({element:e.arrowRef,padding:e.arrowOffset})),t.inline?n.push(typeof t.inline==`boolean`?Rl():Rl(t.inline)):e.inline&&n.push(Rl()),n}function Bh(e){let[t,n]=(0,P.useState)(e.defaultOpened),r=typeof e.opened==`boolean`?e.opened:t,i=(0,P.use)(Fh).withinGroup,a=pe(),o=(0,P.useCallback)(e=>{n(e),e&&g(a)},[a]),{x:s,y:c,context:l,refs:u,placement:d,middlewareData:{arrow:{x:f,y:p}={}}}=Tu({strategy:e.strategy,placement:e.position,open:r,onOpenChange:o,middleware:zh(e),whileElementsMounted:hl}),{delay:m,currentId:h,setCurrentId:g}=_u(l,{id:a}),{getReferenceProps:_,getFloatingProps:v}=ku([fu(l,{enabled:e.events?.hover,delay:i?m:{open:e.openDelay,close:e.closeDelay},mouseOnly:!e.events?.touch,handleClose:e.interactive?Fu():null}),Du(l,{enabled:e.events?.focus,visibleOnly:!0}),ju(l,{role:`tooltip`}),Cu(l,{enabled:e.opened===void 0})]),y=(0,P.useRef)(d);Ee(()=>{y.current!==d&&(y.current=d,e.onPositionChange?.(d))},[d]);let b=r&&h&&h!==a;return{x:s,y:c,arrowX:f,arrowY:p,reference:u.setReference,floating:u.setFloating,getFloatingProps:v,getReferenceProps:_,isGroupPhase:b,opened:r,placement:d}}var Vh={position:`top`,refProp:`ref`,withinPortal:!0,arrowSize:4,arrowOffset:5,arrowRadius:0,arrowPosition:`side`,offset:5,transitionProps:{duration:100,transition:`fade`},events:{hover:!0,focus:!1,touch:!1},zIndex:ua(`popover`),middlewares:{flip:!0,shift:!0,inline:!1}},Hh=k((e,{radius:t,color:n,variant:r,autoContrast:i})=>{let a=e.variantColorResolver({theme:e,color:n||e.primaryColor,autoContrast:i,variant:r||`filled`});return{tooltip:{"--tooltip-radius":t===void 0?void 0:ce(t),"--tooltip-bg":n?a.background:void 0,"--tooltip-color":n?a.color:void 0}}}),Uh=_(e=>{let t=O(`Tooltip`,Vh,e),{children:n,position:r,refProp:i,label:a,openDelay:o,closeDelay:s,onPositionChange:c,opened:l,defaultOpened:u,withinPortal:d,radius:f,color:p,classNames:m,styles:h,unstyled:g,style:_,className:v,withArrow:y,arrowSize:b,arrowOffset:x,arrowRadius:S,arrowPosition:C,offset:w,transitionProps:E,multiline:D,events:k,interactive:ee,zIndex:te,disabled:A,onClick:ne,onMouseEnter:j,onMouseLeave:re,inline:ie,variant:oe,keepMounted:se,vars:ce,portalProps:le,mod:ue,floatingStrategy:de,middlewares:fe,autoContrast:M,attributes:pe,target:me,ref:he,...ge}=t,{dir:_e}=So(),ve=(0,P.useRef)(null),ye=Bh({position:Yu(_e,r),closeDelay:s,openDelay:o,onPositionChange:c,opened:l,defaultOpened:u,events:k,interactive:ee,arrowRef:ve,arrowOffset:x,offset:typeof w==`number`?w+(y?b/2:0):w,inline:ie,strategy:de,middlewares:fe});(0,P.useEffect)(()=>{let e=me instanceof HTMLElement?me:typeof me==`string`?document.querySelector(me):me?.current||null;e&&ye.reference(e)},[me,ye]);let be=T({name:`Tooltip`,props:t,classes:jh,className:v,style:_,classNames:m,styles:h,unstyled:g,attributes:pe,rootSelector:`tooltip`,vars:ce,varsResolver:Hh}),xe=Ja(n);if(!me&&!xe)throw Error(`[@mantine/core] Tooltip component children should be an element or a component that accepts ref, fragments, strings, numbers and other primitive values are not supported`);let Se=be(`tooltip`),Ce=ee&&!A&&!!ye.opened,we=C===`merge`&&y?qu({position:ye.placement,dir:_e}):void 0;if(me){let e=sd(E,{duration:100,transition:`fade`});return(0,F.jsx)(F.Fragment,{children:(0,F.jsx)(ad,{...le,withinPortal:d,children:(0,F.jsx)(Be,{...e,keepMounted:se,mounted:!A&&!!ye.opened,duration:ye.isGroupPhase?10:e.duration,children:e=>(0,F.jsxs)(N,{...ge,"data-fixed":de===`fixed`||void 0,variant:oe,mod:[{multiline:D,interactive:Ce},ue],...Se,...ye.getFloatingProps({ref:ye.floating,className:Se.className,style:{...Se.style,...e,...we,zIndex:te,top:ye.y??0,left:ye.x??0}}),children:[a,(0,F.jsx)(Ju,{ref:ve,arrowX:ye.arrowX,arrowY:ye.arrowY,visible:y,position:ye.placement,arrowSize:b,arrowOffset:x,arrowRadius:S,arrowPosition:C,...be(`arrow`)})]})})})})}let Te=xe.props,Ee=Ra(ye.reference,qa(xe),he),De=sd(E,{duration:100,transition:`fade`});return(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(ad,{...le,withinPortal:d,children:(0,F.jsx)(Be,{...De,keepMounted:se,mounted:!A&&!!ye.opened,duration:ye.isGroupPhase?10:De.duration,children:e=>(0,F.jsxs)(N,{...ge,"data-fixed":de===`fixed`||void 0,variant:oe,mod:[{multiline:D,interactive:Ce},ue],...ye.getFloatingProps({ref:ye.floating,className:be(`tooltip`).className,style:{...be(`tooltip`).style,...e,...we,zIndex:te,top:ye.y??0,left:ye.x??0}}),children:[a,(0,F.jsx)(Ju,{ref:ve,arrowX:ye.arrowX,arrowY:ye.arrowY,visible:y,position:ye.placement,arrowSize:b,arrowOffset:x,arrowRadius:S,arrowPosition:C,...be(`arrow`)})]})})}),(0,P.cloneElement)(xe,ye.getReferenceProps({onClick:ne,onMouseEnter:j,onMouseLeave:re,onMouseMove:t.onMouseMove,onPointerDown:t.onPointerDown,onPointerEnter:t.onPointerEnter,...Te,className:ae(v,Te.className),[i]:Ee}))]})});Uh.classes=jh,Uh.varsResolver=Hh,Uh.displayName=`@mantine/core/Tooltip`,Uh.Floating=Ph,Uh.Group=Lh;function Wh(e){if(e!==void 0)return typeof e==`number`?M(e):e}function Gh({spacing:e,verticalSpacing:t,cols:n,minColWidth:r,autoRows:i,selector:a}){let o=x(),s=t===void 0?e:t,c=r!==void 0,l=Se({"--sg-spacing-x":de(ga(e)),"--sg-spacing-y":de(ga(s)),"--sg-auto-rows":i,...c?{"--sg-min-col-width":Wh(r)}:{"--sg-cols":ga(n)?.toString()}}),u=ke(o.breakpoints).reduce((t,r)=>(t[r]||(t[r]={}),typeof e==`object`&&e[r]!==void 0&&(t[r][`--sg-spacing-x`]=de(e[r])),typeof s==`object`&&s[r]!==void 0&&(t[r][`--sg-spacing-y`]=de(s[r])),!c&&typeof n==`object`&&n[r]!==void 0&&(t[r][`--sg-cols`]=n[r]),t),{});return(0,F.jsx)(be,{styles:l,media:ha(ke(u),o.breakpoints).filter(e=>ke(u[e.value]).length>0).map(e=>({query:`(min-width: ${o.breakpoints[e.value]})`,styles:u[e.value]})),selector:a})}function Kh(e){return typeof e==`object`&&e?ke(e):[]}function qh(e){return e.sort((e,t)=>ta(e)-ta(t))}function Jh({spacing:e,verticalSpacing:t,cols:n,minColWidth:r}){return qh(Array.from(new Set([...Kh(e),...Kh(t),...r===void 0?Kh(n):[]])))}function Yh({spacing:e,verticalSpacing:t,cols:n,minColWidth:r,autoRows:i,selector:a}){let o=t===void 0?e:t,s=r!==void 0,c=Se({"--sg-spacing-x":de(ga(e)),"--sg-spacing-y":de(ga(o)),"--sg-auto-rows":i,...s?{"--sg-min-col-width":Wh(r)}:{"--sg-cols":ga(n)?.toString()}}),l=Jh({spacing:e,verticalSpacing:t,cols:n,minColWidth:r}),u=l.reduce((t,r)=>(t[r]||(t[r]={}),typeof e==`object`&&e[r]!==void 0&&(t[r][`--sg-spacing-x`]=de(e[r])),typeof o==`object`&&o[r]!==void 0&&(t[r][`--sg-spacing-y`]=de(o[r])),!s&&typeof n==`object`&&n[r]!==void 0&&(t[r][`--sg-cols`]=n[r]),t),{});return(0,F.jsx)(be,{styles:c,container:l.map(e=>({query:`simple-grid (min-width: ${e})`,styles:u[e]})),selector:a})}var Xh={container:`m_925c2d2c`,root:`m_2415a157`},Zh={cols:1,spacing:`md`,type:`media`},Qh=_(e=>{let t=O(`SimpleGrid`,Zh,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,vars:s,cols:c,verticalSpacing:l,spacing:u,type:d,minColWidth:f,autoFlow:p,autoRows:m,attributes:h,...g}=t,_=T({name:`SimpleGrid`,classes:Xh,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:h,vars:s}),v=D(),y=f===void 0?void 0:p||`auto-fill`;return d===`container`?(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(Yh,{...t,selector:`.${v}`}),(0,F.jsx)(`div`,{..._(`container`),children:(0,F.jsx)(N,{..._(`root`,{className:v}),...g,"data-auto-cols":y})})]}):(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(Gh,{...t,selector:`.${v}`}),(0,F.jsx)(N,{..._(`root`,{className:v}),...g,"data-auto-cols":y})]})});Qh.classes=Xh,Qh.displayName=`@mantine/core/SimpleGrid`;var $h={root:`m_d08caa0`},eg=_(e=>{let t=O(`Typography`,null,e),{classNames:n,className:r,style:i,styles:a,unstyled:o,attributes:s,...c}=t;return(0,F.jsx)(N,{...T({name:`Typography`,classes:$h,props:t,className:r,style:i,classNames:n,styles:a,unstyled:o,attributes:s})(`root`),...c})});eg.classes=$h,eg.displayName=`@mantine/core/Typography`;var tg=[];for(let e=0;e<256;++e)tg.push((e+256).toString(16).slice(1));function ng(e,t=0){return(tg[e[t+0]]+tg[e[t+1]]+tg[e[t+2]]+tg[e[t+3]]+`-`+tg[e[t+4]]+tg[e[t+5]]+`-`+tg[e[t+6]]+tg[e[t+7]]+`-`+tg[e[t+8]]+tg[e[t+9]]+`-`+tg[e[t+10]]+tg[e[t+11]]+tg[e[t+12]]+tg[e[t+13]]+tg[e[t+14]]+tg[e[t+15]]).toLowerCase()}var rg,ig=new Uint8Array(16);function ag(){if(!rg){if(typeof crypto>`u`||!crypto.getRandomValues)throw Error(`crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported`);rg=crypto.getRandomValues.bind(crypto)}return rg(ig)}var og={randomUUID:typeof crypto<`u`&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function sg(e,t,n){if(og.randomUUID&&!t&&!e)return og.randomUUID();e||={};let r=e.random??e.rng?.()??ag();if(r.length<16)throw Error(`Random bytes length must be >= 16`);if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,t){if(n||=0,n<0||n+16>t.length)throw RangeError(`UUID byte range ${n}:${n+15} is out of buffer bounds`);for(let e=0;e<16;++e)t[n+e]=r[e];return t}return ng(r)}var cg;(function(e){e.assertEqual=e=>{};function t(e){}e.assertIs=t;function n(e){throw Error()}e.assertNever=n,e.arrayToEnum=e=>{let t={};for(let n of e)t[n]=n;return t},e.getValidEnumValues=t=>{let n=e.objectKeys(t).filter(e=>typeof t[t[e]]!=`number`),r={};for(let e of n)r[e]=t[e];return e.objectValues(r)},e.objectValues=t=>e.objectKeys(t).map(function(e){return t[e]}),e.objectKeys=typeof Object.keys==`function`?e=>Object.keys(e):e=>{let t=[];for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.push(n);return t},e.find=(e,t)=>{for(let n of e)if(t(n))return n},e.isInteger=typeof Number.isInteger==`function`?e=>Number.isInteger(e):e=>typeof e==`number`&&Number.isFinite(e)&&Math.floor(e)===e;function r(e,t=` | `){return e.map(e=>typeof e==`string`?`'${e}'`:e).join(t)}e.joinValues=r,e.jsonStringifyReplacer=(e,t)=>typeof t==`bigint`?t.toString():t})(cg||={});var lg;(function(e){e.mergeShapes=(e,t)=>({...e,...t})})(lg||={});var I=cg.arrayToEnum([`string`,`nan`,`number`,`integer`,`float`,`boolean`,`date`,`bigint`,`symbol`,`function`,`undefined`,`null`,`array`,`object`,`unknown`,`promise`,`void`,`never`,`map`,`set`]),ug=e=>{switch(typeof e){case`undefined`:return I.undefined;case`string`:return I.string;case`number`:return Number.isNaN(e)?I.nan:I.number;case`boolean`:return I.boolean;case`function`:return I.function;case`bigint`:return I.bigint;case`symbol`:return I.symbol;case`object`:return Array.isArray(e)?I.array:e===null?I.null:e.then&&typeof e.then==`function`&&e.catch&&typeof e.catch==`function`?I.promise:typeof Map<`u`&&e instanceof Map?I.map:typeof Set<`u`&&e instanceof Set?I.set:typeof Date<`u`&&e instanceof Date?I.date:I.object;default:return I.unknown}},L=cg.arrayToEnum([`invalid_type`,`invalid_literal`,`custom`,`invalid_union`,`invalid_union_discriminator`,`invalid_enum_value`,`unrecognized_keys`,`invalid_arguments`,`invalid_return_type`,`invalid_date`,`invalid_string`,`too_small`,`too_big`,`invalid_intersection_types`,`not_multiple_of`,`not_finite`]),dg=class e extends Error{get errors(){return this.issues}constructor(e){super(),this.issues=[],this.addIssue=e=>{this.issues=[...this.issues,e]},this.addIssues=(e=[])=>{this.issues=[...this.issues,...e]};let t=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,t):this.__proto__=t,this.name=`ZodError`,this.issues=e}format(e){let t=e||function(e){return e.message},n={_errors:[]},r=e=>{for(let i of e.issues)if(i.code===`invalid_union`)i.unionErrors.map(r);else if(i.code===`invalid_return_type`)r(i.returnTypeError);else if(i.code===`invalid_arguments`)r(i.argumentsError);else if(i.path.length===0)n._errors.push(t(i));else{let e=n,r=0;for(;re.message){let t={},n=[];for(let r of this.issues)if(r.path.length>0){let n=r.path[0];t[n]=t[n]||[],t[n].push(e(r))}else n.push(e(r));return{formErrors:n,fieldErrors:t}}get formErrors(){return this.flatten()}};dg.create=e=>new dg(e);var fg=(e,t)=>{let n;switch(e.code){case L.invalid_type:n=e.received===I.undefined?`Required`:`Expected ${e.expected}, received ${e.received}`;break;case L.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,cg.jsonStringifyReplacer)}`;break;case L.unrecognized_keys:n=`Unrecognized key(s) in object: ${cg.joinValues(e.keys,`, `)}`;break;case L.invalid_union:n=`Invalid input`;break;case L.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${cg.joinValues(e.options)}`;break;case L.invalid_enum_value:n=`Invalid enum value. Expected ${cg.joinValues(e.options)}, received '${e.received}'`;break;case L.invalid_arguments:n=`Invalid function arguments`;break;case L.invalid_return_type:n=`Invalid function return type`;break;case L.invalid_date:n=`Invalid date`;break;case L.invalid_string:typeof e.validation==`object`?`includes`in e.validation?(n=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position==`number`&&(n=`${n} at one or more positions greater than or equal to ${e.validation.position}`)):`startsWith`in e.validation?n=`Invalid input: must start with "${e.validation.startsWith}"`:`endsWith`in e.validation?n=`Invalid input: must end with "${e.validation.endsWith}"`:cg.assertNever(e.validation):n=e.validation===`regex`?`Invalid`:`Invalid ${e.validation}`;break;case L.too_small:n=e.type===`array`?`Array must contain ${e.exact?`exactly`:e.inclusive?`at least`:`more than`} ${e.minimum} element(s)`:e.type===`string`?`String must contain ${e.exact?`exactly`:e.inclusive?`at least`:`over`} ${e.minimum} character(s)`:e.type===`number`||e.type===`bigint`?`Number must be ${e.exact?`exactly equal to `:e.inclusive?`greater than or equal to `:`greater than `}${e.minimum}`:e.type===`date`?`Date must be ${e.exact?`exactly equal to `:e.inclusive?`greater than or equal to `:`greater than `}${new Date(Number(e.minimum))}`:`Invalid input`;break;case L.too_big:n=e.type===`array`?`Array must contain ${e.exact?`exactly`:e.inclusive?`at most`:`less than`} ${e.maximum} element(s)`:e.type===`string`?`String must contain ${e.exact?`exactly`:e.inclusive?`at most`:`under`} ${e.maximum} character(s)`:e.type===`number`?`Number must be ${e.exact?`exactly`:e.inclusive?`less than or equal to`:`less than`} ${e.maximum}`:e.type===`bigint`?`BigInt must be ${e.exact?`exactly`:e.inclusive?`less than or equal to`:`less than`} ${e.maximum}`:e.type===`date`?`Date must be ${e.exact?`exactly`:e.inclusive?`smaller than or equal to`:`smaller than`} ${new Date(Number(e.maximum))}`:`Invalid input`;break;case L.custom:n=`Invalid input`;break;case L.invalid_intersection_types:n=`Intersection results could not be merged`;break;case L.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case L.not_finite:n=`Number must be finite`;break;default:n=t.defaultError,cg.assertNever(e)}return{message:n}},pg=fg;function mg(){return pg}var hg=e=>{let{data:t,path:n,errorMaps:r,issueData:i}=e,a=[...n,...i.path||[]],o={...i,path:a};if(i.message!==void 0)return{...i,path:a,message:i.message};let s=``,c=r.filter(e=>!!e).slice().reverse();for(let e of c)s=e(o,{data:t,defaultError:s}).message;return{...i,path:a,message:s}};function R(e,t){let n=mg(),r=hg({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,n,n===fg?void 0:fg].filter(e=>!!e)});e.common.issues.push(r)}var gg=class e{constructor(){this.value=`valid`}dirty(){this.value===`valid`&&(this.value=`dirty`)}abort(){this.value!==`aborted`&&(this.value=`aborted`)}static mergeArray(e,t){let n=[];for(let r of t){if(r.status===`aborted`)return z;r.status===`dirty`&&e.dirty(),n.push(r.value)}return{status:e.value,value:n}}static async mergeObjectAsync(t,n){let r=[];for(let e of n){let t=await e.key,n=await e.value;r.push({key:t,value:n})}return e.mergeObjectSync(t,r)}static mergeObjectSync(e,t){let n={};for(let r of t){let{key:t,value:i}=r;if(t.status===`aborted`||i.status===`aborted`)return z;t.status===`dirty`&&e.dirty(),i.status===`dirty`&&e.dirty(),t.value!==`__proto__`&&(i.value!==void 0||r.alwaysSet)&&(n[t.value]=i.value)}return{status:e.value,value:n}}},z=Object.freeze({status:`aborted`}),_g=e=>({status:`dirty`,value:e}),vg=e=>({status:`valid`,value:e}),yg=e=>e.status===`aborted`,bg=e=>e.status===`dirty`,xg=e=>e.status===`valid`,Sg=e=>typeof Promise<`u`&&e instanceof Promise,B;(function(e){e.errToObj=e=>typeof e==`string`?{message:e}:e||{},e.toString=e=>typeof e==`string`?e:e?.message})(B||={});var Cg=class{constructor(e,t,n,r){this._cachedPath=[],this.parent=e,this.data=t,this._path=n,this._key=r}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}},wg=(e,t)=>{if(xg(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw Error(`Validation failed but no issues detected.`);return{success:!1,get error(){if(this._error)return this._error;let t=new dg(e.common.issues);return this._error=t,this._error}}};function Tg(e){if(!e)return{};let{errorMap:t,invalid_type_error:n,required_error:r,description:i}=e;if(t&&(n||r))throw Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:i}:{errorMap:(t,i)=>{let{message:a}=e;return t.code===`invalid_enum_value`?{message:a??i.defaultError}:i.data===void 0?{message:a??r??i.defaultError}:t.code===`invalid_type`?{message:a??n??i.defaultError}:{message:i.defaultError}},description:i}}var Eg=class{get description(){return this._def.description}_getType(e){return ug(e.data)}_getOrReturnCtx(e,t){return t||{common:e.parent.common,data:e.data,parsedType:ug(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new gg,ctx:{common:e.parent.common,data:e.data,parsedType:ug(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){let t=this._parse(e);if(Sg(t))throw Error(`Synchronous parse encountered promise.`);return t}_parseAsync(e){let t=this._parse(e);return Promise.resolve(t)}parse(e,t){let n=this.safeParse(e,t);if(n.success)return n.data;throw n.error}safeParse(e,t){let n={common:{issues:[],async:t?.async??!1,contextualErrorMap:t?.errorMap},path:t?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:ug(e)};return wg(n,this._parseSync({data:e,path:n.path,parent:n}))}"~validate"(e){let t={common:{issues:[],async:!!this[`~standard`].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:ug(e)};if(!this[`~standard`].async)try{let n=this._parseSync({data:e,path:[],parent:t});return xg(n)?{value:n.value}:{issues:t.common.issues}}catch(e){e?.message?.toLowerCase()?.includes(`encountered`)&&(this[`~standard`].async=!0),t.common={issues:[],async:!0}}return this._parseAsync({data:e,path:[],parent:t}).then(e=>xg(e)?{value:e.value}:{issues:t.common.issues})}async parseAsync(e,t){let n=await this.safeParseAsync(e,t);if(n.success)return n.data;throw n.error}async safeParseAsync(e,t){let n={common:{issues:[],contextualErrorMap:t?.errorMap,async:!0},path:t?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:ug(e)},r=this._parse({data:e,path:n.path,parent:n});return wg(n,await(Sg(r)?r:Promise.resolve(r)))}refine(e,t){let n=e=>typeof t==`string`||t===void 0?{message:t}:typeof t==`function`?t(e):t;return this._refinement((t,r)=>{let i=e(t),a=()=>r.addIssue({code:L.custom,...n(t)});return typeof Promise<`u`&&i instanceof Promise?i.then(e=>e?!0:(a(),!1)):i?!0:(a(),!1)})}refinement(e,t){return this._refinement((n,r)=>e(n)?!0:(r.addIssue(typeof t==`function`?t(n,r):t),!1))}_refinement(e){return new k_({schema:this,typeName:V.ZodEffects,effect:{type:`refinement`,refinement:e}})}superRefine(e){return this._refinement(e)}constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this[`~standard`]={version:1,vendor:`zod`,validate:e=>this[`~validate`](e)}}optional(){return A_.create(this,this._def)}nullable(){return j_.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return u_.create(this)}promise(){return O_.create(this,this._def)}or(e){return p_.create([this,e],this._def)}and(e){return __.create(this,e,this._def)}transform(e){return new k_({...Tg(this._def),schema:this,typeName:V.ZodEffects,effect:{type:`transform`,transform:e}})}default(e){let t=typeof e==`function`?e:()=>e;return new M_({...Tg(this._def),innerType:this,defaultValue:t,typeName:V.ZodDefault})}brand(){return new F_({typeName:V.ZodBranded,type:this,...Tg(this._def)})}catch(e){let t=typeof e==`function`?e:()=>e;return new N_({...Tg(this._def),innerType:this,catchValue:t,typeName:V.ZodCatch})}describe(e){let t=this.constructor;return new t({...this._def,description:e})}pipe(e){return I_.create(this,e)}readonly(){return L_.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}},Dg=/^c[^\s-]{8,}$/i,Og=/^[0-9a-z]+$/,kg=/^[0-9A-HJKMNP-TV-Z]{26}$/i,Ag=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,jg=/^[a-z0-9_-]{21}$/i,Mg=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,Ng=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,Pg=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,Fg=`^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$`,Ig,Lg=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,Rg=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,zg=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,Bg=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,Vg=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,Hg=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,Ug=`((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))`,Wg=RegExp(`^${Ug}$`);function Gg(e){let t=`[0-5]\\d`;e.precision?t=`${t}\\.\\d{${e.precision}}`:e.precision??(t=`${t}(\\.\\d+)?`);let n=e.precision?`+`:`?`;return`([01]\\d|2[0-3]):[0-5]\\d(:${t})${n}`}function Kg(e){return RegExp(`^${Gg(e)}$`)}function qg(e){let t=`${Ug}T${Gg(e)}`,n=[];return n.push(e.local?`Z?`:`Z`),e.offset&&n.push(`([+-]\\d{2}:?\\d{2})`),t=`${t}(${n.join(`|`)})`,RegExp(`^${t}$`)}function Jg(e,t){return!!((t===`v4`||!t)&&Lg.test(e)||(t===`v6`||!t)&&zg.test(e))}function Yg(e,t){if(!Mg.test(e))return!1;try{let[n]=e.split(`.`);if(!n)return!1;let r=n.replace(/-/g,`+`).replace(/_/g,`/`).padEnd(n.length+(4-n.length%4)%4,`=`),i=JSON.parse(atob(r));return!(typeof i!=`object`||!i||`typ`in i&&i?.typ!==`JWT`||!i.alg||t&&i.alg!==t)}catch{return!1}}function Xg(e,t){return!!((t===`v4`||!t)&&Rg.test(e)||(t===`v6`||!t)&&Bg.test(e))}var Zg=class e extends Eg{_parse(e){if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==I.string){let t=this._getOrReturnCtx(e);return R(t,{code:L.invalid_type,expected:I.string,received:t.parsedType}),z}let t=new gg,n;for(let r of this._def.checks)if(r.kind===`min`)e.data.lengthr.value&&(n=this._getOrReturnCtx(e,n),R(n,{code:L.too_big,maximum:r.value,type:`string`,inclusive:!0,exact:!1,message:r.message}),t.dirty());else if(r.kind===`length`){let i=e.data.length>r.value,a=e.data.lengthe.test(t),{validation:t,code:L.invalid_string,...B.errToObj(n)})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}email(e){return this._addCheck({kind:`email`,...B.errToObj(e)})}url(e){return this._addCheck({kind:`url`,...B.errToObj(e)})}emoji(e){return this._addCheck({kind:`emoji`,...B.errToObj(e)})}uuid(e){return this._addCheck({kind:`uuid`,...B.errToObj(e)})}nanoid(e){return this._addCheck({kind:`nanoid`,...B.errToObj(e)})}cuid(e){return this._addCheck({kind:`cuid`,...B.errToObj(e)})}cuid2(e){return this._addCheck({kind:`cuid2`,...B.errToObj(e)})}ulid(e){return this._addCheck({kind:`ulid`,...B.errToObj(e)})}base64(e){return this._addCheck({kind:`base64`,...B.errToObj(e)})}base64url(e){return this._addCheck({kind:`base64url`,...B.errToObj(e)})}jwt(e){return this._addCheck({kind:`jwt`,...B.errToObj(e)})}ip(e){return this._addCheck({kind:`ip`,...B.errToObj(e)})}cidr(e){return this._addCheck({kind:`cidr`,...B.errToObj(e)})}datetime(e){return typeof e==`string`?this._addCheck({kind:`datetime`,precision:null,offset:!1,local:!1,message:e}):this._addCheck({kind:`datetime`,precision:e?.precision===void 0?null:e?.precision,offset:e?.offset??!1,local:e?.local??!1,...B.errToObj(e?.message)})}date(e){return this._addCheck({kind:`date`,message:e})}time(e){return typeof e==`string`?this._addCheck({kind:`time`,precision:null,message:e}):this._addCheck({kind:`time`,precision:e?.precision===void 0?null:e?.precision,...B.errToObj(e?.message)})}duration(e){return this._addCheck({kind:`duration`,...B.errToObj(e)})}regex(e,t){return this._addCheck({kind:`regex`,regex:e,...B.errToObj(t)})}includes(e,t){return this._addCheck({kind:`includes`,value:e,position:t?.position,...B.errToObj(t?.message)})}startsWith(e,t){return this._addCheck({kind:`startsWith`,value:e,...B.errToObj(t)})}endsWith(e,t){return this._addCheck({kind:`endsWith`,value:e,...B.errToObj(t)})}min(e,t){return this._addCheck({kind:`min`,value:e,...B.errToObj(t)})}max(e,t){return this._addCheck({kind:`max`,value:e,...B.errToObj(t)})}length(e,t){return this._addCheck({kind:`length`,value:e,...B.errToObj(t)})}nonempty(e){return this.min(1,B.errToObj(e))}trim(){return new e({...this._def,checks:[...this._def.checks,{kind:`trim`}]})}toLowerCase(){return new e({...this._def,checks:[...this._def.checks,{kind:`toLowerCase`}]})}toUpperCase(){return new e({...this._def,checks:[...this._def.checks,{kind:`toUpperCase`}]})}get isDatetime(){return!!this._def.checks.find(e=>e.kind===`datetime`)}get isDate(){return!!this._def.checks.find(e=>e.kind===`date`)}get isTime(){return!!this._def.checks.find(e=>e.kind===`time`)}get isDuration(){return!!this._def.checks.find(e=>e.kind===`duration`)}get isEmail(){return!!this._def.checks.find(e=>e.kind===`email`)}get isURL(){return!!this._def.checks.find(e=>e.kind===`url`)}get isEmoji(){return!!this._def.checks.find(e=>e.kind===`emoji`)}get isUUID(){return!!this._def.checks.find(e=>e.kind===`uuid`)}get isNANOID(){return!!this._def.checks.find(e=>e.kind===`nanoid`)}get isCUID(){return!!this._def.checks.find(e=>e.kind===`cuid`)}get isCUID2(){return!!this._def.checks.find(e=>e.kind===`cuid2`)}get isULID(){return!!this._def.checks.find(e=>e.kind===`ulid`)}get isIP(){return!!this._def.checks.find(e=>e.kind===`ip`)}get isCIDR(){return!!this._def.checks.find(e=>e.kind===`cidr`)}get isBase64(){return!!this._def.checks.find(e=>e.kind===`base64`)}get isBase64url(){return!!this._def.checks.find(e=>e.kind===`base64url`)}get minLength(){let e=null;for(let t of this._def.checks)t.kind===`min`&&(e===null||t.value>e)&&(e=t.value);return e}get maxLength(){let e=null;for(let t of this._def.checks)t.kind===`max`&&(e===null||t.valuenew Zg({checks:[],typeName:V.ZodString,coerce:e?.coerce??!1,...Tg(e)});function Qg(e,t){let n=(e.toString().split(`.`)[1]||``).length,r=(t.toString().split(`.`)[1]||``).length,i=n>r?n:r;return Number.parseInt(e.toFixed(i).replace(`.`,``))%Number.parseInt(t.toFixed(i).replace(`.`,``))/10**i}var $g=class e extends Eg{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==I.number){let t=this._getOrReturnCtx(e);return R(t,{code:L.invalid_type,expected:I.number,received:t.parsedType}),z}let t,n=new gg;for(let r of this._def.checks)r.kind===`int`?cg.isInteger(e.data)||(t=this._getOrReturnCtx(e,t),R(t,{code:L.invalid_type,expected:`integer`,received:`float`,message:r.message}),n.dirty()):r.kind===`min`?(r.inclusive?e.datar.value:e.data>=r.value)&&(t=this._getOrReturnCtx(e,t),R(t,{code:L.too_big,maximum:r.value,type:`number`,inclusive:r.inclusive,exact:!1,message:r.message}),n.dirty()):r.kind===`multipleOf`?Qg(e.data,r.value)!==0&&(t=this._getOrReturnCtx(e,t),R(t,{code:L.not_multiple_of,multipleOf:r.value,message:r.message}),n.dirty()):r.kind===`finite`?Number.isFinite(e.data)||(t=this._getOrReturnCtx(e,t),R(t,{code:L.not_finite,message:r.message}),n.dirty()):cg.assertNever(r);return{status:n.value,value:e.data}}gte(e,t){return this.setLimit(`min`,e,!0,B.toString(t))}gt(e,t){return this.setLimit(`min`,e,!1,B.toString(t))}lte(e,t){return this.setLimit(`max`,e,!0,B.toString(t))}lt(e,t){return this.setLimit(`max`,e,!1,B.toString(t))}setLimit(t,n,r,i){return new e({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:B.toString(i)}]})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}int(e){return this._addCheck({kind:`int`,message:B.toString(e)})}positive(e){return this._addCheck({kind:`min`,value:0,inclusive:!1,message:B.toString(e)})}negative(e){return this._addCheck({kind:`max`,value:0,inclusive:!1,message:B.toString(e)})}nonpositive(e){return this._addCheck({kind:`max`,value:0,inclusive:!0,message:B.toString(e)})}nonnegative(e){return this._addCheck({kind:`min`,value:0,inclusive:!0,message:B.toString(e)})}multipleOf(e,t){return this._addCheck({kind:`multipleOf`,value:e,message:B.toString(t)})}finite(e){return this._addCheck({kind:`finite`,message:B.toString(e)})}safe(e){return this._addCheck({kind:`min`,inclusive:!0,value:-(2**53-1),message:B.toString(e)})._addCheck({kind:`max`,inclusive:!0,value:2**53-1,message:B.toString(e)})}get minValue(){let e=null;for(let t of this._def.checks)t.kind===`min`&&(e===null||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(let t of this._def.checks)t.kind===`max`&&(e===null||t.valuee.kind===`int`||e.kind===`multipleOf`&&cg.isInteger(e.value))}get isFinite(){let e=null,t=null;for(let n of this._def.checks)if(n.kind===`finite`||n.kind===`int`||n.kind===`multipleOf`)return!0;else n.kind===`min`?(t===null||n.value>t)&&(t=n.value):n.kind===`max`&&(e===null||n.valuenew $g({checks:[],typeName:V.ZodNumber,coerce:e?.coerce||!1,...Tg(e)});var e_=class e extends Eg{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){if(this._def.coerce)try{e.data=BigInt(e.data)}catch{return this._getInvalidInput(e)}if(this._getType(e)!==I.bigint)return this._getInvalidInput(e);let t,n=new gg;for(let r of this._def.checks)r.kind===`min`?(r.inclusive?e.datar.value:e.data>=r.value)&&(t=this._getOrReturnCtx(e,t),R(t,{code:L.too_big,type:`bigint`,maximum:r.value,inclusive:r.inclusive,message:r.message}),n.dirty()):r.kind===`multipleOf`?e.data%r.value!==BigInt(0)&&(t=this._getOrReturnCtx(e,t),R(t,{code:L.not_multiple_of,multipleOf:r.value,message:r.message}),n.dirty()):cg.assertNever(r);return{status:n.value,value:e.data}}_getInvalidInput(e){let t=this._getOrReturnCtx(e);return R(t,{code:L.invalid_type,expected:I.bigint,received:t.parsedType}),z}gte(e,t){return this.setLimit(`min`,e,!0,B.toString(t))}gt(e,t){return this.setLimit(`min`,e,!1,B.toString(t))}lte(e,t){return this.setLimit(`max`,e,!0,B.toString(t))}lt(e,t){return this.setLimit(`max`,e,!1,B.toString(t))}setLimit(t,n,r,i){return new e({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:B.toString(i)}]})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}positive(e){return this._addCheck({kind:`min`,value:BigInt(0),inclusive:!1,message:B.toString(e)})}negative(e){return this._addCheck({kind:`max`,value:BigInt(0),inclusive:!1,message:B.toString(e)})}nonpositive(e){return this._addCheck({kind:`max`,value:BigInt(0),inclusive:!0,message:B.toString(e)})}nonnegative(e){return this._addCheck({kind:`min`,value:BigInt(0),inclusive:!0,message:B.toString(e)})}multipleOf(e,t){return this._addCheck({kind:`multipleOf`,value:e,message:B.toString(t)})}get minValue(){let e=null;for(let t of this._def.checks)t.kind===`min`&&(e===null||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(let t of this._def.checks)t.kind===`max`&&(e===null||t.valuenew e_({checks:[],typeName:V.ZodBigInt,coerce:e?.coerce??!1,...Tg(e)});var t_=class extends Eg{_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==I.boolean){let t=this._getOrReturnCtx(e);return R(t,{code:L.invalid_type,expected:I.boolean,received:t.parsedType}),z}return vg(e.data)}};t_.create=e=>new t_({typeName:V.ZodBoolean,coerce:e?.coerce||!1,...Tg(e)});var n_=class e extends Eg{_parse(e){if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==I.date){let t=this._getOrReturnCtx(e);return R(t,{code:L.invalid_type,expected:I.date,received:t.parsedType}),z}if(Number.isNaN(e.data.getTime()))return R(this._getOrReturnCtx(e),{code:L.invalid_date}),z;let t=new gg,n;for(let r of this._def.checks)r.kind===`min`?e.data.getTime()r.value&&(n=this._getOrReturnCtx(e,n),R(n,{code:L.too_big,message:r.message,inclusive:!0,exact:!1,maximum:r.value,type:`date`}),t.dirty()):cg.assertNever(r);return{status:t.value,value:new Date(e.data.getTime())}}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}min(e,t){return this._addCheck({kind:`min`,value:e.getTime(),message:B.toString(t)})}max(e,t){return this._addCheck({kind:`max`,value:e.getTime(),message:B.toString(t)})}get minDate(){let e=null;for(let t of this._def.checks)t.kind===`min`&&(e===null||t.value>e)&&(e=t.value);return e==null?null:new Date(e)}get maxDate(){let e=null;for(let t of this._def.checks)t.kind===`max`&&(e===null||t.valuenew n_({checks:[],coerce:e?.coerce||!1,typeName:V.ZodDate,...Tg(e)});var r_=class extends Eg{_parse(e){if(this._getType(e)!==I.symbol){let t=this._getOrReturnCtx(e);return R(t,{code:L.invalid_type,expected:I.symbol,received:t.parsedType}),z}return vg(e.data)}};r_.create=e=>new r_({typeName:V.ZodSymbol,...Tg(e)});var i_=class extends Eg{_parse(e){if(this._getType(e)!==I.undefined){let t=this._getOrReturnCtx(e);return R(t,{code:L.invalid_type,expected:I.undefined,received:t.parsedType}),z}return vg(e.data)}};i_.create=e=>new i_({typeName:V.ZodUndefined,...Tg(e)});var a_=class extends Eg{_parse(e){if(this._getType(e)!==I.null){let t=this._getOrReturnCtx(e);return R(t,{code:L.invalid_type,expected:I.null,received:t.parsedType}),z}return vg(e.data)}};a_.create=e=>new a_({typeName:V.ZodNull,...Tg(e)});var o_=class extends Eg{constructor(){super(...arguments),this._any=!0}_parse(e){return vg(e.data)}};o_.create=e=>new o_({typeName:V.ZodAny,...Tg(e)});var s_=class extends Eg{constructor(){super(...arguments),this._unknown=!0}_parse(e){return vg(e.data)}};s_.create=e=>new s_({typeName:V.ZodUnknown,...Tg(e)});var c_=class extends Eg{_parse(e){let t=this._getOrReturnCtx(e);return R(t,{code:L.invalid_type,expected:I.never,received:t.parsedType}),z}};c_.create=e=>new c_({typeName:V.ZodNever,...Tg(e)});var l_=class extends Eg{_parse(e){if(this._getType(e)!==I.undefined){let t=this._getOrReturnCtx(e);return R(t,{code:L.invalid_type,expected:I.void,received:t.parsedType}),z}return vg(e.data)}};l_.create=e=>new l_({typeName:V.ZodVoid,...Tg(e)});var u_=class e extends Eg{_parse(e){let{ctx:t,status:n}=this._processInputParams(e),r=this._def;if(t.parsedType!==I.array)return R(t,{code:L.invalid_type,expected:I.array,received:t.parsedType}),z;if(r.exactLength!==null){let e=t.data.length>r.exactLength.value,i=t.data.lengthr.maxLength.value&&(R(t,{code:L.too_big,maximum:r.maxLength.value,type:`array`,inclusive:!0,exact:!1,message:r.maxLength.message}),n.dirty()),t.common.async)return Promise.all([...t.data].map((e,n)=>r.type._parseAsync(new Cg(t,e,t.path,n)))).then(e=>gg.mergeArray(n,e));let i=[...t.data].map((e,n)=>r.type._parseSync(new Cg(t,e,t.path,n)));return gg.mergeArray(n,i)}get element(){return this._def.type}min(t,n){return new e({...this._def,minLength:{value:t,message:B.toString(n)}})}max(t,n){return new e({...this._def,maxLength:{value:t,message:B.toString(n)}})}length(t,n){return new e({...this._def,exactLength:{value:t,message:B.toString(n)}})}nonempty(e){return this.min(1,e)}};u_.create=(e,t)=>new u_({type:e,minLength:null,maxLength:null,exactLength:null,typeName:V.ZodArray,...Tg(t)});function d_(e){if(e instanceof f_){let t={};for(let n in e.shape){let r=e.shape[n];t[n]=A_.create(d_(r))}return new f_({...e._def,shape:()=>t})}return e instanceof u_?new u_({...e._def,type:d_(e.element)}):e instanceof A_?A_.create(d_(e.unwrap())):e instanceof j_?j_.create(d_(e.unwrap())):e instanceof v_?v_.create(e.items.map(e=>d_(e))):e}var f_=class e extends Eg{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;let e=this._def.shape(),t=cg.objectKeys(e);return this._cached={shape:e,keys:t},this._cached}_parse(e){if(this._getType(e)!==I.object){let t=this._getOrReturnCtx(e);return R(t,{code:L.invalid_type,expected:I.object,received:t.parsedType}),z}let{status:t,ctx:n}=this._processInputParams(e),{shape:r,keys:i}=this._getCached(),a=[];if(!(this._def.catchall instanceof c_&&this._def.unknownKeys===`strip`))for(let e in n.data)i.includes(e)||a.push(e);let o=[];for(let e of i){let t=r[e],i=n.data[e];o.push({key:{status:`valid`,value:e},value:t._parse(new Cg(n,i,n.path,e)),alwaysSet:e in n.data})}if(this._def.catchall instanceof c_){let e=this._def.unknownKeys;if(e===`passthrough`)for(let e of a)o.push({key:{status:`valid`,value:e},value:{status:`valid`,value:n.data[e]}});else if(e===`strict`)a.length>0&&(R(n,{code:L.unrecognized_keys,keys:a}),t.dirty());else if(e!==`strip`)throw Error(`Internal ZodObject error: invalid unknownKeys value.`)}else{let e=this._def.catchall;for(let t of a){let r=n.data[t];o.push({key:{status:`valid`,value:t},value:e._parse(new Cg(n,r,n.path,t)),alwaysSet:t in n.data})}}return n.common.async?Promise.resolve().then(async()=>{let e=[];for(let t of o){let n=await t.key,r=await t.value;e.push({key:n,value:r,alwaysSet:t.alwaysSet})}return e}).then(e=>gg.mergeObjectSync(t,e)):gg.mergeObjectSync(t,o)}get shape(){return this._def.shape()}strict(t){return B.errToObj,new e({...this._def,unknownKeys:`strict`,...t===void 0?{}:{errorMap:(e,n)=>{let r=this._def.errorMap?.(e,n).message??n.defaultError;return e.code===`unrecognized_keys`?{message:B.errToObj(t).message??r}:{message:r}}}})}strip(){return new e({...this._def,unknownKeys:`strip`})}passthrough(){return new e({...this._def,unknownKeys:`passthrough`})}extend(t){return new e({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new e({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:V.ZodObject})}setKey(e,t){return this.augment({[e]:t})}catchall(t){return new e({...this._def,catchall:t})}pick(t){let n={};for(let e of cg.objectKeys(t))t[e]&&this.shape[e]&&(n[e]=this.shape[e]);return new e({...this._def,shape:()=>n})}omit(t){let n={};for(let e of cg.objectKeys(this.shape))t[e]||(n[e]=this.shape[e]);return new e({...this._def,shape:()=>n})}deepPartial(){return d_(this)}partial(t){let n={};for(let e of cg.objectKeys(this.shape)){let r=this.shape[e];n[e]=t&&!t[e]?r:r.optional()}return new e({...this._def,shape:()=>n})}required(t){let n={};for(let e of cg.objectKeys(this.shape))if(t&&!t[e])n[e]=this.shape[e];else{let t=this.shape[e];for(;t instanceof A_;)t=t._def.innerType;n[e]=t}return new e({...this._def,shape:()=>n})}keyof(){return T_(cg.objectKeys(this.shape))}};f_.create=(e,t)=>new f_({shape:()=>e,unknownKeys:`strip`,catchall:c_.create(),typeName:V.ZodObject,...Tg(t)}),f_.strictCreate=(e,t)=>new f_({shape:()=>e,unknownKeys:`strict`,catchall:c_.create(),typeName:V.ZodObject,...Tg(t)}),f_.lazycreate=(e,t)=>new f_({shape:e,unknownKeys:`strip`,catchall:c_.create(),typeName:V.ZodObject,...Tg(t)});var p_=class extends Eg{_parse(e){let{ctx:t}=this._processInputParams(e),n=this._def.options;function r(e){for(let t of e)if(t.result.status===`valid`)return t.result;for(let n of e)if(n.result.status===`dirty`)return t.common.issues.push(...n.ctx.common.issues),n.result;let n=e.map(e=>new dg(e.ctx.common.issues));return R(t,{code:L.invalid_union,unionErrors:n}),z}if(t.common.async)return Promise.all(n.map(async e=>{let n={...t,common:{...t.common,issues:[]},parent:null};return{result:await e._parseAsync({data:t.data,path:t.path,parent:n}),ctx:n}})).then(r);{let e,r=[];for(let i of n){let n={...t,common:{...t.common,issues:[]},parent:null},a=i._parseSync({data:t.data,path:t.path,parent:n});if(a.status===`valid`)return a;a.status===`dirty`&&!e&&(e={result:a,ctx:n}),n.common.issues.length&&r.push(n.common.issues)}if(e)return t.common.issues.push(...e.ctx.common.issues),e.result;let i=r.map(e=>new dg(e));return R(t,{code:L.invalid_union,unionErrors:i}),z}}get options(){return this._def.options}};p_.create=(e,t)=>new p_({options:e,typeName:V.ZodUnion,...Tg(t)});var m_=e=>e instanceof C_?m_(e.schema):e instanceof k_?m_(e.innerType()):e instanceof w_?[e.value]:e instanceof E_?e.options:e instanceof D_?cg.objectValues(e.enum):e instanceof M_?m_(e._def.innerType):e instanceof i_?[void 0]:e instanceof a_?[null]:e instanceof A_?[void 0,...m_(e.unwrap())]:e instanceof j_?[null,...m_(e.unwrap())]:e instanceof F_||e instanceof L_?m_(e.unwrap()):e instanceof N_?m_(e._def.innerType):[],h_=class e extends Eg{_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==I.object)return R(t,{code:L.invalid_type,expected:I.object,received:t.parsedType}),z;let n=this.discriminator,r=t.data[n],i=this.optionsMap.get(r);return i?t.common.async?i._parseAsync({data:t.data,path:t.path,parent:t}):i._parseSync({data:t.data,path:t.path,parent:t}):(R(t,{code:L.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[n]}),z)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(t,n,r){let i=new Map;for(let e of n){let n=m_(e.shape[t]);if(!n.length)throw Error(`A discriminator value for key \`${t}\` could not be extracted from all schema options`);for(let r of n){if(i.has(r))throw Error(`Discriminator property ${String(t)} has duplicate value ${String(r)}`);i.set(r,e)}}return new e({typeName:V.ZodDiscriminatedUnion,discriminator:t,options:n,optionsMap:i,...Tg(r)})}};function g_(e,t){let n=ug(e),r=ug(t);if(e===t)return{valid:!0,data:e};if(n===I.object&&r===I.object){let n=cg.objectKeys(t),r=cg.objectKeys(e).filter(e=>n.indexOf(e)!==-1),i={...e,...t};for(let n of r){let r=g_(e[n],t[n]);if(!r.valid)return{valid:!1};i[n]=r.data}return{valid:!0,data:i}}if(n===I.array&&r===I.array){if(e.length!==t.length)return{valid:!1};let n=[];for(let r=0;r{if(yg(e)||yg(r))return z;let i=g_(e.value,r.value);return i.valid?((bg(e)||bg(r))&&t.dirty(),{status:t.value,value:i.data}):(R(n,{code:L.invalid_intersection_types}),z)};return n.common.async?Promise.all([this._def.left._parseAsync({data:n.data,path:n.path,parent:n}),this._def.right._parseAsync({data:n.data,path:n.path,parent:n})]).then(([e,t])=>r(e,t)):r(this._def.left._parseSync({data:n.data,path:n.path,parent:n}),this._def.right._parseSync({data:n.data,path:n.path,parent:n}))}};__.create=(e,t,n)=>new __({left:e,right:t,typeName:V.ZodIntersection,...Tg(n)});var v_=class e extends Eg{_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==I.array)return R(n,{code:L.invalid_type,expected:I.array,received:n.parsedType}),z;if(n.data.lengththis._def.items.length&&(R(n,{code:L.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:`array`}),t.dirty());let r=[...n.data].map((e,t)=>{let r=this._def.items[t]||this._def.rest;return r?r._parse(new Cg(n,e,n.path,t)):null}).filter(e=>!!e);return n.common.async?Promise.all(r).then(e=>gg.mergeArray(t,e)):gg.mergeArray(t,r)}get items(){return this._def.items}rest(t){return new e({...this._def,rest:t})}};v_.create=(e,t)=>{if(!Array.isArray(e))throw Error(`You must pass an array of schemas to z.tuple([ ... ])`);return new v_({items:e,typeName:V.ZodTuple,rest:null,...Tg(t)})};var y_=class e extends Eg{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==I.object)return R(n,{code:L.invalid_type,expected:I.object,received:n.parsedType}),z;let r=[],i=this._def.keyType,a=this._def.valueType;for(let e in n.data)r.push({key:i._parse(new Cg(n,e,n.path,e)),value:a._parse(new Cg(n,n.data[e],n.path,e)),alwaysSet:e in n.data});return n.common.async?gg.mergeObjectAsync(t,r):gg.mergeObjectSync(t,r)}get element(){return this._def.valueType}static create(t,n,r){return n instanceof Eg?new e({keyType:t,valueType:n,typeName:V.ZodRecord,...Tg(r)}):new e({keyType:Zg.create(),valueType:t,typeName:V.ZodRecord,...Tg(n)})}},b_=class extends Eg{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==I.map)return R(n,{code:L.invalid_type,expected:I.map,received:n.parsedType}),z;let r=this._def.keyType,i=this._def.valueType,a=[...n.data.entries()].map(([e,t],a)=>({key:r._parse(new Cg(n,e,n.path,[a,`key`])),value:i._parse(new Cg(n,t,n.path,[a,`value`]))}));if(n.common.async){let e=new Map;return Promise.resolve().then(async()=>{for(let n of a){let r=await n.key,i=await n.value;if(r.status===`aborted`||i.status===`aborted`)return z;(r.status===`dirty`||i.status===`dirty`)&&t.dirty(),e.set(r.value,i.value)}return{status:t.value,value:e}})}{let e=new Map;for(let n of a){let r=n.key,i=n.value;if(r.status===`aborted`||i.status===`aborted`)return z;(r.status===`dirty`||i.status===`dirty`)&&t.dirty(),e.set(r.value,i.value)}return{status:t.value,value:e}}}};b_.create=(e,t,n)=>new b_({valueType:t,keyType:e,typeName:V.ZodMap,...Tg(n)});var x_=class e extends Eg{_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==I.set)return R(n,{code:L.invalid_type,expected:I.set,received:n.parsedType}),z;let r=this._def;r.minSize!==null&&n.data.sizer.maxSize.value&&(R(n,{code:L.too_big,maximum:r.maxSize.value,type:`set`,inclusive:!0,exact:!1,message:r.maxSize.message}),t.dirty());let i=this._def.valueType;function a(e){let n=new Set;for(let r of e){if(r.status===`aborted`)return z;r.status===`dirty`&&t.dirty(),n.add(r.value)}return{status:t.value,value:n}}let o=[...n.data.values()].map((e,t)=>i._parse(new Cg(n,e,n.path,t)));return n.common.async?Promise.all(o).then(e=>a(e)):a(o)}min(t,n){return new e({...this._def,minSize:{value:t,message:B.toString(n)}})}max(t,n){return new e({...this._def,maxSize:{value:t,message:B.toString(n)}})}size(e,t){return this.min(e,t).max(e,t)}nonempty(e){return this.min(1,e)}};x_.create=(e,t)=>new x_({valueType:e,minSize:null,maxSize:null,typeName:V.ZodSet,...Tg(t)});var S_=class e extends Eg{constructor(){super(...arguments),this.validate=this.implement}_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==I.function)return R(t,{code:L.invalid_type,expected:I.function,received:t.parsedType}),z;function n(e,n){return hg({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,mg(),fg].filter(e=>!!e),issueData:{code:L.invalid_arguments,argumentsError:n}})}function r(e,n){return hg({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,mg(),fg].filter(e=>!!e),issueData:{code:L.invalid_return_type,returnTypeError:n}})}let i={errorMap:t.common.contextualErrorMap},a=t.data;if(this._def.returns instanceof O_){let e=this;return vg(async function(...t){let o=new dg([]),s=await e._def.args.parseAsync(t,i).catch(e=>{throw o.addIssue(n(t,e)),o}),c=await Reflect.apply(a,this,s);return await e._def.returns._def.type.parseAsync(c,i).catch(e=>{throw o.addIssue(r(c,e)),o})})}{let e=this;return vg(function(...t){let o=e._def.args.safeParse(t,i);if(!o.success)throw new dg([n(t,o.error)]);let s=Reflect.apply(a,this,o.data),c=e._def.returns.safeParse(s,i);if(!c.success)throw new dg([r(s,c.error)]);return c.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...t){return new e({...this._def,args:v_.create(t).rest(s_.create())})}returns(t){return new e({...this._def,returns:t})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(t,n,r){return new e({args:t||v_.create([]).rest(s_.create()),returns:n||s_.create(),typeName:V.ZodFunction,...Tg(r)})}},C_=class extends Eg{get schema(){return this._def.getter()}_parse(e){let{ctx:t}=this._processInputParams(e);return this._def.getter()._parse({data:t.data,path:t.path,parent:t})}};C_.create=(e,t)=>new C_({getter:e,typeName:V.ZodLazy,...Tg(t)});var w_=class extends Eg{_parse(e){if(e.data!==this._def.value){let t=this._getOrReturnCtx(e);return R(t,{received:t.data,code:L.invalid_literal,expected:this._def.value}),z}return{status:`valid`,value:e.data}}get value(){return this._def.value}};w_.create=(e,t)=>new w_({value:e,typeName:V.ZodLiteral,...Tg(t)});function T_(e,t){return new E_({values:e,typeName:V.ZodEnum,...Tg(t)})}var E_=class e extends Eg{_parse(e){if(typeof e.data!=`string`){let t=this._getOrReturnCtx(e),n=this._def.values;return R(t,{expected:cg.joinValues(n),received:t.parsedType,code:L.invalid_type}),z}if(this._cache||=new Set(this._def.values),!this._cache.has(e.data)){let t=this._getOrReturnCtx(e),n=this._def.values;return R(t,{received:t.data,code:L.invalid_enum_value,options:n}),z}return vg(e.data)}get options(){return this._def.values}get enum(){let e={};for(let t of this._def.values)e[t]=t;return e}get Values(){let e={};for(let t of this._def.values)e[t]=t;return e}get Enum(){let e={};for(let t of this._def.values)e[t]=t;return e}extract(t,n=this._def){return e.create(t,{...this._def,...n})}exclude(t,n=this._def){return e.create(this.options.filter(e=>!t.includes(e)),{...this._def,...n})}};E_.create=T_;var D_=class extends Eg{_parse(e){let t=cg.getValidEnumValues(this._def.values),n=this._getOrReturnCtx(e);if(n.parsedType!==I.string&&n.parsedType!==I.number){let e=cg.objectValues(t);return R(n,{expected:cg.joinValues(e),received:n.parsedType,code:L.invalid_type}),z}if(this._cache||=new Set(cg.getValidEnumValues(this._def.values)),!this._cache.has(e.data)){let e=cg.objectValues(t);return R(n,{received:n.data,code:L.invalid_enum_value,options:e}),z}return vg(e.data)}get enum(){return this._def.values}};D_.create=(e,t)=>new D_({values:e,typeName:V.ZodNativeEnum,...Tg(t)});var O_=class extends Eg{unwrap(){return this._def.type}_parse(e){let{ctx:t}=this._processInputParams(e);return t.parsedType!==I.promise&&t.common.async===!1?(R(t,{code:L.invalid_type,expected:I.promise,received:t.parsedType}),z):vg((t.parsedType===I.promise?t.data:Promise.resolve(t.data)).then(e=>this._def.type.parseAsync(e,{path:t.path,errorMap:t.common.contextualErrorMap})))}};O_.create=(e,t)=>new O_({type:e,typeName:V.ZodPromise,...Tg(t)});var k_=class extends Eg{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===V.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){let{status:t,ctx:n}=this._processInputParams(e),r=this._def.effect||null,i={addIssue:e=>{R(n,e),e.fatal?t.abort():t.dirty()},get path(){return n.path}};if(i.addIssue=i.addIssue.bind(i),r.type===`preprocess`){let e=r.transform(n.data,i);if(n.common.async)return Promise.resolve(e).then(async e=>{if(t.value===`aborted`)return z;let r=await this._def.schema._parseAsync({data:e,path:n.path,parent:n});return r.status===`aborted`?z:r.status===`dirty`||t.value===`dirty`?_g(r.value):r});{if(t.value===`aborted`)return z;let r=this._def.schema._parseSync({data:e,path:n.path,parent:n});return r.status===`aborted`?z:r.status===`dirty`||t.value===`dirty`?_g(r.value):r}}if(r.type===`refinement`){let e=e=>{let t=r.refinement(e,i);if(n.common.async)return Promise.resolve(t);if(t instanceof Promise)throw Error(`Async refinement encountered during synchronous parse operation. Use .parseAsync instead.`);return e};if(n.common.async===!1){let r=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});return r.status===`aborted`?z:(r.status===`dirty`&&t.dirty(),e(r.value),{status:t.value,value:r.value})}return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(n=>n.status===`aborted`?z:(n.status===`dirty`&&t.dirty(),e(n.value).then(()=>({status:t.value,value:n.value}))))}if(r.type===`transform`)if(n.common.async===!1){let e=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});if(!xg(e))return z;let a=r.transform(e.value,i);if(a instanceof Promise)throw Error(`Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.`);return{status:t.value,value:a}}else return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(e=>xg(e)?Promise.resolve(r.transform(e.value,i)).then(e=>({status:t.value,value:e})):z);cg.assertNever(r)}};k_.create=(e,t,n)=>new k_({schema:e,typeName:V.ZodEffects,effect:t,...Tg(n)}),k_.createWithPreprocess=(e,t,n)=>new k_({schema:t,effect:{type:`preprocess`,transform:e},typeName:V.ZodEffects,...Tg(n)});var A_=class extends Eg{_parse(e){return this._getType(e)===I.undefined?vg(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}};A_.create=(e,t)=>new A_({innerType:e,typeName:V.ZodOptional,...Tg(t)});var j_=class extends Eg{_parse(e){return this._getType(e)===I.null?vg(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}};j_.create=(e,t)=>new j_({innerType:e,typeName:V.ZodNullable,...Tg(t)});var M_=class extends Eg{_parse(e){let{ctx:t}=this._processInputParams(e),n=t.data;return t.parsedType===I.undefined&&(n=this._def.defaultValue()),this._def.innerType._parse({data:n,path:t.path,parent:t})}removeDefault(){return this._def.innerType}};M_.create=(e,t)=>new M_({innerType:e,typeName:V.ZodDefault,defaultValue:typeof t.default==`function`?t.default:()=>t.default,...Tg(t)});var N_=class extends Eg{_parse(e){let{ctx:t}=this._processInputParams(e),n={...t,common:{...t.common,issues:[]}},r=this._def.innerType._parse({data:n.data,path:n.path,parent:{...n}});return Sg(r)?r.then(e=>({status:`valid`,value:e.status===`valid`?e.value:this._def.catchValue({get error(){return new dg(n.common.issues)},input:n.data})})):{status:`valid`,value:r.status===`valid`?r.value:this._def.catchValue({get error(){return new dg(n.common.issues)},input:n.data})}}removeCatch(){return this._def.innerType}};N_.create=(e,t)=>new N_({innerType:e,typeName:V.ZodCatch,catchValue:typeof t.catch==`function`?t.catch:()=>t.catch,...Tg(t)});var P_=class extends Eg{_parse(e){if(this._getType(e)!==I.nan){let t=this._getOrReturnCtx(e);return R(t,{code:L.invalid_type,expected:I.nan,received:t.parsedType}),z}return{status:`valid`,value:e.data}}};P_.create=e=>new P_({typeName:V.ZodNaN,...Tg(e)});var F_=class extends Eg{_parse(e){let{ctx:t}=this._processInputParams(e),n=t.data;return this._def.type._parse({data:n,path:t.path,parent:t})}unwrap(){return this._def.type}},I_=class e extends Eg{_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.common.async)return(async()=>{let e=await this._def.in._parseAsync({data:n.data,path:n.path,parent:n});return e.status===`aborted`?z:e.status===`dirty`?(t.dirty(),_g(e.value)):this._def.out._parseAsync({data:e.value,path:n.path,parent:n})})();{let e=this._def.in._parseSync({data:n.data,path:n.path,parent:n});return e.status===`aborted`?z:e.status===`dirty`?(t.dirty(),{status:`dirty`,value:e.value}):this._def.out._parseSync({data:e.value,path:n.path,parent:n})}}static create(t,n){return new e({in:t,out:n,typeName:V.ZodPipeline})}},L_=class extends Eg{_parse(e){let t=this._def.innerType._parse(e),n=e=>(xg(e)&&(e.value=Object.freeze(e.value)),e);return Sg(t)?t.then(e=>n(e)):n(t)}unwrap(){return this._def.innerType}};L_.create=(e,t)=>new L_({innerType:e,typeName:V.ZodReadonly,...Tg(t)}),f_.lazycreate;var V;(function(e){e.ZodString=`ZodString`,e.ZodNumber=`ZodNumber`,e.ZodNaN=`ZodNaN`,e.ZodBigInt=`ZodBigInt`,e.ZodBoolean=`ZodBoolean`,e.ZodDate=`ZodDate`,e.ZodSymbol=`ZodSymbol`,e.ZodUndefined=`ZodUndefined`,e.ZodNull=`ZodNull`,e.ZodAny=`ZodAny`,e.ZodUnknown=`ZodUnknown`,e.ZodNever=`ZodNever`,e.ZodVoid=`ZodVoid`,e.ZodArray=`ZodArray`,e.ZodObject=`ZodObject`,e.ZodUnion=`ZodUnion`,e.ZodDiscriminatedUnion=`ZodDiscriminatedUnion`,e.ZodIntersection=`ZodIntersection`,e.ZodTuple=`ZodTuple`,e.ZodRecord=`ZodRecord`,e.ZodMap=`ZodMap`,e.ZodSet=`ZodSet`,e.ZodFunction=`ZodFunction`,e.ZodLazy=`ZodLazy`,e.ZodLiteral=`ZodLiteral`,e.ZodEnum=`ZodEnum`,e.ZodEffects=`ZodEffects`,e.ZodNativeEnum=`ZodNativeEnum`,e.ZodOptional=`ZodOptional`,e.ZodNullable=`ZodNullable`,e.ZodDefault=`ZodDefault`,e.ZodCatch=`ZodCatch`,e.ZodPromise=`ZodPromise`,e.ZodBranded=`ZodBranded`,e.ZodPipeline=`ZodPipeline`,e.ZodReadonly=`ZodReadonly`})(V||={});var H=Zg.create,R_=$g.create;P_.create,e_.create;var z_=t_.create;n_.create,r_.create,i_.create,a_.create;var B_=o_.create,V_=s_.create;c_.create,l_.create;var H_=u_.create,U_=f_.create;f_.strictCreate;var W_=p_.create,G_=h_.create;__.create,v_.create;var K_=y_.create;b_.create,x_.create,S_.create,C_.create;var U=w_.create,q_=E_.create,J_=D_.create;O_.create,k_.create,A_.create,j_.create,k_.createWithPreprocess,I_.create;var Y_=Ke(),X_=U_({name:H(),arguments:H()}),Z_=U_({id:H(),type:U(`function`),function:X_,encryptedValue:H().optional()}),Q_=U_({id:H(),role:H(),content:H().optional(),name:H().optional(),encryptedValue:H().optional()}),$_=U_({type:U(`text`),text:H()}),ev=G_(`type`,[U_({type:U(`data`),value:H(),mimeType:H()}),U_({type:U(`url`),value:H(),mimeType:H().optional()})]),tv=U_({type:U(`image`),source:ev,metadata:V_().optional()}),nv=U_({type:U(`audio`),source:ev,metadata:V_().optional()}),rv=U_({type:U(`video`),source:ev,metadata:V_().optional()}),iv=U_({type:U(`document`),source:ev,metadata:V_().optional()}),av=U_({type:U(`binary`),mimeType:H(),id:H().optional(),url:H().optional(),data:H().optional(),filename:H().optional()}),ov=(e,t)=>{!e.id&&!e.url&&!e.data&&t.addIssue({code:L.custom,message:`BinaryInputContent requires at least one of id, url, or data.`,path:[`id`]})};av.superRefine((e,t)=>{ov(e,t)});var sv=G_(`type`,[$_,tv,nv,rv,iv,av]).superRefine((e,t)=>{e.type===`binary`&&ov(e,t)}),cv=G_(`role`,[Q_.extend({role:U(`developer`),content:H()}),Q_.extend({role:U(`system`),content:H()}),Q_.extend({role:U(`assistant`),content:H().optional(),toolCalls:H_(Z_).optional()}),Q_.extend({role:U(`user`),content:W_([H(),H_(sv)])}),U_({id:H(),content:H(),role:U(`tool`),toolCallId:H(),error:H().optional(),encryptedValue:H().optional()}),U_({id:H(),role:U(`activity`),activityType:H(),content:K_(B_())}),U_({id:H(),role:U(`reasoning`),content:H(),encryptedValue:H().optional()})]);W_([U(`developer`),U(`system`),U(`assistant`),U(`user`),U(`tool`),U(`activity`),U(`reasoning`)]);var lv=U_({description:H(),value:H()}),uv=U_({name:H(),description:H(),parameters:B_(),metadata:K_(B_()).optional()}),dv=U_({id:H(),reason:H(),message:H().optional(),toolCallId:H().optional(),responseSchema:K_(B_()).optional(),expiresAt:H().optional(),metadata:K_(B_()).optional()}),fv=U_({interruptId:H(),status:q_([`resolved`,`cancelled`]),payload:B_().optional()}),pv=U_({threadId:H(),runId:H(),parentRunId:H().optional(),state:B_(),messages:H_(cv),tools:H_(uv),context:H_(lv),forwardedProps:B_(),resume:H_(fv).optional()}),mv=B_(),hv=class extends Error{constructor(e){super(e)}},gv=class extends hv{constructor(){super(`Connect not implemented. This method is not supported by the current agent.`)}},_v=U_({name:H(),description:H().optional()}),vv=U_({name:H().optional(),type:H().optional(),description:H().optional(),version:H().optional(),provider:H().optional(),documentationUrl:H().optional(),metadata:K_(V_()).optional()}),yv=U_({streaming:z_().optional(),websocket:z_().optional(),httpBinary:z_().optional(),pushNotifications:z_().optional(),resumable:z_().optional()}),bv=U_({supported:z_().optional(),items:H_(uv).optional(),parallelCalls:z_().optional(),clientProvided:z_().optional()}),xv=U_({structuredOutput:z_().optional(),supportedMimeTypes:H_(H()).optional()}),Sv=U_({snapshots:z_().optional(),deltas:z_().optional(),memory:z_().optional(),persistentState:z_().optional()}),Cv=U_({supported:z_().optional(),delegation:z_().optional(),handoffs:z_().optional(),subAgents:H_(_v).optional()}),wv=U_({supported:z_().optional(),streaming:z_().optional(),encrypted:z_().optional()}),Tv=U_({image:z_().optional(),audio:z_().optional(),video:z_().optional(),pdf:z_().optional(),file:z_().optional()}),Ev=U_({image:z_().optional(),audio:z_().optional()}),Dv=U_({input:Tv.optional(),output:Ev.optional()}),Ov=U_({codeExecution:z_().optional(),sandboxed:z_().optional(),maxIterations:R_().optional(),maxExecutionTime:R_().optional()}),kv=U_({supported:z_().optional(),approvals:z_().optional(),interventions:z_().optional(),feedback:z_().optional(),interrupts:z_().optional(),approveWithEdits:z_().optional()});U_({identity:vv.optional(),transport:yv.optional(),tools:bv.optional(),output:xv.optional(),state:Sv.optional(),multiAgent:Cv.optional(),reasoning:wv.optional(),multimodal:Dv.optional(),execution:Ov.optional(),humanInTheLoop:kv.optional(),custom:K_(V_()).optional()});var Av=W_([U(`developer`),U(`system`),U(`assistant`),U(`user`)]),W=function(e){return e.TEXT_MESSAGE_START=`TEXT_MESSAGE_START`,e.TEXT_MESSAGE_CONTENT=`TEXT_MESSAGE_CONTENT`,e.TEXT_MESSAGE_END=`TEXT_MESSAGE_END`,e.TEXT_MESSAGE_CHUNK=`TEXT_MESSAGE_CHUNK`,e.TOOL_CALL_START=`TOOL_CALL_START`,e.TOOL_CALL_ARGS=`TOOL_CALL_ARGS`,e.TOOL_CALL_END=`TOOL_CALL_END`,e.TOOL_CALL_CHUNK=`TOOL_CALL_CHUNK`,e.TOOL_CALL_RESULT=`TOOL_CALL_RESULT`,e.THINKING_START=`THINKING_START`,e.THINKING_END=`THINKING_END`,e.THINKING_TEXT_MESSAGE_START=`THINKING_TEXT_MESSAGE_START`,e.THINKING_TEXT_MESSAGE_CONTENT=`THINKING_TEXT_MESSAGE_CONTENT`,e.THINKING_TEXT_MESSAGE_END=`THINKING_TEXT_MESSAGE_END`,e.STATE_SNAPSHOT=`STATE_SNAPSHOT`,e.STATE_DELTA=`STATE_DELTA`,e.MESSAGES_SNAPSHOT=`MESSAGES_SNAPSHOT`,e.ACTIVITY_SNAPSHOT=`ACTIVITY_SNAPSHOT`,e.ACTIVITY_DELTA=`ACTIVITY_DELTA`,e.RAW=`RAW`,e.CUSTOM=`CUSTOM`,e.RUN_STARTED=`RUN_STARTED`,e.RUN_FINISHED=`RUN_FINISHED`,e.RUN_ERROR=`RUN_ERROR`,e.STEP_STARTED=`STEP_STARTED`,e.STEP_FINISHED=`STEP_FINISHED`,e.REASONING_START=`REASONING_START`,e.REASONING_MESSAGE_START=`REASONING_MESSAGE_START`,e.REASONING_MESSAGE_CONTENT=`REASONING_MESSAGE_CONTENT`,e.REASONING_MESSAGE_END=`REASONING_MESSAGE_END`,e.REASONING_MESSAGE_CHUNK=`REASONING_MESSAGE_CHUNK`,e.REASONING_END=`REASONING_END`,e.REASONING_ENCRYPTED_VALUE=`REASONING_ENCRYPTED_VALUE`,e}({}),jv=U_({type:J_(W),timestamp:R_().optional(),rawEvent:B_().optional()}).passthrough(),Mv=jv.extend({type:U(W.TEXT_MESSAGE_START),messageId:H(),role:Av.default(`assistant`),name:H().optional()}),Nv=jv.extend({type:U(W.TEXT_MESSAGE_CONTENT),messageId:H(),delta:H()}),Pv=jv.extend({type:U(W.TEXT_MESSAGE_END),messageId:H()}),Fv=jv.extend({type:U(W.TEXT_MESSAGE_CHUNK),messageId:H().optional(),role:Av.optional(),delta:H().optional(),name:H().optional()}),Iv=jv.extend({type:U(W.THINKING_TEXT_MESSAGE_START)}),Lv=Nv.omit({messageId:!0,type:!0}).extend({type:U(W.THINKING_TEXT_MESSAGE_CONTENT)}),Rv=jv.extend({type:U(W.THINKING_TEXT_MESSAGE_END)}),zv=jv.extend({type:U(W.TOOL_CALL_START),toolCallId:H(),toolCallName:H(),parentMessageId:H().optional()}),Bv=jv.extend({type:U(W.TOOL_CALL_ARGS),toolCallId:H(),delta:H()}),Vv=jv.extend({type:U(W.TOOL_CALL_END),toolCallId:H()}),Hv=jv.extend({messageId:H(),type:U(W.TOOL_CALL_RESULT),toolCallId:H(),content:H(),role:U(`tool`).optional()}),Uv=jv.extend({type:U(W.TOOL_CALL_CHUNK),toolCallId:H().optional(),toolCallName:H().optional(),parentMessageId:H().optional(),delta:H().optional()}),Wv=jv.extend({type:U(W.THINKING_START),title:H().optional()}),Gv=jv.extend({type:U(W.THINKING_END)}),Kv=jv.extend({type:U(W.STATE_SNAPSHOT),snapshot:mv}),qv=jv.extend({type:U(W.STATE_DELTA),delta:H_(B_())}),Jv=jv.extend({type:U(W.MESSAGES_SNAPSHOT),messages:H_(cv)}),Yv=jv.extend({type:U(W.ACTIVITY_SNAPSHOT),messageId:H(),activityType:H(),content:K_(B_()),replace:z_().optional().default(!0)}),Xv=jv.extend({type:U(W.ACTIVITY_DELTA),messageId:H(),activityType:H(),patch:H_(B_())}),Zv=jv.extend({type:U(W.RAW),event:B_(),source:H().optional()}),Qv=jv.extend({type:U(W.CUSTOM),name:H(),value:B_()}),$v=jv.extend({type:U(W.RUN_STARTED),threadId:H(),runId:H(),parentRunId:H().optional(),input:pv.optional()}),ey=G_(`type`,[U_({type:U(`success`)}).strict(),U_({type:U(`interrupt`),interrupts:H_(dv).min(1)}).strict()]),ty=jv.extend({type:U(W.RUN_FINISHED),threadId:H(),runId:H(),result:B_().optional(),outcome:ey.nullable().optional().transform(e=>e??void 0)}),ny=jv.extend({type:U(W.RUN_ERROR),message:H(),code:H().optional()}),ry=jv.extend({type:U(W.STEP_STARTED),stepName:H()}),iy=jv.extend({type:U(W.STEP_FINISHED),stepName:H()}),ay=W_([U(`tool-call`),U(`message`)]),oy=G_(`type`,[Mv,Nv,Pv,Fv,Wv,Gv,Iv,Lv,Rv,zv,Bv,Vv,Uv,Hv,Kv,qv,Jv,Yv,Xv,Zv,Qv,$v,ty,ny,ry,iy,jv.extend({type:U(W.REASONING_START),messageId:H()}),jv.extend({type:U(W.REASONING_MESSAGE_START),messageId:H(),role:U(`reasoning`)}),jv.extend({type:U(W.REASONING_MESSAGE_CONTENT),messageId:H(),delta:H()}),jv.extend({type:U(W.REASONING_MESSAGE_END),messageId:H()}),jv.extend({type:U(W.REASONING_MESSAGE_CHUNK),messageId:H().optional(),delta:H().optional()}),jv.extend({type:U(W.REASONING_END),messageId:H()}),jv.extend({type:U(W.REASONING_ENCRYPTED_VALUE),subtype:ay,entityId:H(),encryptedValue:H()})]),sy=(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),cy=Object.prototype.hasOwnProperty;function ly(e,t){return cy.call(e,t)}function uy(e){if(Array.isArray(e)){for(var t=Array(e.length),n=0;n=48&&r<=57){t++;continue}return!1}return!0}function py(e){return e.indexOf(`/`)===-1&&e.indexOf(`~`)===-1?e:e.replace(/~/g,`~0`).replace(/\//g,`~1`)}function my(e){return e.replace(/~1/g,`/`).replace(/~0/g,`~`)}function hy(e){if(e===void 0)return!0;if(e){if(Array.isArray(e)){for(var t=0,n=e.length;tyy,_areEquals:()=>ky,applyOperation:()=>wy,applyPatch:()=>Ty,applyReducer:()=>Ey,deepClone:()=>by,getValueByPointer:()=>Cy,validate:()=>Oy,validator:()=>Dy}),yy=_y,by=dy,xy={add:function(e,t,n){return e[t]=this.value,{newDocument:n}},remove:function(e,t,n){var r=e[t];return delete e[t],{newDocument:n,removed:r}},replace:function(e,t,n){var r=e[t];return e[t]=this.value,{newDocument:n,removed:r}},move:function(e,t,n){var r=Cy(n,this.path);r&&=dy(r);var i=wy(n,{op:`remove`,path:this.from}).removed;return wy(n,{op:`add`,path:this.path,value:i}),{newDocument:n,removed:r}},copy:function(e,t,n){var r=Cy(n,this.from);return wy(n,{op:`add`,path:this.path,value:dy(r)}),{newDocument:n}},test:function(e,t,n){return{newDocument:n,test:ky(e[t],this.value)}},_get:function(e,t,n){return this.value=e[t],{newDocument:n}}},Sy={add:function(e,t,n){return fy(t)?e.splice(t,0,this.value):e[t]=this.value,{newDocument:n,index:t}},remove:function(e,t,n){return{newDocument:n,removed:e.splice(t,1)[0]}},replace:function(e,t,n){var r=e[t];return e[t]=this.value,{newDocument:n,removed:r}},move:xy.move,copy:xy.copy,test:xy.test,_get:xy._get};function Cy(e,t){if(t==``)return e;var n={op:`_get`,path:t};return wy(e,n),n.value}function wy(e,t,n,r,i,a){if(n===void 0&&(n=!1),r===void 0&&(r=!0),i===void 0&&(i=!0),a===void 0&&(a=0),n&&(typeof n==`function`?n(t,0,e,t.path):Dy(t,0)),t.path===``){var o={newDocument:e};if(t.op===`add`)return o.newDocument=t.value,o;if(t.op===`replace`)return o.newDocument=t.value,o.removed=e,o;if(t.op===`move`||t.op===`copy`)return o.newDocument=Cy(e,t.from),t.op===`move`&&(o.removed=e),o;if(t.op===`test`){if(o.test=ky(e,t.value),o.test===!1)throw new yy(`Test operation failed`,`TEST_OPERATION_FAILED`,a,t,e);return o.newDocument=e,o}if(t.op===`remove`)return o.removed=e,o.newDocument=null,o;if(t.op===`_get`)return t.value=e,o;if(n)throw new yy("Operation `op` property is not one of operations defined in RFC-6902",`OPERATION_OP_INVALID`,a,t,e);return o}r||(e=dy(e));var s=(t.path||``).split(`/`),c=e,l=1,u=s.length,d=void 0,f=void 0,p=void 0;for(p=typeof n==`function`?n:Dy;;){if(f=s[l],f&&f.indexOf(`~`)!=-1&&(f=my(f)),i&&(f==`__proto__`||f==`prototype`&&l>0&&s[l-1]==`constructor`))throw TypeError("JSON-Patch: modifying `__proto__` or `constructor/prototype` prop is banned for security reasons, if this was on purpose, please set `banPrototypeModifications` flag false and pass it to this function. More info in fast-json-patch README");if(n&&d===void 0&&(c[f]===void 0?d=s.slice(0,l).join(`/`):l==u-1&&(d=t.path),d!==void 0&&p(t,0,e,d)),l++,Array.isArray(c)){if(f===`-`)f=c.length;else if(n&&!fy(f))throw new yy(`Expected an unsigned base-10 integer value, making the new referenced value the array element with the zero-based index`,`OPERATION_PATH_ILLEGAL_ARRAY_INDEX`,a,t,e);else fy(f)&&(f=~~f);if(l>=u){if(n&&t.op===`add`&&f>c.length)throw new yy(`The specified index MUST NOT be greater than the number of elements in the array`,`OPERATION_VALUE_OUT_OF_BOUNDS`,a,t,e);var o=Sy[t.op].call(t,c,f,e);if(o.test===!1)throw new yy(`Test operation failed`,`TEST_OPERATION_FAILED`,a,t,e);return o}}else if(l>=u){var o=xy[t.op].call(t,c,f,e);if(o.test===!1)throw new yy(`Test operation failed`,`TEST_OPERATION_FAILED`,a,t,e);return o}if(c=c[f],n&&l0)throw new yy('Operation `path` property must start with "/"',`OPERATION_PATH_INVALID`,t,e,n);if((e.op===`move`||e.op===`copy`)&&typeof e.from!=`string`)throw new yy("Operation `from` property is not present (applicable in `move` and `copy` operations)",`OPERATION_FROM_REQUIRED`,t,e,n);if((e.op===`add`||e.op===`replace`||e.op===`test`)&&e.value===void 0)throw new yy("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)",`OPERATION_VALUE_REQUIRED`,t,e,n);if((e.op===`add`||e.op===`replace`||e.op===`test`)&&hy(e.value))throw new yy("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)",`OPERATION_VALUE_CANNOT_CONTAIN_UNDEFINED`,t,e,n);if(n){if(e.op==`add`){var i=e.path.split(`/`).length,a=r.split(`/`).length;if(i!==a+1&&i!==a)throw new yy("Cannot perform an `add` operation at the desired path",`OPERATION_PATH_CANNOT_ADD`,t,e,n)}else if(e.op===`replace`||e.op===`remove`||e.op===`_get`){if(e.path!==r)throw new yy(`Cannot perform the operation at a path that does not exist`,`OPERATION_PATH_UNRESOLVABLE`,t,e,n)}else if(e.op===`move`||e.op===`copy`){var o=Oy([{op:`_get`,path:e.from,value:void 0}],n);if(o&&o.name===`OPERATION_PATH_UNRESOLVABLE`)throw new yy(`Cannot perform the operation from a path that does not exist`,`OPERATION_FROM_UNRESOLVABLE`,t,e,n)}}}function Oy(e,t,n){try{if(!Array.isArray(e))throw new yy(`Patch sequence must be an array`,`SEQUENCE_NOT_AN_ARRAY`);if(t)Ty(dy(t),dy(e),n||!0);else{n||=Dy;for(var r=0;rVy,generate:()=>zy,observe:()=>Ry,unobserve:()=>Ly}),jy=new WeakMap,My=function(){function e(e){this.observers=new Map,this.obj=e}return e}(),Ny=function(){function e(e,t){this.callback=e,this.observer=t}return e}();function Py(e){return jy.get(e)}function Fy(e,t){return e.observers.get(t)}function Iy(e,t){e.observers.delete(t.callback)}function Ly(e,t){t.unobserve()}function Ry(e,t){var n=[],r,i=Py(e);if(!i)i=new My(e),jy.set(e,i);else{var a=Fy(i,t);r=a&&a.observer}if(r)return r;if(r={},i.value=dy(e),t){r.callback=t,r.next=null;var o=function(){zy(r)},s=function(){clearTimeout(r.next),r.next=setTimeout(o)};typeof window<`u`&&(window.addEventListener(`mouseup`,s),window.addEventListener(`keyup`,s),window.addEventListener(`mousedown`,s),window.addEventListener(`keydown`,s),window.addEventListener(`change`,s))}return r.patches=n,r.object=e,r.unobserve=function(){zy(r),clearTimeout(r.next),Iy(i,r),typeof window<`u`&&(window.removeEventListener(`mouseup`,s),window.removeEventListener(`keyup`,s),window.removeEventListener(`mousedown`,s),window.removeEventListener(`keydown`,s),window.removeEventListener(`change`,s))},i.observers.set(t,new Ny(t,r)),r}function zy(e,t){t===void 0&&(t=!1);var n=jy.get(e.object);By(n.value,e.object,e.patches,``,t),e.patches.length&&Ty(n.value,e.patches);var r=e.patches;return r.length>0&&(e.patches=[],e.callback&&e.callback(r)),r}function By(e,t,n,r,i){if(t!==e){typeof t.toJSON==`function`&&(t=t.toJSON());for(var a=uy(t),o=uy(e),s=!1,c=o.length-1;c>=0;c--){var l=o[c],u=e[l];if(ly(t,l)&&(t[l]!==void 0||u===void 0||Array.isArray(t)!==!1)){var d=t[l];typeof u==`object`&&u&&typeof d==`object`&&d&&Array.isArray(u)===Array.isArray(d)?By(u,d,n,r+`/`+py(l),i):u!==d&&(i&&n.push({op:`test`,path:r+`/`+py(l),value:dy(u)}),n.push({op:`replace`,path:r+`/`+py(l),value:dy(d)}))}else Array.isArray(e)===Array.isArray(t)?(i&&n.push({op:`test`,path:r+`/`+py(l),value:dy(u)}),n.push({op:`remove`,path:r+`/`+py(l)}),s=!0):(i&&n.push({op:`test`,path:r,value:e}),n.push({op:`replace`,path:r,value:t}))}if(!(!s&&a.length==o.length))for(var c=0;c0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(t){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,t)},t.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},t.prototype._innerSubscribe=function(e){var t=this,n=this,r=n.hasError,i=n.isStopped,a=n.observers;return r||i?Jy:(this.currentObservers=null,a.push(e),new qy(function(){t.currentObservers=null,Ky(a,e)}))},t.prototype._checkFinalizedStatuses=function(e){var t=this,n=t.hasError,r=t.thrownError,i=t.isStopped;n?e.error(r):i&&e.complete()},t.prototype.asObservable=function(){var e=new xb;return e.source=this,e},t.create=function(e,t){return new jb(e,t)},t}(xb),jb=function(e){Ld(t,e);function t(t,n){var r=e.call(this)||this;return r.destination=t,r.source=n,r}return t.prototype.next=function(e){var t,n;(n=(t=this.destination)?.next)==null||n.call(t,e)},t.prototype.error=function(e){var t,n;(n=(t=this.destination)?.error)==null||n.call(t,e)},t.prototype.complete=function(){var e,t;(t=(e=this.destination)?.complete)==null||t.call(e)},t.prototype._subscribe=function(e){return this.source?.subscribe(e)??Jy},t}(Ab),Mb={now:function(){return(Mb.delegate||Date).now()},delegate:void 0},Nb=function(e){Ld(t,e);function t(t,n,r){t===void 0&&(t=1/0),n===void 0&&(n=1/0),r===void 0&&(r=Mb);var i=e.call(this)||this;return i._bufferSize=t,i._windowTime=n,i._timestampProvider=r,i._buffer=[],i._infiniteTimeWindow=!0,i._infiniteTimeWindow=n===1/0,i._bufferSize=Math.max(1,t),i._windowTime=Math.max(1,n),i}return t.prototype.next=function(t){var n=this,r=n.isStopped,i=n._buffer,a=n._infiniteTimeWindow,o=n._timestampProvider,s=n._windowTime;r||(i.push(t),!a&&i.push(o.now()+s)),this._trimBuffer(),e.prototype.next.call(this,t)},t.prototype._subscribe=function(e){this._throwIfClosed(),this._trimBuffer();for(var t=this._innerSubscribe(e),n=this,r=n._infiniteTimeWindow,i=n._buffer.slice(),a=0;a=0}function Ax(e){for(var t=[`topLevel`],n=0,r,i,a,o=function(e){return t.push(e)},s=function(e){return t[t.length-1]=e},c=function(e){r??(r=n,i=t.length,a=e)},l=function(e){e===a&&(r=void 0,i=void 0,a=void 0)},u=function(){return t.pop()},d=function(){return n--},f=function(e){if(`0`<=e&&e<=`9`){o(`number`);return}switch(e){case`"`:o(`string`);return;case`-`:o(`numberNeedsDigit`);return;case`t`:o(`true`);return;case`f`:o(`false`);return;case`n`:o(`null`);return;case`[`:o(`arrayNeedsValue`);return;case`{`:o(`objectNeedsKey`);return}},p=e.length;n`9`)&&(d(),u());break;case`numberNeedsDigit`:s(`number`);break;case`numberNeedsExponent`:s(m===`+`||m===`-`?`numberNeedsDigit`:`number`);break;case`true`:case`false`:case`null`:(m<`a`||m>`z`)&&(d(),u());break;case`arrayNeedsValue`:m===`]`?u():kx(m)||(l(`collectionItem`),s(`arrayNeedsComma`),f(m));break;case`arrayNeedsComma`:m===`]`?u():m===`,`&&(c(`collectionItem`),s(`arrayNeedsValue`));break;case`objectNeedsKey`:m===`}`?u():m===`"`&&(c(`collectionItem`),s(`objectNeedsColon`),o(`string`));break;case`objectNeedsColon`:m===`:`&&s(`objectNeedsValue`);break;case`objectNeedsValue`:kx(m)||(l(`collectionItem`),s(`objectNeedsComma`),f(m));break;case`objectNeedsComma`:m===`}`?u():m===`,`&&(c(`collectionItem`),s(`objectNeedsKey`))}}i!=null&&(t.length=i);for(var h=[r==null?e:e.slice(0,r)],g=function(t){return h.push(t.slice(e.length-e.lastIndexOf(t[0])))},_=t.length-1;_>=0;_--)switch(t[_]){case`string`:h.push(`"`);break;case`numberNeedsDigit`:case`numberNeedsExponent`:h.push(`0`);break;case`true`:g(`true`);break;case`false`:g(`false`);break;case`null`:g(`null`);break;case`arrayNeedsValue`:case`arrayNeedsComma`:h.push(`]`);break;case`objectNeedsKey`:case`objectNeedsColon`:case`objectNeedsValue`:case`objectNeedsComma`:h.push(`}`)}return h.join(``)}function jx(){let e=0,t=0;for(let n=0;n<28;n+=7){let r=this.buf[this.pos++];if(e|=(r&127)<>4,!(n&128))return this.assertBounds(),[e,t];for(let n=3;n<=31;n+=7){let r=this.buf[this.pos++];if(t|=(r&127)<>>r,a=!(!(i>>>7)&&t==0),o=(a?i|128:i)&255;if(n.push(o),!a)return}let r=e>>>28&15|(t&7)<<4,i=!!(t>>3);if(n.push((i?r|128:r)&255),i){for(let e=3;e<31;e+=7){let r=t>>>e,i=!!(r>>>7),a=(i?r|128:r)&255;if(n.push(a),!i)return}n.push(t>>>31&1)}}var Nx=4294967296;function Px(e){let t=e[0]===`-`;t&&(e=e.slice(1));let n=1e6,r=0,i=0;function a(t,a){let o=Number(e.slice(t,a));i*=n,r=r*n+o,r>=Nx&&(i+=r/Nx|0,r%=Nx)}return a(-24,-18),a(-18,-12),a(-12,-6),a(-6),t?zx(r,i):Rx(r,i)}function Fx(e,t){let n=Rx(e,t),r=n.hi&2147483648;r&&(n=zx(n.lo,n.hi));let i=Ix(n.lo,n.hi);return r?`-`+i:i}function Ix(e,t){if({lo:e,hi:t}=Lx(e,t),t<=2097151)return String(Nx*t+e);let n=e&16777215,r=(e>>>24|t<<8)&16777215,i=t>>16&65535,a=n+r*6777216+i*6710656,o=r+i*8147497,s=i*2,c=1e7;return a>=c&&(o+=Math.floor(a/c),a%=c),o>=c&&(s+=Math.floor(o/c),o%=c),s.toString()+Bx(o)+Bx(a)}function Lx(e,t){return{lo:e>>>0,hi:t>>>0}}function Rx(e,t){return{lo:e|0,hi:t|0}}function zx(e,t){return t=~t,e?e=~e+1:t+=1,Rx(e,t)}var Bx=e=>{let t=String(e);return`0000000`.slice(t.length)+t};function Vx(e,t){if(e>=0){for(;e>127;)t.push(e&127|128),e>>>=7;t.push(e)}else{for(let n=0;n<9;n++)t.push(e&127|128),e>>=7;t.push(1)}}function Hx(){let e=this.buf[this.pos++],t=e&127;if(!(e&128)||(e=this.buf[this.pos++],t|=(e&127)<<7,!(e&128))||(e=this.buf[this.pos++],t|=(e&127)<<14,!(e&128))||(e=this.buf[this.pos++],t|=(e&127)<<21,!(e&128)))return this.assertBounds(),t;e=this.buf[this.pos++],t|=(e&15)<<28;for(let t=5;e&128&&t<10;t++)e=this.buf[this.pos++];if(e&128)throw Error(`invalid varint`);return this.assertBounds(),t>>>0}var Ux=Wx();function Wx(){let e=new DataView(new ArrayBuffer(8));if(typeof BigInt==`function`&&typeof e.getBigInt64==`function`&&typeof e.getBigUint64==`function`&&typeof e.setBigInt64==`function`&&typeof e.setBigUint64==`function`&&(globalThis.Deno||globalThis.Bun||typeof process!=`object`||{}.BUF_BIGINT_DISABLE!==`1`)){let t=BigInt(`-9223372036854775808`),n=BigInt(`9223372036854775807`),r=BigInt(`0`),i=BigInt(`18446744073709551615`);return{zero:BigInt(0),supported:!0,parse(e){let r=typeof e==`bigint`?e:BigInt(e);if(r>n||ri||t>>0)}raw(e){return this.buf.length&&(this.chunks.push(new Uint8Array(this.buf)),this.buf=[]),this.chunks.push(e),this}uint32(e){for(Qx(e);e>127;)this.buf.push(e&127|128),e>>>=7;return this.buf.push(e),this}int32(e){return Zx(e),Vx(e,this.buf),this}bool(e){return this.buf.push(+!!e),this}bytes(e){return this.uint32(e.byteLength),this.raw(e)}string(e){let t=this.encodeUtf8(e);return this.uint32(t.byteLength),this.raw(t)}float(e){$x(e);let t=new Uint8Array(4);return new DataView(t.buffer).setFloat32(0,e,!0),this.raw(t)}double(e){let t=new Uint8Array(8);return new DataView(t.buffer).setFloat64(0,e,!0),this.raw(t)}fixed32(e){Qx(e);let t=new Uint8Array(4);return new DataView(t.buffer).setUint32(0,e,!0),this.raw(t)}sfixed32(e){Zx(e);let t=new Uint8Array(4);return new DataView(t.buffer).setInt32(0,e,!0),this.raw(t)}sint32(e){return Zx(e),e=(e<<1^e>>31)>>>0,Vx(e,this.buf),this}sfixed64(e){let t=new Uint8Array(8),n=new DataView(t.buffer),r=Ux.enc(e);return n.setInt32(0,r.lo,!0),n.setInt32(4,r.hi,!0),this.raw(t)}fixed64(e){let t=new Uint8Array(8),n=new DataView(t.buffer),r=Ux.uEnc(e);return n.setInt32(0,r.lo,!0),n.setInt32(4,r.hi,!0),this.raw(t)}int64(e){let t=Ux.enc(e);return Mx(t.lo,t.hi,this.buf),this}sint64(e){let t=Ux.enc(e),n=t.hi>>31;return Mx(t.lo<<1^n,(t.hi<<1|t.lo>>>31)^n,this.buf),this}uint64(e){let t=Ux.uEnc(e);return Mx(t.lo,t.hi,this.buf),this}},G=class{constructor(e,t=Jx().decodeUtf8){this.decodeUtf8=t,this.varint64=jx,this.uint32=Hx,this.buf=e,this.len=e.length,this.pos=0,this.view=new DataView(e.buffer,e.byteOffset,e.byteLength)}tag(){let e=this.pos,t=this.uint32(),n=this.pos-e;if(n>5||n==5&&this.buf[this.pos-1]>15)throw Error(`illegal tag: varint overflows uint32`);let r=t>>>3,i=t&7;if(r<=0||i>5)throw Error(`illegal tag: field no `+r+` wire type `+i);return[r,i]}skip(e,t,n=100){let r=this.pos;switch(e){case Yx.Varint:for(;this.buf[this.pos++]&128;);break;case Yx.Bit64:this.pos+=4;case Yx.Bit32:this.pos+=4;break;case Yx.LengthDelimited:let r=this.uint32();this.pos+=r;break;case Yx.StartGroup:if(n<=0)throw Error(`maximum recursion depth reached`);for(;;){let[e,r]=this.tag();if(r===Yx.EndGroup){if(t!==void 0&&e!==t)throw Error(`invalid end group tag`);break}this.skip(r,e,n-1)}break;default:throw Error(`cant skip wire type `+e)}return this.assertBounds(),this.buf.subarray(r,this.pos)}assertBounds(){if(this.pos>this.len)throw RangeError(`premature EOF`)}int32(){return this.uint32()|0}sint32(){let e=this.uint32();return e>>>1^-(e&1)}int64(){return Ux.dec(...this.varint64())}uint64(){return Ux.uDec(...this.varint64())}sint64(){let[e,t]=this.varint64(),n=-(e&1);return e=(e>>>1|(t&1)<<31)^n,t=t>>>1^n,Ux.dec(e,t)}bool(){let[e,t]=this.varint64();return e!==0||t!==0}fixed32(){return this.view.getUint32((this.pos+=4)-4,!0)}sfixed32(){return this.view.getInt32((this.pos+=4)-4,!0)}fixed64(){return Ux.uDec(this.sfixed32(),this.sfixed32())}sfixed64(){return Ux.dec(this.sfixed32(),this.sfixed32())}float(){return this.view.getFloat32((this.pos+=4)-4,!0)}double(){return this.view.getFloat64((this.pos+=8)-8,!0)}bytes(){let e=this.uint32(),t=this.pos;return this.pos+=e,this.assertBounds(),this.buf.subarray(t,t+e)}string(e){return this.decodeUtf8(this.bytes(),e)}};function Zx(e){if(typeof e==`string`)e=Number(e);else if(typeof e!=`number`)throw Error(`invalid int32: `+typeof e);if(!Number.isInteger(e)||e>2147483647||e<-2147483648)throw Error(`invalid int32: `+e)}function Qx(e){if(typeof e==`string`)e=Number(e);else if(typeof e!=`number`)throw Error(`invalid uint32: `+typeof e);if(!Number.isInteger(e)||e>4294967295||e<0)throw Error(`invalid uint32: `+e)}function $x(e){if(typeof e==`string`){let t=e;if(e=Number(e),Number.isNaN(e)&&t!==`NaN`)throw Error(`invalid float32: `+t)}else if(typeof e!=`number`)throw Error(`invalid float32: `+typeof e);if(Number.isFinite(e)&&(e>34028234663852886e22||e<-34028234663852886e22))throw Error(`invalid float32: `+e)}var eS=function(e){return e[e.NULL_VALUE=0]=`NULL_VALUE`,e[e.UNRECOGNIZED=-1]=`UNRECOGNIZED`,e}({});function tS(){return{fields:{}}}var nS={encode(e,t=new Xx){return Object.entries(e.fields).forEach(([e,n])=>{n!==void 0&&iS.encode({key:e,value:n},t.uint32(10).fork()).join()}),t},decode(e,t){let n=e instanceof G?e:new G(e),r=t===void 0?n.len:n.pos+t,i=tS();for(;n.pos>>3){case 1:{if(e!==10)break;let t=iS.decode(n,n.uint32());t.value!==void 0&&(i.fields[t.key]=t.value);continue}}if((e&7)==4||e===0)break;n.skip(e&7)}return i},create(e){return nS.fromPartial(e??{})},fromPartial(e){let t=tS();return t.fields=Object.entries(e.fields??{}).reduce((e,[t,n])=>(n!==void 0&&(e[t]=n),e),{}),t},wrap(e){let t=tS();if(e!==void 0)for(let n of Object.keys(e))t.fields[n]=e[n];return t},unwrap(e){let t={};if(e.fields)for(let n of Object.keys(e.fields))t[n]=e.fields[n];return t}};function rS(){return{key:``,value:void 0}}var iS={encode(e,t=new Xx){return e.key!==``&&t.uint32(10).string(e.key),e.value!==void 0&&K.encode(K.wrap(e.value),t.uint32(18).fork()).join(),t},decode(e,t){let n=e instanceof G?e:new G(e),r=t===void 0?n.len:n.pos+t,i=rS();for(;n.pos>>3){case 1:if(e!==10)break;i.key=n.string();continue;case 2:if(e!==18)break;i.value=K.unwrap(K.decode(n,n.uint32()));continue}if((e&7)==4||e===0)break;n.skip(e&7)}return i},create(e){return iS.fromPartial(e??{})},fromPartial(e){let t=rS();return t.key=e.key??``,t.value=e.value??void 0,t}};function aS(){return{nullValue:void 0,numberValue:void 0,stringValue:void 0,boolValue:void 0,structValue:void 0,listValue:void 0}}var K={encode(e,t=new Xx){return e.nullValue!==void 0&&t.uint32(8).int32(e.nullValue),e.numberValue!==void 0&&t.uint32(17).double(e.numberValue),e.stringValue!==void 0&&t.uint32(26).string(e.stringValue),e.boolValue!==void 0&&t.uint32(32).bool(e.boolValue),e.structValue!==void 0&&nS.encode(nS.wrap(e.structValue),t.uint32(42).fork()).join(),e.listValue!==void 0&&sS.encode(sS.wrap(e.listValue),t.uint32(50).fork()).join(),t},decode(e,t){let n=e instanceof G?e:new G(e),r=t===void 0?n.len:n.pos+t,i=aS();for(;n.pos>>3){case 1:if(e!==8)break;i.nullValue=n.int32();continue;case 2:if(e!==17)break;i.numberValue=n.double();continue;case 3:if(e!==26)break;i.stringValue=n.string();continue;case 4:if(e!==32)break;i.boolValue=n.bool();continue;case 5:if(e!==42)break;i.structValue=nS.unwrap(nS.decode(n,n.uint32()));continue;case 6:if(e!==50)break;i.listValue=sS.unwrap(sS.decode(n,n.uint32()));continue}if((e&7)==4||e===0)break;n.skip(e&7)}return i},create(e){return K.fromPartial(e??{})},fromPartial(e){let t=aS();return t.nullValue=e.nullValue??void 0,t.numberValue=e.numberValue??void 0,t.stringValue=e.stringValue??void 0,t.boolValue=e.boolValue??void 0,t.structValue=e.structValue??void 0,t.listValue=e.listValue??void 0,t},wrap(e){let t=aS();if(e===null)t.nullValue=eS.NULL_VALUE;else if(typeof e==`boolean`)t.boolValue=e;else if(typeof e==`number`)t.numberValue=e;else if(typeof e==`string`)t.stringValue=e;else if(globalThis.Array.isArray(e))t.listValue=e;else if(typeof e==`object`)t.structValue=e;else if(e!==void 0)throw new globalThis.Error(`Unsupported any value type: `+typeof e);return t},unwrap(e){if(e.stringValue!==void 0)return e.stringValue;if(e?.numberValue!==void 0)return e.numberValue;if(e?.boolValue!==void 0)return e.boolValue;if(e?.structValue!==void 0)return e.structValue;if(e?.listValue!==void 0)return e.listValue;if(e?.nullValue!==void 0)return null}};function oS(){return{values:[]}}var sS={encode(e,t=new Xx){for(let n of e.values)K.encode(K.wrap(n),t.uint32(10).fork()).join();return t},decode(e,t){let n=e instanceof G?e:new G(e),r=t===void 0?n.len:n.pos+t,i=oS();for(;n.pos>>3){case 1:if(e!==10)break;i.values.push(K.unwrap(K.decode(n,n.uint32())));continue}if((e&7)==4||e===0)break;n.skip(e&7)}return i},create(e){return sS.fromPartial(e??{})},fromPartial(e){let t=oS();return t.values=e.values?.map(e=>e)||[],t},wrap(e){let t=oS();return t.values=e??[],t},unwrap(e){return e?.hasOwnProperty(`values`)&&globalThis.Array.isArray(e.values)?e.values:e}},cS=function(e){return e[e.ADD=0]=`ADD`,e[e.REMOVE=1]=`REMOVE`,e[e.REPLACE=2]=`REPLACE`,e[e.MOVE=3]=`MOVE`,e[e.COPY=4]=`COPY`,e[e.TEST=5]=`TEST`,e[e.UNRECOGNIZED=-1]=`UNRECOGNIZED`,e}({});function lS(){return{op:0,path:``,from:void 0,value:void 0}}var uS={encode(e,t=new Xx){return e.op!==0&&t.uint32(8).int32(e.op),e.path!==``&&t.uint32(18).string(e.path),e.from!==void 0&&t.uint32(26).string(e.from),e.value!==void 0&&K.encode(K.wrap(e.value),t.uint32(34).fork()).join(),t},decode(e,t){let n=e instanceof G?e:new G(e),r=t===void 0?n.len:n.pos+t,i=lS();for(;n.pos>>3){case 1:if(e!==8)break;i.op=n.int32();continue;case 2:if(e!==18)break;i.path=n.string();continue;case 3:if(e!==26)break;i.from=n.string();continue;case 4:if(e!==34)break;i.value=K.unwrap(K.decode(n,n.uint32()));continue}if((e&7)==4||e===0)break;n.skip(e&7)}return i},create(e){return uS.fromPartial(e??{})},fromPartial(e){let t=lS();return t.op=e.op??0,t.path=e.path??``,t.from=e.from??void 0,t.value=e.value??void 0,t}};function dS(){return{id:``,type:``,function:void 0}}var fS={encode(e,t=new Xx){return e.id!==``&&t.uint32(10).string(e.id),e.type!==``&&t.uint32(18).string(e.type),e.function!==void 0&&mS.encode(e.function,t.uint32(26).fork()).join(),t},decode(e,t){let n=e instanceof G?e:new G(e),r=t===void 0?n.len:n.pos+t,i=dS();for(;n.pos>>3){case 1:if(e!==10)break;i.id=n.string();continue;case 2:if(e!==18)break;i.type=n.string();continue;case 3:if(e!==26)break;i.function=mS.decode(n,n.uint32());continue}if((e&7)==4||e===0)break;n.skip(e&7)}return i},create(e){return fS.fromPartial(e??{})},fromPartial(e){let t=dS();return t.id=e.id??``,t.type=e.type??``,t.function=e.function!==void 0&&e.function!==null?mS.fromPartial(e.function):void 0,t}};function pS(){return{name:``,arguments:``}}var mS={encode(e,t=new Xx){return e.name!==``&&t.uint32(10).string(e.name),e.arguments!==``&&t.uint32(18).string(e.arguments),t},decode(e,t){let n=e instanceof G?e:new G(e),r=t===void 0?n.len:n.pos+t,i=pS();for(;n.pos>>3){case 1:if(e!==10)break;i.name=n.string();continue;case 2:if(e!==18)break;i.arguments=n.string();continue}if((e&7)==4||e===0)break;n.skip(e&7)}return i},create(e){return mS.fromPartial(e??{})},fromPartial(e){let t=pS();return t.name=e.name??``,t.arguments=e.arguments??``,t}};function hS(){return{value:``,mimeType:``}}var gS={encode(e,t=new Xx){return e.value!==``&&t.uint32(10).string(e.value),e.mimeType!==``&&t.uint32(18).string(e.mimeType),t},decode(e,t){let n=e instanceof G?e:new G(e),r=t===void 0?n.len:n.pos+t,i=hS();for(;n.pos>>3){case 1:if(e!==10)break;i.value=n.string();continue;case 2:if(e!==18)break;i.mimeType=n.string();continue}if((e&7)==4||e===0)break;n.skip(e&7)}return i},create(e){return gS.fromPartial(e??{})},fromPartial(e){let t=hS();return t.value=e.value??``,t.mimeType=e.mimeType??``,t}};function _S(){return{value:``,mimeType:void 0}}var vS={encode(e,t=new Xx){return e.value!==``&&t.uint32(10).string(e.value),e.mimeType!==void 0&&t.uint32(18).string(e.mimeType),t},decode(e,t){let n=e instanceof G?e:new G(e),r=t===void 0?n.len:n.pos+t,i=_S();for(;n.pos>>3){case 1:if(e!==10)break;i.value=n.string();continue;case 2:if(e!==18)break;i.mimeType=n.string();continue}if((e&7)==4||e===0)break;n.skip(e&7)}return i},create(e){return vS.fromPartial(e??{})},fromPartial(e){let t=_S();return t.value=e.value??``,t.mimeType=e.mimeType??void 0,t}};function yS(){return{data:void 0,url:void 0}}var bS={encode(e,t=new Xx){return e.data!==void 0&&gS.encode(e.data,t.uint32(10).fork()).join(),e.url!==void 0&&vS.encode(e.url,t.uint32(18).fork()).join(),t},decode(e,t){let n=e instanceof G?e:new G(e),r=t===void 0?n.len:n.pos+t,i=yS();for(;n.pos>>3){case 1:if(e!==10)break;i.data=gS.decode(n,n.uint32());continue;case 2:if(e!==18)break;i.url=vS.decode(n,n.uint32());continue}if((e&7)==4||e===0)break;n.skip(e&7)}return i},create(e){return bS.fromPartial(e??{})},fromPartial(e){let t=yS();return t.data=e.data!==void 0&&e.data!==null?gS.fromPartial(e.data):void 0,t.url=e.url!==void 0&&e.url!==null?vS.fromPartial(e.url):void 0,t}};function xS(){return{text:``}}var SS={encode(e,t=new Xx){return e.text!==``&&t.uint32(10).string(e.text),t},decode(e,t){let n=e instanceof G?e:new G(e),r=t===void 0?n.len:n.pos+t,i=xS();for(;n.pos>>3){case 1:if(e!==10)break;i.text=n.string();continue}if((e&7)==4||e===0)break;n.skip(e&7)}return i},create(e){return SS.fromPartial(e??{})},fromPartial(e){let t=xS();return t.text=e.text??``,t}};function CS(){return{source:void 0,metadata:void 0}}var wS={encode(e,t=new Xx){return e.source!==void 0&&bS.encode(e.source,t.uint32(10).fork()).join(),e.metadata!==void 0&&K.encode(K.wrap(e.metadata),t.uint32(18).fork()).join(),t},decode(e,t){let n=e instanceof G?e:new G(e),r=t===void 0?n.len:n.pos+t,i=CS();for(;n.pos>>3){case 1:if(e!==10)break;i.source=bS.decode(n,n.uint32());continue;case 2:if(e!==18)break;i.metadata=K.unwrap(K.decode(n,n.uint32()));continue}if((e&7)==4||e===0)break;n.skip(e&7)}return i},create(e){return wS.fromPartial(e??{})},fromPartial(e){let t=CS();return t.source=e.source!==void 0&&e.source!==null?bS.fromPartial(e.source):void 0,t.metadata=e.metadata??void 0,t}};function TS(){return{source:void 0,metadata:void 0}}var ES={encode(e,t=new Xx){return e.source!==void 0&&bS.encode(e.source,t.uint32(10).fork()).join(),e.metadata!==void 0&&K.encode(K.wrap(e.metadata),t.uint32(18).fork()).join(),t},decode(e,t){let n=e instanceof G?e:new G(e),r=t===void 0?n.len:n.pos+t,i=TS();for(;n.pos>>3){case 1:if(e!==10)break;i.source=bS.decode(n,n.uint32());continue;case 2:if(e!==18)break;i.metadata=K.unwrap(K.decode(n,n.uint32()));continue}if((e&7)==4||e===0)break;n.skip(e&7)}return i},create(e){return ES.fromPartial(e??{})},fromPartial(e){let t=TS();return t.source=e.source!==void 0&&e.source!==null?bS.fromPartial(e.source):void 0,t.metadata=e.metadata??void 0,t}};function DS(){return{source:void 0,metadata:void 0}}var OS={encode(e,t=new Xx){return e.source!==void 0&&bS.encode(e.source,t.uint32(10).fork()).join(),e.metadata!==void 0&&K.encode(K.wrap(e.metadata),t.uint32(18).fork()).join(),t},decode(e,t){let n=e instanceof G?e:new G(e),r=t===void 0?n.len:n.pos+t,i=DS();for(;n.pos>>3){case 1:if(e!==10)break;i.source=bS.decode(n,n.uint32());continue;case 2:if(e!==18)break;i.metadata=K.unwrap(K.decode(n,n.uint32()));continue}if((e&7)==4||e===0)break;n.skip(e&7)}return i},create(e){return OS.fromPartial(e??{})},fromPartial(e){let t=DS();return t.source=e.source!==void 0&&e.source!==null?bS.fromPartial(e.source):void 0,t.metadata=e.metadata??void 0,t}};function kS(){return{source:void 0,metadata:void 0}}var AS={encode(e,t=new Xx){return e.source!==void 0&&bS.encode(e.source,t.uint32(10).fork()).join(),e.metadata!==void 0&&K.encode(K.wrap(e.metadata),t.uint32(18).fork()).join(),t},decode(e,t){let n=e instanceof G?e:new G(e),r=t===void 0?n.len:n.pos+t,i=kS();for(;n.pos>>3){case 1:if(e!==10)break;i.source=bS.decode(n,n.uint32());continue;case 2:if(e!==18)break;i.metadata=K.unwrap(K.decode(n,n.uint32()));continue}if((e&7)==4||e===0)break;n.skip(e&7)}return i},create(e){return AS.fromPartial(e??{})},fromPartial(e){let t=kS();return t.source=e.source!==void 0&&e.source!==null?bS.fromPartial(e.source):void 0,t.metadata=e.metadata??void 0,t}};function jS(){return{text:void 0,image:void 0,audio:void 0,video:void 0,document:void 0}}var MS={encode(e,t=new Xx){return e.text!==void 0&&SS.encode(e.text,t.uint32(10).fork()).join(),e.image!==void 0&&wS.encode(e.image,t.uint32(18).fork()).join(),e.audio!==void 0&&ES.encode(e.audio,t.uint32(26).fork()).join(),e.video!==void 0&&OS.encode(e.video,t.uint32(34).fork()).join(),e.document!==void 0&&AS.encode(e.document,t.uint32(42).fork()).join(),t},decode(e,t){let n=e instanceof G?e:new G(e),r=t===void 0?n.len:n.pos+t,i=jS();for(;n.pos>>3){case 1:if(e!==10)break;i.text=SS.decode(n,n.uint32());continue;case 2:if(e!==18)break;i.image=wS.decode(n,n.uint32());continue;case 3:if(e!==26)break;i.audio=ES.decode(n,n.uint32());continue;case 4:if(e!==34)break;i.video=OS.decode(n,n.uint32());continue;case 5:if(e!==42)break;i.document=AS.decode(n,n.uint32());continue}if((e&7)==4||e===0)break;n.skip(e&7)}return i},create(e){return MS.fromPartial(e??{})},fromPartial(e){let t=jS();return t.text=e.text!==void 0&&e.text!==null?SS.fromPartial(e.text):void 0,t.image=e.image!==void 0&&e.image!==null?wS.fromPartial(e.image):void 0,t.audio=e.audio!==void 0&&e.audio!==null?ES.fromPartial(e.audio):void 0,t.video=e.video!==void 0&&e.video!==null?OS.fromPartial(e.video):void 0,t.document=e.document!==void 0&&e.document!==null?AS.fromPartial(e.document):void 0,t}};function NS(){return{id:``,role:``,content:void 0,name:void 0,toolCalls:[],toolCallId:void 0,error:void 0,contentParts:[]}}var PS={encode(e,t=new Xx){e.id!==``&&t.uint32(10).string(e.id),e.role!==``&&t.uint32(18).string(e.role),e.content!==void 0&&t.uint32(26).string(e.content),e.name!==void 0&&t.uint32(34).string(e.name);for(let n of e.toolCalls)fS.encode(n,t.uint32(42).fork()).join();e.toolCallId!==void 0&&t.uint32(50).string(e.toolCallId),e.error!==void 0&&t.uint32(58).string(e.error);for(let n of e.contentParts)MS.encode(n,t.uint32(66).fork()).join();return t},decode(e,t){let n=e instanceof G?e:new G(e),r=t===void 0?n.len:n.pos+t,i=NS();for(;n.pos>>3){case 1:if(e!==10)break;i.id=n.string();continue;case 2:if(e!==18)break;i.role=n.string();continue;case 3:if(e!==26)break;i.content=n.string();continue;case 4:if(e!==34)break;i.name=n.string();continue;case 5:if(e!==42)break;i.toolCalls.push(fS.decode(n,n.uint32()));continue;case 6:if(e!==50)break;i.toolCallId=n.string();continue;case 7:if(e!==58)break;i.error=n.string();continue;case 8:if(e!==66)break;i.contentParts.push(MS.decode(n,n.uint32()));continue}if((e&7)==4||e===0)break;n.skip(e&7)}return i},create(e){return PS.fromPartial(e??{})},fromPartial(e){let t=NS();return t.id=e.id??``,t.role=e.role??``,t.content=e.content??void 0,t.name=e.name??void 0,t.toolCalls=e.toolCalls?.map(e=>fS.fromPartial(e))||[],t.toolCallId=e.toolCallId??void 0,t.error=e.error??void 0,t.contentParts=e.contentParts?.map(e=>MS.fromPartial(e))||[],t}};function FS(){return{id:``,reason:``,message:void 0,toolCallId:void 0,responseSchema:void 0,expiresAt:void 0,metadata:void 0}}var IS={encode(e,t=new Xx){return e.id!==``&&t.uint32(10).string(e.id),e.reason!==``&&t.uint32(18).string(e.reason),e.message!==void 0&&t.uint32(26).string(e.message),e.toolCallId!==void 0&&t.uint32(34).string(e.toolCallId),e.responseSchema!==void 0&&K.encode(K.wrap(e.responseSchema),t.uint32(42).fork()).join(),e.expiresAt!==void 0&&t.uint32(50).string(e.expiresAt),e.metadata!==void 0&&K.encode(K.wrap(e.metadata),t.uint32(58).fork()).join(),t},decode(e,t){let n=e instanceof G?e:new G(e),r=t===void 0?n.len:n.pos+t,i=FS();for(;n.pos>>3){case 1:if(e!==10)break;i.id=n.string();continue;case 2:if(e!==18)break;i.reason=n.string();continue;case 3:if(e!==26)break;i.message=n.string();continue;case 4:if(e!==34)break;i.toolCallId=n.string();continue;case 5:if(e!==42)break;i.responseSchema=K.unwrap(K.decode(n,n.uint32()));continue;case 6:if(e!==50)break;i.expiresAt=n.string();continue;case 7:if(e!==58)break;i.metadata=K.unwrap(K.decode(n,n.uint32()));continue}if((e&7)==4||e===0)break;n.skip(e&7)}return i},create(e){return IS.fromPartial(e??{})},fromPartial(e){let t=FS();return t.id=e.id??``,t.reason=e.reason??``,t.message=e.message??void 0,t.toolCallId=e.toolCallId??void 0,t.responseSchema=e.responseSchema??void 0,t.expiresAt=e.expiresAt??void 0,t.metadata=e.metadata??void 0,t}},LS=function(e){return e[e.TEXT_MESSAGE_START=0]=`TEXT_MESSAGE_START`,e[e.TEXT_MESSAGE_CONTENT=1]=`TEXT_MESSAGE_CONTENT`,e[e.TEXT_MESSAGE_END=2]=`TEXT_MESSAGE_END`,e[e.TOOL_CALL_START=3]=`TOOL_CALL_START`,e[e.TOOL_CALL_ARGS=4]=`TOOL_CALL_ARGS`,e[e.TOOL_CALL_END=5]=`TOOL_CALL_END`,e[e.STATE_SNAPSHOT=6]=`STATE_SNAPSHOT`,e[e.STATE_DELTA=7]=`STATE_DELTA`,e[e.MESSAGES_SNAPSHOT=8]=`MESSAGES_SNAPSHOT`,e[e.RAW=9]=`RAW`,e[e.CUSTOM=10]=`CUSTOM`,e[e.RUN_STARTED=11]=`RUN_STARTED`,e[e.RUN_FINISHED=12]=`RUN_FINISHED`,e[e.RUN_ERROR=13]=`RUN_ERROR`,e[e.STEP_STARTED=14]=`STEP_STARTED`,e[e.STEP_FINISHED=15]=`STEP_FINISHED`,e[e.UNRECOGNIZED=-1]=`UNRECOGNIZED`,e}({});function RS(){return{type:0,timestamp:void 0,rawEvent:void 0}}var q={encode(e,t=new Xx){return e.type!==0&&t.uint32(8).int32(e.type),e.timestamp!==void 0&&t.uint32(16).int64(e.timestamp),e.rawEvent!==void 0&&K.encode(K.wrap(e.rawEvent),t.uint32(26).fork()).join(),t},decode(e,t){let n=e instanceof G?e:new G(e),r=t===void 0?n.len:n.pos+t,i=RS();for(;n.pos>>3){case 1:if(e!==8)break;i.type=n.int32();continue;case 2:if(e!==16)break;i.timestamp=CC(n.int64());continue;case 3:if(e!==26)break;i.rawEvent=K.unwrap(K.decode(n,n.uint32()));continue}if((e&7)==4||e===0)break;n.skip(e&7)}return i},create(e){return q.fromPartial(e??{})},fromPartial(e){let t=RS();return t.type=e.type??0,t.timestamp=e.timestamp??void 0,t.rawEvent=e.rawEvent??void 0,t}};function zS(){return{baseEvent:void 0,messageId:``,role:void 0,name:void 0}}var BS={encode(e,t=new Xx){return e.baseEvent!==void 0&&q.encode(e.baseEvent,t.uint32(10).fork()).join(),e.messageId!==``&&t.uint32(18).string(e.messageId),e.role!==void 0&&t.uint32(26).string(e.role),e.name!==void 0&&t.uint32(34).string(e.name),t},decode(e,t){let n=e instanceof G?e:new G(e),r=t===void 0?n.len:n.pos+t,i=zS();for(;n.pos>>3){case 1:if(e!==10)break;i.baseEvent=q.decode(n,n.uint32());continue;case 2:if(e!==18)break;i.messageId=n.string();continue;case 3:if(e!==26)break;i.role=n.string();continue;case 4:if(e!==34)break;i.name=n.string();continue}if((e&7)==4||e===0)break;n.skip(e&7)}return i},create(e){return BS.fromPartial(e??{})},fromPartial(e){let t=zS();return t.baseEvent=e.baseEvent!==void 0&&e.baseEvent!==null?q.fromPartial(e.baseEvent):void 0,t.messageId=e.messageId??``,t.role=e.role??void 0,t.name=e.name??void 0,t}};function VS(){return{baseEvent:void 0,messageId:``,delta:``}}var HS={encode(e,t=new Xx){return e.baseEvent!==void 0&&q.encode(e.baseEvent,t.uint32(10).fork()).join(),e.messageId!==``&&t.uint32(18).string(e.messageId),e.delta!==``&&t.uint32(26).string(e.delta),t},decode(e,t){let n=e instanceof G?e:new G(e),r=t===void 0?n.len:n.pos+t,i=VS();for(;n.pos>>3){case 1:if(e!==10)break;i.baseEvent=q.decode(n,n.uint32());continue;case 2:if(e!==18)break;i.messageId=n.string();continue;case 3:if(e!==26)break;i.delta=n.string();continue}if((e&7)==4||e===0)break;n.skip(e&7)}return i},create(e){return HS.fromPartial(e??{})},fromPartial(e){let t=VS();return t.baseEvent=e.baseEvent!==void 0&&e.baseEvent!==null?q.fromPartial(e.baseEvent):void 0,t.messageId=e.messageId??``,t.delta=e.delta??``,t}};function US(){return{baseEvent:void 0,messageId:``}}var WS={encode(e,t=new Xx){return e.baseEvent!==void 0&&q.encode(e.baseEvent,t.uint32(10).fork()).join(),e.messageId!==``&&t.uint32(18).string(e.messageId),t},decode(e,t){let n=e instanceof G?e:new G(e),r=t===void 0?n.len:n.pos+t,i=US();for(;n.pos>>3){case 1:if(e!==10)break;i.baseEvent=q.decode(n,n.uint32());continue;case 2:if(e!==18)break;i.messageId=n.string();continue}if((e&7)==4||e===0)break;n.skip(e&7)}return i},create(e){return WS.fromPartial(e??{})},fromPartial(e){let t=US();return t.baseEvent=e.baseEvent!==void 0&&e.baseEvent!==null?q.fromPartial(e.baseEvent):void 0,t.messageId=e.messageId??``,t}};function GS(){return{baseEvent:void 0,toolCallId:``,toolCallName:``,parentMessageId:void 0}}var KS={encode(e,t=new Xx){return e.baseEvent!==void 0&&q.encode(e.baseEvent,t.uint32(10).fork()).join(),e.toolCallId!==``&&t.uint32(18).string(e.toolCallId),e.toolCallName!==``&&t.uint32(26).string(e.toolCallName),e.parentMessageId!==void 0&&t.uint32(34).string(e.parentMessageId),t},decode(e,t){let n=e instanceof G?e:new G(e),r=t===void 0?n.len:n.pos+t,i=GS();for(;n.pos>>3){case 1:if(e!==10)break;i.baseEvent=q.decode(n,n.uint32());continue;case 2:if(e!==18)break;i.toolCallId=n.string();continue;case 3:if(e!==26)break;i.toolCallName=n.string();continue;case 4:if(e!==34)break;i.parentMessageId=n.string();continue}if((e&7)==4||e===0)break;n.skip(e&7)}return i},create(e){return KS.fromPartial(e??{})},fromPartial(e){let t=GS();return t.baseEvent=e.baseEvent!==void 0&&e.baseEvent!==null?q.fromPartial(e.baseEvent):void 0,t.toolCallId=e.toolCallId??``,t.toolCallName=e.toolCallName??``,t.parentMessageId=e.parentMessageId??void 0,t}};function qS(){return{baseEvent:void 0,toolCallId:``,delta:``}}var JS={encode(e,t=new Xx){return e.baseEvent!==void 0&&q.encode(e.baseEvent,t.uint32(10).fork()).join(),e.toolCallId!==``&&t.uint32(18).string(e.toolCallId),e.delta!==``&&t.uint32(26).string(e.delta),t},decode(e,t){let n=e instanceof G?e:new G(e),r=t===void 0?n.len:n.pos+t,i=qS();for(;n.pos>>3){case 1:if(e!==10)break;i.baseEvent=q.decode(n,n.uint32());continue;case 2:if(e!==18)break;i.toolCallId=n.string();continue;case 3:if(e!==26)break;i.delta=n.string();continue}if((e&7)==4||e===0)break;n.skip(e&7)}return i},create(e){return JS.fromPartial(e??{})},fromPartial(e){let t=qS();return t.baseEvent=e.baseEvent!==void 0&&e.baseEvent!==null?q.fromPartial(e.baseEvent):void 0,t.toolCallId=e.toolCallId??``,t.delta=e.delta??``,t}};function YS(){return{baseEvent:void 0,toolCallId:``}}var XS={encode(e,t=new Xx){return e.baseEvent!==void 0&&q.encode(e.baseEvent,t.uint32(10).fork()).join(),e.toolCallId!==``&&t.uint32(18).string(e.toolCallId),t},decode(e,t){let n=e instanceof G?e:new G(e),r=t===void 0?n.len:n.pos+t,i=YS();for(;n.pos>>3){case 1:if(e!==10)break;i.baseEvent=q.decode(n,n.uint32());continue;case 2:if(e!==18)break;i.toolCallId=n.string();continue}if((e&7)==4||e===0)break;n.skip(e&7)}return i},create(e){return XS.fromPartial(e??{})},fromPartial(e){let t=YS();return t.baseEvent=e.baseEvent!==void 0&&e.baseEvent!==null?q.fromPartial(e.baseEvent):void 0,t.toolCallId=e.toolCallId??``,t}};function ZS(){return{baseEvent:void 0,snapshot:void 0}}var QS={encode(e,t=new Xx){return e.baseEvent!==void 0&&q.encode(e.baseEvent,t.uint32(10).fork()).join(),e.snapshot!==void 0&&K.encode(K.wrap(e.snapshot),t.uint32(18).fork()).join(),t},decode(e,t){let n=e instanceof G?e:new G(e),r=t===void 0?n.len:n.pos+t,i=ZS();for(;n.pos>>3){case 1:if(e!==10)break;i.baseEvent=q.decode(n,n.uint32());continue;case 2:if(e!==18)break;i.snapshot=K.unwrap(K.decode(n,n.uint32()));continue}if((e&7)==4||e===0)break;n.skip(e&7)}return i},create(e){return QS.fromPartial(e??{})},fromPartial(e){let t=ZS();return t.baseEvent=e.baseEvent!==void 0&&e.baseEvent!==null?q.fromPartial(e.baseEvent):void 0,t.snapshot=e.snapshot??void 0,t}};function $S(){return{baseEvent:void 0,delta:[]}}var eC={encode(e,t=new Xx){e.baseEvent!==void 0&&q.encode(e.baseEvent,t.uint32(10).fork()).join();for(let n of e.delta)uS.encode(n,t.uint32(18).fork()).join();return t},decode(e,t){let n=e instanceof G?e:new G(e),r=t===void 0?n.len:n.pos+t,i=$S();for(;n.pos>>3){case 1:if(e!==10)break;i.baseEvent=q.decode(n,n.uint32());continue;case 2:if(e!==18)break;i.delta.push(uS.decode(n,n.uint32()));continue}if((e&7)==4||e===0)break;n.skip(e&7)}return i},create(e){return eC.fromPartial(e??{})},fromPartial(e){let t=$S();return t.baseEvent=e.baseEvent!==void 0&&e.baseEvent!==null?q.fromPartial(e.baseEvent):void 0,t.delta=e.delta?.map(e=>uS.fromPartial(e))||[],t}};function tC(){return{baseEvent:void 0,messages:[]}}var nC={encode(e,t=new Xx){e.baseEvent!==void 0&&q.encode(e.baseEvent,t.uint32(10).fork()).join();for(let n of e.messages)PS.encode(n,t.uint32(18).fork()).join();return t},decode(e,t){let n=e instanceof G?e:new G(e),r=t===void 0?n.len:n.pos+t,i=tC();for(;n.pos>>3){case 1:if(e!==10)break;i.baseEvent=q.decode(n,n.uint32());continue;case 2:if(e!==18)break;i.messages.push(PS.decode(n,n.uint32()));continue}if((e&7)==4||e===0)break;n.skip(e&7)}return i},create(e){return nC.fromPartial(e??{})},fromPartial(e){let t=tC();return t.baseEvent=e.baseEvent!==void 0&&e.baseEvent!==null?q.fromPartial(e.baseEvent):void 0,t.messages=e.messages?.map(e=>PS.fromPartial(e))||[],t}};function rC(){return{baseEvent:void 0,event:void 0,source:void 0}}var iC={encode(e,t=new Xx){return e.baseEvent!==void 0&&q.encode(e.baseEvent,t.uint32(10).fork()).join(),e.event!==void 0&&K.encode(K.wrap(e.event),t.uint32(18).fork()).join(),e.source!==void 0&&t.uint32(26).string(e.source),t},decode(e,t){let n=e instanceof G?e:new G(e),r=t===void 0?n.len:n.pos+t,i=rC();for(;n.pos>>3){case 1:if(e!==10)break;i.baseEvent=q.decode(n,n.uint32());continue;case 2:if(e!==18)break;i.event=K.unwrap(K.decode(n,n.uint32()));continue;case 3:if(e!==26)break;i.source=n.string();continue}if((e&7)==4||e===0)break;n.skip(e&7)}return i},create(e){return iC.fromPartial(e??{})},fromPartial(e){let t=rC();return t.baseEvent=e.baseEvent!==void 0&&e.baseEvent!==null?q.fromPartial(e.baseEvent):void 0,t.event=e.event??void 0,t.source=e.source??void 0,t}};function aC(){return{baseEvent:void 0,name:``,value:void 0}}var oC={encode(e,t=new Xx){return e.baseEvent!==void 0&&q.encode(e.baseEvent,t.uint32(10).fork()).join(),e.name!==``&&t.uint32(18).string(e.name),e.value!==void 0&&K.encode(K.wrap(e.value),t.uint32(26).fork()).join(),t},decode(e,t){let n=e instanceof G?e:new G(e),r=t===void 0?n.len:n.pos+t,i=aC();for(;n.pos>>3){case 1:if(e!==10)break;i.baseEvent=q.decode(n,n.uint32());continue;case 2:if(e!==18)break;i.name=n.string();continue;case 3:if(e!==26)break;i.value=K.unwrap(K.decode(n,n.uint32()));continue}if((e&7)==4||e===0)break;n.skip(e&7)}return i},create(e){return oC.fromPartial(e??{})},fromPartial(e){let t=aC();return t.baseEvent=e.baseEvent!==void 0&&e.baseEvent!==null?q.fromPartial(e.baseEvent):void 0,t.name=e.name??``,t.value=e.value??void 0,t}};function sC(){return{baseEvent:void 0,threadId:``,runId:``}}var cC={encode(e,t=new Xx){return e.baseEvent!==void 0&&q.encode(e.baseEvent,t.uint32(10).fork()).join(),e.threadId!==``&&t.uint32(18).string(e.threadId),e.runId!==``&&t.uint32(26).string(e.runId),t},decode(e,t){let n=e instanceof G?e:new G(e),r=t===void 0?n.len:n.pos+t,i=sC();for(;n.pos>>3){case 1:if(e!==10)break;i.baseEvent=q.decode(n,n.uint32());continue;case 2:if(e!==18)break;i.threadId=n.string();continue;case 3:if(e!==26)break;i.runId=n.string();continue}if((e&7)==4||e===0)break;n.skip(e&7)}return i},create(e){return cC.fromPartial(e??{})},fromPartial(e){let t=sC();return t.baseEvent=e.baseEvent!==void 0&&e.baseEvent!==null?q.fromPartial(e.baseEvent):void 0,t.threadId=e.threadId??``,t.runId=e.runId??``,t}};function lC(){return{baseEvent:void 0,threadId:``,runId:``,result:void 0,outcome:``,interrupts:[]}}var uC={encode(e,t=new Xx){e.baseEvent!==void 0&&q.encode(e.baseEvent,t.uint32(10).fork()).join(),e.threadId!==``&&t.uint32(18).string(e.threadId),e.runId!==``&&t.uint32(26).string(e.runId),e.result!==void 0&&K.encode(K.wrap(e.result),t.uint32(34).fork()).join(),e.outcome!==``&&t.uint32(42).string(e.outcome);for(let n of e.interrupts)IS.encode(n,t.uint32(50).fork()).join();return t},decode(e,t){let n=e instanceof G?e:new G(e),r=t===void 0?n.len:n.pos+t,i=lC();for(;n.pos>>3){case 1:if(e!==10)break;i.baseEvent=q.decode(n,n.uint32());continue;case 2:if(e!==18)break;i.threadId=n.string();continue;case 3:if(e!==26)break;i.runId=n.string();continue;case 4:if(e!==34)break;i.result=K.unwrap(K.decode(n,n.uint32()));continue;case 5:if(e!==42)break;i.outcome=n.string();continue;case 6:if(e!==50)break;i.interrupts.push(IS.decode(n,n.uint32()));continue}if((e&7)==4||e===0)break;n.skip(e&7)}return i},create(e){return uC.fromPartial(e??{})},fromPartial(e){let t=lC();return t.baseEvent=e.baseEvent!==void 0&&e.baseEvent!==null?q.fromPartial(e.baseEvent):void 0,t.threadId=e.threadId??``,t.runId=e.runId??``,t.result=e.result??void 0,t.outcome=e.outcome??``,t.interrupts=e.interrupts?.map(e=>IS.fromPartial(e))||[],t}};function dC(){return{baseEvent:void 0,code:void 0,message:``}}var fC={encode(e,t=new Xx){return e.baseEvent!==void 0&&q.encode(e.baseEvent,t.uint32(10).fork()).join(),e.code!==void 0&&t.uint32(18).string(e.code),e.message!==``&&t.uint32(26).string(e.message),t},decode(e,t){let n=e instanceof G?e:new G(e),r=t===void 0?n.len:n.pos+t,i=dC();for(;n.pos>>3){case 1:if(e!==10)break;i.baseEvent=q.decode(n,n.uint32());continue;case 2:if(e!==18)break;i.code=n.string();continue;case 3:if(e!==26)break;i.message=n.string();continue}if((e&7)==4||e===0)break;n.skip(e&7)}return i},create(e){return fC.fromPartial(e??{})},fromPartial(e){let t=dC();return t.baseEvent=e.baseEvent!==void 0&&e.baseEvent!==null?q.fromPartial(e.baseEvent):void 0,t.code=e.code??void 0,t.message=e.message??``,t}};function pC(){return{baseEvent:void 0,stepName:``}}var mC={encode(e,t=new Xx){return e.baseEvent!==void 0&&q.encode(e.baseEvent,t.uint32(10).fork()).join(),e.stepName!==``&&t.uint32(18).string(e.stepName),t},decode(e,t){let n=e instanceof G?e:new G(e),r=t===void 0?n.len:n.pos+t,i=pC();for(;n.pos>>3){case 1:if(e!==10)break;i.baseEvent=q.decode(n,n.uint32());continue;case 2:if(e!==18)break;i.stepName=n.string();continue}if((e&7)==4||e===0)break;n.skip(e&7)}return i},create(e){return mC.fromPartial(e??{})},fromPartial(e){let t=pC();return t.baseEvent=e.baseEvent!==void 0&&e.baseEvent!==null?q.fromPartial(e.baseEvent):void 0,t.stepName=e.stepName??``,t}};function hC(){return{baseEvent:void 0,stepName:``}}var gC={encode(e,t=new Xx){return e.baseEvent!==void 0&&q.encode(e.baseEvent,t.uint32(10).fork()).join(),e.stepName!==``&&t.uint32(18).string(e.stepName),t},decode(e,t){let n=e instanceof G?e:new G(e),r=t===void 0?n.len:n.pos+t,i=hC();for(;n.pos>>3){case 1:if(e!==10)break;i.baseEvent=q.decode(n,n.uint32());continue;case 2:if(e!==18)break;i.stepName=n.string();continue}if((e&7)==4||e===0)break;n.skip(e&7)}return i},create(e){return gC.fromPartial(e??{})},fromPartial(e){let t=hC();return t.baseEvent=e.baseEvent!==void 0&&e.baseEvent!==null?q.fromPartial(e.baseEvent):void 0,t.stepName=e.stepName??``,t}};function _C(){return{baseEvent:void 0,messageId:void 0,role:void 0,delta:void 0,name:void 0}}var vC={encode(e,t=new Xx){return e.baseEvent!==void 0&&q.encode(e.baseEvent,t.uint32(10).fork()).join(),e.messageId!==void 0&&t.uint32(18).string(e.messageId),e.role!==void 0&&t.uint32(26).string(e.role),e.delta!==void 0&&t.uint32(34).string(e.delta),e.name!==void 0&&t.uint32(42).string(e.name),t},decode(e,t){let n=e instanceof G?e:new G(e),r=t===void 0?n.len:n.pos+t,i=_C();for(;n.pos>>3){case 1:if(e!==10)break;i.baseEvent=q.decode(n,n.uint32());continue;case 2:if(e!==18)break;i.messageId=n.string();continue;case 3:if(e!==26)break;i.role=n.string();continue;case 4:if(e!==34)break;i.delta=n.string();continue;case 5:if(e!==42)break;i.name=n.string();continue}if((e&7)==4||e===0)break;n.skip(e&7)}return i},create(e){return vC.fromPartial(e??{})},fromPartial(e){let t=_C();return t.baseEvent=e.baseEvent!==void 0&&e.baseEvent!==null?q.fromPartial(e.baseEvent):void 0,t.messageId=e.messageId??void 0,t.role=e.role??void 0,t.delta=e.delta??void 0,t.name=e.name??void 0,t}};function yC(){return{baseEvent:void 0,toolCallId:void 0,toolCallName:void 0,parentMessageId:void 0,delta:void 0}}var bC={encode(e,t=new Xx){return e.baseEvent!==void 0&&q.encode(e.baseEvent,t.uint32(10).fork()).join(),e.toolCallId!==void 0&&t.uint32(18).string(e.toolCallId),e.toolCallName!==void 0&&t.uint32(26).string(e.toolCallName),e.parentMessageId!==void 0&&t.uint32(34).string(e.parentMessageId),e.delta!==void 0&&t.uint32(42).string(e.delta),t},decode(e,t){let n=e instanceof G?e:new G(e),r=t===void 0?n.len:n.pos+t,i=yC();for(;n.pos>>3){case 1:if(e!==10)break;i.baseEvent=q.decode(n,n.uint32());continue;case 2:if(e!==18)break;i.toolCallId=n.string();continue;case 3:if(e!==26)break;i.toolCallName=n.string();continue;case 4:if(e!==34)break;i.parentMessageId=n.string();continue;case 5:if(e!==42)break;i.delta=n.string();continue}if((e&7)==4||e===0)break;n.skip(e&7)}return i},create(e){return bC.fromPartial(e??{})},fromPartial(e){let t=yC();return t.baseEvent=e.baseEvent!==void 0&&e.baseEvent!==null?q.fromPartial(e.baseEvent):void 0,t.toolCallId=e.toolCallId??void 0,t.toolCallName=e.toolCallName??void 0,t.parentMessageId=e.parentMessageId??void 0,t.delta=e.delta??void 0,t}};function xC(){return{textMessageStart:void 0,textMessageContent:void 0,textMessageEnd:void 0,toolCallStart:void 0,toolCallArgs:void 0,toolCallEnd:void 0,stateSnapshot:void 0,stateDelta:void 0,messagesSnapshot:void 0,raw:void 0,custom:void 0,runStarted:void 0,runFinished:void 0,runError:void 0,stepStarted:void 0,stepFinished:void 0,textMessageChunk:void 0,toolCallChunk:void 0}}var SC={encode(e,t=new Xx){return e.textMessageStart!==void 0&&BS.encode(e.textMessageStart,t.uint32(10).fork()).join(),e.textMessageContent!==void 0&&HS.encode(e.textMessageContent,t.uint32(18).fork()).join(),e.textMessageEnd!==void 0&&WS.encode(e.textMessageEnd,t.uint32(26).fork()).join(),e.toolCallStart!==void 0&&KS.encode(e.toolCallStart,t.uint32(34).fork()).join(),e.toolCallArgs!==void 0&&JS.encode(e.toolCallArgs,t.uint32(42).fork()).join(),e.toolCallEnd!==void 0&&XS.encode(e.toolCallEnd,t.uint32(50).fork()).join(),e.stateSnapshot!==void 0&&QS.encode(e.stateSnapshot,t.uint32(58).fork()).join(),e.stateDelta!==void 0&&eC.encode(e.stateDelta,t.uint32(66).fork()).join(),e.messagesSnapshot!==void 0&&nC.encode(e.messagesSnapshot,t.uint32(74).fork()).join(),e.raw!==void 0&&iC.encode(e.raw,t.uint32(82).fork()).join(),e.custom!==void 0&&oC.encode(e.custom,t.uint32(90).fork()).join(),e.runStarted!==void 0&&cC.encode(e.runStarted,t.uint32(98).fork()).join(),e.runFinished!==void 0&&uC.encode(e.runFinished,t.uint32(106).fork()).join(),e.runError!==void 0&&fC.encode(e.runError,t.uint32(114).fork()).join(),e.stepStarted!==void 0&&mC.encode(e.stepStarted,t.uint32(122).fork()).join(),e.stepFinished!==void 0&&gC.encode(e.stepFinished,t.uint32(130).fork()).join(),e.textMessageChunk!==void 0&&vC.encode(e.textMessageChunk,t.uint32(138).fork()).join(),e.toolCallChunk!==void 0&&bC.encode(e.toolCallChunk,t.uint32(146).fork()).join(),t},decode(e,t){let n=e instanceof G?e:new G(e),r=t===void 0?n.len:n.pos+t,i=xC();for(;n.pos>>3){case 1:if(e!==10)break;i.textMessageStart=BS.decode(n,n.uint32());continue;case 2:if(e!==18)break;i.textMessageContent=HS.decode(n,n.uint32());continue;case 3:if(e!==26)break;i.textMessageEnd=WS.decode(n,n.uint32());continue;case 4:if(e!==34)break;i.toolCallStart=KS.decode(n,n.uint32());continue;case 5:if(e!==42)break;i.toolCallArgs=JS.decode(n,n.uint32());continue;case 6:if(e!==50)break;i.toolCallEnd=XS.decode(n,n.uint32());continue;case 7:if(e!==58)break;i.stateSnapshot=QS.decode(n,n.uint32());continue;case 8:if(e!==66)break;i.stateDelta=eC.decode(n,n.uint32());continue;case 9:if(e!==74)break;i.messagesSnapshot=nC.decode(n,n.uint32());continue;case 10:if(e!==82)break;i.raw=iC.decode(n,n.uint32());continue;case 11:if(e!==90)break;i.custom=oC.decode(n,n.uint32());continue;case 12:if(e!==98)break;i.runStarted=cC.decode(n,n.uint32());continue;case 13:if(e!==106)break;i.runFinished=uC.decode(n,n.uint32());continue;case 14:if(e!==114)break;i.runError=fC.decode(n,n.uint32());continue;case 15:if(e!==122)break;i.stepStarted=mC.decode(n,n.uint32());continue;case 16:if(e!==130)break;i.stepFinished=gC.decode(n,n.uint32());continue;case 17:if(e!==138)break;i.textMessageChunk=vC.decode(n,n.uint32());continue;case 18:if(e!==146)break;i.toolCallChunk=bC.decode(n,n.uint32());continue}if((e&7)==4||e===0)break;n.skip(e&7)}return i},create(e){return SC.fromPartial(e??{})},fromPartial(e){let t=xC();return t.textMessageStart=e.textMessageStart!==void 0&&e.textMessageStart!==null?BS.fromPartial(e.textMessageStart):void 0,t.textMessageContent=e.textMessageContent!==void 0&&e.textMessageContent!==null?HS.fromPartial(e.textMessageContent):void 0,t.textMessageEnd=e.textMessageEnd!==void 0&&e.textMessageEnd!==null?WS.fromPartial(e.textMessageEnd):void 0,t.toolCallStart=e.toolCallStart!==void 0&&e.toolCallStart!==null?KS.fromPartial(e.toolCallStart):void 0,t.toolCallArgs=e.toolCallArgs!==void 0&&e.toolCallArgs!==null?JS.fromPartial(e.toolCallArgs):void 0,t.toolCallEnd=e.toolCallEnd!==void 0&&e.toolCallEnd!==null?XS.fromPartial(e.toolCallEnd):void 0,t.stateSnapshot=e.stateSnapshot!==void 0&&e.stateSnapshot!==null?QS.fromPartial(e.stateSnapshot):void 0,t.stateDelta=e.stateDelta!==void 0&&e.stateDelta!==null?eC.fromPartial(e.stateDelta):void 0,t.messagesSnapshot=e.messagesSnapshot!==void 0&&e.messagesSnapshot!==null?nC.fromPartial(e.messagesSnapshot):void 0,t.raw=e.raw!==void 0&&e.raw!==null?iC.fromPartial(e.raw):void 0,t.custom=e.custom!==void 0&&e.custom!==null?oC.fromPartial(e.custom):void 0,t.runStarted=e.runStarted!==void 0&&e.runStarted!==null?cC.fromPartial(e.runStarted):void 0,t.runFinished=e.runFinished!==void 0&&e.runFinished!==null?uC.fromPartial(e.runFinished):void 0,t.runError=e.runError!==void 0&&e.runError!==null?fC.fromPartial(e.runError):void 0,t.stepStarted=e.stepStarted!==void 0&&e.stepStarted!==null?mC.fromPartial(e.stepStarted):void 0,t.stepFinished=e.stepFinished!==void 0&&e.stepFinished!==null?gC.fromPartial(e.stepFinished):void 0,t.textMessageChunk=e.textMessageChunk!==void 0&&e.textMessageChunk!==null?vC.fromPartial(e.textMessageChunk):void 0,t.toolCallChunk=e.toolCallChunk!==void 0&&e.toolCallChunk!==null?bC.fromPartial(e.toolCallChunk):void 0,t}};function CC(e){let t=globalThis.Number(e.toString());if(t>globalThis.Number.MAX_SAFE_INTEGER)throw new globalThis.Error(`Value is larger than Number.MAX_SAFE_INTEGER`);if(t{if(!(!e||typeof e!=`object`)){if(e.data)return{type:`data`,value:e.data.value,mimeType:e.data.mimeType};if(e.url)return{type:`url`,value:e.url.value,mimeType:e.url.mimeType}}},TC=e=>{if(!(!e||typeof e!=`object`)){if(e.text)return{type:`text`,text:e.text.text};if(e.image)return{type:`image`,source:wC(e.image.source),metadata:e.image.metadata};if(e.audio)return{type:`audio`,source:wC(e.audio.source),metadata:e.audio.metadata};if(e.video)return{type:`video`,source:wC(e.video.source),metadata:e.video.metadata};if(e.document)return{type:`document`,source:wC(e.document.source),metadata:e.document.metadata}}};function EC(e){let t=SC.decode(e),n=Object.values(t).find(e=>e!==void 0);if(!n)throw Error(`Invalid event`);if(n.type=LS[n.baseEvent.type],n.timestamp=n.baseEvent.timestamp,n.rawEvent=n.baseEvent.rawEvent,delete n.baseEvent,n.type===W.MESSAGES_SNAPSHOT)for(let e of n.messages){let t=e;if(t.role===`user`&&Array.isArray(t.contentParts)){let e=t.contentParts.map(e=>TC(e)).filter(e=>e!==void 0);e.length>0&&(t.content=e)}Array.isArray(t.contentParts)&&t.contentParts.length===0&&(t.contentParts=void 0),t.toolCalls?.length===0&&(t.toolCalls=void 0)}if(n.type===W.RUN_FINISHED){let e=n,t=typeof e.outcome==`string`&&e.outcome!==``?e.outcome:void 0,r=Array.isArray(e.interrupts)?e.interrupts:[];delete e.interrupts,t===`interrupt`?e.outcome={type:`interrupt`,interrupts:r}:t===`success`?e.outcome={type:`success`}:delete e.outcome}if(n.type===W.STATE_DELTA)for(let e of n.delta)e.op=cS[e.op].toLowerCase(),Object.keys(e).forEach(t=>{e[t]===void 0&&delete e[t]});return Object.keys(n).forEach(e=>{n[e]===void 0&&delete n[e]}),oy.parse(n)}var DC;(function(e){e.assertEqual=e=>{};function t(e){}e.assertIs=t;function n(e){throw Error()}e.assertNever=n,e.arrayToEnum=e=>{let t={};for(let n of e)t[n]=n;return t},e.getValidEnumValues=t=>{let n=e.objectKeys(t).filter(e=>typeof t[t[e]]!=`number`),r={};for(let e of n)r[e]=t[e];return e.objectValues(r)},e.objectValues=t=>e.objectKeys(t).map(function(e){return t[e]}),e.objectKeys=typeof Object.keys==`function`?e=>Object.keys(e):e=>{let t=[];for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.push(n);return t},e.find=(e,t)=>{for(let n of e)if(t(n))return n},e.isInteger=typeof Number.isInteger==`function`?e=>Number.isInteger(e):e=>typeof e==`number`&&Number.isFinite(e)&&Math.floor(e)===e;function r(e,t=` | `){return e.map(e=>typeof e==`string`?`'${e}'`:e).join(t)}e.joinValues=r,e.jsonStringifyReplacer=(e,t)=>typeof t==`bigint`?t.toString():t})(DC||={});var OC;(function(e){e.mergeShapes=(e,t)=>({...e,...t})})(OC||={});var J=DC.arrayToEnum([`string`,`nan`,`number`,`integer`,`float`,`boolean`,`date`,`bigint`,`symbol`,`function`,`undefined`,`null`,`array`,`object`,`unknown`,`promise`,`void`,`never`,`map`,`set`]),kC=e=>{switch(typeof e){case`undefined`:return J.undefined;case`string`:return J.string;case`number`:return Number.isNaN(e)?J.nan:J.number;case`boolean`:return J.boolean;case`function`:return J.function;case`bigint`:return J.bigint;case`symbol`:return J.symbol;case`object`:return Array.isArray(e)?J.array:e===null?J.null:e.then&&typeof e.then==`function`&&e.catch&&typeof e.catch==`function`?J.promise:typeof Map<`u`&&e instanceof Map?J.map:typeof Set<`u`&&e instanceof Set?J.set:typeof Date<`u`&&e instanceof Date?J.date:J.object;default:return J.unknown}},Y=DC.arrayToEnum([`invalid_type`,`invalid_literal`,`custom`,`invalid_union`,`invalid_union_discriminator`,`invalid_enum_value`,`unrecognized_keys`,`invalid_arguments`,`invalid_return_type`,`invalid_date`,`invalid_string`,`too_small`,`too_big`,`invalid_intersection_types`,`not_multiple_of`,`not_finite`]),AC=class e extends Error{get errors(){return this.issues}constructor(e){super(),this.issues=[],this.addIssue=e=>{this.issues=[...this.issues,e]},this.addIssues=(e=[])=>{this.issues=[...this.issues,...e]};let t=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,t):this.__proto__=t,this.name=`ZodError`,this.issues=e}format(e){let t=e||function(e){return e.message},n={_errors:[]},r=e=>{for(let i of e.issues)if(i.code===`invalid_union`)i.unionErrors.map(r);else if(i.code===`invalid_return_type`)r(i.returnTypeError);else if(i.code===`invalid_arguments`)r(i.argumentsError);else if(i.path.length===0)n._errors.push(t(i));else{let e=n,r=0;for(;re.message){let t={},n=[];for(let r of this.issues)if(r.path.length>0){let n=r.path[0];t[n]=t[n]||[],t[n].push(e(r))}else n.push(e(r));return{formErrors:n,fieldErrors:t}}get formErrors(){return this.flatten()}};AC.create=e=>new AC(e);var jC=(e,t)=>{let n;switch(e.code){case Y.invalid_type:n=e.received===J.undefined?`Required`:`Expected ${e.expected}, received ${e.received}`;break;case Y.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,DC.jsonStringifyReplacer)}`;break;case Y.unrecognized_keys:n=`Unrecognized key(s) in object: ${DC.joinValues(e.keys,`, `)}`;break;case Y.invalid_union:n=`Invalid input`;break;case Y.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${DC.joinValues(e.options)}`;break;case Y.invalid_enum_value:n=`Invalid enum value. Expected ${DC.joinValues(e.options)}, received '${e.received}'`;break;case Y.invalid_arguments:n=`Invalid function arguments`;break;case Y.invalid_return_type:n=`Invalid function return type`;break;case Y.invalid_date:n=`Invalid date`;break;case Y.invalid_string:typeof e.validation==`object`?`includes`in e.validation?(n=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position==`number`&&(n=`${n} at one or more positions greater than or equal to ${e.validation.position}`)):`startsWith`in e.validation?n=`Invalid input: must start with "${e.validation.startsWith}"`:`endsWith`in e.validation?n=`Invalid input: must end with "${e.validation.endsWith}"`:DC.assertNever(e.validation):n=e.validation===`regex`?`Invalid`:`Invalid ${e.validation}`;break;case Y.too_small:n=e.type===`array`?`Array must contain ${e.exact?`exactly`:e.inclusive?`at least`:`more than`} ${e.minimum} element(s)`:e.type===`string`?`String must contain ${e.exact?`exactly`:e.inclusive?`at least`:`over`} ${e.minimum} character(s)`:e.type===`number`||e.type===`bigint`?`Number must be ${e.exact?`exactly equal to `:e.inclusive?`greater than or equal to `:`greater than `}${e.minimum}`:e.type===`date`?`Date must be ${e.exact?`exactly equal to `:e.inclusive?`greater than or equal to `:`greater than `}${new Date(Number(e.minimum))}`:`Invalid input`;break;case Y.too_big:n=e.type===`array`?`Array must contain ${e.exact?`exactly`:e.inclusive?`at most`:`less than`} ${e.maximum} element(s)`:e.type===`string`?`String must contain ${e.exact?`exactly`:e.inclusive?`at most`:`under`} ${e.maximum} character(s)`:e.type===`number`?`Number must be ${e.exact?`exactly`:e.inclusive?`less than or equal to`:`less than`} ${e.maximum}`:e.type===`bigint`?`BigInt must be ${e.exact?`exactly`:e.inclusive?`less than or equal to`:`less than`} ${e.maximum}`:e.type===`date`?`Date must be ${e.exact?`exactly`:e.inclusive?`smaller than or equal to`:`smaller than`} ${new Date(Number(e.maximum))}`:`Invalid input`;break;case Y.custom:n=`Invalid input`;break;case Y.invalid_intersection_types:n=`Intersection results could not be merged`;break;case Y.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case Y.not_finite:n=`Number must be finite`;break;default:n=t.defaultError,DC.assertNever(e)}return{message:n}},MC=jC;function NC(){return MC}var PC=e=>{let{data:t,path:n,errorMaps:r,issueData:i}=e,a=[...n,...i.path||[]],o={...i,path:a};if(i.message!==void 0)return{...i,path:a,message:i.message};let s=``,c=r.filter(e=>!!e).slice().reverse();for(let e of c)s=e(o,{data:t,defaultError:s}).message;return{...i,path:a,message:s}};function X(e,t){let n=NC(),r=PC({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,n,n===jC?void 0:jC].filter(e=>!!e)});e.common.issues.push(r)}var FC=class e{constructor(){this.value=`valid`}dirty(){this.value===`valid`&&(this.value=`dirty`)}abort(){this.value!==`aborted`&&(this.value=`aborted`)}static mergeArray(e,t){let n=[];for(let r of t){if(r.status===`aborted`)return IC;r.status===`dirty`&&e.dirty(),n.push(r.value)}return{status:e.value,value:n}}static async mergeObjectAsync(t,n){let r=[];for(let e of n){let t=await e.key,n=await e.value;r.push({key:t,value:n})}return e.mergeObjectSync(t,r)}static mergeObjectSync(e,t){let n={};for(let r of t){let{key:t,value:i}=r;if(t.status===`aborted`||i.status===`aborted`)return IC;t.status===`dirty`&&e.dirty(),i.status===`dirty`&&e.dirty(),t.value!==`__proto__`&&(i.value!==void 0||r.alwaysSet)&&(n[t.value]=i.value)}return{status:e.value,value:n}}},IC=Object.freeze({status:`aborted`}),LC=e=>({status:`dirty`,value:e}),RC=e=>({status:`valid`,value:e}),zC=e=>e.status===`aborted`,BC=e=>e.status===`dirty`,VC=e=>e.status===`valid`,HC=e=>typeof Promise<`u`&&e instanceof Promise,Z;(function(e){e.errToObj=e=>typeof e==`string`?{message:e}:e||{},e.toString=e=>typeof e==`string`?e:e?.message})(Z||={});var UC=class{constructor(e,t,n,r){this._cachedPath=[],this.parent=e,this.data=t,this._path=n,this._key=r}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}},WC=(e,t)=>{if(VC(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw Error(`Validation failed but no issues detected.`);return{success:!1,get error(){if(this._error)return this._error;let t=new AC(e.common.issues);return this._error=t,this._error}}};function GC(e){if(!e)return{};let{errorMap:t,invalid_type_error:n,required_error:r,description:i}=e;if(t&&(n||r))throw Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:i}:{errorMap:(t,i)=>{let{message:a}=e;return t.code===`invalid_enum_value`?{message:a??i.defaultError}:i.data===void 0?{message:a??r??i.defaultError}:t.code===`invalid_type`?{message:a??n??i.defaultError}:{message:i.defaultError}},description:i}}var KC=class{get description(){return this._def.description}_getType(e){return kC(e.data)}_getOrReturnCtx(e,t){return t||{common:e.parent.common,data:e.data,parsedType:kC(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new FC,ctx:{common:e.parent.common,data:e.data,parsedType:kC(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){let t=this._parse(e);if(HC(t))throw Error(`Synchronous parse encountered promise.`);return t}_parseAsync(e){let t=this._parse(e);return Promise.resolve(t)}parse(e,t){let n=this.safeParse(e,t);if(n.success)return n.data;throw n.error}safeParse(e,t){let n={common:{issues:[],async:t?.async??!1,contextualErrorMap:t?.errorMap},path:t?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:kC(e)};return WC(n,this._parseSync({data:e,path:n.path,parent:n}))}"~validate"(e){let t={common:{issues:[],async:!!this[`~standard`].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:kC(e)};if(!this[`~standard`].async)try{let n=this._parseSync({data:e,path:[],parent:t});return VC(n)?{value:n.value}:{issues:t.common.issues}}catch(e){e?.message?.toLowerCase()?.includes(`encountered`)&&(this[`~standard`].async=!0),t.common={issues:[],async:!0}}return this._parseAsync({data:e,path:[],parent:t}).then(e=>VC(e)?{value:e.value}:{issues:t.common.issues})}async parseAsync(e,t){let n=await this.safeParseAsync(e,t);if(n.success)return n.data;throw n.error}async safeParseAsync(e,t){let n={common:{issues:[],contextualErrorMap:t?.errorMap,async:!0},path:t?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:kC(e)},r=this._parse({data:e,path:n.path,parent:n});return WC(n,await(HC(r)?r:Promise.resolve(r)))}refine(e,t){let n=e=>typeof t==`string`||t===void 0?{message:t}:typeof t==`function`?t(e):t;return this._refinement((t,r)=>{let i=e(t),a=()=>r.addIssue({code:Y.custom,...n(t)});return typeof Promise<`u`&&i instanceof Promise?i.then(e=>e?!0:(a(),!1)):i?!0:(a(),!1)})}refinement(e,t){return this._refinement((n,r)=>e(n)?!0:(r.addIssue(typeof t==`function`?t(n,r):t),!1))}_refinement(e){return new Yw({schema:this,typeName:iT.ZodEffects,effect:{type:`refinement`,refinement:e}})}superRefine(e){return this._refinement(e)}constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this[`~standard`]={version:1,vendor:`zod`,validate:e=>this[`~validate`](e)}}optional(){return Xw.create(this,this._def)}nullable(){return Zw.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Aw.create(this)}promise(){return Jw.create(this,this._def)}or(e){return Nw.create([this,e],this._def)}and(e){return Lw.create(this,e,this._def)}transform(e){return new Yw({...GC(this._def),schema:this,typeName:iT.ZodEffects,effect:{type:`transform`,transform:e}})}default(e){let t=typeof e==`function`?e:()=>e;return new Qw({...GC(this._def),innerType:this,defaultValue:t,typeName:iT.ZodDefault})}brand(){return new tT({typeName:iT.ZodBranded,type:this,...GC(this._def)})}catch(e){let t=typeof e==`function`?e:()=>e;return new $w({...GC(this._def),innerType:this,catchValue:t,typeName:iT.ZodCatch})}describe(e){let t=this.constructor;return new t({...this._def,description:e})}pipe(e){return nT.create(this,e)}readonly(){return rT.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}},qC=/^c[^\s-]{8,}$/i,JC=/^[0-9a-z]+$/,YC=/^[0-9A-HJKMNP-TV-Z]{26}$/i,XC=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,ZC=/^[a-z0-9_-]{21}$/i,QC=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,$C=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,ew=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,tw=`^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$`,nw,rw=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,iw=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,aw=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,ow=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,sw=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,cw=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,lw=`((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))`,uw=RegExp(`^${lw}$`);function dw(e){let t=`[0-5]\\d`;e.precision?t=`${t}\\.\\d{${e.precision}}`:e.precision??(t=`${t}(\\.\\d+)?`);let n=e.precision?`+`:`?`;return`([01]\\d|2[0-3]):[0-5]\\d(:${t})${n}`}function fw(e){return RegExp(`^${dw(e)}$`)}function pw(e){let t=`${lw}T${dw(e)}`,n=[];return n.push(e.local?`Z?`:`Z`),e.offset&&n.push(`([+-]\\d{2}:?\\d{2})`),t=`${t}(${n.join(`|`)})`,RegExp(`^${t}$`)}function mw(e,t){return!!((t===`v4`||!t)&&rw.test(e)||(t===`v6`||!t)&&aw.test(e))}function hw(e,t){if(!QC.test(e))return!1;try{let[n]=e.split(`.`);if(!n)return!1;let r=n.replace(/-/g,`+`).replace(/_/g,`/`).padEnd(n.length+(4-n.length%4)%4,`=`),i=JSON.parse(atob(r));return!(typeof i!=`object`||!i||`typ`in i&&i?.typ!==`JWT`||!i.alg||t&&i.alg!==t)}catch{return!1}}function gw(e,t){return!!((t===`v4`||!t)&&iw.test(e)||(t===`v6`||!t)&&ow.test(e))}var _w=class e extends KC{_parse(e){if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==J.string){let t=this._getOrReturnCtx(e);return X(t,{code:Y.invalid_type,expected:J.string,received:t.parsedType}),IC}let t=new FC,n;for(let r of this._def.checks)if(r.kind===`min`)e.data.lengthr.value&&(n=this._getOrReturnCtx(e,n),X(n,{code:Y.too_big,maximum:r.value,type:`string`,inclusive:!0,exact:!1,message:r.message}),t.dirty());else if(r.kind===`length`){let i=e.data.length>r.value,a=e.data.lengthe.test(t),{validation:t,code:Y.invalid_string,...Z.errToObj(n)})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}email(e){return this._addCheck({kind:`email`,...Z.errToObj(e)})}url(e){return this._addCheck({kind:`url`,...Z.errToObj(e)})}emoji(e){return this._addCheck({kind:`emoji`,...Z.errToObj(e)})}uuid(e){return this._addCheck({kind:`uuid`,...Z.errToObj(e)})}nanoid(e){return this._addCheck({kind:`nanoid`,...Z.errToObj(e)})}cuid(e){return this._addCheck({kind:`cuid`,...Z.errToObj(e)})}cuid2(e){return this._addCheck({kind:`cuid2`,...Z.errToObj(e)})}ulid(e){return this._addCheck({kind:`ulid`,...Z.errToObj(e)})}base64(e){return this._addCheck({kind:`base64`,...Z.errToObj(e)})}base64url(e){return this._addCheck({kind:`base64url`,...Z.errToObj(e)})}jwt(e){return this._addCheck({kind:`jwt`,...Z.errToObj(e)})}ip(e){return this._addCheck({kind:`ip`,...Z.errToObj(e)})}cidr(e){return this._addCheck({kind:`cidr`,...Z.errToObj(e)})}datetime(e){return typeof e==`string`?this._addCheck({kind:`datetime`,precision:null,offset:!1,local:!1,message:e}):this._addCheck({kind:`datetime`,precision:e?.precision===void 0?null:e?.precision,offset:e?.offset??!1,local:e?.local??!1,...Z.errToObj(e?.message)})}date(e){return this._addCheck({kind:`date`,message:e})}time(e){return typeof e==`string`?this._addCheck({kind:`time`,precision:null,message:e}):this._addCheck({kind:`time`,precision:e?.precision===void 0?null:e?.precision,...Z.errToObj(e?.message)})}duration(e){return this._addCheck({kind:`duration`,...Z.errToObj(e)})}regex(e,t){return this._addCheck({kind:`regex`,regex:e,...Z.errToObj(t)})}includes(e,t){return this._addCheck({kind:`includes`,value:e,position:t?.position,...Z.errToObj(t?.message)})}startsWith(e,t){return this._addCheck({kind:`startsWith`,value:e,...Z.errToObj(t)})}endsWith(e,t){return this._addCheck({kind:`endsWith`,value:e,...Z.errToObj(t)})}min(e,t){return this._addCheck({kind:`min`,value:e,...Z.errToObj(t)})}max(e,t){return this._addCheck({kind:`max`,value:e,...Z.errToObj(t)})}length(e,t){return this._addCheck({kind:`length`,value:e,...Z.errToObj(t)})}nonempty(e){return this.min(1,Z.errToObj(e))}trim(){return new e({...this._def,checks:[...this._def.checks,{kind:`trim`}]})}toLowerCase(){return new e({...this._def,checks:[...this._def.checks,{kind:`toLowerCase`}]})}toUpperCase(){return new e({...this._def,checks:[...this._def.checks,{kind:`toUpperCase`}]})}get isDatetime(){return!!this._def.checks.find(e=>e.kind===`datetime`)}get isDate(){return!!this._def.checks.find(e=>e.kind===`date`)}get isTime(){return!!this._def.checks.find(e=>e.kind===`time`)}get isDuration(){return!!this._def.checks.find(e=>e.kind===`duration`)}get isEmail(){return!!this._def.checks.find(e=>e.kind===`email`)}get isURL(){return!!this._def.checks.find(e=>e.kind===`url`)}get isEmoji(){return!!this._def.checks.find(e=>e.kind===`emoji`)}get isUUID(){return!!this._def.checks.find(e=>e.kind===`uuid`)}get isNANOID(){return!!this._def.checks.find(e=>e.kind===`nanoid`)}get isCUID(){return!!this._def.checks.find(e=>e.kind===`cuid`)}get isCUID2(){return!!this._def.checks.find(e=>e.kind===`cuid2`)}get isULID(){return!!this._def.checks.find(e=>e.kind===`ulid`)}get isIP(){return!!this._def.checks.find(e=>e.kind===`ip`)}get isCIDR(){return!!this._def.checks.find(e=>e.kind===`cidr`)}get isBase64(){return!!this._def.checks.find(e=>e.kind===`base64`)}get isBase64url(){return!!this._def.checks.find(e=>e.kind===`base64url`)}get minLength(){let e=null;for(let t of this._def.checks)t.kind===`min`&&(e===null||t.value>e)&&(e=t.value);return e}get maxLength(){let e=null;for(let t of this._def.checks)t.kind===`max`&&(e===null||t.valuenew _w({checks:[],typeName:iT.ZodString,coerce:e?.coerce??!1,...GC(e)});function vw(e,t){let n=(e.toString().split(`.`)[1]||``).length,r=(t.toString().split(`.`)[1]||``).length,i=n>r?n:r;return Number.parseInt(e.toFixed(i).replace(`.`,``))%Number.parseInt(t.toFixed(i).replace(`.`,``))/10**i}var yw=class e extends KC{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==J.number){let t=this._getOrReturnCtx(e);return X(t,{code:Y.invalid_type,expected:J.number,received:t.parsedType}),IC}let t,n=new FC;for(let r of this._def.checks)r.kind===`int`?DC.isInteger(e.data)||(t=this._getOrReturnCtx(e,t),X(t,{code:Y.invalid_type,expected:`integer`,received:`float`,message:r.message}),n.dirty()):r.kind===`min`?(r.inclusive?e.datar.value:e.data>=r.value)&&(t=this._getOrReturnCtx(e,t),X(t,{code:Y.too_big,maximum:r.value,type:`number`,inclusive:r.inclusive,exact:!1,message:r.message}),n.dirty()):r.kind===`multipleOf`?vw(e.data,r.value)!==0&&(t=this._getOrReturnCtx(e,t),X(t,{code:Y.not_multiple_of,multipleOf:r.value,message:r.message}),n.dirty()):r.kind===`finite`?Number.isFinite(e.data)||(t=this._getOrReturnCtx(e,t),X(t,{code:Y.not_finite,message:r.message}),n.dirty()):DC.assertNever(r);return{status:n.value,value:e.data}}gte(e,t){return this.setLimit(`min`,e,!0,Z.toString(t))}gt(e,t){return this.setLimit(`min`,e,!1,Z.toString(t))}lte(e,t){return this.setLimit(`max`,e,!0,Z.toString(t))}lt(e,t){return this.setLimit(`max`,e,!1,Z.toString(t))}setLimit(t,n,r,i){return new e({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:Z.toString(i)}]})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}int(e){return this._addCheck({kind:`int`,message:Z.toString(e)})}positive(e){return this._addCheck({kind:`min`,value:0,inclusive:!1,message:Z.toString(e)})}negative(e){return this._addCheck({kind:`max`,value:0,inclusive:!1,message:Z.toString(e)})}nonpositive(e){return this._addCheck({kind:`max`,value:0,inclusive:!0,message:Z.toString(e)})}nonnegative(e){return this._addCheck({kind:`min`,value:0,inclusive:!0,message:Z.toString(e)})}multipleOf(e,t){return this._addCheck({kind:`multipleOf`,value:e,message:Z.toString(t)})}finite(e){return this._addCheck({kind:`finite`,message:Z.toString(e)})}safe(e){return this._addCheck({kind:`min`,inclusive:!0,value:-(2**53-1),message:Z.toString(e)})._addCheck({kind:`max`,inclusive:!0,value:2**53-1,message:Z.toString(e)})}get minValue(){let e=null;for(let t of this._def.checks)t.kind===`min`&&(e===null||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(let t of this._def.checks)t.kind===`max`&&(e===null||t.valuee.kind===`int`||e.kind===`multipleOf`&&DC.isInteger(e.value))}get isFinite(){let e=null,t=null;for(let n of this._def.checks)if(n.kind===`finite`||n.kind===`int`||n.kind===`multipleOf`)return!0;else n.kind===`min`?(t===null||n.value>t)&&(t=n.value):n.kind===`max`&&(e===null||n.valuenew yw({checks:[],typeName:iT.ZodNumber,coerce:e?.coerce||!1,...GC(e)});var bw=class e extends KC{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){if(this._def.coerce)try{e.data=BigInt(e.data)}catch{return this._getInvalidInput(e)}if(this._getType(e)!==J.bigint)return this._getInvalidInput(e);let t,n=new FC;for(let r of this._def.checks)r.kind===`min`?(r.inclusive?e.datar.value:e.data>=r.value)&&(t=this._getOrReturnCtx(e,t),X(t,{code:Y.too_big,type:`bigint`,maximum:r.value,inclusive:r.inclusive,message:r.message}),n.dirty()):r.kind===`multipleOf`?e.data%r.value!==BigInt(0)&&(t=this._getOrReturnCtx(e,t),X(t,{code:Y.not_multiple_of,multipleOf:r.value,message:r.message}),n.dirty()):DC.assertNever(r);return{status:n.value,value:e.data}}_getInvalidInput(e){let t=this._getOrReturnCtx(e);return X(t,{code:Y.invalid_type,expected:J.bigint,received:t.parsedType}),IC}gte(e,t){return this.setLimit(`min`,e,!0,Z.toString(t))}gt(e,t){return this.setLimit(`min`,e,!1,Z.toString(t))}lte(e,t){return this.setLimit(`max`,e,!0,Z.toString(t))}lt(e,t){return this.setLimit(`max`,e,!1,Z.toString(t))}setLimit(t,n,r,i){return new e({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:Z.toString(i)}]})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}positive(e){return this._addCheck({kind:`min`,value:BigInt(0),inclusive:!1,message:Z.toString(e)})}negative(e){return this._addCheck({kind:`max`,value:BigInt(0),inclusive:!1,message:Z.toString(e)})}nonpositive(e){return this._addCheck({kind:`max`,value:BigInt(0),inclusive:!0,message:Z.toString(e)})}nonnegative(e){return this._addCheck({kind:`min`,value:BigInt(0),inclusive:!0,message:Z.toString(e)})}multipleOf(e,t){return this._addCheck({kind:`multipleOf`,value:e,message:Z.toString(t)})}get minValue(){let e=null;for(let t of this._def.checks)t.kind===`min`&&(e===null||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(let t of this._def.checks)t.kind===`max`&&(e===null||t.valuenew bw({checks:[],typeName:iT.ZodBigInt,coerce:e?.coerce??!1,...GC(e)});var xw=class extends KC{_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==J.boolean){let t=this._getOrReturnCtx(e);return X(t,{code:Y.invalid_type,expected:J.boolean,received:t.parsedType}),IC}return RC(e.data)}};xw.create=e=>new xw({typeName:iT.ZodBoolean,coerce:e?.coerce||!1,...GC(e)});var Sw=class e extends KC{_parse(e){if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==J.date){let t=this._getOrReturnCtx(e);return X(t,{code:Y.invalid_type,expected:J.date,received:t.parsedType}),IC}if(Number.isNaN(e.data.getTime()))return X(this._getOrReturnCtx(e),{code:Y.invalid_date}),IC;let t=new FC,n;for(let r of this._def.checks)r.kind===`min`?e.data.getTime()r.value&&(n=this._getOrReturnCtx(e,n),X(n,{code:Y.too_big,message:r.message,inclusive:!0,exact:!1,maximum:r.value,type:`date`}),t.dirty()):DC.assertNever(r);return{status:t.value,value:new Date(e.data.getTime())}}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}min(e,t){return this._addCheck({kind:`min`,value:e.getTime(),message:Z.toString(t)})}max(e,t){return this._addCheck({kind:`max`,value:e.getTime(),message:Z.toString(t)})}get minDate(){let e=null;for(let t of this._def.checks)t.kind===`min`&&(e===null||t.value>e)&&(e=t.value);return e==null?null:new Date(e)}get maxDate(){let e=null;for(let t of this._def.checks)t.kind===`max`&&(e===null||t.valuenew Sw({checks:[],coerce:e?.coerce||!1,typeName:iT.ZodDate,...GC(e)});var Cw=class extends KC{_parse(e){if(this._getType(e)!==J.symbol){let t=this._getOrReturnCtx(e);return X(t,{code:Y.invalid_type,expected:J.symbol,received:t.parsedType}),IC}return RC(e.data)}};Cw.create=e=>new Cw({typeName:iT.ZodSymbol,...GC(e)});var ww=class extends KC{_parse(e){if(this._getType(e)!==J.undefined){let t=this._getOrReturnCtx(e);return X(t,{code:Y.invalid_type,expected:J.undefined,received:t.parsedType}),IC}return RC(e.data)}};ww.create=e=>new ww({typeName:iT.ZodUndefined,...GC(e)});var Tw=class extends KC{_parse(e){if(this._getType(e)!==J.null){let t=this._getOrReturnCtx(e);return X(t,{code:Y.invalid_type,expected:J.null,received:t.parsedType}),IC}return RC(e.data)}};Tw.create=e=>new Tw({typeName:iT.ZodNull,...GC(e)});var Ew=class extends KC{constructor(){super(...arguments),this._any=!0}_parse(e){return RC(e.data)}};Ew.create=e=>new Ew({typeName:iT.ZodAny,...GC(e)});var Dw=class extends KC{constructor(){super(...arguments),this._unknown=!0}_parse(e){return RC(e.data)}};Dw.create=e=>new Dw({typeName:iT.ZodUnknown,...GC(e)});var Ow=class extends KC{_parse(e){let t=this._getOrReturnCtx(e);return X(t,{code:Y.invalid_type,expected:J.never,received:t.parsedType}),IC}};Ow.create=e=>new Ow({typeName:iT.ZodNever,...GC(e)});var kw=class extends KC{_parse(e){if(this._getType(e)!==J.undefined){let t=this._getOrReturnCtx(e);return X(t,{code:Y.invalid_type,expected:J.void,received:t.parsedType}),IC}return RC(e.data)}};kw.create=e=>new kw({typeName:iT.ZodVoid,...GC(e)});var Aw=class e extends KC{_parse(e){let{ctx:t,status:n}=this._processInputParams(e),r=this._def;if(t.parsedType!==J.array)return X(t,{code:Y.invalid_type,expected:J.array,received:t.parsedType}),IC;if(r.exactLength!==null){let e=t.data.length>r.exactLength.value,i=t.data.lengthr.maxLength.value&&(X(t,{code:Y.too_big,maximum:r.maxLength.value,type:`array`,inclusive:!0,exact:!1,message:r.maxLength.message}),n.dirty()),t.common.async)return Promise.all([...t.data].map((e,n)=>r.type._parseAsync(new UC(t,e,t.path,n)))).then(e=>FC.mergeArray(n,e));let i=[...t.data].map((e,n)=>r.type._parseSync(new UC(t,e,t.path,n)));return FC.mergeArray(n,i)}get element(){return this._def.type}min(t,n){return new e({...this._def,minLength:{value:t,message:Z.toString(n)}})}max(t,n){return new e({...this._def,maxLength:{value:t,message:Z.toString(n)}})}length(t,n){return new e({...this._def,exactLength:{value:t,message:Z.toString(n)}})}nonempty(e){return this.min(1,e)}};Aw.create=(e,t)=>new Aw({type:e,minLength:null,maxLength:null,exactLength:null,typeName:iT.ZodArray,...GC(t)});function jw(e){if(e instanceof Mw){let t={};for(let n in e.shape){let r=e.shape[n];t[n]=Xw.create(jw(r))}return new Mw({...e._def,shape:()=>t})}return e instanceof Aw?new Aw({...e._def,type:jw(e.element)}):e instanceof Xw?Xw.create(jw(e.unwrap())):e instanceof Zw?Zw.create(jw(e.unwrap())):e instanceof Rw?Rw.create(e.items.map(e=>jw(e))):e}var Mw=class e extends KC{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;let e=this._def.shape(),t=DC.objectKeys(e);return this._cached={shape:e,keys:t},this._cached}_parse(e){if(this._getType(e)!==J.object){let t=this._getOrReturnCtx(e);return X(t,{code:Y.invalid_type,expected:J.object,received:t.parsedType}),IC}let{status:t,ctx:n}=this._processInputParams(e),{shape:r,keys:i}=this._getCached(),a=[];if(!(this._def.catchall instanceof Ow&&this._def.unknownKeys===`strip`))for(let e in n.data)i.includes(e)||a.push(e);let o=[];for(let e of i){let t=r[e],i=n.data[e];o.push({key:{status:`valid`,value:e},value:t._parse(new UC(n,i,n.path,e)),alwaysSet:e in n.data})}if(this._def.catchall instanceof Ow){let e=this._def.unknownKeys;if(e===`passthrough`)for(let e of a)o.push({key:{status:`valid`,value:e},value:{status:`valid`,value:n.data[e]}});else if(e===`strict`)a.length>0&&(X(n,{code:Y.unrecognized_keys,keys:a}),t.dirty());else if(e!==`strip`)throw Error(`Internal ZodObject error: invalid unknownKeys value.`)}else{let e=this._def.catchall;for(let t of a){let r=n.data[t];o.push({key:{status:`valid`,value:t},value:e._parse(new UC(n,r,n.path,t)),alwaysSet:t in n.data})}}return n.common.async?Promise.resolve().then(async()=>{let e=[];for(let t of o){let n=await t.key,r=await t.value;e.push({key:n,value:r,alwaysSet:t.alwaysSet})}return e}).then(e=>FC.mergeObjectSync(t,e)):FC.mergeObjectSync(t,o)}get shape(){return this._def.shape()}strict(t){return Z.errToObj,new e({...this._def,unknownKeys:`strict`,...t===void 0?{}:{errorMap:(e,n)=>{let r=this._def.errorMap?.(e,n).message??n.defaultError;return e.code===`unrecognized_keys`?{message:Z.errToObj(t).message??r}:{message:r}}}})}strip(){return new e({...this._def,unknownKeys:`strip`})}passthrough(){return new e({...this._def,unknownKeys:`passthrough`})}extend(t){return new e({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new e({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:iT.ZodObject})}setKey(e,t){return this.augment({[e]:t})}catchall(t){return new e({...this._def,catchall:t})}pick(t){let n={};for(let e of DC.objectKeys(t))t[e]&&this.shape[e]&&(n[e]=this.shape[e]);return new e({...this._def,shape:()=>n})}omit(t){let n={};for(let e of DC.objectKeys(this.shape))t[e]||(n[e]=this.shape[e]);return new e({...this._def,shape:()=>n})}deepPartial(){return jw(this)}partial(t){let n={};for(let e of DC.objectKeys(this.shape)){let r=this.shape[e];n[e]=t&&!t[e]?r:r.optional()}return new e({...this._def,shape:()=>n})}required(t){let n={};for(let e of DC.objectKeys(this.shape))if(t&&!t[e])n[e]=this.shape[e];else{let t=this.shape[e];for(;t instanceof Xw;)t=t._def.innerType;n[e]=t}return new e({...this._def,shape:()=>n})}keyof(){return Gw(DC.objectKeys(this.shape))}};Mw.create=(e,t)=>new Mw({shape:()=>e,unknownKeys:`strip`,catchall:Ow.create(),typeName:iT.ZodObject,...GC(t)}),Mw.strictCreate=(e,t)=>new Mw({shape:()=>e,unknownKeys:`strict`,catchall:Ow.create(),typeName:iT.ZodObject,...GC(t)}),Mw.lazycreate=(e,t)=>new Mw({shape:e,unknownKeys:`strip`,catchall:Ow.create(),typeName:iT.ZodObject,...GC(t)});var Nw=class extends KC{_parse(e){let{ctx:t}=this._processInputParams(e),n=this._def.options;function r(e){for(let t of e)if(t.result.status===`valid`)return t.result;for(let n of e)if(n.result.status===`dirty`)return t.common.issues.push(...n.ctx.common.issues),n.result;let n=e.map(e=>new AC(e.ctx.common.issues));return X(t,{code:Y.invalid_union,unionErrors:n}),IC}if(t.common.async)return Promise.all(n.map(async e=>{let n={...t,common:{...t.common,issues:[]},parent:null};return{result:await e._parseAsync({data:t.data,path:t.path,parent:n}),ctx:n}})).then(r);{let e,r=[];for(let i of n){let n={...t,common:{...t.common,issues:[]},parent:null},a=i._parseSync({data:t.data,path:t.path,parent:n});if(a.status===`valid`)return a;a.status===`dirty`&&!e&&(e={result:a,ctx:n}),n.common.issues.length&&r.push(n.common.issues)}if(e)return t.common.issues.push(...e.ctx.common.issues),e.result;let i=r.map(e=>new AC(e));return X(t,{code:Y.invalid_union,unionErrors:i}),IC}}get options(){return this._def.options}};Nw.create=(e,t)=>new Nw({options:e,typeName:iT.ZodUnion,...GC(t)});var Pw=e=>e instanceof Uw?Pw(e.schema):e instanceof Yw?Pw(e.innerType()):e instanceof Ww?[e.value]:e instanceof Kw?e.options:e instanceof qw?DC.objectValues(e.enum):e instanceof Qw?Pw(e._def.innerType):e instanceof ww?[void 0]:e instanceof Tw?[null]:e instanceof Xw?[void 0,...Pw(e.unwrap())]:e instanceof Zw?[null,...Pw(e.unwrap())]:e instanceof tT||e instanceof rT?Pw(e.unwrap()):e instanceof $w?Pw(e._def.innerType):[],Fw=class e extends KC{_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==J.object)return X(t,{code:Y.invalid_type,expected:J.object,received:t.parsedType}),IC;let n=this.discriminator,r=t.data[n],i=this.optionsMap.get(r);return i?t.common.async?i._parseAsync({data:t.data,path:t.path,parent:t}):i._parseSync({data:t.data,path:t.path,parent:t}):(X(t,{code:Y.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[n]}),IC)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(t,n,r){let i=new Map;for(let e of n){let n=Pw(e.shape[t]);if(!n.length)throw Error(`A discriminator value for key \`${t}\` could not be extracted from all schema options`);for(let r of n){if(i.has(r))throw Error(`Discriminator property ${String(t)} has duplicate value ${String(r)}`);i.set(r,e)}}return new e({typeName:iT.ZodDiscriminatedUnion,discriminator:t,options:n,optionsMap:i,...GC(r)})}};function Iw(e,t){let n=kC(e),r=kC(t);if(e===t)return{valid:!0,data:e};if(n===J.object&&r===J.object){let n=DC.objectKeys(t),r=DC.objectKeys(e).filter(e=>n.indexOf(e)!==-1),i={...e,...t};for(let n of r){let r=Iw(e[n],t[n]);if(!r.valid)return{valid:!1};i[n]=r.data}return{valid:!0,data:i}}if(n===J.array&&r===J.array){if(e.length!==t.length)return{valid:!1};let n=[];for(let r=0;r{if(zC(e)||zC(r))return IC;let i=Iw(e.value,r.value);return i.valid?((BC(e)||BC(r))&&t.dirty(),{status:t.value,value:i.data}):(X(n,{code:Y.invalid_intersection_types}),IC)};return n.common.async?Promise.all([this._def.left._parseAsync({data:n.data,path:n.path,parent:n}),this._def.right._parseAsync({data:n.data,path:n.path,parent:n})]).then(([e,t])=>r(e,t)):r(this._def.left._parseSync({data:n.data,path:n.path,parent:n}),this._def.right._parseSync({data:n.data,path:n.path,parent:n}))}};Lw.create=(e,t,n)=>new Lw({left:e,right:t,typeName:iT.ZodIntersection,...GC(n)});var Rw=class e extends KC{_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==J.array)return X(n,{code:Y.invalid_type,expected:J.array,received:n.parsedType}),IC;if(n.data.lengththis._def.items.length&&(X(n,{code:Y.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:`array`}),t.dirty());let r=[...n.data].map((e,t)=>{let r=this._def.items[t]||this._def.rest;return r?r._parse(new UC(n,e,n.path,t)):null}).filter(e=>!!e);return n.common.async?Promise.all(r).then(e=>FC.mergeArray(t,e)):FC.mergeArray(t,r)}get items(){return this._def.items}rest(t){return new e({...this._def,rest:t})}};Rw.create=(e,t)=>{if(!Array.isArray(e))throw Error(`You must pass an array of schemas to z.tuple([ ... ])`);return new Rw({items:e,typeName:iT.ZodTuple,rest:null,...GC(t)})};var zw=class e extends KC{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==J.object)return X(n,{code:Y.invalid_type,expected:J.object,received:n.parsedType}),IC;let r=[],i=this._def.keyType,a=this._def.valueType;for(let e in n.data)r.push({key:i._parse(new UC(n,e,n.path,e)),value:a._parse(new UC(n,n.data[e],n.path,e)),alwaysSet:e in n.data});return n.common.async?FC.mergeObjectAsync(t,r):FC.mergeObjectSync(t,r)}get element(){return this._def.valueType}static create(t,n,r){return n instanceof KC?new e({keyType:t,valueType:n,typeName:iT.ZodRecord,...GC(r)}):new e({keyType:_w.create(),valueType:t,typeName:iT.ZodRecord,...GC(n)})}},Bw=class extends KC{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==J.map)return X(n,{code:Y.invalid_type,expected:J.map,received:n.parsedType}),IC;let r=this._def.keyType,i=this._def.valueType,a=[...n.data.entries()].map(([e,t],a)=>({key:r._parse(new UC(n,e,n.path,[a,`key`])),value:i._parse(new UC(n,t,n.path,[a,`value`]))}));if(n.common.async){let e=new Map;return Promise.resolve().then(async()=>{for(let n of a){let r=await n.key,i=await n.value;if(r.status===`aborted`||i.status===`aborted`)return IC;(r.status===`dirty`||i.status===`dirty`)&&t.dirty(),e.set(r.value,i.value)}return{status:t.value,value:e}})}{let e=new Map;for(let n of a){let r=n.key,i=n.value;if(r.status===`aborted`||i.status===`aborted`)return IC;(r.status===`dirty`||i.status===`dirty`)&&t.dirty(),e.set(r.value,i.value)}return{status:t.value,value:e}}}};Bw.create=(e,t,n)=>new Bw({valueType:t,keyType:e,typeName:iT.ZodMap,...GC(n)});var Vw=class e extends KC{_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==J.set)return X(n,{code:Y.invalid_type,expected:J.set,received:n.parsedType}),IC;let r=this._def;r.minSize!==null&&n.data.sizer.maxSize.value&&(X(n,{code:Y.too_big,maximum:r.maxSize.value,type:`set`,inclusive:!0,exact:!1,message:r.maxSize.message}),t.dirty());let i=this._def.valueType;function a(e){let n=new Set;for(let r of e){if(r.status===`aborted`)return IC;r.status===`dirty`&&t.dirty(),n.add(r.value)}return{status:t.value,value:n}}let o=[...n.data.values()].map((e,t)=>i._parse(new UC(n,e,n.path,t)));return n.common.async?Promise.all(o).then(e=>a(e)):a(o)}min(t,n){return new e({...this._def,minSize:{value:t,message:Z.toString(n)}})}max(t,n){return new e({...this._def,maxSize:{value:t,message:Z.toString(n)}})}size(e,t){return this.min(e,t).max(e,t)}nonempty(e){return this.min(1,e)}};Vw.create=(e,t)=>new Vw({valueType:e,minSize:null,maxSize:null,typeName:iT.ZodSet,...GC(t)});var Hw=class e extends KC{constructor(){super(...arguments),this.validate=this.implement}_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==J.function)return X(t,{code:Y.invalid_type,expected:J.function,received:t.parsedType}),IC;function n(e,n){return PC({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,NC(),jC].filter(e=>!!e),issueData:{code:Y.invalid_arguments,argumentsError:n}})}function r(e,n){return PC({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,NC(),jC].filter(e=>!!e),issueData:{code:Y.invalid_return_type,returnTypeError:n}})}let i={errorMap:t.common.contextualErrorMap},a=t.data;if(this._def.returns instanceof Jw){let e=this;return RC(async function(...t){let o=new AC([]),s=await e._def.args.parseAsync(t,i).catch(e=>{throw o.addIssue(n(t,e)),o}),c=await Reflect.apply(a,this,s);return await e._def.returns._def.type.parseAsync(c,i).catch(e=>{throw o.addIssue(r(c,e)),o})})}{let e=this;return RC(function(...t){let o=e._def.args.safeParse(t,i);if(!o.success)throw new AC([n(t,o.error)]);let s=Reflect.apply(a,this,o.data),c=e._def.returns.safeParse(s,i);if(!c.success)throw new AC([r(s,c.error)]);return c.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...t){return new e({...this._def,args:Rw.create(t).rest(Dw.create())})}returns(t){return new e({...this._def,returns:t})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(t,n,r){return new e({args:t||Rw.create([]).rest(Dw.create()),returns:n||Dw.create(),typeName:iT.ZodFunction,...GC(r)})}},Uw=class extends KC{get schema(){return this._def.getter()}_parse(e){let{ctx:t}=this._processInputParams(e);return this._def.getter()._parse({data:t.data,path:t.path,parent:t})}};Uw.create=(e,t)=>new Uw({getter:e,typeName:iT.ZodLazy,...GC(t)});var Ww=class extends KC{_parse(e){if(e.data!==this._def.value){let t=this._getOrReturnCtx(e);return X(t,{received:t.data,code:Y.invalid_literal,expected:this._def.value}),IC}return{status:`valid`,value:e.data}}get value(){return this._def.value}};Ww.create=(e,t)=>new Ww({value:e,typeName:iT.ZodLiteral,...GC(t)});function Gw(e,t){return new Kw({values:e,typeName:iT.ZodEnum,...GC(t)})}var Kw=class e extends KC{_parse(e){if(typeof e.data!=`string`){let t=this._getOrReturnCtx(e),n=this._def.values;return X(t,{expected:DC.joinValues(n),received:t.parsedType,code:Y.invalid_type}),IC}if(this._cache||=new Set(this._def.values),!this._cache.has(e.data)){let t=this._getOrReturnCtx(e),n=this._def.values;return X(t,{received:t.data,code:Y.invalid_enum_value,options:n}),IC}return RC(e.data)}get options(){return this._def.values}get enum(){let e={};for(let t of this._def.values)e[t]=t;return e}get Values(){let e={};for(let t of this._def.values)e[t]=t;return e}get Enum(){let e={};for(let t of this._def.values)e[t]=t;return e}extract(t,n=this._def){return e.create(t,{...this._def,...n})}exclude(t,n=this._def){return e.create(this.options.filter(e=>!t.includes(e)),{...this._def,...n})}};Kw.create=Gw;var qw=class extends KC{_parse(e){let t=DC.getValidEnumValues(this._def.values),n=this._getOrReturnCtx(e);if(n.parsedType!==J.string&&n.parsedType!==J.number){let e=DC.objectValues(t);return X(n,{expected:DC.joinValues(e),received:n.parsedType,code:Y.invalid_type}),IC}if(this._cache||=new Set(DC.getValidEnumValues(this._def.values)),!this._cache.has(e.data)){let e=DC.objectValues(t);return X(n,{received:n.data,code:Y.invalid_enum_value,options:e}),IC}return RC(e.data)}get enum(){return this._def.values}};qw.create=(e,t)=>new qw({values:e,typeName:iT.ZodNativeEnum,...GC(t)});var Jw=class extends KC{unwrap(){return this._def.type}_parse(e){let{ctx:t}=this._processInputParams(e);return t.parsedType!==J.promise&&t.common.async===!1?(X(t,{code:Y.invalid_type,expected:J.promise,received:t.parsedType}),IC):RC((t.parsedType===J.promise?t.data:Promise.resolve(t.data)).then(e=>this._def.type.parseAsync(e,{path:t.path,errorMap:t.common.contextualErrorMap})))}};Jw.create=(e,t)=>new Jw({type:e,typeName:iT.ZodPromise,...GC(t)});var Yw=class extends KC{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===iT.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){let{status:t,ctx:n}=this._processInputParams(e),r=this._def.effect||null,i={addIssue:e=>{X(n,e),e.fatal?t.abort():t.dirty()},get path(){return n.path}};if(i.addIssue=i.addIssue.bind(i),r.type===`preprocess`){let e=r.transform(n.data,i);if(n.common.async)return Promise.resolve(e).then(async e=>{if(t.value===`aborted`)return IC;let r=await this._def.schema._parseAsync({data:e,path:n.path,parent:n});return r.status===`aborted`?IC:r.status===`dirty`||t.value===`dirty`?LC(r.value):r});{if(t.value===`aborted`)return IC;let r=this._def.schema._parseSync({data:e,path:n.path,parent:n});return r.status===`aborted`?IC:r.status===`dirty`||t.value===`dirty`?LC(r.value):r}}if(r.type===`refinement`){let e=e=>{let t=r.refinement(e,i);if(n.common.async)return Promise.resolve(t);if(t instanceof Promise)throw Error(`Async refinement encountered during synchronous parse operation. Use .parseAsync instead.`);return e};if(n.common.async===!1){let r=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});return r.status===`aborted`?IC:(r.status===`dirty`&&t.dirty(),e(r.value),{status:t.value,value:r.value})}return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(n=>n.status===`aborted`?IC:(n.status===`dirty`&&t.dirty(),e(n.value).then(()=>({status:t.value,value:n.value}))))}if(r.type===`transform`)if(n.common.async===!1){let e=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});if(!VC(e))return IC;let a=r.transform(e.value,i);if(a instanceof Promise)throw Error(`Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.`);return{status:t.value,value:a}}else return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(e=>VC(e)?Promise.resolve(r.transform(e.value,i)).then(e=>({status:t.value,value:e})):IC);DC.assertNever(r)}};Yw.create=(e,t,n)=>new Yw({schema:e,typeName:iT.ZodEffects,effect:t,...GC(n)}),Yw.createWithPreprocess=(e,t,n)=>new Yw({schema:t,effect:{type:`preprocess`,transform:e},typeName:iT.ZodEffects,...GC(n)});var Xw=class extends KC{_parse(e){return this._getType(e)===J.undefined?RC(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}};Xw.create=(e,t)=>new Xw({innerType:e,typeName:iT.ZodOptional,...GC(t)});var Zw=class extends KC{_parse(e){return this._getType(e)===J.null?RC(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}};Zw.create=(e,t)=>new Zw({innerType:e,typeName:iT.ZodNullable,...GC(t)});var Qw=class extends KC{_parse(e){let{ctx:t}=this._processInputParams(e),n=t.data;return t.parsedType===J.undefined&&(n=this._def.defaultValue()),this._def.innerType._parse({data:n,path:t.path,parent:t})}removeDefault(){return this._def.innerType}};Qw.create=(e,t)=>new Qw({innerType:e,typeName:iT.ZodDefault,defaultValue:typeof t.default==`function`?t.default:()=>t.default,...GC(t)});var $w=class extends KC{_parse(e){let{ctx:t}=this._processInputParams(e),n={...t,common:{...t.common,issues:[]}},r=this._def.innerType._parse({data:n.data,path:n.path,parent:{...n}});return HC(r)?r.then(e=>({status:`valid`,value:e.status===`valid`?e.value:this._def.catchValue({get error(){return new AC(n.common.issues)},input:n.data})})):{status:`valid`,value:r.status===`valid`?r.value:this._def.catchValue({get error(){return new AC(n.common.issues)},input:n.data})}}removeCatch(){return this._def.innerType}};$w.create=(e,t)=>new $w({innerType:e,typeName:iT.ZodCatch,catchValue:typeof t.catch==`function`?t.catch:()=>t.catch,...GC(t)});var eT=class extends KC{_parse(e){if(this._getType(e)!==J.nan){let t=this._getOrReturnCtx(e);return X(t,{code:Y.invalid_type,expected:J.nan,received:t.parsedType}),IC}return{status:`valid`,value:e.data}}};eT.create=e=>new eT({typeName:iT.ZodNaN,...GC(e)});var tT=class extends KC{_parse(e){let{ctx:t}=this._processInputParams(e),n=t.data;return this._def.type._parse({data:n,path:t.path,parent:t})}unwrap(){return this._def.type}},nT=class e extends KC{_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.common.async)return(async()=>{let e=await this._def.in._parseAsync({data:n.data,path:n.path,parent:n});return e.status===`aborted`?IC:e.status===`dirty`?(t.dirty(),LC(e.value)):this._def.out._parseAsync({data:e.value,path:n.path,parent:n})})();{let e=this._def.in._parseSync({data:n.data,path:n.path,parent:n});return e.status===`aborted`?IC:e.status===`dirty`?(t.dirty(),{status:`dirty`,value:e.value}):this._def.out._parseSync({data:e.value,path:n.path,parent:n})}}static create(t,n){return new e({in:t,out:n,typeName:iT.ZodPipeline})}},rT=class extends KC{_parse(e){let t=this._def.innerType._parse(e),n=e=>(VC(e)&&(e.value=Object.freeze(e.value)),e);return HC(t)?t.then(e=>n(e)):n(t)}unwrap(){return this._def.innerType}};rT.create=(e,t)=>new rT({innerType:e,typeName:iT.ZodReadonly,...GC(t)}),Mw.lazycreate;var iT;(function(e){e.ZodString=`ZodString`,e.ZodNumber=`ZodNumber`,e.ZodNaN=`ZodNaN`,e.ZodBigInt=`ZodBigInt`,e.ZodBoolean=`ZodBoolean`,e.ZodDate=`ZodDate`,e.ZodSymbol=`ZodSymbol`,e.ZodUndefined=`ZodUndefined`,e.ZodNull=`ZodNull`,e.ZodAny=`ZodAny`,e.ZodUnknown=`ZodUnknown`,e.ZodNever=`ZodNever`,e.ZodVoid=`ZodVoid`,e.ZodArray=`ZodArray`,e.ZodObject=`ZodObject`,e.ZodUnion=`ZodUnion`,e.ZodDiscriminatedUnion=`ZodDiscriminatedUnion`,e.ZodIntersection=`ZodIntersection`,e.ZodTuple=`ZodTuple`,e.ZodRecord=`ZodRecord`,e.ZodMap=`ZodMap`,e.ZodSet=`ZodSet`,e.ZodFunction=`ZodFunction`,e.ZodLazy=`ZodLazy`,e.ZodLiteral=`ZodLiteral`,e.ZodEnum=`ZodEnum`,e.ZodEffects=`ZodEffects`,e.ZodNativeEnum=`ZodNativeEnum`,e.ZodOptional=`ZodOptional`,e.ZodNullable=`ZodNullable`,e.ZodDefault=`ZodDefault`,e.ZodCatch=`ZodCatch`,e.ZodPromise=`ZodPromise`,e.ZodBranded=`ZodBranded`,e.ZodPipeline=`ZodPipeline`,e.ZodReadonly=`ZodReadonly`})(iT||={});var aT=_w.create;yw.create,eT.create,bw.create;var oT=xw.create;Sw.create,Cw.create,ww.create,Tw.create;var sT=Ew.create;Dw.create,Ow.create,kw.create,Aw.create;var cT=Mw.create;Mw.strictCreate,Nw.create;var lT=Fw.create;Lw.create,Rw.create,zw.create,Bw.create,Vw.create,Hw.create,Uw.create;var uT=Ww.create,dT=Kw.create;qw.create,Jw.create,Yw.create,Xw.create,Zw.create,Yw.createWithPreprocess,nT.create;var fT=/^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i,pT=e=>{if(typeof e!=`string`)throw TypeError(`Invalid argument expected string`);let t=e.match(fT);if(!t)throw Error(`Invalid argument not valid semver ('${e}' received)`);return t.shift(),t},mT=e=>e===`*`||e===`x`||e===`X`,hT=e=>{let t=parseInt(e,10);return isNaN(t)?e:t},gT=(e,t)=>typeof e==typeof t?[e,t]:[String(e),String(t)],_T=(e,t)=>{if(mT(e)||mT(t))return 0;let[n,r]=gT(hT(e),hT(t));return n>r?1:n{for(let n=0;n{let n=pT(e),r=pT(t),i=n.pop(),a=r.pop(),o=vT(n,r);return o===0?i&&a?vT(i.split(`.`),a.split(`.`)):i||a?i?-1:1:0:o},bT=e=>{if(typeof structuredClone==`function`)return structuredClone(e);try{return JSON.parse(JSON.stringify(e))}catch{return Array.isArray(e)?[...e]:{...e}}};function xT(){return sg()}function ST(e){if(Object.freeze(e),typeof e==`object`&&e)for(let t of Object.values(e))typeof t==`object`&&t&&!Object.isFrozen(t)&&ST(t);return e}var CT=524288;function wT(e,t,n){let r=0,i=[e,t],a=new WeakSet;for(;i.length>0;){let e=i.pop();if(typeof e==`string`){if(r+=e.length,r>n)return!0}else if(typeof e==`object`&&e){if(a.has(e))continue;if(a.add(e),Array.isArray(e))for(let t=0;tn)return!0;i.push(e[o])}}}}return!1}async function TT(e,t,n,r){let i=typeof process<`u`&&!0,a=i&&!!{}.VITEST_WORKER_ID,o=i&&!!{}.VITEST_WORKER_ID,s=o&&!wT(t,n,CT),c=s?bT(t):t,l=s?bT(n):n,u=!1,d=!1,f;for(let t of e)try{s&&(ST(c),ST(l));let e=await r(t,c,l);if(e===void 0)continue;let n=!1;if(e.messages!==void 0&&e.messages!==c&&(c=bT(e.messages),u=!0,n=!0),e.state!==void 0&&e.state!==l&&(l=bT(e.state),d=!0,n=!0),s&&n&&wT(c,l,CT)&&(s=!1),f=e.stopPropagation,f===!0)break}catch(e){if(o&&e instanceof TypeError){if(a)throw e;console.error(`AG-UI: Subscriber attempted to mutate frozen inputs in-place. Return mutations via AgentStateMutation instead of mutating directly.`,e)}else a||console.error(`Subscriber error:`,e);continue}return{...u?{messages:Object.isFrozen(c)?bT(c):c}:{},...d?{state:Object.isFrozen(l)?bT(l):l}:{},...f===void 0?{}:{stopPropagation:f}}}function ET(e){if(!e)return{enabled:!1,events:!1,lifecycle:!1,verbose:!1};if(e===!0)return{enabled:!0,events:!0,lifecycle:!0,verbose:!0};let t=e.events??!0,n=e.lifecycle??!0,r=e.verbose??!1;return{enabled:t||n,events:t,lifecycle:n,verbose:r}}function DT(e){if(e instanceof OT)return e;if(e===!0)return new OT(ET(!0))}var OT=class{constructor(e){this.config=e}event(e,t,n,r){this.config.events&&(this.config.verbose?console.debug(`[${e}] ${t}`,typeof n==`string`?n:JSON.stringify(n)):console.debug(`[${e}] ${t}`,r??n))}lifecycle(e,t,n){this.config.lifecycle&&(n?console.debug(`[${e}] ${t}`,n):console.debug(`[${e}] ${t}`))}get eventsEnabled(){return this.config.events}get lifecycleEnabled(){return this.config.lifecycle}get enabled(){return this.config.enabled}};function kT(e){return e.enabled?new OT(e):void 0}function AT(e,t,n){if(t){let r=e.find(e=>e.id===t);if(r?.role===`assistant`)return r;r&&console.warn(`TOOL_CALL_START: parentMessageId '${t}' matches a '${r.role}' message, not assistant — falling back to toolCallId`);let i={id:r?n:t,role:`assistant`,toolCalls:[]};return e.push(i),i}let r={id:n,role:`assistant`,toolCalls:[]};return e.push(r),r}var jT=(e,t,n,r,i)=>{let a=DT(i),o=bT(n.messages),s=bT(e.state),c={},l=e=>{e.messages!==void 0&&(o=e.messages,c.messages=e.messages),e.state!==void 0&&(s=e.state,c.state=e.state)},u=()=>{let e=bT(c);return c={},e.messages!==void 0||e.state!==void 0?px(e):Pb};return t.pipe(Cx(async t=>{let i=await TT(r,o,s,(r,i,a)=>r.onEvent?.({event:t,agent:n,input:e,messages:i,state:a}));if(l(i),i.stopPropagation===!0?a?.event(`APPLY`,`Event dropped:`,t,{type:t.type,reason:`stopPropagation by subscriber`}):a?.event(`APPLY`,`Event applied:`,t,{type:t.type,subscribers:r.length}),i.stopPropagation===!0)return u();switch(t.type){case W.TEXT_MESSAGE_START:{let i=await TT(r,o,s,(r,i,a)=>r.onTextMessageStartEvent?.({event:t,messages:i,state:a,agent:n,input:e}));if(l(i),i.stopPropagation!==!0){let{messageId:e,role:n=`assistant`,name:r}=t;if(!o.find(t=>t.id===e)){let t={id:e,role:n,content:``,...r!==void 0&&{name:r}};o.push(t),l({messages:o})}}return u()}case W.TEXT_MESSAGE_CONTENT:{let{messageId:i,delta:a}=t,c=o.find(e=>e.id===i);if(!c)return console.warn(`TEXT_MESSAGE_CONTENT: No message found with ID '${i}'`),u();let d=await TT(r,o,s,(r,i,a)=>r.onTextMessageContentEvent?.({event:t,messages:i,state:a,agent:n,input:e,textMessageBuffer:typeof c.content==`string`?c.content:``}));return l(d),d.stopPropagation!==!0&&(c.content=`${typeof c.content==`string`?c.content:``}${a}`,l({messages:o})),u()}case W.TEXT_MESSAGE_END:{let{messageId:i}=t,a=o.find(e=>e.id===i);return a?(l(await TT(r,o,s,(r,i,o)=>r.onTextMessageEndEvent?.({event:t,messages:i,state:o,agent:n,input:e,textMessageBuffer:typeof a.content==`string`?a.content:``}))),await Promise.all(r.map(t=>{t.onNewMessage?.({message:a,messages:o,state:s,agent:n,input:e})})),u()):(console.warn(`TEXT_MESSAGE_END: No message found with ID '${i}'`),u())}case W.TOOL_CALL_START:{let i=await TT(r,o,s,(r,i,a)=>r.onToolCallStartEvent?.({event:t,messages:i,state:a,agent:n,input:e}));if(l(i),i.stopPropagation!==!0){let{toolCallId:e,toolCallName:n,parentMessageId:r}=t,i=AT(o,r,e);i.toolCalls??=[],i.toolCalls.push({id:e,type:`function`,function:{name:n,arguments:``}}),l({messages:o})}return u()}case W.TOOL_CALL_ARGS:{let{toolCallId:i,delta:a}=t,c=o.find(e=>e.toolCalls?.some(e=>e.id===i));if(!c)return console.warn(`TOOL_CALL_ARGS: No message found containing tool call with ID '${i}'`),u();let d=c.toolCalls?.find(e=>e.id===i);if(!d)return console.warn(`TOOL_CALL_ARGS: No tool call found with ID '${i}'`),u();let f=await TT(r,o,s,(r,i,a)=>{let o=d.function.arguments,s=d.function.name,c={};try{c=Ax(o)}catch{}return r.onToolCallArgsEvent?.({event:t,messages:i,state:a,agent:n,input:e,toolCallBuffer:o,toolCallName:s,partialToolCallArgs:c})});return l(f),f.stopPropagation!==!0&&(d.function.arguments+=a,l({messages:o})),u()}case W.TOOL_CALL_END:{let{toolCallId:i}=t,a=o.find(e=>e.toolCalls?.some(e=>e.id===i));if(!a)return console.warn(`TOOL_CALL_END: No message found containing tool call with ID '${i}'`),u();let c=a.toolCalls?.find(e=>e.id===i);return c?(l(await TT(r,o,s,(r,i,a)=>{let o=c.function.arguments,s=c.function.name,l={};try{l=JSON.parse(o)}catch{}return r.onToolCallEndEvent?.({event:t,messages:i,state:a,agent:n,input:e,toolCallName:s,toolCallArgs:l})})),await Promise.all(r.map(t=>{t.onNewToolCall?.({toolCall:c,messages:o,state:s,agent:n,input:e})})),u()):(console.warn(`TOOL_CALL_END: No tool call found with ID '${i}'`),u())}case W.TOOL_CALL_RESULT:{let i=await TT(r,o,s,(r,i,a)=>r.onToolCallResultEvent?.({event:t,messages:i,state:a,agent:n,input:e}));if(l(i),i.stopPropagation!==!0){let{messageId:i,toolCallId:a,content:c,role:u}=t,d={id:i,toolCallId:a,role:u||`tool`,content:c},f=o.findIndex(e=>e.role===`assistant`&&e.toolCalls?.some(e=>e.id===a));if(f===-1)o.push(d);else{let e=f+1;for(;e{t.onNewMessage?.({message:d,messages:o,state:s,agent:n,input:e})})),l({messages:o})}return u()}case W.STATE_SNAPSHOT:{let i=await TT(r,o,s,(r,i,a)=>r.onStateSnapshotEvent?.({event:t,messages:i,state:a,agent:n,input:e}));if(l(i),i.stopPropagation!==!0){let{snapshot:e}=t;s=e,l({state:s})}return u()}case W.STATE_DELTA:{let i=await TT(r,o,s,(r,i,a)=>r.onStateDeltaEvent?.({event:t,messages:i,state:a,agent:n,input:e}));if(l(i),i.stopPropagation!==!0){let{delta:e}=t;try{s=Hy.applyPatch(s,e,!0,!1).newDocument,l({state:s})}catch(t){let n=t instanceof Error?t.message:String(t);console.warn(`Failed to apply state patch:\nCurrent state: ${JSON.stringify(s,null,2)}\nPatch operations: ${JSON.stringify(e,null,2)}\nError: ${n}`)}}return u()}case W.MESSAGES_SNAPSHOT:{let i=await TT(r,o,s,(r,i,a)=>r.onMessagesSnapshotEvent?.({event:t,messages:i,state:a,agent:n,input:e}));if(l(i),i.stopPropagation!==!0){let{messages:e}=t,n=new Map(e.map(e=>[e.id,e])),r=e.some(e=>e.role===`reasoning`),i=e=>e.role===`activity`||e.role===`reasoning`&&!r;o=o.filter(e=>i(e)||n.has(e.id)).map(e=>i(e)?e:n.get(e.id));let a=new Set(o.map(e=>e.id));for(let t of e)a.has(t.id)||o.push(t);l({messages:o})}return u()}case W.ACTIVITY_SNAPSHOT:{let i=t,a=o.findIndex(e=>e.id===i.messageId),c=a>=0?o[a]:void 0,d=c?.role===`activity`?c:void 0,f=i.replace??!0,p=await TT(r,o,s,(t,r,a)=>t.onActivitySnapshotEvent?.({event:i,messages:r,state:a,agent:n,input:e,activityMessage:d,existingMessage:c}));if(l(p),p.stopPropagation!==!0){let t={id:i.messageId,role:`activity`,activityType:i.activityType,content:bT(i.content)},c;a===-1?(o.push(t),c=t):d?f&&(o[a]={...d,activityType:i.activityType,content:bT(i.content)}):f&&(o[a]=t,c=t),l({messages:o}),c&&await Promise.all(r.map(t=>t.onNewMessage?.({message:c,messages:o,state:s,agent:n,input:e})))}return u()}case W.ACTIVITY_DELTA:{let i=t,a=o.findIndex(e=>e.id===i.messageId);if(a===-1)return u();let c=o[a];if(c.role!==`activity`)return console.warn(`ACTIVITY_DELTA: Message '${i.messageId}' is not an activity message`),u();let d=c,f=await TT(r,o,s,(t,r,a)=>t.onActivityDeltaEvent?.({event:i,messages:r,state:a,agent:n,input:e,activityMessage:d}));if(l(f),f.stopPropagation!==!0)try{let e=bT(d.content??{}),t=Hy.applyPatch(e,i.patch??[],!0,!1).newDocument;o[a]={...d,content:bT(t),activityType:i.activityType},l({messages:o})}catch(e){let t=e instanceof Error?e.message:String(e);console.warn(`Failed to apply activity patch for '${i.messageId}': ${t}`)}return u()}case W.RAW:return l(await TT(r,o,s,(r,i,a)=>r.onRawEvent?.({event:t,messages:i,state:a,agent:n,input:e}))),u();case W.CUSTOM:return l(await TT(r,o,s,(r,i,a)=>r.onCustomEvent?.({event:t,messages:i,state:a,agent:n,input:e}))),u();case W.RUN_STARTED:{let i=await TT(r,o,s,(r,i,a)=>r.onRunStartedEvent?.({event:t,messages:i,state:a,agent:n,input:e}));if(l(i),i.stopPropagation!==!0){let e=t;if(e.input?.messages){for(let t of e.input.messages)o.find(e=>e.id===t.id)||o.push(t);l({messages:o})}}return u()}case W.RUN_FINISHED:{let i=t,a=i.outcome?.type===`interrupt`?{event:i,outcome:`interrupt`,interrupts:i.outcome.interrupts}:{event:i,outcome:`success`,result:i.result},c=await TT(r,o,s,(t,r,i)=>t.onRunFinishedEvent?.({...a,messages:r,state:i,agent:n,input:e}));return l(c),c.stopPropagation!==!0&&(n.pendingInterrupts=a.outcome===`interrupt`?[...a.interrupts]:[]),u()}case W.RUN_ERROR:return l(await TT(r,o,s,(r,i,a)=>r.onRunErrorEvent?.({event:t,messages:i,state:a,agent:n,input:e}))),u();case W.STEP_STARTED:return l(await TT(r,o,s,(r,i,a)=>r.onStepStartedEvent?.({event:t,messages:i,state:a,agent:n,input:e}))),u();case W.STEP_FINISHED:return l(await TT(r,o,s,(r,i,a)=>r.onStepFinishedEvent?.({event:t,messages:i,state:a,agent:n,input:e}))),u();case W.TEXT_MESSAGE_CHUNK:throw Error(`TEXT_MESSAGE_CHUNK must be tranformed before being applied`);case W.TOOL_CALL_CHUNK:throw Error(`TOOL_CALL_CHUNK must be tranformed before being applied`);case W.THINKING_START:return u();case W.THINKING_END:return u();case W.THINKING_TEXT_MESSAGE_START:return u();case W.THINKING_TEXT_MESSAGE_CONTENT:return u();case W.THINKING_TEXT_MESSAGE_END:return u();case W.REASONING_START:return l(await TT(r,o,s,(r,i,a)=>r.onReasoningStartEvent?.({event:t,messages:i,state:a,agent:n,input:e}))),u();case W.REASONING_MESSAGE_START:{let i=await TT(r,o,s,(r,i,a)=>r.onReasoningMessageStartEvent?.({event:t,messages:i,state:a,agent:n,input:e}));if(l(i),i.stopPropagation!==!0){let{messageId:e}=t;if(!o.find(t=>t.id===e)){let t={id:e,role:`reasoning`,content:``};o.push(t),l({messages:o})}}return u()}case W.REASONING_MESSAGE_CONTENT:{let{messageId:i,delta:a}=t,c=o.find(e=>e.id===i);if(!c)return console.warn(`REASONING_MESSAGE_CONTENT: No message found with ID '${i}'`),u();let d=await TT(r,o,s,(r,i,a)=>r.onReasoningMessageContentEvent?.({event:t,messages:i,state:a,agent:n,input:e,reasoningMessageBuffer:typeof c.content==`string`?c.content:``}));return l(d),d.stopPropagation!==!0&&(c.content=`${typeof c.content==`string`?c.content:``}${a}`,l({messages:o})),u()}case W.REASONING_MESSAGE_END:{let{messageId:i}=t,a=o.find(e=>e.id===i);return a?(l(await TT(r,o,s,(r,i,o)=>r.onReasoningMessageEndEvent?.({event:t,messages:i,state:o,agent:n,input:e,reasoningMessageBuffer:typeof a.content==`string`?a.content:``}))),await Promise.all(r.map(t=>{t.onNewMessage?.({message:a,messages:o,state:s,agent:n,input:e})})),u()):(console.warn(`REASONING_MESSAGE_END: No message found with ID '${i}'`),u())}case W.REASONING_MESSAGE_CHUNK:throw Error(`REASONING_MESSAGE_CHUNK must be transformed before being applied`);case W.REASONING_END:return l(await TT(r,o,s,(r,i,a)=>r.onReasoningEndEvent?.({event:t,messages:i,state:a,agent:n,input:e}))),u();case W.REASONING_ENCRYPTED_VALUE:{let{subtype:i,entityId:a,encryptedValue:d}=t,f=await TT(r,o,s,(r,i,a)=>r.onReasoningEncryptedValueEvent?.({event:t,messages:i,state:a,agent:n,input:e}));if(l(f),f.stopPropagation!==!0){let e=!1;if(i===`tool-call`){for(let t of o)if(t.role===`assistant`&&t.toolCalls){let n=t.toolCalls.find(e=>e.id===a);if(n){n.encryptedValue=d,e=!0;break}}}else{let t=o.find(e=>e.id===a);t?.role!==`activity`&&t&&(t.encryptedValue=d,e=!0)}e&&(c.messages=o)}return u()}}return t.type,u()}),bx(),r.length>0?wx({}):e=>e)},MT=e=>t=>{let n=DT(e),r=new Map,i=new Map,a=!1,o=!1,s=!1,c=new Map,l=!1,u=!1,d=!1,f=()=>{r.clear(),i.clear(),c.clear(),l=!1,u=!1,a=!1,o=!1,d=!0};return t.pipe(yx(e=>{let t=e.type;if(n?.event(`VERIFY`,`Event:`,e,{type:e.type}),o)return mx(()=>new hv(`Cannot send event type '${t}': The run has already errored with 'RUN_ERROR'. No further events can be sent.`));if(a&&t!==W.RUN_ERROR&&t!==W.RUN_STARTED)return mx(()=>new hv(`Cannot send event type '${t}': The run has already finished with 'RUN_FINISHED'. Start a new run with 'RUN_STARTED'.`));if(!s){if(s=!0,t!==W.RUN_STARTED&&t!==W.RUN_ERROR)return mx(()=>new hv(`First event must be 'RUN_STARTED'`))}else if(t===W.RUN_STARTED){if(d&&!a)return mx(()=>new hv(`Cannot send 'RUN_STARTED' while a run is still active. The previous run must be finished with 'RUN_FINISHED' before starting a new run.`));a&&f()}switch(t){case W.TEXT_MESSAGE_START:{let t=e.messageId;return r.has(t)?mx(()=>new hv(`Cannot send 'TEXT_MESSAGE_START' event: A text message with ID '${t}' is already in progress. Complete it with 'TEXT_MESSAGE_END' first.`)):(r.set(t,!0),px(e))}case W.TEXT_MESSAGE_CONTENT:{let t=e.messageId;return r.has(t)?px(e):mx(()=>new hv(`Cannot send 'TEXT_MESSAGE_CONTENT' event: No active text message found with ID '${t}'. Start a text message with 'TEXT_MESSAGE_START' first.`))}case W.TEXT_MESSAGE_END:{let t=e.messageId;return r.has(t)?(r.delete(t),px(e)):mx(()=>new hv(`Cannot send 'TEXT_MESSAGE_END' event: No active text message found with ID '${t}'. A 'TEXT_MESSAGE_START' event must be sent first.`))}case W.TOOL_CALL_START:{let t=e.toolCallId;return i.has(t)?mx(()=>new hv(`Cannot send 'TOOL_CALL_START' event: A tool call with ID '${t}' is already in progress. Complete it with 'TOOL_CALL_END' first.`)):(i.set(t,!0),px(e))}case W.TOOL_CALL_ARGS:{let t=e.toolCallId;return i.has(t)?px(e):mx(()=>new hv(`Cannot send 'TOOL_CALL_ARGS' event: No active tool call found with ID '${t}'. Start a tool call with 'TOOL_CALL_START' first.`))}case W.TOOL_CALL_END:{let t=e.toolCallId;return i.has(t)?(i.delete(t),px(e)):mx(()=>new hv(`Cannot send 'TOOL_CALL_END' event: No active tool call found with ID '${t}'. A 'TOOL_CALL_START' event must be sent first.`))}case W.STEP_STARTED:{let t=e.stepName;return c.has(t)?mx(()=>new hv(`Step "${t}" is already active for 'STEP_STARTED'`)):(c.set(t,!0),px(e))}case W.STEP_FINISHED:{let t=e.stepName;return c.has(t)?(c.delete(t),px(e)):mx(()=>new hv(`Cannot send 'STEP_FINISHED' for step "${t}" that was not started`))}case W.RUN_STARTED:return d=!0,px(e);case W.RUN_FINISHED:if(c.size>0){let e=Array.from(c.keys()).join(`, `);return mx(()=>new hv(`Cannot send 'RUN_FINISHED' while steps are still active: ${e}`))}if(r.size>0){let e=Array.from(r.keys()).join(`, `);return mx(()=>new hv(`Cannot send 'RUN_FINISHED' while text messages are still active: ${e}`))}if(i.size>0){let e=Array.from(i.keys()).join(`, `);return mx(()=>new hv(`Cannot send 'RUN_FINISHED' while tool calls are still active: ${e}`))}return a=!0,px(e);case W.RUN_ERROR:return o=!0,px(e);case W.CUSTOM:return px(e);case W.THINKING_TEXT_MESSAGE_START:return l?u?mx(()=>new hv(`Cannot send 'THINKING_TEXT_MESSAGE_START' event: A thinking message is already in progress. Complete it with 'THINKING_TEXT_MESSAGE_END' first.`)):(u=!0,px(e)):mx(()=>new hv(`Cannot send 'THINKING_TEXT_MESSAGE_START' event: A thinking step is not in progress. Create one with 'THINKING_START' first.`));case W.THINKING_TEXT_MESSAGE_CONTENT:return u?px(e):mx(()=>new hv(`Cannot send 'THINKING_TEXT_MESSAGE_CONTENT' event: No active thinking message found. Start a message with 'THINKING_TEXT_MESSAGE_START' first.`));case W.THINKING_TEXT_MESSAGE_END:return u?(u=!1,px(e)):mx(()=>new hv(`Cannot send 'THINKING_TEXT_MESSAGE_END' event: No active thinking message found. A 'THINKING_TEXT_MESSAGE_START' event must be sent first.`));case W.THINKING_START:return l?mx(()=>new hv(`Cannot send 'THINKING_START' event: A thinking step is already in progress. End it with 'THINKING_END' first.`)):(l=!0,px(e));case W.THINKING_END:return l?(l=!1,px(e)):mx(()=>new hv(`Cannot send 'THINKING_END' event: No active thinking step found. A 'THINKING_START' event must be sent first.`));default:return px(e)}}))},NT=function(e){return e.HEADERS=`headers`,e.DATA=`data`,e}({}),PT=e=>xx(()=>fx(e())).pipe(Ex(e=>{if(!e.ok){let t=e.headers.get(`content-type`)||``;return fx(e.text()).pipe(yx(n=>{let r=n;if(t.includes(`application/json`))try{r=JSON.parse(n)}catch{}let i=Error(`HTTP ${e.status}: ${typeof r==`string`?r:JSON.stringify(r)}`);return i.status=e.status,i.payload=r,mx(()=>i)}))}let t={type:NT.HEADERS,status:e.status,headers:e.headers},n=e.body?.getReader();return n?new xb(e=>(e.next(t),(async()=>{try{for(;;){let{done:t,value:r}=await n.read();if(t)break;let i={type:NT.DATA,data:r};e.next(i)}e.complete()}catch(t){e.error(t)}})(),()=>{n.cancel().catch(e=>{if(e?.name!==`AbortError`)throw e})})):mx(()=>Error(`Failed to getReader() from response`))})),FT=(e,t)=>{let n=DT(t),r=new Ab,i=new TextDecoder(`utf-8`,{fatal:!1}),a=``;e.subscribe({next:e=>{if(e.type!==NT.HEADERS&&e.type===NT.DATA&&e.data){let t=i.decode(e.data,{stream:!0});a+=t;let n=a.split(/\n\n/);a=n.pop()||``;for(let e of n)o(e)}},error:e=>r.error(e),complete:()=>{a&&(a+=i.decode(),o(a)),r.complete()}});function o(e){let t=e.split(` +`),i=[];for(let e of t)e.startsWith(`data:`)&&i.push(e.slice(5).replace(/^ /,``));if(i.length>0)try{let e=i.join(` +`),t=JSON.parse(e);n?.event(`SSE`,`Event received:`,t,{type:t.type}),r.next(t)}catch(e){r.error(e)}}return r.asObservable()},IT=e=>{let t=new Ab,n=new Uint8Array;e.subscribe({next:e=>{if(e.type!==NT.HEADERS&&e.type===NT.DATA&&e.data){let t=new Uint8Array(n.length+e.data.length);t.set(n,0),t.set(e.data,n.length),n=t,r()}},error:e=>t.error(e),complete:()=>{if(n.length>0)try{r()}catch{console.warn(`Incomplete or invalid protocol buffer data at stream end`)}t.complete()}});function r(){for(;n.length>=4;){let e=4+new DataView(n.buffer,n.byteOffset,4).getUint32(0,!1);if(n.length{let n=DT(t),r=new Ab,i=new Nb,a=!1;return e.subscribe({next:e=>{if(i.next(e),e.type===NT.HEADERS&&!a){a=!0;let t=e.headers.get(`content-type`);n?.lifecycle(`HTTP`,`Stream format detected:`,{contentType:t,parser:t===`application/vnd.ag-ui.event+proto`?`protobuf`:`sse`}),t===`application/vnd.ag-ui.event+proto`?IT(i).subscribe({next:e=>r.next(e),error:e=>r.error(e),complete:()=>r.complete()}):FT(i,n).subscribe({next:e=>{try{let t=oy.parse(e);n?.event(`HTTP`,`Event validated:`,t,{type:t.type,valid:!0}),r.next(t)}catch(t){n?.event(`HTTP`,`Event invalid:`,{json:e,error:String(t)}),r.error(t)}},error:e=>{if(e?.name===`AbortError`){r.next({type:W.RUN_ERROR,message:e.message||`Request aborted`,code:`abort`,rawEvent:e}),r.complete();return}return r.error(e)},complete:()=>r.complete()})}else a||r.error(Error(`No headers event received before data events`))},error:e=>{i.error(e),r.error(e)},complete:()=>{i.complete()}}),r.asObservable()},RT=dT([`TextMessageStart`,`TextMessageContent`,`TextMessageEnd`,`ActionExecutionStart`,`ActionExecutionArgs`,`ActionExecutionEnd`,`ActionExecutionResult`,`AgentStateMessage`,`MetaEvent`,`RunStarted`,`RunFinished`,`RunError`,`NodeStarted`,`NodeFinished`]),zT=dT([`LangGraphInterruptEvent`,`PredictState`,`Exit`]);lT(`type`,[cT({type:uT(RT.enum.TextMessageStart),messageId:aT(),parentMessageId:aT().optional(),role:aT().optional()}),cT({type:uT(RT.enum.TextMessageContent),messageId:aT(),content:aT()}),cT({type:uT(RT.enum.TextMessageEnd),messageId:aT()}),cT({type:uT(RT.enum.ActionExecutionStart),actionExecutionId:aT(),actionName:aT(),parentMessageId:aT().optional()}),cT({type:uT(RT.enum.ActionExecutionArgs),actionExecutionId:aT(),args:aT()}),cT({type:uT(RT.enum.ActionExecutionEnd),actionExecutionId:aT()}),cT({type:uT(RT.enum.ActionExecutionResult),actionName:aT(),actionExecutionId:aT(),result:aT()}),cT({type:uT(RT.enum.AgentStateMessage),threadId:aT(),agentName:aT(),nodeName:aT(),runId:aT(),active:oT(),role:aT(),state:aT(),running:oT()}),cT({type:uT(RT.enum.MetaEvent),name:zT,value:sT()}),cT({type:uT(RT.enum.RunError),message:aT(),code:aT().optional()})]),cT({id:aT(),role:aT(),content:aT(),parentMessageId:aT().optional()}),cT({id:aT(),name:aT(),arguments:sT(),parentMessageId:aT().optional()}),cT({id:aT(),result:sT(),actionExecutionId:aT(),actionName:aT()});var BT=e=>{if(typeof e==`string`)return e;if(!Array.isArray(e))return;let t=e.filter(e=>e.type===`text`).map(e=>e.text).filter(e=>e.length>0);if(t.length!==0)return t.join(` +`)},VT=(e,t,n)=>r=>{let i={},a=!0,o=!0,s=``,c=null,l=null,u=[],d={},f=e=>{typeof e==`object`&&e&&(`messages`in e&&delete e.messages,i=e)};return r.pipe(yx(r=>{switch(r.type){case W.TEXT_MESSAGE_START:{let e=r;return[{type:RT.enum.TextMessageStart,messageId:e.messageId,role:e.role}]}case W.TEXT_MESSAGE_CONTENT:{let e=r;return[{type:RT.enum.TextMessageContent,messageId:e.messageId,content:e.delta}]}case W.TEXT_MESSAGE_END:{let e=r;return[{type:RT.enum.TextMessageEnd,messageId:e.messageId}]}case W.TOOL_CALL_START:{let e=r;return u.push({id:e.toolCallId,type:`function`,function:{name:e.toolCallName,arguments:``}}),o=!0,d[e.toolCallId]=e.toolCallName,[{type:RT.enum.ActionExecutionStart,actionExecutionId:e.toolCallId,actionName:e.toolCallName,parentMessageId:e.parentMessageId}]}case W.TOOL_CALL_ARGS:{let c=r,d=u.find(e=>e.id===c.toolCallId);if(!d)return console.warn(`TOOL_CALL_ARGS: No tool call found with ID '${c.toolCallId}'`),[];d.function.arguments+=c.delta;let p=!1;if(l){let e=l.find(e=>e.tool==d.function.name);if(e)try{let t=JSON.parse(Ax(d.function.arguments));e.tool_argument&&e.tool_argument in t?(f({...i,[e.state_key]:t[e.tool_argument]}),p=!0):e.tool_argument||(f({...i,[e.state_key]:t}),p=!0)}catch{}}return[{type:RT.enum.ActionExecutionArgs,actionExecutionId:c.toolCallId,args:c.delta},...p?[{type:RT.enum.AgentStateMessage,threadId:e,agentName:n,nodeName:s,runId:t,running:a,role:`assistant`,state:JSON.stringify(i),active:o}]:[]]}case W.TOOL_CALL_END:{let e=r;return[{type:RT.enum.ActionExecutionEnd,actionExecutionId:e.toolCallId}]}case W.TOOL_CALL_RESULT:{let e=r;return[{type:RT.enum.ActionExecutionResult,actionExecutionId:e.toolCallId,result:e.content,actionName:d[e.toolCallId]||`unknown`}]}case W.RAW:return[];case W.CUSTOM:{let e=r;switch(e.name){case`Exit`:a=!1;break;case`PredictState`:l=e.value}return[{type:RT.enum.MetaEvent,name:e.name,value:e.value}]}case W.STATE_SNAPSHOT:return f(r.snapshot),[{type:RT.enum.AgentStateMessage,threadId:e,agentName:n,nodeName:s,runId:t,running:a,role:`assistant`,state:JSON.stringify(i),active:o}];case W.STATE_DELTA:{let c=r,l=Hy.applyPatch(i,c.delta,!0,!1);return l?(f(l.newDocument),[{type:RT.enum.AgentStateMessage,threadId:e,agentName:n,nodeName:s,runId:t,running:a,role:`assistant`,state:JSON.stringify(i),active:o}]):[]}case W.MESSAGES_SNAPSHOT:return c=r.messages,[{type:RT.enum.AgentStateMessage,threadId:e,agentName:n,nodeName:s,runId:t,running:a,role:`assistant`,state:JSON.stringify({...i,...c?{messages:c}:{}}),active:!0}];case W.RUN_STARTED:return[];case W.RUN_FINISHED:return c&&(i.messages=c),Object.keys(i).length===0?[]:[{type:RT.enum.AgentStateMessage,threadId:e,agentName:n,nodeName:s,runId:t,running:a,role:`assistant`,state:JSON.stringify({...i,...c?{messages:HT(c)}:{}}),active:!1}];case W.RUN_ERROR:{let e=r;return[{type:RT.enum.RunError,message:e.message,code:e.code}]}case W.STEP_STARTED:return s=r.stepName,u=[],l=null,[{type:RT.enum.AgentStateMessage,threadId:e,agentName:n,nodeName:s,runId:t,running:a,role:`assistant`,state:JSON.stringify(i),active:!0}];case W.STEP_FINISHED:return u=[],l=null,[{type:RT.enum.AgentStateMessage,threadId:e,agentName:n,nodeName:s,runId:t,running:a,role:`assistant`,state:JSON.stringify(i),active:!1}];default:return[]}}))};function HT(e){let t=[];for(let n of e)if(n.role===`assistant`||n.role===`user`||n.role===`system`){let e=BT(n.content);if(e){let r={id:n.id,role:n.role,content:e};t.push(r)}if(n.role===`assistant`&&n.toolCalls&&n.toolCalls.length>0)for(let e of n.toolCalls){let r={id:e.id,name:e.function.name,arguments:JSON.parse(e.function.arguments),parentMessageId:n.id};t.push(r)}}else if(n.role===`tool`){let r=`unknown`;for(let t of e)if(t.role===`assistant`&&t.toolCalls?.length){for(let e of t.toolCalls)if(e.id===n.toolCallId){r=e.function.name;break}}let i={id:n.id,result:n.content,actionExecutionId:n.toolCallId,actionName:r};t.push(i)}return t}var UT=e=>t=>{let n=DT(e),r,i,a,o,s=()=>{if(!r||o!==`text`)throw Error(`No text message to close`);let e={type:W.TEXT_MESSAGE_END,messageId:r.messageId};return o=void 0,r=void 0,n?.event(`TRANSFORM`,`TEXT_MESSAGE_END`,e,{messageId:e.messageId}),e},c=()=>{if(!i||o!==`tool`)throw Error(`No tool call to close`);let e={type:W.TOOL_CALL_END,toolCallId:i.toolCallId};return o=void 0,i=void 0,n?.event(`TRANSFORM`,`TOOL_CALL_END`,e,{toolCallId:e.toolCallId}),e},l=()=>{if(!a||o!==`reasoning`)throw Error(`No reasoning message to close`);let e={type:W.REASONING_MESSAGE_END,messageId:a.messageId};return o=void 0,a=void 0,n?.event(`TRANSFORM`,`REASONING_MESSAGE_END`,e,{messageId:e.messageId}),e},u=()=>o===`text`?[s()]:o===`tool`?[c()]:o===`reasoning`?[l()]:[];return t.pipe(yx(e=>{switch(e.type){case W.TEXT_MESSAGE_START:case W.TEXT_MESSAGE_CONTENT:case W.TEXT_MESSAGE_END:case W.TOOL_CALL_START:case W.TOOL_CALL_ARGS:case W.TOOL_CALL_END:case W.TOOL_CALL_RESULT:case W.STATE_SNAPSHOT:case W.STATE_DELTA:case W.MESSAGES_SNAPSHOT:case W.CUSTOM:case W.RUN_STARTED:case W.RUN_FINISHED:case W.RUN_ERROR:case W.STEP_STARTED:case W.STEP_FINISHED:case W.THINKING_START:case W.THINKING_END:case W.THINKING_TEXT_MESSAGE_START:case W.THINKING_TEXT_MESSAGE_CONTENT:case W.THINKING_TEXT_MESSAGE_END:case W.REASONING_START:case W.REASONING_MESSAGE_START:case W.REASONING_MESSAGE_CONTENT:case W.REASONING_MESSAGE_END:case W.REASONING_END:return[...u(),e];case W.RAW:case W.ACTIVITY_SNAPSHOT:case W.ACTIVITY_DELTA:case W.REASONING_ENCRYPTED_VALUE:return[e];case W.TEXT_MESSAGE_CHUNK:let t=e,s=[];if((o!==`text`||t.messageId!==void 0&&t.messageId!==r?.messageId)&&s.push(...u()),o!==`text`){if(t.messageId===void 0)throw Error(`First TEXT_MESSAGE_CHUNK must have a messageId`);r={messageId:t.messageId,name:t.name},o=`text`;let e={type:W.TEXT_MESSAGE_START,messageId:t.messageId,role:t.role||`assistant`,...t.name!==void 0&&{name:t.name}};s.push(e),n?.event(`TRANSFORM`,`TEXT_MESSAGE_START`,e,{messageId:t.messageId})}if(t.delta!==void 0){let e={type:W.TEXT_MESSAGE_CONTENT,messageId:r.messageId,delta:t.delta};s.push(e),n?.event(`TRANSFORM`,`TEXT_MESSAGE_CONTENT`,e,{messageId:r.messageId})}return s;case W.TOOL_CALL_CHUNK:let c=e,l=[];if((o!==`tool`||c.toolCallId!==void 0&&c.toolCallId!==i?.toolCallId)&&l.push(...u()),o!==`tool`){if(c.toolCallId===void 0)throw Error(`First TOOL_CALL_CHUNK must have a toolCallId`);if(c.toolCallName===void 0)throw Error(`First TOOL_CALL_CHUNK must have a toolCallName`);i={toolCallId:c.toolCallId,toolCallName:c.toolCallName,parentMessageId:c.parentMessageId},o=`tool`;let e={type:W.TOOL_CALL_START,toolCallId:c.toolCallId,toolCallName:c.toolCallName,parentMessageId:c.parentMessageId};l.push(e),n?.event(`TRANSFORM`,`TOOL_CALL_START`,e,{toolCallId:c.toolCallId,toolCallName:c.toolCallName})}if(c.delta!==void 0){let e={type:W.TOOL_CALL_ARGS,toolCallId:i.toolCallId,delta:c.delta};l.push(e),n?.event(`TRANSFORM`,`TOOL_CALL_ARGS`,e,{toolCallId:i.toolCallId})}return l;case W.REASONING_MESSAGE_CHUNK:let d=e,f=[];if((o!==`reasoning`||d.messageId&&d.messageId!==a?.messageId)&&f.push(...u()),o!==`reasoning`){if(d.messageId===void 0)throw Error(`First REASONING_MESSAGE_CHUNK must have a messageId`);a={messageId:d.messageId},o=`reasoning`;let e={type:W.REASONING_MESSAGE_START,messageId:d.messageId};f.push(e),n?.event(`TRANSFORM`,`REASONING_MESSAGE_START`,e,{messageId:d.messageId})}if(d.delta!==void 0){let e={type:W.REASONING_MESSAGE_CONTENT,messageId:a.messageId,delta:d.delta};f.push(e),n?.event(`TRANSFORM`,`REASONING_MESSAGE_CONTENT`,e,{messageId:a.messageId})}return f}return e.type,[]}),Tx(()=>{u()}))};function WT(e,t=new Date){return e.expiresAt!==void 0&&new Date(e.expiresAt)<=t}var GT=class{runNext(e,t){return t.run(e).pipe(UT(!1))}runNextWithState(e,t){let n=bT(e.messages||[]),r=bT(e.state||{}),i=new Nb;return jT(e,i,t,[]).subscribe(e=>{e.messages!==void 0&&(n=e.messages),e.state!==void 0&&(r=e.state)}),this.runNext(e,t).pipe(Cx(async e=>(i.next(e),await new Promise(e=>setTimeout(e,0)),{event:e,messages:bT(n),state:bT(r)})))}},KT=class extends GT{constructor(e){super(),this.fn=e}run(e,t){return this.fn(e,t)}};function qT(e){let t=e.content;if(Array.isArray(t)){let n=t.filter(e=>typeof e==`object`&&!!e&&`type`in e&&e.type===`text`&&typeof e.text==`string`).map(e=>e.text).join(``);return{...e,content:n}}return typeof t==`string`?e:{...e,content:``}}var JT=class extends GT{run(e,t){let{parentRunId:n,...r}=e,i={...r,messages:r.messages.map(qT)};return this.runNext(i,t)}},YT=`THINKING_START`,XT=`THINKING_END`,ZT=`THINKING_TEXT_MESSAGE_START`,QT=`THINKING_TEXT_MESSAGE_CONTENT`,$T=`THINKING_TEXT_MESSAGE_END`,eE=class extends GT{constructor(...e){super(...e),this.currentReasoningId=null,this.currentMessageId=null}warnAboutTransformation(e,t){typeof process<`u`&&{}.SUPPRESS_TRANSFORMATION_WARNINGS||console.warn(`AG-UI is converting ${e} to ${t}. To remove this warning, upgrade your AG-UI integration package (e.g. @ag-ui/langgraph). To surpress it, set SUPPRESS_TRANSFORMATION_WARNINGS=true in your .env file.`)}run(e,t){return this.currentReasoningId=null,this.currentMessageId=null,this.runNext(e,t).pipe(_x(e=>this.transformEvent(e)))}transformEvent(e){switch(e.type){case YT:{this.currentReasoningId=xT();let{title:t,...n}=e;return this.warnAboutTransformation(YT,W.REASONING_START),{...n,type:W.REASONING_START,messageId:this.currentReasoningId}}case ZT:return this.currentMessageId=xT(),this.warnAboutTransformation(ZT,W.REASONING_MESSAGE_START),{...e,type:W.REASONING_MESSAGE_START,messageId:this.currentMessageId,role:`assistant`};case QT:{let{delta:t,...n}=e;return this.warnAboutTransformation(QT,W.REASONING_MESSAGE_CONTENT),{...n,type:W.REASONING_MESSAGE_CONTENT,messageId:this.currentMessageId??xT(),delta:t}}case $T:{let t=this.currentMessageId??xT();return this.warnAboutTransformation($T,W.REASONING_MESSAGE_END),{...e,type:W.REASONING_MESSAGE_END,messageId:t}}case XT:{let t=this.currentReasoningId??xT();return this.warnAboutTransformation(XT,W.REASONING_END),{...e,type:W.REASONING_END,messageId:t}}default:return e}}};function tE(e){return e.startsWith(`image/`)?`image`:e.startsWith(`audio/`)?`audio`:e.startsWith(`video/`)?`video`:`document`}function nE(e){return typeof e==`object`&&!!e&&`type`in e&&e.type===`binary`&&`mimeType`in e&&typeof e.mimeType==`string`}function rE(e){let t=tE(e.mimeType);return e.data?{type:t,source:{type:`data`,value:e.data,mimeType:e.mimeType},...e.filename?{metadata:{filename:e.filename}}:{}}:e.url?{type:t,source:{type:`url`,value:e.url,mimeType:e.mimeType},...e.filename?{metadata:{filename:e.filename}}:{}}:e}function iE(e){let t=e.content;if(!Array.isArray(t))return e;let n=t.map(e=>nE(e)?rE(e):e);return{...e,content:n}}var aE=class extends GT{run(e,t){let n={...e,messages:e.messages.map(iE)};return this.runNext(n,t)}},oE=`0.0.57`,sE=class{get maxVersion(){return oE}get debug(){return this._debug}set debug(e){this._debug=ET(e),this._debugLogger=kT(this._debug)}get debugLogger(){return this._debugLogger}set debugLogger(e){this._debugLogger=typeof e==`boolean`?e?kT(ET(!0)):void 0:e}constructor({agentId:e,description:t,threadId:n,initialMessages:r,initialState:i,debug:a}={}){this.subscribers=[],this.isRunning=!1,this.pendingInterrupts=[],this.middlewares=[],this.agentId=e,this.description=t??``,this.threadId=n??sg(),this.messages=bT(r??[]),this.state=bT(i??{}),this._debug=ET(a),this._debugLogger=kT(this._debug),yT(this.maxVersion,`0.0.39`)<=0&&this.middlewares.unshift(new JT),yT(this.maxVersion,`0.0.45`)<=0&&this.middlewares.unshift(new eE),yT(this.maxVersion,`0.0.47`)<=0&&this.middlewares.unshift(new aE)}subscribe(e){return this.subscribers.push(e),{unsubscribe:()=>{this.subscribers=this.subscribers.filter(t=>t!==e)}}}use(...e){let t=e.map(e=>typeof e==`function`?new KT(e):e);return this.middlewares.push(...t),this}async runAgent(e,t){try{this.isRunning=!0,this.agentId=this.agentId??sg();let n=this.prepareRunAgentInput(e);this.debugLogger?.lifecycle(`LIFECYCLE`,`Run started:`,{agentId:this.agentId,threadId:this.threadId});let r,i=new Set(this.messages.map(e=>e.id)),a=[{onRunFinishedEvent:e=>{e.outcome===`success`&&(r=e.result)}},...this.subscribers,t??{}];await this.onInitialize(n,a),this.activeRunDetach$=new Ab;let o;this.activeRunCompletionPromise=new Promise(e=>{o=e}),await gx(yb(()=>this.middlewares.length===0?this.run(n):this.middlewares.reduceRight((e,t)=>({run:n=>t.run(n,e),get messages(){return e.messages},get state(){return e.state}}),this).run(n),UT(this.debugLogger),MT(this.debugLogger),e=>e.pipe(Dx(this.activeRunDetach$)),e=>this.apply(n,e,a),e=>this.processApplyEvents(n,e,a),Sx(e=>(this.debugLogger?.lifecycle(`LIFECYCLE`,`Run errored:`,{agentId:this.agentId,error:e instanceof Error?e.message:String(e)}),this.isRunning=!1,this.onError(n,e,a))),Tx(()=>{this.debugLogger?.lifecycle(`LIFECYCLE`,`Run finished:`,{agentId:this.agentId,threadId:this.threadId}),this.isRunning=!1,this.onFinalize(n,a),o?.(),o=void 0,this.activeRunCompletionPromise=void 0,this.activeRunDetach$=void 0}))(px(null)));let s=bT(this.messages).filter(e=>!i.has(e.id));return{result:r,newMessages:s}}finally{this.isRunning=!1}}connect(e){throw new gv}async connectAgent(e,t){try{this.isRunning=!0,this.agentId=this.agentId??sg();let n=this.prepareRunAgentInput(e),r,i=new Set(this.messages.map(e=>e.id)),a=[{onRunFinishedEvent:e=>{e.outcome===`success`&&(r=e.result)}},...this.subscribers,t??{}];await this.onInitialize(n,a),this.activeRunDetach$=new Ab;let o;this.activeRunCompletionPromise=new Promise(e=>{o=e}),await gx(yb(()=>xx(()=>this.connect(n)),UT(this.debugLogger),MT(this.debugLogger),e=>e.pipe(Dx(this.activeRunDetach$)),e=>this.apply(n,e,a),e=>this.processApplyEvents(n,e,a),Sx(e=>(this.isRunning=!1,e instanceof gv?Pb:this.onError(n,e,a))),Tx(()=>{this.isRunning=!1,this.onFinalize(n,a),o?.(),o=void 0,this.activeRunCompletionPromise=void 0,this.activeRunDetach$=void 0}))(px(null)),{defaultValue:void 0});let s=bT(this.messages).filter(e=>!i.has(e.id));return{result:r,newMessages:s}}finally{this.isRunning=!1}}abortRun(){}async detachActiveRun(){if(!this.activeRunDetach$)return;let e=this.activeRunCompletionPromise??Promise.resolve();this.activeRunDetach$.next(),this.activeRunDetach$?.complete(),await e}apply(e,t,n){return jT(e,t,this,n,this.debugLogger)}processApplyEvents(e,t,n){return t.pipe(Ox(t=>{t.messages&&(this.messages=t.messages,n.forEach(t=>{t.onMessagesChanged?.({messages:this.messages,state:this.state,agent:this,input:e})})),t.state&&(this.state=t.state,n.forEach(t=>{t.onStateChanged?.({state:this.state,messages:this.messages,agent:this,input:e})}))}))}prepareRunAgentInput(e){let t=bT(this.messages).filter(e=>e.role!==`activity`);return{threadId:this.threadId,runId:e?.runId||sg(),tools:bT(e?.tools??[]),context:bT(e?.context??[]),forwardedProps:bT(e?.forwardedProps??{}),state:bT(this.state),messages:t,...e?.resume===void 0?{}:{resume:bT(e.resume)}}}async onInitialize(e,t){if(this.pendingInterrupts.length>0){let t=new Set((e.resume??[]).map(e=>e.interruptId)),n=this.pendingInterrupts.map(e=>e.id).filter(e=>!t.has(e));if(n.length>0)throw new hv(`Thread has ${n.length} pending interrupt(s) not addressed by resume: ${n.join(`, `)}`);for(let e of this.pendingInterrupts)if(WT(e))throw new hv(`Interrupt ${e.id} expired at ${e.expiresAt}`)}let n=await TT(t,this.messages,this.state,(t,n,r)=>t.onRunInitialized?.({messages:n,state:r,agent:this,input:e}));(n.messages!==void 0||n.state!==void 0)&&(n.messages&&(this.messages=n.messages,e.messages=n.messages,t.forEach(t=>{t.onMessagesChanged?.({messages:this.messages,state:this.state,agent:this,input:e})})),n.state&&(this.state=n.state,e.state=n.state,t.forEach(t=>{t.onStateChanged?.({state:this.state,messages:this.messages,agent:this,input:e})})))}onError(e,t,n){return fx(TT(n,this.messages,this.state,(n,r,i)=>n.onRunFailed?.({error:t,messages:r,state:i,agent:this,input:e}))).pipe(_x(r=>{let i=r;if((i.messages!==void 0||i.state!==void 0)&&(i.messages!==void 0&&(this.messages=i.messages,n.forEach(t=>{t.onMessagesChanged?.({messages:this.messages,state:this.state,agent:this,input:e})})),i.state!==void 0&&(this.state=i.state,n.forEach(t=>{t.onStateChanged?.({state:this.state,messages:this.messages,agent:this,input:e})}))),i.stopPropagation!==!0){let e=String(t);if(t.name!==`AbortError`&&t.message!==`Fetch is aborted`&&t.message!==`signal is aborted without reason`&&t.message!==`component unmounted`&&e!==`component unmounted`)throw console.error(`Agent execution failed:`,t),t}return{}}))}async onFinalize(e,t){let n=await TT(t,this.messages,this.state,(t,n,r)=>t.onRunFinalized?.({messages:n,state:r,agent:this,input:e}));(n.messages!==void 0||n.state!==void 0)&&(n.messages!==void 0&&(this.messages=n.messages,t.forEach(t=>{t.onMessagesChanged?.({messages:this.messages,state:this.state,agent:this,input:e})})),n.state!==void 0&&(this.state=n.state,t.forEach(t=>{t.onStateChanged?.({state:this.state,messages:this.messages,agent:this,input:e})})))}clone(){let e=Object.create(Object.getPrototypeOf(this));return e.agentId=this.agentId,e.description=this.description,e.threadId=this.threadId,e.messages=bT(this.messages),e.state=bT(this.state),e._debug=this._debug,e._debugLogger=this._debugLogger,e.isRunning=this.isRunning,e.subscribers=[...this.subscribers],e.middlewares=[...this.middlewares],e.pendingInterrupts=bT(this.pendingInterrupts),e}addMessage(e){this.messages.push(e),(async()=>{for(let t of this.subscribers)await t.onNewMessage?.({message:e,messages:this.messages,state:this.state,agent:this});if(e.role===`assistant`&&e.toolCalls)for(let t of e.toolCalls)for(let e of this.subscribers)await e.onNewToolCall?.({toolCall:t,messages:this.messages,state:this.state,agent:this});for(let e of this.subscribers)await e.onMessagesChanged?.({messages:this.messages,state:this.state,agent:this})})()}addMessages(e){this.messages.push(...e),(async()=>{for(let t of e){for(let e of this.subscribers)await e.onNewMessage?.({message:t,messages:this.messages,state:this.state,agent:this});if(t.role===`assistant`&&t.toolCalls)for(let e of t.toolCalls)for(let t of this.subscribers)await t.onNewToolCall?.({toolCall:e,messages:this.messages,state:this.state,agent:this})}for(let e of this.subscribers)await e.onMessagesChanged?.({messages:this.messages,state:this.state,agent:this})})()}setMessages(e){this.messages=bT(e),(async()=>{for(let e of this.subscribers)await e.onMessagesChanged?.({messages:this.messages,state:this.state,agent:this})})()}setState(e){this.state=bT(e),(async()=>{for(let e of this.subscribers)await e.onStateChanged?.({messages:this.messages,state:this.state,agent:this})})()}legacy_to_be_removed_runAgentBridged(e){this.agentId=this.agentId??sg();let t=this.prepareRunAgentInput(e);return(this.middlewares.length===0?this.run(t):this.middlewares.reduceRight((e,t)=>({run:n=>t.run(n,e),get messages(){return e.messages},get state(){return e.state}}),this).run(t)).pipe(UT(this.debugLogger),MT(this.debugLogger),VT(this.threadId,t.runId,this.agentId),e=>e.pipe(_x(e=>(this.debugLogger?.event(`LEGACY`,`Event:`,e,{type:e.type}),e))))}},cE=class extends sE{requestInit(e){return{method:`POST`,headers:{...this.headers,"Content-Type":`application/json`,Accept:`text/event-stream`},body:JSON.stringify(e),signal:this.abortController.signal}}runAgent(e,t){return this.abortController=e?.abortController??new AbortController,super.runAgent(e,t)}abortRun(){this.abortController.abort(),super.abortRun()}constructor(e){super(e),this.abortController=new AbortController,this.url=e.url,this.headers=bT(e.headers??{}),this.fetch=e.fetch??((e,t)=>fetch(e,t))}run(e){return LT(PT(()=>this.fetch(this.url,this.requestInit(e))),this.debugLogger)}clone(){let e=super.clone();e.url=this.url,e.headers=bT(this.headers??{}),e.fetch=this.fetch;let t=new AbortController,n=this.abortController.signal;return n.aborted&&t.abort(n.reason),e.abortController=t,e}},lE=new Map([[`bold`,P.createElement(P.Fragment,null,P.createElement(`path`,{d:`M204,64V168a12,12,0,0,1-24,0V93L72.49,200.49a12,12,0,0,1-17-17L163,76H88a12,12,0,0,1,0-24H192A12,12,0,0,1,204,64Z`}))],[`duotone`,P.createElement(P.Fragment,null,P.createElement(`path`,{d:`M192,64V168L88,64Z`,opacity:`0.2`}),P.createElement(`path`,{d:`M192,56H88a8,8,0,0,0-5.66,13.66L128.69,116,58.34,186.34a8,8,0,0,0,11.32,11.32L140,127.31l46.34,46.35A8,8,0,0,0,200,168V64A8,8,0,0,0,192,56Zm-8,92.69-38.34-38.34h0L107.31,72H184Z`}))],[`fill`,P.createElement(P.Fragment,null,P.createElement(`path`,{d:`M200,64V168a8,8,0,0,1-13.66,5.66L140,127.31,69.66,197.66a8,8,0,0,1-11.32-11.32L128.69,116,82.34,69.66A8,8,0,0,1,88,56H192A8,8,0,0,1,200,64Z`}))],[`light`,P.createElement(P.Fragment,null,P.createElement(`path`,{d:`M198,64V168a6,6,0,0,1-12,0V78.48L68.24,196.24a6,6,0,0,1-8.48-8.48L177.52,70H88a6,6,0,0,1,0-12H192A6,6,0,0,1,198,64Z`}))],[`regular`,P.createElement(P.Fragment,null,P.createElement(`path`,{d:`M200,64V168a8,8,0,0,1-16,0V83.31L69.66,197.66a8,8,0,0,1-11.32-11.32L172.69,72H88a8,8,0,0,1,0-16H192A8,8,0,0,1,200,64Z`}))],[`thin`,P.createElement(P.Fragment,null,P.createElement(`path`,{d:`M196,64V168a4,4,0,0,1-8,0V73.66L66.83,194.83a4,4,0,0,1-5.66-5.66L182.34,68H88a4,4,0,0,1,0-8H192A4,4,0,0,1,196,64Z`}))]]),uE=new Map([[`bold`,P.createElement(P.Fragment,null,P.createElement(`path`,{d:`M172,108a12,12,0,0,1-12,12H96a12,12,0,0,1,0-24h64A12,12,0,0,1,172,108Zm-12,28H96a12,12,0,0,0,0,24h64a12,12,0,0,0,0-24Zm76-8A108,108,0,0,1,78.77,224.15L46.34,235A20,20,0,0,1,21,209.66l10.81-32.43A108,108,0,1,1,236,128Zm-24,0A84,84,0,1,0,55.27,170.06a12,12,0,0,1,1,9.81l-9.93,29.79,29.79-9.93a12.1,12.1,0,0,1,3.8-.62,12,12,0,0,1,6,1.62A84,84,0,0,0,212,128Z`}))],[`duotone`,P.createElement(P.Fragment,null,P.createElement(`path`,{d:`M224,128A96,96,0,0,1,79.93,211.11h0L42.54,223.58a8,8,0,0,1-10.12-10.12l12.47-37.39h0A96,96,0,1,1,224,128Z`,opacity:`0.2`}),P.createElement(`path`,{d:`M128,24A104,104,0,0,0,36.18,176.88L24.83,210.93a16,16,0,0,0,20.24,20.24l34.05-11.35A104,104,0,1,0,128,24Zm0,192a87.87,87.87,0,0,1-44.06-11.81,8,8,0,0,0-4-1.08,7.85,7.85,0,0,0-2.53.42L40,216,52.47,178.6a8,8,0,0,0-.66-6.54A88,88,0,1,1,128,216Zm40-104a8,8,0,0,1-8,8H96a8,8,0,0,1,0-16h64A8,8,0,0,1,168,112Zm0,32a8,8,0,0,1-8,8H96a8,8,0,0,1,0-16h64A8,8,0,0,1,168,144Z`}))],[`fill`,P.createElement(P.Fragment,null,P.createElement(`path`,{d:`M128,24A104,104,0,0,0,36.18,176.88L24.83,210.93a16,16,0,0,0,20.24,20.24l34.05-11.35A104,104,0,1,0,128,24Zm32,128H96a8,8,0,0,1,0-16h64a8,8,0,0,1,0,16Zm0-32H96a8,8,0,0,1,0-16h64a8,8,0,0,1,0,16Z`}))],[`light`,P.createElement(P.Fragment,null,P.createElement(`path`,{d:`M166,112a6,6,0,0,1-6,6H96a6,6,0,0,1,0-12h64A6,6,0,0,1,166,112Zm-6,26H96a6,6,0,0,0,0,12h64a6,6,0,0,0,0-12Zm70-10A102,102,0,0,1,79.31,217.65L44.44,229.27a14,14,0,0,1-17.71-17.71l11.62-34.87A102,102,0,1,1,230,128Zm-12,0A90,90,0,1,0,50.08,173.06a6,6,0,0,1,.5,4.91L38.12,215.35a2,2,0,0,0,2.53,2.53L78,205.42a6.2,6.2,0,0,1,1.9-.31,6.09,6.09,0,0,1,3,.81A90,90,0,0,0,218,128Z`}))],[`regular`,P.createElement(P.Fragment,null,P.createElement(`path`,{d:`M168,112a8,8,0,0,1-8,8H96a8,8,0,0,1,0-16h64A8,8,0,0,1,168,112Zm-8,24H96a8,8,0,0,0,0,16h64a8,8,0,0,0,0-16Zm72-8A104,104,0,0,1,79.12,219.82L45.07,231.17a16,16,0,0,1-20.24-20.24l11.35-34.05A104,104,0,1,1,232,128Zm-16,0A88,88,0,1,0,51.81,172.06a8,8,0,0,1,.66,6.54L40,216,77.4,203.53a7.85,7.85,0,0,1,2.53-.42,8,8,0,0,1,4,1.08A88,88,0,0,0,216,128Z`}))],[`thin`,P.createElement(P.Fragment,null,P.createElement(`path`,{d:`M164,112a4,4,0,0,1-4,4H96a4,4,0,0,1,0-8h64A4,4,0,0,1,164,112Zm-4,28H96a4,4,0,0,0,0,8h64a4,4,0,0,0,0-8Zm68-12A100,100,0,0,1,79.5,215.47l-35.69,11.9a12,12,0,0,1-15.18-15.18l11.9-35.69A100,100,0,1,1,228,128Zm-8,0A92,92,0,1,0,48.35,174.07a4,4,0,0,1,.33,3.27L36.22,214.72a4,4,0,0,0,5.06,5.06l37.38-12.46a3.93,3.93,0,0,1,1.27-.21,4.05,4.05,0,0,1,2,.54A92,92,0,0,0,220,128Z`}))]]),dE=new Map([[`bold`,P.createElement(P.Fragment,null,P.createElement(`path`,{d:`M140,80v41.21l34.17,20.5a12,12,0,1,1-12.34,20.58l-40-24A12,12,0,0,1,116,128V80a12,12,0,0,1,24,0ZM128,28A99.38,99.38,0,0,0,57.24,57.34c-4.69,4.74-9,9.37-13.24,14V64a12,12,0,0,0-24,0v40a12,12,0,0,0,12,12H72a12,12,0,0,0,0-24H57.77C63,86,68.37,80.22,74.26,74.26a76,76,0,1,1,1.58,109,12,12,0,0,0-16.48,17.46A100,100,0,1,0,128,28Z`}))],[`duotone`,P.createElement(P.Fragment,null,P.createElement(`path`,{d:`M216,128a88,88,0,1,1-88-88A88,88,0,0,1,216,128Z`,opacity:`0.2`}),P.createElement(`path`,{d:`M136,80v43.47l36.12,21.67a8,8,0,0,1-8.24,13.72l-40-24A8,8,0,0,1,120,128V80a8,8,0,0,1,16,0Zm-8-48A95.44,95.44,0,0,0,60.08,60.15C52.81,67.51,46.35,74.59,40,82V64a8,8,0,0,0-16,0v40a8,8,0,0,0,8,8H72a8,8,0,0,0,0-16H49c7.15-8.42,14.27-16.35,22.39-24.57a80,80,0,1,1,1.66,114.75,8,8,0,1,0-11,11.64A96,96,0,1,0,128,32Z`}))],[`fill`,P.createElement(P.Fragment,null,P.createElement(`path`,{d:`M224,128A96,96,0,0,1,62.11,197.82a8,8,0,1,1,11-11.64A80,80,0,1,0,71.43,71.43C67.9,75,64.58,78.51,61.35,82L77.66,98.34A8,8,0,0,1,72,112H32a8,8,0,0,1-8-8V64a8,8,0,0,1,13.66-5.66L50,70.7c3.22-3.49,6.54-7,10.06-10.55A96,96,0,0,1,224,128ZM128,72a8,8,0,0,0-8,8v48a8,8,0,0,0,3.88,6.86l40,24a8,8,0,1,0,8.24-13.72L136,123.47V80A8,8,0,0,0,128,72Z`}))],[`light`,P.createElement(P.Fragment,null,P.createElement(`path`,{d:`M134,80v44.6l37.09,22.25a6,6,0,0,1-6.18,10.3l-40-24A6,6,0,0,1,122,128V80a6,6,0,0,1,12,0Zm-6-46A93.4,93.4,0,0,0,61.51,61.56c-8.58,8.68-16,17-23.51,25.8V64a6,6,0,0,0-12,0v40a6,6,0,0,0,6,6H72a6,6,0,0,0,0-12H44.73C52.86,88.29,60.79,79.35,70,70a82,82,0,1,1,1.7,117.62,6,6,0,1,0-8.24,8.72A94,94,0,1,0,128,34Z`}))],[`regular`,P.createElement(P.Fragment,null,P.createElement(`path`,{d:`M136,80v43.47l36.12,21.67a8,8,0,0,1-8.24,13.72l-40-24A8,8,0,0,1,120,128V80a8,8,0,0,1,16,0Zm-8-48A95.44,95.44,0,0,0,60.08,60.15C52.81,67.51,46.35,74.59,40,82V64a8,8,0,0,0-16,0v40a8,8,0,0,0,8,8H72a8,8,0,0,0,0-16H49c7.15-8.42,14.27-16.35,22.39-24.57a80,80,0,1,1,1.66,114.75,8,8,0,1,0-11,11.64A96,96,0,1,0,128,32Z`}))],[`thin`,P.createElement(P.Fragment,null,P.createElement(`path`,{d:`M132,80v45.74l38.06,22.83a4,4,0,0,1-4.12,6.86l-40-24A4,4,0,0,1,124,128V80a4,4,0,0,1,8,0Zm-4-44A91.42,91.42,0,0,0,62.93,63C53.05,73,44.66,82.47,36,92.86V64a4,4,0,0,0-8,0v40a4,4,0,0,0,4,4H72a4,4,0,0,0,0-8H40.47C49.61,89,58.3,79,68.6,68.6a84,84,0,1,1,1.75,120.49,4,4,0,1,0-5.5,5.82A92,92,0,1,0,128,36Z`}))]]),fE=new Map([[`bold`,P.createElement(P.Fragment,null,P.createElement(`path`,{d:`M144,128a16,16,0,1,1-16-16A16,16,0,0,1,144,128ZM60,112a16,16,0,1,0,16,16A16,16,0,0,0,60,112Zm136,0a16,16,0,1,0,16,16A16,16,0,0,0,196,112Z`}))],[`duotone`,P.createElement(P.Fragment,null,P.createElement(`path`,{d:`M240,96v64a16,16,0,0,1-16,16H32a16,16,0,0,1-16-16V96A16,16,0,0,1,32,80H224A16,16,0,0,1,240,96Z`,opacity:`0.2`}),P.createElement(`path`,{d:`M140,128a12,12,0,1,1-12-12A12,12,0,0,1,140,128Zm56-12a12,12,0,1,0,12,12A12,12,0,0,0,196,116ZM60,116a12,12,0,1,0,12,12A12,12,0,0,0,60,116Z`}))],[`fill`,P.createElement(P.Fragment,null,P.createElement(`path`,{d:`M224,80H32A16,16,0,0,0,16,96v64a16,16,0,0,0,16,16H224a16,16,0,0,0,16-16V96A16,16,0,0,0,224,80ZM60,140a12,12,0,1,1,12-12A12,12,0,0,1,60,140Zm68,0a12,12,0,1,1,12-12A12,12,0,0,1,128,140Zm68,0a12,12,0,1,1,12-12A12,12,0,0,1,196,140Z`}))],[`light`,P.createElement(P.Fragment,null,P.createElement(`path`,{d:`M138,128a10,10,0,1,1-10-10A10,10,0,0,1,138,128ZM60,118a10,10,0,1,0,10,10A10,10,0,0,0,60,118Zm136,0a10,10,0,1,0,10,10A10,10,0,0,0,196,118Z`}))],[`regular`,P.createElement(P.Fragment,null,P.createElement(`path`,{d:`M140,128a12,12,0,1,1-12-12A12,12,0,0,1,140,128Zm56-12a12,12,0,1,0,12,12A12,12,0,0,0,196,116ZM60,116a12,12,0,1,0,12,12A12,12,0,0,0,60,116Z`}))],[`thin`,P.createElement(P.Fragment,null,P.createElement(`path`,{d:`M136,128a8,8,0,1,1-8-8A8,8,0,0,1,136,128Zm-76-8a8,8,0,1,0,8,8A8,8,0,0,0,60,120Zm136,0a8,8,0,1,0,8,8A8,8,0,0,0,196,120Z`}))]]),pE=new Map([[`bold`,P.createElement(P.Fragment,null,P.createElement(`path`,{d:`M212.62,75.17A63.7,63.7,0,0,0,206.39,26,12,12,0,0,0,196,20a63.71,63.71,0,0,0-50,24H126A63.71,63.71,0,0,0,76,20a12,12,0,0,0-10.39,6,63.7,63.7,0,0,0-6.23,49.17A61.5,61.5,0,0,0,52,104v8a60.1,60.1,0,0,0,45.76,58.28A43.66,43.66,0,0,0,92,192v4H76a20,20,0,0,1-20-20,44.05,44.05,0,0,0-44-44,12,12,0,0,0,0,24,20,20,0,0,1,20,20,44.05,44.05,0,0,0,44,44H92v12a12,12,0,0,0,24,0V192a20,20,0,0,1,40,0v40a12,12,0,0,0,24,0V192a43.66,43.66,0,0,0-5.76-21.72A60.1,60.1,0,0,0,220,112v-8A61.5,61.5,0,0,0,212.62,75.17ZM196,112a36,36,0,0,1-36,36H112a36,36,0,0,1-36-36v-8a37.87,37.87,0,0,1,6.13-20.12,11.65,11.65,0,0,0,1.58-11.49,39.9,39.9,0,0,1-.4-27.72,39.87,39.87,0,0,1,26.41,17.8A12,12,0,0,0,119.82,68h32.35a12,12,0,0,0,10.11-5.53,39.84,39.84,0,0,1,26.41-17.8,39.9,39.9,0,0,1-.4,27.72,12,12,0,0,0,1.61,11.53A37.85,37.85,0,0,1,196,104Z`}))],[`duotone`,P.createElement(P.Fragment,null,P.createElement(`path`,{d:`M208,104v8a48,48,0,0,1-48,48H136a32,32,0,0,1,32,32v40H104V192a32,32,0,0,1,32-32H112a48,48,0,0,1-48-48v-8a49.28,49.28,0,0,1,8.51-27.3A51.92,51.92,0,0,1,76,32a52,52,0,0,1,43.83,24h32.34A52,52,0,0,1,196,32a51.92,51.92,0,0,1,3.49,44.7A49.28,49.28,0,0,1,208,104Z`,opacity:`0.2`}),P.createElement(`path`,{d:`M208.3,75.68A59.74,59.74,0,0,0,202.93,28,8,8,0,0,0,196,24a59.75,59.75,0,0,0-48,24H124A59.75,59.75,0,0,0,76,24a8,8,0,0,0-6.93,4,59.78,59.78,0,0,0-5.38,47.68A58.14,58.14,0,0,0,56,104v8a56.06,56.06,0,0,0,48.44,55.47A39.8,39.8,0,0,0,96,192v8H72a24,24,0,0,1-24-24A40,40,0,0,0,8,136a8,8,0,0,0,0,16,24,24,0,0,1,24,24,40,40,0,0,0,40,40H96v16a8,8,0,0,0,16,0V192a24,24,0,0,1,48,0v40a8,8,0,0,0,16,0V192a39.8,39.8,0,0,0-8.44-24.53A56.06,56.06,0,0,0,216,112v-8A58,58,0,0,0,208.3,75.68ZM200,112a40,40,0,0,1-40,40H112a40,40,0,0,1-40-40v-8a41.74,41.74,0,0,1,6.9-22.48A8,8,0,0,0,80,73.83a43.81,43.81,0,0,1,.79-33.58,43.88,43.88,0,0,1,32.32,20.06A8,8,0,0,0,119.82,64h32.35a8,8,0,0,0,6.74-3.69,43.87,43.87,0,0,1,32.32-20.06A43.81,43.81,0,0,1,192,73.83a8.09,8.09,0,0,0,1,7.65A41.76,41.76,0,0,1,200,104Z`}))],[`fill`,P.createElement(P.Fragment,null,P.createElement(`path`,{d:`M216,104v8a56.06,56.06,0,0,1-48.44,55.47A39.8,39.8,0,0,1,176,192v40a8,8,0,0,1-8,8H104a8,8,0,0,1-8-8V216H72a40,40,0,0,1-40-40A24,24,0,0,0,8,152a8,8,0,0,1,0-16,40,40,0,0,1,40,40,24,24,0,0,0,24,24H96v-8a39.8,39.8,0,0,1,8.44-24.53A56.06,56.06,0,0,1,56,112v-8a58.14,58.14,0,0,1,7.69-28.32A59.78,59.78,0,0,1,69.07,28,8,8,0,0,1,76,24a59.75,59.75,0,0,1,48,24h24a59.75,59.75,0,0,1,48-24,8,8,0,0,1,6.93,4,59.74,59.74,0,0,1,5.37,47.68A58,58,0,0,1,216,104Z`}))],[`light`,P.createElement(P.Fragment,null,P.createElement(`path`,{d:`M206.13,75.92A57.79,57.79,0,0,0,201.2,29a6,6,0,0,0-5.2-3,57.77,57.77,0,0,0-47,24H123A57.77,57.77,0,0,0,76,26a6,6,0,0,0-5.2,3,57.79,57.79,0,0,0-4.93,46.92A55.88,55.88,0,0,0,58,104v8a54.06,54.06,0,0,0,50.45,53.87A37.85,37.85,0,0,0,98,192v10H72a26,26,0,0,1-26-26A38,38,0,0,0,8,138a6,6,0,0,0,0,12,26,26,0,0,1,26,26,38,38,0,0,0,38,38H98v18a6,6,0,0,0,12,0V192a26,26,0,0,1,52,0v40a6,6,0,0,0,12,0V192a37.85,37.85,0,0,0-10.45-26.13A54.06,54.06,0,0,0,214,112v-8A55.88,55.88,0,0,0,206.13,75.92ZM202,112a42,42,0,0,1-42,42H112a42,42,0,0,1-42-42v-8a43.86,43.86,0,0,1,7.3-23.69,6,6,0,0,0,.81-5.76,45.85,45.85,0,0,1,1.43-36.42,45.85,45.85,0,0,1,35.23,21.1A6,6,0,0,0,119.83,62h32.34a6,6,0,0,0,5.06-2.76,45.83,45.83,0,0,1,35.23-21.11,45.85,45.85,0,0,1,1.43,36.42,6,6,0,0,0,.79,5.74A43.78,43.78,0,0,1,202,104Z`}))],[`regular`,P.createElement(P.Fragment,null,P.createElement(`path`,{d:`M208.31,75.68A59.78,59.78,0,0,0,202.93,28,8,8,0,0,0,196,24a59.75,59.75,0,0,0-48,24H124A59.75,59.75,0,0,0,76,24a8,8,0,0,0-6.93,4,59.78,59.78,0,0,0-5.38,47.68A58.14,58.14,0,0,0,56,104v8a56.06,56.06,0,0,0,48.44,55.47A39.8,39.8,0,0,0,96,192v8H72a24,24,0,0,1-24-24A40,40,0,0,0,8,136a8,8,0,0,0,0,16,24,24,0,0,1,24,24,40,40,0,0,0,40,40H96v16a8,8,0,0,0,16,0V192a24,24,0,0,1,48,0v40a8,8,0,0,0,16,0V192a39.8,39.8,0,0,0-8.44-24.53A56.06,56.06,0,0,0,216,112v-8A58.14,58.14,0,0,0,208.31,75.68ZM200,112a40,40,0,0,1-40,40H112a40,40,0,0,1-40-40v-8a41.74,41.74,0,0,1,6.9-22.48A8,8,0,0,0,80,73.83a43.81,43.81,0,0,1,.79-33.58,43.88,43.88,0,0,1,32.32,20.06A8,8,0,0,0,119.82,64h32.35a8,8,0,0,0,6.74-3.69,43.87,43.87,0,0,1,32.32-20.06A43.81,43.81,0,0,1,192,73.83a8.09,8.09,0,0,0,1,7.65A41.72,41.72,0,0,1,200,104Z`}))],[`thin`,P.createElement(P.Fragment,null,P.createElement(`path`,{d:`M203.94,76.16A55.73,55.73,0,0,0,199.46,30,4,4,0,0,0,196,28a55.78,55.78,0,0,0-46,24H122A55.78,55.78,0,0,0,76,28a4,4,0,0,0-3.46,2,55.73,55.73,0,0,0-4.48,46.16A53.78,53.78,0,0,0,60,104v8a52.06,52.06,0,0,0,52,52h1.41A36,36,0,0,0,100,192v12H72a28,28,0,0,1-28-28A36,36,0,0,0,8,140a4,4,0,0,0,0,8,28,28,0,0,1,28,28,36,36,0,0,0,36,36h28v20a4,4,0,0,0,8,0V192a28,28,0,0,1,56,0v40a4,4,0,0,0,8,0V192a36,36,0,0,0-13.41-28H160a52.06,52.06,0,0,0,52-52v-8A53.78,53.78,0,0,0,203.94,76.16ZM204,112a44.05,44.05,0,0,1-44,44H112a44.05,44.05,0,0,1-44-44v-8a45.76,45.76,0,0,1,7.71-24.89,4,4,0,0,0,.53-3.84,47.82,47.82,0,0,1,2.1-39.21,47.8,47.8,0,0,1,38.12,22.1A4,4,0,0,0,119.83,60h32.34a4,4,0,0,0,3.37-1.84,47.8,47.8,0,0,1,38.12-22.1,47.82,47.82,0,0,1,2.1,39.21,4,4,0,0,0,.53,3.83A45.85,45.85,0,0,1,204,104Z`}))]]),mE=new Map([[`bold`,P.createElement(P.Fragment,null,P.createElement(`path`,{d:`M128,20A108,108,0,1,0,236,128,108.12,108.12,0,0,0,128,20Zm84,108a83.64,83.64,0,0,1-4.47,27L167,130a19.65,19.65,0,0,0-7.8-2.78l-22.82-3.08A20.14,20.14,0,0,0,117.72,132h-4.07l-2.71-5.6a19.88,19.88,0,0,0-13.8-10.84L94.46,115l4-7h14.39a20,20,0,0,0,9.66-2.49l12.25-6.76a20.57,20.57,0,0,0,3.74-2.68l26.92-24.33A20,20,0,0,0,172,56.49,84,84,0,0,1,212,128ZM140.76,45l6.2,11.1L122.75,78l-10.93,6H96.14A20.05,20.05,0,0,0,78.78,94.06l-4.49,7.85L67.68,84.28l9.91-23.42A83.91,83.91,0,0,1,140.76,45ZM44,128a83.52,83.52,0,0,1,4.4-26.77l7.74,20.65a19.89,19.89,0,0,0,14.52,12.53l19.53,4.2,3,6.1a20.11,20.11,0,0,0,13.55,10.77l-5,11.12a20,20,0,0,0,3.58,21.71l.21.22,18.16,18.7-.89,4.59A84.09,84.09,0,0,1,44,128Zm103.65,81.66a20.11,20.11,0,0,0-5-17.3l-.21-.22-17.72-18.25,11.37-25.52,19,2.56,41.43,25.48A84.2,84.2,0,0,1,147.65,209.66Z`}))],[`duotone`,P.createElement(P.Fragment,null,P.createElement(`path`,{d:`M213.09,172.48a96,96,0,0,1-80.41,51.41l3.17-16.44a8,8,0,0,0-2-6.95l-19.74-20.33a8,8,0,0,1-1.44-8.69l13.7-30.74a8,8,0,0,1,8.38-4.67l22.82,3.08a8.11,8.11,0,0,1,3.12,1.11ZM116.71,95,129,88.24a7.46,7.46,0,0,0,1.5-1.07l26.91-24.33A8,8,0,0,0,159,53l-10.5-18.81A96.62,96.62,0,0,0,128,32,95.61,95.61,0,0,0,67.78,53.23L56,81.08A8,8,0,0,0,55.88,87l11.5,30.67a8,8,0,0,0,5.81,5l2.69.58L89.2,100a8,8,0,0,1,6.94-4h16.71A7.9,7.9,0,0,0,116.71,95Z`,opacity:`0.2`}),P.createElement(`path`,{d:`M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm88,104a87.62,87.62,0,0,1-6.4,32.94l-44.7-27.49a15.92,15.92,0,0,0-6.24-2.23l-22.82-3.08a16.11,16.11,0,0,0-16,7.86h-8.72l-3.8-7.86a15.91,15.91,0,0,0-11-8.67l-8-1.73L96.14,104h16.71a16.06,16.06,0,0,0,7.73-2l12.25-6.76a16.62,16.62,0,0,0,3-2.14l26.91-24.34A15.93,15.93,0,0,0,166,49.1l-.36-.65A88.11,88.11,0,0,1,216,128ZM143.31,41.34,152,56.9,125.09,81.24,112.85,88H96.14a16,16,0,0,0-13.88,8l-8.73,15.23L63.38,84.19,74.32,58.32a87.87,87.87,0,0,1,69-17ZM40,128a87.53,87.53,0,0,1,8.54-37.8l11.34,30.27a16,16,0,0,0,11.62,10l21.43,4.61L96.74,143a16.09,16.09,0,0,0,14.4,9h1.48l-7.23,16.23a16,16,0,0,0,2.86,17.37l.14.14L128,205.94l-1.94,10A88.11,88.11,0,0,1,40,128Zm102.58,86.78,1.13-5.81a16.09,16.09,0,0,0-4-13.9,1.85,1.85,0,0,1-.14-.14L120,174.74,133.7,144l22.82,3.08,45.72,28.12A88.18,88.18,0,0,1,142.58,214.78Z`}))],[`fill`,P.createElement(P.Fragment,null,P.createElement(`path`,{d:`M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm88,104a87.62,87.62,0,0,1-6.4,32.94l-44.7-27.49a15.92,15.92,0,0,0-6.24-2.23l-22.82-3.08a16.11,16.11,0,0,0-16,7.86h-8.72l-3.8-7.86a15.91,15.91,0,0,0-11-8.67l-8-1.73L96.14,104h16.71a16.06,16.06,0,0,0,7.73-2l12.25-6.76a16.62,16.62,0,0,0,3-2.14l26.91-24.34A15.93,15.93,0,0,0,166,49.1l-.36-.65A88.11,88.11,0,0,1,216,128ZM40,128a87.53,87.53,0,0,1,8.54-37.8l11.34,30.27a16,16,0,0,0,11.62,10l21.43,4.61L96.74,143a16.09,16.09,0,0,0,14.4,9h1.48l-7.23,16.23a16,16,0,0,0,2.86,17.37l.14.14L128,205.94l-1.94,10A88.11,88.11,0,0,1,40,128Z`}))],[`light`,P.createElement(P.Fragment,null,P.createElement(`path`,{d:`M128,26A102,102,0,1,0,230,128,102.12,102.12,0,0,0,128,26Zm90,102a89.55,89.55,0,0,1-7.46,35.86l-46.69-28.71a13.94,13.94,0,0,0-5.46-2l-22.82-3.07A14.06,14.06,0,0,0,121.06,138h-9.92a2,2,0,0,1-1.8-1.13l-3.8-7.86a13.94,13.94,0,0,0-9.66-7.59l-10.71-2.3L94.4,103a2,2,0,0,1,1.74-1h16.71a13.9,13.9,0,0,0,6.76-1.75l12.25-6.75a14.73,14.73,0,0,0,2.62-1.88l26.91-24.33a13.93,13.93,0,0,0,2.83-17.21L161,44.25A90.16,90.16,0,0,1,218,128ZM144.6,39.54l9.15,16.39a2,2,0,0,1-.41,2.46L126.43,82.72a1.84,1.84,0,0,1-.37.27l-12.25,6.76a2,2,0,0,1-1,.25H96.14A14,14,0,0,0,84,97L73.18,115.91a2,2,0,0,1-.19-.35L61.5,84.89a2,2,0,0,1,0-1.48L72.68,57.06A89.9,89.9,0,0,1,144.6,39.54ZM38,128A89.52,89.52,0,0,1,49.38,84.23a13.85,13.85,0,0,0,.89,4.87l11.49,30.67a13.94,13.94,0,0,0,10.16,8.78l21.44,4.6a2,2,0,0,1,1.38,1.09l3.8,7.86a14.07,14.07,0,0,0,12.6,7.9h4.56l-8.49,19a14,14,0,0,0,2.51,15.2l.1.11,19.68,20.26a2,2,0,0,1,.46,1.7L127.7,218A90.1,90.1,0,0,1,38,128Zm102.08,89.19,1.67-8.6a14.07,14.07,0,0,0-3.47-12.16l-.1-.11L118.5,176.06a2,2,0,0,1-.33-2.14l13.7-30.73A2,2,0,0,1,134,142l22.82,3.08a2,2,0,0,1,.78.27L205,174.55A90.18,90.18,0,0,1,140.08,217.19Z`}))],[`regular`,P.createElement(P.Fragment,null,P.createElement(`path`,{d:`M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm88,104a87.62,87.62,0,0,1-6.4,32.94l-44.7-27.49a15.92,15.92,0,0,0-6.24-2.23l-22.82-3.08a16.11,16.11,0,0,0-16,7.86h-8.72l-3.8-7.86a15.91,15.91,0,0,0-11-8.67l-8-1.73L96.14,104h16.71a16.06,16.06,0,0,0,7.73-2l12.25-6.76a16.62,16.62,0,0,0,3-2.14l26.91-24.34A15.93,15.93,0,0,0,166,49.1l-.36-.65A88.11,88.11,0,0,1,216,128ZM143.31,41.34,152,56.9,125.09,81.24,112.85,88H96.14a16,16,0,0,0-13.88,8l-8.73,15.23L63.38,84.19,74.32,58.32a87.87,87.87,0,0,1,69-17ZM40,128a87.53,87.53,0,0,1,8.54-37.8l11.34,30.27a16,16,0,0,0,11.62,10l21.43,4.61L96.74,143a16.09,16.09,0,0,0,14.4,9h1.48l-7.23,16.23a16,16,0,0,0,2.86,17.37l.14.14L128,205.94l-1.94,10A88.11,88.11,0,0,1,40,128Zm102.58,86.78,1.13-5.81a16.09,16.09,0,0,0-4-13.9,1.85,1.85,0,0,1-.14-.14L120,174.74,133.7,144l22.82,3.08,45.72,28.12A88.18,88.18,0,0,1,142.58,214.78Z`}))],[`thin`,P.createElement(P.Fragment,null,P.createElement(`path`,{d:`M128,28A100,100,0,1,0,228,128,100.11,100.11,0,0,0,128,28Zm92,100a91.44,91.44,0,0,1-8.58,38.76L162.8,136.85a12.07,12.07,0,0,0-4.68-1.67l-22.82-3.07a12,12,0,0,0-12.56,7l-.4.88h-11.2a4,4,0,0,1-3.6-2.26l-3.8-7.86a11.93,11.93,0,0,0-8.28-6.5L82.07,120.5,92.67,102a4,4,0,0,1,3.47-2h16.71a12,12,0,0,0,5.8-1.5l12.24-6.76a11.79,11.79,0,0,0,2.25-1.6L160.05,65.8a12,12,0,0,0,2.43-14.75l-5.86-10.49A92.17,92.17,0,0,1,220,128ZM145.89,37.75l9.6,17.2a4,4,0,0,1-.81,4.92L127.77,84.21a4.41,4.41,0,0,1-.75.53L114.78,91.5a4,4,0,0,1-1.93.5H96.14a12,12,0,0,0-10.41,6l-11.86,20.7a4,4,0,0,1-2.75-2.47L59.63,85.6a4,4,0,0,1,.06-3L71,55.81A91.51,91.51,0,0,1,128,36,92.53,92.53,0,0,1,145.89,37.75ZM36,128A91.52,91.52,0,0,1,56,70.77l-3.71,8.75a12,12,0,0,0-.18,8.88l11.49,30.67a11.93,11.93,0,0,0,8.72,7.52l21.43,4.61a4,4,0,0,1,2.76,2.17l3.8,7.86a12.07,12.07,0,0,0,10.8,6.77h7.64L109,169.85A12,12,0,0,0,111.26,183l19.68,20.26a4,4,0,0,1,1,3.47L129.36,220,128,220A92.1,92.1,0,0,1,36,128Zm101.6,91.5,2.18-11.29a12.08,12.08,0,0,0-3-10.49l-19.68-20.26a4,4,0,0,1-.71-4.35l13.7-30.74a4,4,0,0,1,4.18-2.33l22.82,3.07a4.12,4.12,0,0,1,1.56.56l49.11,30.2A92.12,92.12,0,0,1,137.6,219.5Z`}))]]),hE=new Map([[`bold`,P.createElement(P.Fragment,null,P.createElement(`path`,{d:`M216,36H40A20,20,0,0,0,20,56V200a20,20,0,0,0,20,20H216a20,20,0,0,0,20-20V56A20,20,0,0,0,216,36Zm-4,24V92H44V60ZM44,116H92v80H44Zm72,80V116h96v80Z`}))],[`duotone`,P.createElement(P.Fragment,null,P.createElement(`path`,{d:`M104,104V208H40a8,8,0,0,1-8-8V104Z`,opacity:`0.2`}),P.createElement(`path`,{d:`M216,40H40A16,16,0,0,0,24,56V200a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A16,16,0,0,0,216,40Zm0,16V96H40V56ZM40,112H96v88H40Zm176,88H112V112H216v88Z`}))],[`fill`,P.createElement(P.Fragment,null,P.createElement(`path`,{d:`M216,40H40A16,16,0,0,0,24,56V200a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A16,16,0,0,0,216,40ZM40,56H216V96H40ZM216,200H112V112H216v88Z`}))],[`light`,P.createElement(P.Fragment,null,P.createElement(`path`,{d:`M216,42H40A14,14,0,0,0,26,56V200a14,14,0,0,0,14,14H216a14,14,0,0,0,14-14V56A14,14,0,0,0,216,42ZM40,54H216a2,2,0,0,1,2,2V98H38V56A2,2,0,0,1,40,54ZM38,200V110H98v92H40A2,2,0,0,1,38,200Zm178,2H110V110H218v90A2,2,0,0,1,216,202Z`}))],[`regular`,P.createElement(P.Fragment,null,P.createElement(`path`,{d:`M216,40H40A16,16,0,0,0,24,56V200a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A16,16,0,0,0,216,40Zm0,16V96H40V56ZM40,112H96v88H40Zm176,88H112V112H216v88Z`}))],[`thin`,P.createElement(P.Fragment,null,P.createElement(`path`,{d:`M216,44H40A12,12,0,0,0,28,56V200a12,12,0,0,0,12,12H216a12,12,0,0,0,12-12V56A12,12,0,0,0,216,44ZM40,52H216a4,4,0,0,1,4,4v44H36V56A4,4,0,0,1,40,52ZM36,200V108h64v96H40A4,4,0,0,1,36,200Zm180,4H108V108H220v92A4,4,0,0,1,216,204Z`}))]]),gE=new Map([[`bold`,P.createElement(P.Fragment,null,P.createElement(`path`,{d:`M232.49,215.51,185,168a92.12,92.12,0,1,0-17,17l47.53,47.54a12,12,0,0,0,17-17ZM44,112a68,68,0,1,1,68,68A68.07,68.07,0,0,1,44,112Z`}))],[`duotone`,P.createElement(P.Fragment,null,P.createElement(`path`,{d:`M192,112a80,80,0,1,1-80-80A80,80,0,0,1,192,112Z`,opacity:`0.2`}),P.createElement(`path`,{d:`M229.66,218.34,179.6,168.28a88.21,88.21,0,1,0-11.32,11.31l50.06,50.07a8,8,0,0,0,11.32-11.32ZM40,112a72,72,0,1,1,72,72A72.08,72.08,0,0,1,40,112Z`}))],[`fill`,P.createElement(P.Fragment,null,P.createElement(`path`,{d:`M168,112a56,56,0,1,1-56-56A56,56,0,0,1,168,112Zm61.66,117.66a8,8,0,0,1-11.32,0l-50.06-50.07a88,88,0,1,1,11.32-11.31l50.06,50.06A8,8,0,0,1,229.66,229.66ZM112,184a72,72,0,1,0-72-72A72.08,72.08,0,0,0,112,184Z`}))],[`light`,P.createElement(P.Fragment,null,P.createElement(`path`,{d:`M228.24,219.76l-51.38-51.38a86.15,86.15,0,1,0-8.48,8.48l51.38,51.38a6,6,0,0,0,8.48-8.48ZM38,112a74,74,0,1,1,74,74A74.09,74.09,0,0,1,38,112Z`}))],[`regular`,P.createElement(P.Fragment,null,P.createElement(`path`,{d:`M229.66,218.34l-50.07-50.06a88.11,88.11,0,1,0-11.31,11.31l50.06,50.07a8,8,0,0,0,11.32-11.32ZM40,112a72,72,0,1,1,72,72A72.08,72.08,0,0,1,40,112Z`}))],[`thin`,P.createElement(P.Fragment,null,P.createElement(`path`,{d:`M226.83,221.17l-52.7-52.7a84.1,84.1,0,1,0-5.66,5.66l52.7,52.7a4,4,0,0,0,5.66-5.66ZM36,112a76,76,0,1,1,76,76A76.08,76.08,0,0,1,36,112Z`}))]]),_E=new Map([[`bold`,P.createElement(P.Fragment,null,P.createElement(`path`,{d:`M236.37,139.4a12,12,0,0,0-12-3A84.07,84.07,0,0,1,119.6,31.59a12,12,0,0,0-15-15A108.86,108.86,0,0,0,49.69,55.07,108,108,0,0,0,136,228a107.09,107.09,0,0,0,64.93-21.69,108.86,108.86,0,0,0,38.44-54.94A12,12,0,0,0,236.37,139.4Zm-49.88,47.74A84,84,0,0,1,68.86,69.51,84.93,84.93,0,0,1,92.27,48.29Q92,52.13,92,56A108.12,108.12,0,0,0,200,164q3.87,0,7.71-.27A84.79,84.79,0,0,1,186.49,187.14Z`}))],[`duotone`,P.createElement(P.Fragment,null,P.createElement(`path`,{d:`M227.89,147.89A96,96,0,1,1,108.11,28.11,96.09,96.09,0,0,0,227.89,147.89Z`,opacity:`0.2`}),P.createElement(`path`,{d:`M233.54,142.23a8,8,0,0,0-8-2,88.08,88.08,0,0,1-109.8-109.8,8,8,0,0,0-10-10,104.84,104.84,0,0,0-52.91,37A104,104,0,0,0,136,224a103.09,103.09,0,0,0,62.52-20.88,104.84,104.84,0,0,0,37-52.91A8,8,0,0,0,233.54,142.23ZM188.9,190.34A88,88,0,0,1,65.66,67.11a89,89,0,0,1,31.4-26A106,106,0,0,0,96,56,104.11,104.11,0,0,0,200,160a106,106,0,0,0,14.92-1.06A89,89,0,0,1,188.9,190.34Z`}))],[`fill`,P.createElement(P.Fragment,null,P.createElement(`path`,{d:`M235.54,150.21a104.84,104.84,0,0,1-37,52.91A104,104,0,0,1,32,120,103.09,103.09,0,0,1,52.88,57.48a104.84,104.84,0,0,1,52.91-37,8,8,0,0,1,10,10,88.08,88.08,0,0,0,109.8,109.8,8,8,0,0,1,10,10Z`}))],[`light`,P.createElement(P.Fragment,null,P.createElement(`path`,{d:`M232.13,143.64a6,6,0,0,0-6-1.49A90.07,90.07,0,0,1,113.86,29.85a6,6,0,0,0-7.49-7.48A102.88,102.88,0,0,0,54.48,58.68,102,102,0,0,0,197.32,201.52a102.88,102.88,0,0,0,36.31-51.89A6,6,0,0,0,232.13,143.64Zm-42,48.29a90,90,0,0,1-126-126A90.9,90.9,0,0,1,99.65,37.66,102.06,102.06,0,0,0,218.34,156.35,90.9,90.9,0,0,1,190.1,191.93Z`}))],[`regular`,P.createElement(P.Fragment,null,P.createElement(`path`,{d:`M233.54,142.23a8,8,0,0,0-8-2,88.08,88.08,0,0,1-109.8-109.8,8,8,0,0,0-10-10,104.84,104.84,0,0,0-52.91,37A104,104,0,0,0,136,224a103.09,103.09,0,0,0,62.52-20.88,104.84,104.84,0,0,0,37-52.91A8,8,0,0,0,233.54,142.23ZM188.9,190.34A88,88,0,0,1,65.66,67.11a89,89,0,0,1,31.4-26A106,106,0,0,0,96,56,104.11,104.11,0,0,0,200,160a106,106,0,0,0,14.92-1.06A89,89,0,0,1,188.9,190.34Z`}))],[`thin`,P.createElement(P.Fragment,null,P.createElement(`path`,{d:`M230.72,145.06a4,4,0,0,0-4-1A92.08,92.08,0,0,1,111.94,29.27a4,4,0,0,0-5-5A100.78,100.78,0,0,0,56.08,59.88a100,100,0,0,0,140,140,100.78,100.78,0,0,0,35.59-50.87A4,4,0,0,0,230.72,145.06ZM191.3,193.53A92,92,0,0,1,62.47,64.7a93,93,0,0,1,39.88-30.35,100.09,100.09,0,0,0,119.3,119.3A93,93,0,0,1,191.3,193.53Z`}))]]),vE=new Map([[`bold`,P.createElement(P.Fragment,null,P.createElement(`path`,{d:`M230.14,25.86a20,20,0,0,0-19.57-5.11l-.22.07L18.44,79a20,20,0,0,0-3.06,37.25L99,157l40.71,83.65a19.81,19.81,0,0,0,18,11.38c.57,0,1.15,0,1.73-.07A19.82,19.82,0,0,0,177,237.56L235.18,45.65a1.42,1.42,0,0,0,.07-.22A20,20,0,0,0,230.14,25.86ZM156.91,221.07l-34.37-70.64,46-45.95a12,12,0,0,0-17-17l-46,46L34.93,99.09,210,46Z`}))],[`duotone`,P.createElement(P.Fragment,null,P.createElement(`path`,{d:`M223.69,42.18l-58.22,192a8,8,0,0,1-14.92,1.25L108,148,20.58,105.45a8,8,0,0,1,1.25-14.92l192-58.22A8,8,0,0,1,223.69,42.18Z`,opacity:`0.2`}),P.createElement(`path`,{d:`M227.32,28.68a16,16,0,0,0-15.66-4.08l-.15,0L19.57,82.84a16,16,0,0,0-2.49,29.8L102,154l41.3,84.87A15.86,15.86,0,0,0,157.74,248q.69,0,1.38-.06a15.88,15.88,0,0,0,14-11.51l58.2-191.94c0-.05,0-.1,0-.15A16,16,0,0,0,227.32,28.68ZM157.83,231.85l-.05.14,0-.07-40.06-82.3,48-48a8,8,0,0,0-11.31-11.31l-48,48L24.08,98.25l-.07,0,.14,0L216,40Z`}))],[`fill`,P.createElement(P.Fragment,null,P.createElement(`path`,{d:`M231.4,44.34s0,.1,0,.15l-58.2,191.94a15.88,15.88,0,0,1-14,11.51q-.69.06-1.38.06a15.86,15.86,0,0,1-14.42-9.15L107,164.15a4,4,0,0,1,.77-4.58l57.92-57.92a8,8,0,0,0-11.31-11.31L96.43,148.26a4,4,0,0,1-4.58.77L17.08,112.64a16,16,0,0,1,2.49-29.8l191.94-58.2.15,0A16,16,0,0,1,231.4,44.34Z`}))],[`light`,P.createElement(P.Fragment,null,P.createElement(`path`,{d:`M225.88,30.12a13.83,13.83,0,0,0-13.7-3.58l-.11,0L20.14,84.77A14,14,0,0,0,18,110.85l85.56,41.64L145.12,238a13.87,13.87,0,0,0,12.61,8c.4,0,.81,0,1.21-.05a13.9,13.9,0,0,0,12.29-10.09l58.2-191.93,0-.11A13.83,13.83,0,0,0,225.88,30.12Zm-8,10.4L159.73,232.43l0,.11a2,2,0,0,1-3.76.26l-40.68-83.58,49-49a6,6,0,1,0-8.49-8.49l-49,49L23.15,100a2,2,0,0,1,.31-3.74l.11,0L215.48,38.08a1.94,1.94,0,0,1,1.92.52A2,2,0,0,1,217.92,40.52Z`}))],[`regular`,P.createElement(P.Fragment,null,P.createElement(`path`,{d:`M227.32,28.68a16,16,0,0,0-15.66-4.08l-.15,0L19.57,82.84a16,16,0,0,0-2.49,29.8L102,154l41.3,84.87A15.86,15.86,0,0,0,157.74,248q.69,0,1.38-.06a15.88,15.88,0,0,0,14-11.51l58.2-191.94c0-.05,0-.1,0-.15A16,16,0,0,0,227.32,28.68ZM157.83,231.85l-.05.14,0-.07-40.06-82.3,48-48a8,8,0,0,0-11.31-11.31l-48,48L24.08,98.25l-.07,0,.14,0L216,40Z`}))],[`thin`,P.createElement(P.Fragment,null,P.createElement(`path`,{d:`M224.47,31.52a11.87,11.87,0,0,0-11.82-3L20.74,86.67a12,12,0,0,0-1.91,22.38L105,151l41.92,86.15A11.88,11.88,0,0,0,157.74,244c.34,0,.69,0,1,0a11.89,11.89,0,0,0,10.52-8.63l58.21-192,0-.08A11.85,11.85,0,0,0,224.47,31.52Zm-4.62,9.54-58.23,192a4,4,0,0,1-7.48.59l-41.3-84.86,50-50a4,4,0,1,0-5.66-5.66l-50,50-84.9-41.31a3.88,3.88,0,0,1-2.27-4,3.93,3.93,0,0,1,3-3.54L214.9,36.16A3.93,3.93,0,0,1,216,36a4,4,0,0,1,2.79,1.19A3.93,3.93,0,0,1,219.85,41.06Z`}))]]),yE=new Map([[`bold`,P.createElement(P.Fragment,null,P.createElement(`path`,{d:`M230.14,70.54,185.46,25.85a20,20,0,0,0-28.29,0L33.86,149.17A19.85,19.85,0,0,0,28,163.31V208a20,20,0,0,0,20,20H92.69a19.86,19.86,0,0,0,14.14-5.86L230.14,98.82a20,20,0,0,0,0-28.28ZM91,204H52V165l84-84,39,39ZM192,103,153,64l18.34-18.34,39,39Z`}))],[`duotone`,P.createElement(P.Fragment,null,P.createElement(`path`,{d:`M221.66,90.34,192,120,136,64l29.66-29.66a8,8,0,0,1,11.31,0L221.66,79A8,8,0,0,1,221.66,90.34Z`,opacity:`0.2`}),P.createElement(`path`,{d:`M227.31,73.37,182.63,28.68a16,16,0,0,0-22.63,0L36.69,152A15.86,15.86,0,0,0,32,163.31V208a16,16,0,0,0,16,16H92.69A15.86,15.86,0,0,0,104,219.31L227.31,96a16,16,0,0,0,0-22.63ZM92.69,208H48V163.31l88-88L180.69,120ZM192,108.68,147.31,64l24-24L216,84.68Z`}))],[`fill`,P.createElement(P.Fragment,null,P.createElement(`path`,{d:`M227.31,73.37,182.63,28.68a16,16,0,0,0-22.63,0L36.69,152A15.86,15.86,0,0,0,32,163.31V208a16,16,0,0,0,16,16H92.69A15.86,15.86,0,0,0,104,219.31L227.31,96a16,16,0,0,0,0-22.63ZM192,108.68,147.31,64l24-24L216,84.68Z`}))],[`light`,P.createElement(P.Fragment,null,P.createElement(`path`,{d:`M225.9,74.78,181.21,30.09a14,14,0,0,0-19.8,0L38.1,153.41a13.94,13.94,0,0,0-4.1,9.9V208a14,14,0,0,0,14,14H92.69a13.94,13.94,0,0,0,9.9-4.1L225.9,94.58a14,14,0,0,0,0-19.8ZM94.1,209.41a2,2,0,0,1-1.41.59H48a2,2,0,0,1-2-2V163.31a2,2,0,0,1,.59-1.41L136,72.48,183.51,120ZM217.41,86.1,192,111.51,144.49,64,169.9,38.58a2,2,0,0,1,2.83,0l44.68,44.69a2,2,0,0,1,0,2.83Z`}))],[`regular`,P.createElement(P.Fragment,null,P.createElement(`path`,{d:`M227.31,73.37,182.63,28.68a16,16,0,0,0-22.63,0L36.69,152A15.86,15.86,0,0,0,32,163.31V208a16,16,0,0,0,16,16H92.69A15.86,15.86,0,0,0,104,219.31L227.31,96a16,16,0,0,0,0-22.63ZM92.69,208H48V163.31l88-88L180.69,120ZM192,108.68,147.31,64l24-24L216,84.68Z`}))],[`thin`,P.createElement(P.Fragment,null,P.createElement(`path`,{d:`M224.49,76.2,179.8,31.51a12,12,0,0,0-17,0L133.17,61.17h0L39.52,154.83A11.9,11.9,0,0,0,36,163.31V208a12,12,0,0,0,12,12H92.69a12,12,0,0,0,8.48-3.51L224.48,93.17a12,12,0,0,0,0-17Zm-129,134.63A4,4,0,0,1,92.69,212H48a4,4,0,0,1-4-4V163.31a4,4,0,0,1,1.17-2.83L136,69.65,186.34,120ZM218.83,87.51,192,114.34,141.66,64l26.82-26.83a4,4,0,0,1,5.66,0l44.69,44.68a4,4,0,0,1,0,5.66Z`}))]]),bE=new Map([[`bold`,P.createElement(P.Fragment,null,P.createElement(`path`,{d:`M228,128a12,12,0,0,1-12,12H140v76a12,12,0,0,1-24,0V140H40a12,12,0,0,1,0-24h76V40a12,12,0,0,1,24,0v76h76A12,12,0,0,1,228,128Z`}))],[`duotone`,P.createElement(P.Fragment,null,P.createElement(`path`,{d:`M216,56V200a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V56A16,16,0,0,1,56,40H200A16,16,0,0,1,216,56Z`,opacity:`0.2`}),P.createElement(`path`,{d:`M224,128a8,8,0,0,1-8,8H136v80a8,8,0,0,1-16,0V136H40a8,8,0,0,1,0-16h80V40a8,8,0,0,1,16,0v80h80A8,8,0,0,1,224,128Z`}))],[`fill`,P.createElement(P.Fragment,null,P.createElement(`path`,{d:`M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM184,136H136v48a8,8,0,0,1-16,0V136H72a8,8,0,0,1,0-16h48V72a8,8,0,0,1,16,0v48h48a8,8,0,0,1,0,16Z`}))],[`light`,P.createElement(P.Fragment,null,P.createElement(`path`,{d:`M222,128a6,6,0,0,1-6,6H134v82a6,6,0,0,1-12,0V134H40a6,6,0,0,1,0-12h82V40a6,6,0,0,1,12,0v82h82A6,6,0,0,1,222,128Z`}))],[`regular`,P.createElement(P.Fragment,null,P.createElement(`path`,{d:`M224,128a8,8,0,0,1-8,8H136v80a8,8,0,0,1-16,0V136H40a8,8,0,0,1,0-16h80V40a8,8,0,0,1,16,0v80h80A8,8,0,0,1,224,128Z`}))],[`thin`,P.createElement(P.Fragment,null,P.createElement(`path`,{d:`M220,128a4,4,0,0,1-4,4H132v84a4,4,0,0,1-8,0V132H40a4,4,0,0,1,0-8h84V40a4,4,0,0,1,8,0v84h84A4,4,0,0,1,220,128Z`}))]]),xE=new Map([[`bold`,P.createElement(P.Fragment,null,P.createElement(`path`,{d:`M124,216a12,12,0,0,1-12,12H48a12,12,0,0,1-12-12V40A12,12,0,0,1,48,28h64a12,12,0,0,1,0,24H60V204h52A12,12,0,0,1,124,216Zm108.49-96.49-40-40a12,12,0,0,0-17,17L195,116H112a12,12,0,0,0,0,24h83l-19.52,19.51a12,12,0,0,0,17,17l40-40A12,12,0,0,0,232.49,119.51Z`}))],[`duotone`,P.createElement(P.Fragment,null,P.createElement(`path`,{d:`M224,56V200a16,16,0,0,1-16,16H48V40H208A16,16,0,0,1,224,56Z`,opacity:`0.2`}),P.createElement(`path`,{d:`M120,216a8,8,0,0,1-8,8H48a8,8,0,0,1-8-8V40a8,8,0,0,1,8-8h64a8,8,0,0,1,0,16H56V208h56A8,8,0,0,1,120,216Zm109.66-93.66-40-40a8,8,0,0,0-11.32,11.32L204.69,120H112a8,8,0,0,0,0,16h92.69l-26.35,26.34a8,8,0,0,0,11.32,11.32l40-40A8,8,0,0,0,229.66,122.34Z`}))],[`fill`,P.createElement(P.Fragment,null,P.createElement(`path`,{d:`M120,216a8,8,0,0,1-8,8H48a8,8,0,0,1-8-8V40a8,8,0,0,1,8-8h64a8,8,0,0,1,0,16H56V208h56A8,8,0,0,1,120,216Zm109.66-93.66-40-40A8,8,0,0,0,176,88v32H112a8,8,0,0,0,0,16h64v32a8,8,0,0,0,13.66,5.66l40-40A8,8,0,0,0,229.66,122.34Z`}))],[`light`,P.createElement(P.Fragment,null,P.createElement(`path`,{d:`M118,216a6,6,0,0,1-6,6H48a6,6,0,0,1-6-6V40a6,6,0,0,1,6-6h64a6,6,0,0,1,0,12H54V210h58A6,6,0,0,1,118,216Zm110.24-92.24-40-40a6,6,0,0,0-8.48,8.48L209.51,122H112a6,6,0,0,0,0,12h97.51l-29.75,29.76a6,6,0,1,0,8.48,8.48l40-40A6,6,0,0,0,228.24,123.76Z`}))],[`regular`,P.createElement(P.Fragment,null,P.createElement(`path`,{d:`M120,216a8,8,0,0,1-8,8H48a8,8,0,0,1-8-8V40a8,8,0,0,1,8-8h64a8,8,0,0,1,0,16H56V208h56A8,8,0,0,1,120,216Zm109.66-93.66-40-40a8,8,0,0,0-11.32,11.32L204.69,120H112a8,8,0,0,0,0,16h92.69l-26.35,26.34a8,8,0,0,0,11.32,11.32l40-40A8,8,0,0,0,229.66,122.34Z`}))],[`thin`,P.createElement(P.Fragment,null,P.createElement(`path`,{d:`M116,216a4,4,0,0,1-4,4H48a4,4,0,0,1-4-4V40a4,4,0,0,1,4-4h64a4,4,0,0,1,0,8H52V212h60A4,4,0,0,1,116,216Zm110.83-90.83-40-40a4,4,0,0,0-5.66,5.66L214.34,124H112a4,4,0,0,0,0,8H214.34l-33.17,33.17a4,4,0,0,0,5.66,5.66l40-40A4,4,0,0,0,226.83,125.17Z`}))]]),SE=new Map([[`bold`,P.createElement(P.Fragment,null,P.createElement(`path`,{d:`M116,36V20a12,12,0,0,1,24,0V36a12,12,0,0,1-24,0Zm80,92a68,68,0,1,1-68-68A68.07,68.07,0,0,1,196,128Zm-24,0a44,44,0,1,0-44,44A44.05,44.05,0,0,0,172,128ZM51.51,68.49a12,12,0,1,0,17-17l-12-12a12,12,0,0,0-17,17Zm0,119-12,12a12,12,0,0,0,17,17l12-12a12,12,0,1,0-17-17ZM196,72a12,12,0,0,0,8.49-3.51l12-12a12,12,0,0,0-17-17l-12,12A12,12,0,0,0,196,72Zm8.49,115.51a12,12,0,0,0-17,17l12,12a12,12,0,0,0,17-17ZM48,128a12,12,0,0,0-12-12H20a12,12,0,0,0,0,24H36A12,12,0,0,0,48,128Zm80,80a12,12,0,0,0-12,12v16a12,12,0,0,0,24,0V220A12,12,0,0,0,128,208Zm108-92H220a12,12,0,0,0,0,24h16a12,12,0,0,0,0-24Z`}))],[`duotone`,P.createElement(P.Fragment,null,P.createElement(`path`,{d:`M184,128a56,56,0,1,1-56-56A56,56,0,0,1,184,128Z`,opacity:`0.2`}),P.createElement(`path`,{d:`M120,40V16a8,8,0,0,1,16,0V40a8,8,0,0,1-16,0Zm72,88a64,64,0,1,1-64-64A64.07,64.07,0,0,1,192,128Zm-16,0a48,48,0,1,0-48,48A48.05,48.05,0,0,0,176,128ZM58.34,69.66A8,8,0,0,0,69.66,58.34l-16-16A8,8,0,0,0,42.34,53.66Zm0,116.68-16,16a8,8,0,0,0,11.32,11.32l16-16a8,8,0,0,0-11.32-11.32ZM192,72a8,8,0,0,0,5.66-2.34l16-16a8,8,0,0,0-11.32-11.32l-16,16A8,8,0,0,0,192,72Zm5.66,114.34a8,8,0,0,0-11.32,11.32l16,16a8,8,0,0,0,11.32-11.32ZM48,128a8,8,0,0,0-8-8H16a8,8,0,0,0,0,16H40A8,8,0,0,0,48,128Zm80,80a8,8,0,0,0-8,8v24a8,8,0,0,0,16,0V216A8,8,0,0,0,128,208Zm112-88H216a8,8,0,0,0,0,16h24a8,8,0,0,0,0-16Z`}))],[`fill`,P.createElement(P.Fragment,null,P.createElement(`path`,{d:`M120,40V16a8,8,0,0,1,16,0V40a8,8,0,0,1-16,0Zm8,24a64,64,0,1,0,64,64A64.07,64.07,0,0,0,128,64ZM58.34,69.66A8,8,0,0,0,69.66,58.34l-16-16A8,8,0,0,0,42.34,53.66Zm0,116.68-16,16a8,8,0,0,0,11.32,11.32l16-16a8,8,0,0,0-11.32-11.32ZM192,72a8,8,0,0,0,5.66-2.34l16-16a8,8,0,0,0-11.32-11.32l-16,16A8,8,0,0,0,192,72Zm5.66,114.34a8,8,0,0,0-11.32,11.32l16,16a8,8,0,0,0,11.32-11.32ZM48,128a8,8,0,0,0-8-8H16a8,8,0,0,0,0,16H40A8,8,0,0,0,48,128Zm80,80a8,8,0,0,0-8,8v24a8,8,0,0,0,16,0V216A8,8,0,0,0,128,208Zm112-88H216a8,8,0,0,0,0,16h24a8,8,0,0,0,0-16Z`}))],[`light`,P.createElement(P.Fragment,null,P.createElement(`path`,{d:`M122,40V16a6,6,0,0,1,12,0V40a6,6,0,0,1-12,0Zm68,88a62,62,0,1,1-62-62A62.07,62.07,0,0,1,190,128Zm-12,0a50,50,0,1,0-50,50A50.06,50.06,0,0,0,178,128ZM59.76,68.24a6,6,0,1,0,8.48-8.48l-16-16a6,6,0,0,0-8.48,8.48Zm0,119.52-16,16a6,6,0,1,0,8.48,8.48l16-16a6,6,0,1,0-8.48-8.48ZM192,70a6,6,0,0,0,4.24-1.76l16-16a6,6,0,0,0-8.48-8.48l-16,16A6,6,0,0,0,192,70Zm4.24,117.76a6,6,0,0,0-8.48,8.48l16,16a6,6,0,0,0,8.48-8.48ZM46,128a6,6,0,0,0-6-6H16a6,6,0,0,0,0,12H40A6,6,0,0,0,46,128Zm82,82a6,6,0,0,0-6,6v24a6,6,0,0,0,12,0V216A6,6,0,0,0,128,210Zm112-88H216a6,6,0,0,0,0,12h24a6,6,0,0,0,0-12Z`}))],[`regular`,P.createElement(P.Fragment,null,P.createElement(`path`,{d:`M120,40V16a8,8,0,0,1,16,0V40a8,8,0,0,1-16,0Zm72,88a64,64,0,1,1-64-64A64.07,64.07,0,0,1,192,128Zm-16,0a48,48,0,1,0-48,48A48.05,48.05,0,0,0,176,128ZM58.34,69.66A8,8,0,0,0,69.66,58.34l-16-16A8,8,0,0,0,42.34,53.66Zm0,116.68-16,16a8,8,0,0,0,11.32,11.32l16-16a8,8,0,0,0-11.32-11.32ZM192,72a8,8,0,0,0,5.66-2.34l16-16a8,8,0,0,0-11.32-11.32l-16,16A8,8,0,0,0,192,72Zm5.66,114.34a8,8,0,0,0-11.32,11.32l16,16a8,8,0,0,0,11.32-11.32ZM48,128a8,8,0,0,0-8-8H16a8,8,0,0,0,0,16H40A8,8,0,0,0,48,128Zm80,80a8,8,0,0,0-8,8v24a8,8,0,0,0,16,0V216A8,8,0,0,0,128,208Zm112-88H216a8,8,0,0,0,0,16h24a8,8,0,0,0,0-16Z`}))],[`thin`,P.createElement(P.Fragment,null,P.createElement(`path`,{d:`M124,40V16a4,4,0,0,1,8,0V40a4,4,0,0,1-8,0Zm64,88a60,60,0,1,1-60-60A60.07,60.07,0,0,1,188,128Zm-8,0a52,52,0,1,0-52,52A52.06,52.06,0,0,0,180,128ZM61.17,66.83a4,4,0,0,0,5.66-5.66l-16-16a4,4,0,0,0-5.66,5.66Zm0,122.34-16,16a4,4,0,0,0,5.66,5.66l16-16a4,4,0,0,0-5.66-5.66ZM192,68a4,4,0,0,0,2.83-1.17l16-16a4,4,0,1,0-5.66-5.66l-16,16A4,4,0,0,0,192,68Zm2.83,121.17a4,4,0,0,0-5.66,5.66l16,16a4,4,0,0,0,5.66-5.66ZM40,124H16a4,4,0,0,0,0,8H40a4,4,0,0,0,0-8Zm88,88a4,4,0,0,0-4,4v24a4,4,0,0,0,8,0V216A4,4,0,0,0,128,212Zm112-88H216a4,4,0,0,0,0,8h24a4,4,0,0,0,0-8Z`}))]]),CE=new Map([[`bold`,P.createElement(P.Fragment,null,P.createElement(`path`,{d:`M216,48H180V36A28,28,0,0,0,152,8H104A28,28,0,0,0,76,36V48H40a12,12,0,0,0,0,24h4V208a20,20,0,0,0,20,20H192a20,20,0,0,0,20-20V72h4a12,12,0,0,0,0-24ZM100,36a4,4,0,0,1,4-4h48a4,4,0,0,1,4,4V48H100Zm88,168H68V72H188ZM116,104v64a12,12,0,0,1-24,0V104a12,12,0,0,1,24,0Zm48,0v64a12,12,0,0,1-24,0V104a12,12,0,0,1,24,0Z`}))],[`duotone`,P.createElement(P.Fragment,null,P.createElement(`path`,{d:`M200,56V208a8,8,0,0,1-8,8H64a8,8,0,0,1-8-8V56Z`,opacity:`0.2`}),P.createElement(`path`,{d:`M216,48H176V40a24,24,0,0,0-24-24H104A24,24,0,0,0,80,40v8H40a8,8,0,0,0,0,16h8V208a16,16,0,0,0,16,16H192a16,16,0,0,0,16-16V64h8a8,8,0,0,0,0-16ZM96,40a8,8,0,0,1,8-8h48a8,8,0,0,1,8,8v8H96Zm96,168H64V64H192ZM112,104v64a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Zm48,0v64a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Z`}))],[`fill`,P.createElement(P.Fragment,null,P.createElement(`path`,{d:`M216,48H176V40a24,24,0,0,0-24-24H104A24,24,0,0,0,80,40v8H40a8,8,0,0,0,0,16h8V208a16,16,0,0,0,16,16H192a16,16,0,0,0,16-16V64h8a8,8,0,0,0,0-16ZM112,168a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Zm48,0a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Zm0-120H96V40a8,8,0,0,1,8-8h48a8,8,0,0,1,8,8Z`}))],[`light`,P.createElement(P.Fragment,null,P.createElement(`path`,{d:`M216,50H174V40a22,22,0,0,0-22-22H104A22,22,0,0,0,82,40V50H40a6,6,0,0,0,0,12H50V208a14,14,0,0,0,14,14H192a14,14,0,0,0,14-14V62h10a6,6,0,0,0,0-12ZM94,40a10,10,0,0,1,10-10h48a10,10,0,0,1,10,10V50H94ZM194,208a2,2,0,0,1-2,2H64a2,2,0,0,1-2-2V62H194ZM110,104v64a6,6,0,0,1-12,0V104a6,6,0,0,1,12,0Zm48,0v64a6,6,0,0,1-12,0V104a6,6,0,0,1,12,0Z`}))],[`regular`,P.createElement(P.Fragment,null,P.createElement(`path`,{d:`M216,48H176V40a24,24,0,0,0-24-24H104A24,24,0,0,0,80,40v8H40a8,8,0,0,0,0,16h8V208a16,16,0,0,0,16,16H192a16,16,0,0,0,16-16V64h8a8,8,0,0,0,0-16ZM96,40a8,8,0,0,1,8-8h48a8,8,0,0,1,8,8v8H96Zm96,168H64V64H192ZM112,104v64a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Zm48,0v64a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Z`}))],[`thin`,P.createElement(P.Fragment,null,P.createElement(`path`,{d:`M216,52H172V40a20,20,0,0,0-20-20H104A20,20,0,0,0,84,40V52H40a4,4,0,0,0,0,8H52V208a12,12,0,0,0,12,12H192a12,12,0,0,0,12-12V60h12a4,4,0,0,0,0-8ZM92,40a12,12,0,0,1,12-12h48a12,12,0,0,1,12,12V52H92ZM196,208a4,4,0,0,1-4,4H64a4,4,0,0,1-4-4V60H196ZM108,104v64a4,4,0,0,1-8,0V104a4,4,0,0,1,8,0Zm48,0v64a4,4,0,0,1-8,0V104a4,4,0,0,1,8,0Z`}))]]),wE=P.forwardRef((e,t)=>P.createElement(Ne,{ref:t,...e,weights:lE}));wE.displayName=`ArrowUpRightIcon`;var TE=wE,EE=P.forwardRef((e,t)=>P.createElement(Ne,{ref:t,...e,weights:uE}));EE.displayName=`ChatCircleTextIcon`;var DE=EE,OE=P.forwardRef((e,t)=>P.createElement(Ne,{ref:t,...e,weights:dE}));OE.displayName=`ClockCounterClockwiseIcon`;var kE=OE,AE=P.forwardRef((e,t)=>P.createElement(Ne,{ref:t,...e,weights:fE}));AE.displayName=`DotsThreeIcon`;var jE=AE,ME=P.forwardRef((e,t)=>P.createElement(Ne,{ref:t,...e,weights:pE}));ME.displayName=`GithubLogoIcon`;var NE=ME,PE=P.forwardRef((e,t)=>P.createElement(Ne,{ref:t,...e,weights:mE}));PE.displayName=`GlobeHemisphereWestIcon`;var FE=PE,IE=P.forwardRef((e,t)=>P.createElement(Ne,{ref:t,...e,weights:hE}));IE.displayName=`LayoutIcon`;var LE=IE,RE=P.forwardRef((e,t)=>P.createElement(Ne,{ref:t,...e,weights:gE}));RE.displayName=`MagnifyingGlassIcon`;var zE=RE,BE=P.forwardRef((e,t)=>P.createElement(Ne,{ref:t,...e,weights:_E}));BE.displayName=`MoonIcon`;var VE=BE,HE=P.forwardRef((e,t)=>P.createElement(Ne,{ref:t,...e,weights:vE}));HE.displayName=`PaperPlaneTiltIcon`;var UE=HE,WE=P.forwardRef((e,t)=>P.createElement(Ne,{ref:t,...e,weights:yE}));WE.displayName=`PencilSimpleIcon`;var GE=WE,KE=P.forwardRef((e,t)=>P.createElement(Ne,{ref:t,...e,weights:bE}));KE.displayName=`PlusIcon`;var qE=KE,JE=P.forwardRef((e,t)=>P.createElement(Ne,{ref:t,...e,weights:xE}));JE.displayName=`SignOutIcon`;var YE=JE,XE=P.forwardRef((e,t)=>P.createElement(Ne,{ref:t,...e,weights:SE}));XE.displayName=`SunIcon`;var ZE=XE,QE=P.forwardRef((e,t)=>P.createElement(Ne,{ref:t,...e,weights:CE}));QE.displayName=`TrashIcon`;var $E=QE,eD=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},tD=new class extends eD{#e;#t;#n;constructor(){super(),this.#n=e=>{if(typeof window<`u`&&window.addEventListener){let t=()=>e();return window.addEventListener(`visibilitychange`,t,!1),()=>{window.removeEventListener(`visibilitychange`,t)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(e=>{typeof e==`boolean`?this.setFocused(e):this.onFocus()})}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){let e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return typeof this.#e==`boolean`?this.#e:globalThis.document?.visibilityState!==`hidden`}},nD={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},rD=new class{#e=nD;setTimeoutProvider(e){this.#e=e}setTimeout(e,t){return this.#e.setTimeout(e,t)}clearTimeout(e){this.#e.clearTimeout(e)}setInterval(e,t){return this.#e.setInterval(e,t)}clearInterval(e){this.#e.clearInterval(e)}};function iD(e){setTimeout(e,0)}var aD=typeof window>`u`||`Deno`in globalThis;function oD(){}function sD(e,t){return typeof e==`function`?e(t):e}function cD(e){return typeof e==`number`&&e>=0&&e!==1/0}function lD(e,t){return Math.max(e+(t||0)-Date.now(),0)}function uD(e,t){return typeof e==`function`?e(t):e}function dD(e,t){return typeof e==`function`?e(t):e}function fD(e,t){let{type:n=`all`,exact:r,fetchStatus:i,predicate:a,queryKey:o,stale:s}=e;if(o){if(r){if(t.queryHash!==mD(o,t.options))return!1}else if(!gD(t.queryKey,o))return!1}if(n!==`all`){let e=t.isActive();if(n===`active`&&!e||n===`inactive`&&e)return!1}return!(typeof s==`boolean`&&t.isStale()!==s||i&&i!==t.state.fetchStatus||a&&!a(t))}function pD(e,t){let{exact:n,status:r,predicate:i,mutationKey:a}=e;if(a){if(!t.options.mutationKey)return!1;if(n){if(hD(t.options.mutationKey)!==hD(a))return!1}else if(!gD(t.options.mutationKey,a))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function mD(e,t){return(t?.queryKeyHashFn||hD)(e)}function hD(e){return JSON.stringify(e,(e,t)=>xD(t)?Object.keys(t).sort().reduce((e,n)=>(e[n]=t[n],e),{}):t)}function gD(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(e&&t&&typeof e==`object`&&typeof t==`object`){if(Array.isArray(e)&&Array.isArray(t)){for(let n=0;n500)return t;let r=bD(e)&&bD(t);if(!r&&!(xD(e)&&xD(t)))return t;let i=(r?e:Object.keys(e)).length,a=r?t:Object.keys(t),o=a.length,s=r?Array(o):{},c=0;for(let l=0;l{rD.setTimeout(t,e)})}function wD(e,t,n){return typeof n.structuralSharing==`function`?n.structuralSharing(e,t):n.structuralSharing===!1?t:vD(e,t)}function TD(e,t,n=0){let r=[...e,t];return n&&r.length>n?r.slice(1):r}function ED(e,t,n=0){let r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var DD=Symbol();function OD(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===DD?()=>Promise.reject(Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function kD(e,t){return typeof e==`function`?e(...t):!!e}function AD(e,t,n){let r=!1,i;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(i??=t(),r?i:(r=!0,i.aborted?n():i.addEventListener(`abort`,n,{once:!0}),i))}),e}var jD=(()=>{let e=()=>aD;return{isServer(){return e()},setIsServer(t){e=t}}})();function MD(){let e,t,n=new Promise((n,r)=>{e=n,t=r});n.status=`pending`,n.catch(()=>{});function r(e){Object.assign(n,e),delete n.resolve,delete n.reject}return n.resolve=t=>{r({status:`fulfilled`,value:t}),e(t)},n.reject=e=>{r({status:`rejected`,reason:e}),t(e)},n}var ND=iD;function PD(){let e=[],t=0,n=e=>{e()},r=e=>{e()},i=ND,a=r=>{t?e.push(r):i(()=>{n(r)})},o=()=>{let t=e;e=[],t.length&&i(()=>{r(()=>{t.forEach(e=>{n(e)})})})};return{batch:e=>{let n;t++;try{n=e()}finally{t--,t||o()}return n},batchCalls:e=>(...t)=>{a(()=>{e(...t)})},schedule:a,setNotifyFunction:e=>{n=e},setBatchNotifyFunction:e=>{r=e},setScheduler:e=>{i=e}}}var FD=PD(),ID=new class extends eD{#e=!0;#t;#n;constructor(){super(),this.#n=e=>{if(typeof window<`u`&&window.addEventListener){let t=()=>e(!0),n=()=>e(!1);return window.addEventListener(`online`,t,!1),window.addEventListener(`offline`,n,!1),()=>{window.removeEventListener(`online`,t),window.removeEventListener(`offline`,n)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(this.setOnline.bind(this))}setOnline(e){this.#e!==e&&(this.#e=e,this.listeners.forEach(t=>{t(e)}))}isOnline(){return this.#e}};function LD(e){return Math.min(1e3*2**e,3e4)}function RD(e){return(e??`online`)!==`online`||ID.isOnline()}var zD=class extends Error{constructor(e){super(`CancelledError`),this.revert=e?.revert,this.silent=e?.silent}};function BD(e){let t=!1,n=0,r,i=MD(),a=()=>i.status!==`pending`,o=t=>{if(!a()){let n=new zD(t);f(n),e.onCancel?.(n)}},s=()=>{t=!0},c=()=>{t=!1},l=()=>tD.isFocused()&&(e.networkMode===`always`||ID.isOnline())&&e.canRun(),u=()=>RD(e.networkMode)&&e.canRun(),d=e=>{a()||(r?.(),i.resolve(e))},f=e=>{a()||(r?.(),i.reject(e))},p=()=>new Promise(t=>{r=e=>{(a()||l())&&t(e)},e.onPause?.()}).then(()=>{r=void 0,a()||e.onContinue?.()}),m=()=>{if(a())return;let r,i=n===0?e.initialPromise:void 0;try{r=i??e.fn()}catch(e){r=Promise.reject(e)}Promise.resolve(r).then(d).catch(r=>{if(a())return;let i=e.retry??(jD.isServer()?0:3),o=e.retryDelay??LD,s=typeof o==`function`?o(n,r):o,c=i===!0||typeof i==`number`&&nl()?void 0:p()).then(()=>{t?f(r):m()})})};return{promise:i,status:()=>i.status,cancel:o,continue:()=>(r?.(),i),cancelRetry:s,continueRetry:c,canStart:u,start:()=>(u()?m():p().then(m),i)}}var VD=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),cD(this.gcTime)&&(this.#e=rD.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(jD.isServer()?1/0:3e5))}clearGcTimeout(){this.#e!==void 0&&(rD.clearTimeout(this.#e),this.#e=void 0)}};function HD(e){return{onFetch:(t,n)=>{let r=t.options,i=t.fetchOptions?.meta?.fetchMore?.direction,a=t.state.data?.pages||[],o=t.state.data?.pageParams||[],s={pages:[],pageParams:[]},c=0,l=async()=>{let n=!1,l=e=>{AD(e,()=>t.signal,()=>n=!0)},u=OD(t.options,t.fetchOptions),d=async(e,r,i)=>{if(n)return Promise.reject(t.signal.reason);if(r==null&&e.pages.length)return Promise.resolve(e);let a=(()=>{let e={client:t.client,queryKey:t.queryKey,pageParam:r,direction:i?`backward`:`forward`,meta:t.options.meta};return l(e),e})(),o=await u(a),{maxPages:s}=t.options,c=i?ED:TD;return{pages:c(e.pages,o,s),pageParams:c(e.pageParams,r,s)}};if(i&&a.length){let e=i===`backward`,t=e?WD:UD,n={pages:a,pageParams:o};s=await d(n,t(r,n),e)}else{let t=e??a.length;do{let e=c===0?o[0]??r.initialPageParam:UD(r,s);if(c>0&&e==null)break;s=await d(s,e),c++}while(ct.options.persister?.(l,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n):l}}}function UD(e,{pages:t,pageParams:n}){let r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function WD(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}function GD(e,t){return t?UD(e,t)!=null:!1}function KD(e,t){return!t||!e.getPreviousPageParam?!1:WD(e,t)!=null}var qD=class extends VD{#e;#t;#n;#r;#i;#a;#o;#s;constructor(e){super(),this.#s=!1,this.#o=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#i=e.client,this.#r=this.#i.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#t=XD(this.options),this.state=e.state??this.#t,this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return this.#e}get promise(){return this.#a?.promise}setOptions(e){if(this.options={...this.#o,...e},e?._type&&(this.#e=e._type),this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){let e=XD(this.options);e.data!==void 0&&(this.setState(YD(e.data,e.dataUpdatedAt)),this.#t=e)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus===`idle`&&this.#r.remove(this)}setData(e,t){let n=wD(this.state.data,e,this.options);return this.#l({data:n,type:`success`,dataUpdatedAt:t?.updatedAt,manual:t?.manual}),n}setState(e){this.#l({type:`setState`,state:e})}cancel(e){let t=this.#a?.promise;return this.#a?.cancel(e),t?t.then(oD).catch(oD):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return this.#t}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(e=>dD(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===DD||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0&&this.observers.some(e=>uD(e.options.staleTime,this)===`static`)}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e===`static`?!1:this.state.isInvalidated?!0:!lD(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(e=>e.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#a?.continue()}onOnline(){this.observers.find(e=>e.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#a?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#r.notify({type:`observerAdded`,query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#a&&(this.#s||this.#c()?this.#a.cancel({revert:!0}):this.#a.cancelRetry()),this.scheduleGc()),this.#r.notify({type:`observerRemoved`,query:this,observer:e}))}getObserversCount(){return this.observers.length}#c(){return this.state.fetchStatus===`paused`&&this.state.status===`pending`}invalidate(){this.state.isInvalidated||this.#l({type:`invalidate`})}async fetch(e,t){if(this.state.fetchStatus!==`idle`&&this.#a?.status()!==`rejected`){if(this.state.data!==void 0&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#a)return this.#a.continueRetry(),this.#a.promise}if(e&&this.setOptions(e),!this.options.queryFn){let e=this.observers.find(e=>e.options.queryFn);e&&this.setOptions(e.options)}let n=new AbortController,r=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(this.#s=!0,n.signal)})},i=()=>{let e=OD(this.options,t),n=(()=>{let e={client:this.#i,queryKey:this.queryKey,meta:this.meta};return r(e),e})();return this.#s=!1,this.options.persister?this.options.persister(e,n,this):e(n)},a=(()=>{let e={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#i,state:this.state,fetchFn:i};return r(e),e})();(this.#e===`infinite`?HD(this.options.pages):this.options.behavior)?.onFetch(a,this),this.#n=this.state,(this.state.fetchStatus===`idle`||this.state.fetchMeta!==a.fetchOptions?.meta)&&this.#l({type:`fetch`,meta:a.fetchOptions?.meta}),this.#a=BD({initialPromise:t?.initialPromise,fn:a.fetchFn,onCancel:e=>{e instanceof zD&&e.revert&&this.setState({...this.#n,fetchStatus:`idle`}),n.abort()},onFail:(e,t)=>{this.#l({type:`failed`,failureCount:e,error:t})},onPause:()=>{this.#l({type:`pause`})},onContinue:()=>{this.#l({type:`continue`})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0});try{let e=await this.#a.start();if(e===void 0)throw Error(`${this.queryHash} data is undefined`);return this.setData(e),this.#r.config.onSuccess?.(e,this),this.#r.config.onSettled?.(e,this.state.error,this),e}catch(e){if(e instanceof zD){if(e.silent)return this.#a.promise;if(e.revert){if(this.state.data===void 0)throw e;return this.state.data}}throw this.#l({type:`error`,error:e}),this.#r.config.onError?.(e,this),this.#r.config.onSettled?.(this.state.data,e,this),e}finally{this.scheduleGc()}}#l(e){let t=t=>{switch(e.type){case`failed`:return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case`pause`:return{...t,fetchStatus:`paused`};case`continue`:return{...t,fetchStatus:`fetching`};case`fetch`:return{...t,...JD(t.data,this.options),fetchMeta:e.meta??null};case`success`:let n={...t,...YD(e.data,e.dataUpdatedAt),dataUpdateCount:t.dataUpdateCount+1,...!e.manual&&{fetchStatus:`idle`,fetchFailureCount:0,fetchFailureReason:null}};return this.#n=e.manual?n:void 0,n;case`error`:let r=e.error;return{...t,error:r,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:r,fetchStatus:`idle`,status:`error`,isInvalidated:!0};case`invalidate`:return{...t,isInvalidated:!0};case`setState`:return{...t,...e.state}}};this.state=t(this.state),FD.batch(()=>{this.observers.forEach(e=>{e.onQueryUpdate()}),this.#r.notify({query:this,type:`updated`,action:e})})}};function JD(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:RD(t.networkMode)?`fetching`:`paused`,...e===void 0&&{error:null,status:`pending`}}}function YD(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:`success`}}function XD(e){let t=typeof e.initialData==`function`?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt==`function`?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?`success`:`pending`,fetchStatus:`idle`}}var ZD=class extends eD{constructor(e,t){super(),this.options=t,this.#e=e,this.#s=null,this.#o=MD(),this.bindMethods(),this.setOptions(t)}#e;#t=void 0;#n=void 0;#r=void 0;#i;#a;#o;#s;#c;#l;#u;#d;#f;#p;#m=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#t.addObserver(this),$D(this.#t,this.options)?this.#h():this.updateResult(),this.#y())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return eO(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return eO(this.#t,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#b(),this.#x(),this.#t.removeObserver(this)}setOptions(e){let t=this.options,n=this.#t;if(this.options=this.#e.defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!=`boolean`&&typeof this.options.enabled!=`function`&&typeof dD(this.options.enabled,this.#t)!=`boolean`)throw Error(`Expected enabled to be a boolean or a callback that returns a boolean`);this.#S(),this.#t.setOptions(this.options),t._defaulted&&!yD(this.options,t)&&this.#e.getQueryCache().notify({type:`observerOptionsUpdated`,query:this.#t,observer:this});let r=this.hasListeners();r&&tO(this.#t,n,this.options,t)&&this.#h(),this.updateResult(),r&&(this.#t!==n||dD(this.options.enabled,this.#t)!==dD(t.enabled,this.#t)||uD(this.options.staleTime,this.#t)!==uD(t.staleTime,this.#t))&&this.#g();let i=this.#_();r&&(this.#t!==n||dD(this.options.enabled,this.#t)!==dD(t.enabled,this.#t)||i!==this.#p)&&this.#v(i)}getOptimisticResult(e){let t=this.#e.getQueryCache().build(this.#e,e),n=this.createResult(t,e);return rO(this,n)&&(this.#r=n,this.#a=this.options,this.#i=this.#t.state),n}getCurrentResult(){return this.#r}trackResult(e,t){return new Proxy(e,{get:(e,n)=>(this.trackProp(n),t?.(n),n===`promise`&&(this.trackProp(`data`),!this.options.experimental_prefetchInRender&&this.#o.status===`pending`&&this.#o.reject(Error(`experimental_prefetchInRender feature flag is not enabled`))),Reflect.get(e,n))})}trackProp(e){this.#m.add(e)}getCurrentQuery(){return this.#t}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){let t=this.#e.defaultQueryOptions(e),n=this.#e.getQueryCache().build(this.#e,t);return n.fetch().then(()=>this.createResult(n,t))}fetch(e){return this.#h({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#r))}#h(e){this.#S();let t=this.#t.fetch(this.options,e);return e?.throwOnError||(t=t.catch(oD)),t}#g(){this.#b();let e=uD(this.options.staleTime,this.#t);if(jD.isServer()||this.#r.isStale||!cD(e))return;let t=lD(this.#r.dataUpdatedAt,e)+1;this.#d=rD.setTimeout(()=>{this.#r.isStale||this.updateResult()},t)}#_(){return(typeof this.options.refetchInterval==`function`?this.options.refetchInterval(this.#t):this.options.refetchInterval)??!1}#v(e){this.#x(),this.#p=e,!(jD.isServer()||dD(this.options.enabled,this.#t)===!1||!cD(this.#p)||this.#p===0)&&(this.#f=rD.setInterval(()=>{(this.options.refetchIntervalInBackground||tD.isFocused())&&this.#h()},this.#p))}#y(){this.#g(),this.#v(this.#_())}#b(){this.#d!==void 0&&(rD.clearTimeout(this.#d),this.#d=void 0)}#x(){this.#f!==void 0&&(rD.clearInterval(this.#f),this.#f=void 0)}createResult(e,t){let n=this.#t,r=this.options,i=this.#r,a=this.#i,o=this.#a,s=e===n?this.#n:e.state,{state:c}=e,l={...c},u=!1,d;if(t._optimisticResults){let i=this.hasListeners(),a=!i&&$D(e,t),o=i&&tO(e,n,t,r);(a||o)&&(l={...l,...JD(c.data,e.options)}),t._optimisticResults===`isRestoring`&&(l.fetchStatus=`idle`)}let{error:f,errorUpdatedAt:p,status:m}=l;d=l.data;let h=!1;if(t.placeholderData!==void 0&&d===void 0&&m===`pending`){let e;i?.isPlaceholderData&&t.placeholderData===o?.placeholderData?(e=i.data,h=!0):e=typeof t.placeholderData==`function`?t.placeholderData(this.#u?.state.data,this.#u):t.placeholderData,e!==void 0&&(m=`success`,d=wD(i?.data,e,t),u=!0)}if(t.select&&d!==void 0&&!h)if(i&&d===a?.data&&t.select===this.#c)d=this.#l;else try{this.#c=t.select,d=t.select(d),d=wD(i?.data,d,t),this.#l=d,this.#s=null}catch(e){this.#s=e}this.#s&&(f=this.#s,d=this.#l,p=Date.now(),m=`error`);let g=l.fetchStatus===`fetching`,_=m===`pending`,v=m===`error`,y=_&&g,b=d!==void 0,x={status:m,fetchStatus:l.fetchStatus,isPending:_,isSuccess:m===`success`,isError:v,isInitialLoading:y,isLoading:y,data:d,dataUpdatedAt:l.dataUpdatedAt,error:f,errorUpdatedAt:p,failureCount:l.fetchFailureCount,failureReason:l.fetchFailureReason,errorUpdateCount:l.errorUpdateCount,isFetched:e.isFetched(),isFetchedAfterMount:l.dataUpdateCount>s.dataUpdateCount||l.errorUpdateCount>s.errorUpdateCount,isFetching:g,isRefetching:g&&!_,isLoadingError:v&&!b,isPaused:l.fetchStatus===`paused`,isPlaceholderData:u,isRefetchError:v&&b,isStale:nO(e,t),refetch:this.refetch,promise:this.#o,isEnabled:dD(t.enabled,e)!==!1};if(this.options.experimental_prefetchInRender){let t=x.data!==void 0,r=x.status===`error`&&!t,i=e=>{r?e.reject(x.error):t&&e.resolve(x.data)},a=()=>{let e=this.#o=x.promise=MD();i(e)},o=this.#o;switch(o.status){case`pending`:e.queryHash===n.queryHash&&i(o);break;case`fulfilled`:(r||x.data!==o.value)&&a();break;case`rejected`:(!r||x.error!==o.reason)&&a()}}return x}updateResult(){let e=this.#r,t=this.createResult(this.#t,this.options);this.#i=this.#t.state,this.#a=this.options,this.#i.data!==void 0&&(this.#u=this.#t),!yD(t,e)&&(this.#r=t,this.#C({listeners:(()=>{if(!e)return!0;let{notifyOnChangeProps:t}=this.options,n=typeof t==`function`?t():t;if(n===`all`||!n&&!this.#m.size)return!0;let r=new Set(n??this.#m);return this.options.throwOnError&&r.add(`error`),Object.keys(this.#r).some(t=>{let n=t;return this.#r[n]!==e[n]&&r.has(n)})})()}))}#S(){let e=this.#e.getQueryCache().build(this.#e,this.options);if(e===this.#t)return;let t=this.#t;this.#t=e,this.#n=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#y()}#C(e){FD.batch(()=>{e.listeners&&this.listeners.forEach(e=>{e(this.#r)}),this.#e.getQueryCache().notify({query:this.#t,type:`observerResultsUpdated`})})}};function QD(e,t){return dD(t.enabled,e)!==!1&&e.state.data===void 0&&(e.state.status!==`error`||dD(t.retryOnMount,e)!==!1)}function $D(e,t){return QD(e,t)||e.state.data!==void 0&&eO(e,t,t.refetchOnMount)}function eO(e,t,n){if(dD(t.enabled,e)!==!1&&uD(t.staleTime,e)!==`static`){let r=typeof n==`function`?n(e):n;return r===`always`||r!==!1&&nO(e,t)}return!1}function tO(e,t,n,r){return(e!==t||dD(r.enabled,e)===!1)&&(!n.suspense||e.state.status!==`error`)&&nO(e,n)}function nO(e,t){return dD(t.enabled,e)!==!1&&e.isStaleByTime(uD(t.staleTime,e))}function rO(e,t){return!yD(e.getCurrentResult(),t)}var iO=class extends ZD{constructor(e,t){super(e,t)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(e){e._type=`infinite`,super.setOptions(e)}getOptimisticResult(e){return e._type=`infinite`,super.getOptimisticResult(e)}fetchNextPage(e){return this.fetch({...e,meta:{fetchMore:{direction:`forward`}}})}fetchPreviousPage(e){return this.fetch({...e,meta:{fetchMore:{direction:`backward`}}})}createResult(e,t){let{state:n}=e,r=super.createResult(e,t),{isFetching:i,isRefetching:a,isError:o,isRefetchError:s}=r,c=n.fetchMeta?.fetchMore?.direction,l=o&&c===`forward`,u=i&&c===`forward`,d=o&&c===`backward`,f=i&&c===`backward`;return{...r,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:GD(t,n.data),hasPreviousPage:KD(t,n.data),isFetchNextPageError:l,isFetchingNextPage:u,isFetchPreviousPageError:d,isFetchingPreviousPage:f,isRefetchError:s&&!l&&!d,isRefetching:a&&!u&&!f}}},aO=class extends VD{#e;#t;#n;#r;constructor(e){super(),this.#e=e.client,this.mutationId=e.mutationId,this.#n=e.mutationCache,this.#t=[],this.state=e.state||oO(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#t.includes(e)||(this.#t.push(e),this.clearGcTimeout(),this.#n.notify({type:`observerAdded`,mutation:this,observer:e}))}removeObserver(e){this.#t=this.#t.filter(t=>t!==e),this.scheduleGc(),this.#n.notify({type:`observerRemoved`,mutation:this,observer:e})}optionalRemove(){this.#t.length||(this.state.status===`pending`?this.scheduleGc():this.#n.remove(this))}continue(){return this.#r?.continue()??this.execute(this.state.variables)}async execute(e){let t=()=>{this.#i({type:`continue`})},n={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#r=BD({fn:()=>this.options.mutationFn?this.options.mutationFn(e,n):Promise.reject(Error(`No mutationFn found`)),onFail:(e,t)=>{this.#i({type:`failed`,failureCount:e,error:t})},onPause:()=>{this.#i({type:`pause`})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#n.canRun(this)});let r=this.state.status===`pending`,i=!this.#r.canStart();try{if(r)t();else{this.#i({type:`pending`,variables:e,isPaused:i}),this.#n.config.onMutate&&await this.#n.config.onMutate(e,this,n);let t=await this.options.onMutate?.(e,n);t!==this.state.context&&this.#i({type:`pending`,context:t,variables:e,isPaused:i})}let a=await this.#r.start();return await this.#n.config.onSuccess?.(a,e,this.state.context,this,n),await this.options.onSuccess?.(a,e,this.state.context,n),await this.#n.config.onSettled?.(a,null,this.state.variables,this.state.context,this,n),await this.options.onSettled?.(a,null,e,this.state.context,n),this.#i({type:`success`,data:a}),a}catch(t){try{await this.#n.config.onError?.(t,e,this.state.context,this,n)}catch(e){Promise.reject(e)}try{await this.options.onError?.(t,e,this.state.context,n)}catch(e){Promise.reject(e)}try{await this.#n.config.onSettled?.(void 0,t,this.state.variables,this.state.context,this,n)}catch(e){Promise.reject(e)}try{await this.options.onSettled?.(void 0,t,e,this.state.context,n)}catch(e){Promise.reject(e)}throw this.#i({type:`error`,error:t}),t}finally{this.#n.runNext(this)}}#i(e){let t=t=>{switch(e.type){case`failed`:return{...t,failureCount:e.failureCount,failureReason:e.error};case`pause`:return{...t,isPaused:!0};case`continue`:return{...t,isPaused:!1};case`pending`:return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:`pending`,variables:e.variables,submittedAt:Date.now()};case`success`:return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:`success`,isPaused:!1};case`error`:return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:`error`}}};this.state=t(this.state),FD.batch(()=>{this.#t.forEach(t=>{t.onMutationUpdate(e)}),this.#n.notify({mutation:this,type:`updated`,action:e})})}};function oO(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:`idle`,variables:void 0,submittedAt:0}}var sO=class extends eD{constructor(e={}){super(),this.config=e,this.#e=new Set,this.#t=new Map,this.#n=0}#e;#t;#n;build(e,t,n){let r=new aO({client:e,mutationCache:this,mutationId:++this.#n,options:e.defaultMutationOptions(t),state:n});return this.add(r),r}add(e){this.#e.add(e);let t=cO(e);if(typeof t==`string`){let n=this.#t.get(t);n?n.push(e):this.#t.set(t,[e])}this.notify({type:`added`,mutation:e})}remove(e){if(this.#e.delete(e)){let t=cO(e);if(typeof t==`string`){let n=this.#t.get(t);if(n)if(n.length>1){let t=n.indexOf(e);t!==-1&&n.splice(t,1)}else n[0]===e&&this.#t.delete(t)}}this.notify({type:`removed`,mutation:e})}canRun(e){let t=cO(e);if(typeof t==`string`){let n=this.#t.get(t)?.find(e=>e.state.status===`pending`);return!n||n===e}return!0}runNext(e){let t=cO(e);return typeof t==`string`?(this.#t.get(t)?.find(t=>t!==e&&t.state.isPaused))?.continue()??Promise.resolve():Promise.resolve()}clear(){FD.batch(()=>{this.#e.forEach(e=>{this.notify({type:`removed`,mutation:e})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(e){let t={exact:!0,...e};return this.getAll().find(e=>pD(t,e))}findAll(e={}){return this.getAll().filter(t=>pD(e,t))}notify(e){FD.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){let e=this.getAll().filter(e=>e.state.isPaused);return FD.batch(()=>Promise.all(e.map(e=>e.continue().catch(oD))))}};function cO(e){return e.options.scope?.id}var lO=class extends eD{constructor(e={}){super(),this.config=e,this.#e=new Map}#e;build(e,t,n){let r=t.queryKey,i=t.queryHash??mD(r,t),a=this.get(i);return a||(a=new qD({client:e,queryKey:r,queryHash:i,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(r)}),this.add(a)),a}add(e){this.#e.has(e.queryHash)||(this.#e.set(e.queryHash,e),this.notify({type:`added`,query:e}))}remove(e){let t=this.#e.get(e.queryHash);t&&(e.destroy(),t===e&&this.#e.delete(e.queryHash),this.notify({type:`removed`,query:e}))}clear(){FD.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#e.get(e)}getAll(){return[...this.#e.values()]}find(e){let t={exact:!0,...e};return this.getAll().find(e=>fD(t,e))}findAll(e={}){let t=this.getAll();return Object.keys(e).length>0?t.filter(t=>fD(e,t)):t}notify(e){FD.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){FD.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){FD.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},uO=class{#e;#t;#n;#r;#i;#a;#o;#s;constructor(e={}){this.#e=e.queryCache||new lO,this.#t=e.mutationCache||new sO,this.#n=e.defaultOptions||{},this.#r=new Map,this.#i=new Map,this.#a=0}mount(){this.#a++,this.#a===1&&(this.#o=tD.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#s=ID.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#a--,this.#a===0&&(this.#o?.(),this.#o=void 0,this.#s?.(),this.#s=void 0)}isFetching(e){return this.#e.findAll({...e,fetchStatus:`fetching`}).length}isMutating(e){return this.#t.findAll({...e,status:`pending`}).length}getQueryData(e){let t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state.data}ensureQueryData(e){let t=this.defaultQueryOptions(e),n=this.#e.build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(uD(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return this.#e.findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,t,n){let r=this.defaultQueryOptions({queryKey:e}),i=this.#e.get(r.queryHash)?.state.data,a=sD(t,i);if(a!==void 0)return this.#e.build(this,r).setData(a,{...n,manual:!0})}setQueriesData(e,t,n){return FD.batch(()=>this.#e.findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,n)]))}getQueryState(e){let t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state}removeQueries(e){let t=this.#e;FD.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){let n=this.#e;return FD.batch(()=>(n.findAll(e).forEach(e=>{e.reset()}),this.refetchQueries({type:`active`,...e},t)))}cancelQueries(e,t={}){let n={revert:!0,...t},r=FD.batch(()=>this.#e.findAll(e).map(e=>e.cancel(n)));return Promise.all(r).then(oD).catch(oD)}invalidateQueries(e,t={}){return FD.batch(()=>(this.#e.findAll(e).forEach(e=>{e.invalidate()}),e?.refetchType===`none`?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??`active`},t)))}refetchQueries(e,t={}){let n={...t,cancelRefetch:t.cancelRefetch??!0},r=FD.batch(()=>this.#e.findAll(e).filter(e=>!e.isDisabled()&&!e.isStatic()).map(e=>{let t=e.fetch(void 0,n);return n.throwOnError||(t=t.catch(oD)),e.state.fetchStatus===`paused`?Promise.resolve():t}));return Promise.all(r).then(oD)}fetchQuery(e){let t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);let n=this.#e.build(this,t);return n.isStaleByTime(uD(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(oD).catch(oD)}fetchInfiniteQuery(e){return e._type=`infinite`,this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(oD).catch(oD)}ensureInfiniteQueryData(e){return e._type=`infinite`,this.ensureQueryData(e)}resumePausedMutations(){return ID.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#n}setDefaultOptions(e){this.#n=e}setQueryDefaults(e,t){this.#r.set(hD(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){let t=[...this.#r.values()],n={};return t.forEach(t=>{gD(e,t.queryKey)&&Object.assign(n,t.defaultOptions)}),n}setMutationDefaults(e,t){this.#i.set(hD(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){let t=[...this.#i.values()],n={};return t.forEach(t=>{gD(e,t.mutationKey)&&Object.assign(n,t.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;let t={...this.#n.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||=mD(t.queryKey,t),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!==`always`),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode=`offlineFirst`),t.queryFn===DD&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#n.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}},dO=P.createContext(void 0),fO=e=>{let t=P.useContext(dO);if(e)return e;if(!t)throw Error(`No QueryClient set, use QueryClientProvider to set one`);return t},pO=({client:e,children:t})=>(P.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),(0,F.jsx)(dO.Provider,{value:e,children:t})),mO=P.createContext(!1),hO=()=>P.useContext(mO);mO.Provider;function gO(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var _O=P.createContext(gO()),vO=()=>P.useContext(_O),yO=(e,t,n)=>{let r=n?.state.error&&typeof e.throwOnError==`function`?kD(e.throwOnError,[n.state.error,n]):e.throwOnError;(e.suspense||e.experimental_prefetchInRender||r)&&(t.isReset()||(e.retryOnMount=!1))},bO=e=>{P.useEffect(()=>{e.clearReset()},[e])},xO=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:i})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(i&&e.data===void 0||kD(n,[e.error,r])),SO=e=>{if(e.suspense){let t=1e3,n=e=>e===`static`?e:Math.max(e??t,t),r=e.staleTime;e.staleTime=typeof r==`function`?(...e)=>n(r(...e)):n(r),typeof e.gcTime==`number`&&(e.gcTime=Math.max(e.gcTime,t))}},CO=(e,t)=>e.isLoading&&e.isFetching&&!t,wO=(e,t)=>e?.suspense&&t.isPending,TO=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function EO(e,t,n){let r=hO(),i=vO(),a=fO(n),o=a.defaultQueryOptions(e);a.getDefaultOptions().queries?._experimental_beforeQuery?.(o);let s=a.getQueryCache().get(o.queryHash),c=e.subscribed!==!1;o._optimisticResults=r?`isRestoring`:c?`optimistic`:void 0,SO(o),yO(o,i,s),bO(i);let l=!a.getQueryCache().get(o.queryHash),[u]=P.useState(()=>new t(a,o)),d=u.getOptimisticResult(o),f=!r&&c;if(P.useSyncExternalStore(P.useCallback(e=>{let t=f?u.subscribe(FD.batchCalls(e)):oD;return u.updateResult(),t},[u,f]),()=>u.getCurrentResult(),()=>u.getCurrentResult()),P.useEffect(()=>{u.setOptions(o)},[o,u]),wO(o,d))throw TO(o,u,i);if(xO({result:d,errorResetBoundary:i,throwOnError:o.throwOnError,query:s,suspense:o.suspense}))throw d.error;return a.getDefaultOptions().queries?._experimental_afterQuery?.(o,d),o.experimental_prefetchInRender&&!jD.isServer()&&CO(d,r)&&(l?TO(o,u,i):s?.promise)?.catch(oD).finally(()=>{u.updateResult()}),o.notifyOnChangeProps?d:u.trackResult(d)}function DO(e,t){return EO(e,iO,t)}function OO(e,t){let n=t||{};return(e[e.length-1]===``?[...e,``]:e).join((n.padRight?` `:``)+`,`+(n.padLeft===!1?``:` `)).trim()}var kO=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,AO=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,jO={};function MO(e,t){return((t||jO).jsx?AO:kO).test(e)}var NO=/[ \t\n\f\r]/g;function PO(e){return typeof e==`object`?e.type===`text`&&FO(e.value):FO(e)}function FO(e){return e.replace(NO,``)===``}var IO=class{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}};IO.prototype.normal={},IO.prototype.property={},IO.prototype.space=void 0;function LO(e,t){let n={},r={};for(let t of e)Object.assign(n,t.property),Object.assign(r,t.normal);return new IO(n,r,t)}function RO(e){return e.toLowerCase()}var zO=class{constructor(e,t){this.attribute=t,this.property=e}};zO.prototype.attribute=``,zO.prototype.booleanish=!1,zO.prototype.boolean=!1,zO.prototype.commaOrSpaceSeparated=!1,zO.prototype.commaSeparated=!1,zO.prototype.defined=!1,zO.prototype.mustUseProperty=!1,zO.prototype.number=!1,zO.prototype.overloadedBoolean=!1,zO.prototype.property=``,zO.prototype.spaceSeparated=!1,zO.prototype.space=void 0;var BO=s({boolean:()=>HO,booleanish:()=>UO,commaOrSpaceSeparated:()=>qO,commaSeparated:()=>KO,number:()=>Q,overloadedBoolean:()=>WO,spaceSeparated:()=>GO}),VO=0,HO=JO(),UO=JO(),WO=JO(),Q=JO(),GO=JO(),KO=JO(),qO=JO();function JO(){return 2**++VO}var YO=Object.keys(BO),XO=class extends zO{constructor(e,t,n,r){let i=-1;if(super(e,t),ZO(this,`space`,r),typeof n==`number`)for(;++i4&&n.slice(0,4)===`data`&&uk.test(t)){if(t.charAt(4)===`-`){let e=t.slice(5).replace(lk,pk);r=`data`+e.charAt(0).toUpperCase()+e.slice(1)}else{let e=t.slice(4);if(!lk.test(e)){let n=e.replace(ck,fk);n.charAt(0)!==`-`&&(n=`-`+n),t=`data`+n}}i=XO}return new i(r,t)}function fk(e){return`-`+e.toLowerCase()}function pk(e){return e.charAt(1).toUpperCase()}var mk=LO([$O,nk,ik,ak,ok],`html`),hk=LO([$O,rk,ik,ak,ok],`svg`);function gk(e){return e.join(` `).trim()}var _k=i(((e,t)=>{var n=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,r=/\n/g,i=/^\s*/,a=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,c=/^[;\s]*/,l=/^\s+|\s+$/g;function u(e,t){if(typeof e!=`string`)throw TypeError(`First argument must be a string`);if(!e)return[];t||={};var l=1,u=1;function f(e){var t=e.match(r);t&&(l+=t.length);var n=e.lastIndexOf(` +`);u=~n?e.length-n:u+e.length}function p(){var e={line:l,column:u};return function(t){return t.position=new m(e),_(),t}}function m(e){this.start=e,this.end={line:l,column:u},this.source=t.source}m.prototype.content=e;function h(n){var r=Error(t.source+`:`+l+`:`+u+`: `+n);if(r.reason=n,r.filename=t.source,r.line=l,r.column=u,r.source=e,!t.silent)throw r}function g(t){var n=t.exec(e);if(n){var r=n[0];return f(r),e=e.slice(r.length),n}}function _(){g(i)}function v(e){var t;for(e||=[];t=y();)t!==!1&&e.push(t);return e}function y(){var t=p();if(e.charAt(0)==`/`&&e.charAt(1)==`*`){for(var n=2;e.charAt(n)!=``&&(e.charAt(n)!=`*`||e.charAt(n+1)!=`/`);)++n;if(n+=2,e.charAt(n-1)===``)return h(`End of comment missing`);var r=e.slice(2,n-2);return u+=2,f(r),e=e.slice(n),u+=2,t({type:`comment`,comment:r})}}function b(){var e=p(),t=g(a);if(t){if(y(),!g(o))return h(`property missing ':'`);var r=g(s),i=e({type:`declaration`,property:d(t[0].replace(n,``)),value:r?d(r[0].replace(n,``)):``});return g(c),i}}function x(){var e=[];v(e);for(var t;t=b();)t!==!1&&(e.push(t),v(e));return e}return _(),x()}function d(e){return e?e.replace(l,``):``}t.exports=u})),vk=i((e=>{var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.default=r;var n=t(_k());function r(e,t){let r=null;if(!e||typeof e!=`string`)return r;let i=(0,n.default)(e),a=typeof t==`function`;return i.forEach(e=>{if(e.type!==`declaration`)return;let{property:n,value:i}=e;a?t(n,i,e):i&&(r||={},r[n]=i)}),r}})),yk=i((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.camelCase=void 0;var t=/^--[a-zA-Z0-9_-]+$/,n=/-([a-z])/g,r=/^[^-]+$/,i=/^-(webkit|moz|ms|o|khtml)-/,a=/^-(ms)-/,o=function(e){return!e||r.test(e)||t.test(e)},s=function(e,t){return t.toUpperCase()},c=function(e,t){return`${t}-`};e.camelCase=function(e,t){return t===void 0&&(t={}),o(e)?e:(e=e.toLowerCase(),e=t.reactCompat?e.replace(a,c):e.replace(i,c),e.replace(n,s))}})),bk=i(((e,t)=>{var n=(e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}})(vk()),r=yk();function i(e,t){var i={};return!e||typeof e!=`string`||(0,n.default)(e,function(e,n){e&&n&&(i[(0,r.camelCase)(e,t)]=n)}),i}i.default=i,t.exports=i})),xk=Ck(`end`),Sk=Ck(`start`);function Ck(e){return t;function t(t){let n=t&&t.position&&t.position[e]||{};if(typeof n.line==`number`&&n.line>0&&typeof n.column==`number`&&n.column>0)return{line:n.line,column:n.column,offset:typeof n.offset==`number`&&n.offset>-1?n.offset:void 0}}}function wk(e){let t=Sk(e),n=xk(e);if(t&&n)return{start:t,end:n}}function Tk(e){return!e||typeof e!=`object`?``:`position`in e||`type`in e?Dk(e.position):`start`in e||`end`in e?Dk(e):`line`in e||`column`in e?Ek(e):``}function Ek(e){return Ok(e&&e.line)+`:`+Ok(e&&e.column)}function Dk(e){return Ek(e&&e.start)+`-`+Ek(e&&e.end)}function Ok(e){return e&&typeof e==`number`?e:1}var kk=class extends Error{constructor(e,t,n){super(),typeof t==`string`&&(n=t,t=void 0);let r=``,i={},a=!1;if(t&&(i=`line`in t&&`column`in t||`start`in t&&`end`in t?{place:t}:`type`in t?{ancestors:[t],place:t.position}:{...t}),typeof e==`string`?r=e:!i.cause&&e&&(a=!0,r=e.message,i.cause=e),!i.ruleId&&!i.source&&typeof n==`string`){let e=n.indexOf(`:`);e===-1?i.ruleId=n:(i.source=n.slice(0,e),i.ruleId=n.slice(e+1))}if(!i.place&&i.ancestors&&i.ancestors){let e=i.ancestors[i.ancestors.length-1];e&&(i.place=e.position)}let o=i.place&&`start`in i.place?i.place.start:i.place;this.ancestors=i.ancestors||void 0,this.cause=i.cause||void 0,this.column=o?o.column:void 0,this.fatal=void 0,this.file=``,this.message=r,this.line=o?o.line:void 0,this.name=Tk(i.place)||`1:1`,this.place=i.place||void 0,this.reason=this.message,this.ruleId=i.ruleId||void 0,this.source=i.source||void 0,this.stack=a&&i.cause&&typeof i.cause.stack==`string`?i.cause.stack:``,this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}};kk.prototype.file=``,kk.prototype.name=``,kk.prototype.reason=``,kk.prototype.message=``,kk.prototype.stack=``,kk.prototype.column=void 0,kk.prototype.line=void 0,kk.prototype.ancestors=void 0,kk.prototype.cause=void 0,kk.prototype.fatal=void 0,kk.prototype.place=void 0,kk.prototype.ruleId=void 0,kk.prototype.source=void 0;var Ak=e(bk(),1),jk={}.hasOwnProperty,Mk=new Map,Nk=/[A-Z]/g,Pk=new Set([`table`,`tbody`,`thead`,`tfoot`,`tr`]),Fk=new Set([`td`,`th`]);function Ik(e,t){if(!t||t.Fragment===void 0)throw TypeError("Expected `Fragment` in options");let n=t.filePath||void 0,r;if(t.development){if(typeof t.jsxDEV!=`function`)throw TypeError("Expected `jsxDEV` in options when `development: true`");r=qk(n,t.jsxDEV)}else{if(typeof t.jsx!=`function`)throw TypeError("Expected `jsx` in production options");if(typeof t.jsxs!=`function`)throw TypeError("Expected `jsxs` in production options");r=Kk(n,t.jsx,t.jsxs)}let i={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||`react`,evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space===`svg`?hk:mk,stylePropertyNameCase:t.stylePropertyNameCase||`dom`,tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},a=Lk(i,e,void 0);return a&&typeof a!=`string`?a:i.create(e,i.Fragment,{children:a||void 0},void 0)}function Lk(e,t,n){if(t.type===`element`)return Rk(e,t,n);if(t.type===`mdxFlowExpression`||t.type===`mdxTextExpression`)return zk(e,t);if(t.type===`mdxJsxFlowElement`||t.type===`mdxJsxTextElement`)return Vk(e,t,n);if(t.type===`mdxjsEsm`)return Bk(e,t);if(t.type===`root`)return Hk(e,t,n);if(t.type===`text`)return Uk(e,t)}function Rk(e,t,n){let r=e.schema,i=r;t.tagName.toLowerCase()===`svg`&&r.space===`html`&&(i=hk,e.schema=i),e.ancestors.push(t);let a=$k(e,t.tagName,!1),o=Jk(e,t),s=Xk(e,t);return Pk.has(t.tagName)&&(s=s.filter(function(e){return typeof e!=`string`||!PO(e)})),Wk(e,o,a,t),Gk(o,s),e.ancestors.pop(),e.schema=r,e.create(t,a,o,n)}function zk(e,t){if(t.data&&t.data.estree&&e.evaluater){let n=t.data.estree.body[0];return n.type,e.evaluater.evaluateExpression(n.expression)}eA(e,t.position)}function Bk(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);eA(e,t.position)}function Vk(e,t,n){let r=e.schema,i=r;t.name===`svg`&&r.space===`html`&&(i=hk,e.schema=i),e.ancestors.push(t);let a=t.name===null?e.Fragment:$k(e,t.name,!0),o=Yk(e,t),s=Xk(e,t);return Wk(e,o,a,t),Gk(o,s),e.ancestors.pop(),e.schema=r,e.create(t,a,o,n)}function Hk(e,t,n){let r={};return Gk(r,Xk(e,t)),e.create(t,e.Fragment,r,n)}function Uk(e,t){return t.value}function Wk(e,t,n,r){typeof n!=`string`&&n!==e.Fragment&&e.passNode&&(t.node=r)}function Gk(e,t){if(t.length>0){let n=t.length>1?t:t[0];n&&(e.children=n)}}function Kk(e,t,n){return r;function r(e,r,i,a){let o=Array.isArray(i.children)?n:t;return a?o(r,i,a):o(r,i)}}function qk(e,t){return n;function n(n,r,i,a){let o=Array.isArray(i.children),s=Sk(n);return t(r,i,a,o,{columnNumber:s?s.column-1:void 0,fileName:e,lineNumber:s?s.line:void 0},void 0)}}function Jk(e,t){let n={},r,i;for(i in t.properties)if(i!==`children`&&jk.call(t.properties,i)){let a=Zk(e,i,t.properties[i]);if(a){let[i,o]=a;e.tableCellAlignToStyle&&i===`align`&&typeof o==`string`&&Fk.has(t.tagName)?r=o:n[i]=o}}if(r){let t=n.style||={};t[e.stylePropertyNameCase===`css`?`text-align`:`textAlign`]=r}return n}function Yk(e,t){let n={};for(let r of t.attributes)if(r.type===`mdxJsxExpressionAttribute`)if(r.data&&r.data.estree&&e.evaluater){let t=r.data.estree.body[0];t.type;let i=t.expression;i.type;let a=i.properties[0];a.type,Object.assign(n,e.evaluater.evaluateExpression(a.argument))}else eA(e,t.position);else{let i=r.name,a;if(r.value&&typeof r.value==`object`)if(r.value.data&&r.value.data.estree&&e.evaluater){let t=r.value.data.estree.body[0];t.type,a=e.evaluater.evaluateExpression(t.expression)}else eA(e,t.position);else a=r.value===null||r.value;n[i]=a}return n}function Xk(e,t){let n=[],r=-1,i=e.passKeys?new Map:Mk;for(;++ri?0:i+t:t>i?i:t,n=n>0?n:0,r.length<1e4)o=Array.from(r),o.unshift(t,n),e.splice(...o);else for(n&&e.splice(t,n);a0?(fA(e,e.length,0,t),e):t}var mA={}.hasOwnProperty;function hA(e){let t={},n=-1;for(;++n13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)==65535||(n&65535)==65534||n>1114111?`�`:String.fromCodePoint(n)}function yA(e){return e.replace(/[\t\n\r ]+/g,` `).replace(/^ | $/g,``).toLowerCase().toUpperCase()}var bA=jA(/[A-Za-z]/),xA=jA(/[\dA-Za-z]/),SA=jA(/[#-'*+\--9=?A-Z^-~]/);function CA(e){return e!==null&&(e<32||e===127)}var wA=jA(/\d/),TA=jA(/[\dA-Fa-f]/),EA=jA(/[!-/:-@[-`{-~]/);function $(e){return e!==null&&e<-2}function DA(e){return e!==null&&(e<0||e===32)}function OA(e){return e===-2||e===-1||e===32}var kA=jA(/\p{P}|\p{S}/u),AA=jA(/\s/);function jA(e){return t;function t(t){return t!==null&&t>-1&&e.test(String.fromCharCode(t))}}function MA(e){let t=[],n=-1,r=0,i=0;for(;++n55295&&a<57344){let t=e.charCodeAt(n+1);a<56320&&t>56319&&t<57344?(o=String.fromCharCode(a,t),i=1):o=`�`}else o=String.fromCharCode(a);o&&=(t.push(e.slice(r,n),encodeURIComponent(o)),r=n+i+1,``),i&&=(n+=i,0)}return t.join(``)+e.slice(r)}function NA(e,t,n,r){let i=r?r-1:1/0,a=0;return o;function o(r){return OA(r)?(e.enter(n),s(r)):t(r)}function s(r){return OA(r)&&a++o))return;let n=t.events.length,a=n,s,c;for(;a--;)if(t.events[a][0]===`exit`&&t.events[a][1].type===`chunkFlow`){if(s){c=t.events[a][1].end;break}s=!0}for(_(r),e=n;er;){let r=n[i];t.containerState=r[1],r[0].exit.call(t,e)}n.length=r}function v(){i.write([null]),a=void 0,i=void 0,t.containerState._closeFlow=void 0}}function zA(e,t,n){return NA(e,e.attempt(this.parser.constructs.document,t,n),`linePrefix`,this.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)}function BA(e){if(e===null||DA(e)||AA(e))return 1;if(kA(e))return 2}function VA(e,t,n){let r=[],i=-1;for(;++i1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;let d={...e[r][1].end},f={...e[n][1].start};GA(d,-c),GA(f,c),o={type:c>1?`strongSequence`:`emphasisSequence`,start:d,end:{...e[r][1].end}},s={type:c>1?`strongSequence`:`emphasisSequence`,start:{...e[n][1].start},end:f},a={type:c>1?`strongText`:`emphasisText`,start:{...e[r][1].end},end:{...e[n][1].start}},i={type:c>1?`strong`:`emphasis`,start:{...o.start},end:{...s.end}},e[r][1].end={...o.start},e[n][1].start={...s.end},l=[],e[r][1].end.offset-e[r][1].start.offset&&(l=pA(l,[[`enter`,e[r][1],t],[`exit`,e[r][1],t]])),l=pA(l,[[`enter`,i,t],[`enter`,o,t],[`exit`,o,t],[`enter`,a,t]]),l=pA(l,VA(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),l=pA(l,[[`exit`,a,t],[`enter`,s,t],[`exit`,s,t],[`exit`,i,t]]),e[n][1].end.offset-e[n][1].start.offset?(u=2,l=pA(l,[[`enter`,e[n][1],t],[`exit`,e[n][1],t]])):u=0,fA(e,r-1,n-r+3,l),n=r+l.length-u-2;break}}for(n=-1;++n0&&OA(t)?NA(e,v,`linePrefix`,a+1)(t):v(t)}function v(t){return t===null||$(t)?e.check(ij,h,b)(t):(e.enter(`codeFlowValue`),y(t))}function y(t){return t===null||$(t)?(e.exit(`codeFlowValue`),v(t)):(e.consume(t),y)}function b(n){return e.exit(`codeFenced`),t(n)}function x(e,t,n){let i=0;return a;function a(t){return e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),c}function c(t){return e.enter(`codeFencedFence`),OA(t)?NA(e,l,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):l(t)}function l(t){return t===s?(e.enter(`codeFencedFenceSequence`),u(t)):n(t)}function u(t){return t===s?(i++,e.consume(t),u):i>=o?(e.exit(`codeFencedFenceSequence`),OA(t)?NA(e,d,`whitespace`)(t):d(t)):n(t)}function d(r){return r===null||$(r)?(e.exit(`codeFencedFence`),t(r)):n(r)}}}function sj(e,t,n){let r=this;return i;function i(t){return t===null?n(t):(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),a)}function a(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}var cj={name:`codeIndented`,tokenize:uj},lj={partial:!0,tokenize:dj};function uj(e,t,n){let r=this;return i;function i(t){return e.enter(`codeIndented`),NA(e,a,`linePrefix`,5)(t)}function a(e){let t=r.events[r.events.length-1];return t&&t[1].type===`linePrefix`&&t[2].sliceSerialize(t[1],!0).length>=4?o(e):n(e)}function o(t){return t===null?c(t):$(t)?e.attempt(lj,o,c)(t):(e.enter(`codeFlowValue`),s(t))}function s(t){return t===null||$(t)?(e.exit(`codeFlowValue`),o(t)):(e.consume(t),s)}function c(n){return e.exit(`codeIndented`),t(n)}}function dj(e,t,n){let r=this;return i;function i(t){return r.parser.lazy[r.now().line]?n(t):$(t)?(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),i):NA(e,a,`linePrefix`,5)(t)}function a(e){let a=r.events[r.events.length-1];return a&&a[1].type===`linePrefix`&&a[2].sliceSerialize(a[1],!0).length>=4?t(e):$(e)?i(e):n(e)}}var fj={name:`codeText`,previous:mj,resolve:pj,tokenize:hj};function pj(e){let t=e.length-4,n=3,r,i;if((e[n][1].type===`lineEnding`||e[n][1].type===`space`)&&(e[t][1].type===`lineEnding`||e[t][1].type===`space`)){for(r=n;++r=this.left.length+this.right.length)throw RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return ethis.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(e,t,n){let r=t||0;this.setCursor(Math.trunc(e));let i=this.right.splice(this.right.length-r,1/0);return n&&_j(this.left,n),i.reverse()}pop(){return this.setCursor(1/0),this.left.pop()}push(e){this.setCursor(1/0),this.left.push(e)}pushMany(e){this.setCursor(1/0),_j(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),_j(this.right,e.reverse())}setCursor(e){if(!(e===this.left.length||e>this.left.length&&this.right.length===0||e<0&&this.left.length===0))if(e=4?t(i):e.interrupt(r.parser.constructs.flow,n,t)(i)}}function Tj(e,t,n,r,i,a,o,s,c){let l=c||1/0,u=0;return d;function d(t){return t===60?(e.enter(r),e.enter(i),e.enter(a),e.consume(t),e.exit(a),f):t===null||t===32||t===41||CA(t)?n(t):(e.enter(r),e.enter(o),e.enter(s),e.enter(`chunkString`,{contentType:`string`}),h(t))}function f(n){return n===62?(e.enter(a),e.consume(n),e.exit(a),e.exit(i),e.exit(r),t):(e.enter(s),e.enter(`chunkString`,{contentType:`string`}),p(n))}function p(t){return t===62?(e.exit(`chunkString`),e.exit(s),f(t)):t===null||t===60||$(t)?n(t):(e.consume(t),t===92?m:p)}function m(t){return t===60||t===62||t===92?(e.consume(t),p):p(t)}function h(i){return!u&&(i===null||i===41||DA(i))?(e.exit(`chunkString`),e.exit(s),e.exit(o),e.exit(r),t(i)):u999||l===null||l===91||l===93&&!c||l===94&&!s&&`_hiddenFootnoteSupport`in o.parser.constructs?n(l):l===93?(e.exit(a),e.enter(i),e.consume(l),e.exit(i),e.exit(r),t):$(l)?(e.enter(`lineEnding`),e.consume(l),e.exit(`lineEnding`),u):(e.enter(`chunkString`,{contentType:`string`}),d(l))}function d(t){return t===null||t===91||t===93||$(t)||s++>999?(e.exit(`chunkString`),u(t)):(e.consume(t),c||=!OA(t),t===92?f:d)}function f(t){return t===91||t===92||t===93?(e.consume(t),s++,d):d(t)}}function Dj(e,t,n,r,i,a){let o;return s;function s(t){return t===34||t===39||t===40?(e.enter(r),e.enter(i),e.consume(t),e.exit(i),o=t===40?41:t,c):n(t)}function c(n){return n===o?(e.enter(i),e.consume(n),e.exit(i),e.exit(r),t):(e.enter(a),l(n))}function l(t){return t===o?(e.exit(a),c(o)):t===null?n(t):$(t)?(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),NA(e,l,`linePrefix`)):(e.enter(`chunkString`,{contentType:`string`}),u(t))}function u(t){return t===o||t===null||$(t)?(e.exit(`chunkString`),l(t)):(e.consume(t),t===92?d:u)}function d(t){return t===o||t===92?(e.consume(t),u):u(t)}}function Oj(e,t){let n;return r;function r(i){return $(i)?(e.enter(`lineEnding`),e.consume(i),e.exit(`lineEnding`),n=!0,r):OA(i)?NA(e,r,n?`linePrefix`:`lineSuffix`)(i):t(i)}}var kj={name:`definition`,tokenize:jj},Aj={partial:!0,tokenize:Mj};function jj(e,t,n){let r=this,i;return a;function a(t){return e.enter(`definition`),o(t)}function o(t){return Ej.call(r,e,s,n,`definitionLabel`,`definitionLabelMarker`,`definitionLabelString`)(t)}function s(t){return i=yA(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),t===58?(e.enter(`definitionMarker`),e.consume(t),e.exit(`definitionMarker`),c):n(t)}function c(t){return DA(t)?Oj(e,l)(t):l(t)}function l(t){return Tj(e,u,n,`definitionDestination`,`definitionDestinationLiteral`,`definitionDestinationLiteralMarker`,`definitionDestinationRaw`,`definitionDestinationString`)(t)}function u(t){return e.attempt(Aj,d,d)(t)}function d(t){return OA(t)?NA(e,f,`whitespace`)(t):f(t)}function f(a){return a===null||$(a)?(e.exit(`definition`),r.parser.defined.push(i),t(a)):n(a)}}function Mj(e,t,n){return r;function r(t){return DA(t)?Oj(e,i)(t):n(t)}function i(t){return Dj(e,a,n,`definitionTitle`,`definitionTitleMarker`,`definitionTitleString`)(t)}function a(t){return OA(t)?NA(e,o,`whitespace`)(t):o(t)}function o(e){return e===null||$(e)?t(e):n(e)}}var Nj={name:`hardBreakEscape`,tokenize:Pj};function Pj(e,t,n){return r;function r(t){return e.enter(`hardBreakEscape`),e.consume(t),i}function i(r){return $(r)?(e.exit(`hardBreakEscape`),t(r)):n(r)}}var Fj={name:`headingAtx`,resolve:Ij,tokenize:Lj};function Ij(e,t){let n=e.length-2,r=3,i,a;return e[r][1].type===`whitespace`&&(r+=2),n-2>r&&e[n][1].type===`whitespace`&&(n-=2),e[n][1].type===`atxHeadingSequence`&&(r===n-1||n-4>r&&e[n-2][1].type===`whitespace`)&&(n-=r+1===n?2:4),n>r&&(i={type:`atxHeadingText`,start:e[r][1].start,end:e[n][1].end},a={type:`chunkText`,start:e[r][1].start,end:e[n][1].end,contentType:`text`},fA(e,r,n-r+1,[[`enter`,i,t],[`enter`,a,t],[`exit`,a,t],[`exit`,i,t]])),e}function Lj(e,t,n){let r=0;return i;function i(t){return e.enter(`atxHeading`),a(t)}function a(t){return e.enter(`atxHeadingSequence`),o(t)}function o(t){return t===35&&r++<6?(e.consume(t),o):t===null||DA(t)?(e.exit(`atxHeadingSequence`),s(t)):n(t)}function s(n){return n===35?(e.enter(`atxHeadingSequence`),c(n)):n===null||$(n)?(e.exit(`atxHeading`),t(n)):OA(n)?NA(e,s,`whitespace`)(n):(e.enter(`atxHeadingText`),l(n))}function c(t){return t===35?(e.consume(t),c):(e.exit(`atxHeadingSequence`),s(t))}function l(t){return t===null||t===35||DA(t)?(e.exit(`atxHeadingText`),s(t)):(e.consume(t),l)}}var Rj=`address.article.aside.base.basefont.blockquote.body.caption.center.col.colgroup.dd.details.dialog.dir.div.dl.dt.fieldset.figcaption.figure.footer.form.frame.frameset.h1.h2.h3.h4.h5.h6.head.header.hr.html.iframe.legend.li.link.main.menu.menuitem.nav.noframes.ol.optgroup.option.p.param.search.section.summary.table.tbody.td.tfoot.th.thead.title.tr.track.ul`.split(`.`),zj=[`pre`,`script`,`style`,`textarea`],Bj={concrete:!0,name:`htmlFlow`,resolveTo:Uj,tokenize:Wj},Vj={partial:!0,tokenize:Kj},Hj={partial:!0,tokenize:Gj};function Uj(e){let t=e.length;for(;t--&&(e[t][0]!==`enter`||e[t][1].type!==`htmlFlow`););return t>1&&e[t-2][1].type===`linePrefix`&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function Wj(e,t,n){let r=this,i,a,o,s,c;return l;function l(e){return u(e)}function u(t){return e.enter(`htmlFlow`),e.enter(`htmlFlowData`),e.consume(t),d}function d(s){return s===33?(e.consume(s),f):s===47?(e.consume(s),a=!0,h):s===63?(e.consume(s),i=3,r.interrupt?t:ie):bA(s)?(e.consume(s),o=String.fromCharCode(s),g):n(s)}function f(a){return a===45?(e.consume(a),i=2,p):a===91?(e.consume(a),i=5,s=0,m):bA(a)?(e.consume(a),i=4,r.interrupt?t:ie):n(a)}function p(i){return i===45?(e.consume(i),r.interrupt?t:ie):n(i)}function m(i){return i===`CDATA[`.charCodeAt(s++)?(e.consume(i),s===6?r.interrupt?t:O:m):n(i)}function h(t){return bA(t)?(e.consume(t),o=String.fromCharCode(t),g):n(t)}function g(s){if(s===null||s===47||s===62||DA(s)){let c=s===47,l=o.toLowerCase();return!c&&!a&&zj.includes(l)?(i=1,r.interrupt?t(s):O(s)):Rj.includes(o.toLowerCase())?(i=6,c?(e.consume(s),_):r.interrupt?t(s):O(s)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(s):a?v(s):y(s))}return s===45||xA(s)?(e.consume(s),o+=String.fromCharCode(s),g):n(s)}function _(i){return i===62?(e.consume(i),r.interrupt?t:O):n(i)}function v(t){return OA(t)?(e.consume(t),v):E(t)}function y(t){return t===47?(e.consume(t),E):t===58||t===95||bA(t)?(e.consume(t),b):OA(t)?(e.consume(t),y):E(t)}function b(t){return t===45||t===46||t===58||t===95||xA(t)?(e.consume(t),b):x(t)}function x(t){return t===61?(e.consume(t),S):OA(t)?(e.consume(t),x):y(t)}function S(t){return t===null||t===60||t===61||t===62||t===96?n(t):t===34||t===39?(e.consume(t),c=t,C):OA(t)?(e.consume(t),S):w(t)}function C(t){return t===c?(e.consume(t),c=null,T):t===null||$(t)?n(t):(e.consume(t),C)}function w(t){return t===null||t===34||t===39||t===47||t===60||t===61||t===62||t===96||DA(t)?x(t):(e.consume(t),w)}function T(e){return e===47||e===62||OA(e)?y(e):n(e)}function E(t){return t===62?(e.consume(t),D):n(t)}function D(t){return t===null||$(t)?O(t):OA(t)?(e.consume(t),D):n(t)}function O(t){return t===45&&i===2?(e.consume(t),A):t===60&&i===1?(e.consume(t),ne):t===62&&i===4?(e.consume(t),ae):t===63&&i===3?(e.consume(t),ie):t===93&&i===5?(e.consume(t),re):$(t)&&(i===6||i===7)?(e.exit(`htmlFlowData`),e.check(Vj,oe,k)(t)):t===null||$(t)?(e.exit(`htmlFlowData`),k(t)):(e.consume(t),O)}function k(t){return e.check(Hj,ee,oe)(t)}function ee(t){return e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),te}function te(t){return t===null||$(t)?k(t):(e.enter(`htmlFlowData`),O(t))}function A(t){return t===45?(e.consume(t),ie):O(t)}function ne(t){return t===47?(e.consume(t),o=``,j):O(t)}function j(t){if(t===62){let n=o.toLowerCase();return zj.includes(n)?(e.consume(t),ae):O(t)}return bA(t)&&o.length<8?(e.consume(t),o+=String.fromCharCode(t),j):O(t)}function re(t){return t===93?(e.consume(t),ie):O(t)}function ie(t){return t===62?(e.consume(t),ae):t===45&&i===2?(e.consume(t),ie):O(t)}function ae(t){return t===null||$(t)?(e.exit(`htmlFlowData`),oe(t)):(e.consume(t),ae)}function oe(n){return e.exit(`htmlFlow`),t(n)}}function Gj(e,t,n){let r=this;return i;function i(t){return $(t)?(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),a):n(t)}function a(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}function Kj(e,t,n){return r;function r(r){return e.enter(`lineEnding`),e.consume(r),e.exit(`lineEnding`),e.attempt(JA,t,n)}}var qj={name:`htmlText`,tokenize:Jj};function Jj(e,t,n){let r=this,i,a,o;return s;function s(t){return e.enter(`htmlText`),e.enter(`htmlTextData`),e.consume(t),c}function c(t){return t===33?(e.consume(t),l):t===47?(e.consume(t),x):t===63?(e.consume(t),y):bA(t)?(e.consume(t),w):n(t)}function l(t){return t===45?(e.consume(t),u):t===91?(e.consume(t),a=0,m):bA(t)?(e.consume(t),v):n(t)}function u(t){return t===45?(e.consume(t),p):n(t)}function d(t){return t===null?n(t):t===45?(e.consume(t),f):$(t)?(o=d,ne(t)):(e.consume(t),d)}function f(t){return t===45?(e.consume(t),p):d(t)}function p(e){return e===62?A(e):e===45?f(e):d(e)}function m(t){return t===`CDATA[`.charCodeAt(a++)?(e.consume(t),a===6?h:m):n(t)}function h(t){return t===null?n(t):t===93?(e.consume(t),g):$(t)?(o=h,ne(t)):(e.consume(t),h)}function g(t){return t===93?(e.consume(t),_):h(t)}function _(t){return t===62?A(t):t===93?(e.consume(t),_):h(t)}function v(t){return t===null||t===62?A(t):$(t)?(o=v,ne(t)):(e.consume(t),v)}function y(t){return t===null?n(t):t===63?(e.consume(t),b):$(t)?(o=y,ne(t)):(e.consume(t),y)}function b(e){return e===62?A(e):y(e)}function x(t){return bA(t)?(e.consume(t),S):n(t)}function S(t){return t===45||xA(t)?(e.consume(t),S):C(t)}function C(t){return $(t)?(o=C,ne(t)):OA(t)?(e.consume(t),C):A(t)}function w(t){return t===45||xA(t)?(e.consume(t),w):t===47||t===62||DA(t)?T(t):n(t)}function T(t){return t===47?(e.consume(t),A):t===58||t===95||bA(t)?(e.consume(t),E):$(t)?(o=T,ne(t)):OA(t)?(e.consume(t),T):A(t)}function E(t){return t===45||t===46||t===58||t===95||xA(t)?(e.consume(t),E):D(t)}function D(t){return t===61?(e.consume(t),O):$(t)?(o=D,ne(t)):OA(t)?(e.consume(t),D):T(t)}function O(t){return t===null||t===60||t===61||t===62||t===96?n(t):t===34||t===39?(e.consume(t),i=t,k):$(t)?(o=O,ne(t)):OA(t)?(e.consume(t),O):(e.consume(t),ee)}function k(t){return t===i?(e.consume(t),i=void 0,te):t===null?n(t):$(t)?(o=k,ne(t)):(e.consume(t),k)}function ee(t){return t===null||t===34||t===39||t===60||t===61||t===96?n(t):t===47||t===62||DA(t)?T(t):(e.consume(t),ee)}function te(e){return e===47||e===62||DA(e)?T(e):n(e)}function A(r){return r===62?(e.consume(r),e.exit(`htmlTextData`),e.exit(`htmlText`),t):n(r)}function ne(t){return e.exit(`htmlTextData`),e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),j}function j(t){return OA(t)?NA(e,re,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):re(t)}function re(t){return e.enter(`htmlTextData`),o(t)}}var Yj={name:`labelEnd`,resolveAll:$j,resolveTo:eM,tokenize:tM},Xj={tokenize:nM},Zj={tokenize:rM},Qj={tokenize:iM};function $j(e){let t=-1,n=[];for(;++t=3&&(a===null||$(a))?(e.exit(`thematicBreak`),t(a)):n(a)}function c(t){return t===i?(e.consume(t),r++,c):(e.exit(`thematicBreakSequence`),OA(t)?NA(e,s,`whitespace`)(t):s(t))}}var pM={continuation:{tokenize:_M},exit:yM,name:`list`,tokenize:gM},mM={partial:!0,tokenize:bM},hM={partial:!0,tokenize:vM};function gM(e,t,n){let r=this,i=r.events[r.events.length-1],a=i&&i[1].type===`linePrefix`?i[2].sliceSerialize(i[1],!0).length:0,o=0;return s;function s(t){let i=r.containerState.type||(t===42||t===43||t===45?`listUnordered`:`listOrdered`);if(i===`listUnordered`?!r.containerState.marker||t===r.containerState.marker:wA(t)){if(r.containerState.type||(r.containerState.type=i,e.enter(i,{_container:!0})),i===`listUnordered`)return e.enter(`listItemPrefix`),t===42||t===45?e.check(dM,n,l)(t):l(t);if(!r.interrupt||t===49)return e.enter(`listItemPrefix`),e.enter(`listItemValue`),c(t)}return n(t)}function c(t){return wA(t)&&++o<10?(e.consume(t),c):(!r.interrupt||o<2)&&(r.containerState.marker?t===r.containerState.marker:t===41||t===46)?(e.exit(`listItemValue`),l(t)):n(t)}function l(t){return e.enter(`listItemMarker`),e.consume(t),e.exit(`listItemMarker`),r.containerState.marker=r.containerState.marker||t,e.check(JA,r.interrupt?n:u,e.attempt(mM,f,d))}function u(e){return r.containerState.initialBlankLine=!0,a++,f(e)}function d(t){return OA(t)?(e.enter(`listItemPrefixWhitespace`),e.consume(t),e.exit(`listItemPrefixWhitespace`),f):n(t)}function f(n){return r.containerState.size=a+r.sliceSerialize(e.exit(`listItemPrefix`),!0).length,t(n)}}function _M(e,t,n){let r=this;return r.containerState._closeFlow=void 0,e.check(JA,i,a);function i(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,NA(e,t,`listItemIndent`,r.containerState.size+1)(n)}function a(n){return r.containerState.furtherBlankLines||!OA(n)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(n)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(hM,t,o)(n))}function o(i){return r.containerState._closeFlow=!0,r.interrupt=void 0,NA(e,e.attempt(pM,t,n),`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(i)}}function vM(e,t,n){let r=this;return NA(e,i,`listItemIndent`,r.containerState.size+1);function i(e){let i=r.events[r.events.length-1];return i&&i[1].type===`listItemIndent`&&i[2].sliceSerialize(i[1],!0).length===r.containerState.size?t(e):n(e)}}function yM(e){e.exit(this.containerState.type)}function bM(e,t,n){let r=this;return NA(e,i,`listItemPrefixWhitespace`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:5);function i(e){let i=r.events[r.events.length-1];return!OA(e)&&i&&i[1].type===`listItemPrefixWhitespace`?t(e):n(e)}}var xM={name:`setextUnderline`,resolveTo:SM,tokenize:CM};function SM(e,t){let n=e.length,r,i,a;for(;n--;)if(e[n][0]===`enter`){if(e[n][1].type===`content`){r=n;break}e[n][1].type===`paragraph`&&(i=n)}else e[n][1].type===`content`&&e.splice(n,1),!a&&e[n][1].type===`definition`&&(a=n);let o={type:`setextHeading`,start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type=`setextHeadingText`,a?(e.splice(i,0,[`enter`,o,t]),e.splice(a+1,0,[`exit`,e[r][1],t]),e[r][1].end={...e[a][1].end}):e[r][1]=o,e.push([`exit`,o,t]),e}function CM(e,t,n){let r=this,i;return a;function a(t){let a=r.events.length,s;for(;a--;)if(r.events[a][1].type!==`lineEnding`&&r.events[a][1].type!==`linePrefix`&&r.events[a][1].type!==`content`){s=r.events[a][1].type===`paragraph`;break}return!r.parser.lazy[r.now().line]&&(r.interrupt||s)?(e.enter(`setextHeadingLine`),i=t,o(t)):n(t)}function o(t){return e.enter(`setextHeadingLineSequence`),s(t)}function s(t){return t===i?(e.consume(t),s):(e.exit(`setextHeadingLineSequence`),OA(t)?NA(e,c,`lineSuffix`)(t):c(t))}function c(r){return r===null||$(r)?(e.exit(`setextHeadingLine`),t(r)):n(r)}}var wM={tokenize:TM};function TM(e){let t=this,n=e.attempt(JA,r,e.attempt(this.parser.constructs.flowInitial,i,NA(e,e.attempt(this.parser.constructs.flow,i,e.attempt(bj,i)),`linePrefix`)));return n;function r(r){if(r===null){e.consume(r);return}return e.enter(`lineEndingBlank`),e.consume(r),e.exit(`lineEndingBlank`),t.currentConstruct=void 0,n}function i(r){if(r===null){e.consume(r);return}return e.enter(`lineEnding`),e.consume(r),e.exit(`lineEnding`),t.currentConstruct=void 0,n}}var EM={resolveAll:AM()},DM=kM(`string`),OM=kM(`text`);function kM(e){return{resolveAll:AM(e===`text`?jM:void 0),tokenize:t};function t(t){let n=this,r=this.parser.constructs[e],i=t.attempt(r,a,o);return a;function a(e){return c(e)?i(e):o(e)}function o(e){if(e===null){t.consume(e);return}return t.enter(`data`),t.consume(e),s}function s(e){return c(e)?(t.exit(`data`),i(e)):(t.consume(e),s)}function c(e){if(e===null)return!0;let t=r[e],i=-1;if(t)for(;++iBM,contentInitial:()=>PM,disable:()=>VM,document:()=>NM,flow:()=>IM,flowInitial:()=>FM,insideSpan:()=>zM,string:()=>LM,text:()=>RM}),NM={42:pM,43:pM,45:pM,48:pM,49:pM,50:pM,51:pM,52:pM,53:pM,54:pM,55:pM,56:pM,57:pM,62:XA},PM={91:kj},FM={[-2]:cj,[-1]:cj,32:cj},IM={35:Fj,42:dM,45:[xM,dM],60:Bj,61:xM,95:dM,96:aj,126:aj},LM={38:nj,92:ej},RM={[-5]:lM,[-4]:lM,[-3]:lM,33:aM,38:nj,42:HA,60:[KA,qj],91:sM,92:[Nj,ej],93:Yj,95:HA,96:fj},zM={null:[HA,EM]},BM={null:[42,95]},VM={null:[]};function HM(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0},i={},a=[],o=[],s=[],c={attempt:C(x),check:C(S),consume:v,enter:y,exit:b,interrupt:C(S,{interrupt:!0})},l={code:null,containerState:{},defineSkip:h,events:[],now:m,parser:e,previous:null,sliceSerialize:f,sliceStream:p,write:d},u=t.tokenize.call(l,c);return t.resolveAll&&a.push(t),l;function d(e){return o=pA(o,e),g(),o[o.length-1]===null?(w(t,0),l.events=VA(a,l.events,l),l.events):[]}function f(e,t){return WM(p(e),t)}function p(e){return UM(o,e)}function m(){let{_bufferIndex:e,_index:t,line:n,column:i,offset:a}=r;return{_bufferIndex:e,_index:t,line:n,column:i,offset:a}}function h(e){i[e.line]=e.column,E()}function g(){let e;for(;r._index-1){let e=o[0];typeof e==`string`?o[0]=e.slice(r):o.shift()}a>0&&o.push(e[i].slice(0,a))}return o}function WM(e,t){let n=-1,r=[],i;for(;++n0){let e=a.tokenStack[a.tokenStack.length-1];(e[1]||iN).call(a,void 0,e[0])}for(r.position={start:tN(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:tN(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},d=-1;++d0&&(r.className=[`language-`+i[0]]);let a={type:`element`,tagName:`code`,properties:r,children:[{type:`text`,value:n}]};return t.meta&&(a.data={meta:t.meta}),e.patch(t,a),a=e.applyData(t,a),a={type:`element`,tagName:`pre`,properties:{},children:[a]},e.patch(t,a),a}function lN(e,t){let n={type:`element`,tagName:`del`,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function uN(e,t){let n={type:`element`,tagName:`em`,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function dN(e,t){let n=typeof e.options.clobberPrefix==`string`?e.options.clobberPrefix:`user-content-`,r=String(t.identifier).toUpperCase(),i=MA(r.toLowerCase()),a=e.footnoteOrder.indexOf(r),o,s=e.footnoteCounts.get(r);s===void 0?(s=0,e.footnoteOrder.push(r),o=e.footnoteOrder.length):o=a+1,s+=1,e.footnoteCounts.set(r,s);let c={type:`element`,tagName:`a`,properties:{href:`#`+n+`fn-`+i,id:n+`fnref-`+i+(s>1?`-`+s:``),dataFootnoteRef:!0,ariaDescribedBy:[`footnote-label`]},children:[{type:`text`,value:String(o)}]};e.patch(t,c);let l={type:`element`,tagName:`sup`,properties:{},children:[c]};return e.patch(t,l),e.applyData(t,l)}function fN(e,t){let n={type:`element`,tagName:`h`+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function pN(e,t){if(e.options.allowDangerousHtml){let n={type:`raw`,value:t.value};return e.patch(t,n),e.applyData(t,n)}}function mN(e,t){let n=t.referenceType,r=`]`;if(n===`collapsed`?r+=`[]`:n===`full`&&(r+=`[`+(t.label||t.identifier)+`]`),t.type===`imageReference`)return[{type:`text`,value:`![`+t.alt+r}];let i=e.all(t),a=i[0];a&&a.type===`text`?a.value=`[`+a.value:i.unshift({type:`text`,value:`[`});let o=i[i.length-1];return o&&o.type===`text`?o.value+=r:i.push({type:`text`,value:r}),i}function hN(e,t){let n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return mN(e,t);let i={src:MA(r.url||``),alt:t.alt};r.title!==null&&r.title!==void 0&&(i.title=r.title);let a={type:`element`,tagName:`img`,properties:i,children:[]};return e.patch(t,a),e.applyData(t,a)}function gN(e,t){let n={src:MA(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);let r={type:`element`,tagName:`img`,properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function _N(e,t){let n={type:`text`,value:t.value.replace(/\r?\n|\r/g,` `)};e.patch(t,n);let r={type:`element`,tagName:`code`,properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function vN(e,t){let n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return mN(e,t);let i={href:MA(r.url||``)};r.title!==null&&r.title!==void 0&&(i.title=r.title);let a={type:`element`,tagName:`a`,properties:i,children:e.all(t)};return e.patch(t,a),e.applyData(t,a)}function yN(e,t){let n={href:MA(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);let r={type:`element`,tagName:`a`,properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function bN(e,t,n){let r=e.all(t),i=n?xN(n):SN(t),a={},o=[];if(typeof t.checked==`boolean`){let e=r[0],n;e&&e.type===`element`&&e.tagName===`p`?n=e:(n={type:`element`,tagName:`p`,properties:{},children:[]},r.unshift(n)),n.children.length>0&&n.children.unshift({type:`text`,value:` `}),n.children.unshift({type:`element`,tagName:`input`,properties:{type:`checkbox`,checked:t.checked,disabled:!0},children:[]}),a.className=[`task-list-item`]}let s=-1;for(;++s1}function CN(e,t){let n={},r=e.all(t),i=-1;for(typeof t.start==`number`&&t.start!==1&&(n.start=t.start);++i0){let r={type:`element`,tagName:`tbody`,properties:{},children:e.wrap(n,!0)},a=Sk(t.children[1]),o=xk(t.children[t.children.length-1]);a&&o&&(r.position={start:a,end:o}),i.push(r)}let a={type:`element`,tagName:`table`,properties:{},children:e.wrap(i,!0)};return e.patch(t,a),e.applyData(t,a)}function ON(e,t,n){let r=n?n.children:void 0,i=(r?r.indexOf(t):1)===0?`th`:`td`,a=n&&n.type===`table`?n.align:void 0,o=a?a.length:t.children.length,s=-1,c=[];for(;++s0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return a.push(NN(t.slice(i),i>0,!1)),a.join(``)}function NN(e,t,n){let r=0,i=e.length;if(t){let t=e.codePointAt(r);for(;t===AN||t===jN;)r++,t=e.codePointAt(r)}if(n){let t=e.codePointAt(i-1);for(;t===AN||t===jN;)i--,t=e.codePointAt(i-1)}return i>r?e.slice(r,i):``}function PN(e,t){let n={type:`text`,value:MN(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function FN(e,t){let n={type:`element`,tagName:`hr`,properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}var IN={blockquote:oN,break:sN,code:cN,delete:lN,emphasis:uN,footnoteReference:dN,heading:fN,html:pN,imageReference:hN,image:gN,inlineCode:_N,linkReference:vN,link:yN,listItem:bN,list:CN,paragraph:wN,root:TN,strong:EN,table:DN,tableCell:kN,tableRow:ON,text:PN,thematicBreak:FN,toml:LN,yaml:LN,definition:LN,footnoteDefinition:LN};function LN(){}var RN=typeof self==`object`?self:globalThis,zN=(e,t)=>{switch(e){case`Function`:case`SharedWorker`:case`Worker`:case`eval`:case`setInterval`:case`setTimeout`:throw TypeError(`unable to deserialize `+e)}return new RN[e](t)},BN=(e,t)=>{let n=(t,n)=>(e.set(n,t),t),r=i=>{if(e.has(i))return e.get(i);let[a,o]=t[i];switch(a){case 0:case-1:return n(o,i);case 1:{let e=n([],i);for(let t of o)e.push(r(t));return e}case 2:{let e=n({},i);for(let[t,n]of o)e[r(t)]=r(n);return e}case 3:return n(new Date(o),i);case 4:{let{source:e,flags:t}=o;return n(new RegExp(e,t),i)}case 5:{let e=n(new Map,i);for(let[t,n]of o)e.set(r(t),r(n));return e}case 6:{let e=n(new Set,i);for(let t of o)e.add(r(t));return e}case 7:{let{name:e,message:t}=o;return n(typeof RN[e]==`function`?zN(e,t):Error(t),i)}case 8:return n(BigInt(o),i);case`BigInt`:return n(Object(BigInt(o)),i);case`ArrayBuffer`:return n(new Uint8Array(o).buffer,o);case`DataView`:{let{buffer:e}=new Uint8Array(o);return n(new DataView(e),o)}}return n(zN(a,o),i)};return r},VN=e=>BN(new Map,e)(0),HN=``,{toString:UN}={},{keys:WN}=Object,GN=e=>{let t=typeof e;if(t!==`object`||!e)return[0,t];let n=UN.call(e).slice(8,-1);switch(n){case`Array`:return[1,HN];case`Object`:return[2,HN];case`Date`:return[3,HN];case`RegExp`:return[4,HN];case`Map`:return[5,HN];case`Set`:return[6,HN];case`DataView`:return[1,n]}return n.includes(`Array`)?[1,n]:e instanceof Error?[7,e.name||`Error`]:[2,n]},KN=([e,t])=>e===0&&(t===`function`||t===`symbol`),qN=(e,t,n,r)=>{let i=(e,t)=>{let i=r.push(e)-1;return n.set(t,i),i},a=r=>{if(n.has(r))return n.get(r);let[o,s]=GN(r);switch(o){case 0:{let t=r;switch(s){case`bigint`:o=8,t=r.toString();break;case`function`:case`symbol`:if(e)throw TypeError(`unable to serialize `+s);t=null;break;case`undefined`:return i([-1],r)}return i([o,t],r)}case 1:{if(s){let e=r;return s===`DataView`?e=new Uint8Array(r.buffer):s===`ArrayBuffer`&&(e=new Uint8Array(r)),i([s,[...e]],r)}let e=[],t=i([o,e],r);for(let t of r)e.push(a(t));return t}case 2:{if(s)switch(s){case`BigInt`:return i([s,r.toString()],r);case`Boolean`:case`Number`:case`String`:return i([s,r.valueOf()],r)}if(t&&`toJSON`in r)return a(r.toJSON());let n=[],c=i([o,n],r);for(let t of WN(r))(e||!KN(GN(r[t])))&&n.push([a(t),a(r[t])]);return c}case 3:return i([o,isNaN(r.getTime())?HN:r.toISOString()],r);case 4:{let{source:e,flags:t}=r;return i([o,{source:e,flags:t}],r)}case 5:{let t=[],n=i([o,t],r);for(let[n,i]of r)(e||!(KN(GN(n))||KN(GN(i))))&&t.push([a(n),a(i)]);return n}case 6:{let t=[],n=i([o,t],r);for(let n of r)(e||!KN(GN(n)))&&t.push(a(n));return n}}let{message:c}=r;return i([o,{name:s,message:c}],r)};return a},JN=(e,{json:t,lossy:n}={})=>{let r=[];return qN(!(t||n),!!t,new Map,r)(e),r},YN=typeof structuredClone==`function`?(e,t)=>t&&(`json`in t||`lossy`in t)?VN(JN(e,t)):structuredClone(e):(e,t)=>VN(JN(e,t));function XN(e,t){let n=[{type:`text`,value:`↩`}];return t>1&&n.push({type:`element`,tagName:`sup`,properties:{},children:[{type:`text`,value:String(t)}]}),n}function ZN(e,t){return`Back to reference `+(e+1)+(t>1?`-`+t:``)}function QN(e){let t=typeof e.options.clobberPrefix==`string`?e.options.clobberPrefix:`user-content-`,n=e.options.footnoteBackContent||XN,r=e.options.footnoteBackLabel||ZN,i=e.options.footnoteLabel||`Footnotes`,a=e.options.footnoteLabelTagName||`h2`,o=e.options.footnoteLabelProperties||{className:[`sr-only`]},s=[],c=-1;for(;++c0&&d.push({type:`text`,value:` `});let e=typeof n==`string`?n:n(c,u);typeof e==`string`&&(e={type:`text`,value:e}),d.push({type:`element`,tagName:`a`,properties:{href:`#`+t+`fnref-`+l+(u>1?`-`+u:``),dataFootnoteBackref:``,ariaLabel:typeof r==`string`?r:r(c,u),className:[`data-footnote-backref`]},children:Array.isArray(e)?e:[e]})}let p=a[a.length-1];if(p&&p.type===`element`&&p.tagName===`p`){let e=p.children[p.children.length-1];e&&e.type===`text`?e.value+=` `:p.children.push({type:`text`,value:` `}),p.children.push(...d)}else a.push(...d);let m={type:`element`,tagName:`li`,properties:{id:t+`fn-`+l},children:e.wrap(a,!0)};e.patch(i,m),s.push(m)}if(s.length!==0)return{type:`element`,tagName:`section`,properties:{dataFootnotes:!0,className:[`footnotes`]},children:[{type:`element`,tagName:a,properties:{...YN(o),id:`footnote-label`},children:[{type:`text`,value:i}]},{type:`text`,value:` +`},{type:`element`,tagName:`ol`,properties:{},children:e.wrap(s,!0)},{type:`text`,value:` +`}]}}var $N=(function(e){if(e==null)return iP;if(typeof e==`function`)return rP(e);if(typeof e==`object`)return Array.isArray(e)?eP(e):tP(e);if(typeof e==`string`)return nP(e);throw Error(`Expected function, string, or object as test`)});function eP(e){let t=[],n=-1;for(;++n`:``))+`)`})}return u;function u(){let l=sP,u,d,f;if((!t||a(e,i,c[c.length-1]||void 0))&&(l=lP(n(e,c)),l[0]===!1))return l;if(`children`in e&&e.children){let t=e;if(t.children&&l[0]!==`skip`)for(d=(r?t.children.length:-1)+o,f=c.concat(t);d>-1&&d0&&n.push({type:`text`,value:` +`}),n}function vP(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function yP(e,t){let n=pP(e,t),r=n.one(e,void 0),i=QN(n),a=Array.isArray(r)?{type:`root`,children:r}:r||{type:`root`,children:[]};return i&&(`children`in a,a.children.push({type:`text`,value:` +`},i)),a}function bP(e,t){return e&&`run`in e?async function(n,r){let i=yP(n,{file:r,...t});await e.run(i,r)}:function(n,r){return yP(n,{file:r,...e||t})}}function xP(e){if(e)throw e}var SP=i(((e,t)=>{var n=Object.prototype.hasOwnProperty,r=Object.prototype.toString,i=Object.defineProperty,a=Object.getOwnPropertyDescriptor,o=function(e){return typeof Array.isArray==`function`?Array.isArray(e):r.call(e)===`[object Array]`},s=function(e){if(!e||r.call(e)!==`[object Object]`)return!1;var t=n.call(e,`constructor`),i=e.constructor&&e.constructor.prototype&&n.call(e.constructor.prototype,`isPrototypeOf`);if(e.constructor&&!t&&!i)return!1;for(var a in e);return a===void 0||n.call(e,a)},c=function(e,t){i&&t.name===`__proto__`?i(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(e,t){if(t===`__proto__`){if(!n.call(e,t))return;if(a)return a(e,t).value}return e[t]};t.exports=function e(){var t,n,r,i,a,u,d=arguments[0],f=1,p=arguments.length,m=!1;for(typeof d==`boolean`&&(m=d,d=arguments[1]||{},f=2),(d==null||typeof d!=`object`&&typeof d!=`function`)&&(d={});ft.length,o;r&&t.push(i);try{o=e.apply(this,t)}catch(e){let t=e;if(r&&n)throw t;return i(t)}r||(o&&o.then&&typeof o.then==`function`?o.then(a,i):o instanceof Error?i(o):a(o))}function i(e,...r){n||(n=!0,t(e,...r))}function a(e){i(null,e)}}var EP={basename:DP,dirname:OP,extname:kP,join:AP,sep:`/`};function DP(e,t){if(t!==void 0&&typeof t!=`string`)throw TypeError(`"ext" argument must be a string`);NP(e);let n=0,r=-1,i=e.length,a;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(a){n=i+1;break}}else r<0&&(a=!0,r=i+1);return r<0?``:e.slice(n,r)}if(t===e)return``;let o=-1,s=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(a){n=i+1;break}}else o<0&&(a=!0,o=i+1),s>-1&&(e.codePointAt(i)===t.codePointAt(s--)?s<0&&(r=i):(s=-1,r=o));return n===r?r=o:r<0&&(r=e.length),e.slice(n,r)}function OP(e){if(NP(e),e.length===0)return`.`;let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||=!0;return t<0?e.codePointAt(0)===47?`/`:`.`:t===1&&e.codePointAt(0)===47?`//`:e.slice(0,t)}function kP(e){NP(e);let t=e.length,n=-1,r=0,i=-1,a=0,o;for(;t--;){let s=e.codePointAt(t);if(s===47){if(o){r=t+1;break}continue}n<0&&(o=!0,n=t+1),s===46?i<0?i=t:a!==1&&(a=1):i>-1&&(a=-1)}return i<0||n<0||a===0||a===1&&i===n-1&&i===r+1?``:e.slice(i,n)}function AP(...e){let t=-1,n;for(;++t0&&e.codePointAt(e.length-1)===47&&(n+=`/`),t?`/`+n:n}function MP(e,t){let n=``,r=0,i=-1,a=0,o=-1,s,c;for(;++o<=e.length;){if(o2){if(c=n.lastIndexOf(`/`),c!==n.length-1){c<0?(n=``,r=0):(n=n.slice(0,c),r=n.length-1-n.lastIndexOf(`/`)),i=o,a=0;continue}}else if(n.length>0){n=``,r=0,i=o,a=0;continue}}t&&(n=n.length>0?n+`/..`:`..`,r=2)}else n.length>0?n+=`/`+e.slice(i+1,o):n=e.slice(i+1,o),r=o-i-1;i=o,a=0}else s===46&&a>-1?a++:a=-1}return n}function NP(e){if(typeof e!=`string`)throw TypeError(`Path must be a string. Received `+JSON.stringify(e))}var PP={cwd:FP};function FP(){return`/`}function IP(e){return!!(typeof e==`object`&&e&&`href`in e&&e.href&&`protocol`in e&&e.protocol&&e.auth===void 0)}function LP(e){if(typeof e==`string`)e=new URL(e);else if(!IP(e)){let t=TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code=`ERR_INVALID_ARG_TYPE`,t}if(e.protocol!==`file:`){let e=TypeError(`The URL must be of scheme file`);throw e.code=`ERR_INVALID_URL_SCHEME`,e}return RP(e)}function RP(e){if(e.hostname!==``){let e=TypeError(`File URL host must be "localhost" or empty on darwin`);throw e.code=`ERR_INVALID_FILE_URL_HOST`,e}let t=e.pathname,n=-1;for(;++n0){let[r,...a]=t,o=n[i][1];CP(o)&&CP(r)&&(r=(0,KP.default)(!0,o,r)),n[i]=[e,r,...a]}}}}().freeze();function YP(e,t){if(typeof t!=`function`)throw TypeError("Cannot `"+e+"` without `parser`")}function XP(e,t){if(typeof t!=`function`)throw TypeError("Cannot `"+e+"` without `compiler`")}function ZP(e,t){if(t)throw Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function QP(e){if(!CP(e)||typeof e.type!=`string`)throw TypeError("Expected node, got `"+e+"`")}function $P(e,t,n){if(!n)throw Error("`"+e+"` finished async. Use `"+t+"` instead")}function eF(e){return tF(e)?e:new BP(e)}function tF(e){return!!(e&&typeof e==`object`&&`message`in e&&`messages`in e)}function nF(e){return typeof e==`string`||rF(e)}function rF(e){return!!(e&&typeof e==`object`&&`byteLength`in e&&`byteOffset`in e)}var iF=[],aF={allowDangerousHtml:!0},oF=/^(https?|ircs?|mailto|xmpp)$/i,sF=[{from:`astPlugins`,id:`remove-buggy-html-in-markdown-parser`},{from:`allowDangerousHtml`,id:`remove-buggy-html-in-markdown-parser`},{from:`allowNode`,id:`replace-allownode-allowedtypes-and-disallowedtypes`,to:`allowElement`},{from:`allowedTypes`,id:`replace-allownode-allowedtypes-and-disallowedtypes`,to:`allowedElements`},{from:`className`,id:`remove-classname`},{from:`disallowedTypes`,id:`replace-allownode-allowedtypes-and-disallowedtypes`,to:`disallowedElements`},{from:`escapeHtml`,id:`remove-buggy-html-in-markdown-parser`},{from:`includeElementIndex`,id:`#remove-includeelementindex`},{from:`includeNodeIndex`,id:`change-includenodeindex-to-includeelementindex`},{from:`linkTarget`,id:`remove-linktarget`},{from:`plugins`,id:`change-plugins-to-remarkplugins`,to:`remarkPlugins`},{from:`rawSourcePos`,id:`#remove-rawsourcepos`},{from:`renderers`,id:`change-renderers-to-components`,to:`components`},{from:`source`,id:`change-source-to-children`,to:`children`},{from:`sourcePos`,id:`#remove-sourcepos`},{from:`transformImageUri`,id:`#add-urltransform`,to:`urlTransform`},{from:`transformLinkUri`,id:`#add-urltransform`,to:`urlTransform`}];function cF(e){let t=lF(e),n=uF(e);return dF(t.runSync(t.parse(n),n),e)}function lF(e){let t=e.rehypePlugins||iF,n=e.remarkPlugins||iF,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...aF}:aF;return JP().use(aN).use(n).use(bP,r).use(t)}function uF(e){let t=e.children||``,n=new BP;return typeof t==`string`?n.value=t:``+t,n}function dF(e,t){let n=t.allowedElements,r=t.allowElement,i=t.components,a=t.disallowedElements,o=t.skipHtml,s=t.unwrapDisallowed,c=t.urlTransform||fF;for(let e of sF)Object.hasOwn(t,e.from)&&``+e.from+(e.to?"use `"+e.to+"` instead":`remove it`)+e.id;return uP(e,l),Ik(e,{Fragment:F.Fragment,components:i,ignoreInvalidStyle:!0,jsx:F.jsx,jsxs:F.jsxs,passKeys:!0,passNode:!0});function l(e,t,i){if(e.type===`raw`&&i&&typeof t==`number`)return o?i.children.splice(t,1):i.children[t]={type:`text`,value:e.value},t;if(e.type===`element`){let t;for(t in iA)if(Object.hasOwn(iA,t)&&Object.hasOwn(e.properties,t)){let n=e.properties[t],r=iA[t];(r===null||r.includes(e.tagName))&&(e.properties[t]=c(String(n||``),t,e))}}if(e.type===`element`){let o=n?!n.includes(e.tagName):a?a.includes(e.tagName):!1;if(!o&&r&&typeof t==`number`&&(o=!r(e,t,i)),o&&i&&typeof t==`number`)return s&&e.children?i.children.splice(t,1,...e.children):i.children.splice(t,1),t}}}function fF(e){let t=e.indexOf(`:`),n=e.indexOf(`?`),r=e.indexOf(`#`),i=e.indexOf(`/`);return t===-1||i!==-1&&t>i||n!==-1&&t>n||r!==-1&&t>r||oF.test(e.slice(0,t))?e:``}function pF(e,t){let n=String(e);if(typeof t!=`string`)throw TypeError(`Expected character`);let r=0,i=n.indexOf(t);for(;i!==-1;)r++,i=n.indexOf(t,i+t.length);return r}function mF(e){if(typeof e!=`string`)throw TypeError(`Expected a string`);return e.replace(/[|\\{}()[\]^$+*?.]/g,`\\$&`).replace(/-/g,`\\x2d`)}function hF(e,t,n){let r=$N((n||{}).ignore||[]),i=gF(t),a=-1;for(;++a0?{type:`text`,value:a}:void 0),a===!1?r.lastIndex=n+1:(s!==n&&u.push({type:`text`,value:e.value.slice(s,n)}),Array.isArray(a)?u.push(...a):a&&u.push(a),s=n+d[0].length,l=!0),!r.global)break;d=r.exec(e.value)}return l?(s?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(`)`),i=pF(e,`(`),a=pF(e,`)`);for(;r!==-1&&i>a;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(`)`),a++;return[e,n]}function PF(e,t){let n=e.input.charCodeAt(e.index-1);return(e.index===0||AA(n)||kA(n))&&(!t||n!==47)}WF.peek=UF;function FF(){this.buffer()}function IF(e){this.enter({type:`footnoteReference`,identifier:``,label:``},e)}function LF(){this.buffer()}function RF(e){this.enter({type:`footnoteDefinition`,identifier:``,label:``,children:[]},e)}function zF(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=yA(this.sliceSerialize(e)).toLowerCase(),n.label=t}function BF(e){this.exit(e)}function VF(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=yA(this.sliceSerialize(e)).toLowerCase(),n.label=t}function HF(e){this.exit(e)}function UF(){return`[`}function WF(e,t,n,r){let i=n.createTracker(r),a=i.move(`[^`),o=n.enter(`footnoteReference`),s=n.enter(`reference`);return a+=i.move(n.safe(n.associationId(e),{after:`]`,before:a})),s(),o(),a+=i.move(`]`),a}function GF(){return{enter:{gfmFootnoteCallString:FF,gfmFootnoteCall:IF,gfmFootnoteDefinitionLabelString:LF,gfmFootnoteDefinition:RF},exit:{gfmFootnoteCallString:zF,gfmFootnoteCall:BF,gfmFootnoteDefinitionLabelString:VF,gfmFootnoteDefinition:HF}}}function KF(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:n,footnoteReference:WF},unsafe:[{character:`[`,inConstruct:[`label`,`phrasing`,`reference`]}]};function n(e,n,r,i){let a=r.createTracker(i),o=a.move(`[^`),s=r.enter(`footnoteDefinition`),c=r.enter(`label`);return o+=a.move(r.safe(r.associationId(e),{before:o,after:`]`})),c(),o+=a.move(`]:`),e.children&&e.children.length>0&&(a.shift(4),o+=a.move((t?` +`:` `)+r.indentLines(r.containerFlow(e,a.current()),t?JF:qF))),s(),o}}function qF(e,t,n){return t===0?e:JF(e,t,n)}function JF(e,t,n){return(n?``:` `)+e}var YF=[`autolink`,`destinationLiteral`,`destinationRaw`,`reference`,`titleQuote`,`titleApostrophe`];eI.peek=tI;function XF(){return{canContainEols:[`delete`],enter:{strikethrough:QF},exit:{strikethrough:$F}}}function ZF(){return{unsafe:[{character:`~`,inConstruct:`phrasing`,notInConstruct:YF}],handlers:{delete:eI}}}function QF(e){this.enter({type:`delete`,children:[]},e)}function $F(e){this.exit(e)}function eI(e,t,n,r){let i=n.createTracker(r),a=n.enter(`strikethrough`),o=i.move(`~~`);return o+=n.containerPhrasing(e,{...i.current(),before:o,after:`~`}),o+=i.move(`~~`),a(),o}function tI(){return`~`}function nI(e){return e.length}function rI(e,t){let n=t||{},r=(n.align||[]).concat(),i=n.stringLength||nI,a=[],o=[],s=[],c=[],l=0,u=-1;for(;++ul&&(l=e[u].length);++ac[a])&&(c[a]=e)}t.push(o)}o[u]=t,s[u]=r}let d=-1;if(typeof r==`object`&&`length`in r)for(;++dc[d]&&(c[d]=i),p[d]=i),f[d]=o}o.splice(1,0,f),s.splice(1,0,p),u=-1;let m=[];for(;++u `),a.shift(2);let o=n.indentLines(n.containerFlow(e,a.current()),sI);return i(),o}function sI(e,t,n){return`>`+(n?``:` `)+e}function cI(e,t){return lI(e,t.inConstruct,!0)&&!lI(e,t.notInConstruct,!1)}function lI(e,t,n){if(typeof t==`string`&&(t=[t]),!t||t.length===0)return n;let r=-1;for(;++ro&&(o=a):a=1,i=r+t.length,r=n.indexOf(t,i);return o}function fI(e,t){return!!(t.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function pI(e){let t=e.options.fence||"`";if(t!=="`"&&t!==`~`)throw Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}function mI(e,t,n,r){let i=pI(n),a=e.value||``,o=i==="`"?`GraveAccent`:`Tilde`;if(fI(e,n)){let e=n.enter(`codeIndented`),t=n.indentLines(a,hI);return e(),t}let s=n.createTracker(r),c=i.repeat(Math.max(dI(a,i)+1,3)),l=n.enter(`codeFenced`),u=s.move(c);if(e.lang){let t=n.enter(`codeFencedLang${o}`);u+=s.move(n.safe(e.lang,{before:u,after:` `,encode:["`"],...s.current()})),t()}if(e.lang&&e.meta){let t=n.enter(`codeFencedMeta${o}`);u+=s.move(` `),u+=s.move(n.safe(e.meta,{before:u,after:` +`,encode:["`"],...s.current()})),t()}return u+=s.move(` +`),a&&(u+=s.move(a+` +`)),u+=s.move(c),l(),u}function hI(e,t,n){return(n?``:` `)+e}function gI(e){let t=e.options.quote||`"`;if(t!==`"`&&t!==`'`)throw Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function _I(e,t,n,r){let i=gI(n),a=i===`"`?`Quote`:`Apostrophe`,o=n.enter(`definition`),s=n.enter(`label`),c=n.createTracker(r),l=c.move(`[`);return l+=c.move(n.safe(n.associationId(e),{before:l,after:`]`,...c.current()})),l+=c.move(`]: `),s(),!e.url||/[\0- \u007F]/.test(e.url)?(s=n.enter(`destinationLiteral`),l+=c.move(`<`),l+=c.move(n.safe(e.url,{before:l,after:`>`,...c.current()})),l+=c.move(`>`)):(s=n.enter(`destinationRaw`),l+=c.move(n.safe(e.url,{before:l,after:e.title?` `:` +`,...c.current()}))),s(),e.title&&(s=n.enter(`title${a}`),l+=c.move(` `+i),l+=c.move(n.safe(e.title,{before:l,after:i,...c.current()})),l+=c.move(i),s()),o(),l}function vI(e){let t=e.options.emphasis||`*`;if(t!==`*`&&t!==`_`)throw Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}function yI(e){return`&#x`+e.toString(16).toUpperCase()+`;`}function bI(e,t,n){let r=BA(e),i=BA(t);return r===void 0?i===void 0?n===`_`?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:r===1?i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}xI.peek=SI;function xI(e,t,n,r){let i=vI(n),a=n.enter(`emphasis`),o=n.createTracker(r),s=o.move(i),c=o.move(n.containerPhrasing(e,{after:i,before:s,...o.current()})),l=c.charCodeAt(0),u=bI(r.before.charCodeAt(r.before.length-1),l,i);u.inside&&(c=yI(l)+c.slice(1));let d=c.charCodeAt(c.length-1),f=bI(r.after.charCodeAt(0),d,i);f.inside&&(c=c.slice(0,-1)+yI(d));let p=o.move(i);return a(),n.attentionEncodeSurroundingInfo={after:f.outside,before:u.outside},s+c+p}function SI(e,t,n){return n.options.emphasis||`*`}function CI(e,t){let n=!1;return uP(e,function(e){if(`value`in e&&/\r?\n|\r/.test(e.value)||e.type===`break`)return n=!0,!1}),!!((!e.depth||e.depth<3)&&oA(e)&&(t.options.setext||n))}function wI(e,t,n,r){let i=Math.max(Math.min(6,e.depth||1),1),a=n.createTracker(r);if(CI(e,n)){let t=n.enter(`headingSetext`),r=n.enter(`phrasing`),o=n.containerPhrasing(e,{...a.current(),before:` +`,after:` +`});return r(),t(),o+` +`+(i===1?`=`:`-`).repeat(o.length-(Math.max(o.lastIndexOf(`\r`),o.lastIndexOf(` +`))+1))}let o=`#`.repeat(i),s=n.enter(`headingAtx`),c=n.enter(`phrasing`);a.move(o+` `);let l=n.containerPhrasing(e,{before:`# `,after:` +`,...a.current()});return/^[\t ]/.test(l)&&(l=yI(l.charCodeAt(0))+l.slice(1)),l=l?o+` `+l:o,n.options.closeAtx&&(l+=` `+o),c(),s(),l}TI.peek=EI;function TI(e){return e.value||``}function EI(){return`<`}DI.peek=OI;function DI(e,t,n,r){let i=gI(n),a=i===`"`?`Quote`:`Apostrophe`,o=n.enter(`image`),s=n.enter(`label`),c=n.createTracker(r),l=c.move(`![`);return l+=c.move(n.safe(e.alt,{before:l,after:`]`,...c.current()})),l+=c.move(`](`),s(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(s=n.enter(`destinationLiteral`),l+=c.move(`<`),l+=c.move(n.safe(e.url,{before:l,after:`>`,...c.current()})),l+=c.move(`>`)):(s=n.enter(`destinationRaw`),l+=c.move(n.safe(e.url,{before:l,after:e.title?` `:`)`,...c.current()}))),s(),e.title&&(s=n.enter(`title${a}`),l+=c.move(` `+i),l+=c.move(n.safe(e.title,{before:l,after:i,...c.current()})),l+=c.move(i),s()),l+=c.move(`)`),o(),l}function OI(){return`!`}kI.peek=AI;function kI(e,t,n,r){let i=e.referenceType,a=n.enter(`imageReference`),o=n.enter(`label`),s=n.createTracker(r),c=s.move(`![`),l=n.safe(e.alt,{before:c,after:`]`,...s.current()});c+=s.move(l+`][`),o();let u=n.stack;n.stack=[],o=n.enter(`reference`);let d=n.safe(n.associationId(e),{before:c,after:`]`,...s.current()});return o(),n.stack=u,a(),i===`full`||!l||l!==d?c+=s.move(d+`]`):i===`shortcut`?c=c.slice(0,-1):c+=s.move(`]`),c}function AI(){return`!`}jI.peek=MI;function jI(e,t,n){let r=e.value||``,i="`",a=-1;for(;RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=` `+r+` `);++a\u007F]/.test(e.url))}PI.peek=FI;function PI(e,t,n,r){let i=gI(n),a=i===`"`?`Quote`:`Apostrophe`,o=n.createTracker(r),s,c;if(NI(e,n)){let t=n.stack;n.stack=[],s=n.enter(`autolink`);let r=o.move(`<`);return r+=o.move(n.containerPhrasing(e,{before:r,after:`>`,...o.current()})),r+=o.move(`>`),s(),n.stack=t,r}s=n.enter(`link`),c=n.enter(`label`);let l=o.move(`[`);return l+=o.move(n.containerPhrasing(e,{before:l,after:`](`,...o.current()})),l+=o.move(`](`),c(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(c=n.enter(`destinationLiteral`),l+=o.move(`<`),l+=o.move(n.safe(e.url,{before:l,after:`>`,...o.current()})),l+=o.move(`>`)):(c=n.enter(`destinationRaw`),l+=o.move(n.safe(e.url,{before:l,after:e.title?` `:`)`,...o.current()}))),c(),e.title&&(c=n.enter(`title${a}`),l+=o.move(` `+i),l+=o.move(n.safe(e.title,{before:l,after:i,...o.current()})),l+=o.move(i),c()),l+=o.move(`)`),s(),l}function FI(e,t,n){return NI(e,n)?`<`:`[`}II.peek=LI;function II(e,t,n,r){let i=e.referenceType,a=n.enter(`linkReference`),o=n.enter(`label`),s=n.createTracker(r),c=s.move(`[`),l=n.containerPhrasing(e,{before:c,after:`]`,...s.current()});c+=s.move(l+`][`),o();let u=n.stack;n.stack=[],o=n.enter(`reference`);let d=n.safe(n.associationId(e),{before:c,after:`]`,...s.current()});return o(),n.stack=u,a(),i===`full`||!l||l!==d?c+=s.move(d+`]`):i===`shortcut`?c=c.slice(0,-1):c+=s.move(`]`),c}function LI(){return`[`}function RI(e){let t=e.options.bullet||`*`;if(t!==`*`&&t!==`+`&&t!==`-`)throw Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function zI(e){let t=RI(e),n=e.options.bulletOther;if(!n)return t===`*`?`-`:`*`;if(n!==`*`&&n!==`+`&&n!==`-`)throw Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}function BI(e){let t=e.options.bulletOrdered||`.`;if(t!==`.`&&t!==`)`)throw Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function VI(e){let t=e.options.rule||`*`;if(t!==`*`&&t!==`-`&&t!==`_`)throw Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function HI(e,t,n,r){let i=n.enter(`list`),a=n.bulletCurrent,o=e.ordered?BI(n):RI(n),s=e.ordered?o===`.`?`)`:`.`:zI(n),c=t&&n.bulletLastUsed?o===n.bulletLastUsed:!1;if(!e.ordered){let t=e.children?e.children[0]:void 0;if((o===`*`||o===`-`)&&t&&(!t.children||!t.children[0])&&n.stack[n.stack.length-1]===`list`&&n.stack[n.stack.length-2]===`listItem`&&n.stack[n.stack.length-3]===`list`&&n.stack[n.stack.length-4]===`listItem`&&n.indexStack[n.indexStack.length-1]===0&&n.indexStack[n.indexStack.length-2]===0&&n.indexStack[n.indexStack.length-3]===0&&(c=!0),VI(n)===o&&t){let t=-1;for(;++t-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+a);let o=a.length+1;(i===`tab`||i===`mixed`&&(t&&t.type===`list`&&t.spread||e.spread))&&(o=Math.ceil(o/4)*4);let s=n.createTracker(r);s.move(a+` `.repeat(o-a.length)),s.shift(o);let c=n.enter(`listItem`),l=n.indentLines(n.containerFlow(e,s.current()),u);return c(),l;function u(e,t,n){return t?(n?``:` `.repeat(o))+e:(n?a:a+` `.repeat(o-a.length))+e}}function GI(e,t,n,r){let i=n.enter(`paragraph`),a=n.enter(`phrasing`),o=n.containerPhrasing(e,r);return a(),i(),o}var KI=$N([`break`,`delete`,`emphasis`,`footnote`,`footnoteReference`,`image`,`imageReference`,`inlineCode`,`inlineMath`,`link`,`linkReference`,`mdxJsxTextElement`,`mdxTextExpression`,`strong`,`text`,`textDirective`]);function qI(e,t,n,r){return(e.children.some(function(e){return KI(e)})?n.containerPhrasing:n.containerFlow).call(n,e,r)}function JI(e){let t=e.options.strong||`*`;if(t!==`*`&&t!==`_`)throw Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}YI.peek=XI;function YI(e,t,n,r){let i=JI(n),a=n.enter(`strong`),o=n.createTracker(r),s=o.move(i+i),c=o.move(n.containerPhrasing(e,{after:i,before:s,...o.current()})),l=c.charCodeAt(0),u=bI(r.before.charCodeAt(r.before.length-1),l,i);u.inside&&(c=yI(l)+c.slice(1));let d=c.charCodeAt(c.length-1),f=bI(r.after.charCodeAt(0),d,i);f.inside&&(c=c.slice(0,-1)+yI(d));let p=o.move(i+i);return a(),n.attentionEncodeSurroundingInfo={after:f.outside,before:u.outside},s+c+p}function XI(e,t,n){return n.options.strong||`*`}function ZI(e,t,n,r){return n.safe(e.value,r)}function QI(e){let t=e.options.ruleRepetition||3;if(t<3)throw Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function $I(e,t,n){let r=(VI(n)+(n.options.ruleSpaces?` `:``)).repeat(QI(n));return n.options.ruleSpaces?r.slice(0,-1):r}var eL={blockquote:oI,break:uI,code:mI,definition:_I,emphasis:xI,hardBreak:uI,heading:wI,html:TI,image:DI,imageReference:kI,inlineCode:jI,link:PI,linkReference:II,list:HI,listItem:WI,paragraph:GI,root:qI,strong:YI,text:ZI,thematicBreak:$I};function tL(){return{enter:{table:nL,tableData:oL,tableHeader:oL,tableRow:iL},exit:{codeText:sL,table:rL,tableData:aL,tableHeader:aL,tableRow:aL}}}function nL(e){let t=e._align;this.enter({type:`table`,align:t.map(function(e){return e===`none`?null:e}),children:[]},e),this.data.inTable=!0}function rL(e){this.exit(e),this.data.inTable=void 0}function iL(e){this.enter({type:`tableRow`,children:[]},e)}function aL(e){this.exit(e)}function oL(e){this.enter({type:`tableCell`,children:[]},e)}function sL(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,cL));let n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function cL(e,t){return t===`|`?t:e}function lL(e){let t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,i=t.stringLength,a=n?` `:`|`;return{unsafe:[{character:`\r`,inConstruct:`tableCell`},{character:` +`,inConstruct:`tableCell`},{atBreak:!0,character:`|`,after:`[ :-]`},{character:`|`,inConstruct:`tableCell`},{atBreak:!0,character:`:`,after:`-`},{atBreak:!0,character:`-`,after:`[:|-]`}],handlers:{inlineCode:f,table:o,tableCell:c,tableRow:s}};function o(e,t,n,r){return l(u(e,n,r),e.align)}function s(e,t,n,r){let i=l([d(e,n,r)]);return i.slice(0,i.indexOf(` +`))}function c(e,t,n,r){let i=n.enter(`tableCell`),o=n.enter(`phrasing`),s=n.containerPhrasing(e,{...r,before:a,after:a});return o(),i(),s}function l(e,t){return rI(e,{align:t,alignDelimiters:r,padding:n,stringLength:i})}function u(e,t,n){let r=e.children,i=-1,a=[],o=t.enter(`table`);for(;++i0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}var VL={tokenize:YL,partial:!0};function HL(){return{document:{91:{name:`gfmFootnoteDefinition`,tokenize:KL,continuation:{tokenize:qL},exit:JL}},text:{91:{name:`gfmFootnoteCall`,tokenize:GL},93:{name:`gfmPotentialFootnoteCall`,add:`after`,tokenize:UL,resolveTo:WL}}}}function UL(e,t,n){let r=this,i=r.events.length,a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]),o;for(;i--;){let e=r.events[i][1];if(e.type===`labelImage`){o=e;break}if(e.type===`gfmFootnoteCall`||e.type===`labelLink`||e.type===`label`||e.type===`image`||e.type===`link`)break}return s;function s(i){if(!o||!o._balanced)return n(i);let s=yA(r.sliceSerialize({start:o.end,end:r.now()}));return s.codePointAt(0)!==94||!a.includes(s.slice(1))?n(i):(e.enter(`gfmFootnoteCallLabelMarker`),e.consume(i),e.exit(`gfmFootnoteCallLabelMarker`),t(i))}}function WL(e,t){let n=e.length;for(;n--;)if(e[n][1].type===`labelImage`&&e[n][0]===`enter`){e[n][1];break}e[n+1][1].type=`data`,e[n+3][1].type=`gfmFootnoteCallLabelMarker`;let r={type:`gfmFootnoteCall`,start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:`gfmFootnoteCallMarker`,start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;let a={type:`gfmFootnoteCallString`,start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},o={type:`chunkString`,contentType:`string`,start:Object.assign({},a.start),end:Object.assign({},a.end)},s=[e[n+1],e[n+2],[`enter`,r,t],e[n+3],e[n+4],[`enter`,i,t],[`exit`,i,t],[`enter`,a,t],[`enter`,o,t],[`exit`,o,t],[`exit`,a,t],e[e.length-2],e[e.length-1],[`exit`,r,t]];return e.splice(n,e.length-n+1,...s),e}function GL(e,t,n){let r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]),a=0,o;return s;function s(t){return e.enter(`gfmFootnoteCall`),e.enter(`gfmFootnoteCallLabelMarker`),e.consume(t),e.exit(`gfmFootnoteCallLabelMarker`),c}function c(t){return t===94?(e.enter(`gfmFootnoteCallMarker`),e.consume(t),e.exit(`gfmFootnoteCallMarker`),e.enter(`gfmFootnoteCallString`),e.enter(`chunkString`).contentType=`string`,l):n(t)}function l(s){if(a>999||s===93&&!o||s===null||s===91||DA(s))return n(s);if(s===93){e.exit(`chunkString`);let a=e.exit(`gfmFootnoteCallString`);return i.includes(yA(r.sliceSerialize(a)))?(e.enter(`gfmFootnoteCallLabelMarker`),e.consume(s),e.exit(`gfmFootnoteCallLabelMarker`),e.exit(`gfmFootnoteCall`),t):n(s)}return DA(s)||(o=!0),a++,e.consume(s),s===92?u:l}function u(t){return t===91||t===92||t===93?(e.consume(t),a++,l):l(t)}}function KL(e,t,n){let r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]),a,o=0,s;return c;function c(t){return e.enter(`gfmFootnoteDefinition`)._container=!0,e.enter(`gfmFootnoteDefinitionLabel`),e.enter(`gfmFootnoteDefinitionLabelMarker`),e.consume(t),e.exit(`gfmFootnoteDefinitionLabelMarker`),l}function l(t){return t===94?(e.enter(`gfmFootnoteDefinitionMarker`),e.consume(t),e.exit(`gfmFootnoteDefinitionMarker`),e.enter(`gfmFootnoteDefinitionLabelString`),e.enter(`chunkString`).contentType=`string`,u):n(t)}function u(t){if(o>999||t===93&&!s||t===null||t===91||DA(t))return n(t);if(t===93){e.exit(`chunkString`);let n=e.exit(`gfmFootnoteDefinitionLabelString`);return a=yA(r.sliceSerialize(n)),e.enter(`gfmFootnoteDefinitionLabelMarker`),e.consume(t),e.exit(`gfmFootnoteDefinitionLabelMarker`),e.exit(`gfmFootnoteDefinitionLabel`),f}return DA(t)||(s=!0),o++,e.consume(t),t===92?d:u}function d(t){return t===91||t===92||t===93?(e.consume(t),o++,u):u(t)}function f(t){return t===58?(e.enter(`definitionMarker`),e.consume(t),e.exit(`definitionMarker`),i.includes(a)||i.push(a),NA(e,p,`gfmFootnoteDefinitionWhitespace`)):n(t)}function p(e){return t(e)}}function qL(e,t,n){return e.check(JA,t,e.attempt(VL,t,n))}function JL(e){e.exit(`gfmFootnoteDefinition`)}function YL(e,t,n){let r=this;return NA(e,i,`gfmFootnoteDefinitionIndent`,5);function i(e){let i=r.events[r.events.length-1];return i&&i[1].type===`gfmFootnoteDefinitionIndent`&&i[2].sliceSerialize(i[1],!0).length===4?t(e):n(e)}}function XL(e){let t=(e||{}).singleTilde,n={name:`strikethrough`,tokenize:i,resolveAll:r};return t??=!0,{text:{126:n},insideSpan:{null:[n]},attentionMarkers:{null:[126]}};function r(e,t){let n=-1;for(;++n1?r(a):(e.consume(a),o++,c);if(o<2&&!t)return r(a);let l=e.exit(`strikethroughSequenceTemporary`),u=BA(a);return l._open=!u||u===2&&!!s,l._close=!s||s===2&&!!u,n(a)}}}var ZL=class{constructor(){this.map=[]}add(e,t,n){QL(this,e,t,n)}consume(e){if(this.map.sort(function(e,t){return e[0]-t[0]}),this.map.length===0)return;let t=this.map.length,n=[];for(;t>0;)--t,n.push(e.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),e.length=this.map[t][0];n.push(e.slice()),e.length=0;let r=n.pop();for(;r;){for(let t of r)e.push(t);r=n.pop()}this.map.length=0}};function QL(e,t,n,r){let i=0;if(n!==0||r.length!==0){for(;i-1;){let e=r.events[t][1].type;if(e===`lineEnding`||e===`linePrefix`)t--;else break}let i=t>-1?r.events[t][1].type:null,a=i===`tableHead`||i===`tableRow`?S:c;return a===S&&r.parser.lazy[r.now().line]?n(e):a(e)}function c(t){return e.enter(`tableHead`),e.enter(`tableRow`),l(t)}function l(e){return e===124?u(e):(o=!0,a+=1,u(e))}function u(t){return t===null?n(t):$(t)?a>1?(a=0,r.interrupt=!0,e.exit(`tableRow`),e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),p):n(t):OA(t)?NA(e,u,`whitespace`)(t):(a+=1,o&&(o=!1,i+=1),t===124?(e.enter(`tableCellDivider`),e.consume(t),e.exit(`tableCellDivider`),o=!0,u):(e.enter(`data`),d(t)))}function d(t){return t===null||t===124||DA(t)?(e.exit(`data`),u(t)):(e.consume(t),t===92?f:d)}function f(t){return t===92||t===124?(e.consume(t),d):d(t)}function p(t){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(t):(e.enter(`tableDelimiterRow`),o=!1,OA(t)?NA(e,m,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):m(t))}function m(t){return t===45||t===58?g(t):t===124?(o=!0,e.enter(`tableCellDivider`),e.consume(t),e.exit(`tableCellDivider`),h):x(t)}function h(t){return OA(t)?NA(e,g,`whitespace`)(t):g(t)}function g(t){return t===58?(a+=1,o=!0,e.enter(`tableDelimiterMarker`),e.consume(t),e.exit(`tableDelimiterMarker`),_):t===45?(a+=1,_(t)):t===null||$(t)?b(t):x(t)}function _(t){return t===45?(e.enter(`tableDelimiterFiller`),v(t)):x(t)}function v(t){return t===45?(e.consume(t),v):t===58?(o=!0,e.exit(`tableDelimiterFiller`),e.enter(`tableDelimiterMarker`),e.consume(t),e.exit(`tableDelimiterMarker`),y):(e.exit(`tableDelimiterFiller`),y(t))}function y(t){return OA(t)?NA(e,b,`whitespace`)(t):b(t)}function b(n){return n===124?m(n):n===null||$(n)?!o||i!==a?x(n):(e.exit(`tableDelimiterRow`),e.exit(`tableHead`),t(n)):x(n)}function x(e){return n(e)}function S(t){return e.enter(`tableRow`),C(t)}function C(n){return n===124?(e.enter(`tableCellDivider`),e.consume(n),e.exit(`tableCellDivider`),C):n===null||$(n)?(e.exit(`tableRow`),t(n)):OA(n)?NA(e,C,`whitespace`)(n):(e.enter(`data`),w(n))}function w(t){return t===null||t===124||DA(t)?(e.exit(`data`),C(t)):(e.consume(t),t===92?T:w)}function T(t){return t===92||t===124?(e.consume(t),w):w(t)}}function nR(e,t){let n=-1,r=!0,i=0,a=[0,0,0,0],o=[0,0,0,0],s=!1,c=0,l,u,d,f=new ZL;for(;++nn[2]+1){let t=n[2]+1,r=n[3]-n[2]-1;e.add(t,r,[])}}e.add(n[3]+1,0,[[`exit`,o,t]])}return i!==void 0&&(a.end=Object.assign({},aR(t.events,i)),e.add(i,0,[[`exit`,a,t]]),a=void 0),a}function iR(e,t,n,r,i){let a=[],o=aR(t.events,n);i&&(i.end=Object.assign({},o),a.push([`exit`,i,t])),r.end=Object.assign({},o),a.push([`exit`,r,t]),e.add(n+1,0,a)}function aR(e,t){let n=e[t],r=n[0]===`enter`?`start`:`end`;return n[1][r]}var oR={name:`tasklistCheck`,tokenize:cR};function sR(){return{text:{91:oR}}}function cR(e,t,n){let r=this;return i;function i(t){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(t):(e.enter(`taskListCheck`),e.enter(`taskListCheckMarker`),e.consume(t),e.exit(`taskListCheckMarker`),a)}function a(t){return DA(t)?(e.enter(`taskListCheckValueUnchecked`),e.consume(t),e.exit(`taskListCheckValueUnchecked`),o):t===88||t===120?(e.enter(`taskListCheckValueChecked`),e.consume(t),e.exit(`taskListCheckValueChecked`),o):n(t)}function o(t){return t===93?(e.enter(`taskListCheckMarker`),e.consume(t),e.exit(`taskListCheckMarker`),e.exit(`taskListCheck`),s):n(t)}function s(r){return $(r)?t(r):OA(r)?e.check({tokenize:lR},t,n)(r):n(r)}}function lR(e,t,n){return NA(e,r,`whitespace`);function r(e){return e===null?n(e):t(e)}}function uR(e){return hA([EL(),HL(),XL(e),eR(),sR()])}var dR={};function fR(e){let t=this,n=e||dR,r=t.data(),i=r.micromarkExtensions||=[],a=r.fromMarkdownExtensions||=[],o=r.toMarkdownExtensions||=[];i.push(uR(n)),a.push(hL()),o.push(gL(n))}var pR=[`agent-threads`];async function mR(e,t){let n=new URLSearchParams({limit:`30`});e&&n.set(`q`,e),t&&n.set(`cursor`,t);let r=await ve(`/api/agent/threads?${n}`);if(!r.ok)throw Error(`Unable to load conversations (${r.status})`);return r.json()}function hR({opened:e,activeThreadID:t,onClose:n,onNewChat:r,onSelect:i,onDeleted:a}){let o=Me(`(max-width: 48em)`),s=fO(),[c,l]=(0,P.useState)(``),[u]=Ca(c.trim(),250),[d,f]=(0,P.useState)(null),[p,m]=(0,P.useState)(null),[h,_]=(0,P.useState)(``),[v,y]=(0,P.useState)(``),[b,x]=(0,P.useState)(!1),S=(0,P.useRef)(null),C=DO({queryKey:[...pR,u],queryFn:({pageParam:e})=>mR(u,e),initialPageParam:``,getNextPageParam:e=>e.nextCursor||void 0,enabled:e}),w=(0,P.useMemo)(()=>C.data?.pages.flatMap(e=>e.threads)??[],[C.data]),T=(0,P.useMemo)(()=>vR(w),[w]);(0,P.useEffect)(()=>{e&&requestAnimationFrame(()=>S.current?.focus())},[e]);function E(e){y(``),_(e.title),f(e)}async function D(){if(!(!d||!h.trim())){x(!0),y(``);try{let e=await ve(`/api/agent/threads/${encodeURIComponent(d.threadId)}`,{method:`PATCH`,headers:{"Content-Type":`application/json`},body:JSON.stringify({title:h.trim()})});if(!e.ok)throw Error(`Unable to rename conversation (${e.status})`);await s.invalidateQueries({queryKey:pR}),f(null)}catch(e){y(e instanceof Error?e.message:`Unable to rename this conversation.`)}finally{x(!1)}}}async function O(){if(p){x(!0),y(``);try{let e=await ve(`/api/agent/threads/${encodeURIComponent(p.threadId)}`,{method:`DELETE`});if(!e.ok)throw Error(`Unable to delete conversation (${e.status})`);let t=p.threadId;m(null),await s.invalidateQueries({queryKey:pR}),a(t)}catch(e){y(e instanceof Error?e.message:`Unable to delete this conversation.`)}finally{x(!1)}}}return(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(bm,{opened:e,onClose:n,position:`left`,size:o?`100%`:372,title:(0,F.jsx)(Ce,{fw:700,children:`Investigations`}),padding:`md`,overlayProps:{backgroundOpacity:.24,blur:1},children:(0,F.jsxs)(Le,{gap:`sm`,h:`calc(100dvh - 86px)`,children:[(0,F.jsx)(Oe,{leftSection:(0,F.jsx)(qE,{size:17,weight:`bold`}),onClick:r,children:`New investigation`}),(0,F.jsx)(xe,{ref:S,value:c,onChange:e=>l(e.currentTarget.value),leftSection:(0,F.jsx)(zE,{size:16}),placeholder:`Search investigations`,"aria-label":`Search investigations`}),(0,F.jsx)(em,{}),(0,F.jsxs)(Ru,{type:`auto`,offsetScrollbars:!0,flex:1,children:[C.isLoading&&(0,F.jsx)(me,{py:`xl`,children:(0,F.jsx)(le,{size:`sm`})}),C.isError&&(0,F.jsx)(_e,{color:`bad`,title:`History unavailable`,children:`Your conversations could not be loaded.`}),!C.isLoading&&!C.isError&&w.length===0&&(0,F.jsxs)(N,{py:`xl`,px:`sm`,ta:`center`,children:[(0,F.jsx)(Ce,{fw:600,children:u?`No matching investigations`:`No investigations yet`}),(0,F.jsx)(Ce,{c:`dimmed`,size:`sm`,mt:4,children:u?`Try words from the opening question.`:`Your completed investigations will appear here.`})]}),(0,F.jsxs)(Le,{gap:`lg`,pb:`md`,children:[T.map(e=>(0,F.jsxs)(Le,{gap:4,children:[(0,F.jsx)(Ce,{c:`dimmed`,size:`xs`,fw:700,tt:`uppercase`,lts:`0.08em`,px:`sm`,children:e.label}),e.threads.map(e=>{let n=e.threadId===t;return(0,F.jsx)(N,{"data-active":n||void 0,className:`chat-history-item`,children:(0,F.jsxs)(ze,{gap:2,wrap:`nowrap`,children:[(0,F.jsx)(g,{onClick:()=>i(e.threadId),"aria-current":n?`page`:void 0,p:`sm`,flex:1,style:{minWidth:0},children:(0,F.jsxs)(ze,{justify:`space-between`,gap:`sm`,wrap:`nowrap`,children:[(0,F.jsx)(Ce,{size:`sm`,fw:n?650:500,truncate:!0,children:e.title}),(0,F.jsx)(Ce,{c:`dimmed`,size:`xs`,style:{flexShrink:0},children:yR(e.updatedAt)})]})}),(0,F.jsxs)(ph,{position:`bottom-end`,withinPortal:!0,children:[(0,F.jsx)(ph.Target,{children:(0,F.jsx)(jd,{className:`chat-history-actions`,variant:`subtle`,color:`gray`,size:`sm`,mr:6,"aria-label":`Actions for ${e.title}`,children:(0,F.jsx)(jE,{size:18,weight:`bold`})})}),(0,F.jsxs)(ph.Dropdown,{children:[(0,F.jsx)(ph.Item,{leftSection:(0,F.jsx)(GE,{size:15}),onClick:()=>E(e),children:`Rename`}),(0,F.jsx)(ph.Item,{color:`bad`,leftSection:(0,F.jsx)($E,{size:15}),onClick:()=>{y(``),m(e)},children:`Delete`})]})]})]})},e.threadId)})]},e.label)),C.hasNextPage&&(0,F.jsx)(Oe,{variant:`subtle`,color:`gray`,loading:C.isFetchingNextPage,onClick:()=>void C.fetchNextPage(),children:`Load older`})]})]})]})}),(0,F.jsx)(kh,{opened:d!==null,onClose:()=>!b&&f(null),title:`Rename investigation`,centered:!0,children:(0,F.jsx)(`form`,{onSubmit:e=>{e.preventDefault(),D()},children:(0,F.jsxs)(Le,{children:[(0,F.jsx)(xe,{label:`Name`,value:h,onChange:e=>_(e.currentTarget.value),maxLength:120,autoFocus:!0}),v&&(0,F.jsx)(_e,{color:`bad`,children:v}),(0,F.jsxs)(ze,{justify:`flex-end`,children:[(0,F.jsx)(Oe,{variant:`default`,onClick:()=>f(null),disabled:b,children:`Cancel`}),(0,F.jsx)(Oe,{type:`submit`,loading:b,disabled:!h.trim(),children:`Save`})]})]})})}),(0,F.jsx)(kh,{opened:p!==null,onClose:()=>!b&&m(null),title:`Delete investigation?`,centered:!0,children:(0,F.jsxs)(Le,{children:[(0,F.jsxs)(Ce,{size:`sm`,children:[`This permanently removes `,(0,F.jsx)(Ce,{span:!0,fw:650,children:p?.title}),` and its saved conversation.`]}),v&&(0,F.jsx)(_e,{color:`bad`,children:v}),(0,F.jsxs)(ze,{justify:`flex-end`,children:[(0,F.jsx)(Oe,{variant:`default`,onClick:()=>m(null),disabled:b,children:`Cancel`}),(0,F.jsx)(Oe,{color:`bad`,loading:b,onClick:()=>void O(),children:`Delete`})]})]})})]})}function gR(e){return e.includes(`T`)?new Date(e):new Date(`${e.replace(` `,`T`)}Z`)}function _R(e){return new Date(e.getFullYear(),e.getMonth(),e.getDate()).getTime()}function vR(e){let t=_R(new Date),n=new Map;for(let r of e){let e=Math.floor((t-_R(gR(r.updatedAt)))/864e5),i=e<=0?`Today`:e===1?`Yesterday`:e<=7?`Previous 7 days`:`Older`,a=n.get(i)??[];a.push(r),n.set(i,a)}return[...n].map(([e,t])=>({label:e,threads:t}))}function yR(e){let t=gR(e),n=_R(new Date);return Math.floor((n-_R(t))/864e5)<=1?new Intl.DateTimeFormat(void 0,{hour:`numeric`,minute:`2-digit`}).format(t):new Intl.DateTimeFormat(void 0,{month:`short`,day:`numeric`}).format(t)}var bR=[];for(let e=0;e<256;++e)bR.push((e+256).toString(16).slice(1));function xR(e,t=0){return(bR[e[t+0]]+bR[e[t+1]]+bR[e[t+2]]+bR[e[t+3]]+`-`+bR[e[t+4]]+bR[e[t+5]]+`-`+bR[e[t+6]]+bR[e[t+7]]+`-`+bR[e[t+8]]+bR[e[t+9]]+`-`+bR[e[t+10]]+bR[e[t+11]]+bR[e[t+12]]+bR[e[t+13]]+bR[e[t+14]]+bR[e[t+15]]).toLowerCase()}var SR=new Uint8Array(16);function CR(){return crypto.getRandomValues(SR)}var wR={};function TR(e,t,n){let r;if(e)r=DR(e.random??e.rng?.()??CR(),e.msecs,e.seq,t,n);else{let e=Date.now(),i=CR();ER(wR,e,i),r=DR(i,wR.msecs,wR.seq,t,n)}return t??xR(r)}function ER(e,t,n){return e.msecs??=-1/0,e.seq??=0,t>e.msecs?(e.seq=n[6]<<23|n[7]<<16|n[8]<<8|n[9],e.msecs=t):(e.seq=e.seq+1|0,e.seq===0&&e.msecs++),e}function DR(e,t,n,r,i=0){if(e.length<16)throw Error(`Random bytes length must be >= 16`);if(!r)r=new Uint8Array(16),i=0;else if(i<0||i+16>r.length)throw RangeError(`UUID byte range ${i}:${i+15} is out of buffer bounds`);return t??=Date.now(),n??=e[6]*127<<24|e[7]<<16|e[8]<<8|e[9],r[i++]=t/1099511627776&255,r[i++]=t/4294967296&255,r[i++]=t/16777216&255,r[i++]=t/65536&255,r[i++]=t/256&255,r[i++]=t&255,r[i++]=112|n>>>28&15,r[i++]=n>>>20&255,r[i++]=128|n>>>14&63,r[i++]=n>>>6&255,r[i++]=n<<2&255|e[10]&3,r[i++]=e[11],r[i++]=e[12],r[i++]=e[13],r[i++]=e[14],r[i++]=e[15],r}function OR(){return TR()}var kR=`modulepreload`,AR=function(e){return`/`+e},jR={},MR=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=document.getElementsByTagName(`link`),i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}function s(e){return import.meta.resolve?import.meta.resolve(e):new URL(e,import.meta.url).href}r=o(t.map(t=>{if(t=AR(t,n),t=s(t),t in jR)return;jR[t]=!0;let r=t.endsWith(`.css`);for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.href===t&&(!r||i.rel===`stylesheet`))return}let i=document.createElement(`link`);if(i.rel=r?`stylesheet`:kR,r||(i.as=`script`),i.crossOrigin=``,i.href=t,a&&i.setAttribute(`nonce`,a),document.head.appendChild(i),r)return new Promise((e,n)=>{i.addEventListener(`load`,e),i.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${t}`)))})}))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})},NR=(0,P.lazy)(()=>MR(()=>import(`./mcp-app-frame-CUbf0me4.js`),__vite__mapDeps([0,1,2]))),PR=(0,P.createContext)(null);function FR(){let e=(0,P.useContext)(PR);if(!e)throw Error(`Fanout app context is unavailable`);return e}function IR(){let{agent_available:e}=Te(),t=c(),n=fO(),r=$i({select:e=>e.location.pathname}),i=r===`/chat`||r===`/chat/`||r.startsWith(`/chat/`),{threadId:a}=ui({strict:!1}),o=(0,P.useRef)(OR()).current,[s,l]=(0,P.useState)(a??``),u=a??(s||o),[d,f]=(0,P.useState)([]),[p,m]=(0,P.useState)(``),[h,g]=(0,P.useState)(!1),[_,v]=(0,P.useState)(``),[y,b]=(0,P.useState)(``),[x,S]=(0,P.useState)(!1),C=(0,P.useRef)(``),w=(0,P.useRef)(null),T=(0,P.useRef)(null),E=(0,P.useMemo)(()=>new cE({url:`/api/agent`,threadId:u,fetch:(e,t)=>ve(e,t)}),[u]),D=!e||p===u;(0,P.useEffect)(()=>{a&&l(a)},[a]),(0,P.useEffect)(()=>{let t=!0;if(f([]),m(``),g(!1),b(``),!e){m(u);return}ve(`/api/agent/threads/${encodeURIComponent(u)}`).then(async e=>e.status===404?{messages:[]}:e.ok?e.json():Promise.reject(Error(`Unable to load thread (${e.status})`))).then(e=>{t&&(E.setMessages(e.messages??[]),f([...e.messages??[]]),m(u))}).catch(()=>{t&&(C.current=``,b(`This conversation could not be restored. Start a new chat or try again.`))});let r=E.subscribe({onEvent:({messages:e})=>f([...e]),onRunInitialized:()=>{g(!0),b(``)},onRunFinalized:({messages:e})=>{f([...e]),g(!1),n.invalidateQueries({queryKey:pR})},onRunFailed:e=>{console.error(`Agent run failed`,e),b(`Fanout could not complete this analysis. Please try again.`),g(!1),n.invalidateQueries({queryKey:pR})}});return()=>{t=!1,r.unsubscribe(),E.abortRun()}},[E,e,n,u]),(0,P.useEffect)(()=>{w.current?.scrollIntoView({behavior:`smooth`,block:`end`})},[d,h]),(0,P.useEffect)(()=>{if(!e)return;let n=e=>{let n=e.target,r=n?.matches(`input, textarea, [contenteditable='true']`);if((e.metaKey||e.ctrlKey)&&e.key.toLowerCase()===`k`){e.preventDefault(),S(!0);return}e.key===`/`&&!r&&(e.preventDefault(),t(s?{to:`/chat/$threadId`,params:{threadId:s}}:{to:`/chat`}),requestAnimationFrame(()=>T.current?.focus())),e.key===`Escape`&&n===T.current&&(v(``),T.current?.blur())};return window.addEventListener(`keydown`,n),()=>window.removeEventListener(`keydown`,n)},[e,s,t]);async function O(t){let n=t.trim();if(!e||!n||h||!D)return;let r={id:OR(),role:`user`,content:n};E.addMessage(r),f([...E.messages]),v(``),g(!0),b(``);try{await E.runAgent()}catch(e){console.error(`Agent run failed`,e),b(`Fanout could not complete this analysis. Please try again.`),g(!1)}}(0,P.useEffect)(()=>{let e=C.current;!D||!i||!e||(C.current=``,O(e))},[i,D,u]);function k(e){e.preventDefault(),O(_)}function ee(n){if(!e)return;let r=OR();C.current=n??``,S(!1),t({to:`/chat/$threadId`,params:{threadId:r}})}function te(){E.abortRun(),C.current=``,S(!1),t({to:`/chat`})}function A(){t(s?{to:`/chat/$threadId`,params:{threadId:s}}:{to:`/chat`})}function ne(e){S(!1),t({to:`/chat/$threadId`,params:{threadId:e}})}return(0,F.jsxs)(PR.Provider,{value:{agentAvailable:e,messages:d,ready:D,running:h,input:_,setInput:v,error:y,bottomRef:w,inputRef:T,send:O,submit:k,openChat:ee},children:[e&&(0,F.jsx)(hR,{opened:x,activeThreadID:i?u:void 0,onClose:()=>S(!1),onNewChat:te,onSelect:ne,onDeleted:e=>{e===u&&te()}}),(0,F.jsxs)(Rp,{header:{height:56},footer:{height:42},padding:0,children:[(0,F.jsx)(Rp.Header,{children:(0,F.jsxs)(ze,{h:`100%`,px:{base:`sm`,sm:`lg`},justify:`space-between`,wrap:`nowrap`,children:[(0,F.jsx)(je,{size:`small`}),(0,F.jsxs)(ze,{gap:`xs`,wrap:`nowrap`,children:[(0,F.jsxs)(ze,{gap:6,mr:4,visibleFrom:`md`,children:[(0,F.jsx)(N,{w:7,h:7,bg:`ok`,style:{borderRadius:`50%`}}),(0,F.jsx)(Ce,{c:`dimmed`,size:`xs`,fw:600,children:`Live`})]}),(e||i)&&(0,F.jsx)(Oe,{variant:`subtle`,color:`gray`,size:`compact-sm`,leftSection:i?(0,F.jsx)(LE,{size:16,weight:`bold`}):(0,F.jsx)(DE,{size:16,weight:`bold`}),onClick:()=>i?void t({to:`/dashboards`}):A(),children:i?`Dashboard`:`Chat`}),e&&(0,F.jsx)(Uh,{label:`Conversation history`,children:(0,F.jsx)(jd,{variant:`subtle`,color:`gray`,"aria-label":`Conversation history`,onClick:()=>S(!0),children:(0,F.jsx)(kE,{size:17,weight:`bold`})})}),e&&i&&(0,F.jsx)(Uh,{label:`New chat`,children:(0,F.jsx)(jd,{variant:`subtle`,color:`gray`,"aria-label":`New chat`,onClick:te,children:(0,F.jsx)(qE,{size:17,weight:`bold`})})}),(0,F.jsx)(LR,{}),(0,F.jsx)(Uh,{label:`Sign out`,children:(0,F.jsx)(jd,{variant:`subtle`,color:`gray`,"aria-label":`Sign out`,onClick:()=>void se().catch(e=>b(e instanceof Error?e.message:`Sign-out failed — your session is still active.`)),children:(0,F.jsx)(YE,{size:17})})})]})]})}),(0,F.jsxs)(Rp.Main,{children:[(0,F.jsx)(Wi,{}),e&&i&&(0,F.jsx)(RR,{})]}),(0,F.jsx)(VR,{})]})]})}function LR(){let{setColorScheme:e}=to(),t=io(`light`,{getInitialValueInEffect:!0}),n=t===`dark`?`light`:`dark`;return(0,F.jsx)(Uh,{label:`Switch to ${n} theme`,children:(0,F.jsx)(jd,{variant:`subtle`,color:`gray`,"aria-label":`Switch to ${n} theme`,onClick:()=>e(n),children:t===`dark`?(0,F.jsx)(ZE,{size:17,weight:`bold`}):(0,F.jsx)(VE,{size:17,weight:`bold`})})})}function RR(){let{input:e,setInput:t,inputRef:n,submit:r,send:i,ready:a,running:o}=FR();return(0,F.jsx)(N,{pos:`fixed`,bottom:42,left:0,right:0,pb:`md`,pt:`md`,bg:`var(--mantine-color-body)`,style:{zIndex:20},children:(0,F.jsx)(N,{maw:1440,mx:`auto`,px:{base:`md`,sm:`xl`,lg:72},children:(0,F.jsx)(te,{component:`form`,onSubmit:r,className:`chat-composer-field`,withBorder:!0,shadow:`sm`,radius:28,py:6,pl:`lg`,pr:6,children:(0,F.jsxs)(ze,{align:`flex-end`,gap:`xs`,wrap:`nowrap`,children:[(0,F.jsx)(Om,{ref:n,"aria-label":`Message Fanout`,value:e,onChange:e=>t(e.currentTarget.value),onKeyDown:t=>{t.key===`Enter`&&!t.shiftKey&&(t.preventDefault(),i(e))},placeholder:o?`Fanout is analyzing…`:`Ask about health, errors, or latency…`,disabled:!a||o,autosize:!0,minRows:1,maxRows:6,variant:`unstyled`,flex:1}),(0,F.jsx)(jd,{type:`submit`,variant:`filled`,size:40,radius:`xl`,disabled:!e.trim()||!a||o,"aria-label":`Send message`,children:(0,F.jsx)(UE,{size:17,weight:`fill`})})]})})})})}function zR(){let{agentAvailable:e,messages:t,ready:n,running:r,error:i,bottomRef:a,send:o}=FR();if(!e)return(0,F.jsx)(fe,{size:`sm`,py:96,children:(0,F.jsx)(te,{withBorder:!0,radius:`xl`,p:{base:`xl`,sm:40},children:(0,F.jsxs)(Le,{gap:`md`,children:[(0,F.jsx)(Ce,{c:`brand`,fw:700,size:`xs`,tt:`uppercase`,lts:`0.12em`,children:`Optional capability`}),(0,F.jsx)(ue,{order:1,children:`Chat is not configured`}),(0,F.jsx)(Ce,{c:`dimmed`,children:`Add an AI provider key to enable investigation chat. Telemetry ingest, dashboards, traces, logs, and metrics remain available without it.`}),(0,F.jsx)(Oe,{component:`a`,href:`/dashboards`,variant:`light`,mt:`sm`,children:`Open dashboards`})]})})});let s=t.filter(e=>e.role!==`tool`);return n?(0,F.jsxs)(fe,{size:1440,px:{base:`md`,sm:`xl`,lg:72},pt:{base:36,sm:64},pb:190,children:[s.length===0&&(0,F.jsx)(BR,{onSelect:o}),(0,F.jsxs)(Le,{gap:`xl`,"aria-live":`polite`,children:[s.map(e=>(0,F.jsx)(HR,{message:e,send:o},e.id)),r&&(0,F.jsxs)(ze,{gap:`xs`,children:[(0,F.jsx)(le,{type:`dots`,size:`sm`}),(0,F.jsx)(Ce,{c:`dimmed`,size:`sm`,children:`Analyzing your system`})]}),i&&(0,F.jsx)(_e,{color:`bad`,title:`Something went wrong`,children:i}),(0,F.jsx)(`div`,{ref:a})]})]}):(0,F.jsxs)(me,{mih:`50vh`,children:[(0,F.jsx)(le,{size:`sm`}),(0,F.jsx)(Ce,{c:`dimmed`,size:`sm`,ml:`sm`,children:`Loading conversation`})]})}function BR({onSelect:e}){return(0,F.jsxs)(Le,{align:`center`,gap:`lg`,maw:780,mx:`auto`,mb:56,ta:`center`,children:[(0,F.jsx)(je,{size:`large`}),(0,F.jsx)(Ce,{c:`brand`,fw:700,size:`xs`,tt:`uppercase`,lts:`0.14em`,children:`Your system, understood`}),(0,F.jsxs)(ue,{order:1,fz:{base:40,sm:56},lh:1.05,lts:`-0.045em`,children:[`See what changed.`,(0,F.jsx)(`br`,{}),`Know what to do next.`]}),(0,F.jsx)(Ce,{c:`dimmed`,maw:620,children:`Ask about service health, latency, errors, or dependencies. Fanout turns live signals into clear answers and focused views.`}),(0,F.jsx)(Qh,{cols:{base:1,sm:3},spacing:`sm`,w:`100%`,mt:`md`,children:[`Summarize system health for the last hour`,`Find the source of elevated errors`,`Map the current service dependencies`].map((t,n)=>(0,F.jsx)(g,{onClick:()=>void e(t),children:(0,F.jsx)(te,{withBorder:!0,radius:`lg`,p:`md`,mih:{base:74,sm:120},h:`100%`,children:(0,F.jsxs)(Le,{justify:`space-between`,h:`100%`,gap:`md`,children:[(0,F.jsxs)(Ce,{c:`dimmed`,size:`xs`,fw:700,children:[`0`,n+1]}),(0,F.jsxs)(ze,{justify:`space-between`,wrap:`nowrap`,children:[(0,F.jsx)(Ce,{size:`sm`,fw:500,children:t}),(0,F.jsx)(TE,{size:17,weight:`bold`})]})]})})},t))})]})}function VR(){return(0,F.jsx)(Rp.Footer,{children:(0,F.jsxs)(ze,{h:`100%`,px:{base:`sm`,sm:`lg`},justify:`space-between`,wrap:`nowrap`,children:[(0,F.jsxs)(Ce,{c:`dimmed`,size:`xs`,children:[`© 2026 Fanout by `,(0,F.jsx)(Ce,{component:`a`,href:`https://labstack.com`,target:`_blank`,rel:`noreferrer`,inherit:!0,fw:600,c:`var(--mantine-color-text)`,children:`LabStack`})]}),(0,F.jsxs)(ze,{gap:4,children:[(0,F.jsx)(Uh,{label:`GitHub`,children:(0,F.jsx)(jd,{component:`a`,href:`https://github.com/labstack/fanout`,target:`_blank`,rel:`noreferrer`,variant:`subtle`,color:`gray`,size:`sm`,"aria-label":`Fanout on GitHub`,children:(0,F.jsx)(NE,{size:14,weight:`bold`})})}),(0,F.jsx)(Uh,{label:`LabStack`,children:(0,F.jsx)(jd,{component:`a`,href:`https://labstack.com`,target:`_blank`,rel:`noreferrer`,variant:`subtle`,color:`gray`,size:`sm`,"aria-label":`LabStack website`,children:(0,F.jsx)(FE,{size:14})})})]})]})})}function HR({message:e,send:t}){if(e.role===`activity`){let n=e;return n.activityType===`mcp-app`?(0,F.jsx)(te,{radius:`lg`,shadow:`md`,style:{overflow:`hidden`},"aria-label":UR(n.content.toolName),children:(0,F.jsx)(P.Suspense,{fallback:(0,F.jsx)(me,{mih:180,children:(0,F.jsx)(le,{size:`sm`})}),children:(0,F.jsx)(NR,{content:n.content,onMessage:t})})}):null}let n=typeof e.content==`string`?e.content:JSON.stringify(e.content);if(!n&&e.role===`assistant`)return null;let r=e.role===`user`;return(0,F.jsxs)(Le,{gap:`xs`,align:r?`flex-end`:`stretch`,maw:r?`min(92%, 650px)`:780,ml:r?`auto`:void 0,children:[(0,F.jsxs)(ze,{gap:`xs`,justify:r?`flex-end`:`flex-start`,children:[(0,F.jsx)(Xp,{size:22,radius:`sm`,color:r?`gray`:`brand`,children:r?`Y`:`F`}),(0,F.jsx)(Ce,{c:`dimmed`,size:`xs`,fw:700,tt:`uppercase`,lts:`0.08em`,children:r?`You`:`Fanout`})]}),r?(0,F.jsx)(te,{withBorder:!0,radius:`lg`,p:`sm`,bg:`var(--mantine-color-brand-light)`,children:(0,F.jsx)(Ce,{style:{whiteSpace:`pre-wrap`},children:n})}):(0,F.jsx)(eg,{children:(0,F.jsx)(cF,{remarkPlugins:[fR],children:n})})]})}function UR(e){return{observability_overview:`System health`,service_topology:`Service map`,service_performance:`Performance`,trace_detail:`Trace analysis`,search_logs:`Logs`}[e]??`System analysis`}function WR(){let e=(0,P.useMemo)(()=>new uO,[]);return(0,F.jsx)(pO,{client:e,children:(0,F.jsx)(Fe,{children:(0,F.jsx)(IR,{})})})}var GR=Ai({component:WR,notFoundComponent:()=>(0,F.jsx)(f,{to:`/`,replace:!0})}),KR=ji(`/`)({component:Ni(()=>MR(()=>import(`./routes-CYxgPfgb.js`),__vite__mapDeps([3,1,2])),`component`)}),qR=ji(`/chat/`)({component:Ni(()=>MR(()=>import(`./chat.index-ChMb2Nc1.js`),__vite__mapDeps([4,1])),`component`)}),JR=ji(`/chat/$threadId`)({component:Ni(()=>MR(()=>import(`./chat._threadId-BzILJQZc.js`),[]),`component`)}),YR=ji(`/dashboards/`)({component:Ni(()=>MR(()=>import(`./dashboards.index-ClORdutW.js`),__vite__mapDeps([5,1,6,2])),`component`)}),XR=ji(`/dashboards/$dashboardId`)({component:Ni(()=>MR(()=>import(`./dashboards._dashboardId-XXCiLIvn.js`),__vite__mapDeps([7,1,6,2])),`component`)}),ZR=KR.update({id:`/`,path:`/`,getParentRoute:()=>GR}),QR=qR.update({id:`/chat/`,path:`/chat/`,getParentRoute:()=>GR}),$R=JR.update({id:`/chat/$threadId`,path:`/chat/$threadId`,getParentRoute:()=>GR}),ez=YR.update({id:`/dashboards/`,path:`/dashboards/`,getParentRoute:()=>GR}),tz={IndexRoute:ZR,ChatThreadIdRoute:$R,DashboardsDashboardIdRoute:XR.update({id:`/dashboards/$dashboardId`,path:`/dashboards/$dashboardId`,getParentRoute:()=>GR}),ChatIndexRoute:QR,DashboardsIndexRoute:ez},nz=Yi({routeTree:GR._addFileChildren(tz)._addFileTypes(),defaultPreload:`intent`,scrollRestoration:!0}),rz=[`#fafafa`,`#e6e4de`,`#bfbdb6`,`#8b8e99`,`#565b69`,`#1d2433`,`#131721`,`#0b0e14`,`#080a10`,`#05070b`],iz=[`#f3ecfd`,`#ece3fb`,`#dcc9f7`,`#d2a6ff`,`#bf94ec`,`#a97ce0`,`#9163d6`,`#7c4dcc`,`#5b32a3`,`#40236f`],az=[`#eefbe6`,`#dcf7cc`,`#c2f0a6`,`#a5e880`,`#8fe06c`,`#7fd962`,`#66c04b`,`#4f9c3a`,`#3b7a2c`,`#2a5a1f`],oz=[`#fff5e6`,`#ffe9c9`,`#ffd79b`,`#ffc571`,`#ffbc62`,`#ffb454`,`#ef9c33`,`#c87d21`,`#9c5f16`,`#74460f`],sz=[`#fdecee`,`#fbd9dc`,`#f8b6bc`,`#f59099`,`#f37d87`,`#f26d78`,`#e04d5a`,`#c03642`,`#96262f`,`#6f1a21`],cz=[`#e8f6ff`,`#ccebff`,`#a3daff`,`#7dcbff`,`#66c5ff`,`#59c2ff`,`#33a7e6`,`#1e86bd`,`#146694`,`#0d4a6d`],lz={display:`"IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace`,body:`"IBM Plex Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif`},uz={primaryColor:`brand`,primaryShade:{light:7,dark:5},autoContrast:!0,colors:{dark:rz,brand:iz,ok:az,warn:oz,bad:sz,info:cz},defaultRadius:`md`,fontFamily:lz.body,fontFamilyMonospace:lz.display,headings:{fontFamily:lz.display,fontWeight:`500`},cursorType:`pointer`},dz=()=>({variables:{"--mantine-color-error":`var(--mantine-color-bad-filled)`},light:{},dark:{}}),fz=yo(uz);(0,Y_.createRoot)(document.getElementById(`root`)).render((0,F.jsx)(P.StrictMode,{children:(0,F.jsx)(vo,{theme:fz,defaultColorScheme:`auto`,cssVariablesResolver:dz,children:(0,F.jsx)(Qi,{router:nz})})}));export{Ra as A,Cd as C,Ja as D,Za as E,na as M,qa as O,jd as S,io as T,Qh as _,EO as a,em as b,ZD as c,oD as d,yD as f,TE as g,qE as h,OR as i,ra as j,za as k,FD as l,eD as m,zR as n,fO as o,kD as p,FR as r,oO as s,XR as t,hD as u,Uh as v,Ru as w,zp as x,ph as y}; \ No newline at end of file diff --git a/internal/ui/dist/assets/mcp-app-frame-CUbf0me4.js b/internal/ui/dist/assets/mcp-app-frame-CUbf0me4.js new file mode 100644 index 00000000..f1c14a1d --- /dev/null +++ b/internal/ui/dist/assets/mcp-app-frame-CUbf0me4.js @@ -0,0 +1,127 @@ +import{_ as e,a as t,d as n,f as r,g as i,h as a,m as o,p as s}from"./useNavigate-DyHkI5qo.js";import{b as c,f as l,h as u,i as d,m as f,w as p}from"./auth-C4PUlevI.js";import{T as m}from"./index-BtOLla1t.js";var h,g=Object.freeze({status:`aborted`});function _(e,t,n){function r(n,r){if(n._zod||Object.defineProperty(n,"_zod",{value:{def:r,constr:o,traits:new Set},enumerable:!1}),n._zod.traits.has(e))return;n._zod.traits.add(e),t(n,r);let i=o.prototype,a=Object.keys(i);for(let e=0;en?.Parent&&t instanceof n.Parent?!0:t?._zod?.traits?.has(e)}),Object.defineProperty(o,"name",{value:e}),o}var v=class extends Error{constructor(){super(`Encountered Promise during synchronous parse. Use .parseAsync() instead.`)}},y=class extends Error{constructor(e){super(`Encountered unidirectional transform during encode: ${e}`),this.name=`ZodEncodeError`}};(h=globalThis).__zod_globalConfig??(h.__zod_globalConfig={});var b=globalThis.__zod_globalConfig;function x(e){return e&&Object.assign(b,e),b}function S(e){let t=Object.values(e).filter(e=>typeof e==`number`);return Object.entries(e).filter(([e,n])=>t.indexOf(+e)===-1).map(([e,t])=>t)}function C(e,t){return typeof t==`bigint`?t.toString():t}function ee(e){return{get value(){{let t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function te(e){return e==null}function ne(e){let t=+!!e.startsWith(`^`),n=e.endsWith(`$`)?e.length-1:e.length;return e.slice(t,n)}function re(e,t){let n=e/t,r=Math.round(n),i=2**-52*Math.max(Math.abs(n),1);return Math.abs(n-r){};function ue(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}var de=ee(()=>{if(b.jitless||typeof navigator<`u`&&navigator?.userAgent?.includes(`Cloudflare`))return!1;try{return Function(``),!0}catch{return!1}});function fe(e){if(ue(e)===!1)return!1;let t=e.constructor;if(t===void 0||typeof t!=`function`)return!0;let n=t.prototype;return ue(n)!==!1&&Object.prototype.hasOwnProperty.call(n,`isPrototypeOf`)!==!1}function pe(e){return fe(e)?{...e}:Array.isArray(e)?[...e]:e instanceof Map?new Map(e):e instanceof Set?new Set(e):e}var me=new Set([`string`,`number`,`symbol`]);function he(e){return e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)}function ge(e,t,n){let r=new e._zod.constr(t??e._zod.def);return(!t||n?.parent)&&(r._zod.parent=e),r}function T(e){let t=e;if(!t)return{};if(typeof t==`string`)return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error==`string`?{...t,error:()=>t.error}:t}function _e(e){return Object.keys(e).filter(t=>e[t]._zod.optin===`optional`&&e[t]._zod.optout===`optional`)}var ve={safeint:[-(2**53-1),2**53-1],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]};function ye(e,t){let n=e._zod.def,r=n.checks;if(r&&r.length>0)throw Error(`.pick() cannot be used on object schemas containing refinements`);return ge(e,oe(e._zod.def,{get shape(){let e={};for(let r in t){if(!(r in n.shape))throw Error(`Unrecognized key: "${r}"`);t[r]&&(e[r]=n.shape[r])}return ae(this,`shape`,e),e},checks:[]}))}function be(e,t){let n=e._zod.def,r=n.checks;if(r&&r.length>0)throw Error(`.omit() cannot be used on object schemas containing refinements`);return ge(e,oe(e._zod.def,{get shape(){let r={...e._zod.def.shape};for(let e in t){if(!(e in n.shape))throw Error(`Unrecognized key: "${e}"`);t[e]&&delete r[e]}return ae(this,`shape`,r),r},checks:[]}))}function xe(e,t){if(!fe(t))throw Error(`Invalid input to extend: expected a plain object`);let n=e._zod.def.checks;if(n&&n.length>0){let n=e._zod.def.shape;for(let e in t)if(Object.getOwnPropertyDescriptor(n,e)!==void 0)throw Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}return ge(e,oe(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t};return ae(this,`shape`,n),n}}))}function Se(e,t){if(!fe(t))throw Error(`Invalid input to safeExtend: expected a plain object`);return ge(e,oe(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t};return ae(this,`shape`,n),n}}))}function Ce(e,t){if(e._zod.def.checks?.length)throw Error(`.merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.`);return ge(e,oe(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t._zod.def.shape};return ae(this,`shape`,n),n},get catchall(){return t._zod.def.catchall},checks:t._zod.def.checks??[]}))}function we(e,t,n){let r=t._zod.def.checks;if(r&&r.length>0)throw Error(`.partial() cannot be used on object schemas containing refinements`);return ge(t,oe(t._zod.def,{get shape(){let r=t._zod.def.shape,i={...r};if(n)for(let t in n){if(!(t in r))throw Error(`Unrecognized key: "${t}"`);n[t]&&(i[t]=e?new e({type:`optional`,innerType:r[t]}):r[t])}else for(let t in r)i[t]=e?new e({type:`optional`,innerType:r[t]}):r[t];return ae(this,`shape`,i),i},checks:[]}))}function Te(e,t,n){return ge(t,oe(t._zod.def,{get shape(){let r=t._zod.def.shape,i={...r};if(n)for(let t in n){if(!(t in i))throw Error(`Unrecognized key: "${t}"`);n[t]&&(i[t]=new e({type:`nonoptional`,innerType:r[t]}))}else for(let t in r)i[t]=new e({type:`nonoptional`,innerType:r[t]});return ae(this,`shape`,i),i}}))}function Ee(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n{var n;return(n=t).path??(n.path=[]),t.path.unshift(e),t})}function ke(e){return typeof e==`string`?e:e?.message}function Ae(e,t,n){let r=e.message?e.message:ke(e.inst?._zod.def?.error?.(e))??ke(t?.error?.(e))??ke(n.customError?.(e))??ke(n.localeError?.(e))??`Invalid input`,{inst:i,continue:a,input:o,...s}=e;return s.path??=[],s.message=r,t?.reportInput&&(s.input=o),s}function je(e){return Array.isArray(e)?`array`:typeof e==`string`?`string`:`unknown`}function Me(...e){let[t,n,r]=e;return typeof t==`string`?{message:t,code:`custom`,input:n,inst:r}:{...t}}var Ne=(e,t)=>{e.name=`$ZodError`,Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,C,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},Pe=_(`$ZodError`,Ne),Fe=_(`$ZodError`,Ne,{Parent:Error});function Ie(e,t=e=>e.message){let n={},r=[];for(let i of e.issues)i.path.length>0?(n[i.path[0]]=n[i.path[0]]||[],n[i.path[0]].push(t(i))):r.push(t(i));return{formErrors:r,fieldErrors:n}}function Le(e,t=e=>e.message){let n={_errors:[]},r=(e,i=[])=>{for(let a of e.issues)if(a.code===`invalid_union`&&a.errors.length)a.errors.map(e=>r({issues:e},[...i,...a.path]));else if(a.code===`invalid_key`)r({issues:a.issues},[...i,...a.path]);else if(a.code===`invalid_element`)r({issues:a.issues},[...i,...a.path]);else{let e=[...i,...a.path];if(e.length===0)n._errors.push(t(a));else{let r=n,i=0;for(;i(t,n,r,i)=>{let a=r?{...r,async:!1}:{async:!1},o=t._zod.run({value:n,issues:[]},a);if(o instanceof Promise)throw new v;if(o.issues.length){let t=new((i?.Err)??e)(o.issues.map(e=>Ae(e,a,x())));throw le(t,i?.callee),t}return o.value},ze=e=>async(t,n,r,i)=>{let a=r?{...r,async:!0}:{async:!0},o=t._zod.run({value:n,issues:[]},a);if(o instanceof Promise&&(o=await o),o.issues.length){let t=new((i?.Err)??e)(o.issues.map(e=>Ae(e,a,x())));throw le(t,i?.callee),t}return o.value},Be=e=>(t,n,r)=>{let i=r?{...r,async:!1}:{async:!1},a=t._zod.run({value:n,issues:[]},i);if(a instanceof Promise)throw new v;return a.issues.length?{success:!1,error:new(e??Pe)(a.issues.map(e=>Ae(e,i,x())))}:{success:!0,data:a.value}},Ve=Be(Fe),He=e=>async(t,n,r)=>{let i=r?{...r,async:!0}:{async:!0},a=t._zod.run({value:n,issues:[]},i);return a instanceof Promise&&(a=await a),a.issues.length?{success:!1,error:new e(a.issues.map(e=>Ae(e,i,x())))}:{success:!0,data:a.value}},Ue=He(Fe),We=e=>(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return Re(e)(t,n,i)},Ge=e=>(t,n,r)=>Re(e)(t,n,r),Ke=e=>async(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return ze(e)(t,n,i)},qe=e=>async(t,n,r)=>ze(e)(t,n,r),Je=e=>(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return Be(e)(t,n,i)},Ye=e=>(t,n,r)=>Be(e)(t,n,r),Xe=e=>async(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return He(e)(t,n,i)},Ze=e=>async(t,n,r)=>He(e)(t,n,r),Qe=/^[cC][0-9a-z]{6,}$/,$e=/^[0-9a-z]+$/,et=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,tt=/^[0-9a-vA-V]{20}$/,nt=/^[A-Za-z0-9]{27}$/,rt=/^[a-zA-Z0-9_-]{21}$/,it=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,at=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,ot=e=>e?RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,st=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,ct=`^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$`;function lt(){return new RegExp(ct,`u`)}var ut=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,dt=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,ft=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,pt=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,mt=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,ht=/^[A-Za-z0-9_-]*$/,gt=/^https?$/,_t=/^\+[1-9]\d{6,14}$/,vt=`(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))`,yt=RegExp(`^${vt}$`);function bt(e){let t=`(?:[01]\\d|2[0-3]):[0-5]\\d`;return typeof e.precision==`number`?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function xt(e){return RegExp(`^${bt(e)}$`)}function St(e){let t=bt({precision:e.precision}),n=[`Z`];e.local&&n.push(``),e.offset&&n.push(`([+-](?:[01]\\d|2[0-3]):[0-5]\\d)`);let r=`${t}(?:${n.join(`|`)})`;return RegExp(`^${vt}T(?:${r})$`)}var Ct=e=>{let t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??``}}`:`[\\s\\S]*`;return RegExp(`^${t}$`)},wt=/^-?\d+$/,Tt=/^-?\d+(?:\.\d+)?$/,Et=/^(?:true|false)$/i,Dt=/^null$/i,Ot=/^undefined$/i,kt=/^[^A-Z]*$/,At=/^[^a-z]*$/,E=_(`$ZodCheck`,(e,t)=>{var n;e._zod??={},e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),jt={number:`number`,bigint:`bigint`,object:`date`},Mt=_(`$ZodCheckLessThan`,(e,t)=>{E.init(e,t);let n=jt[typeof t.value];e._zod.onattach.push(e=>{let n=e._zod.bag,r=(t.inclusive?n.maximum:n.exclusiveMaximum)??1/0;t.value{(t.inclusive?r.value<=t.value:r.value{E.init(e,t);let n=jt[typeof t.value];e._zod.onattach.push(e=>{let n=e._zod.bag,r=(t.inclusive?n.minimum:n.exclusiveMinimum)??-1/0;t.value>r&&(t.inclusive?n.minimum=t.value:n.exclusiveMinimum=t.value)}),e._zod.check=r=>{(t.inclusive?r.value>=t.value:r.value>t.value)||r.issues.push({origin:n,code:`too_small`,minimum:typeof t.value==`object`?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),Pt=_(`$ZodCheckMultipleOf`,(e,t)=>{E.init(e,t),e._zod.onattach.push(e=>{var n;(n=e._zod.bag).multipleOf??(n.multipleOf=t.value)}),e._zod.check=n=>{if(typeof n.value!=typeof t.value)throw Error(`Cannot mix number and bigint in multiple_of check.`);(typeof n.value==`bigint`?n.value%t.value===BigInt(0):re(n.value,t.value)===0)||n.issues.push({origin:typeof n.value,code:`not_multiple_of`,divisor:t.value,input:n.value,inst:e,continue:!t.abort})}}),Ft=_(`$ZodCheckNumberFormat`,(e,t)=>{E.init(e,t),t.format=t.format||`float64`;let n=t.format?.includes(`int`),r=n?`int`:`number`,[i,a]=ve[t.format];e._zod.onattach.push(e=>{let r=e._zod.bag;r.format=t.format,r.minimum=i,r.maximum=a,n&&(r.pattern=wt)}),e._zod.check=o=>{let s=o.value;if(n){if(!Number.isInteger(s)){o.issues.push({expected:r,format:t.format,code:`invalid_type`,continue:!1,input:s,inst:e});return}if(!Number.isSafeInteger(s)){s>0?o.issues.push({input:s,code:`too_big`,maximum:2**53-1,note:`Integers must be within the safe integer range.`,inst:e,origin:r,inclusive:!0,continue:!t.abort}):o.issues.push({input:s,code:`too_small`,minimum:-(2**53-1),note:`Integers must be within the safe integer range.`,inst:e,origin:r,inclusive:!0,continue:!t.abort});return}}sa&&o.issues.push({origin:`number`,input:s,code:`too_big`,maximum:a,inclusive:!0,inst:e,continue:!t.abort})}}),It=_(`$ZodCheckMaxLength`,(e,t)=>{var n;E.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!te(t)&&t.length!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag.maximum??1/0;t.maximum{let r=n.value;if(r.length<=t.maximum)return;let i=je(r);n.issues.push({origin:i,code:`too_big`,maximum:t.maximum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),Lt=_(`$ZodCheckMinLength`,(e,t)=>{var n;E.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!te(t)&&t.length!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag.minimum??-1/0;t.minimum>n&&(e._zod.bag.minimum=t.minimum)}),e._zod.check=n=>{let r=n.value;if(r.length>=t.minimum)return;let i=je(r);n.issues.push({origin:i,code:`too_small`,minimum:t.minimum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),Rt=_(`$ZodCheckLengthEquals`,(e,t)=>{var n;E.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!te(t)&&t.length!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag;n.minimum=t.length,n.maximum=t.length,n.length=t.length}),e._zod.check=n=>{let r=n.value,i=r.length;if(i===t.length)return;let a=je(r),o=i>t.length;n.issues.push({origin:a,...o?{code:`too_big`,maximum:t.length}:{code:`too_small`,minimum:t.length},inclusive:!0,exact:!0,input:n.value,inst:e,continue:!t.abort})}}),zt=_(`$ZodCheckStringFormat`,(e,t)=>{var n,r;E.init(e,t),e._zod.onattach.push(e=>{let n=e._zod.bag;n.format=t.format,t.pattern&&(n.patterns??=new Set,n.patterns.add(t.pattern))}),t.pattern?(n=e._zod).check??(n.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:`string`,code:`invalid_format`,format:t.format,input:n.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(r=e._zod).check??(r.check=()=>{})}),Bt=_(`$ZodCheckRegex`,(e,t)=>{zt.init(e,t),e._zod.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:`string`,code:`invalid_format`,format:`regex`,input:n.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),Vt=_(`$ZodCheckLowerCase`,(e,t)=>{t.pattern??=kt,zt.init(e,t)}),Ht=_(`$ZodCheckUpperCase`,(e,t)=>{t.pattern??=At,zt.init(e,t)}),Ut=_(`$ZodCheckIncludes`,(e,t)=>{E.init(e,t);let n=he(t.includes),r=new RegExp(typeof t.position==`number`?`^.{${t.position}}${n}`:n);t.pattern=r,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??=new Set,t.patterns.add(r)}),e._zod.check=n=>{n.value.includes(t.includes,t.position)||n.issues.push({origin:`string`,code:`invalid_format`,format:`includes`,includes:t.includes,input:n.value,inst:e,continue:!t.abort})}}),Wt=_(`$ZodCheckStartsWith`,(e,t)=>{E.init(e,t);let n=RegExp(`^${he(t.prefix)}.*`);t.pattern??=n,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??=new Set,t.patterns.add(n)}),e._zod.check=n=>{n.value.startsWith(t.prefix)||n.issues.push({origin:`string`,code:`invalid_format`,format:`starts_with`,prefix:t.prefix,input:n.value,inst:e,continue:!t.abort})}}),Gt=_(`$ZodCheckEndsWith`,(e,t)=>{E.init(e,t);let n=RegExp(`.*${he(t.suffix)}$`);t.pattern??=n,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??=new Set,t.patterns.add(n)}),e._zod.check=n=>{n.value.endsWith(t.suffix)||n.issues.push({origin:`string`,code:`invalid_format`,format:`ends_with`,suffix:t.suffix,input:n.value,inst:e,continue:!t.abort})}}),Kt=_(`$ZodCheckOverwrite`,(e,t)=>{E.init(e,t),e._zod.check=e=>{e.value=t.tx(e.value)}}),qt=class{constructor(e=[]){this.content=[],this.indent=0,this&&(this.args=e)}indented(e){this.indent+=1,e(this),--this.indent}write(e){if(typeof e==`function`){e(this,{execution:`sync`}),e(this,{execution:`async`});return}let t=e.split(` +`).filter(e=>e),n=Math.min(...t.map(e=>e.length-e.trimStart().length)),r=t.map(e=>e.slice(n)).map(e=>` `.repeat(this.indent*2)+e);for(let e of r)this.content.push(e)}compile(){let e=Function,t=this?.args,n=[...(this?.content??[``]).map(e=>` ${e}`)];return new e(...t,n.join(` +`))}},Jt={major:4,minor:4,patch:3},D=_(`$ZodType`,(e,t)=>{var n;e??={},e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=Jt;let r=[...e._zod.def.checks??[]];e._zod.traits.has(`$ZodCheck`)&&r.unshift(e);for(let t of r)for(let n of t._zod.onattach)n(e);if(r.length===0)(n=e._zod).deferred??(n.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{let t=(e,t,n)=>{let r=Ee(e),i;for(let a of t){if(a._zod.def.when){if(De(e)||!a._zod.def.when(e))continue}else if(r)continue;let t=e.issues.length,o=a._zod.check(e);if(o instanceof Promise&&n?.async===!1)throw new v;if(i||o instanceof Promise)i=(i??Promise.resolve()).then(async()=>{await o,e.issues.length!==t&&(r||=Ee(e,t))});else{if(e.issues.length===t)continue;r||=Ee(e,t)}}return i?i.then(()=>e):e},n=(n,i,a)=>{if(Ee(n))return n.aborted=!0,n;let o=t(i,r,a);if(o instanceof Promise){if(a.async===!1)throw new v;return o.then(t=>e._zod.parse(t,a))}return e._zod.parse(o,a)};e._zod.run=(i,a)=>{if(a.skipChecks)return e._zod.parse(i,a);if(a.direction===`backward`){let t=e._zod.parse({value:i.value,issues:[]},{...a,skipChecks:!0});return t instanceof Promise?t.then(e=>n(e,i,a)):n(t,i,a)}let o=e._zod.parse(i,a);if(o instanceof Promise){if(a.async===!1)throw new v;return o.then(e=>t(e,r,a))}return t(o,r,a)}}w(e,`~standard`,()=>({validate:t=>{try{let n=Ve(e,t);return n.success?{value:n.data}:{issues:n.error?.issues}}catch{return Ue(e,t).then(e=>e.success?{value:e.data}:{issues:e.error?.issues})}},vendor:`zod`,version:1}))}),Yt=_(`$ZodString`,(e,t)=>{D.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??Ct(e._zod.bag),e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=String(n.value)}catch{}return typeof n.value==`string`||n.issues.push({expected:`string`,code:`invalid_type`,input:n.value,inst:e}),n}}),O=_(`$ZodStringFormat`,(e,t)=>{zt.init(e,t),Yt.init(e,t)}),Xt=_(`$ZodGUID`,(e,t)=>{t.pattern??=at,O.init(e,t)}),Zt=_(`$ZodUUID`,(e,t)=>{if(t.version){let e={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(e===void 0)throw Error(`Invalid UUID version: "${t.version}"`);t.pattern??=ot(e)}else t.pattern??=ot();O.init(e,t)}),Qt=_(`$ZodEmail`,(e,t)=>{t.pattern??=st,O.init(e,t)}),$t=_(`$ZodURL`,(e,t)=>{O.init(e,t),e._zod.check=n=>{try{let r=n.value.trim();if(!t.normalize&&t.protocol?.source===gt.source&&!/^https?:\/\//i.test(r)){n.issues.push({code:`invalid_format`,format:`url`,note:`Invalid URL format`,input:n.value,inst:e,continue:!t.abort});return}let i=new URL(r);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(i.hostname)||n.issues.push({code:`invalid_format`,format:`url`,note:`Invalid hostname`,pattern:t.hostname.source,input:n.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(i.protocol.endsWith(`:`)?i.protocol.slice(0,-1):i.protocol)||n.issues.push({code:`invalid_format`,format:`url`,note:`Invalid protocol`,pattern:t.protocol.source,input:n.value,inst:e,continue:!t.abort})),n.value=t.normalize?i.href:r;return}catch{n.issues.push({code:`invalid_format`,format:`url`,input:n.value,inst:e,continue:!t.abort})}}}),en=_(`$ZodEmoji`,(e,t)=>{t.pattern??=lt(),O.init(e,t)}),tn=_(`$ZodNanoID`,(e,t)=>{t.pattern??=rt,O.init(e,t)}),nn=_(`$ZodCUID`,(e,t)=>{t.pattern??=Qe,O.init(e,t)}),rn=_(`$ZodCUID2`,(e,t)=>{t.pattern??=$e,O.init(e,t)}),an=_(`$ZodULID`,(e,t)=>{t.pattern??=et,O.init(e,t)}),on=_(`$ZodXID`,(e,t)=>{t.pattern??=tt,O.init(e,t)}),sn=_(`$ZodKSUID`,(e,t)=>{t.pattern??=nt,O.init(e,t)}),cn=_(`$ZodISODateTime`,(e,t)=>{t.pattern??=St(t),O.init(e,t)}),ln=_(`$ZodISODate`,(e,t)=>{t.pattern??=yt,O.init(e,t)}),un=_(`$ZodISOTime`,(e,t)=>{t.pattern??=xt(t),O.init(e,t)}),dn=_(`$ZodISODuration`,(e,t)=>{t.pattern??=it,O.init(e,t)}),fn=_(`$ZodIPv4`,(e,t)=>{t.pattern??=ut,O.init(e,t),e._zod.bag.format=`ipv4`}),pn=_(`$ZodIPv6`,(e,t)=>{t.pattern??=dt,O.init(e,t),e._zod.bag.format=`ipv6`,e._zod.check=n=>{try{new URL(`http://[${n.value}]`)}catch{n.issues.push({code:`invalid_format`,format:`ipv6`,input:n.value,inst:e,continue:!t.abort})}}}),mn=_(`$ZodCIDRv4`,(e,t)=>{t.pattern??=ft,O.init(e,t)}),hn=_(`$ZodCIDRv6`,(e,t)=>{t.pattern??=pt,O.init(e,t),e._zod.check=n=>{let r=n.value.split(`/`);try{if(r.length!==2)throw Error();let[e,t]=r;if(!t)throw Error();let n=Number(t);if(`${n}`!==t||n<0||n>128)throw Error();new URL(`http://[${e}]`)}catch{n.issues.push({code:`invalid_format`,format:`cidrv6`,input:n.value,inst:e,continue:!t.abort})}}});function gn(e){if(e===``)return!0;if(/\s/.test(e)||e.length%4!=0)return!1;try{return atob(e),!0}catch{return!1}}var _n=_(`$ZodBase64`,(e,t)=>{t.pattern??=mt,O.init(e,t),e._zod.bag.contentEncoding=`base64`,e._zod.check=n=>{gn(n.value)||n.issues.push({code:`invalid_format`,format:`base64`,input:n.value,inst:e,continue:!t.abort})}});function vn(e){if(!ht.test(e))return!1;let t=e.replace(/[-_]/g,e=>e===`-`?`+`:`/`);return gn(t.padEnd(Math.ceil(t.length/4)*4,`=`))}var yn=_(`$ZodBase64URL`,(e,t)=>{t.pattern??=ht,O.init(e,t),e._zod.bag.contentEncoding=`base64url`,e._zod.check=n=>{vn(n.value)||n.issues.push({code:`invalid_format`,format:`base64url`,input:n.value,inst:e,continue:!t.abort})}}),bn=_(`$ZodE164`,(e,t)=>{t.pattern??=_t,O.init(e,t)});function xn(e,t=null){try{let n=e.split(`.`);if(n.length!==3)return!1;let[r]=n;if(!r)return!1;let i=JSON.parse(atob(r));return!(`typ`in i&&i?.typ!==`JWT`||!i.alg||t&&(!(`alg`in i)||i.alg!==t))}catch{return!1}}var Sn=_(`$ZodJWT`,(e,t)=>{O.init(e,t),e._zod.check=n=>{xn(n.value,t.alg)||n.issues.push({code:`invalid_format`,format:`jwt`,input:n.value,inst:e,continue:!t.abort})}}),Cn=_(`$ZodNumber`,(e,t)=>{D.init(e,t),e._zod.pattern=e._zod.bag.pattern??Tt,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=Number(n.value)}catch{}let i=n.value;if(typeof i==`number`&&!Number.isNaN(i)&&Number.isFinite(i))return n;let a=typeof i==`number`?Number.isNaN(i)?`NaN`:Number.isFinite(i)?void 0:`Infinity`:void 0;return n.issues.push({expected:`number`,code:`invalid_type`,input:i,inst:e,...a?{received:a}:{}}),n}}),wn=_(`$ZodNumberFormat`,(e,t)=>{Ft.init(e,t),Cn.init(e,t)}),Tn=_(`$ZodBoolean`,(e,t)=>{D.init(e,t),e._zod.pattern=Et,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=!!n.value}catch{}let i=n.value;return typeof i==`boolean`||n.issues.push({expected:`boolean`,code:`invalid_type`,input:i,inst:e}),n}}),En=_(`$ZodUndefined`,(e,t)=>{D.init(e,t),e._zod.pattern=Ot,e._zod.values=new Set([void 0]),e._zod.parse=(t,n)=>{let r=t.value;return r===void 0||t.issues.push({expected:`undefined`,code:`invalid_type`,input:r,inst:e}),t}}),Dn=_(`$ZodNull`,(e,t)=>{D.init(e,t),e._zod.pattern=Dt,e._zod.values=new Set([null]),e._zod.parse=(t,n)=>{let r=t.value;return r===null||t.issues.push({expected:`null`,code:`invalid_type`,input:r,inst:e}),t}}),On=_(`$ZodAny`,(e,t)=>{D.init(e,t),e._zod.parse=e=>e}),kn=_(`$ZodUnknown`,(e,t)=>{D.init(e,t),e._zod.parse=e=>e}),An=_(`$ZodNever`,(e,t)=>{D.init(e,t),e._zod.parse=(t,n)=>(t.issues.push({expected:`never`,code:`invalid_type`,input:t.value,inst:e}),t)});function jn(e,t,n){e.issues.length&&t.issues.push(...Oe(n,e.issues)),t.value[n]=e.value}var Mn=_(`$ZodArray`,(e,t)=>{D.init(e,t),e._zod.parse=(n,r)=>{let i=n.value;if(!Array.isArray(i))return n.issues.push({expected:`array`,code:`invalid_type`,input:i,inst:e}),n;n.value=Array(i.length);let a=[];for(let e=0;ejn(t,n,e))):jn(s,n,e)}return a.length?Promise.all(a).then(()=>n):n}});function Nn(e,t,n,r,i,a){let o=n in r;if(e.issues.length){if(i&&a&&!o)return;t.issues.push(...Oe(n,e.issues))}if(!o&&!i){e.issues.length||t.issues.push({code:`invalid_type`,expected:`nonoptional`,input:void 0,path:[n]});return}e.value===void 0?o&&(t.value[n]=void 0):t.value[n]=e.value}function Pn(e){let t=Object.keys(e.shape);for(let n of t)if(!e.shape?.[n]?._zod?.traits?.has(`$ZodType`))throw Error(`Invalid element at key "${n}": expected a Zod schema`);let n=_e(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(n)}}function Fn(e,t,n,r,i,a){let o=[],s=i.keySet,c=i.catchall._zod,l=c.def.type,u=c.optin===`optional`,d=c.optout===`optional`;for(let i in t){if(i===`__proto__`||s.has(i))continue;if(l===`never`){o.push(i);continue}let a=c.run({value:t[i],issues:[]},r);a instanceof Promise?e.push(a.then(e=>Nn(e,n,i,t,u,d))):Nn(a,n,i,t,u,d)}return o.length&&n.issues.push({code:`unrecognized_keys`,keys:o,input:t,inst:a}),e.length?Promise.all(e).then(()=>n):n}var In=_(`$ZodObject`,(e,t)=>{if(D.init(e,t),!Object.getOwnPropertyDescriptor(t,`shape`)?.get){let e=t.shape;Object.defineProperty(t,"shape",{get:()=>{let n={...e};return Object.defineProperty(t,"shape",{value:n}),n}})}let n=ee(()=>Pn(t));w(e._zod,`propValues`,()=>{let e=t.shape,n={};for(let t in e){let r=e[t]._zod;if(r.values){n[t]??(n[t]=new Set);for(let e of r.values)n[t].add(e)}}return n});let r=ue,i=t.catchall,a;e._zod.parse=(t,o)=>{a??=n.value;let s=t.value;if(!r(s))return t.issues.push({expected:`object`,code:`invalid_type`,input:s,inst:e}),t;t.value={};let c=[],l=a.shape;for(let e of a.keys){let n=l[e],r=n._zod.optin===`optional`,i=n._zod.optout===`optional`,a=n._zod.run({value:s[e],issues:[]},o);a instanceof Promise?c.push(a.then(n=>Nn(n,t,e,s,r,i))):Nn(a,t,e,s,r,i)}return i?Fn(c,s,t,o,n.value,e):c.length?Promise.all(c).then(()=>t):t}}),Ln=_(`$ZodObjectJIT`,(e,t)=>{In.init(e,t);let n=e._zod.parse,r=ee(()=>Pn(t)),i=e=>{let t=new qt([`shape`,`payload`,`ctx`]),n=r.value,i=e=>{let t=se(e);return`shape[${t}]._zod.run({ value: input[${t}], issues: [] }, ctx)`};t.write(`const input = payload.value;`);let a=Object.create(null),o=0;for(let e of n.keys)a[e]=`key_${o++}`;t.write(`const newResult = {};`);for(let r of n.keys){let n=a[r],o=se(r),s=e[r],c=s?._zod?.optin===`optional`,l=s?._zod?.optout===`optional`;t.write(`const ${n} = ${i(r)};`),c&&l?t.write(` + if (${n}.issues.length) { + if (${o} in input) { + payload.issues = payload.issues.concat(${n}.issues.map(iss => ({ + ...iss, + path: iss.path ? [${o}, ...iss.path] : [${o}] + }))); + } + } + + if (${n}.value === undefined) { + if (${o} in input) { + newResult[${o}] = undefined; + } + } else { + newResult[${o}] = ${n}.value; + } + + `):c?t.write(` + if (${n}.issues.length) { + payload.issues = payload.issues.concat(${n}.issues.map(iss => ({ + ...iss, + path: iss.path ? [${o}, ...iss.path] : [${o}] + }))); + } + + if (${n}.value === undefined) { + if (${o} in input) { + newResult[${o}] = undefined; + } + } else { + newResult[${o}] = ${n}.value; + } + + `):t.write(` + const ${n}_present = ${o} in input; + if (${n}.issues.length) { + payload.issues = payload.issues.concat(${n}.issues.map(iss => ({ + ...iss, + path: iss.path ? [${o}, ...iss.path] : [${o}] + }))); + } + if (!${n}_present && !${n}.issues.length) { + payload.issues.push({ + code: "invalid_type", + expected: "nonoptional", + input: undefined, + path: [${o}] + }); + } + + if (${n}_present) { + if (${n}.value === undefined) { + newResult[${o}] = undefined; + } else { + newResult[${o}] = ${n}.value; + } + } + + `)}t.write(`payload.value = newResult;`),t.write(`return payload;`);let s=t.compile();return(t,n)=>s(e,t,n)},a,o=ue,s=!b.jitless,c=s&&de.value,l=t.catchall,u;e._zod.parse=(d,f)=>{u??=r.value;let p=d.value;return o(p)?s&&c&&f?.async===!1&&f.jitless!==!0?(a||=i(t.shape),d=a(d,f),l?Fn([],p,d,f,u,e):d):n(d,f):(d.issues.push({expected:`object`,code:`invalid_type`,input:p,inst:e}),d)}});function Rn(e,t,n,r){for(let n of e)if(n.issues.length===0)return t.value=n.value,t;let i=e.filter(e=>!Ee(e));return i.length===1?(t.value=i[0].value,i[0]):(t.issues.push({code:`invalid_union`,input:t.value,inst:n,errors:e.map(e=>e.issues.map(e=>Ae(e,r,x())))}),t)}var zn=_(`$ZodUnion`,(e,t)=>{D.init(e,t),w(e._zod,`optin`,()=>t.options.some(e=>e._zod.optin===`optional`)?`optional`:void 0),w(e._zod,`optout`,()=>t.options.some(e=>e._zod.optout===`optional`)?`optional`:void 0),w(e._zod,`values`,()=>{if(t.options.every(e=>e._zod.values))return new Set(t.options.flatMap(e=>Array.from(e._zod.values)))}),w(e._zod,`pattern`,()=>{if(t.options.every(e=>e._zod.pattern)){let e=t.options.map(e=>e._zod.pattern);return RegExp(`^(${e.map(e=>ne(e.source)).join(`|`)})$`)}});let n=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(r,i)=>{if(n)return n(r,i);let a=!1,o=[];for(let e of t.options){let t=e._zod.run({value:r.value,issues:[]},i);if(t instanceof Promise)o.push(t),a=!0;else{if(t.issues.length===0)return t;o.push(t)}}return a?Promise.all(o).then(t=>Rn(t,r,e,i)):Rn(o,r,e,i)}}),Bn=_(`$ZodDiscriminatedUnion`,(e,t)=>{t.inclusive=!1,zn.init(e,t);let n=e._zod.parse;w(e._zod,`propValues`,()=>{let e={};for(let n of t.options){let r=n._zod.propValues;if(!r||Object.keys(r).length===0)throw Error(`Invalid discriminated union option at index "${t.options.indexOf(n)}"`);for(let[t,n]of Object.entries(r)){e[t]||(e[t]=new Set);for(let r of n)e[t].add(r)}}return e});let r=ee(()=>{let e=t.options,n=new Map;for(let r of e){let e=r._zod.propValues?.[t.discriminator];if(!e||e.size===0)throw Error(`Invalid discriminated union option at index "${t.options.indexOf(r)}"`);for(let t of e){if(n.has(t))throw Error(`Duplicate discriminator value "${String(t)}"`);n.set(t,r)}}return n});e._zod.parse=(i,a)=>{let o=i.value;if(!ue(o))return i.issues.push({code:`invalid_type`,expected:`object`,input:o,inst:e}),i;let s=r.value.get(o?.[t.discriminator]);return s?s._zod.run(i,a):t.unionFallback||a.direction===`backward`?n(i,a):(i.issues.push({code:`invalid_union`,errors:[],note:`No matching discriminator`,discriminator:t.discriminator,options:Array.from(r.value.keys()),input:o,path:[t.discriminator],inst:e}),i)}}),Vn=_(`$ZodIntersection`,(e,t)=>{D.init(e,t),e._zod.parse=(e,n)=>{let r=e.value,i=t.left._zod.run({value:r,issues:[]},n),a=t.right._zod.run({value:r,issues:[]},n);return i instanceof Promise||a instanceof Promise?Promise.all([i,a]).then(([t,n])=>Un(e,t,n)):Un(e,i,a)}});function Hn(e,t){if(e===t||e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(fe(e)&&fe(t)){let n=Object.keys(t),r=Object.keys(e).filter(e=>n.indexOf(e)!==-1),i={...e,...t};for(let n of r){let r=Hn(e[n],t[n]);if(!r.valid)return{valid:!1,mergeErrorPath:[n,...r.mergeErrorPath]};i[n]=r.data}return{valid:!0,data:i}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};let n=[];for(let r=0;re.l&&e.r).map(([e])=>e);if(a.length&&i&&e.issues.push({...i,keys:a}),Ee(e))return e;let o=Hn(t.value,n.value);if(!o.valid)throw Error(`Unmergable intersection. Error path: ${JSON.stringify(o.mergeErrorPath)}`);return e.value=o.data,e}var Wn=_(`$ZodRecord`,(e,t)=>{D.init(e,t),e._zod.parse=(n,r)=>{let i=n.value;if(!fe(i))return n.issues.push({expected:`record`,code:`invalid_type`,input:i,inst:e}),n;let a=[],o=t.keyType._zod.values;if(o){n.value={};let s=new Set;for(let c of o)if(typeof c==`string`||typeof c==`number`||typeof c==`symbol`){s.add(typeof c==`number`?c.toString():c);let o=t.keyType._zod.run({value:c,issues:[]},r);if(o instanceof Promise)throw Error(`Async schemas not supported in object keys currently`);if(o.issues.length){n.issues.push({code:`invalid_key`,origin:`record`,issues:o.issues.map(e=>Ae(e,r,x())),input:c,path:[c],inst:e});continue}let l=o.value,u=t.valueType._zod.run({value:i[c],issues:[]},r);u instanceof Promise?a.push(u.then(e=>{e.issues.length&&n.issues.push(...Oe(c,e.issues)),n.value[l]=e.value})):(u.issues.length&&n.issues.push(...Oe(c,u.issues)),n.value[l]=u.value)}let c;for(let e in i)s.has(e)||(c??=[],c.push(e));c&&c.length>0&&n.issues.push({code:`unrecognized_keys`,input:i,inst:e,keys:c})}else{n.value={};for(let o of Reflect.ownKeys(i)){if(o===`__proto__`||!Object.prototype.propertyIsEnumerable.call(i,o))continue;let s=t.keyType._zod.run({value:o,issues:[]},r);if(s instanceof Promise)throw Error(`Async schemas not supported in object keys currently`);if(typeof o==`string`&&Tt.test(o)&&s.issues.length){let e=t.keyType._zod.run({value:Number(o),issues:[]},r);if(e instanceof Promise)throw Error(`Async schemas not supported in object keys currently`);e.issues.length===0&&(s=e)}if(s.issues.length){t.mode===`loose`?n.value[o]=i[o]:n.issues.push({code:`invalid_key`,origin:`record`,issues:s.issues.map(e=>Ae(e,r,x())),input:o,path:[o],inst:e});continue}let c=t.valueType._zod.run({value:i[o],issues:[]},r);c instanceof Promise?a.push(c.then(e=>{e.issues.length&&n.issues.push(...Oe(o,e.issues)),n.value[s.value]=e.value})):(c.issues.length&&n.issues.push(...Oe(o,c.issues)),n.value[s.value]=c.value)}}return a.length?Promise.all(a).then(()=>n):n}}),Gn=_(`$ZodEnum`,(e,t)=>{D.init(e,t);let n=S(t.entries),r=new Set(n);e._zod.values=r,e._zod.pattern=RegExp(`^(${n.filter(e=>me.has(typeof e)).map(e=>typeof e==`string`?he(e):e.toString()).join(`|`)})$`),e._zod.parse=(t,i)=>{let a=t.value;return r.has(a)||t.issues.push({code:`invalid_value`,values:n,input:a,inst:e}),t}}),Kn=_(`$ZodLiteral`,(e,t)=>{if(D.init(e,t),t.values.length===0)throw Error(`Cannot create literal schema with no valid values`);let n=new Set(t.values);e._zod.values=n,e._zod.pattern=RegExp(`^(${t.values.map(e=>typeof e==`string`?he(e):e?he(e.toString()):String(e)).join(`|`)})$`),e._zod.parse=(r,i)=>{let a=r.value;return n.has(a)||r.issues.push({code:`invalid_value`,values:t.values,input:a,inst:e}),r}}),qn=_(`$ZodTransform`,(e,t)=>{D.init(e,t),e._zod.optin=`optional`,e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new y(e.constructor.name);let i=t.transform(n.value,n);if(r.async)return(i instanceof Promise?i:Promise.resolve(i)).then(e=>(n.value=e,n.fallback=!0,n));if(i instanceof Promise)throw new v;return n.value=i,n.fallback=!0,n}});function Jn(e,t){return t===void 0&&(e.issues.length||e.fallback)?{issues:[],value:void 0}:e}var Yn=_(`$ZodOptional`,(e,t)=>{D.init(e,t),e._zod.optin=`optional`,e._zod.optout=`optional`,w(e._zod,`values`,()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),w(e._zod,`pattern`,()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${ne(e.source)})?$`):void 0}),e._zod.parse=(e,n)=>{if(t.innerType._zod.optin===`optional`){let r=e.value,i=t.innerType._zod.run(e,n);return i instanceof Promise?i.then(e=>Jn(e,r)):Jn(i,r)}return e.value===void 0?e:t.innerType._zod.run(e,n)}}),Xn=_(`$ZodExactOptional`,(e,t)=>{Yn.init(e,t),w(e._zod,`values`,()=>t.innerType._zod.values),w(e._zod,`pattern`,()=>t.innerType._zod.pattern),e._zod.parse=(e,n)=>t.innerType._zod.run(e,n)}),Zn=_(`$ZodNullable`,(e,t)=>{D.init(e,t),w(e._zod,`optin`,()=>t.innerType._zod.optin),w(e._zod,`optout`,()=>t.innerType._zod.optout),w(e._zod,`pattern`,()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${ne(e.source)}|null)$`):void 0}),w(e._zod,`values`,()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(e,n)=>e.value===null?e:t.innerType._zod.run(e,n)}),Qn=_(`$ZodDefault`,(e,t)=>{D.init(e,t),e._zod.optin=`optional`,w(e._zod,`values`,()=>t.innerType._zod.values),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);if(e.value===void 0)return e.value=t.defaultValue,e;let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(e=>$n(e,t)):$n(r,t)}});function $n(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}var er=_(`$ZodPrefault`,(e,t)=>{D.init(e,t),e._zod.optin=`optional`,w(e._zod,`values`,()=>t.innerType._zod.values),e._zod.parse=(e,n)=>(n.direction===`backward`||e.value===void 0&&(e.value=t.defaultValue),t.innerType._zod.run(e,n))}),tr=_(`$ZodNonOptional`,(e,t)=>{D.init(e,t),w(e._zod,`values`,()=>{let e=t.innerType._zod.values;return e?new Set([...e].filter(e=>e!==void 0)):void 0}),e._zod.parse=(n,r)=>{let i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(t=>nr(t,e)):nr(i,e)}});function nr(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:`invalid_type`,expected:`nonoptional`,input:e.value,inst:t}),e}var rr=_(`$ZodCatch`,(e,t)=>{D.init(e,t),e._zod.optin=`optional`,w(e._zod,`optout`,()=>t.innerType._zod.optout),w(e._zod,`values`,()=>t.innerType._zod.values),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(r=>(e.value=r.value,r.issues.length&&(e.value=t.catchValue({...e,error:{issues:r.issues.map(e=>Ae(e,n,x()))},input:e.value}),e.issues=[],e.fallback=!0),e)):(e.value=r.value,r.issues.length&&(e.value=t.catchValue({...e,error:{issues:r.issues.map(e=>Ae(e,n,x()))},input:e.value}),e.issues=[],e.fallback=!0),e)}}),ir=_(`$ZodPipe`,(e,t)=>{D.init(e,t),w(e._zod,`values`,()=>t.in._zod.values),w(e._zod,`optin`,()=>t.in._zod.optin),w(e._zod,`optout`,()=>t.out._zod.optout),w(e._zod,`propValues`,()=>t.in._zod.propValues),e._zod.parse=(e,n)=>{if(n.direction===`backward`){let r=t.out._zod.run(e,n);return r instanceof Promise?r.then(e=>ar(e,t.in,n)):ar(r,t.in,n)}let r=t.in._zod.run(e,n);return r instanceof Promise?r.then(e=>ar(e,t.out,n)):ar(r,t.out,n)}});function ar(e,t,n){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues,fallback:e.fallback},n)}var or=_(`$ZodPreprocess`,(e,t)=>{ir.init(e,t)}),sr=_(`$ZodReadonly`,(e,t)=>{D.init(e,t),w(e._zod,`propValues`,()=>t.innerType._zod.propValues),w(e._zod,`values`,()=>t.innerType._zod.values),w(e._zod,`optin`,()=>t.innerType?._zod?.optin),w(e._zod,`optout`,()=>t.innerType?._zod?.optout),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(cr):cr(r)}});function cr(e){return e.value=Object.freeze(e.value),e}var lr=_(`$ZodCustom`,(e,t)=>{E.init(e,t),D.init(e,t),e._zod.parse=(e,t)=>e,e._zod.check=n=>{let r=n.value,i=t.fn(r);if(i instanceof Promise)return i.then(t=>ur(t,n,r,e));ur(i,n,r,e)}});function ur(e,t,n,r){if(!e){let e={code:`custom`,input:n,inst:r,path:[...r._zod.def.path??[]],continue:!r._zod.def.abort};r._zod.def.params&&(e.params=r._zod.def.params),t.issues.push(Me(e))}}var dr,fr=class{constructor(){this._map=new WeakMap,this._idmap=new Map}add(e,...t){let n=t[0];return this._map.set(e,n),n&&typeof n==`object`&&`id`in n&&this._idmap.set(n.id,e),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(e){let t=this._map.get(e);return t&&typeof t==`object`&&`id`in t&&this._idmap.delete(t.id),this._map.delete(e),this}get(e){let t=e._zod.parent;if(t){let n={...this.get(t)??{}};delete n.id;let r={...n,...this._map.get(e)};return Object.keys(r).length?r:void 0}return this._map.get(e)}has(e){return this._map.has(e)}};function pr(){return new fr}(dr=globalThis).__zod_globalRegistry??(dr.__zod_globalRegistry=pr());var mr=globalThis.__zod_globalRegistry;function hr(e,t){return new e({type:`string`,...T(t)})}function gr(e,t){return new e({type:`string`,format:`email`,check:`string_format`,abort:!1,...T(t)})}function _r(e,t){return new e({type:`string`,format:`guid`,check:`string_format`,abort:!1,...T(t)})}function vr(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,...T(t)})}function yr(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v4`,...T(t)})}function br(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v6`,...T(t)})}function xr(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v7`,...T(t)})}function Sr(e,t){return new e({type:`string`,format:`url`,check:`string_format`,abort:!1,...T(t)})}function Cr(e,t){return new e({type:`string`,format:`emoji`,check:`string_format`,abort:!1,...T(t)})}function wr(e,t){return new e({type:`string`,format:`nanoid`,check:`string_format`,abort:!1,...T(t)})}function Tr(e,t){return new e({type:`string`,format:`cuid`,check:`string_format`,abort:!1,...T(t)})}function Er(e,t){return new e({type:`string`,format:`cuid2`,check:`string_format`,abort:!1,...T(t)})}function Dr(e,t){return new e({type:`string`,format:`ulid`,check:`string_format`,abort:!1,...T(t)})}function Or(e,t){return new e({type:`string`,format:`xid`,check:`string_format`,abort:!1,...T(t)})}function kr(e,t){return new e({type:`string`,format:`ksuid`,check:`string_format`,abort:!1,...T(t)})}function Ar(e,t){return new e({type:`string`,format:`ipv4`,check:`string_format`,abort:!1,...T(t)})}function jr(e,t){return new e({type:`string`,format:`ipv6`,check:`string_format`,abort:!1,...T(t)})}function Mr(e,t){return new e({type:`string`,format:`cidrv4`,check:`string_format`,abort:!1,...T(t)})}function Nr(e,t){return new e({type:`string`,format:`cidrv6`,check:`string_format`,abort:!1,...T(t)})}function Pr(e,t){return new e({type:`string`,format:`base64`,check:`string_format`,abort:!1,...T(t)})}function Fr(e,t){return new e({type:`string`,format:`base64url`,check:`string_format`,abort:!1,...T(t)})}function Ir(e,t){return new e({type:`string`,format:`e164`,check:`string_format`,abort:!1,...T(t)})}function Lr(e,t){return new e({type:`string`,format:`jwt`,check:`string_format`,abort:!1,...T(t)})}function Rr(e,t){return new e({type:`string`,format:`datetime`,check:`string_format`,offset:!1,local:!1,precision:null,...T(t)})}function zr(e,t){return new e({type:`string`,format:`date`,check:`string_format`,...T(t)})}function Br(e,t){return new e({type:`string`,format:`time`,check:`string_format`,precision:null,...T(t)})}function Vr(e,t){return new e({type:`string`,format:`duration`,check:`string_format`,...T(t)})}function Hr(e,t){return new e({type:`number`,checks:[],...T(t)})}function Ur(e,t){return new e({type:`number`,coerce:!0,checks:[],...T(t)})}function Wr(e,t){return new e({type:`number`,check:`number_format`,abort:!1,format:`safeint`,...T(t)})}function Gr(e,t){return new e({type:`boolean`,...T(t)})}function Kr(e,t){return new e({type:`undefined`,...T(t)})}function qr(e,t){return new e({type:`null`,...T(t)})}function Jr(e){return new e({type:`any`})}function Yr(e){return new e({type:`unknown`})}function Xr(e,t){return new e({type:`never`,...T(t)})}function Zr(e,t){return new Mt({check:`less_than`,...T(t),value:e,inclusive:!1})}function Qr(e,t){return new Mt({check:`less_than`,...T(t),value:e,inclusive:!0})}function $r(e,t){return new Nt({check:`greater_than`,...T(t),value:e,inclusive:!1})}function ei(e,t){return new Nt({check:`greater_than`,...T(t),value:e,inclusive:!0})}function ti(e,t){return new Pt({check:`multiple_of`,...T(t),value:e})}function ni(e,t){return new It({check:`max_length`,...T(t),maximum:e})}function ri(e,t){return new Lt({check:`min_length`,...T(t),minimum:e})}function ii(e,t){return new Rt({check:`length_equals`,...T(t),length:e})}function ai(e,t){return new Bt({check:`string_format`,format:`regex`,...T(t),pattern:e})}function oi(e){return new Vt({check:`string_format`,format:`lowercase`,...T(e)})}function si(e){return new Ht({check:`string_format`,format:`uppercase`,...T(e)})}function ci(e,t){return new Ut({check:`string_format`,format:`includes`,...T(t),includes:e})}function li(e,t){return new Wt({check:`string_format`,format:`starts_with`,...T(t),prefix:e})}function ui(e,t){return new Gt({check:`string_format`,format:`ends_with`,...T(t),suffix:e})}function di(e){return new Kt({check:`overwrite`,tx:e})}function fi(e){return di(t=>t.normalize(e))}function pi(){return di(e=>e.trim())}function mi(){return di(e=>e.toLowerCase())}function hi(){return di(e=>e.toUpperCase())}function gi(){return di(e=>ce(e))}function _i(e,t,n){return new e({type:`array`,element:t,...T(n)})}function vi(e,t,n){let r=T(n);return r.abort??=!0,new e({type:`custom`,check:`custom`,fn:t,...r})}function yi(e,t,n){return new e({type:`custom`,check:`custom`,fn:t,...T(n)})}function bi(e,t){let n=xi(t=>(t.addIssue=e=>{if(typeof e==`string`)t.issues.push(Me(e,t.value,n._zod.def));else{let r=e;r.fatal&&(r.continue=!1),r.code??=`custom`,r.input??=t.value,r.inst??=n,r.continue??=!n._zod.def.abort,t.issues.push(Me(r))}},e(t.value,t)),t);return n}function xi(e,t){let n=new E({check:`custom`,...T(t)});return n._zod.check=e,n}function Si(e){let t=e?.target??`draft-2020-12`;return t===`draft-4`&&(t=`draft-04`),t===`draft-7`&&(t=`draft-07`),{processors:e.processors??{},metadataRegistry:e?.metadata??mr,target:t,unrepresentable:e?.unrepresentable??`throw`,override:e?.override??(()=>{}),io:e?.io??`output`,counter:0,seen:new Map,cycles:e?.cycles??`ref`,reused:e?.reused??`inline`,external:e?.external??void 0}}function k(e,t,n={path:[],schemaPath:[]}){var r;let i=e._zod.def,a=t.seen.get(e);if(a)return a.count++,n.schemaPath.includes(e)&&(a.cycle=n.path),a.schema;let o={schema:{},count:1,cycle:void 0,path:n.path};t.seen.set(e,o);let s=e._zod.toJSONSchema?.();if(s)o.schema=s;else{let r={...n,schemaPath:[...n.schemaPath,e],path:n.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,o.schema,r);else{let n=o.schema,a=t.processors[i.type];if(!a)throw Error(`[toJSONSchema]: Non-representable type encountered: ${i.type}`);a(e,t,n,r)}let a=e._zod.parent;a&&(o.ref||=a,k(a,t,r),t.seen.get(a).isParent=!0)}let c=t.metadataRegistry.get(e);return c&&Object.assign(o.schema,c),t.io===`input`&&A(e)&&(delete o.schema.examples,delete o.schema.default),t.io===`input`&&`_prefault`in o.schema&&((r=o.schema).default??(r.default=o.schema._prefault)),delete o.schema._prefault,t.seen.get(e).schema}function Ci(e,t){let n=e.seen.get(t);if(!n)throw Error(`Unprocessed schema. This is a bug in Zod.`);let r=new Map;for(let t of e.seen.entries()){let n=e.metadataRegistry.get(t[0])?.id;if(n){let e=r.get(n);if(e&&e!==t[0])throw Error(`Duplicate schema id "${n}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);r.set(n,t[0])}}let i=t=>{let r=e.target===`draft-2020-12`?`$defs`:`definitions`;if(e.external){let n=e.external.registry.get(t[0])?.id,i=e.external.uri??(e=>e);if(n)return{ref:i(n)};let a=t[1].defId??t[1].schema.id??`schema${e.counter++}`;return t[1].defId=a,{defId:a,ref:`${i(`__shared`)}#/${r}/${a}`}}if(t[1]===n)return{ref:`#`};let i=`#/${r}/`,a=t[1].schema.id??`__schema${e.counter++}`;return{defId:a,ref:i+a}},a=e=>{if(e[1].schema.$ref)return;let t=e[1],{ref:n,defId:r}=i(e);t.def={...t.schema},r&&(t.defId=r);let a=t.schema;for(let e in a)delete a[e];a.$ref=n};if(e.cycles===`throw`)for(let t of e.seen.entries()){let e=t[1];if(e.cycle)throw Error(`Cycle detected: #/${e.cycle?.join(`/`)}/ + +Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let n of e.seen.entries()){let r=n[1];if(t===n[0]){a(n);continue}if(e.external){let r=e.external.registry.get(n[0])?.id;if(t!==n[0]&&r){a(n);continue}}if(e.metadataRegistry.get(n[0])?.id){a(n);continue}if(r.cycle){a(n);continue}if(r.count>1&&e.reused===`ref`){a(n);continue}}}function wi(e,t){let n=e.seen.get(t);if(!n)throw Error(`Unprocessed schema. This is a bug in Zod.`);let r=t=>{let n=e.seen.get(t);if(n.ref===null)return;let i=n.def??n.schema,a={...i},o=n.ref;if(n.ref=null,o){r(o);let n=e.seen.get(o),s=n.schema;if(s.$ref&&(e.target===`draft-07`||e.target===`draft-04`||e.target===`openapi-3.0`)?(i.allOf=i.allOf??[],i.allOf.push(s)):Object.assign(i,s),Object.assign(i,a),t._zod.parent===o)for(let e in i)e!==`$ref`&&e!==`allOf`&&(e in a||delete i[e]);if(s.$ref&&n.def)for(let e in i)e!==`$ref`&&e!==`allOf`&&e in n.def&&JSON.stringify(i[e])===JSON.stringify(n.def[e])&&delete i[e]}let s=t._zod.parent;if(s&&s!==o){r(s);let t=e.seen.get(s);if(t?.schema.$ref&&(i.$ref=t.schema.$ref,t.def))for(let e in i)e!==`$ref`&&e!==`allOf`&&e in t.def&&JSON.stringify(i[e])===JSON.stringify(t.def[e])&&delete i[e]}e.override({zodSchema:t,jsonSchema:i,path:n.path??[]})};for(let t of[...e.seen.entries()].reverse())r(t[0]);let i={};if(e.target===`draft-2020-12`?i.$schema=`https://json-schema.org/draft/2020-12/schema`:e.target===`draft-07`?i.$schema=`http://json-schema.org/draft-07/schema#`:e.target===`draft-04`?i.$schema=`http://json-schema.org/draft-04/schema#`:e.target,e.external?.uri){let n=e.external.registry.get(t)?.id;if(!n)throw Error("Schema is missing an `id` property");i.$id=e.external.uri(n)}Object.assign(i,n.def??n.schema);let a=e.metadataRegistry.get(t)?.id;a!==void 0&&i.id===a&&delete i.id;let o=e.external?.defs??{};for(let t of e.seen.entries()){let e=t[1];e.def&&e.defId&&(e.def.id===e.defId&&delete e.def.id,o[e.defId]=e.def)}e.external||Object.keys(o).length>0&&(e.target===`draft-2020-12`?i.$defs=o:i.definitions=o);try{let n=JSON.parse(JSON.stringify(i));return Object.defineProperty(n,"~standard",{value:{...t[`~standard`],jsonSchema:{input:Ei(t,`input`,e.processors),output:Ei(t,`output`,e.processors)}},enumerable:!1,writable:!1}),n}catch{throw Error(`Error converting schema to JSON.`)}}function A(e,t){let n=t??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);let r=e._zod.def;if(r.type===`transform`)return!0;if(r.type===`array`)return A(r.element,n);if(r.type===`set`)return A(r.valueType,n);if(r.type===`lazy`)return A(r.getter(),n);if(r.type===`promise`||r.type===`optional`||r.type===`nonoptional`||r.type===`nullable`||r.type===`readonly`||r.type==="default"||r.type===`prefault`)return A(r.innerType,n);if(r.type===`intersection`)return A(r.left,n)||A(r.right,n);if(r.type===`record`||r.type===`map`)return A(r.keyType,n)||A(r.valueType,n);if(r.type===`pipe`)return e._zod.traits.has(`$ZodCodec`)?!0:A(r.in,n)||A(r.out,n);if(r.type===`object`){for(let e in r.shape)if(A(r.shape[e],n))return!0;return!1}if(r.type===`union`){for(let e of r.options)if(A(e,n))return!0;return!1}if(r.type===`tuple`){for(let e of r.items)if(A(e,n))return!0;return!!(r.rest&&A(r.rest,n))}return!1}var Ti=(e,t={})=>n=>{let r=Si({...n,processors:t});return k(e,r),Ci(r,e),wi(r,e)},Ei=(e,t,n={})=>r=>{let{libraryOptions:i,target:a}=r??{},o=Si({...i??{},target:a,io:t,processors:n});return k(e,o),Ci(o,e),wi(o,e)},Di={guid:`uuid`,url:`uri`,datetime:`date-time`,json_string:`json-string`,regex:``},Oi=(e,t,n,r)=>{let i=n;i.type=`string`;let{minimum:a,maximum:o,format:s,patterns:c,contentEncoding:l}=e._zod.bag;if(typeof a==`number`&&(i.minLength=a),typeof o==`number`&&(i.maxLength=o),s&&(i.format=Di[s]??s,i.format===``&&delete i.format,s===`time`&&delete i.format),l&&(i.contentEncoding=l),c&&c.size>0){let e=[...c];e.length===1?i.pattern=e[0].source:e.length>1&&(i.allOf=[...e.map(e=>({...t.target===`draft-07`||t.target===`draft-04`||t.target===`openapi-3.0`?{type:`string`}:{},pattern:e.source}))])}},ki=(e,t,n,r)=>{let i=n,{minimum:a,maximum:o,format:s,multipleOf:c,exclusiveMaximum:l,exclusiveMinimum:u}=e._zod.bag;i.type=typeof s==`string`&&s.includes(`int`)?`integer`:`number`;let d=typeof u==`number`&&u>=(a??-1/0),f=typeof l==`number`&&l<=(o??1/0),p=t.target===`draft-04`||t.target===`openapi-3.0`;d?p?(i.minimum=u,i.exclusiveMinimum=!0):i.exclusiveMinimum=u:typeof a==`number`&&(i.minimum=a),f?p?(i.maximum=l,i.exclusiveMaximum=!0):i.exclusiveMaximum=l:typeof o==`number`&&(i.maximum=o),typeof c==`number`&&(i.multipleOf=c)},Ai=(e,t,n,r)=>{n.type=`boolean`},ji=(e,t,n,r)=>{t.target===`openapi-3.0`?(n.type=`string`,n.nullable=!0,n.enum=[null]):n.type=`null`},Mi=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Undefined cannot be represented in JSON Schema`)},Ni=(e,t,n,r)=>{n.not={}},Pi=(e,t,n,r)=>{let i=e._zod.def,a=S(i.entries);a.every(e=>typeof e==`number`)&&(n.type=`number`),a.every(e=>typeof e==`string`)&&(n.type=`string`),n.enum=a},Fi=(e,t,n,r)=>{let i=e._zod.def,a=[];for(let e of i.values)if(e===void 0){if(t.unrepresentable===`throw`)throw Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof e==`bigint`){if(t.unrepresentable===`throw`)throw Error(`BigInt literals cannot be represented in JSON Schema`);a.push(Number(e))}else a.push(e);if(a.length!==0)if(a.length===1){let e=a[0];n.type=e===null?`null`:typeof e,t.target===`draft-04`||t.target===`openapi-3.0`?n.enum=[e]:n.const=e}else a.every(e=>typeof e==`number`)&&(n.type=`number`),a.every(e=>typeof e==`string`)&&(n.type=`string`),a.every(e=>typeof e==`boolean`)&&(n.type=`boolean`),a.every(e=>e===null)&&(n.type=`null`),n.enum=a},Ii=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Custom types cannot be represented in JSON Schema`)},Li=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Transforms cannot be represented in JSON Schema`)},Ri=(e,t,n,r)=>{let i=n,a=e._zod.def,{minimum:o,maximum:s}=e._zod.bag;typeof o==`number`&&(i.minItems=o),typeof s==`number`&&(i.maxItems=s),i.type=`array`,i.items=k(a.element,t,{...r,path:[...r.path,`items`]})},zi=(e,t,n,r)=>{let i=n,a=e._zod.def;i.type=`object`,i.properties={};let o=a.shape;for(let e in o)i.properties[e]=k(o[e],t,{...r,path:[...r.path,`properties`,e]});let s=new Set(Object.keys(o)),c=new Set([...s].filter(e=>{let n=a.shape[e]._zod;return t.io===`input`?n.optin===void 0:n.optout===void 0}));c.size>0&&(i.required=Array.from(c)),a.catchall?._zod.def.type===`never`?i.additionalProperties=!1:a.catchall?a.catchall&&(i.additionalProperties=k(a.catchall,t,{...r,path:[...r.path,`additionalProperties`]})):t.io===`output`&&(i.additionalProperties=!1)},Bi=(e,t,n,r)=>{let i=e._zod.def,a=i.inclusive===!1,o=i.options.map((e,n)=>k(e,t,{...r,path:[...r.path,a?`oneOf`:`anyOf`,n]}));a?n.oneOf=o:n.anyOf=o},Vi=(e,t,n,r)=>{let i=e._zod.def,a=k(i.left,t,{...r,path:[...r.path,`allOf`,0]}),o=k(i.right,t,{...r,path:[...r.path,`allOf`,1]}),s=e=>`allOf`in e&&Object.keys(e).length===1;n.allOf=[...s(a)?a.allOf:[a],...s(o)?o.allOf:[o]]},Hi=(e,t,n,r)=>{let i=n,a=e._zod.def;i.type=`object`;let o=a.keyType,s=o._zod.bag?.patterns;if(a.mode===`loose`&&s&&s.size>0){let e=k(a.valueType,t,{...r,path:[...r.path,`patternProperties`,`*`]});i.patternProperties={};for(let t of s)i.patternProperties[t.source]=e}else(t.target===`draft-07`||t.target===`draft-2020-12`)&&(i.propertyNames=k(a.keyType,t,{...r,path:[...r.path,`propertyNames`]})),i.additionalProperties=k(a.valueType,t,{...r,path:[...r.path,`additionalProperties`]});let c=o._zod.values;if(c){let e=[...c].filter(e=>typeof e==`string`||typeof e==`number`);e.length>0&&(i.required=e)}},Ui=(e,t,n,r)=>{let i=e._zod.def,a=k(i.innerType,t,r),o=t.seen.get(e);t.target===`openapi-3.0`?(o.ref=i.innerType,n.nullable=!0):n.anyOf=[a,{type:`null`}]},Wi=(e,t,n,r)=>{let i=e._zod.def;k(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},Gi=(e,t,n,r)=>{let i=e._zod.def;k(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,n.default=JSON.parse(JSON.stringify(i.defaultValue))},Ki=(e,t,n,r)=>{let i=e._zod.def;k(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,t.io===`input`&&(n._prefault=JSON.parse(JSON.stringify(i.defaultValue)))},qi=(e,t,n,r)=>{let i=e._zod.def;k(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType;let o;try{o=i.catchValue(void 0)}catch{throw Error(`Dynamic catch values are not supported in JSON Schema`)}n.default=o},Ji=(e,t,n,r)=>{let i=e._zod.def,a=i.in._zod.traits.has(`$ZodTransform`),o=t.io===`input`?a?i.out:i.in:i.out;k(o,t,r);let s=t.seen.get(e);s.ref=o},Yi=(e,t,n,r)=>{let i=e._zod.def;k(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,n.readOnly=!0},Xi=(e,t,n,r)=>{let i=e._zod.def;k(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},Zi=_(`ZodISODateTime`,(e,t)=>{cn.init(e,t),N.init(e,t)});function Qi(e){return Rr(Zi,e)}var $i=_(`ZodISODate`,(e,t)=>{ln.init(e,t),N.init(e,t)});function ea(e){return zr($i,e)}var ta=_(`ZodISOTime`,(e,t)=>{un.init(e,t),N.init(e,t)});function na(e){return Br(ta,e)}var ra=_(`ZodISODuration`,(e,t)=>{dn.init(e,t),N.init(e,t)});function ia(e){return Vr(ra,e)}var aa=_(`ZodError`,(e,t)=>{Pe.init(e,t),e.name=`ZodError`,Object.defineProperties(e,{format:{value:t=>Le(e,t)},flatten:{value:t=>Ie(e,t)},addIssue:{value:t=>{e.issues.push(t),e.message=JSON.stringify(e.issues,C,2)}},addIssues:{value:t=>{e.issues.push(...t),e.message=JSON.stringify(e.issues,C,2)}},isEmpty:{get(){return e.issues.length===0}}})},{Parent:Error}),oa=Re(aa),sa=ze(aa),ca=Be(aa),la=He(aa),ua=We(aa),da=Ge(aa),fa=Ke(aa),pa=qe(aa),ma=Je(aa),ha=Ye(aa),ga=Xe(aa),_a=Ze(aa),va=new WeakMap;function ya(e,t,n){let r=Object.getPrototypeOf(e),i=va.get(r);if(i||(i=new Set,va.set(r,i)),!i.has(t)){i.add(t);for(let e in n){let t=n[e];Object.defineProperty(r,e,{configurable:!0,enumerable:!1,get(){let n=t.bind(this);return Object.defineProperty(this,e,{configurable:!0,writable:!0,enumerable:!0,value:n}),n},set(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,enumerable:!0,value:t})}})}}}var j=_(`ZodType`,(e,t)=>(D.init(e,t),Object.assign(e[`~standard`],{jsonSchema:{input:Ei(e,`input`),output:Ei(e,`output`)}}),e.toJSONSchema=Ti(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.parse=(t,n)=>oa(e,t,n,{callee:e.parse}),e.safeParse=(t,n)=>ca(e,t,n),e.parseAsync=async(t,n)=>sa(e,t,n,{callee:e.parseAsync}),e.safeParseAsync=async(t,n)=>la(e,t,n),e.spa=e.safeParseAsync,e.encode=(t,n)=>ua(e,t,n),e.decode=(t,n)=>da(e,t,n),e.encodeAsync=async(t,n)=>fa(e,t,n),e.decodeAsync=async(t,n)=>pa(e,t,n),e.safeEncode=(t,n)=>ma(e,t,n),e.safeDecode=(t,n)=>ha(e,t,n),e.safeEncodeAsync=async(t,n)=>ga(e,t,n),e.safeDecodeAsync=async(t,n)=>_a(e,t,n),ya(e,`ZodType`,{check(...e){let t=this.def;return this.clone(oe(t,{checks:[...t.checks??[],...e.map(e=>typeof e==`function`?{_zod:{check:e,def:{check:`custom`},onattach:[]}}:e)]}),{parent:!0})},with(...e){return this.check(...e)},clone(e,t){return ge(this,e,t)},brand(){return this},register(e,t){return e.add(this,t),this},refine(e,t){return this.check(Fo(e,t))},superRefine(e,t){return this.check(Io(e,t))},overwrite(e){return this.check(di(e))},optional(){return U(this)},exactOptional(){return _o(this)},nullable(){return yo(this)},nullish(){return U(yo(this))},nonoptional(e){return To(this,e)},array(){return L(this)},or(e){return B([this,e])},and(e){return so(this,e)},transform(e){return ko(this,mo(e))},default(e){return xo(this,e)},prefault(e){return Co(this,e)},catch(e){return Do(this,e)},pipe(e){return ko(this,e)},readonly(){return Mo(this)},describe(e){let t=this.clone();return mr.add(t,{description:e}),t},meta(...e){if(e.length===0)return mr.get(this);let t=this.clone();return mr.add(t,e[0]),t},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(e){return e(this)}}),Object.defineProperty(e,"description",{get(){return mr.get(e)?.description},configurable:!0}),e)),ba=_(`_ZodString`,(e,t)=>{Yt.init(e,t),j.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Oi(e,t,n,r);let n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,ya(e,`_ZodString`,{regex(...e){return this.check(ai(...e))},includes(...e){return this.check(ci(...e))},startsWith(...e){return this.check(li(...e))},endsWith(...e){return this.check(ui(...e))},min(...e){return this.check(ri(...e))},max(...e){return this.check(ni(...e))},length(...e){return this.check(ii(...e))},nonempty(...e){return this.check(ri(1,...e))},lowercase(e){return this.check(oi(e))},uppercase(e){return this.check(si(e))},trim(){return this.check(pi())},normalize(...e){return this.check(fi(...e))},toLowerCase(){return this.check(mi())},toUpperCase(){return this.check(hi())},slugify(){return this.check(gi())}})}),xa=_(`ZodString`,(e,t)=>{Yt.init(e,t),ba.init(e,t),e.email=t=>e.check(gr(Sa,t)),e.url=t=>e.check(Sr(Ta,t)),e.jwt=t=>e.check(Lr(Va,t)),e.emoji=t=>e.check(Cr(Da,t)),e.guid=t=>e.check(_r(Ca,t)),e.uuid=t=>e.check(vr(wa,t)),e.uuidv4=t=>e.check(yr(wa,t)),e.uuidv6=t=>e.check(br(wa,t)),e.uuidv7=t=>e.check(xr(wa,t)),e.nanoid=t=>e.check(wr(Oa,t)),e.guid=t=>e.check(_r(Ca,t)),e.cuid=t=>e.check(Tr(ka,t)),e.cuid2=t=>e.check(Er(Aa,t)),e.ulid=t=>e.check(Dr(ja,t)),e.base64=t=>e.check(Pr(Ra,t)),e.base64url=t=>e.check(Fr(za,t)),e.xid=t=>e.check(Or(Ma,t)),e.ksuid=t=>e.check(kr(Na,t)),e.ipv4=t=>e.check(Ar(Pa,t)),e.ipv6=t=>e.check(jr(Fa,t)),e.cidrv4=t=>e.check(Mr(Ia,t)),e.cidrv6=t=>e.check(Nr(La,t)),e.e164=t=>e.check(Ir(Ba,t)),e.datetime=t=>e.check(Qi(t)),e.date=t=>e.check(ea(t)),e.time=t=>e.check(na(t)),e.duration=t=>e.check(ia(t))});function M(e){return hr(xa,e)}var N=_(`ZodStringFormat`,(e,t)=>{O.init(e,t),ba.init(e,t)}),Sa=_(`ZodEmail`,(e,t)=>{Qt.init(e,t),N.init(e,t)}),Ca=_(`ZodGUID`,(e,t)=>{Xt.init(e,t),N.init(e,t)}),wa=_(`ZodUUID`,(e,t)=>{Zt.init(e,t),N.init(e,t)}),Ta=_(`ZodURL`,(e,t)=>{$t.init(e,t),N.init(e,t)});function Ea(e){return Sr(Ta,e)}var Da=_(`ZodEmoji`,(e,t)=>{en.init(e,t),N.init(e,t)}),Oa=_(`ZodNanoID`,(e,t)=>{tn.init(e,t),N.init(e,t)}),ka=_(`ZodCUID`,(e,t)=>{nn.init(e,t),N.init(e,t)}),Aa=_(`ZodCUID2`,(e,t)=>{rn.init(e,t),N.init(e,t)}),ja=_(`ZodULID`,(e,t)=>{an.init(e,t),N.init(e,t)}),Ma=_(`ZodXID`,(e,t)=>{on.init(e,t),N.init(e,t)}),Na=_(`ZodKSUID`,(e,t)=>{sn.init(e,t),N.init(e,t)}),Pa=_(`ZodIPv4`,(e,t)=>{fn.init(e,t),N.init(e,t)}),Fa=_(`ZodIPv6`,(e,t)=>{pn.init(e,t),N.init(e,t)}),Ia=_(`ZodCIDRv4`,(e,t)=>{mn.init(e,t),N.init(e,t)}),La=_(`ZodCIDRv6`,(e,t)=>{hn.init(e,t),N.init(e,t)}),Ra=_(`ZodBase64`,(e,t)=>{_n.init(e,t),N.init(e,t)}),za=_(`ZodBase64URL`,(e,t)=>{yn.init(e,t),N.init(e,t)}),Ba=_(`ZodE164`,(e,t)=>{bn.init(e,t),N.init(e,t)}),Va=_(`ZodJWT`,(e,t)=>{Sn.init(e,t),N.init(e,t)}),Ha=_(`ZodNumber`,(e,t)=>{Cn.init(e,t),j.init(e,t),e._zod.processJSONSchema=(t,n,r)=>ki(e,t,n,r),ya(e,`ZodNumber`,{gt(e,t){return this.check($r(e,t))},gte(e,t){return this.check(ei(e,t))},min(e,t){return this.check(ei(e,t))},lt(e,t){return this.check(Zr(e,t))},lte(e,t){return this.check(Qr(e,t))},max(e,t){return this.check(Qr(e,t))},int(e){return this.check(Wa(e))},safe(e){return this.check(Wa(e))},positive(e){return this.check($r(0,e))},nonnegative(e){return this.check(ei(0,e))},negative(e){return this.check(Zr(0,e))},nonpositive(e){return this.check(Qr(0,e))},multipleOf(e,t){return this.check(ti(e,t))},step(e,t){return this.check(ti(e,t))},finite(){return this}});let n=e._zod.bag;e.minValue=Math.max(n.minimum??-1/0,n.exclusiveMinimum??-1/0)??null,e.maxValue=Math.min(n.maximum??1/0,n.exclusiveMaximum??1/0)??null,e.isInt=(n.format??``).includes(`int`)||Number.isSafeInteger(n.multipleOf??.5),e.isFinite=!0,e.format=n.format??null});function P(e){return Hr(Ha,e)}var Ua=_(`ZodNumberFormat`,(e,t)=>{wn.init(e,t),Ha.init(e,t)});function Wa(e){return Wr(Ua,e)}var Ga=_(`ZodBoolean`,(e,t)=>{Tn.init(e,t),j.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Ai(e,t,n,r)});function F(e){return Gr(Ga,e)}var Ka=_(`ZodUndefined`,(e,t)=>{En.init(e,t),j.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Mi(e,t,n,r)});function qa(e){return Kr(Ka,e)}var Ja=_(`ZodNull`,(e,t)=>{Dn.init(e,t),j.init(e,t),e._zod.processJSONSchema=(t,n,r)=>ji(e,t,n,r)});function Ya(e){return qr(Ja,e)}var Xa=_(`ZodAny`,(e,t)=>{On.init(e,t),j.init(e,t),e._zod.processJSONSchema=(e,t,n)=>void 0});function Za(){return Jr(Xa)}var Qa=_(`ZodUnknown`,(e,t)=>{kn.init(e,t),j.init(e,t),e._zod.processJSONSchema=(e,t,n)=>void 0});function I(){return Yr(Qa)}var $a=_(`ZodNever`,(e,t)=>{An.init(e,t),j.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Ni(e,t,n,r)});function eo(e){return Xr($a,e)}var to=_(`ZodArray`,(e,t)=>{Mn.init(e,t),j.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Ri(e,t,n,r),e.element=t.element,ya(e,`ZodArray`,{min(e,t){return this.check(ri(e,t))},nonempty(e){return this.check(ri(1,e))},max(e,t){return this.check(ni(e,t))},length(e,t){return this.check(ii(e,t))},unwrap(){return this.element}})});function L(e,t){return _i(to,e,t)}var no=_(`ZodObject`,(e,t)=>{Ln.init(e,t),j.init(e,t),e._zod.processJSONSchema=(t,n,r)=>zi(e,t,n,r),w(e,`shape`,()=>t.shape),ya(e,`ZodObject`,{keyof(){return uo(Object.keys(this._zod.def.shape))},catchall(e){return this.clone({...this._zod.def,catchall:e})},passthrough(){return this.clone({...this._zod.def,catchall:I()})},loose(){return this.clone({...this._zod.def,catchall:I()})},strict(){return this.clone({...this._zod.def,catchall:eo()})},strip(){return this.clone({...this._zod.def,catchall:void 0})},extend(e){return xe(this,e)},safeExtend(e){return Se(this,e)},merge(e){return Ce(this,e)},pick(e){return ye(this,e)},omit(e){return be(this,e)},partial(...e){return we(ho,this,e[0])},required(...e){return Te(wo,this,e[0])}})});function R(e,t){return new no({type:`object`,shape:e??{},...T(t)})}function z(e,t){return new no({type:`object`,shape:e,catchall:I(),...T(t)})}var ro=_(`ZodUnion`,(e,t)=>{zn.init(e,t),j.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Bi(e,t,n,r),e.options=t.options});function B(e,t){return new ro({type:`union`,options:e,...T(t)})}var io=_(`ZodDiscriminatedUnion`,(e,t)=>{ro.init(e,t),Bn.init(e,t)});function ao(e,t,n){return new io({type:`union`,options:t,discriminator:e,...T(n)})}var oo=_(`ZodIntersection`,(e,t)=>{Vn.init(e,t),j.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Vi(e,t,n,r)});function so(e,t){return new oo({type:`intersection`,left:e,right:t})}var co=_(`ZodRecord`,(e,t)=>{Wn.init(e,t),j.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Hi(e,t,n,r),e.keyType=t.keyType,e.valueType=t.valueType});function V(e,t,n){return!t||!t._zod?new co({type:`record`,keyType:M(),valueType:e,...T(t)}):new co({type:`record`,keyType:e,valueType:t,...T(n)})}var lo=_(`ZodEnum`,(e,t)=>{Gn.init(e,t),j.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Pi(e,t,n,r),e.enum=t.entries,e.options=Object.values(t.entries);let n=new Set(Object.keys(t.entries));e.extract=(e,r)=>{let i={};for(let r of e)if(n.has(r))i[r]=t.entries[r];else throw Error(`Key ${r} not found in enum`);return new lo({...t,checks:[],...T(r),entries:i})},e.exclude=(e,r)=>{let i={...t.entries};for(let t of e)if(n.has(t))delete i[t];else throw Error(`Key ${t} not found in enum`);return new lo({...t,checks:[],...T(r),entries:i})}});function uo(e,t){return new lo({type:`enum`,entries:Array.isArray(e)?Object.fromEntries(e.map(e=>[e,e])):e,...T(t)})}var fo=_(`ZodLiteral`,(e,t)=>{Kn.init(e,t),j.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Fi(e,t,n,r),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if(t.values.length>1)throw Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})});function H(e,t){return new fo({type:`literal`,values:Array.isArray(e)?e:[e],...T(t)})}var po=_(`ZodTransform`,(e,t)=>{qn.init(e,t),j.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Li(e,t,n,r),e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new y(e.constructor.name);n.addIssue=r=>{if(typeof r==`string`)n.issues.push(Me(r,n.value,t));else{let t=r;t.fatal&&(t.continue=!1),t.code??=`custom`,t.input??=n.value,t.inst??=e,n.issues.push(Me(t))}};let i=t.transform(n.value,n);return i instanceof Promise?i.then(e=>(n.value=e,n.fallback=!0,n)):(n.value=i,n.fallback=!0,n)}});function mo(e){return new po({type:`transform`,transform:e})}var ho=_(`ZodOptional`,(e,t)=>{Yn.init(e,t),j.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Xi(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function U(e){return new ho({type:`optional`,innerType:e})}var go=_(`ZodExactOptional`,(e,t)=>{Xn.init(e,t),j.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Xi(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function _o(e){return new go({type:`optional`,innerType:e})}var vo=_(`ZodNullable`,(e,t)=>{Zn.init(e,t),j.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Ui(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function yo(e){return new vo({type:`nullable`,innerType:e})}var bo=_(`ZodDefault`,(e,t)=>{Qn.init(e,t),j.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Gi(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function xo(e,t){return new bo({type:`default`,innerType:e,get defaultValue(){return typeof t==`function`?t():pe(t)}})}var So=_(`ZodPrefault`,(e,t)=>{er.init(e,t),j.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Ki(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function Co(e,t){return new So({type:`prefault`,innerType:e,get defaultValue(){return typeof t==`function`?t():pe(t)}})}var wo=_(`ZodNonOptional`,(e,t)=>{tr.init(e,t),j.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Wi(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function To(e,t){return new wo({type:`nonoptional`,innerType:e,...T(t)})}var Eo=_(`ZodCatch`,(e,t)=>{rr.init(e,t),j.init(e,t),e._zod.processJSONSchema=(t,n,r)=>qi(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function Do(e,t){return new Eo({type:`catch`,innerType:e,catchValue:typeof t==`function`?t:()=>t})}var Oo=_(`ZodPipe`,(e,t)=>{ir.init(e,t),j.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Ji(e,t,n,r),e.in=t.in,e.out=t.out});function ko(e,t){return new Oo({type:`pipe`,in:e,out:t})}var Ao=_(`ZodPreprocess`,(e,t)=>{Oo.init(e,t),or.init(e,t)}),jo=_(`ZodReadonly`,(e,t)=>{sr.init(e,t),j.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Yi(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function Mo(e){return new jo({type:`readonly`,innerType:e})}var No=_(`ZodCustom`,(e,t)=>{lr.init(e,t),j.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Ii(e,t,n,r)});function Po(e,t){return vi(No,e??(()=>!0),t)}function Fo(e,t={}){return yi(No,e,t)}function Io(e,t){return bi(e,t)}function Lo(e,t){return new Ao({type:`pipe`,in:mo(e),out:t})}var Ro={invalid_type:`invalid_type`,too_big:`too_big`,too_small:`too_small`,invalid_format:`invalid_format`,not_multiple_of:`not_multiple_of`,unrecognized_keys:`unrecognized_keys`,invalid_union:`invalid_union`,invalid_key:`invalid_key`,invalid_element:`invalid_element`,invalid_value:`invalid_value`,custom:`custom`},zo;zo||={};function Bo(e){return Ur(Ha,e)}var Vo=`2025-11-25`,Ho=[Vo,`2025-06-18`,`2025-03-26`,`2024-11-05`,`2024-10-07`],Uo=`io.modelcontextprotocol/related-task`,W=Po(e=>e!==null&&(typeof e==`object`||typeof e==`function`)),Wo=B([M(),P().int()]),Go=M();z({ttl:P().optional(),pollInterval:P().optional()});var Ko=R({ttl:P().optional()}),qo=R({taskId:M()}),Jo=z({progressToken:Wo.optional(),[Uo]:qo.optional()}),Yo=R({_meta:Jo.optional()}),Xo=Yo.extend({task:Ko.optional()}),Zo=e=>Xo.safeParse(e).success,G=R({method:M(),params:Yo.loose().optional()}),Qo=R({_meta:Jo.optional()}),$o=R({method:M(),params:Qo.loose().optional()}),K=z({_meta:Jo.optional()}),es=B([M(),P().int()]),ts=R({jsonrpc:H(`2.0`),id:es,...G.shape}).strict(),ns=e=>ts.safeParse(e).success,rs=R({jsonrpc:H(`2.0`),...$o.shape}).strict(),is=e=>rs.safeParse(e).success,as=R({jsonrpc:H(`2.0`),id:es,result:K}).strict(),os=e=>as.safeParse(e).success,q;(function(e){e[e.ConnectionClosed=-32e3]=`ConnectionClosed`,e[e.RequestTimeout=-32001]=`RequestTimeout`,e[e.ParseError=-32700]=`ParseError`,e[e.InvalidRequest=-32600]=`InvalidRequest`,e[e.MethodNotFound=-32601]=`MethodNotFound`,e[e.InvalidParams=-32602]=`InvalidParams`,e[e.InternalError=-32603]=`InternalError`,e[e.UrlElicitationRequired=-32042]=`UrlElicitationRequired`})(q||={});var ss=R({jsonrpc:H(`2.0`),id:es.optional(),error:R({code:P().int(),message:M(),data:I().optional()})}).strict(),cs=e=>ss.safeParse(e).success,ls=B([ts,rs,as,ss]);B([as,ss]);var us=K.strict(),ds=Qo.extend({requestId:es.optional(),reason:M().optional()}),fs=$o.extend({method:H(`notifications/cancelled`),params:ds}),ps=R({icons:L(R({src:M(),mimeType:M().optional(),sizes:L(M()).optional(),theme:uo([`light`,`dark`]).optional()})).optional()}),ms=R({name:M(),title:M().optional()}),hs=ms.extend({...ms.shape,...ps.shape,version:M(),websiteUrl:M().optional(),description:M().optional()}),gs=Lo(e=>e&&typeof e==`object`&&!Array.isArray(e)&&Object.keys(e).length===0?{form:{}}:e,so(R({form:so(R({applyDefaults:F().optional()}),V(M(),I())).optional(),url:W.optional()}),V(M(),I()).optional())),_s=z({list:W.optional(),cancel:W.optional(),requests:z({sampling:z({createMessage:W.optional()}).optional(),elicitation:z({create:W.optional()}).optional()}).optional()}),vs=z({list:W.optional(),cancel:W.optional(),requests:z({tools:z({call:W.optional()}).optional()}).optional()}),ys=R({experimental:V(M(),W).optional(),sampling:R({context:W.optional(),tools:W.optional()}).optional(),elicitation:gs.optional(),roots:R({listChanged:F().optional()}).optional(),tasks:_s.optional(),extensions:V(M(),W).optional()}),bs=Yo.extend({protocolVersion:M(),capabilities:ys,clientInfo:hs}),xs=G.extend({method:H(`initialize`),params:bs}),Ss=R({experimental:V(M(),W).optional(),logging:W.optional(),completions:W.optional(),prompts:R({listChanged:F().optional()}).optional(),resources:R({subscribe:F().optional(),listChanged:F().optional()}).optional(),tools:R({listChanged:F().optional()}).optional(),tasks:vs.optional(),extensions:V(M(),W).optional()}),Cs=K.extend({protocolVersion:M(),capabilities:Ss,serverInfo:hs,instructions:M().optional()}),ws=$o.extend({method:H(`notifications/initialized`),params:Qo.optional()}),Ts=e=>ws.safeParse(e).success,Es=G.extend({method:H(`ping`),params:Yo.optional()}),Ds=R({progress:P(),total:U(P()),message:U(M())}),Os=R({...Qo.shape,...Ds.shape,progressToken:Wo}),ks=$o.extend({method:H(`notifications/progress`),params:Os}),As=Yo.extend({cursor:Go.optional()}),js=G.extend({params:As.optional()}),Ms=K.extend({nextCursor:Go.optional()}),Ns=uo([`working`,`input_required`,`completed`,`failed`,`cancelled`]),Ps=R({taskId:M(),status:Ns,ttl:B([P(),Ya()]),createdAt:M(),lastUpdatedAt:M(),pollInterval:U(P()),statusMessage:U(M())}),Fs=K.extend({task:Ps}),Is=Qo.merge(Ps),Ls=$o.extend({method:H(`notifications/tasks/status`),params:Is}),Rs=G.extend({method:H(`tasks/get`),params:Yo.extend({taskId:M()})}),zs=K.merge(Ps),Bs=G.extend({method:H(`tasks/result`),params:Yo.extend({taskId:M()})});K.loose();var Vs=js.extend({method:H(`tasks/list`)}),Hs=Ms.extend({tasks:L(Ps)}),Us=G.extend({method:H(`tasks/cancel`),params:Yo.extend({taskId:M()})}),Ws=K.merge(Ps),Gs=R({uri:M(),mimeType:U(M()),_meta:V(M(),I()).optional()}),Ks=Gs.extend({text:M()}),qs=M().refine(e=>{try{return atob(e),!0}catch{return!1}},{message:`Invalid Base64 string`}),Js=Gs.extend({blob:qs}),Ys=uo([`user`,`assistant`]),Xs=R({audience:L(Ys).optional(),priority:P().min(0).max(1).optional(),lastModified:Qi({offset:!0}).optional()}),Zs=R({...ms.shape,...ps.shape,uri:M(),description:U(M()),mimeType:U(M()),size:U(P()),annotations:Xs.optional(),_meta:U(z({}))}),Qs=R({...ms.shape,...ps.shape,uriTemplate:M(),description:U(M()),mimeType:U(M()),annotations:Xs.optional(),_meta:U(z({}))}),$s=js.extend({method:H(`resources/list`)}),ec=Ms.extend({resources:L(Zs)}),tc=js.extend({method:H(`resources/templates/list`)}),nc=Ms.extend({resourceTemplates:L(Qs)}),rc=Yo.extend({uri:M()}),ic=rc,ac=G.extend({method:H(`resources/read`),params:ic}),oc=K.extend({contents:L(B([Ks,Js]))}),sc=$o.extend({method:H(`notifications/resources/list_changed`),params:Qo.optional()}),cc=rc,lc=G.extend({method:H(`resources/subscribe`),params:cc}),uc=rc,dc=G.extend({method:H(`resources/unsubscribe`),params:uc}),fc=Qo.extend({uri:M()}),pc=$o.extend({method:H(`notifications/resources/updated`),params:fc}),mc=R({name:M(),description:U(M()),required:U(F())}),hc=R({...ms.shape,...ps.shape,description:U(M()),arguments:U(L(mc)),_meta:U(z({}))}),gc=js.extend({method:H(`prompts/list`)}),_c=Ms.extend({prompts:L(hc)}),vc=Yo.extend({name:M(),arguments:V(M(),M()).optional()}),yc=G.extend({method:H(`prompts/get`),params:vc}),bc=R({type:H(`text`),text:M(),annotations:Xs.optional(),_meta:V(M(),I()).optional()}),xc=R({type:H(`image`),data:qs,mimeType:M(),annotations:Xs.optional(),_meta:V(M(),I()).optional()}),Sc=R({type:H(`audio`),data:qs,mimeType:M(),annotations:Xs.optional(),_meta:V(M(),I()).optional()}),Cc=R({type:H(`tool_use`),name:M(),id:M(),input:V(M(),I()),_meta:V(M(),I()).optional()}),wc=R({type:H(`resource`),resource:B([Ks,Js]),annotations:Xs.optional(),_meta:V(M(),I()).optional()}),Tc=Zs.extend({type:H(`resource_link`)}),Ec=B([bc,xc,Sc,Tc,wc]),Dc=R({role:Ys,content:Ec}),Oc=K.extend({description:M().optional(),messages:L(Dc)}),kc=$o.extend({method:H(`notifications/prompts/list_changed`),params:Qo.optional()}),Ac=R({title:M().optional(),readOnlyHint:F().optional(),destructiveHint:F().optional(),idempotentHint:F().optional(),openWorldHint:F().optional()}),jc=R({taskSupport:uo([`required`,`optional`,`forbidden`]).optional()}),Mc=R({...ms.shape,...ps.shape,description:M().optional(),inputSchema:R({type:H(`object`),properties:V(M(),W).optional(),required:L(M()).optional()}).catchall(I()),outputSchema:R({type:H(`object`),properties:V(M(),W).optional(),required:L(M()).optional()}).catchall(I()).optional(),annotations:Ac.optional(),execution:jc.optional(),_meta:V(M(),I()).optional()}),Nc=js.extend({method:H(`tools/list`)}),Pc=Ms.extend({tools:L(Mc)}),Fc=K.extend({content:L(Ec).default([]),structuredContent:V(M(),I()).optional(),isError:F().optional()});Fc.or(K.extend({toolResult:I()}));var Ic=Xo.extend({name:M(),arguments:V(M(),I()).optional()}),Lc=G.extend({method:H(`tools/call`),params:Ic}),Rc=$o.extend({method:H(`notifications/tools/list_changed`),params:Qo.optional()}),zc=R({autoRefresh:F().default(!0),debounceMs:P().int().nonnegative().default(300)}),Bc=uo([`debug`,`info`,`notice`,`warning`,`error`,`critical`,`alert`,`emergency`]),Vc=Yo.extend({level:Bc}),Hc=G.extend({method:H(`logging/setLevel`),params:Vc}),Uc=Qo.extend({level:Bc,logger:M().optional(),data:I()}),Wc=$o.extend({method:H(`notifications/message`),params:Uc}),Gc=R({hints:L(R({name:M().optional()})).optional(),costPriority:P().min(0).max(1).optional(),speedPriority:P().min(0).max(1).optional(),intelligencePriority:P().min(0).max(1).optional()}),Kc=R({mode:uo([`auto`,`required`,`none`]).optional()}),qc=R({type:H(`tool_result`),toolUseId:M().describe(`The unique identifier for the corresponding tool call.`),content:L(Ec).default([]),structuredContent:R({}).loose().optional(),isError:F().optional(),_meta:V(M(),I()).optional()}),Jc=ao(`type`,[bc,xc,Sc]),Yc=ao(`type`,[bc,xc,Sc,Cc,qc]),Xc=R({role:Ys,content:B([Yc,L(Yc)]),_meta:V(M(),I()).optional()}),Zc=Xo.extend({messages:L(Xc),modelPreferences:Gc.optional(),systemPrompt:M().optional(),includeContext:uo([`none`,`thisServer`,`allServers`]).optional(),temperature:P().optional(),maxTokens:P().int(),stopSequences:L(M()).optional(),metadata:W.optional(),tools:L(Mc).optional(),toolChoice:Kc.optional()}),Qc=G.extend({method:H(`sampling/createMessage`),params:Zc}),$c=K.extend({model:M(),stopReason:U(uo([`endTurn`,`stopSequence`,`maxTokens`]).or(M())),role:Ys,content:Jc}),el=K.extend({model:M(),stopReason:U(uo([`endTurn`,`stopSequence`,`maxTokens`,`toolUse`]).or(M())),role:Ys,content:B([Yc,L(Yc)])}),tl=R({type:H(`boolean`),title:M().optional(),description:M().optional(),default:F().optional()}),nl=R({type:H(`string`),title:M().optional(),description:M().optional(),minLength:P().optional(),maxLength:P().optional(),format:uo([`email`,`uri`,`date`,`date-time`]).optional(),default:M().optional()}),rl=R({type:uo([`number`,`integer`]),title:M().optional(),description:M().optional(),minimum:P().optional(),maximum:P().optional(),default:P().optional()}),il=R({type:H(`string`),title:M().optional(),description:M().optional(),enum:L(M()),default:M().optional()}),al=R({type:H(`string`),title:M().optional(),description:M().optional(),oneOf:L(R({const:M(),title:M()})),default:M().optional()}),ol=B([B([R({type:H(`string`),title:M().optional(),description:M().optional(),enum:L(M()),enumNames:L(M()).optional(),default:M().optional()}),B([il,al]),B([R({type:H(`array`),title:M().optional(),description:M().optional(),minItems:P().optional(),maxItems:P().optional(),items:R({type:H(`string`),enum:L(M())}),default:L(M()).optional()}),R({type:H(`array`),title:M().optional(),description:M().optional(),minItems:P().optional(),maxItems:P().optional(),items:R({anyOf:L(R({const:M(),title:M()}))}),default:L(M()).optional()})])]),tl,nl,rl]),sl=B([Xo.extend({mode:H(`form`).optional(),message:M(),requestedSchema:R({type:H(`object`),properties:V(M(),ol),required:L(M()).optional()})}),Xo.extend({mode:H(`url`),message:M(),elicitationId:M(),url:M().url()})]),cl=G.extend({method:H(`elicitation/create`),params:sl}),ll=Qo.extend({elicitationId:M()}),ul=$o.extend({method:H(`notifications/elicitation/complete`),params:ll}),dl=K.extend({action:uo([`accept`,`decline`,`cancel`]),content:Lo(e=>e===null?void 0:e,V(M(),B([M(),P(),F(),L(M())])).optional())}),fl=R({type:H(`ref/resource`),uri:M()}),pl=R({type:H(`ref/prompt`),name:M()}),ml=Yo.extend({ref:B([pl,fl]),argument:R({name:M(),value:M()}),context:R({arguments:V(M(),M()).optional()}).optional()}),hl=G.extend({method:H(`completion/complete`),params:ml}),gl=K.extend({completion:z({values:L(M()).max(100),total:U(P().int()),hasMore:U(F())})}),_l=R({uri:M().startsWith(`file://`),name:M().optional(),_meta:V(M(),I()).optional()}),vl=G.extend({method:H(`roots/list`),params:Yo.optional()}),yl=K.extend({roots:L(_l)}),bl=$o.extend({method:H(`notifications/roots/list_changed`),params:Qo.optional()});B([Es,xs,hl,Hc,yc,gc,$s,tc,ac,lc,dc,Lc,Nc,Rs,Bs,Vs,Us]),B([fs,ks,ws,bl,Ls]),B([us,$c,el,dl,yl,zs,Hs,Fs]),B([Es,Qc,cl,vl,Rs,Bs,Vs,Us]),B([fs,ks,Wc,pc,sc,Rc,kc,Ls,ul]),B([us,Cs,gl,Oc,_c,ec,nc,oc,Fc,Pc,zs,Hs,Fs]);var J=class e extends Error{constructor(e,t,n){super(`MCP error ${e}: ${t}`),this.code=e,this.data=n,this.name=`McpError`}static fromError(t,n,r){if(t===q.UrlElicitationRequired&&r){let e=r;if(e.elicitations)return new xl(e.elicitations,n)}return new e(t,n,r)}},xl=class extends J{constructor(e,t=`URL elicitation${e.length>1?`s`:``} required`){super(q.UrlElicitationRequired,t,{elicitations:e})}get elicitations(){return this.data?.elicitations??[]}};function Sl(e){return!!e._zod}function Cl(e,t){return Sl(e)?Ve(e,t):e.safeParse(t)}function wl(e){if(!e)return;let t;if(t=Sl(e)?e._zod?.def?.shape:e.shape,t){if(typeof t==`function`)try{return t()}catch{return}return t}}function Tl(e){if(Sl(e)){let t=e._zod?.def;if(t){if(t.value!==void 0)return t.value;if(Array.isArray(t.values)&&t.values.length>0)return t.values[0]}}let t=e._def;if(t){if(t.value!==void 0)return t.value;if(Array.isArray(t.values)&&t.values.length>0)return t.values[0]}let n=e.value;if(n!==void 0)return n}function El(e){return e===`completed`||e===`failed`||e===`cancelled`}function Dl(e){let t=wl(e)?.method;if(!t)throw Error(`Schema is missing a method literal`);let n=Tl(t);if(typeof n!=`string`)throw Error(`Schema method literal must be a string`);return n}function Ol(e,t){let n=Cl(e,t);if(!n.success)throw n.error;return n.data}var kl=class{constructor(e){this._options=e,this._requestMessageId=0,this._requestHandlers=new Map,this._requestHandlerAbortControllers=new Map,this._notificationHandlers=new Map,this._responseHandlers=new Map,this._progressHandlers=new Map,this._timeoutInfo=new Map,this._pendingDebouncedNotifications=new Set,this._taskProgressTokens=new Map,this._requestResolvers=new Map,this.setNotificationHandler(fs,e=>{this._oncancel(e)}),this.setNotificationHandler(ks,e=>{this._onprogress(e)}),this.setRequestHandler(Es,e=>({})),this._taskStore=e?.taskStore,this._taskMessageQueue=e?.taskMessageQueue,this._taskStore&&(this.setRequestHandler(Rs,async(e,t)=>{let n=await this._taskStore.getTask(e.params.taskId,t.sessionId);if(!n)throw new J(q.InvalidParams,`Failed to retrieve task: Task not found`);return{...n}}),this.setRequestHandler(Bs,async(e,t)=>{let n=async()=>{let r=e.params.taskId;if(this._taskMessageQueue){let e;for(;e=await this._taskMessageQueue.dequeue(r,t.sessionId);){if(e.type===`response`||e.type===`error`){let t=e.message,n=t.id,r=this._requestResolvers.get(n);if(r)if(this._requestResolvers.delete(n),e.type===`response`)r(t);else{let e=t;r(new J(e.error.code,e.error.message,e.error.data))}else{let t=e.type===`response`?`Response`:`Error`;this._onerror(Error(`${t} handler missing for request ${n}`))}continue}await this._transport?.send(e.message,{relatedRequestId:t.requestId})}}let i=await this._taskStore.getTask(r,t.sessionId);if(!i)throw new J(q.InvalidParams,`Task not found: ${r}`);if(!El(i.status))return await this._waitForTaskUpdate(r,t.signal),await n();if(El(i.status)){let e=await this._taskStore.getTaskResult(r,t.sessionId);return this._clearTaskQueue(r),{...e,_meta:{...e._meta,[Uo]:{taskId:r}}}}return await n()};return await n()}),this.setRequestHandler(Vs,async(e,t)=>{try{let{tasks:n,nextCursor:r}=await this._taskStore.listTasks(e.params?.cursor,t.sessionId);return{tasks:n,nextCursor:r,_meta:{}}}catch(e){throw new J(q.InvalidParams,`Failed to list tasks: ${e instanceof Error?e.message:String(e)}`)}}),this.setRequestHandler(Us,async(e,t)=>{try{let n=await this._taskStore.getTask(e.params.taskId,t.sessionId);if(!n)throw new J(q.InvalidParams,`Task not found: ${e.params.taskId}`);if(El(n.status))throw new J(q.InvalidParams,`Cannot cancel task in terminal status: ${n.status}`);await this._taskStore.updateTaskStatus(e.params.taskId,`cancelled`,`Client cancelled task execution.`,t.sessionId),this._clearTaskQueue(e.params.taskId);let r=await this._taskStore.getTask(e.params.taskId,t.sessionId);if(!r)throw new J(q.InvalidParams,`Task not found after cancellation: ${e.params.taskId}`);return{_meta:{},...r}}catch(e){throw e instanceof J?e:new J(q.InvalidRequest,`Failed to cancel task: ${e instanceof Error?e.message:String(e)}`)}}))}async _oncancel(e){e.params.requestId&&this._requestHandlerAbortControllers.get(e.params.requestId)?.abort(e.params.reason)}_setupTimeout(e,t,n,r,i=!1){this._timeoutInfo.set(e,{timeoutId:setTimeout(r,t),startTime:Date.now(),timeout:t,maxTotalTimeout:n,resetTimeoutOnProgress:i,onTimeout:r})}_resetTimeout(e){let t=this._timeoutInfo.get(e);if(!t)return!1;let n=Date.now()-t.startTime;if(t.maxTotalTimeout&&n>=t.maxTotalTimeout)throw this._timeoutInfo.delete(e),J.fromError(q.RequestTimeout,`Maximum total timeout exceeded`,{maxTotalTimeout:t.maxTotalTimeout,totalElapsed:n});return clearTimeout(t.timeoutId),t.timeoutId=setTimeout(t.onTimeout,t.timeout),!0}_cleanupTimeout(e){let t=this._timeoutInfo.get(e);t&&(clearTimeout(t.timeoutId),this._timeoutInfo.delete(e))}async connect(e){if(this._transport)throw Error(`Already connected to a transport. Call close() before connecting to a new transport, or use a separate Protocol instance per connection.`);this._transport=e;let t=this.transport?.onclose;this._transport.onclose=()=>{t?.(),this._onclose()};let n=this.transport?.onerror;this._transport.onerror=e=>{n?.(e),this._onerror(e)};let r=this._transport?.onmessage;this._transport.onmessage=(e,t)=>{r?.(e,t),os(e)||cs(e)?this._onresponse(e):ns(e)?this._onrequest(e,t):is(e)?this._onnotification(e):this._onerror(Error(`Unknown message type: ${JSON.stringify(e)}`))},await this._transport.start()}_onclose(){let e=this._responseHandlers;this._responseHandlers=new Map,this._progressHandlers.clear(),this._taskProgressTokens.clear(),this._pendingDebouncedNotifications.clear();for(let e of this._timeoutInfo.values())clearTimeout(e.timeoutId);this._timeoutInfo.clear();for(let e of this._requestHandlerAbortControllers.values())e.abort();this._requestHandlerAbortControllers.clear();let t=J.fromError(q.ConnectionClosed,`Connection closed`);this._transport=void 0,this.onclose?.();for(let n of e.values())n(t)}_onerror(e){this.onerror?.(e)}_onnotification(e){let t=this._notificationHandlers.get(e.method)??this.fallbackNotificationHandler;t!==void 0&&Promise.resolve().then(()=>t(e)).catch(e=>this._onerror(Error(`Uncaught error in notification handler: ${e}`)))}_onrequest(e,t){let n=this._requestHandlers.get(e.method)??this.fallbackRequestHandler,r=this._transport,i=e.params?._meta?.[Uo]?.taskId;if(n===void 0){let t={jsonrpc:`2.0`,id:e.id,error:{code:q.MethodNotFound,message:`Method not found`}};i&&this._taskMessageQueue?this._enqueueTaskMessage(i,{type:`error`,message:t,timestamp:Date.now()},r?.sessionId).catch(e=>this._onerror(Error(`Failed to enqueue error response: ${e}`))):r?.send(t).catch(e=>this._onerror(Error(`Failed to send an error response: ${e}`)));return}let a=new AbortController;this._requestHandlerAbortControllers.set(e.id,a);let o=Zo(e.params)?e.params.task:void 0,s=this._taskStore?this.requestTaskStore(e,r?.sessionId):void 0,c={signal:a.signal,sessionId:r?.sessionId,_meta:e.params?._meta,sendNotification:async t=>{if(a.signal.aborted)return;let n={relatedRequestId:e.id};i&&(n.relatedTask={taskId:i}),await this.notification(t,n)},sendRequest:async(t,n,r)=>{if(a.signal.aborted)throw new J(q.ConnectionClosed,`Request was cancelled`);let o={...r,relatedRequestId:e.id};i&&!o.relatedTask&&(o.relatedTask={taskId:i});let c=o.relatedTask?.taskId??i;return c&&s&&await s.updateTaskStatus(c,`input_required`),await this.request(t,n,o)},authInfo:t?.authInfo,requestId:e.id,requestInfo:t?.requestInfo,taskId:i,taskStore:s,taskRequestedTtl:o?.ttl,closeSSEStream:t?.closeSSEStream,closeStandaloneSSEStream:t?.closeStandaloneSSEStream};Promise.resolve().then(()=>{o&&this.assertTaskHandlerCapability(e.method)}).then(()=>n(e,c)).then(async t=>{if(a.signal.aborted)return;let n={result:t,jsonrpc:`2.0`,id:e.id};i&&this._taskMessageQueue?await this._enqueueTaskMessage(i,{type:`response`,message:n,timestamp:Date.now()},r?.sessionId):await r?.send(n)},async t=>{if(a.signal.aborted)return;let n={jsonrpc:`2.0`,id:e.id,error:{code:Number.isSafeInteger(t.code)?t.code:q.InternalError,message:t.message??`Internal error`,...t.data!==void 0&&{data:t.data}}};i&&this._taskMessageQueue?await this._enqueueTaskMessage(i,{type:`error`,message:n,timestamp:Date.now()},r?.sessionId):await r?.send(n)}).catch(e=>this._onerror(Error(`Failed to send response: ${e}`))).finally(()=>{this._requestHandlerAbortControllers.get(e.id)===a&&this._requestHandlerAbortControllers.delete(e.id)})}_onprogress(e){let{progressToken:t,...n}=e.params,r=Number(t),i=this._progressHandlers.get(r);if(!i){this._onerror(Error(`Received a progress notification for an unknown token: ${JSON.stringify(e)}`));return}let a=this._responseHandlers.get(r),o=this._timeoutInfo.get(r);if(o&&a&&o.resetTimeoutOnProgress)try{this._resetTimeout(r)}catch(e){this._responseHandlers.delete(r),this._progressHandlers.delete(r),this._cleanupTimeout(r),a(e);return}i(n)}_onresponse(e){let t=Number(e.id),n=this._requestResolvers.get(t);if(n){this._requestResolvers.delete(t),os(e)?n(e):n(new J(e.error.code,e.error.message,e.error.data));return}let r=this._responseHandlers.get(t);if(r===void 0){this._onerror(Error(`Received a response for an unknown message ID: ${JSON.stringify(e)}`));return}this._responseHandlers.delete(t),this._cleanupTimeout(t);let i=!1;if(os(e)&&e.result&&typeof e.result==`object`){let n=e.result;if(n.task&&typeof n.task==`object`){let e=n.task;typeof e.taskId==`string`&&(i=!0,this._taskProgressTokens.set(e.taskId,t))}}i||this._progressHandlers.delete(t),os(e)?r(e):r(J.fromError(e.error.code,e.error.message,e.error.data))}get transport(){return this._transport}async close(){await this._transport?.close()}async*requestStream(e,t,n){let{task:r}=n??{};if(!r){try{yield{type:`result`,result:await this.request(e,t,n)}}catch(e){yield{type:`error`,error:e instanceof J?e:new J(q.InternalError,String(e))}}return}let i;try{let r=await this.request(e,Fs,n);if(r.task)i=r.task.taskId,yield{type:`taskCreated`,task:r.task};else throw new J(q.InternalError,`Task creation did not return a task`);for(;;){let e=await this.getTask({taskId:i},n);if(yield{type:`taskStatus`,task:e},El(e.status)){e.status===`completed`?yield{type:`result`,result:await this.getTaskResult({taskId:i},t,n)}:e.status===`failed`?yield{type:`error`,error:new J(q.InternalError,`Task ${i} failed`)}:e.status===`cancelled`&&(yield{type:`error`,error:new J(q.InternalError,`Task ${i} was cancelled`)});return}if(e.status===`input_required`){yield{type:`result`,result:await this.getTaskResult({taskId:i},t,n)};return}let r=e.pollInterval??this._options?.defaultTaskPollInterval??1e3;await new Promise(e=>setTimeout(e,r)),n?.signal?.throwIfAborted()}}catch(e){yield{type:`error`,error:e instanceof J?e:new J(q.InternalError,String(e))}}}request(e,t,n){let{relatedRequestId:r,resumptionToken:i,onresumptiontoken:a,task:o,relatedTask:s}=n??{};return new Promise((c,l)=>{let u=e=>{l(e)};if(!this._transport){u(Error(`Not connected`));return}if(this._options?.enforceStrictCapabilities===!0)try{this.assertCapabilityForMethod(e.method),o&&this.assertTaskCapability(e.method)}catch(e){u(e);return}n?.signal?.throwIfAborted();let d=this._requestMessageId++,f={...e,jsonrpc:`2.0`,id:d};n?.onprogress&&(this._progressHandlers.set(d,n.onprogress),f.params={...e.params,_meta:{...e.params?._meta||{},progressToken:d}}),o&&(f.params={...f.params,task:o}),s&&(f.params={...f.params,_meta:{...f.params?._meta||{},[Uo]:s}});let p=e=>{this._responseHandlers.delete(d),this._progressHandlers.delete(d),this._cleanupTimeout(d),this._transport?.send({jsonrpc:`2.0`,method:`notifications/cancelled`,params:{requestId:d,reason:String(e)}},{relatedRequestId:r,resumptionToken:i,onresumptiontoken:a}).catch(e=>this._onerror(Error(`Failed to send cancellation: ${e}`))),l(e instanceof J?e:new J(q.RequestTimeout,String(e)))};this._responseHandlers.set(d,e=>{if(!n?.signal?.aborted){if(e instanceof Error)return l(e);try{let n=Cl(t,e.result);n.success?c(n.data):l(n.error)}catch(e){l(e)}}}),n?.signal?.addEventListener(`abort`,()=>{p(n?.signal?.reason)});let m=n?.timeout??6e4;this._setupTimeout(d,m,n?.maxTotalTimeout,()=>p(J.fromError(q.RequestTimeout,`Request timed out`,{timeout:m})),n?.resetTimeoutOnProgress??!1);let h=s?.taskId;h?(this._requestResolvers.set(d,e=>{let t=this._responseHandlers.get(d);t?t(e):this._onerror(Error(`Response handler missing for side-channeled request ${d}`))}),this._enqueueTaskMessage(h,{type:`request`,message:f,timestamp:Date.now()}).catch(e=>{this._cleanupTimeout(d),l(e)})):this._transport.send(f,{relatedRequestId:r,resumptionToken:i,onresumptiontoken:a}).catch(e=>{this._cleanupTimeout(d),l(e)})})}async getTask(e,t){return this.request({method:`tasks/get`,params:e},zs,t)}async getTaskResult(e,t,n){return this.request({method:`tasks/result`,params:e},t,n)}async listTasks(e,t){return this.request({method:`tasks/list`,params:e},Hs,t)}async cancelTask(e,t){return this.request({method:`tasks/cancel`,params:e},Ws,t)}async notification(e,t){if(!this._transport)throw Error(`Not connected`);this.assertNotificationCapability(e.method);let n=t?.relatedTask?.taskId;if(n){let r={...e,jsonrpc:`2.0`,params:{...e.params,_meta:{...e.params?._meta||{},[Uo]:t.relatedTask}}};await this._enqueueTaskMessage(n,{type:`notification`,message:r,timestamp:Date.now()});return}if((this._options?.debouncedNotificationMethods??[]).includes(e.method)&&!e.params&&!t?.relatedRequestId&&!t?.relatedTask){if(this._pendingDebouncedNotifications.has(e.method))return;this._pendingDebouncedNotifications.add(e.method),Promise.resolve().then(()=>{if(this._pendingDebouncedNotifications.delete(e.method),!this._transport)return;let n={...e,jsonrpc:`2.0`};t?.relatedTask&&(n={...n,params:{...n.params,_meta:{...n.params?._meta||{},[Uo]:t.relatedTask}}}),this._transport?.send(n,t).catch(e=>this._onerror(e))});return}let r={...e,jsonrpc:`2.0`};t?.relatedTask&&(r={...r,params:{...r.params,_meta:{...r.params?._meta||{},[Uo]:t.relatedTask}}}),await this._transport.send(r,t)}setRequestHandler(e,t){let n=Dl(e);this.assertRequestHandlerCapability(n),this._requestHandlers.set(n,(n,r)=>{let i=Ol(e,n);return Promise.resolve(t(i,r))})}removeRequestHandler(e){this._requestHandlers.delete(e)}assertCanSetRequestHandler(e){if(this._requestHandlers.has(e))throw Error(`A request handler for ${e} already exists, which would be overridden`)}setNotificationHandler(e,t){let n=Dl(e);this._notificationHandlers.set(n,n=>{let r=Ol(e,n);return Promise.resolve(t(r))})}removeNotificationHandler(e){this._notificationHandlers.delete(e)}_cleanupTaskProgressHandler(e){let t=this._taskProgressTokens.get(e);t!==void 0&&(this._progressHandlers.delete(t),this._taskProgressTokens.delete(e))}async _enqueueTaskMessage(e,t,n){if(!this._taskStore||!this._taskMessageQueue)throw Error(`Cannot enqueue task message: taskStore and taskMessageQueue are not configured`);let r=this._options?.maxTaskQueueSize;await this._taskMessageQueue.enqueue(e,t,n,r)}async _clearTaskQueue(e,t){if(this._taskMessageQueue){let n=await this._taskMessageQueue.dequeueAll(e,t);for(let t of n)if(t.type===`request`&&ns(t.message)){let n=t.message.id,r=this._requestResolvers.get(n);r?(r(new J(q.InternalError,`Task cancelled or completed`)),this._requestResolvers.delete(n)):this._onerror(Error(`Resolver missing for request ${n} during task ${e} cleanup`))}}}async _waitForTaskUpdate(e,t){let n=this._options?.defaultTaskPollInterval??1e3;try{let t=await this._taskStore?.getTask(e);t?.pollInterval&&(n=t.pollInterval)}catch{}return new Promise((e,r)=>{if(t.aborted){r(new J(q.InvalidRequest,`Request cancelled`));return}let i=setTimeout(e,n);t.addEventListener(`abort`,()=>{clearTimeout(i),r(new J(q.InvalidRequest,`Request cancelled`))},{once:!0})})}requestTaskStore(e,t){let n=this._taskStore;if(!n)throw Error(`No task store configured`);return{createTask:async r=>{if(!e)throw Error(`No request provided`);return await n.createTask(r,e.id,{method:e.method,params:e.params},t)},getTask:async e=>{let r=await n.getTask(e,t);if(!r)throw new J(q.InvalidParams,`Failed to retrieve task: Task not found`);return r},storeTaskResult:async(e,r,i)=>{await n.storeTaskResult(e,r,i,t);let a=await n.getTask(e,t);if(a){let t=Ls.parse({method:`notifications/tasks/status`,params:a});await this.notification(t),El(a.status)&&this._cleanupTaskProgressHandler(e)}},getTaskResult:e=>n.getTaskResult(e,t),updateTaskStatus:async(e,r,i)=>{let a=await n.getTask(e,t);if(!a)throw new J(q.InvalidParams,`Task "${e}" not found - it may have been cleaned up`);if(El(a.status))throw new J(q.InvalidParams,`Cannot update task "${e}" from terminal status "${a.status}" to "${r}". Terminal states (completed, failed, cancelled) cannot transition to other states.`);await n.updateTaskStatus(e,r,i,t);let o=await n.getTask(e,t);if(o){let t=Ls.parse({method:`notifications/tasks/status`,params:o});await this.notification(t),El(o.status)&&this._cleanupTaskProgressHandler(e)}},listTasks:e=>n.listTasks(e,t)}}};function Al(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function jl(e,t){let n={...e};for(let e in t){let r=e,i=t[r];if(i===void 0)continue;let a=n[r];n[r]=Al(a)&&Al(i)?{...a,...i}:i}return n}(e=>typeof a<`u`?a:typeof Proxy<`u`?new Proxy(e,{get:(e,t)=>(typeof a<`u`?a:e)[t]}):e)(function(e){if(typeof a<`u`)return a.apply(this,arguments);throw Error(`Dynamic require of "`+e+`" is not supported`)});var Ml=class extends kl{_registeredMethods=new Set;_eventSlots=new Map;onEventDispatch(e,t){}_ensureEventSlot(e){let t=this._eventSlots.get(e);if(!t){let n=this.eventSchemas[e];if(!n)throw Error(`Unknown event: ${String(e)}`);t={listeners:[]},this._eventSlots.set(e,t);let r=n.shape.method.value;this._registeredMethods.add(r);let i=t;super.setNotificationHandler(n,t=>{let n=t.params;this.onEventDispatch(e,n),i.onHandler?.(n);for(let e of[...i.listeners])e(n)})}return t}setEventHandler(e,t){let n=this._ensureEventSlot(e);n.onHandler&&t&&console.warn(`[MCP Apps] on${String(e)} handler replaced. Use addEventListener("${String(e)}", …) to add multiple listeners without replacing.`),n.onHandler=t}getEventHandler(e){return this._eventSlots.get(e)?.onHandler}addEventListener(e,t){this._ensureEventSlot(e).listeners.push(t)}removeEventListener(e,t){let n=this._eventSlots.get(e);if(!n)return;let r=n.listeners.indexOf(t);r!==-1&&n.listeners.splice(r,1)}setRequestHandler=(e,t)=>{this._assertMethodNotRegistered(e,`setRequestHandler`),super.setRequestHandler(e,t)};setNotificationHandler=(e,t)=>{this._assertMethodNotRegistered(e,`setNotificationHandler`),super.setNotificationHandler(e,t)};warnIfRequestHandlerReplaced(e,t,n){t&&n&&console.warn(`[MCP Apps] ${e} handler replaced. Previous handler will no longer be called.`)}replaceRequestHandler=(e,t)=>{let n=e.shape.method.value;this._registeredMethods.add(n),super.setRequestHandler(e,t)};_assertMethodNotRegistered(e,t){let n=e.shape.method.value;if(this._registeredMethods.has(n))throw Error(`Handler for "${n}" already registered (via ${t}). Use addEventListener() to attach multiple listeners, or the on* setter for replace semantics.`);this._registeredMethods.add(n)}},Nl=`2026-01-26`,Pl=B([H(`light`),H(`dark`)]).describe(`Color theme preference for the host environment.`),Fl=B([H(`inline`),H(`fullscreen`),H(`pip`)]).describe(`Display mode for UI presentation.`),Il=V(B([H(`--color-background-primary`),H(`--color-background-secondary`),H(`--color-background-tertiary`),H(`--color-background-inverse`),H(`--color-background-ghost`),H(`--color-background-info`),H(`--color-background-danger`),H(`--color-background-success`),H(`--color-background-warning`),H(`--color-background-disabled`),H(`--color-text-primary`),H(`--color-text-secondary`),H(`--color-text-tertiary`),H(`--color-text-inverse`),H(`--color-text-ghost`),H(`--color-text-info`),H(`--color-text-danger`),H(`--color-text-success`),H(`--color-text-warning`),H(`--color-text-disabled`),H(`--color-border-primary`),H(`--color-border-secondary`),H(`--color-border-tertiary`),H(`--color-border-inverse`),H(`--color-border-ghost`),H(`--color-border-info`),H(`--color-border-danger`),H(`--color-border-success`),H(`--color-border-warning`),H(`--color-border-disabled`),H(`--color-ring-primary`),H(`--color-ring-secondary`),H(`--color-ring-inverse`),H(`--color-ring-info`),H(`--color-ring-danger`),H(`--color-ring-success`),H(`--color-ring-warning`),H(`--font-sans`),H(`--font-mono`),H(`--font-weight-normal`),H(`--font-weight-medium`),H(`--font-weight-semibold`),H(`--font-weight-bold`),H(`--font-text-xs-size`),H(`--font-text-sm-size`),H(`--font-text-md-size`),H(`--font-text-lg-size`),H(`--font-heading-xs-size`),H(`--font-heading-sm-size`),H(`--font-heading-md-size`),H(`--font-heading-lg-size`),H(`--font-heading-xl-size`),H(`--font-heading-2xl-size`),H(`--font-heading-3xl-size`),H(`--font-text-xs-line-height`),H(`--font-text-sm-line-height`),H(`--font-text-md-line-height`),H(`--font-text-lg-line-height`),H(`--font-heading-xs-line-height`),H(`--font-heading-sm-line-height`),H(`--font-heading-md-line-height`),H(`--font-heading-lg-line-height`),H(`--font-heading-xl-line-height`),H(`--font-heading-2xl-line-height`),H(`--font-heading-3xl-line-height`),H(`--border-radius-xs`),H(`--border-radius-sm`),H(`--border-radius-md`),H(`--border-radius-lg`),H(`--border-radius-xl`),H(`--border-radius-full`),H(`--border-width-regular`),H(`--shadow-hairline`),H(`--shadow-sm`),H(`--shadow-md`),H(`--shadow-lg`)]).describe(`CSS variable keys available to MCP apps for theming.`).describe(`Style variables for theming MCP apps. + +Individual style keys are optional - hosts may provide any subset of these values. +Values are strings containing CSS values (colors, sizes, font stacks, etc.). + +Note: This type uses \`Record\` rather than \`Partial>\` +for compatibility with Zod schema generation. Both are functionally equivalent for validation.`),B([M(),qa()]).describe(`Style variables for theming MCP apps. + +Individual style keys are optional - hosts may provide any subset of these values. +Values are strings containing CSS values (colors, sizes, font stacks, etc.). + +Note: This type uses \`Record\` rather than \`Partial>\` +for compatibility with Zod schema generation. Both are functionally equivalent for validation.`)).describe(`Style variables for theming MCP apps. + +Individual style keys are optional - hosts may provide any subset of these values. +Values are strings containing CSS values (colors, sizes, font stacks, etc.). + +Note: This type uses \`Record\` rather than \`Partial>\` +for compatibility with Zod schema generation. Both are functionally equivalent for validation.`),Ll=R({method:H(`ui/open-link`),params:R({url:M().describe(`URL to open in the host's browser`)})});R({isError:F().optional().describe(`True if the host failed to open the URL (e.g., due to security policy).`)}).passthrough(),R({isError:F().optional().describe(`True if the download failed (e.g., user cancelled or host denied).`)}).passthrough(),R({isError:F().optional().describe(`True if the host rejected or failed to deliver the message.`)}).passthrough();var Rl=R({method:H(`ui/notifications/sandbox-proxy-ready`),params:R({})}),zl=R({connectDomains:L(M()).optional().describe(`Origins for network requests (fetch/XHR/WebSocket). + +- Maps to CSP \`connect-src\` directive +- Empty or omitted → no network connections (secure default)`),resourceDomains:L(M()).optional().describe("Origins for static resources (images, scripts, stylesheets, fonts, media).\n\n- Maps to CSP `img-src`, `script-src`, `style-src`, `font-src`, `media-src` directives\n- Wildcard subdomains supported: `https://*.example.com`\n- Empty or omitted → no network resources (secure default)"),frameDomains:L(M()).optional().describe("Origins for nested iframes.\n\n- Maps to CSP `frame-src` directive\n- Empty or omitted → no nested iframes allowed (`frame-src 'none'`)"),baseUriDomains:L(M()).optional().describe("Allowed base URIs for the document.\n\n- Maps to CSP `base-uri` directive\n- Empty or omitted → only same origin allowed (`base-uri 'self'`)")}),Bl=R({camera:R({}).optional().describe(`Request camera access. + +Maps to Permission Policy \`camera\` feature.`),microphone:R({}).optional().describe(`Request microphone access. + +Maps to Permission Policy \`microphone\` feature.`),geolocation:R({}).optional().describe(`Request geolocation access. + +Maps to Permission Policy \`geolocation\` feature.`),clipboardWrite:R({}).optional().describe(`Request clipboard write access. + +Maps to Permission Policy \`clipboard-write\` feature.`)}),Vl=R({method:H(`ui/notifications/size-changed`),params:R({width:P().optional().describe(`New width in pixels.`),height:P().optional().describe(`New height in pixels.`)})});R({method:H(`ui/notifications/tool-input`),params:R({arguments:V(M(),I().describe(`Complete tool call arguments as key-value pairs.`)).optional().describe(`Complete tool call arguments as key-value pairs.`)})}),R({method:H(`ui/notifications/tool-input-partial`),params:R({arguments:V(M(),I().describe(`Partial tool call arguments (incomplete, may change).`)).optional().describe(`Partial tool call arguments (incomplete, may change).`)})}),R({method:H(`ui/notifications/tool-cancelled`),params:R({reason:M().optional().describe(`Optional reason for the cancellation (e.g., "user action", "timeout").`)})});var Hl=R({fonts:M().optional()}),Ul=R({variables:Il.optional().describe(`CSS variables for theming the app.`),css:Hl.optional().describe(`CSS blocks that apps can inject.`)});R({method:H(`ui/resource-teardown`),params:R({})});var Wl=V(M(),I()),Gl=R({text:R({}).optional().describe(`Host supports text content blocks.`),image:R({}).optional().describe(`Host supports image content blocks.`),audio:R({}).optional().describe(`Host supports audio content blocks.`),resource:R({}).optional().describe(`Host supports resource content blocks.`),resourceLink:R({}).optional().describe(`Host supports resource link content blocks.`),structuredContent:R({}).optional().describe(`Host supports structured content.`)}),Kl=R({method:H(`ui/notifications/request-teardown`),params:R({}).optional()}),ql=R({experimental:V(M(),V(M(),Za()).describe(`Experimental features keyed by identifier.`)).optional().describe(`Experimental features keyed by identifier.`),openLinks:R({}).optional().describe(`Host supports opening external URLs.`),downloadFile:R({}).optional().describe(`Host supports file downloads via ui/download-file.`),serverTools:R({listChanged:F().optional().describe(`Host supports tools/list_changed notifications.`)}).optional().describe(`Host can proxy tool calls to the MCP server.`),serverResources:R({listChanged:F().optional().describe(`Host supports resources/list_changed notifications.`)}).optional().describe(`Host can proxy resource reads to the MCP server.`),logging:R({}).optional().describe(`Host accepts log messages.`),sandbox:R({permissions:Bl.optional().describe(`Permissions granted by the host (camera, microphone, geolocation).`),csp:zl.optional().describe(`CSP domains approved by the host.`)}).optional().describe(`Sandbox configuration applied by the host.`),updateModelContext:Gl.optional().describe(`Host accepts context updates (ui/update-model-context) to be included in the model's context for future turns.`),message:Gl.optional().describe(`Host supports receiving content messages (ui/message) from the view.`),sampling:R({tools:R({}).optional().describe("Host supports tool use via `tools` and `toolChoice` parameters.")}).optional().describe("Host supports LLM sampling (sampling/createMessage) from the view.\nMirrors the MCP `ClientCapabilities.sampling` shape so hosts can pass it through.")}),Jl=R({experimental:V(M(),V(M(),Za()).describe(`Experimental features keyed by identifier.`)).optional().describe(`Experimental features keyed by identifier.`),tools:R({listChanged:F().optional().describe(`App supports tools/list_changed notifications.`)}).optional().describe(`App exposes MCP-style tools that the host can call.`),availableDisplayModes:L(Fl).optional().describe(`Display modes the app supports.`)}),Yl=R({method:H(`ui/notifications/initialized`),params:R({}).optional()});R({csp:zl.optional().describe(`Content Security Policy configuration for UI resources.`),permissions:Bl.optional().describe(`Sandbox permissions requested by the UI resource.`),domain:M().optional().describe(`Dedicated origin for view sandbox. + +Useful when views need stable, dedicated origins for OAuth callbacks, CORS policies, or API key allowlists. + +**Host-dependent:** The format and validation rules for this field are determined by each host. Servers MUST consult host-specific documentation for the expected domain format. Common patterns include: +- Hash-based subdomains (e.g., \`{hash}.claudemcpcontent.com\`) +- URL-derived subdomains (e.g., \`www-example-com.oaiusercontent.com\`) + +If omitted, host uses default sandbox origin (typically per-conversation).`),prefersBorder:F().optional().describe(`Visual boundary preference - true if view prefers a visible border. + +Boolean requesting whether a visible border and background is provided by the host. Specifying an explicit value for this is recommended because hosts' defaults may vary. + +- \`true\`: request visible border + background +- \`false\`: request no visible border + background +- omitted: host decides border`)});var Xl=R({method:H(`ui/request-display-mode`),params:R({mode:Fl.describe(`The display mode being requested.`)})});R({mode:Fl.describe(`The display mode that was actually set. May differ from requested if not supported.`)}).passthrough();var Zl=B([H(`model`),H(`app`)]).describe(`Tool visibility scope - who can access the tool.`);R({resourceUri:M().optional(),visibility:L(Zl).optional().describe(`Who can access this tool. Default: ["model", "app"] +- "model": Tool visible to and callable by the agent +- "app": Tool callable by the app from this server only`),csp:eo().optional(),permissions:eo().optional()}),R({mimeTypes:L(M()).optional().describe('Array of supported MIME types for UI resources.\nMust include `"text/html;profile=mcp-app"` for MCP Apps support.')});var Ql=R({method:H(`ui/download-file`),params:R({contents:L(B([wc,Tc])).describe(`Resource contents to download — embedded (inline data) or linked (host fetches). Uses standard MCP resource types.`)})}),$l=R({method:H(`ui/message`),params:R({role:H(`user`).describe(`Message role, currently only "user" is supported.`),content:L(Ec).describe(`Message content blocks (text, image, etc.).`)})});R({method:H(`ui/notifications/sandbox-resource-ready`),params:R({html:M().describe(`HTML content to load into the inner iframe.`),sandbox:M().optional().describe(`Optional override for the inner iframe's sandbox attribute.`),csp:zl.optional().describe(`CSP configuration from resource metadata.`),permissions:Bl.optional().describe(`Sandbox permissions from resource metadata.`)})}),R({method:H(`ui/notifications/tool-result`),params:Fc.describe(`Standard MCP tool execution result.`)});var eu=R({toolInfo:R({id:es.optional().describe(`JSON-RPC id of the tools/call request.`),tool:Mc.describe(`Tool definition including name, inputSchema, etc.`)}).optional().describe(`Metadata of the tool call that instantiated this App.`),theme:Pl.optional().describe(`Current color theme preference.`),styles:Ul.optional().describe(`Style configuration for theming the app.`),displayMode:Fl.optional().describe(`How the UI is currently displayed.`),availableDisplayModes:L(Fl).optional().describe(`Display modes the host supports.`),containerDimensions:B([R({height:P().describe(`Fixed container height in pixels.`)}),R({maxHeight:B([P(),qa()]).optional().describe(`Maximum container height in pixels.`)})]).and(B([R({width:P().describe(`Fixed container width in pixels.`)}),R({maxWidth:B([P(),qa()]).optional().describe(`Maximum container width in pixels.`)})])).optional().describe(`Container dimensions. Represents the dimensions of the iframe or other +container holding the app. Specify either width or maxWidth, and either height or maxHeight.`),locale:M().optional().describe(`User's language and region preference in BCP 47 format.`),timeZone:M().optional().describe(`User's timezone in IANA format.`),userAgent:M().optional().describe(`Host application identifier.`),platform:B([H(`web`),H(`desktop`),H(`mobile`)]).optional().describe(`Platform type for responsive design decisions.`),deviceCapabilities:R({touch:F().optional().describe(`Whether the device supports touch input.`),hover:F().optional().describe(`Whether the device supports hover interactions.`)}).optional().describe(`Device input capabilities.`),safeAreaInsets:R({top:P().describe(`Top safe area inset in pixels.`),right:P().describe(`Right safe area inset in pixels.`),bottom:P().describe(`Bottom safe area inset in pixels.`),left:P().describe(`Left safe area inset in pixels.`)}).optional().describe(`Mobile safe area boundaries in pixels.`)}).passthrough();R({method:H(`ui/notifications/host-context-changed`),params:eu.describe(`Partial context update containing only changed fields.`)});var tu=R({method:H(`ui/update-model-context`),params:R({content:L(Ec).optional().describe(`Context content blocks (text, image, etc.).`),structuredContent:V(M(),I().describe(`Structured content for machine-readable context data.`)).optional().describe(`Structured content for machine-readable context data.`)})}),nu=R({method:H(`ui/initialize`),params:R({appInfo:hs.describe(`App identification (name and version).`),appCapabilities:Jl.describe(`Features and capabilities this app provides.`),protocolVersion:M().describe(`Protocol version this app supports.`)})});R({protocolVersion:M().describe(`Negotiated protocol version string (e.g., "2025-11-21").`),hostInfo:hs.describe(`Host application identification and version.`),hostCapabilities:ql.describe(`Features and capabilities provided by the host.`),hostContext:eu.describe(`Rich context about the host environment.`)}).passthrough();var ru=class{eventTarget;eventSource;messageListener;constructor(e=window.parent,t){this.eventTarget=e,this.eventSource=t,this.messageListener=e=>{if(t&&e.source!==this.eventSource){console.debug(`Ignoring message from unknown source`,e);return}let n=ls.safeParse(e.data);n.success?(console.debug(`Parsed message`,n.data),this.onmessage?.(n.data)):e.data?.jsonrpc===`2.0`?(console.error(`Failed to parse message`,n.error.message,e),this.onerror?.(Error(`Invalid JSON-RPC message received: `+n.error.message))):console.debug(`Ignoring non-JSON-RPC message`,n.error.message,e)}}async start(){window.addEventListener(`message`,this.messageListener)}async send(e,t){e.method!==`ui/notifications/tool-input-partial`&&console.debug(`Sending message`,e),this.eventTarget.postMessage(e,`*`)}async close(){window.removeEventListener(`message`,this.messageListener),this.onclose?.()}onclose;onerror;onmessage;sessionId;setProtocolVersion},iu=[Nl],au=class extends Ml{_client;_hostInfo;_capabilities;_appCapabilities;_hostContext={};_appInfo;_initializedReceived=!1;_baseReplaceRequestHandler=this.replaceRequestHandler;replaceRequestHandler=(e,t)=>{this._baseReplaceRequestHandler(e,(e,n)=>(this._initializedReceived||console.warn(`[ext-apps] AppBridge received '${e.method}' before ui/notifications/initialized. The View is calling host methods before completing the handshake; it should await app.connect() first.`),t(e,n)))};eventSchemas={sizechange:Vl,sandboxready:Rl,initialized:Yl,requestteardown:Kl,loggingmessage:Wc};constructor(e,t,n,r){super(r),this._client=e,this._hostInfo=t,this._capabilities=n,this.addEventListener(`initialized`,()=>{this._initializedReceived=!0}),this._hostContext=r?.hostContext||{},this.setRequestHandler(nu,e=>this._oninitialize(e)),this.setRequestHandler(Es,(e,t)=>(this.onping?.(e.params,t),{})),this.replaceRequestHandler(Xl,e=>({mode:this._hostContext.displayMode??`inline`}))}getAppCapabilities(){return this._appCapabilities}getAppVersion(){return this._appInfo}onping;get onsizechange(){return this.getEventHandler(`sizechange`)}set onsizechange(e){this.setEventHandler(`sizechange`,e)}get onsandboxready(){return this.getEventHandler(`sandboxready`)}set onsandboxready(e){this.setEventHandler(`sandboxready`,e)}get oninitialized(){return this.getEventHandler(`initialized`)}set oninitialized(e){this.setEventHandler(`initialized`,e)}_onmessage;get onmessage(){return this._onmessage}set onmessage(e){this.warnIfRequestHandlerReplaced(`onmessage`,this._onmessage,e),this._onmessage=e,this.replaceRequestHandler($l,async(e,t)=>{if(!this._onmessage)throw Error(`No onmessage handler set`);return this._onmessage(e.params,t)})}_onopenlink;get onopenlink(){return this._onopenlink}set onopenlink(e){this.warnIfRequestHandlerReplaced(`onopenlink`,this._onopenlink,e),this._onopenlink=e,this.replaceRequestHandler(Ll,async(e,t)=>{if(!this._onopenlink)throw Error(`No onopenlink handler set`);return this._onopenlink(e.params,t)})}_ondownloadfile;get ondownloadfile(){return this._ondownloadfile}set ondownloadfile(e){this.warnIfRequestHandlerReplaced(`ondownloadfile`,this._ondownloadfile,e),this._ondownloadfile=e,this.replaceRequestHandler(Ql,async(e,t)=>{if(!this._ondownloadfile)throw Error(`No ondownloadfile handler set`);return this._ondownloadfile(e.params,t)})}get onrequestteardown(){return this.getEventHandler(`requestteardown`)}set onrequestteardown(e){this.setEventHandler(`requestteardown`,e)}_onrequestdisplaymode;get onrequestdisplaymode(){return this._onrequestdisplaymode}set onrequestdisplaymode(e){this.warnIfRequestHandlerReplaced(`onrequestdisplaymode`,this._onrequestdisplaymode,e),this._onrequestdisplaymode=e,this.replaceRequestHandler(Xl,async(e,t)=>{if(!this._onrequestdisplaymode)throw Error(`No onrequestdisplaymode handler set`);return this._onrequestdisplaymode(e.params,t)})}get onloggingmessage(){return this.getEventHandler(`loggingmessage`)}set onloggingmessage(e){this.setEventHandler(`loggingmessage`,e)}_onupdatemodelcontext;get onupdatemodelcontext(){return this._onupdatemodelcontext}set onupdatemodelcontext(e){this.warnIfRequestHandlerReplaced(`onupdatemodelcontext`,this._onupdatemodelcontext,e),this._onupdatemodelcontext=e,this.replaceRequestHandler(tu,async(e,t)=>{if(!this._onupdatemodelcontext)throw Error(`No onupdatemodelcontext handler set`);return this._onupdatemodelcontext(e.params,t)})}_oncalltool;get oncalltool(){return this._oncalltool}set oncalltool(e){this.warnIfRequestHandlerReplaced(`oncalltool`,this._oncalltool,e),this._oncalltool=e,this.replaceRequestHandler(Lc,async(e,t)=>{if(!this._oncalltool)throw Error(`No oncalltool handler set`);return this._oncalltool(e.params,t)})}set oncreatesamplingmessage(e){this.setRequestHandler(Qc,async(t,n)=>e(t.params,n))}sendToolListChanged(e={}){return this.notification({method:`notifications/tools/list_changed`,params:e})}_onlistresources;get onlistresources(){return this._onlistresources}set onlistresources(e){this.warnIfRequestHandlerReplaced(`onlistresources`,this._onlistresources,e),this._onlistresources=e,this.replaceRequestHandler($s,async(e,t)=>{if(!this._onlistresources)throw Error(`No onlistresources handler set`);return this._onlistresources(e.params,t)})}_onlistresourcetemplates;get onlistresourcetemplates(){return this._onlistresourcetemplates}set onlistresourcetemplates(e){this.warnIfRequestHandlerReplaced(`onlistresourcetemplates`,this._onlistresourcetemplates,e),this._onlistresourcetemplates=e,this.replaceRequestHandler(tc,async(e,t)=>{if(!this._onlistresourcetemplates)throw Error(`No onlistresourcetemplates handler set`);return this._onlistresourcetemplates(e.params,t)})}_onreadresource;get onreadresource(){return this._onreadresource}set onreadresource(e){this.warnIfRequestHandlerReplaced(`onreadresource`,this._onreadresource,e),this._onreadresource=e,this.replaceRequestHandler(ac,async(e,t)=>{if(!this._onreadresource)throw Error(`No onreadresource handler set`);return this._onreadresource(e.params,t)})}sendResourceListChanged(e={}){return this.notification({method:`notifications/resources/list_changed`,params:e})}_onlistprompts;get onlistprompts(){return this._onlistprompts}set onlistprompts(e){this.warnIfRequestHandlerReplaced(`onlistprompts`,this._onlistprompts,e),this._onlistprompts=e,this.replaceRequestHandler(gc,async(e,t)=>{if(!this._onlistprompts)throw Error(`No onlistprompts handler set`);return this._onlistprompts(e.params,t)})}sendPromptListChanged(e={}){return this.notification({method:`notifications/prompts/list_changed`,params:e})}assertCapabilityForMethod(e){}assertRequestHandlerCapability(e){}assertNotificationCapability(e){}assertTaskCapability(e){throw Error(`Tasks are not supported in MCP Apps`)}assertTaskHandlerCapability(e){throw Error(`Task handlers are not supported in MCP Apps`)}getCapabilities(){return this._capabilities}async _oninitialize(e){let t=e.params.protocolVersion;return this._appInfo!==void 0&&console.warn(`[ext-apps] AppBridge received a second ui/initialize. The View may be double-mounting (e.g. React StrictMode in dev) without closing the previous App instance. Responding normally; the latest appInfo/appCapabilities replace the previous values.`),this._appCapabilities=e.params.appCapabilities,this._appInfo=e.params.appInfo,{protocolVersion:iu.includes(t)?t:Nl,hostCapabilities:this.getCapabilities(),hostInfo:this._hostInfo,hostContext:this._hostContext}}setHostContext(e){let t={},n=!1;for(let r of Object.keys(e)){let i=this._hostContext[r],a=e[r];ou(i,a)||(t[r]=a,n=!0)}n&&(this._hostContext=e,this.sendHostContextChange(t))}sendHostContextChange(e){return this.notification({method:`ui/notifications/host-context-changed`,params:e})}sendToolInput(e){return this.notification({method:`ui/notifications/tool-input`,params:e})}sendToolInputPartial(e){return this.notification({method:`ui/notifications/tool-input-partial`,params:e})}sendToolResult(e){return this.notification({method:`ui/notifications/tool-result`,params:e})}sendToolCancelled(e){return this.notification({method:`ui/notifications/tool-cancelled`,params:e})}sendSandboxResourceReady(e){return this.notification({method:`ui/notifications/sandbox-resource-ready`,params:e})}teardownResource(e,t){return this.request({method:`ui/resource-teardown`,params:e},Wl,t)}sendResourceTeardown=this.teardownResource;callTool(e,t){return this.request({method:`tools/call`,params:e},Fc,t)}listTools(e,t){return this.request({method:`tools/list`,params:e},Pc,t)}async connect(e){if(this.transport)throw Error(`AppBridge is already connected. Call close() before connecting again.`);if(this._initializedReceived=!1,this._client){let e=this._client.getServerCapabilities();if(!e)throw Error(`Client server capabilities not available`);e.tools&&(this.oncalltool=async(e,t)=>this._client.request({method:`tools/call`,params:e},Fc,{signal:t.signal}),e.tools.listChanged&&this._client.setNotificationHandler(Rc,e=>this.sendToolListChanged(e.params))),e.resources&&(this.onlistresources=async(e,t)=>this._client.request({method:`resources/list`,params:e},ec,{signal:t.signal}),this.onlistresourcetemplates=async(e,t)=>this._client.request({method:`resources/templates/list`,params:e},nc,{signal:t.signal}),this.onreadresource=async(e,t)=>this._client.request({method:`resources/read`,params:e},oc,{signal:t.signal}),e.resources.listChanged&&this._client.setNotificationHandler(sc,e=>this.sendResourceListChanged(e.params))),e.prompts&&(this.onlistprompts=async(e,t)=>this._client.request({method:`prompts/list`,params:e},_c,{signal:t.signal}),e.prompts.listChanged&&this._client.setNotificationHandler(kc,e=>this.sendPromptListChanged(e.params)))}return super.connect(e)}};function ou(e,t){return JSON.stringify(e)===JSON.stringify(t)}var su=r((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.regexpCode=e.getEsmExportName=e.getProperty=e.safeStringify=e.stringify=e.strConcat=e.addCodeArg=e.str=e._=e.nil=e._Code=e.Name=e.IDENTIFIER=e._CodeOrName=void 0;var t=class{};e._CodeOrName=t,e.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;var n=class extends t{constructor(t){if(super(),!e.IDENTIFIER.test(t))throw Error(`CodeGen: name must be a valid identifier`);this.str=t}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}};e.Name=n;var r=class extends t{constructor(e){super(),this._items=typeof e==`string`?[e]:e}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;let e=this._items[0];return e===``||e===`""`}get str(){return this._str??=this._items.reduce((e,t)=>`${e}${t}`,``)}get names(){return this._names??=this._items.reduce((e,t)=>(t instanceof n&&(e[t.str]=(e[t.str]||0)+1),e),{})}};e._Code=r,e.nil=new r(``);function i(e,...t){let n=[e[0]],i=0;for(;i{Object.defineProperty(e,"__esModule",{value:!0}),e.ValueScope=e.ValueScopeName=e.Scope=e.varKinds=e.UsedValueState=void 0;var t=su(),n=class extends Error{constructor(e){super(`CodeGen: "code" for ${e} not defined`),this.value=e.value}},r;(function(e){e[e.Started=0]=`Started`,e[e.Completed=1]=`Completed`})(r||(e.UsedValueState=r={})),e.varKinds={const:new t.Name(`const`),let:new t.Name(`let`),var:new t.Name(`var`)};var i=class{constructor({prefixes:e,parent:t}={}){this._names={},this._prefixes=e,this._parent=t}toName(e){return e instanceof t.Name?e:this.name(e)}name(e){return new t.Name(this._newName(e))}_newName(e){let t=this._names[e]||this._nameGroup(e);return`${e}${t.index++}`}_nameGroup(e){if((this._parent?._prefixes)?.has(e)||this._prefixes&&!this._prefixes.has(e))throw Error(`CodeGen: prefix "${e}" is not allowed in this scope`);return this._names[e]={prefix:e,index:0}}};e.Scope=i;var a=class extends t.Name{constructor(e,t){super(t),this.prefix=e}setValue(e,{property:n,itemIndex:r}){this.value=e,this.scopePath=(0,t._)`.${new t.Name(n)}[${r}]`}};e.ValueScopeName=a;var o=(0,t._)`\n`;e.ValueScope=class extends i{constructor(e){super(e),this._values={},this._scope=e.scope,this.opts={...e,_n:e.lines?o:t.nil}}get(){return this._scope}name(e){return new a(e,this._newName(e))}value(e,t){if(t.ref===void 0)throw Error(`CodeGen: ref must be passed in value`);let n=this.toName(e),{prefix:r}=n,i=t.key??t.ref,a=this._values[r];if(a){let e=a.get(i);if(e)return e}else a=this._values[r]=new Map;a.set(i,n);let o=this._scope[r]||(this._scope[r]=[]),s=o.length;return o[s]=t.ref,n.setValue(t,{property:r,itemIndex:s}),n}getValue(e,t){let n=this._values[e];if(n)return n.get(t)}scopeRefs(e,n=this._values){return this._reduceValues(n,n=>{if(n.scopePath===void 0)throw Error(`CodeGen: name "${n}" has no value`);return(0,t._)`${e}${n.scopePath}`})}scopeCode(e=this._values,t,n){return this._reduceValues(e,e=>{if(e.value===void 0)throw Error(`CodeGen: name "${e}" has no value`);return e.value.code},t,n)}_reduceValues(i,a,o={},s){let c=t.nil;for(let l in i){let u=i[l];if(!u)continue;let d=o[l]=o[l]||new Map;u.forEach(i=>{if(d.has(i))return;d.set(i,r.Started);let o=a(i);if(o){let n=this.opts.es5?e.varKinds.var:e.varKinds.const;c=(0,t._)`${c}${n} ${i} = ${o};${this.opts._n}`}else if(o=s?.(i))c=(0,t._)`${c}${o}${this.opts._n}`;else throw new n(i);d.set(i,r.Completed)})}return c}}})),Y=r((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.or=e.and=e.not=e.CodeGen=e.operators=e.varKinds=e.ValueScopeName=e.ValueScope=e.Scope=e.Name=e.regexpCode=e.stringify=e.getProperty=e.nil=e.strConcat=e.str=e._=void 0;var t=su(),n=cu(),r=su();Object.defineProperty(e,"_",{enumerable:!0,get:function(){return r._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return r.str}}),Object.defineProperty(e,"strConcat",{enumerable:!0,get:function(){return r.strConcat}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return r.nil}}),Object.defineProperty(e,"getProperty",{enumerable:!0,get:function(){return r.getProperty}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return r.stringify}}),Object.defineProperty(e,"regexpCode",{enumerable:!0,get:function(){return r.regexpCode}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return r.Name}});var i=cu();Object.defineProperty(e,"Scope",{enumerable:!0,get:function(){return i.Scope}}),Object.defineProperty(e,"ValueScope",{enumerable:!0,get:function(){return i.ValueScope}}),Object.defineProperty(e,"ValueScopeName",{enumerable:!0,get:function(){return i.ValueScopeName}}),Object.defineProperty(e,"varKinds",{enumerable:!0,get:function(){return i.varKinds}}),e.operators={GT:new t._Code(`>`),GTE:new t._Code(`>=`),LT:new t._Code(`<`),LTE:new t._Code(`<=`),EQ:new t._Code(`===`),NEQ:new t._Code(`!==`),NOT:new t._Code(`!`),OR:new t._Code(`||`),AND:new t._Code(`&&`),ADD:new t._Code(`+`)};var a=class{optimizeNodes(){return this}optimizeNames(e,t){return this}},o=class extends a{constructor(e,t,n){super(),this.varKind=e,this.name=t,this.rhs=n}render({es5:e,_n:t}){let r=e?n.varKinds.var:this.varKind,i=this.rhs===void 0?``:` = ${this.rhs}`;return`${r} ${this.name}${i};`+t}optimizeNames(e,t){if(e[this.name.str])return this.rhs&&=w(this.rhs,e,t),this}get names(){return this.rhs instanceof t._CodeOrName?this.rhs.names:{}}},s=class extends a{constructor(e,t,n){super(),this.lhs=e,this.rhs=t,this.sideEffects=n}render({_n:e}){return`${this.lhs} = ${this.rhs};`+e}optimizeNames(e,n){if(!(this.lhs instanceof t.Name&&!e[this.lhs.str]&&!this.sideEffects))return this.rhs=w(this.rhs,e,n),this}get names(){return ie(this.lhs instanceof t.Name?{}:{...this.lhs.names},this.rhs)}},c=class extends s{constructor(e,t,n,r){super(e,n,r),this.op=t}render({_n:e}){return`${this.lhs} ${this.op}= ${this.rhs};`+e}},l=class extends a{constructor(e){super(),this.label=e,this.names={}}render({_n:e}){return`${this.label}:`+e}},u=class extends a{constructor(e){super(),this.label=e,this.names={}}render({_n:e}){return`break${this.label?` ${this.label}`:``};`+e}},d=class extends a{constructor(e){super(),this.error=e}render({_n:e}){return`throw ${this.error};`+e}get names(){return this.error.names}},f=class extends a{constructor(e){super(),this.code=e}render({_n:e}){return`${this.code};`+e}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(e,t){return this.code=w(this.code,e,t),this}get names(){return this.code instanceof t._CodeOrName?this.code.names:{}}},p=class extends a{constructor(e=[]){super(),this.nodes=e}render(e){return this.nodes.reduce((t,n)=>t+n.render(e),``)}optimizeNodes(){let{nodes:e}=this,t=e.length;for(;t--;){let n=e[t].optimizeNodes();Array.isArray(n)?e.splice(t,1,...n):n?e[t]=n:e.splice(t,1)}return e.length>0?this:void 0}optimizeNames(e,t){let{nodes:n}=this,r=n.length;for(;r--;){let i=n[r];i.optimizeNames(e,t)||(ae(e,i.names),n.splice(r,1))}return n.length>0?this:void 0}get names(){return this.nodes.reduce((e,t)=>re(e,t.names),{})}},m=class extends p{render(e){return`{`+e._n+super.render(e)+`}`+e._n}},h=class extends p{},g=class extends m{};g.kind=`else`;var _=class e extends m{constructor(e,t){super(t),this.condition=e}render(e){let t=`if(${this.condition})`+super.render(e);return this.else&&(t+=`else `+this.else.render(e)),t}optimizeNodes(){super.optimizeNodes();let t=this.condition;if(t===!0)return this.nodes;let n=this.else;if(n){let e=n.optimizeNodes();n=this.else=Array.isArray(e)?new g(e):e}if(n)return t===!1?n instanceof e?n:n.nodes:this.nodes.length?this:new e(oe(t),n instanceof e?[n]:n.nodes);if(!(t===!1||!this.nodes.length))return this}optimizeNames(e,t){if(this.else=this.else?.optimizeNames(e,t),super.optimizeNames(e,t)||this.else)return this.condition=w(this.condition,e,t),this}get names(){let e=super.names;return ie(e,this.condition),this.else&&re(e,this.else.names),e}};_.kind=`if`;var v=class extends m{};v.kind=`for`;var y=class extends v{constructor(e){super(),this.iteration=e}render(e){return`for(${this.iteration})`+super.render(e)}optimizeNames(e,t){if(super.optimizeNames(e,t))return this.iteration=w(this.iteration,e,t),this}get names(){return re(super.names,this.iteration.names)}},b=class extends v{constructor(e,t,n,r){super(),this.varKind=e,this.name=t,this.from=n,this.to=r}render(e){let t=e.es5?n.varKinds.var:this.varKind,{name:r,from:i,to:a}=this;return`for(${t} ${r}=${i}; ${r}<${a}; ${r}++)`+super.render(e)}get names(){return ie(ie(super.names,this.from),this.to)}},x=class extends v{constructor(e,t,n,r){super(),this.loop=e,this.varKind=t,this.name=n,this.iterable=r}render(e){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(e)}optimizeNames(e,t){if(super.optimizeNames(e,t))return this.iterable=w(this.iterable,e,t),this}get names(){return re(super.names,this.iterable.names)}},S=class extends m{constructor(e,t,n){super(),this.name=e,this.args=t,this.async=n}render(e){return`${this.async?`async `:``}function ${this.name}(${this.args})`+super.render(e)}};S.kind=`func`;var C=class extends p{render(e){return`return `+super.render(e)}};C.kind=`return`;var ee=class extends m{render(e){let t=`try`+super.render(e);return this.catch&&(t+=this.catch.render(e)),this.finally&&(t+=this.finally.render(e)),t}optimizeNodes(){var e,t;return super.optimizeNodes(),(e=this.catch)==null||e.optimizeNodes(),(t=this.finally)==null||t.optimizeNodes(),this}optimizeNames(e,t){var n,r;return super.optimizeNames(e,t),(n=this.catch)==null||n.optimizeNames(e,t),(r=this.finally)==null||r.optimizeNames(e,t),this}get names(){let e=super.names;return this.catch&&re(e,this.catch.names),this.finally&&re(e,this.finally.names),e}},te=class extends m{constructor(e){super(),this.error=e}render(e){return`catch(${this.error})`+super.render(e)}};te.kind=`catch`;var ne=class extends m{render(e){return`finally`+super.render(e)}};ne.kind=`finally`,e.CodeGen=class{constructor(e,t={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...t,_n:t.lines?` +`:``},this._extScope=e,this._scope=new n.Scope({parent:e}),this._nodes=[new h]}toString(){return this._root.render(this.opts)}name(e){return this._scope.name(e)}scopeName(e){return this._extScope.name(e)}scopeValue(e,t){let n=this._extScope.value(e,t);return(this._values[n.prefix]||(this._values[n.prefix]=new Set)).add(n),n}getScopeValue(e,t){return this._extScope.getValue(e,t)}scopeRefs(e){return this._extScope.scopeRefs(e,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(e,t,n,r){let i=this._scope.toName(t);return n!==void 0&&r&&(this._constants[i.str]=n),this._leafNode(new o(e,i,n)),i}const(e,t,r){return this._def(n.varKinds.const,e,t,r)}let(e,t,r){return this._def(n.varKinds.let,e,t,r)}var(e,t,r){return this._def(n.varKinds.var,e,t,r)}assign(e,t,n){return this._leafNode(new s(e,t,n))}add(t,n){return this._leafNode(new c(t,e.operators.ADD,n))}code(e){return typeof e==`function`?e():e!==t.nil&&this._leafNode(new f(e)),this}object(...e){let n=[`{`];for(let[r,i]of e)n.length>1&&n.push(`,`),n.push(r),(r!==i||this.opts.es5)&&(n.push(`:`),(0,t.addCodeArg)(n,i));return n.push(`}`),new t._Code(n)}if(e,t,n){if(this._blockNode(new _(e)),t&&n)this.code(t).else().code(n).endIf();else if(t)this.code(t).endIf();else if(n)throw Error(`CodeGen: "else" body without "then" body`);return this}elseIf(e){return this._elseNode(new _(e))}else(){return this._elseNode(new g)}endIf(){return this._endBlockNode(_,g)}_for(e,t){return this._blockNode(e),t&&this.code(t).endFor(),this}for(e,t){return this._for(new y(e),t)}forRange(e,t,r,i,a=this.opts.es5?n.varKinds.var:n.varKinds.let){let o=this._scope.toName(e);return this._for(new b(a,o,t,r),()=>i(o))}forOf(e,r,i,a=n.varKinds.const){let o=this._scope.toName(e);if(this.opts.es5){let e=r instanceof t.Name?r:this.var(`_arr`,r);return this.forRange(`_i`,0,(0,t._)`${e}.length`,n=>{this.var(o,(0,t._)`${e}[${n}]`),i(o)})}return this._for(new x(`of`,a,o,r),()=>i(o))}forIn(e,r,i,a=this.opts.es5?n.varKinds.var:n.varKinds.const){if(this.opts.ownProperties)return this.forOf(e,(0,t._)`Object.keys(${r})`,i);let o=this._scope.toName(e);return this._for(new x(`in`,a,o,r),()=>i(o))}endFor(){return this._endBlockNode(v)}label(e){return this._leafNode(new l(e))}break(e){return this._leafNode(new u(e))}return(e){let t=new C;if(this._blockNode(t),this.code(e),t.nodes.length!==1)throw Error(`CodeGen: "return" should have one node`);return this._endBlockNode(C)}try(e,t,n){if(!t&&!n)throw Error(`CodeGen: "try" without "catch" and "finally"`);let r=new ee;if(this._blockNode(r),this.code(e),t){let e=this.name(`e`);this._currNode=r.catch=new te(e),t(e)}return n&&(this._currNode=r.finally=new ne,this.code(n)),this._endBlockNode(te,ne)}throw(e){return this._leafNode(new d(e))}block(e,t){return this._blockStarts.push(this._nodes.length),e&&this.code(e).endBlock(t),this}endBlock(e){let t=this._blockStarts.pop();if(t===void 0)throw Error(`CodeGen: not in self-balancing block`);let n=this._nodes.length-t;if(n<0||e!==void 0&&n!==e)throw Error(`CodeGen: wrong number of nodes: ${n} vs ${e} expected`);return this._nodes.length=t,this}func(e,n=t.nil,r,i){return this._blockNode(new S(e,n,r)),i&&this.code(i).endFunc(),this}endFunc(){return this._endBlockNode(S)}optimize(e=1){for(;e-->0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(e){return this._currNode.nodes.push(e),this}_blockNode(e){this._currNode.nodes.push(e),this._nodes.push(e)}_endBlockNode(e,t){let n=this._currNode;if(n instanceof e||t&&n instanceof t)return this._nodes.pop(),this;throw Error(`CodeGen: not in block "${t?`${e.kind}/${t.kind}`:e.kind}"`)}_elseNode(e){let t=this._currNode;if(!(t instanceof _))throw Error(`CodeGen: "else" without "if"`);return this._currNode=t.else=e,this}get _root(){return this._nodes[0]}get _currNode(){let e=this._nodes;return e[e.length-1]}set _currNode(e){let t=this._nodes;t[t.length-1]=e}};function re(e,t){for(let n in t)e[n]=(e[n]||0)+(t[n]||0);return e}function ie(e,n){return n instanceof t._CodeOrName?re(e,n.names):e}function w(e,n,r){if(e instanceof t.Name)return i(e);if(!a(e))return e;return new t._Code(e._items.reduce((e,n)=>(n instanceof t.Name&&(n=i(n)),n instanceof t._Code?e.push(...n._items):e.push(n),e),[]));function i(e){let t=r[e.str];return t===void 0||n[e.str]!==1?e:(delete n[e.str],t)}function a(e){return e instanceof t._Code&&e._items.some(e=>e instanceof t.Name&&n[e.str]===1&&r[e.str]!==void 0)}}function ae(e,t){for(let n in t)e[n]=(e[n]||0)-(t[n]||0)}function oe(e){return typeof e==`boolean`||typeof e==`number`||e===null?!e:(0,t._)`!${fe(e)}`}e.not=oe;var se=de(e.operators.AND);function ce(...e){return e.reduce(se)}e.and=ce;var le=de(e.operators.OR);function ue(...e){return e.reduce(le)}e.or=ue;function de(e){return(n,r)=>n===t.nil?r:r===t.nil?n:(0,t._)`${fe(n)} ${e} ${fe(r)}`}function fe(e){return e instanceof t.Name?e:(0,t._)`(${e})`}})),X=r((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.checkStrictMode=e.getErrorPath=e.Type=e.useFunc=e.setEvaluated=e.evaluatedPropsToName=e.mergeEvaluated=e.eachItem=e.unescapeJsonPointer=e.escapeJsonPointer=e.escapeFragment=e.unescapeFragment=e.schemaRefOrVal=e.schemaHasRulesButRef=e.schemaHasRules=e.checkUnknownRules=e.alwaysValidSchema=e.toHash=void 0;var t=Y(),n=su();function r(e){let t={};for(let n of e)t[n]=!0;return t}e.toHash=r;function i(e,t){return typeof t==`boolean`?t:Object.keys(t).length===0||(a(e,t),!o(t,e.self.RULES.all))}e.alwaysValidSchema=i;function a(e,t=e.schema){let{opts:n,self:r}=e;if(!n.strictSchema||typeof t==`boolean`)return;let i=r.RULES.keywords;for(let n in t)i[n]||x(e,`unknown keyword: "${n}"`)}e.checkUnknownRules=a;function o(e,t){if(typeof e==`boolean`)return!e;for(let n in e)if(t[n])return!0;return!1}e.schemaHasRules=o;function s(e,t){if(typeof e==`boolean`)return!e;for(let n in e)if(n!==`$ref`&&t.all[n])return!0;return!1}e.schemaHasRulesButRef=s;function c({topSchemaRef:e,schemaPath:n},r,i,a){if(!a){if(typeof r==`number`||typeof r==`boolean`)return r;if(typeof r==`string`)return(0,t._)`${r}`}return(0,t._)`${e}${n}${(0,t.getProperty)(i)}`}e.schemaRefOrVal=c;function l(e){return f(decodeURIComponent(e))}e.unescapeFragment=l;function u(e){return encodeURIComponent(d(e))}e.escapeFragment=u;function d(e){return typeof e==`number`?`${e}`:e.replace(/~/g,`~0`).replace(/\//g,`~1`)}e.escapeJsonPointer=d;function f(e){return e.replace(/~1/g,`/`).replace(/~0/g,`~`)}e.unescapeJsonPointer=f;function p(e,t){if(Array.isArray(e))for(let n of e)t(n);else t(e)}e.eachItem=p;function m({mergeNames:e,mergeToName:n,mergeValues:r,resultToName:i}){return(a,o,s,c)=>{let l=s===void 0?o:s instanceof t.Name?(o instanceof t.Name?e(a,o,s):n(a,o,s),s):o instanceof t.Name?(n(a,s,o),o):r(o,s);return c===t.Name&&!(l instanceof t.Name)?i(a,l):l}}e.mergeEvaluated={props:m({mergeNames:(e,n,r)=>e.if((0,t._)`${r} !== true && ${n} !== undefined`,()=>{e.if((0,t._)`${n} === true`,()=>e.assign(r,!0),()=>e.assign(r,(0,t._)`${r} || {}`).code((0,t._)`Object.assign(${r}, ${n})`))}),mergeToName:(e,n,r)=>e.if((0,t._)`${r} !== true`,()=>{n===!0?e.assign(r,!0):(e.assign(r,(0,t._)`${r} || {}`),g(e,r,n))}),mergeValues:(e,t)=>e===!0||{...e,...t},resultToName:h}),items:m({mergeNames:(e,n,r)=>e.if((0,t._)`${r} !== true && ${n} !== undefined`,()=>e.assign(r,(0,t._)`${n} === true ? true : ${r} > ${n} ? ${r} : ${n}`)),mergeToName:(e,n,r)=>e.if((0,t._)`${r} !== true`,()=>e.assign(r,n===!0||(0,t._)`${r} > ${n} ? ${r} : ${n}`)),mergeValues:(e,t)=>e===!0||Math.max(e,t),resultToName:(e,t)=>e.var(`items`,t)})};function h(e,n){if(n===!0)return e.var(`props`,!0);let r=e.var(`props`,(0,t._)`{}`);return n!==void 0&&g(e,r,n),r}e.evaluatedPropsToName=h;function g(e,n,r){Object.keys(r).forEach(r=>e.assign((0,t._)`${n}${(0,t.getProperty)(r)}`,!0))}e.setEvaluated=g;var _={};function v(e,t){return e.scopeValue(`func`,{ref:t,code:_[t.code]||(_[t.code]=new n._Code(t.code))})}e.useFunc=v;var y;(function(e){e[e.Num=0]=`Num`,e[e.Str=1]=`Str`})(y||(e.Type=y={}));function b(e,n,r){if(e instanceof t.Name){let i=n===y.Num;return r?i?(0,t._)`"[" + ${e} + "]"`:(0,t._)`"['" + ${e} + "']"`:i?(0,t._)`"/" + ${e}`:(0,t._)`"/" + ${e}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return r?(0,t.getProperty)(e).toString():`/`+d(e)}e.getErrorPath=b;function x(e,t,n=e.opts.strictSchema){if(n){if(t=`strict mode: ${t}`,n===!0)throw Error(t);e.self.logger.warn(t)}}e.checkStrictMode=x})),lu=r((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=Y();e.default={data:new t.Name(`data`),valCxt:new t.Name(`valCxt`),instancePath:new t.Name(`instancePath`),parentData:new t.Name(`parentData`),parentDataProperty:new t.Name(`parentDataProperty`),rootData:new t.Name(`rootData`),dynamicAnchors:new t.Name(`dynamicAnchors`),vErrors:new t.Name(`vErrors`),errors:new t.Name(`errors`),this:new t.Name(`this`),self:new t.Name(`self`),scope:new t.Name(`scope`),json:new t.Name(`json`),jsonPos:new t.Name(`jsonPos`),jsonLen:new t.Name(`jsonLen`),jsonPart:new t.Name(`jsonPart`)}})),uu=r((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.extendErrors=e.resetErrorsCount=e.reportExtraError=e.reportError=e.keyword$DataError=e.keywordError=void 0;var t=Y(),n=X(),r=lu();e.keywordError={message:({keyword:e})=>(0,t.str)`must pass "${e}" keyword validation`},e.keyword$DataError={message:({keyword:e,schemaType:n})=>n?(0,t.str)`"${e}" keyword must be ${n} ($data)`:(0,t.str)`"${e}" keyword is invalid ($data)`};function i(n,r=e.keywordError,i,a){let{it:o}=n,{gen:s,compositeRule:u,allErrors:f}=o,p=d(n,r,i);a??(u||f)?c(s,p):l(o,(0,t._)`[${p}]`)}e.reportError=i;function a(t,n=e.keywordError,i){let{it:a}=t,{gen:o,compositeRule:s,allErrors:u}=a;c(o,d(t,n,i)),s||u||l(a,r.default.vErrors)}e.reportExtraError=a;function o(e,n){e.assign(r.default.errors,n),e.if((0,t._)`${r.default.vErrors} !== null`,()=>e.if(n,()=>e.assign((0,t._)`${r.default.vErrors}.length`,n),()=>e.assign(r.default.vErrors,null)))}e.resetErrorsCount=o;function s({gen:e,keyword:n,schemaValue:i,data:a,errsCount:o,it:s}){if(o===void 0)throw Error(`ajv implementation error`);let c=e.name(`err`);e.forRange(`i`,o,r.default.errors,o=>{e.const(c,(0,t._)`${r.default.vErrors}[${o}]`),e.if((0,t._)`${c}.instancePath === undefined`,()=>e.assign((0,t._)`${c}.instancePath`,(0,t.strConcat)(r.default.instancePath,s.errorPath))),e.assign((0,t._)`${c}.schemaPath`,(0,t.str)`${s.errSchemaPath}/${n}`),s.opts.verbose&&(e.assign((0,t._)`${c}.schema`,i),e.assign((0,t._)`${c}.data`,a))})}e.extendErrors=s;function c(e,n){let i=e.const(`err`,n);e.if((0,t._)`${r.default.vErrors} === null`,()=>e.assign(r.default.vErrors,(0,t._)`[${i}]`),(0,t._)`${r.default.vErrors}.push(${i})`),e.code((0,t._)`${r.default.errors}++`)}function l(e,n){let{gen:r,validateName:i,schemaEnv:a}=e;a.$async?r.throw((0,t._)`new ${e.ValidationError}(${n})`):(r.assign((0,t._)`${i}.errors`,n),r.return(!1))}var u={keyword:new t.Name(`keyword`),schemaPath:new t.Name(`schemaPath`),params:new t.Name(`params`),propertyName:new t.Name(`propertyName`),message:new t.Name(`message`),schema:new t.Name(`schema`),parentSchema:new t.Name(`parentSchema`)};function d(e,n,r){let{createErrors:i}=e.it;return i===!1?(0,t._)`{}`:f(e,n,r)}function f(e,t,n={}){let{gen:r,it:i}=e,a=[p(i,n),m(e,n)];return h(e,t,a),r.object(...a)}function p({errorPath:e},{instancePath:i}){let a=i?(0,t.str)`${e}${(0,n.getErrorPath)(i,n.Type.Str)}`:e;return[r.default.instancePath,(0,t.strConcat)(r.default.instancePath,a)]}function m({keyword:e,it:{errSchemaPath:r}},{schemaPath:i,parentSchema:a}){let o=a?r:(0,t.str)`${r}/${e}`;return i&&(o=(0,t.str)`${o}${(0,n.getErrorPath)(i,n.Type.Str)}`),[u.schemaPath,o]}function h(e,{params:n,message:i},a){let{keyword:o,data:s,schemaValue:c,it:l}=e,{opts:d,propertyName:f,topSchemaRef:p,schemaPath:m}=l;a.push([u.keyword,o],[u.params,typeof n==`function`?n(e):n||(0,t._)`{}`]),d.messages&&a.push([u.message,typeof i==`function`?i(e):i]),d.verbose&&a.push([u.schema,c],[u.parentSchema,(0,t._)`${p}${m}`],[r.default.data,s]),f&&a.push([u.propertyName,f])}})),du=r((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.boolOrEmptySchema=e.topBoolOrEmptySchema=void 0;var t=uu(),n=Y(),r=lu(),i={message:`boolean schema is false`};function a(e){let{gen:t,schema:i,validateName:a}=e;i===!1?s(e,!1):typeof i==`object`&&i.$async===!0?t.return(r.default.data):(t.assign((0,n._)`${a}.errors`,null),t.return(!0))}e.topBoolOrEmptySchema=a;function o(e,t){let{gen:n,schema:r}=e;r===!1?(n.var(t,!1),s(e)):n.var(t,!0)}e.boolOrEmptySchema=o;function s(e,n){let{gen:r,data:a}=e,o={gen:r,keyword:`false schema`,data:a,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:e};(0,t.reportError)(o,i,void 0,n)}})),fu=r((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.getRules=e.isJSONType=void 0;var t=new Set([`string`,`number`,`integer`,`boolean`,`null`,`object`,`array`]);function n(e){return typeof e==`string`&&t.has(e)}e.isJSONType=n;function r(){let e={number:{type:`number`,rules:[]},string:{type:`string`,rules:[]},array:{type:`array`,rules:[]},object:{type:`object`,rules:[]}};return{types:{...e,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},e.number,e.string,e.array,e.object],post:{rules:[]},all:{},keywords:{}}}e.getRules=r})),pu=r((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.shouldUseRule=e.shouldUseGroup=e.schemaHasRulesForType=void 0;function t({schema:e,self:t},r){let i=t.RULES.types[r];return i&&i!==!0&&n(e,i)}e.schemaHasRulesForType=t;function n(e,t){return t.rules.some(t=>r(e,t))}e.shouldUseGroup=n;function r(e,t){return e[t.keyword]!==void 0||t.definition.implements?.some(t=>e[t]!==void 0)}e.shouldUseRule=r})),mu=r((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.reportTypeError=e.checkDataTypes=e.checkDataType=e.coerceAndCheckDataType=e.getJSONTypes=e.getSchemaTypes=e.DataType=void 0;var t=fu(),n=pu(),r=uu(),i=Y(),a=X(),o;(function(e){e[e.Correct=0]=`Correct`,e[e.Wrong=1]=`Wrong`})(o||(e.DataType=o={}));function s(e){let t=c(e.type);if(t.includes(`null`)){if(e.nullable===!1)throw Error(`type: null contradicts nullable: false`)}else{if(!t.length&&e.nullable!==void 0)throw Error(`"nullable" cannot be used without "type"`);e.nullable===!0&&t.push(`null`)}return t}e.getSchemaTypes=s;function c(e){let n=Array.isArray(e)?e:e?[e]:[];if(n.every(t.isJSONType))return n;throw Error(`type must be JSONType or JSONType[]: `+n.join(`,`))}e.getJSONTypes=c;function l(e,t){let{gen:r,data:i,opts:a}=e,s=d(t,a.coerceTypes),c=t.length>0&&!(s.length===0&&t.length===1&&(0,n.schemaHasRulesForType)(e,t[0]));if(c){let n=h(t,i,a.strictNumbers,o.Wrong);r.if(n,()=>{s.length?f(e,t,s):_(e)})}return c}e.coerceAndCheckDataType=l;var u=new Set([`string`,`number`,`integer`,`boolean`,`null`]);function d(e,t){return t?e.filter(e=>u.has(e)||t===`array`&&e===`array`):[]}function f(e,t,n){let{gen:r,data:a,opts:o}=e,s=r.let(`dataType`,(0,i._)`typeof ${a}`),c=r.let(`coerced`,(0,i._)`undefined`);o.coerceTypes===`array`&&r.if((0,i._)`${s} == 'object' && Array.isArray(${a}) && ${a}.length == 1`,()=>r.assign(a,(0,i._)`${a}[0]`).assign(s,(0,i._)`typeof ${a}`).if(h(t,a,o.strictNumbers),()=>r.assign(c,a))),r.if((0,i._)`${c} !== undefined`);for(let e of n)(u.has(e)||e===`array`&&o.coerceTypes===`array`)&&l(e);r.else(),_(e),r.endIf(),r.if((0,i._)`${c} !== undefined`,()=>{r.assign(a,c),p(e,c)});function l(e){switch(e){case`string`:r.elseIf((0,i._)`${s} == "number" || ${s} == "boolean"`).assign(c,(0,i._)`"" + ${a}`).elseIf((0,i._)`${a} === null`).assign(c,(0,i._)`""`);return;case`number`:r.elseIf((0,i._)`${s} == "boolean" || ${a} === null + || (${s} == "string" && ${a} && ${a} == +${a})`).assign(c,(0,i._)`+${a}`);return;case`integer`:r.elseIf((0,i._)`${s} === "boolean" || ${a} === null + || (${s} === "string" && ${a} && ${a} == +${a} && !(${a} % 1))`).assign(c,(0,i._)`+${a}`);return;case`boolean`:r.elseIf((0,i._)`${a} === "false" || ${a} === 0 || ${a} === null`).assign(c,!1).elseIf((0,i._)`${a} === "true" || ${a} === 1`).assign(c,!0);return;case`null`:r.elseIf((0,i._)`${a} === "" || ${a} === 0 || ${a} === false`),r.assign(c,null);return;case`array`:r.elseIf((0,i._)`${s} === "string" || ${s} === "number" + || ${s} === "boolean" || ${a} === null`).assign(c,(0,i._)`[${a}]`)}}}function p({gen:e,parentData:t,parentDataProperty:n},r){e.if((0,i._)`${t} !== undefined`,()=>e.assign((0,i._)`${t}[${n}]`,r))}function m(e,t,n,r=o.Correct){let a=r===o.Correct?i.operators.EQ:i.operators.NEQ,s;switch(e){case`null`:return(0,i._)`${t} ${a} null`;case`array`:s=(0,i._)`Array.isArray(${t})`;break;case`object`:s=(0,i._)`${t} && typeof ${t} == "object" && !Array.isArray(${t})`;break;case`integer`:s=c((0,i._)`!(${t} % 1) && !isNaN(${t})`);break;case`number`:s=c();break;default:return(0,i._)`typeof ${t} ${a} ${e}`}return r===o.Correct?s:(0,i.not)(s);function c(e=i.nil){return(0,i.and)((0,i._)`typeof ${t} == "number"`,e,n?(0,i._)`isFinite(${t})`:i.nil)}}e.checkDataType=m;function h(e,t,n,r){if(e.length===1)return m(e[0],t,n,r);let o,s=(0,a.toHash)(e);if(s.array&&s.object){let e=(0,i._)`typeof ${t} != "object"`;o=s.null?e:(0,i._)`!${t} || ${e}`,delete s.null,delete s.array,delete s.object}else o=i.nil;s.number&&delete s.integer;for(let e in s)o=(0,i.and)(o,m(e,t,n,r));return o}e.checkDataTypes=h;var g={message:({schema:e})=>`must be ${e}`,params:({schema:e,schemaValue:t})=>typeof e==`string`?(0,i._)`{type: ${e}}`:(0,i._)`{type: ${t}}`};function _(e){let t=v(e);(0,r.reportError)(t,g)}e.reportTypeError=_;function v(e){let{gen:t,data:n,schema:r}=e,i=(0,a.schemaRefOrVal)(e,r,`type`);return{gen:t,keyword:`type`,data:n,schema:r.type,schemaCode:i,schemaValue:i,parentSchema:r,params:{},it:e}}})),hu=r((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.assignDefaults=void 0;var t=Y(),n=X();function r(e,t){let{properties:n,items:r}=e.schema;if(t===`object`&&n)for(let t in n)i(e,t,n[t].default);else t===`array`&&Array.isArray(r)&&r.forEach((t,n)=>i(e,n,t.default))}e.assignDefaults=r;function i(e,r,i){let{gen:a,compositeRule:o,data:s,opts:c}=e;if(i===void 0)return;let l=(0,t._)`${s}${(0,t.getProperty)(r)}`;if(o){(0,n.checkStrictMode)(e,`default is ignored for: ${l}`);return}let u=(0,t._)`${l} === undefined`;c.useDefaults===`empty`&&(u=(0,t._)`${u} || ${l} === null || ${l} === ""`),a.if(u,(0,t._)`${l} = ${(0,t.stringify)(i)}`)}})),gu=r((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.validateUnion=e.validateArray=e.usePattern=e.callValidateCode=e.schemaProperties=e.allSchemaProperties=e.noPropertyInData=e.propertyInData=e.isOwnProperty=e.hasPropFunc=e.reportMissingProp=e.checkMissingProp=e.checkReportMissingProp=void 0;var t=Y(),n=X(),r=lu(),i=X();function a(e,n){let{gen:r,data:i,it:a}=e;r.if(d(r,i,n,a.opts.ownProperties),()=>{e.setParams({missingProperty:(0,t._)`${n}`},!0),e.error()})}e.checkReportMissingProp=a;function o({gen:e,data:n,it:{opts:r}},i,a){return(0,t.or)(...i.map(i=>(0,t.and)(d(e,n,i,r.ownProperties),(0,t._)`${a} = ${i}`)))}e.checkMissingProp=o;function s(e,t){e.setParams({missingProperty:t},!0),e.error()}e.reportMissingProp=s;function c(e){return e.scopeValue(`func`,{ref:Object.prototype.hasOwnProperty,code:(0,t._)`Object.prototype.hasOwnProperty`})}e.hasPropFunc=c;function l(e,n,r){return(0,t._)`${c(e)}.call(${n}, ${r})`}e.isOwnProperty=l;function u(e,n,r,i){let a=(0,t._)`${n}${(0,t.getProperty)(r)} !== undefined`;return i?(0,t._)`${a} && ${l(e,n,r)}`:a}e.propertyInData=u;function d(e,n,r,i){let a=(0,t._)`${n}${(0,t.getProperty)(r)} === undefined`;return i?(0,t.or)(a,(0,t.not)(l(e,n,r))):a}e.noPropertyInData=d;function f(e){return e?Object.keys(e).filter(e=>e!==`__proto__`):[]}e.allSchemaProperties=f;function p(e,t){return f(t).filter(r=>!(0,n.alwaysValidSchema)(e,t[r]))}e.schemaProperties=p;function m({schemaCode:e,data:n,it:{gen:i,topSchemaRef:a,schemaPath:o,errorPath:s},it:c},l,u,d){let f=d?(0,t._)`${e}, ${n}, ${a}${o}`:n,p=[[r.default.instancePath,(0,t.strConcat)(r.default.instancePath,s)],[r.default.parentData,c.parentData],[r.default.parentDataProperty,c.parentDataProperty],[r.default.rootData,r.default.rootData]];c.opts.dynamicRef&&p.push([r.default.dynamicAnchors,r.default.dynamicAnchors]);let m=(0,t._)`${f}, ${i.object(...p)}`;return u===t.nil?(0,t._)`${l}(${m})`:(0,t._)`${l}.call(${u}, ${m})`}e.callValidateCode=m;var h=(0,t._)`new RegExp`;function g({gen:e,it:{opts:n}},r){let a=n.unicodeRegExp?`u`:``,{regExp:o}=n.code,s=o(r,a);return e.scopeValue(`pattern`,{key:s.toString(),ref:s,code:(0,t._)`${o.code===`new RegExp`?h:(0,i.useFunc)(e,o)}(${r}, ${a})`})}e.usePattern=g;function _(e){let{gen:r,data:i,keyword:a,it:o}=e,s=r.name(`valid`);if(o.allErrors){let e=r.let(`valid`,!0);return c(()=>r.assign(e,!1)),e}return r.var(s,!0),c(()=>r.break()),s;function c(o){let c=r.const(`len`,(0,t._)`${i}.length`);r.forRange(`i`,0,c,i=>{e.subschema({keyword:a,dataProp:i,dataPropType:n.Type.Num},s),r.if((0,t.not)(s),o)})}}e.validateArray=_;function v(e){let{gen:r,schema:i,keyword:a,it:o}=e;if(!Array.isArray(i))throw Error(`ajv implementation error`);if(i.some(e=>(0,n.alwaysValidSchema)(o,e))&&!o.opts.unevaluated)return;let s=r.let(`valid`,!1),c=r.name(`_valid`);r.block(()=>i.forEach((n,i)=>{let o=e.subschema({keyword:a,schemaProp:i,compositeRule:!0},c);r.assign(s,(0,t._)`${s} || ${c}`),e.mergeValidEvaluated(o,c)||r.if((0,t.not)(s))})),e.result(s,()=>e.reset(),()=>e.error(!0))}e.validateUnion=v})),_u=r((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.validateKeywordUsage=e.validSchemaType=e.funcKeywordCode=e.macroKeywordCode=void 0;var t=Y(),n=lu(),r=gu(),i=uu();function a(e,n){let{gen:r,keyword:i,schema:a,parentSchema:o,it:s}=e,c=n.macro.call(s.self,a,o,s),l=u(r,i,c);s.opts.validateSchema!==!1&&s.self.validateSchema(c,!0);let d=r.name(`valid`);e.subschema({schema:c,schemaPath:t.nil,errSchemaPath:`${s.errSchemaPath}/${i}`,topSchemaRef:l,compositeRule:!0},d),e.pass(d,()=>e.error(!0))}e.macroKeywordCode=a;function o(e,i){let{gen:a,keyword:o,schema:d,parentSchema:f,$data:p,it:m}=e;l(m,i);let h=u(a,o,!p&&i.compile?i.compile.call(m.self,d,f,m):i.validate),g=a.let(`valid`);e.block$data(g,_),e.ok(i.valid??g);function _(){if(i.errors===!1)b(),i.modifying&&s(e),x(()=>e.error());else{let t=i.async?v():y();i.modifying&&s(e),x(()=>c(e,t))}}function v(){let e=a.let(`ruleErrs`,null);return a.try(()=>b((0,t._)`await `),n=>a.assign(g,!1).if((0,t._)`${n} instanceof ${m.ValidationError}`,()=>a.assign(e,(0,t._)`${n}.errors`),()=>a.throw(n))),e}function y(){let e=(0,t._)`${h}.errors`;return a.assign(e,null),b(t.nil),e}function b(o=i.async?(0,t._)`await `:t.nil){let s=m.opts.passContext?n.default.this:n.default.self,c=!(`compile`in i&&!p||i.schema===!1);a.assign(g,(0,t._)`${o}${(0,r.callValidateCode)(e,h,s,c)}`,i.modifying)}function x(e){a.if((0,t.not)(i.valid??g),e)}}e.funcKeywordCode=o;function s(e){let{gen:n,data:r,it:i}=e;n.if(i.parentData,()=>n.assign(r,(0,t._)`${i.parentData}[${i.parentDataProperty}]`))}function c(e,r){let{gen:a}=e;a.if((0,t._)`Array.isArray(${r})`,()=>{a.assign(n.default.vErrors,(0,t._)`${n.default.vErrors} === null ? ${r} : ${n.default.vErrors}.concat(${r})`).assign(n.default.errors,(0,t._)`${n.default.vErrors}.length`),(0,i.extendErrors)(e)},()=>e.error())}function l({schemaEnv:e},t){if(t.async&&!e.$async)throw Error(`async keyword in sync schema`)}function u(e,n,r){if(r===void 0)throw Error(`keyword "${n}" failed to compile`);return e.scopeValue(`keyword`,typeof r==`function`?{ref:r}:{ref:r,code:(0,t.stringify)(r)})}function d(e,t,n=!1){return!t.length||t.some(t=>t===`array`?Array.isArray(e):t===`object`?e&&typeof e==`object`&&!Array.isArray(e):typeof e==t||n&&e===void 0)}e.validSchemaType=d;function f({schema:e,opts:t,self:n,errSchemaPath:r},i,a){if(Array.isArray(i.keyword)?!i.keyword.includes(a):i.keyword!==a)throw Error(`ajv implementation error`);let o=i.dependencies;if(o?.some(t=>!Object.prototype.hasOwnProperty.call(e,t)))throw Error(`parent schema must have dependencies of ${a}: ${o.join(`,`)}`);if(i.validateSchema&&!i.validateSchema(e[a])){let e=`keyword "${a}" value is invalid at path "${r}": `+n.errorsText(i.validateSchema.errors);if(t.validateSchema===`log`)n.logger.error(e);else throw Error(e)}}e.validateKeywordUsage=f})),vu=r((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.extendSubschemaMode=e.extendSubschemaData=e.getSubschema=void 0;var t=Y(),n=X();function r(e,{keyword:r,schemaProp:i,schema:a,schemaPath:o,errSchemaPath:s,topSchemaRef:c}){if(r!==void 0&&a!==void 0)throw Error(`both "keyword" and "schema" passed, only one allowed`);if(r!==void 0){let a=e.schema[r];return i===void 0?{schema:a,schemaPath:(0,t._)`${e.schemaPath}${(0,t.getProperty)(r)}`,errSchemaPath:`${e.errSchemaPath}/${r}`}:{schema:a[i],schemaPath:(0,t._)`${e.schemaPath}${(0,t.getProperty)(r)}${(0,t.getProperty)(i)}`,errSchemaPath:`${e.errSchemaPath}/${r}/${(0,n.escapeFragment)(i)}`}}if(a!==void 0){if(o===void 0||s===void 0||c===void 0)throw Error(`"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"`);return{schema:a,schemaPath:o,topSchemaRef:c,errSchemaPath:s}}throw Error(`either "keyword" or "schema" must be passed`)}e.getSubschema=r;function i(e,r,{dataProp:i,dataPropType:a,data:o,dataTypes:s,propertyName:c}){if(o!==void 0&&i!==void 0)throw Error(`both "data" and "dataProp" passed, only one allowed`);let{gen:l}=r;if(i!==void 0){let{errorPath:o,dataPathArr:s,opts:c}=r;u(l.let(`data`,(0,t._)`${r.data}${(0,t.getProperty)(i)}`,!0)),e.errorPath=(0,t.str)`${o}${(0,n.getErrorPath)(i,a,c.jsPropertySyntax)}`,e.parentDataProperty=(0,t._)`${i}`,e.dataPathArr=[...s,e.parentDataProperty]}o!==void 0&&(u(o instanceof t.Name?o:l.let(`data`,o,!0)),c!==void 0&&(e.propertyName=c)),s&&(e.dataTypes=s);function u(t){e.data=t,e.dataLevel=r.dataLevel+1,e.dataTypes=[],r.definedProperties=new Set,e.parentData=r.data,e.dataNames=[...r.dataNames,t]}}e.extendSubschemaData=i;function a(e,{jtdDiscriminator:t,jtdMetadata:n,compositeRule:r,createErrors:i,allErrors:a}){r!==void 0&&(e.compositeRule=r),i!==void 0&&(e.createErrors=i),a!==void 0&&(e.allErrors=a),e.jtdDiscriminator=t,e.jtdMetadata=n}e.extendSubschemaMode=a})),yu=r(((e,t)=>{t.exports=function e(t,n){if(t===n)return!0;if(t&&n&&typeof t==`object`&&typeof n==`object`){if(t.constructor!==n.constructor)return!1;var r,i,a;if(Array.isArray(t)){if(r=t.length,r!=n.length)return!1;for(i=r;i--!==0;)if(!e(t[i],n[i]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if(a=Object.keys(t),r=a.length,r!==Object.keys(n).length)return!1;for(i=r;i--!==0;)if(!Object.prototype.hasOwnProperty.call(n,a[i]))return!1;for(i=r;i--!==0;){var o=a[i];if(!e(t[o],n[o]))return!1}return!0}return t!==t&&n!==n}})),bu=r(((e,t)=>{var n=t.exports=function(e,t,n){typeof t==`function`&&(n=t,t={}),n=t.cb||n;var i=typeof n==`function`?n:n.pre||function(){},a=n.post||function(){};r(t,i,a,e,``,e)};n.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0},n.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0},n.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0},n.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0};function r(e,t,a,o,s,c,l,u,d,f){if(o&&typeof o==`object`&&!Array.isArray(o)){for(var p in t(o,s,c,l,u,d,f),o){var m=o[p];if(Array.isArray(m)){if(p in n.arrayKeywords)for(var h=0;h{Object.defineProperty(e,"__esModule",{value:!0}),e.getSchemaRefs=e.resolveUrl=e.normalizeId=e._getFullPath=e.getFullPath=e.inlineRef=void 0;var t=X(),n=yu(),r=bu(),i=new Set([`type`,`format`,`pattern`,`maxLength`,`minLength`,`maxProperties`,`minProperties`,`maxItems`,`minItems`,`maximum`,`minimum`,`uniqueItems`,`multipleOf`,`required`,`enum`,`const`]);function a(e,t=!0){return typeof e==`boolean`?!0:t===!0?!s(e):t?c(e)<=t:!1}e.inlineRef=a;var o=new Set([`$ref`,`$recursiveRef`,`$recursiveAnchor`,`$dynamicRef`,`$dynamicAnchor`]);function s(e){for(let t in e){if(o.has(t))return!0;let n=e[t];if(Array.isArray(n)&&n.some(s)||typeof n==`object`&&s(n))return!0}return!1}function c(e){let n=0;for(let r in e)if(r===`$ref`||(n++,!i.has(r)&&(typeof e[r]==`object`&&(0,t.eachItem)(e[r],e=>n+=c(e)),n===1/0)))return 1/0;return n}function l(e,t=``,n){return n!==!1&&(t=f(t)),u(e,e.parse(t))}e.getFullPath=l;function u(e,t){return e.serialize(t).split(`#`)[0]+`#`}e._getFullPath=u;var d=/#\/?$/;function f(e){return e?e.replace(d,``):``}e.normalizeId=f;function p(e,t,n){return n=f(n),e.resolve(t,n)}e.resolveUrl=p;var m=/^[a-z_][-a-z0-9._]*$/i;function h(e,t){if(typeof e==`boolean`)return{};let{schemaId:i,uriResolver:a}=this.opts,o=f(e[i]||t),s={"":o},c=l(a,o,!1),u={},d=new Set;return r(e,{allKeys:!0},(e,t,n,r)=>{if(r===void 0)return;let a=c+t,o=s[r];typeof e[i]==`string`&&(o=l.call(this,e[i])),g.call(this,e.$anchor),g.call(this,e.$dynamicAnchor),s[t]=o;function l(t){let n=this.opts.uriResolver.resolve;if(t=f(o?n(o,t):t),d.has(t))throw h(t);d.add(t);let r=this.refs[t];return typeof r==`string`&&(r=this.refs[r]),typeof r==`object`?p(e,r.schema,t):t!==f(a)&&(t[0]===`#`?(p(e,u[t],t),u[t]=e):this.refs[t]=a),t}function g(e){if(typeof e==`string`){if(!m.test(e))throw Error(`invalid anchor "${e}"`);l.call(this,`#${e}`)}}}),u;function p(e,t,r){if(t!==void 0&&!n(e,t))throw h(r)}function h(e){return Error(`reference "${e}" resolves to more than one schema`)}}e.getSchemaRefs=h})),Su=r((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.getData=e.KeywordCxt=e.validateFunctionCode=void 0;var t=du(),n=mu(),r=pu(),i=mu(),a=hu(),o=_u(),s=vu(),c=Y(),l=lu(),u=xu(),d=X(),f=uu();function p(e){if(S(e)&&(ee(e),x(e))){_(e);return}m(e,()=>(0,t.topBoolOrEmptySchema)(e))}e.validateFunctionCode=p;function m({gen:e,validateName:t,schema:n,schemaEnv:r,opts:i},a){i.code.es5?e.func(t,(0,c._)`${l.default.data}, ${l.default.valCxt}`,r.$async,()=>{e.code((0,c._)`"use strict"; ${y(n,i)}`),g(e,i),e.code(a)}):e.func(t,(0,c._)`${l.default.data}, ${h(i)}`,r.$async,()=>e.code(y(n,i)).code(a))}function h(e){return(0,c._)`{${l.default.instancePath}="", ${l.default.parentData}, ${l.default.parentDataProperty}, ${l.default.rootData}=${l.default.data}${e.dynamicRef?(0,c._)`, ${l.default.dynamicAnchors}={}`:c.nil}}={}`}function g(e,t){e.if(l.default.valCxt,()=>{e.var(l.default.instancePath,(0,c._)`${l.default.valCxt}.${l.default.instancePath}`),e.var(l.default.parentData,(0,c._)`${l.default.valCxt}.${l.default.parentData}`),e.var(l.default.parentDataProperty,(0,c._)`${l.default.valCxt}.${l.default.parentDataProperty}`),e.var(l.default.rootData,(0,c._)`${l.default.valCxt}.${l.default.rootData}`),t.dynamicRef&&e.var(l.default.dynamicAnchors,(0,c._)`${l.default.valCxt}.${l.default.dynamicAnchors}`)},()=>{e.var(l.default.instancePath,(0,c._)`""`),e.var(l.default.parentData,(0,c._)`undefined`),e.var(l.default.parentDataProperty,(0,c._)`undefined`),e.var(l.default.rootData,l.default.data),t.dynamicRef&&e.var(l.default.dynamicAnchors,(0,c._)`{}`)})}function _(e){let{schema:t,opts:n,gen:r}=e;m(e,()=>{n.$comment&&t.$comment&&ae(e),re(e),r.let(l.default.vErrors,null),r.let(l.default.errors,0),n.unevaluated&&v(e),te(e),oe(e)})}function v(e){let{gen:t,validateName:n}=e;e.evaluated=t.const(`evaluated`,(0,c._)`${n}.evaluated`),t.if((0,c._)`${e.evaluated}.dynamicProps`,()=>t.assign((0,c._)`${e.evaluated}.props`,(0,c._)`undefined`)),t.if((0,c._)`${e.evaluated}.dynamicItems`,()=>t.assign((0,c._)`${e.evaluated}.items`,(0,c._)`undefined`))}function y(e,t){let n=typeof e==`object`&&e[t.schemaId];return n&&(t.code.source||t.code.process)?(0,c._)`/*# sourceURL=${n} */`:c.nil}function b(e,n){if(S(e)&&(ee(e),x(e))){C(e,n);return}(0,t.boolOrEmptySchema)(e,n)}function x({schema:e,self:t}){if(typeof e==`boolean`)return!e;for(let n in e)if(t.RULES.all[n])return!0;return!1}function S(e){return typeof e.schema!=`boolean`}function C(e,t){let{schema:n,gen:r,opts:i}=e;i.$comment&&n.$comment&&ae(e),ie(e),w(e);let a=r.const(`_errs`,l.default.errors);te(e,a),r.var(t,(0,c._)`${a} === ${l.default.errors}`)}function ee(e){(0,d.checkUnknownRules)(e),ne(e)}function te(e,t){if(e.opts.jtd)return ce(e,[],!1,t);let r=(0,n.getSchemaTypes)(e.schema);ce(e,r,!(0,n.coerceAndCheckDataType)(e,r),t)}function ne(e){let{schema:t,errSchemaPath:n,opts:r,self:i}=e;t.$ref&&r.ignoreKeywordsWithRef&&(0,d.schemaHasRulesButRef)(t,i.RULES)&&i.logger.warn(`$ref: keywords ignored in schema at path "${n}"`)}function re(e){let{schema:t,opts:n}=e;t.default!==void 0&&n.useDefaults&&n.strictSchema&&(0,d.checkStrictMode)(e,`default is ignored in the schema root`)}function ie(e){let t=e.schema[e.opts.schemaId];t&&(e.baseId=(0,u.resolveUrl)(e.opts.uriResolver,e.baseId,t))}function w(e){if(e.schema.$async&&!e.schemaEnv.$async)throw Error(`async schema in sync schema`)}function ae({gen:e,schemaEnv:t,schema:n,errSchemaPath:r,opts:i}){let a=n.$comment;if(i.$comment===!0)e.code((0,c._)`${l.default.self}.logger.log(${a})`);else if(typeof i.$comment==`function`){let n=(0,c.str)`${r}/$comment`,i=e.scopeValue(`root`,{ref:t.root});e.code((0,c._)`${l.default.self}.opts.$comment(${a}, ${n}, ${i}.schema)`)}}function oe(e){let{gen:t,schemaEnv:n,validateName:r,ValidationError:i,opts:a}=e;n.$async?t.if((0,c._)`${l.default.errors} === 0`,()=>t.return(l.default.data),()=>t.throw((0,c._)`new ${i}(${l.default.vErrors})`)):(t.assign((0,c._)`${r}.errors`,l.default.vErrors),a.unevaluated&&se(e),t.return((0,c._)`${l.default.errors} === 0`))}function se({gen:e,evaluated:t,props:n,items:r}){n instanceof c.Name&&e.assign((0,c._)`${t}.props`,n),r instanceof c.Name&&e.assign((0,c._)`${t}.items`,r)}function ce(e,t,n,a){let{gen:o,schema:s,data:u,allErrors:f,opts:p,self:m}=e,{RULES:h}=m;if(s.$ref&&(p.ignoreKeywordsWithRef||!(0,d.schemaHasRulesButRef)(s,h))){o.block(()=>ve(e,`$ref`,h.all.$ref.definition));return}p.jtd||ue(e,t),o.block(()=>{for(let e of h.rules)g(e);g(h.post)});function g(d){(0,r.shouldUseGroup)(s,d)&&(d.type?(o.if((0,i.checkDataType)(d.type,u,p.strictNumbers)),le(e,d),t.length===1&&t[0]===d.type&&n&&(o.else(),(0,i.reportTypeError)(e)),o.endIf()):le(e,d),f||o.if((0,c._)`${l.default.errors} === ${a||0}`))}}function le(e,t){let{gen:n,schema:i,opts:{useDefaults:o}}=e;o&&(0,a.assignDefaults)(e,t.type),n.block(()=>{for(let n of t.rules)(0,r.shouldUseRule)(i,n)&&ve(e,n.keyword,n.definition,t.type)})}function ue(e,t){e.schemaEnv.meta||!e.opts.strictTypes||(de(e,t),e.opts.allowUnionTypes||fe(e,t),pe(e,e.dataTypes))}function de(e,t){if(t.length){if(!e.dataTypes.length){e.dataTypes=t;return}t.forEach(t=>{he(e.dataTypes,t)||T(e,`type "${t}" not allowed by context "${e.dataTypes.join(`,`)}"`)}),ge(e,t)}}function fe(e,t){t.length>1&&!(t.length===2&&t.includes(`null`))&&T(e,`use allowUnionTypes to allow union type keyword`)}function pe(e,t){let n=e.self.RULES.all;for(let i in n){let a=n[i];if(typeof a==`object`&&(0,r.shouldUseRule)(e.schema,a)){let{type:n}=a.definition;n.length&&!n.some(e=>me(t,e))&&T(e,`missing type "${n.join(`,`)}" for keyword "${i}"`)}}}function me(e,t){return e.includes(t)||t===`number`&&e.includes(`integer`)}function he(e,t){return e.includes(t)||t===`integer`&&e.includes(`number`)}function ge(e,t){let n=[];for(let r of e.dataTypes)he(t,r)?n.push(r):t.includes(`integer`)&&r===`number`&&n.push(`integer`);e.dataTypes=n}function T(e,t){let n=e.schemaEnv.baseId+e.errSchemaPath;t+=` at "${n}" (strictTypes)`,(0,d.checkStrictMode)(e,t,e.opts.strictTypes)}var _e=class{constructor(e,t,n){if((0,o.validateKeywordUsage)(e,t,n),this.gen=e.gen,this.allErrors=e.allErrors,this.keyword=n,this.data=e.data,this.schema=e.schema[n],this.$data=t.$data&&e.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,d.schemaRefOrVal)(e,this.schema,n,this.$data),this.schemaType=t.schemaType,this.parentSchema=e.schema,this.params={},this.it=e,this.def=t,this.$data)this.schemaCode=e.gen.const(`vSchema`,xe(this.$data,e));else if(this.schemaCode=this.schemaValue,!(0,o.validSchemaType)(this.schema,t.schemaType,t.allowUndefined))throw Error(`${n} value must be ${JSON.stringify(t.schemaType)}`);(`code`in t?t.trackErrors:t.errors!==!1)&&(this.errsCount=e.gen.const(`_errs`,l.default.errors))}result(e,t,n){this.failResult((0,c.not)(e),t,n)}failResult(e,t,n){this.gen.if(e),n?n():this.error(),t?(this.gen.else(),t(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(e,t){this.failResult((0,c.not)(e),void 0,t)}fail(e){if(e===void 0){this.error(),this.allErrors||this.gen.if(!1);return}this.gen.if(e),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(e){if(!this.$data)return this.fail(e);let{schemaCode:t}=this;this.fail((0,c._)`${t} !== undefined && (${(0,c.or)(this.invalid$data(),e)})`)}error(e,t,n){if(t){this.setParams(t),this._error(e,n),this.setParams({});return}this._error(e,n)}_error(e,t){(e?f.reportExtraError:f.reportError)(this,this.def.error,t)}$dataError(){(0,f.reportError)(this,this.def.$dataError||f.keyword$DataError)}reset(){if(this.errsCount===void 0)throw Error(`add "trackErrors" to keyword definition`);(0,f.resetErrorsCount)(this.gen,this.errsCount)}ok(e){this.allErrors||this.gen.if(e)}setParams(e,t){t?Object.assign(this.params,e):this.params=e}block$data(e,t,n=c.nil){this.gen.block(()=>{this.check$data(e,n),t()})}check$data(e=c.nil,t=c.nil){if(!this.$data)return;let{gen:n,schemaCode:r,schemaType:i,def:a}=this;n.if((0,c.or)((0,c._)`${r} === undefined`,t)),e!==c.nil&&n.assign(e,!0),(i.length||a.validateSchema)&&(n.elseIf(this.invalid$data()),this.$dataError(),e!==c.nil&&n.assign(e,!1)),n.else()}invalid$data(){let{gen:e,schemaCode:t,schemaType:n,def:r,it:a}=this;return(0,c.or)(o(),s());function o(){if(n.length){if(!(t instanceof c.Name))throw Error(`ajv implementation error`);let e=Array.isArray(n)?n:[n];return(0,c._)`${(0,i.checkDataTypes)(e,t,a.opts.strictNumbers,i.DataType.Wrong)}`}return c.nil}function s(){if(r.validateSchema){let n=e.scopeValue(`validate$data`,{ref:r.validateSchema});return(0,c._)`!${n}(${t})`}return c.nil}}subschema(e,t){let n=(0,s.getSubschema)(this.it,e);(0,s.extendSubschemaData)(n,this.it,e),(0,s.extendSubschemaMode)(n,e);let r={...this.it,...n,items:void 0,props:void 0};return b(r,t),r}mergeEvaluated(e,t){let{it:n,gen:r}=this;n.opts.unevaluated&&(n.props!==!0&&e.props!==void 0&&(n.props=d.mergeEvaluated.props(r,e.props,n.props,t)),n.items!==!0&&e.items!==void 0&&(n.items=d.mergeEvaluated.items(r,e.items,n.items,t)))}mergeValidEvaluated(e,t){let{it:n,gen:r}=this;if(n.opts.unevaluated&&(n.props!==!0||n.items!==!0))return r.if(t,()=>this.mergeEvaluated(e,c.Name)),!0}};e.KeywordCxt=_e;function ve(e,t,n,r){let i=new _e(e,n,t);`code`in n?n.code(i,r):i.$data&&n.validate?(0,o.funcKeywordCode)(i,n):`macro`in n?(0,o.macroKeywordCode)(i,n):(n.compile||n.validate)&&(0,o.funcKeywordCode)(i,n)}var ye=/^\/(?:[^~]|~0|~1)*$/,be=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function xe(e,{dataLevel:t,dataNames:n,dataPathArr:r}){let i,a;if(e===``)return l.default.rootData;if(e[0]===`/`){if(!ye.test(e))throw Error(`Invalid JSON-pointer: ${e}`);i=e,a=l.default.rootData}else{let o=be.exec(e);if(!o)throw Error(`Invalid JSON-pointer: ${e}`);let s=+o[1];if(i=o[2],i===`#`){if(s>=t)throw Error(u(`property/index`,s));return r[t-s]}if(s>t)throw Error(u(`data`,s));if(a=n[t-s],!i)return a}let o=a,s=i.split(`/`);for(let e of s)e&&(a=(0,c._)`${a}${(0,c.getProperty)((0,d.unescapeJsonPointer)(e))}`,o=(0,c._)`${o} && ${a}`);return o;function u(e,n){return`Cannot access ${e} ${n} levels up, current level is ${t}`}}e.getData=xe})),Cu=r((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=class extends Error{constructor(e){super(`validation failed`),this.errors=e,this.ajv=this.validation=!0}}})),wu=r((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=xu();e.default=class extends Error{constructor(e,n,r,i){super(i||`can't resolve reference ${r} from id ${n}`),this.missingRef=(0,t.resolveUrl)(e,n,r),this.missingSchema=(0,t.normalizeId)((0,t.getFullPath)(e,this.missingRef))}}})),Tu=r((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.resolveSchema=e.getCompilingSchema=e.resolveRef=e.compileSchema=e.SchemaEnv=void 0;var t=Y(),n=Cu(),r=lu(),i=xu(),a=X(),o=Su(),s=class{constructor(e){this.refs={},this.dynamicAnchors={};let t;typeof e.schema==`object`&&(t=e.schema),this.schema=e.schema,this.schemaId=e.schemaId,this.root=e.root||this,this.baseId=e.baseId??(0,i.normalizeId)(t?.[e.schemaId||`$id`]),this.schemaPath=e.schemaPath,this.localRefs=e.localRefs,this.meta=e.meta,this.$async=t?.$async,this.refs={}}};e.SchemaEnv=s;function c(e){let a=d.call(this,e);if(a)return a;let s=(0,i.getFullPath)(this.opts.uriResolver,e.root.baseId),{es5:c,lines:l}=this.opts.code,{ownProperties:u}=this.opts,f=new t.CodeGen(this.scope,{es5:c,lines:l,ownProperties:u}),p;e.$async&&(p=f.scopeValue(`Error`,{ref:n.default,code:(0,t._)`require("ajv/dist/runtime/validation_error").default`}));let m=f.scopeName(`validate`);e.validateName=m;let h={gen:f,allErrors:this.opts.allErrors,data:r.default.data,parentData:r.default.parentData,parentDataProperty:r.default.parentDataProperty,dataNames:[r.default.data],dataPathArr:[t.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:f.scopeValue(`schema`,this.opts.code.source===!0?{ref:e.schema,code:(0,t.stringify)(e.schema)}:{ref:e.schema}),validateName:m,ValidationError:p,schema:e.schema,schemaEnv:e,rootId:s,baseId:e.baseId||s,schemaPath:t.nil,errSchemaPath:e.schemaPath||(this.opts.jtd?``:`#`),errorPath:(0,t._)`""`,opts:this.opts,self:this},g;try{this._compilations.add(e),(0,o.validateFunctionCode)(h),f.optimize(this.opts.code.optimize);let n=f.toString();g=`${f.scopeRefs(r.default.scope)}return ${n}`,this.opts.code.process&&(g=this.opts.code.process(g,e));let i=Function(`${r.default.self}`,`${r.default.scope}`,g)(this,this.scope.get());if(this.scope.value(m,{ref:i}),i.errors=null,i.schema=e.schema,i.schemaEnv=e,e.$async&&(i.$async=!0),this.opts.code.source===!0&&(i.source={validateName:m,validateCode:n,scopeValues:f._values}),this.opts.unevaluated){let{props:e,items:n}=h;i.evaluated={props:e instanceof t.Name?void 0:e,items:n instanceof t.Name?void 0:n,dynamicProps:e instanceof t.Name,dynamicItems:n instanceof t.Name},i.source&&(i.source.evaluated=(0,t.stringify)(i.evaluated))}return e.validate=i,e}catch(t){throw delete e.validate,delete e.validateName,g&&this.logger.error(`Error compiling schema, function code:`,g),t}finally{this._compilations.delete(e)}}e.compileSchema=c;function l(e,t,n){n=(0,i.resolveUrl)(this.opts.uriResolver,t,n);let r=e.refs[n];if(r)return r;let a=p.call(this,e,n);if(a===void 0){let r=e.localRefs?.[n],{schemaId:i}=this.opts;r&&(a=new s({schema:r,schemaId:i,root:e,baseId:t}))}if(a!==void 0)return e.refs[n]=u.call(this,a)}e.resolveRef=l;function u(e){return(0,i.inlineRef)(e.schema,this.opts.inlineRefs)?e.schema:e.validate?e:c.call(this,e)}function d(e){for(let t of this._compilations)if(f(t,e))return t}e.getCompilingSchema=d;function f(e,t){return e.schema===t.schema&&e.root===t.root&&e.baseId===t.baseId}function p(e,t){let n;for(;typeof(n=this.refs[t])==`string`;)t=n;return n||this.schemas[t]||m.call(this,e,t)}function m(e,t){let n=this.opts.uriResolver.parse(t),r=(0,i._getFullPath)(this.opts.uriResolver,n),a=(0,i.getFullPath)(this.opts.uriResolver,e.baseId,void 0);if(Object.keys(e.schema).length>0&&r===a)return g.call(this,n,e);let o=(0,i.normalizeId)(r),l=this.refs[o]||this.schemas[o];if(typeof l==`string`){let t=m.call(this,e,l);return typeof t?.schema==`object`?g.call(this,n,t):void 0}if(typeof l?.schema==`object`){if(l.validate||c.call(this,l),o===(0,i.normalizeId)(t)){let{schema:t}=l,{schemaId:n}=this.opts,r=t[n];return r&&(a=(0,i.resolveUrl)(this.opts.uriResolver,a,r)),new s({schema:t,schemaId:n,root:e,baseId:a})}return g.call(this,n,l)}}e.resolveSchema=m;var h=new Set([`properties`,`patternProperties`,`enum`,`dependencies`,`definitions`]);function g(e,{baseId:t,schema:n,root:r}){if(e.fragment?.[0]!==`/`)return;for(let r of e.fragment.slice(1).split(`/`)){if(typeof n==`boolean`)return;let e=n[(0,a.unescapeFragment)(r)];if(e===void 0)return;n=e;let o=typeof n==`object`&&n[this.opts.schemaId];!h.has(r)&&o&&(t=(0,i.resolveUrl)(this.opts.uriResolver,t,o))}let o;if(typeof n!=`boolean`&&n.$ref&&!(0,a.schemaHasRulesButRef)(n,this.RULES)){let e=(0,i.resolveUrl)(this.opts.uriResolver,t,n.$ref);o=m.call(this,r,e)}let{schemaId:c}=this.opts;if(o||=new s({schema:n,schemaId:c,root:r,baseId:t}),o.schema!==o.root.schema)return o}})),Eu=o({$id:()=>Du,additionalProperties:()=>!1,default:()=>Mu,description:()=>Ou,properties:()=>ju,required:()=>Au,type:()=>ku}),Du,Ou,ku,Au,ju,Mu,Nu=s((()=>{Du=`https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#`,Ou=`Meta-schema for $data reference (JSON AnySchema extension proposal)`,ku=`object`,Au=[`$data`],ju={$data:{type:`string`,anyOf:[{format:`relative-json-pointer`},{format:`json-pointer`}]}},Mu={$id:Du,description:Ou,type:ku,required:Au,properties:ju,additionalProperties:!1}})),Pu=r(((e,t)=>{var n=RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu),r=RegExp.prototype.test.bind(/^(?:(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)$/u),i=RegExp.prototype.test.bind(/^[\da-f]{2}$/iu),a=RegExp.prototype.test.bind(/^[\da-z\-._~]$/iu),o=RegExp.prototype.test.bind(/^[\da-z\-._~!$&'()*+,;=:@/]$/iu);function s(e){let t=``,n=0,r=0;for(r=0;r=48&&n<=57||n>=65&&n<=70||n>=97&&n<=102))return``;t+=e[r];break}for(r+=1;r=48&&n<=57||n>=65&&n<=70||n>=97&&n<=102))return``;t+=e[r]}return t}var c=RegExp.prototype.test.bind(/[^!"$&'()*+,\-.;=_`a-z{}~]/u);function l(e){return e.length=0,!0}function u(e,t,n){if(e.length){let r=s(e);if(r!==``)t.push(r);else return n.error=!0,!1;e.length=0}return!0}function d(e){let t=0,n={error:!1,address:``,zone:``},r=[],i=[],a=!1,o=!1,c=u;for(let s=0;s7){n.error=!0;break}s>0&&e[s-1]===`:`&&(a=!0),r.push(`:`);continue}if(u===`%`){if(!c(i,r,n))break;c=l}else{i.push(u);continue}}}return i.length&&(c===l?n.zone=i.join(``):o?r.push(i.join(``)):r.push(s(i))),n.address=r.join(``),n}function f(e){if(p(e,`:`)<2)return{host:e,isIPV6:!1};let t=d(e);if(t.error)return{host:e,isIPV6:!1};{let e=t.address,n=t.address;return t.zone&&(e+=`%`+t.zone,n+=`%25`+t.zone),{host:e,isIPV6:!0,escapedHost:n}}}function p(e,t){let n=0;for(let r=0;rh[e])}function y(e,t=!1){if(e.indexOf(`%`)===-1)return e;let n=``;for(let r=0;r{var{isUUID:n}=Pu(),r=/([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu,i=[`http`,`https`,`ws`,`wss`,`urn`,`urn:uuid`];function a(e){return i.indexOf(e)!==-1}function o(e){return e.secure===!0?!0:e.secure===!1?!1:e.scheme?e.scheme.length===3&&(e.scheme[0]===`w`||e.scheme[0]===`W`)&&(e.scheme[1]===`s`||e.scheme[1]===`S`)&&(e.scheme[2]===`s`||e.scheme[2]===`S`):!1}function s(e){return e.host||(e.error=e.error||`HTTP URIs must have a host.`),e}function c(e){let t=String(e.scheme).toLowerCase()===`https`;return(e.port===(t?443:80)||e.port===``)&&(e.port=void 0),e.path||=`/`,e}function l(e){return e.secure=o(e),e.resourceName=(e.path||`/`)+(e.query?`?`+e.query:``),e.path=void 0,e.query=void 0,e}function u(e){if((e.port===(o(e)?443:80)||e.port===``)&&(e.port=void 0),typeof e.secure==`boolean`&&(e.scheme=e.secure?`wss`:`ws`,e.secure=void 0),e.resourceName){let[t,n]=e.resourceName.split(`?`);e.path=t&&t!==`/`?t:void 0,e.query=n,e.resourceName=void 0}return e.fragment=void 0,e}function d(e,t){if(!e.path)return e.error=`URN can not be parsed`,e;let n=e.path.match(r);if(n){let r=t.scheme||e.scheme||`urn`;e.nid=n[1].toLowerCase(),e.nss=n[2];let i=y(`${r}:${t.nid||e.nid}`);e.path=void 0,i&&(e=i.parse(e,t))}else e.error=e.error||`URN can not be parsed.`;return e}function f(e,t){if(e.nid===void 0)throw Error(`URN without nid cannot be serialized`);let n=t.scheme||e.scheme||`urn`,r=e.nid.toLowerCase(),i=y(`${n}:${t.nid||r}`);i&&(e=i.serialize(e,t));let a=e,o=e.nss;return a.path=`${r||t.nid}:${o}`,t.skipEscape=!0,a}function p(e,t){let r=e;return r.uuid=r.nss,r.nss=void 0,!t.tolerant&&(!r.uuid||!n(r.uuid))&&(r.error=r.error||`UUID is not valid.`),r}function m(e){let t=e;return t.nss=(e.uuid||``).toLowerCase(),t}var h={scheme:`http`,domainHost:!0,parse:s,serialize:c},g={scheme:`https`,domainHost:h.domainHost,parse:s,serialize:c},_={scheme:`ws`,domainHost:!0,parse:l,serialize:u},v={http:h,https:g,ws:_,wss:{scheme:`wss`,domainHost:_.domainHost,parse:_.parse,serialize:_.serialize},urn:{scheme:`urn`,parse:d,serialize:f,skipNormalize:!0},"urn:uuid":{scheme:`urn:uuid`,parse:p,serialize:m,skipNormalize:!0}};Object.setPrototypeOf(v,null);function y(e){return e&&(v[e]||v[e.toLowerCase()])||void 0}t.exports={wsIsSecure:o,SCHEMES:v,isValidSchemeName:a,getSchemeHandler:y}})),Iu=r(((e,t)=>{var{normalizeIPv6:n,removeDotSegments:r,recomposeAuthority:i,normalizePercentEncoding:a,normalizePathEncoding:o,escapePreservingEscapes:s,reescapeHostDelimiters:c,isIPv4:l,nonSimpleDomain:u}=Pu(),{SCHEMES:d,getSchemeHandler:f}=Fu();function p(e,t){return typeof e==`string`?e=ee(e,t):typeof e==`object`&&(e=C(_(e,t),t)),e}function m(e,t,n){let r=n?Object.assign({scheme:`null`},n):{scheme:`null`},{parsed:i,malformedAuthorityOrPort:a}=S(e,r),{parsed:o,malformedAuthorityOrPort:s}=S(t,r);if(a||s)throw Error(i.error||o.error||`URI is malformed.`);let c=h(i,o,r,!0);return r.skipEscape=!0,_(c,r)}function h(e,t,n,i){let a={};return i||(e=C(_(e,n),n),t=C(_(t,n),n)),n||={},!n.tolerant&&t.scheme?(a.scheme=t.scheme,a.userinfo=t.userinfo,a.host=t.host,a.port=t.port,a.path=r(t.path||``),a.query=t.query):(t.userinfo!==void 0||t.host!==void 0||t.port!==void 0?(a.userinfo=t.userinfo,a.host=t.host,a.port=t.port,a.path=r(t.path||``),a.query=t.query):(t.path?(t.path[0]===`/`?a.path=r(t.path):(a.path=(e.userinfo!==void 0||e.host!==void 0||e.port!==void 0)&&!e.path?`/`+t.path:e.path?e.path.slice(0,e.path.lastIndexOf(`/`)+1)+t.path:t.path,a.path=r(a.path)),a.query=t.query):(a.path=e.path,a.query=t.query===void 0?e.query:t.query),a.userinfo=e.userinfo,a.host=e.host,a.port=e.port),a.scheme=e.scheme),a.fragment=t.fragment,a}function g(e,t,n){let r=ne(e,n),i=ne(t,n);return r!==void 0&&i!==void 0&&r.toLowerCase()===i.toLowerCase()}function _(e,t){let n={host:e.host,scheme:e.scheme,userinfo:e.userinfo,port:e.port,path:e.path,query:e.query,nid:e.nid,nss:e.nss,uuid:e.uuid,fragment:e.fragment,reference:e.reference,resourceName:e.resourceName,secure:e.secure,error:``},o=Object.assign({},t),c=[],l=f(o.scheme||n.scheme);l&&l.serialize&&l.serialize(n,o),n.path!==void 0&&(o.skipEscape?n.path=a(n.path):(n.path=s(n.path),n.scheme!==void 0&&(n.path=n.path.split(`%3A`).join(`:`)))),o.reference!==`suffix`&&n.scheme&&c.push(n.scheme,`:`);let u=i(n);if(u!==void 0&&(o.reference!==`suffix`&&c.push(`//`),c.push(u),n.path&&n.path[0]!==`/`&&c.push(`/`)),n.path!==void 0){let e=n.path;!o.absolutePath&&(!l||!l.absolutePath)&&(e=r(e)),u===void 0&&e[0]===`/`&&e[1]===`/`&&(e=`/%2F`+e.slice(2)),c.push(e)}return n.query!==void 0&&c.push(`?`,n.query),n.fragment!==void 0&&c.push(`#`,n.fragment),c.join(``)}var v=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u,y=/^(?:[^#/:?]+:)?\/\/([^/?#]*)/,b=/^(?:[^#/:?]+:)?([/\\\t\n\r]*)/;function x(e,t){if(t[2]!==void 0&&e.path&&e.path[0]!==`/`)return`URI path must start with "/" when authority is present.`;if(typeof e.port==`number`&&(e.port<0||e.port>65535))return`URI port is malformed.`}function S(e,t){let r=Object.assign({},t),i={scheme:void 0,userinfo:void 0,host:``,port:void 0,path:``,query:void 0,fragment:void 0},a=!1,s=!1;r.reference===`suffix`&&(e=r.scheme?r.scheme+`:`+e:`//`+e);let d=e.match(y);d!==null&&d[1].indexOf(`\\`)!==-1&&(i.error=`URI authority must not contain a literal backslash.`,a=!0);let p=e.match(b);if(p!==null){let e=p[1],t=e.replace(/[\t\n\r]/g,``);t.length>=2&&(t.slice(0,2)===`//`?e.length!==t.length&&(i.error=i.error||`URI authority introducer must not contain whitespace.`,a=!0):(i.error=i.error||`URI authority must not contain a literal backslash.`,a=!0))}let m=e.match(v);if(m){i.scheme=m[1],i.userinfo=m[3],i.host=m[4],i.port=parseInt(m[5],10),i.path=m[6]||``,i.query=m[7],i.fragment=m[8],isNaN(i.port)&&(i.port=m[5]);let t=x(i,m);if(t!==void 0&&(i.error=i.error||t,a=!0),i.host)if(l(i.host)===!1){let e=n(i.host);i.host=e.host.toLowerCase(),s=e.isIPV6}else s=!0;i.reference=i.scheme===void 0&&i.userinfo===void 0&&i.host===void 0&&i.port===void 0&&i.query===void 0&&!i.path?`same-document`:i.scheme===void 0?`relative`:i.fragment===void 0?`absolute`:`uri`,r.reference&&r.reference!==`suffix`&&r.reference!==i.reference&&(i.error=i.error||`URI is not a `+r.reference+` reference.`);let d=f(r.scheme||i.scheme);if(!r.unicodeSupport&&(!d||!d.unicodeSupport)&&i.host&&(r.domainHost||d&&d.domainHost)&&s===!1&&u(i.host))try{i.host=new URL(`http://`+i.host).hostname}catch(e){i.error=i.error||`Host's domain name can not be converted to ASCII: `+e}if((!d||d&&!d.skipNormalize)&&(e.indexOf(`%`)!==-1&&(i.scheme!==void 0&&(i.scheme=unescape(i.scheme)),i.host!==void 0&&(i.host=c(unescape(i.host),s))),i.path&&=o(i.path),i.fragment))try{i.fragment=encodeURI(decodeURIComponent(i.fragment))}catch{i.error=i.error||`URI malformed`}d&&d.parse&&d.parse(i,r)}else i.error=i.error||`URI can not be parsed.`;return{parsed:i,malformedAuthorityOrPort:a}}function C(e,t){return S(e,t).parsed}function ee(e,t){return te(e,t).normalized}function te(e,t){let{parsed:n,malformedAuthorityOrPort:r}=S(e,t);return{normalized:r?e:_(n,t),malformedAuthorityOrPort:r}}function ne(e,t){if(typeof e==`string`){let{normalized:n,malformedAuthorityOrPort:r}=te(e,t);return r?void 0:n}if(typeof e==`object`)return _(e,t)}var re={SCHEMES:d,normalize:p,resolve:m,resolveComponent:h,equal:g,serialize:_,parse:C};t.exports=re,t.exports.default=re,t.exports.fastUri=re})),Lu=r((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=Iu();t.code=`require("ajv/dist/runtime/uri").default`,e.default=t})),Ru=r((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.CodeGen=e.Name=e.nil=e.stringify=e.str=e._=e.KeywordCxt=void 0;var t=Su();Object.defineProperty(e,"KeywordCxt",{enumerable:!0,get:function(){return t.KeywordCxt}});var n=Y();Object.defineProperty(e,"_",{enumerable:!0,get:function(){return n._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return n.str}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return n.stringify}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return n.nil}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return n.Name}}),Object.defineProperty(e,"CodeGen",{enumerable:!0,get:function(){return n.CodeGen}});var r=Cu(),a=wu(),o=fu(),s=Tu(),c=Y(),l=xu(),u=mu(),d=X(),f=(Nu(),i(Eu).default),p=Lu(),m=(e,t)=>new RegExp(e,t);m.code=`new RegExp`;var h=[`removeAdditional`,`useDefaults`,`coerceTypes`],g=new Set([`validate`,`serialize`,`parse`,`wrapper`,`root`,`schema`,`keyword`,`pattern`,`formats`,`validate$data`,`func`,`obj`,`Error`]),_={errorDataPath:``,format:"`validateFormats: false` can be used instead.",nullable:`"nullable" keyword is supported by default.`,jsonPointers:`Deprecated jsPropertySyntax can be used instead.`,extendRefs:`Deprecated ignoreKeywordsWithRef can be used instead.`,missingRefs:`Pass empty schema with $id that should be ignored to ajv.addSchema.`,processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:`"uniqueItems" keyword is always validated.`,unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:`Map is used as cache, schema object as key.`,serialize:`Map is used as cache, schema object as key.`,ajvErrors:`It is default now.`},v={ignoreKeywordsWithRef:``,jsPropertySyntax:``,unicode:`"minLength"/"maxLength" account for unicode characters by default.`},y=200;function b(e){let t=e.strict,n=e.code?.optimize,r=n===!0||n===void 0?1:n||0,i=e.code?.regExp??m,a=e.uriResolver??p.default;return{strictSchema:e.strictSchema??t??!0,strictNumbers:e.strictNumbers??t??!0,strictTypes:e.strictTypes??t??`log`,strictTuples:e.strictTuples??t??`log`,strictRequired:e.strictRequired??t??!1,code:e.code?{...e.code,optimize:r,regExp:i}:{optimize:r,regExp:i},loopRequired:e.loopRequired??y,loopEnum:e.loopEnum??y,meta:e.meta??!0,messages:e.messages??!0,inlineRefs:e.inlineRefs??!0,schemaId:e.schemaId??`$id`,addUsedSchema:e.addUsedSchema??!0,validateSchema:e.validateSchema??!0,validateFormats:e.validateFormats??!0,unicodeRegExp:e.unicodeRegExp??!0,int32range:e.int32range??!0,uriResolver:a}}var x=class{constructor(e={}){this.schemas={},this.refs={},this.formats=Object.create(null),this._compilations=new Set,this._loading={},this._cache=new Map,e=this.opts={...e,...b(e)};let{es5:t,lines:n}=this.opts.code;this.scope=new c.ValueScope({scope:{},prefixes:g,es5:t,lines:n}),this.logger=w(e.logger);let r=e.validateFormats;e.validateFormats=!1,this.RULES=(0,o.getRules)(),S.call(this,_,e,`NOT SUPPORTED`),S.call(this,v,e,`DEPRECATED`,`warn`),this._metaOpts=re.call(this),e.formats&&te.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),e.keywords&&ne.call(this,e.keywords),typeof e.meta==`object`&&this.addMetaSchema(e.meta),ee.call(this),e.validateFormats=r}_addVocabularies(){this.addKeyword(`$async`)}_addDefaultMetaSchema(){let{$data:e,meta:t,schemaId:n}=this.opts,r=f;n===`id`&&(r={...f},r.id=r.$id,delete r.$id),t&&e&&this.addMetaSchema(r,r[n],!1)}defaultMeta(){let{meta:e,schemaId:t}=this.opts;return this.opts.defaultMeta=typeof e==`object`?e[t]||e:void 0}validate(e,t){let n;if(typeof e==`string`){if(n=this.getSchema(e),!n)throw Error(`no schema with key or ref "${e}"`)}else n=this.compile(e);let r=n(t);return`$async`in n||(this.errors=n.errors),r}compile(e,t){let n=this._addSchema(e,t);return n.validate||this._compileSchemaEnv(n)}compileAsync(e,t){if(typeof this.opts.loadSchema!=`function`)throw Error(`options.loadSchema should be a function`);let{loadSchema:n}=this.opts;return r.call(this,e,t);async function r(e,t){await i.call(this,e.$schema);let n=this._addSchema(e,t);return n.validate||o.call(this,n)}async function i(e){e&&!this.getSchema(e)&&await r.call(this,{$ref:e},!0)}async function o(e){try{return this._compileSchemaEnv(e)}catch(t){if(!(t instanceof a.default))throw t;return s.call(this,t),await c.call(this,t.missingSchema),o.call(this,e)}}function s({missingSchema:e,missingRef:t}){if(this.refs[e])throw Error(`AnySchema ${e} is loaded but ${t} cannot be resolved`)}async function c(e){let n=await l.call(this,e);this.refs[e]||await i.call(this,n.$schema),this.refs[e]||this.addSchema(n,e,t)}async function l(e){let t=this._loading[e];if(t)return t;try{return await(this._loading[e]=n(e))}finally{delete this._loading[e]}}}addSchema(e,t,n,r=this.opts.validateSchema){if(Array.isArray(e)){for(let t of e)this.addSchema(t,void 0,n,r);return this}let i;if(typeof e==`object`){let{schemaId:t}=this.opts;if(i=e[t],i!==void 0&&typeof i!=`string`)throw Error(`schema ${t} must be string`)}return t=(0,l.normalizeId)(t||i),this._checkUnique(t),this.schemas[t]=this._addSchema(e,n,t,r,!0),this}addMetaSchema(e,t,n=this.opts.validateSchema){return this.addSchema(e,t,!0,n),this}validateSchema(e,t){if(typeof e==`boolean`)return!0;let n;if(n=e.$schema,n!==void 0&&typeof n!=`string`)throw Error(`$schema must be a string`);if(n=n||this.opts.defaultMeta||this.defaultMeta(),!n)return this.logger.warn(`meta-schema not available`),this.errors=null,!0;let r=this.validate(n,e);if(!r&&t){let e=`schema is invalid: `+this.errorsText();if(this.opts.validateSchema===`log`)this.logger.error(e);else throw Error(e)}return r}getSchema(e){let t;for(;typeof(t=C.call(this,e))==`string`;)e=t;if(t===void 0){let{schemaId:n}=this.opts,r=new s.SchemaEnv({schema:{},schemaId:n});if(t=s.resolveSchema.call(this,r,e),!t)return;this.refs[e]=t}return t.validate||this._compileSchemaEnv(t)}removeSchema(e){if(e instanceof RegExp)return this._removeAllSchemas(this.schemas,e),this._removeAllSchemas(this.refs,e),this;switch(typeof e){case`undefined`:return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case`string`:{let t=C.call(this,e);return typeof t==`object`&&this._cache.delete(t.schema),delete this.schemas[e],delete this.refs[e],this}case`object`:{let t=e;this._cache.delete(t);let n=e[this.opts.schemaId];return n&&(n=(0,l.normalizeId)(n),delete this.schemas[n],delete this.refs[n]),this}default:throw Error(`ajv.removeSchema: invalid parameter`)}}addVocabulary(e){for(let t of e)this.addKeyword(t);return this}addKeyword(e,t){let n;if(typeof e==`string`)n=e,typeof t==`object`&&(this.logger.warn(`these parameters are deprecated, see docs for addKeyword`),t.keyword=n);else if(typeof e==`object`&&t===void 0){if(t=e,n=t.keyword,Array.isArray(n)&&!n.length)throw Error(`addKeywords: keyword must be string or non-empty array`)}else throw Error(`invalid addKeywords parameters`);if(oe.call(this,n,t),!t)return(0,d.eachItem)(n,e=>se.call(this,e)),this;le.call(this,t);let r={...t,type:(0,u.getJSONTypes)(t.type),schemaType:(0,u.getJSONTypes)(t.schemaType)};return(0,d.eachItem)(n,r.type.length===0?e=>se.call(this,e,r):e=>r.type.forEach(t=>se.call(this,e,r,t))),this}getKeyword(e){let t=this.RULES.all[e];return typeof t==`object`?t.definition:!!t}removeKeyword(e){let{RULES:t}=this;delete t.keywords[e],delete t.all[e];for(let n of t.rules){let t=n.rules.findIndex(t=>t.keyword===e);t>=0&&n.rules.splice(t,1)}return this}addFormat(e,t){return typeof t==`string`&&(t=new RegExp(t)),this.formats[e]=t,this}errorsText(e=this.errors,{separator:t=`, `,dataVar:n=`data`}={}){return!e||e.length===0?`No errors`:e.map(e=>`${n}${e.instancePath} ${e.message}`).reduce((e,n)=>e+t+n)}$dataMetaSchema(e,t){let n=this.RULES.all;e=JSON.parse(JSON.stringify(e));for(let r of t){let t=r.split(`/`).slice(1),i=e;for(let e of t)i=i[e];for(let e in n){let t=n[e];if(typeof t!=`object`)continue;let{$data:r}=t.definition,a=i[e];r&&a&&(i[e]=de(a))}}return e}_removeAllSchemas(e,t){for(let n in e){let r=e[n];(!t||t.test(n))&&(typeof r==`string`?delete e[n]:r&&!r.meta&&(this._cache.delete(r.schema),delete e[n]))}}_addSchema(e,t,n,r=this.opts.validateSchema,i=this.opts.addUsedSchema){let a,{schemaId:o}=this.opts;if(typeof e==`object`)a=e[o];else if(this.opts.jtd)throw Error(`schema must be object`);else if(typeof e!=`boolean`)throw Error(`schema must be object or boolean`);let c=this._cache.get(e);if(c!==void 0)return c;n=(0,l.normalizeId)(a||n);let u=l.getSchemaRefs.call(this,e,n);return c=new s.SchemaEnv({schema:e,schemaId:o,meta:t,baseId:n,localRefs:u}),this._cache.set(c.schema,c),i&&!n.startsWith(`#`)&&(n&&this._checkUnique(n),this.refs[n]=c),r&&this.validateSchema(e,!0),c}_checkUnique(e){if(this.schemas[e]||this.refs[e])throw Error(`schema with key or id "${e}" already exists`)}_compileSchemaEnv(e){if(e.meta?this._compileMetaSchema(e):s.compileSchema.call(this,e),!e.validate)throw Error(`ajv implementation error`);return e.validate}_compileMetaSchema(e){let t=this.opts;this.opts=this._metaOpts;try{s.compileSchema.call(this,e)}finally{this.opts=t}}};x.ValidationError=r.default,x.MissingRefError=a.default,e.default=x;function S(e,t,n,r=`error`){for(let i in e){let a=i;a in t&&this.logger[r](`${n}: option ${i}. ${e[a]}`)}}function C(e){return e=(0,l.normalizeId)(e),this.schemas[e]||this.refs[e]}function ee(){let e=this.opts.schemas;if(e)if(Array.isArray(e))this.addSchema(e);else for(let t in e)this.addSchema(e[t],t)}function te(){for(let e in this.opts.formats){let t=this.opts.formats[e];t&&this.addFormat(e,t)}}function ne(e){if(Array.isArray(e)){this.addVocabulary(e);return}this.logger.warn(`keywords option as map is deprecated, pass array`);for(let t in e){let n=e[t];n.keyword||=t,this.addKeyword(n)}}function re(){let e={...this.opts};for(let t of h)delete e[t];return e}var ie={log(){},warn(){},error(){}};function w(e){if(e===!1)return ie;if(e===void 0)return console;if(e.log&&e.warn&&e.error)return e;throw Error(`logger must implement log, warn and error methods`)}var ae=/^[a-z_$][a-z0-9_$:-]*$/i;function oe(e,t){let{RULES:n}=this;if((0,d.eachItem)(e,e=>{if(n.keywords[e])throw Error(`Keyword ${e} is already defined`);if(!ae.test(e))throw Error(`Keyword ${e} has invalid name`)}),t&&t.$data&&!(`code`in t||`validate`in t))throw Error(`$data keyword must have "code" or "validate" function`)}function se(e,t,n){var r;let i=t?.post;if(n&&i)throw Error(`keyword with "post" flag cannot have "type"`);let{RULES:a}=this,o=i?a.post:a.rules.find(({type:e})=>e===n);if(o||(o={type:n,rules:[]},a.rules.push(o)),a.keywords[e]=!0,!t)return;let s={keyword:e,definition:{...t,type:(0,u.getJSONTypes)(t.type),schemaType:(0,u.getJSONTypes)(t.schemaType)}};t.before?ce.call(this,o,s,t.before):o.rules.push(s),a.all[e]=s,(r=t.implements)==null||r.forEach(e=>this.addKeyword(e))}function ce(e,t,n){let r=e.rules.findIndex(e=>e.keyword===n);r>=0?e.rules.splice(r,0,t):(e.rules.push(t),this.logger.warn(`rule ${n} is not defined`))}function le(e){let{metaSchema:t}=e;t!==void 0&&(e.$data&&this.opts.$data&&(t=de(t)),e.validateSchema=this.compile(t,!0))}var ue={$ref:`https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#`};function de(e){return{anyOf:[e,ue]}}})),zu=r((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={keyword:`id`,code(){throw Error(`NOT SUPPORTED: keyword "id", use "$id" for schema ID`)}}})),Bu=r((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.callRef=e.getValidate=void 0;var t=wu(),n=gu(),r=Y(),i=lu(),a=Tu(),o=X(),s={keyword:`$ref`,schemaType:`string`,code(e){let{gen:n,schema:i,it:o}=e,{baseId:s,schemaEnv:u,validateName:d,opts:f,self:p}=o,{root:m}=u;if((i===`#`||i===`#/`)&&s===m.baseId)return g();let h=a.resolveRef.call(p,m,s,i);if(h===void 0)throw new t.default(o.opts.uriResolver,s,i);if(h instanceof a.SchemaEnv)return _(h);return v(h);function g(){if(u===m)return l(e,d,u,u.$async);let t=n.scopeValue(`root`,{ref:m});return l(e,(0,r._)`${t}.validate`,m,m.$async)}function _(t){l(e,c(e,t),t,t.$async)}function v(t){let a=n.scopeValue(`schema`,f.code.source===!0?{ref:t,code:(0,r.stringify)(t)}:{ref:t}),o=n.name(`valid`),s=e.subschema({schema:t,dataTypes:[],schemaPath:r.nil,topSchemaRef:a,errSchemaPath:i},o);e.mergeEvaluated(s),e.ok(o)}}};function c(e,t){let{gen:n}=e;return t.validate?n.scopeValue(`validate`,{ref:t.validate}):(0,r._)`${n.scopeValue(`wrapper`,{ref:t})}.validate`}e.getValidate=c;function l(e,t,a,s){let{gen:c,it:l}=e,{allErrors:u,schemaEnv:d,opts:f}=l,p=f.passContext?i.default.this:r.nil;s?m():h();function m(){if(!d.$async)throw Error(`async schema referenced by sync schema`);let i=c.let(`valid`);c.try(()=>{c.code((0,r._)`await ${(0,n.callValidateCode)(e,t,p)}`),_(t),u||c.assign(i,!0)},e=>{c.if((0,r._)`!(${e} instanceof ${l.ValidationError})`,()=>c.throw(e)),g(e),u||c.assign(i,!1)}),e.ok(i)}function h(){e.result((0,n.callValidateCode)(e,t,p),()=>_(t),()=>g(t))}function g(e){let t=(0,r._)`${e}.errors`;c.assign(i.default.vErrors,(0,r._)`${i.default.vErrors} === null ? ${t} : ${i.default.vErrors}.concat(${t})`),c.assign(i.default.errors,(0,r._)`${i.default.vErrors}.length`)}function _(e){if(!l.opts.unevaluated)return;let t=a?.validate?.evaluated;if(l.props!==!0)if(t&&!t.dynamicProps)t.props!==void 0&&(l.props=o.mergeEvaluated.props(c,t.props,l.props));else{let t=c.var(`props`,(0,r._)`${e}.evaluated.props`);l.props=o.mergeEvaluated.props(c,t,l.props,r.Name)}if(l.items!==!0)if(t&&!t.dynamicItems)t.items!==void 0&&(l.items=o.mergeEvaluated.items(c,t.items,l.items));else{let t=c.var(`items`,(0,r._)`${e}.evaluated.items`);l.items=o.mergeEvaluated.items(c,t,l.items,r.Name)}}}e.callRef=l,e.default=s})),Vu=r((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=zu(),n=Bu();e.default=[`$schema`,`$id`,`$defs`,`$vocabulary`,{keyword:`$comment`},`definitions`,t.default,n.default]})),Hu=r((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=Y(),n=t.operators,r={maximum:{okStr:`<=`,ok:n.LTE,fail:n.GT},minimum:{okStr:`>=`,ok:n.GTE,fail:n.LT},exclusiveMaximum:{okStr:`<`,ok:n.LT,fail:n.GTE},exclusiveMinimum:{okStr:`>`,ok:n.GT,fail:n.LTE}};e.default={keyword:Object.keys(r),type:`number`,schemaType:`number`,$data:!0,error:{message:({keyword:e,schemaCode:n})=>(0,t.str)`must be ${r[e].okStr} ${n}`,params:({keyword:e,schemaCode:n})=>(0,t._)`{comparison: ${r[e].okStr}, limit: ${n}}`},code(e){let{keyword:n,data:i,schemaCode:a}=e;e.fail$data((0,t._)`${i} ${r[n].fail} ${a} || isNaN(${i})`)}}})),Uu=r((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=Y();e.default={keyword:`multipleOf`,type:`number`,schemaType:`number`,$data:!0,error:{message:({schemaCode:e})=>(0,t.str)`must be multiple of ${e}`,params:({schemaCode:e})=>(0,t._)`{multipleOf: ${e}}`},code(e){let{gen:n,data:r,schemaCode:i,it:a}=e,o=a.opts.multipleOfPrecision,s=n.let(`res`),c=o?(0,t._)`Math.abs(Math.round(${s}) - ${s}) > 1e-${o}`:(0,t._)`${s} !== parseInt(${s})`;e.fail$data((0,t._)`(${i} === 0 || (${s} = ${r}/${i}, ${c}))`)}}})),Wu=r((e=>{Object.defineProperty(e,"__esModule",{value:!0});function t(e){let t=e.length,n=0,r=0,i;for(;r=55296&&i<=56319&&r{Object.defineProperty(e,"__esModule",{value:!0});var t=Y(),n=X(),r=Wu();e.default={keyword:[`maxLength`,`minLength`],type:`string`,schemaType:`number`,$data:!0,error:{message({keyword:e,schemaCode:n}){let r=e===`maxLength`?`more`:`fewer`;return(0,t.str)`must NOT have ${r} than ${n} characters`},params:({schemaCode:e})=>(0,t._)`{limit: ${e}}`},code(e){let{keyword:i,data:a,schemaCode:o,it:s}=e,c=i===`maxLength`?t.operators.GT:t.operators.LT,l=s.opts.unicode===!1?(0,t._)`${a}.length`:(0,t._)`${(0,n.useFunc)(e.gen,r.default)}(${a})`;e.fail$data((0,t._)`${l} ${c} ${o}`)}}})),Ku=r((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=gu(),n=X(),r=Y();e.default={keyword:`pattern`,type:`string`,schemaType:`string`,$data:!0,error:{message:({schemaCode:e})=>(0,r.str)`must match pattern "${e}"`,params:({schemaCode:e})=>(0,r._)`{pattern: ${e}}`},code(e){let{gen:i,data:a,$data:o,schema:s,schemaCode:c,it:l}=e,u=l.opts.unicodeRegExp?`u`:``;if(o){let{regExp:t}=l.opts.code,o=t.code===`new RegExp`?(0,r._)`new RegExp`:(0,n.useFunc)(i,t),s=i.let(`valid`);i.try(()=>i.assign(s,(0,r._)`${o}(${c}, ${u}).test(${a})`),()=>i.assign(s,!1)),e.fail$data((0,r._)`!${s}`)}else{let n=(0,t.usePattern)(e,s);e.fail$data((0,r._)`!${n}.test(${a})`)}}}})),qu=r((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=Y();e.default={keyword:[`maxProperties`,`minProperties`],type:`object`,schemaType:`number`,$data:!0,error:{message({keyword:e,schemaCode:n}){let r=e===`maxProperties`?`more`:`fewer`;return(0,t.str)`must NOT have ${r} than ${n} properties`},params:({schemaCode:e})=>(0,t._)`{limit: ${e}}`},code(e){let{keyword:n,data:r,schemaCode:i}=e,a=n===`maxProperties`?t.operators.GT:t.operators.LT;e.fail$data((0,t._)`Object.keys(${r}).length ${a} ${i}`)}}})),Ju=r((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=gu(),n=Y(),r=X();e.default={keyword:`required`,type:`object`,schemaType:`array`,$data:!0,error:{message:({params:{missingProperty:e}})=>(0,n.str)`must have required property '${e}'`,params:({params:{missingProperty:e}})=>(0,n._)`{missingProperty: ${e}}`},code(e){let{gen:i,schema:a,schemaCode:o,data:s,$data:c,it:l}=e,{opts:u}=l;if(!c&&a.length===0)return;let d=a.length>=u.loopRequired;if(l.allErrors?f():p(),u.strictRequired){let t=e.parentSchema.properties,{definedProperties:n}=e.it;for(let e of a)if(t?.[e]===void 0&&!n.has(e)){let t=`required property "${e}" is not defined at "${l.schemaEnv.baseId+l.errSchemaPath}" (strictRequired)`;(0,r.checkStrictMode)(l,t,l.opts.strictRequired)}}function f(){if(d||c)e.block$data(n.nil,m);else for(let n of a)(0,t.checkReportMissingProp)(e,n)}function p(){let n=i.let(`missing`);if(d||c){let t=i.let(`valid`,!0);e.block$data(t,()=>h(n,t)),e.ok(t)}else i.if((0,t.checkMissingProp)(e,a,n)),(0,t.reportMissingProp)(e,n),i.else()}function m(){i.forOf(`prop`,o,n=>{e.setParams({missingProperty:n}),i.if((0,t.noPropertyInData)(i,s,n,u.ownProperties),()=>e.error())})}function h(r,a){e.setParams({missingProperty:r}),i.forOf(r,o,()=>{i.assign(a,(0,t.propertyInData)(i,s,r,u.ownProperties)),i.if((0,n.not)(a),()=>{e.error(),i.break()})},n.nil)}}}})),Yu=r((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=Y();e.default={keyword:[`maxItems`,`minItems`],type:`array`,schemaType:`number`,$data:!0,error:{message({keyword:e,schemaCode:n}){let r=e===`maxItems`?`more`:`fewer`;return(0,t.str)`must NOT have ${r} than ${n} items`},params:({schemaCode:e})=>(0,t._)`{limit: ${e}}`},code(e){let{keyword:n,data:r,schemaCode:i}=e,a=n===`maxItems`?t.operators.GT:t.operators.LT;e.fail$data((0,t._)`${r}.length ${a} ${i}`)}}})),Xu=r((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=yu();t.code=`require("ajv/dist/runtime/equal").default`,e.default=t})),Zu=r((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=mu(),n=Y(),r=X(),i=Xu();e.default={keyword:`uniqueItems`,type:`array`,schemaType:`boolean`,$data:!0,error:{message:({params:{i:e,j:t}})=>(0,n.str)`must NOT have duplicate items (items ## ${t} and ${e} are identical)`,params:({params:{i:e,j:t}})=>(0,n._)`{i: ${e}, j: ${t}}`},code(e){let{gen:a,data:o,$data:s,schema:c,parentSchema:l,schemaCode:u,it:d}=e;if(!s&&!c)return;let f=a.let(`valid`),p=l.items?(0,t.getSchemaTypes)(l.items):[];e.block$data(f,m,(0,n._)`${u} === false`),e.ok(f);function m(){let t=a.let(`i`,(0,n._)`${o}.length`),r=a.let(`j`);e.setParams({i:t,j:r}),a.assign(f,!0),a.if((0,n._)`${t} > 1`,()=>(h()?g:_)(t,r))}function h(){return p.length>0&&!p.some(e=>e===`object`||e===`array`)}function g(r,i){let s=a.name(`item`),c=(0,t.checkDataTypes)(p,s,d.opts.strictNumbers,t.DataType.Wrong),l=a.const(`indices`,(0,n._)`{}`);a.for((0,n._)`;${r}--;`,()=>{a.let(s,(0,n._)`${o}[${r}]`),a.if(c,(0,n._)`continue`),p.length>1&&a.if((0,n._)`typeof ${s} == "string"`,(0,n._)`${s} += "_"`),a.if((0,n._)`typeof ${l}[${s}] == "number"`,()=>{a.assign(i,(0,n._)`${l}[${s}]`),e.error(),a.assign(f,!1).break()}).code((0,n._)`${l}[${s}] = ${r}`)})}function _(t,s){let c=(0,r.useFunc)(a,i.default),l=a.name(`outer`);a.label(l).for((0,n._)`;${t}--;`,()=>a.for((0,n._)`${s} = ${t}; ${s}--;`,()=>a.if((0,n._)`${c}(${o}[${t}], ${o}[${s}])`,()=>{e.error(),a.assign(f,!1).break(l)})))}}}})),Qu=r((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=Y(),n=X(),r=Xu();e.default={keyword:`const`,$data:!0,error:{message:`must be equal to constant`,params:({schemaCode:e})=>(0,t._)`{allowedValue: ${e}}`},code(e){let{gen:i,data:a,$data:o,schemaCode:s,schema:c}=e;o||c&&typeof c==`object`?e.fail$data((0,t._)`!${(0,n.useFunc)(i,r.default)}(${a}, ${s})`):e.fail((0,t._)`${c} !== ${a}`)}}})),$u=r((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=Y(),n=X(),r=Xu();e.default={keyword:`enum`,schemaType:`array`,$data:!0,error:{message:`must be equal to one of the allowed values`,params:({schemaCode:e})=>(0,t._)`{allowedValues: ${e}}`},code(e){let{gen:i,data:a,$data:o,schema:s,schemaCode:c,it:l}=e;if(!o&&s.length===0)throw Error(`enum must have non-empty array`);let u=s.length>=l.opts.loopEnum,d,f=()=>d??=(0,n.useFunc)(i,r.default),p;if(u||o)p=i.let(`valid`),e.block$data(p,m);else{if(!Array.isArray(s))throw Error(`ajv implementation error`);let e=i.const(`vSchema`,c);p=(0,t.or)(...s.map((t,n)=>h(e,n)))}e.pass(p);function m(){i.assign(p,!1),i.forOf(`v`,c,e=>i.if((0,t._)`${f()}(${a}, ${e})`,()=>i.assign(p,!0).break()))}function h(e,n){let r=s[n];return typeof r==`object`&&r?(0,t._)`${f()}(${a}, ${e}[${n}])`:(0,t._)`${a} === ${r}`}}}})),ed=r((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=Hu(),n=Uu(),r=Gu(),i=Ku(),a=qu(),o=Ju(),s=Yu(),c=Zu(),l=Qu(),u=$u();e.default=[t.default,n.default,r.default,i.default,a.default,o.default,s.default,c.default,{keyword:`type`,schemaType:[`string`,`array`]},{keyword:`nullable`,schemaType:`boolean`},l.default,u.default]})),td=r((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.validateAdditionalItems=void 0;var t=Y(),n=X(),r={keyword:`additionalItems`,type:`array`,schemaType:[`boolean`,`object`],before:`uniqueItems`,error:{message:({params:{len:e}})=>(0,t.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,t._)`{limit: ${e}}`},code(e){let{parentSchema:t,it:r}=e,{items:a}=t;if(!Array.isArray(a)){(0,n.checkStrictMode)(r,`"additionalItems" is ignored when "items" is not an array of schemas`);return}i(e,a)}};function i(e,r){let{gen:i,schema:a,data:o,keyword:s,it:c}=e;c.items=!0;let l=i.const(`len`,(0,t._)`${o}.length`);if(a===!1)e.setParams({len:r.length}),e.pass((0,t._)`${l} <= ${r.length}`);else if(typeof a==`object`&&!(0,n.alwaysValidSchema)(c,a)){let n=i.var(`valid`,(0,t._)`${l} <= ${r.length}`);i.if((0,t.not)(n),()=>u(n)),e.ok(n)}function u(a){i.forRange(`i`,r.length,l,r=>{e.subschema({keyword:s,dataProp:r,dataPropType:n.Type.Num},a),c.allErrors||i.if((0,t.not)(a),()=>i.break())})}}e.validateAdditionalItems=i,e.default=r})),nd=r((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.validateTuple=void 0;var t=Y(),n=X(),r=gu(),i={keyword:`items`,type:`array`,schemaType:[`object`,`array`,`boolean`],before:`uniqueItems`,code(e){let{schema:t,it:i}=e;if(Array.isArray(t))return a(e,`additionalItems`,t);i.items=!0,!(0,n.alwaysValidSchema)(i,t)&&e.ok((0,r.validateArray)(e))}};function a(e,r,i=e.schema){let{gen:a,parentSchema:o,data:s,keyword:c,it:l}=e;f(o),l.opts.unevaluated&&i.length&&l.items!==!0&&(l.items=n.mergeEvaluated.items(a,i.length,l.items));let u=a.name(`valid`),d=a.const(`len`,(0,t._)`${s}.length`);i.forEach((r,i)=>{(0,n.alwaysValidSchema)(l,r)||(a.if((0,t._)`${d} > ${i}`,()=>e.subschema({keyword:c,schemaProp:i,dataProp:i},u)),e.ok(u))});function f(e){let{opts:t,errSchemaPath:a}=l,o=i.length,s=o===e.minItems&&(o===e.maxItems||e[r]===!1);if(t.strictTuples&&!s){let e=`"${c}" is ${o}-tuple, but minItems or maxItems/${r} are not specified or different at path "${a}"`;(0,n.checkStrictMode)(l,e,t.strictTuples)}}}e.validateTuple=a,e.default=i})),rd=r((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=nd();e.default={keyword:`prefixItems`,type:`array`,schemaType:[`array`],before:`uniqueItems`,code:e=>(0,t.validateTuple)(e,`items`)}})),id=r((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=Y(),n=X(),r=gu(),i=td();e.default={keyword:`items`,type:`array`,schemaType:[`object`,`boolean`],before:`uniqueItems`,error:{message:({params:{len:e}})=>(0,t.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,t._)`{limit: ${e}}`},code(e){let{schema:t,parentSchema:a,it:o}=e,{prefixItems:s}=a;o.items=!0,!(0,n.alwaysValidSchema)(o,t)&&(s?(0,i.validateAdditionalItems)(e,s):e.ok((0,r.validateArray)(e)))}}})),ad=r((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=Y(),n=X();e.default={keyword:`contains`,type:`array`,schemaType:[`object`,`boolean`],before:`uniqueItems`,trackErrors:!0,error:{message:({params:{min:e,max:n}})=>n===void 0?(0,t.str)`must contain at least ${e} valid item(s)`:(0,t.str)`must contain at least ${e} and no more than ${n} valid item(s)`,params:({params:{min:e,max:n}})=>n===void 0?(0,t._)`{minContains: ${e}}`:(0,t._)`{minContains: ${e}, maxContains: ${n}}`},code(e){let{gen:r,schema:i,parentSchema:a,data:o,it:s}=e,c,l,{minContains:u,maxContains:d}=a;s.opts.next?(c=u===void 0?1:u,l=d):c=1;let f=r.const(`len`,(0,t._)`${o}.length`);if(e.setParams({min:c,max:l}),l===void 0&&c===0){(0,n.checkStrictMode)(s,`"minContains" == 0 without "maxContains": "contains" keyword ignored`);return}if(l!==void 0&&c>l){(0,n.checkStrictMode)(s,`"minContains" > "maxContains" is always invalid`),e.fail();return}if((0,n.alwaysValidSchema)(s,i)){let n=(0,t._)`${f} >= ${c}`;l!==void 0&&(n=(0,t._)`${n} && ${f} <= ${l}`),e.pass(n);return}s.items=!0;let p=r.name(`valid`);l===void 0&&c===1?h(p,()=>r.if(p,()=>r.break())):c===0?(r.let(p,!0),l!==void 0&&r.if((0,t._)`${o}.length > 0`,m)):(r.let(p,!1),m()),e.result(p,()=>e.reset());function m(){let e=r.name(`_valid`),t=r.let(`count`,0);h(e,()=>r.if(e,()=>g(t)))}function h(t,i){r.forRange(`i`,0,f,r=>{e.subschema({keyword:`contains`,dataProp:r,dataPropType:n.Type.Num,compositeRule:!0},t),i()})}function g(e){r.code((0,t._)`${e}++`),l===void 0?r.if((0,t._)`${e} >= ${c}`,()=>r.assign(p,!0).break()):(r.if((0,t._)`${e} > ${l}`,()=>r.assign(p,!1).break()),c===1?r.assign(p,!0):r.if((0,t._)`${e} >= ${c}`,()=>r.assign(p,!0)))}}}})),od=r((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.validateSchemaDeps=e.validatePropertyDeps=e.error=void 0;var t=Y(),n=X(),r=gu();e.error={message:({params:{property:e,depsCount:n,deps:r}})=>{let i=n===1?`property`:`properties`;return(0,t.str)`must have ${i} ${r} when property ${e} is present`},params:({params:{property:e,depsCount:n,deps:r,missingProperty:i}})=>(0,t._)`{property: ${e}, + missingProperty: ${i}, + depsCount: ${n}, + deps: ${r}}`};var i={keyword:`dependencies`,type:`object`,schemaType:`object`,error:e.error,code(e){let[t,n]=a(e);o(e,t),s(e,n)}};function a({schema:e}){let t={},n={};for(let r in e){if(r===`__proto__`)continue;let i=Array.isArray(e[r])?t:n;i[r]=e[r]}return[t,n]}function o(e,n=e.schema){let{gen:i,data:a,it:o}=e;if(Object.keys(n).length===0)return;let s=i.let(`missing`);for(let c in n){let l=n[c];if(l.length===0)continue;let u=(0,r.propertyInData)(i,a,c,o.opts.ownProperties);e.setParams({property:c,depsCount:l.length,deps:l.join(`, `)}),o.allErrors?i.if(u,()=>{for(let t of l)(0,r.checkReportMissingProp)(e,t)}):(i.if((0,t._)`${u} && (${(0,r.checkMissingProp)(e,l,s)})`),(0,r.reportMissingProp)(e,s),i.else())}}e.validatePropertyDeps=o;function s(e,t=e.schema){let{gen:i,data:a,keyword:o,it:s}=e,c=i.name(`valid`);for(let l in t)(0,n.alwaysValidSchema)(s,t[l])||(i.if((0,r.propertyInData)(i,a,l,s.opts.ownProperties),()=>{let t=e.subschema({keyword:o,schemaProp:l},c);e.mergeValidEvaluated(t,c)},()=>i.var(c,!0)),e.ok(c))}e.validateSchemaDeps=s,e.default=i})),sd=r((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=Y(),n=X();e.default={keyword:`propertyNames`,type:`object`,schemaType:[`object`,`boolean`],error:{message:`property name must be valid`,params:({params:e})=>(0,t._)`{propertyName: ${e.propertyName}}`},code(e){let{gen:r,schema:i,data:a,it:o}=e;if((0,n.alwaysValidSchema)(o,i))return;let s=r.name(`valid`);r.forIn(`key`,a,n=>{e.setParams({propertyName:n}),e.subschema({keyword:`propertyNames`,data:n,dataTypes:[`string`],propertyName:n,compositeRule:!0},s),r.if((0,t.not)(s),()=>{e.error(!0),o.allErrors||r.break()})}),e.ok(s)}}})),cd=r((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=gu(),n=Y(),r=lu(),i=X();e.default={keyword:`additionalProperties`,type:[`object`],schemaType:[`boolean`,`object`],allowUndefined:!0,trackErrors:!0,error:{message:`must NOT have additional properties`,params:({params:e})=>(0,n._)`{additionalProperty: ${e.additionalProperty}}`},code(e){let{gen:a,schema:o,parentSchema:s,data:c,errsCount:l,it:u}=e;if(!l)throw Error(`ajv implementation error`);let{allErrors:d,opts:f}=u;if(u.props=!0,f.removeAdditional!==`all`&&(0,i.alwaysValidSchema)(u,o))return;let p=(0,t.allSchemaProperties)(s.properties),m=(0,t.allSchemaProperties)(s.patternProperties);h(),e.ok((0,n._)`${l} === ${r.default.errors}`);function h(){a.forIn(`key`,c,e=>{!p.length&&!m.length?v(e):a.if(g(e),()=>v(e))})}function g(r){let o;if(p.length>8){let e=(0,i.schemaRefOrVal)(u,s.properties,`properties`);o=(0,t.isOwnProperty)(a,e,r)}else o=p.length?(0,n.or)(...p.map(e=>(0,n._)`${r} === ${e}`)):n.nil;return m.length&&(o=(0,n.or)(o,...m.map(i=>(0,n._)`${(0,t.usePattern)(e,i)}.test(${r})`))),(0,n.not)(o)}function _(e){a.code((0,n._)`delete ${c}[${e}]`)}function v(t){if(f.removeAdditional===`all`||f.removeAdditional&&o===!1){_(t);return}if(o===!1){e.setParams({additionalProperty:t}),e.error(),d||a.break();return}if(typeof o==`object`&&!(0,i.alwaysValidSchema)(u,o)){let r=a.name(`valid`);f.removeAdditional===`failing`?(y(t,r,!1),a.if((0,n.not)(r),()=>{e.reset(),_(t)})):(y(t,r),d||a.if((0,n.not)(r),()=>a.break()))}}function y(t,n,r){let a={keyword:`additionalProperties`,dataProp:t,dataPropType:i.Type.Str};r===!1&&Object.assign(a,{compositeRule:!0,createErrors:!1,allErrors:!1}),e.subschema(a,n)}}}})),ld=r((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=Su(),n=gu(),r=X(),i=cd();e.default={keyword:`properties`,type:`object`,schemaType:`object`,code(e){let{gen:a,schema:o,parentSchema:s,data:c,it:l}=e;l.opts.removeAdditional===`all`&&s.additionalProperties===void 0&&i.default.code(new t.KeywordCxt(l,i.default,`additionalProperties`));let u=(0,n.allSchemaProperties)(o);for(let e of u)l.definedProperties.add(e);l.opts.unevaluated&&u.length&&l.props!==!0&&(l.props=r.mergeEvaluated.props(a,(0,r.toHash)(u),l.props));let d=u.filter(e=>!(0,r.alwaysValidSchema)(l,o[e]));if(d.length===0)return;let f=a.name(`valid`);for(let t of d)p(t)?m(t):(a.if((0,n.propertyInData)(a,c,t,l.opts.ownProperties)),m(t),l.allErrors||a.else().var(f,!0),a.endIf()),e.it.definedProperties.add(t),e.ok(f);function p(e){return l.opts.useDefaults&&!l.compositeRule&&o[e].default!==void 0}function m(t){e.subschema({keyword:`properties`,schemaProp:t,dataProp:t},f)}}}})),ud=r((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=gu(),n=Y(),r=X(),i=X();e.default={keyword:`patternProperties`,type:`object`,schemaType:`object`,code(e){let{gen:a,schema:o,data:s,parentSchema:c,it:l}=e,{opts:u}=l,d=(0,t.allSchemaProperties)(o),f=d.filter(e=>(0,r.alwaysValidSchema)(l,o[e]));if(d.length===0||f.length===d.length&&(!l.opts.unevaluated||l.props===!0))return;let p=u.strictSchema&&!u.allowMatchingProperties&&c.properties,m=a.name(`valid`);l.props!==!0&&!(l.props instanceof n.Name)&&(l.props=(0,i.evaluatedPropsToName)(a,l.props));let{props:h}=l;g();function g(){for(let e of d)p&&_(e),l.allErrors?v(e):(a.var(m,!0),v(e),a.if(m))}function _(e){for(let t in p)new RegExp(e).test(t)&&(0,r.checkStrictMode)(l,`property ${t} matches pattern ${e} (use allowMatchingProperties)`)}function v(r){a.forIn(`key`,s,o=>{a.if((0,n._)`${(0,t.usePattern)(e,r)}.test(${o})`,()=>{let t=f.includes(r);t||e.subschema({keyword:`patternProperties`,schemaProp:r,dataProp:o,dataPropType:i.Type.Str},m),l.opts.unevaluated&&h!==!0?a.assign((0,n._)`${h}[${o}]`,!0):!t&&!l.allErrors&&a.if((0,n.not)(m),()=>a.break())})})}}}})),dd=r((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=X();e.default={keyword:`not`,schemaType:[`object`,`boolean`],trackErrors:!0,code(e){let{gen:n,schema:r,it:i}=e;if((0,t.alwaysValidSchema)(i,r)){e.fail();return}let a=n.name(`valid`);e.subschema({keyword:`not`,compositeRule:!0,createErrors:!1,allErrors:!1},a),e.failResult(a,()=>e.reset(),()=>e.error())},error:{message:`must NOT be valid`}}})),fd=r((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={keyword:`anyOf`,schemaType:`array`,trackErrors:!0,code:gu().validateUnion,error:{message:`must match a schema in anyOf`}}})),pd=r((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=Y(),n=X();e.default={keyword:`oneOf`,schemaType:`array`,trackErrors:!0,error:{message:`must match exactly one schema in oneOf`,params:({params:e})=>(0,t._)`{passingSchemas: ${e.passing}}`},code(e){let{gen:r,schema:i,parentSchema:a,it:o}=e;if(!Array.isArray(i))throw Error(`ajv implementation error`);if(o.opts.discriminator&&a.discriminator)return;let s=i,c=r.let(`valid`,!1),l=r.let(`passing`,null),u=r.name(`_valid`);e.setParams({passing:l}),r.block(d),e.result(c,()=>e.reset(),()=>e.error(!0));function d(){s.forEach((i,a)=>{let s;(0,n.alwaysValidSchema)(o,i)?r.var(u,!0):s=e.subschema({keyword:`oneOf`,schemaProp:a,compositeRule:!0},u),a>0&&r.if((0,t._)`${u} && ${c}`).assign(c,!1).assign(l,(0,t._)`[${l}, ${a}]`).else(),r.if(u,()=>{r.assign(c,!0),r.assign(l,a),s&&e.mergeEvaluated(s,t.Name)})})}}}})),md=r((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=X();e.default={keyword:`allOf`,schemaType:`array`,code(e){let{gen:n,schema:r,it:i}=e;if(!Array.isArray(r))throw Error(`ajv implementation error`);let a=n.name(`valid`);r.forEach((n,r)=>{if((0,t.alwaysValidSchema)(i,n))return;let o=e.subschema({keyword:`allOf`,schemaProp:r},a);e.ok(a),e.mergeEvaluated(o)})}}})),hd=r((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=Y(),n=X(),r={keyword:`if`,schemaType:[`object`,`boolean`],trackErrors:!0,error:{message:({params:e})=>(0,t.str)`must match "${e.ifClause}" schema`,params:({params:e})=>(0,t._)`{failingKeyword: ${e.ifClause}}`},code(e){let{gen:r,parentSchema:a,it:o}=e;a.then===void 0&&a.else===void 0&&(0,n.checkStrictMode)(o,`"if" without "then" and "else" is ignored`);let s=i(o,`then`),c=i(o,`else`);if(!s&&!c)return;let l=r.let(`valid`,!0),u=r.name(`_valid`);if(d(),e.reset(),s&&c){let t=r.let(`ifClause`);e.setParams({ifClause:t}),r.if(u,f(`then`,t),f(`else`,t))}else s?r.if(u,f(`then`)):r.if((0,t.not)(u),f(`else`));e.pass(l,()=>e.error(!0));function d(){let t=e.subschema({keyword:`if`,compositeRule:!0,createErrors:!1,allErrors:!1},u);e.mergeEvaluated(t)}function f(n,i){return()=>{let a=e.subschema({keyword:n},u);r.assign(l,u),e.mergeValidEvaluated(a,l),i?r.assign(i,(0,t._)`${n}`):e.setParams({ifClause:n})}}}};function i(e,t){let r=e.schema[t];return r!==void 0&&!(0,n.alwaysValidSchema)(e,r)}e.default=r})),gd=r((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=X();e.default={keyword:[`then`,`else`],schemaType:[`object`,`boolean`],code({keyword:e,parentSchema:n,it:r}){n.if===void 0&&(0,t.checkStrictMode)(r,`"${e}" without "if" is ignored`)}}})),_d=r((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=td(),n=rd(),r=nd(),i=id(),a=ad(),o=od(),s=sd(),c=cd(),l=ld(),u=ud(),d=dd(),f=fd(),p=pd(),m=md(),h=hd(),g=gd();function _(e=!1){let _=[d.default,f.default,p.default,m.default,h.default,g.default,s.default,c.default,o.default,l.default,u.default];return e?_.push(n.default,i.default):_.push(t.default,r.default),_.push(a.default),_}e.default=_})),vd=r((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=Y();e.default={keyword:`format`,type:[`number`,`string`],schemaType:`string`,$data:!0,error:{message:({schemaCode:e})=>(0,t.str)`must match format "${e}"`,params:({schemaCode:e})=>(0,t._)`{format: ${e}}`},code(e,n){let{gen:r,data:i,$data:a,schema:o,schemaCode:s,it:c}=e,{opts:l,errSchemaPath:u,schemaEnv:d,self:f}=c;if(!l.validateFormats)return;a?p():m();function p(){let a=r.scopeValue(`formats`,{ref:f.formats,code:l.code.formats}),o=r.const(`fDef`,(0,t._)`${a}[${s}]`),c=r.let(`fType`),u=r.let(`format`);r.if((0,t._)`typeof ${o} == "object" && !(${o} instanceof RegExp)`,()=>r.assign(c,(0,t._)`${o}.type || "string"`).assign(u,(0,t._)`${o}.validate`),()=>r.assign(c,(0,t._)`"string"`).assign(u,o)),e.fail$data((0,t.or)(p(),m()));function p(){return l.strictSchema===!1?t.nil:(0,t._)`${s} && !${u}`}function m(){let e=d.$async?(0,t._)`(${o}.async ? await ${u}(${i}) : ${u}(${i}))`:(0,t._)`${u}(${i})`,r=(0,t._)`(typeof ${u} == "function" ? ${e} : ${u}.test(${i}))`;return(0,t._)`${u} && ${u} !== true && ${c} === ${n} && !${r}`}}function m(){let a=f.formats[o];if(!a){m();return}if(a===!0)return;let[s,c,p]=h(a);s===n&&e.pass(g());function m(){if(l.strictSchema===!1){f.logger.warn(e());return}throw Error(e());function e(){return`unknown format "${o}" ignored in schema at path "${u}"`}}function h(e){let n=e instanceof RegExp?(0,t.regexpCode)(e):l.code.formats?(0,t._)`${l.code.formats}${(0,t.getProperty)(o)}`:void 0,i=r.scopeValue(`formats`,{key:o,ref:e,code:n});return typeof e==`object`&&!(e instanceof RegExp)?[e.type||`string`,e.validate,(0,t._)`${i}.validate`]:[`string`,e,i]}function g(){if(typeof a==`object`&&!(a instanceof RegExp)&&a.async){if(!d.$async)throw Error(`async format in sync schema`);return(0,t._)`await ${p}(${i})`}return typeof c==`function`?(0,t._)`${p}(${i})`:(0,t._)`${p}.test(${i})`}}}}})),yd=r((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=[vd().default]})),bd=r((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.contentVocabulary=e.metadataVocabulary=void 0,e.metadataVocabulary=[`title`,`description`,`default`,`deprecated`,`readOnly`,`writeOnly`,`examples`],e.contentVocabulary=[`contentMediaType`,`contentEncoding`,`contentSchema`]})),xd=r((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=Vu(),n=ed(),r=_d(),i=yd(),a=bd();e.default=[t.default,n.default,(0,r.default)(),i.default,a.metadataVocabulary,a.contentVocabulary]})),Sd=r((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.DiscrError=void 0;var t;(function(e){e.Tag=`tag`,e.Mapping=`mapping`})(t||(e.DiscrError=t={}))})),Cd=r((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=Y(),n=Sd(),r=Tu(),i=wu(),a=X();e.default={keyword:`discriminator`,type:`object`,schemaType:`object`,error:{message:({params:{discrError:e,tagName:t}})=>e===n.DiscrError.Tag?`tag "${t}" must be string`:`value of tag "${t}" must be in oneOf`,params:({params:{discrError:e,tag:n,tagName:r}})=>(0,t._)`{error: ${e}, tag: ${r}, tagValue: ${n}}`},code(e){let{gen:o,data:s,schema:c,parentSchema:l,it:u}=e,{oneOf:d}=l;if(!u.opts.discriminator)throw Error(`discriminator: requires discriminator option`);let f=c.propertyName;if(typeof f!=`string`)throw Error(`discriminator: requires propertyName`);if(c.mapping)throw Error(`discriminator: mapping is not supported`);if(!d)throw Error(`discriminator: requires oneOf keyword`);let p=o.let(`valid`,!1),m=o.const(`tag`,(0,t._)`${s}${(0,t.getProperty)(f)}`);o.if((0,t._)`typeof ${m} == "string"`,()=>h(),()=>e.error(!1,{discrError:n.DiscrError.Tag,tag:m,tagName:f})),e.ok(p);function h(){let r=_();o.if(!1);for(let e in r)o.elseIf((0,t._)`${m} === ${e}`),o.assign(p,g(r[e]));o.else(),e.error(!1,{discrError:n.DiscrError.Mapping,tag:m,tagName:f}),o.endIf()}function g(n){let r=o.name(`valid`),i=e.subschema({keyword:`oneOf`,schemaProp:n},r);return e.mergeEvaluated(i,t.Name),r}function _(){let e={},t=o(l),n=!0;for(let e=0;eEd,$schema:()=>Td,default:()=>jd,definitions:()=>Od,properties:()=>Ad,title:()=>Dd,type:()=>kd}),Td,Ed,Dd,Od,kd,Ad,jd,Md=s((()=>{Td=`http://json-schema.org/draft-07/schema#`,Ed=`http://json-schema.org/draft-07/schema#`,Dd=`Core schema meta-schema`,Od={schemaArray:{type:`array`,minItems:1,items:{$ref:`#`}},nonNegativeInteger:{type:`integer`,minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:`#/definitions/nonNegativeInteger`},{default:0}]},simpleTypes:{enum:[`array`,`boolean`,`integer`,`null`,`number`,`object`,`string`]},stringArray:{type:`array`,items:{type:`string`},uniqueItems:!0,default:[]}},kd=[`object`,`boolean`],Ad={$id:{type:`string`,format:`uri-reference`},$schema:{type:`string`,format:`uri`},$ref:{type:`string`,format:`uri-reference`},$comment:{type:`string`},title:{type:`string`},description:{type:`string`},default:!0,readOnly:{type:`boolean`,default:!1},examples:{type:`array`,items:!0},multipleOf:{type:`number`,exclusiveMinimum:0},maximum:{type:`number`},exclusiveMaximum:{type:`number`},minimum:{type:`number`},exclusiveMinimum:{type:`number`},maxLength:{$ref:`#/definitions/nonNegativeInteger`},minLength:{$ref:`#/definitions/nonNegativeIntegerDefault0`},pattern:{type:`string`,format:`regex`},additionalItems:{$ref:`#`},items:{anyOf:[{$ref:`#`},{$ref:`#/definitions/schemaArray`}],default:!0},maxItems:{$ref:`#/definitions/nonNegativeInteger`},minItems:{$ref:`#/definitions/nonNegativeIntegerDefault0`},uniqueItems:{type:`boolean`,default:!1},contains:{$ref:`#`},maxProperties:{$ref:`#/definitions/nonNegativeInteger`},minProperties:{$ref:`#/definitions/nonNegativeIntegerDefault0`},required:{$ref:`#/definitions/stringArray`},additionalProperties:{$ref:`#`},definitions:{type:`object`,additionalProperties:{$ref:`#`},default:{}},properties:{type:`object`,additionalProperties:{$ref:`#`},default:{}},patternProperties:{type:`object`,additionalProperties:{$ref:`#`},propertyNames:{format:`regex`},default:{}},dependencies:{type:`object`,additionalProperties:{anyOf:[{$ref:`#`},{$ref:`#/definitions/stringArray`}]}},propertyNames:{$ref:`#`},const:!0,enum:{type:`array`,items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:`#/definitions/simpleTypes`},{type:`array`,items:{$ref:`#/definitions/simpleTypes`},minItems:1,uniqueItems:!0}]},format:{type:`string`},contentMediaType:{type:`string`},contentEncoding:{type:`string`},if:{$ref:`#`},then:{$ref:`#`},else:{$ref:`#`},allOf:{$ref:`#/definitions/schemaArray`},anyOf:{$ref:`#/definitions/schemaArray`},oneOf:{$ref:`#/definitions/schemaArray`},not:{$ref:`#`}},jd={$schema:Td,$id:Ed,title:Dd,definitions:Od,type:kd,properties:Ad,default:!0}})),Nd=r(((e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.MissingRefError=e.ValidationError=e.CodeGen=e.Name=e.nil=e.stringify=e.str=e._=e.KeywordCxt=e.Ajv=void 0;var n=Ru(),r=xd(),a=Cd(),o=(Md(),i(wd).default),s=[`/properties`],c=`http://json-schema.org/draft-07/schema`,l=class extends n.default{_addVocabularies(){super._addVocabularies(),r.default.forEach(e=>this.addVocabulary(e)),this.opts.discriminator&&this.addKeyword(a.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;let e=this.opts.$data?this.$dataMetaSchema(o,s):o;this.addMetaSchema(e,c,!1),this.refs[`http://json-schema.org/schema`]=c}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(c)?c:void 0)}};e.Ajv=l,t.exports=e=l,t.exports.Ajv=l,Object.defineProperty(e,"__esModule",{value:!0}),e.default=l;var u=Su();Object.defineProperty(e,"KeywordCxt",{enumerable:!0,get:function(){return u.KeywordCxt}});var d=Y();Object.defineProperty(e,"_",{enumerable:!0,get:function(){return d._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return d.str}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return d.stringify}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return d.nil}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return d.Name}}),Object.defineProperty(e,"CodeGen",{enumerable:!0,get:function(){return d.CodeGen}});var f=Cu();Object.defineProperty(e,"ValidationError",{enumerable:!0,get:function(){return f.default}});var p=wu();Object.defineProperty(e,"MissingRefError",{enumerable:!0,get:function(){return p.default}})})),Pd=r((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.formatNames=e.fastFormats=e.fullFormats=void 0;function t(e,t){return{validate:e,compare:t}}e.fullFormats={date:t(a,o),time:t(c(!0),l),"date-time":t(f(!0),p),"iso-time":t(c(),u),"iso-date-time":t(f(),m),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:_,"uri-reference":/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,"uri-template":/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,url:/^(?:https?|ftp):\/\/(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)(?:\.(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)*(?:\.(?:[a-z\u{00a1}-\u{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/iu,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)$/,ipv6:/^((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9a-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){4}(((:[0-9a-f]{1,4}){1,3})|((:[0-9a-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){3}(((:[0-9a-f]{1,4}){1,4})|((:[0-9a-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))$/i,regex:ne,uuid:/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,"json-pointer":/^(?:\/(?:[^~/]|~0|~1)*)*$/,"json-pointer-uri-fragment":/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,"relative-json-pointer":/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/,byte:y,int32:{type:`number`,validate:S},int64:{type:`number`,validate:C},float:{type:`number`,validate:ee},double:{type:`number`,validate:ee},password:!0,binary:!0},e.fastFormats={...e.fullFormats,date:t(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,o),time:t(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,l),"date-time":t(/^\d\d\d\d-[0-1]\d-[0-3]\dt(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,p),"iso-time":t(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,u),"iso-date-time":t(/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,m),uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i},e.formatNames=Object.keys(e.fullFormats);function n(e){return e%4==0&&(e%100!=0||e%400==0)}var r=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,i=[0,31,28,31,30,31,30,31,31,30,31,30,31];function a(e){let t=r.exec(e);if(!t)return!1;let a=+t[1],o=+t[2],s=+t[3];return o>=1&&o<=12&&s>=1&&s<=(o===2&&n(a)?29:i[o])}function o(e,t){if(e&&t)return e>t?1:e23||u>59||e&&!o)return!1;if(r<=23&&i<=59&&a<60)return!0;let d=i-u*c,f=r-l*c-+(d<0);return(f===23||f===-1)&&(d===59||d===-1)&&a<61}}function l(e,t){if(!(e&&t))return;let n=new Date(`2020-01-01T`+e).valueOf(),r=new Date(`2020-01-01T`+t).valueOf();if(n&&r)return n-r}function u(e,t){if(!(e&&t))return;let n=s.exec(e),r=s.exec(t);if(n&&r)return e=n[1]+n[2]+n[3],t=r[1]+r[2]+r[3],e>t?1:e=b}function C(e){return Number.isInteger(e)}function ee(){return!0}var te=/[^\\]\\Z/;function ne(e){if(te.test(e))return!1;try{return new RegExp(e),!0}catch{return!1}}})),Fd=r((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.formatLimitDefinition=void 0;var t=Nd(),n=Y(),r=n.operators,i={formatMaximum:{okStr:`<=`,ok:r.LTE,fail:r.GT},formatMinimum:{okStr:`>=`,ok:r.GTE,fail:r.LT},formatExclusiveMaximum:{okStr:`<`,ok:r.LT,fail:r.GTE},formatExclusiveMinimum:{okStr:`>`,ok:r.GT,fail:r.LTE}};e.formatLimitDefinition={keyword:Object.keys(i),type:`string`,schemaType:`string`,$data:!0,error:{message:({keyword:e,schemaCode:t})=>(0,n.str)`should be ${i[e].okStr} ${t}`,params:({keyword:e,schemaCode:t})=>(0,n._)`{comparison: ${i[e].okStr}, limit: ${t}}`},code(e){let{gen:r,data:a,schemaCode:o,keyword:s,it:c}=e,{opts:l,self:u}=c;if(!l.validateFormats)return;let d=new t.KeywordCxt(c,u.RULES.all.format.definition,`format`);d.$data?f():p();function f(){let t=r.scopeValue(`formats`,{ref:u.formats,code:l.code.formats}),i=r.const(`fmt`,(0,n._)`${t}[${d.schemaCode}]`);e.fail$data((0,n.or)((0,n._)`typeof ${i} != "object"`,(0,n._)`${i} instanceof RegExp`,(0,n._)`typeof ${i}.compare != "function"`,m(i)))}function p(){let t=d.schema,i=u.formats[t];if(!i||i===!0)return;if(typeof i!=`object`||i instanceof RegExp||typeof i.compare!=`function`)throw Error(`"${s}": format "${t}" does not define "compare" function`);let a=r.scopeValue(`formats`,{key:t,ref:i,code:l.code.formats?(0,n._)`${l.code.formats}${(0,n.getProperty)(t)}`:void 0});e.fail$data(m(a))}function m(e){return(0,n._)`${e}.compare(${a}, ${o}) ${i[s].fail} 0`}},dependencies:[`format`]},e.default=t=>(t.addKeyword(e.formatLimitDefinition),t)})),Id=r(((e,t)=>{Object.defineProperty(e,"__esModule",{value:!0});var n=Pd(),r=Fd(),i=Y(),a=new i.Name(`fullFormats`),o=new i.Name(`fastFormats`),s=(e,t={keywords:!0})=>{if(Array.isArray(t))return c(e,t,n.fullFormats,a),e;let[i,s]=t.mode===`fast`?[n.fastFormats,o]:[n.fullFormats,a];return c(e,t.formats||n.formatNames,i,s),t.keywords&&(0,r.default)(e),e};s.get=(e,t=`full`)=>{let r=(t===`fast`?n.fastFormats:n.fullFormats)[e];if(!r)throw Error(`Unknown format "${e}"`);return r};function c(e,t,n,r){var a;(a=e.opts.code).formats??(a.formats=(0,i._)`require("ajv-formats/dist/formats").${r}`);for(let r of t)e.addFormat(r,n[r])}t.exports=e=s,Object.defineProperty(e,"__esModule",{value:!0}),e.default=s})),Ld=e(Nd(),1),Rd=e(Id(),1);function zd(){let e=new Ld.default({strict:!1,validateFormats:!0,validateSchema:!1,allErrors:!0});return(0,Rd.default)(e),e}var Bd=class{constructor(e){this._ajv=e??zd()}getValidator(e){let t=`$id`in e&&typeof e.$id==`string`?this._ajv.getSchema(e.$id)??this._ajv.compile(e):this._ajv.compile(e);return e=>t(e)?{valid:!0,data:e,errorMessage:void 0}:{valid:!1,data:void 0,errorMessage:this._ajv.errorsText(t.errors)}}},Vd=class{constructor(e){this._client=e}async*callToolStream(e,t=Fc,n){let r=this._client,i={...n,task:n?.task??(r.isToolTask(e.name)?{}:void 0)},a=r.requestStream({method:`tools/call`,params:e},t,i),o=r.getToolOutputValidator(e.name);for await(let t of a){if(t.type===`result`&&o){let n=t.result;if(!n.structuredContent&&!n.isError){yield{type:`error`,error:new J(q.InvalidRequest,`Tool ${e.name} has an output schema but did not return structured content`)};return}if(n.structuredContent)try{let e=o(n.structuredContent);if(!e.valid){yield{type:`error`,error:new J(q.InvalidParams,`Structured content does not match the tool's output schema: ${e.errorMessage}`)};return}}catch(e){if(e instanceof J){yield{type:`error`,error:e};return}yield{type:`error`,error:new J(q.InvalidParams,`Failed to validate structured content: ${e instanceof Error?e.message:String(e)}`)};return}}yield t}}async getTask(e,t){return this._client.getTask({taskId:e},t)}async getTaskResult(e,t,n){return this._client.getTaskResult({taskId:e},t,n)}async listTasks(e,t){return this._client.listTasks(e?{cursor:e}:void 0,t)}async cancelTask(e,t){return this._client.cancelTask({taskId:e},t)}requestStream(e,t,n){return this._client.requestStream(e,t,n)}};function Hd(e,t,n){if(!e)throw Error(`${n} does not support task creation (required for ${t})`);if(t===`tools/call`&&!e.tools?.call)throw Error(`${n} does not support task creation for tools/call (required for ${t})`)}function Ud(e,t,n){if(!e)throw Error(`${n} does not support task creation (required for ${t})`);switch(t){case`sampling/createMessage`:if(!e.sampling?.createMessage)throw Error(`${n} does not support task creation for sampling/createMessage (required for ${t})`);break;case`elicitation/create`:if(!e.elicitation?.create)throw Error(`${n} does not support task creation for elicitation/create (required for ${t})`)}}function Wd(e,t){if(!(!e||typeof t!=`object`||!t)){if(e.type===`object`&&e.properties&&typeof e.properties==`object`){let n=t,r=e.properties;for(let e of Object.keys(r)){let t=r[e];n[e]===void 0&&Object.prototype.hasOwnProperty.call(t,`default`)&&(n[e]=t.default),n[e]!==void 0&&Wd(t,n[e])}}if(Array.isArray(e.anyOf))for(let n of e.anyOf)typeof n!=`boolean`&&Wd(n,t);if(Array.isArray(e.oneOf))for(let n of e.oneOf)typeof n!=`boolean`&&Wd(n,t)}}function Gd(e){if(!e)return{supportsFormMode:!1,supportsUrlMode:!1};let t=e.form!==void 0,n=e.url!==void 0;return{supportsFormMode:t||!t&&!n,supportsUrlMode:n}}var Kd=class extends kl{constructor(e,t){super(t),this._clientInfo=e,this._cachedToolOutputValidators=new Map,this._cachedKnownTaskTools=new Set,this._cachedRequiredTaskTools=new Set,this._listChangedDebounceTimers=new Map,this._capabilities=t?.capabilities??{},this._jsonSchemaValidator=t?.jsonSchemaValidator??new Bd,t?.listChanged&&(this._pendingListChangedConfig=t.listChanged)}_setupListChangedHandlers(e){e.tools&&this._serverCapabilities?.tools?.listChanged&&this._setupListChangedHandler(`tools`,Rc,e.tools,async()=>(await this.listTools()).tools),e.prompts&&this._serverCapabilities?.prompts?.listChanged&&this._setupListChangedHandler(`prompts`,kc,e.prompts,async()=>(await this.listPrompts()).prompts),e.resources&&this._serverCapabilities?.resources?.listChanged&&this._setupListChangedHandler(`resources`,sc,e.resources,async()=>(await this.listResources()).resources)}get experimental(){return this._experimental||={tasks:new Vd(this)},this._experimental}registerCapabilities(e){if(this.transport)throw Error(`Cannot register capabilities after connecting to transport`);this._capabilities=jl(this._capabilities,e)}setRequestHandler(e,t){let n=wl(e)?.method;if(!n)throw Error(`Schema is missing a method literal`);let r=Tl(n);if(typeof r!=`string`)throw Error(`Schema method literal must be a string`);let i=r;return i===`elicitation/create`?super.setRequestHandler(e,async(e,n)=>{let r=Cl(cl,e);if(!r.success){let e=r.error instanceof Error?r.error.message:String(r.error);throw new J(q.InvalidParams,`Invalid elicitation request: ${e}`)}let{params:i}=r.data;i.mode=i.mode??`form`;let{supportsFormMode:a,supportsUrlMode:o}=Gd(this._capabilities.elicitation);if(i.mode===`form`&&!a)throw new J(q.InvalidParams,`Client does not support form-mode elicitation requests`);if(i.mode===`url`&&!o)throw new J(q.InvalidParams,`Client does not support URL-mode elicitation requests`);let s=await Promise.resolve(t(e,n));if(i.task){let e=Cl(Fs,s);if(!e.success){let t=e.error instanceof Error?e.error.message:String(e.error);throw new J(q.InvalidParams,`Invalid task creation result: ${t}`)}return e.data}let c=Cl(dl,s);if(!c.success){let e=c.error instanceof Error?c.error.message:String(c.error);throw new J(q.InvalidParams,`Invalid elicitation result: ${e}`)}let l=c.data,u=i.mode===`form`?i.requestedSchema:void 0;if(i.mode===`form`&&l.action===`accept`&&l.content&&u&&this._capabilities.elicitation?.form?.applyDefaults)try{Wd(u,l.content)}catch{}return l}):i===`sampling/createMessage`?super.setRequestHandler(e,async(e,n)=>{let r=Cl(Qc,e);if(!r.success){let e=r.error instanceof Error?r.error.message:String(r.error);throw new J(q.InvalidParams,`Invalid sampling request: ${e}`)}let{params:i}=r.data,a=await Promise.resolve(t(e,n));if(i.task){let e=Cl(Fs,a);if(!e.success){let t=e.error instanceof Error?e.error.message:String(e.error);throw new J(q.InvalidParams,`Invalid task creation result: ${t}`)}return e.data}let o=Cl(i.tools||i.toolChoice?el:$c,a);if(!o.success){let e=o.error instanceof Error?o.error.message:String(o.error);throw new J(q.InvalidParams,`Invalid sampling result: ${e}`)}return o.data}):super.setRequestHandler(e,t)}assertCapability(e,t){if(!this._serverCapabilities?.[e])throw Error(`Server does not support ${e} (required for ${t})`)}async connect(e,t){if(await super.connect(e),e.sessionId===void 0)try{let n=await this.request({method:`initialize`,params:{protocolVersion:Vo,capabilities:this._capabilities,clientInfo:this._clientInfo}},Cs,t);if(n===void 0)throw Error(`Server sent invalid initialize result: ${n}`);if(!Ho.includes(n.protocolVersion))throw Error(`Server's protocol version is not supported: ${n.protocolVersion}`);this._serverCapabilities=n.capabilities,this._serverVersion=n.serverInfo,e.setProtocolVersion&&e.setProtocolVersion(n.protocolVersion),this._instructions=n.instructions,await this.notification({method:`notifications/initialized`}),this._pendingListChangedConfig&&=(this._setupListChangedHandlers(this._pendingListChangedConfig),void 0)}catch(e){throw this.close(),e}}getServerCapabilities(){return this._serverCapabilities}getServerVersion(){return this._serverVersion}getInstructions(){return this._instructions}assertCapabilityForMethod(e){switch(e){case`logging/setLevel`:if(!this._serverCapabilities?.logging)throw Error(`Server does not support logging (required for ${e})`);break;case`prompts/get`:case`prompts/list`:if(!this._serverCapabilities?.prompts)throw Error(`Server does not support prompts (required for ${e})`);break;case`resources/list`:case`resources/templates/list`:case`resources/read`:case`resources/subscribe`:case`resources/unsubscribe`:if(!this._serverCapabilities?.resources)throw Error(`Server does not support resources (required for ${e})`);if(e===`resources/subscribe`&&!this._serverCapabilities.resources.subscribe)throw Error(`Server does not support resource subscriptions (required for ${e})`);break;case`tools/call`:case`tools/list`:if(!this._serverCapabilities?.tools)throw Error(`Server does not support tools (required for ${e})`);break;case`completion/complete`:if(!this._serverCapabilities?.completions)throw Error(`Server does not support completions (required for ${e})`)}}assertNotificationCapability(e){if(e===`notifications/roots/list_changed`&&!this._capabilities.roots?.listChanged)throw Error(`Client does not support roots list changed notifications (required for ${e})`)}assertRequestHandlerCapability(e){if(this._capabilities)switch(e){case`sampling/createMessage`:if(!this._capabilities.sampling)throw Error(`Client does not support sampling capability (required for ${e})`);break;case`elicitation/create`:if(!this._capabilities.elicitation)throw Error(`Client does not support elicitation capability (required for ${e})`);break;case`roots/list`:if(!this._capabilities.roots)throw Error(`Client does not support roots capability (required for ${e})`);break;case`tasks/get`:case`tasks/list`:case`tasks/result`:case`tasks/cancel`:if(!this._capabilities.tasks)throw Error(`Client does not support tasks capability (required for ${e})`)}}assertTaskCapability(e){Hd(this._serverCapabilities?.tasks?.requests,e,`Server`)}assertTaskHandlerCapability(e){this._capabilities&&Ud(this._capabilities.tasks?.requests,e,`Client`)}async ping(e){return this.request({method:`ping`},us,e)}async complete(e,t){return this.request({method:`completion/complete`,params:e},gl,t)}async setLoggingLevel(e,t){return this.request({method:`logging/setLevel`,params:{level:e}},us,t)}async getPrompt(e,t){return this.request({method:`prompts/get`,params:e},Oc,t)}async listPrompts(e,t){return this.request({method:`prompts/list`,params:e},_c,t)}async listResources(e,t){return this.request({method:`resources/list`,params:e},ec,t)}async listResourceTemplates(e,t){return this.request({method:`resources/templates/list`,params:e},nc,t)}async readResource(e,t){return this.request({method:`resources/read`,params:e},oc,t)}async subscribeResource(e,t){return this.request({method:`resources/subscribe`,params:e},us,t)}async unsubscribeResource(e,t){return this.request({method:`resources/unsubscribe`,params:e},us,t)}async callTool(e,t=Fc,n){if(this.isToolTaskRequired(e.name))throw new J(q.InvalidRequest,`Tool "${e.name}" requires task-based execution. Use client.experimental.tasks.callToolStream() instead.`);let r=await this.request({method:`tools/call`,params:e},t,n),i=this.getToolOutputValidator(e.name);if(i){if(!r.structuredContent&&!r.isError)throw new J(q.InvalidRequest,`Tool ${e.name} has an output schema but did not return structured content`);if(r.structuredContent)try{let e=i(r.structuredContent);if(!e.valid)throw new J(q.InvalidParams,`Structured content does not match the tool's output schema: ${e.errorMessage}`)}catch(e){throw e instanceof J?e:new J(q.InvalidParams,`Failed to validate structured content: ${e instanceof Error?e.message:String(e)}`)}}return r}isToolTask(e){return this._serverCapabilities?.tasks?.requests?.tools?.call?this._cachedKnownTaskTools.has(e):!1}isToolTaskRequired(e){return this._cachedRequiredTaskTools.has(e)}cacheToolMetadata(e){this._cachedToolOutputValidators.clear(),this._cachedKnownTaskTools.clear(),this._cachedRequiredTaskTools.clear();for(let t of e){if(t.outputSchema){let e=this._jsonSchemaValidator.getValidator(t.outputSchema);this._cachedToolOutputValidators.set(t.name,e)}let e=t.execution?.taskSupport;(e===`required`||e===`optional`)&&this._cachedKnownTaskTools.add(t.name),e===`required`&&this._cachedRequiredTaskTools.add(t.name)}}getToolOutputValidator(e){return this._cachedToolOutputValidators.get(e)}async listTools(e,t){let n=await this.request({method:`tools/list`,params:e},Pc,t);return this.cacheToolMetadata(n.tools),n}_setupListChangedHandler(e,t,n,r){let i=zc.safeParse(n);if(!i.success)throw Error(`Invalid ${e} listChanged options: ${i.error.message}`);if(typeof n.onChanged!=`function`)throw Error(`Invalid ${e} listChanged options: onChanged must be a function`);let{autoRefresh:a,debounceMs:o}=i.data,{onChanged:s}=n,c=async()=>{if(!a){s(null,null);return}try{let e=await r();s(null,e)}catch(e){let t=e instanceof Error?e:Error(String(e));s(t,null)}};this.setNotificationHandler(t,()=>{if(o){let t=this._listChangedDebounceTimers.get(e);t&&clearTimeout(t);let n=setTimeout(c,o);this._listChangedDebounceTimers.set(e,n)}else c()})}async sendRootsListChanged(){return this.notification({method:`notifications/roots/list_changed`})}},qd=e(r((e=>{var t=/; *([!#$%&'*+.^_`|~0-9A-Za-z-]+) *= *("(?:[\u000b\u0020\u0021\u0023-\u005b\u005d-\u007e\u0080-\u00ff]|\\[\u000b\u0020-\u00ff])*"|[!#$%&'*+.^_`|~0-9A-Za-z-]+) */g,n=/\\([\u000b\u0020-\u00ff])/g,r=/^[!#$%&'*+.^_`|~0-9A-Za-z-]+\/[!#$%&'*+.^_`|~0-9A-Za-z-]+$/;e.parse=i;function i(e){if(!e)throw TypeError(`argument string is required`);var i=typeof e==`object`?a(e):e;if(typeof i!=`string`)throw TypeError(`argument string is required to be a string`);var s=i.indexOf(`;`),c=s===-1?i.trim():i.slice(0,s).trim();if(!r.test(c))throw TypeError(`invalid media type`);var l=new o(c.toLowerCase());if(s!==-1){var u,d,f;for(t.lastIndex=s;d=t.exec(i);){if(d.index!==s)throw TypeError(`invalid parameter format`);s+=d[0].length,u=d[1].toLowerCase(),f=d[2],f.charCodeAt(0)===34&&(f=f.slice(1,-1),f.indexOf(`\\`)!==-1&&(f=f.replace(n,`$1`))),l.parameters[u]=f}if(s!==i.length)throw TypeError(`invalid parameter format`)}return l}function a(e){var t;if(typeof e.getHeader==`function`?t=e.getHeader(`content-type`):typeof e.headers==`object`&&(t=e.headers&&e.headers[`content-type`]),typeof t!=`string`)throw TypeError(`content-type header is missing from object`);return t}function o(e){this.parameters=Object.create(null),this.type=e}}))(),1);function Jd(e){if(e)try{return qd.parse(e).type}catch{let t=(e.split(`;`,1)[0]??``).trim().toLowerCase();return t===``||e.slice(t.length).includes(`,`)?void 0:t}}function Yd(e){return e?e instanceof Headers?Object.fromEntries(e.entries()):Array.isArray(e)?Object.fromEntries(e):{...e}:{}}function Xd(e=fetch,t){return t?async(n,r)=>e(n,{...t,...r,headers:r?.headers?{...Yd(t.headers),...Yd(r.headers)}:t.headers}):e}var Zd=globalThis.crypto;async function Qd(e){return(await Zd).getRandomValues(new Uint8Array(e))}async function $d(e){let t=``;for(;t.length128)throw`Expected a length between 43 and 128. Received ${e}.`;let t=await ef(e);return{code_verifier:t,code_challenge:await tf(t)}}var Z=Ea().superRefine((e,t)=>{if(!URL.canParse(e))return t.addIssue({code:Ro.custom,message:`URL must be parseable`,fatal:!0}),g}).refine(e=>{let t=new URL(e);return t.protocol!==`javascript:`&&t.protocol!==`data:`&&t.protocol!==`vbscript:`},{message:`URL cannot use javascript:, data:, or vbscript: scheme`}),rf=z({resource:M().url(),authorization_servers:L(Z).optional(),jwks_uri:M().url().optional(),scopes_supported:L(M()).optional(),bearer_methods_supported:L(M()).optional(),resource_signing_alg_values_supported:L(M()).optional(),resource_name:M().optional(),resource_documentation:M().optional(),resource_policy_uri:M().url().optional(),resource_tos_uri:M().url().optional(),tls_client_certificate_bound_access_tokens:F().optional(),authorization_details_types_supported:L(M()).optional(),dpop_signing_alg_values_supported:L(M()).optional(),dpop_bound_access_tokens_required:F().optional()}),af=z({issuer:M(),authorization_endpoint:Z,token_endpoint:Z,registration_endpoint:Z.optional(),scopes_supported:L(M()).optional(),response_types_supported:L(M()),response_modes_supported:L(M()).optional(),grant_types_supported:L(M()).optional(),token_endpoint_auth_methods_supported:L(M()).optional(),token_endpoint_auth_signing_alg_values_supported:L(M()).optional(),service_documentation:Z.optional(),revocation_endpoint:Z.optional(),revocation_endpoint_auth_methods_supported:L(M()).optional(),revocation_endpoint_auth_signing_alg_values_supported:L(M()).optional(),introspection_endpoint:M().optional(),introspection_endpoint_auth_methods_supported:L(M()).optional(),introspection_endpoint_auth_signing_alg_values_supported:L(M()).optional(),code_challenge_methods_supported:L(M()).optional(),client_id_metadata_document_supported:F().optional()}),of=R({...z({issuer:M(),authorization_endpoint:Z,token_endpoint:Z,userinfo_endpoint:Z.optional(),jwks_uri:Z,registration_endpoint:Z.optional(),scopes_supported:L(M()).optional(),response_types_supported:L(M()),response_modes_supported:L(M()).optional(),grant_types_supported:L(M()).optional(),acr_values_supported:L(M()).optional(),subject_types_supported:L(M()),id_token_signing_alg_values_supported:L(M()),id_token_encryption_alg_values_supported:L(M()).optional(),id_token_encryption_enc_values_supported:L(M()).optional(),userinfo_signing_alg_values_supported:L(M()).optional(),userinfo_encryption_alg_values_supported:L(M()).optional(),userinfo_encryption_enc_values_supported:L(M()).optional(),request_object_signing_alg_values_supported:L(M()).optional(),request_object_encryption_alg_values_supported:L(M()).optional(),request_object_encryption_enc_values_supported:L(M()).optional(),token_endpoint_auth_methods_supported:L(M()).optional(),token_endpoint_auth_signing_alg_values_supported:L(M()).optional(),display_values_supported:L(M()).optional(),claim_types_supported:L(M()).optional(),claims_supported:L(M()).optional(),service_documentation:M().optional(),claims_locales_supported:L(M()).optional(),ui_locales_supported:L(M()).optional(),claims_parameter_supported:F().optional(),request_parameter_supported:F().optional(),request_uri_parameter_supported:F().optional(),require_request_uri_registration:F().optional(),op_policy_uri:Z.optional(),op_tos_uri:Z.optional(),client_id_metadata_document_supported:F().optional()}).shape,...af.pick({code_challenge_methods_supported:!0}).shape}),sf=R({access_token:M(),id_token:M().optional(),token_type:M(),expires_in:Bo().optional(),scope:M().optional(),refresh_token:M().optional()}).strip(),cf=R({error:M(),error_description:M().optional(),error_uri:M().optional()}),lf=Z.optional().or(H(``).transform(()=>void 0)),uf=R({redirect_uris:L(Z),token_endpoint_auth_method:M().optional(),grant_types:L(M()).optional(),response_types:L(M()).optional(),client_name:M().optional(),client_uri:Z.optional(),logo_uri:lf,scope:M().optional(),contacts:L(M()).optional(),tos_uri:lf,policy_uri:M().optional(),jwks_uri:Z.optional(),jwks:Za().optional(),software_id:M().optional(),software_version:M().optional(),software_statement:M().optional()}).strip(),df=R({client_id:M(),client_secret:M().optional(),client_id_issued_at:P().optional(),client_secret_expires_at:P().optional()}).strip(),ff=uf.merge(df);R({error:M(),error_description:M().optional()}).strip(),R({token:M(),token_type_hint:M().optional()}).strip();function pf(e){let t=typeof e==`string`?new URL(e):new URL(e.href);return t.hash=``,t}function mf({requestedResource:e,configuredResource:t}){let n=typeof e==`string`?new URL(e):new URL(e.href),r=typeof t==`string`?new URL(t):new URL(t.href);if(n.origin!==r.origin||n.pathname.length=400&&e.status<500&&t!==`/`}async function ep(e,t,n,r){let i=new URL(e),a=r?.protocolVersion??`2025-11-25`,o;if(r?.metadataUrl)o=new URL(r.metadataUrl);else{let e=Zf(t,i.pathname);o=new URL(e,r?.metadataServerUrl??i),o.search=i.search}let s=await Qf(o,a,n);return!r?.metadataUrl&&$f(s,i.pathname)&&(s=await Qf(new URL(`/.well-known/${t}`,i),a,n)),s}function tp(e){let t=typeof e==`string`?new URL(e):e,n=t.pathname!==`/`,r=[];if(!n)return r.push({url:new URL(`/.well-known/oauth-authorization-server`,t.origin),type:`oauth`}),r.push({url:new URL(`/.well-known/openid-configuration`,t.origin),type:`oidc`}),r;let i=t.pathname;return i.endsWith(`/`)&&(i=i.slice(0,-1)),r.push({url:new URL(`/.well-known/oauth-authorization-server${i}`,t.origin),type:`oauth`}),r.push({url:new URL(`/.well-known/openid-configuration${i}`,t.origin),type:`oidc`}),r.push({url:new URL(`${i}/.well-known/openid-configuration`,t.origin),type:`oidc`}),r}async function np(e,{fetchFn:t=fetch,protocolVersion:n=Vo}={}){let r={"MCP-Protocol-Version":n,Accept:`application/json`},i=tp(e);for(let{url:e,type:n}of i){let i=await Xf(e,r,t);if(i){if(!i.ok){if(await i.body?.cancel(),i.status>=400&&i.status<500)continue;throw Error(`HTTP ${i.status} trying to load ${n===`oauth`?`OAuth`:`OpenID provider`} metadata from ${e}`)}return n===`oauth`?af.parse(await i.json()):of.parse(await i.json())}}}async function rp(e,t){let n,r;try{n=await Yf(e,{resourceMetadataUrl:t?.resourceMetadataUrl},t?.fetchFn),n.authorization_servers&&n.authorization_servers.length>0&&(r=n.authorization_servers[0])}catch{}r||=String(new URL(`/`,e));let i=await np(r,{fetchFn:t?.fetchFn});return{authorizationServerUrl:r,authorizationServerMetadata:i,resourceMetadata:n}}async function ip(e,{metadata:t,clientInformation:n,redirectUrl:r,scope:i,state:a,resource:o}){let s;if(t){if(s=new URL(t.authorization_endpoint),!t.response_types_supported.includes(Ff))throw Error(`Incompatible auth server: does not support response type ${Ff}`);if(t.code_challenge_methods_supported&&!t.code_challenge_methods_supported.includes(If))throw Error(`Incompatible auth server: does not support code challenge method ${If}`)}else s=new URL(`/authorize`,e);let c=await nf(),l=c.code_verifier,u=c.code_challenge;return s.searchParams.set(`response_type`,Ff),s.searchParams.set(`client_id`,n.client_id),s.searchParams.set(`code_challenge`,u),s.searchParams.set(`code_challenge_method`,If),s.searchParams.set(`redirect_uri`,String(r)),a&&s.searchParams.set(`state`,a),i&&s.searchParams.set(`scope`,i),i?.includes(`offline_access`)&&s.searchParams.append(`prompt`,`consent`),o&&s.searchParams.set(`resource`,o.href),{authorizationUrl:s,codeVerifier:l}}function ap(e,t,n){return new URLSearchParams({grant_type:`authorization_code`,code:e,code_verifier:t,redirect_uri:String(n)})}async function op(e,{metadata:t,tokenRequestParams:n,clientInformation:r,addClientAuthentication:i,resource:a,fetchFn:o}){let s=t?.token_endpoint?new URL(t.token_endpoint):new URL(`/token`,e),c=new Headers({"Content-Type":`application/x-www-form-urlencoded`,Accept:`application/json`});a&&n.set(`resource`,a.href),i?await i(c,n,s,t):r&&Rf(Lf(r,t?.token_endpoint_auth_methods_supported??[]),r,c,n);let l=await(o??fetch)(s,{method:`POST`,headers:c,body:n});if(!l.ok)throw await Hf(l);return sf.parse(await l.json())}async function sp(e,{metadata:t,clientInformation:n,refreshToken:r,resource:i,addClientAuthentication:a,fetchFn:o}){return{refresh_token:r,...await op(e,{metadata:t,tokenRequestParams:new URLSearchParams({grant_type:`refresh_token`,refresh_token:r}),clientInformation:n,addClientAuthentication:a,resource:i,fetchFn:o})}}async function cp(e,t,{metadata:n,resource:r,authorizationCode:i,fetchFn:a}={}){let o=e.clientMetadata.scope,s;if(e.prepareTokenRequest&&(s=await e.prepareTokenRequest(o)),!s){if(!i)throw Error(`Either provider.prepareTokenRequest() or authorizationCode is required`);if(!e.redirectUrl)throw Error(`redirectUrl is required for authorization_code flow`);s=ap(i,await e.codeVerifier(),e.redirectUrl)}let c=await e.clientInformation();return op(t,{metadata:n,tokenRequestParams:s,clientInformation:c??void 0,addClientAuthentication:e.addClientAuthentication,resource:r,fetchFn:a})}async function lp(e,{metadata:t,clientMetadata:n,scope:r,fetchFn:i}){let a;if(t){if(!t.registration_endpoint)throw Error(`Incompatible auth server: does not support dynamic client registration`);a=new URL(t.registration_endpoint)}else a=new URL(`/register`,e);let o=await(i??fetch)(a,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({...n,...r===void 0?{}:{scope:r}})});if(!o.ok)throw await Hf(o);return ff.parse(await o.json())}var up=class extends Error{constructor(e,t){super(e),this.name=`ParseError`,this.type=t.type,this.field=t.field,this.value=t.value,this.line=t.line}},dp=10,fp=13,pp=32;function mp(e){}function hp(e){if(typeof e==`function`)throw TypeError("`config` must be an object, got a function instead. Did you mean `createParser({onEvent: fn})`?");let{onEvent:t=mp,onError:n=mp,onRetry:r=mp,onComment:i,maxBufferSize:a}=e,o=[],s=0,c=!0,l,u=``,d=0,f,p=!1;function m(e){if(p)throw Error("Cannot feed parser: it was terminated after exceeding the configured max buffer size. Call `reset()` to resume parsing.");if(c&&(c=!1,e.charCodeAt(0)===239&&e.charCodeAt(1)===187&&e.charCodeAt(2)===191&&(e=e.slice(3))),o.length===0){let t=g(e);t!==``&&(o.push(t),s=t.length),h();return}if(e.indexOf(` +`)===-1&&e.indexOf(`\r`)===-1){o.push(e),s+=e.length,h();return}o.push(e);let t=o.join(``);o.length=0,s=0;let n=g(t);n!==``&&(o.push(n),s=n.length),h()}function h(){a!==void 0&&(s+u.length<=a||(p=!0,o.length=0,s=0,l=void 0,u=``,d=0,f=void 0,n(new up(`Buffered data exceeded max buffer size of ${a} characters`,{type:`max-buffer-size-exceeded`}))))}function g(e){let n=0;if(e.indexOf(`\r`)===-1){let r=e.indexOf(` +`,n);for(;r!==-1;){if(n===r){d>0&&t({id:l,event:f,data:u}),l=void 0,u=``,d=0,f=void 0,n=r+1,r=e.indexOf(` +`,n);continue}let i=e.charCodeAt(n);if(gp(e,n,i)){let i=e.charCodeAt(n+5)===pp?n+6:n+5,a=e.slice(i,r);if(d===0&&e.charCodeAt(r+1)===dp){t({id:l,event:f,data:a}),l=void 0,u=``,f=void 0,n=r+2,r=e.indexOf(` +`,n);continue}u=d===0?a:`${u} +${a}`,d++}else _p(e,n,i)?f=e.slice(e.charCodeAt(n+6)===pp?n+7:n+6,r)||void 0:_(e,n,r);n=r+1,r=e.indexOf(` +`,n)}return e.slice(n)}for(;n20?`${e.slice(0,20)}\u2026`:e}"`,{type:`unknown-field`,field:e,value:t,line:i}))}}function y(){d>0&&t({id:l,event:f,data:u}),l=void 0,u=``,d=0,f=void 0}function b(e={}){if(e.consume&&o.length>0){let e=o.join(``);_(e,0,e.length)}c=!0,l=void 0,u=``,d=0,f=void 0,o.length=0,s=0,p=!1}return{feed:m,reset:b}}function gp(e,t,n){return n===100&&e.charCodeAt(t+1)===97&&e.charCodeAt(t+2)===116&&e.charCodeAt(t+3)===97&&e.charCodeAt(t+4)===58}function _p(e,t,n){return n===101&&e.charCodeAt(t+1)===118&&e.charCodeAt(t+2)===101&&e.charCodeAt(t+3)===110&&e.charCodeAt(t+4)===116&&e.charCodeAt(t+5)===58}var vp=class extends TransformStream{constructor({onError:e,onRetry:t,onComment:n,maxBufferSize:r}={}){let i;super({start(a){i=hp({onEvent:e=>{a.enqueue(e)},onError(t){typeof e==`function`&&e(t),(e===`terminate`||t.type===`max-buffer-size-exceeded`)&&a.error(t)},onRetry:t,onComment:n,maxBufferSize:r})},transform(e){i.feed(e)}})}},yp={initialReconnectionDelay:1e3,maxReconnectionDelay:3e4,reconnectionDelayGrowFactor:1.5,maxRetries:2},bp=class extends Error{constructor(e,t){super(`Streamable HTTP error: ${t}`),this.code=e}},xp=class{constructor(e,t){this._hasCompletedAuthFlow=!1,this._url=e,this._resourceMetadataUrl=void 0,this._scope=void 0,this._requestInit=t?.requestInit,this._authProvider=t?.authProvider,this._fetch=t?.fetch,this._fetchWithInit=Xd(t?.fetch,t?.requestInit),this._sessionId=t?.sessionId,this._reconnectionOptions=t?.reconnectionOptions??yp}async _authThenStart(){if(!this._authProvider)throw new Nf(`No auth provider`);let e;try{e=await Uf(this._authProvider,{serverUrl:this._url,resourceMetadataUrl:this._resourceMetadataUrl,scope:this._scope,fetchFn:this._fetchWithInit})}catch(e){throw this.onerror?.(e),e}if(e!==`AUTHORIZED`)throw new Nf;return await this._startOrAuthSse({resumptionToken:void 0})}async _commonHeaders(){let e={};if(this._authProvider){let t=await this._authProvider.tokens();t&&(e.Authorization=`Bearer ${t.access_token}`)}this._sessionId&&(e[`mcp-session-id`]=this._sessionId),this._protocolVersion&&(e[`mcp-protocol-version`]=this._protocolVersion);let t=Yd(this._requestInit?.headers);return new Headers({...e,...t})}async _startOrAuthSse(e){let{resumptionToken:t}=e;try{let n=await this._commonHeaders();n.set(`Accept`,`text/event-stream`),t&&n.set(`last-event-id`,t);let r=await(this._fetch??fetch)(this._url,{method:`GET`,headers:n,signal:this._abortController?.signal});if(!r.ok){if(await r.body?.cancel(),r.status===401&&this._authProvider)return await this._authThenStart();if(r.status===405)return;throw new bp(r.status,`Failed to open SSE stream: ${r.statusText}`)}this._handleSseStream(r.body,e,!0)}catch(e){throw this.onerror?.(e),e}}_getNextReconnectionDelay(e){if(this._serverRetryMs!==void 0)return this._serverRetryMs;let t=this._reconnectionOptions.initialReconnectionDelay,n=this._reconnectionOptions.reconnectionDelayGrowFactor,r=this._reconnectionOptions.maxReconnectionDelay;return Math.min(t*n**+e,r)}_scheduleReconnection(e,t=0){let n=this._reconnectionOptions.maxRetries;if(t>=n){this.onerror?.(Error(`Maximum reconnection attempts (${n}) exceeded.`));return}let r=this._getNextReconnectionDelay(t);this._reconnectionTimeout=setTimeout(()=>{this._startOrAuthSse(e).catch(n=>{this.onerror?.(Error(`Failed to reconnect SSE stream: ${n instanceof Error?n.message:String(n)}`)),this._scheduleReconnection(e,t+1)})},r)}_handleSseStream(e,t,n){if(!e)return;let{onresumptiontoken:r,replayMessageId:i}=t,a,o=!1,s=!1;(async()=>{try{let t=e.pipeThrough(new TextDecoderStream).pipeThrough(new vp({onRetry:e=>{this._serverRetryMs=e}})).getReader();for(;;){let{value:e,done:n}=await t.read();if(n)break;if(e.id&&(a=e.id,o=!0,r?.(e.id)),e.data&&(!e.event||e.event===`message`))try{let t=ls.parse(JSON.parse(e.data));os(t)&&(s=!0,i!==void 0&&(t.id=i)),this.onmessage?.(t)}catch(e){this.onerror?.(e)}}(n||o)&&!s&&this._abortController&&!this._abortController.signal.aborted&&this._scheduleReconnection({resumptionToken:a,onresumptiontoken:r,replayMessageId:i},0)}catch(e){if(this.onerror?.(Error(`SSE stream disconnected: ${e}`)),(n||o)&&!s&&this._abortController&&!this._abortController.signal.aborted)try{this._scheduleReconnection({resumptionToken:a,onresumptiontoken:r,replayMessageId:i},0)}catch(e){this.onerror?.(Error(`Failed to reconnect: ${e instanceof Error?e.message:String(e)}`))}}})()}async start(){if(this._abortController)throw Error(`StreamableHTTPClientTransport already started! If using Client class, note that connect() calls start() automatically.`);this._abortController=new AbortController}async finishAuth(e){if(!this._authProvider)throw new Nf(`No auth provider`);if(await Uf(this._authProvider,{serverUrl:this._url,authorizationCode:e,resourceMetadataUrl:this._resourceMetadataUrl,scope:this._scope,fetchFn:this._fetchWithInit})!==`AUTHORIZED`)throw new Nf(`Failed to authorize`)}async close(){this._reconnectionTimeout&&=(clearTimeout(this._reconnectionTimeout),void 0),this._abortController?.abort(),this.onclose?.()}async send(e,t){try{let{resumptionToken:n,onresumptiontoken:r}=t||{};if(n){this._startOrAuthSse({resumptionToken:n,replayMessageId:ns(e)?e.id:void 0}).catch(e=>this.onerror?.(e));return}let i=await this._commonHeaders();i.set(`content-type`,`application/json`),i.set(`accept`,`application/json, text/event-stream`);let a={...this._requestInit,method:`POST`,headers:i,body:JSON.stringify(e),signal:this._abortController?.signal},o=await(this._fetch??fetch)(this._url,a),s=o.headers.get(`mcp-session-id`);if(s&&(this._sessionId=s),!o.ok){let t=await o.text().catch(()=>null);if(o.status===401&&this._authProvider){if(this._hasCompletedAuthFlow)throw new bp(401,`Server returned 401 after successful authentication`);let{resourceMetadataUrl:t,scope:n}=qf(o);if(this._resourceMetadataUrl=t,this._scope=n,await Uf(this._authProvider,{serverUrl:this._url,resourceMetadataUrl:this._resourceMetadataUrl,scope:this._scope,fetchFn:this._fetchWithInit})!==`AUTHORIZED`)throw new Nf;return this._hasCompletedAuthFlow=!0,this.send(e)}if(o.status===403&&this._authProvider){let{resourceMetadataUrl:t,scope:n,error:r}=qf(o);if(r===`insufficient_scope`){let r=o.headers.get(`WWW-Authenticate`);if(this._lastUpscopingHeader===r)throw new bp(403,`Server returned 403 after trying upscoping`);if(n&&(this._scope=n),t&&(this._resourceMetadataUrl=t),this._lastUpscopingHeader=r??void 0,await Uf(this._authProvider,{serverUrl:this._url,resourceMetadataUrl:this._resourceMetadataUrl,scope:this._scope,fetchFn:this._fetch})!==`AUTHORIZED`)throw new Nf;return this.send(e)}}throw new bp(o.status,`Error POSTing to endpoint: ${t}`)}if(this._hasCompletedAuthFlow=!1,this._lastUpscopingHeader=void 0,o.status===202){await o.body?.cancel(),Ts(e)&&this._startOrAuthSse({resumptionToken:void 0}).catch(e=>this.onerror?.(e));return}let c=(Array.isArray(e)?e:[e]).filter(e=>`method`in e&&`id`in e&&e.id!==void 0).length>0,l=o.headers.get(`content-type`),u=Jd(l);if(c)if(u===`text/event-stream`)this._handleSseStream(o.body,{onresumptiontoken:r},!1);else if(u===`application/json`){let e=await o.json(),t=Array.isArray(e)?e.map(e=>ls.parse(e)):[ls.parse(e)];for(let e of t)this.onmessage?.(e)}else throw await o.body?.cancel(),new bp(-1,`Unexpected content type: ${l}`);else await o.body?.cancel()}catch(e){throw this.onerror?.(e),e}}get sessionId(){return this._sessionId}async terminateSession(){if(this._sessionId)try{let e=await this._commonHeaders(),t={...this._requestInit,method:`DELETE`,headers:e,signal:this._abortController?.signal},n=await(this._fetch??fetch)(this._url,t);if(await n.body?.cancel(),!n.ok&&n.status!==405)throw new bp(n.status,`Failed to terminate session: ${n.statusText}`);this._sessionId=void 0}catch(e){throw this.onerror?.(e),e}}setProtocolVersion(e){this._protocolVersion=e}get protocolVersion(){return this._protocolVersion}async resumeStream(e,t){await this._startOrAuthSse({resumptionToken:e,onresumptiontoken:t?.onresumptiontoken})}},$=e(n(),1),Sp=t(),Cp=`text/html;profile=mcp-app`,wp=`io.modelcontextprotocol/ui`,Tp=3,Ep=5,Dp=2e3,Op={observability_overview:620,service_topology:760,service_performance:700,trace_detail:720,search_logs:720},kp=class extends Error{},Ap=null,jp=null;async function Mp(){let e=new xp(new URL(`/api/mcp`,location.origin),{fetch:(e,t)=>d(e,t)}),t=new Kd({name:`fanout-browser`,version:`0.2.0`},{capabilities:{extensions:{[wp]:{mimeTypes:[Cp]}}}});try{await t.connect(e);let n={client:t,references:0,closed:!1,closeListeners:new Set};return t.onclose=()=>Pp(n,!1),t.onerror=()=>Pp(n,!0),n}catch(t){throw await e.close().catch(()=>void 0),t}}async function Np(){for(let e=0;e{jp===e&&!t.closed&&(Ap=t)}).catch(()=>{jp===e&&(jp=null)})}let e=jp;if(!e)continue;let t=await e;if(t.closed){jp===e&&(jp=null);continue}return t.closeTimer&&=(clearTimeout(t.closeTimer),void 0),t.references+=1,t}throw Error(`MCP connection closed during setup`)}function Pp(e,t){if(!e.closed){e.closed=!0,e.closeTimer&&clearTimeout(e.closeTimer),e.closeTimer=void 0,Ap===e&&(Ap=null),jp=null;for(let t of[...e.closeListeners])t();t&&e.client.close().catch(()=>void 0)}}function Fp(e){e.references=Math.max(0,e.references-1),!(e.closed||e.references||e.closeTimer)&&(e.closeTimer=setTimeout(()=>{e.closeTimer=void 0,!(e.references||Ap!==e)&&(e.closed=!0,Ap=null,jp=null,e.client.close().catch(()=>void 0))},0))}function Ip(e){return typeof e==`object`&&e&&!Array.isArray(e)?e:void 0}function Lp(e,t){if(!Array.isArray(e))return[];let n=new Set(t);return e.filter(e=>{if(typeof e!=`string`||/[\s;'\"]/.test(e))return!1;let t=e.match(/^([a-z]+):\/\/([^/]+)$/i);return!!(t&&n.has(t[1].toLowerCase()))})}function Rp(e){let t=Ip(Ip(Ip(e)?.ui)?.csp),n=Lp(t?.connectDomains,[`http`,`https`,`ws`,`wss`]),r=Lp(t?.resourceDomains,[`http`,`https`]),i=Lp(t?.frameDomains,[`http`,`https`]),a=Lp(t?.baseUriDomains,[`http`,`https`]),o=r.length?` ${r.join(` `)}`:``,s=[`default-src 'none'`,`script-src 'self' 'unsafe-inline'${o}`,`style-src 'self' 'unsafe-inline'${o}`,`img-src 'self' data:${o}`,`media-src 'self' data:${o}`,`connect-src ${n.length?n.join(` `):`'none'`}`];return r.length&&s.push(`font-src 'self' ${r.join(` `)}`),i.length&&s.push(`frame-src ${i.join(` `)}`),a.length&&s.push(`base-uri ${a.join(` `)}`),`${s.join(`; `)};`}function zp(e,t){let n=``;return/]*)?>/i.test(e)?e.replace(/]*)?>/i,e=>`${e}${n}`):/]*)?>/i.test(e)?e.replace(/]*)?>/i,e=>`${e}${n}`):`${n}${e}`}function Bp(e){return e.filter(e=>e.type===`text`).map(e=>String(e.text??``)).join(` +`)}function Vp({content:e,onMessage:t}){let n=(0,$.useRef)(null),r=(0,$.useRef)(null),i=(0,$.useRef)(null),a=(0,$.useRef)(null),[o,s]=(0,$.useState)(``),d=Op[e.toolName]??620,[h,g]=(0,$.useState)(d),[_,v]=(0,$.useState)(``),[y,b]=(0,$.useState)(0),x=(0,$.useRef)(0),S=m(`light`),C=(0,$.useRef)(S);C.current=S,(0,$.useEffect)(()=>{a.current?.setHostContext({theme:S,displayMode:`inline`})},[S]),(0,$.useEffect)(()=>{x.current=0},[e.resourceUri]),(0,$.useEffect)(()=>{let t=!1,n;s(``),v(``);let o=()=>{let e=x.current+1;if(e>Ep)return;x.current=e;let t=e===1?0:Math.min(750*2**(e-2),6e3);t===0?b(e=>e+1):n=setTimeout(()=>b(e=>e+1),t)},c=()=>o();async function l(){try{let n=await Np();if(t){Fp(n);return}i.current=n,n.closeListeners.add(c),r.current=n.client;let a=(await n.client.readResource({uri:e.resourceUri})).contents[0];if(!a||!(`text`in a)||!a.text)throw new kp(`MCP App resource has no HTML content`);if(a.uri!==e.resourceUri)throw new kp(`MCP App resource URI does not match the requested URI`);if(a.mimeType!==Cp)throw new kp(`MCP App resource has an unsupported MIME type`);t||(x.current=0,s(zp(a.text,a._meta)))}catch(e){console.error(`MCP app resource load failed`,e),t||(v(`This view could not be loaded. Please try again.`),x.current>0&&!(e instanceof kp)&&o())}}return l(),()=>{t=!0,n&&clearTimeout(n);let e=a.current?.teardownResource({}).catch(()=>void 0)??Promise.resolve(),o=i.current;o&&(o.closeListeners.delete(c),e.finally(()=>Fp(o))),a.current=null,r.current=null,i.current=null}},[e.resourceUri,y]);async function ee(){let i=n.current,s=r.current;if(!(!i?.contentWindow||!o||!s||a.current))try{let n=new au(null,{name:`Fanout`,version:`0.2.0`},{openLinks:{},serverTools:{},logging:{}},{hostContext:{theme:C.current,displayMode:`inline`}});n.oncalltool=(e,t)=>s.request({method:`tools/call`,params:e},Fc,{signal:t.signal}),a.current=n,n.onsizechange=({height:e})=>{e&&g(Math.min(Dp,Math.max(d,Math.ceil(e)+32)))},n.onmessage=async({content:e})=>{let n=Bp(e);return n?(await t(n),{}):{isError:!0}},n.oninitialized=async()=>{await n.sendToolInput({arguments:e.toolInput??{}}),await n.sendToolResult({content:[{type:`text`,text:JSON.stringify(e.toolResult??{})}],structuredContent:e.toolResult,isError:e.isError})},await n.connect(new ru(i.contentWindow,i.contentWindow))}catch(e){console.error(`MCP app bridge connect failed`,e),v(`This view could not be loaded. Please try again.`)}}return _?(0,Sp.jsx)(u,{color:`bad`,m:`md`,children:_}):o?(0,Sp.jsx)(p,{component:`iframe`,ref:n,title:`Fanout analysis view`,sandbox:`allow-scripts`,scrolling:`auto`,srcDoc:o,w:`100%`,bd:0,bg:`var(--mantine-color-body)`,style:{display:`block`,height:h,transition:`height 200ms ease`},onLoad:()=>void ee()}):(0,Sp.jsxs)(l,{mih:180,p:`xl`,children:[(0,Sp.jsx)(c,{size:`sm`}),(0,Sp.jsx)(f,{c:`dimmed`,size:`sm`,ml:`sm`,children:`Preparing view…`})]})}export{Vp as default,Rp as mcpAppCSP}; \ No newline at end of file diff --git a/internal/ui/dist/assets/mcp-app-frame-DW3Lt9OA.js b/internal/ui/dist/assets/mcp-app-frame-DW3Lt9OA.js deleted file mode 100644 index 749b3e31..00000000 --- a/internal/ui/dist/assets/mcp-app-frame-DW3Lt9OA.js +++ /dev/null @@ -1,127 +0,0 @@ -import{_ as e,a as t,d as n,f as r,g as i,h as a,m as o,p as s}from"./useNavigate-DyHkI5qo.js";import{b as c,f as l,h as u,i as d,m as f,w as p}from"./auth-yGyQH6NZ.js";var m,h=Object.freeze({status:`aborted`});function g(e,t,n){function r(n,r){if(n._zod||Object.defineProperty(n,"_zod",{value:{def:r,constr:o,traits:new Set},enumerable:!1}),n._zod.traits.has(e))return;n._zod.traits.add(e),t(n,r);let i=o.prototype,a=Object.keys(i);for(let e=0;en?.Parent&&t instanceof n.Parent?!0:t?._zod?.traits?.has(e)}),Object.defineProperty(o,"name",{value:e}),o}var _=class extends Error{constructor(){super(`Encountered Promise during synchronous parse. Use .parseAsync() instead.`)}},v=class extends Error{constructor(e){super(`Encountered unidirectional transform during encode: ${e}`),this.name=`ZodEncodeError`}};(m=globalThis).__zod_globalConfig??(m.__zod_globalConfig={});var y=globalThis.__zod_globalConfig;function b(e){return e&&Object.assign(y,e),y}function x(e){let t=Object.values(e).filter(e=>typeof e==`number`);return Object.entries(e).filter(([e,n])=>t.indexOf(+e)===-1).map(([e,t])=>t)}function S(e,t){return typeof t==`bigint`?t.toString():t}function C(e){return{get value(){{let t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function ee(e){return e==null}function te(e){let t=+!!e.startsWith(`^`),n=e.endsWith(`$`)?e.length-1:e.length;return e.slice(t,n)}function ne(e,t){let n=e/t,r=Math.round(n),i=2**-52*Math.max(Math.abs(n),1);return Math.abs(n-r){};function ce(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}var le=C(()=>{if(y.jitless||typeof navigator<`u`&&navigator?.userAgent?.includes(`Cloudflare`))return!1;try{return Function(``),!0}catch{return!1}});function ue(e){if(ce(e)===!1)return!1;let t=e.constructor;if(t===void 0||typeof t!=`function`)return!0;let n=t.prototype;return ce(n)!==!1&&Object.prototype.hasOwnProperty.call(n,`isPrototypeOf`)!==!1}function de(e){return ue(e)?{...e}:Array.isArray(e)?[...e]:e instanceof Map?new Map(e):e instanceof Set?new Set(e):e}var fe=new Set([`string`,`number`,`symbol`]);function pe(e){return e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)}function me(e,t,n){let r=new e._zod.constr(t??e._zod.def);return(!t||n?.parent)&&(r._zod.parent=e),r}function E(e){let t=e;if(!t)return{};if(typeof t==`string`)return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error==`string`?{...t,error:()=>t.error}:t}function he(e){return Object.keys(e).filter(t=>e[t]._zod.optin===`optional`&&e[t]._zod.optout===`optional`)}var ge={safeint:[-(2**53-1),2**53-1],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]};function _e(e,t){let n=e._zod.def,r=n.checks;if(r&&r.length>0)throw Error(`.pick() cannot be used on object schemas containing refinements`);return me(e,ie(e._zod.def,{get shape(){let e={};for(let r in t){if(!(r in n.shape))throw Error(`Unrecognized key: "${r}"`);t[r]&&(e[r]=n.shape[r])}return T(this,`shape`,e),e},checks:[]}))}function ve(e,t){let n=e._zod.def,r=n.checks;if(r&&r.length>0)throw Error(`.omit() cannot be used on object schemas containing refinements`);return me(e,ie(e._zod.def,{get shape(){let r={...e._zod.def.shape};for(let e in t){if(!(e in n.shape))throw Error(`Unrecognized key: "${e}"`);t[e]&&delete r[e]}return T(this,`shape`,r),r},checks:[]}))}function ye(e,t){if(!ue(t))throw Error(`Invalid input to extend: expected a plain object`);let n=e._zod.def.checks;if(n&&n.length>0){let n=e._zod.def.shape;for(let e in t)if(Object.getOwnPropertyDescriptor(n,e)!==void 0)throw Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}return me(e,ie(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t};return T(this,`shape`,n),n}}))}function be(e,t){if(!ue(t))throw Error(`Invalid input to safeExtend: expected a plain object`);return me(e,ie(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t};return T(this,`shape`,n),n}}))}function xe(e,t){if(e._zod.def.checks?.length)throw Error(`.merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.`);return me(e,ie(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t._zod.def.shape};return T(this,`shape`,n),n},get catchall(){return t._zod.def.catchall},checks:t._zod.def.checks??[]}))}function Se(e,t,n){let r=t._zod.def.checks;if(r&&r.length>0)throw Error(`.partial() cannot be used on object schemas containing refinements`);return me(t,ie(t._zod.def,{get shape(){let r=t._zod.def.shape,i={...r};if(n)for(let t in n){if(!(t in r))throw Error(`Unrecognized key: "${t}"`);n[t]&&(i[t]=e?new e({type:`optional`,innerType:r[t]}):r[t])}else for(let t in r)i[t]=e?new e({type:`optional`,innerType:r[t]}):r[t];return T(this,`shape`,i),i},checks:[]}))}function Ce(e,t,n){return me(t,ie(t._zod.def,{get shape(){let r=t._zod.def.shape,i={...r};if(n)for(let t in n){if(!(t in i))throw Error(`Unrecognized key: "${t}"`);n[t]&&(i[t]=new e({type:`nonoptional`,innerType:r[t]}))}else for(let t in r)i[t]=new e({type:`nonoptional`,innerType:r[t]});return T(this,`shape`,i),i}}))}function we(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n{var n;return(n=t).path??(n.path=[]),t.path.unshift(e),t})}function De(e){return typeof e==`string`?e:e?.message}function Oe(e,t,n){let r=e.message?e.message:De(e.inst?._zod.def?.error?.(e))??De(t?.error?.(e))??De(n.customError?.(e))??De(n.localeError?.(e))??`Invalid input`,{inst:i,continue:a,input:o,...s}=e;return s.path??=[],s.message=r,t?.reportInput&&(s.input=o),s}function ke(e){return Array.isArray(e)?`array`:typeof e==`string`?`string`:`unknown`}function Ae(...e){let[t,n,r]=e;return typeof t==`string`?{message:t,code:`custom`,input:n,inst:r}:{...t}}var je=(e,t)=>{e.name=`$ZodError`,Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,S,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},Me=g(`$ZodError`,je),Ne=g(`$ZodError`,je,{Parent:Error});function Pe(e,t=e=>e.message){let n={},r=[];for(let i of e.issues)i.path.length>0?(n[i.path[0]]=n[i.path[0]]||[],n[i.path[0]].push(t(i))):r.push(t(i));return{formErrors:r,fieldErrors:n}}function Fe(e,t=e=>e.message){let n={_errors:[]},r=(e,i=[])=>{for(let a of e.issues)if(a.code===`invalid_union`&&a.errors.length)a.errors.map(e=>r({issues:e},[...i,...a.path]));else if(a.code===`invalid_key`)r({issues:a.issues},[...i,...a.path]);else if(a.code===`invalid_element`)r({issues:a.issues},[...i,...a.path]);else{let e=[...i,...a.path];if(e.length===0)n._errors.push(t(a));else{let r=n,i=0;for(;i(t,n,r,i)=>{let a=r?{...r,async:!1}:{async:!1},o=t._zod.run({value:n,issues:[]},a);if(o instanceof Promise)throw new _;if(o.issues.length){let t=new((i?.Err)??e)(o.issues.map(e=>Oe(e,a,b())));throw se(t,i?.callee),t}return o.value},Le=e=>async(t,n,r,i)=>{let a=r?{...r,async:!0}:{async:!0},o=t._zod.run({value:n,issues:[]},a);if(o instanceof Promise&&(o=await o),o.issues.length){let t=new((i?.Err)??e)(o.issues.map(e=>Oe(e,a,b())));throw se(t,i?.callee),t}return o.value},Re=e=>(t,n,r)=>{let i=r?{...r,async:!1}:{async:!1},a=t._zod.run({value:n,issues:[]},i);if(a instanceof Promise)throw new _;return a.issues.length?{success:!1,error:new(e??Me)(a.issues.map(e=>Oe(e,i,b())))}:{success:!0,data:a.value}},ze=Re(Ne),Be=e=>async(t,n,r)=>{let i=r?{...r,async:!0}:{async:!0},a=t._zod.run({value:n,issues:[]},i);return a instanceof Promise&&(a=await a),a.issues.length?{success:!1,error:new e(a.issues.map(e=>Oe(e,i,b())))}:{success:!0,data:a.value}},Ve=Be(Ne),He=e=>(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return Ie(e)(t,n,i)},Ue=e=>(t,n,r)=>Ie(e)(t,n,r),We=e=>async(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return Le(e)(t,n,i)},Ge=e=>async(t,n,r)=>Le(e)(t,n,r),Ke=e=>(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return Re(e)(t,n,i)},qe=e=>(t,n,r)=>Re(e)(t,n,r),Je=e=>async(t,n,r)=>{let i=r?{...r,direction:`backward`}:{direction:`backward`};return Be(e)(t,n,i)},Ye=e=>async(t,n,r)=>Be(e)(t,n,r),Xe=/^[cC][0-9a-z]{6,}$/,Ze=/^[0-9a-z]+$/,Qe=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,$e=/^[0-9a-vA-V]{20}$/,et=/^[A-Za-z0-9]{27}$/,tt=/^[a-zA-Z0-9_-]{21}$/,nt=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,rt=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,it=e=>e?RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,at=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,ot=`^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$`;function st(){return new RegExp(ot,`u`)}var ct=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,lt=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,ut=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,dt=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,ft=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,pt=/^[A-Za-z0-9_-]*$/,mt=/^https?$/,ht=/^\+[1-9]\d{6,14}$/,gt=`(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))`,_t=RegExp(`^${gt}$`);function vt(e){let t=`(?:[01]\\d|2[0-3]):[0-5]\\d`;return typeof e.precision==`number`?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function yt(e){return RegExp(`^${vt(e)}$`)}function bt(e){let t=vt({precision:e.precision}),n=[`Z`];e.local&&n.push(``),e.offset&&n.push(`([+-](?:[01]\\d|2[0-3]):[0-5]\\d)`);let r=`${t}(?:${n.join(`|`)})`;return RegExp(`^${gt}T(?:${r})$`)}var xt=e=>{let t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??``}}`:`[\\s\\S]*`;return RegExp(`^${t}$`)},St=/^-?\d+$/,Ct=/^-?\d+(?:\.\d+)?$/,wt=/^(?:true|false)$/i,Tt=/^null$/i,Et=/^undefined$/i,Dt=/^[^A-Z]*$/,Ot=/^[^a-z]*$/,D=g(`$ZodCheck`,(e,t)=>{var n;e._zod??={},e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),kt={number:`number`,bigint:`bigint`,object:`date`},At=g(`$ZodCheckLessThan`,(e,t)=>{D.init(e,t);let n=kt[typeof t.value];e._zod.onattach.push(e=>{let n=e._zod.bag,r=(t.inclusive?n.maximum:n.exclusiveMaximum)??1/0;t.value{(t.inclusive?r.value<=t.value:r.value{D.init(e,t);let n=kt[typeof t.value];e._zod.onattach.push(e=>{let n=e._zod.bag,r=(t.inclusive?n.minimum:n.exclusiveMinimum)??-1/0;t.value>r&&(t.inclusive?n.minimum=t.value:n.exclusiveMinimum=t.value)}),e._zod.check=r=>{(t.inclusive?r.value>=t.value:r.value>t.value)||r.issues.push({origin:n,code:`too_small`,minimum:typeof t.value==`object`?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),Mt=g(`$ZodCheckMultipleOf`,(e,t)=>{D.init(e,t),e._zod.onattach.push(e=>{var n;(n=e._zod.bag).multipleOf??(n.multipleOf=t.value)}),e._zod.check=n=>{if(typeof n.value!=typeof t.value)throw Error(`Cannot mix number and bigint in multiple_of check.`);(typeof n.value==`bigint`?n.value%t.value===BigInt(0):ne(n.value,t.value)===0)||n.issues.push({origin:typeof n.value,code:`not_multiple_of`,divisor:t.value,input:n.value,inst:e,continue:!t.abort})}}),Nt=g(`$ZodCheckNumberFormat`,(e,t)=>{D.init(e,t),t.format=t.format||`float64`;let n=t.format?.includes(`int`),r=n?`int`:`number`,[i,a]=ge[t.format];e._zod.onattach.push(e=>{let r=e._zod.bag;r.format=t.format,r.minimum=i,r.maximum=a,n&&(r.pattern=St)}),e._zod.check=o=>{let s=o.value;if(n){if(!Number.isInteger(s)){o.issues.push({expected:r,format:t.format,code:`invalid_type`,continue:!1,input:s,inst:e});return}if(!Number.isSafeInteger(s)){s>0?o.issues.push({input:s,code:`too_big`,maximum:2**53-1,note:`Integers must be within the safe integer range.`,inst:e,origin:r,inclusive:!0,continue:!t.abort}):o.issues.push({input:s,code:`too_small`,minimum:-(2**53-1),note:`Integers must be within the safe integer range.`,inst:e,origin:r,inclusive:!0,continue:!t.abort});return}}sa&&o.issues.push({origin:`number`,input:s,code:`too_big`,maximum:a,inclusive:!0,inst:e,continue:!t.abort})}}),Pt=g(`$ZodCheckMaxLength`,(e,t)=>{var n;D.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!ee(t)&&t.length!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag.maximum??1/0;t.maximum{let r=n.value;if(r.length<=t.maximum)return;let i=ke(r);n.issues.push({origin:i,code:`too_big`,maximum:t.maximum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),Ft=g(`$ZodCheckMinLength`,(e,t)=>{var n;D.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!ee(t)&&t.length!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag.minimum??-1/0;t.minimum>n&&(e._zod.bag.minimum=t.minimum)}),e._zod.check=n=>{let r=n.value;if(r.length>=t.minimum)return;let i=ke(r);n.issues.push({origin:i,code:`too_small`,minimum:t.minimum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),It=g(`$ZodCheckLengthEquals`,(e,t)=>{var n;D.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!ee(t)&&t.length!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag;n.minimum=t.length,n.maximum=t.length,n.length=t.length}),e._zod.check=n=>{let r=n.value,i=r.length;if(i===t.length)return;let a=ke(r),o=i>t.length;n.issues.push({origin:a,...o?{code:`too_big`,maximum:t.length}:{code:`too_small`,minimum:t.length},inclusive:!0,exact:!0,input:n.value,inst:e,continue:!t.abort})}}),Lt=g(`$ZodCheckStringFormat`,(e,t)=>{var n,r;D.init(e,t),e._zod.onattach.push(e=>{let n=e._zod.bag;n.format=t.format,t.pattern&&(n.patterns??=new Set,n.patterns.add(t.pattern))}),t.pattern?(n=e._zod).check??(n.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:`string`,code:`invalid_format`,format:t.format,input:n.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(r=e._zod).check??(r.check=()=>{})}),Rt=g(`$ZodCheckRegex`,(e,t)=>{Lt.init(e,t),e._zod.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:`string`,code:`invalid_format`,format:`regex`,input:n.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),zt=g(`$ZodCheckLowerCase`,(e,t)=>{t.pattern??=Dt,Lt.init(e,t)}),Bt=g(`$ZodCheckUpperCase`,(e,t)=>{t.pattern??=Ot,Lt.init(e,t)}),Vt=g(`$ZodCheckIncludes`,(e,t)=>{D.init(e,t);let n=pe(t.includes),r=new RegExp(typeof t.position==`number`?`^.{${t.position}}${n}`:n);t.pattern=r,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??=new Set,t.patterns.add(r)}),e._zod.check=n=>{n.value.includes(t.includes,t.position)||n.issues.push({origin:`string`,code:`invalid_format`,format:`includes`,includes:t.includes,input:n.value,inst:e,continue:!t.abort})}}),Ht=g(`$ZodCheckStartsWith`,(e,t)=>{D.init(e,t);let n=RegExp(`^${pe(t.prefix)}.*`);t.pattern??=n,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??=new Set,t.patterns.add(n)}),e._zod.check=n=>{n.value.startsWith(t.prefix)||n.issues.push({origin:`string`,code:`invalid_format`,format:`starts_with`,prefix:t.prefix,input:n.value,inst:e,continue:!t.abort})}}),Ut=g(`$ZodCheckEndsWith`,(e,t)=>{D.init(e,t);let n=RegExp(`.*${pe(t.suffix)}$`);t.pattern??=n,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??=new Set,t.patterns.add(n)}),e._zod.check=n=>{n.value.endsWith(t.suffix)||n.issues.push({origin:`string`,code:`invalid_format`,format:`ends_with`,suffix:t.suffix,input:n.value,inst:e,continue:!t.abort})}}),Wt=g(`$ZodCheckOverwrite`,(e,t)=>{D.init(e,t),e._zod.check=e=>{e.value=t.tx(e.value)}}),Gt=class{constructor(e=[]){this.content=[],this.indent=0,this&&(this.args=e)}indented(e){this.indent+=1,e(this),--this.indent}write(e){if(typeof e==`function`){e(this,{execution:`sync`}),e(this,{execution:`async`});return}let t=e.split(` -`).filter(e=>e),n=Math.min(...t.map(e=>e.length-e.trimStart().length)),r=t.map(e=>e.slice(n)).map(e=>` `.repeat(this.indent*2)+e);for(let e of r)this.content.push(e)}compile(){let e=Function,t=this?.args,n=[...(this?.content??[``]).map(e=>` ${e}`)];return new e(...t,n.join(` -`))}},Kt={major:4,minor:4,patch:3},O=g(`$ZodType`,(e,t)=>{var n;e??={},e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=Kt;let r=[...e._zod.def.checks??[]];e._zod.traits.has(`$ZodCheck`)&&r.unshift(e);for(let t of r)for(let n of t._zod.onattach)n(e);if(r.length===0)(n=e._zod).deferred??(n.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{let t=(e,t,n)=>{let r=we(e),i;for(let a of t){if(a._zod.def.when){if(Te(e)||!a._zod.def.when(e))continue}else if(r)continue;let t=e.issues.length,o=a._zod.check(e);if(o instanceof Promise&&n?.async===!1)throw new _;if(i||o instanceof Promise)i=(i??Promise.resolve()).then(async()=>{await o,e.issues.length!==t&&(r||=we(e,t))});else{if(e.issues.length===t)continue;r||=we(e,t)}}return i?i.then(()=>e):e},n=(n,i,a)=>{if(we(n))return n.aborted=!0,n;let o=t(i,r,a);if(o instanceof Promise){if(a.async===!1)throw new _;return o.then(t=>e._zod.parse(t,a))}return e._zod.parse(o,a)};e._zod.run=(i,a)=>{if(a.skipChecks)return e._zod.parse(i,a);if(a.direction===`backward`){let t=e._zod.parse({value:i.value,issues:[]},{...a,skipChecks:!0});return t instanceof Promise?t.then(e=>n(e,i,a)):n(t,i,a)}let o=e._zod.parse(i,a);if(o instanceof Promise){if(a.async===!1)throw new _;return o.then(e=>t(e,r,a))}return t(o,r,a)}}w(e,`~standard`,()=>({validate:t=>{try{let n=ze(e,t);return n.success?{value:n.data}:{issues:n.error?.issues}}catch{return Ve(e,t).then(e=>e.success?{value:e.data}:{issues:e.error?.issues})}},vendor:`zod`,version:1}))}),qt=g(`$ZodString`,(e,t)=>{O.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??xt(e._zod.bag),e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=String(n.value)}catch{}return typeof n.value==`string`||n.issues.push({expected:`string`,code:`invalid_type`,input:n.value,inst:e}),n}}),k=g(`$ZodStringFormat`,(e,t)=>{Lt.init(e,t),qt.init(e,t)}),Jt=g(`$ZodGUID`,(e,t)=>{t.pattern??=rt,k.init(e,t)}),Yt=g(`$ZodUUID`,(e,t)=>{if(t.version){let e={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(e===void 0)throw Error(`Invalid UUID version: "${t.version}"`);t.pattern??=it(e)}else t.pattern??=it();k.init(e,t)}),Xt=g(`$ZodEmail`,(e,t)=>{t.pattern??=at,k.init(e,t)}),Zt=g(`$ZodURL`,(e,t)=>{k.init(e,t),e._zod.check=n=>{try{let r=n.value.trim();if(!t.normalize&&t.protocol?.source===mt.source&&!/^https?:\/\//i.test(r)){n.issues.push({code:`invalid_format`,format:`url`,note:`Invalid URL format`,input:n.value,inst:e,continue:!t.abort});return}let i=new URL(r);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(i.hostname)||n.issues.push({code:`invalid_format`,format:`url`,note:`Invalid hostname`,pattern:t.hostname.source,input:n.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(i.protocol.endsWith(`:`)?i.protocol.slice(0,-1):i.protocol)||n.issues.push({code:`invalid_format`,format:`url`,note:`Invalid protocol`,pattern:t.protocol.source,input:n.value,inst:e,continue:!t.abort})),n.value=t.normalize?i.href:r;return}catch{n.issues.push({code:`invalid_format`,format:`url`,input:n.value,inst:e,continue:!t.abort})}}}),Qt=g(`$ZodEmoji`,(e,t)=>{t.pattern??=st(),k.init(e,t)}),$t=g(`$ZodNanoID`,(e,t)=>{t.pattern??=tt,k.init(e,t)}),en=g(`$ZodCUID`,(e,t)=>{t.pattern??=Xe,k.init(e,t)}),tn=g(`$ZodCUID2`,(e,t)=>{t.pattern??=Ze,k.init(e,t)}),nn=g(`$ZodULID`,(e,t)=>{t.pattern??=Qe,k.init(e,t)}),rn=g(`$ZodXID`,(e,t)=>{t.pattern??=$e,k.init(e,t)}),an=g(`$ZodKSUID`,(e,t)=>{t.pattern??=et,k.init(e,t)}),on=g(`$ZodISODateTime`,(e,t)=>{t.pattern??=bt(t),k.init(e,t)}),sn=g(`$ZodISODate`,(e,t)=>{t.pattern??=_t,k.init(e,t)}),cn=g(`$ZodISOTime`,(e,t)=>{t.pattern??=yt(t),k.init(e,t)}),ln=g(`$ZodISODuration`,(e,t)=>{t.pattern??=nt,k.init(e,t)}),un=g(`$ZodIPv4`,(e,t)=>{t.pattern??=ct,k.init(e,t),e._zod.bag.format=`ipv4`}),dn=g(`$ZodIPv6`,(e,t)=>{t.pattern??=lt,k.init(e,t),e._zod.bag.format=`ipv6`,e._zod.check=n=>{try{new URL(`http://[${n.value}]`)}catch{n.issues.push({code:`invalid_format`,format:`ipv6`,input:n.value,inst:e,continue:!t.abort})}}}),fn=g(`$ZodCIDRv4`,(e,t)=>{t.pattern??=ut,k.init(e,t)}),pn=g(`$ZodCIDRv6`,(e,t)=>{t.pattern??=dt,k.init(e,t),e._zod.check=n=>{let r=n.value.split(`/`);try{if(r.length!==2)throw Error();let[e,t]=r;if(!t)throw Error();let n=Number(t);if(`${n}`!==t||n<0||n>128)throw Error();new URL(`http://[${e}]`)}catch{n.issues.push({code:`invalid_format`,format:`cidrv6`,input:n.value,inst:e,continue:!t.abort})}}});function mn(e){if(e===``)return!0;if(/\s/.test(e)||e.length%4!=0)return!1;try{return atob(e),!0}catch{return!1}}var hn=g(`$ZodBase64`,(e,t)=>{t.pattern??=ft,k.init(e,t),e._zod.bag.contentEncoding=`base64`,e._zod.check=n=>{mn(n.value)||n.issues.push({code:`invalid_format`,format:`base64`,input:n.value,inst:e,continue:!t.abort})}});function gn(e){if(!pt.test(e))return!1;let t=e.replace(/[-_]/g,e=>e===`-`?`+`:`/`);return mn(t.padEnd(Math.ceil(t.length/4)*4,`=`))}var _n=g(`$ZodBase64URL`,(e,t)=>{t.pattern??=pt,k.init(e,t),e._zod.bag.contentEncoding=`base64url`,e._zod.check=n=>{gn(n.value)||n.issues.push({code:`invalid_format`,format:`base64url`,input:n.value,inst:e,continue:!t.abort})}}),vn=g(`$ZodE164`,(e,t)=>{t.pattern??=ht,k.init(e,t)});function yn(e,t=null){try{let n=e.split(`.`);if(n.length!==3)return!1;let[r]=n;if(!r)return!1;let i=JSON.parse(atob(r));return!(`typ`in i&&i?.typ!==`JWT`||!i.alg||t&&(!(`alg`in i)||i.alg!==t))}catch{return!1}}var bn=g(`$ZodJWT`,(e,t)=>{k.init(e,t),e._zod.check=n=>{yn(n.value,t.alg)||n.issues.push({code:`invalid_format`,format:`jwt`,input:n.value,inst:e,continue:!t.abort})}}),xn=g(`$ZodNumber`,(e,t)=>{O.init(e,t),e._zod.pattern=e._zod.bag.pattern??Ct,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=Number(n.value)}catch{}let i=n.value;if(typeof i==`number`&&!Number.isNaN(i)&&Number.isFinite(i))return n;let a=typeof i==`number`?Number.isNaN(i)?`NaN`:Number.isFinite(i)?void 0:`Infinity`:void 0;return n.issues.push({expected:`number`,code:`invalid_type`,input:i,inst:e,...a?{received:a}:{}}),n}}),Sn=g(`$ZodNumberFormat`,(e,t)=>{Nt.init(e,t),xn.init(e,t)}),Cn=g(`$ZodBoolean`,(e,t)=>{O.init(e,t),e._zod.pattern=wt,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=!!n.value}catch{}let i=n.value;return typeof i==`boolean`||n.issues.push({expected:`boolean`,code:`invalid_type`,input:i,inst:e}),n}}),wn=g(`$ZodUndefined`,(e,t)=>{O.init(e,t),e._zod.pattern=Et,e._zod.values=new Set([void 0]),e._zod.parse=(t,n)=>{let r=t.value;return r===void 0||t.issues.push({expected:`undefined`,code:`invalid_type`,input:r,inst:e}),t}}),Tn=g(`$ZodNull`,(e,t)=>{O.init(e,t),e._zod.pattern=Tt,e._zod.values=new Set([null]),e._zod.parse=(t,n)=>{let r=t.value;return r===null||t.issues.push({expected:`null`,code:`invalid_type`,input:r,inst:e}),t}}),En=g(`$ZodAny`,(e,t)=>{O.init(e,t),e._zod.parse=e=>e}),Dn=g(`$ZodUnknown`,(e,t)=>{O.init(e,t),e._zod.parse=e=>e}),On=g(`$ZodNever`,(e,t)=>{O.init(e,t),e._zod.parse=(t,n)=>(t.issues.push({expected:`never`,code:`invalid_type`,input:t.value,inst:e}),t)});function kn(e,t,n){e.issues.length&&t.issues.push(...Ee(n,e.issues)),t.value[n]=e.value}var An=g(`$ZodArray`,(e,t)=>{O.init(e,t),e._zod.parse=(n,r)=>{let i=n.value;if(!Array.isArray(i))return n.issues.push({expected:`array`,code:`invalid_type`,input:i,inst:e}),n;n.value=Array(i.length);let a=[];for(let e=0;ekn(t,n,e))):kn(s,n,e)}return a.length?Promise.all(a).then(()=>n):n}});function jn(e,t,n,r,i,a){let o=n in r;if(e.issues.length){if(i&&a&&!o)return;t.issues.push(...Ee(n,e.issues))}if(!o&&!i){e.issues.length||t.issues.push({code:`invalid_type`,expected:`nonoptional`,input:void 0,path:[n]});return}e.value===void 0?o&&(t.value[n]=void 0):t.value[n]=e.value}function Mn(e){let t=Object.keys(e.shape);for(let n of t)if(!e.shape?.[n]?._zod?.traits?.has(`$ZodType`))throw Error(`Invalid element at key "${n}": expected a Zod schema`);let n=he(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(n)}}function Nn(e,t,n,r,i,a){let o=[],s=i.keySet,c=i.catchall._zod,l=c.def.type,u=c.optin===`optional`,d=c.optout===`optional`;for(let i in t){if(i===`__proto__`||s.has(i))continue;if(l===`never`){o.push(i);continue}let a=c.run({value:t[i],issues:[]},r);a instanceof Promise?e.push(a.then(e=>jn(e,n,i,t,u,d))):jn(a,n,i,t,u,d)}return o.length&&n.issues.push({code:`unrecognized_keys`,keys:o,input:t,inst:a}),e.length?Promise.all(e).then(()=>n):n}var Pn=g(`$ZodObject`,(e,t)=>{if(O.init(e,t),!Object.getOwnPropertyDescriptor(t,`shape`)?.get){let e=t.shape;Object.defineProperty(t,"shape",{get:()=>{let n={...e};return Object.defineProperty(t,"shape",{value:n}),n}})}let n=C(()=>Mn(t));w(e._zod,`propValues`,()=>{let e=t.shape,n={};for(let t in e){let r=e[t]._zod;if(r.values){n[t]??(n[t]=new Set);for(let e of r.values)n[t].add(e)}}return n});let r=ce,i=t.catchall,a;e._zod.parse=(t,o)=>{a??=n.value;let s=t.value;if(!r(s))return t.issues.push({expected:`object`,code:`invalid_type`,input:s,inst:e}),t;t.value={};let c=[],l=a.shape;for(let e of a.keys){let n=l[e],r=n._zod.optin===`optional`,i=n._zod.optout===`optional`,a=n._zod.run({value:s[e],issues:[]},o);a instanceof Promise?c.push(a.then(n=>jn(n,t,e,s,r,i))):jn(a,t,e,s,r,i)}return i?Nn(c,s,t,o,n.value,e):c.length?Promise.all(c).then(()=>t):t}}),Fn=g(`$ZodObjectJIT`,(e,t)=>{Pn.init(e,t);let n=e._zod.parse,r=C(()=>Mn(t)),i=e=>{let t=new Gt([`shape`,`payload`,`ctx`]),n=r.value,i=e=>{let t=ae(e);return`shape[${t}]._zod.run({ value: input[${t}], issues: [] }, ctx)`};t.write(`const input = payload.value;`);let a=Object.create(null),o=0;for(let e of n.keys)a[e]=`key_${o++}`;t.write(`const newResult = {};`);for(let r of n.keys){let n=a[r],o=ae(r),s=e[r],c=s?._zod?.optin===`optional`,l=s?._zod?.optout===`optional`;t.write(`const ${n} = ${i(r)};`),c&&l?t.write(` - if (${n}.issues.length) { - if (${o} in input) { - payload.issues = payload.issues.concat(${n}.issues.map(iss => ({ - ...iss, - path: iss.path ? [${o}, ...iss.path] : [${o}] - }))); - } - } - - if (${n}.value === undefined) { - if (${o} in input) { - newResult[${o}] = undefined; - } - } else { - newResult[${o}] = ${n}.value; - } - - `):c?t.write(` - if (${n}.issues.length) { - payload.issues = payload.issues.concat(${n}.issues.map(iss => ({ - ...iss, - path: iss.path ? [${o}, ...iss.path] : [${o}] - }))); - } - - if (${n}.value === undefined) { - if (${o} in input) { - newResult[${o}] = undefined; - } - } else { - newResult[${o}] = ${n}.value; - } - - `):t.write(` - const ${n}_present = ${o} in input; - if (${n}.issues.length) { - payload.issues = payload.issues.concat(${n}.issues.map(iss => ({ - ...iss, - path: iss.path ? [${o}, ...iss.path] : [${o}] - }))); - } - if (!${n}_present && !${n}.issues.length) { - payload.issues.push({ - code: "invalid_type", - expected: "nonoptional", - input: undefined, - path: [${o}] - }); - } - - if (${n}_present) { - if (${n}.value === undefined) { - newResult[${o}] = undefined; - } else { - newResult[${o}] = ${n}.value; - } - } - - `)}t.write(`payload.value = newResult;`),t.write(`return payload;`);let s=t.compile();return(t,n)=>s(e,t,n)},a,o=ce,s=!y.jitless,c=s&&le.value,l=t.catchall,u;e._zod.parse=(d,f)=>{u??=r.value;let p=d.value;return o(p)?s&&c&&f?.async===!1&&f.jitless!==!0?(a||=i(t.shape),d=a(d,f),l?Nn([],p,d,f,u,e):d):n(d,f):(d.issues.push({expected:`object`,code:`invalid_type`,input:p,inst:e}),d)}});function In(e,t,n,r){for(let n of e)if(n.issues.length===0)return t.value=n.value,t;let i=e.filter(e=>!we(e));return i.length===1?(t.value=i[0].value,i[0]):(t.issues.push({code:`invalid_union`,input:t.value,inst:n,errors:e.map(e=>e.issues.map(e=>Oe(e,r,b())))}),t)}var Ln=g(`$ZodUnion`,(e,t)=>{O.init(e,t),w(e._zod,`optin`,()=>t.options.some(e=>e._zod.optin===`optional`)?`optional`:void 0),w(e._zod,`optout`,()=>t.options.some(e=>e._zod.optout===`optional`)?`optional`:void 0),w(e._zod,`values`,()=>{if(t.options.every(e=>e._zod.values))return new Set(t.options.flatMap(e=>Array.from(e._zod.values)))}),w(e._zod,`pattern`,()=>{if(t.options.every(e=>e._zod.pattern)){let e=t.options.map(e=>e._zod.pattern);return RegExp(`^(${e.map(e=>te(e.source)).join(`|`)})$`)}});let n=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(r,i)=>{if(n)return n(r,i);let a=!1,o=[];for(let e of t.options){let t=e._zod.run({value:r.value,issues:[]},i);if(t instanceof Promise)o.push(t),a=!0;else{if(t.issues.length===0)return t;o.push(t)}}return a?Promise.all(o).then(t=>In(t,r,e,i)):In(o,r,e,i)}}),Rn=g(`$ZodDiscriminatedUnion`,(e,t)=>{t.inclusive=!1,Ln.init(e,t);let n=e._zod.parse;w(e._zod,`propValues`,()=>{let e={};for(let n of t.options){let r=n._zod.propValues;if(!r||Object.keys(r).length===0)throw Error(`Invalid discriminated union option at index "${t.options.indexOf(n)}"`);for(let[t,n]of Object.entries(r)){e[t]||(e[t]=new Set);for(let r of n)e[t].add(r)}}return e});let r=C(()=>{let e=t.options,n=new Map;for(let r of e){let e=r._zod.propValues?.[t.discriminator];if(!e||e.size===0)throw Error(`Invalid discriminated union option at index "${t.options.indexOf(r)}"`);for(let t of e){if(n.has(t))throw Error(`Duplicate discriminator value "${String(t)}"`);n.set(t,r)}}return n});e._zod.parse=(i,a)=>{let o=i.value;if(!ce(o))return i.issues.push({code:`invalid_type`,expected:`object`,input:o,inst:e}),i;let s=r.value.get(o?.[t.discriminator]);return s?s._zod.run(i,a):t.unionFallback||a.direction===`backward`?n(i,a):(i.issues.push({code:`invalid_union`,errors:[],note:`No matching discriminator`,discriminator:t.discriminator,options:Array.from(r.value.keys()),input:o,path:[t.discriminator],inst:e}),i)}}),zn=g(`$ZodIntersection`,(e,t)=>{O.init(e,t),e._zod.parse=(e,n)=>{let r=e.value,i=t.left._zod.run({value:r,issues:[]},n),a=t.right._zod.run({value:r,issues:[]},n);return i instanceof Promise||a instanceof Promise?Promise.all([i,a]).then(([t,n])=>Vn(e,t,n)):Vn(e,i,a)}});function Bn(e,t){if(e===t||e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(ue(e)&&ue(t)){let n=Object.keys(t),r=Object.keys(e).filter(e=>n.indexOf(e)!==-1),i={...e,...t};for(let n of r){let r=Bn(e[n],t[n]);if(!r.valid)return{valid:!1,mergeErrorPath:[n,...r.mergeErrorPath]};i[n]=r.data}return{valid:!0,data:i}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};let n=[];for(let r=0;re.l&&e.r).map(([e])=>e);if(a.length&&i&&e.issues.push({...i,keys:a}),we(e))return e;let o=Bn(t.value,n.value);if(!o.valid)throw Error(`Unmergable intersection. Error path: ${JSON.stringify(o.mergeErrorPath)}`);return e.value=o.data,e}var Hn=g(`$ZodRecord`,(e,t)=>{O.init(e,t),e._zod.parse=(n,r)=>{let i=n.value;if(!ue(i))return n.issues.push({expected:`record`,code:`invalid_type`,input:i,inst:e}),n;let a=[],o=t.keyType._zod.values;if(o){n.value={};let s=new Set;for(let c of o)if(typeof c==`string`||typeof c==`number`||typeof c==`symbol`){s.add(typeof c==`number`?c.toString():c);let o=t.keyType._zod.run({value:c,issues:[]},r);if(o instanceof Promise)throw Error(`Async schemas not supported in object keys currently`);if(o.issues.length){n.issues.push({code:`invalid_key`,origin:`record`,issues:o.issues.map(e=>Oe(e,r,b())),input:c,path:[c],inst:e});continue}let l=o.value,u=t.valueType._zod.run({value:i[c],issues:[]},r);u instanceof Promise?a.push(u.then(e=>{e.issues.length&&n.issues.push(...Ee(c,e.issues)),n.value[l]=e.value})):(u.issues.length&&n.issues.push(...Ee(c,u.issues)),n.value[l]=u.value)}let c;for(let e in i)s.has(e)||(c??=[],c.push(e));c&&c.length>0&&n.issues.push({code:`unrecognized_keys`,input:i,inst:e,keys:c})}else{n.value={};for(let o of Reflect.ownKeys(i)){if(o===`__proto__`||!Object.prototype.propertyIsEnumerable.call(i,o))continue;let s=t.keyType._zod.run({value:o,issues:[]},r);if(s instanceof Promise)throw Error(`Async schemas not supported in object keys currently`);if(typeof o==`string`&&Ct.test(o)&&s.issues.length){let e=t.keyType._zod.run({value:Number(o),issues:[]},r);if(e instanceof Promise)throw Error(`Async schemas not supported in object keys currently`);e.issues.length===0&&(s=e)}if(s.issues.length){t.mode===`loose`?n.value[o]=i[o]:n.issues.push({code:`invalid_key`,origin:`record`,issues:s.issues.map(e=>Oe(e,r,b())),input:o,path:[o],inst:e});continue}let c=t.valueType._zod.run({value:i[o],issues:[]},r);c instanceof Promise?a.push(c.then(e=>{e.issues.length&&n.issues.push(...Ee(o,e.issues)),n.value[s.value]=e.value})):(c.issues.length&&n.issues.push(...Ee(o,c.issues)),n.value[s.value]=c.value)}}return a.length?Promise.all(a).then(()=>n):n}}),Un=g(`$ZodEnum`,(e,t)=>{O.init(e,t);let n=x(t.entries),r=new Set(n);e._zod.values=r,e._zod.pattern=RegExp(`^(${n.filter(e=>fe.has(typeof e)).map(e=>typeof e==`string`?pe(e):e.toString()).join(`|`)})$`),e._zod.parse=(t,i)=>{let a=t.value;return r.has(a)||t.issues.push({code:`invalid_value`,values:n,input:a,inst:e}),t}}),Wn=g(`$ZodLiteral`,(e,t)=>{if(O.init(e,t),t.values.length===0)throw Error(`Cannot create literal schema with no valid values`);let n=new Set(t.values);e._zod.values=n,e._zod.pattern=RegExp(`^(${t.values.map(e=>typeof e==`string`?pe(e):e?pe(e.toString()):String(e)).join(`|`)})$`),e._zod.parse=(r,i)=>{let a=r.value;return n.has(a)||r.issues.push({code:`invalid_value`,values:t.values,input:a,inst:e}),r}}),Gn=g(`$ZodTransform`,(e,t)=>{O.init(e,t),e._zod.optin=`optional`,e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new v(e.constructor.name);let i=t.transform(n.value,n);if(r.async)return(i instanceof Promise?i:Promise.resolve(i)).then(e=>(n.value=e,n.fallback=!0,n));if(i instanceof Promise)throw new _;return n.value=i,n.fallback=!0,n}});function Kn(e,t){return t===void 0&&(e.issues.length||e.fallback)?{issues:[],value:void 0}:e}var qn=g(`$ZodOptional`,(e,t)=>{O.init(e,t),e._zod.optin=`optional`,e._zod.optout=`optional`,w(e._zod,`values`,()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),w(e._zod,`pattern`,()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${te(e.source)})?$`):void 0}),e._zod.parse=(e,n)=>{if(t.innerType._zod.optin===`optional`){let r=e.value,i=t.innerType._zod.run(e,n);return i instanceof Promise?i.then(e=>Kn(e,r)):Kn(i,r)}return e.value===void 0?e:t.innerType._zod.run(e,n)}}),Jn=g(`$ZodExactOptional`,(e,t)=>{qn.init(e,t),w(e._zod,`values`,()=>t.innerType._zod.values),w(e._zod,`pattern`,()=>t.innerType._zod.pattern),e._zod.parse=(e,n)=>t.innerType._zod.run(e,n)}),Yn=g(`$ZodNullable`,(e,t)=>{O.init(e,t),w(e._zod,`optin`,()=>t.innerType._zod.optin),w(e._zod,`optout`,()=>t.innerType._zod.optout),w(e._zod,`pattern`,()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${te(e.source)}|null)$`):void 0}),w(e._zod,`values`,()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(e,n)=>e.value===null?e:t.innerType._zod.run(e,n)}),Xn=g(`$ZodDefault`,(e,t)=>{O.init(e,t),e._zod.optin=`optional`,w(e._zod,`values`,()=>t.innerType._zod.values),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);if(e.value===void 0)return e.value=t.defaultValue,e;let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(e=>Zn(e,t)):Zn(r,t)}});function Zn(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}var Qn=g(`$ZodPrefault`,(e,t)=>{O.init(e,t),e._zod.optin=`optional`,w(e._zod,`values`,()=>t.innerType._zod.values),e._zod.parse=(e,n)=>(n.direction===`backward`||e.value===void 0&&(e.value=t.defaultValue),t.innerType._zod.run(e,n))}),$n=g(`$ZodNonOptional`,(e,t)=>{O.init(e,t),w(e._zod,`values`,()=>{let e=t.innerType._zod.values;return e?new Set([...e].filter(e=>e!==void 0)):void 0}),e._zod.parse=(n,r)=>{let i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(t=>er(t,e)):er(i,e)}});function er(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:`invalid_type`,expected:`nonoptional`,input:e.value,inst:t}),e}var tr=g(`$ZodCatch`,(e,t)=>{O.init(e,t),e._zod.optin=`optional`,w(e._zod,`optout`,()=>t.innerType._zod.optout),w(e._zod,`values`,()=>t.innerType._zod.values),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(r=>(e.value=r.value,r.issues.length&&(e.value=t.catchValue({...e,error:{issues:r.issues.map(e=>Oe(e,n,b()))},input:e.value}),e.issues=[],e.fallback=!0),e)):(e.value=r.value,r.issues.length&&(e.value=t.catchValue({...e,error:{issues:r.issues.map(e=>Oe(e,n,b()))},input:e.value}),e.issues=[],e.fallback=!0),e)}}),nr=g(`$ZodPipe`,(e,t)=>{O.init(e,t),w(e._zod,`values`,()=>t.in._zod.values),w(e._zod,`optin`,()=>t.in._zod.optin),w(e._zod,`optout`,()=>t.out._zod.optout),w(e._zod,`propValues`,()=>t.in._zod.propValues),e._zod.parse=(e,n)=>{if(n.direction===`backward`){let r=t.out._zod.run(e,n);return r instanceof Promise?r.then(e=>rr(e,t.in,n)):rr(r,t.in,n)}let r=t.in._zod.run(e,n);return r instanceof Promise?r.then(e=>rr(e,t.out,n)):rr(r,t.out,n)}});function rr(e,t,n){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues,fallback:e.fallback},n)}var ir=g(`$ZodPreprocess`,(e,t)=>{nr.init(e,t)}),ar=g(`$ZodReadonly`,(e,t)=>{O.init(e,t),w(e._zod,`propValues`,()=>t.innerType._zod.propValues),w(e._zod,`values`,()=>t.innerType._zod.values),w(e._zod,`optin`,()=>t.innerType?._zod?.optin),w(e._zod,`optout`,()=>t.innerType?._zod?.optout),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(or):or(r)}});function or(e){return e.value=Object.freeze(e.value),e}var sr=g(`$ZodCustom`,(e,t)=>{D.init(e,t),O.init(e,t),e._zod.parse=(e,t)=>e,e._zod.check=n=>{let r=n.value,i=t.fn(r);if(i instanceof Promise)return i.then(t=>cr(t,n,r,e));cr(i,n,r,e)}});function cr(e,t,n,r){if(!e){let e={code:`custom`,input:n,inst:r,path:[...r._zod.def.path??[]],continue:!r._zod.def.abort};r._zod.def.params&&(e.params=r._zod.def.params),t.issues.push(Ae(e))}}var lr,ur=class{constructor(){this._map=new WeakMap,this._idmap=new Map}add(e,...t){let n=t[0];return this._map.set(e,n),n&&typeof n==`object`&&`id`in n&&this._idmap.set(n.id,e),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(e){let t=this._map.get(e);return t&&typeof t==`object`&&`id`in t&&this._idmap.delete(t.id),this._map.delete(e),this}get(e){let t=e._zod.parent;if(t){let n={...this.get(t)??{}};delete n.id;let r={...n,...this._map.get(e)};return Object.keys(r).length?r:void 0}return this._map.get(e)}has(e){return this._map.has(e)}};function dr(){return new ur}(lr=globalThis).__zod_globalRegistry??(lr.__zod_globalRegistry=dr());var fr=globalThis.__zod_globalRegistry;function pr(e,t){return new e({type:`string`,...E(t)})}function mr(e,t){return new e({type:`string`,format:`email`,check:`string_format`,abort:!1,...E(t)})}function hr(e,t){return new e({type:`string`,format:`guid`,check:`string_format`,abort:!1,...E(t)})}function gr(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,...E(t)})}function _r(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v4`,...E(t)})}function vr(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v6`,...E(t)})}function yr(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v7`,...E(t)})}function br(e,t){return new e({type:`string`,format:`url`,check:`string_format`,abort:!1,...E(t)})}function xr(e,t){return new e({type:`string`,format:`emoji`,check:`string_format`,abort:!1,...E(t)})}function Sr(e,t){return new e({type:`string`,format:`nanoid`,check:`string_format`,abort:!1,...E(t)})}function Cr(e,t){return new e({type:`string`,format:`cuid`,check:`string_format`,abort:!1,...E(t)})}function wr(e,t){return new e({type:`string`,format:`cuid2`,check:`string_format`,abort:!1,...E(t)})}function Tr(e,t){return new e({type:`string`,format:`ulid`,check:`string_format`,abort:!1,...E(t)})}function Er(e,t){return new e({type:`string`,format:`xid`,check:`string_format`,abort:!1,...E(t)})}function Dr(e,t){return new e({type:`string`,format:`ksuid`,check:`string_format`,abort:!1,...E(t)})}function Or(e,t){return new e({type:`string`,format:`ipv4`,check:`string_format`,abort:!1,...E(t)})}function kr(e,t){return new e({type:`string`,format:`ipv6`,check:`string_format`,abort:!1,...E(t)})}function Ar(e,t){return new e({type:`string`,format:`cidrv4`,check:`string_format`,abort:!1,...E(t)})}function jr(e,t){return new e({type:`string`,format:`cidrv6`,check:`string_format`,abort:!1,...E(t)})}function Mr(e,t){return new e({type:`string`,format:`base64`,check:`string_format`,abort:!1,...E(t)})}function Nr(e,t){return new e({type:`string`,format:`base64url`,check:`string_format`,abort:!1,...E(t)})}function Pr(e,t){return new e({type:`string`,format:`e164`,check:`string_format`,abort:!1,...E(t)})}function Fr(e,t){return new e({type:`string`,format:`jwt`,check:`string_format`,abort:!1,...E(t)})}function Ir(e,t){return new e({type:`string`,format:`datetime`,check:`string_format`,offset:!1,local:!1,precision:null,...E(t)})}function Lr(e,t){return new e({type:`string`,format:`date`,check:`string_format`,...E(t)})}function Rr(e,t){return new e({type:`string`,format:`time`,check:`string_format`,precision:null,...E(t)})}function zr(e,t){return new e({type:`string`,format:`duration`,check:`string_format`,...E(t)})}function Br(e,t){return new e({type:`number`,checks:[],...E(t)})}function Vr(e,t){return new e({type:`number`,coerce:!0,checks:[],...E(t)})}function Hr(e,t){return new e({type:`number`,check:`number_format`,abort:!1,format:`safeint`,...E(t)})}function Ur(e,t){return new e({type:`boolean`,...E(t)})}function Wr(e,t){return new e({type:`undefined`,...E(t)})}function Gr(e,t){return new e({type:`null`,...E(t)})}function Kr(e){return new e({type:`any`})}function qr(e){return new e({type:`unknown`})}function Jr(e,t){return new e({type:`never`,...E(t)})}function Yr(e,t){return new At({check:`less_than`,...E(t),value:e,inclusive:!1})}function Xr(e,t){return new At({check:`less_than`,...E(t),value:e,inclusive:!0})}function Zr(e,t){return new jt({check:`greater_than`,...E(t),value:e,inclusive:!1})}function Qr(e,t){return new jt({check:`greater_than`,...E(t),value:e,inclusive:!0})}function $r(e,t){return new Mt({check:`multiple_of`,...E(t),value:e})}function ei(e,t){return new Pt({check:`max_length`,...E(t),maximum:e})}function ti(e,t){return new Ft({check:`min_length`,...E(t),minimum:e})}function ni(e,t){return new It({check:`length_equals`,...E(t),length:e})}function ri(e,t){return new Rt({check:`string_format`,format:`regex`,...E(t),pattern:e})}function ii(e){return new zt({check:`string_format`,format:`lowercase`,...E(e)})}function ai(e){return new Bt({check:`string_format`,format:`uppercase`,...E(e)})}function oi(e,t){return new Vt({check:`string_format`,format:`includes`,...E(t),includes:e})}function si(e,t){return new Ht({check:`string_format`,format:`starts_with`,...E(t),prefix:e})}function ci(e,t){return new Ut({check:`string_format`,format:`ends_with`,...E(t),suffix:e})}function li(e){return new Wt({check:`overwrite`,tx:e})}function ui(e){return li(t=>t.normalize(e))}function di(){return li(e=>e.trim())}function fi(){return li(e=>e.toLowerCase())}function pi(){return li(e=>e.toUpperCase())}function mi(){return li(e=>oe(e))}function hi(e,t,n){return new e({type:`array`,element:t,...E(n)})}function gi(e,t,n){let r=E(n);return r.abort??=!0,new e({type:`custom`,check:`custom`,fn:t,...r})}function _i(e,t,n){return new e({type:`custom`,check:`custom`,fn:t,...E(n)})}function vi(e,t){let n=yi(t=>(t.addIssue=e=>{if(typeof e==`string`)t.issues.push(Ae(e,t.value,n._zod.def));else{let r=e;r.fatal&&(r.continue=!1),r.code??=`custom`,r.input??=t.value,r.inst??=n,r.continue??=!n._zod.def.abort,t.issues.push(Ae(r))}},e(t.value,t)),t);return n}function yi(e,t){let n=new D({check:`custom`,...E(t)});return n._zod.check=e,n}function bi(e){let t=e?.target??`draft-2020-12`;return t===`draft-4`&&(t=`draft-04`),t===`draft-7`&&(t=`draft-07`),{processors:e.processors??{},metadataRegistry:e?.metadata??fr,target:t,unrepresentable:e?.unrepresentable??`throw`,override:e?.override??(()=>{}),io:e?.io??`output`,counter:0,seen:new Map,cycles:e?.cycles??`ref`,reused:e?.reused??`inline`,external:e?.external??void 0}}function A(e,t,n={path:[],schemaPath:[]}){var r;let i=e._zod.def,a=t.seen.get(e);if(a)return a.count++,n.schemaPath.includes(e)&&(a.cycle=n.path),a.schema;let o={schema:{},count:1,cycle:void 0,path:n.path};t.seen.set(e,o);let s=e._zod.toJSONSchema?.();if(s)o.schema=s;else{let r={...n,schemaPath:[...n.schemaPath,e],path:n.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,o.schema,r);else{let n=o.schema,a=t.processors[i.type];if(!a)throw Error(`[toJSONSchema]: Non-representable type encountered: ${i.type}`);a(e,t,n,r)}let a=e._zod.parent;a&&(o.ref||=a,A(a,t,r),t.seen.get(a).isParent=!0)}let c=t.metadataRegistry.get(e);return c&&Object.assign(o.schema,c),t.io===`input`&&j(e)&&(delete o.schema.examples,delete o.schema.default),t.io===`input`&&`_prefault`in o.schema&&((r=o.schema).default??(r.default=o.schema._prefault)),delete o.schema._prefault,t.seen.get(e).schema}function xi(e,t){let n=e.seen.get(t);if(!n)throw Error(`Unprocessed schema. This is a bug in Zod.`);let r=new Map;for(let t of e.seen.entries()){let n=e.metadataRegistry.get(t[0])?.id;if(n){let e=r.get(n);if(e&&e!==t[0])throw Error(`Duplicate schema id "${n}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);r.set(n,t[0])}}let i=t=>{let r=e.target===`draft-2020-12`?`$defs`:`definitions`;if(e.external){let n=e.external.registry.get(t[0])?.id,i=e.external.uri??(e=>e);if(n)return{ref:i(n)};let a=t[1].defId??t[1].schema.id??`schema${e.counter++}`;return t[1].defId=a,{defId:a,ref:`${i(`__shared`)}#/${r}/${a}`}}if(t[1]===n)return{ref:`#`};let i=`#/${r}/`,a=t[1].schema.id??`__schema${e.counter++}`;return{defId:a,ref:i+a}},a=e=>{if(e[1].schema.$ref)return;let t=e[1],{ref:n,defId:r}=i(e);t.def={...t.schema},r&&(t.defId=r);let a=t.schema;for(let e in a)delete a[e];a.$ref=n};if(e.cycles===`throw`)for(let t of e.seen.entries()){let e=t[1];if(e.cycle)throw Error(`Cycle detected: #/${e.cycle?.join(`/`)}/ - -Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let n of e.seen.entries()){let r=n[1];if(t===n[0]){a(n);continue}if(e.external){let r=e.external.registry.get(n[0])?.id;if(t!==n[0]&&r){a(n);continue}}if(e.metadataRegistry.get(n[0])?.id){a(n);continue}if(r.cycle){a(n);continue}if(r.count>1&&e.reused===`ref`){a(n);continue}}}function Si(e,t){let n=e.seen.get(t);if(!n)throw Error(`Unprocessed schema. This is a bug in Zod.`);let r=t=>{let n=e.seen.get(t);if(n.ref===null)return;let i=n.def??n.schema,a={...i},o=n.ref;if(n.ref=null,o){r(o);let n=e.seen.get(o),s=n.schema;if(s.$ref&&(e.target===`draft-07`||e.target===`draft-04`||e.target===`openapi-3.0`)?(i.allOf=i.allOf??[],i.allOf.push(s)):Object.assign(i,s),Object.assign(i,a),t._zod.parent===o)for(let e in i)e!==`$ref`&&e!==`allOf`&&(e in a||delete i[e]);if(s.$ref&&n.def)for(let e in i)e!==`$ref`&&e!==`allOf`&&e in n.def&&JSON.stringify(i[e])===JSON.stringify(n.def[e])&&delete i[e]}let s=t._zod.parent;if(s&&s!==o){r(s);let t=e.seen.get(s);if(t?.schema.$ref&&(i.$ref=t.schema.$ref,t.def))for(let e in i)e!==`$ref`&&e!==`allOf`&&e in t.def&&JSON.stringify(i[e])===JSON.stringify(t.def[e])&&delete i[e]}e.override({zodSchema:t,jsonSchema:i,path:n.path??[]})};for(let t of[...e.seen.entries()].reverse())r(t[0]);let i={};if(e.target===`draft-2020-12`?i.$schema=`https://json-schema.org/draft/2020-12/schema`:e.target===`draft-07`?i.$schema=`http://json-schema.org/draft-07/schema#`:e.target===`draft-04`?i.$schema=`http://json-schema.org/draft-04/schema#`:e.target,e.external?.uri){let n=e.external.registry.get(t)?.id;if(!n)throw Error("Schema is missing an `id` property");i.$id=e.external.uri(n)}Object.assign(i,n.def??n.schema);let a=e.metadataRegistry.get(t)?.id;a!==void 0&&i.id===a&&delete i.id;let o=e.external?.defs??{};for(let t of e.seen.entries()){let e=t[1];e.def&&e.defId&&(e.def.id===e.defId&&delete e.def.id,o[e.defId]=e.def)}e.external||Object.keys(o).length>0&&(e.target===`draft-2020-12`?i.$defs=o:i.definitions=o);try{let n=JSON.parse(JSON.stringify(i));return Object.defineProperty(n,"~standard",{value:{...t[`~standard`],jsonSchema:{input:wi(t,`input`,e.processors),output:wi(t,`output`,e.processors)}},enumerable:!1,writable:!1}),n}catch{throw Error(`Error converting schema to JSON.`)}}function j(e,t){let n=t??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);let r=e._zod.def;if(r.type===`transform`)return!0;if(r.type===`array`)return j(r.element,n);if(r.type===`set`)return j(r.valueType,n);if(r.type===`lazy`)return j(r.getter(),n);if(r.type===`promise`||r.type===`optional`||r.type===`nonoptional`||r.type===`nullable`||r.type===`readonly`||r.type==="default"||r.type===`prefault`)return j(r.innerType,n);if(r.type===`intersection`)return j(r.left,n)||j(r.right,n);if(r.type===`record`||r.type===`map`)return j(r.keyType,n)||j(r.valueType,n);if(r.type===`pipe`)return e._zod.traits.has(`$ZodCodec`)?!0:j(r.in,n)||j(r.out,n);if(r.type===`object`){for(let e in r.shape)if(j(r.shape[e],n))return!0;return!1}if(r.type===`union`){for(let e of r.options)if(j(e,n))return!0;return!1}if(r.type===`tuple`){for(let e of r.items)if(j(e,n))return!0;return!!(r.rest&&j(r.rest,n))}return!1}var Ci=(e,t={})=>n=>{let r=bi({...n,processors:t});return A(e,r),xi(r,e),Si(r,e)},wi=(e,t,n={})=>r=>{let{libraryOptions:i,target:a}=r??{},o=bi({...i??{},target:a,io:t,processors:n});return A(e,o),xi(o,e),Si(o,e)},Ti={guid:`uuid`,url:`uri`,datetime:`date-time`,json_string:`json-string`,regex:``},Ei=(e,t,n,r)=>{let i=n;i.type=`string`;let{minimum:a,maximum:o,format:s,patterns:c,contentEncoding:l}=e._zod.bag;if(typeof a==`number`&&(i.minLength=a),typeof o==`number`&&(i.maxLength=o),s&&(i.format=Ti[s]??s,i.format===``&&delete i.format,s===`time`&&delete i.format),l&&(i.contentEncoding=l),c&&c.size>0){let e=[...c];e.length===1?i.pattern=e[0].source:e.length>1&&(i.allOf=[...e.map(e=>({...t.target===`draft-07`||t.target===`draft-04`||t.target===`openapi-3.0`?{type:`string`}:{},pattern:e.source}))])}},Di=(e,t,n,r)=>{let i=n,{minimum:a,maximum:o,format:s,multipleOf:c,exclusiveMaximum:l,exclusiveMinimum:u}=e._zod.bag;i.type=typeof s==`string`&&s.includes(`int`)?`integer`:`number`;let d=typeof u==`number`&&u>=(a??-1/0),f=typeof l==`number`&&l<=(o??1/0),p=t.target===`draft-04`||t.target===`openapi-3.0`;d?p?(i.minimum=u,i.exclusiveMinimum=!0):i.exclusiveMinimum=u:typeof a==`number`&&(i.minimum=a),f?p?(i.maximum=l,i.exclusiveMaximum=!0):i.exclusiveMaximum=l:typeof o==`number`&&(i.maximum=o),typeof c==`number`&&(i.multipleOf=c)},Oi=(e,t,n,r)=>{n.type=`boolean`},ki=(e,t,n,r)=>{t.target===`openapi-3.0`?(n.type=`string`,n.nullable=!0,n.enum=[null]):n.type=`null`},Ai=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Undefined cannot be represented in JSON Schema`)},ji=(e,t,n,r)=>{n.not={}},Mi=(e,t,n,r)=>{let i=e._zod.def,a=x(i.entries);a.every(e=>typeof e==`number`)&&(n.type=`number`),a.every(e=>typeof e==`string`)&&(n.type=`string`),n.enum=a},Ni=(e,t,n,r)=>{let i=e._zod.def,a=[];for(let e of i.values)if(e===void 0){if(t.unrepresentable===`throw`)throw Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof e==`bigint`){if(t.unrepresentable===`throw`)throw Error(`BigInt literals cannot be represented in JSON Schema`);a.push(Number(e))}else a.push(e);if(a.length!==0)if(a.length===1){let e=a[0];n.type=e===null?`null`:typeof e,t.target===`draft-04`||t.target===`openapi-3.0`?n.enum=[e]:n.const=e}else a.every(e=>typeof e==`number`)&&(n.type=`number`),a.every(e=>typeof e==`string`)&&(n.type=`string`),a.every(e=>typeof e==`boolean`)&&(n.type=`boolean`),a.every(e=>e===null)&&(n.type=`null`),n.enum=a},Pi=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Custom types cannot be represented in JSON Schema`)},Fi=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Transforms cannot be represented in JSON Schema`)},Ii=(e,t,n,r)=>{let i=n,a=e._zod.def,{minimum:o,maximum:s}=e._zod.bag;typeof o==`number`&&(i.minItems=o),typeof s==`number`&&(i.maxItems=s),i.type=`array`,i.items=A(a.element,t,{...r,path:[...r.path,`items`]})},Li=(e,t,n,r)=>{let i=n,a=e._zod.def;i.type=`object`,i.properties={};let o=a.shape;for(let e in o)i.properties[e]=A(o[e],t,{...r,path:[...r.path,`properties`,e]});let s=new Set(Object.keys(o)),c=new Set([...s].filter(e=>{let n=a.shape[e]._zod;return t.io===`input`?n.optin===void 0:n.optout===void 0}));c.size>0&&(i.required=Array.from(c)),a.catchall?._zod.def.type===`never`?i.additionalProperties=!1:a.catchall?a.catchall&&(i.additionalProperties=A(a.catchall,t,{...r,path:[...r.path,`additionalProperties`]})):t.io===`output`&&(i.additionalProperties=!1)},Ri=(e,t,n,r)=>{let i=e._zod.def,a=i.inclusive===!1,o=i.options.map((e,n)=>A(e,t,{...r,path:[...r.path,a?`oneOf`:`anyOf`,n]}));a?n.oneOf=o:n.anyOf=o},zi=(e,t,n,r)=>{let i=e._zod.def,a=A(i.left,t,{...r,path:[...r.path,`allOf`,0]}),o=A(i.right,t,{...r,path:[...r.path,`allOf`,1]}),s=e=>`allOf`in e&&Object.keys(e).length===1;n.allOf=[...s(a)?a.allOf:[a],...s(o)?o.allOf:[o]]},Bi=(e,t,n,r)=>{let i=n,a=e._zod.def;i.type=`object`;let o=a.keyType,s=o._zod.bag?.patterns;if(a.mode===`loose`&&s&&s.size>0){let e=A(a.valueType,t,{...r,path:[...r.path,`patternProperties`,`*`]});i.patternProperties={};for(let t of s)i.patternProperties[t.source]=e}else(t.target===`draft-07`||t.target===`draft-2020-12`)&&(i.propertyNames=A(a.keyType,t,{...r,path:[...r.path,`propertyNames`]})),i.additionalProperties=A(a.valueType,t,{...r,path:[...r.path,`additionalProperties`]});let c=o._zod.values;if(c){let e=[...c].filter(e=>typeof e==`string`||typeof e==`number`);e.length>0&&(i.required=e)}},Vi=(e,t,n,r)=>{let i=e._zod.def,a=A(i.innerType,t,r),o=t.seen.get(e);t.target===`openapi-3.0`?(o.ref=i.innerType,n.nullable=!0):n.anyOf=[a,{type:`null`}]},Hi=(e,t,n,r)=>{let i=e._zod.def;A(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},Ui=(e,t,n,r)=>{let i=e._zod.def;A(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,n.default=JSON.parse(JSON.stringify(i.defaultValue))},Wi=(e,t,n,r)=>{let i=e._zod.def;A(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,t.io===`input`&&(n._prefault=JSON.parse(JSON.stringify(i.defaultValue)))},Gi=(e,t,n,r)=>{let i=e._zod.def;A(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType;let o;try{o=i.catchValue(void 0)}catch{throw Error(`Dynamic catch values are not supported in JSON Schema`)}n.default=o},Ki=(e,t,n,r)=>{let i=e._zod.def,a=i.in._zod.traits.has(`$ZodTransform`),o=t.io===`input`?a?i.out:i.in:i.out;A(o,t,r);let s=t.seen.get(e);s.ref=o},qi=(e,t,n,r)=>{let i=e._zod.def;A(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,n.readOnly=!0},Ji=(e,t,n,r)=>{let i=e._zod.def;A(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},Yi=g(`ZodISODateTime`,(e,t)=>{on.init(e,t),P.init(e,t)});function Xi(e){return Ir(Yi,e)}var Zi=g(`ZodISODate`,(e,t)=>{sn.init(e,t),P.init(e,t)});function Qi(e){return Lr(Zi,e)}var $i=g(`ZodISOTime`,(e,t)=>{cn.init(e,t),P.init(e,t)});function ea(e){return Rr($i,e)}var ta=g(`ZodISODuration`,(e,t)=>{ln.init(e,t),P.init(e,t)});function na(e){return zr(ta,e)}var ra=g(`ZodError`,(e,t)=>{Me.init(e,t),e.name=`ZodError`,Object.defineProperties(e,{format:{value:t=>Fe(e,t)},flatten:{value:t=>Pe(e,t)},addIssue:{value:t=>{e.issues.push(t),e.message=JSON.stringify(e.issues,S,2)}},addIssues:{value:t=>{e.issues.push(...t),e.message=JSON.stringify(e.issues,S,2)}},isEmpty:{get(){return e.issues.length===0}}})},{Parent:Error}),ia=Ie(ra),aa=Le(ra),oa=Re(ra),sa=Be(ra),ca=He(ra),la=Ue(ra),ua=We(ra),da=Ge(ra),fa=Ke(ra),pa=qe(ra),ma=Je(ra),ha=Ye(ra),ga=new WeakMap;function _a(e,t,n){let r=Object.getPrototypeOf(e),i=ga.get(r);if(i||(i=new Set,ga.set(r,i)),!i.has(t)){i.add(t);for(let e in n){let t=n[e];Object.defineProperty(r,e,{configurable:!0,enumerable:!1,get(){let n=t.bind(this);return Object.defineProperty(this,e,{configurable:!0,writable:!0,enumerable:!0,value:n}),n},set(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,enumerable:!0,value:t})}})}}}var M=g(`ZodType`,(e,t)=>(O.init(e,t),Object.assign(e[`~standard`],{jsonSchema:{input:wi(e,`input`),output:wi(e,`output`)}}),e.toJSONSchema=Ci(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.parse=(t,n)=>ia(e,t,n,{callee:e.parse}),e.safeParse=(t,n)=>oa(e,t,n),e.parseAsync=async(t,n)=>aa(e,t,n,{callee:e.parseAsync}),e.safeParseAsync=async(t,n)=>sa(e,t,n),e.spa=e.safeParseAsync,e.encode=(t,n)=>ca(e,t,n),e.decode=(t,n)=>la(e,t,n),e.encodeAsync=async(t,n)=>ua(e,t,n),e.decodeAsync=async(t,n)=>da(e,t,n),e.safeEncode=(t,n)=>fa(e,t,n),e.safeDecode=(t,n)=>pa(e,t,n),e.safeEncodeAsync=async(t,n)=>ma(e,t,n),e.safeDecodeAsync=async(t,n)=>ha(e,t,n),_a(e,`ZodType`,{check(...e){let t=this.def;return this.clone(ie(t,{checks:[...t.checks??[],...e.map(e=>typeof e==`function`?{_zod:{check:e,def:{check:`custom`},onattach:[]}}:e)]}),{parent:!0})},with(...e){return this.check(...e)},clone(e,t){return me(this,e,t)},brand(){return this},register(e,t){return e.add(this,t),this},refine(e,t){return this.check(No(e,t))},superRefine(e,t){return this.check(Po(e,t))},overwrite(e){return this.check(li(e))},optional(){return W(this)},exactOptional(){return ho(this)},nullable(){return _o(this)},nullish(){return W(_o(this))},nonoptional(e){return Co(this,e)},array(){return R(this)},or(e){return V([this,e])},and(e){return ao(this,e)},transform(e){return Do(this,fo(e))},default(e){return yo(this,e)},prefault(e){return xo(this,e)},catch(e){return To(this,e)},pipe(e){return Do(this,e)},readonly(){return Ao(this)},describe(e){let t=this.clone();return fr.add(t,{description:e}),t},meta(...e){if(e.length===0)return fr.get(this);let t=this.clone();return fr.add(t,e[0]),t},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(e){return e(this)}}),Object.defineProperty(e,"description",{get(){return fr.get(e)?.description},configurable:!0}),e)),va=g(`_ZodString`,(e,t)=>{qt.init(e,t),M.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Ei(e,t,n,r);let n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,_a(e,`_ZodString`,{regex(...e){return this.check(ri(...e))},includes(...e){return this.check(oi(...e))},startsWith(...e){return this.check(si(...e))},endsWith(...e){return this.check(ci(...e))},min(...e){return this.check(ti(...e))},max(...e){return this.check(ei(...e))},length(...e){return this.check(ni(...e))},nonempty(...e){return this.check(ti(1,...e))},lowercase(e){return this.check(ii(e))},uppercase(e){return this.check(ai(e))},trim(){return this.check(di())},normalize(...e){return this.check(ui(...e))},toLowerCase(){return this.check(fi())},toUpperCase(){return this.check(pi())},slugify(){return this.check(mi())}})}),ya=g(`ZodString`,(e,t)=>{qt.init(e,t),va.init(e,t),e.email=t=>e.check(mr(ba,t)),e.url=t=>e.check(br(Ca,t)),e.jwt=t=>e.check(Fr(za,t)),e.emoji=t=>e.check(xr(Ta,t)),e.guid=t=>e.check(hr(xa,t)),e.uuid=t=>e.check(gr(Sa,t)),e.uuidv4=t=>e.check(_r(Sa,t)),e.uuidv6=t=>e.check(vr(Sa,t)),e.uuidv7=t=>e.check(yr(Sa,t)),e.nanoid=t=>e.check(Sr(Ea,t)),e.guid=t=>e.check(hr(xa,t)),e.cuid=t=>e.check(Cr(Da,t)),e.cuid2=t=>e.check(wr(Oa,t)),e.ulid=t=>e.check(Tr(ka,t)),e.base64=t=>e.check(Mr(Ia,t)),e.base64url=t=>e.check(Nr(La,t)),e.xid=t=>e.check(Er(Aa,t)),e.ksuid=t=>e.check(Dr(ja,t)),e.ipv4=t=>e.check(Or(Ma,t)),e.ipv6=t=>e.check(kr(Na,t)),e.cidrv4=t=>e.check(Ar(Pa,t)),e.cidrv6=t=>e.check(jr(Fa,t)),e.e164=t=>e.check(Pr(Ra,t)),e.datetime=t=>e.check(Xi(t)),e.date=t=>e.check(Qi(t)),e.time=t=>e.check(ea(t)),e.duration=t=>e.check(na(t))});function N(e){return pr(ya,e)}var P=g(`ZodStringFormat`,(e,t)=>{k.init(e,t),va.init(e,t)}),ba=g(`ZodEmail`,(e,t)=>{Xt.init(e,t),P.init(e,t)}),xa=g(`ZodGUID`,(e,t)=>{Jt.init(e,t),P.init(e,t)}),Sa=g(`ZodUUID`,(e,t)=>{Yt.init(e,t),P.init(e,t)}),Ca=g(`ZodURL`,(e,t)=>{Zt.init(e,t),P.init(e,t)});function wa(e){return br(Ca,e)}var Ta=g(`ZodEmoji`,(e,t)=>{Qt.init(e,t),P.init(e,t)}),Ea=g(`ZodNanoID`,(e,t)=>{$t.init(e,t),P.init(e,t)}),Da=g(`ZodCUID`,(e,t)=>{en.init(e,t),P.init(e,t)}),Oa=g(`ZodCUID2`,(e,t)=>{tn.init(e,t),P.init(e,t)}),ka=g(`ZodULID`,(e,t)=>{nn.init(e,t),P.init(e,t)}),Aa=g(`ZodXID`,(e,t)=>{rn.init(e,t),P.init(e,t)}),ja=g(`ZodKSUID`,(e,t)=>{an.init(e,t),P.init(e,t)}),Ma=g(`ZodIPv4`,(e,t)=>{un.init(e,t),P.init(e,t)}),Na=g(`ZodIPv6`,(e,t)=>{dn.init(e,t),P.init(e,t)}),Pa=g(`ZodCIDRv4`,(e,t)=>{fn.init(e,t),P.init(e,t)}),Fa=g(`ZodCIDRv6`,(e,t)=>{pn.init(e,t),P.init(e,t)}),Ia=g(`ZodBase64`,(e,t)=>{hn.init(e,t),P.init(e,t)}),La=g(`ZodBase64URL`,(e,t)=>{_n.init(e,t),P.init(e,t)}),Ra=g(`ZodE164`,(e,t)=>{vn.init(e,t),P.init(e,t)}),za=g(`ZodJWT`,(e,t)=>{bn.init(e,t),P.init(e,t)}),Ba=g(`ZodNumber`,(e,t)=>{xn.init(e,t),M.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Di(e,t,n,r),_a(e,`ZodNumber`,{gt(e,t){return this.check(Zr(e,t))},gte(e,t){return this.check(Qr(e,t))},min(e,t){return this.check(Qr(e,t))},lt(e,t){return this.check(Yr(e,t))},lte(e,t){return this.check(Xr(e,t))},max(e,t){return this.check(Xr(e,t))},int(e){return this.check(Ha(e))},safe(e){return this.check(Ha(e))},positive(e){return this.check(Zr(0,e))},nonnegative(e){return this.check(Qr(0,e))},negative(e){return this.check(Yr(0,e))},nonpositive(e){return this.check(Xr(0,e))},multipleOf(e,t){return this.check($r(e,t))},step(e,t){return this.check($r(e,t))},finite(){return this}});let n=e._zod.bag;e.minValue=Math.max(n.minimum??-1/0,n.exclusiveMinimum??-1/0)??null,e.maxValue=Math.min(n.maximum??1/0,n.exclusiveMaximum??1/0)??null,e.isInt=(n.format??``).includes(`int`)||Number.isSafeInteger(n.multipleOf??.5),e.isFinite=!0,e.format=n.format??null});function F(e){return Br(Ba,e)}var Va=g(`ZodNumberFormat`,(e,t)=>{Sn.init(e,t),Ba.init(e,t)});function Ha(e){return Hr(Va,e)}var Ua=g(`ZodBoolean`,(e,t)=>{Cn.init(e,t),M.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Oi(e,t,n,r)});function I(e){return Ur(Ua,e)}var Wa=g(`ZodUndefined`,(e,t)=>{wn.init(e,t),M.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Ai(e,t,n,r)});function Ga(e){return Wr(Wa,e)}var Ka=g(`ZodNull`,(e,t)=>{Tn.init(e,t),M.init(e,t),e._zod.processJSONSchema=(t,n,r)=>ki(e,t,n,r)});function qa(e){return Gr(Ka,e)}var Ja=g(`ZodAny`,(e,t)=>{En.init(e,t),M.init(e,t),e._zod.processJSONSchema=(e,t,n)=>void 0});function Ya(){return Kr(Ja)}var Xa=g(`ZodUnknown`,(e,t)=>{Dn.init(e,t),M.init(e,t),e._zod.processJSONSchema=(e,t,n)=>void 0});function L(){return qr(Xa)}var Za=g(`ZodNever`,(e,t)=>{On.init(e,t),M.init(e,t),e._zod.processJSONSchema=(t,n,r)=>ji(e,t,n,r)});function Qa(e){return Jr(Za,e)}var $a=g(`ZodArray`,(e,t)=>{An.init(e,t),M.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Ii(e,t,n,r),e.element=t.element,_a(e,`ZodArray`,{min(e,t){return this.check(ti(e,t))},nonempty(e){return this.check(ti(1,e))},max(e,t){return this.check(ei(e,t))},length(e,t){return this.check(ni(e,t))},unwrap(){return this.element}})});function R(e,t){return hi($a,e,t)}var eo=g(`ZodObject`,(e,t)=>{Fn.init(e,t),M.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Li(e,t,n,r),w(e,`shape`,()=>t.shape),_a(e,`ZodObject`,{keyof(){return co(Object.keys(this._zod.def.shape))},catchall(e){return this.clone({...this._zod.def,catchall:e})},passthrough(){return this.clone({...this._zod.def,catchall:L()})},loose(){return this.clone({...this._zod.def,catchall:L()})},strict(){return this.clone({...this._zod.def,catchall:Qa()})},strip(){return this.clone({...this._zod.def,catchall:void 0})},extend(e){return ye(this,e)},safeExtend(e){return be(this,e)},merge(e){return xe(this,e)},pick(e){return _e(this,e)},omit(e){return ve(this,e)},partial(...e){return Se(po,this,e[0])},required(...e){return Ce(So,this,e[0])}})});function z(e,t){return new eo({type:`object`,shape:e??{},...E(t)})}function B(e,t){return new eo({type:`object`,shape:e,catchall:L(),...E(t)})}var to=g(`ZodUnion`,(e,t)=>{Ln.init(e,t),M.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Ri(e,t,n,r),e.options=t.options});function V(e,t){return new to({type:`union`,options:e,...E(t)})}var no=g(`ZodDiscriminatedUnion`,(e,t)=>{to.init(e,t),Rn.init(e,t)});function ro(e,t,n){return new no({type:`union`,options:t,discriminator:e,...E(n)})}var io=g(`ZodIntersection`,(e,t)=>{zn.init(e,t),M.init(e,t),e._zod.processJSONSchema=(t,n,r)=>zi(e,t,n,r)});function ao(e,t){return new io({type:`intersection`,left:e,right:t})}var oo=g(`ZodRecord`,(e,t)=>{Hn.init(e,t),M.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Bi(e,t,n,r),e.keyType=t.keyType,e.valueType=t.valueType});function H(e,t,n){return!t||!t._zod?new oo({type:`record`,keyType:N(),valueType:e,...E(t)}):new oo({type:`record`,keyType:e,valueType:t,...E(n)})}var so=g(`ZodEnum`,(e,t)=>{Un.init(e,t),M.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Mi(e,t,n,r),e.enum=t.entries,e.options=Object.values(t.entries);let n=new Set(Object.keys(t.entries));e.extract=(e,r)=>{let i={};for(let r of e)if(n.has(r))i[r]=t.entries[r];else throw Error(`Key ${r} not found in enum`);return new so({...t,checks:[],...E(r),entries:i})},e.exclude=(e,r)=>{let i={...t.entries};for(let t of e)if(n.has(t))delete i[t];else throw Error(`Key ${t} not found in enum`);return new so({...t,checks:[],...E(r),entries:i})}});function co(e,t){return new so({type:`enum`,entries:Array.isArray(e)?Object.fromEntries(e.map(e=>[e,e])):e,...E(t)})}var lo=g(`ZodLiteral`,(e,t)=>{Wn.init(e,t),M.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Ni(e,t,n,r),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if(t.values.length>1)throw Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})});function U(e,t){return new lo({type:`literal`,values:Array.isArray(e)?e:[e],...E(t)})}var uo=g(`ZodTransform`,(e,t)=>{Gn.init(e,t),M.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Fi(e,t,n,r),e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new v(e.constructor.name);n.addIssue=r=>{if(typeof r==`string`)n.issues.push(Ae(r,n.value,t));else{let t=r;t.fatal&&(t.continue=!1),t.code??=`custom`,t.input??=n.value,t.inst??=e,n.issues.push(Ae(t))}};let i=t.transform(n.value,n);return i instanceof Promise?i.then(e=>(n.value=e,n.fallback=!0,n)):(n.value=i,n.fallback=!0,n)}});function fo(e){return new uo({type:`transform`,transform:e})}var po=g(`ZodOptional`,(e,t)=>{qn.init(e,t),M.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Ji(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function W(e){return new po({type:`optional`,innerType:e})}var mo=g(`ZodExactOptional`,(e,t)=>{Jn.init(e,t),M.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Ji(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function ho(e){return new mo({type:`optional`,innerType:e})}var go=g(`ZodNullable`,(e,t)=>{Yn.init(e,t),M.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Vi(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function _o(e){return new go({type:`nullable`,innerType:e})}var vo=g(`ZodDefault`,(e,t)=>{Xn.init(e,t),M.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Ui(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function yo(e,t){return new vo({type:`default`,innerType:e,get defaultValue(){return typeof t==`function`?t():de(t)}})}var bo=g(`ZodPrefault`,(e,t)=>{Qn.init(e,t),M.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Wi(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function xo(e,t){return new bo({type:`prefault`,innerType:e,get defaultValue(){return typeof t==`function`?t():de(t)}})}var So=g(`ZodNonOptional`,(e,t)=>{$n.init(e,t),M.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Hi(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function Co(e,t){return new So({type:`nonoptional`,innerType:e,...E(t)})}var wo=g(`ZodCatch`,(e,t)=>{tr.init(e,t),M.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Gi(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function To(e,t){return new wo({type:`catch`,innerType:e,catchValue:typeof t==`function`?t:()=>t})}var Eo=g(`ZodPipe`,(e,t)=>{nr.init(e,t),M.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Ki(e,t,n,r),e.in=t.in,e.out=t.out});function Do(e,t){return new Eo({type:`pipe`,in:e,out:t})}var Oo=g(`ZodPreprocess`,(e,t)=>{Eo.init(e,t),ir.init(e,t)}),ko=g(`ZodReadonly`,(e,t)=>{ar.init(e,t),M.init(e,t),e._zod.processJSONSchema=(t,n,r)=>qi(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function Ao(e){return new ko({type:`readonly`,innerType:e})}var jo=g(`ZodCustom`,(e,t)=>{sr.init(e,t),M.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Pi(e,t,n,r)});function Mo(e,t){return gi(jo,e??(()=>!0),t)}function No(e,t={}){return _i(jo,e,t)}function Po(e,t){return vi(e,t)}function Fo(e,t){return new Oo({type:`pipe`,in:fo(e),out:t})}var Io={invalid_type:`invalid_type`,too_big:`too_big`,too_small:`too_small`,invalid_format:`invalid_format`,not_multiple_of:`not_multiple_of`,unrecognized_keys:`unrecognized_keys`,invalid_union:`invalid_union`,invalid_key:`invalid_key`,invalid_element:`invalid_element`,invalid_value:`invalid_value`,custom:`custom`},Lo;Lo||={};function Ro(e){return Vr(Ba,e)}var zo=`2025-11-25`,Bo=[zo,`2025-06-18`,`2025-03-26`,`2024-11-05`,`2024-10-07`],Vo=`io.modelcontextprotocol/related-task`,G=Mo(e=>e!==null&&(typeof e==`object`||typeof e==`function`)),Ho=V([N(),F().int()]),Uo=N();B({ttl:F().optional(),pollInterval:F().optional()});var Wo=z({ttl:F().optional()}),Go=z({taskId:N()}),Ko=B({progressToken:Ho.optional(),[Vo]:Go.optional()}),qo=z({_meta:Ko.optional()}),Jo=qo.extend({task:Wo.optional()}),Yo=e=>Jo.safeParse(e).success,K=z({method:N(),params:qo.loose().optional()}),Xo=z({_meta:Ko.optional()}),Zo=z({method:N(),params:Xo.loose().optional()}),q=B({_meta:Ko.optional()}),Qo=V([N(),F().int()]),$o=z({jsonrpc:U(`2.0`),id:Qo,...K.shape}).strict(),es=e=>$o.safeParse(e).success,ts=z({jsonrpc:U(`2.0`),...Zo.shape}).strict(),ns=e=>ts.safeParse(e).success,rs=z({jsonrpc:U(`2.0`),id:Qo,result:q}).strict(),is=e=>rs.safeParse(e).success,J;(function(e){e[e.ConnectionClosed=-32e3]=`ConnectionClosed`,e[e.RequestTimeout=-32001]=`RequestTimeout`,e[e.ParseError=-32700]=`ParseError`,e[e.InvalidRequest=-32600]=`InvalidRequest`,e[e.MethodNotFound=-32601]=`MethodNotFound`,e[e.InvalidParams=-32602]=`InvalidParams`,e[e.InternalError=-32603]=`InternalError`,e[e.UrlElicitationRequired=-32042]=`UrlElicitationRequired`})(J||={});var as=z({jsonrpc:U(`2.0`),id:Qo.optional(),error:z({code:F().int(),message:N(),data:L().optional()})}).strict(),os=e=>as.safeParse(e).success,ss=V([$o,ts,rs,as]);V([rs,as]);var cs=q.strict(),ls=Xo.extend({requestId:Qo.optional(),reason:N().optional()}),us=Zo.extend({method:U(`notifications/cancelled`),params:ls}),ds=z({icons:R(z({src:N(),mimeType:N().optional(),sizes:R(N()).optional(),theme:co([`light`,`dark`]).optional()})).optional()}),fs=z({name:N(),title:N().optional()}),ps=fs.extend({...fs.shape,...ds.shape,version:N(),websiteUrl:N().optional(),description:N().optional()}),ms=Fo(e=>e&&typeof e==`object`&&!Array.isArray(e)&&Object.keys(e).length===0?{form:{}}:e,ao(z({form:ao(z({applyDefaults:I().optional()}),H(N(),L())).optional(),url:G.optional()}),H(N(),L()).optional())),hs=B({list:G.optional(),cancel:G.optional(),requests:B({sampling:B({createMessage:G.optional()}).optional(),elicitation:B({create:G.optional()}).optional()}).optional()}),gs=B({list:G.optional(),cancel:G.optional(),requests:B({tools:B({call:G.optional()}).optional()}).optional()}),_s=z({experimental:H(N(),G).optional(),sampling:z({context:G.optional(),tools:G.optional()}).optional(),elicitation:ms.optional(),roots:z({listChanged:I().optional()}).optional(),tasks:hs.optional(),extensions:H(N(),G).optional()}),vs=qo.extend({protocolVersion:N(),capabilities:_s,clientInfo:ps}),ys=K.extend({method:U(`initialize`),params:vs}),bs=z({experimental:H(N(),G).optional(),logging:G.optional(),completions:G.optional(),prompts:z({listChanged:I().optional()}).optional(),resources:z({subscribe:I().optional(),listChanged:I().optional()}).optional(),tools:z({listChanged:I().optional()}).optional(),tasks:gs.optional(),extensions:H(N(),G).optional()}),xs=q.extend({protocolVersion:N(),capabilities:bs,serverInfo:ps,instructions:N().optional()}),Ss=Zo.extend({method:U(`notifications/initialized`),params:Xo.optional()}),Cs=e=>Ss.safeParse(e).success,ws=K.extend({method:U(`ping`),params:qo.optional()}),Ts=z({progress:F(),total:W(F()),message:W(N())}),Es=z({...Xo.shape,...Ts.shape,progressToken:Ho}),Ds=Zo.extend({method:U(`notifications/progress`),params:Es}),Os=qo.extend({cursor:Uo.optional()}),ks=K.extend({params:Os.optional()}),As=q.extend({nextCursor:Uo.optional()}),js=co([`working`,`input_required`,`completed`,`failed`,`cancelled`]),Ms=z({taskId:N(),status:js,ttl:V([F(),qa()]),createdAt:N(),lastUpdatedAt:N(),pollInterval:W(F()),statusMessage:W(N())}),Ns=q.extend({task:Ms}),Ps=Xo.merge(Ms),Fs=Zo.extend({method:U(`notifications/tasks/status`),params:Ps}),Is=K.extend({method:U(`tasks/get`),params:qo.extend({taskId:N()})}),Ls=q.merge(Ms),Rs=K.extend({method:U(`tasks/result`),params:qo.extend({taskId:N()})});q.loose();var zs=ks.extend({method:U(`tasks/list`)}),Bs=As.extend({tasks:R(Ms)}),Vs=K.extend({method:U(`tasks/cancel`),params:qo.extend({taskId:N()})}),Hs=q.merge(Ms),Us=z({uri:N(),mimeType:W(N()),_meta:H(N(),L()).optional()}),Ws=Us.extend({text:N()}),Gs=N().refine(e=>{try{return atob(e),!0}catch{return!1}},{message:`Invalid Base64 string`}),Ks=Us.extend({blob:Gs}),qs=co([`user`,`assistant`]),Js=z({audience:R(qs).optional(),priority:F().min(0).max(1).optional(),lastModified:Xi({offset:!0}).optional()}),Ys=z({...fs.shape,...ds.shape,uri:N(),description:W(N()),mimeType:W(N()),size:W(F()),annotations:Js.optional(),_meta:W(B({}))}),Xs=z({...fs.shape,...ds.shape,uriTemplate:N(),description:W(N()),mimeType:W(N()),annotations:Js.optional(),_meta:W(B({}))}),Zs=ks.extend({method:U(`resources/list`)}),Qs=As.extend({resources:R(Ys)}),$s=ks.extend({method:U(`resources/templates/list`)}),ec=As.extend({resourceTemplates:R(Xs)}),tc=qo.extend({uri:N()}),nc=tc,rc=K.extend({method:U(`resources/read`),params:nc}),ic=q.extend({contents:R(V([Ws,Ks]))}),ac=Zo.extend({method:U(`notifications/resources/list_changed`),params:Xo.optional()}),oc=tc,sc=K.extend({method:U(`resources/subscribe`),params:oc}),cc=tc,lc=K.extend({method:U(`resources/unsubscribe`),params:cc}),uc=Xo.extend({uri:N()}),dc=Zo.extend({method:U(`notifications/resources/updated`),params:uc}),fc=z({name:N(),description:W(N()),required:W(I())}),pc=z({...fs.shape,...ds.shape,description:W(N()),arguments:W(R(fc)),_meta:W(B({}))}),mc=ks.extend({method:U(`prompts/list`)}),hc=As.extend({prompts:R(pc)}),gc=qo.extend({name:N(),arguments:H(N(),N()).optional()}),_c=K.extend({method:U(`prompts/get`),params:gc}),vc=z({type:U(`text`),text:N(),annotations:Js.optional(),_meta:H(N(),L()).optional()}),yc=z({type:U(`image`),data:Gs,mimeType:N(),annotations:Js.optional(),_meta:H(N(),L()).optional()}),bc=z({type:U(`audio`),data:Gs,mimeType:N(),annotations:Js.optional(),_meta:H(N(),L()).optional()}),xc=z({type:U(`tool_use`),name:N(),id:N(),input:H(N(),L()),_meta:H(N(),L()).optional()}),Sc=z({type:U(`resource`),resource:V([Ws,Ks]),annotations:Js.optional(),_meta:H(N(),L()).optional()}),Cc=Ys.extend({type:U(`resource_link`)}),wc=V([vc,yc,bc,Cc,Sc]),Tc=z({role:qs,content:wc}),Ec=q.extend({description:N().optional(),messages:R(Tc)}),Dc=Zo.extend({method:U(`notifications/prompts/list_changed`),params:Xo.optional()}),Oc=z({title:N().optional(),readOnlyHint:I().optional(),destructiveHint:I().optional(),idempotentHint:I().optional(),openWorldHint:I().optional()}),kc=z({taskSupport:co([`required`,`optional`,`forbidden`]).optional()}),Ac=z({...fs.shape,...ds.shape,description:N().optional(),inputSchema:z({type:U(`object`),properties:H(N(),G).optional(),required:R(N()).optional()}).catchall(L()),outputSchema:z({type:U(`object`),properties:H(N(),G).optional(),required:R(N()).optional()}).catchall(L()).optional(),annotations:Oc.optional(),execution:kc.optional(),_meta:H(N(),L()).optional()}),jc=ks.extend({method:U(`tools/list`)}),Mc=As.extend({tools:R(Ac)}),Nc=q.extend({content:R(wc).default([]),structuredContent:H(N(),L()).optional(),isError:I().optional()});Nc.or(q.extend({toolResult:L()}));var Pc=Jo.extend({name:N(),arguments:H(N(),L()).optional()}),Fc=K.extend({method:U(`tools/call`),params:Pc}),Ic=Zo.extend({method:U(`notifications/tools/list_changed`),params:Xo.optional()}),Lc=z({autoRefresh:I().default(!0),debounceMs:F().int().nonnegative().default(300)}),Rc=co([`debug`,`info`,`notice`,`warning`,`error`,`critical`,`alert`,`emergency`]),zc=qo.extend({level:Rc}),Bc=K.extend({method:U(`logging/setLevel`),params:zc}),Vc=Xo.extend({level:Rc,logger:N().optional(),data:L()}),Hc=Zo.extend({method:U(`notifications/message`),params:Vc}),Uc=z({hints:R(z({name:N().optional()})).optional(),costPriority:F().min(0).max(1).optional(),speedPriority:F().min(0).max(1).optional(),intelligencePriority:F().min(0).max(1).optional()}),Wc=z({mode:co([`auto`,`required`,`none`]).optional()}),Gc=z({type:U(`tool_result`),toolUseId:N().describe(`The unique identifier for the corresponding tool call.`),content:R(wc).default([]),structuredContent:z({}).loose().optional(),isError:I().optional(),_meta:H(N(),L()).optional()}),Kc=ro(`type`,[vc,yc,bc]),qc=ro(`type`,[vc,yc,bc,xc,Gc]),Jc=z({role:qs,content:V([qc,R(qc)]),_meta:H(N(),L()).optional()}),Yc=Jo.extend({messages:R(Jc),modelPreferences:Uc.optional(),systemPrompt:N().optional(),includeContext:co([`none`,`thisServer`,`allServers`]).optional(),temperature:F().optional(),maxTokens:F().int(),stopSequences:R(N()).optional(),metadata:G.optional(),tools:R(Ac).optional(),toolChoice:Wc.optional()}),Xc=K.extend({method:U(`sampling/createMessage`),params:Yc}),Zc=q.extend({model:N(),stopReason:W(co([`endTurn`,`stopSequence`,`maxTokens`]).or(N())),role:qs,content:Kc}),Qc=q.extend({model:N(),stopReason:W(co([`endTurn`,`stopSequence`,`maxTokens`,`toolUse`]).or(N())),role:qs,content:V([qc,R(qc)])}),$c=z({type:U(`boolean`),title:N().optional(),description:N().optional(),default:I().optional()}),el=z({type:U(`string`),title:N().optional(),description:N().optional(),minLength:F().optional(),maxLength:F().optional(),format:co([`email`,`uri`,`date`,`date-time`]).optional(),default:N().optional()}),tl=z({type:co([`number`,`integer`]),title:N().optional(),description:N().optional(),minimum:F().optional(),maximum:F().optional(),default:F().optional()}),nl=z({type:U(`string`),title:N().optional(),description:N().optional(),enum:R(N()),default:N().optional()}),rl=z({type:U(`string`),title:N().optional(),description:N().optional(),oneOf:R(z({const:N(),title:N()})),default:N().optional()}),il=V([V([z({type:U(`string`),title:N().optional(),description:N().optional(),enum:R(N()),enumNames:R(N()).optional(),default:N().optional()}),V([nl,rl]),V([z({type:U(`array`),title:N().optional(),description:N().optional(),minItems:F().optional(),maxItems:F().optional(),items:z({type:U(`string`),enum:R(N())}),default:R(N()).optional()}),z({type:U(`array`),title:N().optional(),description:N().optional(),minItems:F().optional(),maxItems:F().optional(),items:z({anyOf:R(z({const:N(),title:N()}))}),default:R(N()).optional()})])]),$c,el,tl]),al=V([Jo.extend({mode:U(`form`).optional(),message:N(),requestedSchema:z({type:U(`object`),properties:H(N(),il),required:R(N()).optional()})}),Jo.extend({mode:U(`url`),message:N(),elicitationId:N(),url:N().url()})]),ol=K.extend({method:U(`elicitation/create`),params:al}),sl=Xo.extend({elicitationId:N()}),cl=Zo.extend({method:U(`notifications/elicitation/complete`),params:sl}),ll=q.extend({action:co([`accept`,`decline`,`cancel`]),content:Fo(e=>e===null?void 0:e,H(N(),V([N(),F(),I(),R(N())])).optional())}),ul=z({type:U(`ref/resource`),uri:N()}),dl=z({type:U(`ref/prompt`),name:N()}),fl=qo.extend({ref:V([dl,ul]),argument:z({name:N(),value:N()}),context:z({arguments:H(N(),N()).optional()}).optional()}),pl=K.extend({method:U(`completion/complete`),params:fl}),ml=q.extend({completion:B({values:R(N()).max(100),total:W(F().int()),hasMore:W(I())})}),hl=z({uri:N().startsWith(`file://`),name:N().optional(),_meta:H(N(),L()).optional()}),gl=K.extend({method:U(`roots/list`),params:qo.optional()}),_l=q.extend({roots:R(hl)}),vl=Zo.extend({method:U(`notifications/roots/list_changed`),params:Xo.optional()});V([ws,ys,pl,Bc,_c,mc,Zs,$s,rc,sc,lc,Fc,jc,Is,Rs,zs,Vs]),V([us,Ds,Ss,vl,Fs]),V([cs,Zc,Qc,ll,_l,Ls,Bs,Ns]),V([ws,Xc,ol,gl,Is,Rs,zs,Vs]),V([us,Ds,Hc,dc,ac,Ic,Dc,Fs,cl]),V([cs,xs,ml,Ec,hc,Qs,ec,ic,Nc,Mc,Ls,Bs,Ns]);var Y=class e extends Error{constructor(e,t,n){super(`MCP error ${e}: ${t}`),this.code=e,this.data=n,this.name=`McpError`}static fromError(t,n,r){if(t===J.UrlElicitationRequired&&r){let e=r;if(e.elicitations)return new yl(e.elicitations,n)}return new e(t,n,r)}},yl=class extends Y{constructor(e,t=`URL elicitation${e.length>1?`s`:``} required`){super(J.UrlElicitationRequired,t,{elicitations:e})}get elicitations(){return this.data?.elicitations??[]}};function bl(e){return!!e._zod}function xl(e,t){return bl(e)?ze(e,t):e.safeParse(t)}function Sl(e){if(!e)return;let t;if(t=bl(e)?e._zod?.def?.shape:e.shape,t){if(typeof t==`function`)try{return t()}catch{return}return t}}function Cl(e){if(bl(e)){let t=e._zod?.def;if(t){if(t.value!==void 0)return t.value;if(Array.isArray(t.values)&&t.values.length>0)return t.values[0]}}let t=e._def;if(t){if(t.value!==void 0)return t.value;if(Array.isArray(t.values)&&t.values.length>0)return t.values[0]}let n=e.value;if(n!==void 0)return n}function wl(e){return e===`completed`||e===`failed`||e===`cancelled`}function Tl(e){let t=Sl(e)?.method;if(!t)throw Error(`Schema is missing a method literal`);let n=Cl(t);if(typeof n!=`string`)throw Error(`Schema method literal must be a string`);return n}function El(e,t){let n=xl(e,t);if(!n.success)throw n.error;return n.data}var Dl=class{constructor(e){this._options=e,this._requestMessageId=0,this._requestHandlers=new Map,this._requestHandlerAbortControllers=new Map,this._notificationHandlers=new Map,this._responseHandlers=new Map,this._progressHandlers=new Map,this._timeoutInfo=new Map,this._pendingDebouncedNotifications=new Set,this._taskProgressTokens=new Map,this._requestResolvers=new Map,this.setNotificationHandler(us,e=>{this._oncancel(e)}),this.setNotificationHandler(Ds,e=>{this._onprogress(e)}),this.setRequestHandler(ws,e=>({})),this._taskStore=e?.taskStore,this._taskMessageQueue=e?.taskMessageQueue,this._taskStore&&(this.setRequestHandler(Is,async(e,t)=>{let n=await this._taskStore.getTask(e.params.taskId,t.sessionId);if(!n)throw new Y(J.InvalidParams,`Failed to retrieve task: Task not found`);return{...n}}),this.setRequestHandler(Rs,async(e,t)=>{let n=async()=>{let r=e.params.taskId;if(this._taskMessageQueue){let e;for(;e=await this._taskMessageQueue.dequeue(r,t.sessionId);){if(e.type===`response`||e.type===`error`){let t=e.message,n=t.id,r=this._requestResolvers.get(n);if(r)if(this._requestResolvers.delete(n),e.type===`response`)r(t);else{let e=t;r(new Y(e.error.code,e.error.message,e.error.data))}else{let t=e.type===`response`?`Response`:`Error`;this._onerror(Error(`${t} handler missing for request ${n}`))}continue}await this._transport?.send(e.message,{relatedRequestId:t.requestId})}}let i=await this._taskStore.getTask(r,t.sessionId);if(!i)throw new Y(J.InvalidParams,`Task not found: ${r}`);if(!wl(i.status))return await this._waitForTaskUpdate(r,t.signal),await n();if(wl(i.status)){let e=await this._taskStore.getTaskResult(r,t.sessionId);return this._clearTaskQueue(r),{...e,_meta:{...e._meta,[Vo]:{taskId:r}}}}return await n()};return await n()}),this.setRequestHandler(zs,async(e,t)=>{try{let{tasks:n,nextCursor:r}=await this._taskStore.listTasks(e.params?.cursor,t.sessionId);return{tasks:n,nextCursor:r,_meta:{}}}catch(e){throw new Y(J.InvalidParams,`Failed to list tasks: ${e instanceof Error?e.message:String(e)}`)}}),this.setRequestHandler(Vs,async(e,t)=>{try{let n=await this._taskStore.getTask(e.params.taskId,t.sessionId);if(!n)throw new Y(J.InvalidParams,`Task not found: ${e.params.taskId}`);if(wl(n.status))throw new Y(J.InvalidParams,`Cannot cancel task in terminal status: ${n.status}`);await this._taskStore.updateTaskStatus(e.params.taskId,`cancelled`,`Client cancelled task execution.`,t.sessionId),this._clearTaskQueue(e.params.taskId);let r=await this._taskStore.getTask(e.params.taskId,t.sessionId);if(!r)throw new Y(J.InvalidParams,`Task not found after cancellation: ${e.params.taskId}`);return{_meta:{},...r}}catch(e){throw e instanceof Y?e:new Y(J.InvalidRequest,`Failed to cancel task: ${e instanceof Error?e.message:String(e)}`)}}))}async _oncancel(e){e.params.requestId&&this._requestHandlerAbortControllers.get(e.params.requestId)?.abort(e.params.reason)}_setupTimeout(e,t,n,r,i=!1){this._timeoutInfo.set(e,{timeoutId:setTimeout(r,t),startTime:Date.now(),timeout:t,maxTotalTimeout:n,resetTimeoutOnProgress:i,onTimeout:r})}_resetTimeout(e){let t=this._timeoutInfo.get(e);if(!t)return!1;let n=Date.now()-t.startTime;if(t.maxTotalTimeout&&n>=t.maxTotalTimeout)throw this._timeoutInfo.delete(e),Y.fromError(J.RequestTimeout,`Maximum total timeout exceeded`,{maxTotalTimeout:t.maxTotalTimeout,totalElapsed:n});return clearTimeout(t.timeoutId),t.timeoutId=setTimeout(t.onTimeout,t.timeout),!0}_cleanupTimeout(e){let t=this._timeoutInfo.get(e);t&&(clearTimeout(t.timeoutId),this._timeoutInfo.delete(e))}async connect(e){if(this._transport)throw Error(`Already connected to a transport. Call close() before connecting to a new transport, or use a separate Protocol instance per connection.`);this._transport=e;let t=this.transport?.onclose;this._transport.onclose=()=>{t?.(),this._onclose()};let n=this.transport?.onerror;this._transport.onerror=e=>{n?.(e),this._onerror(e)};let r=this._transport?.onmessage;this._transport.onmessage=(e,t)=>{r?.(e,t),is(e)||os(e)?this._onresponse(e):es(e)?this._onrequest(e,t):ns(e)?this._onnotification(e):this._onerror(Error(`Unknown message type: ${JSON.stringify(e)}`))},await this._transport.start()}_onclose(){let e=this._responseHandlers;this._responseHandlers=new Map,this._progressHandlers.clear(),this._taskProgressTokens.clear(),this._pendingDebouncedNotifications.clear();for(let e of this._timeoutInfo.values())clearTimeout(e.timeoutId);this._timeoutInfo.clear();for(let e of this._requestHandlerAbortControllers.values())e.abort();this._requestHandlerAbortControllers.clear();let t=Y.fromError(J.ConnectionClosed,`Connection closed`);this._transport=void 0,this.onclose?.();for(let n of e.values())n(t)}_onerror(e){this.onerror?.(e)}_onnotification(e){let t=this._notificationHandlers.get(e.method)??this.fallbackNotificationHandler;t!==void 0&&Promise.resolve().then(()=>t(e)).catch(e=>this._onerror(Error(`Uncaught error in notification handler: ${e}`)))}_onrequest(e,t){let n=this._requestHandlers.get(e.method)??this.fallbackRequestHandler,r=this._transport,i=e.params?._meta?.[Vo]?.taskId;if(n===void 0){let t={jsonrpc:`2.0`,id:e.id,error:{code:J.MethodNotFound,message:`Method not found`}};i&&this._taskMessageQueue?this._enqueueTaskMessage(i,{type:`error`,message:t,timestamp:Date.now()},r?.sessionId).catch(e=>this._onerror(Error(`Failed to enqueue error response: ${e}`))):r?.send(t).catch(e=>this._onerror(Error(`Failed to send an error response: ${e}`)));return}let a=new AbortController;this._requestHandlerAbortControllers.set(e.id,a);let o=Yo(e.params)?e.params.task:void 0,s=this._taskStore?this.requestTaskStore(e,r?.sessionId):void 0,c={signal:a.signal,sessionId:r?.sessionId,_meta:e.params?._meta,sendNotification:async t=>{if(a.signal.aborted)return;let n={relatedRequestId:e.id};i&&(n.relatedTask={taskId:i}),await this.notification(t,n)},sendRequest:async(t,n,r)=>{if(a.signal.aborted)throw new Y(J.ConnectionClosed,`Request was cancelled`);let o={...r,relatedRequestId:e.id};i&&!o.relatedTask&&(o.relatedTask={taskId:i});let c=o.relatedTask?.taskId??i;return c&&s&&await s.updateTaskStatus(c,`input_required`),await this.request(t,n,o)},authInfo:t?.authInfo,requestId:e.id,requestInfo:t?.requestInfo,taskId:i,taskStore:s,taskRequestedTtl:o?.ttl,closeSSEStream:t?.closeSSEStream,closeStandaloneSSEStream:t?.closeStandaloneSSEStream};Promise.resolve().then(()=>{o&&this.assertTaskHandlerCapability(e.method)}).then(()=>n(e,c)).then(async t=>{if(a.signal.aborted)return;let n={result:t,jsonrpc:`2.0`,id:e.id};i&&this._taskMessageQueue?await this._enqueueTaskMessage(i,{type:`response`,message:n,timestamp:Date.now()},r?.sessionId):await r?.send(n)},async t=>{if(a.signal.aborted)return;let n={jsonrpc:`2.0`,id:e.id,error:{code:Number.isSafeInteger(t.code)?t.code:J.InternalError,message:t.message??`Internal error`,...t.data!==void 0&&{data:t.data}}};i&&this._taskMessageQueue?await this._enqueueTaskMessage(i,{type:`error`,message:n,timestamp:Date.now()},r?.sessionId):await r?.send(n)}).catch(e=>this._onerror(Error(`Failed to send response: ${e}`))).finally(()=>{this._requestHandlerAbortControllers.get(e.id)===a&&this._requestHandlerAbortControllers.delete(e.id)})}_onprogress(e){let{progressToken:t,...n}=e.params,r=Number(t),i=this._progressHandlers.get(r);if(!i){this._onerror(Error(`Received a progress notification for an unknown token: ${JSON.stringify(e)}`));return}let a=this._responseHandlers.get(r),o=this._timeoutInfo.get(r);if(o&&a&&o.resetTimeoutOnProgress)try{this._resetTimeout(r)}catch(e){this._responseHandlers.delete(r),this._progressHandlers.delete(r),this._cleanupTimeout(r),a(e);return}i(n)}_onresponse(e){let t=Number(e.id),n=this._requestResolvers.get(t);if(n){this._requestResolvers.delete(t),is(e)?n(e):n(new Y(e.error.code,e.error.message,e.error.data));return}let r=this._responseHandlers.get(t);if(r===void 0){this._onerror(Error(`Received a response for an unknown message ID: ${JSON.stringify(e)}`));return}this._responseHandlers.delete(t),this._cleanupTimeout(t);let i=!1;if(is(e)&&e.result&&typeof e.result==`object`){let n=e.result;if(n.task&&typeof n.task==`object`){let e=n.task;typeof e.taskId==`string`&&(i=!0,this._taskProgressTokens.set(e.taskId,t))}}i||this._progressHandlers.delete(t),is(e)?r(e):r(Y.fromError(e.error.code,e.error.message,e.error.data))}get transport(){return this._transport}async close(){await this._transport?.close()}async*requestStream(e,t,n){let{task:r}=n??{};if(!r){try{yield{type:`result`,result:await this.request(e,t,n)}}catch(e){yield{type:`error`,error:e instanceof Y?e:new Y(J.InternalError,String(e))}}return}let i;try{let r=await this.request(e,Ns,n);if(r.task)i=r.task.taskId,yield{type:`taskCreated`,task:r.task};else throw new Y(J.InternalError,`Task creation did not return a task`);for(;;){let e=await this.getTask({taskId:i},n);if(yield{type:`taskStatus`,task:e},wl(e.status)){e.status===`completed`?yield{type:`result`,result:await this.getTaskResult({taskId:i},t,n)}:e.status===`failed`?yield{type:`error`,error:new Y(J.InternalError,`Task ${i} failed`)}:e.status===`cancelled`&&(yield{type:`error`,error:new Y(J.InternalError,`Task ${i} was cancelled`)});return}if(e.status===`input_required`){yield{type:`result`,result:await this.getTaskResult({taskId:i},t,n)};return}let r=e.pollInterval??this._options?.defaultTaskPollInterval??1e3;await new Promise(e=>setTimeout(e,r)),n?.signal?.throwIfAborted()}}catch(e){yield{type:`error`,error:e instanceof Y?e:new Y(J.InternalError,String(e))}}}request(e,t,n){let{relatedRequestId:r,resumptionToken:i,onresumptiontoken:a,task:o,relatedTask:s}=n??{};return new Promise((c,l)=>{let u=e=>{l(e)};if(!this._transport){u(Error(`Not connected`));return}if(this._options?.enforceStrictCapabilities===!0)try{this.assertCapabilityForMethod(e.method),o&&this.assertTaskCapability(e.method)}catch(e){u(e);return}n?.signal?.throwIfAborted();let d=this._requestMessageId++,f={...e,jsonrpc:`2.0`,id:d};n?.onprogress&&(this._progressHandlers.set(d,n.onprogress),f.params={...e.params,_meta:{...e.params?._meta||{},progressToken:d}}),o&&(f.params={...f.params,task:o}),s&&(f.params={...f.params,_meta:{...f.params?._meta||{},[Vo]:s}});let p=e=>{this._responseHandlers.delete(d),this._progressHandlers.delete(d),this._cleanupTimeout(d),this._transport?.send({jsonrpc:`2.0`,method:`notifications/cancelled`,params:{requestId:d,reason:String(e)}},{relatedRequestId:r,resumptionToken:i,onresumptiontoken:a}).catch(e=>this._onerror(Error(`Failed to send cancellation: ${e}`))),l(e instanceof Y?e:new Y(J.RequestTimeout,String(e)))};this._responseHandlers.set(d,e=>{if(!n?.signal?.aborted){if(e instanceof Error)return l(e);try{let n=xl(t,e.result);n.success?c(n.data):l(n.error)}catch(e){l(e)}}}),n?.signal?.addEventListener(`abort`,()=>{p(n?.signal?.reason)});let m=n?.timeout??6e4;this._setupTimeout(d,m,n?.maxTotalTimeout,()=>p(Y.fromError(J.RequestTimeout,`Request timed out`,{timeout:m})),n?.resetTimeoutOnProgress??!1);let h=s?.taskId;h?(this._requestResolvers.set(d,e=>{let t=this._responseHandlers.get(d);t?t(e):this._onerror(Error(`Response handler missing for side-channeled request ${d}`))}),this._enqueueTaskMessage(h,{type:`request`,message:f,timestamp:Date.now()}).catch(e=>{this._cleanupTimeout(d),l(e)})):this._transport.send(f,{relatedRequestId:r,resumptionToken:i,onresumptiontoken:a}).catch(e=>{this._cleanupTimeout(d),l(e)})})}async getTask(e,t){return this.request({method:`tasks/get`,params:e},Ls,t)}async getTaskResult(e,t,n){return this.request({method:`tasks/result`,params:e},t,n)}async listTasks(e,t){return this.request({method:`tasks/list`,params:e},Bs,t)}async cancelTask(e,t){return this.request({method:`tasks/cancel`,params:e},Hs,t)}async notification(e,t){if(!this._transport)throw Error(`Not connected`);this.assertNotificationCapability(e.method);let n=t?.relatedTask?.taskId;if(n){let r={...e,jsonrpc:`2.0`,params:{...e.params,_meta:{...e.params?._meta||{},[Vo]:t.relatedTask}}};await this._enqueueTaskMessage(n,{type:`notification`,message:r,timestamp:Date.now()});return}if((this._options?.debouncedNotificationMethods??[]).includes(e.method)&&!e.params&&!t?.relatedRequestId&&!t?.relatedTask){if(this._pendingDebouncedNotifications.has(e.method))return;this._pendingDebouncedNotifications.add(e.method),Promise.resolve().then(()=>{if(this._pendingDebouncedNotifications.delete(e.method),!this._transport)return;let n={...e,jsonrpc:`2.0`};t?.relatedTask&&(n={...n,params:{...n.params,_meta:{...n.params?._meta||{},[Vo]:t.relatedTask}}}),this._transport?.send(n,t).catch(e=>this._onerror(e))});return}let r={...e,jsonrpc:`2.0`};t?.relatedTask&&(r={...r,params:{...r.params,_meta:{...r.params?._meta||{},[Vo]:t.relatedTask}}}),await this._transport.send(r,t)}setRequestHandler(e,t){let n=Tl(e);this.assertRequestHandlerCapability(n),this._requestHandlers.set(n,(n,r)=>{let i=El(e,n);return Promise.resolve(t(i,r))})}removeRequestHandler(e){this._requestHandlers.delete(e)}assertCanSetRequestHandler(e){if(this._requestHandlers.has(e))throw Error(`A request handler for ${e} already exists, which would be overridden`)}setNotificationHandler(e,t){let n=Tl(e);this._notificationHandlers.set(n,n=>{let r=El(e,n);return Promise.resolve(t(r))})}removeNotificationHandler(e){this._notificationHandlers.delete(e)}_cleanupTaskProgressHandler(e){let t=this._taskProgressTokens.get(e);t!==void 0&&(this._progressHandlers.delete(t),this._taskProgressTokens.delete(e))}async _enqueueTaskMessage(e,t,n){if(!this._taskStore||!this._taskMessageQueue)throw Error(`Cannot enqueue task message: taskStore and taskMessageQueue are not configured`);let r=this._options?.maxTaskQueueSize;await this._taskMessageQueue.enqueue(e,t,n,r)}async _clearTaskQueue(e,t){if(this._taskMessageQueue){let n=await this._taskMessageQueue.dequeueAll(e,t);for(let t of n)if(t.type===`request`&&es(t.message)){let n=t.message.id,r=this._requestResolvers.get(n);r?(r(new Y(J.InternalError,`Task cancelled or completed`)),this._requestResolvers.delete(n)):this._onerror(Error(`Resolver missing for request ${n} during task ${e} cleanup`))}}}async _waitForTaskUpdate(e,t){let n=this._options?.defaultTaskPollInterval??1e3;try{let t=await this._taskStore?.getTask(e);t?.pollInterval&&(n=t.pollInterval)}catch{}return new Promise((e,r)=>{if(t.aborted){r(new Y(J.InvalidRequest,`Request cancelled`));return}let i=setTimeout(e,n);t.addEventListener(`abort`,()=>{clearTimeout(i),r(new Y(J.InvalidRequest,`Request cancelled`))},{once:!0})})}requestTaskStore(e,t){let n=this._taskStore;if(!n)throw Error(`No task store configured`);return{createTask:async r=>{if(!e)throw Error(`No request provided`);return await n.createTask(r,e.id,{method:e.method,params:e.params},t)},getTask:async e=>{let r=await n.getTask(e,t);if(!r)throw new Y(J.InvalidParams,`Failed to retrieve task: Task not found`);return r},storeTaskResult:async(e,r,i)=>{await n.storeTaskResult(e,r,i,t);let a=await n.getTask(e,t);if(a){let t=Fs.parse({method:`notifications/tasks/status`,params:a});await this.notification(t),wl(a.status)&&this._cleanupTaskProgressHandler(e)}},getTaskResult:e=>n.getTaskResult(e,t),updateTaskStatus:async(e,r,i)=>{let a=await n.getTask(e,t);if(!a)throw new Y(J.InvalidParams,`Task "${e}" not found - it may have been cleaned up`);if(wl(a.status))throw new Y(J.InvalidParams,`Cannot update task "${e}" from terminal status "${a.status}" to "${r}". Terminal states (completed, failed, cancelled) cannot transition to other states.`);await n.updateTaskStatus(e,r,i,t);let o=await n.getTask(e,t);if(o){let t=Fs.parse({method:`notifications/tasks/status`,params:o});await this.notification(t),wl(o.status)&&this._cleanupTaskProgressHandler(e)}},listTasks:e=>n.listTasks(e,t)}}};function Ol(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function kl(e,t){let n={...e};for(let e in t){let r=e,i=t[r];if(i===void 0)continue;let a=n[r];n[r]=Ol(a)&&Ol(i)?{...a,...i}:i}return n}(e=>typeof a<`u`?a:typeof Proxy<`u`?new Proxy(e,{get:(e,t)=>(typeof a<`u`?a:e)[t]}):e)(function(e){if(typeof a<`u`)return a.apply(this,arguments);throw Error(`Dynamic require of "`+e+`" is not supported`)});var Al=class extends Dl{_registeredMethods=new Set;_eventSlots=new Map;onEventDispatch(e,t){}_ensureEventSlot(e){let t=this._eventSlots.get(e);if(!t){let n=this.eventSchemas[e];if(!n)throw Error(`Unknown event: ${String(e)}`);t={listeners:[]},this._eventSlots.set(e,t);let r=n.shape.method.value;this._registeredMethods.add(r);let i=t;super.setNotificationHandler(n,t=>{let n=t.params;this.onEventDispatch(e,n),i.onHandler?.(n);for(let e of[...i.listeners])e(n)})}return t}setEventHandler(e,t){let n=this._ensureEventSlot(e);n.onHandler&&t&&console.warn(`[MCP Apps] on${String(e)} handler replaced. Use addEventListener("${String(e)}", …) to add multiple listeners without replacing.`),n.onHandler=t}getEventHandler(e){return this._eventSlots.get(e)?.onHandler}addEventListener(e,t){this._ensureEventSlot(e).listeners.push(t)}removeEventListener(e,t){let n=this._eventSlots.get(e);if(!n)return;let r=n.listeners.indexOf(t);r!==-1&&n.listeners.splice(r,1)}setRequestHandler=(e,t)=>{this._assertMethodNotRegistered(e,`setRequestHandler`),super.setRequestHandler(e,t)};setNotificationHandler=(e,t)=>{this._assertMethodNotRegistered(e,`setNotificationHandler`),super.setNotificationHandler(e,t)};warnIfRequestHandlerReplaced(e,t,n){t&&n&&console.warn(`[MCP Apps] ${e} handler replaced. Previous handler will no longer be called.`)}replaceRequestHandler=(e,t)=>{let n=e.shape.method.value;this._registeredMethods.add(n),super.setRequestHandler(e,t)};_assertMethodNotRegistered(e,t){let n=e.shape.method.value;if(this._registeredMethods.has(n))throw Error(`Handler for "${n}" already registered (via ${t}). Use addEventListener() to attach multiple listeners, or the on* setter for replace semantics.`);this._registeredMethods.add(n)}},jl=`2026-01-26`,Ml=V([U(`light`),U(`dark`)]).describe(`Color theme preference for the host environment.`),Nl=V([U(`inline`),U(`fullscreen`),U(`pip`)]).describe(`Display mode for UI presentation.`),Pl=H(V([U(`--color-background-primary`),U(`--color-background-secondary`),U(`--color-background-tertiary`),U(`--color-background-inverse`),U(`--color-background-ghost`),U(`--color-background-info`),U(`--color-background-danger`),U(`--color-background-success`),U(`--color-background-warning`),U(`--color-background-disabled`),U(`--color-text-primary`),U(`--color-text-secondary`),U(`--color-text-tertiary`),U(`--color-text-inverse`),U(`--color-text-ghost`),U(`--color-text-info`),U(`--color-text-danger`),U(`--color-text-success`),U(`--color-text-warning`),U(`--color-text-disabled`),U(`--color-border-primary`),U(`--color-border-secondary`),U(`--color-border-tertiary`),U(`--color-border-inverse`),U(`--color-border-ghost`),U(`--color-border-info`),U(`--color-border-danger`),U(`--color-border-success`),U(`--color-border-warning`),U(`--color-border-disabled`),U(`--color-ring-primary`),U(`--color-ring-secondary`),U(`--color-ring-inverse`),U(`--color-ring-info`),U(`--color-ring-danger`),U(`--color-ring-success`),U(`--color-ring-warning`),U(`--font-sans`),U(`--font-mono`),U(`--font-weight-normal`),U(`--font-weight-medium`),U(`--font-weight-semibold`),U(`--font-weight-bold`),U(`--font-text-xs-size`),U(`--font-text-sm-size`),U(`--font-text-md-size`),U(`--font-text-lg-size`),U(`--font-heading-xs-size`),U(`--font-heading-sm-size`),U(`--font-heading-md-size`),U(`--font-heading-lg-size`),U(`--font-heading-xl-size`),U(`--font-heading-2xl-size`),U(`--font-heading-3xl-size`),U(`--font-text-xs-line-height`),U(`--font-text-sm-line-height`),U(`--font-text-md-line-height`),U(`--font-text-lg-line-height`),U(`--font-heading-xs-line-height`),U(`--font-heading-sm-line-height`),U(`--font-heading-md-line-height`),U(`--font-heading-lg-line-height`),U(`--font-heading-xl-line-height`),U(`--font-heading-2xl-line-height`),U(`--font-heading-3xl-line-height`),U(`--border-radius-xs`),U(`--border-radius-sm`),U(`--border-radius-md`),U(`--border-radius-lg`),U(`--border-radius-xl`),U(`--border-radius-full`),U(`--border-width-regular`),U(`--shadow-hairline`),U(`--shadow-sm`),U(`--shadow-md`),U(`--shadow-lg`)]).describe(`CSS variable keys available to MCP apps for theming.`).describe(`Style variables for theming MCP apps. - -Individual style keys are optional - hosts may provide any subset of these values. -Values are strings containing CSS values (colors, sizes, font stacks, etc.). - -Note: This type uses \`Record\` rather than \`Partial>\` -for compatibility with Zod schema generation. Both are functionally equivalent for validation.`),V([N(),Ga()]).describe(`Style variables for theming MCP apps. - -Individual style keys are optional - hosts may provide any subset of these values. -Values are strings containing CSS values (colors, sizes, font stacks, etc.). - -Note: This type uses \`Record\` rather than \`Partial>\` -for compatibility with Zod schema generation. Both are functionally equivalent for validation.`)).describe(`Style variables for theming MCP apps. - -Individual style keys are optional - hosts may provide any subset of these values. -Values are strings containing CSS values (colors, sizes, font stacks, etc.). - -Note: This type uses \`Record\` rather than \`Partial>\` -for compatibility with Zod schema generation. Both are functionally equivalent for validation.`),Fl=z({method:U(`ui/open-link`),params:z({url:N().describe(`URL to open in the host's browser`)})});z({isError:I().optional().describe(`True if the host failed to open the URL (e.g., due to security policy).`)}).passthrough(),z({isError:I().optional().describe(`True if the download failed (e.g., user cancelled or host denied).`)}).passthrough(),z({isError:I().optional().describe(`True if the host rejected or failed to deliver the message.`)}).passthrough();var Il=z({method:U(`ui/notifications/sandbox-proxy-ready`),params:z({})}),Ll=z({connectDomains:R(N()).optional().describe(`Origins for network requests (fetch/XHR/WebSocket). - -- Maps to CSP \`connect-src\` directive -- Empty or omitted → no network connections (secure default)`),resourceDomains:R(N()).optional().describe("Origins for static resources (images, scripts, stylesheets, fonts, media).\n\n- Maps to CSP `img-src`, `script-src`, `style-src`, `font-src`, `media-src` directives\n- Wildcard subdomains supported: `https://*.example.com`\n- Empty or omitted → no network resources (secure default)"),frameDomains:R(N()).optional().describe("Origins for nested iframes.\n\n- Maps to CSP `frame-src` directive\n- Empty or omitted → no nested iframes allowed (`frame-src 'none'`)"),baseUriDomains:R(N()).optional().describe("Allowed base URIs for the document.\n\n- Maps to CSP `base-uri` directive\n- Empty or omitted → only same origin allowed (`base-uri 'self'`)")}),Rl=z({camera:z({}).optional().describe(`Request camera access. - -Maps to Permission Policy \`camera\` feature.`),microphone:z({}).optional().describe(`Request microphone access. - -Maps to Permission Policy \`microphone\` feature.`),geolocation:z({}).optional().describe(`Request geolocation access. - -Maps to Permission Policy \`geolocation\` feature.`),clipboardWrite:z({}).optional().describe(`Request clipboard write access. - -Maps to Permission Policy \`clipboard-write\` feature.`)}),zl=z({method:U(`ui/notifications/size-changed`),params:z({width:F().optional().describe(`New width in pixels.`),height:F().optional().describe(`New height in pixels.`)})});z({method:U(`ui/notifications/tool-input`),params:z({arguments:H(N(),L().describe(`Complete tool call arguments as key-value pairs.`)).optional().describe(`Complete tool call arguments as key-value pairs.`)})}),z({method:U(`ui/notifications/tool-input-partial`),params:z({arguments:H(N(),L().describe(`Partial tool call arguments (incomplete, may change).`)).optional().describe(`Partial tool call arguments (incomplete, may change).`)})}),z({method:U(`ui/notifications/tool-cancelled`),params:z({reason:N().optional().describe(`Optional reason for the cancellation (e.g., "user action", "timeout").`)})});var Bl=z({fonts:N().optional()}),Vl=z({variables:Pl.optional().describe(`CSS variables for theming the app.`),css:Bl.optional().describe(`CSS blocks that apps can inject.`)});z({method:U(`ui/resource-teardown`),params:z({})});var Hl=H(N(),L()),Ul=z({text:z({}).optional().describe(`Host supports text content blocks.`),image:z({}).optional().describe(`Host supports image content blocks.`),audio:z({}).optional().describe(`Host supports audio content blocks.`),resource:z({}).optional().describe(`Host supports resource content blocks.`),resourceLink:z({}).optional().describe(`Host supports resource link content blocks.`),structuredContent:z({}).optional().describe(`Host supports structured content.`)}),Wl=z({method:U(`ui/notifications/request-teardown`),params:z({}).optional()}),Gl=z({experimental:H(N(),H(N(),Ya()).describe(`Experimental features keyed by identifier.`)).optional().describe(`Experimental features keyed by identifier.`),openLinks:z({}).optional().describe(`Host supports opening external URLs.`),downloadFile:z({}).optional().describe(`Host supports file downloads via ui/download-file.`),serverTools:z({listChanged:I().optional().describe(`Host supports tools/list_changed notifications.`)}).optional().describe(`Host can proxy tool calls to the MCP server.`),serverResources:z({listChanged:I().optional().describe(`Host supports resources/list_changed notifications.`)}).optional().describe(`Host can proxy resource reads to the MCP server.`),logging:z({}).optional().describe(`Host accepts log messages.`),sandbox:z({permissions:Rl.optional().describe(`Permissions granted by the host (camera, microphone, geolocation).`),csp:Ll.optional().describe(`CSP domains approved by the host.`)}).optional().describe(`Sandbox configuration applied by the host.`),updateModelContext:Ul.optional().describe(`Host accepts context updates (ui/update-model-context) to be included in the model's context for future turns.`),message:Ul.optional().describe(`Host supports receiving content messages (ui/message) from the view.`),sampling:z({tools:z({}).optional().describe("Host supports tool use via `tools` and `toolChoice` parameters.")}).optional().describe("Host supports LLM sampling (sampling/createMessage) from the view.\nMirrors the MCP `ClientCapabilities.sampling` shape so hosts can pass it through.")}),Kl=z({experimental:H(N(),H(N(),Ya()).describe(`Experimental features keyed by identifier.`)).optional().describe(`Experimental features keyed by identifier.`),tools:z({listChanged:I().optional().describe(`App supports tools/list_changed notifications.`)}).optional().describe(`App exposes MCP-style tools that the host can call.`),availableDisplayModes:R(Nl).optional().describe(`Display modes the app supports.`)}),ql=z({method:U(`ui/notifications/initialized`),params:z({}).optional()});z({csp:Ll.optional().describe(`Content Security Policy configuration for UI resources.`),permissions:Rl.optional().describe(`Sandbox permissions requested by the UI resource.`),domain:N().optional().describe(`Dedicated origin for view sandbox. - -Useful when views need stable, dedicated origins for OAuth callbacks, CORS policies, or API key allowlists. - -**Host-dependent:** The format and validation rules for this field are determined by each host. Servers MUST consult host-specific documentation for the expected domain format. Common patterns include: -- Hash-based subdomains (e.g., \`{hash}.claudemcpcontent.com\`) -- URL-derived subdomains (e.g., \`www-example-com.oaiusercontent.com\`) - -If omitted, host uses default sandbox origin (typically per-conversation).`),prefersBorder:I().optional().describe(`Visual boundary preference - true if view prefers a visible border. - -Boolean requesting whether a visible border and background is provided by the host. Specifying an explicit value for this is recommended because hosts' defaults may vary. - -- \`true\`: request visible border + background -- \`false\`: request no visible border + background -- omitted: host decides border`)});var Jl=z({method:U(`ui/request-display-mode`),params:z({mode:Nl.describe(`The display mode being requested.`)})});z({mode:Nl.describe(`The display mode that was actually set. May differ from requested if not supported.`)}).passthrough();var Yl=V([U(`model`),U(`app`)]).describe(`Tool visibility scope - who can access the tool.`);z({resourceUri:N().optional(),visibility:R(Yl).optional().describe(`Who can access this tool. Default: ["model", "app"] -- "model": Tool visible to and callable by the agent -- "app": Tool callable by the app from this server only`),csp:Qa().optional(),permissions:Qa().optional()}),z({mimeTypes:R(N()).optional().describe('Array of supported MIME types for UI resources.\nMust include `"text/html;profile=mcp-app"` for MCP Apps support.')});var Xl=z({method:U(`ui/download-file`),params:z({contents:R(V([Sc,Cc])).describe(`Resource contents to download — embedded (inline data) or linked (host fetches). Uses standard MCP resource types.`)})}),Zl=z({method:U(`ui/message`),params:z({role:U(`user`).describe(`Message role, currently only "user" is supported.`),content:R(wc).describe(`Message content blocks (text, image, etc.).`)})});z({method:U(`ui/notifications/sandbox-resource-ready`),params:z({html:N().describe(`HTML content to load into the inner iframe.`),sandbox:N().optional().describe(`Optional override for the inner iframe's sandbox attribute.`),csp:Ll.optional().describe(`CSP configuration from resource metadata.`),permissions:Rl.optional().describe(`Sandbox permissions from resource metadata.`)})}),z({method:U(`ui/notifications/tool-result`),params:Nc.describe(`Standard MCP tool execution result.`)});var Ql=z({toolInfo:z({id:Qo.optional().describe(`JSON-RPC id of the tools/call request.`),tool:Ac.describe(`Tool definition including name, inputSchema, etc.`)}).optional().describe(`Metadata of the tool call that instantiated this App.`),theme:Ml.optional().describe(`Current color theme preference.`),styles:Vl.optional().describe(`Style configuration for theming the app.`),displayMode:Nl.optional().describe(`How the UI is currently displayed.`),availableDisplayModes:R(Nl).optional().describe(`Display modes the host supports.`),containerDimensions:V([z({height:F().describe(`Fixed container height in pixels.`)}),z({maxHeight:V([F(),Ga()]).optional().describe(`Maximum container height in pixels.`)})]).and(V([z({width:F().describe(`Fixed container width in pixels.`)}),z({maxWidth:V([F(),Ga()]).optional().describe(`Maximum container width in pixels.`)})])).optional().describe(`Container dimensions. Represents the dimensions of the iframe or other -container holding the app. Specify either width or maxWidth, and either height or maxHeight.`),locale:N().optional().describe(`User's language and region preference in BCP 47 format.`),timeZone:N().optional().describe(`User's timezone in IANA format.`),userAgent:N().optional().describe(`Host application identifier.`),platform:V([U(`web`),U(`desktop`),U(`mobile`)]).optional().describe(`Platform type for responsive design decisions.`),deviceCapabilities:z({touch:I().optional().describe(`Whether the device supports touch input.`),hover:I().optional().describe(`Whether the device supports hover interactions.`)}).optional().describe(`Device input capabilities.`),safeAreaInsets:z({top:F().describe(`Top safe area inset in pixels.`),right:F().describe(`Right safe area inset in pixels.`),bottom:F().describe(`Bottom safe area inset in pixels.`),left:F().describe(`Left safe area inset in pixels.`)}).optional().describe(`Mobile safe area boundaries in pixels.`)}).passthrough();z({method:U(`ui/notifications/host-context-changed`),params:Ql.describe(`Partial context update containing only changed fields.`)});var $l=z({method:U(`ui/update-model-context`),params:z({content:R(wc).optional().describe(`Context content blocks (text, image, etc.).`),structuredContent:H(N(),L().describe(`Structured content for machine-readable context data.`)).optional().describe(`Structured content for machine-readable context data.`)})}),eu=z({method:U(`ui/initialize`),params:z({appInfo:ps.describe(`App identification (name and version).`),appCapabilities:Kl.describe(`Features and capabilities this app provides.`),protocolVersion:N().describe(`Protocol version this app supports.`)})});z({protocolVersion:N().describe(`Negotiated protocol version string (e.g., "2025-11-21").`),hostInfo:ps.describe(`Host application identification and version.`),hostCapabilities:Gl.describe(`Features and capabilities provided by the host.`),hostContext:Ql.describe(`Rich context about the host environment.`)}).passthrough();var tu=class{eventTarget;eventSource;messageListener;constructor(e=window.parent,t){this.eventTarget=e,this.eventSource=t,this.messageListener=e=>{if(t&&e.source!==this.eventSource){console.debug(`Ignoring message from unknown source`,e);return}let n=ss.safeParse(e.data);n.success?(console.debug(`Parsed message`,n.data),this.onmessage?.(n.data)):e.data?.jsonrpc===`2.0`?(console.error(`Failed to parse message`,n.error.message,e),this.onerror?.(Error(`Invalid JSON-RPC message received: `+n.error.message))):console.debug(`Ignoring non-JSON-RPC message`,n.error.message,e)}}async start(){window.addEventListener(`message`,this.messageListener)}async send(e,t){e.method!==`ui/notifications/tool-input-partial`&&console.debug(`Sending message`,e),this.eventTarget.postMessage(e,`*`)}async close(){window.removeEventListener(`message`,this.messageListener),this.onclose?.()}onclose;onerror;onmessage;sessionId;setProtocolVersion},nu=[jl],ru=class extends Al{_client;_hostInfo;_capabilities;_appCapabilities;_hostContext={};_appInfo;_initializedReceived=!1;_baseReplaceRequestHandler=this.replaceRequestHandler;replaceRequestHandler=(e,t)=>{this._baseReplaceRequestHandler(e,(e,n)=>(this._initializedReceived||console.warn(`[ext-apps] AppBridge received '${e.method}' before ui/notifications/initialized. The View is calling host methods before completing the handshake; it should await app.connect() first.`),t(e,n)))};eventSchemas={sizechange:zl,sandboxready:Il,initialized:ql,requestteardown:Wl,loggingmessage:Hc};constructor(e,t,n,r){super(r),this._client=e,this._hostInfo=t,this._capabilities=n,this.addEventListener(`initialized`,()=>{this._initializedReceived=!0}),this._hostContext=r?.hostContext||{},this.setRequestHandler(eu,e=>this._oninitialize(e)),this.setRequestHandler(ws,(e,t)=>(this.onping?.(e.params,t),{})),this.replaceRequestHandler(Jl,e=>({mode:this._hostContext.displayMode??`inline`}))}getAppCapabilities(){return this._appCapabilities}getAppVersion(){return this._appInfo}onping;get onsizechange(){return this.getEventHandler(`sizechange`)}set onsizechange(e){this.setEventHandler(`sizechange`,e)}get onsandboxready(){return this.getEventHandler(`sandboxready`)}set onsandboxready(e){this.setEventHandler(`sandboxready`,e)}get oninitialized(){return this.getEventHandler(`initialized`)}set oninitialized(e){this.setEventHandler(`initialized`,e)}_onmessage;get onmessage(){return this._onmessage}set onmessage(e){this.warnIfRequestHandlerReplaced(`onmessage`,this._onmessage,e),this._onmessage=e,this.replaceRequestHandler(Zl,async(e,t)=>{if(!this._onmessage)throw Error(`No onmessage handler set`);return this._onmessage(e.params,t)})}_onopenlink;get onopenlink(){return this._onopenlink}set onopenlink(e){this.warnIfRequestHandlerReplaced(`onopenlink`,this._onopenlink,e),this._onopenlink=e,this.replaceRequestHandler(Fl,async(e,t)=>{if(!this._onopenlink)throw Error(`No onopenlink handler set`);return this._onopenlink(e.params,t)})}_ondownloadfile;get ondownloadfile(){return this._ondownloadfile}set ondownloadfile(e){this.warnIfRequestHandlerReplaced(`ondownloadfile`,this._ondownloadfile,e),this._ondownloadfile=e,this.replaceRequestHandler(Xl,async(e,t)=>{if(!this._ondownloadfile)throw Error(`No ondownloadfile handler set`);return this._ondownloadfile(e.params,t)})}get onrequestteardown(){return this.getEventHandler(`requestteardown`)}set onrequestteardown(e){this.setEventHandler(`requestteardown`,e)}_onrequestdisplaymode;get onrequestdisplaymode(){return this._onrequestdisplaymode}set onrequestdisplaymode(e){this.warnIfRequestHandlerReplaced(`onrequestdisplaymode`,this._onrequestdisplaymode,e),this._onrequestdisplaymode=e,this.replaceRequestHandler(Jl,async(e,t)=>{if(!this._onrequestdisplaymode)throw Error(`No onrequestdisplaymode handler set`);return this._onrequestdisplaymode(e.params,t)})}get onloggingmessage(){return this.getEventHandler(`loggingmessage`)}set onloggingmessage(e){this.setEventHandler(`loggingmessage`,e)}_onupdatemodelcontext;get onupdatemodelcontext(){return this._onupdatemodelcontext}set onupdatemodelcontext(e){this.warnIfRequestHandlerReplaced(`onupdatemodelcontext`,this._onupdatemodelcontext,e),this._onupdatemodelcontext=e,this.replaceRequestHandler($l,async(e,t)=>{if(!this._onupdatemodelcontext)throw Error(`No onupdatemodelcontext handler set`);return this._onupdatemodelcontext(e.params,t)})}_oncalltool;get oncalltool(){return this._oncalltool}set oncalltool(e){this.warnIfRequestHandlerReplaced(`oncalltool`,this._oncalltool,e),this._oncalltool=e,this.replaceRequestHandler(Fc,async(e,t)=>{if(!this._oncalltool)throw Error(`No oncalltool handler set`);return this._oncalltool(e.params,t)})}set oncreatesamplingmessage(e){this.setRequestHandler(Xc,async(t,n)=>e(t.params,n))}sendToolListChanged(e={}){return this.notification({method:`notifications/tools/list_changed`,params:e})}_onlistresources;get onlistresources(){return this._onlistresources}set onlistresources(e){this.warnIfRequestHandlerReplaced(`onlistresources`,this._onlistresources,e),this._onlistresources=e,this.replaceRequestHandler(Zs,async(e,t)=>{if(!this._onlistresources)throw Error(`No onlistresources handler set`);return this._onlistresources(e.params,t)})}_onlistresourcetemplates;get onlistresourcetemplates(){return this._onlistresourcetemplates}set onlistresourcetemplates(e){this.warnIfRequestHandlerReplaced(`onlistresourcetemplates`,this._onlistresourcetemplates,e),this._onlistresourcetemplates=e,this.replaceRequestHandler($s,async(e,t)=>{if(!this._onlistresourcetemplates)throw Error(`No onlistresourcetemplates handler set`);return this._onlistresourcetemplates(e.params,t)})}_onreadresource;get onreadresource(){return this._onreadresource}set onreadresource(e){this.warnIfRequestHandlerReplaced(`onreadresource`,this._onreadresource,e),this._onreadresource=e,this.replaceRequestHandler(rc,async(e,t)=>{if(!this._onreadresource)throw Error(`No onreadresource handler set`);return this._onreadresource(e.params,t)})}sendResourceListChanged(e={}){return this.notification({method:`notifications/resources/list_changed`,params:e})}_onlistprompts;get onlistprompts(){return this._onlistprompts}set onlistprompts(e){this.warnIfRequestHandlerReplaced(`onlistprompts`,this._onlistprompts,e),this._onlistprompts=e,this.replaceRequestHandler(mc,async(e,t)=>{if(!this._onlistprompts)throw Error(`No onlistprompts handler set`);return this._onlistprompts(e.params,t)})}sendPromptListChanged(e={}){return this.notification({method:`notifications/prompts/list_changed`,params:e})}assertCapabilityForMethod(e){}assertRequestHandlerCapability(e){}assertNotificationCapability(e){}assertTaskCapability(e){throw Error(`Tasks are not supported in MCP Apps`)}assertTaskHandlerCapability(e){throw Error(`Task handlers are not supported in MCP Apps`)}getCapabilities(){return this._capabilities}async _oninitialize(e){let t=e.params.protocolVersion;return this._appInfo!==void 0&&console.warn(`[ext-apps] AppBridge received a second ui/initialize. The View may be double-mounting (e.g. React StrictMode in dev) without closing the previous App instance. Responding normally; the latest appInfo/appCapabilities replace the previous values.`),this._appCapabilities=e.params.appCapabilities,this._appInfo=e.params.appInfo,{protocolVersion:nu.includes(t)?t:jl,hostCapabilities:this.getCapabilities(),hostInfo:this._hostInfo,hostContext:this._hostContext}}setHostContext(e){let t={},n=!1;for(let r of Object.keys(e)){let i=this._hostContext[r],a=e[r];iu(i,a)||(t[r]=a,n=!0)}n&&(this._hostContext=e,this.sendHostContextChange(t))}sendHostContextChange(e){return this.notification({method:`ui/notifications/host-context-changed`,params:e})}sendToolInput(e){return this.notification({method:`ui/notifications/tool-input`,params:e})}sendToolInputPartial(e){return this.notification({method:`ui/notifications/tool-input-partial`,params:e})}sendToolResult(e){return this.notification({method:`ui/notifications/tool-result`,params:e})}sendToolCancelled(e){return this.notification({method:`ui/notifications/tool-cancelled`,params:e})}sendSandboxResourceReady(e){return this.notification({method:`ui/notifications/sandbox-resource-ready`,params:e})}teardownResource(e,t){return this.request({method:`ui/resource-teardown`,params:e},Hl,t)}sendResourceTeardown=this.teardownResource;callTool(e,t){return this.request({method:`tools/call`,params:e},Nc,t)}listTools(e,t){return this.request({method:`tools/list`,params:e},Mc,t)}async connect(e){if(this.transport)throw Error(`AppBridge is already connected. Call close() before connecting again.`);if(this._initializedReceived=!1,this._client){let e=this._client.getServerCapabilities();if(!e)throw Error(`Client server capabilities not available`);e.tools&&(this.oncalltool=async(e,t)=>this._client.request({method:`tools/call`,params:e},Nc,{signal:t.signal}),e.tools.listChanged&&this._client.setNotificationHandler(Ic,e=>this.sendToolListChanged(e.params))),e.resources&&(this.onlistresources=async(e,t)=>this._client.request({method:`resources/list`,params:e},Qs,{signal:t.signal}),this.onlistresourcetemplates=async(e,t)=>this._client.request({method:`resources/templates/list`,params:e},ec,{signal:t.signal}),this.onreadresource=async(e,t)=>this._client.request({method:`resources/read`,params:e},ic,{signal:t.signal}),e.resources.listChanged&&this._client.setNotificationHandler(ac,e=>this.sendResourceListChanged(e.params))),e.prompts&&(this.onlistprompts=async(e,t)=>this._client.request({method:`prompts/list`,params:e},hc,{signal:t.signal}),e.prompts.listChanged&&this._client.setNotificationHandler(Dc,e=>this.sendPromptListChanged(e.params)))}return super.connect(e)}};function iu(e,t){return JSON.stringify(e)===JSON.stringify(t)}var au=r((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.regexpCode=e.getEsmExportName=e.getProperty=e.safeStringify=e.stringify=e.strConcat=e.addCodeArg=e.str=e._=e.nil=e._Code=e.Name=e.IDENTIFIER=e._CodeOrName=void 0;var t=class{};e._CodeOrName=t,e.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;var n=class extends t{constructor(t){if(super(),!e.IDENTIFIER.test(t))throw Error(`CodeGen: name must be a valid identifier`);this.str=t}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}};e.Name=n;var r=class extends t{constructor(e){super(),this._items=typeof e==`string`?[e]:e}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;let e=this._items[0];return e===``||e===`""`}get str(){return this._str??=this._items.reduce((e,t)=>`${e}${t}`,``)}get names(){return this._names??=this._items.reduce((e,t)=>(t instanceof n&&(e[t.str]=(e[t.str]||0)+1),e),{})}};e._Code=r,e.nil=new r(``);function i(e,...t){let n=[e[0]],i=0;for(;i{Object.defineProperty(e,"__esModule",{value:!0}),e.ValueScope=e.ValueScopeName=e.Scope=e.varKinds=e.UsedValueState=void 0;var t=au(),n=class extends Error{constructor(e){super(`CodeGen: "code" for ${e} not defined`),this.value=e.value}},r;(function(e){e[e.Started=0]=`Started`,e[e.Completed=1]=`Completed`})(r||(e.UsedValueState=r={})),e.varKinds={const:new t.Name(`const`),let:new t.Name(`let`),var:new t.Name(`var`)};var i=class{constructor({prefixes:e,parent:t}={}){this._names={},this._prefixes=e,this._parent=t}toName(e){return e instanceof t.Name?e:this.name(e)}name(e){return new t.Name(this._newName(e))}_newName(e){let t=this._names[e]||this._nameGroup(e);return`${e}${t.index++}`}_nameGroup(e){if((this._parent?._prefixes)?.has(e)||this._prefixes&&!this._prefixes.has(e))throw Error(`CodeGen: prefix "${e}" is not allowed in this scope`);return this._names[e]={prefix:e,index:0}}};e.Scope=i;var a=class extends t.Name{constructor(e,t){super(t),this.prefix=e}setValue(e,{property:n,itemIndex:r}){this.value=e,this.scopePath=(0,t._)`.${new t.Name(n)}[${r}]`}};e.ValueScopeName=a;var o=(0,t._)`\n`;e.ValueScope=class extends i{constructor(e){super(e),this._values={},this._scope=e.scope,this.opts={...e,_n:e.lines?o:t.nil}}get(){return this._scope}name(e){return new a(e,this._newName(e))}value(e,t){if(t.ref===void 0)throw Error(`CodeGen: ref must be passed in value`);let n=this.toName(e),{prefix:r}=n,i=t.key??t.ref,a=this._values[r];if(a){let e=a.get(i);if(e)return e}else a=this._values[r]=new Map;a.set(i,n);let o=this._scope[r]||(this._scope[r]=[]),s=o.length;return o[s]=t.ref,n.setValue(t,{property:r,itemIndex:s}),n}getValue(e,t){let n=this._values[e];if(n)return n.get(t)}scopeRefs(e,n=this._values){return this._reduceValues(n,n=>{if(n.scopePath===void 0)throw Error(`CodeGen: name "${n}" has no value`);return(0,t._)`${e}${n.scopePath}`})}scopeCode(e=this._values,t,n){return this._reduceValues(e,e=>{if(e.value===void 0)throw Error(`CodeGen: name "${e}" has no value`);return e.value.code},t,n)}_reduceValues(i,a,o={},s){let c=t.nil;for(let l in i){let u=i[l];if(!u)continue;let d=o[l]=o[l]||new Map;u.forEach(i=>{if(d.has(i))return;d.set(i,r.Started);let o=a(i);if(o){let n=this.opts.es5?e.varKinds.var:e.varKinds.const;c=(0,t._)`${c}${n} ${i} = ${o};${this.opts._n}`}else if(o=s?.(i))c=(0,t._)`${c}${o}${this.opts._n}`;else throw new n(i);d.set(i,r.Completed)})}return c}}})),X=r((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.or=e.and=e.not=e.CodeGen=e.operators=e.varKinds=e.ValueScopeName=e.ValueScope=e.Scope=e.Name=e.regexpCode=e.stringify=e.getProperty=e.nil=e.strConcat=e.str=e._=void 0;var t=au(),n=ou(),r=au();Object.defineProperty(e,"_",{enumerable:!0,get:function(){return r._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return r.str}}),Object.defineProperty(e,"strConcat",{enumerable:!0,get:function(){return r.strConcat}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return r.nil}}),Object.defineProperty(e,"getProperty",{enumerable:!0,get:function(){return r.getProperty}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return r.stringify}}),Object.defineProperty(e,"regexpCode",{enumerable:!0,get:function(){return r.regexpCode}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return r.Name}});var i=ou();Object.defineProperty(e,"Scope",{enumerable:!0,get:function(){return i.Scope}}),Object.defineProperty(e,"ValueScope",{enumerable:!0,get:function(){return i.ValueScope}}),Object.defineProperty(e,"ValueScopeName",{enumerable:!0,get:function(){return i.ValueScopeName}}),Object.defineProperty(e,"varKinds",{enumerable:!0,get:function(){return i.varKinds}}),e.operators={GT:new t._Code(`>`),GTE:new t._Code(`>=`),LT:new t._Code(`<`),LTE:new t._Code(`<=`),EQ:new t._Code(`===`),NEQ:new t._Code(`!==`),NOT:new t._Code(`!`),OR:new t._Code(`||`),AND:new t._Code(`&&`),ADD:new t._Code(`+`)};var a=class{optimizeNodes(){return this}optimizeNames(e,t){return this}},o=class extends a{constructor(e,t,n){super(),this.varKind=e,this.name=t,this.rhs=n}render({es5:e,_n:t}){let r=e?n.varKinds.var:this.varKind,i=this.rhs===void 0?``:` = ${this.rhs}`;return`${r} ${this.name}${i};`+t}optimizeNames(e,t){if(e[this.name.str])return this.rhs&&=T(this.rhs,e,t),this}get names(){return this.rhs instanceof t._CodeOrName?this.rhs.names:{}}},s=class extends a{constructor(e,t,n){super(),this.lhs=e,this.rhs=t,this.sideEffects=n}render({_n:e}){return`${this.lhs} = ${this.rhs};`+e}optimizeNames(e,n){if(!(this.lhs instanceof t.Name&&!e[this.lhs.str]&&!this.sideEffects))return this.rhs=T(this.rhs,e,n),this}get names(){return w(this.lhs instanceof t.Name?{}:{...this.lhs.names},this.rhs)}},c=class extends s{constructor(e,t,n,r){super(e,n,r),this.op=t}render({_n:e}){return`${this.lhs} ${this.op}= ${this.rhs};`+e}},l=class extends a{constructor(e){super(),this.label=e,this.names={}}render({_n:e}){return`${this.label}:`+e}},u=class extends a{constructor(e){super(),this.label=e,this.names={}}render({_n:e}){return`break${this.label?` ${this.label}`:``};`+e}},d=class extends a{constructor(e){super(),this.error=e}render({_n:e}){return`throw ${this.error};`+e}get names(){return this.error.names}},f=class extends a{constructor(e){super(),this.code=e}render({_n:e}){return`${this.code};`+e}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(e,t){return this.code=T(this.code,e,t),this}get names(){return this.code instanceof t._CodeOrName?this.code.names:{}}},p=class extends a{constructor(e=[]){super(),this.nodes=e}render(e){return this.nodes.reduce((t,n)=>t+n.render(e),``)}optimizeNodes(){let{nodes:e}=this,t=e.length;for(;t--;){let n=e[t].optimizeNodes();Array.isArray(n)?e.splice(t,1,...n):n?e[t]=n:e.splice(t,1)}return e.length>0?this:void 0}optimizeNames(e,t){let{nodes:n}=this,r=n.length;for(;r--;){let i=n[r];i.optimizeNames(e,t)||(ie(e,i.names),n.splice(r,1))}return n.length>0?this:void 0}get names(){return this.nodes.reduce((e,t)=>re(e,t.names),{})}},m=class extends p{render(e){return`{`+e._n+super.render(e)+`}`+e._n}},h=class extends p{},g=class extends m{};g.kind=`else`;var _=class e extends m{constructor(e,t){super(t),this.condition=e}render(e){let t=`if(${this.condition})`+super.render(e);return this.else&&(t+=`else `+this.else.render(e)),t}optimizeNodes(){super.optimizeNodes();let t=this.condition;if(t===!0)return this.nodes;let n=this.else;if(n){let e=n.optimizeNodes();n=this.else=Array.isArray(e)?new g(e):e}if(n)return t===!1?n instanceof e?n:n.nodes:this.nodes.length?this:new e(ae(t),n instanceof e?[n]:n.nodes);if(!(t===!1||!this.nodes.length))return this}optimizeNames(e,t){if(this.else=this.else?.optimizeNames(e,t),super.optimizeNames(e,t)||this.else)return this.condition=T(this.condition,e,t),this}get names(){let e=super.names;return w(e,this.condition),this.else&&re(e,this.else.names),e}};_.kind=`if`;var v=class extends m{};v.kind=`for`;var y=class extends v{constructor(e){super(),this.iteration=e}render(e){return`for(${this.iteration})`+super.render(e)}optimizeNames(e,t){if(super.optimizeNames(e,t))return this.iteration=T(this.iteration,e,t),this}get names(){return re(super.names,this.iteration.names)}},b=class extends v{constructor(e,t,n,r){super(),this.varKind=e,this.name=t,this.from=n,this.to=r}render(e){let t=e.es5?n.varKinds.var:this.varKind,{name:r,from:i,to:a}=this;return`for(${t} ${r}=${i}; ${r}<${a}; ${r}++)`+super.render(e)}get names(){return w(w(super.names,this.from),this.to)}},x=class extends v{constructor(e,t,n,r){super(),this.loop=e,this.varKind=t,this.name=n,this.iterable=r}render(e){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(e)}optimizeNames(e,t){if(super.optimizeNames(e,t))return this.iterable=T(this.iterable,e,t),this}get names(){return re(super.names,this.iterable.names)}},S=class extends m{constructor(e,t,n){super(),this.name=e,this.args=t,this.async=n}render(e){return`${this.async?`async `:``}function ${this.name}(${this.args})`+super.render(e)}};S.kind=`func`;var C=class extends p{render(e){return`return `+super.render(e)}};C.kind=`return`;var ee=class extends m{render(e){let t=`try`+super.render(e);return this.catch&&(t+=this.catch.render(e)),this.finally&&(t+=this.finally.render(e)),t}optimizeNodes(){var e,t;return super.optimizeNodes(),(e=this.catch)==null||e.optimizeNodes(),(t=this.finally)==null||t.optimizeNodes(),this}optimizeNames(e,t){var n,r;return super.optimizeNames(e,t),(n=this.catch)==null||n.optimizeNames(e,t),(r=this.finally)==null||r.optimizeNames(e,t),this}get names(){let e=super.names;return this.catch&&re(e,this.catch.names),this.finally&&re(e,this.finally.names),e}},te=class extends m{constructor(e){super(),this.error=e}render(e){return`catch(${this.error})`+super.render(e)}};te.kind=`catch`;var ne=class extends m{render(e){return`finally`+super.render(e)}};ne.kind=`finally`,e.CodeGen=class{constructor(e,t={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...t,_n:t.lines?` -`:``},this._extScope=e,this._scope=new n.Scope({parent:e}),this._nodes=[new h]}toString(){return this._root.render(this.opts)}name(e){return this._scope.name(e)}scopeName(e){return this._extScope.name(e)}scopeValue(e,t){let n=this._extScope.value(e,t);return(this._values[n.prefix]||(this._values[n.prefix]=new Set)).add(n),n}getScopeValue(e,t){return this._extScope.getValue(e,t)}scopeRefs(e){return this._extScope.scopeRefs(e,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(e,t,n,r){let i=this._scope.toName(t);return n!==void 0&&r&&(this._constants[i.str]=n),this._leafNode(new o(e,i,n)),i}const(e,t,r){return this._def(n.varKinds.const,e,t,r)}let(e,t,r){return this._def(n.varKinds.let,e,t,r)}var(e,t,r){return this._def(n.varKinds.var,e,t,r)}assign(e,t,n){return this._leafNode(new s(e,t,n))}add(t,n){return this._leafNode(new c(t,e.operators.ADD,n))}code(e){return typeof e==`function`?e():e!==t.nil&&this._leafNode(new f(e)),this}object(...e){let n=[`{`];for(let[r,i]of e)n.length>1&&n.push(`,`),n.push(r),(r!==i||this.opts.es5)&&(n.push(`:`),(0,t.addCodeArg)(n,i));return n.push(`}`),new t._Code(n)}if(e,t,n){if(this._blockNode(new _(e)),t&&n)this.code(t).else().code(n).endIf();else if(t)this.code(t).endIf();else if(n)throw Error(`CodeGen: "else" body without "then" body`);return this}elseIf(e){return this._elseNode(new _(e))}else(){return this._elseNode(new g)}endIf(){return this._endBlockNode(_,g)}_for(e,t){return this._blockNode(e),t&&this.code(t).endFor(),this}for(e,t){return this._for(new y(e),t)}forRange(e,t,r,i,a=this.opts.es5?n.varKinds.var:n.varKinds.let){let o=this._scope.toName(e);return this._for(new b(a,o,t,r),()=>i(o))}forOf(e,r,i,a=n.varKinds.const){let o=this._scope.toName(e);if(this.opts.es5){let e=r instanceof t.Name?r:this.var(`_arr`,r);return this.forRange(`_i`,0,(0,t._)`${e}.length`,n=>{this.var(o,(0,t._)`${e}[${n}]`),i(o)})}return this._for(new x(`of`,a,o,r),()=>i(o))}forIn(e,r,i,a=this.opts.es5?n.varKinds.var:n.varKinds.const){if(this.opts.ownProperties)return this.forOf(e,(0,t._)`Object.keys(${r})`,i);let o=this._scope.toName(e);return this._for(new x(`in`,a,o,r),()=>i(o))}endFor(){return this._endBlockNode(v)}label(e){return this._leafNode(new l(e))}break(e){return this._leafNode(new u(e))}return(e){let t=new C;if(this._blockNode(t),this.code(e),t.nodes.length!==1)throw Error(`CodeGen: "return" should have one node`);return this._endBlockNode(C)}try(e,t,n){if(!t&&!n)throw Error(`CodeGen: "try" without "catch" and "finally"`);let r=new ee;if(this._blockNode(r),this.code(e),t){let e=this.name(`e`);this._currNode=r.catch=new te(e),t(e)}return n&&(this._currNode=r.finally=new ne,this.code(n)),this._endBlockNode(te,ne)}throw(e){return this._leafNode(new d(e))}block(e,t){return this._blockStarts.push(this._nodes.length),e&&this.code(e).endBlock(t),this}endBlock(e){let t=this._blockStarts.pop();if(t===void 0)throw Error(`CodeGen: not in self-balancing block`);let n=this._nodes.length-t;if(n<0||e!==void 0&&n!==e)throw Error(`CodeGen: wrong number of nodes: ${n} vs ${e} expected`);return this._nodes.length=t,this}func(e,n=t.nil,r,i){return this._blockNode(new S(e,n,r)),i&&this.code(i).endFunc(),this}endFunc(){return this._endBlockNode(S)}optimize(e=1){for(;e-->0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(e){return this._currNode.nodes.push(e),this}_blockNode(e){this._currNode.nodes.push(e),this._nodes.push(e)}_endBlockNode(e,t){let n=this._currNode;if(n instanceof e||t&&n instanceof t)return this._nodes.pop(),this;throw Error(`CodeGen: not in block "${t?`${e.kind}/${t.kind}`:e.kind}"`)}_elseNode(e){let t=this._currNode;if(!(t instanceof _))throw Error(`CodeGen: "else" without "if"`);return this._currNode=t.else=e,this}get _root(){return this._nodes[0]}get _currNode(){let e=this._nodes;return e[e.length-1]}set _currNode(e){let t=this._nodes;t[t.length-1]=e}};function re(e,t){for(let n in t)e[n]=(e[n]||0)+(t[n]||0);return e}function w(e,n){return n instanceof t._CodeOrName?re(e,n.names):e}function T(e,n,r){if(e instanceof t.Name)return i(e);if(!a(e))return e;return new t._Code(e._items.reduce((e,n)=>(n instanceof t.Name&&(n=i(n)),n instanceof t._Code?e.push(...n._items):e.push(n),e),[]));function i(e){let t=r[e.str];return t===void 0||n[e.str]!==1?e:(delete n[e.str],t)}function a(e){return e instanceof t._Code&&e._items.some(e=>e instanceof t.Name&&n[e.str]===1&&r[e.str]!==void 0)}}function ie(e,t){for(let n in t)e[n]=(e[n]||0)-(t[n]||0)}function ae(e){return typeof e==`boolean`||typeof e==`number`||e===null?!e:(0,t._)`!${de(e)}`}e.not=ae;var oe=ue(e.operators.AND);function se(...e){return e.reduce(oe)}e.and=se;var ce=ue(e.operators.OR);function le(...e){return e.reduce(ce)}e.or=le;function ue(e){return(n,r)=>n===t.nil?r:r===t.nil?n:(0,t._)`${de(n)} ${e} ${de(r)}`}function de(e){return e instanceof t.Name?e:(0,t._)`(${e})`}})),Z=r((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.checkStrictMode=e.getErrorPath=e.Type=e.useFunc=e.setEvaluated=e.evaluatedPropsToName=e.mergeEvaluated=e.eachItem=e.unescapeJsonPointer=e.escapeJsonPointer=e.escapeFragment=e.unescapeFragment=e.schemaRefOrVal=e.schemaHasRulesButRef=e.schemaHasRules=e.checkUnknownRules=e.alwaysValidSchema=e.toHash=void 0;var t=X(),n=au();function r(e){let t={};for(let n of e)t[n]=!0;return t}e.toHash=r;function i(e,t){return typeof t==`boolean`?t:Object.keys(t).length===0||(a(e,t),!o(t,e.self.RULES.all))}e.alwaysValidSchema=i;function a(e,t=e.schema){let{opts:n,self:r}=e;if(!n.strictSchema||typeof t==`boolean`)return;let i=r.RULES.keywords;for(let n in t)i[n]||x(e,`unknown keyword: "${n}"`)}e.checkUnknownRules=a;function o(e,t){if(typeof e==`boolean`)return!e;for(let n in e)if(t[n])return!0;return!1}e.schemaHasRules=o;function s(e,t){if(typeof e==`boolean`)return!e;for(let n in e)if(n!==`$ref`&&t.all[n])return!0;return!1}e.schemaHasRulesButRef=s;function c({topSchemaRef:e,schemaPath:n},r,i,a){if(!a){if(typeof r==`number`||typeof r==`boolean`)return r;if(typeof r==`string`)return(0,t._)`${r}`}return(0,t._)`${e}${n}${(0,t.getProperty)(i)}`}e.schemaRefOrVal=c;function l(e){return f(decodeURIComponent(e))}e.unescapeFragment=l;function u(e){return encodeURIComponent(d(e))}e.escapeFragment=u;function d(e){return typeof e==`number`?`${e}`:e.replace(/~/g,`~0`).replace(/\//g,`~1`)}e.escapeJsonPointer=d;function f(e){return e.replace(/~1/g,`/`).replace(/~0/g,`~`)}e.unescapeJsonPointer=f;function p(e,t){if(Array.isArray(e))for(let n of e)t(n);else t(e)}e.eachItem=p;function m({mergeNames:e,mergeToName:n,mergeValues:r,resultToName:i}){return(a,o,s,c)=>{let l=s===void 0?o:s instanceof t.Name?(o instanceof t.Name?e(a,o,s):n(a,o,s),s):o instanceof t.Name?(n(a,s,o),o):r(o,s);return c===t.Name&&!(l instanceof t.Name)?i(a,l):l}}e.mergeEvaluated={props:m({mergeNames:(e,n,r)=>e.if((0,t._)`${r} !== true && ${n} !== undefined`,()=>{e.if((0,t._)`${n} === true`,()=>e.assign(r,!0),()=>e.assign(r,(0,t._)`${r} || {}`).code((0,t._)`Object.assign(${r}, ${n})`))}),mergeToName:(e,n,r)=>e.if((0,t._)`${r} !== true`,()=>{n===!0?e.assign(r,!0):(e.assign(r,(0,t._)`${r} || {}`),g(e,r,n))}),mergeValues:(e,t)=>e===!0||{...e,...t},resultToName:h}),items:m({mergeNames:(e,n,r)=>e.if((0,t._)`${r} !== true && ${n} !== undefined`,()=>e.assign(r,(0,t._)`${n} === true ? true : ${r} > ${n} ? ${r} : ${n}`)),mergeToName:(e,n,r)=>e.if((0,t._)`${r} !== true`,()=>e.assign(r,n===!0||(0,t._)`${r} > ${n} ? ${r} : ${n}`)),mergeValues:(e,t)=>e===!0||Math.max(e,t),resultToName:(e,t)=>e.var(`items`,t)})};function h(e,n){if(n===!0)return e.var(`props`,!0);let r=e.var(`props`,(0,t._)`{}`);return n!==void 0&&g(e,r,n),r}e.evaluatedPropsToName=h;function g(e,n,r){Object.keys(r).forEach(r=>e.assign((0,t._)`${n}${(0,t.getProperty)(r)}`,!0))}e.setEvaluated=g;var _={};function v(e,t){return e.scopeValue(`func`,{ref:t,code:_[t.code]||(_[t.code]=new n._Code(t.code))})}e.useFunc=v;var y;(function(e){e[e.Num=0]=`Num`,e[e.Str=1]=`Str`})(y||(e.Type=y={}));function b(e,n,r){if(e instanceof t.Name){let i=n===y.Num;return r?i?(0,t._)`"[" + ${e} + "]"`:(0,t._)`"['" + ${e} + "']"`:i?(0,t._)`"/" + ${e}`:(0,t._)`"/" + ${e}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return r?(0,t.getProperty)(e).toString():`/`+d(e)}e.getErrorPath=b;function x(e,t,n=e.opts.strictSchema){if(n){if(t=`strict mode: ${t}`,n===!0)throw Error(t);e.self.logger.warn(t)}}e.checkStrictMode=x})),su=r((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=X();e.default={data:new t.Name(`data`),valCxt:new t.Name(`valCxt`),instancePath:new t.Name(`instancePath`),parentData:new t.Name(`parentData`),parentDataProperty:new t.Name(`parentDataProperty`),rootData:new t.Name(`rootData`),dynamicAnchors:new t.Name(`dynamicAnchors`),vErrors:new t.Name(`vErrors`),errors:new t.Name(`errors`),this:new t.Name(`this`),self:new t.Name(`self`),scope:new t.Name(`scope`),json:new t.Name(`json`),jsonPos:new t.Name(`jsonPos`),jsonLen:new t.Name(`jsonLen`),jsonPart:new t.Name(`jsonPart`)}})),cu=r((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.extendErrors=e.resetErrorsCount=e.reportExtraError=e.reportError=e.keyword$DataError=e.keywordError=void 0;var t=X(),n=Z(),r=su();e.keywordError={message:({keyword:e})=>(0,t.str)`must pass "${e}" keyword validation`},e.keyword$DataError={message:({keyword:e,schemaType:n})=>n?(0,t.str)`"${e}" keyword must be ${n} ($data)`:(0,t.str)`"${e}" keyword is invalid ($data)`};function i(n,r=e.keywordError,i,a){let{it:o}=n,{gen:s,compositeRule:u,allErrors:f}=o,p=d(n,r,i);a??(u||f)?c(s,p):l(o,(0,t._)`[${p}]`)}e.reportError=i;function a(t,n=e.keywordError,i){let{it:a}=t,{gen:o,compositeRule:s,allErrors:u}=a;c(o,d(t,n,i)),s||u||l(a,r.default.vErrors)}e.reportExtraError=a;function o(e,n){e.assign(r.default.errors,n),e.if((0,t._)`${r.default.vErrors} !== null`,()=>e.if(n,()=>e.assign((0,t._)`${r.default.vErrors}.length`,n),()=>e.assign(r.default.vErrors,null)))}e.resetErrorsCount=o;function s({gen:e,keyword:n,schemaValue:i,data:a,errsCount:o,it:s}){if(o===void 0)throw Error(`ajv implementation error`);let c=e.name(`err`);e.forRange(`i`,o,r.default.errors,o=>{e.const(c,(0,t._)`${r.default.vErrors}[${o}]`),e.if((0,t._)`${c}.instancePath === undefined`,()=>e.assign((0,t._)`${c}.instancePath`,(0,t.strConcat)(r.default.instancePath,s.errorPath))),e.assign((0,t._)`${c}.schemaPath`,(0,t.str)`${s.errSchemaPath}/${n}`),s.opts.verbose&&(e.assign((0,t._)`${c}.schema`,i),e.assign((0,t._)`${c}.data`,a))})}e.extendErrors=s;function c(e,n){let i=e.const(`err`,n);e.if((0,t._)`${r.default.vErrors} === null`,()=>e.assign(r.default.vErrors,(0,t._)`[${i}]`),(0,t._)`${r.default.vErrors}.push(${i})`),e.code((0,t._)`${r.default.errors}++`)}function l(e,n){let{gen:r,validateName:i,schemaEnv:a}=e;a.$async?r.throw((0,t._)`new ${e.ValidationError}(${n})`):(r.assign((0,t._)`${i}.errors`,n),r.return(!1))}var u={keyword:new t.Name(`keyword`),schemaPath:new t.Name(`schemaPath`),params:new t.Name(`params`),propertyName:new t.Name(`propertyName`),message:new t.Name(`message`),schema:new t.Name(`schema`),parentSchema:new t.Name(`parentSchema`)};function d(e,n,r){let{createErrors:i}=e.it;return i===!1?(0,t._)`{}`:f(e,n,r)}function f(e,t,n={}){let{gen:r,it:i}=e,a=[p(i,n),m(e,n)];return h(e,t,a),r.object(...a)}function p({errorPath:e},{instancePath:i}){let a=i?(0,t.str)`${e}${(0,n.getErrorPath)(i,n.Type.Str)}`:e;return[r.default.instancePath,(0,t.strConcat)(r.default.instancePath,a)]}function m({keyword:e,it:{errSchemaPath:r}},{schemaPath:i,parentSchema:a}){let o=a?r:(0,t.str)`${r}/${e}`;return i&&(o=(0,t.str)`${o}${(0,n.getErrorPath)(i,n.Type.Str)}`),[u.schemaPath,o]}function h(e,{params:n,message:i},a){let{keyword:o,data:s,schemaValue:c,it:l}=e,{opts:d,propertyName:f,topSchemaRef:p,schemaPath:m}=l;a.push([u.keyword,o],[u.params,typeof n==`function`?n(e):n||(0,t._)`{}`]),d.messages&&a.push([u.message,typeof i==`function`?i(e):i]),d.verbose&&a.push([u.schema,c],[u.parentSchema,(0,t._)`${p}${m}`],[r.default.data,s]),f&&a.push([u.propertyName,f])}})),lu=r((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.boolOrEmptySchema=e.topBoolOrEmptySchema=void 0;var t=cu(),n=X(),r=su(),i={message:`boolean schema is false`};function a(e){let{gen:t,schema:i,validateName:a}=e;i===!1?s(e,!1):typeof i==`object`&&i.$async===!0?t.return(r.default.data):(t.assign((0,n._)`${a}.errors`,null),t.return(!0))}e.topBoolOrEmptySchema=a;function o(e,t){let{gen:n,schema:r}=e;r===!1?(n.var(t,!1),s(e)):n.var(t,!0)}e.boolOrEmptySchema=o;function s(e,n){let{gen:r,data:a}=e,o={gen:r,keyword:`false schema`,data:a,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:e};(0,t.reportError)(o,i,void 0,n)}})),uu=r((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.getRules=e.isJSONType=void 0;var t=new Set([`string`,`number`,`integer`,`boolean`,`null`,`object`,`array`]);function n(e){return typeof e==`string`&&t.has(e)}e.isJSONType=n;function r(){let e={number:{type:`number`,rules:[]},string:{type:`string`,rules:[]},array:{type:`array`,rules:[]},object:{type:`object`,rules:[]}};return{types:{...e,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},e.number,e.string,e.array,e.object],post:{rules:[]},all:{},keywords:{}}}e.getRules=r})),du=r((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.shouldUseRule=e.shouldUseGroup=e.schemaHasRulesForType=void 0;function t({schema:e,self:t},r){let i=t.RULES.types[r];return i&&i!==!0&&n(e,i)}e.schemaHasRulesForType=t;function n(e,t){return t.rules.some(t=>r(e,t))}e.shouldUseGroup=n;function r(e,t){return e[t.keyword]!==void 0||t.definition.implements?.some(t=>e[t]!==void 0)}e.shouldUseRule=r})),fu=r((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.reportTypeError=e.checkDataTypes=e.checkDataType=e.coerceAndCheckDataType=e.getJSONTypes=e.getSchemaTypes=e.DataType=void 0;var t=uu(),n=du(),r=cu(),i=X(),a=Z(),o;(function(e){e[e.Correct=0]=`Correct`,e[e.Wrong=1]=`Wrong`})(o||(e.DataType=o={}));function s(e){let t=c(e.type);if(t.includes(`null`)){if(e.nullable===!1)throw Error(`type: null contradicts nullable: false`)}else{if(!t.length&&e.nullable!==void 0)throw Error(`"nullable" cannot be used without "type"`);e.nullable===!0&&t.push(`null`)}return t}e.getSchemaTypes=s;function c(e){let n=Array.isArray(e)?e:e?[e]:[];if(n.every(t.isJSONType))return n;throw Error(`type must be JSONType or JSONType[]: `+n.join(`,`))}e.getJSONTypes=c;function l(e,t){let{gen:r,data:i,opts:a}=e,s=d(t,a.coerceTypes),c=t.length>0&&!(s.length===0&&t.length===1&&(0,n.schemaHasRulesForType)(e,t[0]));if(c){let n=h(t,i,a.strictNumbers,o.Wrong);r.if(n,()=>{s.length?f(e,t,s):_(e)})}return c}e.coerceAndCheckDataType=l;var u=new Set([`string`,`number`,`integer`,`boolean`,`null`]);function d(e,t){return t?e.filter(e=>u.has(e)||t===`array`&&e===`array`):[]}function f(e,t,n){let{gen:r,data:a,opts:o}=e,s=r.let(`dataType`,(0,i._)`typeof ${a}`),c=r.let(`coerced`,(0,i._)`undefined`);o.coerceTypes===`array`&&r.if((0,i._)`${s} == 'object' && Array.isArray(${a}) && ${a}.length == 1`,()=>r.assign(a,(0,i._)`${a}[0]`).assign(s,(0,i._)`typeof ${a}`).if(h(t,a,o.strictNumbers),()=>r.assign(c,a))),r.if((0,i._)`${c} !== undefined`);for(let e of n)(u.has(e)||e===`array`&&o.coerceTypes===`array`)&&l(e);r.else(),_(e),r.endIf(),r.if((0,i._)`${c} !== undefined`,()=>{r.assign(a,c),p(e,c)});function l(e){switch(e){case`string`:r.elseIf((0,i._)`${s} == "number" || ${s} == "boolean"`).assign(c,(0,i._)`"" + ${a}`).elseIf((0,i._)`${a} === null`).assign(c,(0,i._)`""`);return;case`number`:r.elseIf((0,i._)`${s} == "boolean" || ${a} === null - || (${s} == "string" && ${a} && ${a} == +${a})`).assign(c,(0,i._)`+${a}`);return;case`integer`:r.elseIf((0,i._)`${s} === "boolean" || ${a} === null - || (${s} === "string" && ${a} && ${a} == +${a} && !(${a} % 1))`).assign(c,(0,i._)`+${a}`);return;case`boolean`:r.elseIf((0,i._)`${a} === "false" || ${a} === 0 || ${a} === null`).assign(c,!1).elseIf((0,i._)`${a} === "true" || ${a} === 1`).assign(c,!0);return;case`null`:r.elseIf((0,i._)`${a} === "" || ${a} === 0 || ${a} === false`),r.assign(c,null);return;case`array`:r.elseIf((0,i._)`${s} === "string" || ${s} === "number" - || ${s} === "boolean" || ${a} === null`).assign(c,(0,i._)`[${a}]`)}}}function p({gen:e,parentData:t,parentDataProperty:n},r){e.if((0,i._)`${t} !== undefined`,()=>e.assign((0,i._)`${t}[${n}]`,r))}function m(e,t,n,r=o.Correct){let a=r===o.Correct?i.operators.EQ:i.operators.NEQ,s;switch(e){case`null`:return(0,i._)`${t} ${a} null`;case`array`:s=(0,i._)`Array.isArray(${t})`;break;case`object`:s=(0,i._)`${t} && typeof ${t} == "object" && !Array.isArray(${t})`;break;case`integer`:s=c((0,i._)`!(${t} % 1) && !isNaN(${t})`);break;case`number`:s=c();break;default:return(0,i._)`typeof ${t} ${a} ${e}`}return r===o.Correct?s:(0,i.not)(s);function c(e=i.nil){return(0,i.and)((0,i._)`typeof ${t} == "number"`,e,n?(0,i._)`isFinite(${t})`:i.nil)}}e.checkDataType=m;function h(e,t,n,r){if(e.length===1)return m(e[0],t,n,r);let o,s=(0,a.toHash)(e);if(s.array&&s.object){let e=(0,i._)`typeof ${t} != "object"`;o=s.null?e:(0,i._)`!${t} || ${e}`,delete s.null,delete s.array,delete s.object}else o=i.nil;s.number&&delete s.integer;for(let e in s)o=(0,i.and)(o,m(e,t,n,r));return o}e.checkDataTypes=h;var g={message:({schema:e})=>`must be ${e}`,params:({schema:e,schemaValue:t})=>typeof e==`string`?(0,i._)`{type: ${e}}`:(0,i._)`{type: ${t}}`};function _(e){let t=v(e);(0,r.reportError)(t,g)}e.reportTypeError=_;function v(e){let{gen:t,data:n,schema:r}=e,i=(0,a.schemaRefOrVal)(e,r,`type`);return{gen:t,keyword:`type`,data:n,schema:r.type,schemaCode:i,schemaValue:i,parentSchema:r,params:{},it:e}}})),pu=r((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.assignDefaults=void 0;var t=X(),n=Z();function r(e,t){let{properties:n,items:r}=e.schema;if(t===`object`&&n)for(let t in n)i(e,t,n[t].default);else t===`array`&&Array.isArray(r)&&r.forEach((t,n)=>i(e,n,t.default))}e.assignDefaults=r;function i(e,r,i){let{gen:a,compositeRule:o,data:s,opts:c}=e;if(i===void 0)return;let l=(0,t._)`${s}${(0,t.getProperty)(r)}`;if(o){(0,n.checkStrictMode)(e,`default is ignored for: ${l}`);return}let u=(0,t._)`${l} === undefined`;c.useDefaults===`empty`&&(u=(0,t._)`${u} || ${l} === null || ${l} === ""`),a.if(u,(0,t._)`${l} = ${(0,t.stringify)(i)}`)}})),mu=r((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.validateUnion=e.validateArray=e.usePattern=e.callValidateCode=e.schemaProperties=e.allSchemaProperties=e.noPropertyInData=e.propertyInData=e.isOwnProperty=e.hasPropFunc=e.reportMissingProp=e.checkMissingProp=e.checkReportMissingProp=void 0;var t=X(),n=Z(),r=su(),i=Z();function a(e,n){let{gen:r,data:i,it:a}=e;r.if(d(r,i,n,a.opts.ownProperties),()=>{e.setParams({missingProperty:(0,t._)`${n}`},!0),e.error()})}e.checkReportMissingProp=a;function o({gen:e,data:n,it:{opts:r}},i,a){return(0,t.or)(...i.map(i=>(0,t.and)(d(e,n,i,r.ownProperties),(0,t._)`${a} = ${i}`)))}e.checkMissingProp=o;function s(e,t){e.setParams({missingProperty:t},!0),e.error()}e.reportMissingProp=s;function c(e){return e.scopeValue(`func`,{ref:Object.prototype.hasOwnProperty,code:(0,t._)`Object.prototype.hasOwnProperty`})}e.hasPropFunc=c;function l(e,n,r){return(0,t._)`${c(e)}.call(${n}, ${r})`}e.isOwnProperty=l;function u(e,n,r,i){let a=(0,t._)`${n}${(0,t.getProperty)(r)} !== undefined`;return i?(0,t._)`${a} && ${l(e,n,r)}`:a}e.propertyInData=u;function d(e,n,r,i){let a=(0,t._)`${n}${(0,t.getProperty)(r)} === undefined`;return i?(0,t.or)(a,(0,t.not)(l(e,n,r))):a}e.noPropertyInData=d;function f(e){return e?Object.keys(e).filter(e=>e!==`__proto__`):[]}e.allSchemaProperties=f;function p(e,t){return f(t).filter(r=>!(0,n.alwaysValidSchema)(e,t[r]))}e.schemaProperties=p;function m({schemaCode:e,data:n,it:{gen:i,topSchemaRef:a,schemaPath:o,errorPath:s},it:c},l,u,d){let f=d?(0,t._)`${e}, ${n}, ${a}${o}`:n,p=[[r.default.instancePath,(0,t.strConcat)(r.default.instancePath,s)],[r.default.parentData,c.parentData],[r.default.parentDataProperty,c.parentDataProperty],[r.default.rootData,r.default.rootData]];c.opts.dynamicRef&&p.push([r.default.dynamicAnchors,r.default.dynamicAnchors]);let m=(0,t._)`${f}, ${i.object(...p)}`;return u===t.nil?(0,t._)`${l}(${m})`:(0,t._)`${l}.call(${u}, ${m})`}e.callValidateCode=m;var h=(0,t._)`new RegExp`;function g({gen:e,it:{opts:n}},r){let a=n.unicodeRegExp?`u`:``,{regExp:o}=n.code,s=o(r,a);return e.scopeValue(`pattern`,{key:s.toString(),ref:s,code:(0,t._)`${o.code===`new RegExp`?h:(0,i.useFunc)(e,o)}(${r}, ${a})`})}e.usePattern=g;function _(e){let{gen:r,data:i,keyword:a,it:o}=e,s=r.name(`valid`);if(o.allErrors){let e=r.let(`valid`,!0);return c(()=>r.assign(e,!1)),e}return r.var(s,!0),c(()=>r.break()),s;function c(o){let c=r.const(`len`,(0,t._)`${i}.length`);r.forRange(`i`,0,c,i=>{e.subschema({keyword:a,dataProp:i,dataPropType:n.Type.Num},s),r.if((0,t.not)(s),o)})}}e.validateArray=_;function v(e){let{gen:r,schema:i,keyword:a,it:o}=e;if(!Array.isArray(i))throw Error(`ajv implementation error`);if(i.some(e=>(0,n.alwaysValidSchema)(o,e))&&!o.opts.unevaluated)return;let s=r.let(`valid`,!1),c=r.name(`_valid`);r.block(()=>i.forEach((n,i)=>{let o=e.subschema({keyword:a,schemaProp:i,compositeRule:!0},c);r.assign(s,(0,t._)`${s} || ${c}`),e.mergeValidEvaluated(o,c)||r.if((0,t.not)(s))})),e.result(s,()=>e.reset(),()=>e.error(!0))}e.validateUnion=v})),hu=r((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.validateKeywordUsage=e.validSchemaType=e.funcKeywordCode=e.macroKeywordCode=void 0;var t=X(),n=su(),r=mu(),i=cu();function a(e,n){let{gen:r,keyword:i,schema:a,parentSchema:o,it:s}=e,c=n.macro.call(s.self,a,o,s),l=u(r,i,c);s.opts.validateSchema!==!1&&s.self.validateSchema(c,!0);let d=r.name(`valid`);e.subschema({schema:c,schemaPath:t.nil,errSchemaPath:`${s.errSchemaPath}/${i}`,topSchemaRef:l,compositeRule:!0},d),e.pass(d,()=>e.error(!0))}e.macroKeywordCode=a;function o(e,i){let{gen:a,keyword:o,schema:d,parentSchema:f,$data:p,it:m}=e;l(m,i);let h=u(a,o,!p&&i.compile?i.compile.call(m.self,d,f,m):i.validate),g=a.let(`valid`);e.block$data(g,_),e.ok(i.valid??g);function _(){if(i.errors===!1)b(),i.modifying&&s(e),x(()=>e.error());else{let t=i.async?v():y();i.modifying&&s(e),x(()=>c(e,t))}}function v(){let e=a.let(`ruleErrs`,null);return a.try(()=>b((0,t._)`await `),n=>a.assign(g,!1).if((0,t._)`${n} instanceof ${m.ValidationError}`,()=>a.assign(e,(0,t._)`${n}.errors`),()=>a.throw(n))),e}function y(){let e=(0,t._)`${h}.errors`;return a.assign(e,null),b(t.nil),e}function b(o=i.async?(0,t._)`await `:t.nil){let s=m.opts.passContext?n.default.this:n.default.self,c=!(`compile`in i&&!p||i.schema===!1);a.assign(g,(0,t._)`${o}${(0,r.callValidateCode)(e,h,s,c)}`,i.modifying)}function x(e){a.if((0,t.not)(i.valid??g),e)}}e.funcKeywordCode=o;function s(e){let{gen:n,data:r,it:i}=e;n.if(i.parentData,()=>n.assign(r,(0,t._)`${i.parentData}[${i.parentDataProperty}]`))}function c(e,r){let{gen:a}=e;a.if((0,t._)`Array.isArray(${r})`,()=>{a.assign(n.default.vErrors,(0,t._)`${n.default.vErrors} === null ? ${r} : ${n.default.vErrors}.concat(${r})`).assign(n.default.errors,(0,t._)`${n.default.vErrors}.length`),(0,i.extendErrors)(e)},()=>e.error())}function l({schemaEnv:e},t){if(t.async&&!e.$async)throw Error(`async keyword in sync schema`)}function u(e,n,r){if(r===void 0)throw Error(`keyword "${n}" failed to compile`);return e.scopeValue(`keyword`,typeof r==`function`?{ref:r}:{ref:r,code:(0,t.stringify)(r)})}function d(e,t,n=!1){return!t.length||t.some(t=>t===`array`?Array.isArray(e):t===`object`?e&&typeof e==`object`&&!Array.isArray(e):typeof e==t||n&&e===void 0)}e.validSchemaType=d;function f({schema:e,opts:t,self:n,errSchemaPath:r},i,a){if(Array.isArray(i.keyword)?!i.keyword.includes(a):i.keyword!==a)throw Error(`ajv implementation error`);let o=i.dependencies;if(o?.some(t=>!Object.prototype.hasOwnProperty.call(e,t)))throw Error(`parent schema must have dependencies of ${a}: ${o.join(`,`)}`);if(i.validateSchema&&!i.validateSchema(e[a])){let e=`keyword "${a}" value is invalid at path "${r}": `+n.errorsText(i.validateSchema.errors);if(t.validateSchema===`log`)n.logger.error(e);else throw Error(e)}}e.validateKeywordUsage=f})),gu=r((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.extendSubschemaMode=e.extendSubschemaData=e.getSubschema=void 0;var t=X(),n=Z();function r(e,{keyword:r,schemaProp:i,schema:a,schemaPath:o,errSchemaPath:s,topSchemaRef:c}){if(r!==void 0&&a!==void 0)throw Error(`both "keyword" and "schema" passed, only one allowed`);if(r!==void 0){let a=e.schema[r];return i===void 0?{schema:a,schemaPath:(0,t._)`${e.schemaPath}${(0,t.getProperty)(r)}`,errSchemaPath:`${e.errSchemaPath}/${r}`}:{schema:a[i],schemaPath:(0,t._)`${e.schemaPath}${(0,t.getProperty)(r)}${(0,t.getProperty)(i)}`,errSchemaPath:`${e.errSchemaPath}/${r}/${(0,n.escapeFragment)(i)}`}}if(a!==void 0){if(o===void 0||s===void 0||c===void 0)throw Error(`"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"`);return{schema:a,schemaPath:o,topSchemaRef:c,errSchemaPath:s}}throw Error(`either "keyword" or "schema" must be passed`)}e.getSubschema=r;function i(e,r,{dataProp:i,dataPropType:a,data:o,dataTypes:s,propertyName:c}){if(o!==void 0&&i!==void 0)throw Error(`both "data" and "dataProp" passed, only one allowed`);let{gen:l}=r;if(i!==void 0){let{errorPath:o,dataPathArr:s,opts:c}=r;u(l.let(`data`,(0,t._)`${r.data}${(0,t.getProperty)(i)}`,!0)),e.errorPath=(0,t.str)`${o}${(0,n.getErrorPath)(i,a,c.jsPropertySyntax)}`,e.parentDataProperty=(0,t._)`${i}`,e.dataPathArr=[...s,e.parentDataProperty]}o!==void 0&&(u(o instanceof t.Name?o:l.let(`data`,o,!0)),c!==void 0&&(e.propertyName=c)),s&&(e.dataTypes=s);function u(t){e.data=t,e.dataLevel=r.dataLevel+1,e.dataTypes=[],r.definedProperties=new Set,e.parentData=r.data,e.dataNames=[...r.dataNames,t]}}e.extendSubschemaData=i;function a(e,{jtdDiscriminator:t,jtdMetadata:n,compositeRule:r,createErrors:i,allErrors:a}){r!==void 0&&(e.compositeRule=r),i!==void 0&&(e.createErrors=i),a!==void 0&&(e.allErrors=a),e.jtdDiscriminator=t,e.jtdMetadata=n}e.extendSubschemaMode=a})),_u=r(((e,t)=>{t.exports=function e(t,n){if(t===n)return!0;if(t&&n&&typeof t==`object`&&typeof n==`object`){if(t.constructor!==n.constructor)return!1;var r,i,a;if(Array.isArray(t)){if(r=t.length,r!=n.length)return!1;for(i=r;i--!==0;)if(!e(t[i],n[i]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if(a=Object.keys(t),r=a.length,r!==Object.keys(n).length)return!1;for(i=r;i--!==0;)if(!Object.prototype.hasOwnProperty.call(n,a[i]))return!1;for(i=r;i--!==0;){var o=a[i];if(!e(t[o],n[o]))return!1}return!0}return t!==t&&n!==n}})),vu=r(((e,t)=>{var n=t.exports=function(e,t,n){typeof t==`function`&&(n=t,t={}),n=t.cb||n;var i=typeof n==`function`?n:n.pre||function(){},a=n.post||function(){};r(t,i,a,e,``,e)};n.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0},n.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0},n.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0},n.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0};function r(e,t,a,o,s,c,l,u,d,f){if(o&&typeof o==`object`&&!Array.isArray(o)){for(var p in t(o,s,c,l,u,d,f),o){var m=o[p];if(Array.isArray(m)){if(p in n.arrayKeywords)for(var h=0;h{Object.defineProperty(e,"__esModule",{value:!0}),e.getSchemaRefs=e.resolveUrl=e.normalizeId=e._getFullPath=e.getFullPath=e.inlineRef=void 0;var t=Z(),n=_u(),r=vu(),i=new Set([`type`,`format`,`pattern`,`maxLength`,`minLength`,`maxProperties`,`minProperties`,`maxItems`,`minItems`,`maximum`,`minimum`,`uniqueItems`,`multipleOf`,`required`,`enum`,`const`]);function a(e,t=!0){return typeof e==`boolean`?!0:t===!0?!s(e):t?c(e)<=t:!1}e.inlineRef=a;var o=new Set([`$ref`,`$recursiveRef`,`$recursiveAnchor`,`$dynamicRef`,`$dynamicAnchor`]);function s(e){for(let t in e){if(o.has(t))return!0;let n=e[t];if(Array.isArray(n)&&n.some(s)||typeof n==`object`&&s(n))return!0}return!1}function c(e){let n=0;for(let r in e)if(r===`$ref`||(n++,!i.has(r)&&(typeof e[r]==`object`&&(0,t.eachItem)(e[r],e=>n+=c(e)),n===1/0)))return 1/0;return n}function l(e,t=``,n){return n!==!1&&(t=f(t)),u(e,e.parse(t))}e.getFullPath=l;function u(e,t){return e.serialize(t).split(`#`)[0]+`#`}e._getFullPath=u;var d=/#\/?$/;function f(e){return e?e.replace(d,``):``}e.normalizeId=f;function p(e,t,n){return n=f(n),e.resolve(t,n)}e.resolveUrl=p;var m=/^[a-z_][-a-z0-9._]*$/i;function h(e,t){if(typeof e==`boolean`)return{};let{schemaId:i,uriResolver:a}=this.opts,o=f(e[i]||t),s={"":o},c=l(a,o,!1),u={},d=new Set;return r(e,{allKeys:!0},(e,t,n,r)=>{if(r===void 0)return;let a=c+t,o=s[r];typeof e[i]==`string`&&(o=l.call(this,e[i])),g.call(this,e.$anchor),g.call(this,e.$dynamicAnchor),s[t]=o;function l(t){let n=this.opts.uriResolver.resolve;if(t=f(o?n(o,t):t),d.has(t))throw h(t);d.add(t);let r=this.refs[t];return typeof r==`string`&&(r=this.refs[r]),typeof r==`object`?p(e,r.schema,t):t!==f(a)&&(t[0]===`#`?(p(e,u[t],t),u[t]=e):this.refs[t]=a),t}function g(e){if(typeof e==`string`){if(!m.test(e))throw Error(`invalid anchor "${e}"`);l.call(this,`#${e}`)}}}),u;function p(e,t,r){if(t!==void 0&&!n(e,t))throw h(r)}function h(e){return Error(`reference "${e}" resolves to more than one schema`)}}e.getSchemaRefs=h})),bu=r((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.getData=e.KeywordCxt=e.validateFunctionCode=void 0;var t=lu(),n=fu(),r=du(),i=fu(),a=pu(),o=hu(),s=gu(),c=X(),l=su(),u=yu(),d=Z(),f=cu();function p(e){if(S(e)&&(ee(e),x(e))){_(e);return}m(e,()=>(0,t.topBoolOrEmptySchema)(e))}e.validateFunctionCode=p;function m({gen:e,validateName:t,schema:n,schemaEnv:r,opts:i},a){i.code.es5?e.func(t,(0,c._)`${l.default.data}, ${l.default.valCxt}`,r.$async,()=>{e.code((0,c._)`"use strict"; ${y(n,i)}`),g(e,i),e.code(a)}):e.func(t,(0,c._)`${l.default.data}, ${h(i)}`,r.$async,()=>e.code(y(n,i)).code(a))}function h(e){return(0,c._)`{${l.default.instancePath}="", ${l.default.parentData}, ${l.default.parentDataProperty}, ${l.default.rootData}=${l.default.data}${e.dynamicRef?(0,c._)`, ${l.default.dynamicAnchors}={}`:c.nil}}={}`}function g(e,t){e.if(l.default.valCxt,()=>{e.var(l.default.instancePath,(0,c._)`${l.default.valCxt}.${l.default.instancePath}`),e.var(l.default.parentData,(0,c._)`${l.default.valCxt}.${l.default.parentData}`),e.var(l.default.parentDataProperty,(0,c._)`${l.default.valCxt}.${l.default.parentDataProperty}`),e.var(l.default.rootData,(0,c._)`${l.default.valCxt}.${l.default.rootData}`),t.dynamicRef&&e.var(l.default.dynamicAnchors,(0,c._)`${l.default.valCxt}.${l.default.dynamicAnchors}`)},()=>{e.var(l.default.instancePath,(0,c._)`""`),e.var(l.default.parentData,(0,c._)`undefined`),e.var(l.default.parentDataProperty,(0,c._)`undefined`),e.var(l.default.rootData,l.default.data),t.dynamicRef&&e.var(l.default.dynamicAnchors,(0,c._)`{}`)})}function _(e){let{schema:t,opts:n,gen:r}=e;m(e,()=>{n.$comment&&t.$comment&&ie(e),re(e),r.let(l.default.vErrors,null),r.let(l.default.errors,0),n.unevaluated&&v(e),te(e),ae(e)})}function v(e){let{gen:t,validateName:n}=e;e.evaluated=t.const(`evaluated`,(0,c._)`${n}.evaluated`),t.if((0,c._)`${e.evaluated}.dynamicProps`,()=>t.assign((0,c._)`${e.evaluated}.props`,(0,c._)`undefined`)),t.if((0,c._)`${e.evaluated}.dynamicItems`,()=>t.assign((0,c._)`${e.evaluated}.items`,(0,c._)`undefined`))}function y(e,t){let n=typeof e==`object`&&e[t.schemaId];return n&&(t.code.source||t.code.process)?(0,c._)`/*# sourceURL=${n} */`:c.nil}function b(e,n){if(S(e)&&(ee(e),x(e))){C(e,n);return}(0,t.boolOrEmptySchema)(e,n)}function x({schema:e,self:t}){if(typeof e==`boolean`)return!e;for(let n in e)if(t.RULES.all[n])return!0;return!1}function S(e){return typeof e.schema!=`boolean`}function C(e,t){let{schema:n,gen:r,opts:i}=e;i.$comment&&n.$comment&&ie(e),w(e),T(e);let a=r.const(`_errs`,l.default.errors);te(e,a),r.var(t,(0,c._)`${a} === ${l.default.errors}`)}function ee(e){(0,d.checkUnknownRules)(e),ne(e)}function te(e,t){if(e.opts.jtd)return se(e,[],!1,t);let r=(0,n.getSchemaTypes)(e.schema);se(e,r,!(0,n.coerceAndCheckDataType)(e,r),t)}function ne(e){let{schema:t,errSchemaPath:n,opts:r,self:i}=e;t.$ref&&r.ignoreKeywordsWithRef&&(0,d.schemaHasRulesButRef)(t,i.RULES)&&i.logger.warn(`$ref: keywords ignored in schema at path "${n}"`)}function re(e){let{schema:t,opts:n}=e;t.default!==void 0&&n.useDefaults&&n.strictSchema&&(0,d.checkStrictMode)(e,`default is ignored in the schema root`)}function w(e){let t=e.schema[e.opts.schemaId];t&&(e.baseId=(0,u.resolveUrl)(e.opts.uriResolver,e.baseId,t))}function T(e){if(e.schema.$async&&!e.schemaEnv.$async)throw Error(`async schema in sync schema`)}function ie({gen:e,schemaEnv:t,schema:n,errSchemaPath:r,opts:i}){let a=n.$comment;if(i.$comment===!0)e.code((0,c._)`${l.default.self}.logger.log(${a})`);else if(typeof i.$comment==`function`){let n=(0,c.str)`${r}/$comment`,i=e.scopeValue(`root`,{ref:t.root});e.code((0,c._)`${l.default.self}.opts.$comment(${a}, ${n}, ${i}.schema)`)}}function ae(e){let{gen:t,schemaEnv:n,validateName:r,ValidationError:i,opts:a}=e;n.$async?t.if((0,c._)`${l.default.errors} === 0`,()=>t.return(l.default.data),()=>t.throw((0,c._)`new ${i}(${l.default.vErrors})`)):(t.assign((0,c._)`${r}.errors`,l.default.vErrors),a.unevaluated&&oe(e),t.return((0,c._)`${l.default.errors} === 0`))}function oe({gen:e,evaluated:t,props:n,items:r}){n instanceof c.Name&&e.assign((0,c._)`${t}.props`,n),r instanceof c.Name&&e.assign((0,c._)`${t}.items`,r)}function se(e,t,n,a){let{gen:o,schema:s,data:u,allErrors:f,opts:p,self:m}=e,{RULES:h}=m;if(s.$ref&&(p.ignoreKeywordsWithRef||!(0,d.schemaHasRulesButRef)(s,h))){o.block(()=>_e(e,`$ref`,h.all.$ref.definition));return}p.jtd||le(e,t),o.block(()=>{for(let e of h.rules)g(e);g(h.post)});function g(d){(0,r.shouldUseGroup)(s,d)&&(d.type?(o.if((0,i.checkDataType)(d.type,u,p.strictNumbers)),ce(e,d),t.length===1&&t[0]===d.type&&n&&(o.else(),(0,i.reportTypeError)(e)),o.endIf()):ce(e,d),f||o.if((0,c._)`${l.default.errors} === ${a||0}`))}}function ce(e,t){let{gen:n,schema:i,opts:{useDefaults:o}}=e;o&&(0,a.assignDefaults)(e,t.type),n.block(()=>{for(let n of t.rules)(0,r.shouldUseRule)(i,n)&&_e(e,n.keyword,n.definition,t.type)})}function le(e,t){e.schemaEnv.meta||!e.opts.strictTypes||(ue(e,t),e.opts.allowUnionTypes||de(e,t),fe(e,e.dataTypes))}function ue(e,t){if(t.length){if(!e.dataTypes.length){e.dataTypes=t;return}t.forEach(t=>{me(e.dataTypes,t)||he(e,`type "${t}" not allowed by context "${e.dataTypes.join(`,`)}"`)}),E(e,t)}}function de(e,t){t.length>1&&!(t.length===2&&t.includes(`null`))&&he(e,`use allowUnionTypes to allow union type keyword`)}function fe(e,t){let n=e.self.RULES.all;for(let i in n){let a=n[i];if(typeof a==`object`&&(0,r.shouldUseRule)(e.schema,a)){let{type:n}=a.definition;n.length&&!n.some(e=>pe(t,e))&&he(e,`missing type "${n.join(`,`)}" for keyword "${i}"`)}}}function pe(e,t){return e.includes(t)||t===`number`&&e.includes(`integer`)}function me(e,t){return e.includes(t)||t===`integer`&&e.includes(`number`)}function E(e,t){let n=[];for(let r of e.dataTypes)me(t,r)?n.push(r):t.includes(`integer`)&&r===`number`&&n.push(`integer`);e.dataTypes=n}function he(e,t){let n=e.schemaEnv.baseId+e.errSchemaPath;t+=` at "${n}" (strictTypes)`,(0,d.checkStrictMode)(e,t,e.opts.strictTypes)}var ge=class{constructor(e,t,n){if((0,o.validateKeywordUsage)(e,t,n),this.gen=e.gen,this.allErrors=e.allErrors,this.keyword=n,this.data=e.data,this.schema=e.schema[n],this.$data=t.$data&&e.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,d.schemaRefOrVal)(e,this.schema,n,this.$data),this.schemaType=t.schemaType,this.parentSchema=e.schema,this.params={},this.it=e,this.def=t,this.$data)this.schemaCode=e.gen.const(`vSchema`,be(this.$data,e));else if(this.schemaCode=this.schemaValue,!(0,o.validSchemaType)(this.schema,t.schemaType,t.allowUndefined))throw Error(`${n} value must be ${JSON.stringify(t.schemaType)}`);(`code`in t?t.trackErrors:t.errors!==!1)&&(this.errsCount=e.gen.const(`_errs`,l.default.errors))}result(e,t,n){this.failResult((0,c.not)(e),t,n)}failResult(e,t,n){this.gen.if(e),n?n():this.error(),t?(this.gen.else(),t(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(e,t){this.failResult((0,c.not)(e),void 0,t)}fail(e){if(e===void 0){this.error(),this.allErrors||this.gen.if(!1);return}this.gen.if(e),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(e){if(!this.$data)return this.fail(e);let{schemaCode:t}=this;this.fail((0,c._)`${t} !== undefined && (${(0,c.or)(this.invalid$data(),e)})`)}error(e,t,n){if(t){this.setParams(t),this._error(e,n),this.setParams({});return}this._error(e,n)}_error(e,t){(e?f.reportExtraError:f.reportError)(this,this.def.error,t)}$dataError(){(0,f.reportError)(this,this.def.$dataError||f.keyword$DataError)}reset(){if(this.errsCount===void 0)throw Error(`add "trackErrors" to keyword definition`);(0,f.resetErrorsCount)(this.gen,this.errsCount)}ok(e){this.allErrors||this.gen.if(e)}setParams(e,t){t?Object.assign(this.params,e):this.params=e}block$data(e,t,n=c.nil){this.gen.block(()=>{this.check$data(e,n),t()})}check$data(e=c.nil,t=c.nil){if(!this.$data)return;let{gen:n,schemaCode:r,schemaType:i,def:a}=this;n.if((0,c.or)((0,c._)`${r} === undefined`,t)),e!==c.nil&&n.assign(e,!0),(i.length||a.validateSchema)&&(n.elseIf(this.invalid$data()),this.$dataError(),e!==c.nil&&n.assign(e,!1)),n.else()}invalid$data(){let{gen:e,schemaCode:t,schemaType:n,def:r,it:a}=this;return(0,c.or)(o(),s());function o(){if(n.length){if(!(t instanceof c.Name))throw Error(`ajv implementation error`);let e=Array.isArray(n)?n:[n];return(0,c._)`${(0,i.checkDataTypes)(e,t,a.opts.strictNumbers,i.DataType.Wrong)}`}return c.nil}function s(){if(r.validateSchema){let n=e.scopeValue(`validate$data`,{ref:r.validateSchema});return(0,c._)`!${n}(${t})`}return c.nil}}subschema(e,t){let n=(0,s.getSubschema)(this.it,e);(0,s.extendSubschemaData)(n,this.it,e),(0,s.extendSubschemaMode)(n,e);let r={...this.it,...n,items:void 0,props:void 0};return b(r,t),r}mergeEvaluated(e,t){let{it:n,gen:r}=this;n.opts.unevaluated&&(n.props!==!0&&e.props!==void 0&&(n.props=d.mergeEvaluated.props(r,e.props,n.props,t)),n.items!==!0&&e.items!==void 0&&(n.items=d.mergeEvaluated.items(r,e.items,n.items,t)))}mergeValidEvaluated(e,t){let{it:n,gen:r}=this;if(n.opts.unevaluated&&(n.props!==!0||n.items!==!0))return r.if(t,()=>this.mergeEvaluated(e,c.Name)),!0}};e.KeywordCxt=ge;function _e(e,t,n,r){let i=new ge(e,n,t);`code`in n?n.code(i,r):i.$data&&n.validate?(0,o.funcKeywordCode)(i,n):`macro`in n?(0,o.macroKeywordCode)(i,n):(n.compile||n.validate)&&(0,o.funcKeywordCode)(i,n)}var ve=/^\/(?:[^~]|~0|~1)*$/,ye=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function be(e,{dataLevel:t,dataNames:n,dataPathArr:r}){let i,a;if(e===``)return l.default.rootData;if(e[0]===`/`){if(!ve.test(e))throw Error(`Invalid JSON-pointer: ${e}`);i=e,a=l.default.rootData}else{let o=ye.exec(e);if(!o)throw Error(`Invalid JSON-pointer: ${e}`);let s=+o[1];if(i=o[2],i===`#`){if(s>=t)throw Error(u(`property/index`,s));return r[t-s]}if(s>t)throw Error(u(`data`,s));if(a=n[t-s],!i)return a}let o=a,s=i.split(`/`);for(let e of s)e&&(a=(0,c._)`${a}${(0,c.getProperty)((0,d.unescapeJsonPointer)(e))}`,o=(0,c._)`${o} && ${a}`);return o;function u(e,n){return`Cannot access ${e} ${n} levels up, current level is ${t}`}}e.getData=be})),xu=r((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=class extends Error{constructor(e){super(`validation failed`),this.errors=e,this.ajv=this.validation=!0}}})),Su=r((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=yu();e.default=class extends Error{constructor(e,n,r,i){super(i||`can't resolve reference ${r} from id ${n}`),this.missingRef=(0,t.resolveUrl)(e,n,r),this.missingSchema=(0,t.normalizeId)((0,t.getFullPath)(e,this.missingRef))}}})),Cu=r((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.resolveSchema=e.getCompilingSchema=e.resolveRef=e.compileSchema=e.SchemaEnv=void 0;var t=X(),n=xu(),r=su(),i=yu(),a=Z(),o=bu(),s=class{constructor(e){this.refs={},this.dynamicAnchors={};let t;typeof e.schema==`object`&&(t=e.schema),this.schema=e.schema,this.schemaId=e.schemaId,this.root=e.root||this,this.baseId=e.baseId??(0,i.normalizeId)(t?.[e.schemaId||`$id`]),this.schemaPath=e.schemaPath,this.localRefs=e.localRefs,this.meta=e.meta,this.$async=t?.$async,this.refs={}}};e.SchemaEnv=s;function c(e){let a=d.call(this,e);if(a)return a;let s=(0,i.getFullPath)(this.opts.uriResolver,e.root.baseId),{es5:c,lines:l}=this.opts.code,{ownProperties:u}=this.opts,f=new t.CodeGen(this.scope,{es5:c,lines:l,ownProperties:u}),p;e.$async&&(p=f.scopeValue(`Error`,{ref:n.default,code:(0,t._)`require("ajv/dist/runtime/validation_error").default`}));let m=f.scopeName(`validate`);e.validateName=m;let h={gen:f,allErrors:this.opts.allErrors,data:r.default.data,parentData:r.default.parentData,parentDataProperty:r.default.parentDataProperty,dataNames:[r.default.data],dataPathArr:[t.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:f.scopeValue(`schema`,this.opts.code.source===!0?{ref:e.schema,code:(0,t.stringify)(e.schema)}:{ref:e.schema}),validateName:m,ValidationError:p,schema:e.schema,schemaEnv:e,rootId:s,baseId:e.baseId||s,schemaPath:t.nil,errSchemaPath:e.schemaPath||(this.opts.jtd?``:`#`),errorPath:(0,t._)`""`,opts:this.opts,self:this},g;try{this._compilations.add(e),(0,o.validateFunctionCode)(h),f.optimize(this.opts.code.optimize);let n=f.toString();g=`${f.scopeRefs(r.default.scope)}return ${n}`,this.opts.code.process&&(g=this.opts.code.process(g,e));let i=Function(`${r.default.self}`,`${r.default.scope}`,g)(this,this.scope.get());if(this.scope.value(m,{ref:i}),i.errors=null,i.schema=e.schema,i.schemaEnv=e,e.$async&&(i.$async=!0),this.opts.code.source===!0&&(i.source={validateName:m,validateCode:n,scopeValues:f._values}),this.opts.unevaluated){let{props:e,items:n}=h;i.evaluated={props:e instanceof t.Name?void 0:e,items:n instanceof t.Name?void 0:n,dynamicProps:e instanceof t.Name,dynamicItems:n instanceof t.Name},i.source&&(i.source.evaluated=(0,t.stringify)(i.evaluated))}return e.validate=i,e}catch(t){throw delete e.validate,delete e.validateName,g&&this.logger.error(`Error compiling schema, function code:`,g),t}finally{this._compilations.delete(e)}}e.compileSchema=c;function l(e,t,n){n=(0,i.resolveUrl)(this.opts.uriResolver,t,n);let r=e.refs[n];if(r)return r;let a=p.call(this,e,n);if(a===void 0){let r=e.localRefs?.[n],{schemaId:i}=this.opts;r&&(a=new s({schema:r,schemaId:i,root:e,baseId:t}))}if(a!==void 0)return e.refs[n]=u.call(this,a)}e.resolveRef=l;function u(e){return(0,i.inlineRef)(e.schema,this.opts.inlineRefs)?e.schema:e.validate?e:c.call(this,e)}function d(e){for(let t of this._compilations)if(f(t,e))return t}e.getCompilingSchema=d;function f(e,t){return e.schema===t.schema&&e.root===t.root&&e.baseId===t.baseId}function p(e,t){let n;for(;typeof(n=this.refs[t])==`string`;)t=n;return n||this.schemas[t]||m.call(this,e,t)}function m(e,t){let n=this.opts.uriResolver.parse(t),r=(0,i._getFullPath)(this.opts.uriResolver,n),a=(0,i.getFullPath)(this.opts.uriResolver,e.baseId,void 0);if(Object.keys(e.schema).length>0&&r===a)return g.call(this,n,e);let o=(0,i.normalizeId)(r),l=this.refs[o]||this.schemas[o];if(typeof l==`string`){let t=m.call(this,e,l);return typeof t?.schema==`object`?g.call(this,n,t):void 0}if(typeof l?.schema==`object`){if(l.validate||c.call(this,l),o===(0,i.normalizeId)(t)){let{schema:t}=l,{schemaId:n}=this.opts,r=t[n];return r&&(a=(0,i.resolveUrl)(this.opts.uriResolver,a,r)),new s({schema:t,schemaId:n,root:e,baseId:a})}return g.call(this,n,l)}}e.resolveSchema=m;var h=new Set([`properties`,`patternProperties`,`enum`,`dependencies`,`definitions`]);function g(e,{baseId:t,schema:n,root:r}){if(e.fragment?.[0]!==`/`)return;for(let r of e.fragment.slice(1).split(`/`)){if(typeof n==`boolean`)return;let e=n[(0,a.unescapeFragment)(r)];if(e===void 0)return;n=e;let o=typeof n==`object`&&n[this.opts.schemaId];!h.has(r)&&o&&(t=(0,i.resolveUrl)(this.opts.uriResolver,t,o))}let o;if(typeof n!=`boolean`&&n.$ref&&!(0,a.schemaHasRulesButRef)(n,this.RULES)){let e=(0,i.resolveUrl)(this.opts.uriResolver,t,n.$ref);o=m.call(this,r,e)}let{schemaId:c}=this.opts;if(o||=new s({schema:n,schemaId:c,root:r,baseId:t}),o.schema!==o.root.schema)return o}})),wu=o({$id:()=>Tu,additionalProperties:()=>!1,default:()=>Au,description:()=>Eu,properties:()=>ku,required:()=>Ou,type:()=>Du}),Tu,Eu,Du,Ou,ku,Au,ju=s((()=>{Tu=`https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#`,Eu=`Meta-schema for $data reference (JSON AnySchema extension proposal)`,Du=`object`,Ou=[`$data`],ku={$data:{type:`string`,anyOf:[{format:`relative-json-pointer`},{format:`json-pointer`}]}},Au={$id:Tu,description:Eu,type:Du,required:Ou,properties:ku,additionalProperties:!1}})),Mu=r(((e,t)=>{var n=RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu),r=RegExp.prototype.test.bind(/^(?:(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)$/u),i=RegExp.prototype.test.bind(/^[\da-f]{2}$/iu),a=RegExp.prototype.test.bind(/^[\da-z\-._~]$/iu),o=RegExp.prototype.test.bind(/^[\da-z\-._~!$&'()*+,;=:@/]$/iu);function s(e){let t=``,n=0,r=0;for(r=0;r=48&&n<=57||n>=65&&n<=70||n>=97&&n<=102))return``;t+=e[r];break}for(r+=1;r=48&&n<=57||n>=65&&n<=70||n>=97&&n<=102))return``;t+=e[r]}return t}var c=RegExp.prototype.test.bind(/[^!"$&'()*+,\-.;=_`a-z{}~]/u);function l(e){return e.length=0,!0}function u(e,t,n){if(e.length){let r=s(e);if(r!==``)t.push(r);else return n.error=!0,!1;e.length=0}return!0}function d(e){let t=0,n={error:!1,address:``,zone:``},r=[],i=[],a=!1,o=!1,c=u;for(let s=0;s7){n.error=!0;break}s>0&&e[s-1]===`:`&&(a=!0),r.push(`:`);continue}if(u===`%`){if(!c(i,r,n))break;c=l}else{i.push(u);continue}}}return i.length&&(c===l?n.zone=i.join(``):o?r.push(i.join(``)):r.push(s(i))),n.address=r.join(``),n}function f(e){if(p(e,`:`)<2)return{host:e,isIPV6:!1};let t=d(e);if(t.error)return{host:e,isIPV6:!1};{let e=t.address,n=t.address;return t.zone&&(e+=`%`+t.zone,n+=`%25`+t.zone),{host:e,isIPV6:!0,escapedHost:n}}}function p(e,t){let n=0;for(let r=0;rh[e])}function y(e,t=!1){if(e.indexOf(`%`)===-1)return e;let n=``;for(let r=0;r{var{isUUID:n}=Mu(),r=/([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu,i=[`http`,`https`,`ws`,`wss`,`urn`,`urn:uuid`];function a(e){return i.indexOf(e)!==-1}function o(e){return e.secure===!0?!0:e.secure===!1?!1:e.scheme?e.scheme.length===3&&(e.scheme[0]===`w`||e.scheme[0]===`W`)&&(e.scheme[1]===`s`||e.scheme[1]===`S`)&&(e.scheme[2]===`s`||e.scheme[2]===`S`):!1}function s(e){return e.host||(e.error=e.error||`HTTP URIs must have a host.`),e}function c(e){let t=String(e.scheme).toLowerCase()===`https`;return(e.port===(t?443:80)||e.port===``)&&(e.port=void 0),e.path||=`/`,e}function l(e){return e.secure=o(e),e.resourceName=(e.path||`/`)+(e.query?`?`+e.query:``),e.path=void 0,e.query=void 0,e}function u(e){if((e.port===(o(e)?443:80)||e.port===``)&&(e.port=void 0),typeof e.secure==`boolean`&&(e.scheme=e.secure?`wss`:`ws`,e.secure=void 0),e.resourceName){let[t,n]=e.resourceName.split(`?`);e.path=t&&t!==`/`?t:void 0,e.query=n,e.resourceName=void 0}return e.fragment=void 0,e}function d(e,t){if(!e.path)return e.error=`URN can not be parsed`,e;let n=e.path.match(r);if(n){let r=t.scheme||e.scheme||`urn`;e.nid=n[1].toLowerCase(),e.nss=n[2];let i=y(`${r}:${t.nid||e.nid}`);e.path=void 0,i&&(e=i.parse(e,t))}else e.error=e.error||`URN can not be parsed.`;return e}function f(e,t){if(e.nid===void 0)throw Error(`URN without nid cannot be serialized`);let n=t.scheme||e.scheme||`urn`,r=e.nid.toLowerCase(),i=y(`${n}:${t.nid||r}`);i&&(e=i.serialize(e,t));let a=e,o=e.nss;return a.path=`${r||t.nid}:${o}`,t.skipEscape=!0,a}function p(e,t){let r=e;return r.uuid=r.nss,r.nss=void 0,!t.tolerant&&(!r.uuid||!n(r.uuid))&&(r.error=r.error||`UUID is not valid.`),r}function m(e){let t=e;return t.nss=(e.uuid||``).toLowerCase(),t}var h={scheme:`http`,domainHost:!0,parse:s,serialize:c},g={scheme:`https`,domainHost:h.domainHost,parse:s,serialize:c},_={scheme:`ws`,domainHost:!0,parse:l,serialize:u},v={http:h,https:g,ws:_,wss:{scheme:`wss`,domainHost:_.domainHost,parse:_.parse,serialize:_.serialize},urn:{scheme:`urn`,parse:d,serialize:f,skipNormalize:!0},"urn:uuid":{scheme:`urn:uuid`,parse:p,serialize:m,skipNormalize:!0}};Object.setPrototypeOf(v,null);function y(e){return e&&(v[e]||v[e.toLowerCase()])||void 0}t.exports={wsIsSecure:o,SCHEMES:v,isValidSchemeName:a,getSchemeHandler:y}})),Pu=r(((e,t)=>{var{normalizeIPv6:n,removeDotSegments:r,recomposeAuthority:i,normalizePercentEncoding:a,normalizePathEncoding:o,escapePreservingEscapes:s,reescapeHostDelimiters:c,isIPv4:l,nonSimpleDomain:u}=Mu(),{SCHEMES:d,getSchemeHandler:f}=Nu();function p(e,t){return typeof e==`string`?e=ee(e,t):typeof e==`object`&&(e=C(_(e,t),t)),e}function m(e,t,n){let r=n?Object.assign({scheme:`null`},n):{scheme:`null`},{parsed:i,malformedAuthorityOrPort:a}=S(e,r),{parsed:o,malformedAuthorityOrPort:s}=S(t,r);if(a||s)throw Error(i.error||o.error||`URI is malformed.`);let c=h(i,o,r,!0);return r.skipEscape=!0,_(c,r)}function h(e,t,n,i){let a={};return i||(e=C(_(e,n),n),t=C(_(t,n),n)),n||={},!n.tolerant&&t.scheme?(a.scheme=t.scheme,a.userinfo=t.userinfo,a.host=t.host,a.port=t.port,a.path=r(t.path||``),a.query=t.query):(t.userinfo!==void 0||t.host!==void 0||t.port!==void 0?(a.userinfo=t.userinfo,a.host=t.host,a.port=t.port,a.path=r(t.path||``),a.query=t.query):(t.path?(t.path[0]===`/`?a.path=r(t.path):(a.path=(e.userinfo!==void 0||e.host!==void 0||e.port!==void 0)&&!e.path?`/`+t.path:e.path?e.path.slice(0,e.path.lastIndexOf(`/`)+1)+t.path:t.path,a.path=r(a.path)),a.query=t.query):(a.path=e.path,a.query=t.query===void 0?e.query:t.query),a.userinfo=e.userinfo,a.host=e.host,a.port=e.port),a.scheme=e.scheme),a.fragment=t.fragment,a}function g(e,t,n){let r=ne(e,n),i=ne(t,n);return r!==void 0&&i!==void 0&&r.toLowerCase()===i.toLowerCase()}function _(e,t){let n={host:e.host,scheme:e.scheme,userinfo:e.userinfo,port:e.port,path:e.path,query:e.query,nid:e.nid,nss:e.nss,uuid:e.uuid,fragment:e.fragment,reference:e.reference,resourceName:e.resourceName,secure:e.secure,error:``},o=Object.assign({},t),c=[],l=f(o.scheme||n.scheme);l&&l.serialize&&l.serialize(n,o),n.path!==void 0&&(o.skipEscape?n.path=a(n.path):(n.path=s(n.path),n.scheme!==void 0&&(n.path=n.path.split(`%3A`).join(`:`)))),o.reference!==`suffix`&&n.scheme&&c.push(n.scheme,`:`);let u=i(n);if(u!==void 0&&(o.reference!==`suffix`&&c.push(`//`),c.push(u),n.path&&n.path[0]!==`/`&&c.push(`/`)),n.path!==void 0){let e=n.path;!o.absolutePath&&(!l||!l.absolutePath)&&(e=r(e)),u===void 0&&e[0]===`/`&&e[1]===`/`&&(e=`/%2F`+e.slice(2)),c.push(e)}return n.query!==void 0&&c.push(`?`,n.query),n.fragment!==void 0&&c.push(`#`,n.fragment),c.join(``)}var v=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u,y=/^(?:[^#/:?]+:)?\/\/([^/?#]*)/,b=/^(?:[^#/:?]+:)?([/\\\t\n\r]*)/;function x(e,t){if(t[2]!==void 0&&e.path&&e.path[0]!==`/`)return`URI path must start with "/" when authority is present.`;if(typeof e.port==`number`&&(e.port<0||e.port>65535))return`URI port is malformed.`}function S(e,t){let r=Object.assign({},t),i={scheme:void 0,userinfo:void 0,host:``,port:void 0,path:``,query:void 0,fragment:void 0},a=!1,s=!1;r.reference===`suffix`&&(e=r.scheme?r.scheme+`:`+e:`//`+e);let d=e.match(y);d!==null&&d[1].indexOf(`\\`)!==-1&&(i.error=`URI authority must not contain a literal backslash.`,a=!0);let p=e.match(b);if(p!==null){let e=p[1],t=e.replace(/[\t\n\r]/g,``);t.length>=2&&(t.slice(0,2)===`//`?e.length!==t.length&&(i.error=i.error||`URI authority introducer must not contain whitespace.`,a=!0):(i.error=i.error||`URI authority must not contain a literal backslash.`,a=!0))}let m=e.match(v);if(m){i.scheme=m[1],i.userinfo=m[3],i.host=m[4],i.port=parseInt(m[5],10),i.path=m[6]||``,i.query=m[7],i.fragment=m[8],isNaN(i.port)&&(i.port=m[5]);let t=x(i,m);if(t!==void 0&&(i.error=i.error||t,a=!0),i.host)if(l(i.host)===!1){let e=n(i.host);i.host=e.host.toLowerCase(),s=e.isIPV6}else s=!0;i.reference=i.scheme===void 0&&i.userinfo===void 0&&i.host===void 0&&i.port===void 0&&i.query===void 0&&!i.path?`same-document`:i.scheme===void 0?`relative`:i.fragment===void 0?`absolute`:`uri`,r.reference&&r.reference!==`suffix`&&r.reference!==i.reference&&(i.error=i.error||`URI is not a `+r.reference+` reference.`);let d=f(r.scheme||i.scheme);if(!r.unicodeSupport&&(!d||!d.unicodeSupport)&&i.host&&(r.domainHost||d&&d.domainHost)&&s===!1&&u(i.host))try{i.host=new URL(`http://`+i.host).hostname}catch(e){i.error=i.error||`Host's domain name can not be converted to ASCII: `+e}if((!d||d&&!d.skipNormalize)&&(e.indexOf(`%`)!==-1&&(i.scheme!==void 0&&(i.scheme=unescape(i.scheme)),i.host!==void 0&&(i.host=c(unescape(i.host),s))),i.path&&=o(i.path),i.fragment))try{i.fragment=encodeURI(decodeURIComponent(i.fragment))}catch{i.error=i.error||`URI malformed`}d&&d.parse&&d.parse(i,r)}else i.error=i.error||`URI can not be parsed.`;return{parsed:i,malformedAuthorityOrPort:a}}function C(e,t){return S(e,t).parsed}function ee(e,t){return te(e,t).normalized}function te(e,t){let{parsed:n,malformedAuthorityOrPort:r}=S(e,t);return{normalized:r?e:_(n,t),malformedAuthorityOrPort:r}}function ne(e,t){if(typeof e==`string`){let{normalized:n,malformedAuthorityOrPort:r}=te(e,t);return r?void 0:n}if(typeof e==`object`)return _(e,t)}var re={SCHEMES:d,normalize:p,resolve:m,resolveComponent:h,equal:g,serialize:_,parse:C};t.exports=re,t.exports.default=re,t.exports.fastUri=re})),Fu=r((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=Pu();t.code=`require("ajv/dist/runtime/uri").default`,e.default=t})),Iu=r((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.CodeGen=e.Name=e.nil=e.stringify=e.str=e._=e.KeywordCxt=void 0;var t=bu();Object.defineProperty(e,"KeywordCxt",{enumerable:!0,get:function(){return t.KeywordCxt}});var n=X();Object.defineProperty(e,"_",{enumerable:!0,get:function(){return n._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return n.str}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return n.stringify}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return n.nil}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return n.Name}}),Object.defineProperty(e,"CodeGen",{enumerable:!0,get:function(){return n.CodeGen}});var r=xu(),a=Su(),o=uu(),s=Cu(),c=X(),l=yu(),u=fu(),d=Z(),f=(ju(),i(wu).default),p=Fu(),m=(e,t)=>new RegExp(e,t);m.code=`new RegExp`;var h=[`removeAdditional`,`useDefaults`,`coerceTypes`],g=new Set([`validate`,`serialize`,`parse`,`wrapper`,`root`,`schema`,`keyword`,`pattern`,`formats`,`validate$data`,`func`,`obj`,`Error`]),_={errorDataPath:``,format:"`validateFormats: false` can be used instead.",nullable:`"nullable" keyword is supported by default.`,jsonPointers:`Deprecated jsPropertySyntax can be used instead.`,extendRefs:`Deprecated ignoreKeywordsWithRef can be used instead.`,missingRefs:`Pass empty schema with $id that should be ignored to ajv.addSchema.`,processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:`"uniqueItems" keyword is always validated.`,unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:`Map is used as cache, schema object as key.`,serialize:`Map is used as cache, schema object as key.`,ajvErrors:`It is default now.`},v={ignoreKeywordsWithRef:``,jsPropertySyntax:``,unicode:`"minLength"/"maxLength" account for unicode characters by default.`},y=200;function b(e){let t=e.strict,n=e.code?.optimize,r=n===!0||n===void 0?1:n||0,i=e.code?.regExp??m,a=e.uriResolver??p.default;return{strictSchema:e.strictSchema??t??!0,strictNumbers:e.strictNumbers??t??!0,strictTypes:e.strictTypes??t??`log`,strictTuples:e.strictTuples??t??`log`,strictRequired:e.strictRequired??t??!1,code:e.code?{...e.code,optimize:r,regExp:i}:{optimize:r,regExp:i},loopRequired:e.loopRequired??y,loopEnum:e.loopEnum??y,meta:e.meta??!0,messages:e.messages??!0,inlineRefs:e.inlineRefs??!0,schemaId:e.schemaId??`$id`,addUsedSchema:e.addUsedSchema??!0,validateSchema:e.validateSchema??!0,validateFormats:e.validateFormats??!0,unicodeRegExp:e.unicodeRegExp??!0,int32range:e.int32range??!0,uriResolver:a}}var x=class{constructor(e={}){this.schemas={},this.refs={},this.formats=Object.create(null),this._compilations=new Set,this._loading={},this._cache=new Map,e=this.opts={...e,...b(e)};let{es5:t,lines:n}=this.opts.code;this.scope=new c.ValueScope({scope:{},prefixes:g,es5:t,lines:n}),this.logger=T(e.logger);let r=e.validateFormats;e.validateFormats=!1,this.RULES=(0,o.getRules)(),S.call(this,_,e,`NOT SUPPORTED`),S.call(this,v,e,`DEPRECATED`,`warn`),this._metaOpts=re.call(this),e.formats&&te.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),e.keywords&&ne.call(this,e.keywords),typeof e.meta==`object`&&this.addMetaSchema(e.meta),ee.call(this),e.validateFormats=r}_addVocabularies(){this.addKeyword(`$async`)}_addDefaultMetaSchema(){let{$data:e,meta:t,schemaId:n}=this.opts,r=f;n===`id`&&(r={...f},r.id=r.$id,delete r.$id),t&&e&&this.addMetaSchema(r,r[n],!1)}defaultMeta(){let{meta:e,schemaId:t}=this.opts;return this.opts.defaultMeta=typeof e==`object`?e[t]||e:void 0}validate(e,t){let n;if(typeof e==`string`){if(n=this.getSchema(e),!n)throw Error(`no schema with key or ref "${e}"`)}else n=this.compile(e);let r=n(t);return`$async`in n||(this.errors=n.errors),r}compile(e,t){let n=this._addSchema(e,t);return n.validate||this._compileSchemaEnv(n)}compileAsync(e,t){if(typeof this.opts.loadSchema!=`function`)throw Error(`options.loadSchema should be a function`);let{loadSchema:n}=this.opts;return r.call(this,e,t);async function r(e,t){await i.call(this,e.$schema);let n=this._addSchema(e,t);return n.validate||o.call(this,n)}async function i(e){e&&!this.getSchema(e)&&await r.call(this,{$ref:e},!0)}async function o(e){try{return this._compileSchemaEnv(e)}catch(t){if(!(t instanceof a.default))throw t;return s.call(this,t),await c.call(this,t.missingSchema),o.call(this,e)}}function s({missingSchema:e,missingRef:t}){if(this.refs[e])throw Error(`AnySchema ${e} is loaded but ${t} cannot be resolved`)}async function c(e){let n=await l.call(this,e);this.refs[e]||await i.call(this,n.$schema),this.refs[e]||this.addSchema(n,e,t)}async function l(e){let t=this._loading[e];if(t)return t;try{return await(this._loading[e]=n(e))}finally{delete this._loading[e]}}}addSchema(e,t,n,r=this.opts.validateSchema){if(Array.isArray(e)){for(let t of e)this.addSchema(t,void 0,n,r);return this}let i;if(typeof e==`object`){let{schemaId:t}=this.opts;if(i=e[t],i!==void 0&&typeof i!=`string`)throw Error(`schema ${t} must be string`)}return t=(0,l.normalizeId)(t||i),this._checkUnique(t),this.schemas[t]=this._addSchema(e,n,t,r,!0),this}addMetaSchema(e,t,n=this.opts.validateSchema){return this.addSchema(e,t,!0,n),this}validateSchema(e,t){if(typeof e==`boolean`)return!0;let n;if(n=e.$schema,n!==void 0&&typeof n!=`string`)throw Error(`$schema must be a string`);if(n=n||this.opts.defaultMeta||this.defaultMeta(),!n)return this.logger.warn(`meta-schema not available`),this.errors=null,!0;let r=this.validate(n,e);if(!r&&t){let e=`schema is invalid: `+this.errorsText();if(this.opts.validateSchema===`log`)this.logger.error(e);else throw Error(e)}return r}getSchema(e){let t;for(;typeof(t=C.call(this,e))==`string`;)e=t;if(t===void 0){let{schemaId:n}=this.opts,r=new s.SchemaEnv({schema:{},schemaId:n});if(t=s.resolveSchema.call(this,r,e),!t)return;this.refs[e]=t}return t.validate||this._compileSchemaEnv(t)}removeSchema(e){if(e instanceof RegExp)return this._removeAllSchemas(this.schemas,e),this._removeAllSchemas(this.refs,e),this;switch(typeof e){case`undefined`:return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case`string`:{let t=C.call(this,e);return typeof t==`object`&&this._cache.delete(t.schema),delete this.schemas[e],delete this.refs[e],this}case`object`:{let t=e;this._cache.delete(t);let n=e[this.opts.schemaId];return n&&(n=(0,l.normalizeId)(n),delete this.schemas[n],delete this.refs[n]),this}default:throw Error(`ajv.removeSchema: invalid parameter`)}}addVocabulary(e){for(let t of e)this.addKeyword(t);return this}addKeyword(e,t){let n;if(typeof e==`string`)n=e,typeof t==`object`&&(this.logger.warn(`these parameters are deprecated, see docs for addKeyword`),t.keyword=n);else if(typeof e==`object`&&t===void 0){if(t=e,n=t.keyword,Array.isArray(n)&&!n.length)throw Error(`addKeywords: keyword must be string or non-empty array`)}else throw Error(`invalid addKeywords parameters`);if(ae.call(this,n,t),!t)return(0,d.eachItem)(n,e=>oe.call(this,e)),this;ce.call(this,t);let r={...t,type:(0,u.getJSONTypes)(t.type),schemaType:(0,u.getJSONTypes)(t.schemaType)};return(0,d.eachItem)(n,r.type.length===0?e=>oe.call(this,e,r):e=>r.type.forEach(t=>oe.call(this,e,r,t))),this}getKeyword(e){let t=this.RULES.all[e];return typeof t==`object`?t.definition:!!t}removeKeyword(e){let{RULES:t}=this;delete t.keywords[e],delete t.all[e];for(let n of t.rules){let t=n.rules.findIndex(t=>t.keyword===e);t>=0&&n.rules.splice(t,1)}return this}addFormat(e,t){return typeof t==`string`&&(t=new RegExp(t)),this.formats[e]=t,this}errorsText(e=this.errors,{separator:t=`, `,dataVar:n=`data`}={}){return!e||e.length===0?`No errors`:e.map(e=>`${n}${e.instancePath} ${e.message}`).reduce((e,n)=>e+t+n)}$dataMetaSchema(e,t){let n=this.RULES.all;e=JSON.parse(JSON.stringify(e));for(let r of t){let t=r.split(`/`).slice(1),i=e;for(let e of t)i=i[e];for(let e in n){let t=n[e];if(typeof t!=`object`)continue;let{$data:r}=t.definition,a=i[e];r&&a&&(i[e]=ue(a))}}return e}_removeAllSchemas(e,t){for(let n in e){let r=e[n];(!t||t.test(n))&&(typeof r==`string`?delete e[n]:r&&!r.meta&&(this._cache.delete(r.schema),delete e[n]))}}_addSchema(e,t,n,r=this.opts.validateSchema,i=this.opts.addUsedSchema){let a,{schemaId:o}=this.opts;if(typeof e==`object`)a=e[o];else if(this.opts.jtd)throw Error(`schema must be object`);else if(typeof e!=`boolean`)throw Error(`schema must be object or boolean`);let c=this._cache.get(e);if(c!==void 0)return c;n=(0,l.normalizeId)(a||n);let u=l.getSchemaRefs.call(this,e,n);return c=new s.SchemaEnv({schema:e,schemaId:o,meta:t,baseId:n,localRefs:u}),this._cache.set(c.schema,c),i&&!n.startsWith(`#`)&&(n&&this._checkUnique(n),this.refs[n]=c),r&&this.validateSchema(e,!0),c}_checkUnique(e){if(this.schemas[e]||this.refs[e])throw Error(`schema with key or id "${e}" already exists`)}_compileSchemaEnv(e){if(e.meta?this._compileMetaSchema(e):s.compileSchema.call(this,e),!e.validate)throw Error(`ajv implementation error`);return e.validate}_compileMetaSchema(e){let t=this.opts;this.opts=this._metaOpts;try{s.compileSchema.call(this,e)}finally{this.opts=t}}};x.ValidationError=r.default,x.MissingRefError=a.default,e.default=x;function S(e,t,n,r=`error`){for(let i in e){let a=i;a in t&&this.logger[r](`${n}: option ${i}. ${e[a]}`)}}function C(e){return e=(0,l.normalizeId)(e),this.schemas[e]||this.refs[e]}function ee(){let e=this.opts.schemas;if(e)if(Array.isArray(e))this.addSchema(e);else for(let t in e)this.addSchema(e[t],t)}function te(){for(let e in this.opts.formats){let t=this.opts.formats[e];t&&this.addFormat(e,t)}}function ne(e){if(Array.isArray(e)){this.addVocabulary(e);return}this.logger.warn(`keywords option as map is deprecated, pass array`);for(let t in e){let n=e[t];n.keyword||=t,this.addKeyword(n)}}function re(){let e={...this.opts};for(let t of h)delete e[t];return e}var w={log(){},warn(){},error(){}};function T(e){if(e===!1)return w;if(e===void 0)return console;if(e.log&&e.warn&&e.error)return e;throw Error(`logger must implement log, warn and error methods`)}var ie=/^[a-z_$][a-z0-9_$:-]*$/i;function ae(e,t){let{RULES:n}=this;if((0,d.eachItem)(e,e=>{if(n.keywords[e])throw Error(`Keyword ${e} is already defined`);if(!ie.test(e))throw Error(`Keyword ${e} has invalid name`)}),t&&t.$data&&!(`code`in t||`validate`in t))throw Error(`$data keyword must have "code" or "validate" function`)}function oe(e,t,n){var r;let i=t?.post;if(n&&i)throw Error(`keyword with "post" flag cannot have "type"`);let{RULES:a}=this,o=i?a.post:a.rules.find(({type:e})=>e===n);if(o||(o={type:n,rules:[]},a.rules.push(o)),a.keywords[e]=!0,!t)return;let s={keyword:e,definition:{...t,type:(0,u.getJSONTypes)(t.type),schemaType:(0,u.getJSONTypes)(t.schemaType)}};t.before?se.call(this,o,s,t.before):o.rules.push(s),a.all[e]=s,(r=t.implements)==null||r.forEach(e=>this.addKeyword(e))}function se(e,t,n){let r=e.rules.findIndex(e=>e.keyword===n);r>=0?e.rules.splice(r,0,t):(e.rules.push(t),this.logger.warn(`rule ${n} is not defined`))}function ce(e){let{metaSchema:t}=e;t!==void 0&&(e.$data&&this.opts.$data&&(t=ue(t)),e.validateSchema=this.compile(t,!0))}var le={$ref:`https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#`};function ue(e){return{anyOf:[e,le]}}})),Lu=r((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={keyword:`id`,code(){throw Error(`NOT SUPPORTED: keyword "id", use "$id" for schema ID`)}}})),Ru=r((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.callRef=e.getValidate=void 0;var t=Su(),n=mu(),r=X(),i=su(),a=Cu(),o=Z(),s={keyword:`$ref`,schemaType:`string`,code(e){let{gen:n,schema:i,it:o}=e,{baseId:s,schemaEnv:u,validateName:d,opts:f,self:p}=o,{root:m}=u;if((i===`#`||i===`#/`)&&s===m.baseId)return g();let h=a.resolveRef.call(p,m,s,i);if(h===void 0)throw new t.default(o.opts.uriResolver,s,i);if(h instanceof a.SchemaEnv)return _(h);return v(h);function g(){if(u===m)return l(e,d,u,u.$async);let t=n.scopeValue(`root`,{ref:m});return l(e,(0,r._)`${t}.validate`,m,m.$async)}function _(t){l(e,c(e,t),t,t.$async)}function v(t){let a=n.scopeValue(`schema`,f.code.source===!0?{ref:t,code:(0,r.stringify)(t)}:{ref:t}),o=n.name(`valid`),s=e.subschema({schema:t,dataTypes:[],schemaPath:r.nil,topSchemaRef:a,errSchemaPath:i},o);e.mergeEvaluated(s),e.ok(o)}}};function c(e,t){let{gen:n}=e;return t.validate?n.scopeValue(`validate`,{ref:t.validate}):(0,r._)`${n.scopeValue(`wrapper`,{ref:t})}.validate`}e.getValidate=c;function l(e,t,a,s){let{gen:c,it:l}=e,{allErrors:u,schemaEnv:d,opts:f}=l,p=f.passContext?i.default.this:r.nil;s?m():h();function m(){if(!d.$async)throw Error(`async schema referenced by sync schema`);let i=c.let(`valid`);c.try(()=>{c.code((0,r._)`await ${(0,n.callValidateCode)(e,t,p)}`),_(t),u||c.assign(i,!0)},e=>{c.if((0,r._)`!(${e} instanceof ${l.ValidationError})`,()=>c.throw(e)),g(e),u||c.assign(i,!1)}),e.ok(i)}function h(){e.result((0,n.callValidateCode)(e,t,p),()=>_(t),()=>g(t))}function g(e){let t=(0,r._)`${e}.errors`;c.assign(i.default.vErrors,(0,r._)`${i.default.vErrors} === null ? ${t} : ${i.default.vErrors}.concat(${t})`),c.assign(i.default.errors,(0,r._)`${i.default.vErrors}.length`)}function _(e){if(!l.opts.unevaluated)return;let t=a?.validate?.evaluated;if(l.props!==!0)if(t&&!t.dynamicProps)t.props!==void 0&&(l.props=o.mergeEvaluated.props(c,t.props,l.props));else{let t=c.var(`props`,(0,r._)`${e}.evaluated.props`);l.props=o.mergeEvaluated.props(c,t,l.props,r.Name)}if(l.items!==!0)if(t&&!t.dynamicItems)t.items!==void 0&&(l.items=o.mergeEvaluated.items(c,t.items,l.items));else{let t=c.var(`items`,(0,r._)`${e}.evaluated.items`);l.items=o.mergeEvaluated.items(c,t,l.items,r.Name)}}}e.callRef=l,e.default=s})),zu=r((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=Lu(),n=Ru();e.default=[`$schema`,`$id`,`$defs`,`$vocabulary`,{keyword:`$comment`},`definitions`,t.default,n.default]})),Bu=r((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=X(),n=t.operators,r={maximum:{okStr:`<=`,ok:n.LTE,fail:n.GT},minimum:{okStr:`>=`,ok:n.GTE,fail:n.LT},exclusiveMaximum:{okStr:`<`,ok:n.LT,fail:n.GTE},exclusiveMinimum:{okStr:`>`,ok:n.GT,fail:n.LTE}};e.default={keyword:Object.keys(r),type:`number`,schemaType:`number`,$data:!0,error:{message:({keyword:e,schemaCode:n})=>(0,t.str)`must be ${r[e].okStr} ${n}`,params:({keyword:e,schemaCode:n})=>(0,t._)`{comparison: ${r[e].okStr}, limit: ${n}}`},code(e){let{keyword:n,data:i,schemaCode:a}=e;e.fail$data((0,t._)`${i} ${r[n].fail} ${a} || isNaN(${i})`)}}})),Vu=r((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=X();e.default={keyword:`multipleOf`,type:`number`,schemaType:`number`,$data:!0,error:{message:({schemaCode:e})=>(0,t.str)`must be multiple of ${e}`,params:({schemaCode:e})=>(0,t._)`{multipleOf: ${e}}`},code(e){let{gen:n,data:r,schemaCode:i,it:a}=e,o=a.opts.multipleOfPrecision,s=n.let(`res`),c=o?(0,t._)`Math.abs(Math.round(${s}) - ${s}) > 1e-${o}`:(0,t._)`${s} !== parseInt(${s})`;e.fail$data((0,t._)`(${i} === 0 || (${s} = ${r}/${i}, ${c}))`)}}})),Hu=r((e=>{Object.defineProperty(e,"__esModule",{value:!0});function t(e){let t=e.length,n=0,r=0,i;for(;r=55296&&i<=56319&&r{Object.defineProperty(e,"__esModule",{value:!0});var t=X(),n=Z(),r=Hu();e.default={keyword:[`maxLength`,`minLength`],type:`string`,schemaType:`number`,$data:!0,error:{message({keyword:e,schemaCode:n}){let r=e===`maxLength`?`more`:`fewer`;return(0,t.str)`must NOT have ${r} than ${n} characters`},params:({schemaCode:e})=>(0,t._)`{limit: ${e}}`},code(e){let{keyword:i,data:a,schemaCode:o,it:s}=e,c=i===`maxLength`?t.operators.GT:t.operators.LT,l=s.opts.unicode===!1?(0,t._)`${a}.length`:(0,t._)`${(0,n.useFunc)(e.gen,r.default)}(${a})`;e.fail$data((0,t._)`${l} ${c} ${o}`)}}})),Wu=r((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=mu(),n=Z(),r=X();e.default={keyword:`pattern`,type:`string`,schemaType:`string`,$data:!0,error:{message:({schemaCode:e})=>(0,r.str)`must match pattern "${e}"`,params:({schemaCode:e})=>(0,r._)`{pattern: ${e}}`},code(e){let{gen:i,data:a,$data:o,schema:s,schemaCode:c,it:l}=e,u=l.opts.unicodeRegExp?`u`:``;if(o){let{regExp:t}=l.opts.code,o=t.code===`new RegExp`?(0,r._)`new RegExp`:(0,n.useFunc)(i,t),s=i.let(`valid`);i.try(()=>i.assign(s,(0,r._)`${o}(${c}, ${u}).test(${a})`),()=>i.assign(s,!1)),e.fail$data((0,r._)`!${s}`)}else{let n=(0,t.usePattern)(e,s);e.fail$data((0,r._)`!${n}.test(${a})`)}}}})),Gu=r((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=X();e.default={keyword:[`maxProperties`,`minProperties`],type:`object`,schemaType:`number`,$data:!0,error:{message({keyword:e,schemaCode:n}){let r=e===`maxProperties`?`more`:`fewer`;return(0,t.str)`must NOT have ${r} than ${n} properties`},params:({schemaCode:e})=>(0,t._)`{limit: ${e}}`},code(e){let{keyword:n,data:r,schemaCode:i}=e,a=n===`maxProperties`?t.operators.GT:t.operators.LT;e.fail$data((0,t._)`Object.keys(${r}).length ${a} ${i}`)}}})),Ku=r((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=mu(),n=X(),r=Z();e.default={keyword:`required`,type:`object`,schemaType:`array`,$data:!0,error:{message:({params:{missingProperty:e}})=>(0,n.str)`must have required property '${e}'`,params:({params:{missingProperty:e}})=>(0,n._)`{missingProperty: ${e}}`},code(e){let{gen:i,schema:a,schemaCode:o,data:s,$data:c,it:l}=e,{opts:u}=l;if(!c&&a.length===0)return;let d=a.length>=u.loopRequired;if(l.allErrors?f():p(),u.strictRequired){let t=e.parentSchema.properties,{definedProperties:n}=e.it;for(let e of a)if(t?.[e]===void 0&&!n.has(e)){let t=`required property "${e}" is not defined at "${l.schemaEnv.baseId+l.errSchemaPath}" (strictRequired)`;(0,r.checkStrictMode)(l,t,l.opts.strictRequired)}}function f(){if(d||c)e.block$data(n.nil,m);else for(let n of a)(0,t.checkReportMissingProp)(e,n)}function p(){let n=i.let(`missing`);if(d||c){let t=i.let(`valid`,!0);e.block$data(t,()=>h(n,t)),e.ok(t)}else i.if((0,t.checkMissingProp)(e,a,n)),(0,t.reportMissingProp)(e,n),i.else()}function m(){i.forOf(`prop`,o,n=>{e.setParams({missingProperty:n}),i.if((0,t.noPropertyInData)(i,s,n,u.ownProperties),()=>e.error())})}function h(r,a){e.setParams({missingProperty:r}),i.forOf(r,o,()=>{i.assign(a,(0,t.propertyInData)(i,s,r,u.ownProperties)),i.if((0,n.not)(a),()=>{e.error(),i.break()})},n.nil)}}}})),qu=r((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=X();e.default={keyword:[`maxItems`,`minItems`],type:`array`,schemaType:`number`,$data:!0,error:{message({keyword:e,schemaCode:n}){let r=e===`maxItems`?`more`:`fewer`;return(0,t.str)`must NOT have ${r} than ${n} items`},params:({schemaCode:e})=>(0,t._)`{limit: ${e}}`},code(e){let{keyword:n,data:r,schemaCode:i}=e,a=n===`maxItems`?t.operators.GT:t.operators.LT;e.fail$data((0,t._)`${r}.length ${a} ${i}`)}}})),Ju=r((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=_u();t.code=`require("ajv/dist/runtime/equal").default`,e.default=t})),Yu=r((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=fu(),n=X(),r=Z(),i=Ju();e.default={keyword:`uniqueItems`,type:`array`,schemaType:`boolean`,$data:!0,error:{message:({params:{i:e,j:t}})=>(0,n.str)`must NOT have duplicate items (items ## ${t} and ${e} are identical)`,params:({params:{i:e,j:t}})=>(0,n._)`{i: ${e}, j: ${t}}`},code(e){let{gen:a,data:o,$data:s,schema:c,parentSchema:l,schemaCode:u,it:d}=e;if(!s&&!c)return;let f=a.let(`valid`),p=l.items?(0,t.getSchemaTypes)(l.items):[];e.block$data(f,m,(0,n._)`${u} === false`),e.ok(f);function m(){let t=a.let(`i`,(0,n._)`${o}.length`),r=a.let(`j`);e.setParams({i:t,j:r}),a.assign(f,!0),a.if((0,n._)`${t} > 1`,()=>(h()?g:_)(t,r))}function h(){return p.length>0&&!p.some(e=>e===`object`||e===`array`)}function g(r,i){let s=a.name(`item`),c=(0,t.checkDataTypes)(p,s,d.opts.strictNumbers,t.DataType.Wrong),l=a.const(`indices`,(0,n._)`{}`);a.for((0,n._)`;${r}--;`,()=>{a.let(s,(0,n._)`${o}[${r}]`),a.if(c,(0,n._)`continue`),p.length>1&&a.if((0,n._)`typeof ${s} == "string"`,(0,n._)`${s} += "_"`),a.if((0,n._)`typeof ${l}[${s}] == "number"`,()=>{a.assign(i,(0,n._)`${l}[${s}]`),e.error(),a.assign(f,!1).break()}).code((0,n._)`${l}[${s}] = ${r}`)})}function _(t,s){let c=(0,r.useFunc)(a,i.default),l=a.name(`outer`);a.label(l).for((0,n._)`;${t}--;`,()=>a.for((0,n._)`${s} = ${t}; ${s}--;`,()=>a.if((0,n._)`${c}(${o}[${t}], ${o}[${s}])`,()=>{e.error(),a.assign(f,!1).break(l)})))}}}})),Xu=r((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=X(),n=Z(),r=Ju();e.default={keyword:`const`,$data:!0,error:{message:`must be equal to constant`,params:({schemaCode:e})=>(0,t._)`{allowedValue: ${e}}`},code(e){let{gen:i,data:a,$data:o,schemaCode:s,schema:c}=e;o||c&&typeof c==`object`?e.fail$data((0,t._)`!${(0,n.useFunc)(i,r.default)}(${a}, ${s})`):e.fail((0,t._)`${c} !== ${a}`)}}})),Zu=r((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=X(),n=Z(),r=Ju();e.default={keyword:`enum`,schemaType:`array`,$data:!0,error:{message:`must be equal to one of the allowed values`,params:({schemaCode:e})=>(0,t._)`{allowedValues: ${e}}`},code(e){let{gen:i,data:a,$data:o,schema:s,schemaCode:c,it:l}=e;if(!o&&s.length===0)throw Error(`enum must have non-empty array`);let u=s.length>=l.opts.loopEnum,d,f=()=>d??=(0,n.useFunc)(i,r.default),p;if(u||o)p=i.let(`valid`),e.block$data(p,m);else{if(!Array.isArray(s))throw Error(`ajv implementation error`);let e=i.const(`vSchema`,c);p=(0,t.or)(...s.map((t,n)=>h(e,n)))}e.pass(p);function m(){i.assign(p,!1),i.forOf(`v`,c,e=>i.if((0,t._)`${f()}(${a}, ${e})`,()=>i.assign(p,!0).break()))}function h(e,n){let r=s[n];return typeof r==`object`&&r?(0,t._)`${f()}(${a}, ${e}[${n}])`:(0,t._)`${a} === ${r}`}}}})),Qu=r((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=Bu(),n=Vu(),r=Uu(),i=Wu(),a=Gu(),o=Ku(),s=qu(),c=Yu(),l=Xu(),u=Zu();e.default=[t.default,n.default,r.default,i.default,a.default,o.default,s.default,c.default,{keyword:`type`,schemaType:[`string`,`array`]},{keyword:`nullable`,schemaType:`boolean`},l.default,u.default]})),$u=r((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.validateAdditionalItems=void 0;var t=X(),n=Z(),r={keyword:`additionalItems`,type:`array`,schemaType:[`boolean`,`object`],before:`uniqueItems`,error:{message:({params:{len:e}})=>(0,t.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,t._)`{limit: ${e}}`},code(e){let{parentSchema:t,it:r}=e,{items:a}=t;if(!Array.isArray(a)){(0,n.checkStrictMode)(r,`"additionalItems" is ignored when "items" is not an array of schemas`);return}i(e,a)}};function i(e,r){let{gen:i,schema:a,data:o,keyword:s,it:c}=e;c.items=!0;let l=i.const(`len`,(0,t._)`${o}.length`);if(a===!1)e.setParams({len:r.length}),e.pass((0,t._)`${l} <= ${r.length}`);else if(typeof a==`object`&&!(0,n.alwaysValidSchema)(c,a)){let n=i.var(`valid`,(0,t._)`${l} <= ${r.length}`);i.if((0,t.not)(n),()=>u(n)),e.ok(n)}function u(a){i.forRange(`i`,r.length,l,r=>{e.subschema({keyword:s,dataProp:r,dataPropType:n.Type.Num},a),c.allErrors||i.if((0,t.not)(a),()=>i.break())})}}e.validateAdditionalItems=i,e.default=r})),ed=r((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.validateTuple=void 0;var t=X(),n=Z(),r=mu(),i={keyword:`items`,type:`array`,schemaType:[`object`,`array`,`boolean`],before:`uniqueItems`,code(e){let{schema:t,it:i}=e;if(Array.isArray(t))return a(e,`additionalItems`,t);i.items=!0,!(0,n.alwaysValidSchema)(i,t)&&e.ok((0,r.validateArray)(e))}};function a(e,r,i=e.schema){let{gen:a,parentSchema:o,data:s,keyword:c,it:l}=e;f(o),l.opts.unevaluated&&i.length&&l.items!==!0&&(l.items=n.mergeEvaluated.items(a,i.length,l.items));let u=a.name(`valid`),d=a.const(`len`,(0,t._)`${s}.length`);i.forEach((r,i)=>{(0,n.alwaysValidSchema)(l,r)||(a.if((0,t._)`${d} > ${i}`,()=>e.subschema({keyword:c,schemaProp:i,dataProp:i},u)),e.ok(u))});function f(e){let{opts:t,errSchemaPath:a}=l,o=i.length,s=o===e.minItems&&(o===e.maxItems||e[r]===!1);if(t.strictTuples&&!s){let e=`"${c}" is ${o}-tuple, but minItems or maxItems/${r} are not specified or different at path "${a}"`;(0,n.checkStrictMode)(l,e,t.strictTuples)}}}e.validateTuple=a,e.default=i})),td=r((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=ed();e.default={keyword:`prefixItems`,type:`array`,schemaType:[`array`],before:`uniqueItems`,code:e=>(0,t.validateTuple)(e,`items`)}})),nd=r((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=X(),n=Z(),r=mu(),i=$u();e.default={keyword:`items`,type:`array`,schemaType:[`object`,`boolean`],before:`uniqueItems`,error:{message:({params:{len:e}})=>(0,t.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,t._)`{limit: ${e}}`},code(e){let{schema:t,parentSchema:a,it:o}=e,{prefixItems:s}=a;o.items=!0,!(0,n.alwaysValidSchema)(o,t)&&(s?(0,i.validateAdditionalItems)(e,s):e.ok((0,r.validateArray)(e)))}}})),rd=r((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=X(),n=Z();e.default={keyword:`contains`,type:`array`,schemaType:[`object`,`boolean`],before:`uniqueItems`,trackErrors:!0,error:{message:({params:{min:e,max:n}})=>n===void 0?(0,t.str)`must contain at least ${e} valid item(s)`:(0,t.str)`must contain at least ${e} and no more than ${n} valid item(s)`,params:({params:{min:e,max:n}})=>n===void 0?(0,t._)`{minContains: ${e}}`:(0,t._)`{minContains: ${e}, maxContains: ${n}}`},code(e){let{gen:r,schema:i,parentSchema:a,data:o,it:s}=e,c,l,{minContains:u,maxContains:d}=a;s.opts.next?(c=u===void 0?1:u,l=d):c=1;let f=r.const(`len`,(0,t._)`${o}.length`);if(e.setParams({min:c,max:l}),l===void 0&&c===0){(0,n.checkStrictMode)(s,`"minContains" == 0 without "maxContains": "contains" keyword ignored`);return}if(l!==void 0&&c>l){(0,n.checkStrictMode)(s,`"minContains" > "maxContains" is always invalid`),e.fail();return}if((0,n.alwaysValidSchema)(s,i)){let n=(0,t._)`${f} >= ${c}`;l!==void 0&&(n=(0,t._)`${n} && ${f} <= ${l}`),e.pass(n);return}s.items=!0;let p=r.name(`valid`);l===void 0&&c===1?h(p,()=>r.if(p,()=>r.break())):c===0?(r.let(p,!0),l!==void 0&&r.if((0,t._)`${o}.length > 0`,m)):(r.let(p,!1),m()),e.result(p,()=>e.reset());function m(){let e=r.name(`_valid`),t=r.let(`count`,0);h(e,()=>r.if(e,()=>g(t)))}function h(t,i){r.forRange(`i`,0,f,r=>{e.subschema({keyword:`contains`,dataProp:r,dataPropType:n.Type.Num,compositeRule:!0},t),i()})}function g(e){r.code((0,t._)`${e}++`),l===void 0?r.if((0,t._)`${e} >= ${c}`,()=>r.assign(p,!0).break()):(r.if((0,t._)`${e} > ${l}`,()=>r.assign(p,!1).break()),c===1?r.assign(p,!0):r.if((0,t._)`${e} >= ${c}`,()=>r.assign(p,!0)))}}}})),id=r((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.validateSchemaDeps=e.validatePropertyDeps=e.error=void 0;var t=X(),n=Z(),r=mu();e.error={message:({params:{property:e,depsCount:n,deps:r}})=>{let i=n===1?`property`:`properties`;return(0,t.str)`must have ${i} ${r} when property ${e} is present`},params:({params:{property:e,depsCount:n,deps:r,missingProperty:i}})=>(0,t._)`{property: ${e}, - missingProperty: ${i}, - depsCount: ${n}, - deps: ${r}}`};var i={keyword:`dependencies`,type:`object`,schemaType:`object`,error:e.error,code(e){let[t,n]=a(e);o(e,t),s(e,n)}};function a({schema:e}){let t={},n={};for(let r in e){if(r===`__proto__`)continue;let i=Array.isArray(e[r])?t:n;i[r]=e[r]}return[t,n]}function o(e,n=e.schema){let{gen:i,data:a,it:o}=e;if(Object.keys(n).length===0)return;let s=i.let(`missing`);for(let c in n){let l=n[c];if(l.length===0)continue;let u=(0,r.propertyInData)(i,a,c,o.opts.ownProperties);e.setParams({property:c,depsCount:l.length,deps:l.join(`, `)}),o.allErrors?i.if(u,()=>{for(let t of l)(0,r.checkReportMissingProp)(e,t)}):(i.if((0,t._)`${u} && (${(0,r.checkMissingProp)(e,l,s)})`),(0,r.reportMissingProp)(e,s),i.else())}}e.validatePropertyDeps=o;function s(e,t=e.schema){let{gen:i,data:a,keyword:o,it:s}=e,c=i.name(`valid`);for(let l in t)(0,n.alwaysValidSchema)(s,t[l])||(i.if((0,r.propertyInData)(i,a,l,s.opts.ownProperties),()=>{let t=e.subschema({keyword:o,schemaProp:l},c);e.mergeValidEvaluated(t,c)},()=>i.var(c,!0)),e.ok(c))}e.validateSchemaDeps=s,e.default=i})),ad=r((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=X(),n=Z();e.default={keyword:`propertyNames`,type:`object`,schemaType:[`object`,`boolean`],error:{message:`property name must be valid`,params:({params:e})=>(0,t._)`{propertyName: ${e.propertyName}}`},code(e){let{gen:r,schema:i,data:a,it:o}=e;if((0,n.alwaysValidSchema)(o,i))return;let s=r.name(`valid`);r.forIn(`key`,a,n=>{e.setParams({propertyName:n}),e.subschema({keyword:`propertyNames`,data:n,dataTypes:[`string`],propertyName:n,compositeRule:!0},s),r.if((0,t.not)(s),()=>{e.error(!0),o.allErrors||r.break()})}),e.ok(s)}}})),od=r((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=mu(),n=X(),r=su(),i=Z();e.default={keyword:`additionalProperties`,type:[`object`],schemaType:[`boolean`,`object`],allowUndefined:!0,trackErrors:!0,error:{message:`must NOT have additional properties`,params:({params:e})=>(0,n._)`{additionalProperty: ${e.additionalProperty}}`},code(e){let{gen:a,schema:o,parentSchema:s,data:c,errsCount:l,it:u}=e;if(!l)throw Error(`ajv implementation error`);let{allErrors:d,opts:f}=u;if(u.props=!0,f.removeAdditional!==`all`&&(0,i.alwaysValidSchema)(u,o))return;let p=(0,t.allSchemaProperties)(s.properties),m=(0,t.allSchemaProperties)(s.patternProperties);h(),e.ok((0,n._)`${l} === ${r.default.errors}`);function h(){a.forIn(`key`,c,e=>{!p.length&&!m.length?v(e):a.if(g(e),()=>v(e))})}function g(r){let o;if(p.length>8){let e=(0,i.schemaRefOrVal)(u,s.properties,`properties`);o=(0,t.isOwnProperty)(a,e,r)}else o=p.length?(0,n.or)(...p.map(e=>(0,n._)`${r} === ${e}`)):n.nil;return m.length&&(o=(0,n.or)(o,...m.map(i=>(0,n._)`${(0,t.usePattern)(e,i)}.test(${r})`))),(0,n.not)(o)}function _(e){a.code((0,n._)`delete ${c}[${e}]`)}function v(t){if(f.removeAdditional===`all`||f.removeAdditional&&o===!1){_(t);return}if(o===!1){e.setParams({additionalProperty:t}),e.error(),d||a.break();return}if(typeof o==`object`&&!(0,i.alwaysValidSchema)(u,o)){let r=a.name(`valid`);f.removeAdditional===`failing`?(y(t,r,!1),a.if((0,n.not)(r),()=>{e.reset(),_(t)})):(y(t,r),d||a.if((0,n.not)(r),()=>a.break()))}}function y(t,n,r){let a={keyword:`additionalProperties`,dataProp:t,dataPropType:i.Type.Str};r===!1&&Object.assign(a,{compositeRule:!0,createErrors:!1,allErrors:!1}),e.subschema(a,n)}}}})),sd=r((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=bu(),n=mu(),r=Z(),i=od();e.default={keyword:`properties`,type:`object`,schemaType:`object`,code(e){let{gen:a,schema:o,parentSchema:s,data:c,it:l}=e;l.opts.removeAdditional===`all`&&s.additionalProperties===void 0&&i.default.code(new t.KeywordCxt(l,i.default,`additionalProperties`));let u=(0,n.allSchemaProperties)(o);for(let e of u)l.definedProperties.add(e);l.opts.unevaluated&&u.length&&l.props!==!0&&(l.props=r.mergeEvaluated.props(a,(0,r.toHash)(u),l.props));let d=u.filter(e=>!(0,r.alwaysValidSchema)(l,o[e]));if(d.length===0)return;let f=a.name(`valid`);for(let t of d)p(t)?m(t):(a.if((0,n.propertyInData)(a,c,t,l.opts.ownProperties)),m(t),l.allErrors||a.else().var(f,!0),a.endIf()),e.it.definedProperties.add(t),e.ok(f);function p(e){return l.opts.useDefaults&&!l.compositeRule&&o[e].default!==void 0}function m(t){e.subschema({keyword:`properties`,schemaProp:t,dataProp:t},f)}}}})),cd=r((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=mu(),n=X(),r=Z(),i=Z();e.default={keyword:`patternProperties`,type:`object`,schemaType:`object`,code(e){let{gen:a,schema:o,data:s,parentSchema:c,it:l}=e,{opts:u}=l,d=(0,t.allSchemaProperties)(o),f=d.filter(e=>(0,r.alwaysValidSchema)(l,o[e]));if(d.length===0||f.length===d.length&&(!l.opts.unevaluated||l.props===!0))return;let p=u.strictSchema&&!u.allowMatchingProperties&&c.properties,m=a.name(`valid`);l.props!==!0&&!(l.props instanceof n.Name)&&(l.props=(0,i.evaluatedPropsToName)(a,l.props));let{props:h}=l;g();function g(){for(let e of d)p&&_(e),l.allErrors?v(e):(a.var(m,!0),v(e),a.if(m))}function _(e){for(let t in p)new RegExp(e).test(t)&&(0,r.checkStrictMode)(l,`property ${t} matches pattern ${e} (use allowMatchingProperties)`)}function v(r){a.forIn(`key`,s,o=>{a.if((0,n._)`${(0,t.usePattern)(e,r)}.test(${o})`,()=>{let t=f.includes(r);t||e.subschema({keyword:`patternProperties`,schemaProp:r,dataProp:o,dataPropType:i.Type.Str},m),l.opts.unevaluated&&h!==!0?a.assign((0,n._)`${h}[${o}]`,!0):!t&&!l.allErrors&&a.if((0,n.not)(m),()=>a.break())})})}}}})),ld=r((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=Z();e.default={keyword:`not`,schemaType:[`object`,`boolean`],trackErrors:!0,code(e){let{gen:n,schema:r,it:i}=e;if((0,t.alwaysValidSchema)(i,r)){e.fail();return}let a=n.name(`valid`);e.subschema({keyword:`not`,compositeRule:!0,createErrors:!1,allErrors:!1},a),e.failResult(a,()=>e.reset(),()=>e.error())},error:{message:`must NOT be valid`}}})),ud=r((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={keyword:`anyOf`,schemaType:`array`,trackErrors:!0,code:mu().validateUnion,error:{message:`must match a schema in anyOf`}}})),dd=r((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=X(),n=Z();e.default={keyword:`oneOf`,schemaType:`array`,trackErrors:!0,error:{message:`must match exactly one schema in oneOf`,params:({params:e})=>(0,t._)`{passingSchemas: ${e.passing}}`},code(e){let{gen:r,schema:i,parentSchema:a,it:o}=e;if(!Array.isArray(i))throw Error(`ajv implementation error`);if(o.opts.discriminator&&a.discriminator)return;let s=i,c=r.let(`valid`,!1),l=r.let(`passing`,null),u=r.name(`_valid`);e.setParams({passing:l}),r.block(d),e.result(c,()=>e.reset(),()=>e.error(!0));function d(){s.forEach((i,a)=>{let s;(0,n.alwaysValidSchema)(o,i)?r.var(u,!0):s=e.subschema({keyword:`oneOf`,schemaProp:a,compositeRule:!0},u),a>0&&r.if((0,t._)`${u} && ${c}`).assign(c,!1).assign(l,(0,t._)`[${l}, ${a}]`).else(),r.if(u,()=>{r.assign(c,!0),r.assign(l,a),s&&e.mergeEvaluated(s,t.Name)})})}}}})),fd=r((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=Z();e.default={keyword:`allOf`,schemaType:`array`,code(e){let{gen:n,schema:r,it:i}=e;if(!Array.isArray(r))throw Error(`ajv implementation error`);let a=n.name(`valid`);r.forEach((n,r)=>{if((0,t.alwaysValidSchema)(i,n))return;let o=e.subschema({keyword:`allOf`,schemaProp:r},a);e.ok(a),e.mergeEvaluated(o)})}}})),pd=r((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=X(),n=Z(),r={keyword:`if`,schemaType:[`object`,`boolean`],trackErrors:!0,error:{message:({params:e})=>(0,t.str)`must match "${e.ifClause}" schema`,params:({params:e})=>(0,t._)`{failingKeyword: ${e.ifClause}}`},code(e){let{gen:r,parentSchema:a,it:o}=e;a.then===void 0&&a.else===void 0&&(0,n.checkStrictMode)(o,`"if" without "then" and "else" is ignored`);let s=i(o,`then`),c=i(o,`else`);if(!s&&!c)return;let l=r.let(`valid`,!0),u=r.name(`_valid`);if(d(),e.reset(),s&&c){let t=r.let(`ifClause`);e.setParams({ifClause:t}),r.if(u,f(`then`,t),f(`else`,t))}else s?r.if(u,f(`then`)):r.if((0,t.not)(u),f(`else`));e.pass(l,()=>e.error(!0));function d(){let t=e.subschema({keyword:`if`,compositeRule:!0,createErrors:!1,allErrors:!1},u);e.mergeEvaluated(t)}function f(n,i){return()=>{let a=e.subschema({keyword:n},u);r.assign(l,u),e.mergeValidEvaluated(a,l),i?r.assign(i,(0,t._)`${n}`):e.setParams({ifClause:n})}}}};function i(e,t){let r=e.schema[t];return r!==void 0&&!(0,n.alwaysValidSchema)(e,r)}e.default=r})),md=r((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=Z();e.default={keyword:[`then`,`else`],schemaType:[`object`,`boolean`],code({keyword:e,parentSchema:n,it:r}){n.if===void 0&&(0,t.checkStrictMode)(r,`"${e}" without "if" is ignored`)}}})),hd=r((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=$u(),n=td(),r=ed(),i=nd(),a=rd(),o=id(),s=ad(),c=od(),l=sd(),u=cd(),d=ld(),f=ud(),p=dd(),m=fd(),h=pd(),g=md();function _(e=!1){let _=[d.default,f.default,p.default,m.default,h.default,g.default,s.default,c.default,o.default,l.default,u.default];return e?_.push(n.default,i.default):_.push(t.default,r.default),_.push(a.default),_}e.default=_})),gd=r((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=X();e.default={keyword:`format`,type:[`number`,`string`],schemaType:`string`,$data:!0,error:{message:({schemaCode:e})=>(0,t.str)`must match format "${e}"`,params:({schemaCode:e})=>(0,t._)`{format: ${e}}`},code(e,n){let{gen:r,data:i,$data:a,schema:o,schemaCode:s,it:c}=e,{opts:l,errSchemaPath:u,schemaEnv:d,self:f}=c;if(!l.validateFormats)return;a?p():m();function p(){let a=r.scopeValue(`formats`,{ref:f.formats,code:l.code.formats}),o=r.const(`fDef`,(0,t._)`${a}[${s}]`),c=r.let(`fType`),u=r.let(`format`);r.if((0,t._)`typeof ${o} == "object" && !(${o} instanceof RegExp)`,()=>r.assign(c,(0,t._)`${o}.type || "string"`).assign(u,(0,t._)`${o}.validate`),()=>r.assign(c,(0,t._)`"string"`).assign(u,o)),e.fail$data((0,t.or)(p(),m()));function p(){return l.strictSchema===!1?t.nil:(0,t._)`${s} && !${u}`}function m(){let e=d.$async?(0,t._)`(${o}.async ? await ${u}(${i}) : ${u}(${i}))`:(0,t._)`${u}(${i})`,r=(0,t._)`(typeof ${u} == "function" ? ${e} : ${u}.test(${i}))`;return(0,t._)`${u} && ${u} !== true && ${c} === ${n} && !${r}`}}function m(){let a=f.formats[o];if(!a){m();return}if(a===!0)return;let[s,c,p]=h(a);s===n&&e.pass(g());function m(){if(l.strictSchema===!1){f.logger.warn(e());return}throw Error(e());function e(){return`unknown format "${o}" ignored in schema at path "${u}"`}}function h(e){let n=e instanceof RegExp?(0,t.regexpCode)(e):l.code.formats?(0,t._)`${l.code.formats}${(0,t.getProperty)(o)}`:void 0,i=r.scopeValue(`formats`,{key:o,ref:e,code:n});return typeof e==`object`&&!(e instanceof RegExp)?[e.type||`string`,e.validate,(0,t._)`${i}.validate`]:[`string`,e,i]}function g(){if(typeof a==`object`&&!(a instanceof RegExp)&&a.async){if(!d.$async)throw Error(`async format in sync schema`);return(0,t._)`await ${p}(${i})`}return typeof c==`function`?(0,t._)`${p}(${i})`:(0,t._)`${p}.test(${i})`}}}}})),_d=r((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=[gd().default]})),vd=r((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.contentVocabulary=e.metadataVocabulary=void 0,e.metadataVocabulary=[`title`,`description`,`default`,`deprecated`,`readOnly`,`writeOnly`,`examples`],e.contentVocabulary=[`contentMediaType`,`contentEncoding`,`contentSchema`]})),yd=r((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=zu(),n=Qu(),r=hd(),i=_d(),a=vd();e.default=[t.default,n.default,(0,r.default)(),i.default,a.metadataVocabulary,a.contentVocabulary]})),bd=r((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.DiscrError=void 0;var t;(function(e){e.Tag=`tag`,e.Mapping=`mapping`})(t||(e.DiscrError=t={}))})),xd=r((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=X(),n=bd(),r=Cu(),i=Su(),a=Z();e.default={keyword:`discriminator`,type:`object`,schemaType:`object`,error:{message:({params:{discrError:e,tagName:t}})=>e===n.DiscrError.Tag?`tag "${t}" must be string`:`value of tag "${t}" must be in oneOf`,params:({params:{discrError:e,tag:n,tagName:r}})=>(0,t._)`{error: ${e}, tag: ${r}, tagValue: ${n}}`},code(e){let{gen:o,data:s,schema:c,parentSchema:l,it:u}=e,{oneOf:d}=l;if(!u.opts.discriminator)throw Error(`discriminator: requires discriminator option`);let f=c.propertyName;if(typeof f!=`string`)throw Error(`discriminator: requires propertyName`);if(c.mapping)throw Error(`discriminator: mapping is not supported`);if(!d)throw Error(`discriminator: requires oneOf keyword`);let p=o.let(`valid`,!1),m=o.const(`tag`,(0,t._)`${s}${(0,t.getProperty)(f)}`);o.if((0,t._)`typeof ${m} == "string"`,()=>h(),()=>e.error(!1,{discrError:n.DiscrError.Tag,tag:m,tagName:f})),e.ok(p);function h(){let r=_();o.if(!1);for(let e in r)o.elseIf((0,t._)`${m} === ${e}`),o.assign(p,g(r[e]));o.else(),e.error(!1,{discrError:n.DiscrError.Mapping,tag:m,tagName:f}),o.endIf()}function g(n){let r=o.name(`valid`),i=e.subschema({keyword:`oneOf`,schemaProp:n},r);return e.mergeEvaluated(i,t.Name),r}function _(){let e={},t=o(l),n=!0;for(let e=0;ewd,$schema:()=>Cd,default:()=>kd,definitions:()=>Ed,properties:()=>Od,title:()=>Td,type:()=>Dd}),Cd,wd,Td,Ed,Dd,Od,kd,Ad=s((()=>{Cd=`http://json-schema.org/draft-07/schema#`,wd=`http://json-schema.org/draft-07/schema#`,Td=`Core schema meta-schema`,Ed={schemaArray:{type:`array`,minItems:1,items:{$ref:`#`}},nonNegativeInteger:{type:`integer`,minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:`#/definitions/nonNegativeInteger`},{default:0}]},simpleTypes:{enum:[`array`,`boolean`,`integer`,`null`,`number`,`object`,`string`]},stringArray:{type:`array`,items:{type:`string`},uniqueItems:!0,default:[]}},Dd=[`object`,`boolean`],Od={$id:{type:`string`,format:`uri-reference`},$schema:{type:`string`,format:`uri`},$ref:{type:`string`,format:`uri-reference`},$comment:{type:`string`},title:{type:`string`},description:{type:`string`},default:!0,readOnly:{type:`boolean`,default:!1},examples:{type:`array`,items:!0},multipleOf:{type:`number`,exclusiveMinimum:0},maximum:{type:`number`},exclusiveMaximum:{type:`number`},minimum:{type:`number`},exclusiveMinimum:{type:`number`},maxLength:{$ref:`#/definitions/nonNegativeInteger`},minLength:{$ref:`#/definitions/nonNegativeIntegerDefault0`},pattern:{type:`string`,format:`regex`},additionalItems:{$ref:`#`},items:{anyOf:[{$ref:`#`},{$ref:`#/definitions/schemaArray`}],default:!0},maxItems:{$ref:`#/definitions/nonNegativeInteger`},minItems:{$ref:`#/definitions/nonNegativeIntegerDefault0`},uniqueItems:{type:`boolean`,default:!1},contains:{$ref:`#`},maxProperties:{$ref:`#/definitions/nonNegativeInteger`},minProperties:{$ref:`#/definitions/nonNegativeIntegerDefault0`},required:{$ref:`#/definitions/stringArray`},additionalProperties:{$ref:`#`},definitions:{type:`object`,additionalProperties:{$ref:`#`},default:{}},properties:{type:`object`,additionalProperties:{$ref:`#`},default:{}},patternProperties:{type:`object`,additionalProperties:{$ref:`#`},propertyNames:{format:`regex`},default:{}},dependencies:{type:`object`,additionalProperties:{anyOf:[{$ref:`#`},{$ref:`#/definitions/stringArray`}]}},propertyNames:{$ref:`#`},const:!0,enum:{type:`array`,items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:`#/definitions/simpleTypes`},{type:`array`,items:{$ref:`#/definitions/simpleTypes`},minItems:1,uniqueItems:!0}]},format:{type:`string`},contentMediaType:{type:`string`},contentEncoding:{type:`string`},if:{$ref:`#`},then:{$ref:`#`},else:{$ref:`#`},allOf:{$ref:`#/definitions/schemaArray`},anyOf:{$ref:`#/definitions/schemaArray`},oneOf:{$ref:`#/definitions/schemaArray`},not:{$ref:`#`}},kd={$schema:Cd,$id:wd,title:Td,definitions:Ed,type:Dd,properties:Od,default:!0}})),jd=r(((e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.MissingRefError=e.ValidationError=e.CodeGen=e.Name=e.nil=e.stringify=e.str=e._=e.KeywordCxt=e.Ajv=void 0;var n=Iu(),r=yd(),a=xd(),o=(Ad(),i(Sd).default),s=[`/properties`],c=`http://json-schema.org/draft-07/schema`,l=class extends n.default{_addVocabularies(){super._addVocabularies(),r.default.forEach(e=>this.addVocabulary(e)),this.opts.discriminator&&this.addKeyword(a.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;let e=this.opts.$data?this.$dataMetaSchema(o,s):o;this.addMetaSchema(e,c,!1),this.refs[`http://json-schema.org/schema`]=c}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(c)?c:void 0)}};e.Ajv=l,t.exports=e=l,t.exports.Ajv=l,Object.defineProperty(e,"__esModule",{value:!0}),e.default=l;var u=bu();Object.defineProperty(e,"KeywordCxt",{enumerable:!0,get:function(){return u.KeywordCxt}});var d=X();Object.defineProperty(e,"_",{enumerable:!0,get:function(){return d._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return d.str}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return d.stringify}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return d.nil}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return d.Name}}),Object.defineProperty(e,"CodeGen",{enumerable:!0,get:function(){return d.CodeGen}});var f=xu();Object.defineProperty(e,"ValidationError",{enumerable:!0,get:function(){return f.default}});var p=Su();Object.defineProperty(e,"MissingRefError",{enumerable:!0,get:function(){return p.default}})})),Md=r((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.formatNames=e.fastFormats=e.fullFormats=void 0;function t(e,t){return{validate:e,compare:t}}e.fullFormats={date:t(a,o),time:t(c(!0),l),"date-time":t(f(!0),p),"iso-time":t(c(),u),"iso-date-time":t(f(),m),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:_,"uri-reference":/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,"uri-template":/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,url:/^(?:https?|ftp):\/\/(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)(?:\.(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)*(?:\.(?:[a-z\u{00a1}-\u{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/iu,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)$/,ipv6:/^((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9a-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){4}(((:[0-9a-f]{1,4}){1,3})|((:[0-9a-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){3}(((:[0-9a-f]{1,4}){1,4})|((:[0-9a-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))$/i,regex:ne,uuid:/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,"json-pointer":/^(?:\/(?:[^~/]|~0|~1)*)*$/,"json-pointer-uri-fragment":/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,"relative-json-pointer":/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/,byte:y,int32:{type:`number`,validate:S},int64:{type:`number`,validate:C},float:{type:`number`,validate:ee},double:{type:`number`,validate:ee},password:!0,binary:!0},e.fastFormats={...e.fullFormats,date:t(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,o),time:t(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,l),"date-time":t(/^\d\d\d\d-[0-1]\d-[0-3]\dt(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,p),"iso-time":t(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,u),"iso-date-time":t(/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,m),uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i},e.formatNames=Object.keys(e.fullFormats);function n(e){return e%4==0&&(e%100!=0||e%400==0)}var r=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,i=[0,31,28,31,30,31,30,31,31,30,31,30,31];function a(e){let t=r.exec(e);if(!t)return!1;let a=+t[1],o=+t[2],s=+t[3];return o>=1&&o<=12&&s>=1&&s<=(o===2&&n(a)?29:i[o])}function o(e,t){if(e&&t)return e>t?1:e23||u>59||e&&!o)return!1;if(r<=23&&i<=59&&a<60)return!0;let d=i-u*c,f=r-l*c-+(d<0);return(f===23||f===-1)&&(d===59||d===-1)&&a<61}}function l(e,t){if(!(e&&t))return;let n=new Date(`2020-01-01T`+e).valueOf(),r=new Date(`2020-01-01T`+t).valueOf();if(n&&r)return n-r}function u(e,t){if(!(e&&t))return;let n=s.exec(e),r=s.exec(t);if(n&&r)return e=n[1]+n[2]+n[3],t=r[1]+r[2]+r[3],e>t?1:e=b}function C(e){return Number.isInteger(e)}function ee(){return!0}var te=/[^\\]\\Z/;function ne(e){if(te.test(e))return!1;try{return new RegExp(e),!0}catch{return!1}}})),Nd=r((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.formatLimitDefinition=void 0;var t=jd(),n=X(),r=n.operators,i={formatMaximum:{okStr:`<=`,ok:r.LTE,fail:r.GT},formatMinimum:{okStr:`>=`,ok:r.GTE,fail:r.LT},formatExclusiveMaximum:{okStr:`<`,ok:r.LT,fail:r.GTE},formatExclusiveMinimum:{okStr:`>`,ok:r.GT,fail:r.LTE}};e.formatLimitDefinition={keyword:Object.keys(i),type:`string`,schemaType:`string`,$data:!0,error:{message:({keyword:e,schemaCode:t})=>(0,n.str)`should be ${i[e].okStr} ${t}`,params:({keyword:e,schemaCode:t})=>(0,n._)`{comparison: ${i[e].okStr}, limit: ${t}}`},code(e){let{gen:r,data:a,schemaCode:o,keyword:s,it:c}=e,{opts:l,self:u}=c;if(!l.validateFormats)return;let d=new t.KeywordCxt(c,u.RULES.all.format.definition,`format`);d.$data?f():p();function f(){let t=r.scopeValue(`formats`,{ref:u.formats,code:l.code.formats}),i=r.const(`fmt`,(0,n._)`${t}[${d.schemaCode}]`);e.fail$data((0,n.or)((0,n._)`typeof ${i} != "object"`,(0,n._)`${i} instanceof RegExp`,(0,n._)`typeof ${i}.compare != "function"`,m(i)))}function p(){let t=d.schema,i=u.formats[t];if(!i||i===!0)return;if(typeof i!=`object`||i instanceof RegExp||typeof i.compare!=`function`)throw Error(`"${s}": format "${t}" does not define "compare" function`);let a=r.scopeValue(`formats`,{key:t,ref:i,code:l.code.formats?(0,n._)`${l.code.formats}${(0,n.getProperty)(t)}`:void 0});e.fail$data(m(a))}function m(e){return(0,n._)`${e}.compare(${a}, ${o}) ${i[s].fail} 0`}},dependencies:[`format`]},e.default=t=>(t.addKeyword(e.formatLimitDefinition),t)})),Pd=r(((e,t)=>{Object.defineProperty(e,"__esModule",{value:!0});var n=Md(),r=Nd(),i=X(),a=new i.Name(`fullFormats`),o=new i.Name(`fastFormats`),s=(e,t={keywords:!0})=>{if(Array.isArray(t))return c(e,t,n.fullFormats,a),e;let[i,s]=t.mode===`fast`?[n.fastFormats,o]:[n.fullFormats,a];return c(e,t.formats||n.formatNames,i,s),t.keywords&&(0,r.default)(e),e};s.get=(e,t=`full`)=>{let r=(t===`fast`?n.fastFormats:n.fullFormats)[e];if(!r)throw Error(`Unknown format "${e}"`);return r};function c(e,t,n,r){var a;(a=e.opts.code).formats??(a.formats=(0,i._)`require("ajv-formats/dist/formats").${r}`);for(let r of t)e.addFormat(r,n[r])}t.exports=e=s,Object.defineProperty(e,"__esModule",{value:!0}),e.default=s})),Fd=e(jd(),1),Id=e(Pd(),1);function Ld(){let e=new Fd.default({strict:!1,validateFormats:!0,validateSchema:!1,allErrors:!0});return(0,Id.default)(e),e}var Rd=class{constructor(e){this._ajv=e??Ld()}getValidator(e){let t=`$id`in e&&typeof e.$id==`string`?this._ajv.getSchema(e.$id)??this._ajv.compile(e):this._ajv.compile(e);return e=>t(e)?{valid:!0,data:e,errorMessage:void 0}:{valid:!1,data:void 0,errorMessage:this._ajv.errorsText(t.errors)}}},zd=class{constructor(e){this._client=e}async*callToolStream(e,t=Nc,n){let r=this._client,i={...n,task:n?.task??(r.isToolTask(e.name)?{}:void 0)},a=r.requestStream({method:`tools/call`,params:e},t,i),o=r.getToolOutputValidator(e.name);for await(let t of a){if(t.type===`result`&&o){let n=t.result;if(!n.structuredContent&&!n.isError){yield{type:`error`,error:new Y(J.InvalidRequest,`Tool ${e.name} has an output schema but did not return structured content`)};return}if(n.structuredContent)try{let e=o(n.structuredContent);if(!e.valid){yield{type:`error`,error:new Y(J.InvalidParams,`Structured content does not match the tool's output schema: ${e.errorMessage}`)};return}}catch(e){if(e instanceof Y){yield{type:`error`,error:e};return}yield{type:`error`,error:new Y(J.InvalidParams,`Failed to validate structured content: ${e instanceof Error?e.message:String(e)}`)};return}}yield t}}async getTask(e,t){return this._client.getTask({taskId:e},t)}async getTaskResult(e,t,n){return this._client.getTaskResult({taskId:e},t,n)}async listTasks(e,t){return this._client.listTasks(e?{cursor:e}:void 0,t)}async cancelTask(e,t){return this._client.cancelTask({taskId:e},t)}requestStream(e,t,n){return this._client.requestStream(e,t,n)}};function Bd(e,t,n){if(!e)throw Error(`${n} does not support task creation (required for ${t})`);if(t===`tools/call`&&!e.tools?.call)throw Error(`${n} does not support task creation for tools/call (required for ${t})`)}function Vd(e,t,n){if(!e)throw Error(`${n} does not support task creation (required for ${t})`);switch(t){case`sampling/createMessage`:if(!e.sampling?.createMessage)throw Error(`${n} does not support task creation for sampling/createMessage (required for ${t})`);break;case`elicitation/create`:if(!e.elicitation?.create)throw Error(`${n} does not support task creation for elicitation/create (required for ${t})`)}}function Hd(e,t){if(!(!e||typeof t!=`object`||!t)){if(e.type===`object`&&e.properties&&typeof e.properties==`object`){let n=t,r=e.properties;for(let e of Object.keys(r)){let t=r[e];n[e]===void 0&&Object.prototype.hasOwnProperty.call(t,`default`)&&(n[e]=t.default),n[e]!==void 0&&Hd(t,n[e])}}if(Array.isArray(e.anyOf))for(let n of e.anyOf)typeof n!=`boolean`&&Hd(n,t);if(Array.isArray(e.oneOf))for(let n of e.oneOf)typeof n!=`boolean`&&Hd(n,t)}}function Ud(e){if(!e)return{supportsFormMode:!1,supportsUrlMode:!1};let t=e.form!==void 0,n=e.url!==void 0;return{supportsFormMode:t||!t&&!n,supportsUrlMode:n}}var Wd=class extends Dl{constructor(e,t){super(t),this._clientInfo=e,this._cachedToolOutputValidators=new Map,this._cachedKnownTaskTools=new Set,this._cachedRequiredTaskTools=new Set,this._listChangedDebounceTimers=new Map,this._capabilities=t?.capabilities??{},this._jsonSchemaValidator=t?.jsonSchemaValidator??new Rd,t?.listChanged&&(this._pendingListChangedConfig=t.listChanged)}_setupListChangedHandlers(e){e.tools&&this._serverCapabilities?.tools?.listChanged&&this._setupListChangedHandler(`tools`,Ic,e.tools,async()=>(await this.listTools()).tools),e.prompts&&this._serverCapabilities?.prompts?.listChanged&&this._setupListChangedHandler(`prompts`,Dc,e.prompts,async()=>(await this.listPrompts()).prompts),e.resources&&this._serverCapabilities?.resources?.listChanged&&this._setupListChangedHandler(`resources`,ac,e.resources,async()=>(await this.listResources()).resources)}get experimental(){return this._experimental||={tasks:new zd(this)},this._experimental}registerCapabilities(e){if(this.transport)throw Error(`Cannot register capabilities after connecting to transport`);this._capabilities=kl(this._capabilities,e)}setRequestHandler(e,t){let n=Sl(e)?.method;if(!n)throw Error(`Schema is missing a method literal`);let r=Cl(n);if(typeof r!=`string`)throw Error(`Schema method literal must be a string`);let i=r;return i===`elicitation/create`?super.setRequestHandler(e,async(e,n)=>{let r=xl(ol,e);if(!r.success){let e=r.error instanceof Error?r.error.message:String(r.error);throw new Y(J.InvalidParams,`Invalid elicitation request: ${e}`)}let{params:i}=r.data;i.mode=i.mode??`form`;let{supportsFormMode:a,supportsUrlMode:o}=Ud(this._capabilities.elicitation);if(i.mode===`form`&&!a)throw new Y(J.InvalidParams,`Client does not support form-mode elicitation requests`);if(i.mode===`url`&&!o)throw new Y(J.InvalidParams,`Client does not support URL-mode elicitation requests`);let s=await Promise.resolve(t(e,n));if(i.task){let e=xl(Ns,s);if(!e.success){let t=e.error instanceof Error?e.error.message:String(e.error);throw new Y(J.InvalidParams,`Invalid task creation result: ${t}`)}return e.data}let c=xl(ll,s);if(!c.success){let e=c.error instanceof Error?c.error.message:String(c.error);throw new Y(J.InvalidParams,`Invalid elicitation result: ${e}`)}let l=c.data,u=i.mode===`form`?i.requestedSchema:void 0;if(i.mode===`form`&&l.action===`accept`&&l.content&&u&&this._capabilities.elicitation?.form?.applyDefaults)try{Hd(u,l.content)}catch{}return l}):i===`sampling/createMessage`?super.setRequestHandler(e,async(e,n)=>{let r=xl(Xc,e);if(!r.success){let e=r.error instanceof Error?r.error.message:String(r.error);throw new Y(J.InvalidParams,`Invalid sampling request: ${e}`)}let{params:i}=r.data,a=await Promise.resolve(t(e,n));if(i.task){let e=xl(Ns,a);if(!e.success){let t=e.error instanceof Error?e.error.message:String(e.error);throw new Y(J.InvalidParams,`Invalid task creation result: ${t}`)}return e.data}let o=xl(i.tools||i.toolChoice?Qc:Zc,a);if(!o.success){let e=o.error instanceof Error?o.error.message:String(o.error);throw new Y(J.InvalidParams,`Invalid sampling result: ${e}`)}return o.data}):super.setRequestHandler(e,t)}assertCapability(e,t){if(!this._serverCapabilities?.[e])throw Error(`Server does not support ${e} (required for ${t})`)}async connect(e,t){if(await super.connect(e),e.sessionId===void 0)try{let n=await this.request({method:`initialize`,params:{protocolVersion:zo,capabilities:this._capabilities,clientInfo:this._clientInfo}},xs,t);if(n===void 0)throw Error(`Server sent invalid initialize result: ${n}`);if(!Bo.includes(n.protocolVersion))throw Error(`Server's protocol version is not supported: ${n.protocolVersion}`);this._serverCapabilities=n.capabilities,this._serverVersion=n.serverInfo,e.setProtocolVersion&&e.setProtocolVersion(n.protocolVersion),this._instructions=n.instructions,await this.notification({method:`notifications/initialized`}),this._pendingListChangedConfig&&=(this._setupListChangedHandlers(this._pendingListChangedConfig),void 0)}catch(e){throw this.close(),e}}getServerCapabilities(){return this._serverCapabilities}getServerVersion(){return this._serverVersion}getInstructions(){return this._instructions}assertCapabilityForMethod(e){switch(e){case`logging/setLevel`:if(!this._serverCapabilities?.logging)throw Error(`Server does not support logging (required for ${e})`);break;case`prompts/get`:case`prompts/list`:if(!this._serverCapabilities?.prompts)throw Error(`Server does not support prompts (required for ${e})`);break;case`resources/list`:case`resources/templates/list`:case`resources/read`:case`resources/subscribe`:case`resources/unsubscribe`:if(!this._serverCapabilities?.resources)throw Error(`Server does not support resources (required for ${e})`);if(e===`resources/subscribe`&&!this._serverCapabilities.resources.subscribe)throw Error(`Server does not support resource subscriptions (required for ${e})`);break;case`tools/call`:case`tools/list`:if(!this._serverCapabilities?.tools)throw Error(`Server does not support tools (required for ${e})`);break;case`completion/complete`:if(!this._serverCapabilities?.completions)throw Error(`Server does not support completions (required for ${e})`)}}assertNotificationCapability(e){if(e===`notifications/roots/list_changed`&&!this._capabilities.roots?.listChanged)throw Error(`Client does not support roots list changed notifications (required for ${e})`)}assertRequestHandlerCapability(e){if(this._capabilities)switch(e){case`sampling/createMessage`:if(!this._capabilities.sampling)throw Error(`Client does not support sampling capability (required for ${e})`);break;case`elicitation/create`:if(!this._capabilities.elicitation)throw Error(`Client does not support elicitation capability (required for ${e})`);break;case`roots/list`:if(!this._capabilities.roots)throw Error(`Client does not support roots capability (required for ${e})`);break;case`tasks/get`:case`tasks/list`:case`tasks/result`:case`tasks/cancel`:if(!this._capabilities.tasks)throw Error(`Client does not support tasks capability (required for ${e})`)}}assertTaskCapability(e){Bd(this._serverCapabilities?.tasks?.requests,e,`Server`)}assertTaskHandlerCapability(e){this._capabilities&&Vd(this._capabilities.tasks?.requests,e,`Client`)}async ping(e){return this.request({method:`ping`},cs,e)}async complete(e,t){return this.request({method:`completion/complete`,params:e},ml,t)}async setLoggingLevel(e,t){return this.request({method:`logging/setLevel`,params:{level:e}},cs,t)}async getPrompt(e,t){return this.request({method:`prompts/get`,params:e},Ec,t)}async listPrompts(e,t){return this.request({method:`prompts/list`,params:e},hc,t)}async listResources(e,t){return this.request({method:`resources/list`,params:e},Qs,t)}async listResourceTemplates(e,t){return this.request({method:`resources/templates/list`,params:e},ec,t)}async readResource(e,t){return this.request({method:`resources/read`,params:e},ic,t)}async subscribeResource(e,t){return this.request({method:`resources/subscribe`,params:e},cs,t)}async unsubscribeResource(e,t){return this.request({method:`resources/unsubscribe`,params:e},cs,t)}async callTool(e,t=Nc,n){if(this.isToolTaskRequired(e.name))throw new Y(J.InvalidRequest,`Tool "${e.name}" requires task-based execution. Use client.experimental.tasks.callToolStream() instead.`);let r=await this.request({method:`tools/call`,params:e},t,n),i=this.getToolOutputValidator(e.name);if(i){if(!r.structuredContent&&!r.isError)throw new Y(J.InvalidRequest,`Tool ${e.name} has an output schema but did not return structured content`);if(r.structuredContent)try{let e=i(r.structuredContent);if(!e.valid)throw new Y(J.InvalidParams,`Structured content does not match the tool's output schema: ${e.errorMessage}`)}catch(e){throw e instanceof Y?e:new Y(J.InvalidParams,`Failed to validate structured content: ${e instanceof Error?e.message:String(e)}`)}}return r}isToolTask(e){return this._serverCapabilities?.tasks?.requests?.tools?.call?this._cachedKnownTaskTools.has(e):!1}isToolTaskRequired(e){return this._cachedRequiredTaskTools.has(e)}cacheToolMetadata(e){this._cachedToolOutputValidators.clear(),this._cachedKnownTaskTools.clear(),this._cachedRequiredTaskTools.clear();for(let t of e){if(t.outputSchema){let e=this._jsonSchemaValidator.getValidator(t.outputSchema);this._cachedToolOutputValidators.set(t.name,e)}let e=t.execution?.taskSupport;(e===`required`||e===`optional`)&&this._cachedKnownTaskTools.add(t.name),e===`required`&&this._cachedRequiredTaskTools.add(t.name)}}getToolOutputValidator(e){return this._cachedToolOutputValidators.get(e)}async listTools(e,t){let n=await this.request({method:`tools/list`,params:e},Mc,t);return this.cacheToolMetadata(n.tools),n}_setupListChangedHandler(e,t,n,r){let i=Lc.safeParse(n);if(!i.success)throw Error(`Invalid ${e} listChanged options: ${i.error.message}`);if(typeof n.onChanged!=`function`)throw Error(`Invalid ${e} listChanged options: onChanged must be a function`);let{autoRefresh:a,debounceMs:o}=i.data,{onChanged:s}=n,c=async()=>{if(!a){s(null,null);return}try{let e=await r();s(null,e)}catch(e){let t=e instanceof Error?e:Error(String(e));s(t,null)}};this.setNotificationHandler(t,()=>{if(o){let t=this._listChangedDebounceTimers.get(e);t&&clearTimeout(t);let n=setTimeout(c,o);this._listChangedDebounceTimers.set(e,n)}else c()})}async sendRootsListChanged(){return this.notification({method:`notifications/roots/list_changed`})}},Gd=e(r((e=>{var t=/; *([!#$%&'*+.^_`|~0-9A-Za-z-]+) *= *("(?:[\u000b\u0020\u0021\u0023-\u005b\u005d-\u007e\u0080-\u00ff]|\\[\u000b\u0020-\u00ff])*"|[!#$%&'*+.^_`|~0-9A-Za-z-]+) */g,n=/\\([\u000b\u0020-\u00ff])/g,r=/^[!#$%&'*+.^_`|~0-9A-Za-z-]+\/[!#$%&'*+.^_`|~0-9A-Za-z-]+$/;e.parse=i;function i(e){if(!e)throw TypeError(`argument string is required`);var i=typeof e==`object`?a(e):e;if(typeof i!=`string`)throw TypeError(`argument string is required to be a string`);var s=i.indexOf(`;`),c=s===-1?i.trim():i.slice(0,s).trim();if(!r.test(c))throw TypeError(`invalid media type`);var l=new o(c.toLowerCase());if(s!==-1){var u,d,f;for(t.lastIndex=s;d=t.exec(i);){if(d.index!==s)throw TypeError(`invalid parameter format`);s+=d[0].length,u=d[1].toLowerCase(),f=d[2],f.charCodeAt(0)===34&&(f=f.slice(1,-1),f.indexOf(`\\`)!==-1&&(f=f.replace(n,`$1`))),l.parameters[u]=f}if(s!==i.length)throw TypeError(`invalid parameter format`)}return l}function a(e){var t;if(typeof e.getHeader==`function`?t=e.getHeader(`content-type`):typeof e.headers==`object`&&(t=e.headers&&e.headers[`content-type`]),typeof t!=`string`)throw TypeError(`content-type header is missing from object`);return t}function o(e){this.parameters=Object.create(null),this.type=e}}))(),1);function Kd(e){if(e)try{return Gd.parse(e).type}catch{let t=(e.split(`;`,1)[0]??``).trim().toLowerCase();return t===``||e.slice(t.length).includes(`,`)?void 0:t}}function qd(e){return e?e instanceof Headers?Object.fromEntries(e.entries()):Array.isArray(e)?Object.fromEntries(e):{...e}:{}}function Jd(e=fetch,t){return t?async(n,r)=>e(n,{...t,...r,headers:r?.headers?{...qd(t.headers),...qd(r.headers)}:t.headers}):e}var Yd=globalThis.crypto;async function Xd(e){return(await Yd).getRandomValues(new Uint8Array(e))}async function Zd(e){let t=``;for(;t.length128)throw`Expected a length between 43 and 128. Received ${e}.`;let t=await Qd(e);return{code_verifier:t,code_challenge:await $d(t)}}var Q=wa().superRefine((e,t)=>{if(!URL.canParse(e))return t.addIssue({code:Io.custom,message:`URL must be parseable`,fatal:!0}),h}).refine(e=>{let t=new URL(e);return t.protocol!==`javascript:`&&t.protocol!==`data:`&&t.protocol!==`vbscript:`},{message:`URL cannot use javascript:, data:, or vbscript: scheme`}),tf=B({resource:N().url(),authorization_servers:R(Q).optional(),jwks_uri:N().url().optional(),scopes_supported:R(N()).optional(),bearer_methods_supported:R(N()).optional(),resource_signing_alg_values_supported:R(N()).optional(),resource_name:N().optional(),resource_documentation:N().optional(),resource_policy_uri:N().url().optional(),resource_tos_uri:N().url().optional(),tls_client_certificate_bound_access_tokens:I().optional(),authorization_details_types_supported:R(N()).optional(),dpop_signing_alg_values_supported:R(N()).optional(),dpop_bound_access_tokens_required:I().optional()}),nf=B({issuer:N(),authorization_endpoint:Q,token_endpoint:Q,registration_endpoint:Q.optional(),scopes_supported:R(N()).optional(),response_types_supported:R(N()),response_modes_supported:R(N()).optional(),grant_types_supported:R(N()).optional(),token_endpoint_auth_methods_supported:R(N()).optional(),token_endpoint_auth_signing_alg_values_supported:R(N()).optional(),service_documentation:Q.optional(),revocation_endpoint:Q.optional(),revocation_endpoint_auth_methods_supported:R(N()).optional(),revocation_endpoint_auth_signing_alg_values_supported:R(N()).optional(),introspection_endpoint:N().optional(),introspection_endpoint_auth_methods_supported:R(N()).optional(),introspection_endpoint_auth_signing_alg_values_supported:R(N()).optional(),code_challenge_methods_supported:R(N()).optional(),client_id_metadata_document_supported:I().optional()}),rf=z({...B({issuer:N(),authorization_endpoint:Q,token_endpoint:Q,userinfo_endpoint:Q.optional(),jwks_uri:Q,registration_endpoint:Q.optional(),scopes_supported:R(N()).optional(),response_types_supported:R(N()),response_modes_supported:R(N()).optional(),grant_types_supported:R(N()).optional(),acr_values_supported:R(N()).optional(),subject_types_supported:R(N()),id_token_signing_alg_values_supported:R(N()),id_token_encryption_alg_values_supported:R(N()).optional(),id_token_encryption_enc_values_supported:R(N()).optional(),userinfo_signing_alg_values_supported:R(N()).optional(),userinfo_encryption_alg_values_supported:R(N()).optional(),userinfo_encryption_enc_values_supported:R(N()).optional(),request_object_signing_alg_values_supported:R(N()).optional(),request_object_encryption_alg_values_supported:R(N()).optional(),request_object_encryption_enc_values_supported:R(N()).optional(),token_endpoint_auth_methods_supported:R(N()).optional(),token_endpoint_auth_signing_alg_values_supported:R(N()).optional(),display_values_supported:R(N()).optional(),claim_types_supported:R(N()).optional(),claims_supported:R(N()).optional(),service_documentation:N().optional(),claims_locales_supported:R(N()).optional(),ui_locales_supported:R(N()).optional(),claims_parameter_supported:I().optional(),request_parameter_supported:I().optional(),request_uri_parameter_supported:I().optional(),require_request_uri_registration:I().optional(),op_policy_uri:Q.optional(),op_tos_uri:Q.optional(),client_id_metadata_document_supported:I().optional()}).shape,...nf.pick({code_challenge_methods_supported:!0}).shape}),af=z({access_token:N(),id_token:N().optional(),token_type:N(),expires_in:Ro().optional(),scope:N().optional(),refresh_token:N().optional()}).strip(),of=z({error:N(),error_description:N().optional(),error_uri:N().optional()}),sf=Q.optional().or(U(``).transform(()=>void 0)),cf=z({redirect_uris:R(Q),token_endpoint_auth_method:N().optional(),grant_types:R(N()).optional(),response_types:R(N()).optional(),client_name:N().optional(),client_uri:Q.optional(),logo_uri:sf,scope:N().optional(),contacts:R(N()).optional(),tos_uri:sf,policy_uri:N().optional(),jwks_uri:Q.optional(),jwks:Ya().optional(),software_id:N().optional(),software_version:N().optional(),software_statement:N().optional()}).strip(),lf=z({client_id:N(),client_secret:N().optional(),client_id_issued_at:F().optional(),client_secret_expires_at:F().optional()}).strip(),uf=cf.merge(lf);z({error:N(),error_description:N().optional()}).strip(),z({token:N(),token_type_hint:N().optional()}).strip();function df(e){let t=typeof e==`string`?new URL(e):new URL(e.href);return t.hash=``,t}function ff({requestedResource:e,configuredResource:t}){let n=typeof e==`string`?new URL(e):new URL(e.href),r=typeof t==`string`?new URL(t):new URL(t.href);if(n.origin!==r.origin||n.pathname.length=400&&e.status<500&&t!==`/`}async function Qf(e,t,n,r){let i=new URL(e),a=r?.protocolVersion??`2025-11-25`,o;if(r?.metadataUrl)o=new URL(r.metadataUrl);else{let e=Yf(t,i.pathname);o=new URL(e,r?.metadataServerUrl??i),o.search=i.search}let s=await Xf(o,a,n);return!r?.metadataUrl&&Zf(s,i.pathname)&&(s=await Xf(new URL(`/.well-known/${t}`,i),a,n)),s}function $f(e){let t=typeof e==`string`?new URL(e):e,n=t.pathname!==`/`,r=[];if(!n)return r.push({url:new URL(`/.well-known/oauth-authorization-server`,t.origin),type:`oauth`}),r.push({url:new URL(`/.well-known/openid-configuration`,t.origin),type:`oidc`}),r;let i=t.pathname;return i.endsWith(`/`)&&(i=i.slice(0,-1)),r.push({url:new URL(`/.well-known/oauth-authorization-server${i}`,t.origin),type:`oauth`}),r.push({url:new URL(`/.well-known/openid-configuration${i}`,t.origin),type:`oidc`}),r.push({url:new URL(`${i}/.well-known/openid-configuration`,t.origin),type:`oidc`}),r}async function ep(e,{fetchFn:t=fetch,protocolVersion:n=zo}={}){let r={"MCP-Protocol-Version":n,Accept:`application/json`},i=$f(e);for(let{url:e,type:n}of i){let i=await Jf(e,r,t);if(i){if(!i.ok){if(await i.body?.cancel(),i.status>=400&&i.status<500)continue;throw Error(`HTTP ${i.status} trying to load ${n===`oauth`?`OAuth`:`OpenID provider`} metadata from ${e}`)}return n===`oauth`?nf.parse(await i.json()):rf.parse(await i.json())}}}async function tp(e,t){let n,r;try{n=await qf(e,{resourceMetadataUrl:t?.resourceMetadataUrl},t?.fetchFn),n.authorization_servers&&n.authorization_servers.length>0&&(r=n.authorization_servers[0])}catch{}r||=String(new URL(`/`,e));let i=await ep(r,{fetchFn:t?.fetchFn});return{authorizationServerUrl:r,authorizationServerMetadata:i,resourceMetadata:n}}async function np(e,{metadata:t,clientInformation:n,redirectUrl:r,scope:i,state:a,resource:o}){let s;if(t){if(s=new URL(t.authorization_endpoint),!t.response_types_supported.includes(Nf))throw Error(`Incompatible auth server: does not support response type ${Nf}`);if(t.code_challenge_methods_supported&&!t.code_challenge_methods_supported.includes(Pf))throw Error(`Incompatible auth server: does not support code challenge method ${Pf}`)}else s=new URL(`/authorize`,e);let c=await ef(),l=c.code_verifier,u=c.code_challenge;return s.searchParams.set(`response_type`,Nf),s.searchParams.set(`client_id`,n.client_id),s.searchParams.set(`code_challenge`,u),s.searchParams.set(`code_challenge_method`,Pf),s.searchParams.set(`redirect_uri`,String(r)),a&&s.searchParams.set(`state`,a),i&&s.searchParams.set(`scope`,i),i?.includes(`offline_access`)&&s.searchParams.append(`prompt`,`consent`),o&&s.searchParams.set(`resource`,o.href),{authorizationUrl:s,codeVerifier:l}}function rp(e,t,n){return new URLSearchParams({grant_type:`authorization_code`,code:e,code_verifier:t,redirect_uri:String(n)})}async function ip(e,{metadata:t,tokenRequestParams:n,clientInformation:r,addClientAuthentication:i,resource:a,fetchFn:o}){let s=t?.token_endpoint?new URL(t.token_endpoint):new URL(`/token`,e),c=new Headers({"Content-Type":`application/x-www-form-urlencoded`,Accept:`application/json`});a&&n.set(`resource`,a.href),i?await i(c,n,s,t):r&&If(Ff(r,t?.token_endpoint_auth_methods_supported??[]),r,c,n);let l=await(o??fetch)(s,{method:`POST`,headers:c,body:n});if(!l.ok)throw await Bf(l);return af.parse(await l.json())}async function ap(e,{metadata:t,clientInformation:n,refreshToken:r,resource:i,addClientAuthentication:a,fetchFn:o}){return{refresh_token:r,...await ip(e,{metadata:t,tokenRequestParams:new URLSearchParams({grant_type:`refresh_token`,refresh_token:r}),clientInformation:n,addClientAuthentication:a,resource:i,fetchFn:o})}}async function op(e,t,{metadata:n,resource:r,authorizationCode:i,fetchFn:a}={}){let o=e.clientMetadata.scope,s;if(e.prepareTokenRequest&&(s=await e.prepareTokenRequest(o)),!s){if(!i)throw Error(`Either provider.prepareTokenRequest() or authorizationCode is required`);if(!e.redirectUrl)throw Error(`redirectUrl is required for authorization_code flow`);s=rp(i,await e.codeVerifier(),e.redirectUrl)}let c=await e.clientInformation();return ip(t,{metadata:n,tokenRequestParams:s,clientInformation:c??void 0,addClientAuthentication:e.addClientAuthentication,resource:r,fetchFn:a})}async function sp(e,{metadata:t,clientMetadata:n,scope:r,fetchFn:i}){let a;if(t){if(!t.registration_endpoint)throw Error(`Incompatible auth server: does not support dynamic client registration`);a=new URL(t.registration_endpoint)}else a=new URL(`/register`,e);let o=await(i??fetch)(a,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({...n,...r===void 0?{}:{scope:r}})});if(!o.ok)throw await Bf(o);return uf.parse(await o.json())}var cp=class extends Error{constructor(e,t){super(e),this.name=`ParseError`,this.type=t.type,this.field=t.field,this.value=t.value,this.line=t.line}},lp=10,up=13,dp=32;function fp(e){}function pp(e){if(typeof e==`function`)throw TypeError("`config` must be an object, got a function instead. Did you mean `createParser({onEvent: fn})`?");let{onEvent:t=fp,onError:n=fp,onRetry:r=fp,onComment:i,maxBufferSize:a}=e,o=[],s=0,c=!0,l,u=``,d=0,f,p=!1;function m(e){if(p)throw Error("Cannot feed parser: it was terminated after exceeding the configured max buffer size. Call `reset()` to resume parsing.");if(c&&(c=!1,e.charCodeAt(0)===239&&e.charCodeAt(1)===187&&e.charCodeAt(2)===191&&(e=e.slice(3))),o.length===0){let t=g(e);t!==``&&(o.push(t),s=t.length),h();return}if(e.indexOf(` -`)===-1&&e.indexOf(`\r`)===-1){o.push(e),s+=e.length,h();return}o.push(e);let t=o.join(``);o.length=0,s=0;let n=g(t);n!==``&&(o.push(n),s=n.length),h()}function h(){a!==void 0&&(s+u.length<=a||(p=!0,o.length=0,s=0,l=void 0,u=``,d=0,f=void 0,n(new cp(`Buffered data exceeded max buffer size of ${a} characters`,{type:`max-buffer-size-exceeded`}))))}function g(e){let n=0;if(e.indexOf(`\r`)===-1){let r=e.indexOf(` -`,n);for(;r!==-1;){if(n===r){d>0&&t({id:l,event:f,data:u}),l=void 0,u=``,d=0,f=void 0,n=r+1,r=e.indexOf(` -`,n);continue}let i=e.charCodeAt(n);if(mp(e,n,i)){let i=e.charCodeAt(n+5)===dp?n+6:n+5,a=e.slice(i,r);if(d===0&&e.charCodeAt(r+1)===lp){t({id:l,event:f,data:a}),l=void 0,u=``,f=void 0,n=r+2,r=e.indexOf(` -`,n);continue}u=d===0?a:`${u} -${a}`,d++}else hp(e,n,i)?f=e.slice(e.charCodeAt(n+6)===dp?n+7:n+6,r)||void 0:_(e,n,r);n=r+1,r=e.indexOf(` -`,n)}return e.slice(n)}for(;n20?`${e.slice(0,20)}\u2026`:e}"`,{type:`unknown-field`,field:e,value:t,line:i}))}}function y(){d>0&&t({id:l,event:f,data:u}),l=void 0,u=``,d=0,f=void 0}function b(e={}){if(e.consume&&o.length>0){let e=o.join(``);_(e,0,e.length)}c=!0,l=void 0,u=``,d=0,f=void 0,o.length=0,s=0,p=!1}return{feed:m,reset:b}}function mp(e,t,n){return n===100&&e.charCodeAt(t+1)===97&&e.charCodeAt(t+2)===116&&e.charCodeAt(t+3)===97&&e.charCodeAt(t+4)===58}function hp(e,t,n){return n===101&&e.charCodeAt(t+1)===118&&e.charCodeAt(t+2)===101&&e.charCodeAt(t+3)===110&&e.charCodeAt(t+4)===116&&e.charCodeAt(t+5)===58}var gp=class extends TransformStream{constructor({onError:e,onRetry:t,onComment:n,maxBufferSize:r}={}){let i;super({start(a){i=pp({onEvent:e=>{a.enqueue(e)},onError(t){typeof e==`function`&&e(t),(e===`terminate`||t.type===`max-buffer-size-exceeded`)&&a.error(t)},onRetry:t,onComment:n,maxBufferSize:r})},transform(e){i.feed(e)}})}},_p={initialReconnectionDelay:1e3,maxReconnectionDelay:3e4,reconnectionDelayGrowFactor:1.5,maxRetries:2},vp=class extends Error{constructor(e,t){super(`Streamable HTTP error: ${t}`),this.code=e}},yp=class{constructor(e,t){this._hasCompletedAuthFlow=!1,this._url=e,this._resourceMetadataUrl=void 0,this._scope=void 0,this._requestInit=t?.requestInit,this._authProvider=t?.authProvider,this._fetch=t?.fetch,this._fetchWithInit=Jd(t?.fetch,t?.requestInit),this._sessionId=t?.sessionId,this._reconnectionOptions=t?.reconnectionOptions??_p}async _authThenStart(){if(!this._authProvider)throw new jf(`No auth provider`);let e;try{e=await Vf(this._authProvider,{serverUrl:this._url,resourceMetadataUrl:this._resourceMetadataUrl,scope:this._scope,fetchFn:this._fetchWithInit})}catch(e){throw this.onerror?.(e),e}if(e!==`AUTHORIZED`)throw new jf;return await this._startOrAuthSse({resumptionToken:void 0})}async _commonHeaders(){let e={};if(this._authProvider){let t=await this._authProvider.tokens();t&&(e.Authorization=`Bearer ${t.access_token}`)}this._sessionId&&(e[`mcp-session-id`]=this._sessionId),this._protocolVersion&&(e[`mcp-protocol-version`]=this._protocolVersion);let t=qd(this._requestInit?.headers);return new Headers({...e,...t})}async _startOrAuthSse(e){let{resumptionToken:t}=e;try{let n=await this._commonHeaders();n.set(`Accept`,`text/event-stream`),t&&n.set(`last-event-id`,t);let r=await(this._fetch??fetch)(this._url,{method:`GET`,headers:n,signal:this._abortController?.signal});if(!r.ok){if(await r.body?.cancel(),r.status===401&&this._authProvider)return await this._authThenStart();if(r.status===405)return;throw new vp(r.status,`Failed to open SSE stream: ${r.statusText}`)}this._handleSseStream(r.body,e,!0)}catch(e){throw this.onerror?.(e),e}}_getNextReconnectionDelay(e){if(this._serverRetryMs!==void 0)return this._serverRetryMs;let t=this._reconnectionOptions.initialReconnectionDelay,n=this._reconnectionOptions.reconnectionDelayGrowFactor,r=this._reconnectionOptions.maxReconnectionDelay;return Math.min(t*n**+e,r)}_scheduleReconnection(e,t=0){let n=this._reconnectionOptions.maxRetries;if(t>=n){this.onerror?.(Error(`Maximum reconnection attempts (${n}) exceeded.`));return}let r=this._getNextReconnectionDelay(t);this._reconnectionTimeout=setTimeout(()=>{this._startOrAuthSse(e).catch(n=>{this.onerror?.(Error(`Failed to reconnect SSE stream: ${n instanceof Error?n.message:String(n)}`)),this._scheduleReconnection(e,t+1)})},r)}_handleSseStream(e,t,n){if(!e)return;let{onresumptiontoken:r,replayMessageId:i}=t,a,o=!1,s=!1;(async()=>{try{let t=e.pipeThrough(new TextDecoderStream).pipeThrough(new gp({onRetry:e=>{this._serverRetryMs=e}})).getReader();for(;;){let{value:e,done:n}=await t.read();if(n)break;if(e.id&&(a=e.id,o=!0,r?.(e.id)),e.data&&(!e.event||e.event===`message`))try{let t=ss.parse(JSON.parse(e.data));is(t)&&(s=!0,i!==void 0&&(t.id=i)),this.onmessage?.(t)}catch(e){this.onerror?.(e)}}(n||o)&&!s&&this._abortController&&!this._abortController.signal.aborted&&this._scheduleReconnection({resumptionToken:a,onresumptiontoken:r,replayMessageId:i},0)}catch(e){if(this.onerror?.(Error(`SSE stream disconnected: ${e}`)),(n||o)&&!s&&this._abortController&&!this._abortController.signal.aborted)try{this._scheduleReconnection({resumptionToken:a,onresumptiontoken:r,replayMessageId:i},0)}catch(e){this.onerror?.(Error(`Failed to reconnect: ${e instanceof Error?e.message:String(e)}`))}}})()}async start(){if(this._abortController)throw Error(`StreamableHTTPClientTransport already started! If using Client class, note that connect() calls start() automatically.`);this._abortController=new AbortController}async finishAuth(e){if(!this._authProvider)throw new jf(`No auth provider`);if(await Vf(this._authProvider,{serverUrl:this._url,authorizationCode:e,resourceMetadataUrl:this._resourceMetadataUrl,scope:this._scope,fetchFn:this._fetchWithInit})!==`AUTHORIZED`)throw new jf(`Failed to authorize`)}async close(){this._reconnectionTimeout&&=(clearTimeout(this._reconnectionTimeout),void 0),this._abortController?.abort(),this.onclose?.()}async send(e,t){try{let{resumptionToken:n,onresumptiontoken:r}=t||{};if(n){this._startOrAuthSse({resumptionToken:n,replayMessageId:es(e)?e.id:void 0}).catch(e=>this.onerror?.(e));return}let i=await this._commonHeaders();i.set(`content-type`,`application/json`),i.set(`accept`,`application/json, text/event-stream`);let a={...this._requestInit,method:`POST`,headers:i,body:JSON.stringify(e),signal:this._abortController?.signal},o=await(this._fetch??fetch)(this._url,a),s=o.headers.get(`mcp-session-id`);if(s&&(this._sessionId=s),!o.ok){let t=await o.text().catch(()=>null);if(o.status===401&&this._authProvider){if(this._hasCompletedAuthFlow)throw new vp(401,`Server returned 401 after successful authentication`);let{resourceMetadataUrl:t,scope:n}=Gf(o);if(this._resourceMetadataUrl=t,this._scope=n,await Vf(this._authProvider,{serverUrl:this._url,resourceMetadataUrl:this._resourceMetadataUrl,scope:this._scope,fetchFn:this._fetchWithInit})!==`AUTHORIZED`)throw new jf;return this._hasCompletedAuthFlow=!0,this.send(e)}if(o.status===403&&this._authProvider){let{resourceMetadataUrl:t,scope:n,error:r}=Gf(o);if(r===`insufficient_scope`){let r=o.headers.get(`WWW-Authenticate`);if(this._lastUpscopingHeader===r)throw new vp(403,`Server returned 403 after trying upscoping`);if(n&&(this._scope=n),t&&(this._resourceMetadataUrl=t),this._lastUpscopingHeader=r??void 0,await Vf(this._authProvider,{serverUrl:this._url,resourceMetadataUrl:this._resourceMetadataUrl,scope:this._scope,fetchFn:this._fetch})!==`AUTHORIZED`)throw new jf;return this.send(e)}}throw new vp(o.status,`Error POSTing to endpoint: ${t}`)}if(this._hasCompletedAuthFlow=!1,this._lastUpscopingHeader=void 0,o.status===202){await o.body?.cancel(),Cs(e)&&this._startOrAuthSse({resumptionToken:void 0}).catch(e=>this.onerror?.(e));return}let c=(Array.isArray(e)?e:[e]).filter(e=>`method`in e&&`id`in e&&e.id!==void 0).length>0,l=o.headers.get(`content-type`),u=Kd(l);if(c)if(u===`text/event-stream`)this._handleSseStream(o.body,{onresumptiontoken:r},!1);else if(u===`application/json`){let e=await o.json(),t=Array.isArray(e)?e.map(e=>ss.parse(e)):[ss.parse(e)];for(let e of t)this.onmessage?.(e)}else throw await o.body?.cancel(),new vp(-1,`Unexpected content type: ${l}`);else await o.body?.cancel()}catch(e){throw this.onerror?.(e),e}}get sessionId(){return this._sessionId}async terminateSession(){if(this._sessionId)try{let e=await this._commonHeaders(),t={...this._requestInit,method:`DELETE`,headers:e,signal:this._abortController?.signal},n=await(this._fetch??fetch)(this._url,t);if(await n.body?.cancel(),!n.ok&&n.status!==405)throw new vp(n.status,`Failed to terminate session: ${n.statusText}`);this._sessionId=void 0}catch(e){throw this.onerror?.(e),e}}setProtocolVersion(e){this._protocolVersion=e}get protocolVersion(){return this._protocolVersion}async resumeStream(e,t){await this._startOrAuthSse({resumptionToken:e,onresumptiontoken:t?.onresumptiontoken})}},bp=e(n(),1),xp=t(),Sp=`text/html;profile=mcp-app`,Cp=`io.modelcontextprotocol/ui`,wp=3,Tp=5,Ep=2e3,Dp={observability_overview:620,service_topology:760,service_performance:700,trace_detail:720,search_logs:720},Op=class extends Error{},kp=null,Ap=null;async function jp(){let e=new yp(new URL(`/api/mcp`,location.origin),{fetch:(e,t)=>d(e,t)}),t=new Wd({name:`fanout-browser`,version:`0.2.0`},{capabilities:{extensions:{[Cp]:{mimeTypes:[Sp]}}}});try{await t.connect(e);let n={client:t,references:0,closed:!1,closeListeners:new Set};return t.onclose=()=>Np(n,!1),t.onerror=()=>Np(n,!0),n}catch(t){throw await e.close().catch(()=>void 0),t}}async function Mp(){for(let e=0;e{Ap===e&&!t.closed&&(kp=t)}).catch(()=>{Ap===e&&(Ap=null)})}let e=Ap;if(!e)continue;let t=await e;if(t.closed){Ap===e&&(Ap=null);continue}return t.closeTimer&&=(clearTimeout(t.closeTimer),void 0),t.references+=1,t}throw Error(`MCP connection closed during setup`)}function Np(e,t){if(!e.closed){e.closed=!0,e.closeTimer&&clearTimeout(e.closeTimer),e.closeTimer=void 0,kp===e&&(kp=null),Ap=null;for(let t of[...e.closeListeners])t();t&&e.client.close().catch(()=>void 0)}}function Pp(e){e.references=Math.max(0,e.references-1),!(e.closed||e.references||e.closeTimer)&&(e.closeTimer=setTimeout(()=>{e.closeTimer=void 0,!(e.references||kp!==e)&&(e.closed=!0,kp=null,Ap=null,e.client.close().catch(()=>void 0))},0))}function Fp(e){return typeof e==`object`&&e&&!Array.isArray(e)?e:void 0}function Ip(e,t){if(!Array.isArray(e))return[];let n=new Set(t);return e.filter(e=>{if(typeof e!=`string`||/[\s;'\"]/.test(e))return!1;let t=e.match(/^([a-z]+):\/\/([^/]+)$/i);return!!(t&&n.has(t[1].toLowerCase()))})}function Lp(e){let t=Fp(Fp(Fp(e)?.ui)?.csp),n=Ip(t?.connectDomains,[`http`,`https`,`ws`,`wss`]),r=Ip(t?.resourceDomains,[`http`,`https`]),i=Ip(t?.frameDomains,[`http`,`https`]),a=Ip(t?.baseUriDomains,[`http`,`https`]),o=r.length?` ${r.join(` `)}`:``,s=[`default-src 'none'`,`script-src 'self' 'unsafe-inline'${o}`,`style-src 'self' 'unsafe-inline'${o}`,`img-src 'self' data:${o}`,`media-src 'self' data:${o}`,`connect-src ${n.length?n.join(` `):`'none'`}`];return r.length&&s.push(`font-src 'self' ${r.join(` `)}`),i.length&&s.push(`frame-src ${i.join(` `)}`),a.length&&s.push(`base-uri ${a.join(` `)}`),`${s.join(`; `)};`}function Rp(e,t){let n=``;return/]*)?>/i.test(e)?e.replace(/]*)?>/i,e=>`${e}${n}`):/]*)?>/i.test(e)?e.replace(/]*)?>/i,e=>`${e}${n}`):`${n}${e}`}function zp(e){return e.filter(e=>e.type===`text`).map(e=>String(e.text??``)).join(` -`)}function Bp({content:e,onMessage:t}){let n=(0,bp.useRef)(null),r=(0,bp.useRef)(null),i=(0,bp.useRef)(null),a=(0,bp.useRef)(null),[o,s]=(0,bp.useState)(``),d=Dp[e.toolName]??620,[m,h]=(0,bp.useState)(d),[g,_]=(0,bp.useState)(``),[v,y]=(0,bp.useState)(0),b=(0,bp.useRef)(0);(0,bp.useEffect)(()=>{b.current=0},[e.resourceUri]),(0,bp.useEffect)(()=>{let t=!1,n;s(``),_(``);let o=()=>{let e=b.current+1;if(e>Tp)return;b.current=e;let t=e===1?0:Math.min(750*2**(e-2),6e3);t===0?y(e=>e+1):n=setTimeout(()=>y(e=>e+1),t)},c=()=>o();async function l(){try{let n=await Mp();if(t){Pp(n);return}i.current=n,n.closeListeners.add(c),r.current=n.client;let a=(await n.client.readResource({uri:e.resourceUri})).contents[0];if(!a||!(`text`in a)||!a.text)throw new Op(`MCP App resource has no HTML content`);if(a.uri!==e.resourceUri)throw new Op(`MCP App resource URI does not match the requested URI`);if(a.mimeType!==Sp)throw new Op(`MCP App resource has an unsupported MIME type`);t||(b.current=0,s(Rp(a.text,a._meta)))}catch(e){console.error(`MCP app resource load failed`,e),t||(_(`This view could not be loaded. Please try again.`),b.current>0&&!(e instanceof Op)&&o())}}return l(),()=>{t=!0,n&&clearTimeout(n);let e=a.current?.teardownResource({}).catch(()=>void 0)??Promise.resolve(),o=i.current;o&&(o.closeListeners.delete(c),e.finally(()=>Pp(o))),a.current=null,r.current=null,i.current=null}},[e.resourceUri,v]);async function x(){let i=n.current,s=r.current;if(!(!i?.contentWindow||!o||!s||a.current))try{let n=new ru(null,{name:`Fanout`,version:`0.2.0`},{openLinks:{},serverTools:{},logging:{}},{hostContext:{theme:`light`,displayMode:`inline`}});n.oncalltool=(e,t)=>s.request({method:`tools/call`,params:e},Nc,{signal:t.signal}),a.current=n,n.onsizechange=({height:e})=>{e&&h(Math.min(Ep,Math.max(d,Math.ceil(e)+32)))},n.onmessage=async({content:e})=>{let n=zp(e);return n?(await t(n),{}):{isError:!0}},n.oninitialized=async()=>{await n.sendToolInput({arguments:e.toolInput??{}}),await n.sendToolResult({content:[{type:`text`,text:JSON.stringify(e.toolResult??{})}],structuredContent:e.toolResult,isError:e.isError})},await n.connect(new tu(i.contentWindow,i.contentWindow))}catch(e){console.error(`MCP app bridge connect failed`,e),_(`This view could not be loaded. Please try again.`)}}return g?(0,xp.jsx)(u,{color:`red`,m:`md`,children:g}):o?(0,xp.jsx)(p,{component:`iframe`,ref:n,title:`Fanout analysis view`,sandbox:`allow-scripts`,scrolling:`auto`,srcDoc:o,w:`100%`,bd:0,bg:`var(--mantine-color-body)`,style:{display:`block`,height:m,transition:`height 200ms ease`},onLoad:()=>void x()}):(0,xp.jsxs)(l,{mih:180,p:`xl`,children:[(0,xp.jsx)(c,{size:`sm`}),(0,xp.jsx)(f,{c:`dimmed`,size:`sm`,ml:`sm`,children:`Preparing view…`})]})}export{Bp as default,Lp as mcpAppCSP}; \ No newline at end of file diff --git a/internal/ui/dist/assets/routes-CsFJ-l_t.js b/internal/ui/dist/assets/routes-CYxgPfgb.js similarity index 84% rename from internal/ui/dist/assets/routes-CsFJ-l_t.js rename to internal/ui/dist/assets/routes-CYxgPfgb.js index 9515f41a..83f7413e 100644 --- a/internal/ui/dist/assets/routes-CsFJ-l_t.js +++ b/internal/ui/dist/assets/routes-CYxgPfgb.js @@ -1 +1 @@ -import{a as e,t}from"./useNavigate-DyHkI5qo.js";import{n}from"./auth-yGyQH6NZ.js";var r=e();function i(){let{agent_available:e}=n();if(!e)return(0,r.jsx)(t,{to:`/dashboards`,replace:!0});let i=localStorage.getItem(`fanout.thread-id`);return i?(localStorage.removeItem(`fanout.thread-id`),(0,r.jsx)(t,{to:`/chat/$threadId`,params:{threadId:i},replace:!0})):(0,r.jsx)(t,{to:`/chat`,replace:!0})}export{i as component}; \ No newline at end of file +import{a as e,t}from"./useNavigate-DyHkI5qo.js";import{n}from"./auth-C4PUlevI.js";var r=e();function i(){let{agent_available:e}=n();if(!e)return(0,r.jsx)(t,{to:`/dashboards`,replace:!0});let i=localStorage.getItem(`fanout.thread-id`);return i?(localStorage.removeItem(`fanout.thread-id`),(0,r.jsx)(t,{to:`/chat/$threadId`,params:{threadId:i},replace:!0})):(0,r.jsx)(t,{to:`/chat`,replace:!0})}export{i as component}; \ No newline at end of file diff --git a/internal/ui/dist/index.html b/internal/ui/dist/index.html index 641f4f3c..cb24827e 100644 --- a/internal/ui/dist/index.html +++ b/internal/ui/dist/index.html @@ -3,13 +3,28 @@ - + + + Fanout - + + + - - + +
diff --git a/ui/apps/bun.lock b/ui/apps/bun.lock index 43aa6f71..769d18ed 100644 --- a/ui/apps/bun.lock +++ b/ui/apps/bun.lock @@ -5,6 +5,8 @@ "": { "name": "@fanout/ui-apps", "dependencies": { + "@fontsource/ibm-plex-mono": "^5.3.0", + "@fontsource/ibm-plex-sans": "^5.3.0", "@mantine/core": "9.5.1", "@mantine/hooks": "9.5.1", "@modelcontextprotocol/ext-apps": "1.7.5", @@ -51,6 +53,10 @@ "@floating-ui/utils": ["@floating-ui/utils@0.2.12", "", {}, "sha512-HpCo8tmWzLVad5s2d19EhAz5zqrrQ6s69qd6moPMQvkOuSwDT1YgRfWSVuc4ennqrgv3OHppiOGMQ7oC13yIww=="], + "@fontsource/ibm-plex-mono": ["@fontsource/ibm-plex-mono@5.3.0", "", {}, "sha512-eTgnZjZEGk1QtD3ZstF+Vclo2HLAni8YMy34/DxllwZvyz1lR/1RF/xTiAquOBO7MvqBx8D2Ig2WCPMVfdZu7Q=="], + + "@fontsource/ibm-plex-sans": ["@fontsource/ibm-plex-sans@5.3.0", "", {}, "sha512-CbE4CbbEEZJX860XyUiRpsksXIQR8Rp2XDva2VO53NJox9tVNtusrysd2x5YkUEY3ErQ66W1IiiQL8/wihhw5w=="], + "@hono/node-server": ["@hono/node-server@1.19.15", "", { "peerDependencies": { "hono": "^4" } }, "sha512-Za2ai6TLdKjUvnur+eenO6nuYYipVAEhyCAdaV8IRvmU9kK8crOZUSYvIXn72E4f8fJqyAbpcJuTsYYmZp9Deg=="], "@mantine/core": ["@mantine/core@9.5.1", "", { "dependencies": { "@floating-ui/react": "^0.27.19", "clsx": "^2.1.1", "react-number-format": "^5.4.5", "react-remove-scroll": "^2.7.2", "type-fest": "^5.8.0" }, "peerDependencies": { "@mantine/hooks": "9.5.1", "react": "^19.2.0", "react-dom": "^19.2.0" } }, "sha512-3olDOYJBfW4kR37Aqdy/+FnYG7iNb5SPzOGeCp9dDxnt65K94sEqETDnXGJptOMO2xLm4KLJ/eBt3IIhJA7Z4Q=="], diff --git a/ui/apps/package.json b/ui/apps/package.json index 56ef9698..73af5c3e 100644 --- a/ui/apps/package.json +++ b/ui/apps/package.json @@ -13,6 +13,8 @@ "dev:logs": "cross-env NODE_ENV=development INPUT=logs.html vite" }, "dependencies": { + "@fontsource/ibm-plex-mono": "^5.3.0", + "@fontsource/ibm-plex-sans": "^5.3.0", "@mantine/core": "9.5.1", "@mantine/hooks": "9.5.1", "@modelcontextprotocol/ext-apps": "1.7.5", diff --git a/ui/apps/src/components.tsx b/ui/apps/src/components.tsx index 00e32540..0eca0d2e 100644 --- a/ui/apps/src/components.tsx +++ b/ui/apps/src/components.tsx @@ -1,13 +1,21 @@ import "@mantine/core/styles.css"; +// Four faces rather than the host app's eight: every byte here is base64'd +// into all five single-file bundles, so this is the smallest set that still +// puts the product's own typography inside an embedded view. +import "@fontsource/ibm-plex-sans/latin-400.css"; +import "@fontsource/ibm-plex-sans/latin-600.css"; +import "@fontsource/ibm-plex-sans/latin-700.css"; +import "@fontsource/ibm-plex-mono/latin-500.css"; import { Alert, Badge, Box, Button, Center, Group, Loader, MantineProvider, Pagination, Paper, ScrollArea, Stack, Tabs as MantineTabs, Text, ThemeIcon, Title, Tooltip, createTheme } from "@mantine/core"; import { ArrowClockwise } from "@phosphor-icons/react"; import { useEffect, useState, type ReactNode } from "react"; -import { fanoutThemeConfig } from "../../theme"; +import { fanoutCssVariables, fanoutThemeConfig } from "../../theme"; +import { bad, chart, info, ok, series, warn } from "../../tokens"; const fanoutTheme = createTheme(fanoutThemeConfig); export function ViewShell({ dark, children }: { dark: boolean; children: ReactNode }) { - return {children}; + return {children}; } export function ViewHeader({ eyebrow, title, summary, onRefresh, disabled }: { eyebrow: string; title: string; summary?: string; onRefresh: () => void | Promise; disabled?: boolean }) { @@ -18,7 +26,7 @@ export function ViewHeader({ eyebrow, title, summary, onRefresh, disabled }: { e } export function ViewStatus({ error, loading }: { error?: string | null; loading?: string }) { - if (error) return {error}; + if (error) return {error}; if (loading) return
{loading}
; return null; } @@ -68,11 +76,29 @@ export function PageControls({ page, totalPages, from, to, total, onChange }: { } export function healthColor(health: string) { - return health === "healthy" ? "teal" : health === "degraded" ? "yellow" : "red"; + return health === "healthy" ? "ok" : health === "degraded" ? "warn" : "bad"; } +/* A chart is drawn into a canvas, which cannot read CSS custom properties, so + everything below hands ECharts resolved values from the same ramps Mantine + gets. The shade differs by scheme for the same reason the accent does: the + palette's own hue reads on Ayu, a darker stop is needed on white. */ + export function chartTheme(dark: boolean) { - return dark - ? { text: "#c1c9c5", muted: "#8c9892", grid: "#303a35", surface: "#1b211e", border: "#38443e" } - : { text: "#344039", muted: "#748078", grid: "#e5e9e6", surface: "#ffffff", border: "#d7ddd9" }; + return chart[dark ? "dark" : "light"]; +} + +export function statusHex(dark: boolean) { + const shade = dark ? 5 : 7; + return { ok: ok[shade], warn: warn[shade], bad: bad[shade], info: info[shade] }; +} + +/** One color per service or metric, where the color identifies rather than + * grades. Hashed so a service keeps its color between renders, and drawn from + * a palette with no health hue in it. */ +export function seriesColor(name: string, dark: boolean) { + const palette = series[dark ? "dark" : "light"]; + let hash = 0; + for (const character of name) hash = (hash * 31 + character.charCodeAt(0)) | 0; + return palette[Math.abs(hash) % palette.length]; } diff --git a/ui/apps/src/logs.tsx b/ui/apps/src/logs.tsx index 3a8c9b2c..bd4c1ab4 100644 --- a/ui/apps/src/logs.tsx +++ b/ui/apps/src/logs.tsx @@ -3,7 +3,7 @@ import { ActionIcon, Badge, Group, Paper, SegmentedControl, Table, Text, TextInp import { ArrowSquareOut, ListMagnifyingGlass, MagnifyingGlass } from "@phosphor-icons/react"; import { StrictMode, useMemo, useState } from "react"; import { createRoot } from "react-dom/client"; -import { EmptyState, MetaFooter, PageControls, ViewHeader, ViewShell, ViewStatus, chartTheme, usePagedItems } from "./components"; +import { EmptyState, MetaFooter, PageControls, ViewHeader, ViewShell, ViewStatus, chartTheme, statusHex, usePagedItems } from "./components"; import type { LogEntry, Logs, Result } from "./contracts"; import { EChart, useECharts } from "./echart"; import { windowLabel } from "./format"; @@ -40,7 +40,7 @@ function LogHistogram({ data, dark }: { data: Logs; dark: boolean }) { const times = [...new Set(data.buckets.map((bucket) => bucket.time))]; const severities = [...new Set(data.buckets.map((bucket) => bucket.severity))]; const values = new Map(data.buckets.map((bucket) => [`${bucket.time}\u0000${bucket.severity}`, bucket.count])); - return { color: severities.map(severityHex), grid: { left: 42, right: 18, top: 30, bottom: 28 }, tooltip: { trigger: "axis", axisPointer: { type: "shadow" }, backgroundColor: colors.surface, borderColor: colors.border, textStyle: { color: colors.text, fontSize: 10 } }, legend: { top: 0, right: 0, textStyle: { color: colors.muted, fontSize: 9 }, itemWidth: 7, itemHeight: 7, icon: "circle" }, xAxis: { type: "category", data: times.map((time) => new Date(time).toLocaleTimeString([], { hour: "numeric", minute: "2-digit" })), axisLabel: { color: colors.muted, fontSize: 8, hideOverlap: true }, axisLine: { lineStyle: { color: colors.border } } }, yAxis: { type: "value", minInterval: 1, splitLine: { lineStyle: { color: colors.grid } }, axisLabel: { color: colors.muted, fontSize: 8 } }, series: severities.map((severity) => ({ name: severity, type: "bar", stack: "logs", barMaxWidth: 22, data: times.map((time) => values.get(`${time}\u0000${severity}`) ?? 0), itemStyle: { borderRadius: [2, 2, 0, 0] } })) }; + return { color: severities.map((severity) => severityHex(severity, dark)), grid: { left: 42, right: 18, top: 30, bottom: 28 }, tooltip: { trigger: "axis", axisPointer: { type: "shadow" }, backgroundColor: colors.surface, borderColor: colors.border, textStyle: { color: colors.text, fontSize: 10 } }, legend: { top: 0, right: 0, textStyle: { color: colors.muted, fontSize: 9 }, itemWidth: 7, itemHeight: 7, icon: "circle" }, xAxis: { type: "category", data: times.map((time) => new Date(time).toLocaleTimeString([], { hour: "numeric", minute: "2-digit" })), axisLabel: { color: colors.muted, fontSize: 8, hideOverlap: true }, axisLine: { lineStyle: { color: colors.border } } }, yAxis: { type: "value", minInterval: 1, splitLine: { lineStyle: { color: colors.grid } }, axisLabel: { color: colors.muted, fontSize: 8 } }, series: severities.map((severity) => ({ name: severity, type: "bar", stack: "logs", barMaxWidth: 22, data: times.map((time) => values.get(`${time}\u0000${severity}`) ?? 0), itemStyle: { borderRadius: [2, 2, 0, 0] } })) }; }, [dark, data.buckets]); return ; } @@ -54,7 +54,7 @@ function LogList({ entries, onTrace }: { entries: LogEntry[]; onTrace: (entry: L ; } -function severityColor(value: string) { const severity = value.toUpperCase(); if (severity === "ERROR" || severity === "FATAL") return "red"; if (severity === "WARN" || severity === "WARNING") return "yellow"; if (severity === "INFO") return "teal"; return "blue"; } -function severityHex(value: string) { const severity = value.toUpperCase(); if (severity === "ERROR" || severity === "FATAL") return "#fa5252"; if (severity === "WARN" || severity === "WARNING") return "#fab005"; if (severity === "INFO") return "#12b886"; return "#228be6"; } +function severityColor(value: string) { const severity = value.toUpperCase(); if (severity === "ERROR" || severity === "FATAL") return "bad"; if (severity === "WARN" || severity === "WARNING") return "warn"; if (severity === "INFO") return "info"; return "gray"; } +function severityHex(value: string, dark: boolean) { const status = statusHex(dark); const severity = value.toUpperCase(); if (severity === "ERROR" || severity === "FATAL") return status.bad; if (severity === "WARN" || severity === "WARNING") return status.warn; if (severity === "INFO") return status.info; return chartTheme(dark).muted; } createRoot(document.getElementById("root")!).render(); diff --git a/ui/apps/src/overview.tsx b/ui/apps/src/overview.tsx index f9b20728..6bcde8c1 100644 --- a/ui/apps/src/overview.tsx +++ b/ui/apps/src/overview.tsx @@ -25,15 +25,15 @@ function OverviewBody({ result, onService }: { result: Result; onServi - + - {data.counts.healthy} - {data.counts.degraded} - {data.counts.unhealthy} + {data.counts.healthy} + {data.counts.degraded} + {data.counts.unhealthy} - + {data.services.length === 0 ? } title="No activity in this window">Services will appear as data begins to arrive. : <>ServiceTrafficP95Errors @@ -44,7 +44,7 @@ function OverviewBody({ result, onService }: { result: Result; onServi } function Legend({ color, text }: { color: string; text: string }) { - return {text}; + return {text}; } function ServiceRow({ service, onClick }: { service: ServiceHealth; onClick: () => void }) { diff --git a/ui/apps/src/performance.tsx b/ui/apps/src/performance.tsx index 11c4d45c..0ae096dd 100644 --- a/ui/apps/src/performance.tsx +++ b/ui/apps/src/performance.tsx @@ -3,7 +3,7 @@ import { Badge, Paper, SimpleGrid, Stack, Table, Text } from "@mantine/core"; import { ArrowUpRight, ArrowsLeftRight, GridFour, Pulse } from "@phosphor-icons/react"; import { StrictMode, useMemo, useState } from "react"; import { createRoot } from "react-dom/client"; -import { EmptyState, MetaFooter, Metric, PageControls, Tabs, ViewHeader, ViewShell, ViewStatus, chartTheme, healthColor, usePagedItems } from "./components"; +import { EmptyState, MetaFooter, Metric, PageControls, Tabs, ViewHeader, ViewShell, ViewStatus, chartTheme, healthColor, seriesColor, statusHex, usePagedItems } from "./components"; import type { Endpoint, Performance, Result } from "./contracts"; import { EChart, useECharts } from "./echart"; import { duration, integer, percent, windowLabel } from "./format"; @@ -36,9 +36,9 @@ function ActivityView({ data, dark }: { data: Performance; dark: boolean }) { if (!last) return } title="No activity in this window">Trends will appear as activity is recorded.; const labels = data.points.map((point) => point.time); return - = 750 ? "yellow.7" : "teal.7"} />= .01 ? "red.7" : "teal.7"} /> - point.spans), color: "#228be6" }, { name: "Logs", data: data.points.map((point) => point.log_count), color: "#12b886" }]} /> - point.p95_ms), color: "#fab005" }, { name: "Error rate × 1000", data: data.points.map((point) => point.error_rate * 1000), color: "#fa5252" }]} /> + = 750 ? "warn" : "ok"} />= .01 ? "bad" : "ok"} /> + point.spans), color: seriesColor("operations", dark) }, { name: "Logs", data: data.points.map((point) => point.log_count), color: seriesColor("logs", dark) }]} /> + point.p95_ms), color: statusHex(dark).warn }, { name: "Error rate × 1000", data: data.points.map((point) => point.error_rate * 1000), color: statusHex(dark).bad }]} /> ; } @@ -59,7 +59,7 @@ function HeatmapView({ data, dark }: { data: Performance; dark: boolean }) { }, [data.heatmap]); if (model.services.length === 0) return } title="No latency samples yet">The heatmap will compare service latency across time buckets.; const colors = chartTheme(dark); - const option = { grid: { left: 105, right: 20, top: 20, bottom: 45 }, tooltip: { position: "top", backgroundColor: colors.surface, borderColor: colors.border, textStyle: { color: colors.text, fontSize: 10 }, formatter: (params: { data: [number, number, number] }) => `${model.services[params.data[1]]}
${duration(params.data[2])}` }, xAxis: { type: "category", data: model.times.map((time) => new Date(time).toLocaleTimeString([], { hour: "numeric", minute: "2-digit" })), splitArea: { show: true }, axisLabel: { color: colors.muted, fontSize: 9, hideOverlap: true }, axisLine: { lineStyle: { color: colors.border } } }, yAxis: { type: "category", data: model.services, splitArea: { show: true }, axisLabel: { color: colors.text, fontSize: 9 }, axisLine: { lineStyle: { color: colors.border } } }, visualMap: { min: 0, max: model.max, calculable: true, orient: "horizontal", left: "center", bottom: 0, textStyle: { color: colors.muted, fontSize: 8 }, inRange: { color: [dark ? "#18211d" : "#e6fcf5", "#fab005", "#fa5252"] } }, series: [{ type: "heatmap", data: model.services.flatMap((service, y) => model.times.map((time, x) => [x, y, model.values.get(`${service}\u0000${time}`) ?? 0])) }] }; + const option = { grid: { left: 105, right: 20, top: 20, bottom: 45 }, tooltip: { position: "top", backgroundColor: colors.surface, borderColor: colors.border, textStyle: { color: colors.text, fontSize: 10 }, formatter: (params: { data: [number, number, number] }) => `${model.services[params.data[1]]}
${duration(params.data[2])}` }, xAxis: { type: "category", data: model.times.map((time) => new Date(time).toLocaleTimeString([], { hour: "numeric", minute: "2-digit" })), splitArea: { show: true }, axisLabel: { color: colors.muted, fontSize: 9, hideOverlap: true }, axisLine: { lineStyle: { color: colors.border } } }, yAxis: { type: "category", data: model.services, splitArea: { show: true }, axisLabel: { color: colors.text, fontSize: 9 }, axisLine: { lineStyle: { color: colors.border } } }, visualMap: { min: 0, max: model.max, calculable: true, orient: "horizontal", left: "center", bottom: 0, textStyle: { color: colors.muted, fontSize: 8 }, inRange: { color: [colors.grid, statusHex(dark).warn, statusHex(dark).bad] } }, series: [{ type: "heatmap", data: model.services.flatMap((service, y) => model.times.map((time, x) => [x, y, model.values.get(`${service}\u0000${time}`) ?? 0])) }] }; return ; } @@ -68,13 +68,13 @@ function EndpointsView({ endpoints, onEndpoint }: { endpoints: Endpoint[]; onEnd if (endpoints.length === 0) return } title="No endpoints detected">HTTP routes and span operations will appear here as traffic arrives.; return <>
EndpointCallsP50P95P99Errors - {routes.pageItems.map((endpoint) => onEndpoint(endpoint)} onKeyDown={(event) => { if (event.key === "Enter" || event.key === " ") onEndpoint(endpoint); }} style={{ cursor: "pointer" }}>{endpoint.method}{endpoint.path}{integer.format(endpoint.calls)}{duration(endpoint.p50_ms)}{duration(endpoint.p95_ms)}{duration(endpoint.p99_ms)}{percent(endpoint.error_rate)})} + {routes.pageItems.map((endpoint) => onEndpoint(endpoint)} onKeyDown={(event) => { if (event.key === "Enter" || event.key === " ") onEndpoint(endpoint); }} style={{ cursor: "pointer" }}>{endpoint.method}{endpoint.path}{integer.format(endpoint.calls)}{duration(endpoint.p50_ms)}{duration(endpoint.p95_ms)}{duration(endpoint.p99_ms)}{percent(endpoint.error_rate)})}
; } function ComparisonView({ data }: { data: Performance }) { if (data.comparison.length === 0) return } title="Nothing to compare yet">Fanout compares the first and second half of the selected window.; - return SignalEarlierChangeRecent{data.comparison.map((metric) => {metric.label}{metric.unit}{formatMetric(metric.before, metric.unit)}{metric.change_pct > 0 ? "↑" : metric.change_pct < 0 ? "↓" : "→"} {Math.abs(metric.change_pct).toFixed(1)}%{metric.significant && notable}{formatMetric(metric.after, metric.unit)})}
; + return SignalEarlierChangeRecent{data.comparison.map((metric) => {metric.label}{metric.unit}{formatMetric(metric.before, metric.unit)}{metric.change_pct > 0 ? "↑" : metric.change_pct < 0 ? "↓" : "→"} {Math.abs(metric.change_pct).toFixed(1)}%{metric.significant && notable}{formatMetric(metric.after, metric.unit)})}
; } function formatMetric(value: number, unit: string) { if (unit === "ms") return duration(value); if (unit === "%") return `${value.toFixed(2)}%`; return integer.format(value); } diff --git a/ui/apps/src/topology.tsx b/ui/apps/src/topology.tsx index 03d0689c..098bf825 100644 --- a/ui/apps/src/topology.tsx +++ b/ui/apps/src/topology.tsx @@ -3,7 +3,7 @@ import { Button, Paper, Stack, Table, Text } from "@mantine/core"; import { FlowArrow, MagnifyingGlass, ShareNetwork } from "@phosphor-icons/react"; import { StrictMode, useMemo, useState } from "react"; import { createRoot } from "react-dom/client"; -import { EmptyState, MetaFooter, PageControls, Tabs, ViewHeader, ViewShell, ViewStatus, chartTheme, usePagedItems } from "./components"; +import { EmptyState, MetaFooter, PageControls, Tabs, ViewHeader, ViewShell, ViewStatus, chartTheme, statusHex, usePagedItems } from "./components"; import type { Edge, Result, Topology } from "./contracts"; import { EChart, useECharts } from "./echart"; import { duration, integer, percent, windowLabel } from "./format"; @@ -46,7 +46,8 @@ function TopologyBody({ data, view, selected, dark, onSelect, onInvestigate }: { function GraphView({ data, selected, dark, onSelect }: { data: Topology; selected: string | null; dark: boolean; onSelect: (id: string) => void }) { const option = useMemo(() => { const colors = chartTheme(dark); - return { tooltip: { backgroundColor: colors.surface, borderColor: colors.border, textStyle: { color: colors.text, fontSize: 10 } }, series: [{ type: "graph", layout: "force", roam: true, draggable: true, force: { repulsion: 220, edgeLength: [80, 150], gravity: .08 }, label: { show: true, position: "bottom", color: colors.text, fontSize: 10 }, edgeSymbol: ["none", "arrow"], edgeSymbolSize: 6, data: data.nodes.map((node) => ({ id: node.service, name: node.service, value: node.spans, symbolSize: Math.min(46, 24 + Math.log10(Math.max(node.spans, 1)) * 5), itemStyle: { color: colors.surface, borderColor: healthHex(node.health), borderWidth: selected === node.service ? 5 : 3, opacity: selected && selected !== node.service ? .45 : 1 } })), links: data.edges.map((edge) => ({ source: edge.caller, target: edge.callee, value: edge.calls, lineStyle: { width: Math.min(5, 1 + Math.log10(Math.max(edge.calls, 1))), color: edge.error_rate >= .05 ? "#fa5252" : colors.muted, opacity: selected && edge.caller !== selected && edge.callee !== selected ? .1 : .42, curveness: .08 } })), emphasis: { focus: "adjacency", lineStyle: { opacity: .85 } } }] }; + const status = statusHex(dark); + return { tooltip: { backgroundColor: colors.surface, borderColor: colors.border, textStyle: { color: colors.text, fontSize: 10 } }, series: [{ type: "graph", layout: "force", roam: true, draggable: true, force: { repulsion: 220, edgeLength: [80, 150], gravity: .08 }, label: { show: true, position: "bottom", color: colors.text, fontSize: 10 }, edgeSymbol: ["none", "arrow"], edgeSymbolSize: 6, data: data.nodes.map((node) => ({ id: node.service, name: node.service, value: node.spans, symbolSize: Math.min(46, 24 + Math.log10(Math.max(node.spans, 1)) * 5), itemStyle: { color: colors.surface, borderColor: healthHex(node.health, dark), borderWidth: selected === node.service ? 5 : 3, opacity: selected && selected !== node.service ? .45 : 1 } })), links: data.edges.map((edge) => ({ source: edge.caller, target: edge.callee, value: edge.calls, lineStyle: { width: Math.min(5, 1 + Math.log10(Math.max(edge.calls, 1))), color: edge.error_rate >= .05 ? status.bad : colors.muted, opacity: selected && edge.caller !== selected && edge.callee !== selected ? .1 : .42, curveness: .08 } })), emphasis: { focus: "adjacency", lineStyle: { opacity: .85 } } }] }; }, [dark, data, selected]); return { const item = params as { dataType?: string; data?: { id?: string } }; if (item.dataType === "node" && item.data?.id) onSelect(item.data.id); }} />; } @@ -55,7 +56,7 @@ function FlowView({ data, dark, onSelect }: { data: Topology; dark: boolean; onS const links = useMemo(() => acyclicEdges(data.edges), [data.edges]); const option = useMemo(() => { const colors = chartTheme(dark); - return { tooltip: { trigger: "item", backgroundColor: colors.surface, borderColor: colors.border, textStyle: { color: colors.text, fontSize: 10 } }, series: [{ type: "sankey", left: 20, right: 30, top: 20, bottom: 20, nodeWidth: 14, nodeGap: 12, draggable: true, emphasis: { focus: "adjacency" }, label: { color: colors.text, fontSize: 10 }, lineStyle: { color: "gradient", opacity: .28, curveness: .55 }, data: data.nodes.map((node) => ({ name: node.service, itemStyle: { color: healthHex(node.health), borderColor: colors.surface, borderWidth: 2 } })), links: links.map((edge) => ({ source: edge.caller, target: edge.callee, value: Math.max(edge.calls, 1) })) }] }; + return { tooltip: { trigger: "item", backgroundColor: colors.surface, borderColor: colors.border, textStyle: { color: colors.text, fontSize: 10 } }, series: [{ type: "sankey", left: 20, right: 30, top: 20, bottom: 20, nodeWidth: 14, nodeGap: 12, draggable: true, emphasis: { focus: "adjacency" }, label: { color: colors.text, fontSize: 10 }, lineStyle: { color: "gradient", opacity: .28, curveness: .55 }, data: data.nodes.map((node) => ({ name: node.service, itemStyle: { color: healthHex(node.health, dark), borderColor: colors.surface, borderWidth: 2 } })), links: links.map((edge) => ({ source: edge.caller, target: edge.callee, value: Math.max(edge.calls, 1) })) }] }; }, [dark, data.nodes, links]); if (links.length === 0) return } title="No traffic routes observed">Services are visible, but this window contains no direct service-to-service calls.; return <> { const item = params as { dataType?: string; name?: string }; if (item.dataType === "node" && item.name) onSelect(item.name); }} />Showing {links.length} primary routes from {data.edges.length} observed connections; @@ -66,7 +67,8 @@ function MatrixView({ data, dark }: { data: Topology; dark: boolean }) { const max = Math.max(...data.edges.map((edge) => edge.error_rate), .01); const option = useMemo(() => { const colors = chartTheme(dark); - return { grid: { left: 100, right: 25, top: 15, bottom: 80 }, tooltip: { backgroundColor: colors.surface, borderColor: colors.border, textStyle: { color: colors.text, fontSize: 10 }, formatter: (params: { data: [number, number, number, number, number] }) => `${names[params.data[1]]} → ${names[params.data[0]]}
${integer.format(params.data[3])} calls · ${duration(params.data[4])}
${percent(params.data[2])} errors` }, xAxis: { type: "category", data: names, splitArea: { show: true }, axisLabel: { color: colors.muted, rotate: 35, fontSize: 9 }, axisLine: { lineStyle: { color: colors.border } } }, yAxis: { type: "category", data: names, splitArea: { show: true }, axisLabel: { color: colors.text, fontSize: 9 }, axisLine: { lineStyle: { color: colors.border } } }, visualMap: { min: 0, max, calculable: true, orient: "horizontal", left: "center", bottom: 8, textStyle: { color: colors.muted, fontSize: 8 }, inRange: { color: [dark ? "#18211d" : "#e6fcf5", "#fab005", "#fa5252"] } }, series: [{ type: "heatmap", data: data.edges.map((edge) => [names.indexOf(edge.callee), names.indexOf(edge.caller), edge.error_rate, edge.calls, edge.average_ms]) }] }; + const status = statusHex(dark); + return { grid: { left: 100, right: 25, top: 15, bottom: 80 }, tooltip: { backgroundColor: colors.surface, borderColor: colors.border, textStyle: { color: colors.text, fontSize: 10 }, formatter: (params: { data: [number, number, number, number, number] }) => `${names[params.data[1]]} → ${names[params.data[0]]}
${integer.format(params.data[3])} calls · ${duration(params.data[4])}
${percent(params.data[2])} errors` }, xAxis: { type: "category", data: names, splitArea: { show: true }, axisLabel: { color: colors.muted, rotate: 35, fontSize: 9 }, axisLine: { lineStyle: { color: colors.border } } }, yAxis: { type: "category", data: names, splitArea: { show: true }, axisLabel: { color: colors.text, fontSize: 9 }, axisLine: { lineStyle: { color: colors.border } } }, visualMap: { min: 0, max, calculable: true, orient: "horizontal", left: "center", bottom: 8, textStyle: { color: colors.muted, fontSize: 8 }, inRange: { color: [colors.grid, status.warn, status.bad] } }, series: [{ type: "heatmap", data: data.edges.map((edge) => [names.indexOf(edge.callee), names.indexOf(edge.caller), edge.error_rate, edge.calls, edge.average_ms]) }] }; }, [dark, data, max, names]); return ; } @@ -77,7 +79,7 @@ function EdgeList({ edges, onSelect }: { edges: Edge[]; onSelect: (id: string) = return RouteCallsLatencyErrors{routes.pageItems.map((edge) => onSelect(edge.caller)} onKeyDown={(event) => { if (event.key === "Enter" || event.key === " ") onSelect(edge.caller); }} style={{ cursor: "pointer" }}>{edge.caller} → {edge.callee}{integer.format(edge.calls)}{duration(edge.average_ms)}{percent(edge.error_rate)})}
; } -function healthHex(health: string) { return health === "unhealthy" ? "#fa5252" : health === "degraded" ? "#fab005" : "#12b886"; } +function healthHex(health: string, dark: boolean) { const status = statusHex(dark); return health === "unhealthy" ? status.bad : health === "degraded" ? status.warn : status.ok; } function acyclicEdges(edges: Edge[]) { const kept: Edge[] = []; const adjacency = new Map>(); const reaches = (from: string, target: string, seen = new Set()): boolean => { if (from === target) return true; if (seen.has(from)) return false; seen.add(from); for (const next of adjacency.get(from) ?? []) if (reaches(next, target, seen)) return true; return false; }; for (const edge of [...edges].sort((left, right) => right.calls - left.calls || left.caller.localeCompare(right.caller) || left.callee.localeCompare(right.callee))) { if (edge.caller === edge.callee || reaches(edge.callee, edge.caller)) continue; const outgoing = adjacency.get(edge.caller) ?? new Set(); outgoing.add(edge.callee); adjacency.set(edge.caller, outgoing); kept.push(edge); } return kept; } createRoot(document.getElementById("root")!).render(); diff --git a/ui/apps/src/trace.tsx b/ui/apps/src/trace.tsx index 1989e799..26cf04d7 100644 --- a/ui/apps/src/trace.tsx +++ b/ui/apps/src/trace.tsx @@ -2,7 +2,7 @@ import { Badge, Box, Button, Group, Paper, ScrollArea, SimpleGrid, Stack, Table, import { ListBullets, Path } from "@phosphor-icons/react"; import { StrictMode, useMemo, useState } from "react"; import { createRoot } from "react-dom/client"; -import { EmptyState, MetaFooter, Metric, PageControls, Tabs, ViewHeader, ViewShell, ViewStatus, usePagedItems } from "./components"; +import { EmptyState, MetaFooter, Metric, PageControls, Tabs, ViewHeader, ViewShell, ViewStatus, seriesColor, usePagedItems } from "./components"; import type { LogEntry, Result, TraceDetail, TraceSpan } from "./contracts"; import { duration, integer, windowLabel } from "./format"; import { askAbout, useFanoutApp } from "./use-fanout-app"; @@ -13,22 +13,23 @@ type View = "waterfall" | "flame" | "logs"; function TraceApp() { const { app, callTool, error, host, result, toolError } = useFanoutApp>("Fanout trace detail"); const [view, setView] = useState("waterfall"); - return + const dark = host?.theme === "dark"; + return callTool("trace_detail")} disabled={!app} /> {result && result.data.spans.length === 0 && <>} title="No traces in this window">Try a wider time window.} {result && result.data.spans.length > 0 && <> - + - {view === "waterfall" && askAbout(app, `Investigate span ${span.span_id} (${span.service} ${span.operation}) in trace ${result.data.trace_id}.`)} />} - {view === "flame" && askAbout(app, `Investigate span ${span.span_id} (${span.service} ${span.operation}) in trace ${result.data.trace_id}.`)} />} + {view === "waterfall" && askAbout(app, `Investigate span ${span.span_id} (${span.service} ${span.operation}) in trace ${result.data.trace_id}.`)} />} + {view === "flame" && askAbout(app, `Investigate span ${span.span_id} (${span.service} ${span.operation}) in trace ${result.data.trace_id}.`)} />} {view === "logs" && } } ; } -function Waterfall({ spans, onSpan }: { spans: TraceSpan[]; onSpan: (span: TraceSpan) => void }) { +function Waterfall({ spans, dark, onSpan }: { spans: TraceSpan[]; dark: boolean; onSpan: (span: TraceSpan) => void }) { const start = Math.min(...spans.map((span) => new Date(span.start).valueOf())); const end = Math.max(...spans.map((span) => new Date(span.start).valueOf() + span.duration_ms)); const total = Math.max(end - start, 1); @@ -40,19 +41,19 @@ function Waterfall({ spans, onSpan }: { spans: TraceSpan[]; onSpan: (span: Trace const width = Math.max(span.duration_ms / total * 100, .6); const failed = span.status.toUpperCase().includes("ERROR"); return onSpan(span)} onKeyDown={(event) => { if (event.key === "Enter" || event.key === " ") onSpan(span); }} style={{ cursor: "pointer" }}> - {span.operation}{span.service} - + {span.operation}{span.service} + {duration(span.duration_ms)} ; })} ; } -function FlameGraph({ spans, onSpan }: { spans: TraceSpan[]; onSpan: (span: TraceSpan) => void }) { +function FlameGraph({ spans, dark, onSpan }: { spans: TraceSpan[]; dark: boolean; onSpan: (span: TraceSpan) => void }) { const model = useMemo(() => flameModel(spans), [spans]); const services = [...new Set(spans.map((span) => span.service))]; return - {services.map((service) => {service})}{duration(model.total)} + {services.map((service) => {service})}{duration(model.total)} @@ -62,7 +63,7 @@ function FlameGraph({ spans, onSpan }: { spans: TraceSpan[]; onSpan: (span: Trac {model.frames.map(({ span, lane, left, width }) => { const failed = span.status.toUpperCase().includes("ERROR"); const compact = width < 7; - return ; + return ; })} @@ -96,7 +97,6 @@ function TraceLogs({ entries }: { entries: LogEntry[] }) { } function shortID(value: string) { return value.length > 12 ? `${value.slice(0, 8)}…${value.slice(-4)}` : value; } -function serviceColor(service: string) { const colors = ["#12b886", "#228be6", "#fab005", "#7950f2", "#e64980", "#82c91e"]; let hash = 0; for (const char of service) hash = (hash * 31 + char.charCodeAt(0)) | 0; return colors[Math.abs(hash) % colors.length]; } -function severityColor(value: string) { const severity = value.toUpperCase(); if (severity === "ERROR" || severity === "FATAL") return "red"; if (severity === "WARN" || severity === "WARNING") return "yellow"; if (severity === "INFO") return "teal"; return "blue"; } +function severityColor(value: string) { const severity = value.toUpperCase(); if (severity === "ERROR" || severity === "FATAL") return "bad"; if (severity === "WARN" || severity === "WARNING") return "warn"; if (severity === "INFO") return "info"; return "gray"; } createRoot(document.getElementById("root")!).render(); diff --git a/ui/apps/vite.config.ts b/ui/apps/vite.config.ts index 9b27bb6c..e63d119c 100644 --- a/ui/apps/vite.config.ts +++ b/ui/apps/vite.config.ts @@ -20,6 +20,10 @@ const stripTrailingWhitespace = () => ({ export default defineConfig({ plugins: [react(), viteSingleFile(), stripTrailingWhitespace()], build: { + // Every asset has to end up inside the single HTML file, and the default + // 4 kB ceiling would leave the typeface as five loose .woff2 files that the + // build never copies into internal/mcp/apps. + assetsInlineLimit: 100_000, cssMinify: true, minify: true, outDir: "dist", diff --git a/ui/host/bun.lock b/ui/host/bun.lock index 291ef638..136856b0 100644 --- a/ui/host/bun.lock +++ b/ui/host/bun.lock @@ -6,6 +6,8 @@ "name": "@fanout/web", "dependencies": { "@ag-ui/client": "0.0.57", + "@fontsource/ibm-plex-mono": "^5.3.0", + "@fontsource/ibm-plex-sans": "^5.3.0", "@mantine/core": "9.5.1", "@mantine/hooks": "9.5.1", "@modelcontextprotocol/ext-apps": "1.7.5", @@ -98,6 +100,10 @@ "@floating-ui/utils": ["@floating-ui/utils@0.2.12", "", {}, "sha512-HpCo8tmWzLVad5s2d19EhAz5zqrrQ6s69qd6moPMQvkOuSwDT1YgRfWSVuc4ennqrgv3OHppiOGMQ7oC13yIww=="], + "@fontsource/ibm-plex-mono": ["@fontsource/ibm-plex-mono@5.3.0", "", {}, "sha512-eTgnZjZEGk1QtD3ZstF+Vclo2HLAni8YMy34/DxllwZvyz1lR/1RF/xTiAquOBO7MvqBx8D2Ig2WCPMVfdZu7Q=="], + + "@fontsource/ibm-plex-sans": ["@fontsource/ibm-plex-sans@5.3.0", "", {}, "sha512-CbE4CbbEEZJX860XyUiRpsksXIQR8Rp2XDva2VO53NJox9tVNtusrysd2x5YkUEY3ErQ66W1IiiQL8/wihhw5w=="], + "@hono/node-server": ["@hono/node-server@1.19.15", "", { "peerDependencies": { "hono": "^4" } }, "sha512-Za2ai6TLdKjUvnur+eenO6nuYYipVAEhyCAdaV8IRvmU9kK8crOZUSYvIXn72E4f8fJqyAbpcJuTsYYmZp9Deg=="], "@jridgewell/gen-mapping": ["@jridgewell/gen-mapping@0.3.13", "", { "dependencies": { "@jridgewell/sourcemap-codec": "^1.5.0", "@jridgewell/trace-mapping": "^0.3.24" } }, "sha512-2kkt/7niJ6MgEPxF0bYdQ6etZaA+fQvDcLKckhy1yIQOzaoKjBBjSj63/aLVjYE3qhRt5dvM+uUyfCg6UKCBbA=="], diff --git a/ui/host/index.html b/ui/host/index.html index 10347399..febae060 100644 --- a/ui/host/index.html +++ b/ui/host/index.html @@ -3,9 +3,24 @@ - + + + Fanout + +
diff --git a/ui/host/package.json b/ui/host/package.json index 876b3c6c..75a34386 100644 --- a/ui/host/package.json +++ b/ui/host/package.json @@ -13,6 +13,8 @@ }, "dependencies": { "@ag-ui/client": "0.0.57", + "@fontsource/ibm-plex-mono": "^5.3.0", + "@fontsource/ibm-plex-sans": "^5.3.0", "@mantine/core": "9.5.1", "@mantine/hooks": "9.5.1", "@modelcontextprotocol/ext-apps": "1.7.5", diff --git a/ui/host/src/App.tsx b/ui/host/src/App.tsx index d8a8cd59..2ab0f215 100644 --- a/ui/host/src/App.tsx +++ b/ui/host/src/App.tsx @@ -1,6 +1,6 @@ import { HttpAgent, type Message } from "@ag-ui/client"; -import { ActionIcon, Alert, AppShell, Avatar, Box, Button, Center, Container, Group, Loader, Paper, SimpleGrid, Stack, Text, Textarea, Title, Tooltip, Typography, UnstyledButton } from "@mantine/core"; -import { ArrowUpRight, ChatCircleText, ClockCounterClockwise, GithubLogo, GlobeHemisphereWest, Layout, PaperPlaneTilt, Plus, SignOut } from "@phosphor-icons/react"; +import { ActionIcon, Alert, AppShell, Avatar, Box, Button, Center, Container, Group, Loader, Paper, SimpleGrid, Stack, Text, Textarea, Title, Tooltip, Typography, UnstyledButton, useComputedColorScheme, useMantineColorScheme } from "@mantine/core"; +import { ArrowUpRight, ChatCircleText, ClockCounterClockwise, GithubLogo, GlobeHemisphereWest, Layout, Moon, PaperPlaneTilt, Plus, SignOut, Sun } from "@phosphor-icons/react"; import { QueryClient, QueryClientProvider, useQueryClient } from "@tanstack/react-query"; import { Outlet, useNavigate, useParams, useRouterState } from "@tanstack/react-router"; import { createContext, FormEvent, lazy, Suspense, useContext, useEffect, useMemo, useRef, useState, type RefObject } from "react"; @@ -184,10 +184,11 @@ function Chat() { - Live + Live {(agentAvailable || isChat) && } {agentAvailable && setHistoryOpen(true)}>} {agentAvailable && isChat && } + void logout().catch((cause) => setError(cause instanceof Error ? cause.message : "Sign-out failed — your session is still active."))}> @@ -197,6 +198,19 @@ function Chat() { ; } +function ColorSchemeToggle() { + const { setColorScheme } = useMantineColorScheme(); + // Reading the computed scheme rather than the stored one means the button + // offers the opposite of what is on screen even while the setting is "auto". + const scheme = useComputedColorScheme("light", { getInitialValueInEffect: true }); + const next = scheme === "dark" ? "light" : "dark"; + return + setColorScheme(next)}> + {scheme === "dark" ? : } + + ; +} + function Composer() { const { input, setInput, inputRef, submit, send, ready, running } = useFanoutApp(); return @@ -209,7 +223,7 @@ function Composer() { export function ChatPage() { const { agentAvailable, messages, ready, running, error, bottomRef, send } = useFanoutApp(); - if (!agentAvailable) return Optional capabilityChat is not configuredAdd an AI provider key to enable investigation chat. Telemetry ingest, dashboards, traces, logs, and metrics remain available without it.; + if (!agentAvailable) return Optional capabilityChat is not configuredAdd an AI provider key to enable investigation chat. Telemetry ingest, dashboards, traces, logs, and metrics remain available without it.; const visibleMessages = messages.filter((message) => message.role !== "tool"); if (!ready) return
Loading conversation
; return @@ -217,7 +231,7 @@ export function ChatPage() { {visibleMessages.map((message) => )} {running && Analyzing your system} - {error && {error}} + {error && {error}}
; @@ -227,7 +241,7 @@ function Welcome({ onSelect }: { onSelect: (text: string) => Promise }) { const suggestions = ["Summarize system health for the last hour", "Find the source of elevated errors", "Map the current service dependencies"]; return - Your system, understood + Your system, understood See what changed.<br />Know what to do next. Ask about service health, latency, errors, or dependencies. Fanout turns live signals into clear answers and focused views. @@ -253,8 +267,8 @@ function ChatMessage({ message, send }: { message: Message; send: (text: string) if (!content && message.role === "assistant") return null; const user = message.role === "user"; return - {user ? "Y" : "F"}{user ? "You" : "Fanout"} - {user ? {content} : {content}} + {user ? "Y" : "F"}{user ? "You" : "Fanout"} + {user ? {content} : {content}} ; } diff --git a/ui/host/src/auth.tsx b/ui/host/src/auth.tsx index c6fbd13a..c59c99db 100644 --- a/ui/host/src/auth.tsx +++ b/ui/host/src/auth.tsx @@ -39,7 +39,10 @@ function AuthSurface({ children, wide = false }: { children: ReactNode; wide?: b return
@@ -48,10 +51,9 @@ function AuthSurface({ children, wide = false }: { children: ReactNode; wide?: b radius={28} p={{ base: 24, sm: 40 }} style={{ - background: "rgba(255, 255, 255, 0.9)", - border: "1px solid rgba(31, 41, 55, 0.08)", - boxShadow: "0 28px 70px rgba(31, 41, 55, 0.10), 0 3px 10px rgba(31, 41, 55, 0.04)", - backdropFilter: "blur(18px)", + background: "var(--mantine-color-body)", + border: "1px solid var(--mantine-color-default-border)", + boxShadow: "var(--mantine-shadow-xl)", }} > {children} @@ -147,11 +149,11 @@ export default function AuthGate({ children }: { children: ReactNode }) { if (setupResult?.ingest_token) { return -
Setup completeSave your ingest token
+
Setup completeSave your ingest token
Fanout shows this token once. Store it with your collector secrets before continuing. OTLP endpoint{setupResult.suggested_endpoint ?? `${window.location.hostname}:4317`} Header{setupResult.ingest_header_name ?? "Authorization"}: Bearer {setupResult.ingest_token} - {error && {error}} + {error && {error}} @@ -160,7 +162,7 @@ export default function AuthGate({ children }: { children: ReactNode }) { } if (!sessionReady || !statusReady || loginToken) return
; - if (!status) return Fanout is unavailable{error || "Authentication status could not be loaded."}; + if (!status) return Fanout is unavailable{error || "Authentication status could not be loaded."}; if (authenticated && returnTo) return null; if (authenticated) return {children}; @@ -169,11 +171,11 @@ export default function AuthGate({ children }: { children: ReactNode }) { return - Secure workspace + Secure workspace Sign in to investigate Use your organization's identity provider to continue. - {error && {error}} + {error && {error}} ; } @@ -203,7 +205,7 @@ export default function AuthGate({ children }: { children: ReactNode }) { return - + {status?.setup_required ? "One-time setup" : "Secure workspace"} @@ -218,7 +220,7 @@ export default function AuthGate({ children }: { children: ReactNode }) { {status?.setup_required && <TextInput label="Name" placeholder="Your name" value={name} onChange={(event) => setName(event.currentTarget.value)} variant="filled" radius="md" size="md" />} {status?.setup_required && <TextInput label="Setup token" placeholder="from the setup URL printed at startup" required value={setupToken} onChange={(event) => setSetupToken(event.currentTarget.value)} autoComplete="one-time-code" variant="filled" radius="md" size="md" />} {!status?.setup_required && codeSent && <TextInput label="Verification code" placeholder="000000" required value={code} onChange={(event) => setCode(event.currentTarget.value)} autoComplete="one-time-code" variant="filled" radius="md" size="md" styles={{ input: { letterSpacing: "0.2em", fontVariantNumeric: "tabular-nums" } }} autoFocus />} - {error && <Alert color="red" radius="md">{error}</Alert>} + {error && <Alert color="bad" radius="md">{error}</Alert>} <Button type="submit" size="md" radius="md" mt={4} loading={busy} disabled={!status || (!status.setup_required && !status.smtp_configured)} leftSection={status?.setup_required ? <UserPlus size={17} weight="bold" /> : undefined} rightSection={!status?.setup_required ? <ArrowRight size={17} weight="bold" /> : undefined}>{status?.setup_required ? "Create admin" : codeSent ? "Verify code" : "Send code"}</Button> </Stack></form> </Stack></AuthSurface>; diff --git a/ui/host/src/chat-history.tsx b/ui/host/src/chat-history.tsx index b661267c..1ab75bc1 100644 --- a/ui/host/src/chat-history.tsx +++ b/ui/host/src/chat-history.tsx @@ -128,7 +128,7 @@ export default function ChatHistoryDrawer({ opened, activeThreadID, onClose, onN <Divider /> <ScrollArea type="auto" offsetScrollbars flex={1}> {history.isLoading && <Center py="xl"><Loader size="sm" /></Center>} - {history.isError && <Alert color="red" title="History unavailable">Your conversations could not be loaded.</Alert>} + {history.isError && <Alert color="bad" title="History unavailable">Your conversations could not be loaded.</Alert>} {!history.isLoading && !history.isError && threads.length === 0 && <Box py="xl" px="sm" ta="center"> <Text fw={600}>{query ? "No matching investigations" : "No investigations yet"}</Text> <Text c="dimmed" size="sm" mt={4}>{query ? "Try words from the opening question." : "Your completed investigations will appear here."}</Text> @@ -160,7 +160,7 @@ export default function ChatHistoryDrawer({ opened, activeThreadID, onClose, onN </Menu.Target> <Menu.Dropdown> <Menu.Item leftSection={<PencilSimple size={15} />} onClick={() => beginRename(thread)}>Rename</Menu.Item> - <Menu.Item color="red" leftSection={<Trash size={15} />} onClick={() => { setMutationError(""); setDeleting(thread); }}>Delete</Menu.Item> + <Menu.Item color="bad" leftSection={<Trash size={15} />} onClick={() => { setMutationError(""); setDeleting(thread); }}>Delete</Menu.Item> </Menu.Dropdown> </Menu> </Group> @@ -176,7 +176,7 @@ export default function ChatHistoryDrawer({ opened, activeThreadID, onClose, onN <form onSubmit={(event) => { event.preventDefault(); void renameThread(); }}> <Stack> <TextInput label="Name" value={renameTitle} onChange={(event) => setRenameTitle(event.currentTarget.value)} maxLength={120} autoFocus /> - {mutationError && <Alert color="red">{mutationError}</Alert>} + {mutationError && <Alert color="bad">{mutationError}</Alert>} <Group justify="flex-end"> <Button variant="default" onClick={() => setRenaming(null)} disabled={busy}>Cancel</Button> <Button type="submit" loading={busy} disabled={!renameTitle.trim()}>Save</Button> @@ -187,10 +187,10 @@ export default function ChatHistoryDrawer({ opened, activeThreadID, onClose, onN <Modal opened={deleting !== null} onClose={() => !busy && setDeleting(null)} title="Delete investigation?" centered> <Stack> <Text size="sm">This permanently removes <Text span fw={650}>{deleting?.title}</Text> and its saved conversation.</Text> - {mutationError && <Alert color="red">{mutationError}</Alert>} + {mutationError && <Alert color="bad">{mutationError}</Alert>} <Group justify="flex-end"> <Button variant="default" onClick={() => setDeleting(null)} disabled={busy}>Cancel</Button> - <Button color="red" loading={busy} onClick={() => void deleteThread()}>Delete</Button> + <Button color="bad" loading={busy} onClick={() => void deleteThread()}>Delete</Button> </Group> </Stack> </Modal> diff --git a/ui/host/src/dashboard.tsx b/ui/host/src/dashboard.tsx index 593eb40e..eb68872f 100644 --- a/ui/host/src/dashboard.tsx +++ b/ui/host/src/dashboard.tsx @@ -109,14 +109,14 @@ export default function Dashboard({ dashboardID = "", agentAvailable, onOpenChat </Box> <Group wrap="nowrap" w={{ base: "100%", md: "auto" }}> {agentAvailable && <Button variant="default" leftSection={<Sparkle size={16} weight="fill" />} flex={{ base: 1, md: "initial" }} onClick={() => onOpenChat("Create a new dashboard for me. First ask what I want to monitor, then design it when you have enough context.")}>Create with AI</Button>} - <Button leftSection={selected.isFetching ? <Loader size={15} color="white" /> : <ArrowClockwise size={16} weight="bold" />} onClick={() => void queryClient.invalidateQueries()}>{selected.isFetching ? "Refreshing" : "Refresh"}</Button> + <Button leftSection={selected.isFetching ? <Loader size={15} color="var(--mantine-primary-color-contrast)" /> : <ArrowClockwise size={16} weight="bold" />} onClick={() => void queryClient.invalidateQueries()}>{selected.isFetching ? "Refreshing" : "Refresh"}</Button> </Group> </Flex> - {save.isError && <Alert color="red" radius="lg" mb="lg" icon={<WarningCircle size={18} weight="fill" />} title="Dashboard changes not saved"> + {save.isError && <Alert color="bad" radius="lg" mb="lg" icon={<WarningCircle size={18} weight="fill" />} title="Dashboard changes not saved"> <Group justify="space-between" gap="sm"> <Text size="sm">Your latest edits are kept on this screen but Fanout could not store them.</Text> - <Button size="compact-sm" color="red" variant="light" onClick={() => save.mutate(state)}>Retry save</Button> + <Button size="compact-sm" color="bad" variant="light" onClick={() => save.mutate(state)}>Retry save</Button> </Group> </Alert>} @@ -127,7 +127,7 @@ export default function Dashboard({ dashboardID = "", agentAvailable, onOpenChat <TextInput label="Namespace" value={state.filters.namespace} onChange={(event) => setState({ ...state, filters: { ...state.filters, namespace: event.currentTarget.value } })} onBlur={(event) => update({ ...state, filters: { ...state.filters, namespace: event.currentTarget.value } })} placeholder="All namespaces" w={{ base: "100%", xs: 220 }} /> </Group> <Flex wrap={{ base: "wrap", sm: "nowrap" }} justify={{ base: "flex-start", md: "flex-end" }} align="center" gap={{ base: "sm", sm: "md" }} w={{ base: "100%", md: "auto" }}> - <Group gap="xs" wrap="nowrap"><Indicator color={save.isError ? "red" : save.isPending ? "yellow" : "teal"} processing={save.isPending} size={8} /><Text c="dimmed" size="sm" miw={48}>{save.isPending ? "Saving" : save.isError ? "Failed" : "Saved"}</Text></Group> + <Group gap="xs" wrap="nowrap"><Indicator color={save.isError ? "bad" : save.isPending ? "warn" : "ok"} processing={save.isPending} size={8} /><Text c="dimmed" size="sm" miw={48}>{save.isPending ? "Saving" : save.isError ? "Failed" : "Saved"}</Text></Group> <Divider orientation="vertical" h={28} /> <Menu shadow="md" position="bottom-end" withinPortal> <Menu.Target><Button variant="default" leftSection={<Plus size={16} weight="bold" />} rightSection={<CaretDown size={14} weight="bold" />}>Add view</Button></Menu.Target> @@ -165,7 +165,7 @@ function WidgetCard({ widget, filters, agentAvailable, onRemove, onOpenChat }: { const failed = sources[widget.type]?.isError ?? false; return <Paper withBorder shadow="xs" radius="lg" p="lg" h="100%" style={{ overflow: "hidden" }}><Stack h="100%" gap="sm"> - <Group justify="space-between" align="flex-start" wrap="nowrap"><Box><Text c="dimmed" size="xs" fw={700} tt="uppercase" lts="0.1em">{widget.type === "assistant" ? "Guidance" : widget.type}</Text><Title order={2} fz="lg" mt={2}>{widget.title}
+ {widget.type === "assistant" ? "Guidance" : widget.type}{widget.title} {failed && } {!failed && widget.type === "overview" && } @@ -185,16 +185,16 @@ function DataTable({ rows, empty }: { rows: React.ReactNode[][]; empty: string } } function HealthBadge({ health, label }: { health: string; label: string }) { - return {label}; + return {label}; } function severityColor(severity: string) { const value = String(severity).toUpperCase(); - return value === "ERROR" || value === "FATAL" ? "red" : value === "WARN" || value === "WARNING" ? "yellow" : value === "INFO" ? "teal" : "blue"; + return value === "ERROR" || value === "FATAL" ? "bad" : value === "WARN" || value === "WARNING" ? "warn" : value === "INFO" ? "info" : "gray"; } function Metric({ label, value }: { label: string; value: string | number }) { - return {label}{value}; + return {label}{value}; } function Empty({ text }: { text: string }) { @@ -202,5 +202,5 @@ function Empty({ text }: { text: string }) { } function WidgetError() { - return
Couldn't load this view — retrying automatically
; + return
Couldn't load this view — retrying automatically
; } diff --git a/ui/host/src/index.css b/ui/host/src/index.css index f43231ee..8a4ab38d 100644 --- a/ui/host/src/index.css +++ b/ui/host/src/index.css @@ -1,4 +1,31 @@ -/* Third-party integration boundaries only. Product components are styled by Mantine. */ +/* Third-party integration boundaries, plus the two rules Mantine has no token + for. Everything else is styled by the theme in ui/theme.ts. */ + +/* The ground for the first paint, before the app's own variables exist. The + attribute is set by the inline script in index.html; Mantine's CSS supplies + its default palette at that moment, not this one, so the ground is stated + literally here. The two values are `ground` in ui/tokens.ts — CSS cannot + import them, so changing one means changing both. + + `light-dark()` cannot do this job: Mantine's own stylesheet sets + `color-scheme` on `:root`, which outranks `html`, to a variable that is not + defined until MantineProvider runs — so the function would resolve to its + light argument every time. */ +html { + background: #fcfcfc; +} + +html[data-mantine-color-scheme="dark"] { + background: #0b0e14; +} + +/* Headings are set in the mono display face, which puts every glyph on the same + advance, so a title needs pulling in to read as a precise label rather than + as spaced-out text. Same -0.015em the site uses. :where() keeps specificity + at zero, so a component's own lts prop still wins. */ +:where(.mantine-Title-root, h1, h2, h3, h4, h5, h6) { + letter-spacing: -0.015em; +} html, body, #root { diff --git a/ui/host/src/main.tsx b/ui/host/src/main.tsx index 513cdfe8..1d6c329f 100644 --- a/ui/host/src/main.tsx +++ b/ui/host/src/main.tsx @@ -4,14 +4,26 @@ import { RouterProvider } from "@tanstack/react-router"; import { MantineProvider } from "@mantine/core"; import { router } from "./router"; import { fanoutTheme } from "./theme"; +import { fanoutCssVariables } from "../../theme"; import "@mantine/core/styles.css"; +// The typeface is shipped rather than named. The previous stack asked for Inter +// and never loaded it, so the product rendered in whatever sans the machine +// happened to have. +import "@fontsource/ibm-plex-sans/latin-400.css"; +import "@fontsource/ibm-plex-sans/latin-400-italic.css"; +import "@fontsource/ibm-plex-sans/latin-500.css"; +import "@fontsource/ibm-plex-sans/latin-600.css"; +import "@fontsource/ibm-plex-sans/latin-700.css"; +import "@fontsource/ibm-plex-mono/latin-400.css"; +import "@fontsource/ibm-plex-mono/latin-500.css"; +import "@fontsource/ibm-plex-mono/latin-600.css"; import "react-grid-layout/css/styles.css"; import "react-resizable/css/styles.css"; import "./index.css"; createRoot(document.getElementById("root")!).render( - + , diff --git a/ui/host/src/mcp-app-frame.tsx b/ui/host/src/mcp-app-frame.tsx index 6b2e6ab3..032d53e3 100644 --- a/ui/host/src/mcp-app-frame.tsx +++ b/ui/host/src/mcp-app-frame.tsx @@ -2,7 +2,7 @@ import { AppBridge, PostMessageTransport } from "@modelcontextprotocol/ext-apps/ import { Client } from "@modelcontextprotocol/sdk/client/index.js"; import { StreamableHTTPClientTransport } from "@modelcontextprotocol/sdk/client/streamableHttp.js"; import { CallToolResultSchema } from "@modelcontextprotocol/sdk/types.js"; -import { Alert, Box, Center, Loader, Text } from "@mantine/core"; +import { Alert, Box, Center, Loader, Text, useComputedColorScheme } from "@mantine/core"; import { useEffect, useRef, useState } from "react"; import { authorizedFetch } from "./auth"; @@ -186,6 +186,16 @@ export default function MCPAppFrame({ content, onMessage }: { content: MCPAppCon const [error, setError] = useState(""); const [connectionGeneration, setConnectionGeneration] = useState(0); const reconnectAttemptRef = useRef(0); + // An embedded view cannot see the host's stylesheet, so the scheme travels to + // it as host context. The ref is what a bridge reads at connect time; the + // effect below pushes every later change to a bridge already open. + const colorScheme = useComputedColorScheme("light"); + const colorSchemeRef = useRef(colorScheme); + colorSchemeRef.current = colorScheme; + + useEffect(() => { + bridgeRef.current?.setHostContext({ theme: colorScheme, displayMode: "inline" }); + }, [colorScheme]); useEffect(() => { reconnectAttemptRef.current = 0; }, [content.resourceUri]); @@ -257,7 +267,7 @@ export default function MCPAppFrame({ content, onMessage }: { content: MCPAppCon null, { name: "Fanout", version: "0.2.0" }, { openLinks: {}, serverTools: {}, logging: {} }, - { hostContext: { theme: "light", displayMode: "inline" } }, + { hostContext: { theme: colorSchemeRef.current, displayMode: "inline" } }, ); bridge.oncalltool = (params, extra) => mcpClient.request( { method: "tools/call", params }, @@ -289,7 +299,7 @@ export default function MCPAppFrame({ content, onMessage }: { content: MCPAppCon } } - if (error) return {error}; + if (error) return {error}; if (!html) return
Preparing view…
; return void connectBridge()} />; } diff --git a/ui/theme.ts b/ui/theme.ts index 12cb8141..d8ae0a30 100644 --- a/ui/theme.ts +++ b/ui/theme.ts @@ -1,8 +1,42 @@ +import { ayu, bad, brand, fonts, info, ok, warn } from "./tokens"; + +/* The Mantine binding for the tokens in ./tokens.ts. + * + * Colours are registered under what they mean rather than what hue they are: + * `brand` is the interactive accent, `ok`/`warn`/`bad` are the three health + * states and `info` is the fourth severity. A component asks for `ok` and gets + * whatever green the palette currently holds, so re-hueing the product is a + * change to ./tokens.ts and nothing else — which is what made the previous + * arrangement wrong, where "teal" was simultaneously the primary color and the + * literal a health badge asked for. + */ export const fanoutThemeConfig = { - primaryColor: "teal", + primaryColor: "brand", + /* Shade 7 is the site's link color on a light ground and shade 5 is its + color on a dark one, so each scheme picks the accent the documentation + already uses. */ + primaryShade: { light: 7, dark: 5 }, + /* Mantine picks the text color for filled surfaces from the fill's own + luminance, which the two-shade accent needs: white on #7c4dcc, near-black + on #a97ce0. */ + autoContrast: true, + colors: { dark: ayu, brand, ok, warn, bad, info }, defaultRadius: "md", - fontFamily: "Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, Segoe UI, sans-serif", - fontFamilyMonospace: "ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace", - headings: { fontFamily: "inherit", fontWeight: "650" }, + fontFamily: fonts.body, + fontFamilyMonospace: fonts.display, + /* Mono for headings, sans for prose — the site's rule, and the reason the + role change reads as hierarchy rather than as a second identity. 500 rather + than bold, so a heading reads as a precise label instead of shouting. */ + headings: { fontFamily: fonts.display, fontWeight: "500" }, cursorType: "pointer", } as const; + +/* Mantine derives a handful of variables from `red` no matter what the theme + says — the required-field asterisk and every error outline among them. They + are re-pointed at the palette's own red so an invalid field does not + introduce a fourth red to the page. */ +export const fanoutCssVariables = () => ({ + variables: { "--mantine-color-error": "var(--mantine-color-bad-filled)" }, + light: {}, + dark: {}, +}); diff --git a/ui/tokens.ts b/ui/tokens.ts new file mode 100644 index 00000000..26185dee --- /dev/null +++ b/ui/tokens.ts @@ -0,0 +1,110 @@ +/* Fanout design tokens. + * + * The palette is the documentation site's, restated for the browser app so the + * product and the pages that document it are recognizably the same thing. The + * source of the values is site/src/styles/fanout.css; anything changed here has + * to change there too. + * + * Surfaces are Ayu Dark. The slight blue cast is the point — a "corrected" + * neutral grey would undo what makes these read as Ayu rather than as any dark + * theme. + * + * The accent is violet, and that is the decision this file exists to hold. + * Green, amber and red are load-bearing in an observability product: they mean + * healthy, degraded and unhealthy, and they appear next to the thing being + * described. An interactive color that borrows one of those hues puts "green + * means healthy" in conflict with "green means clickable" on the same screen, + * which is exactly what teal-as-primary did here. Violet carries no status, so + * it is the hue free to mean "you can click this". + * + * Ramps run light to dark, which is Mantine's convention: index 0 is the + * lightest tint and index 9 the darkest shade. The site's own tokens are marked + * on the stop that carries them. + */ + +/** Ayu Dark surfaces. Mantine reads `dark` for every dark-scheme surface: + * 0 text, 2 dimmed, 4 border, 5 hover, 6 elevated surface, 7 body. */ +export const ayu = [ + "#fafafa", // --sl-color-white + "#e6e4de", // --sl-color-gray-1 + "#bfbdb6", // --sl-color-gray-2 + "#8b8e99", // --sl-color-gray-3 + "#565b69", // --sl-color-gray-4 + "#1d2433", // --sl-color-gray-5 + "#131721", // --sl-color-gray-6 + "#0b0e14", // --sl-color-black + "#080a10", + "#05070b", +] as const; + +/** The interactive accent. Shade 7 is the site's light-scheme link color and + * shade 5 its dark-scheme one, which is why primaryShade names those two. */ +export const brand = [ + "#f3ecfd", + "#ece3fb", // --sl-color-accent-low (light) + "#dcc9f7", + "#d2a6ff", // --sl-color-accent-high (dark) + "#bf94ec", + "#a97ce0", // --sl-color-accent (dark) + "#9163d6", + "#7c4dcc", // --sl-color-accent (light) + "#5b32a3", // --sl-color-accent-high (light) + "#40236f", +] as const; + +/** Healthy. Ayu's green, the hue the landing page's service table already uses. */ +export const ok = [ + "#eefbe6", "#dcf7cc", "#c2f0a6", "#a5e880", "#8fe06c", + "#7fd962", // site healthy + "#66c04b", "#4f9c3a", "#3b7a2c", "#2a5a1f", +] as const; + +/** Degraded. */ +export const warn = [ + "#fff5e6", "#ffe9c9", "#ffd79b", "#ffc571", "#ffbc62", + "#ffb454", // site degraded + "#ef9c33", "#c87d21", "#9c5f16", "#74460f", +] as const; + +/** Unhealthy, and every error surface. */ +export const bad = [ + "#fdecee", "#fbd9dc", "#f8b6bc", "#f59099", "#f37d87", + "#f26d78", // site unhealthy + "#e04d5a", "#c03642", "#96262f", "#6f1a21", +] as const; + +/** Informational — the fourth severity, deliberately not one of the three + * status hues. Ayu's entity blue. */ +export const info = [ + "#e8f6ff", "#ccebff", "#a3daff", "#7dcbff", "#66c5ff", + "#59c2ff", // Ayu entity + "#33a7e6", "#1e86bd", "#146694", "#0d4a6d", +] as const; + +/** Chart chrome. Charts are drawn by ECharts into a canvas, so they cannot read + * CSS custom properties and need the resolved values. These are the same Ayu + * and light-scheme stops the rest of the app gets from Mantine. */ +export const chart = { + dark: { text: "#bfbdb6", muted: "#8b8e99", grid: "#1d2433", surface: "#131721", border: "#565b69" }, + light: { text: "#4a5058", muted: "#6b7280", grid: "#eceef0", surface: "#fcfcfc", border: "#a4abb4" }, +} as const; + +/** Categorical series — one color per service or metric, where the color + * identifies rather than grades. Drawn from the brand mark's own ribbons, and + * kept clear of green, amber and red so a series is never mistaken for a + * health reading. */ +export const series = { + dark: ["#66d0ee", "#a97ce0", "#5fe8ce", "#cb55e8", "#41b6f8", "#d2a6ff"], + light: ["#2b93b5", "#7c4dcc", "#1a9c86", "#a12fbf", "#2f7fd4", "#9163d6"], +} as const; + +/** Light-scheme ground and dark-scheme ground, for the browser UI outside the + * document — the address bar and the tab strip. */ +export const ground = { light: "#fcfcfc", dark: "#0b0e14" } as const; + +export const fonts = { + /** Mono owns the brand, headings and technical artifacts. */ + display: '"IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace', + /** Sans is for sustained reading: prose, table cells, chat. */ + body: '"IBM Plex Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif', +} as const; From a4d2a609583aff730ee03cae43c179bbabe5613e Mon Sep 17 00:00:00 2001 From: Vishal Rana Date: Mon, 24 Aug 2026 11:24:35 -0700 Subject: [PATCH 2/2] fix(docker): copy every shared module into the browser build stages The two browser stages copied `ui/theme.ts` by name, so `ui/tokens.ts` never reached the container and both `bun run build` invocations failed on an unresolved import. Globbing the directory means the next shared module does not have to remember this file. Co-Authored-By: Claude Opus 5 (1M context) --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 4f7b8239..dad300ce 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,7 +6,7 @@ FROM oven/bun:1.3.14@sha256:e10577f0db68676a7024391c6e5cb4b879ebd17188ab750cf100 WORKDIR /app COPY ui/apps/package.json ui/apps/bun.lock ./ui/apps/ RUN cd ui/apps && bun install --frozen-lockfile -COPY ui/theme.ts ./ui/ +COPY ui/*.ts ./ui/ COPY ui/apps/ ./ui/apps/ COPY internal/mcp/apps/ ./internal/mcp/apps/ RUN cd ui/apps && bun run build @@ -15,7 +15,7 @@ FROM oven/bun:1.3.14@sha256:e10577f0db68676a7024391c6e5cb4b879ebd17188ab750cf100 WORKDIR /app COPY ui/host/package.json ui/host/bun.lock ./ui/host/ RUN cd ui/host && bun install --frozen-lockfile -COPY ui/theme.ts ./ui/ +COPY ui/*.ts ./ui/ COPY ui/host/ ./ui/host/ COPY internal/ui/ ./internal/ui/ RUN cd ui/host && bun run build