construct-hub 0.3.56 → 0.3.60

Sign up to get free protection for your applications and to get access to all the features.
Files changed (44) hide show
  1. package/.jsii +2 -2
  2. package/lib/construct-hub.js +1 -1
  3. package/lib/package-sources/code-artifact.js +1 -1
  4. package/lib/package-sources/npmjs.js +1 -1
  5. package/lib/package-tag/index.js +2 -2
  6. package/lib/spdx-license.js +1 -1
  7. package/package.json +3 -3
  8. package/website/asset-manifest.json +27 -27
  9. package/website/assets/checkmark.svg +3 -0
  10. package/website/index.html +1 -1
  11. package/website/service-worker.js +1 -1
  12. package/website/static/js/{1.fa36c516.chunk.js → 1.ddd0fd4b.chunk.js} +2 -2
  13. package/website/static/js/{1.fa36c516.chunk.js.map → 1.ddd0fd4b.chunk.js.map} +1 -1
  14. package/website/static/js/{10.02ced27a.chunk.js → 10.b91108a6.chunk.js} +2 -2
  15. package/website/static/js/10.b91108a6.chunk.js.map +1 -0
  16. package/website/static/js/{12.ba292c49.chunk.js → 12.309ba8f7.chunk.js} +1 -1
  17. package/website/static/js/{12.ba292c49.chunk.js.map → 12.309ba8f7.chunk.js.map} +1 -1
  18. package/website/static/js/{4.d2b9c583.chunk.js → 4.e2ba75d9.chunk.js} +3 -3
  19. package/website/static/js/{4.d2b9c583.chunk.js.LICENSE.txt → 4.e2ba75d9.chunk.js.LICENSE.txt} +0 -0
  20. package/website/static/js/4.e2ba75d9.chunk.js.map +1 -0
  21. package/website/static/js/{5.a2819889.chunk.js → 5.33b63db6.chunk.js} +3 -3
  22. package/website/static/js/{5.a2819889.chunk.js.LICENSE.txt → 5.33b63db6.chunk.js.LICENSE.txt} +0 -0
  23. package/website/static/js/{5.a2819889.chunk.js.map → 5.33b63db6.chunk.js.map} +1 -1
  24. package/website/static/js/{6.7ba5b2e6.chunk.js → 6.0fcd2680.chunk.js} +2 -2
  25. package/website/static/js/{6.7ba5b2e6.chunk.js.map → 6.0fcd2680.chunk.js.map} +1 -1
  26. package/website/static/js/{7.ca8ff14b.chunk.js → 7.123067dc.chunk.js} +2 -2
  27. package/website/static/js/7.123067dc.chunk.js.map +1 -0
  28. package/website/static/js/8.703cfb42.chunk.js +2 -0
  29. package/website/static/js/8.703cfb42.chunk.js.map +1 -0
  30. package/website/static/js/9.a8fecf34.chunk.js +2 -0
  31. package/website/static/js/9.a8fecf34.chunk.js.map +1 -0
  32. package/website/static/js/main.ca806cb8.chunk.js +2 -0
  33. package/website/static/js/main.ca806cb8.chunk.js.map +1 -0
  34. package/website/static/js/{runtime-main.808c6139.js → runtime-main.9acc4988.js} +2 -2
  35. package/website/static/js/{runtime-main.808c6139.js.map → runtime-main.9acc4988.js.map} +1 -1
  36. package/website/static/js/10.02ced27a.chunk.js.map +0 -1
  37. package/website/static/js/4.d2b9c583.chunk.js.map +0 -1
  38. package/website/static/js/7.ca8ff14b.chunk.js.map +0 -1
  39. package/website/static/js/8.bd66730f.chunk.js +0 -2
  40. package/website/static/js/8.bd66730f.chunk.js.map +0 -1
  41. package/website/static/js/9.b8a2bbeb.chunk.js +0 -2
  42. package/website/static/js/9.b8a2bbeb.chunk.js.map +0 -1
  43. package/website/static/js/main.fd06cc71.chunk.js +0 -2
  44. package/website/static/js/main.fd06cc71.chunk.js.map +0 -1
