1!function(){"use strict";function e(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if("function"==typeof t){var n=function e(){var n=!1;try{n=this instanceof e}catch(e){}return n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var i=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,i.get?i:{enumerable:!0,get:function(){return e[t]}})}),n}var t={exports:{}};const n="aborted",i="timeout",a="stalled",o="network",r=function(){return"undefined"!=typeof performance&&"function"==typeof performance.now?performance.now():Date.now()};let s=!1;const l=function(){s=!0};"undefined"!=typeof window&&window.addEventListener&&(window.addEventListener("pagehide",l,!0),window.addEventListener("beforeunload",l,!0),window.addEventListener("unload",l,!0),window.addEventListener("pageshow",function(e){e&&e.persisted&&(s=!1)},!0));const c=function(e,t,r){switch(e){case"abort":return n;case"timeout":return i;default:return t?"http":r>=2e3?a:o}},d=function(e,t){let n="";if(t){let i=[];for(let e in t)t.hasOwnProperty(e)&&i.push(e+"="+t[e]);n=i.join("&"),n=e.indexOf("?")>-1?"&"+n:"?"+n}return e+n},u=(e,t,n,i,a)=>{if(t)if(e&&e.target&&e.target.responseText){let n,i;try{n=JSON.parse(e.target.responseText)}catch(e){i={code:"parsingError",message:e.message},t(i)}i||t(n)}else{let o=function(e,t,n,i){let a=e&&e.target&&"number"==typeof e.target.status?e.target.status:0,o="number"==typeof i?Math.round(r()-i):void 0;return{url:t,event:n,status:a,category:c(n,a,o),elapsed:o,page_unloading:s,timeout:"timeout"==n?3e4:void 0}}(e,n,i,a),l=e&&e.target?e.target:{};l.error={code:o.status,url:o.url,event:o.event,status:o.status,category:o.category,elapsed:o.elapsed,page_unloading:o.page_unloading,transport:o},t(l)}};function p(e,t,n,i){return new Promise((a,o)=>{n=n||"POST",t?"object"==typeof t&&(t.ErrorDetails=!0):t={ErrorDetails:!0};let s,l=new XMLHttpRequest;switch(n){case"PUT":case"PATCH":case"POST":s=function(e){return JSON.stringify(e)}(t);break;case"GET":e=d(e,t)}switch(l.open(n,e,!0),l.withCredentials=!0,l.setRequestHeader("Accept","application/json"),l.setRequestHeader("bb-jsl-version","9.5.0.83"),n){case"PUT":case"PATCH":case"POST":l.setRequestHeader("Content-Type","application/json;charset=UTF-8")}t.app_secret&&l.setRequestHeader("x-app-secret",t.app_secret);const c=function(e){"function"==typeof i&&i(e),a(e)};l.timeout=3e4;let p=r();l.onload=function(t){u(t,c,e,"load",p)},l.onerror=function(t){u(t,c,e,"error",p)},l.onabort=function(t){u(t,c,e,"abort",p)},l.ontimeout=function(t){u(t,c,e,"timeout",p)},l.send(s)})}function m(e,t,n,i,a){return e=d(e,t),n&&("function"==typeof i?i(e,a):i?window.open(e):(l(),document.location.assign(e))),e}var f={HEADER_1:"Sign in for your best experience",HEADER_2:"Sign in for your best experience",HEADER_BACK_1:"Sign in for your best experience",HEADER_BACK_2:"Welcome back to %APP_NAME%",TEXT_1:"Sign in to continue",TEXT_2:"'Continue with' your trusted login method.<br/>We'll get you going in no time.",TEXT_3:"You will be redirected to authenticate with your chosen account. We donât see your password, only confirmation that you authenticated successfully and securely. ",TEXT_3_2:"You will be redirected to authenticate with your chosen account. We donât see your password, only confirmation that you authenticated successfully and securely. You may be asked to share your profile information, which will be stored securely. You can change your authentication method at any time.",MORE:"more>>"},_={TITLE:"Sign up / Sign in"},g={TITLE:"Welcome",CONTENT:"How would you like to sign up?",CONTENT_2:"Sign up with your email",SSO:"Or create an account with your email address and a password",LOCAL:"Create an account with your email address and a password",OR_LOCAL:"Or fill in the form below",OR_EMAIL:"Or enter your name below",FILL_FORM:"Fill in the form to Sign up"},L={TITLE:"Email confirmation",CONTENT:"A confirmation message has been sent to your email address. Please enter the PIN from that email below"},b={DE_IDENTIFY_ME:"De-identify me",DE_IDENTIFY_PIN:"De-identify PIN",CONTENT:"We believe in y
1our right to control the data gathered on our website. Therefore, to de-identify the record of your interactions with our website, please enter your email address below. Next, we will send you a PIN to verify your account. Once you have entered that PIN, our system will start the process of anonymizing your interactions.",CONTENT_VERIFIED:"We believe in your right to control the data gathered on our website. Therefore, to de-identify the record of your interactions with our website, please authenticate below. Once you have authenticated, our system will start the process of anonymizing your interactions.",CONTENT_PIN:"A confirmation message has been sent to your email address. Please enter the PIN from that email below",CONFIRM_PIN:"Once your PIN is confirmed we will start the de-identification process. ",GET_NEW_PIN:"Didn't received your confirmation PIN? Please check your spam folder or %BUTTON% for a new code",NEW_PIN_BUTTON:"click here"},h={TITLE:"Forgot password",CONTENT:"Enter the email you registered with us & we'll send you instructions on how to reset your password",CONTENT_2:"A password reset message was sent to your email address. Please click on the link in the email to reset your password. If you do not receive a password reset message, please check your spam folder."},v={TITLE:"Change Password",CONTENT:"It looks like your password needs to be reset. Enter the email you registered with us & we'll send you instructions on how to reset your password"},E={CONTENT_1:"Didn't receive your confirmation PIN?",CONTENT_2:"Please check your spam folder",CONTENT_OR:"or ",CONTENT_3:" for a new code",BUTTON:"click here",CONTENT:"Didn't receive your confirmation PIN?<br/>Please check your spam folder<br/> or %BUTTON% for a new code"},w={TITLE:"Hello",CONTENT:"Reset your password below"},T={TITLE:"Hello",CONTENT:"Please enter your email address",CONTENT_2:"Please enter your password"},y="Hello %NAME%",C={EMAIL_ADDRESS:"Email address",ENTER_EMAIL_ADDRESS:"Enter your email address",PASSWD:"Password",PASSWORD:"Create password",CONFIRM_PASSWORD:"Confirm password",NEW_PASSWORD:"Create password",NEW_CONFIRM_PASSWORD:"Confirm password",FIRST_NAME:"First name",LAST_NAME:"Last name",PIN:"PIN"},I={CONTINUE_AS:"Continue as %NAME%",CONTINUE:"Continue %WITH% %BRAND%",SIGN_IN:"Sign in %WITH% %BRAND%",DEIDENTIFY_WITH:"De-identify %WITH% %BRAND%",DEIDENTIFY:"De-identify %NAME%",WITH:"with",W_:"w/",WITH_EMAIL:"Sign in with Email Address",CONTINUE_EMAIL:"Continue with Email Address",MORE:"Continue another way",BRAND:{GOOGLE:"Google",FACEBOOK:"Facebook",MICROSOFT:"Microsoft",LINKEDIN:"LinkedIn",TWITTER:"X",QUICKBOOKS:"QuickBooks",GITHUB:"GitHub",SLACK:"Slack",BASECAMP:"Basecamp",DROPBOX:"Dropbox",SHOPIFY:"Shopify",EVERNOTE:"Evernote",PLANNINGCENTER:"planning center",FITBIT:"fitbit",APPLE:"Apple",TWITCH:"twitch",SALESFORCE:"Salesforce",OKTA:"Okta",ONELOGIN:"OneLogin",MAGIC_LINK:"Magic Link"}},N={SIGN_IN_METHOD:"Other sign in methods",CONTINUE_WITH:"Continue with",OR_CONTINUE:"Or continue with",USE_DIFFERENT_IDP:"Use a different Identity Provider",SELECT_IDP_SIGN_UP:"Select an Identity Provider to sign up with",MORE:"More options",LESS:"Less options",BACK:"Back",EMAIL_INSTRUCTION:"Email me instructions",RESEND_EMAIL_INSTRUCTION:"Resend Forgot Password Email",CANCEL:"Cancel",CONTINUE:"Continue",SET_PASSWORD:"Reset Password",FORGOT_PASSWORD:"Forgot password?",NEW_USER:"New user?",SWITCH_LOGIN:"Not you? Sign in with a different email address",SWITCH_REGISTER:"Not you? Sign up with a different email address.",SWITCH_TRY:"Not you? Try with a different email address.",NEXT:"Next",REGISTER:"Sign up",SIGN_IN:"Sign in",CONFIRM:"Confirm email",CONFIRM_PIN:"Confirm PIN",OR_CONTINUE_WITH_EMAIL_OPTIN:"or",OR_CONTINUE_WITH_EMAIL:"or continue with your email address",OR:"or",OR_SIGN_UP_WITH_EMAIL_AND_PASSWORD:"Or sign up with your email address and password",OR_SIGN_UP_WITH_EMAIL:"Or sign up with your email address",CONTINUE_WITH_EMAIL:"or enter your email address below",MORE_INFO:"more information",START_WITH_EMAIL_ADDRESS:"Start with your email address below",DE_IDENTIFY_ME:"De-Identify me",SWITCH_DE_IDENTIFY:"De-identify a different email address?",RETURN_TO_LOGIN:"Return to Login",SUBMIT:"Submit",SIGN_OUT:"Sign out"},S={EMAIL_MATCH:"Please ensure that the email address you use when signing in is one that has been invited to register.",NEW_USER:"To access this website you must first be invited to join.<br/><br/>If you have received an invitation to join please click the link in that email to complete your registration.<br/><br/>If you have lost that email message please contact the person that originally invited you.",MORE_INFO:"We respect your privacy. You will be directed to authenticate with the provider you trust."},O={HAS_VALIDATION:"Your Password must:",MINIMUM_ONE:"contain at least one character",MINIMUM_MORE:"contain at least %COUNT% characters",LOWER_ONE:"contain at least one lower case (a-z)",LOWER_MORE:"contain at least %COUNT% lower case (a-z)",UPPER_ONE:"contain at least one upper case (A-Z)",UPPER_MORE:"contain at least %COUNT% upper case (A-Z)",SYMBOL_ONE:"contain at least one symbol",SYMBOL_MORE:"contain at least %COUNT% symbols",NUMBER_ONE:"contain at least one number (0-9)",NUMBER_MORE:"contain at least %COUNT% numbers (0-9)",NO_EMAIL:"does not contain your name or email address",MATCH:"be entered the same way in both fields",NO_OLD_PASSWORD:"Your new password must be different than your previous password",INVALID_PIN:"Invalid or expired token"}
1,A={INVALID_EMAIL:{MESSAGE:"Email address is not valid"},INLINE:{TITLE_:"Sorry %NAME%",TITLE:"Sorry",CONFIRM:"ok"},EMPTY_TOKEN:{MESSAGE:"You need to enter a PIN"},EMPTY_FIRST_NAME:{MESSAGE:"Please make sure you have a first name"},EMPTY_LAST_NAME:{MESSAGE:"Please make sure you have a last name"},VALID_EMAIL:{TITLE:"Email format",MESSAGE:"Please make sure you're using a valid email address",CONFIRM:"ok"},EMPTY_NAME:{TITLE:"Name is required",MESSAGE:"Please enter first and last name",CONFIRM:"ok"},EMPTY_MESSAGE:{MESSAGE:"Message is required"},PASSWORD_EMPTY:{TITLE:"Password too short",MESSAGE:"Please enter a password",CONFIRM:"ok"},PASSWORD_LENGTH:{TITLE:"Password too short",MESSAGE:"Please enter a password longer than %COUNT% characters",CONFIRM:"ok"},PASSWORD_NOT_MATCH:{TITLE:"Password not match",MESSAGE:"Your passwords don't match",CONFIRM:"ok"},ACCOUNT_NOT_FOUND:{TITLE:"Account not found",MESSAGE:"We were unable to find your account. If you have been invited, please click on the link in the email you received to complete registration",CONFIRM:"I'll look for my invite"},NON_LOCAL_LOGIN:{TITLE:"",MESSAGE:"You have previously signed in using %PROVIDER%. Please confirm that you want to set an account password instead.",CONFIRM:"Set Password",CONFIRM_2:"Cancel"},NO_PROVIDERS:{TITLE:"Something is wrong",MESSAGE:"No results from the providers.",CONFIRM:"Try again"},API_ERROR:{TITLE:"Something is wrong",CONFIRM:"Try again"},NO_PROVIDER:{TITLE:"No Providers Enabled",MESSAGE:"This website has not enabled any Identity Providers or local authentication. Please contact the website administrator for more information.",CONFIRM:"ok"},NULL_EMAIL_ERROR:{TITLE:"Valid Email Address Required",MESSAGE:"It looks like your privacy settings kept your email address hidden. Since a valid email is required to access the platform, please choose a different social login or continue with a valid email address.",CONFIRM:"Return to Login"},MAGIC_LINK_REGISTRATION_DISABLED:{MESSAGE:"New users cannot register with sign in link."}},k={invalid_pin:"Please check to see if you have the right PIN",invalid_email_or_password:"Please make sure you're using your latest password"},R={CONTENT:"By browsing our website, you agree to our use of cookies.",BUTTON_1:"OK",BUTTON_2:"Read our policy"},M={CONTENT_ALL:"By submitting my information, I agree to the <a href='%TOC_LINK%' target='_blank'>Terms of Service</a> and <a href='%PRIVACY_LINK%' target='_blank'>Privacy Policy</a>",CONTENT_TOC:"By submitting my information, I agree to the <a href='%TOC_LINK%' target='_blank'>Terms of Service</a>",CONTENT_PRIVACY:"By submitting my information, I agree to the <a href='%PRIVACY_LINK%' target='_blank'>Privacy Policy</a>",NAMELESS_CONTENT_ALL:"By submitting my information, I agree to the <a href='%TOC_LINK%' target='_blank'>Terms of Service</a> and <a href='%PRIVACY_LINK%' target='_blank'>Privacy Policy</a>",NAMELESS_CONTENT_TOC:"By submitting my information, I agree to the <a href='%TOC_LINK%' target='_blank'>Terms of Service</a>",NAMELESS_CONTENT_PRIVACY:"By submitting my information, I agree to the <a href='%PRIVACY_LINK%' target='_blank'>Privacy Policy</a>"},P={LOGOUT:"Logout",LOGIN:"Login",SIGNUP_IN:"Sign up / in",HELLO:"Hello, %FIRST_NAME%",SIGN_IN_TITLE:"You are currently signed in as",SIGN_OUT:"SIGN OUT",NEWSLETTER_TITLE:"Welcome",NEWSLETTER_SUBTITLE:"Keep up with the latest information and news",NEWSLETTER_THANK_HEADER:"Perfect %NAME%, you're in!",NEWSLETTER_THANK:"",NEWSLETTER_SUBSCRIBE:"Opt in",CONTINUE_SUCCESS_HEADER:"Perfect, you're in!",CONTINUE_SUCCESS_TEXT:"",GATING_SUCCESS_HEADER:"Perfect, you're in!",GATING_SUCCESS_TEXT:"",COOKIE_CONSENT:{HEADER:"We use cookies to improve your experience",TEXT:"We use cookies to deliver the best possible experience on our website. By continuing to use this site, or closing this box, you consent to our use of cookies.",PRIVACY_POLICY:"To learn more, visit our <a href='%PRIVACY_LINK%' target='_blank'>Privacy Policy</a>.",TERMS_CONDITIONS:"To learn more, visit our <a href='%TOC_LINK%' target='_blank'>Terms & Conditions</a>.",PRIVACY_AND_TERMS:"To learn more, visit our <a href='%PRIVACY_LINK%' target='_blank'>Privacy Policy</a> and our <a href='%TOC_LINK%' target='_blank'>Terms & Conditions</a>.",BUTTON:"Accept"}},x={SEND_BUTTON_TEXT:"Send sign in link",LEAVE_MAGIC_LINK:"Sign in with a trusted provider or email & password",LEAVE_MAGIC_LINK_OPT_IN:"Sign in with a trusted provider or using your email",CHECK_YOUR_EMAIL:"Check your email",CHECK_YOUR_EMAIL_2:"%FIRST_NAME%, check your email",CONFIRMING:"Confirming Authentication",LOGGING_IN:"Logging you in",CONFIRM_MESSAGE:"We've sent a link to confirm your account to the email address above. Click the link to finish signing in.",FOCUS_MASK_TEXT:"Start with your email address above"},U={TITLE_W_NAME:"Welcome to %NAME%",TITLE:"Read more?",SUBTITLE:"Unlock & enjoy<br/>all our content"},D={HEADER:"Thanks for Signing Up",SUB_HEADER:"We just have a few questions we'd like to ask you",SUBMIT:"Submit",MANDATORY:"This field is mandatory."},B={ICON_NOTE:"Connect with a real person",HEADER:"Connect with a real person",COLLAPSE:"Get in touch with us.",SUB_HEADER:"%FIRST_NAME%, how can we help?",SUB_HEADER_2:"How can we help?",BUTTON:"Send your message",SUCCESS:"Thanks for reaching out, %FIRST_NAME%. We will get back to you as soon as possible",TEXT_1:"Letâs get started with your contact information",TEXT_2:"We only receive what is needed to get in touch with you",MESSAGE_INPUT:"Let us know how
1we can help",PHONE_NUMBER:"Phone Number (optional)",COMPANY_NAME:"Company Name (optional)"},G={POPUP:f,INCOGNITO:_,REGISTER:g,CONFIRM_EMAIL:L,DE_IDENTIFICATION:b,FORGOT_PASSWORD:h,EXPIRE_PASSWORD:v,NEW_CODE:E,RESET_PASSWORD:w,LOGIN:T,GREETING:y,PLACEHOLDER:C,TILE:I,BUTTON:N,HOVER:S,PASSWORD_HINT:O,ERROR:A,RES_MAPPING:k,PRIVACY_POLICY:R,TOC_PRIVACY:M,UI:P,MAGIC_LINK:x,CONTENT_GATING:U,CUSTOM_DATA:D,CONTACT_US:B};const H="https://cdn.breadbutter.io/dist/breadbutter.latest.min.js",W=["en","fr","zh-CN","zh-TW","es","pt","bg","ja","de","nl"],F={en:Object.freeze({__proto__:null,BUTTON:N,CONFIRM_EMAIL:L,CONTACT_US:B,CONTENT_GATING:U,CUSTOM_DATA:D,DE_IDENTIFICATION:b,ERROR:A,EXPIRE_PASSWORD:v,FORGOT_PASSWORD:h,GREETING:y,HOVER:S,INCOGNITO:_,LOGIN:T,MAGIC_LINK:x,NEW_CODE:E,PASSWORD_HINT:O,PLACEHOLDER:C,POPUP:f,PRIVACY_POLICY:R,REGISTER:g,RESET_PASSWORD:w,RES_MAPPING:k,TILE:I,TOC_PRIVACY:M,UI:P,default:G})};let q=H;const $={},V=function(e,t){return e.replace(".min.js",".locale-"+t+".min.js")},Y=function(e){return!e&&navigator&&navigator.language&&(e=navigator.language,-1===W.indexOf(e)&&(e=navigator.language.split("-")[0])),-1===W.indexOf(e)?"en":e},K=function(e,t){for(let n in t)"object"==typeof t[n]?e[n]=K(e[n],t[n]):e[n]=t[n];return e};var z=function(e,t){e=Y(e),F[e]||(e="en");let n=Object.assign({},F.en);return"en"!=e&&(n=K(n,F[e])),delete n.default,n&&t&&(n=K(n,t)),n},j=function(e,t){e=e||{};var n,i=t;for(var a in e)n="%"+a.toUpperCase()+"%",i=i.replace(new RegExp(n,"g"),e[a]);return i};const Z="breadbutter-ui";let X,Q={},J={},ee=!1,te=10001;const ne=function(e){(function(e){var t;e.stack_order&&(t=e.stack_order,X=t,te=t+1)})(e),ie(e),ae(e)},ie=function(e){e.app_id&&(ee=e.app_id)},ae=function(e){let t=z(e.language,e.locale);t&&(Q=t)},oe=function(e){let t;return t="string"==typeof e?-1==e.indexOf(".")?document.getElementById(e):document.querySelector(e):e,t},re=function(e){e||(e=Z);const t=document.createElement("div");return t.classList.add(e),Z==e&&se(t),t},se=function(e){new ResizeObserver(function(){let t=e.offsetHeight;e.scrollHeight>t?e.classList.add("scroll-limited"):e.classList.remove("scroll-limited")}).observe(e)};let le=0;const ce=function(e){let t="";return e.customization&&e.customization.login_text_hex_color&&(t+="color:"+e.customization.login_text_hex_color+";"),e.customization&&e.customization.login_background_hex_color,t},de=function(e){let t="",n="radial-"+Math.ceil(1e3*Math.random());switch("magic_link"!=e&&"local"!=e||(e="profile_verified"),e){case"email":t='<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="24" height="18.096" viewBox="0 0 24 18.096"> <defs> <clipPath id="clip-path"> <rect id="Rectangle_4889" data-name="Rectangle 4889" width="24" height="18.096" transform="translate(0 0)" fill="none"/> </clipPath> </defs> <g id="Group_21938" data-name="Group 21938" transform="translate(-473.626 -1274.283)"> <g id="Group_21811" data-name="Group 21811" transform="translate(473.626 1274.283)"> <g id="Mask_Group_20664" data-name="Mask Group 20664" transform="translate(0 0)" clip-path="url(#clip-path)"> <path id="Path_46419" data-name="Path 46419" d="M2.16,0A2.195,2.195,0,0,0,0,2.192V15.9A2.194,2.194,0,0,0,2.16,18.1h19.7A2.181,2.181,0,0,0,24,15.9V2.192A2.181,2.181,0,0,0,21.856,0Zm0,2.048h19.7c.054,0,.1.023.1.144V2.48L12,9.168,2.048,2.48V2.192c0-.121.058-.144.112-.144m-.112,2.9,9.392,6.32a1.023,1.023,0,0,0,1.136,0l9.376-6.32V15.9c0,.121-.042.144-.1.144H2.16c-.054,0-.112-.023-.112-.144Z" transform="translate(0 0)" fill="#333"/> <path id="Path_46420" data-name="Path 46420" d="M4.112,4h19.7c.054,0,.1.023.1.144v.288L13.952,11.12,4,4.432V4.144C4,4.023,4.058,4,4.112,4M4,6.9l9.392,6.32a1.023,1.023,0,0,0,1.136,0L23.9,6.9v10.96c0,.121-.042.144-.1.144H4.112C4.058,18,4,17.977,4,17.856Z" transform="translate(-1.952 -1.952)" fill="#f9e9b9"/> </g> </g> </g></svg>';break;case"profile_verified":t='\n \n<svg id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" viewBox="0 0 40 40">\n \x3c!-- Generator: Adobe Illustrator 29.6.1, SVG Export Plug-In . SVG Version: 2.1.1 Build 9) --\x3e\n <defs>\n <style>\n .st0_profile_verified {\n fill: none;\n }\n\n .st1_profile_verified {\n fill: #ebebeb;\n }\n\n .st2_profile_verified {\n fill: #b5ddfe;\n }\n\n .st3_profile_verified {\n clip-path: url(#clippath_profile_verified-1);\n }\n\n .st4_profile_verified {\n clip-path: url(#clippath_profile_verified-2);\n }\n\n .st5_profile_verified {\n fill: #fff;\n }\n\n .st6_profile_verified {\n fill: #0953ab;\n }\n\n .st7_profile_verified {\n clip-path: url(#clippath_profile_verified);\n }\n </style>\n <clipPath id="clippath_profile_verified">\n <rect class="st0_profile_verified" width="40" height="40"/>\n </clipPath>\n <clipPath id="clippath_profile_verified-1">\n <rect class="st0_profile_verified" width="40" height="40"/>\n </clipPath>\n <clipPath id="clippath_profile_verified-2">\n <rect class="st0_profile_verified" width="40" height="40"/>\n </clipPath>\n </defs>\n <g id="Group_25029_profile_verified">\n <g id="Group_25014_profile_verified">\n <g class="st7_profile_verified">\n <g id="Group_25013_profile_verified">\n <path id="Path_67928_profile_verified" class="st5_profile_verified" d="M20,1c-10.5,0-19,8.5-19,19,0,10.5,8.5,19,19,19,10.5,0,19-8.5,19-19,0-7.6-4.6-14.5-11.6-17.5-2.3-1-4.9-1.5-7.4-1.5"/>\n </g>\n </g>\n </g>\n <g id="Group_25016_profile_verified">\n <g class="st3_profile_verified">\n <g id="Group_25015">\n <path id="Path_67929_profile_verified" class="st1_profile_verified" d="M20,1c-10.5,0-19,8.5-19,19,0,10.5,8.5,19,19,19,10.5,0,19-8.5,19-19,0-7.6-4.6-14.5-11.6-17.5-2.3-1-4.9-1.5-7.4-1.5M20,0c11,0,20,9,20,20s-9,20-20,20S0,31,0,20C0,9,9,0,20,0"/>\n </g>\n </g>\n </g>\n <g id="Group_25018_profile_verified">\n <g class="st4_profile_verified">\n <g id="Group_25017_profile_verified">\n <path id="Path_67930_profile_verified" class="st6_profile_verified" d="M19.9,7.7c3.9,0,10.4.8,10.4,5.2,0,1-.2,2-.9,2.8,0,0-.1.1-.2.2-.5.4-.7,1.1-.4,1.7,1.1,2.2,1.4,7,1.4,10.4,0,.9-.7,1.6-1.6,1.6H11.1c-.9,0-1.6-.7-1.6-1.6,0-3.5.4-8.3,1.4-10.4.3-.6.1-1.3-.4-1.7,0,0-.1,0-.2-.2-.7-.8-1-1.8-.9-2.8,0-4.4,6.5-5.2,10.3-5.2M19.9,6.3c-7.6,0-11.7,2.4-11.7,6.6-.1,1.4.4,2.8,1.3,3.8,0,0,.2.2.3.3-1.5,3.1-1.6,9.7-1.6,11,0,1.6,1.3,3,3,3h17.5c1.6,0,3-1.3,3-3,0-1.3,0-8-1.6-11,.1,0,.2-.2.3-.3.9-1.
11,1.4-2.4,1.3-3.8,0-4.2-4.2-6.5-11.8-6.6h0Z"/>\n <path class="st2_profile_verified" d="M19.9,7.7c3.9,0,10.4.8,10.4,5.2,0,1-.2,2-.9,2.8,0,0-.1.1-.2.2-.5.4-.7,1.1-.4,1.7,1.1,2.2,1.4,7,1.4,10.4,0,.9-.7,1.6-1.6,1.6H11.1c-.9,0-1.6-.7-1.6-1.6,0-3.5.4-8.3,1.4-10.4.3-.6.1-1.3-.4-1.7,0,0-.1,0-.2-.2-.7-.8-1-1.8-.9-2.8,0-4.4,6.5-5.2,10.3-5.2"/>\n <path id="Path_67931_profile_verified" class="st6_profile_verified" d="M19.5,24.1c-.3,0-.5,0-.7-.2l-5.2-3.8c-.6-.4-.7-1.2-.3-1.7.4-.6,1.2-.7,1.7-.3,0,0,0,0,0,0l4.1,3,5.2-8.1c.4-.6,1.1-.8,1.7-.4.6.4.8,1.1.4,1.7l-5.9,9.2c-.2.3-.5.5-.8.6,0,0-.2,0-.2,0"/>\n </g>\n </g>\n </g>\n </g>\n</svg>\n ';break;case"magic_link":t=`\n <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="24.164" height="24.4" viewBox="0 0 24.164 24.4">\n <defs>\n <radialGradient id="${n}" cx="0.5" cy="0.5" r="0.5" gradientUnits="objectBoundingBox">\n <stop offset="0" stop-color="#fdd03a"/>\n <stop offset="0.648" stop-color="#d98b7a"/>\n <stop offset="1" stop-color="#9203fa"/>\n </radialGradient>\n </defs>\n <g id="Group_15318" data-name="Group 15318" transform="translate(479.338 -2635.516)">\n <g id="Group_14825" data-name="Group 14825" transform="translate(-503.977 2630.618)">\n <g id="Group_13895" data-name="Group 13895" transform="translate(30.624 4.898)">\n <path id="Path_13311" data-name="Path 13311" d="M57.655,7.512a.686.686,0,0,0-.97,0l-2.91,2.91a.686.686,0,0,0,.97.97l2.91-2.91a.686.686,0,0,0,0-.97ZM51.934,5.1a.686.686,0,0,0-1.167.485L50.76,9.695a.69.69,0,0,0,1.379,0L52.132,5.58a.68.68,0,0,0-.2-.485Zm8.138,8.138a.68.68,0,0,0-.485-.2l-4.115-.008a.689.689,0,1,0,0,1.379l4.115-.008a.686.686,0,0,0,.485-1.167ZM46.016,7.028a.686.686,0,0,0-.97.97l2.91,2.91a.686.686,0,1,0,.97-.97Zm9.214,9.214a.686.686,0,0,0-.97.97l2.91,2.91a.686.686,0,0,0,.97-.97ZM47.365,12.6a.669.669,0,0,0-.477-.2l-4.115.008a.682.682,0,0,0,0,1.364l4.115.008a.681.681,0,0,0,.477-1.175Zm5.2,5.2a.681.681,0,0,0-1.175.477l.008,4.114a.682.682,0,0,0,1.364,0l.008-4.115a.669.669,0,0,0-.2-.477Z" transform="translate(-42.091 -4.898)" fill="url(#${n})"/>\n </g>\n <g id="Group_13896" data-name="Group 13896" transform="translate(24.639 11.687)">\n <path id="Path_13312" data-name="Path 13312" d="M39.884,24.885a.712.712,0,0,0-.97,0L24.829,39.205a.713.713,0,0,0,0,.97l1.94,1.94a.713.713,0,0,0,.97,0l14.084-14.32a.712.712,0,0,0,0-.97ZM39.4,26.34l.97.97-3.88,3.88-.97-.97Z" transform="translate(-24.639 -24.694)"/>\n </g>\n </g>\n </g>\n </svg>\n `;break;case"okta":t='<svg width="24" height="24" xmlns="http://www.w3.org/2000/svg"> <image href="https://breadbutterprodcdnstor.blob.core.windows.net/images/BB_OKTA_ICON.png" x="0" y="0" width="24" height="24" /></svg>';break;case"onelogin":t='<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" enable-background="new 0 0 446.7 445.6" xml:space="preserve" viewBox="0 0 223 222">\n<g class="currentLayer" style=""><g id="svg_1" class="">\n\t<path fill="#FFFFFF" d="M111.30000000000001,-0.000003051757815342171 C49.900000000000006,-0.000003051757815342171 0,49.79999694824218 0,111.19999694824219 c0,61.5 49.8,111.3 111.3,111.3 S222.60000000000002,172.6999969482422 222.60000000000002,111.19999694824219 C222.60000000000002,49.79999694824218 172.8,-0.000003051757815342171 111.30000000000001,-0.000003051757815342171 z" id="svg_2"/>\n\t<path fill="#1C1F2A" d="M127.9,150.59999694824216 c0,2.1 -1.1,3.2 -3.2,3.2 h-20 c-2.1,0 -3.2,-1.1 -3.2,-3.2 v-48.2 h-15.3 c-2.1,0 -3.2,-1.1 -3.2,-3.2 v-20 c0,-2.1 1.1,-3.2 3.2,-3.2 h39 c2.1,0 2.6,1.1 2.6,2.6 V150.59999694824216 z" id="svg_3"/>\n</g></g></svg>';break;case"google":t='<svg version="1.1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48" class="abcRioButtonSvg"><g><path fill="#EA4335" d="M24 9.5c3.54 0 6.71 1.22 9.21 3.6l6.85-6.85C35.9 2.38 30.47 0 24 0 14.62 0 6.51 5.38 2.56 13.22l7.98 6.19C12.43 13.72 17.74 9.5 24 9.5z"></path><path fill="#4285F4" d="M46.98 24.55c0-1.57-.15-3.09-.38-4.55H24v9.02h12.94c-.58 2.96-2.26 5.48-4.78 7.18l7.73 6c4.51-4.18 7.09-10.36 7.09-17.65z"></path><path fill="#FBBC05" d="M10.53 28.59c-.48-1.45-.76-2.99-.76-4.59s.27-3.14.76-4.59l-7.98-6.19C.92 16.46 0 20.12 0 24c0 3.88.92 7.54 2.56 10.78l7.97-6.19z"></path><path fill="#34A853" d="M24 48c6.48 0 11.93-2.13 15.89-5.81l-7.73-6c-2.15 1.45-4.92 2.3-8.16 2.3-6.26 0-11.57-4.22-13.47-9.91l-7.98 6.19C6.51 42.62 14.62 48 24 48z"></path><path fill="none" d="M0 0h48v48H0z"></path></g></svg>';break;case"facebook":t='<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" version="1.1" viewBox="0 0 14222 14125"><g id="Layer_x0020_1"><path class="fil0" d="M14222 7100c0,-3927 -3184,-7111 -7111,-7111 -3927,0 -7111,3184 -7111,7111 0,3549 2600,6491 6000,7025l0 -4969 -1806 0 0 -2056 1806 0 0 -1567c0,-1782 1062,-2767 2686,-2767 778,0 1592,139 1592,139l0 1750 -897 0c-883,0 -1159,548 -1159,1111l0 1334 1972 0 -315 2056 -1657 0 0 4969c3400,-533 6000,-3475 6000,-7025z" style="fill:#FEFEFE;fill-rule:nonzero"/></g></svg>';break;case"microsoft":t='<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" viewBox="0 0 150 150" xml:space="preserve"><g><title>Layer 1</title> <path fill="#F0511C" d="m17.17982,74.67l55.94,0c0,-18.67 0,-37.31 0,-55.94l-55.94,0l0,55.94z" id="svg_1"></path> <path fill="#81CC2C" d="m79.18018,74.471802l55.93,0c0,-18.67 0,-37.31 0,-55.94l-55.93,0c0,18.65 0,37.29 0,55.94z" id="svg_2"></path> <path fill="#1EAEEF" d="m16.99964,134.32l55.94,0c0,-18.67 0,-37.31 0,-55.94l-55.94,0l0,55.94z" id="svg_3"></path> <path fill="#FBBC13" d="m79,134.401081l55.94,0l0,-55.93l-55.94,0c0,18.64 0,37.28 0,55.93z" id="svg_4"></path></g></svg>';break;case"linkedin":t='<svg version="1.1" id="Capa_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 430.117 430.117" style="enable-background:new 0 0 430.117 430.117;" xml:space="preserve"><g><path d="M430.117,261.543V420.56h-92.188V272.193c0-37.271-13.334-62.707-46.703-62.707c-25.473,0-40.632,17.142-47.301,33.724c-2.432,5.928-3.058,14.179-3.058,22.477V420.56h-92.219c0,0,1.242-251.285,0-277.32h92.21v39.309c-0.187,0.294-0.43,0.611-0.606,0.896h0.606v-0.896c12.251-18.869,34.13-45.824,83.102-45.824C384.633,136.724,430.117,176.361,430.11
17,261.543z M52.183,9.558C20.635,9.558,0,30.251,0,57.463c0,26.619,20.038,47.94,50.959,47.94h0.616c32.159,0,52.159-21.317,52.159-47.94C103.128,30.251,83.734,9.558,52.183,9.558z M5.477,420.56h92.184v-277.32H5.477V420.56z"/></g></svg>';break;case"twitter":t='<svg xmlns="http://www.w3.org/2000/svg" viewBox="50 40 300 300"><path d="M153.62,301.59c94.34,0,145.94-78.16,145.94-145.94,0-2.22,0-4.43-.15-6.63A104.36,104.36,0,0,0,325,122.47a102.38,102.38,0,0,1-29.46,8.07,51.47,51.47,0,0,0,22.55-28.37,102.79,102.79,0,0,1-32.57,12.45,51.34,51.34,0,0,0-87.41,46.78A145.62,145.62,0,0,1,92.4,107.81a51.33,51.33,0,0,0,15.88,68.47A50.91,50.91,0,0,1,85,169.86c0,.21,0,.43,0,.65a51.31,51.31,0,0,0,41.15,50.28,51.21,51.21,0,0,1-23.16.88,51.35,51.35,0,0,0,47.92,35.62,102.92,102.92,0,0,1-63.7,22A104.41,104.41,0,0,1,75,278.55a145.21,145.21,0,0,0,78.62,23"/></svg>',t='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 300 271" className="idp-logo"><path d="M236 0h46L181 115l118 156h-92.6l-72.5-94.8-83 94.8h-46l107-123L-1.1 0h94.9l65.5 86.6zm-16.1 244h25.5L80.4 26H53z"></path></svg>';break;case"quickbooks":t='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 107.96 107.89"><path xmlns="http://www.w3.org/2000/svg" d="M54.98 0.08L55.75 0.1L56.52 0.13L57.29 0.17L58.06 0.21L58.83 0.27L60.63 0.46L62.4 0.7L64.16 0.99L65.9 1.35L67.61 1.76L69.31 2.22L70.98 2.74L72.64 3.31L74.26 3.93L75.86 4.6L77.44 5.32L78.98 6.09L80.5 6.91L81.99 7.78L83.45 8.69L84.88 9.65L86.27 10.65L87.63 11.7L88.96 12.79L90.25 13.92L91.5 15.09L92.72 16.3L93.89 17.55L95.03 18.83L96.13 20.16L97.18 21.52L98.19 22.92L99.16 24.35L100.08 25.81L100.96 27.31L101.79 28.83L102.57 30.39L103.31 31.98L103.99 33.6L104.62 35.25L105.2 36.92L105.73 38.62L106.2 40.34L106.62 42.09L106.98 43.86L107.36 46.08L107.64 48.29L107.84 50.49L107.94 52.67L107.96 54.83L107.89 56.98L107.74 59.11L107.5 61.22L107.18 63.3L106.79 65.36L106.31 67.39L105.76 69.4L105.13 71.37L104.43 73.31L103.66 75.22L102.81 77.09L101.9 78.93L100.92 80.72L99.87 82.48L98.76 84.19L97.58 85.86L96.35 87.48L95.05 89.06L93.69 90.58L92.28 92.05L90.82 93.47L89.29 94.84L87.72 96.15L86.1 97.4L84.42 98.59L82.7 99.71L80.93 100.78L79.12 101.78L77.27 102.71L75.37 103.57L73.43 104.36L71.46 105.08L69.45 105.72L67.4 106.29L65.32 106.78L63.13 107.19L60.95 107.52L58.77 107.75L56.61 107.9L54.45 107.96L52.31 107.94L50.18 107.83L48.07 107.64L45.97 107.37L43.9 107.01L41.85 106.58L39.83 106.08L37.83 105.49L35.86 104.83L33.92 104.1L32.02 103.3L30.15 102.42L28.31 101.48L26.52 100.46L24.76 99.38L23.05 98.23L21.38 97.02L19.76 95.75L18.19 94.41L16.67 93.01L15.2 91.55L13.79 90.04L12.43 88.46L11.13 86.83L9.9 85.15L8.72 83.41L7.62 81.62L6.57 79.78L5.6 77.89L4.7 75.96L3.87 73.97L3.11 71.94L2.43 69.87L1.83 67.75L1.32 65.59L1.28 65.42L1.25 65.25L1.21 65.08L1.18 64.91L1.15 64.73L1.12 64.56L1.09 64.39L1.06 64.21L1.03 64.04L1 63.86L0.97 63.69L0.94 63.51L0.92 63.34L0.89 63.16L0.86 62.98L0.84 62.81L0.82 62.63L0.79 62.45L0.77 62.27L0.75 62.1L0.72 61.92L0.7 61.74L0.68 61.56L0.66 61.38L0.64 61.2L0.62 61.03L0.6 60.85L0.58 60.67L0.56 60.49L0.54 60.31L0.52 60.13L0.5 59.95L0.48 59.77L0.46 59.59L0.45 59.41L0.43 59.23L0.41 59.05L0.39 58.87L0.37 58.69L0.36 58.51L0 56.71L0 51.43L0.02 51.21L0.04 51L0.07 50.79L0.09 50.58L0.12 50.38L0.14 50.18L0.16 49.98L0.19 49.78L0.21 49.59L0.24 49.4L0.26 49.21L0.28 49.03L0.31 48.84L0.33 48.66L0.36 48.49L0.38 48.31L0.4 48.14L0.43 47.97L0.45 47.81L0.48 47.64L0.5 47.48L0.52 47.32L0.55 47.17L0.57 47.02L0.6 46.87L0.62 46.72L0.64 46.57L0.67 46.43L0.69 46.29L0.72 46.16L0.74 46.02L0.76 45.89L0.79 45.76L0.81 45.64L0.84 45.52L0.86 45.39L0.88 45.28L0.91 45.16L0.93 45.05L0.96 44.94L1.21 43.63L1.49 42.35L1.79 41.07L2.12 39.82L2.47 38.58L2.84 37.36L3.24 36.16L3.66 34.97L4.11 33.8L4.58 32.65L5.07 31.51L5.58 30.4L6.12 29.29L6.68 28.21L7.27 27.14L7.88 26.09L8.51 25.06L9.17 24.05L9.85 23.05L10.55 22.07L11.27 21.1L12.02 20.16L12.79 19.23L13.59 18.31L14.4 17.42L15.25 16.54L16.11 15.68L17 14.83L17.91 14.01L18.84 13.2L19.79 12.4L20.77 11.63L21.77 10.87L22.8 10.13L23.84 9.4L24.91 8.7L26 8L27.12 7.33L28.25 6.68L29.41 6.04L30.11 5.67L30.81 5.32L31.5 4.98L32.21 4.66L32.91 4.34L33.61 4.04L34.32 3.75L35.03 3.47L35.74 3.2L36.46 2.94L37.18 2.7L37.89 2.46L38.61 2.24L39.34 2.03L40.06 1.83L40.79 1.64L41.52 1.46L42.25 1.29L42.98 1.14L43.72 0.99L44.46 0.86L45.19 0.74L45.94 0.62L46.68 0.52L47.42 0.43L48.17 0.35L48.92 0.28L49.67 0.22L50.42 0.17L51.18 0.13L51.94 0.1L52.7 0.08L53.46 0.07L54.22 0.07L54.98 0.08ZM38.67 32.81L38.29 32.81L37.92 32.82L37.54 32.82L37.16 32.83L36.78 32.84L36.4 32.86L36.02 32.87L35.65 32.89L35.27 32.91L34.89 32.93L34.51 32.96L34.13 32.99L33.75 33.02L33.38 33.05L32.35 33.19L31.35 33.37L30.36 33.6L29.4 33.87L28.46 34.19L27.55 34.56L26.66 34.96L25.79 35.41L24.96 35.89L24.15 36.41L23.36 36.97L22.61 37.56L21.88 38.19L21.19 38.84L20.53 39.53L19.9 40.25L19.3 40.99L18.73 41.76L18.2 42.55L17.71 43.37L17.25 44.2L16.83 45.06L16.44 45.93L16.09 46.83L15.79 47.73L15.52 48.66L15.29 49.59L15.11 50.54L14.97 51.49L14.87 52.46L14.82 53.43L14.81 54.4L14.84 55.38L14.93 56.36L15.06 57.35L15.23 58.33L15.46 59.31L15.74 60.29L16.07 61.26L16.45 62.23L16.73 62.87L17.04 63.5L17.36 64.12L17.7 64.72L18.06 65.3L18.43 65.87L18.82 66.43L19.22 66.97L19.64 67.5L20.08 68.01L20.53 68.5L20.99 68.98L21.47 69.45L21.95 69.89L22.46 70.32L22.97 70.74L23.5 71.14L24.04 71.52L24.59 71.88L25.15 72.23L25.72 72.56L26.31 72.87L26.9 73.16L27.5 73.44L28.12 73.69L28.74 73.93L29.37 74.15L30.01 74.35L30.65 74.53L31.31 74.69
1L31.97 74.84L32.63 74.96L33.31 75.06L33.99 75.14L34.67 75.2L35.37 75.25L36.06 75.27L36.76 75.27L37.47 75.24L38.18 75.2L38.23 75.19L38.28 75.18L38.33 75.17L38.38 75.16L38.43 75.15L38.47 75.14L38.51 75.12L38.56 75.11L38.6 75.1L38.63 75.08L38.67 75.07L38.7 75.05L38.74 75.03L38.77 75.01L38.8 75L38.83 74.98L38.86 74.95L38.88 74.93L38.91 74.91L38.93 74.88L38.95 74.86L38.97 74.83L38.99 74.81L39.01 74.78L39.03 74.75L39.04 74.71L39.06 74.68L39.07 74.65L39.08 74.61L39.09 74.58L39.1 74.54L39.11 74.5L39.12 74.46L39.12 74.41L39.13 74.37L39.13 74.32L39.14 74.27L39.14 74.22L39.14 74.17L39.14 74.12L39.14 68.36L39.14 68.28L39.14 68.2L39.13 68.13L39.13 68.06L39.12 67.99L39.11 67.92L39.1 67.86L39.08 67.8L39.07 67.75L39.05 67.69L39.03 67.64L39.01 67.59L38.99 67.55L38.96 67.5L38.94 67.46L38.91 67.42L38.88 67.39L38.85 67.35L38.82 67.32L38.78 67.29L38.74 67.26L38.7 67.24L38.66 67.21L38.62 67.19L38.58 67.17L38.53 67.15L38.48 67.13L38.43 67.12L38.38 67.1L38.33 67.09L38.27 67.08L38.22 67.07L38.16 67.06L38.1 67.05L38.04 67.05L37.97 67.04L37.91 67.04L37.84 67.04L37.77 67.04L37.7 67.03L37.6 67.03L37.5 67.03L37.4 67.03L37.3 67.03L37.2 67.03L37.1 67.03L37 67.03L36.9 67.03L36.79 67.03L36.69 67.03L36.59 67.03L36.49 67.03L36.39 67.03L36.28 67.02L36.18 67.02L36.08 67.02L35.98 67.02L35.88 67.01L35.77 67.01L35.67 67L35.57 67L35.47 66.99L35.37 66.99L35.27 66.98L35.17 66.98L35.07 66.97L34.97 66.96L34.87 66.95L34.77 66.94L34.68 66.93L34.58 66.92L34.48 66.91L34.39 66.9L34.29 66.89L34.2 66.87L34.1 66.86L34.01 66.84L33.92 66.83L33.83 66.81L33.74 66.79L33.28 66.71L32.83 66.62L32.39 66.51L31.95 66.38L31.52 66.24L31.1 66.08L30.69 65.91L30.28 65.73L29.89 65.53L29.5 65.31L29.12 65.09L28.75 64.85L28.39 64.6L28.03 64.34L27.69 64.06L27.36 63.77L27.03 63.48L26.72 63.17L26.42 62.85L26.13 62.52L25.85 62.18L25.58 61.83L25.32 61.47L25.07 61.1L24.84 60.72L24.62 60.33L24.41 59.94L24.21 59.54L24.03 59.12L23.86 58.71L23.7 58.28L23.56 57.85L23.43 57.41L23.31 56.97L23.21 56.52L23.13 56.06L23.05 55.6L23 55.13L22.96 54.66L22.93 54.19L22.93 53.75L22.94 53.32L22.97 52.89L23.02 52.46L23.08 52.03L23.15 51.61L23.24 51.19L23.34 50.77L23.46 50.35L23.59 49.94L23.73 49.53L23.89 49.12L24.06 48.72L24.25 48.33L24.44 47.94L24.65 47.56L24.87 47.19L25.1 46.82L25.35 46.46L25.6 46.11L25.87 45.77L26.15 45.44L26.43 45.11L26.73 44.8L27.04 44.49L27.36 44.2L27.69 43.92L28.03 43.65L28.38 43.39L28.74 43.14L29.11 42.91L29.48 42.69L29.87 42.48L30.26 42.29L30.66 42.11L31.07 41.95L31.48 41.8L31.91 41.67L32.34 41.56L32.78 41.46L32.98 41.42L33.19 41.37L33.4 41.34L33.61 41.3L33.82 41.27L34.03 41.24L34.25 41.21L34.46 41.19L34.67 41.17L34.89 41.15L35.1 41.13L35.32 41.11L35.54 41.1L35.75 41.09L35.97 41.07L36.19 41.06L36.41 41.06L36.63 41.05L36.85 41.04L37.07 41.04L37.29 41.03L37.51 41.03L37.73 41.03L37.95 41.03L38.18 41.02L38.4 41.02L38.62 41.02L39.07 41.02L39.29 41.02L39.52 41.02L39.74 41.02L39.97 41.01L40.19 41.01L40.42 41.01L40.64 41L40.87 41L41.09 40.99L41.32 40.99L41.54 40.98L41.64 40.97L41.73 40.97L41.82 40.96L41.91 40.96L41.99 40.96L42.07 40.97L42.15 40.97L42.22 40.98L42.29 40.99L42.36 41L42.43 41.02L42.49 41.04L42.55 41.06L42.6 41.08L42.65 41.11L42.7 41.14L42.75 41.17L42.8 41.2L42.84 41.24L42.88 41.28L42.91 41.32L42.95 41.37L42.98 41.41L43.01 41.46L43.04 41.52L43.06 41.57L43.09 41.63L43.11 41.69L43.13 41.76L43.15 41.82L43.16 41.89L43.17 41.97L43.19 42.04L43.2 42.12L43.2 42.2L43.21 42.29L43.22 42.38L43.22 42.47L43.22 42.56L43.22 42.66L43.22 81.68L43.22 81.83L43.23 81.97L43.23 82.11L43.24 82.25L43.25 82.39L43.26 82.53L43.27 82.66L43.28 82.8L43.3 82.93L43.32 83.06L43.34 83.19L43.36 83.32L43.38 83.45L43.41 83.58L43.44 83.71L43.47 83.83L43.5 83.96L43.54 84.08L43.57 84.2L43.61 84.33L43.65 84.45L43.7 84.57L43.74 84.69L43.79 84.8L43.84 84.92L43.9 85.04L43.95 85.16L44.01 85.27L44.07 85.39L44.13 85.5L44.2 85.61L44.27 85.73L44.34 85.84L44.41 85.95L44.49 86.06L44.56 86.17L44.65 86.28L44.73 86.39L44.82 86.5L44.9 86.61L45.02 86.75L45.14 86.89L45.26 87.02L45.39 87.16L45.51 87.29L45.64 87.41L45.77 87.54L45.9 87.66L46.03 87.77L46.17 87.88L46.31 87.99L46.44 88.1L46.59 88.2L46.73 88.3L46.88 88.39L47.02 88.49L47.17 88.57L47.32 88.66L47.48 88.74L47.64 88.81L47.79 88.89L47.96 88.95L48.12 89.02L48.28 89.08L48.45 89.14L48.62 89.19L48.8 89.24L48.97 89.28L49.15 89.32L49.33 89.36L49.51 89.39L49.7 89.42L49.88 89.44L50.07 89.46L50.27 89.48L50.46 89.49L50.66 89.5L50.86 89.5L51.06 89.5L51.27 89.49L51.26 88.08L51.25 86.66L51.24 85.25L51.24 83.84L51.23 82.42L51.22 81.01L51.22 79.6L51.21 78.19L51.2 76.78L51.2 75.37L51.19 73.96L51.19 72.54L51.18 71.13L51.18 69.72L51.
118 68.31L51.17 66.9L51.17 65.49L51.17 64.08L51.16 62.67L51.16 61.26L51.16 59.84L51.16 58.43L51.16 57.02L51.16 55.61L51.15 54.19L51.15 52.78L51.15 51.37L51.15 49.95L51.15 48.54L51.15 47.12L51.15 45.71L51.15 44.29L51.15 42.87L51.15 41.46L51.15 40.04L51.15 38.62L51.15 37.2L51.15 35.78L51.15 34.36L51.15 32.93L48.51 32.93L48.13 32.93L47.75 32.93L47.37 32.93L46.99 32.92L46.61 32.92L46.24 32.91L45.86 32.91L45.48 32.9L45.1 32.89L44.72 32.88L44.35 32.88L43.59 32.86L43.21 32.85L42.83 32.84L42.45 32.84L42.08 32.83L41.7 32.82L41.32 32.82L40.94 32.81L40.56 32.81L40.18 32.81L39.81 32.8L39.43 32.8L39.05 32.8L38.67 32.81ZM62.43 75.2L62.74 75.2L63.05 75.2L63.35 75.21L63.66 75.21L63.97 75.21L64.27 75.22L64.58 75.23L64.88 75.23L65.19 75.24L65.49 75.25L65.8 75.26L66.11 75.26L66.41 75.27L66.72 75.28L67.02 75.29L67.33 75.3L67.63 75.3L67.94 75.31L68.24 75.32L68.54 75.32L68.85 75.32L69.15 75.33L69.45 75.33L69.76 75.33L70.06 75.33L70.36 75.33L70.66 75.32L70.97 75.32L71.27 75.31L71.57 75.3L71.87 75.29L72.17 75.28L72.47 75.26L72.77 75.24L73.07 75.22L73.37 75.2L73.67 75.17L73.97 75.15L74.26 75.11L74.56 75.08L75.48 74.95L76.38 74.79L77.27 74.6L78.14 74.36L78.99 74.1L79.82 73.8L80.63 73.48L81.42 73.12L82.19 72.73L82.94 72.31L83.66 71.86L84.37 71.39L85.05 70.89L85.71 70.36L86.34 69.81L86.95 69.24L87.54 68.64L88.1 68.01L88.63 67.37L89.14 66.7L89.62 66.02L90.07 65.31L90.49 64.59L90.88 63.85L91.25 63.09L91.58 62.32L91.89 61.53L92.16 60.72L92.4 59.9L92.61 59.07L92.79 58.23L92.93 57.37L93.04 56.51L93.12 55.63L93.16 54.75L93.16 53.86L93.13 52.96L93.06 52.05L92.96 51.14L92.81 50.22L92.67 49.52L92.51 48.82L92.32 48.12L92.11 47.44L91.87 46.76L91.61 46.1L91.32 45.44L91.02 44.8L90.69 44.16L90.34 43.54L89.98 42.93L89.59 42.33L89.18 41.75L88.76 41.18L88.31 40.62L87.85 40.08L87.38 39.56L86.88 39.05L86.37 38.56L85.85 38.08L85.31 37.62L84.76 37.19L84.19 36.77L83.61 36.37L83.02 35.99L82.42 35.63L81.81 35.29L81.19 34.97L80.55 34.67L79.91 34.4L79.26 34.15L78.6 33.93L77.94 33.73L77.27 33.55L76.59 33.4L75.9 33.28L75.21 33.18L74.52 33.11L73.82 33.07L73.12 33.05L73.01 33.05L72.9 33.05L72.79 33.05L72.68 33.04L72.56 33.03L72.45 33.03L72.33 33.02L72.21 33.01L72.1 33L71.98 32.99L71.86 32.98L71.74 32.97L71.63 32.96L71.51 32.95L71.39 32.94L71.28 32.93L71.16 32.92L71.05 32.91L70.94 32.91L70.82 32.9L70.72 32.9L70.61 32.9L70.5 32.9L70.4 32.9L70.3 32.9L70.2 32.91L70.1 32.91L70.01 32.92L69.92 32.94L69.83 32.95L69.74 32.97L69.66 32.99L69.59 33.02L69.51 33.04L69.44 33.08L69.38 33.11L69.32 33.15L69.26 33.19L69.21 33.24L69.16 33.29L69.11 33.36L69.06 33.43L69.01 33.5L68.97 33.57L68.94 33.65L68.9 33.73L68.87 33.82L68.84 33.9L68.82 33.99L68.8 34.08L68.78 34.18L68.76 34.27L68.75 34.37L68.74 34.47L68.73 34.57L68.72 34.68L68.72 34.78L68.71 34.89L68.71 35L68.71 35.11L68.71 35.22L68.71 35.33L68.71 35.45L68.72 35.56L68.72 35.67L68.73 35.79L68.73 35.9L68.74 36.02L68.75 36.13L68.76 36.36L68.77 36.48L68.77 36.59L68.78 36.71L68.78 36.82L68.79 36.93L68.79 37.05L68.8 37.16L68.8 37.27L68.8 37.38L68.8 37.64L68.8 37.89L68.8 38.13L68.8 38.35L68.81 38.57L68.81 38.77L68.82 38.96L68.83 39.14L68.84 39.3L68.85 39.46L68.87 39.61L68.9 39.75L68.92 39.87L68.95 39.99L68.99 40.11L69.03 40.21L69.08 40.3L69.13 40.39L69.18 40.47L69.25 40.54L69.32 40.61L69.4 40.67L69.48 40.72L69.58 40.77L69.68 40.82L69.79 40.86L69.91 40.89L70.03 40.92L70.17 40.95L70.32 40.97L70.48 40.99L70.64 41.01L70.82 41.03L71.01 41.04L71.21 41.05L71.42 41.06L71.65 41.07L71.89 41.08L72.14 41.09L72.4 41.1L72.89 41.13L73.37 41.17L73.84 41.23L74.31 41.31L74.78 41.4L75.24 41.51L75.69 41.64L76.14 41.78L76.59 41.93L77.02 42.1L77.45 42.28L77.87 42.48L78.28 42.69L78.68 42.92L79.07 43.15L79.46 43.4L79.83 43.67L80.2 43.94L80.55 44.22L80.9 44.52L81.23 44.83L81.55 45.15L81.86 45.47L82.15 45.81L82.44 46.16L82.71 46.51L82.96 46.88L83.21 47.25L83.43 47.63L83.65 48.02L83.85 48.42L84.03 48.82L84.2 49.23L84.35 49.65L84.48 50.07L84.6 50.5L84.7 50.93L84.78 51.37L84.84 51.82L84.89 52.27L84.93 52.8L84.96 53.34L84.97 53.86L84.96 54.39L84.94 54.9L84.9 55.41L84.84 55.92L84.76 56.42L84.67 56.91L84.56 57.39L84.44 57.86L84.3 58.33L84.14 58.79L83.97 59.24L83.78 59.68L83.58 60.11L83.36 60.53L83.13 60.94L82.88 61.35L82.62 61.74L82.35 62.12L82.06 62.48L81.76 62.84L81.44 63.18L81.11 63.52L80.77 63.84L80.41 64.14L80.04 64.44L79.66 64.71L79.27 64.98L78.86 65.23L78.44 65.47L78.01 65.69L77.57 65.9L77.12 66.09L76.65 66.26L76.17 66.42L75.69
166.56L75.19 66.69L74.68 66.79L74.47 66.84L74.25 66.88L74.03 66.92L73.81 66.95L73.6 66.98L73.38 67.01L73.16 67.04L72.94 67.06L72.72 67.08L72.5 67.1L72.28 67.12L72.06 67.14L71.84 67.15L71.62 67.16L71.4 67.17L71.18 67.18L70.96 67.19L70.74 67.19L70.52 67.2L70.3 67.2L70.08 67.2L69.86 67.2L69.64 67.2L69.42 67.2L69.2 67.2L68.98 67.2L68.76 67.19L68.54 67.19L68.32 67.19L68.1 67.18L67.88 67.18L67.66 67.18L67.44 67.17L67.22 67.17L67 67.16L66.78 67.16L66.57 67.16L66.35 67.16L66.13 67.16L65.92 67.15L65.89 67.15L65.86 67.15L65.83 67.14L65.81 67.13L65.78 67.12L65.75 67.11L65.72 67.09L65.69 67.08L65.66 67.06L65.63 67.04L65.6 67.01L65.58 66.99L65.55 66.96L65.52 66.94L65.49 66.91L65.47 66.88L65.44 66.85L65.41 66.82L65.39 66.78L65.36 66.75L65.34 66.72L65.31 66.68L65.29 66.65L65.27 66.61L65.25 66.57L65.23 66.54L65.21 66.5L65.19 66.47L65.17 66.43L65.16 66.4L65.14 66.36L65.13 66.32L65.12 66.29L65.11 66.26L65.1 66.22L65.09 66.19L65.08 66.16L65.08 66.13L65.08 66.1L65.08 66.07L65.07 65.95L65.06 65.82L65.05 65.7L65.05 65.57L65.04 65.45L65.04 65.33L65.03 65.2L65.03 65.08L65.03 64.96L65.03 64.83L65.02 64.71L65.02 64.59L65.02 64.46L65.02 64.34L65.02 64.22L65.02 64.1L65.03 63.98L65.03 63.86L65.03 63.73L65.03 63.61L65.03 63.49L65.04 63.37L65.04 63.25L65.04 63.13L65.04 63L65.05 62.88L65.05 62.76L65.05 62.64L65.06 62.52L65.06 62.39L65.06 62.27L65.06 62.15L65.07 62.02L65.07 61.9L65.07 61.78L65.07 61.65L65.07 61.53L65.08 61.4L65.08 61.28L65.08 61.15L65.08 27.53L65.07 27.27L65.07 27.01L65.06 26.76L65.04 26.5L65.02 26.25L65 26L64.97 25.75L64.94 25.51L64.9 25.26L64.85 25.02L64.81 24.79L64.75 24.55L64.69 24.32L64.63 24.09L64.56 23.87L64.48 23.64L64.4 23.42L64.31 23.21L64.22 23L64.12 22.79L64.01 22.58L63.9 22.38L63.78 22.18L63.65 21.99L63.52 21.8L63.38 21.61L63.23 21.43L63.08 21.25L62.91 21.08L62.75 20.91L62.57 20.75L62.39 20.59L62.2 20.43L62 20.28L61.79 20.14L61.57 20L61.35 19.86L61.12 19.73L60.88 19.6L60.63 19.49L60.55 19.45L60.47 19.41L60.39 19.38L60.3 19.35L60.22 19.32L60.13 19.28L60.05 19.25L59.96 19.22L59.87 19.19L59.78 19.16L59.69 19.14L59.6 19.11L59.51 19.08L59.42 19.05L59.33 19.03L59.24 19L59.14 18.98L59.05 18.95L58.96 18.92L58.86 18.9L58.77 18.88L58.67 18.85L58.58 18.83L58.48 18.8L58.38 18.78L58.29 18.75L58.19 18.73L58.09 18.71L58 18.68L57.9 18.66L57.8 18.63L57.7 18.61L57.6 18.58L57.5 18.56L57.41 18.53L57.31 18.51L57.21 18.48L57.11 18.46L57.01 18.43L56.91 18.4L56.91 75.2L62.43 75.2Z"/></svg>';break;case"github":t='<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" preserveAspectRatio="xMidYMid meet" viewBox="97.05966635694722 153.580285751011 47.3795178841722 46.3088002396093"><path xmlns="http://www.w3.org/2000/svg" d="M119.75 154.58C107.77 154.58 98.06 164.29 98.06 176.27C98.06 185.85 104.27 193.98 112.89 196.85C113.98 197.05 114.37 196.38 114.37 195.81C114.37 195.29 114.35 193.93 114.34 192.12C108.31 193.43 107.04 189.21 107.04 189.21C106.05 186.7 104.63 186.04 104.63 186.04C102.66 184.69 104.78 184.72 104.78 184.72C106.96 184.87 108.1 186.95 108.1 186.95C110.04 190.27 113.18 189.31 114.41 188.76C114.61 187.35 115.17 186.4 115.79 185.86C110.97 185.31 105.91 183.45 105.91 175.14C105.91 172.77 106.76 170.83 108.14 169.32C107.92 168.77 107.18 166.56 108.35 163.58C108.35 163.58 110.18 162.99 114.32 165.8C116.05 165.32 117.91 165.08 119.75 165.07C121.59 165.08 123.45 165.32 125.18 165.8C129.32 162.99 131.14 163.58 131.14 163.58C132.32 166.56 131.58 168.77 131.35 169.32C132.74 170.83 133.58 172.77 133.58 175.14C133.58 183.47 128.51 185.3 123.68 185.84C124.46 186.51 125.15 187.83 125.15 189.86C125.15 192.75 125.13 195.09 125.13 195.81C125.13 196.39 125.52 197.06 126.62 196.85C135.23 193.97 141.44 185.85 141.44 176.27C141.44 164.29 131.73 154.58 119.75 154.58" id="aMLv1KqxA"/></svg>';break;case"slack":t='<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="55 55 160 160" xml:space="preserve"><style type="text/css">.st0_slack{fill:#E01E5A;}.st1_slack{fill:#36C5F0;}.st2_slack{fill:#2EB67D;}.st3_slack{fill:#ECB22E;}</style><g><g><path class="st0_slack" d="M99.4,151.2c0,7.1-5.8,12.9-12.9,12.9c-7.1,0-12.9-5.8-12.9-12.9c0-7.1,5.8-12.9,12.9-12.9h12.9V151.2z"/><path class="st0_slack" d="M105.9,151.2c0-7.1,5.8-12.9,12.9-12.9s12.9,5.8,12.9,12.9v32.3c0,7.1-5.8,12.9-12.9,12.9s-12.9-5.8-12.9-12.9V151.2z"/></g><g><path class="st1_slack" d="M118.8,99.4c-7.1,0-12.9-5.8-12.9-12.9c0-7.1,5.8-12.9,12.9-12.9s12.9,5.8,12.9,12.9v12.9H118.8z"/><path class="st1_slack" d="M118.8,105.9c7.1,0,12.9,5.8,12.9,12.9s-5.8,12.9-12.9,12.9H86.5c-7.1,0-12.9-5.8-12.9-12.9s5.8-12.9,12.9-12.9H118.8z"/></g><g><path class="st2_slack" d="M170.6,118.8c0-7.1,5.8-12.9,12.9-12.9c7.1,0,12.9,5.8,12.9,12.9s-5.8,12.9-12.9,12.9h-12.9V118.8z"/><path class="st2_slack" d="M164.1,118.8c0,7.1-5.8,12.9-12.9,12.9c-7.1,0-12.9-5.8-12.9-12.9V86.5c0-7.1,5.8-12.9,12.9-12.9c7.1,0,12.9,5.8,12.9,12.9V118.8z"/></g><g><path class="st3_slack" d="M151.2,170.6c7.1,0,12.9,5.8,12.9,12.9c0,7.1-5.8,12.9-12.9,12.9c-7.1,0-12.9-5.8-12.9-12.9v-12.9H151.2z"/><path class="st3_slack" d="M151.2,164.1c-7.1,0-12.9-5.8-12.9-12.9c0-7.1,5.8-12.9,12.9-12.9h32.3c7.1,0,12.9,5.8,12.9,12.9c0,7.1-5.8,12.9-12.9,12.9H151.2z"/></g></g></svg>';break;case"basecamp":t='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 -2 36 36"><defs><style>.cls-1{fill:#fff;}.cls-2{fill:none;stroke:#fff;stroke-linecap:round;stroke-linejoin:round;stroke-width:3.41px;}</style></defs><g id="Layer_2" data-name="Layer 2"><g id="Layer_1-2" data-name="Layer 1"><path class="cls-2" d="M1.71,17.73c2.61-7.4,7.61-16,17.7-16S34.49,15,35.12,24c-2.65,4.6-9,6.33-15.71,6.33A18.87,18.87,0,0,1,5,24s3.16-8.53,6.11-8.55c2.17,0,4,4,5.73,4s5.33-7.68,5.33-7.68"></path></g></g></svg>';break;case"dropbox":t='<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 -5 73 73" xml:space="preserve"><style type="text/css">.st0_dropbox{fill:#FFF;}.st1_dropbox{display:none;}.st2_dropbox{display:inline;}.st3_dropbox{fill:none;}</style><path class="st0_dropbox" d="M37.6,12L18.8,24l18.8,12L18.8,48L0,35.9l18.8-12L0,12L18.8,0L37.6,12z M18.7,51.8l18.8-12l18.8,12l-18.8,12L18.7,51.8z M37.6,35.9l18.8-12L37.6,12L56.3,0l18.8,12L56.3,24l18.8,12L56.3,48L37.
16,35.9z"></path></svg>';break;case"shopify":t='<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="-10 0 127.5 127.5" xml:space="preserve"> <style type="text/css"> </style> <g> <g> <path style="fill:#FFFFFF;" class="st0" d="M74.8,14.8c0,0-1.4,0.4-3.7,1.1c-0.4-1.3-1-2.8-1.8-4.4c-2.6-5-6.5-7.7-11.1-7.7c0,0,0,0,0,0 c-0.3,0-0.6,0-1,0.1c-0.1-0.2-0.3-0.3-0.4-0.5c-2-2.2-4.6-3.2-7.7-3.1c-6,0.2-12,4.5-16.8,12.2c-3.4,5.4-6,12.2-6.7,17.5 c-6.9,2.1-11.7,3.6-11.8,3.7c-3.5,1.1-3.6,1.2-4,4.5c-0.3,2.5-9.5,72.9-9.5,72.9l75.6,13.1V14.7C75.3,14.7,75,14.8,74.8,14.8z M57.3,20.2c-4,1.2-8.4,2.6-12.7,3.9c1.2-4.7,3.6-9.4,6.4-12.5c1.1-1.1,2.6-2.4,4.3-3.2C57,12,57.4,16.9,57.3,20.2z M49.1,4.4 c1.4,0,2.6,0.3,3.6,0.9c-1.6,0.8-3.2,2.1-4.7,3.6c-3.8,4.1-6.7,10.5-7.9,16.6c-3.6,1.1-7.2,2.2-10.5,3.2 C31.8,19.1,39.9,4.6,49.1,4.4z M37.5,59.4c0.4,6.4,17.3,7.8,18.3,22.9c0.7,11.9-6.3,20-16.4,20.6c-12.2,0.8-18.9-6.4-18.9-6.4 l2.6-11c0,0,6.7,5.1,12.1,4.7c3.5-0.2,4.8-3.1,4.7-5.1c-0.5-8.4-14.3-7.9-15.2-21.7C23.9,51.8,31.5,40.1,48.3,39 c6.5-0.4,9.8,1.2,9.8,1.2l-3.8,14.4c0,0-4.3-2-9.4-1.6C37.5,53.5,37.4,58.2,37.5,59.4z M61.3,19c0-3-0.4-7.3-1.8-10.9 c4.6,0.9,6.8,6,7.8,9.1C65.5,17.7,63.5,18.3,61.3,19z"></path> <path class="st0" d="M78.2,124l31.4-7.8c0,0-13.5-91.3-13.6-91.9c-0.1-0.6-0.6-1-1.1-1c-0.5,0-9.3-0.2-9.3-0.2s-5.4-5.2-7.4-7.2 V124z"></path> </g> </g> </svg>';break;case"evernote":t='<svg xmlns="http://www.w3.org/2000/svg" viewBox="45 50 125 125"><path d="M84.13,79.19a6.71,6.71,0,0,1-1.32,4.5C81.51,84.9,79.48,85,78.31,85H65.51a67,67,0,0,0-7.4.2,10.49,10.49,0,0,0-2.3.7c-.15.06-.2,0-.1-.1L84.93,56.1c.1-.1.16-.06.1.1a10.49,10.49,0,0,0-.7,2.3,67,67,0,0,0-.2,7.4ZM111.28,169a15.24,15.24,0,0,1-5.89-6.9,15.08,15.08,0,0,1,14.14-20.63A4.48,4.48,0,0,1,124,146a4.56,4.56,0,0,1-2.33,3.93,5.62,5.62,0,0,1-1.7.58,7.25,7.25,0,0,0-3.29,1.08,4.45,4.45,0,0,0-1.78,3.51,5.52,5.52,0,0,0,1.6,3.9,9.52,9.52,0,0,0,6.8,2.8,12.29,12.29,0,0,0,12.3-12.3c0-6.1-4.1-11.5-9.5-13.9a18.65,18.65,0,0,0-3.3-1c-1.5-.3-2.9-.5-3-.5-4.2-.5-14.7-3.8-15.4-13.1,0,0-3.1,14-9.3,17.8a10.22,10.22,0,0,1-2.3.8,13.44,13.44,0,0,1-2.2.3c-10.1.6-20.8-2.6-28.2-10.2,0,0-5-4.1-7.6-15.6-.6-2.8-1.8-7.8-2.5-12.5-.3-1.7-.4-3-.5-4.2,0-4.85,3-8.2,6.75-8.67l.59,0H78.93c3.5,0,5.5-.9,6.8-2.1,1.7-1.6,2.1-3.9,2.1-6.6V59.55c0-.14,0-.47,0-.59.47-3.74,3.82-6.75,8.67-6.75h2.4a23.83,23.83,0,0,1,3.31.25,23.42,23.42,0,0,1,2.69.55c6.1,1.52,7.4,7.7,7.4,7.7l17.3,3c5.5,1,19.1,1.9,21.7,15.6,6.1,32.6,2.4,64.2,2.1,64.2-4.3,30.8-29.9,29.3-29.9,29.3A22.22,22.22,0,0,1,111.28,169Zm23.05-65.57c-3.31-.34-6.12,1-7.15,3.52a2.6,2.6,0,0,0-.28,1.4.81.81,0,0,0,.51.49,22.59,22.59,0,0,0,6.12,1.23c2.89.35,4.92.54,6.23.26a.81.81,0,0,0,.61-.36,2.5,2.5,0,0,0,.06-1.43C140,105.86,137.62,103.92,134.33,103.47Z" style="fill:#fff"></path></svg>';break;case"planningcenter":t='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 112 112"> <g class="currentLayer" style=""><g id="svg_1" class=""> <path d="M70.82498907470702,45.863772888183604 l-11.7,3.466 a11.6,11.6 0 0 1 -7.13,0.07900000000000001 l-11.778,-3.5060000000000002 a0.7520000000000001,0.7520000000000001 0 0 0 -0.985,0.7090000000000001 v14.93 a0.934,0.934 0 0 0 0.6700000000000002,0.906 l14.417,4.333 a4.231,4.231 0 0 0 2.324,-0.04000000000000001 l14.536,-4.372 a0.97,0.97 0 0 0 0.6700000000000002,-0.906 V46.611772888183594 A0.776,0.776 0 0 0 70.82498907470702,45.863772888183604 z" fill="#fff" id="svg_8"></path> <path d="M98.32898907470704,11.352772888183594 l-33.739,-10.035 a31.766000000000002,31.766000000000002 0 0 0 -18.109,0 l-33.741,10.035 a18.2,18.2 0 0 0 -12.74,17.36 v54.763 a18.2,18.2 0 0 0 12.74,17.36 l33.741,10.034 a31.766000000000002,31.766000000000002 0 0 0 18.109,0 l33.74,-10.034 a18.2,18.2 0 0 0 12.74,-17.36 V28.712772888183594 A18.2,18.2 0 0 0 98.32898907470704,11.352772888183594 zM81.89398907470704,66.19377288818359 a4.4190000000000005,4.4190000000000005 0 0 1 -3.19,4.215 l-20.485,6.264 a8.76,8.76 0 0 1 -5.318,0 L39.50798907470704,72.69377288818359 a0.2,0.2 0 0 0 -0.276,0.2 v9.887 a1.572,1.572 0 0 1 -2.048,1.5 l-6.855,-2.01 a1.608,1.608 0 0 1 -1.142,-1.536 v-40.85 a5.687,5.687 0 0 1 7.248,-5.4 l18.16,5.4 a3.374,3.374 0 0 0 1.772,-0.04000000000000001 l18,-5.4 a5.786,5.786 0 0 1 7.524,5.554 z" fill="#fff" id="svg_9"></path></g></g></svg>';break;case"fitbit":t='<svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 144 144"><defs><style>.fitbit-cls-1{fill:#00B0B9;}.fitbit-cls-2{fill:#00B0B9;}</style></defs><path class="fitbit-cls-1" d="M141.09,72A10.81,10.81,0,1,1,130.28,61.2,10.81,10.81,0,0,1,141.09,72ZM130.28,91.36a11.24,11.24,0,1,0,11.24,11.24A11.24,11.24,0,0,0,130.28,91.36Zm0,30.17A11.68,11.68,0,1,0,142,133.2,11.68,11.68,0,0,0,130.28,121.53Zm0,31
1a11.24,11.24,0,1,0,11.24,11.24A11.24,11.24,0,0,0,130.28,152.55Zm0,31a10.81,10.81,0,1,0,10.81,10.81A10.81,10.81,0,0,0,130.28,183.58ZM160,89.92a12.68,12.68,0,1,0,12.68,12.68A12.68,12.68,0,0,0,160,89.92Zm0,30.17a13.12,13.12,0,1,0,13.12,13.12A13.12,13.12,0,0,0,160,120.08Zm0,31a12.68,12.68,0,1,0,12.68,12.68A12.68,12.68,0,0,0,160,151.11Zm30.56-32.47a14.56,14.56,0,1,0,14.56,14.56A14.56,14.56,0,0,0,190.61,118.64ZM100.12,92.8a9.8,9.8,0,1,0,9.8,9.8A9.8,9.8,0,0,0,100.12,92.8Zm0,30.17a10.23,10.23,0,1,0,10.23,10.23A10.23,10.23,0,0,0,100.12,123Zm0,31a9.8,9.8,0,1,0,9.8,9.8A9.8,9.8,0,0,0,100.12,154ZM70,124.41a8.79,8.79,0,1,0,8.79,8.79A8.79,8.79,0,0,0,70,124.41Z" transform="translate(-61.17 -61.2)"></path></svg>';break;case"apple":t='<svg xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:cc="http://creativecommons.org/ns#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:svg="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg" xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" version="1.1" viewBox="-170 0 1287.198 1287.198"><g class="currentLayer" style="fill: #fff;"><path d="m 979.04184,925.18785 c -17.95397,41.47737 -39.20563,79.65705 -63.82824,114.75895 -33.56298,47.8528 -61.04356,80.9761 -82.22194,99.3698 -32.83013,30.192 -68.00529,45.6544 -105.67203,46.5338 -27.04089,0 -59.6512,-7.6946 -97.61105,-23.3035 -38.08442,-15.5358 -73.08371,-23.2303 -105.08578,-23.2303 -33.56296,0 -69.55888,7.6945 -108.06101,23.2303 -38.5608,15.6089 -69.62484,23.7432 -93.37541,24.5493 -36.12049,1.5389 -72.1237,-14.3632 -108.06101,-47.7796 -22.93711,-20.0059 -51.62684,-54.3017 -85.99592,-102.8874 C 92.254176,984.54592 61.937588,924.38175 38.187028,855.7902 12.750995,781.70252 0,709.95986 0,640.50361 0,560.94181 17.191859,492.32094 51.626869,434.81688 78.689754,388.62753 114.69299,352.19192 159.75381,325.44413 c 45.06086,-26.74775 93.74914,-40.37812 146.18212,-41.25019 28.68971,0 66.3125,8.8744 113.06613,26.31542 46.62174,17.49964 76.55727,26.37404 89.68198,26.37404 9.8124,0 43.06758,-10.37669 99.4431,-31.06405 53.31237,-19.18512 98.30724,-27.12887 135.16787,-23.99975 99.8828,8.06098 174.92313,47.43518 224.82789,118.37174 -89.33023,54.12578 -133.51903,129.93556 -132.63966,227.18753 0.8061,75.75115 28.28668,138.78795 82.2952,188.8393 24.47603,23.23022 51.81008,41.18421 82.22186,53.93522 -6.59525,19.12648 -13.557,37.44688 -20.95846,55.03446 z M 749.96366,23.751237 c 0,59.37343 -21.69138,114.810233 -64.92748,166.121963 -52.17652,60.99961 -115.28658,96.24803 -183.72426,90.68597 -0.87204,-7.12298 -1.37769,-14.61967 -1.37769,-22.49743 0,-56.99843 24.81315,-117.99801 68.87738,-167.873453 21.99909,-25.25281 49.978,-46.25018 83.90738,-63.00018 C 686.57507,10.688027 718.59913,1.5631274 748.71783,5.2734376e-4 749.59727,7.9378274 749.96366,15.875627 749.96366,23.750467 Z" id="path4"></path></g></svg>';break;case"twitch":t='<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 2400 2800" style="enable-background:new 0 0 2400 2800;" xml:space="preserve"><style type="text/css"></style><g><polygon style="fill:#FFFFFF;" class="st0" points="2200,1300 1800,1700 1400,1700 1050,2050 1050,1700 600,1700 600,200 2200,200 "/><g><g id="Layer_1-2"><path d="M500,0L0,500v1800h600v500l500-500h400l900-900V0H500z M2200,1300l-400,400h-400l-350,350v-350H600V200h1600V1300z"/><rect x="1700" y="550" width="200" height="600"/><rect x="1150" y="550" width="200" height="600"/></g></g></g></svg>';break;case"salesforce":t='<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 48 48" version="1.1"><g id="surface1"><path d="M36.5 12c-1.324 0-2.59.258-3.758.703A7.994 7.994 0 0 0 26 9c-2.105 0-4.02.82-5.445 2.152A9.468 9.468 0 0 0 13.5 8C8.254 8 4 12.254 4 17.5c0 .793.11 1.559.29 2.293A8.472 8.472 0 0 0 1 26.5C1 31.195 4.805 35 9.5 35c.414 0 .816-.04 1.215-.098 1.312 3 4.3 5.098 7.785 5.098 3.16 0 5.914-1.73 7.379-4.293A7.923 7.923 0 0 0 28 36c2.621 0 4.938-1.266 6.398-3.21.68.136 1.383.21 2.102.21C42.3 33 47 28.3 47 22.5S42.3 12 36.5 12z" fill="#039BE5"/></g></svg>';break;case"local":t='<svg xmlns="http://www.w3.org/2000/svg" width="23.617" height="32.644" viewBox="0 0 23.617 32.644">\n <g id="Group_15579" data-name="Group 15579" transform="translate(-3057.555 565.704)">\n <g id="Group_15578" data-name="Group 15578" transform="translate(3057.555 -565.704)">\n <g id="Group_352" data-name="Group 352" transform="translate(0 0)">\n <path id="Path_284" data-name="Path 284" d="M1273.394,702.939v-.018l-.014-.049a11.938,11.938,0,0,0-3.113-4.8l-.072-4.173a8.131,8.131,0,0,0-16.26.277l.072,4.177a11.9,11.9,0,0,0-2.945,4.905l-.013.054v.013a11.787,11.787,0,1,0,23.06,3.212A13,13,0,0,0,1273.394,702.939Zm-15.867-8.823a4.524,4.524,0,1,1,9.046-.156l.031,1.809a11.869,11.869,0,0,0-9.046.157l-.031-1.809Zm4.878,20.723a8.134,8.134,0,1,1,7.991-8.273A8.1,8.1,0,0,1,1262.4,714.84Z" transform="translate(-1250.494 -685.905)" fill="#fff"/>\n <circle id="Ellipse_5" data-name="Ellipse 5" cx="3.314" cy="3.314" r="3.314" transform="translate(8.461 17.29)" fill="#fff"/>\n </g>\n </g>\n </g>\n</svg>'}return t},ue=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){var t=16*Math.random()|0;return("x"==e?t:3&t|8).toString(16)})};var pe=function(){return te++},me=function(){return X-1},fe=re,_e=function(e){let t=!1;return t=document.createElement("span"),e&&t.classList.add(e),t},ge=function(e,t,n,i){ne(t);let a=re();t.opt_in&&a.classList.add("breadbutter-optin"),a.addEventListener("keydown",e=>{e.stopPropagation()}),a.addEventListener("keyup",e=>{e.stopPropagation()}),function(e,t){e.uuid=ue(),J[e.uuid]={client_data:t.client_data,destination_url:t.destination_url,registration_destination_url:t.registration_destination_url,callback_url:t.callback_url,force_reauthentication:t.force_reauthentication,success_event_c
1ode:t.success_event_code,pin:t.pin,adjustHeader:t.adjustHeader,onLogin:t.onLogin,onBlur:t.onBlur,onProvider:t.onProvider,addEvent:t.addEvent,isContinueWith:t.isContinueWith,from_continue_with:t.from_continue_with,forceQuit:t.forceQuit}}(a,t);let o=oe(e);if(a.appendChild(n),a.options=t,o?(function(e){for(;e.firstChild;)e.removeChild(e.lastChild)}(o),o.appendChild(a)):i=`target element "${e}" does not exist`,i){if("function"!=typeof t.onError)throw new Error(i);t.onError(a,i)}else"function"==typeof t.onCreated&&t.onCreated(a,t);return o},Le=function(e,t){const n=document.createElement(e);return t&&n.classList.add(t),n},be=function(e){const t=document.createElement("div");return t.classList.add("bb-button"),e&&t.classList.add(e),t},he=function(e){var t="";let n=e.idp,i=e.name.slice(0,2);return t='<div data-name="'+n+'" class="bb-item" style="'+ce(e)+'"><span>'+i+"</span></div>",e.customization&&e.customization.login_icon_image_url&&(t='<div class="custom-icon" style="background-image: url('+e.customization.login_icon_image_url+');"></div>'),t},ve=function(e,t,n){var i="";let a=e.idp,o=e.name,r=t?Q.TILE.CONTINUE:Q.TILE.SIGN_IN;r=n?Q.TILE.DEIDENTIFY_WITH:r;let s=function(e,t){var n=!1;return n=de(e),t.customization&&t.customization.login_icon_image_url&&(n='<div class="custom-icon" style="background-image: url('+t.customization.login_icon_image_url+');"></div>'),n}(a,e);s=s?'<div class="icon-holder"><div class="bb-icon">'+s+"</div></div>":"";let l=ce(e);return r=j({WITH:Q.TILE.WITH,BRAND:o},r),e.alias&&(r=j({NAME:e.alias},n?Q.TILE.DEIDENTIFY:Q.TILE.CONTINUE_AS)),i='<div data-name="'+a+'" class="bb-'+a+'"><div class="bb-icon-wrapper" style="'+l+'">'+s+"<span>"+r+"</span></div></div>",e.customization&&e.customization.login_button_image_url&&(i='<div class="custom-button" style="background-image: url('+e.customization.login_button_image_url+');"></div>'),i},Ee=function(e){return'<div data-name="'+e+'" class="bb-item">'+de(e)+"</div>"},we=function(e,t,n,i){let a,o,r="",s=e,l=de(e),c=n?Q.TILE.CONTINUE:Q.TILE.SIGN_IN;c=i?Q.TILE.DEIDENTIFY_WITH:c;let d=Q.TILE.BRAND[s.toUpperCase()];if(d){let e=Q.TILE.WITH;"planningcenter"==s&&(e=Q.TILE.W_),c=j({WITH:e,BRAND:d},c)}switch(s){case"google":r='<div data-name="google" class="bb-google"><div class="bb-icon-wrapper"><div class="bb-icon bb-icon-small">'+l;break;case"facebook":r='<div data-name="facebook" class="bb-facebook"><div class="bb-icon-wrapper"><div class="bb-icon">'+l;break;case"microsoft":r='<div data-name="microsoft" class="bb-microsoft"><div class="bb-icon-wrapper"><div class="bb-icon bb-icon-small">'+l;break;case"linkedin":r='<div data-name="linkedin" class="bb-linkedin"><div class="bb-icon-wrapper"><div class="bb-icon bb-icon-small">'+l;break;case"twitter":r='<div data-name="twitter" class="bb-twitter"><div class="bb-icon-wrapper"><div class="bb-icon">'+l;break;case"quickbooks":r='<div data-name="quickbooks" class="bb-quickbooks"><div class="bb-icon-wrapper"><div class="bb-icon bb-icon-medium">'+l;break;case"github":r='<div data-name="github" class="bb-github"><div class="bb-icon-wrapper"><div class="bb-icon">'+l;break;case"slack":r='<div data-name="slack" class="bb-slack"><div class="bb-icon-wrapper"><div class="bb-icon">'+l;break;case"basecamp":r='<div data-name="basecamp" class="bb-basecamp"><div class="bb-icon-wrapper"><div class="bb-icon">'+l;break;case"dropbox":r='<div data-name="dropbox" class="bb-dropbox"><div class="bb-icon-wrapper"><div class="bb-icon">'+l;break;case"shopify":r='<div data-name="shopify" class="bb-shopify"><div class="bb-icon-wrapper"><div class="bb-icon">'+l;break;case"evernote":r='<div data-name="evernote" class="bb-evernote"><div class="bb-icon-wrapper"><div class="bb-icon">'+l;break;case"planningcenter":r='<div data-name="planningcenter" class="bb-planningcenter"><div class="bb-icon-wrapper"><div class="bb-icon bb-icon-small">'+l;break;case"fitbit":r='<div data-name="fitbit" class="bb-fitbit"><div class="bb-icon-wrapper"><div class="bb-icon">'+l;break;case"apple":r='<div data-name="apple" class="bb-apple"><div class="bb-icon-wrapper"><div class="bb-icon bb-icon-small">'+l;break;
1case"twitch":r='<div data-name="twitch" class="bb-twitch"><div class="bb-icon-wrapper"><div class="bb-icon bb-icon-small">'+l;break;case"salesforce":r='<div data-name="salesforce" class="bb-salesforce"><div class="bb-icon-wrapper"><div class="bb-icon">'+l;break;case"magic_link":r='<div data-name="magic-link" class="bb-magic-link"><div class="bb-icon-wrapper"><div class="bb-icon">'+l;break;case"local":a=t.text?t.text:Q.TILE.WITH_EMAIL,o=t.cls?t.cls:"",r='<div data-name="local" class="bb-local '+o+'"><div class="bb-icon-wrapper"><div class="bb-icon">'+l+"</div><span>"+a+"</span></div></div>";break;case"email":a=t.text?t.text:Q.TILE.CONTINUE_EMAIL,o=t.cls?t.cls:"",r='<div data-name="email" class="bb-email '+o+'"><div class="bb-icon-wrapper"><div class="bb-icon">'+l+"</div><span>"+a+"</span></div></div>";break;case"more":r='<div data-name="local" class="bb-local"><div class="bb-icon-wrapper"><span>'+Q.TILE.MORE+"</span></div></div>"}return"local"!=s&&"more"!=s&&"email"!=s&&(t.alias&&(c=j({NAME:t.alias},i?Q.TILE.DEIDENTIFY:Q.TILE.CONTINUE_AS)),r+="</div><span>"+c+"</span></div></div>"),r},Te=ne,ye=function(e,t){let n=e.closest("."+Z);if(n){let e=n.uuid;if(e&&J[e]){let n=J[e];for(let e in n)void 0!==n[e]&&(t[e]=n[e])}}return t},Ce=function(e,t){let n=e.closest("."+Z),i=!1;if(n){let e=n.uuid;e&&J[e]&&(i=J[e][t])}return i},Ie=function(e,t){let n=e.closest("."+Z);if(n){let e=n.uuid;e&&J[e]&&delete J[e][t]}},Ne=function(){le++;let e="https://breadbutter.io/privacy-policy/";return ee&&(e+="?app_id="+ee),`\n <a href=${e} target="_blank">\n \x3c!--<?xml version="1.0" encoding="utf-8"?>--\x3e\n \x3c!-- Generator: Adobe Illustrator 27.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) --\x3e\n <svg version="1.1" id="power-layer-${le}" xmlns="http://www.w3.org/2000/svg"\n xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"\n viewB
1ox="0 0 375 49" style="enable-background:new 0 0 375 49;" xml:space="preserve">\n <g id="power-group-${le}">\n <path id="power-path-${le}" fill="#ffffff" d="M320.1,20.9c0.2-0.1,0.2-0.3,0.2-0.5\n c0-0.2-0.2-0.3-0.4-0.3c-0.1,0-1.8-0.1-1.8-3.2c0-4.3,6.4-5,10.2-5.1l0,0c3.8,0,10.2,0.8,10.2,5.1c0,3.1-1.8,3.2-1.8,3.2\n c-0.2,0-0.4,0.2-0.4,0.4c0,0.1,0.1,0.3,0.2,0.3c1.5,0.9,2,7.3,2,11.2c0,0.8-0.6,1.4-1.4,1.4h-17.6c-0.8,0-1.4-0.6-1.4-1.4\n C318.1,28.3,318.6,21.8,320.1,20.9"/>\n </g>\n <g id="Group_2258" transform="translate(-1852 -116.209)">\n <g id="Group_2165" transform="translate(2082.059 126.522)">\n <g id="Group_2213" transform="translate(93.457 7.661)">\n <g>\n <defs>\n <path id="SVGID_1_" d="M2,0.6L0.1,6c-0.2,0.4,0.1,1,0.5,1.1c0,0,0,0,0,0L6,9c0.4,0.2,1-0.1,1.1-0.5l1.3-5.2\n c0.2-0.4-0.1-1-0.5-1.1L3.1,0.1C2.6-0.1,2.1,0.1,2,0.6C2,0.6,2,0.6,2,0.6"/>\n </defs>\n <clipPath id="power-clip-path-${le}">\n <use xlink:href="#SVGID_1_" style="overflow:visible;"/>\n </clipPath>\n <g id="Group_2212" style="clip-path:url(#power-clip-path-${le});">\n <linearGradient id="power-square-path-${le}" gradientUnits="userSpaceOnUse" x1="-1280.8392" y1="980.4202"\n x2="-1280.7422" y2="980.4202"\n gradientTransform="matrix(4.113 -10.8773 -10.6444 -4.025 15675.0967 -9893.3584)">\n <stop offset="0" style="stop-color:#FFDE00"/>\n <stop offset="1" style="stop-color:#FF9B00"/>\n </linearGradient>\n <polygon id="Rectangle_632" style="fill:url(#power-square-path-${le});" points="\n -3.1,8 1,-2.9 11.6,1.1 7.5,12"/>\n </g>\n </g>\n </g>\n <g id="Group_2215" transform="translate(0 0)">\n <g>\n <defs>\n <rect id="power-rec-2-${le}" x="0" y="0" width="110" height="24.8"/>\n </defs>\n <clipPath id="power-clip-path-2-${le}">\n <use xlink:href="#power-rec-2-${le}" style="overflow:visible;"/>\n </clipPath>\n <g id="Group_2214" style="clip-path:url(#power-clip-path-2-${le});">\n <path id="Path_1109" d="M108.7,10.5c0.9-1.1,1.4-2.4,1.3-3.9c0-4.2-4.2-6.5-11.8-6.6c-7.6,0.1-11.8,2.4-11.8,6.6\n c-0.1,1.4,0.4,2.8,1.3,3.9c0.1,0.1,0.2,0.2,0.3,0.3c-1.5,3.1-1.6,9.7-1.6,11.1c0,1.6,1.4,3,3,3H107c1.6,0,3-1.3,3-3\n c0-1.3-0.1-8-1.6-11.1C108.5,10.7,108.6,10.6,108.7,10.5 M90.1,10.6c0.2-0.1,0.2-0.3,0.2-0.5c0-0.2-0.2-0.3-0.4-0.3\n c-0.1,0-1.8-0.1-1.8-3.2c0-4.3,6.4-5,10.2-5.1l0,0c3.8,0,10.2,0.8,10.2,5.1c0,3.1-1.8,3.2-1.8,3.2c-0.2,0-0.4,0.2-0.4,0.4\n c0,0.1,0.1,0.3,0.2,0.3c1.5,0.9,2.1,7.3,2.1,11.2c0,0.8-0.6,1.4-1.4,1.4H89.4c-0.8,0-1.4-0.6-1.4-1.4\n C88,18,88.6,11.5,90.1,10.6"/>\n </g>\n </g>\n </g>\n </g>\n <text transform="matrix(1 0 0 1 2093.2539 145.708)" fill="var(--bb-poweredby-text-color)" font-size="11"\n font-family="OpenSansLight-Italic, OpenSans-Italic, Open Sans" font-style="italic">powered by</text>\n </g>\n </svg>\n\n </a>\n `},Se=function(e){let t=e;return isNaN(e)||(t+="px"),t},Oe=function(){return'\n<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 40 40" style="enable-background:new 0 0 40 40;" xml:space="preserve">\n<g>\n<path class="st0" d="M27.26,15.54l-4.36,4.46l4.36,4.46c0.8,0.82,0.8,2.15,0,2.97c-0.8,0.82-2.1,0.82-2.9,0L20,22.97l-4.36,4.46\nc-0.8,0.82-2.1,0.82-2.9,0c-0.8-0.82-0.8-2.15,0-2.97l0,0L17.1,20l-4.36-4.46c-0.8-0.82-0.8-2.15,0-2.97c0.8-0.82,2.1-0.82,2.9,0\nL20,17.03l4.36-4.46c0.8-0.82,2.1-0.82,2.9,0C28.06,13.39,28.06,14.72,27.26,15.54L27.26,15.54z"/>\n</g>\n</svg>'},Ae=function(e,t){if(t.customization&&t.customization.login_background_hex_color){let n='.breadbutter-ui .breadbutter-buttons:not(.bb-icon) .enterprise[provider_id="'+t.id+'"]>div:hover .bb-icon-wrapper {background-color: '+t.customization.login_background_hex_color+";}",i=document.createElement("style");i.styleSheet?i.styleSheet.cssText=n:i.appendChild(document.createTextNode(n)),e.appendChild(i)}},ke=function(){try{const e="__bb_test__";return localStorage.setItem(e,1),localStorage.removeItem(e),localStorage}catch(e){return null}};const Re=function(e){if(null==e)return null;try{return decodeURIComponent(e)}catch(t){return e}},Me=function(){var e={},t=window.location.search,n=(0===t.length?window.location.hash:t).split("?");if(n.length>1){var i=n[1].split("&");for(let t=0;t<i.length;t++){var a=i[t].split("="),o=a[0],r=Re(void 0===a[1]?null:a[1]);o.length>0&&(e[o.toLowerCase()]=r,e[o]=r)}
1}return e};let Pe,xe,Ue,De,Be,Ge,He,We,Fe,qe,$e,Ve,Ye,Ke="https://api.breadbutter.io/",ze=!1,je=!1,Ze=!1,Xe=!1;const Qe="breadbutter-sdk-device-id",Je=Me(),et=function(e){if(lt()){let t="breadbutter-sdk-last-success-event-code-"+btoa(e);localStorage.setItem(t,e)}},tt="sso",nt="password",it="magic_link";let at=[],ot=!1;const rt=async function(){Fe&&await ut(),lt()&&localStorage.removeItem(Qe),Ye=!1},st=function(e){return e&&e.error&&e.error.message&&-1!=e.error.message.indexOf("device_id not found.")},lt=function(){try{const e="__bb_test__";return localStorage.setItem(e,1),localStorage.removeItem(e),localStorage}catch(e){return null}},ct=function(){let e=ht(document.cookie),t=!1;return e[Pe]&&(t=e[Pe],lt()&&localStorage.setItem(Qe,t)),t},dt=function(e){let t=("."+document.location.host.split(".").slice(-2).join(".")).split(":")[0],n=Pe+"="+e+";path=/;domain="+t;document.cookie=n},ut=async function(){if(ct()){let t=("."+document.location.host.split(".").slice(-2).join(".")).split(":")[0],n=Pe+"=;path=/;domain="+t;n+=";expires=Thu, 01 Jan 1970 00:00:01 GMT",document.cookie=n,await(e=100,e=e||1e3,new Promise(function(t){setTimeout(function(){t()},e)}))}var e},pt=function(){return new Promise(function(e){let t=Ye;if(!t&<()&&(t=localStorage.getItem(Qe)),"null"!==t&&"false"!==t||(t=!1),Fe){let e=ct();e?(t=e,lt()&&localStorage.setItem(Qe,t)):t&&dt(t)}t&&"undefined"!=t?(Ye=t,e(t)):ot?at.push(e):(ot=!0,at.push(e),St(function(e){We=!1,Ye=!1,t=!1,e&&!e.error&&(t=e.device_id,t&&(lt()&&localStorage.setItem(Qe,t),Fe&&dt(t))),Ye=t,function(e){for(;at.length;)at.pop()(e)}(t),t&&window.dispatchEvent(new Event("bb-new-device-id")),ot=!1}))})},mt=function(e){let t=ft(e);return e.force_reauthentication?t.force_reauthentication=e.force_reauthentication:He&&(t.force_reauthentication=He),e.success_event_code?t.success_event_code=e.success_event_code:qe&&(t.success_event_code=qe),t},ft=function(e){let t={};return e.client_data?t.client_data=e.client_data:Ge&&(t.client_data=Ge),e.callback_url?t.callback_url=e.callback_url:Be&&(t.callback_url=Be),e.destination_url?t.destination_url=e.destination_url:Ue&&(t.destination_url=Ue),e.registration_destination_url?t.registration_destination_url=e.registration_destination_url:De&&(t.registration_destination_url=De),t},_t=function(e){let t={};return e.password&&(t.password=e.password),t},gt=function(e){let t={};return e.idp&&(t.idp=e.idp),e.id&&(t.id=e.id),t};let Lt=[];const bt=function(){if(Lt.length){let e=Lt.shift();Dt[e.call].apply(Dt,e.params),bt()}},ht=e=>e?e.split(";").map(e=>e.split("=")).reduce((e,t)=>(e[Re(t[0].trim())]=Re(void 0===t[1]?null:t[1].trim()),e),{}):{};let vt=[],Et=!1,wt=!1;const Tt=async function(e,t){let n=Ke+"apps/"+Pe+"/client_settings",i={};Xe&&Ze&&(n=Ze+"?action=bb_get_client_settings",i.app_id=Pe);let a=await pt();if(i.device_id=a,e&&(i.email_address=encodeURIComponent(e)),We&&(i.page_view_id=We),!e){if(wt&&Et)return void vt.push(t);wt||(Et=!0,wt=!0)}return p(n,i,Xe&&Ze?"POST":"GET",async function(n){st(n)?(await rt(),Et&&(wt=!1,Et=!1),Tt(e,t)):function(e){e.settings&&(e.settings.discovery_required||e.settings.invite_required)&&e.settings.password_settings&&e.settings.password_settings.enabled&&e.user_profile&&e.user_profile.email_address&&function(e){let t=!1,n=$e||[];for(let i=0;e&&i<n.length&&!t;i++)-1!==e.indexOf(n[i])&&e.indexOf(n[i])+n[i].length==e.length&&(t=!0);return t}(e.user_profile.email_address)&&(e.settings.password_settings=!1,e.user_profile.has_password=!1),e.providers&&(e=function(e){let t=e.suggested_provider;if(navigator.userAgent.match(/FBAN|FBAV|Instagram/i))e.providers=e.providers.filter(e=>"google"!=e.idp),t&&"google"==t.idp&&delete e.suggested_provider;else if(navigator.userAgent.match(/LinkedInApp/i)){e.providers=e.providers.filter(e=>"google"!=e.idp);const n=e.providers.findIndex(e=>"linkedin"===e.idp);if(-1!==n){const[t]=e.providers.splice(n,1);e.providers.unshift(t)}t&&"google"==t.idp&&(-1!==n?e.suggested_provider=e.providers[0]:delete e.suggested_provider)}return e}(e)),"function"==typeof t&&t(e),function(e){for(Et=!1;vt.length;){let t=vt.pop();"function"==typeof t&&t(e)}}(e)}(n)})},yt=async function(e,t){let n=Ke+"apps/"+Pe+"/prerelease/page_engagement",i=!1;e&&"object"==typeof e.ga_data&&(i=e.ga_data,delete e.ga_data);let a=!1;e&&"string"==typeof e.segment_anonymous_id&&(a=e.segment_anonymous_id,delete e.segment_anonymous_id);let o=!1;e&&"boolean"==typeof e.st&&e.st&&(o=!0,delete e.st),Object.keys(e).forEach(function(t,n){e[t]=isNaN(e[t])?0:Number(e[t])});let r={c:0,s:0,m:0,...e};!1!==i&&(r.ga_data=i),0!=a&&(r.segment_anonymous_id=a),!1!==o&&(r.st=o);let s=await pt();return r.device_id=s,We&&(r.page_view_id=We),p(n,r,"POST",async function(n){st(n)?(await rt(),yt(e,t)):"function"==typeof t&&t(n)})},Ct=async function(e,t,n){let i=e+"?action=bb_engagement",a=!1;t&&"object"==typeof t.ga_data&&(a=t.ga_data,delete t.ga_data);let o=!1;t&&"string"==typeof t.segment_anonymous_id&&(o=t.segment_anonymous_id,delete t.segment_anonymous_id);let r=!1;t&&"boolean"==typeof t.st&&t.st&&(r=!0,delete t.st),Object.keys(t).forEach(function(e,n){t[e]=isNaN(t[e])?0:Number(t[e])});let s={c:0,s:0,m:0,...t};!1!==a&&(s.ga_data=a),0!=o&&(s.segment_anonymous_id=o),!1!==r&&(s.st=r);let l=await pt();return s.device_id=l,We&&(s.page_view_id=We),s.app_id=Pe,p(i,s,"POST",async function(i){st(i)?(await rt(),Ct(e,t,n)):"function"==typeof n&&n(i)})},It=async function(e,t){let n=Ke+"apps/"+Pe+"/users/confirm",i={};i.options=mt(e);let a=await pt();return i.device_id=a,e.email_address&&(i.email_address=e.email_address),e.pin&&(i.pin=e.pin),p(n,i,"POST",async function(n){st(n)?(await rt(),It(e,t)):"function"==typeof t&&t(n)})},Nt=async function(e,t){let n=Ke+"apps/"+Pe+"/users/resend_confirmation",i={},a=await pt();return i.device_id=a,e&&(i.email_address=e),p(n,i,"POST",async function(n){st(n)?(await rt(),Nt(e,t)):"function"==typeof t&&t(n)})},St=function(e){let t=Ke+"apps/"+Pe+"/devices",n={};return Xe&&Ze&&(t=Ze+"?action=bb_register_device",n.app_id=Pe),p(t,n,"POST",e)},Ot=async function(e,t){let n=Ke+"apps/"+Pe+"/user_custom_values",i={custom_data:e},a=await pt();return i.device_id=a,p(n,i,"POST",async function(n){st(n)?(await rt(),Ot(e,t)):"function"==typeof t&&t(n)})},At=async function(e,t,n,i){let a=Ke+"apps/"+Pe+"/events",o={};Xe&&Ze&&(a=Ze+"?action=bb_create_event",o.app_id=Pe);let r=await pt();return o.device_id=r,e&&(o.code=e),t&&(o.data=t),n&&(o.referrer_url=n),"page_view"!==e&&We&&(o.page_view_id=We),p(a,o,"POST",async function(a){st(a)?(await rt(),At(e,t,n,i)):"function"==typeof i&&i(a)})},kt=async function(e,t,n,i,a){let o=e+"?action=bb_page_view",r={},s=await pt();return r.device_id=s,t&&(r.code=t),n&&(r.data=n),i&&(r.referrer_url=i),"page_view"!==t&&We&&(r.page_view_id=We),r.app_id=Pe,p(o,r,"POST",async function(o){st(o)?(await rt(),kt(e,t,n,i,a)):"function"==typeof a&&a(o)})},Rt=async function({email_address:e,auth_type:t,provider:n,user:i,options:a,callback:o}){return Pt(Ke+"apps/"+Pe+"/users/start_deidentification",Rt,{email_address:e,auth_type:t,provider:n,user:i,options:a,callback:o})},Mt=async function({email_address:e,auth_type:t,provider:n,user:i,options:a,callback:o}){return Pt(Ke+"apps/"+Pe+"/authentications",Mt,{email_address:e,auth_type:t,provider:n,user:i,options:a,custom_data_required:!!ze,callback:function(e){e&&!e.error&&a.success_event_c
1ode&&et(a.success_event_code),"function"==typeof o&&o(e)}})},Pt=async function(e,t,{email_address:n,auth_type:i,provider:a,user:o,options:r,custom_data_required:s,callback:l}){let c={options:r},d=await pt();switch(c.device_id=d,i){case tt:c.auth_type=tt,c.provider=a;break;case it:c.auth_type=it,o&&(c.user=o);break;case nt:c.auth_type=nt,c.user=o}return n&&(c.email_address=n),We&&(c.page_view_id=We),s&&(c.custom_data_required=s),p(e,c,"POST",async function(e){st(e)?(await rt(),t({email_address:n,auth_type:i,provider:a,user:o,options:r,custom_data_required:s,callback:l})):"function"==typeof l&&l(e)})},xt=async function(e){let t=await pt();return p(Ke+"apps/"+Pe+"/devices/"+t+"/reset_verification",{},"POST",e)},Ut=async function({phone:e,company:t,message:n,callback:i}){let a=Ke+"apps/"+Pe+"/contact_us",o={},r=await pt();return o.device_id=r,We&&(o.page_view_id=We),e&&(o.phone=e),t&&(o.company=t),n&&(o.message=n),p(a,o,"POST",async function(a){st(a)?(await rt(),Ut({phone:e,company:t,message:n,callback:i})):"function"==typeof i&&i(a)})};let Dt={getDeviceId:pt,configure:async function(e){void 0!==e.api_path&&e.api_path&&(Ke=e.api_path.replace(/\/?$/,"/")),void 0!==e.app_id&&e.app_id&&(Pe=e.app_id),void 0!==e.app_secret&&e.app_secret&&(xe=e.app_secret),void 0!==e.destination_url&&e.destination_url&&(Ue=e.destination_url),void 0!==e.registration_destination_url&&e.registration_destination_url&&(De=e.registration_destination_url),void 0!==e.callback_url&&e.callback_url&&(Be=e.callback_url),void 0!==e.force_reauthentication&&e.force_reauthentication&&(He=e.force_reauthentication),void 0!==e.client_data&&e.client_data&&(Ge=e.client_data),void 0!==e.allow_sub_domain&&(Fe=e.allow_sub_domain),void 0!==e.success_event_code&&(qe=e.success_event_code),void 0!==e.hide_local_auth_domains&&($e=e.hide_local_auth_domains),void 0!==e.landing_redirect_url&&(Ve=e.landing_redirect_url),void 0!==e.window_open&&(je=e.window_open),void 0!==e.custom_data_required&&(ze=e.custom_data_required),void 0!==e.wordpress_admin_ajax&&(Ze=e.wordpress_admin_ajax),void 0!==e.wordpress_admin_page&&(Xe=e.wordpress_admin_page)},setPageViewId:function(e){We=e,bt()},getProviders:async function(e,t){await Tt(e,function(e){t&&t(e)})},startLogin:async function(e,t){await Mt({email_address:e.email_address,auth_type:tt,provider:gt(e),user:!1,options:mt(e),callback:t})},redirectLogin:function(e,t,n){let i=Ke+"redirect",a={pin:e};return Ve&&(i=Ve+"?redirect="+encodeURIComponent(i)),m(i,a,t,je,n)},validateLogin:function(e,t){return p(Ke+"validate",{app_id:Pe,app_secret:xe,pin:e},"POST",t)},ping:function(e){let t=Ke+"ping";return Ze&&(t=Ze+"?action=bb_ping"),p(t,{app_id:Pe},Ze?"POST":"GET",e)},login:async function(e,t){await Mt({email_address:e.email_address,auth_type:tt,provider:gt(e),user:!1,options:mt(e),callback:t})},loginWithPassword:async function(e,t){let n=_t(e);await Mt({email_address:e.email_address,auth_type:nt,provider:!1,user:n,options:mt(e),callback:t})},register:async function(e,t){await Mt({email_address:e.email_address,auth_type:tt,provider:gt(e),user:!1,options:mt(e),callback:t})},registerWithPassword:async function(e,t){let n=_t(e);e.first_name&&(n.first_name=e.first_name),e.last_name&&(n.last_name=e.last_name),e.pin&&(n.pin=e.pin),await Mt({email_address:e.email_address,auth_type:nt,provider:!1,user:n,options:mt(e),callback:t})},resetPassword:function(e,t){let n=Ke+"apps/"+Pe+"/users/reset_password",i={app_id:Pe};return e&&(i.email_address=e),p(n,i,"POST",t)},confirmResetPassword:function(e,t,n,i){let a=Ke+"apps/"+Pe+"/users/confirm_password",o={app_id:Pe};return e&&(o.email_address=e),t&&(o.pin=t),n&&(o.password=n),p(a,o,"POST",i)},confirmUser:It,resendConfirmationEmail:Nt,registerDevice:St,createEvent:At,getClientSettings:Tt,redirectAuthentication:function(e,t,n){let i=Ke+"apps/"+Pe+"/authentications/"+e+"/redirect";return Ve&&(i=Ve+"?redirect="+encodeURIComponent(i)),m(i,!1,t,je,n)},startAuthentication:Mt,startMagicLink:async function(e,t){let n=!1;e.first_name&&e.last_name&&(n={},n.first_name=e.first_name,n.last_name=e.last_name),await Mt({email_address:e.email_address,auth_type:it,user:n,options:mt(e),callback:t})},confirmMagicLinkCode:function(e,t){return p(Ke+"apps/"+Pe+"/magic_link",{magic_link_code:e},"POST",t)},getMagicLinkAuthenticated:function(e,t){return p(Ke+"apps/"+Pe+"/magic_link/"+e,{},"GET",t)},resetDeviceVerification:xt,incrementPageEngagement:yt,startDeIdentification:Rt,confirmDeIdentification:async function({email_address:e,pin:t},n){let i=Ke+"apps/"+Pe+"/users/confirm_deidentification",a={pin:t,device_id:await pt()};return e&&(a.email_address=e),We&&(a.page_view_id=We),p(i,a,"POST",function(e){return new Promise((t,i)=>{if(!e||!e.error)return xt().then(()=>async function(){await ut(),lt()&&(localStorage.removeItem(Qe),localStorage.removeItem("breadbutter-sdk-email-address"))}().then(()=>{n(e),t();let i="",a=!1;for(let e in Je)"action_code"!=e&&"action"!=e&&"email"!=e&&"app_id"!=e&&"pin"!=e&&(i+=0==i.length?"":"&",i+=e+"="+encodeURIComponent(Je[e])),a=!0;i.length>0&&(i="?"+i),a?window.location.search=i:(l(),window.location.reload())}));n(e),t()})})},assignEventStorage:et,cleanEventStorage:function(){}
1,addUserCustomValues:Ot,contactUs:Ut,identifyUser:async function({email_address:e,first_name:t,last_name:n,callback:i}){let a=Ke+"apps/"+Pe+"/identify_user",o={},r=await pt();return o.device_id=r,We&&(o.page_view_id=We),e&&(o.email_address=e),t&&(o.first_name=t),n&&(o.last_name=n),p(a,o,"POST",i)},incrementPageEngagementWordpress:Ct,createEventWordpress:kt};var Bt={...Dt};const Gt="util-loader";let Ht=!1;const Wt=function(e,t){let n=!1;for(let i=0;i<e.children.length;i++)e.children[i].classList.contains(t)&&(n=e.children[i]);return n},Ft=function(e){const t=document.createElement("div");return t.classList.add(e),t},qt=function(e,t){return new Promise(n=>{if(Ht){let i=Wt(Ht,Gt);i.classList.add("bb-complete"),i.classList.add(e),setTimeout(()=>{t||$t(),n()},1e3)}else n()})},$t=function(){Ht&&(Ht.parentElement.classList.remove("bb-loading-parent"),Ht.remove(),Ht=!1);let e=document.querySelector(".bb-loading-parent");e&&e.classList.remove("bb-loading-parent")};var Vt={start:function(e,t,n,i){e&&(e.parentElement.classList.contains("breadbutter-discovery-holder")&&(e=e.parentElement),Ht?e.appendChild(Ht):(function(e){let t=Ft("breadbutter-ui-loader-holder"),n=Ft(Gt),i=Ft("util-loader-checkmark");i.innerHTML='\n <svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 40 40" style="enable-background:new 0 0 40 40;" xml:space="preserve">\n<g>\n<path class="st0" d="M40,20c0,11.04-8.96,20-20,20S0,31.04,0,20S8.96,0,20,0S40,8.96,40,20z M36,20c0-8.84-7.16-16-16-16\nS4,11.16,4,20s7.16,16,16,16S36,28.84,36,20z"/>\n<g>\n<path d="M30.23,14.17l-9.46,14.27c-0.28,0.42-0.71,0.72-1.2,0.83c-0.02,0.01-0.05,0.01-0.07,0.02\nc-0.52,0.09-1.06-0.03-1.49-0.34l-8.28-6c-0.87-0.63-1.07-1.85-0.44-2.73c0.63-0.87,1.85-1.07,2.72-0.43l6.64,4.81l8.34-12.58\nc0.59-0.9,1.81-1.14,2.7-0.55C30.58,12.07,30.83,13.28,30.23,14.17z"/>\n</g>\n</g>\n</svg>\n';let a=Ft("util-loader-error");a.innerHTML='\n<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 40 40" style="enable-background:new 0 0 40 40;" xml:space="preserve">\n<g>\n<path class="st0" d="M27.26,15.54l-4.36,4.46l4.36,4.46c0.8,0.82,0.8,2.15,0,2.97c-0.8,0.82-2.1,0.82-2.9,0L20,22.97l-4.36,4.46\nc-0.8,0.82-2.1,0.82-2.9,0c-0.8-0.82-0.8-2.15,0-2.97l0,0L17.1,20l-4.36-4.46c-0.8-0.82-0.8-2.15,0-2.97c0.8-0.82,2.1-0.82,2.9,0\nL20,17.03l4.36-4.46c0.8-0.82,2.1-0.82,2.9,0C28.06,13.39,28.06,14.72,27.26,15.54L27.26,15.54z"/>\n<path class="st0" d="M40,20c0,11.04-8.96,20-20,20S0,31.04,0,20S8.96,0,20,0S40,8.96,40,20z M36,20c0-8.84-7.16-16-16-16\nS4,11.16,4,20s7.16,16,16,16S36,28.84,36,20z"/>\n</g>\n</svg>\n\n ',t.appendChild(n),n.appendChild(i),n.appendChild(a),e.appendChild(t),Ht=t}(e),t&&Wt(Ht,Gt).classList.add("bb-loading")),n&&Ht.classList.add("bb-small"),i&&Ht.classList.add("bb-transparent"),e.classList.add("bb-loading-parent"))},success:function(){return qt("bb-success")},success_hold:function(){return qt("bb-success",!0)},failure:function(){return qt("bb-failure")},failure_hold:function(){return qt("bb-failure",!0)},remove:$t};const Yt="form-alert-confirm",Kt=function(e,t,n){let i=be(t);return i.innerText=e,n&&(i.onclick=n),i},zt=function(e){const t=e.currentTarget.parentElement,n=t.parentElement;n.removeChild(t),n.classList.remove("alert")};const jt="breadbutter-buttons";let Zt={};const Xt=function(e,t,n,i){let a=j(n,t.TITLE),o=j(n,t.MESSAGE),r=j(n,t.CONFIRM),s=!1;t.CONFIRM_2&&(s=j(n,t.CONFIRM_2));let l=e.parentElement;l.classList.add("alert");const c=fe("breadbutter-alert");c.appendChild(function(e){let t=Le("div","form-title");return t.innerHTML=e,t}(a)),c.appendChild(function(e){let t=Le("div","form-message");return t.innerHTML=e,t}(o)),i?(c.appendChild(Kt(r,Yt,i)),s&&c.appendChild(Kt(s,"form-alert-confirm-2",i))):c.appendChild(Kt(r,Yt,zt)),l.appendChild(c)},Qt=function(e){let t=z(e.language,e.locale);t&&(Zt=t)},Jt=function(e,t){let n=!!t.button_theme&&t.button_theme;const i=!!t.pass&&t.pass,a=!!t.pin&&t.pin,o=!!t.register&&t.register,r=!!t.deidentify&&t.deidentify,s=!!t.suggested&&t.suggested,l=!!t.email_address&&t.email_address,c=!!t.collapsible&&t.collapsible,d=fe(jt);let u=!1,p=!1;if("icon"==n||"square-icons"==n||"round-icons"==n?("round-icons"==n&&d.classList.add("bb-round"),p="bb-icon",n="icon"):p="bb-tile",d.classList.add(p),e)if(e.length)for(let t=0;t<e.length;t++){let s=0==t&&e.length>1;"local"!=e[t].idp&&d.appendChild(tn(e[t],{button_theme:n,pass:i,register:o,deidentify:r,pin:a,email_address:l},s)),"icon"==n&&(t+1)%5==0&&d.appendChild(en())}else u="Need to enable at least 1 identity provider.";else u="Need to add "+window.location.origin+" to CORS whitelist.";return"local"!=s&&e.length>1&&"icon"!=n&&c&&(d.classList.add("bb-collapsed"),d.prepend(nn(an))),{container:d,error:u,theme_class:p}},en=function(){let e=document.createElement("div");return e.classList.add("bb-icon-line-break"),e},tn=function(e,{button_theme:t,pass:n,register:i,deidentify:a,pin:o,email_address:r}
1,s){let l=document.createElement("div");"enterprise"==e.type?"icon"==t?l.innerHTML=he(e):(l.innerHTML=ve(e,i,a),Ae(l,e)):l.innerHTML="icon"==t?Ee(e.idp):we(e.idp,e,i,a);var c=document.createAttribute("name");if(c.value=e.idp,l.setAttributeNode(c),e.id){l.classList.add("enterprise");var d=document.createAttribute("provider_id");d.value=e.id,l.setAttributeNode(d)}if("icon"!=t&&e.profile_image_url){let t=document.createElement("div");t.classList.add("bb-profile-image"),t.style["background-image"]=`url(${e.profile_image_url})`,l.querySelector("span").innerText.length<35&&l.appendChild(t)}return s&&"icon"!=t&&l.classList.add("first"),o&&(l.pin=o),r&&(l.email_address=r),n?"function"==typeof n&&(l.onclick=n):l.onclick=i?sn:rn,l},nn=function(e){let t=Le("div","more-block"),n=Le("div","more");return n.insertAdjacentHTML("beforeend",'<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="20px" height="20px" viewBox="0 0 20 20" style="enable-background:new 0 0 20 20;" xml:space="preserve">\n<path d="M9.16,14.88l-5.7-9.11C3.05,5.1,3.52,4.24,4.31,4.24H15.7c0.79,0,1.26,0.86,0.85,1.53l-5.7,9.11C10.46,15.51,9.55,15.51,9.16,14.88z"/>\n</svg>'),t.appendChild(n),e&&(n.onclick=e),t},an=function(e){let t=e.currentTarget.parentElement.parentElement.classList;t.contains("bb-collapsed")?t.remove("bb-collapsed"):t.add("bb-collapsed"),e.stopImmediatePropagation()},on=function(e,t,n){let i=n.parentElement.parentElement.parentElement,a=i.parentElement.querySelector(".breadbutter-buttons-holder");if(e){const n=function(){Vt.remove()};a&&(Vt.start(a,!0,!0),window.addEventListener("pageshow",n)),e(t,function(e){if(e&&e.authentication_token)t&&t.from_continue_with&&ke()&&localStorage.setItem("breadbutter-sdk-continue-with-sign-in",1),Bt.redirectAuthentication(e.authentication_token,!0),setTimeout(function(){Vt.remove()},7e3);else if(e&&e.error){Vt.remove();let t=Object.assign({MESSAGE:e.error.message},Zt.ERROR.API_ERROR);Xt(i,t)}})}},rn=function(e){let t=e.currentTarget.getAttribute("name"),n=e.currentTarget.getAttribute("provider_id"),i=e.currentTarget.email_address,a={};i&&(a.email_address=i),a=ye(e.currentTarget,a),ln[t]?ln[t](e.currentTarget,a):n?(a.id=n,on(Bt.login,a,e.currentTarget)):t&&(a.idp=t,on(Bt.login,a,e.currentTarget))},sn=function(e){let t=e.currentTarget.getAttribute("name");e.currentTarget.pin;let n=e.currentTarget.email_address,i=e.currentTarget.getAttribute("provider_id"),a={};n&&(a.email_address=n),a=ye(e.currentTarget,a),i?(a.id=i,on(Bt.register,a,e.currentTarget)):t&&(a.idp=t,on(Bt.register,a,e.currentTarget))};let ln={};var cn={addButtons:function(e,t,n){let{container:i,error:a}=Jt(t,n),o=fe("breadbutter-buttons-containers");o.appendChild(i);let r=fe("breadbutter-buttons-ui");r.appendChild(o),ge(e,n,r,a)},getButtonLists:Jt,getMoreButton:nn,getContinueWithEmailButton:function(){const e=fe(jt);return e.classList.add("bb-tile"),e.appendChild(tn({idp:"email"},{button_theme:"tiles",pass:!0,register:!1})),e},getContinueAnotherWayButton:function(){const e=fe(jt);return e.classList.add("bb-tile"),e.classList.add("bb-more-button"),e.appendChild(tn({idp:"more"},{button_theme:"tiles",pass:!0,register:!1},!0)),e},buttons:tn,assignFunc:function(e){ln={...e,...ln}},init:function(e){(function(e){Qt(e)}
1)(e),Te(e)}};const dn="breadbutter-ui-hover-text",un="breadbutter-ui-hover-arrow";let pn=!1;const mn=function(e,t){let n=!1;for(let i=0;i<e.children.length;i++)e.children[i].classList.contains(t)&&(n=e.children[i]);return n},fn=function(e){e||(e="breadbutter-ui-hover-holder");const t=document.createElement("div");return t.classList.add(e),t},_n=function(e,t){pn||function(){let e=fn(),t=fn(dn),n=fn(un);e.appendChild(t),e.appendChild(n),e.classList.add("hide"),document.body.append(e),pn=e}(),function(e){pn&&(mn(pn,dn).innerHTML=e)}(e),pn.classList.remove("hide"),function(e){if(pn){let t=pn.offsetWidth,n=pn.offsetHeight,{top:i,left:a}=function(e){let t=0,n=0;for(;e&&!isNaN(e.offsetLeft)&&!isNaN(e.offsetTop);)t+=e.offsetLeft-e.scrollLeft,n+=e.offsetTop-e.scrollTop,e=e.offsetParent;return{top:n,left:t}}(e),o=e.offsetWidth,r=e.offsetHeight,s=i+r/2,l=a+o/2,c=window.innerWidth,d=!1,u=0,p=0,m=0;l<c/4?u=-1:l>c/4*3&&(u=1),s<window.innerHeight/3&&(d=!0);let f=!1,_=!1;switch(u){case-1:p=a+o/2,_="left";break;case 0:p=a-(t-o)/2;break;case 1:p=a-(t-o)-o/2,_="right"}switch(d){case!0:m=i+r+20,f="top";break;case!1:m=i-n-20,f="bottom"}pn.style.top=m+"px",pn.style.left=p+"px";let g=mn(pn,un);g.classList.remove("left"),g.classList.remove("right"),g.classList.remove("top"),g.classList.remove("bottom"),f&&g.classList.add(f),_&&g.classList.add(_)}}(t)};var gn=function(e,t){e.addEventListener("mouseenter",function(n){_n(t,e)}),e.addEventListener("mouseleave",function(e){pn&&pn.classList.add("hide")})},Ln=e=>/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(e);const bn={APPLE:"apple",BASECAMP:"basecamp",DROPBOX:"dropbox",FACEBOOK:"facebook",FITBIT:"fitbit",GITHUB:"github",GOOGLE:"google",LINKEDIN:"linkedin",MICROSOFT:"microsoft",OKTA:"okta",ONELOGIN:"onelogin",PLANNINGCENTER:"planningcenter",QUICKBOOKS:"quickbooks",SLACK:"slack",TWITCH:"twitch",TWITTER:"twitter",KEYKCLOAK:"keycloak",SALESFORCE:"salesforce",LOCAL:"local",MAGIC_LINK:"magic_link"},hn={idp:bn.LOCAL,name:"Local"},vn={idp:bn.APPLE,name:"Apple"},En={idp:bn.BASECAMP,name:"Basecamp"},wn={idp:bn.DROPBOX,name:"Dropbox"},Tn={idp:bn.FACEBOOK,name:"Facebook"},yn={idp:bn.FITBIT,name:"Fitbit"},Cn={idp:bn.GITHUB,name:"Github"},In={idp:bn.GOOGLE,name:"Google"},Nn={idp:bn.LINKEDIN,name:"LinkedIn"},Sn={idp:bn.MICROSOFT,name:"Microsoft"},On={idp:bn.OKTA,name:"Okta"},An={idp:bn.ONELOGIN,name:"onelogin"},kn={idp:bn.PLANNINGCENTER,name:"planning center"},Rn={idp:bn.QUICKBOOKS,name:"QuickBooks"},Mn={idp:bn.SLACK,name:"Slack"},Pn={idp:bn.TWITCH,name:"Twitch"},xn={idp:bn.TWITTER,name:"X"},Un={idp:bn.KEYCLOAK,name:"Keycloak"},Dn={idp:bn.SALESFORCE,name:"SalesForce"},Bn={idp:bn.MAGIC_LINK,name:"Magic Link",type:"social"},Gn={apple:vn,basecamp:En,dropbox:wn,facebook:Tn,fitbit:yn,github:Cn,google:In,linkedin:Nn,microsoft:Sn,okta:On,onelogin:An,planningcenter:kn,quickbooks:Rn,slack:Mn,twitch:Pn,twitter:xn,keycloak:Un,salesforce:Dn,local:hn,magic_link:Bn},Hn={APPLE:vn,BASECAMP:En,DROPBOX:wn,FACEBOOK:Tn,FITBIT:yn,GITHUB:Cn,GOOGLE:In,LINKEDIN:Nn,MICROSOFT:Sn,OKTA:On,ONELOGIN:An,PLANNINGCENTER:kn,QUICKBOOKS:Rn,SLACK:Mn,TWITCH:Pn,TWITTER:xn,KEYCLOAK:Un,SALESFORCE:Dn,LOCAL:hn,MAGIC_LINK:Bn},Wn=[];for(let e in bn)Wn.push(bn[e]);var Fn={html_attributes:{control:{VERIFIED:"verified",NOT_VERIFIED:"!verified",FORM:"form",SUBMIT:"submit",NAME:"name",FIRST_NAME:"first_name",LAST_NAME:"last_name",EMAIL:"email"},VISIBLE_CONTROL:"bb-visible-control",CONTINUE_WITH_SHOW:"bb-continue-widget-show",PAGE_CONTROL:"bb-page-control",PAGE_REDIRECT:"bb-page-redirect",FORM_CONTROL:"bb-form-control",FORM_EVENT:"bb-form-event-submission",PROFILE_WIDGET:"bb-profile-widget",HIDDEN_DIV:"bb-hidden-div"},encoded_hash:{reset_password:"resetpassword",confirm_email:"confirmemail",invitation:"invitation",deidentification:"deidentification"},encoded_action:{TARGET:"action_code",TYPE:"m",APP_ID:"a",PIN:"p",EMAIL:"e"},gateway_hash:{reset_password:"resetpassword",confirm_email:"confirmemail",invitation:"invitation",deidentification:"deidentification"},gateway_emails:{TYPE:"action",EMAIL:"email",APP_ID:"app_id",PIN:"pin"},providers:bn,providers_buttons:Hn,providers_hash:Gn,providers_list:Wn,event_type:{CUSTOM:"custom",PAGE_VIEW:"page_view"},mode:{RESET_PASSWORD:"resetpassword",CONFIRM_EMAIL:"confirmemail",INVITATION:"invitation",MAGIC_LINK:"magiclink",DEIDENTIFICATION:"deidentification",NULL_EMAIL_ERROR:"null_email_error"},magic_link_code:"magic_link_code",errors:{ERROR:"error",NULL_EMAIL:"null_email_error",CODE:{CORS_ISSUE:0}}};const qn="breadbutter-forms",$n="breadbutter-email",Vn="breadbutter-login",Yn="breadbutter-buttons",Kn="breadbutter-buttons-holder",zn="breadbutter-register",jn="breadbutter-register-holder",Zn="breadbutter-forgot",Xn="breadbutter-confirm-form",Qn="breadbutter-forgot-form",Jn="breadbutter-forgot-buttons",ei="breadbutter-switch-login",ti="breadbutter-password-validation",ni="breadbutter-expire",ii="breadbutter-expire-form",ai="breadbutter-expire-buttons",oi="breadbutter-incognito",ri="breadbutter-incognito-holder",si="breadbutter-email-holder",li="breadbutter-deidentify-form",ci="breadbutter-deidentify",di="breadbutter-discovery-holder",ui="breadbutter-contactus-form",pi="breadbutter-contactus",mi="breadbutter-contact-form",fi="breadbutter-term-policy-holder",_i="breadbutter-module-magic-link",gi="breadbutter-magic-link-button",Li="breadbutter-magic-link-mask",bi="breadbutter-magic-link-mask-text",hi="breadbutter-magic-link-mask-arrow",vi="breadbutter-magic-link-view",Ei="breadbutter-buttons-blur-holder",wi="continue-email-address",Ti="bb-blur",yi="breadbutter-module-email-discovery",Ci="breadbutter-module-email-name-discovery",Ii="breadbutter-module-header-discovery",Ni="breadbutter-module-poweredby",Si="breadbutter-module-password",Oi="breadbutter-module-form-input",Ai="breadbutter-module-more-information",ki="magic_link",Ri="email_only",Mi="local_login",Pi="magic_link",xi="none",Ui="form-email",Di="form-forgot-reset",Bi="form-password",Gi="form-re-password",Hi="form-reset-password",Wi="form-title",Fi="form-confirm-email",qi="form-subtitle",$i="form-message",Vi="form-options",Yi="form-first-name",Ki="form-last-name",zi="form-phone-number",ji="form-company-name",Zi="form-register",Xi="form-register-button-holder",Qi="form-token",Ji="form-token-pin",ea="form-cancel",ta="form-alert-confirm",na="form-switch-magic-link",ia="form-pin",aa="form-error-message",oa="form-expand-icon",ra="form-deidentify-me",sa="form-submit",la="login-provider",ca="suggested-list",da="filling-form",ua="confirmation-form",pa={MINIMUM:"breadbutter-sdk-password-length",LOWER:"breadbutter-sdk-password-lowercase",UPPER:"breadbutter-sdk-password-uppercase",SYMBOL:"breadbutter-sdk-password-symbol",NUMBER:"breadbutter-sdk-password-number"},ma="breadbutter-sdk-email-address",fa="breadbutter-sdk-first-name",_a="breadbutter-sdk-invite-required",La={MINIMUM:"MINIMUM",LOWER:"LOWER",UPPER:"UPPER",SYMBOL:"SYMBOL",NUMBER:"NUMBER",NO_EMAIL:"NO_EMAIL",MATCH:"MATCH"},ba=[La.MINIMUM,La.LOWER,La.UPPER,La.SYMBOL,La.NUMBER],ha="anonymous",va="identified",Ea="verified",wa="email-form",Ta="local-login-form",ya="deidentify-form",Ca="forgot-form",Ia=Fn.providers,Na=Fn.providers_hash,Sa=Fn.providers_list,Oa=Fn.errors,Aa=function(){let e={},t=!1,n=!1,i={},a=!1,o=!1,r=!1,s=!1,c=!1,d=!1,u=!1,p=!1,m=!1,f=!1,_=!1,g=!1,L=!1,b=!1,h=!1,v=!1;const E=function(){let e=_;return e&&e.user_profile&&e.user_profile.state==Ea},w=t=>{let n=e.ERROR.VALID_EMAIL;k(t,n.MESSAGE),K()},T=e=>{let t=!1,n=!1;return e&&e.providers&&0==e.providers.length&&(n=!0),!n&&!h||d||u||(t=!0),t},y=e=>{let t=!1;return T(e)&&e&&e.user_profile&&(e.user_profile.state==va||e.user_profile.state==Ea)&&(t=!0),t};let C=!1;const I=function(e,t){for(;(e=e.parentElement)&&!e.classList.contains(t););return e},N=function(e,t){let n=!1;for(let i=0;e.children&&i<e.children.length&&!1===n;i++)e.children[i].classList.contains(t)&&(n=e.children[i]);return n||(n=S(e,t)),n},S=function(e,t){return e.querySelector("."+t)},O=function(e,t){let n=N(e,t);n&&e.removeChild(n)},A=function(e){if(e){let t=!1;for(f&&(t=N(e,pi));e.firstChild;)e.removeChild(e.lastChild);t&&setTimeout(()=>{e.appendChild(t)},50)}},k=function(e,t,n){R(e);let i=-1!=t.indexOf("Nice try");e.classList.contains("error")||e.classList.add("error");let a=$e(t);i&&a.classList.add("bb-nice-try"),(e.classList.contains(Bi)||e.classList.contains(Gi))&&(e=e.nextSibling),e.closest(".bb-email-holding-button")?e.closest(".bb-email-holding-button").appendChild(a):function(e,t,n){t.nextSibling&&!n?t.parentNode.insertBefore(e,t.nextSibling):t.parentNode.appendChild(e)}(a,e,n)},R=function(e){if(e.closest(".bb-email-holding-button")){let t=e.closest(".bb-email-holding-button").querySelector("."+aa);t&&t.remove()}else e&&e.nextSibling&&(e.nextSibling.classList.contains(aa)?e.parentNode.removeChild(e.nextSibling):e.nextSibling.nextSibling&&e.nextSibling.nextSibling.classList.contains(aa)&&e.parentNode.removeChild(e.nextSibling.nextSibling));e.classList.remove("error")},M=function(e,t,n,i){let a=j(n,t.TITLE),o=j(n,t.MESSAGE),r=j(n,t.CONFIRM),s=!1;t.CONFIRM_2&&(s=j(n,t.CONFIRM_2));let l=e.parentElement;l.classList.add("alert");const c=fe("breadbutter-alert");n&&n.cls&&c.classList.add(n.cls),c.appendChild(qe(a)),c.appendChild(Ke(o)),i?(c.appendChild(ut(r,ta,i)),s&&c.appendChild(ut(s,"form-alert-confirm-2",i))):c.appendChild(ut(r,ta,$a)),l.appendChild(c)},P=function(e,t,n){let i=ye(e,t);Bt.startMagicLink(i,n)};let x=!1,U=!1,D=!1,B=!1,G=!1;const H=function(e){Z(e),void 0!==e.button_theme&&(i.button_theme=e.button_theme),void 0!==e.expand_email_address&&(i.expand_email_address=e.expand_email_address),C&&(i.expand_email_address=!0),void 0!==e.include_name&&(i.include_name=e.include_name),void 0!==e.require_name&&(i.require_name=e.require_name),void 0!==e.email_option_overwrite&&(i.email_option_overwrite=e.email_option_overwrite),void 0!==e.allowed_sso_providers&&Array.isArray(e.allowed_sso_providers)&&(i.allowed_sso_providers=e.allowed_sso_providers),B=e.onMagicLinkConfirm,x=e.onProvider,U=e.onFormEntry,D=e.onFormChange,G=e.from_continue_with,b=e.ignore_email_identification},W=function(){G&&ke()&&localStorage.setItem("breadbutter-sdk-continue-with-sign-in",1)},F=function(e){"function"==typeof U&&U(e),"function"==typeof D&&D(e)},q=function(e,t){"function"==typeof D&&D(e,t)},$=function(e,t){return e||t&&t.user_profile&&t.user_profile.state==Ea&&(e=t.user_profile.email_address),e},V=function(e){let t=e;if(localStorage&&!e)try{t=localStorage.getItem(ma)}catch(e){t=!1}return t},Y=function(e){localStorage&&e&&localStorage.setItem(ma,e)},K=function(){ke()&&localStorage.removeItem(ma)},Z=function(t){let n=z(t.language,t.locale);n&&(e=n)},X=function(e){Q(!1,function(t){if(t){if(t.settings&&"function"==typeof x){let e=t.settings.invite_required,n=t.settings.discovery_required;x(!e&&!n&&he(t))}e(t)}})},Q=function(e,t){Bt.getClientSettings(e,function(e){if(e){if(e.error)e.error&&e.error.message&&-1!=e.error.message.indexOf("Nice try")&&K();else{if(i.allowed_sso_providers&&Array.isArray(i.allowed_sso_providers)){if(e.providers){let t=[];for(let n=0;n<e.providers.length;n++){let a=e.providers[n];-1!=i.allowed_sso_providers.indexOf(a.idp)&&"social"==a.type&&t.push(a)}e.providers=t}e.suggested_provider&&-1==i.allowed_sso_providers.indexOf(e.suggested_provider.idp)&&delete e.suggested_provider}!function(e){p=!1,e&&(e.device_verified,e.user_profile&&(p=e.user_profile))}(e),function(e){r=!1,o=!1,e.settings&&(e.settings.privacy_policy_url&&(o=e.settings.privacy_policy_url),e.settings.terms_and_conditions_url&&(r=e.settings.terms_and_conditions_url))}(e),function(e){d=!1,e.settings&&e.settings.password_settings&&e.settings.password_settings.enabled&&(d=!0)}(e),function(e){s=!1,c=!1,u=!1,e.settings&&e.settings.magic_link_settings&&(e.settings.magic_link_settings.enabled&&(s=!0),e.settings.magic_link_settings.registration_enabled&&(c=!0)),u=s||c}(e),function(e){h=!1,e.settings&&e.settings.email_identification_settings&&e.settings.email_identification_settings.enabled&&(h=!0)}(e),function(e){let t=e.settings&&e.settings.invite_required;ke()&&localStorage.setItem(_a,t)}(e),ue(e),function(e){if(v=!1,e.settings&&void 0!==e.settings.email_option_default&&(v=e.settings.email_option_default),i.email_option_overwrite&&(v=i.email_option_overwrite),v==xi);else if(!u||d||h)if(!d||u||h)if(!h||u||d)switch(v){case Ri:h||(v=!1);break;case Mi:d||(v=!1);break;case Pi:u||(v=!1)}else v=Ri;else v=Mi;else v=Pi}(e),function(){switch(v){case Ri:d=!1,u=!1,s=!1;break;case Mi:u=!1,s=!1,h=!1;break;case Pi:d=!1,h=!1;break;case xi:d=!1,u=!1,s=!1,h=!1}}(),_=e,L=T(e),g=i.include_name&&L}t(e)}})},J=function(e,t){document.activeElement.blur(),Q(e,function(e){if(e.settings&&"function"==typeof x){let t=e.settings.invite_required,n=e.settings.discovery_required;x(!t&&!n&&he(e))}t(e)})};let ee=!1;const te=function(e){const t=!!e.button_theme&&e.button_theme;e.email_address&&e.email_address,e.pin&&e.pin;const n=!!e.popup&&e.popup;ee=n;const i=fe(qn);return i.button_theme=t,i.popup=n,i},ne=function(e){let t=e.target?e.target:e;
1if(!t.classList.contains(_i)&&(t=I(t,_i),!t))return!1;ie(t)},ie=function(t,n){a=!1;let i=t.parentElement,o=i.querySelector("."+Ui),r=o.email?o.email:o.value;if(R(o),R(t),!Ln(r))return w(o),void Xt(i);let u={email_address:r};u=ye(i,u);const p=function(e){P(i,e,async function(e){Vt.remove(),e&&e.authentication_token?Ee(i.closest("."+qn),r,e.authentication_token,!1,!0):(console.error("Something is wrong"),console.error(e.error),e&&e.error&&e.error.message&&k(t,e.error.message))})};if(n){let a,o;if(n){let t=i.querySelector("input."+Yi),n=i.querySelector("input."+Ki);if(!t&&d)return ro(i),k(i.querySelector("input."+Yi),e.ERROR.EMPTY_FIRST_NAME.MESSAGE),void k(i.querySelector("input."+Ki),e.ERROR.EMPTY_LAST_NAME.MESSAGE);if(a=t.value,o=n.value,!a||!o)return a||k(i.querySelector("input."+Yi),e.ERROR.EMPTY_FIRST_NAME.MESSAGE),void(o||k(i.querySelector("input."+Ki),e.ERROR.EMPTY_LAST_NAME.MESSAGE))}n&&(u={...u,first_name:a,last_name:o}),Vt.start(t,!1,!0,!1),p(u)}else Vt.start(t,!1,!0,!1),Q(r,function(t){if(t&&t.error)Vt.remove(),K(),k(o,t.error.message);else{let n=t.user_profile,a=t.settings;switch(n.state){case ha:case va:if(Vt.remove(),a&&a.invite_required&&(n.state==ha||n.state==va)&&!n.invited)return void M(i,e.ERROR.ACCOUNT_NOT_FOUND);Y(r),he(t)||d||s&&c?eo(i.parentElement,t):(i.querySelector("."+Ui),Q(r,e=>{e&&e.error?(K(),k(o,e.error.message)):(l(),location.reload())}));break;default:p(u)}}})},ae=function(t,n,i){const a=!!i.email_address&&i.email_address;i.hasProvidersAndLocal=!1;let o=te(i),r=oe(n,a,i);o.appendChild(r),ge(t,i,o);const s=()=>{let e=n.providers&&n.providers.length;(d||e||!u)&&a&&(Vt.start(o,!0),re(a,r).then(()=>{Vt.remove()}))};i.mode==Oa.NULL_EMAIL?M(r,e.ERROR.NULL_EMAIL_ERROR,{cls:"breadbutter-error"},e=>{$a(e),O(o,Ni),s()}):s()},oe=function(e,t,n){let i,a=e.settings.invite_required,o=e.settings.discovery_required;return i=a||o||!he(e)?en(e,t,n):rn(e,t,n),i},re=function(n,i,o){return new Promise((r,l)=>{let c=function(){Vt.remove(),r()};a=!0,J(n,function(r){a=!1;let l=r.settings,u=r.user_profile,p=i.parentElement;if(!r||r.error){if(r.error)if("reset_required"===r.error.code)un(i,n);else{let t=r.error.message;if(e.RES_MAPPING[r.error.code]&&(t=e.RES_MAPPING[r.error.code]),r.error.validation_errors&&r.error.validation_errors.length)for(let e=0;e<r.error.validation_errors.length;e++)"email"==r.error.validation_errors[e].code&&K();o?k(o,t):M(i,Object.assign({MESSAGE:t},e.ERROR.INLINE))}else M(i,e.ERROR.NO_PROVIDERS);return void c()}if(l&&l.invite_required&&(u.state==ha||u.state==va)&&!u.invited)return c(),void M(i,e.ERROR.ACCOUNT_NOT_FOUND);u&&u.reset_required&&(t=n),n?Y(n):K(),ue(r),pe(r);let{suggested:m}=fo(r,!0);c(),r.providers&&r.providers.length||d||!s?u&&u.reset_required?un(i,n):u&&u.pending_pin_confirmation&&!m?me(p):u.state==ha||u.state==va?eo(i,r):po(i,r):Re(i)})})};let se=!1,le=!1;const ce=function(e){e.addEventListener("focus",function(e){"function"==typeof se&&se(!0)}),e.addEventListener("blur",function(e){"function"==typeof se&&se(!1)})};let de=!1;const ue=function(e){if(e&&e.settings&&e.settings.password_settings){let t=e.settings.password_settings;ke()&&(t.min_length?localStorage.setItem(pa.MINIMUM,t.min_length):localStorage.removeItem(pa.MINIMUM),t.min_lowercase_chars?localStorage.setItem(pa.LOWER,t.min_lowercase_chars):localStorage.removeItem(pa.LOWER),t.min_uppercase_chars?localStorage.setItem(pa.UPPER,t.min_uppercase_chars):localStorage.removeItem(pa.UPPER),t.min_numeric_chars?localStorage.setItem(pa.NUMBER,t.min_numeric_chars):localStorage.removeItem(pa.NUMBER),t.min_symbol_chars?localStorage.setItem(pa.SYMBOL,t.min_symbol_chars):localStorage.removeItem(pa.SYMBOL))}},pe=function(e){if(e&&e.settings&&e.user_profile&&e.user_profile.first_name)ke()&&localStorage.setItem(fa,e.user_profile.first_name);else if(e&&e.settings&&e.user_profile&&e.user_profile.email_address){let t=e.user_profile.email_address.split("@")[0];ke()&&localStorage.setItem(fa,t)}else ke()&&localStorage.removeItem(fa)},me=function(e){_o(e,!1);const t=V();A(e);let n=zt(t);e.appendChild(n)},he=function(e){let t=0;return t+=e.providers.length,t>0},ve=function(e){X(t=>{_o(e,!0);let n=t.settings.invite_required,i=t.settings.discovery_required;const a=V();let o=e.parentElement;if(Vt.remove(),A(o),n||i||!he(t)){let e=en(t,a,!1,o);o.appendChild(e),a&&Xa(e)}
1else{let e=rn(t,a,!1,o);o.appendChild(e),a&&Xa(e)}})},Ee=function(e,t,n,i,a){_o(e,!0),A(e);let o=vt(t,n,i,a);e.appendChild(o)},we=function(t,n,i,o,r){a=!1,O(t,ei),O(t,"breadbutter-module-spacer");let s=fe(ei);if(r||Te(t,i,o),s.appendChild(_t(Va)),n)s.appendChild(pt(ga));else if(function(){let e;return ke()&&(e=localStorage.getItem(_a),"false"==e&&(e=!1)),e}()){let t=ft();gn(t,e.HOVER.NEW_USER),s.appendChild(t)}t.appendChild(s),Se(t),He(t),rt(t)},Te=function(e,t,n){m&&c?n&&!d||Me(e,!1,t):t&&!c||n&&!d||Me(e,!1,t)},Se=function(t,n,i){O(t,Ai);let a=fe(Ai),o=ut(e.BUTTON.MORE_INFO,"form-more-information");gn(o,e.HOVER.MORE_INFO),a.appendChild(o),t.appendChild(a)},Oe=function(){return cn.getContinueAnotherWayButton()},Ae=function(){let e=Le("div","breadbutter-magic-link-wand");return e.innerHTML='\n<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="24.164" height="24.4" viewBox="0 0 24.164 24.4">\n <defs>\n <radialGradient id="radial-gradient" cx="0.5" cy="0.5" r="0.5" gradientUnits="objectBoundingBox">\n <stop offset="0" stop-color="#fdd03a"/>\n <stop offset="0.648" stop-color="#d98b7a"/>\n <stop offset="1" stop-color="#9203fa"/>\n </radialGradient>\n </defs>\n <g id="Group_15318" data-name="Group 15318" transform="translate(479.338 -2635.516)">\n <g id="Group_14825" data-name="Group 14825" transform="translate(-503.977 2630.618)">\n <g id="Group_13895" data-name="Group 13895" transform="translate(30.624 4.898)">\n <path id="Path_13311" data-name="Path 13311" d="M57.655,7.512a.686.686,0,0,0-.97,0l-2.91,2.91a.686.686,0,0,0,.97.97l2.91-2.91a.686.686,0,0,0,0-.97ZM51.934,5.1a.686.686,0,0,0-1.167.485L50.76,9.695a.69.69,0,0,0,1.379,0L52.132,5.58a.68.68,0,0,0-.2-.485Zm8.138,8.138a.68.68,0,0,0-.485-.2l-4.115-.008a.689.689,0,1,0,0,1.379l4.115-.008a.686.686,0,0,0,.485-1.167ZM46.016,7.028a.686.686,0,0,0-.97.97l2.91,2.91a.686.686,0,1,0,.97-.97Zm9.214,9.214a.686.686,0,0,0-.97.97l2.91,2.91a.686.686,0,0,0,.97-.97ZM47.365,12.6a.669.669,0,0,0-.477-.2l-4.115.008a.682.682,0,0,0,0,1.364l4.115.008a.681.681,0,0,0,.477-1.175Zm5.2,5.2a.681.681,0,0,0-1.175.477l.008,4.114a.682.682,0,0,0,1.364,0l.008-4.115a.669.669,0,0,0-.2-.477Z" transform="translate(-42.091 -4.898)" fill="url(#radial-gradient)"/>\n </g>\n <g id="Group_13896" data-name="Group 13896" transform="translate(24.639 11.687)">\n <path id="Path_13312" data-name="Path 13312" d="M39.884,24.885a.712.712,0,0,0-.97,0L24.829,39.205a.713.713,0,0,0,0,.97l1.94,1.94a.713.713,0,0,0,.97,0l14.084-14.32a.712.712,0,0,0,0-.97ZM39.4,26.34l.97.97-3.88,3.88-.97-.97Z" transform="translate(-24.639 -24.694)"/>\n </g>\n </g>\n </g>\n</svg>\n',e},Re=function(e){let t=e.parentElement.querySelector("."+_i);Ge(t)},Me=function(t,n,i,a){let o=t.classList.contains(Vn);if(O(t,_i),s){let a=fe(_i),r=We(e.MAGIC_LINK.SEND_BUTTON_TEXT,gi),s=Ae();r.appendChild(s),a.appendChild(r),t.appendChild(a),t.classList.add("bb-magic-link"),a.onclick=n?()=>{Xt(t)}:o||i||c?i?m?De:Be:m?ne:Ge:()=>{Xt(t)};let l=fe(Li),d=fe(bi);d.innerText=e.MAGIC_LINK.FOCUS_MASK_TEXT;let u=fe(hi);l.appendChild(d),l.appendChild(u),a.appendChild(l)}},Pe=function(e){let t=e.target?e.target:e;if(!t.classList.contains(_i)&&(t=I(t,_i),!t))return!1;Rt(t.parentElement)},xe=function(t,n){let i=n.email_address,a=t.closest("."+Kn),o=a.closest("."+Vn)||a.closest("."+$n)||a.closest("."+oi);Vt.start(o,!1,!0,!1),P(o,n,async function(t){Vt.remove(),t&&t.authentication_token?Ee(o.closest("."+qn),i,t.authentication_token):(await Vt.failure(),console.error("Something is wrong"),console.error(t.error),t&&t.error&&t.error.message&&(-1!=t.error.message.indexOf("magic_link_registration_enabled")?k(a,e.ERROR.MAGIC_LINK_REGISTRATION_DISABLED.MESSAGE):k(a,t.error.message)))})},Ue=function(t,n){a=!1;let i,o,r=t.parentElement.parentElement,u=r.querySelector("."+Ui),p=u.email?u.email:u.value;if(!Ln(p))return void Xt(r);if(n){let t=r.querySelector("input."+Yi),n=r.querySelector("input."+Ki);if(!t&&d)return ro(r),k(r.querySelector("input."+Yi),e.ERROR.EMPTY_FIRST_NAME.MESSAGE),void k(r.querySelector("input."+Ki),e.ERROR.EMPTY_LAST_NAME.MESSAGE);if(i=t.value,o=n.value,!i||!o)return i||k(r.querySelector("input."+Yi),e.ERROR.EMPTY_FIRST_NAME.MESSAGE),void(o||k(r.querySelector("input."+Ki),e.ERROR.EMPTY_LAST_NAME.MESSAGE))}R(u),R(t);const m=function(n){P(t,n,async function(n){Vt.remove(),n&&n.authentication_token?Ee(r.closest("."+qn),p,n.authentication_token):(await Vt.failure(),console.error("Something is wrong"),console.error(n.error),n&&n.error&&n.error.message&&(-1!=n.error.message.indexOf("magic_link_registration_enabled")?k(t,e.ERROR.MAGIC_LINK_REGISTRATION_DISABLED.MESSAGE):k(t,n.error.message)))})};let f={email_address:p};f=ye(r,f),Y(p),Vt.start(t,!1,!0,!1),n?(f={...f,first_name:i,last_name:o},m(f)):Q(p,function(n){if(n&&n.error)Vt.remove(),K(),k(t,n.error.message);else{let t=n.user_profile,i=n.settings;switch(t.state){case ha:case va:if(Vt.remove(),i&&i.invite_required&&(t.state==ha||t.state==va)&&!t.invited)return void M(r,e.ERROR.ACCOUNT_NOT_FOUND);if(he(n)||d||s&&c){let e=r.closest("."+oi)||r.closest("."+$n);
1eo(e||r,n)}else r.querySelector("."+Ui),Q(p,()=>{l(),location.reload()});break;default:m(f)}}})},De=function(e){let t=e.target?e.target:e;if(!t.classList.contains(_i)&&(t=I(t,_i),!t))return!1;ie(t,!0)},Be=function(e){let t=e.target?e.target:e;if(!t.classList.contains(_i)&&(t=I(t,_i),!t))return!1;Ue(t,!0)},Ge=function(e){let t=e.target?e.target:e;if(!t.classList.contains(_i)&&(t=I(t,_i),!t))return!1;Ue(t)},He=function(t){if(O(t,fi),r||o){let i;r&&o?i=j({APP_NAME:n,TOC_LINK:r,PRIVACY_LINK:o},n?e.TOC_PRIVACY.CONTENT_ALL:e.TOC_PRIVACY.NAMELESS_CONTENT_ALL):r?i=j({APP_NAME:n,TOC_LINK:r},n?e.TOC_PRIVACY.CONTENT_TOC:e.TOC_PRIVACY.NAMELESS_CONTENT_TOC):o&&(i=j({APP_NAME:n,PRIVACY_LINK:o},n?e.TOC_PRIVACY.CONTENT_PRIVACY:e.TOC_PRIVACY.NAMELESS_CONTENT_PRIVACY));let a=fe(fi),s=We(i,"breadbutter-term-policy");a.appendChild(s),t.appendChild(a),t.classList.add("bb-toc-term")}},We=function(e,t){let n=Le("div",t=t||"");return n.innerHTML=e,n},Fe=function(e,t){let n=Le("span",t=t||"");return n.innerHTML=e,n},qe=function(e){let t=Le("div",Wi);return t.innerHTML=e,t},$e=function(e){let t=Le("div",aa);return t.innerHTML=e,t},Ve=function(e){let t=Le("div","form-sub-message");return t.innerHTML=e,t},Ye=function(e,t){let n=Le("div","form-hint");return t&&(n.validation=t),n.innerHTML=e,n},Ke=function(e){let t=Le("div",$i);return t.innerHTML=e,t},ze=function(e){let t=e.custom_key,n=e.display_name,i=e.mandatory,a=fe(Oi);a.setAttribute("name",t);let o=Le("input",t);return o.placeholder=n,o.setAttribute("name",t),o.setAttribute("id",t),o.setAttribute("type","text"),i&&o.setAttribute("mandatory",1),o.addEventListener("keyup",je),o.addEventListener("blur",je),ce(o),a.appendChild(o),a},je=function(t){let n=t.target;n.getAttribute("mandatory")?n.value?R(n):k(n,e.CUSTOM_DATA.MANDATORY,1):R(n)},Ze=function(e){let t=e.custom_key,n=e.default_value,i=e.display_name,a=e.mandatory,o=fe(Oi);o.setAttribute("name",t),o.classList.add("bb-checkbox");let r=Le("input",t);r.setAttribute("name",t),r.setAttribute("id",t),a&&r.setAttribute("mandatory",1),r.setAttribute("type","checkbox"),n&&(r.checked=!0),r.addEventListener("click",Xe),ce(r),o.appendChild(r);let s=function(e,t){let n=Le("label",t=t||"");return n.innerHTML=e,n}(i);return s.setAttribute("for",t),o.appendChild(s),o},Xe=function(t){let n=t.target;n.getAttribute("mandatory")?n.checked?R(n):k(n,e.CUSTOM_DATA.MANDATORY,1):R(n)},Qe=function(t,n){let i=fe(Oi);i.classList.add(Yi);let a=Le("input",Yi);return a.placeholder=e.PLACEHOLDER.FIRST_NAME,a.addEventListener("keyup",function(e){e.stopPropagation(),Fa(e)}),ce(a),i.appendChild(a),Aa(a),i},Je=function(t,n){let i=fe(Oi);i.classList.add(Ki);let a=Le("input",Ki);return a.placeholder=e.PLACEHOLDER.LAST_NAME,a.addEventListener("keyup",function(e){e.stopPropagation(),qa(e,t)}),ce(a),i.appendChild(a),i},et=function(t,n,i,a,o){let r=Le("input",Ui);if(r.type="email",r.placeholder=e.PLACEHOLDER.EMAIL_ADDRESS,t&&(r.value=t),n&&function(e){e.blur(),e.addEventListener("focus",function(e){this.blur()}),e.type="text",e.classList.add("form-disabled-email"),e.classList.remove("font11"),e.classList.remove("font12"),e.classList.remove("font13"),e.classList.remove("font14"),e.classList.remove("font15"),e.classList.remove("font16");let t=e.value;e.email=t,t.length>42?(e.classList.add("font11"),t.length>46&&(e.value=t.slice(0,21)+"â¦â¦â¦"+t.slice(-21))):t.length>39?e.classList.add("font12"):t.length>36?e.classList.add("font13"):t.length>33?e.classList.add("font14"):t.length>30?e.classList.add("font15"):e.classList.add("font16")}(r),i&&r.addEventListener("keyup",function(e){e.stopPropagation(),i(e)}),a&&r.addEventListener("keydown",function(e){e.stopPropagation(),a(e)}),r.addEventListener("focus",function(e){e.stopPropagation(),this.classList.add("focus")}),r.addEventListener("blur",function(e){e.stopPropagation(),this.classList.remove("focus")}),ce(r),C){function s(){0!=r.offsetWidth&&0!=r.offsetHeight&&setTimeout(()=>{document.activeElement!==r&&(r.focus(),r.blur())},10)}s(),new ResizeObserver(s).observe(r)}return o&&Aa(r),r};let tt=!1;const nt=function(e,t,n){let i=Le("input",ia);return i.type="number",i.pattern="[0-9]*",i.inputmode="numberic",i.setAttribute("maxlength",1),t&&(i.value=t),e&&i.classList.add(e),i.addEventListener("touchend",e=>{C&&!f&&(tt&&(document.scrollingElement.scrollTop=tt),e.target.focu
1s())}),i.addEventListener("focus",e=>{C&&!f&&(!tt||document.scrollingElement.scrollTop<document.scrollingElement.scrollHeight-document.scrollingElement.clientHeight)&&(document.scrollingElement.scrollTop=document.scrollingElement.scrollHeight-document.scrollingElement.clientHeight+232,setTimeout(()=>{tt=document.scrollingElement.scrollTop},10))}),i.addEventListener("blur",e=>{}),ce(i),i.addEventListener("keyup",e=>{e.stopPropagation(),mn(e,n)}),i.addEventListener("paste",e=>{e.stopPropagation(),pn(e,n)}),i},it=function(e,t,n,i){let a,o=Le("div",Ji);t&&(t+="");for(let i=0;i<e;i++){let e=ia+"-"+i,r=!!t&&t[i],s=nt(e,r,n);0==i&&(a=s),o.appendChild(s)}return!t&&a&&Aa(a),o},at=function(t,n){let i=Le("input",Qi);return i.type="hidden",t?i.value=t:i.placeholder=e.PLACEHOLDER.PIN,ce(i),i},ot=function(e,t){let n=fe(Si);return n.appendChild(function(e,t){let n=Le("input",Bi);return n.type="password",t&&(n.placeholder=t),e&&n.addEventListener("keyup",function(t){t.stopPropagation(),e(t)}),ce(n),n}(e,t)),n.appendChild(function(){let e=Le("i","form-password-toggle");return e.innerHTML='\n<svg class="visible" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><path class="cls-1" d="M16,22.9H15c-7.7-.3-13.2-5.9-13.4-6.2a.9.9,0,0,1,0-1.3C1.9,15.1,8,9.2,16,9.2s13.8,6,14.1,6.2a1,1,0,0,1,0,1.3c-.3.2-5.5,5.3-12.6,6A3.9,3.9,0,0,1,16,22.9Zm0-11.8a4.9,4.9,0,0,0-.9,9.8h2.2A5.1,5.1,0,0,0,21,16.1,5,5,0,0,0,16,11.1ZM3.7,16a20,20,0,0,0,6.7,4,6.7,6.7,0,0,1-1.2-3.9,7,7,0,0,1,1.2-4A25,25,0,0,0,3.7,16Zm18-3.8a6.7,6.7,0,0,1,.1,7.5A22.6,22.6,0,0,0,28,16,23.3,23.3,0,0,0,21.7,12.2Z"/></svg>\n<svg class="sight" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><path class="cls-1" d="M16,22.9H15c-7.7-.3-13.2-5.9-13.4-6.2a.9.9,0,0,1,0-1.3C1.9,15.1,8,9.2,16,9.2s13.8,6,14.1,6.2a1,1,0,0,1,0,1.3c-.3.2-5.5,5.3-12.6,6A3.9,3.9,0,0,1,16,22.9Zm0-11.8a4.9,4.9,0,0,0-.9,9.8h2.2A5.1,5.1,0,0,0,21,16.1,5,5,0,0,0,16,11.1ZM3.7,16a20,20,0,0,0,6.7,4,6.7,6.7,0,0,1-1.2-3.9,7,7,0,0,1,1.2-4A25,25,0,0,0,3.7,16Zm18-3.8a6.7,6.7,0,0,1,.1,7.5A22.6,22.6,0,0,0,28,16,23.3,23.3,0,0,0,21.7,12.2Z"/><path class="cls-1" d="M9,26l-.6-.2a1.1,1.1,0,0,1-.2-1.4L21.6,6.8A1,1,0,0,1,23,6.7a.9.9,0,0,1,.2,1.4L9.8,25.6A1.2,1.2,0,0,1,9,26Z"/></svg>\n',e.onclick=kn,e}()),n},rt=function(e){O(e,Ni),e.appendChild(function(){let e=fe(Ni);return e.innerHTML=Ne(),e}())},st=function(e,t){let n=fe(Ii);return e&&n.appendChild(qe(e)),t&&n.appendChild(function(e){let t=Le("div",qi);return t.innerHTML=e,t}(t)),n},lt=function(){let t=fe(Ci);return t.appendChild(function(){let t=fe(Oi);t.classList.add(Yi);let n=Le("input",Yi);return n.placeholder=e.PLACEHOLDER.FIRST_NAME,ce(n),t.appendChild(n),Aa(n),t}()),t.appendChild(function(){let t=fe(Oi);t.classList.add(Ki);let n=Le("input",Ki);return n.placeholder=e.PLACEHOLDER.LAST_NAME,t.appendChild(n),ce(n),t}()),t},ct=function(e,t,n){let i=fe(yi);i.classList.add("bb-discovery-email-only"),L&&i.classList.add("bb-identification-process");let a=et(e,!1,function(e){const i=e.srcElement,a=i.parentElement;if("Tab"!=e.code&&"Enter"!=e.code)if(R(a),R(i),n)!function(e){let t=e.parentElement.querySelectorAll(".bb-blur");for(let e=0;e<t.length;e++)t[e].classList.remove("bb-blur")}(a);else if(Qt){let e=a.parentElement.parentElement;if(S(e,Kn)){const t=S(e,Kn);e.closest(".breadbutter-email")&&(e=e.closest(".breadbutter-email")),Jt(e,t,!0)}}"Enter"==e.code&&t&&t(a)}),o=dt(t);return i.append(a),i.append(o),i},dt=function(t){let n=Le("div","form-next-icon");return n.innerHTML='\n<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><path d="M5 12h14M12 5l7 7-7 7"></path></svg>\n',!L&&he(_)||!g||(n.classList.add("bb-continue-with-button"),n.innerHTML=e.BUTTON.CONTINUE),n.onclick=function(e){if(a)return;const n=e.currentTarget.parentElement;t&&t(n)},n},ut=function(e,t,n){let i=be(t);return i.innerText=e,n&&(i.onclick=n),i},pt=function(t){return ut(e.BUTTON.FORGOT_PASSWORD,"form-forgot",t)},mt=function(t){return ut(e.BUTTON.EMAIL_INSTRUCTION,Di,t)},ft=function(t){return ut(e.BUTTON.NEW_USER,"form-new-user",t)},_t=function(e){let t=Oe();return e&&(t.onclick=e),t},gt=function(t){let n=ut(e.BUTTON.REGISTER,Zi,t);n.classList.add("disabled");let i=Le("div",Xi);return i.appendChild(n),i},Lt=function(e){const t=Le("div","breadbutter-module-dropdown");return e&&(t.onclick=e),t.appendChild(function(){const e=Le("div",oa);return e.innerHTML='\n <svg xmlns="http://www.w3.org/2000/svg" width="30.473" height="6.473" viewBox="0 0 30.473 6.473">\n <g id="Group_4477" data-name="Group 4477" transform="translate(-5852.264 -3663.264)">\n <g id="Group_4398" data-name="Group 4398" transform="translate(6194 368) rotate(90)">\n <line id="Line_42" data-name="Line 42" y1="14" x2="4" transform="translate(3296.5 326.5)" fill="none" stroke="#878787" stroke-linecap="round" stroke-width="2"/>\n </g>\n <line id="Line_140" data-name="Line 140" x2="4" y2="14" transform="translate(5867.5 3668.5) rotate(-90)" fill="none" stroke="#878787" stroke-linecap="round" stroke-width="2"/>\n </g>\n</svg>\n ',e}()),t},bt=function(t){return ut(e.BUTTON.OR_CONTINUE_WITH_EMAIL,Vi,t)},ht=function(t,n){let i=n?e.BUTTON.OR_SIGN_UP_WITH_EMAIL:e.BUTTON.OR_SIGN_UP_WITH_EMAIL_AND_PASSWORD;return ut(i,Vi,t)},vt=function(t,n,i,o){a=!1,F("magic-link-form");let r=!1,s=!1;p&&p.state==Ea&&(s=!0),p&&p.first_name&&(r=!0);let l=fe("breadbutter-magic-link"),c=fe(vi);c.appendChild(function(){let e=Le("div","breadbutter-magic-link-plane");return e.innerHTML='\n<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="119.287" height="116.358" viewBox="0 0 119.287 116.358">\n <defs>\n <linearGradient id="linear-gradient-plane" x1="-0.098" y1="0.555" x2="0.917" y2="0.555" gradientUnits="objectBoundingBox">\n <stop offset="0" stop-color="#eac040"/>\n <stop offset="0" stop-color="#a0a0a0"/>\n <stop offset="1" stop-color="#fafafc"/>\n </linearGradient>\n <linearGradient id="linear-gradient-plane-2" x1="-0.068" y1="0.585" x2="0.936" y2="0.585" gradientUnits="objectBoundingBox">\n <stop offset="0" stop-color="#c9c8c8"/>\n <stop offset="1" stop-color="#fff"/>\n </linearGradient>\n <linearGradient id="linear-gradient-plane-3" x1="-0.115" y1="0.555" x2="0.907" y2="0.555" xlink:href="#linear-gradient-plane-2"/>\n </defs>\n <g id="Group_15568" data-name="Group 15568" transform="translate(-946.841 -582.253)">\n <g id="Group_15523" data-name="Group 15523" transform="translate(950.399 585.81)">\n <path id="Path_13894" data-name="Path 13894" d="M976.175,750.909l21.052,16.974,12.564,2.134-.039,7.949,25.545,20.522,39.3-61.212Z" transform="translate(-969.297 -685.688)" opacity="0.094" style="mix-blend-mode: multiply;isolation: isolate"/>\n <g id="Group_15522" data-name="Group 15522">\n <g id="Group_15518" data-name="Group 15518">\n <g id="Group_15516" data-name="Group 15516" transform="translate(25.427)">\n <path id="Path_13895" data-name="Path 13895" d="M1028.32,628.292l4.148,20.97,82.6-57.008Z" transform="translate(-1028.32 -592.253)" fill="url(#linear-gradient-plane)"/>\n </g>\n <g id="Group_15517" data-name="Group 15517">\n <path id="Path_13896" data-name="Path 13896" d="M1069.014,592.253l-86.746,36.038-25.427-20.5Z" transform="translate(-956.841 -592.253)" fill="url(#linear-gradient-plane-2)"/>\n </g>\n </g>\n <g id="Group_15521" data-name="Group 15521" transform="translate(29.575)">\n <g id="Group_15519" data-name="Group 15519">\n <path id="Path_13897" data-name="Path 13897" d="M1045.944,636.435l-5.964,12.827,82.6-57.008Z" transform="translate(-1039.98 -592.253)" fill="#4eaff7"/>\n </g>\n <g id="Group_15520" data-name="Group 15520" transform="translate(5.964)">\n <path id="Path_13898" data-name="Path 13898" d="M1133.379,592.253l-76.634,44.181,31.846,25.585Z" transform="translate(-1056.745 -592.253)" fill="url(#linear-gradient-plane-3)"/>\n </g>\n </g>\n </g>\n </g>\n <path id="Path_13899" data-name="Path 13899" d="M1065.569,583.894a3.556,3.556,0,0,0-3.485-1.607L949.911,597.824a3.557,3.557,0,0,0-1.745,6.293l24.421,19.69,3.9,19.7a3.557,3.557,0,0,0,5.51,2.238l9.614-6.635,23.948,19.239a3.558,3.558,0,0,0,5.221-.851l44.788-69.767A3.558,3.558,0,0,0,1065.569,583.894Zm-47.785,71.683-26.014-20.9-2.047,1.413-9.749,6.728-4.148-20.97-25.427-20.5,112.173-15.537Z"/>\n </g>\n</svg>\n',e}()),l.appendChild(c);let u=e.MAGIC_LINK.CHECK_YOUR_EMAIL;r&&(u=j({FIRST_NAME:p.first_name},e.MAGIC_LINK.CHECK_YOUR_EMAIL_2));let m=qe(u);m.classList.add("breadbutter-magic-link-title");let f=et(t,!0);f.classList.add("breadbutter-magic-link-email");let g=We(e.MAGIC_LINK.CONFIRM_MESSAGE,"breadbutter-magic-link-message");l.appendChild(m),m=qe(e.MAGIC_LINK.CONFIRMING),m.classList.add("breadbutter-magic-link-title-confirming"),l.appendChild(m),m=qe(e.MAGIC_LINK.LOGGING_IN),m.classList.add("breadbutter-magic-link-title-logging"),l.appendChild(m),l.appendChild(f),l.a
1ppendChild(g);let L=_.providers&&_.providers.length;return o?l.appendChild(ut(e.MAGIC_LINK.LEAVE_MAGIC_LINK_OPT_IN,na,Mn)):d||L?l.appendChild(ut(e.MAGIC_LINK.LEAVE_MAGIC_LINK,na,Pn)):l.appendChild(ut(e.BUTTON.SWITCH_LOGIN,na,Va)),s&&rt(l),n&&wt(l,n),i&&Et(l,i),l},Et=function(e,t,n){let i=N(e,vi);Vt.start(i,!1,!0,!1),e.classList.remove("bb-logging"),e.classList.add("bb-confirming"),Bt.confirmMagicLinkCode(t,async function(t){t&&t.authentication_token?(e.classList.add("bb-logging"),e.classList.remove("bb-confirming"),await Vt.success_hold(),W(),Bt.redirectAuthentication(t.authentication_token,!0),"function"==typeof B&&B()):(await Vt.failure_hold(),ve(e))})},wt=function(e,t,n){setTimeout(function(){let n=N(e,vi);Bt.getMagicLinkAuthenticated(t,async function(i){i&&!i.error?i.magic_link_authenticated?(e.classList.add("bb-logging"),Vt.start(n,!1,!0,!1),await Vt.success_hold(),W(),Bt.redirectAuthentication(t,!0)):wt(e,t):(Vt.start(n,!1,!0,!1),await Vt.failure(),ve(e))})},5e3)},Tt=function(e,{email_address:t,auth_type:n,provider:i,user:a,options:o}){const r=e.parentElement;n==ki&&Vt.start(e),Bt.startDeIdentification({email_address:t,auth_type:n,provider:i,user:a,options:o,callback:async function(i){if(K(),i&&i.authentication_token)n==ki?(await Vt.success_hold(),Ce(r,"forceQuit")()):Bt.redirectAuthentication(i.authentication_token,!0);else if(i&&!i.error){let e=$t({email_address:t}),n=r.parentElement;r.remove(),n.appendChild(e)}else if(i&&i.error){let t=N(e,ra);k(t,i.error.message)}}})},yt=function(t){const n=N(t,Ui);t.parentElement;let i=n.email?n.email:n.value;Ln(i)?J(i,function(n){n.user_profile&&n.user_profile.state!=Ea?Tt(t,{email_address:n.user_profile.email_address}):(t.parentElement.querySelector("."+qi).innerHTML=e.DE_IDENTIFICATION.CONTENT_VERIFIED,Dt(t,n))}):w(n)},Ct=function(e){let t=e.target.parentElement.parentElement.parentElement,n=t.parentElement,i=Ft(!1,{});t.remove(),n.appendChild(i)},It=function(t){let n=t.parentElement;const i=N(t,li),o=N(i,Ji),r=N(i,Ui);let s=r.email?r.email:r.value,l="";for(let e=0;o.children&&e<o.children.length;e++)l+=o.children[e].value;let c={email_address:s,pin:l},d=!0,u=!1;c.pin||(d=!1,u=e.ERROR.EMPTY_TOKEN),d?(Vt.start(i),a=!0,o.classList.add("hide"),c=ye(n,c),document.activeElement.blur(),Bt.confirmDeIdentification(c,async function(t){if(t&&!t.error)await Vt.success_hold(),Ce(n,"forceQuit")();else if(t&&t.error){Ie(n,"pin"),await Vt.failure(),o.classList.remove("hide");let i=t.error.message;e.RES_MAPPING[t.error.code]&&(i=e.RES_MAPPING[t.error.code]),k(o,i)}a=!1})):u&&k(o,u.MESSAGE)},Nt=function(e){const t=e.currentTarget.parentElement;It(t.parentElement)},St=function(e){let t=e.target.parentElement;Ut(t)},Ot=function(e){let t=e.target.parentElement,n=e.currentTarget.getAttribute("name"),i=e.currentTarget.getAttribute("provider_id"),a=e.currentTarget.email_address;Mt(t,n,i,a)},At=function(e){let t=e.target.parentElement,n=N(t,Yn).children[0],i=n.getAttribute("name"),a=n.getAttribute("provider_id"),o=n.email_address;Mt(t,i,a,o)},kt=function(e){let t=e.target.parentElement;Rt(t)},Rt=function(e){const t=N(e,Ui);let n=t.email?t.email:t.value;Tt(e,{email_address:n,auth_type:ki})},Mt=function(e,t,n,i){let a={};n?a.id=n:t&&(a.idp=t),Tt(e,{email_address:i,auth_type:"sso",provider:a})},Pt=function(e){let t=e.target.parentElement;yt(t)},xt=function(e){const t=e.srcElement,n=t.parentElement.parentElement;R(t),"Enter"==e.code&&Ut(n)},Ut=function(e){const t=N(e,Ui),n=N(e,Si),i=N(n,Bi);let a=t.email?t.email:t.value;Tt(e,{email_address:a,auth_type:"password",user:{password:i.value}})},Dt=function(t,n){t.innerHTML="";let{suggested_list:i,suggested:a,api_suggested_list:o,api_suggested:r}=fo(n),l=n.user_profile.email_address;if("local"==a)t.appendChild(et(l,!0)),t.appendChild(ot(xt,e.PLACEHOLDER.PASSWD)),t.appendChild(ut(e.BUTTON.DE_IDENTIFY_ME,ra,St));else{n.user_profile&&o.length&&(n.user_profile.profile_image_url&&(i[0].profile_image_url=n.user_profile.profile_image_url),n.user_profile.first_name&&(i[0].alias=n.user_profile.first_name));let a={button_theme:!1,suggested:r,email_address:l,deidentify:!0,pass:Ot},c=cn.getButtonLists(o,a);o.length?(t.appendChild(c.container),t.appendChild(ut(e.BUTTON.DE_IDENTIFY_ME,ra,At))):(t.appendChild(et(l,!0)),function(t){if(O(t,_i),s){let n=fe(_i),i=We(e.MAGIC_LINK.SEND_BUTTON_TEXT,gi),a=Ae();i.appendChild(a),n.appendChild(i),t.appendChild(n),t.classList.add("bb-magic-link"),n.onclick=Pe;let o=fe(Li),r=fe(bi);r.innerText=e.MAGIC_LINK.FOCUS_MASK_TEXT;let s=fe(hi);o.appendChild(r),o.appendChild(s),n.appendChild(o)}}(t),t.appendChild(ut(e.BUTTON.DE_IDENTIFY_ME,ra,kt)))}var c;t.appendChild((c=Gt,ut(e.BUTTON.SWITCH_DE_IDENTIFY,"form-switch-login",c)))},Gt=function(t){const n=t.currentTarget.parentElement;n.innerHTML="",n.parentElement.querySelector("."+qi).innerHTML=e.DE_IDENTIFICATION.CONTENT,Ht(n,!1)},Ht=function(t,n,i){t.appendChild(et(n,!1,Wt,!1,!0)),t.appendChild(ut(e.BUTTON.DE_IDENTIFY_ME,ra,Pt))},Wt=function(e){if(a)return;const t=e.srcElement,n=t.parentElement;R(t),"Enter"==e.code&&yt(n)},Ft=function(t,n){let i=!(!t||!t.user_profile||t.user_profile.state!=Ea);F(ya);let a=fe(ci);a.options=n;let o=fe(li);return i?(a.appendChild(st(e.DE_IDENTIFICATION.DE_IDENTIFY_ME,e.DE_IDENTIFICATION.CONTENT_VERIFIED)),Dt(o,t)):(a.appendChild(st(e.DE_IDENTIFICATION.DE_IDENTIFY_ME,e.DE_IDENTIFICATION.CONTENT)),Ht(o,n.email_address)),a.appendChild(o),rt(a),a},qt=function(t){let n=t.target.parentElement,i=n.querySelectorAll("input"),a=!0,o=[];for(let t=0;t<i.length;t++){let n=i[t],r=n.name;switch(n.type){case"text":n.getAttribute("mandatory")&&(n.value||(k(n,e.CUSTOM_DATA.MANDATORY,1),a=!1)),o.push({key:r,value:n.value});break;case"checkbox":n.getAttribute("mandatory")&&(n.checked||(k(n,e.CUSTOM_DATA.MANDATORY,1),a=!1)),o.push({key:r,value:n.checked})}}a&&(Vt.start(n,!1,!0,!1),Bt.addUserCustomValues(o,async function(e){e?(await Vt.success_hold(),setTimeout(async function(){Ce(n,"forceQuit")()},1e3)):await Vt.failure()}))},$t=function(t){let n=t.email_address,i=t.pin;F(ya);let a=fe(ci);a.options=t;let o=fe(li);a.appendChild(st(e.DE_IDENTIFICATION.DE_IDENTIFY_PIN,e.DE_IDENTIFICATION.CONTENT_PIN)),o.appendChild(et(n,!0)),o.appendChild(it(4,i,It)),o.appendChild(ut(e.BUTTON.CONFIRM_PIN,"form-confirm-pin",Nt)),a.appendChild(o);let r=Ke("");return r.appendChild(Fe(e.DE_IDENTIFICATION.CONFIRM_PIN)),a.appendChild(r),a.appendChild(function(){let t=Ke("");t.appendChild(Fe(e.DE_IDENTIFICATION.GET_NEW_PIN));let n=Fe(e.DE_IDENTIFICATION.NEW_PIN_BUTTON,"link");return t.innerHTML=t.innerHTML.replace("%BUTTON%",n.outerHTML),t.querySelector(".link").onclick=Ct,t}()),rt(a),a},Yt=function(t){let n=t.parentElement,i=t.querySelector("input."+zi),a=t.querySelector("input."+ji),o=t.querySelector("."+$i),r={};if(i&&(r.phone=i.value),a&&(r.company=a.value),o&&(r.message=o.value),!r.message){let t=e.ERROR.EMPTY_MESSAGE;return void k(o,t.MESSAGE)}r.callback=()=>{n.style.height=n.offsetHeight+"px",Vt.success_hold();let i=fe("breadbutter-contactus-complete"),a=_e(),o=p.first_name?p.first_name:"";a.innerText=j({FIRST_NAME:o},e.CONTACT_US.SUCCESS).trim(),i.appendChild(a),t.parentElement.appendChild(i),O(t,ui),setTimeout(()=>{n.style.height="265px",setTimeout(()=>{Ce(n,"forceQuit")();let e=document.querySelector(".breadbutter-ui-contact-us-icon-message");e&&e.classList.add("bb-hide")},5e3)},50)},Vt.start(t,!0),Bt.contactUs(r)},Kt=function(t){if(t.classList.contains(mi)){t.classList.remove(mi),t.classList.add("breadbutter-contact-login");let n=t.querySelector("."+pi),i=fe("breadbutter-contact-blur");fe("breadbutter-contact-hint").innerText=e.CONTACT_US.COLLAPSE,n.appendChild(i);const a=function(){let t=fe("breadbutter-floating-text-title");return t.innerHTML=e.CONTACT_US.TEXT_1,t},o=function(){let t=fe("breadbutter-floating-text");return t.innerHTML=e.CONTACT_US.TEXT_2,t};i.appendChild(function(){const e=Le("div",oa);return e.innerHTML='\n <svg xmlns="http://www.w3.org/2000/svg" width="30.473" height="6.473" viewBox="0 0 30.473 6.473">\n <g id="Group_4477" data-name="Group 4477" transform="translate(-5852.264 -3663.264)">\n <g id="Group_4398" data-name="Group 4398" transform="translate(6194 368) rotate(90)">\n <line id="Line_42" data-name="Line 42" y1="14" x2="4" transform="translate(3296.5 326.5)" fill="none" stroke="#ffffff" stroke-linecap="round" stroke-width="2"/>\n </g>\n <line id="Line_140" data-name="Line 140" x2="4" y2="14" transform="translate(5867.5 3668.5) rotate(-90)" fill="none" stroke="#ffffff" stroke-linecap="round" stroke-width="2"/>\n </g>\n</svg>\n ',e}()),i.appendChild(a()),i.appendChild(o()),setTimeout(function(){i.style["margin-top"]="0px"},50)}},zt=function(t,n){F("confirm-form");let i=fe("breadbutter-confirm"),a=fe(Xn);return i.appendChild(st(e.CONFIRM_EMAIL.TITLE,e.CONFIRM_EMAIL.CONTENT)),a.appendChild(et(t,!0)),a.appendChild(it(4,n,Nn)),a.appendChild(ut(e.BUTTON.CONFIRM,Fi,Rn)),i.appendChild(a),i.appendChild(function(){let t=Ke("");t.classList.add("new_code"),t.appendChild(Fe(e.NEW_CODE.CONTENT));let n=Fe(e.NEW_CODE.BUTTON,"link");return t.innerHTML=t.innerHTML.replace("%BUTTON%",n.outerHTML),t.querySelector(".link").onclick=fn,t}()),i.appendChild(ut(e.BUTTON.CANCEL,ea,xn)),rt(i),i},jt=function(t){let n=fe(ti);if(ke())for(let t=0;t<ba.length;t++){let i=ba[t],a=localStorage.getItem(pa[i]);if(null!=a){let t=i+"_";t+=1==a?"ONE":"MORE";let o=e.PASSWORD_HINT[t];n.appendChild(Ye(j({count:a}
1,o),La[i]))}}if(n.appendChild(Ye(e.PASSWORD_HINT.MATCH,La.MATCH)),n.prepend(Ke(e.PASSWORD_HINT.HAS_VALIDATION)),!t){let t=Ke(e.PASSWORD_HINT.NO_OLD_PASSWORD);t.classList.add("form-hint-title"),n.prepend(t)}return n},Zt=function(t){let n=e.GREETING,i=e.ERROR.INLINE.TITLE_,a="";ke()&&(a=localStorage.getItem(fa)?localStorage.getItem(fa):""),n=j({NAME:a},n).trim(),i=j({NAME:a},i).trim();const o=N(t,Wi);o&&(o.innerText=n);const r=N(t,"form-title-error");r&&(r.innerText=i)},Xt=function(e){let t=N(e,_i);if(t){t.classList.add("bb-blur");let e=t.parentElement.querySelector('input[type="email"]');e&&e.focus()}};let Qt=!1;const Jt=function(e,t,n){let i=N(e,yi).offsetHeight,a=N(e,_i);if(a&&(i+=a.offsetHeight),t&&(i=e.offsetHeight-t.offsetHeight),n){if(Qt=!0,!bo(e,i)){let t=N(e,Ei);t||(t=fe(Ei),e.append(t)),t.style.bottom=i+"px"}t&&!t.classList.contains(Ti)&&t.classList.add(Ti)}else{if(t){let e=N(t,Ei);t.classList.remove("bb-on-blur-email"),e&&e.remove&&e.remove()}if(Qt=!1,!bo(e,!1)){let t=N(e,Ei);t&&t.remove&&t.remove()}t&&t.classList&&t.classList.remove(Ti)}},en=function(t,n,i,a){F(wa);let o=fe($n),r=fe(di);o.appendChild(r);let{list:s,button_holder:l}=an(t,r),c=l.classList.contains("bb-tile");if(c&&r.classList.add("tile-content"),(i&&!i.isContinueWith||!i&&a&&!ho(a)||f)&&o.prepend(st(e.INCOGNITO.TITLE)),!s||0==s.length||f);else{let e=N(l,Yn);for(let t=0;e.children&&t<e.children.length;t++)e.children[t].onclick=function(){if(r.classList.contains("tile-content")){let e=l.querySelector(".bb-email-revealing-button"),t=l.querySelector(".bb-email-holding-button");e.classList.add("bb-hide");let n=t.querySelector("input[type=email]");Aa(n),t.classList.add("bb-show");let i=fe(Ei);l.classList.add("bb-on-blur-email"),l.prepend(i)}else{Jt(o,l,!0);let e=o.querySelector("input[type=email]");Aa(e)}};c||l.appendChild(Lt())}let d=dn(n,c,l);return r.appendChild(d),Me(r,!0),He(o),o},tn=function(e){let t=e.querySelector(".bb-limit-providers");if(t){let e=t.querySelector(".breadbutter-provider-limit");e&&e.remove(),t.classList.remove("bb-limit-providers")}},nn=function(e){let t=e.target,n=I(t,"breadbutter-ui");n&&n.parentElement&&(n.parentElement.classList.remove("scrolling"),n.parentElement.classList.remove("scrolling-end"),tn(n),setTimeout(function(){n.parentElement.style.height=null},200))},an=function(t,n,a){let o=[],r=0;if(t&&t.providers)for(let e=0;e<t.providers.length;e++){let n=t.providers[e];Na[n.idp]&&(o.push(n),r++)}let l=u||d;0===o.length&&(o=!1);let c=i.button_theme;io(r)&&(c="round-icons"),C&&1==o.length&&(c="tiles");let p={button_theme:c,register:!0};a||(p.pass=!0);let f=fe(Kn);if(o){if("tiles"!==c){let t=Ke(e.BUTTON.CONTINUE_WITH);f.prepend(t)}if("tiles"==c&&a&&C){let e=fe("bb-button-mask");e.onclick=le,f.append(e)}let{container:t,error:i,theme_class:r}=cn.getButtonLists(o,p);r&&f.classList.add(r),f.append(t);let u="tiles"==c;if("tiles"==c&&a){p.button_theme="round-icons";let{container:e,error:t,theme_class:n}=cn.getButtonLists(o,p);n&&f.classList.add(n),f.append(e)}n.appendChild(f);let _=5;if("tiles"==c&&(_=5,l&&u&&(_=4)),o.length>_){let e;u?(e=Oe(),5==_&&f.classList.add("bb-limit-providers-less")):e=function(){let e=Le("div","breadbutter-provider-limit");return e.innerHTML='<div class="drop-down-icon">\n<svg xmlns="http://www.w3.org/2000/svg" width="30.473" height="6.473" viewBox="0 0 30.473 6.473">\n <g id="Group_4477" data-name="Group 4477" transform="translate(-5852.264 -3663.264)">\n <g id="Group_4398" data-name="Group 4398" transform="translate(6194 368) rotate(90)">\n <line id="Line_42" data-name="Line 42" y1="14" x2="4" transform="translate(3296.5 326.5)" fill="none" stroke="#878787" stroke-linecap="round" stroke-width="2"/>\n </g>\n <line id="Line_140" data-name="Line 140" x2="4" y2="14" transform="translate(5867.5 3668.5) rotate(-90)" fill="none" stroke="#878787" stroke-linecap="round" stroke-width="2"/>\n </g>\n</svg></div>',e}(),f.append(e),f.classList.add("bb-limit-providers"),e.onclick=function(){this.parentElement.classList.remove("bb-limit-providers"),this.remove()}}if(m&&(s||d)){if(!u){let t=We("<span></span>"+e.BUTTON.OR_CONTINUE_WITH_EMAIL_OPTIN+"<span></span>","breadbutter-optin-message");f.appendChild(t)}}else if(a){let e=Lt(nn);n.appendChild(e)}else if(!u){let t=bt();t.innerText=e.BUTTON.START_WITH_EMAIL_ADDRESS,t.classList.add(wi),f.appendChild(t)}}return{list:o,button_holder:f}};let on=!0;const rn=function(t,n,o,r){F("incognito-form");let s=fe(oi);o&&!o.isContinueWith||!o&&r&&!ho(r)?s.appendChild(st(e.INCOGNITO.TITLE)):s.appendChild(st(e.REGISTER.TITLE));let l=!1,c=u,p=fe(di);s.appendChild(p);let{list:_,button_holder:g}=an(t,p,!0);d&&(l=Na[Ia.LOCAL]);let b=g.classList.contains("bb-tile");if(c||l||L){let t=ln(n,b,g);p.appendChild(t);let o=bt(function(n){if(a)return;const i=n.currentTarget;Qa(i,t),i.innerHTML="<span></span>"+e.BUTTON.OR+"<span></span>",i.classList.add("continue-or"),i.onclick=null});b||g.appendChild(o);let r=N(p,ri);r.classList.add("more-content"),(m||!b&&c)&&Me(p,!0),Se(r),He(s),b?p.classList.add("tile-content"):i.expand_email_address?Ja(o):n||Qa(o,t)}else{let e=fe(ri);s.appendChild(e),He(e)}return C&&!f&&(_.length>5||_&&l)&&(on?(ee&&s.classList.add("bb-mobile-collapse"),g.classList.add("bb-limit-providers"),on=!1):(s.classList.remove("bb-mobile-collapse"),g.classList.remove("bb-limit-providers"),s.querySelector(".bb-more-button")&&s.querySelector(".bb-more-button").remove())),s},sn=function(e){let t=fe(Yn);return t.appendChild(e),t},ln=function(t,n,i){let a=fe(ri);if(n){let n=cn.getContinueWithEmailButton();n.classList.add("bb-email-revealing-button");let o=sn(ct(t,ja,!0));if(o.classList.add("bb-email-holding-button"),o.querySelector("input").placeholder=e.PLACEHOLDER.ENTER_EMAIL_ADDRESS,n.onclick=function(){if(g)no(a);else{o.classList.add("bb-show");let e=o.querySelector("input[type=email]");Aa(e),n.classList.add("bb-hide")}},i){let e=i.querySelector(".bb-more-button");e?(i.insertBefore(n,e),i.insertBefore(o,e)):(i.appendChild(n),i.appendChild(o))}}else a.appendChild(ct(t,Za,!0));return a},dn=function(t,n,a,o){let r=fe(si);if(n){let n=cn.getContinueWithEmailButton();n.classList.add("bb-email-revealing-button");let i=sn(ct(t,Ka));i.classList.add("bb-email-holding-button"),i.querySelector("input").placeholder=e.PLACEHOLDER.ENTER_EMAIL_ADDRESS;let o=fe("bb-email-start-focus-text");if(o.innerText=e.BUTTON.START_WITH_EMAIL_ADDRESS,i.prepend(o),n.onclick=function(){n.classList.add("bb-hide");let e=i.querySelector("input[type=email]");Aa(e),i.classList.add("bb-show")},a){let e=a.querySelector(".bb-more-button");e?(a.insertBefore(n,e),a.insertBefore(i,e)):(a.appendChild(n),a.appendChild(i))}}else g=i.include_name&&L,g&&r.appendChild(lt()),r.appendChild(ct(t,za));return r},un=function(t,n){_o(t,!1),O(t,ni),t.appendChild(function(t){let n=fe(ni),i=fe(ii),a=fe(ai),o=fe(ai);i.appendChild(qe(e.EXPIRE_PASSWORD.TITLE));let r=Ve(e.EXPIRE_PASSWORD.CONTENT);r.classList.add(da),i.appendChild(r);let s=et(t,!1,xa);s.classList.add(da),i.appendChild(s),a.appendChild(mt(Ma)),a.appendChild(ut(e.BUTTON.CANCEL,ea,ka)),a.classList.add(da);let l=Ve(e.FORGOT_PASSWORD.CONTENT_2);return l.classList.add(ua),i.appendChild(l),o.appendChild(ut(e.BUTTON.RETURN_TO_LOGIN,Di,En)),o.classList.add(ua),n.appendChild(i),n.appendChild(a),n.appendChild(o),rt(n),n}(n)),t.classList.add("expire")},pn=function(e,t){let n=(e.clipboardData||window.clipboardData).getData("Text");if(!isNaN(n)){let i=e.target.parentElement;for(let e=0;i.children&&e<i.children.length&&e<n.length;e++){let t=i.children[e],a=n[e];t.value=a,t.blur()}i.children&&i.children.length&&n.length&&(i.children[i.children.length-1].focus(),t(i.parentElement.parentElement))}},mn=function(e,t){if(a)return;const n=e.srcElement,i=n.parentElement;if("Tab"!=e.code&&"Enter"!=e.code&&R(i),n.value){let e=n.value,t=n;for(;e.length>0&&t;)t.value=e[0],e=e.slice(1),t=t.nextSibling}isNaN(e.key)||(n.nextSibling?n.nextSibling.focus():t(i.parentElement.parentElement)),"ArrowRight"==e.code&&n.nextSibling&&n.nextSibling.focus(),"Backspace"!=e.code&&"ArrowLeft"!=e.code||n.previousSibling&&n.previousSibling.focus()},fn=function(e){const t=e.currentTarget.parentElement.parentElement;In(t.parentElement)},_n=function(e){if(a)return;const t=e.currentTarget.parentElement.parentElement,n=t.parentElement,i=N(n,"collapsible");t&&t.classList.contains("bb-collapsed")?(t&&t.classList.remove("bb-collapsed"),i.classList.remove("hide"),nn(e)):(t&&t.classList.add("bb-collapsed"),i.classList.add("hide"))},bn=function(e){if(a)return;const t=e.currentTarget.parentElement.parentElement.parentElement;yn(t)},hn=function(e){const n=e.currentTarget.parentElement,i=n.parentElement;t?un(i.parentElement.parentElement,t):(mo(n),n.classList.add("suggest-local"),vn(i))},vn=function(t){let n=Object.assign({},Na[Ia.LOCAL]);n.text=e.BUTTON.SIGN_IN,n.cls="green";let i=N(t,ca);i||(i=N(t,"breadbutter-buttons")),A(i);let a=cn.buttons(n,{});a.onclick=bn,i.appendChild(a)},En=function(e){if(a)return;const t=e.currentTarget.parentElement;wn(t)},wn=function(e){e.parentElement.classList.remove("confirmation");const t=e.parentElement.parentElement;t.classList.remove("forgot"),q(Ca,1),t.classList.remove("expire"),O(t,ni)},Tn=function(e){const t=N(e,Ui),n=e.parentElement,i=N(n,Jn);let o=t.email?t.email:t.value,r=!0;Ln(o)||(r=!1,w(t));r&&(a=!0,document.activeElement.blur(),Vt.start(i,!1),Bt.resetPassword(o,async function(){await Vt.success(),a=!1,e.parentElement.classList.add("confirmation")}))},yn=function(t){const n=N(t,Ui),i=N(t,Si),o=N(i,Bi);let r,s={email_address:n.email?n.email:n.value,password:o.value},l=!0,c=t.parentElement;
1if(0==s.password.length&&(r=e.ERROR.PASSWORD_EMPTY,k(o,r.MESSAGE),l=!1),Ln(s.email_address)||(l=!1,w(n)),l){let n=N(t,Kn);Vt.start(n,!1,!0,!1),a=!0,s=ye(c,s),document.activeElement.blur(),Bt.loginWithPassword(s,async function(t){if(t&&t.authentication_token)W(),await Vt.success_hold(),Bt.redirectAuthentication(t.authentication_token,!0,"local");else if(t&&t.error){await Vt.failure();let n=t.error.message;e.RES_MAPPING[t.error.code]&&(n=e.RES_MAPPING[t.error.code]),k(o,n)}a=!1})}},Cn=function(t){const n=N(t,Ui),i=N(N(t,Yi),Yi),o=N(N(t,Ki),Ki),r=N(N(t,Bi),Bi),s=N(N(t,Gi),Bi),l=N(t,Qi),c=N(t,Xi);let d={email_address:n.email?n.email:n.value,first_name:i.value,last_name:o.value,password:r.value},u=s.value;l&&(d.pin=l.value);let p,m=!0,f=t.parentElement,_={};if(ke())try{let t=localStorage.getItem("breadbutter-sdk-password-length");t=Number(t),d.password.length<t&&(p=e.ERROR.PASSWORD_LENGTH,_.count=t,k(r,j(_,p.MESSAGE)),m=!1)}catch(e){}0==d.first_name.length&&(m=!1,k(i,e.ERROR.EMPTY_FIRST_NAME.MESSAGE)),0==d.last_name.length&&(m=!1,k(o,e.ERROR.EMPTY_FIRST_NAME.MESSAGE)),d.password!=u&&(m=!1,p=e.ERROR.PASSWORD_NOT_MATCH,k(s,p.MESSAGE)),Ln(d.email_address)||(m=!1,w(n)),m&&(a=!0,d=ye(f,d),document.activeElement.blur(),Vt.start(c,!1,!0,!1),Bt.registerWithPassword(d,async function(e){e&&!e.error?(await Vt.success(),e.pending_pin_confirmation?me(t.parentElement):e.authentication_token&&(W(),Bt.redirectAuthentication(e.authentication_token,!0,"local"))):e&&e.error&&(await Vt.failure(),k(r,e.error.message)),a=!1}))},In=function(e){let t=N(e,Xn);const n=N(t,Ui);let i=n.email?n.email:n.value;Vt.start(t),a=!0,document.activeElement.blur(),Bt.resendConfirmationEmail(i,async function(e){e&&!e.error?await Vt.success():e&&e.error&&await Vt.failure(),a=!1})},Nn=function(t){const n=N(t,Xn);let i=t.parentElement;N(n,Fi);const o=N(n,Ji),r=N(n,Ui);let s=r.email?r.email:r.value,l="";for(let e=0;o.children&&e<o.children.length;e++)l+=o.children[e].value;let c={email_address:s,pin:l},d=!0,u=!1;c.pin||(d=!1,u=e.ERROR.EMPTY_TOKEN),d?(Vt.start(n),a=!0,o.classList.add("hide"),c=ye(i,c),document.activeElement.blur(),Bt.confirmUser(c,async function(t){if(t&&!t.error)await Vt.success_hold(),t.authentication_token?(W(),Bt.redirectAuthentication(t.authentication_token,!0,"local")):ve(i);else if(t&&t.error){Ie(i,"pin"),await Vt.failure(),o.classList.remove("hide");let n=t.error.message;e.RES_MAPPING[t.error.code]&&(n=e.RES_MAPPING[t.error.code]),k(o,n)}a=!1})):u&&k(o,u.MESSAGE)},Sn=function(t){const n=N(t,Qi),i=N(N(t,Bi),Bi),o=N(N(t,Gi),Bi),r=N(t,Ui),s={email_address:r.email?r.email:r.value,pin:n.value,password:i.value,repassword:o.value};let l,c=!0,d=t.parentElement,u={};if(ke())try{let t=localStorage.getItem("breadbutter-sdk-password-length");t=Number(t),s.password.length<t&&(l=e.ERROR.PASSWORD_LENGTH,u.count=t,k(i,j(u,l.MESSAGE)),c=!1)}catch(e){}s.password!=s.repassword&&(c=!1,l=e.ERROR.PASSWORD_NOT_MATCH,k(o,l.MESSAGE)),Ln(s.email_address)||(c=!1,w(r)),c&&(Vt.start(d),a=!0,document.activeElement.blur(),Bt.confirmResetPassword(s.email_address,s.pin,s.password,async function(n){if(n&&!n.error)await Vt.success(),ve(t);else if(n&&n.error){await Vt.failure();let t=n.error.message;"unauthorized_error"==n.error.code&&(d.classList.add("unauthorized-token"),t=e.PASSWORD_HINT.INVALID_PIN),k(o,t)}a=!1}))},On=function(e,t,n,i){let a=e.children,o=!0;for(let e=0;e<a.length;e++){let i=a[e];if(i.validation){i.classList.remove("pass"),i.classList.remove("fail");let e,a=localStorage.getItem(pa[i.validation]);switch(a=Number(a),i.validation){case La.MINIMUM:t.length<a?(i.classList.remove("pass"),i.classList.add("fail")):(i.classList.remove("fail"),i.classList.add("pass"));break;case La.NO_EMAIL:break;case La.MATCH:0==n.length?(i.classList.remove("fail"),i.classList.remove("pass")):t!=n?(i.classList.remove("pass"),i.classList.add("fail")):(i.classList.remove("fail"),i.classList.add("pass"));break;case La.LOWER:e=t.match(/[a-z]+/g),e&&(e=e.join("")),e&&e.length>=a?(i.classList.remove("fail"),i.classList.add("pass")):(i.classList.remove("pass"),i.classList.add("fail"));break;case La.UPPER:e=t.match(/[A-Z]+/g),e&&(e=e.join("")),e&&e.length>=a?(i.classList.remove("fail"),i.classList.add("pass")):(i.classList.remove("pass"),i.classList.add("fail"));break;case La.SYMBOL:e=t.match(/[^0-9a-zA-Z]+/g),e&&(e=e.join("")),e&&e.length>=a?(i.classList.remove("fail"),i.classList.add("pass")):(i.classList.remove("pass"),i.classList.add("fail"));break;case La.NUMBER:e=t.match(/[0-9]+/g),e&&(e=e.join("")),e&&e.length>=a?(i.classList.remove("fail"),i.classList.add("pass")):(i.classList.remove("pass"),i.classList.add("fail"))}i.classList.contains("pass")||(o=!1)}}e.pass=o},An=function(e){let t=N(e,ti);if(!t)return!0;let n=t.children,i=!0;for(let e=0;e<n.length;e++){let t=n[e];t.validation&&(t.classList.contains("pass")||(i=!1))}return i},kn=function(e){const t=e.currentTarget,n=t.previousElementSibling;if(n){const e="password"===n.getAttribute("type")?"text":"password";n.setAttribute("type",e),"password"==e?t.classList.remove("sight"):t.classList.add("sight"),n.focus()}},Rn=function(e){if(a)return;const t=e.currentTarget.parentElement;Nn(t.parentElement)},Mn=function(e){if(a)return;const t=e.currentTarget;t.parentElement,K(),ve(t.closest("."+qn).children[0])},Pn=function(e){if(a)return;const t=e.currentTarget.parentElement;ve(t)},xn=function(e){if(a)return;const t=e.currentTarget.parentElement;K(),ve(t)},Un=function(e){if(a)return;const t=e.currentTarget,n=t.parentElement;t.classList.contains("disabled")||Sn(n)}
1,Dn=function(e){a||function(e){const t=e.parentElement,n=N(e,Ui),i=N(t,Jn);let o=n.email?n.email:n.value;a=!0,document.activeElement.blur(),Vt.start(i,!1),Bt.resetPassword(o,async function(){await Vt.success(),a=!1,t.classList.add("confirmation")})}(e.currentTarget.parentElement)},Bn=function(e){if(a)return;const t=e.currentTarget.parentElement;ve(t)},Gn=function(e){if(a)return;const t=e.srcElement,n=t.parentElement.parentElement;"Tab"!=e.code&&"Enter"!=e.code&&(R(t),Wn(n)),Fn(n),"Enter"==e.code&&Sn(n)},Hn=function(e){if(a)return;const t=e.srcElement,n=t.parentElement.parentElement;if("Tab"!=e.code&&"Enter"!=e.code&&(R(t),Wn(n)),Fn(n),"Enter"!=e.code)return;const i=N(n,Gi),o=N(i,Bi);o&&o.focus()},Wn=function(e){const t=N(N(e,Bi),Bi),n=N(N(e,Gi),Bi),i=N(e,ti);On(i,t.value,n.value)},Fn=function(e){let t=An(e),n=N(e,Hi);t?n.classList.remove("disabled"):n.classList.contains("diabled")||n.classList.add("disabled")},ga=function(e){if(a)return;const t=e.currentTarget.parentElement.parentElement;if(t.parentElement.classList.add("forgot"),q(Ca),t.querySelector("."+la)){let e=t.querySelector("."+ca);e&&e.querySelector(".more-block")&&(e.classList.add("bb-collapsed"),t.querySelector(".collapsible")&&t.querySelector(".collapsible").classList.add("hide"))}let n=t.parentElement.querySelector("."+Zn).querySelector("input[type=email]");Aa(n)},Aa=function(e){e&&(document.activeElement.blur(),e.focus(),setTimeout(()=>{C&&(e.click(),e.focus())},50))},ka=function(e){if(a)return;const t=e.currentTarget.parentElement.parentElement.parentElement;t.classList.remove("expire"),O(t,ni),_o(t,!0)},Ra=function(e){a||(e.currentTarget.parentElement.parentElement.parentElement.classList.remove("forgot"),q(Ca,1))},Ma=function(e){if(a)return;const t=e.currentTarget.parentElement.parentElement,n=N(t,ii);Tn(n)},Pa=function(e){if(a)return;const t=e.currentTarget.parentElement.parentElement,n=N(t,Qn);Tn(n)},xa=function(e){if(a)return;const t=e.srcElement,n=t.parentElement;R(t),"Enter"==e.code&&Tn(n)},Ua=function(e){if(a)return;const t=e.srcElement,n=t.parentElement;R(t),"Enter"==e.code&&Tn(n)},Da=function(e){if(a)return;const t=e.srcElement,n=t.parentElement.parentElement;if("Tab"!=e.code&&"Enter"!=e.code&&(R(t),Ga(n)),Ha(n),"Enter"!=e.code)return;const i=N(n,Gi),o=N(i,Bi);o&&o.focus()},Ba=function(e){if(a)return;const t=e.srcElement,n=t.parentElement.parentElement;"Tab"!=e.code&&"Enter"!=e.code&&(R(t),Ga(n)),Ha(n),"Enter"==e.code&&Cn(n)},Ga=function(e){const t=N(N(e,Bi),Bi),n=N(N(e,Gi),Bi),i=N(e,ti);On(i,t.value,n.value)},Ha=function(e){let t=An(e);const n=N(N(e,Yi),Yi),i=N(N(e,Ki),Ki);0==n.value.length&&(t=!1),0==i.value.length&&(t=!1);let a=N(N(e,Xi),Zi);t?a.classList.remove("disabled"):a.classList.contains("diabled")||a.classList.add("disabled")},Wa=function(e){if(a)return;const t=e.currentTarget.parentElement;Cn(t.parentElement)},Fa=function(e){if(a)return;const t=e.srcElement,n=t.parentElement.parentElement;if("Tab"!=e.code&&"Enter"!=e.code&&R(t),Ha(n),"Enter"!=e.code)return;const i=N(n,Ki),o=N(i,Ki);o&&o.focus()},qa=function(e,t){if(a)return;const n=e.srcElement,i=n.parentElement.parentElement;if("Tab"!=e.code&&"Enter"!=e.code&&R(n),Ha(i),"Enter"!=e.code)return;const o=N(i,Bi);let r=!1;o&&(r=N(o,Bi)),r?r.focus():t&&t(i)},$a=function(e){if(a)return;const t=e.currentTarget.parentElement,n=t.parentElement;n.removeChild(t),n.classList.remove("alert")},Va=function(e){if(a)return;const t=e.currentTarget,n=t.closest(".breadbutter-switch-login");n&&Vt.start(n,!0,!0),K(),ve(t.closest("."+qn).children[0])},Ya=function(e){if(a)return;const t=e.srcElement,n=t.parentElement.parentElement;R(t),"Enter"==e.code&&yn(n)},Ka=function(e){const t=e.closest(".breadbutter-discovery-holder");Xa(t,!0)},za=function(e){const t=e.parentElement;Xa(t,!0)},ja=function(e){const t=e.closest(".breadbutter-discovery-holder");Xa(t)},Za=function(e){const t=e.parentElement;Xa(t)},Xa=function(t,n){let o=t;const r=S(t,yi);let u=S(t,Kn);const p=S(r,Ui);let f,h=p.email?p.email:p.value,v=!0,E=t.parentElement;R(p),Ln(h)||(v=!1,w(p),n&&(o.closest(".breadbutter-email")&&(o=o.closest(".breadbutter-email")),u=S(o,Kn),u&&Jt(o,u,!0)));let T={};if(n&&g){let t=S(o,Ci);const n=N(N(t,Yi),Yi),a=N(N(t,Ki),Ki);T.first_name=n.value,T.last_name=a.value,i.require_name&&(T.first_name&&T.last_name||(v=!1,f=e.ERROR.EMPTY_NAME,k(p,f.MESSAGE)))}
1if(!L&&Ln(h)&&Y(h),v)if(L&&Y(h),n&&Jt(o,u),Vt.start(t,!1,!0,!1),a=!0,m&&s){let e=E.querySelector("."+_i);e&&Ue(e)}else if(n||d||!s)if(L&&!b||!(he(_)||d||s&&c))if(g){let e={email_address:h};T.first_name&&(e.first_name=T.first_name),T.last_name&&(e.last_name=T.last_name),e.callback=()=>{Q(h,e=>{Vt.remove(),e&&e.error?(K(),k(p,e.error.message)):(W(),l(),location.reload())})},Bt.identifyUser(e)}else Q(h,e=>{e&&e.error?(Vt.remove(),K(),k(p,e.error.message)):(W(),l(),location.reload())});else re(h,E.classList.contains(qn)?t:t.parentElement,p);else Q(h,function(e){if(a=!1,e&&e.error)Vt.remove(),K(),k(p,e.error.message);else{let t=e.user_profile;if(!c||t.state!=ha&&t.state!=va){let e=E.querySelector("."+_i);e?Ue(e):xe(u,{email_address:h})}else to(E,e)}})},Qa=function(e,t){if(t.classList.contains("less-content")){t.classList.remove("less-content"),tn(t.parentElement);let e=t.querySelector("input.form-email");setTimeout(()=>{e&&(e.click(),e.focus())},150)}else t.classList.add("less-content")},Ja=function(t){t.onclick=function(){},t.classList.add(wi),t.innerHTML="<span></span>"+e.BUTTON.OR+"<span></span>",t.classList.add("continue-or")},eo=function(e,t){F("register-form");let n=t.settings.invite_required,i=t.settings.discovery_required;n||i?ao(e,t):to(e,t)},to=function(t,n){_o(t,!1);let a,o=V(),r=t.parentElement,s=fe(zn);m||(a=st(e.REGISTER.TITLE,e.REGISTER.CONTENT),s.appendChild(a)),s.appendChild(et(o,!0));let{list:l,suggested_list:d,suggested:u,local:p}=fo(n,!0),f={button_theme:i.button_theme,suggested:u,email_address:o,register:!0};if((l||p||c)&&((r.classList.contains("breadbutter-incognito")||r.classList.contains("breadbutter-email"))&&(r=r.closest("."+qn)),A(r),r.appendChild(s)),l&&(!m||m&&!c)){if(fe(Kn),1!=l.length||u||(u=l[0].type,d=[l[0]]),u&&"local"!=u){let t=fe(Kn);t.classList.add("register-suggested");let n=Object.assign({},f);n.button_theme=!1;let{container:i,error:a}=cn.getButtonLists(d,n);if(t.append(i),s.append(t),p||c){let t=Ke(e.REGISTER.OR_LOCAL);s.appendChild(t)}}else{let t=Ke(e.REGISTER.FILL_FORM);s.appendChild(t),a&&a.querySelector(".form-subtitle").remove()}p?so(s):c&&lo(s,function(e){let t=e.querySelector("."+_i);m?ie(t,!0):Ue(t,!0)}),we(s,!1,!0)}else if(p&&(!m||m&&!c))ro(r,!1);else if(c){if(l)if(fe(Kn),1!=l.length||u||(u=l[0].type,d=[l[0]]),u&&"local"!=u){let t=fe(Kn);t.classList.add("register-suggested");let n=Object.assign({},f);n.button_theme=!1;let{container:i,error:a}=cn.getButtonLists(d,n);t.append(i),s.append(t);let o=Ke(e.REGISTER.OR_LOCAL);s.appendChild(o)}else{a&&a.querySelector(".form-subtitle").remove();let t=Ke(e.REGISTER.FILL_FORM);s.appendChild(t)}lo(s,function(e){let t=e.querySelector("."+_i);m?ie(t,!0):Ue(t,!0)}),we(s,!1,!0)}},no=function(e,t){_o(e,!0);let n=e.parentElement;n.classList.contains(oi)||(n=n.closest("."+oi)),A(n),F(wa);let a=fe($n),o=fe(di);a.appendChild(o);let r=fe(si);g=i.include_name&&L,g&&r.appendChild(lt()),r.appendChild(ct(!1,za)),o.appendChild(r),we(a,!1,!1),n.classList.add("breadbutter-advance-identify"),n.appendChild(a)},io=(e,t)=>{let n=!1,i=document.querySelector(".breadbutter-popup");if(i){let t=i.getBoundingClientRect(),a=i.style.bottom?window.innerHeight-t.bottom:t.top,o=46;{let t=50,i=175,r=50;window.innerHeight-t-e*o-i-r-a<=0&&(n=!0)}C&&(n=!1,window.innerHeight-e*o<0&&(n=!0))}return n},ao=function(t,n){_o(t,!1);let a=V(),o=t.parentElement,r=fe(zn),s=st(e.REGISTER.TITLE,e.REGISTER.CONTENT);r.appendChild(s),r.appendChild(et(a,!0));let{list:l,suggested_list:d,suggested:u,local:p}=fo(n,!0),m=i.button_theme,f=l.length;window.innerHeight-46*f-500<=0&&(m="round-icons"),io(f)&&(m="round-icons");let _={button_theme:m,suggested:u,email_address:a,register:!0};if((l||p)&&(A(o),o.appendChild(r)),l){let t=fe(Kn);if(1!=l.length||u||(u=l[0].type,d=[l[0]]),u&&"local"!=u){let n=fe(Kn);n.classList.add("register-suggested");let i=Object.assign({},_);i.button_theme=!1;let{container:a,error:o}=cn.getButtonLists(d,i);n.append(a),r.append(n),l.length>1&&t.append(Ke(e.BUTTON.USE_DIFFERENT_IDP))}else t.append(Ke(e.BUTTON.SELECT_IDP_SIGN_UP));const n=cn.getButtonLists(l,_).container;if(l.length>
11?t.append(n):u||t.append(n),p){let e=ht(function(e){ro(o)});t.appendChild(e)}else if(c){let e=ht(function(e){oo(o)},!0);t.appendChild(e)}0!=t.children.length&&r.appendChild(t),we(r,!1,!0,!0)}else p&&ro(o)},oo=function(t){let n=V(),i=fe(jn),a=st(e.REGISTER.TITLE,e.REGISTER.CONTENT_2);i.appendChild(a),i.appendChild(et(n,!0)),lo(i,function(e){let t=e.querySelector("."+_i);m?ie(t,!0):Ue(t,!0)}),we(i,!1,!0),A(t),t.appendChild(i)},ro=function(t,n){let i=ye(t,{});!n&&i.pin&&(n=i.pin);let a=V(),o=fe(jn),r=st(e.REGISTER.TITLE,e.REGISTER.CONTENT_2);o.appendChild(r),o.appendChild(et(a,!0)),n&&o.appendChild(at(n)),o.appendChild(Qe()),o.appendChild(Je());let s=ot(Da,e.PLACEHOLDER.PASSWORD);s.classList.add(Bi),o.appendChild(s);let l=ot(Ba,e.PLACEHOLDER.CONFIRM_PASSWORD);l.classList.add(Gi),o.appendChild(l),o.appendChild(jt(!0)),o.appendChild(gt(Wa)),we(o,!1,!0),A(t),t.appendChild(o)},so=function(t){t.appendChild(Qe()),t.appendChild(Je());let n=ot(Da,e.PLACEHOLDER.PASSWORD);n.classList.add(Bi),t.appendChild(n);let i=ot(Ba,e.PLACEHOLDER.CONFIRM_PASSWORD);return i.classList.add(Gi),t.appendChild(i),t.appendChild(jt(!0)),t.appendChild(gt(Wa)),t},lo=function(e,t,n){e.appendChild(Qe()),e.appendChild(Je(t));let i=gt;return e.appendChild(i(e=>{const n=e.currentTarget.parentElement.parentElement;t&&t(n)})),e},co=function(e){if(a)return;const t=e.currentTarget,n=t.parentElement,i=n.parentElement;i.classList.remove("alert"),t.classList.contains("form-alert-confirm")?(i.removeChild(n),ro(i.parentElement)):i.removeChild(n)},uo=function(t){if(a)return;const n=t.currentTarget,i=n.parentElement;let o="";Na[n.suggested]&&(o=Na[n.suggested].name),M(i.parentElement,e.ERROR.NON_LOCAL_LOGIN,{provider:o},co)},po=function(t,n){console.debug("goLogin"),F("login-form"),_o(t,!1),go(t,n);let i=V(),a=t.parentElement;a.classList.contains(qn)||(a=a.closest("."+qn));let o=fe(Vn),r=st(e.LOGIN.TITLE);Zt(r),o.appendChild(r),o.appendChild(et(i,!0));let{list:s,suggested_list:l,suggested:c,local:d}=fo(n);if((s||d)&&(A(a),a.appendChild(o)),d){o.appendChild(ot(Ya,e.PLACEHOLDER.PASSWD));let t=function(t){let n=fe(Zn),i=fe(Qn),a=fe(Jn),o=fe(Jn);i.appendChild(qe(e.FORGOT_PASSWORD.TITLE));let r=Ve(e.FORGOT_PASSWORD.CONTENT);r.classList.add(da);let s=Ve(e.FORGOT_PASSWORD.CONTENT_2);s.classList.add(ua),i.appendChild(r),i.appendChild(s);let l=et(t,!1,Ua);return l.classList.add(da),i.appendChild(l),a.appendChild(mt(Pa)),a.appendChild(ut(e.BUTTON.CANCEL,ea,Ra)),a.classList.add(da),o.appendChild(ut(e.BUTTON.RETURN_TO_LOGIN,Di,En)),o.classList.add(ua),n.appendChild(i),n.appendChild(a),n.appendChild(o),rt(n),n}(i);a.appendChild(t)}if("local"==c||!s&&d){F(Ta),o.classList.add("local-login");const e=N(o,Bi);e&&e.focus()}let u={button_theme:!1,email_address:i};if(s){_o(a,!0),go(a,n);let t=fe(Kn);t.classList.add(la),n.user_profile&&l.length&&(n.user_profile.profile_image_url&&(l[0].profile_image_url=n.user_profile.profile_image_url),n.user_profile.first_name&&(l[0].alias=n.user_profile.first_name));let i=cn.getButtonLists(l,u);i.container.classList.add(ca),i.container.classList.add("bb-collapsed"),t.append(i.container),i=cn.getButtonLists(s,u);let r=i.container;if(r.classList.add("collapsible"),r.classList.add("hide"),c&&r.classList.add(c),s.length>1||1==s.length&&d){!function(e){let t=N(e,ca),n=cn.getMoreButton(_n);t.prepend(n)}(t);let n=Ke(e.BUTTON.CONTINUE_WITH);n.classList.add("no-local"),o.appendChild(n),Lo(a,"scrolling",function(){!function(e){if(!e.parentElement.classList.contains("local-login")){const t=N(e,ca),n=N(e,"collapsible");t&&t.classList.add("bb-collapsed"),n&&n.classList.add("hide")}}(t)})}if(t.append(r),o.appendChild(t),d){let e;"local"==c?(mo(r),r.classList.add("suggest-local"),vn(t)):we(o,!1,!1,!1,!0),e=cn.buttons(d,u),r.appendChild(e),n.user_profile&&!n.user_profile.has_password?(e.suggested=c,e.onclick=uo):e.onclick=hn}else we(o,!1,!1,!1,!0)}else if(d){let e=fe(Kn),{container:t,error:n}=cn.getButtonLists([],u);t.classList.add(ca),e.append(t),o.appendChild(e),vn(e),we(o,!0,!1,!1,"local"!=c)}else{let t=e.ERROR.NO_PROVIDER;M(a,t,!1,$a)}o.appendChild(Lt(nn))},mo=function(e){if(F(Ta),_o(e,!1),a)return;const t=e.parentElement.parentElement;for(let t=0;t<Sa.length;t++)e.classList.remove(Sa[t]);e.classList.add("local");let n=e.parentElement,i=N(n,$i);i&&i.classList.add("hide");let o=N(n,"collapsible");o&&o.classList.add("hide");let r=N(n,ca);r&&r.classList.add("bb-collapsed"),we(t,!0),t.classList.add("local-login");const s=N(t,Si);if(s){const e=N(s,Bi);e&&e.focus()}},fo=function(e,t){let n=[],i=[],a=!1,o=!1,r=[],s=!1;if(e&&e.suggested_provider&&(Na[e.suggested_provider.idp]&&(i.push(e.suggested_provider),r.push(e.suggested_provider)),a=e.suggested_provider.idp,s=e.suggested_provider.idp),e&&e.providers)for(let t=0;t<e.providers.length;t++){let i=e.providers[t];Na[i.idp]&&n.push(i)}return d&&(o=Na[Ia.LOCAL]),t||a||(e&&e.user_profile&&e.user_profile.has_password&&(a=Ia.LOCAL,o?i.push(o):a=!1),!a&&n.length&&(a=n[0].idp,Na[a]&&i.push(Na[a]))),0===n.length&&(n=!1),{list:n,suggested_list:i,suggested:a,api_suggested_list:r,api_suggested:s,local:o}},_o=function(e,t){let n=Ce(e,"adjustHeader");"function"==typeof n&&n(t)},go=function(e,t){let n=Ce(e,"onLogin");"function"==typeof n&&n(function(e){let t=e.settings.invite_required,n=e.settings.discovery_required;return!t&&!n&&he(e)}(t))},Lo=function(e,t,n){let i=Ce(e,"addEvent");"function"==typeof i&&i(t,n)},bo=function(e,t){let n=Ce(e,"onBlur");return"function"==typeof n&&n(t),n},ho=function(e){return Ce(e,"isContinueWith")};this.optInForm=function(e,t){m=!0,H(t),X(n=>{t.email_address=V(t.email_address),t.email_address=$(t.email_address,n),ae(e,n,t)})},this.addForm=function(e,t){"function"==typeof t.onFocus&&(se=t.onFocus),"function"==typeof t.onToggleMobile&&(le=t.onToggleMobile),H(t),X(n=>{t.email_address=V(t.email_address),t.email_address=$(t.email_address,n),ae(e,n,t)})},this.addCustomForm=function(t,n){n.adjustHeader(!1),H(n),V(n.email_address);let i=te(n);n.adjustHeader(!1),function(e,t,n,i){n.appendChild(i),_o(n,!1),ge(e,t,n)}(t,n,i,function(t){t.email_address,F(ya);let n=fe("breadbutter-custom-data");n.options=t;let i=fe("breadbutter-custom-data-form");
1n.appendChild(st(e.CUSTOM_DATA.HEADER,e.CUSTOM_DATA.SUB_HEADER));for(let e=0;e<t.custom_data.length;e++){let n=t.custom_data[e];switch(n.type){case"textbox":i.appendChild(ze(n));break;case"checkbox":i.appendChild(Ze(n))}}return i.appendChild(ut(e.CUSTOM_DATA.SUBMIT,sa,qt)),n.appendChild(i),rt(n),n}(n))},this.addRegister=function(e,t){H(t),V(t.email_address),t.pin&&t.pin,a=!0,X(n=>{a=!1,t.email_address=V(t.email_address),ae(e,n,t)})},this.addReset=function(t,n){H(n);let i=V(n.email_address),o=!!n.pin&&n.pin,r=te(n);a=!0,J(i,function(s){a=!1,pe(s);let l=function(t,n){F("reset-form");let i=fe("breadbutter-reset"),a=fe("breadbutter-reset-form");a.appendChild(st(e.RESET_PASSWORD.TITLE,e.RESET_PASSWORD.CONTENT));let o=et(t,!0);Y(t),a.appendChild(o),a.appendChild(at(n));let r=ot(Hn,e.PLACEHOLDER.NEW_PASSWORD);r.classList.add(Bi),a.appendChild(r);let s=ot(Gn,e.PLACEHOLDER.NEW_CONFIRM_PASSWORD);var l;s.classList.add(Gi),a.appendChild(s),a.appendChild(jt()),a.appendChild(function(t){let n=be(Hi);return n.innerText=e.BUTTON.SET_PASSWORD,t&&(n.onclick=t),n.classList.add("disabled"),n}(Un)),a.appendChild((l=Dn,ut(e.BUTTON.RESEND_EMAIL_INSTRUCTION,Di,l))),a.appendChild(ut(e.BUTTON.CANCEL,ea,Bn));let c=r.querySelector('input[type="password"]');Aa(c);let d=fe(Qn);return d.appendChild(qe(e.FORGOT_PASSWORD.TITLE)),d.appendChild(Ve(e.FORGOT_PASSWORD.CONTENT_2)),d.appendChild(ut(e.BUTTON.RETURN_TO_LOGIN,Di,Bn)),i.appendChild(a),i.appendChild(d),rt(i),i}(i,o);Zt(N(l,Ii)),r.appendChild(l),ge(t,n,r),_o(r,!1)})},this.addMagicLink=function(e,t){H(t);let n=V(t.email_address),i=!!t.pin&&t.pin,o=te(t);a=!0,J(n,function(r){a=!1,pe(r);let s=vt(n,!1,i);o.appendChild(s),ge(e,t,o),_o(o,!0)})},this.addConfirm=function(e,t){H(t);let n=V(t.email_address),i=!!t.pin&&t.pin,a=te(t),o=zt(n,i);a.appendChild(o),_o(a,!1),ge(e,t,a),i&&Nn(o)},this.addContactUs=function(t,n){"function"==typeof n.onLogout&&(de=n.onLogout),m=!1,f=!0,H(n);let i=te(n);i.classList.add("breadbutter-contact-popup"),_o(i,!1),ge(t,n,i),X(t=>{let a=E()||y(t);if(i.parentElement.classList.add("contactus"),a){let t=p.first_name?p.first_name:"",n=t?e.CONTACT_US.SUB_HEADER:e.CONTACT_US.SUB_HEADER_2;n=j({FIRST_NAME:t},n),i.parentElement.prepend(st(n))}else i.parentElement.prepend(st(e.CONTACT_US.HEADER));if(i.classList.add(mi),n.email_address=V(n.email_address),n.email_address=$(n.email_address,t),!a){let e=oe(t,n.email_address,n);i.appendChild(e),n.email_address?(Vt.start(i,!0),re(n.email_address,e).then(()=>{Vt.remove(),a||setTimeout(()=>{Kt(i)},550)})):a||setTimeout(()=>{Kt(i)},550)}let o=function(t,n,i){let a=E()||y(i);a?ke()&&localStorage.removeItem("breadbutter-start-contact-sign-in-"+btoa(document.location.pathname)):ke()&&localStorage.setItem("breadbutter-start-contact-sign-in-"+btoa(document.location.pathname),!0);let o=fe(pi),r=fe(ui);if(r.appendChild(function(t){let n=Le("textarea",$i);return n.placeholder=e.CONTACT_US.MESSAGE_INPUT,n.addEventListener("focus",function(e){t(0,e),this.classList.add("focus")}),n.addEventListener("blur",function(e){t(0,e)}),n}(function(e,n){a||(n.stopPropagation(),n.target.blur(),Kt(t))})),a){n.show_phone&&r.appendChild(function(){let t=fe(Oi);t.classList.add(zi);let n=Le("input",zi);return n.type="tel",n.placeholder=e.CONTACT_US.PHONE_NUMBER,ce(n),t.appendChild(n),t}()),n.show_company_name&&r.appendChild(function(){let t=fe(Oi);t.classList.add(ji);let n=Le("input",ji);return n.placeholder=e.CONTACT_US.COMPANY_NAME,ce(n),t.appendChild(n),t}());let t=fe("breadbutter-spacer");r.appendChild(t)}else o.classList.add("bb-not-verified");o.appendChild(r);let s=e.BUTTON.SUBMIT;if(a){let t=p.first_name?p.first_name:"";s=j({FIRST_NAME:t},e.CONTACT_US.BUTTON)}return o.appendChild(ut(s,sa,e=>{a?Yt(o):Kt(t)})),a&&!y(i)&&o.appendChild(ut(e.BUTTON.SIGN_OUT,"sign-out-link",async function(){await Bt.resetDeviceVerification();let e=!0;"function"==typeof de&&(e=de()),e&&(l(),window.location.reload())})),o}(i,n,t);i.appendChild(o)})},this.deIdentification=function(e,t){t.adjustHeader(!1),H(t);let n=V(t.email_address);const i=function(e,t,n,i){n.appendChild(i),_o(n,!1),ge(e,t,n)};let a=te(t);if(t.adjustHeader(!1),t.pin&&t.mode){let n=$t(t);i(e,t,a,n),t.pin&&It(n)}else J(n,n=>{t.email_address=$(t.email_address,n);let o=Ft(n,t);i(e,t,a,o)})},this.showAlert=M,this.checkProviders=X,this.init=function(e){/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)&&(C=!0),H(e),function(e){e.app_name&&(n=e.app_name)}(e),cn.assignFunc({magic_link:xe})}},ka="breadbutter-popup",Ra="breadbutter-popup-holder",Ma="breadbutter-popup-header",Pa="breadbutter-popup-wrapper",xa="breadbutter-floating-arrow-holder",Ua="breadbutter-floating-text-holder",Da="breadbutter-blur-header",Ba="popup-title",Ga={show_login_focus:!0,hide_on_focus:!0,hide_focus_text:!1},Ha=function(){let e={},t=!1,n=!1,i=!1,a=[];let o=!1;const r=function(e){let t=!1;return e&&(t=document.createElement("div"),t.classList.add(e)),t},s=function(e){let t=!1;return e&&(t=document.createElement("span"),t.classList.add(e)),t},l=function(e){return Se(e)};let c=!1,d=!1,u=!1;const p=function(){/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)&&(u=!0)};let m={enabled:!0,distance:5,original:30},f=!1,_=!1;const g=function(e){e.onProvider=w,e.onFormEntry=T,e.onLogin=E,e.onBlur=h,e.adjustHeader=v,e.addEvent=C,e.forceQuit=ce,e.onFocus=b,e.onToggleMobile=ie,f=!!e.skipScrolling&&e.skipScrolling,e.isContinueWith=!0,y={},"function"==typeof e.internalOnFormClose&&a.push(e.internalOnFormClose),"function"==typeof e.onFormClose&&a.push(e.onFormClose),a.push(()=>{e.contact_us&&ke()&&localStorage.removeItem("breadbutter-start-contact-sign-in-"+btoa(document.location.pathname))}),void 0!==e.show_login_focus?Ga.show_login_focus=e.show_login_focus:Ga.show_login_focus=!0,void 0!==e.hide_focus_text?Ga.hide_focus_text=e.hide_focus_text:Ga.hide_focus_text=!1,void 0!==e.hide_on_focus?Ga.hide_on_focus=e.hide_on_focus:Ga.hide_on_focus=!0,m.enabled=e.continue_with_hover,m.distance=e.continue_with_hover_distance,me();let t=r(ka);u?t.classList.add("bb-mobile-device"):e.continue_with_position?"center"==e.continue_with_position?(t.style.top="50%",t.style.left="50%",t.style.transform="translate(-50%, -50%)"):(e.continue_with_position.top?(t.style.top=l(e.continue_with_position.top),m.original=e.continue_with_position.top):e.continue_with_position.bottom?(t.style.bottom=l(e.continue_with_position.bottom),m.enabled=!1):t.style.top="30px",e.continue_with_position.left?t.style.left=l(e.continue_with_position.left):e.continue_with_position.right?t.style.right=l(e.continue_with_position.right):t.style.right="30px"):(t.style.top="30px",t.style.right="30px");let i=r(Ma),o=r(Ra),s=r(Pa);return t.appendChild(s),s.appendChild(i),s.appendChild(o),u&&!d&&(i.appendChild(Q()),e.collapse_first&&(ne(t),setTimeout(()=>{de()},1)),A()),i.appendChild(Z()),(!u&&!e.locked||d)&&i.appendChild(X()),u||c||e.locked||d||O(),document.body.append(t),n=t,d&&t.classList.add("contactus-popup"),u&&e.collapse_first||B(e.locked),t.style.zIndex=pe(),_=e,o},L=function(e,t){me();let i=r(ka);i.classList.add("bb-mobile-device"),i.classList.add("bb-mobile-profile");let a=r(Ma),o=r(Ra),s=r(Pa);return i.appendChild(s),s.appendChild(a),s.appendChild(o),a.appendChild(Q()),document.body.append(i),n=i,i.style.zIndex=pe(),_=e,o},b=function(e){u&&(e?n.classList.add("bb-input-focusing"):n.classList.remove("bb-input-focusing"))},h=function(e){let t=le(n,Pa);if(e){let n=le(t,Da);n||(n=r(Da),t.appendChild(n)),n.style.bottom=e+"px"}else{let e=le(t,Da);e&&e.remove()}},v=function(e){if(d)return;let t=le(n,Pa),i=le(t,Ma),a=le(i,Ba);e?(a.innerText=K(),a.classList.remove("bb-hide")):(a.innerText="",a.classList.add("bb-hide"))},E=function(e){if(d)return;let t=le(n,Pa),i=le(t,Ma);le(i,Ba).innerText=Y()},w=function(e){if(n)if(e)n.classList.add("advance");else{let e=le(n,Pa);le(e,Ra).classList.add("basic")}},T=function(e){if(!n)return;let t=le(n,Pa),i=le(t,Ra),a=le(n,Ua);const o=new RegExp("-form");let r=[];for(let e=0;e<i.classList.length;e++){let t=i.classList[e];o.test(t)&&r.push(t)}for(let e=0;e<r.length;e++)i.classList.remove(r[e]),a&&a.classList.remove(r[e]);i.classList.add(e),u&&a&&a.classList.add(e),i.style.height=null};let y={};const C=function(e,t){y[e]||(y[e]=[]),y[e].push(t)};let I=!1,N=!1,S=!1;const O=function(){R(),k(e=>{D(e),x(e)})},A=function(){M(),k(e=>{const t=document.querySelector(".breadbutter-mask");t&&t.checkVisibility()&&!t.classList.contains("breadbutter-mask-transparent")||document.getElementsByClassName("bb-input-focusing").length>0||(ee(n),ae())})},k=function(e){let t=!1;document.addEventListener("pointerdown",e=>{t=!!e.target.closest(".breadbutter-ui, .breadbutter-forms, .breadbutter-popup")},!0),document.addEventListener("pointerup",()=>{setTimeout(()=>{t=!1},200)},!0),window.addEventListener("scroll",function(i){n&&(t||e(i))},{capture:!0,passive:!0})},R=function(){document.addEventListener("wheel",e=>{const t=e.target.closest(".breadbutter-ui, .breadbutter-forms, .breadbutter-popup, .breadbutter-mask:not(.breadbutter-mask-transparent)");if(t){const n=t.scrollTop,i=t.scrollHeight,a=t.clientHeight,o=e.deltaY;(n<=0&&o<0||n+a>=i&&o>0)&&(e.preventDefault(),e.stopPropagation())}},{passive:!1})},M=function(){document.addEventListener("pointerdown",e=>{e.target.closest(".breadbutter-ui, .breadbutter-forms, .breadbutter-popup")},!0),document.addEventListener("pointerup",()=>{setTimeout(()=>{},200)},!0)};let P=!1;const x=function(e){let t=window.innerHeight/10,n=e.target.scrollTop?e.target.scrollTop:e.target.scrollingElement?e.target.scrollingElement.scrollTop:0;e.target==document&&(n=window.scrollY),clearTimeout(S),0==I?(N=n,I=!0):Math.abs(n-N)>t&&n>P&&(f||U(),function(e){if(y&&y[e])for(let t=0;t<y[e].length;t++){let n=y[e][t];"function"==typeof n&&n(void 0)}}("scrolling")),P=n,S=setTimeout(function(){I=!1,N=!1,P=!1},1500)},U=function(){let e=le(n,Pa),t=le(e,Ra),i=t.firstElementChild.offsetHeight;t.classList.contains("scrolling")||(t.style.height=i+"px"),setTimeout(function(){t.classList.add("scrolling"),setTimeout(()=>{t.classList.add("scrolling-end")},250)},50)},D=function(e){let t=e.target.scrollTop?e.target.scrollTop:e.target.scrollingElement?e.target.scrollingElement.scrollTop:e.target==document?window.scrollY:0;
1if(m.enabled){let e=m.original;e-=t,e<=m.distance&&(e=m.distance),n.style.top=l(e)}},B=function(e){Ga.show_login_focus?(ue(),i=re(e),i.style.zIndex=pe(),document.body.append(i),Ga.hide_focus_text||G()):u&&(ue(),i=re(e),i.classList.add("breadbutter-mask-transparent"),i.onclick=te,i.style.zIndex=pe(),document.body.append(i))},G=function(){let e=n;const t=window.innerWidth,i=window.innerHeight,a=e.offsetLeft,o=t-(e.offsetLeft+e.offsetWidth),r=e.offsetTop,s=i-(e.offsetTop+e.offsetHeight);let l=!1,c=null,d=null,u=!1;(a>650||o>650)&&(l=!0),i>300&&(u=!0),e.style.top&&(d=!0),e.style.bottom&&(d=!1),e.style.right&&(c=!0),e.style.left&&(c=!1),null===c&&(c=a>=o),null===d&&(d=s>=r);let p=H();n.appendChild(p),l?(p.classList.add(c?"bb-left":"bb-right"),p.classList.add(d?"bb-bottom":"bb-top"),d?(p.appendChild($(c,d)),p.appendChild(W()),p.appendChild(F()),p.appendChild(q())):(p.appendChild(W()),p.appendChild(F()),p.appendChild(q()),p.appendChild($(c,d)))):u?(p.classList.add("mobile"),p.appendChild(W()),p.appendChild(F()),p.appendChild(q()),p.appendChild(V())):(p.classList.add("nowhere"),p.appendChild(W()),p.appendChild(F()),p.appendChild(q()))},H=function(){return r(Ua)},W=function(){let t=r("breadbutter-floating-text-title");return t.innerHTML=e.POPUP.TEXT_1,t},F=function(){let t=r("breadbutter-floating-text");return t.innerHTML=e.POPUP.TEXT_2,t},q=function(){let t=r("breadbutter-floating-message-holder"),n=s("breadbutter-floating-message");n.innerHTML=e.POPUP.TEXT_3;let i=s("breadbutter-floating-more");return i.innerHTML=e.POPUP.MORE,i.addEventListener("click",function(){n.innerHTML=e.POPUP.TEXT_3_2,this.remove()}),t.appendChild(n),t.appendChild(i),t},$=function(e,t){let n=r(xa),i=!1;return i=e?t?'\n<svg xmlns="http://www.w3.org/2000/svg" width="85.58" height="50.443" viewBox="0 0 85.58 50.443" style="transform:scale(-1,1)">\n <g id="Group_2254" data-name="Group 2254" transform="translate(-1661.785 6446.49) rotate(-96)">\n <path id="Path_1103" data-name="Path 1103" d="M555.22,773.325s-27.778,5.908-24.813,63.412" transform="matrix(-0.966, -0.259, 0.259, -0.966, 6517.896, 3290.785)" fill="none" stroke-linecap="round" stroke-width="4"/>\n <path id="Polygon_1" data-name="Polygon 1" d="M10.264,3.039a2,2,0,0,1,3.473,0L22.29,18.008A2,2,0,0,1,20.554,21H3.446A2,2,0,0,1,1.71,18.008Z" transform="translate(6213.694 2324.025) rotate(11)" />\n </g>\n</svg>\n':'\n<svg xmlns="http://www.w3.org/2000/svg" width="85.58" height="50.443" viewBox="0 0 85.58 50.443" style="transform:scale(-1,-1)">\n <g id="Group_2254" data-name="Group 2254" transform="translate(-1661.785 6446.49) rotate(-96)">\n <path id="Path_1103" data-name="Path 1103" d="M555.22,773.325s-27.778,5.908-24.813,63.412" transform="matrix(-0.966, -0.259, 0.259, -0.966, 6517.896, 3290.785)" fill="none" stroke-linecap="round" stroke-width="4"/>\n <path id="Polygon_1" data-name="Polygon 1" d="M10.264,3.039a2,2,0,0,1,3.473,0L22.29,18.008A2,2,0,0,1,20.554,21H3.446A2,2,0,0,1,1.71,18.008Z" transform="translate(6213.694 2324.025) rotate(11)" />\n </g>\n</svg>\n':t?'\n<svg xmlns="http://www.w3.org/2000/svg" width="85.58" height="50.443" viewBox="0 0 85.58 50.443">\n <g id="Group_2254" data-name="Group 2254" transform="translate(-1661.785 6446.49) rotate(-96)">\n <path id="Path_1103" data-name="Path 1103" d="M555.22,773.325s-27.778,5.908-24.813,63.412" transform="matrix(-0.966, -0.259, 0.259, -0.966, 6517.896, 3290.785)" fill="none" stroke-linecap="round" stroke-width="4"/>\n <path id="Polygon_1" data-name="Polygon 1" d="M10.264,3.039a2,2,0,0,1,3.473,0L22.29,18.008A2,2,0,0,1,20.554,21H3.446A2,2,0,0,1,1.71,18.008Z" transform="translate(6213.694 2324.025) rotate(11)" />\n </g>\n</svg>\n':'\n<svg xmlns="http://www.w3.org/2000/svg" width="85.58" height="50.443" viewBox="0 0 85.58 50.443" style="transform:scale(1,-1)">\n <g id="Group_2254" data-name="Group 2254" transform="translate(-1661.785 6446.49) rotate(-96)">\n <path id="Path_1103" data-name="Path 1103" d="M555.22,773.325s-27.778,5.908-24.813,63.412" transform="matrix(-0.966, -0.259, 0.259, -0.966, 6517.896, 3290.785)" fill="none" stroke-linecap="round" stroke-width="4"/>\n <path id="Polygon_1" data-name="Polygon 1" d="M10.264,3.039a2,2,0,0,1,3.473,0L22.29,18.008A2,2,0,0,1,20.554,21H3.446A2,2,0,0,1,1.71,18.008Z" transform="translate(6213.694 2324.025) rotate(11)" />\n </g>\n</svg>\n',n.innerHTML=i,n},V=function(){let e=r(xa);return e.innerHTML='\n<svg xmlns="http://www.w3.org/2000/svg" width="85.58" height="50.443" viewBox="0 0 85.58 50.443" style="transform:scale(.5,-.5)rotate(85deg)">\n <g id="Group_2254" data-name="Group 2254" transform="translate(-1661.785 6446.49) rotate(-96)">\n <path id="Path_1103" data-name="Path 1103" d="M555.22,773.325s-27.778,5.908-24.813,63.412" transform="matrix(-0.966, -0.259, 0.259, -0.966, 6517.896, 3290.785)" fill="none" stroke-linecap="round" stroke-width="4"/>\n <path id="Polygon_1" data-name="Polygon 1" d="M10.264,3.039a2,2,0,0,1,3.473,0L22.29,18.008A2,2,0,0,1,20.554,21H3.446A2,2,0,0,1,1.71,18.008Z" transform="translate(6213.694 2324.025) rotate(11)" />\n </g>\n</svg>\n',e},Y=function(){let n=e.POPUP.HEADER_BACK_1;return t&&(n=j({APP_NAME:t},e.POPUP.HEADER_BACK_2)),n},K=function(){let n=e.POPUP.HEADER_1;return t&&(n=j({APP_NAME:t},e.POPUP.HEADER_2)),d&&(n=""),n},Z=function(){let e=K(),t=Le("div",Ba);return t.innerHTML=e,d&&t.classList.add("bb-hide"),t},X=function(){let e=be("popup-close");return e.innerHTML=se(),e.onclick=ce,e},Q=function(){let e=Le("div","bb-mobile-handler");return e.onclick=ie,e.appendChild(Le("div","bb-mobile-dropdown")),e};let J=!1;function ee(e){if(!J&&!e.classList.contains("bb-mobile-collpase")){J=!0;let t=e.scrollHeight,i=e.style.transition;e.style.transition="",requestAnimationFrame(function(){e.style.height=t+"px",e.style.transition=i,requestAnimationFrame(function(){e.style.height="30px"})}),n.setAttribute("transitioning","true"),setTimeout(function(){n.setAttribute("transitioning","false"),e.classList.add("bb-mobile-collpase"),J=!1,de()},500),e.setAttribute("data-collapsed","true")}}const te=function(e){let t=n.querySelector("."+Ra),i=t.querySelector(".bb-mobile-collapse"),a=t.querySelector(".bb-limit-providers"),o=n.offsetHeight,r=n.style.transition;n.style.transition="",requestAnimationFrame(function(){n.style.height=o+"px",n.style.transition=r,requestAnimationFrame(function(){n.style.height="30px"})}),n.setAttribute("transitioning","true"),setTimeout(function(){n.setAttribute("transitioning","false"),n.classList.add("bb-mobile-collpase"),(i||a)&&(i&&i.classList.remove("bb-mobile-collapse"),a&&a.classList.remove("bb-limit-providers")),de()},500),n.setAttribute("data-collapsed","true")},ne=function(e){e.querySelector("."+Ra),e.setAttribute("data-collapsed","true"),e.setAttribute("transitioning","false"),e.classList.add("bb-mobile-collpase")},ie=function(e){let t="true"===n.getAttribute("data-collapsed"),i=n.querySelector("."+Ra),a=i.querySelector(".bb-mobile-collapse"),o=i.querySelector(".bb-limit-providers");if(t||!a&&!o)t?(function(e){let t=e.scrollHeight;function i(t){e.removeEventListener("transitionend",i),e.style.height=null}e.style.height=t+"px",e.addEventListener("transitionend",function(e){i()}),n.setAttribute("transitioning","true"),setTimeout(function(){n.setAttribute("transitioning","false"),e.classList.remove("bb-mobile-collpase")}
1,500),e.setAttribute("data-collapsed","false")}(n),n.setAttribute("data-collapsed","false"),oe()):ee(n);else{if(n.classList.add("bb-provider-collapse"),a&&a.classList.remove("bb-mobile-collapse"),o&&o.classList.remove("bb-limit-providers"),"tiles"==_.button_theme){let e=le(n,Ua);e&&e.classList.add("bb-hide");let t=i.querySelector(".bb-more-button");t&&t.remove()}!function(e){let t=e.scrollHeight;function i(t){e.removeEventListener("transitionend",i),e.style.height=null}e.style.height=t+"px",e.addEventListener("transitionend",function(e){i()}),n.setAttribute("transitioning","true"),setTimeout(function(){n.setAttribute("transitioning","false"),e.classList.remove("bb-provider-collapse")},500),e.setAttribute("data-collapsed","false")}(n),oe()}ae()},ae=function(){o&&(clearTimeout(o),o=!1),setTimeout(()=>{n.querySelector("."+Ra).classList.remove("first-access")},1500)},oe=function(){if(u){let e=n.querySelector("input.form-email");e&&setTimeout(()=>{e.focus(),e.blur()},10)}},re=function(e){let t=r("breadbutter-mask");return Ga.hide_on_focus&&!e&&(t.onclick=ce),t},se=function(){return Oe()},le=function(e,t){let n=!1;for(let i=0;e.children&&i<e.children.length;i++)e.children[i].classList.contains(t)&&(n=e.children[i]);return n},ce=function(){if(n){me();for(let e=0;e<a.length;e++){let t=a[e];"function"==typeof t&&t("formclose")}}},de=function(){i&&ue()},ue=function(){if(i&&(i.parentElement.removeChild(i),i=!1),n){let e=le(n,Ua);e&&n.removeChild(e)}},me=function(){n&&(n.parentElement.removeChild(n),n=!1),ue()};this.addProfileWidget=function(e,t){let i=L(e);e.popup=!0,t(i);let a=!0;if(i.safeLocalStorage()){let e=localStorage.getItem("breadbutter-sdk-first-mobile-profile-time");e&&(e=>{const t=new Date(e),n=new Date;return t.getFullYear()===n.getFullYear()&&t.getMonth()===n.getMonth()&&t.getDate()===n.getDate()})(Number(e))&&(a=!1)}A(),a?(localStorage.setItem("breadbutter-sdk-first-mobile-profile-time",Date.now()),i.classList.add("first-access"),o=setTimeout(()=>{ee(n),ae()},2e3)):ne(n)},this.addForm=function(e,t){c=!1;let n=g(e);e.popup=!0,Vt.start(n,!0,!0),t.addForm(n,e)},this.addCustomForm=function(e,t){c=!0;let n=g(e);e.popup=!0,t.addCustomForm(n,e)},this.addRegister=function(e,t){c=!1;let n=g(e);e.popup=!0,t.addRegister(n,e)},this.addReset=function(e,t){c=!1;let n=g(e);e.popup=!0,t.addReset(n,e)},this.addConfirm=function(e,t){c=!1;let n=g(e);e.popup=!0,t.addConfirm(n,e)},this.addMagicLink=function(e,t){c=!1;let n=g(e);e.popup=!0,t.addMagicLink(n,e)},this.addContactUs=function(e,t){d=!0,c=!1;let n=g(e);e.popup=!0,t.addContactUs(n,e)},this.deIdentification=function(e,t){c=!0;let n=g(e);e.popup=!0,t.deIdentification(n,e)},this.init=function(n){(function(t){p(),function(t){let n=z(t.language,t.locale);n&&(e=n)}(t)})(n),function(e){e.app_name&&(t=e.app_name)}(n)},this.close=me},Wa="breadbutter-privacy-policy-confirm";let Fa,qa=!1,$a=!1;const Va=function(e){let t=!1;return e&&(t=document.createElement("div"),t.classList.add(e)),t},Ya=function(e){var t;ke()&&localStorage.setItem(Wa,1),t=function(){document.body.removeChild(qa)},Bt.createEvent(Fn.event_type.CUSTOM,{code:"privacy_policy"},{url:document.location.href},t)},Ka=function(){window.open($a)};var za=function(e){(function(){let e=!1;return ke()&&(e=localStorage.getItem(Wa),1!=e&&"1"!=e&&(e=!1)),e})()||(new Aa).checkProviders(function(t){t&&t.settings&&t.settings.privacy_policy_url&&($a=t.settings.privacy_policy_url,function(e){let t=z(e.language,e.locale);t&&(Fa=t)}(e),function(){let e=Va("breadbutter-policy"),t=Va("breadbutter-policy-holder"),n=Va("breadbutter-policy-content"),i=Va("breadbutter-policy-button-holder");e.appendChild(t),t.appendChild(n),t.appendChild(i),n.appendChild(function(){let e=Le("p","privacy_message");return e.innerHTML=Fa.PRIVACY_POLICY.CONTENT,e}()),i.appendChild(function(){let e=be("button-ok");return e.innerHTML=Fa.PRIVACY_POLICY.BUTTON_1,e.onclick=Ya,e}()),i.appendChild(function(){let e=be("button-read");return e.innerHTML=Fa.PRIVACY_POLICY.BUTTON_2,e.onclick=Ka,e}()),qa=e,document.body.append(qa)}())})};const ja="https://breadbutterprodcdnstor.blob.core.windows.net/images/";let Za={};const Xa=function(e){let t=e;return isNaN(e)||(t+="px"),t},Qa=function(e,t){let n="";for(let t=0;e.profile_tool_buttons&&e.profile_tool_buttons.length&&t<e.profile_tool_buttons.length;t++){let i=e.profile_tool_buttons[t],a=`style="${i.color?`color:${i.color};`:""} ${i.background_color?`background-color:${i.background_color};`:""}"`,o=i.target?i.target:"new";n+=`<button class="breadbutter-ui-profile-dashboard-custom-button" data-link="${i.link}" data-target="${o}" ${a}>${i.text}</button>`}return n},Ja=function(e){e.querySelectorAll(".breadbutter-ui-profile-dashboard-custom-button").forEach(e
1=>{e.onclick=function(){let e=this.getAttribute("data-link"),t=this.getAttribute("data-target");e&&e.length&&("new"==t?window.open(e,"_blank"):"self"==t&&window.open(e,"_self"))}})},eo=function(e,t){return e?`<div class="bb-default-avatar bb-${t}">${e[0].toUpperCase()}</div>`:'<svg data-v-84d03bbe="" class="default-avatar-svg" xmlns="http://www.w3.org/2000/svg" width="40" height="40" viewBox="0 0 40 40"><g data-name="Group 6439"><g data-name="Group 6438" transform="translate(-329 -2158)"><g data-name="Group 3232"><g data-name="Group 438"><g data-name="Ellipse 64" transform="translate(329 2158)" fill="#fff" stroke="#d0d8e2"><circle cx="20" cy="20" r="20" stroke="none"></circle><circle cx="20" cy="20" r="19.5" fill="none"></circle></g></g></g><circle data-name="Ellipse 571" cx="7" cy="7" r="7" transform="translate(342 2167)" fill="#d0d8e2"></circle><path data-name="Path 2398" d="M348.935 2182c-7.815 0-14.447 2.356-16.935 5.643a19.476 19.476 0 0 0 33.87 0c-2.488-3.287-9.12-5.643-16.935-5.643z" fill="#d0d8e2"></path></g></g></svg>'},to=function(){return`\n <div class="breadbutter-ui-continue-with-container">\n <div class="breadbutter-ui-profile-widget">\n <div class="breadbutter-ui-profile-avatar dark-grey"></div>\n <div class="breadbutter-ui-profile-name">${Za.UI.SIGNUP_IN}</div>\n </div>\n </div>\n `},no=function(e){let t;return t=e.length>17?"font10":e.length>16?"font11":e.length>15?"font12":e.length>14?"font13":e.length>13?"font14":e.length>12?"font15":"font16",t};let io=0;const ao=()=>Oe(),oo="breadbutter-sdk-last-success-event-code",ro=function(e){let t=!1;if(ke()){let n=oo+"-"+btoa(e);t=localStorage.getItem(n)}return t},so={},lo=function(e){so[e]&&clearTimeout(so[e]),so[e]=setTimeout(()=>{!function(e){if(ke()){let t=oo+"-"+btoa(e);localStorage.setItem(t,co(e))}}(e)},1e3)},co=function(e){return e+"_VIEWED"},uo=e=>(e=>{let t=ja,n=Number(e);(isNaN(n)||n<1||n>36)&&(n=1);let i=".png";return n>31&&(i=".svg"),n=String(n).padStart(2,"0"),t+"BB_OPT_IMAGE_"+n+i})(e);var po={init:function(e){(function(e){e.app_id&&e.app_id})(e),function(e){let t=z(e.language,e.locale);t&&(Za=t)}(e)},getContinueWithVerifiedUserHolder:function(e,t,n){!function(){let e=document.body.querySelector(".breadbutter-ui-continue-with-verified");e&&e.remove()}();let i=document.createElement("div");i.classList.add("breadbutter-ui-continue-with-verified");let a=!!e.profile_image_url&&e.profile_image_url,o="",r="",s=t&&t.idp?t.idp:"local";a?o='style="background-image:url('+a+'); border:none;"':r=eo(e.last_name||e.first_name||e.email_address,s);let l=!!e.first_name&&e.first_name;l||(l=e.email_address.split("@")[0]);let c=j({first_name:l},Za.UI.HELLO),d=no(c);return i.innerHTML=`\n <div class="breadbutter-ui-continue-with-container">\n <div class="breadbutter-ui-profile-widget">\n <div class="breadbutter-ui-profile-avatar" ${o}>${r}</div>\n <div class="breadbutter-ui-profile-name ${d}"><span>${c}</span></div>\n </div>\n </div>\n `,n.continue_with_position?(n.continue_with_position.top?i.style.top=Xa(n.continue_with_position.top):n.continue_with_position.bottom?i.style.bottom=Xa(n.continue_with_position.bottom):i.style.top="30px",n.continue_with_position.left?i.style.left=Xa(n.continue_with_position.left):n.continue_with_position.right?i.style.right=Xa(n.continue_with_position.right):i.style.right="30px"):(i.style.top="30px",i.style.right="30px"),i},getContinueWithSignInHolder:function(e){!function(){let e=document.body.querySelector(".breadbutter-ui-continue-with-logged-in");e&&e.remove()}();let t=document.createElement("div");t.classList.add("breadbutter-ui-continue-with-logged-in"),e.continue_with_position?(e.continue_with_position.top?t.style.top=Xa(e.continue_with_position.top):e.continue_with_position.bottom?t.style.bottom=Xa(e.continue_with_position.bottom):t.style.top="30px",e.continue_with_position.left?t.style.left=Xa(e.continue_with_position.left):e.continue_with_position.right?t.style.right=Xa(e.continue_with_position.right):t.style.right="30px"):(t.style.top="30px",t.style.right="30px");let n=me();return t.style.zIndex=n,t},getContinueWithSignInWidget:function(e,t,n,i){if("anonymous"==t.state)return to();let a=!!t.first_name&&t.first_name;a||(a=t.email_address.split("@")[0]);let o=j({first_name:a},Za.UI.HELLO),r=no(o),s=!!t.profile_image_url&&t.profile_image_url,l=!!t.first_name&&(t.first_name+" "+(t.last_name?t.last_name:"")).trim();!l&&t.email_address&&(l=t.email_address.split("@")[0]);let c="",d="",u=n&&n.idp?n.idp:"local";
1"identified"==t.state&&(u="identified",o=Za.UI.SIGNUP_IN,r=""),s?c='style="background-image:url('+s+'); border:none;"':d=eo(t.last_name||t.first_name||t.email_address,u);let p=t.email_address?t.email_address:"",m=Ee(u),f=document.createElement("div");f.classList.add("breadbutter-ui-continue-with-container"),f.innerHTML=`\n <div class="breadbutter-ui-profile-widget">\n <div class="breadbutter-ui-profile-avatar" ${c}>${d}</div>\n <div class="breadbutter-ui-profile-avatar-x">${ao()}</div>\n <div class="breadbutter-ui-profile-name ${r}"><span>${o}</span></div>\n </div>\n <div class="breadbutter-ui-profile-dashboard">\n <div class="breadbutter-ui-profile-dashboard-content">\n <div class="breadbutter-ui-profile-dashboard-header">\n <div class="breadbutter-ui-profile-dashboard-title">\n ${Za.UI.SIGN_IN_TITLE}\n </div>\n <div class="breadbutter-ui-profile-dashboard-detail">\n <div class="breadbutter-ui-profile-dashboard-provider">\n ${m} \n </div>\n <div class="breadbutter-ui-profile-dashboard-avatar" ${c}>\n ${d}\n </div>\n <div class="breadbutter-ui-profile-dashboard-profile">\n <div class="breadbutter-ui-profile-dashboard-name">\n ${l}\n </div>\n <div class="breadbutter-ui-profile-dashboard-email">\n ${p}\n </div>\n </div>\n </div>\n </div>\n <div class="breadbutter-ui-profile-dashboard-footer">\n ${Qa(e)}\n <button class="breadbutter-ui-profile-dashboard-logout-button">\n ${Za.UI.SIGN_OUT}\n </button>\n </div>\n </div>\n <div class="breadbutter-ui-profile-arrow">\n </div>\n </div>\n `;let _=["bb-top-left","bb-top-right","bb-bottom-left","bb-bottom-right"];return i||(f.querySelector(".breadbutter-ui-profile-widget").onclick=function(){if(f.classList.toggle("clicked"),f.classList.contains("clicked")){let e=f.getBoundingClientRect(),t=window.innerWidth,n=window.innerHeight,i="top",a="left";e.x>t/2&&(a="right"),e.y>n/2&&(i="bottom");let o=`bb-${i}-${a}`;f.classList.add(o)}else f.classList.remove(..._)},Ja(f)),f},getMobileContinueWithSignInWidget:function(e,t,n){let i=!!t.first_name&&t.first_name;i||(i=t.email_address.split("@")[0]);let a=j({first_name:i},Za.UI.HELLO),o=no(a),r=!!t.profile_image_url&&t.profile_image_url,s=!!t.first_name&&(t.first_name+" "+(t.last_name?t.last_name:"")).trim();!s&&t.email_address&&(s=t.email_address.split("@")[0]);let l="",c="",d=n&&n.idp?n.idp:"local";r?l='style="background-image:url('+r+'); border:none;"':c=eo(t.last_name||t.first_name||t.email_address,d);let u=t.email_address?t.email_address:"",p=Ee(d),m=document.createElement("div");return m.classList.add("breadbutter-ui-continue-with-container"),m.innerHTML=`\n <div class="breadbutter-ui-profile-widget">\n <div class="breadbutter-ui-profile-avatar" ${l}>${c}</div>\n <div class="breadbutter-ui-profile-avatar-x">${ao()}</div>\n <div class="breadbutter-ui-profile-name ${o}"><span>${a}</span></div>\n </div>\n <div class="breadbutter-ui-profile-dashboard">\n <div class="breadbutter-ui-profile-dashboard-content">\n <div class="breadbutter-ui-profile-dashboard-header">\n <div class="breadbutter-ui-profile-dashboard-title">\n ${Za.UI.SIGN_IN_TITLE}\n </div>\n <div class="breadbutter-ui-profile-dashboard-detail">\n <div class="breadbutter-ui-profile-dashboard-provider">\n ${p} \n </div>\n <div class="breadbutter-ui-profile-dashboard-avatar" ${l}>\n ${c}\n </div>\n <div class="breadbutter-ui-profile-dashboard-profile">\n <div class="breadbutter-ui-profile-dashboard-name">\n ${s}\n </div>\n <div class="breadbutter-ui-profile-dashboard-email">\n ${u}\n </div>\n </div>\n </div>\n </div>\n <div class="breadbutter-ui-profile-dashboard-footer">\n ${Qa(e)}\n <button class="breadbutter-ui-profile-dashboard-logout-button">\n ${Za.UI.SIGN_OUT}\n </button>\n </div>\n </div>\n </div>\n `,Ja(m),m}
1,getLoginWidget:function(){return`\n \n <div class="breadbutter-ui-continue-with-container">\n <div class="breadbutter-ui-profile-widget">\n <div class="breadbutter-ui-profile-avatar dark-grey">\n\x3c!-- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M17 9.761v-4.761c0-2.761-2.238-5-5-5-2.763 0-5 2.239-5 5v4.761c-1.827 1.466-3 3.714-3 6.239 0 4.418 3.582 8 8 8s8-3.582 8-8c0-2.525-1.173-4.773-3-6.239zm-8-4.761c0-1.654 1.346-3 3-3s3 1.346 3 3v3.587c-.927-.376-1.938-.587-3-.587s-2.073.211-3 .587v-3.587zm3 17c-3.309 0-6-2.691-6-6s2.691-6 6-6 6 2.691 6 6-2.691 6-6 6zm2-6c0 1.104-.896 2-2 2s-2-.896-2-2 .896-2 2-2 2 .896 2 2z"/></svg>--\x3e\n </div>\n <div class="breadbutter-ui-profile-name">${Za.UI.SIGNUP_IN}</div>\n </div>\n </div>\n `},getDefaultLoginWidget:to,getProfileWidget:function(e,t,n,i){let a=i?"bb-mobile":"",o=!!t.first_name&&t.first_name;o||(o=t.email_address.split("@")[0]);let r=!!t.profile_image_url&&t.profile_image_url,s=!!t.first_name&&(t.first_name+" "+(t.last_name?t.last_name:"")).trim();!s&&t.email_address&&(s=t.email_address.split("@")[0]);let l="",c="",d=n&&n.idp?n.idp:"local";r?l='style="background-image:url('+r+'); border:none;"':c=eo(t.last_name||t.first_name||t.email_address,d);let u=t.email_address?t.email_address:"",p=Ee(d),m=j({first_name:o},Za.UI.HELLO),f=no(m),_="";return m.length>17&&(m.length>22?_="bb-wider-2":m.length>21?_="bb-wider-1":m.length>19&&(_="bb-wider")),`\n <div class="breadbutter-ui-profile-widget-container ${_} ${a}">\n <div class="breadbutter-ui-profile-widget">\n <div class="breadbutter-ui-profile-avatar" ${l}>${c}</div>\n <div class="breadbutter-ui-profile-name ${f}"><span>${m}</span></div>\n <div class="breadbutter-ui-profile-dropdown"></div>\n </div>\n <div class="breadbutter-ui-profile-dashboard">\n <div class="breadbutter-ui-profile-dashboard-content">\n <div class="breadbutter-ui-profile-dashboard-header">\n <div class="breadbutter-ui-profile-dashboard-title">\n ${Za.UI.SIGN_IN_TITLE}\n </div>\n <div class="breadbutter-ui-profile-dashboard-detail">\n <div class="breadbutter-ui-profile-dashboard-provider">\n ${p} \n </div>\n <div class="breadbutter-ui-profile-dashboard-avatar" ${l}>\n ${c}\n </div>\n <div class="breadbutter-ui-profile-dashboard-profile">\n <div class="breadbutter-ui-profile-dashboard-name">\n ${s}\n </div>\n <div class="breadbutter-ui-profile-dashboard-email">\n ${u}\n </div>\n </div>\n </div>\n </div>\n <div class="breadbutter-ui-profile-dashboard-footer">\n ${Qa(e)}\n <button class="breadbutter-ui-profile-dashboard-logout-button">\n ${Za.UI.SIGN_OUT}\n </button>\n </div>\n </div>\n <div class="breadbutter-ui-profile-arrow">\n </div>\n </div>\n </div>\n `},getNewsletterWidget:function({image_default:e,image_type:t,image_source:n,header_text:i,main_text:a,success_header:o,success_text:r,button_text:s,profile:l,verified:c,custom_event_code:d,background_color:u,font_color:p,button_color:m,button_font_color:f}){let _="breadbutter-ui-newsletter-holder-"+io++,g=i||Za.UI.NEWSLETTER_TITLE,L=a||Za.UI.NEWSLETTER_SUBTITLE,b=r||Za.UI.NEWSLETTER_THANK,h=o||Za.UI.NEWSLETTER_THANK_HEADER,v=s||Za.UI.NEWSLETTER_SUBSCRIBE,E=!(!n||"none"==t)&&n;E&&!t&&(t="fill");let w="";"default"!=(t=t||"default")&&"fill"!=t||(w="breadbutter-ui-newsletter-fill"),"default"==t&&(E=uo(default_image));let T=!1,y=!1;if(ke()){let e=ro(d);e==co(d)?y=!0:T=e==d}if(y)return!1;let C="",I="";u&&(C+=`--bb-newsletter-background-color:${u};`,C+=`--bb-main-background-color:${u};`),p&&(C+=`--bb-form-title-color:${p};`,C+=`--bb-newsletter-title-color:${p};`,C+=`--bb-form-subtitle-color:${p};`,C+=`--bb-newsletter-subtitle-color:${p};`),m&&(I=`background-color:${m} !important;`),f&&(I+=`color:${f} !important;`),C=`\n <style>\n .breadbutter-ui-newsletter-subscribe {\n ${I}\n }\n :root {\n ${C}\n }\n </style>\n `;let N='<div class="breadbutter-ui-newsletter-widget-container">';if(E?N+=`<div class="breadbutter-ui-newsletter-background ${w}" style="background-image:url(${E})"></div>`:"none"!=t&&(N+='<div class="breadbutter-ui-newsletter-background"></div>'),N+='<div class="breadbutter-ui-newsletter-dashboard">',c)if(T){let e=l.first_name?l.first_name:"";h=j({NAME:e},h),N+=` <div class="breadbutter-ui-newsletter-text-header">${h}</div>`,b=j({NAME:e},b),N+=` <div class="breadbutter-ui-newsletter-text">${b}</div>`,lo(d)}else N+=`<div class="breadbutter-ui-newsletter-title">\n ${g}\n </div>\n <div class="breadbutter-ui-newsletter-subtitle">\n ${L}\n </div>\n <div class="breadbutter-ui-newsletter-subscribe">${v}</div>`;else N+=`<div class="breadbutter-ui-newsletter-title">\n ${g}\n </div>\n <div class="breadbutter-ui-newsletter-subtitle">\n ${L}\n </div>`,N+=`<div class="breadbutter-ui-newsletter-content" id="${_}"></div>`;return N+="\n </div>\n </div>\n ",N+=C,{index:_,html:N}},getNewsletterPopupWidget:({image_default:e,image_type:t,image_source:n,header_text:i,main_text:a,success_header:o,success_text:r,button_text:s,profile:l,verified:c,custom_event_code:d,background_color:u,font_color:p,button_color:m,button_font_color:f},_)=>{let g=e||1,L="breadbutter-ui-newsletter-holder-"+io++,b=_||!1;/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)&&(b=!0);let h=i||Za.UI.NEWSLETTER_TITLE,v=a||Za.UI.NEWSLETTER_SUBTITLE,E=r||Za.UI.NEWSLETTER_THANK,w=o||Za.UI.NEWSLETTER_THANK_HEADER,T=s||Za.UI.NEWSLETTER_SUBSCRIBE,y=!(!n||"none"==t)&&n;y&&!t&&(t="center");let C="";"default"!=(t=t||"default")&&"fill"!=t||(C="breadbutter-ui-newsletter-fill"),"default"==t&&(y=uo(g));let I=!1,N=!1;if(ke()){let e=ro(d);e==co(d)?N=!0:I=e==d}if(N)return!1;b&&(C="",y=!1);let S="",O="";u&&(S+=`--bb-newsletter-background-color:${u};`,S+=`--bb-main-background-color:${u};`),p&&(S+=`--bb-form-title-color:${p};`,S+=`--bb-newsletter-title-color:${p};`,S+=`--bb-form-subtitle-color:${p};`,S+=`--bb-newsletter-subtitle-color:${p};`),m&&(O=`background-color:${m} !important;`),f&&(O+=`color:${f} !important;`),S=`\n <style>\n .breadbutter-ui-newsletter-subscribe {\n ${O}\n }\n :root {\n ${S}\n }\n </style>\n `;let A=`\n <div class="breadbutter-ui-newsletter-widget-container">\n <div class="breadbutter-ui-newsletter-holder">\n <div class="breadbutter-ui-newsletter-widget-close">${ao()}</div>`;if(y&&(A+=`<div class="breadbutter-ui-newsletter-background ${C}" style="background-image:url(${y})"></div>`),A+='<div class="breadbutter-ui-newsletter-dashboard">',c)if(I){let e=l.first_name?l.first_name:"";w=j({NAME:e},w),A+=` <div class="breadbutter-ui-newsletter-text-header">${w}</div>`,E=j({NAME:e},E),A+=` <div class="breadbutter-ui-newsletter-text">${E}</div>`,lo(d)}else A+=`<div class="breadbutter-ui-newsletter-title">\n ${h}\n </div>\n <div class="breadbutter-ui-newsletter-subtitle">\n ${v}\n </div>\n <div class="breadbutter-ui-newsletter-subscribe">${T}</div>`;else A+=`<div class="breadbutter-ui-newsletter-title">\n ${h}\n </div>\n <div class="breadbutter-ui-newsletter-subtitle">\n ${v}\n </div>`,A+=`<div class="breadbutter-ui-newsletter-content" id="${L}"></div>`;return A+="\n</div>\n </div>\n </div>\n ",A+=S,{index:L,html:A}},getContinueWithSignInSuccess:function(e){let t=document.createElement("div");t.classList.add("breadbutter-ui-continue-with-success-popup"),e.continue_with_position?(e.continue_with_position.top?t.style.top=Xa(e.continue_with_position.top):e.continue_with_position.bottom?t.style.bottom=Xa(e.continue_with_position.bottom):t.style.top="30px",e.continue_with_position.left?t.style.left=Xa(e.continue_with_position.left):e.continue_with_position.right?t.style.right=Xa(e.continue_with_position.right):t.style.right="30px"):(t.style.top="30px",t.style.right="30px");let n=(({success_header:e,success_text:t,profile:n})=>{let i=n.first_name?n.first_name:"";t=j({NAME:i},t),e=j({NAME:i},e);let a=`\n <div class="breadbutter-ui-continue-with-success-container">\n <div class="breadbutter-ui-continue-with-success-holder">\n <div class="breadbutter-ui-continue-with-success-close">${ao()}</div>`;return a+='<div class="breadbutter-ui-continue-with-success-background">\n <svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 40 40" style="enable-background:new 0 0 40 40;" xml:space="preserve">\n<g>\n<path class="st0" d="M40,20c0,11.04-8.96,20-20,20S0,31.04,0,20S8.96,0,20,0S40,8.96,40,20z M36,20c0-8.84-7.16-16-16-16\nS4,11.16,4,20s7.16,16,16,16S36,28.84,36,20z"/>\n<g>\n<path d="M30.23,14.17l-9.46,14.27c-0.28,0.42-0.71,0.72-1.2,0.83c-0.02,0.01-0.05,0.01-0.07,0.02\nc-0.52,0.09-1.06-0.03-1.49-0.34l-8.28-6c-0.87-0.63-1.07-1.85-0.44-2.73c0.63-0.87,1.85-1.07,2.72-0.43l6.64,4.81l8.34-12.58\nc0.59-0.9,1.81-1.14,2.7-0.55C30.58,12.07,30.83,13.28,30.23,14.17z"/>\n</g>\n</g>\n</svg>\n</div>',a+='<div class="breadbutter-ui-continue-with-success-dashboard">',a+=` <div class="breadbutter-ui-continue-with-success-text-header">${e}</div>`,a+=` <div class="breadbutter-ui-continue-with-success-text">${t}</div>`,a+="\n</div>\n </div>\n </div>\n ",a})(e);return t.innerHTML=n,t},checkEventStorage:ro,getViewedCode:co,getContentGatingCoverPage:e=>{let t=document.createElement("div");t.classList.add("breadbutter-ui-content-gating-popup"),e&&e.clickable_content&&t.classList.add("bb-clickable-content");let n=z(e.language,e.locale),i=`\n <div class="breadbutter-ui-content-gating-background">\n </div>\n <div class="breadbutter-ui-content-gating-holder">\n <div class="breadbutter-ui-content-gating-container">\n <div class="breadbutter-ui-content-gating-title">${n.POPUP.TEXT_1}</div>\n <div class="breadbutter-ui-content-gating-subtitle">${n.POPUP.TEXT_2}</div>\n <div class="breadbutter-ui-content-gating-content" id="breadbutter-ui-content-gating-content-holder"></div>\n <div class="breadbutter-ui-content-gating-more-content">\n </div>\n </div>\n </div>\n `;t.innerHTML=i;let a=t.querySelector(".breadbutter-ui-content-gating-more-content"),o=document.createElement("span");o.innerHTML=n.POPUP.TEXT_3;let r=document.createElement("span");if(r.classList.add("breadbutter-floating-more"),r.innerHTML=n.POPUP.MORE,r.addEventListener("click",function(){o.innerHTML=n.POPUP.TEXT_3_2,this.remove()}),a.appendChild(o),a.appendChild(r),e&&e.fixed_height){let n=e.fixed_height;if(!isNaN(n)&&n>=0&&n<=100){let e=t.querySelector(".breadbutter-ui-content-gating-holder");e.style.height=n+"%",e.style.minHeight=n+"%",e.style.maxHeight=n+"%",e.scrollTop=0;let i=!1;e.addEventListener("scroll",t=>{i||(i=!0,e.scrollTop=0)})}}return t},getContentGatingCenterPage:(e,t)=>
1{let n=e.image_default?e.image_default:"A",i=!1,a=z(e.language,e.locale),o=document.createElement("div");o.classList.add("breadbutter-ui-content-gating-popup"),o.classList.add("bb-content-gating-center"),/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)&&(o.classList.add("bb-mobile-portrait"),i=!0);let r=e.image_type,s=e.image_source,l=!(!s||"none"==r)&&s;l&&!r&&(r="center"),r=r||"default";let c="",d=!1;"default"!=r&&"fill"!=r||(c="breadbutter-ui-content-gating-fill"),i&&(r="none",s=!1,d=!1),"default"==r&&(l=(e=>{let t={A:1,B:2,C:3};return(e=>{let t=ja,n=Number(e);return(isNaN(n)||n<1||n>6)&&(n=1),t+"BB_CGC_IMAGE_"+n+".svg"})(e=t[e]?t[e]:e)})(n)),"none"==r&&(s=!1,d=!1,l=!1);let u="",p="",m="";e.background_color&&(u=`background-color:${e.background_color};`,p=`--bb-content-gating-background-color:${e.background_color};`,p+=`--bb-main-background-color:${e.background_color};`),e.font_color&&(u+=`color:${e.font_color};`,p+=`--bb-form-title-color:${e.font_color};`,p+=`--bb-form-subtitle-color:${e.font_color};`),e.button_color&&(m=`background-color:${e.button_color} !important;`),e.button_font_color&&(m+=`color:${e.button_font_color} !important;`),p=`\n <style>\n .form-next-icon {\n ${m}\n }\n :root {\n ${p}\n }\n </style>\n `;let f=a.CONTENT_GATING.TITLE,_=a.CONTENT_GATING.SUBTITLE,g='<div class="breadbutter-ui-content-gating-background"></div><div class="breadbutter-ui-content-gating-holder" style="'+u+'">';return l?g+=`<div class="breadbutter-ui-content-gating-image ${c}" style="background-image: url(${l})"></div>`:d&&(g+=`<div class="breadbutter-ui-content-gating-image ${c}">\n${d}\n</div>`),g+=`\n <div class="breadbutter-ui-content-gating-container">\n\x3c!-- <div class="breadbutter-ui-content-gating-close">${ao()}</div>--\x3e\n <div class="breadbutter-ui-content-gating-title">${f}</div>\n <div class="breadbutter-ui-content-gating-subtitle">${_}</div>\n <div class="breadbutter-ui-content-gating-content" id="breadbutter-ui-content-gating-content-holder"></div>\n </div>\n </div>\n </div>\n `,g+=p,o.innerHTML=g,o},getContactUsIcon:function(e,t){let n=fe("breadbutter-ui-contact-us-icon");e.continue_with_position?(e.continue_with_position.top?n.style.top=Se(e.continue_with_position.top):e.continue_with_position.bottom?n.style.bottom=Se(e.continue_with_position.bottom):n.style.bottom="10px",e.continue_with_position.left?n.style.left=Xa(e.continue_with_position.left):e.continue_with_position.right?n.style.right=Xa(e.continue_with_position.right):n.style.right="10px"):(n.style.bottom="10px",n.style.right="10px");let i=fe("breadbutter-ui-contact-us-image-holder"),a=e.custom_image_url?e.custom_image_url:(e=>{let t=ja,n=Number(e);return(isNaN(n)||n<1||n>12)&&(n=2),n=String(n).padStart(2,"0"),t+"BB_CONTACT_ICON_"+n+".png"})(e.image_default),o=fe("breadbutter-ui-contact-us-image");return o.style["background-image"]=`url(${a})`,i.appendChild(o),n.appendChild(i),n},getContactUsIconMessage:function(e){let t=fe("breadbutter-ui-contact-us-icon-message"),n="bottom",i="right";e.continue_with_position?(e.continue_with_position.top?(t.style.top=Se(e.continue_with_position.top),n="top"):e.continue_with_position.bottom?t.style.bottom=Se(e.continue_with_position.bottom):t.style.bottom="10px",e.continue_with_position.left?(t.style.left=Xa(e.continue_with_position.left),i="left"):e.continue_with_position.right?t.style.right=Xa(e.continue_with_position.right):t.style.right="10px"):(t.style.bottom="10px",t.style.right="10px"),t.innerHTML=Za.CONTACT_US.ICON_NOTE,t.classList.add("bb-"+n),t.classList.add("bb-"+i);let a=fe("breadbutter-ui-contact-us-icon-message-arrow");return t.appendChild(a),window.addEventListener("scroll",function(e){t.classList.add("bb-hide")},!0),t},getCookieConsent:function(e){let t=fe("breadbutter-ui-cookie-consent-container"),n=e.header_text?e.header_text:Za.UI.COOKIE_CONSENT.HEADER,i=e.main_text?e.main_text:Za.UI.COOKIE_CONSENT.TEXT,a=!1;e&&(e.privacy_policy_url&&e.terms_and_conditions_url?a=Za.UI.COOKIE_CONSENT.PRIVACY_AND_TERMS:e.privacy_policy_url?a=Za.UI.COOKIE_CONSENT.PRIVACY_POLICY:e.terms_and_conditions_url&&(a=Za.UI.COOKIE_CONSENT.TERMS_CONDITIONS)),e&&e.privacy_policy_url&&(a=a.replace(/%PRIVACY_LINK%/g,e.privacy_policy_url)),e&&e.terms_and_conditions_url&&(a=a.replace(/%TOC_LINK%/g,e.terms_and_conditions_url));let o=`\n <div class="breadbutter-ui-cookie-consent-holder">\n <div class="breadbutter-ui-cookie-consent-header-holder">\n <div class="breadbutter-ui-cookie-consent-title">\n ${n} \n </div>\n <div class="breadbutter-ui-cookie-consent-subtitle">\n ${i} \n </div>\n <div class="breadbutter-ui-cookie-consent-note">\n ${a} \n </div>\n </div>\n <div class="breadbutter-ui-cookie-consent-button-holder">\n <div class="breadbutter-ui-cookie-consent-button">\n ${Za.UI.COOKIE_CONSENT.BUTTON}\n </div>\n </div>\n <div class="breadbutter-ui-cookie-consent-widget-close">${ao()}</div>\n </div>\n`;return t.innerHTML=o,t}};let mo=!1,fo=!1;const _o={m:0,s:0,c:0};let go=0,Lo=[1,1,1,2,2,5,5,5],bo=!1,ho=!1,vo=0,Eo=0;const wo=function(){let e=Date.now();Eo=e,vo||(vo=e)};let To=0,yo=!1;const Co=function(){!1===yo&&(To+=1,yo=setTimeout(()=>{yo=!1},1e3))};let Io=null,No=null;const So=function(e){wo(),Co(),jo();let t=e.movementX?e.movementX:0,n=e.movementY?e.movementY:0;_o.m+=Math.sqrt(t*t+n*n)},Oo=function(e){if(wo(),Co(),jo(),e.touches&&e.touches.length>0){const t=e.touches[0];if(null!==Io&&null!==No){const e=t.clientX-Io,n=t.clientY-No;_o.m+=Math.sqrt(e*e+n*n)}Io=t.clientX,No=t.clientY}},Ao=function(e){wo(),Co(),jo(),e.touches&&e.touches.length>0&&(Io=e.touches[0].clientX,No=e.touches[0].clientY)},ko=function(){Io=null,No=null},Ro=function(e){wo(),Co(),jo(),_o.c++},Mo=function(e){if(wo(),Co(),!e)return!1;if(e===document){const t=e.scrollingElement||e.documentElement||e.body;return!!t&&t.scrollTop+t.offsetHeight!=t.scrollHeight&&t.scrollTop}if(e===document.body)return e.scrollTop+e.offsetHeight!=e.scrollHeight&&e.scrollTop;if(void 0!==e.scrollTop){if(e.scrollTop+e.offsetHeight==e.scrollHeight){const t=e.parentElement||e.parentNode;return!!t&&Mo(t)}return e.scrollTop}return!1};let Po=!1;const xo=function(e){jo();let t=Mo(e.target);e.target==document&&(t=window.scrollY),!1!==Po&&(_o.s+=Math.abs(t-Po),_o.s&&((document.body.scrollTop+document.body.offsetHeight)/document.body.scrollHeight>=.9?_o.st=!0:delete _o.st)),Po=t},Uo=function(){switch(document.visibilityState){case"hidden":Wo();break;case"visible":$o(),Yo(),jo()}},Do=function(){Wo()},Bo=function(e){const t=e.target.closest("a");if(!t)return;const n=t.href;(function(e){return!e||e.startsWith("mailto:")||e.startsWith("tel:")||e.startsWith("javascript:")})(n)||t.hash&&t.pathname===location.pathname||function(e){try{return new URL(e,window.location.href).origin!==window.location.origin}catch{return!1}}(n)&&mo.exit(n)};let Go=!1,Ho=!1;const Wo=function(){clearTimeout(Vo),fo&&function(){let e=_o.c||_o.m||_o.s,t=Date.now()-Eo<6e4;return t&&vo&&(e=!0),t||(vo=!1),e||bo||ho}()&&(Go=!0,mo.engagement(qo(),Fo)),fo=!1},Fo=function(){Go=!1,Ho&&(Ho=!1)},qo=function(){const e=Date.now();let t=Object.assign({},{..._o});return t.t=To,t.s=Math.round(t.s),t.m=isNaN(t.m)?0:Math.round(Number(t.m)),To=0,!1!==bo&&(t.ga_data=bo),!1!==ho&&(t.segment_anonymous_id=ho),e-Eo<6e4&&vo?(t.f=Math.round((e-vo)/1e3),vo=e):vo=!1,(_o.c||_o.m||_o.s)&&(Eo=e),t},$o=function(){vo=Date.now(),Eo=Date.now()};let Vo=!1;const Yo=function(){_o.m=0,_o.s=0,_o.c=0,!1!==bo&&Date.now()-1e3>Ko&&(Ko=!1,bo=!1),!1!==ho&&Date.now()-1e3>zo&&(zo=!1,ho=!1),delete _o.st};let Ko=!1,zo=!1;const jo=function(){fo||(Yo(),(Xo||Qo&&go<4)&&function(){if("function"==typeof ga&&"function"==typeof ga.getAll)Xo=!1,Qo=!1,ga.getAll().forEac
1h(e=>{let t=e.get("clientId"),n=e.get("userId");bo={cid:t,uid:n},Ko=Date.now()});else if(Qo){let t=(e=document.cookie)?e.split(";").map(e=>e.split("=")).reduce((e,t)=>(e[decodeURIComponent(t[0].trim())]=decodeURIComponent(t[1].trim()),e),{}):{};if(t._ga){let e=t._ga.split(".").slice(2).join(".");Qo=!1,bo={cid:e},Ko=Date.now()}}var e}(),Jo&&go<4&&(async()=>{try{const e=analytics&&analytics.user&&analytics.user().anonymousId();e&&(ho=e,zo=Date.now())}catch(e){}})(),fo=Date.now(),Zo())},Zo=function(){let e=1e4;void 0!==Lo[go]&&(e=1e3*Lo[go++]),Vo=setTimeout(()=>{Go?(Ho=!0,Zo()):(Wo(),Yo(),jo())},e)};let Xo=!1,Qo=!1,Jo=!1;var er={initialize:function(e,t,n,i){if(Xo=t,Qo=n,Jo=i,!mo){mo=e,document.addEventListener("mousemove",So,{passive:!0}),document.addEventListener("click",Ro,{passive:!0}),document.addEventListener("scroll",xo,{passive:!0}),document.addEventListener("onscroll",xo,{passive:!0});let t=/Firefox/i.test(navigator.userAgent)?"DOMMouseScroll":"mousewheel";document.addEventListener(t,xo,{passive:!0}),document.addEventListener("visibilitychange",Uo,{passive:!0}),document.addEventListener("touchstart",Ao,{passive:!0}),document.addEventListener("touchmove",Oo,{passive:!0}),document.addEventListener("touchend",ko,{passive:!0}),window.addEventListener("beforeunload",Do),document.addEventListener("click",Bo,!0),Uo()}}};const tr=Fn.providers,nr=Fn.providers_hash,ir=Fn.providers_buttons,ar=Fn.event_type,or=Fn.gateway_emails,rr=Fn.gateway_hash,sr=Fn.encoded_action,lr=Fn.encoded_hash,cr=Fn.html_attributes,dr=Fn.errors;let ur,pr={};const mr=function(e){let t=z(e.language,e.locale);t&&(pr=t)};let fr=!1,_r=[];const gr=function(){fr=!0;for(var e=0;e<_r.length;e++)_r[e]();_r=[]};let Lr=Promise.resolve();let br={app_id:!1,app_secret:!1,api_path:!1,language:!1,locale:!1,app_name:!1,destination_url:!1,registration_destination_url:!1,callback_url:!1,client_data:!1,page_view_tracking:null,capture_form_submission:!0,force_reauthentication:null,button_theme:"tiles",expand_email_address:!0,show_login_focus:!1,allow_sub_domain:!1,remember_close:!0,remember_close_duration_hour:24,success_event_code:!1,ga_measurement_id:!1,continue_with_hover:!1,continue_with_hover_distance:5,hide_local_auth_domains:[],landing_redirect_url:!1,window_open:!1,onMagicLinkConfirm:!1,custom_data_required:!1,optin_dismiss_time:1440,custom_data:[],continue_with_success_seconds:5,continue_with_success_header:!1,continue_with_success_text:!1,
1content_gating_success_seconds:5,content_gating_success_header:!1,content_gating_success_text:!1,wordpress_admin_ajax:!1,wordpress_admin_page:!1,include_name:!1,require_name:!1,disable_continue_with_success_message:!1,disable_content_gating_success_message:!1,disable_content_preview_success_message:!1,profile_tool_buttons:[],stack_order:10001,email_option_overwrite:!1,allowed_sso_providers:!1,disable_continue_with_mobile:!1};const hr="email_only",vr="local_login",Er="magic_link",wr="none";let Tr=!1,yr={},Cr=!1,Ir=!1,Nr=!1,Sr=!1,Or=!1,Ar=!1,kr=!1,Rr=!1,Mr=!1,Pr=["app_name","language","app_secret","api_path","registration_destination_url","destination_url","callback_url","client_data","force_reauthentication","page_view_tracking","button_theme","expand_email_address","show_login_focus","allow_sub_domain","remember_close","remember_close_duration_hour","success_event_code","hide_local_auth_domains","landing_redirect_url","ga_measurement_id","window_open","onMagicLinkConfirm","optin_dismiss_time","content_gating_success_seconds","content_gating_success_header","content_gating_success_text","continue_with_success_seconds","continue_with_success_header","continue_with_success_text","wordpress_admin_ajax","wordpress_admin_page","capture_form_submission","include_name","require_name","disable_continue_with_success_message","disable_content_gating_success_message","disable_content_preview_success_message","profile_tool_buttons","stack_order","email_option_overwrite","allowed_sso_providers","disable_continue_with_mobile"],xr=!1,Ur=!1,Dr=!1;const Br=()=>{Dr=!0;let e=document.querySelector(".breadbutter-popup");e&&e.addEventListener("pointerdown",()=>{Ur=!0},{once:!0})},Gr=(e,t)=>{let n=!1,i=!1;e&&e.providers&&0==e.providers.length&&(i=!0);let a=!1,o=!1;e.settings&&e.settings.password_settings&&e.settings.password_settings.enabled&&(a=!0),e.settings&&e.settings.email_identification_settings&&e.settings.email_identification_settings.enabled&&(o=!0);let r=!1,s=!1,l=!1;e.settings&&e.settings.magic_link_settings&&(e.settings.magic_link_settings.enabled&&(r=!0),e.settings.magic_link_settings.registration_enabled&&(s=!0)),l=r||s;let c=!1;if(e.settings&&e.settings.email_option_default&&(c=e.settings.email_option_default),t.email_option_overwrite&&(c=t.email_option_overwrite),c==wr);else if(!l||a||o)if(!a||l||o)if(!o||l||a)switch(c){case hr:o||(c=!1);break;case vr:a||(c=!1);break;case Er:l||(c=!1)}else c=hr;else c=vr;else c=Er;switch(c){case hr:a=!1,l=!1;break;case vr:l=!1,o=!1;break;case Er:a=!1,o=!1;break;case wr:a=!1,l=!1,o=!1}return!o&&!i||a||l||e&&e.user_profile&&("identified"==e.user_profile.state||"verified"==e.user_profile.state)&&(n=!0),n},Hr=e=>Gr(Wr,e);let Wr=!1,Fr=!1,qr=[];const $r="breadbutter_transport_failures",Vr=function(e){try{e?window.sessionStorage.setItem($r,String(e)):window.sessionStorage.removeItem($r)}catch(e){}},Yr=()=>{window.removeEventListener("scroll",es,!0),Or&&clearTimeout(Or)},Kr=()=>{window.removeEventListener("scroll",ts,!0),Rr&&clearTimeout(Rr)};let zr=!1;const jr=e=>!isNaN(e)&&!isNaN(parseFloat(e));let Zr=!1,Xr=!1;const Qr=()=>{Zr||(Zr=!0,Nr&&(()=>{let e=!0;if(Nr.restricted_links instanceof Array){e=!1;let t=Nr.restricted_links;for(let n=0;n<t.length;n++){let i=t[n],a=!1;-1!=i.indexOf("*")&&(a=!0,i=i.replace("/*",""));let o=document.location.pathname;a?0==o.indexOf(i)&&0==o.replace(i,"").indexOf("/")&&(e=!0):o==i&&(e=!0)}}return e})()&&(Ir||xr?br.disable_content_preview_success_message||rl(Nr,!0):(()=>{let e=Ms({});e&&e.mode?is():(zr=!0,jr(Nr.scroll_limit)||jr(Nr.time_limit)?(jr(Nr.scroll_limit)&&window.addEventListener("scroll",es,!0),jr(Nr.time_limit)&&(Or=setTimeout(()=>{is()},1e3*Number(Nr.time_limit)))):is())})()))},Jr=()=>{Xr||(Xr=!0,kr&&(Ir||xr?br.disable_content_gating_success_message||rl(kr,!0):(()=>{let e=Ms({});e&&e.mode?as():jr(kr.scroll_limit)||jr(kr.time_limit)?(jr(kr.scroll_limit)&&window.addEventListener("scroll",ts,!0),jr(kr.time_limit)&&(Rr=setTimeout(()=>{as()},1e3*Number(kr.time_limit)))):as()})()))},es=e=>{let t=window.innerHeight,n=(e.target==document?document.body.scrollHeight:e.target.scrollHeight)-t;(e.target.scrollTop?e.target.scrollTop:e.target.scrollingElement?e.target.scrollingElement.scrollTop:e.target==document?window.scrollY:0)>=n*Number(Nr.scroll_limit)&&(Yr(),Ar||(Ar=!0,is()))},ts=e=>{let t=window.innerHeight,n=(e.target==document?document.body.scrollHeight:e.target.scrollHeight)-t;(e.target.scrollTop?e.target.scrollTop:e.target.scrollingElement?e.target.scrollingElement.scrollTop:e.target==document?window.scrollY:0)>
1=n*Number(kr.scroll_limit)&&(Kr(),Mr||(Mr=!0,as()))},ns=()=>{let e=document.querySelectorAll(".breadbutter-ui-newsletter-popup"),t=document.querySelectorAll(".breadbutter-popup");for(let t=0;t<e.length;t++)e[t].remove();for(let e=0;e<t.length;e++)t[e].remove()},is=()=>{Yr(),ns(),BreadButter.ui.showContentPreview({...Nr,app_name:br.app_name})},as=()=>{Kr(),ns(),BreadButter.ui.showContentGating({...kr,include_name:br.include_name,app_name:br.app_name})},os=new function(){this.getDeviceId=function(e){return new Promise(t=>{Bt.getDeviceId().then(n=>{e&&e(n),t(n)})})},this.configure=function(e){Bt.configure({...e})},this.getProfile=function(e){Bt.getClientSettings(!1,function(t){if(t){Wr=t;let n=t.user_profile,i=t.suggested_provider,a=t.device_verified;Ir=a,Cr=i,yr=n,Sr=t,e&&e(n,i,a,t)}})},this.resetDeviceVerification=function(e){Bt.resetDeviceVerification(function(){"function"==typeof e&&e()})},this.identifyUser=function(e,t,n,i){Bt.identifyUser({email_address:e,first_name:t,last_name:n,callback:i})},this.getProviders=Bt.getProviders,this.ping=Bt.ping};let rs=!1,ss=[];const ls=function(){for(;ds.length>0;){let e=ds.shift();"function"==typeof e.fn&&e.fn.apply(this,e.params)}for(;ss.length>0;){let e=ss.splice(0,1)[0];Bt.createEvent(e.custom,e.data,!1,e.callback)}},cs=function(e,t,n){ss.push({custom:e,data:t,callback:n})};let ds=[];const us=function(e,t){ds.push({fn:e,params:t})},ps=new function(){this.initialengagement=function(){rs?er.initialize(ps):us(er.initialize,[ps])},this.engagement=function(e,t){br.wordpress_admin_ajax?Bt.incrementPageEngagementWordpress(br.wordpress_admin_ajax,e,t):Bt.incrementPageEngagement(e,t)},this.exit=function(e,t){Bt.createEvent("exit_destination",{url:e},!1,t)},this.custom=function(e,t){rs||!br.page_view_tracking?Bt.createEvent(e,!1,!1,t):cs(e,!1,t)},this.redirect=function(e,t){const n=function(){l(),document.location.assign(t)};rs?Bt.createEvent(e,!1,!1,n):cs(e,!1,n)},this.pageview=function(e,t,n){let i={title:document.title,url:document.location.href};n&&(i=Object.assign(i,n)),br.wordpress_admin_ajax?Bt.createEventWordpress(br.wordpress_admin_ajax,ar.PAGE_VIEW,i,t,function(t){let n=!1;t.event_id&&(Bt.setPageViewId(t.event_id),rs||(n=!0),rs=!0),"function"==typeof e&&e(t),n&&ls()}):Bt.createEvent(ar.PAGE_VIEW,i,t,function(t){let n=!1;t.event_id&&(Bt.setPageViewId(t.event_id),rs||(n=!0),rs=!0),"function"==typeof e&&e(t),n&&ls()})}};let ms=!1,fs=!1,_s=!1,gs=!1,Ls=!0;const bs=async e=>{if(_s=!1,gs=!1,br.ga_measurement_id){void 0===window.gtag&&(window.dataLayer=window.dataLayer||[]);try{const t=await new Promise(e=>{gtag("get",br.ga_measurement_id,"client_id",e)});t?e({ga_data:{cid:t}}):e()}catch(t){e()}}else{let t=dl(document.cookie);if("function"==typeof ga&&Ls)if(_s=!0,"function"==typeof ga.getAll){_s=!1;let t=ga.getAll().reduce((e,t)=>!1===e?{ga_data:{cid:t.get("clientId"),uid:t.get("userId")}}:e,!1);!1===t?(Ls=!1,await bs(e)):e(t)}else{if(!fs)return _s=!1,fs=!0,void setTimeout(async()=>{await bs(e)},150);e()}else if(t._ga){let n=t._ga.split(".").slice(2).join(".");e({ga_data:{cid:n}})}else gs=!0,e()}},hs=async()=>{try{return await new Promise(e=>{bs(t=>{e(t||{})})})}catch(e){return{}}},vs=async(e,t)=>{try{if("undefined"!=typeof analytics)if(void 0!==analytics.user&&void 0!==analytics.user().anonymousId){const t=analytics.user().anonymousId();t?e({segment_anonymous_id:t}):e()}else t>5?e():setTimeout(async()=>{await vs(e,++t)},150*t);else e()}catch(t){e()}},Es=async()=>{try{return await new Promise(e=>{vs(t=>{e(t||{})},1)})}catch(e){return{}}},ws=function(e,t){void 0===e[t]&&void 0!==br[t]&&(e[t]=br[t])},Ts=function(){ys()||ke()&&(localStorage.setItem(Fs.MANUAL_CLOSE,1),localStorage.setItem(Fs.MANUAL_CLOSE_TIMER,Date.now()))},ys=function(){let e=!1;if(ke()&&(e=parseInt(localStorage.getItem(Fs.MANUAL_CLOSE)),e)){let t=localStorage.getItem(Fs.MANUAL_CLOSE_TIMER);if(t){let n=parseInt(t)+60*br.remember_close_duration_hour*60*1e3;e=!(Date.now()>n)}else e=!1}return e},Cs=function(e){let t=!1;if(ke()&&(t=parseInt(localStorage.getItem(Fs.NEWSLETTER_CLOSE)),t)){let n=localStorage.getItem(Fs.NEWSLETTER_CLOSE_TIMER);if(n){let i=e&&e.optin_dismiss_time?e.optin_dismiss_time:br.optin_dismiss_time,a=parseInt(n)+60*i*1e3;t=!(Date.now()>a)}else t=!1}return t},Is=function(e){return e||(e={}),br.language&&(e.language=br.language),br.locale&&(e.locale=Object.assign(br.locale,e.locale)),br.app_name&&!e.app_name&&(e.app_name=br.app_name),br.app_id&&
1(e.app_id=br.app_id),br.onMagicLinkConfirm&&(e.onMagicLinkConfirm=br.onMagicLinkConfirm),ws(e,"destination_url"),ws(e,"registration_destination_url"),ws(e,"callback_url"),ws(e,"client_data"),ws(e,"force_reauthentication"),ws(e,"button_theme"),ws(e,"expand_email_address"),ws(e,"continue_with_position"),ws(e,"show_login_focus"),ws(e,"remember_close"),ws(e,"remember_close_duration_hour"),ws(e,"success_event_code"),ws(e,"continue_with_hover"),ws(e,"continue_with_hover_distance"),ws(e,"custom_data"),ws(e,"custom_data_required"),ws(e,"include_name"),ws(e,"require_name"),ws(e,"profile_tool_buttons"),ws(e,"allowed_sso_providers"),ws(e,"email_option_overwrite"),e.internalOnFormClose=Ts,e},Ns=function(e){e=Is(e),ur.init(e),cn.init(e)},Ss=new function(){this.deIdentification=function(e){As=!0,e.hide_focus_text=!0,e.show_login_focus=!0,e.hide_on_focus=!1,e.continue_with_position="center",Ns(e);let t=new Aa;t.init(e),e.email_address&&ke()&&localStorage.setItem(Fs.EMAIL,e.email_address),ur.deIdentification(e,t)},this.customForm=function(e){e.hide_focus_text=!0,e.show_login_focus=!0,e.hide_on_focus=!1,e.continue_with_position="center",e.onFormClose=function(){rl(e)},Ns(e),e.profile=yr;let t=new Aa;t.init(e),ur.addCustomForm(e,t)},this.optIn=function(e,t){"string"!=typeof e&&(t=e,e=!1),Ns(t);let n=new Aa;n.init(t),n.optInForm(e,t)},this.contactUs=function(e,t){"string"!=typeof e&&(t=e,e=!1),Ns(t),ns();let n=new Ha;n.init(t);let i=new Aa;i.init(t),e?i.addContactUs(e,t):n.addContactUs(t,i)},this.confirmEmail=function(e,t){"string"!=typeof e&&(t=e,e=!1),Ns(t);let n=new Aa;n.init(t),t.email_address&&ke()&&localStorage.setItem(Fs.EMAIL,t.email_address),e?n.addConfirm(e,t):ur.addConfirm(t,n)},this.resetPassword=function(e,t){"string"!=typeof e&&(t=e,e=!1),Ns(t);let n=new Aa;n.init(t),t.email_address&&ke()&&localStorage.setItem(Fs.EMAIL,t.email_address),e?n.addReset(e,t):ur.addReset(t,n)},this.magicLink=function(e,t){"string"!=typeof e&&(t=e,e=!1),Ns(t);let n=new Aa;n.init(t),e?n.addMagicLink(e,t):ur.addMagicLink(t,n)},this.form=function(e,t){"string"!=typeof e&&(t=e,e=!1),Ns(t);let n=new Aa;n.init(t),e?n.addForm(e,t):ur.addForm(t,n)},this.invitation=function(e,t){"string"!=typeof e&&(t=e,e=!1),Ns(t);let n=new Aa;n.init(t),t.email_address&&ke()&&localStorage.setItem(Fs.EMAIL,t.email_address),e?n.addRegister(e,t):ur.addRegister(t,n)},this.button=function(e,t){Ns(t);let n=!1;t.email_address&&(n=t.email_address);let i=[];if(t.providers&&Array.isArray(t.providers)&&(i=t.providers),void 0===t.register&&(t.register=!0),0===i.length)os.getProviders(n,function(n){let i=[];if(n&&n.providers)for(let e=0;e<n.providers.length;e++){let t=n.providers[e];t.idp&&nr[t.idp]&&i.push(t)}0===i.length&&(i=!1),cn.addButtons(e,i,t)});else{let n=[];for(let e=0;e<i.length;e++)nr[i[e].idp]&&n.push(i[e]);cn.addButtons(e,n,t)}}}
1,Os=Me();let As=!1,ks=!1,Rs=!1;const Ms=function(e){if(e&&e.mode)return e;if(Os[dr.ERROR]){let t=Os[dr.ERROR];t===dr.NULL_EMAIL&&(e.mode=t)}else if(Os[sr.TARGET]){let t=!1;try{let e=Os[sr.TARGET],n=atob(e);t=JSON.parse(n)}catch(t){return e}let n=t[sr.TYPE],i=t[sr.APP_ID],a=t[sr.EMAIL],o=t[sr.PIN];void 0!==lr[n]&&a&&o&&i==br.app_id&&(e||(e={}),e.mode=lr[n],e.email_address=a,e.pin=o)}else if(Os[or.TYPE]){let t=Os[or.TYPE],n=Os[or.APP_ID],i=Os[or.PIN],a=Os[or.EMAIL];"deidentification"===rr[t]?(e||(e={}),e.mode=rr[t],a&&(e.email_address=a),i&&(e.pin=i)):a&&i&&n==br.app_id&&(e||(e={}),e.mode=rr[t],e.email_address=a,e.pin=i)}else Os[Fn.magic_link_code]&&(e||(e={}),e.mode=Fn.mode.MAGIC_LINK,e.pin=Os[Fn.magic_link_code]);return e};let Ps=[],xs=function(){return Ir&&yr&&"verified"==yr.state},Us=function(){return yr&&"verified"==yr.state},Ds=function(){return xs()&&yr&&yr.custom_data_required&&br.custom_data},Bs=function(){if(Ps.length){let e=Ps.shift();sl[e.call].apply(sl,e.params),Bs()}},Gs=function(e){return!!Tr||(Ps.push(e),!1)};const Hs=function(e){e.onkeydown=function(){return!1},e.onclick=function(){this.blur(),cl.continueWith({show_login_focus:!0,destination_url:document.location.href})}},Ws=function(e,t){let n=e.querySelectorAll(t);for(let e=0;e<n.length;e++){let t=n[e];Hs(t)}},Fs={LAST_SUCCESS_EVENT_CODE:"breadbutter-sdk-last-success-event-code",START_CONTACT:"breadbutter-start-contact-sign-in",EMAIL:"breadbutter-sdk-email-address",COOKIE_CONSENT:"breadbutter-cookie-consent",CONTINUE_WITH_SIGN_IN:"breadbutter-sdk-continue-with-sign-in",MANUAL_CLOSE:"breadbutter-sdk-manual-close",MANUAL_CLOSE_TIMER:"breadbutter-sdk-manual-close-timer",NEWSLETTER_CLOSE:"breadbutter-sdk-newsletter-close",NEWSLETTER_CLOSE_TIMER:"breadbutter-sdk-newsletter-close-timer"},qs=function(){let e=!1;return ke()&&(e=localStorage.getItem(Fs.START_CONTACT+"-"+btoa(document.location.pathname))),e},$s=["name","firstname","fname","first_name","first-name","first name","first","your name","field-name[value]","your-name","enter name","textfieldname"],Vs=["name","your name","your-name","enter name","textfieldname","full name"],Ys=["lastname","lname","last_name","last-name","last name","last"],Ks=["email","email_address","email-address","emailaddress","field-email[value]","your-email","enter email andress","enter email","textfieldemail"],zs=e=>("string"==typeof e?e:"").toLowerCase().replace(/\s+/g," ").replace(/[*:]/g,"").trim(),js=()=>void 0!==window.nfForms,Zs=({key:e="",label:t="",placeholder:n="",type:i=""})=>{const a=zs(e),o=zs(t),r=zs(n);return{matchesFirst:$s.includes(a)||$s.includes(o)||$s.includes(r),matchesLast:Ys.includes(a)||Ys.includes(o)||Ys.includes(r),matchesEmailByKey:Ks.includes(a)||Ks.includes(o)||Ks.includes(r),matchesEmailByType:"email"===i,matchesFullName:Vs.includes(a)||Vs.includes(o)||Vs.includes(r)}};function Xs(e){let t="",n="",i="";const a=(e,a,o,r)=>{const s="string"==typeof o?o:null==o?"":String(o),{matchesFirst:l,matchesLast:c,matchesEmailByKey:d}=Zs({key:e,label:a,placeholder:r});l?(n=s,n.indexOf(" ")>-1&&(i=n.substring(n.indexOf(" ")+1),n=n.substring(0,n.indexOf(" ")))):c?i=s:Ln(s)&&(t=s)};if(Array.isArray(e))for(const t of e)a(t.name||"",t.label||"",t.value||"",t.placeholder||"");else if(e&&"object"==typeof e)for(const[t,n]of Object.entries(e)){const e="object"==typeof n?n.value||"":n;a(t,"object"==typeof n&&n.label?n.label:"",e,"object"==typeof n&&n.placeholder?n.placeholder:"")}return{email:t,firstName:n,lastName:i}}const Qs=["submit","button","reset","image","file","hidden","fieldset"],Js=async function(e){if(e.target.matches("form")){if(e.target._alreadySubmitted)return;e.preventDefault(),e.stopImmediatePropagation();const t=new FormData(e.target),n={};for(const[e,i]of t.entries()){const t=document.querySelector(`input[name="${e}"]`);let a="",o="";if(t){const e=t.id,n=document.querySelector(`label[for="${e}"]`);a=n?n.textContent.replace(/[\n\t\*]/g,"").trim():"",o=t.placeholder}n[e]={value:i,label:a,placeholder:o}}let{email:i,firstName:a,lastName:o}=Xs(n);if(i||({email:i,firstName:a,lastName:o}=Xs(function(e){const t=[],n=e&&e.elements?Array.prototype.slice.call(e.elements):[],i={},a=e?e.querySelectorAll("label[for]"):[];for(let e=0;e<a.length;e++){const t=a[e];
1i[t.getAttribute("for")]=t.textContent.replace(/[\n\t\*]/g,"").trim()}return n.forEach(e=>{const n=e.type||"";if(Qs.indexOf(n)>-1)return;if(("checkbox"===n||"radio"===n)&&!e.checked)return;let a=e.id&&i[e.id]?i[e.id]:"";if(!a&&"function"==typeof e.closest){const t=e.closest("label");t&&(a=t.textContent.replace(/[\n\t\*]/g,"").trim())}t.push({name:e.name||"",value:"string"==typeof e.value?e.value:"",label:a,placeholder:e.placeholder||""})}),t}(e.target))),i){try{await new Promise(e=>{os.identifyUser(i,a,o,()=>{e()})})}catch(e){console.error("API call failed:",e)}try{await new Promise(e=>{ps.custom("form_submission",()=>{e()})})}catch(e){console.error("API call failed:",e)}}e.target._alreadySubmitted=!0,"function"==typeof e.target.requestSubmit?e.target.requestSubmit():e.target.submit()}},el=function(e){const t=[];return e.serializeArray().forEach(n=>{const i=e.find("[name='"+n.name.replace(/'/g,"\\'")+"']");if(i.length){const a=i.attr("placeholder")||"";let o="";const r=i.attr("id");if(r){const t=e.find("label[for='"+r+"']");t.length&&(o=t.text().trim())}if(!o){const e=i.closest("label");e.length&&(o=e.text().trim())}t.push({value:n.value,placeholder:a,label:o})}}),t},tl=function(e){const t=jQuery(e),n=el(t),{email:i,firstName:a,lastName:o}=Xs(n);try{sessionStorage.setItem("bb_last_submit",JSON.stringify({email:i,firstName:a,lastName:o,ts:Date.now()}))}catch(e){}},nl=new function(){this.beforeProfile=function(){nl.hideAllControlContent()},this.hideAllControlContent=function(){let e=document.querySelectorAll("["+cr.VISIBLE_CONTROL+"]");for(let t=0;t<e.length;t++)e[t].classList.add(cr.HIDDEN_DIV)},this.completeProfile=function(e,t){if(xr||(nl.handleGateContent(),nl.handleProfileWidget(),nl.handleContinueWith(),nl.handleFormControl()),!1!==e.capture_form_submission&&"anonymous"===t.state&&nl.handleFormSubmission(),nl.handleControlContent(),e&&e.newsletter&&e.newsletter.custom_event_code&&ke()){(function(e){let t=!1;if(ke()){let n=Fs.LAST_SUCCESS_EVENT_CODE+"-"+btoa(e);t=localStorage.getItem(n)}return t})(e.newsletter.custom_event_code)!=e.newsletter.custom_event_code+"_VIEWED"&&BreadButter.ui.addNewsletterWidget(e.newsletter)}},this.handleFormSubmission=function(){if(function(){try{const e=sessionStorage.getItem("bb_last_submit");if(!e)return;const{email:t,firstName:n,lastName:i,ts:a}=JSON.parse(e),o=Date.now()-(Number(a)||0)<3e4;if(sessionStorage.removeItem("bb_last_submit"),!o)return;t&&BreadButter.api.identifyUser(t,n,i),BreadButter.events.custom("form_submission")}catch(e){}}(),void 0!==window.gform||document.querySelector(".gform_wrapper, form[id^='gform_']"))return void(gform.utils&&gform.utils.addAsyncFilter?gform.utils.addAsyncFilter("gform/submission/pre_submission",async e=>(e&&e.submissionType!==gform.submission.SUBMISSION_TYPE_SUBMIT||tl(e.form),e)):document.addEventListener("submit",function(e){const t=e.target;t instanceof HTMLFormElement&&/^gform_\d+$/i.test(t.id)&&tl(t)},!0));if(void 0!==window.HubSpotForms)return void window.addEventListener("message",function(e){const t=e.data;if(t&&"hsFormCallback"===t.type&&"onFormSubmit"===t.eventName&&t.data){const{email:e,firstName:n,lastName:i}=Xs(t.data);e&&os.identifyUser(e,n,i),ps.custom("form_submission")}});if(js())return void new(Marionette.Object.extend({initialize:function(){this.listenTo(Backbone.Radio.channel("forms"),"submit:response",this.actionSubmit)},actionSubmit:function(e){if(e&&e.data&&e.data.fields_by_key){const{email:t,firstName:n,lastName:i}=Xs(e.data.fields_by_key);t&&BreadButter.api.identifyUser(t,n,i),BreadButter.events.custom("form_submission")}}}));if(void 0!==window.poptins)return void document.addEventListener("poptinSubmit",function(e){const t=e.detail.poptin_id;t&&setTimeout(()=>{const e=window.poptinSubmitted[t],{email:n,firstName:i,lastName:a}=Xs(e.fields);n&&BreadButter.api.identifyUser(n,i,a),BreadButter.events.custom("form_submission")},100)});if(null!==document.querySelector(".fl-builder-content"))return void document.addEventListener("fl_builder.form.success",async function(e){Js(e)});const e=document.querySelector('form[action*="spark.re"]');if(e){const t=e.submit.bind(e);return void(e.submit=function(){tl(e),t()})}document.querySelector(".elementor-form")?jQuery&&jQuery(document).on("submit",".elementor-form",async function(e){const t=jQuery(this);await async function(e){const t=el(e),{email:n,firstName:i,lastName:a}=Xs(t);try{await new Promise(e=>{BreadButter.api.identifyUser(n,i,a,()=>{e()})})}catch(e){console.error("API call failed:",e)}try{await new Promise(e=>{BreadButter.events.custom("form_submission",()=>{e()})})}catch(e){console.error("API call failed:",e)}}(t)}):document.addEventListener("submit",async function(e){Js(e)},!0)},this.handleFormControl=function(){let e=document.querySelectorAll("["+cr.FORM_CONTROL+"]"),t=document.querySelector("["+cr.FORM_EVENT+"]"),n=t&&t.attributes[cr.FORM_EVENT].value?t.attributes[cr.FORM_EVENT].value:"form_submission",i={};for(let t=0;t<e.length;t++){let n=e[t],a=n.attributes[cr.FORM_CONTROL].value.toUpperCase();cr.control[a]&&(i[cr.control[a]]=n)}
1if(i.form&&i.submit)if(xs()){if(i.name){const e=i.name;e&&yr.first_name&&(e.value=(yr.first_name+" "+(yr.last_name?yr.last_name:"")).trim(),e.disabled="disabled")}if(i.first_name){const e=i.first_name;e&&yr.first_name&&(e.value=yr.first_name.trim(),e.disabled="disabled")}if(i.last_name){const e=i.last_name;e&&yr.last_name&&(e.value=yr.last_name.trim(),e.disabled="disabled")}if(i.email){const e=i.email;e&&(e.value=yr.email_address,e.disabled="disabled")}i.form.addEventListener("submit",function(){ps.custom(n)})}else{const e=["textarea","input"];for(let t=0;i.form&&t<e.length;t++)Ws(i.form,e[t]);i.submit.disabled="disabled"}},this.handleControlContent=function(){let e=document.querySelectorAll("["+cr.VISIBLE_CONTROL+"]"),t=xs();for(let n=0;n<e.length;n++){let i=e[n],a=i.attributes[cr.VISIBLE_CONTROL].value;t&&a==cr.control.VERIFIED||!t&&a==cr.control.NOT_VERIFIED?i.classList.remove(cr.HIDDEN_DIV):i.classList.add(cr.HIDDEN_DIV)}},this.handleGateContent=function(){let e=document.querySelector("["+cr.PAGE_CONTROL+"]"),t=document.querySelector("["+cr.PAGE_REDIRECT+"]"),n=xs();if(e&&t){let i=t.attributes[cr.PAGE_REDIRECT].value,a=e.attributes[cr.PAGE_CONTROL].value;(a==cr.control.VERIFIED&&!n||a==cr.control.NOT_VERIFIED&&n)&&(ms=!0,l(),document.location.assign(i))}},this.handleProfileWidget=function(){let e=document.querySelector("["+cr.PROFILE_WIDGET+"]"),t=xs();if(e&&t){e.innerHTML=po.getProfileWidget(br,yr,Cr);let t=e.querySelector(".breadbutter-ui-profile-widget-container");t&&t.getBoundingClientRect().x<375&&t.classList.add("breadbutter-ui-left-aligned-container"),ol(e);const n=e.querySelector(".breadbutter-ui-profile-dashboard-logout-button");n&&(n.onclick=async function(){await Bt.resetDeviceVerification(),l(),window.location.reload()})}else e&&(e.innerHTML=po.getLoginWidget(),e.onclick=function(){let e=!1;void 0!==br.show_login_focus&&(e=br.show_login_focus),cl.continueWith({show_login_focus:e,...br})})},this.handleContinueWith=function(){let e=document.querySelector("["+cr.CONTINUE_WITH_SHOW+"]"),t=xs();if(e&&!t){let t=e.attributes[cr.CONTINUE_WITH_SHOW].value,n=!1;if(t)try{n=JSON.parse(t),"object"!=typeof n&&(n=!1)}catch(e){n=!1}cl.continueWith(n)}}};let il=0;const al=function(){let e=!1;return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)&&(e=!0),e},ol=function(e){e.querySelectorAll(".breadbutter-ui-profile-dashboard-custom-button").forEach(e=>{e.onclick=function(){let e=this.getAttribute("data-link"),t=this.getAttribute("data-target");e&&e.length&&("new"==t?window.open(e,"_blank"):"self"==t&&window.open(e,"_self"))}})},rl=function(e,t=!1){if(void 0!==(e=e||{}).disable_success_message&&e.disable_success_message)return;void 0===e.success_seconds&&(e.success_seconds=t?br.content_gating_success_seconds||5:br.continue_with_success_seconds||5),void 0===e.success_header&&(e.success_header=t?br.content_gating_success_header||pr.UI.GATING_SUCCESS_HEADER:br.continue_with_success_header||pr.UI.CONTINUE_SUCCESS_HEADER),void 0===e.success_text&&(e.success_text=t?br.content_gating_success_text||pr.UI.GATING_SUCCESS_TEXT:br.continue_with_success_text||pr.UI.CONTINUE_SUCCESS_TEXT),e.profile=yr;let n=isNaN(e.success_seconds)?5:e.success_seconds,i=al(),a=po.getContinueWithSignInSuccess(e,i);if(!a)return;let o=!1;i&&(a.classList.add("bb-mobile"),o=document.createElement("div"),o.classList.add("breadbutter-ui-continue-with-success-mask"),a.appendChild(o)),document.body.appendChild(a),a.style.zIndex=pe();let r=a.querySelector(".breadbutter-ui-continue-with-success-close");r&&r.addEventListener("click",()=>{a.remove(),o&&o.remove()}),n&&setTimeout(()=>{a.classList.add("bb-fade-out"),o&&o.remove(),setTimeout(function(){a.remove()},1e3)},1e3*n)},sl=new function(){this.addEventToLink=function(e,t){const n=document.getElementById(e);n&&(n.onclick=function(){let e=this.href;return ps.redirect(t,e),!1})},this.gateSection=function(e,t,n){if(!Gs({call:"gateSection",params:[e,t,n]}))return;n=n||"bb-hidden-div";const i="bb-hidden-div";"string"==typeof e&&(e=[e]),"string"==typeof t&&(t=[t]);const a=function(e,t){for(let a=0;e&&a<e.length;a++){let o=e[a],r=/[.#]{1}/.exec(o);r&&0==r.index||(o="#"+o);
1let s=document.querySelectorAll(o);for(let e=0;s&&e<s.length;e++){let a=s[e];t?(a.classList.remove(n),a.classList.contains(i)&&a.classList.remove(i)):(a.classList.add(n),a.classList.contains(i)||a.classList.add(i))}}};xs()?(a(e),a(t,!0)):(a(e,!0),a(t))},this.gateContent=function(e,t){if(Gs({call:"gateContent",params:[e,t]})&&!xs())for(let n=0;n<e.length;n++){let i=e[n],a=document.location.pathname,o=!1;-1!=i.indexOf("*")&&(o=!0,i=i.replace("/*","")),o?0==a.indexOf(i)&&0==a.replace(i,"").indexOf("/")&&(ms=!0,l(),document.location.assign(t)):a==i&&(ms=!0,l(),document.location.assign(t))}},this.gateLink=function(e,t){if(!Gs({call:"gateLink",params:[e]}))return;if(xs())return;t=t||{};const n=function(e,n){e.onclick=function(){let e=!0;return void 0!==t.show_login_focus&&(e=t.show_login_focus),cl.continueWith({show_login_focus:e,destination_url:n}),!1}};let i=document.getElementsByTagName("a");for(let t=0;t<e.length;t++){let a=e[t],o=!1;-1!=a.indexOf("*")&&(o=!0,a=a.replace("/*",""));for(let e=0;e<i.length;e++){let t=i[e],r=t.href.replace(document.location.origin,""),s=t.href;if(0!=s.indexOf("http")){let e=document.location.pathname.split("/"),t=s.split("/").reduce(function(e,t){return e?("object"==typeof e&&e.length||(e=[e]),e.concat(t)):t});t=[-1,1].concat(t),Array.prototype.splice.apply(e,t),s=document.location.origin+e.join("/")}o?0==r.indexOf(a)&&0==r.replace(a,"").indexOf("/")&&n(t,s):r==a&&n(t,s)}}},this.gateRoute=function(e,t,n){Gs({call:"gateRoute",params:[e,t,n]})&&(xs()||(this.gateContent(e,t),this.gateLink(e,n)))},this.contentPreview=function(e){Gs({call:"contentPreview",params:[e]})&&(void 0!==e&&(Nr=e),Qr())},this.contentGating=function(e){Gs({call:"contentGating",params:[e]})&&(void 0!==e&&(kr=e),Jr())},this.applyHubspotForm=function(){if(!Gs({call:"applyHubspotForm",params:[]}))return;let e=!1;document.querySelector(".hs-form-iframe")?e=document.querySelector(".hs-form-iframe").contentDocument:document.querySelector(".hs-custom-form")?e=document.querySelector(".hs-custom-form"):document.querySelector(".hs-form-private")&&(e=document.querySelector(".hs-form-private"));const t=function(t,n){let i=e.querySelector(`input[name=${t}]`);
1i&&(i.value=n,function(e){function t(e,t){try{let n=new Event(t,{target:e,bubbles:!0});return!!e&&e.dispatchEvent(n)}catch(n){let i=document.createEvent("Event");i.initEvent(t,!0,!0),e.dispatchEvent(i)}}t(e,"change"),t(e,"input"),t(e,"blur")}(i))};e&&(xs()?(yr.first_name&&t("firstname",yr.first_name),yr.last_name&&t("lastname",yr.last_name),t("email",yr.email_address),e.querySelectorAll("input[name=firstname],input[name=lastname],input[name=email]").forEach(function(e){e.addEventListener("click",function(e){e.target.blur()})})):(e.querySelectorAll("input:not([type=submit],[type=hidden]),textarea").forEach(function(e){e.addEventListener("click",function(e){e.target.blur(),cl.continueWith({show_login_focus:!0,destination_url:window.location.href})})}),e.querySelector("input[type=submit]").addEventListener("click",function(e){e.preventDefault(),e.stopImmediatePropagation(),e.stopPropagation()})))},this.applyJotForm=function(e){if(!Gs({call:"applyJotForm",params:[e]}))return;let t=!1;if(document.querySelector("form.jotform-form"))t=document.querySelector("form.jotform-form");else{let e=document.querySelectorAll("iframe");for(let n=0;n<e.length;n++){let i=e[n];if(i.contentDocument){let e=i.contentDocument,n=e.querySelector("form"),a=e.querySelector("input[name=formID]");n&&a&&a.value==i.id&&(t=n)}}}const n=function(e,n){let i=t.querySelector(`input[data-component=${e}]`);i&&(i.value=n,i.addEventListener("click",function(e){e.target.blur()}))};t?(il=0,xs()?(n("first",yr.first_name),n("last",yr.last_name),n("email",yr.email_address),n("emailConfirmation",yr.email_address),t.querySelector("button[type=submit]").addEventListener("click",function(t){e&&BreadButter.events.custom(e)})):(t.querySelectorAll("input,textarea").forEach(function(e){e.addEventListener("click",function(e){e.target.blur(),cl.continueWith({show_login_focus:!0,destination_url:window.location.href})})}),t.querySelector("button[type=submit]").addEventListener("click",function(e){e.preventDefault(),e.stopImmediatePropagation(),e.stopPropagation(),cl.continueWith({show_login_focus:!0,destination_url:window.location.href})}))):il<3&&(il++,setTimeout(()=>{sl.applyJotForm(e)},500))},this.applyFormControl=function(e,t){if(!Gs({call:"applyFormControl",params:[e,t]}))return;e=e||{},t=t||{};const n=document.getElementById(e.form),i=document.getElementById(e.submit);if(n&&i)if(xs()){if(e.name){const t=document.getElementById(e.name);t&&(t.value=((yr.first_name?yr.first_name:"")+" "+(yr.last_name?yr.last_name:"")).trim(),t.value.length&&(t.disabled="disabled"))}if(e.first_name&&yr.first_name){const t=document.getElementById(e.first_name);t&&(t.value=yr.first_name.trim(),t.disabled="disabled")}if(e.last_name&&yr.last_name){const t=document.getElementById(e.last_name);t&&(t.value=yr.last_name.trim(),t.disabled="disabled")}if(e.email){const t=document.getElementById(e.email);t&&(t.value=yr.email_address,t.disabled="disabled")}if(e.email_confirm){const t=document.getElementById(e.email_confirm);t&&(t.value=yr.email_address,t.disabled="disabled")}let t=e.event?e.event:"form_submission";n.addEventListener("submit",function(){ps.custom(t)})}else{const e=["textarea","input"];for(let t=0;n&&t<e.length;t++)Ws(n,e[t]);i.disabled="disabled"}},this.handleLogout=function(e){if(!Gs({call:"handleLogout",params:[e]}))return;const t=document.getElementById(e);t&&(t.addEventListener("click",async e=>{await Bt.resetDeviceVerification(),l(),window.location.reload()}),xs()||(t.style.display="none"))},this.handleLogin=function(e,t){if(!Gs({call:"handleLogin",params:[e,t]}))return;t=t||{};const n=document.getElementById(e);n&&(n.addEventListener("click",async e=>{await Bt.resetDeviceVerification(),cl.continueWith(t)}),xs()&&(n.style.display="none"))},this.handleContactUs=function(e,t){if(!Gs({call:"handleContactUs",params:[e,t]}))return;t=t||{},t={continue_with_position:"center",...t};const n=document.getElementById(e);n&&(n.addEventListener("click",async e=>{sl.contactUsForm(!1,t)}),qs()&&(xs()||xr)&&sl.contactUsForm(!1,t))},this.toggleLoginLogout=function(e,t){if(!Gs({call:"toggleLoginLogout",params:[e,t]}))return;t=t||{},br=br||{};const n=document.getElementById(e);n&&(xs()?(n.addEventListener("click",e=>{l(),window.location.reload()}),n.innerText=t.logout_text||pr.UI.LOGOUT||"Sign out"):(n.addEventListener("click",e=>{cl.continueWith(br)}),n.innerText=t.login_text||pr.UI.LOGIN||"Sign in"))},this.applyText=function(e,t,n){if(!Gs({call:"applyText",params:[e,t,n]}))return;n=n||{};const i=document.getElementById(e);if(i)if(xs()){let e=j({FIRST_NAME:yr.first_name?yr.first_name:"",LAST_NAME:yr.last_name?yr.last_name:"",NAME:((yr.first_name?yr.first_name:"")+" "+(yr.last_name?yr.last_name:"")).trim(),EMAIL:yr.email_address},t);"html"===n.type?i.innerHTML=e:i.innerText=e}else n.hide_on_logout&&(i.style.display="none")},this.addProfileWidget=function(e,t){if(!Gs({call:"addProfileWidget",params:[e,t]}))return;ws(t=t||{},"profile_tool_buttons");let n=document.getElementById(e);if(n)if(xs()){let e=al();n.innerHTML=po.getProfileWidget(t,yr,Cr,e);let i=n.querySelector(".breadbutter-ui-profile-widget-container");i&&i.getBoundingClientRect().x<375&&i.classList.add("breadbutter-ui-left-aligned-container"),ol(n);const a=n.querySelector(".breadbutter-ui-profile-dashboard-logout-button");a&&(a.onclick=async function(){await Bt.resetDeviceVerification();let e=!0;"function"==typeof t.onLogout&&(e=t.onLogout()),e&&(l(),window.location.reload())})}
1else if(!xr)if(Us())n.appendChild(po.getContinueWithSignInWidget(t,yr,Cr,!0)),n.onclick=function(){let e=!1;void 0!==t.show_login_focus&&(e=t.show_login_focus),cl.continueWith({from_continue_with:!0,show_login_focus:e,...t})};else{let n=document.getElementById(e);n.innerHTML=po.getLoginWidget(),n.onclick=function(){let e=!1;void 0!==t.show_login_focus&&(e=t.show_login_focus),cl.continueWith({from_continue_with:!0,show_login_focus:e,...t})}}},this.applyContinueWithTrigger=function(e,t){if(!Gs({call:"applyContinueWithTrigger",params:[e,t]}))return;t=t||{};const n=document.getElementById(e);n&&n.addEventListener("click",()=>{cl.continueWith({from_continue_with:!0,destination_url:document.location.href,...t})})},this.profileWidget=function(e){if(Gs({call:"profileWidget",params:[e]}))if(ws(e,"profile_tool_buttons"),al())setTimeout(()=>{document.querySelector(".breadbutter-popup")||(xs()?(ur.init(e),ur.addProfileWidget(e,t=>{let n=po.getMobileContinueWithSignInWidget(e,yr,Cr);t.appendChild(n);const i=t.querySelector(".breadbutter-ui-profile-dashboard-logout-button");i&&(i.onclick=async function(){await Bt.resetDeviceVerification();let t=!0;"function"==typeof e.onLogout&&(t=e.onLogout()),t&&(l(),window.location.reload())})})):xr||cl.continueWith({from_continue_with:!0,collapse_first:!0,...e}))},1e3);else if(!xr||xs())if(xs()){let t=po.getContinueWithSignInHolder(e);document.body.appendChild(t),t.appendChild(po.getContinueWithSignInWidget(e,yr,Cr));let n=t.querySelector(".breadbutter-ui-profile-widget-container");n&&n.getBoundingClientRect().x<375&&n.classList.add("breadbutter-ui-left-aligned-container");const i=t.querySelector(".breadbutter-ui-profile-dashboard-logout-button");i&&(i.onclick=async function(){await Bt.resetDeviceVerification();let t=!0;"function"==typeof e.onLogout&&(t=e.onLogout()),t&&(l(),window.location.reload())})}else if(Us()){let t=po.getContinueWithSignInHolder(e);document.body.appendChild(t),t.appendChild(po.getContinueWithSignInWidget(e,yr,Cr,!0)),t.onclick=function(){let t=!1;void 0!==e.show_login_focus&&(t=e.show_login_focus),cl.continueWith({from_continue_with:!0,show_login_focus:t,...e})}}else{let t=po.getContinueWithSignInHolder(e);document.body.appendChild(t);let n=po.getContinueWithSignInWidget(e,yr,Cr,!0);"anonymous"==yr.state?t.innerHTML=n:t.appendChild(n),t.onclick=function(){let t=!1;void 0!==e.show_login_focus&&(t=e.show_login_focus),cl.continueWith({from_continue_with:!0,show_login_focus:t,...e})}}},this.continueWith=function(e){if(!Gs({call:"continueWith",params:[e]}))return;e=e||{},e={from_continue_with:!0,hide_verified:!0,show_logged_in_profile:!1,...e},ws(e,"show_login_focus"),ws(e,"continue_with_position"),ws(e,"disable_continue_with_success_message"),ws(e,"profile_tool_buttons"),ws(e,"disable_continue_with_mobile");let t=!(!(e=Ms(e))||!e.mode)&&e.mode;if(al()&&e.disable_continue_with_mobile)return;if(e.show_only&&e.show_only.length){let t=!1,n=e.show_only;switch(typeof e.show_only){case"string":document.location.pathname.endsWith(n)&&(t=!0);break;case"object":for(let e=0;!t&&e<n.length;e++){let i=n[e];document.location.pathname.endsWith(i)&&(t=!0)}}if(!t)return}let n=e=>{cl.continueWith(e),Br()};e&&e.delay_seconds&&e.delay_seconds>0&&(n=t=>{setTimeout(()=>{cl.continueWith(t),Br()},1e3*e.delay_seconds)});let i=!1;ke()&&(i=localStorage.getItem(Fs.CONTINUE_WITH_SIGN_IN),i=!!i,localStorage.removeItem(Fs.CONTINUE_WITH_SIGN_IN));let a=Hr(e);if(t)cl.continueWith(e);else if(!a||e.ignore_email_identification)if(xs()){if(e.show_logged_in_profile){let t=po.getContinueWithSignInHolder(e);document.body.appendChild(t),t.appendChild(po.getContinueWithSignInWidget(e,yr,Cr));let n=t.querySelector(".breadbutter-ui-profile-widget-container");n&&n.getBoundingClientRect().x<375&&n.classList.add("breadbutter-ui-left-aligned-container");const i=t.querySelector(".breadbutter-ui-profile-dashboard-logout-button");i&&(i.onclick=async function(){await Bt.resetDeviceVerification();let t=!0;"function"==typeof e.onLogout&&(t=e.onLogout()),t&&(l(),window.location.reload())})}!i||Ds()||e.disable_continue_with_success_message||rl(e)}else Us()?e.hide_verified?yr&&yr.email_address&&e.show_login_focus&&n(e):yr&&yr.email_address&&!e.show_login_focus&&!al()?Bt.getClientSettings(yr.email_address,t=>{let n=po.getContinueWithVerifiedUserHolder(t.user_profile,t.suggested,e);document.body.appendChild(n),document.body.classList.add("breadbutter-ui-verified-showing"),n.onclick=async function(){document.body.classList.remove("breadbutter-ui-verified-showing")},e.skipScrolling=!0,cl.continueWith(e),"function"==typeof e.addEvent&&e.addEvent("scrolling",e=>{document.body.classList.contains("breadbutter-ui-verified-showing")||document.body.classList.add("breadbutter-ui-verified-showing")})}):n(e):n(e)},this.contactUsForm=function(e,t){Gs({call:"contactUsForm",params:[e,t]}
1)&&(t=t||{},cl.contactUs(e,t))},this.contactUs=function(e){if(!Gs({call:"contactUs",params:[e]}))return;(e=e||{}).continue_with_position?(e.continue_with_position.top||e.continue_with_position.bottom||(e.continue_with_position.bottom="10px"),e.continue_with_position.left||e.continue_with_position.right||(e.continue_with_position.right="10px")):e.continue_with_position={bottom:"10px",right:"10px"},po.init(e);let t=po.getContactUsIcon(e),n=po.getContactUsIconMessage(e);al()&&(t.classList.add("bb-mobile"),n.classList.add("bb-mobile")),document.body.appendChild(t),document.body.appendChild(n),t.addEventListener("click",()=>{cl.contactUs(!1,e),setTimeout(()=>{n.classList.remove("bb-hide")},1e3)}),n.addEventListener("click",()=>{cl.contactUs(!1,e),setTimeout(()=>{n.classList.remove("bb-hide")},1e3)});let i=Hr(e);qs()&&(Us()||i)&&sl.contactUsForm(!1,e)},this.optIn=function(e,t){Gs({call:"optIn",params:[e,t]})&&(t=t||{},xs()||cl.optIn(e,t))},this.signIn=function(e,t){Gs({call:"signIn",params:[e,t]})&&(t=t||{},xs()||xr||cl.signIn(e,t))},this.showContentPreview=function(e){if(!Gs({call:"showContentPreview",params:[e]}))return;e=e||{};let t=po.getContentGatingCoverPage(e);t.classList.add("bb-content-preview"),document.body.appendChild(t);let n={...e,destination_url:document.location.href.split("?")[0],onFormChange:(e,n)=>{if(n)t.classList.remove("bb-hide-title");else switch(e){case"forgot-form":case"reset-form":case"confirm-form":t.classList.add("bb-hide-title");break;default:t.classList.remove("bb-hide-title")}}};cl.signIn("breadbutter-ui-content-gating-content-holder",n),document.body.classList.add("breadbutter-locked-limit-content"),setTimeout(()=>{t.classList.add("animate-in")},200)},this.showContentGating=function(e){if(Gs({call:"showContentGating",params:[e]})&&!xs()){zr=!0,e=e||{};const t="reset-form",n="confirm-form",i="forgot-form";let a=po.getContentGatingCenterPage(e,Sr);document.body.appendChild(a);let o={...e,destination_url:document.location.href.split("?")[0],onFormChange:(e,o)=>{if(o)a.classList.remove("bb-hide-title");else switch(e){case i:case t:case n:a.classList.add("bb-hide-title");break;default:a.classList.remove("bb-hide-title")}}},r=a.querySelector(".breadbutter-ui-content-gating-close");r&&r.addEventListener("click",()=>{zr=!1,a.remove()}),cl.signIn("breadbutter-ui-content-gating-content-holder",o),document.body.classList.add("breadbutter-locked-limit-content"),setTimeout(()=>{document.querySelector(".breadbutter-ui-content-gating-holder").classList.add("bb-content-gating-holder-show"),document.querySelector(".breadbutter-ui-content-gating-background").classList.add("bb-content-gating-background-show")},100)}},this.cookieConsent=function(e){if(!Gs({call:"cookieConsent",params:[e]}))return;if((e=e||{}).privacy_policy_url=Wr.settings.privacy_policy_url,e.terms_and_conditions_url=Wr.settings.terms_and_conditions_url,ke()&&localStorage.getItem(Fs.COOKIE_CONSENT))return;if(!e.privacy_policy_url&&!e.terms_and_conditions_url)return;let t=po.getCookieConsent(e);if(!t)return;document.body.appendChild(t),al()&&t.classList.add("bb-mobile");const n=()=>{ps.custom("cookie_consent",function(){ke()&&localStorage.setItem(Fs.COOKIE_CONSENT,!0),t.remove()})};let i=t.querySelector(".breadbutter-ui-cookie-consent-button");i&&i.addEventListener("click",n);let a=t.querySelector(".breadbutter-ui-cookie-consent-widget-close");a&&a.addEventListener("click",n)},this.addNewsletterWidget=function(e,t){if(!Gs({call:"addNewsletterWidget",params:[e,t]}))return;let n=!0;if("object"==typeof e&&(n=!1,t=e),!t.custom_event_code)return;if(qs())return;if(document.querySelector(".contactus-popup")&&document.querySelector(".contactus-popup").checkVisibility())return;if(document.querySelector(".breadbutter-mask")&&document.querySelector(".breadbutter-mask").checkVisibility()){if(!al())return;if(!document.querySelector(".breadbutter-mask").classList.contains("breadbutter-mask-transparent"))return}let i=Hr(t),a=xs()||i,o=po.checkEventStorage(t.custom_event_code);if(!n&&o!=t.custom_event_code&&t.delay_seconds&&!isNaN(t.delay_seconds)){let e=Number(t.delay_seconds);delete t.delay_seconds;let n=Ms({});return void(n&&n.mode?sl.addNewsletterWidget(t):setTimeout(()=>{sl.addNewsletterWidget(t)},1e3*e))}if(!n&&zr)return;Dr&&!Ur&&ur.close();let r,s,l={success_seconds:3};if(void 0===(t=t?{...l,...t}:{...l}
1).show_focus&&(t.show_focus=!0),n){if(r=document.getElementById(e),!r)return;if(t.verified=a,t.profile=yr,s=po.getNewsletterWidget(t),!s)return;r.innerHTML=s.html}else if(!zr){if(Cs(t))return;let e=al();if(o==po.getViewedCode(t.custom_event_code))return;if(t.verified=a,t.profile=yr,s=po.getNewsletterPopupWidget(t,e),!s)return;if(r=document.createElement("div"),r.classList.add("breadbutter-ui-newsletter-popup"),r.innerHTML=s.html,e){r.classList.add("bb-mobile");let e=document.createElement("div");e.classList.add("breadbutter-ui-newsletter-widget-mask"),r.appendChild(e)}document.body.appendChild(r),r.style.zIndex=pe();let n=r.querySelector(".breadbutter-ui-newsletter-widget-close");n&&n.addEventListener("click",()=>{ke()&&(localStorage.setItem(Fs.NEWSLETTER_CLOSE,1),localStorage.setItem(Fs.NEWSLETTER_CLOSE_TIMER,Date.now())),r.remove()}),setTimeout(()=>{document.querySelector(".breadbutter-ui-newsletter-popup").classList.add("bb-newsletter-popup-show")},150)}if(xs()||i){let n=r.querySelector(".breadbutter-ui-newsletter-subscribe");n&&n.addEventListener("click",n=>{let i=n.target.parentElement;n.target.remove();let a=document.createElement("div");a.classList.add("breadbutter-ui-newsletter-loader"),i.appendChild(a),ps.custom(t.custom_event_code,()=>{"string"!=typeof e&&r.remove(),Bt.assignEventStorage(t.custom_event_code),BreadButter.ui.addNewsletterWidget(e,t)})})}else{let e={...t};e.success_event_code=t.custom_event_code,e.destination_url=document.location.href.split("?")[0],cl.signIn(s.index,e)}if(a&&o&&o!=po.getViewedCode(t.custom_event_code)){let n=t.success_seconds;isNaN(n)||(n=Number(n),setTimeout(()=>{"string"!=typeof e&&r.remove()},1e3*n))}}};let ll=!1;const cl=new function(){this.deIdentification=function(e){zr||((e=Ms(e))&&e.mode&&e.mode,e=Is(e),Ss.deIdentification(e))},this.continueWith=function(e){if(Ur=!1,zr)return;(e=e||{}).destination_url||(e.destination_url=document.location.href.split("?")[0]),e=Ms(e),ks=!0;let t=!(!e||!e.mode)&&e.mode;if(e=Is(e),!ll&&e.show_login_focus&&(ll=!0,ps.custom("blur_screen")),Ds())Rs=!0,Ur=!0,Ss.customForm(e);else if(t)switch(Ur=!0,t){case Fn.mode.NULL_EMAIL_ERROR:Ur=!1,Ss.form(e);break;case Fn.mode.DEIDENTIFICATION:Ss.deIdentification(e);break;case Fn.mode.CONFIRM_EMAIL:Ss.confirmEmail(e);break;case Fn.mode.RESET_PASSWORD:Ss.resetPassword(e);break;case Fn.mode.INVITATION:Ss.invitation(e);break;case Fn.mode.MAGIC_LINK:Ss.magicLink(e);break;default:Ur=!1,Ss.form(e)}else(function(e){return!e.show_login_focus&&!e.bypass_remember_close&&e.remember_close&&ys()})(e)||Ss.form(e)},this.contactUs=function(e,t){if(void 0===t.expand_email_address&&(t.expand_email_address=!1),(t=Is(t)).destination_url=document.location.href.split("?")[0],t.contact_us=!0,t.locale||(t.locale={}),t.locale.CONTACT_US&&"{}"!=JSON.stringify(t.locale.CONTACT_US)?t.locale.CONTACT_US=Object.assign(pr.CONTACT_US,t.locale.CONTACT_US):t.locale.CONTACT_US=pr.CONTACT_US,t.locale.REGISTER||(t.locale.REGISTER={}),t.locale.INCOGNITO||(t.locale.INCOGNITO={}),t.locale.LOGIN||(t.locale.LOGIN={CONTENT:""}),Us()||xr){let e=yr.first_name?yr.first_name:"",n=e?t.locale.CONTACT_US.SUB_HEADER:t.locale.CONTACT_US.SUB_HEADER_2;t.locale.CONTACT_US.HEADER=j({FIRST_NAME:e},n)}e?Ss.contactUs(e,t):(document.body.classList.remove("breadbutter-ui-verified-showing"),Ss.contactUs(t))},this.optIn=function(e,t){t=Ms(t),(t=Is(t)).destination_url=document.location.href.split("?")[0],t.expand_email_address=!0,t.opt_in=!0,e?Ss.optIn(e,t):Ss.optIn(t)},this.signIn=function(e,t){let n=!(!(t=Ms(t))||!t.mode)&&t.mode;if(ks=!0,t=Is(t),n)switch(n){case Fn.mode.NULL_EMAIL_ERROR:Ss.form(e,t);break;case Fn.mode.CONFIRM_EMAIL:Ss.confirmEmail(e,t);break;case Fn.mode.RESET_PASSWORD:Ss.resetPassword(e,t);break;case Fn.mode.INVITATION:Ss.invitation(e,t);break;case Fn.mode.MAGIC_LINK:Ss.magicLink(e,t);break;default:Ss.form(e,t)}else Ss.form(e,t)},this.cookie=function(){if(zr)return;let e=Is();za(e)},this.buttons=function(e,t){t=Is(t),Ss.button(e,t)},this.formAutoFill=function(e){e=Is(e);let t=!1;os.getProfile(function(n,i,a,o){o&&o.settings&&o.settings.email_option_default&&(o.settings.email_option_default==hr&&(!e||!e.email_option_default)||e&&e.email_option_default==hr)&&((e=>{let t=!1;return e.settings&&e.settings.password_settings&&e.settings.password_settings.enabled&&(t=!0),t})(o)?e.email_option_default=vr:(e=>{let t=!1,n=!1,i=!1;return e.settings&&e.settings.magic_link_settings&&(e.settings.magic_link_settings.enabled&&(t=!0),e.settings.magic_link_settings.registration_enabled&&(n=!0)),i=t||n,i})(o)&&(e.email_option_default=Er));const r=Array.from(document.querySelectorAll("form")).filter(e=>{const t=e.className||"";if(/\bsearch(?:-|\b)/.test(t))return!1;const n=e.getAttribute("role");return!(n&&"search"===n.toLowerCase())});if(r.length)if(a){if(n){function s(e){const t=e||document,n=Array.from(t.querySelectorAll("input")),i=Array.from(t.querySelectorAll("label")),a=new Map;
1i.forEach(e=>{const n=e.getAttribute("for");if(n){const i=t.querySelector(`#${CSS.escape(n)}`);i&&a.set(i,e.textContent||"")}}),n.forEach(e=>{if(!a.has(e)){let t=e.parentElement;for(;t;){if(t.tagName&&"LABEL"===t.tagName){a.set(e,t.textContent||"");break}t=t.parentElement}}});let o=null,r=null,s=null,l=null;return n.forEach(e=>{const{matchesFirst:t,matchesLast:n,matchesEmailByKey:i,matchesEmailByType:c,matchesFullName:d}=Zs({key:e.name||e.id||"",label:a.get(e)||"",placeholder:e.placeholder||"",type:e.type});i||c?s||(s=e):t?o||(o=e):n?r||(r=e):d&&(l||(l=e))}),{firstNameEl:o,lastNameEl:r,emailEl:s,fullNameEl:l}}const{email_address:l,first_name:c,last_name:d}=n,u=e=>{js()&&["input","change","keyup"].forEach(t=>{e.dispatchEvent(new Event(t,{bubbles:!0}))})};r.forEach(e=>{const{firstNameEl:t,lastNameEl:n,emailEl:i,fullNameEl:a}=s(e),o=e=>{e&&("readOnly"in e&&(e.readOnly=!0),e.setAttribute("aria-readonly","true"),e.addEventListener("keydown",e=>e.preventDefault()),e.addEventListener("paste",e=>e.preventDefault()),e.addEventListener("input",e=>{e.preventDefault(),e.stopImmediatePropagation(),e.stopPropagation()}),e.addEventListener("change",e=>{e.preventDefault(),e.stopImmediatePropagation(),e.stopPropagation()}))};if(i&&l&&(i.value=l,u(i),o(i)),t&&c&&(t.value=c,u(t),o(t)),n&&d&&(n.value=d,u(n),o(n)),!t&&a&&n&&c&&(a.value=c,u(a),o(a)),!n&&a){const e=[];c&&e.push(c),d&&e.push(d),e.length&&(a.value=e.join(" "),u(a),o(a))}})}}else r.forEach(n=>{n.addEventListener("click",function(n){const i=n.target;"INPUT"!==i.tagName&&"TEXTAREA"!==i.tagName&&"SELECT"!==i.tagName&&"BUTTON"!==i.tagName||t||(t=!0,i.blur(),sl.continueWith({...e,show_login_focus:!0,onFormClose:function(){t=!1}}))})})})}},dl=e=>e?e.split(";").map(e=>e.split("=")).reduce((e,t)=>(e[Re(t[0].trim())]=Re(void 0===t[1]?null:t[1].trim()),e),{}):{};String.prototype.endsWith||(String.prototype.endsWith=function(e,t){var n=this.toString();("number"!=typeof t||!isFinite(t)||Math.floor(t)!==t||t>n.length)&&(t=n.length),t-=e.length;var i=n.indexOf(e,t);return-1!==i&&i===t});var ul,pl={configure:function(e){for(let t=0;t<Pr.length;t++){let n=Pr[t];void 0!==e[n]&&(br[n]=e[n])}return void 0!==e.content_preview&&(Nr=e.content_preview),void 0!==e.locale?br.locale=e.locale:br.locale={},void 0!==e.app_id&&(br.app_id=e.app_id.replace(/-/g,"")),void 0!==e.continue_with_position&&"object"==typeof e.continue_with_position&&(br.continue_with_position=e.continue_with_position),"object"==typeof e.custom_data&&(br.custom_data=e.custom_data,br.custom_data.length&&(br.custom_data_required=!0)),os.configure({app_id:br.app_id,app_secret:br.app_secret,api_path:br.api_path,destination_url:br.destination_url,callback_url:br.callback_url,force_reauthentication:br.force_reauthentication,client_data:br.client_data,allow_sub_domain:br.allow_sub_domain,success_event_code:br.success_event_code,hide_local_auth_domains:br.hide_local_auth_domains,landing_redirect_url:br.landing_redirect_url,window_open:br.window_open,registration_destination_url:br.registration_destination_url,custom_data_required:br.custom_data_required,wordpress_admin_ajax:br.wordpress_admin_ajax,wordpress_admin_page:br.wordpress_admin_page}),nl.beforeProfile(),mr(br),ur=new Ha,function(){for(Fr=!0;qr.length;){let e=qr.shift();"function"==typeof e&&e()}}(),t=br.language,t=Y(t),Lr=F[t]?Promise.resolve(t):($[t]||($[t]=new Promise(function(e){const n=function(i){const a=document.createElement("script");a.async=!0,a.src=i[0],a.onload=function(){const n=window.breadbutterLocale;n&&n[t]&&(F[t]=n[t]),e(F[t]?t:"en")},a.onerror=function(){i.length>1?n(i.slice(1)):e("en")},document.getElementsByTagName("head")[0].appendChild(a)},i=[V(q,t)];q!==H&&i.push(V(H,t)),n(i)})),$[t]),new Promise(function(t){var r;r=function(){po.init(br),Te(br),os.getProfile(function(r,c,d,u){let p=!1;u&&u.error?u.error.code==dr.CODE.CORS_ISSUE&&(function(e){const t=e&&e.category?e.category:o,r=e&&e.url?e.url:"the Bread & Butter API",l=e?e.elapsed:void 0,c={endpoint:r,event:e?e.event:void 0,status:e?e.status:0,category:t,elapsed_ms:l};if(t===n||e&&e.page_unloading||s)return;if(t===i)return void console.warn(`Breadbutter SDK: the request to ${r} timed out before a response was received.`,c);if(t===a)return void console.warn(`Breadbutter SDK: the request to ${r} was lost after waiting ${l}ms for a response. The Bread & Butter API is responding slowly or the connection dropped mid-request.`,c);const d=function(){try{return parseInt(window.sessionStorage.getItem($r),10)||0}catch(e){return 0}}()+1;Vr(d),d>=3?console.error(`Breadbutter SDK: the request to ${r} has failed to reach the Bread & Butter API ${d} times in this browser session. Please check that app_id is correct and that this origin is in the CORS allow list.`,c):console.warn(`Breadbutter SDK: the request to ${r} did not complete - the response never reached the browser. This is usually a cancelled navigation, an offline or unstable network, or a browser extension, proxy or DNS blocking the request. If this happens on every page load, check that app_id is correct and that this origin is in the CORS allow list.`,c)}(u.error),p=!0):u&&Vr(0),xr=Gr(u,br),void 0!==u.tracking_enabled&&!1!==br.page_view_tracking&&(br.page_view_tracking=u.tracking_enabled),window.addEventListener("pageshow",function(){Object.assign({},yr);let e=Ir;setTimeout(()=>{os.getProfile(function(t,n,i){e!=i&&(l(),window.location.reload())})},10)}),Tr=!0,Bs(),t(r,d),p||(nl.completeProfile(e,r),Qr(),function(){let e=Ms({});e&&e.mode&&(e.mode===Fn.mode.DEIDENTIFICATION?As||cl.deIdentification(e):setTimeout(()=>{ks||cl.continueWith()},1500))}(),Ds()&&setTimeout(()=>{Rs||cl.continueWith()},1500),ms||(async()=>
1{if(br.page_view_tracking){let e=document.referrer;0==document.referrer.indexOf(document.location.origin)&&(e=!1),Os&&Os.bb_noref&&"true"==Os.bb_noref&&(e=!1),window.addEventListener("hashchange",function(){ps.pageview()}),window.addEventListener("bb-new-device-id",function(){ps.pageview()});const t=[hs(),Es()];Promise.all(t).then(([t,n])=>{ps.pageview(!1,e,{...t,...n});let i=!n||!n.segment_anonymous_id;rs?er.initialize(ps,_s,!1,i):us(er.initialize,[ps,_s,gs,i])}).catch(e=>{console.error("Error:",e)})}})())})},function(e){fr?e():_r.push(e)}(function(){Lr.then(function(){mr(br),r()})})});var t},initialize:function(e){var t,n,i,a,o;(function(e){q=e&&-1!==e.indexOf(".min.js")?e:H})(e),n="link",i="logon-fonts",o=(o=(t=document).getElementsByTagName(n)[0])?o.parentNode:t.getElementsByTagName("head")[0],t.getElementById(i)||((a=t.createElement(n)).id=i,a.rel="stylesheet",a.href="https://cdn.breadbutter.io/dist/fonts/fonts.20260311.css",o.append(a)),function(e){!function(t,n,i){if(t.getElementById(i))gr();else{var a=e&&-1!==e.indexOf(".min.js")?e.replace(".min.js",".min.css"):"https://cdn.breadbutter.io/dist/breadbutter.latest.min.css",o=t.createElement("link");o.id=i,o.rel="stylesheet",o.href=a,o.onload=gr,o.onerror=gr,t.getElementsByTagName("head")[0].appendChild(o)}}(document,0,"breadbutter-styles")}(e)},isConfigurationComplete:function(){return Fr},addConfigurationQueue:function(e){Fr?e():qr.push(e)},api:os,ui:sl,providers:tr,providers_buttons:ir,events:ps,widgets:cl,mode:Fn.mode},ml=e(Object.freeze({__proto__:null,default:pl}));!function(){if(ul)return t.exports;ul=1;const e=document.currentScript&&document.currentScript.src||"",n=ml.default,i=new function(){let t=this;t.init=!1,t.configure=n.configure,t.isConfigurationComplete=n.isConfigurationComplete,t.addConfigurationQueue=n.addConfigurationQueue,t.getProfile=n.api.getProfile,t.getDeviceId=n.api.getDeviceId,t.identifyUser=n.api.identifyUser,t.ping=n.api.ping,t.api=n.api,t.ui=n.ui,t.events=n.events,t.providers=n.providers,t.providersButtons=n.providers_buttons,t.widgets=n.widgets,t.mode=n.mode,n.initialize(e)};(function(e){if(e.BreadButter=i,e.LogonClient=i,e.logonAsync&&e.logonAsync(),e.spreadButter&&e.spreadButter(),e.initBreadButter&&e.initBreadButter(),e.launchBreadButter&&e.launchBreadButter(),e.breadbutterQueue&&e.breadbutterQueue.length)for(let t=0;t<e.breadbutterQueue.length;t++)"function"==typeof e.breadbutterQueue[t]&&e.breadbutterQueue[t]();if(e.breadbutterPostConfigurationQueue&&e.breadbutterPostConfigurationQueue.length)for(;e.breadbutterPostConfigurationQueue.length;){let t=e.breadbutterPostConfigurationQueue.shift();"function"==typeof t&&n.addConfigurationQueue(t)}i.init=!0})(window),t.exports=i,t.exports.breadbutter=i,t.exports}()}();
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.