construct-hub 0.4.449 → 0.4.450
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.jsii +2 -2
- package/lib/construct-hub.js +1 -1
- package/lib/package-sources/code-artifact.js +1 -1
- package/lib/package-sources/npmjs.js +1 -1
- package/lib/package-tag/index.js +3 -3
- package/lib/package-tag-group/index.js +2 -2
- package/lib/preload-file/index.js +1 -1
- package/lib/s3/storage.js +1 -1
- package/lib/spdx-license.js +1 -1
- package/package.json +1 -1
- package/website/asset-manifest.json +33 -33
- package/website/index.html +1 -1
- package/website/static/js/323.87521e0e.chunk.js +2 -0
- package/website/static/js/{323.80d18b4c.chunk.js.map → 323.87521e0e.chunk.js.map} +1 -1
- package/website/static/js/332.febb776f.chunk.js +2 -0
- package/website/static/js/{332.9e0695b5.chunk.js.map → 332.febb776f.chunk.js.map} +1 -1
- package/website/static/js/375.bb76680a.chunk.js +2 -0
- package/website/static/js/{375.30524f64.chunk.js.map → 375.bb76680a.chunk.js.map} +1 -1
- package/website/static/js/421.e7beb2f8.chunk.js +2 -0
- package/website/static/js/{421.ec09e678.chunk.js.map → 421.e7beb2f8.chunk.js.map} +1 -1
- package/website/static/js/451.ab06f604.chunk.js +2 -0
- package/website/static/js/451.ab06f604.chunk.js.map +1 -0
- package/website/static/js/453.13ac0f49.chunk.js +2 -0
- package/website/static/js/{453.098e6dff.chunk.js.map → 453.13ac0f49.chunk.js.map} +1 -1
- package/website/static/js/496.78f7d987.chunk.js +2 -0
- package/website/static/js/496.78f7d987.chunk.js.map +1 -0
- package/website/static/js/516.295cb8e5.chunk.js +2 -0
- package/website/static/js/516.295cb8e5.chunk.js.map +1 -0
- package/website/static/js/591.dd3f55c2.chunk.js +2 -0
- package/website/static/js/{591.cb922910.chunk.js.map → 591.dd3f55c2.chunk.js.map} +1 -1
- package/website/static/js/619.03a83bdc.chunk.js +2 -0
- package/website/static/js/{619.70bb2d55.chunk.js.map → 619.03a83bdc.chunk.js.map} +1 -1
- package/website/static/js/685.03f9f432.chunk.js +3 -0
- package/website/static/js/685.03f9f432.chunk.js.map +1 -0
- package/website/static/js/773.57c57e6c.chunk.js +2 -0
- package/website/static/js/{773.ea0e9610.chunk.js.map → 773.57c57e6c.chunk.js.map} +1 -1
- package/website/static/js/8.75aab01d.chunk.js +3 -0
- package/website/static/js/{8.94165f2d.chunk.js.map → 8.75aab01d.chunk.js.map} +1 -1
- package/website/static/js/857.cad611f6.chunk.js +2 -0
- package/website/static/js/{857.3540b295.chunk.js.map → 857.cad611f6.chunk.js.map} +1 -1
- package/website/static/js/959.e074e3f9.chunk.js +2 -0
- package/website/static/js/{959.cd9d51a2.chunk.js.map → 959.e074e3f9.chunk.js.map} +1 -1
- package/website/static/js/main.c0358172.js +3 -0
- package/website/static/js/main.c0358172.js.map +1 -0
- package/website/static/js/323.80d18b4c.chunk.js +0 -2
- package/website/static/js/332.9e0695b5.chunk.js +0 -2
- package/website/static/js/375.30524f64.chunk.js +0 -2
- package/website/static/js/421.ec09e678.chunk.js +0 -2
- package/website/static/js/451.7c2110db.chunk.js +0 -2
- package/website/static/js/451.7c2110db.chunk.js.map +0 -1
- package/website/static/js/453.098e6dff.chunk.js +0 -2
- package/website/static/js/496.92802c31.chunk.js +0 -2
- package/website/static/js/496.92802c31.chunk.js.map +0 -1
- package/website/static/js/516.34bdea00.chunk.js +0 -2
- package/website/static/js/516.34bdea00.chunk.js.map +0 -1
- package/website/static/js/591.cb922910.chunk.js +0 -2
- package/website/static/js/619.70bb2d55.chunk.js +0 -2
- package/website/static/js/685.58592b70.chunk.js +0 -3
- package/website/static/js/685.58592b70.chunk.js.map +0 -1
- package/website/static/js/773.ea0e9610.chunk.js +0 -2
- package/website/static/js/8.94165f2d.chunk.js +0 -3
- package/website/static/js/857.3540b295.chunk.js +0 -2
- package/website/static/js/959.cd9d51a2.chunk.js +0 -2
- package/website/static/js/main.80cba683.js +0 -3
- package/website/static/js/main.80cba683.js.map +0 -1
- /package/website/static/js/{685.58592b70.chunk.js.LICENSE.txt → 685.03f9f432.chunk.js.LICENSE.txt} +0 -0
- /package/website/static/js/{8.94165f2d.chunk.js.LICENSE.txt → 8.75aab01d.chunk.js.LICENSE.txt} +0 -0
- /package/website/static/js/{main.80cba683.js.LICENSE.txt → main.c0358172.js.LICENSE.txt} +0 -0
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkconstruct_hub_webapp=self.webpackChunkconstruct_hub_webapp||[]).push([[323],{8323:(e,n,t)=>{t.r(n),t.d(n,{default:()=>d});var s=t(4450),a=t(4448),r=t(91688),o=t(46250),c=t(55410),u=t(70579);const d=()=>{const e=(0,o.d)();if(e.isLoading||!e.data)return(0,u.jsx)(s.ov,{minH:"16rem",children:(0,u.jsx)(a.y,{size:"xl"})});const n=(e=>{const n=e.packages;return n[Math.floor(Math.random()*n.length)]})(e.data),t=(0,c.q$)({name:n.name,version:n.version});return(0,u.jsx)(r.rd,{to:t})}}}]);
|
|
2
|
-
//# sourceMappingURL=323.80d18b4c.chunk.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkconstruct_hub_webapp=self.webpackChunkconstruct_hub_webapp||[]).push([[332],{48332:(e,t,r)=>{r.r(t),r.d(t,{default:()=>l});var s=r(13618),i=r(4450),n=r(62991),a=r(50425),o=r(93305),c=r(70579);const l=()=>(0,c.jsx)(a.Y,{meta:{description:"Learn about contributing to Construct Hub.",title:"Contribute"},pageName:"contribute",children:(0,c.jsxs)(n.Tw,{children:[(0,c.jsx)(n.hb,{children:"Contributing to Construct Hub"}),(0,c.jsxs)(s.nD,{allowMultiple:!0,allowToggle:!0,defaultIndex:[0],children:[(0,c.jsxs)(n.MT,{question:"How can I add my construct to Construct Hub?",children:[(0,c.jsxs)(i.EY,{children:["Constructs intended for Construct Hub must be published to the"," ",(0,c.jsx)(n.dN,{href:"https://www.npmjs.com/",children:"npm Registry"})," under Apache, BSD, EPL, MPL-2.0, ISC and CDDL or MIT open source licenses and annotated with a keyword recognized by Construct Hub (awscdk, cdk8s, or cdktf)."]}),(0,c.jsxs)(i.EY,{children:["Additionally, since one of the main goals of Construct Hub is to enable an ecosystem of constructs that can be consumed by all CDK languages, your library ",(0,c.jsx)("strong",{children:"must"})," be compiled with"," ",(0,c.jsx)(n.dN,{href:"https://aws.github.io/jsii/",children:"JSII"}),", a TypeScript-based tool for building multi-language libraries. Construct Hub leverages the type information produced by the JSII compiler to render a rich multi-language API reference for each construct."]}),(0,c.jsxs)(i.EY,{children:["Construct Hub continuously monitors the npm Registry. Packages that meet the above requirements appear in Construct Hub in about 30 minutes. If your package does not appear in Construct Hub, but meets these requirements, please file an issue against our"," ",(0,c.jsx)(n.dN,{href:"".concat(o.jP,"/issues/new"),children:"GitHub repository."})]}),(0,c.jsxs)(i.EY,{children:["The community has provided some great resources about publishing construct libraries that meet Construct Hub requirements. For example, see"," ",(0,c.jsxs)(n.dN,{href:"https://dev.to/aws-builders/a-beginner-s-guide-to-create-aws-cdk-construct-library-with-projen-5eh4",children:["\u201cA Beginner's Guide to Create AWS CDK ConstructLibrary with"," ","projen\u201d"]})," ","by ",(0,c.jsx)(n.dN,{href:"https://hayao-k.dev/",children:"hayao-k"}),"."]}),(0,c.jsxs)(i.EY,{children:["If you already have a library written in TypeScript and want to migrate it to JSII so it can be included in Construct Hub, see the"," ",(0,c.jsx)(n.dN,{href:"https://aws.github.io/jsii/user-guides/#library-author-guide",children:"JSII library author guide."})]})]}),(0,c.jsxs)(n.MT,{question:"What are the best practices for improving discoverability of a construct library on Construct Hub?",children:[(0,c.jsx)(i.EY,{children:"To improve your construct library\u2019s visibility on Construct Hub, follow these best practices:"}),(0,c.jsxs)(i._J,{sx:{li:{mt:4}},children:[(0,c.jsxs)(i.ck,{children:[(0,c.jsx)("strong",{children:"Helpful description."})," Publish your library with a description. Libraries without description have lower chances to be discovered by users. When you write your library\u2019s description, think: Why would someone use it? What makes it unique? Make the description as accurate and differentiated as possible."]}),(0,c.jsxs)(i.ck,{children:[(0,c.jsx)("strong",{children:"Helpful keywords."})," Publish your library with helpful keywords, ones that can help potential users to find your package. Helpful keywords can be technologies that are being used by the library, use cases the library is useful for, service names that are being used by the library etc. For example: \u2018Monitoring\u2019, \u2018Kubernetes\u2019, \u2018Cost Management\u2019, \u2018Websites\u2019, \u2018AI\u2019, \u2018Containers\u2019 and more."]}),(0,c.jsxs)(i.ck,{children:[(0,c.jsx)("strong",{children:"Helpful README."})," Review your library\u2019s README file. Is it developer-friendly? That is, can developers quickly understand the use case you\u2019re trying to solve? Does your README make it easy to get started with your library? Does it explain how your library is different from other libraries? Is it easy to understand at first glance the value developers gain from the library? For more information see *\u201cQ: What are the best practices for a developer-friendly README file?\u201d.*"]}),(0,c.jsxs)(i.ck,{children:[(0,c.jsx)("strong",{children:"API documentation."})," Document the library classes, methods, properties in the library\u2019s code. Construct Hub will display this information when it automatically generates the API documentation."]}),(0,c.jsxs)(i.ck,{children:[(0,c.jsx)("strong",{children:"Maintain your library."})," Developers prefer libraries that are updated on a regular basis. Our experience shows that successful libraries are those where publishers engage and collaborate with the user community, respond to issues and pull requests, fix bugs, and add capabilities. To gain more developers trust, maintain the releases section on your code repository and make sure to describe the changes between different releases. You may consider to link the libraries you\u2019ve published with your code repository."]}),(0,c.jsxs)(i.ck,{children:[(0,c.jsx)("strong",{children:"AWS Partner Network (APN) badge."})," If you\u2019re an AWS partner and you are publishing a library for your offering, please reach out to us and we will be happy to add a badge to your libraries with your company\u2019s name."]}),(0,c.jsxs)(i.ck,{children:[(0,c.jsx)("strong",{children:"Enable support for multiple programming languages."})," ","Make your library usable by a broader set of users and increase its value to the ecosystem. Starting with your library written in TypeScript, JSII will create packages in the other CDK programming languages. Construct Hub will then automatically generate API reference and transliterate code samples. All you need to do is to follow the instructions under *\u201cQ: How can I add my construct to Construct Hub?\u201d.*"]})]})]}),(0,c.jsxs)(n.MT,{question:"What are the best practices for writing a developer-friendly README file?",children:[(0,c.jsx)(i.EY,{children:"Developer-friendly READMEs help readers quickly understand your library\u2019s relevance to their needs and its unique value in comparison to similar libraries on the Construct Hub. Below is a suggestion for a README file structure:"}),(0,c.jsxs)(i.Xy,{sx:{li:{mt:4}},children:[(0,c.jsxs)(i.ck,{children:[(0,c.jsx)("strong",{children:"State and maturity of the library."})," Start your READMEs with helpful badges like"," ",(0,c.jsx)(n.dN,{href:"https://www.npmjs.com/package/cdk-codepipeline-badge-notification",children:"CDK pipelines badges"}),". It will help users see the state of your package."]}),(0,c.jsxs)(i.ck,{children:[(0,c.jsx)("strong",{children:"Short description"}),". What does this library do? Which use case does it solve? Which technologies and services does it use or support?"]}),(0,c.jsxs)(i.ck,{children:[(0,c.jsx)("strong",{children:"What is unique about this library?"})," Help readers quickly find the right library for their needs by stating its special advantages right up front. How does it compare to other libraries addressing the same need or that use the same technologies and services? You don\u2019t need an explicit \u201cus vs. them\u201d feature checklist; just make sure you communicate your library\u2019s unique value."]}),(0,c.jsxs)(i.ck,{children:[(0,c.jsx)("strong",{children:"Code samples."})," Include as many complete and working code samples as you can to help developers quickly understand how they can use your library. Some developers start reading code samples before anything else. Write your code samples in TypeScript, and Construct Hub will transliterate them to the other programming languages your library supports. A good practice is to include a minimal code sample of how to use your library in the first page of your README."]}),(0,c.jsxs)(i.ck,{children:[(0,c.jsx)("strong",{children:"Author information."})," Share information about you, other packages you\u2019ve published, and additional helpful links that can improve your credibility with readers."]}),(0,c.jsxs)(i.ck,{children:[(0,c.jsx)("strong",{children:"License and support."})," Include a \u201cLicense\u201d and \u201cContributing\u201d sections that invite users to contribute via links to your source code repository and issue tracker. (Construct Hub provides \u201cLicense\u201d and \u201cProvide Feedback\u201d in your library\u2019s package page, but it\u2019s convenient to have them in the README too.)"]}),(0,c.jsxs)(i.ck,{children:[(0,c.jsx)("strong",{children:"Diagrams."})," Diagrams always help readers quickly understand what a library does. Consider adding diagrams for libraries that create multiple services that work together."]}),(0,c.jsxs)(i.ck,{children:[(0,c.jsx)("strong",{children:"Explanatory videos."})," Consider sharing links to videos that can help potential customers engage with your library."]}),(0,c.jsxs)(i.ck,{children:[(0,c.jsx)("strong",{children:"Absolute links vs. relative."})," Use absolute links (those that start with http:// or https://) and not relative links. Relative links are prone to breaking when the content is shared elsewhere."]})]})]}),(0,c.jsxs)(n.MT,{question:"Why isn\u2019t my package displayed on Construct Hub?",children:[(0,c.jsx)(i.EY,{children:"Construct Hub includes publicly-available constructs that are JSII-compatible and that were published to the npm Registry with a permissive open-source license and a CDK keyword: aws-cdk, cdk8s, or cdktf. If you believe your package qualifies, but it does not appear in Construct Hub, please check the following:"}),(0,c.jsxs)(i.Xy,{sx:{li:{my:4}},children:[(0,c.jsxs)(i.ck,{children:["You are using JSII to compile your project. When you successfully build your project with jsii, a ",(0,c.jsx)("code",{children:".jsii"})," file should get created in the root of your project. See the"," ",(0,c.jsx)(n.dN,{href:"https://aws.github.io/jsii/user-guides/#library-author-guide",children:"JSII Library Author Guide"})," ","for more information about setting up JSII."]}),(0,c.jsxs)(i.ck,{children:["Your packaged library includes the ",(0,c.jsx)("code",{children:".jsii"})," file. If you have a ",(0,c.jsx)("code",{children:".npmignore"})," file, make sure it does not ignore"," ",(0,c.jsx)("code",{children:".jsii"}),'. (You can add "',(0,c.jsx)("code",{children:"!.jsii"}),'" to specify it ',(0,c.jsx)("em",{children:"should"})," be included in the packaged library.) If you are using the ",(0,c.jsx)("code",{children:"files"})," field in"," ",(0,c.jsx)("code",{children:"package.json"}),', make sure it includes "',(0,c.jsx)("code",{children:".jsii"}),'" (this list takes precedence over'," ",(0,c.jsx)("code",{children:".npmignore"}),")."]})]}),(0,c.jsxs)(i.EY,{children:["If your package still does not appear in Construct Hub, please raise an issue"," ",(0,c.jsx)(n.dN,{href:"".concat(o.jP,"/issues/new"),children:"here"}),"."]})]}),(0,c.jsx)(n.MT,{question:"Can I update my package after it has been displayed?",children:(0,c.jsx)(i.EY,{children:"Yes, you can and should! After you publish a new valid version to the public npm Registry, it should appear on Construct Hub in about 30 minutes."})}),(0,c.jsx)(n.MT,{question:"How can I report a bug or contribute code to a construct?",children:(0,c.jsx)(i.EY,{children:"Each package is owned by its publisher, so contributions, such as bug reports and pull requests, should be made via the repository link provided by the publisher. You may press the \u2018Provide feedback\u2019 link at the package page to open a new issue in at the package\u2019s repository."})}),(0,c.jsxs)(n.MT,{question:"How can I participate in link the Construct Hub community?",children:["Construct Hub is itself an open-source construct! Join the"," ",(0,c.jsx)(n.dN,{href:"https://github.com/cdklabs/construct-hub",children:"Construct Hub GitHub community"}),". You are also welcome to join the #construct-hub-dev channel in the"," ",(0,c.jsx)(n.dN,{href:"https://cdk.dev/",children:"CDK community Slack workspace"})]}),(0,c.jsx)(n.MT,{question:"Is there a Slack channel for the CDK community?",children:(0,c.jsxs)(i.EY,{children:["Please join the"," ",(0,c.jsx)(n.dN,{href:"https://cdk.dev/",children:"CDK Slack channel"}),". This Slack channel is managed by the CDK community, for the CDK community."]})})]})]})})},49182:(e,t,r)=>{r.d(t,{R:()=>i});var s=r(75714);const i=e=>{const{data:t}=(0,s.U)();return(null!==t&&void 0!==t?t:{})[e]}},50425:(e,t,r)=>{r.d(t,{Y:()=>l});var s=r(65043),i=r(41591);const n={contribute:{event:{name:"Contribute Load"}},home:{event:{name:"Home Load"}},faq:{event:{name:"Frequently Asked Questions Load"}},packageProfile:{event:{name:"Package Profile Load"}},search:{event:{name:"Search Load"}},siteTerms:{event:{name:"Site Terms Load"}},notFound:{page:{pageType:"errorPage"},event:{name:"404 Page Load"}}};var a=r(99103),o=r(49182),c=r(70579);["default-src 'self' 'unsafe-inline' http://*.awsstatic.com;","connect-src 'self' https://*.shortbread.aws.dev http://*.shortbread.aws.dev http://a0.awsstatic.com/ http://amazonwebservices.d2.sc.omtrdc.net http://aws.demdex.net http://dpm.demdex.net http://cm.everesttech.net;","frame-src http://aws.demdex.net http://dpm.demdex.net;","img-src 'self' https://* http://a0.awsstatic.com/ http://amazonwebservices.d2.sc.omtrdc.net http://aws.demdex.net http://dpm.demdex.net http://cm.everesttech.net;","object-src 'none';","style-src 'self' 'unsafe-inline';"].join(" ");const l=e=>{let{children:t,meta:r,pageName:l}=e;const d=(0,a.Or)(n[l]);(0,s.useEffect)(()=>{d()},[d]);const u=(0,o.R)("feeds")||[],{suffix:h=!0,title:p,description:b}=r,m=h?"".concat(p," - Construct Hub"):p;return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsxs)(i.m,{children:[!1,(0,c.jsx)("meta",{content:"width=device-width, initial-scale=1",name:"viewport"}),(0,c.jsx)("meta",{charSet:"utf-8"}),u.map(e=>{let{url:t,mimeType:r}=e;return(0,c.jsx)("link",{href:t,rel:"alternate",type:r},t)}),(0,c.jsx)("title",{children:m}),(0,c.jsx)("meta",{content:m,property:"og:title"}),(0,c.jsx)("meta",{content:m,name:"twitter:title"}),(0,c.jsx)("meta",{content:"summary",name:"twitter:card"}),(0,c.jsx)("meta",{content:b,name:"description"}),(0,c.jsx)("meta",{content:b,property:"og:description"}),(0,c.jsx)("meta",{content:b,name:"twitter:description"})]}),t]})}},62991:(e,t,r)=>{r.d(t,{Tw:()=>n,hb:()=>a,MT:()=>c,dN:()=>d,YS:()=>u,rw:()=>m});var s=r(4450),i=r(70579);const n=e=>{let{children:t}=e;return(0,i.jsxs)(s.az,{bg:"bgSecondary",color:"textPrimary",h:"100%",w:"100%",children:[t,(0,i.jsx)(s.az,{py:5,width:"100%"})]})},a=e=>{let{children:t}=e;return(0,i.jsx)(s.az,{bg:"bgPrimary",py:20,width:"100%",children:(0,i.jsx)(s.DZ,{as:"h1",color:"textPrimary",mx:"auto",textAlign:"center",children:t})})};var o=r(13618);const c=e=>{let{question:t,children:r}=e;return(0,i.jsxs)(o.As,{children:[(0,i.jsxs)(o.J2,{children:[(0,i.jsx)(s.az,{flex:"1",py:2,textAlign:"left",children:(0,i.jsx)(s.DZ,{as:"h3",ml:8,size:"sm",children:t})}),(0,i.jsx)(o.QJ,{})]}),(0,i.jsx)(o.vr,{px:12,py:4,children:(0,i.jsx)(s.EY,{color:"textPrimary",fontSize:"md",sx:{p:{marginTop:"0",marginBottom:"4"}},children:r})})]})};var l=r(27200);const d=e=>{let{href:t,children:r}=e;return(0,i.jsx)(l.G,{color:"inherit",hasWarning:!1,href:t,textDecoration:"underline",children:r})},u=e=>{let{heading:t,children:r}=e;return(0,i.jsxs)(o.As,{children:[(0,i.jsxs)(o.J2,{children:[(0,i.jsx)(s.az,{flex:"1",textAlign:"left",children:(0,i.jsx)(s.DZ,{as:"h2",ml:4,my:4,size:"lg",children:t})}),(0,i.jsx)(o.QJ,{})]}),(0,i.jsx)(o.vr,{p:0,children:(0,i.jsx)(o.nD,{allowMultiple:!0,w:"100%",children:r})})]})};var h=r(89379),p=r(80045);const b=["children"],m=e=>{let{children:t}=e,r=(0,p.A)(e,b);return(0,i.jsx)(o.nD,(0,h.A)((0,h.A)({allowMultiple:!0},r),{},{children:t}))}}}]);
|
|
2
|
-
//# sourceMappingURL=332.9e0695b5.chunk.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkconstruct_hub_webapp=self.webpackChunkconstruct_hub_webapp||[]).push([[375],{32892:(e,t,n)=>{n.d(t,{_V:()=>u});var a=n(21038),r=n(23216),s=n(65043),o=n(92006);function c(){return c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},c.apply(this,arguments)}function i(e,t){if(null==e)return{};var n,a,r={},s=Object.keys(e);for(a=0;a<s.length;a++)n=s[a],t.indexOf(n)>=0||(r[n]=e[n]);return r}var l=["htmlWidth","htmlHeight","alt"],d=["fallbackSrc","fallback","src","srcSet","align","fit","loading","ignoreFallback","crossOrigin"],m=s.forwardRef(function(e,t){var n=e.htmlWidth,a=e.htmlHeight,r=e.alt,o=i(e,l);return s.createElement("img",c({width:n,height:a,ref:t,alt:r},o))}),u=(0,a.Rf)(function(e,t){var n=e.fallbackSrc,l=e.fallback,u=e.src,p=e.srcSet,h=e.align,f=e.fit,g=e.loading,v=e.ignoreFallback,b=e.crossOrigin,x=i(e,d),w=null!=g||v||void 0===n&&void 0===l,j=function(e){var t=e.loading,n=e.src,a=e.srcSet,r=e.onLoad,c=e.onError,i=e.crossOrigin,l=e.sizes,d=e.ignoreFallback,m=(0,s.useState)("pending"),u=m[0],p=m[1];(0,s.useEffect)(function(){p(n?"loading":"pending")},[n]);var h=(0,s.useRef)(),f=(0,s.useCallback)(function(){if(n){g();var e=new Image;e.src=n,i&&(e.crossOrigin=i),a&&(e.srcset=a),l&&(e.sizes=l),t&&(e.loading=t),e.onload=function(e){g(),p("loaded"),null==r||r(e)},e.onerror=function(e){g(),p("failed"),null==c||c(e)},h.current=e}},[n,i,a,l,r,c,t]),g=function(){h.current&&(h.current.onload=null,h.current.onerror=null,h.current=null)};return(0,o.a)(function(){if(!d)return"loading"===u&&f(),function(){g()}},[u,f,d]),d?"loaded":u}(c({},e,{ignoreFallback:w})),k=c({ref:t,objectFit:f,objectPosition:h},w?x:(0,r.cJ)(x,["onError","onLoad"]));return"loaded"!==j?l||s.createElement(a.Bv.img,c({as:m,className:"chakra-image__placeholder",src:n},k)):s.createElement(a.Bv.img,c({as:m,src:u,srcSet:p,crossOrigin:b,loading:g,className:"chakra-image"},k))});r.gt&&(u.displayName="Image")},45375:(e,t,n)=>{n.r(t),n.d(t,{NotFound:()=>f,default:()=>f});var a=n(4450),r=n(22554),s=n(62582),o=n(50425),c=n(89379),i=n(80045),l=n(21038),d=n(32892),m=n(70579);const u=["sources"],p=(0,l.Rf)((e,t)=>{let{sources:n}=e,r=(0,i.A)(e,u);return(0,m.jsxs)(a.az,{as:"picture",children:[null===n||void 0===n?void 0:n.map((e,t)=>(0,m.jsx)("source",{media:e.media,srcSet:e.srcSet},t)),(0,m.jsx)(d._V,(0,c.A)({ref:t},r))]})});p.displayName="Picture";const h={optimal:[{media:"(max-width:1024px)",srcSet:"/assets/404-hive@50.webp"},{media:"(min-width:1024px)",srcSet:"/assets/404-hive@100.webp"},{media:"(min-width:1024px)",srcSet:"/assets/404-hive@100.png"}],fallback:"/assets/404-hive@50.png"},f=()=>(0,m.jsx)(o.Y,{meta:{title:"Not Found",description:"Oops! The page you were looking for does not exist"},pageName:"notFound",children:(0,m.jsxs)(a.ov,{h:"100%",position:"relative",w:"100%",children:[(0,m.jsx)(p,{alt:"",inset:0,position:"absolute",sources:h.optimal,src:h.fallback,zIndex:"hide"}),(0,m.jsxs)(a.so,{align:"center",direction:"column",justify:"center",children:[(0,m.jsx)(p,{alt:"404 Image",sources:[{srcSet:"/assets/robot.webp"}],src:"/assets/robot.png"}),(0,m.jsx)(r.$n,{as:s.N_,colorScheme:"brand",to:"/",children:"Take Me Home"})]})]})})},49182:(e,t,n)=>{n.d(t,{R:()=>r});var a=n(75714);const r=e=>{const{data:t}=(0,a.U)();return(null!==t&&void 0!==t?t:{})[e]}},50425:(e,t,n)=>{n.d(t,{Y:()=>l});var a=n(65043),r=n(41591);const s={contribute:{event:{name:"Contribute Load"}},home:{event:{name:"Home Load"}},faq:{event:{name:"Frequently Asked Questions Load"}},packageProfile:{event:{name:"Package Profile Load"}},search:{event:{name:"Search Load"}},siteTerms:{event:{name:"Site Terms Load"}},notFound:{page:{pageType:"errorPage"},event:{name:"404 Page Load"}}};var o=n(99103),c=n(49182),i=n(70579);["default-src 'self' 'unsafe-inline' http://*.awsstatic.com;","connect-src 'self' https://*.shortbread.aws.dev http://*.shortbread.aws.dev http://a0.awsstatic.com/ http://amazonwebservices.d2.sc.omtrdc.net http://aws.demdex.net http://dpm.demdex.net http://cm.everesttech.net;","frame-src http://aws.demdex.net http://dpm.demdex.net;","img-src 'self' https://* http://a0.awsstatic.com/ http://amazonwebservices.d2.sc.omtrdc.net http://aws.demdex.net http://dpm.demdex.net http://cm.everesttech.net;","object-src 'none';","style-src 'self' 'unsafe-inline';"].join(" ");const l=e=>{let{children:t,meta:n,pageName:l}=e;const d=(0,o.Or)(s[l]);(0,a.useEffect)(()=>{d()},[d]);const m=(0,c.R)("feeds")||[],{suffix:u=!0,title:p,description:h}=n,f=u?"".concat(p," - Construct Hub"):p;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(r.m,{children:[!1,(0,i.jsx)("meta",{content:"width=device-width, initial-scale=1",name:"viewport"}),(0,i.jsx)("meta",{charSet:"utf-8"}),m.map(e=>{let{url:t,mimeType:n}=e;return(0,i.jsx)("link",{href:t,rel:"alternate",type:n},t)}),(0,i.jsx)("title",{children:f}),(0,i.jsx)("meta",{content:f,property:"og:title"}),(0,i.jsx)("meta",{content:f,name:"twitter:title"}),(0,i.jsx)("meta",{content:"summary",name:"twitter:card"}),(0,i.jsx)("meta",{content:h,name:"description"}),(0,i.jsx)("meta",{content:h,property:"og:description"}),(0,i.jsx)("meta",{content:h,name:"twitter:description"})]}),t]})}}}]);
|
|
2
|
-
//# sourceMappingURL=375.30524f64.chunk.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkconstruct_hub_webapp=self.webpackChunkconstruct_hub_webapp||[]).push([[421],{4029:(e,t,n)=>{n.d(t,{o:()=>u});var a=n(65043),o=n(91688),r=n(68195),s=n(32337),i=n(19507);const l=r.TM.TypeScript,c="preferred-language",d=e=>null!=e&&r.WX.has(e),u=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{updateUrl:t,updateSaved:n}=e,{pathname:r,hash:u}=(0,o.zy)(),{replace:h}=(0,o.W6)(),m=(0,i.s)(),p=m.get(s.uB.LANGUAGE),[g,v]=(0,a.useState)(()=>(e=>{if(d(e))return e;try{var t;const e=null!==(t=localStorage.getItem(c))&&void 0!==t?t:"";if(d(e))return e}catch(n){}return l})(p));(0,a.useEffect)(()=>{d(p)&&p!==g&&v(p)},[p]),(0,a.useEffect)(()=>{p!==g&&t&&(m.set(s.uB.LANGUAGE,g),h({pathname:r,hash:u,search:m.toString()}))},[g,t]);const x=(0,a.useCallback)(e=>{if(v(e),n)try{localStorage.setItem(c,e)}catch(t){}},[n]);return(0,a.useMemo)(()=>[g,x],[g,x])}},16195:(e,t,n)=>{n.d(t,{rh:()=>l,um:()=>r});var a=n(89379),o=n(6546);const r=e=>!e||e.length<1?[]:e.reduce((e,t)=>t.highlight?[...e,t.highlight]:e,[]),s=e=>(null!==e&&void 0!==e?e:[]).filter(e=>{var t;return Boolean(null===(t=e.keyword)||void 0===t?void 0:t.label)}).map(e=>{var t;return(0,a.A)((0,a.A)({},e),{},{id:null===(t=e.keyword)||void 0===t?void 0:t.label})}),i=e=>!e||e.length<1?[]:e.filter(e=>Boolean(e)&&!o._.has(e)).map(e=>({id:e,keyword:{label:e}})),l=e=>{let{packageTags:t,keywords:n}=e;const a=new Array,o=new Set;for(const r of[...s(t),...i(n)]){const e=r.keyword.label.toLowerCase();o.has(e)||(a.push(r),o.add(e))}return a}},19507:(e,t,n)=>{n.d(t,{s:()=>r});var a=n(65043),o=n(91688);const r=()=>{const{search:e}=(0,o.zy)();return(0,a.useMemo)(()=>new URLSearchParams(e),[e])}},19608:(e,t,n)=>{n.d(t,{f:()=>i});var a=n(31206),o=n(4450),r=n(32892),s=n(70579);const i=e=>{let{label:t,color:n,icon:i}=e;const l=(0,a.dU)("none","brightness(1.75)");return(0,s.jsxs)(o.BJ,{align:"center",direction:"row",filter:l,spacing:2,children:[(0,s.jsx)(r._V,{alt:"".concat(t," icon"),src:i,w:4}),(0,s.jsx)(o.EY,{color:n,fontWeight:"bold",children:t})]})}},40483:(e,t,n)=>{n.d(t,{n:()=>d});var a=n(89379),o=n(80045),r=n(19154),s=n(55410),i=n(71154),l=n(70579);const c=["children","value","label","zIndex"],d=e=>{let{children:t,value:n,label:d=n,zIndex:u}=e,h=(0,o.A)(e,c);return(0,l.jsx)(i.k,{"aria-label":"Tag: ".concat(d),to:(0,s.iS)({keywords:[n]}),zIndex:u,children:(0,l.jsx)(r.vw,(0,a.A)((0,a.A)({_hover:{textDecoration:"underline"}},h),{},{children:(0,l.jsx)(r.d1,{children:t})}))})}},45375:(e,t,n)=>{n.r(t),n.d(t,{NotFound:()=>g,default:()=>g});var a=n(4450),o=n(22554),r=n(62582),s=n(50425),i=n(89379),l=n(80045),c=n(21038),d=n(32892),u=n(70579);const h=["sources"],m=(0,c.Rf)((e,t)=>{let{sources:n}=e,o=(0,l.A)(e,h);return(0,u.jsxs)(a.az,{as:"picture",children:[null===n||void 0===n?void 0:n.map((e,t)=>(0,u.jsx)("source",{media:e.media,srcSet:e.srcSet},t)),(0,u.jsx)(d._V,(0,i.A)({ref:t},o))]})});m.displayName="Picture";const p={optimal:[{media:"(max-width:1024px)",srcSet:"/assets/404-hive@50.webp"},{media:"(min-width:1024px)",srcSet:"/assets/404-hive@100.webp"},{media:"(min-width:1024px)",srcSet:"/assets/404-hive@100.png"}],fallback:"/assets/404-hive@50.png"},g=()=>(0,u.jsx)(s.Y,{meta:{title:"Not Found",description:"Oops! The page you were looking for does not exist"},pageName:"notFound",children:(0,u.jsxs)(a.ov,{h:"100%",position:"relative",w:"100%",children:[(0,u.jsx)(m,{alt:"",inset:0,position:"absolute",sources:p.optimal,src:p.fallback,zIndex:"hide"}),(0,u.jsxs)(a.so,{align:"center",direction:"column",justify:"center",children:[(0,u.jsx)(m,{alt:"404 Image",sources:[{srcSet:"/assets/robot.webp"}],src:"/assets/robot.png"}),(0,u.jsx)(o.$n,{as:r.N_,colorScheme:"brand",to:"/",children:"Take Me Home"})]})]})})},49182:(e,t,n)=>{n.d(t,{R:()=>o});var a=n(75714);const o=e=>{const{data:t}=(0,a.U)();return(null!==t&&void 0!==t?t:{})[e]}},50425:(e,t,n)=>{n.d(t,{Y:()=>c});var a=n(65043),o=n(41591);const r={contribute:{event:{name:"Contribute Load"}},home:{event:{name:"Home Load"}},faq:{event:{name:"Frequently Asked Questions Load"}},packageProfile:{event:{name:"Package Profile Load"}},search:{event:{name:"Search Load"}},siteTerms:{event:{name:"Site Terms Load"}},notFound:{page:{pageType:"errorPage"},event:{name:"404 Page Load"}}};var s=n(99103),i=n(49182),l=n(70579);["default-src 'self' 'unsafe-inline' http://*.awsstatic.com;","connect-src 'self' https://*.shortbread.aws.dev http://*.shortbread.aws.dev http://a0.awsstatic.com/ http://amazonwebservices.d2.sc.omtrdc.net http://aws.demdex.net http://dpm.demdex.net http://cm.everesttech.net;","frame-src http://aws.demdex.net http://dpm.demdex.net;","img-src 'self' https://* http://a0.awsstatic.com/ http://amazonwebservices.d2.sc.omtrdc.net http://aws.demdex.net http://dpm.demdex.net http://cm.everesttech.net;","object-src 'none';","style-src 'self' 'unsafe-inline';"].join(" ");const c=e=>{let{children:t,meta:n,pageName:c}=e;const d=(0,s.Or)(r[c]);(0,a.useEffect)(()=>{d()},[d]);const u=(0,i.R)("feeds")||[],{suffix:h=!0,title:m,description:p}=n,g=h?"".concat(m," - Construct Hub"):m;return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)(o.m,{children:[!1,(0,l.jsx)("meta",{content:"width=device-width, initial-scale=1",name:"viewport"}),(0,l.jsx)("meta",{charSet:"utf-8"}),u.map(e=>{let{url:t,mimeType:n}=e;return(0,l.jsx)("link",{href:t,rel:"alternate",type:n},t)}),(0,l.jsx)("title",{children:g}),(0,l.jsx)("meta",{content:g,property:"og:title"}),(0,l.jsx)("meta",{content:g,name:"twitter:title"}),(0,l.jsx)("meta",{content:"summary",name:"twitter:card"}),(0,l.jsx)("meta",{content:p,name:"description"}),(0,l.jsx)("meta",{content:p,property:"og:description"}),(0,l.jsx)("meta",{content:p,name:"twitter:description"})]}),t]})}},60310:(e,t,n)=>{n.d(t,{g:()=>d});var a=n(89379),o=n(80045),r=n(21038),s=n(4450),i=n(7842),l=n(70579);const c=["date","format","formattedDate"],d=(0,r.Rf)((e,t)=>{let{date:n,format:r,formattedDate:d}=e,u=(0,o.A)(e,c);return(0,l.jsx)(s.az,(0,a.A)((0,a.A)({as:"time",dateTime:n.toISOString(),ref:t},u),{},{children:null!==d&&void 0!==d?d:(0,i.A)(n,null!==r&&void 0!==r?r:"")}))});d.displayName="Time"},73421:(e,t,n)=>{n.r(t),n.d(t,{default:()=>fn});var a=n(91688),o=n(45375),r=n(4450),s=n(78858),i=n(65043),l=n(8926);const c=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,l.e)("Package Page",...t)},d={SCOPE:c(),SELECT_VERSION:c("Select Version"),CDK_BADGE:{eventName:e=>c("CDK Badge",e)},KEYWORD:{eventName:e=>c("Keyword",e)},LANGUAGE:{eventName:e=>c("Language",e)},DOCUMENTATION:{TAB:c("Documentation","Tab")},DEPENDENCIES:{TAB:c("Dependencies","Tab")},GITHUB_BADGE:{TAB:c("Badge","Tab")},FEEDBACK:{PUBLISHER:c("Feedback","Publisher"),CONSTRUCT_HUB:c("Feedback","Construct Hub"),ABUSE:c("Feedback","Abuse")}},u="api",h="Readme",m="docs-container";var p=n(89379),g=n(82907),v=n(19827),x=n.n(v),f=n(32337);const j=e=>e.toLowerCase().replace(/[^a-zA-Z0-9 ]/g,"").replace(/ /g,"-"),b=(e,t)=>{const n=e[e.length-1];return n&&n.level<t.level?(n.children=b(n.children,t),e):(e.push(t),e)},y=function(e){const t=new RegExp("(`{3}[\\s\\S]*?(?:`{3})|^#{1,".concat(arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,"}[^#].*)"),"gm");return e.split(t).reduce((e,t)=>{const n=e[e.length-1];return t.startsWith("#")||null!==n&&void 0!==n&&n.startsWith("#")?[...e,t]:(e[e.length-1]+=t,e)},[])},w=e=>{var t,n,a,o;const r=(null!==(t=e.match(/(\S+)\s*=\s*(\"?)([^"]*)(\2|\s|$)/g))&&void 0!==t?t:[]).reduce((e,t)=>{var n;const[a,o]=t.split("="),[r,s]=null!==(n=/['"](.*?)['"]/.exec(o))&&void 0!==n?n:[];return(0,p.A)((0,p.A)({},e),{},{[a]:s})},{}),[s,i]=null!==(n=/^#*\s*(?:<a\s.*?(?:\/>|<\/a>))?\s*([^<]+?)\s*(?:<|$)/.exec(e))&&void 0!==n?n:[e,e],l=i.replace(/\[([^\]]+)\](?:\([^)]+\)|\[[^\]]+\])/g,"$1").replace(/:\+1:|:-1:|:[\w-]+:/g,e=>{var t;return null!==(t=x().get(e))&&void 0!==t?t:e}),c=null!==(a=r["data-heading-title"])&&void 0!==a?a:l;return{id:null!==(o=r["data-heading-id"])&&void 0!==o?o:encodeURIComponent(j(c)),title:c}},C=(e,t)=>{let{scope:n,language:a,name:o,version:r,submodule:s}=t;const i=n?"".concat(n,"/").concat(o):"".concat(o),l="/packages/".concat(i,"/v/").concat(r);let c="?".concat(f.uB.LANGUAGE,"=").concat(a);s&&(c+="&submodule=".concat(s));const d='# API Reference <span data-heading-title="API Reference" data-heading-id="api-reference"></span>',u=e.split(d),m=u.length>1?u.pop():"",g=u.join(d),v=y(m,3),x=y(g),j=[d.trim(),...null!==v&&void 0!==v?v:[]],C="".concat(l).concat(c);let k=x.reduce((e,t)=>{if(t.startsWith("#")){var n,a;const{id:o,title:r}=w(t),s=null!==(n=null===(a=t.match(/(#)/gm))||void 0===a?void 0:a.length)&&void 0!==n?n:1,i=(e=>((e.endsWith(".")||e.endsWith(":"))&&(e=e.slice(0,-1)),e))(r),l={level:s,id:o,title:i,path:"".concat(C,"#").concat(o),children:[]};return b(e,l)}return e},[]);1===k.length&&(k=k[0].children);let A=[...[{level:1,id:h,title:"Readme",path:C,children:k}]];const S={};let T,E;return null===j||void 0===j||j.forEach(e=>{var t,n;const a=e.match(/(^#{1,3}[^#].*)/g),o=null!==(t=null===(n=e.match(/(#)/gm))||void 0===n?void 0:n.length)&&void 0!==t?t:1;if(null!==a&&void 0!==a&&a.length){const{id:t,title:n}=w(e),a=3===o?(e=>"".concat(l,"/api/").concat(e).concat(c))(t):void 0,r=(0,p.A)({level:o,id:t,title:n,children:[]},a?{path:a}:{});A=b(A,r),T={id:t,title:n},E=o}else 3===E&&(S[T.id]={title:T.title,content:e})}),{readme:g,apiReference:S,menuItems:A}},k=(e,t)=>t?"".concat(t,"/").concat(e):e,A=(e,t,n)=>{const a="".concat(f.Y$.PACKAGES_PREFIX,"/"),o=k(e,n),r="/v".concat(t);return"".concat(a).concat(o).concat(r)},S=e=>{let t=e;return(t.startsWith("~")||t.startsWith("^"))&&(t=t.substring(1)),t},T=(e,t,n)=>"/docs-".concat(n?"".concat(n,"-"):"").concat(e,".").concat(t);var E=n(68195),I=n(4029),L=n(19507);const z={packages:{},updated:"NOT_FOUND"},B=async()=>{const e=await fetch(f.Y$.ALL_VERSIONS);return e.ok?e.json().catch(e=>(console.error(e),console.warn("Error in package versions response. Using empty data."),z)):(console.error(e.statusText),console.warn("Could not retrieve package versions. Using empty data."),z)};var D=n(70579);const O=(0,i.createContext)(void 0),M=()=>{const e=(0,i.useContext)(O);if(!e)throw new Error("This component must be a child of a <PackageStateProvider />");return e},R=e=>{var t,n,r,s,l;let{children:c}=e;const{name:d,scope:u,version:h}=(0,a.g)(),m="".concat(u,"/").concat(d,"/v").concat(h),[v]=(0,I.o)(),x=null!==(t=(0,L.s)().get(f.uB.SUBMODULE))&&void 0!==t?t:"",{data:j}=(0,g.useQuery)("Versions",B),b=u?"".concat(u,"/").concat(d):d,y=null===j||void 0===j?void 0:j.packages[b],w=(0,g.useQuery)("".concat(m,"-docs-").concat(v,"-").concat(x,"-md"),()=>(async(e,t,n,a,o)=>{const r=T(n,"md",o),s="".concat(A(e,t,a)).concat(r),i=await fetch(s);if(!i.ok)throw new Error("Failed fetching documentation for ".concat(s,": ").concat(i.statusText));const l="text/markdown",c=i.headers.get("Content-Type");if(!c||!c.includes(l))throw new Error("Invalid content type: ".concat(c,". Expected ").concat(l,'"'));return i.text()})(d,h,E.YW[v],u,x)),k=(0,g.useQuery)("".concat(m,"-docs-").concat(v,"-").concat(x,"-json"),()=>(async(e,t,n,a,o)=>{const r=T(n,"json",o),s="".concat(A(e,t,a)).concat(r),i=await fetch(s);if(!i.ok)throw new Error("Failed fetching documentation for ".concat(s,": ").concat(i.statusText));const l="application/json",c=i.headers.get("Content-Type");if(!c||!c.includes(l))throw new Error("Invalid content type: ".concat(c,". Expected ").concat(l,'"'));return i.json()})(d,h,E.YW[v],u,x)),S=(0,g.useQuery)("".concat(m,"-assembly"),()=>(async(e,t,n)=>{const a="".concat(A(e,t,n)).concat(f.Y$.ASSEMBLY_SUFFIX),o=await fetch(a);if(!o.ok)throw new Error("Failed fetching assembly for ".concat(a,": ").concat(o.statusText));return o.json()})(d,h,u)),z=(0,g.useQuery)("".concat(m,"-metadata"),()=>(async(e,t,n)=>{let a=t;a.startsWith("^")&&(a=a.substring(1,a.length));const o="".concat(A(e,t,n)).concat(f.Y$.METADATA_SUFFIX),r=await fetch(o);if(!r.ok)throw new Error("Failed fetching metadata for ".concat(o,": ").concat(r.statusText));return r.json()})(d,h,u)),M="".concat(u?"".concat(u,"/").concat(d):d," ").concat(h),R=null!==(n=null===(r=S.data)||void 0===r?void 0:r.description)&&void 0!==n?n:"",P=Boolean(w.error||k.error||S.error),N=Boolean(!w.isLoading&&!k.isLoading&&!S.isLoading&&w.data&&k.data&&S.data),W=Boolean(v===E.TM.TypeScript||S.isLoading||S.error||null!=(null===(s=S.data)||void 0===s||null===(l=s.targets)||void 0===l?void 0:l[v.toString()])),U=Boolean(!z.isLoading&&(S.isLoading||w.isLoading||k.isLoading)),G=(0,i.useMemo)(()=>w.data?C(w.data,{scope:u,name:d,version:h,language:v,submodule:x}):{menuItems:[]},[w.data,d,u,h,v,x]);return S.error?(0,D.jsx)(o.NotFound,{}):(0,D.jsx)(O.Provider,{value:(0,p.A)({assembly:S,hasDocs:N,hasError:P,isLoadingDocs:U,isSupported:W,language:v,markdownDocs:w,jsonDocs:k,metadata:z,name:d,pageDescription:R,pageTitle:M,scope:u,version:h,allVersions:y},G),children:c})};var P=n(81249);const N=(0,P.$)("package-page",["page","feedbackLinks","reportLink","reportAbuseLink","githubLink","dependenciesTab","dependenciesList","dependenciesLink","badgeTab","description","markdown","selectVersionButton","selectVersionDropdown","selectVersionItem"]);var W=n(71154),U=n(81176),G=n(55410);const F=()=>{var e;const t=M().assembly.data;if(!t)return(0,D.jsx)(U.D,{});const n=Object.entries(null!==(e=t.dependencies)&&void 0!==e?e:{});return n.length?(0,D.jsx)(r.BJ,{"data-testid":N.dependenciesList,direction:"row",justify:"center",mx:"auto",spacing:4,wrap:"wrap",children:n.map(e=>{let[t,n]=e;return(0,D.jsxs)(W.k,{_first:{ml:4},"data-testid":N.dependenciesLink,fontWeight:"semibold",p:2,to:(0,G.q$)({name:t,version:S(n)}),children:[t," - ",n]},"".concat(t,"-").concat(n))})}):(0,D.jsx)(r.ov,{children:"This library does not have any known CDK dependencies"})};var _=n(14034),V=n(80572),H=n(27200),Y=n(93305),q=n(3458);const $=e=>(0,D.jsxs)(q.In,(0,p.A)((0,p.A)({},e),{},{children:[(0,D.jsx)("path",{clipRule:"evenodd",d:"M10.2532 0C4.59124 0 0 4.59022 0 10.2532C0 14.7835 2.93785 18.6266 7.01174 19.9825C7.524 20.0776 7.71212 19.7601 7.71212 19.4893C7.71212 19.2448 7.70261 18.4371 7.6982 17.5804C4.84576 18.2006 4.24386 16.3706 4.24386 16.3706C3.77745 15.1855 3.10543 14.8704 3.10543 14.8704C2.17499 14.234 3.17555 14.2473 3.17555 14.2473C4.20498 14.3194 4.74728 15.3039 4.74728 15.3039C5.66176 16.871 7.14588 16.418 7.73097 16.1562C7.82299 15.4935 8.08871 15.041 8.38194 14.785C6.10457 14.5261 3.71038 13.6467 3.71038 9.718C3.71038 8.59859 4.11108 7.68394 4.76697 6.96573C4.66035 6.70765 4.30939 5.66481 4.86613 4.25252C4.86613 4.25252 5.72696 3.97695 7.68631 5.3035C8.50435 5.07616 9.38165 4.96189 10.2532 4.95799C11.1242 4.96189 12.002 5.07582 12.8216 5.30317C14.7785 3.97661 15.6383 4.25218 15.6383 4.25218C16.1964 5.6643 15.8455 6.70731 15.739 6.96539C16.3964 7.6836 16.7943 8.59825 16.7943 9.71766C16.7943 13.6557 14.3957 14.5227 12.1125 14.7767C12.4805 15.0949 12.8081 15.719 12.8081 16.6754C12.8081 18.0473 12.7963 19.1514 12.7963 19.4891C12.7963 19.762 12.981 20.0817 13.5005 19.981C17.5721 18.6237 20.5065 14.7818 20.5065 10.2532C20.5063 4.59056 15.9156 0.000169776 10.2532 0.000169776V0Z",fill:"currentColor",fillRule:"evenodd"}),(0,D.jsx)("path",{d:"M3.88318 14.7214C3.86059 14.7724 3.78045 14.7876 3.70744 14.7528C3.63274 14.7195 3.59114 14.6501 3.61525 14.599C3.63732 14.5464 3.71763 14.5319 3.79183 14.5671C3.86654 14.6005 3.90898 14.6706 3.88301 14.7216L3.88318 14.7214ZM4.29848 15.1848C4.24975 15.2301 4.15416 15.209 4.0893 15.1372C4.02206 15.0659 4.0095 14.9703 4.05925 14.9243C4.10984 14.8791 4.20255 14.9005 4.26978 14.9719C4.33668 15.0442 4.34992 15.1389 4.29865 15.1849L4.29848 15.1848ZM4.70291 15.7751C4.64009 15.8189 4.5372 15.778 4.4737 15.6868C4.41088 15.5955 4.41088 15.486 4.4754 15.4423C4.53873 15.3985 4.64009 15.4381 4.70461 15.5284C4.76709 15.621 4.76709 15.7305 4.70291 15.775V15.7751ZM5.25659 16.3458C5.20056 16.4078 5.08069 16.3911 4.99308 16.3067C4.9036 16.224 4.87864 16.1064 4.93484 16.0446C4.99189 15.9824 5.11227 15.9998 5.20039 16.0836C5.28987 16.1661 5.31687 16.284 5.25693 16.3456L5.25659 16.3458ZM6.02064 16.677C5.99568 16.7573 5.88056 16.7939 5.76426 16.7596C5.64829 16.7244 5.5724 16.6305 5.59617 16.5494C5.61994 16.4684 5.7359 16.4305 5.85289 16.467C5.96885 16.502 6.04475 16.5954 6.02064 16.677ZM6.8599 16.7383C6.86279 16.8229 6.76431 16.8928 6.64257 16.8945C6.51982 16.8974 6.42049 16.8288 6.4193 16.7456C6.4193 16.6602 6.51574 16.5911 6.63833 16.5887C6.76007 16.5865 6.86007 16.6545 6.86007 16.7382L6.8599 16.7383ZM7.64059 16.6056C7.65519 16.6879 7.57047 16.7726 7.44941 16.7952C7.33056 16.8173 7.22019 16.766 7.20491 16.6843C7.19031 16.5998 7.27656 16.5151 7.39541 16.4932C7.51664 16.4723 7.62531 16.522 7.64059 16.6057V16.6056Z",fill:"currentColor"})]})),K={h:6,ml:2,w:6},Z=()=>{var e;const t=M(),n=(0,V.AD)({base:"horizontal",md:"vertical"}),a=(0,D.jsx)(r.cG,{borderColor:"white",mr:6,orientation:n}),o=t.metadata.data,s=t.assembly.data;if(!s||!o)return null;const i=null!==(e=null===s||void 0===s?void 0:s.repository)&&void 0!==e?e:{};let l;var c;"git"===i.type&&(l=null!==(c=i.url)&&void 0!==c&&c.endsWith(".git")?i.url.replace(".git",""):i.url,l.endsWith("/")&&(l=l.slice(0,l.length-1)));return(0,D.jsxs)(r.BJ,{align:"center",backgroundColor:"blue.600",borderTop:"1px solid",borderTopColor:"borderColor",color:"white","data-testid":N.feedbackLinks,direction:{base:"column",md:"row"},justify:"space-evenly",px:8,py:5,spacing:4,children:[l&&(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)(H.G,{color:"currentcolor","data-event":d.FEEDBACK.PUBLISHER,"data-testid":N.githubLink,fontSize:"lg",fontWeight:"semibold",hasIcon:!1,href:"".concat(l,"/issues"),rightIcon:(0,D.jsx)($,(0,p.A)({color:"white"},K)),variant:"solid",children:"Provide feedback to publisher"}),a]}),(0,D.jsx)(H.G,{color:"currentcolor","data-event":d.FEEDBACK.CONSTRUCT_HUB,"data-testid":N.reportLink,fontSize:"lg",fontWeight:"semibold",hasIcon:!1,href:"".concat(Y.jP,"/issues/new"),rightIcon:(0,D.jsx)($,(0,p.A)({color:"white"},K)),children:"Provide feedback to Construct Hub"}),a,(0,D.jsx)(H.G,{color:"currentcolor","data-event":d.FEEDBACK.ABUSE,"data-testid":N.reportAbuseLink,fontSize:"lg",fontWeight:"semibold",hasIcon:!1,href:"mailto:abuse@amazonaws.com?subject=".concat(encodeURIComponent("ConstructHub - Report of abusive package: ".concat(null===s||void 0===s?void 0:s.name))),rightIcon:(0,D.jsx)(_.aZ,(0,p.A)({},K)),children:"Report abuse"})]})};var X=n(19754),J=n(22554),Q=n(51385),ee=n(21038),te=n(67682),ne=n(14040),ae=n(45332);const oe=(0,ee.Rf)((e,t)=>{let{value:n,onChange:a,onSubmit:o}=e;const[r,s]=(0,i.useState)(n);return(0,ae.d)(r,{onChange:a}),(0,D.jsx)(ne.l,{"data-testid":"choose-submodule-search-form",onSubmit:o,children:(0,D.jsxs)(te.MG,{children:[(0,D.jsx)(te.Wf,{children:(0,D.jsx)(_.WI,{color:"gray.400"})}),(0,D.jsx)(te.pd,{"data-testid":"choose-submodule-search-input",onChange:e=>s(e.target.value),placeholder:"Search",ref:t,value:r,variant:"filled"})]})})});oe.displayName="SearchInput";var re=n(79035);const se=e=>{let{inputValue:t,isOpen:n,onClose:o,onInputChange:s,submodules:l}=e;const c=(0,i.useRef)(null),{push:d}=(0,a.W6)(),u=(0,i.useCallback)(e=>{o(),d(e)},[o,d]),h=(0,i.useCallback)(e=>{if(e.preventDefault(),!l.length)return;const{to:t}=l[0];u(t)},[u,l]);return(0,D.jsx)(Q.aF,{initialFocusRef:c,isOpen:n,onClose:o,children:(0,D.jsx)(Q.mH,{children:(0,D.jsxs)(Q.$m,{mx:4,children:[(0,D.jsx)(Q.s_,{"data-testid":"choose-submodule-modal-close"}),(0,D.jsx)(Q.rQ,{"data-testid":"choose-submodule-modal-header",fontSize:"lg",fontWeight:"bold",children:"Choose a submodule"}),(0,D.jsxs)(Q.cw,{"data-testid":"choose-submodule-modal-body",p:0,children:[(0,D.jsx)(r.az,{pb:4,px:4,children:(0,D.jsx)(oe,{onChange:s,onSubmit:h,ref:c,value:t})}),(0,D.jsx)(r.cG,{}),(0,D.jsx)(r.Xy,{"data-testid":"choose-submodule-modal-results",m:0,maxH:"50vh",overflow:"hidden auto",p:0,role:"listbox",tabIndex:-1,children:l.map(e=>{let{name:t,to:n}=e;return(0,D.jsx)(re.C,{"data-testid":"choose-submodule-result",name:t,onClick:()=>u(n)},t)})})]})]})})})},ie=()=>{var e,t,n;const{assembly:o,name:s,language:l,scope:c,version:d}=M(),{push:u}=(0,a.W6)(),h=(0,L.s)(),m=Object.keys(null!==(e=null===o||void 0===o||null===(t=o.data)||void 0===t?void 0:t.submodules)&&void 0!==e?e:{}),{isOpen:p,onOpen:g,onClose:v}=(0,X.j1)(),x=h.get(f.uB.SUBMODULE),j=x?"Submodule: ".concat(x):"Choose Submodule",[b,y]=(0,i.useState)(""),w=c?"".concat(c,"/").concat(s):s,C=(0,i.useCallback)(e=>(0,G.q$)({name:w,version:d,language:l,submodule:e}),[l,w,d]),k=(0,i.useMemo)(()=>{let e=m;return b&&(e=e.filter(e=>e.toLowerCase().includes(b.toLowerCase()))),e.map(e=>{const t=e.replace(/^[^.]+\./,"");return{name:t,to:C(t)}})},[m,b,C]);return 0===m.length?null:(0,D.jsxs)(r.BJ,{spacing:4,w:"100%",children:[x&&(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)(J.$n,{borderRadius:"none","data-testid":"choose-submodule-go-back",leftIcon:(0,D.jsx)(_.gF,{"aria-label":"Back to construct root"}),onClick:()=>{u((0,G.q$)({name:w,version:d,language:l}))},title:"Back to construct root",variant:"link",children:null===o||void 0===o||null===(n=o.data)||void 0===n?void 0:n.name}),(0,D.jsx)(r.cG,{})]}),(0,D.jsx)(J.$n,{borderRadius:"none",color:"blue.500","data-testid":"choose-submodule-search-trigger",flexGrow:1,onClick:g,rightIcon:(0,D.jsx)(_.D3,{}),title:"Choose Submodule",variant:"link",children:j}),(0,D.jsx)(se,{inputValue:b,isOpen:p,onClose:v,onInputChange:y,submodules:k})]})};var le=n(33990);const ce=e=>{let{children:t,"data-event":n,path:a,title:o,showToggle:s,variant:i}=e;const l=(0,p.A)({_hover:{bg:"rgba(0, 124, 253, 0.05)"},overflow:"hidden",pl:1,py:s?2:1,marginLeft:s?0:1,fontWeight:s?"bold":void 0,textOverflow:"ellipsis",whiteSpace:"nowrap",w:"100%"},"sm"===i?{fontSize:"sm"}:{fontSize:"md"});return a?(0,D.jsx)(W.k,(0,p.A)((0,p.A)({"data-event":n,title:o,to:a},l),{},{children:t})):(0,D.jsx)(r.EY,(0,p.A)((0,p.A)({},l),{},{children:t}))};var de=n(99103);const ue=(e,t)=>(0,de.eq)(e,"NavTree",t),he={color:"textTertiary",h:4,w:4},me=e=>{var t,n;let{children:a,"data-event":o,getIsActiveItem:s,id:l,title:c,path:d,level:u,onOpen:h,variant:m}=e;const{trackCustomEvent:g}=(0,de.st)(),v=u<2,x=(0,X.j1)({onOpen:h,defaultIsOpen:v}),f=null!==(t=null===s||void 0===s?void 0:s({id:l,title:c,path:d,children:a}))&&void 0!==t&&t,j=(null!==(n=null===a||void 0===a?void 0:a.length)&&void 0!==n?n:0)>0,b=x.isOpen&&j,y=(0,i.useMemo)(()=>null===a||void 0===a?void 0:a.map((e,t)=>(0,i.createElement)(me,(0,p.A)((0,p.A)({"data-event":o},e),{},{getIsActiveItem:s,key:t,level:u+1,onOpen:x.onOpen,variant:m}))),[a,o,s,u,x.onOpen,m]);return(0,D.jsxs)(r.so,{direction:"column",children:[(0,D.jsxs)(r.so,{align:"center",color:f?"link":"textPrimary",children:[j&&(0,D.jsx)(J.K0,{"aria-label":"expand-toggle",borderRadius:"md",h:4,icon:x.isOpen?(0,D.jsx)(_.D3,(0,p.A)({},he)):(0,D.jsx)(_.vK,(0,p.A)({},he)),ml:-1,onClick:()=>{x.onToggle(),o&&g((0,de.xO)({name:ue(o,"Toggle")}))},size:"xs",variant:"link",w:0}),(0,D.jsx)(ce,{"data-event":o?ue(o,"Link"):void 0,path:d,showToggle:j,title:c,variant:m,children:c})]}),(0,D.jsx)(r.az,{_before:{bg:"borderColor",bottom:0,content:'""',left:0,position:"absolute",top:0,w:"1px"},display:b?"initial":"none",ml:2,mr:2,pl:2,position:"relative",children:y})]})},pe=e=>{let{"data-event":t,getIsActiveItem:n,items:a,variant:o}=e;return(0,D.jsx)(r.so,{direction:"column",maxWidth:"100%",children:a.map((e,a)=>(0,i.createElement)(me,(0,p.A)((0,p.A)({},e),{},{"data-event":t,getIsActiveItem:n,key:a,level:0,onOpen:void 0,variant:o})))})},ge=()=>{var e,t;const{assembly:n,menuItems:o}=M(),s=(0,X.j1)(),l=(0,a.zy)(),c=Object.keys(null!==(e=null===(t=n.data)||void 0===t?void 0:t.submodules)&&void 0!==e?e:{}).length>0;return(0,i.useEffect)(()=>{s.isOpen&&s.onClose()},[l]),(0,D.jsxs)(r.az,{bottom:0,display:{lg:"none"},left:0,pos:"fixed",right:0,children:[(0,D.jsx)(J.$n,{bg:"bgPrimary",borderTop:"base",boxShadow:"base",fontSize:"xl",fontWeight:"semibold",h:"3.5rem",onClick:s.onOpen,variant:"unstyled",w:"full",children:(0,D.jsxs)(r.so,{align:"center",justify:"space-between",px:6,children:["Table of contents",(0,D.jsx)(_.Mt,{})]})}),(0,D.jsx)(le.ZL,{children:(0,D.jsxs)(Q._s,(0,p.A)((0,p.A)({},s),{},{blockScrollOnMount:!1,placement:"bottom",children:[(0,D.jsx)(Q.QP,{}),(0,D.jsxs)(Q.zj,{maxH:"60vh",children:[(0,D.jsx)(Q.BE,{children:"Table of contents"}),(0,D.jsx)(Q.s1,{}),(0,D.jsxs)(Q.ys,{children:[c&&(0,D.jsx)(r.az,{mb:4,sx:{button:{justifyContent:"initial"}},children:(0,D.jsx)(ie,{})}),(0,D.jsx)(pe,{items:o})]})]})]}))})]})},ve=e=>{let{children:t}=e;return(0,D.jsx)(r.EY,{align:"center",fontSize:"xl",fontStyle:"oblique",px:4,wordBreak:"break-word",children:t})};var xe=n(9566),fe=n(31299),je=n.n(fe),be=n(25234),ye=n.n(be),we=n(3659),Ce=n.n(we),ke=n(68701),Ae=n(91097),Se=n.n(Ae),Te=n(80045),Ee=n(31206),Ie=n(89704),Le=n(62189),ze=n(58971);const Be=["value"],De=(0,ee.Rf)((e,t)=>{let{value:n}=e,a=(0,Te.A)(e,Be);const{hasCopied:o,onCopy:r}=(0,X.iD)(n);return(0,D.jsx)(J.K0,(0,p.A)({"aria-label":"Copy Button",color:"blue.500",colorScheme:"brand",h:6,icon:o?(0,D.jsx)(_.Sr,{color:"green.300"}):(0,D.jsx)(_.Td,{}),minW:"auto",ml:1,onClick:r,ref:t,variant:"ghost",w:6},a))});De.displayName="CopyButton";const Oe=e=>{let{code:t,tokens:n,getLineProps:a,getTokenProps:o}=e;return(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)(r.so,{align:"center",bg:"rgba(0, 124, 253, 0.15)",borderTopRadius:"md",justify:"flex-end",px:2,py:1,children:(0,D.jsx)(De,{value:t})}),(0,D.jsx)(r.az,{overflowX:"auto",p:2,children:n.map((e,t)=>(0,D.jsx)("div",(0,p.A)((0,p.A)({},a({line:e,key:t})),{},{children:e.map((e,t)=>(0,D.jsx)(r.az,(0,p.A)({as:"span",sx:{wordWrap:"normal"}},o({token:e,key:t})),t))}),t))})]})},Me=e=>{let{code:t,tokens:n,getLineProps:a,getTokenProps:o}=e;return(0,D.jsxs)(r.xA,{p:3,templateColumns:"1fr min-content",w:"full",children:[(0,D.jsx)(r.az,{m:-3,maxW:"full",overflow:"auto",p:3,children:n.map((e,t)=>(0,D.jsx)("div",(0,p.A)((0,p.A)({},a({line:e,key:t})),{},{children:e.map((e,t)=>(0,D.jsx)("span",(0,p.A)({},o({token:e,key:t})),t))}),t))}),(0,D.jsx)(r.so,{align:"center",ml:1,children:(0,D.jsx)(De,{value:t})})]})},Re=["code","language"],Pe=e=>{let{code:t,language:n}=e,a=(0,Te.A)(e,Re);const o=(0,Ee.dU)(ze.A,Le.A);return(0,D.jsx)(Ie.Ay,(0,p.A)((0,p.A)({},Ie.Gs),{},{code:t,language:n,theme:o,children:e=>(0,D.jsx)(r.az,(0,p.A)((0,p.A)({as:"pre",border:"base",borderRadius:"md",boxShadow:"base",className:e.className,style:e.style},a),{},{children:e.tokens.length>1?(0,D.jsx)(Oe,(0,p.A)((0,p.A)({},e),{},{code:t})):(0,D.jsx)(Me,(0,p.A)((0,p.A)({},e),{},{code:t}))}))}))},Ne=e=>{let{inline:t,children:n,language:a="typescript"}=e;if(t)return(0,D.jsx)(r.Cy,{border:"base",marginTop:"md",mx:2,px:2,py:0,children:n});const o=i.Children.toArray(n).reduce((e,t)=>"string"===typeof t?"".concat(e).concat(t):e,"").trim();return(0,D.jsx)(Pe,{code:o,fontSize:"0.9rem",language:a})};var We=n(66885);const Ue=e=>i.Children.toArray(e).reduce((e,t)=>"string"===typeof t?e+t:"object"===typeof t&&"props"in t?e+Ue(t.props.children):e,"").trim(),Ge=e=>{let{id:t,level:n,title:o}=e;const{search:r}=(0,a.zy)();return(0,D.jsx)(W.k,{_active:{visibility:"initial"},_focus:{visibility:"initial"},alignItems:"center","data-heading-id":"#".concat(t),"data-heading-level":n,"data-heading-title":o,display:"flex",id:t,lineHeight:1,opacity:"hidden",replace:!0,to:"".concat(r,"#").concat(t),visibility:"hidden",children:(0,D.jsx)(_.qY,{boxSize:4})})},Fe=e=>{var t,n;let{level:a,children:o}=e;const s=["2xl","xl","lg","md","sm","xs"][a-1],i="h".concat(a),l=(new DOMParser).parseFromString(We.renderToStaticMarkup(o),"text/html").querySelector("span[data-heading-title][data-heading-id]"),c=null!==(t=null===l||void 0===l?void 0:l.dataset.headingTitle)&&void 0!==t?t:Ue(o),d=null!==(n=null===l||void 0===l?void 0:l.dataset.headingId)&&void 0!==n?n:j(c);return(0,D.jsxs)(r.so,{_hover:{"> a":{visibility:"initial"}},align:"stretch",borderBottom:"base",justify:"space-between",mb:4,mt:a>=4?"1.5em":4,px:a>=4?2:void 0,py:2,children:[(0,D.jsx)(r.DZ,{as:i,color:"textPrimary",level:a,size:s,sx:{"> code":{fontSize:"inherit"}},children:o}),(0,D.jsx)(Ge,{id:d,level:a,title:c})]})};var _e=n(32892);var Ve=n(71778);const He=(0,P.$)("markdown",["container"]),Ye=["children","href"];var qe;const $e={a:e=>{let{children:t,href:n}=e,a=(0,Te.A)(e,Ye);const o={color:"link",sx:{"> img + svg":{display:"none"}}};try{if(n&&n.startsWith("http")){if(new URL(n).hostname!==window.location.hostname)return(0,D.jsx)(H.G,(0,p.A)((0,p.A)((0,p.A)({href:n},o),a),{},{children:t}))}}catch(r){}return(0,D.jsx)(W.k,(0,p.A)((0,p.A)((0,p.A)({to:n},o),a),{},{children:t}))},blockquote:e=>{let{children:t}=e;return(0,D.jsx)(r.az,{as:"blockquote",borderLeft:"5px solid",borderLeftColor:"borderColor",marginX:"2",px:"2",wordBreak:"break-word",children:t})},caption:Ve.r6,code:Ne,em:e=>{let{children:t}=e;return(0,D.jsx)(r.az,{as:"em",fontStyle:"normal",fontWeight:"bold",children:t})},h1:Fe,h2:Fe,h3:Fe,h4:Fe,h5:Fe,h6:Fe,hr:e=>(0,D.jsx)(D.Fragment,{}),img:e=>(0,D.jsx)(_e._V,(0,p.A)({display:"inline-block"},e)),li:e=>{let{children:t}=e;return(0,D.jsx)(r.ck,{lineHeight:"tall",marginX:2,sx:{"em:first-of-type":{fontSize:"small"},code:{fontSize:"small"}},children:t})},ol:e=>{let{children:t}=e;return(0,D.jsx)(r._J,{children:t})},p:e=>{let{children:t}=e;return(0,D.jsx)(r.EY,{lineHeight:"1.5",mx:2,my:4,children:t})},pre:e=>{let{children:t,lang:n}=e;return n?(0,D.jsx)(Ne,{language:n,children:t}):(0,D.jsx)(r.az,{as:"pre",children:t})},sup:e=>{let t,{children:n}=e,a="";if(Array.isArray(n)){const[e]=n;"string"===typeof e&&(a=e)}return"Required"===a?t="orange.700":"Optional"===a&&(t="green.700"),(0,D.jsx)(r.az,{as:"sup",color:t,fontSize:"xs",ml:-1,top:-1,children:n})},table:e=>{let{children:t}=e;return(0,D.jsx)(r.az,{maxW:"100%",overflowX:"auto",children:(0,D.jsx)(Ve.XI,{variant:"striped",children:t})})},tbody:Ve.NN,td:Ve.Td,tfoot:Ve.zu,th:Ve.Th,thead:Ve.d8,tr:Ve.Tr,ul:e=>{let{children:t}=e;return(0,D.jsx)(r.Xy,{marginTop:2,padding:0,children:t})}},Ke=(0,p.A)({},xe);Ke.attributes.span=(null!==(qe=Ke.attributes.span)&&void 0!==qe?qe:[]).concat(["dataHeadingTitle","dataHeadingId"]);const Ze=[[ye()],[Ce(),Ke]],Xe=[Se(),ke.A],Je=/^(?:(?:git@)?github\.com:|(?:https?:\/\/)github\.com\/)([^/]+)\/([^/]+)(?:\.git)?$/,Qe=e=>{let{children:t,repository:n}=e;const a=(e=>{let{type:t,url:n,directory:a}=e;if("git"!==t)return;const o=Je.exec(n);if(null==o)return;const[,r,s]=o;return{owner:r,repo:s,directory:a}})(n),o=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"HEAD";return null==a?je().uriTransformer:n=>{const o=je().uriTransformer(n),[r]=o;if("#"===r||"/"===r)return o;if(o.includes("://"))return o;const s=a.owner,i=a.repo.replace(/\.git$/,""),l=a.directory?"".concat(a.directory,"/"):"";return"https://".concat(e,"/").concat(s,"/").concat(i,"/").concat(t,"/").concat(l).concat(o)}};return(0,D.jsx)(r.az,{"data-testid":He.container,px:8,children:(0,D.jsx)(je(),{components:$e,rehypePlugins:Ze,remarkPlugins:Xe,transformImageUri:o("raw.githubusercontent.com"),transformLinkUri:o("github.com","blob/HEAD"),children:t})})},et=()=>{const{isLoadingDocs:e,readme:t,assembly:{data:n}}=M();return!e&&t&&n?"\n"===t?(0,D.jsx)(ve,{children:"No readme available for this module or submodule"}):(0,D.jsx)(Qe,{repository:n.repository,children:t}):null};var tt=n(62582);const nt=()=>{const{language:e}=M(),t=(0,D.jsx)(H.G,{href:"".concat(Y.jP,"/issues/new"),children:"issue"});return(0,D.jsxs)(ve,{children:["Documentation in ",e," is still not ready for this package. Come back soon. If this issue persists, please let us know by creating an"," ",t,"."]})},at=e=>{let{rootId:t}=e;const{pathname:n,hash:o,search:s}=(0,a.zy)(),{isLoadingDocs:i,assembly:{data:l}}=M(),c=(()=>{const{typeId:e}=(0,a.g)(),{apiReference:t}=M();if(e)return null===t||void 0===t?void 0:t[e]})();if(i)return null;if(!c||!l)return(0,D.jsx)(nt,{});const{title:d,content:u}=c,h="".concat(n).concat(s,"#").concat(o);return(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)(r.DZ,{as:"h2",p:8,size:"2xl",children:(0,D.jsx)(tt.k2,{id:t,to:h,children:d})}),(0,D.jsx)(Qe,{repository:l.repository,children:u})]})},ot=["children"],rt=()=>{const{menuItems:e}=M(),{pathname:t,hash:n}=(0,a.zy)(),o=(0,i.useMemo)(()=>e.reduce((e,t,n)=>{if(0===n&&(null===t||void 0===t?void 0:t.id)===h){const{children:n}=t,a=(0,Te.A)(t,ot);e.push((0,p.A)((0,p.A)({},a),{},{children:[]}))}else e.push(t);return e},[]),[e]),r=(0,i.useCallback)(e=>{let{path:a}=e;const o=new URL(null!==a&&void 0!==a?a:"",window.origin);return Boolean(null!==a&&void 0!==a&&a.includes("/".concat(u,"/"))?o.pathname===t:o.hash&&n&&o.hash===n)},[n,t]);return(0,D.jsx)(pe,{"data-event":d.SCOPE,getIsActiveItem:r,items:o})},st=e=>e.replace("#","").toLowerCase(),it=e=>{var t;const n=[st(e.id)];return null===(t=e.children)||void 0===t||t.forEach(e=>{null!==e&&void 0!==e&&e.id&&n.push(...it(e))}),n},lt=e=>st(e.getAttribute("data-heading-id")),ct=e=>new Set(e.map(it).flat()),dt=e=>t=>{const[n,...a]=t.split(".").slice(-e);return{path:n,hash:"#"+a.join(".")}},ut={initializer:{header:"Initializer Props",getValues:e=>{var t,n;return null!==(t=null===(n=e.initializer)||void 0===n?void 0:n.parameters)&&void 0!==t?t:[]},getPath:dt(4)},instanceMethods:{header:"Instance Methods",getValues:e=>e.instanceMethods,getPath:dt(2)},staticMethods:{header:"Static Methods",getValues:e=>e.staticMethods,getPath:dt(2)},properties:{header:"Properties",getValues:e=>e.properties,getPath:dt(3)},constants:{header:"Constants",getValues:e=>e.constants,getPath:dt(3)},members:{header:"Enum Members",getValues:e=>e.members,getPath:dt(2)}},ht=()=>{var e;const{pathname:t}=(0,a.zy)(),{path:n}=(0,a.W5)(),{menuItems:o,jsonDocs:r}=M(),s=(0,a.W5)("".concat(n,"/").concat(u,"/:typeId")),l=null===s||void 0===s?void 0:s.params.typeId,[c]=(0,I.o)(),d=null!==(e=(0,L.s)().get(f.uB.SUBMODULE))&&void 0!==e?e:"",{types:m,metadata:p}=(0,i.useMemo)(()=>{var e;if(!r.data)return{types:[]};const t=null===(e=r.data)||void 0===e?void 0:e.apiReference;return t?{types:[...t.classes,...t.constructs,...t.interfaces,...t.structs,...t.enums],metadata:r.data.metadata}:{types:[]}},[r]);return(0,i.useMemo)(()=>{if(!(e=>{const t=e.split("/");return t[t.length-2]===u})(t)){const[e]=o;return(null===e||void 0===e?void 0:e.id)===h?e.children:[]}const e=m.find(e=>e.displayName===l);return e&&p?((e,t,n)=>{const a=[];for(const[o,r]of Object.entries(ut)){const{header:s,getValues:i,getPath:l}=r;if(o in e){const o={level:1,id:s,title:s,children:[]},r=i(e).map(e=>{const{path:a,hash:o}=l(e.id);let r="?".concat(f.uB.LANGUAGE,"=").concat(t);return n&&(r+="&".concat(f.uB.SUBMODULE,"=").concat(n)),{level:2,id:o,title:e.displayName,path:"".concat(a).concat(r).concat(o),children:[]}});r.length>0&&(o.children.push(...r),a.push(o))}}return a})(e,c,d):[]},[c,o,p,t,d,l,m])},mt={rootMargin:"-15% 0% -15% 0%"},pt={attributes:!1,childList:!0,subtree:!0},gt=()=>{const e=(()=>{const e=ht(),t=(0,i.useRef)(ct(e)),[n,a]=(0,i.useState)([...t.current][0]),o=(0,i.useMemo)(()=>new IntersectionObserver(e=>{let t;e.forEach(e=>{e.isIntersecting&&(t=e.target)}),t&&a(lt(t))},mt),[]);return(0,i.useEffect)(()=>{const n=ct(e);t.current=n;const[o]=n;return a(o),()=>{a(void 0)}},[e]),(0,i.useEffect)(()=>{const e=document.getElementById(m);if(!e)return;let n;const a=new MutationObserver(e=>{var a;e.length&&(null===(a=n)||void 0===a||a.forEach(e=>{o.unobserve(e)}),n=document.querySelectorAll("[data-heading-id]"),n.forEach(e=>{const n=lt(e);t.current.has(n)&&o.observe(e)}))});return a.observe(e,pt),()=>{a.disconnect()}},[o]),n})(),t=ht(),{hash:n}=(0,a.zy)(),o=(0,i.useRef)(!1),[r,s]=(0,i.useState)(n);(0,i.useEffect)(()=>{s(n),o.current=!1,setTimeout(()=>{o.current=!0},500)},[n]),(0,i.useEffect)(()=>{r&&o.current&&s(void 0)},[e]);const l=(0,i.useCallback)(t=>{let{path:n,id:a}=t;return r?new URL(null!==n&&void 0!==n?n:"",window.origin).hash===r:st(a)===e},[e,r]);return(0,D.jsx)(pe,{"data-event":d.SCOPE,getIsActiveItem:l,items:t,variant:"sm"})},vt=["offset"],xt=e=>{let{offset:t}=e,n=(0,Te.A)(e,vt);return(0,D.jsx)(r.so,(0,p.A)({alignSelf:"stretch",as:"nav",direction:"column",display:{base:"none",lg:"flex"},maxHeight:"calc(100vh - ".concat(t,")"),overflow:"hidden auto",position:"sticky"},n))},ft="4.5rem",jt=()=>{var e;const{assembly:{data:t}}=M();return Object.keys(null!==(e=null===t||void 0===t?void 0:t.submodules)&&void 0!==e?e:{}).length>0?(0,D.jsx)(r.so,{borderBottom:"1px solid",borderColor:"borderColor",justify:"center",py:4,children:(0,D.jsx)(ie,{})}):null},bt=()=>{const{path:e}=(0,a.W5)(),{markdownDocs:t}=M(),{hash:n,pathname:o,search:s}=(0,a.zy)();return(0,i.useEffect)(()=>{window.requestAnimationFrame(()=>{if(n){const e=document.querySelector('[data-heading-id="'.concat(n,'"]'));null===e||void 0===e||e.scrollIntoView(!0)}else window.scrollTo(0,0)})},[n,o,t.isLoading]),(0,D.jsxs)(r.xA,{columnGap:4,h:"full",templateColumns:{base:"1fr",lg:"minmax(20rem, 1fr) 3fr minmax(16rem, 0.9fr)"},width:"100%",children:[(0,D.jsxs)(xt,{borderRight:"1px solid",borderRightColor:"borderColor",offset:ft,pl:6,pr:4,top:ft,children:[(0,D.jsx)(jt,{}),(0,D.jsx)(r.az,{overflowY:"auto",py:4,children:(0,D.jsx)(rt,{})})]}),(0,D.jsx)(r.az,{h:"max-content",id:m,maxWidth:"100%",overflow:"hidden",py:4,sx:{a:{scrollMarginTop:ft}},children:(0,D.jsxs)(a.dO,{children:[(0,D.jsx)(a.rd,{exact:!0,from:"".concat(e,"/").concat(u),to:{pathname:e,search:s}}),(0,D.jsx)(a.qh,{exact:!0,path:e,children:(0,D.jsx)(et,{})}),(0,D.jsx)(a.qh,{exact:!0,path:"".concat(e,"/").concat(u,"/:typeId"),children:(0,D.jsx)(at,{rootId:"apidocs_header"})})]})}),(0,D.jsx)(xt,{borderLeft:"1px solid",borderLeftColor:"borderColor",offset:ft,pl:6,pr:4,top:ft,children:(0,D.jsx)(r.az,{overflowY:"auto",py:4,children:(0,D.jsx)(gt,{})})}),(0,D.jsx)(ge,{})]})};var yt=n(4448),wt=n(49292),Ct=n(858),kt=n(10428);const At=["openText","closeText","isOpen"],St=e=>{let{openText:t,closeText:n,isOpen:a}=e,o=(0,Te.A)(e,At);return(0,D.jsx)(J.$n,(0,p.A)((0,p.A)({color:"link",colorScheme:"blue",leftIcon:a?(0,D.jsx)(_.Mt,{}):(0,D.jsx)(_.D3,{}),variant:"link"},o),{},{children:a?n:t}))};var Tt=n(19608);const Et=["license"],It=(0,ee.Rf)((e,t)=>{let{license:n}=e,a=(0,Te.A)(e,Et);const o=kt[n].url;return(0,D.jsx)(H.G,(0,p.A)((0,p.A)({href:o,ref:t},a),{},{children:n}))});It.displayName="LicenseLink";var Lt=n(60310);const zt="MMM dd, yyyy 'at' h:mmaaa";var Bt=n(49182),Dt=n(34176),Ot=n(16195);const Mt=e=>{let{children:t,label:n,tooltip:a}=e;return(0,D.jsx)(wt.m,{hasArrow:!0,isDisabled:!a,label:a,placement:"left",children:(0,D.jsxs)(r.EY,{fontWeight:"bold",children:[n," ",(0,D.jsx)(r.az,{as:"span",fontWeight:"normal",children:t})]})})},Rt=e=>{let{downloads:t}=e;return(0,D.jsx)(Mt,{label:(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)(r.az,{as:"span",mr:1,children:(0,D.jsx)(_.s3,{})}),t.toLocaleString()]}),tooltip:"Download numbers are periodically sourced from the npm registry",children:"Weekly downloads"})},Pt=e=>{const t=M(),n=(0,Dt.J)().data,a=(0,X.j1)({defaultIsOpen:!0}),o=(0,Bt.R)("packageLinks"),s=t.assembly.data,l=t.metadata.data,c=t.scope?"".concat(t.scope,"/").concat(t.name):t.name,[d]=(0,Ot.um)(null===l||void 0===l?void 0:l.packageTags),u=(e=>{let{assembly:t,metadata:n,name:a,packageLinks:o,stats:r}=e;const s=[];if(t||n||r||o){var l,c,d,u,h;const e=null===r||void 0===r||null===(l=r.packages)||void 0===l||null===(c=l[a])||void 0===c||null===(d=c.downloads)||void 0===d?void 0:d.npm;void 0!==e&&s.push((0,D.jsx)(Rt,{downloads:e}));const i=null===t||void 0===t?void 0:t.author.name,m=null===t||void 0===t?void 0:t.repository,p=null===t||void 0===t?void 0:t.license;if(i){const e=(0,D.jsx)(W.k,{color:"link",to:(0,G.iS)({query:i}),children:i});s.push((0,D.jsx)(Mt,{label:"Author",children:e}))}const g=null===n||void 0===n?void 0:n.date;if(g){const e=(0,D.jsx)(Lt.g,{date:new Date(g),fontWeight:"normal",format:zt});s.push((0,D.jsx)(Mt,{label:"Published",children:e}))}if(m){const e=(0,G.Vd)(m.url);if(e){const t=(0,D.jsx)(H.G,{href:e.url,children:e.hostname});s.push((0,D.jsx)(Mt,{label:"Repository",children:t}))}}if(p&&p in kt){const e=(0,D.jsx)(It,{license:p});s.push((0,D.jsx)(Mt,{label:"License",children:e}))}null!==o&&void 0!==o&&o.length&&o.forEach(e=>{var t;let{linkLabel:a,configKey:o,linkText:r}=e;const i=(null!==(t=null===n||void 0===n?void 0:n.packageLinks)&&void 0!==t?t:{})[o];if(i){const e=(0,D.jsx)(H.G,{href:i,children:null!==r&&void 0!==r?r:i});s.push((0,D.jsxs)(Mt,{label:a,children:[a,": ",e]}))}});const v=null!==(u=null===n||void 0===n||null===(h=n.links)||void 0===h?void 0:h.npm)&&void 0!==u?u:"https://www.npmjs.com/package/".concat(null===t||void 0===t?void 0:t.name,"/v/").concat(null===t||void 0===t?void 0:t.version);if(v){const e=(0,D.jsx)(H.G,{href:v,children:new URL(v).hostname});s.push((0,D.jsx)(Mt,{label:"Registry",children:e}))}}return s.map((e,t)=>(0,D.jsx)(i.Fragment,{children:e},t))})({assembly:s,metadata:l,name:c,packageLinks:o,stats:n});if(!u.length)return null;const h=u.slice(0,2),m=u.slice(2,u.length);return(0,D.jsxs)(r.BJ,(0,p.A)((0,p.A)({align:"start",color:"textPrimary",fontSize:".75rem",mt:2,spacing:2},e),{},{children:[d&&(0,D.jsx)(Tt.f,(0,p.A)({},d)),h,m.length>0&&(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)(Ct.SD,{animateOpacity:!0,in:a.isOpen,children:(0,D.jsx)(r.BJ,{spacing:2,children:m})}),(0,D.jsx)(St,{closeText:"See fewer details (".concat(h.length,")"),fontSize:"inherit",isOpen:a.isOpen,onClick:a.onToggle,openText:"See more details (".concat(m.length,")")})]})]}))},Nt=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.map(e=>'"'.concat(e.map(e=>null!==e&&void 0!==e?e:".").join(" "),'"')).join(" ")},Wt="heading",Ut="install",Gt="languages",Ft="meta",_t=Nt([Wt],[Ft],[Gt],[Ut]),Vt=Nt([Wt,Gt,Ut],[Wt,null,Ft]),Ht=e=>{let{children:t}=e;return(0,D.jsx)(r.xA,{bg:"bgSecondary",columnGap:{md:6,lg:10},pt:{base:3,lg:6},px:{base:5,md:6,lg:10},rowGap:{base:4,lg:0},templateAreas:{base:_t,lg:Vt},templateColumns:{base:"1fr",lg:"1fr auto 15rem"},templateRows:{lg:"auto 1fr"},children:t})};var Yt=n(84626),qt=n(20500),$t=n.n(qt),Kt=n(55754);const Zt=()=>{const{scope:e,name:t,version:n,allVersions:o,language:r}=M(),s=e?"".concat(e,"/").concat(t):t,l=(0,Kt.$)(),{push:c,location:u}=(0,a.W6)(),h=l.findByName(s),m=(0,i.useMemo)(()=>{const e=h.map(e=>e.version),t=[...new Set([...null!==o&&void 0!==o?o:[],...e,n])];return t.sort($t().rcompare),t},[h,n,o]);return(0,D.jsx)(Yt.l6,{"data-event":d.SELECT_VERSION,"data-testid":N.selectVersionDropdown,fontWeight:"500",onChange:e=>{const{pathname:t,hash:n}=u;let a="";t.includes("/api/")&&([,a]=t.split("/api/"));const o=[(0,G.q$)({name:s,version:e.target.value,language:r,api:a}),n].join("");c(o)},size:"sm",value:n,width:"10rem",children:m.map(e=>(0,D.jsx)("option",{"data-testid":N.selectVersionItem,"data-value":e,value:e,children:"v".concat(e)},e))})};var Xt=n(22286),Jt=n(47415),Qt=n(40483);const en=["assembly","name","description","metadata","version"],tn=e=>{var t,n;let{assembly:a,name:o,description:s,metadata:i,version:l}=e,c=(0,Te.A)(e,en);const u=(0,Ot.rh)({packageTags:null!==(t=null===i||void 0===i?void 0:i.packageTags)&&void 0!==t?t:[],keywords:null!==(n=null===a||void 0===a?void 0:a.keywords)&&void 0!==n?n:[]}),h=(0,Xt.fs)(i),[m]=h,[g,v]=null!==m&&void 0!==m?m:[],x=1===h.size?d.CDK_BADGE.eventName("".concat(g).concat(void 0!==v?" v".concat(v):"")):void 0;return(0,D.jsxs)(r.BJ,(0,p.A)((0,p.A)({lineHeight:"1.5",maxW:"full",overflow:"hidden",spacing:2},c),{},{children:[(0,D.jsxs)(r.so,{align:"center",wrap:"wrap",children:[(0,D.jsx)(r.DZ,{color:"textPrimary",flexShrink:1,fontSize:"1.5rem",isTruncated:!0,mr:4,children:o}),(0,D.jsx)(Zt,{})]}),(0,D.jsx)(r.EY,{"data-testid":N.description,fontSize:"1rem",children:s}),(0,D.jsxs)(r.so,{align:"center",direction:"row",pt:1,sx:{gap:"0.5rem"},wrap:"wrap",children:[(0,D.jsx)(Jt.Y,{constructFrameworks:h,"data-event":x}),u.map(e=>{let{id:t,keyword:{label:n,color:a}={}}=e;return(0,D.jsx)(Qt.n,{"data-event":d.KEYWORD.eventName(n),value:t,variant:a,children:n},t)})]})]}))},nn=e=>{const{language:t,assembly:{data:n}}=M(),a=(0,X.j1)();if(!n)return null;const o=(e=>{let{language:t,assembly:n}=e;const a=n.version;if(t===E.TM.TypeScript){const e=n.name;return"npm install ".concat(e,"@").concat(a)}if(t===E.TM.Python){var o,r;const e=null===(o=n.targets)||void 0===o||null===(r=o.python)||void 0===r?void 0:r.distName;if(!e)return;return"pip install ".concat(e,"==").concat(a)}if(t===E.TM.Java){var s,i,l,c,d,u;const e=null===(s=n.targets)||void 0===s||null===(i=s.java)||void 0===i||null===(l=i.maven)||void 0===l?void 0:l.groupId,t=null===(c=n.targets)||void 0===c||null===(d=c.java)||void 0===d||null===(u=d.maven)||void 0===u?void 0:u.artifactId;if(!e||!t)return;return["// add this to your pom.xml","<dependency>"," <groupId>".concat(e,"</groupId>")," <artifactId>".concat(t,"</artifactId>")," <version>".concat(a,"</version>"),"</dependency>"].join("\n")}if(t===E.TM.DotNet){var h,m;const e=null===(h=n.targets)||void 0===h||null===(m=h.dotnet)||void 0===m?void 0:m.packageId;if(!e)return;return"dotnet add package ".concat(e," --version ").concat(a)}if(t===E.TM.Go){var p,g;const e=null===n||void 0===n||null===(p=n.targets)||void 0===p||null===(g=p.go)||void 0===g?void 0:g.moduleName;if(!e)return;return"go get ".concat(e)}})({language:t,assembly:n});return o&&t?(0,D.jsx)(r.so,(0,p.A)((0,p.A)({align:"start",direction:"column",fontSize:".75rem",w:"full"},e),{},{children:t===E.TM.Java?(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)(St,{closeText:"Hide",fontSize:"inherit",isOpen:a.isOpen,mt:2,onClick:a.onToggle,openText:"Install"}),(0,D.jsx)(r.az,{maxW:"full",overflow:"hidden",children:(0,D.jsx)(Ct.SD,{in:a.isOpen,children:(0,D.jsx)(Pe,{boxShadow:"none",code:o,fontSize:"inherit",language:t,mt:2})})})]}):(0,D.jsx)(Pe,{boxShadow:"none",code:o,fontSize:"inherit",language:t,lineHeight:"2",w:"full"})})):null};var an=n(83689);const on=e=>{let{targetLanguages:t,selectedLanguage:n,setSelectedLanguage:a}=e;const{trackCustomEvent:o}=(0,de.st)();return(0,D.jsx)(r.BJ,{align:"center","data-testid":"language-bar",direction:"row",spacing:2,children:[...t].sort((e,t)=>E.Yj.indexOf(e)-E.Yj.indexOf(t)).map(e=>{const t=!E.WX.has(e),r=e===n,{icon:s}=E.fN[e];return(0,D.jsx)(an.B,{language:e,children:(0,D.jsx)(J.K0,{"aria-label":"Select ".concat(e," icon"),bg:"bgSecondary",border:"base",borderColor:r?"brand.500":"borderColor",borderRadius:"lg",boxShadow:"base",colorScheme:"brand",cursor:t?"not-allowed":"pointer","data-testid":"language-".concat(e),disabled:t,icon:(0,D.jsx)(s,{"aria-label":"".concat(e,"-icon"),borderRadius:"sm",height:[4,5,6],width:[4,5,6]}),onClick:()=>{r||(o((0,de.xO)({name:d.LANGUAGE.eventName(e)})),a(e))},p:1,variant:"outline",w:"max-content"})},e)})})},rn=new Set(E.Yj),sn=()=>{var e;const t=M(),n=t.assembly.data,a=t.language,[,o]=(0,I.o)({updateSaved:!0,updateUrl:!0}),[,r]=(0,I.o)({updateUrl:!0}),s=[...Object.keys(null!==(e=null===n||void 0===n?void 0:n.targets)&&void 0!==e?e:{}),E.TM.TypeScript],l=s.includes(a);(0,i.useEffect)(()=>{l||r(E.TM.TypeScript)},[l]);const c={selectedLanguage:l?a:E.TM.TypeScript,setSelectedLanguage:o,targetLanguages:s.filter(e=>rn.has(e))};return(0,D.jsx)(on,(0,p.A)({},c))},ln=()=>{const{assembly:e,metadata:t,version:n}=M(),{data:a}=e,{data:o}=t;return a&&o?(0,D.jsxs)(Ht,{children:[(0,D.jsx)(tn,{assembly:a,description:a.description,gridArea:Wt,metadata:o,name:a.name,version:n}),(0,D.jsx)(r.so,{align:"start",gridArea:Gt,children:(0,D.jsx)(sn,{})}),(0,D.jsxs)(r.so,{direction:"column",gridArea:Ft,children:[(0,D.jsx)(r.cG,{borderBottom:"base",display:{md:"none"},mb:2}),(0,D.jsx)(Pt,{}),(0,D.jsx)(r.cG,{borderBottom:"base",display:{md:"none"},mt:2})]}),(0,D.jsx)(r.so,{align:"start",gridArea:Ut,children:(0,D.jsx)(nn,{})})]}):(0,D.jsx)(yt.y,{mx:"auto",my:10,size:"xl"})},cn=()=>{const[e,t]=(0,i.useState)(0),{scope:n,name:a}=M(),o=n?"".concat(n,"/").concat(a):a,l=encodeURIComponent(o);(0,i.useEffect)(()=>{t(0)},[]);const c=window.location.hostname,d=(0,G.q$)({name:o}),u="https://".concat(c,"/badge?package=").concat(l),h="https://".concat(c).concat(d),m="[](").concat(h,")"),p='<a href="'.concat(h,'"><img src="').concat(u,'" alt="View on Construct Hub"/></a>');return(0,D.jsxs)(r.az,{bg:"bgPrimary",py:1,width:"100%",children:[(0,D.jsx)(r.EY,{pb:3,children:"Use the snippets below in your Git repositories or elsewhere to add a button that links to this package. The button will automatically update to light mode or dark mode based on whether the user's client has requested a light or dark theme."}),(0,D.jsx)(tt.N_,{to:d,children:(0,D.jsx)(_e._V,{src:"/badge-dynamic.svg"})}),(0,D.jsxs)(s.tU,{index:e,my:3,onChange:t,variant:"line",children:[(0,D.jsxs)(s.wb,{borderBottom:"base",px:{base:0,lg:6},children:[(0,D.jsx)(s.oz,{children:"Markdown"}),(0,D.jsx)(s.oz,{children:"HTML"})]}),(0,D.jsxs)(s.T2,{maxW:"full",children:[(0,D.jsx)(s.Kp,{children:(0,D.jsx)(Pe,{boxShadow:"none",code:m,fontSize:"inherit",language:"markdown",mt:2})}),(0,D.jsx)(s.Kp,{children:(0,D.jsx)(Pe,{boxShadow:"none",code:p,fontSize:"inherit",language:"markdown",mt:2})})]})]})]})};var dn=n(50425);const un=()=>{const{pageDescription:e,pageTitle:t}=M(),[n,a]=(0,i.useState)(0);return(0,i.useEffect)(()=>{a(0)},[t]),(0,D.jsx)(dn.Y,{meta:{title:t,description:e},pageName:"packageProfile",children:(0,D.jsxs)(r.xA,{bg:"bgPrimary","data-testid":N.page,maxW:"100vw",templateColumns:"1fr",templateRows:"auto 1fr auto",children:[(0,D.jsx)(ln,{}),(0,D.jsxs)(s.tU,{index:n,onChange:a,variant:"line",children:[(0,D.jsxs)(s.wb,{bg:"bgSecondary",borderBottom:"base",px:{base:0,lg:6},children:[(0,D.jsx)(s.oz,{"data-event":d.DOCUMENTATION.TAB,children:"Documentation"}),(0,D.jsx)(s.oz,{"data-event":d.DEPENDENCIES.TAB,"data-testid":N.dependenciesTab,children:"Dependencies"}),(0,D.jsx)(s.oz,{"data-event":d.GITHUB_BADGE.TAB,"data-testid":N.badgeTab,children:"Share"})]}),(0,D.jsxs)(s.T2,{maxW:"full",children:[(0,D.jsx)(s.Kp,{p:0,children:(0,D.jsx)(bt,{})}),(0,D.jsx)(s.Kp,{children:(0,D.jsx)(F,{})}),(0,D.jsx)(s.Kp,{children:(0,D.jsx)(cn,{})})]})]}),(0,D.jsx)(Z,{})]})})},hn=()=>(0,D.jsx)(R,{children:(0,D.jsx)(un,{})});var mn=n(46250);const pn=(e,t,n)=>{const a=k(t,n),o=((e,t)=>{const n=e.packages.filter(e=>e.name===t);return n.length>1?n.sort((e,t)=>{const n=new Date(e.metadata.date);return new Date(t.metadata.date).getTime()-n.getTime()})[0]:n[0]})(e,a);if(!o)return;const{version:r}=o,s="/v/".concat(r);return"".concat("/packages/").concat(a).concat(s)},gn=()=>{const{name:e,scope:t}=(0,a.g)(),n=(0,mn.d)();if(n.isLoading||!n.data)return(0,D.jsx)(r.ov,{minH:"16rem",children:(0,D.jsx)(yt.y,{size:"xl"})});const s=pn(n.data,e,t);return s?(0,D.jsx)(a.rd,{to:s}):(0,D.jsx)(o.default,{})},vn="[^@\\/]+",xn="@[^\\/]+",fn=()=>{const{path:e}=(0,a.W5)();return(0,D.jsxs)(a.dO,{children:[(0,D.jsx)(a.qh,{exact:!0,path:"".concat(e,"/:scope(").concat(xn,")?/:name(").concat(vn,")"),children:(0,D.jsx)(gn,{})}),(0,D.jsx)(a.qh,{path:"".concat(e,"/:scope(").concat(xn,")?/:name(").concat(vn,")/v/:version"),children:(0,D.jsx)(hn,{})}),(0,D.jsx)(a.qh,{path:"*",children:(0,D.jsx)(o.NotFound,{})})]})}},83689:(e,t,n)=>{n.d(t,{B:()=>s});var a=n(49292),o=n(68195),r=n(70579);const s=e=>{let{children:t,language:n}=e;const s=o.WX.has(n),i=o.I8[n],l=s?"Click to view documentation in ".concat(i):"Documentation support for ".concat(i," is coming soon!");return(0,r.jsx)(a.m,{hasArrow:!0,label:l,placement:"top-start",children:(0,r.jsx)("span",{children:t})})}}}]);
|
|
2
|
-
//# sourceMappingURL=421.ec09e678.chunk.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkconstruct_hub_webapp=self.webpackChunkconstruct_hub_webapp||[]).push([[451],{21668:(e,n,r)=>{r.d(n,{AM:()=>R,Rp:()=>S,Wv:()=>x,ej:()=>M,hl:()=>O});r(26678);var o=r(21038),a=r(39611),i=r.n(a),t=r(23216),l=r(65043),s=r(90636),u=r(47686),c=r(19754),d=r(6614),v=r(93053);function f(){return f=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},f.apply(this,arguments)}function p(e,n){if(null==e)return{};var r,o,a={},i=Object.keys(e);for(o=0;o<i.length;o++)r=i[o],n.indexOf(r)>=0||(a[r]=e[r]);return a}var h=(0,s.q6)({name:"PopoverContext",errorMessage:"usePopoverContext: `context` is undefined. Seems you forgot to wrap all popover components within `<Popover />`"}),m=h[0],g=h[1],b=function(e){if(e)return i()(e,{enter:{visibility:"visible"},exit:{transitionEnd:{visibility:"hidden"}}})},y=(0,u.P)(o.Bv.section),k=l.forwardRef(function(e,n){var r=g().isOpen;return l.createElement(y,f({ref:n,variants:b(e.variants)},e,{initial:!1,animate:r?"enter":"exit"}))});k.defaultProps={variants:{exit:{opacity:0,scale:.95,transition:{duration:.1,ease:[.4,0,1,1]}},enter:{scale:1,opacity:1,transition:{duration:.15,ease:[0,0,.2,1]}}}};var C=["closeOnBlur","closeOnEsc","initialFocusRef","id","returnFocusOnClose","autoFocus","arrowSize","arrowShadowColor","trigger","openDelay","closeDelay","isLazy","lazyBehavior","computePositionOnMount"],P="click",w="hover";var E=["children"],D=["rootProps"],R=function(e){var n=(0,o.o5)("Popover",e),r=(0,o.MN)(e),a=r.children,i=function(e){void 0===e&&(e={});var n=e,r=n.closeOnBlur,o=void 0===r||r,a=n.closeOnEsc,i=void 0===a||a,u=n.initialFocusRef,h=n.id,m=n.returnFocusOnClose,g=void 0===m||m,b=n.autoFocus,y=void 0===b||b,k=n.arrowSize,E=n.arrowShadowColor,D=n.trigger,R=void 0===D?P:D,x=n.openDelay,O=void 0===x?200:x,_=n.closeDelay,M=void 0===_?200:_,S=n.isLazy,j=n.lazyBehavior,B=void 0===j?"unmount":j,N=n.computePositionOnMount,A=p(n,C),F=(0,c.j1)(e),H=F.isOpen,I=F.onClose,q=F.onOpen,L=F.onToggle,T=(0,l.useRef)(null),z=(0,l.useRef)(null),K=(0,l.useRef)(null),U=(0,l.useRef)(!1),W=(0,l.useRef)(!1);H&&(W.current=!0);var G=(0,l.useState)(!1),Q=G[0],V=G[1],Y=(0,l.useState)(!1),J=Y[0],X=Y[1],$=(0,c.cC)(h,"popover-trigger","popover-content","popover-header","popover-body"),Z=$[0],ee=$[1],ne=$[2],re=$[3],oe=(0,v.E)(f({},A,{enabled:H||!!N})),ae=oe.referenceRef,ie=oe.getArrowProps,te=oe.getPopperProps,le=oe.getArrowInnerProps,se=oe.forceUpdate,ue=(0,d.v)({isOpen:H,ref:K});(0,c.Sp)({enabled:H,ref:z}),(0,c.Xb)(K,{focusRef:z,visible:H,shouldFocus:g&&R===P}),(0,c.wf)(K,{focusRef:u,visible:H,shouldFocus:y&&R===P});var ce=(0,t.YO)({hasBeenSelected:W.current,isLazy:S,lazyBehavior:B,isSelected:ue.present}),de=(0,l.useCallback)(function(e,n){var r;void 0===e&&(e={}),void 0===n&&(n=null);var a=f({},e,{style:f({},e.style,(r={transformOrigin:v.U.transformOrigin.varRef},r[v.U.arrowSize.var]=k?(0,t.px)(k):void 0,r[v.U.arrowShadowColor.var]=E,r)),ref:(0,s.Px)(K,n),children:ce?e.children:null,id:ee,tabIndex:-1,role:"dialog",onKeyDown:(0,t.Hj)(e.onKeyDown,function(e){i&&"Escape"===e.key&&I()}),onBlur:(0,t.Hj)(e.onBlur,function(e){var n=(0,t.ru)(e),r=(0,t.gR)(K.current,n),a=(0,t.gR)(z.current,n);H&&o&&!r&&!a&&I()}),"aria-labelledby":Q?ne:void 0,"aria-describedby":J?re:void 0});return R===w&&(a.role="tooltip",a.onMouseEnter=(0,t.Hj)(e.onMouseEnter,function(){U.current=!0}),a.onMouseLeave=(0,t.Hj)(e.onMouseLeave,function(){U.current=!1,setTimeout(I,M)})),a},[ce,ee,Q,ne,J,re,R,i,I,H,o,M,E,k]),ve=(0,l.useCallback)(function(e,n){return void 0===e&&(e={}),void 0===n&&(n=null),te(f({},e,{style:f({visibility:H?"visible":"hidden"},e.style)}),n)},[H,te]),fe=(0,l.useCallback)(function(e,n){return void 0===n&&(n=null),f({},e,{ref:(0,s.Px)(n,T,ae)})},[T,ae]),pe=(0,l.useRef)(),he=(0,l.useRef)(),me=(0,l.useCallback)(function(e){null==T.current&&ae(e)},[ae]),ge=(0,l.useCallback)(function(e,n){void 0===e&&(e={}),void 0===n&&(n=null);var r=f({},e,{ref:(0,s.Px)(z,n,me),id:Z,"aria-haspopup":"dialog","aria-expanded":H,"aria-controls":ee});return R===P&&(r.onClick=(0,t.Hj)(e.onClick,L)),R===w&&(r.onFocus=(0,t.Hj)(e.onFocus,q),r.onBlur=(0,t.Hj)(e.onBlur,function(e){var n=(0,t.ru)(e),r=!(0,t.gR)(K.current,n);H&&o&&r&&I()}),r.onKeyDown=(0,t.Hj)(e.onKeyDown,function(e){"Escape"===e.key&&I()}),r.onMouseEnter=(0,t.Hj)(e.onMouseEnter,function(){U.current=!0,pe.current=window.setTimeout(q,O)}),r.onMouseLeave=(0,t.Hj)(e.onMouseLeave,function(){U.current=!1,pe.current&&(clearTimeout(pe.current),pe.current=void 0),he.current=window.setTimeout(function(){!1===U.current&&I()},M)})),r},[Z,H,ee,R,me,L,q,o,I,O,M]);(0,l.useEffect)(function(){return function(){pe.current&&clearTimeout(pe.current),he.current&&clearTimeout(he.current)}},[]);var be=(0,l.useCallback)(function(e,n){return void 0===e&&(e={}),void 0===n&&(n=null),f({},e,{id:ne,ref:(0,s.Px)(n,function(e){V(!!e)})})},[ne]),ye=(0,l.useCallback)(function(e,n){return void 0===e&&(e={}),void 0===n&&(n=null),f({},e,{id:re,ref:(0,s.Px)(n,function(e){X(!!e)})})},[re]);return{forceUpdate:se,isOpen:H,onAnimationComplete:ue.onComplete,onClose:I,getAnchorProps:fe,getArrowProps:ie,getArrowInnerProps:le,getPopoverPositionerProps:ve,getPopoverProps:de,getTriggerProps:ge,getHeaderProps:be,getBodyProps:ye}}(f({},p(r,E),{direction:(0,o.DP)().direction}));return l.createElement(m,{value:i},l.createElement(o.W$,{value:n},(0,t.Jg)(a,{isOpen:i.isOpen,onClose:i.onClose,forceUpdate:i.forceUpdate})))};t.gt&&(R.displayName="Popover");t.gt;var x=function(e){var n=l.Children.only(e.children),r=g().getTriggerProps;return l.cloneElement(n,r(n.props,n.ref))};t.gt&&(x.displayName="PopoverTrigger");var O=(0,o.Rf)(function(e,n){var r=e.rootProps,a=p(e,D),i=g(),s=i.getPopoverProps,u=i.getPopoverPositionerProps,c=i.onAnimationComplete,d=(0,o.IS)(),v=f({position:"relative",display:"flex",flexDirection:"column"},d.content);return l.createElement(o.Bv.div,f({},u(r),{__css:d.popper,className:"chakra-popover__popper"}),l.createElement(k,f({},s(a,n),{onAnimationComplete:(0,t.OK)(c,a.onAnimationComplete),className:(0,t.cx)("chakra-popover__content",e.className),__css:v})))});t.gt&&(O.displayName="PopoverContent");var _=(0,o.Rf)(function(e,n){var r=g().getHeaderProps,a=(0,o.IS)();return l.createElement(o.Bv.header,f({},r(e,n),{className:(0,t.cx)("chakra-popover__header",e.className),__css:a.header}))});t.gt&&(_.displayName="PopoverHeader");var M=(0,o.Rf)(function(e,n){var r=g().getBodyProps,a=(0,o.IS)();return l.createElement(o.Bv.div,f({},r(e,n),{className:(0,t.cx)("chakra-popover__body",e.className),__css:a.body}))});t.gt&&(M.displayName="PopoverBody");t.gt;t.gt;var S=function(e){var n,r=e.bg,a=e.bgColor,i=e.backgroundColor,s=g(),u=s.getArrowProps,c=s.getArrowInnerProps,d=(0,o.IS)(),v=null!=(n=null!=r?r:a)?n:i;return l.createElement(o.Bv.div,f({},u(),{className:"chakra-popover__arrow-positioner"}),l.createElement(o.Bv.div,f({className:(0,t.cx)("chakra-popover__arrow",e.className)},c(e),{__css:f({},d.arrow,{"--popper-arrow-bg":v?"colors."+v+", "+v:void 0})})))};t.gt&&(S.displayName="PopoverArrow")},43222:(e,n,r)=>{r.d(n,{A:()=>p});var o=r(92239),a=r(54967),i=r(16260),t=r(43666);function l(e,n){if(null==e)throw new TypeError("assign requires that input parameter not be null or undefined");for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e}var s=r(88763),u=6e4,c=1440,d=30*c,v=365*c;function f(e,n,r){var f,p,h;(0,t.A)(2,arguments);var m=(0,o.q)(),g=null!==(f=null!==(p=null===r||void 0===r?void 0:r.locale)&&void 0!==p?p:m.locale)&&void 0!==f?f:s.A;if(!g.formatDistance)throw new RangeError("locale must contain localize.formatDistance property");var b=function(e,n){(0,t.A)(2,arguments);var r=(0,i.A)(e),o=(0,i.A)(n),a=r.getTime()-o.getTime();return a<0?-1:a>0?1:a}(e,n);if(isNaN(b))throw new RangeError("Invalid time value");var y,k,C=l(l({},r),{addSuffix:Boolean(null===r||void 0===r?void 0:r.addSuffix),comparison:b});b>0?(y=(0,i.A)(n),k=(0,i.A)(e)):(y=(0,i.A)(e),k=(0,i.A)(n));var P,w=String(null!==(h=null===r||void 0===r?void 0:r.roundingMethod)&&void 0!==h?h:"round");if("floor"===w)P=Math.floor;else if("ceil"===w)P=Math.ceil;else{if("round"!==w)throw new RangeError("roundingMethod must be 'floor', 'ceil' or 'round'");P=Math.round}var E,D=k.getTime()-y.getTime(),R=D/u,x=(D-((0,a.A)(k)-(0,a.A)(y)))/u,O=null===r||void 0===r?void 0:r.unit;if("second"===(E=O?String(O):R<1?"second":R<60?"minute":R<c?"hour":x<d?"day":x<v?"month":"year")){var _=P(D/1e3);return g.formatDistance("xSeconds",_,C)}if("minute"===E){var M=P(R);return g.formatDistance("xMinutes",M,C)}if("hour"===E){var S=P(R/60);return g.formatDistance("xHours",S,C)}if("day"===E){var j=P(x/c);return g.formatDistance("xDays",j,C)}if("month"===E){var B=P(x/d);return 12===B&&"month"!==O?g.formatDistance("xYears",1,C):g.formatDistance("xMonths",B,C)}if("year"===E){var N=P(x/v);return g.formatDistance("xYears",N,C)}throw new RangeError("unit must be 'second', 'minute', 'hour', 'day', 'month' or 'year'")}function p(e,n){return(0,t.A)(1,arguments),f(e,Date.now(),n)}},80572:(e,n,r)=>{r.d(n,{AD:()=>l});var o=r(21038),a=r(23216),i=r(65043),t=r(59596);a.Bd?i.useLayoutEffect:i.useEffect;a.gt;a.gt;function l(e,n){var r,l=function(e){void 0===e&&(e="base");var n=(0,o.DP)().__breakpoints,r=(0,t.O)(),a=i.useMemo(function(){var e;return null!=(e=null==n?void 0:n.details.map(function(e){var n=e.minMaxQuery;return{breakpoint:e.breakpoint,query:n.replace("@media screen and ","")}}))?e:[]},[n]),l=i.useState(function(){if(e){var n=a.find(function(n){return n.breakpoint===e});if(n)return n.breakpoint}if(r.window.matchMedia){var o=a.find(function(e){var n=e.query;return r.window.matchMedia(n).matches});if(o)return o.breakpoint}}),s=l[0],u=l[1];return i.useEffect(function(){var e=a.map(function(e){var n=e.breakpoint,o=e.query,a=r.window.matchMedia(o);a.matches&&u(n);var i=function(e){e.matches&&u(n)};return"function"===typeof a.addEventListener?a.addEventListener("change",i):a.addListener(i),function(){"function"===typeof a.removeEventListener?a.removeEventListener("change",i):a.removeListener(i)}});return function(){e.forEach(function(e){return e()})}},[a,n,r.window]),s}(n),s=(0,o.DP)();if(l){var u=Array.from((null==(r=s.__breakpoints)?void 0:r.keys)||[]);return function(e,n,r){void 0===r&&(r=a.fi);var o=Object.keys(e).indexOf(n);if(-1!==o)return e[n];for(var i=r.indexOf(n);i>=0;){if(null!=e[r[i]]){o=i;break}i-=1}return-1!==o?e[r[o]]:void 0}((0,a.cy)(e)?(0,a.PW)(Object.entries((0,a.a1)(e,u)).map(function(e){return[e[0],e[1]]})):e,l,u)}}},95104:(e,n,r)=>{r.d(n,{sx:()=>P,z6:()=>b});var o=r(21038),a=r(54720),i=r(23216),t=r(65043),l=r(90636),s=r(19754),u=r(78510),c=r(20646);function d(e,n){if(null==e)return{};var r,o,a={},i=Object.keys(e);for(o=0;o<i.length;o++)r=i[o],n.indexOf(r)>=0||(a[r]=e[r]);return a}function v(){return v=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},v.apply(this,arguments)}var f=["onChange","value","defaultValue","name","isDisabled","isFocusable","isNative"];var p=["colorScheme","size","variant","children","className","isDisabled","isFocusable"],h=(0,l.q6)({name:"RadioGroupContext",strict:!1}),m=h[0],g=h[1],b=(0,o.Rf)(function(e,n){var r=e.colorScheme,a=e.size,u=e.variant,c=e.children,h=e.className,g=e.isDisabled,b=e.isFocusable,y=function(e){void 0===e&&(e={});var n=e,r=n.onChange,o=n.value,a=n.defaultValue,u=n.name,c=n.isDisabled,p=n.isFocusable,h=n.isNative,m=d(n,f),g=t.useState(a||""),b=g[0],y=g[1],k=(0,s.QK)(o,b),C=k[0],P=k[1],w=t.useRef(null),E=t.useCallback(function(){var e=w.current;if(e){var n="input:not(:disabled):checked",r=e.querySelector(n);if(r)r.focus();else{n="input:not(:disabled)";var o=e.querySelector(n);null==o||o.focus()}}},[]),D=(0,s.Bi)(void 0,"radio"),R=u||D,x=t.useCallback(function(e){var n=(0,i.vr)(e)?e.target.value:e;C||y(n),null==r||r(String(n))},[r,C]),O=t.useCallback(function(e,n){return void 0===e&&(e={}),void 0===n&&(n=null),v({},e,{ref:(0,l.Px)(n,w),role:"radiogroup"})},[]),_=t.useCallback(function(e,n){var r;return void 0===e&&(e={}),void 0===n&&(n=null),v({},e,((r={ref:n,name:R})[h?"checked":"isChecked"]=null!=P?e.value===P:void 0,r.onChange=x,r["data-radiogroup"]=!0,r))},[h,R,x,P]);return{getRootProps:O,getRadioProps:_,name:R,ref:w,focus:E,setValue:y,value:P,onChange:x,isDisabled:c,isFocusable:p,htmlProps:m}}(d(e,p)),k=y.value,C=y.onChange,P=y.getRootProps,w=y.name,E=y.htmlProps,D=t.useMemo(function(){return{name:w,size:a,onChange:C,colorScheme:r,value:k,variant:u,isDisabled:g,isFocusable:b}},[w,a,C,r,k,u,g,b]),R=P(E,n),x=(0,i.cx)("chakra-radio-group",h);return t.createElement(m,{value:D},t.createElement(o.Bv.div,v({},R,{className:x}),c))});i.gt&&(b.displayName="RadioGroup");var y=["defaultIsChecked","defaultChecked","isChecked","isFocusable","isDisabled","isReadOnly","isRequired","onChange","isInvalid","name","value","id","data-radiogroup","aria-describedby"];function k(e){e.preventDefault(),e.stopPropagation()}var C=["spacing","children","isFullWidth","isDisabled","isFocusable","inputProps"],P=(0,o.Rf)(function(e,n){var r,l=g(),f=e.onChange,p=e.value,h=(0,o.o5)("Radio",v({},l,e)),m=(0,o.MN)(e),b=m.spacing,P=void 0===b?"0.5rem":b,w=m.children,E=m.isFullWidth,D=m.isDisabled,R=void 0===D?null==l?void 0:l.isDisabled:D,x=m.isFocusable,O=void 0===x?null==l?void 0:l.isFocusable:x,_=m.inputProps,M=d(m,C),S=e.isChecked;null!=(null==l?void 0:l.value)&&null!=p&&(S=l.value===p);var j=f;null!=l&&l.onChange&&null!=p&&(j=(0,i.OK)(l.onChange,f));var B=function(e){void 0===e&&(e={});var n=e,r=n.defaultIsChecked,o=n.defaultChecked,a=void 0===o?r:o,l=n.isChecked,f=n.isFocusable,p=n.isDisabled,h=n.isReadOnly,m=n.isRequired,b=n.onChange,C=n.isInvalid,P=n.name,w=n.value,E=n.id,D=n["data-radiogroup"],R=n["aria-describedby"],x=d(n,y),O=(0,s.Bi)(void 0,"radio"),_=(0,u.Uc)(),M=g(),S=!_||M||D?O:_.id;S=null!=E?E:S;var j=null!=p?p:null==_?void 0:_.isDisabled,B=null!=h?h:null==_?void 0:_.isReadOnly,N=null!=m?m:null==_?void 0:_.isRequired,A=null!=C?C:null==_?void 0:_.isInvalid,F=(0,s.Cg)(),H=F[0],I=F[1],q=(0,s.Cg)(),L=q[0],T=q[1],z=(0,s.Cg)(),K=z[0],U=z[1],W=(0,t.useState)(Boolean(a)),G=W[0],Q=W[1],V=(0,s.QK)(l,G),Y=V[0],J=V[1];(0,i.R8)({condition:!!r,message:'The "defaultIsChecked" prop has been deprecated and will be removed in a future version. Please use the "defaultChecked" prop instead, which mirrors default React checkbox behavior.'});var X=(0,t.useCallback)(function(e){B||j?e.preventDefault():(Y||Q(e.target.checked),null==b||b(e))},[Y,j,B,b]),$=(0,t.useCallback)(function(e){" "===e.key&&U.on()},[U]),Z=(0,t.useCallback)(function(e){" "===e.key&&U.off()},[U]),ee=(0,t.useCallback)(function(e,n){return void 0===e&&(e={}),void 0===n&&(n=null),v({},e,{ref:n,"data-active":(0,i.sE)(K),"data-hover":(0,i.sE)(L),"data-disabled":(0,i.sE)(j),"data-invalid":(0,i.sE)(A),"data-checked":(0,i.sE)(J),"data-focus":(0,i.sE)(H),"data-readonly":(0,i.sE)(B),"aria-hidden":!0,onMouseDown:(0,i.Hj)(e.onMouseDown,U.on),onMouseUp:(0,i.Hj)(e.onMouseUp,U.off),onMouseEnter:(0,i.Hj)(e.onMouseEnter,T.on),onMouseLeave:(0,i.Hj)(e.onMouseLeave,T.off)})},[K,L,j,A,J,H,B,U.on,U.off,T.on,T.off]),ne=null!=_?_:{},re=ne.onFocus,oe=ne.onBlur,ae=(0,t.useCallback)(function(e,n){void 0===e&&(e={}),void 0===n&&(n=null);var r=j&&!f;return v({},e,{id:S,ref:n,type:"radio",name:P,value:w,onChange:(0,i.Hj)(e.onChange,X),onBlur:(0,i.Hj)(oe,e.onBlur,I.off),onFocus:(0,i.Hj)(re,e.onFocus,I.on),onKeyDown:(0,i.Hj)(e.onKeyDown,$),onKeyUp:(0,i.Hj)(e.onKeyUp,Z),checked:J,disabled:r,readOnly:B,required:N,"aria-invalid":(0,i.rq)(A),"aria-disabled":(0,i.rq)(r),"aria-required":(0,i.rq)(N),"data-readonly":(0,i.sE)(B),"aria-describedby":R,style:c.fe})},[j,f,S,P,w,X,oe,I,re,$,Z,J,B,N,A,R]);return{state:{isInvalid:A,isFocused:H,isChecked:J,isActive:K,isHovered:L,isDisabled:j,isReadOnly:B,isRequired:N},getCheckboxProps:ee,getInputProps:ae,getLabelProps:function(e,n){return void 0===e&&(e={}),void 0===n&&(n=null),v({},e,{ref:n,onMouseDown:(0,i.Hj)(e.onMouseDown,k),onTouchStart:(0,i.Hj)(e.onTouchStart,k),"data-disabled":(0,i.sE)(j),"data-checked":(0,i.sE)(J),"data-invalid":(0,i.sE)(A)})},getRootProps:function(e,n){return void 0===n&&(n=null),v({},e,{ref:n,"data-disabled":(0,i.sE)(j),"data-checked":(0,i.sE)(J),"data-invalid":(0,i.sE)(A)})},htmlProps:x}}(v({},M,{isChecked:S,isFocusable:O,isDisabled:R,onChange:j,name:null!=(r=null==e?void 0:e.name)?r:null==l?void 0:l.name})),N=B.getInputProps,A=B.getCheckboxProps,F=B.getLabelProps,H=B.getRootProps,I=B.htmlProps,q=(0,i.lD)(I,a.GF),L=q[0],T=A(q[1]),z=N(_,n),K=F(),U=Object.assign({},L,H()),W=v({width:E?"full":void 0,display:"inline-flex",alignItems:"center",verticalAlign:"top",cursor:"pointer"},h.container),G=v({display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0},h.control),Q=v({userSelect:"none",marginStart:P},h.label);return t.createElement(o.Bv.label,v({className:"chakra-radio"},U,{__css:W}),t.createElement("input",v({className:"chakra-radio__input"},z)),t.createElement(o.Bv.span,v({className:"chakra-radio__control"},T,{__css:G})),w&&t.createElement(o.Bv.span,v({className:"chakra-radio__label"},K,{__css:Q}),w))});i.gt&&(P.displayName="Radio")}}]);
|
|
2
|
-
//# sourceMappingURL=451.7c2110db.chunk.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"static/js/451.7c2110db.chunk.js","mappings":"0SAWA,SAASA,IAeP,OAdAA,EAAWC,OAAOC,QAAU,SAAUC,GACpC,IAAK,IAAIC,EAAI,EAAGA,EAAIC,UAAUC,OAAQF,IAAK,CACzC,IAAIG,EAASF,UAAUD,GAEvB,IAAK,IAAII,KAAOD,EACVN,OAAOQ,UAAUC,eAAeC,KAAKJ,EAAQC,KAC/CL,EAAOK,GAAOD,EAAOC,GAG3B,CAEA,OAAOL,CACT,EAEOH,EAASY,MAAMC,KAAMR,UAC9B,CAEA,SAASS,EAA8BP,EAAQQ,GAC7C,GAAc,MAAVR,EAAgB,MAAO,CAAC,EAC5B,IAEIC,EAAKJ,EAFLD,EAAS,CAAC,EACVa,EAAaf,OAAOgB,KAAKV,GAG7B,IAAKH,EAAI,EAAGA,EAAIY,EAAWV,OAAQF,IACjCI,EAAMQ,EAAWZ,GACbW,EAASG,QAAQV,IAAQ,IAC7BL,EAAOK,GAAOD,EAAOC,IAGvB,OAAOL,CACT,CAEA,IAAIgB,GAAiBC,EAAAA,EAAAA,IAAc,CACjCC,KAAM,iBACNC,aAAc,oHAEZC,EAAkBJ,EAAe,GAC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AFHI,EAAO,IAGpBxD,EAAa2C,EAAc5C,EAAgB5U,GAC3C0Y,EAAaR,IACb5O,EAAY5L,OAAOC,OAAO,CAAC,EAAG6a,EAAa7E,KAE3CgF,EAAalb,EAAS,CACxBmb,MAAOnE,EAAc,YAASpO,EAC9BuD,QAAS,cACTiP,WAAY,SACZC,cAAe,MACfC,OAAQ,WACPhY,EAAOiY,WAENC,EAAiBxb,EAAS,CAC5BmM,QAAS,cACTiP,WAAY,SACZK,eAAgB,SAChBC,WAAY,GACXpY,EAAOqY,SAENC,EAAc5b,EAAS,CACzB6b,WAAY,OACZC,YAAa/E,GACZzT,EAAOyY,OAEV,OAAoB7Q,EAAAA,cAAoBhJ,EAAAA,GAAO6Z,MAAO/b,EAAS,CAC7DyM,UAAW,gBACVZ,EAAW,CACZU,MAAO2O,IACQhQ,EAAAA,cAAoB,QAASlL,EAAS,CACrDyM,UAAW,uBACV2K,IAA2BlM,EAAAA,cAAoBhJ,EAAAA,GAAO8Z,KAAMhc,EAAS,CACtEyM,UAAW,yBACVuO,EAAe,CAChBzO,MAAOiP,KACJ9X,GAAyBwH,EAAAA,cAAoBhJ,EAAAA,GAAO8Z,KAAMhc,EAAS,CACtEyM,UAAW,uBACVwO,EAAY,CACb1O,MAAOqP,IACLlY,GACN,GAEI4H,EAAAA,KACFqL,EAAMpL,YAAc,Q","sources":["../node_modules/@chakra-ui/popover/dist/chakra-ui-popover.esm.js","../node_modules/date-fns/esm/_lib/assign/index.js","../node_modules/date-fns/esm/formatDistanceStrict/index.js","../node_modules/date-fns/esm/compareAsc/index.js","../node_modules/date-fns/esm/_lib/cloneObject/index.js","../node_modules/date-fns/esm/formatDistanceToNowStrict/index.js","../node_modules/@chakra-ui/media-query/dist/chakra-ui-media-query.esm.js","../node_modules/@chakra-ui/radio/dist/chakra-ui-radio.esm.js"],"sourcesContent":["import { CloseButton } from '@chakra-ui/close-button';\nimport { chakra, useMultiStyleConfig, omitThemingProps, useTheme, StylesProvider, forwardRef, useStyles } from '@chakra-ui/system';\nimport { mergeWith, determineLazyBehavior, px, callAllHandlers, getRelatedTarget, contains, runIfFn, __DEV__, callAll, cx } from '@chakra-ui/utils';\nimport * as React from 'react';\nimport React__default, { useRef, useState, useCallback, useEffect } from 'react';\nimport { createContext, mergeRefs } from '@chakra-ui/react-utils';\nimport { motion } from 'framer-motion';\nimport { useDisclosure, useIds, useFocusOnPointerDown, useFocusOnHide, useFocusOnShow } from '@chakra-ui/hooks';\nimport { useAnimationState } from '@chakra-ui/hooks/use-animation-state';\nimport { usePopper, popperCSSVars } from '@chakra-ui/popper';\n\nfunction _extends() {\n _extends = Object.assign || function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n\n return target;\n };\n\n return _extends.apply(this, arguments);\n}\n\nfunction _objectWithoutPropertiesLoose(source, excluded) {\n if (source == null) return {};\n var target = {};\n var sourceKeys = Object.keys(source);\n var key, i;\n\n for (i = 0; i < sourceKeys.length; i++) {\n key = sourceKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n target[key] = source[key];\n }\n\n return target;\n}\n\nvar _createContext = createContext({\n name: \"PopoverContext\",\n errorMessage: \"usePopoverContext: `context` is undefined. Seems you forgot to wrap all popover components within `<Popover />`\"\n}),\n PopoverProvider = _createContext[0],\n usePopoverContext = _createContext[1];\n\nvar mergeVariants = function mergeVariants(variants) {\n if (!variants) return;\n return mergeWith(variants, {\n enter: {\n visibility: \"visible\"\n },\n exit: {\n transitionEnd: {\n visibility: \"hidden\"\n }\n }\n });\n};\n\nvar scaleFade = {\n exit: {\n opacity: 0,\n scale: 0.95,\n transition: {\n duration: 0.1,\n ease: [0.4, 0, 1, 1]\n }\n },\n enter: {\n scale: 1,\n opacity: 1,\n transition: {\n duration: 0.15,\n ease: [0, 0, 0.2, 1]\n }\n }\n};\nvar Section = motion(chakra.section);\nvar PopoverTransition = /*#__PURE__*/React__default.forwardRef(function (props, ref) {\n var _usePopoverContext = usePopoverContext(),\n isOpen = _usePopoverContext.isOpen;\n\n return /*#__PURE__*/React__default.createElement(Section, _extends({\n ref: ref,\n variants: mergeVariants(props.variants)\n }, props, {\n initial: false,\n animate: isOpen ? \"enter\" : \"exit\"\n }));\n});\nPopoverTransition.defaultProps = {\n variants: scaleFade\n};\n\nvar _excluded$1 = [\"closeOnBlur\", \"closeOnEsc\", \"initialFocusRef\", \"id\", \"returnFocusOnClose\", \"autoFocus\", \"arrowSize\", \"arrowShadowColor\", \"trigger\", \"openDelay\", \"closeDelay\", \"isLazy\", \"lazyBehavior\", \"computePositionOnMount\"];\nvar TRIGGER = {\n click: \"click\",\n hover: \"hover\"\n};\n\n/**\n * @internal\n */\nfunction usePopover(props) {\n if (props === void 0) {\n props = {};\n }\n\n var _props = props,\n _props$closeOnBlur = _props.closeOnBlur,\n closeOnBlur = _props$closeOnBlur === void 0 ? true : _props$closeOnBlur,\n _props$closeOnEsc = _props.closeOnEsc,\n closeOnEsc = _props$closeOnEsc === void 0 ? true : _props$closeOnEsc,\n initialFocusRef = _props.initialFocusRef,\n id = _props.id,\n _props$returnFocusOnC = _props.returnFocusOnClose,\n returnFocusOnClose = _props$returnFocusOnC === void 0 ? true : _props$returnFocusOnC,\n _props$autoFocus = _props.autoFocus,\n autoFocus = _props$autoFocus === void 0 ? true : _props$autoFocus,\n arrowSize = _props.arrowSize,\n arrowShadowColor = _props.arrowShadowColor,\n _props$trigger = _props.trigger,\n trigger = _props$trigger === void 0 ? TRIGGER.click : _props$trigger,\n _props$openDelay = _props.openDelay,\n openDelay = _props$openDelay === void 0 ? 200 : _props$openDelay,\n _props$closeDelay = _props.closeDelay,\n closeDelay = _props$closeDelay === void 0 ? 200 : _props$closeDelay,\n isLazy = _props.isLazy,\n _props$lazyBehavior = _props.lazyBehavior,\n lazyBehavior = _props$lazyBehavior === void 0 ? \"unmount\" : _props$lazyBehavior,\n computePositionOnMount = _props.computePositionOnMount,\n popperProps = _objectWithoutPropertiesLoose(_props, _excluded$1);\n\n var _useDisclosure = useDisclosure(props),\n isOpen = _useDisclosure.isOpen,\n onClose = _useDisclosure.onClose,\n onOpen = _useDisclosure.onOpen,\n onToggle = _useDisclosure.onToggle;\n\n var anchorRef = useRef(null);\n var triggerRef = useRef(null);\n var popoverRef = useRef(null);\n var isHoveringRef = useRef(false);\n var hasBeenOpened = useRef(false);\n\n if (isOpen) {\n hasBeenOpened.current = true;\n }\n\n var _useState = useState(false),\n hasHeader = _useState[0],\n setHasHeader = _useState[1];\n\n var _useState2 = useState(false),\n hasBody = _useState2[0],\n setHasBody = _useState2[1];\n\n var _useIds = useIds(id, \"popover-trigger\", \"popover-content\", \"popover-header\", \"popover-body\"),\n triggerId = _useIds[0],\n popoverId = _useIds[1],\n headerId = _useIds[2],\n bodyId = _useIds[3];\n\n var _usePopper = usePopper(_extends({}, popperProps, {\n enabled: isOpen || !!computePositionOnMount\n })),\n referenceRef = _usePopper.referenceRef,\n getArrowProps = _usePopper.getArrowProps,\n getPopperProps = _usePopper.getPopperProps,\n getArrowInnerProps = _usePopper.getArrowInnerProps,\n forceUpdate = _usePopper.forceUpdate;\n\n var animated = useAnimationState({\n isOpen: isOpen,\n ref: popoverRef\n });\n useFocusOnPointerDown({\n enabled: isOpen,\n ref: triggerRef\n });\n useFocusOnHide(popoverRef, {\n focusRef: triggerRef,\n visible: isOpen,\n shouldFocus: returnFocusOnClose && trigger === TRIGGER.click\n });\n useFocusOnShow(popoverRef, {\n focusRef: initialFocusRef,\n visible: isOpen,\n shouldFocus: autoFocus && trigger === TRIGGER.click\n });\n var shouldRenderChildren = determineLazyBehavior({\n hasBeenSelected: hasBeenOpened.current,\n isLazy: isLazy,\n lazyBehavior: lazyBehavior,\n isSelected: animated.present\n });\n var getPopoverProps = useCallback(function (props, _ref) {\n var _extends2;\n\n if (props === void 0) {\n props = {};\n }\n\n if (_ref === void 0) {\n _ref = null;\n }\n\n var popoverProps = _extends({}, props, {\n style: _extends({}, props.style, (_extends2 = {\n transformOrigin: popperCSSVars.transformOrigin.varRef\n }, _extends2[popperCSSVars.arrowSize[\"var\"]] = arrowSize ? px(arrowSize) : undefined, _extends2[popperCSSVars.arrowShadowColor[\"var\"]] = arrowShadowColor, _extends2)),\n ref: mergeRefs(popoverRef, _ref),\n children: shouldRenderChildren ? props.children : null,\n id: popoverId,\n tabIndex: -1,\n role: \"dialog\",\n onKeyDown: callAllHandlers(props.onKeyDown, function (event) {\n if (closeOnEsc && event.key === \"Escape\") {\n onClose();\n }\n }),\n onBlur: callAllHandlers(props.onBlur, function (event) {\n var relatedTarget = getRelatedTarget(event);\n var targetIsPopover = contains(popoverRef.current, relatedTarget);\n var targetIsTrigger = contains(triggerRef.current, relatedTarget);\n var isValidBlur = !targetIsPopover && !targetIsTrigger;\n\n if (isOpen && closeOnBlur && isValidBlur) {\n onClose();\n }\n }),\n \"aria-labelledby\": hasHeader ? headerId : undefined,\n \"aria-describedby\": hasBody ? bodyId : undefined\n });\n\n if (trigger === TRIGGER.hover) {\n popoverProps.role = \"tooltip\";\n popoverProps.onMouseEnter = callAllHandlers(props.onMouseEnter, function () {\n isHoveringRef.current = true;\n });\n popoverProps.onMouseLeave = callAllHandlers(props.onMouseLeave, function () {\n isHoveringRef.current = false;\n setTimeout(onClose, closeDelay);\n });\n }\n\n return popoverProps;\n }, [shouldRenderChildren, popoverId, hasHeader, headerId, hasBody, bodyId, trigger, closeOnEsc, onClose, isOpen, closeOnBlur, closeDelay, arrowShadowColor, arrowSize]);\n var getPopoverPositionerProps = useCallback(function (props, forwardedRef) {\n if (props === void 0) {\n props = {};\n }\n\n if (forwardedRef === void 0) {\n forwardedRef = null;\n }\n\n return getPopperProps(_extends({}, props, {\n style: _extends({\n visibility: isOpen ? \"visible\" : \"hidden\"\n }, props.style)\n }), forwardedRef);\n }, [isOpen, getPopperProps]);\n var getAnchorProps = useCallback(function (props, _ref) {\n if (_ref === void 0) {\n _ref = null;\n }\n\n var anchorProps = _extends({}, props, {\n // If anchor is rendered, it is used as reference.\n ref: mergeRefs(_ref, anchorRef, referenceRef)\n });\n\n return anchorProps;\n }, [anchorRef, referenceRef]);\n var openTimeout = useRef();\n var closeTimeout = useRef();\n var maybeReferenceRef = useCallback(function (node) {\n // Don't override referenceRef in case the PopoverAnchor is rendered.\n if (anchorRef.current == null) {\n referenceRef(node);\n }\n }, [referenceRef]);\n var getTriggerProps = useCallback(function (props, _ref) {\n if (props === void 0) {\n props = {};\n }\n\n if (_ref === void 0) {\n _ref = null;\n }\n\n var triggerProps = _extends({}, props, {\n ref: mergeRefs(triggerRef, _ref, maybeReferenceRef),\n id: triggerId,\n \"aria-haspopup\": \"dialog\",\n \"aria-expanded\": isOpen,\n \"aria-controls\": popoverId\n });\n\n if (trigger === TRIGGER.click) {\n triggerProps.onClick = callAllHandlers(props.onClick, onToggle);\n }\n\n if (trigger === TRIGGER.hover) {\n /**\n * Any content that shows on pointer hover should also show on keyboard focus.\n * Consider focus and blur to be the `hover` for keyboard users.\n *\n * @see https://www.w3.org/WAI/WCAG21/Understanding/content-on-hover-or-focus.html\n */\n triggerProps.onFocus = callAllHandlers(props.onFocus, onOpen);\n triggerProps.onBlur = callAllHandlers(props.onBlur, function (event) {\n var relatedTarget = getRelatedTarget(event);\n var isValidBlur = !contains(popoverRef.current, relatedTarget);\n\n if (isOpen && closeOnBlur && isValidBlur) {\n onClose();\n }\n });\n /**\n * Any content that shows on hover or focus must be dismissible.\n * This case pressing `Escape` will dismiss the popover\n */\n\n triggerProps.onKeyDown = callAllHandlers(props.onKeyDown, function (event) {\n if (event.key === \"Escape\") {\n onClose();\n }\n });\n triggerProps.onMouseEnter = callAllHandlers(props.onMouseEnter, function () {\n isHoveringRef.current = true;\n openTimeout.current = window.setTimeout(onOpen, openDelay);\n });\n triggerProps.onMouseLeave = callAllHandlers(props.onMouseLeave, function () {\n isHoveringRef.current = false;\n\n if (openTimeout.current) {\n clearTimeout(openTimeout.current);\n openTimeout.current = undefined;\n }\n\n closeTimeout.current = window.setTimeout(function () {\n if (isHoveringRef.current === false) {\n onClose();\n }\n }, closeDelay);\n });\n }\n\n return triggerProps;\n }, [triggerId, isOpen, popoverId, trigger, maybeReferenceRef, onToggle, onOpen, closeOnBlur, onClose, openDelay, closeDelay]);\n useEffect(function () {\n return function () {\n if (openTimeout.current) {\n clearTimeout(openTimeout.current);\n }\n\n if (closeTimeout.current) {\n clearTimeout(closeTimeout.current);\n }\n };\n }, []);\n var getHeaderProps = useCallback(function (props, ref) {\n if (props === void 0) {\n props = {};\n }\n\n if (ref === void 0) {\n ref = null;\n }\n\n return _extends({}, props, {\n id: headerId,\n ref: mergeRefs(ref, function (node) {\n setHasHeader(!!node);\n })\n });\n }, [headerId]);\n var getBodyProps = useCallback(function (props, ref) {\n if (props === void 0) {\n props = {};\n }\n\n if (ref === void 0) {\n ref = null;\n }\n\n return _extends({}, props, {\n id: bodyId,\n ref: mergeRefs(ref, function (node) {\n setHasBody(!!node);\n })\n });\n }, [bodyId]);\n return {\n forceUpdate: forceUpdate,\n isOpen: isOpen,\n onAnimationComplete: animated.onComplete,\n onClose: onClose,\n getAnchorProps: getAnchorProps,\n getArrowProps: getArrowProps,\n getArrowInnerProps: getArrowInnerProps,\n getPopoverPositionerProps: getPopoverPositionerProps,\n getPopoverProps: getPopoverProps,\n getTriggerProps: getTriggerProps,\n getHeaderProps: getHeaderProps,\n getBodyProps: getBodyProps\n };\n}\n\nvar _excluded = [\"children\"],\n _excluded2 = [\"rootProps\"];\n\n/**\n * Popover is used to bring attention to specific user interface elements,\n * typically to suggest an action or to guide users through a new experience.\n */\nvar Popover = function Popover(props) {\n var styles = useMultiStyleConfig(\"Popover\", props);\n\n var _omitThemingProps = omitThemingProps(props),\n children = _omitThemingProps.children,\n rest = _objectWithoutPropertiesLoose(_omitThemingProps, _excluded);\n\n var theme = useTheme();\n var context = usePopover(_extends({}, rest, {\n direction: theme.direction\n }));\n return /*#__PURE__*/React.createElement(PopoverProvider, {\n value: context\n }, /*#__PURE__*/React.createElement(StylesProvider, {\n value: styles\n }, runIfFn(children, {\n isOpen: context.isOpen,\n onClose: context.onClose,\n forceUpdate: context.forceUpdate\n })));\n};\n\nif (__DEV__) {\n Popover.displayName = \"Popover\";\n}\n/**\n * PopoverAnchor is element that is used as the positioning reference\n * for the popover.\n */\n\n\nvar PopoverAnchor = function PopoverAnchor(props) {\n // enforce a single child\n var child = React.Children.only(props.children);\n\n var _usePopoverContext = usePopoverContext(),\n getAnchorProps = _usePopoverContext.getAnchorProps;\n\n return /*#__PURE__*/React.cloneElement(child, getAnchorProps(child.props, child.ref));\n};\n\nif (__DEV__) {\n PopoverAnchor.displayName = \"PopoverAnchor\";\n}\n/**\n * PopoverTrigger opens the popover's content. It must be an interactive element\n * such as `button` or `a`.\n */\n\n\nvar PopoverTrigger = function PopoverTrigger(props) {\n // enforce a single child\n var child = React.Children.only(props.children);\n\n var _usePopoverContext2 = usePopoverContext(),\n getTriggerProps = _usePopoverContext2.getTriggerProps;\n\n return /*#__PURE__*/React.cloneElement(child, getTriggerProps(child.props, child.ref));\n};\n\nif (__DEV__) {\n PopoverTrigger.displayName = \"PopoverTrigger\";\n}\n\nvar PopoverContent = /*#__PURE__*/forwardRef(function (props, ref) {\n var rootProps = props.rootProps,\n contentProps = _objectWithoutPropertiesLoose(props, _excluded2);\n\n var _usePopoverContext3 = usePopoverContext(),\n getPopoverProps = _usePopoverContext3.getPopoverProps,\n getPopoverPositionerProps = _usePopoverContext3.getPopoverPositionerProps,\n onAnimationComplete = _usePopoverContext3.onAnimationComplete;\n\n var styles = useStyles();\n\n var contentStyles = _extends({\n position: \"relative\",\n display: \"flex\",\n flexDirection: \"column\"\n }, styles.content);\n\n return /*#__PURE__*/React.createElement(chakra.div, _extends({}, getPopoverPositionerProps(rootProps), {\n __css: styles.popper,\n className: \"chakra-popover__popper\"\n }), /*#__PURE__*/React.createElement(PopoverTransition, _extends({}, getPopoverProps(contentProps, ref), {\n onAnimationComplete: callAll(onAnimationComplete, contentProps.onAnimationComplete),\n className: cx(\"chakra-popover__content\", props.className),\n __css: contentStyles\n })));\n});\n\nif (__DEV__) {\n PopoverContent.displayName = \"PopoverContent\";\n}\n\n/**\n * PopoverHeader is the accessible header or label\n * for the popover's content, and it is first announced by screenreaders.\n */\nvar PopoverHeader = /*#__PURE__*/forwardRef(function (props, ref) {\n var _usePopoverContext4 = usePopoverContext(),\n getHeaderProps = _usePopoverContext4.getHeaderProps;\n\n var styles = useStyles();\n return /*#__PURE__*/React.createElement(chakra.header, _extends({}, getHeaderProps(props, ref), {\n className: cx(\"chakra-popover__header\", props.className),\n __css: styles.header\n }));\n});\n\nif (__DEV__) {\n PopoverHeader.displayName = \"PopoverHeader\";\n}\n\n/**\n * PopoverBody is the main content area for the popover. Should contain\n * at least one interactive element.\n */\nvar PopoverBody = /*#__PURE__*/forwardRef(function (props, ref) {\n var _usePopoverContext5 = usePopoverContext(),\n getBodyProps = _usePopoverContext5.getBodyProps;\n\n var styles = useStyles();\n return /*#__PURE__*/React.createElement(chakra.div, _extends({}, getBodyProps(props, ref), {\n className: cx(\"chakra-popover__body\", props.className),\n __css: styles.body\n }));\n});\n\nif (__DEV__) {\n PopoverBody.displayName = \"PopoverBody\";\n}\n\nvar PopoverFooter = function PopoverFooter(props) {\n var styles = useStyles();\n return /*#__PURE__*/React.createElement(chakra.footer, _extends({}, props, {\n className: cx(\"chakra-popover__footer\", props.className),\n __css: styles.footer\n }));\n};\n\nif (__DEV__) {\n PopoverFooter.displayName = \"PopoverFooter\";\n}\n\nvar PopoverCloseButton = function PopoverCloseButton(props) {\n var _usePopoverContext6 = usePopoverContext(),\n onClose = _usePopoverContext6.onClose;\n\n var styles = useStyles();\n return /*#__PURE__*/React.createElement(CloseButton, _extends({\n size: \"sm\",\n onClick: onClose,\n className: cx(\"chakra-popover__close-btn\", props.className),\n __css: styles.closeButton\n }, props));\n};\n\nif (__DEV__) {\n PopoverCloseButton.displayName = \"PopoverCloseButton\";\n}\n\nvar PopoverArrow = function PopoverArrow(props) {\n var _ref;\n\n var bg = props.bg,\n bgColor = props.bgColor,\n backgroundColor = props.backgroundColor;\n\n var _usePopoverContext7 = usePopoverContext(),\n getArrowProps = _usePopoverContext7.getArrowProps,\n getArrowInnerProps = _usePopoverContext7.getArrowInnerProps;\n\n var styles = useStyles();\n var arrowBg = (_ref = bg != null ? bg : bgColor) != null ? _ref : backgroundColor;\n return /*#__PURE__*/React.createElement(chakra.div, _extends({}, getArrowProps(), {\n className: \"chakra-popover__arrow-positioner\"\n }), /*#__PURE__*/React.createElement(chakra.div, _extends({\n className: cx(\"chakra-popover__arrow\", props.className)\n }, getArrowInnerProps(props), {\n __css: _extends({}, styles.arrow, {\n \"--popper-arrow-bg\": arrowBg ? \"colors.\" + arrowBg + \", \" + arrowBg : undefined\n })\n })));\n};\n\nif (__DEV__) {\n PopoverArrow.displayName = \"PopoverArrow\";\n}\n\nexport { Popover, PopoverAnchor, PopoverArrow, PopoverBody, PopoverCloseButton, PopoverContent, PopoverFooter, PopoverHeader, PopoverTrigger, usePopover, usePopoverContext };\n","export default function assign(target, object) {\n if (target == null) {\n throw new TypeError('assign requires that input parameter not be null or undefined');\n }\n for (var property in object) {\n if (Object.prototype.hasOwnProperty.call(object, property)) {\n ;\n target[property] = object[property];\n }\n }\n return target;\n}","import { getDefaultOptions } from \"../_lib/defaultOptions/index.js\";\nimport getTimezoneOffsetInMilliseconds from \"../_lib/getTimezoneOffsetInMilliseconds/index.js\";\nimport compareAsc from \"../compareAsc/index.js\";\nimport toDate from \"../toDate/index.js\";\nimport cloneObject from \"../_lib/cloneObject/index.js\";\nimport assign from \"../_lib/assign/index.js\";\nimport defaultLocale from \"../_lib/defaultLocale/index.js\";\nimport requiredArgs from \"../_lib/requiredArgs/index.js\";\nvar MILLISECONDS_IN_MINUTE = 1000 * 60;\nvar MINUTES_IN_DAY = 60 * 24;\nvar MINUTES_IN_MONTH = MINUTES_IN_DAY * 30;\nvar MINUTES_IN_YEAR = MINUTES_IN_DAY * 365;\n\n/**\n * @name formatDistanceStrict\n * @category Common Helpers\n * @summary Return the distance between the given dates in words.\n *\n * @description\n * Return the distance between the given dates in words, using strict units.\n * This is like `formatDistance`, but does not use helpers like 'almost', 'over',\n * 'less than' and the like.\n *\n * | Distance between dates | Result |\n * |------------------------|---------------------|\n * | 0 ... 59 secs | [0..59] seconds |\n * | 1 ... 59 mins | [1..59] minutes |\n * | 1 ... 23 hrs | [1..23] hours |\n * | 1 ... 29 days | [1..29] days |\n * | 1 ... 11 months | [1..11] months |\n * | 1 ... N years | [1..N] years |\n *\n * @param {Date|Number} date - the date\n * @param {Date|Number} baseDate - the date to compare with\n * @param {Object} [options] - an object with options.\n * @param {Boolean} [options.addSuffix=false] - result indicates if the second date is earlier or later than the first\n * @param {'second'|'minute'|'hour'|'day'|'month'|'year'} [options.unit] - if specified, will force a unit\n * @param {'floor'|'ceil'|'round'} [options.roundingMethod='round'] - which way to round partial units\n * @param {Locale} [options.locale=defaultLocale] - the locale object. See [Locale]{@link https://date-fns.org/docs/Locale}\n * @returns {String} the distance in words\n * @throws {TypeError} 2 arguments required\n * @throws {RangeError} `date` must not be Invalid Date\n * @throws {RangeError} `baseDate` must not be Invalid Date\n * @throws {RangeError} `options.roundingMethod` must be 'floor', 'ceil' or 'round'\n * @throws {RangeError} `options.unit` must be 'second', 'minute', 'hour', 'day', 'month' or 'year'\n * @throws {RangeError} `options.locale` must contain `formatDistance` property\n *\n * @example\n * // What is the distance between 2 July 2014 and 1 January 2015?\n * const result = formatDistanceStrict(new Date(2014, 6, 2), new Date(2015, 0, 2))\n * //=> '6 months'\n *\n * @example\n * // What is the distance between 1 January 2015 00:00:15\n * // and 1 January 2015 00:00:00?\n * const result = formatDistanceStrict(\n * new Date(2015, 0, 1, 0, 0, 15),\n * new Date(2015, 0, 1, 0, 0, 0)\n * )\n * //=> '15 seconds'\n *\n * @example\n * // What is the distance from 1 January 2016\n * // to 1 January 2015, with a suffix?\n * const result = formatDistanceStrict(new Date(2015, 0, 1), new Date(2016, 0, 1), {\n * addSuffix: true\n * })\n * //=> '1 year ago'\n *\n * @example\n * // What is the distance from 1 January 2016\n * // to 1 January 2015, in minutes?\n * const result = formatDistanceStrict(new Date(2016, 0, 1), new Date(2015, 0, 1), {\n * unit: 'minute'\n * })\n * //=> '525600 minutes'\n *\n * @example\n * // What is the distance from 1 January 2015\n * // to 28 January 2015, in months, rounded up?\n * const result = formatDistanceStrict(new Date(2015, 0, 28), new Date(2015, 0, 1), {\n * unit: 'month',\n * roundingMethod: 'ceil'\n * })\n * //=> '1 month'\n *\n * @example\n * // What is the distance between 1 August 2016 and 1 January 2015 in Esperanto?\n * import { eoLocale } from 'date-fns/locale/eo'\n * const result = formatDistanceStrict(new Date(2016, 7, 1), new Date(2015, 0, 1), {\n * locale: eoLocale\n * })\n * //=> '1 jaro'\n */\n\nexport default function formatDistanceStrict(dirtyDate, dirtyBaseDate, options) {\n var _ref, _options$locale, _options$roundingMeth;\n requiredArgs(2, arguments);\n var defaultOptions = getDefaultOptions();\n var locale = (_ref = (_options$locale = options === null || options === void 0 ? void 0 : options.locale) !== null && _options$locale !== void 0 ? _options$locale : defaultOptions.locale) !== null && _ref !== void 0 ? _ref : defaultLocale;\n if (!locale.formatDistance) {\n throw new RangeError('locale must contain localize.formatDistance property');\n }\n var comparison = compareAsc(dirtyDate, dirtyBaseDate);\n if (isNaN(comparison)) {\n throw new RangeError('Invalid time value');\n }\n var localizeOptions = assign(cloneObject(options), {\n addSuffix: Boolean(options === null || options === void 0 ? void 0 : options.addSuffix),\n comparison: comparison\n });\n var dateLeft;\n var dateRight;\n if (comparison > 0) {\n dateLeft = toDate(dirtyBaseDate);\n dateRight = toDate(dirtyDate);\n } else {\n dateLeft = toDate(dirtyDate);\n dateRight = toDate(dirtyBaseDate);\n }\n var roundingMethod = String((_options$roundingMeth = options === null || options === void 0 ? void 0 : options.roundingMethod) !== null && _options$roundingMeth !== void 0 ? _options$roundingMeth : 'round');\n var roundingMethodFn;\n if (roundingMethod === 'floor') {\n roundingMethodFn = Math.floor;\n } else if (roundingMethod === 'ceil') {\n roundingMethodFn = Math.ceil;\n } else if (roundingMethod === 'round') {\n roundingMethodFn = Math.round;\n } else {\n throw new RangeError(\"roundingMethod must be 'floor', 'ceil' or 'round'\");\n }\n var milliseconds = dateRight.getTime() - dateLeft.getTime();\n var minutes = milliseconds / MILLISECONDS_IN_MINUTE;\n var timezoneOffset = getTimezoneOffsetInMilliseconds(dateRight) - getTimezoneOffsetInMilliseconds(dateLeft);\n\n // Use DST-normalized difference in minutes for years, months and days;\n // use regular difference in minutes for hours, minutes and seconds.\n var dstNormalizedMinutes = (milliseconds - timezoneOffset) / MILLISECONDS_IN_MINUTE;\n var defaultUnit = options === null || options === void 0 ? void 0 : options.unit;\n var unit;\n if (!defaultUnit) {\n if (minutes < 1) {\n unit = 'second';\n } else if (minutes < 60) {\n unit = 'minute';\n } else if (minutes < MINUTES_IN_DAY) {\n unit = 'hour';\n } else if (dstNormalizedMinutes < MINUTES_IN_MONTH) {\n unit = 'day';\n } else if (dstNormalizedMinutes < MINUTES_IN_YEAR) {\n unit = 'month';\n } else {\n unit = 'year';\n }\n } else {\n unit = String(defaultUnit);\n }\n\n // 0 up to 60 seconds\n if (unit === 'second') {\n var seconds = roundingMethodFn(milliseconds / 1000);\n return locale.formatDistance('xSeconds', seconds, localizeOptions);\n\n // 1 up to 60 mins\n } else if (unit === 'minute') {\n var roundedMinutes = roundingMethodFn(minutes);\n return locale.formatDistance('xMinutes', roundedMinutes, localizeOptions);\n\n // 1 up to 24 hours\n } else if (unit === 'hour') {\n var hours = roundingMethodFn(minutes / 60);\n return locale.formatDistance('xHours', hours, localizeOptions);\n\n // 1 up to 30 days\n } else if (unit === 'day') {\n var days = roundingMethodFn(dstNormalizedMinutes / MINUTES_IN_DAY);\n return locale.formatDistance('xDays', days, localizeOptions);\n\n // 1 up to 12 months\n } else if (unit === 'month') {\n var months = roundingMethodFn(dstNormalizedMinutes / MINUTES_IN_MONTH);\n return months === 12 && defaultUnit !== 'month' ? locale.formatDistance('xYears', 1, localizeOptions) : locale.formatDistance('xMonths', months, localizeOptions);\n\n // 1 year up to max Date\n } else if (unit === 'year') {\n var years = roundingMethodFn(dstNormalizedMinutes / MINUTES_IN_YEAR);\n return locale.formatDistance('xYears', years, localizeOptions);\n }\n throw new RangeError(\"unit must be 'second', 'minute', 'hour', 'day', 'month' or 'year'\");\n}","import toDate from \"../toDate/index.js\";\nimport requiredArgs from \"../_lib/requiredArgs/index.js\";\n/**\n * @name compareAsc\n * @category Common Helpers\n * @summary Compare the two dates and return -1, 0 or 1.\n *\n * @description\n * Compare the two dates and return 1 if the first date is after the second,\n * -1 if the first date is before the second or 0 if dates are equal.\n *\n * @param {Date|Number} dateLeft - the first date to compare\n * @param {Date|Number} dateRight - the second date to compare\n * @returns {Number} the result of the comparison\n * @throws {TypeError} 2 arguments required\n *\n * @example\n * // Compare 11 February 1987 and 10 July 1989:\n * const result = compareAsc(new Date(1987, 1, 11), new Date(1989, 6, 10))\n * //=> -1\n *\n * @example\n * // Sort the array of dates:\n * const result = [\n * new Date(1995, 6, 2),\n * new Date(1987, 1, 11),\n * new Date(1989, 6, 10)\n * ].sort(compareAsc)\n * //=> [\n * // Wed Feb 11 1987 00:00:00,\n * // Mon Jul 10 1989 00:00:00,\n * // Sun Jul 02 1995 00:00:00\n * // ]\n */\nexport default function compareAsc(dirtyDateLeft, dirtyDateRight) {\n requiredArgs(2, arguments);\n var dateLeft = toDate(dirtyDateLeft);\n var dateRight = toDate(dirtyDateRight);\n var diff = dateLeft.getTime() - dateRight.getTime();\n if (diff < 0) {\n return -1;\n } else if (diff > 0) {\n return 1;\n // Return 0 if diff is 0; return NaN if diff is NaN\n } else {\n return diff;\n }\n}","import assign from \"../assign/index.js\";\nexport default function cloneObject(object) {\n return assign({}, object);\n}","import formatDistanceStrict from \"../formatDistanceStrict/index.js\";\nimport requiredArgs from \"../_lib/requiredArgs/index.js\";\n/**\n * @name formatDistanceToNowStrict\n * @category Common Helpers\n * @summary Return the distance between the given date and now in words.\n * @pure false\n *\n * @description\n * Return the distance between the given dates in words, using strict units.\n * This is like `formatDistance`, but does not use helpers like 'almost', 'over',\n * 'less than' and the like.\n *\n * | Distance between dates | Result |\n * |------------------------|---------------------|\n * | 0 ... 59 secs | [0..59] seconds |\n * | 1 ... 59 mins | [1..59] minutes |\n * | 1 ... 23 hrs | [1..23] hours |\n * | 1 ... 29 days | [1..29] days |\n * | 1 ... 11 months | [1..11] months |\n * | 1 ... N years | [1..N] years |\n *\n * @param {Date|Number} date - the given date\n * @param {Object} [options] - an object with options.\n * @param {Boolean} [options.addSuffix=false] - result indicates if the second date is earlier or later than the first\n * @param {'second'|'minute'|'hour'|'day'|'month'|'year'} [options.unit] - if specified, will force a unit\n * @param {'floor'|'ceil'|'round'} [options.roundingMethod='round'] - which way to round partial units\n * @param {Locale} [options.locale=defaultLocale] - the locale object. See [Locale]{@link https://date-fns.org/docs/Locale}\n * @returns {String} the distance in words\n * @throws {TypeError} 1 argument required\n * @throws {RangeError} `date` must not be Invalid Date\n * @throws {RangeError} `options.locale` must contain `formatDistance` property\n *\n * @example\n * // If today is 1 January 2015, what is the distance to 2 July 2014?\n * const result = formatDistanceToNowStrict(\n * new Date(2014, 6, 2)\n * )\n * //=> '6 months'\n *\n * @example\n * // If now is 1 January 2015 00:00:00,\n * // what is the distance to 1 January 2015 00:00:15, including seconds?\n * const result = formatDistanceToNowStrict(\n * new Date(2015, 0, 1, 0, 0, 15)\n * )\n * //=> '15 seconds'\n *\n * @example\n * // If today is 1 January 2015,\n * // what is the distance to 1 January 2016, with a suffix?\n * const result = formatDistanceToNowStrict(\n * new Date(2016, 0, 1),\n * {addSuffix: true}\n * )\n * //=> 'in 1 year'\n *\n * @example\n * // If today is 28 January 2015,\n * // what is the distance to 1 January 2015, in months, rounded up??\n * const result = formatDistanceToNowStrict(new Date(2015, 0, 1), {\n * unit: 'month',\n * roundingMethod: 'ceil'\n * })\n * //=> '1 month'\n *\n * @example\n * // If today is 1 January 2015,\n * // what is the distance to 1 January 2016 in Esperanto?\n * const eoLocale = require('date-fns/locale/eo')\n * const result = formatDistanceToNowStrict(\n * new Date(2016, 0, 1),\n * {locale: eoLocale}\n * )\n * //=> '1 jaro'\n */\nexport default function formatDistanceToNowStrict(dirtyDate, options) {\n requiredArgs(1, arguments);\n return formatDistanceStrict(dirtyDate, Date.now(), options);\n}","import { useTheme } from '@chakra-ui/system';\nimport { isBrowser, __DEV__, memoizedGet, breakpoints, isArray, fromEntries, arrayToObjectNotation } from '@chakra-ui/utils';\nimport * as React from 'react';\nimport React__default from 'react';\nimport { useEnvironment } from '@chakra-ui/react-env';\n\nvar useSafeLayoutEffect = isBrowser ? React.useLayoutEffect : React.useEffect;\n/**\n * React hook that tracks state of a CSS media query\n *\n * @param query the media query to match\n */\n\nfunction useMediaQuery(query) {\n var env = useEnvironment();\n var queries = Array.isArray(query) ? query : [query];\n var isSupported = isBrowser && \"matchMedia\" in env.window;\n\n var _React$useState = React.useState(queries.map(function (query) {\n return isSupported ? !!env.window.matchMedia(query).matches : false;\n })),\n matches = _React$useState[0],\n setMatches = _React$useState[1]; // Specifying matches in the dependency list will cause the event listeners\n // to unload and then load each time the dependency changes. This causes\n // Media Query Events to be missed. The event listeners should only be unloaded\n // when the component unloads.\n\n\n useSafeLayoutEffect(function () {\n if (!isSupported) return undefined;\n var mediaQueryList = queries.map(function (query) {\n return env.window.matchMedia(query);\n });\n var listenerList = mediaQueryList.map(function (_, index) {\n var listener = function listener(mqlEvent) {\n var queryIndex = mediaQueryList.findIndex(function (mediaQuery) {\n return mediaQuery.media === mqlEvent.media;\n }); // As the event listener is on the media query list, any time the\n // listener is called, we know there is a change. There's no need\n // to compare the previous matches with current. Using\n // setMatches(matches => {...}) provides access to the current matches\n // state. Trying to access matches outside the setMatches function\n // would provide data from the the time of instantiation (stale).\n\n setMatches(function (matches) {\n var currentMatches = matches.map(function (x) {\n return x;\n });\n currentMatches[queryIndex] = mqlEvent.matches;\n return currentMatches;\n });\n }; // Listening to the 'change' event on the Media Query List Object\n // is more performant as the callback is only invoked when a specified\n // media query is matched. Using addEventListener on the window object\n // to listen for the resize event will call the callback on every\n // viewport resize.\n\n\n if (typeof mediaQueryList[index].addEventListener === \"function\") {\n mediaQueryList[index].addEventListener(\"change\", listener);\n } else {\n mediaQueryList[index].addListener(listener);\n }\n\n return listener;\n });\n return function () {\n mediaQueryList.forEach(function (_, index) {\n if (typeof mediaQueryList[index].removeEventListener === \"function\") {\n mediaQueryList[index].removeEventListener(\"change\", listenerList[index]);\n } else {\n mediaQueryList[index].removeListener(listenerList[index]);\n }\n });\n };\n }, []);\n return matches;\n}\n\n/**\n * Visibility\n *\n * React component to control the visibility of its\n * children based on the current breakpoint\n */\nvar Visibility = function Visibility(props) {\n var breakpoint = props.breakpoint,\n hide = props.hide,\n children = props.children;\n\n var _useMediaQuery = useMediaQuery(breakpoint),\n show = _useMediaQuery[0];\n\n var isVisible = hide ? !show : show;\n var rendered = isVisible ? children : null;\n return rendered;\n};\n\nvar Hide = function Hide(props) {\n var children = props.children;\n var query = useQuery(props);\n return /*#__PURE__*/React.createElement(Visibility, {\n breakpoint: query,\n hide: true\n }, children);\n};\n\nif (__DEV__) {\n Hide.displayName = \"Hide\";\n}\n\nvar Show = function Show(props) {\n var children = props.children;\n var query = useQuery(props);\n return /*#__PURE__*/React.createElement(Visibility, {\n breakpoint: query\n }, children);\n};\n\nif (__DEV__) {\n Show.displayName = \"Show\";\n}\n\nvar getBreakpoint = function getBreakpoint(theme, value) {\n return memoizedGet(theme, \"breakpoints.\" + value, value);\n};\n\nfunction useQuery(props) {\n var _props$breakpoint = props.breakpoint,\n breakpoint = _props$breakpoint === void 0 ? \"\" : _props$breakpoint,\n below = props.below,\n above = props.above;\n var theme = useTheme();\n var bpBelow = getBreakpoint(theme, below);\n var bpAbove = getBreakpoint(theme, above);\n var query = breakpoint;\n\n if (bpBelow) {\n query = \"(max-width: \" + bpBelow + \")\";\n } else if (bpAbove) {\n query = \"(min-width: \" + bpAbove + \")\";\n }\n\n return query;\n}\n\n/**\n * React hook used to get the user's animation preference.\n */\n\nfunction usePrefersReducedMotion() {\n var _useMediaQuery = useMediaQuery(\"(prefers-reduced-motion: reduce)\"),\n prefersReducedMotion = _useMediaQuery[0];\n\n return prefersReducedMotion;\n}\n/**\n * React hook for getting the user's color mode preference.\n */\n\nfunction useColorModePreference() {\n var _useMediaQuery2 = useMediaQuery([\"(prefers-color-scheme: light)\", \"(prefers-color-scheme: dark)\"]),\n isLight = _useMediaQuery2[0],\n isDark = _useMediaQuery2[1];\n\n if (isLight) return \"light\";\n if (isDark) return \"dark\";\n return undefined;\n}\n\n/**\n * React hook used to get the current responsive media breakpoint.\n *\n * @param [defaultBreakpoint=\"base\"] default breakpoint name\n * (in non-window environments like SSR)\n *\n * For SSR, you can use a package like [is-mobile](https://github.com/kaimallea/isMobile)\n * to get the default breakpoint value from the user-agent\n */\n\nfunction useBreakpoint(defaultBreakpoint // default value ensures SSR+CSR consistency\n) {\n if (defaultBreakpoint === void 0) {\n defaultBreakpoint = \"base\";\n }\n\n var _useTheme = useTheme(),\n __breakpoints = _useTheme.__breakpoints;\n\n var env = useEnvironment();\n var queries = React__default.useMemo(function () {\n var _breakpoints$details;\n\n return (_breakpoints$details = __breakpoints == null ? void 0 : __breakpoints.details.map(function (_ref) {\n var minMaxQuery = _ref.minMaxQuery,\n breakpoint = _ref.breakpoint;\n return {\n breakpoint: breakpoint,\n query: minMaxQuery.replace(\"@media screen and \", \"\")\n };\n })) != null ? _breakpoints$details : [];\n }, [__breakpoints]);\n\n var _React$useState = React__default.useState(function () {\n if (defaultBreakpoint) {\n // use default breakpoint to ensure render consistency in SSR + CSR environments\n // => first render on the client has to match the render on the server\n var fallbackBreakpointDetail = queries.find(function (_ref2) {\n var breakpoint = _ref2.breakpoint;\n return breakpoint === defaultBreakpoint;\n });\n\n if (fallbackBreakpointDetail) {\n return fallbackBreakpointDetail.breakpoint;\n }\n }\n\n if (env.window.matchMedia) {\n // set correct breakpoint on first render if no default breakpoint was provided\n var matchingBreakpointDetail = queries.find(function (_ref3) {\n var query = _ref3.query;\n return env.window.matchMedia(query).matches;\n });\n\n if (matchingBreakpointDetail) {\n return matchingBreakpointDetail.breakpoint;\n }\n }\n\n return undefined;\n }),\n currentBreakpoint = _React$useState[0],\n setCurrentBreakpoint = _React$useState[1];\n\n React__default.useEffect(function () {\n var allUnregisterFns = queries.map(function (_ref4) {\n var breakpoint = _ref4.breakpoint,\n query = _ref4.query;\n var mediaQueryList = env.window.matchMedia(query);\n\n if (mediaQueryList.matches) {\n setCurrentBreakpoint(breakpoint);\n }\n\n var handleChange = function handleChange(ev) {\n if (ev.matches) {\n setCurrentBreakpoint(breakpoint);\n }\n }; // add media query listener\n\n\n if (typeof mediaQueryList.addEventListener === \"function\") {\n mediaQueryList.addEventListener(\"change\", handleChange);\n } else {\n mediaQueryList.addListener(handleChange);\n } // return unregister fn\n\n\n return function () {\n if (typeof mediaQueryList.removeEventListener === \"function\") {\n mediaQueryList.removeEventListener(\"change\", handleChange);\n } else {\n mediaQueryList.removeListener(handleChange);\n }\n };\n });\n return function () {\n allUnregisterFns.forEach(function (unregister) {\n return unregister();\n });\n };\n }, [queries, __breakpoints, env.window]);\n return currentBreakpoint;\n}\n\nfunction getClosestValue(values, breakpoint, breakpoints$1) {\n if (breakpoints$1 === void 0) {\n breakpoints$1 = breakpoints;\n }\n\n var index = Object.keys(values).indexOf(breakpoint);\n\n if (index !== -1) {\n return values[breakpoint];\n }\n\n var stopIndex = breakpoints$1.indexOf(breakpoint);\n\n while (stopIndex >= 0) {\n var key = breakpoints$1[stopIndex];\n\n if (values[key] != null) {\n index = stopIndex;\n break;\n }\n\n stopIndex -= 1;\n }\n\n if (index !== -1) {\n var _key = breakpoints$1[index];\n return values[_key];\n }\n\n return undefined;\n}\n\n/**\n * React hook for getting the value for the current breakpoint from the\n * provided responsive values object.\n *\n * @param values\n * @param [defaultBreakpoint] default breakpoint name\n * (in non-window environments like SSR)\n *\n * For SSR, you can use a package like [is-mobile](https://github.com/kaimallea/isMobile)\n * to get the default breakpoint value from the user-agent\n *\n * @example\n * const width = useBreakpointValue({ base: '150px', md: '250px' })\n */\n\nfunction useBreakpointValue(values, defaultBreakpoint) {\n var _theme$__breakpoints;\n\n var breakpoint = useBreakpoint(defaultBreakpoint);\n var theme = useTheme();\n if (!breakpoint) return undefined;\n /**\n * Get the sorted breakpoint keys from the provided breakpoints\n */\n\n var breakpoints = Array.from(((_theme$__breakpoints = theme.__breakpoints) == null ? void 0 : _theme$__breakpoints.keys) || []);\n var obj = isArray(values) ? fromEntries(Object.entries(arrayToObjectNotation(values, breakpoints)).map(function (_ref) {\n var key = _ref[0],\n value = _ref[1];\n return [key, value];\n })) : values;\n return getClosestValue(obj, breakpoint, breakpoints);\n}\n\nexport { Hide, Show, useBreakpoint, useBreakpointValue, useColorModePreference, useMediaQuery, usePrefersReducedMotion, useQuery };\n","import { forwardRef, chakra, useMultiStyleConfig, omitThemingProps, layoutPropNames } from '@chakra-ui/system';\nimport { isInputEvent, cx, __DEV__, warn, dataAttr, callAllHandlers, ariaAttr, callAll, split } from '@chakra-ui/utils';\nimport * as React from 'react';\nimport { useState, useCallback } from 'react';\nimport { mergeRefs, createContext } from '@chakra-ui/react-utils';\nimport { useControllableProp, useId, useBoolean } from '@chakra-ui/hooks';\nimport { useFormControlContext } from '@chakra-ui/form-control';\nimport { visuallyHiddenStyle } from '@chakra-ui/visually-hidden';\n\nfunction _objectWithoutPropertiesLoose(source, excluded) {\n if (source == null) return {};\n var target = {};\n var sourceKeys = Object.keys(source);\n var key, i;\n\n for (i = 0; i < sourceKeys.length; i++) {\n key = sourceKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n target[key] = source[key];\n }\n\n return target;\n}\n\nfunction _extends() {\n _extends = Object.assign || function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n\n return target;\n };\n\n return _extends.apply(this, arguments);\n}\n\nvar _excluded$3 = [\"onChange\", \"value\", \"defaultValue\", \"name\", \"isDisabled\", \"isFocusable\", \"isNative\"];\n\n/**\n * React hook to manage a group of radio inputs\n */\nfunction useRadioGroup(props) {\n if (props === void 0) {\n props = {};\n }\n\n var _props = props,\n onChangeProp = _props.onChange,\n valueProp = _props.value,\n defaultValue = _props.defaultValue,\n nameProp = _props.name,\n isDisabled = _props.isDisabled,\n isFocusable = _props.isFocusable,\n isNative = _props.isNative,\n htmlProps = _objectWithoutPropertiesLoose(_props, _excluded$3);\n\n var _React$useState = React.useState(defaultValue || \"\"),\n valueState = _React$useState[0],\n setValue = _React$useState[1];\n\n var _useControllableProp = useControllableProp(valueProp, valueState),\n isControlled = _useControllableProp[0],\n value = _useControllableProp[1];\n\n var ref = React.useRef(null);\n var focus = React.useCallback(function () {\n var rootNode = ref.current;\n if (!rootNode) return;\n var query = \"input:not(:disabled):checked\";\n var firstEnabledAndCheckedInput = rootNode.querySelector(query);\n\n if (firstEnabledAndCheckedInput) {\n firstEnabledAndCheckedInput.focus();\n return;\n }\n\n query = \"input:not(:disabled)\";\n var firstEnabledInput = rootNode.querySelector(query);\n firstEnabledInput == null ? void 0 : firstEnabledInput.focus();\n }, []);\n /**\n * All radio options must use the same name\n */\n\n var fallbackName = useId(undefined, \"radio\");\n var name = nameProp || fallbackName;\n var onChange = React.useCallback(function (eventOrValue) {\n var nextValue = isInputEvent(eventOrValue) ? eventOrValue.target.value : eventOrValue;\n\n if (!isControlled) {\n setValue(nextValue);\n }\n\n onChangeProp == null ? void 0 : onChangeProp(String(nextValue));\n }, [onChangeProp, isControlled]);\n var getRootProps = React.useCallback(function (props, forwardedRef) {\n if (props === void 0) {\n props = {};\n }\n\n if (forwardedRef === void 0) {\n forwardedRef = null;\n }\n\n return _extends({}, props, {\n ref: mergeRefs(forwardedRef, ref),\n role: \"radiogroup\"\n });\n }, []);\n var getRadioProps = React.useCallback(function (props, ref) {\n var _extends2;\n\n if (props === void 0) {\n props = {};\n }\n\n if (ref === void 0) {\n ref = null;\n }\n\n var checkedKey = isNative ? \"checked\" : \"isChecked\";\n return _extends({}, props, (_extends2 = {\n ref: ref,\n name: name\n }, _extends2[checkedKey] = value != null ? props.value === value : undefined, _extends2.onChange = onChange, _extends2[\"data-radiogroup\"] = true, _extends2));\n }, [isNative, name, onChange, value]);\n return {\n getRootProps: getRootProps,\n getRadioProps: getRadioProps,\n name: name,\n ref: ref,\n focus: focus,\n setValue: setValue,\n value: value,\n onChange: onChange,\n isDisabled: isDisabled,\n isFocusable: isFocusable,\n htmlProps: htmlProps\n };\n}\n\nvar _excluded$2 = [\"colorScheme\", \"size\", \"variant\", \"children\", \"className\", \"isDisabled\", \"isFocusable\"];\n\nvar _createContext = createContext({\n name: \"RadioGroupContext\",\n strict: false\n}),\n RadioGroupProvider = _createContext[0],\n useRadioGroupContext = _createContext[1];\n\n/**\n * Used for multiple radios which are bound in one group,\n * and it indicates which option is selected.\n *\n * @see Docs https://chakra-ui.com/radio\n */\nvar RadioGroup = /*#__PURE__*/forwardRef(function (props, ref) {\n var colorScheme = props.colorScheme,\n size = props.size,\n variant = props.variant,\n children = props.children,\n className = props.className,\n isDisabled = props.isDisabled,\n isFocusable = props.isFocusable,\n rest = _objectWithoutPropertiesLoose(props, _excluded$2);\n\n var _useRadioGroup = useRadioGroup(rest),\n value = _useRadioGroup.value,\n onChange = _useRadioGroup.onChange,\n getRootProps = _useRadioGroup.getRootProps,\n name = _useRadioGroup.name,\n htmlProps = _useRadioGroup.htmlProps;\n\n var group = React.useMemo(function () {\n return {\n name: name,\n size: size,\n onChange: onChange,\n colorScheme: colorScheme,\n value: value,\n variant: variant,\n isDisabled: isDisabled,\n isFocusable: isFocusable\n };\n }, [name, size, onChange, colorScheme, value, variant, isDisabled, isFocusable]);\n var groupProps = getRootProps(htmlProps, ref);\n\n var _className = cx(\"chakra-radio-group\", className);\n\n return /*#__PURE__*/React.createElement(RadioGroupProvider, {\n value: group\n }, /*#__PURE__*/React.createElement(chakra.div, _extends({}, groupProps, {\n className: _className\n }), children));\n});\n\nif (__DEV__) {\n RadioGroup.displayName = \"RadioGroup\";\n}\n\nvar _excluded$1 = [\"defaultIsChecked\", \"defaultChecked\", \"isChecked\", \"isFocusable\", \"isDisabled\", \"isReadOnly\", \"isRequired\", \"onChange\", \"isInvalid\", \"name\", \"value\", \"id\", \"data-radiogroup\", \"aria-describedby\"];\n/**\n * @todo use the `useClickable` hook here\n * to manage the isFocusable & isDisabled props\n */\n\nfunction useRadio(props) {\n if (props === void 0) {\n props = {};\n }\n\n var _props = props,\n defaultIsChecked = _props.defaultIsChecked,\n _props$defaultChecked = _props.defaultChecked,\n defaultChecked = _props$defaultChecked === void 0 ? defaultIsChecked : _props$defaultChecked,\n isCheckedProp = _props.isChecked,\n isFocusable = _props.isFocusable,\n isDisabledProp = _props.isDisabled,\n isReadOnlyProp = _props.isReadOnly,\n isRequiredProp = _props.isRequired,\n onChange = _props.onChange,\n isInvalidProp = _props.isInvalid,\n name = _props.name,\n value = _props.value,\n idProp = _props.id,\n dataRadioGroup = _props[\"data-radiogroup\"],\n ariaDescribedBy = _props[\"aria-describedby\"],\n htmlProps = _objectWithoutPropertiesLoose(_props, _excluded$1);\n\n var uuid = useId(undefined, \"radio\");\n var formControl = useFormControlContext();\n var group = useRadioGroupContext();\n var isWithinRadioGroup = !!group || !!dataRadioGroup;\n var isWithinFormControl = !!formControl;\n var id = isWithinFormControl && !isWithinRadioGroup ? formControl.id : uuid;\n id = idProp != null ? idProp : id;\n var isDisabled = isDisabledProp != null ? isDisabledProp : formControl == null ? void 0 : formControl.isDisabled;\n var isReadOnly = isReadOnlyProp != null ? isReadOnlyProp : formControl == null ? void 0 : formControl.isReadOnly;\n var isRequired = isRequiredProp != null ? isRequiredProp : formControl == null ? void 0 : formControl.isRequired;\n var isInvalid = isInvalidProp != null ? isInvalidProp : formControl == null ? void 0 : formControl.isInvalid;\n\n var _useBoolean = useBoolean(),\n isFocused = _useBoolean[0],\n setFocused = _useBoolean[1];\n\n var _useBoolean2 = useBoolean(),\n isHovered = _useBoolean2[0],\n setHovering = _useBoolean2[1];\n\n var _useBoolean3 = useBoolean(),\n isActive = _useBoolean3[0],\n setActive = _useBoolean3[1];\n\n var _useState = useState(Boolean(defaultChecked)),\n isCheckedState = _useState[0],\n setChecked = _useState[1];\n\n var _useControllableProp = useControllableProp(isCheckedProp, isCheckedState),\n isControlled = _useControllableProp[0],\n isChecked = _useControllableProp[1];\n\n warn({\n condition: !!defaultIsChecked,\n message: 'The \"defaultIsChecked\" prop has been deprecated and will be removed in a future version. ' + 'Please use the \"defaultChecked\" prop instead, which mirrors default React checkbox behavior.'\n });\n var handleChange = useCallback(function (event) {\n if (isReadOnly || isDisabled) {\n event.preventDefault();\n return;\n }\n\n if (!isControlled) {\n setChecked(event.target.checked);\n }\n\n onChange == null ? void 0 : onChange(event);\n }, [isControlled, isDisabled, isReadOnly, onChange]);\n var onKeyDown = useCallback(function (event) {\n if (event.key === \" \") {\n setActive.on();\n }\n }, [setActive]);\n var onKeyUp = useCallback(function (event) {\n if (event.key === \" \") {\n setActive.off();\n }\n }, [setActive]);\n var getRadioProps = useCallback(function (props, ref) {\n if (props === void 0) {\n props = {};\n }\n\n if (ref === void 0) {\n ref = null;\n }\n\n return _extends({}, props, {\n ref: ref,\n \"data-active\": dataAttr(isActive),\n \"data-hover\": dataAttr(isHovered),\n \"data-disabled\": dataAttr(isDisabled),\n \"data-invalid\": dataAttr(isInvalid),\n \"data-checked\": dataAttr(isChecked),\n \"data-focus\": dataAttr(isFocused),\n \"data-readonly\": dataAttr(isReadOnly),\n \"aria-hidden\": true,\n onMouseDown: callAllHandlers(props.onMouseDown, setActive.on),\n onMouseUp: callAllHandlers(props.onMouseUp, setActive.off),\n onMouseEnter: callAllHandlers(props.onMouseEnter, setHovering.on),\n onMouseLeave: callAllHandlers(props.onMouseLeave, setHovering.off)\n });\n }, [isActive, isHovered, isDisabled, isInvalid, isChecked, isFocused, isReadOnly, setActive.on, setActive.off, setHovering.on, setHovering.off]);\n\n var _ref = formControl != null ? formControl : {},\n onFocus = _ref.onFocus,\n onBlur = _ref.onBlur;\n\n var getInputProps = useCallback(function (props, ref) {\n if (props === void 0) {\n props = {};\n }\n\n if (ref === void 0) {\n ref = null;\n }\n\n var trulyDisabled = isDisabled && !isFocusable;\n return _extends({}, props, {\n id: id,\n ref: ref,\n type: \"radio\",\n name: name,\n value: value,\n onChange: callAllHandlers(props.onChange, handleChange),\n onBlur: callAllHandlers(onBlur, props.onBlur, setFocused.off),\n onFocus: callAllHandlers(onFocus, props.onFocus, setFocused.on),\n onKeyDown: callAllHandlers(props.onKeyDown, onKeyDown),\n onKeyUp: callAllHandlers(props.onKeyUp, onKeyUp),\n checked: isChecked,\n disabled: trulyDisabled,\n readOnly: isReadOnly,\n required: isRequired,\n \"aria-invalid\": ariaAttr(isInvalid),\n \"aria-disabled\": ariaAttr(trulyDisabled),\n \"aria-required\": ariaAttr(isRequired),\n \"data-readonly\": dataAttr(isReadOnly),\n \"aria-describedby\": ariaDescribedBy,\n style: visuallyHiddenStyle\n });\n }, [isDisabled, isFocusable, id, name, value, handleChange, onBlur, setFocused, onFocus, onKeyDown, onKeyUp, isChecked, isReadOnly, isRequired, isInvalid, ariaDescribedBy]);\n\n var getLabelProps = function getLabelProps(props, ref) {\n if (props === void 0) {\n props = {};\n }\n\n if (ref === void 0) {\n ref = null;\n }\n\n return _extends({}, props, {\n ref: ref,\n onMouseDown: callAllHandlers(props.onMouseDown, stop),\n onTouchStart: callAllHandlers(props.onTouchStart, stop),\n \"data-disabled\": dataAttr(isDisabled),\n \"data-checked\": dataAttr(isChecked),\n \"data-invalid\": dataAttr(isInvalid)\n });\n };\n\n var getRootProps = function getRootProps(props, ref) {\n if (ref === void 0) {\n ref = null;\n }\n\n return _extends({}, props, {\n ref: ref,\n \"data-disabled\": dataAttr(isDisabled),\n \"data-checked\": dataAttr(isChecked),\n \"data-invalid\": dataAttr(isInvalid)\n });\n };\n\n var state = {\n isInvalid: isInvalid,\n isFocused: isFocused,\n isChecked: isChecked,\n isActive: isActive,\n isHovered: isHovered,\n isDisabled: isDisabled,\n isReadOnly: isReadOnly,\n isRequired: isRequired\n };\n return {\n state: state,\n // the function is renamed to getRadioProps to make the code more consistent. It is renamed towards outside because otherwise this would produce a breaking change\n getCheckboxProps: getRadioProps,\n getInputProps: getInputProps,\n getLabelProps: getLabelProps,\n getRootProps: getRootProps,\n htmlProps: htmlProps\n };\n}\n/**\n * Prevent `onBlur` being fired when the radio label is touched\n */\n\nfunction stop(event) {\n event.preventDefault();\n event.stopPropagation();\n}\n\nvar _excluded = [\"spacing\", \"children\", \"isFullWidth\", \"isDisabled\", \"isFocusable\", \"inputProps\"];\n\n/**\n * Radio component is used in forms when a user needs to select a single value from\n * several options.\n *\n * @see Docs https://chakra-ui.com/radio\n */\nvar Radio = /*#__PURE__*/forwardRef(function (props, ref) {\n var _props$name;\n\n var group = useRadioGroupContext();\n var onChangeProp = props.onChange,\n valueProp = props.value;\n var styles = useMultiStyleConfig(\"Radio\", _extends({}, group, props));\n var ownProps = omitThemingProps(props);\n\n var _ownProps$spacing = ownProps.spacing,\n spacing = _ownProps$spacing === void 0 ? \"0.5rem\" : _ownProps$spacing,\n children = ownProps.children,\n isFullWidth = ownProps.isFullWidth,\n _ownProps$isDisabled = ownProps.isDisabled,\n isDisabled = _ownProps$isDisabled === void 0 ? group == null ? void 0 : group.isDisabled : _ownProps$isDisabled,\n _ownProps$isFocusable = ownProps.isFocusable,\n isFocusable = _ownProps$isFocusable === void 0 ? group == null ? void 0 : group.isFocusable : _ownProps$isFocusable,\n htmlInputProps = ownProps.inputProps,\n rest = _objectWithoutPropertiesLoose(ownProps, _excluded);\n\n var isChecked = props.isChecked;\n\n if ((group == null ? void 0 : group.value) != null && valueProp != null) {\n isChecked = group.value === valueProp;\n }\n\n var onChange = onChangeProp;\n\n if (group != null && group.onChange && valueProp != null) {\n onChange = callAll(group.onChange, onChangeProp);\n }\n\n var name = (_props$name = props == null ? void 0 : props.name) != null ? _props$name : group == null ? void 0 : group.name;\n\n var _useRadio = useRadio(_extends({}, rest, {\n isChecked: isChecked,\n isFocusable: isFocusable,\n isDisabled: isDisabled,\n onChange: onChange,\n name: name\n })),\n getInputProps = _useRadio.getInputProps,\n getCheckboxProps = _useRadio.getCheckboxProps,\n getLabelProps = _useRadio.getLabelProps,\n getRootProps = _useRadio.getRootProps,\n htmlProps = _useRadio.htmlProps;\n\n var _split = split(htmlProps, layoutPropNames),\n layoutProps = _split[0],\n otherProps = _split[1];\n\n var checkboxProps = getCheckboxProps(otherProps);\n var inputProps = getInputProps(htmlInputProps, ref);\n var labelProps = getLabelProps();\n var rootProps = Object.assign({}, layoutProps, getRootProps());\n\n var rootStyles = _extends({\n width: isFullWidth ? \"full\" : undefined,\n display: \"inline-flex\",\n alignItems: \"center\",\n verticalAlign: \"top\",\n cursor: \"pointer\"\n }, styles.container);\n\n var checkboxStyles = _extends({\n display: \"inline-flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n flexShrink: 0\n }, styles.control);\n\n var labelStyles = _extends({\n userSelect: \"none\",\n marginStart: spacing\n }, styles.label);\n\n return /*#__PURE__*/React.createElement(chakra.label, _extends({\n className: \"chakra-radio\"\n }, rootProps, {\n __css: rootStyles\n }), /*#__PURE__*/React.createElement(\"input\", _extends({\n className: \"chakra-radio__input\"\n }, inputProps)), /*#__PURE__*/React.createElement(chakra.span, _extends({\n className: \"chakra-radio__control\"\n }, checkboxProps, {\n __css: checkboxStyles\n })), children && /*#__PURE__*/React.createElement(chakra.span, _extends({\n className: \"chakra-radio__label\"\n }, labelProps, {\n __css: labelStyles\n }), children));\n});\n\nif (__DEV__) {\n Radio.displayName = \"Radio\";\n}\n\nexport { Radio, RadioGroup, useRadio, useRadioGroup, useRadioGroupContext };\n"],"names":["_extends","Object","assign","target","i","arguments","length","source","key","prototype","hasOwnProperty","call","apply","this","_objectWithoutPropertiesLoose","excluded","sourceKeys","keys","indexOf","_createContext","createContext","name","errorMessage","PopoverProvider","usePopoverContext","mergeVariants","variants","mergeWith","enter","visibility","exit","transitionEnd","Section","motion","chakra","section","PopoverTransition","React__default","props","ref","isOpen","initial","animate","defaultProps","opacity","scale","transition","duration","ease","_excluded$1","TRIGGER","_excluded","_excluded2","Popover","styles","useMultiStyleConfig","_omitThemingProps","omitThemingProps","children","context","_props","_props$closeOnBlur","closeOnBlur","_props$closeOnEsc","closeOnEsc","initialFocusRef","id","_props$returnFocusOnC","returnFocusOnClose","_props$autoFocus","autoFocus","arrowSize","arrowShadowColor","_props$trigger","trigger","_props$openDelay","openDelay","_props$closeDelay","closeDelay","isLazy","_props$lazyBehavior","lazyBehavior","computePositionOnMount","popperProps","_useDisclosure","useDisclosure","onClose","onOpen","onToggle","anchorRef","useRef","triggerRef","popoverRef","isHoveringRef","hasBeenOpened","current","_useState","useState","hasHeader","setHasHeader","_useState2","hasBody","setHasBody","_useIds","useIds","triggerId","popoverId","headerId","bodyId","_usePopper","usePopper","enabled","referenceRef","getArrowProps","getPopperProps","getArrowInnerProps","forceUpdate","animated","useAnimationState","useFocusOnPointerDown","useFocusOnHide","focusRef","visible","shouldFocus","useFocusOnShow","shouldRenderChildren","determineLazyBehavior","hasBeenSelected","isSelected","present","getPopoverProps","useCallback","_ref","_extends2","popoverProps","style","transformOrigin","popperCSSVars","varRef","px","undefined","mergeRefs","tabIndex","role","onKeyDown","callAllHandlers","event","onBlur","relatedTarget","getRelatedTarget","targetIsPopover","contains","targetIsTrigger","onMouseEnter","onMouseLeave","setTimeout","getPopoverPositionerProps","forwardedRef","getAnchorProps","openTimeout","closeTimeout","maybeReferenceRef","node","getTriggerProps","triggerProps","onClick","onFocus","isValidBlur","window","clearTimeout","useEffect","getHeaderProps","getBodyProps","onAnimationComplete","onComplete","usePopover","direction","useTheme","React","value","StylesProvider","runIfFn","__DEV__","displayName","PopoverTrigger","child","only","PopoverContent","forwardRef","rootProps","contentProps","_usePopoverContext3","useStyles","contentStyles","position","display","flexDirection","content","div","__css","popper","className","callAll","cx","PopoverHeader","header","PopoverBody","body","PopoverArrow","bg","bgColor","backgroundColor","_usePopoverContext7","arrowBg","arrow","object","TypeError","property","MILLISECONDS_IN_MINUTE","MINUTES_IN_DAY","MINUTES_IN_MONTH","MINUTES_IN_YEAR","formatDistanceStrict","dirtyDate","dirtyBaseDate","options","_options$locale","_options$roundingMeth","requiredArgs","defaultOptions","getDefaultOptions","locale","defaultLocale","formatDistance","RangeError","comparison","dirtyDateLeft","dirtyDateRight","dateLeft","toDate","dateRight","diff","getTime","compareAsc","isNaN","localizeOptions","addSuffix","Boolean","roundingMethodFn","roundingMethod","String","Math","floor","ceil","round","unit","milliseconds","minutes","dstNormalizedMinutes","getTimezoneOffsetInMilliseconds","defaultUnit","seconds","roundedMinutes","hours","days","months","years","formatDistanceToNowStrict","Date","now","isBrowser","useBreakpointValue","values","defaultBreakpoint","_theme$__breakpoints","breakpoint","__breakpoints","env","useEnvironment","queries","_breakpoints$details","details","map","minMaxQuery","query","replace","_React$useState","fallbackBreakpointDetail","find","_ref2","matchMedia","matchingBreakpointDetail","_ref3","matches","currentBreakpoint","setCurrentBreakpoint","allUnregisterFns","_ref4","mediaQueryList","handleChange","ev","addEventListener","addListener","removeEventListener","removeListener","forEach","unregister","useBreakpoint","theme","breakpoints","Array","from","breakpoints$1","index","stopIndex","getClosestValue","isArray","fromEntries","entries","arrayToObjectNotation","_excluded$3","_excluded$2","strict","RadioGroupProvider","useRadioGroupContext","RadioGroup","colorScheme","size","variant","isDisabled","isFocusable","_useRadioGroup","onChangeProp","onChange","valueProp","defaultValue","nameProp","isNative","htmlProps","valueState","setValue","_useControllableProp","useControllableProp","isControlled","focus","rootNode","firstEnabledAndCheckedInput","querySelector","firstEnabledInput","fallbackName","useId","eventOrValue","nextValue","isInputEvent","getRootProps","getRadioProps","useRadioGroup","group","groupProps","_className","stop","preventDefault","stopPropagation","Radio","_props$name","ownProps","_ownProps$spacing","spacing","isFullWidth","_ownProps$isDisabled","_ownProps$isFocusable","htmlInputProps","inputProps","rest","isChecked","_useRadio","defaultIsChecked","_props$defaultChecked","defaultChecked","isCheckedProp","isDisabledProp","isReadOnlyProp","isReadOnly","isRequiredProp","isRequired","isInvalidProp","isInvalid","idProp","dataRadioGroup","ariaDescribedBy","uuid","formControl","useFormControlContext","_useBoolean","useBoolean","isFocused","setFocused","_useBoolean2","isHovered","setHovering","_useBoolean3","isActive","setActive","isCheckedState","setChecked","warn","condition","message","checked","on","onKeyUp","off","dataAttr","onMouseDown","onMouseUp","getInputProps","trulyDisabled","type","disabled","readOnly","required","ariaAttr","visuallyHiddenStyle","state","getCheckboxProps","getLabelProps","onTouchStart","useRadio","_split","split","layoutPropNames","layoutProps","checkboxProps","labelProps","rootStyles","width","alignItems","verticalAlign","cursor","container","checkboxStyles","justifyContent","flexShrink","control","labelStyles","userSelect","marginStart","label","span"],"ignoreList":[],"sourceRoot":""}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkconstruct_hub_webapp=self.webpackChunkconstruct_hub_webapp||[]).push([[453],{46453:(e,t,n)=>{n.d(t,{getCLS:()=>v,getFCP:()=>S,getFID:()=>k,getLCP:()=>F,getTTFB:()=>C});var i,a,r,o,c=function(e,t){return{name:e,value:void 0===t?-1:t,delta:0,entries:[],id:"v1-".concat(Date.now(),"-").concat(Math.floor(8999999999999*Math.random())+1e12)}},u=function(e,t){try{if(PerformanceObserver.supportedEntryTypes.includes(e)){if("first-input"===e&&!("PerformanceEventTiming"in self))return;var n=new PerformanceObserver(function(e){return e.getEntries().map(t)});return n.observe({type:e,buffered:!0}),n}}catch(e){}},s=function(e,t){var n=function n(i){"pagehide"!==i.type&&"hidden"!==document.visibilityState||(e(i),t&&(removeEventListener("visibilitychange",n,!0),removeEventListener("pagehide",n,!0)))};addEventListener("visibilitychange",n,!0),addEventListener("pagehide",n,!0)},f=function(e){addEventListener("pageshow",function(t){t.persisted&&e(t)},!0)},p="function"==typeof WeakSet?new WeakSet:new Set,m=function(e,t,n){var i;return function(){t.value>=0&&(n||p.has(t)||"hidden"===document.visibilityState)&&(t.delta=t.value-(i||0),(t.delta||void 0===i)&&(i=t.value,e(t)))}},v=function(e,t){var n,i=c("CLS",0),a=function(e){e.hadRecentInput||(i.value+=e.value,i.entries.push(e),n())},r=u("layout-shift",a);r&&(n=m(e,i,t),s(function(){r.takeRecords().map(a),n()}),f(function(){i=c("CLS",0),n=m(e,i,t)}))},d=-1,l=function(){return"hidden"===document.visibilityState?0:1/0},h=function(){s(function(e){var t=e.timeStamp;d=t},!0)},g=function(){return d<0&&(d=l(),h(),f(function(){setTimeout(function(){d=l(),h()},0)})),{get timeStamp(){return d}}},S=function(e,t){var n,i=g(),a=c("FCP"),r=function(e){"first-contentful-paint"===e.name&&(s&&s.disconnect(),e.startTime<i.timeStamp&&(a.value=e.startTime,a.entries.push(e),p.add(a),n()))},o=performance.getEntriesByName("first-contentful-paint")[0],s=o?null:u("paint",r);(o||s)&&(n=m(e,a,t),o&&r(o),f(function(i){a=c("FCP"),n=m(e,a,t),requestAnimationFrame(function(){requestAnimationFrame(function(){a.value=performance.now()-i.timeStamp,p.add(a),n()})})}))},y={passive:!0,capture:!0},w=new Date,E=function(e,t){i||(i=t,a=e,r=new Date,T(removeEventListener),L())},L=function(){if(a>=0&&a<r-w){var e={entryType:"first-input",name:i.type,target:i.target,cancelable:i.cancelable,startTime:i.timeStamp,processingStart:i.timeStamp+a};o.forEach(function(t){t(e)}),o=[]}},b=function(e){if(e.cancelable){var t=(e.timeStamp>1e12?new Date:performance.now())-e.timeStamp;"pointerdown"==e.type?function(e,t){var n=function(){E(e,t),a()},i=function(){a()},a=function(){removeEventListener("pointerup",n,y),removeEventListener("pointercancel",i,y)};addEventListener("pointerup",n,y),addEventListener("pointercancel",i,y)}(t,e):E(t,e)}},T=function(e){["mousedown","keydown","touchstart","pointerdown"].forEach(function(t){return e(t,b,y)})},k=function(e,t){var n,r=g(),v=c("FID"),d=function(e){e.startTime<r.timeStamp&&(v.value=e.processingStart-e.startTime,v.entries.push(e),p.add(v),n())},l=u("first-input",d);n=m(e,v,t),l&&s(function(){l.takeRecords().map(d),l.disconnect()},!0),l&&f(function(){var r;v=c("FID"),n=m(e,v,t),o=[],a=-1,i=null,T(addEventListener),r=d,o.push(r),L()})},F=function(e,t){var n,i=g(),a=c("LCP"),r=function(e){var t=e.startTime;t<i.timeStamp&&(a.value=t,a.entries.push(e)),n()},o=u("largest-contentful-paint",r);if(o){n=m(e,a,t);var v=function(){p.has(a)||(o.takeRecords().map(r),o.disconnect(),p.add(a),n())};["keydown","click"].forEach(function(e){addEventListener(e,v,{once:!0,capture:!0})}),s(v,!0),f(function(i){a=c("LCP"),n=m(e,a,t),requestAnimationFrame(function(){requestAnimationFrame(function(){a.value=performance.now()-i.timeStamp,p.add(a),n()})})})}},C=function(e){var t,n=c("TTFB");t=function(){try{var t=performance.getEntriesByType("navigation")[0]||function(){var e=performance.timing,t={entryType:"navigation",startTime:0};for(var n in e)"navigationStart"!==n&&"toJSON"!==n&&(t[n]=Math.max(e[n]-e.navigationStart,0));return t}();if(n.value=n.delta=t.responseStart,n.value<0)return;n.entries=[t],e(n)}catch(e){}},"complete"===document.readyState?setTimeout(t,0):addEventListener("pageshow",t)}}}]);
|
|
2
|
-
//# sourceMappingURL=453.098e6dff.chunk.js.map
|