construct-hub 0.3.159 → 0.3.160

Sign up to get free protection for your applications and to get access to all the features.
Files changed (28) 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/s3/storage.js +1 -1
  7. package/lib/spdx-license.js +1 -1
  8. package/package.json +3 -3
  9. package/website/asset-manifest.json +16 -16
  10. package/website/index.html +1 -1
  11. package/website/static/js/{5.a4f881bb.chunk.js → 5.a110843d.chunk.js} +3 -3
  12. package/website/static/js/{5.a4f881bb.chunk.js.LICENSE.txt → 5.a110843d.chunk.js.LICENSE.txt} +0 -0
  13. package/website/static/js/{5.a4f881bb.chunk.js.map → 5.a110843d.chunk.js.map} +1 -1
  14. package/website/static/js/{6.18141b48.chunk.js → 6.8944c773.chunk.js} +2 -2
  15. package/website/static/js/{6.18141b48.chunk.js.map → 6.8944c773.chunk.js.map} +1 -1
  16. package/website/static/js/{7.63bdaf91.chunk.js → 7.80720b8b.chunk.js} +2 -2
  17. package/website/static/js/{7.63bdaf91.chunk.js.map → 7.80720b8b.chunk.js.map} +1 -1
  18. package/website/static/js/8.e4b13e68.chunk.js +2 -0
  19. package/website/static/js/8.e4b13e68.chunk.js.map +1 -0
  20. package/website/static/js/main.ded71e5d.chunk.js +2 -0
  21. package/website/static/js/main.ded71e5d.chunk.js.map +1 -0
  22. package/website/static/js/runtime-main.e4632d3a.js +2 -0
  23. package/website/static/js/{runtime-main.99def073.js.map → runtime-main.e4632d3a.js.map} +1 -1
  24. package/website/static/js/8.faf3cfee.chunk.js +0 -2
  25. package/website/static/js/8.faf3cfee.chunk.js.map +0 -1
  26. package/website/static/js/main.d24d1665.chunk.js +0 -2
  27. package/website/static/js/main.d24d1665.chunk.js.map +0 -1
  28. package/website/static/js/runtime-main.99def073.js +0 -2
