diff --git a/.prettierignore b/.prettierignore index 571c41c52774c..d88e59495fefe 100644 --- a/.prettierignore +++ b/.prettierignore @@ -18,7 +18,9 @@ cypress data docfx infrastructure -theme +theme/stencil/dist +theme/stencil/www +theme/stencil/src/components.d.ts tools layouts scripts diff --git a/assets/css/bundle.css b/assets/css/bundle.css index af1edd392e2da..c7b631b842b6e 100644 --- a/assets/css/bundle.css +++ b/assets/css/bundle.css @@ -18338,7 +18338,8 @@ div.packages section.featured-packages div.featured-packages-content div.feature div.pulumi-deployments{ box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow); - --tw-shadow: 0 10px 15px -3pxrgba(0,0,0,.1),0 4px 6px -2pxrgba(0,0,0,.05) padding: 2.5rem; + --tw-shadow: 0 10px 15px -3pxrgba (0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); + padding:2.5rem; background-color:#fff; border:1px solid #e5e5df; border-radius:.5rem; @@ -22360,6 +22361,25 @@ pulumi-convert #editors .editor .diagnostics .details{ line-height: 1rem; } +#docs-main-nav pulumi-docs-nav a:hover{ + text-decoration: none +} + +#docs-main-nav pulumi-docs-nav li{ + border-radius: 0.25rem; + padding: 0.125rem +} + +#docs-main-nav pulumi-docs-nav li:hover{ + --tw-bg-opacity: 1; + background-color: rgba(237, 239, 251, var(--tw-bg-opacity)) +} + +#docs-main-nav pulumi-docs-nav li>ol{ + --tw-bg-opacity: 1; + background-color: rgba(255, 255, 255, var(--tw-bg-opacity)) +} + pulumi-filter-select pulumi-filter-select-option-group{ font-family: Gilroy, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; font-size: 1rem; diff --git a/assets/js/bundle.js b/assets/js/bundle.js index d9d59b1245543..4c43189b77177 100644 --- a/assets/js/bundle.js +++ b/assets/js/bundle.js @@ -1,35 +1,35 @@ -(()=>{var e={290:function(e){e.exports=function(){"use strict";function e(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function t(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function n(n){for(var r=1;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function o(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)){var n=[],r=!0,o=!1,i=void 0;try{for(var s,a=e[Symbol.iterator]();!(r=(s=a.next()).done)&&(n.push(s.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==a.return||a.return()}finally{if(o)throw i}}return n}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function i(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t2&&void 0!==arguments[2]?arguments[2]:{miss:function(){return Promise.resolve()}};return Promise.resolve().then((function(){var n=JSON.stringify(e),r=i()[n];return Promise.all([r||t(),void 0!==r])})).then((function(e){var t=o(e,2),r=t[0],i=t[1];return Promise.all([r,i||n.miss(r)])})).then((function(e){return o(e,1)[0]}))},set:function(e,t){return Promise.resolve().then((function(){var o=i();return o[JSON.stringify(e)]=t,r().setItem(n,JSON.stringify(o)),t}))},delete:function(e){return Promise.resolve().then((function(){var t=i();delete t[JSON.stringify(e)],r().setItem(n,JSON.stringify(t))}))},clear:function(){return Promise.resolve().then((function(){r().removeItem(n)}))}}}function a(e){var t=i(e.caches),n=t.shift();return void 0===n?{get:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{miss:function(){return Promise.resolve()}};return t().then((function(e){return Promise.all([e,n.miss(e)])})).then((function(e){return o(e,1)[0]}))},set:function(e,t){return Promise.resolve(t)},delete:function(e){return Promise.resolve()},clear:function(){return Promise.resolve()}}:{get:function(e,r){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{miss:function(){return Promise.resolve()}};return n.get(e,r,o).catch((function(){return a({caches:t}).get(e,r,o)}))},set:function(e,r){return n.set(e,r).catch((function(){return a({caches:t}).set(e,r)}))},delete:function(e){return n.delete(e).catch((function(){return a({caches:t}).delete(e)}))},clear:function(){return n.clear().catch((function(){return a({caches:t}).clear()}))}}}function l(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{serializable:!0},t={};return{get:function(n,r){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{miss:function(){return Promise.resolve()}},i=JSON.stringify(n);if(i in t)return Promise.resolve(e.serializable?JSON.parse(t[i]):t[i]);var s=r(),a=o&&o.miss||function(){return Promise.resolve()};return s.then((function(e){return a(e)})).then((function(){return s}))},set:function(n,r){return t[JSON.stringify(n)]=e.serializable?JSON.stringify(r):r,Promise.resolve(r)},delete:function(e){return delete t[JSON.stringify(e)],Promise.resolve()},clear:function(){return t={},Promise.resolve()}}}function u(e){for(var t=e.length-1;t>0;t--){var n=Math.floor(Math.random()*(t+1)),r=e[t];e[t]=e[n],e[n]=r}return e}function c(e,t){return t?(Object.keys(t).forEach((function(n){e[n]=t[n](e)})),e):e}function d(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r0?r:void 0,timeout:n.timeout||t,headers:n.headers||{},queryParameters:n.queryParameters||{},cacheable:n.cacheable}}var h={Read:1,Write:2,Any:3},m=1,v=2,g=3;function y(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:m;return n(n({},e),{},{status:t,lastUpdate:Date.now()})}function b(e){return"string"==typeof e?{protocol:"https",url:e,accept:h.Any}:{protocol:e.protocol||"https",url:e.url,accept:e.accept||h.Any}}var w="GET",S="POST";function _(e,t){return Promise.all(t.map((function(t){return e.get(t,(function(){return Promise.resolve(y(t))}))}))).then((function(e){var n=e.filter((function(e){return function(e){return e.status===m||Date.now()-e.lastUpdate>12e4}(e)})),r=e.filter((function(e){return function(e){return e.status===g&&Date.now()-e.lastUpdate<=12e4}(e)})),o=[].concat(i(n),i(r));return{getTimeout:function(e,t){return(0===r.length&&0===e?1:r.length+3+e)*t},statelessHosts:o.length>0?o.map((function(e){return b(e)})):t}}))}function O(e,t,r,o){var s=[],a=function(e,t){if(e.method!==w&&(void 0!==e.data||void 0!==t.data)){var r=Array.isArray(e.data)?e.data:n(n({},e.data),t.data);return JSON.stringify(r)}}(r,o),l=function(e,t){var r=n(n({},e.headers),t.headers),o={};return Object.keys(r).forEach((function(e){var t=r[e];o[e.toLowerCase()]=t})),o}(e,o),u=r.method,c=r.method!==w?{}:n(n({},r.data),o.data),d=n(n(n({"x-algolia-agent":e.userAgent.value},e.queryParameters),c),o.queryParameters),p=0,f=function t(n,i){var c=n.pop();if(void 0===c)throw{name:"RetryError",message:"Unreachable hosts - your application id may be incorrect. If the error persists, contact support@algolia.com.",transporterStackTrace:E(s)};var f={data:a,headers:l,method:u,url:$(c,r.path,d),connectTimeout:i(p,e.timeouts.connect),responseTimeout:i(p,o.timeout)},h=function(e){var t={request:f,response:e,host:c,triesLeft:n.length};return s.push(t),t},m={onSuccess:function(e){return function(e){try{return JSON.parse(e.content)}catch(t){throw function(e,t){return{name:"DeserializationError",message:e,response:t}}(t.message,e)}}(e)},onRetry:function(r){var o=h(r);return r.isTimedOut&&p++,Promise.all([e.logger.info("Retryable failure",k(o)),e.hostsCache.set(c,y(c,r.isTimedOut?g:v))]).then((function(){return t(n,i)}))},onFail:function(e){throw h(e),function(e,t){var n=e.content,r=e.status,o=n;try{o=JSON.parse(n).message}catch(e){}return function(e,t,n){return{name:"ApiError",message:e,status:t,transporterStackTrace:n}}(o,r,t)}(e,E(s))}};return e.requester.send(f).then((function(e){return function(e,t){return function(e){var t=e.status;return e.isTimedOut||function(e){var t=e.isTimedOut,n=e.status;return!t&&0==~~n}(e)||2!=~~(t/100)&&4!=~~(t/100)}(e)?t.onRetry(e):2==~~(e.status/100)?t.onSuccess(e):t.onFail(e)}(e,m)}))};return _(e.hostsCache,t).then((function(e){return f(i(e.statelessHosts).reverse(),e.getTimeout)}))}function x(e){var t={value:"Algolia for JavaScript (".concat(e,")"),add:function(e){var n="; ".concat(e.segment).concat(void 0!==e.version?" (".concat(e.version,")"):"");return-1===t.value.indexOf(n)&&(t.value="".concat(t.value).concat(n)),t}};return t}function $(e,t,n){var r=C(n),o="".concat(e.protocol,"://").concat(e.url,"/").concat("/"===t.charAt(0)?t.substr(1):t);return r.length&&(o+="?".concat(r)),o}function C(e){return Object.keys(e).map((function(t){return d("%s=%s",t,(n=e[t],"[object Object]"===Object.prototype.toString.call(n)||"[object Array]"===Object.prototype.toString.call(n)?JSON.stringify(e[t]):e[t]));var n})).join("&")}function E(e){return e.map((function(e){return k(e)}))}function k(e){var t=e.request.headers["x-algolia-api-key"]?{"x-algolia-api-key":"*****"}:{};return n(n({},e),{},{request:n(n({},e.request),{},{headers:n(n({},e.request.headers),t)})})}var T=function(e){var t=e.appId,r=function(e,t,n){var r={"x-algolia-api-key":n,"x-algolia-application-id":t};return{headers:function(){return e===p.WithinHeaders?r:{}},queryParameters:function(){return e===p.WithinQueryParameters?r:{}}}}(void 0!==e.authMode?e.authMode:p.WithinHeaders,t,e.apiKey),i=function(e){var t=e.hostsCache,n=e.logger,r=e.requester,i=e.requestsCache,s=e.responsesCache,a=e.timeouts,l=e.userAgent,u=e.hosts,c=e.queryParameters,d={hostsCache:t,logger:n,requester:r,requestsCache:i,responsesCache:s,timeouts:a,userAgent:l,headers:e.headers,queryParameters:c,hosts:u.map((function(e){return b(e)})),read:function(e,t){var n=f(t,d.timeouts.read),r=function(){return O(d,d.hosts.filter((function(e){return 0!=(e.accept&h.Read)})),e,n)};if(!0!==(void 0!==n.cacheable?n.cacheable:e.cacheable))return r();var i={request:e,mappedRequestOptions:n,transporter:{queryParameters:d.queryParameters,headers:d.headers}};return d.responsesCache.get(i,(function(){return d.requestsCache.get(i,(function(){return d.requestsCache.set(i,r()).then((function(e){return Promise.all([d.requestsCache.delete(i),e])}),(function(e){return Promise.all([d.requestsCache.delete(i),Promise.reject(e)])})).then((function(e){var t=o(e,2);return t[0],t[1]}))}))}),{miss:function(e){return d.responsesCache.set(i,e)}})},write:function(e,t){return O(d,d.hosts.filter((function(e){return 0!=(e.accept&h.Write)})),e,f(t,d.timeouts.write))}};return d}(n(n({hosts:[{url:"".concat(t,"-dsn.algolia.net"),accept:h.Read},{url:"".concat(t,".algolia.net"),accept:h.Write}].concat(u([{url:"".concat(t,"-1.algolianet.com")},{url:"".concat(t,"-2.algolianet.com")},{url:"".concat(t,"-3.algolianet.com")}]))},e),{},{headers:n(n(n({},r.headers()),{"content-type":"application/x-www-form-urlencoded"}),e.headers),queryParameters:n(n({},r.queryParameters()),e.queryParameters)}));return c({transporter:i,appId:t,addAlgoliaAgent:function(e,t){i.userAgent.add({segment:e,version:t})},clearCache:function(){return Promise.all([i.requestsCache.clear(),i.responsesCache.clear()]).then((function(){}))}},e.methods)},P=function(e){return function(t,n){return t.method===w?e.transporter.read(t,n):e.transporter.write(t,n)}},j=function(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return c({transporter:e.transporter,appId:e.appId,indexName:t},n.methods)}},I=function(e){return function(t,r){var o=t.map((function(e){return n(n({},e),{},{params:C(e.params||{})})}));return e.transporter.read({method:S,path:"1/indexes/*/queries",data:{requests:o},cacheable:!0},r)}},L=function(e){return function(t,o){return Promise.all(t.map((function(t){var i=t.params,s=i.facetName,a=i.facetQuery,l=r(i,["facetName","facetQuery"]);return j(e)(t.indexName,{methods:{searchForFacetValues:M}}).searchForFacetValues(s,a,n(n({},o),l))})))}},A=function(e){return function(t,n,r){return e.transporter.read({method:S,path:d("1/answers/%s/prediction",e.indexName),data:{query:t,queryLanguages:n},cacheable:!0},r)}},D=function(e){return function(t,n){return e.transporter.read({method:S,path:d("1/indexes/%s/query",e.indexName),data:{query:t},cacheable:!0},n)}},M=function(e){return function(t,n,r){return e.transporter.read({method:S,path:d("1/indexes/%s/facets/%s/query",e.indexName,t),data:{facetQuery:n},cacheable:!0},r)}},N=1,R=2,F=3;function B(e,t,r){var o,i={appId:e,apiKey:t,timeouts:{connect:1,read:2,write:30},requester:{send:function(e){return new Promise((function(t){var n=new XMLHttpRequest;n.open(e.method,e.url,!0),Object.keys(e.headers).forEach((function(t){return n.setRequestHeader(t,e.headers[t])}));var r,o=function(e,r){return setTimeout((function(){n.abort(),t({status:0,content:r,isTimedOut:!0})}),1e3*e)},i=o(e.connectTimeout,"Connection timeout");n.onreadystatechange=function(){n.readyState>n.OPENED&&void 0===r&&(clearTimeout(i),r=o(e.responseTimeout,"Socket timeout"))},n.onerror=function(){0===n.status&&(clearTimeout(i),clearTimeout(r),t({content:n.responseText||"Network request failed",status:n.status,isTimedOut:!1}))},n.onload=function(){clearTimeout(i),clearTimeout(r),t({content:n.responseText,status:n.status,isTimedOut:!1})},n.send(e.data)}))}},logger:(o=F,{debug:function(e,t){return N>=o&&console.debug(e,t),Promise.resolve()},info:function(e,t){return R>=o&&console.info(e,t),Promise.resolve()},error:function(e,t){return console.error(e,t),Promise.resolve()}}),responsesCache:l(),requestsCache:l({serializable:!1}),hostsCache:a({caches:[s({key:"".concat("4.17.0","-").concat(e)}),l()]}),userAgent:x("4.17.0").add({segment:"Browser",version:"lite"}),authMode:p.WithinQueryParameters};return T(n(n(n({},i),r),{},{methods:{search:I,searchForFacetValues:L,multipleQueries:I,multipleSearchForFacetValues:L,customRequest:P,initIndex:function(e){return function(t){return j(e)(t,{methods:{search:D,searchForFacetValues:M,findAnswers:A}})}}}}))}return B.version="4.17.0",B}()},28:()=>{!function(e){var t=1,n=window.setInterval((function(){r(t),++t>2&&(t=0)}),11e3);function r(t){return e(".carousel-always-visible").length?(o(),i(),void s()):e(".carousel-always-visible-cli-only").length?(a(0),void l(0)):(e(".carousel-item").css("opacity",0).css("pointer-events","none").eq(t).css("opacity",1).css("pointer-events","auto"),e(".carousel-item-description").css("opacity",0).css("pointer-events","none").eq(t).css("opacity",1).css("pointer-events","auto"),e(".carousel-item-label").removeClass("border-purple-700").removeClass("text-purple-700").removeClass("hover:text-purple-700").addClass("text-purple-200").addClass("hover:text-purple-300").eq(t).addClass("border-purple-700").addClass("text-purple-700").addClass("hover:text-purple-700"),void(0===t?o():1===t?i():2===t&&s()))}function o(){e(".menu").css("opacity",0),e(".menu").find(".row").removeClass("bg-gray-600").eq(0).addClass("bg-gray-600"),a(0,(function(){e(".menu").each((function(t,n){var r=parseInt(e(n).attr("data-delay"))||0;0===t&&setTimeout((function(){e(n).find(".row").removeClass("bg-gray-600").eq(1).addClass("bg-gray-600")}),600),setTimeout((function(){e(n).css("opacity",1)}),r)}))}))}function i(){a(1),l(1)}function s(){var t=e("#carousel-console .tab");t.css("opacity",0).eq(0).css("opacity",1),setTimeout((function(){t.eq(0).css("opacity",0),t.eq(1).css("opacity",1)}),5e3)}function a(t,n){var r=e(".carousel-item").eq(t).find(".line.typed span"),o=500;r.each((function(t,n){var r=n.textContent.split("");e(n).addClass("typing").html(r.map((e=>""+e+"")).join("").toString())}));var i=e(""),s=e(".carousel-item").eq(t).find(".char");s.map((function(t,r){o+=Math.ceil(75*Math.random()),setTimeout((function(){"\n"===r.textContent?e(r).css("opacity",1).prepend(i):e(r).css("opacity",1).append(i),t===s.length-1&&setTimeout((function(){i.remove(),"function"==typeof n&&n()}),600)}),o),"\n"!==r.textContent&&";"!==r.textContent||(o+=1e3)}))}function l(t){var n=e(".carousel-item").eq(t).find(".line.full");n.css("opacity",0);var r=2e3;n.each((function(t,n){var o=parseInt(e(n).attr("data-delay"))||75;r+=Math.ceil(Math.random()*o),setTimeout((function(){e(n).css("opacity",1)}),r)}))}r(0),e(".carousel-item-label").click((function(){clearInterval(n),r(e(".carousel-item-label").index(this))}))}(jQuery)},506:()=>{!function(e){var t=1,n=window.setInterval((function(){r(t),++t>3&&(t=0)}),5e3);function r(t){e(".code-tabbed-content").scrollTop(0).scrollLeft(0),e(".code-tabbed-tab").removeClass("active").eq(t).addClass("active"),e(".code-tabbed-content-item").removeClass("active").eq(t).addClass("active")}r(0),e(".code-tabbed-tab").click((function(){clearInterval(n),r(e(".code-tabbed-tab").index(this))}))}(jQuery)},756:()=>{$((function(){$("#upcoming-talks-select").on("click",(function(){$("#upcoming-talks").removeClass("hidden"),$("#past-talks").addClass("hidden"),$("#upcoming-talks-select").addClass("is-selected"),$("#past-talks-select").removeClass("is-selected")})),$("#past-talks-select").on("click",(function(){$("#upcoming-talks").addClass("hidden"),$("#past-talks").removeClass("hidden"),$("#upcoming-talks-select").removeClass("is-selected"),$("#past-talks-select").addClass("is-selected")}))}))},161:()=>{$((function(){var e=window.analytics&&window.analytics.track&&"function"==typeof window.analytics.track;function t(t,n,r){var o={answer:t,comments:n||"",email:r||"",url:window.location.pathname,category:"Documentation Feedback",label:t};e?window.analytics.track("docs-feedback",o):console.log("Skipped call to analytics.track:","docs-feedback",o)}$("#docsFeedbackContainer").removeClass("hidden"),["#docsFeedbackYes","#docsFeedbackNo"].forEach((function(e){var n="#docsFeedbackYes"===e?"Yes":"No";$(e).on("click",(function(){$("#feedbackLongForm").removeClass("hidden"),function(e){var n=$("#feedbackLongForm"),r=n.parent();$("body").append(n),$("#docsSubmitFeedback").on("click",(function(){var n=$("#feedbackAdditionalComments").val().toString().trim(),r=$("#feedbackEmail").val().toString().trim();t(e,n,r),$("#feedbackAdditionalComments").val(""),$("#feedbackEmail").val(""),$("#feedbackButtons").addClass("hidden"),$("#feedbackLongForm").addClass("hidden"),$("#feedbackThankYou").removeClass("hidden")})),$("#docsCloseFeedbackLongForm").on("click",(function(){t(e,"",""),$("#feedbackAdditionalComments").val(""),$("#feedbackEmail").val(""),$("#feedbackButtons").addClass("hidden"),$("#feedbackLongForm").addClass("hidden"),$("#feedbackThankYou").removeClass("hidden"),r.append(n)})),$(window).on("beforeunload",(function(){$("#feedbackLongForm").hasClass("hidden")||t(e,"","")}))}(n)}))}))}))},40:()=>{let e=$(".docs-main-nav-toggle-wrapper"),t=$(".docs-nav-toggle-icon");function n(){$(this).width()<=1280&&(e.hasClass("docs-nav-show")?(t.removeClass("open-docs-main-nav"),t.addClass("close-docs-main-nav")):e.hasClass("docs-nav-hide")&&(t.removeClass("close-docs-main-nav"),t.addClass("open-docs-main-nav")));let n=$(".main-nav"),r=$(".docs-nav-toggle"),o=$(".docs-type-nav-search");$(".section-docs .docs-list-main").length>0&&($(".section-docs .docs-list-main").get(0).getBoundingClientRect().y<=0?(n.css("margin-top",o.height()-Math.max($(".top-nav-container").get(0).getBoundingClientRect().y,0)),r.css("top",94+o.height()-Math.max($(".top-nav-container").get(0).getBoundingClientRect().y,0))):n.css("margin-top",0)),$(this).width()>1280?(e.removeClass("docs-nav-show"),e.removeClass("docs-nav-hide")):e.hasClass("docs-nav-hide")||e.hasClass("docs-nav-show")||e.addClass("docs-nav-hide")}function r(){let t=$(".docs-toc-desktop");window.innerWidth>1024&&window.innerWidth<=1280?e.hasClass("docs-nav-show")?t.hide():t.show():window.innerWidth>1280?t.show():t.hide()}function o(){$(".docs-main-nav").css("height",$(".docs-footer").height()+window.innerHeight)}$(window).on("resize",(function(){n(),r(),o()})).trigger("resize"),$(window).on("scroll",(function(){n()})).trigger("resize"),$(window).on("load",(function(){n(),r(),o()})),function(n,o){o(".docs-nav-toggle").on("click",(function(){e.toggleClass("docs-nav-show"),e.toggleClass("docs-nav-hide"),t.toggleClass("close-docs-main-nav"),t.toggleClass("open-docs-main-nav"),r()}));let i=o("#accordion-checkbox-package-card"),s=o("#accordion-package-card");i.on("change",(function(){i.is(":checked")?s.css("background","#fff"):s.css("background","#f9f9f9")}));let a=o("#collapse-content-button"),l=o("#expand-content-button");function u(){o(".docs-main-content").addClass("docs-content-width-expanded"),window.location.pathname.startsWith("/registry")&&o(".docs-main-content").addClass("expand-registry"),a.removeClass("hide"),l.addClass("hide"),window.localStorage.setItem("content-width-state","expanded")}function c(){o(".docs-main-content").removeClass("docs-content-width-expanded"),a.addClass("hide"),l.removeClass("hide"),window.localStorage.setItem("content-width-state","collapsed")}l.on("click",u),a.on("click",c),"expanded"===window.localStorage.getItem("content-width-state")?u():c()}(document,jQuery)},21:()=>{$((function(){function e(e,t){var n=e.map((function(e){return".highlight .chroma .language-"+e})).join(", ");$(n).each((function(){var e=$(this);e.html(e.html().replace(t,'$1'))}))}e(["bash","sh","shell","zsh"],/([ |\t]*\$ )/gim),e(["bat","batch","batchfile","powershell","posh","pwsh"],/([ |\t]*><\/span> )/gim)}))},490:()=>{const e=(e,t)=>{const n="amazon",r="google cloud",o="google",i=$(".all-packages").find(".package"),s=void 0===e.find((e=>"type"===e.group)),a=void 0===e.find((e=>"category"===e.group));e.length>0||t?($(i).addClass("hidden"),$(i).each(((i,l)=>{const u=$(l).find("[data-category]"),c=u.attr("data-type"),d=u.attr("data-category"),p="native-provider"===c,f=!!e.find((e=>"type"===e.group&&e.value===c))||e.find((e=>"type"===e.group&&"provider"===e.value))&&p,h=!!e.find((e=>"category"===e.group&&e.value===d)),m=u.attr("data-title").toLowerCase(),v=null==t?void 0:t.trim().toLowerCase();let g;g=v===n||"aws"===v?m.includes(n)||m.includes("aws"):"gcp"===v||v===r||v===o?m.includes("gcp")||m.includes(r)||m.includes(o):m.includes(v),!f&&!s||!h&&!a||t&&!g||$(l).removeClass("hidden")}))):$(i).removeClass("hidden")};$(".section-registry").on("filterSelect",(t=>{const n=t.target,r=t.detail,o=$("pulumi-registry-list-search").get(0),i=$(o).find(".registry-filter-input").val();e(r,i);const s=$("ul.active-tags");s.empty(),r.forEach((e=>{const t=$($("#active-tag-template").html());t.appendTo(s),t.attr("data-filter-group",e.group).attr("data-filter-value",e.value),t.find("span").text(e.label),t.find("button").on("click",(()=>n.deselect(e)))})),$(".packages, .active-tags").attr("data-selected-types",r.filter((e=>"type"===e.group)).map((e=>e.value)).join(",")).attr("data-selected-categories",r.filter((e=>"category"===e.group)).map((e=>e.value)).join(","));const a=$(".all-packages .package:not(.hidden)").length;$(".all-count").text(a),$("pulumi-filter-select-option-group").each(((e,t)=>t.close()))})),$(".section-registry .no-results .reset").on("click",(t=>{t.stopPropagation();$("pulumi-registry-list-search").get(0).reset();$("pulumi-filter-select").get(0).reset(),e([],"");const n=$(".all-packages .package:not(.hidden)").length;$(".all-count").text(n)})),$(".section-registry").on("packageSearch",(t=>{const n=t.detail,r=[],o=$("ul.active-tags").find("li");o.length>0&&o.each(((e,t)=>{const n=$(t),o=n.attr("data-filter-group"),i=n.attr("data-filter-value"),s=n.attr("data-filter-label");r.push({group:o,value:i,label:s})})),e(r,n);const i=$(".all-packages .package:not(.hidden)").length;$(".all-count").text(i)})),document.addEventListener("DOMContentLoaded",(function(){const e=$(".logo-nav-button"),t=$(".logo-nav-bg-mask"),n=$("#logo-nav-menu");function r(){n.toggleClass("hidden");const r=n.is(":visible");e.attr("aria-expanded",`${r}`),$(".logo-nav-button .mobile-menu-toggle-icon").toggleClass("hidden"),t.toggleClass("hidden")}e.on("click",r),t.on("click",r),$(document).on("click",(function(t){0===$(t.target).closest(e).length&&0===$(t.target).closest(n).length&&n.is(":visible")&&r()})),$(document).on("scroll",(function(){window.scrollY>53&&n.is(":visible")&&r()}))}))},245:()=>{$(document).on("rendered",(function(){$("#billing-period").each((function(e,t){t.addEventListener("change",(function(e){e&&e.target&&e.target.checked?($(".billing-price-monthly").each((function(e,t){$(t).hide()})),$(".billing-price-annually").each((function(e,t){$(t).show()}))):($(".billing-price-monthly").each((function(e,t){$(t).show()})),$(".billing-price-annually").each((function(e,t){$(t).hide()})))}))}))}))},366:()=>{$((function(){$("#pricingStartTrial").on("click",(function(){$("#pricingTrialOptionsDialog").removeClass("hidden")})),$("#pricingStartTrialBottomCTA").on("click",(function(){$("#pricingTrialOptionsDialog").removeClass("hidden")})),$("#businessCriticalStartTrialButton").on("click",(function(){$("#pricingTrialOptionsDialog").removeClass("hidden")})),$("#enterpriseStartTrialButton").on("click",(function(){$("#pricingTrialOptionsDialog").removeClass("hidden")})),$("#teamStartTrialButton").on("click",(function(){$("#pricingTrialOptionsDialog").removeClass("hidden")})),$("#closePricingTrialOptionsDialog").on("click",(function(){$("#pricingTrialOptionsDialog").addClass("hidden")})),$("#startServiceTrial").on("click",(function(){$("#pricingTrialOptionsDialog").addClass("hidden")})),$("#startSelfHostedTrial").on("click",(function(){$("#pricingTrialOptionsDialog").addClass("hidden")}))}))},140:()=>{const e=document.location.pathname;if("/docs/intro/concepts/programming-model/"===e||"/docs/reference/programming-model/"===e){var t={"#additionalsecretoutputs":"/docs/concepts/resources/#additionalsecretoutputs","#aliases":"/docs/concepts/resources/#aliases","#all":"/docs/concepts/inputs-outputs/#all","#apply":"/docs/concepts/inputs-outputs/#apply","#assets-and-archives":"/docs/concepts/assets-archives/","#autonaming":"/docs/concepts/resources/#autonaming","#components":"/docs/concepts/resources/#components","#config":"/docs/concepts/config","#custom-resources":"/docs/concepts/resources/#custom-resources","#declaring-infrastructure":"/docs/concepts/#overview","#deletebeforereplace":"/docs/concepts/resources/#deletebeforereplace","#dependson":"/docs/concepts/resources/#dependson","#dynamicproviders":"/docs/concepts/resources/#dynamicproviders","#explicit-provider-configuration":"/docs/concepts/resources/#explicit-provider-configuration","#import":"/docs/concepts/resources/#import","#introduction":"/docs/intro/concepts","#lifting":"/docs/concepts/inputs-outputs/#lifting","#names":"/docs/concepts/resources/#names","#outputs":"/docs/concepts/inputs-outputs","#outputs-and-strings":"/docs/concepts/inputs-outputs/#outputs-and-strings","#program-structure":"/docs/concepts/#overview","#programs":"/docs/concepts/#overview","#providers":"/docs/concepts/resources/#providers","#reading-configuration-values":"/docs/concepts/config/#code","#resource-get":"/docs/concepts/resources/#resource-get","#resource-providers":"/docs/concepts/resources/#providers","#resourceoptions":"/docs/concepts/resources/#options","#resources":"/docs/concepts/resources","#runtime":"/docs/concepts/","#runtime-functions":"/docs/concepts/","#secrets":"/docs/concepts/secrets","#stack-outputs":"/docs/concepts/stack/#outputs","#stack-references":"/docs/concepts/stack/#stack-references","#transformations":"/docs/concepts/resources/#transformations"}[location.hash];t&&(location.href=t)}},498:()=>{const e=e=>{const t=$(".event-list").find(".event-card"),n=$(".event-list").find(".month-label");$(n).css("display","none");const r=$(".pulumi-event-list-container").find(".no-results");$(r).removeClass("hidden"),e.length>0?$(t).each(((t,n)=>{const o=$(n).attr("data-filters").split(" "),i=$(n).attr("data-month-label");if(o.includes(location.hash.slice(1))){let t=0;o.forEach((n=>{e.includes(n)&&t++})),t>0?($(r).addClass("hidden"),$(n).css("display","block"),$(`.month-label.${i}`).css("display","block")):$(n).css("display","none")}else $(n).css("display","none")})):$(t).each(((e,t)=>{const n=$(t).attr("data-filters").split(" "),o=$(t).attr("data-month-label");if(n.includes(location.hash.slice(1)))$(r).addClass("hidden"),$(t).css("display","block"),$(`.month-label.${o}`).css("display","block");else{$(t).css("display","none");$(t).attr("data-month-label")}}))};$(".pulumi-event-list-container").on("filterSelect",(t=>{const n=t.detail,r=[];n.forEach((e=>{r.push(e.value)})),e(r)})),$(window).on("hashchange",(function(){const t=$("pulumi-filter-select-option").toArray();let n=[];t.forEach((e=>{const t=e.shadowRoot;$(t).find(".selected").length>0&&n.push(e.value)})),e(n)})),$((function(){const e=document.getElementById("event-list-filter-nav");if(e){$("#slideForward").on("click",(function(){e.scrollLeft+=180})),$("#slideBackwards").on("click",(function(){e.scrollLeft-=180}));const t={root:document.getElementById("event-list-filter-nav"),threshold:1},n=new IntersectionObserver(((e,t)=>{e.forEach((e=>{e.isIntersecting?$("#slideForward").addClass("hidden"):$("#slideForward").removeClass("hidden")}))}),t),r=document.querySelector("#event-list-filter-nav li:last-of-type");n.observe(r);const o=new IntersectionObserver(((e,t)=>{e.forEach((e=>{e.isIntersecting?$("#slideBackwards").addClass("hidden"):$("#slideBackwards").removeClass("hidden")}))}),t),i=document.querySelector("#event-list-filter-nav li:first-of-type");o.observe(i)}}))},399:()=>{$((function(){const e={"/docs/get-started/":"get-started-with-pulumi-toc-header","/docs/":"intro-toc-header","/docs/using-pulumi/":"user-guides-toc-header","/docs/concepts/":"reference-toc-header","/docs/support/":"support-toc-header","/docs/using-pulumi/adopting-pulumi/converters/":"converters-toc-header"};Object.keys(e).map((t=>{const n=document.getElementById(e[t]);if(n&&(n.classList.remove("active"),document.location.pathname===t)){const e=document.getElementById("left-nav");n.classList.add("active"),e.scrollTop=n.offsetTop-100}}))}))},931:()=>{$(document).ready((function(){if(window&&window.analytics&&"function"==typeof window.analytics.track){const n=$("a"),r=(new Date).getTime();function e(e,t){const n=$(e);if(!n)return;const o=n.attr("data-track"),i=(n.attr("href")||"").replace(/https?:\/\//g,""),s=o||i.replace(/^#/,"anchor-").replace(/^\//,"").split("/").join("-"),a=("/"===window.location.pathname?"home":window.location.pathname).split("/").filter((function(e){return""!==e})).map((function(e){return e})).concat(s,t).join("-"),l={element_id:a,destinationPath:n.attr("href"),url:window.location.pathname,category:"User Interaction",label:a,value:void 0};n.on("click",(function(e){l.value=((new Date).getTime()-r)/1e3,window.analytics.track("link-click",l)}))}for(var t=0;t{"use strict";n.r(t),n.d(t,{scopeCss:()=>j});const r="-shadowcsshost",o="-shadowcssslotted",i="-shadowcsscontext",s=")(?:\\(((?:\\([^)(]*\\)|[^)(]*)+?)\\))?([^,{]*)",a=new RegExp("("+r+s,"gim"),l=new RegExp("("+i+s,"gim"),u=new RegExp("("+o+s,"gim"),c=r+"-no-combinator",d=/-shadowcsshost-no-combinator([^\s]*)/,p=[/::shadow/g,/::content/g],f=/-shadowcsshost/gim,h=/:host/gim,m=/::slotted/gim,v=/:host-context/gim,g=/\/\*\s*[\s\S]*?\*\//g,y=/\/\*\s*#\s*source(Mapping)?URL=[\s\S]+?\*\//g,b=/(\s*)([^;\{\}]+?)(\s*)((?:{%BLOCK%}?\s*;?)|(?:\s*;))/g,w=/([{}])/g,S="%BLOCK%",_=(e,t)=>{const n=O(e);let r=0;return n.escapedString.replace(b,((...e)=>{const o=e[2];let i="",s=e[4],a="";s&&s.startsWith("{"+S)&&(i=n.blocks[r++],s=s.substring(S.length+1),a="{");const l=t({selector:o,content:i});return`${e[1]}${l.selector}${e[3]}${a}${l.content}${s}`}))},O=e=>{const t=e.split(w),n=[],r=[];let o=0,i=[];for(let e=0;e0?i.push(s):(i.length>0&&(r.push(i.join("")),n.push(S),i=[]),n.push(s)),"{"===s&&o++}i.length>0&&(r.push(i.join("")),n.push(S));return{escapedString:n.join(""),blocks:r}},x=(e,t,n)=>e.replace(t,((...e)=>{if(e[2]){const t=e[2].split(","),r=[];for(let o=0;oe+t.replace(r,"")+n,C=(e,t,n)=>t.indexOf(r)>-1?$(e,t,n):e+t+n+", "+t+" "+e+n,E=(e,t)=>{const n=(e=>(e=e.replace(/\[/g,"\\[").replace(/\]/g,"\\]"),new RegExp("^("+e+")([>\\s~+[.,{:][\\s\\S]*)?$","m")))(t);return!n.test(e)},k=(e,t,n)=>{const r="."+(t=t.replace(/\[is=([^\]]*)\]/g,((e,...t)=>t[0]))),o=e=>{let o=e.trim();if(!o)return"";if(e.indexOf(c)>-1)o=((e,t,n)=>{if(f.lastIndex=0,f.test(e)){const t=`.${n}`;return e.replace(d,((e,n)=>n.replace(/([^:]*)(:*)(.*)/,((e,n,r,o)=>n+t+r+o)))).replace(f,t+" ")}return t+" "+e})(e,t,n);else{const t=e.replace(f,"");if(t.length>0){const e=t.match(/([^:]*)(:*)(.*)/);e&&(o=e[1]+r+e[2]+e[3])}}return o},i=(e=>{const t=[];let n,r=0;return n=(e=e.replace(/(\[[^\]]*\])/g,((e,n)=>{const o=`__ph-${r}__`;return t.push(n),r++,o}))).replace(/(:nth-[-\w]+)(\([^)]+\))/g,((e,n,o)=>{const i=`__ph-${r}__`;return t.push(o),r++,n+i})),{content:n,placeholders:t}})(e);let s,a="",l=0;const u=/( |>|\+|~(?!=))\s*/g;let p=!((e=i.content).indexOf(c)>-1);for(;null!==(s=u.exec(e));){const t=s[1],n=e.slice(l,s.index).trim();p=p||n.indexOf(c)>-1;a+=`${p?o(n):n} ${t} `,l=u.lastIndex}const h=e.substring(l);return p=p||h.indexOf(c)>-1,a+=p?o(h):h,m=i.placeholders,a.replace(/__ph-(\d+)__/g,((e,t)=>m[+t]));var m},T=(e,t,n,r,o)=>_(e,(e=>{let o=e.selector,i=e.content;"@"!==e.selector[0]?o=((e,t,n,r)=>e.split(",").map((e=>r&&e.indexOf("."+r)>-1?e.trim():E(e,t)?k(e,t,n).trim():e.trim())).join(", "))(e.selector,t,n,r):(e.selector.startsWith("@media")||e.selector.startsWith("@supports")||e.selector.startsWith("@page")||e.selector.startsWith("@document"))&&(i=T(e.content,t,n,r));return{selector:o.replace(/\s{2,}/g," ").trim(),content:i}})),P=(e,t,n,s,d)=>{const f=((e,t)=>{const n="."+t+" > ",r=[];return e=e.replace(u,((...e)=>{if(e[2]){const t=e[2].trim(),o=e[3],i=n+t+o;let s="";for(let t=e[4]-1;t>=0;t--){const n=e[5][t];if("}"===n||","===n)break;s=n+s}const a=s+i,l=`${s.trimRight()}${i.trim()}`;if(a.trim()!==l.trim()){const e=`${l}, ${a}`;r.push({orgSelector:a,updatedSelector:e})}return i}return c+e[3]})),{selectors:r,cssText:e}})(e=(e=>x(e,l,C))(e=(e=>x(e,a,$))(e=e.replace(v,i).replace(h,r).replace(m,o))),s);return e=(e=>p.reduce(((e,t)=>e.replace(t," ")),e))(e=f.cssText),t&&(e=T(e,t,n,s)),{cssText:(e=(e=e.replace(/-shadowcsshost-no-combinator/g,`.${n}`)).replace(/>\s*\*\s+([^{, ]+)/gm," $1 ")).trim(),slottedSelectors:f.selectors}},j=(e,t,n)=>{const r=t+"-h",o=t+"-s",i=e.match(y)||[];e=(e=>e.replace(g,""))(e);const s=[];if(n){const t=e=>{const t=`/*!@___${s.length}___*/`,n=`/*!@${e.selector}*/`;return s.push({placeholder:t,comment:n}),e.selector=t+e.selector,e};e=_(e,(e=>"@"!==e.selector[0]?t(e):e.selector.startsWith("@media")||e.selector.startsWith("@supports")||e.selector.startsWith("@page")||e.selector.startsWith("@document")?(e.content=_(e.content,t),e):e))}const a=P(e,t,r,o);return e=[a.cssText,...i].join("\n"),n&&s.forEach((({placeholder:t,comment:n})=>{e=e.replace(t,n)})),a.slottedSelectors.forEach((t=>{e=e.replace(t.orgSelector,t.updatedSelector)})),e}},263:e=>{function t(e){return Promise.resolve().then((()=>{var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}))}t.keys=()=>[],t.resolve=t,t.id=263,e.exports=t}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r].call(i.exports,i,i.exports,n),i.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{"use strict";const e=!1,t=!0,r=!1,o=!0,i=!0,s=!0,a=!0,l=!0,u=!0,c=!0,d=!0,p=!0,f=!0,h=!0,m=!0,v=!1,g=!0,y=!0,b=!0,w=!0,S=!0,_=!0,O=!0,x=!0,C=!0,E=!0,k=!0,T=!0,P=!0,j=!0,I=!0,L=!0,A=!0,D=!0,M=!0,N=!0,R=!0,F=!0,B=!0,z=!0,q=!0,H=!0,W=!0,U=!0,V=!1,G=!1,K=!1,J=!1,Y=!1,X=!1,Q=!1,Z=!1,ee=!1,te=!0,ne=!1,re=!0,oe=!1,ie=!0,se=!0,ae=!0,le=!1,ue=!0,ce=!0,de=!1,pe=!1,fe=!1,he=!0,me="app";let ve,ge,ye,be,we=0,Se=!1,_e=!1,Oe=!1,xe=!1,$e=null,Ce=0,Ee=!1;const ke="undefined"!=typeof window?window:{},Te=(le&&ke.CSS,ke.document||{head:{}}),Pe=(ke.HTMLElement,{$flags$:0,$resourcesUrl$:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,r)=>e.addEventListener(t,n,r),rel:(e,t,n,r)=>e.removeEventListener(t,n,r),ce:(e,t)=>new CustomEvent(e,t)}),je=!oe||!C||(()=>(Te.head.attachShadow+"").indexOf("[native")>-1)(),Ie=(()=>{let e=!1;try{Te.addEventListener("e",null,Object.defineProperty({},"passive",{get(){e=!0}}))}catch(e){}return e})(),Le=!!ue&&(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replace}catch(e){}return!1})(),Ae=(e,t,n,r)=>{p&&n&&(v&&(n=r?n.filter((([e])=>32&e)):n.filter((([e])=>!(32&e)))),n.map((([n,r,o])=>{const i=g?Me(e,n):e,s=De(t,o),a=Ne(n);Pe.ael(i,r,s,a),(t.$rmListeners$=t.$rmListeners$||[]).push((()=>Pe.rel(i,r,s,a)))})))},De=(e,t)=>n=>{try{Z?256&e.$flags$?e.$lazyInstance$[t](n):(e.$queuedListeners$=e.$queuedListeners$||[]).push([t,n]):e.$hostElement$[t](n)}catch(e){en(e)}},Me=(e,t)=>h&&4&t?Te:f&&8&t?ke:m&&16&t?Te.body:v&&32&t?e.parentElement:e,Ne=e=>Ie?{passive:0!=(1&e),capture:0!=(2&e)}:0!=(2&e),Re="s-id",Fe="sty-id",Be="c-id",ze="http://www.w3.org/1999/xlink",qe=(e,t="")=>{if(ee&&performance.mark){const n=`st:${e}:${t}:${we++}`;return performance.mark(n),()=>performance.measure(`[Stencil] ${e}() <${t}>`,n)}return()=>{}},He=new WeakMap,We=(e,t,n)=>{let r=an.get(e);Le&&n?(r=r||new CSSStyleSheet,r.replace(t)):r=t,an.set(e,r)},Ue=(e,t,n,r)=>{let o=Ge(t,n),i=an.get(o);if(!he)return o;if(e=11===e.nodeType?e:Te,i)if("string"==typeof i){e=e.head||e;let n,s=He.get(e);if(s||He.set(e,s=new Set),!s.has(o)){if(X&&e.host&&(n=e.querySelector(`[${Fe}="${o}"]`)))n.innerHTML=i;else{if(le&&Pe.$cssShim$){n=Pe.$cssShim$.createHostStyle(r,o,i,!!(10&t.$flags$));const e=n["s-sc"];e&&(o=e,s=null)}else n=Te.createElement("style"),n.innerHTML=i;(Y||V)&&n.setAttribute(Fe,o),e.insertBefore(n,e.querySelector("link"))}s&&s.add(o)}}else ue&&!e.adoptedStyleSheets.includes(i)&&(e.adoptedStyleSheets=[...e.adoptedStyleSheets,i]);return o},Ve=e=>{const t=e.$cmpMeta$,n=e.$hostElement$,r=t.$flags$,o=qe("attachStyles",t.$tagName$),i=Ue(C&&je&&n.shadowRoot?n.shadowRoot:n.getRootNode(),t,e.$modeName$,n);(C||x)&&k&&10&r&&(n["s-sc"]=i,n.classList.add(i+"-h"),x&&2&r&&n.classList.add(i+"-s")),o()},Ge=(e,t)=>"sc-"+(w&&t&&32&e.$flags$?e.$tagName$+"-"+t:e.$tagName$),Ke=e=>ln.map((t=>t(e))).find((e=>!!e)),Je={},Ye=e=>"object"===(e=typeof e)||"function"===e,Xe=(e,t,...n)=>{let r=null,o=null,i=null,s=!1,a=!1,l=[];const u=t=>{for(let n=0;ne[t])).join(" "))}if(K&&l.some(et)&&nn("The must be the single root component. Make sure:\n- You are NOT using hostData() and in the same component.\n- is used once, and it's the single root component of the render() function."),M&&"function"==typeof e)return e(null===t?{}:t,l,tt);const c=Qe(e,null);return c.$attrs$=t,l.length>0&&(c.$children$=l),N&&(c.$key$=o),te&&(c.$name$=i),c},Qe=(e,t)=>{const n={$flags$:0,$tag$:e,$text$:t,$elm$:null,$children$:null};return L&&(n.$attrs$=null),N&&(n.$key$=null),te&&(n.$name$=null),n},Ze={},et=e=>e&&e.$tag$===Ze,tt={forEach:(e,t)=>e.map(nt).forEach(t),map:(e,t)=>e.map(nt).map(t).map(rt)},nt=e=>({vattrs:e.$attrs$,vchildren:e.$children$,vkey:e.$key$,vname:e.$name$,vtag:e.$tag$,vtext:e.$text$}),rt=e=>{if("function"==typeof e.vtag){const t=Object.assign({},e.vattrs);return e.vkey&&(t.key=e.vkey),e.vname&&(t.name=e.vname),Xe(e.vtag,t,...e.vchildren||[])}const t=Qe(e.vtag,e.vtext);return t.$attrs$=e.vattrs,t.$children$=e.vchildren,t.$key$=e.vkey,t.$name$=e.vname,t},ot=e=>{const t=Object.keys(e),n=t.indexOf("type"),r=t.indexOf("min"),o=t.indexOf("max"),i=t.indexOf("min"),s=t.indexOf("value");-1!==s&&(s should be set after "min", "max", "type" and "step"')},it=(e,t,n,r,o,i)=>{if(n!==r){let s=Zt(e,t),a=t.toLowerCase();if(D&&"class"===t){const t=e.classList,o=at(n),i=at(r);t.remove(...o.filter((e=>e&&!i.includes(e)))),t.add(...i.filter((e=>e&&!o.includes(e))))}else if(q&&"style"===t){if(I)for(const t in n)r&&null!=r[t]||(!Y&&t.includes("-")?e.style.removeProperty(t):e.style[t]="");for(const t in r)n&&r[t]===n[t]||(!Y&&t.includes("-")?e.style.setProperty(t,r[t]):e.style[t]=r[t])}else if(N&&"key"===t);else if(F&&"ref"===t)r&&r(e);else if(!R||(Z?s:e.__lookupSetter__(t))||"o"!==t[0]||"n"!==t[1]){if(B){const l=Ye(r);if((s||l&&null!==r)&&!o)try{if(e.tagName.includes("-"))e[t]=r;else{let o=null==r?"":r;"list"===t?s=!1:null!=n&&e[t]==o||(e[t]=o)}}catch(e){}let u=!1;A&&a!==(a=a.replace(/^xlink\:?/,""))&&(t=a,u=!0),null==r||!1===r?!1===r&&""!==e.getAttribute(t)||(A&&u?e.removeAttributeNS(ze,t):e.removeAttribute(t)):(!s||4&i||o)&&!l&&(r=!0===r?"":r,A&&u?e.setAttributeNS(ze,t,r):e.setAttribute(t,r))}}else t="-"===t[2]?t.slice(3):Zt(ke,a)?a.slice(2):a[2]+t.slice(3),n&&Pe.rel(e,t,n,!1),r&&Pe.ael(e,t,r,!1)}},st=/\s/,at=e=>e?e.split(st):[],lt=(e,t,n,r)=>{const o=11===t.$elm$.nodeType&&t.$elm$.host?t.$elm$.host:t.$elm$,i=e&&e.$attrs$||Je,s=t.$attrs$||Je;if(I)for(r in i)r in s||it(o,r,i[r],void 0,n,t.$flags$);for(r in s)it(o,r,i[r],s[r],n,t.$flags$)},ut=(e,t,n,r)=>{let o,i,s,a=t.$children$[n],l=0;if(te&&!Se&&(Oe=!0,"slot"===a.$tag$&&(ve&&r.classList.add(ve+"-s"),a.$flags$|=a.$children$?2:1)),K&&a.$elm$&&nn(`The JSX ${null!==a.$text$?`"${a.$text$}" text`:`"${a.$tag$}" element`} node should not be shared within the same renderer. The renderer caches element lookups in order to improve performance. However, a side effect from this is that the exact same JSX node should not be reused. For more information please see https://stenciljs.com/docs/templating-jsx#avoid-shared-jsx-nodes`),H&&null!==a.$text$)o=a.$elm$=Te.createTextNode(a.$text$);else if(te&&1&a.$flags$)o=a.$elm$=G||Y?Ot(a):Te.createTextNode("");else{if(j&&!xe&&(xe="svg"===a.$tag$),o=a.$elm$=j?Te.createElementNS(xe?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",te&&2&a.$flags$?"slot-fb":a.$tag$):Te.createElement(te&&2&a.$flags$?"slot-fb":a.$tag$),j&&xe&&"foreignObject"===a.$tag$&&(xe=!1),L&<(null,a,xe),(C||x)&&(e=>null!=e)(ve)&&o["s-si"]!==ve&&o.classList.add(o["s-si"]=ve),a.$children$)for(l=0;l{Pe.$flags$|=1;const n=e.childNodes;for(let e=n.length-1;e>=0;e--){const r=n[e];r["s-hn"]!==ye&&r["s-ol"]&&(mt(r).insertBefore(r,ht(r)),r["s-ol"].remove(),r["s-ol"]=void 0,Oe=!0),t&&ct(r,t)}Pe.$flags$&=-2},dt=(e,t,n,r,o,i)=>{let s,a=te&&e["s-cr"]&&e["s-cr"].parentNode||e;for(C&&a.shadowRoot&&a.tagName===ye&&(a=a.shadowRoot);o<=i;++o)r[o]&&(s=ut(null,n,o,e),s&&(r[o].$elm$=s,a.insertBefore(s,te?ht(t):t)))},pt=(e,t,n,r,o)=>{for(;t<=n;++t)(r=e[t])&&(o=r.$elm$,St(r),te&&(_e=!0,o["s-ol"]?o["s-ol"].remove():ct(o,!0)),o.remove())},ft=(e,t)=>e.$tag$===t.$tag$&&(te&&"slot"===e.$tag$?e.$name$===t.$name$:!N||e.$key$===t.$key$),ht=e=>e&&e["s-ol"]||e,mt=e=>(e["s-ol"]?e["s-ol"]:e).parentNode,vt=(e,t)=>{const n=t.$elm$=e.$elm$,r=e.$children$,o=t.$children$,i=t.$tag$,s=t.$text$;let a;H&&null!==s?H&&te&&(a=n["s-cr"])?a.parentNode.textContent=s:H&&e.$text$!==s&&(n.data=s):(j&&(xe="svg"===i||"foreignObject"!==i&&xe),(L||O)&&(E&&"slot"===i||lt(e,t,xe)),I&&null!==r&&null!==o?((e,t,n,r)=>{let o,i,s=0,a=0,l=0,u=0,c=t.length-1,d=t[0],p=t[c],f=r.length-1,h=r[0],m=r[f];for(;s<=c&&a<=f;)if(null==d)d=t[++s];else if(null==p)p=t[--c];else if(null==h)h=r[++a];else if(null==m)m=r[--f];else if(ft(d,h))vt(d,h),d=t[++s],h=r[++a];else if(ft(p,m))vt(p,m),p=t[--c],m=r[--f];else if(ft(d,m))!te||"slot"!==d.$tag$&&"slot"!==m.$tag$||ct(d.$elm$.parentNode,!1),vt(d,m),e.insertBefore(d.$elm$,p.$elm$.nextSibling),d=t[++s],m=r[--f];else if(ft(p,h))!te||"slot"!==d.$tag$&&"slot"!==m.$tag$||ct(p.$elm$.parentNode,!1),vt(p,h),e.insertBefore(p.$elm$,d.$elm$),p=t[--c],h=r[++a];else{if(l=-1,N)for(u=s;u<=c;++u)if(t[u]&&null!==t[u].$key$&&t[u].$key$===h.$key$){l=u;break}N&&l>=0?(i=t[l],i.$tag$!==h.$tag$?o=ut(t&&t[a],n,l,e):(vt(i,h),t[l]=void 0,o=i.$elm$),h=r[++a]):(o=ut(t&&t[a],n,a,e),h=r[++a]),o&&(te?mt(d.$elm$).insertBefore(o,ht(d.$elm$)):d.$elm$.parentNode.insertBefore(o,d.$elm$))}s>c?dt(e,null==r[f+1]?null:r[f+1].$elm$,n,r,a,f):I&&a>f&&pt(t,s,c)})(n,r,t,o):null!==o?(I&&H&&null!==e.$text$&&(n.textContent=""),dt(n,null,t,o,0,o.length-1)):I&&null!==r&&pt(r,0,r.length-1),j&&xe&&"svg"===i&&(xe=!1))},gt=e=>{let t,n,r,o,i,s,a=e.childNodes;for(n=0,r=a.length;n{let t,n,r,o,i,s,a=0,l=e.childNodes,u=l.length;for(;a=0;s--)n=r[s],n["s-cn"]||n["s-nr"]||n["s-hn"]===t["s-hn"]||(wt(n,o)?(i=yt.find((e=>e.$nodeToRelocate$===n)),_e=!0,n["s-sn"]=n["s-sn"]||o,i?i.$slotRefNode$=t:yt.push({$slotRefNode$:t,$nodeToRelocate$:n}),n["s-sr"]&&yt.map((e=>{wt(e.$nodeToRelocate$,n["s-sn"])&&(i=yt.find((e=>e.$nodeToRelocate$===n)),i&&!e.$slotRefNode$&&(e.$slotRefNode$=i.$slotRefNode$))}))):yt.some((e=>e.$nodeToRelocate$===n))||yt.push({$nodeToRelocate$:n}));1===t.nodeType&&bt(t)}},wt=(e,t)=>1===e.nodeType?null===e.getAttribute("slot")&&""===t||e.getAttribute("slot")===t:e["s-sn"]===t||""===t,St=e=>{F&&(e.$attrs$&&e.$attrs$.ref&&e.$attrs$.ref(null),e.$children$&&e.$children$.map(St))},_t=(e,t)=>{const n=e.$hostElement$,r=e.$cmpMeta$,o=e.$vnode$||Qe(null,null),i=et(t)?t:Xe(null,null,t);if(ye=n.tagName,K&&Array.isArray(t)&&t.some(et))throw new Error(`The must be the single root component.\nLooks like the render() function of "${ye.toLowerCase()}" is returning an array that contains the .\n\nThe render() function should look like this instead:\n\nrender() {\n // Do not return an array\n return (\n {content}\n );\n}\n `);if(O&&r.$attrsToReflect$&&(i.$attrs$=i.$attrs$||{},r.$attrsToReflect$.map((([e,t])=>i.$attrs$[t]=n[e]))),i.$tag$=null,i.$flags$|=4,e.$vnode$=i,i.$elm$=o.$elm$=C&&n.shadowRoot||n,(x||C)&&(ve=n["s-sc"]),te&&(ge=n["s-cr"],Se=je&&0!=(1&r.$flags$),_e=!1),vt(o,i),te){if(Pe.$flags$|=1,Oe){let e,t,n,r,o,s;bt(i.$elm$);let a=0;for(;aTe.createComment(` (host=${ye.toLowerCase()})`),xt=e=>Te.createComment("org-location for "+(e.localName?`<${e.localName}> (host=${e["s-hn"]})`:`[${e.textContent}]`)),$t=(e,t,n)=>{const r=(e=>Z?Xt(e).$hostElement$:e)(e);return{emit:e=>(K&&!r.isConnected&&rn(`The "${t}" event was emitted, but the dispatcher node is no longer connected to the dom.`),Ct(r,t,{bubbles:!!(4&n),composed:!!(2&n),cancelable:!!(1&n),detail:e}))}},Ct=(e,t,n)=>{const r=Pe.ce(t,n);return e.dispatchEvent(r),r},Et=(e,t)=>{pe&&t&&!e.$onRenderResolve$&&t["s-p"]&&t["s-p"].push(new Promise((t=>e.$onRenderResolve$=t)))},kt=(e,t)=>{if(U&&I&&(e.$flags$|=16),pe&&4&e.$flags$)return void(e.$flags$|=512);Et(e,e.$ancestorComponent$);const n=()=>Tt(e,t);return U?gn(n):n()},Tt=(e,t)=>{const n=e.$hostElement$,r=qe("scheduleUpdate",e.$cmpMeta$.$tagName$),o=Z?e.$lazyInstance$:n;let i;return t?(Z&&p&&(e.$flags$|=256,e.$queuedListeners$&&(e.$queuedListeners$.map((([e,t])=>At(o,e,t))),e.$queuedListeners$=null)),Mt(n,"componentWillLoad"),s&&(i=At(o,"componentWillLoad"))):(Mt(n,"componentWillUpdate"),a&&(i=At(o,"componentWillUpdate"))),Mt(n,"componentWillRender"),l&&(i=Dt(i,(()=>At(o,"componentWillRender")))),r(),Dt(i,(()=>Pt(e,o,t)))},Pt=async(e,t,n)=>{const r=e.$hostElement$,o=qe("update",e.$cmpMeta$.$tagName$),i=r["s-rc"];P&&n&&Ve(e);const s=qe("render",e.$cmpMeta$.$tagName$);if(K&&(e.$flags$|=1024),Y?await jt(e,t,r):jt(e,t,r),le&&Pe.$cssShim$&&Pe.$cssShim$.updateHost(r),K&&(e.$renderCount$++,e.$flags$&=-1025),Y)try{Rt(r),n&&(1&e.$cmpMeta$.$flags$?r["s-en"]="":2&e.$cmpMeta$.$flags$&&(r["s-en"]="c"))}catch(e){en(e,r)}if(pe&&i&&(i.map((e=>e())),r["s-rc"]=void 0),s(),o(),pe){const t=r["s-p"],n=()=>It(e);0===t.length?n():(Promise.all(t).then(n),e.$flags$|=4,t.length=0)}else It(e)},jt=(t,n,r)=>{const o=!!e,i=!!Z,s=!!U,a=!!I;try{if($e=n,n=(o||n.render)&&n.render(),a&&s&&(t.$flags$&=-17),(a||i)&&(t.$flags$|=2),d||O)if(z||O){if(Y)return Promise.resolve(n).then((e=>_t(t,e)));_t(t,n)}else r.textContent=n}catch(e){en(e,t.$hostElement$)}return $e=null,null},It=e=>{const n=e.$cmpMeta$.$tagName$,r=e.$hostElement$,s=qe("postUpdate",n),a=Z?e.$lazyInstance$:r,l=e.$ancestorComponent$;i&&(K&&(e.$flags$|=1024),At(a,"componentDidRender"),K&&(e.$flags$&=-1025)),Mt(r,"componentDidRender"),64&e.$flags$?(o&&(K&&(e.$flags$|=1024),At(a,"componentDidUpdate"),K&&(e.$flags$&=-1025)),Mt(r,"componentDidUpdate"),s()):(e.$flags$|=64,pe&&k&&Nt(r),t&&(K&&(e.$flags$|=2048),At(a,"componentDidLoad"),K&&(e.$flags$&=-2049)),Mt(r,"componentDidLoad"),s(),pe&&(e.$onReadyResolve$(r),l||Lt(n))),V&&r["s-hmr-load"]&&r["s-hmr-load"](),b&&Z&&e.$onInstanceResolve$(r),pe&&(e.$onRenderResolve$&&(e.$onRenderResolve$(),e.$onRenderResolve$=void 0),512&e.$flags$&&vn((()=>kt(e,!1))),e.$flags$&=-517)},Lt=e=>{k&&Nt(Te.documentElement),fe&&(Pe.$flags$|=2),vn((()=>Ct(ke,"appload",{detail:{namespace:me}}))),ee&&performance.measure&&performance.measure(`[Stencil] ${me} initial load (by ${e})`,"st:app:start")},At=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(e){en(e)}},Dt=(e,t)=>e&&e.then?e.then(t):t(),Mt=(e,t)=>{Q&&Ct(e,"stencil_"+t,{bubbles:!0,composed:!0,detail:{namespace:me}})},Nt=e=>re?e.classList.add("hydrated"):ne?e.setAttribute("hydrated",""):void 0,Rt=e=>{const t=e.children;if(null!=t)for(let e=0,n=t.length;e{let a,l,u,c;if(1===i.nodeType){for(a=i.getAttribute(Be),a&&(l=a.split("."),l[0]!==s&&"0"!==l[0]||(u={$flags$:0,$hostId$:l[0],$nodeId$:l[1],$depth$:l[2],$index$:l[3],$tag$:i.tagName.toLowerCase(),$elm$:i,$attrs$:null,$children$:null,$key$:null,$name$:null,$text$:null},t.push(u),i.removeAttribute(Be),e.$children$||(e.$children$=[]),e.$children$[u.$index$]=u,e=u,r&&"0"===u.$depth$&&(r[u.$index$]=u.$elm$))),c=i.childNodes.length-1;c>=0;c--)Ft(e,t,n,r,o,i.childNodes[c],s);if(i.shadowRoot)for(c=i.shadowRoot.childNodes.length-1;c>=0;c--)Ft(e,t,n,r,o,i.shadowRoot.childNodes[c],s)}else if(8===i.nodeType)l=i.nodeValue.split("."),l[1]!==s&&"0"!==l[1]||(a=l[0],u={$flags$:0,$hostId$:l[1],$nodeId$:l[2],$depth$:l[3],$index$:l[4],$elm$:i,$attrs$:null,$children$:null,$key$:null,$name$:null,$tag$:null,$text$:null},"t"===a?(u.$elm$=i.nextSibling,u.$elm$&&3===u.$elm$.nodeType&&(u.$text$=u.$elm$.textContent,t.push(u),i.remove(),e.$children$||(e.$children$=[]),e.$children$[u.$index$]=u,r&&"0"===u.$depth$&&(r[u.$index$]=u.$elm$))):u.$hostId$===s&&("s"===a?(u.$tag$="slot",l[5]?i["s-sn"]=u.$name$=l[5]:i["s-sn"]="",i["s-sr"]=!0,C&&r&&(u.$elm$=Te.createElement(u.$tag$),u.$name$&&u.$elm$.setAttribute("name",u.$name$),i.parentNode.insertBefore(u.$elm$,i),i.remove(),"0"===u.$depth$&&(r[u.$index$]=u.$elm$)),n.push(u),e.$children$||(e.$children$=[]),e.$children$[u.$index$]=u):"r"===a&&(C&&r?i.remove():te&&(o["s-cr"]=i,i["s-cn"]=!0))));else if(e&&"style"===e.$tag$){const t=Qe(null,i.textContent);t.$elm$=i,t.$index$="0",e.$children$=[t]}},Bt=(e,t)=>{if(1===e.nodeType){let n=0;for(;n{const o=Xt(e),i=Z?o.$hostElement$:e,s=o.$instanceValues$.get(t),a=o.$flags$,l=Z?o.$lazyInstance$:i;var u,c;if(u=n,c=r.$members$[t][0],n=null==u||Ye(u)?u:ie&&4&c?"false"!==u&&(""===u||!!u):se&&2&c?parseFloat(u):ae&&1&c?String(u):u,!(Z&&8&a&&void 0!==s||n===s)&&(o.$instanceValues$.set(t,n),K&&(1024&o.$flags$?rn(`The state/prop "${t}" changed during rendering. This can potentially lead to infinite-loops and other bugs.`,"\nElement",i,"\nNew value",n,"\nOld value",s):2048&o.$flags$&&rn(`The state/prop "${t}" changed during "componentDidLoad()", this triggers extra re-renders, try to setup on "componentWillLoad()"`,"\nElement",i,"\nNew value",n,"\nOld value",s)),!Z||l)){if(W&&r.$watchers$&&128&a){const e=r.$watchers$[t];e&&e.map((e=>{try{l[e](n,s,t)}catch(e){en(e,i)}}))}if(I&&2==(18&a)){if(ce&&l.componentShouldUpdate&&!1===l.componentShouldUpdate(n,s,t))return;kt(o,!1)}}},qt=(e,t,n)=>{if(y&&t.$members$){W&&e.watchers&&(t.$watchers$=e.watchers);const r=Object.entries(t.$members$),o=e.prototype;if(r.map((([e,[r]])=>{(_||T)&&(31&r||(!Z||2&n)&&32&r)?Object.defineProperty(o,e,{get(){return t=e,Xt(this).$instanceValues$.get(t);var t},set(o){if(K){const o=Xt(this);0==(1&n)&&0==(8&o.$flags$)&&0!=(31&r)&&0==(1024&r)&&rn(`@Prop() "${e}" on <${t.$tagName$}> is immutable but was modified from within the component.\nMore information: https://stenciljs.com/docs/properties#prop-mutability`)}zt(this,e,o,t)},configurable:!0,enumerable:!0}):Z&&b&&1&n&&64&r&&Object.defineProperty(o,e,{value(...t){const n=Xt(this);return n.$onInstancePromise$.then((()=>n.$lazyInstance$[e](...t)))}})})),S&&(!Z||1&n)){const n=new Map;o.attributeChangedCallback=function(e,t,r){Pe.jmp((()=>{const t=n.get(e);this.hasOwnProperty(t)&&(r=this[t],delete this[t]),this[t]=(null!==r||"boolean"!=typeof this[t])&&r}))},e.observedAttributes=r.filter((([e,t])=>15&t[0])).map((([e,r])=>{const o=r[1]||e;return n.set(o,e),O&&512&r[0]&&t.$attrsToReflect$.push([e,o]),o}))}}return e},Ht=async(e,t,r,o,i)=>{if((Z||Y||P)&&0==(32&t.$flags$)){if(Z||X){if(t.$flags$|=32,(i=sn(r,t,o)).then){const e=(s=`st:load:${r.$tagName$}:${t.$modeName$}`,a=`[Stencil] Load module for <${r.$tagName$}>`,ee&&performance.mark?(0===performance.getEntriesByName(s).length&&performance.mark(s),()=>{0===performance.getEntriesByName(a).length&&performance.measure(a,s)}):()=>{});i=await i,e()}if((K||G)&&!i)throw new Error(`Constructor for "${r.$tagName$}#${t.$modeName$}" was not found`);y&&!i.isProxied&&(W&&(r.$watchers$=i.watchers),qt(i,r,2),i.isProxied=!0);const e=qe("createInstance",r.$tagName$);y&&(t.$flags$|=8);try{new i(t)}catch(e){en(e)}y&&(t.$flags$&=-9),W&&(t.$flags$|=128),e(),Wt(t.$lazyInstance$)}else i=e.constructor,t.$flags$|=32,customElements.whenDefined(r.$tagName$).then((()=>t.$flags$|=128));if(P&&i.style){let o=i.style;w&&"string"!=typeof o&&(o=o[t.$modeName$=Ke(e)],Y&&t.$modeName$&&e.setAttribute("s-mode",t.$modeName$));const s=Ge(r,t.$modeName$);if(!an.has(s)){const e=qe("registerStyles",r.$tagName$);!Y&&C&&oe&&8&r.$flags$&&(o=await Promise.resolve().then(n.bind(n,351)).then((e=>e.scopeCss(o,s,!1)))),We(s,o,!!(1&r.$flags$)),e()}}}var s,a;const l=t.$ancestorComponent$,u=()=>kt(t,!0);pe&&l&&l["s-rc"]?l["s-rc"].push(u):u()},Wt=e=>{Z&&u&&At(e,"connectedCallback")},Ut=e=>{if(0==(1&Pe.$flags$)){const t=Xt(e),n=t.$cmpMeta$,r=qe("connectedCallback",n.$tagName$);if(v&&Ae(e,t,n.$listeners$,!0),1&t.$flags$)Ae(e,t,n.$listeners$,!1),Wt(t.$lazyInstance$);else{let r;if(t.$flags$|=1,X&&(r=e.getAttribute(Re),r)){if(C&&je&&1&n.$flags$){const t=w?Ue(e.shadowRoot,n,e.getAttribute("s-mode")):Ue(e.shadowRoot,n);e.classList.remove(t+"-h",t+"-s")}((e,t,n,r)=>{const o=qe("hydrateClient",t),i=e.shadowRoot,s=[],a=C&&i?[]:null,l=r.$vnode$=Qe(t,null);Pe.$orgLocNodes$||Bt(Te.body,Pe.$orgLocNodes$=new Map),e[Re]=n,e.removeAttribute(Re),Ft(l,s,[],a,e,e,n),s.map((e=>{const n=e.$hostId$+"."+e.$nodeId$,r=Pe.$orgLocNodes$.get(n),o=e.$elm$;r&&je&&""===r["s-en"]&&r.parentNode.insertBefore(o,r.nextSibling),i||(o["s-hn"]=t,r&&(o["s-ol"]=r,o["s-ol"]["s-nr"]=o)),Pe.$orgLocNodes$.delete(n)})),C&&i&&a.map((e=>{e&&i.appendChild(e)})),o()})(e,n.$tagName$,r,t)}if(te&&!r&&(Y||(E||C)&&12&n.$flags$)&&Vt(e),pe){let n=e;for(;n=n.parentNode||n.host;)if(X&&1===n.nodeType&&n.hasAttribute("s-id")&&n["s-p"]||n["s-p"]){Et(t,t.$ancestorComponent$=n);break}}_&&!Y&&n.$members$&&Object.entries(n.$members$).map((([t,[n]])=>{if(31&n&&e.hasOwnProperty(t)){const n=e[t];delete e[t],e[t]=n}})),de?vn((()=>Ht(e,t,n))):Ht(e,t,n)}r()}},Vt=e=>{const t=e["s-cr"]=Te.createComment(G?`content-ref (host=${e.localName})`:"");t["s-cn"]=!0,e.insertBefore(t,e.firstChild)},Gt=e=>{if(0==(1&Pe.$flags$)){const t=Xt(e),n=Z?t.$lazyInstance$:e;p&&t.$rmListeners$&&(t.$rmListeners$.map((e=>e())),t.$rmListeners$=void 0),le&&Pe.$cssShim$&&Pe.$cssShim$.removeHost(e),Z&&c&&At(n,"disconnectedCallback"),r&&At(n,"componentDidUnload")}},Kt=(e,t)=>{const n={$flags$:t[0],$tagName$:t[1]};y&&(n.$members$=t[2]),p&&(n.$listeners$=t[3]),W&&(n.$watchers$=e.$watchers$),O&&(n.$attrsToReflect$=[]),C&&!je&&1&n.$flags$&&(n.$flags$|=8);const r=e.prototype.connectedCallback,o=e.prototype.disconnectedCallback;return Object.assign(e.prototype,{__registerHost(){Qt(this,n)},connectedCallback(){Ut(this),u&&r&&r.call(this)},disconnectedCallback(){Gt(this),c&&o&&o.call(this)}}),e.is=n.$tagName$,qt(e,n,3)},Jt=e=>{je?e.attachShadow({mode:"open"}):e.shadowRoot=e},Yt=new WeakMap,Xt=e=>Yt.get(e),Qt=(e,t)=>{const n={$flags$:0,$hostElement$:e,$cmpMeta$:t,$instanceValues$:new Map};return K&&(n.$renderCount$=0),b&&Z&&(n.$onInstancePromise$=new Promise((e=>n.$onInstanceResolve$=e))),pe&&(n.$onReadyPromise$=new Promise((e=>n.$onReadyResolve$=e)),e["s-p"]=[],e["s-rc"]=[]),Ae(e,n,t.$listeners$,!1),Yt.set(e,n)},Zt=(e,t)=>t in e,en=(e,t)=>(be||console.error)(e,t),tn=J?["STENCIL:"]:["%cstencil","color: white;background:#4c47ff;font-weight: bold; font-size:10px; padding:2px 6px; border-radius: 5px"],nn=(...e)=>console.error(...tn,...e),rn=(...e)=>console.warn(...tn,...e),on=new Map,sn=(e,t,r)=>{const o=e.$tagName$.replace(/-/g,"_"),i=e.$lazyBundleId$;if(K&&"string"!=typeof i)return void nn(`Trying to lazily load component <${e.$tagName$}> with style mode "${t.$modeName$}", but it does not exist.`);const s=!V&&on.get(i);return s?s[o]:n(263)(`./${i}.entry.js${V&&r?"?s-hmr="+r:""}`).then((e=>(V||on.set(i,e),e[o])),en)},an=new Map,ln=[],un=[],cn=[],dn=[],pn=(e,t)=>n=>{e.push(n),Ee||(Ee=!0,t&&4&Pe.$flags$?vn(mn):Pe.raf(mn))},fn=e=>{for(let t=0;t{let n=0,r=0;for(;n{if(fe&&Ce++,fn(un),fe){const e=2==(6&Pe.$flags$)?performance.now()+14*Math.ceil(.1*Ce):1/0;hn(cn,e),hn(dn,e),cn.length>0&&(dn.push(...cn),cn.length=0),(Ee=un.length+cn.length+dn.length>0)?Pe.raf(mn):Ce=0}else fn(cn),(Ee=un.length>0)&&Pe.raf(mn)},vn=e=>(e=>Promise.resolve(e))().then(e),gn=pn(cn,!0),yn=class extends HTMLElement{constructor(){super(),this.__registerHost(),this.redirectUrl="/pulumi-up/thank-you/",this.isModalOpen=!1,this.displayingContent="session-select",this.selectedSessions=[],this.skippedSessionSelection=!1,this.processingFormSubmissions=!1,this.formProcessor=void 0,this.error=void 0,this.submittedFormValues={},this.onMessage=e=>{var t;if("hsFormCallback"!==(null===(t=e.data)||void 0===t?void 0:t.type)||!this.isModalOpen)return;const n=e.data.eventName;if("onFormReady"===n&&this.processingFormSubmissions&&this.handleFormSubmissions(),"onFormSubmit"===n){const e=this.el.querySelectorAll("form input"),t={};e.forEach((e=>{"checkbox"!==e.type&&(t[e.name]=e.value)})),this.submittedFormValues=t,setTimeout((()=>{this.selectedSessions=[...this.selectedSessions.slice(1)],this.processingFormSubmissions=!0,0===this.selectedSessions.length&&(window.location.href=this.redirectUrl)}),500)}},this.handleButtonClick=e=>{e.preventDefault(),this.isModalOpen=!0,document.querySelector("body").className+=" disable-scroll"},this.handleCloseModal=e=>{e.preventDefault(),this.isModalOpen=!1,this.skippedSessionSelection||(this.displayingContent="session-select",this.selectedSessions=[]),document.querySelector("body").className=document.querySelector("body").className.replace("disable-scroll","")},this.handleSessionSelection=e=>{const t=this.selectedSessions.indexOf(e);-1===t?this.selectedSessions.push(e):this.selectedSessions.splice(t,1)},this.handleGotToSessionSelect=e=>{e.preventDefault(),this.displayingContent="session-select"}}handleEventSessionInfo(e){this.parsedEventSessions=JSON.parse(e)}handleSkipSessionSelection(e){1===e.length&&(this.selectedSessions.push(e[0].hubspot_form_id),this.displayingContent="form",this.skippedSessionSelection=!0)}componentWillLoad(){this.handleEventSessionInfo(this.eventSessions),this.handleSkipSessionSelection(this.parsedEventSessions)}componentDidLoad(){window.addEventListener("message",this.onMessage)}disconnectedCallback(){window.removeEventListener("message",this.onMessage)}handleGoToForm(e,t){e.preventDefault(),0!==this.selectedSessions.length?(this.displayingContent=t,this.error=void 0):this.error="You must select at least one of the above options."}handleFormSubmissions(){if(0===this.selectedSessions.length)return void(window.location.href=this.redirectUrl);this.el.querySelectorAll("form input[type='checkbox']")[1].click(),setTimeout((()=>{const e=Object.keys(this.submittedFormValues);if(e.length>0)for(let t=0;t{this.el.querySelector("form input[type='submit']").click()}),500)}renderSessionSelectionItem(e){const t=this.selectedSessions.indexOf(e.hubspot_form_id)>-1;return Xe("li",null,Xe("label",{class:"session-selection-item"},Xe("div",{class:"checkbox-container"},Xe("input",{type:"checkbox",id:e.title,name:e.title,onChange:()=>this.handleSessionSelection(e.hubspot_form_id),checked:t}),Xe("span",{class:"checkmark"})),Xe("div",{class:"checkbox-label"},Xe("h6",null,e.title),Xe("p",null,e.description))))}renderSessionSelectContent(){return[Xe("div",{class:"session-select-container"},Xe("p",null,"Please select all the options you'd like to register for:"),Xe("ul",{class:"session-select-list"},this.parsedEventSessions.map((e=>this.renderSessionSelectionItem(e))))),Xe("div",{class:"next-button-container"},Xe("a",{href:"#",class:`${this.buttonClass} modal-button`,onClick:e=>this.handleGoToForm(e,"form")},"Next"),this.error?Xe("p",{class:"error-message"},this.error):null)]}renderForm(e){return this.processingFormSubmissions?Xe("div",null,Xe("h4",null,Xe("i",{class:"fas fa-spinner fa-spin"})),Xe("div",{class:"invisible",ref:e=>this.formProcessor=e},Xe("pulumi-hubspot-form",{key:e,formId:e}))):Xe("div",{class:"registration-form-container"},this.skippedSessionSelection?null:Xe("a",{href:"#",onClick:this.handleGotToSessionSelect},"← Go back to select sessions."),Xe("div",{class:"registration-form"},Xe("pulumi-hubspot-form",{formId:this.selectedSessions[0]})))}renderContent(){switch(console.log("rendering content"),this.displayingContent){case"session-select":return this.renderSessionSelectContent();case"form":return console.log("rendering form"),this.renderForm(this.selectedSessions[0])}}renderModal(){return Xe("div",{class:"event-session-modal-container"},Xe("div",{class:"modal-container"},Xe("div",{class:"modal"},Xe("div",{class:"title-container"},Xe("div",{class:"title-text"},Xe("h4",null,this.modalTitle)),Xe("div",{class:"close-icon"},Xe("i",{class:"fa fa-times",onClick:this.handleCloseModal}))),this.renderContent())))}render(){return Xe(Ze,null,Xe("div",null,Xe("div",null,Xe("a",{class:this.buttonClass,href:"#",onClick:this.handleButtonClick},this.buttonText)),this.isModalOpen?this.renderModal():null))}get el(){return this}static get watchers(){return{eventSessions:["handleEventSessionInfo"]}}static get style(){return':host{display:block}.event-session-modal-container{position:fixed;width:100%;height:100%;background-color:black;z-index:9999;top:0;left:0}.event-session-modal-container .hidden{display:none}.event-session-modal-container .modal-container{display:flex;align-items:center;justify-content:center;width:100%;height:100%}.event-session-modal-container .modal-container h2,.event-session-modal-container .modal-container h3,.event-session-modal-container .modal-container h4,.event-session-modal-container .modal-container h5,.event-session-modal-container .modal-container h6,.event-session-modal-container .modal-container p{color:black}.event-session-modal-container .modal-container .modal{height:85%;width:85%;background-color:white;border-radius:5px;padding:1.5rem;overflow-y:scroll}.event-session-modal-container .modal-container .modal .title-container{display:flex;border-bottom:1px solid black}.event-session-modal-container .modal-container .modal .title-container .title-text{width:75%;text-align:left}.event-session-modal-container .modal-container .modal .title-container .title-text h2{color:black}.event-session-modal-container .modal-container .modal .title-container .close-icon{width:25%;text-align:right}.event-session-modal-container .modal-container .modal .title-container .close-icon i{cursor:pointer;font-size:1.5rem}.event-session-modal-container .modal-container .modal .session-select-container{text-align:left}.event-session-modal-container .modal-container .modal .session-select-container p{font-size:1.25rem;margin-top:2rem}.event-session-modal-container .modal-container .modal .session-select-list{list-style:none;text-align:left;display:flex;flex-wrap:wrap;align-items:stretch}.event-session-modal-container .modal-container .modal .session-select-list .checkbox-container{width:10%;position:relative;cursor:pointer}.event-session-modal-container .modal-container .modal .session-select-list .checkbox-container input{position:absolute;opacity:0;height:0;width:0}.event-session-modal-container .modal-container .modal .session-select-list .checkbox-container .checkmark{position:absolute;height:25px;width:25px;border:2px solid #805ac3;border-radius:5px;background-color:white}.event-session-modal-container .modal-container .modal .session-select-list .checkbox-container .checkmark:after{content:"";position:absolute;display:none;left:8px;top:5px;width:5px;height:10px;border:solid white;border-width:0 3px 3px 0;-webkit-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg)}.event-session-modal-container .modal-container .modal .session-select-list .checkbox-container input:checked~.checkmark{background-color:#805ac3}.event-session-modal-container .modal-container .modal .session-select-list .checkbox-container input:checked~.checkmark:after{display:block}.event-session-modal-container .modal-container .modal .session-select-list .checkbox-label{width:90%}.event-session-modal-container .modal-container .modal .session-select-list li{width:50%;padding:0.75rem}@media (max-width: 1024px){.event-session-modal-container .modal-container .modal .session-select-list li{width:100%}}.event-session-modal-container .modal-container .modal .session-select-list .session-selection-item{height:100%;display:flex;justify-items:center;align-items:start;cursor:pointer;border:1px solid black;border-radius:5px;padding:1rem;border-radius:5px}.event-session-modal-container .modal-container .modal .session-select-list .session-selection-item:hover{background-color:#f9f9fa}.event-session-modal-container .modal-container .modal .session-select-list .session-selection-item p{font-size:1rem;margin-top:0.5rem}@media (max-width: 1024px){.event-session-modal-container .modal-container .modal .session-select-list .session-selection-item h6{padding-left:1rem}}.event-session-modal-container .modal-container .modal .next-button-container{text-align:right}.event-session-modal-container .modal-container .modal .next-button-container .modal-button{display:inline-block}.event-session-modal-container .modal-container .modal .next-button-container .modal-button:hover{background-color:#4d3675}.event-session-modal-container .modal-container .modal .next-button-container .error-message{color:red}.event-session-modal-container .modal-container .modal .registration-form-container{text-align:left;padding-top:0.5rem}.event-session-modal-container .modal-container .modal .registration-form-container a{color:black}.event-session-modal-container .modal-container .modal .registration-form-container a:hover{text-decoration:underline}.event-session-modal-container .modal-container .modal .registration-form{max-width:36rem;margin:0 auto;text-align:left}.event-session-modal-container .modal-container .modal .registration-form form{padding:0.25rem}.event-session-modal-container .modal-container .modal .registration-form a{color:black;text-decoration:underline}.event-session-modal-container .modal-container .modal .registration-form a:hover{font-weight:bold}'}};var bn,wn=new Uint8Array(16);function Sn(){if(!bn&&!(bn="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return bn(wn)}const _n=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function On(e){return"string"==typeof e&&_n.test(e)}for(var xn=[],$n=0;$n<256;++$n)xn.push(($n+256).toString(16).substr(1));function Cn(e,t,n){var r=(e=e||{}).random||(e.rng||Sn)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(var o=0;o<16;++o)t[n+o]=r[o];return t}return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(xn[e[t+0]]+xn[e[t+1]]+xn[e[t+2]]+xn[e[t+3]]+"-"+xn[e[t+4]]+xn[e[t+5]]+"-"+xn[e[t+6]]+xn[e[t+7]]+"-"+xn[e[t+8]]+xn[e[t+9]]+"-"+xn[e[t+10]]+xn[e[t+11]]+xn[e[t+12]]+xn[e[t+13]]+xn[e[t+14]]+xn[e[t+15]]).toLowerCase();if(!On(n))throw TypeError("Stringified UUID is invalid");return n}(r)}function En(e){const t=window.location.search.substring(1).split("&");let n=null;return t.forEach((t=>{const r=t.split("=");r[0]===e&&(n=decodeURIComponent(r[1].replace(/\+/g,"%20")))})),n}function kn(){return document.cookie.split(";").reduce(((e,t)=>{const n=t.indexOf("="),r=t.substring(0,n).trim(),o=t.substring(n+1).trim();return e[r]=o,e}),{})}const Tn=class extends HTMLElement{constructor(){super(),this.__registerHost(),this.buttonClass="",this.loading=!0,this.isLoggedIn=!1}componentWillRender(){var e;try{const t=null!==(e=kn().pulumi_web_user_info)&&void 0!==e?e:"j:{}",n=JSON.parse(decodeURIComponent(t).slice(2));n&&n.userId&&""!==n.userId&&(this.isLoggedIn=!0)}catch(e){}this.loading=!1}render(){if(!this.loading)return this.isLoggedIn?Xe("a",{class:this.buttonClass,"data-track":"header-get-started-mobile",href:"https://app.pulumi.com/signup/",target:"_blank",rel:"noopener noreferrer",title:"Dashboard"},"Dashboard"):Xe("a",{class:this.buttonClass,"data-track":"header-get-started",href:"/docs/get-started",title:"Get Started"},"Get Started")}static get style(){return":host{display:block}"}},Pn=class extends HTMLElement{constructor(){super(),this.__registerHost(),this.leftItems="",this.centerItems="",this.rightItems="",this.imageClass="",this.columnOne=[],this.columnTwo=[],this.columnThree=[]}componentDidLoad(){this.columnOne=this.shuffleArray(this.leftItems.split(",")),this.columnTwo=this.shuffleArray(this.centerItems.split(",")),this.columnThree=this.shuffleArray(this.rightItems.split(",")),this.startRotators()}shuffleArray(e){for(let t=e.length-1;t>0;t--){const n=Math.floor(Math.random()*(t+1));[e[t],e[n]]=[e[n],e[t]]}return e}startRotators(){this.columnOneRotator=setInterval((()=>this.incrementColumnOne()),400),setTimeout((()=>{this.columnTwoRotator=setInterval((()=>this.incrementColumnTwo()),400)}),500),setTimeout((()=>{this.columnThreeRotator=setInterval((()=>this.incrementColumnThree()),400)}),1e3),setTimeout((()=>this.stopRotators()),3e3)}stopRotators(){clearInterval(this.columnOneRotator),setTimeout((()=>clearInterval(this.columnTwoRotator)),500),setTimeout((()=>clearInterval(this.columnThreeRotator)),1e3),setTimeout((()=>this.startRotators()),1e4)}incrementColumnOne(){this.columnOne=this.updateOrder(this.columnOne)}incrementColumnTwo(){this.columnTwo=this.updateOrder(this.columnTwo)}incrementColumnThree(){this.columnThree=this.updateOrder(this.columnThree)}updateOrder(e){const t=[...e],n=t.shift();return t.push(n),t}render(){const e=this.columnOne[0],t=this.columnTwo[0],n=this.columnThree[0];return Xe(Ze,null,Xe("div",null,Xe("div",{class:"slot-container"},Xe("div",{class:"item-container"},Xe("img",{key:e,class:this.imageClass,src:e})),Xe("div",{class:"separator-container"},"+"),Xe("div",{class:"item-container"},Xe("img",{key:t,class:this.imageClass,src:t})),Xe("div",{class:"separator-container"},"+"),Xe("div",{class:"item-container"},Xe("img",{key:n,class:this.imageClass,src:n})))))}static get style(){return"home-slots .slot-container{display:flex;align-items:center;justify-items:center;text-align:center}home-slots .slot-container .item-container{width:25%;text-align:center}home-slots .slot-container .item-container img{animation:fadeIn 500ms}home-slots .slot-container .separator-container{width:12.5%;text-align:center}@keyframes fadeIn{0%{opacity:0}100%{opacity:1}}"}};var jn="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:{};function In(e,t,n){return e(n={path:t,exports:{},require:function(e,t){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}()}},n.exports),n.exports}function Ln(e){if(e.__esModule)return e;var t=Object.defineProperty({},"__esModule",{value:!0});return Object.keys(e).forEach((function(n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})})),t}var An=In((function(e,t){(function(){var n,r="Expected a function",o="__lodash_hash_undefined__",i="__lodash_placeholder__",s=16,a=32,l=64,u=128,c=256,d=1/0,p=9007199254740991,f=NaN,h=4294967295,m=[["ary",u],["bind",1],["bindKey",2],["curry",8],["curryRight",s],["flip",512],["partial",a],["partialRight",l],["rearg",c]],v="[object Arguments]",g="[object Array]",y="[object Boolean]",b="[object Date]",w="[object Error]",S="[object Function]",_="[object GeneratorFunction]",O="[object Map]",x="[object Number]",$="[object Object]",C="[object Promise]",E="[object RegExp]",k="[object Set]",T="[object String]",P="[object Symbol]",j="[object WeakMap]",I="[object ArrayBuffer]",L="[object DataView]",A="[object Float32Array]",D="[object Float64Array]",M="[object Int8Array]",N="[object Int16Array]",R="[object Int32Array]",F="[object Uint8Array]",B="[object Uint8ClampedArray]",z="[object Uint16Array]",q="[object Uint32Array]",H=/\b__p \+= '';/g,W=/\b(__p \+=) '' \+/g,U=/(__e\(.*?\)|\b__t\)) \+\n'';/g,V=/&(?:amp|lt|gt|quot|#39);/g,G=/[&<>"']/g,K=RegExp(V.source),J=RegExp(G.source),Y=/<%-([\s\S]+?)%>/g,X=/<%([\s\S]+?)%>/g,Q=/<%=([\s\S]+?)%>/g,Z=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ee=/^\w*$/,te=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ne=/[\\^$.*+?()[\]{}|]/g,re=RegExp(ne.source),oe=/^\s+/,ie=/\s/,se=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ae=/\{\n\/\* \[wrapped with (.+)\] \*/,le=/,? & /,ue=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ce=/[()=,{}\[\]\/\s]/,de=/\\(\\)?/g,pe=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,fe=/\w*$/,he=/^[-+]0x[0-9a-f]+$/i,me=/^0b[01]+$/i,ve=/^\[object .+?Constructor\]$/,ge=/^0o[0-7]+$/i,ye=/^(?:0|[1-9]\d*)$/,be=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,we=/($^)/,Se=/['\n\r\u2028\u2029\\]/g,_e="\\ud800-\\udfff",Oe="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",xe="\\u2700-\\u27bf",$e="a-z\\xdf-\\xf6\\xf8-\\xff",Ce="A-Z\\xc0-\\xd6\\xd8-\\xde",Ee="\\ufe0e\\ufe0f",ke="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Te="['’]",Pe="["+_e+"]",je="["+ke+"]",Ie="["+Oe+"]",Le="\\d+",Ae="["+xe+"]",De="["+$e+"]",Me="[^"+_e+ke+Le+xe+$e+Ce+"]",Ne="\\ud83c[\\udffb-\\udfff]",Re="[^"+_e+"]",Fe="(?:\\ud83c[\\udde6-\\uddff]){2}",Be="[\\ud800-\\udbff][\\udc00-\\udfff]",ze="["+Ce+"]",qe="\\u200d",He="(?:"+De+"|"+Me+")",We="(?:"+ze+"|"+Me+")",Ue="(?:['’](?:d|ll|m|re|s|t|ve))?",Ve="(?:['’](?:D|LL|M|RE|S|T|VE))?",Ge="(?:"+Ie+"|"+Ne+")"+"?",Ke="["+Ee+"]?",Je=Ke+Ge+("(?:"+qe+"(?:"+[Re,Fe,Be].join("|")+")"+Ke+Ge+")*"),Ye="(?:"+[Ae,Fe,Be].join("|")+")"+Je,Xe="(?:"+[Re+Ie+"?",Ie,Fe,Be,Pe].join("|")+")",Qe=RegExp(Te,"g"),Ze=RegExp(Ie,"g"),et=RegExp(Ne+"(?="+Ne+")|"+Xe+Je,"g"),tt=RegExp([ze+"?"+De+"+"+Ue+"(?="+[je,ze,"$"].join("|")+")",We+"+"+Ve+"(?="+[je,ze+He,"$"].join("|")+")",ze+"?"+He+"+"+Ue,ze+"+"+Ve,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Le,Ye].join("|"),"g"),nt=RegExp("["+qe+_e+Oe+Ee+"]"),rt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,ot=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],it=-1,st={};st[A]=st[D]=st[M]=st[N]=st[R]=st[F]=st[B]=st[z]=st[q]=!0,st[v]=st[g]=st[I]=st[y]=st[L]=st[b]=st[w]=st[S]=st[O]=st[x]=st[$]=st[E]=st[k]=st[T]=st[j]=!1;var at={};at[v]=at[g]=at[I]=at[L]=at[y]=at[b]=at[A]=at[D]=at[M]=at[N]=at[R]=at[O]=at[x]=at[$]=at[E]=at[k]=at[T]=at[P]=at[F]=at[B]=at[z]=at[q]=!0,at[w]=at[S]=at[j]=!1;var lt={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},ut=parseFloat,ct=parseInt,dt="object"==typeof jn&&jn&&jn.Object===Object&&jn,pt="object"==typeof self&&self&&self.Object===Object&&self,ft=dt||pt||Function("return this")(),ht=t&&!t.nodeType&&t,mt=ht&&e&&!e.nodeType&&e,vt=mt&&mt.exports===ht,gt=vt&&dt.process,yt=function(){try{var e=mt&&mt.require&&mt.require("util").types;return e||gt&>.binding&>.binding("util")}catch(e){}}(),bt=yt&&yt.isArrayBuffer,wt=yt&&yt.isDate,St=yt&&yt.isMap,_t=yt&&yt.isRegExp,Ot=yt&&yt.isSet,xt=yt&&yt.isTypedArray;function $t(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function Ct(e,t,n,r){for(var o=-1,i=null==e?0:e.length;++o-1}function It(e,t,n){for(var r=-1,o=null==e?0:e.length;++r-1;);return n}function tn(e,t){for(var n=e.length;n--&&zt(t,e[n],0)>-1;);return n}function nn(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}var rn=Vt({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"}),on=Vt({"&":"&","<":"<",">":">",'"':""","'":"'"});function sn(e){return"\\"+lt[e]}function an(e){return nt.test(e)}function ln(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function un(e,t){return function(n){return e(t(n))}}function cn(e,t){for(var n=-1,r=e.length,o=0,s=[];++n",""":'"',"'":"'"});var gn=function e(t){var ie,_e=(t=null==t?ft:gn.defaults(ft.Object(),t,gn.pick(ft,ot))).Array,Oe=t.Date,xe=t.Error,$e=t.Function,Ce=t.Math,Ee=t.Object,ke=t.RegExp,Te=t.String,Pe=t.TypeError,je=_e.prototype,Ie=$e.prototype,Le=Ee.prototype,Ae=t["__core-js_shared__"],De=Ie.toString,Me=Le.hasOwnProperty,Ne=0,Re=(ie=/[^.]+$/.exec(Ae&&Ae.keys&&Ae.keys.IE_PROTO||""))?"Symbol(src)_1."+ie:"",Fe=Le.toString,Be=De.call(Ee),ze=ft._,qe=ke("^"+De.call(Me).replace(ne,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),He=vt?t.Buffer:n,We=t.Symbol,Ue=t.Uint8Array,Ve=He?He.allocUnsafe:n,Ge=un(Ee.getPrototypeOf,Ee),Ke=Ee.create,Je=Le.propertyIsEnumerable,Ye=je.splice,Xe=We?We.isConcatSpreadable:n,et=We?We.iterator:n,nt=We?We.toStringTag:n,lt=function(){try{var e=hi(Ee,"defineProperty");return e({},"",{}),e}catch(e){}}(),dt=t.clearTimeout!==ft.clearTimeout&&t.clearTimeout,pt=Oe&&Oe.now!==ft.Date.now&&Oe.now,ht=t.setTimeout!==ft.setTimeout&&t.setTimeout,mt=Ce.ceil,gt=Ce.floor,yt=Ee.getOwnPropertySymbols,Rt=He?He.isBuffer:n,Vt=t.isFinite,yn=je.join,bn=un(Ee.keys,Ee),wn=Ce.max,Sn=Ce.min,_n=Oe.now,On=t.parseInt,xn=Ce.random,$n=je.reverse,Cn=hi(t,"DataView"),En=hi(t,"Map"),kn=hi(t,"Promise"),Tn=hi(t,"Set"),Pn=hi(t,"WeakMap"),jn=hi(Ee,"create"),In=Pn&&new Pn,Ln={},An=zi(Cn),Dn=zi(En),Mn=zi(kn),Nn=zi(Tn),Rn=zi(Pn),Fn=We?We.prototype:n,Bn=Fn?Fn.valueOf:n,zn=Fn?Fn.toString:n;function qn(e){if(oa(e)&&!Gs(e)&&!(e instanceof Vn)){if(e instanceof Un)return e;if(Me.call(e,"__wrapped__"))return qi(e)}return new Un(e)}var Hn=function(){function e(){}return function(t){if(!ra(t))return{};if(Ke)return Ke(t);e.prototype=t;var r=new e;return e.prototype=n,r}}();function Wn(){}function Un(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=n}function Vn(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=h,this.__views__=[]}function Gn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t=t?e:t)),e}function cr(e,t,r,o,i,s){var a,l=1&t,u=2&t,c=4&t;if(r&&(a=i?r(e,o,i,s):r(e)),a!==n)return a;if(!ra(e))return e;var d=Gs(e);if(d){if(a=function(e){var t=e.length,n=new e.constructor(t);t&&"string"==typeof e[0]&&Me.call(e,"index")&&(n.index=e.index,n.input=e.input);return n}(e),!l)return Io(e,a)}else{var p=gi(e),f=p==S||p==_;if(Xs(e))return Co(e,l);if(p==$||p==v||f&&!i){if(a=u||f?{}:bi(e),!l)return u?function(e,t){return Lo(e,vi(e),t)}(e,function(e,t){return e&&Lo(t,Da(t),e)}(a,e)):function(e,t){return Lo(e,mi(e),t)}(e,sr(a,e))}else{if(!at[p])return i?e:{};a=function(e,t,n){var r=e.constructor;switch(t){case I:return Eo(e);case y:case b:return new r(+e);case L:return function(e,t){var n=t?Eo(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case A:case D:case M:case N:case R:case F:case B:case z:case q:return ko(e,n);case O:return new r;case x:case T:return new r(e);case E:return function(e){var t=new e.constructor(e.source,fe.exec(e));return t.lastIndex=e.lastIndex,t}(e);case k:return new r;case P:return o=e,Bn?Ee(Bn.call(o)):{}}var o}(e,p,l)}}s||(s=new Xn);var h=s.get(e);if(h)return h;s.set(e,a),ua(e)?e.forEach((function(n){a.add(cr(n,t,r,n,e,s))})):ia(e)&&e.forEach((function(n,o){a.set(o,cr(n,t,r,o,e,s))}));var m=d?n:(c?u?ai:si:u?Da:Aa)(e);return Et(m||e,(function(n,o){m&&(n=e[o=n]),rr(a,o,cr(n,t,r,o,e,s))})),a}function dr(e,t,r){var o=r.length;if(null==e)return!o;for(e=Ee(e);o--;){var i=r[o],s=t[i],a=e[i];if(a===n&&!(i in e)||!s(a))return!1}return!0}function pr(e,t,o){if("function"!=typeof e)throw new Pe(r);return Ai((function(){e.apply(n,o)}),t)}function fr(e,t,n,r){var o=-1,i=jt,s=!0,a=e.length,l=[],u=t.length;if(!a)return l;n&&(t=Lt(t,Xt(n))),r?(i=It,s=!1):t.length>=200&&(i=Zt,s=!1,t=new Yn(t));e:for(;++o-1},Kn.prototype.set=function(e,t){var n=this.__data__,r=or(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},Jn.prototype.clear=function(){this.size=0,this.__data__={hash:new Gn,map:new(En||Kn),string:new Gn}},Jn.prototype.delete=function(e){var t=pi(this,e).delete(e);return this.size-=t?1:0,t},Jn.prototype.get=function(e){return pi(this,e).get(e)},Jn.prototype.has=function(e){return pi(this,e).has(e)},Jn.prototype.set=function(e,t){var n=pi(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Yn.prototype.add=Yn.prototype.push=function(e){return this.__data__.set(e,o),this},Yn.prototype.has=function(e){return this.__data__.has(e)},Xn.prototype.clear=function(){this.__data__=new Kn,this.size=0},Xn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Xn.prototype.get=function(e){return this.__data__.get(e)},Xn.prototype.has=function(e){return this.__data__.has(e)},Xn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Kn){var r=n.__data__;if(!En||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Jn(r)}return n.set(e,t),this.size=n.size,this};var hr=Mo(_r),mr=Mo(Or,!0);function vr(e,t){var n=!0;return hr(e,(function(e,r,o){return n=!!t(e,r,o)})),n}function gr(e,t,r){for(var o=-1,i=e.length;++o0&&n(a)?t>1?br(a,t-1,n,r,o):At(o,a):r||(o[o.length]=a)}return o}var wr=No(),Sr=No(!0);function _r(e,t){return e&&wr(e,t,Aa)}function Or(e,t){return e&&Sr(e,t,Aa)}function xr(e,t){return Pt(t,(function(t){return ea(e[t])}))}function $r(e,t){for(var r=0,o=(t=_o(t,e)).length;null!=e&&rt}function Tr(e,t){return null!=e&&Me.call(e,t)}function Pr(e,t){return null!=e&&t in Ee(e)}function jr(e,t,r){for(var o=r?It:jt,i=e[0].length,s=e.length,a=s,l=_e(s),u=1/0,c=[];a--;){var d=e[a];a&&t&&(d=Lt(d,Xt(t))),u=Sn(d.length,u),l[a]=!r&&(t||i>=120&&d.length>=120)?new Yn(a&&d):n}d=e[0];var p=-1,f=l[0];e:for(;++p=a?l:l*("desc"==n[r]?-1:1)}return e.index-t.index}(e,t,n)}))}function Gr(e,t,n){for(var r=-1,o=t.length,i={};++r-1;)a!==e&&Ye.call(a,l,1),Ye.call(e,l,1);return e}function Jr(e,t){for(var n=e?t.length:0,r=n-1;n--;){var o=t[n];if(n==r||o!==i){var i=o;Si(o)?Ye.call(e,o,1):ho(e,o)}}return e}function Yr(e,t){return e+gt(xn()*(t-e+1))}function Xr(e,t){var n="";if(!e||t<1||t>p)return n;do{t%2&&(n+=e),(t=gt(t/2))&&(e+=e)}while(t);return n}function Qr(e,t){return Di(Ti(e,t,sl),e+"")}function Zr(e){return Zn(Ha(e))}function eo(e,t){var n=Ha(e);return Ri(n,ur(t,0,n.length))}function to(e,t,r,o){if(!ra(e))return e;for(var i=-1,s=(t=_o(t,e)).length,a=s-1,l=e;null!=l&&++io?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var i=_e(o);++r>>1,s=e[i];null!==s&&!da(s)&&(n?s<=t:s=200){var u=t?null:Qo(e);if(u)return dn(u);s=!1,o=Zt,l=new Yn}else l=t?[]:a;e:for(;++r=o?e:io(e,t,r)}var $o=dt||function(e){return ft.clearTimeout(e)};function Co(e,t){if(t)return e.slice();var n=e.length,r=Ve?Ve(n):new e.constructor(n);return e.copy(r),r}function Eo(e){var t=new e.constructor(e.byteLength);return new Ue(t).set(new Ue(e)),t}function ko(e,t){var n=t?Eo(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function To(e,t){if(e!==t){var r=e!==n,o=null===e,i=e==e,s=da(e),a=t!==n,l=null===t,u=t==t,c=da(t);if(!l&&!c&&!s&&e>t||s&&a&&u&&!l&&!c||o&&a&&u||!r&&u||!i)return 1;if(!o&&!s&&!c&&e1?r[i-1]:n,a=i>2?r[2]:n;for(s=e.length>3&&"function"==typeof s?(i--,s):n,a&&_i(r[0],r[1],a)&&(s=i<3?n:s,i=1),t=Ee(t);++o-1?i[s?t[a]:a]:n}}function qo(e){return ii((function(t){var o=t.length,i=o,s=Un.prototype.thru;for(e&&t.reverse();i--;){var a=t[i];if("function"!=typeof a)throw new Pe(r);if(s&&!l&&"wrapper"==ui(a))var l=new Un([],!0)}for(i=l?i:o;++i1&&y.reverse(),p&&cl))return!1;var c=s.get(e),d=s.get(t);if(c&&d)return c==t&&d==e;var p=-1,f=!0,h=2&r?new Yn:n;for(s.set(e,t),s.set(t,e);++p-1&&e%1==0&&e1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(se,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return Et(m,(function(n){var r="_."+n[0];t&n[1]&&!jt(e,r)&&e.push(r)})),e.sort()}(function(e){var t=e.match(ae);return t?t[1].split(le):[]}(r),n)))}function Ni(e){var t=0,r=0;return function(){var o=_n(),i=16-(o-r);if(r=o,i>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(n,arguments)}}function Ri(e,t){var r=-1,o=e.length,i=o-1;for(t=t===n?o:t;++r1?e[t-1]:n;return r="function"==typeof r?(e.pop(),r):n,ls(e,r)}));function ms(e){var t=qn(e);return t.__chain__=!0,t}function vs(e,t){return t(e)}var gs=ii((function(e){var t=e.length,r=t?e[0]:0,o=this.__wrapped__,i=function(t){return lr(t,e)};return!(t>1||this.__actions__.length)&&o instanceof Vn&&Si(r)?((o=o.slice(r,+r+(t?1:0))).__actions__.push({func:vs,args:[i],thisArg:n}),new Un(o,this.__chain__).thru((function(e){return t&&!e.length&&e.push(n),e}))):this.thru(i)}));var ys=Ao((function(e,t,n){Me.call(e,n)?++e[n]:ar(e,n,1)}));var bs=zo(Vi),ws=zo(Gi);function Ss(e,t){return(Gs(e)?Et:hr)(e,di(t,3))}function _s(e,t){return(Gs(e)?kt:mr)(e,di(t,3))}var Os=Ao((function(e,t,n){Me.call(e,n)?e[n].push(t):ar(e,n,[t])}));var xs=Qr((function(e,t,n){var r=-1,o="function"==typeof t,i=Js(e)?_e(e.length):[];return hr(e,(function(e){i[++r]=o?$t(t,e,n):Ir(e,t,n)})),i})),$s=Ao((function(e,t,n){ar(e,n,t)}));function Cs(e,t){return(Gs(e)?Lt:zr)(e,di(t,3))}var Es=Ao((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]}));var ks=Qr((function(e,t){if(null==e)return[];var n=t.length;return n>1&&_i(e,t[0],t[1])?t=[]:n>2&&_i(t[0],t[1],t[2])&&(t=[t[0]]),Vr(e,br(t,1),[])})),Ts=pt||function(){return ft.Date.now()};function Ps(e,t,r){return t=r?n:t,t=e&&null==t?e.length:t,ei(e,u,n,n,n,n,t)}function js(e,t){var o;if("function"!=typeof t)throw new Pe(r);return e=ga(e),function(){return--e>0&&(o=t.apply(this,arguments)),e<=1&&(t=n),o}}var Is=Qr((function(e,t,n){var r=1;if(n.length){var o=cn(n,ci(Is));r|=a}return ei(e,r,t,n,o)})),Ls=Qr((function(e,t,n){var r=3;if(n.length){var o=cn(n,ci(Ls));r|=a}return ei(t,r,e,n,o)}));function As(e,t,o){var i,s,a,l,u,c,d=0,p=!1,f=!1,h=!0;if("function"!=typeof e)throw new Pe(r);function m(t){var r=i,o=s;return i=s=n,d=t,l=e.apply(o,r)}function v(e){return d=e,u=Ai(y,t),p?m(e):l}function g(e){var r=e-c;return c===n||r>=t||r<0||f&&e-d>=a}function y(){var e=Ts();if(g(e))return b(e);u=Ai(y,function(e){var n=t-(e-c);return f?Sn(n,a-(e-d)):n}(e))}function b(e){return u=n,h&&i?m(e):(i=s=n,l)}function w(){var e=Ts(),r=g(e);if(i=arguments,s=this,c=e,r){if(u===n)return v(c);if(f)return $o(u),u=Ai(y,t),m(c)}return u===n&&(u=Ai(y,t)),l}return t=ba(t)||0,ra(o)&&(p=!!o.leading,a=(f="maxWait"in o)?wn(ba(o.maxWait)||0,t):a,h="trailing"in o?!!o.trailing:h),w.cancel=function(){u!==n&&$o(u),d=0,i=c=s=u=n},w.flush=function(){return u===n?l:b(Ts())},w}var Ds=Qr((function(e,t){return pr(e,1,t)})),Ms=Qr((function(e,t,n){return pr(e,ba(t)||0,n)}));function Ns(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new Pe(r);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var s=e.apply(this,r);return n.cache=i.set(o,s)||i,s};return n.cache=new(Ns.Cache||Jn),n}function Rs(e){if("function"!=typeof e)throw new Pe(r);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}Ns.Cache=Jn;var Fs=Oo((function(e,t){var n=(t=1==t.length&&Gs(t[0])?Lt(t[0],Xt(di())):Lt(br(t,1),Xt(di()))).length;return Qr((function(r){for(var o=-1,i=Sn(r.length,n);++o=t})),Vs=Lr(function(){return arguments}())?Lr:function(e){return oa(e)&&Me.call(e,"callee")&&!Je.call(e,"callee")},Gs=_e.isArray,Ks=bt?Xt(bt):function(e){return oa(e)&&Er(e)==I};function Js(e){return null!=e&&na(e.length)&&!ea(e)}function Ys(e){return oa(e)&&Js(e)}var Xs=Rt||bl,Qs=wt?Xt(wt):function(e){return oa(e)&&Er(e)==b};function Zs(e){if(!oa(e))return!1;var t=Er(e);return t==w||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!aa(e)}function ea(e){if(!ra(e))return!1;var t=Er(e);return t==S||t==_||"[object AsyncFunction]"==t||"[object Proxy]"==t}function ta(e){return"number"==typeof e&&e==ga(e)}function na(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=p}function ra(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function oa(e){return null!=e&&"object"==typeof e}var ia=St?Xt(St):function(e){return oa(e)&&gi(e)==O};function sa(e){return"number"==typeof e||oa(e)&&Er(e)==x}function aa(e){if(!oa(e)||Er(e)!=$)return!1;var t=Ge(e);if(null===t)return!0;var n=Me.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&De.call(n)==Be}var la=_t?Xt(_t):function(e){return oa(e)&&Er(e)==E};var ua=Ot?Xt(Ot):function(e){return oa(e)&&gi(e)==k};function ca(e){return"string"==typeof e||!Gs(e)&&oa(e)&&Er(e)==T}function da(e){return"symbol"==typeof e||oa(e)&&Er(e)==P}var pa=xt?Xt(xt):function(e){return oa(e)&&na(e.length)&&!!st[Er(e)]};var fa=Jo(Br),ha=Jo((function(e,t){return e<=t}));function ma(e){if(!e)return[];if(Js(e))return ca(e)?hn(e):Io(e);if(et&&e[et])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[et]());var t=gi(e);return(t==O?ln:t==k?dn:Ha)(e)}function va(e){return e?(e=ba(e))===d||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function ga(e){var t=va(e),n=t%1;return t==t?n?t-n:t:0}function ya(e){return e?ur(ga(e),0,h):0}function ba(e){if("number"==typeof e)return e;if(da(e))return f;if(ra(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=ra(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Yt(e);var n=me.test(e);return n||ge.test(e)?ct(e.slice(2),n?2:8):he.test(e)?f:+e}function wa(e){return Lo(e,Da(e))}function Sa(e){return null==e?"":po(e)}var _a=Do((function(e,t){if(Ci(t)||Js(t))Lo(t,Aa(t),e);else for(var n in t)Me.call(t,n)&&rr(e,n,t[n])})),Oa=Do((function(e,t){Lo(t,Da(t),e)})),xa=Do((function(e,t,n,r){Lo(t,Da(t),e,r)})),$a=Do((function(e,t,n,r){Lo(t,Aa(t),e,r)})),Ca=ii(lr);var Ea=Qr((function(e,t){e=Ee(e);var r=-1,o=t.length,i=o>2?t[2]:n;for(i&&_i(t[0],t[1],i)&&(o=1);++r1),t})),Lo(e,ai(e),n),r&&(n=cr(n,7,ri));for(var o=t.length;o--;)ho(n,t[o]);return n}));var Fa=ii((function(e,t){return null==e?{}:function(e,t){return Gr(e,t,(function(t,n){return Pa(e,n)}))}(e,t)}));function Ba(e,t){if(null==e)return{};var n=Lt(ai(e),(function(e){return[e]}));return t=di(t),Gr(e,n,(function(e,n){return t(e,n[0])}))}var za=Zo(Aa),qa=Zo(Da);function Ha(e){return null==e?[]:Qt(e,Aa(e))}var Wa=Fo((function(e,t,n){return t=t.toLowerCase(),e+(n?Ua(t):t)}));function Ua(e){return Za(Sa(e).toLowerCase())}function Va(e){return(e=Sa(e))&&e.replace(be,rn).replace(Ze,"")}var Ga=Fo((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),Ka=Fo((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),Ja=Ro("toLowerCase");var Ya=Fo((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}));var Xa=Fo((function(e,t,n){return e+(n?" ":"")+Za(t)}));var Qa=Fo((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),Za=Ro("toUpperCase");function el(e,t,r){return e=Sa(e),(t=r?n:t)===n?function(e){return rt.test(e)}(e)?function(e){return e.match(tt)||[]}(e):function(e){return e.match(ue)||[]}(e):e.match(t)||[]}var tl=Qr((function(e,t){try{return $t(e,n,t)}catch(e){return Zs(e)?e:new xe(e)}})),nl=ii((function(e,t){return Et(t,(function(t){t=Bi(t),ar(e,t,Is(e[t],e))})),e}));function rl(e){return function(){return e}}var ol=qo(),il=qo(!0);function sl(e){return e}function al(e){return Nr("function"==typeof e?e:cr(e,1))}var ll=Qr((function(e,t){return function(n){return Ir(n,e,t)}})),ul=Qr((function(e,t){return function(n){return Ir(e,n,t)}}));function cl(e,t,n){var r=Aa(t),o=xr(t,r);null!=n||ra(t)&&(o.length||!r.length)||(n=t,t=e,e=this,o=xr(t,Aa(t)));var i=!(ra(n)&&"chain"in n&&!n.chain),s=ea(e);return Et(o,(function(n){var r=t[n];e[n]=r,s&&(e.prototype[n]=function(){var t=this.__chain__;if(i||t){var n=e(this.__wrapped__),o=n.__actions__=Io(this.__actions__);return o.push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,At([this.value()],arguments))})})),e}function dl(){}var pl=Vo(Lt),fl=Vo(Tt),hl=Vo(Nt);function ml(e){return Oi(e)?Ut(Bi(e)):function(e){return function(t){return $r(t,e)}}(e)}var vl=Ko(),gl=Ko(!0);function yl(){return[]}function bl(){return!1}var wl=Uo((function(e,t){return e+t}),0),Sl=Xo("ceil"),_l=Uo((function(e,t){return e/t}),1),Ol=Xo("floor");var xl,$l=Uo((function(e,t){return e*t}),1),Cl=Xo("round"),El=Uo((function(e,t){return e-t}),0);return qn.after=function(e,t){if("function"!=typeof t)throw new Pe(r);return e=ga(e),function(){if(--e<1)return t.apply(this,arguments)}},qn.ary=Ps,qn.assign=_a,qn.assignIn=Oa,qn.assignInWith=xa,qn.assignWith=$a,qn.at=Ca,qn.before=js,qn.bind=Is,qn.bindAll=nl,qn.bindKey=Ls,qn.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Gs(e)?e:[e]},qn.chain=ms,qn.chunk=function(e,t,r){t=(r?_i(e,t,r):t===n)?1:wn(ga(t),0);var o=null==e?0:e.length;if(!o||t<1)return[];for(var i=0,s=0,a=_e(mt(o/t));ii?0:i+r),(o=o===n||o>i?i:ga(o))<0&&(o+=i),o=r>o?0:ya(o);r>>0)?(e=Sa(e))&&("string"==typeof t||null!=t&&!la(t))&&!(t=po(t))&&an(e)?xo(hn(e),0,r):e.split(t,r):[]},qn.spread=function(e,t){if("function"!=typeof e)throw new Pe(r);return t=null==t?0:wn(ga(t),0),Qr((function(n){var r=n[t],o=xo(n,0,t);return r&&At(o,r),$t(e,this,o)}))},qn.tail=function(e){var t=null==e?0:e.length;return t?io(e,1,t):[]},qn.take=function(e,t,r){return e&&e.length?io(e,0,(t=r||t===n?1:ga(t))<0?0:t):[]},qn.takeRight=function(e,t,r){var o=null==e?0:e.length;return o?io(e,(t=o-(t=r||t===n?1:ga(t)))<0?0:t,o):[]},qn.takeRightWhile=function(e,t){return e&&e.length?vo(e,di(t,3),!1,!0):[]},qn.takeWhile=function(e,t){return e&&e.length?vo(e,di(t,3)):[]},qn.tap=function(e,t){return t(e),e},qn.throttle=function(e,t,n){var o=!0,i=!0;if("function"!=typeof e)throw new Pe(r);return ra(n)&&(o="leading"in n?!!n.leading:o,i="trailing"in n?!!n.trailing:i),As(e,t,{leading:o,maxWait:t,trailing:i})},qn.thru=vs,qn.toArray=ma,qn.toPairs=za,qn.toPairsIn=qa,qn.toPath=function(e){return Gs(e)?Lt(e,Bi):da(e)?[e]:Io(Fi(Sa(e)))},qn.toPlainObject=wa,qn.transform=function(e,t,n){var r=Gs(e),o=r||Xs(e)||pa(e);if(t=di(t,4),null==n){var i=e&&e.constructor;n=o?r?new i:[]:ra(e)&&ea(i)?Hn(Ge(e)):{}}return(o?Et:_r)(e,(function(e,r,o){return t(n,e,r,o)})),n},qn.unary=function(e){return Ps(e,1)},qn.union=os,qn.unionBy=is,qn.unionWith=ss,qn.uniq=function(e){return e&&e.length?fo(e):[]},qn.uniqBy=function(e,t){return e&&e.length?fo(e,di(t,2)):[]},qn.uniqWith=function(e,t){return t="function"==typeof t?t:n,e&&e.length?fo(e,n,t):[]},qn.unset=function(e,t){return null==e||ho(e,t)},qn.unzip=as,qn.unzipWith=ls,qn.update=function(e,t,n){return null==e?e:mo(e,t,So(n))},qn.updateWith=function(e,t,r,o){return o="function"==typeof o?o:n,null==e?e:mo(e,t,So(r),o)},qn.values=Ha,qn.valuesIn=function(e){return null==e?[]:Qt(e,Da(e))},qn.without=us,qn.words=el,qn.wrap=function(e,t){return Bs(So(t),e)},qn.xor=cs,qn.xorBy=ds,qn.xorWith=ps,qn.zip=fs,qn.zipObject=function(e,t){return bo(e||[],t||[],rr)},qn.zipObjectDeep=function(e,t){return bo(e||[],t||[],to)},qn.zipWith=hs,qn.entries=za,qn.entriesIn=qa,qn.extend=Oa,qn.extendWith=xa,cl(qn,qn),qn.add=wl,qn.attempt=tl,qn.camelCase=Wa,qn.capitalize=Ua,qn.ceil=Sl,qn.clamp=function(e,t,r){return r===n&&(r=t,t=n),r!==n&&(r=(r=ba(r))==r?r:0),t!==n&&(t=(t=ba(t))==t?t:0),ur(ba(e),t,r)},qn.clone=function(e){return cr(e,4)},qn.cloneDeep=function(e){return cr(e,5)},qn.cloneDeepWith=function(e,t){return cr(e,5,t="function"==typeof t?t:n)},qn.cloneWith=function(e,t){return cr(e,4,t="function"==typeof t?t:n)},qn.conformsTo=function(e,t){return null==t||dr(e,t,Aa(t))},qn.deburr=Va,qn.defaultTo=function(e,t){return null==e||e!=e?t:e},qn.divide=_l,qn.endsWith=function(e,t,r){e=Sa(e),t=po(t);var o=e.length,i=r=r===n?o:ur(ga(r),0,o);return(r-=t.length)>=0&&e.slice(r,i)==t},qn.eq=Hs,qn.escape=function(e){return(e=Sa(e))&&J.test(e)?e.replace(G,on):e},qn.escapeRegExp=function(e){return(e=Sa(e))&&re.test(e)?e.replace(ne,"\\$&"):e},qn.every=function(e,t,r){var o=Gs(e)?Tt:vr;return r&&_i(e,t,r)&&(t=n),o(e,di(t,3))},qn.find=bs,qn.findIndex=Vi,qn.findKey=function(e,t){return Ft(e,di(t,3),_r)},qn.findLast=ws,qn.findLastIndex=Gi,qn.findLastKey=function(e,t){return Ft(e,di(t,3),Or)},qn.floor=Ol,qn.forEach=Ss,qn.forEachRight=_s,qn.forIn=function(e,t){return null==e?e:wr(e,di(t,3),Da)},qn.forInRight=function(e,t){return null==e?e:Sr(e,di(t,3),Da)},qn.forOwn=function(e,t){return e&&_r(e,di(t,3))},qn.forOwnRight=function(e,t){return e&&Or(e,di(t,3))},qn.get=Ta,qn.gt=Ws,qn.gte=Us,qn.has=function(e,t){return null!=e&&yi(e,t,Tr)},qn.hasIn=Pa,qn.head=Ji,qn.identity=sl,qn.includes=function(e,t,n,r){e=Js(e)?e:Ha(e),n=n&&!r?ga(n):0;var o=e.length;return n<0&&(n=wn(o+n,0)),ca(e)?n<=o&&e.indexOf(t,n)>-1:!!o&&zt(e,t,n)>-1},qn.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:ga(n);return o<0&&(o=wn(r+o,0)),zt(e,t,o)},qn.inRange=function(e,t,r){return t=va(t),r===n?(r=t,t=0):r=va(r),function(e,t,n){return e>=Sn(t,n)&&e=-9007199254740991&&e<=p},qn.isSet=ua,qn.isString=ca,qn.isSymbol=da,qn.isTypedArray=pa,qn.isUndefined=function(e){return e===n},qn.isWeakMap=function(e){return oa(e)&&gi(e)==j},qn.isWeakSet=function(e){return oa(e)&&"[object WeakSet]"==Er(e)},qn.join=function(e,t){return null==e?"":yn.call(e,t)},qn.kebabCase=Ga,qn.last=Zi,qn.lastIndexOf=function(e,t,r){var o=null==e?0:e.length;if(!o)return-1;var i=o;return r!==n&&(i=(i=ga(r))<0?wn(o+i,0):Sn(i,o-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,i):Bt(e,Ht,i,!0)},qn.lowerCase=Ka,qn.lowerFirst=Ja,qn.lt=fa,qn.lte=ha,qn.max=function(e){return e&&e.length?gr(e,sl,kr):n},qn.maxBy=function(e,t){return e&&e.length?gr(e,di(t,2),kr):n},qn.mean=function(e){return Wt(e,sl)},qn.meanBy=function(e,t){return Wt(e,di(t,2))},qn.min=function(e){return e&&e.length?gr(e,sl,Br):n},qn.minBy=function(e,t){return e&&e.length?gr(e,di(t,2),Br):n},qn.stubArray=yl,qn.stubFalse=bl,qn.stubObject=function(){return{}},qn.stubString=function(){return""},qn.stubTrue=function(){return!0},qn.multiply=$l,qn.nth=function(e,t){return e&&e.length?Ur(e,ga(t)):n},qn.noConflict=function(){return ft._===this&&(ft._=ze),this},qn.noop=dl,qn.now=Ts,qn.pad=function(e,t,n){e=Sa(e);var r=(t=ga(t))?fn(e):0;if(!t||r>=t)return e;var o=(t-r)/2;return Go(gt(o),n)+e+Go(mt(o),n)},qn.padEnd=function(e,t,n){e=Sa(e);var r=(t=ga(t))?fn(e):0;return t&&rt){var o=e;e=t,t=o}if(r||e%1||t%1){var i=xn();return Sn(e+i*(t-e+ut("1e-"+((i+"").length-1))),t)}return Yr(e,t)},qn.reduce=function(e,t,n){var r=Gs(e)?Dt:Gt,o=arguments.length<3;return r(e,di(t,4),n,o,hr)},qn.reduceRight=function(e,t,n){var r=Gs(e)?Mt:Gt,o=arguments.length<3;return r(e,di(t,4),n,o,mr)},qn.repeat=function(e,t,r){return t=(r?_i(e,t,r):t===n)?1:ga(t),Xr(Sa(e),t)},qn.replace=function(){var e=arguments,t=Sa(e[0]);return e.length<3?t:t.replace(e[1],e[2])},qn.result=function(e,t,r){var o=-1,i=(t=_o(t,e)).length;for(i||(i=1,e=n);++op)return[];var n=h,r=Sn(e,h);t=di(t),e-=h;for(var o=Jt(r,t);++n=s)return e;var l=r-fn(o);if(l<1)return o;var u=a?xo(a,0,l).join(""):e.slice(0,l);if(i===n)return u+o;if(a&&(l+=u.length-l),la(i)){if(e.slice(l).search(i)){var c,d=u;for(i.global||(i=ke(i.source,Sa(fe.exec(i))+"g")),i.lastIndex=0;c=i.exec(d);)var p=c.index;u=u.slice(0,p===n?l:p)}}else if(e.indexOf(po(i),l)!=l){var f=u.lastIndexOf(i);f>-1&&(u=u.slice(0,f))}return u+o},qn.unescape=function(e){return(e=Sa(e))&&K.test(e)?e.replace(V,vn):e},qn.uniqueId=function(e){var t=++Ne;return Sa(e)+t},qn.upperCase=Qa,qn.upperFirst=Za,qn.each=Ss,qn.eachRight=_s,qn.first=Ji,cl(qn,(xl={},_r(qn,(function(e,t){Me.call(qn.prototype,t)||(xl[t]=e)})),xl),{chain:!1}),qn.VERSION="4.17.21",Et(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){qn[e].placeholder=qn})),Et(["drop","take"],(function(e,t){Vn.prototype[e]=function(r){r=r===n?1:wn(ga(r),0);var o=this.__filtered__&&!t?new Vn(this):this.clone();return o.__filtered__?o.__takeCount__=Sn(r,o.__takeCount__):o.__views__.push({size:Sn(r,h),type:e+(o.__dir__<0?"Right":"")}),o},Vn.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),Et(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=1==n||3==n;Vn.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:di(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}})),Et(["head","last"],(function(e,t){var n="take"+(t?"Right":"");Vn.prototype[e]=function(){return this[n](1).value()[0]}})),Et(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");Vn.prototype[e]=function(){return this.__filtered__?new Vn(this):this[n](1)}})),Vn.prototype.compact=function(){return this.filter(sl)},Vn.prototype.find=function(e){return this.filter(e).head()},Vn.prototype.findLast=function(e){return this.reverse().find(e)},Vn.prototype.invokeMap=Qr((function(e,t){return"function"==typeof e?new Vn(this):this.map((function(n){return Ir(n,e,t)}))})),Vn.prototype.reject=function(e){return this.filter(Rs(di(e)))},Vn.prototype.slice=function(e,t){e=ga(e);var r=this;return r.__filtered__&&(e>0||t<0)?new Vn(r):(e<0?r=r.takeRight(-e):e&&(r=r.drop(e)),t!==n&&(r=(t=ga(t))<0?r.dropRight(-t):r.take(t-e)),r)},Vn.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Vn.prototype.toArray=function(){return this.take(h)},_r(Vn.prototype,(function(e,t){var r=/^(?:filter|find|map|reject)|While$/.test(t),o=/^(?:head|last)$/.test(t),i=qn[o?"take"+("last"==t?"Right":""):t],s=o||/^find/.test(t);i&&(qn.prototype[t]=function(){var t=this.__wrapped__,a=o?[1]:arguments,l=t instanceof Vn,u=a[0],c=l||Gs(t),d=function(e){var t=i.apply(qn,At([e],a));return o&&p?t[0]:t};c&&r&&"function"==typeof u&&1!=u.length&&(l=c=!1);var p=this.__chain__,f=!!this.__actions__.length,h=s&&!p,m=l&&!f;if(!s&&c){t=m?t:new Vn(this);var v=e.apply(t,a);return v.__actions__.push({func:vs,args:[d],thisArg:n}),new Un(v,p)}return h&&m?e.apply(this,a):(v=this.thru(d),h?o?v.value()[0]:v.value():v)})})),Et(["pop","push","shift","sort","splice","unshift"],(function(e){var t=je[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);qn.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var o=this.value();return t.apply(Gs(o)?o:[],e)}return this[n]((function(n){return t.apply(Gs(n)?n:[],e)}))}})),_r(Vn.prototype,(function(e,t){var n=qn[t];if(n){var r=n.name+"";Me.call(Ln,r)||(Ln[r]=[]),Ln[r].push({name:t,func:n})}})),Ln[Ho(n,2).name]=[{name:"wrapper",func:n}],Vn.prototype.clone=function(){var e=new Vn(this.__wrapped__);return e.__actions__=Io(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Io(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Io(this.__views__),e},Vn.prototype.reverse=function(){if(this.__filtered__){var e=new Vn(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Vn.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=Gs(e),r=t<0,o=n?e.length:0,i=function(e,t,n){var r=-1,o=n.length;for(;++r=this.__values__.length;return{done:e,value:e?n:this.__values__[this.__index__++]}},qn.prototype.plant=function(e){for(var t,r=this;r instanceof Wn;){var o=qi(r);o.__index__=0,o.__values__=n,t?i.__wrapped__=o:t=o;var i=o;r=r.__wrapped__}return i.__wrapped__=e,t},qn.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Vn){var t=e;return this.__actions__.length&&(t=new Vn(this)),(t=t.reverse()).__actions__.push({func:vs,args:[rs],thisArg:n}),new Un(t,this.__chain__)}return this.thru(rs)},qn.prototype.toJSON=qn.prototype.valueOf=qn.prototype.value=function(){return go(this.__wrapped__,this.__actions__)},qn.prototype.first=qn.prototype.head,et&&(qn.prototype[et]=function(){return this}),qn}();mt?((mt.exports=gn)._=gn,ht._=gn):ft._=gn}).call(jn)}));const Dn=class extends HTMLElement{constructor(){super(),this.__registerHost(),this.filterContent="",this.debouncedFilterTree=An.debounce(this.debouncedFilterTree,300)}componentWillLoad(){this.loadNavigationData().then((()=>{}))}async loadNavigationData(){this.isLoading=!0;try{const e=await fetch(`/registry/packages/navs/${this.packageName}.json`),t=await e.json();this.parsedNodes=t,this.currentlyRenderedNodes=this.parsedNodes}catch(e){return}this.isLoading=!1}filterTreeToMatchingContent(e,t,n,r){const o=this.filterTreeToMatchingRecursive(e,t,n,r);this.currentlyRenderedNodes=o}filterTreeToMatchingRecursive(e,t,n,r,o={},i=[""]){t.map((t=>{const s=i.join("")+t.name,a=i.join(""),l=n?n.name:"",u=!!o[s],c=!!n&&!!o[l],d=!!r&&!!o[a];if(!u){if(t.name.toLowerCase().includes(this.filterContent)){if(!c&&n){const t=Object.assign(Object.assign({},n),{children:[],isExpanded:!0,rootName:l});e.push(t),o[l]=!0}if(!d&&r){const t=Object.assign(Object.assign({},r),{children:[],isExpanded:!0,parentName:n.name,rootName:l});e.push(t),o[a]=!0}if(r){const n=Object.assign(Object.assign({},t),{children:[],parentName:r.name,isExpanded:!0,rootName:l});e.push(n),o[s]=!0}else if(n){const r=Object.assign(Object.assign({},t),{children:[],parentName:n.name,isExpanded:!0,rootName:l});e.push(r),o[s]=!0}else{const n=Object.assign(Object.assign({},t),{children:[],parentName:void 0,isExpanded:!0,rootName:l});e.push(n),o[s]=!0}}if(t.children){const r=n||t,s=n?t:null;this.filterTreeToMatchingRecursive(e,t.children,r,s,o,i.concat([t.name]))}}}));const s=e.filter((e=>void 0===e.parentName));return s.map((t=>{var n;t.children=e.filter((e=>e.parentName===t.name)),null===(n=t.children)||void 0===n||n.map((n=>{n.children=e.filter((e=>e.parentName===n.name&&e.rootName===t.name))}))})),[...s]}onChange(e){this.debouncedFilterTree(e)}onClearFilter(){this.filterContent="",this.currentlyRenderedNodes=this.parsedNodes}debouncedFilterTree(e){this.filterContent=e.target.value.trim().toLowerCase(),this.filterContent.length<2?this.currentlyRenderedNodes=this.parsedNodes:this.filterTreeToMatchingContent([],this.parsedNodes)}getFilterAndNavTree(){var e,t;return Xe("div",{class:"filter-and-nav-tree"},Xe("div",{class:"input-container"},Xe("input",{class:"navigation-filter-input",placeholder:"Filter",onInput:this.onChange.bind(this),value:this.filterContent}),this.filterContent&&Xe("div",{class:"clear-container"},Xe("button",{onClick:this.onClearFilter.bind(this),class:"clear-filter-button"},"X"))),1===(null===(e=this.filterContent)||void 0===e?void 0:e.length)&&Xe("div",{class:"filter-help-text"},"Provide at least two characters to filter."),(null===(t=this.currentlyRenderedNodes)||void 0===t?void 0:t.length)<1&&Xe("div",{class:"no-results"},"No results found. Try a different filter."),Xe("pulumi-api-doc-nav-tree",{class:"nav-tree",baseDirectory:this.baseDirectory,nodes:this.currentlyRenderedNodes}))}getLoadingState(){return Xe("div",{class:"loading"},Xe("i",{class:"loading-icon fas fa-spinner"}),Xe("span",{class:"loading-text"},"Loading..."))}render(){return Xe("section",{class:"api-doc-nav"},this.isLoading?this.getLoadingState():this.getFilterAndNavTree())}static get style(){return'.api-doc-nav{width:100%;max-width:375px}.api-doc-nav .filter-help-text{font-size:14px}.api-doc-nav .no-results{font-size:14px}.api-doc-nav .loading .loading-icon{margin-right:1rem}.api-doc-nav .navigation-header{font-family:var(--heading-font);font-weight:400;font-size:18px;color:#000;margin-top:0;margin-bottom:14px}.api-doc-nav .input-container{display:inline-block;position:relative;margin-left:12px}.api-doc-nav .input-container .clear-container{position:absolute;display:flex;align-items:center;margin-right:20px;top:0;right:0;height:100%}.api-doc-nav .input-container .clear-filter-button{display:flex;align-items:center;justify-content:center;height:18px;width:18px;font-size:xx-small;background:#dcdcdc;color:#808080;border-radius:50%;border:none;cursor:pointer;padding:0px}.api-doc-nav .input-container .navigation-filter-input{font-family:"Gilroy";font-size:16px;height:20px;width:90%;border-radius:4px;border:1px solid #000;padding:10px;margin-top:0;box-sizing:content-box}.api-doc-nav .input-container .navigation-filter-input:focus{outline-color:#4d5bd9}.api-doc-nav .nav-tree{width:100%;min-width:100%;max-width:100%}.api-doc-nav .nav-tree{display:block}.api-doc-nav .filter-and-nav-tree{margin-right:12px}'}},Mn=class extends HTMLElement{constructor(){super(),this.__registerHost(),this.depth=0}componentWillLoad(){this.isExpanded=!!this.node.isExpanded||this.isNodeInPathForCurrentlyVisiblePage(this.node.name)}onExpansionChange(e,t=!1){t&&(window.location.href=e),this.isExpanded=!this.isExpanded}handleLinkClick(e,t){e.stopPropagation(),window.location.href=t}componentShouldUpdate(e,t,n){if("isExpanded"===n)return!0!==t||!1!==e}getIcon(e){return Xe("div",{class:"symbol-container"},Xe("slot",{name:"before-content"},Xe("span",{class:`symbol ${e}`})))}isNodeInPathForCurrentlyVisiblePage(e){return window.location.pathname.includes(`/${e}/`)}shouldNodeBeSelected(e){return window.location.pathname.split("/").filter((e=>""!==e)).join("/")===e.split("/").filter((e=>""!==e)).join("/")}getChildNodes(e,t,n=1,r=this.href){const o=Xe("pulumi-tree-item",{slot:"item",selected:!1,expanded:!1,title:"dummy"});return!t&&(null==e?void 0:e.length)?o:null==e?void 0:e.map((e=>{const t="/"===e.link.charAt(e.link.length-1)?e.link:`${e.link}/`,o=`${r}${t}`,i=!!e.children&&0===e.children.length;return Xe("details",{open:this.isExpanded,"data-expandable":e.children&&e.children.length>0?"true":"false",class:"nav-tree-item nested",id:e.name,title:e.name,onClick:()=>this.onExpansionChange(o,!i)},Xe("summary",{class:"content-container "+(i?"":"is-link"),"data-selected":this.shouldNodeBeSelected(o)?"true":"false"},Xe("a",{class:`depth-${n}`,href:o,onClick:e=>this.handleLinkClick(e,o)},this.getIcon(e.type),Xe("span",{class:"link-container"},e.name))),this.getChildNodes(e.children,this.isExpanded,n+1,o))}))}render(){return Xe("details",{open:this.isExpanded,"data-expandable":this.node.children&&this.node.children.length>0?"true":"false",class:"nav-tree-item nested",id:this.node.name,title:this.node.name,onClick:()=>this.onExpansionChange(this.href,0===this.node.children.length)},Xe("summary",{class:"content-container","data-selected":this.shouldNodeBeSelected(this.href)?"true":"false"},Xe("a",{class:`depth-${this.depth}`,href:this.href,onClick:e=>this.handleLinkClick(e,this.href)},this.getIcon(this.node.type),Xe("span",{class:"link-container"},this.node.name))),this.getChildNodes(this.node.children,this.isExpanded))}},Nn=class extends HTMLElement{constructor(){super(),this.__registerHost()}getNodes(e=this.nodes){return null==e?void 0:e.map((e=>{const t="/"===e.link.charAt(e.link.length-1)?e.link:`${e.link}/`,n=`${this.baseDirectory}${t}`;return Xe("pulumi-api-doc-nav-node",{node:e,isExpanded:e.isExpanded,href:n})}))}render(){return Xe("div",null,this.getNodes())}static get style(){return'@charset "UTF-8";.symbol-container{height:100%;display:flex;align-items:center}.symbol{height:14px;width:14px;border-width:1px;border-style:solid;box-sizing:border-box;border-radius:50%;margin-right:6px}.symbol.module,.symbol.function,.symbol.resource{display:flex;align-items:center;justify-content:center;box-sizing:border-box}.symbol.module{border-color:#1d8673}.symbol.module:before{content:"M";color:#1d8673;font-size:9px;font-weight:700}.symbol.function{border-color:red}.symbol.function:before{content:"F";color:red;font-size:9px;font-weight:700}.symbol.resource{border-color:#3e49ae}.symbol.resource:before{content:"R";color:#3e49ae;font-size:9px;font-weight:700}.nav-tree-item a{height:100%;display:flex;align-items:center;text-decoration:none;color:#2b2b2c;max-width:24ch}.nav-tree-item a:hover{text-decoration:underline}.nav-tree-item summary{width:100%;padding-left:8px}@media (max-width: 1279px){.nav-tree-item summary.depth-0{max-width:12ch}.nav-tree-item summary.depth-1{max-width:10ch}.nav-tree-item summary.depth-2{max-width:8ch}}@media (min-width: 1280px){.nav-tree-item summary.depth-0{max-width:24ch}.nav-tree-item summary.depth-1{max-width:22ch}.nav-tree-item summary.depth-2{max-width:20ch}}.content-container{height:100%;width:100%;display:flex;align-items:center}.link-container{display:block;overflow:hidden;text-overflow:ellipsis}details{padding:0.25rem 0.5rem}details summary{list-style:none;padding:0.25rem 0rem;cursor:pointer}details summary:hover{background-color:#f9f9f9}details summary.is-link:hover{text-decoration:underline}details summary[data-selected=true]{background-color:#e0e0e0;font-weight:bold}details summary[data-selected=true] a:hover{text-decoration:none}details summary::-webkit-details-marker{display:none}details summary a{padding:0.25rem}details[data-expandable]>summary::before{font-family:"Font Awesome 5 Free";font-weight:900;content:"";display:inline-block;cursor:none;visibility:hidden}details[data-expandable=true]>summary::before{margin-right:0.5rem;cursor:pointer;visibility:visible}details[data-expandable=true][open]>summary::before{transform:rotate(90deg)}'}},Rn=class extends HTMLElement{constructor(){super(),this.__registerHost(),this.paused=!0,this.isLoading=!1,this.error=!1}componentDidLoad(){const e=this.getAudio();e&&(e.volume=1,e.muted=!1),e.addEventListener("pause",(()=>this.paused=!0)),e.addEventListener("play",(()=>this.paused=!1))}toggleMute(){if(this.isLoading)return;const e=this.getAudio();e.paused?(this.isLoading=!0,e.play().then((()=>{this.isLoading=!1})).catch((()=>{this.error=!0}))):e.pause()}getAudio(){return this.el.querySelector("audio")}renderError(){return Xe("div",{class:"audio-container"},Xe("div",{class:"error-callout"},"Music Cannot Be Played"))}renderAudio(){const e=this.paused?this.pausedText:this.playingText,t=this.isLoading?"fa-cog fa-spin":"fas fa-music";return Xe("div",{class:"audio-container",onClick:this.toggleMute.bind(this)},Xe("div",{class:"audio-button"},Xe("i",{class:`fas ${t}`}),e),Xe("audio",{preload:"none",loop:!0},Xe("source",{src:this.url,type:"audio/mpeg"})))}render(){return this.error?this.renderError():this.renderAudio()}get el(){return this}},Fn=(()=>{let e;return{getStore:()=>e,setStore:t=>{e=t},getState:()=>e&&e.getState(),mapDispatchToProps:(t,n)=>{Object.keys(n).forEach((r=>{const o=n[r];Object.defineProperty(t,r,{get:()=>(...t)=>e.dispatch(o(...t)),configurable:!0,enumerable:!0})}))},mapStateToProps:(t,n)=>{const r=(r,o)=>{const i=n(e.getState());Object.keys(i).forEach((e=>{const n=i[e];t[e]=n}))},o=e.subscribe((()=>r()));return r(),o}}})();var Bn;!function(e){e.SET_LANGUAGE="SET_LANGUAGE",e.SET_K8S_LANGUAGE="SET_K8S_LANGUAGE",e.SET_INPUT_KIND="SET_INPUT_KIND",e.SET_OS="SET_OS",e.SET_CLOUD="SET_CLOUD",e.SET_PERSONA="SET_PERSONA",e.SET_BACKEND="SET_BACKEND",e.DISMISS_BANNER="DISMISS_BANNER",e.GET_USER_INFO="GET_USER_INFO"}(Bn||(Bn={}));const zn=e=>(t,n)=>{t({type:Bn.DISMISS_BANNER,payload:{name:e,dismissedAt:Date.now()}})},qn=class extends HTMLElement{constructor(){super(),this.__registerHost(),this.dismissible=!0,this.visible=!1}onRendered(e){Fn.mapDispatchToProps(this,{dismissBanner:zn}),this.storeUnsubscribe=Fn.mapStateToProps(this,(e=>({visible:!!this.name&&!e.banners.dismissed.find((e=>e.name===this.name))})))}disconnectedCallback(){this.storeUnsubscribe&&this.storeUnsubscribe()}render(){return Xe("div",null,Xe("slot",null),Xe("div",{class:"dismiss",onClick:e=>this.dismiss(e),title:"Dismiss"},Xe("span",null,"×")))}dismiss(e){this.dismissBanner(this.name)}static get style(){return"pulumi-banner{display:block;position:relative}pulumi-banner .dismiss{cursor:pointer;display:none;position:absolute;top:50%;right:16px;transform:translateY(-50%)}pulumi-banner[dismissible] .dismiss{display:block}pulumi-banner[dismissed]{display:none}"}},Hn=class extends HTMLElement{constructor(){super(),this.__registerHost()}onModeChange(e){"local"===e&&this.storeUnsubscribe&&this.storeUnsubscribe()}disconnectedCallback(){this.storeUnsubscribe&&this.storeUnsubscribe()}onRendered(e){this.mode="global","global"===this.mode&&(this.storeUnsubscribe=Fn.mapStateToProps(this,(e=>{const{preferences:{language:t,k8sLanguage:n,os:r,cloud:o,persona:i,backend:s}}=e;switch(this.type){case"language":return{selection:t};case"k8s-language":return{selection:n};case"os":return{selection:r};case"cloud":return{selection:o};case"persona":return{selection:i};case"backend":return{selection:s}}})))}render(){const e=this.values?this.values.split(",").map((e=>e.trim())):[],t=this.selection&&(this.selection===this.value||e.includes(this.selection));return Xe("div",{class:t?"active":""},Xe("slot",null))}get el(){return this}static get watchers(){return{mode:["onModeChange"]}}static get style(){return"pulumi-choosable>*{display:none}pulumi-choosable>*.active{display:inherit}"}},Wn=e=>(t,n)=>t(e),Un=e=>Wn({key:e,type:Bn.SET_LANGUAGE}),Vn=e=>Wn({key:e,type:Bn.SET_K8S_LANGUAGE}),Gn=e=>Wn({key:e,type:Bn.SET_OS}),Kn=e=>Wn({key:e,type:Bn.SET_CLOUD}),Jn=e=>Wn({key:e,type:Bn.SET_PERSONA}),Yn=e=>Wn({key:e,type:Bn.SET_BACKEND}),Xn=class extends HTMLElement{constructor(){super(),this.__registerHost(),this.currentOptions=[],this.supportedBackEnds=[{key:"service",name:"Service",preview:!1},{key:"self-managed",name:"Self Managed",preview:!1}],this.supportedPersonas=[{key:"developer",name:"Developers",preview:!1},{key:"devops",name:"DevOps & Infra Teams",preview:!1},{key:"security",name:"Security Engineers",preview:!1},{key:"leader",name:"Engineering Leaders",preview:!1}],this.supportedLanguages=[{key:"typescript",name:"TypeScript",extension:"ts",preview:!1},{key:"javascript",name:"JavaScript",extension:"js",preview:!1},{key:"python",name:"Python",extension:"py",preview:!1},{key:"go",name:"Go",extension:"go",preview:!1},{key:"csharp",name:"C#",extension:"cs",preview:!1},{key:"fsharp",name:"F#",extension:"fs",preview:!1},{key:"visualbasic",name:"VB",extension:"vb",preview:!1},{key:"java",name:"Java",extension:"java",preview:!1},{key:"yaml",name:"YAML",extension:"yaml",preview:!1}],this.supportedk8sLanguages=[{key:"typescript",name:"TypeScript",preview:!1},{key:"typescript-kx",name:"TypeScript KX",preview:!1},{key:"yaml",name:"YAML",preview:!1}],this.supportedOSs=[{key:"macos",name:"macOS",preview:!1},{key:"windows",name:"Windows",preview:!1},{key:"linux",name:"Linux",preview:!1}],this.supportedClouds=[{key:"aws",name:"AWS",preview:!1},{key:"azure",name:"Azure",preview:!1},{key:"gcp",name:"Google Cloud",preview:!1},{key:"kubernetes",name:"Kubernetes",preview:!1},{key:"digitalocean",name:"DigitalOcean",preview:!1},{key:"docker",name:"Docker",preview:!1}]}componentWillLoad(){this.parseOptions()}disconnectedCallback(){this.storeUnsubscribe&&this.storeUnsubscribe()}componentDidRender(){this.applyChoice()}onRendered(e){this.mode="global",this.optionStyle="tabbed",this.parseOptions(),Fn.mapDispatchToProps(this,{setLanguage:Un,setK8sLanguage:Vn,setOS:Gn,setCloud:Kn,setPersona:Jn,setBackEnd:Yn}),this.storeUnsubscribe=Fn.mapStateToProps(this,(e=>{const{preferences:{language:t,k8sLanguage:n,os:r,cloud:o,persona:i,backend:s}}=e,a=e=>{if(!this.currentOptions.find((t=>t.key===e))){const t=this.currentOptions[0];e=t.key,this.choosables.length>0?(this.mode="local",this.choosables.forEach((e=>{e.setAttribute("mode","local")})),setTimeout((()=>this.storeUnsubscribe()))):setTimeout((()=>this.setChoice(this.type,t)))}return{selection:e}};switch(this.type){case"language":return a(t);case"k8s-language":return a(n);case"os":return a(r);case"cloud":return a(o);case"persona":return a(i);case"backend":return a(s);default:return{}}}))}render(){return console.log(this.currentOptions),Xe(Ze,{selection:this.selection},Xe("ul",null,this.currentOptions.map((e=>Xe("li",{class:this.selection===e.key?"active":""},Xe("a",{onClick:t=>this.makeChoice(t,this.type,e)},e.name," ",e.preview?Xe("span",null,"PREVIEW"):""))))),Xe("slot",null))}get choosables(){return this.el.querySelectorAll("pulumi-choosable")}parseOptions(){if(this.currentOptions=[],!this.type)throw new Error("Chooser attribute `type` is required.");if(!this.options)throw new Error("Chooser attribute `options` is required.");try{const e=this.options.split(",").map((e=>e.trim()));this.mapOptions(this.type,e)}catch(e){throw console.error(`Error parsing chooser options "${this.options}"`),e}}mapOptions(e,t){let n=[];switch(e){case"language":n=this.supportedLanguages;break;case"k8s-language":n=this.supportedk8sLanguages;break;case"os":n=this.supportedOSs;break;case"cloud":n=this.supportedClouds;break;case"persona":n=this.supportedPersonas;break;case"backend":n=this.supportedBackEnds}this.currentOptions=n.filter((e=>t.includes(e.key)))}makeChoice(e,t,n){this.setChoice(t,n);var r=e.target,o=r.getBoundingClientRect().top;window.requestAnimationFrame((()=>{const e=this.getDistanceFromDocumentTop(r);window.scroll(0,e-o)}))}getDistanceFromDocumentTop(e){let t=0;for(;e;)t+=e.offsetTop,e=e.offsetParent;return t}setChoice(e,t){const n=t.key;if(this.selection=n,"local"!==this.mode)switch(e){case"language":this.setLanguage(n);break;case"k8s-language":this.setK8sLanguage(n);break;case"os":this.setOS(n);break;case"cloud":this.setCloud(n);break;case"persona":this.setPersona(n);break;case"backend":this.setBackEnd(n)}}applyChoice(){this.selection&&this.choosables.forEach((e=>{e.setAttribute("selection",this.selection)}))}get el(){return this}static get style(){return"pulumi-chooser[option-style=none]>ul{display:none}pulumi-chooser>*{display:inherit}pulumi-chooser pulumi-choosable{display:inherit}"}},Qn=class extends HTMLElement{constructor(){super(),this.__registerHost(),this.defaultFormId=""}componentWillLoad(){this.parsedItems=JSON.parse(this.items).map((e=>({key:e.key,label:e.label?e.label:e.key.charAt(0).toUpperCase()+e.key.slice(1),hubspotFormId:e.hubspot_form_id})));const e=En("form");if(e){const t=this.parsedItems.find((t=>t.key.toLowerCase()===e.toLowerCase()));if(t)return void(this.defaultFormId=t.hubspotFormId)}}render(){return Xe("pulumi-multi-select-form",{items:this.parsedItems,selectClass:this.selectClass,labelClass:this.labelClass,labelText:"Why are you contacting us today?",defaultFormId:this.defaultFormId})}static get style(){return":host{display:block}"}};function Zn(e,t,n,r){return new(n||(n=Promise))((function(o,i){function s(e){try{l(r.next(e))}catch(e){i(e)}}function a(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}l((r=r.apply(e,t||[])).next())}))}function er(e,t){var n,r,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,r=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!((o=(o=s.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]-1||pr(document.body,e)||function(e){var t=document.createElement("div");t.setAttribute("style","-webkit-user-select: text !important"),t.textContent="temporary element",document.body.appendChild(t);var n=pr(t,e);return document.body.removeChild(t),n}(e)||function(e){var t=document.createElement("div");t.setAttribute("style","-webkit-user-select: text !important");var n=t;t.attachShadow&&(n=t.attachShadow({mode:"open"}));var r=document.createElement("span");r.innerText=e,n.appendChild(r),document.body.appendChild(t),fr(r);var o=document.execCommand("copy");return hr(),document.body.removeChild(t),o}(e["text/plain"])?[2,!0]:[2,!1]}))}))}function vr(e){return Zn(this,void 0,void 0,(function(){return er(this,(function(t){if(ar)return[2,ar(e)];if(!mr(function(e){var t={};return t["text/plain"]=e,t}(e)))throw new Error("writeText() failed");return[2]}))}))}const gr=class extends HTMLElement{constructor(){super(),this.__registerHost(),this.sourceFiles=[],this.theme="",this.converting=!1,this.convertible=!1,this.alertDismissed=!1,this.supportedLanguages=[{key:"typescript",name:"TypeScript",filename:"index.ts"},{key:"python",name:"Python",filename:"__main__.py"},{key:"go",name:"Go",filename:"main.go"},{key:"csharp",name:"C#",filename:"MyStack.cs"}]}componentDidLoad(){try{this.validateProps(),this.validateGlobals(),this.prepareEditors(),this.prepareSourceFiles()}catch(e){console.error(e.message)}}get inputEditorEl(){return this.el.querySelector("#editor-input")}get outputEditorEl(){return this.el.querySelector("#editor-output")}get inputEditorMode(){switch(this.from){case"tf":return"ruby";case"kube":case"cf":return"yaml";case"arm":return"javascript"}}get inputEditorValue(){return this.inputEditor.getValue()}get inputEditorDefaultFilename(){switch(this.from){case"tf":return"main.tf";case"kube":return"kube.yaml";case"arm":return"azuredeploy.json";case"cf":return"aws.yaml"}}get sourceLanguageName(){switch(this.from){case"tf":return"Terraform";case"kube":return"Kubernetes YAML";case"arm":return"ARM";case"cf":return"CloudFormation"}}get endpointPath(){switch(this.from){case"tf":return"convert";case"arm":return"convertARM";case"kube":return"convertKube";case"cf":return"convertCFN"}}get conversionTool(){switch(this.from){case"tf":return{name:"the Terraform converter",githubURL:"https://github.com/pulumi/pulumi"};case"kube":return{name:"the Kubernetes converter",githubURL:"https://github.com/pulumi/pulumi"};case"arm":return{name:"the ARM converter",githubURL:"https://github.com/pulumi/pulumi"};case"cf":return{name:"cf2pulumi",githubURL:"https://github.com/pulumi/pulumi-aws-native"};default:return{name:`${this.from}2pulumi`,githubURL:"https://github.com/pulumi/pulumi"}}}validateGlobals(){if([typeof CodeMirror,typeof JSZip,typeof saveAs].filter((e=>"undefined"===e)).length>0)throw new Error("The pulumi-convert component requires CodeMirror, JZSip, and FileSaver. Please ensure each of these scripts has been loaded into global before using it.")}validateProps(){const e=[];this.from&&["tf","kube","arm","cf"].includes(this.from)||e.push("A valid `from` attribute is required.");try{this.endpointURL=new URL(this.endpoint)}catch(t){e.push("A valid `endpoint` attribute is required.")}if(this.examples||console.warn("A list of examples was provided."),this.theme||console.warn("A CodeMirror theme was not specified. The Using `material-ocean`."),e.length)throw new Error(e.join("\n"))}prepareEditors(){this.selectedOutputLanguage=this.supportedLanguages[0];const e={lineNumbers:!0,theme:this.theme||""};this.inputEditor=CodeMirror.fromTextArea(this.inputEditorEl,Object.assign(Object.assign({},e),{indentUnit:["kube","cf"].includes(this.from)?2:4,mode:this.inputEditorMode})),this.outputEditor=CodeMirror.fromTextArea(this.outputEditorEl,Object.assign(Object.assign({},e),{readOnly:!0})),this.inputEditor.on("change",(()=>{this.convertible=""!==this.inputEditorValue.trim(),this.selectedSourceFile===this.customSourceFile&&(this.customSourceFile.code=this.inputEditorValue)})),this.inputEditor.on("keydown",((e,t)=>{!t.metaKey||"Enter"!==t.key&&"s"!==t.key||(t.preventDefault(),this.convert())}))}prepareSourceFiles(){if(this.sourceFiles=[],this.examples&&this.examples.length>0)try{this.sourceFiles.push(...JSON.parse(this.examples))}catch(e){console.error("Failed to load examples:",e)}this.customSourceFile={name:"Custom",description:`Convert your own ${this.sourceLanguageName} code.`,filename:this.inputEditorDefaultFilename,code:""},this.sourceFiles.push(this.customSourceFile),this.selectSourceFile(this.sourceFiles[0]),this.convert()}selectSourceFile(e){this.selectedSourceFile=e,this.inputEditor.setValue(e.code),this.inputEditor.clearHistory(),this.convert()}selectOutputLanguage(e){this.selectedOutputLanguage=e,this.convert()}setOutputResult(e){this.outputResult=e,this.outputEditor.setValue(e?e.code:"")}copyToClipboard(){vr(this.outputEditor.getValue())}downloadZip(){const e=new JSZip;e.file(this.outputResult.filename,this.outputResult.code),e.generateAsync({type:"blob"}).then((e=>{saveAs(e,`${this.from}2pulumi.zip`)}))}dismissAlert(){this.alertDismissed=!0}async convert(){var e;this.setOutputResult(null);const t=this.inputEditorValue,n=this.selectedOutputLanguage;if(t){this.converting=!0,this.alertDismissed=!1;try{const r=await fetch([this.endpointURL,this.endpointPath].join("/"),{method:"POST",mode:"cors",body:JSON.stringify({code:t,language:n.key})}),o=await r.json();if(o.error)this.setOutputResult({filename:"",code:"",diagnostics:o.diagnostics||"",status:{success:!1,message:o.error}});else if(o.files){let[t,r]=Object.entries(o.files)[0];t.match(/\w+\.\w+/)||(t=this.supportedLanguages.find((e=>e.key===n.key)).filename);const i=(null===(e=o.diagnostics)||void 0===e?void 0:e.replace(/^no diagnostics$/,""))||"";t&&r&&this.setOutputResult({filename:t,code:r,diagnostics:i,status:{success:!0,message:t}}),i&&(this.outputResult.diagnostics=i)}}catch(e){console.error(`Submission failed: ${e}`)}this.converting=!1}}get statusBarClasses(){const e=["status-bar"];return this.converting&&e.push("converting"),this.outputResult&&(this.outputResult.diagnostics?e.push("warn"):e.push(this.outputResult.status.success?"success":"error")),e.join(" ")}combineClasses(...e){return e.filter((e=>e&&""!==e)).join(" ")}trackEventLabel(e){return this.from&&this.selectedOutputLanguage?["convert",this.from,e,this.selectedOutputLanguage.key].join("-"):""}renderToolDescription(){let e=this.conversionTool.githubURL?Xe("a",{href:this.conversionTool.githubURL},this.conversionTool.name):this.conversionTool.name;switch(this.from){case"tf":e=Xe("code",null,"pulumi convert --from terraform");break;case"arm":e=Xe("code",null,"pulumi convert --from arm");break;case"kube":e=Xe("code",null,"pulumi convert --from kubernetes")}return Xe("p",null,"Your code will be converted with"," ",e,", an open-source command-line tool we built to make it as easy as possible for you to migrate your existing ",this.sourceLanguageName," projects to Pulumi. The resulting file can be copied or downloaded for use with ",Xe("a",{href:"https://pulumi.com/start"},"a new Pulumi project"),".")}renderWindowBar(){return Xe("div",{class:"window-bar"},Xe("div",{class:"window-bar-buttons"},Xe("div",{class:"window-bar-button"}),Xe("div",{class:"window-bar-button"}),Xe("div",{class:"window-bar-button"})))}renderTab(e,t,n,r,o){return Xe("li",{onClick:o.bind(this,e),"data-track":this.trackEventLabel("tab"),class:this.combineClasses("tab",e===t?"active":""),title:r},Xe("span",{class:"label"},n),Xe("span",{class:"indicator"}))}renderConvertButton(e){var t;const n=`Convert this ${this.sourceLanguageName} code to ${null===(t=this.selectedOutputLanguage)||void 0===t?void 0:t.name}`,r=Xe("button",{onClick:this.convert.bind(this),"data-track":this.trackEventLabel("button"),class:this.combineClasses("btn-convert",this.converting?"converting":""),title:n,disabled:!this.convertible||this.converting},Xe("span",{class:"label"},"Convert"),Xe("span",{class:"icon"}));return e?Xe("pulumi-tooltip",null,r,Xe("span",{slot:"content"},n)):r}renderDismissAlertButton(){return Xe("button",{class:"toggle",title:"Dismiss this message",onClick:this.dismissAlert.bind(this)},Xe("span",{class:"icon"}))}renderStatusBar(e){var t,n,r,o;switch(e){case"input":return Xe("div",{class:"status-bar"},Xe("span",{class:"message"},null===(t=this.selectedSourceFile)||void 0===t?void 0:t.filename,(null===(n=this.selectedSourceFile)||void 0===n?void 0:n.description)?` • ${this.selectedSourceFile.description}`:""));case"output":return Xe("div",{class:this.statusBarClasses},Xe("span",{class:"icon"}),Xe("span",{class:"message"},null===(o=null===(r=this.outputResult)||void 0===r?void 0:r.status)||void 0===o?void 0:o.message),Xe("div",{class:this.combineClasses("alert","alert-error",this.alertDismissed?"dismissed":void 0)},this.renderDismissAlertButton(),Xe("p",null,Xe("strong",null,"Sorry, we were unable to convert your code.")),Xe("p",null,"There could be a problem with the code you submitted, or it might use a feature ",this.conversionTool.name," doesn't support. Join us in"," ",Xe("a",{href:"https://slack.pulumi.com/"},"Community Slack")," for help.")),Xe("div",{class:this.combineClasses("alert","alert-warn",this.alertDismissed?"dismissed":void 0)},this.renderDismissAlertButton(),Xe("p",null,Xe("strong",null,"Sorry, we were unable to convert your code completely.")),Xe("p",null,"The code was valid, but ",this.conversionTool.name," was unable to convert it completely. There could be a problem with the code you submitted, or it might use a feature ",this.conversionTool.name," doesn't support. Join us in ",Xe("a",{href:"https://slack.pulumi.com/"},"Community Slack")," for help.")));default:return Xe("div",{class:"status-bar"},Xe("span",{class:"message"}," "))}}renderDiagnostics(){var e,t;if(null===(e=this.outputResult)||void 0===e?void 0:e.diagnostics)return console.log("Conversion completed with errors. Diagnostics:"),console.log(null===(t=this.outputResult)||void 0===t?void 0:t.diagnostics),Xe("div",{class:"diagnostics"},Xe("p",null,Xe("strong",null,"Diagnostics:")),Xe("p",{class:"details"},this.outputResult.diagnostics))}render(){return Xe("div",null,Xe("div",{id:"editors"},Xe("div",{class:"editor editor-input"},Xe("div",{class:"editor-heading"},Xe("h3",null,Xe("span",{class:"editor-step"},"1"),"Start with some ",this.sourceLanguageName,"."),Xe("p",null,"We've included a few examples for reference — feel free to edit them as you like, or replace them with your own code. (And don't worry, we send your code over SSL and don't store anything on our servers.) When you're ready to transform your ",this.sourceLanguageName," code to Pulumi, select ",Xe("strong",null,"Convert"),".")),Xe("div",{class:"editor-container"},this.renderWindowBar(),Xe("ul",{class:"tabs"},this.sourceFiles.map((e=>this.renderTab(e,this.selectedSourceFile,e.name,e.description,this.selectSourceFile))),Xe("li",{class:"actions"},this.renderConvertButton(!0))),Xe("textarea",{id:"editor-input"}),this.renderStatusBar("input"))),Xe("div",{class:this.combineClasses("editor","editor-output",this.converting?"converting":"")},Xe("div",{class:"editor-heading"},Xe("h3",null,Xe("span",{class:"editor-step"},"2"),"Turn it into your language of choice."),this.renderToolDescription(),Xe("div",null,this.renderConvertButton(!1))),Xe("div",{class:"editor-container"},this.renderWindowBar(),Xe("ul",{class:"tabs"},this.supportedLanguages.map((e=>this.renderTab(e,this.selectedOutputLanguage,e.name,e.name,this.selectOutputLanguage))),Xe("li",{class:"actions"},Xe("pulumi-tooltip",null,Xe("button",{onClick:this.copyToClipboard.bind(this),"data-track":this.trackEventLabel("copy"),class:"btn-copy"},Xe("i",null)),Xe("span",{slot:"content"},"Copy to clipboard")),Xe("pulumi-tooltip",null,Xe("button",{onClick:this.downloadZip.bind(this),"data-track":this.trackEventLabel("download"),class:"btn-download"},Xe("i",null)),Xe("span",{slot:"content"},"Download as .zip")))),Xe("div",{class:"editor-spinner"}),Xe("textarea",{id:"editor-output"}),this.renderStatusBar("output")),this.renderDiagnostics())))}get el(){return this}static get style(){return"pulumi-convert{display:block}pulumi-convert textarea{opacity:0}"}},yr=class extends HTMLElement{constructor(){super(),this.__registerHost(),this.textClass="",this.containerClass="",this.valueLabelClass="",this.countdownOverText=""}componentWillLoad(){const e=new Date(this.dateString).getTime();this.generateCountdownData(e),setInterval((()=>this.generateCountdownData(e)),1e3)}generateCountdownData(e){const t=e-Date.now();this.countdownData={remainingTimeInMS:t,days:Math.floor(t/864e5),hours:Math.floor(t%864e5/36e5),minutes:Math.floor(t%36e5/6e4),seconds:Math.floor(t%6e4/1e3)}}renderValueLabel(e){return Xe("span",{class:this.valueLabelClass},e)}renderCountdownPart(e,t){return Xe("p",{class:this.textClass},e,this.renderValueLabel(t))}renderCountdown(){const{days:e,hours:t,minutes:n,seconds:r,remainingTimeInMS:o}=this.countdownData;return Xe("div",{class:this.containerClass},o>0?[this.renderCountdownPart(e,"Days"),this.renderCountdownPart(t,"Hours"),this.renderCountdownPart(n,"Minutes"),this.renderCountdownPart(r,"Seconds")]:Xe("p",{class:this.textClass},this.countdownOverText))}render(){return Xe(Ze,null,this.countdownData&&this.renderCountdown())}static get style(){return":host{display:block}"}},br=class extends HTMLElement{constructor(){super(),this.__registerHost(),this.containerClass="",this.valueLabelClass=""}componentWillLoad(){const e=new Date(this.dateString).getTime();this.generateCountdownData(e),setInterval((()=>this.generateCountdownData(e)),1e3)}generateCountdownData(e){const t=e-Date.now(),n=Math.floor(t/6048e5),r=Math.floor(t%6048e5/864e5),o=Math.floor(t%864e5/36e5),i=Math.floor(t%36e5/6e4),s=Math.floor(t%6e4/1e3),a=n/52*100,l=r/7*100,u=o/24*100,c=i/60*100,d=s/60*100;this.countdownData={remainingTimeInMS:t,weeks:n,days:r,hours:o,minutes:i,seconds:s,weeksPercent:a,daysPercent:l,hoursPercent:u,minutesPercent:c,secondsPercent:d}}renderValueLabel(e){return Xe("span",{class:this.valueLabelClass},e)}renderNumberCircle(e,t){return Xe("div",{class:"timer-wrapper"},Xe("div",{class:"circle",style:{"--p":`${t}`}},e))}renderCountdownPart(e,t,n){return Xe("div",{class:"mx-4 text-center"},this.renderNumberCircle(e,n),this.renderValueLabel(t))}renderCountdown(){const{weeks:e,days:t,hours:n,minutes:r,seconds:o,weeksPercent:i,daysPercent:s,hoursPercent:a,minutesPercent:l,secondsPercent:u}=this.countdownData;return Xe("div",{class:this.containerClass},[this.renderCountdownPart(e,"Weeks",i),this.renderCountdownPart(t,"Days",s),this.renderCountdownPart(n,"Hours",a),this.renderCountdownPart(r,"Minutes",l),this.renderCountdownPart(o,"Seconds",u)])}render(){return Xe(Ze,null,this.countdownData&&this.renderCountdown())}static get style(){return".timer-wrapper{height:75px;width:75px;display:flex;align-items:center;justify-content:center}.circle{border-radius:50%;border:5px solid transparent;position:relative;width:100%;height:100%;background:linear-gradient(#fff, #fff) content-box no-repeat, conic-gradient(#805ac3 calc(var(--p)*1%), 0, #ededed 100%) border-box;display:flex;justify-content:center;align-items:center}"}},wr=class extends HTMLElement{constructor(){super(),this.__registerHost(),Jt(this)}componentWillLoad(){const e=new Date(this.date),t=this.timeonly?{timeZoneName:"short",hour:"numeric",minute:"2-digit"}:{timeZoneName:"long",weekday:"short",year:"numeric",month:"long",day:"numeric",hour:"numeric",minute:"2-digit"};this.date=e.toLocaleString(void 0,t)}render(){return Xe("time",{class:this.class||""},Xe("span",null,this.date))}static get style(){return":host{display:block}"}},Sr=class extends HTMLElement{constructor(){super(),this.__registerHost()}addLogo(e){return Object.assign(Object.assign({},e),{logo:function(){switch(e.source){case"twitter":return Xe("img",{class:"w-6",src:"/logos/tech/twitter.svg"});case"reddit":return Xe("img",{class:"w-6",src:"/logos/tech/reddit.svg"});case"email":return Xe("i",{class:"fas fa-envelope text-gray-500 text-xl"});case"blog":return Xe("i",{class:"fas fa-blog text-gray-500 text-xl"});case"slack":return Xe("img",{class:"w-6",src:"/logos/tech/slack.svg"});case"linkedin":return Xe("img",{class:"w-6",src:"/logos/tech/linkedin.svg"});default:return Xe("a",null,e.source)}}()})}enableLink(e){return!["slack","email"].includes(e)}render(){let e=JSON.parse(this.quotes).sort(((e,t)=>e.featured&&t.featured?0:e.featured&&!t.featured?-1:!e.featured&&t.featured?1:void 0)).map(this.addLogo).reduce(((e,t,n)=>(n%2?e[1].push(t):e[0].push(t),e)),[[],[]]);return Xe("div",{class:"lg:flex flex-row block"},e.map((e=>Xe("div",{class:"lg:w-6/12 w-12/12 mx-8"},e.map((e=>Xe("div",{class:"quote-card my-8 p-2 rounded-lg max-w-80"},Xe("a",{class:"flex flex-col",href:this.enableLink(e.source)?e.link:void 0,target:"_blank",rel:"noopener noreferrer"},Xe("div",{class:"w-full flex-grow text-justify p-3 text-gray-700"},'"',e.message,'"'),Xe("div",{class:"flex flex-row"},Xe("div",{class:"p-3 text-gray-500"},e.author),Xe("div",{class:"flex-grow"}),Xe("div",{class:"p-3"},e.logo))))))))))}static get style(){return"pulumi-developer-quotes .quote-card{box-shadow:0 6px 36px rgba(0, 0, 0, 0.1)}pulumi-developer-quotes .quote-card:hover{box-shadow:10px 15px 60px rgba(0, 0, 0, 0.2)}"}},_r=class extends HTMLElement{constructor(){super(),this.__registerHost()}render(){return Xe("div",null,Xe("slot",null))}static get style(){return""}},Or=class extends HTMLElement{constructor(){super(),this.__registerHost()}componentWillRender(){const e=Array.from(this.el.querySelectorAll("pulumi-examples h3"));e.forEach((e=>{const t=document.createElement("span");e.prepend(t),e.addEventListener("click",(t=>{t.target.classList.contains("anchorjs-link")||this.toggle(e)}))})),e&&e.length>0&&this.toggle(e[0])}toggle(e){e.classList.toggle("expanded");let t=e.nextElementSibling;for(;t&&"DIV"===t.nodeName;)t.classList.toggle("expanded"),t=t.nextElementSibling}render(){return Xe("div",null,Xe("slot",null))}get el(){return this}static get style(){return""}},xr=class extends HTMLElement{constructor(){super(),this.__registerHost(),Jt(this),this.filterSelect=$t(this,"filterSelect",7),this.filters=[]}reset(){return this.options.forEach((e=>e.selected=!1)),this.groups.forEach((e=>e.close())),this.filterSelect.emit([]),Promise.resolve(null)}select(e){return this.options.forEach((t=>{t.value===e.value&&t.select()})),Promise.resolve()}deselect(e){return this.options.forEach((t=>{t.value===e.value&&t.deselect()})),Promise.resolve()}onOptionChange(e){e.stopPropagation(),this.filters=this.options.filter((e=>e.selected)).map((e=>({group:e.closest("pulumi-filter-select-option-group").name,value:e.value,label:e.label}))),this.filterSelect.emit(this.filters)}get groups(){return Array.from(this.el.querySelectorAll("pulumi-filter-select-option-group"))}get options(){return Array.from(this.el.querySelectorAll("pulumi-filter-select-option"))}render(){return Xe("div",null,Xe("slot",null))}get el(){return this}static get style(){return"div {\n display: flex;\n }"}},$r=class extends HTMLElement{constructor(){super(),this.__registerHost(),Jt(this),this.optionChange=$t(this,"optionChange",7)}select(){return this.selected=!0,this.emit(),Promise.resolve()}deselect(){return this.selected=!1,this.emit(),Promise.resolve()}onChange(e){this.selected=e.target.checked,this.emit()}emit(){this.optionChange.emit({option:{value:this.value,selected:this.selected,label:this.label}})}render(){return Xe("div",null,Xe("label",null,Xe("input",{type:"checkbox",value:this.value,onChange:this.onChange.bind(this),checked:this.selected,class:""+(this.selected?"selected":"")}),Xe("slot",null)))}get el(){return this}static get style(){return"label {\n white-space: nowrap;\n }\n\n input {\n margin-right: 0.5em;\n }"}},Cr=class extends HTMLElement{constructor(){super(),this.__registerHost(),Jt(this)}onToggle(){this.expanded=!this.expanded}onDocumentClick(e){!this.el.contains(e.target)&&this.expanded&&this.close()}close(){return this.expanded=!1,Promise.resolve(null)}render(){return Xe("div",null,Xe("div",{class:"button",role:"button",onClick:this.onToggle.bind(this)},Xe("span",{class:"toggle",part:"toggle"},Xe("slot",{name:"toggle"}))),Xe("div",{class:"menu"},Xe("div",null,Xe("slot",null))))}get el(){return this}static get style(){return'.menu {\n position: relative;\n transition: all 100ms;\n opacity: 0;\n top: -2px;\n pointer-events: none;\n z-index: 10;\n }\n\n .menu > div {\n position: absolute;\n }\n\n .button {\n cursor: pointer;\n }\n\n .button .toggle {\n margin-right: 0.5em;\n }\n\n .toggle {\n display: flex;\n }\n\n .toggle slot {\n position: relative;\n display: block;\n width: 100%;\n }\n\n :host([expanded]) .menu {\n opacity: 1;\n top: 0;\n pointer-events: auto;\n }\n\n .toggle slot::after {\n position: absolute;\n right: 0.5em;\n top: 50%;\n transform: translateY(-50%);\n content: "▾";\n }\n\n :host([expanded]) .toggle slot::after {\n transform: rotate(180deg) translateY(50%);\n }'}},Er=class extends HTMLElement{constructor(){super(),this.__registerHost(),this.departments=[]}componentWillLoad(){this.fetchJobs()}async fetchJobs(){this.loading=!0;try{const e=await fetch("https://boards-api.greenhouse.io/v1/boards/pulumicorporation/departments"),t=await e.json();t&&t.departments&&(this.departments=t.departments.filter((e=>e.jobs.length>0)))}catch(e){console.error(e)}this.loading=!1}renderLoadingSpinner(){return Xe("div",{class:"loading-spinner"})}renderJobsList(){return this.departments.length>0?Xe("ul",{class:"departments"},this.departments.map((e=>Xe("li",null,Xe("h4",null,e.name),Xe("ul",{class:"jobs"},e.jobs.map((e=>Xe("li",null,Xe("a",{class:"job-title",href:e.absolute_url,target:"_blank",rel:"noreferrer noopener"},e.title),Xe("div",{class:"job-location"},e.location.name))))))))):Xe("div",null,Xe("p",null,"There are no open positions at this time."))}render(){return this.loading?this.renderLoadingSpinner():this.renderJobsList()}},kr=class extends HTMLElement{constructor(){super(),this.__registerHost(),this.isLoading=!0,this.didLoad=!1}componentWillLoad(){if(!this.formId)throw new Error("The required attribute `form-id` was not provided.");this.hubspotFormTargetId=`hubspotForm_${this.formId}`}componentDidLoad(){const e=window.hbspt;e?this.createForm(e):this.loadHubSpotFormsScript(),this.messageHandler=this.onMessage.bind(this),window.addEventListener("message",this.messageHandler)}disconnectedCallback(){window.removeEventListener("message",this.messageHandler)}onMessage(e){var t;if("hsFormCallback"!==(null===(t=e.data)||void 0===t?void 0:t.type))return;const n=e.data.eventName,r=this.getUTMCookieData();if("onFormReady"===n){this.isLoading=!1,this.didLoad=!0;this.el.querySelectorAll('input[type="hidden"]').forEach((e=>{const t=e.closest("fieldset");t&&(t.style.display="none")}));const e=this.el.querySelector('input[name="last_utm_campaign"]');e&&(e.value=r.campaign);const t=this.el.querySelector('input[name="last_utm_source"]');t&&(t.value=r.source);const n=this.el.querySelector('input[name="last_utm_medium"]');n&&(n.value=r.medium),this.setInternalAdId()}if("onFormSubmit"===n){const e=this.el.querySelector('input[name="email"]');this.notifySegment(e.value,r)}"onFormDefinitionFetchError"===n&&(this.isLoading=!1,this.didLoad=!1)}notifySegment(e,t){const n=window.analytics;if(n&&n.track&&"function"==typeof n.track){const r={formId:this.formId,email:e,utmCampaign:t.campaign,utmSource:t.source,utmMedium:t.medium};n.track("form-submission",r)}}setInternalAdId(){const e=En("iaid");if(e){const t=this.el.querySelector('input[name="last_internal_ad_conversion"]');t&&(t.value=e)}}getUTMCookieData(){const e=kn(),t=(e.__utmzz||"").split("|").reduce(((e,t)=>{const n=t.split("=");return e[n[0]]=n[1],e}),{});return{campaign:t.utmccn||"(not set)",source:t.utmcsr||"(direct)",medium:t.utmcmd||"(none)"}}loadHubSpotFormsScript(){const e=document.createElement("script");e.setAttribute("src","//js.hsforms.net/forms/v2.js"),e.onload=()=>{const e=window.hbspt;e?this.createForm(e):(this.isLoading=!1,this.didLoad=!1)},e.onerror=()=>{this.isLoading=!1,this.didLoad=!1},document.body.appendChild(e)}createForm(e){e.forms.create({portalId:"4429525",formId:this.formId,css:"",cssClass:this.class,goToWebinarWebinarKey:this.goToWebinarKey,target:`#${this.hubspotFormTargetId}`,sfdcCampaignId:this.salesforceCampaignId})}renderIsLoadingForm(){return Xe("p",null,Xe("i",{class:"fa fa-spinner fa-spin mr-2"}))}renderFailedToLoadForm(){return Xe("p",null,"There was a problem loading this form. Please try refreshing your browser, and if you continue to see this message, let us know at"," ",Xe("a",{href:"mailto:support@pulumi.com"},"support@pulumi.com"),".")}render(){return Xe("div",{id:this.hubspotFormTargetId},this.didLoad||this.isLoading?this.renderIsLoadingForm():this.renderFailedToLoadForm())}get el(){return this}static get style(){return":host{display:block}"}},Tr=class extends HTMLElement{constructor(){super(),this.__registerHost(),this.defaultTooltipContent="Copy command"}componentWillLoad(){this.tooltipContent=this.defaultTooltipContent}componentDidLoad(){this.os||(this.os=this.detectOS())}detectOS(){const e=navigator.appVersion;return-1!==e.indexOf("Win")?"windows":-1!==e.indexOf("Mac")?"macos":"linux"}get installCommand(){return{macos:"brew install pulumi",windows:"choco install pulumi",linux:"curl -fsSL https://get.pulumi.com | sh"}[this.os]}copyToClipboard(){vr(this.installCommand.toString()).then((()=>{this.tooltipContent="Copied!",setTimeout((()=>this.tooltipContent=this.defaultTooltipContent),3e3)}))}render(){return Xe("div",null,Xe("div",{class:"command-text"},Xe("p",null,Xe("span",null,this.installCommand))),Xe("div",{class:"copy-button"},Xe("pulumi-tooltip",null,Xe("button",{onClick:this.copyToClipboard.bind(this)},Xe("i",{class:"far fa-copy"})),Xe("span",{slot:"content"},this.tooltipContent))))}get el(){return this}static get style(){return":host{display:block}"}},Pr=class extends HTMLElement{constructor(){super(),this.__registerHost(),this.items=[],this.defaultFormId="",this.formSubmitted=!1}componentWillLoad(){""!==this.defaultFormId&&(this.selectedItem=this.items.find((e=>e.hubspotFormId===this.defaultFormId)),this.selectedItem)||(this.selectedItem=this.items[0])}componentDidLoad(){this.windowEventHandler=this.handleWindowMessage.bind(this),window.addEventListener("message",this.windowEventHandler)}disconnectedCallback(){window.removeEventListener("message",this.windowEventHandler)}handleWindowMessage(e){if("hsFormCallback"===e.data.type&&"onFormReady"===e.data.eventName){this.el.querySelector("form.hs-form").addEventListener("submit",this.handleFormSubmit.bind(this))}}handleFormSubmit(){this.formSubmitted=!0}handleSelectChange(e){this.selectedItem=this.items.find((t=>t.hubspotFormId===e))}render(){var e;const t=null===(e=this.selectedItem)||void 0===e?void 0:e.hubspotFormId;return Xe("div",null,this.formSubmitted?null:Xe("span",null,Xe("span",{class:this.labelClass||""},this.labelText),Xe("select",{class:this.selectClass||"",onInput:e=>this.handleSelectChange(e.target.value)},this.items.map((e=>{const n=e.hubspotFormId===t;return Xe("option",{value:e.hubspotFormId,selected:n},e.label?e.label:e.key)})))),Xe("pulumi-hubspot-form",{key:t,"form-id":t}))}get el(){return this}static get style(){return":host{display:block}"}},jr=class extends HTMLElement{constructor(){super(),this.__registerHost(),this.duration="month",this.resourceCount=500,this.utilization=100,this.deploymentsExpanded=!1,this.deploymentMinutes=0}updateDuration(e){this.duration=e}getCostPerDeploymentMinute(){return.01}getFreeDeploymentMinutes(){return"month"===this.duration?3e3:100}getEstimatedCredits(){return"month"===this.duration?this.resourceCount*(this.utilization/100*24)*30:this.resourceCount*(this.utilization/100*24)}getEstimatedDeploymentMinutes(){return"month"===this.duration?30*this.deploymentMinutes:this.deploymentMinutes}updateDeploymentsExpanded(){this.deploymentsExpanded=!this.deploymentsExpanded}getFreeCredits(){return"month"===this.duration?15e4:5e3}getCostPerCredit(){return 5e-4}getTotal(){if(this.deploymentsExpanded){const e=(this.getEstimatedDeploymentMinutes()-this.getFreeDeploymentMinutes())*this.getCostPerDeploymentMinute(),t=(this.getEstimatedCredits()-this.getFreeCredits())*this.getCostPerCredit()+(e>0?e:0);return t>0?t:0}{const e=(this.getEstimatedCredits()-this.getFreeCredits())*this.getCostPerCredit();return e>0?e:0}}isTotalOverMax(){return this.getTotal()>1670&&"month"===this.duration||this.getTotal()>55&&"day"===this.duration}showFormattedTotal(){return`$${this.formatNumber(this.getTotal())} / ${"day"===this.duration?"day":"mo"}`}updateResourceCount(e){const t=e.target.value.trim();this.resourceCount=""===t?0:parseInt(t)}updateUtilization(e){const t=e.target.value.trim();this.utilization=""===t?1:parseInt(t)}updateDeploymentMinutes(e){const t=e.target.value.trim();this.deploymentMinutes=""===t?0:parseInt(t)}formatNumber(e){return(new Intl.NumberFormat).format(Math.round(e))}render(){return Xe("div",{class:"calculator"},Xe("h3",null,"Cost estimator"),Xe("div",{class:"edition"},"Team Edition"),Xe("div",{class:"content"},Xe("div",{class:"inputs"},Xe("div",{class:"field"},Xe("div",{class:"title"},"Number of resources"),Xe("div",{class:"details"},Xe("div",{class:"description"},"All cloud resources cost the same amount in Pulumi Cloud. Look at your cloud account and enter here the number of resources."),Xe("div",{class:"input"},Xe("input",{class:"resource-count",type:"number",min:"0",onInput:e=>this.updateResourceCount(e),value:this.resourceCount})))),Xe("div",{class:"field"},Xe("div",{class:"title"},"Utilization"),Xe("div",{class:"details"},Xe("div",{class:"description"},"If you have resources that are being spun up and down throughout the day, estimate the percentage of the time the total resource count will be reached."),Xe("div",{class:"utilization"},Xe("div",{class:"input"},Xe("input",{type:"number",min:"1",max:"100",onInput:e=>this.updateUtilization(e),value:this.utilization}),Xe("span",{class:"percent"},"%")),Xe("input",{type:"range",min:"1",max:"100",step:"1",onInput:e=>this.updateUtilization(e),value:this.utilization,class:"range purple"})))),Xe("div",{class:this.deploymentsExpanded?"deployments":"deployments collapsed"},Xe("div",{class:"default"},Xe("i",{class:"fas fa-rocket"}),Xe("div",{class:"details"},Xe("div",{class:"title"},"Add on Pulumi Deployments"),Xe("div",{class:"subtitle"},"Run deployments remotely with a button, Git push, or REST API")),Xe("button",{onClick:()=>this.updateDeploymentsExpanded()},Xe("i",{class:this.deploymentsExpanded?"fas fa-minus":"fas fa-plus"}))),Xe("div",{class:this.deploymentsExpanded?"field visible":"field"},Xe("div",{class:"title"},"Deployment minutes per day"),Xe("div",{class:"details"},Xe("div",{class:"description"},"Deployment minutes refer to the duration of time elapsed when running deployments on Pulumi’s compute. Use your current update times and add buffer for any workflows that need to happen."),Xe("div",{class:"input"},Xe("input",{type:"number",min:"0",onInput:e=>this.updateDeploymentMinutes(e),value:this.deploymentMinutes})))))),Xe("div",{class:"outputs"},Xe("div",{class:"gradient"}),Xe("div",{class:"contents"},Xe("div",{class:"duration"},Xe("button",{class:"day"===this.duration?"active":null,onClick:()=>this.updateDuration("day")},"Per day"),Xe("button",{class:"month"===this.duration?"active":null,onClick:()=>this.updateDuration("month")},"Per month")),Xe("div",{class:"items"},Xe("div",{class:"item"},Xe("span",null,"Estimated credits per ",this.duration),Xe("span",null,this.formatNumber(this.getEstimatedCredits()))),Xe("div",{class:"item"},Xe("span",null,"Free credits included"),Xe("span",null,this.formatNumber(this.getFreeCredits()))),Xe("div",{class:"item"},Xe("span",null,"Cost per credit"),Xe("span",null,"$",this.getCostPerCredit())),Xe("div",{class:this.deploymentsExpanded?"deployment-total visible":"deployment-total"},Xe("div",{class:"subtitle"},"Deployments"),Xe("div",{class:"item"},Xe("span",null,"Estimated deployment minutes per ",this.duration),Xe("span",null,this.formatNumber(this.getEstimatedDeploymentMinutes()))),Xe("div",{class:"item"},Xe("span",null,"Deployment minutes included"),Xe("span",null,this.formatNumber(this.getFreeDeploymentMinutes()))),Xe("div",{class:"item"},Xe("span",null,"Cost per deployment minute"),Xe("span",null,"$",this.getCostPerDeploymentMinute())))),Xe("div",{class:"divider"}),Xe("div",{class:this.isTotalOverMax()?"total over-max":"total"},Xe("span",{class:"contact"},Xe("a",{href:"/contact/?form=sales"},"Contact sales"),"for bulk discounts"),Xe("span",{class:this.isTotalOverMax()?"blurred":""},this.showFormattedTotal()))))))}static get style(){return'.calculator{margin-right:36px;margin-left:36px}.calculator h3{text-align:center;color:#000;font-family:"Gilroy";font-size:48px;font-weight:500}.calculator .edition{text-align:center;font-family:"Gilroy";font-size:28px;margin-bottom:36px}.calculator .content{display:flex;flex-direction:row;gap:60px}.calculator .inputs{display:flex;flex-direction:column;flex-grow:1}.calculator .field{margin-bottom:36px}.calculator .field .title{color:#131314;font-family:"Gilroy";font-size:24px;font-weight:500}.calculator .field .details{display:flex;flex-direction:row;justify-content:space-between}.calculator .field .details .description{width:400px;font-family:"Inter";font-size:16px;font-style:normal;font-weight:400;color:#2f3032}.calculator .field .details .utilization{margin-top:0px}.calculator .field .details .input{width:140px;padding:8px 12px;border-radius:4px;border:1px solid #bebfc9;height:48px}.calculator .field .details .input input{all:unset;width:80%}.calculator .field .details .input .percent{color:lightgray}.calculator .outputs{width:50%;max-width:530px;border-radius:12px;background:#fff;box-shadow:0px 6px 36px 0px rgba(0, 0, 0, 0.14)}.calculator .outputs .contents{display:flex;padding:36px;flex-direction:column;align-items:flex-start;gap:36px}.calculator .outputs .gradient{border-radius:12px 12px 0px 0px;height:8px;background:linear-gradient(90deg, #f7bf2a 0%, #f26e7e 18.23%, #be5188 38.02%, #8a3391 53.65%, #805ac3 74.48%, #7682f4 100%)}.calculator .outputs .duration{display:flex;align-self:center}.calculator .outputs .duration button{display:flex;padding:8px 12px;align-items:flex-start;color:#8e8f97;font-family:Inter;font-size:14px;font-style:normal;font-weight:500;border:1px solid #8e8f97}.calculator .outputs .duration button:first-of-type{border-radius:4px 0px 0px 4px}.calculator .outputs .duration button:last-of-type{border-radius:0px 4px 4px 0px}.calculator .outputs .duration button.active{color:#131314;background-color:#f2eff9;border:1px solid #805ac3}.calculator .outputs .items,.calculator .outputs .deployment-total{display:flex;flex-direction:column;gap:12px;color:#2f3032;font-family:"Inter";font-size:16px;font-weight:400;width:100%}.calculator .outputs .items .item,.calculator .outputs .deployment-total .item{flex-grow:1;display:flex;gap:36px;justify-content:space-between}.calculator .outputs .divider{width:100%;border-bottom:1px solid #bebfc9}.calculator .outputs .deployment-total{display:none}.calculator .outputs .deployment-total.visible{display:flex}.calculator .outputs .deployment-total .subtitle{font-weight:600}.calculator .outputs .deployment-total .item{margin-left:16px}.calculator .outputs .total{display:flex;width:100%;color:#805ac3;font-family:"Inter";font-size:30px;font-style:normal;font-weight:700;justify-content:end;gap:4px}.calculator .outputs .total .contact{display:none}.calculator .outputs .total.over-max{justify-content:space-between}.calculator .outputs .total.over-max .contact{align-self:center;display:inline-block;font-size:16px;line-height:24px;font-weight:600;color:#131314}.calculator .outputs .total.over-max .contact a{color:#4d5bd9;margin-right:4px}.calculator .outputs .total.over-max .blurred{filter:blur(16px)}.calculator input::-webkit-outer-spin-button,.calculator input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.calculator input[type=number]{-moz-appearance:textfield}.calculator .deployments{border-radius:4px;border:1px solid #805ac3;display:flex;flex-direction:column;width:100%;padding:24px}.calculator .deployments i{color:#805ac3;height:24px;width:24px;font-size:24px}.calculator .deployments.collapsed:hover{background:rgba(242, 239, 249, 0.5)}.calculator .deployments .default{display:flex;align-items:center;gap:24px}.calculator .deployments .default .details{flex-grow:1;display:flex;flex-direction:column;color:#2f3032}.calculator .deployments .default .details .title{font-family:"Inter";font-size:18px;font-weight:600;margin-bottom:16px}.calculator .deployments .default .details .subtitle{font-family:"Inter";font-size:16px;font-weight:400;line-height:normal}.calculator .deployments .field{margin-top:60px;display:none;margin-bottom:0px;flex-direction:column}.calculator .deployments .field.visible{display:flex}.range{-webkit-appearance:none;-moz-appearance:none;width:140px;display:block;margin-top:16px}input[type=range]::-webkit-slider-runnable-track{-webkit-appearance:none;border-radius:10px;background:#4776e6;background:linear-gradient(90deg, #f7bf2a 0%, #f26e7e 18.23%, #be5188 38.02%, #8a3391 53.65%, #805ac3 74.48%, #7682f4 100%);height:7.5px}input[type=range]:focus{outline:none}input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;border:2px solid;border-radius:50%;height:16px;width:16px;bottom:4px;position:relative;background-color:rgba(242, 239, 249, 0.5);cursor:-webkit-grab;-webkit-transition:border 1000ms ease;transition:border 1000ms ease}.range.purple::-webkit-slider-thumb{border-color:#805ac3}@media (max-width: 1280px){.calculator .field .details{flex-direction:column}.calculator .field .details .input{margin-top:16px}}@media (max-width: 1024px){.calculator .content{flex-direction:column}.calculator .outputs{width:100%;max-width:1200px}}@media (max-width: 640px){.calculator .field .details .description{width:100%}.calculator .field .details .input{width:100%}.range{width:100%}}'}},Ir=class extends HTMLElement{constructor(){super(),this.__registerHost(),this.packageSearch=$t(this,"packageSearch",7),this.filterContent="",this.debouncedFilter=An.debounce(this.debouncedFilter,300)}debouncedFilter(e){this.filterContent=e.value,this.packageSearch.emit(this.filterContent)}onChange(e){this.debouncedFilter(e)}onClearFilter(){this.filterContent="",this.packageSearch.emit(this.filterContent)}reset(){this.filterContent=""}render(){return Xe("div",{class:"input-container"},Xe("i",{class:"search-icon fas fa-filter"}),Xe("input",{class:"registry-filter-input",placeholder:"Filter by package name...",onInput:e=>this.onChange(e.target),value:this.filterContent,autocomplete:"off"}),this.filterContent&&Xe("div",{class:"clear-container"},Xe("button",{onClick:this.onClearFilter.bind(this),class:"clear-filter-button"},Xe("i",{class:"fas fa-times"}))))}static get style(){return'.input-container{display:inline-block;position:relative;width:100%;max-width:550px}.input-container .clear-container{position:absolute;display:flex;align-items:center;margin-right:6px;top:0;right:0;height:100%}.input-container .search-icon{position:absolute;display:flex;align-items:center;height:100%;padding-left:12px;color:#b0b0b0}.input-container .clear-filter-button{display:flex;align-items:center;justify-content:center;height:18px;width:18px;font-size:xx-small;background:#dcdcdc;color:#808080;border-radius:50%;border:none;cursor:pointer;padding:0px}.input-container .registry-filter-input{font-family:"Inter";font-size:14px;height:36px;width:100%;border-radius:4px;border:2px solid #000;padding:6px;padding-left:40px;margin-top:0}.input-container .registry-filter-input:focus{outline-color:#4d5bd9}.input-container .registry-filter-input::placeholder{font-style:italic;color:#808080}'}},Lr=class extends HTMLElement{constructor(){super(),this.__registerHost()}componentWillLoad(){fetch("https://www.pulumi.com/uploads/related-resources/2022-12-19.json").then((e=>e.json())).then((e=>{const t=e;if(t){const e=this.packageName.toLowerCase(),n=this.moduleName.toLowerCase(),r=this.resourceName.toLowerCase();this.related=t[e]&&t[e][n]?t[e][n][r]:void 0}})).catch((e=>console.error(e)))}render(){if(!this.related)return Xe("div",null);const e=this.packageName.toLowerCase();return Xe("div",{class:"container"},Xe("hr",{class:"mr-5"}),Xe("div",{class:"heading"},"Related Resources"),this.related.map((t=>{const n=t.split("/");let r=n.slice(0,n.length-1).join("/");const o=n[n.length-1],i=`/registry/packages/${e}/api-docs/${r.toLowerCase()}/${o.toLowerCase()}/`;return Xe("div",{class:"links"},Xe("a",{href:i},`${r}`,".",`${o}`))})))}};function Ar(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Dr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Mr(e){for(var t=1;t({persona:"developer",language:"typescript",k8sLanguage:"typescript",os:Xr(),cloud:"aws",backend:"service"}))(),t)=>{switch(t.type){case Bn.SET_LANGUAGE:return Object.assign(Object.assign({},e),{language:t.key});case Bn.SET_K8S_LANGUAGE:return Object.assign(Object.assign({},e),{k8sLanguage:t.key});case Bn.SET_OS:return Object.assign(Object.assign({},e),{os:t.key});case Bn.SET_CLOUD:return Object.assign(Object.assign({},e),{cloud:t.key});case Bn.SET_PERSONA:return Object.assign(Object.assign({},e),{persona:t.key});case Bn.SET_BACKEND:return Object.assign(Object.assign({},e),{backend:t.key});default:return e}},banners:(e={dismissed:[]},t)=>{if(t.type===Bn.DISMISS_BANNER){const{name:n,dismissedAt:r}=t.payload;return Object.assign(Object.assign({},e),{dismissed:[...e.dismissed.filter((e=>e.name!==n)),{name:n,dismissedAt:r}]})}return e},user:(e=(()=>({id:Qr().userId}))(),t)=>t.type===Bn.GET_USER_INFO?Object.assign(Object.assign({},e),{id:Qr().userId}):e}),eo=()=>{let e;try{e=localStorage.getItem("pulumi_state")}catch(e){console.error("Failed to read pulumi_state from localStorage:",e)}const t=e?JSON.parse(e):{},n=qr(Zr,function(e){let t={};try{if(e.banners&&Array.isArray(e.banners.dismissed)){const n=Date.now()-3456e5;t.banners={dismissed:e.banners.dismissed.filter((e=>!!e.name&&e.dismissedAt&&e.dismissedAt>n))}}e.preferences&&(t.preferences={language:e.preferences.language||"typescript",os:e.preferences.os||"macos",cloud:e.preferences.cloud||"aws",k8sLanguage:e.preferences.k8sLanguage||"typescript",persona:e.preferences.persona||"developer",backend:e.backend||"service"})}catch(e){return t}return t}(t),Kr.composeWithDevTools(Vr(Yr)));return n.subscribe((()=>{const e=n.getState();try{localStorage.setItem("pulumi_state",JSON.stringify(e))}catch(e){console.error("Failed to save pulumi_state:",e)}})),setInterval((()=>{n.dispatch({type:Bn.GET_USER_INFO})}),3e3),n};const to=class extends HTMLElement{constructor(){super(),this.__registerHost(),this.rendered=$t(this,"rendered",7)}componentWillLoad(){Fn.setStore(eo()),Fn.mapDispatchToProps(this,{setLanguage:Un})}componentDidRender(){this.setSelectedLanguage(),this.rendered.emit()}render(){return Xe("div",null)}setSelectedLanguage(){const e=En("language");e&&this.setLanguage(e);const t=window.location.hash;if(t){const e=t.split("_").slice(-1).find((e=>["typescript","javascript","csharp","go","python"].includes(e)));e&&this.setLanguage(e)}}},no=class extends HTMLElement{constructor(){super(),this.__registerHost()}componentDidLoad(){this.runSlotMachine()}runSlotMachine(){this.leftSwiper.stopSwiper(),this.centerSwiper.stopSwiper(),this.rightSwiper.stopSwiper(),setTimeout((()=>{this.leftSwiper.startSwiper()}),100),setTimeout((()=>{this.centerSwiper.startSwiper()}),500),setTimeout((()=>{this.rightSwiper.startSwiper()}),1e3),setTimeout((()=>{this.leftSwiper.stopSwiper()}),3e3),setTimeout((()=>{this.centerSwiper.stopSwiper()}),3500),setTimeout((()=>{this.rightSwiper.stopSwiper()}),4e3),setTimeout((()=>{this.leftSwiper.startSwiper(),this.centerSwiper.startSwiper(),this.rightSwiper.startSwiper(),this.runSlotMachine()}),7e3)}renderImageList(e){const t=this.imageClass||"";return e.map((e=>Xe("pulumi-swipeable",null,Xe("img",{class:t,src:e,alt:""}))))}render(){return Xe("ul",null,Xe("li",null,Xe("pulumi-swiper",{ref:e=>this.leftSwiper=e,direction:"vertical",slides:3,"centered-slides":!0,loop:!0,autoplay:!0,autoplayDelay:300,speed:1e3,"enable-mouse-events":!1,"space-between":120},this.renderImageList(this.leftImages.split(",")))),Xe("li",null,Xe("pulumi-swiper",{ref:e=>this.centerSwiper=e,direction:"vertical",slides:3,"centered-slides":!0,loop:!0,autoplay:!0,autoplayDelay:300,speed:1e3,"enable-mouse-events":!1,"space-between":120},this.renderImageList(this.centerImages.split(",")))),Xe("li",null,Xe("pulumi-swiper",{ref:e=>this.rightSwiper=e,direction:"vertical",slides:3,"centered-slides":!0,loop:!0,autoplay:!0,autoplayDelay:300,speed:1e3,"enable-mouse-events":!1,"space-between":120},this.renderImageList(this.rightImages.split(",")))))}static get style(){return":host{display:block}"}},ro=class extends HTMLElement{constructor(){super(),this.__registerHost()}render(){return Xe(Ze,{class:"swiper-slide"},Xe("slot",null))}};function oo(e){return null!==e&&"object"==typeof e&&"constructor"in e&&e.constructor===Object}function io(e,t){void 0===e&&(e={}),void 0===t&&(t={}),Object.keys(t).forEach((function(n){void 0===e[n]?e[n]=t[n]:oo(t[n])&&oo(e[n])&&Object.keys(t[n]).length>0&&io(e[n],t[n])}))}var so={body:{},addEventListener:function(){},removeEventListener:function(){},activeElement:{blur:function(){},nodeName:""},querySelector:function(){return null},querySelectorAll:function(){return[]},getElementById:function(){return null},createEvent:function(){return{initEvent:function(){}}},createElement:function(){return{children:[],childNodes:[],style:{},setAttribute:function(){},getElementsByTagName:function(){return[]}}},createElementNS:function(){return{}},importNode:function(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function ao(){var e="undefined"!=typeof document?document:{};return io(e,so),e}var lo={document:so,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState:function(){},pushState:function(){},go:function(){},back:function(){}},CustomEvent:function(){return this},addEventListener:function(){},removeEventListener:function(){},getComputedStyle:function(){return{getPropertyValue:function(){return""}}},Image:function(){},Date:function(){},screen:{},setTimeout:function(){},clearTimeout:function(){},matchMedia:function(){return{}},requestAnimationFrame:function(e){return"undefined"==typeof setTimeout?(e(),null):setTimeout(e,0)},cancelAnimationFrame:function(e){"undefined"!=typeof setTimeout&&clearTimeout(e)}};function uo(){var e="undefined"!=typeof window?window:{};return io(e,lo),e}function co(e){return co=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},co(e)}function po(e,t){return po=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},po(e,t)}function fo(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function ho(e,t,n){return ho=fo()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&po(o,n.prototype),o},ho.apply(null,arguments)}function mo(e){var t="function"==typeof Map?new Map:void 0;return mo=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return ho(e,arguments,co(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),po(r,e)},mo(e)}var vo=function(e){var t,n;function r(t){var n,r,o;return n=e.call.apply(e,[this].concat(t))||this,r=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(n),o=r.__proto__,Object.defineProperty(r,"__proto__",{get:function(){return o},set:function(e){o.__proto__=e}}),n}return n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,r}(mo(Array));function go(e){void 0===e&&(e=[]);var t=[];return e.forEach((function(e){Array.isArray(e)?t.push.apply(t,go(e)):t.push(e)})),t}function yo(e,t){return Array.prototype.filter.call(e,t)}function bo(e,t){var n=uo(),r=ao(),o=[];if(!t&&e instanceof vo)return e;if(!e)return new vo(o);if("string"==typeof e){var i=e.trim();if(i.indexOf("<")>=0&&i.indexOf(">")>=0){var s="div";0===i.indexOf("0})).length>0},toggleClass:function(){for(var e=arguments.length,t=new Array(e),n=0;n=0;f-=1){var h=p[f];i&&h.listener===i||i&&h.listener&&h.listener.dom7proxy&&h.listener.dom7proxy===i?(d.removeEventListener(u,h.proxyListener,s),p.splice(f,1)):i||(d.removeEventListener(u,h.proxyListener,s),p.splice(f,1))}}return this},trigger:function(){for(var e=uo(),t=arguments.length,n=new Array(t),r=0;r0})),u.dispatchEvent(c),u.dom7EventData=[],delete u.dom7EventData}}return this},transitionEnd:function(e){var t=this;return e&&t.on("transitionend",(function n(r){r.target===this&&(e.call(this,r),t.off("transitionend",n))})),this},outerWidth:function(e){if(this.length>0){if(e){var t=this.styles();return this[0].offsetWidth+parseFloat(t.getPropertyValue("margin-right"))+parseFloat(t.getPropertyValue("margin-left"))}return this[0].offsetWidth}return null},outerHeight:function(e){if(this.length>0){if(e){var t=this.styles();return this[0].offsetHeight+parseFloat(t.getPropertyValue("margin-top"))+parseFloat(t.getPropertyValue("margin-bottom"))}return this[0].offsetHeight}return null},styles:function(){var e=uo();return this[0]?e.getComputedStyle(this[0],null):{}},offset:function(){if(this.length>0){var e=uo(),t=ao(),n=this[0],r=n.getBoundingClientRect(),o=t.body,i=n.clientTop||o.clientTop||0,s=n.clientLeft||o.clientLeft||0,a=n===e?e.scrollY:n.scrollTop,l=n===e?e.scrollX:n.scrollLeft;return{top:r.top+a-i,left:r.left+l-s}}return null},css:function(e,t){var n,r=uo();if(1===arguments.length){if("string"!=typeof e){for(n=0;nt-1)return bo([]);if(e<0){var n=t+e;return bo(n<0?[]:[this[n]])}return bo([this[e]])},append:function(){for(var e,t=ao(),n=0;n=0;n-=1)this[t].insertBefore(o.childNodes[n],this[t].childNodes[0])}else if(e instanceof vo)for(n=0;n0?e?this[0].nextElementSibling&&bo(this[0].nextElementSibling).is(e)?bo([this[0].nextElementSibling]):bo([]):this[0].nextElementSibling?bo([this[0].nextElementSibling]):bo([]):bo([])},nextAll:function(e){var t=[],n=this[0];if(!n)return bo([]);for(;n.nextElementSibling;){var r=n.nextElementSibling;e?bo(r).is(e)&&t.push(r):t.push(r),n=r}return bo(t)},prev:function(e){if(this.length>0){var t=this[0];return e?t.previousElementSibling&&bo(t.previousElementSibling).is(e)?bo([t.previousElementSibling]):bo([]):t.previousElementSibling?bo([t.previousElementSibling]):bo([])}return bo([])},prevAll:function(e){var t=[],n=this[0];if(!n)return bo([]);for(;n.previousElementSibling;){var r=n.previousElementSibling;e?bo(r).is(e)&&t.push(r):t.push(r),n=r}return bo(t)},parent:function(e){for(var t=[],n=0;n6&&(r=r.split(", ").map((function(e){return e.replace(",",".")})).join(", ")),o=new i.WebKitCSSMatrix("none"===r?"":r)):n=(o=s.MozTransform||s.OTransform||s.MsTransform||s.msTransform||s.transform||s.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,")).toString().split(","),"x"===t&&(r=i.WebKitCSSMatrix?o.m41:16===n.length?parseFloat(n[12]):parseFloat(n[4])),"y"===t&&(r=i.WebKitCSSMatrix?o.m42:16===n.length?parseFloat(n[13]):parseFloat(n[5])),r||0}function Eo(e){return"object"==typeof e&&null!==e&&e.constructor&&"Object"===Object.prototype.toString.call(e).slice(8,-1)}function ko(){for(var e=Object(arguments.length<=0?void 0:arguments[0]),t=["__proto__","constructor","prototype"],n=1;n=0,observer:"MutationObserver"in e||"WebkitMutationObserver"in e,passiveListener:function(){var t=!1;try{var n=Object.defineProperty({},"passive",{get:function(){t=!0}});e.addEventListener("testPassiveListener",null,n)}catch(e){}return t}(),gestures:"ongesturestart"in e}}()),wo}function jo(e){return void 0===e&&(e={}),So||(So=function(e){var t=(void 0===e?{}:e).userAgent,n=Po(),r=uo(),o=r.navigator.platform,i=t||r.navigator.userAgent,s={ios:!1,android:!1},a=r.screen.width,l=r.screen.height,u=i.match(/(Android);?[\s\/]+([\d.]+)?/),c=i.match(/(iPad).*OS\s([\d_]+)/),d=i.match(/(iPod)(.*OS\s([\d_]+))?/),p=!c&&i.match(/(iPhone\sOS|iOS)\s([\d_]+)/),f="Win32"===o,h="MacIntel"===o;return!c&&h&&n.touch&&["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"].indexOf(a+"x"+l)>=0&&((c=i.match(/(Version)\/([\d.]+)/))||(c=[0,1,"13_0_0"]),h=!1),u&&!f&&(s.os="android",s.android=!0),(c||p||d)&&(s.os="ios",s.ios=!0),s}(e)),So}function Io(){return _o||(_o=function(){var e,t=uo();return{isEdge:!!t.navigator.userAgent.match(/Edge/g),isSafari:(e=t.navigator.userAgent.toLowerCase(),e.indexOf("safari")>=0&&e.indexOf("chrome")<0&&e.indexOf("android")<0),isWebView:/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(t.navigator.userAgent)}}()),_o}Object.keys(Oo).forEach((function(e){Object.defineProperty(bo.fn,e,{value:Oo[e],writable:!0})}));const Lo={name:"resize",create:function(){var e=this;ko(e,{resize:{observer:null,createObserver:function(){e&&!e.destroyed&&e.initialized&&(e.resize.observer=new ResizeObserver((function(t){var n=e.width,r=e.height,o=n,i=r;t.forEach((function(t){var n=t.contentBoxSize,r=t.contentRect,s=t.target;s&&s!==e.el||(o=r?r.width:(n[0]||n).inlineSize,i=r?r.height:(n[0]||n).blockSize)})),o===n&&i===r||e.resize.resizeHandler()})),e.resize.observer.observe(e.el))},removeObserver:function(){e.resize.observer&&e.resize.observer.unobserve&&e.el&&(e.resize.observer.unobserve(e.el),e.resize.observer=null)},resizeHandler:function(){e&&!e.destroyed&&e.initialized&&(e.emit("beforeResize"),e.emit("resize"))},orientationChangeHandler:function(){e&&!e.destroyed&&e.initialized&&e.emit("orientationchange")}}})},on:{init:function(e){var t=uo();e.params.resizeObserver&&void 0!==uo().ResizeObserver?e.resize.createObserver():(t.addEventListener("resize",e.resize.resizeHandler),t.addEventListener("orientationchange",e.resize.orientationChangeHandler))},destroy:function(e){var t=uo();e.resize.removeObserver(),t.removeEventListener("resize",e.resize.resizeHandler),t.removeEventListener("orientationchange",e.resize.orientationChangeHandler)}}};function Ao(){return Ao=Object.assign||function(e){for(var t=1;t=0&&t.eventsAnyListeners.splice(n,1),t},off:function(e,t){var n=this;return n.eventsListeners?(e.split(" ").forEach((function(e){void 0===t?n.eventsListeners[e]=[]:n.eventsListeners[e]&&n.eventsListeners[e].forEach((function(r,o){(r===t||r.__emitterProxy&&r.__emitterProxy===t)&&n.eventsListeners[e].splice(o,1)}))})),n):n},emit:function(){var e,t,n,r=this;if(!r.eventsListeners)return r;for(var o=arguments.length,i=new Array(o),s=0;s=0&&(b=parseFloat(b.replace("%",""))/100*i),e.virtualSize=-b,s?c.css({marginLeft:"",marginTop:""}):c.css({marginRight:"",marginBottom:""}),r.slidesPerColumn>1&&(O=Math.floor(d/r.slidesPerColumn)===d/e.params.slidesPerColumn?d:Math.ceil(d/r.slidesPerColumn)*r.slidesPerColumn,"auto"!==r.slidesPerView&&"row"===r.slidesPerColumnFill&&(O=Math.max(O,r.slidesPerView*r.slidesPerColumn)));for(var $,C,E,k=r.slidesPerColumn,T=O/k,P=Math.floor(d/r.slidesPerColumn),j=0;j1){var L=void 0,A=void 0,D=void 0;if("row"===r.slidesPerColumnFill&&r.slidesPerGroup>1){var M=Math.floor(j/(r.slidesPerGroup*r.slidesPerColumn)),N=j-r.slidesPerColumn*r.slidesPerGroup*M,R=0===M?r.slidesPerGroup:Math.min(Math.ceil((d-M*k*r.slidesPerGroup)/k),r.slidesPerGroup);L=(A=N-(D=Math.floor(N/R))*R+M*r.slidesPerGroup)+D*O/k,I.css({"-webkit-box-ordinal-group":L,"-moz-box-ordinal-group":L,"-ms-flex-order":L,"-webkit-order":L,order:L})}else"column"===r.slidesPerColumnFill?(D=j-(A=Math.floor(j/k))*k,(A>P||A===P&&D===k-1)&&(D+=1)>=k&&(D=0,A+=1)):A=j-(D=Math.floor(j/T))*T;I.css(t("margin-top"),0!==D&&r.spaceBetween&&r.spaceBetween+"px")}if("none"!==I.css("display")){if("auto"===r.slidesPerView){var F=getComputedStyle(I[0]),B=I[0].style.transform,z=I[0].style.webkitTransform;if(B&&(I[0].style.transform="none"),z&&(I[0].style.webkitTransform="none"),r.roundLengths)x=e.isHorizontal()?I.outerWidth(!0):I.outerHeight(!0);else{var q=n(F,"width"),H=n(F,"padding-left"),W=n(F,"padding-right"),U=n(F,"margin-left"),V=n(F,"margin-right"),G=F.getPropertyValue("box-sizing");if(G&&"border-box"===G)x=q+U+V;else{var K=I[0],J=K.clientWidth;x=q+H+W+U+V+(K.offsetWidth-J)}}B&&(I[0].style.transform=B),z&&(I[0].style.webkitTransform=z),r.roundLengths&&(x=Math.floor(x))}else x=(i-(r.slidesPerView-1)*b)/r.slidesPerView,r.roundLengths&&(x=Math.floor(x)),c[j]&&(c[j].style[t("width")]=x+"px");c[j]&&(c[j].swiperSlideSize=x),h.push(x),r.centeredSlides?(w=w+x/2+S/2+b,0===S&&0!==j&&(w=w-i/2-b),0===j&&(w=w-i/2-b),Math.abs(w)<.001&&(w=0),r.roundLengths&&(w=Math.floor(w)),_%r.slidesPerGroup==0&&p.push(w),f.push(w)):(r.roundLengths&&(w=Math.floor(w)),(_-Math.min(e.params.slidesPerGroupSkip,_))%e.params.slidesPerGroup==0&&p.push(w),f.push(w),w=w+x+b),e.virtualSize+=x+b,S=x,_+=1}}if(e.virtualSize=Math.max(e.virtualSize,i)+v,s&&a&&("slide"===r.effect||"coverflow"===r.effect)&&o.css({width:e.virtualSize+r.spaceBetween+"px"}),r.setWrapperSize)o.css(((C={})[t("width")]=e.virtualSize+r.spaceBetween+"px",C));if(r.slidesPerColumn>1)if(e.virtualSize=(x+r.spaceBetween)*O,e.virtualSize=Math.ceil(e.virtualSize/r.slidesPerColumn)-r.spaceBetween,o.css(((E={})[t("width")]=e.virtualSize+r.spaceBetween+"px",E)),r.centeredSlides){$=[];for(var Y=0;Y1&&p.push(e.virtualSize-i)}if(0===p.length&&(p=[0]),0!==r.spaceBetween){var ee,te=e.isHorizontal()&&s?"marginLeft":t("marginRight");c.filter((function(e,t){return!r.cssMode||t!==c.length-1})).css(((ee={})[te]=b+"px",ee))}if(r.centeredSlides&&r.centeredSlidesBounds){var ne=0;h.forEach((function(e){ne+=e+(r.spaceBetween?r.spaceBetween:0)}));var re=(ne-=r.spaceBetween)-i;p=p.map((function(e){return e<0?-m:e>re?re+v:e}))}if(r.centerInsufficientSlides){var oe=0;if(h.forEach((function(e){oe+=e+(r.spaceBetween?r.spaceBetween:0)})),(oe-=r.spaceBetween)1)if(n.params.centeredSlides)n.visibleSlides.each((function(e){r.push(e)}));else for(t=0;tn.slides.length&&!o)break;r.push(s(a))}else r.push(s(n.activeIndex));for(t=0;ti?l:i}i&&n.$wrapperEl.css("height",i+"px")},updateSlidesOffset:function(){for(var e=this.slides,t=0;t=0&&u1&&c<=t.size||u<=0&&c>=t.size)&&(t.visibleSlides.push(a),t.visibleSlidesIndexes.push(s),r.eq(s).addClass(n.slideVisibleClass))}a.progress=o?-l:l}t.visibleSlides=bo(t.visibleSlides)}},updateProgress:function(e){var t=this;if(void 0===e){var n=t.rtlTranslate?-1:1;e=t&&t.translate&&t.translate*n||0}var r=t.params,o=t.maxTranslate()-t.minTranslate(),i=t.progress,s=t.isBeginning,a=t.isEnd,l=s,u=a;0===o?(i=0,s=!0,a=!0):(s=(i=(e-t.minTranslate())/o)<=0,a=i>=1),ko(t,{progress:i,isBeginning:s,isEnd:a}),(r.watchSlidesProgress||r.watchSlidesVisibility||r.centeredSlides&&r.autoHeight)&&t.updateSlidesProgress(e),s&&!l&&t.emit("reachBeginning toEdge"),a&&!u&&t.emit("reachEnd toEdge"),(l&&!s||u&&!a)&&t.emit("fromEdge"),t.emit("progress",i)},updateSlidesClasses:function(){var e,t=this,n=t.slides,r=t.params,o=t.$wrapperEl,i=t.activeIndex,s=t.realIndex,a=t.virtual&&r.virtual.enabled;n.removeClass(r.slideActiveClass+" "+r.slideNextClass+" "+r.slidePrevClass+" "+r.slideDuplicateActiveClass+" "+r.slideDuplicateNextClass+" "+r.slideDuplicatePrevClass),(e=a?t.$wrapperEl.find("."+r.slideClass+'[data-swiper-slide-index="'+i+'"]'):n.eq(i)).addClass(r.slideActiveClass),r.loop&&(e.hasClass(r.slideDuplicateClass)?o.children("."+r.slideClass+":not(."+r.slideDuplicateClass+')[data-swiper-slide-index="'+s+'"]').addClass(r.slideDuplicateActiveClass):o.children("."+r.slideClass+"."+r.slideDuplicateClass+'[data-swiper-slide-index="'+s+'"]').addClass(r.slideDuplicateActiveClass));var l=e.nextAll("."+r.slideClass).eq(0).addClass(r.slideNextClass);r.loop&&0===l.length&&(l=n.eq(0)).addClass(r.slideNextClass);var u=e.prevAll("."+r.slideClass).eq(0).addClass(r.slidePrevClass);r.loop&&0===u.length&&(u=n.eq(-1)).addClass(r.slidePrevClass),r.loop&&(l.hasClass(r.slideDuplicateClass)?o.children("."+r.slideClass+":not(."+r.slideDuplicateClass+')[data-swiper-slide-index="'+l.attr("data-swiper-slide-index")+'"]').addClass(r.slideDuplicateNextClass):o.children("."+r.slideClass+"."+r.slideDuplicateClass+'[data-swiper-slide-index="'+l.attr("data-swiper-slide-index")+'"]').addClass(r.slideDuplicateNextClass),u.hasClass(r.slideDuplicateClass)?o.children("."+r.slideClass+":not(."+r.slideDuplicateClass+')[data-swiper-slide-index="'+u.attr("data-swiper-slide-index")+'"]').addClass(r.slideDuplicatePrevClass):o.children("."+r.slideClass+"."+r.slideDuplicateClass+'[data-swiper-slide-index="'+u.attr("data-swiper-slide-index")+'"]').addClass(r.slideDuplicatePrevClass)),t.emitSlidesClasses()},updateActiveIndex:function(e){var t,n=this,r=n.rtlTranslate?n.translate:-n.translate,o=n.slidesGrid,i=n.snapGrid,s=n.params,a=n.activeIndex,l=n.realIndex,u=n.snapIndex,c=e;if(void 0===c){for(var d=0;d=o[d]&&r=o[d]&&r=o[d]&&(c=d);s.normalizeSlideIndex&&(c<0||void 0===c)&&(c=0)}if(i.indexOf(r)>=0)t=i.indexOf(r);else{var p=Math.min(s.slidesPerGroupSkip,c);t=p+Math.floor((c-p)/s.slidesPerGroup)}if(t>=i.length&&(t=i.length-1),c!==a){var f=parseInt(n.slides.eq(c).attr("data-swiper-slide-index")||c,10);ko(n,{snapIndex:t,realIndex:f,previousIndex:a,activeIndex:c}),n.emit("activeIndexChange"),n.emit("snapIndexChange"),l!==f&&n.emit("realIndexChange"),(n.initialized||n.params.runCallbacksOnInit)&&n.emit("slideChange")}else t!==u&&(n.snapIndex=t,n.emit("snapIndexChange"))},updateClickedSlide:function(e){var t,n=this,r=n.params,o=bo(e.target).closest("."+r.slideClass)[0],i=!1;if(o)for(var s=0;su?u:r&&e=u.length&&(g=u.length-1),(p||l.initialSlide||0)===(d||0)&&n&&s.emit("beforeSlideChangeStart");var y,b=-u[g];if(s.updateProgress(b),l.normalizeSlideIndex)for(var w=0;w=_&&S=_&&S=_&&(a=w)}if(s.initialized&&a!==p){if(!s.allowSlideNext&&bs.translate&&b>s.maxTranslate()&&(p||0)!==a)return!1}if(y=a>p?"next":a=e&&(f=e)})),void 0!==f&&(p=a.indexOf(f))<0&&(p=r.activeIndex-1),r.slideTo(p,e,t,n)},slideReset:function(e,t,n){return void 0===e&&(e=this.params.speed),void 0===t&&(t=!0),this.slideTo(this.activeIndex,e,t,n)},slideToClosest:function(e,t,n,r){void 0===e&&(e=this.params.speed),void 0===t&&(t=!0),void 0===r&&(r=.5);var o=this,i=o.activeIndex,s=Math.min(o.params.slidesPerGroupSkip,i),a=s+Math.floor((i-s)/o.params.slidesPerGroup),l=o.rtlTranslate?o.translate:-o.translate;if(l>=o.snapGrid[a]){var u=o.snapGrid[a];l-u>(o.snapGrid[a+1]-u)*r&&(i+=o.params.slidesPerGroup)}else{var c=o.snapGrid[a-1];l-c<=(o.snapGrid[a]-c)*r&&(i-=o.params.slidesPerGroup)}return i=Math.max(i,0),i=Math.min(i,o.slidesGrid.length-1),o.slideTo(i,e,t,n)},slideToClickedSlide:function(){var e,t=this,n=t.params,r=t.$wrapperEl,o="auto"===n.slidesPerView?t.slidesPerViewDynamic():n.slidesPerView,i=t.clickedIndex;if(n.loop){if(t.animating)return;e=parseInt(bo(t.clickedSlide).attr("data-swiper-slide-index"),10),n.centeredSlides?it.slides.length-t.loopedSlides+o/2?(t.loopFix(),i=r.children("."+n.slideClass+'[data-swiper-slide-index="'+e+'"]:not(.'+n.slideDuplicateClass+")").eq(0).index(),xo((function(){t.slideTo(i)}))):t.slideTo(i):i>t.slides.length-o?(t.loopFix(),i=r.children("."+n.slideClass+'[data-swiper-slide-index="'+e+'"]:not(.'+n.slideDuplicateClass+")").eq(0).index(),xo((function(){t.slideTo(i)}))):t.slideTo(i)}else t.slideTo(i)}};const zo={loopCreate:function(){var e=this,t=ao(),n=e.params,r=e.$wrapperEl;r.children("."+n.slideClass+"."+n.slideDuplicateClass).remove();var o=r.children("."+n.slideClass);if(n.loopFillGroupWithBlank){var i=n.slidesPerGroup-o.length%n.slidesPerGroup;if(i!==n.slidesPerGroup){for(var s=0;so.length&&(e.loopedSlides=o.length);var l=[],u=[];o.each((function(t,n){var r=bo(t);n=o.length-e.loopedSlides&&l.push(t),r.attr("data-swiper-slide-index",n)}));for(var c=0;c=0;d-=1)r.prepend(bo(l[d].cloneNode(!0)).addClass(n.slideDuplicateClass))},loopFix:function(){var e=this;e.emit("beforeLoopFix");var t,n=e.activeIndex,r=e.slides,o=e.loopedSlides,i=e.allowSlidePrev,s=e.allowSlideNext,a=e.snapGrid,l=e.rtlTranslate;e.allowSlidePrev=!0,e.allowSlideNext=!0;var u=-a[n]-e.getTranslate();if(n=r.length-o){t=-r.length+n+o,t+=o,e.slideTo(t,0,!1,!0)&&0!==u&&e.setTranslate((l?-e.translate:e.translate)-u)}e.allowSlidePrev=i,e.allowSlideNext=s,e.emit("loopFix")},loopDestroy:function(){var e=this,t=e.$wrapperEl,n=e.params,r=e.slides;t.children("."+n.slideClass+"."+n.slideDuplicateClass+",."+n.slideClass+"."+n.slideBlankClass).remove(),r.removeAttr("data-swiper-slide-index")}};const qo={appendSlide:function(e){var t=this,n=t.$wrapperEl,r=t.params;if(r.loop&&t.loopDestroy(),"object"==typeof e&&"length"in e)for(var o=0;o=s)n.appendSlide(t);else{for(var a=i>e?i+1:i,l=[],u=s-1;u>=e;u-=1){var c=n.slides.eq(u);c.remove(),l.unshift(c)}if("object"==typeof t&&"length"in t){for(var d=0;de?i+t.length:i}else r.append(t);for(var p=0;p0))if(!o.isTouched||!o.isMoved)if(!!i.noSwipingClass&&""!==i.noSwipingClass&&a.target&&a.target.shadowRoot&&e.path&&e.path[0]&&(l=bo(e.path[0])),i.noSwiping&&l.closest(i.noSwipingSelector?i.noSwipingSelector:"."+i.noSwipingClass)[0])t.allowClick=!0;else if(!i.swipeHandler||l.closest(i.swipeHandler)[0]){s.currentX="touchstart"===a.type?a.targetTouches[0].pageX:a.pageX,s.currentY="touchstart"===a.type?a.targetTouches[0].pageY:a.pageY;var u=s.currentX,c=s.currentY,d=i.edgeSwipeDetection||i.iOSEdgeSwipeDetection,p=i.edgeSwipeThreshold||i.iOSEdgeSwipeThreshold;if(d&&(u<=p||u>=r.innerWidth-p)){if("prevent"!==d)return;e.preventDefault()}if(ko(o,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),s.startX=u,s.startY=c,o.touchStartTime=$o(),t.allowClick=!0,t.updateSize(),t.swipeDirection=void 0,i.threshold>0&&(o.allowThresholdMove=!1),"touchstart"!==a.type){var f=!0;l.is(o.formElements)&&(f=!1),n.activeElement&&bo(n.activeElement).is(o.formElements)&&n.activeElement!==l[0]&&n.activeElement.blur();var h=f&&t.allowTouchMove&&i.touchStartPreventDefault;!i.touchStartForcePreventDefault&&!h||l[0].isContentEditable||a.preventDefault()}t.emit("touchStart",a)}}}function Wo(e){var t=ao(),n=this,r=n.touchEventsData,o=n.params,i=n.touches,s=n.rtlTranslate;if(n.enabled){var a=e;if(a.originalEvent&&(a=a.originalEvent),r.isTouched){if(!r.isTouchEvent||"touchmove"===a.type){var l="touchmove"===a.type&&a.targetTouches&&(a.targetTouches[0]||a.changedTouches[0]),u="touchmove"===a.type?l.pageX:a.pageX,c="touchmove"===a.type?l.pageY:a.pageY;if(a.preventedByNestedSwiper)return i.startX=u,void(i.startY=c);if(!n.allowTouchMove)return n.allowClick=!1,void(r.isTouched&&(ko(i,{startX:u,startY:c,currentX:u,currentY:c}),r.touchStartTime=$o()));if(r.isTouchEvent&&o.touchReleaseOnEdges&&!o.loop)if(n.isVertical()){if(ci.startY&&n.translate>=n.minTranslate())return r.isTouched=!1,void(r.isMoved=!1)}else if(ui.startX&&n.translate>=n.minTranslate())return;if(r.isTouchEvent&&t.activeElement&&a.target===t.activeElement&&bo(a.target).is(r.formElements))return r.isMoved=!0,void(n.allowClick=!1);if(r.allowTouchCallbacks&&n.emit("touchMove",a),!(a.targetTouches&&a.targetTouches.length>1)){i.currentX=u,i.currentY=c;var d=i.currentX-i.startX,p=i.currentY-i.startY;if(!(n.params.threshold&&Math.sqrt(Math.pow(d,2)+Math.pow(p,2))=25&&(f=180*Math.atan2(Math.abs(p),Math.abs(d))/Math.PI,r.isScrolling=n.isHorizontal()?f>o.touchAngle:90-f>o.touchAngle);if(r.isScrolling&&n.emit("touchMoveOpposite",a),void 0===r.startMoving&&(i.currentX===i.startX&&i.currentY===i.startY||(r.startMoving=!0)),r.isScrolling)r.isTouched=!1;else if(r.startMoving){n.allowClick=!1,!o.cssMode&&a.cancelable&&a.preventDefault(),o.touchMoveStopPropagation&&!o.nested&&a.stopPropagation(),r.isMoved||(o.loop&&n.loopFix(),r.startTranslate=n.getTranslate(),n.setTransition(0),n.animating&&n.$wrapperEl.trigger("webkitTransitionEnd transitionend"),r.allowMomentumBounce=!1,!o.grabCursor||!0!==n.allowSlideNext&&!0!==n.allowSlidePrev||n.setGrabCursor(!0),n.emit("sliderFirstMove",a)),n.emit("sliderMove",a),r.isMoved=!0;var h=n.isHorizontal()?d:p;i.diff=h,h*=o.touchRatio,s&&(h=-h),n.swipeDirection=h>0?"prev":"next",r.currentTranslate=h+r.startTranslate;var m=!0,v=o.resistanceRatio;if(o.touchReleaseOnEdges&&(v=0),h>0&&r.currentTranslate>n.minTranslate()?(m=!1,o.resistance&&(r.currentTranslate=n.minTranslate()-1+Math.pow(-n.minTranslate()+r.startTranslate+h,v))):h<0&&r.currentTranslater.startTranslate&&(r.currentTranslate=r.startTranslate),n.allowSlidePrev||n.allowSlideNext||(r.currentTranslate=r.startTranslate),o.threshold>0){if(!(Math.abs(h)>o.threshold||r.allowThresholdMove))return void(r.currentTranslate=r.startTranslate);if(!r.allowThresholdMove)return r.allowThresholdMove=!0,i.startX=i.currentX,i.startY=i.currentY,r.currentTranslate=r.startTranslate,void(i.diff=n.isHorizontal()?i.currentX-i.startX:i.currentY-i.startY)}o.followFinger&&!o.cssMode&&((o.freeMode||o.watchSlidesProgress||o.watchSlidesVisibility)&&(n.updateActiveIndex(),n.updateSlidesClasses()),o.freeMode&&(0===r.velocities.length&&r.velocities.push({position:i[n.isHorizontal()?"startX":"startY"],time:r.touchStartTime}),r.velocities.push({position:i[n.isHorizontal()?"currentX":"currentY"],time:$o()})),n.updateProgress(r.currentTranslate),n.setTranslate(r.currentTranslate))}}}}}else r.startMoving&&r.isScrolling&&n.emit("touchMoveOpposite",a)}}function Uo(e){var t=this,n=t.touchEventsData,r=t.params,o=t.touches,i=t.rtlTranslate,s=t.$wrapperEl,a=t.slidesGrid,l=t.snapGrid;if(t.enabled){var u=e;if(u.originalEvent&&(u=u.originalEvent),n.allowTouchCallbacks&&t.emit("touchEnd",u),n.allowTouchCallbacks=!1,!n.isTouched)return n.isMoved&&r.grabCursor&&t.setGrabCursor(!1),n.isMoved=!1,void(n.startMoving=!1);r.grabCursor&&n.isMoved&&n.isTouched&&(!0===t.allowSlideNext||!0===t.allowSlidePrev)&&t.setGrabCursor(!1);var c,d=$o(),p=d-n.touchStartTime;if(t.allowClick&&(t.updateClickedSlide(u),t.emit("tap click",u),p<300&&d-n.lastClickTime<300&&t.emit("doubleTap doubleClick",u)),n.lastClickTime=$o(),xo((function(){t.destroyed||(t.allowClick=!0)})),!n.isTouched||!n.isMoved||!t.swipeDirection||0===o.diff||n.currentTranslate===n.startTranslate)return n.isTouched=!1,n.isMoved=!1,void(n.startMoving=!1);if(n.isTouched=!1,n.isMoved=!1,n.startMoving=!1,c=r.followFinger?i?t.translate:-t.translate:-n.currentTranslate,!r.cssMode)if(r.freeMode){if(c<-t.minTranslate())return void t.slideTo(t.activeIndex);if(c>-t.maxTranslate())return void(t.slides.length1){var f=n.velocities.pop(),h=n.velocities.pop(),m=f.position-h.position,v=f.time-h.time;t.velocity=m/v,t.velocity/=2,Math.abs(t.velocity)150||$o()-f.time>300)&&(t.velocity=0)}else t.velocity=0;t.velocity*=r.freeModeMomentumVelocityRatio,n.velocities.length=0;var g=1e3*r.freeModeMomentumRatio,y=t.velocity*g,b=t.translate+y;i&&(b=-b);var w,S,_=!1,O=20*Math.abs(t.velocity)*r.freeModeMomentumBounceRatio;if(bt.minTranslate())r.freeModeMomentumBounce?(b-t.minTranslate()>O&&(b=t.minTranslate()+O),w=t.minTranslate(),_=!0,n.allowMomentumBounce=!0):b=t.minTranslate(),r.loop&&r.centeredSlides&&(S=!0);else if(r.freeModeSticky){for(var x,$=0;$-b){x=$;break}b=-(b=Math.abs(l[x]-b)=r.longSwipesMs)&&(t.updateProgress(),t.updateActiveIndex(),t.updateSlidesClasses())}else{for(var k=0,T=t.slidesSizesGrid[0],P=0;P=a[P]&&c=a[P]&&(k=P,T=a[a.length-1]-a[a.length-2])}var I=(c-a[k])/T,L=kr.longSwipesMs){if(!r.longSwipes)return void t.slideTo(t.activeIndex);"next"===t.swipeDirection&&(I>=r.longSwipesRatio?t.slideTo(k+L):t.slideTo(k)),"prev"===t.swipeDirection&&(I>1-r.longSwipesRatio?t.slideTo(k+L):t.slideTo(k))}else{if(!r.shortSwipes)return void t.slideTo(t.activeIndex);t.navigation&&(u.target===t.navigation.nextEl||u.target===t.navigation.prevEl)?u.target===t.navigation.nextEl?t.slideTo(k+L):t.slideTo(k):("next"===t.swipeDirection&&t.slideTo(k+L),"prev"===t.swipeDirection&&t.slideTo(k))}}}}function Vo(){var e=this,t=e.params,n=e.el;if(!n||0!==n.offsetWidth){t.breakpoints&&e.setBreakpoint();var r=e.allowSlideNext,o=e.allowSlidePrev,i=e.snapGrid;e.allowSlideNext=!0,e.allowSlidePrev=!0,e.updateSize(),e.updateSlides(),e.updateSlidesClasses(),("auto"===t.slidesPerView||t.slidesPerView>1)&&e.isEnd&&!e.isBeginning&&!e.params.centeredSlides?e.slideTo(e.slides.length-1,0,!1,!0):e.slideTo(e.activeIndex,0,!1,!0),e.autoplay&&e.autoplay.running&&e.autoplay.paused&&e.autoplay.run(),e.allowSlidePrev=o,e.allowSlideNext=r,e.params.watchOverflow&&i!==e.snapGrid&&e.checkOverflow()}}function Go(e){var t=this;t.enabled&&(t.allowClick||(t.params.preventClicks&&e.preventDefault(),t.params.preventClicksPropagation&&t.animating&&(e.stopPropagation(),e.stopImmediatePropagation())))}function Ko(){var e=this,t=e.wrapperEl,n=e.rtlTranslate;if(e.enabled){e.previousTranslate=e.translate,e.isHorizontal()?e.translate=n?t.scrollWidth-t.offsetWidth-t.scrollLeft:-t.scrollLeft:e.translate=-t.scrollTop,-0===e.translate&&(e.translate=0),e.updateActiveIndex(),e.updateSlidesClasses();var r=e.maxTranslate()-e.minTranslate();(0===r?0:(e.translate-e.minTranslate())/r)!==e.progress&&e.updateProgress(n?-e.translate:e.translate),e.emit("setTranslate",e.translate,!1)}}var Jo=!1;function Yo(){}const Xo={attachEvents:function(){var e=this,t=ao(),n=e.params,r=e.touchEvents,o=e.el,i=e.wrapperEl,s=e.device,a=e.support;e.onTouchStart=Ho.bind(e),e.onTouchMove=Wo.bind(e),e.onTouchEnd=Uo.bind(e),n.cssMode&&(e.onScroll=Ko.bind(e)),e.onClick=Go.bind(e);var l=!!n.nested;if(!a.touch&&a.pointerEvents)o.addEventListener(r.start,e.onTouchStart,!1),t.addEventListener(r.move,e.onTouchMove,l),t.addEventListener(r.end,e.onTouchEnd,!1);else{if(a.touch){var u=!("touchstart"!==r.start||!a.passiveListener||!n.passiveListeners)&&{passive:!0,capture:!1};o.addEventListener(r.start,e.onTouchStart,u),o.addEventListener(r.move,e.onTouchMove,a.passiveListener?{passive:!1,capture:l}:l),o.addEventListener(r.end,e.onTouchEnd,u),r.cancel&&o.addEventListener(r.cancel,e.onTouchEnd,u),Jo||(t.addEventListener("touchstart",Yo),Jo=!0)}(n.simulateTouch&&!s.ios&&!s.android||n.simulateTouch&&!a.touch&&s.ios)&&(o.addEventListener("mousedown",e.onTouchStart,!1),t.addEventListener("mousemove",e.onTouchMove,l),t.addEventListener("mouseup",e.onTouchEnd,!1))}(n.preventClicks||n.preventClicksPropagation)&&o.addEventListener("click",e.onClick,!0),n.cssMode&&i.addEventListener("scroll",e.onScroll),n.updateOnWindowResize?e.on(s.ios||s.android?"resize orientationchange observerUpdate":"resize observerUpdate",Vo,!0):e.on("observerUpdate",Vo,!0)},detachEvents:function(){var e=this,t=ao(),n=e.params,r=e.touchEvents,o=e.el,i=e.wrapperEl,s=e.device,a=e.support,l=!!n.nested;if(!a.touch&&a.pointerEvents)o.removeEventListener(r.start,e.onTouchStart,!1),t.removeEventListener(r.move,e.onTouchMove,l),t.removeEventListener(r.end,e.onTouchEnd,!1);else{if(a.touch){var u=!("onTouchStart"!==r.start||!a.passiveListener||!n.passiveListeners)&&{passive:!0,capture:!1};o.removeEventListener(r.start,e.onTouchStart,u),o.removeEventListener(r.move,e.onTouchMove,l),o.removeEventListener(r.end,e.onTouchEnd,u),r.cancel&&o.removeEventListener(r.cancel,e.onTouchEnd,u)}(n.simulateTouch&&!s.ios&&!s.android||n.simulateTouch&&!a.touch&&s.ios)&&(o.removeEventListener("mousedown",e.onTouchStart,!1),t.removeEventListener("mousemove",e.onTouchMove,l),t.removeEventListener("mouseup",e.onTouchEnd,!1))}(n.preventClicks||n.preventClicksPropagation)&&o.removeEventListener("click",e.onClick,!0),n.cssMode&&i.removeEventListener("scroll",e.onScroll),e.off(s.ios||s.android?"resize orientationchange observerUpdate":"resize observerUpdate",Vo)}};const Qo={setBreakpoint:function(){var e=this,t=e.activeIndex,n=e.initialized,r=e.loopedSlides,o=void 0===r?0:r,i=e.params,s=e.$el,a=i.breakpoints;if(a&&(!a||0!==Object.keys(a).length)){var l=e.getBreakpoint(a,e.params.breakpointsBase,e.el);if(l&&e.currentBreakpoint!==l){var u=l in a?a[l]:void 0;u&&["slidesPerView","spaceBetween","slidesPerGroup","slidesPerGroupSkip","slidesPerColumn"].forEach((function(e){var t=u[e];void 0!==t&&(u[e]="slidesPerView"!==e||"AUTO"!==t&&"auto"!==t?"slidesPerView"===e?parseFloat(t):parseInt(t,10):"auto")}));var c=u||e.originalParams,d=i.slidesPerColumn>1,p=c.slidesPerColumn>1,f=i.enabled;d&&!p?(s.removeClass(i.containerModifierClass+"multirow "+i.containerModifierClass+"multirow-column"),e.emitContainerClasses()):!d&&p&&(s.addClass(i.containerModifierClass+"multirow"),"column"===c.slidesPerColumnFill&&s.addClass(i.containerModifierClass+"multirow-column"),e.emitContainerClasses());var h=c.direction&&c.direction!==i.direction,m=i.loop&&(c.slidesPerView!==i.slidesPerView||h);h&&n&&e.changeDirection(),ko(e.params,c);var v=e.params.enabled;ko(e,{allowTouchMove:e.params.allowTouchMove,allowSlideNext:e.params.allowSlideNext,allowSlidePrev:e.params.allowSlidePrev}),f&&!v?e.disable():!f&&v&&e.enable(),e.currentBreakpoint=l,e.emit("_beforeBreakpoint",c),m&&n&&(e.loopDestroy(),e.loopCreate(),e.updateSlides(),e.slideTo(t-o+e.loopedSlides,0,!1)),e.emit("breakpoint",c)}}},getBreakpoint:function(e,t,n){if(void 0===t&&(t="window"),e&&("container"!==t||n)){var r=!1,o=uo(),i="window"===t?o.innerWidth:n.clientWidth,s="window"===t?o.innerHeight:n.clientHeight,a=Object.keys(e).map((function(e){if("string"==typeof e&&0===e.indexOf("@")){var t=parseFloat(e.substr(1));return{value:s*t,point:e}}return{value:e,point:e}}));a.sort((function(e,t){return parseInt(e.value,10)-parseInt(t.value,10)}));for(var l=0;l1},{"multirow-column":i.slidesPerColumn>1&&"column"===i.slidesPerColumnFill},{android:l.android},{ios:l.ios},{"css-mode":i.cssMode}],t=i.containerModifierClass,n=[],e.forEach((function(e){"object"==typeof e?Object.keys(e).forEach((function(r){e[r]&&n.push(t+r)})):"string"==typeof e&&n.push(t+e)})),n);o.push.apply(o,c),a.addClass([].concat(o).join(" ")),r.emitContainerClasses()},removeClasses:function(){var e=this,t=e.$el,n=e.classNames;t.removeClass(n.join(" ")),e.emitContainerClasses()}};const ei={loadImage:function(e,t,n,r,o,i){var s,a=uo();function l(){i&&i()}bo(e).parent("picture")[0]||e.complete&&o?l():t?((s=new a.Image).onload=l,s.onerror=l,r&&(s.sizes=r),n&&(s.srcset=n),t&&(s.src=t)):l()},preloadImages:function(){var e=this;function t(){null!=e&&e&&!e.destroyed&&(void 0!==e.imagesLoaded&&(e.imagesLoaded+=1),e.imagesLoaded===e.imagesToLoad.length&&(e.params.updateOnImagesReady&&e.update(),e.emit("imagesReady")))}e.imagesToLoad=e.$el.find("img");for(var n=0;ni?"next":ro?"next":r0&&t.slidesOffsetBefore+t.spaceBetween*(e.slides.length-1)+e.slides[0].offsetWidth*e.slides.length;t.slidesOffsetBefore&&t.slidesOffsetAfter&&r?e.isLocked=r<=e.size:e.isLocked=1===e.snapGrid.length,e.allowSlideNext=!e.isLocked,e.allowSlidePrev=!e.isLocked,n!==e.isLocked&&e.emit(e.isLocked?"lock":"unlock"),n&&n!==e.isLocked&&(e.isEnd=!1,e.navigation&&e.navigation.update())}},classes:Zo,images:ei},oi={},ii=function(){function e(){for(var t,n,r=arguments.length,o=new Array(r),i=0;i1){var s=[];return bo(n.el).each((function(t){var r=ko({},n,{el:t});s.push(new e(r))})),s}var a=this;a.__swiper__=!0,a.support=Po(),a.device=jo({userAgent:n.userAgent}),a.browser=Io(),a.eventsListeners={},a.eventsAnyListeners=[],void 0===a.modules&&(a.modules={}),Object.keys(a.modules).forEach((function(e){var t=a.modules[e];if(t.params){var r=Object.keys(t.params)[0],o=t.params[r];if("object"!=typeof o||null===o)return;if(!(r in n)||!("enabled"in o))return;!0===n[r]&&(n[r]={enabled:!0}),"object"!=typeof n[r]||"enabled"in n[r]||(n[r].enabled=!0),n[r]||(n[r]={enabled:!1})}}));var l,u,c=ko({},ti);return a.useParams(c),a.params=ko({},c,oi,n),a.originalParams=ko({},a.params),a.passedParams=ko({},n),a.params&&a.params.on&&Object.keys(a.params.on).forEach((function(e){a.on(e,a.params.on[e])})),a.params&&a.params.onAny&&a.onAny(a.params.onAny),a.$=bo,ko(a,{enabled:a.params.enabled,el:t,classNames:[],slides:bo(),slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal:function(){return"horizontal"===a.params.direction},isVertical:function(){return"vertical"===a.params.direction},activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,allowSlideNext:a.params.allowSlideNext,allowSlidePrev:a.params.allowSlidePrev,touchEvents:(l=["touchstart","touchmove","touchend","touchcancel"],u=["mousedown","mousemove","mouseup"],a.support.pointerEvents&&(u=["pointerdown","pointermove","pointerup"]),a.touchEventsTouch={start:l[0],move:l[1],end:l[2],cancel:l[3]},a.touchEventsDesktop={start:u[0],move:u[1],end:u[2]},a.support.touch||!a.params.simulateTouch?a.touchEventsTouch:a.touchEventsDesktop),touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,formElements:"input, select, option, textarea, button, video, label",lastClickTime:$o(),clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,isTouchEvent:void 0,startMoving:void 0},allowClick:!0,allowTouchMove:a.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),a.useModules(),a.emit("_swiper"),a.params.init&&a.init(),a}var t,n,r,o=e.prototype;return o.enable=function(){var e=this;e.enabled||(e.enabled=!0,e.params.grabCursor&&e.setGrabCursor(),e.emit("enable"))},o.disable=function(){var e=this;e.enabled&&(e.enabled=!1,e.params.grabCursor&&e.unsetGrabCursor(),e.emit("disable"))},o.setProgress=function(e,t){var n=this;e=Math.min(Math.max(e,0),1);var r=n.minTranslate(),o=(n.maxTranslate()-r)*e+r;n.translateTo(o,void 0===t?0:t),n.updateActiveIndex(),n.updateSlidesClasses()},o.emitContainerClasses=function(){var e=this;if(e.params._emitClasses&&e.el){var t=e.el.className.split(" ").filter((function(t){return 0===t.indexOf("swiper-container")||0===t.indexOf(e.params.containerModifierClass)}));e.emit("_containerClasses",t.join(" "))}},o.getSlideClasses=function(e){var t=this;return e.className.split(" ").filter((function(e){return 0===e.indexOf("swiper-slide")||0===e.indexOf(t.params.slideClass)})).join(" ")},o.emitSlidesClasses=function(){var e=this;if(e.params._emitClasses&&e.el){var t=[];e.slides.each((function(n){var r=e.getSlideClasses(n);t.push({slideEl:n,classNames:r}),e.emit("_slideClass",n,r)})),e.emit("_slideClasses",t)}},o.slidesPerViewDynamic=function(){var e=this,t=e.params,n=e.slides,r=e.slidesGrid,o=e.size,i=e.activeIndex,s=1;if(t.centeredSlides){for(var a,l=n[i].swiperSlideSize,u=i+1;uo&&(a=!0));for(var c=i-1;c>=0;c-=1)n[c]&&!a&&(s+=1,(l+=n[c].swiperSlideSize)>o&&(a=!0))}else for(var d=i+1;d1)&&e.isEnd&&!e.params.centeredSlides?e.slideTo(e.slides.length-1,0,!1,!0):e.slideTo(e.activeIndex,0,!1,!0))||r(),n.watchOverflow&&t!==e.snapGrid&&e.checkOverflow(),e.emit("update")}function r(){var t=e.rtlTranslate?-1*e.translate:e.translate,n=Math.min(Math.max(t,e.maxTranslate()),e.minTranslate());e.setTranslate(n),e.updateActiveIndex(),e.updateSlidesClasses()}},o.changeDirection=function(e,t){void 0===t&&(t=!0);var n=this,r=n.params.direction;return e||(e="horizontal"===r?"vertical":"horizontal"),e===r||"horizontal"!==e&&"vertical"!==e||(n.$el.removeClass(""+n.params.containerModifierClass+r).addClass(""+n.params.containerModifierClass+e),n.emitContainerClasses(),n.params.direction=e,n.slides.each((function(t){"vertical"===e?t.style.width="":t.style.height=""})),n.emit("changeDirection"),t&&n.update()),n},o.mount=function(e){var t=this;if(t.mounted)return!0;var n,r=bo(e||t.params.el);return!!(e=r[0])&&(e.swiper=t,e&&e.shadowRoot&&e.shadowRoot.querySelector?(n=bo(e.shadowRoot.querySelector("."+t.params.wrapperClass))).children=function(e){return r.children(e)}:n=r.children("."+t.params.wrapperClass),ko(t,{$el:r,el:e,$wrapperEl:n,wrapperEl:n[0],mounted:!0,rtl:"rtl"===e.dir.toLowerCase()||"rtl"===r.css("direction"),rtlTranslate:"horizontal"===t.params.direction&&("rtl"===e.dir.toLowerCase()||"rtl"===r.css("direction")),wrongRTL:"-webkit-box"===n.css("display")}),!0)},o.init=function(e){var t=this;return t.initialized||!1===t.mount(e)||(t.emit("beforeInit"),t.params.breakpoints&&t.setBreakpoint(),t.addClasses(),t.params.loop&&t.loopCreate(),t.updateSize(),t.updateSlides(),t.params.watchOverflow&&t.checkOverflow(),t.params.grabCursor&&t.enabled&&t.setGrabCursor(),t.params.preloadImages&&t.preloadImages(),t.params.loop?t.slideTo(t.params.initialSlide+t.loopedSlides,0,t.params.runCallbacksOnInit,!1,!0):t.slideTo(t.params.initialSlide,0,t.params.runCallbacksOnInit,!1,!0),t.attachEvents(),t.initialized=!0,t.emit("init"),t.emit("afterInit")),t},o.destroy=function(e,t){void 0===e&&(e=!0),void 0===t&&(t=!0);var n,r=this,o=r.params,i=r.$el,s=r.$wrapperEl,a=r.slides;return void 0===r.params||r.destroyed||(r.emit("beforeDestroy"),r.initialized=!1,r.detachEvents(),o.loop&&r.loopDestroy(),t&&(r.removeClasses(),i.removeAttr("style"),s.removeAttr("style"),a&&a.length&&a.removeClass([o.slideVisibleClass,o.slideActiveClass,o.slideNextClass,o.slidePrevClass].join(" ")).removeAttr("style").removeAttr("data-swiper-slide-index")),r.emit("destroy"),Object.keys(r.eventsListeners).forEach((function(e){r.off(e)})),!1!==e&&(r.$el[0].swiper=null,n=r,Object.keys(n).forEach((function(e){try{n[e]=null}catch(e){}try{delete n[e]}catch(e){}}))),r.destroyed=!0),null},e.extendDefaults=function(e){ko(oi,e)},e.installModule=function(t){e.prototype.modules||(e.prototype.modules={});var n=t.name||Object.keys(e.prototype.modules).length+"_"+$o();e.prototype.modules[n]=t},e.use=function(t){return Array.isArray(t)?(t.forEach((function(t){return e.installModule(t)})),e):(e.installModule(t),e)},t=e,r=[{key:"extendedDefaults",get:function(){return oi}},{key:"defaults",get:function(){return ti}}],(n=null)&&ni(t.prototype,n),r&&ni(t,r),e}();function si(){return si=Object.assign||function(e){for(var t=1;t0&&(e.isBeginning?n(i,!0):n(i,!1),e.params.watchOverflow&&e.enabled&&i[e.isLocked?"addClass":"removeClass"](t.lockClass)),o&&o.length>0&&(e.isEnd?n(o,!0):n(o,!1),e.params.watchOverflow&&e.enabled&&o[e.isLocked?"addClass":"removeClass"](t.lockClass))}},onPrevClick:function(e){var t=this;e.preventDefault(),t.isBeginning&&!t.params.loop||t.slidePrev()},onNextClick:function(e){var t=this;e.preventDefault(),t.isEnd&&!t.params.loop||t.slideNext()},init:function(){var e,t,n=this,r=n.params.navigation;(r.nextEl||r.prevEl)&&(r.nextEl&&(e=bo(r.nextEl),n.params.uniqueNavElements&&"string"==typeof r.nextEl&&e.length>1&&1===n.$el.find(r.nextEl).length&&(e=n.$el.find(r.nextEl))),r.prevEl&&(t=bo(r.prevEl),n.params.uniqueNavElements&&"string"==typeof r.prevEl&&t.length>1&&1===n.$el.find(r.prevEl).length&&(t=n.$el.find(r.prevEl))),e&&e.length>0&&e.on("click",n.navigation.onNextClick),t&&t.length>0&&t.on("click",n.navigation.onPrevClick),ko(n.navigation,{$nextEl:e,nextEl:e&&e[0],$prevEl:t,prevEl:t&&t[0]}),n.enabled||(e&&e.addClass(r.lockClass),t&&t.addClass(r.lockClass)))},destroy:function(){var e=this,t=e.navigation,n=t.$nextEl,r=t.$prevEl;n&&n.length&&(n.off("click",e.navigation.onNextClick),n.removeClass(e.params.navigation.disabledClass)),r&&r.length&&(r.off("click",e.navigation.onPrevClick),r.removeClass(e.params.navigation.disabledClass))}};const li={name:"navigation",params:{navigation:{nextEl:null,prevEl:null,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock"}},create:function(){To(this,{navigation:si({},ai)})},on:{init:function(e){e.navigation.init(),e.navigation.update()},toEdge:function(e){e.navigation.update()},fromEdge:function(e){e.navigation.update()},destroy:function(e){e.navigation.destroy()},"enable disable":function(e){var t=e.navigation,n=t.$nextEl,r=t.$prevEl;n&&n[e.enabled?"removeClass":"addClass"](e.params.navigation.lockClass),r&&r[e.enabled?"removeClass":"addClass"](e.params.navigation.lockClass)},click:function(e,t){var n=e.navigation,r=n.$nextEl,o=n.$prevEl,i=t.target;if(e.params.navigation.hideOnClick&&!bo(i).is(o)&&!bo(i).is(r)){if(e.pagination&&e.params.pagination&&e.params.pagination.clickable&&(e.pagination.el===i||e.pagination.el.contains(i)))return;var s;r?s=r.hasClass(e.params.navigation.hiddenClass):o&&(s=o.hasClass(e.params.navigation.hiddenClass)),!0===s?e.emit("navigationShow"):e.emit("navigationHide"),r&&r.toggleClass(e.params.navigation.hiddenClass),o&&o.toggleClass(e.params.navigation.hiddenClass)}}}};function ui(){return ui=Object.assign||function(e){for(var t=1;t{const n=e.slides;for(let t=0;te.getAttribute("active")));e?this.select(e):!this.selectedTab&&this.tabs.length>0&&this.select(this.tabs[0])}select(e){e&&(this.tabs.forEach((t=>t.setAttribute("active",(t===e).toString()))),this.selectedTab=e,this.tabSelect.emit([{selectedTab:e}]))}get tabs(){return Array.from(this.el.querySelectorAll("pulumi-tab")||[])}labelFor(e){return e.getAttribute("label")||""}partsFor(e){const t=["tab"];return this.selectedTab===e&&t.push("active-tab"),t.join(" ")}render(){return Xe("div",null,Xe("ul",{part:"tabs",role:"tablist"},this.tabs.map((e=>Xe("li",{part:this.partsFor(e),role:"presentation"},Xe("a",{part:"anchor",onClick:this.select.bind(this,e),role:"tab","aria-selected":this.selectedTab===e},this.labelFor(e)))))),Xe("slot",null))}get el(){return this}static get style(){return":host {\n display: block;\n }\n ul {\n display: flex;\n width: 100%;\n align-items: center;\n margin: 0;\n padding: 0;\n width: auto;\n list-style-type: none;\n }\n li {\n display: flex;\n justify-content: center;\n }\n li a {\n cursor: pointer;\n display: flex;\n justify-content: center;\n flex: 1;\n text-align: center;\n white-space: nowrap;\n }"}},mi=class extends HTMLElement{constructor(){super(),this.__registerHost()}componentWillLoad(){this.parsedItems=JSON.parse(this.items),this.tabContent=this.parsedItems.map((e=>e.anchor)),this.selectTab(this.parsedItems[0])}selectTab(e){this.selection=e.anchor,document.getElementById(`${e.anchor}`).classList.remove("hidden");this.tabContent.filter((t=>t!==e.anchor)).forEach((e=>{document.getElementById(`${e}`).classList.add("hidden")}))}render(){return Xe(Ze,null,Xe("ul",null,this.parsedItems.map((e=>Xe("li",{class:this.selection===e.anchor?"active":""},Xe("a",{onClick:()=>this.selectTab(e)},e.label))))))}static get style(){return":host{display:block}"}},vi=class extends HTMLElement{constructor(){super(),this.__registerHost()}async show(){return new Promise((e=>{this.active=!0,setTimeout((()=>e()),100)}))}async hide(){return new Promise((e=>{this.active=!1,setTimeout((()=>e()),100)}))}componentDidLoad(){this.id=Cn(),this.active=!1;const e=this.el.querySelector(".tooltip-target");e.addEventListener("mouseover",(()=>this.active=!0)),e.addEventListener("mouseout",(()=>this.active=!1)),e.addEventListener("touchstart",(()=>this.active=!0)),e.addEventListener("touchend",(()=>this.active=!1))}render(){return Xe(Ze,null,Xe("span",{class:"tooltip-target "+(this.active?"active":""),"aria-labelledby":this.id},Xe("slot",null)),Xe("span",{id:this.id,class:"tooltip-content",role:"tooltip"},Xe("slot",{name:"content"})))}get el(){return this}},gi=class extends HTMLElement{constructor(){super(),this.__registerHost()}handleScroll(){this.setVisibility()}componentWillRender(){this.setVisibility()}render(){let e=`btn-scroll-top fas fa-chevron-up ${this.visible}`;return Xe("a",{class:e,title:"Scroll to top",href:"#"})}setVisibility(){this.visible=window.scrollY>2500?"visible":"hidden"}static get style(){return""}},yi=class extends HTMLElement{constructor(){super(),this.__registerHost()}handleRendered(e){this.storeUnsubscribe=Fn.mapStateToProps(this,(e=>{const{user:{id:t}}=e;return{userId:t}}))}disconnectedCallback(){this.storeUnsubscribe&&this.storeUnsubscribe()}render(){return Xe("span",{class:"signed-out"},Xe("slot",{name:"signed-in"}),Xe("slot",{name:"signed-out"}))}static get style(){return"pulumi-user-toggle{display:inline}pulumi-user-toggle [slot]{display:none}pulumi-user-toggle .signed-out [slot=signed-out]{display:inherit}pulumi-user-toggle .signed-in [slot=signed-in]{display:inherit}"}},bi=class extends HTMLElement{constructor(){super(),this.__registerHost(),this.defaultFormId=""}componentWillLoad(){this.parsedSessions=this.transformSessionData(JSON.parse(this.sessions));const e=En("date");if(e){const t=new Date(e);if(isNaN(t.getTime()))return;const n=this.parsedSessions.find((e=>{const n=new Date(e.key);return n.getFullYear()===t.getFullYear()&&n.getMonth()===t.getMonth()&&n.getDate()===t.getDate()}));n&&(this.defaultFormId=n.hubspotFormId)}}transformSessionData(e){return e.map((e=>{const t=new Date(e.datetime);return{hubspotFormId:e.hubspot_form_id,key:t.toLocaleString(void 0,{timeZoneName:"short",weekday:"short",year:"numeric",month:"long",day:"numeric",hour:"numeric",minute:"2-digit"})}}))}render(){return Xe("pulumi-multi-select-form",{items:this.parsedSessions,selectClass:this.selectClass,labelClass:this.labelClass,labelText:"Pick A Session",defaultFormId:this.defaultFormId})}static get style(){return":host{display:block}"}},wi=Kt(yn,[0,"event-session-registration-modal",{buttonClass:[1,"button-class"],buttonText:[1,"button-text"],modalTitle:[1,"modal-title"],eventSessions:[1,"event-sessions"],redirectUrl:[1,"redirect-url"],isModalOpen:[32],displayingContent:[32],selectedSessions:[32],skippedSessionSelection:[32],processingFormSubmissions:[32],formProcessor:[32],error:[32],submittedFormValues:[32]}]),Si=Kt(Tn,[0,"header-cta",{buttonClass:[1,"button-class"],loading:[32],isLoggedIn:[32]}]),_i=Kt(Pn,[0,"home-slots",{leftItems:[1,"left-items"],centerItems:[1,"center-items"],rightItems:[1,"right-items"],imageClass:[1,"image-class"],columnOne:[32],columnOneRotator:[32],columnTwo:[32],columnTwoRotator:[32],columnThree:[32],columnThreeRotator:[32]}]),Oi=Kt(Dn,[0,"pulumi-api-doc-filterable-nav",{baseDirectory:[1,"base-directory"],packageName:[1,"package-name"],isLoading:[32],parsedNodes:[32],currentlyRenderedNodes:[32],filterContent:[32]}]),xi=Kt(Mn,[4,"pulumi-api-doc-nav-node",{node:[16],href:[1],depth:[2],isExpanded:[1028,"is-expanded"]}]),$i=Kt(Nn,[0,"pulumi-api-doc-nav-tree",{nodes:[16],baseDirectory:[1,"base-directory"]}]),Ci=Kt(Rn,[0,"pulumi-audio",{url:[1],playingText:[1,"playing-text"],pausedText:[1,"paused-text"],paused:[32],isLoading:[32],error:[32]}]),Ei=Kt(qn,[4,"pulumi-banner",{name:[1],dismissible:[4],visible:[1540]},[[4,"rendered","onRendered"]]]),ki=Kt(Hn,[4,"pulumi-choosable",{type:[1025],value:[1025],values:[1025],mode:[1025],selection:[1025]},[[4,"rendered","onRendered"]]]),Ti=Kt(Xn,[4,"pulumi-chooser",{type:[1025],options:[1025],selection:[1025],optionStyle:[1025,"option-style"],mode:[1025],currentOptions:[32]},[[4,"rendered","onRendered"]]]),Pi=Kt(Qn,[0,"pulumi-contact-us-form",{items:[1],selectClass:[1,"select-class"],labelClass:[1,"label-class"],parsedItems:[32],defaultFormId:[32]}]),ji=Kt(gr,[0,"pulumi-convert",{from:[1],endpoint:[1],examples:[1],theme:[1],sourceFiles:[32],converting:[32],convertible:[32],alertDismissed:[32]}]),Ii=Kt(yr,[0,"pulumi-date-countdown",{dateString:[1,"date-string"],textClass:[1,"text-class"],containerClass:[1,"container-class"],valueLabelClass:[1,"value-label-class"],countdownOverText:[1,"countdown-over-text"],countdownData:[32]}]),Li=Kt(br,[0,"pulumi-date-countdown-circles",{dateString:[1,"date-string"],containerClass:[1,"container-class"],valueLabelClass:[1,"value-label-class"],countdownData:[32]}]),Ai=Kt(wr,[1,"pulumi-datetime",{class:[1],timeonly:[4],date:[1025]}]),Di=Kt(Sr,[0,"pulumi-developer-quotes",{quotes:[1]}]),Mi=Kt(_r,[4,"pulumi-example"]),Ni=Kt(Or,[4,"pulumi-examples"]),Ri=Kt(xr,[1,"pulumi-filter-select",{filters:[32]},[[0,"optionChange","onOptionChange"]]]),Fi=Kt($r,[1,"pulumi-filter-select-option",{label:[1],value:[1],selected:[4]}]),Bi=Kt(Cr,[1,"pulumi-filter-select-option-group",{name:[1],expanded:[516]},[[4,"click","onDocumentClick"]]]),zi=Kt(Er,[0,"pulumi-greenhouse-jobs-list",{departments:[32],loading:[32]}]),qi=Kt(kr,[0,"pulumi-hubspot-form",{formId:[1,"form-id"],salesforceCampaignId:[1,"salesforce-campaign-id"],goToWebinarKey:[1,"go-to-webinar-key"],class:[1],isLoading:[32],didLoad:[32]}]),Hi=Kt(Tr,[0,"pulumi-install",{os:[1025],tooltipContent:[32]}]),Wi=Kt(Pr,[0,"pulumi-multi-select-form",{items:[16],selectClass:[1,"select-class"],labelClass:[1,"label-class"],labelText:[1,"label-text"],defaultFormId:[1,"default-form-id"],selectedItem:[32],formSubmitted:[32]}]),Ui=Kt(jr,[0,"pulumi-pricing-calculator",{duration:[32],resourceCount:[32],utilization:[32],deploymentsExpanded:[32],deploymentMinutes:[32]}]),Vi=Kt(Ir,[0,"pulumi-registry-list-search",{filterContent:[32]}]),Gi=Kt(Lr,[0,"pulumi-resource-links",{packageName:[1,"package-name"],moduleName:[1,"module-name"],resourceName:[1,"resource-name"],related:[32]}]),Ki=Kt(to,[0,"pulumi-root"]),Ji=Kt(no,[0,"pulumi-slot-machine",{imageClass:[1,"image-class"],leftImages:[1,"left-images"],centerImages:[1,"center-images"],rightImages:[1,"right-images"]}]),Yi=Kt(ro,[4,"pulumi-swipeable"]),Xi=Kt(pi,[4,"pulumi-swiper",{speed:[2],loop:[4],autoplay:[4],autoplayDelay:[2,"autoplay-delay"],navControls:[4,"nav-controls"],slides:[2],centeredSlides:[4,"centered-slides"],initialSlide:[2,"initial-slide"],direction:[1],enableMouseEvents:[4,"enable-mouse-events"],spaceBetween:[2,"space-between"],swiperID:[32],containerClass:[32],nextBtnClass:[32],previousBtnClass:[32]}]),Qi=Kt(fi,[1,"pulumi-tab",{label:[1],active:[4]}]),Zi=Kt(hi,[1,"pulumi-tabs",{selectedTab:[32]}]),es=Kt(mi,[0,"pulumi-tertiary-nav",{items:[1025],tabContent:[1040],selection:[1032]}]),ts=Kt(vi,[4,"pulumi-tooltip",{id:[32],active:[32]}]),ns=Kt(gi,[0,"pulumi-top-button",{visible:[32]},[[9,"scroll","handleScroll"]]]),rs=Kt(yi,[4,"pulumi-user-toggle",{userId:[1025,"user-id"]},[[4,"rendered","handleRendered"]]]),os=Kt(bi,[0,"pulumi-webinar-form-select",{sessions:[1],selectClass:[1,"select-class"],labelClass:[1,"label-class"],parsedSessions:[32],defaultFormId:[32]}]);class is{constructor(e){this.serviceName=e,this.state=JSON.parse(window.localStorage.getItem(e)||"{}")}getState(){return this.state}getKey(e){return this.state[e]}updateKey(e,t){this.state=Object.assign(this.state,{[e]:t}),window.localStorage.setItem(this.serviceName,JSON.stringify(this.state))}}const ss=new is("navigation-toggle-state");function as(e,t){ss.updateKey(e.id,t)}function ls(e){$(e).each((function(e,t){!function(e){$(".toggleButton-topLevel",e).click((function(){$(this).closest(".toggle-topLevel, .toggleVisible-topLevel")[0]==e&&($(e).is(".toggle")?($(e).addClass("toggleVisible").removeClass("toggle"),as(e,"expanded")):($(e).addClass("toggle").removeClass("toggleVisible"),as(e,"collapsed")))}))}(t)}))}function us(e){$(e).each((function(e,t){!function(e){$(".toggleButton",e).click((function(){$(this).closest(".toggle, .toggleVisible")[0]==e&&($(e).is(".toggle")?$(e).addClass("toggleVisible").removeClass("toggle"):$(e).addClass("toggle").removeClass("toggleVisible"))}))}(t)}))}function cs(){$(".table-of-contents").hide();var e=$(".table-of-contents .content ul.table-of-contents-list");if(e){var t=!1,n=[];if($("h2, h3").each((function(){var r=$(this),o=r.attr("id"),i=r.text(),s=r.data("link-title"),a=r.prop("tagName").toLowerCase();if(o&&i){t=!0;var l=$("
  • "+(s||i)+"
  • ");e.append(l),n.push({element:r,listItem:l})}})),t){$(".table-of-contents").show();const e=()=>{var e;for(var t of n)!e&&t.element.offset().top>=window.scrollY&&(e=t),t.listItem.toggleClass("active",t===e)};$(window).on("scroll",(function(){e()})),e()}}}!function(){const e=e=>{const t=window.location.href,n=$(e).find("a").attr("href");return t.includes(n)};$(".toggle-topLevel, .toggleVisible-topLevel").each((function(t,n){"expanded"==ss.getKey(n.id)||e(n)?$(n).addClass("toggleVisible").removeClass("toggle"):"collapsed"==ss.getKey(n.id)&&$(n).addClass("toggle").removeClass("toggleVisible"),$(n).click((function(){const e=$(n).find(".folder-open"),t=$(n).find(".folder");e.length>0?e.addClass("folder").removeClass("folder-open"):t.length>0&&t.addClass("folder-open").removeClass("folder")}))})),$(".toggleVisible, .toggleVisible-topLevel").each((function(t,n){e(n)&&$("#left-nav").animate({scrollTop:$(n).offset().top-145},0)}))}(),function(e){const t=new IntersectionObserver((([t])=>{t.target.classList.toggle("is-pinned",t.intersectionRatio<1);const n=document.querySelector(".header-pinned"),r=document.querySelector(".hide-on-pinned"),o=document.querySelector(".header-hero-title");t.isIntersecting?(e(n).addClass("hidden"),e(n).removeClass("flex"),e(r).removeClass("hidden"),e(r).addClass("flex"),e(o).removeClass("hidden"),e(o).addClass("flex")):(e(n).removeClass("hidden"),e(n).addClass("flex"),e(r).addClass("hidden"),e(r).removeClass("flex"),e(o).addClass("hidden"),e(o).removeClass("flex"))}),{threshold:[1]}),n=document.querySelector(".header-container");if(n)t.observe(n);else{const e=document.querySelector(".top-nav-bar.registry");e&&t.observe(e)}us(".toggle"),us(".toggleVisible"),ls(".toggle-topLevel"),ls(".toggleVisible-topLevel"),cs(),e(".nav-header-toggle").click((function(){e(".nav-header-items").toggleClass("hidden")})),e(".blog-sidebar-toggle").click((function(){e(".blog-sidebar-content").toggleClass("hidden")})),e(".docs-sidebar-toggle").click((function(){e(".docs-sidebar-content").toggleClass("hidden")})),e("ul[data-shuffle='true']").each((function(t,n){var r=e(n).find("> li");r.each((function(t,n){e(n).css("order",Math.ceil(Math.random()*r.length))})),e(n).removeClass("invisible")})),e('#about-nav li[data-filter-name="who-we-are"]').addClass("active-about-nav-item"),e((function(){e("#about-nav li").click((function(){const t="active-about-nav-item";e(this).addClass(t);const n=e(this).data("filter-name");["who-we-are","what-we-believe","community","history","awards","newsroom","join-us"].filter((e=>e!==n)).forEach((n=>{e(`#about-nav li[data-filter-name="${n}"]`).removeClass(t)}))}))})),e("dl.resources-properties dt.property-required.property-replacement").removeAttr("title").find(".property-indicator").replaceWith('
    This property is required.
    Changes to this property will trigger replacement.
    '),e("dl.resources-properties dt.property-required:not(.property-replacement)").removeAttr("title").find(".property-indicator").replaceWith(' This property is required.'),e("dl.resources-properties dt.property-replacement:not(.property-required)").removeAttr("title").find(".property-indicator").replaceWith(' Changes to this property will trigger replacement.')}(jQuery),function(e,t){"ontouchstart"in e||(t(".nav-header-items li a").mouseenter((function(e){var n=t(e.target).data("submenu");t(".submenu-item").hide(),t(".submenu-item-"+n).show()})),t(".submenu").mouseleave((function(e){e.relatedTarget!==t("nav.nav-main").get(0)&&t(".submenu-item").hide()}))),function(){let e=!1,n=!1;t("#why-pulumi-menu-label").click((function(){t("#mobile-dropdown").scroll(),e?t("#mobile-dropdown").animate({scrollTop:top},300):t("#mobile-dropdown").animate({scrollTop:t("#why-pulumi-mobile-menu").position().top-115},300),e=!e})),t("#learn-menu-label").click((function(){t("#mobile-dropdown").scroll(),n?t("#mobile-dropdown").animate({scrollTop:top},300):t("#mobile-dropdown").animate({scrollTop:t("#learn-mobile-menu").position().top-115},300),n=!n}))}();const n=new is("banner-state"),r=t("#dismissable-banner");"true"!==n.getKey("dismissed")?t(r).css({display:"block"}):t(r).css({display:"none"}),t("#dismiss-banner").on("click",(function(e){e.preventDefault(),t(r).css({display:"none"}),n.updateKey("dismissed","true")}))}(document,jQuery);n(28);function ds(e){for(var t=window.location.search.substring(1).split("&"),n=0;n0&&($("div,span").each((function(n,r){var o=ps(r);for(n=0;n0&&t(o[0])}}$(document).on("rendered",(function(){var e;["language","os","cloud","k8s-language","input-kind"].forEach((function(e){var t=ds(e);t&&fs(e,t)})),ys("language",hs,"typescript"),-1!==navigator.appVersion.indexOf("Win")?e="windows":-1!==navigator.appVersion.indexOf("Mac")?e="macos":-1!==navigator.appVersion.indexOf("Linux")&&(e="linux"),ys("os",ms,e),ys("cloud",vs,"aws"),ys("k8s-language",gs,"typescript")}));n(245),n(21),n(931),n(161);function bs(e,t,n,r){return new(n||(n=Promise))((function(o,i){function s(e){try{l(r.next(e))}catch(e){i(e)}}function a(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}l((r=r.apply(e,t||[])).next())}))}function ws(e,t){var n,r,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,r=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!((o=(o=s.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]-1&&(r.checked=!0):r.checked=!0;var o=document.createElement("label");return o.innerText=e+"s",o.className="cursor-pointer",o.setAttribute("for",r.id),n.appendChild(r),n.appendChild(o),n}function t(){for(var e=$("input[type='checkbox']"),t=[],r=0;r-1)return!0}return!1}var r=$(".event-tags span"),o=$("#eventFilter");if(r.length&&o.length){for(var i=[],s=0;s-1?(_s('UA "Edge" => assuming success'),[2,!0]):Ms(document.body,e)?(_s("copyUsingTempSelection worked"),[2,!0]):function(e){var t=document.createElement("div");t.setAttribute("style","-webkit-user-select: text !important"),t.textContent="temporary element",document.body.appendChild(t);var n=Ms(t,e);return document.body.removeChild(t),n}(e)?(_s("copyUsingTempElem worked"),[2,!0]):function(e){_s("copyTextUsingDOM");var t=document.createElement("div");t.setAttribute("style","-webkit-user-select: text !important");var n=t;t.attachShadow&&(_s("Using shadow DOM."),n=t.attachShadow({mode:"open"}));var r=document.createElement("span");r.innerText=e,n.appendChild(r),document.body.appendChild(t),Ns(r);var o=document.execCommand("copy");return Rs(),document.body.removeChild(t),o}(e["text/plain"])?(_s("copyTextUsingDOM worked"),[2,!0]):[2,!1]}))}))}!function(){function e(e,t){var n;for(var r in void 0===t&&(t={}),this.types=Object.keys(e),this._items={},e){var o=e[r];this._items[r]="string"==typeof o?Bs(r,o):o}this.presentationStyle=null!==(n=null==t?void 0:t.presentationStyle)&&void 0!==n?n:"unspecified"}e.prototype.getType=function(e){return bs(this,void 0,void 0,(function(){return ws(this,(function(t){return[2,this._items[e]]}))}))}}();function Bs(e,t){return new Blob([t],{type:e})}function zs(e){var t="Copy";e.append('
    Copy
    ').on("click","button.copy-button",(function(){var e=$(this),n=e.parent().parent().parent().siblings("pre").children("code"),r=function(e,t){if(!t)return"";var n,r,o,i,s;switch(t=(t=t.replace("\r\n","\n")).trim(),e){case"bash":case"sh":case"shell":case"zsh":n="$ ",r="#",o=/\s+#.*$/m,i="\\",s=" && ";break;case"bat":case"batch":case"batchfile":n="> ",r="::",o=/\s+::.*$/m,i="^",s=" && ";break;case"powershell":case"posh":case"pwsh":n="> ",r="#",o=/\s+#.*$/m,i="`",s="; "}if(n){for(var a=[],l=t.split("\n"),u=!1,c=0;c0&&(t=a.join(s))}return-1!==navigator.appVersion.indexOf("Win")&&(t=t.replace("\n","\r\n")),t}(n.attr("data-lang"),n.text());r&&r.length>0&&function(e){bs(this,void 0,void 0,(function(){return ws(this,(function(t){if(Ts)return _s("Using `navigator.clipboard.writeText()`."),[2,Ts(e)];if(!Fs(function(e){var t={};return t["text/plain"]=e,t}(e)))throw new Error("writeText() failed");return[2]}))}))}(r),e.blur();var o=e.closest("pulumi-tooltip"),i=o.find("[slot='content']"),s=o.get(0);i.text("Copied!"),s.show().then((()=>{setTimeout((function(){s.hide().then((()=>i.text(t)))}),1e3)}))}))}$((function(){zs($(":not(.no-copy) > div.highlight"))}));n(506),n(498),n(490),n(366),n(756),n(399),n(40),n(140);var qs=n(290),Hs=n.n(qs);function Ws(e){return Ws="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ws(e)}function Us(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Vs(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function oa(e){return function(e){if(Array.isArray(e))return ia(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return ia(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ia(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ia(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function ja(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ia(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:20,n=[],r=0;r=3||2===n&&r>=4||1===n&&r>=10);function i(t,n,r){if(o&&void 0!==r){var i=r[0].__autocomplete_algoliaCredentials,s={"X-Algolia-Application-Id":i.appId,"X-Algolia-API-Key":i.apiKey};e.apply(void 0,[t].concat(ka(n),[{headers:s}]))}else e.apply(void 0,[t].concat(ka(n)))}return{init:function(t,n){e("init",{appId:t,apiKey:n})},setUserToken:function(t){e("setUserToken",t)},clickedObjectIDsAfterSearch:function(){for(var e=arguments.length,t=new Array(e),n=0;n0&&i("clickedObjectIDsAfterSearch",Da(t),t[0].items)},clickedObjectIDs:function(){for(var e=arguments.length,t=new Array(e),n=0;n0&&i("clickedObjectIDs",Da(t),t[0].items)},clickedFilters:function(){for(var t=arguments.length,n=new Array(t),r=0;r0&&e.apply(void 0,["clickedFilters"].concat(n))},convertedObjectIDsAfterSearch:function(){for(var e=arguments.length,t=new Array(e),n=0;n0&&i("convertedObjectIDsAfterSearch",Da(t),t[0].items)},convertedObjectIDs:function(){for(var e=arguments.length,t=new Array(e),n=0;n0&&i("convertedObjectIDs",Da(t),t[0].items)},convertedFilters:function(){for(var t=arguments.length,n=new Array(t),r=0;r0&&e.apply(void 0,["convertedFilters"].concat(n))},viewedObjectIDs:function(){for(var e=arguments.length,t=new Array(e),n=0;n0&&t.reduce((function(e,t){var n=t.items,r=Pa(t,Ca);return[].concat(ka(e),ka(Aa(Ia(Ia({},r),{},{objectIDs:(null==n?void 0:n.map((function(e){return e.objectID})))||r.objectIDs})).map((function(e){return{items:n,payload:e}}))))}),[]).forEach((function(e){var t=e.items;return i("viewedObjectIDs",[e.payload],t)}))},viewedFilters:function(){for(var t=arguments.length,n=new Array(t),r=0;r0&&e.apply(void 0,["viewedFilters"].concat(n))}}}function Na(e){var t=e.items.reduce((function(e,t){var n;return e[t.__autocomplete_indexName]=(null!==(n=e[t.__autocomplete_indexName])&&void 0!==n?n:[]).concat(t),e}),{});return Object.keys(t).map((function(e){return{index:e,items:t[e],algoliaSource:["autocomplete"]}}))}function Ra(e){return e.objectID&&e.__autocomplete_indexName&&e.__autocomplete_queryID}function Fa(e){return Fa="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Fa(e)}function Ba(e){return function(e){if(Array.isArray(e))return za(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return za(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return za(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function za(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&Ga({onItemsChange:r,items:n,insights:a,state:t}))}}),0);return{name:"aa.algoliaInsightsPlugin",subscribe:function(e){var t=e.setContext,n=e.onSelect,r=e.onActive;s("addAlgoliaAgent","insights-plugin"),t({algoliaInsightsPlugin:{__algoliaSearchParameters:{clickAnalytics:!0},insights:a}}),n((function(e){var t=e.item,n=e.state,r=e.event;Ra(t)&&o({state:n,event:r,insights:a,item:t,insightsEvents:[Ha({eventName:"Item Selected"},_a({item:t,items:l.current}))]})})),r((function(e){var t=e.item,n=e.state,r=e.event;Ra(t)&&i({state:n,event:r,insights:a,item:t,insightsEvents:[Ha({eventName:"Item Active"},_a({item:t,items:l.current}))]})}))},onStateChange:function(e){var t=e.state;u({state:t})},__autocomplete_pluginOptions:e}}function Ja(e){return Ja="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ja(e)}function Ya(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Xa(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==Ja(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Ja(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Ja(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Qa(e,t,n){var r,o=t.initialState;return{getState:function(){return o},dispatch:function(r,i){var s=function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n0},reshape:function(e){return e.sources}},e),{},{id:null!==(n=e.id)&&void 0!==n?n:sl(),plugins:o,initialState:ml({activeItemId:null,query:"",completion:null,collections:[],isOpen:!1,status:"idle",context:{}},e.initialState),onStateChange:function(t){var n;null===(n=e.onStateChange)||void 0===n||n.call(e,t),o.forEach((function(e){var n;return null===(n=e.onStateChange)||void 0===n?void 0:n.call(e,t)}))},onSubmit:function(t){var n;null===(n=e.onSubmit)||void 0===n||n.call(e,t),o.forEach((function(e){var n;return null===(n=e.onSubmit)||void 0===n?void 0:n.call(e,t)}))},onReset:function(t){var n;null===(n=e.onReset)||void 0===n||n.call(e,t),o.forEach((function(e){var n;return null===(n=e.onReset)||void 0===n?void 0:n.call(e,t)}))},getSources:function(n){return Promise.all([].concat(pl(o.map((function(e){return e.getSources}))),[e.getSources]).filter(Boolean).map((function(e){return function(e,t){var n=[];return Promise.resolve(e(t)).then((function(e){return Array.isArray(e),Promise.all(e.filter((function(e){return Boolean(e)})).map((function(e){if(e.sourceId,n.includes(e.sourceId))throw new Error("[Autocomplete] The `sourceId` ".concat(JSON.stringify(e.sourceId)," is not unique."));n.push(e.sourceId);var t={getItemInputValue:function(e){return e.state.query},getItemUrl:function(){},onSelect:function(e){(0,e.setIsOpen)(!1)},onActive:Sa,onResolve:Sa};Object.keys(t).forEach((function(e){t[e].__default=!0}));var r=ll(ll({},t),e);return Promise.resolve(r)})))}))}(e,n)}))).then((function(e){return Za(e)})).then((function(e){return e.map((function(e){return ml(ml({},e),{},{onSelect:function(n){e.onSelect(n),t.forEach((function(e){var t;return null===(t=e.onSelect)||void 0===t?void 0:t.call(e,n)}))},onActive:function(n){e.onActive(n),t.forEach((function(e){var t;return null===(t=e.onActive)||void 0===t?void 0:t.call(e,n)}))},onResolve:function(n){e.onResolve(n),t.forEach((function(e){var t;return null===(t=e.onResolve)||void 0===t?void 0:t.call(e,n)}))}})}))}))},navigator:ml({navigate:function(e){var t=e.itemUrl;r.location.assign(t)},navigateNewTab:function(e){var t=e.itemUrl,n=r.open(t,"_blank","noopener");null==n||n.focus()},navigateNewWindow:function(e){var t=e.itemUrl;r.open(t,"_blank","noopener")}},e.navigator)})}function yl(e){return yl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},yl(e)}function bl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function wl(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var Gl,Kl,Jl,Yl=null,Xl=(Gl=-1,Kl=-1,Jl=void 0,function(e){var t=++Gl;return Promise.resolve(e).then((function(e){return Jl&&t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var iu=/((gt|sm)-|galaxy nexus)|samsung[- ]/i;function su(e){return su="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},su(e)}var au=["props","refresh","store"],lu=["inputElement","formElement","panelElement"],uu=["inputElement"],cu=["inputElement","maxLength"],du=["sourceIndex"],pu=["sourceIndex"],fu=["item","source","sourceIndex"];function hu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function mu(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function yu(e){var t=e.props,n=e.refresh,r=e.store,o=gu(e,au),i=function(e,t){return void 0!==t?"".concat(e,"-").concat(t):e};return{getEnvironmentProps:function(e){var n=e.inputElement,o=e.formElement,i=e.panelElement;function s(e){!r.getState().isOpen&&r.pendingRequests.isEmpty()||e.target===n||!1===[o,i].some((function(t){return n=t,r=e.target,n===r||n.contains(r);var n,r}))&&(r.dispatch("blur",null),t.debug||r.pendingRequests.cancelAll())}return mu({onTouchStart:s,onMouseDown:s,onTouchMove:function(e){!1!==r.getState().isOpen&&n===t.environment.document.activeElement&&e.target!==n&&n.blur()}},gu(e,lu))},getRootProps:function(e){return mu({role:"combobox","aria-expanded":r.getState().isOpen,"aria-haspopup":"listbox","aria-owns":r.getState().isOpen?"".concat(t.id,"-list"):void 0,"aria-labelledby":"".concat(t.id,"-label")},e)},getFormProps:function(e){e.inputElement;return mu({action:"",noValidate:!0,role:"search",onSubmit:function(i){var s;i.preventDefault(),t.onSubmit(mu({event:i,refresh:n,state:r.getState()},o)),r.dispatch("submit",null),null===(s=e.inputElement)||void 0===s||s.blur()},onReset:function(i){var s;i.preventDefault(),t.onReset(mu({event:i,refresh:n,state:r.getState()},o)),r.dispatch("reset",null),null===(s=e.inputElement)||void 0===s||s.focus()}},gu(e,uu))},getLabelProps:function(e){var n=e||{},r=n.sourceIndex,o=gu(n,du);return mu({htmlFor:"".concat(i(t.id,r),"-input"),id:"".concat(i(t.id,r),"-label")},o)},getInputProps:function(e){var i;function s(e){(t.openOnFocus||Boolean(r.getState().query))&&Ql(mu({event:e,props:t,query:r.getState().completion||r.getState().query,refresh:n,store:r},o)),r.dispatch("focus",null)}var a=e||{},l=(a.inputElement,a.maxLength),u=void 0===l?512:l,c=gu(a,cu),d=Bl(r.getState()),p=function(e){return Boolean(e&&e.match(iu))}((null===(i=t.environment.navigator)||void 0===i?void 0:i.userAgent)||""),f=null!=d&&d.itemUrl&&!p?"go":"search";return mu({"aria-autocomplete":"both","aria-activedescendant":r.getState().isOpen&&null!==r.getState().activeItemId?"".concat(t.id,"-item-").concat(r.getState().activeItemId):void 0,"aria-controls":r.getState().isOpen?"".concat(t.id,"-list"):void 0,"aria-labelledby":"".concat(t.id,"-label"),value:r.getState().completion||r.getState().query,id:"".concat(t.id,"-input"),autoComplete:"off",autoCorrect:"off",autoCapitalize:"off",enterKeyHint:f,spellCheck:"false",autoFocus:t.autoFocus,placeholder:t.placeholder,maxLength:u,type:"search",onChange:function(e){Ql(mu({event:e,props:t,query:e.currentTarget.value.slice(0,u),refresh:n,store:r},o))},onKeyDown:function(e){!function(e){var t=e.event,n=e.props,r=e.refresh,o=e.store,i=ou(e,eu);if("ArrowUp"===t.key||"ArrowDown"===t.key){var s=function(){var e=n.environment.document.getElementById("".concat(n.id,"-item-").concat(o.getState().activeItemId));e&&(e.scrollIntoViewIfNeeded?e.scrollIntoViewIfNeeded(!1):e.scrollIntoView(!1))},a=function(){var e=Bl(o.getState());if(null!==o.getState().activeItemId&&e){var n=e.item,s=e.itemInputValue,a=e.itemUrl,l=e.source;l.onActive(nu({event:t,item:n,itemInputValue:s,itemUrl:a,refresh:r,source:l,state:o.getState()},i))}};t.preventDefault(),!1===o.getState().isOpen&&(n.openOnFocus||Boolean(o.getState().query))?Ql(nu({event:t,props:n,query:o.getState().query,refresh:r,store:o},i)).then((function(){o.dispatch(t.key,{nextActiveItemId:n.defaultActiveItemId}),a(),setTimeout(s,0)})):(o.dispatch(t.key,{}),a(),s())}else if("Escape"===t.key)t.preventDefault(),o.dispatch(t.key,null),o.pendingRequests.cancelAll();else if("Tab"===t.key)o.dispatch("blur",null),o.pendingRequests.cancelAll();else if("Enter"===t.key){if(null===o.getState().activeItemId||o.getState().collections.every((function(e){return 0===e.items.length})))return void(n.debug||o.pendingRequests.cancelAll());t.preventDefault();var l=Bl(o.getState()),u=l.item,c=l.itemInputValue,d=l.itemUrl,p=l.source;if(t.metaKey||t.ctrlKey)void 0!==d&&(p.onSelect(nu({event:t,item:u,itemInputValue:c,itemUrl:d,refresh:r,source:p,state:o.getState()},i)),n.navigator.navigateNewTab({itemUrl:d,item:u,state:o.getState()}));else if(t.shiftKey)void 0!==d&&(p.onSelect(nu({event:t,item:u,itemInputValue:c,itemUrl:d,refresh:r,source:p,state:o.getState()},i)),n.navigator.navigateNewWindow({itemUrl:d,item:u,state:o.getState()}));else if(t.altKey);else{if(void 0!==d)return p.onSelect(nu({event:t,item:u,itemInputValue:c,itemUrl:d,refresh:r,source:p,state:o.getState()},i)),void n.navigator.navigate({itemUrl:d,item:u,state:o.getState()});Ql(nu({event:t,nextState:{isOpen:!1},props:n,query:c,refresh:r,store:o},i)).then((function(){p.onSelect(nu({event:t,item:u,itemInputValue:c,itemUrl:d,refresh:r,source:p,state:o.getState()},i))}))}}}(mu({event:e,props:t,refresh:n,store:r},o))},onFocus:s,onBlur:Sa,onClick:function(n){e.inputElement!==t.environment.document.activeElement||r.getState().isOpen||s(n)}},c)},getPanelProps:function(e){return mu({onMouseDown:function(e){e.preventDefault()},onMouseLeave:function(){r.dispatch("mouseleave",null)}},e)},getListProps:function(e){var n=e||{},r=n.sourceIndex,o=gu(n,pu);return mu({role:"listbox","aria-labelledby":"".concat(i(t.id,r),"-label"),id:"".concat(i(t.id,r),"-list")},o)},getItemProps:function(e){var s=e.item,a=e.source,l=e.sourceIndex,u=gu(e,fu);return mu({id:"".concat(i(t.id,l),"-item-").concat(s.__autocomplete_id),role:"option","aria-selected":r.getState().activeItemId===s.__autocomplete_id,onMouseMove:function(e){if(s.__autocomplete_id!==r.getState().activeItemId){r.dispatch("mousemove",s.__autocomplete_id);var t=Bl(r.getState());if(null!==r.getState().activeItemId&&t){var i=t.item,a=t.itemInputValue,l=t.itemUrl,u=t.source;u.onActive(mu({event:e,item:i,itemInputValue:a,itemUrl:l,refresh:n,source:u,state:r.getState()},o))}}},onMouseDown:function(e){e.preventDefault()},onClick:function(e){var i=a.getItemInputValue({item:s,state:r.getState()}),l=a.getItemUrl({item:s,state:r.getState()});(l?Promise.resolve():Ql(mu({event:e,nextState:{isOpen:!1},props:t,query:i,refresh:n,store:r},o))).then((function(){a.onSelect(mu({event:e,item:s,itemInputValue:i,itemUrl:l,refresh:n,source:a,state:r.getState()},o))}))}},u)}}}function bu(e){return bu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},bu(e)}function wu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Su(e){for(var t=1;t=n?null===r?null:0:o}function Cu(e){return Cu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Cu(e)}function Eu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ku(e){for(var t=1;t=5&&((o||!e&&5===r)&&(s.push(r,0,o,n),r=6),e&&(s.push(r,e,0,n),r=6)),o=""},l=0;l"===t?(r=1,o=""):o=t+o[0]:i?t===i?i="":o+=t:'"'===t||"'"===t?i=t:">"===t?(a(),r=1):r&&("="===t?(r=5,n=o,o=""):"/"===t&&(r<5||">"===e[l][u+1])?(a(),3===r&&(s=s[0]),r=s,(s=s[0]).push(2,0,r),r=0):" "===t||"\t"===t||"\n"===t||"\r"===t?(a(),r=2):o+=t),3===r&&"!--"===o&&(r=4,s=s[0])}return a(),s}(e)),t),arguments,[])).length>1?t:t[0]}var Fu=function(e){var t=e.environment,n=t.document.createElementNS("http://www.w3.org/2000/svg","svg");n.setAttribute("class","aa-SubmitIcon"),n.setAttribute("viewBox","0 0 24 24"),n.setAttribute("width","20"),n.setAttribute("height","20"),n.setAttribute("fill","currentColor");var r=t.document.createElementNS("http://www.w3.org/2000/svg","path");return r.setAttribute("d","M16.041 15.856c-0.034 0.026-0.067 0.055-0.099 0.087s-0.060 0.064-0.087 0.099c-1.258 1.213-2.969 1.958-4.855 1.958-1.933 0-3.682-0.782-4.95-2.050s-2.050-3.017-2.050-4.95 0.782-3.682 2.050-4.95 3.017-2.050 4.95-2.050 3.682 0.782 4.95 2.050 2.050 3.017 2.050 4.95c0 1.886-0.745 3.597-1.959 4.856zM21.707 20.293l-3.675-3.675c1.231-1.54 1.968-3.493 1.968-5.618 0-2.485-1.008-4.736-2.636-6.364s-3.879-2.636-6.364-2.636-4.736 1.008-6.364 2.636-2.636 3.879-2.636 6.364 1.008 4.736 2.636 6.364 3.879 2.636 6.364 2.636c2.125 0 4.078-0.737 5.618-1.968l3.675 3.675c0.391 0.391 1.024 0.391 1.414 0s0.391-1.024 0-1.414z"),n.appendChild(r),n},Bu=function(e){var t=e.environment,n=t.document.createElementNS("http://www.w3.org/2000/svg","svg");n.setAttribute("class","aa-ClearIcon"),n.setAttribute("viewBox","0 0 24 24"),n.setAttribute("width","18"),n.setAttribute("height","18"),n.setAttribute("fill","currentColor");var r=t.document.createElementNS("http://www.w3.org/2000/svg","path");return r.setAttribute("d","M5.293 6.707l5.293 5.293-5.293 5.293c-0.391 0.391-0.391 1.024 0 1.414s1.024 0.391 1.414 0l5.293-5.293 5.293 5.293c0.391 0.391 1.024 0.391 1.414 0s0.391-1.024 0-1.414l-5.293-5.293 5.293-5.293c0.391-0.391 0.391-1.024 0-1.414s-1.024-0.391-1.414 0l-5.293 5.293-5.293-5.293c-0.391-0.391-1.024-0.391-1.414 0s-0.391 1.024 0 1.414z"),n.appendChild(r),n},zu=function(e){var t=e.environment.document.createElementNS("http://www.w3.org/2000/svg","svg");return t.setAttribute("class","aa-LoadingIcon"),t.setAttribute("viewBox","0 0 100 100"),t.setAttribute("width","20"),t.setAttribute("height","20"),t.innerHTML='\n \n',t},qu=["ontouchstart","ontouchend","ontouchmove","ontouchcancel"];function Hu(e,t,n){e[t]=null===n?"":"number"!=typeof n?n:n+"px"}function Wu(e){this._listeners[e.type](e)}function Uu(e,t,n){var r,o,i=e[t];if("style"===t)if("string"==typeof n)e.style=n;else if(null===n)e.style="";else for(t in n)i&&n[t]===i[t]||Hu(e.style,t,n[t]);else"o"===t[0]&&"n"===t[1]?(r=t!==(t=t.replace(/Capture$/,"")),((o=t.toLowerCase())in e||qu.includes(o))&&(t=o),t=t.slice(2),e._listeners||(e._listeners={}),e._listeners[t]=n,n?i||e.addEventListener(t,Wu,r):e.removeEventListener(t,Wu,r)):"list"!==t&&"tagName"!==t&&"form"!==t&&"type"!==t&&"size"!==t&&"download"!==t&&"href"!==t&&t in e?e[t]=null==n?"":n:"function"!=typeof n&&"dangerouslySetInnerHTML"!==t&&(null==n||!1===n&&!/^ar/.test(t)?e.removeAttribute(t):e.setAttribute(t,n))}function Vu(e){return"onChange"===e?"onInput":e}function Gu(e,t){for(var n in t)Uu(e,Vu(n),t[n])}function Ku(e,t){for(var n in t)"o"===n[0]&&"n"===n[1]||Uu(e,Vu(n),t[n])}var Ju=["children"];function Yu(e){return function(e){if(Array.isArray(e))return Xu(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Xu(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Xu(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Xu(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Zu(e){return function(t,n){var r=n.children,o=void 0===r?[]:r,i=Qu(n,Ju),s=e.document.createElement(t);return Gu(s,i),s.append.apply(s,Yu(o)),s}}function ec(e){return ec="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ec(e)}var tc=["autocompleteScopeApi","environment","classNames","getInputProps","getInputPropsCore","isDetached","state"];function nc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function rc(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function sc(e){return sc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},sc(e)}function ac(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function lc(e){for(var t=1;t2&&(s.children=arguments.length>3?dc.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(i in e.defaultProps)void 0===s[i]&&(s[i]=e.defaultProps[i]);return xc(e,s,r,o,null)}function xc(e,t,n,r,o){var i={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==o?++fc:o};return null==o&&null!=pc.vnode&&pc.vnode(i),i}function $c(e){return e.children}function Cc(e,t){this.props=e,this.context=t}function Ec(e,t){if(null==t)return e.__?Ec(e.__,e.__.__k.indexOf(e)+1):null;for(var n;tt&&hc.sort(gc));Pc.__r=0}function jc(e,t,n,r,o,i,s,a,l,u){var c,d,p,f,h,m,v,g=r&&r.__k||bc,y=g.length;for(n.__k=[],c=0;c0?xc(f.type,f.props,f.key,f.ref?f.ref:null,f.__v):f)){if(f.__=n,f.__b=n.__b+1,null===(p=g[c])||p&&f.key==p.key&&f.type===p.type)g[c]=void 0;else for(d=0;d=0;t--)if((n=e.__k[t])&&(r=Ac(n)))return r;return null}function Dc(e,t,n){"-"===t[0]?e.setProperty(t,null==n?"":n):e[t]=null==n?"":"number"!=typeof n||wc.test(t)?n:n+"px"}function Mc(e,t,n,r,o){var i;e:if("style"===t)if("string"==typeof n)e.style.cssText=n;else{if("string"==typeof r&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||Dc(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||Dc(e.style,t,n[t])}else if("o"===t[0]&&"n"===t[1])i=t!==(t=t.replace(/Capture$/,"")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=n,n?r||e.addEventListener(t,i?Rc:Nc,i):e.removeEventListener(t,i?Rc:Nc,i);else if("dangerouslySetInnerHTML"!==t){if(o)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!==t&&"height"!==t&&"href"!==t&&"list"!==t&&"form"!==t&&"tabIndex"!==t&&"download"!==t&&t in e)try{e[t]=null==n?"":n;break e}catch(e){}"function"==typeof n||(null==n||!1===n&&"-"!==t[4]?e.removeAttribute(t):e.setAttribute(t,n))}}function Nc(e){return this.l[e.type+!1](pc.event?pc.event(e):e)}function Rc(e){return this.l[e.type+!0](pc.event?pc.event(e):e)}function Fc(e,t,n,r,o,i,s,a,l){var u,c,d,p,f,h,m,v,g,y,b,w,S,_,O,x=t.type;if(void 0!==t.constructor)return null;null!=n.__h&&(l=n.__h,a=t.__e=n.__e,t.__h=null,i=[a]),(u=pc.__b)&&u(t);try{e:if("function"==typeof x){if(v=t.props,g=(u=x.contextType)&&r[u.__c],y=u?g?g.props.value:u.__:r,n.__c?m=(c=t.__c=n.__c).__=c.__E:("prototype"in x&&x.prototype.render?t.__c=c=new x(v,y):(t.__c=c=new Cc(v,y),c.constructor=x,c.render=Hc),g&&g.sub(c),c.props=v,c.state||(c.state={}),c.context=y,c.__n=r,d=c.__d=!0,c.__h=[],c._sb=[]),null==c.__s&&(c.__s=c.state),null!=x.getDerivedStateFromProps&&(c.__s==c.state&&(c.__s=Sc({},c.__s)),Sc(c.__s,x.getDerivedStateFromProps(v,c.__s))),p=c.props,f=c.state,c.__v=t,d)null==x.getDerivedStateFromProps&&null!=c.componentWillMount&&c.componentWillMount(),null!=c.componentDidMount&&c.__h.push(c.componentDidMount);else{if(null==x.getDerivedStateFromProps&&v!==p&&null!=c.componentWillReceiveProps&&c.componentWillReceiveProps(v,y),!c.__e&&null!=c.shouldComponentUpdate&&!1===c.shouldComponentUpdate(v,c.__s,y)||t.__v===n.__v){for(t.__v!==n.__v&&(c.props=v,c.state=c.__s,c.__d=!1),c.__e=!1,t.__e=n.__e,t.__k=n.__k,t.__k.forEach((function(e){e&&(e.__=t)})),b=0;b0&&void 0!==arguments[0]?arguments[0]:[],t=e;return{get:function(){return t},add:function(e){var n=t[t.length-1];(null==n?void 0:n.isHighlighted)===e.isHighlighted?t[t.length-1]={value:n.value+e.value,isHighlighted:n.isHighlighted}:t.push(e)}}}(n?[{value:n,isHighlighted:!1}]:[]);return t.forEach((function(e){var t=e.split(Xs);r.add({value:t[0],isHighlighted:!0}),""!==t[1]&&r.add({value:t[1],isHighlighted:!1})})),r.get()}function Gc(e){return function(e){if(Array.isArray(e))return Kc(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Kc(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Kc(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Kc(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n",""":'"',"'":"'"},Qc=new RegExp(/\w/i),Zc=/&(amp|quot|lt|gt|#39);/g,ed=RegExp(Zc.source);function td(e,t){var n,r,o,i=e[t],s=(null===(n=e[t+1])||void 0===n?void 0:n.isHighlighted)||!0,a=(null===(r=e[t-1])||void 0===r?void 0:r.isHighlighted)||!0;return Qc.test((o=i.value)&&ed.test(o)?o.replace(Zc,(function(e){return Xc[e]})):o)||a!==s?i.isHighlighted:a}function nd(e){return nd="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},nd(e)}function rd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function od(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var Sd={clearButton:"aa-ClearButton",detachedCancelButton:"aa-DetachedCancelButton",detachedContainer:"aa-DetachedContainer",detachedFormContainer:"aa-DetachedFormContainer",detachedOverlay:"aa-DetachedOverlay",detachedSearchButton:"aa-DetachedSearchButton",detachedSearchButtonIcon:"aa-DetachedSearchButtonIcon",detachedSearchButtonPlaceholder:"aa-DetachedSearchButtonPlaceholder",detachedSearchButtonQuery:"aa-DetachedSearchButtonQuery",form:"aa-Form",input:"aa-Input",inputWrapper:"aa-InputWrapper",inputWrapperPrefix:"aa-InputWrapperPrefix",inputWrapperSuffix:"aa-InputWrapperSuffix",item:"aa-Item",label:"aa-Label",list:"aa-List",loadingIndicator:"aa-LoadingIndicator",panel:"aa-Panel",panelLayout:"aa-PanelLayout aa-Panel--scrollable",root:"aa-Autocomplete",source:"aa-Source",sourceFooter:"aa-SourceFooter",sourceHeader:"aa-SourceHeader",sourceNoResults:"aa-SourceNoResults",submitButton:"aa-SubmitButton"},_d=function(e,t){var n=e.children;(0,e.render)(n,t)},Od={createElement:Oc,Fragment:$c,render:Wc};function xd(e){var t=e.panelPlacement,n=e.container,r=e.form,o=e.environment,i=n.getBoundingClientRect(),s=(o.pageYOffset||o.document.documentElement.scrollTop||o.document.body.scrollTop||0)+i.top+i.height;switch(t){case"start":return{top:s,left:i.left};case"end":return{top:s,right:o.document.documentElement.clientWidth-(i.left+i.width)};case"full-width":return{top:s,left:0,right:0,width:"unset",maxWidth:"unset"};case"input-wrapper-width":var a=r.getBoundingClientRect();return{top:s,left:a.left,right:o.document.documentElement.clientWidth-(a.left+a.width),width:"unset",maxWidth:"unset"};default:throw new Error("[Autocomplete] The `panelPlacement` value ".concat(JSON.stringify(t)," is not valid."))}}function $d(e){return $d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},$d(e)}function Cd(){return Cd=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Ud(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Vd(e){for(var t=1;t0;if(!p.value.core.openOnFocus&&!t.query)return n;var r=Boolean(u.current||p.value.renderer.renderNoResults);return!n&&r||n},__autocomplete_metadata:{userAgents:sa,options:e}}))})),m=ya(Vd({collections:[],completion:null,context:{},isOpen:!1,query:"",activeItemId:null,status:"idle"},p.value.core.initialState)),v={getEnvironmentProps:p.value.renderer.getEnvironmentProps,getFormProps:p.value.renderer.getFormProps,getInputProps:p.value.renderer.getInputProps,getItemProps:p.value.renderer.getItemProps,getLabelProps:p.value.renderer.getLabelProps,getListProps:p.value.renderer.getListProps,getPanelProps:p.value.renderer.getPanelProps,getRootProps:p.value.renderer.getRootProps},g={setActiveItemId:h.value.setActiveItemId,setQuery:h.value.setQuery,setCollections:h.value.setCollections,setIsOpen:h.value.setIsOpen,setStatus:h.value.setStatus,setContext:h.value.setContext,refresh:h.value.refresh,navigator:h.value.navigator},y=a((function(){return Ru.bind(p.value.renderer.renderer.createElement)})),b=a((function(){return cc({autocomplete:h.value,autocompleteScopeApi:g,classNames:p.value.renderer.classNames,environment:p.value.core.environment,isDetached:f.value,placeholder:p.value.core.placeholder,propGetters:v,setIsModalOpen:O,state:m.current,translations:p.value.renderer.translations})}));function w(){Gu(b.value.panel,{style:f.value?{}:xd({panelPlacement:p.value.renderer.panelPlacement,container:b.value.root,form:b.value.form,environment:p.value.core.environment})})}function S(e){m.current=e;var t={autocomplete:h.value,autocompleteScopeApi:g,classNames:p.value.renderer.classNames,components:p.value.renderer.components,container:p.value.renderer.container,html:y.value,dom:b.value,panelContainer:f.value?b.value.detachedContainer:p.value.renderer.panelContainer,propGetters:v,state:m.current,renderer:p.value.renderer.renderer},n=!ol(e)&&!u.current&&p.value.renderer.renderNoResults||p.value.renderer.render;!function(e){var t=e.autocomplete,n=e.autocompleteScopeApi,r=e.dom,o=e.propGetters,i=e.state;Ku(r.root,o.getRootProps(kd({state:i,props:t.getRootProps({})},n))),Ku(r.input,o.getInputProps(kd({state:i,props:t.getInputProps({inputElement:r.input}),inputElement:r.input},n))),Gu(r.label,{hidden:"stalled"===i.status}),Gu(r.loadingIndicator,{hidden:"stalled"!==i.status}),Gu(r.clearButton,{hidden:!i.query}),Gu(r.detachedSearchButtonQuery,{textContent:i.query}),Gu(r.detachedSearchButtonPlaceholder,{hidden:Boolean(i.query)})}(t),function(e,t){var n=t.autocomplete,r=t.autocompleteScopeApi,o=t.classNames,i=t.html,s=t.dom,a=t.panelContainer,l=t.propGetters,u=t.state,c=t.components,d=t.renderer;if(u.isOpen){a.contains(s.panel)||"loading"===u.status||a.appendChild(s.panel),s.panel.classList.toggle("aa-Panel--stalled","stalled"===u.status);var p=u.collections.filter((function(e){var t=e.source,n=e.items;return t.templates.noResults||n.length>0})).map((function(e,t){var s=e.source,a=e.items;return d.createElement("section",{key:t,className:o.source,"data-autocomplete-source-id":s.sourceId},s.templates.header&&d.createElement("div",{className:o.sourceHeader},s.templates.header({components:c,createElement:d.createElement,Fragment:d.Fragment,items:a,source:s,state:u,html:i})),s.templates.noResults&&0===a.length?d.createElement("div",{className:o.sourceNoResults},s.templates.noResults({components:c,createElement:d.createElement,Fragment:d.Fragment,source:s,state:u,html:i})):d.createElement("ul",Cd({className:o.list},l.getListProps(kd({state:u,props:n.getListProps({sourceIndex:t})},r))),a.map((function(e){var a=n.getItemProps({item:e,source:s,sourceIndex:t});return d.createElement("li",Cd({key:a.id,className:o.item},l.getItemProps(kd({state:u,props:a},r))),s.templates.item({components:c,createElement:d.createElement,Fragment:d.Fragment,item:e,state:u,html:i}))}))),s.templates.footer&&d.createElement("div",{className:o.sourceFooter},s.templates.footer({components:c,createElement:d.createElement,Fragment:d.Fragment,items:a,source:s,state:u,html:i})))})),f=d.createElement(d.Fragment,null,d.createElement("div",{className:o.panelLayout},p),d.createElement("div",{className:"aa-GradientBottom"})),h=p.reduce((function(e,t){return e[t.props["data-autocomplete-source-id"]]=t,e}),{});e(kd(kd({children:f,state:u,sections:p,elements:h},d),{},{components:c,html:i},r),s.panel)}else a.contains(s.panel)&&a.removeChild(s.panel)}(n,t)}function _(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};o();var t=p.value.renderer,n=t.components,r=Wd(t,qd);c.current=Ad(r,p.value.core,{components:zd(n,(function(e){return!e.value.hasOwnProperty("__autocomplete_componentName")})),initialState:m.current},e),l(),i(),h.value.refresh().then((function(){S(m.current)}))}function O(e){requestAnimationFrame((function(){var t=p.value.core.environment.document.body.contains(b.value.detachedOverlay);e!==t&&(e?(p.value.core.environment.document.body.appendChild(b.value.detachedOverlay),p.value.core.environment.document.body.classList.add("aa-Detached"),b.value.input.focus()):(p.value.core.environment.document.body.removeChild(b.value.detachedOverlay),p.value.core.environment.document.body.classList.remove("aa-Detached")))}))}return r((function(){var e=h.value.getEnvironmentProps({formElement:b.value.form,panelElement:b.value.panel,inputElement:b.value.input});return Gu(p.value.core.environment,e),function(){Gu(p.value.core.environment,Object.keys(e).reduce((function(e,t){return Vd(Vd({},e),{},Gd({},t,void 0))}),{}))}})),r((function(){var e=f.value?p.value.core.environment.document.body:p.value.renderer.panelContainer,t=f.value?b.value.detachedOverlay:b.value.panel;return f.value&&m.current.isOpen&&O(!0),S(m.current),function(){e.contains(t)&&e.removeChild(t)}})),r((function(){var e=p.value.renderer.container;return e.appendChild(b.value.root),function(){e.removeChild(b.value.root)}})),r((function(){var e=ga((function(e){S(e.state)}),0);return d.current=function(t){var n=t.state,r=t.prevState;(f.value&&r.isOpen!==n.isOpen&&O(n.isOpen),f.value||!n.isOpen||r.isOpen||w(),n.query!==r.query)&&p.value.core.environment.document.querySelectorAll(".aa-Panel--scrollable").forEach((function(e){0!==e.scrollTop&&(e.scrollTop=0)}));e({state:n})},function(){d.current=void 0}})),r((function(){var e=ga((function(){var e=f.value;f.value=p.value.core.environment.matchMedia(p.value.renderer.detachedMediaQuery).matches,e!==f.value?_({}):requestAnimationFrame(w)}),20);return p.value.core.environment.addEventListener("resize",e),function(){p.value.core.environment.removeEventListener("resize",e)}})),r((function(){if(!f.value)return function(){};function e(e){b.value.detachedContainer.classList.toggle("aa-DetachedContainer--modal",e)}function t(t){e(t.matches)}var n=p.value.core.environment.matchMedia(getComputedStyle(p.value.core.environment.document.documentElement).getPropertyValue("--aa-detached-modal-media-query"));e(n.matches);var r=Boolean(n.addEventListener);return r?n.addEventListener("change",t):n.addListener(t),function(){r?n.removeEventListener("change",t):n.removeListener(t)}})),r((function(){return requestAnimationFrame(w),function(){}})),Vd(Vd({},g),{},{update:_,destroy:function(){o()}})}function Jd(e){return Jd="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Jd(e)}function Yd(e){return function(e){if(Array.isArray(e))return Xd(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Xd(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Xd(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Xd(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n`(${e[t].map((({label:e})=>`${t}:"${e}"`)).join(" OR ")})`)).join(` ${t} `)}function lp(e,t){return e.reduce(((e,n)=>{const r=t(n);return e.hasOwnProperty(r)||(e[r]=[]),e[r].push(n),e}),{})}function up(e){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=sp(e),n=t.initialTags,r=t.getTagsSubscribers,o=t.transformSource,i=t.onChange,s=tp({initialTags:n}),a={setTags:s.set,addTags:s.add};return{name:"aa.tagsPlugin",subscribe:function(e){var t=e.setContext,n=e.onSelect,o=e.setIsOpen,l=e.refresh,u=r();t({tagsPlugin:op(op({},a),{},{tags:s.get()})}),n((function(e){var t=e.source,n=e.item,r=u.find((function(e){return e.sourceId===t.sourceId}));r&&s.add([r.getTag({item:n})])})),s.onChange((function(n){var r=n.prevTags;t({tagsPlugin:op(op({},a),{},{tags:s.get()})}),o(!0),i(op(op({},e),{},{prevTags:r,tags:s.get()})),l()}))},getSources:function(e){var t=e.state;return[o({source:{sourceId:"tagsPlugin",getItems:function(){return s.get()},onSelect:function(e){e.item.remove()},templates:{item:function(e){var t=e.item,n=e.createElement;return n("div",{className:"aa-TagsPlugin-Tag"},n("span",{className:"aa-TagsPlugin-TagLabel"},t.label),n("button",{className:"aa-TagsPlugin-RemoveButton",title:"Remove this tag"},n("svg",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,viewBox:"0 0 24 24"},n("path",{d:"M18 6L6 18"}),n("path",{d:"M6 6L18 18"}))))}}},state:t})]},data:op(op({},a),{},{get tags(){return s.get()}}),__autocomplete_pluginOptions:e}}({initialTags:e,transformSource:({source:e})=>{},getTagsSubscribers:()=>[{sourceId:"section",getTag:({item:e})=>e}]})}function cp(e,t){var n,r;null===(r=null===(n=e.context)||void 0===n?void 0:n.tagsPlugin)||void 0===r||r.setTags(t)}function dp(e){var t,n;return(null===(n=null===(t=e.context)||void 0===t?void 0:t.tagsPlugin)||void 0===n?void 0:n.tags)||[]}const pp=function(e,t){let n;return(...r)=>(n&&clearTimeout(n),new Promise((o=>{n=setTimeout((()=>o(e(...r))),t)})))}((e=>Promise.resolve(e)),220);function fp(e){return e>1e3?`${Math.ceil(e/1e3)}K`:e.toString()}function hp(e){return"Registry"===e?"Packages":e}function mp(e){switch(e){case"Docs":return"/icons/docs.svg";case"Registry":return"/icons/registry.svg";case"Tutorials":return"/icons/graduation-cap.svg"}return"/icons/list.svg"}let vp,gp,yp,bp,wp;function Sp(e){if(vp=e.getAttribute("data-app-id"),gp=e.getAttribute("data-search-key"),yp=e.getAttribute("data-index"),wp=e.getAttribute("data-facets").split(",").map((e=>({label:e,facet:"section"}))),!(vp&&gp&&yp&&wp))return void console.error("Autocomplete element found, but one or more require attributes were missing.");function t(e,t,n){return{sourceId:"sections",getItems:()=>{return t={searchClient:bp,queries:[{indexName:yp,facet:"section",params:{query:e,filters:ap(lp(wp,(e=>e.facet)))}}],transformResponse:({facetHits:e})=>(n({facetHits:e}),[])},r=da({transformResponse:function(e){return e.facetHits}}),o=t.queries.map((function(e){return ha(ha({},e),{},{type:"facet"})})),r(ha(ha({},t),{},{queries:o}));var t,r,o},templates:{item:()=>null}}}bp=Hs()(vp,gp);const n=function(){const e={upDownPressed:!1};return window.addEventListener("keydown",(e=>{"k"===e.key.toLowerCase()&&(e.metaKey||e.ctrlKey)&&(e.preventDefault(),document.querySelector(".aa-DetachedSearchButton").click())})),window.addEventListener("keydown",(t=>{"ArrowUp"!==t.key&&"ArrowDown"!==t.key||t.target!==document.querySelector(".aa-DetachedFormContainer .aa-Input")||(e.upDownPressed=!0)}),{capture:!0}),document.body.addEventListener("click",(e=>{var t;const n=e.target;if(null==n?void 0:n.closest(".aa-ClearButton")){e.stopPropagation(),e.preventDefault();const r=null===(t=n.closest(".aa-Form"))||void 0===t?void 0:t.querySelector(".aa-Input");r&&(r.value="",r.focus(),r.dispatchEvent(new Event("input")))}})),e}();Kd({container:e,placeholder:"Search (⌘/ctrl-k)",openOnFocus:!1,detachedMediaQuery:"",defaultActiveItemId:0,onStateChange:({state:e,prevState:t,setCollections:r})=>{if(""!==t.query&&""===e.query&&(r([]),cp(e,wp)),e.activeItemId>=0){const t=document.querySelectorAll(".aa-Item");if(t){const r=t.item(e.activeItemId);r&&n.upDownPressed&&r.scrollIntoView({behavior:"smooth",block:"nearest"})}n.upDownPressed=!1}},getSources:({query:e,state:n,refresh:r,setContext:o})=>{const i=[];return i.push(t(e,0,o)),i.push(function(e,t,n){return{sourceId:"results",getItems:({state:t})=>va({searchClient:bp,queries:[{indexName:yp,query:e,params:{filters:ap(lp(dp(t),(e=>e.facet))),hitsPerPage:50,page:0}}]}),getItemUrl:({item:e})=>new URL([document.location.origin,e.href].join("")).toString(),templates:{header:({html:e,state:t})=>{const r=t.context.facetHits[0],o=r.reduce(((e,t)=>e+t.count),0);return 1===wp.length?e` +(()=>{var e={290:function(e){e.exports=function(){"use strict";function e(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function t(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function n(n){for(var r=1;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function o(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)){var n=[],r=!0,o=!1,i=void 0;try{for(var s,a=e[Symbol.iterator]();!(r=(s=a.next()).done)&&(n.push(s.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==a.return||a.return()}finally{if(o)throw i}}return n}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function i(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t2&&void 0!==arguments[2]?arguments[2]:{miss:function(){return Promise.resolve()}};return Promise.resolve().then((function(){var n=JSON.stringify(e),r=i()[n];return Promise.all([r||t(),void 0!==r])})).then((function(e){var t=o(e,2),r=t[0],i=t[1];return Promise.all([r,i||n.miss(r)])})).then((function(e){return o(e,1)[0]}))},set:function(e,t){return Promise.resolve().then((function(){var o=i();return o[JSON.stringify(e)]=t,r().setItem(n,JSON.stringify(o)),t}))},delete:function(e){return Promise.resolve().then((function(){var t=i();delete t[JSON.stringify(e)],r().setItem(n,JSON.stringify(t))}))},clear:function(){return Promise.resolve().then((function(){r().removeItem(n)}))}}}function a(e){var t=i(e.caches),n=t.shift();return void 0===n?{get:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{miss:function(){return Promise.resolve()}};return t().then((function(e){return Promise.all([e,n.miss(e)])})).then((function(e){return o(e,1)[0]}))},set:function(e,t){return Promise.resolve(t)},delete:function(e){return Promise.resolve()},clear:function(){return Promise.resolve()}}:{get:function(e,r){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{miss:function(){return Promise.resolve()}};return n.get(e,r,o).catch((function(){return a({caches:t}).get(e,r,o)}))},set:function(e,r){return n.set(e,r).catch((function(){return a({caches:t}).set(e,r)}))},delete:function(e){return n.delete(e).catch((function(){return a({caches:t}).delete(e)}))},clear:function(){return n.clear().catch((function(){return a({caches:t}).clear()}))}}}function l(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{serializable:!0},t={};return{get:function(n,r){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{miss:function(){return Promise.resolve()}},i=JSON.stringify(n);if(i in t)return Promise.resolve(e.serializable?JSON.parse(t[i]):t[i]);var s=r(),a=o&&o.miss||function(){return Promise.resolve()};return s.then((function(e){return a(e)})).then((function(){return s}))},set:function(n,r){return t[JSON.stringify(n)]=e.serializable?JSON.stringify(r):r,Promise.resolve(r)},delete:function(e){return delete t[JSON.stringify(e)],Promise.resolve()},clear:function(){return t={},Promise.resolve()}}}function u(e){for(var t=e.length-1;t>0;t--){var n=Math.floor(Math.random()*(t+1)),r=e[t];e[t]=e[n],e[n]=r}return e}function c(e,t){return t?(Object.keys(t).forEach((function(n){e[n]=t[n](e)})),e):e}function d(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r0?r:void 0,timeout:n.timeout||t,headers:n.headers||{},queryParameters:n.queryParameters||{},cacheable:n.cacheable}}var h={Read:1,Write:2,Any:3},m=1,v=2,g=3;function y(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:m;return n(n({},e),{},{status:t,lastUpdate:Date.now()})}function b(e){return"string"==typeof e?{protocol:"https",url:e,accept:h.Any}:{protocol:e.protocol||"https",url:e.url,accept:e.accept||h.Any}}var w="GET",S="POST";function _(e,t){return Promise.all(t.map((function(t){return e.get(t,(function(){return Promise.resolve(y(t))}))}))).then((function(e){var n=e.filter((function(e){return function(e){return e.status===m||Date.now()-e.lastUpdate>12e4}(e)})),r=e.filter((function(e){return function(e){return e.status===g&&Date.now()-e.lastUpdate<=12e4}(e)})),o=[].concat(i(n),i(r));return{getTimeout:function(e,t){return(0===r.length&&0===e?1:r.length+3+e)*t},statelessHosts:o.length>0?o.map((function(e){return b(e)})):t}}))}function O(e,t,r,o){var s=[],a=function(e,t){if(e.method!==w&&(void 0!==e.data||void 0!==t.data)){var r=Array.isArray(e.data)?e.data:n(n({},e.data),t.data);return JSON.stringify(r)}}(r,o),l=function(e,t){var r=n(n({},e.headers),t.headers),o={};return Object.keys(r).forEach((function(e){var t=r[e];o[e.toLowerCase()]=t})),o}(e,o),u=r.method,c=r.method!==w?{}:n(n({},r.data),o.data),d=n(n(n({"x-algolia-agent":e.userAgent.value},e.queryParameters),c),o.queryParameters),p=0,f=function t(n,i){var c=n.pop();if(void 0===c)throw{name:"RetryError",message:"Unreachable hosts - your application id may be incorrect. If the error persists, contact support@algolia.com.",transporterStackTrace:E(s)};var f={data:a,headers:l,method:u,url:$(c,r.path,d),connectTimeout:i(p,e.timeouts.connect),responseTimeout:i(p,o.timeout)},h=function(e){var t={request:f,response:e,host:c,triesLeft:n.length};return s.push(t),t},m={onSuccess:function(e){return function(e){try{return JSON.parse(e.content)}catch(t){throw function(e,t){return{name:"DeserializationError",message:e,response:t}}(t.message,e)}}(e)},onRetry:function(r){var o=h(r);return r.isTimedOut&&p++,Promise.all([e.logger.info("Retryable failure",k(o)),e.hostsCache.set(c,y(c,r.isTimedOut?g:v))]).then((function(){return t(n,i)}))},onFail:function(e){throw h(e),function(e,t){var n=e.content,r=e.status,o=n;try{o=JSON.parse(n).message}catch(e){}return function(e,t,n){return{name:"ApiError",message:e,status:t,transporterStackTrace:n}}(o,r,t)}(e,E(s))}};return e.requester.send(f).then((function(e){return function(e,t){return function(e){var t=e.status;return e.isTimedOut||function(e){var t=e.isTimedOut,n=e.status;return!t&&0==~~n}(e)||2!=~~(t/100)&&4!=~~(t/100)}(e)?t.onRetry(e):2==~~(e.status/100)?t.onSuccess(e):t.onFail(e)}(e,m)}))};return _(e.hostsCache,t).then((function(e){return f(i(e.statelessHosts).reverse(),e.getTimeout)}))}function x(e){var t={value:"Algolia for JavaScript (".concat(e,")"),add:function(e){var n="; ".concat(e.segment).concat(void 0!==e.version?" (".concat(e.version,")"):"");return-1===t.value.indexOf(n)&&(t.value="".concat(t.value).concat(n)),t}};return t}function $(e,t,n){var r=C(n),o="".concat(e.protocol,"://").concat(e.url,"/").concat("/"===t.charAt(0)?t.substr(1):t);return r.length&&(o+="?".concat(r)),o}function C(e){return Object.keys(e).map((function(t){return d("%s=%s",t,(n=e[t],"[object Object]"===Object.prototype.toString.call(n)||"[object Array]"===Object.prototype.toString.call(n)?JSON.stringify(e[t]):e[t]));var n})).join("&")}function E(e){return e.map((function(e){return k(e)}))}function k(e){var t=e.request.headers["x-algolia-api-key"]?{"x-algolia-api-key":"*****"}:{};return n(n({},e),{},{request:n(n({},e.request),{},{headers:n(n({},e.request.headers),t)})})}var T=function(e){var t=e.appId,r=function(e,t,n){var r={"x-algolia-api-key":n,"x-algolia-application-id":t};return{headers:function(){return e===p.WithinHeaders?r:{}},queryParameters:function(){return e===p.WithinQueryParameters?r:{}}}}(void 0!==e.authMode?e.authMode:p.WithinHeaders,t,e.apiKey),i=function(e){var t=e.hostsCache,n=e.logger,r=e.requester,i=e.requestsCache,s=e.responsesCache,a=e.timeouts,l=e.userAgent,u=e.hosts,c=e.queryParameters,d={hostsCache:t,logger:n,requester:r,requestsCache:i,responsesCache:s,timeouts:a,userAgent:l,headers:e.headers,queryParameters:c,hosts:u.map((function(e){return b(e)})),read:function(e,t){var n=f(t,d.timeouts.read),r=function(){return O(d,d.hosts.filter((function(e){return 0!=(e.accept&h.Read)})),e,n)};if(!0!==(void 0!==n.cacheable?n.cacheable:e.cacheable))return r();var i={request:e,mappedRequestOptions:n,transporter:{queryParameters:d.queryParameters,headers:d.headers}};return d.responsesCache.get(i,(function(){return d.requestsCache.get(i,(function(){return d.requestsCache.set(i,r()).then((function(e){return Promise.all([d.requestsCache.delete(i),e])}),(function(e){return Promise.all([d.requestsCache.delete(i),Promise.reject(e)])})).then((function(e){var t=o(e,2);return t[0],t[1]}))}))}),{miss:function(e){return d.responsesCache.set(i,e)}})},write:function(e,t){return O(d,d.hosts.filter((function(e){return 0!=(e.accept&h.Write)})),e,f(t,d.timeouts.write))}};return d}(n(n({hosts:[{url:"".concat(t,"-dsn.algolia.net"),accept:h.Read},{url:"".concat(t,".algolia.net"),accept:h.Write}].concat(u([{url:"".concat(t,"-1.algolianet.com")},{url:"".concat(t,"-2.algolianet.com")},{url:"".concat(t,"-3.algolianet.com")}]))},e),{},{headers:n(n(n({},r.headers()),{"content-type":"application/x-www-form-urlencoded"}),e.headers),queryParameters:n(n({},r.queryParameters()),e.queryParameters)}));return c({transporter:i,appId:t,addAlgoliaAgent:function(e,t){i.userAgent.add({segment:e,version:t})},clearCache:function(){return Promise.all([i.requestsCache.clear(),i.responsesCache.clear()]).then((function(){}))}},e.methods)},P=function(e){return function(t,n){return t.method===w?e.transporter.read(t,n):e.transporter.write(t,n)}},j=function(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return c({transporter:e.transporter,appId:e.appId,indexName:t},n.methods)}},I=function(e){return function(t,r){var o=t.map((function(e){return n(n({},e),{},{params:C(e.params||{})})}));return e.transporter.read({method:S,path:"1/indexes/*/queries",data:{requests:o},cacheable:!0},r)}},L=function(e){return function(t,o){return Promise.all(t.map((function(t){var i=t.params,s=i.facetName,a=i.facetQuery,l=r(i,["facetName","facetQuery"]);return j(e)(t.indexName,{methods:{searchForFacetValues:M}}).searchForFacetValues(s,a,n(n({},o),l))})))}},A=function(e){return function(t,n,r){return e.transporter.read({method:S,path:d("1/answers/%s/prediction",e.indexName),data:{query:t,queryLanguages:n},cacheable:!0},r)}},D=function(e){return function(t,n){return e.transporter.read({method:S,path:d("1/indexes/%s/query",e.indexName),data:{query:t},cacheable:!0},n)}},M=function(e){return function(t,n,r){return e.transporter.read({method:S,path:d("1/indexes/%s/facets/%s/query",e.indexName,t),data:{facetQuery:n},cacheable:!0},r)}},N=1,R=2,F=3;function B(e,t,r){var o,i={appId:e,apiKey:t,timeouts:{connect:1,read:2,write:30},requester:{send:function(e){return new Promise((function(t){var n=new XMLHttpRequest;n.open(e.method,e.url,!0),Object.keys(e.headers).forEach((function(t){return n.setRequestHeader(t,e.headers[t])}));var r,o=function(e,r){return setTimeout((function(){n.abort(),t({status:0,content:r,isTimedOut:!0})}),1e3*e)},i=o(e.connectTimeout,"Connection timeout");n.onreadystatechange=function(){n.readyState>n.OPENED&&void 0===r&&(clearTimeout(i),r=o(e.responseTimeout,"Socket timeout"))},n.onerror=function(){0===n.status&&(clearTimeout(i),clearTimeout(r),t({content:n.responseText||"Network request failed",status:n.status,isTimedOut:!1}))},n.onload=function(){clearTimeout(i),clearTimeout(r),t({content:n.responseText,status:n.status,isTimedOut:!1})},n.send(e.data)}))}},logger:(o=F,{debug:function(e,t){return N>=o&&console.debug(e,t),Promise.resolve()},info:function(e,t){return R>=o&&console.info(e,t),Promise.resolve()},error:function(e,t){return console.error(e,t),Promise.resolve()}}),responsesCache:l(),requestsCache:l({serializable:!1}),hostsCache:a({caches:[s({key:"".concat("4.17.0","-").concat(e)}),l()]}),userAgent:x("4.17.0").add({segment:"Browser",version:"lite"}),authMode:p.WithinQueryParameters};return T(n(n(n({},i),r),{},{methods:{search:I,searchForFacetValues:L,multipleQueries:I,multipleSearchForFacetValues:L,customRequest:P,initIndex:function(e){return function(t){return j(e)(t,{methods:{search:D,searchForFacetValues:M,findAnswers:A}})}}}}))}return B.version="4.17.0",B}()},28:()=>{!function(e){var t=1,n=window.setInterval((function(){r(t),++t>2&&(t=0)}),11e3);function r(t){return e(".carousel-always-visible").length?(o(),i(),void s()):e(".carousel-always-visible-cli-only").length?(a(0),void l(0)):(e(".carousel-item").css("opacity",0).css("pointer-events","none").eq(t).css("opacity",1).css("pointer-events","auto"),e(".carousel-item-description").css("opacity",0).css("pointer-events","none").eq(t).css("opacity",1).css("pointer-events","auto"),e(".carousel-item-label").removeClass("border-purple-700").removeClass("text-purple-700").removeClass("hover:text-purple-700").addClass("text-purple-200").addClass("hover:text-purple-300").eq(t).addClass("border-purple-700").addClass("text-purple-700").addClass("hover:text-purple-700"),void(0===t?o():1===t?i():2===t&&s()))}function o(){e(".menu").css("opacity",0),e(".menu").find(".row").removeClass("bg-gray-600").eq(0).addClass("bg-gray-600"),a(0,(function(){e(".menu").each((function(t,n){var r=parseInt(e(n).attr("data-delay"))||0;0===t&&setTimeout((function(){e(n).find(".row").removeClass("bg-gray-600").eq(1).addClass("bg-gray-600")}),600),setTimeout((function(){e(n).css("opacity",1)}),r)}))}))}function i(){a(1),l(1)}function s(){var t=e("#carousel-console .tab");t.css("opacity",0).eq(0).css("opacity",1),setTimeout((function(){t.eq(0).css("opacity",0),t.eq(1).css("opacity",1)}),5e3)}function a(t,n){var r=e(".carousel-item").eq(t).find(".line.typed span"),o=500;r.each((function(t,n){var r=n.textContent.split("");e(n).addClass("typing").html(r.map((e=>""+e+"")).join("").toString())}));var i=e(""),s=e(".carousel-item").eq(t).find(".char");s.map((function(t,r){o+=Math.ceil(75*Math.random()),setTimeout((function(){"\n"===r.textContent?e(r).css("opacity",1).prepend(i):e(r).css("opacity",1).append(i),t===s.length-1&&setTimeout((function(){i.remove(),"function"==typeof n&&n()}),600)}),o),"\n"!==r.textContent&&";"!==r.textContent||(o+=1e3)}))}function l(t){var n=e(".carousel-item").eq(t).find(".line.full");n.css("opacity",0);var r=2e3;n.each((function(t,n){var o=parseInt(e(n).attr("data-delay"))||75;r+=Math.ceil(Math.random()*o),setTimeout((function(){e(n).css("opacity",1)}),r)}))}r(0),e(".carousel-item-label").click((function(){clearInterval(n),r(e(".carousel-item-label").index(this))}))}(jQuery)},506:()=>{!function(e){var t=1,n=window.setInterval((function(){r(t),++t>3&&(t=0)}),5e3);function r(t){e(".code-tabbed-content").scrollTop(0).scrollLeft(0),e(".code-tabbed-tab").removeClass("active").eq(t).addClass("active"),e(".code-tabbed-content-item").removeClass("active").eq(t).addClass("active")}r(0),e(".code-tabbed-tab").click((function(){clearInterval(n),r(e(".code-tabbed-tab").index(this))}))}(jQuery)},756:()=>{$((function(){$("#upcoming-talks-select").on("click",(function(){$("#upcoming-talks").removeClass("hidden"),$("#past-talks").addClass("hidden"),$("#upcoming-talks-select").addClass("is-selected"),$("#past-talks-select").removeClass("is-selected")})),$("#past-talks-select").on("click",(function(){$("#upcoming-talks").addClass("hidden"),$("#past-talks").removeClass("hidden"),$("#upcoming-talks-select").removeClass("is-selected"),$("#past-talks-select").addClass("is-selected")}))}))},161:()=>{$((function(){var e=window.analytics&&window.analytics.track&&"function"==typeof window.analytics.track;function t(t,n,r){var o={answer:t,comments:n||"",email:r||"",url:window.location.pathname,category:"Documentation Feedback",label:t};e?window.analytics.track("docs-feedback",o):console.log("Skipped call to analytics.track:","docs-feedback",o)}$("#docsFeedbackContainer").removeClass("hidden"),["#docsFeedbackYes","#docsFeedbackNo"].forEach((function(e){var n="#docsFeedbackYes"===e?"Yes":"No";$(e).on("click",(function(){$("#feedbackLongForm").removeClass("hidden"),function(e){var n=$("#feedbackLongForm"),r=n.parent();$("body").append(n),$("#docsSubmitFeedback").on("click",(function(){var n=$("#feedbackAdditionalComments").val().toString().trim(),r=$("#feedbackEmail").val().toString().trim();t(e,n,r),$("#feedbackAdditionalComments").val(""),$("#feedbackEmail").val(""),$("#feedbackButtons").addClass("hidden"),$("#feedbackLongForm").addClass("hidden"),$("#feedbackThankYou").removeClass("hidden")})),$("#docsCloseFeedbackLongForm").on("click",(function(){t(e,"",""),$("#feedbackAdditionalComments").val(""),$("#feedbackEmail").val(""),$("#feedbackButtons").addClass("hidden"),$("#feedbackLongForm").addClass("hidden"),$("#feedbackThankYou").removeClass("hidden"),r.append(n)})),$(window).on("beforeunload",(function(){$("#feedbackLongForm").hasClass("hidden")||t(e,"","")}))}(n)}))}))}))},40:()=>{let e=$(".docs-main-nav-toggle-wrapper"),t=$(".docs-nav-toggle-icon");function n(){$(this).width()<=1280&&(e.hasClass("docs-nav-show")?(t.removeClass("open-docs-main-nav"),t.addClass("close-docs-main-nav")):e.hasClass("docs-nav-hide")&&(t.removeClass("close-docs-main-nav"),t.addClass("open-docs-main-nav")));let n=$(".main-nav"),r=$(".docs-nav-toggle"),o=$(".docs-type-nav-search");$(".section-docs .docs-list-main").length>0&&($(".section-docs .docs-list-main").get(0).getBoundingClientRect().y<=0?(n.css("margin-top",o.height()-Math.max($(".top-nav-container").get(0).getBoundingClientRect().y,0)),r.css("top",94+o.height()-Math.max($(".top-nav-container").get(0).getBoundingClientRect().y,0))):n.css("margin-top",0)),$(this).width()>1280?(e.removeClass("docs-nav-show"),e.removeClass("docs-nav-hide")):e.hasClass("docs-nav-hide")||e.hasClass("docs-nav-show")||e.addClass("docs-nav-hide")}function r(){let t=$(".docs-toc-desktop");window.innerWidth>1024&&window.innerWidth<=1280?e.hasClass("docs-nav-show")?t.hide():t.show():window.innerWidth>1280?t.show():t.hide()}function o(){$(".docs-main-nav").css("height",$(".docs-footer").height()+window.innerHeight)}$(window).on("resize",(function(){n(),r(),o()})).trigger("resize"),$(window).on("scroll",(function(){n()})).trigger("resize"),$(window).on("load",(function(){n(),r(),o()})),function(n,o){o(".docs-nav-toggle").on("click",(function(){e.toggleClass("docs-nav-show"),e.toggleClass("docs-nav-hide"),t.toggleClass("close-docs-main-nav"),t.toggleClass("open-docs-main-nav"),r()}));let i=o("#accordion-checkbox-package-card"),s=o("#accordion-package-card");i.on("change",(function(){i.is(":checked")?s.css("background","#fff"):s.css("background","#f9f9f9")}));let a=o("#collapse-content-button"),l=o("#expand-content-button");function u(){o(".docs-main-content").addClass("docs-content-width-expanded"),window.location.pathname.startsWith("/registry")&&o(".docs-main-content").addClass("expand-registry"),a.removeClass("hide"),l.addClass("hide"),window.localStorage.setItem("content-width-state","expanded")}function c(){o(".docs-main-content").removeClass("docs-content-width-expanded"),a.addClass("hide"),l.removeClass("hide"),window.localStorage.setItem("content-width-state","collapsed")}l.on("click",u),a.on("click",c),"expanded"===window.localStorage.getItem("content-width-state")?u():c()}(document,jQuery)},21:()=>{$((function(){function e(e,t){var n=e.map((function(e){return".highlight .chroma .language-"+e})).join(", ");$(n).each((function(){var e=$(this);e.html(e.html().replace(t,'$1'))}))}e(["bash","sh","shell","zsh"],/([ |\t]*\$ )/gim),e(["bat","batch","batchfile","powershell","posh","pwsh"],/([ |\t]*><\/span> )/gim)}))},490:()=>{const e=(e,t)=>{const n="amazon",r="google cloud",o="google",i=$(".all-packages").find(".package"),s=void 0===e.find((e=>"type"===e.group)),a=void 0===e.find((e=>"category"===e.group));e.length>0||t?($(i).addClass("hidden"),$(i).each(((i,l)=>{const u=$(l).find("[data-category]"),c=u.attr("data-type"),d=u.attr("data-category"),p="native-provider"===c,f=!!e.find((e=>"type"===e.group&&e.value===c))||e.find((e=>"type"===e.group&&"provider"===e.value))&&p,h=!!e.find((e=>"category"===e.group&&e.value===d)),m=u.attr("data-title").toLowerCase(),v=null==t?void 0:t.trim().toLowerCase();let g;g=v===n||"aws"===v?m.includes(n)||m.includes("aws"):"gcp"===v||v===r||v===o?m.includes("gcp")||m.includes(r)||m.includes(o):m.includes(v),!f&&!s||!h&&!a||t&&!g||$(l).removeClass("hidden")}))):$(i).removeClass("hidden")};$(".section-registry").on("filterSelect",(t=>{const n=t.target,r=t.detail,o=$("pulumi-registry-list-search").get(0),i=$(o).find(".registry-filter-input").val();e(r,i);const s=$("ul.active-tags");s.empty(),r.forEach((e=>{const t=$($("#active-tag-template").html());t.appendTo(s),t.attr("data-filter-group",e.group).attr("data-filter-value",e.value),t.find("span").text(e.label),t.find("button").on("click",(()=>n.deselect(e)))})),$(".packages, .active-tags").attr("data-selected-types",r.filter((e=>"type"===e.group)).map((e=>e.value)).join(",")).attr("data-selected-categories",r.filter((e=>"category"===e.group)).map((e=>e.value)).join(","));const a=$(".all-packages .package:not(.hidden)").length;$(".all-count").text(a),$("pulumi-filter-select-option-group").each(((e,t)=>t.close()))})),$(".section-registry .no-results .reset").on("click",(t=>{t.stopPropagation();$("pulumi-registry-list-search").get(0).reset();$("pulumi-filter-select").get(0).reset(),e([],"");const n=$(".all-packages .package:not(.hidden)").length;$(".all-count").text(n)})),$(".section-registry").on("packageSearch",(t=>{const n=t.detail,r=[],o=$("ul.active-tags").find("li");o.length>0&&o.each(((e,t)=>{const n=$(t),o=n.attr("data-filter-group"),i=n.attr("data-filter-value"),s=n.attr("data-filter-label");r.push({group:o,value:i,label:s})})),e(r,n);const i=$(".all-packages .package:not(.hidden)").length;$(".all-count").text(i)})),document.addEventListener("DOMContentLoaded",(function(){const e=$(".logo-nav-button"),t=$(".logo-nav-bg-mask"),n=$("#logo-nav-menu");function r(){n.toggleClass("hidden");const r=n.is(":visible");e.attr("aria-expanded",`${r}`),$(".logo-nav-button .mobile-menu-toggle-icon").toggleClass("hidden"),t.toggleClass("hidden")}e.on("click",r),t.on("click",r),$(document).on("click",(function(t){0===$(t.target).closest(e).length&&0===$(t.target).closest(n).length&&n.is(":visible")&&r()})),$(document).on("scroll",(function(){window.scrollY>53&&n.is(":visible")&&r()}))}))},245:()=>{$(document).on("rendered",(function(){$("#billing-period").each((function(e,t){t.addEventListener("change",(function(e){e&&e.target&&e.target.checked?($(".billing-price-monthly").each((function(e,t){$(t).hide()})),$(".billing-price-annually").each((function(e,t){$(t).show()}))):($(".billing-price-monthly").each((function(e,t){$(t).show()})),$(".billing-price-annually").each((function(e,t){$(t).hide()})))}))}))}))},366:()=>{$((function(){$("#pricingStartTrial").on("click",(function(){$("#pricingTrialOptionsDialog").removeClass("hidden")})),$("#pricingStartTrialBottomCTA").on("click",(function(){$("#pricingTrialOptionsDialog").removeClass("hidden")})),$("#businessCriticalStartTrialButton").on("click",(function(){$("#pricingTrialOptionsDialog").removeClass("hidden")})),$("#enterpriseStartTrialButton").on("click",(function(){$("#pricingTrialOptionsDialog").removeClass("hidden")})),$("#teamStartTrialButton").on("click",(function(){$("#pricingTrialOptionsDialog").removeClass("hidden")})),$("#closePricingTrialOptionsDialog").on("click",(function(){$("#pricingTrialOptionsDialog").addClass("hidden")})),$("#startServiceTrial").on("click",(function(){$("#pricingTrialOptionsDialog").addClass("hidden")})),$("#startSelfHostedTrial").on("click",(function(){$("#pricingTrialOptionsDialog").addClass("hidden")}))}))},140:()=>{const e=document.location.pathname;if("/docs/intro/concepts/programming-model/"===e||"/docs/reference/programming-model/"===e){var t={"#additionalsecretoutputs":"/docs/concepts/resources/#additionalsecretoutputs","#aliases":"/docs/concepts/resources/#aliases","#all":"/docs/concepts/inputs-outputs/#all","#apply":"/docs/concepts/inputs-outputs/#apply","#assets-and-archives":"/docs/concepts/assets-archives/","#autonaming":"/docs/concepts/resources/#autonaming","#components":"/docs/concepts/resources/#components","#config":"/docs/concepts/config","#custom-resources":"/docs/concepts/resources/#custom-resources","#declaring-infrastructure":"/docs/concepts/#overview","#deletebeforereplace":"/docs/concepts/resources/#deletebeforereplace","#dependson":"/docs/concepts/resources/#dependson","#dynamicproviders":"/docs/concepts/resources/#dynamicproviders","#explicit-provider-configuration":"/docs/concepts/resources/#explicit-provider-configuration","#import":"/docs/concepts/resources/#import","#introduction":"/docs/intro/concepts","#lifting":"/docs/concepts/inputs-outputs/#lifting","#names":"/docs/concepts/resources/#names","#outputs":"/docs/concepts/inputs-outputs","#outputs-and-strings":"/docs/concepts/inputs-outputs/#outputs-and-strings","#program-structure":"/docs/concepts/#overview","#programs":"/docs/concepts/#overview","#providers":"/docs/concepts/resources/#providers","#reading-configuration-values":"/docs/concepts/config/#code","#resource-get":"/docs/concepts/resources/#resource-get","#resource-providers":"/docs/concepts/resources/#providers","#resourceoptions":"/docs/concepts/resources/#options","#resources":"/docs/concepts/resources","#runtime":"/docs/concepts/","#runtime-functions":"/docs/concepts/","#secrets":"/docs/concepts/secrets","#stack-outputs":"/docs/concepts/stack/#outputs","#stack-references":"/docs/concepts/stack/#stack-references","#transformations":"/docs/concepts/resources/#transformations"}[location.hash];t&&(location.href=t)}},498:()=>{const e=e=>{const t=$(".event-list").find(".event-card"),n=$(".event-list").find(".month-label");$(n).css("display","none");const r=$(".pulumi-event-list-container").find(".no-results");$(r).removeClass("hidden"),e.length>0?$(t).each(((t,n)=>{const o=$(n).attr("data-filters").split(" "),i=$(n).attr("data-month-label");if(o.includes(location.hash.slice(1))){let t=0;o.forEach((n=>{e.includes(n)&&t++})),t>0?($(r).addClass("hidden"),$(n).css("display","block"),$(`.month-label.${i}`).css("display","block")):$(n).css("display","none")}else $(n).css("display","none")})):$(t).each(((e,t)=>{const n=$(t).attr("data-filters").split(" "),o=$(t).attr("data-month-label");if(n.includes(location.hash.slice(1)))$(r).addClass("hidden"),$(t).css("display","block"),$(`.month-label.${o}`).css("display","block");else{$(t).css("display","none");$(t).attr("data-month-label")}}))};$(".pulumi-event-list-container").on("filterSelect",(t=>{const n=t.detail,r=[];n.forEach((e=>{r.push(e.value)})),e(r)})),$(window).on("hashchange",(function(){const t=$("pulumi-filter-select-option").toArray();let n=[];t.forEach((e=>{const t=e.shadowRoot;$(t).find(".selected").length>0&&n.push(e.value)})),e(n)})),$((function(){const e=document.getElementById("event-list-filter-nav");if(e){$("#slideForward").on("click",(function(){e.scrollLeft+=180})),$("#slideBackwards").on("click",(function(){e.scrollLeft-=180}));const t={root:document.getElementById("event-list-filter-nav"),threshold:1},n=new IntersectionObserver(((e,t)=>{e.forEach((e=>{e.isIntersecting?$("#slideForward").addClass("hidden"):$("#slideForward").removeClass("hidden")}))}),t),r=document.querySelector("#event-list-filter-nav li:last-of-type");n.observe(r);const o=new IntersectionObserver(((e,t)=>{e.forEach((e=>{e.isIntersecting?$("#slideBackwards").addClass("hidden"):$("#slideBackwards").removeClass("hidden")}))}),t),i=document.querySelector("#event-list-filter-nav li:first-of-type");o.observe(i)}}))},399:()=>{$((function(){const e={"/docs/get-started/":"get-started-with-pulumi-toc-header","/docs/":"intro-toc-header","/docs/using-pulumi/":"user-guides-toc-header","/docs/concepts/":"reference-toc-header","/docs/support/":"support-toc-header","/docs/using-pulumi/adopting-pulumi/converters/":"converters-toc-header"};Object.keys(e).map((t=>{const n=document.getElementById(e[t]);if(n&&(n.classList.remove("active"),document.location.pathname===t)){const e=document.getElementById("left-nav");n.classList.add("active"),e.scrollTop=n.offsetTop-100}}))}))},931:()=>{$(document).ready((function(){if(window&&window.analytics&&"function"==typeof window.analytics.track){const n=$("a"),r=(new Date).getTime();function e(e,t){const n=$(e);if(!n)return;const o=n.attr("data-track"),i=(n.attr("href")||"").replace(/https?:\/\//g,""),s=o||i.replace(/^#/,"anchor-").replace(/^\//,"").split("/").join("-"),a=("/"===window.location.pathname?"home":window.location.pathname).split("/").filter((function(e){return""!==e})).map((function(e){return e})).concat(s,t).join("-"),l={element_id:a,destinationPath:n.attr("href"),url:window.location.pathname,category:"User Interaction",label:a,value:void 0};n.on("click",(function(e){l.value=((new Date).getTime()-r)/1e3,window.analytics.track("link-click",l)}))}for(var t=0;t{"use strict";n.r(t),n.d(t,{scopeCss:()=>j});const r="-shadowcsshost",o="-shadowcssslotted",i="-shadowcsscontext",s=")(?:\\(((?:\\([^)(]*\\)|[^)(]*)+?)\\))?([^,{]*)",a=new RegExp("("+r+s,"gim"),l=new RegExp("("+i+s,"gim"),u=new RegExp("("+o+s,"gim"),c=r+"-no-combinator",d=/-shadowcsshost-no-combinator([^\s]*)/,p=[/::shadow/g,/::content/g],f=/-shadowcsshost/gim,h=/:host/gim,m=/::slotted/gim,v=/:host-context/gim,g=/\/\*\s*[\s\S]*?\*\//g,y=/\/\*\s*#\s*source(Mapping)?URL=[\s\S]+?\*\//g,b=/(\s*)([^;\{\}]+?)(\s*)((?:{%BLOCK%}?\s*;?)|(?:\s*;))/g,w=/([{}])/g,S="%BLOCK%",_=(e,t)=>{const n=O(e);let r=0;return n.escapedString.replace(b,((...e)=>{const o=e[2];let i="",s=e[4],a="";s&&s.startsWith("{"+S)&&(i=n.blocks[r++],s=s.substring(S.length+1),a="{");const l=t({selector:o,content:i});return`${e[1]}${l.selector}${e[3]}${a}${l.content}${s}`}))},O=e=>{const t=e.split(w),n=[],r=[];let o=0,i=[];for(let e=0;e0?i.push(s):(i.length>0&&(r.push(i.join("")),n.push(S),i=[]),n.push(s)),"{"===s&&o++}i.length>0&&(r.push(i.join("")),n.push(S));return{escapedString:n.join(""),blocks:r}},x=(e,t,n)=>e.replace(t,((...e)=>{if(e[2]){const t=e[2].split(","),r=[];for(let o=0;oe+t.replace(r,"")+n,C=(e,t,n)=>t.indexOf(r)>-1?$(e,t,n):e+t+n+", "+t+" "+e+n,E=(e,t)=>{const n=(e=>(e=e.replace(/\[/g,"\\[").replace(/\]/g,"\\]"),new RegExp("^("+e+")([>\\s~+[.,{:][\\s\\S]*)?$","m")))(t);return!n.test(e)},k=(e,t,n)=>{const r="."+(t=t.replace(/\[is=([^\]]*)\]/g,((e,...t)=>t[0]))),o=e=>{let o=e.trim();if(!o)return"";if(e.indexOf(c)>-1)o=((e,t,n)=>{if(f.lastIndex=0,f.test(e)){const t=`.${n}`;return e.replace(d,((e,n)=>n.replace(/([^:]*)(:*)(.*)/,((e,n,r,o)=>n+t+r+o)))).replace(f,t+" ")}return t+" "+e})(e,t,n);else{const t=e.replace(f,"");if(t.length>0){const e=t.match(/([^:]*)(:*)(.*)/);e&&(o=e[1]+r+e[2]+e[3])}}return o},i=(e=>{const t=[];let n,r=0;return n=(e=e.replace(/(\[[^\]]*\])/g,((e,n)=>{const o=`__ph-${r}__`;return t.push(n),r++,o}))).replace(/(:nth-[-\w]+)(\([^)]+\))/g,((e,n,o)=>{const i=`__ph-${r}__`;return t.push(o),r++,n+i})),{content:n,placeholders:t}})(e);let s,a="",l=0;const u=/( |>|\+|~(?!=))\s*/g;let p=!((e=i.content).indexOf(c)>-1);for(;null!==(s=u.exec(e));){const t=s[1],n=e.slice(l,s.index).trim();p=p||n.indexOf(c)>-1;a+=`${p?o(n):n} ${t} `,l=u.lastIndex}const h=e.substring(l);return p=p||h.indexOf(c)>-1,a+=p?o(h):h,m=i.placeholders,a.replace(/__ph-(\d+)__/g,((e,t)=>m[+t]));var m},T=(e,t,n,r,o)=>_(e,(e=>{let o=e.selector,i=e.content;"@"!==e.selector[0]?o=((e,t,n,r)=>e.split(",").map((e=>r&&e.indexOf("."+r)>-1?e.trim():E(e,t)?k(e,t,n).trim():e.trim())).join(", "))(e.selector,t,n,r):(e.selector.startsWith("@media")||e.selector.startsWith("@supports")||e.selector.startsWith("@page")||e.selector.startsWith("@document"))&&(i=T(e.content,t,n,r));return{selector:o.replace(/\s{2,}/g," ").trim(),content:i}})),P=(e,t,n,s,d)=>{const f=((e,t)=>{const n="."+t+" > ",r=[];return e=e.replace(u,((...e)=>{if(e[2]){const t=e[2].trim(),o=e[3],i=n+t+o;let s="";for(let t=e[4]-1;t>=0;t--){const n=e[5][t];if("}"===n||","===n)break;s=n+s}const a=s+i,l=`${s.trimRight()}${i.trim()}`;if(a.trim()!==l.trim()){const e=`${l}, ${a}`;r.push({orgSelector:a,updatedSelector:e})}return i}return c+e[3]})),{selectors:r,cssText:e}})(e=(e=>x(e,l,C))(e=(e=>x(e,a,$))(e=e.replace(v,i).replace(h,r).replace(m,o))),s);return e=(e=>p.reduce(((e,t)=>e.replace(t," ")),e))(e=f.cssText),t&&(e=T(e,t,n,s)),{cssText:(e=(e=e.replace(/-shadowcsshost-no-combinator/g,`.${n}`)).replace(/>\s*\*\s+([^{, ]+)/gm," $1 ")).trim(),slottedSelectors:f.selectors}},j=(e,t,n)=>{const r=t+"-h",o=t+"-s",i=e.match(y)||[];e=(e=>e.replace(g,""))(e);const s=[];if(n){const t=e=>{const t=`/*!@___${s.length}___*/`,n=`/*!@${e.selector}*/`;return s.push({placeholder:t,comment:n}),e.selector=t+e.selector,e};e=_(e,(e=>"@"!==e.selector[0]?t(e):e.selector.startsWith("@media")||e.selector.startsWith("@supports")||e.selector.startsWith("@page")||e.selector.startsWith("@document")?(e.content=_(e.content,t),e):e))}const a=P(e,t,r,o);return e=[a.cssText,...i].join("\n"),n&&s.forEach((({placeholder:t,comment:n})=>{e=e.replace(t,n)})),a.slottedSelectors.forEach((t=>{e=e.replace(t.orgSelector,t.updatedSelector)})),e}},263:e=>{function t(e){return Promise.resolve().then((()=>{var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}))}t.keys=()=>[],t.resolve=t,t.id=263,e.exports=t}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r].call(i.exports,i,i.exports,n),i.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{"use strict";const e=!1,t=!0,r=!1,o=!0,i=!0,s=!0,a=!0,l=!0,u=!0,c=!0,d=!0,p=!0,f=!0,h=!0,m=!0,v=!1,g=!0,y=!0,b=!0,w=!0,S=!0,_=!0,O=!0,x=!0,C=!0,E=!0,k=!0,T=!0,P=!0,j=!0,I=!0,L=!0,A=!0,D=!0,M=!0,N=!0,R=!0,F=!0,B=!0,q=!0,z=!0,H=!0,W=!0,U=!0,V=!1,G=!1,K=!1,J=!1,Y=!1,X=!1,Q=!1,Z=!1,ee=!1,te=!0,ne=!1,re=!0,oe=!1,ie=!0,se=!0,ae=!0,le=!1,ue=!0,ce=!0,de=!1,pe=!1,fe=!1,he=!0,me="app";let ve,ge,ye,be,we=0,Se=!1,_e=!1,Oe=!1,xe=!1,$e=null,Ce=0,Ee=!1;const ke="undefined"!=typeof window?window:{},Te=(le&&ke.CSS,ke.document||{head:{}}),Pe=(ke.HTMLElement,{$flags$:0,$resourcesUrl$:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,r)=>e.addEventListener(t,n,r),rel:(e,t,n,r)=>e.removeEventListener(t,n,r),ce:(e,t)=>new CustomEvent(e,t)}),je=!oe||!C||(()=>(Te.head.attachShadow+"").indexOf("[native")>-1)(),Ie=(()=>{let e=!1;try{Te.addEventListener("e",null,Object.defineProperty({},"passive",{get(){e=!0}}))}catch(e){}return e})(),Le=!!ue&&(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replace}catch(e){}return!1})(),Ae=(e,t,n,r)=>{p&&n&&(v&&(n=r?n.filter((([e])=>32&e)):n.filter((([e])=>!(32&e)))),n.map((([n,r,o])=>{const i=g?Me(e,n):e,s=De(t,o),a=Ne(n);Pe.ael(i,r,s,a),(t.$rmListeners$=t.$rmListeners$||[]).push((()=>Pe.rel(i,r,s,a)))})))},De=(e,t)=>n=>{try{Z?256&e.$flags$?e.$lazyInstance$[t](n):(e.$queuedListeners$=e.$queuedListeners$||[]).push([t,n]):e.$hostElement$[t](n)}catch(e){en(e)}},Me=(e,t)=>h&&4&t?Te:f&&8&t?ke:m&&16&t?Te.body:v&&32&t?e.parentElement:e,Ne=e=>Ie?{passive:0!=(1&e),capture:0!=(2&e)}:0!=(2&e),Re="s-id",Fe="sty-id",Be="c-id",qe="http://www.w3.org/1999/xlink",ze=(e,t="")=>{if(ee&&performance.mark){const n=`st:${e}:${t}:${we++}`;return performance.mark(n),()=>performance.measure(`[Stencil] ${e}() <${t}>`,n)}return()=>{}},He=new WeakMap,We=(e,t,n)=>{let r=an.get(e);Le&&n?(r=r||new CSSStyleSheet,r.replace(t)):r=t,an.set(e,r)},Ue=(e,t,n,r)=>{let o=Ge(t,n),i=an.get(o);if(!he)return o;if(e=11===e.nodeType?e:Te,i)if("string"==typeof i){e=e.head||e;let n,s=He.get(e);if(s||He.set(e,s=new Set),!s.has(o)){if(X&&e.host&&(n=e.querySelector(`[${Fe}="${o}"]`)))n.innerHTML=i;else{if(le&&Pe.$cssShim$){n=Pe.$cssShim$.createHostStyle(r,o,i,!!(10&t.$flags$));const e=n["s-sc"];e&&(o=e,s=null)}else n=Te.createElement("style"),n.innerHTML=i;(Y||V)&&n.setAttribute(Fe,o),e.insertBefore(n,e.querySelector("link"))}s&&s.add(o)}}else ue&&!e.adoptedStyleSheets.includes(i)&&(e.adoptedStyleSheets=[...e.adoptedStyleSheets,i]);return o},Ve=e=>{const t=e.$cmpMeta$,n=e.$hostElement$,r=t.$flags$,o=ze("attachStyles",t.$tagName$),i=Ue(C&&je&&n.shadowRoot?n.shadowRoot:n.getRootNode(),t,e.$modeName$,n);(C||x)&&k&&10&r&&(n["s-sc"]=i,n.classList.add(i+"-h"),x&&2&r&&n.classList.add(i+"-s")),o()},Ge=(e,t)=>"sc-"+(w&&t&&32&e.$flags$?e.$tagName$+"-"+t:e.$tagName$),Ke=e=>ln.map((t=>t(e))).find((e=>!!e)),Je={},Ye=e=>"object"===(e=typeof e)||"function"===e,Xe=(e,t,...n)=>{let r=null,o=null,i=null,s=!1,a=!1,l=[];const u=t=>{for(let n=0;ne[t])).join(" "))}if(K&&l.some(et)&&nn("The must be the single root component. Make sure:\n- You are NOT using hostData() and in the same component.\n- is used once, and it's the single root component of the render() function."),M&&"function"==typeof e)return e(null===t?{}:t,l,tt);const c=Qe(e,null);return c.$attrs$=t,l.length>0&&(c.$children$=l),N&&(c.$key$=o),te&&(c.$name$=i),c},Qe=(e,t)=>{const n={$flags$:0,$tag$:e,$text$:t,$elm$:null,$children$:null};return L&&(n.$attrs$=null),N&&(n.$key$=null),te&&(n.$name$=null),n},Ze={},et=e=>e&&e.$tag$===Ze,tt={forEach:(e,t)=>e.map(nt).forEach(t),map:(e,t)=>e.map(nt).map(t).map(rt)},nt=e=>({vattrs:e.$attrs$,vchildren:e.$children$,vkey:e.$key$,vname:e.$name$,vtag:e.$tag$,vtext:e.$text$}),rt=e=>{if("function"==typeof e.vtag){const t=Object.assign({},e.vattrs);return e.vkey&&(t.key=e.vkey),e.vname&&(t.name=e.vname),Xe(e.vtag,t,...e.vchildren||[])}const t=Qe(e.vtag,e.vtext);return t.$attrs$=e.vattrs,t.$children$=e.vchildren,t.$key$=e.vkey,t.$name$=e.vname,t},ot=e=>{const t=Object.keys(e),n=t.indexOf("type"),r=t.indexOf("min"),o=t.indexOf("max"),i=t.indexOf("min"),s=t.indexOf("value");-1!==s&&(s should be set after "min", "max", "type" and "step"')},it=(e,t,n,r,o,i)=>{if(n!==r){let s=Zt(e,t),a=t.toLowerCase();if(D&&"class"===t){const t=e.classList,o=at(n),i=at(r);t.remove(...o.filter((e=>e&&!i.includes(e)))),t.add(...i.filter((e=>e&&!o.includes(e))))}else if(z&&"style"===t){if(I)for(const t in n)r&&null!=r[t]||(!Y&&t.includes("-")?e.style.removeProperty(t):e.style[t]="");for(const t in r)n&&r[t]===n[t]||(!Y&&t.includes("-")?e.style.setProperty(t,r[t]):e.style[t]=r[t])}else if(N&&"key"===t);else if(F&&"ref"===t)r&&r(e);else if(!R||(Z?s:e.__lookupSetter__(t))||"o"!==t[0]||"n"!==t[1]){if(B){const l=Ye(r);if((s||l&&null!==r)&&!o)try{if(e.tagName.includes("-"))e[t]=r;else{let o=null==r?"":r;"list"===t?s=!1:null!=n&&e[t]==o||(e[t]=o)}}catch(e){}let u=!1;A&&a!==(a=a.replace(/^xlink\:?/,""))&&(t=a,u=!0),null==r||!1===r?!1===r&&""!==e.getAttribute(t)||(A&&u?e.removeAttributeNS(qe,t):e.removeAttribute(t)):(!s||4&i||o)&&!l&&(r=!0===r?"":r,A&&u?e.setAttributeNS(qe,t,r):e.setAttribute(t,r))}}else t="-"===t[2]?t.slice(3):Zt(ke,a)?a.slice(2):a[2]+t.slice(3),n&&Pe.rel(e,t,n,!1),r&&Pe.ael(e,t,r,!1)}},st=/\s/,at=e=>e?e.split(st):[],lt=(e,t,n,r)=>{const o=11===t.$elm$.nodeType&&t.$elm$.host?t.$elm$.host:t.$elm$,i=e&&e.$attrs$||Je,s=t.$attrs$||Je;if(I)for(r in i)r in s||it(o,r,i[r],void 0,n,t.$flags$);for(r in s)it(o,r,i[r],s[r],n,t.$flags$)},ut=(e,t,n,r)=>{let o,i,s,a=t.$children$[n],l=0;if(te&&!Se&&(Oe=!0,"slot"===a.$tag$&&(ve&&r.classList.add(ve+"-s"),a.$flags$|=a.$children$?2:1)),K&&a.$elm$&&nn(`The JSX ${null!==a.$text$?`"${a.$text$}" text`:`"${a.$tag$}" element`} node should not be shared within the same renderer. The renderer caches element lookups in order to improve performance. However, a side effect from this is that the exact same JSX node should not be reused. For more information please see https://stenciljs.com/docs/templating-jsx#avoid-shared-jsx-nodes`),H&&null!==a.$text$)o=a.$elm$=Te.createTextNode(a.$text$);else if(te&&1&a.$flags$)o=a.$elm$=G||Y?Ot(a):Te.createTextNode("");else{if(j&&!xe&&(xe="svg"===a.$tag$),o=a.$elm$=j?Te.createElementNS(xe?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",te&&2&a.$flags$?"slot-fb":a.$tag$):Te.createElement(te&&2&a.$flags$?"slot-fb":a.$tag$),j&&xe&&"foreignObject"===a.$tag$&&(xe=!1),L&<(null,a,xe),(C||x)&&(e=>null!=e)(ve)&&o["s-si"]!==ve&&o.classList.add(o["s-si"]=ve),a.$children$)for(l=0;l{Pe.$flags$|=1;const n=e.childNodes;for(let e=n.length-1;e>=0;e--){const r=n[e];r["s-hn"]!==ye&&r["s-ol"]&&(mt(r).insertBefore(r,ht(r)),r["s-ol"].remove(),r["s-ol"]=void 0,Oe=!0),t&&ct(r,t)}Pe.$flags$&=-2},dt=(e,t,n,r,o,i)=>{let s,a=te&&e["s-cr"]&&e["s-cr"].parentNode||e;for(C&&a.shadowRoot&&a.tagName===ye&&(a=a.shadowRoot);o<=i;++o)r[o]&&(s=ut(null,n,o,e),s&&(r[o].$elm$=s,a.insertBefore(s,te?ht(t):t)))},pt=(e,t,n,r,o)=>{for(;t<=n;++t)(r=e[t])&&(o=r.$elm$,St(r),te&&(_e=!0,o["s-ol"]?o["s-ol"].remove():ct(o,!0)),o.remove())},ft=(e,t)=>e.$tag$===t.$tag$&&(te&&"slot"===e.$tag$?e.$name$===t.$name$:!N||e.$key$===t.$key$),ht=e=>e&&e["s-ol"]||e,mt=e=>(e["s-ol"]?e["s-ol"]:e).parentNode,vt=(e,t)=>{const n=t.$elm$=e.$elm$,r=e.$children$,o=t.$children$,i=t.$tag$,s=t.$text$;let a;H&&null!==s?H&&te&&(a=n["s-cr"])?a.parentNode.textContent=s:H&&e.$text$!==s&&(n.data=s):(j&&(xe="svg"===i||"foreignObject"!==i&&xe),(L||O)&&(E&&"slot"===i||lt(e,t,xe)),I&&null!==r&&null!==o?((e,t,n,r)=>{let o,i,s=0,a=0,l=0,u=0,c=t.length-1,d=t[0],p=t[c],f=r.length-1,h=r[0],m=r[f];for(;s<=c&&a<=f;)if(null==d)d=t[++s];else if(null==p)p=t[--c];else if(null==h)h=r[++a];else if(null==m)m=r[--f];else if(ft(d,h))vt(d,h),d=t[++s],h=r[++a];else if(ft(p,m))vt(p,m),p=t[--c],m=r[--f];else if(ft(d,m))!te||"slot"!==d.$tag$&&"slot"!==m.$tag$||ct(d.$elm$.parentNode,!1),vt(d,m),e.insertBefore(d.$elm$,p.$elm$.nextSibling),d=t[++s],m=r[--f];else if(ft(p,h))!te||"slot"!==d.$tag$&&"slot"!==m.$tag$||ct(p.$elm$.parentNode,!1),vt(p,h),e.insertBefore(p.$elm$,d.$elm$),p=t[--c],h=r[++a];else{if(l=-1,N)for(u=s;u<=c;++u)if(t[u]&&null!==t[u].$key$&&t[u].$key$===h.$key$){l=u;break}N&&l>=0?(i=t[l],i.$tag$!==h.$tag$?o=ut(t&&t[a],n,l,e):(vt(i,h),t[l]=void 0,o=i.$elm$),h=r[++a]):(o=ut(t&&t[a],n,a,e),h=r[++a]),o&&(te?mt(d.$elm$).insertBefore(o,ht(d.$elm$)):d.$elm$.parentNode.insertBefore(o,d.$elm$))}s>c?dt(e,null==r[f+1]?null:r[f+1].$elm$,n,r,a,f):I&&a>f&&pt(t,s,c)})(n,r,t,o):null!==o?(I&&H&&null!==e.$text$&&(n.textContent=""),dt(n,null,t,o,0,o.length-1)):I&&null!==r&&pt(r,0,r.length-1),j&&xe&&"svg"===i&&(xe=!1))},gt=e=>{let t,n,r,o,i,s,a=e.childNodes;for(n=0,r=a.length;n{let t,n,r,o,i,s,a=0,l=e.childNodes,u=l.length;for(;a=0;s--)n=r[s],n["s-cn"]||n["s-nr"]||n["s-hn"]===t["s-hn"]||(wt(n,o)?(i=yt.find((e=>e.$nodeToRelocate$===n)),_e=!0,n["s-sn"]=n["s-sn"]||o,i?i.$slotRefNode$=t:yt.push({$slotRefNode$:t,$nodeToRelocate$:n}),n["s-sr"]&&yt.map((e=>{wt(e.$nodeToRelocate$,n["s-sn"])&&(i=yt.find((e=>e.$nodeToRelocate$===n)),i&&!e.$slotRefNode$&&(e.$slotRefNode$=i.$slotRefNode$))}))):yt.some((e=>e.$nodeToRelocate$===n))||yt.push({$nodeToRelocate$:n}));1===t.nodeType&&bt(t)}},wt=(e,t)=>1===e.nodeType?null===e.getAttribute("slot")&&""===t||e.getAttribute("slot")===t:e["s-sn"]===t||""===t,St=e=>{F&&(e.$attrs$&&e.$attrs$.ref&&e.$attrs$.ref(null),e.$children$&&e.$children$.map(St))},_t=(e,t)=>{const n=e.$hostElement$,r=e.$cmpMeta$,o=e.$vnode$||Qe(null,null),i=et(t)?t:Xe(null,null,t);if(ye=n.tagName,K&&Array.isArray(t)&&t.some(et))throw new Error(`The must be the single root component.\nLooks like the render() function of "${ye.toLowerCase()}" is returning an array that contains the .\n\nThe render() function should look like this instead:\n\nrender() {\n // Do not return an array\n return (\n {content}\n );\n}\n `);if(O&&r.$attrsToReflect$&&(i.$attrs$=i.$attrs$||{},r.$attrsToReflect$.map((([e,t])=>i.$attrs$[t]=n[e]))),i.$tag$=null,i.$flags$|=4,e.$vnode$=i,i.$elm$=o.$elm$=C&&n.shadowRoot||n,(x||C)&&(ve=n["s-sc"]),te&&(ge=n["s-cr"],Se=je&&0!=(1&r.$flags$),_e=!1),vt(o,i),te){if(Pe.$flags$|=1,Oe){let e,t,n,r,o,s;bt(i.$elm$);let a=0;for(;aTe.createComment(` (host=${ye.toLowerCase()})`),xt=e=>Te.createComment("org-location for "+(e.localName?`<${e.localName}> (host=${e["s-hn"]})`:`[${e.textContent}]`)),$t=(e,t,n)=>{const r=(e=>Z?Xt(e).$hostElement$:e)(e);return{emit:e=>(K&&!r.isConnected&&rn(`The "${t}" event was emitted, but the dispatcher node is no longer connected to the dom.`),Ct(r,t,{bubbles:!!(4&n),composed:!!(2&n),cancelable:!!(1&n),detail:e}))}},Ct=(e,t,n)=>{const r=Pe.ce(t,n);return e.dispatchEvent(r),r},Et=(e,t)=>{pe&&t&&!e.$onRenderResolve$&&t["s-p"]&&t["s-p"].push(new Promise((t=>e.$onRenderResolve$=t)))},kt=(e,t)=>{if(U&&I&&(e.$flags$|=16),pe&&4&e.$flags$)return void(e.$flags$|=512);Et(e,e.$ancestorComponent$);const n=()=>Tt(e,t);return U?gn(n):n()},Tt=(e,t)=>{const n=e.$hostElement$,r=ze("scheduleUpdate",e.$cmpMeta$.$tagName$),o=Z?e.$lazyInstance$:n;let i;return t?(Z&&p&&(e.$flags$|=256,e.$queuedListeners$&&(e.$queuedListeners$.map((([e,t])=>At(o,e,t))),e.$queuedListeners$=null)),Mt(n,"componentWillLoad"),s&&(i=At(o,"componentWillLoad"))):(Mt(n,"componentWillUpdate"),a&&(i=At(o,"componentWillUpdate"))),Mt(n,"componentWillRender"),l&&(i=Dt(i,(()=>At(o,"componentWillRender")))),r(),Dt(i,(()=>Pt(e,o,t)))},Pt=async(e,t,n)=>{const r=e.$hostElement$,o=ze("update",e.$cmpMeta$.$tagName$),i=r["s-rc"];P&&n&&Ve(e);const s=ze("render",e.$cmpMeta$.$tagName$);if(K&&(e.$flags$|=1024),Y?await jt(e,t,r):jt(e,t,r),le&&Pe.$cssShim$&&Pe.$cssShim$.updateHost(r),K&&(e.$renderCount$++,e.$flags$&=-1025),Y)try{Rt(r),n&&(1&e.$cmpMeta$.$flags$?r["s-en"]="":2&e.$cmpMeta$.$flags$&&(r["s-en"]="c"))}catch(e){en(e,r)}if(pe&&i&&(i.map((e=>e())),r["s-rc"]=void 0),s(),o(),pe){const t=r["s-p"],n=()=>It(e);0===t.length?n():(Promise.all(t).then(n),e.$flags$|=4,t.length=0)}else It(e)},jt=(t,n,r)=>{const o=!!e,i=!!Z,s=!!U,a=!!I;try{if($e=n,n=(o||n.render)&&n.render(),a&&s&&(t.$flags$&=-17),(a||i)&&(t.$flags$|=2),d||O)if(q||O){if(Y)return Promise.resolve(n).then((e=>_t(t,e)));_t(t,n)}else r.textContent=n}catch(e){en(e,t.$hostElement$)}return $e=null,null},It=e=>{const n=e.$cmpMeta$.$tagName$,r=e.$hostElement$,s=ze("postUpdate",n),a=Z?e.$lazyInstance$:r,l=e.$ancestorComponent$;i&&(K&&(e.$flags$|=1024),At(a,"componentDidRender"),K&&(e.$flags$&=-1025)),Mt(r,"componentDidRender"),64&e.$flags$?(o&&(K&&(e.$flags$|=1024),At(a,"componentDidUpdate"),K&&(e.$flags$&=-1025)),Mt(r,"componentDidUpdate"),s()):(e.$flags$|=64,pe&&k&&Nt(r),t&&(K&&(e.$flags$|=2048),At(a,"componentDidLoad"),K&&(e.$flags$&=-2049)),Mt(r,"componentDidLoad"),s(),pe&&(e.$onReadyResolve$(r),l||Lt(n))),V&&r["s-hmr-load"]&&r["s-hmr-load"](),b&&Z&&e.$onInstanceResolve$(r),pe&&(e.$onRenderResolve$&&(e.$onRenderResolve$(),e.$onRenderResolve$=void 0),512&e.$flags$&&vn((()=>kt(e,!1))),e.$flags$&=-517)},Lt=e=>{k&&Nt(Te.documentElement),fe&&(Pe.$flags$|=2),vn((()=>Ct(ke,"appload",{detail:{namespace:me}}))),ee&&performance.measure&&performance.measure(`[Stencil] ${me} initial load (by ${e})`,"st:app:start")},At=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(e){en(e)}},Dt=(e,t)=>e&&e.then?e.then(t):t(),Mt=(e,t)=>{Q&&Ct(e,"stencil_"+t,{bubbles:!0,composed:!0,detail:{namespace:me}})},Nt=e=>re?e.classList.add("hydrated"):ne?e.setAttribute("hydrated",""):void 0,Rt=e=>{const t=e.children;if(null!=t)for(let e=0,n=t.length;e{let a,l,u,c;if(1===i.nodeType){for(a=i.getAttribute(Be),a&&(l=a.split("."),l[0]!==s&&"0"!==l[0]||(u={$flags$:0,$hostId$:l[0],$nodeId$:l[1],$depth$:l[2],$index$:l[3],$tag$:i.tagName.toLowerCase(),$elm$:i,$attrs$:null,$children$:null,$key$:null,$name$:null,$text$:null},t.push(u),i.removeAttribute(Be),e.$children$||(e.$children$=[]),e.$children$[u.$index$]=u,e=u,r&&"0"===u.$depth$&&(r[u.$index$]=u.$elm$))),c=i.childNodes.length-1;c>=0;c--)Ft(e,t,n,r,o,i.childNodes[c],s);if(i.shadowRoot)for(c=i.shadowRoot.childNodes.length-1;c>=0;c--)Ft(e,t,n,r,o,i.shadowRoot.childNodes[c],s)}else if(8===i.nodeType)l=i.nodeValue.split("."),l[1]!==s&&"0"!==l[1]||(a=l[0],u={$flags$:0,$hostId$:l[1],$nodeId$:l[2],$depth$:l[3],$index$:l[4],$elm$:i,$attrs$:null,$children$:null,$key$:null,$name$:null,$tag$:null,$text$:null},"t"===a?(u.$elm$=i.nextSibling,u.$elm$&&3===u.$elm$.nodeType&&(u.$text$=u.$elm$.textContent,t.push(u),i.remove(),e.$children$||(e.$children$=[]),e.$children$[u.$index$]=u,r&&"0"===u.$depth$&&(r[u.$index$]=u.$elm$))):u.$hostId$===s&&("s"===a?(u.$tag$="slot",l[5]?i["s-sn"]=u.$name$=l[5]:i["s-sn"]="",i["s-sr"]=!0,C&&r&&(u.$elm$=Te.createElement(u.$tag$),u.$name$&&u.$elm$.setAttribute("name",u.$name$),i.parentNode.insertBefore(u.$elm$,i),i.remove(),"0"===u.$depth$&&(r[u.$index$]=u.$elm$)),n.push(u),e.$children$||(e.$children$=[]),e.$children$[u.$index$]=u):"r"===a&&(C&&r?i.remove():te&&(o["s-cr"]=i,i["s-cn"]=!0))));else if(e&&"style"===e.$tag$){const t=Qe(null,i.textContent);t.$elm$=i,t.$index$="0",e.$children$=[t]}},Bt=(e,t)=>{if(1===e.nodeType){let n=0;for(;n{const o=Xt(e),i=Z?o.$hostElement$:e,s=o.$instanceValues$.get(t),a=o.$flags$,l=Z?o.$lazyInstance$:i;var u,c;if(u=n,c=r.$members$[t][0],n=null==u||Ye(u)?u:ie&&4&c?"false"!==u&&(""===u||!!u):se&&2&c?parseFloat(u):ae&&1&c?String(u):u,!(Z&&8&a&&void 0!==s||n===s)&&(o.$instanceValues$.set(t,n),K&&(1024&o.$flags$?rn(`The state/prop "${t}" changed during rendering. This can potentially lead to infinite-loops and other bugs.`,"\nElement",i,"\nNew value",n,"\nOld value",s):2048&o.$flags$&&rn(`The state/prop "${t}" changed during "componentDidLoad()", this triggers extra re-renders, try to setup on "componentWillLoad()"`,"\nElement",i,"\nNew value",n,"\nOld value",s)),!Z||l)){if(W&&r.$watchers$&&128&a){const e=r.$watchers$[t];e&&e.map((e=>{try{l[e](n,s,t)}catch(e){en(e,i)}}))}if(I&&2==(18&a)){if(ce&&l.componentShouldUpdate&&!1===l.componentShouldUpdate(n,s,t))return;kt(o,!1)}}},zt=(e,t,n)=>{if(y&&t.$members$){W&&e.watchers&&(t.$watchers$=e.watchers);const r=Object.entries(t.$members$),o=e.prototype;if(r.map((([e,[r]])=>{(_||T)&&(31&r||(!Z||2&n)&&32&r)?Object.defineProperty(o,e,{get(){return t=e,Xt(this).$instanceValues$.get(t);var t},set(o){if(K){const o=Xt(this);0==(1&n)&&0==(8&o.$flags$)&&0!=(31&r)&&0==(1024&r)&&rn(`@Prop() "${e}" on <${t.$tagName$}> is immutable but was modified from within the component.\nMore information: https://stenciljs.com/docs/properties#prop-mutability`)}qt(this,e,o,t)},configurable:!0,enumerable:!0}):Z&&b&&1&n&&64&r&&Object.defineProperty(o,e,{value(...t){const n=Xt(this);return n.$onInstancePromise$.then((()=>n.$lazyInstance$[e](...t)))}})})),S&&(!Z||1&n)){const n=new Map;o.attributeChangedCallback=function(e,t,r){Pe.jmp((()=>{const t=n.get(e);this.hasOwnProperty(t)&&(r=this[t],delete this[t]),this[t]=(null!==r||"boolean"!=typeof this[t])&&r}))},e.observedAttributes=r.filter((([e,t])=>15&t[0])).map((([e,r])=>{const o=r[1]||e;return n.set(o,e),O&&512&r[0]&&t.$attrsToReflect$.push([e,o]),o}))}}return e},Ht=async(e,t,r,o,i)=>{if((Z||Y||P)&&0==(32&t.$flags$)){if(Z||X){if(t.$flags$|=32,(i=sn(r,t,o)).then){const e=(s=`st:load:${r.$tagName$}:${t.$modeName$}`,a=`[Stencil] Load module for <${r.$tagName$}>`,ee&&performance.mark?(0===performance.getEntriesByName(s).length&&performance.mark(s),()=>{0===performance.getEntriesByName(a).length&&performance.measure(a,s)}):()=>{});i=await i,e()}if((K||G)&&!i)throw new Error(`Constructor for "${r.$tagName$}#${t.$modeName$}" was not found`);y&&!i.isProxied&&(W&&(r.$watchers$=i.watchers),zt(i,r,2),i.isProxied=!0);const e=ze("createInstance",r.$tagName$);y&&(t.$flags$|=8);try{new i(t)}catch(e){en(e)}y&&(t.$flags$&=-9),W&&(t.$flags$|=128),e(),Wt(t.$lazyInstance$)}else i=e.constructor,t.$flags$|=32,customElements.whenDefined(r.$tagName$).then((()=>t.$flags$|=128));if(P&&i.style){let o=i.style;w&&"string"!=typeof o&&(o=o[t.$modeName$=Ke(e)],Y&&t.$modeName$&&e.setAttribute("s-mode",t.$modeName$));const s=Ge(r,t.$modeName$);if(!an.has(s)){const e=ze("registerStyles",r.$tagName$);!Y&&C&&oe&&8&r.$flags$&&(o=await Promise.resolve().then(n.bind(n,351)).then((e=>e.scopeCss(o,s,!1)))),We(s,o,!!(1&r.$flags$)),e()}}}var s,a;const l=t.$ancestorComponent$,u=()=>kt(t,!0);pe&&l&&l["s-rc"]?l["s-rc"].push(u):u()},Wt=e=>{Z&&u&&At(e,"connectedCallback")},Ut=e=>{if(0==(1&Pe.$flags$)){const t=Xt(e),n=t.$cmpMeta$,r=ze("connectedCallback",n.$tagName$);if(v&&Ae(e,t,n.$listeners$,!0),1&t.$flags$)Ae(e,t,n.$listeners$,!1),Wt(t.$lazyInstance$);else{let r;if(t.$flags$|=1,X&&(r=e.getAttribute(Re),r)){if(C&&je&&1&n.$flags$){const t=w?Ue(e.shadowRoot,n,e.getAttribute("s-mode")):Ue(e.shadowRoot,n);e.classList.remove(t+"-h",t+"-s")}((e,t,n,r)=>{const o=ze("hydrateClient",t),i=e.shadowRoot,s=[],a=C&&i?[]:null,l=r.$vnode$=Qe(t,null);Pe.$orgLocNodes$||Bt(Te.body,Pe.$orgLocNodes$=new Map),e[Re]=n,e.removeAttribute(Re),Ft(l,s,[],a,e,e,n),s.map((e=>{const n=e.$hostId$+"."+e.$nodeId$,r=Pe.$orgLocNodes$.get(n),o=e.$elm$;r&&je&&""===r["s-en"]&&r.parentNode.insertBefore(o,r.nextSibling),i||(o["s-hn"]=t,r&&(o["s-ol"]=r,o["s-ol"]["s-nr"]=o)),Pe.$orgLocNodes$.delete(n)})),C&&i&&a.map((e=>{e&&i.appendChild(e)})),o()})(e,n.$tagName$,r,t)}if(te&&!r&&(Y||(E||C)&&12&n.$flags$)&&Vt(e),pe){let n=e;for(;n=n.parentNode||n.host;)if(X&&1===n.nodeType&&n.hasAttribute("s-id")&&n["s-p"]||n["s-p"]){Et(t,t.$ancestorComponent$=n);break}}_&&!Y&&n.$members$&&Object.entries(n.$members$).map((([t,[n]])=>{if(31&n&&e.hasOwnProperty(t)){const n=e[t];delete e[t],e[t]=n}})),de?vn((()=>Ht(e,t,n))):Ht(e,t,n)}r()}},Vt=e=>{const t=e["s-cr"]=Te.createComment(G?`content-ref (host=${e.localName})`:"");t["s-cn"]=!0,e.insertBefore(t,e.firstChild)},Gt=e=>{if(0==(1&Pe.$flags$)){const t=Xt(e),n=Z?t.$lazyInstance$:e;p&&t.$rmListeners$&&(t.$rmListeners$.map((e=>e())),t.$rmListeners$=void 0),le&&Pe.$cssShim$&&Pe.$cssShim$.removeHost(e),Z&&c&&At(n,"disconnectedCallback"),r&&At(n,"componentDidUnload")}},Kt=(e,t)=>{const n={$flags$:t[0],$tagName$:t[1]};y&&(n.$members$=t[2]),p&&(n.$listeners$=t[3]),W&&(n.$watchers$=e.$watchers$),O&&(n.$attrsToReflect$=[]),C&&!je&&1&n.$flags$&&(n.$flags$|=8);const r=e.prototype.connectedCallback,o=e.prototype.disconnectedCallback;return Object.assign(e.prototype,{__registerHost(){Qt(this,n)},connectedCallback(){Ut(this),u&&r&&r.call(this)},disconnectedCallback(){Gt(this),c&&o&&o.call(this)}}),e.is=n.$tagName$,zt(e,n,3)},Jt=e=>{je?e.attachShadow({mode:"open"}):e.shadowRoot=e},Yt=new WeakMap,Xt=e=>Yt.get(e),Qt=(e,t)=>{const n={$flags$:0,$hostElement$:e,$cmpMeta$:t,$instanceValues$:new Map};return K&&(n.$renderCount$=0),b&&Z&&(n.$onInstancePromise$=new Promise((e=>n.$onInstanceResolve$=e))),pe&&(n.$onReadyPromise$=new Promise((e=>n.$onReadyResolve$=e)),e["s-p"]=[],e["s-rc"]=[]),Ae(e,n,t.$listeners$,!1),Yt.set(e,n)},Zt=(e,t)=>t in e,en=(e,t)=>(be||console.error)(e,t),tn=J?["STENCIL:"]:["%cstencil","color: white;background:#4c47ff;font-weight: bold; font-size:10px; padding:2px 6px; border-radius: 5px"],nn=(...e)=>console.error(...tn,...e),rn=(...e)=>console.warn(...tn,...e),on=new Map,sn=(e,t,r)=>{const o=e.$tagName$.replace(/-/g,"_"),i=e.$lazyBundleId$;if(K&&"string"!=typeof i)return void nn(`Trying to lazily load component <${e.$tagName$}> with style mode "${t.$modeName$}", but it does not exist.`);const s=!V&&on.get(i);return s?s[o]:n(263)(`./${i}.entry.js${V&&r?"?s-hmr="+r:""}`).then((e=>(V||on.set(i,e),e[o])),en)},an=new Map,ln=[],un=[],cn=[],dn=[],pn=(e,t)=>n=>{e.push(n),Ee||(Ee=!0,t&&4&Pe.$flags$?vn(mn):Pe.raf(mn))},fn=e=>{for(let t=0;t{let n=0,r=0;for(;n{if(fe&&Ce++,fn(un),fe){const e=2==(6&Pe.$flags$)?performance.now()+14*Math.ceil(.1*Ce):1/0;hn(cn,e),hn(dn,e),cn.length>0&&(dn.push(...cn),cn.length=0),(Ee=un.length+cn.length+dn.length>0)?Pe.raf(mn):Ce=0}else fn(cn),(Ee=un.length>0)&&Pe.raf(mn)},vn=e=>(e=>Promise.resolve(e))().then(e),gn=pn(cn,!0),yn=class extends HTMLElement{constructor(){super(),this.__registerHost(),this.redirectUrl="/pulumi-up/thank-you/",this.isModalOpen=!1,this.displayingContent="session-select",this.selectedSessions=[],this.skippedSessionSelection=!1,this.processingFormSubmissions=!1,this.formProcessor=void 0,this.error=void 0,this.submittedFormValues={},this.onMessage=e=>{var t;if("hsFormCallback"!==(null===(t=e.data)||void 0===t?void 0:t.type)||!this.isModalOpen)return;const n=e.data.eventName;if("onFormReady"===n&&this.processingFormSubmissions&&this.handleFormSubmissions(),"onFormSubmit"===n){const e=this.el.querySelectorAll("form input"),t={};e.forEach((e=>{"checkbox"!==e.type&&(t[e.name]=e.value)})),this.submittedFormValues=t,setTimeout((()=>{this.selectedSessions=[...this.selectedSessions.slice(1)],this.processingFormSubmissions=!0,0===this.selectedSessions.length&&(window.location.href=this.redirectUrl)}),500)}},this.handleButtonClick=e=>{e.preventDefault(),this.isModalOpen=!0,document.querySelector("body").className+=" disable-scroll"},this.handleCloseModal=e=>{e.preventDefault(),this.isModalOpen=!1,this.skippedSessionSelection||(this.displayingContent="session-select",this.selectedSessions=[]),document.querySelector("body").className=document.querySelector("body").className.replace("disable-scroll","")},this.handleSessionSelection=e=>{const t=this.selectedSessions.indexOf(e);-1===t?this.selectedSessions.push(e):this.selectedSessions.splice(t,1)},this.handleGotToSessionSelect=e=>{e.preventDefault(),this.displayingContent="session-select"}}handleEventSessionInfo(e){this.parsedEventSessions=JSON.parse(e)}handleSkipSessionSelection(e){1===e.length&&(this.selectedSessions.push(e[0].hubspot_form_id),this.displayingContent="form",this.skippedSessionSelection=!0)}componentWillLoad(){this.handleEventSessionInfo(this.eventSessions),this.handleSkipSessionSelection(this.parsedEventSessions)}componentDidLoad(){window.addEventListener("message",this.onMessage)}disconnectedCallback(){window.removeEventListener("message",this.onMessage)}handleGoToForm(e,t){e.preventDefault(),0!==this.selectedSessions.length?(this.displayingContent=t,this.error=void 0):this.error="You must select at least one of the above options."}handleFormSubmissions(){if(0===this.selectedSessions.length)return void(window.location.href=this.redirectUrl);this.el.querySelectorAll("form input[type='checkbox']")[1].click(),setTimeout((()=>{const e=Object.keys(this.submittedFormValues);if(e.length>0)for(let t=0;t{this.el.querySelector("form input[type='submit']").click()}),500)}renderSessionSelectionItem(e){const t=this.selectedSessions.indexOf(e.hubspot_form_id)>-1;return Xe("li",null,Xe("label",{class:"session-selection-item"},Xe("div",{class:"checkbox-container"},Xe("input",{type:"checkbox",id:e.title,name:e.title,onChange:()=>this.handleSessionSelection(e.hubspot_form_id),checked:t}),Xe("span",{class:"checkmark"})),Xe("div",{class:"checkbox-label"},Xe("h6",null,e.title),Xe("p",null,e.description))))}renderSessionSelectContent(){return[Xe("div",{class:"session-select-container"},Xe("p",null,"Please select all the options you'd like to register for:"),Xe("ul",{class:"session-select-list"},this.parsedEventSessions.map((e=>this.renderSessionSelectionItem(e))))),Xe("div",{class:"next-button-container"},Xe("a",{href:"#",class:`${this.buttonClass} modal-button`,onClick:e=>this.handleGoToForm(e,"form")},"Next"),this.error?Xe("p",{class:"error-message"},this.error):null)]}renderForm(e){return this.processingFormSubmissions?Xe("div",null,Xe("h4",null,Xe("i",{class:"fas fa-spinner fa-spin"})),Xe("div",{class:"invisible",ref:e=>this.formProcessor=e},Xe("pulumi-hubspot-form",{key:e,formId:e}))):Xe("div",{class:"registration-form-container"},this.skippedSessionSelection?null:Xe("a",{href:"#",onClick:this.handleGotToSessionSelect},"← Go back to select sessions."),Xe("div",{class:"registration-form"},Xe("pulumi-hubspot-form",{formId:this.selectedSessions[0]})))}renderContent(){switch(this.displayingContent){case"session-select":return this.renderSessionSelectContent();case"form":return this.renderForm(this.selectedSessions[0])}}renderModal(){return Xe("div",{class:"event-session-modal-container"},Xe("div",{class:"modal-container"},Xe("div",{class:"modal"},Xe("div",{class:"title-container"},Xe("div",{class:"title-text"},Xe("h4",null,this.modalTitle)),Xe("div",{class:"close-icon"},Xe("i",{class:"fa fa-times",onClick:this.handleCloseModal}))),this.renderContent())))}render(){return Xe(Ze,null,Xe("div",null,Xe("div",null,Xe("a",{class:this.buttonClass,href:"#",onClick:this.handleButtonClick},this.buttonText)),this.isModalOpen?this.renderModal():null))}get el(){return this}static get watchers(){return{eventSessions:["handleEventSessionInfo"]}}static get style(){return':host{display:block}.event-session-modal-container{position:fixed;width:100%;height:100%;background-color:black;z-index:9999;top:0;left:0}.event-session-modal-container .hidden{display:none}.event-session-modal-container .modal-container{display:flex;align-items:center;justify-content:center;width:100%;height:100%}.event-session-modal-container .modal-container h2,.event-session-modal-container .modal-container h3,.event-session-modal-container .modal-container h4,.event-session-modal-container .modal-container h5,.event-session-modal-container .modal-container h6,.event-session-modal-container .modal-container p{color:black}.event-session-modal-container .modal-container .modal{height:85%;width:85%;background-color:white;border-radius:5px;padding:1.5rem;overflow-y:scroll}.event-session-modal-container .modal-container .modal .title-container{display:flex;border-bottom:1px solid black}.event-session-modal-container .modal-container .modal .title-container .title-text{width:75%;text-align:left}.event-session-modal-container .modal-container .modal .title-container .title-text h2{color:black}.event-session-modal-container .modal-container .modal .title-container .close-icon{width:25%;text-align:right}.event-session-modal-container .modal-container .modal .title-container .close-icon i{cursor:pointer;font-size:1.5rem}.event-session-modal-container .modal-container .modal .session-select-container{text-align:left}.event-session-modal-container .modal-container .modal .session-select-container p{font-size:1.25rem;margin-top:2rem}.event-session-modal-container .modal-container .modal .session-select-list{list-style:none;text-align:left;display:flex;flex-wrap:wrap;align-items:stretch}.event-session-modal-container .modal-container .modal .session-select-list .checkbox-container{width:10%;position:relative;cursor:pointer}.event-session-modal-container .modal-container .modal .session-select-list .checkbox-container input{position:absolute;opacity:0;height:0;width:0}.event-session-modal-container .modal-container .modal .session-select-list .checkbox-container .checkmark{position:absolute;height:25px;width:25px;border:2px solid #805ac3;border-radius:5px;background-color:white}.event-session-modal-container .modal-container .modal .session-select-list .checkbox-container .checkmark:after{content:"";position:absolute;display:none;left:8px;top:5px;width:5px;height:10px;border:solid white;border-width:0 3px 3px 0;-webkit-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg)}.event-session-modal-container .modal-container .modal .session-select-list .checkbox-container input:checked~.checkmark{background-color:#805ac3}.event-session-modal-container .modal-container .modal .session-select-list .checkbox-container input:checked~.checkmark:after{display:block}.event-session-modal-container .modal-container .modal .session-select-list .checkbox-label{width:90%}.event-session-modal-container .modal-container .modal .session-select-list li{width:50%;padding:0.75rem}@media (max-width: 1024px){.event-session-modal-container .modal-container .modal .session-select-list li{width:100%}}.event-session-modal-container .modal-container .modal .session-select-list .session-selection-item{height:100%;display:flex;justify-items:center;align-items:start;cursor:pointer;border:1px solid black;border-radius:5px;padding:1rem;border-radius:5px}.event-session-modal-container .modal-container .modal .session-select-list .session-selection-item:hover{background-color:#f9f9fa}.event-session-modal-container .modal-container .modal .session-select-list .session-selection-item p{font-size:1rem;margin-top:0.5rem}@media (max-width: 1024px){.event-session-modal-container .modal-container .modal .session-select-list .session-selection-item h6{padding-left:1rem}}.event-session-modal-container .modal-container .modal .next-button-container{text-align:right}.event-session-modal-container .modal-container .modal .next-button-container .modal-button{display:inline-block}.event-session-modal-container .modal-container .modal .next-button-container .modal-button:hover{background-color:#4d3675}.event-session-modal-container .modal-container .modal .next-button-container .error-message{color:red}.event-session-modal-container .modal-container .modal .registration-form-container{text-align:left;padding-top:0.5rem}.event-session-modal-container .modal-container .modal .registration-form-container a{color:black}.event-session-modal-container .modal-container .modal .registration-form-container a:hover{text-decoration:underline}.event-session-modal-container .modal-container .modal .registration-form{max-width:36rem;margin:0 auto;text-align:left}.event-session-modal-container .modal-container .modal .registration-form form{padding:0.25rem}.event-session-modal-container .modal-container .modal .registration-form a{color:black;text-decoration:underline}.event-session-modal-container .modal-container .modal .registration-form a:hover{font-weight:bold}'}};var bn,wn=new Uint8Array(16);function Sn(){if(!bn&&!(bn="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return bn(wn)}const _n=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function On(e){return"string"==typeof e&&_n.test(e)}for(var xn=[],$n=0;$n<256;++$n)xn.push(($n+256).toString(16).substr(1));function Cn(e,t,n){var r=(e=e||{}).random||(e.rng||Sn)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(var o=0;o<16;++o)t[n+o]=r[o];return t}return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(xn[e[t+0]]+xn[e[t+1]]+xn[e[t+2]]+xn[e[t+3]]+"-"+xn[e[t+4]]+xn[e[t+5]]+"-"+xn[e[t+6]]+xn[e[t+7]]+"-"+xn[e[t+8]]+xn[e[t+9]]+"-"+xn[e[t+10]]+xn[e[t+11]]+xn[e[t+12]]+xn[e[t+13]]+xn[e[t+14]]+xn[e[t+15]]).toLowerCase();if(!On(n))throw TypeError("Stringified UUID is invalid");return n}(r)}function En(e){const t=window.location.search.substring(1).split("&");let n=null;return t.forEach((t=>{const r=t.split("=");r[0]===e&&(n=decodeURIComponent(r[1].replace(/\+/g,"%20")))})),n}function kn(){return document.cookie.split(";").reduce(((e,t)=>{const n=t.indexOf("="),r=t.substring(0,n).trim(),o=t.substring(n+1).trim();return e[r]=o,e}),{})}const Tn=class extends HTMLElement{constructor(){super(),this.__registerHost(),this.buttonClass="",this.loading=!0,this.isLoggedIn=!1}componentWillRender(){var e;try{const t=null!==(e=kn().pulumi_web_user_info)&&void 0!==e?e:"j:{}",n=JSON.parse(decodeURIComponent(t).slice(2));n&&n.userId&&""!==n.userId&&(this.isLoggedIn=!0)}catch(e){}this.loading=!1}render(){if(!this.loading)return this.isLoggedIn?Xe("a",{class:this.buttonClass,"data-track":"header-get-started-mobile",href:"https://app.pulumi.com/signup/",target:"_blank",rel:"noopener noreferrer",title:"Dashboard"},"Dashboard"):Xe("a",{class:this.buttonClass,"data-track":"header-get-started",href:"/docs/get-started",title:"Get Started"},"Get Started")}static get style(){return":host{display:block}"}},Pn=class extends HTMLElement{constructor(){super(),this.__registerHost(),this.leftItems="",this.centerItems="",this.rightItems="",this.imageClass="",this.columnOne=[],this.columnTwo=[],this.columnThree=[]}componentDidLoad(){this.columnOne=this.shuffleArray(this.leftItems.split(",")),this.columnTwo=this.shuffleArray(this.centerItems.split(",")),this.columnThree=this.shuffleArray(this.rightItems.split(",")),this.startRotators()}shuffleArray(e){for(let t=e.length-1;t>0;t--){const n=Math.floor(Math.random()*(t+1));[e[t],e[n]]=[e[n],e[t]]}return e}startRotators(){this.columnOneRotator=setInterval((()=>this.incrementColumnOne()),400),setTimeout((()=>{this.columnTwoRotator=setInterval((()=>this.incrementColumnTwo()),400)}),500),setTimeout((()=>{this.columnThreeRotator=setInterval((()=>this.incrementColumnThree()),400)}),1e3),setTimeout((()=>this.stopRotators()),3e3)}stopRotators(){clearInterval(this.columnOneRotator),setTimeout((()=>clearInterval(this.columnTwoRotator)),500),setTimeout((()=>clearInterval(this.columnThreeRotator)),1e3),setTimeout((()=>this.startRotators()),1e4)}incrementColumnOne(){this.columnOne=this.updateOrder(this.columnOne)}incrementColumnTwo(){this.columnTwo=this.updateOrder(this.columnTwo)}incrementColumnThree(){this.columnThree=this.updateOrder(this.columnThree)}updateOrder(e){const t=[...e],n=t.shift();return t.push(n),t}render(){const e=this.columnOne[0],t=this.columnTwo[0],n=this.columnThree[0];return Xe(Ze,null,Xe("div",null,Xe("div",{class:"slot-container"},Xe("div",{class:"item-container"},Xe("img",{key:e,class:this.imageClass,src:e})),Xe("div",{class:"separator-container"},"+"),Xe("div",{class:"item-container"},Xe("img",{key:t,class:this.imageClass,src:t})),Xe("div",{class:"separator-container"},"+"),Xe("div",{class:"item-container"},Xe("img",{key:n,class:this.imageClass,src:n})))))}static get style(){return"home-slots .slot-container{display:flex;align-items:center;justify-items:center;text-align:center}home-slots .slot-container .item-container{width:25%;text-align:center}home-slots .slot-container .item-container img{animation:fadeIn 500ms}home-slots .slot-container .separator-container{width:12.5%;text-align:center}@keyframes fadeIn{0%{opacity:0}100%{opacity:1}}"}};var jn="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:{};function In(e,t,n){return e(n={path:t,exports:{},require:function(e,t){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}()}},n.exports),n.exports}function Ln(e){if(e.__esModule)return e;var t=Object.defineProperty({},"__esModule",{value:!0});return Object.keys(e).forEach((function(n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})})),t}var An=In((function(e,t){(function(){var n,r="Expected a function",o="__lodash_hash_undefined__",i="__lodash_placeholder__",s=16,a=32,l=64,u=128,c=256,d=1/0,p=9007199254740991,f=NaN,h=4294967295,m=[["ary",u],["bind",1],["bindKey",2],["curry",8],["curryRight",s],["flip",512],["partial",a],["partialRight",l],["rearg",c]],v="[object Arguments]",g="[object Array]",y="[object Boolean]",b="[object Date]",w="[object Error]",S="[object Function]",_="[object GeneratorFunction]",O="[object Map]",x="[object Number]",$="[object Object]",C="[object Promise]",E="[object RegExp]",k="[object Set]",T="[object String]",P="[object Symbol]",j="[object WeakMap]",I="[object ArrayBuffer]",L="[object DataView]",A="[object Float32Array]",D="[object Float64Array]",M="[object Int8Array]",N="[object Int16Array]",R="[object Int32Array]",F="[object Uint8Array]",B="[object Uint8ClampedArray]",q="[object Uint16Array]",z="[object Uint32Array]",H=/\b__p \+= '';/g,W=/\b(__p \+=) '' \+/g,U=/(__e\(.*?\)|\b__t\)) \+\n'';/g,V=/&(?:amp|lt|gt|quot|#39);/g,G=/[&<>"']/g,K=RegExp(V.source),J=RegExp(G.source),Y=/<%-([\s\S]+?)%>/g,X=/<%([\s\S]+?)%>/g,Q=/<%=([\s\S]+?)%>/g,Z=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ee=/^\w*$/,te=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ne=/[\\^$.*+?()[\]{}|]/g,re=RegExp(ne.source),oe=/^\s+/,ie=/\s/,se=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ae=/\{\n\/\* \[wrapped with (.+)\] \*/,le=/,? & /,ue=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ce=/[()=,{}\[\]\/\s]/,de=/\\(\\)?/g,pe=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,fe=/\w*$/,he=/^[-+]0x[0-9a-f]+$/i,me=/^0b[01]+$/i,ve=/^\[object .+?Constructor\]$/,ge=/^0o[0-7]+$/i,ye=/^(?:0|[1-9]\d*)$/,be=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,we=/($^)/,Se=/['\n\r\u2028\u2029\\]/g,_e="\\ud800-\\udfff",Oe="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",xe="\\u2700-\\u27bf",$e="a-z\\xdf-\\xf6\\xf8-\\xff",Ce="A-Z\\xc0-\\xd6\\xd8-\\xde",Ee="\\ufe0e\\ufe0f",ke="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Te="['’]",Pe="["+_e+"]",je="["+ke+"]",Ie="["+Oe+"]",Le="\\d+",Ae="["+xe+"]",De="["+$e+"]",Me="[^"+_e+ke+Le+xe+$e+Ce+"]",Ne="\\ud83c[\\udffb-\\udfff]",Re="[^"+_e+"]",Fe="(?:\\ud83c[\\udde6-\\uddff]){2}",Be="[\\ud800-\\udbff][\\udc00-\\udfff]",qe="["+Ce+"]",ze="\\u200d",He="(?:"+De+"|"+Me+")",We="(?:"+qe+"|"+Me+")",Ue="(?:['’](?:d|ll|m|re|s|t|ve))?",Ve="(?:['’](?:D|LL|M|RE|S|T|VE))?",Ge="(?:"+Ie+"|"+Ne+")"+"?",Ke="["+Ee+"]?",Je=Ke+Ge+("(?:"+ze+"(?:"+[Re,Fe,Be].join("|")+")"+Ke+Ge+")*"),Ye="(?:"+[Ae,Fe,Be].join("|")+")"+Je,Xe="(?:"+[Re+Ie+"?",Ie,Fe,Be,Pe].join("|")+")",Qe=RegExp(Te,"g"),Ze=RegExp(Ie,"g"),et=RegExp(Ne+"(?="+Ne+")|"+Xe+Je,"g"),tt=RegExp([qe+"?"+De+"+"+Ue+"(?="+[je,qe,"$"].join("|")+")",We+"+"+Ve+"(?="+[je,qe+He,"$"].join("|")+")",qe+"?"+He+"+"+Ue,qe+"+"+Ve,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Le,Ye].join("|"),"g"),nt=RegExp("["+ze+_e+Oe+Ee+"]"),rt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,ot=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],it=-1,st={};st[A]=st[D]=st[M]=st[N]=st[R]=st[F]=st[B]=st[q]=st[z]=!0,st[v]=st[g]=st[I]=st[y]=st[L]=st[b]=st[w]=st[S]=st[O]=st[x]=st[$]=st[E]=st[k]=st[T]=st[j]=!1;var at={};at[v]=at[g]=at[I]=at[L]=at[y]=at[b]=at[A]=at[D]=at[M]=at[N]=at[R]=at[O]=at[x]=at[$]=at[E]=at[k]=at[T]=at[P]=at[F]=at[B]=at[q]=at[z]=!0,at[w]=at[S]=at[j]=!1;var lt={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},ut=parseFloat,ct=parseInt,dt="object"==typeof jn&&jn&&jn.Object===Object&&jn,pt="object"==typeof self&&self&&self.Object===Object&&self,ft=dt||pt||Function("return this")(),ht=t&&!t.nodeType&&t,mt=ht&&e&&!e.nodeType&&e,vt=mt&&mt.exports===ht,gt=vt&&dt.process,yt=function(){try{var e=mt&&mt.require&&mt.require("util").types;return e||gt&>.binding&>.binding("util")}catch(e){}}(),bt=yt&&yt.isArrayBuffer,wt=yt&&yt.isDate,St=yt&&yt.isMap,_t=yt&&yt.isRegExp,Ot=yt&&yt.isSet,xt=yt&&yt.isTypedArray;function $t(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function Ct(e,t,n,r){for(var o=-1,i=null==e?0:e.length;++o-1}function It(e,t,n){for(var r=-1,o=null==e?0:e.length;++r-1;);return n}function tn(e,t){for(var n=e.length;n--&&qt(t,e[n],0)>-1;);return n}function nn(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}var rn=Vt({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"}),on=Vt({"&":"&","<":"<",">":">",'"':""","'":"'"});function sn(e){return"\\"+lt[e]}function an(e){return nt.test(e)}function ln(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function un(e,t){return function(n){return e(t(n))}}function cn(e,t){for(var n=-1,r=e.length,o=0,s=[];++n",""":'"',"'":"'"});var gn=function e(t){var ie,_e=(t=null==t?ft:gn.defaults(ft.Object(),t,gn.pick(ft,ot))).Array,Oe=t.Date,xe=t.Error,$e=t.Function,Ce=t.Math,Ee=t.Object,ke=t.RegExp,Te=t.String,Pe=t.TypeError,je=_e.prototype,Ie=$e.prototype,Le=Ee.prototype,Ae=t["__core-js_shared__"],De=Ie.toString,Me=Le.hasOwnProperty,Ne=0,Re=(ie=/[^.]+$/.exec(Ae&&Ae.keys&&Ae.keys.IE_PROTO||""))?"Symbol(src)_1."+ie:"",Fe=Le.toString,Be=De.call(Ee),qe=ft._,ze=ke("^"+De.call(Me).replace(ne,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),He=vt?t.Buffer:n,We=t.Symbol,Ue=t.Uint8Array,Ve=He?He.allocUnsafe:n,Ge=un(Ee.getPrototypeOf,Ee),Ke=Ee.create,Je=Le.propertyIsEnumerable,Ye=je.splice,Xe=We?We.isConcatSpreadable:n,et=We?We.iterator:n,nt=We?We.toStringTag:n,lt=function(){try{var e=hi(Ee,"defineProperty");return e({},"",{}),e}catch(e){}}(),dt=t.clearTimeout!==ft.clearTimeout&&t.clearTimeout,pt=Oe&&Oe.now!==ft.Date.now&&Oe.now,ht=t.setTimeout!==ft.setTimeout&&t.setTimeout,mt=Ce.ceil,gt=Ce.floor,yt=Ee.getOwnPropertySymbols,Rt=He?He.isBuffer:n,Vt=t.isFinite,yn=je.join,bn=un(Ee.keys,Ee),wn=Ce.max,Sn=Ce.min,_n=Oe.now,On=t.parseInt,xn=Ce.random,$n=je.reverse,Cn=hi(t,"DataView"),En=hi(t,"Map"),kn=hi(t,"Promise"),Tn=hi(t,"Set"),Pn=hi(t,"WeakMap"),jn=hi(Ee,"create"),In=Pn&&new Pn,Ln={},An=qi(Cn),Dn=qi(En),Mn=qi(kn),Nn=qi(Tn),Rn=qi(Pn),Fn=We?We.prototype:n,Bn=Fn?Fn.valueOf:n,qn=Fn?Fn.toString:n;function zn(e){if(oa(e)&&!Gs(e)&&!(e instanceof Vn)){if(e instanceof Un)return e;if(Me.call(e,"__wrapped__"))return zi(e)}return new Un(e)}var Hn=function(){function e(){}return function(t){if(!ra(t))return{};if(Ke)return Ke(t);e.prototype=t;var r=new e;return e.prototype=n,r}}();function Wn(){}function Un(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=n}function Vn(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=h,this.__views__=[]}function Gn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t=t?e:t)),e}function cr(e,t,r,o,i,s){var a,l=1&t,u=2&t,c=4&t;if(r&&(a=i?r(e,o,i,s):r(e)),a!==n)return a;if(!ra(e))return e;var d=Gs(e);if(d){if(a=function(e){var t=e.length,n=new e.constructor(t);t&&"string"==typeof e[0]&&Me.call(e,"index")&&(n.index=e.index,n.input=e.input);return n}(e),!l)return Io(e,a)}else{var p=gi(e),f=p==S||p==_;if(Xs(e))return Co(e,l);if(p==$||p==v||f&&!i){if(a=u||f?{}:bi(e),!l)return u?function(e,t){return Lo(e,vi(e),t)}(e,function(e,t){return e&&Lo(t,Da(t),e)}(a,e)):function(e,t){return Lo(e,mi(e),t)}(e,sr(a,e))}else{if(!at[p])return i?e:{};a=function(e,t,n){var r=e.constructor;switch(t){case I:return Eo(e);case y:case b:return new r(+e);case L:return function(e,t){var n=t?Eo(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case A:case D:case M:case N:case R:case F:case B:case q:case z:return ko(e,n);case O:return new r;case x:case T:return new r(e);case E:return function(e){var t=new e.constructor(e.source,fe.exec(e));return t.lastIndex=e.lastIndex,t}(e);case k:return new r;case P:return o=e,Bn?Ee(Bn.call(o)):{}}var o}(e,p,l)}}s||(s=new Xn);var h=s.get(e);if(h)return h;s.set(e,a),ua(e)?e.forEach((function(n){a.add(cr(n,t,r,n,e,s))})):ia(e)&&e.forEach((function(n,o){a.set(o,cr(n,t,r,o,e,s))}));var m=d?n:(c?u?ai:si:u?Da:Aa)(e);return Et(m||e,(function(n,o){m&&(n=e[o=n]),rr(a,o,cr(n,t,r,o,e,s))})),a}function dr(e,t,r){var o=r.length;if(null==e)return!o;for(e=Ee(e);o--;){var i=r[o],s=t[i],a=e[i];if(a===n&&!(i in e)||!s(a))return!1}return!0}function pr(e,t,o){if("function"!=typeof e)throw new Pe(r);return Ai((function(){e.apply(n,o)}),t)}function fr(e,t,n,r){var o=-1,i=jt,s=!0,a=e.length,l=[],u=t.length;if(!a)return l;n&&(t=Lt(t,Xt(n))),r?(i=It,s=!1):t.length>=200&&(i=Zt,s=!1,t=new Yn(t));e:for(;++o-1},Kn.prototype.set=function(e,t){var n=this.__data__,r=or(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},Jn.prototype.clear=function(){this.size=0,this.__data__={hash:new Gn,map:new(En||Kn),string:new Gn}},Jn.prototype.delete=function(e){var t=pi(this,e).delete(e);return this.size-=t?1:0,t},Jn.prototype.get=function(e){return pi(this,e).get(e)},Jn.prototype.has=function(e){return pi(this,e).has(e)},Jn.prototype.set=function(e,t){var n=pi(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Yn.prototype.add=Yn.prototype.push=function(e){return this.__data__.set(e,o),this},Yn.prototype.has=function(e){return this.__data__.has(e)},Xn.prototype.clear=function(){this.__data__=new Kn,this.size=0},Xn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Xn.prototype.get=function(e){return this.__data__.get(e)},Xn.prototype.has=function(e){return this.__data__.has(e)},Xn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Kn){var r=n.__data__;if(!En||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Jn(r)}return n.set(e,t),this.size=n.size,this};var hr=Mo(_r),mr=Mo(Or,!0);function vr(e,t){var n=!0;return hr(e,(function(e,r,o){return n=!!t(e,r,o)})),n}function gr(e,t,r){for(var o=-1,i=e.length;++o0&&n(a)?t>1?br(a,t-1,n,r,o):At(o,a):r||(o[o.length]=a)}return o}var wr=No(),Sr=No(!0);function _r(e,t){return e&&wr(e,t,Aa)}function Or(e,t){return e&&Sr(e,t,Aa)}function xr(e,t){return Pt(t,(function(t){return ea(e[t])}))}function $r(e,t){for(var r=0,o=(t=_o(t,e)).length;null!=e&&rt}function Tr(e,t){return null!=e&&Me.call(e,t)}function Pr(e,t){return null!=e&&t in Ee(e)}function jr(e,t,r){for(var o=r?It:jt,i=e[0].length,s=e.length,a=s,l=_e(s),u=1/0,c=[];a--;){var d=e[a];a&&t&&(d=Lt(d,Xt(t))),u=Sn(d.length,u),l[a]=!r&&(t||i>=120&&d.length>=120)?new Yn(a&&d):n}d=e[0];var p=-1,f=l[0];e:for(;++p=a?l:l*("desc"==n[r]?-1:1)}return e.index-t.index}(e,t,n)}))}function Gr(e,t,n){for(var r=-1,o=t.length,i={};++r-1;)a!==e&&Ye.call(a,l,1),Ye.call(e,l,1);return e}function Jr(e,t){for(var n=e?t.length:0,r=n-1;n--;){var o=t[n];if(n==r||o!==i){var i=o;Si(o)?Ye.call(e,o,1):ho(e,o)}}return e}function Yr(e,t){return e+gt(xn()*(t-e+1))}function Xr(e,t){var n="";if(!e||t<1||t>p)return n;do{t%2&&(n+=e),(t=gt(t/2))&&(e+=e)}while(t);return n}function Qr(e,t){return Di(Ti(e,t,sl),e+"")}function Zr(e){return Zn(Ha(e))}function eo(e,t){var n=Ha(e);return Ri(n,ur(t,0,n.length))}function to(e,t,r,o){if(!ra(e))return e;for(var i=-1,s=(t=_o(t,e)).length,a=s-1,l=e;null!=l&&++io?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var i=_e(o);++r>>1,s=e[i];null!==s&&!da(s)&&(n?s<=t:s=200){var u=t?null:Qo(e);if(u)return dn(u);s=!1,o=Zt,l=new Yn}else l=t?[]:a;e:for(;++r=o?e:io(e,t,r)}var $o=dt||function(e){return ft.clearTimeout(e)};function Co(e,t){if(t)return e.slice();var n=e.length,r=Ve?Ve(n):new e.constructor(n);return e.copy(r),r}function Eo(e){var t=new e.constructor(e.byteLength);return new Ue(t).set(new Ue(e)),t}function ko(e,t){var n=t?Eo(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function To(e,t){if(e!==t){var r=e!==n,o=null===e,i=e==e,s=da(e),a=t!==n,l=null===t,u=t==t,c=da(t);if(!l&&!c&&!s&&e>t||s&&a&&u&&!l&&!c||o&&a&&u||!r&&u||!i)return 1;if(!o&&!s&&!c&&e1?r[i-1]:n,a=i>2?r[2]:n;for(s=e.length>3&&"function"==typeof s?(i--,s):n,a&&_i(r[0],r[1],a)&&(s=i<3?n:s,i=1),t=Ee(t);++o-1?i[s?t[a]:a]:n}}function zo(e){return ii((function(t){var o=t.length,i=o,s=Un.prototype.thru;for(e&&t.reverse();i--;){var a=t[i];if("function"!=typeof a)throw new Pe(r);if(s&&!l&&"wrapper"==ui(a))var l=new Un([],!0)}for(i=l?i:o;++i1&&y.reverse(),p&&cl))return!1;var c=s.get(e),d=s.get(t);if(c&&d)return c==t&&d==e;var p=-1,f=!0,h=2&r?new Yn:n;for(s.set(e,t),s.set(t,e);++p-1&&e%1==0&&e1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(se,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return Et(m,(function(n){var r="_."+n[0];t&n[1]&&!jt(e,r)&&e.push(r)})),e.sort()}(function(e){var t=e.match(ae);return t?t[1].split(le):[]}(r),n)))}function Ni(e){var t=0,r=0;return function(){var o=_n(),i=16-(o-r);if(r=o,i>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(n,arguments)}}function Ri(e,t){var r=-1,o=e.length,i=o-1;for(t=t===n?o:t;++r1?e[t-1]:n;return r="function"==typeof r?(e.pop(),r):n,ls(e,r)}));function ms(e){var t=zn(e);return t.__chain__=!0,t}function vs(e,t){return t(e)}var gs=ii((function(e){var t=e.length,r=t?e[0]:0,o=this.__wrapped__,i=function(t){return lr(t,e)};return!(t>1||this.__actions__.length)&&o instanceof Vn&&Si(r)?((o=o.slice(r,+r+(t?1:0))).__actions__.push({func:vs,args:[i],thisArg:n}),new Un(o,this.__chain__).thru((function(e){return t&&!e.length&&e.push(n),e}))):this.thru(i)}));var ys=Ao((function(e,t,n){Me.call(e,n)?++e[n]:ar(e,n,1)}));var bs=qo(Vi),ws=qo(Gi);function Ss(e,t){return(Gs(e)?Et:hr)(e,di(t,3))}function _s(e,t){return(Gs(e)?kt:mr)(e,di(t,3))}var Os=Ao((function(e,t,n){Me.call(e,n)?e[n].push(t):ar(e,n,[t])}));var xs=Qr((function(e,t,n){var r=-1,o="function"==typeof t,i=Js(e)?_e(e.length):[];return hr(e,(function(e){i[++r]=o?$t(t,e,n):Ir(e,t,n)})),i})),$s=Ao((function(e,t,n){ar(e,n,t)}));function Cs(e,t){return(Gs(e)?Lt:qr)(e,di(t,3))}var Es=Ao((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]}));var ks=Qr((function(e,t){if(null==e)return[];var n=t.length;return n>1&&_i(e,t[0],t[1])?t=[]:n>2&&_i(t[0],t[1],t[2])&&(t=[t[0]]),Vr(e,br(t,1),[])})),Ts=pt||function(){return ft.Date.now()};function Ps(e,t,r){return t=r?n:t,t=e&&null==t?e.length:t,ei(e,u,n,n,n,n,t)}function js(e,t){var o;if("function"!=typeof t)throw new Pe(r);return e=ga(e),function(){return--e>0&&(o=t.apply(this,arguments)),e<=1&&(t=n),o}}var Is=Qr((function(e,t,n){var r=1;if(n.length){var o=cn(n,ci(Is));r|=a}return ei(e,r,t,n,o)})),Ls=Qr((function(e,t,n){var r=3;if(n.length){var o=cn(n,ci(Ls));r|=a}return ei(t,r,e,n,o)}));function As(e,t,o){var i,s,a,l,u,c,d=0,p=!1,f=!1,h=!0;if("function"!=typeof e)throw new Pe(r);function m(t){var r=i,o=s;return i=s=n,d=t,l=e.apply(o,r)}function v(e){return d=e,u=Ai(y,t),p?m(e):l}function g(e){var r=e-c;return c===n||r>=t||r<0||f&&e-d>=a}function y(){var e=Ts();if(g(e))return b(e);u=Ai(y,function(e){var n=t-(e-c);return f?Sn(n,a-(e-d)):n}(e))}function b(e){return u=n,h&&i?m(e):(i=s=n,l)}function w(){var e=Ts(),r=g(e);if(i=arguments,s=this,c=e,r){if(u===n)return v(c);if(f)return $o(u),u=Ai(y,t),m(c)}return u===n&&(u=Ai(y,t)),l}return t=ba(t)||0,ra(o)&&(p=!!o.leading,a=(f="maxWait"in o)?wn(ba(o.maxWait)||0,t):a,h="trailing"in o?!!o.trailing:h),w.cancel=function(){u!==n&&$o(u),d=0,i=c=s=u=n},w.flush=function(){return u===n?l:b(Ts())},w}var Ds=Qr((function(e,t){return pr(e,1,t)})),Ms=Qr((function(e,t,n){return pr(e,ba(t)||0,n)}));function Ns(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new Pe(r);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var s=e.apply(this,r);return n.cache=i.set(o,s)||i,s};return n.cache=new(Ns.Cache||Jn),n}function Rs(e){if("function"!=typeof e)throw new Pe(r);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}Ns.Cache=Jn;var Fs=Oo((function(e,t){var n=(t=1==t.length&&Gs(t[0])?Lt(t[0],Xt(di())):Lt(br(t,1),Xt(di()))).length;return Qr((function(r){for(var o=-1,i=Sn(r.length,n);++o=t})),Vs=Lr(function(){return arguments}())?Lr:function(e){return oa(e)&&Me.call(e,"callee")&&!Je.call(e,"callee")},Gs=_e.isArray,Ks=bt?Xt(bt):function(e){return oa(e)&&Er(e)==I};function Js(e){return null!=e&&na(e.length)&&!ea(e)}function Ys(e){return oa(e)&&Js(e)}var Xs=Rt||bl,Qs=wt?Xt(wt):function(e){return oa(e)&&Er(e)==b};function Zs(e){if(!oa(e))return!1;var t=Er(e);return t==w||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!aa(e)}function ea(e){if(!ra(e))return!1;var t=Er(e);return t==S||t==_||"[object AsyncFunction]"==t||"[object Proxy]"==t}function ta(e){return"number"==typeof e&&e==ga(e)}function na(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=p}function ra(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function oa(e){return null!=e&&"object"==typeof e}var ia=St?Xt(St):function(e){return oa(e)&&gi(e)==O};function sa(e){return"number"==typeof e||oa(e)&&Er(e)==x}function aa(e){if(!oa(e)||Er(e)!=$)return!1;var t=Ge(e);if(null===t)return!0;var n=Me.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&De.call(n)==Be}var la=_t?Xt(_t):function(e){return oa(e)&&Er(e)==E};var ua=Ot?Xt(Ot):function(e){return oa(e)&&gi(e)==k};function ca(e){return"string"==typeof e||!Gs(e)&&oa(e)&&Er(e)==T}function da(e){return"symbol"==typeof e||oa(e)&&Er(e)==P}var pa=xt?Xt(xt):function(e){return oa(e)&&na(e.length)&&!!st[Er(e)]};var fa=Jo(Br),ha=Jo((function(e,t){return e<=t}));function ma(e){if(!e)return[];if(Js(e))return ca(e)?hn(e):Io(e);if(et&&e[et])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[et]());var t=gi(e);return(t==O?ln:t==k?dn:Ha)(e)}function va(e){return e?(e=ba(e))===d||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function ga(e){var t=va(e),n=t%1;return t==t?n?t-n:t:0}function ya(e){return e?ur(ga(e),0,h):0}function ba(e){if("number"==typeof e)return e;if(da(e))return f;if(ra(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=ra(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Yt(e);var n=me.test(e);return n||ge.test(e)?ct(e.slice(2),n?2:8):he.test(e)?f:+e}function wa(e){return Lo(e,Da(e))}function Sa(e){return null==e?"":po(e)}var _a=Do((function(e,t){if(Ci(t)||Js(t))Lo(t,Aa(t),e);else for(var n in t)Me.call(t,n)&&rr(e,n,t[n])})),Oa=Do((function(e,t){Lo(t,Da(t),e)})),xa=Do((function(e,t,n,r){Lo(t,Da(t),e,r)})),$a=Do((function(e,t,n,r){Lo(t,Aa(t),e,r)})),Ca=ii(lr);var Ea=Qr((function(e,t){e=Ee(e);var r=-1,o=t.length,i=o>2?t[2]:n;for(i&&_i(t[0],t[1],i)&&(o=1);++r1),t})),Lo(e,ai(e),n),r&&(n=cr(n,7,ri));for(var o=t.length;o--;)ho(n,t[o]);return n}));var Fa=ii((function(e,t){return null==e?{}:function(e,t){return Gr(e,t,(function(t,n){return Pa(e,n)}))}(e,t)}));function Ba(e,t){if(null==e)return{};var n=Lt(ai(e),(function(e){return[e]}));return t=di(t),Gr(e,n,(function(e,n){return t(e,n[0])}))}var qa=Zo(Aa),za=Zo(Da);function Ha(e){return null==e?[]:Qt(e,Aa(e))}var Wa=Fo((function(e,t,n){return t=t.toLowerCase(),e+(n?Ua(t):t)}));function Ua(e){return Za(Sa(e).toLowerCase())}function Va(e){return(e=Sa(e))&&e.replace(be,rn).replace(Ze,"")}var Ga=Fo((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),Ka=Fo((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),Ja=Ro("toLowerCase");var Ya=Fo((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}));var Xa=Fo((function(e,t,n){return e+(n?" ":"")+Za(t)}));var Qa=Fo((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),Za=Ro("toUpperCase");function el(e,t,r){return e=Sa(e),(t=r?n:t)===n?function(e){return rt.test(e)}(e)?function(e){return e.match(tt)||[]}(e):function(e){return e.match(ue)||[]}(e):e.match(t)||[]}var tl=Qr((function(e,t){try{return $t(e,n,t)}catch(e){return Zs(e)?e:new xe(e)}})),nl=ii((function(e,t){return Et(t,(function(t){t=Bi(t),ar(e,t,Is(e[t],e))})),e}));function rl(e){return function(){return e}}var ol=zo(),il=zo(!0);function sl(e){return e}function al(e){return Nr("function"==typeof e?e:cr(e,1))}var ll=Qr((function(e,t){return function(n){return Ir(n,e,t)}})),ul=Qr((function(e,t){return function(n){return Ir(e,n,t)}}));function cl(e,t,n){var r=Aa(t),o=xr(t,r);null!=n||ra(t)&&(o.length||!r.length)||(n=t,t=e,e=this,o=xr(t,Aa(t)));var i=!(ra(n)&&"chain"in n&&!n.chain),s=ea(e);return Et(o,(function(n){var r=t[n];e[n]=r,s&&(e.prototype[n]=function(){var t=this.__chain__;if(i||t){var n=e(this.__wrapped__),o=n.__actions__=Io(this.__actions__);return o.push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,At([this.value()],arguments))})})),e}function dl(){}var pl=Vo(Lt),fl=Vo(Tt),hl=Vo(Nt);function ml(e){return Oi(e)?Ut(Bi(e)):function(e){return function(t){return $r(t,e)}}(e)}var vl=Ko(),gl=Ko(!0);function yl(){return[]}function bl(){return!1}var wl=Uo((function(e,t){return e+t}),0),Sl=Xo("ceil"),_l=Uo((function(e,t){return e/t}),1),Ol=Xo("floor");var xl,$l=Uo((function(e,t){return e*t}),1),Cl=Xo("round"),El=Uo((function(e,t){return e-t}),0);return zn.after=function(e,t){if("function"!=typeof t)throw new Pe(r);return e=ga(e),function(){if(--e<1)return t.apply(this,arguments)}},zn.ary=Ps,zn.assign=_a,zn.assignIn=Oa,zn.assignInWith=xa,zn.assignWith=$a,zn.at=Ca,zn.before=js,zn.bind=Is,zn.bindAll=nl,zn.bindKey=Ls,zn.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Gs(e)?e:[e]},zn.chain=ms,zn.chunk=function(e,t,r){t=(r?_i(e,t,r):t===n)?1:wn(ga(t),0);var o=null==e?0:e.length;if(!o||t<1)return[];for(var i=0,s=0,a=_e(mt(o/t));ii?0:i+r),(o=o===n||o>i?i:ga(o))<0&&(o+=i),o=r>o?0:ya(o);r>>0)?(e=Sa(e))&&("string"==typeof t||null!=t&&!la(t))&&!(t=po(t))&&an(e)?xo(hn(e),0,r):e.split(t,r):[]},zn.spread=function(e,t){if("function"!=typeof e)throw new Pe(r);return t=null==t?0:wn(ga(t),0),Qr((function(n){var r=n[t],o=xo(n,0,t);return r&&At(o,r),$t(e,this,o)}))},zn.tail=function(e){var t=null==e?0:e.length;return t?io(e,1,t):[]},zn.take=function(e,t,r){return e&&e.length?io(e,0,(t=r||t===n?1:ga(t))<0?0:t):[]},zn.takeRight=function(e,t,r){var o=null==e?0:e.length;return o?io(e,(t=o-(t=r||t===n?1:ga(t)))<0?0:t,o):[]},zn.takeRightWhile=function(e,t){return e&&e.length?vo(e,di(t,3),!1,!0):[]},zn.takeWhile=function(e,t){return e&&e.length?vo(e,di(t,3)):[]},zn.tap=function(e,t){return t(e),e},zn.throttle=function(e,t,n){var o=!0,i=!0;if("function"!=typeof e)throw new Pe(r);return ra(n)&&(o="leading"in n?!!n.leading:o,i="trailing"in n?!!n.trailing:i),As(e,t,{leading:o,maxWait:t,trailing:i})},zn.thru=vs,zn.toArray=ma,zn.toPairs=qa,zn.toPairsIn=za,zn.toPath=function(e){return Gs(e)?Lt(e,Bi):da(e)?[e]:Io(Fi(Sa(e)))},zn.toPlainObject=wa,zn.transform=function(e,t,n){var r=Gs(e),o=r||Xs(e)||pa(e);if(t=di(t,4),null==n){var i=e&&e.constructor;n=o?r?new i:[]:ra(e)&&ea(i)?Hn(Ge(e)):{}}return(o?Et:_r)(e,(function(e,r,o){return t(n,e,r,o)})),n},zn.unary=function(e){return Ps(e,1)},zn.union=os,zn.unionBy=is,zn.unionWith=ss,zn.uniq=function(e){return e&&e.length?fo(e):[]},zn.uniqBy=function(e,t){return e&&e.length?fo(e,di(t,2)):[]},zn.uniqWith=function(e,t){return t="function"==typeof t?t:n,e&&e.length?fo(e,n,t):[]},zn.unset=function(e,t){return null==e||ho(e,t)},zn.unzip=as,zn.unzipWith=ls,zn.update=function(e,t,n){return null==e?e:mo(e,t,So(n))},zn.updateWith=function(e,t,r,o){return o="function"==typeof o?o:n,null==e?e:mo(e,t,So(r),o)},zn.values=Ha,zn.valuesIn=function(e){return null==e?[]:Qt(e,Da(e))},zn.without=us,zn.words=el,zn.wrap=function(e,t){return Bs(So(t),e)},zn.xor=cs,zn.xorBy=ds,zn.xorWith=ps,zn.zip=fs,zn.zipObject=function(e,t){return bo(e||[],t||[],rr)},zn.zipObjectDeep=function(e,t){return bo(e||[],t||[],to)},zn.zipWith=hs,zn.entries=qa,zn.entriesIn=za,zn.extend=Oa,zn.extendWith=xa,cl(zn,zn),zn.add=wl,zn.attempt=tl,zn.camelCase=Wa,zn.capitalize=Ua,zn.ceil=Sl,zn.clamp=function(e,t,r){return r===n&&(r=t,t=n),r!==n&&(r=(r=ba(r))==r?r:0),t!==n&&(t=(t=ba(t))==t?t:0),ur(ba(e),t,r)},zn.clone=function(e){return cr(e,4)},zn.cloneDeep=function(e){return cr(e,5)},zn.cloneDeepWith=function(e,t){return cr(e,5,t="function"==typeof t?t:n)},zn.cloneWith=function(e,t){return cr(e,4,t="function"==typeof t?t:n)},zn.conformsTo=function(e,t){return null==t||dr(e,t,Aa(t))},zn.deburr=Va,zn.defaultTo=function(e,t){return null==e||e!=e?t:e},zn.divide=_l,zn.endsWith=function(e,t,r){e=Sa(e),t=po(t);var o=e.length,i=r=r===n?o:ur(ga(r),0,o);return(r-=t.length)>=0&&e.slice(r,i)==t},zn.eq=Hs,zn.escape=function(e){return(e=Sa(e))&&J.test(e)?e.replace(G,on):e},zn.escapeRegExp=function(e){return(e=Sa(e))&&re.test(e)?e.replace(ne,"\\$&"):e},zn.every=function(e,t,r){var o=Gs(e)?Tt:vr;return r&&_i(e,t,r)&&(t=n),o(e,di(t,3))},zn.find=bs,zn.findIndex=Vi,zn.findKey=function(e,t){return Ft(e,di(t,3),_r)},zn.findLast=ws,zn.findLastIndex=Gi,zn.findLastKey=function(e,t){return Ft(e,di(t,3),Or)},zn.floor=Ol,zn.forEach=Ss,zn.forEachRight=_s,zn.forIn=function(e,t){return null==e?e:wr(e,di(t,3),Da)},zn.forInRight=function(e,t){return null==e?e:Sr(e,di(t,3),Da)},zn.forOwn=function(e,t){return e&&_r(e,di(t,3))},zn.forOwnRight=function(e,t){return e&&Or(e,di(t,3))},zn.get=Ta,zn.gt=Ws,zn.gte=Us,zn.has=function(e,t){return null!=e&&yi(e,t,Tr)},zn.hasIn=Pa,zn.head=Ji,zn.identity=sl,zn.includes=function(e,t,n,r){e=Js(e)?e:Ha(e),n=n&&!r?ga(n):0;var o=e.length;return n<0&&(n=wn(o+n,0)),ca(e)?n<=o&&e.indexOf(t,n)>-1:!!o&&qt(e,t,n)>-1},zn.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:ga(n);return o<0&&(o=wn(r+o,0)),qt(e,t,o)},zn.inRange=function(e,t,r){return t=va(t),r===n?(r=t,t=0):r=va(r),function(e,t,n){return e>=Sn(t,n)&&e=-9007199254740991&&e<=p},zn.isSet=ua,zn.isString=ca,zn.isSymbol=da,zn.isTypedArray=pa,zn.isUndefined=function(e){return e===n},zn.isWeakMap=function(e){return oa(e)&&gi(e)==j},zn.isWeakSet=function(e){return oa(e)&&"[object WeakSet]"==Er(e)},zn.join=function(e,t){return null==e?"":yn.call(e,t)},zn.kebabCase=Ga,zn.last=Zi,zn.lastIndexOf=function(e,t,r){var o=null==e?0:e.length;if(!o)return-1;var i=o;return r!==n&&(i=(i=ga(r))<0?wn(o+i,0):Sn(i,o-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,i):Bt(e,Ht,i,!0)},zn.lowerCase=Ka,zn.lowerFirst=Ja,zn.lt=fa,zn.lte=ha,zn.max=function(e){return e&&e.length?gr(e,sl,kr):n},zn.maxBy=function(e,t){return e&&e.length?gr(e,di(t,2),kr):n},zn.mean=function(e){return Wt(e,sl)},zn.meanBy=function(e,t){return Wt(e,di(t,2))},zn.min=function(e){return e&&e.length?gr(e,sl,Br):n},zn.minBy=function(e,t){return e&&e.length?gr(e,di(t,2),Br):n},zn.stubArray=yl,zn.stubFalse=bl,zn.stubObject=function(){return{}},zn.stubString=function(){return""},zn.stubTrue=function(){return!0},zn.multiply=$l,zn.nth=function(e,t){return e&&e.length?Ur(e,ga(t)):n},zn.noConflict=function(){return ft._===this&&(ft._=qe),this},zn.noop=dl,zn.now=Ts,zn.pad=function(e,t,n){e=Sa(e);var r=(t=ga(t))?fn(e):0;if(!t||r>=t)return e;var o=(t-r)/2;return Go(gt(o),n)+e+Go(mt(o),n)},zn.padEnd=function(e,t,n){e=Sa(e);var r=(t=ga(t))?fn(e):0;return t&&rt){var o=e;e=t,t=o}if(r||e%1||t%1){var i=xn();return Sn(e+i*(t-e+ut("1e-"+((i+"").length-1))),t)}return Yr(e,t)},zn.reduce=function(e,t,n){var r=Gs(e)?Dt:Gt,o=arguments.length<3;return r(e,di(t,4),n,o,hr)},zn.reduceRight=function(e,t,n){var r=Gs(e)?Mt:Gt,o=arguments.length<3;return r(e,di(t,4),n,o,mr)},zn.repeat=function(e,t,r){return t=(r?_i(e,t,r):t===n)?1:ga(t),Xr(Sa(e),t)},zn.replace=function(){var e=arguments,t=Sa(e[0]);return e.length<3?t:t.replace(e[1],e[2])},zn.result=function(e,t,r){var o=-1,i=(t=_o(t,e)).length;for(i||(i=1,e=n);++op)return[];var n=h,r=Sn(e,h);t=di(t),e-=h;for(var o=Jt(r,t);++n=s)return e;var l=r-fn(o);if(l<1)return o;var u=a?xo(a,0,l).join(""):e.slice(0,l);if(i===n)return u+o;if(a&&(l+=u.length-l),la(i)){if(e.slice(l).search(i)){var c,d=u;for(i.global||(i=ke(i.source,Sa(fe.exec(i))+"g")),i.lastIndex=0;c=i.exec(d);)var p=c.index;u=u.slice(0,p===n?l:p)}}else if(e.indexOf(po(i),l)!=l){var f=u.lastIndexOf(i);f>-1&&(u=u.slice(0,f))}return u+o},zn.unescape=function(e){return(e=Sa(e))&&K.test(e)?e.replace(V,vn):e},zn.uniqueId=function(e){var t=++Ne;return Sa(e)+t},zn.upperCase=Qa,zn.upperFirst=Za,zn.each=Ss,zn.eachRight=_s,zn.first=Ji,cl(zn,(xl={},_r(zn,(function(e,t){Me.call(zn.prototype,t)||(xl[t]=e)})),xl),{chain:!1}),zn.VERSION="4.17.21",Et(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){zn[e].placeholder=zn})),Et(["drop","take"],(function(e,t){Vn.prototype[e]=function(r){r=r===n?1:wn(ga(r),0);var o=this.__filtered__&&!t?new Vn(this):this.clone();return o.__filtered__?o.__takeCount__=Sn(r,o.__takeCount__):o.__views__.push({size:Sn(r,h),type:e+(o.__dir__<0?"Right":"")}),o},Vn.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),Et(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=1==n||3==n;Vn.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:di(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}})),Et(["head","last"],(function(e,t){var n="take"+(t?"Right":"");Vn.prototype[e]=function(){return this[n](1).value()[0]}})),Et(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");Vn.prototype[e]=function(){return this.__filtered__?new Vn(this):this[n](1)}})),Vn.prototype.compact=function(){return this.filter(sl)},Vn.prototype.find=function(e){return this.filter(e).head()},Vn.prototype.findLast=function(e){return this.reverse().find(e)},Vn.prototype.invokeMap=Qr((function(e,t){return"function"==typeof e?new Vn(this):this.map((function(n){return Ir(n,e,t)}))})),Vn.prototype.reject=function(e){return this.filter(Rs(di(e)))},Vn.prototype.slice=function(e,t){e=ga(e);var r=this;return r.__filtered__&&(e>0||t<0)?new Vn(r):(e<0?r=r.takeRight(-e):e&&(r=r.drop(e)),t!==n&&(r=(t=ga(t))<0?r.dropRight(-t):r.take(t-e)),r)},Vn.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Vn.prototype.toArray=function(){return this.take(h)},_r(Vn.prototype,(function(e,t){var r=/^(?:filter|find|map|reject)|While$/.test(t),o=/^(?:head|last)$/.test(t),i=zn[o?"take"+("last"==t?"Right":""):t],s=o||/^find/.test(t);i&&(zn.prototype[t]=function(){var t=this.__wrapped__,a=o?[1]:arguments,l=t instanceof Vn,u=a[0],c=l||Gs(t),d=function(e){var t=i.apply(zn,At([e],a));return o&&p?t[0]:t};c&&r&&"function"==typeof u&&1!=u.length&&(l=c=!1);var p=this.__chain__,f=!!this.__actions__.length,h=s&&!p,m=l&&!f;if(!s&&c){t=m?t:new Vn(this);var v=e.apply(t,a);return v.__actions__.push({func:vs,args:[d],thisArg:n}),new Un(v,p)}return h&&m?e.apply(this,a):(v=this.thru(d),h?o?v.value()[0]:v.value():v)})})),Et(["pop","push","shift","sort","splice","unshift"],(function(e){var t=je[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);zn.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var o=this.value();return t.apply(Gs(o)?o:[],e)}return this[n]((function(n){return t.apply(Gs(n)?n:[],e)}))}})),_r(Vn.prototype,(function(e,t){var n=zn[t];if(n){var r=n.name+"";Me.call(Ln,r)||(Ln[r]=[]),Ln[r].push({name:t,func:n})}})),Ln[Ho(n,2).name]=[{name:"wrapper",func:n}],Vn.prototype.clone=function(){var e=new Vn(this.__wrapped__);return e.__actions__=Io(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Io(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Io(this.__views__),e},Vn.prototype.reverse=function(){if(this.__filtered__){var e=new Vn(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Vn.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=Gs(e),r=t<0,o=n?e.length:0,i=function(e,t,n){var r=-1,o=n.length;for(;++r=this.__values__.length;return{done:e,value:e?n:this.__values__[this.__index__++]}},zn.prototype.plant=function(e){for(var t,r=this;r instanceof Wn;){var o=zi(r);o.__index__=0,o.__values__=n,t?i.__wrapped__=o:t=o;var i=o;r=r.__wrapped__}return i.__wrapped__=e,t},zn.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Vn){var t=e;return this.__actions__.length&&(t=new Vn(this)),(t=t.reverse()).__actions__.push({func:vs,args:[rs],thisArg:n}),new Un(t,this.__chain__)}return this.thru(rs)},zn.prototype.toJSON=zn.prototype.valueOf=zn.prototype.value=function(){return go(this.__wrapped__,this.__actions__)},zn.prototype.first=zn.prototype.head,et&&(zn.prototype[et]=function(){return this}),zn}();mt?((mt.exports=gn)._=gn,ht._=gn):ft._=gn}).call(jn)}));const Dn=class extends HTMLElement{constructor(){super(),this.__registerHost(),this.filterContent="",this.debouncedFilterTree=An.debounce(this.debouncedFilterTree,300)}componentWillLoad(){this.loadNavigationData().then((()=>{}))}async loadNavigationData(){this.isLoading=!0;try{const e=await fetch(`/registry/packages/navs/${this.packageName}.json`),t=await e.json();this.parsedNodes=t,this.currentlyRenderedNodes=this.parsedNodes}catch(e){return}this.isLoading=!1}filterTreeToMatchingContent(e,t,n,r){const o=this.filterTreeToMatchingRecursive(e,t,n,r);this.currentlyRenderedNodes=o}filterTreeToMatchingRecursive(e,t,n,r,o={},i=[""]){t.map((t=>{const s=i.join("")+t.name,a=i.join(""),l=n?n.name:"",u=!!o[s],c=!!n&&!!o[l],d=!!r&&!!o[a];if(!u){if(t.name.toLowerCase().includes(this.filterContent)){if(!c&&n){const t=Object.assign(Object.assign({},n),{children:[],isExpanded:!0,rootName:l});e.push(t),o[l]=!0}if(!d&&r){const t=Object.assign(Object.assign({},r),{children:[],isExpanded:!0,parentName:n.name,rootName:l});e.push(t),o[a]=!0}if(r){const n=Object.assign(Object.assign({},t),{children:[],parentName:r.name,isExpanded:!0,rootName:l});e.push(n),o[s]=!0}else if(n){const r=Object.assign(Object.assign({},t),{children:[],parentName:n.name,isExpanded:!0,rootName:l});e.push(r),o[s]=!0}else{const n=Object.assign(Object.assign({},t),{children:[],parentName:void 0,isExpanded:!0,rootName:l});e.push(n),o[s]=!0}}if(t.children){const r=n||t,s=n?t:null;this.filterTreeToMatchingRecursive(e,t.children,r,s,o,i.concat([t.name]))}}}));const s=e.filter((e=>void 0===e.parentName));return s.map((t=>{var n;t.children=e.filter((e=>e.parentName===t.name)),null===(n=t.children)||void 0===n||n.map((n=>{n.children=e.filter((e=>e.parentName===n.name&&e.rootName===t.name))}))})),[...s]}onChange(e){this.debouncedFilterTree(e)}onClearFilter(){this.filterContent="",this.currentlyRenderedNodes=this.parsedNodes}debouncedFilterTree(e){this.filterContent=e.target.value.trim().toLowerCase(),this.filterContent.length<2?this.currentlyRenderedNodes=this.parsedNodes:this.filterTreeToMatchingContent([],this.parsedNodes)}getFilterAndNavTree(){var e,t;return Xe("div",{class:"filter-and-nav-tree"},Xe("div",{class:"input-container"},Xe("input",{class:"navigation-filter-input",placeholder:"Filter",onInput:this.onChange.bind(this),value:this.filterContent}),this.filterContent&&Xe("div",{class:"clear-container"},Xe("button",{onClick:this.onClearFilter.bind(this),class:"clear-filter-button"},"X"))),1===(null===(e=this.filterContent)||void 0===e?void 0:e.length)&&Xe("div",{class:"filter-help-text"},"Provide at least two characters to filter."),(null===(t=this.currentlyRenderedNodes)||void 0===t?void 0:t.length)<1&&Xe("div",{class:"no-results"},"No results found. Try a different filter."),Xe("pulumi-api-doc-nav-tree",{class:"nav-tree",baseDirectory:this.baseDirectory,nodes:this.currentlyRenderedNodes}))}getLoadingState(){return Xe("div",{class:"loading"},Xe("i",{class:"loading-icon fas fa-spinner"}),Xe("span",{class:"loading-text"},"Loading..."))}render(){return Xe("section",{class:"api-doc-nav"},this.isLoading?this.getLoadingState():this.getFilterAndNavTree())}static get style(){return'.api-doc-nav{width:100%;max-width:375px}.api-doc-nav .filter-help-text{font-size:14px}.api-doc-nav .no-results{font-size:14px}.api-doc-nav .loading .loading-icon{margin-right:1rem}.api-doc-nav .navigation-header{font-family:var(--heading-font);font-weight:400;font-size:18px;color:#000;margin-top:0;margin-bottom:14px}.api-doc-nav .input-container{display:inline-block;position:relative;margin-left:12px}.api-doc-nav .input-container .clear-container{position:absolute;display:flex;align-items:center;margin-right:20px;top:0;right:0;height:100%}.api-doc-nav .input-container .clear-filter-button{display:flex;align-items:center;justify-content:center;height:18px;width:18px;font-size:xx-small;background:#dcdcdc;color:#808080;border-radius:50%;border:none;cursor:pointer;padding:0px}.api-doc-nav .input-container .navigation-filter-input{font-family:"Gilroy";font-size:16px;height:20px;width:90%;border-radius:4px;border:1px solid #000;padding:10px;margin-top:0;box-sizing:content-box}.api-doc-nav .input-container .navigation-filter-input:focus{outline-color:#4d5bd9}.api-doc-nav .nav-tree{width:100%;min-width:100%;max-width:100%}.api-doc-nav .nav-tree{display:block}.api-doc-nav .filter-and-nav-tree{margin-right:12px}'}},Mn=class extends HTMLElement{constructor(){super(),this.__registerHost(),this.depth=0}componentWillLoad(){this.isExpanded=!!this.node.isExpanded||this.isNodeInPathForCurrentlyVisiblePage(this.node.name)}onExpansionChange(e,t=!1){t&&(window.location.href=e),this.isExpanded=!this.isExpanded}handleLinkClick(e,t){e.stopPropagation(),window.location.href=t}componentShouldUpdate(e,t,n){if("isExpanded"===n)return!0!==t||!1!==e}getIcon(e){return Xe("div",{class:"symbol-container"},Xe("slot",{name:"before-content"},Xe("span",{class:`symbol ${e}`})))}isNodeInPathForCurrentlyVisiblePage(e){return window.location.pathname.includes(`/${e}/`)}shouldNodeBeSelected(e){return window.location.pathname.split("/").filter((e=>""!==e)).join("/")===e.split("/").filter((e=>""!==e)).join("/")}getChildNodes(e,t,n=1,r=this.href){const o=Xe("pulumi-tree-item",{slot:"item",selected:!1,expanded:!1,title:"dummy"});return!t&&(null==e?void 0:e.length)?o:null==e?void 0:e.map((e=>{const t="/"===e.link.charAt(e.link.length-1)?e.link:`${e.link}/`,o=`${r}${t}`,i=!!e.children&&0===e.children.length;return Xe("details",{open:this.isExpanded,"data-expandable":e.children&&e.children.length>0?"true":"false",class:"nav-tree-item nested",id:e.name,title:e.name,onClick:()=>this.onExpansionChange(o,!i)},Xe("summary",{class:"content-container "+(i?"":"is-link"),"data-selected":this.shouldNodeBeSelected(o)?"true":"false"},Xe("a",{class:`depth-${n}`,href:o,onClick:e=>this.handleLinkClick(e,o)},this.getIcon(e.type),Xe("span",{class:"link-container"},e.name))),this.getChildNodes(e.children,this.isExpanded,n+1,o))}))}render(){return Xe("details",{open:this.isExpanded,"data-expandable":this.node.children&&this.node.children.length>0?"true":"false",class:"nav-tree-item nested",id:this.node.name,title:this.node.name,onClick:()=>this.onExpansionChange(this.href,0===this.node.children.length)},Xe("summary",{class:"content-container","data-selected":this.shouldNodeBeSelected(this.href)?"true":"false"},Xe("a",{class:`depth-${this.depth}`,href:this.href,onClick:e=>this.handleLinkClick(e,this.href)},this.getIcon(this.node.type),Xe("span",{class:"link-container"},this.node.name))),this.getChildNodes(this.node.children,this.isExpanded))}},Nn=class extends HTMLElement{constructor(){super(),this.__registerHost()}getNodes(e=this.nodes){return null==e?void 0:e.map((e=>{const t="/"===e.link.charAt(e.link.length-1)?e.link:`${e.link}/`,n=`${this.baseDirectory}${t}`;return Xe("pulumi-api-doc-nav-node",{node:e,isExpanded:e.isExpanded,href:n})}))}render(){return Xe("div",null,this.getNodes())}static get style(){return'@charset "UTF-8";.symbol-container{height:100%;display:flex;align-items:center}.symbol{height:14px;width:14px;border-width:1px;border-style:solid;box-sizing:border-box;border-radius:50%;margin-right:6px}.symbol.module,.symbol.function,.symbol.resource{display:flex;align-items:center;justify-content:center;box-sizing:border-box}.symbol.module{border-color:#1d8673}.symbol.module:before{content:"M";color:#1d8673;font-size:9px;font-weight:700}.symbol.function{border-color:red}.symbol.function:before{content:"F";color:red;font-size:9px;font-weight:700}.symbol.resource{border-color:#3e49ae}.symbol.resource:before{content:"R";color:#3e49ae;font-size:9px;font-weight:700}.nav-tree-item a{height:100%;display:flex;align-items:center;text-decoration:none;color:#2b2b2c;max-width:24ch}.nav-tree-item a:hover{text-decoration:underline}.nav-tree-item summary{width:100%;padding-left:8px}@media (max-width: 1279px){.nav-tree-item summary.depth-0{max-width:12ch}.nav-tree-item summary.depth-1{max-width:10ch}.nav-tree-item summary.depth-2{max-width:8ch}}@media (min-width: 1280px){.nav-tree-item summary.depth-0{max-width:24ch}.nav-tree-item summary.depth-1{max-width:22ch}.nav-tree-item summary.depth-2{max-width:20ch}}.content-container{height:100%;width:100%;display:flex;align-items:center}.link-container{display:block;overflow:hidden;text-overflow:ellipsis}details{padding:0.25rem 0.5rem}details summary{list-style:none;padding:0.25rem 0rem;cursor:pointer}details summary:hover{background-color:#f9f9f9}details summary.is-link:hover{text-decoration:underline}details summary[data-selected=true]{background-color:#e0e0e0;font-weight:bold}details summary[data-selected=true] a:hover{text-decoration:none}details summary::-webkit-details-marker{display:none}details summary a{padding:0.25rem}details[data-expandable]>summary::before{font-family:"Font Awesome 5 Free";font-weight:900;content:"";display:inline-block;cursor:none;visibility:hidden}details[data-expandable=true]>summary::before{margin-right:0.5rem;cursor:pointer;visibility:visible}details[data-expandable=true][open]>summary::before{transform:rotate(90deg)}'}},Rn=class extends HTMLElement{constructor(){super(),this.__registerHost(),this.paused=!0,this.isLoading=!1,this.error=!1}componentDidLoad(){const e=this.getAudio();e&&(e.volume=1,e.muted=!1),e.addEventListener("pause",(()=>this.paused=!0)),e.addEventListener("play",(()=>this.paused=!1))}toggleMute(){if(this.isLoading)return;const e=this.getAudio();e.paused?(this.isLoading=!0,e.play().then((()=>{this.isLoading=!1})).catch((()=>{this.error=!0}))):e.pause()}getAudio(){return this.el.querySelector("audio")}renderError(){return Xe("div",{class:"audio-container"},Xe("div",{class:"error-callout"},"Music Cannot Be Played"))}renderAudio(){const e=this.paused?this.pausedText:this.playingText,t=this.isLoading?"fa-cog fa-spin":"fas fa-music";return Xe("div",{class:"audio-container",onClick:this.toggleMute.bind(this)},Xe("div",{class:"audio-button"},Xe("i",{class:`fas ${t}`}),e),Xe("audio",{preload:"none",loop:!0},Xe("source",{src:this.url,type:"audio/mpeg"})))}render(){return this.error?this.renderError():this.renderAudio()}get el(){return this}},Fn=(()=>{let e;return{getStore:()=>e,setStore:t=>{e=t},getState:()=>e&&e.getState(),mapDispatchToProps:(t,n)=>{Object.keys(n).forEach((r=>{const o=n[r];Object.defineProperty(t,r,{get:()=>(...t)=>e.dispatch(o(...t)),configurable:!0,enumerable:!0})}))},mapStateToProps:(t,n)=>{const r=(r,o)=>{const i=n(e.getState());Object.keys(i).forEach((e=>{const n=i[e];t[e]=n}))},o=e.subscribe((()=>r()));return r(),o}}})();var Bn;!function(e){e.SET_LANGUAGE="SET_LANGUAGE",e.SET_K8S_LANGUAGE="SET_K8S_LANGUAGE",e.SET_INPUT_KIND="SET_INPUT_KIND",e.SET_OS="SET_OS",e.SET_CLOUD="SET_CLOUD",e.SET_PERSONA="SET_PERSONA",e.SET_BACKEND="SET_BACKEND",e.DISMISS_BANNER="DISMISS_BANNER",e.GET_USER_INFO="GET_USER_INFO"}(Bn||(Bn={}));const qn=e=>(t,n)=>{t({type:Bn.DISMISS_BANNER,payload:{name:e,dismissedAt:Date.now()}})},zn=class extends HTMLElement{constructor(){super(),this.__registerHost(),this.dismissible=!0,this.visible=!1}onRendered(e){Fn.mapDispatchToProps(this,{dismissBanner:qn}),this.storeUnsubscribe=Fn.mapStateToProps(this,(e=>({visible:!!this.name&&!e.banners.dismissed.find((e=>e.name===this.name))})))}disconnectedCallback(){this.storeUnsubscribe&&this.storeUnsubscribe()}render(){return Xe("div",null,Xe("slot",null),Xe("div",{class:"dismiss",onClick:e=>this.dismiss(e),title:"Dismiss"},Xe("span",null,"×")))}dismiss(e){this.dismissBanner(this.name)}static get style(){return"pulumi-banner{display:block;position:relative}pulumi-banner .dismiss{cursor:pointer;display:none;position:absolute;top:50%;right:16px;transform:translateY(-50%)}pulumi-banner[dismissible] .dismiss{display:block}pulumi-banner[dismissed]{display:none}"}},Hn=class extends HTMLElement{constructor(){super(),this.__registerHost()}onModeChange(e){"local"===e&&this.storeUnsubscribe&&this.storeUnsubscribe()}disconnectedCallback(){this.storeUnsubscribe&&this.storeUnsubscribe()}onRendered(e){this.mode="global","global"===this.mode&&(this.storeUnsubscribe=Fn.mapStateToProps(this,(e=>{const{preferences:{language:t,k8sLanguage:n,os:r,cloud:o,persona:i,backend:s}}=e;switch(this.type){case"language":return{selection:t};case"k8s-language":return{selection:n};case"os":return{selection:r};case"cloud":return{selection:o};case"persona":return{selection:i};case"backend":return{selection:s}}})))}render(){const e=this.values?this.values.split(",").map((e=>e.trim())):[],t=this.selection&&(this.selection===this.value||e.includes(this.selection));return Xe("div",{class:t?"active":""},Xe("slot",null))}get el(){return this}static get watchers(){return{mode:["onModeChange"]}}static get style(){return"pulumi-choosable>*{display:none}pulumi-choosable>*.active{display:inherit}"}},Wn=e=>(t,n)=>t(e),Un=e=>Wn({key:e,type:Bn.SET_LANGUAGE}),Vn=e=>Wn({key:e,type:Bn.SET_K8S_LANGUAGE}),Gn=e=>Wn({key:e,type:Bn.SET_OS}),Kn=e=>Wn({key:e,type:Bn.SET_CLOUD}),Jn=e=>Wn({key:e,type:Bn.SET_PERSONA}),Yn=e=>Wn({key:e,type:Bn.SET_BACKEND}),Xn=class extends HTMLElement{constructor(){super(),this.__registerHost(),this.currentOptions=[],this.supportedBackEnds=[{key:"service",name:"Service",preview:!1},{key:"self-managed",name:"Self Managed",preview:!1}],this.supportedPersonas=[{key:"developer",name:"Developers",preview:!1},{key:"devops",name:"DevOps & Infra Teams",preview:!1},{key:"security",name:"Security Engineers",preview:!1},{key:"leader",name:"Engineering Leaders",preview:!1}],this.supportedLanguages=[{key:"typescript",name:"TypeScript",extension:"ts",preview:!1},{key:"javascript",name:"JavaScript",extension:"js",preview:!1},{key:"python",name:"Python",extension:"py",preview:!1},{key:"go",name:"Go",extension:"go",preview:!1},{key:"csharp",name:"C#",extension:"cs",preview:!1},{key:"fsharp",name:"F#",extension:"fs",preview:!1},{key:"visualbasic",name:"VB",extension:"vb",preview:!1},{key:"java",name:"Java",extension:"java",preview:!1},{key:"yaml",name:"YAML",extension:"yaml",preview:!1}],this.supportedk8sLanguages=[{key:"typescript",name:"TypeScript",preview:!1},{key:"typescript-kx",name:"TypeScript KX",preview:!1},{key:"yaml",name:"YAML",preview:!1}],this.supportedOSs=[{key:"macos",name:"macOS",preview:!1},{key:"windows",name:"Windows",preview:!1},{key:"linux",name:"Linux",preview:!1}],this.supportedClouds=[{key:"aws",name:"AWS",preview:!1},{key:"azure",name:"Azure",preview:!1},{key:"gcp",name:"Google Cloud",preview:!1},{key:"kubernetes",name:"Kubernetes",preview:!1},{key:"digitalocean",name:"DigitalOcean",preview:!1},{key:"docker",name:"Docker",preview:!1}]}componentWillLoad(){this.parseOptions()}disconnectedCallback(){this.storeUnsubscribe&&this.storeUnsubscribe()}componentDidRender(){this.applyChoice()}onRendered(e){this.mode="global",this.optionStyle="tabbed",this.parseOptions(),Fn.mapDispatchToProps(this,{setLanguage:Un,setK8sLanguage:Vn,setOS:Gn,setCloud:Kn,setPersona:Jn,setBackEnd:Yn}),this.storeUnsubscribe=Fn.mapStateToProps(this,(e=>{const{preferences:{language:t,k8sLanguage:n,os:r,cloud:o,persona:i,backend:s}}=e,a=e=>{if(!this.currentOptions.find((t=>t.key===e))){const t=this.currentOptions[0];e=t.key,this.choosables.length>0?(this.mode="local",this.choosables.forEach((e=>{e.setAttribute("mode","local")})),setTimeout((()=>this.storeUnsubscribe()))):setTimeout((()=>this.setChoice(this.type,t)))}return{selection:e}};switch(this.type){case"language":return a(t);case"k8s-language":return a(n);case"os":return a(r);case"cloud":return a(o);case"persona":return a(i);case"backend":return a(s);default:return{}}}))}render(){return Xe(Ze,{selection:this.selection},Xe("ul",null,this.currentOptions.map((e=>Xe("li",{class:this.selection===e.key?"active":""},Xe("a",{onClick:t=>this.makeChoice(t,this.type,e)},e.name," ",e.preview?Xe("span",null,"PREVIEW"):""))))),Xe("slot",null))}get choosables(){return this.el.querySelectorAll("pulumi-choosable")}parseOptions(){if(this.currentOptions=[],!this.type)throw new Error("Chooser attribute `type` is required.");if(!this.options)throw new Error("Chooser attribute `options` is required.");try{const e=this.options.split(",").map((e=>e.trim()));this.mapOptions(this.type,e)}catch(e){throw console.error(`Error parsing chooser options "${this.options}"`),e}}mapOptions(e,t){let n=[];switch(e){case"language":n=this.supportedLanguages;break;case"k8s-language":n=this.supportedk8sLanguages;break;case"os":n=this.supportedOSs;break;case"cloud":n=this.supportedClouds;break;case"persona":n=this.supportedPersonas;break;case"backend":n=this.supportedBackEnds}this.currentOptions=n.filter((e=>t.includes(e.key)))}makeChoice(e,t,n){this.setChoice(t,n);var r=e.target,o=r.getBoundingClientRect().top;window.requestAnimationFrame((()=>{const e=this.getDistanceFromDocumentTop(r);window.scroll(0,e-o)}))}getDistanceFromDocumentTop(e){let t=0;for(;e;)t+=e.offsetTop,e=e.offsetParent;return t}setChoice(e,t){const n=t.key;if(this.selection=n,"local"!==this.mode)switch(e){case"language":this.setLanguage(n);break;case"k8s-language":this.setK8sLanguage(n);break;case"os":this.setOS(n);break;case"cloud":this.setCloud(n);break;case"persona":this.setPersona(n);break;case"backend":this.setBackEnd(n)}}applyChoice(){this.selection&&this.choosables.forEach((e=>{e.setAttribute("selection",this.selection)}))}get el(){return this}static get style(){return"pulumi-chooser[option-style=none]>ul{display:none}pulumi-chooser>*{display:inherit}pulumi-chooser pulumi-choosable{display:inherit}"}},Qn=class extends HTMLElement{constructor(){super(),this.__registerHost(),this.defaultFormId=""}componentWillLoad(){this.parsedItems=JSON.parse(this.items).map((e=>({key:e.key,label:e.label?e.label:e.key.charAt(0).toUpperCase()+e.key.slice(1),hubspotFormId:e.hubspot_form_id})));const e=En("form");if(e){const t=this.parsedItems.find((t=>t.key.toLowerCase()===e.toLowerCase()));if(t)return void(this.defaultFormId=t.hubspotFormId)}}render(){return Xe("pulumi-multi-select-form",{items:this.parsedItems,selectClass:this.selectClass,labelClass:this.labelClass,labelText:"Why are you contacting us today?",defaultFormId:this.defaultFormId})}static get style(){return":host{display:block}"}};function Zn(e,t,n,r){return new(n||(n=Promise))((function(o,i){function s(e){try{l(r.next(e))}catch(e){i(e)}}function a(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}l((r=r.apply(e,t||[])).next())}))}function er(e,t){var n,r,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,r=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!((o=(o=s.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]-1||pr(document.body,e)||function(e){var t=document.createElement("div");t.setAttribute("style","-webkit-user-select: text !important"),t.textContent="temporary element",document.body.appendChild(t);var n=pr(t,e);return document.body.removeChild(t),n}(e)||function(e){var t=document.createElement("div");t.setAttribute("style","-webkit-user-select: text !important");var n=t;t.attachShadow&&(n=t.attachShadow({mode:"open"}));var r=document.createElement("span");r.innerText=e,n.appendChild(r),document.body.appendChild(t),fr(r);var o=document.execCommand("copy");return hr(),document.body.removeChild(t),o}(e["text/plain"])?[2,!0]:[2,!1]}))}))}function vr(e){return Zn(this,void 0,void 0,(function(){return er(this,(function(t){if(ar)return[2,ar(e)];if(!mr(function(e){var t={};return t["text/plain"]=e,t}(e)))throw new Error("writeText() failed");return[2]}))}))}const gr=class extends HTMLElement{constructor(){super(),this.__registerHost(),this.sourceFiles=[],this.theme="",this.converting=!1,this.convertible=!1,this.alertDismissed=!1,this.supportedLanguages=[{key:"typescript",name:"TypeScript",filename:"index.ts"},{key:"python",name:"Python",filename:"__main__.py"},{key:"go",name:"Go",filename:"main.go"},{key:"csharp",name:"C#",filename:"MyStack.cs"}]}componentDidLoad(){try{this.validateProps(),this.validateGlobals(),this.prepareEditors(),this.prepareSourceFiles()}catch(e){console.error(e.message)}}get inputEditorEl(){return this.el.querySelector("#editor-input")}get outputEditorEl(){return this.el.querySelector("#editor-output")}get inputEditorMode(){switch(this.from){case"tf":return"ruby";case"kube":case"cf":return"yaml";case"arm":return"javascript"}}get inputEditorValue(){return this.inputEditor.getValue()}get inputEditorDefaultFilename(){switch(this.from){case"tf":return"main.tf";case"kube":return"kube.yaml";case"arm":return"azuredeploy.json";case"cf":return"aws.yaml"}}get sourceLanguageName(){switch(this.from){case"tf":return"Terraform";case"kube":return"Kubernetes YAML";case"arm":return"ARM";case"cf":return"CloudFormation"}}get endpointPath(){switch(this.from){case"tf":return"convert";case"arm":return"convertARM";case"kube":return"convertKube";case"cf":return"convertCFN"}}get conversionTool(){switch(this.from){case"tf":return{name:"the Terraform converter",githubURL:"https://github.com/pulumi/pulumi"};case"kube":return{name:"the Kubernetes converter",githubURL:"https://github.com/pulumi/pulumi"};case"arm":return{name:"the ARM converter",githubURL:"https://github.com/pulumi/pulumi"};case"cf":return{name:"cf2pulumi",githubURL:"https://github.com/pulumi/pulumi-aws-native"};default:return{name:`${this.from}2pulumi`,githubURL:"https://github.com/pulumi/pulumi"}}}validateGlobals(){if([typeof CodeMirror,typeof JSZip,typeof saveAs].filter((e=>"undefined"===e)).length>0)throw new Error("The pulumi-convert component requires CodeMirror, JZSip, and FileSaver. Please ensure each of these scripts has been loaded into global before using it.")}validateProps(){const e=[];this.from&&["tf","kube","arm","cf"].includes(this.from)||e.push("A valid `from` attribute is required.");try{this.endpointURL=new URL(this.endpoint)}catch(t){e.push("A valid `endpoint` attribute is required.")}if(this.examples||console.warn("A list of examples was provided."),this.theme||console.warn("A CodeMirror theme was not specified. The Using `material-ocean`."),e.length)throw new Error(e.join("\n"))}prepareEditors(){this.selectedOutputLanguage=this.supportedLanguages[0];const e={lineNumbers:!0,theme:this.theme||""};this.inputEditor=CodeMirror.fromTextArea(this.inputEditorEl,Object.assign(Object.assign({},e),{indentUnit:["kube","cf"].includes(this.from)?2:4,mode:this.inputEditorMode})),this.outputEditor=CodeMirror.fromTextArea(this.outputEditorEl,Object.assign(Object.assign({},e),{readOnly:!0})),this.inputEditor.on("change",(()=>{this.convertible=""!==this.inputEditorValue.trim(),this.selectedSourceFile===this.customSourceFile&&(this.customSourceFile.code=this.inputEditorValue)})),this.inputEditor.on("keydown",((e,t)=>{!t.metaKey||"Enter"!==t.key&&"s"!==t.key||(t.preventDefault(),this.convert())}))}prepareSourceFiles(){if(this.sourceFiles=[],this.examples&&this.examples.length>0)try{this.sourceFiles.push(...JSON.parse(this.examples))}catch(e){console.error("Failed to load examples:",e)}this.customSourceFile={name:"Custom",description:`Convert your own ${this.sourceLanguageName} code.`,filename:this.inputEditorDefaultFilename,code:""},this.sourceFiles.push(this.customSourceFile),this.selectSourceFile(this.sourceFiles[0]),this.convert()}selectSourceFile(e){this.selectedSourceFile=e,this.inputEditor.setValue(e.code),this.inputEditor.clearHistory(),this.convert()}selectOutputLanguage(e){this.selectedOutputLanguage=e,this.convert()}setOutputResult(e){this.outputResult=e,this.outputEditor.setValue(e?e.code:"")}copyToClipboard(){vr(this.outputEditor.getValue())}downloadZip(){const e=new JSZip;e.file(this.outputResult.filename,this.outputResult.code),e.generateAsync({type:"blob"}).then((e=>{saveAs(e,`${this.from}2pulumi.zip`)}))}dismissAlert(){this.alertDismissed=!0}async convert(){var e;this.setOutputResult(null);const t=this.inputEditorValue,n=this.selectedOutputLanguage;if(t){this.converting=!0,this.alertDismissed=!1;try{const r=await fetch([this.endpointURL,this.endpointPath].join("/"),{method:"POST",mode:"cors",body:JSON.stringify({code:t,language:n.key})}),o=await r.json();if(o.error)this.setOutputResult({filename:"",code:"",diagnostics:o.diagnostics||"",status:{success:!1,message:o.error}});else if(o.files){let[t,r]=Object.entries(o.files)[0];t.match(/\w+\.\w+/)||(t=this.supportedLanguages.find((e=>e.key===n.key)).filename);const i=(null===(e=o.diagnostics)||void 0===e?void 0:e.replace(/^no diagnostics$/,""))||"";t&&r&&this.setOutputResult({filename:t,code:r,diagnostics:i,status:{success:!0,message:t}}),i&&(this.outputResult.diagnostics=i)}}catch(e){console.error(`Submission failed: ${e}`)}this.converting=!1}}get statusBarClasses(){const e=["status-bar"];return this.converting&&e.push("converting"),this.outputResult&&(this.outputResult.diagnostics?e.push("warn"):e.push(this.outputResult.status.success?"success":"error")),e.join(" ")}combineClasses(...e){return e.filter((e=>e&&""!==e)).join(" ")}trackEventLabel(e){return this.from&&this.selectedOutputLanguage?["convert",this.from,e,this.selectedOutputLanguage.key].join("-"):""}renderToolDescription(){let e=this.conversionTool.githubURL?Xe("a",{href:this.conversionTool.githubURL},this.conversionTool.name):this.conversionTool.name;switch(this.from){case"tf":e=Xe("code",null,"pulumi convert --from terraform");break;case"arm":e=Xe("code",null,"pulumi convert --from arm");break;case"kube":e=Xe("code",null,"pulumi convert --from kubernetes")}return Xe("p",null,"Your code will be converted with"," ",e,", an open-source command-line tool we built to make it as easy as possible for you to migrate your existing ",this.sourceLanguageName," projects to Pulumi. The resulting file can be copied or downloaded for use with ",Xe("a",{href:"https://pulumi.com/start"},"a new Pulumi project"),".")}renderWindowBar(){return Xe("div",{class:"window-bar"},Xe("div",{class:"window-bar-buttons"},Xe("div",{class:"window-bar-button"}),Xe("div",{class:"window-bar-button"}),Xe("div",{class:"window-bar-button"})))}renderTab(e,t,n,r,o){return Xe("li",{onClick:o.bind(this,e),"data-track":this.trackEventLabel("tab"),class:this.combineClasses("tab",e===t?"active":""),title:r},Xe("span",{class:"label"},n),Xe("span",{class:"indicator"}))}renderConvertButton(e){var t;const n=`Convert this ${this.sourceLanguageName} code to ${null===(t=this.selectedOutputLanguage)||void 0===t?void 0:t.name}`,r=Xe("button",{onClick:this.convert.bind(this),"data-track":this.trackEventLabel("button"),class:this.combineClasses("btn-convert",this.converting?"converting":""),title:n,disabled:!this.convertible||this.converting},Xe("span",{class:"label"},"Convert"),Xe("span",{class:"icon"}));return e?Xe("pulumi-tooltip",null,r,Xe("span",{slot:"content"},n)):r}renderDismissAlertButton(){return Xe("button",{class:"toggle",title:"Dismiss this message",onClick:this.dismissAlert.bind(this)},Xe("span",{class:"icon"}))}renderStatusBar(e){var t,n,r,o;switch(e){case"input":return Xe("div",{class:"status-bar"},Xe("span",{class:"message"},null===(t=this.selectedSourceFile)||void 0===t?void 0:t.filename,(null===(n=this.selectedSourceFile)||void 0===n?void 0:n.description)?` • ${this.selectedSourceFile.description}`:""));case"output":return Xe("div",{class:this.statusBarClasses},Xe("span",{class:"icon"}),Xe("span",{class:"message"},null===(o=null===(r=this.outputResult)||void 0===r?void 0:r.status)||void 0===o?void 0:o.message),Xe("div",{class:this.combineClasses("alert","alert-error",this.alertDismissed?"dismissed":void 0)},this.renderDismissAlertButton(),Xe("p",null,Xe("strong",null,"Sorry, we were unable to convert your code.")),Xe("p",null,"There could be a problem with the code you submitted, or it might use a feature ",this.conversionTool.name," doesn't support. Join us in"," ",Xe("a",{href:"https://slack.pulumi.com/"},"Community Slack")," for help.")),Xe("div",{class:this.combineClasses("alert","alert-warn",this.alertDismissed?"dismissed":void 0)},this.renderDismissAlertButton(),Xe("p",null,Xe("strong",null,"Sorry, we were unable to convert your code completely.")),Xe("p",null,"The code was valid, but ",this.conversionTool.name," was unable to convert it completely. There could be a problem with the code you submitted, or it might use a feature ",this.conversionTool.name," doesn't support. Join us in ",Xe("a",{href:"https://slack.pulumi.com/"},"Community Slack")," for help.")));default:return Xe("div",{class:"status-bar"},Xe("span",{class:"message"}," "))}}renderDiagnostics(){var e,t;if(null===(e=this.outputResult)||void 0===e?void 0:e.diagnostics)return console.log("Conversion completed with errors. Diagnostics:"),console.log(null===(t=this.outputResult)||void 0===t?void 0:t.diagnostics),Xe("div",{class:"diagnostics"},Xe("p",null,Xe("strong",null,"Diagnostics:")),Xe("p",{class:"details"},this.outputResult.diagnostics))}render(){return Xe("div",null,Xe("div",{id:"editors"},Xe("div",{class:"editor editor-input"},Xe("div",{class:"editor-heading"},Xe("h3",null,Xe("span",{class:"editor-step"},"1"),"Start with some ",this.sourceLanguageName,"."),Xe("p",null,"We've included a few examples for reference — feel free to edit them as you like, or replace them with your own code. (And don't worry, we send your code over SSL and don't store anything on our servers.) When you're ready to transform your ",this.sourceLanguageName," code to Pulumi, select ",Xe("strong",null,"Convert"),".")),Xe("div",{class:"editor-container"},this.renderWindowBar(),Xe("ul",{class:"tabs"},this.sourceFiles.map((e=>this.renderTab(e,this.selectedSourceFile,e.name,e.description,this.selectSourceFile))),Xe("li",{class:"actions"},this.renderConvertButton(!0))),Xe("textarea",{id:"editor-input"}),this.renderStatusBar("input"))),Xe("div",{class:this.combineClasses("editor","editor-output",this.converting?"converting":"")},Xe("div",{class:"editor-heading"},Xe("h3",null,Xe("span",{class:"editor-step"},"2"),"Turn it into your language of choice."),this.renderToolDescription(),Xe("div",null,this.renderConvertButton(!1))),Xe("div",{class:"editor-container"},this.renderWindowBar(),Xe("ul",{class:"tabs"},this.supportedLanguages.map((e=>this.renderTab(e,this.selectedOutputLanguage,e.name,e.name,this.selectOutputLanguage))),Xe("li",{class:"actions"},Xe("pulumi-tooltip",null,Xe("button",{onClick:this.copyToClipboard.bind(this),"data-track":this.trackEventLabel("copy"),class:"btn-copy"},Xe("i",null)),Xe("span",{slot:"content"},"Copy to clipboard")),Xe("pulumi-tooltip",null,Xe("button",{onClick:this.downloadZip.bind(this),"data-track":this.trackEventLabel("download"),class:"btn-download"},Xe("i",null)),Xe("span",{slot:"content"},"Download as .zip")))),Xe("div",{class:"editor-spinner"}),Xe("textarea",{id:"editor-output"}),this.renderStatusBar("output")),this.renderDiagnostics())))}get el(){return this}static get style(){return"pulumi-convert{display:block}pulumi-convert textarea{opacity:0}"}},yr=class extends HTMLElement{constructor(){super(),this.__registerHost(),this.textClass="",this.containerClass="",this.valueLabelClass="",this.countdownOverText=""}componentWillLoad(){const e=new Date(this.dateString).getTime();this.generateCountdownData(e),setInterval((()=>this.generateCountdownData(e)),1e3)}generateCountdownData(e){const t=e-Date.now();this.countdownData={remainingTimeInMS:t,days:Math.floor(t/864e5),hours:Math.floor(t%864e5/36e5),minutes:Math.floor(t%36e5/6e4),seconds:Math.floor(t%6e4/1e3)}}renderValueLabel(e){return Xe("span",{class:this.valueLabelClass},e)}renderCountdownPart(e,t){return Xe("p",{class:this.textClass},e,this.renderValueLabel(t))}renderCountdown(){const{days:e,hours:t,minutes:n,seconds:r,remainingTimeInMS:o}=this.countdownData;return Xe("div",{class:this.containerClass},o>0?[this.renderCountdownPart(e,"Days"),this.renderCountdownPart(t,"Hours"),this.renderCountdownPart(n,"Minutes"),this.renderCountdownPart(r,"Seconds")]:Xe("p",{class:this.textClass},this.countdownOverText))}render(){return Xe(Ze,null,this.countdownData&&this.renderCountdown())}static get style(){return":host{display:block}"}},br=class extends HTMLElement{constructor(){super(),this.__registerHost(),this.containerClass="",this.valueLabelClass=""}componentWillLoad(){const e=new Date(this.dateString).getTime();this.generateCountdownData(e),setInterval((()=>this.generateCountdownData(e)),1e3)}generateCountdownData(e){const t=e-Date.now(),n=Math.floor(t/6048e5),r=Math.floor(t%6048e5/864e5),o=Math.floor(t%864e5/36e5),i=Math.floor(t%36e5/6e4),s=Math.floor(t%6e4/1e3),a=n/52*100,l=r/7*100,u=o/24*100,c=i/60*100,d=s/60*100;this.countdownData={remainingTimeInMS:t,weeks:n,days:r,hours:o,minutes:i,seconds:s,weeksPercent:a,daysPercent:l,hoursPercent:u,minutesPercent:c,secondsPercent:d}}renderValueLabel(e){return Xe("span",{class:this.valueLabelClass},e)}renderNumberCircle(e,t){return Xe("div",{class:"timer-wrapper"},Xe("div",{class:"circle",style:{"--p":`${t}`}},e))}renderCountdownPart(e,t,n){return Xe("div",{class:"mx-4 text-center"},this.renderNumberCircle(e,n),this.renderValueLabel(t))}renderCountdown(){const{weeks:e,days:t,hours:n,minutes:r,seconds:o,weeksPercent:i,daysPercent:s,hoursPercent:a,minutesPercent:l,secondsPercent:u}=this.countdownData;return Xe("div",{class:this.containerClass},[this.renderCountdownPart(e,"Weeks",i),this.renderCountdownPart(t,"Days",s),this.renderCountdownPart(n,"Hours",a),this.renderCountdownPart(r,"Minutes",l),this.renderCountdownPart(o,"Seconds",u)])}render(){return Xe(Ze,null,this.countdownData&&this.renderCountdown())}static get style(){return".timer-wrapper{height:75px;width:75px;display:flex;align-items:center;justify-content:center}.circle{border-radius:50%;border:5px solid transparent;position:relative;width:100%;height:100%;background:linear-gradient(#fff, #fff) content-box no-repeat, conic-gradient(#805ac3 calc(var(--p)*1%), 0, #ededed 100%) border-box;display:flex;justify-content:center;align-items:center}"}},wr=class extends HTMLElement{constructor(){super(),this.__registerHost(),Jt(this)}componentWillLoad(){const e=new Date(this.date),t=this.timeonly?{timeZoneName:"short",hour:"numeric",minute:"2-digit"}:{timeZoneName:"long",weekday:"short",year:"numeric",month:"long",day:"numeric",hour:"numeric",minute:"2-digit"};this.date=e.toLocaleString(void 0,t)}render(){return Xe("time",{class:this.class||""},Xe("span",null,this.date))}static get style(){return":host{display:block}"}},Sr=class extends HTMLElement{constructor(){super(),this.__registerHost()}addLogo(e){return Object.assign(Object.assign({},e),{logo:function(){switch(e.source){case"twitter":return Xe("img",{class:"w-6",src:"/logos/tech/twitter.svg"});case"reddit":return Xe("img",{class:"w-6",src:"/logos/tech/reddit.svg"});case"email":return Xe("i",{class:"fas fa-envelope text-gray-500 text-xl"});case"blog":return Xe("i",{class:"fas fa-blog text-gray-500 text-xl"});case"slack":return Xe("img",{class:"w-6",src:"/logos/tech/slack.svg"});case"linkedin":return Xe("img",{class:"w-6",src:"/logos/tech/linkedin.svg"});default:return Xe("a",null,e.source)}}()})}enableLink(e){return!["slack","email"].includes(e)}render(){let e=JSON.parse(this.quotes).sort(((e,t)=>e.featured&&t.featured?0:e.featured&&!t.featured?-1:!e.featured&&t.featured?1:void 0)).map(this.addLogo).reduce(((e,t,n)=>(n%2?e[1].push(t):e[0].push(t),e)),[[],[]]);return Xe("div",{class:"lg:flex flex-row block"},e.map((e=>Xe("div",{class:"lg:w-6/12 w-12/12 mx-8"},e.map((e=>Xe("div",{class:"quote-card my-8 p-2 rounded-lg max-w-80"},Xe("a",{class:"flex flex-col",href:this.enableLink(e.source)?e.link:void 0,target:"_blank",rel:"noopener noreferrer"},Xe("div",{class:"w-full flex-grow text-justify p-3 text-gray-700"},'"',e.message,'"'),Xe("div",{class:"flex flex-row"},Xe("div",{class:"p-3 text-gray-500"},e.author),Xe("div",{class:"flex-grow"}),Xe("div",{class:"p-3"},e.logo))))))))))}static get style(){return"pulumi-developer-quotes .quote-card{box-shadow:0 6px 36px rgba(0, 0, 0, 0.1)}pulumi-developer-quotes .quote-card:hover{box-shadow:10px 15px 60px rgba(0, 0, 0, 0.2)}"}},_r=class extends HTMLElement{constructor(){super(),this.__registerHost()}onClick(e){e.preventDefault();const t=e.target;console.log(e.target),"button"===t.nodeName.toLowerCase()&&t.closest("li").classList.toggle("collapsed")}componentDidLoad(){const e=this.el.querySelector("ol");console.log({slot:e})}render(){return Xe(Ze,null,Xe("slot",null))}get el(){return this}static get style(){return'pulumi-docs-nav ol{list-style-type:none !important}pulumi-docs-nav ol li button:after{content:"-"}pulumi-docs-nav ol li.collapsed button:after{content:"+"}pulumi-docs-nav ol li.collapsed ol{display:none}'}},Or=class extends HTMLElement{constructor(){super(),this.__registerHost(),this.headingSelector="main h2[id]:not(.no-toc), main h3[id]:not(.no-toc)"}componentWillLoad(){this.headings=Array.from(document.querySelectorAll(this.headingSelector)).filter((e=>""!==e.getAttribute("id"))).filter((e=>!e.classList.contains("no-anchor"))).filter((e=>!e.classList.contains("no-toc")));const e=new IntersectionObserver((e=>{e.forEach((e=>{const t=e.target.getAttribute("id"),n=this.el.querySelector(`li a[href="#${t}"]`);n&&(e.intersectionRatio>0?n.parentElement.classList.add("active"):n.parentElement.classList.remove("active"))}))}));document.querySelectorAll(this.headingSelector).forEach((t=>{e.observe(t)}))}fixLabel(e){return e.replace(/:$/,"")}render(){return Xe(Ze,null,Xe("div",{class:"max-w-xs"},Xe("h2",null,Xe("span",{class:"text-sm text-gray-800"},"On this page")),Xe("ol",{class:"list-none p-0 text-sm"},this.headings.map((e=>Xe("li",{class:`toc-level-${e.tagName.toLowerCase()}`},Xe("a",{class:"text-blue-800",href:`#${e.getAttribute("id")}`},this.fixLabel(e.textContent)))))),Xe("hr",{class:"my-8"})))}get el(){return this}static get style(){return"docs-toc ol li.toc-level-h3{margin-left:1rem}docs-toc ol li.toc-level-h3{margin-left:1rem}docs-toc ol :nth-child(1 of li.active){font-weight:600}"}},xr=class extends HTMLElement{constructor(){super(),this.__registerHost()}render(){return Xe("div",null,Xe("slot",null))}static get style(){return""}},$r=class extends HTMLElement{constructor(){super(),this.__registerHost()}componentWillRender(){const e=Array.from(this.el.querySelectorAll("pulumi-examples h3"));e.forEach((e=>{const t=document.createElement("span");e.prepend(t),e.addEventListener("click",(t=>{t.target.classList.contains("anchorjs-link")||this.toggle(e)}))})),e&&e.length>0&&this.toggle(e[0])}toggle(e){e.classList.toggle("expanded");let t=e.nextElementSibling;for(;t&&"DIV"===t.nodeName;)t.classList.toggle("expanded"),t=t.nextElementSibling}render(){return Xe("div",null,Xe("slot",null))}get el(){return this}static get style(){return""}},Cr=class extends HTMLElement{constructor(){super(),this.__registerHost(),Jt(this),this.filterSelect=$t(this,"filterSelect",7),this.filters=[]}reset(){return this.options.forEach((e=>e.selected=!1)),this.groups.forEach((e=>e.close())),this.filterSelect.emit([]),Promise.resolve(null)}select(e){return this.options.forEach((t=>{t.value===e.value&&t.select()})),Promise.resolve()}deselect(e){return this.options.forEach((t=>{t.value===e.value&&t.deselect()})),Promise.resolve()}onOptionChange(e){e.stopPropagation(),this.filters=this.options.filter((e=>e.selected)).map((e=>({group:e.closest("pulumi-filter-select-option-group").name,value:e.value,label:e.label}))),this.filterSelect.emit(this.filters)}get groups(){return Array.from(this.el.querySelectorAll("pulumi-filter-select-option-group"))}get options(){return Array.from(this.el.querySelectorAll("pulumi-filter-select-option"))}render(){return Xe("div",null,Xe("slot",null))}get el(){return this}static get style(){return"div {\n display: flex;\n }"}},Er=class extends HTMLElement{constructor(){super(),this.__registerHost(),Jt(this),this.optionChange=$t(this,"optionChange",7)}select(){return this.selected=!0,this.emit(),Promise.resolve()}deselect(){return this.selected=!1,this.emit(),Promise.resolve()}onChange(e){this.selected=e.target.checked,this.emit()}emit(){this.optionChange.emit({option:{value:this.value,selected:this.selected,label:this.label}})}render(){return Xe("div",null,Xe("label",null,Xe("input",{type:"checkbox",value:this.value,onChange:this.onChange.bind(this),checked:this.selected,class:""+(this.selected?"selected":"")}),Xe("slot",null)))}get el(){return this}static get style(){return"label {\n white-space: nowrap;\n }\n\n input {\n margin-right: 0.5em;\n }"}},kr=class extends HTMLElement{constructor(){super(),this.__registerHost(),Jt(this)}onToggle(){this.expanded=!this.expanded}onDocumentClick(e){!this.el.contains(e.target)&&this.expanded&&this.close()}close(){return this.expanded=!1,Promise.resolve(null)}render(){return Xe("div",null,Xe("div",{class:"button",role:"button",onClick:this.onToggle.bind(this)},Xe("span",{class:"toggle",part:"toggle"},Xe("slot",{name:"toggle"}))),Xe("div",{class:"menu"},Xe("div",null,Xe("slot",null))))}get el(){return this}static get style(){return'.menu {\n position: relative;\n transition: all 100ms;\n opacity: 0;\n top: -2px;\n pointer-events: none;\n z-index: 10;\n }\n\n .menu > div {\n position: absolute;\n }\n\n .button {\n cursor: pointer;\n }\n\n .button .toggle {\n margin-right: 0.5em;\n }\n\n .toggle {\n display: flex;\n }\n\n .toggle slot {\n position: relative;\n display: block;\n width: 100%;\n }\n\n :host([expanded]) .menu {\n opacity: 1;\n top: 0;\n pointer-events: auto;\n }\n\n .toggle slot::after {\n position: absolute;\n right: 0.5em;\n top: 50%;\n transform: translateY(-50%);\n content: "▾";\n }\n\n :host([expanded]) .toggle slot::after {\n transform: rotate(180deg) translateY(50%);\n }'}},Tr=class extends HTMLElement{constructor(){super(),this.__registerHost(),this.departments=[]}componentWillLoad(){this.fetchJobs()}async fetchJobs(){this.loading=!0;try{const e=await fetch("https://boards-api.greenhouse.io/v1/boards/pulumicorporation/departments"),t=await e.json();t&&t.departments&&(this.departments=t.departments.filter((e=>e.jobs.length>0)))}catch(e){console.error(e)}this.loading=!1}renderLoadingSpinner(){return Xe("div",{class:"loading-spinner"})}renderJobsList(){return this.departments.length>0?Xe("ul",{class:"departments"},this.departments.map((e=>Xe("li",null,Xe("h4",null,e.name),Xe("ul",{class:"jobs"},e.jobs.map((e=>Xe("li",null,Xe("a",{class:"job-title",href:e.absolute_url,target:"_blank",rel:"noreferrer noopener"},e.title),Xe("div",{class:"job-location"},e.location.name))))))))):Xe("div",null,Xe("p",null,"There are no open positions at this time."))}render(){return this.loading?this.renderLoadingSpinner():this.renderJobsList()}},Pr=class extends HTMLElement{constructor(){super(),this.__registerHost(),this.isLoading=!0,this.didLoad=!1}componentWillLoad(){if(!this.formId)throw new Error("The required attribute `form-id` was not provided.");this.hubspotFormTargetId=`hubspotForm_${this.formId}`}componentDidLoad(){const e=window.hbspt;e?this.createForm(e):this.loadHubSpotFormsScript(),this.messageHandler=this.onMessage.bind(this),window.addEventListener("message",this.messageHandler)}disconnectedCallback(){window.removeEventListener("message",this.messageHandler)}onMessage(e){var t;if("hsFormCallback"!==(null===(t=e.data)||void 0===t?void 0:t.type))return;const n=e.data.eventName,r=this.getUTMCookieData();if("onFormReady"===n){this.isLoading=!1,this.didLoad=!0;this.el.querySelectorAll('input[type="hidden"]').forEach((e=>{const t=e.closest("fieldset");t&&(t.style.display="none")}));const e=this.el.querySelector('input[name="last_utm_campaign"]');e&&(e.value=r.campaign);const t=this.el.querySelector('input[name="last_utm_source"]');t&&(t.value=r.source);const n=this.el.querySelector('input[name="last_utm_medium"]');n&&(n.value=r.medium),this.setInternalAdId()}if("onFormSubmit"===n){const e=this.el.querySelector('input[name="email"]');this.notifySegment(e.value,r)}"onFormDefinitionFetchError"===n&&(this.isLoading=!1,this.didLoad=!1)}notifySegment(e,t){const n=window.analytics;if(n&&n.track&&"function"==typeof n.track){const r={formId:this.formId,email:e,utmCampaign:t.campaign,utmSource:t.source,utmMedium:t.medium};n.track("form-submission",r)}}setInternalAdId(){const e=En("iaid");if(e){const t=this.el.querySelector('input[name="last_internal_ad_conversion"]');t&&(t.value=e)}}getUTMCookieData(){const e=kn(),t=(e.__utmzz||"").split("|").reduce(((e,t)=>{const n=t.split("=");return e[n[0]]=n[1],e}),{});return{campaign:t.utmccn||"(not set)",source:t.utmcsr||"(direct)",medium:t.utmcmd||"(none)"}}loadHubSpotFormsScript(){const e=document.createElement("script");e.setAttribute("src","//js.hsforms.net/forms/v2.js"),e.onload=()=>{const e=window.hbspt;e?this.createForm(e):(this.isLoading=!1,this.didLoad=!1)},e.onerror=()=>{this.isLoading=!1,this.didLoad=!1},document.body.appendChild(e)}createForm(e){e.forms.create({portalId:"4429525",formId:this.formId,css:"",cssClass:this.class,goToWebinarWebinarKey:this.goToWebinarKey,target:`#${this.hubspotFormTargetId}`,sfdcCampaignId:this.salesforceCampaignId})}renderIsLoadingForm(){return Xe("p",null,Xe("i",{class:"fa fa-spinner fa-spin mr-2"}))}renderFailedToLoadForm(){return Xe("p",null,"There was a problem loading this form. Please try refreshing your browser, and if you continue to see this message, let us know at"," ",Xe("a",{href:"mailto:support@pulumi.com"},"support@pulumi.com"),".")}render(){return Xe("div",{id:this.hubspotFormTargetId},this.didLoad||this.isLoading?this.renderIsLoadingForm():this.renderFailedToLoadForm())}get el(){return this}static get style(){return":host{display:block}"}},jr=class extends HTMLElement{constructor(){super(),this.__registerHost(),this.defaultTooltipContent="Copy command"}componentWillLoad(){this.tooltipContent=this.defaultTooltipContent}componentDidLoad(){this.os||(this.os=this.detectOS())}detectOS(){const e=navigator.appVersion;return-1!==e.indexOf("Win")?"windows":-1!==e.indexOf("Mac")?"macos":"linux"}get installCommand(){return{macos:"brew install pulumi",windows:"choco install pulumi",linux:"curl -fsSL https://get.pulumi.com | sh"}[this.os]}copyToClipboard(){vr(this.installCommand.toString()).then((()=>{this.tooltipContent="Copied!",setTimeout((()=>this.tooltipContent=this.defaultTooltipContent),3e3)}))}render(){return Xe("div",null,Xe("div",{class:"command-text"},Xe("p",null,Xe("span",null,this.installCommand))),Xe("div",{class:"copy-button"},Xe("pulumi-tooltip",null,Xe("button",{onClick:this.copyToClipboard.bind(this)},Xe("i",{class:"far fa-copy"})),Xe("span",{slot:"content"},this.tooltipContent))))}get el(){return this}static get style(){return":host{display:block}"}},Ir=class extends HTMLElement{constructor(){super(),this.__registerHost(),this.items=[],this.defaultFormId="",this.formSubmitted=!1}componentWillLoad(){""!==this.defaultFormId&&(this.selectedItem=this.items.find((e=>e.hubspotFormId===this.defaultFormId)),this.selectedItem)||(this.selectedItem=this.items[0])}componentDidLoad(){this.windowEventHandler=this.handleWindowMessage.bind(this),window.addEventListener("message",this.windowEventHandler)}disconnectedCallback(){window.removeEventListener("message",this.windowEventHandler)}handleWindowMessage(e){if("hsFormCallback"===e.data.type&&"onFormReady"===e.data.eventName){this.el.querySelector("form.hs-form").addEventListener("submit",this.handleFormSubmit.bind(this))}}handleFormSubmit(){this.formSubmitted=!0}handleSelectChange(e){this.selectedItem=this.items.find((t=>t.hubspotFormId===e))}render(){var e;const t=null===(e=this.selectedItem)||void 0===e?void 0:e.hubspotFormId;return Xe("div",null,this.formSubmitted?null:Xe("span",null,Xe("span",{class:this.labelClass||""},this.labelText),Xe("select",{class:this.selectClass||"",onInput:e=>this.handleSelectChange(e.target.value)},this.items.map((e=>{const n=e.hubspotFormId===t;return Xe("option",{value:e.hubspotFormId,selected:n},e.label?e.label:e.key)})))),Xe("pulumi-hubspot-form",{key:t,"form-id":t}))}get el(){return this}static get style(){return":host{display:block}"}},Lr=class extends HTMLElement{constructor(){super(),this.__registerHost(),this.duration="month",this.resourceCount=500,this.utilization=100,this.deploymentsExpanded=!1,this.deploymentMinutes=0}updateDuration(e){this.duration=e}getCostPerDeploymentMinute(){return.01}getFreeDeploymentMinutes(){return"month"===this.duration?3e3:100}getEstimatedCredits(){return"month"===this.duration?this.resourceCount*(this.utilization/100*24)*30:this.resourceCount*(this.utilization/100*24)}getEstimatedDeploymentMinutes(){return"month"===this.duration?30*this.deploymentMinutes:this.deploymentMinutes}updateDeploymentsExpanded(){this.deploymentsExpanded=!this.deploymentsExpanded}getFreeCredits(){return"month"===this.duration?15e4:5e3}getCostPerCredit(){return 5e-4}getTotal(){if(this.deploymentsExpanded){const e=(this.getEstimatedDeploymentMinutes()-this.getFreeDeploymentMinutes())*this.getCostPerDeploymentMinute(),t=(this.getEstimatedCredits()-this.getFreeCredits())*this.getCostPerCredit()+(e>0?e:0);return t>0?t:0}{const e=(this.getEstimatedCredits()-this.getFreeCredits())*this.getCostPerCredit();return e>0?e:0}}isTotalOverMax(){return this.getTotal()>1670&&"month"===this.duration||this.getTotal()>55&&"day"===this.duration}showFormattedTotal(){return`$${this.formatNumber(this.getTotal())} / ${"day"===this.duration?"day":"mo"}`}updateResourceCount(e){const t=e.target.value.trim();this.resourceCount=""===t?0:parseInt(t)}updateUtilization(e){const t=e.target.value.trim();this.utilization=""===t?1:parseInt(t)}updateDeploymentMinutes(e){const t=e.target.value.trim();this.deploymentMinutes=""===t?0:parseInt(t)}formatNumber(e){return(new Intl.NumberFormat).format(Math.round(e))}render(){return Xe("div",{class:"calculator"},Xe("h3",null,"Cost estimator"),Xe("div",{class:"edition"},"Team Edition"),Xe("div",{class:"content"},Xe("div",{class:"inputs"},Xe("div",{class:"field"},Xe("div",{class:"title"},"Number of resources"),Xe("div",{class:"details"},Xe("div",{class:"description"},"All cloud resources cost the same amount in Pulumi Cloud. Look at your cloud account and enter here the number of resources."),Xe("div",{class:"input"},Xe("input",{class:"resource-count",type:"number",min:"0",onInput:e=>this.updateResourceCount(e),value:this.resourceCount})))),Xe("div",{class:"field"},Xe("div",{class:"title"},"Utilization"),Xe("div",{class:"details"},Xe("div",{class:"description"},"If you have resources that are being spun up and down throughout the day, estimate the percentage of the time the total resource count will be reached."),Xe("div",{class:"utilization"},Xe("div",{class:"input"},Xe("input",{type:"number",min:"1",max:"100",onInput:e=>this.updateUtilization(e),value:this.utilization}),Xe("span",{class:"percent"},"%")),Xe("input",{type:"range",min:"1",max:"100",step:"1",onInput:e=>this.updateUtilization(e),value:this.utilization,class:"range purple"})))),Xe("div",{class:this.deploymentsExpanded?"deployments":"deployments collapsed"},Xe("div",{class:"default"},Xe("i",{class:"fas fa-rocket"}),Xe("div",{class:"details"},Xe("div",{class:"title"},"Add on Pulumi Deployments"),Xe("div",{class:"subtitle"},"Run deployments remotely with a button, Git push, or REST API")),Xe("button",{onClick:()=>this.updateDeploymentsExpanded()},Xe("i",{class:this.deploymentsExpanded?"fas fa-minus":"fas fa-plus"}))),Xe("div",{class:this.deploymentsExpanded?"field visible":"field"},Xe("div",{class:"title"},"Deployment minutes per day"),Xe("div",{class:"details"},Xe("div",{class:"description"},"Deployment minutes refer to the duration of time elapsed when running deployments on Pulumi’s compute. Use your current update times and add buffer for any workflows that need to happen."),Xe("div",{class:"input"},Xe("input",{type:"number",min:"0",onInput:e=>this.updateDeploymentMinutes(e),value:this.deploymentMinutes})))))),Xe("div",{class:"outputs"},Xe("div",{class:"gradient"}),Xe("div",{class:"contents"},Xe("div",{class:"duration"},Xe("button",{class:"day"===this.duration?"active":null,onClick:()=>this.updateDuration("day")},"Per day"),Xe("button",{class:"month"===this.duration?"active":null,onClick:()=>this.updateDuration("month")},"Per month")),Xe("div",{class:"items"},Xe("div",{class:"item"},Xe("span",null,"Estimated credits per ",this.duration),Xe("span",null,this.formatNumber(this.getEstimatedCredits()))),Xe("div",{class:"item"},Xe("span",null,"Free credits included"),Xe("span",null,this.formatNumber(this.getFreeCredits()))),Xe("div",{class:"item"},Xe("span",null,"Cost per credit"),Xe("span",null,"$",this.getCostPerCredit())),Xe("div",{class:this.deploymentsExpanded?"deployment-total visible":"deployment-total"},Xe("div",{class:"subtitle"},"Deployments"),Xe("div",{class:"item"},Xe("span",null,"Estimated deployment minutes per ",this.duration),Xe("span",null,this.formatNumber(this.getEstimatedDeploymentMinutes()))),Xe("div",{class:"item"},Xe("span",null,"Deployment minutes included"),Xe("span",null,this.formatNumber(this.getFreeDeploymentMinutes()))),Xe("div",{class:"item"},Xe("span",null,"Cost per deployment minute"),Xe("span",null,"$",this.getCostPerDeploymentMinute())))),Xe("div",{class:"divider"}),Xe("div",{class:this.isTotalOverMax()?"total over-max":"total"},Xe("span",{class:"contact"},Xe("a",{href:"/contact/?form=sales"},"Contact sales"),"for bulk discounts"),Xe("span",{class:this.isTotalOverMax()?"blurred":""},this.showFormattedTotal()))))))}static get style(){return'.calculator{margin-right:36px;margin-left:36px}.calculator h3{text-align:center;color:#000;font-family:"Gilroy";font-size:48px;font-weight:500}.calculator .edition{text-align:center;font-family:"Gilroy";font-size:28px;margin-bottom:36px}.calculator .content{display:flex;flex-direction:row;gap:60px}.calculator .inputs{display:flex;flex-direction:column;flex-grow:1}.calculator .field{margin-bottom:36px}.calculator .field .title{color:#131314;font-family:"Gilroy";font-size:24px;font-weight:500}.calculator .field .details{display:flex;flex-direction:row;justify-content:space-between}.calculator .field .details .description{width:400px;font-family:"Inter";font-size:16px;font-style:normal;font-weight:400;color:#2f3032}.calculator .field .details .utilization{margin-top:0px}.calculator .field .details .input{width:140px;padding:8px 12px;border-radius:4px;border:1px solid #bebfc9;height:48px}.calculator .field .details .input input{all:unset;width:80%}.calculator .field .details .input .percent{color:lightgray}.calculator .outputs{width:50%;max-width:530px;border-radius:12px;background:#fff;box-shadow:0px 6px 36px 0px rgba(0, 0, 0, 0.14)}.calculator .outputs .contents{display:flex;padding:36px;flex-direction:column;align-items:flex-start;gap:36px}.calculator .outputs .gradient{border-radius:12px 12px 0px 0px;height:8px;background:linear-gradient(90deg, #f7bf2a 0%, #f26e7e 18.23%, #be5188 38.02%, #8a3391 53.65%, #805ac3 74.48%, #7682f4 100%)}.calculator .outputs .duration{display:flex;align-self:center}.calculator .outputs .duration button{display:flex;padding:8px 12px;align-items:flex-start;color:#8e8f97;font-family:Inter;font-size:14px;font-style:normal;font-weight:500;border:1px solid #8e8f97}.calculator .outputs .duration button:first-of-type{border-radius:4px 0px 0px 4px}.calculator .outputs .duration button:last-of-type{border-radius:0px 4px 4px 0px}.calculator .outputs .duration button.active{color:#131314;background-color:#f2eff9;border:1px solid #805ac3}.calculator .outputs .items,.calculator .outputs .deployment-total{display:flex;flex-direction:column;gap:12px;color:#2f3032;font-family:"Inter";font-size:16px;font-weight:400;width:100%}.calculator .outputs .items .item,.calculator .outputs .deployment-total .item{flex-grow:1;display:flex;gap:36px;justify-content:space-between}.calculator .outputs .divider{width:100%;border-bottom:1px solid #bebfc9}.calculator .outputs .deployment-total{display:none}.calculator .outputs .deployment-total.visible{display:flex}.calculator .outputs .deployment-total .subtitle{font-weight:600}.calculator .outputs .deployment-total .item{margin-left:16px}.calculator .outputs .total{display:flex;width:100%;color:#805ac3;font-family:"Inter";font-size:30px;font-style:normal;font-weight:700;justify-content:end;gap:4px}.calculator .outputs .total .contact{display:none}.calculator .outputs .total.over-max{justify-content:space-between}.calculator .outputs .total.over-max .contact{align-self:center;display:inline-block;font-size:16px;line-height:24px;font-weight:600;color:#131314}.calculator .outputs .total.over-max .contact a{color:#4d5bd9;margin-right:4px}.calculator .outputs .total.over-max .blurred{filter:blur(16px)}.calculator input::-webkit-outer-spin-button,.calculator input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.calculator input[type=number]{-moz-appearance:textfield}.calculator .deployments{border-radius:4px;border:1px solid #805ac3;display:flex;flex-direction:column;width:100%;padding:24px}.calculator .deployments i{color:#805ac3;height:24px;width:24px;font-size:24px}.calculator .deployments.collapsed:hover{background:rgba(242, 239, 249, 0.5)}.calculator .deployments .default{display:flex;align-items:center;gap:24px}.calculator .deployments .default .details{flex-grow:1;display:flex;flex-direction:column;color:#2f3032}.calculator .deployments .default .details .title{font-family:"Inter";font-size:18px;font-weight:600;margin-bottom:16px}.calculator .deployments .default .details .subtitle{font-family:"Inter";font-size:16px;font-weight:400;line-height:normal}.calculator .deployments .field{margin-top:60px;display:none;margin-bottom:0px;flex-direction:column}.calculator .deployments .field.visible{display:flex}.range{-webkit-appearance:none;-moz-appearance:none;width:140px;display:block;margin-top:16px}input[type=range]::-webkit-slider-runnable-track{-webkit-appearance:none;border-radius:10px;background:#4776e6;background:linear-gradient(90deg, #f7bf2a 0%, #f26e7e 18.23%, #be5188 38.02%, #8a3391 53.65%, #805ac3 74.48%, #7682f4 100%);height:7.5px}input[type=range]:focus{outline:none}input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;border:2px solid;border-radius:50%;height:16px;width:16px;bottom:4px;position:relative;background-color:rgba(242, 239, 249, 0.5);cursor:-webkit-grab;-webkit-transition:border 1000ms ease;transition:border 1000ms ease}.range.purple::-webkit-slider-thumb{border-color:#805ac3}@media (max-width: 1280px){.calculator .field .details{flex-direction:column}.calculator .field .details .input{margin-top:16px}}@media (max-width: 1024px){.calculator .content{flex-direction:column}.calculator .outputs{width:100%;max-width:1200px}}@media (max-width: 640px){.calculator .field .details .description{width:100%}.calculator .field .details .input{width:100%}.range{width:100%}}'}},Ar=class extends HTMLElement{constructor(){super(),this.__registerHost(),this.packageSearch=$t(this,"packageSearch",7),this.filterContent="",this.debouncedFilter=An.debounce(this.debouncedFilter,300)}debouncedFilter(e){this.filterContent=e.value,this.packageSearch.emit(this.filterContent)}onChange(e){this.debouncedFilter(e)}onClearFilter(){this.filterContent="",this.packageSearch.emit(this.filterContent)}reset(){this.filterContent=""}render(){return Xe("div",{class:"input-container"},Xe("i",{class:"search-icon fas fa-filter"}),Xe("input",{class:"registry-filter-input",placeholder:"Filter by package name...",onInput:e=>this.onChange(e.target),value:this.filterContent,autocomplete:"off"}),this.filterContent&&Xe("div",{class:"clear-container"},Xe("button",{onClick:this.onClearFilter.bind(this),class:"clear-filter-button"},Xe("i",{class:"fas fa-times"}))))}static get style(){return'.input-container{display:inline-block;position:relative;width:100%;max-width:550px}.input-container .clear-container{position:absolute;display:flex;align-items:center;margin-right:6px;top:0;right:0;height:100%}.input-container .search-icon{position:absolute;display:flex;align-items:center;height:100%;padding-left:12px;color:#b0b0b0}.input-container .clear-filter-button{display:flex;align-items:center;justify-content:center;height:18px;width:18px;font-size:xx-small;background:#dcdcdc;color:#808080;border-radius:50%;border:none;cursor:pointer;padding:0px}.input-container .registry-filter-input{font-family:"Inter";font-size:14px;height:36px;width:100%;border-radius:4px;border:2px solid #000;padding:6px;padding-left:40px;margin-top:0}.input-container .registry-filter-input:focus{outline-color:#4d5bd9}.input-container .registry-filter-input::placeholder{font-style:italic;color:#808080}'}},Dr=class extends HTMLElement{constructor(){super(),this.__registerHost()}componentWillLoad(){fetch("https://www.pulumi.com/uploads/related-resources/2022-12-19.json").then((e=>e.json())).then((e=>{const t=e;if(t){const e=this.packageName.toLowerCase(),n=this.moduleName.toLowerCase(),r=this.resourceName.toLowerCase();this.related=t[e]&&t[e][n]?t[e][n][r]:void 0}})).catch((e=>console.error(e)))}render(){if(!this.related)return Xe("div",null);const e=this.packageName.toLowerCase();return Xe("div",{class:"container"},Xe("hr",{class:"mr-5"}),Xe("div",{class:"heading"},"Related Resources"),this.related.map((t=>{const n=t.split("/");let r=n.slice(0,n.length-1).join("/");const o=n[n.length-1],i=`/registry/packages/${e}/api-docs/${r.toLowerCase()}/${o.toLowerCase()}/`;return Xe("div",{class:"links"},Xe("a",{href:i},`${r}`,".",`${o}`))})))}};function Mr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Nr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Rr(e){for(var t=1;t({persona:"developer",language:"typescript",k8sLanguage:"typescript",os:Zr(),cloud:"aws",backend:"service"}))(),t)=>{switch(t.type){case Bn.SET_LANGUAGE:return Object.assign(Object.assign({},e),{language:t.key});case Bn.SET_K8S_LANGUAGE:return Object.assign(Object.assign({},e),{k8sLanguage:t.key});case Bn.SET_OS:return Object.assign(Object.assign({},e),{os:t.key});case Bn.SET_CLOUD:return Object.assign(Object.assign({},e),{cloud:t.key});case Bn.SET_PERSONA:return Object.assign(Object.assign({},e),{persona:t.key});case Bn.SET_BACKEND:return Object.assign(Object.assign({},e),{backend:t.key});default:return e}},banners:(e={dismissed:[]},t)=>{if(t.type===Bn.DISMISS_BANNER){const{name:n,dismissedAt:r}=t.payload;return Object.assign(Object.assign({},e),{dismissed:[...e.dismissed.filter((e=>e.name!==n)),{name:n,dismissedAt:r}]})}return e},user:(e=(()=>({id:eo().userId}))(),t)=>t.type===Bn.GET_USER_INFO?Object.assign(Object.assign({},e),{id:eo().userId}):e}),no=()=>{let e;try{e=localStorage.getItem("pulumi_state")}catch(e){console.error("Failed to read pulumi_state from localStorage:",e)}const t=e?JSON.parse(e):{},n=Wr(to,function(e){let t={};try{if(e.banners&&Array.isArray(e.banners.dismissed)){const n=Date.now()-3456e5;t.banners={dismissed:e.banners.dismissed.filter((e=>!!e.name&&e.dismissedAt&&e.dismissedAt>n))}}e.preferences&&(t.preferences={language:e.preferences.language||"typescript",os:e.preferences.os||"macos",cloud:e.preferences.cloud||"aws",k8sLanguage:e.preferences.k8sLanguage||"typescript",persona:e.preferences.persona||"developer",backend:e.backend||"service"})}catch(e){return t}return t}(t),Yr.composeWithDevTools(Kr(Qr)));return n.subscribe((()=>{const e=n.getState();try{localStorage.setItem("pulumi_state",JSON.stringify(e))}catch(e){console.error("Failed to save pulumi_state:",e)}})),setInterval((()=>{n.dispatch({type:Bn.GET_USER_INFO})}),3e3),n};const ro=class extends HTMLElement{constructor(){super(),this.__registerHost(),this.rendered=$t(this,"rendered",7)}componentWillLoad(){Fn.setStore(no()),Fn.mapDispatchToProps(this,{setLanguage:Un})}componentDidRender(){this.setSelectedLanguage(),this.rendered.emit()}render(){return Xe("div",null)}setSelectedLanguage(){const e=En("language");e&&this.setLanguage(e);const t=window.location.hash;if(t){const e=t.split("_").slice(-1).find((e=>["typescript","javascript","csharp","go","python"].includes(e)));e&&this.setLanguage(e)}}},oo=class extends HTMLElement{constructor(){super(),this.__registerHost()}componentDidLoad(){this.runSlotMachine()}runSlotMachine(){this.leftSwiper.stopSwiper(),this.centerSwiper.stopSwiper(),this.rightSwiper.stopSwiper(),setTimeout((()=>{this.leftSwiper.startSwiper()}),100),setTimeout((()=>{this.centerSwiper.startSwiper()}),500),setTimeout((()=>{this.rightSwiper.startSwiper()}),1e3),setTimeout((()=>{this.leftSwiper.stopSwiper()}),3e3),setTimeout((()=>{this.centerSwiper.stopSwiper()}),3500),setTimeout((()=>{this.rightSwiper.stopSwiper()}),4e3),setTimeout((()=>{this.leftSwiper.startSwiper(),this.centerSwiper.startSwiper(),this.rightSwiper.startSwiper(),this.runSlotMachine()}),7e3)}renderImageList(e){const t=this.imageClass||"";return e.map((e=>Xe("pulumi-swipeable",null,Xe("img",{class:t,src:e,alt:""}))))}render(){return Xe("ul",null,Xe("li",null,Xe("pulumi-swiper",{ref:e=>this.leftSwiper=e,direction:"vertical",slides:3,"centered-slides":!0,loop:!0,autoplay:!0,autoplayDelay:300,speed:1e3,"enable-mouse-events":!1,"space-between":120},this.renderImageList(this.leftImages.split(",")))),Xe("li",null,Xe("pulumi-swiper",{ref:e=>this.centerSwiper=e,direction:"vertical",slides:3,"centered-slides":!0,loop:!0,autoplay:!0,autoplayDelay:300,speed:1e3,"enable-mouse-events":!1,"space-between":120},this.renderImageList(this.centerImages.split(",")))),Xe("li",null,Xe("pulumi-swiper",{ref:e=>this.rightSwiper=e,direction:"vertical",slides:3,"centered-slides":!0,loop:!0,autoplay:!0,autoplayDelay:300,speed:1e3,"enable-mouse-events":!1,"space-between":120},this.renderImageList(this.rightImages.split(",")))))}static get style(){return":host{display:block}"}},io=class extends HTMLElement{constructor(){super(),this.__registerHost()}render(){return Xe(Ze,{class:"swiper-slide"},Xe("slot",null))}};function so(e){return null!==e&&"object"==typeof e&&"constructor"in e&&e.constructor===Object}function ao(e,t){void 0===e&&(e={}),void 0===t&&(t={}),Object.keys(t).forEach((function(n){void 0===e[n]?e[n]=t[n]:so(t[n])&&so(e[n])&&Object.keys(t[n]).length>0&&ao(e[n],t[n])}))}var lo={body:{},addEventListener:function(){},removeEventListener:function(){},activeElement:{blur:function(){},nodeName:""},querySelector:function(){return null},querySelectorAll:function(){return[]},getElementById:function(){return null},createEvent:function(){return{initEvent:function(){}}},createElement:function(){return{children:[],childNodes:[],style:{},setAttribute:function(){},getElementsByTagName:function(){return[]}}},createElementNS:function(){return{}},importNode:function(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function uo(){var e="undefined"!=typeof document?document:{};return ao(e,lo),e}var co={document:lo,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState:function(){},pushState:function(){},go:function(){},back:function(){}},CustomEvent:function(){return this},addEventListener:function(){},removeEventListener:function(){},getComputedStyle:function(){return{getPropertyValue:function(){return""}}},Image:function(){},Date:function(){},screen:{},setTimeout:function(){},clearTimeout:function(){},matchMedia:function(){return{}},requestAnimationFrame:function(e){return"undefined"==typeof setTimeout?(e(),null):setTimeout(e,0)},cancelAnimationFrame:function(e){"undefined"!=typeof setTimeout&&clearTimeout(e)}};function po(){var e="undefined"!=typeof window?window:{};return ao(e,co),e}function fo(e){return fo=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},fo(e)}function ho(e,t){return ho=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},ho(e,t)}function mo(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function vo(e,t,n){return vo=mo()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&ho(o,n.prototype),o},vo.apply(null,arguments)}function go(e){var t="function"==typeof Map?new Map:void 0;return go=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return vo(e,arguments,fo(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),ho(r,e)},go(e)}var yo=function(e){var t,n;function r(t){var n,r,o;return n=e.call.apply(e,[this].concat(t))||this,r=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(n),o=r.__proto__,Object.defineProperty(r,"__proto__",{get:function(){return o},set:function(e){o.__proto__=e}}),n}return n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,r}(go(Array));function bo(e){void 0===e&&(e=[]);var t=[];return e.forEach((function(e){Array.isArray(e)?t.push.apply(t,bo(e)):t.push(e)})),t}function wo(e,t){return Array.prototype.filter.call(e,t)}function So(e,t){var n=po(),r=uo(),o=[];if(!t&&e instanceof yo)return e;if(!e)return new yo(o);if("string"==typeof e){var i=e.trim();if(i.indexOf("<")>=0&&i.indexOf(">")>=0){var s="div";0===i.indexOf("0})).length>0},toggleClass:function(){for(var e=arguments.length,t=new Array(e),n=0;n=0;f-=1){var h=p[f];i&&h.listener===i||i&&h.listener&&h.listener.dom7proxy&&h.listener.dom7proxy===i?(d.removeEventListener(u,h.proxyListener,s),p.splice(f,1)):i||(d.removeEventListener(u,h.proxyListener,s),p.splice(f,1))}}return this},trigger:function(){for(var e=po(),t=arguments.length,n=new Array(t),r=0;r0})),u.dispatchEvent(c),u.dom7EventData=[],delete u.dom7EventData}}return this},transitionEnd:function(e){var t=this;return e&&t.on("transitionend",(function n(r){r.target===this&&(e.call(this,r),t.off("transitionend",n))})),this},outerWidth:function(e){if(this.length>0){if(e){var t=this.styles();return this[0].offsetWidth+parseFloat(t.getPropertyValue("margin-right"))+parseFloat(t.getPropertyValue("margin-left"))}return this[0].offsetWidth}return null},outerHeight:function(e){if(this.length>0){if(e){var t=this.styles();return this[0].offsetHeight+parseFloat(t.getPropertyValue("margin-top"))+parseFloat(t.getPropertyValue("margin-bottom"))}return this[0].offsetHeight}return null},styles:function(){var e=po();return this[0]?e.getComputedStyle(this[0],null):{}},offset:function(){if(this.length>0){var e=po(),t=uo(),n=this[0],r=n.getBoundingClientRect(),o=t.body,i=n.clientTop||o.clientTop||0,s=n.clientLeft||o.clientLeft||0,a=n===e?e.scrollY:n.scrollTop,l=n===e?e.scrollX:n.scrollLeft;return{top:r.top+a-i,left:r.left+l-s}}return null},css:function(e,t){var n,r=po();if(1===arguments.length){if("string"!=typeof e){for(n=0;nt-1)return So([]);if(e<0){var n=t+e;return So(n<0?[]:[this[n]])}return So([this[e]])},append:function(){for(var e,t=uo(),n=0;n=0;n-=1)this[t].insertBefore(o.childNodes[n],this[t].childNodes[0])}else if(e instanceof yo)for(n=0;n0?e?this[0].nextElementSibling&&So(this[0].nextElementSibling).is(e)?So([this[0].nextElementSibling]):So([]):this[0].nextElementSibling?So([this[0].nextElementSibling]):So([]):So([])},nextAll:function(e){var t=[],n=this[0];if(!n)return So([]);for(;n.nextElementSibling;){var r=n.nextElementSibling;e?So(r).is(e)&&t.push(r):t.push(r),n=r}return So(t)},prev:function(e){if(this.length>0){var t=this[0];return e?t.previousElementSibling&&So(t.previousElementSibling).is(e)?So([t.previousElementSibling]):So([]):t.previousElementSibling?So([t.previousElementSibling]):So([])}return So([])},prevAll:function(e){var t=[],n=this[0];if(!n)return So([]);for(;n.previousElementSibling;){var r=n.previousElementSibling;e?So(r).is(e)&&t.push(r):t.push(r),n=r}return So(t)},parent:function(e){for(var t=[],n=0;n6&&(r=r.split(", ").map((function(e){return e.replace(",",".")})).join(", ")),o=new i.WebKitCSSMatrix("none"===r?"":r)):n=(o=s.MozTransform||s.OTransform||s.MsTransform||s.msTransform||s.transform||s.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,")).toString().split(","),"x"===t&&(r=i.WebKitCSSMatrix?o.m41:16===n.length?parseFloat(n[12]):parseFloat(n[4])),"y"===t&&(r=i.WebKitCSSMatrix?o.m42:16===n.length?parseFloat(n[13]):parseFloat(n[5])),r||0}function To(e){return"object"==typeof e&&null!==e&&e.constructor&&"Object"===Object.prototype.toString.call(e).slice(8,-1)}function Po(){for(var e=Object(arguments.length<=0?void 0:arguments[0]),t=["__proto__","constructor","prototype"],n=1;n=0,observer:"MutationObserver"in e||"WebkitMutationObserver"in e,passiveListener:function(){var t=!1;try{var n=Object.defineProperty({},"passive",{get:function(){t=!0}});e.addEventListener("testPassiveListener",null,n)}catch(e){}return t}(),gestures:"ongesturestart"in e}}()),_o}function Lo(e){return void 0===e&&(e={}),Oo||(Oo=function(e){var t=(void 0===e?{}:e).userAgent,n=Io(),r=po(),o=r.navigator.platform,i=t||r.navigator.userAgent,s={ios:!1,android:!1},a=r.screen.width,l=r.screen.height,u=i.match(/(Android);?[\s\/]+([\d.]+)?/),c=i.match(/(iPad).*OS\s([\d_]+)/),d=i.match(/(iPod)(.*OS\s([\d_]+))?/),p=!c&&i.match(/(iPhone\sOS|iOS)\s([\d_]+)/),f="Win32"===o,h="MacIntel"===o;return!c&&h&&n.touch&&["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"].indexOf(a+"x"+l)>=0&&((c=i.match(/(Version)\/([\d.]+)/))||(c=[0,1,"13_0_0"]),h=!1),u&&!f&&(s.os="android",s.android=!0),(c||p||d)&&(s.os="ios",s.ios=!0),s}(e)),Oo}function Ao(){return xo||(xo=function(){var e,t=po();return{isEdge:!!t.navigator.userAgent.match(/Edge/g),isSafari:(e=t.navigator.userAgent.toLowerCase(),e.indexOf("safari")>=0&&e.indexOf("chrome")<0&&e.indexOf("android")<0),isWebView:/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(t.navigator.userAgent)}}()),xo}Object.keys($o).forEach((function(e){Object.defineProperty(So.fn,e,{value:$o[e],writable:!0})}));const Do={name:"resize",create:function(){var e=this;Po(e,{resize:{observer:null,createObserver:function(){e&&!e.destroyed&&e.initialized&&(e.resize.observer=new ResizeObserver((function(t){var n=e.width,r=e.height,o=n,i=r;t.forEach((function(t){var n=t.contentBoxSize,r=t.contentRect,s=t.target;s&&s!==e.el||(o=r?r.width:(n[0]||n).inlineSize,i=r?r.height:(n[0]||n).blockSize)})),o===n&&i===r||e.resize.resizeHandler()})),e.resize.observer.observe(e.el))},removeObserver:function(){e.resize.observer&&e.resize.observer.unobserve&&e.el&&(e.resize.observer.unobserve(e.el),e.resize.observer=null)},resizeHandler:function(){e&&!e.destroyed&&e.initialized&&(e.emit("beforeResize"),e.emit("resize"))},orientationChangeHandler:function(){e&&!e.destroyed&&e.initialized&&e.emit("orientationchange")}}})},on:{init:function(e){var t=po();e.params.resizeObserver&&void 0!==po().ResizeObserver?e.resize.createObserver():(t.addEventListener("resize",e.resize.resizeHandler),t.addEventListener("orientationchange",e.resize.orientationChangeHandler))},destroy:function(e){var t=po();e.resize.removeObserver(),t.removeEventListener("resize",e.resize.resizeHandler),t.removeEventListener("orientationchange",e.resize.orientationChangeHandler)}}};function Mo(){return Mo=Object.assign||function(e){for(var t=1;t=0&&t.eventsAnyListeners.splice(n,1),t},off:function(e,t){var n=this;return n.eventsListeners?(e.split(" ").forEach((function(e){void 0===t?n.eventsListeners[e]=[]:n.eventsListeners[e]&&n.eventsListeners[e].forEach((function(r,o){(r===t||r.__emitterProxy&&r.__emitterProxy===t)&&n.eventsListeners[e].splice(o,1)}))})),n):n},emit:function(){var e,t,n,r=this;if(!r.eventsListeners)return r;for(var o=arguments.length,i=new Array(o),s=0;s=0&&(b=parseFloat(b.replace("%",""))/100*i),e.virtualSize=-b,s?c.css({marginLeft:"",marginTop:""}):c.css({marginRight:"",marginBottom:""}),r.slidesPerColumn>1&&(O=Math.floor(d/r.slidesPerColumn)===d/e.params.slidesPerColumn?d:Math.ceil(d/r.slidesPerColumn)*r.slidesPerColumn,"auto"!==r.slidesPerView&&"row"===r.slidesPerColumnFill&&(O=Math.max(O,r.slidesPerView*r.slidesPerColumn)));for(var $,C,E,k=r.slidesPerColumn,T=O/k,P=Math.floor(d/r.slidesPerColumn),j=0;j1){var L=void 0,A=void 0,D=void 0;if("row"===r.slidesPerColumnFill&&r.slidesPerGroup>1){var M=Math.floor(j/(r.slidesPerGroup*r.slidesPerColumn)),N=j-r.slidesPerColumn*r.slidesPerGroup*M,R=0===M?r.slidesPerGroup:Math.min(Math.ceil((d-M*k*r.slidesPerGroup)/k),r.slidesPerGroup);L=(A=N-(D=Math.floor(N/R))*R+M*r.slidesPerGroup)+D*O/k,I.css({"-webkit-box-ordinal-group":L,"-moz-box-ordinal-group":L,"-ms-flex-order":L,"-webkit-order":L,order:L})}else"column"===r.slidesPerColumnFill?(D=j-(A=Math.floor(j/k))*k,(A>P||A===P&&D===k-1)&&(D+=1)>=k&&(D=0,A+=1)):A=j-(D=Math.floor(j/T))*T;I.css(t("margin-top"),0!==D&&r.spaceBetween&&r.spaceBetween+"px")}if("none"!==I.css("display")){if("auto"===r.slidesPerView){var F=getComputedStyle(I[0]),B=I[0].style.transform,q=I[0].style.webkitTransform;if(B&&(I[0].style.transform="none"),q&&(I[0].style.webkitTransform="none"),r.roundLengths)x=e.isHorizontal()?I.outerWidth(!0):I.outerHeight(!0);else{var z=n(F,"width"),H=n(F,"padding-left"),W=n(F,"padding-right"),U=n(F,"margin-left"),V=n(F,"margin-right"),G=F.getPropertyValue("box-sizing");if(G&&"border-box"===G)x=z+U+V;else{var K=I[0],J=K.clientWidth;x=z+H+W+U+V+(K.offsetWidth-J)}}B&&(I[0].style.transform=B),q&&(I[0].style.webkitTransform=q),r.roundLengths&&(x=Math.floor(x))}else x=(i-(r.slidesPerView-1)*b)/r.slidesPerView,r.roundLengths&&(x=Math.floor(x)),c[j]&&(c[j].style[t("width")]=x+"px");c[j]&&(c[j].swiperSlideSize=x),h.push(x),r.centeredSlides?(w=w+x/2+S/2+b,0===S&&0!==j&&(w=w-i/2-b),0===j&&(w=w-i/2-b),Math.abs(w)<.001&&(w=0),r.roundLengths&&(w=Math.floor(w)),_%r.slidesPerGroup==0&&p.push(w),f.push(w)):(r.roundLengths&&(w=Math.floor(w)),(_-Math.min(e.params.slidesPerGroupSkip,_))%e.params.slidesPerGroup==0&&p.push(w),f.push(w),w=w+x+b),e.virtualSize+=x+b,S=x,_+=1}}if(e.virtualSize=Math.max(e.virtualSize,i)+v,s&&a&&("slide"===r.effect||"coverflow"===r.effect)&&o.css({width:e.virtualSize+r.spaceBetween+"px"}),r.setWrapperSize)o.css(((C={})[t("width")]=e.virtualSize+r.spaceBetween+"px",C));if(r.slidesPerColumn>1)if(e.virtualSize=(x+r.spaceBetween)*O,e.virtualSize=Math.ceil(e.virtualSize/r.slidesPerColumn)-r.spaceBetween,o.css(((E={})[t("width")]=e.virtualSize+r.spaceBetween+"px",E)),r.centeredSlides){$=[];for(var Y=0;Y1&&p.push(e.virtualSize-i)}if(0===p.length&&(p=[0]),0!==r.spaceBetween){var ee,te=e.isHorizontal()&&s?"marginLeft":t("marginRight");c.filter((function(e,t){return!r.cssMode||t!==c.length-1})).css(((ee={})[te]=b+"px",ee))}if(r.centeredSlides&&r.centeredSlidesBounds){var ne=0;h.forEach((function(e){ne+=e+(r.spaceBetween?r.spaceBetween:0)}));var re=(ne-=r.spaceBetween)-i;p=p.map((function(e){return e<0?-m:e>re?re+v:e}))}if(r.centerInsufficientSlides){var oe=0;if(h.forEach((function(e){oe+=e+(r.spaceBetween?r.spaceBetween:0)})),(oe-=r.spaceBetween)1)if(n.params.centeredSlides)n.visibleSlides.each((function(e){r.push(e)}));else for(t=0;tn.slides.length&&!o)break;r.push(s(a))}else r.push(s(n.activeIndex));for(t=0;ti?l:i}i&&n.$wrapperEl.css("height",i+"px")},updateSlidesOffset:function(){for(var e=this.slides,t=0;t=0&&u1&&c<=t.size||u<=0&&c>=t.size)&&(t.visibleSlides.push(a),t.visibleSlidesIndexes.push(s),r.eq(s).addClass(n.slideVisibleClass))}a.progress=o?-l:l}t.visibleSlides=So(t.visibleSlides)}},updateProgress:function(e){var t=this;if(void 0===e){var n=t.rtlTranslate?-1:1;e=t&&t.translate&&t.translate*n||0}var r=t.params,o=t.maxTranslate()-t.minTranslate(),i=t.progress,s=t.isBeginning,a=t.isEnd,l=s,u=a;0===o?(i=0,s=!0,a=!0):(s=(i=(e-t.minTranslate())/o)<=0,a=i>=1),Po(t,{progress:i,isBeginning:s,isEnd:a}),(r.watchSlidesProgress||r.watchSlidesVisibility||r.centeredSlides&&r.autoHeight)&&t.updateSlidesProgress(e),s&&!l&&t.emit("reachBeginning toEdge"),a&&!u&&t.emit("reachEnd toEdge"),(l&&!s||u&&!a)&&t.emit("fromEdge"),t.emit("progress",i)},updateSlidesClasses:function(){var e,t=this,n=t.slides,r=t.params,o=t.$wrapperEl,i=t.activeIndex,s=t.realIndex,a=t.virtual&&r.virtual.enabled;n.removeClass(r.slideActiveClass+" "+r.slideNextClass+" "+r.slidePrevClass+" "+r.slideDuplicateActiveClass+" "+r.slideDuplicateNextClass+" "+r.slideDuplicatePrevClass),(e=a?t.$wrapperEl.find("."+r.slideClass+'[data-swiper-slide-index="'+i+'"]'):n.eq(i)).addClass(r.slideActiveClass),r.loop&&(e.hasClass(r.slideDuplicateClass)?o.children("."+r.slideClass+":not(."+r.slideDuplicateClass+')[data-swiper-slide-index="'+s+'"]').addClass(r.slideDuplicateActiveClass):o.children("."+r.slideClass+"."+r.slideDuplicateClass+'[data-swiper-slide-index="'+s+'"]').addClass(r.slideDuplicateActiveClass));var l=e.nextAll("."+r.slideClass).eq(0).addClass(r.slideNextClass);r.loop&&0===l.length&&(l=n.eq(0)).addClass(r.slideNextClass);var u=e.prevAll("."+r.slideClass).eq(0).addClass(r.slidePrevClass);r.loop&&0===u.length&&(u=n.eq(-1)).addClass(r.slidePrevClass),r.loop&&(l.hasClass(r.slideDuplicateClass)?o.children("."+r.slideClass+":not(."+r.slideDuplicateClass+')[data-swiper-slide-index="'+l.attr("data-swiper-slide-index")+'"]').addClass(r.slideDuplicateNextClass):o.children("."+r.slideClass+"."+r.slideDuplicateClass+'[data-swiper-slide-index="'+l.attr("data-swiper-slide-index")+'"]').addClass(r.slideDuplicateNextClass),u.hasClass(r.slideDuplicateClass)?o.children("."+r.slideClass+":not(."+r.slideDuplicateClass+')[data-swiper-slide-index="'+u.attr("data-swiper-slide-index")+'"]').addClass(r.slideDuplicatePrevClass):o.children("."+r.slideClass+"."+r.slideDuplicateClass+'[data-swiper-slide-index="'+u.attr("data-swiper-slide-index")+'"]').addClass(r.slideDuplicatePrevClass)),t.emitSlidesClasses()},updateActiveIndex:function(e){var t,n=this,r=n.rtlTranslate?n.translate:-n.translate,o=n.slidesGrid,i=n.snapGrid,s=n.params,a=n.activeIndex,l=n.realIndex,u=n.snapIndex,c=e;if(void 0===c){for(var d=0;d=o[d]&&r=o[d]&&r=o[d]&&(c=d);s.normalizeSlideIndex&&(c<0||void 0===c)&&(c=0)}if(i.indexOf(r)>=0)t=i.indexOf(r);else{var p=Math.min(s.slidesPerGroupSkip,c);t=p+Math.floor((c-p)/s.slidesPerGroup)}if(t>=i.length&&(t=i.length-1),c!==a){var f=parseInt(n.slides.eq(c).attr("data-swiper-slide-index")||c,10);Po(n,{snapIndex:t,realIndex:f,previousIndex:a,activeIndex:c}),n.emit("activeIndexChange"),n.emit("snapIndexChange"),l!==f&&n.emit("realIndexChange"),(n.initialized||n.params.runCallbacksOnInit)&&n.emit("slideChange")}else t!==u&&(n.snapIndex=t,n.emit("snapIndexChange"))},updateClickedSlide:function(e){var t,n=this,r=n.params,o=So(e.target).closest("."+r.slideClass)[0],i=!1;if(o)for(var s=0;su?u:r&&e=u.length&&(g=u.length-1),(p||l.initialSlide||0)===(d||0)&&n&&s.emit("beforeSlideChangeStart");var y,b=-u[g];if(s.updateProgress(b),l.normalizeSlideIndex)for(var w=0;w=_&&S=_&&S=_&&(a=w)}if(s.initialized&&a!==p){if(!s.allowSlideNext&&bs.translate&&b>s.maxTranslate()&&(p||0)!==a)return!1}if(y=a>p?"next":a=e&&(f=e)})),void 0!==f&&(p=a.indexOf(f))<0&&(p=r.activeIndex-1),r.slideTo(p,e,t,n)},slideReset:function(e,t,n){return void 0===e&&(e=this.params.speed),void 0===t&&(t=!0),this.slideTo(this.activeIndex,e,t,n)},slideToClosest:function(e,t,n,r){void 0===e&&(e=this.params.speed),void 0===t&&(t=!0),void 0===r&&(r=.5);var o=this,i=o.activeIndex,s=Math.min(o.params.slidesPerGroupSkip,i),a=s+Math.floor((i-s)/o.params.slidesPerGroup),l=o.rtlTranslate?o.translate:-o.translate;if(l>=o.snapGrid[a]){var u=o.snapGrid[a];l-u>(o.snapGrid[a+1]-u)*r&&(i+=o.params.slidesPerGroup)}else{var c=o.snapGrid[a-1];l-c<=(o.snapGrid[a]-c)*r&&(i-=o.params.slidesPerGroup)}return i=Math.max(i,0),i=Math.min(i,o.slidesGrid.length-1),o.slideTo(i,e,t,n)},slideToClickedSlide:function(){var e,t=this,n=t.params,r=t.$wrapperEl,o="auto"===n.slidesPerView?t.slidesPerViewDynamic():n.slidesPerView,i=t.clickedIndex;if(n.loop){if(t.animating)return;e=parseInt(So(t.clickedSlide).attr("data-swiper-slide-index"),10),n.centeredSlides?it.slides.length-t.loopedSlides+o/2?(t.loopFix(),i=r.children("."+n.slideClass+'[data-swiper-slide-index="'+e+'"]:not(.'+n.slideDuplicateClass+")").eq(0).index(),Co((function(){t.slideTo(i)}))):t.slideTo(i):i>t.slides.length-o?(t.loopFix(),i=r.children("."+n.slideClass+'[data-swiper-slide-index="'+e+'"]:not(.'+n.slideDuplicateClass+")").eq(0).index(),Co((function(){t.slideTo(i)}))):t.slideTo(i)}else t.slideTo(i)}};const Ho={loopCreate:function(){var e=this,t=uo(),n=e.params,r=e.$wrapperEl;r.children("."+n.slideClass+"."+n.slideDuplicateClass).remove();var o=r.children("."+n.slideClass);if(n.loopFillGroupWithBlank){var i=n.slidesPerGroup-o.length%n.slidesPerGroup;if(i!==n.slidesPerGroup){for(var s=0;so.length&&(e.loopedSlides=o.length);var l=[],u=[];o.each((function(t,n){var r=So(t);n=o.length-e.loopedSlides&&l.push(t),r.attr("data-swiper-slide-index",n)}));for(var c=0;c=0;d-=1)r.prepend(So(l[d].cloneNode(!0)).addClass(n.slideDuplicateClass))},loopFix:function(){var e=this;e.emit("beforeLoopFix");var t,n=e.activeIndex,r=e.slides,o=e.loopedSlides,i=e.allowSlidePrev,s=e.allowSlideNext,a=e.snapGrid,l=e.rtlTranslate;e.allowSlidePrev=!0,e.allowSlideNext=!0;var u=-a[n]-e.getTranslate();if(n=r.length-o){t=-r.length+n+o,t+=o,e.slideTo(t,0,!1,!0)&&0!==u&&e.setTranslate((l?-e.translate:e.translate)-u)}e.allowSlidePrev=i,e.allowSlideNext=s,e.emit("loopFix")},loopDestroy:function(){var e=this,t=e.$wrapperEl,n=e.params,r=e.slides;t.children("."+n.slideClass+"."+n.slideDuplicateClass+",."+n.slideClass+"."+n.slideBlankClass).remove(),r.removeAttr("data-swiper-slide-index")}};const Wo={appendSlide:function(e){var t=this,n=t.$wrapperEl,r=t.params;if(r.loop&&t.loopDestroy(),"object"==typeof e&&"length"in e)for(var o=0;o=s)n.appendSlide(t);else{for(var a=i>e?i+1:i,l=[],u=s-1;u>=e;u-=1){var c=n.slides.eq(u);c.remove(),l.unshift(c)}if("object"==typeof t&&"length"in t){for(var d=0;de?i+t.length:i}else r.append(t);for(var p=0;p0))if(!o.isTouched||!o.isMoved)if(!!i.noSwipingClass&&""!==i.noSwipingClass&&a.target&&a.target.shadowRoot&&e.path&&e.path[0]&&(l=So(e.path[0])),i.noSwiping&&l.closest(i.noSwipingSelector?i.noSwipingSelector:"."+i.noSwipingClass)[0])t.allowClick=!0;else if(!i.swipeHandler||l.closest(i.swipeHandler)[0]){s.currentX="touchstart"===a.type?a.targetTouches[0].pageX:a.pageX,s.currentY="touchstart"===a.type?a.targetTouches[0].pageY:a.pageY;var u=s.currentX,c=s.currentY,d=i.edgeSwipeDetection||i.iOSEdgeSwipeDetection,p=i.edgeSwipeThreshold||i.iOSEdgeSwipeThreshold;if(d&&(u<=p||u>=r.innerWidth-p)){if("prevent"!==d)return;e.preventDefault()}if(Po(o,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),s.startX=u,s.startY=c,o.touchStartTime=Eo(),t.allowClick=!0,t.updateSize(),t.swipeDirection=void 0,i.threshold>0&&(o.allowThresholdMove=!1),"touchstart"!==a.type){var f=!0;l.is(o.formElements)&&(f=!1),n.activeElement&&So(n.activeElement).is(o.formElements)&&n.activeElement!==l[0]&&n.activeElement.blur();var h=f&&t.allowTouchMove&&i.touchStartPreventDefault;!i.touchStartForcePreventDefault&&!h||l[0].isContentEditable||a.preventDefault()}t.emit("touchStart",a)}}}function Vo(e){var t=uo(),n=this,r=n.touchEventsData,o=n.params,i=n.touches,s=n.rtlTranslate;if(n.enabled){var a=e;if(a.originalEvent&&(a=a.originalEvent),r.isTouched){if(!r.isTouchEvent||"touchmove"===a.type){var l="touchmove"===a.type&&a.targetTouches&&(a.targetTouches[0]||a.changedTouches[0]),u="touchmove"===a.type?l.pageX:a.pageX,c="touchmove"===a.type?l.pageY:a.pageY;if(a.preventedByNestedSwiper)return i.startX=u,void(i.startY=c);if(!n.allowTouchMove)return n.allowClick=!1,void(r.isTouched&&(Po(i,{startX:u,startY:c,currentX:u,currentY:c}),r.touchStartTime=Eo()));if(r.isTouchEvent&&o.touchReleaseOnEdges&&!o.loop)if(n.isVertical()){if(ci.startY&&n.translate>=n.minTranslate())return r.isTouched=!1,void(r.isMoved=!1)}else if(ui.startX&&n.translate>=n.minTranslate())return;if(r.isTouchEvent&&t.activeElement&&a.target===t.activeElement&&So(a.target).is(r.formElements))return r.isMoved=!0,void(n.allowClick=!1);if(r.allowTouchCallbacks&&n.emit("touchMove",a),!(a.targetTouches&&a.targetTouches.length>1)){i.currentX=u,i.currentY=c;var d=i.currentX-i.startX,p=i.currentY-i.startY;if(!(n.params.threshold&&Math.sqrt(Math.pow(d,2)+Math.pow(p,2))=25&&(f=180*Math.atan2(Math.abs(p),Math.abs(d))/Math.PI,r.isScrolling=n.isHorizontal()?f>o.touchAngle:90-f>o.touchAngle);if(r.isScrolling&&n.emit("touchMoveOpposite",a),void 0===r.startMoving&&(i.currentX===i.startX&&i.currentY===i.startY||(r.startMoving=!0)),r.isScrolling)r.isTouched=!1;else if(r.startMoving){n.allowClick=!1,!o.cssMode&&a.cancelable&&a.preventDefault(),o.touchMoveStopPropagation&&!o.nested&&a.stopPropagation(),r.isMoved||(o.loop&&n.loopFix(),r.startTranslate=n.getTranslate(),n.setTransition(0),n.animating&&n.$wrapperEl.trigger("webkitTransitionEnd transitionend"),r.allowMomentumBounce=!1,!o.grabCursor||!0!==n.allowSlideNext&&!0!==n.allowSlidePrev||n.setGrabCursor(!0),n.emit("sliderFirstMove",a)),n.emit("sliderMove",a),r.isMoved=!0;var h=n.isHorizontal()?d:p;i.diff=h,h*=o.touchRatio,s&&(h=-h),n.swipeDirection=h>0?"prev":"next",r.currentTranslate=h+r.startTranslate;var m=!0,v=o.resistanceRatio;if(o.touchReleaseOnEdges&&(v=0),h>0&&r.currentTranslate>n.minTranslate()?(m=!1,o.resistance&&(r.currentTranslate=n.minTranslate()-1+Math.pow(-n.minTranslate()+r.startTranslate+h,v))):h<0&&r.currentTranslater.startTranslate&&(r.currentTranslate=r.startTranslate),n.allowSlidePrev||n.allowSlideNext||(r.currentTranslate=r.startTranslate),o.threshold>0){if(!(Math.abs(h)>o.threshold||r.allowThresholdMove))return void(r.currentTranslate=r.startTranslate);if(!r.allowThresholdMove)return r.allowThresholdMove=!0,i.startX=i.currentX,i.startY=i.currentY,r.currentTranslate=r.startTranslate,void(i.diff=n.isHorizontal()?i.currentX-i.startX:i.currentY-i.startY)}o.followFinger&&!o.cssMode&&((o.freeMode||o.watchSlidesProgress||o.watchSlidesVisibility)&&(n.updateActiveIndex(),n.updateSlidesClasses()),o.freeMode&&(0===r.velocities.length&&r.velocities.push({position:i[n.isHorizontal()?"startX":"startY"],time:r.touchStartTime}),r.velocities.push({position:i[n.isHorizontal()?"currentX":"currentY"],time:Eo()})),n.updateProgress(r.currentTranslate),n.setTranslate(r.currentTranslate))}}}}}else r.startMoving&&r.isScrolling&&n.emit("touchMoveOpposite",a)}}function Go(e){var t=this,n=t.touchEventsData,r=t.params,o=t.touches,i=t.rtlTranslate,s=t.$wrapperEl,a=t.slidesGrid,l=t.snapGrid;if(t.enabled){var u=e;if(u.originalEvent&&(u=u.originalEvent),n.allowTouchCallbacks&&t.emit("touchEnd",u),n.allowTouchCallbacks=!1,!n.isTouched)return n.isMoved&&r.grabCursor&&t.setGrabCursor(!1),n.isMoved=!1,void(n.startMoving=!1);r.grabCursor&&n.isMoved&&n.isTouched&&(!0===t.allowSlideNext||!0===t.allowSlidePrev)&&t.setGrabCursor(!1);var c,d=Eo(),p=d-n.touchStartTime;if(t.allowClick&&(t.updateClickedSlide(u),t.emit("tap click",u),p<300&&d-n.lastClickTime<300&&t.emit("doubleTap doubleClick",u)),n.lastClickTime=Eo(),Co((function(){t.destroyed||(t.allowClick=!0)})),!n.isTouched||!n.isMoved||!t.swipeDirection||0===o.diff||n.currentTranslate===n.startTranslate)return n.isTouched=!1,n.isMoved=!1,void(n.startMoving=!1);if(n.isTouched=!1,n.isMoved=!1,n.startMoving=!1,c=r.followFinger?i?t.translate:-t.translate:-n.currentTranslate,!r.cssMode)if(r.freeMode){if(c<-t.minTranslate())return void t.slideTo(t.activeIndex);if(c>-t.maxTranslate())return void(t.slides.length1){var f=n.velocities.pop(),h=n.velocities.pop(),m=f.position-h.position,v=f.time-h.time;t.velocity=m/v,t.velocity/=2,Math.abs(t.velocity)150||Eo()-f.time>300)&&(t.velocity=0)}else t.velocity=0;t.velocity*=r.freeModeMomentumVelocityRatio,n.velocities.length=0;var g=1e3*r.freeModeMomentumRatio,y=t.velocity*g,b=t.translate+y;i&&(b=-b);var w,S,_=!1,O=20*Math.abs(t.velocity)*r.freeModeMomentumBounceRatio;if(bt.minTranslate())r.freeModeMomentumBounce?(b-t.minTranslate()>O&&(b=t.minTranslate()+O),w=t.minTranslate(),_=!0,n.allowMomentumBounce=!0):b=t.minTranslate(),r.loop&&r.centeredSlides&&(S=!0);else if(r.freeModeSticky){for(var x,$=0;$-b){x=$;break}b=-(b=Math.abs(l[x]-b)=r.longSwipesMs)&&(t.updateProgress(),t.updateActiveIndex(),t.updateSlidesClasses())}else{for(var k=0,T=t.slidesSizesGrid[0],P=0;P=a[P]&&c=a[P]&&(k=P,T=a[a.length-1]-a[a.length-2])}var I=(c-a[k])/T,L=kr.longSwipesMs){if(!r.longSwipes)return void t.slideTo(t.activeIndex);"next"===t.swipeDirection&&(I>=r.longSwipesRatio?t.slideTo(k+L):t.slideTo(k)),"prev"===t.swipeDirection&&(I>1-r.longSwipesRatio?t.slideTo(k+L):t.slideTo(k))}else{if(!r.shortSwipes)return void t.slideTo(t.activeIndex);t.navigation&&(u.target===t.navigation.nextEl||u.target===t.navigation.prevEl)?u.target===t.navigation.nextEl?t.slideTo(k+L):t.slideTo(k):("next"===t.swipeDirection&&t.slideTo(k+L),"prev"===t.swipeDirection&&t.slideTo(k))}}}}function Ko(){var e=this,t=e.params,n=e.el;if(!n||0!==n.offsetWidth){t.breakpoints&&e.setBreakpoint();var r=e.allowSlideNext,o=e.allowSlidePrev,i=e.snapGrid;e.allowSlideNext=!0,e.allowSlidePrev=!0,e.updateSize(),e.updateSlides(),e.updateSlidesClasses(),("auto"===t.slidesPerView||t.slidesPerView>1)&&e.isEnd&&!e.isBeginning&&!e.params.centeredSlides?e.slideTo(e.slides.length-1,0,!1,!0):e.slideTo(e.activeIndex,0,!1,!0),e.autoplay&&e.autoplay.running&&e.autoplay.paused&&e.autoplay.run(),e.allowSlidePrev=o,e.allowSlideNext=r,e.params.watchOverflow&&i!==e.snapGrid&&e.checkOverflow()}}function Jo(e){var t=this;t.enabled&&(t.allowClick||(t.params.preventClicks&&e.preventDefault(),t.params.preventClicksPropagation&&t.animating&&(e.stopPropagation(),e.stopImmediatePropagation())))}function Yo(){var e=this,t=e.wrapperEl,n=e.rtlTranslate;if(e.enabled){e.previousTranslate=e.translate,e.isHorizontal()?e.translate=n?t.scrollWidth-t.offsetWidth-t.scrollLeft:-t.scrollLeft:e.translate=-t.scrollTop,-0===e.translate&&(e.translate=0),e.updateActiveIndex(),e.updateSlidesClasses();var r=e.maxTranslate()-e.minTranslate();(0===r?0:(e.translate-e.minTranslate())/r)!==e.progress&&e.updateProgress(n?-e.translate:e.translate),e.emit("setTranslate",e.translate,!1)}}var Xo=!1;function Qo(){}const Zo={attachEvents:function(){var e=this,t=uo(),n=e.params,r=e.touchEvents,o=e.el,i=e.wrapperEl,s=e.device,a=e.support;e.onTouchStart=Uo.bind(e),e.onTouchMove=Vo.bind(e),e.onTouchEnd=Go.bind(e),n.cssMode&&(e.onScroll=Yo.bind(e)),e.onClick=Jo.bind(e);var l=!!n.nested;if(!a.touch&&a.pointerEvents)o.addEventListener(r.start,e.onTouchStart,!1),t.addEventListener(r.move,e.onTouchMove,l),t.addEventListener(r.end,e.onTouchEnd,!1);else{if(a.touch){var u=!("touchstart"!==r.start||!a.passiveListener||!n.passiveListeners)&&{passive:!0,capture:!1};o.addEventListener(r.start,e.onTouchStart,u),o.addEventListener(r.move,e.onTouchMove,a.passiveListener?{passive:!1,capture:l}:l),o.addEventListener(r.end,e.onTouchEnd,u),r.cancel&&o.addEventListener(r.cancel,e.onTouchEnd,u),Xo||(t.addEventListener("touchstart",Qo),Xo=!0)}(n.simulateTouch&&!s.ios&&!s.android||n.simulateTouch&&!a.touch&&s.ios)&&(o.addEventListener("mousedown",e.onTouchStart,!1),t.addEventListener("mousemove",e.onTouchMove,l),t.addEventListener("mouseup",e.onTouchEnd,!1))}(n.preventClicks||n.preventClicksPropagation)&&o.addEventListener("click",e.onClick,!0),n.cssMode&&i.addEventListener("scroll",e.onScroll),n.updateOnWindowResize?e.on(s.ios||s.android?"resize orientationchange observerUpdate":"resize observerUpdate",Ko,!0):e.on("observerUpdate",Ko,!0)},detachEvents:function(){var e=this,t=uo(),n=e.params,r=e.touchEvents,o=e.el,i=e.wrapperEl,s=e.device,a=e.support,l=!!n.nested;if(!a.touch&&a.pointerEvents)o.removeEventListener(r.start,e.onTouchStart,!1),t.removeEventListener(r.move,e.onTouchMove,l),t.removeEventListener(r.end,e.onTouchEnd,!1);else{if(a.touch){var u=!("onTouchStart"!==r.start||!a.passiveListener||!n.passiveListeners)&&{passive:!0,capture:!1};o.removeEventListener(r.start,e.onTouchStart,u),o.removeEventListener(r.move,e.onTouchMove,l),o.removeEventListener(r.end,e.onTouchEnd,u),r.cancel&&o.removeEventListener(r.cancel,e.onTouchEnd,u)}(n.simulateTouch&&!s.ios&&!s.android||n.simulateTouch&&!a.touch&&s.ios)&&(o.removeEventListener("mousedown",e.onTouchStart,!1),t.removeEventListener("mousemove",e.onTouchMove,l),t.removeEventListener("mouseup",e.onTouchEnd,!1))}(n.preventClicks||n.preventClicksPropagation)&&o.removeEventListener("click",e.onClick,!0),n.cssMode&&i.removeEventListener("scroll",e.onScroll),e.off(s.ios||s.android?"resize orientationchange observerUpdate":"resize observerUpdate",Ko)}};const ei={setBreakpoint:function(){var e=this,t=e.activeIndex,n=e.initialized,r=e.loopedSlides,o=void 0===r?0:r,i=e.params,s=e.$el,a=i.breakpoints;if(a&&(!a||0!==Object.keys(a).length)){var l=e.getBreakpoint(a,e.params.breakpointsBase,e.el);if(l&&e.currentBreakpoint!==l){var u=l in a?a[l]:void 0;u&&["slidesPerView","spaceBetween","slidesPerGroup","slidesPerGroupSkip","slidesPerColumn"].forEach((function(e){var t=u[e];void 0!==t&&(u[e]="slidesPerView"!==e||"AUTO"!==t&&"auto"!==t?"slidesPerView"===e?parseFloat(t):parseInt(t,10):"auto")}));var c=u||e.originalParams,d=i.slidesPerColumn>1,p=c.slidesPerColumn>1,f=i.enabled;d&&!p?(s.removeClass(i.containerModifierClass+"multirow "+i.containerModifierClass+"multirow-column"),e.emitContainerClasses()):!d&&p&&(s.addClass(i.containerModifierClass+"multirow"),"column"===c.slidesPerColumnFill&&s.addClass(i.containerModifierClass+"multirow-column"),e.emitContainerClasses());var h=c.direction&&c.direction!==i.direction,m=i.loop&&(c.slidesPerView!==i.slidesPerView||h);h&&n&&e.changeDirection(),Po(e.params,c);var v=e.params.enabled;Po(e,{allowTouchMove:e.params.allowTouchMove,allowSlideNext:e.params.allowSlideNext,allowSlidePrev:e.params.allowSlidePrev}),f&&!v?e.disable():!f&&v&&e.enable(),e.currentBreakpoint=l,e.emit("_beforeBreakpoint",c),m&&n&&(e.loopDestroy(),e.loopCreate(),e.updateSlides(),e.slideTo(t-o+e.loopedSlides,0,!1)),e.emit("breakpoint",c)}}},getBreakpoint:function(e,t,n){if(void 0===t&&(t="window"),e&&("container"!==t||n)){var r=!1,o=po(),i="window"===t?o.innerWidth:n.clientWidth,s="window"===t?o.innerHeight:n.clientHeight,a=Object.keys(e).map((function(e){if("string"==typeof e&&0===e.indexOf("@")){var t=parseFloat(e.substr(1));return{value:s*t,point:e}}return{value:e,point:e}}));a.sort((function(e,t){return parseInt(e.value,10)-parseInt(t.value,10)}));for(var l=0;l1},{"multirow-column":i.slidesPerColumn>1&&"column"===i.slidesPerColumnFill},{android:l.android},{ios:l.ios},{"css-mode":i.cssMode}],t=i.containerModifierClass,n=[],e.forEach((function(e){"object"==typeof e?Object.keys(e).forEach((function(r){e[r]&&n.push(t+r)})):"string"==typeof e&&n.push(t+e)})),n);o.push.apply(o,c),a.addClass([].concat(o).join(" ")),r.emitContainerClasses()},removeClasses:function(){var e=this,t=e.$el,n=e.classNames;t.removeClass(n.join(" ")),e.emitContainerClasses()}};const ni={loadImage:function(e,t,n,r,o,i){var s,a=po();function l(){i&&i()}So(e).parent("picture")[0]||e.complete&&o?l():t?((s=new a.Image).onload=l,s.onerror=l,r&&(s.sizes=r),n&&(s.srcset=n),t&&(s.src=t)):l()},preloadImages:function(){var e=this;function t(){null!=e&&e&&!e.destroyed&&(void 0!==e.imagesLoaded&&(e.imagesLoaded+=1),e.imagesLoaded===e.imagesToLoad.length&&(e.params.updateOnImagesReady&&e.update(),e.emit("imagesReady")))}e.imagesToLoad=e.$el.find("img");for(var n=0;ni?"next":ro?"next":r0&&t.slidesOffsetBefore+t.spaceBetween*(e.slides.length-1)+e.slides[0].offsetWidth*e.slides.length;t.slidesOffsetBefore&&t.slidesOffsetAfter&&r?e.isLocked=r<=e.size:e.isLocked=1===e.snapGrid.length,e.allowSlideNext=!e.isLocked,e.allowSlidePrev=!e.isLocked,n!==e.isLocked&&e.emit(e.isLocked?"lock":"unlock"),n&&n!==e.isLocked&&(e.isEnd=!1,e.navigation&&e.navigation.update())}},classes:ti,images:ni},si={},ai=function(){function e(){for(var t,n,r=arguments.length,o=new Array(r),i=0;i1){var s=[];return So(n.el).each((function(t){var r=Po({},n,{el:t});s.push(new e(r))})),s}var a=this;a.__swiper__=!0,a.support=Io(),a.device=Lo({userAgent:n.userAgent}),a.browser=Ao(),a.eventsListeners={},a.eventsAnyListeners=[],void 0===a.modules&&(a.modules={}),Object.keys(a.modules).forEach((function(e){var t=a.modules[e];if(t.params){var r=Object.keys(t.params)[0],o=t.params[r];if("object"!=typeof o||null===o)return;if(!(r in n)||!("enabled"in o))return;!0===n[r]&&(n[r]={enabled:!0}),"object"!=typeof n[r]||"enabled"in n[r]||(n[r].enabled=!0),n[r]||(n[r]={enabled:!1})}}));var l,u,c=Po({},ri);return a.useParams(c),a.params=Po({},c,si,n),a.originalParams=Po({},a.params),a.passedParams=Po({},n),a.params&&a.params.on&&Object.keys(a.params.on).forEach((function(e){a.on(e,a.params.on[e])})),a.params&&a.params.onAny&&a.onAny(a.params.onAny),a.$=So,Po(a,{enabled:a.params.enabled,el:t,classNames:[],slides:So(),slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal:function(){return"horizontal"===a.params.direction},isVertical:function(){return"vertical"===a.params.direction},activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,allowSlideNext:a.params.allowSlideNext,allowSlidePrev:a.params.allowSlidePrev,touchEvents:(l=["touchstart","touchmove","touchend","touchcancel"],u=["mousedown","mousemove","mouseup"],a.support.pointerEvents&&(u=["pointerdown","pointermove","pointerup"]),a.touchEventsTouch={start:l[0],move:l[1],end:l[2],cancel:l[3]},a.touchEventsDesktop={start:u[0],move:u[1],end:u[2]},a.support.touch||!a.params.simulateTouch?a.touchEventsTouch:a.touchEventsDesktop),touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,formElements:"input, select, option, textarea, button, video, label",lastClickTime:Eo(),clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,isTouchEvent:void 0,startMoving:void 0},allowClick:!0,allowTouchMove:a.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),a.useModules(),a.emit("_swiper"),a.params.init&&a.init(),a}var t,n,r,o=e.prototype;return o.enable=function(){var e=this;e.enabled||(e.enabled=!0,e.params.grabCursor&&e.setGrabCursor(),e.emit("enable"))},o.disable=function(){var e=this;e.enabled&&(e.enabled=!1,e.params.grabCursor&&e.unsetGrabCursor(),e.emit("disable"))},o.setProgress=function(e,t){var n=this;e=Math.min(Math.max(e,0),1);var r=n.minTranslate(),o=(n.maxTranslate()-r)*e+r;n.translateTo(o,void 0===t?0:t),n.updateActiveIndex(),n.updateSlidesClasses()},o.emitContainerClasses=function(){var e=this;if(e.params._emitClasses&&e.el){var t=e.el.className.split(" ").filter((function(t){return 0===t.indexOf("swiper-container")||0===t.indexOf(e.params.containerModifierClass)}));e.emit("_containerClasses",t.join(" "))}},o.getSlideClasses=function(e){var t=this;return e.className.split(" ").filter((function(e){return 0===e.indexOf("swiper-slide")||0===e.indexOf(t.params.slideClass)})).join(" ")},o.emitSlidesClasses=function(){var e=this;if(e.params._emitClasses&&e.el){var t=[];e.slides.each((function(n){var r=e.getSlideClasses(n);t.push({slideEl:n,classNames:r}),e.emit("_slideClass",n,r)})),e.emit("_slideClasses",t)}},o.slidesPerViewDynamic=function(){var e=this,t=e.params,n=e.slides,r=e.slidesGrid,o=e.size,i=e.activeIndex,s=1;if(t.centeredSlides){for(var a,l=n[i].swiperSlideSize,u=i+1;uo&&(a=!0));for(var c=i-1;c>=0;c-=1)n[c]&&!a&&(s+=1,(l+=n[c].swiperSlideSize)>o&&(a=!0))}else for(var d=i+1;d1)&&e.isEnd&&!e.params.centeredSlides?e.slideTo(e.slides.length-1,0,!1,!0):e.slideTo(e.activeIndex,0,!1,!0))||r(),n.watchOverflow&&t!==e.snapGrid&&e.checkOverflow(),e.emit("update")}function r(){var t=e.rtlTranslate?-1*e.translate:e.translate,n=Math.min(Math.max(t,e.maxTranslate()),e.minTranslate());e.setTranslate(n),e.updateActiveIndex(),e.updateSlidesClasses()}},o.changeDirection=function(e,t){void 0===t&&(t=!0);var n=this,r=n.params.direction;return e||(e="horizontal"===r?"vertical":"horizontal"),e===r||"horizontal"!==e&&"vertical"!==e||(n.$el.removeClass(""+n.params.containerModifierClass+r).addClass(""+n.params.containerModifierClass+e),n.emitContainerClasses(),n.params.direction=e,n.slides.each((function(t){"vertical"===e?t.style.width="":t.style.height=""})),n.emit("changeDirection"),t&&n.update()),n},o.mount=function(e){var t=this;if(t.mounted)return!0;var n,r=So(e||t.params.el);return!!(e=r[0])&&(e.swiper=t,e&&e.shadowRoot&&e.shadowRoot.querySelector?(n=So(e.shadowRoot.querySelector("."+t.params.wrapperClass))).children=function(e){return r.children(e)}:n=r.children("."+t.params.wrapperClass),Po(t,{$el:r,el:e,$wrapperEl:n,wrapperEl:n[0],mounted:!0,rtl:"rtl"===e.dir.toLowerCase()||"rtl"===r.css("direction"),rtlTranslate:"horizontal"===t.params.direction&&("rtl"===e.dir.toLowerCase()||"rtl"===r.css("direction")),wrongRTL:"-webkit-box"===n.css("display")}),!0)},o.init=function(e){var t=this;return t.initialized||!1===t.mount(e)||(t.emit("beforeInit"),t.params.breakpoints&&t.setBreakpoint(),t.addClasses(),t.params.loop&&t.loopCreate(),t.updateSize(),t.updateSlides(),t.params.watchOverflow&&t.checkOverflow(),t.params.grabCursor&&t.enabled&&t.setGrabCursor(),t.params.preloadImages&&t.preloadImages(),t.params.loop?t.slideTo(t.params.initialSlide+t.loopedSlides,0,t.params.runCallbacksOnInit,!1,!0):t.slideTo(t.params.initialSlide,0,t.params.runCallbacksOnInit,!1,!0),t.attachEvents(),t.initialized=!0,t.emit("init"),t.emit("afterInit")),t},o.destroy=function(e,t){void 0===e&&(e=!0),void 0===t&&(t=!0);var n,r=this,o=r.params,i=r.$el,s=r.$wrapperEl,a=r.slides;return void 0===r.params||r.destroyed||(r.emit("beforeDestroy"),r.initialized=!1,r.detachEvents(),o.loop&&r.loopDestroy(),t&&(r.removeClasses(),i.removeAttr("style"),s.removeAttr("style"),a&&a.length&&a.removeClass([o.slideVisibleClass,o.slideActiveClass,o.slideNextClass,o.slidePrevClass].join(" ")).removeAttr("style").removeAttr("data-swiper-slide-index")),r.emit("destroy"),Object.keys(r.eventsListeners).forEach((function(e){r.off(e)})),!1!==e&&(r.$el[0].swiper=null,n=r,Object.keys(n).forEach((function(e){try{n[e]=null}catch(e){}try{delete n[e]}catch(e){}}))),r.destroyed=!0),null},e.extendDefaults=function(e){Po(si,e)},e.installModule=function(t){e.prototype.modules||(e.prototype.modules={});var n=t.name||Object.keys(e.prototype.modules).length+"_"+Eo();e.prototype.modules[n]=t},e.use=function(t){return Array.isArray(t)?(t.forEach((function(t){return e.installModule(t)})),e):(e.installModule(t),e)},t=e,r=[{key:"extendedDefaults",get:function(){return si}},{key:"defaults",get:function(){return ri}}],(n=null)&&oi(t.prototype,n),r&&oi(t,r),e}();function li(){return li=Object.assign||function(e){for(var t=1;t0&&(e.isBeginning?n(i,!0):n(i,!1),e.params.watchOverflow&&e.enabled&&i[e.isLocked?"addClass":"removeClass"](t.lockClass)),o&&o.length>0&&(e.isEnd?n(o,!0):n(o,!1),e.params.watchOverflow&&e.enabled&&o[e.isLocked?"addClass":"removeClass"](t.lockClass))}},onPrevClick:function(e){var t=this;e.preventDefault(),t.isBeginning&&!t.params.loop||t.slidePrev()},onNextClick:function(e){var t=this;e.preventDefault(),t.isEnd&&!t.params.loop||t.slideNext()},init:function(){var e,t,n=this,r=n.params.navigation;(r.nextEl||r.prevEl)&&(r.nextEl&&(e=So(r.nextEl),n.params.uniqueNavElements&&"string"==typeof r.nextEl&&e.length>1&&1===n.$el.find(r.nextEl).length&&(e=n.$el.find(r.nextEl))),r.prevEl&&(t=So(r.prevEl),n.params.uniqueNavElements&&"string"==typeof r.prevEl&&t.length>1&&1===n.$el.find(r.prevEl).length&&(t=n.$el.find(r.prevEl))),e&&e.length>0&&e.on("click",n.navigation.onNextClick),t&&t.length>0&&t.on("click",n.navigation.onPrevClick),Po(n.navigation,{$nextEl:e,nextEl:e&&e[0],$prevEl:t,prevEl:t&&t[0]}),n.enabled||(e&&e.addClass(r.lockClass),t&&t.addClass(r.lockClass)))},destroy:function(){var e=this,t=e.navigation,n=t.$nextEl,r=t.$prevEl;n&&n.length&&(n.off("click",e.navigation.onNextClick),n.removeClass(e.params.navigation.disabledClass)),r&&r.length&&(r.off("click",e.navigation.onPrevClick),r.removeClass(e.params.navigation.disabledClass))}};const ci={name:"navigation",params:{navigation:{nextEl:null,prevEl:null,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock"}},create:function(){jo(this,{navigation:li({},ui)})},on:{init:function(e){e.navigation.init(),e.navigation.update()},toEdge:function(e){e.navigation.update()},fromEdge:function(e){e.navigation.update()},destroy:function(e){e.navigation.destroy()},"enable disable":function(e){var t=e.navigation,n=t.$nextEl,r=t.$prevEl;n&&n[e.enabled?"removeClass":"addClass"](e.params.navigation.lockClass),r&&r[e.enabled?"removeClass":"addClass"](e.params.navigation.lockClass)},click:function(e,t){var n=e.navigation,r=n.$nextEl,o=n.$prevEl,i=t.target;if(e.params.navigation.hideOnClick&&!So(i).is(o)&&!So(i).is(r)){if(e.pagination&&e.params.pagination&&e.params.pagination.clickable&&(e.pagination.el===i||e.pagination.el.contains(i)))return;var s;r?s=r.hasClass(e.params.navigation.hiddenClass):o&&(s=o.hasClass(e.params.navigation.hiddenClass)),!0===s?e.emit("navigationShow"):e.emit("navigationHide"),r&&r.toggleClass(e.params.navigation.hiddenClass),o&&o.toggleClass(e.params.navigation.hiddenClass)}}}};function di(){return di=Object.assign||function(e){for(var t=1;t{const n=e.slides;for(let t=0;te.getAttribute("active")));e?this.select(e):!this.selectedTab&&this.tabs.length>0&&this.select(this.tabs[0])}select(e){e&&(this.tabs.forEach((t=>t.setAttribute("active",(t===e).toString()))),this.selectedTab=e,this.tabSelect.emit([{selectedTab:e}]))}get tabs(){return Array.from(this.el.querySelectorAll("pulumi-tab")||[])}labelFor(e){return e.getAttribute("label")||""}partsFor(e){const t=["tab"];return this.selectedTab===e&&t.push("active-tab"),t.join(" ")}render(){return Xe("div",null,Xe("ul",{part:"tabs",role:"tablist"},this.tabs.map((e=>Xe("li",{part:this.partsFor(e),role:"presentation"},Xe("a",{part:"anchor",onClick:this.select.bind(this,e),role:"tab","aria-selected":this.selectedTab===e},this.labelFor(e)))))),Xe("slot",null))}get el(){return this}static get style(){return":host {\n display: block;\n }\n ul {\n display: flex;\n width: 100%;\n align-items: center;\n margin: 0;\n padding: 0;\n width: auto;\n list-style-type: none;\n }\n li {\n display: flex;\n justify-content: center;\n }\n li a {\n cursor: pointer;\n display: flex;\n justify-content: center;\n flex: 1;\n text-align: center;\n white-space: nowrap;\n }"}},gi=class extends HTMLElement{constructor(){super(),this.__registerHost()}componentWillLoad(){this.parsedItems=JSON.parse(this.items),this.tabContent=this.parsedItems.map((e=>e.anchor)),this.selectTab(this.parsedItems[0])}selectTab(e){this.selection=e.anchor,document.getElementById(`${e.anchor}`).classList.remove("hidden");this.tabContent.filter((t=>t!==e.anchor)).forEach((e=>{document.getElementById(`${e}`).classList.add("hidden")}))}render(){return Xe(Ze,null,Xe("ul",null,this.parsedItems.map((e=>Xe("li",{class:this.selection===e.anchor?"active":""},Xe("a",{onClick:()=>this.selectTab(e)},e.label))))))}static get style(){return":host{display:block}"}},yi=class extends HTMLElement{constructor(){super(),this.__registerHost()}async show(){return new Promise((e=>{this.active=!0,setTimeout((()=>e()),100)}))}async hide(){return new Promise((e=>{this.active=!1,setTimeout((()=>e()),100)}))}componentDidLoad(){this.id=Cn(),this.active=!1;const e=this.el.querySelector(".tooltip-target");e.addEventListener("mouseover",(()=>this.active=!0)),e.addEventListener("mouseout",(()=>this.active=!1)),e.addEventListener("touchstart",(()=>this.active=!0)),e.addEventListener("touchend",(()=>this.active=!1))}render(){return Xe(Ze,null,Xe("span",{class:"tooltip-target "+(this.active?"active":""),"aria-labelledby":this.id},Xe("slot",null)),Xe("span",{id:this.id,class:"tooltip-content",role:"tooltip"},Xe("slot",{name:"content"})))}get el(){return this}},bi=class extends HTMLElement{constructor(){super(),this.__registerHost()}handleScroll(){this.setVisibility()}componentWillRender(){this.setVisibility()}render(){let e=`btn-scroll-top fas fa-chevron-up ${this.visible}`;return Xe("a",{class:e,title:"Scroll to top",href:"#"})}setVisibility(){this.visible=window.scrollY>2500?"visible":"hidden"}static get style(){return""}},wi=class extends HTMLElement{constructor(){super(),this.__registerHost()}handleRendered(e){this.storeUnsubscribe=Fn.mapStateToProps(this,(e=>{const{user:{id:t}}=e;return{userId:t}}))}disconnectedCallback(){this.storeUnsubscribe&&this.storeUnsubscribe()}render(){return Xe("span",{class:"signed-out"},Xe("slot",{name:"signed-in"}),Xe("slot",{name:"signed-out"}))}static get style(){return"pulumi-user-toggle{display:inline}pulumi-user-toggle [slot]{display:none}pulumi-user-toggle .signed-out [slot=signed-out]{display:inherit}pulumi-user-toggle .signed-in [slot=signed-in]{display:inherit}"}},Si=class extends HTMLElement{constructor(){super(),this.__registerHost(),this.defaultFormId=""}componentWillLoad(){this.parsedSessions=this.transformSessionData(JSON.parse(this.sessions));const e=En("date");if(e){const t=new Date(e);if(isNaN(t.getTime()))return;const n=this.parsedSessions.find((e=>{const n=new Date(e.key);return n.getFullYear()===t.getFullYear()&&n.getMonth()===t.getMonth()&&n.getDate()===t.getDate()}));n&&(this.defaultFormId=n.hubspotFormId)}}transformSessionData(e){return e.map((e=>{const t=new Date(e.datetime);return{hubspotFormId:e.hubspot_form_id,key:t.toLocaleString(void 0,{timeZoneName:"short",weekday:"short",year:"numeric",month:"long",day:"numeric",hour:"numeric",minute:"2-digit"})}}))}render(){return Xe("pulumi-multi-select-form",{items:this.parsedSessions,selectClass:this.selectClass,labelClass:this.labelClass,labelText:"Pick A Session",defaultFormId:this.defaultFormId})}static get style(){return":host{display:block}"}},_i=Kt(yn,[0,"event-session-registration-modal",{buttonClass:[1,"button-class"],buttonText:[1,"button-text"],modalTitle:[1,"modal-title"],eventSessions:[1,"event-sessions"],redirectUrl:[1,"redirect-url"],isModalOpen:[32],displayingContent:[32],selectedSessions:[32],skippedSessionSelection:[32],processingFormSubmissions:[32],formProcessor:[32],error:[32],submittedFormValues:[32]}]),Oi=Kt(Tn,[0,"header-cta",{buttonClass:[1,"button-class"],loading:[32],isLoggedIn:[32]}]),xi=Kt(Pn,[0,"home-slots",{leftItems:[1,"left-items"],centerItems:[1,"center-items"],rightItems:[1,"right-items"],imageClass:[1,"image-class"],columnOne:[32],columnOneRotator:[32],columnTwo:[32],columnTwoRotator:[32],columnThree:[32],columnThreeRotator:[32]}]),$i=Kt(Dn,[0,"pulumi-api-doc-filterable-nav",{baseDirectory:[1,"base-directory"],packageName:[1,"package-name"],isLoading:[32],parsedNodes:[32],currentlyRenderedNodes:[32],filterContent:[32]}]),Ci=Kt(Mn,[4,"pulumi-api-doc-nav-node",{node:[16],href:[1],depth:[2],isExpanded:[1028,"is-expanded"]}]),Ei=Kt(Nn,[0,"pulumi-api-doc-nav-tree",{nodes:[16],baseDirectory:[1,"base-directory"]}]),ki=Kt(Rn,[0,"pulumi-audio",{url:[1],playingText:[1,"playing-text"],pausedText:[1,"paused-text"],paused:[32],isLoading:[32],error:[32]}]),Ti=Kt(zn,[4,"pulumi-banner",{name:[1],dismissible:[4],visible:[1540]},[[4,"rendered","onRendered"]]]),Pi=Kt(Hn,[4,"pulumi-choosable",{type:[1025],value:[1025],values:[1025],mode:[1025],selection:[1025]},[[4,"rendered","onRendered"]]]),ji=Kt(Xn,[4,"pulumi-chooser",{type:[1025],options:[1025],selection:[1025],optionStyle:[1025,"option-style"],mode:[1025],currentOptions:[32]},[[4,"rendered","onRendered"]]]),Ii=Kt(Qn,[0,"pulumi-contact-us-form",{items:[1],selectClass:[1,"select-class"],labelClass:[1,"label-class"],parsedItems:[32],defaultFormId:[32]}]),Li=Kt(gr,[0,"pulumi-convert",{from:[1],endpoint:[1],examples:[1],theme:[1],sourceFiles:[32],converting:[32],convertible:[32],alertDismissed:[32]}]),Ai=Kt(yr,[0,"pulumi-date-countdown",{dateString:[1,"date-string"],textClass:[1,"text-class"],containerClass:[1,"container-class"],valueLabelClass:[1,"value-label-class"],countdownOverText:[1,"countdown-over-text"],countdownData:[32]}]),Di=Kt(br,[0,"pulumi-date-countdown-circles",{dateString:[1,"date-string"],containerClass:[1,"container-class"],valueLabelClass:[1,"value-label-class"],countdownData:[32]}]),Mi=Kt(wr,[1,"pulumi-datetime",{class:[1],timeonly:[4],date:[1025]}]),Ni=Kt(Sr,[0,"pulumi-developer-quotes",{quotes:[1]}]),Ri=Kt(_r,[4,"pulumi-docs-nav",null,[[0,"click","onClick"]]]),Fi=Kt(Or,[0,"pulumi-docs-toc"]),Bi=Kt(xr,[4,"pulumi-example"]),qi=Kt($r,[4,"pulumi-examples"]),zi=Kt(Cr,[1,"pulumi-filter-select",{filters:[32]},[[0,"optionChange","onOptionChange"]]]),Hi=Kt(Er,[1,"pulumi-filter-select-option",{label:[1],value:[1],selected:[4]}]),Wi=Kt(kr,[1,"pulumi-filter-select-option-group",{name:[1],expanded:[516]},[[4,"click","onDocumentClick"]]]),Ui=Kt(Tr,[0,"pulumi-greenhouse-jobs-list",{departments:[32],loading:[32]}]),Vi=Kt(Pr,[0,"pulumi-hubspot-form",{formId:[1,"form-id"],salesforceCampaignId:[1,"salesforce-campaign-id"],goToWebinarKey:[1,"go-to-webinar-key"],class:[1],isLoading:[32],didLoad:[32]}]),Gi=Kt(jr,[0,"pulumi-install",{os:[1025],tooltipContent:[32]}]),Ki=Kt(Ir,[0,"pulumi-multi-select-form",{items:[16],selectClass:[1,"select-class"],labelClass:[1,"label-class"],labelText:[1,"label-text"],defaultFormId:[1,"default-form-id"],selectedItem:[32],formSubmitted:[32]}]),Ji=Kt(Lr,[0,"pulumi-pricing-calculator",{duration:[32],resourceCount:[32],utilization:[32],deploymentsExpanded:[32],deploymentMinutes:[32]}]),Yi=Kt(Ar,[0,"pulumi-registry-list-search",{filterContent:[32]}]),Xi=Kt(Dr,[0,"pulumi-resource-links",{packageName:[1,"package-name"],moduleName:[1,"module-name"],resourceName:[1,"resource-name"],related:[32]}]),Qi=Kt(ro,[0,"pulumi-root"]),Zi=Kt(oo,[0,"pulumi-slot-machine",{imageClass:[1,"image-class"],leftImages:[1,"left-images"],centerImages:[1,"center-images"],rightImages:[1,"right-images"]}]),es=Kt(io,[4,"pulumi-swipeable"]),ts=Kt(hi,[4,"pulumi-swiper",{speed:[2],loop:[4],autoplay:[4],autoplayDelay:[2,"autoplay-delay"],navControls:[4,"nav-controls"],slides:[2],centeredSlides:[4,"centered-slides"],initialSlide:[2,"initial-slide"],direction:[1],enableMouseEvents:[4,"enable-mouse-events"],spaceBetween:[2,"space-between"],swiperID:[32],containerClass:[32],nextBtnClass:[32],previousBtnClass:[32]}]),ns=Kt(mi,[1,"pulumi-tab",{label:[1],active:[4]}]),rs=Kt(vi,[1,"pulumi-tabs",{selectedTab:[32]}]),os=Kt(gi,[0,"pulumi-tertiary-nav",{items:[1025],tabContent:[1040],selection:[1032]}]),is=Kt(yi,[4,"pulumi-tooltip",{id:[32],active:[32]}]),ss=Kt(bi,[0,"pulumi-top-button",{visible:[32]},[[9,"scroll","handleScroll"]]]),as=Kt(wi,[4,"pulumi-user-toggle",{userId:[1025,"user-id"]},[[4,"rendered","handleRendered"]]]),ls=Kt(Si,[0,"pulumi-webinar-form-select",{sessions:[1],selectClass:[1,"select-class"],labelClass:[1,"label-class"],parsedSessions:[32],defaultFormId:[32]}]);class us{constructor(e){this.serviceName=e,this.state=JSON.parse(window.localStorage.getItem(e)||"{}")}getState(){return this.state}getKey(e){return this.state[e]}updateKey(e,t){this.state=Object.assign(this.state,{[e]:t}),window.localStorage.setItem(this.serviceName,JSON.stringify(this.state))}}const cs=new us("navigation-toggle-state");function ds(e,t){cs.updateKey(e.id,t)}function ps(e){$(e).each((function(e,t){!function(e){$(".toggleButton-topLevel",e).click((function(){$(this).closest(".toggle-topLevel, .toggleVisible-topLevel")[0]==e&&($(e).is(".toggle")?($(e).addClass("toggleVisible").removeClass("toggle"),ds(e,"expanded")):($(e).addClass("toggle").removeClass("toggleVisible"),ds(e,"collapsed")))}))}(t)}))}function fs(e){$(e).each((function(e,t){!function(e){$(".toggleButton",e).click((function(){$(this).closest(".toggle, .toggleVisible")[0]==e&&($(e).is(".toggle")?$(e).addClass("toggleVisible").removeClass("toggle"):$(e).addClass("toggle").removeClass("toggleVisible"))}))}(t)}))}function hs(){$(".table-of-contents").hide();var e=$(".table-of-contents .content ul.table-of-contents-list");if(e){var t=!1,n=[];if($("h2, h3").each((function(){var r=$(this),o=r.attr("id"),i=r.text(),s=r.data("link-title"),a=r.prop("tagName").toLowerCase();if(o&&i){t=!0;var l=$("
  • "+(s||i)+"
  • ");e.append(l),n.push({element:r,listItem:l})}})),t){$(".table-of-contents").show();const e=()=>{var e;for(var t of n)!e&&t.element.offset().top>=window.scrollY&&(e=t),t.listItem.toggleClass("active",t===e)};$(window).on("scroll",(function(){e()})),e()}}}!function(){const e=e=>{const t=window.location.href,n=$(e).find("a").attr("href");return t.includes(n)};$(".toggle-topLevel, .toggleVisible-topLevel").each((function(t,n){"expanded"==cs.getKey(n.id)||e(n)?$(n).addClass("toggleVisible").removeClass("toggle"):"collapsed"==cs.getKey(n.id)&&$(n).addClass("toggle").removeClass("toggleVisible"),$(n).click((function(){const e=$(n).find(".folder-open"),t=$(n).find(".folder");e.length>0?e.addClass("folder").removeClass("folder-open"):t.length>0&&t.addClass("folder-open").removeClass("folder")}))})),$(".toggleVisible, .toggleVisible-topLevel").each((function(t,n){e(n)&&$("#left-nav").animate({scrollTop:$(n).offset().top-145},0)}))}(),function(e){const t=new IntersectionObserver((([t])=>{t.target.classList.toggle("is-pinned",t.intersectionRatio<1);const n=document.querySelector(".header-pinned"),r=document.querySelector(".hide-on-pinned"),o=document.querySelector(".header-hero-title");t.isIntersecting?(e(n).addClass("hidden"),e(n).removeClass("flex"),e(r).removeClass("hidden"),e(r).addClass("flex"),e(o).removeClass("hidden"),e(o).addClass("flex")):(e(n).removeClass("hidden"),e(n).addClass("flex"),e(r).addClass("hidden"),e(r).removeClass("flex"),e(o).addClass("hidden"),e(o).removeClass("flex"))}),{threshold:[1]}),n=document.querySelector(".header-container");if(n)t.observe(n);else{const e=document.querySelector(".top-nav-bar.registry");e&&t.observe(e)}fs(".toggle"),fs(".toggleVisible"),ps(".toggle-topLevel"),ps(".toggleVisible-topLevel"),hs(),e(".nav-header-toggle").click((function(){e(".nav-header-items").toggleClass("hidden")})),e(".blog-sidebar-toggle").click((function(){e(".blog-sidebar-content").toggleClass("hidden")})),e(".docs-sidebar-toggle").click((function(){e(".docs-sidebar-content").toggleClass("hidden")})),e("ul[data-shuffle='true']").each((function(t,n){var r=e(n).find("> li");r.each((function(t,n){e(n).css("order",Math.ceil(Math.random()*r.length))})),e(n).removeClass("invisible")})),e('#about-nav li[data-filter-name="who-we-are"]').addClass("active-about-nav-item"),e((function(){e("#about-nav li").click((function(){const t="active-about-nav-item";e(this).addClass(t);const n=e(this).data("filter-name");["who-we-are","what-we-believe","community","history","awards","newsroom","join-us"].filter((e=>e!==n)).forEach((n=>{e(`#about-nav li[data-filter-name="${n}"]`).removeClass(t)}))}))})),e("dl.resources-properties dt.property-required.property-replacement").removeAttr("title").find(".property-indicator").replaceWith('
    This property is required.
    Changes to this property will trigger replacement.
    '),e("dl.resources-properties dt.property-required:not(.property-replacement)").removeAttr("title").find(".property-indicator").replaceWith(' This property is required.'),e("dl.resources-properties dt.property-replacement:not(.property-required)").removeAttr("title").find(".property-indicator").replaceWith(' Changes to this property will trigger replacement.')}(jQuery),function(e,t){"ontouchstart"in e||(t(".nav-header-items li a").mouseenter((function(e){var n=t(e.target).data("submenu");t(".submenu-item").hide(),t(".submenu-item-"+n).show()})),t(".submenu").mouseleave((function(e){e.relatedTarget!==t("nav.nav-main").get(0)&&t(".submenu-item").hide()}))),function(){let e=!1,n=!1;t("#why-pulumi-menu-label").click((function(){t("#mobile-dropdown").scroll(),e?t("#mobile-dropdown").animate({scrollTop:top},300):t("#mobile-dropdown").animate({scrollTop:t("#why-pulumi-mobile-menu").position().top-115},300),e=!e})),t("#learn-menu-label").click((function(){t("#mobile-dropdown").scroll(),n?t("#mobile-dropdown").animate({scrollTop:top},300):t("#mobile-dropdown").animate({scrollTop:t("#learn-mobile-menu").position().top-115},300),n=!n}))}();const n=new us("banner-state"),r=t("#dismissable-banner");"true"!==n.getKey("dismissed")?t(r).css({display:"block"}):t(r).css({display:"none"}),t("#dismiss-banner").on("click",(function(e){e.preventDefault(),t(r).css({display:"none"}),n.updateKey("dismissed","true")}))}(document,jQuery);n(28);function ms(e){for(var t=window.location.search.substring(1).split("&"),n=0;n0&&($("div,span").each((function(n,r){var o=vs(r);for(n=0;n0&&t(o[0])}}$(document).on("rendered",(function(){var e;["language","os","cloud","k8s-language","input-kind"].forEach((function(e){var t=ms(e);t&&gs(e,t)})),_s("language",ys,"typescript"),-1!==navigator.appVersion.indexOf("Win")?e="windows":-1!==navigator.appVersion.indexOf("Mac")?e="macos":-1!==navigator.appVersion.indexOf("Linux")&&(e="linux"),_s("os",bs,e),_s("cloud",ws,"aws"),_s("k8s-language",Ss,"typescript")}));n(245),n(21),n(931),n(161);function Os(e,t,n,r){return new(n||(n=Promise))((function(o,i){function s(e){try{l(r.next(e))}catch(e){i(e)}}function a(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}l((r=r.apply(e,t||[])).next())}))}function xs(e,t){var n,r,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,r=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!((o=(o=s.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]-1&&(r.checked=!0):r.checked=!0;var o=document.createElement("label");return o.innerText=e+"s",o.className="cursor-pointer",o.setAttribute("for",r.id),n.appendChild(r),n.appendChild(o),n}function t(){for(var e=$("input[type='checkbox']"),t=[],r=0;r-1)return!0}return!1}var r=$(".event-tags span"),o=$("#eventFilter");if(r.length&&o.length){for(var i=[],s=0;s-1?(Cs('UA "Edge" => assuming success'),[2,!0]):Bs(document.body,e)?(Cs("copyUsingTempSelection worked"),[2,!0]):function(e){var t=document.createElement("div");t.setAttribute("style","-webkit-user-select: text !important"),t.textContent="temporary element",document.body.appendChild(t);var n=Bs(t,e);return document.body.removeChild(t),n}(e)?(Cs("copyUsingTempElem worked"),[2,!0]):function(e){Cs("copyTextUsingDOM");var t=document.createElement("div");t.setAttribute("style","-webkit-user-select: text !important");var n=t;t.attachShadow&&(Cs("Using shadow DOM."),n=t.attachShadow({mode:"open"}));var r=document.createElement("span");r.innerText=e,n.appendChild(r),document.body.appendChild(t),qs(r);var o=document.execCommand("copy");return zs(),document.body.removeChild(t),o}(e["text/plain"])?(Cs("copyTextUsingDOM worked"),[2,!0]):[2,!1]}))}))}!function(){function e(e,t){var n;for(var r in void 0===t&&(t={}),this.types=Object.keys(e),this._items={},e){var o=e[r];this._items[r]="string"==typeof o?Ws(r,o):o}this.presentationStyle=null!==(n=null==t?void 0:t.presentationStyle)&&void 0!==n?n:"unspecified"}e.prototype.getType=function(e){return Os(this,void 0,void 0,(function(){return xs(this,(function(t){return[2,this._items[e]]}))}))}}();function Ws(e,t){return new Blob([t],{type:e})}function Us(e){var t="Copy";e.append('
    Copy
    ').on("click","button.copy-button",(function(){var e=$(this),n=e.parent().parent().parent().siblings("pre").children("code"),r=function(e,t){if(!t)return"";var n,r,o,i,s;switch(t=(t=t.replace("\r\n","\n")).trim(),e){case"bash":case"sh":case"shell":case"zsh":n="$ ",r="#",o=/\s+#.*$/m,i="\\",s=" && ";break;case"bat":case"batch":case"batchfile":n="> ",r="::",o=/\s+::.*$/m,i="^",s=" && ";break;case"powershell":case"posh":case"pwsh":n="> ",r="#",o=/\s+#.*$/m,i="`",s="; "}if(n){for(var a=[],l=t.split("\n"),u=!1,c=0;c0&&(t=a.join(s))}return-1!==navigator.appVersion.indexOf("Win")&&(t=t.replace("\n","\r\n")),t}(n.attr("data-lang"),n.text());r&&r.length>0&&function(e){Os(this,void 0,void 0,(function(){return xs(this,(function(t){if(Ls)return Cs("Using `navigator.clipboard.writeText()`."),[2,Ls(e)];if(!Hs(function(e){var t={};return t["text/plain"]=e,t}(e)))throw new Error("writeText() failed");return[2]}))}))}(r),e.blur();var o=e.closest("pulumi-tooltip"),i=o.find("[slot='content']"),s=o.get(0);i.text("Copied!"),s.show().then((()=>{setTimeout((function(){s.hide().then((()=>i.text(t)))}),1e3)}))}))}$((function(){Us($(":not(.no-copy) > div.highlight"))}));n(506),n(498),n(490),n(366),n(756),n(399),n(40),n(140);var Vs=n(290),Gs=n.n(Vs);function Ks(e){return Ks="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ks(e)}function Js(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ys(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function la(e){return function(e){if(Array.isArray(e))return ua(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return ua(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ua(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ua(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Da(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ma(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:20,n=[],r=0;r=3||2===n&&r>=4||1===n&&r>=10);function i(t,n,r){if(o&&void 0!==r){var i=r[0].__autocomplete_algoliaCredentials,s={"X-Algolia-Application-Id":i.appId,"X-Algolia-API-Key":i.apiKey};e.apply(void 0,[t].concat(Ia(n),[{headers:s}]))}else e.apply(void 0,[t].concat(Ia(n)))}return{init:function(t,n){e("init",{appId:t,apiKey:n})},setUserToken:function(t){e("setUserToken",t)},clickedObjectIDsAfterSearch:function(){for(var e=arguments.length,t=new Array(e),n=0;n0&&i("clickedObjectIDsAfterSearch",Fa(t),t[0].items)},clickedObjectIDs:function(){for(var e=arguments.length,t=new Array(e),n=0;n0&&i("clickedObjectIDs",Fa(t),t[0].items)},clickedFilters:function(){for(var t=arguments.length,n=new Array(t),r=0;r0&&e.apply(void 0,["clickedFilters"].concat(n))},convertedObjectIDsAfterSearch:function(){for(var e=arguments.length,t=new Array(e),n=0;n0&&i("convertedObjectIDsAfterSearch",Fa(t),t[0].items)},convertedObjectIDs:function(){for(var e=arguments.length,t=new Array(e),n=0;n0&&i("convertedObjectIDs",Fa(t),t[0].items)},convertedFilters:function(){for(var t=arguments.length,n=new Array(t),r=0;r0&&e.apply(void 0,["convertedFilters"].concat(n))},viewedObjectIDs:function(){for(var e=arguments.length,t=new Array(e),n=0;n0&&t.reduce((function(e,t){var n=t.items,r=Aa(t,Pa);return[].concat(Ia(e),Ia(Ra(Ma(Ma({},r),{},{objectIDs:(null==n?void 0:n.map((function(e){return e.objectID})))||r.objectIDs})).map((function(e){return{items:n,payload:e}}))))}),[]).forEach((function(e){var t=e.items;return i("viewedObjectIDs",[e.payload],t)}))},viewedFilters:function(){for(var t=arguments.length,n=new Array(t),r=0;r0&&e.apply(void 0,["viewedFilters"].concat(n))}}}function qa(e){var t=e.items.reduce((function(e,t){var n;return e[t.__autocomplete_indexName]=(null!==(n=e[t.__autocomplete_indexName])&&void 0!==n?n:[]).concat(t),e}),{});return Object.keys(t).map((function(e){return{index:e,items:t[e],algoliaSource:["autocomplete"]}}))}function za(e){return e.objectID&&e.__autocomplete_indexName&&e.__autocomplete_queryID}function Ha(e){return Ha="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ha(e)}function Wa(e){return function(e){if(Array.isArray(e))return Ua(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Ua(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ua(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ua(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&Xa({onItemsChange:r,items:n,insights:a,state:t}))}}),0);return{name:"aa.algoliaInsightsPlugin",subscribe:function(e){var t=e.setContext,n=e.onSelect,r=e.onActive;s("addAlgoliaAgent","insights-plugin"),t({algoliaInsightsPlugin:{__algoliaSearchParameters:{clickAnalytics:!0},insights:a}}),n((function(e){var t=e.item,n=e.state,r=e.event;za(t)&&o({state:n,event:r,insights:a,item:t,insightsEvents:[Ga({eventName:"Item Selected"},Ca({item:t,items:l.current}))]})})),r((function(e){var t=e.item,n=e.state,r=e.event;za(t)&&i({state:n,event:r,insights:a,item:t,insightsEvents:[Ga({eventName:"Item Active"},Ca({item:t,items:l.current}))]})}))},onStateChange:function(e){var t=e.state;u({state:t})},__autocomplete_pluginOptions:e}}function Za(e){return Za="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Za(e)}function el(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function tl(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==Za(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Za(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Za(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function nl(e,t,n){var r,o=t.initialState;return{getState:function(){return o},dispatch:function(r,i){var s=function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n0},reshape:function(e){return e.sources}},e),{},{id:null!==(n=e.id)&&void 0!==n?n:cl(),plugins:o,initialState:bl({activeItemId:null,query:"",completion:null,collections:[],isOpen:!1,status:"idle",context:{}},e.initialState),onStateChange:function(t){var n;null===(n=e.onStateChange)||void 0===n||n.call(e,t),o.forEach((function(e){var n;return null===(n=e.onStateChange)||void 0===n?void 0:n.call(e,t)}))},onSubmit:function(t){var n;null===(n=e.onSubmit)||void 0===n||n.call(e,t),o.forEach((function(e){var n;return null===(n=e.onSubmit)||void 0===n?void 0:n.call(e,t)}))},onReset:function(t){var n;null===(n=e.onReset)||void 0===n||n.call(e,t),o.forEach((function(e){var n;return null===(n=e.onReset)||void 0===n?void 0:n.call(e,t)}))},getSources:function(n){return Promise.all([].concat(vl(o.map((function(e){return e.getSources}))),[e.getSources]).filter(Boolean).map((function(e){return function(e,t){var n=[];return Promise.resolve(e(t)).then((function(e){return Array.isArray(e),Promise.all(e.filter((function(e){return Boolean(e)})).map((function(e){if(e.sourceId,n.includes(e.sourceId))throw new Error("[Autocomplete] The `sourceId` ".concat(JSON.stringify(e.sourceId)," is not unique."));n.push(e.sourceId);var t={getItemInputValue:function(e){return e.state.query},getItemUrl:function(){},onSelect:function(e){(0,e.setIsOpen)(!1)},onActive:$a,onResolve:$a};Object.keys(t).forEach((function(e){t[e].__default=!0}));var r=pl(pl({},t),e);return Promise.resolve(r)})))}))}(e,n)}))).then((function(e){return rl(e)})).then((function(e){return e.map((function(e){return bl(bl({},e),{},{onSelect:function(n){e.onSelect(n),t.forEach((function(e){var t;return null===(t=e.onSelect)||void 0===t?void 0:t.call(e,n)}))},onActive:function(n){e.onActive(n),t.forEach((function(e){var t;return null===(t=e.onActive)||void 0===t?void 0:t.call(e,n)}))},onResolve:function(n){e.onResolve(n),t.forEach((function(e){var t;return null===(t=e.onResolve)||void 0===t?void 0:t.call(e,n)}))}})}))}))},navigator:bl({navigate:function(e){var t=e.itemUrl;r.location.assign(t)},navigateNewTab:function(e){var t=e.itemUrl,n=r.open(t,"_blank","noopener");null==n||n.focus()},navigateNewWindow:function(e){var t=e.itemUrl;r.open(t,"_blank","noopener")}},e.navigator)})}function _l(e){return _l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_l(e)}function Ol(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function xl(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var Xl,Ql,Zl,eu=null,tu=(Xl=-1,Ql=-1,Zl=void 0,function(e){var t=++Xl;return Promise.resolve(e).then((function(e){return Zl&&t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var uu=/((gt|sm)-|galaxy nexus)|samsung[- ]/i;function cu(e){return cu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},cu(e)}var du=["props","refresh","store"],pu=["inputElement","formElement","panelElement"],fu=["inputElement"],hu=["inputElement","maxLength"],mu=["sourceIndex"],vu=["sourceIndex"],gu=["item","source","sourceIndex"];function yu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function bu(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function _u(e){var t=e.props,n=e.refresh,r=e.store,o=Su(e,du),i=function(e,t){return void 0!==t?"".concat(e,"-").concat(t):e};return{getEnvironmentProps:function(e){var n=e.inputElement,o=e.formElement,i=e.panelElement;function s(e){!r.getState().isOpen&&r.pendingRequests.isEmpty()||e.target===n||!1===[o,i].some((function(t){return n=t,r=e.target,n===r||n.contains(r);var n,r}))&&(r.dispatch("blur",null),t.debug||r.pendingRequests.cancelAll())}return bu({onTouchStart:s,onMouseDown:s,onTouchMove:function(e){!1!==r.getState().isOpen&&n===t.environment.document.activeElement&&e.target!==n&&n.blur()}},Su(e,pu))},getRootProps:function(e){return bu({role:"combobox","aria-expanded":r.getState().isOpen,"aria-haspopup":"listbox","aria-owns":r.getState().isOpen?"".concat(t.id,"-list"):void 0,"aria-labelledby":"".concat(t.id,"-label")},e)},getFormProps:function(e){e.inputElement;return bu({action:"",noValidate:!0,role:"search",onSubmit:function(i){var s;i.preventDefault(),t.onSubmit(bu({event:i,refresh:n,state:r.getState()},o)),r.dispatch("submit",null),null===(s=e.inputElement)||void 0===s||s.blur()},onReset:function(i){var s;i.preventDefault(),t.onReset(bu({event:i,refresh:n,state:r.getState()},o)),r.dispatch("reset",null),null===(s=e.inputElement)||void 0===s||s.focus()}},Su(e,fu))},getLabelProps:function(e){var n=e||{},r=n.sourceIndex,o=Su(n,mu);return bu({htmlFor:"".concat(i(t.id,r),"-input"),id:"".concat(i(t.id,r),"-label")},o)},getInputProps:function(e){var i;function s(e){(t.openOnFocus||Boolean(r.getState().query))&&nu(bu({event:e,props:t,query:r.getState().completion||r.getState().query,refresh:n,store:r},o)),r.dispatch("focus",null)}var a=e||{},l=(a.inputElement,a.maxLength),u=void 0===l?512:l,c=Su(a,hu),d=Wl(r.getState()),p=function(e){return Boolean(e&&e.match(uu))}((null===(i=t.environment.navigator)||void 0===i?void 0:i.userAgent)||""),f=null!=d&&d.itemUrl&&!p?"go":"search";return bu({"aria-autocomplete":"both","aria-activedescendant":r.getState().isOpen&&null!==r.getState().activeItemId?"".concat(t.id,"-item-").concat(r.getState().activeItemId):void 0,"aria-controls":r.getState().isOpen?"".concat(t.id,"-list"):void 0,"aria-labelledby":"".concat(t.id,"-label"),value:r.getState().completion||r.getState().query,id:"".concat(t.id,"-input"),autoComplete:"off",autoCorrect:"off",autoCapitalize:"off",enterKeyHint:f,spellCheck:"false",autoFocus:t.autoFocus,placeholder:t.placeholder,maxLength:u,type:"search",onChange:function(e){nu(bu({event:e,props:t,query:e.currentTarget.value.slice(0,u),refresh:n,store:r},o))},onKeyDown:function(e){!function(e){var t=e.event,n=e.props,r=e.refresh,o=e.store,i=lu(e,ou);if("ArrowUp"===t.key||"ArrowDown"===t.key){var s=function(){var e=n.environment.document.getElementById("".concat(n.id,"-item-").concat(o.getState().activeItemId));e&&(e.scrollIntoViewIfNeeded?e.scrollIntoViewIfNeeded(!1):e.scrollIntoView(!1))},a=function(){var e=Wl(o.getState());if(null!==o.getState().activeItemId&&e){var n=e.item,s=e.itemInputValue,a=e.itemUrl,l=e.source;l.onActive(su({event:t,item:n,itemInputValue:s,itemUrl:a,refresh:r,source:l,state:o.getState()},i))}};t.preventDefault(),!1===o.getState().isOpen&&(n.openOnFocus||Boolean(o.getState().query))?nu(su({event:t,props:n,query:o.getState().query,refresh:r,store:o},i)).then((function(){o.dispatch(t.key,{nextActiveItemId:n.defaultActiveItemId}),a(),setTimeout(s,0)})):(o.dispatch(t.key,{}),a(),s())}else if("Escape"===t.key)t.preventDefault(),o.dispatch(t.key,null),o.pendingRequests.cancelAll();else if("Tab"===t.key)o.dispatch("blur",null),o.pendingRequests.cancelAll();else if("Enter"===t.key){if(null===o.getState().activeItemId||o.getState().collections.every((function(e){return 0===e.items.length})))return void(n.debug||o.pendingRequests.cancelAll());t.preventDefault();var l=Wl(o.getState()),u=l.item,c=l.itemInputValue,d=l.itemUrl,p=l.source;if(t.metaKey||t.ctrlKey)void 0!==d&&(p.onSelect(su({event:t,item:u,itemInputValue:c,itemUrl:d,refresh:r,source:p,state:o.getState()},i)),n.navigator.navigateNewTab({itemUrl:d,item:u,state:o.getState()}));else if(t.shiftKey)void 0!==d&&(p.onSelect(su({event:t,item:u,itemInputValue:c,itemUrl:d,refresh:r,source:p,state:o.getState()},i)),n.navigator.navigateNewWindow({itemUrl:d,item:u,state:o.getState()}));else if(t.altKey);else{if(void 0!==d)return p.onSelect(su({event:t,item:u,itemInputValue:c,itemUrl:d,refresh:r,source:p,state:o.getState()},i)),void n.navigator.navigate({itemUrl:d,item:u,state:o.getState()});nu(su({event:t,nextState:{isOpen:!1},props:n,query:c,refresh:r,store:o},i)).then((function(){p.onSelect(su({event:t,item:u,itemInputValue:c,itemUrl:d,refresh:r,source:p,state:o.getState()},i))}))}}}(bu({event:e,props:t,refresh:n,store:r},o))},onFocus:s,onBlur:$a,onClick:function(n){e.inputElement!==t.environment.document.activeElement||r.getState().isOpen||s(n)}},c)},getPanelProps:function(e){return bu({onMouseDown:function(e){e.preventDefault()},onMouseLeave:function(){r.dispatch("mouseleave",null)}},e)},getListProps:function(e){var n=e||{},r=n.sourceIndex,o=Su(n,vu);return bu({role:"listbox","aria-labelledby":"".concat(i(t.id,r),"-label"),id:"".concat(i(t.id,r),"-list")},o)},getItemProps:function(e){var s=e.item,a=e.source,l=e.sourceIndex,u=Su(e,gu);return bu({id:"".concat(i(t.id,l),"-item-").concat(s.__autocomplete_id),role:"option","aria-selected":r.getState().activeItemId===s.__autocomplete_id,onMouseMove:function(e){if(s.__autocomplete_id!==r.getState().activeItemId){r.dispatch("mousemove",s.__autocomplete_id);var t=Wl(r.getState());if(null!==r.getState().activeItemId&&t){var i=t.item,a=t.itemInputValue,l=t.itemUrl,u=t.source;u.onActive(bu({event:e,item:i,itemInputValue:a,itemUrl:l,refresh:n,source:u,state:r.getState()},o))}}},onMouseDown:function(e){e.preventDefault()},onClick:function(e){var i=a.getItemInputValue({item:s,state:r.getState()}),l=a.getItemUrl({item:s,state:r.getState()});(l?Promise.resolve():nu(bu({event:e,nextState:{isOpen:!1},props:t,query:i,refresh:n,store:r},o))).then((function(){a.onSelect(bu({event:e,item:s,itemInputValue:i,itemUrl:l,refresh:n,source:a,state:r.getState()},o))}))}},u)}}}function Ou(e){return Ou="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ou(e)}function xu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function $u(e){for(var t=1;t=n?null===r?null:0:o}function Pu(e){return Pu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Pu(e)}function ju(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Iu(e){for(var t=1;t=5&&((o||!e&&5===r)&&(s.push(r,0,o,n),r=6),e&&(s.push(r,e,0,n),r=6)),o=""},l=0;l"===t?(r=1,o=""):o=t+o[0]:i?t===i?i="":o+=t:'"'===t||"'"===t?i=t:">"===t?(a(),r=1):r&&("="===t?(r=5,n=o,o=""):"/"===t&&(r<5||">"===e[l][u+1])?(a(),3===r&&(s=s[0]),r=s,(s=s[0]).push(2,0,r),r=0):" "===t||"\t"===t||"\n"===t||"\r"===t?(a(),r=2):o+=t),3===r&&"!--"===o&&(r=4,s=s[0])}return a(),s}(e)),t),arguments,[])).length>1?t:t[0]}var Hu=function(e){var t=e.environment,n=t.document.createElementNS("http://www.w3.org/2000/svg","svg");n.setAttribute("class","aa-SubmitIcon"),n.setAttribute("viewBox","0 0 24 24"),n.setAttribute("width","20"),n.setAttribute("height","20"),n.setAttribute("fill","currentColor");var r=t.document.createElementNS("http://www.w3.org/2000/svg","path");return r.setAttribute("d","M16.041 15.856c-0.034 0.026-0.067 0.055-0.099 0.087s-0.060 0.064-0.087 0.099c-1.258 1.213-2.969 1.958-4.855 1.958-1.933 0-3.682-0.782-4.95-2.050s-2.050-3.017-2.050-4.95 0.782-3.682 2.050-4.95 3.017-2.050 4.95-2.050 3.682 0.782 4.95 2.050 2.050 3.017 2.050 4.95c0 1.886-0.745 3.597-1.959 4.856zM21.707 20.293l-3.675-3.675c1.231-1.54 1.968-3.493 1.968-5.618 0-2.485-1.008-4.736-2.636-6.364s-3.879-2.636-6.364-2.636-4.736 1.008-6.364 2.636-2.636 3.879-2.636 6.364 1.008 4.736 2.636 6.364 3.879 2.636 6.364 2.636c2.125 0 4.078-0.737 5.618-1.968l3.675 3.675c0.391 0.391 1.024 0.391 1.414 0s0.391-1.024 0-1.414z"),n.appendChild(r),n},Wu=function(e){var t=e.environment,n=t.document.createElementNS("http://www.w3.org/2000/svg","svg");n.setAttribute("class","aa-ClearIcon"),n.setAttribute("viewBox","0 0 24 24"),n.setAttribute("width","18"),n.setAttribute("height","18"),n.setAttribute("fill","currentColor");var r=t.document.createElementNS("http://www.w3.org/2000/svg","path");return r.setAttribute("d","M5.293 6.707l5.293 5.293-5.293 5.293c-0.391 0.391-0.391 1.024 0 1.414s1.024 0.391 1.414 0l5.293-5.293 5.293 5.293c0.391 0.391 1.024 0.391 1.414 0s0.391-1.024 0-1.414l-5.293-5.293 5.293-5.293c0.391-0.391 0.391-1.024 0-1.414s-1.024-0.391-1.414 0l-5.293 5.293-5.293-5.293c-0.391-0.391-1.024-0.391-1.414 0s-0.391 1.024 0 1.414z"),n.appendChild(r),n},Uu=function(e){var t=e.environment.document.createElementNS("http://www.w3.org/2000/svg","svg");return t.setAttribute("class","aa-LoadingIcon"),t.setAttribute("viewBox","0 0 100 100"),t.setAttribute("width","20"),t.setAttribute("height","20"),t.innerHTML='\n \n',t},Vu=["ontouchstart","ontouchend","ontouchmove","ontouchcancel"];function Gu(e,t,n){e[t]=null===n?"":"number"!=typeof n?n:n+"px"}function Ku(e){this._listeners[e.type](e)}function Ju(e,t,n){var r,o,i=e[t];if("style"===t)if("string"==typeof n)e.style=n;else if(null===n)e.style="";else for(t in n)i&&n[t]===i[t]||Gu(e.style,t,n[t]);else"o"===t[0]&&"n"===t[1]?(r=t!==(t=t.replace(/Capture$/,"")),((o=t.toLowerCase())in e||Vu.includes(o))&&(t=o),t=t.slice(2),e._listeners||(e._listeners={}),e._listeners[t]=n,n?i||e.addEventListener(t,Ku,r):e.removeEventListener(t,Ku,r)):"list"!==t&&"tagName"!==t&&"form"!==t&&"type"!==t&&"size"!==t&&"download"!==t&&"href"!==t&&t in e?e[t]=null==n?"":n:"function"!=typeof n&&"dangerouslySetInnerHTML"!==t&&(null==n||!1===n&&!/^ar/.test(t)?e.removeAttribute(t):e.setAttribute(t,n))}function Yu(e){return"onChange"===e?"onInput":e}function Xu(e,t){for(var n in t)Ju(e,Yu(n),t[n])}function Qu(e,t){for(var n in t)"o"===n[0]&&"n"===n[1]||Ju(e,Yu(n),t[n])}var Zu=["children"];function ec(e){return function(e){if(Array.isArray(e))return tc(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return tc(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return tc(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function tc(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function rc(e){return function(t,n){var r=n.children,o=void 0===r?[]:r,i=nc(n,Zu),s=e.document.createElement(t);return Xu(s,i),s.append.apply(s,ec(o)),s}}function oc(e){return oc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},oc(e)}var ic=["autocompleteScopeApi","environment","classNames","getInputProps","getInputPropsCore","isDetached","state"];function sc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ac(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function cc(e){return cc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},cc(e)}function dc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function pc(e){for(var t=1;t2&&(s.children=arguments.length>3?mc.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(i in e.defaultProps)void 0===s[i]&&(s[i]=e.defaultProps[i]);return kc(e,s,r,o,null)}function kc(e,t,n,r,o){var i={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==o?++gc:o};return null==o&&null!=vc.vnode&&vc.vnode(i),i}function Tc(e){return e.children}function Pc(e,t){this.props=e,this.context=t}function jc(e,t){if(null==t)return e.__?jc(e.__,e.__.__k.indexOf(e)+1):null;for(var n;tt&&yc.sort(Sc));Ac.__r=0}function Dc(e,t,n,r,o,i,s,a,l,u){var c,d,p,f,h,m,v,g=r&&r.__k||Oc,y=g.length;for(n.__k=[],c=0;c0?kc(f.type,f.props,f.key,f.ref?f.ref:null,f.__v):f)){if(f.__=n,f.__b=n.__b+1,null===(p=g[c])||p&&f.key==p.key&&f.type===p.type)g[c]=void 0;else for(d=0;d=0;t--)if((n=e.__k[t])&&(r=Rc(n)))return r;return null}function Fc(e,t,n){"-"===t[0]?e.setProperty(t,null==n?"":n):e[t]=null==n?"":"number"!=typeof n||xc.test(t)?n:n+"px"}function Bc(e,t,n,r,o){var i;e:if("style"===t)if("string"==typeof n)e.style.cssText=n;else{if("string"==typeof r&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||Fc(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||Fc(e.style,t,n[t])}else if("o"===t[0]&&"n"===t[1])i=t!==(t=t.replace(/Capture$/,"")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=n,n?r||e.addEventListener(t,i?zc:qc,i):e.removeEventListener(t,i?zc:qc,i);else if("dangerouslySetInnerHTML"!==t){if(o)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!==t&&"height"!==t&&"href"!==t&&"list"!==t&&"form"!==t&&"tabIndex"!==t&&"download"!==t&&t in e)try{e[t]=null==n?"":n;break e}catch(e){}"function"==typeof n||(null==n||!1===n&&"-"!==t[4]?e.removeAttribute(t):e.setAttribute(t,n))}}function qc(e){return this.l[e.type+!1](vc.event?vc.event(e):e)}function zc(e){return this.l[e.type+!0](vc.event?vc.event(e):e)}function Hc(e,t,n,r,o,i,s,a,l){var u,c,d,p,f,h,m,v,g,y,b,w,S,_,O,x=t.type;if(void 0!==t.constructor)return null;null!=n.__h&&(l=n.__h,a=t.__e=n.__e,t.__h=null,i=[a]),(u=vc.__b)&&u(t);try{e:if("function"==typeof x){if(v=t.props,g=(u=x.contextType)&&r[u.__c],y=u?g?g.props.value:u.__:r,n.__c?m=(c=t.__c=n.__c).__=c.__E:("prototype"in x&&x.prototype.render?t.__c=c=new x(v,y):(t.__c=c=new Pc(v,y),c.constructor=x,c.render=Gc),g&&g.sub(c),c.props=v,c.state||(c.state={}),c.context=y,c.__n=r,d=c.__d=!0,c.__h=[],c._sb=[]),null==c.__s&&(c.__s=c.state),null!=x.getDerivedStateFromProps&&(c.__s==c.state&&(c.__s=$c({},c.__s)),$c(c.__s,x.getDerivedStateFromProps(v,c.__s))),p=c.props,f=c.state,c.__v=t,d)null==x.getDerivedStateFromProps&&null!=c.componentWillMount&&c.componentWillMount(),null!=c.componentDidMount&&c.__h.push(c.componentDidMount);else{if(null==x.getDerivedStateFromProps&&v!==p&&null!=c.componentWillReceiveProps&&c.componentWillReceiveProps(v,y),!c.__e&&null!=c.shouldComponentUpdate&&!1===c.shouldComponentUpdate(v,c.__s,y)||t.__v===n.__v){for(t.__v!==n.__v&&(c.props=v,c.state=c.__s,c.__d=!1),c.__e=!1,t.__e=n.__e,t.__k=n.__k,t.__k.forEach((function(e){e&&(e.__=t)})),b=0;b0&&void 0!==arguments[0]?arguments[0]:[],t=e;return{get:function(){return t},add:function(e){var n=t[t.length-1];(null==n?void 0:n.isHighlighted)===e.isHighlighted?t[t.length-1]={value:n.value+e.value,isHighlighted:n.isHighlighted}:t.push(e)}}}(n?[{value:n,isHighlighted:!1}]:[]);return t.forEach((function(e){var t=e.split(ta);r.add({value:t[0],isHighlighted:!0}),""!==t[1]&&r.add({value:t[1],isHighlighted:!1})})),r.get()}function Xc(e){return function(e){if(Array.isArray(e))return Qc(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Qc(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Qc(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Qc(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n",""":'"',"'":"'"},nd=new RegExp(/\w/i),rd=/&(amp|quot|lt|gt|#39);/g,od=RegExp(rd.source);function id(e,t){var n,r,o,i=e[t],s=(null===(n=e[t+1])||void 0===n?void 0:n.isHighlighted)||!0,a=(null===(r=e[t-1])||void 0===r?void 0:r.isHighlighted)||!0;return nd.test((o=i.value)&&od.test(o)?o.replace(rd,(function(e){return td[e]})):o)||a!==s?i.isHighlighted:a}function sd(e){return sd="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},sd(e)}function ad(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ld(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var $d={clearButton:"aa-ClearButton",detachedCancelButton:"aa-DetachedCancelButton",detachedContainer:"aa-DetachedContainer",detachedFormContainer:"aa-DetachedFormContainer",detachedOverlay:"aa-DetachedOverlay",detachedSearchButton:"aa-DetachedSearchButton",detachedSearchButtonIcon:"aa-DetachedSearchButtonIcon",detachedSearchButtonPlaceholder:"aa-DetachedSearchButtonPlaceholder",detachedSearchButtonQuery:"aa-DetachedSearchButtonQuery",form:"aa-Form",input:"aa-Input",inputWrapper:"aa-InputWrapper",inputWrapperPrefix:"aa-InputWrapperPrefix",inputWrapperSuffix:"aa-InputWrapperSuffix",item:"aa-Item",label:"aa-Label",list:"aa-List",loadingIndicator:"aa-LoadingIndicator",panel:"aa-Panel",panelLayout:"aa-PanelLayout aa-Panel--scrollable",root:"aa-Autocomplete",source:"aa-Source",sourceFooter:"aa-SourceFooter",sourceHeader:"aa-SourceHeader",sourceNoResults:"aa-SourceNoResults",submitButton:"aa-SubmitButton"},Cd=function(e,t){var n=e.children;(0,e.render)(n,t)},Ed={createElement:Ec,Fragment:Tc,render:Kc};function kd(e){var t=e.panelPlacement,n=e.container,r=e.form,o=e.environment,i=n.getBoundingClientRect(),s=(o.pageYOffset||o.document.documentElement.scrollTop||o.document.body.scrollTop||0)+i.top+i.height;switch(t){case"start":return{top:s,left:i.left};case"end":return{top:s,right:o.document.documentElement.clientWidth-(i.left+i.width)};case"full-width":return{top:s,left:0,right:0,width:"unset",maxWidth:"unset"};case"input-wrapper-width":var a=r.getBoundingClientRect();return{top:s,left:a.left,right:o.document.documentElement.clientWidth-(a.left+a.width),width:"unset",maxWidth:"unset"};default:throw new Error("[Autocomplete] The `panelPlacement` value ".concat(JSON.stringify(t)," is not valid."))}}function Td(e){return Td="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Td(e)}function Pd(){return Pd=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Jd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Yd(e){for(var t=1;t0;if(!p.value.core.openOnFocus&&!t.query)return n;var r=Boolean(u.current||p.value.renderer.renderNoResults);return!n&&r||n},__autocomplete_metadata:{userAgents:ca,options:e}}))})),m=_a(Yd({collections:[],completion:null,context:{},isOpen:!1,query:"",activeItemId:null,status:"idle"},p.value.core.initialState)),v={getEnvironmentProps:p.value.renderer.getEnvironmentProps,getFormProps:p.value.renderer.getFormProps,getInputProps:p.value.renderer.getInputProps,getItemProps:p.value.renderer.getItemProps,getLabelProps:p.value.renderer.getLabelProps,getListProps:p.value.renderer.getListProps,getPanelProps:p.value.renderer.getPanelProps,getRootProps:p.value.renderer.getRootProps},g={setActiveItemId:h.value.setActiveItemId,setQuery:h.value.setQuery,setCollections:h.value.setCollections,setIsOpen:h.value.setIsOpen,setStatus:h.value.setStatus,setContext:h.value.setContext,refresh:h.value.refresh,navigator:h.value.navigator},y=a((function(){return zu.bind(p.value.renderer.renderer.createElement)})),b=a((function(){return hc({autocomplete:h.value,autocompleteScopeApi:g,classNames:p.value.renderer.classNames,environment:p.value.core.environment,isDetached:f.value,placeholder:p.value.core.placeholder,propGetters:v,setIsModalOpen:O,state:m.current,translations:p.value.renderer.translations})}));function w(){Xu(b.value.panel,{style:f.value?{}:kd({panelPlacement:p.value.renderer.panelPlacement,container:b.value.root,form:b.value.form,environment:p.value.core.environment})})}function S(e){m.current=e;var t={autocomplete:h.value,autocompleteScopeApi:g,classNames:p.value.renderer.classNames,components:p.value.renderer.components,container:p.value.renderer.container,html:y.value,dom:b.value,panelContainer:f.value?b.value.detachedContainer:p.value.renderer.panelContainer,propGetters:v,state:m.current,renderer:p.value.renderer.renderer},n=!ll(e)&&!u.current&&p.value.renderer.renderNoResults||p.value.renderer.render;!function(e){var t=e.autocomplete,n=e.autocompleteScopeApi,r=e.dom,o=e.propGetters,i=e.state;Qu(r.root,o.getRootProps(Id({state:i,props:t.getRootProps({})},n))),Qu(r.input,o.getInputProps(Id({state:i,props:t.getInputProps({inputElement:r.input}),inputElement:r.input},n))),Xu(r.label,{hidden:"stalled"===i.status}),Xu(r.loadingIndicator,{hidden:"stalled"!==i.status}),Xu(r.clearButton,{hidden:!i.query}),Xu(r.detachedSearchButtonQuery,{textContent:i.query}),Xu(r.detachedSearchButtonPlaceholder,{hidden:Boolean(i.query)})}(t),function(e,t){var n=t.autocomplete,r=t.autocompleteScopeApi,o=t.classNames,i=t.html,s=t.dom,a=t.panelContainer,l=t.propGetters,u=t.state,c=t.components,d=t.renderer;if(u.isOpen){a.contains(s.panel)||"loading"===u.status||a.appendChild(s.panel),s.panel.classList.toggle("aa-Panel--stalled","stalled"===u.status);var p=u.collections.filter((function(e){var t=e.source,n=e.items;return t.templates.noResults||n.length>0})).map((function(e,t){var s=e.source,a=e.items;return d.createElement("section",{key:t,className:o.source,"data-autocomplete-source-id":s.sourceId},s.templates.header&&d.createElement("div",{className:o.sourceHeader},s.templates.header({components:c,createElement:d.createElement,Fragment:d.Fragment,items:a,source:s,state:u,html:i})),s.templates.noResults&&0===a.length?d.createElement("div",{className:o.sourceNoResults},s.templates.noResults({components:c,createElement:d.createElement,Fragment:d.Fragment,source:s,state:u,html:i})):d.createElement("ul",Pd({className:o.list},l.getListProps(Id({state:u,props:n.getListProps({sourceIndex:t})},r))),a.map((function(e){var a=n.getItemProps({item:e,source:s,sourceIndex:t});return d.createElement("li",Pd({key:a.id,className:o.item},l.getItemProps(Id({state:u,props:a},r))),s.templates.item({components:c,createElement:d.createElement,Fragment:d.Fragment,item:e,state:u,html:i}))}))),s.templates.footer&&d.createElement("div",{className:o.sourceFooter},s.templates.footer({components:c,createElement:d.createElement,Fragment:d.Fragment,items:a,source:s,state:u,html:i})))})),f=d.createElement(d.Fragment,null,d.createElement("div",{className:o.panelLayout},p),d.createElement("div",{className:"aa-GradientBottom"})),h=p.reduce((function(e,t){return e[t.props["data-autocomplete-source-id"]]=t,e}),{});e(Id(Id({children:f,state:u,sections:p,elements:h},d),{},{components:c,html:i},r),s.panel)}else a.contains(s.panel)&&a.removeChild(s.panel)}(n,t)}function _(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};o();var t=p.value.renderer,n=t.components,r=Kd(t,Vd);c.current=Rd(r,p.value.core,{components:Ud(n,(function(e){return!e.value.hasOwnProperty("__autocomplete_componentName")})),initialState:m.current},e),l(),i(),h.value.refresh().then((function(){S(m.current)}))}function O(e){requestAnimationFrame((function(){var t=p.value.core.environment.document.body.contains(b.value.detachedOverlay);e!==t&&(e?(p.value.core.environment.document.body.appendChild(b.value.detachedOverlay),p.value.core.environment.document.body.classList.add("aa-Detached"),b.value.input.focus()):(p.value.core.environment.document.body.removeChild(b.value.detachedOverlay),p.value.core.environment.document.body.classList.remove("aa-Detached")))}))}return r((function(){var e=h.value.getEnvironmentProps({formElement:b.value.form,panelElement:b.value.panel,inputElement:b.value.input});return Xu(p.value.core.environment,e),function(){Xu(p.value.core.environment,Object.keys(e).reduce((function(e,t){return Yd(Yd({},e),{},Xd({},t,void 0))}),{}))}})),r((function(){var e=f.value?p.value.core.environment.document.body:p.value.renderer.panelContainer,t=f.value?b.value.detachedOverlay:b.value.panel;return f.value&&m.current.isOpen&&O(!0),S(m.current),function(){e.contains(t)&&e.removeChild(t)}})),r((function(){var e=p.value.renderer.container;return e.appendChild(b.value.root),function(){e.removeChild(b.value.root)}})),r((function(){var e=Sa((function(e){S(e.state)}),0);return d.current=function(t){var n=t.state,r=t.prevState;(f.value&&r.isOpen!==n.isOpen&&O(n.isOpen),f.value||!n.isOpen||r.isOpen||w(),n.query!==r.query)&&p.value.core.environment.document.querySelectorAll(".aa-Panel--scrollable").forEach((function(e){0!==e.scrollTop&&(e.scrollTop=0)}));e({state:n})},function(){d.current=void 0}})),r((function(){var e=Sa((function(){var e=f.value;f.value=p.value.core.environment.matchMedia(p.value.renderer.detachedMediaQuery).matches,e!==f.value?_({}):requestAnimationFrame(w)}),20);return p.value.core.environment.addEventListener("resize",e),function(){p.value.core.environment.removeEventListener("resize",e)}})),r((function(){if(!f.value)return function(){};function e(e){b.value.detachedContainer.classList.toggle("aa-DetachedContainer--modal",e)}function t(t){e(t.matches)}var n=p.value.core.environment.matchMedia(getComputedStyle(p.value.core.environment.document.documentElement).getPropertyValue("--aa-detached-modal-media-query"));e(n.matches);var r=Boolean(n.addEventListener);return r?n.addEventListener("change",t):n.addListener(t),function(){r?n.removeEventListener("change",t):n.removeListener(t)}})),r((function(){return requestAnimationFrame(w),function(){}})),Yd(Yd({},g),{},{update:_,destroy:function(){o()}})}function Zd(e){return Zd="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Zd(e)}function ep(e){return function(e){if(Array.isArray(e))return tp(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return tp(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return tp(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function tp(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n`(${e[t].map((({label:e})=>`${t}:"${e}"`)).join(" OR ")})`)).join(` ${t} `)}function pp(e,t){return e.reduce(((e,n)=>{const r=t(n);return e.hasOwnProperty(r)||(e[r]=[]),e[r].push(n),e}),{})}function fp(e){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=cp(e),n=t.initialTags,r=t.getTagsSubscribers,o=t.transformSource,i=t.onChange,s=ip({initialTags:n}),a={setTags:s.set,addTags:s.add};return{name:"aa.tagsPlugin",subscribe:function(e){var t=e.setContext,n=e.onSelect,o=e.setIsOpen,l=e.refresh,u=r();t({tagsPlugin:lp(lp({},a),{},{tags:s.get()})}),n((function(e){var t=e.source,n=e.item,r=u.find((function(e){return e.sourceId===t.sourceId}));r&&s.add([r.getTag({item:n})])})),s.onChange((function(n){var r=n.prevTags;t({tagsPlugin:lp(lp({},a),{},{tags:s.get()})}),o(!0),i(lp(lp({},e),{},{prevTags:r,tags:s.get()})),l()}))},getSources:function(e){var t=e.state;return[o({source:{sourceId:"tagsPlugin",getItems:function(){return s.get()},onSelect:function(e){e.item.remove()},templates:{item:function(e){var t=e.item,n=e.createElement;return n("div",{className:"aa-TagsPlugin-Tag"},n("span",{className:"aa-TagsPlugin-TagLabel"},t.label),n("button",{className:"aa-TagsPlugin-RemoveButton",title:"Remove this tag"},n("svg",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,viewBox:"0 0 24 24"},n("path",{d:"M18 6L6 18"}),n("path",{d:"M6 6L18 18"}))))}}},state:t})]},data:lp(lp({},a),{},{get tags(){return s.get()}}),__autocomplete_pluginOptions:e}}({initialTags:e,transformSource:({source:e})=>{},getTagsSubscribers:()=>[{sourceId:"section",getTag:({item:e})=>e}]})}function hp(e,t){var n,r;null===(r=null===(n=e.context)||void 0===n?void 0:n.tagsPlugin)||void 0===r||r.setTags(t)}function mp(e){var t,n;return(null===(n=null===(t=e.context)||void 0===t?void 0:t.tagsPlugin)||void 0===n?void 0:n.tags)||[]}const vp=function(e,t){let n;return(...r)=>(n&&clearTimeout(n),new Promise((o=>{n=setTimeout((()=>o(e(...r))),t)})))}((e=>Promise.resolve(e)),220);function gp(e){return e>1e3?`${Math.ceil(e/1e3)}K`:e.toString()}function yp(e){return"Registry"===e?"Packages":e}function bp(e){switch(e){case"Docs":return"/icons/docs.svg";case"Registry":return"/icons/registry.svg";case"Tutorials":return"/icons/graduation-cap.svg"}return"/icons/list.svg"}let wp,Sp,_p,Op,xp;function $p(e){if(wp=e.getAttribute("data-app-id"),Sp=e.getAttribute("data-search-key"),_p=e.getAttribute("data-index"),xp=e.getAttribute("data-facets").split(",").map((e=>({label:e,facet:"section"}))),!(wp&&Sp&&_p&&xp))return void console.error("Autocomplete element found, but one or more require attributes were missing.");function t(e,t,n){return{sourceId:"sections",getItems:()=>{return t={searchClient:Op,queries:[{indexName:_p,facet:"section",params:{query:e,filters:dp(pp(xp,(e=>e.facet)))}}],transformResponse:({facetHits:e})=>(n({facetHits:e}),[])},r=ma({transformResponse:function(e){return e.facetHits}}),o=t.queries.map((function(e){return ya(ya({},e),{},{type:"facet"})})),r(ya(ya({},t),{},{queries:o}));var t,r,o},templates:{item:()=>null}}}Op=Gs()(wp,Sp);const n=function(){const e={upDownPressed:!1};return window.addEventListener("keydown",(e=>{"k"===e.key.toLowerCase()&&(e.metaKey||e.ctrlKey)&&(e.preventDefault(),document.querySelector(".aa-DetachedSearchButton").click())})),window.addEventListener("keydown",(t=>{"ArrowUp"!==t.key&&"ArrowDown"!==t.key||t.target!==document.querySelector(".aa-DetachedFormContainer .aa-Input")||(e.upDownPressed=!0)}),{capture:!0}),document.body.addEventListener("click",(e=>{var t;const n=e.target;if(null==n?void 0:n.closest(".aa-ClearButton")){e.stopPropagation(),e.preventDefault();const r=null===(t=n.closest(".aa-Form"))||void 0===t?void 0:t.querySelector(".aa-Input");r&&(r.value="",r.focus(),r.dispatchEvent(new Event("input")))}})),e}();Qd({container:e,placeholder:"Search (⌘/ctrl-k)",openOnFocus:!1,detachedMediaQuery:"",defaultActiveItemId:0,onStateChange:({state:e,prevState:t,setCollections:r})=>{if(""!==t.query&&""===e.query&&(r([]),hp(e,xp)),e.activeItemId>=0){const t=document.querySelectorAll(".aa-Item");if(t){const r=t.item(e.activeItemId);r&&n.upDownPressed&&r.scrollIntoView({behavior:"smooth",block:"nearest"})}n.upDownPressed=!1}},getSources:({query:e,state:n,refresh:r,setContext:o})=>{const i=[];return i.push(t(e,0,o)),i.push(function(e,t,n){return{sourceId:"results",getItems:({state:t})=>wa({searchClient:Op,queries:[{indexName:_p,query:e,params:{filters:dp(pp(mp(t),(e=>e.facet))),hitsPerPage:50,page:0}}]}),getItemUrl:({item:e})=>new URL([document.location.origin,e.href].join("")).toString(),templates:{header:({html:e,state:t})=>{const r=t.context.facetHits[0],o=r.reduce(((e,t)=>e+t.count),0);return 1===xp.length?e`
      -
    • +
    `:e`
      -
    • +
    • - ${wp.map((o=>{const i=r.find((e=>e.label===o.label)),s=1===dp(t).length&&dp(t)[0].label===o.label,a=!i||0===i.count,l=i?i.count:0;return e` + ${xp.map((o=>{const i=r.find((e=>e.label===o.label)),s=1===mp(t).length&&mp(t)[0].label===o.label,a=!i||0===i.count,l=i?i.count:0;return e`
    • `}))}
    @@ -43,8 +43,8 @@ ${t.h1?n.Highlight({hit:t,attribute:"h1"}):n.Highlight({hit:t,attribute:"title"})}
    - - ${hp(t.section)} + + ${yp(t.section)}
    @@ -63,4 +63,4 @@

    We couldn't find any results for ${t.query}.

    Try a more general term or use fewer keywords.

    - `}}}}(e,0,r)),pp(i)},insights:!0,plugins:[up(wp)]})}var _p;window.addEventListener("DOMContentLoaded",(()=>{const e=document.querySelector("#search");e&&Sp(e)})),"undefined"!=typeof customElements&&[wi,Si,_i,Oi,xi,$i,Ci,Ei,ki,Ti,Pi,ji,Ii,Li,Ai,Di,Mi,Ni,Ri,Fi,Bi,zi,qi,Hi,Wi,Ui,Vi,Gi,Ki,Ji,Yi,Xi,Qi,Zi,es,ts,ns,rs,os].forEach((e=>{customElements.get(e.is)||customElements.define(e.is,e,_p)}))})()})(); \ No newline at end of file + `}}}}(e,0,r)),vp(i)},insights:!0,plugins:[fp(xp)]})}var Cp;window.addEventListener("DOMContentLoaded",(()=>{const e=document.querySelector("#search");e&&$p(e)})),"undefined"!=typeof customElements&&[_i,Oi,xi,$i,Ci,Ei,ki,Ti,Pi,ji,Ii,Li,Ai,Di,Mi,Ni,Ri,Fi,Bi,qi,zi,Hi,Wi,Ui,Vi,Gi,Ki,Ji,Yi,Xi,Qi,Zi,es,ts,ns,rs,os,is,ss,as,ls].forEach((e=>{customElements.get(e.is)||customElements.define(e.is,e,Cp)}))})()})(); \ No newline at end of file diff --git a/layouts/docs/list.html b/layouts/docs/list.html index 7f65e0e5b188b..9a4836f17d028 100644 --- a/layouts/docs/list.html +++ b/layouts/docs/list.html @@ -3,7 +3,7 @@
    - {{ partial "docs/main-nav.html" . }} + {{ partial "docs/nav.html" (dict "ctx" . "type" "pulumi-iac") }}
    @@ -25,10 +25,6 @@

    {{ .Title }}

    -
    - {{ partial "docs/table-of-contents.html" . }} -
    - {{ if .Params.docs_home }} {{ partial "docs/special-pages/docs-home.html" . }} {{ else if .Params.cloud_overview }} @@ -42,7 +38,7 @@

    {{ .Title }}

    - {{ partial "docs/table-of-contents.html" . }} + {{ partial "docs/toc.html" }} {{ partial "docs/feedback.html" . }} diff --git a/layouts/partials/docs/nav.html b/layouts/partials/docs/nav.html new file mode 100644 index 0000000000000..c176198df0a54 --- /dev/null +++ b/layouts/partials/docs/nav.html @@ -0,0 +1,39 @@ +{{ if eq .type "pulumi-iac"}} + +
      +
    1. Download and install
    2. +
    3. Get started
    4. +
    5. +
      + Concepts + +
      +
        +
      1. How Pulumi works
      2. +
      3. Projects
      4. +
      +
    6. +
    +
    +{{ else if eq .type "pulumi-esc" }} + +
      +
    1. Download and install
    2. +
    3. Get started
    4. +
    +
    +{{ else if eq .type "pulumi-cloud" }} + +
      +
    1. Download and install
    2. +
    3. Get started
    4. +
    +
    +{{ else }} + +
      +
    1. Download and install
    2. +
    3. Get started
    4. +
    +
    +{{ end }} diff --git a/layouts/partials/docs/toc.html b/layouts/partials/docs/toc.html new file mode 100644 index 0000000000000..e18a72b0cfab0 --- /dev/null +++ b/layouts/partials/docs/toc.html @@ -0,0 +1 @@ + diff --git a/layouts/partials/tutorials/toc.html b/layouts/partials/tutorials/toc.html new file mode 100644 index 0000000000000..70a0f82595477 --- /dev/null +++ b/layouts/partials/tutorials/toc.html @@ -0,0 +1 @@ + diff --git a/layouts/tutorials/module.html b/layouts/tutorials/module.html index 0dcaf19b66a1b..80fc142c3e701 100644 --- a/layouts/tutorials/module.html +++ b/layouts/tutorials/module.html @@ -37,7 +37,7 @@

    In this tutorial, you'll learn:

    -

    Prerequisites:

    +

    Prerequisites:

      {{ range .Params.prereqs }}
    • diff --git a/layouts/tutorials/single.html b/layouts/tutorials/single.html index 66e061035b2ce..79f28c11fb0f4 100644 --- a/layouts/tutorials/single.html +++ b/layouts/tutorials/single.html @@ -33,7 +33,7 @@

      {{ .Title }}

      {{ if .Params.youll_learn }}
      -

      In this tutorial, you'll learn:

      +

      In this tutorial, you'll learn:

        {{ range .Params.youll_learn }}
      • @@ -48,7 +48,7 @@

        In this tutorial, you'll learn:

        {{ if .Params.prereqs }}
        -

        Prerequisites:

        +

        Prerequisites:

          {{ range .Params.prereqs }}
        • @@ -66,6 +66,7 @@

          Prerequisites:

        diff --git a/theme/src/scss/_about.scss b/theme/src/scss/_about.scss index 628c99405594b..ceb20000e04bf 100644 --- a/theme/src/scss/_about.scss +++ b/theme/src/scss/_about.scss @@ -6,7 +6,7 @@ #about-nav { @apply flex gap-x-9; - + list-style: none !important; li { @@ -57,7 +57,7 @@ width: 230px; border-radius: 14px; background: linear-gradient(90deg, #f7bf2a 0%, #f26e7e 18.23%, #be5188 38.02%, #8a3391 53.65%, #805ac3 74.48%, #7682f4 100%); - + a { height: 226px; width: 226px; @@ -76,7 +76,7 @@ .dot-overlay { @apply w-full h-full absolute top-0 left-0 pointer-events-none; - z-index: -1;; + z-index: -1; } .title { @@ -95,7 +95,7 @@ height: 150px; border-right: 4px solid; border-image-slice: 1; - border-image-source: linear-gradient(#F7BF2A 0%, #F26E7E 18.23%, #BE5188 38.02%, #8A3391 53.65%, #805AC3 74.48%, #7682F4 100%) + border-image-source: linear-gradient(#f7bf2a 0%, #f26e7e 18.23%, #be5188 38.02%, #8a3391 53.65%, #805ac3 74.48%, #7682f4 100%); } .social-overlay { @@ -109,7 +109,14 @@ } } -#we-are-pulumi, #who-we-are, #what-we-believe, #community, #history, #awards, #newsroom, #join-us { +#we-are-pulumi, +#who-we-are, +#what-we-believe, +#community, +#history, +#awards, +#newsroom, +#join-us { scroll-margin-top: 75px; } @@ -117,7 +124,7 @@ img { border: double 6px transparent; border-radius: 6px; - background-image: linear-gradient(white, white), linear-gradient(#F7BF2A 0%, #F26E7E 18.23%, #BE5188 38.02%, #8A3391 53.65%, #805AC3 74.48%, #7682F4 100%); + background-image: linear-gradient(white, white), linear-gradient(#f7bf2a 0%, #f26e7e 18.23%, #be5188 38.02%, #8a3391 53.65%, #805ac3 74.48%, #7682f4 100%); background-origin: border-box; background-clip: padding-box, border-box; } @@ -127,33 +134,34 @@ max-width: 1440px; } - - .about-us-gradient-hero { border-top: 6px solid; border-bottom: 6px solid; border-image-slice: 1; - border-image-source: linear-gradient(90deg, #F7BF2A 0%, #F26E7E 18.23%, #BE5188 38.02%, #8A3391 53.65%, #805AC3 74.48%, #7682F4 100%); + border-image-source: linear-gradient(90deg, #f7bf2a 0%, #f26e7e 18.23%, #be5188 38.02%, #8a3391 53.65%, #805ac3 74.48%, #7682f4 100%); height: 20rem; overflow: hidden; position: relative; - background: linear-gradient(180deg, #FCC247 0%, #F06DE9 100%); + background: linear-gradient(180deg, #fcc247 0%, #f06de9 100%); z-index: 10; - + &:before { - background: linear-gradient(180deg, #f1d1a0 0%, #AE6BFE 100%); - content: ''; + background: linear-gradient(180deg, #f1d1a0 0%, #ae6bfe 100%); + content: ""; display: block; height: 100%; position: absolute; - top: 0; left: 0; + top: 0; + left: 0; opacity: 0; width: 100%; z-index: -150; animation: opacity-animation 8s infinite ease-in-out; } - .element-1, .element-2, .element-3 { + .element-1, + .element-2, + .element-3 { position: absolute; } @@ -163,15 +171,16 @@ border-radius: 50%; bottom: -340px; filter: blur(40px); - background: radial-gradient(#F87579, #F7BF2A); + background: radial-gradient(#f87579, #f7bf2a); &:before { - background: radial-gradient(#FCC247, #DA86D8); - content: ''; + background: radial-gradient(#fcc247, #da86d8); + content: ""; display: block; height: 100%; position: absolute; - top: 0; left: 0; + top: 0; + left: 0; opacity: 0; width: 100%; z-index: -150; @@ -189,17 +198,18 @@ filter: blur(30px); transform: skew(20deg, 8deg); border-radius: 4% 96% 60% 40% / 61% 70% 30% 39%; - + &:before { - background: radial-gradient(rgba(116, 188, 248, 0.9), #B78FA8); + background: radial-gradient(rgba(116, 188, 248, 0.9), #b78fa8); border-radius: 4% 96% 60% 40% / 61% 70% 30% 39%; left: 18.5%; bottom: 20%; - content: ''; + content: ""; display: block; height: 100%; position: absolute; - top: 0; left: 0; + top: 0; + left: 0; opacity: 0; width: 100%; z-index: -150; @@ -215,14 +225,15 @@ top: -15%; transform: rotate(90deg); filter: blur(40px); - + &:before { - background: radial-gradient(#47C2C0, #B78FA8); - content: ''; + background: radial-gradient(#47c2c0, #b78fa8); + content: ""; display: block; height: 100%; position: absolute; - top: 0; left: 0; + top: 0; + left: 0; opacity: 0; width: 100%; z-index: -150; @@ -231,34 +242,32 @@ } } - @keyframes opacity-animation { - 0% { - opacity: 0; - } - - 50% { - opacity: 1 - } - 100% { - opacity: 0; - } + 0% { + opacity: 0; + } + + 50% { + opacity: 1; + } + 100% { + opacity: 0; + } } .value-card { - height: 600px; + height: 600px; @screen xl { height: 465px; } border: double 2px transparent; border-radius: 12px; - background-image: linear-gradient(white, white), linear-gradient(#F7BF2A 0%, #F26E7E 18.23%, #BE5188 38.02%, #8A3391 53.65%, #805AC3 74.48%, #7682F4 100%); + background-image: linear-gradient(white, white), linear-gradient(#f7bf2a 0%, #f26e7e 18.23%, #be5188 38.02%, #8a3391 53.65%, #805ac3 74.48%, #7682f4 100%); background-origin: border-box; background-clip: padding-box, border-box; } - .values-flex .value-card { width: 90%; height: auto; diff --git a/theme/src/scss/_algolia.scss b/theme/src/scss/_algolia.scss index fc37c16f08f57..17bf4f19df410 100644 --- a/theme/src/scss/_algolia.scss +++ b/theme/src/scss/_algolia.scss @@ -18,11 +18,11 @@ } // Use our standard rounding for the button and the modal. -.aa-Form, .aa-DetachedSearchButton { +.aa-Form, +.aa-DetachedSearchButton { @apply rounded; } - // The container of the modal, including search-box and results panel. .aa-DetachedFormContainer { @apply border-transparent; @@ -34,7 +34,6 @@ // The container of a data source. (In our panel, we only have one.) .aa-Source { - // By default, Algolia gives this element `relative` positioning, which causes it to act as an // absolute positioning container. However, because we want the header and footer to be pinned // to the top and bottom of the `.aa-Panel` (this element's parent), we override this setting to @@ -54,7 +53,7 @@ @apply bg-white z-40 m-0 absolute top-0 right-0 left-0; // We need a bit more specificity here to override the defaults set by the control. - .aa-DetachedContainer & { + .aa-DetachedContainer & { @apply my-0; } @@ -96,7 +95,8 @@ } // When active, show a strong underline. - &.active, &.active:hover:not(.disabled) { + &.active, + &.active:hover:not(.disabled) { @apply text-gray-900 border-violet-600; button { @@ -127,7 +127,6 @@ @apply bg-gray-100 bg-opacity-80 mb-2 px-2 relative; .result { - // The breadcrumb. .ancestors { @apply text-xs text-gray-700 mb-2; @@ -197,10 +196,8 @@ // The autocomplete button (i.e., the widget rendered by Algolia that opens the search dialog). .aa-Autocomplete { - // When the dialog is open, this class gets set on the `body` tag. .aa-Detached & { - // Lighten the text color when the dialog is open to make it less contrasty/distracting. .aa-DetachedSearchButtonQuery { @apply text-gray-600; diff --git a/theme/src/scss/_breadcrumb.scss b/theme/src/scss/_breadcrumb.scss index cb3c35f0d06f3..18d59e08d2661 100644 --- a/theme/src/scss/_breadcrumb.scss +++ b/theme/src/scss/_breadcrumb.scss @@ -9,7 +9,7 @@ ol.docs-breadcrumb { margin: 0; a { - font-family: 'Inter'; + font-family: "Inter"; font-weight: 500; font-size: 12px; line-height: 1.5; @@ -26,7 +26,7 @@ ol.docs-breadcrumb { &.active a { font-weight: 700; } - + &:not(:last-child) { &::after { display: inline-block; diff --git a/theme/src/scss/_chroma.scss b/theme/src/scss/_chroma.scss index cc724e5c6cd77..e756d53c22008 100644 --- a/theme/src/scss/_chroma.scss +++ b/theme/src/scss/_chroma.scss @@ -1,86 +1,371 @@ -/* Background */ .bg { color: #c9d1d9; background-color: #1f2557; } -/* PreWrapper */ .chroma { color: #c9d1d9; background-color: #1f2557; } -/* Other */ .chroma .x { } -/* Error */ .chroma .err { color: #f85149 } -/* CodeLine */ .chroma .cl { } -/* LineLink */ .chroma .lnlinks { outline: none; text-decoration: none; color: inherit } -/* LineTableTD */ .chroma .lntd { vertical-align: top; padding: 0; margin: 0; border: 0; } -/* LineTable */ .chroma .lntable { border-spacing: 0; padding: 0; margin: 0; border: 0; } -/* LineHighlight */ .chroma .hl { background-color: #4d3675 } -/* LineNumbersTable */ .chroma .lnt { white-space: pre; -webkit-user-select: none; user-select: none; margin-right: 0.4em; padding: 0 0.4em 0 0.4em;color: #64686c } -/* LineNumbers */ .chroma .ln { white-space: pre; -webkit-user-select: none; user-select: none; margin-right: 0.4em; padding: 0 0.4em 0 0.4em;color: #6e7681 } -/* Line */ .chroma .line { display: flex; } -/* Keyword */ .chroma .k { color: #ff7b72 } -/* KeywordConstant */ .chroma .kc { color: #79c0ff } -/* KeywordDeclaration */ .chroma .kd { color: #ff7b72 } -/* KeywordNamespace */ .chroma .kn { color: #ff7b72 } -/* KeywordPseudo */ .chroma .kp { color: #79c0ff } -/* KeywordReserved */ .chroma .kr { color: #ff7b72 } -/* KeywordType */ .chroma .kt { color: #ff7b72 } -/* Name */ .chroma .n { } -/* NameAttribute */ .chroma .na { } -/* NameBuiltin */ .chroma .nb { } -/* NameBuiltinPseudo */ .chroma .bp { } -/* NameClass */ .chroma .nc { color: #f0883e; font-weight: bold } -/* NameConstant */ .chroma .no { color: #79c0ff; font-weight: bold } -/* NameDecorator */ .chroma .nd { color: #d2a8ff; font-weight: bold } -/* NameEntity */ .chroma .ni { color: #ffa657 } -/* NameException */ .chroma .ne { color: #f0883e; font-weight: bold } -/* NameFunction */ .chroma .nf { color: #d2a8ff; font-weight: bold } -/* NameFunctionMagic */ .chroma .fm { } -/* NameLabel */ .chroma .nl { color: #79c0ff; font-weight: bold } -/* NameNamespace */ .chroma .nn { color: #ff7b72 } -/* NameOther */ .chroma .nx { } -/* NameProperty */ .chroma .py { color: #79c0ff } -/* NameTag */ .chroma .nt { color: #7ee787 } -/* NameVariable */ .chroma .nv { color: #79c0ff } -/* NameVariableClass */ .chroma .vc { } -/* NameVariableGlobal */ .chroma .vg { } -/* NameVariableInstance */ .chroma .vi { } -/* NameVariableMagic */ .chroma .vm { } -/* Literal */ .chroma .l { color: #a5d6ff } -/* LiteralDate */ .chroma .ld { color: #79c0ff } -/* LiteralString */ .chroma .s { color: #a5d6ff } -/* LiteralStringAffix */ .chroma .sa { color: #79c0ff } -/* LiteralStringBacktick */ .chroma .sb { color: #a5d6ff } -/* LiteralStringChar */ .chroma .sc { color: #a5d6ff } -/* LiteralStringDelimiter */ .chroma .dl { color: #79c0ff } -/* LiteralStringDoc */ .chroma .sd { color: #a5d6ff } -/* LiteralStringDouble */ .chroma .s2 { color: #a5d6ff } -/* LiteralStringEscape */ .chroma .se { color: #79c0ff } -/* LiteralStringHeredoc */ .chroma .sh { color: #79c0ff } -/* LiteralStringInterpol */ .chroma .si { color: #a5d6ff } -/* LiteralStringOther */ .chroma .sx { color: #a5d6ff } -/* LiteralStringRegex */ .chroma .sr { color: #79c0ff } -/* LiteralStringSingle */ .chroma .s1 { color: #a5d6ff } -/* LiteralStringSymbol */ .chroma .ss { color: #a5d6ff } -/* LiteralNumber */ .chroma .m { color: #a5d6ff } -/* LiteralNumberBin */ .chroma .mb { color: #a5d6ff } -/* LiteralNumberFloat */ .chroma .mf { color: #a5d6ff } -/* LiteralNumberHex */ .chroma .mh { color: #a5d6ff } -/* LiteralNumberInteger */ .chroma .mi { color: #a5d6ff } -/* LiteralNumberIntegerLong */ .chroma .il { color: #a5d6ff } -/* LiteralNumberOct */ .chroma .mo { color: #a5d6ff } -/* Operator */ .chroma .o { color: #ff7b72; font-weight: bold } -/* OperatorWord */ .chroma .ow { color: #ff7b72; font-weight: bold } -/* Punctuation */ .chroma .p { } -/* Comment */ .chroma .c { color: #8b949e; font-style: italic } -/* CommentHashbang */ .chroma .ch { color: #8b949e; font-style: italic } -/* CommentMultiline */ .chroma .cm { color: #8b949e; font-style: italic } -/* CommentSingle */ .chroma .c1 { color: #8b949e; font-style: italic } -/* CommentSpecial */ .chroma .cs { color: #8b949e; font-weight: bold; font-style: italic } -/* CommentPreproc */ .chroma .cp { color: #8b949e; font-weight: bold; font-style: italic } -/* CommentPreprocFile */ .chroma .cpf { color: #8b949e; font-weight: bold; font-style: italic } -/* Generic */ .chroma .g { } -/* GenericDeleted */ .chroma .gd { color: #ffa198; background-color: #490202 } -/* GenericEmph */ .chroma .ge { font-style: italic } -/* GenericError */ .chroma .gr { color: #ffa198 } -/* GenericHeading */ .chroma .gh { color: #79c0ff; font-weight: bold } -/* GenericInserted */ .chroma .gi { color: #56d364; background-color: #0f5323 } -/* GenericOutput */ .chroma .go { color: #8b949e } -/* GenericPrompt */ .chroma .gp { color: #8b949e } -/* GenericStrong */ .chroma .gs { font-weight: bold } -/* GenericSubheading */ .chroma .gu { color: #79c0ff } -/* GenericTraceback */ .chroma .gt { color: #ff7b72 } -/* GenericUnderline */ .chroma .gl { text-decoration: underline } -/* TextWhitespace */ .chroma .w { color: #6e7681 } +/* Background */ +.bg { + color: #c9d1d9; + background-color: #1f2557; +} +/* PreWrapper */ +.chroma { + color: #c9d1d9; + background-color: #1f2557; +} +/* Other */ +.chroma .x { +} +/* Error */ +.chroma .err { + color: #f85149; +} +/* CodeLine */ +.chroma .cl { +} +/* LineLink */ +.chroma .lnlinks { + outline: none; + text-decoration: none; + color: inherit; +} +/* LineTableTD */ +.chroma .lntd { + vertical-align: top; + padding: 0; + margin: 0; + border: 0; +} +/* LineTable */ +.chroma .lntable { + border-spacing: 0; + padding: 0; + margin: 0; + border: 0; +} +/* LineHighlight */ +.chroma .hl { + background-color: #4d3675; +} +/* LineNumbersTable */ +.chroma .lnt { + white-space: pre; + -webkit-user-select: none; + user-select: none; + margin-right: 0.4em; + padding: 0 0.4em 0 0.4em; + color: #64686c; +} +/* LineNumbers */ +.chroma .ln { + white-space: pre; + -webkit-user-select: none; + user-select: none; + margin-right: 0.4em; + padding: 0 0.4em 0 0.4em; + color: #6e7681; +} +/* Line */ +.chroma .line { + display: flex; +} +/* Keyword */ +.chroma .k { + color: #ff7b72; +} +/* KeywordConstant */ +.chroma .kc { + color: #79c0ff; +} +/* KeywordDeclaration */ +.chroma .kd { + color: #ff7b72; +} +/* KeywordNamespace */ +.chroma .kn { + color: #ff7b72; +} +/* KeywordPseudo */ +.chroma .kp { + color: #79c0ff; +} +/* KeywordReserved */ +.chroma .kr { + color: #ff7b72; +} +/* KeywordType */ +.chroma .kt { + color: #ff7b72; +} +/* Name */ +.chroma .n { +} +/* NameAttribute */ +.chroma .na { +} +/* NameBuiltin */ +.chroma .nb { +} +/* NameBuiltinPseudo */ +.chroma .bp { +} +/* NameClass */ +.chroma .nc { + color: #f0883e; + font-weight: bold; +} +/* NameConstant */ +.chroma .no { + color: #79c0ff; + font-weight: bold; +} +/* NameDecorator */ +.chroma .nd { + color: #d2a8ff; + font-weight: bold; +} +/* NameEntity */ +.chroma .ni { + color: #ffa657; +} +/* NameException */ +.chroma .ne { + color: #f0883e; + font-weight: bold; +} +/* NameFunction */ +.chroma .nf { + color: #d2a8ff; + font-weight: bold; +} +/* NameFunctionMagic */ +.chroma .fm { +} +/* NameLabel */ +.chroma .nl { + color: #79c0ff; + font-weight: bold; +} +/* NameNamespace */ +.chroma .nn { + color: #ff7b72; +} +/* NameOther */ +.chroma .nx { +} +/* NameProperty */ +.chroma .py { + color: #79c0ff; +} +/* NameTag */ +.chroma .nt { + color: #7ee787; +} +/* NameVariable */ +.chroma .nv { + color: #79c0ff; +} +/* NameVariableClass */ +.chroma .vc { +} +/* NameVariableGlobal */ +.chroma .vg { +} +/* NameVariableInstance */ +.chroma .vi { +} +/* NameVariableMagic */ +.chroma .vm { +} +/* Literal */ +.chroma .l { + color: #a5d6ff; +} +/* LiteralDate */ +.chroma .ld { + color: #79c0ff; +} +/* LiteralString */ +.chroma .s { + color: #a5d6ff; +} +/* LiteralStringAffix */ +.chroma .sa { + color: #79c0ff; +} +/* LiteralStringBacktick */ +.chroma .sb { + color: #a5d6ff; +} +/* LiteralStringChar */ +.chroma .sc { + color: #a5d6ff; +} +/* LiteralStringDelimiter */ +.chroma .dl { + color: #79c0ff; +} +/* LiteralStringDoc */ +.chroma .sd { + color: #a5d6ff; +} +/* LiteralStringDouble */ +.chroma .s2 { + color: #a5d6ff; +} +/* LiteralStringEscape */ +.chroma .se { + color: #79c0ff; +} +/* LiteralStringHeredoc */ +.chroma .sh { + color: #79c0ff; +} +/* LiteralStringInterpol */ +.chroma .si { + color: #a5d6ff; +} +/* LiteralStringOther */ +.chroma .sx { + color: #a5d6ff; +} +/* LiteralStringRegex */ +.chroma .sr { + color: #79c0ff; +} +/* LiteralStringSingle */ +.chroma .s1 { + color: #a5d6ff; +} +/* LiteralStringSymbol */ +.chroma .ss { + color: #a5d6ff; +} +/* LiteralNumber */ +.chroma .m { + color: #a5d6ff; +} +/* LiteralNumberBin */ +.chroma .mb { + color: #a5d6ff; +} +/* LiteralNumberFloat */ +.chroma .mf { + color: #a5d6ff; +} +/* LiteralNumberHex */ +.chroma .mh { + color: #a5d6ff; +} +/* LiteralNumberInteger */ +.chroma .mi { + color: #a5d6ff; +} +/* LiteralNumberIntegerLong */ +.chroma .il { + color: #a5d6ff; +} +/* LiteralNumberOct */ +.chroma .mo { + color: #a5d6ff; +} +/* Operator */ +.chroma .o { + color: #ff7b72; + font-weight: bold; +} +/* OperatorWord */ +.chroma .ow { + color: #ff7b72; + font-weight: bold; +} +/* Punctuation */ +.chroma .p { +} +/* Comment */ +.chroma .c { + color: #8b949e; + font-style: italic; +} +/* CommentHashbang */ +.chroma .ch { + color: #8b949e; + font-style: italic; +} +/* CommentMultiline */ +.chroma .cm { + color: #8b949e; + font-style: italic; +} +/* CommentSingle */ +.chroma .c1 { + color: #8b949e; + font-style: italic; +} +/* CommentSpecial */ +.chroma .cs { + color: #8b949e; + font-weight: bold; + font-style: italic; +} +/* CommentPreproc */ +.chroma .cp { + color: #8b949e; + font-weight: bold; + font-style: italic; +} +/* CommentPreprocFile */ +.chroma .cpf { + color: #8b949e; + font-weight: bold; + font-style: italic; +} +/* Generic */ +.chroma .g { +} +/* GenericDeleted */ +.chroma .gd { + color: #ffa198; + background-color: #490202; +} +/* GenericEmph */ +.chroma .ge { + font-style: italic; +} +/* GenericError */ +.chroma .gr { + color: #ffa198; +} +/* GenericHeading */ +.chroma .gh { + color: #79c0ff; + font-weight: bold; +} +/* GenericInserted */ +.chroma .gi { + color: #56d364; + background-color: #0f5323; +} +/* GenericOutput */ +.chroma .go { + color: #8b949e; +} +/* GenericPrompt */ +.chroma .gp { + color: #8b949e; +} +/* GenericStrong */ +.chroma .gs { + font-weight: bold; +} +/* GenericSubheading */ +.chroma .gu { + color: #79c0ff; +} +/* GenericTraceback */ +.chroma .gt { + color: #ff7b72; +} +/* GenericUnderline */ +.chroma .gl { + text-decoration: underline; +} +/* TextWhitespace */ +.chroma .w { + color: #6e7681; +} diff --git a/theme/src/scss/_code.scss b/theme/src/scss/_code.scss index ae8f4dd2ec171..bcd6df08741de 100644 --- a/theme/src/scss/_code.scss +++ b/theme/src/scss/_code.scss @@ -30,7 +30,7 @@ pre, } pre { - background: #1F2557; + background: #1f2557; @apply text-gray-400 py-4 px-5 pr-8 overflow-x-auto leading-normal; .code-mode-dark & { @@ -208,13 +208,13 @@ div.highlight.line-numbers { } .example-program { - .example-program-footer { @apply hidden; } @screen md { - pre, .code-max-h { + pre, + .code-max-h { @apply rounded-t rounded-b-none mb-0 pb-0.5; } @@ -222,7 +222,7 @@ div.highlight.line-numbers { @apply block bg-blue-900 -mt-1 pb-1 px-2 rounded-b text-base mb-4 text-right; a { - @apply text-blue-300 ; + @apply text-blue-300; &:hover { @apply text-blue-200; diff --git a/theme/src/scss/_copy-button.scss b/theme/src/scss/_copy-button.scss index 44f28f047bc3a..5eb08ba8d3a6d 100644 --- a/theme/src/scss/_copy-button.scss +++ b/theme/src/scss/_copy-button.scss @@ -32,7 +32,6 @@ div.highlight { box-shadow: 0px 0px 12px #364098; } - .code-mode-dark & { background: #4d5bd9; } @@ -54,7 +53,7 @@ div.highlight { display: flex; } - @media(min-width: 1024px) { + @media (min-width: 1024px) { i.copy { display: flex; } @@ -65,7 +64,7 @@ div.highlight { @include transition; color: #fff; font-size: 14px; - font-family: 'Inter'; + font-family: "Inter"; padding: 8px 8px 8px 10px; .code-mode-dark & { diff --git a/theme/src/scss/_customer-logo.scss b/theme/src/scss/_customer-logo.scss index 456a5657271e3..45572ac44f4e8 100644 --- a/theme/src/scss/_customer-logo.scss +++ b/theme/src/scss/_customer-logo.scss @@ -8,7 +8,7 @@ @apply w-full h-full; } - path { + path { fill: black; } } @@ -20,7 +20,7 @@ } &-hoverable:not(:hover) { - filter: grayscale(1); + filter: grayscale(1); } } diff --git a/theme/src/scss/_event-list.scss b/theme/src/scss/_event-list.scss index f2c0434cc4e49..fe8417724d2a9 100644 --- a/theme/src/scss/_event-list.scss +++ b/theme/src/scss/_event-list.scss @@ -65,34 +65,34 @@ pulumi-filter-select-option-group { @apply font-display text-base; - + .toggle { @apply pl-2 pr-6 py-1 rounded bg-white border border-gray-300 transition-all; - + @screen md { @apply w-32; } - + &:hover { @apply text-black; background-color: #e8e8ec; } } - + .options { @apply bg-white py-2 pl-1 pr-4 rounded shadow mt-1 border border-gray-300 leading-loose z-50; - + @screen md { @apply pr-8; } } - + &:hover, &[expanded] { &::part(toggle) { @apply text-black; } - + .toggle { @apply text-black; background-color: #e8e8ec; @@ -100,10 +100,9 @@ } } } - } -@each $filter-name in "upcoming" "on-demand" "ai-answers"{ +@each $filter-name in "upcoming" "on-demand" "ai-answers" { ##{$filter-name}:target { @if $filter-name != "upcoming" { ~ .event-list-filter li[data-filter-name="upcoming"] { @@ -147,7 +146,7 @@ } // Sort AI answers to the bottom of the list so they don't push dated events down the list. - li[data-filters~="ai-answers"] { + li[data-filters~="ai-answers"] { @apply order-last; } } diff --git a/theme/src/scss/_event-schedule.scss b/theme/src/scss/_event-schedule.scss index 8ee969841ae1f..b2f2f790857f8 100644 --- a/theme/src/scss/_event-schedule.scss +++ b/theme/src/scss/_event-schedule.scss @@ -1,64 +1,64 @@ .event-schedule { - input { - position: absolute; - opacity: 0; - z-index: -1; - } - - .schedule { - border-radius: 8px; - overflow: hidden; - } - .schedule-item { - width: 100%; - overflow: hidden; - &-label { - display: flex; - justify-content: space-between; - padding: 1em; - background-color: #fff; - cursor: pointer; - &:hover { - background: darken(#fff, 2%); - } - &::after { - content: "\276F"; - width: 1em; - height: 1em; - text-align: center; - transition: all .35s; - } + input { + position: absolute; + opacity: 0; + z-index: -1; } - &-content { - display: none; - padding: 0 1em 1em 1em; - background: #fff; - transition: all .35s; + + .schedule { + border-radius: 8px; + overflow: hidden; } - &-close { - display: flex; - justify-content: flex-end; - padding: 1em; - font-size: 0.75em; - background: #fff; - cursor: pointer; - &:hover { - background: darken(#fff, 2%); - } + .schedule-item { + width: 100%; + overflow: hidden; + &-label { + display: flex; + justify-content: space-between; + padding: 1em; + background-color: #fff; + cursor: pointer; + &:hover { + background: darken(#fff, 2%); + } + &::after { + content: "\276F"; + width: 1em; + height: 1em; + text-align: center; + transition: all 0.35s; + } + } + &-content { + display: none; + padding: 0 1em 1em 1em; + background: #fff; + transition: all 0.35s; + } + &-close { + display: flex; + justify-content: flex-end; + padding: 1em; + font-size: 0.75em; + background: #fff; + cursor: pointer; + &:hover { + background: darken(#fff, 2%); + } + } } - } - - input:checked { - + .schedule-item-label { - background: #fff; - &::after { - transform: translateY(25%) rotate(90deg); - } + + input:checked { + + .schedule-item-label { + background: #fff; + &::after { + transform: translateY(25%) rotate(90deg); + } + } + ~ .schedule-item-content { + display: block; + max-height: 100vh; + padding: 1em; + } } - ~ .schedule-item-content { - display: block; - max-height: 100vh; - padding: 1em; - } - } -} \ No newline at end of file +} diff --git a/theme/src/scss/_fonts.scss b/theme/src/scss/_fonts.scss index b16636a08ab49..c0f7745e3fcc8 100644 --- a/theme/src/scss/_fonts.scss +++ b/theme/src/scss/_fonts.scss @@ -21,7 +21,6 @@ src: url("/fonts/iosevka-fixed-extendedbold.woff2") format("woff2"); } - @font-face { font-family: "Gilroy"; font-weight: 400; diff --git a/theme/src/scss/_header.scss b/theme/src/scss/_header.scss index d4bad964267ab..61e4ca001910d 100644 --- a/theme/src/scss/_header.scss +++ b/theme/src/scss/_header.scss @@ -39,7 +39,7 @@ .top-nav-banner-cta-text { // TODO: update color - color: #505bd1; //#4d5bd9; + color: #505bd1; //#4d5bd9; } } } @@ -54,7 +54,7 @@ position: relative; &.is-pinned { - box-shadow: 0 1px 12px 0 rgba(0,0,0,.06),0 1px 4px 0 rgba(0,0,0,.04); + box-shadow: 0 1px 12px 0 rgba(0, 0, 0, 0.06), 0 1px 4px 0 rgba(0, 0, 0, 0.04); @screen md { @apply shadow-none; @@ -66,7 +66,6 @@ } .logo-nav-menu { - @apply w-full bg-gray-850 pt-2 -ml-2 text-white font-display z-50; top: 44px; // Height of the nav bar at screens below large. @@ -130,7 +129,7 @@ &.is-pinned { @apply sticky; - box-shadow: 0 1px 12px 0 rgba(0,0,0,.06),0 1px 4px 0 rgba(0,0,0,.04); + box-shadow: 0 1px 12px 0 rgba(0, 0, 0, 0.06), 0 1px 4px 0 rgba(0, 0, 0, 0.04); } .logo-container { @@ -206,7 +205,6 @@ @include gradient-border; @apply pt-1 pb-4 pr-5 text-xs; } - } .header-nav-one-col-drop-down { @@ -254,7 +252,7 @@ color: theme("colors.gray.800"); i { min-width: 1.5rem; - color:theme("colors.gray.700"); + color: theme("colors.gray.700"); } } } @@ -440,7 +438,6 @@ a { @apply flex h-full w-full justify-center items-center; } - } @screen lg { @apply hidden; @@ -460,7 +457,8 @@ } } -.registry-hero, .docs-hero { +.registry-hero, +.docs-hero { @apply w-full flex relative flex-col justify-center; .dot-overlay { diff --git a/theme/src/scss/_hero.scss b/theme/src/scss/_hero.scss index 4e8905b66012e..440666deae9f8 100644 --- a/theme/src/scss/_hero.scss +++ b/theme/src/scss/_hero.scss @@ -129,7 +129,9 @@ .page-hero-title { @apply w-full flex flex-col items-center justify-center pointer-events-none; - h1, h2, h3 { + h1, + h2, + h3 { @apply text-center max-w-4xl; @screen lg { font-size: 4.5rem; diff --git a/theme/src/scss/_lists.scss b/theme/src/scss/_lists.scss index e8fb2a7a8ae25..388cb77fdfaa2 100644 --- a/theme/src/scss/_lists.scss +++ b/theme/src/scss/_lists.scss @@ -2,8 +2,7 @@ dl { &.resources-properties, &.package-details, &.tabular, - body.section-templates & - { + body.section-templates & { @apply mb-8 mt-4 p-1 flex flex-col items-start items-stretch bg-gray-100 border rounded border-gray-300 text-sm text-gray-700; @screen lg { diff --git a/theme/src/scss/_notes.scss b/theme/src/scss/_notes.scss index b9d16b4d39a74..b69b461101289 100644 --- a/theme/src/scss/_notes.scss +++ b/theme/src/scss/_notes.scss @@ -49,7 +49,7 @@ } div.content { - font-family: 'Inter'; + font-family: "Inter"; font-weight: 400; font-size: 14px; color: #131314; @@ -60,7 +60,7 @@ &.note-info { background: #f6f7fd; - a, + a, i { color: #4d5bd9; } @@ -78,7 +78,7 @@ background: #fcf2e9; a { - color: #9D5314; + color: #9d5314; } i { diff --git a/theme/src/scss/components/_convert.scss b/theme/src/scss/components/_convert.scss index e1e4f6d425913..461087f7044a4 100644 --- a/theme/src/scss/components/_convert.scss +++ b/theme/src/scss/components/_convert.scss @@ -33,7 +33,7 @@ pulumi-convert { @apply cursor-default bg-blue-800 border-blue-800 text-gray-400; } - @screen xl { + @screen xl { @apply w-auto justify-start; } } diff --git a/theme/src/scss/components/_docs-nav.scss b/theme/src/scss/components/_docs-nav.scss new file mode 100644 index 0000000000000..932901ec22776 --- /dev/null +++ b/theme/src/scss/components/_docs-nav.scss @@ -0,0 +1,24 @@ +#docs-main-nav { + pulumi-docs-nav { + a { + &:hover { + @apply no-underline; + } + } + + li { + @apply rounded p-0.5; + + &:hover { + @apply bg-blue-100; + } + + > ol { + @apply bg-white; + } + } + } +} + +pulumi-docs-toc { +} diff --git a/theme/src/scss/components/_resource-links.scss b/theme/src/scss/components/_resource-links.scss index 7cff8da5c54a8..198e77d6f1624 100644 --- a/theme/src/scss/components/_resource-links.scss +++ b/theme/src/scss/components/_resource-links.scss @@ -1,4 +1,4 @@ -pulumi-resource-links{ +pulumi-resource-links { .container { @apply mb-6; } diff --git a/theme/src/scss/components/_tabs.scss b/theme/src/scss/components/_tabs.scss index ca26bea4b8c11..441c7ae98310a 100644 --- a/theme/src/scss/components/_tabs.scss +++ b/theme/src/scss/components/_tabs.scss @@ -1,5 +1,4 @@ pulumi-tabs { - // The tab list. &::part(tabs) { // If we don't to this, we'll get a flash of unstyled content. diff --git a/theme/src/scss/docs/_cloud-overview.scss b/theme/src/scss/docs/_cloud-overview.scss index 362ac52b24eb0..16943dc3a007b 100644 --- a/theme/src/scss/docs/_cloud-overview.scss +++ b/theme/src/scss/docs/_cloud-overview.scss @@ -10,12 +10,12 @@ $box-shadow: #5f606524; section.cloud-overview { div.accordion { overflow: hidden; - + label { padding-top: 12px; border-radius: 4px; display: flex; - font-family: 'Inter'; + font-family: "Inter"; font-weight: 500; font-size: 16px; color: $text-color-inner-card; @@ -24,52 +24,52 @@ $box-shadow: #5f606524; justify-content: center; align-items: center; } - + div.icon { margin-left: 8px; } - + label:hover { text-decoration: underline; } } - + div#accordion-components { div.accordion-content, input, label.hide, - input:checked ~ label.show { + input:checked ~ label.show { display: none; } - + input:checked ~ div.accordion-content, input:checked ~ label.hide { display: flex; } } - + div#accordion-guides { div.accordion-content, input, label.hide, - input:checked ~ label.show { + input:checked ~ label.show { display: none; } - + input:checked ~ div.accordion-content, input:checked ~ label.hide { display: flex; } } - + div#accordion-templates { div.accordion-content, input, label.hide, - input:checked ~ label.show { + input:checked ~ label.show { display: none; } - + input:checked ~ div.accordion-content, input:checked ~ label.hide { display: flex; @@ -80,13 +80,16 @@ $box-shadow: #5f606524; flex-direction: column; gap: 24px; - h1, h2, p { + h1, + h2, + p { color: $text-color; margin: 0; } - h1, h2 { - font-family: 'Gilroy'; + h1, + h2 { + font-family: "Gilroy"; } h1 { @@ -119,7 +122,6 @@ $box-shadow: #5f606524; flex-direction: row; flex-wrap: wrap; gap: 12px; - } .flex-2-col { @@ -204,12 +206,12 @@ $box-shadow: #5f606524; } div.heading { - display:flex; + display: flex; align-items: center; } div.card-inner { - box-shadow: 0px 0px 12px rgba(95,96,101,.08); + box-shadow: 0px 0px 12px rgba(95, 96, 101, 0.08); border: 1px solid $border-color-inner-card; padding: 16px 24px; display: flex; @@ -245,7 +247,7 @@ $box-shadow: #5f606524; } p.inner-card-description { - font-family: 'Inter'; + font-family: "Inter"; font-weight: 400; font-size: 14px; color: $text-color; @@ -267,23 +269,23 @@ $box-shadow: #5f606524; } .card-gradient { - background: rgb(246, 247, 253); - background: linear-gradient( - 135deg, - rgba(246, 247, 253, 1) 0%, - rgba(249, 247, 252, 1) 5%, - rgba(249, 245, 250, 1) 10%, - rgba(254, 248, 249, 1) 15%, - rgba(255, 253, 247, 1) 20%, - rgba(255, 255, 255, 1) 25%, - rgba(255, 255, 255, 1) 75%, - rgba(254, 248, 249, 1) 80%, - rgba(254, 248, 249, 1) 85%, - rgba(249, 245, 250, 1) 90%, - rgba(249, 247, 252, 1) 95%, - rgba(246, 247, 253, 1) 100% - ); - } + background: rgb(246, 247, 253); + background: linear-gradient( + 135deg, + rgba(246, 247, 253, 1) 0%, + rgba(249, 247, 252, 1) 5%, + rgba(249, 245, 250, 1) 10%, + rgba(254, 248, 249, 1) 15%, + rgba(255, 253, 247, 1) 20%, + rgba(255, 255, 255, 1) 25%, + rgba(255, 255, 255, 1) 75%, + rgba(254, 248, 249, 1) 80%, + rgba(254, 248, 249, 1) 85%, + rgba(249, 245, 250, 1) 90%, + rgba(249, 247, 252, 1) 95%, + rgba(246, 247, 253, 1) 100% + ); + } section.get-started { display: flex; @@ -306,7 +308,7 @@ $box-shadow: #5f606524; } p { - font-family: 'Gilroy'; + font-family: "Gilroy"; font-weight: 500; font-size: 21px; margin: 0; @@ -344,13 +346,13 @@ $box-shadow: #5f606524; border-radius: 4px; padding: 24px; flex-basis: 50%; - + div.heading p { - font-family: 'Gilroy'; + font-family: "Gilroy"; font-weight: 500; font-size: 21px; } - + div.content-link { background: $white; border: 1px solid $border-color-inner-card; @@ -358,7 +360,7 @@ $box-shadow: #5f606524; border-radius: 4px; padding: 8px 24px; flex-basis: 100%; - + &:hover { background: $card-background; border: 1px solid $border-hover; @@ -366,11 +368,11 @@ $box-shadow: #5f606524; div.heading div.icon { top: -1px; - color: $text-color-inner-card + color: $text-color-inner-card; } div.heading p.content-name { - font-family: 'Gilroy'; + font-family: "Gilroy"; font-weight: 500; font-size: 18px; color: $text-color-inner-card; @@ -390,7 +392,7 @@ $box-shadow: #5f606524; align-items: flex-start; p.provider-label { - font-family: 'Inter'; + font-family: "Inter"; font-size: 14px; text-align: right; margin-top: 4px; @@ -440,4 +442,4 @@ $box-shadow: #5f606524; margin-right: 2px; } } -} \ No newline at end of file +} diff --git a/theme/src/scss/docs/_docs-home.scss b/theme/src/scss/docs/_docs-home.scss index 2004ea9c08b84..d431b83a8de65 100644 --- a/theme/src/scss/docs/_docs-home.scss +++ b/theme/src/scss/docs/_docs-home.scss @@ -3,7 +3,10 @@ section.docs-home { flex-direction: column; gap: 24px; - h1, h2, h3, p { + h1, + h2, + h3, + p { margin: 0 !important; margin-top: 0; } @@ -13,7 +16,7 @@ section.docs-home { } h3 { - font-family: 'Gilroy'; + font-family: "Gilroy"; font-weight: 500; font-size: 21px; color: map-get($gray, 950); @@ -61,7 +64,7 @@ section.docs-home { border-radius: 4px; border: 1px map-get($brand, "blue") solid; background: $white; - font-family: 'Inter'; + font-family: "Inter"; font-weight: 400; font-size: 14px; color: $white; @@ -87,7 +90,7 @@ section.docs-home { } h2 { - font-family: 'Gilroy'; + font-family: "Gilroy"; font-weight: 500; font-size: 24px; color: map-get($gray, 950); @@ -183,7 +186,7 @@ section.docs-home { a { flex: 1; - border: 1px solid #E5E5E9; + border: 1px solid #e5e5e9; filter: drop-shadow(0px 2px 24px rgba(95, 96, 101, 0.14)); border-radius: 4px; @@ -199,7 +202,7 @@ section.docs-home { div.label { background: $white; border-radius: 0px 0px 4px 4px; - font-family: 'Inter'; + font-family: "Inter"; font-weight: 400; font-size: 18px; color: map-get($gray, 950); diff --git a/theme/src/scss/docs/_docs-main.scss b/theme/src/scss/docs/_docs-main.scss index 11530cc218f60..d0613ebde8ba0 100644 --- a/theme/src/scss/docs/_docs-main.scss +++ b/theme/src/scss/docs/_docs-main.scss @@ -16,19 +16,36 @@ body.section-registry { div.h1-gradient { width: calc(100% - 32px); height: 12px; - background: linear-gradient(90deg, map-get($brand, "yellow") 0%, map-get($brand, "salmon") 18.23%, map-get($brand, "fuchsia-darker") 38.02%, map-get($brand, "purple") 53.65%, map-get($brand, "violet") 74.48%, map-get($brand, "blue-lighter") 100%); + background: linear-gradient( + 90deg, + map-get($brand, "yellow") 0%, + map-get($brand, "salmon") 18.23%, + map-get($brand, "fuchsia-darker") 38.02%, + map-get($brand, "purple") 53.65%, + map-get($brand, "violet") 74.48%, + map-get($brand, "blue-lighter") 100% + ); opacity: 0.1; position: relative; top: -34px; } section.docs-content { - h1, h2, h3, h4, h5, h6 { + h1, + h2, + h3, + h4, + h5, + h6 { font-family: Gilroy; line-height: 1.5; } - h2, h3, h4, h5, h6 { + h2, + h3, + h4, + h5, + h6 { margin: 18px 0 !important; } @@ -79,11 +96,10 @@ body.section-registry { font-weight: 600; font-size: 16px; color: map-get($gray, 600); - } p { - font-family: 'Inter'; + font-family: "Inter"; font-weight: 400; font-size: 16px; color: map-get($gray, 950); @@ -97,27 +113,27 @@ body.section-registry { } p a:not(.btn-secondary), - ul li a[href] { + ul li a[href] { color: map-get($brand, "blue"); - background: linear-gradient(90deg,rgba(142, 143, 151, 0),rgba(142, 143, 151, 0)),linear-gradient(90deg,map-get($gray, 450),map-get($gray, 450)); - background-position: 100% 100%,0 100%; + background: linear-gradient(90deg, rgba(142, 143, 151, 0), rgba(142, 143, 151, 0)), linear-gradient(90deg, map-get($gray, 450), map-get($gray, 450)); + background-position: 100% 100%, 0 100%; background-repeat: no-repeat; - background-size: 100% 0.1em,0 0.1em; + background-size: 100% 0.1em, 0 0.1em; padding-bottom: 0.2rem; - transition: background-size .3s; + transition: background-size 0.3s; transition-timing-function: ease-in; &:hover { color: map-get($brand, "blue-darker"); text-decoration: none; - background-size: 0 0.1em,100% 0.1em; + background-size: 0 0.1em, 100% 0.1em; } } div.highlight pre, code, .font-mono { - font-family: 'Iosevka'; + font-family: "Iosevka"; font-weight: 400; } } @@ -156,7 +172,7 @@ body.section-registry { h2, ul h2 { - font-family: 'Inter'; + font-family: "Inter"; font-weight: 500; font-size: 16px; line-height: 14px; @@ -189,7 +205,7 @@ body.section-registry { div.all-packages-icon-link { a.all-packages { - font-family: 'Inter'; + font-family: "Inter"; font-weight: 500; font-size: 16px; color: #2f3032; @@ -405,7 +421,7 @@ body.section-registry { .content { border: none; margin: 0; - padding: 0 + padding: 0; } div.expand-more-18-18 { @@ -443,7 +459,6 @@ body.section-registry { display: none; } - @media (min-width: 1024px) { flex-direction: row; gap: 24px; @@ -462,7 +477,7 @@ body.section-registry { .table-of-contents-feedback, #docsFeedbackContainer, - .docs-marketing-ad { + .docs-marketing-ad { display: block; } @@ -515,7 +530,7 @@ body.section-registry { justify-content: space-between; align-items: center; display: flex; - font-family: 'Inter'; + font-family: "Inter"; font-weight: 400; font-size: 12px; color: #5a5a5a; @@ -557,7 +572,7 @@ body.section-registry { div.version-info, .note { - font-family: 'Inter'; + font-family: "Inter"; font-weight: 400; font-size: 12px; color: #131314; @@ -570,10 +585,10 @@ body.section-registry { a { display: flex; gap: 4px; - font-family: 'Inter'; + font-family: "Inter"; font-weight: 500; font-size: 12px; - color: #4D5BD9; + color: #4d5bd9; align-items: center; span { @@ -603,7 +618,7 @@ body.section-registry { div.accordion-content, input, label.hide, - input:checked ~ label.show { + input:checked ~ label.show { display: none; } @@ -635,7 +650,7 @@ body.section-registry { div.package-card { display: none; - box-shadow: 0px 4px 4px 0px #DCDCDC40; + box-shadow: 0px 4px 4px 0px #dcdcdc40; @media (min-width: 1024px) { display: flex; @@ -664,7 +679,7 @@ body.section-registry { align-items: center; h2 { - font-family: 'Inter'; + font-family: "Inter"; font-weight: 600; font-size: 12px; color: #8e8f97; @@ -684,7 +699,7 @@ body.section-registry { } li a { - font-family: 'Inter'; + font-family: "Inter"; font-weight: 400; font-size: 14px; color: #364098; @@ -722,7 +737,7 @@ body.section-registry { div.accordion-content, input, label.hide, - input:checked ~ label.show { + input:checked ~ label.show { display: none; } diff --git a/theme/src/scss/docs/_docs-top-nav.scss b/theme/src/scss/docs/_docs-top-nav.scss index 17aa4833eda30..9242c39969bd4 100644 --- a/theme/src/scss/docs/_docs-top-nav.scss +++ b/theme/src/scss/docs/_docs-top-nav.scss @@ -37,14 +37,14 @@ nav.actually-docs { margin-left: 0; } - @media (min-width: 640px){ + @media (min-width: 640px) { gap: 36px; } } div.logo-get-started, div.logo-parent { - @media (min-width: 640px){ + @media (min-width: 640px) { width: auto; } } @@ -62,7 +62,7 @@ nav.actually-docs { &:hover { color: #fff; - background: linear-gradient(90deg,#be5188,#805ac3) border-box; + background: linear-gradient(90deg, #be5188, #805ac3) border-box; } } } @@ -89,8 +89,7 @@ nav.actually-docs { div.nav-items ul { display: flex; - li i - li div.icon { + li i li div.icon { margin-right: 4px; } @@ -105,30 +104,30 @@ nav.actually-docs { li.docs, li.registry, li.ai, - div.get-started { + div.get-started { display: none; } - + li.github-widget, li.slack { - @media (min-width: 900px){ + @media (min-width: 900px) { display: flex; } } - + li.docs, li.registry { @media (min-width: 768px) { - display: flex + display: flex; } } - + li.ai { @media (min-width: 475px) { - display: flex + display: flex; } } - + div.get-started { @media (min-width: 450px) { display: flex; @@ -136,4 +135,4 @@ nav.actually-docs { } } } -} \ No newline at end of file +} diff --git a/theme/src/scss/docs/_footer.scss b/theme/src/scss/docs/_footer.scss index b3fb515fafe05..4671f9d476089 100644 --- a/theme/src/scss/docs/_footer.scss +++ b/theme/src/scss/docs/_footer.scss @@ -1,7 +1,16 @@ footer.docs-footer { padding: 24px; border-top: 2px solid; - border-image: linear-gradient(90deg, rgba(247, 191, 42, 0.3) 0%, rgba(242, 110, 126, 0.3) 18.23%, rgba(190, 81, 136, 0.3) 38.02%, rgba(138, 51, 145, 0.3) 53.65%, rgba(128, 90, 195, 0.3) 74.48%, rgba(118, 130, 244, 0.3)) 1; + border-image: linear-gradient( + 90deg, + rgba(247, 191, 42, 0.3) 0%, + rgba(242, 110, 126, 0.3) 18.23%, + rgba(190, 81, 136, 0.3) 38.02%, + rgba(138, 51, 145, 0.3) 53.65%, + rgba(128, 90, 195, 0.3) 74.48%, + rgba(118, 130, 244, 0.3) + ) + 1; justify-content: space-between; gap: 40px; @@ -18,15 +27,15 @@ footer.docs-footer { } p.open-source { - font-family: 'Inter'; + font-family: "Inter"; font-weight: 600; - font-size: 16px; + font-size: 16px; color: #5f6065; margin-top: 0; } p.copyright { - font-family: 'Inter'; + font-family: "Inter"; font-weight: 400; font-size: 14px; color: #808080; @@ -41,11 +50,11 @@ footer.docs-footer { text-align: right; li { - font-family: 'Inter'; + font-family: "Inter"; font-weight: 400; font-size: 14px; color: #5f6065; - + &:hover { text-decoration: underline; text-underline-offset: 6px; @@ -53,4 +62,4 @@ footer.docs-footer { } } } -} \ No newline at end of file +} diff --git a/theme/src/scss/docs/_icons.scss b/theme/src/scss/docs/_icons.scss index e14b4752034d0..8c117a1b96c12 100644 --- a/theme/src/scss/docs/_icons.scss +++ b/theme/src/scss/docs/_icons.scss @@ -22,7 +22,6 @@ div.icon-14-14 { background-size: 14px 14px; } - div.icon-16-16 { width: 16px; height: 16px; diff --git a/theme/src/scss/docs/_main-nav.scss b/theme/src/scss/docs/_main-nav.scss index ab1441413e9fe..9d312209f85fa 100644 --- a/theme/src/scss/docs/_main-nav.scss +++ b/theme/src/scss/docs/_main-nav.scss @@ -86,7 +86,8 @@ nav.main-nav { margin-left: 1rem; } - .toggleButton, .toggleButton-topLevel { + .toggleButton, + .toggleButton-topLevel { @apply cursor-pointer; color: map-get($gray, 950); font-size: 11px; diff --git a/theme/src/scss/docs/_packages.scss b/theme/src/scss/docs/_packages.scss index d64078e7c0b75..20168e2968dcb 100644 --- a/theme/src/scss/docs/_packages.scss +++ b/theme/src/scss/docs/_packages.scss @@ -177,7 +177,7 @@ div.packages section.featured-packages { border-radius: 12px; display: flex; flex-direction: column; - flex-basis: 100%;; + flex-basis: 100%; align-items: center; justify-content: stretch; padding: 18px; @@ -189,17 +189,17 @@ div.packages section.featured-packages { text-align: center; flex: 1; } - + .package-logo { display: flex; align-items: center; justify-content: center; height: 32px; } - + .package-title { flex-grow: 1; - font-family: 'Gilroy'; + font-family: "Gilroy"; font-weight: 500; font-size: 24px; color: #131314; @@ -207,9 +207,9 @@ div.packages section.featured-packages { align-items: center; justify-content: center; } - + .package-version { - font-family: 'Gilroy'; + font-family: "Gilroy"; font-weight: 500; font-size: 14px; text-align: center; diff --git a/theme/src/scss/docs/_registry.scss b/theme/src/scss/docs/_registry.scss index bcb37ad88d058..7f1ea2aeada49 100644 --- a/theme/src/scss/docs/_registry.scss +++ b/theme/src/scss/docs/_registry.scss @@ -1,6 +1,6 @@ a.pulumi-ai-badge { display: inline-block; - + div { width: fit-content; margin-top: 4px; @@ -24,12 +24,12 @@ a.pulumi-ai-badge { i { margin-left: 12px; font-size: 14px; - position:relative; - top:-1px; + position: relative; + top: -1px; color: transparent; -webkit-text-stroke-width: 1.5px; -webkit-text-stroke-color: #2f3032; } } } -} \ No newline at end of file +} diff --git a/theme/src/scss/docs/_tutorials.scss b/theme/src/scss/docs/_tutorials.scss index c877389de9825..d5eade6692f1d 100644 --- a/theme/src/scss/docs/_tutorials.scss +++ b/theme/src/scss/docs/_tutorials.scss @@ -1,13 +1,37 @@ -.section-tutorials, .section-collections { - +.section-tutorials, +.section-collections { .gradient-card { - background: linear-gradient(121deg, #F6F7FD 0%, #F9F7FC 5.24%, #F9F5FA 9.77%, #FEF8F9 14.35%, #FFFDF7 17.83%, #FFF 22.11%, #FFF 79.52%, #FFFDF7 86.29%, #FEF8F9 89.41%, #F9F5FA 92.9%, #F9F7FC 96.56%, #F6F7FD 100%, #F6F7FD 100%), #FFF; + background: linear-gradient( + 121deg, + #f6f7fd 0%, + #f9f7fc 5.24%, + #f9f5fa 9.77%, + #fef8f9 14.35%, + #fffdf7 17.83%, + #fff 22.11%, + #fff 79.52%, + #fffdf7 86.29%, + #fef8f9 89.41%, + #f9f5fa 92.9%, + #f9f7fc 96.56%, + #f6f7fd 100%, + #f6f7fd 100% + ), + #fff; } .gradient-highlight { @apply relative opacity-10 h-3 -top-4; width: calc(100% - 2rem); - background: linear-gradient(90deg, map-get($brand, "yellow") 0%, map-get($brand, "salmon") 18.23%, map-get($brand, "fuchsia-darker") 38.02%, map-get($brand, "purple") 53.65%, map-get($brand, "violet") 74.48%, map-get($brand, "blue-lighter") 100%); + background: linear-gradient( + 90deg, + map-get($brand, "yellow") 0%, + map-get($brand, "salmon") 18.23%, + map-get($brand, "fuchsia-darker") 38.02%, + map-get($brand, "purple") 53.65%, + map-get($brand, "violet") 74.48%, + map-get($brand, "blue-lighter") 100% + ); } nav.main-nav { diff --git a/theme/src/scss/main.scss b/theme/src/scss/main.scss index a354384eb9648..faa21ce0263d1 100644 --- a/theme/src/scss/main.scss +++ b/theme/src/scss/main.scss @@ -71,6 +71,7 @@ @import "components/chooser"; @import "components/choosable"; @import "components/convert"; +@import "components/docs-nav"; @import "components/filter-select"; @import "components/greenhouse-jobs-list"; @import "components/install"; @@ -368,7 +369,6 @@ section.newsletter-input pulumi-hubspot-form input.hs-input { } #segment-consent-manager { - > div:first-child { @apply text-black fixed bottom-0 right-0 left-0 p-2 m-4 border-2 border-violet-600 rounded-lg shadow-lg; z-index: 99999; @@ -379,7 +379,7 @@ section.newsletter-input pulumi-hubspot-form input.hs-input { } div { - @apply bg-white; + @apply bg-white; } div:empty { diff --git a/theme/src/scss/marketing/_dismissable-banner.scss b/theme/src/scss/marketing/_dismissable-banner.scss index 1fdc917019774..b6bccc9514b6b 100644 --- a/theme/src/scss/marketing/_dismissable-banner.scss +++ b/theme/src/scss/marketing/_dismissable-banner.scss @@ -10,7 +10,7 @@ a.dismissable-banner { align-items: center; padding: 20px 85px 22px 16px; position: fixed; - background: linear-gradient(90deg, #F6E8C4 0%, #F5D6D7 18.23%, #EFD1D9 38.02%, #DFC8DC 53.65%, #DACBE4 74.48%, #D6D8F5 100%); + background: linear-gradient(90deg, #f6e8c4 0%, #f5d6d7 18.23%, #efd1d9 38.02%, #dfc8dc 53.65%, #dacbe4 74.48%, #d6d8f5 100%); left: 0; bottom: 0; width: 100%; @@ -21,7 +21,7 @@ a.dismissable-banner { justify-content: space-around; flex: 1; } - + div.banner-content { display: flex; flex-wrap: wrap; @@ -31,7 +31,7 @@ a.dismissable-banner { span.fake-link { text-decoration: underline; } - + p { font-family: Gilroy; font-size: 20px; @@ -39,7 +39,7 @@ a.dismissable-banner { color: #131314; margin: 0; } - + div.icon { display: block; text-indent: -9999px; @@ -47,7 +47,7 @@ a.dismissable-banner { div.icon-88-17 { width: 88px; height: 17px; - background-size: 88px 17px; + background-size: 88px 17px; position: relative; } div.zelda-heart-meter { @@ -58,4 +58,4 @@ a.dismissable-banner { i#dismiss-banner { padding: 12px; } -} \ No newline at end of file +} diff --git a/theme/src/scss/marketing/_pulumi-deployments.scss b/theme/src/scss/marketing/_pulumi-deployments.scss index 2fe5fc937fb5d..23adea7d8f945 100644 --- a/theme/src/scss/marketing/_pulumi-deployments.scss +++ b/theme/src/scss/marketing/_pulumi-deployments.scss @@ -1,6 +1,6 @@ div.pulumi-deployments { - box-shadow: var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow); - --tw-shadow: 0 10px 15px -3pxrgba(0,0,0,.1),0 4px 6px -2pxrgba(0,0,0,.05) + box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow); + --tw-shadow: 0 10px 15px -3pxrgba (0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); padding: 2.5rem; background-color: #fff; border: 1px solid #e5e5df; @@ -13,23 +13,23 @@ div.pulumi-deployments { } label { - font-size: .875rem; + font-size: 0.875rem; font-weight: 400; line-height: 1.25rem; } legend { - font-size: .75rem; - opacity: .5; + font-size: 0.75rem; + opacity: 0.5; line-height: 1.25; margin-top: 4px; } p { - font-size: .75rem; + font-size: 0.75rem; font-weight: 400; line-height: 1rem; - opacity: .5; + opacity: 0.5; } input:not([type="submit"]):not([type="checkbox"]), diff --git a/theme/src/scss/marketing/_pulumi-up.scss b/theme/src/scss/marketing/_pulumi-up.scss index 7c6215dcf8226..da7673ec0b3af 100644 --- a/theme/src/scss/marketing/_pulumi-up.scss +++ b/theme/src/scss/marketing/_pulumi-up.scss @@ -22,7 +22,7 @@ body.section-pulumi-up { } .yellow-header-text { - font-family: 'Gilroy'; + font-family: "Gilroy"; font-style: normal; font-weight: 500; font-size: 48px; @@ -30,7 +30,7 @@ body.section-pulumi-up { } .banner-description p { - font-family: 'Inter'; + font-family: "Inter"; font-size: 18px; line-height: 27px; @@ -45,7 +45,8 @@ body.section-pulumi-up { @media only screen and (max-width: 768px) { // change the banner - .banner-image, .banner-image-confirmation { + .banner-image, + .banner-image-confirmation { background-image: none; height: auto; background-color: rgb(249, 249, 250); @@ -54,7 +55,7 @@ body.section-pulumi-up { // move text off the banner .banner-description { - display: none; + display: none; } .below-banner-description { @@ -70,7 +71,8 @@ body.section-pulumi-up { } .why-attend { - div[class^="icon-"], div[class*=" icon-"] { + div[class^="icon-"], + div[class*=" icon-"] { width: 3rem; height: 3rem; padding: 0.6rem; @@ -83,22 +85,20 @@ body.section-pulumi-up { } .pulumiup-bg-yellow { - background-color: #FF9900; - ; + background-color: #ff9900; } .pulumiup-bg-green { - background-color: #437E37; + background-color: #437e37; } .yellow-blue-gradient { - background: linear-gradient(180deg, #7BDEFF 0.21%, #F0F9DE 25.21%, #DBF4E4 76.77%, #85E0FC 100.21%); + background: linear-gradient(180deg, #7bdeff 0.21%, #f0f9de 25.21%, #dbf4e4 76.77%, #85e0fc 100.21%); } .btn-primary:hover { - background:linear-gradient(90deg, #be5188 0%, #805ac3 100%) + background: linear-gradient(90deg, #be5188 0%, #805ac3 100%); } - } // 2022 PulumiUP styles. @@ -359,18 +359,18 @@ body.section-pulumi-up { // text-shadow: none; // } - // .why-attend { - // div[class^="icon-"], div[class*=" icon-"] { - // width: 3rem; - // height: 3rem; - // padding: 0.6rem; - - // svg { - // width: 2rem; - // height: 2rem; - // } - // } - // } +// .why-attend { +// div[class^="icon-"], div[class*=" icon-"] { +// width: 3rem; +// height: 3rem; +// padding: 0.6rem; + +// svg { +// width: 2rem; +// height: 2rem; +// } +// } +// } // } // 2021 PulumiUP styles (can remove after page is updated). diff --git a/theme/src/scss/marketing/_shape-backgrounds.scss b/theme/src/scss/marketing/_shape-backgrounds.scss index cab8bfeb42fdc..45f359784220b 100644 --- a/theme/src/scss/marketing/_shape-backgrounds.scss +++ b/theme/src/scss/marketing/_shape-backgrounds.scss @@ -16,7 +16,7 @@ } &.about-awards-section { - .circle-top-left { + .circle-top-left { @apply rounded-full absolute bg-yellow-600; width: 17rem; height: 17rem; @@ -32,7 +32,7 @@ bottom: 14rem; } - .circle-bottom-left { + .circle-bottom-left { @apply rounded-full absolute bg-purple-600; width: 12rem; height: 12rem; @@ -50,11 +50,11 @@ } &.about-what-we-believe { - .circle-top-left { + .circle-top-left { @apply rounded-full absolute bg-fuchsia-600; width: 22rem; height: 22rem; - left: .75rem; + left: 0.75rem; top: -9.5rem; } @@ -74,7 +74,7 @@ bottom: 16rem; } - .circle-bottom-left { + .circle-bottom-left { @apply rounded-full absolute bg-purple-600; width: 5.5rem; height: 5.5rem; @@ -396,7 +396,7 @@ @apply absolute top-0 left-0; } } - + .circle-left { @apply rounded-full absolute bg-salmon-600; width: 20.25rem; @@ -989,7 +989,7 @@ right: 6rem; top: 20rem; } - + .circle-left { @apply rounded-full absolute bg-salmon-600; width: 14rem; @@ -1007,7 +1007,7 @@ right: -4.5rem; top: 0.75rem; } - + .circle-center { @apply rounded-full absolute bg-salmon-600; width: 7rem; @@ -1015,7 +1015,7 @@ right: 27rem; top: -3.5rem; } - + .circle-bottom { @apply rounded-full absolute bg-yellow-600; width: 21.25rem; diff --git a/theme/src/scss/marketing/_signup.scss b/theme/src/scss/marketing/_signup.scss index eea777d2145eb..fd0816351f49e 100644 --- a/theme/src/scss/marketing/_signup.scss +++ b/theme/src/scss/marketing/_signup.scss @@ -1,6 +1,6 @@ body.section-signup { - - .top-nav-bar, .desktop-menu { + .top-nav-bar, + .desktop-menu { display: none; } @@ -20,6 +20,6 @@ body.section-signup { @screen xl { @apply text-lg; } - content: "Try Pulumi" + content: "Try Pulumi"; } -} \ No newline at end of file +} diff --git a/theme/src/scss/marketing/_stacked-carousel.scss b/theme/src/scss/marketing/_stacked-carousel.scss index 4093ca75431d6..6b10ea071889a 100644 --- a/theme/src/scss/marketing/_stacked-carousel.scss +++ b/theme/src/scss/marketing/_stacked-carousel.scss @@ -10,7 +10,9 @@ justify-content: space-around; } - .carousel-left-initial, .carousel-left-primary, .carousel-left-secondary { + .carousel-left-initial, + .carousel-left-primary, + .carousel-left-secondary { left: 100%; width: 100%; overflow: hidden; @@ -35,7 +37,9 @@ animation-delay: 20s; } - .carousel-right-initial, .carousel-right-primary, .carousel-right-secondary { + .carousel-right-initial, + .carousel-right-primary, + .carousel-right-secondary { left: -100%; width: 100%; overflow: hidden; @@ -57,7 +61,7 @@ .carousel-right-secondary { animation: scroll-horizontal-reverse 40s linear infinite; - animation-delay: 20s + animation-delay: 20s; } @keyframes scroll-horizontal { @@ -66,7 +70,7 @@ } 100% { - left: -100% + left: -100%; } } @@ -86,7 +90,7 @@ } 100% { - left: 100% + left: 100%; } } @@ -104,7 +108,8 @@ .stacked-carousel-container-single { height: 80px; - .carousel-left-primary, .carousel-left-secondary { + .carousel-left-primary, + .carousel-left-secondary { width: 300%; overflow: hidden; position: absolute; @@ -129,7 +134,7 @@ } 100% { - left: 0% + left: 0%; } } @@ -147,7 +152,8 @@ .stacked-carousel-container-single-mobile { height: 80px; - .carousel-left-primary-mobile, .carousel-left-secondary-mobile { + .carousel-left-primary-mobile, + .carousel-left-secondary-mobile { width: 300%; overflow: hidden; position: absolute; @@ -172,7 +178,7 @@ } 100% { - left: 0% + left: 0%; } } @@ -185,4 +191,4 @@ left: -300%; } } -} \ No newline at end of file +} diff --git a/theme/src/scss/marketing/_workshop-signup.scss b/theme/src/scss/marketing/_workshop-signup.scss index 08e2e1c1fce4a..4c29a3f9e8127 100644 --- a/theme/src/scss/marketing/_workshop-signup.scss +++ b/theme/src/scss/marketing/_workshop-signup.scss @@ -1,6 +1,6 @@ body.section-workshop-signup { - - .top-nav-bar, .desktop-menu { + .top-nav-bar, + .desktop-menu { display: none; } @@ -20,6 +20,6 @@ body.section-workshop-signup { @screen xl { @apply text-lg; } - content: "Try Pulumi" + content: "Try Pulumi"; } -} \ No newline at end of file +} diff --git a/theme/src/ts/algolia/autocomplete.ts b/theme/src/ts/algolia/autocomplete.ts index ac68ae8e7cb10..0fface64a641a 100644 --- a/theme/src/ts/algolia/autocomplete.ts +++ b/theme/src/ts/algolia/autocomplete.ts @@ -21,15 +21,17 @@ let baseTags: Tag[]; // Initialize the autocomplete control. function initAutocomplete(el: HTMLElement) { - // Read the index settings from the container element. appID = el.getAttribute("data-app-id"); searchKey = el.getAttribute("data-search-key"); indexName = el.getAttribute("data-index"); - baseTags = el.getAttribute("data-facets").split(",").map(f => ({ label: f, facet: "section" })); + baseTags = el + .getAttribute("data-facets") + .split(",") + .map(f => ({ label: f, facet: "section" })); - if (!appID || !searchKey ||!indexName ||!baseTags) { - console.error(`Autocomplete element found, but one or more require attributes were missing.`) + if (!appID || !searchKey || !indexName || !baseTags) { + console.error(`Autocomplete element found, but one or more require attributes were missing.`); return; } @@ -45,7 +47,6 @@ function initAutocomplete(el: HTMLElement) { // https://www.algolia.com/doc/ui-libraries/autocomplete/core-concepts/sources/#param-getitems getItems: () => { - // https://www.algolia.com/doc/ui-libraries/autocomplete/api-reference/autocomplete-js/getAlgoliaFacets/ return getAlgoliaFacets({ searchClient, @@ -55,9 +56,7 @@ function initAutocomplete(el: HTMLElement) { facet: "section", params: { query, - filters: mapTagsToFilters( - groupBy(baseTags, (tag: any) => tag.facet as string), - ), + filters: mapTagsToFilters(groupBy(baseTags, (tag: any) => tag.facet as string)), }, }, ], @@ -66,7 +65,6 @@ function initAutocomplete(el: HTMLElement) { // returning an empty array) because we only care about the number of results // per facet; we don't need the facets themselves because we already have them. transformResponse({ facetHits }) { - // Save the item counts on the autocomplete context (its internal state). setContext({ facetHits, @@ -74,8 +72,8 @@ function initAutocomplete(el: HTMLElement) { // Return an empty list. return []; - } - }) + }, + }); }, templates: { item: () => null, @@ -96,11 +94,7 @@ function initAutocomplete(el: HTMLElement) { indexName, query, params: { - filters: mapTagsToFilters( - groupBy( - getTags(state), (tag: any) => tag.facet as string, - ), - ), + filters: mapTagsToFilters(groupBy(getTags(state), (tag: any) => tag.facet as string)), // The existence of these params suggests that paging actually // *does* work in autocomplete (since this is the autocomplete API). // TODO: Make use of these, either with pagination or infinite scroll. @@ -109,7 +103,7 @@ function initAutocomplete(el: HTMLElement) { }, }, ], - }) + }); }, // Tells the autocomplete control which URL to use for navigation (specifically keyboard navigation). @@ -131,13 +125,11 @@ function initAutocomplete(el: HTMLElement) { if (baseTags.length === 1) { return html`
          -
        • +
        @@ -147,46 +139,45 @@ function initAutocomplete(el: HTMLElement) { // Otherwise, return a list of tabs -- one "all results" tab and then one tab per facet. return html`
          -
        • +
        • - ${ baseTags.map(tag => { - + ${baseTags.map(tag => { // Make a tab for each facet, including item counts. Disable tabs with zero results. const facetHit = facetHits.find(f => f.label === tag.label); const isActive = getTags(state).length === 1 && getTags(state)[0].label === tag.label; const isDisabled = !facetHit || facetHit.count === 0; const facetCount = facetHit ? facetHit.count : 0; - return html` -
        • - -
        • ` + return html`
        • + +
        • `; })}
        `; @@ -194,24 +185,19 @@ function initAutocomplete(el: HTMLElement) { item: ({ state, item, components, html }) => { return html` @@ -232,8 +218,8 @@ function initAutocomplete(el: HTMLElement) { } return html` -

        -

        We couldn't find any results for ${ state.query }.

        +

        +

        We couldn't find any results for ${state.query}.

        Try a more general term or use fewer keywords.

        `; }, @@ -261,7 +247,6 @@ function initAutocomplete(el: HTMLElement) { // Handler for any change that occurs on the state of the autocomplete control. onStateChange: ({ state, prevState, setCollections }) => { - // When a query is "cleared out" by the user, reset the list of facets to "all" and drop // any existing results to start fresh. if (prevState.query !== "" && state.query === "") { @@ -293,7 +278,7 @@ function initAutocomplete(el: HTMLElement) { getSources: ({ query, state, refresh, setContext }) => { const sources = []; - sources.push(getFacetsSource(query, state, setContext)) + sources.push(getFacetsSource(query, state, setContext)); sources.push(getResultsSource(query, state, refresh)); // Debounce requests to keep from sending too many queries to Algolia. @@ -305,9 +290,7 @@ function initAutocomplete(el: HTMLElement) { insights: true, // https://www.algolia.com/doc/ui-libraries/autocomplete/core-concepts/plugins/ - plugins: [ - getTagsPlugin(baseTags), - ], + plugins: [getTagsPlugin(baseTags)], }); } diff --git a/theme/src/ts/algolia/utils.ts b/theme/src/ts/algolia/utils.ts index c9760ec520f6e..9d1a48c619e81 100644 --- a/theme/src/ts/algolia/utils.ts +++ b/theme/src/ts/algolia/utils.ts @@ -9,12 +9,9 @@ export interface Tag { // Converts a list of tags into an Algolia filter query. // https://www.algolia.com/doc/guides/managing-results/refine-results/filtering/in-depth/filters-and-facetfilters/ export function mapTagsToFilters(tagsByFacet, operator = "AND") { - const result = Object - .keys(tagsByFacet) + const result = Object.keys(tagsByFacet) .map(facet => { - return `(${tagsByFacet[facet] - .map(({ label }) => `${facet}:"${label}"`) - .join(' OR ')})`; + return `(${tagsByFacet[facet].map(({ label }) => `${facet}:"${label}"`).join(" OR ")})`; }) .join(` ${operator} `); @@ -76,7 +73,7 @@ function debouncePromise(fn, time): any { clearTimeout(timerId); } - return new Promise((resolve) => { + return new Promise(resolve => { timerId = setTimeout(() => resolve(fn(...args)), time); }); }; @@ -88,10 +85,8 @@ export const debounce = debouncePromise(items => Promise.resolve(items), 220); // Listens for search-relevant events. export function listenForEvents() { - // Tiny object make it easier to share data between event handlers and the autocomplete instance. const sharedData = { - // Whether an up or down arrow key was just pressed. The control uses this to decide whether // to scroll the active item into view. upDownPressed: false, @@ -99,7 +94,7 @@ export function listenForEvents() { // Handle command/control-k events by triggering the search button directly. window.addEventListener("keydown", (event: KeyboardEvent) => { - if ((event.key.toLowerCase() === "k" && (event.metaKey || event.ctrlKey))) { + if (event.key.toLowerCase() === "k" && (event.metaKey || event.ctrlKey)) { event.preventDefault(); const searchButton = document.querySelector(`.aa-DetachedSearchButton`) as HTMLButtonElement; @@ -113,17 +108,21 @@ export function listenForEvents() { // capture phase to be sure we get notified *before* the control's state changes; if we didn't, // we wouldn't be notified of the keypress until afterward, at which point it'd be too late to // know whether the state change had resulted from a keypress (and to scroll accordingly). - window.addEventListener("keydown", (event: KeyboardEvent) => { - if ((event.key === "ArrowUp" || event.key === "ArrowDown") && event.target === document.querySelector(`.aa-DetachedFormContainer .aa-Input`)) { - sharedData.upDownPressed = true; - } - }, { capture: true }); + window.addEventListener( + "keydown", + (event: KeyboardEvent) => { + if ((event.key === "ArrowUp" || event.key === "ArrowDown") && event.target === document.querySelector(`.aa-DetachedFormContainer .aa-Input`)) { + sharedData.upDownPressed = true; + } + }, + { capture: true }, + ); // When the clear button is clicked, don't close the modal; instead, clear the value and leave // the modal open. To do this, we have to listen for clicks on the `body` element, because the // modal doesn't exist when the page is rendered -- and could be created and destroyed many // times within a given pageview. - document.body.addEventListener("click", (event) => { + document.body.addEventListener("click", event => { const clickedElement = event.target as HTMLElement; // If the thing clicked was a clear button or one of its descendants, stop the event and @@ -137,7 +136,7 @@ export function listenForEvents() { input.value = ""; input.focus(); input.dispatchEvent(new Event("input")); - }; + } } }); diff --git a/theme/src/ts/developer-advocates.ts b/theme/src/ts/developer-advocates.ts index 6f794fd0adb30..4a479cee64a7a 100644 --- a/theme/src/ts/developer-advocates.ts +++ b/theme/src/ts/developer-advocates.ts @@ -16,5 +16,4 @@ $(function () { $("#past-talks-select").addClass("is-selected"); }); - -}); \ No newline at end of file +}); diff --git a/theme/src/ts/docs-main.ts b/theme/src/ts/docs-main.ts index a355e82c7f6be..a44f13cea7ddd 100644 --- a/theme/src/ts/docs-main.ts +++ b/theme/src/ts/docs-main.ts @@ -1,17 +1,21 @@ let docsMainNavToggleWrapper = $(".docs-main-nav-toggle-wrapper"); let docsNavToggleIcon = $(".docs-nav-toggle-icon"); -$(window).on("resize", function () { - setDocsMainNavPosition(); - setTableOfContentsVisibility(); - setMainNavHeight(); -}).trigger('resize'); - -$(window).on("scroll", function () { - setDocsMainNavPosition(); -}).trigger('resize'); - -$(window).on("load", function() { +$(window) + .on("resize", function () { + setDocsMainNavPosition(); + setTableOfContentsVisibility(); + setMainNavHeight(); + }) + .trigger("resize"); + +$(window) + .on("scroll", function () { + setDocsMainNavPosition(); + }) + .trigger("resize"); + +$(window).on("load", function () { setDocsMainNavPosition(); setTableOfContentsVisibility(); setMainNavHeight(); @@ -25,7 +29,7 @@ $(window).on("load", function() { docsMainNavToggleWrapper.toggleClass("docs-nav-hide"); docsNavToggleIcon.toggleClass("close-docs-main-nav"); docsNavToggleIcon.toggleClass("open-docs-main-nav"); - setTableOfContentsVisibility() + setTableOfContentsVisibility(); }); let packageCardCheckbox = $("#accordion-checkbox-package-card"); @@ -34,8 +38,7 @@ $(window).on("load", function() { packageCardCheckbox.on("change", function () { if (packageCardCheckbox.is(":checked")) { packageCardBackground.css("background", "#fff"); - } - else { + } else { packageCardBackground.css("background", "#f9f9f9"); } }); @@ -49,8 +52,8 @@ $(window).on("load", function() { } } - let collapseContentButton = $("#collapse-content-button") - let expandContentButton = $("#expand-content-button") + let collapseContentButton = $("#collapse-content-button"); + let expandContentButton = $("#expand-content-button"); function expandContentWidth() { $(".docs-main-content").addClass("docs-content-width-expanded"); @@ -78,10 +81,10 @@ $(window).on("load", function() { function setDocsMainNavPosition() { if ($(this).width() <= 1280) { if (docsMainNavToggleWrapper.hasClass("docs-nav-show")) { - docsNavToggleIcon.removeClass("open-docs-main-nav") + docsNavToggleIcon.removeClass("open-docs-main-nav"); docsNavToggleIcon.addClass("close-docs-main-nav"); } else if (docsMainNavToggleWrapper.hasClass("docs-nav-hide")) { - docsNavToggleIcon.removeClass("close-docs-main-nav") + docsNavToggleIcon.removeClass("close-docs-main-nav"); docsNavToggleIcon.addClass("open-docs-main-nav"); } } @@ -125,5 +128,5 @@ function setTableOfContentsVisibility() { } function setMainNavHeight() { - $(".docs-main-nav").css("height", $(".docs-footer").height() + window.innerHeight); + $(".docs-main-nav").css("height", $(".docs-footer").height() + window.innerHeight); } diff --git a/theme/src/ts/misc.ts b/theme/src/ts/misc.ts index df16dfd1e85e9..4b3388b5f36f0 100644 --- a/theme/src/ts/misc.ts +++ b/theme/src/ts/misc.ts @@ -1,5 +1,4 @@ -import {LocalStorageService} from "./state"; - +import { LocalStorageService } from "./state"; const navigationState = new LocalStorageService("navigation-toggle-state"); loadToggleStates(); @@ -22,9 +21,9 @@ function bindToggle(el) { function loadToggleStates() { // checks whether the menu item refers to the current page the // user is on. - const isCurrentPage = (el) => { + const isCurrentPage = el => { const browserUrl = window.location.href; - const anchorRef = $(el).find('a').attr('href'); + const anchorRef = $(el).find("a").attr("href"); return browserUrl.includes(anchorRef); }; @@ -40,9 +39,9 @@ function loadToggleStates() { const folderOpenIcon = $(el).find(".folder-open"); const folderClosedIcon = $(el).find(".folder"); if (folderOpenIcon.length > 0) { - folderOpenIcon.addClass("folder").removeClass("folder-open") + folderOpenIcon.addClass("folder").removeClass("folder-open"); } else if (folderClosedIcon.length > 0) { - folderClosedIcon.addClass("folder-open").removeClass("folder") + folderClosedIcon.addClass("folder-open").removeClass("folder"); } }); }); @@ -50,15 +49,18 @@ function loadToggleStates() { $(".toggleVisible, .toggleVisible-topLevel").each(function (i, el) { // Scroll to active item in list. if (isCurrentPage(el)) { - $("#left-nav").animate({ - scrollTop: $(el).offset().top - 145 - }, 0); + $("#left-nav").animate( + { + scrollTop: $(el).offset().top - 145, + }, + 0, + ); } }); } function updateToggleState(el, toggleState) { - navigationState.updateKey(el.id, toggleState) + navigationState.updateKey(el.id, toggleState); } function bindTopLevelToggle(el) { @@ -163,7 +165,6 @@ function generateOnThisPage() { $(heroTitle).removeClass("hidden"); $(heroTitle).addClass("flex"); - } else { $(pinnedSearchContainerEl).removeClass("hidden"); $(pinnedSearchContainerEl).addClass("flex"); @@ -173,7 +174,6 @@ function generateOnThisPage() { $(heroTitle).addClass("hidden"); $(heroTitle).removeClass("flex"); - } }, { threshold: [1] }, @@ -231,13 +231,12 @@ function generateOnThisPage() { $(this).addClass(activeClassName); const activeLink = $(this).data("filter-name"); - const allLinks = ["who-we-are", "what-we-believe", "community", "history", "awards", "newsroom", "join-us"] + const allLinks = ["who-we-are", "what-we-believe", "community", "history", "awards", "newsroom", "join-us"]; const inactiveLinks = allLinks.filter(link => link !== activeLink); inactiveLinks.forEach(link => { $(`#about-nav li[data-filter-name="${link}"]`).removeClass(activeClassName); - }) - + }); }); }); @@ -245,7 +244,23 @@ function generateOnThisPage() { $("dl.resources-properties dt.property-required.property-replacement") .removeAttr("title") .find(".property-indicator") - .replaceWith('
        ' + "" + ' ' + ' This property is required.' + "" + "" + '
        ' + "" + ' ' + ' ' + '' + ' Changes to this property will trigger replacement.' + "" + "
        " + "
        "); + .replaceWith( + '
        ' + + "" + + ' ' + + ' This property is required.' + + "" + + "" + + '
        ' + + "" + + ' ' + + ' ' + + "" + + ' Changes to this property will trigger replacement.' + + "" + + "
        " + + "
        ", + ); $("dl.resources-properties dt.property-required:not(.property-replacement)") .removeAttr("title") .find(".property-indicator") @@ -254,5 +269,12 @@ function generateOnThisPage() { $("dl.resources-properties dt.property-replacement:not(.property-required)") .removeAttr("title") .find(".property-indicator") - .replaceWith("" + ' ' + ' ' + '' + ' Changes to this property will trigger replacement.' + ""); + .replaceWith( + "" + + ' ' + + ' ' + + "" + + ' Changes to this property will trigger replacement.' + + "", + ); })(jQuery); diff --git a/theme/src/ts/nav.ts b/theme/src/ts/nav.ts index 1a484dc8d1d2c..7fb54c1e047b6 100644 --- a/theme/src/ts/nav.ts +++ b/theme/src/ts/nav.ts @@ -1,4 +1,4 @@ -import {LocalStorageService} from "./state"; +import { LocalStorageService } from "./state"; (function (document, $) { // The main navigation bar. Binds handlers for showing and hiding @@ -27,30 +27,42 @@ import {LocalStorageService} from "./state"; let whyPulumiOpened = false; let learnOpened = false; - $("#why-pulumi-menu-label").click(function() { + $("#why-pulumi-menu-label").click(function () { $("#mobile-dropdown").scroll(); if (whyPulumiOpened) { - $("#mobile-dropdown").animate({ - scrollTop: top - }, 300); + $("#mobile-dropdown").animate( + { + scrollTop: top, + }, + 300, + ); } else { - $("#mobile-dropdown").animate({ - scrollTop: $("#why-pulumi-mobile-menu").position().top - 115 - }, 300); + $("#mobile-dropdown").animate( + { + scrollTop: $("#why-pulumi-mobile-menu").position().top - 115, + }, + 300, + ); } whyPulumiOpened = !whyPulumiOpened; }); - - $("#learn-menu-label").click(function() { + + $("#learn-menu-label").click(function () { $("#mobile-dropdown").scroll(); if (learnOpened) { - $("#mobile-dropdown").animate({ - scrollTop: top - }, 300); + $("#mobile-dropdown").animate( + { + scrollTop: top, + }, + 300, + ); } else { - $("#mobile-dropdown").animate({ - scrollTop: $("#learn-mobile-menu").position().top - 115 - }, 300); + $("#mobile-dropdown").animate( + { + scrollTop: $("#learn-mobile-menu").position().top - 115, + }, + 300, + ); } learnOpened = !learnOpened; }); @@ -64,9 +76,9 @@ import {LocalStorageService} from "./state"; // load saved state of the banner from local storage. function loadBannerState() { if (bannerState.getKey("dismissed") !== "true") { - $(banner).css({"display": "block"}); + $(banner).css({ display: "block" }); } else { - $(banner).css({"display": "none"}); + $(banner).css({ display: "none" }); } } @@ -74,9 +86,8 @@ import {LocalStorageService} from "./state"; $("#dismiss-banner").on("click", function (e) { // intercept href event, so we don't navigate to the link. e.preventDefault(); - - $(banner).css({"display": "none"}); - bannerState.updateKey("dismissed", "true"); - }) + $(banner).css({ display: "none" }); + bannerState.updateKey("dismissed", "true"); + }); })(document, jQuery); diff --git a/theme/src/ts/packages.ts b/theme/src/ts/packages.ts index 7289723ebdf75..63cc782175f09 100644 --- a/theme/src/ts/packages.ts +++ b/theme/src/ts/packages.ts @@ -34,10 +34,11 @@ const filterByTextAndTags = (filters, filterText) => { let packageIsAMatch; - if (downcasedFilterText === AMAZON_STRING || downcasedFilterText === AWS_STRING){ + if (downcasedFilterText === AMAZON_STRING || downcasedFilterText === AWS_STRING) { packageIsAMatch = downcasedPackageTitle.includes(AMAZON_STRING) || downcasedPackageTitle.includes(AWS_STRING); - } else if (downcasedFilterText === GOOGLE_CLOUD_STRING || downcasedFilterText === GCP_STRING || downcasedFilterText === GOOGLE_STRING){ - packageIsAMatch = downcasedPackageTitle.includes(GOOGLE_CLOUD_STRING) || downcasedPackageTitle.includes(GCP_STRING) || downcasedPackageTitle.includes(GOOGLE_STRING); + } else if (downcasedFilterText === GOOGLE_CLOUD_STRING || downcasedFilterText === GCP_STRING || downcasedFilterText === GOOGLE_STRING) { + packageIsAMatch = + downcasedPackageTitle.includes(GOOGLE_CLOUD_STRING) || downcasedPackageTitle.includes(GCP_STRING) || downcasedPackageTitle.includes(GOOGLE_STRING); } else { packageIsAMatch = downcasedPackageTitle.includes(downcasedFilterText); } @@ -66,18 +67,17 @@ const filterByTextAndTags = (filters, filterText) => { } else { $(packages).removeClass("hidden"); } -} +}; $(".section-registry").on("filterSelect", event => { const source: any = event.target; const detail: unknown = event.detail; const filters = detail as any[]; - // We need to cross reference the search input when filter change, so that // users get the combined results of the two mechanisms. const searchElement = $("pulumi-registry-list-search").get(0) as any; - const inputElement = $(searchElement).find('.registry-filter-input'); + const inputElement = $(searchElement).find(".registry-filter-input"); const filterText = inputElement.val() as string; filterByTextAndTags(filters, filterText); @@ -137,22 +137,22 @@ $(".section-registry .no-results .reset").on("click", event => { $(".section-registry").on("packageSearch", event => { const filterText = event.detail as any; - + // We need to cross reference the filter tags when search changes, so that // users get the combined results of the two mechanisms. const filters = []; const activeTags = $("ul.active-tags").find("li"); - if (activeTags.length > 0){ + if (activeTags.length > 0) { activeTags.each((i, tag) => { const el = $(tag); const tagCategory = el.attr("data-filter-group"); const tagValue = el.attr("data-filter-value"); const tagLabel = el.attr("data-filter-label"); - filters.push({group: tagCategory, value: tagValue, label: tagLabel}) - }) - }; + filters.push({ group: tagCategory, value: tagValue, label: tagLabel }); + }); + } filterByTextAndTags(filters, filterText); @@ -161,7 +161,6 @@ $(".section-registry").on("packageSearch", event => { $(".all-count").text(allCount); }); - document.addEventListener("DOMContentLoaded", function () { const logoNavMenuButton = $(".logo-nav-button"); const bgMask = $(".logo-nav-bg-mask"); @@ -181,9 +180,7 @@ document.addEventListener("DOMContentLoaded", function () { // This handles closing the menu when selecting outside for non-Registry. $(document).on("click", function (event) { - if ($(event.target).closest(logoNavMenuButton).length === 0 && - $(event.target).closest(logoNavMenu).length === 0 && - logoNavMenu.is(":visible")) { + if ($(event.target).closest(logoNavMenuButton).length === 0 && $(event.target).closest(logoNavMenu).length === 0 && logoNavMenu.is(":visible")) { toggleMenu(); } }); diff --git a/theme/src/ts/redirects.ts b/theme/src/ts/redirects.ts index e57834f293673..e8c405a4bfebb 100644 --- a/theme/src/ts/redirects.ts +++ b/theme/src/ts/redirects.ts @@ -1,7 +1,6 @@ const path = document.location.pathname; if (path === "/docs/intro/concepts/programming-model/" || path === "/docs/reference/programming-model/") { - // The following list maps the headings that previously appeared on these pages to their new locations. // We use this list to determine whether we can redirect visitors from the old content to the new. let redirects = { diff --git a/theme/src/ts/resources.ts b/theme/src/ts/resources.ts index bf5a773f00f74..f377484e5d6c4 100644 --- a/theme/src/ts/resources.ts +++ b/theme/src/ts/resources.ts @@ -1,13 +1,13 @@ -const filterResourceItems = (filters) => { +const filterResourceItems = filters => { const events = $(".event-list").find(".event-card"); const monthLabels = $(".event-list").find(".month-label"); - $(monthLabels).css("display", "none") + $(monthLabels).css("display", "none"); const noResultsMessage = $(".pulumi-event-list-container").find(".no-results"); $(noResultsMessage).removeClass("hidden"); if (filters.length > 0) { $(events).each((i, event) => { - const tags = ($(event).attr("data-filters")).split(" "); + const tags = $(event).attr("data-filters").split(" "); const dateLabel = $(event).attr("data-month-label"); if (!tags.includes(location.hash.slice(1))) { @@ -30,7 +30,7 @@ const filterResourceItems = (filters) => { }); } else { $(events).each((i, event) => { - const tags = ($(event).attr("data-filters")).split(" "); + const tags = $(event).attr("data-filters").split(" "); const dateLabel = $(event).attr("data-month-label"); if (!tags.includes(location.hash.slice(1))) { @@ -43,7 +43,7 @@ const filterResourceItems = (filters) => { } }); } -} +}; $(".pulumi-event-list-container").on("filterSelect", event => { const detail: unknown = event.detail; @@ -57,16 +57,16 @@ $(".pulumi-event-list-container").on("filterSelect", event => { filterResourceItems(filtersText); }); -$(window).on('hashchange', function() { - const options = $('pulumi-filter-select-option').toArray() as Array; +$(window).on("hashchange", function () { + const options = $("pulumi-filter-select-option").toArray() as Array; let selectedFilters = []; - options.forEach((option) => { + options.forEach(option => { const shadow = option.shadowRoot; - if($(shadow).find('.selected').length > 0) { + if ($(shadow).find(".selected").length > 0) { selectedFilters.push(option.value); } - }) + }); filterResourceItems(selectedFilters); }); diff --git a/theme/src/ts/state.ts b/theme/src/ts/state.ts index 46a5ca9eb083a..618116c1b8450 100644 --- a/theme/src/ts/state.ts +++ b/theme/src/ts/state.ts @@ -11,7 +11,7 @@ export class LocalStorageService { // load state from local storage. this.state = JSON.parse(window.localStorage.getItem(name) || "{}"); } - + getState() { return this.state; } @@ -20,9 +20,9 @@ export class LocalStorageService { return this.state[key]; } - updateKey(key: string, val:any) { - this.state = Object.assign(this.state, { [key]: val}); + updateKey(key: string, val: any) { + this.state = Object.assign(this.state, { [key]: val }); // persist state to local storage. window.localStorage.setItem(this.serviceName, JSON.stringify(this.state)); } -}; +} diff --git a/theme/stencil/src/components.d.ts b/theme/stencil/src/components.d.ts index ee799a5b9bd2a..308ce9e70c35d 100644 --- a/theme/stencil/src/components.d.ts +++ b/theme/stencil/src/components.d.ts @@ -13,420 +13,384 @@ import { Filter } from "./components/filter-select/filter-select-option"; import { MultiSelectFormItem } from "./components/pulumi-multi-select-form/pulumi-multi-select-form"; export namespace Components { interface EventSessionRegistrationModal { - "buttonClass": string; - "buttonText": string; - "eventSessions": string; - "modalTitle": string; - "redirectUrl": string; + buttonClass: string; + buttonText: string; + eventSessions: string; + modalTitle: string; + redirectUrl: string; } interface HeaderCta { - "buttonClass": string; + buttonClass: string; } interface HomeSlots { - "centerItems": string; - "imageClass": string; - "leftItems": string; - "rightItems": string; + centerItems: string; + imageClass: string; + leftItems: string; + rightItems: string; } interface PulumiApiDocFilterableNav { - "baseDirectory": string; - "packageName": string; + baseDirectory: string; + packageName: string; } interface PulumiApiDocNavNode { - "depth": number; - "href": string; - "isExpanded": boolean; - "node": APINavNode; + depth: number; + href: string; + isExpanded: boolean; + node: APINavNode; } interface PulumiApiDocNavTree { - "baseDirectory": string; - "nodes": APINavNode[]; + baseDirectory: string; + nodes: APINavNode[]; } interface PulumiAudio { - "pausedText": string; - "playingText": string; - "url": string; + pausedText: string; + playingText: string; + url: string; } interface PulumiBanner { - "dismissible": boolean; - "name": string; - "visible": boolean; + dismissible: boolean; + name: string; + visible: boolean; } interface PulumiChoosable { - "mode": ChooserMode; - "selection": ChooserKey; - "type": ChooserType; - "value": ChooserKey; - "values": ChooserKey; + mode: ChooserMode; + selection: ChooserKey; + type: ChooserType; + value: ChooserKey; + values: ChooserKey; } interface PulumiChooser { - "mode": ChooserMode; - "optionStyle": ChooserOptionStyle; - "options": string; - "selection": ChooserKey; - "type": ChooserType; + mode: ChooserMode; + optionStyle: ChooserOptionStyle; + options: string; + selection: ChooserKey; + type: ChooserType; } interface PulumiContactUsForm { - "items": string; - "labelClass"?: string; - "selectClass"?: string; + items: string; + labelClass?: string; + selectClass?: string; } interface PulumiConvert { - "endpoint": string; - "examples": string; - "from": SourceKind; - "theme": string; + endpoint: string; + examples: string; + from: SourceKind; + theme: string; } interface PulumiDateCountdown { - "containerClass": string; - "countdownOverText": string; - "dateString": string; - "textClass": string; - "valueLabelClass": string; + containerClass: string; + countdownOverText: string; + dateString: string; + textClass: string; + valueLabelClass: string; } interface PulumiDateCountdownCircles { - "containerClass": string; - "dateString": string; - "valueLabelClass": string; + containerClass: string; + dateString: string; + valueLabelClass: string; } interface PulumiDatetime { - "class"?: string; - "date": string; - "timeonly"?: boolean; + class?: string; + date: string; + timeonly?: boolean; } interface PulumiDeveloperQuotes { - "quotes": string; - } - interface PulumiExample { - } - interface PulumiExamples { + quotes: string; } + interface PulumiDocsNav {} + interface PulumiDocsToc {} + interface PulumiExample {} + interface PulumiExamples {} interface PulumiFilterSelect { - "deselect": (filter: Filter) => Promise; - "reset": () => Promise; - "select": (filter: Filter) => Promise; + deselect: (filter: Filter) => Promise; + reset: () => Promise; + select: (filter: Filter) => Promise; } interface PulumiFilterSelectOption { - "deselect": () => Promise; - "label"?: string; - "select": () => Promise; - "selected": boolean; - "value": string; + deselect: () => Promise; + label?: string; + select: () => Promise; + selected: boolean; + value: string; } interface PulumiFilterSelectOptionGroup { - "close": () => Promise; - "expanded": boolean; - "name": string; - } - interface PulumiGreenhouseJobsList { + close: () => Promise; + expanded: boolean; + name: string; } + interface PulumiGreenhouseJobsList {} interface PulumiHubspotForm { - "class"?: string; - "formId": string; - "goToWebinarKey"?: string; - "salesforceCampaignId": string; + class?: string; + formId: string; + goToWebinarKey?: string; + salesforceCampaignId: string; } interface PulumiInstall { - "os"?: OSKey; + os?: OSKey; } interface PulumiMultiSelectForm { - "defaultFormId": string; - "items": MultiSelectFormItem[]; - "labelClass"?: string; - "labelText": string; - "selectClass"?: string; - } - interface PulumiPricingCalculator { - } - interface PulumiRegistryListSearch { - } + defaultFormId: string; + items: MultiSelectFormItem[]; + labelClass?: string; + labelText: string; + selectClass?: string; + } + interface PulumiPricingCalculator {} + interface PulumiRegistryListSearch {} interface PulumiResourceLinks { - "moduleName": string; - "packageName": string; - "resourceName": string; - } - interface PulumiRoot { + moduleName: string; + packageName: string; + resourceName: string; } + interface PulumiRoot {} interface PulumiSlotMachine { - "centerImages": string; - "imageClass": string; - "leftImages": string; - "rightImages": string; - } - interface PulumiSwipeable { + centerImages: string; + imageClass: string; + leftImages: string; + rightImages: string; } + interface PulumiSwipeable {} interface PulumiSwiper { - "autoplay": boolean; - "autoplayDelay": number; - "centeredSlides": boolean; - "direction": "vertical" | "horizontal"; - "enableMouseEvents": boolean; - "initialSlide": number; - "loop": boolean; - "navControls": boolean; - "slides": number; - "spaceBetween": number; - "speed": number; - "startSwiper": () => Promise; - "stopSwiper": () => Promise; + autoplay: boolean; + autoplayDelay: number; + centeredSlides: boolean; + direction: "vertical" | "horizontal"; + enableMouseEvents: boolean; + initialSlide: number; + loop: boolean; + navControls: boolean; + slides: number; + spaceBetween: number; + speed: number; + startSwiper: () => Promise; + stopSwiper: () => Promise; } interface PulumiTab { - "active": boolean; - "label": string; - } - interface PulumiTabs { + active: boolean; + label: string; } + interface PulumiTabs {} interface PulumiTertiaryNav { - "items": string; - "selection": any; - "tabContent": string[]; + items: string; + selection: any; + tabContent: string[]; } interface PulumiTooltip { - "hide": () => Promise; - "show": () => Promise; - } - interface PulumiTopButton { + hide: () => Promise; + show: () => Promise; } + interface PulumiTopButton {} interface PulumiUserToggle { - "userId": string; + userId: string; } interface PulumiWebinarFormSelect { - "labelClass"?: string; - "selectClass"?: string; - "sessions": string; + labelClass?: string; + selectClass?: string; + sessions: string; } } declare global { - interface HTMLEventSessionRegistrationModalElement extends Components.EventSessionRegistrationModal, HTMLStencilElement { - } + interface HTMLEventSessionRegistrationModalElement extends Components.EventSessionRegistrationModal, HTMLStencilElement {} var HTMLEventSessionRegistrationModalElement: { prototype: HTMLEventSessionRegistrationModalElement; new (): HTMLEventSessionRegistrationModalElement; }; - interface HTMLHeaderCtaElement extends Components.HeaderCta, HTMLStencilElement { - } + interface HTMLHeaderCtaElement extends Components.HeaderCta, HTMLStencilElement {} var HTMLHeaderCtaElement: { prototype: HTMLHeaderCtaElement; new (): HTMLHeaderCtaElement; }; - interface HTMLHomeSlotsElement extends Components.HomeSlots, HTMLStencilElement { - } + interface HTMLHomeSlotsElement extends Components.HomeSlots, HTMLStencilElement {} var HTMLHomeSlotsElement: { prototype: HTMLHomeSlotsElement; new (): HTMLHomeSlotsElement; }; - interface HTMLPulumiApiDocFilterableNavElement extends Components.PulumiApiDocFilterableNav, HTMLStencilElement { - } + interface HTMLPulumiApiDocFilterableNavElement extends Components.PulumiApiDocFilterableNav, HTMLStencilElement {} var HTMLPulumiApiDocFilterableNavElement: { prototype: HTMLPulumiApiDocFilterableNavElement; new (): HTMLPulumiApiDocFilterableNavElement; }; - interface HTMLPulumiApiDocNavNodeElement extends Components.PulumiApiDocNavNode, HTMLStencilElement { - } + interface HTMLPulumiApiDocNavNodeElement extends Components.PulumiApiDocNavNode, HTMLStencilElement {} var HTMLPulumiApiDocNavNodeElement: { prototype: HTMLPulumiApiDocNavNodeElement; new (): HTMLPulumiApiDocNavNodeElement; }; - interface HTMLPulumiApiDocNavTreeElement extends Components.PulumiApiDocNavTree, HTMLStencilElement { - } + interface HTMLPulumiApiDocNavTreeElement extends Components.PulumiApiDocNavTree, HTMLStencilElement {} var HTMLPulumiApiDocNavTreeElement: { prototype: HTMLPulumiApiDocNavTreeElement; new (): HTMLPulumiApiDocNavTreeElement; }; - interface HTMLPulumiAudioElement extends Components.PulumiAudio, HTMLStencilElement { - } + interface HTMLPulumiAudioElement extends Components.PulumiAudio, HTMLStencilElement {} var HTMLPulumiAudioElement: { prototype: HTMLPulumiAudioElement; new (): HTMLPulumiAudioElement; }; - interface HTMLPulumiBannerElement extends Components.PulumiBanner, HTMLStencilElement { - } + interface HTMLPulumiBannerElement extends Components.PulumiBanner, HTMLStencilElement {} var HTMLPulumiBannerElement: { prototype: HTMLPulumiBannerElement; new (): HTMLPulumiBannerElement; }; - interface HTMLPulumiChoosableElement extends Components.PulumiChoosable, HTMLStencilElement { - } + interface HTMLPulumiChoosableElement extends Components.PulumiChoosable, HTMLStencilElement {} var HTMLPulumiChoosableElement: { prototype: HTMLPulumiChoosableElement; new (): HTMLPulumiChoosableElement; }; - interface HTMLPulumiChooserElement extends Components.PulumiChooser, HTMLStencilElement { - } + interface HTMLPulumiChooserElement extends Components.PulumiChooser, HTMLStencilElement {} var HTMLPulumiChooserElement: { prototype: HTMLPulumiChooserElement; new (): HTMLPulumiChooserElement; }; - interface HTMLPulumiContactUsFormElement extends Components.PulumiContactUsForm, HTMLStencilElement { - } + interface HTMLPulumiContactUsFormElement extends Components.PulumiContactUsForm, HTMLStencilElement {} var HTMLPulumiContactUsFormElement: { prototype: HTMLPulumiContactUsFormElement; new (): HTMLPulumiContactUsFormElement; }; - interface HTMLPulumiConvertElement extends Components.PulumiConvert, HTMLStencilElement { - } + interface HTMLPulumiConvertElement extends Components.PulumiConvert, HTMLStencilElement {} var HTMLPulumiConvertElement: { prototype: HTMLPulumiConvertElement; new (): HTMLPulumiConvertElement; }; - interface HTMLPulumiDateCountdownElement extends Components.PulumiDateCountdown, HTMLStencilElement { - } + interface HTMLPulumiDateCountdownElement extends Components.PulumiDateCountdown, HTMLStencilElement {} var HTMLPulumiDateCountdownElement: { prototype: HTMLPulumiDateCountdownElement; new (): HTMLPulumiDateCountdownElement; }; - interface HTMLPulumiDateCountdownCirclesElement extends Components.PulumiDateCountdownCircles, HTMLStencilElement { - } + interface HTMLPulumiDateCountdownCirclesElement extends Components.PulumiDateCountdownCircles, HTMLStencilElement {} var HTMLPulumiDateCountdownCirclesElement: { prototype: HTMLPulumiDateCountdownCirclesElement; new (): HTMLPulumiDateCountdownCirclesElement; }; - interface HTMLPulumiDatetimeElement extends Components.PulumiDatetime, HTMLStencilElement { - } + interface HTMLPulumiDatetimeElement extends Components.PulumiDatetime, HTMLStencilElement {} var HTMLPulumiDatetimeElement: { prototype: HTMLPulumiDatetimeElement; new (): HTMLPulumiDatetimeElement; }; - interface HTMLPulumiDeveloperQuotesElement extends Components.PulumiDeveloperQuotes, HTMLStencilElement { - } + interface HTMLPulumiDeveloperQuotesElement extends Components.PulumiDeveloperQuotes, HTMLStencilElement {} var HTMLPulumiDeveloperQuotesElement: { prototype: HTMLPulumiDeveloperQuotesElement; new (): HTMLPulumiDeveloperQuotesElement; }; - interface HTMLPulumiExampleElement extends Components.PulumiExample, HTMLStencilElement { - } + interface HTMLPulumiDocsNavElement extends Components.PulumiDocsNav, HTMLStencilElement {} + var HTMLPulumiDocsNavElement: { + prototype: HTMLPulumiDocsNavElement; + new (): HTMLPulumiDocsNavElement; + }; + interface HTMLPulumiDocsTocElement extends Components.PulumiDocsToc, HTMLStencilElement {} + var HTMLPulumiDocsTocElement: { + prototype: HTMLPulumiDocsTocElement; + new (): HTMLPulumiDocsTocElement; + }; + interface HTMLPulumiExampleElement extends Components.PulumiExample, HTMLStencilElement {} var HTMLPulumiExampleElement: { prototype: HTMLPulumiExampleElement; new (): HTMLPulumiExampleElement; }; - interface HTMLPulumiExamplesElement extends Components.PulumiExamples, HTMLStencilElement { - } + interface HTMLPulumiExamplesElement extends Components.PulumiExamples, HTMLStencilElement {} var HTMLPulumiExamplesElement: { prototype: HTMLPulumiExamplesElement; new (): HTMLPulumiExamplesElement; }; - interface HTMLPulumiFilterSelectElement extends Components.PulumiFilterSelect, HTMLStencilElement { - } + interface HTMLPulumiFilterSelectElement extends Components.PulumiFilterSelect, HTMLStencilElement {} var HTMLPulumiFilterSelectElement: { prototype: HTMLPulumiFilterSelectElement; new (): HTMLPulumiFilterSelectElement; }; - interface HTMLPulumiFilterSelectOptionElement extends Components.PulumiFilterSelectOption, HTMLStencilElement { - } + interface HTMLPulumiFilterSelectOptionElement extends Components.PulumiFilterSelectOption, HTMLStencilElement {} var HTMLPulumiFilterSelectOptionElement: { prototype: HTMLPulumiFilterSelectOptionElement; new (): HTMLPulumiFilterSelectOptionElement; }; - interface HTMLPulumiFilterSelectOptionGroupElement extends Components.PulumiFilterSelectOptionGroup, HTMLStencilElement { - } + interface HTMLPulumiFilterSelectOptionGroupElement extends Components.PulumiFilterSelectOptionGroup, HTMLStencilElement {} var HTMLPulumiFilterSelectOptionGroupElement: { prototype: HTMLPulumiFilterSelectOptionGroupElement; new (): HTMLPulumiFilterSelectOptionGroupElement; }; - interface HTMLPulumiGreenhouseJobsListElement extends Components.PulumiGreenhouseJobsList, HTMLStencilElement { - } + interface HTMLPulumiGreenhouseJobsListElement extends Components.PulumiGreenhouseJobsList, HTMLStencilElement {} var HTMLPulumiGreenhouseJobsListElement: { prototype: HTMLPulumiGreenhouseJobsListElement; new (): HTMLPulumiGreenhouseJobsListElement; }; - interface HTMLPulumiHubspotFormElement extends Components.PulumiHubspotForm, HTMLStencilElement { - } + interface HTMLPulumiHubspotFormElement extends Components.PulumiHubspotForm, HTMLStencilElement {} var HTMLPulumiHubspotFormElement: { prototype: HTMLPulumiHubspotFormElement; new (): HTMLPulumiHubspotFormElement; }; - interface HTMLPulumiInstallElement extends Components.PulumiInstall, HTMLStencilElement { - } + interface HTMLPulumiInstallElement extends Components.PulumiInstall, HTMLStencilElement {} var HTMLPulumiInstallElement: { prototype: HTMLPulumiInstallElement; new (): HTMLPulumiInstallElement; }; - interface HTMLPulumiMultiSelectFormElement extends Components.PulumiMultiSelectForm, HTMLStencilElement { - } + interface HTMLPulumiMultiSelectFormElement extends Components.PulumiMultiSelectForm, HTMLStencilElement {} var HTMLPulumiMultiSelectFormElement: { prototype: HTMLPulumiMultiSelectFormElement; new (): HTMLPulumiMultiSelectFormElement; }; - interface HTMLPulumiPricingCalculatorElement extends Components.PulumiPricingCalculator, HTMLStencilElement { - } + interface HTMLPulumiPricingCalculatorElement extends Components.PulumiPricingCalculator, HTMLStencilElement {} var HTMLPulumiPricingCalculatorElement: { prototype: HTMLPulumiPricingCalculatorElement; new (): HTMLPulumiPricingCalculatorElement; }; - interface HTMLPulumiRegistryListSearchElement extends Components.PulumiRegistryListSearch, HTMLStencilElement { - } + interface HTMLPulumiRegistryListSearchElement extends Components.PulumiRegistryListSearch, HTMLStencilElement {} var HTMLPulumiRegistryListSearchElement: { prototype: HTMLPulumiRegistryListSearchElement; new (): HTMLPulumiRegistryListSearchElement; }; - interface HTMLPulumiResourceLinksElement extends Components.PulumiResourceLinks, HTMLStencilElement { - } + interface HTMLPulumiResourceLinksElement extends Components.PulumiResourceLinks, HTMLStencilElement {} var HTMLPulumiResourceLinksElement: { prototype: HTMLPulumiResourceLinksElement; new (): HTMLPulumiResourceLinksElement; }; - interface HTMLPulumiRootElement extends Components.PulumiRoot, HTMLStencilElement { - } + interface HTMLPulumiRootElement extends Components.PulumiRoot, HTMLStencilElement {} var HTMLPulumiRootElement: { prototype: HTMLPulumiRootElement; new (): HTMLPulumiRootElement; }; - interface HTMLPulumiSlotMachineElement extends Components.PulumiSlotMachine, HTMLStencilElement { - } + interface HTMLPulumiSlotMachineElement extends Components.PulumiSlotMachine, HTMLStencilElement {} var HTMLPulumiSlotMachineElement: { prototype: HTMLPulumiSlotMachineElement; new (): HTMLPulumiSlotMachineElement; }; - interface HTMLPulumiSwipeableElement extends Components.PulumiSwipeable, HTMLStencilElement { - } + interface HTMLPulumiSwipeableElement extends Components.PulumiSwipeable, HTMLStencilElement {} var HTMLPulumiSwipeableElement: { prototype: HTMLPulumiSwipeableElement; new (): HTMLPulumiSwipeableElement; }; - interface HTMLPulumiSwiperElement extends Components.PulumiSwiper, HTMLStencilElement { - } + interface HTMLPulumiSwiperElement extends Components.PulumiSwiper, HTMLStencilElement {} var HTMLPulumiSwiperElement: { prototype: HTMLPulumiSwiperElement; new (): HTMLPulumiSwiperElement; }; - interface HTMLPulumiTabElement extends Components.PulumiTab, HTMLStencilElement { - } + interface HTMLPulumiTabElement extends Components.PulumiTab, HTMLStencilElement {} var HTMLPulumiTabElement: { prototype: HTMLPulumiTabElement; new (): HTMLPulumiTabElement; }; - interface HTMLPulumiTabsElement extends Components.PulumiTabs, HTMLStencilElement { - } + interface HTMLPulumiTabsElement extends Components.PulumiTabs, HTMLStencilElement {} var HTMLPulumiTabsElement: { prototype: HTMLPulumiTabsElement; new (): HTMLPulumiTabsElement; }; - interface HTMLPulumiTertiaryNavElement extends Components.PulumiTertiaryNav, HTMLStencilElement { - } + interface HTMLPulumiTertiaryNavElement extends Components.PulumiTertiaryNav, HTMLStencilElement {} var HTMLPulumiTertiaryNavElement: { prototype: HTMLPulumiTertiaryNavElement; new (): HTMLPulumiTertiaryNavElement; }; - interface HTMLPulumiTooltipElement extends Components.PulumiTooltip, HTMLStencilElement { - } + interface HTMLPulumiTooltipElement extends Components.PulumiTooltip, HTMLStencilElement {} var HTMLPulumiTooltipElement: { prototype: HTMLPulumiTooltipElement; new (): HTMLPulumiTooltipElement; }; - interface HTMLPulumiTopButtonElement extends Components.PulumiTopButton, HTMLStencilElement { - } + interface HTMLPulumiTopButtonElement extends Components.PulumiTopButton, HTMLStencilElement {} var HTMLPulumiTopButtonElement: { prototype: HTMLPulumiTopButtonElement; new (): HTMLPulumiTopButtonElement; }; - interface HTMLPulumiUserToggleElement extends Components.PulumiUserToggle, HTMLStencilElement { - } + interface HTMLPulumiUserToggleElement extends Components.PulumiUserToggle, HTMLStencilElement {} var HTMLPulumiUserToggleElement: { prototype: HTMLPulumiUserToggleElement; new (): HTMLPulumiUserToggleElement; }; - interface HTMLPulumiWebinarFormSelectElement extends Components.PulumiWebinarFormSelect, HTMLStencilElement { - } + interface HTMLPulumiWebinarFormSelectElement extends Components.PulumiWebinarFormSelect, HTMLStencilElement {} var HTMLPulumiWebinarFormSelectElement: { prototype: HTMLPulumiWebinarFormSelectElement; new (): HTMLPulumiWebinarFormSelectElement; @@ -448,6 +412,8 @@ declare global { "pulumi-date-countdown-circles": HTMLPulumiDateCountdownCirclesElement; "pulumi-datetime": HTMLPulumiDatetimeElement; "pulumi-developer-quotes": HTMLPulumiDeveloperQuotesElement; + "pulumi-docs-nav": HTMLPulumiDocsNavElement; + "pulumi-docs-toc": HTMLPulumiDocsTocElement; "pulumi-example": HTMLPulumiExampleElement; "pulumi-examples": HTMLPulumiExamplesElement; "pulumi-filter-select": HTMLPulumiFilterSelectElement; @@ -475,182 +441,177 @@ declare global { } declare namespace LocalJSX { interface EventSessionRegistrationModal { - "buttonClass"?: string; - "buttonText"?: string; - "eventSessions"?: string; - "modalTitle"?: string; - "redirectUrl"?: string; + buttonClass?: string; + buttonText?: string; + eventSessions?: string; + modalTitle?: string; + redirectUrl?: string; } interface HeaderCta { - "buttonClass"?: string; + buttonClass?: string; } interface HomeSlots { - "centerItems"?: string; - "imageClass"?: string; - "leftItems"?: string; - "rightItems"?: string; + centerItems?: string; + imageClass?: string; + leftItems?: string; + rightItems?: string; } interface PulumiApiDocFilterableNav { - "baseDirectory"?: string; - "packageName"?: string; + baseDirectory?: string; + packageName?: string; } interface PulumiApiDocNavNode { - "depth"?: number; - "href"?: string; - "isExpanded"?: boolean; - "node"?: APINavNode; + depth?: number; + href?: string; + isExpanded?: boolean; + node?: APINavNode; } interface PulumiApiDocNavTree { - "baseDirectory"?: string; - "nodes"?: APINavNode[]; + baseDirectory?: string; + nodes?: APINavNode[]; } interface PulumiAudio { - "pausedText"?: string; - "playingText"?: string; - "url"?: string; + pausedText?: string; + playingText?: string; + url?: string; } interface PulumiBanner { - "dismissible"?: boolean; - "name"?: string; - "visible"?: boolean; + dismissible?: boolean; + name?: string; + visible?: boolean; } interface PulumiChoosable { - "mode"?: ChooserMode; - "selection"?: ChooserKey; - "type"?: ChooserType; - "value"?: ChooserKey; - "values"?: ChooserKey; + mode?: ChooserMode; + selection?: ChooserKey; + type?: ChooserType; + value?: ChooserKey; + values?: ChooserKey; } interface PulumiChooser { - "mode"?: ChooserMode; - "optionStyle"?: ChooserOptionStyle; - "options"?: string; - "selection"?: ChooserKey; - "type"?: ChooserType; + mode?: ChooserMode; + optionStyle?: ChooserOptionStyle; + options?: string; + selection?: ChooserKey; + type?: ChooserType; } interface PulumiContactUsForm { - "items"?: string; - "labelClass"?: string; - "selectClass"?: string; + items?: string; + labelClass?: string; + selectClass?: string; } interface PulumiConvert { - "endpoint"?: string; - "examples"?: string; - "from"?: SourceKind; - "theme"?: string; + endpoint?: string; + examples?: string; + from?: SourceKind; + theme?: string; } interface PulumiDateCountdown { - "containerClass"?: string; - "countdownOverText"?: string; - "dateString"?: string; - "textClass"?: string; - "valueLabelClass"?: string; + containerClass?: string; + countdownOverText?: string; + dateString?: string; + textClass?: string; + valueLabelClass?: string; } interface PulumiDateCountdownCircles { - "containerClass"?: string; - "dateString"?: string; - "valueLabelClass"?: string; + containerClass?: string; + dateString?: string; + valueLabelClass?: string; } interface PulumiDatetime { - "class"?: string; - "date"?: string; - "timeonly"?: boolean; + class?: string; + date?: string; + timeonly?: boolean; } interface PulumiDeveloperQuotes { - "quotes"?: string; - } - interface PulumiExample { - } - interface PulumiExamples { + quotes?: string; } + interface PulumiDocsNav {} + interface PulumiDocsToc {} + interface PulumiExample {} + interface PulumiExamples {} interface PulumiFilterSelect { - "onFilterSelect"?: (event: CustomEvent) => void; + onFilterSelect?: (event: CustomEvent) => void; } interface PulumiFilterSelectOption { - "label"?: string; - "onOptionChange"?: (event: CustomEvent) => void; - "selected"?: boolean; - "value"?: string; + label?: string; + onOptionChange?: (event: CustomEvent) => void; + selected?: boolean; + value?: string; } interface PulumiFilterSelectOptionGroup { - "expanded"?: boolean; - "name"?: string; - } - interface PulumiGreenhouseJobsList { + expanded?: boolean; + name?: string; } + interface PulumiGreenhouseJobsList {} interface PulumiHubspotForm { - "class"?: string; - "formId"?: string; - "goToWebinarKey"?: string; - "salesforceCampaignId"?: string; + class?: string; + formId?: string; + goToWebinarKey?: string; + salesforceCampaignId?: string; } interface PulumiInstall { - "os"?: OSKey; + os?: OSKey; } interface PulumiMultiSelectForm { - "defaultFormId"?: string; - "items"?: MultiSelectFormItem[]; - "labelClass"?: string; - "labelText"?: string; - "selectClass"?: string; - } - interface PulumiPricingCalculator { + defaultFormId?: string; + items?: MultiSelectFormItem[]; + labelClass?: string; + labelText?: string; + selectClass?: string; } + interface PulumiPricingCalculator {} interface PulumiRegistryListSearch { - "onPackageSearch"?: (event: CustomEvent) => void; + onPackageSearch?: (event: CustomEvent) => void; } interface PulumiResourceLinks { - "moduleName"?: string; - "packageName"?: string; - "resourceName"?: string; + moduleName?: string; + packageName?: string; + resourceName?: string; } interface PulumiRoot { - "onRendered"?: (event: CustomEvent) => void; + onRendered?: (event: CustomEvent) => void; } interface PulumiSlotMachine { - "centerImages"?: string; - "imageClass"?: string; - "leftImages"?: string; - "rightImages"?: string; - } - interface PulumiSwipeable { + centerImages?: string; + imageClass?: string; + leftImages?: string; + rightImages?: string; } + interface PulumiSwipeable {} interface PulumiSwiper { - "autoplay"?: boolean; - "autoplayDelay"?: number; - "centeredSlides"?: boolean; - "direction"?: "vertical" | "horizontal"; - "enableMouseEvents"?: boolean; - "initialSlide"?: number; - "loop"?: boolean; - "navControls"?: boolean; - "slides"?: number; - "spaceBetween"?: number; - "speed"?: number; + autoplay?: boolean; + autoplayDelay?: number; + centeredSlides?: boolean; + direction?: "vertical" | "horizontal"; + enableMouseEvents?: boolean; + initialSlide?: number; + loop?: boolean; + navControls?: boolean; + slides?: number; + spaceBetween?: number; + speed?: number; } interface PulumiTab { - "active"?: boolean; - "label"?: string; + active?: boolean; + label?: string; } interface PulumiTabs { - "onTabSelect"?: (event: CustomEvent) => void; + onTabSelect?: (event: CustomEvent) => void; } interface PulumiTertiaryNav { - "items"?: string; - "selection"?: any; - "tabContent"?: string[]; - } - interface PulumiTooltip { - } - interface PulumiTopButton { + items?: string; + selection?: any; + tabContent?: string[]; } + interface PulumiTooltip {} + interface PulumiTopButton {} interface PulumiUserToggle { - "userId"?: string; + userId?: string; } interface PulumiWebinarFormSelect { - "labelClass"?: string; - "selectClass"?: string; - "sessions"?: string; + labelClass?: string; + selectClass?: string; + sessions?: string; } interface IntrinsicElements { "event-session-registration-modal": EventSessionRegistrationModal; @@ -669,6 +630,8 @@ declare namespace LocalJSX { "pulumi-date-countdown-circles": PulumiDateCountdownCircles; "pulumi-datetime": PulumiDatetime; "pulumi-developer-quotes": PulumiDeveloperQuotes; + "pulumi-docs-nav": PulumiDocsNav; + "pulumi-docs-toc": PulumiDocsToc; "pulumi-example": PulumiExample; "pulumi-examples": PulumiExamples; "pulumi-filter-select": PulumiFilterSelect; @@ -714,6 +677,8 @@ declare module "@stencil/core" { "pulumi-date-countdown-circles": LocalJSX.PulumiDateCountdownCircles & JSXBase.HTMLAttributes; "pulumi-datetime": LocalJSX.PulumiDatetime & JSXBase.HTMLAttributes; "pulumi-developer-quotes": LocalJSX.PulumiDeveloperQuotes & JSXBase.HTMLAttributes; + "pulumi-docs-nav": LocalJSX.PulumiDocsNav & JSXBase.HTMLAttributes; + "pulumi-docs-toc": LocalJSX.PulumiDocsToc & JSXBase.HTMLAttributes; "pulumi-example": LocalJSX.PulumiExample & JSXBase.HTMLAttributes; "pulumi-examples": LocalJSX.PulumiExamples & JSXBase.HTMLAttributes; "pulumi-filter-select": LocalJSX.PulumiFilterSelect & JSXBase.HTMLAttributes; diff --git a/theme/stencil/src/components/chooser/chooser.tsx b/theme/stencil/src/components/chooser/chooser.tsx index 1ca4e8781a221..888a46c83f58a 100644 --- a/theme/stencil/src/components/chooser/chooser.tsx +++ b/theme/stencil/src/components/chooser/chooser.tsx @@ -215,7 +215,6 @@ export class Chooser { } render() { - console.log(this.currentOptions); return (
          diff --git a/theme/stencil/src/components/convert/convert.tsx b/theme/stencil/src/components/convert/convert.tsx index beeaff0487184..8237c086f1dda 100644 --- a/theme/stencil/src/components/convert/convert.tsx +++ b/theme/stencil/src/components/convert/convert.tsx @@ -443,9 +443,7 @@ export class Convert { } private renderToolDescription() { - let tool = this.conversionTool.githubURL ? - {this.conversionTool.name} : - this.conversionTool.name; + let tool = this.conversionTool.githubURL ? {this.conversionTool.name} : this.conversionTool.name; switch (this.from) { case "tf": @@ -461,10 +459,9 @@ export class Convert { return (

          - Your code will be converted with{" "} - {tool}, an open-source - command-line tool we built to make it as easy as possible for you to migrate your existing {this.sourceLanguageName} projects to Pulumi. The - resulting file can be copied or downloaded for use with a new Pulumi project. + Your code will be converted with {tool}, an open-source command-line tool we built to make it as easy as possible for you to migrate your existing{" "} + {this.sourceLanguageName} projects to Pulumi. The resulting file can be copied or downloaded for use with{" "} + a new Pulumi project.

          ); } @@ -485,12 +482,7 @@ export class Convert { // Render an individual editor tab. private renderTab(item: any, activeItem: any, label: string, title: string, handler: Function): HTMLLIElement { return ( -
        • +
        • {label}
        • diff --git a/theme/stencil/src/components/date-countdown-circles/date-countdown-circles.scss b/theme/stencil/src/components/date-countdown-circles/date-countdown-circles.scss index ca530cf04026c..79e1822b66bd6 100644 --- a/theme/stencil/src/components/date-countdown-circles/date-countdown-circles.scss +++ b/theme/stencil/src/components/date-countdown-circles/date-countdown-circles.scss @@ -8,13 +8,12 @@ .circle { border-radius: 50%; - border:5px solid transparent; + border: 5px solid transparent; position: relative; - width:100%; + width: 100%; height: 100%; - background: linear-gradient(#fff, #fff) content-box no-repeat, conic-gradient(#805ac3 calc(var(--p)*1%), 0, #ededed 100% ) border-box; - display:flex; + background: linear-gradient(#fff, #fff) content-box no-repeat, conic-gradient(#805ac3 calc(var(--p) * 1%), 0, #ededed 100%) border-box; + display: flex; justify-content: center; align-items: center; } - diff --git a/theme/stencil/src/components/date-countdown-circles/date-countdown-circles.tsx b/theme/stencil/src/components/date-countdown-circles/date-countdown-circles.tsx index c4edbe961dfb9..c0b25eb6f6729 100644 --- a/theme/stencil/src/components/date-countdown-circles/date-countdown-circles.tsx +++ b/theme/stencil/src/components/date-countdown-circles/date-countdown-circles.tsx @@ -67,7 +67,7 @@ export class DateCountdownCircles { daysPercent, hoursPercent, minutesPercent, - secondsPercent + secondsPercent, }; } @@ -78,14 +78,20 @@ export class DateCountdownCircles { private renderNumberCircle(value: number, percent: number) { return (
          -
          { value }
          +
          + {value} +
          - ); } private renderCountdownPart(value: number, label: string, percent) { - return
          {this.renderNumberCircle(value, percent)}{this.renderValueLabel(label)}
          + return ( +
          + {this.renderNumberCircle(value, percent)} + {this.renderValueLabel(label)} +
          + ); } private renderCountdown() { diff --git a/theme/stencil/src/components/date-countdown/date-countdown.tsx b/theme/stencil/src/components/date-countdown/date-countdown.tsx index e13ef9ef45170..f3fcdee9831dd 100644 --- a/theme/stencil/src/components/date-countdown/date-countdown.tsx +++ b/theme/stencil/src/components/date-countdown/date-countdown.tsx @@ -55,7 +55,12 @@ export class DateCountdown { } private renderCountdownPart(value: number, label: string) { - return

          { value }{this.renderValueLabel(label)}

          + return ( +

          + {value} + {this.renderValueLabel(label)} +

          + ); } private renderCountdown() { @@ -70,7 +75,7 @@ export class DateCountdown { this.renderCountdownPart(seconds, "Seconds"), ] ) : ( -

          { this.countdownOverText }

          +

          {this.countdownOverText}

          )}
      ); diff --git a/theme/stencil/src/components/datetime/datetime.tsx b/theme/stencil/src/components/datetime/datetime.tsx index 1818f97d8a17e..428fcd6b3f315 100644 --- a/theme/stencil/src/components/datetime/datetime.tsx +++ b/theme/stencil/src/components/datetime/datetime.tsx @@ -18,19 +18,21 @@ export class Datetime { componentWillLoad() { const date = new Date(this.date); - const options: Intl.DateTimeFormatOptions = this.timeonly ? { - timeZoneName: "short", - hour: "numeric", - minute: "2-digit", - } : { - timeZoneName: "long", - weekday: "short", - year: "numeric", - month: "long", - day: "numeric", - hour: "numeric", - minute: "2-digit", - }; + const options: Intl.DateTimeFormatOptions = this.timeonly + ? { + timeZoneName: "short", + hour: "numeric", + minute: "2-digit", + } + : { + timeZoneName: "long", + weekday: "short", + year: "numeric", + month: "long", + day: "numeric", + hour: "numeric", + minute: "2-digit", + }; this.date = date.toLocaleString(undefined, options); } diff --git a/theme/stencil/src/components/developer-quotes/developer-quotes.tsx b/theme/stencil/src/components/developer-quotes/developer-quotes.tsx index 2b11581823bf8..ed1e68458c0b8 100644 --- a/theme/stencil/src/components/developer-quotes/developer-quotes.tsx +++ b/theme/stencil/src/components/developer-quotes/developer-quotes.tsx @@ -5,104 +5,93 @@ import { Component, Prop, h } from "@stencil/core"; styleUrl: "developer-quotes.scss", shadow: false, }) - export class DeveloperQuotes { - @Prop() quotes: string; addLogo(quote) { - function getLogo () { - switch(quote.source) { + function getLogo() { + switch (quote.source) { case "twitter": - return + return ; case "reddit": - return + return ; case "email": - return + return ; case "blog": - return + return ; case "slack": - return + return ; case "linkedin": - return + return ; default: - return { quote.source } + return {quote.source}; } } return { ...quote, logo: getLogo(), - } + }; } enableLink(source: string) { // disable links for quotes coming from theses sources. - const noLinks = [ - "slack", - "email" - ]; + const noLinks = ["slack", "email"]; return !noLinks.includes(source); } render() { let quotes = JSON.parse(this.quotes) - // move featured quotes to the top. - .sort((a,b) => { - if (a.featured && b.featured) { - return 0; - } - if (a.featured && !b.featured) { - return -1; - } - if (!a.featured && b.featured) { - return 1; - } - }) - // add logo based on type. - .map(this.addLogo) - // split into two columns. - .reduce((prev, curr, i) => { - if (i%2) { - prev[1].push(curr) - } else { - prev[0].push(curr); - } - return prev; - }, [[],[]]); + // move featured quotes to the top. + .sort((a, b) => { + if (a.featured && b.featured) { + return 0; + } + if (a.featured && !b.featured) { + return -1; + } + if (!a.featured && b.featured) { + return 1; + } + }) + // add logo based on type. + .map(this.addLogo) + // split into two columns. + .reduce( + (prev, curr, i) => { + if (i % 2) { + prev[1].push(curr); + } else { + prev[0].push(curr); + } + return prev; + }, + [[], []], + ); return (
      - { - quotes.map(col => { - return ( -
      - { - col.map(q => { - return ( - + ); + })}
      - ) + ); } } diff --git a/theme/stencil/src/components/docs-nav/docs-nav.scss b/theme/stencil/src/components/docs-nav/docs-nav.scss new file mode 100644 index 0000000000000..3fe6565176f1e --- /dev/null +++ b/theme/stencil/src/components/docs-nav/docs-nav.scss @@ -0,0 +1,20 @@ +pulumi-docs-nav { + ol { + list-style-type: none !important; + + li { + button:after { + content: "-"; + } + + &.collapsed { + button:after { + content: "+"; + } + ol { + display: none; + } + } + } + } +} diff --git a/theme/stencil/src/components/docs-nav/docs-nav.tsx b/theme/stencil/src/components/docs-nav/docs-nav.tsx new file mode 100644 index 0000000000000..2745ceb3770bc --- /dev/null +++ b/theme/stencil/src/components/docs-nav/docs-nav.tsx @@ -0,0 +1,37 @@ +import { Component, Host, h, Element, Listen } from "@stencil/core"; + +@Component({ + tag: "pulumi-docs-nav", + styleUrl: "docs-nav.scss", + shadow: false, +}) +export class DocsNav { + @Element() + el: HTMLElement; + + @Listen("click") + onClick(event: MouseEvent) { + event.preventDefault(); + + const target = event.target as HTMLElement; + + console.log(event.target); + + if (target.nodeName.toLowerCase() === "button") { + target.closest("li").classList.toggle("collapsed"); + } + } + + componentDidLoad() { + const slot = this.el.querySelector("ol"); + console.log({ slot }); + } + + render() { + return ( + + + + ); + } +} diff --git a/theme/stencil/src/components/docs-nav/test/docs-nav.e2e.ts b/theme/stencil/src/components/docs-nav/test/docs-nav.e2e.ts new file mode 100644 index 0000000000000..ee2739e64aa20 --- /dev/null +++ b/theme/stencil/src/components/docs-nav/test/docs-nav.e2e.ts @@ -0,0 +1,11 @@ +import { newE2EPage } from "@stencil/core/testing"; + +describe("docs-nav", () => { + it("renders", async () => { + const page = await newE2EPage(); + await page.setContent(""); + + const element = await page.find("docs-nav"); + expect(element).toHaveClass("hydrated"); + }); +}); diff --git a/theme/stencil/src/components/docs-nav/test/docs-nav.spec.tsx b/theme/stencil/src/components/docs-nav/test/docs-nav.spec.tsx new file mode 100644 index 0000000000000..022eafef8206c --- /dev/null +++ b/theme/stencil/src/components/docs-nav/test/docs-nav.spec.tsx @@ -0,0 +1,18 @@ +import { newSpecPage } from "@stencil/core/testing"; +import { DocsNav } from "../docs-nav"; + +describe("docs-nav", () => { + it("renders", async () => { + const page = await newSpecPage({ + components: [DocsNav], + html: ``, + }); + expect(page.root).toEqualHtml(` + + + + + + `); + }); +}); diff --git a/theme/stencil/src/components/docs-toc/docs-toc.scss b/theme/stencil/src/components/docs-toc/docs-toc.scss new file mode 100644 index 0000000000000..35b091cf4c587 --- /dev/null +++ b/theme/stencil/src/components/docs-toc/docs-toc.scss @@ -0,0 +1,17 @@ +docs-toc { + ol { + li { + &.toc-level-h3 { + margin-left: 1rem; + } + + &.toc-level-h3 { + margin-left: 1rem; + } + } + + :nth-child(1 of li.active) { + font-weight: 600; + } + } +} diff --git a/theme/stencil/src/components/docs-toc/docs-toc.tsx b/theme/stencil/src/components/docs-toc/docs-toc.tsx new file mode 100644 index 0000000000000..7fde2c905d8f4 --- /dev/null +++ b/theme/stencil/src/components/docs-toc/docs-toc.tsx @@ -0,0 +1,72 @@ +import { Component, Host, h, Element } from "@stencil/core"; + +@Component({ + tag: "pulumi-docs-toc", + styleUrl: "docs-toc.scss", + shadow: false, +}) +export class DocsToc { + headings: Element[]; + headingSelector = "main h2[id]:not(.no-toc), main h3[id]:not(.no-toc)"; + + @Element() + el: HTMLElement; + + componentWillLoad() { + this.headings = Array.from(document.querySelectorAll(this.headingSelector)) + .filter(heading => heading.getAttribute("id") !== "") + .filter(heading => !heading.classList.contains("no-anchor")) + .filter(heading => !heading.classList.contains("no-toc")); + + const observer = new IntersectionObserver(entries => { + entries.forEach(entry => { + const id = entry.target.getAttribute("id"); + const link = this.el.querySelector(`li a[href="#${id}"]`); + + if (link) { + if (entry.intersectionRatio > 0) { + link.parentElement.classList.add("active"); + } else { + link.parentElement.classList.remove("active"); + } + } + }); + }); + + document.querySelectorAll(this.headingSelector).forEach(heading => { + observer.observe(heading); + }); + } + + fixLabel(label: string) { + return ( + label + // Trim trailing colons. + .replace(/:$/, "") + ); + } + + render() { + return ( + +
      +

      + On this page +

      +
        + {this.headings.map(heading => { + return ( +
      1. + + {this.fixLabel(heading.textContent)} + +
      2. + ); + })} +
      +
      +
      +
      + ); + } +} diff --git a/theme/stencil/src/components/docs-toc/test/docs-toc.e2e.ts b/theme/stencil/src/components/docs-toc/test/docs-toc.e2e.ts new file mode 100644 index 0000000000000..4fd38ced2ad84 --- /dev/null +++ b/theme/stencil/src/components/docs-toc/test/docs-toc.e2e.ts @@ -0,0 +1,11 @@ +import { newE2EPage } from "@stencil/core/testing"; + +describe("docs-toc", () => { + it("renders", async () => { + const page = await newE2EPage(); + await page.setContent(""); + + const element = await page.find("docs-toc"); + expect(element).toHaveClass("hydrated"); + }); +}); diff --git a/theme/stencil/src/components/docs-toc/test/docs-toc.spec.tsx b/theme/stencil/src/components/docs-toc/test/docs-toc.spec.tsx new file mode 100644 index 0000000000000..19ac455ba3d87 --- /dev/null +++ b/theme/stencil/src/components/docs-toc/test/docs-toc.spec.tsx @@ -0,0 +1,18 @@ +import { newSpecPage } from "@stencil/core/testing"; +import { DocsToc } from "../docs-toc"; + +describe("docs-toc", () => { + it("renders", async () => { + const page = await newSpecPage({ + components: [DocsToc], + html: ``, + }); + expect(page.root).toEqualHtml(` + + + + + + `); + }); +}); diff --git a/theme/stencil/src/components/event-session-registration-modal/event-session-registration-modal.scss b/theme/stencil/src/components/event-session-registration-modal/event-session-registration-modal.scss index 60e4df12bbf7f..ca77fba3e34b0 100644 --- a/theme/stencil/src/components/event-session-registration-modal/event-session-registration-modal.scss +++ b/theme/stencil/src/components/event-session-registration-modal/event-session-registration-modal.scss @@ -22,7 +22,12 @@ width: 100%; height: 100%; - h2, h3, h4, h5, h6, p { + h2, + h3, + h4, + h5, + h6, + p { color: black; } @@ -125,9 +130,9 @@ li { width: 50%; - padding: .75rem; + padding: 0.75rem; - @media(max-width: 1024px) { + @media (max-width: 1024px) { width: 100%; } } @@ -151,10 +156,10 @@ p { font-size: 1rem; - margin-top: .5rem; + margin-top: 0.5rem; } - @media(max-width: 1024px) { + @media (max-width: 1024px) { h6 { padding-left: 1rem; } @@ -180,7 +185,7 @@ .registration-form-container { text-align: left; - padding-top: .5rem; + padding-top: 0.5rem; a { color: black; @@ -197,7 +202,7 @@ text-align: left; form { - padding: .25rem; + padding: 0.25rem; } a { diff --git a/theme/stencil/src/components/event-session-registration-modal/event-session-registration-modal.tsx b/theme/stencil/src/components/event-session-registration-modal/event-session-registration-modal.tsx index e719b23e0f2af..7c8c7a19a7e5a 100644 --- a/theme/stencil/src/components/event-session-registration-modal/event-session-registration-modal.tsx +++ b/theme/stencil/src/components/event-session-registration-modal/event-session-registration-modal.tsx @@ -67,7 +67,7 @@ export class EventSessionRegistrationModal { private handleSkipSessionSelection(parsedEventSessions: EventSessionInfo[]) { if (parsedEventSessions.length === 1) { this.selectedSessions.push(parsedEventSessions[0].hubspot_form_id); - this.displayingContent = "form" + this.displayingContent = "form"; this.skippedSessionSelection = true; } } @@ -87,19 +87,19 @@ export class EventSessionRegistrationModal { private onMessage = (event: MessageEvent) => { // Ignore any non-HubSpot-form-related events and if the modal isn't open. - if ((event.data?.type !== "hsFormCallback") || (!this.isModalOpen)) { + if (event.data?.type !== "hsFormCallback" || !this.isModalOpen) { return; } const eventName: string = event.data.eventName; - if ((eventName === "onFormReady") && this.processingFormSubmissions) { + if (eventName === "onFormReady" && this.processingFormSubmissions) { this.handleFormSubmissions(); } if (eventName === "onFormSubmit") { const formInputs = this.el.querySelectorAll("form input") as NodeListOf; const newSubmittedFormValues: SubmittedFormValues = {}; - formInputs.forEach((input) => { + formInputs.forEach(input => { if (input.type !== "checkbox") { newSubmittedFormValues[input.name] = input.value; } @@ -107,7 +107,7 @@ export class EventSessionRegistrationModal { this.submittedFormValues = newSubmittedFormValues; setTimeout(() => { - this.selectedSessions = [ ...this.selectedSessions.slice(1) ]; + this.selectedSessions = [...this.selectedSessions.slice(1)]; this.processingFormSubmissions = true; if (this.selectedSessions.length === 0) { @@ -115,13 +115,13 @@ export class EventSessionRegistrationModal { } }, 500); } - } + }; private handleButtonClick = (e: Event) => { e.preventDefault(); this.isModalOpen = true; document.querySelector("body").className += " disable-scroll"; - } + }; private handleCloseModal = (e: Event) => { e.preventDefault(); @@ -131,7 +131,7 @@ export class EventSessionRegistrationModal { this.selectedSessions = []; } document.querySelector("body").className = document.querySelector("body").className.replace("disable-scroll", ""); - } + }; private handleSessionSelection = (formId: string) => { const formIdIndex = this.selectedSessions.indexOf(formId); @@ -140,12 +140,12 @@ export class EventSessionRegistrationModal { } else { this.selectedSessions.splice(formIdIndex, 1); } - } + }; private handleGotToSessionSelect = (e: Event) => { e.preventDefault(); this.displayingContent = "session-select"; - } + }; private handleGoToForm(e: Event, content: EventSessionRegistrationModalContent) { e.preventDefault(); @@ -179,7 +179,7 @@ export class EventSessionRegistrationModal { continue; } - const formInput = this.el.querySelector(`form input[name="${ formValueKey }"]`) as HTMLInputElement; + const formInput = this.el.querySelector(`form input[name="${formValueKey}"]`) as HTMLInputElement; formInput.value = this.submittedFormValues[formValueKey]; formInput.dispatchEvent(new Event("change")); } @@ -195,7 +195,7 @@ export class EventSessionRegistrationModal { private renderSessionSelectionItem(info: EventSessionInfo) { const isChecked = this.selectedSessions.indexOf(info.hubspot_form_id) > -1; - return( + return (
    • @@ -214,74 +214,65 @@ export class EventSessionRegistrationModal { private renderSessionSelectContent() { return [
      -

      - Please select all the options you'd like to register for: -

      +

      Please select all the options you'd like to register for:

      -
        - { this.parsedEventSessions.map((session) => this.renderSessionSelectionItem(session)) } -
      +
        {this.parsedEventSessions.map(session => this.renderSessionSelectionItem(session))}
      ,
      - this.handleGoToForm(e, "form")}> + this.handleGoToForm(e, "form")}> Next - { this.error ?

      { this.error }

      : null} + {this.error ?

      {this.error}

      : null}
      , ]; } private renderForm(formId: string) { if (!this.processingFormSubmissions) { - return( + return (
      - { this.skippedSessionSelection ? null : ← Go back to select sessions.} + {this.skippedSessionSelection ? null : ( + + ← Go back to select sessions. + + )}
      - - +
      ); } - return( + return (

      - ); } private renderContent() { - console.log("rendering content"); switch (this.displayingContent) { case "session-select": return this.renderSessionSelectContent(); case "form": - console.log("rendering form"); return this.renderForm(this.selectedSessions[0]); } } private renderModal() { - return( + return (
      @@ -301,13 +292,14 @@ export class EventSessionRegistrationModal {
      - { this.isModalOpen ? this.renderModal() : null } + {this.isModalOpen ? this.renderModal() : null}
      ); } - } diff --git a/theme/stencil/src/components/event-session-registration-modal/test/event-session-registration-modal.e2e.ts b/theme/stencil/src/components/event-session-registration-modal/test/event-session-registration-modal.e2e.ts index 8b880f66463a6..243dd6952c489 100644 --- a/theme/stencil/src/components/event-session-registration-modal/test/event-session-registration-modal.e2e.ts +++ b/theme/stencil/src/components/event-session-registration-modal/test/event-session-registration-modal.e2e.ts @@ -1,11 +1,11 @@ -import { newE2EPage } from '@stencil/core/testing'; +import { newE2EPage } from "@stencil/core/testing"; -describe('event-session-registration-modal', () => { - it('renders', async () => { - const page = await newE2EPage(); - await page.setContent(''); +describe("event-session-registration-modal", () => { + it("renders", async () => { + const page = await newE2EPage(); + await page.setContent(""); - const element = await page.find('event-session-registration-modal'); - expect(element).toHaveClass('hydrated'); - }); + const element = await page.find("event-session-registration-modal"); + expect(element).toHaveClass("hydrated"); + }); }); diff --git a/theme/stencil/src/components/event-session-registration-modal/test/event-session-registration-modal.spec.tsx b/theme/stencil/src/components/event-session-registration-modal/test/event-session-registration-modal.spec.tsx index 4f121a21db528..9a3a793afc539 100644 --- a/theme/stencil/src/components/event-session-registration-modal/test/event-session-registration-modal.spec.tsx +++ b/theme/stencil/src/components/event-session-registration-modal/test/event-session-registration-modal.spec.tsx @@ -1,18 +1,18 @@ -import { newSpecPage } from '@stencil/core/testing'; -import { EventSessionRegistrationModal } from '../event-session-registration-modal'; +import { newSpecPage } from "@stencil/core/testing"; +import { EventSessionRegistrationModal } from "../event-session-registration-modal"; -describe('event-session-registration-modal', () => { - it('renders', async () => { - const page = await newSpecPage({ - components: [EventSessionRegistrationModal], - html: ``, - }); - expect(page.root).toEqualHtml(` +describe("event-session-registration-modal", () => { + it("renders", async () => { + const page = await newSpecPage({ + components: [EventSessionRegistrationModal], + html: ``, + }); + expect(page.root).toEqualHtml(` `); - }); + }); }); diff --git a/theme/stencil/src/components/filter-select/filter-select-option.tsx b/theme/stencil/src/components/filter-select/filter-select-option.tsx index 074421fad8b96..8a7d15e5a6791 100644 --- a/theme/stencil/src/components/filter-select/filter-select-option.tsx +++ b/theme/stencil/src/components/filter-select/filter-select-option.tsx @@ -63,7 +63,7 @@ export class FilterSelectOption { return (
      diff --git a/theme/stencil/src/components/header-cta/header-cta.scss b/theme/stencil/src/components/header-cta/header-cta.scss index 5d4e87f30f636..7f26ddcb55034 100644 --- a/theme/stencil/src/components/header-cta/header-cta.scss +++ b/theme/stencil/src/components/header-cta/header-cta.scss @@ -1,3 +1,3 @@ :host { - display: block; + display: block; } diff --git a/theme/stencil/src/components/header-cta/header-cta.tsx b/theme/stencil/src/components/header-cta/header-cta.tsx index 9afc5f176100b..6c25a327c1d15 100644 --- a/theme/stencil/src/components/header-cta/header-cta.tsx +++ b/theme/stencil/src/components/header-cta/header-cta.tsx @@ -38,14 +38,24 @@ export class HeaderCta { } if (this.isLoggedIn) { - return( - Dashboard + return ( + + Dashboard + ); } return ( - Get Started + + Get Started + ); } - } diff --git a/theme/stencil/src/components/header-cta/test/header-cta.e2e.ts b/theme/stencil/src/components/header-cta/test/header-cta.e2e.ts index 2b74a13250eff..6438eb2249fd5 100644 --- a/theme/stencil/src/components/header-cta/test/header-cta.e2e.ts +++ b/theme/stencil/src/components/header-cta/test/header-cta.e2e.ts @@ -1,11 +1,11 @@ -import { newE2EPage } from '@stencil/core/testing'; +import { newE2EPage } from "@stencil/core/testing"; -describe('header-cta', () => { - it('renders', async () => { - const page = await newE2EPage(); - await page.setContent(''); +describe("header-cta", () => { + it("renders", async () => { + const page = await newE2EPage(); + await page.setContent(""); - const element = await page.find('header-cta'); - expect(element).toHaveClass('hydrated'); - }); + const element = await page.find("header-cta"); + expect(element).toHaveClass("hydrated"); + }); }); diff --git a/theme/stencil/src/components/header-cta/test/header-cta.spec.tsx b/theme/stencil/src/components/header-cta/test/header-cta.spec.tsx index 88276eeab6a2d..a5150a2666c7e 100644 --- a/theme/stencil/src/components/header-cta/test/header-cta.spec.tsx +++ b/theme/stencil/src/components/header-cta/test/header-cta.spec.tsx @@ -1,18 +1,18 @@ -import { newSpecPage } from '@stencil/core/testing'; -import { HeaderCta } from '../header-cta'; +import { newSpecPage } from "@stencil/core/testing"; +import { HeaderCta } from "../header-cta"; -describe('header-cta', () => { - it('renders', async () => { - const page = await newSpecPage({ - components: [HeaderCta], - html: ``, - }); - expect(page.root).toEqualHtml(` +describe("header-cta", () => { + it("renders", async () => { + const page = await newSpecPage({ + components: [HeaderCta], + html: ``, + }); + expect(page.root).toEqualHtml(` `); - }); + }); }); diff --git a/theme/stencil/src/components/home-slots/home-slots.scss b/theme/stencil/src/components/home-slots/home-slots.scss index 5a99c0c8fac0d..b8edab6bd8c4b 100644 --- a/theme/stencil/src/components/home-slots/home-slots.scss +++ b/theme/stencil/src/components/home-slots/home-slots.scss @@ -1,27 +1,31 @@ home-slots { - .slot-container { - display: flex; - align-items: center; - justify-items: center; - text-align: center; + .slot-container { + display: flex; + align-items: center; + justify-items: center; + text-align: center; - .item-container { - width: 25%; - text-align: center; + .item-container { + width: 25%; + text-align: center; - img { - animation: fadeIn 500ms; - } - } + img { + animation: fadeIn 500ms; + } + } - .separator-container { - width: 12.5%; - text-align: center; + .separator-container { + width: 12.5%; + text-align: center; + } } - } - @keyframes fadeIn { - 0% { opacity: 0; } - 100% { opacity: 1; } - } + @keyframes fadeIn { + 0% { + opacity: 0; + } + 100% { + opacity: 1; + } + } } diff --git a/theme/stencil/src/components/home-slots/home-slots.tsx b/theme/stencil/src/components/home-slots/home-slots.tsx index a9b485605f776..aaff707adc3a1 100644 --- a/theme/stencil/src/components/home-slots/home-slots.tsx +++ b/theme/stencil/src/components/home-slots/home-slots.tsx @@ -120,5 +120,4 @@ export class HomeSlots { ); } - } diff --git a/theme/stencil/src/components/home-slots/test/home-slots.e2e.ts b/theme/stencil/src/components/home-slots/test/home-slots.e2e.ts index 9dbadec756956..29a1aa6a8addb 100644 --- a/theme/stencil/src/components/home-slots/test/home-slots.e2e.ts +++ b/theme/stencil/src/components/home-slots/test/home-slots.e2e.ts @@ -1,11 +1,11 @@ -import { newE2EPage } from '@stencil/core/testing'; +import { newE2EPage } from "@stencil/core/testing"; -describe('home-slots', () => { - it('renders', async () => { - const page = await newE2EPage(); - await page.setContent(''); +describe("home-slots", () => { + it("renders", async () => { + const page = await newE2EPage(); + await page.setContent(""); - const element = await page.find('home-slots'); - expect(element).toHaveClass('hydrated'); - }); + const element = await page.find("home-slots"); + expect(element).toHaveClass("hydrated"); + }); }); diff --git a/theme/stencil/src/components/home-slots/test/home-slots.spec.tsx b/theme/stencil/src/components/home-slots/test/home-slots.spec.tsx index 8b5bd3d1760ef..35d325c7fec6a 100644 --- a/theme/stencil/src/components/home-slots/test/home-slots.spec.tsx +++ b/theme/stencil/src/components/home-slots/test/home-slots.spec.tsx @@ -1,18 +1,18 @@ -import { newSpecPage } from '@stencil/core/testing'; -import { HomeSlots } from '../home-slots'; +import { newSpecPage } from "@stencil/core/testing"; +import { HomeSlots } from "../home-slots"; -describe('home-slots', () => { - it('renders', async () => { - const page = await newSpecPage({ - components: [HomeSlots], - html: ``, - }); - expect(page.root).toEqualHtml(` +describe("home-slots", () => { + it("renders", async () => { + const page = await newSpecPage({ + components: [HomeSlots], + html: ``, + }); + expect(page.root).toEqualHtml(` `); - }); + }); }); diff --git a/theme/stencil/src/components/pulumi-api-doc-filterable-nav/pulumi-api-doc-filterable-nav.tsx b/theme/stencil/src/components/pulumi-api-doc-filterable-nav/pulumi-api-doc-filterable-nav.tsx index 53bcbcd5fdcc5..7c274f36c5d28 100644 --- a/theme/stencil/src/components/pulumi-api-doc-filterable-nav/pulumi-api-doc-filterable-nav.tsx +++ b/theme/stencil/src/components/pulumi-api-doc-filterable-nav/pulumi-api-doc-filterable-nav.tsx @@ -72,12 +72,7 @@ export class PulumiApiDocFilterableNav { filterTreeToMatchingContent(nodesToRender: APINavNode[], nodesToSearch: APINavNode[], rootNode?: APINavNode, directParentNode?: APINavNode) { // call recursive helper method, only setting this.currentlyRenderedNodes once at the end to trigger re-painting the DOM. - const resultNodes = this.filterTreeToMatchingRecursive( - nodesToRender, - nodesToSearch, - rootNode, - directParentNode - ); + const resultNodes = this.filterTreeToMatchingRecursive(nodesToRender, nodesToSearch, rootNode, directParentNode); this.currentlyRenderedNodes = resultNodes; } @@ -170,14 +165,7 @@ export class PulumiApiDocFilterableNav { const nodesDirectParent = rootNode ? node : null; // we recurse to children passing along the cache and building up the nodePath array so we dedupe items by fully qualified name. // node that this function mutates nodesToRender, accumulating child state. - this.filterTreeToMatchingRecursive( - nodesToRender, - node.children, - nodesRootParent, - nodesDirectParent, - nodeCache, - nodePath.concat([node.name]) - ); + this.filterTreeToMatchingRecursive(nodesToRender, node.children, nodesRootParent, nodesDirectParent, nodeCache, nodePath.concat([node.name])); } }); @@ -188,12 +176,10 @@ export class PulumiApiDocFilterableNav { reconstructedTreeOfMatches.map(root => { root.children = nodesToRender.filter(nodeToRender => nodeToRender.parentName === root.name); - root.children?.map((child) => { + root.children?.map(child => { // We check that both the parent and the root match to handle the case where there are multiple parents // with the same name (eg "v1"). - child.children = nodesToRender.filter( - (nodeToRender) => nodeToRender.parentName === child.name && nodeToRender.rootName === root.name - ); + child.children = nodesToRender.filter(nodeToRender => nodeToRender.parentName === child.name && nodeToRender.rootName === root.name); }); }); @@ -255,10 +241,6 @@ export class PulumiApiDocFilterableNav { } render() { - return ( -
      - {this.isLoading ? this.getLoadingState() : this.getFilterAndNavTree()} -
      - ); + return
      {this.isLoading ? this.getLoadingState() : this.getFilterAndNavTree()}
      ; } } diff --git a/theme/stencil/src/components/pulumi-api-doc-nav-node/pulumi-api-doc-nav-node.tsx b/theme/stencil/src/components/pulumi-api-doc-nav-node/pulumi-api-doc-nav-node.tsx index a159632aa4333..f32a9e15a9767 100644 --- a/theme/stencil/src/components/pulumi-api-doc-nav-node/pulumi-api-doc-nav-node.tsx +++ b/theme/stencil/src/components/pulumi-api-doc-nav-node/pulumi-api-doc-nav-node.tsx @@ -103,24 +103,19 @@ export class PulumiApiDocNavNode { const hasChildren = node.children ? node.children.length === 0 : false; return ( -
      0 - ? "true" - : "false" - } - + data-expandable={node.children && node.children.length > 0 ? "true" : "false"} class="nav-tree-item nested" - id={node.name} - title={node.name} - onClick={() => this.onExpansionChange(nodeHref, !hasChildren)} + id={node.name} + title={node.name} + onClick={() => this.onExpansionChange(nodeHref, !hasChildren)} > - this.handleLinkClick(e, nodeHref)}> - {this.getIcon(node.type)} - {node.name} - + this.handleLinkClick(e, nodeHref)}> + {this.getIcon(node.type)} + {node.name} + {this.getChildNodes(node.children, this.isExpanded, depth + 1, nodeHref)}
      @@ -131,26 +126,21 @@ export class PulumiApiDocNavNode { render() { return (
      0 - ? "true" - : "false" - } - class="nav-tree-item nested" - id={this.node.name} - + open={this.isExpanded} + data-expandable={this.node.children && this.node.children.length > 0 ? "true" : "false"} + class="nav-tree-item nested" + id={this.node.name} title={this.node.name} onClick={() => this.onExpansionChange(this.href, this.node.children.length === 0)} - > - - this.handleLinkClick(e, this.href)}> - {this.getIcon(this.node.type)} - {this.node.name} - - - {this.getChildNodes(this.node.children, this.isExpanded)} -
      + > + + this.handleLinkClick(e, this.href)}> + {this.getIcon(this.node.type)} + {this.node.name} + + + {this.getChildNodes(this.node.children, this.isExpanded)} + ); } } diff --git a/theme/stencil/src/components/pulumi-api-doc-nav-tree/pulumi-api-doc-nav-tree.scss b/theme/stencil/src/components/pulumi-api-doc-nav-tree/pulumi-api-doc-nav-tree.scss index 491f31271cc23..e558a7cefaa50 100644 --- a/theme/stencil/src/components/pulumi-api-doc-nav-tree/pulumi-api-doc-nav-tree.scss +++ b/theme/stencil/src/components/pulumi-api-doc-nav-tree/pulumi-api-doc-nav-tree.scss @@ -62,7 +62,6 @@ $base-ch-width-xl: 24ch; $base-ch-width-l: 12ch; .nav-tree-item { - a { height: 100%; display: flex; @@ -136,7 +135,7 @@ details { text-decoration: underline; } - &[data-selected="true"] { + &[data-selected="true"] { background-color: #e0e0e0; font-weight: bold; @@ -178,4 +177,4 @@ details { } } } -} \ No newline at end of file +} diff --git a/theme/stencil/src/components/pulumi-api-doc-nav-tree/pulumi-api-doc-nav-tree.tsx b/theme/stencil/src/components/pulumi-api-doc-nav-tree/pulumi-api-doc-nav-tree.tsx index ab7e69c30b5bb..3eab1d1255f11 100644 --- a/theme/stencil/src/components/pulumi-api-doc-nav-tree/pulumi-api-doc-nav-tree.tsx +++ b/theme/stencil/src/components/pulumi-api-doc-nav-tree/pulumi-api-doc-nav-tree.tsx @@ -19,7 +19,7 @@ export class PulumiApiDocNavTree { // links to end in a trailing slash for SEO reasons, so we check if it already exists. // If so, we leave it alone, otherwise we add it. const nodeLinkLastChar = node.link.charAt(node.link.length - 1); - const nodeLink = nodeLinkLastChar === "/" ? node.link : `${node.link}/` + const nodeLink = nodeLinkLastChar === "/" ? node.link : `${node.link}/`; const nodeHref = `${this.baseDirectory}${nodeLink}`; return ; diff --git a/theme/stencil/src/components/pulumi-pricing-calculator/pulumi-pricing-calculator.scss b/theme/stencil/src/components/pulumi-pricing-calculator/pulumi-pricing-calculator.scss index a795d64055673..cb6cb2a0c41d4 100644 --- a/theme/stencil/src/components/pulumi-pricing-calculator/pulumi-pricing-calculator.scss +++ b/theme/stencil/src/components/pulumi-pricing-calculator/pulumi-pricing-calculator.scss @@ -94,15 +94,7 @@ .gradient { border-radius: 12px 12px 0px 0px; height: 8px; - background: linear-gradient( - 90deg, - #f7bf2a 0%, - #f26e7e 18.23%, - #be5188 38.02%, - #8a3391 53.65%, - #805ac3 74.48%, - #7682f4 100% - ); + background: linear-gradient(90deg, #f7bf2a 0%, #f26e7e 18.23%, #be5188 38.02%, #8a3391 53.65%, #805ac3 74.48%, #7682f4 100%); } .duration { @@ -204,7 +196,7 @@ margin-right: 4px; } } - + .blurred { filter: blur(16px); } @@ -297,15 +289,7 @@ input[type="range"]::-webkit-slider-runnable-track { -webkit-appearance: none; border-radius: 10px; background: #4776e6; /* fallback for old browsers */ - background: linear-gradient( - 90deg, - #f7bf2a 0%, - #f26e7e 18.23%, - #be5188 38.02%, - #8a3391 53.65%, - #805ac3 74.48%, - #7682f4 100% - ); + background: linear-gradient(90deg, #f7bf2a 0%, #f26e7e 18.23%, #be5188 38.02%, #8a3391 53.65%, #805ac3 74.48%, #7682f4 100%); height: 7.5px; } @@ -331,8 +315,7 @@ input[type="range"]::-webkit-slider-thumb { border-color: #805ac3; } - -@media(max-width: 1280px) { +@media (max-width: 1280px) { .calculator .field { .details { flex-direction: column; @@ -344,7 +327,7 @@ input[type="range"]::-webkit-slider-thumb { } } -@media(max-width: 1024px) { +@media (max-width: 1024px) { .calculator { .content { flex-direction: column; @@ -356,10 +339,10 @@ input[type="range"]::-webkit-slider-thumb { } } -@media(max-width: 640px) { +@media (max-width: 640px) { .calculator .field .details { .description { - width: 100% + width: 100%; } .input { width: 100%; @@ -369,4 +352,4 @@ input[type="range"]::-webkit-slider-thumb { .range { width: 100%; } -} \ No newline at end of file +} diff --git a/theme/stencil/src/components/pulumi-pricing-calculator/pulumi-pricing-calculator.tsx b/theme/stencil/src/components/pulumi-pricing-calculator/pulumi-pricing-calculator.tsx index f6945f95aa399..12274abd5f8df 100644 --- a/theme/stencil/src/components/pulumi-pricing-calculator/pulumi-pricing-calculator.tsx +++ b/theme/stencil/src/components/pulumi-pricing-calculator/pulumi-pricing-calculator.tsx @@ -1,220 +1,242 @@ -import { Component, State, h } from '@stencil/core'; +import { Component, State, h } from "@stencil/core"; type Duration = "day" | "month"; @Component({ - tag: 'pulumi-pricing-calculator', - styleUrl: 'pulumi-pricing-calculator.scss', - shadow: false, + tag: "pulumi-pricing-calculator", + styleUrl: "pulumi-pricing-calculator.scss", + shadow: false, }) - export class PulumiPricingCalculator { - @State() - duration: Duration = "month" + @State() + duration: Duration = "month"; - @State() - resourceCount: number = 500; - - @State() - utilization: number = 100; - - @State() - deploymentsExpanded: boolean = false; - - @State() - deploymentMinutes: number = 0; - - updateDuration(duration: Duration) { - this.duration = duration; - } - - getCostPerDeploymentMinute() { - return 0.01; - } - - getFreeDeploymentMinutes() { - if (this.duration === "month") { - return 3000; - } else { - return (3000 / 30); - } - } - - getEstimatedCredits() { - if (this.duration === "month") { - return this.resourceCount * (24 * (this.utilization / 100)) * 30 - } else { - return this.resourceCount * (24 * (this.utilization / 100)) - } - } - - getEstimatedDeploymentMinutes() { - if (this.duration === "month") { - return this.deploymentMinutes * 30; - } else { - return this.deploymentMinutes; - } - } - - updateDeploymentsExpanded() { - this.deploymentsExpanded = !this.deploymentsExpanded - } - - getFreeCredits() { - if (this.duration === "month") { - return 150000; - } else { - return (150000 / 30); - } - } - - getCostPerCredit() { - return 0.0005; - } - - getTotal() { - if (this.deploymentsExpanded) { - const deploymentCost = ((this.getEstimatedDeploymentMinutes() - this.getFreeDeploymentMinutes()) * this.getCostPerDeploymentMinute()); - const cost = ((this.getEstimatedCredits() - this.getFreeCredits()) * this.getCostPerCredit()) + (deploymentCost > 0 ? deploymentCost : 0); - return cost > 0 ? cost : 0; - } else { - const cost = (this.getEstimatedCredits() - this.getFreeCredits()) * this.getCostPerCredit(); - return cost > 0 ? cost : 0; - } - } - - isTotalOverMax() { - return this.getTotal() > 1670 && this.duration === "month" || this.getTotal() > 55 && this.duration === "day"; - } - - showFormattedTotal() { - return `$${this.formatNumber(this.getTotal())} / ${this.duration === "day" ? "day" : "mo"}` - } - - updateResourceCount(event: CustomEvent) { - const val = (event.target as HTMLInputElement).value.trim(); - this.resourceCount = val === "" ? 0 : parseInt(val) - } - - updateUtilization(event: CustomEvent) { - const val = (event.target as HTMLInputElement).value.trim(); - this.utilization = val === "" ? 1 : parseInt(val) - } - - updateDeploymentMinutes(event: CustomEvent) { - const val = (event.target as HTMLInputElement).value.trim(); - this.deploymentMinutes = val === "" ? 0 : parseInt(val) - } - - formatNumber(num: number) { - return new Intl.NumberFormat().format(Math.round(num)); - } - - render() { - return ( -
      -

      Cost estimator

      -
      Team Edition
      -
      -
      -
      -
      Number of resources
      -
      -
      - All cloud resources cost the same amount in Pulumi Cloud. Look at your cloud account and enter - here the number of - resources. -
      -
      - - this.updateResourceCount(event as any)} value={this.resourceCount} - > -
      -
      -
      - -
      -
      Utilization
      -
      -
      - If you have resources that are being spun up and down throughout the day, estimate the - percentage of the time the total - resource count will be reached. -
      -
      -
      - this.updateUtilization(event as - any)} value={this.utilization}>% -
      - this.updateUtilization(event as - any)} value={this.utilization} class="range purple" /> -
      -
      -
      - -
      -
      - -
      -
      Add on Pulumi Deployments
      -
      Run deployments remotely with a button, Git push, or REST API
      -
      - -
      - - -
      -
      Deployment minutes per day
      -
      -
      - Deployment minutes refer to the duration of time elapsed when running deployments on - Pulumi’s compute. Use your current update times and add buffer for any workflows that need - to happen. -
      -
      - this.updateDeploymentMinutes(event as any)} - value={this.deploymentMinutes}> -
      -
      -
      -
      -
      -
      -
      -
      -
      - - -
      -
      -
      Estimated credits per {this.duration}{ - this.formatNumber(this.getEstimatedCredits())}
      -
      Free credits - included{this.formatNumber(this.getFreeCredits())}
      -
      Cost per credit${this.getCostPerCredit()}
      - -
      -
      Deployments
      -
      Estimated deployment minutes per {this.duration}{ - this.formatNumber(this.getEstimatedDeploymentMinutes())}
      -
      Deployment minutes - included{this.formatNumber(this.getFreeDeploymentMinutes())}
      -
      Cost per deployment - minute${this.getCostPerDeploymentMinute()}
      + @State() + resourceCount: number = 500; + + @State() + utilization: number = 100; + + @State() + deploymentsExpanded: boolean = false; + + @State() + deploymentMinutes: number = 0; + + updateDuration(duration: Duration) { + this.duration = duration; + } + + getCostPerDeploymentMinute() { + return 0.01; + } + + getFreeDeploymentMinutes() { + if (this.duration === "month") { + return 3000; + } else { + return 3000 / 30; + } + } + + getEstimatedCredits() { + if (this.duration === "month") { + return this.resourceCount * (24 * (this.utilization / 100)) * 30; + } else { + return this.resourceCount * (24 * (this.utilization / 100)); + } + } + + getEstimatedDeploymentMinutes() { + if (this.duration === "month") { + return this.deploymentMinutes * 30; + } else { + return this.deploymentMinutes; + } + } + + updateDeploymentsExpanded() { + this.deploymentsExpanded = !this.deploymentsExpanded; + } + + getFreeCredits() { + if (this.duration === "month") { + return 150000; + } else { + return 150000 / 30; + } + } + + getCostPerCredit() { + return 0.0005; + } + + getTotal() { + if (this.deploymentsExpanded) { + const deploymentCost = (this.getEstimatedDeploymentMinutes() - this.getFreeDeploymentMinutes()) * this.getCostPerDeploymentMinute(); + const cost = (this.getEstimatedCredits() - this.getFreeCredits()) * this.getCostPerCredit() + (deploymentCost > 0 ? deploymentCost : 0); + return cost > 0 ? cost : 0; + } else { + const cost = (this.getEstimatedCredits() - this.getFreeCredits()) * this.getCostPerCredit(); + return cost > 0 ? cost : 0; + } + } + + isTotalOverMax() { + return (this.getTotal() > 1670 && this.duration === "month") || (this.getTotal() > 55 && this.duration === "day"); + } + + showFormattedTotal() { + return `$${this.formatNumber(this.getTotal())} / ${this.duration === "day" ? "day" : "mo"}`; + } + + updateResourceCount(event: CustomEvent) { + const val = (event.target as HTMLInputElement).value.trim(); + this.resourceCount = val === "" ? 0 : parseInt(val); + } + + updateUtilization(event: CustomEvent) { + const val = (event.target as HTMLInputElement).value.trim(); + this.utilization = val === "" ? 1 : parseInt(val); + } + + updateDeploymentMinutes(event: CustomEvent) { + const val = (event.target as HTMLInputElement).value.trim(); + this.deploymentMinutes = val === "" ? 0 : parseInt(val); + } + + formatNumber(num: number) { + return new Intl.NumberFormat().format(Math.round(num)); + } + + render() { + return ( +
      +

      Cost estimator

      +
      Team Edition
      +
      +
      +
      +
      Number of resources
      +
      +
      + All cloud resources cost the same amount in Pulumi Cloud. Look at your cloud account and enter here the number of resources. +
      +
      + this.updateResourceCount(event as any)} + value={this.resourceCount} + > +
      +
      +
      + +
      +
      Utilization
      +
      +
      + If you have resources that are being spun up and down throughout the day, estimate the percentage of the time the total resource count will be + reached. +
      +
      +
      + this.updateUtilization(event as any)} value={this.utilization}> + % +
      + this.updateUtilization(event as any)} + value={this.utilization} + class="range purple" + /> +
      +
      +
      + +
      +
      + +
      +
      Add on Pulumi Deployments
      +
      Run deployments remotely with a button, Git push, or REST API
      +
      + +
      + +
      +
      Deployment minutes per day
      +
      +
      + Deployment minutes refer to the duration of time elapsed when running deployments on Pulumi’s compute. Use your current update times and add + buffer for any workflows that need to happen. +
      +
      + this.updateDeploymentMinutes(event as any)} value={this.deploymentMinutes}> +
      +
      +
      +
      +
      +
      +
      +
      +
      + + +
      +
      +
      + Estimated credits per {this.duration} + {this.formatNumber(this.getEstimatedCredits())} +
      +
      + Free credits included + {this.formatNumber(this.getFreeCredits())} +
      +
      + Cost per credit + ${this.getCostPerCredit()} +
      + +
      +
      Deployments
      +
      + Estimated deployment minutes per {this.duration} + {this.formatNumber(this.getEstimatedDeploymentMinutes())} +
      +
      + Deployment minutes included + {this.formatNumber(this.getFreeDeploymentMinutes())} +
      +
      + Cost per deployment minute + ${this.getCostPerDeploymentMinute()} +
      +
      +
      +
      +
      + + Contact salesfor bulk discounts + + {this.showFormattedTotal()} +
      +
      -
      -
      -
      - Contact salesfor bulk discounts - {this.showFormattedTotal()}
      -
      -
      -
      - ); - } + ); + } } diff --git a/theme/stencil/src/components/pulumi-pricing-calculator/test/pulumi-pricing-calculator.e2e.ts b/theme/stencil/src/components/pulumi-pricing-calculator/test/pulumi-pricing-calculator.e2e.ts index 8bf9df467163f..0a3fd36c40712 100644 --- a/theme/stencil/src/components/pulumi-pricing-calculator/test/pulumi-pricing-calculator.e2e.ts +++ b/theme/stencil/src/components/pulumi-pricing-calculator/test/pulumi-pricing-calculator.e2e.ts @@ -1,11 +1,11 @@ -import { newE2EPage } from '@stencil/core/testing'; +import { newE2EPage } from "@stencil/core/testing"; -describe('pulumi-pricing-calculator', () => { - it('renders', async () => { - const page = await newE2EPage(); - await page.setContent(''); +describe("pulumi-pricing-calculator", () => { + it("renders", async () => { + const page = await newE2EPage(); + await page.setContent(""); - const element = await page.find('pulumi-pricing-calculator'); - expect(element).toHaveClass('hydrated'); - }); + const element = await page.find("pulumi-pricing-calculator"); + expect(element).toHaveClass("hydrated"); + }); }); diff --git a/theme/stencil/src/components/pulumi-pricing-calculator/test/pulumi-pricing-calculator.spec.tsx b/theme/stencil/src/components/pulumi-pricing-calculator/test/pulumi-pricing-calculator.spec.tsx index 72d1ab4ff6902..64504fafd0e3b 100644 --- a/theme/stencil/src/components/pulumi-pricing-calculator/test/pulumi-pricing-calculator.spec.tsx +++ b/theme/stencil/src/components/pulumi-pricing-calculator/test/pulumi-pricing-calculator.spec.tsx @@ -1,18 +1,18 @@ -import { newSpecPage } from '@stencil/core/testing'; -import { PulumiPricingCalculator } from '../pulumi-pricing-calculator'; +import { newSpecPage } from "@stencil/core/testing"; +import { PulumiPricingCalculator } from "../pulumi-pricing-calculator"; -describe('pulumi-pricing-calculator', () => { - it('renders', async () => { - const page = await newSpecPage({ - components: [PulumiPricingCalculator], - html: ``, - }); - expect(page.root).toEqualHtml(` +describe("pulumi-pricing-calculator", () => { + it("renders", async () => { + const page = await newSpecPage({ + components: [PulumiPricingCalculator], + html: ``, + }); + expect(page.root).toEqualHtml(` `); - }); + }); }); diff --git a/theme/stencil/src/components/pulumi-registry-list-search/pulumi-registry-list-search.scss b/theme/stencil/src/components/pulumi-registry-list-search/pulumi-registry-list-search.scss index 62acd98837b25..f8dc82ec1ec2c 100644 --- a/theme/stencil/src/components/pulumi-registry-list-search/pulumi-registry-list-search.scss +++ b/theme/stencil/src/components/pulumi-registry-list-search/pulumi-registry-list-search.scss @@ -1,64 +1,64 @@ - @import "../../../../src/scss/colors"; +@import "../../../../src/scss/colors"; - .input-container { - display: inline-block; - position: relative; - width: 100%; - max-width: 550px; +.input-container { + display: inline-block; + position: relative; + width: 100%; + max-width: 550px; - .clear-container { - position: absolute; - display: flex; - align-items: center; - margin-right: 6px; - top: 0; - right: 0; - height: 100%; - } + .clear-container { + position: absolute; + display: flex; + align-items: center; + margin-right: 6px; + top: 0; + right: 0; + height: 100%; + } - .search-icon { - position: absolute; - display: flex; - align-items: center; - height: 100%; - padding-left: 12px; - color: map-get($gray, 400); - } + .search-icon { + position: absolute; + display: flex; + align-items: center; + height: 100%; + padding-left: 12px; + color: map-get($gray, 400); + } - .clear-filter-button { - display: flex; - align-items: center; - justify-content: center; - height: 18px; - width: 18px; - font-size: xx-small; - background: map-get($gray, 300); - color: map-get($gray, 500); - border-radius: 50%; - border: none; - cursor: pointer; - padding: 0px; - } + .clear-filter-button { + display: flex; + align-items: center; + justify-content: center; + height: 18px; + width: 18px; + font-size: xx-small; + background: map-get($gray, 300); + color: map-get($gray, 500); + border-radius: 50%; + border: none; + cursor: pointer; + padding: 0px; + } - .registry-filter-input { - font-family: "Inter"; - font-size: 14px; - height: 36px; - width: 100%; - border-radius: 4px; - border: 2px solid $black; - padding: 6px; - // Accomodate the absolutely positioned filter icon. - padding-left: 40px; - margin-top: 0; + .registry-filter-input { + font-family: "Inter"; + font-size: 14px; + height: 36px; + width: 100%; + border-radius: 4px; + border: 2px solid $black; + padding: 6px; + // Accomodate the absolutely positioned filter icon. + padding-left: 40px; + margin-top: 0; - &:focus { - outline-color: $brand-blue; - } + &:focus { + outline-color: $brand-blue; } + } - .registry-filter-input::placeholder { - font-style: italic; - color: map-get($gray, 500); - } - } \ No newline at end of file + .registry-filter-input::placeholder { + font-style: italic; + color: map-get($gray, 500); + } +} diff --git a/theme/stencil/src/components/pulumi-registry-list-search/pulumi-registry-list-search.tsx b/theme/stencil/src/components/pulumi-registry-list-search/pulumi-registry-list-search.tsx index 3cfe7d5cd58e5..18e72b963752a 100644 --- a/theme/stencil/src/components/pulumi-registry-list-search/pulumi-registry-list-search.tsx +++ b/theme/stencil/src/components/pulumi-registry-list-search/pulumi-registry-list-search.tsx @@ -39,7 +39,7 @@ export class PulumiRegistryListSearch { // results for any filters/search. No need to emit the event, because this starts // over with all packages. reset() { - this.filterContent = ""; + this.filterContent = ""; } render() { diff --git a/theme/stencil/src/components/pulumi-registry-list-search/test/pulumi-registry-list-search.e2e.ts b/theme/stencil/src/components/pulumi-registry-list-search/test/pulumi-registry-list-search.e2e.ts index c3ffed20dd97a..7e8a51cc468c7 100644 --- a/theme/stencil/src/components/pulumi-registry-list-search/test/pulumi-registry-list-search.e2e.ts +++ b/theme/stencil/src/components/pulumi-registry-list-search/test/pulumi-registry-list-search.e2e.ts @@ -1,11 +1,11 @@ -import { newE2EPage } from '@stencil/core/testing'; +import { newE2EPage } from "@stencil/core/testing"; -describe('pulumi-registry-list-search', () => { - it('renders', async () => { - const page = await newE2EPage(); - await page.setContent(''); +describe("pulumi-registry-list-search", () => { + it("renders", async () => { + const page = await newE2EPage(); + await page.setContent(""); - const element = await page.find('pulumi-registry-list-search'); - expect(element).toHaveClass('hydrated'); - }); + const element = await page.find("pulumi-registry-list-search"); + expect(element).toHaveClass("hydrated"); + }); }); diff --git a/theme/stencil/src/components/pulumi-registry-list-search/test/pulumi-registry-list-search.spec.tsx b/theme/stencil/src/components/pulumi-registry-list-search/test/pulumi-registry-list-search.spec.tsx index b9a5b8ddcccbc..0839a48a64583 100644 --- a/theme/stencil/src/components/pulumi-registry-list-search/test/pulumi-registry-list-search.spec.tsx +++ b/theme/stencil/src/components/pulumi-registry-list-search/test/pulumi-registry-list-search.spec.tsx @@ -1,18 +1,18 @@ -import { newSpecPage } from '@stencil/core/testing'; -import { PulumiRegistryListSearch } from '../pulumi-registry-list-search'; +import { newSpecPage } from "@stencil/core/testing"; +import { PulumiRegistryListSearch } from "../pulumi-registry-list-search"; -describe('pulumi-registry-list-search', () => { - it('renders', async () => { - const page = await newSpecPage({ - components: [PulumiRegistryListSearch], - html: ``, - }); - expect(page.root).toEqualHtml(` +describe("pulumi-registry-list-search", () => { + it("renders", async () => { + const page = await newSpecPage({ + components: [PulumiRegistryListSearch], + html: ``, + }); + expect(page.root).toEqualHtml(` `); - }); + }); }); diff --git a/theme/stencil/src/components/pulumi-tertiary-nav/pulumi-tertiary-nav.css b/theme/stencil/src/components/pulumi-tertiary-nav/pulumi-tertiary-nav.css index 5d4e87f30f636..7f26ddcb55034 100644 --- a/theme/stencil/src/components/pulumi-tertiary-nav/pulumi-tertiary-nav.css +++ b/theme/stencil/src/components/pulumi-tertiary-nav/pulumi-tertiary-nav.css @@ -1,3 +1,3 @@ :host { - display: block; + display: block; } diff --git a/theme/stencil/src/components/pulumi-tertiary-nav/pulumi-tertiary-nav.tsx b/theme/stencil/src/components/pulumi-tertiary-nav/pulumi-tertiary-nav.tsx index 13c200d62b842..f4ae53893390b 100644 --- a/theme/stencil/src/components/pulumi-tertiary-nav/pulumi-tertiary-nav.tsx +++ b/theme/stencil/src/components/pulumi-tertiary-nav/pulumi-tertiary-nav.tsx @@ -30,7 +30,7 @@ export class PulumiTertiaryNav { this.parsedItems = JSON.parse(this.items); // Collection of anchor tags - this.tabContent = this.parsedItems.map((item) => item.anchor); + this.tabContent = this.parsedItems.map(item => item.anchor); // The first tab is selected on initial load. this.selectTab(this.parsedItems[0]); @@ -41,9 +41,9 @@ export class PulumiTertiaryNav { document.getElementById(`${item.anchor}`).classList.remove("hidden"); - const unselectedTabs = this.tabContent.filter((value) => value !== item.anchor); + const unselectedTabs = this.tabContent.filter(value => value !== item.anchor); - unselectedTabs.forEach((tab) => { + unselectedTabs.forEach(tab => { document.getElementById(`${tab}`).classList.add("hidden"); }); } diff --git a/theme/stencil/src/components/pulumi-tertiary-nav/test/pulumi-tertiary-nav.e2e.ts b/theme/stencil/src/components/pulumi-tertiary-nav/test/pulumi-tertiary-nav.e2e.ts index 0cdb9d497aabe..5a0daed44ce8e 100644 --- a/theme/stencil/src/components/pulumi-tertiary-nav/test/pulumi-tertiary-nav.e2e.ts +++ b/theme/stencil/src/components/pulumi-tertiary-nav/test/pulumi-tertiary-nav.e2e.ts @@ -1,11 +1,11 @@ -import { newE2EPage } from '@stencil/core/testing'; +import { newE2EPage } from "@stencil/core/testing"; -describe('pulumi-tertiary-nav', () => { - it('renders', async () => { - const page = await newE2EPage(); - await page.setContent(''); +describe("pulumi-tertiary-nav", () => { + it("renders", async () => { + const page = await newE2EPage(); + await page.setContent(""); - const element = await page.find('pulumi-tertiary-nav'); - expect(element).toHaveClass('hydrated'); - }); + const element = await page.find("pulumi-tertiary-nav"); + expect(element).toHaveClass("hydrated"); + }); }); diff --git a/theme/stencil/src/components/pulumi-tertiary-nav/test/pulumi-tertiary-nav.spec.tsx b/theme/stencil/src/components/pulumi-tertiary-nav/test/pulumi-tertiary-nav.spec.tsx index c1a49458f6806..207e864a18b34 100644 --- a/theme/stencil/src/components/pulumi-tertiary-nav/test/pulumi-tertiary-nav.spec.tsx +++ b/theme/stencil/src/components/pulumi-tertiary-nav/test/pulumi-tertiary-nav.spec.tsx @@ -1,18 +1,18 @@ -import { newSpecPage } from '@stencil/core/testing'; -import { PulumiTertiaryNav } from '../pulumi-tertiary-nav'; +import { newSpecPage } from "@stencil/core/testing"; +import { PulumiTertiaryNav } from "../pulumi-tertiary-nav"; -describe('pulumi-tertiary-nav', () => { - it('renders', async () => { - const page = await newSpecPage({ - components: [PulumiTertiaryNav], - html: ``, - }); - expect(page.root).toEqualHtml(` +describe("pulumi-tertiary-nav", () => { + it("renders", async () => { + const page = await newSpecPage({ + components: [PulumiTertiaryNav], + html: ``, + }); + expect(page.root).toEqualHtml(` `); - }); + }); }); diff --git a/theme/stencil/src/components/resource-links/resource-links.tsx b/theme/stencil/src/components/resource-links/resource-links.tsx index 147b55c293e69..4dddd0088a5d5 100644 --- a/theme/stencil/src/components/resource-links/resource-links.tsx +++ b/theme/stencil/src/components/resource-links/resource-links.tsx @@ -22,45 +22,48 @@ export class ResourceLinks { componentWillLoad() { // Fetch JSON file containing resource link information. fetch("https://www.pulumi.com/uploads/related-resources/2022-12-19.json") - .then(resp => resp.json()) - .then((response) => { - const relatedResources = response; - if (relatedResources) { - const pkg = this.packageName.toLowerCase(); - const module = this.moduleName.toLowerCase(); - const typ = this.resourceName.toLowerCase(); + .then(resp => resp.json()) + .then(response => { + const relatedResources = response; + if (relatedResources) { + const pkg = this.packageName.toLowerCase(); + const module = this.moduleName.toLowerCase(); + const typ = this.resourceName.toLowerCase(); - // Look up related links for this resource. - this.related = relatedResources[pkg] ? relatedResources[pkg][module] ? relatedResources[pkg][module][typ] : undefined : undefined; - - } - }) - .catch(err => console.error(err)); + // Look up related links for this resource. + this.related = relatedResources[pkg] ? (relatedResources[pkg][module] ? relatedResources[pkg][module][typ] : undefined) : undefined; + } + }) + .catch(err => console.error(err)); } render() { // relatedResources will be set once the response returns and state is updated, // so return empty div until then. if (!this.related) { - return
      + return
      ; } const pkg = this.packageName.toLowerCase(); return (
      -
      +
      Related Resources
      - { - this.related.map((typ: string) => { - // Parse out the module and resource from the related resource. - // We are currently only linking to resources related in the - // same package. - const parts = typ.split("/"); - let module = parts.slice(0, parts.length-1).join("/"); - const resource = parts[parts.length-1]; - const rellink = `/registry/packages/${pkg}/api-docs/${module.toLowerCase()}/${resource.toLowerCase()}/`; - return - }) - } + {this.related.map((typ: string) => { + // Parse out the module and resource from the related resource. + // We are currently only linking to resources related in the + // same package. + const parts = typ.split("/"); + let module = parts.slice(0, parts.length - 1).join("/"); + const resource = parts[parts.length - 1]; + const rellink = `/registry/packages/${pkg}/api-docs/${module.toLowerCase()}/${resource.toLowerCase()}/`; + return ( + + ); + })}
      ); } diff --git a/theme/stencil/src/components/swiper/swiper.tsx b/theme/stencil/src/components/swiper/swiper.tsx index 226e9c7e1d9ba..3e7a335d32db1 100644 --- a/theme/stencil/src/components/swiper/swiper.tsx +++ b/theme/stencil/src/components/swiper/swiper.tsx @@ -100,12 +100,12 @@ export class Swiper { spaceBetween: this.spaceBetween, }); - if ((this.direction === "horizontal") && this.loop) { + if (this.direction === "horizontal" && this.loop) { const sw = this.swiper; - this.swiper.once("reachEnd", (_swiper) => { + this.swiper.once("reachEnd", _swiper => { const slides = sw.slides; - for (let i = 0; i < slides.length; i ++) { + for (let i = 0; i < slides.length; i++) { const slidePosition = slides.length + i; const slide = slides[i]; sw.addSlide(slidePosition, slide as HTMLElement); diff --git a/theme/stencil/src/components/tabs/tab.tsx b/theme/stencil/src/components/tabs/tab.tsx index 4fd392d8a841a..27bcbb3817d73 100644 --- a/theme/stencil/src/components/tabs/tab.tsx +++ b/theme/stencil/src/components/tabs/tab.tsx @@ -1,11 +1,10 @@ -import { Component, Element, h, Prop } from '@stencil/core'; +import { Component, Element, h, Prop } from "@stencil/core"; @Component({ tag: "pulumi-tab", shadow: true, }) export class Tab { - @Prop() label: string; @@ -22,12 +21,14 @@ export class Tab { } render() { - return
      - { -
      - -
      - } -
      ; + return ( +
      + { +
      + +
      + } +
      + ); } } diff --git a/theme/stencil/src/components/tabs/tabs.spec.e2e.ts b/theme/stencil/src/components/tabs/tabs.spec.e2e.ts index 57e9d4d960a6c..f0bbeaacb140e 100644 --- a/theme/stencil/src/components/tabs/tabs.spec.e2e.ts +++ b/theme/stencil/src/components/tabs/tabs.spec.e2e.ts @@ -1,7 +1,6 @@ import { newE2EPage } from "@stencil/core/testing"; describe("pulumi-tabs", () => { - it("renders", async () => { const page = await newE2EPage(); await page.setContent(""); @@ -68,7 +67,6 @@ describe("pulumi-tabs", () => { }); describe("when an active tab is specified", () => { - beforeEach(() => { tabContent = ` @@ -89,5 +87,5 @@ describe("pulumi-tabs", () => { expect(elements[1].getAttribute("active")).toBe("true"); }); }); - }) + }); }); diff --git a/theme/stencil/src/components/tabs/tabs.spec.ts b/theme/stencil/src/components/tabs/tabs.spec.ts index b41542e777321..5964b443fe13b 100644 --- a/theme/stencil/src/components/tabs/tabs.spec.ts +++ b/theme/stencil/src/components/tabs/tabs.spec.ts @@ -1,7 +1,6 @@ import { Tabs } from "./tabs"; describe("pulumi-tabs", () => { - it("builds", () => { expect(new Tabs()).toBeTruthy(); }); diff --git a/theme/stencil/src/components/tabs/tabs.tsx b/theme/stencil/src/components/tabs/tabs.tsx index 51a57cdf3aa41..a106904f66c96 100644 --- a/theme/stencil/src/components/tabs/tabs.tsx +++ b/theme/stencil/src/components/tabs/tabs.tsx @@ -31,10 +31,9 @@ import { Component, Element, Event, EventEmitter, h, State } from "@stencil/core text-align: center; white-space: nowrap; } - ` + `, }) export class Tabs { - @Element() el: HTMLElement; @@ -45,7 +44,6 @@ export class Tabs { tabSelect: EventEmitter; constructor() { - // Check for an explicitly defined active tab. const activeTab = this.tabs.find(t => t.getAttribute("active")); @@ -60,7 +58,7 @@ export class Tabs { // Select the specified tab. private select(tab: HTMLElement) { if (tab) { - this.tabs.forEach(t => t.setAttribute("active", (t === tab).toString())) + this.tabs.forEach(t => t.setAttribute("active", (t === tab).toString())); this.selectedTab = tab; // Emit an event to notify listeners of selection changes. @@ -90,23 +88,24 @@ export class Tabs { } render() { - return
      - - {/* We assemble the clickable elements based on the labels of the pulumi-tab children. */} - - - {/* The tabs themselves. */} - -
      ; + return ( +
      + {/* We assemble the clickable elements based on the labels of the pulumi-tab children. */} + + + {/* The tabs themselves. */} + +
      + ); } } diff --git a/theme/stencil/src/components/user-toggle/user-toggle.scss b/theme/stencil/src/components/user-toggle/user-toggle.scss index 5d828a900cc95..32d57f16e5c7d 100644 --- a/theme/stencil/src/components/user-toggle/user-toggle.scss +++ b/theme/stencil/src/components/user-toggle/user-toggle.scss @@ -1,7 +1,7 @@ pulumi-user-toggle { display: inline; - [slot] { + [slot] { display: none; } diff --git a/theme/stencil/src/components/user-toggle/user-toggle.tsx b/theme/stencil/src/components/user-toggle/user-toggle.tsx index 96e596d6b82a7..ca6910bb5eb33 100644 --- a/theme/stencil/src/components/user-toggle/user-toggle.tsx +++ b/theme/stencil/src/components/user-toggle/user-toggle.tsx @@ -3,9 +3,9 @@ import { store, Unsubscribe } from "@stencil/redux"; import { AppState } from "../../store/state"; @Component({ - tag: "pulumi-user-toggle", - styleUrl: "user-toggle.scss", - shadow: false, + tag: "pulumi-user-toggle", + styleUrl: "user-toggle.scss", + shadow: false, }) export class PulumiUserToggle { private storeUnsubscribe: Unsubscribe; @@ -16,7 +16,9 @@ export class PulumiUserToggle { @Listen("rendered", { target: "document" }) handleRendered(_event: CustomEvent) { this.storeUnsubscribe = store.mapStateToProps(this, (state: AppState) => { - const { user: { id } } = state; + const { + user: { id }, + } = state; return { userId: id, }; @@ -38,9 +40,11 @@ export class PulumiUserToggle { // } render() { - return - - - ; + return ( + + + + + ); } } diff --git a/theme/stencil/src/store/actions/preferences.ts b/theme/stencil/src/store/actions/preferences.ts index 832dd76752da6..898f17906ad04 100644 --- a/theme/stencil/src/store/actions/preferences.ts +++ b/theme/stencil/src/store/actions/preferences.ts @@ -31,40 +31,49 @@ export interface SetBackEnd { key: BackEndKey; } -const dispatchAction = (action: T) => (dispatch, _getState) => dispatch(action); +const dispatchAction = + (action: T) => + (dispatch, _getState) => + dispatch(action); // Set the currently selected language. -export const setLanguage = (key: LanguageKey) => dispatchAction({ - key, - type: TypeKeys.SET_LANGUAGE, -}); +export const setLanguage = (key: LanguageKey) => + dispatchAction({ + key, + type: TypeKeys.SET_LANGUAGE, + }); // Set the currently Kubernetes language. -export const setK8sLanguage = (key: K8sLanguageKey) => dispatchAction({ - key, - type: TypeKeys.SET_K8S_LANGUAGE, -}); +export const setK8sLanguage = (key: K8sLanguageKey) => + dispatchAction({ + key, + type: TypeKeys.SET_K8S_LANGUAGE, + }); // Set the currently OS. -export const setOS = (key: OSKey) => dispatchAction({ - key, - type: TypeKeys.SET_OS, -}); +export const setOS = (key: OSKey) => + dispatchAction({ + key, + type: TypeKeys.SET_OS, + }); // Set the currently selected cloud. -export const setCloud = (key: CloudKey) => dispatchAction({ - key, - type: TypeKeys.SET_CLOUD, -}); +export const setCloud = (key: CloudKey) => + dispatchAction({ + key, + type: TypeKeys.SET_CLOUD, + }); // Set the currently selected persona. -export const setPersona = (key: PersonaKey) => dispatchAction({ - key, - type: TypeKeys.SET_PERSONA, -}); +export const setPersona = (key: PersonaKey) => + dispatchAction({ + key, + type: TypeKeys.SET_PERSONA, + }); // Set the currently selected backend type. -export const setBackEnd = (key: BackEndKey) => dispatchAction({ - key, - type: TypeKeys.SET_BACKEND, -}); +export const setBackEnd = (key: BackEndKey) => + dispatchAction({ + key, + type: TypeKeys.SET_BACKEND, + }); diff --git a/theme/tailwind.config.js b/theme/tailwind.config.js index 758567df7e9c4..2a34bfab614c6 100644 --- a/theme/tailwind.config.js +++ b/theme/tailwind.config.js @@ -9,20 +9,19 @@ const { global } = require("./tokens.json"); const defaultTheme = require("tailwindcss/defaultTheme"); -const hexToRGB = (hexString) => { +const hexToRGB = hexString => { let color = hexString.replace(/#/g, ""); var r = parseInt(color.substr(0, 2), 16); var g = parseInt(color.substr(2, 2), 16); var b = parseInt(color.substr(4, 2), 16); - return [ r, g, b]; + return [r, g, b]; }; -const colorFamilyToRGB = (tailwindColorObject) => { - return Object.keys(tailwindColorObject) - .reduce((o, key) => { - o[key] = hexToRGB(tailwindColorObject[key]).join(","); - return o; - }, {}); +const colorFamilyToRGB = tailwindColorObject => { + return Object.keys(tailwindColorObject).reduce((o, key) => { + o[key] = hexToRGB(tailwindColorObject[key]).join(","); + return o; + }, {}); }; const brand = {