var t="e35d7136cee78d344ccffdbd5ca710fa",e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,n)};var n=function(){return(n=Object.assign||function(t){for(var e,n=1,i=arguments.length;n=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function a(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var i,o,s=n.call(t),r=[];try{for(;(void 0===e||e-- >0)&&!(i=s.next()).done;)r.push(i.value)}catch(t){o={error:t}}finally{try{i&&!i.done&&(n=s.return)&&n.call(s)}finally{if(o)throw o.error}}return r}function l(t){return this instanceof l?(this.v=t,this):new l(t)}var c=Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e};function u(t,e,n,i){if("a"===n&&!i)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!i:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?i:"a"===n?i.call(t):i?i.value:e.get(t)}function h(t,e,n,i,o){if("m"===i)throw new TypeError("Private method is not writable");if("a"===i&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!o:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===i?o.call(t,n):o?o.value=n:e.set(t,n),n}var d=Object.freeze({__proto__:null,get i(){return n},o:function(t){var e,n;return e={},i("next"),i("throw",(function(t){throw t})),i("return"),e[Symbol.iterator]=function(){return this},e;function i(i,o){e[i]=t[i]?function(e){return(n=!n)?{value:l(t[i](e)),done:"return"===i}:o?o(e):e}:o}},l:function(t,e,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i,o=n.apply(t,e||[]),s=[];return i={},r("next"),r("throw"),r("return"),i[Symbol.asyncIterator]=function(){return this},i;function r(t){o[t]&&(i[t]=function(e){return new Promise((function(n,i){s.push([t,e,n,i])>1||a(t,e)}))})}function a(t,e){try{!function(t){t.value instanceof l?Promise.resolve(t.value.v).then(c,u):h(s[0][2],t)}(o[t](e))}catch(t){h(s[0][3],t)}}function c(t){a("next",t)}function u(t){a("throw",t)}function h(t,e){t(e),s.shift(),s.length&&a(s[0][0],s[0][1])}},u:function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,n=t[Symbol.asyncIterator];return n?n.call(t):(t=r(t),e={},i("next"),i("throw"),i("return"),e[Symbol.asyncIterator]=function(){return this},e);function i(n){e[n]=t[n]&&function(e){return new Promise((function(i,o){(function(t,e,n,i){Promise.resolve(i).then((function(e){t({value:e,done:n})}),e)})(i,o,(e=t[n](e)).done,e.value)}))}}},h:l,p:o,m:u,g:function(t,e){if(null===e||"object"!=typeof e&&"function"!=typeof e)throw new TypeError("Cannot use 'in' operator on non-object");return"function"==typeof t?e===t:t.has(e)},_:h,k:s,C:function(t,e,n,i){var o,s=arguments.length,r=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(r=(s<3?o(r):s>3?o(e,n,r):o(e,n))||r);return s>3&&r&&Object.defineProperty(e,n,r),r},O:function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||s(e,t,n)},T:function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)},S:function(t,e){var n,i,o,s,r={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return s={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(s){return function(a){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,i&&(o=2&s[0]?i.return:s[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,s[1])).done)return o;switch(i=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return r.label++,{value:s[1],done:!1};case 5:r.label++,i=s[1],s=[0];continue;case 7:s=r.ops.pop(),r.trys.pop();continue;default:if(!(o=r.trys,(o=o.length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){r=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]({width:window.innerWidth||document.documentElement.clientWidth,height:window.innerHeight||document.documentElement.clientHeight});function C({url:t,width:e,height:n,windowName:i,onClose:o}){const s={left:void 0===window.screenLeft?window.screenX:window.screenLeft,top:void 0===window.screenTop?window.screenY:window.screenTop},r=k(),a=r.width||screen.width,l=r.height||screen.height,c=screen.width&&window.screen.availWidth?screen.width/window.screen.availWidth:1,u=(a-e)/2/c+s.left,h=(l-n)/2/c+s.top,d=window.open(t,i,`scrollbars=yes,width=${e},height=${n},top=${h},left=${u}`);if(!d)return null;if(d.focus(),o){const t=setInterval((()=>{d.closed&&(o(),clearInterval(t))}),1e3)}return d}function O(t,e,n,i){(i||t.getAttribute(e)!==n)&&!0!==t[e]&&t.setAttribute(e,n)}function T(){return y()}function S(t=location.origin){return o(this,void 0,void 0,(function*(){const e=fetch(`${t}/meta.json`);try{const t=yield e;return yield t.json()}catch(t){return null}}))}function E(t){try{return new URL(t).hostname}catch(e){return console.error(`[Shop Pay] Store URL (${t}) is not valid`,e),null}}function j(t){return new URLSearchParams(window.location.search).get(t)}function I(t,e){let n;return(...i)=>{clearTimeout(n),n=setTimeout((()=>{t(...i)}),e)}}function A(t){return"/"===t?t:t.endsWith("/")?t.slice(0,-1):t}function $(){return Boolean(navigator.userAgent)&&/(android|iphone|ipad|mobile|phone)/i.test(navigator.userAgent)}function N(){return Boolean(navigator.userAgent)&&/(iphone|ipad|ipod)/i.test(navigator.userAgent)}function L(t){return null===t||""===t.trim()}function M(t,e){let n;const i=new Promise((t=>{n=setTimeout((()=>{t()}),e)}));return Promise.race([t,i]).finally((()=>{clearTimeout(n)}))}"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self&&self;function P(t){return t&&t.t&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function R(t,e){return t(e={exports:{}},e.exports),e.exports}var V=R((function(t,e){t.exports=function(){function t(t){return!isNaN(parseFloat(t))&&isFinite(t)}function e(t){return t.charAt(0).toUpperCase()+t.substring(1)}function n(t){return function(){return this[t]}}var i=["isConstructor","isEval","isNative","isToplevel"],o=["columnNumber","lineNumber"],s=["fileName","functionName","source"],r=["args"],a=["evalOrigin"],l=i.concat(o,s,r,a);function c(t){if(t)for(var n=0;n-1&&(t=t.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(,.*$)/g,""));var e=t.replace(/^\s+/,"").replace(/\(eval code/g,"(").replace(/^.*?\s+/,""),i=e.match(/ (\(.+\)$)/);e=i?e.replace(i[0],""):e;var o=this.extractLocation(i?i[1]:e),s=i&&e||void 0,r=["eval",""].indexOf(o[0])>-1?void 0:o[0];return new n({functionName:s,fileName:r,lineNumber:o[1],columnNumber:o[2],source:t})}),this)},parseFFOrSafari:function(t){return t.stack.split("\n").filter((function(t){return!t.match(s)}),this).map((function(t){if(t.indexOf(" > eval")>-1&&(t=t.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1")),-1===t.indexOf("@")&&-1===t.indexOf(":"))return new n({functionName:t});var e=/((.*".+"[^@]*)?[^@]*)(?:@)/,i=t.match(e),o=i&&i[1]?i[1]:void 0,s=this.extractLocation(t.replace(e,""));return new n({functionName:o,fileName:s[0],lineNumber:s[1],columnNumber:s[2],source:t})}),this)},parseOpera:function(t){return!t.stacktrace||t.message.indexOf("\n")>-1&&t.message.split("\n").length>t.stacktrace.split("\n").length?this.parseOpera9(t):t.stack?this.parseOpera11(t):this.parseOpera10(t)},parseOpera9:function(t){for(var e=/Line (\d+).*script (?:in )?(\S+)/i,i=t.message.split("\n"),o=[],s=2,r=i.length;s/,"$2").replace(/\([^)]*\)/g,"")||void 0;s.match(/\(([^)]*)\)/)&&(e=s.replace(/^[^(]+\(([^)]*)\)$/,"$1"));var a=void 0===e||"[arguments not available]"===e?void 0:e.split(",");return new n({functionName:r,args:a,fileName:o[0],lineNumber:o[1],columnNumber:o[2],source:t})}),this)}})}));const F="development",D="production",z={name:"Bugsnag JavaScript",version:"7.13.2",url:"https://github.com/bugsnag/bugsnag-js"};function B(t){return U.parse(t).map((t=>({method:t.functionName,file:t.fileName,lineNumber:t.lineNumber,columnNumber:t.columnNumber})))}function W(t,e,n){const i=n?new Date(Date.now()+n).toUTCString():"session";document.cookie=`${t}=${e};expires=${i};path=/`}function H(t){try{const e=new RegExp(`(${t})=([^;]+)`).exec(document.cookie);return e?e[2]:null}catch(t){return null}}function q(t,e,n){H(t)&&(document.cookie=`${t}=${e?`;path=${e}`:""}${n?`;domain=${n}`:""};expires=Thu, 01 Jan 1970 00:00:01 GMT`)}class G{constructor({error:t,severity:e,breadcrumbs:n,appId:i,appVersion:o,releaseStage:s,duration:r,time:a,metaData:l}){var c,u;this.payloadVersion="4",this.exceptions=[],this.unhandled=!1,this.severityReason={type:"handledException"},this.metaData={},this.session={},this.exceptions=[{errorClass:t.name,errorMessage:t.message,type:"browserjs",stacktrace:B(t),message:t.message}],this.severity=e||"error",this.app={id:i,version:o,releaseStage:s,type:"browser",duration:r},this.device={locale:navigator.userLanguage||navigator.language,userAgent:navigator.userAgent,time:a,orientation:null===(u=null===(c=window.screen)||void 0===c?void 0:c.orientation)||void 0===u?void 0:u.type},this.request={url:window.location.href},this.breadcrumbs=n,this.context=window.location.pathname,this.metaData=l,this.user={shopifyS:H("_shopify_s")}}addMetadata(t,e){this.metaData[t]=e}}class K{constructor({apiKey:t,appId:e,appVersion:n,metadata:i,onError:o}){this.F=[],this.D=[],this.B=t,this.W=e,this.H=n,this.q=i,this.F=o||[],this.G=new Date,this.K=D,this.Z(),this.leaveBreadcrumb("Bugsnag started",{},"state")}leaveBreadcrumb(t,e,n){this.D.push({name:t,metaData:e,type:n,timestamp:(new Date).toISOString()})}notify(t,e){this.K!==F?this.J(t,e):this.X(t)}Z(){window.addEventListener("error",(t=>{const{error:e}=t;e&&function(t){const e=U.parse(t);return 0!==e.length&&e.some((t=>{var e;return null===(e=t.fileName)||void 0===e?void 0:e.includes("shop-js")}))}(e)&&this.notify(e)}))}X(t){console.error(`[bugsnag - shop-js] error in ${this.K}`,{error:t})}J(t,e){const n=new Date,i=n.toISOString(),o=function(t,e){if(t&&e)return e.getTime()-t.getTime()}(this.G,n),{D:s,W:r,H:a,K:l,q:c}=this,u=new G({error:t,breadcrumbs:s,appId:r,appVersion:a,releaseStage:l,duration:o,time:i,metaData:Object.assign({},c)}),h=[...this.F,...e?[e]:[]];if(h){if(h.some((t=>!1===t(u))))return}const d=new XMLHttpRequest;d.open("POST","https://notify.bugsnag.com/"),d.setRequestHeader("Content-Type","application/json"),d.setRequestHeader("Bugsnag-Api-Key",this.B),d.setRequestHeader("Bugsnag-Payload-Version","4"),d.setRequestHeader("Bugsnag-Sent-At",i);const p={apiKey:this.B,notifier:z,events:[u]};d.send(JSON.stringify(p))}}let Z;const J={start:t=>{Z?console.warn("Bugsnag.start() has already been called. Ignoring."):Z=new K(t)},leaveBreadcrumb:(t,e,n)=>{Z?Z.leaveBreadcrumb(t,e,n):console.warn("Bugsnag.leaveBreadcrumb() called before start().")},notify:(t,e)=>{Z?Z.notify(t,e):console.warn("Bugsnag.notify() called before start().")}};function X(){return Boolean(window.customElements)}function Y(t,e){window.customElements&&(customElements.get(t)||customElements.define(t,e))}function Q(t){const e=Array.from(document.querySelectorAll('script[src*="/shop-js/"]')).map((t=>t.src));t.addMetadata("shopJsUrls",e)}function tt(t){var e,n;const i=null===(n=null===(e=window.Shopify)||void 0===e?void 0:e.featureAssets)||void 0===n?void 0:n["shop-js"],o=Boolean(i&&Object.keys(i).length>0);t.addMetadata("shopJsFeatureAssetsExist",o)}function et(e={}){J.start({apiKey:t,appId:"shop-js",appVersion:"1.0.1",metadata:e,onError:[Q,tt]})}function nt(t,e){window.Shopify||(window.Shopify={}),window.Shopify.SignInWithShop||(window.Shopify.SignInWithShop={}),window.Shopify.SignInWithShop[t]=e}var it,ot,st;function rt(t){console.error(`[shop-js] ${t}`),J.notify(new Error(t))}!function(t){t.UiImpression="shop_js_ui_impression/1.1",t.InstallmentsModalOpened="shop_pay_installments_dynamic_modal_impression/1.0",t.InstallmentsModalUserAction="shop_pay_installments_dynamic_modal_user_actions/1.0",t.InstallmentsBannerImpression="shop_pay_installments_banner_ui_impression/3.0",t.InstallmentsPrequalPopupPageImpression="shop_pay_installments_prequal_popup_page_impression/3.0",t.InstallmentsBannerPrequalInteraction="shop_pay_installments_banner_prequal_interaction/3.0",t.InstallmentsInvalidMetadata="shop_pay_installments_banner_invalid_metadata/1.0",t.ShopLoginFirstTimeRender="shop_js_ui_shop_login_first_time_render/1.0",t.ShopifyLoginWithShopSdkDiscountStatus="shopify_pay_login_with_shop_sdk_discount_status/2.0",t.LoginWithShopSdkPageImpression="shopify_pay_login_with_shop_sdk_page_impressions/3.1",t.LoginWithShopSdkUserAction="shopify_pay_login_with_shop_sdk_user_actions/2.0",t.LoginWithShopSdkErrorEvents="shopify_pay_login_with_shop_sdk_error_events/1.0"}(it||(it={})),function(t){t.AuthorizeModal="AUTHORIZE_MODAL",t.ClassicCustomerAccount="CLASSIC_CUSTOMER_ACCOUNTS_ACCOUNT_PAGE",t.ClassicCustomerAccountCreateAccount="CLASSIC_CUSTOMER_ACCOUNTS_CREATE_ACCOUNT_PAGE",t.ClassicCustomerAccountLogin="CLASSIC_CUSTOMER_ACCOUNTS_LOGIN_PAGE",t.ComponentLoadedFollowing="COMPONENT_LOADED_FOLLOWING",t.ComponentLoadedNotFollowing="COMPONENT_LOADED_NOT_FOLLOWING",t.ContinueWithShop="CONTINUE_WITH_SHOP_PAGE",t.DiscountSaved="DISCOUNT_SAVE_CONFIRMATION_PAGE",t.DiscountShown="DISCOUNT_SHOWN",t.FollowButtonShownInViewport="FOLLOW_BUTTON_SHOWN_IN_VIEWPORT",t.FollowingGetShopAppCta="FOLLOWING_GET_SHOP_APP_CTA",t.PartnerEmailInputShown="PARTNER_EMAIL_INPUT_SHOWN",t.PhoneConsent="TEXT_MARKETING_SIGN_UP",t.PhoneConsentConfirmed="TEXT_MARKETING_CONFIRMED_PAGE",t.PhoneConsentDeclined="TEXT_MARKETING_DECLINED_PAGE",t.SdkLoaded="SDK_HAS_LOADED_INITIAL_PAGE"}(ot||(ot={})),function(t){t.ThirdPartyFormSubmission="3RD_PARTY_EMAIL_CAPTURE_FORM_SUBMISSION_CLICK",t.FollowOnShopClicked="FOLLOW_ON_SHOP_CLICKED",t.FollowingGetShopAppClick="FOLLOWING_GET_SHOP_APP_CLICK",t.ContinueWithShopClicked="CONTINUE_WITH_SHOP_BUTTON_CLICK",t.EmailEntered="EMAIL_ENTERED",t.CreateAccountLinkClicked="CREATE_ACCOUNT_CLICK",t.PhoneConsentProvided="SHARE_PHONE_CLICK",t.PhoneConsentDeclined="DO_NOT_SHARE_PHONE_CLICK"}(st||(st={}));class at{constructor(t){this.Y=t}isSourceOf(t){return t.source===this.Y.contentWindow}}class lt{constructor(t){this.Y=t}isSourceOf(t){return t.source===this.Y}}function ct(t=window.location.origin,e){const n=`${t}/services/login_with_shop/finalize`;return fetch(n).catch(e)}const ut=/^[^@]+@[^@]+\.[^@]{2,}$/i;function ht(t){return!!t&&RegExp(ut).test(t)}function dt({selector:t,onElementFound:e}){const n=new WeakSet,i=new MutationObserver((t=>{let e=!1;for(const n of t)if(n.addedNodes.length>0){e=!0;break}e&&s()}));function s(){document.querySelectorAll(t).forEach((t=>{n.has(t)||(e(t),n.add(t))}))}return function(){o(this,void 0,void 0,(function*(){yield function(){if(document.body)return Promise.resolve();return new Promise((t=>{window.addEventListener("DOMContentLoaded",(()=>t()))}))}(),s(),i.observe(document.body||document.documentElement,{childList:!0,subtree:!0})}))}(),i}function pt({onVisible:t,onFallback:e}){const n=new IntersectionObserver((o=>{for(const s of o){const{target:o,isIntersecting:r}=s;r&&(i(o)?t(o):e(o),n.unobserve(o))}}),{threshold:1});function i(t){let e=t;for(;e;){if(!["","1"].includes(getComputedStyle(e).opacity))return!1;e=e.parentElement}return!0}return n}function ft(t,e=!0){const n=Boolean(t);return!n&&e&&J.notify(new Error("HTML Element was not provided")),n}function mt(t,e,n){const i=document.createElement("div");i.innerHTML=t,i.style.display="none",n.prepend(i);const o=n.querySelector(`#${e}`).content;n.appendChild(o.cloneNode(!0))}function gt(t){return t.split("-")[1]}function vt(t){return"y"===t?"height":"width"}function yt(t){return t.split("-")[0]}function bt(t){return["top","bottom"].includes(yt(t))?"x":"y"}function _t(t,e,n){let{reference:i,floating:o}=t;const s=i.x+i.width/2-o.width/2,r=i.y+i.height/2-o.height/2,a=bt(e),l=vt(a),c=i[l]/2-o[l]/2,u="x"===a;let h;switch(yt(e)){case"top":h={x:s,y:i.y-o.height};break;case"bottom":h={x:s,y:i.y+i.height};break;case"right":h={x:i.x+i.width,y:r};break;case"left":h={x:i.x-o.width,y:r};break;default:h={x:i.x,y:i.y}}switch(gt(e)){case"start":h[a]-=c*(n&&u?-1:1);break;case"end":h[a]+=c*(n&&u?-1:1)}return h}function wt(t){return"number"!=typeof t?function(t){return{top:0,right:0,bottom:0,left:0,...t}}(t):{top:t,right:t,bottom:t,left:t}}function xt(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}async function kt(t,e){var n;void 0===e&&(e={});const{x:i,y:o,platform:s,rects:r,elements:a,strategy:l}=t,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:h="floating",altBoundary:d=!1,padding:p=0}=e,f=wt(p),m=a[d?"floating"===h?"reference":"floating":h],g=xt(await s.getClippingRect({element:null==(n=await(null==s.isElement?void 0:s.isElement(m)))||n?m:m.contextElement||await(null==s.getDocumentElement?void 0:s.getDocumentElement(a.floating)),boundary:c,rootBoundary:u,strategy:l})),v="floating"===h?{...r.floating,x:i,y:o}:r.reference,y=await(null==s.getOffsetParent?void 0:s.getOffsetParent(a.floating)),b=await(null==s.isElement?void 0:s.isElement(y))&&await(null==s.getScale?void 0:s.getScale(y))||{x:1,y:1},_=xt(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({rect:v,offsetParent:y,strategy:l}):v);return{top:(g.top-_.top+f.top)/b.y,bottom:(_.bottom-g.bottom+f.bottom)/b.y,left:(g.left-_.left+f.left)/b.x,right:(_.right-g.right+f.right)/b.x}}const Ct=Math.min,Ot=Math.max;function Tt(t,e,n){return Ot(t,Ct(e,n))}const St=t=>({name:"arrow",options:t,async fn(e){const{element:n,padding:i=0}=t||{},{x:o,y:s,placement:r,rects:a,platform:l,elements:c}=e;if(null==n)return{};const u=wt(i),h={x:o,y:s},d=bt(r),p=vt(d),f=await l.getDimensions(n),m="y"===d,g=m?"top":"left",v=m?"bottom":"right",y=m?"clientHeight":"clientWidth",b=a.reference[p]+a.reference[d]-h[d]-a.floating[p],_=h[d]-a.reference[d],w=await(null==l.getOffsetParent?void 0:l.getOffsetParent(n));let x=w?w[y]:0;x&&await(null==l.isElement?void 0:l.isElement(w))||(x=c.floating[y]||a.floating[p]);const k=b/2-_/2,C=u[g],O=x-f[p]-u[v],T=x/2-f[p]/2+k,S=Tt(C,T,O),E=null!=gt(r)&&T!=S&&a.reference[p]/2-(Tt.concat(e,e+"-start",e+"-end")),[]);const Et={left:"right",right:"left",bottom:"top",top:"bottom"};function jt(t){return t.replace(/left|right|bottom|top/g,(t=>Et[t]))}function It(t,e,n){void 0===n&&(n=!1);const i=gt(t),o=bt(t),s=vt(o);let r="x"===o?i===(n?"end":"start")?"right":"left":"start"===i?"bottom":"top";return e.reference[s]>e.floating[s]&&(r=jt(r)),{main:r,cross:jt(r)}}const At={start:"end",end:"start"};function $t(t){return t.replace(/start|end/g,(t=>At[t]))}const Nt=function(t){return void 0===t&&(t={}),{name:"flip",options:t,async fn(e){var n;const{placement:i,middlewareData:o,rects:s,initialPlacement:r,platform:a,elements:l}=e,{mainAxis:c=!0,crossAxis:u=!0,fallbackPlacements:h,fallbackStrategy:d="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:f=!0,...m}=t,g=yt(i),v=yt(r)===r,y=await(null==a.isRTL?void 0:a.isRTL(l.floating)),b=h||(v||!f?[jt(r)]:function(t){const e=jt(t);return[$t(t),e,$t(e)]}(r));h||"none"===p||b.push(...function(t,e,n,i){const o=gt(t);let s=function(t,e,n){const i=["left","right"],o=["right","left"],s=["top","bottom"],r=["bottom","top"];switch(t){case"top":case"bottom":return n?e?o:i:e?i:o;case"left":case"right":return e?s:r;default:return[]}}(yt(t),"start"===n,i);return o&&(s=s.map((t=>t+"-"+o)),e&&(s=s.concat(s.map($t)))),s}(r,f,p,y));const _=[r,...b],w=await kt(e,m),x=[];let k=(null==(n=o.flip)?void 0:n.overflows)||[];if(c&&x.push(w[g]),u){const{main:t,cross:e}=It(i,s,y);x.push(w[t],w[e])}if(k=[...k,{placement:i,overflows:x}],!x.every((t=>t<=0))){var C,O;const t=((null==(C=o.flip)?void 0:C.index)||0)+1,e=_[t];if(e)return{data:{index:t,overflows:k},reset:{placement:e}};let n=null==(O=k.filter((t=>t.overflows[0]<=0)).sort(((t,e)=>t.overflows[1]-e.overflows[1]))[0])?void 0:O.placement;if(!n)switch(d){case"bestFit":{var T;const t=null==(T=k.map((t=>[t.placement,t.overflows.filter((t=>t>0)).reduce(((t,e)=>t+e),0)])).sort(((t,e)=>t[1]-e[1]))[0])?void 0:T[0];t&&(n=t);break}case"initialPlacement":n=r}if(i!==n)return{reset:{placement:n}}}return{}}}},Lt=function(t){return void 0===t&&(t=0),{name:"offset",options:t,async fn(e){const{x:n,y:i}=e,o=await async function(t,e){const{placement:n,platform:i,elements:o}=t,s=await(null==i.isRTL?void 0:i.isRTL(o.floating)),r=yt(n),a=gt(n),l="x"===bt(n),c=["left","top"].includes(r)?-1:1,u=s&&l?-1:1,h="function"==typeof e?e(t):e;let{mainAxis:d,crossAxis:p,alignmentAxis:f}="number"==typeof h?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...h};return a&&"number"==typeof f&&(p="end"===a?-1*f:f),l?{x:p*u,y:d*c}:{x:d*c,y:p*u}}(e,t);return{x:n+o.x,y:i+o.y,data:o}}}};function Mt(t){return"x"===t?"y":"x"}const Pt=function(t){return void 0===t&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:i,placement:o}=e,{mainAxis:s=!0,crossAxis:r=!1,limiter:a={fn:t=>{let{x:e,y:n}=t;return{x:e,y:n}}},...l}=t,c={x:n,y:i},u=await kt(e,l),h=bt(yt(o)),d=Mt(h);let p=c[h],f=c[d];if(s){const t="y"===h?"bottom":"right";p=Tt(p+u["y"===h?"top":"left"],p,p-u[t])}if(r){const t="y"===d?"bottom":"right";f=Tt(f+u["y"===d?"top":"left"],f,f-u[t])}const m=a.fn({...e,[h]:p,[d]:f});return{...m,data:{x:m.x-n,y:m.y-i}}}}},Rt=function(t){return void 0===t&&(t={}),{options:t,fn(e){const{x:n,y:i,placement:o,rects:s,middlewareData:r}=e,{offset:a=0,mainAxis:l=!0,crossAxis:c=!0}=t,u={x:n,y:i},h=bt(o),d=Mt(h);let p=u[h],f=u[d];const m="function"==typeof a?a(e):a,g="number"==typeof m?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(l){const t="y"===h?"height":"width",e=s.reference[h]-s.floating[t]+g.mainAxis,n=s.reference[h]+s.reference[t]-g.mainAxis;pn&&(p=n)}if(c){var v,y;const t="y"===h?"width":"height",e=["top","left"].includes(yt(o)),n=s.reference[d]-s.floating[t]+(e&&(null==(v=r.offset)?void 0:v[d])||0)+(e?0:g.crossAxis),i=s.reference[d]+s.reference[t]+(e?0:(null==(y=r.offset)?void 0:y[d])||0)-(e?g.crossAxis:0);fi&&(f=i)}return{[h]:p,[d]:f}}}};function Vt(t){var e;return(null==(e=t.ownerDocument)?void 0:e.defaultView)||window}function Ut(t){return Vt(t).getComputedStyle(t)}function Ft(t){return t instanceof Vt(t).Node}function Dt(t){return Ft(t)?(t.nodeName||"").toLowerCase():""}let zt;function Bt(){if(zt)return zt;const t=navigator.userAgentData;return t&&Array.isArray(t.brands)?(zt=t.brands.map((t=>t.brand+"/"+t.version)).join(" "),zt):navigator.userAgent}function Wt(t){return t instanceof Vt(t).HTMLElement}function Ht(t){return t instanceof Vt(t).Element}function qt(t){return"undefined"!=typeof ShadowRoot&&(t instanceof Vt(t).ShadowRoot||t instanceof ShadowRoot)}function Gt(t){const{overflow:e,overflowX:n,overflowY:i,display:o}=Ut(t);return/auto|scroll|overlay|hidden|clip/.test(e+i+n)&&!["inline","contents"].includes(o)}function Kt(t){return["table","td","th"].includes(Dt(t))}function Zt(t){const e=/firefox/i.test(Bt()),n=Ut(t),i=n.backdropFilter||n.WebkitBackdropFilter;return"none"!==n.transform||"none"!==n.perspective||!!i&&"none"!==i||e&&"filter"===n.willChange||e&&!!n.filter&&"none"!==n.filter||["transform","perspective"].some((t=>n.willChange.includes(t)))||["paint","layout","strict","content"].some((t=>{const e=n.contain;return null!=e&&e.includes(t)}))}function Jt(){return/^((?!chrome|android).)*safari/i.test(Bt())}function Xt(t){return["html","body","#document"].includes(Dt(t))}const Yt=Math.min,Qt=Math.max,te=Math.round;function ee(t){const e=Ut(t);let n=parseFloat(e.width),i=parseFloat(e.height);const o=Wt(t),s=o?t.offsetWidth:n,r=o?t.offsetHeight:i,a=te(n)!==s||te(i)!==r;return a&&(n=s,i=r),{width:n,height:i,fallback:a}}function ne(t){return Ht(t)?t:t.contextElement}const ie={x:1,y:1};function oe(t){const e=ne(t);if(!Wt(e))return ie;const n=e.getBoundingClientRect(),{width:i,height:o,fallback:s}=ee(e);let r=(s?te(n.width):n.width)/i,a=(s?te(n.height):n.height)/o;return r&&Number.isFinite(r)||(r=1),a&&Number.isFinite(a)||(a=1),{x:r,y:a}}function se(t,e,n,i){var o,s;void 0===e&&(e=!1),void 0===n&&(n=!1);const r=t.getBoundingClientRect(),a=ne(t);let l=ie;e&&(i?Ht(i)&&(l=oe(i)):l=oe(t));const c=a?Vt(a):window,u=Jt()&&n;let h=(r.left+(u&&(null==(o=c.visualViewport)?void 0:o.offsetLeft)||0))/l.x,d=(r.top+(u&&(null==(s=c.visualViewport)?void 0:s.offsetTop)||0))/l.y,p=r.width/l.x,f=r.height/l.y;if(a){const t=Vt(a),e=i&&Ht(i)?Vt(i):i;let n=t.frameElement;for(;n&&i&&e!==t;){const t=oe(n),e=n.getBoundingClientRect(),i=getComputedStyle(n);e.x+=(n.clientLeft+parseFloat(i.paddingLeft))*t.x,e.y+=(n.clientTop+parseFloat(i.paddingTop))*t.y,h*=t.x,d*=t.y,p*=t.x,f*=t.y,h+=e.x,d+=e.y,n=Vt(n).frameElement}}return xt({width:p,height:f,x:h,y:d})}function re(t){return((Ft(t)?t.ownerDocument:t.document)||window.document).documentElement}function ae(t){return Ht(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function le(t){return se(re(t)).left+ae(t).scrollLeft}function ce(t){if("html"===Dt(t))return t;const e=t.assignedSlot||t.parentNode||qt(t)&&t.host||re(t);return qt(e)?e.host:e}function ue(t){const e=ce(t);return Xt(e)?e.ownerDocument.body:Wt(e)&&Gt(e)?e:ue(e)}function he(t,e){var n;void 0===e&&(e=[]);const i=ue(t),o=i===(null==(n=t.ownerDocument)?void 0:n.body),s=Vt(i);return o?e.concat(s,s.visualViewport||[],Gt(i)?i:[]):e.concat(i,he(i))}function de(t,e,n){let i;if("viewport"===e)i=function(t,e){const n=Vt(t),i=re(t),o=n.visualViewport;let s=i.clientWidth,r=i.clientHeight,a=0,l=0;if(o){s=o.width,r=o.height;const t=Jt();(!t||t&&"fixed"===e)&&(a=o.offsetLeft,l=o.offsetTop)}return{width:s,height:r,x:a,y:l}}(t,n);else if("document"===e)i=function(t){const e=re(t),n=ae(t),i=t.ownerDocument.body,o=Qt(e.scrollWidth,e.clientWidth,i.scrollWidth,i.clientWidth),s=Qt(e.scrollHeight,e.clientHeight,i.scrollHeight,i.clientHeight);let r=-n.scrollLeft+le(t);const a=-n.scrollTop;return"rtl"===Ut(i).direction&&(r+=Qt(e.clientWidth,i.clientWidth)-o),{width:o,height:s,x:r,y:a}}(re(t));else if(Ht(e))i=function(t,e){const n=se(t,!0,"fixed"===e),i=n.top+t.clientTop,o=n.left+t.clientLeft,s=Wt(t)?oe(t):{x:1,y:1};return{width:t.clientWidth*s.x,height:t.clientHeight*s.y,x:o*s.x,y:i*s.y}}(e,n);else{const n={...e};if(Jt()){var o,s;const e=Vt(t);n.x-=(null==(o=e.visualViewport)?void 0:o.offsetLeft)||0,n.y-=(null==(s=e.visualViewport)?void 0:s.offsetTop)||0}i=n}return xt(i)}function pe(t,e){return Wt(t)&&"fixed"!==Ut(t).position?e?e(t):t.offsetParent:null}function fe(t,e){const n=Vt(t);if(!Wt(t))return n;let i=pe(t,e);for(;i&&Kt(i)&&"static"===Ut(i).position;)i=pe(i,e);return i&&("html"===Dt(i)||"body"===Dt(i)&&"static"===Ut(i).position&&!Zt(i))?n:i||function(t){let e=ce(t);for(;Wt(e)&&!Xt(e);){if(Zt(e))return e;e=ce(e)}return null}(t)||n}function me(t,e,n){const i=Wt(e),o=re(e),s=se(t,!0,"fixed"===n,e);let r={scrollLeft:0,scrollTop:0};const a={x:0,y:0};if(i||!i&&"fixed"!==n)if(("body"!==Dt(e)||Gt(o))&&(r=ae(e)),Wt(e)){const t=se(e,!0);a.x=t.x+e.clientLeft,a.y=t.y+e.clientTop}else o&&(a.x=le(o));return{x:s.left+r.scrollLeft-a.x,y:s.top+r.scrollTop-a.y,width:s.width,height:s.height}}const ge={getClippingRect:function(t){let{element:e,boundary:n,rootBoundary:i,strategy:o}=t;const s=[..."clippingAncestors"===n?function(t,e){const n=e.get(t);if(n)return n;let i=he(t).filter((t=>Ht(t)&&"body"!==Dt(t))),o=null;const s="fixed"===Ut(t).position;let r=s?ce(t):t;for(;Ht(r)&&!Xt(r);){const t=Ut(r),e=Zt(r);"fixed"===t.position&&(o=null),(s?e||o:e||"static"!==t.position||!o||!["absolute","fixed"].includes(o.position))?o=t:i=i.filter((t=>t!==r)),r=ce(r)}return e.set(t,i),i}(e,this.tt):[].concat(n),i],r=s[0],a=s.reduce(((t,n)=>{const i=de(e,n,o);return t.top=Qt(i.top,t.top),t.right=Yt(i.right,t.right),t.bottom=Yt(i.bottom,t.bottom),t.left=Qt(i.left,t.left),t}),de(e,r,o));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{rect:e,offsetParent:n,strategy:i}=t;const o=Wt(n),s=re(n);if(n===s)return e;let r={scrollLeft:0,scrollTop:0},a={x:1,y:1};const l={x:0,y:0};if((o||!o&&"fixed"!==i)&&(("body"!==Dt(n)||Gt(s))&&(r=ae(n)),Wt(n))){const t=se(n);a=oe(n),l.x=t.x+n.clientLeft,l.y=t.y+n.clientTop}return{width:e.width*a.x,height:e.height*a.y,x:e.x*a.x-r.scrollLeft*a.x+l.x,y:e.y*a.y-r.scrollTop*a.y+l.y}},isElement:Ht,getDimensions:function(t){return ee(t)},getOffsetParent:fe,getDocumentElement:re,getScale:oe,async getElementRects(t){let{reference:e,floating:n,strategy:i}=t;const o=this.getOffsetParent||fe,s=this.getDimensions;return{reference:me(e,await o(n),i),floating:{x:0,y:0,...await s(n)}}},getClientRects:t=>Array.from(t.getClientRects()),isRTL:t=>"rtl"===Ut(t).direction};const ve=(t,e,n)=>{const i=new Map,o={platform:ge,...n},s={...o.platform,tt:i};return(async(t,e,n)=>{const{placement:i="bottom",strategy:o="absolute",middleware:s=[],platform:r}=n,a=s.filter(Boolean),l=await(null==r.isRTL?void 0:r.isRTL(e));let c=await r.getElementRects({reference:t,floating:e,strategy:o}),{x:u,y:h}=_t(c,i,l),d=i,p={},f=0;for(let n=0;n\n.sda-overlay {\n position: fixed;\n width: 100%;\n height: 100%;\n background-color: rgba(0, 0, 0, 0.5);\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n z-index: 2147483647 !important;\n will-change: opacity, transform;\n}\n\n.sda-modal {\n background-color: #fff;\n min-width: 320px;\n border-radius: 32px;\n padding: 40px 28px 16px;\n will-change: opacity, transform;\n}\n\n.sda-modal:focus {\n outline: 0;\n}\n\n@media screen and (max-width: 430px) {\n .sda-modal {\n position: absolute;\n ${ye}\n padding: 32px 0 16px;\n box-sizing: border-box;\n }\n\n .arrow {\n display: none;\n }\n}\n\n@media screen and (min-width: 431px) {\n .sda-overlay.centered {\n display: flex;\n align-items: center;\n justify-content: center;\n }\n}\n\n.sda-modal.disable-popup {\n ${ye}\n}\n\n.sda-modal-close-button {\n background: none;\n border: none;\n position: absolute;\n right: 16px;\n top: 24px;\n padding: 8px;\n cursor: pointer;\n display: flex;\n}\n\n.sda-modal-close-button:focus,\n.sda-modal-close-button:hover {\n border-radius: 6px;\n background: rgb(0 0 0 / 0.03);\n color: #7b61f0;\n outline: none;\n\n --icon-color: #7b61f0;\n}\n\n.sda-modal-close-button shop-close-icon {\n pointer-events: none;\n}\n\n.sda-landing {\n width: 320px;\n margin: auto;\n}\n\n.sda-shop-logo {\n text-align: center;\n padding: 12px 0 8px 0;\n}\n\n.sda-hidden {\n height: 0 !important;\n border: 0;\n padding: 0;\n margin: 0;\n visibility: hidden;\n overflow: hidden;\n}\n\n.focus-trap {\n border: 0;\n clip: rect(0, 0, 0, 0);\n height: 1px;\n margin: -1px;\n overflow: hidden;\n padding: 0;\n position: absolute;\n white-space: nowrap;\n width: 1px;\n}\n\n@media (forced-colors: active) {\n .sda-modal {\n border: 1px solid;\n }\n}\n\n.arrow {\n position: absolute;\n background-color: #fff;\n width: 24px;\n height: 24px;\n transform: rotate(45deg);\n}\n\n\n
\n \n \n \n
\n`;var _e;!function(t){t.Dynamic="DYNAMIC",t.Mobile="MOBILE",t.Center="CENTER"}(_e||(_e={}));const we=new Map([["top","bottom"],["top-end","bottom"],["top-start","bottom"],["right","left"],["right-end","left"],["right-start","left"],["bottom","top"],["bottom-end","top"],["bottom-start","top"],["left","right"],["left-end","right"],["left-start","right"]]),xe={[_e.Dynamic]:(t,e,n,i)=>{let s=t.querySelector(".arrow");return t.style.position="absolute",null===s&&(s=document.createElement("div"),s.className="arrow",t.appendChild(s)),{config:{placement:null!=i?i:"right",middleware:[Lt(22),i?void 0:Pt({limiter:Rt({offset:64})}),Nt({fallbackPlacements:i?[]:["left","top","bottom"]}),St({element:s,padding:32}),{name:"center",fn(){return o(this,void 0,void 0,(function*(){return{data:{center:window.matchMedia("screen and (((min-width: 431px) and (max-width: 1280px)) or (max-height: 750px))").matches}}}))}}]},fn:({x:e,y:n,placement:i,strategy:o,middlewareData:r})=>{const{center:a}=r;if(a.center)return null!==s&&(s.style.display="none"),Object.assign(t.style,{top:(window.innerHeight-t.offsetHeight)/2+"px",left:(window.innerWidth-t.offsetWidth)/2+"px",bottom:"",right:""}),null;Object.assign(t.style,{left:`${e}px`,top:`${n}px`,right:"",bottom:""});const{arrow:l}=r,c=we.get(i);return null!==s&&Object.assign(s.style,{left:void 0===(null==l?void 0:l.x)?"":`${null==l?void 0:l.x}px`,top:void 0===(null==l?void 0:l.y)?"":`${null==l?void 0:l.y}px`,right:"",bottom:"",display:"",[c]:"-12px"}),{x:e,y:n,strategy:o,placement:i,staticSide:c,middlewareData:r}}}},[_e.Center]:(t,e,n={})=>({config:{},fn:()=>{const i=t.querySelector(".arrow");null!==i&&(i.style.display="none");const o=Object.keys(n).length>0;return o&&Object.assign(t.style,n,{position:"absolute"}),e.classList.toggle("centered",!o),null}}),[_e.Mobile]:t=>({config:{},fn:()=>(Object.assign(t.style,{top:"auto !important",right:"0 !important",bottom:"0 !important",left:"auto"}),null)})},ke={cleanup:()=>{},updatePosition:()=>o(void 0,void 0,void 0,(function*(){return Promise.resolve(null)}))};function Ce({anchorElement:t,floatingElement:e,overlayElement:n,behavior:i=_e.Center},s={},r){if(null===e)return ke;const a=null==t&&i!==_e.Mobile?xe[_e.Center](e,n,s):xe[i](e,n,s,r),l=t||document.body,c=()=>o(this,void 0,void 0,(function*(){const t=yield ve(l,e,a.config);return a.fn(t)}));return{cleanup:function(t,e,n,i){void 0===i&&(i={});const{ancestorScroll:o=!0,ancestorResize:s=!0,elementResize:r=!0,animationFrame:a=!1}=i,l=o&&!a,c=l||s?[...Ht(t)?he(t):t.contextElement?he(t.contextElement):[],...he(e)]:[];c.forEach((t=>{l&&t.addEventListener("scroll",n,{passive:!0}),s&&t.addEventListener("resize",n)}));let u,h=null;r&&(h=new ResizeObserver((()=>{n()})),Ht(t)&&!a&&h.observe(t),Ht(t)||!t.contextElement||a||h.observe(t.contextElement),h.observe(e));let d=a?se(t):null;return a&&function e(){const i=se(t);!d||i.x===d.x&&i.y===d.y&&i.width===d.width&&i.height===d.height||n(),d=i,u=requestAnimationFrame(e)}(),n(),()=>{var t;c.forEach((t=>{l&&t.removeEventListener("scroll",n),s&&t.removeEventListener("resize",n)})),null==(t=h)||t.disconnect(),h=null,a&&cancelAnimationFrame(u)}}(l,e,c,{ancestorScroll:!1,ancestorResize:!0,elementResize:!0,animationFrame:!1}),updatePosition:c}}var Oe;!function(t){t.UserStatusIdentity="userstatuschange:identity",t.UserStatusScope="userstatuschange:scope"}(Oe||(Oe={}));const Te=(()=>{class t{constructor(){this.et={}}subscribe(t,e,n){this.et[t]=[...this.et[t]||[],{publisherId:e,callback:n}]}unsubscribe(t,e){this.et[t]=(this.et[t]||[]).filter((t=>t.publisherId!==e))}unsubscribeAll(t){Object.keys(this.et).forEach((e=>{this.unsubscribe(e,t)}))}publish(t,e,n){var i;null===(i=this.et[t])||void 0===i||i.forEach((t=>{t.publisherId!==e&&t.callback(n)}))}}let e;return{getInstance:()=>(e||(e=new t),e)}})();class Se extends Error{constructor(t,e=T()){super(t),this.analyticsTraceId=e,this.name="MonorailProducerError",this.code="monorail_producer_error"}}class Ee{constructor(t,e,n,i=window){this.nt=new Set,this.nt.add(n),this.it=n=>{t.isSourceOf(n)&&(e.some((t=>function(t,e){try{const n=new URL(t).host.split(".").reverse(),i=new URL(e).host.split(".").reverse();for(let t=0;t{const s=()=>{o(new Error("Abort signal received"))};(null==e?void 0:e.aborted)&&s(),n=n=>{n.type===t&&(null==e||e.removeEventListener("abort",s),i(n))},this.nt.add(n),null==e||e.addEventListener("abort",s)})).finally((()=>{this.nt.delete(n)}))}ot(t){this.nt.forEach((e=>e(t)))}}const je="https://shop.app",Ie="https://pay.shopify.com",Ae="https://shop.app";function $e(t){try{const e=new URL(t);if("https:"!==e.protocol||"/"!==e.pathname||e.hash||e.search)throw new Error("Invalid URL")}catch(e){rt(`Invalid storefront origin: ${t}`)}}class Ne{constructor(t,e){this.st=t,this.rt=e}postMessage(t){const e=this.st instanceof HTMLIFrameElement?this.st.contentWindow:this.st;this.rt.forEach((n=>{null==e||e.postMessage(t,n)}))}}class Le extends Ne{constructor(t){super(t,["https://shop.app","https://pay.shopify.com"])}}const Me={brand:"#5a31f4",white:"#fff",black:"#000",warning:"#d02e11",close:"#707070",foregroundSecondary:"#3F454D",backgroundSubdued:"#F2F3F5",backgroundError:"#FFECE9",error:"#D02E11"};function Pe(t){let e=0,n=0,i=0;return 4===t.length?(e=Number(`0x${t[1]}${t[1]}`),n=Number(`0x${t[2]}${t[2]}`),i=Number(`0x${t[3]}${t[3]}`)):7===t.length&&(e=Number(`0x${t[1]}${t[2]}`),n=Number(`0x${t[3]}${t[4]}`),i=Number(`0x${t[5]}${t[6]}`)),[e,n,i]}function Re(t){const e=t.match(/\d+/g)||[],[n=0,i=0,o=0]=e.map((t=>Number(t)));return[n,i,o]}function Ve(t){const e=[90,49,244],n=[255,255,255];let i=[255,255,255];return t.startsWith("#")?i=Pe(t):t.startsWith("rgb(")&&(i=Re(t)),De(i,e)>De(i,n)?e:n}function Ue(t,e){return De(t.startsWith("#")?Pe(t):Re(t),e.startsWith("#")?Pe(e):Re(e))}function Fe(t,e,n){const i=[t,e,n].map((function(t){const e=t/255;return e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4)}));return.2126*i[0]+.7152*i[1]+.0722*i[2]}function De(t,e){const n=Fe(t[0],t[1],t[2]),i=Fe(e[0],e[1],e[2]);return(Math.max(n,i)+.05)/(Math.min(n,i)+.05)}function ze(t){var e;const n=null===(e=window.getComputedStyle(t).getPropertyValue("--color-background"))||void 0===e?void 0:e.trim();if(n)return n;for(const e of function*(t){let e=t;for(;e;){if(e.parentElement)e=e.parentElement;else if(e instanceof ShadowRoot)e=e.host;else{if(!(e instanceof Element))break;{const t=e.getRootNode();if(!(t instanceof ShadowRoot))break;e=t.host}}if(yield e,e===document.body)break}}(t)){const t=window.getComputedStyle(e).getPropertyValue("background-color");if(t&&"rgba(0, 0, 0, 0)"!==t)return t}return"#ffffff"}class Be extends HTMLElement{constructor(){super();const t=document.createElement("template"),e=this.getAttribute("size")||"",n=this.getAttribute("background-color")||"#FFF";t.innerHTML=function(t,e){const n="large"===t?"shop-pay-logo-large":"shop-pay-logo",[i,o,s]=Ve(e),r=`rgb(${i}, ${o}, ${s})`;return`\n \n \n `}(e,n),this.attachShadow({mode:"open"}).appendChild(t.content.cloneNode(!0))}}const We=1e4,He={temporarilyUnavailable:{code:"temporarily_unavailable",message:"Shop login is temporarily unavailable"}},qe="client-id",Ge="version",Ke="storefront-origin",Ze="analytics-context",Je="analytics-trace-id",Xe="anchor-to",Ye="dev-mode",Qe="pop-up-name",tn="pop-up-features",en="shop-id";class nn extends HTMLElement{constructor(){super()}updateAttribute(t,e){this.getAttribute(t)!==e&&(e?this.setAttribute(t,e):this.removeAttribute(t))}getBooleanAttribute(t){const e=this.getAttribute(t);return null!=e}dispatchCustomEvent(t,e){const n=new CustomEvent(t,{bubbles:!0,cancelable:!1,composed:!0,detail:e});this.dispatchEvent(n)}}var on,sn,rn,an;class ln extends HTMLElement{constructor(){super(),on.set(this,void 0),h(this,on,this.attachShadow({mode:"open"}),"f")}connectedCallback(){const t=document.createElement("template"),e=this.getAttribute("size")||"",n=this.getAttribute("color")||"",i=this.getAttribute("label")||"";t.innerHTML=function(t,e="brand",n){return`\n \n \n ${n}\n