var store=function(a){function x(){if("undefined"!=typeof newCheckoutFlowParams&&-1newCheckoutFlowParams.indexOf("/t/public/checkout"))&&window.showLoader(),a("#newCheckoutHtml").addClass("active"),a("body").attr("style","overflow-y: hidden !important;"))}}function m(b){return void 0==b||""==b||null==b?!1:/[^A-Za-z0-9\-._~:/?#[\]@!$&'()*+,;=%]/.test(b)?encodeURIComponent(b): b}function A(){"undefined"!==typeof checkoutV2&&"true"===checkoutV2&&a(".is-container").css("z-index","auto");t=a("#cartHtml");0!=t.length&&(a("body").on("click",".buyBtn, a[href^='#purchasebutton']",function(b){b.preventDefault();var c=a(this),g={type:"courses"},d=null;null!=localStorage.getItem("isAIAssistedReferred")&&(g.aiAssist=localStorage.getItem("isAIAssistedReferred"));null!=localStorage.getItem("documentReferrer")&&(g.referrer=localStorage.getItem("documentReferrer"));a(this).hasClass("plan-enroll-btn")&& (window.recurSubscriptionSelected="RECURRING"===a(this).data("plantype"));var f=m(getLocalSetting("utmSource"));null!==f&&""!==f&&(g.utmSource=f);f=m((new URLSearchParams(window.location.search)).get("utm_source"));null!==f&&""!==f&&(g.utmSource=f);var e=m(getLocalSetting("utmMedium"));null!==e&&""!==e&&(g.utmMedium=e);e=m((new URLSearchParams(window.location.search)).get("utm_medium"));null!==e&&""!==e&&(g.utmMedium=e);var h=m(getLocalSetting("utmCampaign"));null!==h&&""!==h&&(g.utmCampaign=h);h= m((new URLSearchParams(window.location.search)).get("utm_campaign"));null!==h&&""!==h&&(g.utmCampaign=h);var l=m(getLocalSetting("utmTerm"));null!==l&&""!==l&&(g.utmTerm=l);l=m((new URLSearchParams(window.location.search)).get("utm_term"));null!==l&&""!==l&&(g.utmTerm=l);var k=m(getLocalSetting("utmContent"));null!==k&&""!==k&&(g.utmContent=k);k=m((new URLSearchParams(window.location.search)).get("utm_content"));null!==k&&""!==k&&(g.utmContent=k);void 0!==c.data("id")?d=c.data("id"):void 0!==c.attr("href")&& (b=c.attr("href").split("-"),1