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 T({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=O(),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 S(t,e,n,i){(i||t.getAttribute(e)!==n)&&!0!==t[e]&&t.setAttribute(e,n)}function E(){return y()}function j(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 I(t){try{return new URL(t).hostname}catch(e){return console.error(`[Shop Pay] Store URL (${t}) is not valid`,e),null}}function A(t){return new URLSearchParams(window.location.search).get(t)}function $(t,e){let n;return(...i)=>{clearTimeout(n),n=setTimeout((()=>{t(...i)}),e)}}function N(t){return"/"===t?t:t.endsWith("/")?t.slice(0,-1):t}function L(){return Boolean(navigator.userAgent)&&/(android|iphone|ipad|mobile|phone)/i.test(navigator.userAgent)}function M(){return Boolean(navigator.userAgent)&&/(iphone|ipad|ipod)/i.test(navigator.userAgent)}function P(t){return null===t||""===t.trim()}function R(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 V(t){return t&&t.t&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function U(t,e){return t(e={exports:{}},e.exports),e.exports}var F=U((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 z="development",B="production",W={name:"Bugsnag JavaScript",version:"7.13.2",url:"https://github.com/bugsnag/bugsnag-js"};function H(t){return D.parse(t).map((t=>({method:t.functionName,file:t.fileName,lineNumber:t.lineNumber,columnNumber:t.columnNumber})))}function q(t,e,n){const i=n?new Date(Date.now()+n).toUTCString():"session";document.cookie=`${t}=${e};expires=${i};path=/`}function G(t){try{const e=new RegExp(`(${t})=([^;]+)`).exec(document.cookie);return e?e[2]:null}catch(t){return null}}function K(t,e,n){G(t)&&(document.cookie=`${t}=${e?`;path=${e}`:""}${n?`;domain=${n}`:""};expires=Thu, 01 Jan 1970 00:00:01 GMT`)}class Z{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:H(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:G("_shopify_s")}}addMetadata(t,e){this.metaData[t]=e}}class J{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=B,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!==z?this.J(t,e):this.X(t)}Z(){window.addEventListener("error",(t=>{const{error:e}=t;e&&function(t){const e=D.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 Z({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:W,events:[u]};d.send(JSON.stringify(p))}}let X;const Y={start:t=>{X?console.warn("Bugsnag.start() has already been called. Ignoring."):X=new J(t)},leaveBreadcrumb:(t,e,n)=>{X?X.leaveBreadcrumb(t,e,n):console.warn("Bugsnag.leaveBreadcrumb() called before start().")},notify:(t,e)=>{X?X.notify(t,e):console.warn("Bugsnag.notify() called before start().")}};function Q(){return Boolean(window.customElements)}function tt(t,e){window.customElements&&(customElements.get(t)||customElements.define(t,e))}function et(t){const e=Array.from(document.querySelectorAll('script[src*="/shop-js/"]')).map((t=>t.src));t.addMetadata("shopJsUrls",e)}function nt(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 it(e={}){Y.start({apiKey:t,appId:"shop-js",appVersion:"1.0.1",metadata:e,onError:[et,nt]})}function ot(t,e){window.Shopify||(window.Shopify={}),window.Shopify.SignInWithShop||(window.Shopify.SignInWithShop={}),window.Shopify.SignInWithShop[t]=e}var st,rt,at;function lt(t){console.error(`[shop-js] ${t}`),Y.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"}(st||(st={})),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"}(rt||(rt={})),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"}(at||(at={}));class ct{constructor(t){this.Y=t}isSourceOf(t){return t.source===this.Y.contentWindow}}class ut{constructor(t){this.Y=t}isSourceOf(t){return t.source===this.Y}}function ht(t=window.location.origin,e){const n=`${t}/services/login_with_shop/finalize`;return fetch(n).catch(e)}const dt=/^[^@]+@[^@]+\.[^@]{2,}$/i;function pt(t){return!!t&&RegExp(dt).test(t)}function ft({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 mt({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 gt(t,e=!0){const n=Boolean(t);return!n&&e&&Y.notify(new Error("HTML Element was not provided")),n}function vt(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 yt(t){return t.split("-")[1]}function bt(t){return"y"===t?"height":"width"}function _t(t){return t.split("-")[0]}function wt(t){return["top","bottom"].includes(_t(t))?"x":"y"}function xt(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=wt(e),l=bt(a),c=i[l]/2-o[l]/2,u="x"===a;let h;switch(_t(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(yt(e)){case"start":h[a]-=c*(n&&u?-1:1);break;case"end":h[a]+=c*(n&&u?-1:1)}return h}function kt(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 Ct(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}async function Ot(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=kt(p),m=a[d?"floating"===h?"reference":"floating":h],g=Ct(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},_=Ct(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 Tt=Math.min,St=Math.max;function Et(t,e,n){return St(t,Tt(e,n))}const jt=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=kt(i),h={x:o,y:s},d=wt(r),p=bt(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=Et(C,T,O),E=null!=yt(r)&&T!=S&&a.reference[p]/2-(Tt.concat(e,e+"-start",e+"-end")),[]);const It={left:"right",right:"left",bottom:"top",top:"bottom"};function At(t){return t.replace(/left|right|bottom|top/g,(t=>It[t]))}function $t(t,e,n){void 0===n&&(n=!1);const i=yt(t),o=wt(t),s=bt(o);let r="x"===o?i===(n?"end":"start")?"right":"left":"start"===i?"bottom":"top";return e.reference[s]>e.floating[s]&&(r=At(r)),{main:r,cross:At(r)}}const Nt={start:"end",end:"start"};function Lt(t){return t.replace(/start|end/g,(t=>Nt[t]))}const Mt=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=_t(i),v=_t(r)===r,y=await(null==a.isRTL?void 0:a.isRTL(l.floating)),b=h||(v||!f?[At(r)]:function(t){const e=At(t);return[Lt(t),e,Lt(e)]}(r));h||"none"===p||b.push(...function(t,e,n,i){const o=yt(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[]}}(_t(t),"start"===n,i);return o&&(s=s.map((t=>t+"-"+o)),e&&(s=s.concat(s.map(Lt)))),s}(r,f,p,y));const _=[r,...b],w=await Ot(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}=$t(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{}}}},Pt=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=_t(n),a=yt(n),l="x"===wt(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 Rt(t){return"x"===t?"y":"x"}const Vt=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 Ot(e,l),h=wt(_t(o)),d=Rt(h);let p=c[h],f=c[d];if(s){const t="y"===h?"bottom":"right";p=Et(p+u["y"===h?"top":"left"],p,p-u[t])}if(r){const t="y"===d?"bottom":"right";f=Et(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}}}}},Ut=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=wt(o),d=Rt(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(_t(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 Ft(t){var e;return(null==(e=t.ownerDocument)?void 0:e.defaultView)||window}function Dt(t){return Ft(t).getComputedStyle(t)}function zt(t){return t instanceof Ft(t).Node}function Bt(t){return zt(t)?(t.nodeName||"").toLowerCase():""}let Wt;function Ht(){if(Wt)return Wt;const t=navigator.userAgentData;return t&&Array.isArray(t.brands)?(Wt=t.brands.map((t=>t.brand+"/"+t.version)).join(" "),Wt):navigator.userAgent}function qt(t){return t instanceof Ft(t).HTMLElement}function Gt(t){return t instanceof Ft(t).Element}function Kt(t){return"undefined"!=typeof ShadowRoot&&(t instanceof Ft(t).ShadowRoot||t instanceof ShadowRoot)}function Zt(t){const{overflow:e,overflowX:n,overflowY:i,display:o}=Dt(t);return/auto|scroll|overlay|hidden|clip/.test(e+i+n)&&!["inline","contents"].includes(o)}function Jt(t){return["table","td","th"].includes(Bt(t))}function Xt(t){const e=/firefox/i.test(Ht()),n=Dt(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 Yt(){return/^((?!chrome|android).)*safari/i.test(Ht())}function Qt(t){return["html","body","#document"].includes(Bt(t))}const te=Math.min,ee=Math.max,ne=Math.round;function ie(t){const e=Dt(t);let n=parseFloat(e.width),i=parseFloat(e.height);const o=qt(t),s=o?t.offsetWidth:n,r=o?t.offsetHeight:i,a=ne(n)!==s||ne(i)!==r;return a&&(n=s,i=r),{width:n,height:i,fallback:a}}function oe(t){return Gt(t)?t:t.contextElement}const se={x:1,y:1};function re(t){const e=oe(t);if(!qt(e))return se;const n=e.getBoundingClientRect(),{width:i,height:o,fallback:s}=ie(e);let r=(s?ne(n.width):n.width)/i,a=(s?ne(n.height):n.height)/o;return r&&Number.isFinite(r)||(r=1),a&&Number.isFinite(a)||(a=1),{x:r,y:a}}function ae(t,e,n,i){var o,s;void 0===e&&(e=!1),void 0===n&&(n=!1);const r=t.getBoundingClientRect(),a=oe(t);let l=se;e&&(i?Gt(i)&&(l=re(i)):l=re(t));const c=a?Ft(a):window,u=Yt()&&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=Ft(a),e=i&&Gt(i)?Ft(i):i;let n=t.frameElement;for(;n&&i&&e!==t;){const t=re(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=Ft(n).frameElement}}return Ct({width:p,height:f,x:h,y:d})}function le(t){return((zt(t)?t.ownerDocument:t.document)||window.document).documentElement}function ce(t){return Gt(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function ue(t){return ae(le(t)).left+ce(t).scrollLeft}function he(t){if("html"===Bt(t))return t;const e=t.assignedSlot||t.parentNode||Kt(t)&&t.host||le(t);return Kt(e)?e.host:e}function de(t){const e=he(t);return Qt(e)?e.ownerDocument.body:qt(e)&&Zt(e)?e:de(e)}function pe(t,e){var n;void 0===e&&(e=[]);const i=de(t),o=i===(null==(n=t.ownerDocument)?void 0:n.body),s=Ft(i);return o?e.concat(s,s.visualViewport||[],Zt(i)?i:[]):e.concat(i,pe(i))}function fe(t,e,n){let i;if("viewport"===e)i=function(t,e){const n=Ft(t),i=le(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=Yt();(!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=le(t),n=ce(t),i=t.ownerDocument.body,o=ee(e.scrollWidth,e.clientWidth,i.scrollWidth,i.clientWidth),s=ee(e.scrollHeight,e.clientHeight,i.scrollHeight,i.clientHeight);let r=-n.scrollLeft+ue(t);const a=-n.scrollTop;return"rtl"===Dt(i).direction&&(r+=ee(e.clientWidth,i.clientWidth)-o),{width:o,height:s,x:r,y:a}}(le(t));else if(Gt(e))i=function(t,e){const n=ae(t,!0,"fixed"===e),i=n.top+t.clientTop,o=n.left+t.clientLeft,s=qt(t)?re(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(Yt()){var o,s;const e=Ft(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 Ct(i)}function me(t,e){return qt(t)&&"fixed"!==Dt(t).position?e?e(t):t.offsetParent:null}function ge(t,e){const n=Ft(t);if(!qt(t))return n;let i=me(t,e);for(;i&&Jt(i)&&"static"===Dt(i).position;)i=me(i,e);return i&&("html"===Bt(i)||"body"===Bt(i)&&"static"===Dt(i).position&&!Xt(i))?n:i||function(t){let e=he(t);for(;qt(e)&&!Qt(e);){if(Xt(e))return e;e=he(e)}return null}(t)||n}function ve(t,e,n){const i=qt(e),o=le(e),s=ae(t,!0,"fixed"===n,e);let r={scrollLeft:0,scrollTop:0};const a={x:0,y:0};if(i||!i&&"fixed"!==n)if(("body"!==Bt(e)||Zt(o))&&(r=ce(e)),qt(e)){const t=ae(e,!0);a.x=t.x+e.clientLeft,a.y=t.y+e.clientTop}else o&&(a.x=ue(o));return{x:s.left+r.scrollLeft-a.x,y:s.top+r.scrollTop-a.y,width:s.width,height:s.height}}const ye={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=pe(t).filter((t=>Gt(t)&&"body"!==Bt(t))),o=null;const s="fixed"===Dt(t).position;let r=s?he(t):t;for(;Gt(r)&&!Qt(r);){const t=Dt(r),e=Xt(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=he(r)}return e.set(t,i),i}(e,this.tt):[].concat(n),i],r=s[0],a=s.reduce(((t,n)=>{const i=fe(e,n,o);return t.top=ee(i.top,t.top),t.right=te(i.right,t.right),t.bottom=te(i.bottom,t.bottom),t.left=ee(i.left,t.left),t}),fe(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=qt(n),s=le(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"!==Bt(n)||Zt(s))&&(r=ce(n)),qt(n))){const t=ae(n);a=re(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:Gt,getDimensions:function(t){return ie(t)},getOffsetParent:ge,getDocumentElement:le,getScale:re,async getElementRects(t){let{reference:e,floating:n,strategy:i}=t;const o=this.getOffsetParent||ge,s=this.getDimensions;return{reference:ve(e,await o(n),i),floating:{x:0,y:0,...await s(n)}}},getClientRects:t=>Array.from(t.getClientRects()),isRTL:t=>"rtl"===Dt(t).direction};const be=(t,e,n)=>{const i=new Map,o={platform:ye,...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}=xt(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 ${_e}\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 ${_e}\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 xe;!function(t){t.Dynamic="DYNAMIC",t.Mobile="MOBILE",t.Center="CENTER"}(xe||(xe={}));const ke=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"]]),Ce={[xe.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:[Pt(22),i?void 0:Vt({limiter:Ut({offset:64})}),Mt({fallbackPlacements:i?[]:["left","top","bottom"]}),jt({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=ke.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}}}},[xe.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}}),[xe.Mobile]:t=>({config:{},fn:()=>(Object.assign(t.style,{top:"auto !important",right:"0 !important",bottom:"0 !important",left:"auto"}),null)})},Oe={cleanup:()=>{},updatePosition:()=>o(void 0,void 0,void 0,(function*(){return Promise.resolve(null)}))};function Te({anchorElement:t,floatingElement:e,overlayElement:n,behavior:i=xe.Center},s={},r){if(null===e)return Oe;const a=null==t&&i!==xe.Mobile?Ce[xe.Center](e,n,s):Ce[i](e,n,s,r),l=t||document.body,c=()=>o(this,void 0,void 0,(function*(){const t=yield be(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?[...Gt(t)?pe(t):t.contextElement?pe(t.contextElement):[],...pe(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()})),Gt(t)&&!a&&h.observe(t),Gt(t)||!t.contextElement||a||h.observe(t.contextElement),h.observe(e));let d=a?ae(t):null;return a&&function e(){const i=ae(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 Se;!function(t){t.UserStatusIdentity="userstatuschange:identity",t.UserStatusScope="userstatuschange:scope"}(Se||(Se={}));const Ee=(()=>{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 je extends Error{constructor(t,e=E()){super(t),this.analyticsTraceId=e,this.name="MonorailProducerError",this.code="monorail_producer_error"}}class Ie{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 Ae="https://shop.app",$e="https://pay.shopify.com",Ne="https://shop.app";function Le(t){try{const e=new URL(t);if("https:"!==e.protocol||"/"!==e.pathname||e.hash||e.search)throw new Error("Invalid URL")}catch(e){lt(`Invalid storefront origin: ${t}`)}}class Me{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 Pe extends Me{constructor(t){super(t,["https://shop.app","https://pay.shopify.com"])}}const Re={brand:"#5a31f4",white:"#fff",black:"#000",warning:"#d02e11",close:"#707070",foregroundSecondary:"#3F454D",backgroundSubdued:"#F2F3F5",backgroundError:"#FFECE9",error:"#D02E11"};function Ve(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 Ue(t){const e=t.match(/\d+/g)||[],[n=0,i=0,o=0]=e.map((t=>Number(t)));return[n,i,o]}function Fe(t){const e=[90,49,244],n=[255,255,255];let i=[255,255,255];return t.startsWith("#")?i=Ve(t):t.startsWith("rgb(")&&(i=Ue(t)),Be(i,e)>Be(i,n)?e:n}function De(t,e){return Be(t.startsWith("#")?Ve(t):Ue(t),e.startsWith("#")?Ve(e):Ue(e))}function ze(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 Be(t,e){const n=ze(t[0],t[1],t[2]),i=ze(e[0],e[1],e[2]);return(Math.max(n,i)+.05)/(Math.min(n,i)+.05)}function We(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 He 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]=Fe(e),r=`rgb(${i}, ${o}, ${s})`;return`\n \n \n `}(e,n),this.attachShadow({mode:"open"}).appendChild(t.content.cloneNode(!0))}}const qe=1e4,Ge={temporarilyUnavailable:{code:"temporarily_unavailable",message:"Shop login is temporarily unavailable"}},Ke="client-id",Ze="version",Je="storefront-origin",Xe="analytics-context",Ye="analytics-trace-id",Qe="anchor-to",tn="dev-mode",en="pop-up-name",nn="pop-up-features",on="shop-id";class sn 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 rn,an,ln,cn;class un extends HTMLElement{constructor(){super(),rn.set(this,void 0),h(this,rn,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