@@ -1,2 +1,2 @@
1
- (this["webpackJsonpconstruct-hub-webapp"]=this["webpackJsonpconstruct-hub-webapp"]||[]).push([[6,11],{244:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var a=n(0),c=n(259),r={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"}}},o=n(121),i=n(1),s=function(e){var t=e.children,n=e.meta,s=e.pageName,l=Object(o.b)(r[s]);Object(a.useEffect)((function(){l()}),[l]);var u=n.suffix,d=void 0===u||u,b=n.title,j=n.description,h=d?"".concat(b," - Construct Hub"):b;return Object(i.jsxs)(i.Fragment,{children:[Object(i.jsxs)(c.a,{children:[!1,Object(i.jsx)("meta",{content:"width=device-width, initial-scale=1",name:"viewport"}),Object(i.jsx)("meta",{charSet:"utf-8"}),Object(i.jsx)("title",{children:h}),Object(i.jsx)("meta",{content:h,property:"og:title"}),Object(i.jsx)("meta",{content:h,name:"twitter:title"}),Object(i.jsx)("meta",{content:"summary",name:"twitter:card"}),Object(i.jsx)("meta",{content:j,name:"description"}),Object(i.jsx)("meta",{content:j,property:"og:description"}),Object(i.jsx)("meta",{content:j,name:"twitter:description"})]}),t]})}},254:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var a=n(0),c=n(21),r=function(){var e=Object(c.h)().search;return Object(a.useMemo)((function(){return new URLSearchParams(e)}),[e])}},255:function(e,t,n){"use strict";n.d(t,"a",(function(){return j}));var a=n(5),c=n(0),r=n(21),o=n(110),i=n(13),s=n(254),l=o.d.TypeScript,u="preferred-language",d=function(e){return null!=e&&o.e.has(e)},b=function(e){if(d(e))return e;try{var t,n=null!==(t=localStorage.getItem(u))&&void 0!==t?t:"";if(d(n))return n}catch(a){}return l},j=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.updateUrl,n=e.updateSaved,o=Object(r.h)(),l=o.pathname,j=o.hash,h=Object(r.g)(),f=h.replace,O=Object(s.a)(),p=O.get(i.b.LANGUAGE),m=Object(c.useState)((function(){return b(p)})),v=Object(a.a)(m,2),g=v[0],x=v[1];Object(c.useEffect)((function(){d(p)&&p!==g&&x(p)}),[p]),Object(c.useEffect)((function(){p!==g&&t&&(O.set(i.b.LANGUAGE,g),f({pathname:l,hash:j,search:O.toString()}))}),[g,t]);var y=Object(c.useCallback)((function(e){if(x(e),n)try{localStorage.setItem(u,e)}catch(t){}}),[n]);return Object(c.useMemo)((function(){return[g,y]}),[g,y])}},256:function(e,t,n){"use strict";n.d(t,"c",(function(){return c})),n.d(t,"b",(function(){return r})),n.d(t,"d",(function(){return o})),n.d(t,"a",(function(){return s}));var a=n(13),c=function(e,t){return t?"".concat(t,"/").concat(e):e},r=function(e,t,n){var r="".concat(a.a.PACKAGES_PREFIX,"/"),o=c(e,n),i="/v".concat(t);return"".concat(r).concat(o).concat(i)},o=function(e){var t=e;return(t.startsWith("~")||t.startsWith("^"))&&(t=t.substring(1)),t},i=function(e){return o(e).split(".")[0]},s=function(e,t){var n=e.packages.filter((function(e){return e.name===t}));return n.length>1?n.sort((function(e,t){var n=i(e.version);return i(t.version).localeCompare(n)}))[0]:n[0]}},262:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var a=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.map((function(e){return'"'.concat(e.map((function(e){return null!==e&&void 0!==e?e:"."})).join(" "),'"')})).join(" ")}},263:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var a=new Set(["aws-cdk","aws","awscdk","cdk-construct","cdk","construct","constructs"])},274:function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var a=n(89),c=function(e){var t=Object(a.b)().data;return(null!==t&&void 0!==t?t:{})[e]}},275:function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var a=n(6),c=n(24),r=n(17),o=n(197),i=n(606),s=n(1),l=["date","format"],u=Object(r.a)((function(e,t){var n=e.date,r=e.format,u=Object(c.a)(e,l);return Object(s.jsx)(o.a,Object(a.a)(Object(a.a)({as:"time",dateTime:n.toISOString(),ref:t},u),{},{children:Object(i.a)(n,r)}))}));u.displayName="Time"},276:function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var a=n(6),c=n(24),r=n(593),o=n(87),i=n(72),s=n(1),l=["children","language","value","label","zIndex"],u=function(e){var t=e.children,n=e.language,u=e.value,d=e.label,b=void 0===d?u:d,j=e.zIndex,h=Object(c.a)(e,l);return Object(s.jsx)(i.a,{"aria-label":"Tag: ".concat(b),to:Object(o.c)({query:"".concat(u),language:n}),zIndex:j,children:Object(s.jsx)(r.a,Object(a.a)(Object(a.a)({_hover:{textDecoration:"underline"}},h),{},{children:Object(s.jsx)(r.b,{children:t})}))})}},277:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var a=n(229),c=n(110),r=n(1),o=function(e){var t=e.children,n=e.language,o=c.e.has(n),i=c.b[n],s=o?"Click to view documentation in ".concat(i):"Documentation support for ".concat(i," is coming soon!");return Object(r.jsx)(a.a,{hasArrow:!0,label:s,placement:"top-start",children:Object(r.jsx)("span",{children:t})})}},289:function(e,t,n){"use strict";n.r(t),n.d(t,"NotFound",(function(){return p})),n.d(t,"default",(function(){return p}));var a=n(219),c=n(210),r=n(156),o=n(33),i=n(244),s=n(6),l=n(24),u=n(17),d=n(197),b=n(234),j=n(1),h=["sources"],f=Object(u.a)((function(e,t){var n=e.sources,a=Object(l.a)(e,h);return Object(j.jsxs)(d.a,{as:"picture",children:[null===n||void 0===n?void 0:n.map((function(e,t){return Object(j.jsx)("source",{media:e.media,srcSet:e.srcSet},t)})),Object(j.jsx)(b.a,Object(s.a)({ref:t},a))]})}));f.displayName="Picture";var O={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"},p=function(){return Object(j.jsx)(i.a,{meta:{title:"Not Found",description:"Oops! The page you were looking for does not exist"},pageName:"notFound",children:Object(j.jsxs)(a.a,{h:"100%",position:"relative",w:"100%",children:[Object(j.jsx)(f,{alt:"",inset:0,position:"absolute",sources:O.optimal,src:O.fallback,zIndex:"hide"}),Object(j.jsxs)(c.a,{align:"center",direction:"column",justify:"center",children:[Object(j.jsx)(f,{alt:"404 Image",sources:[{srcSet:"/assets/robot.webp"}],src:"/assets/robot.png"}),Object(j.jsx)(r.a,{as:o.b,colorScheme:"blue",to:"/",children:"Take Me Home"})]})]})})}},310:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return R}));var a,c=n(5),r=n(6),o=n(197),i=n(311),s=n(368),l=n.n(s),u=n(464),d=n.n(u),b=n(497),j=n.n(b),h=n(588),f=n(544),O=n.n(f),p=n(53),m=n(576),v=n(591),g=n(358),x=n(582),y=n(583),k=n(584),w=n(585),C=n(586),S=n(1),L={a:C.a,blockquote:C.b,caption:k.b,code:m.a,em:C.c,h1:v.a,h2:v.a,h3:v.a,h4:v.a,h5:v.a,h6:v.a,hr:g.a,img:x.a,li:y.a,ol:y.b,p:C.d,pre:C.e,sup:C.f,table:k.a,tbody:k.c,td:k.d,tfoot:k.e,th:k.f,thead:k.g,tr:k.h,ul:y.c},T=Object(r.a)({},i);T.attributes.span=(null!==(a=T.attributes.span)&&void 0!==a?a:[]).concat(["dataHeadingTitle","dataHeadingId"]);var I=[[d.a],[j.a,T]],A=[O.a,h.a],E=/^(?:(?:git@)?github\.com:|(?:https?:\/\/)github\.com\/)([^/]+)\/([^/]+)(?:\.git)?$/,R=function(t){var n=t.children,a=function(e){var t=e.type,n=e.url;if("git"===t){var a=E.exec(n);if(null!=a){var r=Object(c.a)(a,3);return{owner:r[1],repo:r[2]}}}}(t.repository),r=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"HEAD";return null==a?l.a.uriTransformer:function(n){var r=l.a.uriTransformer(n),o=Object(c.a)(r,1)[0];if("#"===o||"/"===o)return r;if(r.includes("://"))return r;var i=a.owner,s=a.repo.replace(/\.git$/,"");return"https://".concat(e,"/").concat(i,"/").concat(s,"/").concat(t,"/").concat(r)}};return e.byteLength(n)>1048576&&(n=[n=n.substring(0,n.lastIndexOf("# API Reference")),"# API Reference","The API Reference for this package could not be rendered.","If this issue persists, please let us know by creating an [issue](".concat(p.a,"/issues/new)")].join("\n")),Object(S.jsx)(o.a,{"data-testid":w.a.container,px:8,sx:{"& > *":{mb:8},"& > p":{lineHeight:"taller"}},children:Object(S.jsx)(l.a,{components:L,rehypePlugins:I,remarkPlugins:A,transformImageUri:r("raw.githubusercontent.com"),transformLinkUri:r("github.com","blob/HEAD"),children:n})})}}).call(this,n(364).Buffer)},358:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var a=n(6),c=n(212),r=n(1),o=function(e){return Object(r.jsx)(c.a,Object(a.a)({my:10},e))}},360:function(e,t,n){"use strict";n.d(t,"a",(function(){return x}));var a=n(6),c=n(24),r=n(197),o=n(589),i=n(579),s=n(210),l=n(596),u=n(597),d=n(17),b=n(595),j=n(208),h=n(1),f=["value"],O=Object(d.a)((function(e,t){var n=e.value,r=Object(c.a)(e,f),o=Object(b.a)(n),i=o.hasCopied,s=o.onCopy;return Object(h.jsx)(j.a,Object(a.a)({"aria-label":"Copy Button",h:6,icon:i?Object(h.jsx)(l.a,{color:"green.300"}):Object(h.jsx)(u.a,{}),minW:"auto",onClick:s,ref:t,variant:"ghost",w:6},r))}));O.displayName="CopyButton";var p=function(e){var t=e.code,n=e.tokens,c=e.getLineProps,o=e.getTokenProps;return Object(h.jsxs)(h.Fragment,{children:[Object(h.jsx)(s.a,{align:"center",bg:"rgba(0, 124, 253, 0.15)",justify:"flex-end",px:2,py:1,children:Object(h.jsx)(O,{_hover:{bg:"gray.300"},color:"gray.500",value:t})}),Object(h.jsx)(r.a,{overflowX:"auto",p:2,children:n.map((function(e,t){return Object(h.jsx)("div",Object(a.a)(Object(a.a)({},c({line:e,key:t})),{},{children:e.map((function(e,t){return Object(h.jsx)("span",Object(a.a)({},o({token:e,key:t})),t)}))}),t)}))})]})},m=n(150),v=function(e){var t=e.code,n=e.tokens,c=e.getLineProps,o=e.getTokenProps;return Object(h.jsxs)(m.a,{p:2,templateColumns:"1fr min-content",w:"full",children:[Object(h.jsx)(r.a,{maxW:"full",overflow:"auto",children:n.map((function(e,t){return Object(h.jsx)("div",Object(a.a)(Object(a.a)({},c({line:e,key:t})),{},{children:e.map((function(e,t){return Object(h.jsx)("span",Object(a.a)({},o({token:e,key:t})),t)}))}),t)}))}),Object(h.jsx)(r.a,{borderLeft:"base",ml:1,children:Object(h.jsx)(O,{color:"blue.500",colorScheme:"blue",ml:1,value:t,variant:"ghost"})})]})},g=["code","language"],x=function(e){var t=e.code,n=e.language,s=Object(c.a)(e,g);return Object(h.jsx)(o.a,Object(a.a)(Object(a.a)({},o.b),{},{code:t,language:n,theme:i.a,children:function(e){return Object(h.jsx)(r.a,Object(a.a)(Object(a.a)({as:"pre",border:"base",borderRadius:"md",boxShadow:"base",className:e.className,style:e.style},s),{},{children:e.tokens.length>1?Object(h.jsx)(p,Object(a.a)(Object(a.a)({},e),{},{code:t})):Object(h.jsx)(v,Object(a.a)(Object(a.a)({},e),{},{code:t}))}))}}))}},576:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var a=n(598),c=n(0),r=n(360),o=n(1),i=function(e){var t=e.inline,n=e.children,i=e.language,s=void 0===i?"typescript":i;if(t)return Object(o.jsx)(a.a,{bg:"gray.100",border:"1px solid",borderColor:"gray.100",borderRadius:"md",color:"blue.500",px:2,py:0,children:n});var l=c.Children.toArray(n).reduce((function(e,t){return"string"===typeof t?"".concat(e).concat(t):e}),"").trim();return Object(o.jsx)(r.a,{code:l,language:s})}},582:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var a=n(6),c=n(234),r=n(1),o=function(e){return Object(r.jsx)(c.a,Object(a.a)({display:"inline-block"},e))}},583:function(e,t,n){"use strict";n.d(t,"c",(function(){return r})),n.d(t,"b",(function(){return o})),n.d(t,"a",(function(){return i}));var a=n(220),c=n(1),r=function(e){var t=e.children;return Object(c.jsx)(a.c,{children:t})},o=function(e){var t=e.children;return Object(c.jsx)(a.b,{children:t})},i=function(e){var t=e.children;return Object(c.jsx)(a.a,{lineHeight:"tall",mb:2,sx:{"em:first-of-type":{mr:2,fontStyle:"italic",fontSize:"small"},"&::marker":{color:"blue.500"},code:{fontSize:"small"}},children:t})}},584:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var a=n(197),c=n(258);n.d(t,"e",(function(){return c.e})),n.d(t,"c",(function(){return c.c})),n.d(t,"d",(function(){return c.d})),n.d(t,"g",(function(){return c.g})),n.d(t,"h",(function(){return c.h})),n.d(t,"f",(function(){return c.f})),n.d(t,"b",(function(){return c.b}));var r=n(1),o=function(e){var t=e.children;return Object(r.jsx)(a.a,{maxW:"100%",overflowX:"auto",children:Object(r.jsx)(c.a,{variant:"striped",children:t})})}},585:function(e,t,n){"use strict";var a=n(61);t.a=Object(a.a)("markdown",["container"])},586:function(e,t,n){"use strict";n.d(t,"a",(function(){return b})),n.d(t,"b",(function(){return j})),n.d(t,"c",(function(){return h})),n.d(t,"d",(function(){return f})),n.d(t,"e",(function(){return O})),n.d(t,"f",(function(){return p}));var a=n(5),c=n(6),r=n(24),o=n(205),i=n(197),s=n(201),l=n(45),u=n(1),d=["children","href"],b=function(e){var t=e.children,n=e.href,a=Object(r.a)(e,d),i=o.a;try{if(n&&n.startsWith("http"))if(new URL(n).hostname!==window.location.hostname){i=function(e){return Object(u.jsx)(l.a,Object(c.a)({},e))}}}catch(s){i=o.a}return Object(u.jsx)(i,Object(c.a)(Object(c.a)({color:"blue.500",href:n,sx:{"> img + svg":{display:"none"}}},a),{},{children:t}))},j=function(e){var t=e.children;return Object(u.jsx)(i.a,{as:"blockquote",bg:"gray.100",borderLeft:"5px solid",borderLeftColor:"gray.200",borderRadius:"md",p:2,wordBreak:"break-word",children:t})},h=function(e){var t=e.children;return Object(u.jsx)(i.a,{as:"em",color:"blue.500",fontStyle:"normal",fontWeight:"semibold",children:t})},f=function(e){var t=e.children;return Object(u.jsx)(s.a,{children:t})},O=function(e){var t=e.children;return Object(u.jsx)(i.a,{as:"pre",children:t})},p=function(e){var t=e.children,n=void 0,c="";if(Array.isArray(t)){var r=Object(a.a)(t,1)[0];"string"===typeof r&&(c=r)}return"Required"===c?n="orange.500":"Optional"===c&&(n="green.500"),Object(u.jsx)(i.a,{as:"sup",color:n,ml:2,top:-1,children:t})}},591:function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var a=n(221),c=n(0),r=n(580),o=n.n(r),i=n(72),s=n(358),l=n(1),u=function(e){var t,n,r=e.level,u=e.children,d=["2xl","xl","lg","md","sm","xs"][r-1],b=[10,10,10,8,8,8][r-1],j="h".concat(r),h=(new DOMParser).parseFromString(o.a.renderToStaticMarkup(u),"text/html").querySelector("span[data-heading-title][data-heading-id]"),f=null!==(t=null===h||void 0===h?void 0:h.dataset.headingTitle)&&void 0!==t?t:c.Children.toArray(u).reduce((function(e,t){return"string"===typeof t?"".concat(e).concat(t):e}),"").trim(),O=null!==(n=null===h||void 0===h?void 0:h.dataset.headingId)&&void 0!==n?n:f.toLowerCase().replace(/[^a-zA-Z0-9 ]/g,"").replace(/ /g,"-"),p=r<4;return Object(l.jsxs)(l.Fragment,{children:[Object(l.jsx)(a.a,{as:j,color:"blue.800",level:r,mb:p?0:r,mt:b,size:d,children:Object(l.jsx)(i.a,{"data-heading-id":O,"data-heading-level":r,"data-heading-title":f,id:O,replace:!0,sx:{"> code":{color:"blue.800",fontSize:"inherit"}},to:"#".concat(O),children:u})}),p&&Object(l.jsx)(s.a,{mb:b,mt:0,sx:{"& + hr":{display:"none"}}})]})}},605:function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return bt}));var a=n(21),c=n(289),r=n(5),o=n(150),i=n(590),s=n(219),l=n(202),u=n(0),d=n(244),b=n(235),j=n(256),h=n(72),f=n(74),O=n(87),p=n(27),m=n.n(p),v=n(41),g=n(13),x=function(){var e=Object(v.a)(m.a.mark((function e(t,n,a){var c,r;return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return c="".concat(Object(j.b)(t,n,a)).concat(g.a.ASSEMBLY_SUFFIX),e.next=3,fetch(c);case 3:if((r=e.sent).ok){e.next=6;break}throw new Error("Failed fetching assembly for ".concat(c,": ").concat(r.statusText));case 6:return e.abrupt("return",r.json());case 7:case"end":return e.stop()}}),e)})));return function(t,n,a){return e.apply(this,arguments)}}(),y=function(){var e=Object(v.a)(m.a.mark((function e(t,n,a,c,r){var o,i,s,l,u;return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o="/docs-".concat(r?"".concat(r,"-"):"").concat(a,".md"),i="".concat(Object(j.b)(t,n,c)).concat(o),e.next=4,fetch(i);case 4:if((s=e.sent).ok){e.next=7;break}throw new Error("Failed fetching documentation for ".concat(i,": ").concat(s.statusText));case 7:if(l="text/markdown",(u=s.headers.get("Content-Type"))&&u.includes(l)){e.next=11;break}throw new Error("Invalid content type: ".concat(u,". Expected ").concat(l,'"'));case 11:return e.abrupt("return",s.text());case 12:case"end":return e.stop()}}),e)})));return function(t,n,a,c,r){return e.apply(this,arguments)}}(),k=function(){var e=Object(v.a)(m.a.mark((function e(t,n,a){var c,r,o;return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(c=n).startsWith("^")&&(c=c.substring(1,c.length)),r="".concat(Object(j.b)(t,n,a)).concat(g.a.METADATA_SUFFIX),e.next=5,fetch(r);case 5:if((o=e.sent).ok){e.next=8;break}throw new Error("Failed fetching metadata for ".concat(r,": ").concat(o.statusText));case 8:return e.abrupt("return",o.json());case 9:case"end":return e.stop()}}),e)})));return function(t,n,a){return e.apply(this,arguments)}}(),w=n(110),C=n(255),S=n(254),L=n(75),T=n(1),I=Object(u.createContext)(void 0),A=function(){var e=Object(u.useContext)(I);if(!e)throw new Error("This component must be a child of a <PackageStateProvider />");return e},E=function(e){var t,n,o,i,s,l=e.children,d=Object(a.i)(),b=d.name,j=d.scope,h=d.version,f=Object(L.a)(y),O=Object(r.a)(f,2),p=O[0],m=O[1],v=Object(L.a)(x),A=Object(r.a)(v,2),E=A[0],R=A[1],M=Object(L.a)(k),P=Object(r.a)(M,2),z=P[0],F=P[1],B=Object(S.a)(),D=Object(C.a)(),W=Object(r.a)(D,1)[0],N=null!==(t=B.get(g.b.SUBMODULE))&&void 0!==t?t:"";Object(u.useEffect)((function(){z(b,h,j),E(b,h,j)}),[b,E,z,j,h]),Object(u.useEffect)((function(){p(b,h,w.f[W],j,N)}),[b,j,h,W,N,p]);var U="".concat(j?"".concat(j,"/").concat(b):b," ").concat(h),H=null!==(n=null===(o=R.data)||void 0===o?void 0:o.description)&&void 0!==n?n:"",G=Boolean(m.error||R.error),q=Boolean(!m.loading&&!R.loading&&m.data&&R.data),Z=Boolean(W===w.d.TypeScript||R.loading||R.error||null!=(null===(i=R.data)||void 0===i||null===(s=i.targets)||void 0===s?void 0:s[W.toString()])),_=Boolean(!F.loading&&(R.loading||m.loading));return R.error?Object(T.jsx)(c.NotFound,{}):Object(T.jsx)(I.Provider,{value:{assembly:R,hasDocs:q,hasError:G,isLoadingDocs:_,isSupported:Z,language:W,markdown:m,metadata:F,name:b,pageDescription:H,pageTitle:U,scope:j,version:h},children:l})},R=n(61),M=Object(R.a)("package-page",["page","feedbackLinks","reportLink","githubLink","dependenciesTab","dependenciesList","dependenciesLink"]),P=function(){var e,t=A().assembly.data;if(!t)return Object(T.jsx)(f.a,{});var n=Object.entries(null!==(e=t.dependencies)&&void 0!==e?e:{});return n.length?Object(T.jsx)(b.a,{"data-testid":M.dependenciesList,direction:"row",justify:"center",mx:"auto",spacing:4,wrap:"wrap",children:n.map((function(e){var t=Object(r.a)(e,2),n=t[0],a=t[1];return Object(T.jsx)(h.a,{_first:{ml:4},"data-testid":M.dependenciesLink,fontWeight:"semibold",p:2,to:Object(O.a)({name:n,version:Object(j.d)(a)}),children:n},"".concat(n,"-").concat(a))}))}):Object(T.jsx)(s.a,{children:"This library does not have any known dependencies"})},z=n(6),F=n(594),B=n(156),D=n(210),W=n(205),N=n(45),U=n(108),H=function(e){return Object(T.jsxs)(U.a,Object(z.a)(Object(z.a)({},e),{},{children:[Object(T.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:"#002954",fillRule:"evenodd"}),Object(T.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:"#181616"})]}))},G={h:5,ml:2,w:5},q=function(){var e,t=A(),n=t.metadata.data,a=t.assembly.data;if(!a||!n)return null;var c=null!==(e=null===a||void 0===a?void 0:a.repository)&&void 0!==e?e:{},r=null;if("git"===c.type){var o,i=(null===(o=c.url)||void 0===o?void 0:o.endsWith(".git"))?c.url.replace(".git",""):c.url;i.endsWith("/")&&(i=i.slice(0,i.length-1)),r=Object(T.jsx)(B.a,{as:N.a,color:"black","data-testid":M.githubLink,hasIcon:!1,href:"".concat(i,"/issues"),rightIcon:Object(T.jsx)(H,Object(z.a)({},G)),variant:"solid",children:"Provide Feedback"})}return Object(T.jsxs)(D.a,{align:"center",borderTop:"1px solid",borderTopColor:"blue.50",color:"blue.500","data-testid":M.feedbackLinks,direction:"row",justify:"space-evenly",mx:8,py:10,children:[Object(T.jsx)(B.a,{as:W.a,colorScheme:"blue","data-testid":M.reportLink,href:"mailto:abuse@amazonaws.com?subject=".concat(encodeURIComponent("ConstructHub - Report of abusive package: ".concat(null===a||void 0===a?void 0:a.name))),rightIcon:Object(T.jsx)(F.a,Object(z.a)({},G)),children:"Report this package"}),r]})},Z=n(18),_=n(197),V=n(310),X=n(215),J=n(587),K=n(203),Y=n(208),$={color:"gray.900",h:4,w:4},Q=function e(t){var n,c=t.children,r=t.display,o=t.url,i=t.onOpen,s=Object(a.h)(),l=s.pathname,d=s.hash,b=o.startsWith("#"),j=b?d===o:l===o,f=Object(K.a)({onOpen:i,defaultIsOpen:!0}),O=(null!==(n=null===c||void 0===c?void 0:c.length)&&void 0!==n?n:0)>0,p=f.isOpen&&O,m=b?W.a:h.a,v=Object(u.useMemo)((function(){return null===c||void 0===c?void 0:c.map((function(t,n){return Object(u.createElement)(e,Object(z.a)(Object(z.a)({},t),{},{key:n,onOpen:f.onOpen}))}))}),[c,f.onOpen]);return Object(T.jsxs)(D.a,{direction:"column",children:[Object(T.jsxs)(D.a,{align:"center",color:j?"blue.500":"gray.800",children:[O&&Object(T.jsx)(Y.a,{"aria-label":"expand-toggle",borderRadius:"md",h:4,icon:f.isOpen?Object(T.jsx)(X.a,Object(z.a)({},$)):Object(T.jsx)(J.a,Object(z.a)({},$)),ml:-1,onClick:f.onToggle,size:"xs",variant:"link",w:4}),Object(T.jsx)(m,{_hover:{bg:"rgba(0, 124, 253, 0.05)"},href:o,overflow:"hidden",pl:O?1:2,py:1.5,textOverflow:"ellipsis",title:r,to:o,w:"100%",whiteSpace:"nowrap",children:r})]}),Object(T.jsx)(_.a,{_before:{bg:"gray.100",bottom:0,content:'""',left:0,position:"absolute",top:0,w:"1px"},display:p?"initial":"none",ml:2,pl:2,position:"relative",children:v})]})},ee=function(e){var t=e.items;return Object(T.jsx)(D.a,{direction:"column",maxWidth:"100%",children:t.map((function(e,t){return Object(u.createElement)(Q,Object(z.a)(Object(z.a)({},e),{},{key:t,onOpen:void 0}))}))})},te=n(599),ne=n(212),ae=n(46),ce=n(220),re=n(144),oe=n(218),ie=n(17),se=n(216),le=n(217),ue=n(233),de=n(142),be=n(143),je=Object(ie.a)((function(e,t){var n=e.value,a=e.onChange,c=e.onSubmit,o=Object(u.useState)(n),i=Object(r.a)(o,2),s=i[0],l=i[1];return Object(be.a)(s,{onChange:a}),Object(T.jsx)(de.a,{"data-testid":"choose-submodule-search-form",onSubmit:c,children:Object(T.jsxs)(se.a,{children:[Object(T.jsx)(le.a,{children:Object(T.jsx)(oe.a,{color:"gray.400"})}),Object(T.jsx)(ue.a,{"data-testid":"choose-submodule-search-input",onChange:function(e){return l(e.target.value)},placeholder:"Search",ref:t,value:s,variant:"filled"})]})})}));je.displayName="SearchInput";var he=function(e){var t=e.inputValue,n=e.isOpen,c=e.onClose,r=e.onInputChange,o=e.submodules,i=Object(u.useRef)(null),s=Object(a.g)().push,l=Object(u.useCallback)((function(e){c(),s(e)}),[c,s]),d=Object(u.useCallback)((function(e){if(e.preventDefault(),o.length){var t=o[0].to;l(t)}}),[l,o]);return Object(T.jsx)(ae.a,{initialFocusRef:i,isOpen:n,onClose:c,children:Object(T.jsx)(ae.h,{children:Object(T.jsxs)(ae.d,{mx:4,children:[Object(T.jsx)(ae.c,{"data-testid":"choose-submodule-modal-close"}),Object(T.jsx)(ae.g,{"data-testid":"choose-submodule-modal-header",fontSize:"lg",fontWeight:"bold",children:"Choose a submodule"}),Object(T.jsxs)(ae.b,{"data-testid":"choose-submodule-modal-body",p:0,children:[Object(T.jsx)(_.a,{pb:4,px:4,children:Object(T.jsx)(je,{onChange:r,onSubmit:d,ref:i,value:t})}),Object(T.jsx)(ne.a,{}),Object(T.jsx)(ce.c,{"data-testid":"choose-submodule-modal-results",m:0,maxH:"50vh",overflow:"hidden auto",p:0,role:"listbox",tabIndex:-1,children:o.map((function(e){var t=e.name,n=e.to;return Object(T.jsx)(re.a,{"data-testid":"choose-submodule-result",name:t,onClick:function(){return l(n)}},t)}))})]})]})})})},fe=function(e){var t,n=e.assembly,c=Object(a.h)().pathname,o=Object(a.g)().push,i=Object(S.a)(),s=Object.keys(null!==(t=null===n||void 0===n?void 0:n.submodules)&&void 0!==t?t:{}),l=Object(K.a)(),d=l.isOpen,j=l.onOpen,h=l.onClose,f=i.get(g.b.SUBMODULE),O=f?"Submodule: ".concat(f):"Choose Submodule",p=Object(u.useState)(""),m=Object(r.a)(p,2),v=m[0],x=m[1],y=Object(u.useCallback)((function(e){var t=new URLSearchParams(i.toString());return t.set("submodule",e),"".concat(c,"?").concat(t)}),[c,i]),k=Object(u.useMemo)((function(){var e=s;return v&&(e=e.filter((function(e){return e.toLowerCase().includes(v.toLowerCase())}))),e.map((function(e){var t=e.split(".")[1];return{name:t,to:y(t)}}))}),[s,v,y]);return 0===s.length?null:Object(T.jsxs)(b.a,{spacing:4,w:"100%",children:[f&&Object(T.jsxs)(T.Fragment,{children:[Object(T.jsx)(B.a,{borderRadius:"none","data-testid":"choose-submodule-go-back",leftIcon:Object(T.jsx)(te.a,{"aria-label":"Back to construct root"}),onClick:function(){var e=i.get(g.b.LANGUAGE);o("".concat(c).concat(e?"?".concat(g.b.LANGUAGE,"=").concat(e):""))},title:"Back to construct root",variant:"link",children:null===n||void 0===n?void 0:n.name}),Object(T.jsx)(ne.a,{})]}),Object(T.jsx)(B.a,{borderRadius:"none",color:"blue.500","data-testid":"choose-submodule-search-trigger",flexGrow:1,onClick:j,rightIcon:Object(T.jsx)(X.a,{}),title:"Choose Submodule",variant:"link",children:O}),Object(T.jsx)(he,{inputValue:v,isOpen:d,onClose:h,onInputChange:x,submodules:k})]})},Oe=function e(t,n){if(!(n instanceof HTMLElement))return t;var a=n.dataset,c=a.headingId,r=a.headingLevel,o=void 0===r?"100":r,i=n.innerText,s=parseInt(o);if(s>3||!i||!c)return t;var l=t[t.length-1];return null==l||l.level>=s?[].concat(Object(Z.a)(t),[{display:i,url:"#".concat(c),level:s,children:[]}]):(l.children=e(l.children,n),t)},pe="4.5rem",me=function(e){var t,n=e.markdown,c=e.assembly,i=Object(u.useState)([]),s=Object(r.a)(i,2),l=s[0],d=s[1];Object(u.useEffect)((function(){var e=Object(Z.a)(document.querySelectorAll("[data-heading-id][data-heading-title][data-heading-level]")).reduce(Oe,[]);d(e)}),[n]);var b=Object(a.h)().hash;Object(u.useEffect)((function(){if(b){var e=document.querySelector("".concat(b));null===e||void 0===e||e.scrollIntoView(!0)}}),[n]);var j=Object(u.useMemo)((function(){return Object(T.jsx)(V.a,{repository:c.repository,children:n})}),[c.repository,n]);return Object(T.jsxs)(o.a,{bg:"white",columnGap:4,h:"100%",templateColumns:{base:"1fr",md:"1fr 3fr"},width:"100%",children:[Object(T.jsxs)(D.a,{alignSelf:"stretch",borderRight:"1px solid",borderRightColor:"blue.50",direction:"column",display:{base:"none",md:"flex"},maxHeight:"calc(100vh - ".concat(pe,")"),overflow:"hidden auto",pl:6,position:"sticky",pr:4,top:pe,children:[Object.keys(null!==(t=null===c||void 0===c?void 0:c.submodules)&&void 0!==t?t:{}).length>0&&Object(T.jsx)(D.a,{borderBottom:"1px solid",borderColor:"blue.50",justify:"center",py:4,children:Object(T.jsx)(fe,{assembly:c})}),Object(T.jsx)(_.a,{overflowY:"auto",py:4,children:Object(T.jsx)(ee,{items:l})})]}),Object(T.jsx)(_.a,{h:"max-content",maxWidth:"100%",overflow:"hidden",py:4,sx:{a:{scrollMarginTop:pe}},children:j})]})},ve=n(201),ge=n(53),xe=function(){var e=A().language,t=Object(T.jsx)(N.a,{href:"".concat(ge.a,"/issues/new"),children:"issue"});return Object(T.jsxs)(ve.a,{align:"center",fontSize:"xl",fontStyle:"oblique",px:4,wordBreak:"break-word",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,"."]})},ye=function(){var e=A().language,t=w.b[e];return Object(T.jsxs)(ve.a,{align:"center",fontSize:"xl",fontStyle:"oblique",px:4,wordBreak:"break-word",children:["This package does not currently support ",t,". Select one of the supported languages above, or ask the author to add support for"," ",t," in a future release."]})},ke=n(277),we=function(e){var t=e.targetLanguages,n=e.selectedLanguage,a=e.setSelectedLanguage;return Object(T.jsx)(b.a,{align:"center","data-testid":"language-bar",direction:"row",spacing:2,children:Object(Z.a)(t).sort((function(e,t){return w.a.indexOf(e)-w.a.indexOf(t)})).map((function(e){var t=!w.e.has(e),c=e===n,r=w.c[e].icon;return Object(T.jsx)(ke.a,{language:e,children:Object(T.jsx)(Y.a,{"aria-label":"Select ".concat(e," icon"),border:c?"1px solid":"none",borderColor:"blue.500",borderRadius:"lg",boxShadow:"base",colorScheme:"blue",cursor:t?"not-allowed":"pointer","data-testid":"language-".concat(e),disabled:t,icon:Object(T.jsx)(r,{"aria-label":"".concat(e,"-icon"),borderRadius:"sm",height:[4,5,6],width:[4,5,6]}),onClick:function(){c||a(e)},p:1,variant:"outline",w:"max-content"})},e)}))})},Ce=new Set(w.a),Se=function(){var e,t=A(),n=t.assembly.data,a=t.language,c=Object(C.a)({updateSaved:!0,updateUrl:!0}),o=Object(r.a)(c,2)[1],i=Object(C.a)({updateUrl:!0}),s=Object(r.a)(i,2)[1],l=[].concat(Object(Z.a)(Object.keys(null!==(e=null===n||void 0===n?void 0:n.targets)&&void 0!==e?e:{})),[w.d.TypeScript]),d=l.includes(a);Object(u.useEffect)((function(){d||s(w.d.TypeScript)}),[d]);var b={selectedLanguage:d?a:w.d.TypeScript,setSelectedLanguage:o,targetLanguages:l.filter((function(e){return Ce.has(e)}))};return Object(T.jsx)(we,Object(z.a)({},b))},Le=n(592),Te=n(206),Ie=n(24),Ae="https://opensource.org/licenses",Ee={"Apache-2.0":"".concat(Ae,"/apache2.0.php"),"BSD-2-Clause":"".concat(Ae,"/bsd-license.php"),MIT:"".concat(Ae,"/mit-license.php")},Re=["license"],Me=Object(ie.a)((function(e,t){var n=e.license,a=Object(Ie.a)(e,Re),c=Ee[n];return Object(T.jsx)(N.a,Object(z.a)(Object(z.a)({href:c,ref:t},a),{},{children:n}))}));Me.displayName="LicenseLink";var Pe=n(275),ze=n(88),Fe=n(274),Be=n(600),De=["openText","closeText","isOpen"],We=function(e){var t=e.openText,n=e.closeText,a=e.isOpen,c=Object(Ie.a)(e,De);return Object(T.jsx)(B.a,Object(z.a)(Object(z.a)({colorScheme:"blue",leftIcon:a?Object(T.jsx)(Be.a,{}):Object(T.jsx)(X.a,{}),variant:"link"},c),{},{children:a?n:t}))},Ne=function(e){var t=e.children,n=e.label;return Object(T.jsxs)(ve.a,{fontWeight:"bold",children:[n,":"," ",Object(T.jsx)(_.a,{as:"span",fontWeight:"normal",children:t})]})},Ue=function(e){var t=e.downloads;return Object(T.jsxs)(b.a,{align:"center",direction:"row",spacing:1,children:[Object(T.jsx)(Le.a,{color:"gray.700"}),Object(T.jsxs)(ve.a,{children:[Object(T.jsx)(_.a,{as:"span",color:"blue.500",children:t.toLocaleString()})," ","Downloads"]})]})},He=function(e){var t=A(),n=Object(ze.b)().data,a=Object(K.a)(),c=Object(Fe.a)("packageLinks"),r=function(e){var t=e.assembly,n=e.metadata,a=e.name,c=e.packageLinks,r=e.stats,o=[];if(t||n||r||c){var i,s,l,d=null===r||void 0===r||null===(i=r.packages)||void 0===i||null===(s=i[a])||void 0===s||null===(l=s.downloads)||void 0===l?void 0:l.npm;void 0!==d&&o.push(Object(T.jsx)(Ue,{downloads:d}));var b=null===t||void 0===t?void 0:t.author.name,j=null===t||void 0===t?void 0:t.repository,f=null===t||void 0===t?void 0:t.license;if(b){var p=Object(T.jsx)(h.a,{color:"blue.500",to:Object(O.c)({query:b}),children:b});o.push(Object(T.jsx)(Ne,{label:"Author",children:p}))}var m=null===n||void 0===n?void 0:n.date;if(m){var v=Object(T.jsx)(Pe.a,{date:new Date(m),fontWeight:"normal",format:"MMMM dd, yyyy"});o.push(Object(T.jsx)(Ne,{label:"Published",children:v}))}if((null===c||void 0===c?void 0:c.length)&&c.forEach((function(e){var t,a=e.linkLabel,c=e.configKey,r=e.linkText,i=(null!==(t=null===n||void 0===n?void 0:n.packageLinks)&&void 0!==t?t:{})[c];if(i){var s=Object(T.jsx)(N.a,{href:i,children:null!==r&&void 0!==r?r:i});o.push(Object(T.jsxs)(Ne,{label:a,children:[a,": ",s]}))}})),j){var g=Object(O.b)(j.url);if(g){var x=Object(T.jsx)(N.a,{href:g.url,children:g.hostname});o.push(Object(T.jsx)(Ne,{label:"Repository",children:x}))}}if(f&&f in Ee){var y=Object(T.jsx)(Me,{license:f});o.push(Object(T.jsx)(Ne,{label:"License",children:y}))}}return o.map((function(e,t){return Object(T.jsx)(u.Fragment,{children:e},t)}))}({assembly:t.assembly.data,metadata:t.metadata.data,name:t.scope?"".concat(t.scope,"/").concat(t.name):t.name,packageLinks:c,stats:n});if(!r.length)return null;var o=r.slice(0,2),i=r.slice(2,r.length);return Object(T.jsxs)(b.a,Object(z.a)(Object(z.a)({align:"start",color:"gray.600",fontSize:".75rem",mt:2,spacing:2},e),{},{children:[o,i.length>0&&Object(T.jsxs)(T.Fragment,{children:[Object(T.jsx)(Te.a,{animateOpacity:!0,in:a.isOpen,children:Object(T.jsx)(b.a,{spacing:2,children:i})}),Object(T.jsx)(We,{closeText:"See less details",fontSize:"inherit",isOpen:a.isOpen,onClick:a.onToggle,openText:"See more details"})]})]}))},Ge=n(262),qe="heading",Ze="install",_e="languages",Ve="meta",Xe=Object(Ge.a)([qe],[Ve],[_e],[Ze]),Je=Object(Ge.a)([qe,_e,Ze],[qe,null,Ve]),Ke=function(e){var t=e.children;return Object(T.jsx)(o.a,{columnGap:{md:6,lg:10},pt:{base:3,md:6},px:{base:5,md:6,lg:10},rowGap:{base:4,md:0},templateAreas:{base:Xe,md:Je},templateColumns:{base:"1fr",md:"1fr auto 15rem"},templateRows:{md:"auto 1fr"},children:t})},Ye=n(221),$e=n(123),Qe=n(276),et=n(263),tt=["assembly","name","description","metadata"],nt=function(e){var t,n,a,c=e.assembly,r=e.name,o=e.description,i=e.metadata,s=Object(Ie.a)(e,tt),l=[].concat(Object(Z.a)((null!==(t=i.packageTags)&&void 0!==t?t:[]).filter((function(e){return Boolean(e.keyword)}))),Object(Z.a)((null!==(n=c.keywords)&&void 0!==n?n:[]).filter((function(e){return Boolean(e)&&!et.a.has(e)})).map((function(e){return{id:e,keyword:{label:e}}})))),u=null!==(a=i.constructFramework)&&void 0!==a?a:{};return Object(T.jsxs)(b.a,Object(z.a)(Object(z.a)({lineHeight:"1.5",spacing:2},s),{},{children:[Object(T.jsx)(Ye.a,{color:"blue.800",fontSize:"1.5rem",children:r}),Object(T.jsx)(ve.a,{fontSize:"1rem",children:o}),Object(T.jsxs)(b.a,{align:"center",direction:"row",pt:3,spacing:2,children:[Object(T.jsx)($e.a,Object(z.a)({},u)),Object(T.jsx)($e.b,Object(z.a)({color:"gray.700",fontSize:".75rem",fontWeight:"semibold"},u)),l.slice(0,3).map((function(e){var t=e.id,n=e.keyword,a=(n=void 0===n?{}:n).label,c=n.color;return Object(T.jsx)(Qe.a,{mr:1,value:t,variant:c,children:a},t)}))]})]}))},at=n(360),ct=function(e){var t=A(),n=t.language,a=t.assembly.data,c=Object(K.a)();if(!a)return null;var r=function(e){var t=e.language,n=e.assembly,a=n.version;if(t===w.d.TypeScript){var c=n.name;return"npm install ".concat(c,"@").concat(a)}if(t===w.d.Python){var r,o,i=null===(r=n.targets)||void 0===r||null===(o=r.python)||void 0===o?void 0:o.distName;if(!i)return;return"pip install ".concat(i,"==").concat(a)}if(t===w.d.Java){var s,l,u,d,b,j,h=null===(s=n.targets)||void 0===s||null===(l=s.java)||void 0===l||null===(u=l.maven)||void 0===u?void 0:u.groupId,f=null===(d=n.targets)||void 0===d||null===(b=d.java)||void 0===b||null===(j=b.maven)||void 0===j?void 0:j.artifactId;if(!h||!f)return;return["// add this to your pom.xml","<dependency>"," <groupId>".concat(h,"</groupId>")," <artifactId>".concat(f,"</artifactId>")," <version>".concat(a,"</version>"),"</dependency>"].join("\n")}if(t===w.d.DotNet){var O,p,m=null===(O=n.targets)||void 0===O||null===(p=O.dotnet)||void 0===p?void 0:p.packageId;if(!m)return;return"dotnet add package ".concat(m," --version ").concat(a)}}({language:n,assembly:a});return r&&n?Object(T.jsx)(D.a,Object(z.a)(Object(z.a)({align:"start",direction:"column",fontSize:".75rem"},e),{},{children:n===w.d.Java?Object(T.jsxs)(T.Fragment,{children:[Object(T.jsx)(We,{closeText:"Hide",fontSize:"inherit",isOpen:c.isOpen,mt:2,onClick:c.onToggle,openText:"Install"}),Object(T.jsx)(_.a,{maxW:"full",overflow:"hidden",children:Object(T.jsx)(Te.a,{in:c.isOpen,children:Object(T.jsx)(at.a,{boxShadow:"none",code:r,fontSize:"inherit",language:n,mt:2})})})]}):Object(T.jsx)(at.a,{boxShadow:"none",code:r,fontSize:"inherit",language:n,lineHeight:"2",mt:1,sx:{"> div":{p:1}}})})):null},rt=function(){var e=A(),t=e.assembly,n=e.metadata,a=t.data,c=n.data;return a&&c?Object(T.jsxs)(Ke,{children:[Object(T.jsx)(nt,{assembly:a,description:a.description,gridArea:qe,metadata:c,name:a.name}),Object(T.jsx)(D.a,{align:"start",gridArea:_e,children:Object(T.jsx)(Se,{})}),Object(T.jsxs)(D.a,{direction:"column",gridArea:Ve,children:[Object(T.jsx)(ne.a,{borderBottom:"base",display:{md:"none"},mb:2}),Object(T.jsx)(He,{}),Object(T.jsx)(ne.a,{borderBottom:"base",display:{md:"none"},mt:2})]}),Object(T.jsx)(D.a,{align:"start",gridArea:Ze,children:Object(T.jsx)(ct,{})})]}):Object(T.jsx)(l.a,{mx:"auto",my:10,size:"xl"})},ot=function(){var e=A(),t=e.assembly,n=e.hasDocs,a=e.hasError,c=e.isLoadingDocs,b=e.isSupported,j=e.markdown,h=e.pageDescription,f=e.pageTitle,O=Object(u.useState)(0),p=Object(r.a)(O,2),m=p[0],v=p[1];return Object(u.useEffect)((function(){v(0)}),[f]),Object(T.jsx)(d.a,{meta:{title:f,description:h},pageName:"packageProfile",children:Object(T.jsxs)(o.a,{bg:"white","data-testid":M.page,maxW:"100vw",templateColumns:"1fr",templateRows:"auto 1fr auto",children:[Object(T.jsx)(rt,{}),Object(T.jsxs)(i.e,{index:m,onChange:v,pt:4,variant:"line",children:[Object(T.jsxs)(i.b,{borderBottom:"base",mx:{base:0,lg:6},children:[Object(T.jsx)(i.a,{children:"Documentation"}),Object(T.jsx)(i.a,{"data-testid":M.dependenciesTab,children:"Dependencies"})]}),Object(T.jsxs)(i.d,{maxW:"full",children:[Object(T.jsx)(i.c,{p:0,children:b?a?Object(T.jsx)(xe,{}):c?Object(T.jsx)(s.a,{minH:"16rem",children:Object(T.jsx)(l.a,{size:"xl"})}):n&&Object(T.jsx)(me,{assembly:t.data,markdown:j.data}):Object(T.jsx)(ye,{})}),Object(T.jsx)(i.c,{children:Object(T.jsx)(P,{})})]})]}),Object(T.jsx)(q,{})]})})},it=function(){return Object(T.jsx)(E,{children:Object(T.jsx)(ot,{})})},st=n(90),lt=function(){var e=Object(a.i)(),t=e.name,n=e.scope,r=Object(st.b)();if(r.loading||!r.data)return Object(T.jsx)(s.a,{minH:"16rem",children:Object(T.jsx)(l.a,{size:"xl"})});var o=function(e,t,n){var a=Object(j.c)(t,n),c=Object(j.a)(e,a);if(c){var r=c.version,o="/v/".concat(r);return"".concat("/packages/").concat(a).concat(o)}}(r.data,t,n);return o?Object(T.jsx)(a.a,{to:o}):Object(T.jsx)(c.default,{})},ut="[^@\\/]+",dt="@[^\\/]+",bt=function(){var e=Object(a.j)().path;return Object(T.jsxs)(a.d,{children:[Object(T.jsx)(a.b,{exact:!0,path:"".concat(e,"/:scope(").concat(dt,")?/:name(").concat(ut,")"),children:Object(T.jsx)(lt,{})}),Object(T.jsx)(a.b,{path:"".concat(e,"/:scope(").concat(dt,")?/:name(").concat(ut,")/v/:version"),children:Object(T.jsx)(it,{})}),Object(T.jsx)(a.b,{path:"*",children:Object(T.jsx)(c.NotFound,{})})]})}}}]);
2
- //# sourceMappingURL=6.7ba5b2e6.chunk.js.map
1
+ (this["webpackJsonpconstruct-hub-webapp"]=this["webpackJsonpconstruct-hub-webapp"]||[]).push([[6,11],{244:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var a=n(0),c=n(259),r={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"}}},o=n(121),i=n(1),s=function(e){var t=e.children,n=e.meta,s=e.pageName,l=Object(o.b)(r[s]);Object(a.useEffect)((function(){l()}),[l]);var u=n.suffix,d=void 0===u||u,b=n.title,j=n.description,h=d?"".concat(b," - Construct Hub"):b;return Object(i.jsxs)(i.Fragment,{children:[Object(i.jsxs)(c.a,{children:[!1,Object(i.jsx)("meta",{content:"width=device-width, initial-scale=1",name:"viewport"}),Object(i.jsx)("meta",{charSet:"utf-8"}),Object(i.jsx)("title",{children:h}),Object(i.jsx)("meta",{content:h,property:"og:title"}),Object(i.jsx)("meta",{content:h,name:"twitter:title"}),Object(i.jsx)("meta",{content:"summary",name:"twitter:card"}),Object(i.jsx)("meta",{content:j,name:"description"}),Object(i.jsx)("meta",{content:j,property:"og:description"}),Object(i.jsx)("meta",{content:j,name:"twitter:description"})]}),t]})}},254:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var a=n(0),c=n(21),r=function(){var e=Object(c.h)().search;return Object(a.useMemo)((function(){return new URLSearchParams(e)}),[e])}},255:function(e,t,n){"use strict";n.d(t,"a",(function(){return j}));var a=n(5),c=n(0),r=n(21),o=n(110),i=n(13),s=n(254),l=o.d.TypeScript,u="preferred-language",d=function(e){return null!=e&&o.e.has(e)},b=function(e){if(d(e))return e;try{var t,n=null!==(t=localStorage.getItem(u))&&void 0!==t?t:"";if(d(n))return n}catch(a){}return l},j=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.updateUrl,n=e.updateSaved,o=Object(r.h)(),l=o.pathname,j=o.hash,h=Object(r.g)(),f=h.replace,O=Object(s.a)(),p=O.get(i.b.LANGUAGE),m=Object(c.useState)((function(){return b(p)})),v=Object(a.a)(m,2),g=v[0],x=v[1];Object(c.useEffect)((function(){d(p)&&p!==g&&x(p)}),[p]),Object(c.useEffect)((function(){p!==g&&t&&(O.set(i.b.LANGUAGE,g),f({pathname:l,hash:j,search:O.toString()}))}),[g,t]);var y=Object(c.useCallback)((function(e){if(x(e),n)try{localStorage.setItem(u,e)}catch(t){}}),[n]);return Object(c.useMemo)((function(){return[g,y]}),[g,y])}},256:function(e,t,n){"use strict";n.d(t,"c",(function(){return c})),n.d(t,"b",(function(){return r})),n.d(t,"d",(function(){return o})),n.d(t,"a",(function(){return s}));var a=n(13),c=function(e,t){return t?"".concat(t,"/").concat(e):e},r=function(e,t,n){var r="".concat(a.a.PACKAGES_PREFIX,"/"),o=c(e,n),i="/v".concat(t);return"".concat(r).concat(o).concat(i)},o=function(e){var t=e;return(t.startsWith("~")||t.startsWith("^"))&&(t=t.substring(1)),t},i=function(e){return o(e).split(".")[0]},s=function(e,t){var n=e.packages.filter((function(e){return e.name===t}));return n.length>1?n.sort((function(e,t){var n=i(e.version);return i(t.version).localeCompare(n)}))[0]:n[0]}},262:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var a=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.map((function(e){return'"'.concat(e.map((function(e){return null!==e&&void 0!==e?e:"."})).join(" "),'"')})).join(" ")}},263:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var a=new Set(["aws-cdk","aws","awscdk","cdk-construct","cdk","construct","constructs"])},274:function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var a=n(90),c=function(e){var t=Object(a.b)().data;return(null!==t&&void 0!==t?t:{})[e]}},275:function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var a=n(6),c=n(24),r=n(17),o=n(197),i=n(606),s=n(1),l=["date","format"],u=Object(r.a)((function(e,t){var n=e.date,r=e.format,u=Object(c.a)(e,l);return Object(s.jsx)(o.a,Object(a.a)(Object(a.a)({as:"time",dateTime:n.toISOString(),ref:t},u),{},{children:Object(i.a)(n,r)}))}));u.displayName="Time"},276:function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var a=n(6),c=n(24),r=n(593),o=n(88),i=n(72),s=n(1),l=["children","language","value","label","zIndex"],u=function(e){var t=e.children,n=e.language,u=e.value,d=e.label,b=void 0===d?u:d,j=e.zIndex,h=Object(c.a)(e,l);return Object(s.jsx)(i.a,{"aria-label":"Tag: ".concat(b),to:Object(o.c)({query:"".concat(u),language:n}),zIndex:j,children:Object(s.jsx)(r.a,Object(a.a)(Object(a.a)({_hover:{textDecoration:"underline"}},h),{},{children:Object(s.jsx)(r.b,{children:t})}))})}},277:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var a=n(229),c=n(110),r=n(1),o=function(e){var t=e.children,n=e.language,o=c.e.has(n),i=c.b[n],s=o?"Click to view documentation in ".concat(i):"Documentation support for ".concat(i," is coming soon!");return Object(r.jsx)(a.a,{hasArrow:!0,label:s,placement:"top-start",children:Object(r.jsx)("span",{children:t})})}},289:function(e,t,n){"use strict";n.r(t),n.d(t,"NotFound",(function(){return p})),n.d(t,"default",(function(){return p}));var a=n(219),c=n(210),r=n(156),o=n(33),i=n(244),s=n(6),l=n(24),u=n(17),d=n(197),b=n(234),j=n(1),h=["sources"],f=Object(u.a)((function(e,t){var n=e.sources,a=Object(l.a)(e,h);return Object(j.jsxs)(d.a,{as:"picture",children:[null===n||void 0===n?void 0:n.map((function(e,t){return Object(j.jsx)("source",{media:e.media,srcSet:e.srcSet},t)})),Object(j.jsx)(b.a,Object(s.a)({ref:t},a))]})}));f.displayName="Picture";var O={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"},p=function(){return Object(j.jsx)(i.a,{meta:{title:"Not Found",description:"Oops! The page you were looking for does not exist"},pageName:"notFound",children:Object(j.jsxs)(a.a,{h:"100%",position:"relative",w:"100%",children:[Object(j.jsx)(f,{alt:"",inset:0,position:"absolute",sources:O.optimal,src:O.fallback,zIndex:"hide"}),Object(j.jsxs)(c.a,{align:"center",direction:"column",justify:"center",children:[Object(j.jsx)(f,{alt:"404 Image",sources:[{srcSet:"/assets/robot.webp"}],src:"/assets/robot.png"}),Object(j.jsx)(r.a,{as:o.b,colorScheme:"blue",to:"/",children:"Take Me Home"})]})]})})}},310:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return R}));var a,c=n(5),r=n(6),o=n(197),i=n(311),s=n(368),l=n.n(s),u=n(464),d=n.n(u),b=n(497),j=n.n(b),h=n(588),f=n(544),O=n.n(f),p=n(53),m=n(576),v=n(591),g=n(358),x=n(582),y=n(583),k=n(584),w=n(585),C=n(586),S=n(1),L={a:C.a,blockquote:C.b,caption:k.b,code:m.a,em:C.c,h1:v.a,h2:v.a,h3:v.a,h4:v.a,h5:v.a,h6:v.a,hr:g.a,img:x.a,li:y.a,ol:y.b,p:C.d,pre:C.e,sup:C.f,table:k.a,tbody:k.c,td:k.d,tfoot:k.e,th:k.f,thead:k.g,tr:k.h,ul:y.c},T=Object(r.a)({},i);T.attributes.span=(null!==(a=T.attributes.span)&&void 0!==a?a:[]).concat(["dataHeadingTitle","dataHeadingId"]);var I=[[d.a],[j.a,T]],A=[O.a,h.a],E=/^(?:(?:git@)?github\.com:|(?:https?:\/\/)github\.com\/)([^/]+)\/([^/]+)(?:\.git)?$/,R=function(t){var n=t.children,a=function(e){var t=e.type,n=e.url;if("git"===t){var a=E.exec(n);if(null!=a){var r=Object(c.a)(a,3);return{owner:r[1],repo:r[2]}}}}(t.repository),r=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"HEAD";return null==a?l.a.uriTransformer:function(n){var r=l.a.uriTransformer(n),o=Object(c.a)(r,1)[0];if("#"===o||"/"===o)return r;if(r.includes("://"))return r;var i=a.owner,s=a.repo.replace(/\.git$/,"");return"https://".concat(e,"/").concat(i,"/").concat(s,"/").concat(t,"/").concat(r)}};return e.byteLength(n)>1048576&&(n=[n=n.substring(0,n.lastIndexOf("# API Reference")),"# API Reference","The API Reference for this package could not be rendered.","If this issue persists, please let us know by creating an [issue](".concat(p.a,"/issues/new)")].join("\n")),Object(S.jsx)(o.a,{"data-testid":w.a.container,px:8,sx:{"& > *":{mb:8},"& > p":{lineHeight:"taller"}},children:Object(S.jsx)(l.a,{components:L,rehypePlugins:I,remarkPlugins:A,transformImageUri:r("raw.githubusercontent.com"),transformLinkUri:r("github.com","blob/HEAD"),children:n})})}}).call(this,n(364).Buffer)},358:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var a=n(6),c=n(212),r=n(1),o=function(e){return Object(r.jsx)(c.a,Object(a.a)({my:10},e))}},360:function(e,t,n){"use strict";n.d(t,"a",(function(){return x}));var a=n(6),c=n(24),r=n(197),o=n(589),i=n(579),s=n(210),l=n(596),u=n(597),d=n(17),b=n(595),j=n(208),h=n(1),f=["value"],O=Object(d.a)((function(e,t){var n=e.value,r=Object(c.a)(e,f),o=Object(b.a)(n),i=o.hasCopied,s=o.onCopy;return Object(h.jsx)(j.a,Object(a.a)({"aria-label":"Copy Button",h:6,icon:i?Object(h.jsx)(l.a,{color:"green.300"}):Object(h.jsx)(u.a,{}),minW:"auto",onClick:s,ref:t,variant:"ghost",w:6},r))}));O.displayName="CopyButton";var p=function(e){var t=e.code,n=e.tokens,c=e.getLineProps,o=e.getTokenProps;return Object(h.jsxs)(h.Fragment,{children:[Object(h.jsx)(s.a,{align:"center",bg:"rgba(0, 124, 253, 0.15)",justify:"flex-end",px:2,py:1,children:Object(h.jsx)(O,{_hover:{bg:"gray.300"},color:"gray.500",value:t})}),Object(h.jsx)(r.a,{overflowX:"auto",p:2,children:n.map((function(e,t){return Object(h.jsx)("div",Object(a.a)(Object(a.a)({},c({line:e,key:t})),{},{children:e.map((function(e,t){return Object(h.jsx)("span",Object(a.a)({},o({token:e,key:t})),t)}))}),t)}))})]})},m=n(150),v=function(e){var t=e.code,n=e.tokens,c=e.getLineProps,o=e.getTokenProps;return Object(h.jsxs)(m.a,{p:2,templateColumns:"1fr min-content",w:"full",children:[Object(h.jsx)(r.a,{maxW:"full",overflow:"auto",children:n.map((function(e,t){return Object(h.jsx)("div",Object(a.a)(Object(a.a)({},c({line:e,key:t})),{},{children:e.map((function(e,t){return Object(h.jsx)("span",Object(a.a)({},o({token:e,key:t})),t)}))}),t)}))}),Object(h.jsx)(r.a,{borderLeft:"base",ml:1,children:Object(h.jsx)(O,{color:"blue.500",colorScheme:"blue",ml:1,value:t,variant:"ghost"})})]})},g=["code","language"],x=function(e){var t=e.code,n=e.language,s=Object(c.a)(e,g);return Object(h.jsx)(o.a,Object(a.a)(Object(a.a)({},o.b),{},{code:t,language:n,theme:i.a,children:function(e){return Object(h.jsx)(r.a,Object(a.a)(Object(a.a)({as:"pre",border:"base",borderRadius:"md",boxShadow:"base",className:e.className,style:e.style},s),{},{children:e.tokens.length>1?Object(h.jsx)(p,Object(a.a)(Object(a.a)({},e),{},{code:t})):Object(h.jsx)(v,Object(a.a)(Object(a.a)({},e),{},{code:t}))}))}}))}},576:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var a=n(598),c=n(0),r=n(360),o=n(1),i=function(e){var t=e.inline,n=e.children,i=e.language,s=void 0===i?"typescript":i;if(t)return Object(o.jsx)(a.a,{bg:"gray.100",border:"1px solid",borderColor:"gray.100",borderRadius:"md",color:"blue.500",px:2,py:0,children:n});var l=c.Children.toArray(n).reduce((function(e,t){return"string"===typeof t?"".concat(e).concat(t):e}),"").trim();return Object(o.jsx)(r.a,{code:l,language:s})}},582:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var a=n(6),c=n(234),r=n(1),o=function(e){return Object(r.jsx)(c.a,Object(a.a)({display:"inline-block"},e))}},583:function(e,t,n){"use strict";n.d(t,"c",(function(){return r})),n.d(t,"b",(function(){return o})),n.d(t,"a",(function(){return i}));var a=n(220),c=n(1),r=function(e){var t=e.children;return Object(c.jsx)(a.c,{children:t})},o=function(e){var t=e.children;return Object(c.jsx)(a.b,{children:t})},i=function(e){var t=e.children;return Object(c.jsx)(a.a,{lineHeight:"tall",mb:2,sx:{"em:first-of-type":{mr:2,fontStyle:"italic",fontSize:"small"},"&::marker":{color:"blue.500"},code:{fontSize:"small"}},children:t})}},584:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var a=n(197),c=n(258);n.d(t,"e",(function(){return c.e})),n.d(t,"c",(function(){return c.c})),n.d(t,"d",(function(){return c.d})),n.d(t,"g",(function(){return c.g})),n.d(t,"h",(function(){return c.h})),n.d(t,"f",(function(){return c.f})),n.d(t,"b",(function(){return c.b}));var r=n(1),o=function(e){var t=e.children;return Object(r.jsx)(a.a,{maxW:"100%",overflowX:"auto",children:Object(r.jsx)(c.a,{variant:"striped",children:t})})}},585:function(e,t,n){"use strict";var a=n(61);t.a=Object(a.a)("markdown",["container"])},586:function(e,t,n){"use strict";n.d(t,"a",(function(){return b})),n.d(t,"b",(function(){return j})),n.d(t,"c",(function(){return h})),n.d(t,"d",(function(){return f})),n.d(t,"e",(function(){return O})),n.d(t,"f",(function(){return p}));var a=n(5),c=n(6),r=n(24),o=n(205),i=n(197),s=n(201),l=n(45),u=n(1),d=["children","href"],b=function(e){var t=e.children,n=e.href,a=Object(r.a)(e,d),i=o.a;try{if(n&&n.startsWith("http"))if(new URL(n).hostname!==window.location.hostname){i=function(e){return Object(u.jsx)(l.a,Object(c.a)({},e))}}}catch(s){i=o.a}return Object(u.jsx)(i,Object(c.a)(Object(c.a)({color:"blue.500",href:n,sx:{"> img + svg":{display:"none"}}},a),{},{children:t}))},j=function(e){var t=e.children;return Object(u.jsx)(i.a,{as:"blockquote",bg:"gray.100",borderLeft:"5px solid",borderLeftColor:"gray.200",borderRadius:"md",p:2,wordBreak:"break-word",children:t})},h=function(e){var t=e.children;return Object(u.jsx)(i.a,{as:"em",color:"blue.500",fontStyle:"normal",fontWeight:"semibold",children:t})},f=function(e){var t=e.children;return Object(u.jsx)(s.a,{children:t})},O=function(e){var t=e.children;return Object(u.jsx)(i.a,{as:"pre",children:t})},p=function(e){var t=e.children,n=void 0,c="";if(Array.isArray(t)){var r=Object(a.a)(t,1)[0];"string"===typeof r&&(c=r)}return"Required"===c?n="orange.500":"Optional"===c&&(n="green.500"),Object(u.jsx)(i.a,{as:"sup",color:n,ml:2,top:-1,children:t})}},591:function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var a=n(221),c=n(0),r=n(580),o=n.n(r),i=n(72),s=n(358),l=n(1),u=function(e){var t,n,r=e.level,u=e.children,d=["2xl","xl","lg","md","sm","xs"][r-1],b=[10,10,10,8,8,8][r-1],j="h".concat(r),h=(new DOMParser).parseFromString(o.a.renderToStaticMarkup(u),"text/html").querySelector("span[data-heading-title][data-heading-id]"),f=null!==(t=null===h||void 0===h?void 0:h.dataset.headingTitle)&&void 0!==t?t:c.Children.toArray(u).reduce((function(e,t){return"string"===typeof t?"".concat(e).concat(t):e}),"").trim(),O=null!==(n=null===h||void 0===h?void 0:h.dataset.headingId)&&void 0!==n?n:f.toLowerCase().replace(/[^a-zA-Z0-9 ]/g,"").replace(/ /g,"-"),p=r<4;return Object(l.jsxs)(l.Fragment,{children:[Object(l.jsx)(a.a,{as:j,color:"blue.800",level:r,mb:p?0:r,mt:b,size:d,children:Object(l.jsx)(i.a,{"data-heading-id":O,"data-heading-level":r,"data-heading-title":f,id:O,replace:!0,sx:{"> code":{color:"blue.800",fontSize:"inherit"}},to:"#".concat(O),children:u})}),p&&Object(l.jsx)(s.a,{mb:b,mt:0,sx:{"& + hr":{display:"none"}}})]})}},605:function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return bt}));var a=n(21),c=n(289),r=n(5),o=n(150),i=n(590),s=n(219),l=n(202),u=n(0),d=n(244),b=n(235),j=n(256),h=n(72),f=n(75),O=n(88),p=n(27),m=n.n(p),v=n(41),g=n(13),x=function(){var e=Object(v.a)(m.a.mark((function e(t,n,a){var c,r;return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return c="".concat(Object(j.b)(t,n,a)).concat(g.a.ASSEMBLY_SUFFIX),e.next=3,fetch(c);case 3:if((r=e.sent).ok){e.next=6;break}throw new Error("Failed fetching assembly for ".concat(c,": ").concat(r.statusText));case 6:return e.abrupt("return",r.json());case 7:case"end":return e.stop()}}),e)})));return function(t,n,a){return e.apply(this,arguments)}}(),y=function(){var e=Object(v.a)(m.a.mark((function e(t,n,a,c,r){var o,i,s,l,u;return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o="/docs-".concat(r?"".concat(r,"-"):"").concat(a,".md"),i="".concat(Object(j.b)(t,n,c)).concat(o),e.next=4,fetch(i);case 4:if((s=e.sent).ok){e.next=7;break}throw new Error("Failed fetching documentation for ".concat(i,": ").concat(s.statusText));case 7:if(l="text/markdown",(u=s.headers.get("Content-Type"))&&u.includes(l)){e.next=11;break}throw new Error("Invalid content type: ".concat(u,". Expected ").concat(l,'"'));case 11:return e.abrupt("return",s.text());case 12:case"end":return e.stop()}}),e)})));return function(t,n,a,c,r){return e.apply(this,arguments)}}(),k=function(){var e=Object(v.a)(m.a.mark((function e(t,n,a){var c,r,o;return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(c=n).startsWith("^")&&(c=c.substring(1,c.length)),r="".concat(Object(j.b)(t,n,a)).concat(g.a.METADATA_SUFFIX),e.next=5,fetch(r);case 5:if((o=e.sent).ok){e.next=8;break}throw new Error("Failed fetching metadata for ".concat(r,": ").concat(o.statusText));case 8:return e.abrupt("return",o.json());case 9:case"end":return e.stop()}}),e)})));return function(t,n,a){return e.apply(this,arguments)}}(),w=n(110),C=n(255),S=n(254),L=n(76),T=n(1),I=Object(u.createContext)(void 0),A=function(){var e=Object(u.useContext)(I);if(!e)throw new Error("This component must be a child of a <PackageStateProvider />");return e},E=function(e){var t,n,o,i,s,l=e.children,d=Object(a.i)(),b=d.name,j=d.scope,h=d.version,f=Object(L.a)(y),O=Object(r.a)(f,2),p=O[0],m=O[1],v=Object(L.a)(x),A=Object(r.a)(v,2),E=A[0],R=A[1],M=Object(L.a)(k),P=Object(r.a)(M,2),z=P[0],F=P[1],B=Object(S.a)(),D=Object(C.a)(),W=Object(r.a)(D,1)[0],N=null!==(t=B.get(g.b.SUBMODULE))&&void 0!==t?t:"";Object(u.useEffect)((function(){z(b,h,j),E(b,h,j)}),[b,E,z,j,h]),Object(u.useEffect)((function(){p(b,h,w.f[W],j,N)}),[b,j,h,W,N,p]);var U="".concat(j?"".concat(j,"/").concat(b):b," ").concat(h),H=null!==(n=null===(o=R.data)||void 0===o?void 0:o.description)&&void 0!==n?n:"",G=Boolean(m.error||R.error),q=Boolean(!m.loading&&!R.loading&&m.data&&R.data),Z=Boolean(W===w.d.TypeScript||R.loading||R.error||null!=(null===(i=R.data)||void 0===i||null===(s=i.targets)||void 0===s?void 0:s[W.toString()])),_=Boolean(!F.loading&&(R.loading||m.loading));return R.error?Object(T.jsx)(c.NotFound,{}):Object(T.jsx)(I.Provider,{value:{assembly:R,hasDocs:q,hasError:G,isLoadingDocs:_,isSupported:Z,language:W,markdown:m,metadata:F,name:b,pageDescription:H,pageTitle:U,scope:j,version:h},children:l})},R=n(61),M=Object(R.a)("package-page",["page","feedbackLinks","reportLink","githubLink","dependenciesTab","dependenciesList","dependenciesLink"]),P=function(){var e,t=A().assembly.data;if(!t)return Object(T.jsx)(f.a,{});var n=Object.entries(null!==(e=t.dependencies)&&void 0!==e?e:{});return n.length?Object(T.jsx)(b.a,{"data-testid":M.dependenciesList,direction:"row",justify:"center",mx:"auto",spacing:4,wrap:"wrap",children:n.map((function(e){var t=Object(r.a)(e,2),n=t[0],a=t[1];return Object(T.jsx)(h.a,{_first:{ml:4},"data-testid":M.dependenciesLink,fontWeight:"semibold",p:2,to:Object(O.a)({name:n,version:Object(j.d)(a)}),children:n},"".concat(n,"-").concat(a))}))}):Object(T.jsx)(s.a,{children:"This library does not have any known dependencies"})},z=n(6),F=n(594),B=n(156),D=n(210),W=n(205),N=n(45),U=n(108),H=function(e){return Object(T.jsxs)(U.a,Object(z.a)(Object(z.a)({},e),{},{children:[Object(T.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:"#002954",fillRule:"evenodd"}),Object(T.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:"#181616"})]}))},G={h:5,ml:2,w:5},q=function(){var e,t=A(),n=t.metadata.data,a=t.assembly.data;if(!a||!n)return null;var c=null!==(e=null===a||void 0===a?void 0:a.repository)&&void 0!==e?e:{},r=null;if("git"===c.type){var o,i=(null===(o=c.url)||void 0===o?void 0:o.endsWith(".git"))?c.url.replace(".git",""):c.url;i.endsWith("/")&&(i=i.slice(0,i.length-1)),r=Object(T.jsx)(B.a,{as:N.a,color:"black","data-testid":M.githubLink,hasIcon:!1,href:"".concat(i,"/issues"),rightIcon:Object(T.jsx)(H,Object(z.a)({},G)),variant:"solid",children:"Provide Feedback"})}return Object(T.jsxs)(D.a,{align:"center",borderTop:"1px solid",borderTopColor:"blue.50",color:"blue.500","data-testid":M.feedbackLinks,direction:"row",justify:"space-evenly",mx:8,py:10,children:[Object(T.jsx)(B.a,{as:W.a,colorScheme:"blue","data-testid":M.reportLink,href:"mailto:abuse@amazonaws.com?subject=".concat(encodeURIComponent("ConstructHub - Report of abusive package: ".concat(null===a||void 0===a?void 0:a.name))),rightIcon:Object(T.jsx)(F.a,Object(z.a)({},G)),children:"Report this package"}),r]})},Z=n(18),_=n(197),V=n(310),X=n(215),J=n(587),K=n(203),Y=n(208),$={color:"gray.900",h:4,w:4},Q=function e(t){var n,c=t.children,r=t.display,o=t.url,i=t.onOpen,s=Object(a.h)(),l=s.pathname,d=s.hash,b=o.startsWith("#"),j=b?d===o:l===o,f=Object(K.a)({onOpen:i,defaultIsOpen:!0}),O=(null!==(n=null===c||void 0===c?void 0:c.length)&&void 0!==n?n:0)>0,p=f.isOpen&&O,m=b?W.a:h.a,v=Object(u.useMemo)((function(){return null===c||void 0===c?void 0:c.map((function(t,n){return Object(u.createElement)(e,Object(z.a)(Object(z.a)({},t),{},{key:n,onOpen:f.onOpen}))}))}),[c,f.onOpen]);return Object(T.jsxs)(D.a,{direction:"column",children:[Object(T.jsxs)(D.a,{align:"center",color:j?"blue.500":"gray.800",children:[O&&Object(T.jsx)(Y.a,{"aria-label":"expand-toggle",borderRadius:"md",h:4,icon:f.isOpen?Object(T.jsx)(X.a,Object(z.a)({},$)):Object(T.jsx)(J.a,Object(z.a)({},$)),ml:-1,onClick:f.onToggle,size:"xs",variant:"link",w:4}),Object(T.jsx)(m,{_hover:{bg:"rgba(0, 124, 253, 0.05)"},href:o,overflow:"hidden",pl:O?1:2,py:1.5,textOverflow:"ellipsis",title:r,to:o,w:"100%",whiteSpace:"nowrap",children:r})]}),Object(T.jsx)(_.a,{_before:{bg:"gray.100",bottom:0,content:'""',left:0,position:"absolute",top:0,w:"1px"},display:p?"initial":"none",ml:2,pl:2,position:"relative",children:v})]})},ee=function(e){var t=e.items;return Object(T.jsx)(D.a,{direction:"column",maxWidth:"100%",children:t.map((function(e,t){return Object(u.createElement)(Q,Object(z.a)(Object(z.a)({},e),{},{key:t,onOpen:void 0}))}))})},te=n(599),ne=n(212),ae=n(46),ce=n(220),re=n(144),oe=n(218),ie=n(17),se=n(216),le=n(217),ue=n(233),de=n(142),be=n(143),je=Object(ie.a)((function(e,t){var n=e.value,a=e.onChange,c=e.onSubmit,o=Object(u.useState)(n),i=Object(r.a)(o,2),s=i[0],l=i[1];return Object(be.a)(s,{onChange:a}),Object(T.jsx)(de.a,{"data-testid":"choose-submodule-search-form",onSubmit:c,children:Object(T.jsxs)(se.a,{children:[Object(T.jsx)(le.a,{children:Object(T.jsx)(oe.a,{color:"gray.400"})}),Object(T.jsx)(ue.a,{"data-testid":"choose-submodule-search-input",onChange:function(e){return l(e.target.value)},placeholder:"Search",ref:t,value:s,variant:"filled"})]})})}));je.displayName="SearchInput";var he=function(e){var t=e.inputValue,n=e.isOpen,c=e.onClose,r=e.onInputChange,o=e.submodules,i=Object(u.useRef)(null),s=Object(a.g)().push,l=Object(u.useCallback)((function(e){c(),s(e)}),[c,s]),d=Object(u.useCallback)((function(e){if(e.preventDefault(),o.length){var t=o[0].to;l(t)}}),[l,o]);return Object(T.jsx)(ae.a,{initialFocusRef:i,isOpen:n,onClose:c,children:Object(T.jsx)(ae.h,{children:Object(T.jsxs)(ae.d,{mx:4,children:[Object(T.jsx)(ae.c,{"data-testid":"choose-submodule-modal-close"}),Object(T.jsx)(ae.g,{"data-testid":"choose-submodule-modal-header",fontSize:"lg",fontWeight:"bold",children:"Choose a submodule"}),Object(T.jsxs)(ae.b,{"data-testid":"choose-submodule-modal-body",p:0,children:[Object(T.jsx)(_.a,{pb:4,px:4,children:Object(T.jsx)(je,{onChange:r,onSubmit:d,ref:i,value:t})}),Object(T.jsx)(ne.a,{}),Object(T.jsx)(ce.c,{"data-testid":"choose-submodule-modal-results",m:0,maxH:"50vh",overflow:"hidden auto",p:0,role:"listbox",tabIndex:-1,children:o.map((function(e){var t=e.name,n=e.to;return Object(T.jsx)(re.a,{"data-testid":"choose-submodule-result",name:t,onClick:function(){return l(n)}},t)}))})]})]})})})},fe=function(e){var t,n=e.assembly,c=Object(a.h)().pathname,o=Object(a.g)().push,i=Object(S.a)(),s=Object.keys(null!==(t=null===n||void 0===n?void 0:n.submodules)&&void 0!==t?t:{}),l=Object(K.a)(),d=l.isOpen,j=l.onOpen,h=l.onClose,f=i.get(g.b.SUBMODULE),O=f?"Submodule: ".concat(f):"Choose Submodule",p=Object(u.useState)(""),m=Object(r.a)(p,2),v=m[0],x=m[1],y=Object(u.useCallback)((function(e){var t=new URLSearchParams(i.toString());return t.set("submodule",e),"".concat(c,"?").concat(t)}),[c,i]),k=Object(u.useMemo)((function(){var e=s;return v&&(e=e.filter((function(e){return e.toLowerCase().includes(v.toLowerCase())}))),e.map((function(e){var t=e.split(".")[1];return{name:t,to:y(t)}}))}),[s,v,y]);return 0===s.length?null:Object(T.jsxs)(b.a,{spacing:4,w:"100%",children:[f&&Object(T.jsxs)(T.Fragment,{children:[Object(T.jsx)(B.a,{borderRadius:"none","data-testid":"choose-submodule-go-back",leftIcon:Object(T.jsx)(te.a,{"aria-label":"Back to construct root"}),onClick:function(){var e=i.get(g.b.LANGUAGE);o("".concat(c).concat(e?"?".concat(g.b.LANGUAGE,"=").concat(e):""))},title:"Back to construct root",variant:"link",children:null===n||void 0===n?void 0:n.name}),Object(T.jsx)(ne.a,{})]}),Object(T.jsx)(B.a,{borderRadius:"none",color:"blue.500","data-testid":"choose-submodule-search-trigger",flexGrow:1,onClick:j,rightIcon:Object(T.jsx)(X.a,{}),title:"Choose Submodule",variant:"link",children:O}),Object(T.jsx)(he,{inputValue:v,isOpen:d,onClose:h,onInputChange:x,submodules:k})]})},Oe=function e(t,n){if(!(n instanceof HTMLElement))return t;var a=n.dataset,c=a.headingId,r=a.headingLevel,o=void 0===r?"100":r,i=n.innerText,s=parseInt(o);if(s>3||!i||!c)return t;var l=t[t.length-1];return null==l||l.level>=s?[].concat(Object(Z.a)(t),[{display:i,url:"#".concat(c),level:s,children:[]}]):(l.children=e(l.children,n),t)},pe="4.5rem",me=function(e){var t,n=e.markdown,c=e.assembly,i=Object(u.useState)([]),s=Object(r.a)(i,2),l=s[0],d=s[1];Object(u.useEffect)((function(){var e=Object(Z.a)(document.querySelectorAll("[data-heading-id][data-heading-title][data-heading-level]")).reduce(Oe,[]);d(e)}),[n]);var b=Object(a.h)().hash;Object(u.useEffect)((function(){if(b){var e=document.querySelector("".concat(b));null===e||void 0===e||e.scrollIntoView(!0)}}),[n]);var j=Object(u.useMemo)((function(){return Object(T.jsx)(V.a,{repository:c.repository,children:n})}),[c.repository,n]);return Object(T.jsxs)(o.a,{bg:"white",columnGap:4,h:"100%",templateColumns:{base:"1fr",md:"1fr 3fr"},width:"100%",children:[Object(T.jsxs)(D.a,{alignSelf:"stretch",borderRight:"1px solid",borderRightColor:"blue.50",direction:"column",display:{base:"none",md:"flex"},maxHeight:"calc(100vh - ".concat(pe,")"),overflow:"hidden auto",pl:6,position:"sticky",pr:4,top:pe,children:[Object.keys(null!==(t=null===c||void 0===c?void 0:c.submodules)&&void 0!==t?t:{}).length>0&&Object(T.jsx)(D.a,{borderBottom:"1px solid",borderColor:"blue.50",justify:"center",py:4,children:Object(T.jsx)(fe,{assembly:c})}),Object(T.jsx)(_.a,{overflowY:"auto",py:4,children:Object(T.jsx)(ee,{items:l})})]}),Object(T.jsx)(_.a,{h:"max-content",maxWidth:"100%",overflow:"hidden",py:4,sx:{a:{scrollMarginTop:pe}},children:j})]})},ve=n(201),ge=n(53),xe=function(){var e=A().language,t=Object(T.jsx)(N.a,{href:"".concat(ge.a,"/issues/new"),children:"issue"});return Object(T.jsxs)(ve.a,{align:"center",fontSize:"xl",fontStyle:"oblique",px:4,wordBreak:"break-word",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,"."]})},ye=function(){var e=A().language,t=w.b[e];return Object(T.jsxs)(ve.a,{align:"center",fontSize:"xl",fontStyle:"oblique",px:4,wordBreak:"break-word",children:["This package does not currently support ",t,". Select one of the supported languages above, or ask the author to add support for"," ",t," in a future release."]})},ke=n(277),we=function(e){var t=e.targetLanguages,n=e.selectedLanguage,a=e.setSelectedLanguage;return Object(T.jsx)(b.a,{align:"center","data-testid":"language-bar",direction:"row",spacing:2,children:Object(Z.a)(t).sort((function(e,t){return w.a.indexOf(e)-w.a.indexOf(t)})).map((function(e){var t=!w.e.has(e),c=e===n,r=w.c[e].icon;return Object(T.jsx)(ke.a,{language:e,children:Object(T.jsx)(Y.a,{"aria-label":"Select ".concat(e," icon"),border:c?"1px solid":"none",borderColor:"blue.500",borderRadius:"lg",boxShadow:"base",colorScheme:"blue",cursor:t?"not-allowed":"pointer","data-testid":"language-".concat(e),disabled:t,icon:Object(T.jsx)(r,{"aria-label":"".concat(e,"-icon"),borderRadius:"sm",height:[4,5,6],width:[4,5,6]}),onClick:function(){c||a(e)},p:1,variant:"outline",w:"max-content"})},e)}))})},Ce=new Set(w.a),Se=function(){var e,t=A(),n=t.assembly.data,a=t.language,c=Object(C.a)({updateSaved:!0,updateUrl:!0}),o=Object(r.a)(c,2)[1],i=Object(C.a)({updateUrl:!0}),s=Object(r.a)(i,2)[1],l=[].concat(Object(Z.a)(Object.keys(null!==(e=null===n||void 0===n?void 0:n.targets)&&void 0!==e?e:{})),[w.d.TypeScript]),d=l.includes(a);Object(u.useEffect)((function(){d||s(w.d.TypeScript)}),[d]);var b={selectedLanguage:d?a:w.d.TypeScript,setSelectedLanguage:o,targetLanguages:l.filter((function(e){return Ce.has(e)}))};return Object(T.jsx)(we,Object(z.a)({},b))},Le=n(592),Te=n(206),Ie=n(24),Ae="https://opensource.org/licenses",Ee={"Apache-2.0":"".concat(Ae,"/apache2.0.php"),"BSD-2-Clause":"".concat(Ae,"/bsd-license.php"),MIT:"".concat(Ae,"/mit-license.php")},Re=["license"],Me=Object(ie.a)((function(e,t){var n=e.license,a=Object(Ie.a)(e,Re),c=Ee[n];return Object(T.jsx)(N.a,Object(z.a)(Object(z.a)({href:c,ref:t},a),{},{children:n}))}));Me.displayName="LicenseLink";var Pe=n(275),ze=n(89),Fe=n(274),Be=n(600),De=["openText","closeText","isOpen"],We=function(e){var t=e.openText,n=e.closeText,a=e.isOpen,c=Object(Ie.a)(e,De);return Object(T.jsx)(B.a,Object(z.a)(Object(z.a)({colorScheme:"blue",leftIcon:a?Object(T.jsx)(Be.a,{}):Object(T.jsx)(X.a,{}),variant:"link"},c),{},{children:a?n:t}))},Ne=function(e){var t=e.children,n=e.label;return Object(T.jsxs)(ve.a,{fontWeight:"bold",children:[n,":"," ",Object(T.jsx)(_.a,{as:"span",fontWeight:"normal",children:t})]})},Ue=function(e){var t=e.downloads;return Object(T.jsxs)(b.a,{align:"center",direction:"row",spacing:1,children:[Object(T.jsx)(Le.a,{color:"gray.700"}),Object(T.jsxs)(ve.a,{children:[Object(T.jsx)(_.a,{as:"span",color:"blue.500",children:t.toLocaleString()})," ","Downloads"]})]})},He=function(e){var t=A(),n=Object(ze.b)().data,a=Object(K.a)(),c=Object(Fe.a)("packageLinks"),r=function(e){var t=e.assembly,n=e.metadata,a=e.name,c=e.packageLinks,r=e.stats,o=[];if(t||n||r||c){var i,s,l,d=null===r||void 0===r||null===(i=r.packages)||void 0===i||null===(s=i[a])||void 0===s||null===(l=s.downloads)||void 0===l?void 0:l.npm;void 0!==d&&o.push(Object(T.jsx)(Ue,{downloads:d}));var b=null===t||void 0===t?void 0:t.author.name,j=null===t||void 0===t?void 0:t.repository,f=null===t||void 0===t?void 0:t.license;if(b){var p=Object(T.jsx)(h.a,{color:"blue.500",to:Object(O.c)({query:b}),children:b});o.push(Object(T.jsx)(Ne,{label:"Author",children:p}))}var m=null===n||void 0===n?void 0:n.date;if(m){var v=Object(T.jsx)(Pe.a,{date:new Date(m),fontWeight:"normal",format:"MMMM dd, yyyy"});o.push(Object(T.jsx)(Ne,{label:"Published",children:v}))}if((null===c||void 0===c?void 0:c.length)&&c.forEach((function(e){var t,a=e.linkLabel,c=e.configKey,r=e.linkText,i=(null!==(t=null===n||void 0===n?void 0:n.packageLinks)&&void 0!==t?t:{})[c];if(i){var s=Object(T.jsx)(N.a,{href:i,children:null!==r&&void 0!==r?r:i});o.push(Object(T.jsxs)(Ne,{label:a,children:[a,": ",s]}))}})),j){var g=Object(O.b)(j.url);if(g){var x=Object(T.jsx)(N.a,{href:g.url,children:g.hostname});o.push(Object(T.jsx)(Ne,{label:"Repository",children:x}))}}if(f&&f in Ee){var y=Object(T.jsx)(Me,{license:f});o.push(Object(T.jsx)(Ne,{label:"License",children:y}))}}return o.map((function(e,t){return Object(T.jsx)(u.Fragment,{children:e},t)}))}({assembly:t.assembly.data,metadata:t.metadata.data,name:t.scope?"".concat(t.scope,"/").concat(t.name):t.name,packageLinks:c,stats:n});if(!r.length)return null;var o=r.slice(0,2),i=r.slice(2,r.length);return Object(T.jsxs)(b.a,Object(z.a)(Object(z.a)({align:"start",color:"gray.600",fontSize:".75rem",mt:2,spacing:2},e),{},{children:[o,i.length>0&&Object(T.jsxs)(T.Fragment,{children:[Object(T.jsx)(Te.a,{animateOpacity:!0,in:a.isOpen,children:Object(T.jsx)(b.a,{spacing:2,children:i})}),Object(T.jsx)(We,{closeText:"See less details",fontSize:"inherit",isOpen:a.isOpen,onClick:a.onToggle,openText:"See more details"})]})]}))},Ge=n(262),qe="heading",Ze="install",_e="languages",Ve="meta",Xe=Object(Ge.a)([qe],[Ve],[_e],[Ze]),Je=Object(Ge.a)([qe,_e,Ze],[qe,null,Ve]),Ke=function(e){var t=e.children;return Object(T.jsx)(o.a,{columnGap:{md:6,lg:10},pt:{base:3,md:6},px:{base:5,md:6,lg:10},rowGap:{base:4,md:0},templateAreas:{base:Xe,md:Je},templateColumns:{base:"1fr",md:"1fr auto 15rem"},templateRows:{md:"auto 1fr"},children:t})},Ye=n(221),$e=n(123),Qe=n(276),et=n(263),tt=["assembly","name","description","metadata"],nt=function(e){var t,n,a,c=e.assembly,r=e.name,o=e.description,i=e.metadata,s=Object(Ie.a)(e,tt),l=[].concat(Object(Z.a)((null!==(t=i.packageTags)&&void 0!==t?t:[]).filter((function(e){return Boolean(e.keyword)}))),Object(Z.a)((null!==(n=c.keywords)&&void 0!==n?n:[]).filter((function(e){return Boolean(e)&&!et.a.has(e)})).map((function(e){return{id:e,keyword:{label:e}}})))),u=null!==(a=i.constructFramework)&&void 0!==a?a:{};return Object(T.jsxs)(b.a,Object(z.a)(Object(z.a)({lineHeight:"1.5",spacing:2},s),{},{children:[Object(T.jsx)(Ye.a,{color:"blue.800",fontSize:"1.5rem",children:r}),Object(T.jsx)(ve.a,{fontSize:"1rem",children:o}),Object(T.jsxs)(b.a,{align:"center",direction:"row",pt:3,spacing:2,children:[Object(T.jsx)($e.a,Object(z.a)({},u)),Object(T.jsx)($e.b,Object(z.a)({color:"gray.700",fontSize:".75rem",fontWeight:"semibold"},u)),l.slice(0,3).map((function(e){var t=e.id,n=e.keyword,a=(n=void 0===n?{}:n).label,c=n.color;return Object(T.jsx)(Qe.a,{mr:1,value:t,variant:c,children:a},t)}))]})]}))},at=n(360),ct=function(e){var t=A(),n=t.language,a=t.assembly.data,c=Object(K.a)();if(!a)return null;var r=function(e){var t=e.language,n=e.assembly,a=n.version;if(t===w.d.TypeScript){var c=n.name;return"npm install ".concat(c,"@").concat(a)}if(t===w.d.Python){var r,o,i=null===(r=n.targets)||void 0===r||null===(o=r.python)||void 0===o?void 0:o.distName;if(!i)return;return"pip install ".concat(i,"==").concat(a)}if(t===w.d.Java){var s,l,u,d,b,j,h=null===(s=n.targets)||void 0===s||null===(l=s.java)||void 0===l||null===(u=l.maven)||void 0===u?void 0:u.groupId,f=null===(d=n.targets)||void 0===d||null===(b=d.java)||void 0===b||null===(j=b.maven)||void 0===j?void 0:j.artifactId;if(!h||!f)return;return["// add this to your pom.xml","<dependency>"," <groupId>".concat(h,"</groupId>")," <artifactId>".concat(f,"</artifactId>")," <version>".concat(a,"</version>"),"</dependency>"].join("\n")}if(t===w.d.DotNet){var O,p,m=null===(O=n.targets)||void 0===O||null===(p=O.dotnet)||void 0===p?void 0:p.packageId;if(!m)return;return"dotnet add package ".concat(m," --version ").concat(a)}}({language:n,assembly:a});return r&&n?Object(T.jsx)(D.a,Object(z.a)(Object(z.a)({align:"start",direction:"column",fontSize:".75rem"},e),{},{children:n===w.d.Java?Object(T.jsxs)(T.Fragment,{children:[Object(T.jsx)(We,{closeText:"Hide",fontSize:"inherit",isOpen:c.isOpen,mt:2,onClick:c.onToggle,openText:"Install"}),Object(T.jsx)(_.a,{maxW:"full",overflow:"hidden",children:Object(T.jsx)(Te.a,{in:c.isOpen,children:Object(T.jsx)(at.a,{boxShadow:"none",code:r,fontSize:"inherit",language:n,mt:2})})})]}):Object(T.jsx)(at.a,{boxShadow:"none",code:r,fontSize:"inherit",language:n,lineHeight:"2",mt:1,sx:{"> div":{p:1}}})})):null},rt=function(){var e=A(),t=e.assembly,n=e.metadata,a=t.data,c=n.data;return a&&c?Object(T.jsxs)(Ke,{children:[Object(T.jsx)(nt,{assembly:a,description:a.description,gridArea:qe,metadata:c,name:a.name}),Object(T.jsx)(D.a,{align:"start",gridArea:_e,children:Object(T.jsx)(Se,{})}),Object(T.jsxs)(D.a,{direction:"column",gridArea:Ve,children:[Object(T.jsx)(ne.a,{borderBottom:"base",display:{md:"none"},mb:2}),Object(T.jsx)(He,{}),Object(T.jsx)(ne.a,{borderBottom:"base",display:{md:"none"},mt:2})]}),Object(T.jsx)(D.a,{align:"start",gridArea:Ze,children:Object(T.jsx)(ct,{})})]}):Object(T.jsx)(l.a,{mx:"auto",my:10,size:"xl"})},ot=function(){var e=A(),t=e.assembly,n=e.hasDocs,a=e.hasError,c=e.isLoadingDocs,b=e.isSupported,j=e.markdown,h=e.pageDescription,f=e.pageTitle,O=Object(u.useState)(0),p=Object(r.a)(O,2),m=p[0],v=p[1];return Object(u.useEffect)((function(){v(0)}),[f]),Object(T.jsx)(d.a,{meta:{title:f,description:h},pageName:"packageProfile",children:Object(T.jsxs)(o.a,{bg:"white","data-testid":M.page,maxW:"100vw",templateColumns:"1fr",templateRows:"auto 1fr auto",children:[Object(T.jsx)(rt,{}),Object(T.jsxs)(i.e,{index:m,onChange:v,pt:4,variant:"line",children:[Object(T.jsxs)(i.b,{borderBottom:"base",mx:{base:0,lg:6},children:[Object(T.jsx)(i.a,{children:"Documentation"}),Object(T.jsx)(i.a,{"data-testid":M.dependenciesTab,children:"Dependencies"})]}),Object(T.jsxs)(i.d,{maxW:"full",children:[Object(T.jsx)(i.c,{p:0,children:b?a?Object(T.jsx)(xe,{}):c?Object(T.jsx)(s.a,{minH:"16rem",children:Object(T.jsx)(l.a,{size:"xl"})}):n&&Object(T.jsx)(me,{assembly:t.data,markdown:j.data}):Object(T.jsx)(ye,{})}),Object(T.jsx)(i.c,{children:Object(T.jsx)(P,{})})]})]}),Object(T.jsx)(q,{})]})})},it=function(){return Object(T.jsx)(E,{children:Object(T.jsx)(ot,{})})},st=n(73),lt=function(){var e=Object(a.i)(),t=e.name,n=e.scope,r=Object(st.b)();if(r.loading||!r.data)return Object(T.jsx)(s.a,{minH:"16rem",children:Object(T.jsx)(l.a,{size:"xl"})});var o=function(e,t,n){var a=Object(j.c)(t,n),c=Object(j.a)(e,a);if(c){var r=c.version,o="/v/".concat(r);return"".concat("/packages/").concat(a).concat(o)}}(r.data,t,n);return o?Object(T.jsx)(a.a,{to:o}):Object(T.jsx)(c.default,{})},ut="[^@\\/]+",dt="@[^\\/]+",bt=function(){var e=Object(a.j)().path;return Object(T.jsxs)(a.d,{children:[Object(T.jsx)(a.b,{exact:!0,path:"".concat(e,"/:scope(").concat(dt,")?/:name(").concat(ut,")"),children:Object(T.jsx)(lt,{})}),Object(T.jsx)(a.b,{path:"".concat(e,"/:scope(").concat(dt,")?/:name(").concat(ut,")/v/:version"),children:Object(T.jsx)(it,{})}),Object(T.jsx)(a.b,{path:"*",children:Object(T.jsx)(c.NotFound,{})})]})}}}]);
2
+ //# sourceMappingURL=6.0fcd2680.chunk.js.map