From bd26b41ac79aba7f108330fc7effe36b6ab2202d Mon Sep 17 00:00:00 2001 From: Pablo Seibelt Date: Mon, 7 Oct 2024 01:01:35 -0300 Subject: [PATCH 1/2] Enable tracking on some code copy buttons --- assets/js/bundle.js | 2 +- content/docs/iac/download-install/_index.md | 147 ++++++++++---------- layouts/shortcodes/install-pulumi.html | 6 +- theme/src/ts/copybutton.ts | 13 ++ 4 files changed, 89 insertions(+), 79 deletions(-) diff --git a/assets/js/bundle.js b/assets/js/bundle.js index c96d639863e5..6339e8a144c9 100644 --- a/assets/js/bundle.js +++ b/assets/js/bundle.js @@ -1,4 +1,4 @@ -(()=>{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 $(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:x(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 O(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 x(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 $(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 $(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:O("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")}))}))},744:()=>{$((function(){$("#iac-pricing-select").on("click",(function(){$(".esc-price").addClass("hidden"),$(".iac-price").removeClass("hidden"),$("#esc-pricing-select").removeClass("border-blue-600 bg-violet-100"),$("#esc-pricing-select").addClass("border-gray-300"),$("#esc-pricing-select-text").removeClass("rainbow-text"),$("#iac-pricing-select").addClass("border-blue-600 bg-violet-100"),$("#iac-pricing-select-text").addClass("rainbow-text")})),$("#esc-pricing-select").on("click",(function(){$(".iac-price").addClass("hidden"),$(".esc-price").removeClass("hidden"),$("#iac-pricing-select").removeClass("border-blue-600 bg-violet-100"),$("#iac-pricing-select").addClass("border-gray-300"),$("#iac-pricing-select-text").removeClass("rainbow-text"),$("#esc-pricing-select").addClass("border-blue-600 bg-violet-100"),$("#esc-pricing-select-text").addClass("rainbow-text")}))}))},734:()=>{$((function(){const e=["iac-select","esc-select","insights-select"],t=["crossguard-select","deployments-select","copilot-select","management-select"];e.forEach((t=>{$(`#${t}`).on("click",(function(){e.forEach((e=>{e!==t&&($(`#${e}-content`).addClass("hidden"),$(`#${e}`).removeClass("border-blue-600"),$(`#${e}-text`).removeClass("rainbow-text"))})),$(`#${t}`).addClass("border-blue-600"),$(`#${t}-text`).addClass("rainbow-text"),$(`#${t}-content`).removeClass("hidden")}))})),t.forEach((e=>{$(`#${e}`).on("click",(function(){t.forEach((t=>{t!==e&&($(`#${t}-content`).addClass("hidden"),$(`#${t}`).removeClass("border-blue-600"),$(`#${t}-text`).removeClass("rainbow-text"))})),$(`#${e}`).addClass("border-blue-600"),$(`#${e}-text`).addClass("rainbow-text"),$(`#${e}-content`).removeClass("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=$(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}`}))},$=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}},O=(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?x(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=>O(e,l,C))(e=(e=>O(e,a,x))(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,$e=!1,Oe=!1,xe=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&&($e=!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?$t(a):Te.createTextNode("");else{if(j&&!Oe&&(Oe="svg"===a.$tag$),o=a.$elm$=j?Te.createElementNS(Oe?"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&&Oe&&"foreignObject"===a.$tag$&&(Oe=!1),L&<(null,a,Oe),(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,$e=!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&&(Oe="svg"===i||"foreignObject"!==i&&Oe),(L||O)&&(E&&"slot"===i||lt(e,t,Oe)),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&&Oe&&"svg"===i&&(Oe=!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,$e){let e,t,n,r,o,s;bt(i.$elm$);let a=0;for(;aTe.createComment(` (host=${ye.toLowerCase()})`),Ot=e=>Te.createComment("org-location for "+(e.localName?`<${e.localName}> (host=${e["s-hn"]})`:`[${e.textContent}]`)),xt=(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(xe=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 xe=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 $n(e){return"string"==typeof e&&_n.test(e)}for(var On=[],xn=0;xn<256;++xn)On.push((xn+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=(On[e[t+0]]+On[e[t+1]]+On[e[t+2]]+On[e[t+3]]+"-"+On[e[t+4]]+On[e[t+5]]+"-"+On[e[t+6]]+On[e[t+7]]+"-"+On[e[t+8]]+On[e[t+9]]+"-"+On[e[t+10]]+On[e[t+11]]+On[e[t+12]]+On[e[t+13]]+On[e[t+14]]+On[e[t+15]]).toLowerCase();if(!$n(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-signup",href:"https://app.pulumi.com/signup?utm_source=header-button",target:"_blank",rel:"noopener noreferrer",title:"Dashboard"},"Dashboard"):Xe("a",{class:this.buttonClass,"data-track":"header-signup",href:"https://app.pulumi.com/signup?utm_source=header-button",title:"Sign up"},"Sign up")}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}}"}},jn=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,href:"https://app.pulumi.com/?create-organization=1",target:"_blank"},"Create an Organization"):Xe("a",{class:this.buttonClass,href:"https://app.pulumi.com/signup/",target:"_blank"},"Sign Up")}};var In="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:{};function Ln(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 An(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 Dn=Ln((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]",$="[object Map]",O="[object Number]",x="[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",$e="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Oe="\\u2700-\\u27bf",xe="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="["+$e+"]",Le="\\d+",Ae="["+Oe+"]",De="["+xe+"]",Me="[^"+_e+ke+Le+Oe+xe+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+$e+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[$]=st[O]=st[x]=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[$]=at[O]=at[x]=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 In&&In&&In.Object===Object&&In,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,$t=yt&&yt.isSet,Ot=yt&&yt.isTypedArray;function xt(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,$e=t.Date,Oe=t.Error,xe=t.Function,Ce=t.Math,Ee=t.Object,ke=t.RegExp,Te=t.String,Pe=t.TypeError,je=_e.prototype,Ie=xe.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=$e&&$e.now!==ft.Date.now&&$e.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=$e.now,$n=t.parseInt,On=Ce.random,xn=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==x||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 $:return new r;case O: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($r,!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 $r(e,t){return e&&Sr(e,t,Aa)}function Or(e,t){return Pt(t,(function(t){return ea(e[t])}))}function xr(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(On()*(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 xo=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 $s=Ao((function(e,t,n){Me.call(e,n)?e[n].push(t):ar(e,n,[t])}));var Os=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?xt(t,e,n):Ir(e,t,n)})),i})),xs=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 xo(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&&xo(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=$o((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)==$};function sa(e){return"number"==typeof e||oa(e)&&Er(e)==O}function aa(e){if(!oa(e)||Er(e)!=x)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=$t?Xt($t):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=Ot?Xt(Ot):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==$?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])})),$a=Do((function(e,t){Lo(t,Da(t),e)})),Oa=Do((function(e,t,n,r){Lo(t,Da(t),e,r)})),xa=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 xt(e,n,t)}catch(e){return Zs(e)?e:new Oe(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=Or(t,r);null!=n||ra(t)&&(o.length||!r.length)||(n=t,t=e,e=this,o=Or(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 $i(e)?Ut(Bi(e)):function(e){return function(t){return xr(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),$l=Xo("floor");var Ol,xl=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=$a,qn.assignInWith=Oa,qn.assignWith=xa,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)?Oo(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=Oo(n,0,t);return r&&At(o,r),xt(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=$a,qn.extendWith=Oa,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),$r)},qn.floor=$l,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&&$r(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=xl,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=On();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?Oo(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,(Ol={},_r(qn,(function(e,t){Me.call(qn.prototype,t)||(Ol[t]=e)})),Ol),{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(In)}));const Mn=class extends HTMLElement{constructor(){super(),this.__registerHost(),this.filterContent="",this.debouncedFilterTree=Dn.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}'}},Nn=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))}},Rn=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)}'}},Fn=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}},Bn=(()=>{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 zn;!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"}(zn||(zn={}));const qn=e=>(t,n)=>{t({type:zn.DISMISS_BANNER,payload:{name:e,dismissedAt:Date.now()}})},Hn=class extends HTMLElement{constructor(){super(),this.__registerHost(),this.dismissible=!0,this.visible=!1}onRendered(e){Bn.mapDispatchToProps(this,{dismissBanner:qn}),this.storeUnsubscribe=Bn.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}"}},Wn=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=Bn.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}"}},Un=e=>(t,n)=>t(e),Vn=e=>Un({key:e,type:zn.SET_LANGUAGE}),Gn=e=>Un({key:e,type:zn.SET_K8S_LANGUAGE}),Kn=e=>Un({key:e,type:zn.SET_OS}),Jn=e=>Un({key:e,type:zn.SET_CLOUD}),Yn=e=>Un({key:e,type:zn.SET_PERSONA}),Xn=e=>Un({key:e,type:zn.SET_BACKEND}),Qn=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(),Bn.mapDispatchToProps(this,{setLanguage:Vn,setK8sLanguage:Gn,setOS:Kn,setCloud:Jn,setPersona:Yn,setBackEnd:Xn}),this.storeUnsubscribe=Bn.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}"}},Zn=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,cta:e.cta})));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 er(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 tr(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||fr(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=fr(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),hr(r);var o=document.execCommand("copy");return mr(),document.body.removeChild(t),o}(e["text/plain"])?[2,!0]:[2,!1]}))}))}function gr(e){return er(this,void 0,void 0,(function(){return tr(this,(function(t){if(lr)return[2,lr(e)];if(!vr(function(e){var t={};return t["text/plain"]=e,t}(e)))throw new Error("writeText() failed");return[2]}))}))}const yr=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(){gr(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}"}},br=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}"}},wr=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 t<=0&&(t=0,e=0),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}"}},Sr=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}"}},_r=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(),this.expandedMenuIDs=""}onClick(e){const t=e.target,n=t.nodeName.toLowerCase();"button"!==n&&"i"!==n||(t.closest("li").classList.toggle("expanded"),e.stopPropagation(),e.preventDefault())}componentDidRender(){const e=this.el.querySelector("a.active");if(e){let t=e.closest("pulumi-docs-nav li.expandable");for(;t;)t.classList.add("expanded"),t=t.parentElement.closest("pulumi-docs-nav li.expandable")}this.expandedMenuIDs.split(",").forEach((e=>{""!==e&&this.el.querySelectorAll(`[data-menu-id='${e}']`).forEach((e=>{e.classList.add("expanded")}))}))}render(){return Xe("slot",null)}get el(){return this}static get style(){return"pulumi-docs-nav{display:block}"}},Or=class extends HTMLElement{constructor(){super(),this.__registerHost()}render(){return Xe("div",null,Xe("slot",null))}static get style(){return""}},xr=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=xt(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=xt(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&&""!==e){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(){gr(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)})))),this.selectedItem.cta?Xe("div",{class:"mt-8"},Xe("a",{class:"btn-secondary",href:this.selectedItem.cta.url},this.selectedItem.cta.label)):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,"IaC 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=xt(this,"packageSearch",7),this.filterContent="",this.debouncedFilter=Dn.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 zn.SET_LANGUAGE:return Object.assign(Object.assign({},e),{language:t.key});case zn.SET_K8S_LANGUAGE:return Object.assign(Object.assign({},e),{k8sLanguage:t.key});case zn.SET_OS:return Object.assign(Object.assign({},e),{os:t.key});case zn.SET_CLOUD:return Object.assign(Object.assign({},e),{cloud:t.key});case zn.SET_PERSONA:return Object.assign(Object.assign({},e),{persona:t.key});case zn.SET_BACKEND:return Object.assign(Object.assign({},e),{backend:t.key});default:return e}},banners:(e={dismissed:[]},t)=>{if(t.type===zn.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===zn.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:zn.GET_USER_INFO})}),3e3),n};const ro=class extends HTMLElement{constructor(){super(),this.__registerHost(),this.rendered=xt(this,"rendered",7)}componentWillLoad(){Bn.setStore(no()),Bn.mapDispatchToProps(this,{setLanguage:Vn})}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={}),$o||($o=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)),$o}function Ao(){return Oo||(Oo=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)}}()),Oo}Object.keys(xo).forEach((function(e){Object.defineProperty(So.fn,e,{value:xo[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&&($=Math.floor(d/r.slidesPerColumn)===d/e.params.slidesPerColumn?d:Math.ceil(d/r.slidesPerColumn)*r.slidesPerColumn,"auto"!==r.slidesPerView&&"row"===r.slidesPerColumnFill&&($=Math.max($,r.slidesPerView*r.slidesPerColumn)));for(var x,C,E,k=r.slidesPerColumn,T=$/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*$/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)O=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)O=q+U+V;else{var K=I[0],J=K.clientWidth;O=q+H+W+U+V+(K.offsetWidth-J)}}B&&(I[0].style.transform=B),z&&(I[0].style.webkitTransform=z),r.roundLengths&&(O=Math.floor(O))}else O=(i-(r.slidesPerView-1)*b)/r.slidesPerView,r.roundLengths&&(O=Math.floor(O)),c[j]&&(c[j].style[t("width")]=O+"px");c[j]&&(c[j].swiperSlideSize=O),h.push(O),r.centeredSlides?(w=w+O/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+O+b),e.virtualSize+=O+b,S=O,_+=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=(O+r.spaceBetween)*$,e.virtualSize=Math.ceil(e.virtualSize/r.slidesPerColumn)-r.spaceBetween,o.css(((E={})[t("width")]=e.virtualSize+r.spaceBetween+"px",E)),r.centeredSlides){x=[];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<$-($-_)/2?a=w:S>=_&&S<$&&(a=w+1):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,$=20*Math.abs(t.velocity)*r.freeModeMomentumBounceRatio;if(bt.minTranslate())r.freeModeMomentumBounce?(b-t.minTranslate()>$&&(b=t.minTranslate()+$),w=t.minTranslate(),_=!0,n.allowMomentumBounce=!0):b=t.minTranslate(),r.loop&&r.centeredSlides&&(S=!0);else if(r.freeModeSticky){for(var O,x=0;x-b){O=x;break}b=-(b=Math.abs(l[O]-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=Bn.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]}]),$i=Kt(Tn,[0,"header-cta",{buttonClass:[1,"button-class"],loading:[32],isLoggedIn:[32]}]),Oi=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]}]),xi=Kt(jn,[0,"pricing-cta",{buttonClass:[1,"button-class"],loading:[32],isLoggedIn:[32]}]),Ci=Kt(Mn,[0,"pulumi-api-doc-filterable-nav",{baseDirectory:[1,"base-directory"],packageName:[1,"package-name"],isLoading:[32],parsedNodes:[32],currentlyRenderedNodes:[32],filterContent:[32]}]),Ei=Kt(Nn,[4,"pulumi-api-doc-nav-node",{node:[16],href:[1],depth:[2],isExpanded:[1028,"is-expanded"]}]),ki=Kt(Rn,[0,"pulumi-api-doc-nav-tree",{nodes:[16],baseDirectory:[1,"base-directory"]}]),Ti=Kt(Fn,[0,"pulumi-audio",{url:[1],playingText:[1,"playing-text"],pausedText:[1,"paused-text"],paused:[32],isLoading:[32],error:[32]}]),Pi=Kt(Hn,[4,"pulumi-banner",{name:[1],dismissible:[4],visible:[1540]},[[4,"rendered","onRendered"]]]),ji=Kt(Wn,[4,"pulumi-choosable",{type:[1025],value:[1025],values:[1025],mode:[1025],selection:[1025]},[[4,"rendered","onRendered"]]]),Ii=Kt(Qn,[4,"pulumi-chooser",{type:[1025],options:[1025],selection:[1025],optionStyle:[1025,"option-style"],mode:[1025],currentOptions:[32]},[[4,"rendered","onRendered"]]]),Li=Kt(Zn,[0,"pulumi-contact-us-form",{items:[1],selectClass:[1,"select-class"],labelClass:[1,"label-class"],parsedItems:[32],defaultFormId:[32]}]),Ai=Kt(yr,[0,"pulumi-convert",{from:[1],endpoint:[1],examples:[1],theme:[1],sourceFiles:[32],converting:[32],convertible:[32],alertDismissed:[32]}]),Di=Kt(br,[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]}]),Mi=Kt(wr,[0,"pulumi-date-countdown-circles",{dateString:[1,"date-string"],containerClass:[1,"container-class"],valueLabelClass:[1,"value-label-class"],countdownData:[32]}]),Ni=Kt(Sr,[1,"pulumi-datetime",{class:[1],timeonly:[4],date:[1025]}]),Ri=Kt(_r,[0,"pulumi-developer-quotes",{quotes:[1]}]),Fi=Kt($r,[4,"pulumi-docs-nav",{expandedMenuIDs:[1025,"expanded-menu-ids"]},[[0,"click","onClick"]]]),Bi=Kt(Or,[4,"pulumi-example"]),zi=Kt(xr,[4,"pulumi-examples"]),qi=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 $s(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 Os(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),zs(r);var o=document.execCommand("copy");return qs(),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 $s(this,void 0,void 0,(function(){return Os(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){$s(this,void 0,void 0,(function(){return Os(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(744),n(734),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 za(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 qa(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;qa(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;qa(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:xa,onResolve:xa};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 $l(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 Ol(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:xa,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 $u(e){return $u="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},$u(e)}function Ou(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 xu(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||$c,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||Oc.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?qc:zc,i):e.removeEventListener(t,i?qc:zc,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 zc(e){return this.l[e.type+!1](vc.event?vc.event(e):e)}function qc(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=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 O){if(v=t.props,g=(u=O.contextType)&&r[u.__c],y=u?g?g.props.value:u.__:r,n.__c?m=(c=t.__c=n.__c).__=c.__E:("prototype"in O&&O.prototype.render?t.__c=c=new O(v,y):(t.__c=c=new Pc(v,y),c.constructor=O,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!=O.getDerivedStateFromProps&&(c.__s==c.state&&(c.__s=xc({},c.__s)),xc(c.__s,O.getDerivedStateFromProps(v,c.__s))),p=c.props,f=c.state,c.__v=t,d)null==O.getDerivedStateFromProps&&null!=c.componentWillMount&&c.componentWillMount(),null!=c.componentDidMount&&c.__h.push(c.componentDidMount);else{if(null==O.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 xd={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 qu.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:$,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 $(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&&$(!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&&$(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,$p,Op;function xp(e){if(wp=e.getAttribute("data-app-id"),Sp=e.getAttribute("data-search-key"),_p=e.getAttribute("data-index"),Op=e.getAttribute("data-facets").split(",").map((e=>({label:e,facet:"section"}))),!(wp&&Sp&&_p&&Op))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:$p,queries:[{indexName:_p,facet:"section",params:{query:e,filters:dp(pp(Op,(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}}}$p=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,Op)),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:$p,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===Op.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 $(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:x(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 O(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 x(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 $(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 $(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:O("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")}))}))},744:()=>{$((function(){$("#iac-pricing-select").on("click",(function(){$(".esc-price").addClass("hidden"),$(".iac-price").removeClass("hidden"),$("#esc-pricing-select").removeClass("border-blue-600 bg-violet-100"),$("#esc-pricing-select").addClass("border-gray-300"),$("#esc-pricing-select-text").removeClass("rainbow-text"),$("#iac-pricing-select").addClass("border-blue-600 bg-violet-100"),$("#iac-pricing-select-text").addClass("rainbow-text")})),$("#esc-pricing-select").on("click",(function(){$(".iac-price").addClass("hidden"),$(".esc-price").removeClass("hidden"),$("#iac-pricing-select").removeClass("border-blue-600 bg-violet-100"),$("#iac-pricing-select").addClass("border-gray-300"),$("#iac-pricing-select-text").removeClass("rainbow-text"),$("#esc-pricing-select").addClass("border-blue-600 bg-violet-100"),$("#esc-pricing-select-text").addClass("rainbow-text")}))}))},734:()=>{$((function(){const e=["iac-select","esc-select","insights-select"],t=["crossguard-select","deployments-select","copilot-select","management-select"];e.forEach((t=>{$(`#${t}`).on("click",(function(){e.forEach((e=>{e!==t&&($(`#${e}-content`).addClass("hidden"),$(`#${e}`).removeClass("border-blue-600"),$(`#${e}-text`).removeClass("rainbow-text"))})),$(`#${t}`).addClass("border-blue-600"),$(`#${t}-text`).addClass("rainbow-text"),$(`#${t}-content`).removeClass("hidden")}))})),t.forEach((e=>{$(`#${e}`).on("click",(function(){t.forEach((t=>{t!==e&&($(`#${t}-content`).addClass("hidden"),$(`#${t}`).removeClass("border-blue-600"),$(`#${t}-text`).removeClass("rainbow-text"))})),$(`#${e}`).addClass("border-blue-600"),$(`#${e}-text`).addClass("rainbow-text"),$(`#${e}-content`).removeClass("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/iac/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=$(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}`}))},$=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}},O=(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?x(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=>O(e,l,C))(e=(e=>O(e,a,x))(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,$e=!1,Oe=!1,xe=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&&($e=!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?$t(a):Te.createTextNode("");else{if(j&&!Oe&&(Oe="svg"===a.$tag$),o=a.$elm$=j?Te.createElementNS(Oe?"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&&Oe&&"foreignObject"===a.$tag$&&(Oe=!1),L&<(null,a,Oe),(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,$e=!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&&(Oe="svg"===i||"foreignObject"!==i&&Oe),(L||O)&&(E&&"slot"===i||lt(e,t,Oe)),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&&Oe&&"svg"===i&&(Oe=!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,$e){let e,t,n,r,o,s;bt(i.$elm$);let a=0;for(;aTe.createComment(` (host=${ye.toLowerCase()})`),Ot=e=>Te.createComment("org-location for "+(e.localName?`<${e.localName}> (host=${e["s-hn"]})`:`[${e.textContent}]`)),xt=(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(xe=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 xe=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 $n(e){return"string"==typeof e&&_n.test(e)}for(var On=[],xn=0;xn<256;++xn)On.push((xn+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=(On[e[t+0]]+On[e[t+1]]+On[e[t+2]]+On[e[t+3]]+"-"+On[e[t+4]]+On[e[t+5]]+"-"+On[e[t+6]]+On[e[t+7]]+"-"+On[e[t+8]]+On[e[t+9]]+"-"+On[e[t+10]]+On[e[t+11]]+On[e[t+12]]+On[e[t+13]]+On[e[t+14]]+On[e[t+15]]).toLowerCase();if(!$n(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-signup",href:"https://app.pulumi.com/signup?utm_source=header-button",target:"_blank",rel:"noopener noreferrer",title:"Dashboard"},"Dashboard"):Xe("a",{class:this.buttonClass,"data-track":"header-signup",href:"https://app.pulumi.com/signup?utm_source=header-button",title:"Sign up"},"Sign up")}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}}"}},jn=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,href:"https://app.pulumi.com/?create-organization=1",target:"_blank"},"Create an Organization"):Xe("a",{class:this.buttonClass,href:"https://app.pulumi.com/signup/",target:"_blank"},"Sign Up")}};var In="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:{};function Ln(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 An(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 Dn=Ln((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]",$="[object Map]",O="[object Number]",x="[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",$e="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Oe="\\u2700-\\u27bf",xe="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="["+$e+"]",Le="\\d+",Ae="["+Oe+"]",De="["+xe+"]",Me="[^"+_e+ke+Le+Oe+xe+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+$e+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[$]=st[O]=st[x]=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[$]=at[O]=at[x]=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 In&&In&&In.Object===Object&&In,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,$t=yt&&yt.isSet,Ot=yt&&yt.isTypedArray;function xt(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,$e=t.Date,Oe=t.Error,xe=t.Function,Ce=t.Math,Ee=t.Object,ke=t.RegExp,Te=t.String,Pe=t.TypeError,je=_e.prototype,Ie=xe.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=$e&&$e.now!==ft.Date.now&&$e.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=$e.now,$n=t.parseInt,On=Ce.random,xn=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==x||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 $:return new r;case O: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($r,!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 $r(e,t){return e&&Sr(e,t,Aa)}function Or(e,t){return Pt(t,(function(t){return ea(e[t])}))}function xr(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(On()*(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 xo=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 $s=Ao((function(e,t,n){Me.call(e,n)?e[n].push(t):ar(e,n,[t])}));var Os=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?xt(t,e,n):Ir(e,t,n)})),i})),xs=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 xo(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&&xo(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=$o((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)==$};function sa(e){return"number"==typeof e||oa(e)&&Er(e)==O}function aa(e){if(!oa(e)||Er(e)!=x)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=$t?Xt($t):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=Ot?Xt(Ot):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==$?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])})),$a=Do((function(e,t){Lo(t,Da(t),e)})),Oa=Do((function(e,t,n,r){Lo(t,Da(t),e,r)})),xa=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 xt(e,n,t)}catch(e){return Zs(e)?e:new Oe(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=Or(t,r);null!=n||ra(t)&&(o.length||!r.length)||(n=t,t=e,e=this,o=Or(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 $i(e)?Ut(Bi(e)):function(e){return function(t){return xr(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),$l=Xo("floor");var Ol,xl=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=$a,qn.assignInWith=Oa,qn.assignWith=xa,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)?Oo(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=Oo(n,0,t);return r&&At(o,r),xt(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=$a,qn.extendWith=Oa,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),$r)},qn.floor=$l,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&&$r(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=xl,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=On();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?Oo(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,(Ol={},_r(qn,(function(e,t){Me.call(qn.prototype,t)||(Ol[t]=e)})),Ol),{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(In)}));const Mn=class extends HTMLElement{constructor(){super(),this.__registerHost(),this.filterContent="",this.debouncedFilterTree=Dn.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}'}},Nn=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))}},Rn=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)}'}},Fn=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}},Bn=(()=>{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 zn;!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"}(zn||(zn={}));const qn=e=>(t,n)=>{t({type:zn.DISMISS_BANNER,payload:{name:e,dismissedAt:Date.now()}})},Hn=class extends HTMLElement{constructor(){super(),this.__registerHost(),this.dismissible=!0,this.visible=!1}onRendered(e){Bn.mapDispatchToProps(this,{dismissBanner:qn}),this.storeUnsubscribe=Bn.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}"}},Wn=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=Bn.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}"}},Un=e=>(t,n)=>t(e),Vn=e=>Un({key:e,type:zn.SET_LANGUAGE}),Gn=e=>Un({key:e,type:zn.SET_K8S_LANGUAGE}),Kn=e=>Un({key:e,type:zn.SET_OS}),Jn=e=>Un({key:e,type:zn.SET_CLOUD}),Yn=e=>Un({key:e,type:zn.SET_PERSONA}),Xn=e=>Un({key:e,type:zn.SET_BACKEND}),Qn=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(),Bn.mapDispatchToProps(this,{setLanguage:Vn,setK8sLanguage:Gn,setOS:Kn,setCloud:Jn,setPersona:Yn,setBackEnd:Xn}),this.storeUnsubscribe=Bn.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}"}},Zn=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,cta:e.cta})));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 er(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 tr(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||fr(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=fr(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),hr(r);var o=document.execCommand("copy");return mr(),document.body.removeChild(t),o}(e["text/plain"])?[2,!0]:[2,!1]}))}))}function gr(e){return er(this,void 0,void 0,(function(){return tr(this,(function(t){if(lr)return[2,lr(e)];if(!vr(function(e){var t={};return t["text/plain"]=e,t}(e)))throw new Error("writeText() failed");return[2]}))}))}const yr=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(){gr(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}"}},br=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}"}},wr=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 t<=0&&(t=0,e=0),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}"}},Sr=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}"}},_r=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(),this.expandedMenuIDs=""}onClick(e){const t=e.target,n=t.nodeName.toLowerCase();"button"!==n&&"i"!==n||(t.closest("li").classList.toggle("expanded"),e.stopPropagation(),e.preventDefault())}componentDidRender(){const e=this.el.querySelector("a.active");if(e){let t=e.closest("pulumi-docs-nav li.expandable");for(;t;)t.classList.add("expanded"),t=t.parentElement.closest("pulumi-docs-nav li.expandable")}this.expandedMenuIDs.split(",").forEach((e=>{""!==e&&this.el.querySelectorAll(`[data-menu-id='${e}']`).forEach((e=>{e.classList.add("expanded")}))}))}render(){return Xe("slot",null)}get el(){return this}static get style(){return"pulumi-docs-nav{display:block}"}},Or=class extends HTMLElement{constructor(){super(),this.__registerHost()}render(){return Xe("div",null,Xe("slot",null))}static get style(){return""}},xr=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=xt(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=xt(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&&""!==e){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(){gr(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)})))),this.selectedItem.cta?Xe("div",{class:"mt-8"},Xe("a",{class:"btn-secondary",href:this.selectedItem.cta.url},this.selectedItem.cta.label)):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,"IaC 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=xt(this,"packageSearch",7),this.filterContent="",this.debouncedFilter=Dn.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 zn.SET_LANGUAGE:return Object.assign(Object.assign({},e),{language:t.key});case zn.SET_K8S_LANGUAGE:return Object.assign(Object.assign({},e),{k8sLanguage:t.key});case zn.SET_OS:return Object.assign(Object.assign({},e),{os:t.key});case zn.SET_CLOUD:return Object.assign(Object.assign({},e),{cloud:t.key});case zn.SET_PERSONA:return Object.assign(Object.assign({},e),{persona:t.key});case zn.SET_BACKEND:return Object.assign(Object.assign({},e),{backend:t.key});default:return e}},banners:(e={dismissed:[]},t)=>{if(t.type===zn.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===zn.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:zn.GET_USER_INFO})}),3e3),n};const ro=class extends HTMLElement{constructor(){super(),this.__registerHost(),this.rendered=xt(this,"rendered",7)}componentWillLoad(){Bn.setStore(no()),Bn.mapDispatchToProps(this,{setLanguage:Vn})}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={}),$o||($o=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)),$o}function Ao(){return Oo||(Oo=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)}}()),Oo}Object.keys(xo).forEach((function(e){Object.defineProperty(So.fn,e,{value:xo[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&&($=Math.floor(d/r.slidesPerColumn)===d/e.params.slidesPerColumn?d:Math.ceil(d/r.slidesPerColumn)*r.slidesPerColumn,"auto"!==r.slidesPerView&&"row"===r.slidesPerColumnFill&&($=Math.max($,r.slidesPerView*r.slidesPerColumn)));for(var x,C,E,k=r.slidesPerColumn,T=$/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*$/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)O=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)O=q+U+V;else{var K=I[0],J=K.clientWidth;O=q+H+W+U+V+(K.offsetWidth-J)}}B&&(I[0].style.transform=B),z&&(I[0].style.webkitTransform=z),r.roundLengths&&(O=Math.floor(O))}else O=(i-(r.slidesPerView-1)*b)/r.slidesPerView,r.roundLengths&&(O=Math.floor(O)),c[j]&&(c[j].style[t("width")]=O+"px");c[j]&&(c[j].swiperSlideSize=O),h.push(O),r.centeredSlides?(w=w+O/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+O+b),e.virtualSize+=O+b,S=O,_+=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=(O+r.spaceBetween)*$,e.virtualSize=Math.ceil(e.virtualSize/r.slidesPerColumn)-r.spaceBetween,o.css(((E={})[t("width")]=e.virtualSize+r.spaceBetween+"px",E)),r.centeredSlides){x=[];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<$-($-_)/2?a=w:S>=_&&S<$&&(a=w+1):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,$=20*Math.abs(t.velocity)*r.freeModeMomentumBounceRatio;if(bt.minTranslate())r.freeModeMomentumBounce?(b-t.minTranslate()>$&&(b=t.minTranslate()+$),w=t.minTranslate(),_=!0,n.allowMomentumBounce=!0):b=t.minTranslate(),r.loop&&r.centeredSlides&&(S=!0);else if(r.freeModeSticky){for(var O,x=0;x-b){O=x;break}b=-(b=Math.abs(l[O]-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=Bn.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]}]),$i=Kt(Tn,[0,"header-cta",{buttonClass:[1,"button-class"],loading:[32],isLoggedIn:[32]}]),Oi=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]}]),xi=Kt(jn,[0,"pricing-cta",{buttonClass:[1,"button-class"],loading:[32],isLoggedIn:[32]}]),Ci=Kt(Mn,[0,"pulumi-api-doc-filterable-nav",{baseDirectory:[1,"base-directory"],packageName:[1,"package-name"],isLoading:[32],parsedNodes:[32],currentlyRenderedNodes:[32],filterContent:[32]}]),Ei=Kt(Nn,[4,"pulumi-api-doc-nav-node",{node:[16],href:[1],depth:[2],isExpanded:[1028,"is-expanded"]}]),ki=Kt(Rn,[0,"pulumi-api-doc-nav-tree",{nodes:[16],baseDirectory:[1,"base-directory"]}]),Ti=Kt(Fn,[0,"pulumi-audio",{url:[1],playingText:[1,"playing-text"],pausedText:[1,"paused-text"],paused:[32],isLoading:[32],error:[32]}]),Pi=Kt(Hn,[4,"pulumi-banner",{name:[1],dismissible:[4],visible:[1540]},[[4,"rendered","onRendered"]]]),ji=Kt(Wn,[4,"pulumi-choosable",{type:[1025],value:[1025],values:[1025],mode:[1025],selection:[1025]},[[4,"rendered","onRendered"]]]),Ii=Kt(Qn,[4,"pulumi-chooser",{type:[1025],options:[1025],selection:[1025],optionStyle:[1025,"option-style"],mode:[1025],currentOptions:[32]},[[4,"rendered","onRendered"]]]),Li=Kt(Zn,[0,"pulumi-contact-us-form",{items:[1],selectClass:[1,"select-class"],labelClass:[1,"label-class"],parsedItems:[32],defaultFormId:[32]}]),Ai=Kt(yr,[0,"pulumi-convert",{from:[1],endpoint:[1],examples:[1],theme:[1],sourceFiles:[32],converting:[32],convertible:[32],alertDismissed:[32]}]),Di=Kt(br,[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]}]),Mi=Kt(wr,[0,"pulumi-date-countdown-circles",{dateString:[1,"date-string"],containerClass:[1,"container-class"],valueLabelClass:[1,"value-label-class"],countdownData:[32]}]),Ni=Kt(Sr,[1,"pulumi-datetime",{class:[1],timeonly:[4],date:[1025]}]),Ri=Kt(_r,[0,"pulumi-developer-quotes",{quotes:[1]}]),Fi=Kt($r,[4,"pulumi-docs-nav",{expandedMenuIDs:[1025,"expanded-menu-ids"]},[[0,"click","onClick"]]]),Bi=Kt(Or,[4,"pulumi-example"]),zi=Kt(xr,[4,"pulumi-examples"]),qi=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 $s(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 Os(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),zs(r);var o=document.execCommand("copy");return qs(),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 $s(this,void 0,void 0,(function(){return Os(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){$s(this,void 0,void 0,(function(){return Os(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)}));const a=window.analytics,l=a&&a.track&&"function"==typeof a.track;var u=n.attr("data-track");if(l&&u){const e={codeBlockName:u};a.track("copy-code-block",e)}}))}$((function(){Us($(":not(.no-copy) > div.highlight"))}));n(506),n(498),n(490),n(366),n(744),n(734),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 za(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 qa(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;qa(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;qa(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:xa,onResolve:xa};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 $l(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 Ol(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:xa,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 $u(e){return $u="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},$u(e)}function Ou(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 xu(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||$c,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||Oc.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?qc:zc,i):e.removeEventListener(t,i?qc:zc,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 zc(e){return this.l[e.type+!1](vc.event?vc.event(e):e)}function qc(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=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 O){if(v=t.props,g=(u=O.contextType)&&r[u.__c],y=u?g?g.props.value:u.__:r,n.__c?m=(c=t.__c=n.__c).__=c.__E:("prototype"in O&&O.prototype.render?t.__c=c=new O(v,y):(t.__c=c=new Pc(v,y),c.constructor=O,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!=O.getDerivedStateFromProps&&(c.__s==c.state&&(c.__s=xc({},c.__s)),xc(c.__s,O.getDerivedStateFromProps(v,c.__s))),p=c.props,f=c.state,c.__v=t,d)null==O.getDerivedStateFromProps&&null!=c.componentWillMount&&c.componentWillMount(),null!=c.componentDidMount&&c.__h.push(c.componentDidMount);else{if(null==O.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 xd={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 qu.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:$,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 $(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&&$(!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&&$(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,$p,Op;function xp(e){if(wp=e.getAttribute("data-app-id"),Sp=e.getAttribute("data-search-key"),_p=e.getAttribute("data-index"),Op=e.getAttribute("data-facets").split(",").map((e=>({label:e,facet:"section"}))),!(wp&&Sp&&_p&&Op))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:$p,queries:[{indexName:_p,facet:"section",params:{query:e,filters:dp(pp(Op,(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}}}$p=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,Op)),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:$p,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===Op.length?e`