@@ -1,2 +1,2 @@
1
- (this["webpackJsonpconstruct-hub-webapp"]=this["webpackJsonpconstruct-hub-webapp"]||[]).push([[7,13],{208:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var a=n(0),c=n(225),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"}}},o=n(34),i=n(2),s=(["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(" "),function(e){var t=e.children,n=e.meta,s=e.pageName,l=Object(o.e)(r[s]);Object(a.useEffect)((function(){l()}),[l]);var d=n.suffix,u=void 0===d||d,b=n.title,j=n.description,h=u?"".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]})})},218:function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return i}));var a=n(6),c=n(32),r=n(110),o=function(e){return!e||e.length<1?[]:e.reduce((function(e,t){return t.highlight?[].concat(Object(c.a)(e),[t.highlight]):e}),[])},i=function(e){for(var t=e.packageTags,n=e.keywords,o=new Array,i=new Set,s=0,l=[].concat(Object(c.a)(function(e){return(null!==e&&void 0!==e?e:[]).filter((function(e){var t;return Boolean(null===(t=e.keyword)||void 0===t?void 0:t.label)})).map((function(e){var t;return Object(a.a)(Object(a.a)({},e),{},{id:null===(t=e.keyword)||void 0===t?void 0:t.label})}))}(t)),Object(c.a)(function(e){return!e||e.length<1?[]:e.filter((function(e){return Boolean(e)&&!r.a.has(e)})).map((function(e){return{id:e,keyword:{label:e}}}))}(n)));s<l.length;s++){var d=l[s],u=d.keyword.label.toLowerCase();i.has(u)||(o.push(d),i.add(u))}return o}},219: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 i}));var a=n(15),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,t){var n=e.packages.filter((function(e){return e.name===t}));return n.length>1?n.sort((function(e,t){var n=new Date(e.metadata.date);return new Date(t.metadata.date).getTime()-n.getTime()}))[0]:n[0]}},224:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var a=n(0),c=n(22),r=function(){var e=Object(c.h)().search;return Object(a.useMemo)((function(){return new URLSearchParams(e)}),[e])}},231: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]}},232:function(e,t,n){"use strict";n.d(t,"a",(function(){return j}));var a=n(18),c=n(0),r=n(22),o=n(108),i=n(15),s=n(224),l=o.d.TypeScript,d="preferred-language",u=function(e){return null!=e&&o.e.has(e)},b=function(e){if(u(e))return e;try{var t,n=null!==(t=localStorage.getItem(d))&&void 0!==t?t:"";if(u(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)(),p=h.replace,O=Object(s.a)(),f=O.get(i.b.LANGUAGE),m=Object(c.useState)((function(){return b(f)})),v=Object(a.a)(m,2),g=v[0],x=v[1];Object(c.useEffect)((function(){u(f)&&f!==g&&x(f)}),[f]),Object(c.useEffect)((function(){f!==g&&t&&(O.set(i.b.LANGUAGE,g),p({pathname:l,hash:j,search:O.toString()}))}),[g,t]);var w=Object(c.useCallback)((function(e){if(x(e),n)try{localStorage.setItem(d,e)}catch(t){}}),[n]);return Object(c.useMemo)((function(){return[g,w]}),[g,w])}},243:function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var a=n(6),c=n(21),r=n(3),o=n(124),i=n(599),s=n(2),l=["date","format","formattedDate"],d=Object(r.e)((function(e,t){var n=e.date,r=e.format,d=e.formattedDate,u=Object(c.a)(e,l);return Object(s.jsx)(o.b,Object(a.a)(Object(a.a)({as:"time",dateTime:n.toISOString(),ref:t},u),{},{children:null!==d&&void 0!==d?d:Object(i.a)(n,null!==r&&void 0!==r?r:"")}))}));d.displayName="Time"},244:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var a=n(124),c=n(130),r=n(2),o=function(e){var t=e.label,n=e.color,o=e.icon;return Object(r.jsxs)(a.p,{align:"center",direction:"row",spacing:2,children:[Object(r.jsx)(c.a,{alt:"".concat(t," icon"),src:o,w:4}),Object(r.jsx)(a.q,{color:n,fontWeight:"bold",children:t})]})}},245:function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var a=n(6),c=n(21),r=n(148),o=n(83),i=n(43),s=n(2),l=["children","value","label","zIndex"],d=function(e){var t=e.children,n=e.value,d=e.label,u=void 0===d?n:d,b=e.zIndex,j=Object(c.a)(e,l);return Object(s.jsx)(i.a,{"aria-label":"Tag: ".concat(u),to:Object(o.c)({keywords:[n]}),zIndex:b,children:Object(s.jsx)(r.a,Object(a.a)(Object(a.a)({_hover:{textDecoration:"underline"}},j),{},{children:Object(s.jsx)(r.b,{children:t})}))})}},246:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var a=n(127),c=n(108),r=n(2),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})})}},265: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(124),c=n(126),r=n(28),o=n(208),i=n(6),s=n(21),l=n(3),d=n(130),u=n(2),b=["sources"],j=Object(l.e)((function(e,t){var n=e.sources,c=Object(s.a)(e,b);return Object(u.jsxs)(a.b,{as:"picture",children:[null===n||void 0===n?void 0:n.map((function(e,t){return Object(u.jsx)("source",{media:e.media,srcSet:e.srcSet},t)})),Object(u.jsx)(d.a,Object(i.a)({ref:t},c))]})}));j.displayName="Picture";var 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"},p=function(){return Object(u.jsx)(o.a,{meta:{title:"Not Found",description:"Oops! The page you were looking for does not exist"},pageName:"notFound",children:Object(u.jsxs)(a.c,{h:"100%",position:"relative",w:"100%",children:[Object(u.jsx)(j,{alt:"",inset:0,position:"absolute",sources:h.optimal,src:h.fallback,zIndex:"hide"}),Object(u.jsxs)(a.f,{align:"center",direction:"column",justify:"center",children:[Object(u.jsx)(j,{alt:"404 Image",sources:[{srcSet:"/assets/robot.webp"}],src:"/assets/robot.png"}),Object(u.jsx)(c.a,{as:r.b,colorScheme:"blue",to:"/",children:"Take Me Home"})]})]})})}},597:function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return _t}));var a=n(22),c=n(265),r=n(18),o=n(124),i=n(146),s=n(0),l=n(208),d=n(219),u=n(43),b=n(69),j=n(83),h=n(6),p=n(38),O=n(26),f=n.n(O),m=n(44),v=n(15),g=function(){var e=Object(m.a)(f.a.mark((function e(t,n,a){var c,r;return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return c="".concat(Object(d.b)(t,n,a)).concat(v.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)}}(),x=function(){var e=Object(m.a)(f.a.mark((function e(t,n,a,c,r){var o,i,s,l,u;return f.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(d.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)}}(),w=function(){var e=Object(m.a)(f.a.mark((function e(t,n,a){var c,r,o;return f.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(d.b)(t,n,a)).concat(v.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)}}(),y=n(108),k=n(134),C=n(232),S=n(224),L=n(10),T=n(32),I=n(297),A=n.n(I),R=function(e){return e.toLowerCase().replace(/[^a-zA-Z0-9 ]/g,"").replace(/ /g,"-")},W=function e(t,n){var a=t[t.length-1];return a&&a.level<n.level?(a.children=e(a.children,n),t):(t.push(n),t)},z=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,n=new RegExp("(`{3}[\\s\\S]*?(?:`{3})|^#{1,".concat(t,"}[^#].*)"),"gm");return e.split(n).reduce((function(e,t){var n=e[e.length-1];return t.startsWith("#")||(null===n||void 0===n?void 0:n.startsWith("#"))?[].concat(Object(T.a)(e),[t]):(e[e.length-1]+=t,e)}),[])},E=function(e){var t,n,a,c,o=(null!==(t=e.match(/(\S+)\s*=\s*(\"?)([^"]*)(\2|\s|$)/g))&&void 0!==t?t:[]).reduce((function(e,t){var n,a=t.split("="),c=Object(r.a)(a,2),o=c[0],i=c[1],s=null!==(n=/['"](.*?)['"]/.exec(i))&&void 0!==n?n:[],l=Object(r.a)(s,2),d=(l[0],l[1]);return Object(h.a)(Object(h.a)({},e),{},Object(L.a)({},o,d))}),{}),i=null!==(n=/^#*\s*(?:<a\s.*?(?:\/>|<\/a>))?\s*([^<]+?)\s*(?:<|$)/.exec(e))&&void 0!==n?n:[e,e],s=Object(r.a)(i,2),l=(s[0],s[1].replace(/\[([^\]]+)\](?:\([^)]+\)|\[[^\]]+\])/g,"$1").replace(/:\+1:|:-1:|:[\w-]+:/g,(function(e){var t;return null!==(t=A.a.get(e))&&void 0!==t?t:e}))),d=null!==(a=o["data-heading-title"])&&void 0!==a?a:l;return{id:null!==(c=o["data-heading-id"])&&void 0!==c?c:encodeURIComponent(R(d)),title:d}},F=function(e,t){var n=t.scope,a=t.language,c=t.name,r=t.version,o=t.submodule,i=n?"".concat(n,"/").concat(c):"".concat(c),s="/packages/".concat(i,"/v/").concat(r),l="?".concat(v.b.LANGUAGE,"=").concat(a);o&&(l+="&submodule=".concat(o));var d='# API Reference <span data-heading-title="API Reference" data-heading-id="api-reference"></span>',u=e.split(d),b=u.length>1?u.pop():"",j=u.join(d),p=z(b,3),O=z(j),f=[d.trim()].concat(Object(T.a)(null!==p&&void 0!==p?p:[])),m="".concat(s).concat(l),g=O.reduce((function(e,t){if(t.startsWith("#")){var n,a,c=E(t),r=c.id,o=c.title,i=null!==(n=null===(a=t.match(/(#)/gm))||void 0===a?void 0:a.length)&&void 0!==n?n:1,s=function(e){return(e.endsWith(".")||e.endsWith(":"))&&(e=e.slice(0,-1)),e}(o),l={level:i,id:r,title:s,path:"".concat(m,"#").concat(r),children:[]};return W(e,l)}return e}),[]);1===g.length&&(g=g[0].children);var x,w,y=[].concat([{level:1,id:"Readme",title:"Readme",path:m,children:g}]),k={};return null===f||void 0===f||f.forEach((function(e){var t,n,a,c=e.match(/(^#{1,3}[^#].*)/g),r=null!==(t=null===(n=e.match(/(#)/gm))||void 0===n?void 0:n.length)&&void 0!==t?t:1;if(null===c||void 0===c?void 0:c.length){var o=E(e),i=o.id,d=o.title,u=3===r?(a=i,"".concat(s,"/api/").concat(a).concat(l)):void 0,b=Object(h.a)({level:r,id:i,title:d,children:[]},u?{path:u}:{});y=W(y,b),x={id:i,title:d},w=r}else 3===w&&(k[x.id]={title:x.title,content:e})})),{readme:j,apiReference:k,menuItems:y}},D=n(2),P=Object(s.createContext)(void 0),B=function(){var e=Object(s.useContext)(P);if(!e)throw new Error("This component must be a child of a <PackageStateProvider />");return e},M=function(e){var t,n,o,i,l,d=e.children,u=Object(a.i)(),b=u.name,j=u.scope,O=u.version,f="".concat(j,"/").concat(b,"/v").concat(O),m=Object(C.a)(),L=Object(r.a)(m,1)[0],T=null!==(t=Object(S.a)().get(v.b.SUBMODULE))&&void 0!==t?t:"",I=Object(k.b)().data,A=j?"".concat(j,"/").concat(b):b,R=null===I||void 0===I?void 0:I.packages[A],W=Object(p.useQuery)("".concat(f,"-docs-").concat(L),(function(){return x(b,O,y.f[L],j,T)})),z=Object(p.useQuery)("".concat(f,"-assembly"),(function(){return g(b,O,j)})),E=Object(p.useQuery)("".concat(f,"-metadata"),(function(){return w(b,O,j)})),B="".concat(j?"".concat(j,"/").concat(b):b," ").concat(O),M=null!==(n=null===(o=z.data)||void 0===o?void 0:o.description)&&void 0!==n?n:"",U=Boolean(W.error||z.error),N=Boolean(!W.isLoading&&!z.isLoading&&W.data&&z.data),H=Boolean(L===y.d.TypeScript||z.isLoading||z.error||null!=(null===(i=z.data)||void 0===i||null===(l=i.targets)||void 0===l?void 0:l[L.toString()])),q=Boolean(!E.isLoading&&(z.isLoading||W.isLoading)),G=Object(s.useMemo)((function(){return W.data?F(W.data,{scope:j,name:b,version:O,language:L,submodule:T}):{menuItems:[]}}),[W.data,b,j,O,L,T]);return z.error?Object(D.jsx)(c.NotFound,{}):Object(D.jsx)(P.Provider,{value:Object(h.a)({assembly:z,hasDocs:N,hasError:U,isLoadingDocs:q,isSupported:H,language:L,markdown:W,metadata:E,name:b,pageDescription:M,pageTitle:B,scope:j,version:O,allVersions:R},G),children:d})},U=n(58),N=Object(U.a)("package-page",["page","feedbackLinks","reportLink","reportAbuseLink","githubLink","dependenciesTab","dependenciesList","dependenciesLink","description","markdown","selectVersionButton","selectVersionDropdown","selectVersionItem"]),H=function(){var e,t=B().assembly.data;if(!t)return Object(D.jsx)(b.a,{});var n=Object.entries(null!==(e=t.dependencies)&&void 0!==e?e:{});return n.length?Object(D.jsx)(o.p,{"data-testid":N.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(D.jsxs)(u.a,{_first:{ml:4},"data-testid":N.dependenciesLink,fontWeight:"semibold",p:2,to:Object(j.a)({name:n,version:Object(d.d)(a)}),children:[n," - ",a]},"".concat(n,"-").concat(a))}))}):Object(D.jsx)(o.c,{children:"This library does not have any known dependencies"})},q=n(31),G=n(147),V=n(57),Z=n(64),X=n(8),_=function(e){return Object(D.jsxs)(X.a,Object(h.a)(Object(h.a)({},e),{},{children:[Object(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"}),Object(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"})]}))},$={h:6,ml:2,w:6},J=function(){var e,t=B(),n=Object(G.a)({base:"horizontal",md:"vertical"}),a=Object(D.jsx)(o.e,{borderColor:"white",mr:6,orientation:n}),c=t.metadata.data,r=t.assembly.data;if(!r||!c)return null;var i,s=null!==(e=null===r||void 0===r?void 0:r.repository)&&void 0!==e?e:{},l=void 0;"git"===s.type&&((l=(null===(i=s.url)||void 0===i?void 0:i.endsWith(".git"))?s.url.replace(".git",""):s.url).endsWith("/")&&(l=l.slice(0,l.length-1)));return Object(D.jsxs)(o.p,{align:"center",backgroundColor:"blue.600",borderTop:"1px solid",borderTopColor:"blue.50",color:"white","data-testid":N.feedbackLinks,direction:{base:"column",md:"row"},justify:"space-evenly",px:8,py:5,spacing:4,children:[l&&Object(D.jsxs)(D.Fragment,{children:[Object(D.jsx)(V.a,{color:"currentcolor","data-testid":N.githubLink,fontSize:"lg",fontWeight:"semibold",hasIcon:!1,href:"".concat(l,"/issues"),rightIcon:Object(D.jsx)(_,Object(h.a)({color:"white"},$)),variant:"solid",children:"Provide feedback to publisher"}),a]}),Object(D.jsx)(V.a,{color:"currentcolor","data-testid":N.reportLink,fontSize:"lg",fontWeight:"semibold",hasIcon:!1,href:"".concat(Z.a,"/issues/new"),rightIcon:Object(D.jsx)(_,Object(h.a)({color:"white"},$)),children:"Provide feedback to Construct Hub"}),a,Object(D.jsx)(V.a,{color:"currentcolor","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===r||void 0===r?void 0:r.name))),rightIcon:Object(D.jsx)(q.i,Object(h.a)({},$)),children:"Report abuse"})]})},Q=n(11),K=n(126),Y={color:"gray.900",h:4,w:4},ee=function(e){var t=e.children,n=e.path,a=e.title,c=e.showToggle,r={_hover:{bg:"rgba(0, 124, 253, 0.05)"},overflow:"hidden",pl:1,py:c?2:1,marginLeft:c?0:1,fontWeight:c?"bold":void 0,textOverflow:"ellipsis",w:"100%"};return n?Object(D.jsx)(u.a,Object(h.a)(Object(h.a)({title:a,to:n},r),{},{children:t})):Object(D.jsx)(o.q,Object(h.a)(Object(h.a)({},r),{},{children:t}))},te=function e(t){var n,c=t.children,r=t.title,i=t.path,l=t.level,d=t.onOpen,u=l<2,b=Object(Q.g)({onOpen:d,defaultIsOpen:u}),j=Object(a.h)(),p=j.hash,O=j.pathname,f=new URL(null!==i&&void 0!==i?i:"",window.origin),m=(null===i||void 0===i?void 0:i.includes("/api/"))?f.pathname===O:f.hash&&p&&f.hash===p,v=(null!==(n=null===c||void 0===c?void 0:c.length)&&void 0!==n?n:0)>0,g=b.isOpen&&v,x=Object(s.useMemo)((function(){return null===c||void 0===c?void 0:c.map((function(t,n){return Object(s.createElement)(e,Object(h.a)(Object(h.a)({},t),{},{key:n,level:l+1,onOpen:b.onOpen}))}))}),[c,b.onOpen,l]);return Object(D.jsxs)(o.f,{direction:"column",children:[Object(D.jsxs)(o.f,{align:"center",color:m?"blue.500":"gray.800",children:[v&&Object(D.jsx)(K.b,{"aria-label":"expand-toggle",borderRadius:"md",h:4,icon:b.isOpen?Object(D.jsx)(q.c,Object(h.a)({},Y)):Object(D.jsx)(q.e,Object(h.a)({},Y)),ml:-1,onClick:b.onToggle,size:"xs",variant:"link",w:0}),Object(D.jsx)(ee,{path:i,showToggle:v,title:r,children:r})]}),Object(D.jsx)(o.b,{_before:{bg:"gray.100",bottom:0,content:'""',left:0,position:"absolute",top:0,w:"1px"},display:g?"initial":"none",ml:2,mr:2,pl:2,position:"relative",children:x})]})},ne=function(e){var t=e.items;return Object(D.jsx)(o.f,{direction:"column",maxWidth:"100%",children:t.map((function(e,t){return Object(s.createElement)(te,Object(h.a)(Object(h.a)({},e),{},{key:t,level:0,onOpen:void 0}))}))})},ae=n(133),ce=n(140),re=n(3),oe=n(129),ie=n(138),se=n(139),le=Object(re.e)((function(e,t){var n=e.value,a=e.onChange,c=e.onSubmit,o=Object(s.useState)(n),i=Object(r.a)(o,2),l=i[0],d=i[1];return Object(se.a)(l,{onChange:a}),Object(D.jsx)(ie.a,{"data-testid":"choose-submodule-search-form",onSubmit:c,children:Object(D.jsxs)(oe.b,{children:[Object(D.jsx)(oe.c,{children:Object(D.jsx)(q.m,{color:"gray.400"})}),Object(D.jsx)(oe.a,{"data-testid":"choose-submodule-search-input",onChange:function(e){return d(e.target.value)},placeholder:"Search",ref:t,value:l,variant:"filled"})]})})}));le.displayName="SearchInput";var de=function(e){var t=e.inputValue,n=e.isOpen,c=e.onClose,r=e.onInputChange,i=e.submodules,l=Object(s.useRef)(null),d=Object(a.g)().push,u=Object(s.useCallback)((function(e){c(),d(e)}),[c,d]),b=Object(s.useCallback)((function(e){if(e.preventDefault(),i.length){var t=i[0].to;u(t)}}),[u,i]);return Object(D.jsx)(ae.g,{initialFocusRef:l,isOpen:n,onClose:c,children:Object(D.jsx)(ae.m,{children:Object(D.jsxs)(ae.j,{mx:4,children:[Object(D.jsx)(ae.i,{"data-testid":"choose-submodule-modal-close"}),Object(D.jsx)(ae.l,{"data-testid":"choose-submodule-modal-header",fontSize:"lg",fontWeight:"bold",children:"Choose a submodule"}),Object(D.jsxs)(ae.h,{"data-testid":"choose-submodule-modal-body",p:0,children:[Object(D.jsx)(o.b,{pb:4,px:4,children:Object(D.jsx)(le,{onChange:r,onSubmit:b,ref:l,value:t})}),Object(D.jsx)(o.e,{}),Object(D.jsx)(o.r,{"data-testid":"choose-submodule-modal-results",m:0,maxH:"50vh",overflow:"hidden auto",p:0,role:"listbox",tabIndex:-1,children:i.map((function(e){var t=e.name,n=e.to;return Object(D.jsx)(ce.a,{"data-testid":"choose-submodule-result",name:t,onClick:function(){return u(n)}},t)}))})]})]})})})},ue=function(e){var t,n=e.assembly,c=Object(a.h)().pathname,i=Object(a.g)().push,l=Object(S.a)(),d=Object.keys(null!==(t=null===n||void 0===n?void 0:n.submodules)&&void 0!==t?t:{}),u=Object(Q.g)(),b=u.isOpen,j=u.onOpen,h=u.onClose,p=l.get(v.b.SUBMODULE),O=p?"Submodule: ".concat(p):"Choose Submodule",f=Object(s.useState)(""),m=Object(r.a)(f,2),g=m[0],x=m[1],w=Object(s.useCallback)((function(e){var t=new URLSearchParams(l.toString());return t.set("submodule",e),"".concat(c,"?").concat(t)}),[c,l]),y=Object(s.useMemo)((function(){var e=d;return g&&(e=e.filter((function(e){return e.toLowerCase().includes(g.toLowerCase())}))),e.map((function(e){var t=e.split(".")[1];return{name:t,to:w(t)}}))}),[d,g,w]);return 0===d.length?null:Object(D.jsxs)(o.p,{spacing:4,w:"100%",children:[p&&Object(D.jsxs)(D.Fragment,{children:[Object(D.jsx)(K.a,{borderRadius:"none","data-testid":"choose-submodule-go-back",leftIcon:Object(D.jsx)(q.a,{"aria-label":"Back to construct root"}),onClick:function(){var e=l.get(v.b.LANGUAGE);i("".concat(c).concat(e?"?".concat(v.b.LANGUAGE,"=").concat(e):""))},title:"Back to construct root",variant:"link",children:null===n||void 0===n?void 0:n.name}),Object(D.jsx)(o.e,{})]}),Object(D.jsx)(K.a,{borderRadius:"none",color:"blue.500","data-testid":"choose-submodule-search-trigger",flexGrow:1,onClick:j,rightIcon:Object(D.jsx)(q.c,{}),title:"Choose Submodule",variant:"link",children:O}),Object(D.jsx)(de,{inputValue:g,isOpen:b,onClose:h,onInputChange:x,submodules:y})]})},be=n(305),je=n(394),he=n.n(je),pe=n(488),Oe=n.n(pe),fe=n(521),me=n.n(fe),ve=n(592),ge=n(524),xe=n.n(ge),we=n(21),ye=n(594),ke=n(556),Ce=["value"],Se=Object(re.e)((function(e,t){var n=e.value,a=Object(we.a)(e,Ce),c=Object(Q.d)(n),r=c.hasCopied,o=c.onCopy;return Object(D.jsx)(K.b,Object(h.a)({"aria-label":"Copy Button",color:"blue.500",colorScheme:"blue",h:6,icon:r?Object(D.jsx)(q.b,{color:"green.300"}):Object(D.jsx)(q.g,{}),minW:"auto",ml:1,onClick:o,ref:t,variant:"ghost",w:6},a))}));Se.displayName="CopyButton";var Le,Te=function(e){var t=e.code,n=e.tokens,a=e.getLineProps,c=e.getTokenProps;return Object(D.jsxs)(D.Fragment,{children:[Object(D.jsx)(o.f,{align:"center",bg:"rgba(0, 124, 253, 0.15)",borderTopRadius:"md",justify:"flex-end",px:2,py:1,children:Object(D.jsx)(Se,{value:t})}),Object(D.jsx)(o.b,{overflowX:"auto",p:2,children:n.map((function(e,t){return Object(D.jsx)("div",Object(h.a)(Object(h.a)({},a({line:e,key:t})),{},{children:e.map((function(e,t){return Object(D.jsx)(o.b,Object(h.a)({as:"span",sx:{wordWrap:"normal"}},c({token:e,key:t})),t)}))}),t)}))})]})},Ie=function(e){var t=e.code,n=e.tokens,a=e.getLineProps,c=e.getTokenProps;return Object(D.jsxs)(o.g,{p:3,templateColumns:"1fr min-content",w:"full",children:[Object(D.jsx)(o.b,{m:-3,maxW:"full",overflow:"auto",p:3,children:n.map((function(e,t){return Object(D.jsx)("div",Object(h.a)(Object(h.a)({},a({line:e,key:t})),{},{children:e.map((function(e,t){return Object(D.jsx)("span",Object(h.a)({},c({token:e,key:t})),t)}))}),t)}))}),Object(D.jsx)(o.f,{align:"center",ml:1,children:Object(D.jsx)(Se,{value:t})})]})},Ae=["code","language"],Re=function(e){var t=e.code,n=e.language,a=Object(we.a)(e,Ae);return Object(D.jsx)(ye.a,Object(h.a)(Object(h.a)({},ye.b),{},{code:t,language:n,theme:ke.a,children:function(e){return Object(D.jsx)(o.b,Object(h.a)(Object(h.a)({as:"pre",border:"base",borderRadius:"md",boxShadow:"base",className:e.className,style:e.style},a),{},{children:e.tokens.length>1?Object(D.jsx)(Te,Object(h.a)(Object(h.a)({},e),{},{code:t})):Object(D.jsx)(Ie,Object(h.a)(Object(h.a)({},e),{},{code:t}))}))}}))},We=n(557),ze=n.n(We),Ee=function e(t){return s.Children.toArray(t).reduce((function(t,n){return"string"===typeof n?t+n:"object"===typeof n&&"props"in n?t+e(n.props.children):t}),"").trim()},Fe=function(e){var t,n,a=e.level,c=e.children,r=["2xl","xl","lg","md","sm","xs"][a-1],i="h".concat(a),s=(new DOMParser).parseFromString(ze.a.renderToStaticMarkup(c),"text/html").querySelector("span[data-heading-title][data-heading-id]"),l=null!==(t=null===s||void 0===s?void 0:s.dataset.headingTitle)&&void 0!==t?t:Ee(c),d=null!==(n=null===s||void 0===s?void 0:s.dataset.headingId)&&void 0!==n?n:R(l);return Object(D.jsx)(D.Fragment,{children:Object(D.jsx)(o.i,{as:i,backgroundColor:5===a?"gray.50":void 0,borderBottom:"1px solid",borderBottomColor:"gray.100",color:"gray.800",level:a,marginBottom:4,marginTop:a>=4?"1.5em":4,paddingBottom:2,paddingTop:2,paddingX:a>=4?2:void 0,size:r,children:Object(D.jsx)(u.a,{"data-heading-id":"#".concat(d),"data-heading-level":a,"data-heading-title":l,id:d,replace:!0,sx:{"> code":{color:"blue.800",fontSize:"inherit"}},to:"#".concat(d),children:c})})})},De=n(130),Pe=n(149),Be=Object(U.a)("markdown",["container"]),Me=["children","href"],Ue={a:function(e){var t=e.children,n=e.href,a=Object(we.a)(e,Me),c=o.j;try{if(n&&n.startsWith("http"))if(new URL(n).hostname!==window.location.hostname){c=function(e){return Object(D.jsx)(V.a,Object(h.a)({},e))}}}catch(r){c=o.j}return Object(D.jsx)(c,Object(h.a)(Object(h.a)({color:"blue.500",href:n,sx:{"> img + svg":{display:"none"}}},a),{},{children:t}))},blockquote:function(e){var t=e.children;return Object(D.jsx)(o.b,{as:"blockquote",borderLeft:"5px solid",borderLeftColor:"gray.100",marginX:"2",px:"2",wordBreak:"break-word",children:t})},caption:Pe.b,code:function(e){var t=e.inline,n=e.children,a=e.language,c=void 0===a?"typescript":a;if(t)return Object(D.jsx)(o.d,{bg:"gray.50",border:"1px solid",borderColor:"gray.50",borderRadius:"md",marginTop:"md",mx:2,px:2,py:0,children:n});var r=s.Children.toArray(n).reduce((function(e,t){return"string"===typeof t?"".concat(e).concat(t):e}),"").trim();return Object(D.jsx)(Re,{code:r,fontSize:"0.9rem",language:c})},em:function(e){var t=e.children;return Object(D.jsx)(o.b,{as:"em",fontStyle:"normal",fontWeight:"bold",children:t})},h1:Fe,h2:Fe,h3:Fe,h4:Fe,h5:Fe,h6:Fe,hr:function(){return Object(D.jsx)(D.Fragment,{})},img:function(e){return Object(D.jsx)(De.a,Object(h.a)({display:"inline-block"},e))},li:function(e){var t=e.children;return Object(D.jsx)(o.m,{lineHeight:"tall",marginX:2,sx:{"em:first-of-type":{fontSize:"small"},"&::marker":{color:"gray.400"},code:{fontSize:"small"}},children:t})},ol:function(e){var t=e.children;return Object(D.jsx)(o.n,{children:t})},p:function(e){var t=e.children;return Object(D.jsx)(o.q,{lineHeight:"1.5",mx:2,my:4,children:t})},pre:function(e){var t=e.children;return Object(D.jsx)(o.b,{as:"pre",children:t})},sup:function(e){var t=e.children,n=void 0,a="";if(Array.isArray(t)){var c=Object(r.a)(t,1)[0];"string"===typeof c&&(a=c)}return"Required"===a?n="orange.700":"Optional"===a&&(n="green.700"),Object(D.jsx)(o.b,{as:"sup",color:n,fontSize:"xs",ml:-1,top:-1,children:t})},table:function(e){var t=e.children;return Object(D.jsx)(o.b,{maxW:"100%",overflowX:"auto",children:Object(D.jsx)(Pe.a,{variant:"striped",children:t})})},tbody:Pe.c,td:Pe.d,tfoot:Pe.e,th:Pe.f,thead:Pe.g,tr:Pe.h,ul:function(e){var t=e.children;return Object(D.jsx)(o.r,{marginTop:2,padding:0,children:t})}},Ne=Object(h.a)({},be);Ne.attributes.span=(null!==(Le=Ne.attributes.span)&&void 0!==Le?Le:[]).concat(["dataHeadingTitle","dataHeadingId"]);var He=[[Oe.a],[me.a,Ne]],qe=[xe.a,ve.a],Ge=/^(?:(?:git@)?github\.com:|(?:https?:\/\/)github\.com\/)([^/]+)\/([^/]+)(?:\.git)?$/,Ve=function(e){var t=e.children,n=function(e){var t=e.type,n=e.url,a=e.directory;if("git"===t){var c=Ge.exec(n);if(null!=c){var o=Object(r.a)(c,3);return{owner:o[1],repo:o[2],directory:a}}}}(e.repository),a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"HEAD";return null==n?he.a.uriTransformer:function(a){var c=he.a.uriTransformer(a),o=Object(r.a)(c,1)[0];if("#"===o||"/"===o)return c;if(c.includes("://"))return c;var i=n.owner,s=n.repo.replace(/\.git$/,""),l=n.directory?"".concat(n.directory,"/"):"";return"https://".concat(e,"/").concat(i,"/").concat(s,"/").concat(t,"/").concat(l).concat(c)}};return Object(D.jsx)(o.b,{"data-testid":Be.container,px:8,children:Object(D.jsx)(he.a,{components:Ue,rehypePlugins:He,remarkPlugins:qe,transformImageUri:a("raw.githubusercontent.com"),transformLinkUri:a("github.com","blob/HEAD"),children:t})})},Ze=function(){var e=B(),t=e.isLoadingDocs,n=e.readme,a=e.assembly.data;return!t&&n&&a?Object(D.jsx)(Ve,{repository:a.repository,children:n}):null},Xe=n(28),_e=function(){var e=B().language,t=Object(D.jsx)(V.a,{href:"".concat(Z.a,"/issues/new"),children:"issue"});return Object(D.jsxs)(o.q,{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,"."]})},$e=function(e){var t=e.rootId,n=Object(a.h)(),c=n.pathname,r=n.hash,i=n.search,s=B(),l=s.isLoadingDocs,d=s.assembly.data,u=function(){var e=Object(a.i)().typeId,t=B().apiReference;if(e)return null===t||void 0===t?void 0:t[e]}();if(l)return null;if(!u||!d)return Object(D.jsx)(_e,{});var b=u.title,j=u.content,h="".concat(c).concat(i,"#").concat(r);return Object(D.jsxs)(D.Fragment,{children:[Object(D.jsx)(o.i,{as:"h2",p:8,size:"2xl",children:Object(D.jsx)(Xe.c,{id:t,to:h,children:b})}),Object(D.jsx)(Ve,{repository:d.repository,children:j})]})},Je="4.5rem",Qe="apidocs_header",Ke="api",Ye=function(){var e,t=B().assembly.data;return Object.keys(null!==(e=null===t||void 0===t?void 0:t.submodules)&&void 0!==e?e:{}).length>0?Object(D.jsx)(o.f,{borderBottom:"1px solid",borderColor:"blue.50",justify:"center",py:4,children:Object(D.jsx)(ue,{assembly:t})}):null},et=function(){var e=Object(a.j)().path,t=B().menuItems,n=Object(a.h)(),c=n.hash,r=n.pathname,i=n.search;return Object(s.useEffect)((function(){if(c){var e=document.querySelector('[data-heading-id="'.concat(c,'"]'));null===e||void 0===e||e.scrollIntoView(!0)}else if(function(e){var t=e.split("/");return t[t.length-2]===Ke}(r)){var t=document.getElementById(Qe);null===t||void 0===t||t.scrollIntoView(!0)}else window.scrollTo(0,0)})),Object(D.jsxs)(o.g,{bg:"white",columnGap:4,h:"100%",templateColumns:{base:"1fr",md:"1fr 3fr"},width:"100%",children:[Object(D.jsxs)(o.f,{alignSelf:"stretch",borderRight:"1px solid",borderRightColor:"blue.50",direction:"column",display:{base:"none",md:"flex"},maxHeight:"calc(100vh - ".concat(Je,")"),overflow:"hidden auto",pl:6,position:"sticky",pr:4,top:Je,children:[Object(D.jsx)(Ye,{}),Object(D.jsx)(o.b,{overflowY:"auto",py:4,children:Object(D.jsx)(ne,{items:t})})]}),Object(D.jsx)(o.b,{h:"max-content",maxWidth:"100%",overflow:"hidden",py:4,sx:{a:{scrollMarginTop:Je}},children:Object(D.jsxs)(a.d,{children:[Object(D.jsx)(a.a,{exact:!0,from:"".concat(e,"/").concat(Ke),to:{pathname:e,search:i}}),Object(D.jsx)(a.b,{exact:!0,path:e,children:Object(D.jsx)(Ze,{})}),Object(D.jsx)(a.b,{exact:!0,path:"".concat(e,"/").concat(Ke,"/:typeId"),children:Object(D.jsx)($e,{rootId:Qe})})]})})]})},tt=n(93),nt=n(246),at=function(e){var t=e.targetLanguages,n=e.selectedLanguage,c=B(),r=c.name,i=c.scope,s=c.version,l=Object(a.g)().push;return Object(D.jsx)(o.p,{align:"center","data-testid":"language-bar",direction:"row",spacing:2,children:Object(T.a)(t).sort((function(e,t){return y.a.indexOf(e)-y.a.indexOf(t)})).map((function(e){var t=!y.e.has(e),a=e===n,c=y.c[e].icon;return Object(D.jsx)(nt.a,{language:e,children:Object(D.jsx)(K.b,{"aria-label":"Select ".concat(e," icon"),border:a?"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(D.jsx)(c,{"aria-label":"".concat(e,"-icon"),borderRadius:"sm",height:[4,5,6],width:[4,5,6]}),onClick:function(){a||l(Object(j.a)({name:Object(d.c)(r,i),version:s,language:e}))},p:1,variant:"outline",w:"max-content"})},e)}))})},ct=new Set(y.a),rt=function(){var e,t=B(),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}),l=Object(r.a)(i,2)[1],d=[].concat(Object(T.a)(Object.keys(null!==(e=null===n||void 0===n?void 0:n.targets)&&void 0!==e?e:{})),[y.d.TypeScript]),u=d.includes(a);Object(s.useEffect)((function(){u||l(y.d.TypeScript)}),[u]);var b={selectedLanguage:u?a:y.d.TypeScript,setSelectedLanguage:o,targetLanguages:d.filter((function(e){return ct.has(e)}))};return Object(D.jsx)(at,Object(h.a)({},b))},ot=n(127),it=n(48),st=n(346),lt=n.n(st),dt=n(244),ut=["license"],bt=Object(re.e)((function(e,t){var n=e.license,a=Object(we.a)(e,ut),c=lt.a[n].url;return Object(D.jsx)(V.a,Object(h.a)(Object(h.a)({href:c,ref:t},a),{},{children:n}))}));bt.displayName="LicenseLink";var jt=n(243),ht="MMM dd, yyyy 'at' h:mmaaa",pt=n(88),Ot=n(231),ft=n(218),mt=["openText","closeText","isOpen"],vt=function(e){var t=e.openText,n=e.closeText,a=e.isOpen,c=Object(we.a)(e,mt);return Object(D.jsx)(K.a,Object(h.a)(Object(h.a)({colorScheme:"blue",leftIcon:a?Object(D.jsx)(q.f,{}):Object(D.jsx)(q.c,{}),variant:"link"},c),{},{children:a?n:t}))},gt=function(e){var t=e.children,n=e.label,a=e.tooltip;return Object(D.jsx)(ot.a,{hasArrow:!0,isDisabled:!a,label:a,placement:"left",children:Object(D.jsxs)(o.q,{fontWeight:"bold",children:[n," ",Object(D.jsx)(o.b,{as:"span",fontWeight:"normal",children:t})]})})},xt=function(e){var t=e.downloads;return Object(D.jsx)(gt,{label:Object(D.jsxs)(D.Fragment,{children:[Object(D.jsx)(o.b,{as:"span",mr:1,children:Object(D.jsx)(q.h,{})}),t.toLocaleString()]}),tooltip:"Download numbers are periodically sourced from the npm registry",children:"Weekly downloads"})},wt=function(e){var t=B(),n=Object(pt.b)().data,a=Object(Q.g)({defaultIsOpen:!0}),c=Object(Ot.a)("packageLinks"),i=t.assembly.data,l=t.metadata.data,d=t.scope?"".concat(t.scope,"/").concat(t.name):t.name,b=Object(ft.a)(null===l||void 0===l?void 0:l.packageTags),p=Object(r.a)(b,1)[0],O=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,l,d,b,h,p=null===r||void 0===r||null===(i=r.packages)||void 0===i||null===(l=i[a])||void 0===l||null===(d=l.downloads)||void 0===d?void 0:d.npm;void 0!==p&&o.push(Object(D.jsx)(xt,{downloads:p}));var O=null===t||void 0===t?void 0:t.author.name,f=null===t||void 0===t?void 0:t.repository,m=null===t||void 0===t?void 0:t.license;if(O){var v=Object(D.jsx)(u.a,{color:"blue.500",to:Object(j.c)({query:O}),children:O});o.push(Object(D.jsx)(gt,{label:"Author",children:v}))}var g=null===n||void 0===n?void 0:n.date;if(g){var x=Object(D.jsx)(jt.a,{date:new Date(g),fontWeight:"normal",format:ht});o.push(Object(D.jsx)(gt,{label:"Published",children:x}))}if(f){var w=Object(j.b)(f.url);if(w){var y=Object(D.jsx)(V.a,{href:w.url,children:w.hostname});o.push(Object(D.jsx)(gt,{label:"Repository",children:y}))}}if(m&&m in lt.a){var k=Object(D.jsx)(bt,{license:m});o.push(Object(D.jsx)(gt,{label:"License",children:k}))}(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(D.jsx)(V.a,{href:i,children:null!==r&&void 0!==r?r:i});o.push(Object(D.jsxs)(gt,{label:a,children:[a,": ",s]}))}}));var C=null!==(b=null===n||void 0===n||null===(h=n.links)||void 0===h?void 0:h.npm)&&void 0!==b?b:"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(C){var S=Object(D.jsx)(V.a,{href:C,children:new URL(C).hostname});o.push(Object(D.jsx)(gt,{label:"Registry",children:S}))}}return o.map((function(e,t){return Object(D.jsx)(s.Fragment,{children:e},t)}))}({assembly:i,metadata:l,name:d,packageLinks:c,stats:n});if(!O.length)return null;var f=O.slice(0,2),m=O.slice(2,O.length);return Object(D.jsxs)(o.p,Object(h.a)(Object(h.a)({align:"start",color:"gray.600",fontSize:".75rem",mt:2,spacing:2},e),{},{children:[p&&Object(D.jsx)(dt.a,Object(h.a)({},p)),f,m.length>0&&Object(D.jsxs)(D.Fragment,{children:[Object(D.jsx)(it.a,{animateOpacity:!0,in:a.isOpen,children:Object(D.jsx)(o.p,{spacing:2,children:m})}),Object(D.jsx)(vt,{closeText:"See fewer details (".concat(f.length,")"),fontSize:"inherit",isOpen:a.isOpen,onClick:a.onToggle,openText:"See more details (".concat(m.length,")")})]})]}))},yt=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(" ")},kt="heading",Ct="install",St="languages",Lt="meta",Tt=yt([kt],[Lt],[St],[Ct]),It=yt([kt,St,Ct],[kt,null,Lt]),At=function(e){var t=e.children;return Object(D.jsx)(o.g,{columnGap:{md:6,lg:10},pt:{base:3,lg:6},px:{base:5,md:6,lg:10},rowGap:{base:4,lg:0},templateAreas:{base:Tt,lg:It},templateColumns:{base:"1fr",lg:"1fr auto 15rem"},templateRows:{lg:"auto 1fr"},children:t})},Rt=n(112),Wt=n(245),zt=n(150),Et=n(560),Ft=n.n(Et),Dt=n(86),Pt=function(){var e=B(),t=e.scope,n=e.name,c=e.version,r=e.allVersions,o=e.language,i=t?"".concat(t,"/").concat(n):n,l=Object(Dt.b)(),d=Object(a.g)().push,u=l.findByName(i),b=Object(s.useMemo)((function(){var e=u.map((function(e){return e.version})),t=Object(T.a)(new Set([].concat(Object(T.a)(null!==r&&void 0!==r?r:[]),Object(T.a)(e),[c])));return t.sort(Ft.a.rcompare),t}),[u,c,r]);return Object(D.jsx)(zt.a,{"data-testid":N.selectVersionDropdown,fontWeight:"500",onChange:function(e){d(Object(j.a)({name:i,version:e.target.value,language:o}))},size:"sm",value:c,width:"10rem",children:b.map((function(e){return Object(D.jsx)("option",{"data-testid":N.selectVersionItem,"data-value":e,value:e,children:"v".concat(e)},e)}))})},Bt=["assembly","name","description","metadata","version"],Mt=function(e){var t,n,a,c=e.assembly,r=e.name,i=e.description,s=e.metadata,l=(e.version,Object(we.a)(e,Bt)),d=Object(ft.b)({packageTags:null!==(t=null===s||void 0===s?void 0:s.packageTags)&&void 0!==t?t:[],keywords:null!==(n=null===c||void 0===c?void 0:c.keywords)&&void 0!==n?n:[]}),u=null!==(a=s.constructFramework)&&void 0!==a?a:{};return Object(D.jsxs)(o.p,Object(h.a)(Object(h.a)({lineHeight:"1.5",maxW:"full",overflow:"hidden",spacing:2},l),{},{children:[Object(D.jsxs)(o.f,{align:"center",wrap:"wrap",children:[Object(D.jsx)(o.i,{color:"blue.800",flexShrink:1,fontSize:"1.5rem",isTruncated:!0,mr:4,children:r}),Object(D.jsx)(Pt,{})]}),Object(D.jsx)(o.q,{"data-testid":N.description,fontSize:"1rem",children:i}),Object(D.jsxs)(o.f,{align:"center",direction:"row",pt:1,sx:{gap:"0.5rem"},wrap:"wrap",children:[Object(D.jsx)(Rt.a,Object(h.a)({},u)),d.map((function(e){var t=e.id,n=e.keyword,a=(n=void 0===n?{}:n).label,c=n.color;return Object(D.jsx)(Wt.a,{value:t,variant:c,children:a},t)}))]})]}))},Ut=function(e){var t=B(),n=t.language,a=t.assembly.data,c=Object(Q.g)();if(!a)return null;var r=function(e){var t=e.language,n=e.assembly,a=n.version;if(t===y.d.TypeScript){var c=n.name;return"npm install ".concat(c,"@").concat(a)}if(t===y.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===y.d.Java){var s,l,d,u,b,j,h=null===(s=n.targets)||void 0===s||null===(l=s.java)||void 0===l||null===(d=l.maven)||void 0===d?void 0:d.groupId,p=null===(u=n.targets)||void 0===u||null===(b=u.java)||void 0===b||null===(j=b.maven)||void 0===j?void 0:j.artifactId;if(!h||!p)return;return["// add this to your pom.xml","<dependency>"," <groupId>".concat(h,"</groupId>")," <artifactId>".concat(p,"</artifactId>")," <version>".concat(a,"</version>"),"</dependency>"].join("\n")}if(t===y.d.DotNet){var O,f,m=null===(O=n.targets)||void 0===O||null===(f=O.dotnet)||void 0===f?void 0:f.packageId;if(!m)return;return"dotnet add package ".concat(m," --version ").concat(a)}}({language:n,assembly:a});return r&&n?Object(D.jsx)(o.f,Object(h.a)(Object(h.a)({align:"start",direction:"column",fontSize:".75rem",w:"full"},e),{},{children:n===y.d.Java?Object(D.jsxs)(D.Fragment,{children:[Object(D.jsx)(vt,{closeText:"Hide",fontSize:"inherit",isOpen:c.isOpen,mt:2,onClick:c.onToggle,openText:"Install"}),Object(D.jsx)(o.b,{maxW:"full",overflow:"hidden",children:Object(D.jsx)(it.a,{in:c.isOpen,children:Object(D.jsx)(Re,{boxShadow:"none",code:r,fontSize:"inherit",language:n,mt:2})})})]}):Object(D.jsx)(Re,{boxShadow:"none",code:r,fontSize:"inherit",language:n,lineHeight:"2",w:"full"})})):null},Nt=function(){var e=B(),t=e.assembly,n=e.metadata,a=e.version,c=t.data,r=n.data;return c&&r?Object(D.jsxs)(At,{children:[Object(D.jsx)(Mt,{assembly:c,description:c.description,gridArea:kt,metadata:r,name:c.name,version:a}),Object(D.jsx)(o.f,{align:"start",gridArea:St,children:Object(D.jsx)(rt,{})}),Object(D.jsxs)(o.f,{direction:"column",gridArea:Lt,children:[Object(D.jsx)(o.e,{borderBottom:"base",display:{md:"none"},mb:2}),Object(D.jsx)(wt,{}),Object(D.jsx)(o.e,{borderBottom:"base",display:{md:"none"},mt:2})]}),Object(D.jsx)(o.f,{align:"start",gridArea:Ct,children:Object(D.jsx)(Ut,{})})]}):Object(D.jsx)(tt.a,{mx:"auto",my:10,size:"xl"})},Ht=function(){var e=B(),t=e.pageDescription,n=e.pageTitle,a=Object(s.useState)(0),c=Object(r.a)(a,2),d=c[0],u=c[1];return Object(s.useEffect)((function(){u(0)}),[n]),Object(D.jsx)(l.a,{meta:{title:n,description:t},pageName:"packageProfile",children:Object(D.jsxs)(o.g,{bg:"white","data-testid":N.page,maxW:"100vw",templateColumns:"1fr",templateRows:"auto 1fr auto",children:[Object(D.jsx)(Nt,{}),Object(D.jsxs)(i.e,{index:d,onChange:u,pt:4,variant:"line",children:[Object(D.jsxs)(i.b,{borderBottom:"base",mx:{base:0,lg:6},children:[Object(D.jsx)(i.a,{children:"Documentation"}),Object(D.jsx)(i.a,{"data-testid":N.dependenciesTab,children:"Dependencies"})]}),Object(D.jsxs)(i.d,{maxW:"full",children:[Object(D.jsx)(i.c,{p:0,children:Object(D.jsx)(et,{})}),Object(D.jsx)(i.c,{children:Object(D.jsx)(H,{})})]})]}),Object(D.jsx)(J,{})]})})},qt=function(){return Object(D.jsx)(M,{children:Object(D.jsx)(Ht,{})})},Gt=n(87),Vt=function(){var e=Object(a.i)(),t=e.name,n=e.scope,r=Object(Gt.b)();if(r.isLoading||!r.data)return Object(D.jsx)(o.c,{minH:"16rem",children:Object(D.jsx)(tt.a,{size:"xl"})});var i=function(e,t,n){var a=Object(d.c)(t,n),c=Object(d.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 i?Object(D.jsx)(a.a,{to:i}):Object(D.jsx)(c.default,{})},Zt="[^@\\/]+",Xt="@[^\\/]+",_t=function(){var e=Object(a.j)().path;return Object(D.jsxs)(a.d,{children:[Object(D.jsx)(a.b,{exact:!0,path:"".concat(e,"/:scope(").concat(Xt,")?/:name(").concat(Zt,")"),children:Object(D.jsx)(Vt,{})}),Object(D.jsx)(a.b,{path:"".concat(e,"/:scope(").concat(Xt,")?/:name(").concat(Zt,")/v/:version"),children:Object(D.jsx)(qt,{})}),Object(D.jsx)(a.b,{path:"*",children:Object(D.jsx)(c.NotFound,{})})]})}}}]);
2
- //# sourceMappingURL=7.63bdaf91.chunk.js.map
1
+ (this["webpackJsonpconstruct-hub-webapp"]=this["webpackJsonpconstruct-hub-webapp"]||[]).push([[7,13],{208:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var a=n(0),c=n(225),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"}}},o=n(34),i=n(2),s=(["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(" "),function(e){var t=e.children,n=e.meta,s=e.pageName,l=Object(o.e)(r[s]);Object(a.useEffect)((function(){l()}),[l]);var d=n.suffix,u=void 0===d||d,b=n.title,j=n.description,h=u?"".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]})})},218:function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return i}));var a=n(6),c=n(32),r=n(110),o=function(e){return!e||e.length<1?[]:e.reduce((function(e,t){return t.highlight?[].concat(Object(c.a)(e),[t.highlight]):e}),[])},i=function(e){for(var t=e.packageTags,n=e.keywords,o=new Array,i=new Set,s=0,l=[].concat(Object(c.a)(function(e){return(null!==e&&void 0!==e?e:[]).filter((function(e){var t;return Boolean(null===(t=e.keyword)||void 0===t?void 0:t.label)})).map((function(e){var t;return Object(a.a)(Object(a.a)({},e),{},{id:null===(t=e.keyword)||void 0===t?void 0:t.label})}))}(t)),Object(c.a)(function(e){return!e||e.length<1?[]:e.filter((function(e){return Boolean(e)&&!r.a.has(e)})).map((function(e){return{id:e,keyword:{label:e}}}))}(n)));s<l.length;s++){var d=l[s],u=d.keyword.label.toLowerCase();i.has(u)||(o.push(d),i.add(u))}return o}},219: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 i}));var a=n(15),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,t){var n=e.packages.filter((function(e){return e.name===t}));return n.length>1?n.sort((function(e,t){var n=new Date(e.metadata.date);return new Date(t.metadata.date).getTime()-n.getTime()}))[0]:n[0]}},224:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var a=n(0),c=n(22),r=function(){var e=Object(c.h)().search;return Object(a.useMemo)((function(){return new URLSearchParams(e)}),[e])}},231: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]}},232:function(e,t,n){"use strict";n.d(t,"a",(function(){return j}));var a=n(18),c=n(0),r=n(22),o=n(108),i=n(15),s=n(224),l=o.d.TypeScript,d="preferred-language",u=function(e){return null!=e&&o.e.has(e)},b=function(e){if(u(e))return e;try{var t,n=null!==(t=localStorage.getItem(d))&&void 0!==t?t:"";if(u(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)(),p=h.replace,O=Object(s.a)(),f=O.get(i.b.LANGUAGE),m=Object(c.useState)((function(){return b(f)})),v=Object(a.a)(m,2),g=v[0],x=v[1];Object(c.useEffect)((function(){u(f)&&f!==g&&x(f)}),[f]),Object(c.useEffect)((function(){f!==g&&t&&(O.set(i.b.LANGUAGE,g),p({pathname:l,hash:j,search:O.toString()}))}),[g,t]);var w=Object(c.useCallback)((function(e){if(x(e),n)try{localStorage.setItem(d,e)}catch(t){}}),[n]);return Object(c.useMemo)((function(){return[g,w]}),[g,w])}},243:function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var a=n(6),c=n(21),r=n(3),o=n(124),i=n(599),s=n(2),l=["date","format","formattedDate"],d=Object(r.e)((function(e,t){var n=e.date,r=e.format,d=e.formattedDate,u=Object(c.a)(e,l);return Object(s.jsx)(o.b,Object(a.a)(Object(a.a)({as:"time",dateTime:n.toISOString(),ref:t},u),{},{children:null!==d&&void 0!==d?d:Object(i.a)(n,null!==r&&void 0!==r?r:"")}))}));d.displayName="Time"},244:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var a=n(124),c=n(130),r=n(2),o=function(e){var t=e.label,n=e.color,o=e.icon;return Object(r.jsxs)(a.p,{align:"center",direction:"row",spacing:2,children:[Object(r.jsx)(c.a,{alt:"".concat(t," icon"),src:o,w:4}),Object(r.jsx)(a.q,{color:n,fontWeight:"bold",children:t})]})}},245:function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var a=n(6),c=n(21),r=n(148),o=n(68),i=n(35),s=n(2),l=["children","value","label","zIndex"],d=function(e){var t=e.children,n=e.value,d=e.label,u=void 0===d?n:d,b=e.zIndex,j=Object(c.a)(e,l);return Object(s.jsx)(i.a,{"aria-label":"Tag: ".concat(u),to:Object(o.c)({keywords:[n]}),zIndex:b,children:Object(s.jsx)(r.a,Object(a.a)(Object(a.a)({_hover:{textDecoration:"underline"}},j),{},{children:Object(s.jsx)(r.b,{children:t})}))})}},246:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var a=n(127),c=n(108),r=n(2),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})})}},265: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(124),c=n(126),r=n(28),o=n(208),i=n(6),s=n(21),l=n(3),d=n(130),u=n(2),b=["sources"],j=Object(l.e)((function(e,t){var n=e.sources,c=Object(s.a)(e,b);return Object(u.jsxs)(a.b,{as:"picture",children:[null===n||void 0===n?void 0:n.map((function(e,t){return Object(u.jsx)("source",{media:e.media,srcSet:e.srcSet},t)})),Object(u.jsx)(d.a,Object(i.a)({ref:t},c))]})}));j.displayName="Picture";var 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"},p=function(){return Object(u.jsx)(o.a,{meta:{title:"Not Found",description:"Oops! The page you were looking for does not exist"},pageName:"notFound",children:Object(u.jsxs)(a.c,{h:"100%",position:"relative",w:"100%",children:[Object(u.jsx)(j,{alt:"",inset:0,position:"absolute",sources:h.optimal,src:h.fallback,zIndex:"hide"}),Object(u.jsxs)(a.f,{align:"center",direction:"column",justify:"center",children:[Object(u.jsx)(j,{alt:"404 Image",sources:[{srcSet:"/assets/robot.webp"}],src:"/assets/robot.png"}),Object(u.jsx)(c.a,{as:r.b,colorScheme:"blue",to:"/",children:"Take Me Home"})]})]})})}},597:function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return _t}));var a=n(22),c=n(265),r=n(18),o=n(124),i=n(146),s=n(0),l=n(208),d=n(219),u=n(35),b=n(70),j=n(68),h=n(6),p=n(39),O=n(26),f=n.n(O),m=n(44),v=n(15),g=function(){var e=Object(m.a)(f.a.mark((function e(t,n,a){var c,r;return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return c="".concat(Object(d.b)(t,n,a)).concat(v.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)}}(),x=function(){var e=Object(m.a)(f.a.mark((function e(t,n,a,c,r){var o,i,s,l,u;return f.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(d.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)}}(),w=function(){var e=Object(m.a)(f.a.mark((function e(t,n,a){var c,r,o;return f.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(d.b)(t,n,a)).concat(v.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)}}(),y=n(108),k=n(134),C=n(232),S=n(224),L=n(10),T=n(32),I=n(297),A=n.n(I),R=function(e){return e.toLowerCase().replace(/[^a-zA-Z0-9 ]/g,"").replace(/ /g,"-")},W=function e(t,n){var a=t[t.length-1];return a&&a.level<n.level?(a.children=e(a.children,n),t):(t.push(n),t)},z=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,n=new RegExp("(`{3}[\\s\\S]*?(?:`{3})|^#{1,".concat(t,"}[^#].*)"),"gm");return e.split(n).reduce((function(e,t){var n=e[e.length-1];return t.startsWith("#")||(null===n||void 0===n?void 0:n.startsWith("#"))?[].concat(Object(T.a)(e),[t]):(e[e.length-1]+=t,e)}),[])},E=function(e){var t,n,a,c,o=(null!==(t=e.match(/(\S+)\s*=\s*(\"?)([^"]*)(\2|\s|$)/g))&&void 0!==t?t:[]).reduce((function(e,t){var n,a=t.split("="),c=Object(r.a)(a,2),o=c[0],i=c[1],s=null!==(n=/['"](.*?)['"]/.exec(i))&&void 0!==n?n:[],l=Object(r.a)(s,2),d=(l[0],l[1]);return Object(h.a)(Object(h.a)({},e),{},Object(L.a)({},o,d))}),{}),i=null!==(n=/^#*\s*(?:<a\s.*?(?:\/>|<\/a>))?\s*([^<]+?)\s*(?:<|$)/.exec(e))&&void 0!==n?n:[e,e],s=Object(r.a)(i,2),l=(s[0],s[1].replace(/\[([^\]]+)\](?:\([^)]+\)|\[[^\]]+\])/g,"$1").replace(/:\+1:|:-1:|:[\w-]+:/g,(function(e){var t;return null!==(t=A.a.get(e))&&void 0!==t?t:e}))),d=null!==(a=o["data-heading-title"])&&void 0!==a?a:l;return{id:null!==(c=o["data-heading-id"])&&void 0!==c?c:encodeURIComponent(R(d)),title:d}},F=function(e,t){var n=t.scope,a=t.language,c=t.name,r=t.version,o=t.submodule,i=n?"".concat(n,"/").concat(c):"".concat(c),s="/packages/".concat(i,"/v/").concat(r),l="?".concat(v.b.LANGUAGE,"=").concat(a);o&&(l+="&submodule=".concat(o));var d='# API Reference <span data-heading-title="API Reference" data-heading-id="api-reference"></span>',u=e.split(d),b=u.length>1?u.pop():"",j=u.join(d),p=z(b,3),O=z(j),f=[d.trim()].concat(Object(T.a)(null!==p&&void 0!==p?p:[])),m="".concat(s).concat(l),g=O.reduce((function(e,t){if(t.startsWith("#")){var n,a,c=E(t),r=c.id,o=c.title,i=null!==(n=null===(a=t.match(/(#)/gm))||void 0===a?void 0:a.length)&&void 0!==n?n:1,s=function(e){return(e.endsWith(".")||e.endsWith(":"))&&(e=e.slice(0,-1)),e}(o),l={level:i,id:r,title:s,path:"".concat(m,"#").concat(r),children:[]};return W(e,l)}return e}),[]);1===g.length&&(g=g[0].children);var x,w,y=[].concat([{level:1,id:"Readme",title:"Readme",path:m,children:g}]),k={};return null===f||void 0===f||f.forEach((function(e){var t,n,a,c=e.match(/(^#{1,3}[^#].*)/g),r=null!==(t=null===(n=e.match(/(#)/gm))||void 0===n?void 0:n.length)&&void 0!==t?t:1;if(null===c||void 0===c?void 0:c.length){var o=E(e),i=o.id,d=o.title,u=3===r?(a=i,"".concat(s,"/api/").concat(a).concat(l)):void 0,b=Object(h.a)({level:r,id:i,title:d,children:[]},u?{path:u}:{});y=W(y,b),x={id:i,title:d},w=r}else 3===w&&(k[x.id]={title:x.title,content:e})})),{readme:j,apiReference:k,menuItems:y}},D=n(2),P=Object(s.createContext)(void 0),B=function(){var e=Object(s.useContext)(P);if(!e)throw new Error("This component must be a child of a <PackageStateProvider />");return e},M=function(e){var t,n,o,i,l,d=e.children,u=Object(a.i)(),b=u.name,j=u.scope,O=u.version,f="".concat(j,"/").concat(b,"/v").concat(O),m=Object(C.a)(),L=Object(r.a)(m,1)[0],T=null!==(t=Object(S.a)().get(v.b.SUBMODULE))&&void 0!==t?t:"",I=Object(k.b)().data,A=j?"".concat(j,"/").concat(b):b,R=null===I||void 0===I?void 0:I.packages[A],W=Object(p.useQuery)("".concat(f,"-docs-").concat(L),(function(){return x(b,O,y.f[L],j,T)})),z=Object(p.useQuery)("".concat(f,"-assembly"),(function(){return g(b,O,j)})),E=Object(p.useQuery)("".concat(f,"-metadata"),(function(){return w(b,O,j)})),B="".concat(j?"".concat(j,"/").concat(b):b," ").concat(O),M=null!==(n=null===(o=z.data)||void 0===o?void 0:o.description)&&void 0!==n?n:"",U=Boolean(W.error||z.error),N=Boolean(!W.isLoading&&!z.isLoading&&W.data&&z.data),H=Boolean(L===y.d.TypeScript||z.isLoading||z.error||null!=(null===(i=z.data)||void 0===i||null===(l=i.targets)||void 0===l?void 0:l[L.toString()])),q=Boolean(!E.isLoading&&(z.isLoading||W.isLoading)),G=Object(s.useMemo)((function(){return W.data?F(W.data,{scope:j,name:b,version:O,language:L,submodule:T}):{menuItems:[]}}),[W.data,b,j,O,L,T]);return z.error?Object(D.jsx)(c.NotFound,{}):Object(D.jsx)(P.Provider,{value:Object(h.a)({assembly:z,hasDocs:N,hasError:U,isLoadingDocs:q,isSupported:H,language:L,markdown:W,metadata:E,name:b,pageDescription:M,pageTitle:B,scope:j,version:O,allVersions:R},G),children:d})},U=n(58),N=Object(U.a)("package-page",["page","feedbackLinks","reportLink","reportAbuseLink","githubLink","dependenciesTab","dependenciesList","dependenciesLink","description","markdown","selectVersionButton","selectVersionDropdown","selectVersionItem"]),H=function(){var e,t=B().assembly.data;if(!t)return Object(D.jsx)(b.a,{});var n=Object.entries(null!==(e=t.dependencies)&&void 0!==e?e:{});return n.length?Object(D.jsx)(o.p,{"data-testid":N.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(D.jsxs)(u.a,{_first:{ml:4},"data-testid":N.dependenciesLink,fontWeight:"semibold",p:2,to:Object(j.a)({name:n,version:Object(d.d)(a)}),children:[n," - ",a]},"".concat(n,"-").concat(a))}))}):Object(D.jsx)(o.c,{children:"This library does not have any known dependencies"})},q=n(31),G=n(147),V=n(57),Z=n(64),X=n(8),_=function(e){return Object(D.jsxs)(X.a,Object(h.a)(Object(h.a)({},e),{},{children:[Object(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"}),Object(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"})]}))},$={h:6,ml:2,w:6},J=function(){var e,t=B(),n=Object(G.a)({base:"horizontal",md:"vertical"}),a=Object(D.jsx)(o.e,{borderColor:"white",mr:6,orientation:n}),c=t.metadata.data,r=t.assembly.data;if(!r||!c)return null;var i,s=null!==(e=null===r||void 0===r?void 0:r.repository)&&void 0!==e?e:{},l=void 0;"git"===s.type&&((l=(null===(i=s.url)||void 0===i?void 0:i.endsWith(".git"))?s.url.replace(".git",""):s.url).endsWith("/")&&(l=l.slice(0,l.length-1)));return Object(D.jsxs)(o.p,{align:"center",backgroundColor:"blue.600",borderTop:"1px solid",borderTopColor:"blue.50",color:"white","data-testid":N.feedbackLinks,direction:{base:"column",md:"row"},justify:"space-evenly",px:8,py:5,spacing:4,children:[l&&Object(D.jsxs)(D.Fragment,{children:[Object(D.jsx)(V.a,{color:"currentcolor","data-testid":N.githubLink,fontSize:"lg",fontWeight:"semibold",hasIcon:!1,href:"".concat(l,"/issues"),rightIcon:Object(D.jsx)(_,Object(h.a)({color:"white"},$)),variant:"solid",children:"Provide feedback to publisher"}),a]}),Object(D.jsx)(V.a,{color:"currentcolor","data-testid":N.reportLink,fontSize:"lg",fontWeight:"semibold",hasIcon:!1,href:"".concat(Z.a,"/issues/new"),rightIcon:Object(D.jsx)(_,Object(h.a)({color:"white"},$)),children:"Provide feedback to Construct Hub"}),a,Object(D.jsx)(V.a,{color:"currentcolor","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===r||void 0===r?void 0:r.name))),rightIcon:Object(D.jsx)(q.i,Object(h.a)({},$)),children:"Report abuse"})]})},Q=n(11),K=n(126),Y={color:"gray.900",h:4,w:4},ee=function(e){var t=e.children,n=e.path,a=e.title,c=e.showToggle,r={_hover:{bg:"rgba(0, 124, 253, 0.05)"},overflow:"hidden",pl:1,py:c?2:1,marginLeft:c?0:1,fontWeight:c?"bold":void 0,textOverflow:"ellipsis",w:"100%"};return n?Object(D.jsx)(u.a,Object(h.a)(Object(h.a)({title:a,to:n},r),{},{children:t})):Object(D.jsx)(o.q,Object(h.a)(Object(h.a)({},r),{},{children:t}))},te=function e(t){var n,c=t.children,r=t.title,i=t.path,l=t.level,d=t.onOpen,u=l<2,b=Object(Q.g)({onOpen:d,defaultIsOpen:u}),j=Object(a.h)(),p=j.hash,O=j.pathname,f=new URL(null!==i&&void 0!==i?i:"",window.origin),m=(null===i||void 0===i?void 0:i.includes("/api/"))?f.pathname===O:f.hash&&p&&f.hash===p,v=(null!==(n=null===c||void 0===c?void 0:c.length)&&void 0!==n?n:0)>0,g=b.isOpen&&v,x=Object(s.useMemo)((function(){return null===c||void 0===c?void 0:c.map((function(t,n){return Object(s.createElement)(e,Object(h.a)(Object(h.a)({},t),{},{key:n,level:l+1,onOpen:b.onOpen}))}))}),[c,b.onOpen,l]);return Object(D.jsxs)(o.f,{direction:"column",children:[Object(D.jsxs)(o.f,{align:"center",color:m?"blue.500":"gray.800",children:[v&&Object(D.jsx)(K.b,{"aria-label":"expand-toggle",borderRadius:"md",h:4,icon:b.isOpen?Object(D.jsx)(q.c,Object(h.a)({},Y)):Object(D.jsx)(q.e,Object(h.a)({},Y)),ml:-1,onClick:b.onToggle,size:"xs",variant:"link",w:0}),Object(D.jsx)(ee,{path:i,showToggle:v,title:r,children:r})]}),Object(D.jsx)(o.b,{_before:{bg:"gray.100",bottom:0,content:'""',left:0,position:"absolute",top:0,w:"1px"},display:g?"initial":"none",ml:2,mr:2,pl:2,position:"relative",children:x})]})},ne=function(e){var t=e.items;return Object(D.jsx)(o.f,{direction:"column",maxWidth:"100%",children:t.map((function(e,t){return Object(s.createElement)(te,Object(h.a)(Object(h.a)({},e),{},{key:t,level:0,onOpen:void 0}))}))})},ae=n(133),ce=n(140),re=n(3),oe=n(129),ie=n(138),se=n(139),le=Object(re.e)((function(e,t){var n=e.value,a=e.onChange,c=e.onSubmit,o=Object(s.useState)(n),i=Object(r.a)(o,2),l=i[0],d=i[1];return Object(se.a)(l,{onChange:a}),Object(D.jsx)(ie.a,{"data-testid":"choose-submodule-search-form",onSubmit:c,children:Object(D.jsxs)(oe.b,{children:[Object(D.jsx)(oe.c,{children:Object(D.jsx)(q.m,{color:"gray.400"})}),Object(D.jsx)(oe.a,{"data-testid":"choose-submodule-search-input",onChange:function(e){return d(e.target.value)},placeholder:"Search",ref:t,value:l,variant:"filled"})]})})}));le.displayName="SearchInput";var de=function(e){var t=e.inputValue,n=e.isOpen,c=e.onClose,r=e.onInputChange,i=e.submodules,l=Object(s.useRef)(null),d=Object(a.g)().push,u=Object(s.useCallback)((function(e){c(),d(e)}),[c,d]),b=Object(s.useCallback)((function(e){if(e.preventDefault(),i.length){var t=i[0].to;u(t)}}),[u,i]);return Object(D.jsx)(ae.g,{initialFocusRef:l,isOpen:n,onClose:c,children:Object(D.jsx)(ae.m,{children:Object(D.jsxs)(ae.j,{mx:4,children:[Object(D.jsx)(ae.i,{"data-testid":"choose-submodule-modal-close"}),Object(D.jsx)(ae.l,{"data-testid":"choose-submodule-modal-header",fontSize:"lg",fontWeight:"bold",children:"Choose a submodule"}),Object(D.jsxs)(ae.h,{"data-testid":"choose-submodule-modal-body",p:0,children:[Object(D.jsx)(o.b,{pb:4,px:4,children:Object(D.jsx)(le,{onChange:r,onSubmit:b,ref:l,value:t})}),Object(D.jsx)(o.e,{}),Object(D.jsx)(o.r,{"data-testid":"choose-submodule-modal-results",m:0,maxH:"50vh",overflow:"hidden auto",p:0,role:"listbox",tabIndex:-1,children:i.map((function(e){var t=e.name,n=e.to;return Object(D.jsx)(ce.a,{"data-testid":"choose-submodule-result",name:t,onClick:function(){return u(n)}},t)}))})]})]})})})},ue=function(e){var t,n=e.assembly,c=Object(a.h)().pathname,i=Object(a.g)().push,l=Object(S.a)(),d=Object.keys(null!==(t=null===n||void 0===n?void 0:n.submodules)&&void 0!==t?t:{}),u=Object(Q.g)(),b=u.isOpen,j=u.onOpen,h=u.onClose,p=l.get(v.b.SUBMODULE),O=p?"Submodule: ".concat(p):"Choose Submodule",f=Object(s.useState)(""),m=Object(r.a)(f,2),g=m[0],x=m[1],w=Object(s.useCallback)((function(e){var t=new URLSearchParams(l.toString());return t.set("submodule",e),"".concat(c,"?").concat(t)}),[c,l]),y=Object(s.useMemo)((function(){var e=d;return g&&(e=e.filter((function(e){return e.toLowerCase().includes(g.toLowerCase())}))),e.map((function(e){var t=e.split(".")[1];return{name:t,to:w(t)}}))}),[d,g,w]);return 0===d.length?null:Object(D.jsxs)(o.p,{spacing:4,w:"100%",children:[p&&Object(D.jsxs)(D.Fragment,{children:[Object(D.jsx)(K.a,{borderRadius:"none","data-testid":"choose-submodule-go-back",leftIcon:Object(D.jsx)(q.a,{"aria-label":"Back to construct root"}),onClick:function(){var e=l.get(v.b.LANGUAGE);i("".concat(c).concat(e?"?".concat(v.b.LANGUAGE,"=").concat(e):""))},title:"Back to construct root",variant:"link",children:null===n||void 0===n?void 0:n.name}),Object(D.jsx)(o.e,{})]}),Object(D.jsx)(K.a,{borderRadius:"none",color:"blue.500","data-testid":"choose-submodule-search-trigger",flexGrow:1,onClick:j,rightIcon:Object(D.jsx)(q.c,{}),title:"Choose Submodule",variant:"link",children:O}),Object(D.jsx)(de,{inputValue:g,isOpen:b,onClose:h,onInputChange:x,submodules:y})]})},be=n(305),je=n(394),he=n.n(je),pe=n(488),Oe=n.n(pe),fe=n(521),me=n.n(fe),ve=n(592),ge=n(524),xe=n.n(ge),we=n(21),ye=n(594),ke=n(556),Ce=["value"],Se=Object(re.e)((function(e,t){var n=e.value,a=Object(we.a)(e,Ce),c=Object(Q.d)(n),r=c.hasCopied,o=c.onCopy;return Object(D.jsx)(K.b,Object(h.a)({"aria-label":"Copy Button",color:"blue.500",colorScheme:"blue",h:6,icon:r?Object(D.jsx)(q.b,{color:"green.300"}):Object(D.jsx)(q.g,{}),minW:"auto",ml:1,onClick:o,ref:t,variant:"ghost",w:6},a))}));Se.displayName="CopyButton";var Le,Te=function(e){var t=e.code,n=e.tokens,a=e.getLineProps,c=e.getTokenProps;return Object(D.jsxs)(D.Fragment,{children:[Object(D.jsx)(o.f,{align:"center",bg:"rgba(0, 124, 253, 0.15)",borderTopRadius:"md",justify:"flex-end",px:2,py:1,children:Object(D.jsx)(Se,{value:t})}),Object(D.jsx)(o.b,{overflowX:"auto",p:2,children:n.map((function(e,t){return Object(D.jsx)("div",Object(h.a)(Object(h.a)({},a({line:e,key:t})),{},{children:e.map((function(e,t){return Object(D.jsx)(o.b,Object(h.a)({as:"span",sx:{wordWrap:"normal"}},c({token:e,key:t})),t)}))}),t)}))})]})},Ie=function(e){var t=e.code,n=e.tokens,a=e.getLineProps,c=e.getTokenProps;return Object(D.jsxs)(o.g,{p:3,templateColumns:"1fr min-content",w:"full",children:[Object(D.jsx)(o.b,{m:-3,maxW:"full",overflow:"auto",p:3,children:n.map((function(e,t){return Object(D.jsx)("div",Object(h.a)(Object(h.a)({},a({line:e,key:t})),{},{children:e.map((function(e,t){return Object(D.jsx)("span",Object(h.a)({},c({token:e,key:t})),t)}))}),t)}))}),Object(D.jsx)(o.f,{align:"center",ml:1,children:Object(D.jsx)(Se,{value:t})})]})},Ae=["code","language"],Re=function(e){var t=e.code,n=e.language,a=Object(we.a)(e,Ae);return Object(D.jsx)(ye.a,Object(h.a)(Object(h.a)({},ye.b),{},{code:t,language:n,theme:ke.a,children:function(e){return Object(D.jsx)(o.b,Object(h.a)(Object(h.a)({as:"pre",border:"base",borderRadius:"md",boxShadow:"base",className:e.className,style:e.style},a),{},{children:e.tokens.length>1?Object(D.jsx)(Te,Object(h.a)(Object(h.a)({},e),{},{code:t})):Object(D.jsx)(Ie,Object(h.a)(Object(h.a)({},e),{},{code:t}))}))}}))},We=n(557),ze=n.n(We),Ee=function e(t){return s.Children.toArray(t).reduce((function(t,n){return"string"===typeof n?t+n:"object"===typeof n&&"props"in n?t+e(n.props.children):t}),"").trim()},Fe=function(e){var t,n,a=e.level,c=e.children,r=["2xl","xl","lg","md","sm","xs"][a-1],i="h".concat(a),s=(new DOMParser).parseFromString(ze.a.renderToStaticMarkup(c),"text/html").querySelector("span[data-heading-title][data-heading-id]"),l=null!==(t=null===s||void 0===s?void 0:s.dataset.headingTitle)&&void 0!==t?t:Ee(c),d=null!==(n=null===s||void 0===s?void 0:s.dataset.headingId)&&void 0!==n?n:R(l);return Object(D.jsx)(D.Fragment,{children:Object(D.jsx)(o.i,{as:i,backgroundColor:5===a?"gray.50":void 0,borderBottom:"1px solid",borderBottomColor:"gray.100",color:"gray.800",level:a,marginBottom:4,marginTop:a>=4?"1.5em":4,paddingBottom:2,paddingTop:2,paddingX:a>=4?2:void 0,size:r,children:Object(D.jsx)(u.a,{"data-heading-id":"#".concat(d),"data-heading-level":a,"data-heading-title":l,id:d,replace:!0,sx:{"> code":{color:"blue.800",fontSize:"inherit"}},to:"#".concat(d),children:c})})})},De=n(130),Pe=n(149),Be=Object(U.a)("markdown",["container"]),Me=["children","href"],Ue={a:function(e){var t=e.children,n=e.href,a=Object(we.a)(e,Me),c=o.j;try{if(n&&n.startsWith("http"))if(new URL(n).hostname!==window.location.hostname){c=function(e){return Object(D.jsx)(V.a,Object(h.a)({},e))}}}catch(r){c=o.j}return Object(D.jsx)(c,Object(h.a)(Object(h.a)({color:"blue.500",href:n,sx:{"> img + svg":{display:"none"}}},a),{},{children:t}))},blockquote:function(e){var t=e.children;return Object(D.jsx)(o.b,{as:"blockquote",borderLeft:"5px solid",borderLeftColor:"gray.100",marginX:"2",px:"2",wordBreak:"break-word",children:t})},caption:Pe.b,code:function(e){var t=e.inline,n=e.children,a=e.language,c=void 0===a?"typescript":a;if(t)return Object(D.jsx)(o.d,{bg:"gray.50",border:"1px solid",borderColor:"gray.50",borderRadius:"md",marginTop:"md",mx:2,px:2,py:0,children:n});var r=s.Children.toArray(n).reduce((function(e,t){return"string"===typeof t?"".concat(e).concat(t):e}),"").trim();return Object(D.jsx)(Re,{code:r,fontSize:"0.9rem",language:c})},em:function(e){var t=e.children;return Object(D.jsx)(o.b,{as:"em",fontStyle:"normal",fontWeight:"bold",children:t})},h1:Fe,h2:Fe,h3:Fe,h4:Fe,h5:Fe,h6:Fe,hr:function(){return Object(D.jsx)(D.Fragment,{})},img:function(e){return Object(D.jsx)(De.a,Object(h.a)({display:"inline-block"},e))},li:function(e){var t=e.children;return Object(D.jsx)(o.m,{lineHeight:"tall",marginX:2,sx:{"em:first-of-type":{fontSize:"small"},"&::marker":{color:"gray.400"},code:{fontSize:"small"}},children:t})},ol:function(e){var t=e.children;return Object(D.jsx)(o.n,{children:t})},p:function(e){var t=e.children;return Object(D.jsx)(o.q,{lineHeight:"1.5",mx:2,my:4,children:t})},pre:function(e){var t=e.children;return Object(D.jsx)(o.b,{as:"pre",children:t})},sup:function(e){var t=e.children,n=void 0,a="";if(Array.isArray(t)){var c=Object(r.a)(t,1)[0];"string"===typeof c&&(a=c)}return"Required"===a?n="orange.700":"Optional"===a&&(n="green.700"),Object(D.jsx)(o.b,{as:"sup",color:n,fontSize:"xs",ml:-1,top:-1,children:t})},table:function(e){var t=e.children;return Object(D.jsx)(o.b,{maxW:"100%",overflowX:"auto",children:Object(D.jsx)(Pe.a,{variant:"striped",children:t})})},tbody:Pe.c,td:Pe.d,tfoot:Pe.e,th:Pe.f,thead:Pe.g,tr:Pe.h,ul:function(e){var t=e.children;return Object(D.jsx)(o.r,{marginTop:2,padding:0,children:t})}},Ne=Object(h.a)({},be);Ne.attributes.span=(null!==(Le=Ne.attributes.span)&&void 0!==Le?Le:[]).concat(["dataHeadingTitle","dataHeadingId"]);var He=[[Oe.a],[me.a,Ne]],qe=[xe.a,ve.a],Ge=/^(?:(?:git@)?github\.com:|(?:https?:\/\/)github\.com\/)([^/]+)\/([^/]+)(?:\.git)?$/,Ve=function(e){var t=e.children,n=function(e){var t=e.type,n=e.url,a=e.directory;if("git"===t){var c=Ge.exec(n);if(null!=c){var o=Object(r.a)(c,3);return{owner:o[1],repo:o[2],directory:a}}}}(e.repository),a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"HEAD";return null==n?he.a.uriTransformer:function(a){var c=he.a.uriTransformer(a),o=Object(r.a)(c,1)[0];if("#"===o||"/"===o)return c;if(c.includes("://"))return c;var i=n.owner,s=n.repo.replace(/\.git$/,""),l=n.directory?"".concat(n.directory,"/"):"";return"https://".concat(e,"/").concat(i,"/").concat(s,"/").concat(t,"/").concat(l).concat(c)}};return Object(D.jsx)(o.b,{"data-testid":Be.container,px:8,children:Object(D.jsx)(he.a,{components:Ue,rehypePlugins:He,remarkPlugins:qe,transformImageUri:a("raw.githubusercontent.com"),transformLinkUri:a("github.com","blob/HEAD"),children:t})})},Ze=function(){var e=B(),t=e.isLoadingDocs,n=e.readme,a=e.assembly.data;return!t&&n&&a?Object(D.jsx)(Ve,{repository:a.repository,children:n}):null},Xe=n(28),_e=function(){var e=B().language,t=Object(D.jsx)(V.a,{href:"".concat(Z.a,"/issues/new"),children:"issue"});return Object(D.jsxs)(o.q,{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,"."]})},$e=function(e){var t=e.rootId,n=Object(a.h)(),c=n.pathname,r=n.hash,i=n.search,s=B(),l=s.isLoadingDocs,d=s.assembly.data,u=function(){var e=Object(a.i)().typeId,t=B().apiReference;if(e)return null===t||void 0===t?void 0:t[e]}();if(l)return null;if(!u||!d)return Object(D.jsx)(_e,{});var b=u.title,j=u.content,h="".concat(c).concat(i,"#").concat(r);return Object(D.jsxs)(D.Fragment,{children:[Object(D.jsx)(o.i,{as:"h2",p:8,size:"2xl",children:Object(D.jsx)(Xe.c,{id:t,to:h,children:b})}),Object(D.jsx)(Ve,{repository:d.repository,children:j})]})},Je="4.5rem",Qe="apidocs_header",Ke="api",Ye=function(){var e,t=B().assembly.data;return Object.keys(null!==(e=null===t||void 0===t?void 0:t.submodules)&&void 0!==e?e:{}).length>0?Object(D.jsx)(o.f,{borderBottom:"1px solid",borderColor:"blue.50",justify:"center",py:4,children:Object(D.jsx)(ue,{assembly:t})}):null},et=function(){var e=Object(a.j)().path,t=B().menuItems,n=Object(a.h)(),c=n.hash,r=n.pathname,i=n.search;return Object(s.useEffect)((function(){if(c){var e=document.querySelector('[data-heading-id="'.concat(c,'"]'));null===e||void 0===e||e.scrollIntoView(!0)}else if(function(e){var t=e.split("/");return t[t.length-2]===Ke}(r)){var t=document.getElementById(Qe);null===t||void 0===t||t.scrollIntoView(!0)}else window.scrollTo(0,0)})),Object(D.jsxs)(o.g,{bg:"white",columnGap:4,h:"100%",templateColumns:{base:"1fr",md:"1fr 3fr"},width:"100%",children:[Object(D.jsxs)(o.f,{alignSelf:"stretch",borderRight:"1px solid",borderRightColor:"blue.50",direction:"column",display:{base:"none",md:"flex"},maxHeight:"calc(100vh - ".concat(Je,")"),overflow:"hidden auto",pl:6,position:"sticky",pr:4,top:Je,children:[Object(D.jsx)(Ye,{}),Object(D.jsx)(o.b,{overflowY:"auto",py:4,children:Object(D.jsx)(ne,{items:t})})]}),Object(D.jsx)(o.b,{h:"max-content",maxWidth:"100%",overflow:"hidden",py:4,sx:{a:{scrollMarginTop:Je}},children:Object(D.jsxs)(a.d,{children:[Object(D.jsx)(a.a,{exact:!0,from:"".concat(e,"/").concat(Ke),to:{pathname:e,search:i}}),Object(D.jsx)(a.b,{exact:!0,path:e,children:Object(D.jsx)(Ze,{})}),Object(D.jsx)(a.b,{exact:!0,path:"".concat(e,"/").concat(Ke,"/:typeId"),children:Object(D.jsx)($e,{rootId:Qe})})]})})]})},tt=n(93),nt=n(246),at=function(e){var t=e.targetLanguages,n=e.selectedLanguage,c=B(),r=c.name,i=c.scope,s=c.version,l=Object(a.g)().push;return Object(D.jsx)(o.p,{align:"center","data-testid":"language-bar",direction:"row",spacing:2,children:Object(T.a)(t).sort((function(e,t){return y.a.indexOf(e)-y.a.indexOf(t)})).map((function(e){var t=!y.e.has(e),a=e===n,c=y.c[e].icon;return Object(D.jsx)(nt.a,{language:e,children:Object(D.jsx)(K.b,{"aria-label":"Select ".concat(e," icon"),border:a?"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(D.jsx)(c,{"aria-label":"".concat(e,"-icon"),borderRadius:"sm",height:[4,5,6],width:[4,5,6]}),onClick:function(){a||l(Object(j.a)({name:Object(d.c)(r,i),version:s,language:e}))},p:1,variant:"outline",w:"max-content"})},e)}))})},ct=new Set(y.a),rt=function(){var e,t=B(),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}),l=Object(r.a)(i,2)[1],d=[].concat(Object(T.a)(Object.keys(null!==(e=null===n||void 0===n?void 0:n.targets)&&void 0!==e?e:{})),[y.d.TypeScript]),u=d.includes(a);Object(s.useEffect)((function(){u||l(y.d.TypeScript)}),[u]);var b={selectedLanguage:u?a:y.d.TypeScript,setSelectedLanguage:o,targetLanguages:d.filter((function(e){return ct.has(e)}))};return Object(D.jsx)(at,Object(h.a)({},b))},ot=n(127),it=n(48),st=n(346),lt=n.n(st),dt=n(244),ut=["license"],bt=Object(re.e)((function(e,t){var n=e.license,a=Object(we.a)(e,ut),c=lt.a[n].url;return Object(D.jsx)(V.a,Object(h.a)(Object(h.a)({href:c,ref:t},a),{},{children:n}))}));bt.displayName="LicenseLink";var jt=n(243),ht="MMM dd, yyyy 'at' h:mmaaa",pt=n(88),Ot=n(231),ft=n(218),mt=["openText","closeText","isOpen"],vt=function(e){var t=e.openText,n=e.closeText,a=e.isOpen,c=Object(we.a)(e,mt);return Object(D.jsx)(K.a,Object(h.a)(Object(h.a)({colorScheme:"blue",leftIcon:a?Object(D.jsx)(q.f,{}):Object(D.jsx)(q.c,{}),variant:"link"},c),{},{children:a?n:t}))},gt=function(e){var t=e.children,n=e.label,a=e.tooltip;return Object(D.jsx)(ot.a,{hasArrow:!0,isDisabled:!a,label:a,placement:"left",children:Object(D.jsxs)(o.q,{fontWeight:"bold",children:[n," ",Object(D.jsx)(o.b,{as:"span",fontWeight:"normal",children:t})]})})},xt=function(e){var t=e.downloads;return Object(D.jsx)(gt,{label:Object(D.jsxs)(D.Fragment,{children:[Object(D.jsx)(o.b,{as:"span",mr:1,children:Object(D.jsx)(q.h,{})}),t.toLocaleString()]}),tooltip:"Download numbers are periodically sourced from the npm registry",children:"Weekly downloads"})},wt=function(e){var t=B(),n=Object(pt.b)().data,a=Object(Q.g)({defaultIsOpen:!0}),c=Object(Ot.a)("packageLinks"),i=t.assembly.data,l=t.metadata.data,d=t.scope?"".concat(t.scope,"/").concat(t.name):t.name,b=Object(ft.a)(null===l||void 0===l?void 0:l.packageTags),p=Object(r.a)(b,1)[0],O=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,l,d,b,h,p=null===r||void 0===r||null===(i=r.packages)||void 0===i||null===(l=i[a])||void 0===l||null===(d=l.downloads)||void 0===d?void 0:d.npm;void 0!==p&&o.push(Object(D.jsx)(xt,{downloads:p}));var O=null===t||void 0===t?void 0:t.author.name,f=null===t||void 0===t?void 0:t.repository,m=null===t||void 0===t?void 0:t.license;if(O){var v=Object(D.jsx)(u.a,{color:"blue.500",to:Object(j.c)({query:O}),children:O});o.push(Object(D.jsx)(gt,{label:"Author",children:v}))}var g=null===n||void 0===n?void 0:n.date;if(g){var x=Object(D.jsx)(jt.a,{date:new Date(g),fontWeight:"normal",format:ht});o.push(Object(D.jsx)(gt,{label:"Published",children:x}))}if(f){var w=Object(j.b)(f.url);if(w){var y=Object(D.jsx)(V.a,{href:w.url,children:w.hostname});o.push(Object(D.jsx)(gt,{label:"Repository",children:y}))}}if(m&&m in lt.a){var k=Object(D.jsx)(bt,{license:m});o.push(Object(D.jsx)(gt,{label:"License",children:k}))}(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(D.jsx)(V.a,{href:i,children:null!==r&&void 0!==r?r:i});o.push(Object(D.jsxs)(gt,{label:a,children:[a,": ",s]}))}}));var C=null!==(b=null===n||void 0===n||null===(h=n.links)||void 0===h?void 0:h.npm)&&void 0!==b?b:"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(C){var S=Object(D.jsx)(V.a,{href:C,children:new URL(C).hostname});o.push(Object(D.jsx)(gt,{label:"Registry",children:S}))}}return o.map((function(e,t){return Object(D.jsx)(s.Fragment,{children:e},t)}))}({assembly:i,metadata:l,name:d,packageLinks:c,stats:n});if(!O.length)return null;var f=O.slice(0,2),m=O.slice(2,O.length);return Object(D.jsxs)(o.p,Object(h.a)(Object(h.a)({align:"start",color:"gray.600",fontSize:".75rem",mt:2,spacing:2},e),{},{children:[p&&Object(D.jsx)(dt.a,Object(h.a)({},p)),f,m.length>0&&Object(D.jsxs)(D.Fragment,{children:[Object(D.jsx)(it.a,{animateOpacity:!0,in:a.isOpen,children:Object(D.jsx)(o.p,{spacing:2,children:m})}),Object(D.jsx)(vt,{closeText:"See fewer details (".concat(f.length,")"),fontSize:"inherit",isOpen:a.isOpen,onClick:a.onToggle,openText:"See more details (".concat(m.length,")")})]})]}))},yt=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(" ")},kt="heading",Ct="install",St="languages",Lt="meta",Tt=yt([kt],[Lt],[St],[Ct]),It=yt([kt,St,Ct],[kt,null,Lt]),At=function(e){var t=e.children;return Object(D.jsx)(o.g,{columnGap:{md:6,lg:10},pt:{base:3,lg:6},px:{base:5,md:6,lg:10},rowGap:{base:4,lg:0},templateAreas:{base:Tt,lg:It},templateColumns:{base:"1fr",lg:"1fr auto 15rem"},templateRows:{lg:"auto 1fr"},children:t})},Rt=n(112),Wt=n(245),zt=n(150),Et=n(560),Ft=n.n(Et),Dt=n(86),Pt=function(){var e=B(),t=e.scope,n=e.name,c=e.version,r=e.allVersions,o=e.language,i=t?"".concat(t,"/").concat(n):n,l=Object(Dt.b)(),d=Object(a.g)().push,u=l.findByName(i),b=Object(s.useMemo)((function(){var e=u.map((function(e){return e.version})),t=Object(T.a)(new Set([].concat(Object(T.a)(null!==r&&void 0!==r?r:[]),Object(T.a)(e),[c])));return t.sort(Ft.a.rcompare),t}),[u,c,r]);return Object(D.jsx)(zt.a,{"data-testid":N.selectVersionDropdown,fontWeight:"500",onChange:function(e){d(Object(j.a)({name:i,version:e.target.value,language:o}))},size:"sm",value:c,width:"10rem",children:b.map((function(e){return Object(D.jsx)("option",{"data-testid":N.selectVersionItem,"data-value":e,value:e,children:"v".concat(e)},e)}))})},Bt=["assembly","name","description","metadata","version"],Mt=function(e){var t,n,a,c=e.assembly,r=e.name,i=e.description,s=e.metadata,l=(e.version,Object(we.a)(e,Bt)),d=Object(ft.b)({packageTags:null!==(t=null===s||void 0===s?void 0:s.packageTags)&&void 0!==t?t:[],keywords:null!==(n=null===c||void 0===c?void 0:c.keywords)&&void 0!==n?n:[]}),u=null!==(a=s.constructFramework)&&void 0!==a?a:{};return Object(D.jsxs)(o.p,Object(h.a)(Object(h.a)({lineHeight:"1.5",maxW:"full",overflow:"hidden",spacing:2},l),{},{children:[Object(D.jsxs)(o.f,{align:"center",wrap:"wrap",children:[Object(D.jsx)(o.i,{color:"blue.800",flexShrink:1,fontSize:"1.5rem",isTruncated:!0,mr:4,children:r}),Object(D.jsx)(Pt,{})]}),Object(D.jsx)(o.q,{"data-testid":N.description,fontSize:"1rem",children:i}),Object(D.jsxs)(o.f,{align:"center",direction:"row",pt:1,sx:{gap:"0.5rem"},wrap:"wrap",children:[Object(D.jsx)(Rt.a,Object(h.a)({},u)),d.map((function(e){var t=e.id,n=e.keyword,a=(n=void 0===n?{}:n).label,c=n.color;return Object(D.jsx)(Wt.a,{value:t,variant:c,children:a},t)}))]})]}))},Ut=function(e){var t=B(),n=t.language,a=t.assembly.data,c=Object(Q.g)();if(!a)return null;var r=function(e){var t=e.language,n=e.assembly,a=n.version;if(t===y.d.TypeScript){var c=n.name;return"npm install ".concat(c,"@").concat(a)}if(t===y.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===y.d.Java){var s,l,d,u,b,j,h=null===(s=n.targets)||void 0===s||null===(l=s.java)||void 0===l||null===(d=l.maven)||void 0===d?void 0:d.groupId,p=null===(u=n.targets)||void 0===u||null===(b=u.java)||void 0===b||null===(j=b.maven)||void 0===j?void 0:j.artifactId;if(!h||!p)return;return["// add this to your pom.xml","<dependency>"," <groupId>".concat(h,"</groupId>")," <artifactId>".concat(p,"</artifactId>")," <version>".concat(a,"</version>"),"</dependency>"].join("\n")}if(t===y.d.DotNet){var O,f,m=null===(O=n.targets)||void 0===O||null===(f=O.dotnet)||void 0===f?void 0:f.packageId;if(!m)return;return"dotnet add package ".concat(m," --version ").concat(a)}}({language:n,assembly:a});return r&&n?Object(D.jsx)(o.f,Object(h.a)(Object(h.a)({align:"start",direction:"column",fontSize:".75rem",w:"full"},e),{},{children:n===y.d.Java?Object(D.jsxs)(D.Fragment,{children:[Object(D.jsx)(vt,{closeText:"Hide",fontSize:"inherit",isOpen:c.isOpen,mt:2,onClick:c.onToggle,openText:"Install"}),Object(D.jsx)(o.b,{maxW:"full",overflow:"hidden",children:Object(D.jsx)(it.a,{in:c.isOpen,children:Object(D.jsx)(Re,{boxShadow:"none",code:r,fontSize:"inherit",language:n,mt:2})})})]}):Object(D.jsx)(Re,{boxShadow:"none",code:r,fontSize:"inherit",language:n,lineHeight:"2",w:"full"})})):null},Nt=function(){var e=B(),t=e.assembly,n=e.metadata,a=e.version,c=t.data,r=n.data;return c&&r?Object(D.jsxs)(At,{children:[Object(D.jsx)(Mt,{assembly:c,description:c.description,gridArea:kt,metadata:r,name:c.name,version:a}),Object(D.jsx)(o.f,{align:"start",gridArea:St,children:Object(D.jsx)(rt,{})}),Object(D.jsxs)(o.f,{direction:"column",gridArea:Lt,children:[Object(D.jsx)(o.e,{borderBottom:"base",display:{md:"none"},mb:2}),Object(D.jsx)(wt,{}),Object(D.jsx)(o.e,{borderBottom:"base",display:{md:"none"},mt:2})]}),Object(D.jsx)(o.f,{align:"start",gridArea:Ct,children:Object(D.jsx)(Ut,{})})]}):Object(D.jsx)(tt.a,{mx:"auto",my:10,size:"xl"})},Ht=function(){var e=B(),t=e.pageDescription,n=e.pageTitle,a=Object(s.useState)(0),c=Object(r.a)(a,2),d=c[0],u=c[1];return Object(s.useEffect)((function(){u(0)}),[n]),Object(D.jsx)(l.a,{meta:{title:n,description:t},pageName:"packageProfile",children:Object(D.jsxs)(o.g,{bg:"white","data-testid":N.page,maxW:"100vw",templateColumns:"1fr",templateRows:"auto 1fr auto",children:[Object(D.jsx)(Nt,{}),Object(D.jsxs)(i.e,{index:d,onChange:u,pt:4,variant:"line",children:[Object(D.jsxs)(i.b,{borderBottom:"base",mx:{base:0,lg:6},children:[Object(D.jsx)(i.a,{children:"Documentation"}),Object(D.jsx)(i.a,{"data-testid":N.dependenciesTab,children:"Dependencies"})]}),Object(D.jsxs)(i.d,{maxW:"full",children:[Object(D.jsx)(i.c,{p:0,children:Object(D.jsx)(et,{})}),Object(D.jsx)(i.c,{children:Object(D.jsx)(H,{})})]})]}),Object(D.jsx)(J,{})]})})},qt=function(){return Object(D.jsx)(M,{children:Object(D.jsx)(Ht,{})})},Gt=n(87),Vt=function(){var e=Object(a.i)(),t=e.name,n=e.scope,r=Object(Gt.b)();if(r.isLoading||!r.data)return Object(D.jsx)(o.c,{minH:"16rem",children:Object(D.jsx)(tt.a,{size:"xl"})});var i=function(e,t,n){var a=Object(d.c)(t,n),c=Object(d.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 i?Object(D.jsx)(a.a,{to:i}):Object(D.jsx)(c.default,{})},Zt="[^@\\/]+",Xt="@[^\\/]+",_t=function(){var e=Object(a.j)().path;return Object(D.jsxs)(a.d,{children:[Object(D.jsx)(a.b,{exact:!0,path:"".concat(e,"/:scope(").concat(Xt,")?/:name(").concat(Zt,")"),children:Object(D.jsx)(Vt,{})}),Object(D.jsx)(a.b,{path:"".concat(e,"/:scope(").concat(Xt,")?/:name(").concat(Zt,")/v/:version"),children:Object(D.jsx)(qt,{})}),Object(D.jsx)(a.b,{path:"*",children:Object(D.jsx)(c.NotFound,{})})]})}}}]);
2
+ //# sourceMappingURL=7.80720b8b.chunk.js.map