@rebilly/instruments 3.22.0-beta.0 → 3.23.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1 -1
- package/dist/index.min.js +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -62,4 +62,4 @@ function O(e){var t=P(e);return null===t?null:("hsl"===t.type&&(t.values=L(t.val
|
|
|
62
62
|
* @version v2.0.0
|
|
63
63
|
* @link http://noeldelgado.github.io/values.js/
|
|
64
64
|
* @license MIT
|
|
65
|
-
*/var F=function(e,t){return null===e||isNaN(e)||"string"==typeof e?t:e},H=function(e,t,n){var a;void 0===e&&(e="#000"),void 0===t&&(t="base"),void 0===n&&(n=0),a=[[0,0,0],1,t,n],this.rgb=a[0],this.alpha=a[1],this.type=a[2],this.weight=a[3];var r=null===e?"#000":e;if("string"!=typeof r)throw new TypeError("Input should be a string: "+r);var o=P(r);if(!o)throw new Error("Unable to parse color from string: "+r);return this["_setFrom"+o.type.toUpperCase()](o.values.concat([o.alpha]))},R={hex:{configurable:!0}};return R.hex.get=function(){return this.hexString().replace(/^#/,"")},H.prototype.setColor=function(e){var t=P(e);return t?this["_setFrom"+t.type.toUpperCase()](t.values.concat([t.alpha])):null},H.prototype.tint=function(e,t){return void 0===t&&(t=F(e,50)),new H("rgb("+_("#fff",this.rgbString(),t).rgba+")","tint",t)},H.prototype.shade=function(e,t){return void 0===t&&(t=F(e,50)),new H("rgb("+_("#000",this.rgbString(),t).rgba+")","shade",t)},H.prototype.tints=function(e,t){var n=this;return void 0===t&&(t=F(e,10)),Array.from({length:100/t},(function(e,a){return n.tint((a+1)*t)}))},H.prototype.shades=function(e,t){var n=this;return void 0===t&&(t=F(e,10)),Array.from({length:100/t},(function(e,a){return n.shade((a+1)*t)}))},H.prototype.all=function(e){return void 0===e&&(e=10),this.tints(e).reverse().concat([Object.assign(this)],this.shades(e))},H.prototype.hexString=function(){return I(this.alpha>=1?this.rgb:this.rgb.concat([this.alpha]))},H.prototype.rgbString=function(){var e=(this.alpha>=1?this.rgb:this.rgb.concat([this.alpha])).join(", ");return(this.alpha>=1?"rgb":"rgba")+"("+e+")"},H.prototype.getBrightness=function(){return Math.round(this.rgb.reduce((function(e,t){return e+t}))/765*100)},H.prototype._setFromRGB=function(e){var t;return t=[[e[0],e[1],e[2]],e[3]],this.rgb=t[0],this.alpha=t[1],this},H.prototype._setFromHSL=function(e){var t,n=e[0],a=e[1],r=e[2],o=e[3];return t=[L([n,a,r]).map(Math.round),o],this.rgb=t[0],this.alpha=t[1],this},Object.defineProperties(H.prototype,R),H.VERSION="v2.0.0",H}()})),jo=Mo;const No=e=>new jo(e);function Bo(e,t=1){if(null===e)return e;const n=No(e);return n.alpha=t,n.rgbString()}const qo=e=>Bo(e,.5),Do=(e,t)=>{if(null===e)return e;return No(e).shade(t).hexString()};class zo{constructor(e){var t,n,a;a=["none","hidden","dotted","dashed","solid","double","groove","ridge","inset","outset","initial","inherit"],(n="allStyles")in(t=this)?Object.defineProperty(t,n,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[n]=a,this.str=e||"";const r=this.allStyles.find((e=>this.str.includes(e))),o=this.str.split(r).map((e=>e.trim()));this.border=[o[0],r,o[1]]}get stylePosition(){let e=0;return 3===this.border.length?e=1:2===this.border.length&&(e=this.allStyles.includes(this.border[0])?0:1),e}updateColor(e){return this.border[this.stylePosition+1]=e,this}get value(){return this.border.join(" ")}}const Uo={colorPrimary:{fallback:{type:"static",value:"#0044D4"}},colorBackground:{fallback:{type:"static",value:"#FFFFFF"}},colorText:{fallback:{type:"static",value:"#0D2B3E"}},colorMutedText:{fallback:{type:"func",value:e=>qo(e.colorText)}},colorMutedBorder:{fallback:{type:"func",value:e=>e.colorTextProvided?Bo(e.colorText,.25):"#DCE3EA"}},colorDanger:{fallback:{type:"static",value:"#CD5C5C"}},fontFamily:{fallback:{type:"static",value:"Avenir, Helvetica, Arial, sans-serif"}},fontSizeBase:{fallback:{type:"static",value:"16px"}},fontWeightBase:{fallback:{type:"static",value:"500"}},fontLineHeightBase:{fallback:{type:"func",value:e=>`calc(${e.fontSizeBase} * 1.5)`}},fontSmooth:{fallback:{type:"static",value:"auto"}},borderRadius:{fallback:{type:"static",value:"6px"}},headingFontFamily:{fallback:{type:"variable",value:"fontFamily"}},headingFontWeight:{fallback:{type:"static",value:"600"}},headingColorText:{fallback:{type:"variable",value:"colorText"}},buttonColorBackground:{fallback:{type:"variable",value:"colorPrimary"}},buttonColorText:{fallback:{type:"static",value:"#FFFFFF"}},buttonFontFamily:{fallback:{type:"variable",value:"fontFamily"}},buttonFontSize:{fallback:{type:"variable",value:"fontSizeBase"}},buttonFontLineHeight:{fallback:{type:"variable",value:"fontLineHeightBase"}},buttonFontWeight:{fallback:{type:"variable",value:"fontWeightBase"}},buttonBorder:{fallback:{type:"static",value:"1px solid transparent"}},buttonBorderRadius:{fallback:{type:"variable",value:"borderRadius"}},buttonBoxShadow:{fallback:{type:"static",value:"none"}},buttonSecondaryColorBackground:{fallback:{type:"variable",value:"colorBackground"}},buttonSecondaryColorText:{fallback:{type:"variable",value:"colorPrimary"}},buttonSecondaryFontFamily:{fallback:{type:"variable",value:"fontFamily"}},buttonSecondaryFontSize:{fallback:{type:"variable",value:"fontSizeBase"}},buttonSecondaryFontLineHeight:{fallback:{type:"variable",value:"fontLineHeightBase"}},buttonSecondaryFontWeight:{fallback:{type:"variable",value:"fontWeightBase"}},buttonSecondaryBorder:{fallback:{type:"func",value:e=>`1px solid ${e.colorPrimary}`}},buttonSecondaryBorderRadius:{fallback:{type:"variable",value:"borderRadius"}},buttonSecondaryBoxShadow:{fallback:{type:"static",value:"none"}},buttonHoverColorBackground:{fallback:{type:"func",value:e=>e.buttonColorBackgroundProvided?Do(e.buttonColorBackground,20):Do(e.colorPrimary,20)}},buttonHoverColorText:{fallback:{type:"variable",value:"buttonColorText"}},buttonHoverFontFamily:{fallback:{type:"variable",value:"buttonFontFamily"}},buttonHoverFontSize:{fallback:{type:"variable",value:"buttonFontSize"}},buttonHoverFontLineHeight:{fallback:{type:"variable",value:"buttonFontLineHeight"}},buttonHoverFontWeight:{fallback:{type:"variable",value:"buttonFontWeight"}},buttonHoverBorder:{fallback:{type:"func",value:e=>{if(e.buttonBorderProvided)return e.buttonBorder;return new zo(e.buttonBorder).updateColor(e.buttonHoverColorBackground).value}}},buttonHoverBorderRadius:{fallback:{type:"variable",value:"buttonBorderRadius"}},buttonHoverBoxShadow:{fallback:{type:"variable",value:"buttonBoxShadow"}},buttonSecondaryHoverColorBackground:{fallback:{type:"variable",value:"colorBackground"}},buttonSecondaryHoverColorText:{fallback:{type:"variable",value:"buttonSecondaryColorText"}},buttonSecondaryHoverFontFamily:{fallback:{type:"variable",value:"buttonSecondaryFontFamily"}},buttonSecondaryHoverFontSize:{fallback:{type:"variable",value:"buttonSecondaryFontSize"}},buttonSecondaryHoverFontLineHeight:{fallback:{type:"variable",value:"buttonSecondaryFontLineHeight"}},buttonSecondaryHoverFontWeight:{fallback:{type:"variable",value:"buttonSecondaryFontWeight"}},buttonSecondaryHoverBorder:{fallback:{type:"variable",value:"buttonSecondaryBorder"}},buttonSecondaryHoverBorderRadius:{fallback:{type:"variable",value:"buttonSecondaryBorderRadius"}},buttonSecondaryHoverBoxShadow:{fallback:{type:"variable",value:"buttonSecondaryBoxShadow"}},buttonActiveColorBackground:{fallback:{type:"variable",value:"buttonHoverColorBackground"}},buttonActiveColorText:{fallback:{type:"variable",value:"buttonHoverColorText"}},buttonActiveFontFamily:{fallback:{type:"variable",value:"buttonHoverFontFamily"}},buttonActiveFontSize:{fallback:{type:"variable",value:"buttonHoverFontSize"}},buttonActiveFontLineHeight:{fallback:{type:"variable",value:"buttonHoverFontLineHeight"}},buttonActiveFontWeight:{fallback:{type:"variable",value:"buttonHoverFontWeight"}},buttonActiveBorder:{fallback:{type:"variable",value:"buttonHoverBorder"}},buttonActiveBorderRadius:{fallback:{type:"variable",value:"buttonHoverBorderRadius"}},buttonActiveBoxShadow:{fallback:{type:"variable",value:"buttonHoverBoxShadow"}},buttonSecondaryActiveColorBackground:{fallback:{type:"variable",value:"buttonSecondaryHoverColorBackground"}},buttonSecondaryActiveColorText:{fallback:{type:"variable",value:"buttonSecondaryHoverColorText"}},buttonSecondaryActiveFontFamily:{fallback:{type:"variable",value:"buttonSecondaryHoverFontFamily"}},buttonSecondaryActiveFontSize:{fallback:{type:"variable",value:"buttonSecondaryHoverFontSize"}},buttonSecondaryActiveFontLineHeight:{fallback:{type:"variable",value:"buttonSecondaryHoverFontLineHeight"}},buttonSecondaryActiveFontWeight:{fallback:{type:"variable",value:"buttonSecondaryHoverFontWeight"}},buttonSecondaryActiveBorder:{fallback:{type:"variable",value:"buttonSecondaryHoverBorder"}},buttonSecondaryActiveBorderRadius:{fallback:{type:"variable",value:"buttonSecondaryHoverBorderRadius"}},buttonSecondaryActiveBoxShadow:{fallback:{type:"variable",value:"buttonSecondaryHoverBoxShadow"}},inputColorBackground:{fallback:{type:"static",value:"transparent"}},inputColorText:{fallback:{type:"variable",value:"colorText"}},inputFontFamily:{fallback:{type:"variable",value:"fontFamily"}},inputFontSize:{fallback:{type:"variable",value:"fontSizeBase"}},inputFontLineHeight:{fallback:{type:"variable",value:"fontLineHeightBase"}},inputFontWeight:{fallback:{type:"variable",value:"fontWeightBase"}},inputBorder:{fallback:{type:"func",value:e=>`1px solid ${Do(e.colorMutedBorder,4)}`}},inputBorderRadius:{fallback:{type:"variable",value:"borderRadius"}},inputBoxShadow:{fallback:{type:"static",value:"none"}},inputHoverColorBackground:{fallback:{type:"variable",value:"inputColorBackground"}},inputHoverColorText:{fallback:{type:"variable",value:"inputColorText"}},inputHoverFontFamily:{fallback:{type:"variable",value:"inputFontFamily"}},inputHoverFontSize:{fallback:{type:"variable",value:"inputFontSize"}},inputHoverFontLineHeight:{fallback:{type:"variable",value:"inputFontLineHeight"}},inputHoverFontWeight:{fallback:{type:"variable",value:"inputFontWeight"}},inputHoverBorder:{fallback:{type:"variable",value:"inputBorder"}},inputHoverBorderRadius:{fallback:{type:"variable",value:"inputBorderRadius"}},inputHoverBoxShadow:{fallback:{type:"variable",value:"inputBoxShadow"}},inputFocusColorBackground:{fallback:{type:"variable",value:"inputHoverColorBackground"}},inputFocusColorText:{fallback:{type:"variable",value:"inputHoverColorText"}},inputFocusFontFamily:{fallback:{type:"variable",value:"inputHoverFontFamily"}},inputFocusFontSize:{fallback:{type:"variable",value:"inputHoverFontSize"}},inputFocusFontLineHeight:{fallback:{type:"variable",value:"inputHoverFontLineHeight"}},inputFocusFontWeight:{fallback:{type:"variable",value:"inputHoverFontWeight"}},inputFocusBorder:{fallback:{type:"func",value:e=>{if(e.inputHoverBorderProvided)return e.inputHoverBorder;return new zo(e.inputBorder).updateColor(e.colorPrimary).value}}},inputFocusBorderRadius:{fallback:{type:"variable",value:"inputHoverBorderRadius"}},inputFocusBoxShadow:{fallback:{type:"func",value:e=>`0 0 0 1px ${e.colorPrimary}`}},inputPlaceholderColorText:{fallback:{type:"func",value:e=>e.inputColorTextProvided?qo(e.inputColorText):e.colorMutedText}},inputPlaceholderFontFamily:{fallback:{type:"variable",value:"inputFontFamily"}},inputPlaceholderFontSize:{fallback:{type:"variable",value:"inputFontSize"}},inputPlaceholderFontLineHeight:{fallback:{type:"variable",value:"inputFontLineHeight"}},inputPlaceholderFontWeight:{fallback:{type:"variable",value:"inputFontWeight"}},inputSelectionColorText:{fallback:{type:"static",value:"initial"}},inputSelectionColorBackground:{fallback:{type:"static",value:"highlight"}},inputErrorColorBackground:{fallback:{type:"variable",value:"inputColorBackground"}},inputErrorColorText:{fallback:{type:"variable",value:"colorDanger"}},inputErrorFontFamily:{fallback:{type:"variable",value:"inputFontFamily"}},inputErrorFontSize:{fallback:{type:"variable",value:"inputFontSize"}},inputErrorFontLineHeight:{fallback:{type:"variable",value:"inputFontLineHeight"}},inputErrorFontWeight:{fallback:{type:"variable",value:"inputFontWeight"}},inputErrorBorder:{fallback:{type:"func",value:e=>{if(e.inputBorderProvided){return new zo(e.inputBorder).updateColor(e.colorDanger).value}return`1px solid ${e.colorDanger}`}}},inputErrorBorderRadius:{fallback:{type:"variable",value:"inputBorderRadius"}},inputErrorBoxShadow:{fallback:{type:"variable",value:"inputBoxShadow"}},inputErrorHoverColorBackground:{fallback:{type:"variable",value:"inputErrorColorBackground"}},inputErrorHoverColorText:{fallback:{type:"variable",value:"inputErrorColorText"}},inputErrorHoverFontFamily:{fallback:{type:"variable",value:"inputErrorFontFamily"}},inputErrorHoverFontSize:{fallback:{type:"variable",value:"inputErrorFontSize"}},inputErrorHoverFontLineHeight:{fallback:{type:"variable",value:"inputErrorFontLineHeight"}},inputErrorHoverFontWeight:{fallback:{type:"variable",value:"inputErrorFontWeight"}},inputErrorHoverBorder:{fallback:{type:"variable",value:"inputErrorBorder"}},inputErrorHoverBorderRadius:{fallback:{type:"variable",value:"inputErrorBorderRadius"}},inputErrorHoverBoxShadow:{fallback:{type:"variable",value:"inputErrorBoxShadow"}},inputErrorFocusColorBackground:{fallback:{type:"variable",value:"inputErrorHoverColorBackground"}},inputErrorFocusColorText:{fallback:{type:"variable",value:"inputErrorHoverColorText"}},inputErrorFocusFontFamily:{fallback:{type:"variable",value:"inputErrorHoverFontFamily"}},inputErrorFocusFontSize:{fallback:{type:"variable",value:"inputErrorHoverFontSize"}},inputErrorFocusFontLineHeight:{fallback:{type:"variable",value:"inputErrorHoverFontLineHeight"}},inputErrorFocusFontWeight:{fallback:{type:"variable",value:"inputErrorHoverFontWeight"}},inputErrorFocusBorder:{fallback:{type:"variable",value:"inputErrorHoverBorder"}},inputErrorFocusBorderRadius:{fallback:{type:"variable",value:"inputErrorHoverBorderRadius"}},inputErrorFocusBoxShadow:{fallback:{type:"variable",value:"inputErrorHoverBoxShadow"}},inputErrorPlaceholderColorText:{fallback:{type:"func",value:e=>e.inputErrorColorTextProvided?qo(e.inputErrorColorText):qo(e.colorDanger)}},inputErrorPlaceholderFontFamily:{fallback:{type:"variable",value:"inputPlaceholderFontFamily"}},inputErrorPlaceholderFontSize:{fallback:{type:"variable",value:"inputPlaceholderFontSize"}},inputErrorPlaceholderFontLineHeight:{fallback:{type:"variable",value:"inputPlaceholderFontLineHeight"}},inputErrorPlaceholderFontWeight:{fallback:{type:"variable",value:"inputPlaceholderFontWeight"}},inputErrorSelectionColorText:{fallback:{type:"variable",value:"inputSelectionColorText"}},inputErrorSelectionColorBackground:{fallback:{type:"variable",value:"inputSelectionColorBackground"}},labels:{fallback:{type:"static",value:"floating"}}};var Wo,Go,Vo,Ko=new Proxy(Uo,{get(e,t,n){if(t in e){if(e[t].value)return e[t].value;const{type:a,value:r}=e[t].fallback;if("static"===a)return r;if("variable"===a)return`var(--rebilly-${r})`;if("func"===a)return r(n)}if(t.endsWith("Provided")){const n=t.replace("Provided","");if(n in e)return e[n].isProvided}},set:(e,t,n)=>{if(!(t in e)||!n)throw new Error(`Invalid theme option provided: ${t}`);return e[t].value=n,e[t].isProvided=!0,!0}});class Xo{constructor(e={}){this.overrides=e,this.theme=Ko}overrideTheme(){Object.keys(this.overrides).forEach((e=>{this.theme[e]=this.overrides[e]}))}get cssVars(){return Object.keys(this.theme).filter((e=>!Xo.nonCssProperties.includes(e))).map(((e,t)=>`${t?" ":""}--rebilly-${e}: ${this.theme[e]};`)).join("\n")}build(){return this.overrideTheme(),{cssVars:this.cssVars}}}Vo=["labels"],(Go="nonCssProperties")in(Wo=Xo)?Object.defineProperty(Wo,Go,{value:Vo,enumerable:!0,configurable:!0,writable:!0}):Wo[Go]=Vo;function Jo(e){let t=e;return t=t.replace(/\/\*(?:(?!\*\/)[\s\S])*\*\/|[\r\n\t]+/g,""),t=t.replace(/\s{2,}/g," "),t=t.replace(/\s([{:}])\s/g,"$1"),t=t.replace(/([;,])\s/g,"$1"),t=t.replace(/\s!/g,"!"),t}var Yo=({options:{theme:e={},css:t}}={})=>{const n=(e=>{const t=`\n ${(e=>`\n/* Instruments 'global' variables\n------------------------------------------------------------ */\n:root {\n ${e.cssVars}\n\n --rebilly-fontWeight400: 400;\n --rebilly-fontWeight500: 500;\n --rebilly-fontWeight600: 600;\n --rebilly-fontScaleFactor: 1.5;\n --rebilly-fontScaleFactorS: 0.875;\n --rebilly-fontSizeS: calc(var(--rebilly-fontSizeBase) * var(--rebilly-fontScaleFactorS));\n --rebilly-fontLineHeightS: calc(var(--rebilly-fontSizeS) * 1);\n\n --rebilly-fontSizeL: calc(var(--rebilly-fontSizeBase) * var(--rebilly-fontScaleFactor));\n --rebilly-fontLineHeightL: calc(var(--rebilly-fontLineHeightBase) * 2);\n --rebilly-fontMarginTopL: 0;\n --rebilly-fontMarginBottomL: var(--rebilly-fontLineHeightBase);\n\n --rebilly-spacing2xs: calc(var(--rebilly-fontLineHeightBase) / 6);\n --rebilly-spacingXs: calc(var(--rebilly-fontLineHeightBase) / 4);\n --rebilly-spacingS: calc(var(--rebilly-fontLineHeightBase) / 2);\n --rebilly-spacingM: var(--rebilly-fontLineHeightBase);\n --rebilly-spacingL: calc(var(--rebilly-fontLineHeightBase) * 2);\n --rebilly-spacingXl: calc(var(--rebilly-fontLineHeightBase) * 4);\n\n --rebilly-spacingFormElementMinHeight: calc(var(--rebilly-spacingM) * 1.83333);\n\n --rebilly-summaryLoaderMinHeight: var(--rebilly-fontLineHeightBase);\n --rebilly-methodLoaderMinHeight: calc((4 * var(--rebilly-spacingFormElementMinHeight)) + (2 * var(--rebilly-fontLineHeightBase)) + (2 * var(--rebilly-spacingM)) + var(--rebilly-spacing2xs) + var(--rebilly-fontSizeS) + calc(2 * (var(--rebilly-spacingXs) + var(--rebilly-spacingS))) + var(--rebilly-spacingL));\n}\n\n/* Views. Method Selector\n------------------------------------------------------------ */\n.rebilly-instruments-method-selector.has-express-compact {\n padding-top: var(--rebilly-spacingS);\n}\n\n/* Express Methods\n------------------------------------------------------------ */\n@-webkit-keyframes rebillyExpressShine {\n to {\n background-position-x: -200%;\n }\n}\n@keyframes rebillyExpressShine {\n to {\n background-position-x: -200%;\n }\n}\n\n.rebilly-instruments-express-methods { padding: 2px; }\n\n.rebilly-instruments-express-methods.is-compact {\n border: 1px solid var(--rebilly-colorMutedBorder);\n padding: var(--rebilly-spacingS);\n padding-top: calc(var(--rebilly-spacingXs) + var(--rebilly-spacingS));\n padding-top: calc(var(--rebilly-fontSizeBase) + var(--rebilly-spacing2xs));\n border-radius: var(--rebilly-borderRadius);\n position: relative;\n}\n\n.rebilly-instruments-express-methods .rebilly-instruments-iframe {\n display: block;\n margin-bottom: 0;\n height: var(--rebilly-spacingFormElementMinHeight);\n}\n\n.rebilly-instruments-express-methods .rebilly-instruments-express-methods-container > * {\n border-radius: 6px;\n margin-bottom: var(--rebilly-spacingS);\n background: linear-gradient(110deg, var(--rebilly-colorMutedBorder) 0%, var(--rebilly-colorBackground) 25%, var(--rebilly-colorMutedBorder) 50%);\n background-size: 200% 100%;\n -webkit-animation: 1.5s rebillyExpressShine linear infinite;\n animation: 1.5s rebillyExpressShine linear infinite;\n height: 44px;\n}\n\n.rebilly-instruments-express-methods .rebilly-instruments-express-methods-container > *:last-child {\n margin: 0;\n}\n\n.rebilly-instruments-express-methods.is-compact .rebilly-instruments-express-methods-container {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-pack: center;\n -ms-flex-pack: center;\n justify-content: center;\n}\n\n.rebilly-instruments-express-methods.is-compact .rebilly-instruments-express-methods-container > * {\n -webkit-box-flex: 1;\n -ms-flex: 1 1 0px;\n flex: 1 1 0px;\n max-width: 260px;\n margin: 0 var(--rebilly-spacingXs);\n}\n\n.rebilly-instruments-express-methods.is-compact .rebilly-instruments-express-methods-container > *:first-child {\n margin-left: 0;\n}\n\n.rebilly-instruments-express-methods.is-compact .rebilly-instruments-express-methods-container > *:last-child {\n margin-right: 0;\n}\n\n.rebilly-instruments-express-methods .rebilly-instruments-express-methods-label {\n display: none;\n}\n\n.rebilly-instruments-express-methods.is-compact .rebilly-instruments-express-methods-label {\n position: absolute;\n font-family: var(--rebilly-fontFamily);\n top: 0; left: 50%;\n -webkit-transform: translateX(-50%) translateY(-50%);\n transform: translateX(-50%) translateY(-50%);\n color: var(--rebilly-colorText);\n padding: var(--rebilly-spacing2xs) var(--rebilly-spacingM);\n line-height: 1;\n background: var(--rebilly-colorBackground);\n display: inline-block;\n font-weight: var(--rebilly-fontWeightBase);\n min-height: auto;\n margin: 0;\n white-space: nowrap;\n}\n\n@media (max-width: 600px) {\n .rebilly-instruments-express-methods.is-compact .rebilly-instruments-express-methods-container {\n -webkit-box-orient: vertical;\n -webkit-box-direction: normal;\n -ms-flex-direction: column;\n flex-direction: column;\n }\n\n .rebilly-instruments-express-methods.is-compact .rebilly-instruments-express-methods-container > * {\n max-width: 100%;\n margin: 0 0 var(--rebilly-spacingS);\n }\n \n .rebilly-instruments-express-methods.is-compact .rebilly-instruments-express-methods-container > *:last-child {\n margin: 0;\n }\n}\n\n/* Components. Divider\n------------------------------------------------------------ */\n.rebilly-instruments-divider {\n line-height: var(--rebilly-fontLineHeightBase);\n padding: var(--rebilly-spacingM) 0;\n margin: 0;\n position: relative;\n outline: 0;\n border: 0;\n text-align: center;\n font-family: var(--rebilly-fontFamily);\n}\n\n.rebilly-instruments-divider-s { padding: var(--rebilly-spacingS) 0; }\n.rebilly-instruments-divider-xs { padding: var(--rebilly-spacingXs) 0; }\n\n.rebilly-instruments-divider::before {\n background: var(--rebilly-colorMutedBorder);\n content: '';\n position: absolute;\n left: 0;\n top: 50%;\n width: 100%;\n height: 1px;\n}\n\n.rebilly-instruments-divider .rebilly-instruments-divider-label {\n color: var(--rebilly-colorMutedText);\n font-weight: var(--rebilly-fontWeightBase);\n padding: 0 var(--rebilly-spacingM);\n line-height: var(--rebilly-fontLineHeightS);\n background-color: var(--rebilly-colorBackground);\n font-size: var(--rebilly-fontSizeS);\n position: relative;\n display: inline-block;\n}\n\n/* Vendor, Postmate\n------------------------------------------------------------ */\n.rebilly-instruments-iframe {\n border: none;\n width: 100%;\n height: 0;\n padding: 0;\n}\n\n.rebilly-instruments-iframe-overlay {\n top: -2px;\n left: -2px;\n width: calc(100vw + 2px);\n height: 100vh;\n min-height: calc(100vh + 4px);\n position: fixed;\n z-index: 99999999999999;\n}\n\n/* Views. Modal\n------------------------------------------------------------ */\n.rebilly-instruments-modal-overlay {\n position: fixed;\n top: 0;\n left: 0;\n overflow-x: hidden;\n overflow-y: auto;\n z-index: 1055;\n padding: 30px;\n width: 100%;\n height: 100%;\n margin: 0;\n padding: 0;\n -webkit-transition: all 0.12s ease-in-out;\n transition: all 0.12s ease-in-out;\n background-color: rgba(0,0,0,0.7);\n opacity: 0\n}\n\n.rebilly-instruments-modal-overlay.is-visible {\n opacity: 1;\n}\n\n.rebilly-instruments-modal-container {\n -webkit-transition: all .24s ease-in-out;\n transition: all .24s ease-in-out;\n position: relative;\n max-width: 750px;\n background: var(--rebilly-colorBackground);\n margin: 50px auto 20px;\n -webkit-box-shadow: 0 19px 38px rgba(0,0,0,0.20), 0 15px 12px rgba(0,0,0,0.12);\n box-shadow: 0 19px 38px rgba(0,0,0,0.20), 0 15px 12px rgba(0,0,0,0.12);\n border-radius: 4px;\n -webkit-transform: translateY(-50px);\n transform: translateY(-50px);\n opacity: 0;\n}\n\n.rebilly-instruments-modal-container.is-visible {\n -webkit-transform: translateY(0);\n transform: translateY(0);\n opacity: 1;\n}\n\n.rebilly-instruments-modal-container.is-redirect {\n max-width: 60vw;\n width: auto;\n}\n\n.rebilly-instruments-modal-content {\n -webkit-transition: all .15s;\n transition: all .15s;\n padding: 20px;\n overflow: hidden;\n background-color: var(--rebilly-colorBackground);\n text-align: center;\n border-radius: 4px;\n}\n\n.rebilly-instruments-modal-content .rebilly-instruments-iframe {\n -webkit-transition: all .15s;\n transition: all .15s;\n height: auto;\n min-height: 360px;\n}\n\n.rebilly-instruments-modal-container.is-redirect .rebilly-instruments-modal-content {\n padding: 0;\n}\n\n.rebilly-instruments-modal-close {\n position: absolute;\n width: 30px;\n height: 30px;\n top: -40px;\n right: 0;\n fill: #FFF;\n cursor: pointer;\n}\n\n.rebilly-instruments-modal-close:hover{\n color: #000;\n}\n\n@media screen and (max-width: 480px) {\n .rebilly-instruments-modal-container.is-redirect {\n max-width: 96vw;\n margin: 20px auto 20px;\n }\n}\n\n/* Components. Loader\n------------------------------------------------------------ */\n.rebilly-instruments-loader {\n text-align: left;\n position: absolute;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n display: none;\n background-color: var(--rebilly-colorBackground);\n z-index: 1000;\n -webkit-transition: all 200ms;\n transition: all 200ms;\n border-radius: var(--rebilly-borderRadius);\n}\n\n.rebilly-instruments-loader.is-active {\n display: block;\n}\n\n/* Type */\n.rebilly-instruments-loader p {\n color: var(--rebilly-colorText);\n display: inline-block;\n margin: 0;\n font-weight: var(--rebilly-fontWeightBase);\n font-size: var(--rebilly-fontSizeBase);\n line-height: var(--rebilly-fontLineHeightBase);\n}\n\n.rebilly-instruments-loader small {\n color: var(--rebilly-colorText);\n display: inline-block;\n margin: 0;\n font-size: var(--rebilly-fontSizeS);\n line-height: 1;\n}\n\n/* Summary */\n.rebilly-instruments-summary-loader-total p.total {\n font-family: var(--rebilly-fontFamily);\n font-size: var(--rebilly-fontSizeL);\n font-weight: var(--rebilly-headingFontWeight);\n}\n\n/* Methods */\n.rebilly-instruments-methods-loader-card-icon {\n width: 32px;\n height: 22px;\n margin-left: var(--rebilly-spacing2xs);\n margin-bottom: var(--rebilly-spacing2xs);\n}\n\n.rebilly-instruments-methods-loader-form-fields { margin: calc(var(--rebilly-spacingXs) + var(--rebilly-spacingS)) 0; }\n\n/* Spinner */\n.rebilly-instruments-loader-spinner {\n top: 50%;\n left: 50%;\n position: absolute;\n -webkit-transform: translate(-50%, -50%);\n transform: translate(-50%, -50%);\n border: 2px solid transparent;\n border-top: 2px solid var(--rebilly-colorPrimary);\n border-radius: 50%;\n width: var(--rebilly-fontLineHeightBase);\n height: var(--rebilly-fontLineHeightBase);\n margin-top: calc(-1 * var(--rebilly-fontLineHeightBase) / 2);\n margin-left: calc(-1 * var(--rebilly-fontLineHeightBase) / 2);\n -webkit-animation: spin 0.5s ease infinite;\n animation: spin 0.5s ease infinite;\n}\n\n@-webkit-keyframes spin {\n 0% { -webkit-transform: rotate(0deg); transform: rotate(0deg); }\n 100% { -webkit-transform: rotate(360deg); transform: rotate(360deg); }\n}\n\n@keyframes spin {\n 0% { -webkit-transform: rotate(0deg); transform: rotate(0deg); }\n 100% { -webkit-transform: rotate(360deg); transform: rotate(360deg); }\n}\n\n/* Utils */\n.rebilly-instruments-loader-display-flex { display: -webkit-box; display: -ms-flexbox; display: flex; }\n.rebilly-instruments-loader-align-center { -webkit-box-align: center; -ms-flex-align: center; align-items: center; }\n.rebilly-instruments-loader-justify-space-between { -webkit-box-pack: justify; -ms-flex-pack: justify; justify-content: space-between; }\n.rebilly-instruments-loader-justify-end { -webkit-box-pack: end; -ms-flex-pack: end; justify-content: flex-end; }\n\n.is-el-loading {\n position: relative;\n color: transparent!important;\n}\n\n.is-el-loading::before {\n position: absolute;\n content: '';\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n background: linear-gradient(110deg, var(--rebilly-colorMutedBorder) 0%, var(--rebilly-colorBackground) 25%, var(--rebilly-colorMutedBorder) 50%);\n background-size: 200% 100%;\n -webkit-animation: 1.5s rebillyExpressShine linear infinite;\n animation: 1.5s rebillyExpressShine linear infinite;\n border-radius: var(--rebilly-borderRadius);\n}\n\n.rebilly-instruments-loader-form-el {\n width: 100%;\n min-height: var(--rebilly-spacingFormElementMinHeight);\n}\n\n.rebilly-instruments-loader-form-label {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n margin-bottom: var(--rebilly-spacing2xs);\n}\n\n.rebilly-instruments-loader-form-el.is-button {\n margin-top: var(--rebilly-spacingL);\n text-align: center;\n font-size: var(--rebilly-buttonFontSize);\n font-family: var(--rebilly-buttonFontFamily);\n line-height: var(--rebilly-buttonFontLineHeight);\n padding: var(--rebilly-spacingS);\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n background: var(--rebilly-buttonColorBackground);\n color: transparent;\n border-radius: var(--rebilly-buttonBorderRadius);\n font-weight: var(--rebilly-buttonFontWeight);\n border: var(--rebilly-buttonBorder);\n -webkit-box-shadow: var(--rebilly-buttonBoxShadow);\n box-shadow: var(--rebilly-buttonBoxShadow);\n outline: none;\n cursor: not-allowed;\n opacity: 0.6; \n}\n\n.rebilly-instruments-methods-loader-card-icon.is-el-loading::before {\n border-radius: calc(var(--rebilly-borderRadius) / 2);\n}\n\n/* Error\n------------------------------------------------------------ */\n.rebilly-instruments-error-card {\n border: 1px solid var(--rebilly-colorDanger);\n border-radius: var(--rebilly-borderRadius);\n text-align: left;\n padding: var(--rebilly-spacingS);\n margin-bottom: var(--rebilly-spacingL);\n}\n\n.rebilly-instruments-error-card-header {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n -webkit-box-pack: justify;\n -ms-flex-pack: justify;\n justify-content: space-between;\n width: 100%;\n -webkit-box-align: start;\n -ms-flex-align: start;\n align-items: flex-start;\n}\n\n.rebilly-instruments-error-card-title {\n font-weight: var(--rebilly-fontWeightBase);\n font-size: var(--rebilly-fontSizeBase);\n line-height: var(--rebilly-fontLineHeightBase);\n font-family: var(--rebilly-headingFontFamily);\n margin: 0 0 var(--rebilly-spacingS);\n color: var(--rebilly-colorDanger);\n}\n\n.rebilly-instruments-error-card-close-button {\n cursor: pointer;\n background: transparent;\n border: none;\n padding: 0;\n}\n\n.rebilly-instruments-error-card-close-button svg {\n width: var(--rebilly-fontLineHeightBase);\n height: var(--rebilly-fontLineHeightBase);\n fill: var(--rebilly-colorText);\n}\n\n.rebilly-instruments-error-card-details {\n padding: 0;\n margin: 0;\n list-style: none;\n}\n\n.rebilly-instruments-error-card-details li,\n.rebilly-instruments-error-card-message {\n color: var(--rebilly-colorText);\n margin: 0;\n font-weight: var(--rebilly-fontWeightBase);\n font-size: var(--rebilly-fontSizeBase);\n line-height: var(--rebilly-fontLineHeightBase);\n}\n`)(new Xo(e).build())}\n `;return t})(e||{});return Lo({element:"style",attributes:{type:"text/css"},content:Jo(n),target:"head"}),t&&Lo({element:"style",attributes:{type:"text/css"},content:Jo(t),target:"head"}),n};const Zo=({state:e})=>{e.translate.init(e.options.locale,e.options.i18n),e.translate.translateItems()};var Qo,ei,ti=function(e){return e&&e.Math==Math&&e},ni=ti("object"==typeof globalThis&&globalThis)||ti("object"==typeof window&&window)||ti("object"==typeof self&&self)||ti("object"==typeof g&&g)||function(){return this}()||Function("return this")(),ai=function(e){try{return!!e()}catch(e){return!0}},ri=!ai((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),oi=!ai((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})),ii=Function.prototype.call,si=oi?ii.bind(ii):function(){return ii.apply(ii,arguments)},li={}.propertyIsEnumerable,ui=Object.getOwnPropertyDescriptor,ci=ui&&!li.call({1:2},1)?function(e){var t=ui(this,e);return!!t&&t.enumerable}:li,di={f:ci},pi=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},mi=Function.prototype,fi=mi.bind,hi=mi.call,yi=oi&&fi.bind(hi,hi),gi=oi?function(e){return e&&yi(e)}:function(e){return e&&function(){return hi.apply(e,arguments)}},bi=gi({}.toString),vi=gi("".slice),wi=function(e){return vi(bi(e),8,-1)},ki=Object,xi=gi("".split),Ei=ai((function(){return!ki("z").propertyIsEnumerable(0)}))?function(e){return"String"==wi(e)?xi(e,""):ki(e)}:ki,Ai=TypeError,Si=function(e){if(null==e)throw Ai("Can't call method on "+e);return e},Pi=function(e){return Ei(Si(e))},Li=function(e){return"function"==typeof e},Ti=function(e){return"object"==typeof e?null!==e:Li(e)},Ci=function(e){return Li(e)?e:void 0},Ii=function(e,t){return arguments.length<2?Ci(ni[e]):ni[e]&&ni[e][t]},$i=gi({}.isPrototypeOf),Oi=Ii("navigator","userAgent")||"",_i=ni.process,Fi=ni.Deno,Hi=_i&&_i.versions||Fi&&Fi.version,Ri=Hi&&Hi.v8;Ri&&(ei=(Qo=Ri.split("."))[0]>0&&Qo[0]<4?1:+(Qo[0]+Qo[1])),!ei&&Oi&&(!(Qo=Oi.match(/Edge\/(\d+)/))||Qo[1]>=74)&&(Qo=Oi.match(/Chrome\/(\d+)/))&&(ei=+Qo[1]);var Mi=ei,ji=!!Object.getOwnPropertySymbols&&!ai((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Mi&&Mi<41})),Ni=ji&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Bi=Object,qi=Ni?function(e){return"symbol"==typeof e}:function(e){var t=Ii("Symbol");return Li(t)&&$i(t.prototype,Bi(e))},Di=String,zi=function(e){try{return Di(e)}catch(e){return"Object"}},Ui=TypeError,Wi=function(e){if(Li(e))return e;throw Ui(zi(e)+" is not a function")},Gi=function(e,t){var n=e[t];return null==n?void 0:Wi(n)},Vi=TypeError,Ki=Object.defineProperty,Xi=function(e,t){try{Ki(ni,e,{value:t,configurable:!0,writable:!0})}catch(n){ni[e]=t}return t},Ji=ni["__core-js_shared__"]||Xi("__core-js_shared__",{}),Yi=b((function(e){(e.exports=function(e,t){return Ji[e]||(Ji[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.23.3",mode:"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.23.3/LICENSE",source:"https://github.com/zloirock/core-js"})})),Zi=Object,Qi=function(e){return Zi(Si(e))},es=gi({}.hasOwnProperty),ts=Object.hasOwn||function(e,t){return es(Qi(e),t)},ns=0,as=Math.random(),rs=gi(1..toString),os=function(e){return"Symbol("+(void 0===e?"":e)+")_"+rs(++ns+as,36)},is=Yi("wks"),ss=ni.Symbol,ls=ss&&ss.for,us=Ni?ss:ss&&ss.withoutSetter||os,cs=function(e){if(!ts(is,e)||!ji&&"string"!=typeof is[e]){var t="Symbol."+e;ji&&ts(ss,e)?is[e]=ss[e]:is[e]=Ni&&ls?ls(t):us(t)}return is[e]},ds=TypeError,ps=cs("toPrimitive"),ms=function(e,t){if(!Ti(e)||qi(e))return e;var n,a=Gi(e,ps);if(a){if(void 0===t&&(t="default"),n=si(a,e,t),!Ti(n)||qi(n))return n;throw ds("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,a;if("string"===t&&Li(n=e.toString)&&!Ti(a=si(n,e)))return a;if(Li(n=e.valueOf)&&!Ti(a=si(n,e)))return a;if("string"!==t&&Li(n=e.toString)&&!Ti(a=si(n,e)))return a;throw Vi("Can't convert object to primitive value")}(e,t)},fs=function(e){var t=ms(e,"string");return qi(t)?t:t+""},hs=ni.document,ys=Ti(hs)&&Ti(hs.createElement),gs=function(e){return ys?hs.createElement(e):{}},bs=!ri&&!ai((function(){return 7!=Object.defineProperty(gs("div"),"a",{get:function(){return 7}}).a})),vs=Object.getOwnPropertyDescriptor,ws=ri?vs:function(e,t){if(e=Pi(e),t=fs(t),bs)try{return vs(e,t)}catch(e){}if(ts(e,t))return pi(!si(di.f,e,t),e[t])},ks={f:ws},xs=ri&&ai((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Es=String,As=TypeError,Ss=function(e){if(Ti(e))return e;throw As(Es(e)+" is not an object")},Ps=TypeError,Ls=Object.defineProperty,Ts=Object.getOwnPropertyDescriptor,Cs=ri?xs?function(e,t,n){if(Ss(e),t=fs(t),Ss(n),"function"==typeof e&&"prototype"===t&&"value"in n&&"writable"in n&&!n.writable){var a=Ts(e,t);a&&a.writable&&(e[t]=n.value,n={configurable:"configurable"in n?n.configurable:a.configurable,enumerable:"enumerable"in n?n.enumerable:a.enumerable,writable:!1})}return Ls(e,t,n)}:Ls:function(e,t,n){if(Ss(e),t=fs(t),Ss(n),bs)try{return Ls(e,t,n)}catch(e){}if("get"in n||"set"in n)throw Ps("Accessors not supported");return"value"in n&&(e[t]=n.value),e},Is={f:Cs},$s=ri?function(e,t,n){return Is.f(e,t,pi(1,n))}:function(e,t,n){return e[t]=n,e},Os=Function.prototype,_s=ri&&Object.getOwnPropertyDescriptor,Fs=ts(Os,"name"),Hs={EXISTS:Fs,PROPER:Fs&&"something"===function(){}.name,CONFIGURABLE:Fs&&(!ri||ri&&_s(Os,"name").configurable)},Rs=gi(Function.toString);Li(Ji.inspectSource)||(Ji.inspectSource=function(e){return Rs(e)});var Ms,js,Ns,Bs=Ji.inspectSource,qs=ni.WeakMap,Ds=Li(qs)&&/native code/.test(Bs(qs)),zs=Yi("keys"),Us=function(e){return zs[e]||(zs[e]=os(e))},Ws={},Gs=ni.TypeError,Vs=ni.WeakMap;if(Ds||Ji.state){var Ks=Ji.state||(Ji.state=new Vs),Xs=gi(Ks.get),Js=gi(Ks.has),Ys=gi(Ks.set);Ms=function(e,t){if(Js(Ks,e))throw new Gs("Object already initialized");return t.facade=e,Ys(Ks,e,t),t},js=function(e){return Xs(Ks,e)||{}},Ns=function(e){return Js(Ks,e)}}else{var Zs=Us("state");Ws[Zs]=!0,Ms=function(e,t){if(ts(e,Zs))throw new Gs("Object already initialized");return t.facade=e,$s(e,Zs,t),t},js=function(e){return ts(e,Zs)?e[Zs]:{}},Ns=function(e){return ts(e,Zs)}}var Qs,el={set:Ms,get:js,has:Ns,enforce:function(e){return Ns(e)?js(e):Ms(e,{})},getterFor:function(e){return function(t){var n;if(!Ti(t)||(n=js(t)).type!==e)throw Gs("Incompatible receiver, "+e+" required");return n}}},tl=b((function(e){var t=Hs.CONFIGURABLE,n=el.enforce,a=el.get,r=Object.defineProperty,o=ri&&!ai((function(){return 8!==r((function(){}),"length",{value:8}).length})),i=String(String).split("String"),s=e.exports=function(e,a,s){"Symbol("===String(a).slice(0,7)&&(a="["+String(a).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),s&&s.getter&&(a="get "+a),s&&s.setter&&(a="set "+a),(!ts(e,"name")||t&&e.name!==a)&&(ri?r(e,"name",{value:a,configurable:!0}):e.name=a),o&&s&&ts(s,"arity")&&e.length!==s.arity&&r(e,"length",{value:s.arity});try{s&&ts(s,"constructor")&&s.constructor?ri&&r(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var l=n(e);return ts(l,"source")||(l.source=i.join("string"==typeof a?a:"")),e};Function.prototype.toString=s((function(){return Li(this)&&a(this).source||Bs(this)}),"toString")})),nl=function(e,t,n,a){a||(a={});var r=a.enumerable,o=void 0!==a.name?a.name:t;if(Li(n)&&tl(n,o,a),a.global)r?e[t]=n:Xi(t,n);else{try{a.unsafe?e[t]&&(r=!0):delete e[t]}catch(e){}r?e[t]=n:Is.f(e,t,{value:n,enumerable:!1,configurable:!a.nonConfigurable,writable:!a.nonWritable})}return e},al=Math.ceil,rl=Math.floor,ol=Math.trunc||function(e){var t=+e;return(t>0?rl:al)(t)},il=function(e){var t=+e;return t!=t||0===t?0:ol(t)},sl=Math.max,ll=Math.min,ul=Math.min,cl=function(e){return e>0?ul(il(e),9007199254740991):0},dl=function(e){return cl(e.length)},pl=function(e){return function(t,n,a){var r,o=Pi(t),i=dl(o),s=function(e,t){var n=il(e);return n<0?sl(n+t,0):ll(n,t)}(a,i);if(e&&n!=n){for(;i>s;)if((r=o[s++])!=r)return!0}else for(;i>s;s++)if((e||s in o)&&o[s]===n)return e||s||0;return!e&&-1}},ml={includes:pl(!0),indexOf:pl(!1)}.indexOf,fl=gi([].push),hl=function(e,t){var n,a=Pi(e),r=0,o=[];for(n in a)!ts(Ws,n)&&ts(a,n)&&fl(o,n);for(;t.length>r;)ts(a,n=t[r++])&&(~ml(o,n)||fl(o,n));return o},yl=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],gl=yl.concat("length","prototype"),bl=Object.getOwnPropertyNames||function(e){return hl(e,gl)},vl={f:bl},wl={f:Object.getOwnPropertySymbols},kl=gi([].concat),xl=Ii("Reflect","ownKeys")||function(e){var t=vl.f(Ss(e)),n=wl.f;return n?kl(t,n(e)):t},El=function(e,t,n){for(var a=xl(t),r=Is.f,o=ks.f,i=0;i<a.length;i++){var s=a[i];ts(e,s)||n&&ts(n,s)||r(e,s,o(t,s))}},Al=/#|\.prototype\./,Sl=function(e,t){var n=Ll[Pl(e)];return n==Cl||n!=Tl&&(Li(t)?ai(t):!!t)},Pl=Sl.normalize=function(e){return String(e).replace(Al,".").toLowerCase()},Ll=Sl.data={},Tl=Sl.NATIVE="N",Cl=Sl.POLYFILL="P",Il=Sl,$l=ks.f,Ol=function(e,t){var n,a,r,o,i,s=e.target,l=e.global,u=e.stat;if(n=l?ni:u?ni[s]||Xi(s,{}):(ni[s]||{}).prototype)for(a in t){if(o=t[a],r=e.dontCallGetSet?(i=$l(n,a))&&i.value:n[a],!Il(l?a:s+(u?".":"#")+a,e.forced)&&void 0!==r){if(typeof o==typeof r)continue;El(o,r)}(e.sham||r&&r.sham)&&$s(o,"sham",!0),nl(n,a,o,e)}},_l=Object.keys||function(e){return hl(e,yl)},Fl=ri&&!xs?Object.defineProperties:function(e,t){Ss(e);for(var n,a=Pi(t),r=_l(t),o=r.length,i=0;o>i;)Is.f(e,n=r[i++],a[n]);return e},Hl={f:Fl},Rl=Ii("document","documentElement"),Ml=Us("IE_PROTO"),jl=function(){},Nl=function(e){return"<script>"+e+"<\/script>"},Bl=function(e){e.write(Nl("")),e.close();var t=e.parentWindow.Object;return e=null,t},ql=function(){try{Qs=new ActiveXObject("htmlfile")}catch(e){}var e,t;ql="undefined"!=typeof document?document.domain&&Qs?Bl(Qs):((t=gs("iframe")).style.display="none",Rl.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(Nl("document.F=Object")),e.close(),e.F):Bl(Qs);for(var n=yl.length;n--;)delete ql.prototype[yl[n]];return ql()};Ws[Ml]=!0;var Dl,zl,Ul,Wl=Object.create||function(e,t){var n;return null!==e?(jl.prototype=Ss(e),n=new jl,jl.prototype=null,n[Ml]=e):n=ql(),void 0===t?n:Hl.f(n,t)},Gl=!ai((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),Vl=Us("IE_PROTO"),Kl=Object,Xl=Kl.prototype,Jl=Gl?Kl.getPrototypeOf:function(e){var t=Qi(e);if(ts(t,Vl))return t[Vl];var n=t.constructor;return Li(n)&&t instanceof n?n.prototype:t instanceof Kl?Xl:null},Yl=cs("iterator"),Zl=!1;[].keys&&("next"in(Ul=[].keys())?(zl=Jl(Jl(Ul)))!==Object.prototype&&(Dl=zl):Zl=!0);var Ql=null==Dl||ai((function(){var e={};return Dl[Yl].call(e)!==e}));Ql&&(Dl={}),Li(Dl[Yl])||nl(Dl,Yl,(function(){return this}));var eu={IteratorPrototype:Dl,BUGGY_SAFARI_ITERATORS:Zl},tu=Is.f,nu=cs("toStringTag"),au={},ru=eu.IteratorPrototype,ou=function(){return this},iu={};iu[cs("toStringTag")]="z";var su="[object z]"===String(iu),lu=cs("toStringTag"),uu=Object,cu="Arguments"==wi(function(){return arguments}()),du=su?wi:function(e){var t,n,a;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=uu(e),lu))?n:cu?wi(t):"Object"==(a=wi(t))&&Li(t.callee)?"Arguments":a},pu=String,mu=function(e){if("Symbol"===du(e))throw TypeError("Cannot convert a Symbol value to a string");return pu(e)},fu=cs("match"),hu=function(){var e=Ss(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t},yu=RegExp.prototype,gu=function(e){var t=e.flags;return void 0!==t||"flags"in yu||ts(e,"flags")||!$i(yu,e)?t:si(hu,e)},bu=function(){},vu=[],wu=Ii("Reflect","construct"),ku=/^\s*(?:class|function)\b/,xu=gi(ku.exec),Eu=!ku.exec(bu),Au=function(e){if(!Li(e))return!1;try{return wu(bu,vu,e),!0}catch(e){return!1}},Su=function(e){if(!Li(e))return!1;switch(du(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return Eu||!!xu(ku,Bs(e))}catch(e){return!0}};Su.sham=!0;var Pu,Lu,Tu=!wu||ai((function(){var e;return Au(Au.call)||!Au(Object)||!Au((function(){e=!0}))||e}))?Su:Au,Cu=TypeError,Iu=cs("species"),$u=function(e,t){var n,a=Ss(e).constructor;return void 0===a||null==(n=Ss(a)[Iu])?t:function(e){if(Tu(e))return e;throw Cu(zi(e)+" is not a constructor")}(n)},Ou=gi("".charAt),_u=gi("".charCodeAt),Fu=gi("".slice),Hu=function(e){return function(t,n){var a,r,o=mu(Si(t)),i=il(n),s=o.length;return i<0||i>=s?e?"":void 0:(a=_u(o,i))<55296||a>56319||i+1===s||(r=_u(o,i+1))<56320||r>57343?e?Ou(o,i):a:e?Fu(o,i,i+2):r-56320+(a-55296<<10)+65536}},Ru={codeAt:Hu(!1),charAt:Hu(!0)}.charAt,Mu=ni.RegExp,ju=ai((function(){var e=Mu("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),Nu=ju||ai((function(){return!Mu("a","y").sticky})),Bu=ju||ai((function(){var e=Mu("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),qu={BROKEN_CARET:Bu,MISSED_STICKY:Nu,UNSUPPORTED_Y:ju},Du=ni.RegExp,zu=ai((function(){var e=Du(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),Uu=ni.RegExp,Wu=ai((function(){var e=Uu("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),Gu=el.get,Vu=Yi("native-string-replace",String.prototype.replace),Ku=RegExp.prototype.exec,Xu=Ku,Ju=gi("".charAt),Yu=gi("".indexOf),Zu=gi("".replace),Qu=gi("".slice),ec=(Lu=/b*/g,si(Ku,Pu=/a/,"a"),si(Ku,Lu,"a"),0!==Pu.lastIndex||0!==Lu.lastIndex),tc=qu.BROKEN_CARET,nc=void 0!==/()??/.exec("")[1];(ec||nc||tc||zu||Wu)&&(Xu=function(e){var t,n,a,r,o,i,s,l=this,u=Gu(l),c=mu(e),d=u.raw;if(d)return d.lastIndex=l.lastIndex,t=si(Xu,d,c),l.lastIndex=d.lastIndex,t;var p=u.groups,m=tc&&l.sticky,f=si(hu,l),h=l.source,y=0,g=c;if(m&&(f=Zu(f,"y",""),-1===Yu(f,"g")&&(f+="g"),g=Qu(c,l.lastIndex),l.lastIndex>0&&(!l.multiline||l.multiline&&"\n"!==Ju(c,l.lastIndex-1))&&(h="(?: "+h+")",g=" "+g,y++),n=new RegExp("^(?:"+h+")",f)),nc&&(n=new RegExp("^"+h+"$(?!\\s)",f)),ec&&(a=l.lastIndex),r=si(Ku,m?n:l,g),m?r?(r.input=Qu(r.input,y),r[0]=Qu(r[0],y),r.index=l.lastIndex,l.lastIndex+=r[0].length):l.lastIndex=0:ec&&r&&(l.lastIndex=l.global?r.index+r[0].length:a),nc&&r&&r.length>1&&si(Vu,r[0],n,(function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(r[o]=void 0)})),r&&p)for(r.groups=i=Wl(null),o=0;o<p.length;o++)i[(s=p[o])[0]]=r[s[1]];return r});var ac=Xu,rc=TypeError,oc=cs("matchAll"),ic=el.set,sc=el.getterFor("RegExp String Iterator"),lc=RegExp.prototype,uc=TypeError,cc=gi("".indexOf),dc=gi("".matchAll),pc=!!dc&&!ai((function(){dc("a",/./)})),mc=function(e,t,n,a){var r,o,i,s=t+" Iterator";return e.prototype=Wl(ru,{next:pi(+!a,n)}),o=s,i=!1,(r=e)&&!i&&(r=r.prototype),r&&!ts(r,nu)&&tu(r,nu,{configurable:!0,value:o}),au[s]=ou,e}((function(e,t,n,a){ic(this,{type:"RegExp String Iterator",regexp:e,string:t,global:n,unicode:a,done:!1})}),"RegExp String",(function(){var e=sc(this);if(e.done)return{value:void 0,done:!0};var t=e.regexp,n=e.string,a=function(e,t){var n=e.exec;if(Li(n)){var a=si(n,e,t);return null!==a&&Ss(a),a}if("RegExp"===wi(e))return si(ac,e,t);throw rc("RegExp#exec called on incompatible receiver")}(t,n);return null===a?{value:void 0,done:e.done=!0}:e.global?(""===mu(a[0])&&(t.lastIndex=function(e,t,n){return t+(n?Ru(e,t).length:1)}(n,cl(t.lastIndex),e.unicode)),{value:a,done:!1}):(e.done=!0,{value:a,done:!1})})),fc=function(e){var t,n,a,r=Ss(this),o=mu(e),i=$u(r,RegExp),s=mu(gu(r));return t=new i(i===RegExp?r.source:r,s),n=!!~cc(s,"g"),a=!!~cc(s,"u"),t.lastIndex=cl(r.lastIndex),new mc(t,o,n,a)};function hc(e){const t={};return function(e){const t={};function n(e){const a=e.match(/var\((.+?)\)/g);if(a){let r=e;return a.forEach((n=>{const a=n.match(/\((.*)\)/i)[1];r=e.replace(n,t[a])})),n(r)}return e}return[...e.matchAll(/(--rebilly.*(?=:))[:\s](.*(?=;))/g)].forEach((e=>{t[e[1]]=e[2].trim()})),Object.entries(t).map((([e,t])=>[e,n(t)]))}(e).forEach((([e,n])=>{t[e]=n})),t}Ol({target:"String",proto:!0,forced:pc},{matchAll:function(e){var t,n,a,r,o,i=Si(this);if(null!=e){if(Ti(r=e)&&(void 0!==(o=r[fu])?o:"RegExp"==wi(r))&&(t=mu(Si(gu(e))),!~cc(t,"g")))throw uc("`.matchAll` does not allow non-global regexes");if(pc)return dc(i,e);if(a=Gi(e,oc))return si(a,e,i)}else if(pc)return dc(i,e);return n=mu(i),new RegExp(e,"g")[oc](n)}}),oc in lc||nl(lc,oc,fc);const yc=(e,t="")=>({color:e[`--rebilly-${t}ColorText`],fontFamily:e[`--rebilly-${t}FontFamily`],fontSize:e[`--rebilly-${t}FontSize`],fontWeight:e[`--rebilly-${t}FontWeight`],lineHeight:e[`--rebilly-${t}FontLineHeight`],background:e[`--rebilly-${t}ColorBackground`],boxShadow:e[`--rebilly-${t}BoxShadow`]});function gc({eventName:e,callback:t}){if(!Ge.includes(e))throw new Error(`${e} is not a supported event`);const n=ue(e);We[n].addEventListener(t)}async function bc({componentName:e,payload:t,state:n}){switch(e){case"result":n.iframeComponents.form&&(n.iframeComponents.form.destroy(),n.iframeComponents.form=null),async function({payload:e,state:t}){var n,a;n=t.form,a='<div class="rebilly-instruments-result"></div>',n.querySelector(".rebilly-instruments-content").innerHTML=a,t.loader.startLoading({id:"rebilly-instruments-result"}),t.loader.stopLoading({id:"express-purchase"});const r=document.querySelector(".rebilly-instruments-result"),{paymentMethodsUrl:o}=t.options._computed,i={options:t.options,mainStyleVars:t.mainStyleVars,[t.options.transactionType]:e},s=await new Ze({state:t,name:"rebilly-instruments-result",url:`${o}/result`,container:r,model:i});s.bindEventListeners({loader:t.loader}),t.iframeComponents.form=s}({payload:t,state:n});break;case"confirmation":!async function({payload:e,state:t}){var n,a;e.billingAddress&&t.summary&&t.data.isPurchase&&Ca({state:t,instrument:e});const r=t.iframeComponents.form,o={options:t.options,data:t.data.toPostmatesModel(),mainStyleVars:t.mainStyleVars,instrument:e};null==r||null===(n=r.component)||void 0===n||n.call("route",{name:"confirmation"}),null==r||null===(a=r.component)||void 0===a||a.call("update",o),document.querySelectorAll('[data-rebilly-instruments="express-method"]').forEach((e=>{e.style.overflow="hidden",e.style.height="0px"}))}({payload:t,state:n});break;default:throw new Error(`'${e}' not a supported component`)}}var vc=({state:e={}})=>{e.options.features.autoConfirmation&&gc({eventName:"instrument-ready",callback:t=>{var n;if("paypal"===(null===(n=t._raw)||void 0===n?void 0:n.method)&&!e.data.isShippingRequired)return"setup"===e.options.transactionType?ko({state:e,payload:t}):wo({state:e,payload:t}),void e.loader.startLoading({state:e,id:"express-purchase",message:"form.loaderMessages.processingPayment"});bc({componentName:"confirmation",payload:t,state:e})}}),e.options.features.autoResult&&gc({eventName:"setup"===e.options.transactionType?"setup-completed":"purchase-completed",callback:t=>{!function({state:e,payload:t}){bc({componentName:"result",payload:t,state:e})}({state:e,payload:t})}})};async function wc({state:e,setupFramepay:t=Ro,...n}={}){try{var a,r,o;e.data={},e.options={},e.form=To({element:"form",options:n}),e.summary=To({element:"summary",options:n}),e.form.style.maxWidth="750px",e.summary&&(e.summary.style.maxWidth="750px"),e.options=Ho({options:n}),e.storefront=Co({options:n}),e.mainStyleVars=Yo({options:n}),e.options.themeFramepay=(({state:e,options:t={}})=>{const n=hc(`\n ${e.mainStyleVars}\n ${t.css||""}\n `);return{base:{...yc(n,"input"),":hover":yc(n,"inputHover"),":focus":yc(n,"inputFocus"),"::placeholder":yc(n,"inputPlaceholder"),"::selection":yc(n,"inputSelection")},invalid:{...yc(n,"inputError"),":hover":yc(n,"inputErrorHover"),":focus":yc(n,"inputErrorFocus"),"::placeholder":yc(n,"inputErrorPlaceholder"),"::selection":yc(n,"inputErrorSelection")},buttons:{base:{...yc(n,"buttonSecondary"),":hover":yc(n,"buttonSecondaryHover"),":focus":yc(n,"buttonSecondaryActive")},active:{...yc(n,"button"),":hover":yc(n,"buttonHover"),":focus":yc(n,"buttonActive")}}}})({state:e,options:n}),e.loader.addDOMElement({el:e.form}),e.loader.addDOMElement({section:"summary",el:e.summary}),e.loader.startLoading({state:e,section:"summary",id:"rebilly-instruments-summary"}),e.loader.startLoading({state:e,id:"rebilly-instruments-form"});const[i]=await Promise.all([yo({state:e}),t(e)]);e.data=i,We.dataReady.dispatch(e.data),e.i18n=(({state:e={}})=>{var t,n;if("auto"===e.options.locale&&null!==(t=e.data.riskMetadata)&&void 0!==t&&null!==(n=t.browserData)&&void 0!==n&&n.language){const{browserData:{language:t}}=e.data.riskMetadata;e.options.locale=t}return e.translate.init(e.options.locale,e.options.i18n),Zo})({state:e}),!e.options.websiteId&&null!==(a=e.data.transaction)&&void 0!==a&&a.websiteId?e.options.websiteId=e.data.transaction.websiteId:!e.options.websiteId&&null!==(r=e.data.invoice)&&void 0!==r&&r.websiteId&&(e.options.websiteId=e.data.invoice.websiteId),e.data.transaction&&"setup"===(null===(o=e.data.transaction)||void 0===o?void 0:o.type)&&(e.options.transactionType="setup"),e.form&&Po({state:e}),e.summary&&async function({state:e}){const t={options:e.options,data:e.data.toPostmatesModel(),mainStyleVars:e.mainStyleVars},{paymentMethodsUrl:n}=e.options._computed,a=await new Ze({state:e,name:"rebilly-instruments-summary",url:`${n}/summary`,container:e.summary,model:t});a.bindEventListeners({loader:e.loader}),e.iframeComponents.summary=a}({state:e}),e.i18n({state:e}),e.hasMounted=!0,i.readyToPay.length||(e.loader.stopLoading({id:"rebilly-instruments-form"}),Xe(e.translate.getTranslation("form.error.noPaymentMethods")))}catch(e){throw Xe(e),e}vc({state:e})}async function kc({state:e}){var t;await(t=1e3,new Promise((e=>setTimeout(e,t)))),Object.values(e.iframeComponents).forEach((e=>null==e?void 0:e.destroy())),ze.removeAll(document),e.iframeComponents={summary:null,form:null},e.hasMounted=!1,e.summary&&(e.summary.textContent=""),e.form.textContent="",da(),e.loader.clearAll()}function xc({newOptions:e}){let t={};const n=Object.keys(e).some((e=>["items","money","invoiceId","transactionId"].includes(e)));return t=n?{items:null,money:null,invoiceId:null,transactionId:null}:t,t}var Ec,Ac,Sc=TypeError,Pc=function(e){return function(t,n,a,r){Wi(n);var o=Qi(t),i=Ei(o),s=dl(o),l=e?s-1:0,u=e?-1:1;if(a<2)for(;;){if(l in i){r=i[l],l+=u;break}if(l+=u,e?l<0:s<=l)throw Sc("Reduce of empty array with no initial value")}for(;e?l>=0:s>l;l+=u)l in i&&(r=n(r,i[l],l,o));return r}},Lc={left:Pc(!1),right:Pc(!0)},Tc="process"==wi(ni.process),Cc=Lc.left;Ol({target:"Array",proto:!0,forced:!(!!(Ac=[]["reduce"])&&ai((function(){Ac.call(null,Ec||function(){return 1},1)})))||!Tc&&Mi>79&&Mi<83},{reduce:function(e){var t=arguments.length;return Cc(this,e,t,t>1?arguments[1]:void 0)}});var Ic={en:{summary:{subTotal:"Sub Total",discounts:"Discounts",taxes:"Taxes",shipping:"Shipping",total:"Total"},form:{expressCheckout:"Express checkout",or:"Or",popupOverlayText:"Click here to show popup window",andMore:"and more",error:{noPaymentMethods:"No payment methods available for this transaction, please contact support."},loaderMessages:{processingPayment:"Processing payment instrument."}},paymentMethods:{"payment-card":"Payment card",ach:"Bank account"}}},$c={es:{summary:{subTotal:"Sub Total",discounts:"Descuentos",taxes:"Impuestos",shipping:"Envío",total:"Total"},form:{expressCheckout:"Chequeo rápido",or:"O pague con",andMore:"y más",popupOverlayText:"Haga clic aquí para mostrar la ventana emergente",error:{noPaymentMethods:"No hay métodos de pago disponibles para esta transacción, por favor, póngase en contacto con el servicio de asistencia."}},paymentMethods:{"payment-card":"Tarjeta de crédito",ach:"Cuenta bancaria"}}};class Oc{constructor(){this.locale="",this.items=[],this.languages={}}init(e,t){this.items=document.querySelectorAll("[data-rebilly-i18n]"),this.locale=this.getLocale(e),this.languages=Eo({},{...Ic,...$c},t)}translateItems(){return this.items=document.querySelectorAll("[data-rebilly-i18n]"),this.locale in this.languages&&this.items.forEach((e=>{const t=this.getTranslation(e.dataset.rebillyI18n,this.languages[this.locale]);t&&(e.innerHTML=t)}))}updateTranslationsToNewLocale(e){this.locale=e,this.translateItems()}getLocale(e=this.locale){return!e.includes("-")||e in this.languages?e:(e=e.replace(/[-._]\w+$/gi,""),this.getLocale(e))}translateItem(e){const t=this.getLocale();return this.getTranslation(e.dataset.rebillyI18n,this.languages[t])}getTranslation(e,t=this.languages[this.locale]){return e.split(".").reduce(((e,t)=>null==e?void 0:e[t]),t)}}class _c{constructor(){this.options=null,this.data={},this.mountingPoints=null,this.storefront=null,this.form=null,this.summary=null,this.loader=new f,this.translate=new Oc,this.iframeComponents={summary:null,form:null},this.hasMounted=!1}}var Fc=new class{constructor(){this.state=new _c}async mount(e){await wc({state:this.state,...e})}async destroy(){await kc({state:this.state})}async update(e){await async function({state:e,newOptions:t={}}){if(!e.hasMounted)throw Error("Update method cannot be called before mounting instruments");const n={...e.options,...xc({newOptions:t})},a=Eo({...n},t);await kc({state:e}),wc({state:e,form:e.form,summary:e.summary,...a})}({state:this.state,newOptions:e})}async purchase(e){await wo({state:this.state,payload:e})}async setup(e){await ko({state:this.state,payload:e})}async show(e,t){await bc({state:this.state,componentName:e,payload:t})}get version(){return"RebillyInstruments Ver.3.22.0-beta.0"}on(e,t){gc({state:this.state,eventName:e,callback:t})}};export{Fc as default};
|
|
65
|
+
*/var F=function(e,t){return null===e||isNaN(e)||"string"==typeof e?t:e},H=function(e,t,n){var a;void 0===e&&(e="#000"),void 0===t&&(t="base"),void 0===n&&(n=0),a=[[0,0,0],1,t,n],this.rgb=a[0],this.alpha=a[1],this.type=a[2],this.weight=a[3];var r=null===e?"#000":e;if("string"!=typeof r)throw new TypeError("Input should be a string: "+r);var o=P(r);if(!o)throw new Error("Unable to parse color from string: "+r);return this["_setFrom"+o.type.toUpperCase()](o.values.concat([o.alpha]))},R={hex:{configurable:!0}};return R.hex.get=function(){return this.hexString().replace(/^#/,"")},H.prototype.setColor=function(e){var t=P(e);return t?this["_setFrom"+t.type.toUpperCase()](t.values.concat([t.alpha])):null},H.prototype.tint=function(e,t){return void 0===t&&(t=F(e,50)),new H("rgb("+_("#fff",this.rgbString(),t).rgba+")","tint",t)},H.prototype.shade=function(e,t){return void 0===t&&(t=F(e,50)),new H("rgb("+_("#000",this.rgbString(),t).rgba+")","shade",t)},H.prototype.tints=function(e,t){var n=this;return void 0===t&&(t=F(e,10)),Array.from({length:100/t},(function(e,a){return n.tint((a+1)*t)}))},H.prototype.shades=function(e,t){var n=this;return void 0===t&&(t=F(e,10)),Array.from({length:100/t},(function(e,a){return n.shade((a+1)*t)}))},H.prototype.all=function(e){return void 0===e&&(e=10),this.tints(e).reverse().concat([Object.assign(this)],this.shades(e))},H.prototype.hexString=function(){return I(this.alpha>=1?this.rgb:this.rgb.concat([this.alpha]))},H.prototype.rgbString=function(){var e=(this.alpha>=1?this.rgb:this.rgb.concat([this.alpha])).join(", ");return(this.alpha>=1?"rgb":"rgba")+"("+e+")"},H.prototype.getBrightness=function(){return Math.round(this.rgb.reduce((function(e,t){return e+t}))/765*100)},H.prototype._setFromRGB=function(e){var t;return t=[[e[0],e[1],e[2]],e[3]],this.rgb=t[0],this.alpha=t[1],this},H.prototype._setFromHSL=function(e){var t,n=e[0],a=e[1],r=e[2],o=e[3];return t=[L([n,a,r]).map(Math.round),o],this.rgb=t[0],this.alpha=t[1],this},Object.defineProperties(H.prototype,R),H.VERSION="v2.0.0",H}()})),jo=Mo;const No=e=>new jo(e);function Bo(e,t=1){if(null===e)return e;const n=No(e);return n.alpha=t,n.rgbString()}const qo=e=>Bo(e,.5),Do=(e,t)=>{if(null===e)return e;return No(e).shade(t).hexString()};class zo{constructor(e){var t,n,a;a=["none","hidden","dotted","dashed","solid","double","groove","ridge","inset","outset","initial","inherit"],(n="allStyles")in(t=this)?Object.defineProperty(t,n,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[n]=a,this.str=e||"";const r=this.allStyles.find((e=>this.str.includes(e))),o=this.str.split(r).map((e=>e.trim()));this.border=[o[0],r,o[1]]}get stylePosition(){let e=0;return 3===this.border.length?e=1:2===this.border.length&&(e=this.allStyles.includes(this.border[0])?0:1),e}updateColor(e){return this.border[this.stylePosition+1]=e,this}get value(){return this.border.join(" ")}}const Uo={colorPrimary:{fallback:{type:"static",value:"#0044D4"}},colorBackground:{fallback:{type:"static",value:"#FFFFFF"}},colorText:{fallback:{type:"static",value:"#0D2B3E"}},colorMutedText:{fallback:{type:"func",value:e=>qo(e.colorText)}},colorMutedBorder:{fallback:{type:"func",value:e=>e.colorTextProvided?Bo(e.colorText,.25):"#DCE3EA"}},colorDanger:{fallback:{type:"static",value:"#CD5C5C"}},fontFamily:{fallback:{type:"static",value:"Avenir, Helvetica, Arial, sans-serif"}},fontSizeBase:{fallback:{type:"static",value:"16px"}},fontWeightBase:{fallback:{type:"static",value:"500"}},fontLineHeightBase:{fallback:{type:"func",value:e=>`calc(${e.fontSizeBase} * 1.5)`}},fontSmooth:{fallback:{type:"static",value:"auto"}},borderRadius:{fallback:{type:"static",value:"6px"}},headingFontFamily:{fallback:{type:"variable",value:"fontFamily"}},headingFontWeight:{fallback:{type:"static",value:"600"}},headingColorText:{fallback:{type:"variable",value:"colorText"}},buttonColorBackground:{fallback:{type:"variable",value:"colorPrimary"}},buttonColorText:{fallback:{type:"static",value:"#FFFFFF"}},buttonFontFamily:{fallback:{type:"variable",value:"fontFamily"}},buttonFontSize:{fallback:{type:"variable",value:"fontSizeBase"}},buttonFontLineHeight:{fallback:{type:"variable",value:"fontLineHeightBase"}},buttonFontWeight:{fallback:{type:"variable",value:"fontWeightBase"}},buttonBorder:{fallback:{type:"static",value:"1px solid transparent"}},buttonBorderRadius:{fallback:{type:"variable",value:"borderRadius"}},buttonBoxShadow:{fallback:{type:"static",value:"none"}},buttonSecondaryColorBackground:{fallback:{type:"variable",value:"colorBackground"}},buttonSecondaryColorText:{fallback:{type:"variable",value:"colorPrimary"}},buttonSecondaryFontFamily:{fallback:{type:"variable",value:"fontFamily"}},buttonSecondaryFontSize:{fallback:{type:"variable",value:"fontSizeBase"}},buttonSecondaryFontLineHeight:{fallback:{type:"variable",value:"fontLineHeightBase"}},buttonSecondaryFontWeight:{fallback:{type:"variable",value:"fontWeightBase"}},buttonSecondaryBorder:{fallback:{type:"func",value:e=>`1px solid ${e.colorPrimary}`}},buttonSecondaryBorderRadius:{fallback:{type:"variable",value:"borderRadius"}},buttonSecondaryBoxShadow:{fallback:{type:"static",value:"none"}},buttonHoverColorBackground:{fallback:{type:"func",value:e=>e.buttonColorBackgroundProvided?Do(e.buttonColorBackground,20):Do(e.colorPrimary,20)}},buttonHoverColorText:{fallback:{type:"variable",value:"buttonColorText"}},buttonHoverFontFamily:{fallback:{type:"variable",value:"buttonFontFamily"}},buttonHoverFontSize:{fallback:{type:"variable",value:"buttonFontSize"}},buttonHoverFontLineHeight:{fallback:{type:"variable",value:"buttonFontLineHeight"}},buttonHoverFontWeight:{fallback:{type:"variable",value:"buttonFontWeight"}},buttonHoverBorder:{fallback:{type:"func",value:e=>{if(e.buttonBorderProvided)return e.buttonBorder;return new zo(e.buttonBorder).updateColor(e.buttonHoverColorBackground).value}}},buttonHoverBorderRadius:{fallback:{type:"variable",value:"buttonBorderRadius"}},buttonHoverBoxShadow:{fallback:{type:"variable",value:"buttonBoxShadow"}},buttonSecondaryHoverColorBackground:{fallback:{type:"variable",value:"colorBackground"}},buttonSecondaryHoverColorText:{fallback:{type:"variable",value:"buttonSecondaryColorText"}},buttonSecondaryHoverFontFamily:{fallback:{type:"variable",value:"buttonSecondaryFontFamily"}},buttonSecondaryHoverFontSize:{fallback:{type:"variable",value:"buttonSecondaryFontSize"}},buttonSecondaryHoverFontLineHeight:{fallback:{type:"variable",value:"buttonSecondaryFontLineHeight"}},buttonSecondaryHoverFontWeight:{fallback:{type:"variable",value:"buttonSecondaryFontWeight"}},buttonSecondaryHoverBorder:{fallback:{type:"variable",value:"buttonSecondaryBorder"}},buttonSecondaryHoverBorderRadius:{fallback:{type:"variable",value:"buttonSecondaryBorderRadius"}},buttonSecondaryHoverBoxShadow:{fallback:{type:"variable",value:"buttonSecondaryBoxShadow"}},buttonActiveColorBackground:{fallback:{type:"variable",value:"buttonHoverColorBackground"}},buttonActiveColorText:{fallback:{type:"variable",value:"buttonHoverColorText"}},buttonActiveFontFamily:{fallback:{type:"variable",value:"buttonHoverFontFamily"}},buttonActiveFontSize:{fallback:{type:"variable",value:"buttonHoverFontSize"}},buttonActiveFontLineHeight:{fallback:{type:"variable",value:"buttonHoverFontLineHeight"}},buttonActiveFontWeight:{fallback:{type:"variable",value:"buttonHoverFontWeight"}},buttonActiveBorder:{fallback:{type:"variable",value:"buttonHoverBorder"}},buttonActiveBorderRadius:{fallback:{type:"variable",value:"buttonHoverBorderRadius"}},buttonActiveBoxShadow:{fallback:{type:"variable",value:"buttonHoverBoxShadow"}},buttonSecondaryActiveColorBackground:{fallback:{type:"variable",value:"buttonSecondaryHoverColorBackground"}},buttonSecondaryActiveColorText:{fallback:{type:"variable",value:"buttonSecondaryHoverColorText"}},buttonSecondaryActiveFontFamily:{fallback:{type:"variable",value:"buttonSecondaryHoverFontFamily"}},buttonSecondaryActiveFontSize:{fallback:{type:"variable",value:"buttonSecondaryHoverFontSize"}},buttonSecondaryActiveFontLineHeight:{fallback:{type:"variable",value:"buttonSecondaryHoverFontLineHeight"}},buttonSecondaryActiveFontWeight:{fallback:{type:"variable",value:"buttonSecondaryHoverFontWeight"}},buttonSecondaryActiveBorder:{fallback:{type:"variable",value:"buttonSecondaryHoverBorder"}},buttonSecondaryActiveBorderRadius:{fallback:{type:"variable",value:"buttonSecondaryHoverBorderRadius"}},buttonSecondaryActiveBoxShadow:{fallback:{type:"variable",value:"buttonSecondaryHoverBoxShadow"}},inputColorBackground:{fallback:{type:"static",value:"transparent"}},inputColorText:{fallback:{type:"variable",value:"colorText"}},inputFontFamily:{fallback:{type:"variable",value:"fontFamily"}},inputFontSize:{fallback:{type:"variable",value:"fontSizeBase"}},inputFontLineHeight:{fallback:{type:"variable",value:"fontLineHeightBase"}},inputFontWeight:{fallback:{type:"variable",value:"fontWeightBase"}},inputBorder:{fallback:{type:"func",value:e=>`1px solid ${Do(e.colorMutedBorder,4)}`}},inputBorderRadius:{fallback:{type:"variable",value:"borderRadius"}},inputBoxShadow:{fallback:{type:"static",value:"none"}},inputHoverColorBackground:{fallback:{type:"variable",value:"inputColorBackground"}},inputHoverColorText:{fallback:{type:"variable",value:"inputColorText"}},inputHoverFontFamily:{fallback:{type:"variable",value:"inputFontFamily"}},inputHoverFontSize:{fallback:{type:"variable",value:"inputFontSize"}},inputHoverFontLineHeight:{fallback:{type:"variable",value:"inputFontLineHeight"}},inputHoverFontWeight:{fallback:{type:"variable",value:"inputFontWeight"}},inputHoverBorder:{fallback:{type:"variable",value:"inputBorder"}},inputHoverBorderRadius:{fallback:{type:"variable",value:"inputBorderRadius"}},inputHoverBoxShadow:{fallback:{type:"variable",value:"inputBoxShadow"}},inputFocusColorBackground:{fallback:{type:"variable",value:"inputHoverColorBackground"}},inputFocusColorText:{fallback:{type:"variable",value:"inputHoverColorText"}},inputFocusFontFamily:{fallback:{type:"variable",value:"inputHoverFontFamily"}},inputFocusFontSize:{fallback:{type:"variable",value:"inputHoverFontSize"}},inputFocusFontLineHeight:{fallback:{type:"variable",value:"inputHoverFontLineHeight"}},inputFocusFontWeight:{fallback:{type:"variable",value:"inputHoverFontWeight"}},inputFocusBorder:{fallback:{type:"func",value:e=>{if(e.inputHoverBorderProvided)return e.inputHoverBorder;return new zo(e.inputBorder).updateColor(e.colorPrimary).value}}},inputFocusBorderRadius:{fallback:{type:"variable",value:"inputHoverBorderRadius"}},inputFocusBoxShadow:{fallback:{type:"func",value:e=>`0 0 0 1px ${e.colorPrimary}`}},inputPlaceholderColorText:{fallback:{type:"func",value:e=>e.inputColorTextProvided?qo(e.inputColorText):e.colorMutedText}},inputPlaceholderFontFamily:{fallback:{type:"variable",value:"inputFontFamily"}},inputPlaceholderFontSize:{fallback:{type:"variable",value:"inputFontSize"}},inputPlaceholderFontLineHeight:{fallback:{type:"variable",value:"inputFontLineHeight"}},inputPlaceholderFontWeight:{fallback:{type:"variable",value:"inputFontWeight"}},inputSelectionColorText:{fallback:{type:"static",value:"initial"}},inputSelectionColorBackground:{fallback:{type:"static",value:"highlight"}},inputErrorColorBackground:{fallback:{type:"variable",value:"inputColorBackground"}},inputErrorColorText:{fallback:{type:"variable",value:"colorDanger"}},inputErrorFontFamily:{fallback:{type:"variable",value:"inputFontFamily"}},inputErrorFontSize:{fallback:{type:"variable",value:"inputFontSize"}},inputErrorFontLineHeight:{fallback:{type:"variable",value:"inputFontLineHeight"}},inputErrorFontWeight:{fallback:{type:"variable",value:"inputFontWeight"}},inputErrorBorder:{fallback:{type:"func",value:e=>{if(e.inputBorderProvided){return new zo(e.inputBorder).updateColor(e.colorDanger).value}return`1px solid ${e.colorDanger}`}}},inputErrorBorderRadius:{fallback:{type:"variable",value:"inputBorderRadius"}},inputErrorBoxShadow:{fallback:{type:"variable",value:"inputBoxShadow"}},inputErrorHoverColorBackground:{fallback:{type:"variable",value:"inputErrorColorBackground"}},inputErrorHoverColorText:{fallback:{type:"variable",value:"inputErrorColorText"}},inputErrorHoverFontFamily:{fallback:{type:"variable",value:"inputErrorFontFamily"}},inputErrorHoverFontSize:{fallback:{type:"variable",value:"inputErrorFontSize"}},inputErrorHoverFontLineHeight:{fallback:{type:"variable",value:"inputErrorFontLineHeight"}},inputErrorHoverFontWeight:{fallback:{type:"variable",value:"inputErrorFontWeight"}},inputErrorHoverBorder:{fallback:{type:"variable",value:"inputErrorBorder"}},inputErrorHoverBorderRadius:{fallback:{type:"variable",value:"inputErrorBorderRadius"}},inputErrorHoverBoxShadow:{fallback:{type:"variable",value:"inputErrorBoxShadow"}},inputErrorFocusColorBackground:{fallback:{type:"variable",value:"inputErrorHoverColorBackground"}},inputErrorFocusColorText:{fallback:{type:"variable",value:"inputErrorHoverColorText"}},inputErrorFocusFontFamily:{fallback:{type:"variable",value:"inputErrorHoverFontFamily"}},inputErrorFocusFontSize:{fallback:{type:"variable",value:"inputErrorHoverFontSize"}},inputErrorFocusFontLineHeight:{fallback:{type:"variable",value:"inputErrorHoverFontLineHeight"}},inputErrorFocusFontWeight:{fallback:{type:"variable",value:"inputErrorHoverFontWeight"}},inputErrorFocusBorder:{fallback:{type:"variable",value:"inputErrorHoverBorder"}},inputErrorFocusBorderRadius:{fallback:{type:"variable",value:"inputErrorHoverBorderRadius"}},inputErrorFocusBoxShadow:{fallback:{type:"variable",value:"inputErrorHoverBoxShadow"}},inputErrorPlaceholderColorText:{fallback:{type:"func",value:e=>e.inputErrorColorTextProvided?qo(e.inputErrorColorText):qo(e.colorDanger)}},inputErrorPlaceholderFontFamily:{fallback:{type:"variable",value:"inputPlaceholderFontFamily"}},inputErrorPlaceholderFontSize:{fallback:{type:"variable",value:"inputPlaceholderFontSize"}},inputErrorPlaceholderFontLineHeight:{fallback:{type:"variable",value:"inputPlaceholderFontLineHeight"}},inputErrorPlaceholderFontWeight:{fallback:{type:"variable",value:"inputPlaceholderFontWeight"}},inputErrorSelectionColorText:{fallback:{type:"variable",value:"inputSelectionColorText"}},inputErrorSelectionColorBackground:{fallback:{type:"variable",value:"inputSelectionColorBackground"}},labels:{fallback:{type:"static",value:"floating"}}};var Wo,Go,Vo,Ko=new Proxy(Uo,{get(e,t,n){if(t in e){if(e[t].value)return e[t].value;const{type:a,value:r}=e[t].fallback;if("static"===a)return r;if("variable"===a)return`var(--rebilly-${r})`;if("func"===a)return r(n)}if(t.endsWith("Provided")){const n=t.replace("Provided","");if(n in e)return e[n].isProvided}},set:(e,t,n)=>{if(!(t in e)||!n)throw new Error(`Invalid theme option provided: ${t}`);return e[t].value=n,e[t].isProvided=!0,!0}});class Xo{constructor(e={}){this.overrides=e,this.theme=Ko}overrideTheme(){Object.keys(this.overrides).forEach((e=>{this.theme[e]=this.overrides[e]}))}get cssVars(){return Object.keys(this.theme).filter((e=>!Xo.nonCssProperties.includes(e))).map(((e,t)=>`${t?" ":""}--rebilly-${e}: ${this.theme[e]};`)).join("\n")}build(){return this.overrideTheme(),{cssVars:this.cssVars}}}Vo=["labels"],(Go="nonCssProperties")in(Wo=Xo)?Object.defineProperty(Wo,Go,{value:Vo,enumerable:!0,configurable:!0,writable:!0}):Wo[Go]=Vo;function Jo(e){let t=e;return t=t.replace(/\/\*(?:(?!\*\/)[\s\S])*\*\/|[\r\n\t]+/g,""),t=t.replace(/\s{2,}/g," "),t=t.replace(/\s([{:}])\s/g,"$1"),t=t.replace(/([;,])\s/g,"$1"),t=t.replace(/\s!/g,"!"),t}var Yo=({options:{theme:e={},css:t}}={})=>{const n=(e=>{const t=`\n ${(e=>`\n/* Instruments 'global' variables\n------------------------------------------------------------ */\n:root {\n ${e.cssVars}\n\n --rebilly-fontWeight400: 400;\n --rebilly-fontWeight500: 500;\n --rebilly-fontWeight600: 600;\n --rebilly-fontScaleFactor: 1.5;\n --rebilly-fontScaleFactorS: 0.875;\n --rebilly-fontSizeS: calc(var(--rebilly-fontSizeBase) * var(--rebilly-fontScaleFactorS));\n --rebilly-fontLineHeightS: calc(var(--rebilly-fontSizeS) * 1);\n\n --rebilly-fontSizeL: calc(var(--rebilly-fontSizeBase) * var(--rebilly-fontScaleFactor));\n --rebilly-fontLineHeightL: calc(var(--rebilly-fontLineHeightBase) * 2);\n --rebilly-fontMarginTopL: 0;\n --rebilly-fontMarginBottomL: var(--rebilly-fontLineHeightBase);\n\n --rebilly-spacing2xs: calc(var(--rebilly-fontLineHeightBase) / 6);\n --rebilly-spacingXs: calc(var(--rebilly-fontLineHeightBase) / 4);\n --rebilly-spacingS: calc(var(--rebilly-fontLineHeightBase) / 2);\n --rebilly-spacingM: var(--rebilly-fontLineHeightBase);\n --rebilly-spacingL: calc(var(--rebilly-fontLineHeightBase) * 2);\n --rebilly-spacingXl: calc(var(--rebilly-fontLineHeightBase) * 4);\n\n --rebilly-spacingFormElementMinHeight: calc(var(--rebilly-spacingM) * 1.83333);\n\n --rebilly-summaryLoaderMinHeight: var(--rebilly-fontLineHeightBase);\n --rebilly-methodLoaderMinHeight: calc((4 * var(--rebilly-spacingFormElementMinHeight)) + (2 * var(--rebilly-fontLineHeightBase)) + (2 * var(--rebilly-spacingM)) + var(--rebilly-spacing2xs) + var(--rebilly-fontSizeS) + calc(2 * (var(--rebilly-spacingXs) + var(--rebilly-spacingS))) + var(--rebilly-spacingL));\n}\n\n/* Views. Method Selector\n------------------------------------------------------------ */\n.rebilly-instruments-method-selector.has-express-compact {\n padding-top: var(--rebilly-spacingS);\n}\n\n/* Express Methods\n------------------------------------------------------------ */\n@-webkit-keyframes rebillyExpressShine {\n to {\n background-position-x: -200%;\n }\n}\n@keyframes rebillyExpressShine {\n to {\n background-position-x: -200%;\n }\n}\n\n.rebilly-instruments-express-methods { padding: 2px; }\n\n.rebilly-instruments-express-methods.is-compact {\n border: 1px solid var(--rebilly-colorMutedBorder);\n padding: var(--rebilly-spacingS);\n padding-top: calc(var(--rebilly-spacingXs) + var(--rebilly-spacingS));\n padding-top: calc(var(--rebilly-fontSizeBase) + var(--rebilly-spacing2xs));\n border-radius: var(--rebilly-borderRadius);\n position: relative;\n}\n\n.rebilly-instruments-express-methods .rebilly-instruments-iframe {\n display: block;\n margin-bottom: 0;\n height: var(--rebilly-spacingFormElementMinHeight);\n}\n\n.rebilly-instruments-express-methods .rebilly-instruments-express-methods-container > * {\n border-radius: 6px;\n margin-bottom: var(--rebilly-spacingS);\n background: linear-gradient(110deg, var(--rebilly-colorMutedBorder) 0%, var(--rebilly-colorBackground) 25%, var(--rebilly-colorMutedBorder) 50%);\n background-size: 200% 100%;\n -webkit-animation: 1.5s rebillyExpressShine linear infinite;\n animation: 1.5s rebillyExpressShine linear infinite;\n height: 44px;\n}\n\n.rebilly-instruments-express-methods .rebilly-instruments-express-methods-container > *:last-child {\n margin: 0;\n}\n\n.rebilly-instruments-express-methods.is-compact .rebilly-instruments-express-methods-container {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-pack: center;\n -ms-flex-pack: center;\n justify-content: center;\n}\n\n.rebilly-instruments-express-methods.is-compact .rebilly-instruments-express-methods-container > * {\n -webkit-box-flex: 1;\n -ms-flex: 1 1 0px;\n flex: 1 1 0px;\n max-width: 260px;\n margin: 0 var(--rebilly-spacingXs);\n}\n\n.rebilly-instruments-express-methods.is-compact .rebilly-instruments-express-methods-container > *:first-child {\n margin-left: 0;\n}\n\n.rebilly-instruments-express-methods.is-compact .rebilly-instruments-express-methods-container > *:last-child {\n margin-right: 0;\n}\n\n.rebilly-instruments-express-methods .rebilly-instruments-express-methods-label {\n display: none;\n}\n\n.rebilly-instruments-express-methods.is-compact .rebilly-instruments-express-methods-label {\n position: absolute;\n font-family: var(--rebilly-fontFamily);\n top: 0; left: 50%;\n -webkit-transform: translateX(-50%) translateY(-50%);\n transform: translateX(-50%) translateY(-50%);\n color: var(--rebilly-colorText);\n padding: var(--rebilly-spacing2xs) var(--rebilly-spacingM);\n line-height: 1;\n background: var(--rebilly-colorBackground);\n display: inline-block;\n font-weight: var(--rebilly-fontWeightBase);\n min-height: auto;\n margin: 0;\n white-space: nowrap;\n}\n\n@media (max-width: 600px) {\n .rebilly-instruments-express-methods.is-compact .rebilly-instruments-express-methods-container {\n -webkit-box-orient: vertical;\n -webkit-box-direction: normal;\n -ms-flex-direction: column;\n flex-direction: column;\n }\n\n .rebilly-instruments-express-methods.is-compact .rebilly-instruments-express-methods-container > * {\n max-width: 100%;\n margin: 0 0 var(--rebilly-spacingS);\n }\n \n .rebilly-instruments-express-methods.is-compact .rebilly-instruments-express-methods-container > *:last-child {\n margin: 0;\n }\n}\n\n/* Components. Divider\n------------------------------------------------------------ */\n.rebilly-instruments-divider {\n line-height: var(--rebilly-fontLineHeightBase);\n padding: var(--rebilly-spacingM) 0;\n margin: 0;\n position: relative;\n outline: 0;\n border: 0;\n text-align: center;\n font-family: var(--rebilly-fontFamily);\n}\n\n.rebilly-instruments-divider-s { padding: var(--rebilly-spacingS) 0; }\n.rebilly-instruments-divider-xs { padding: var(--rebilly-spacingXs) 0; }\n\n.rebilly-instruments-divider::before {\n background: var(--rebilly-colorMutedBorder);\n content: '';\n position: absolute;\n left: 0;\n top: 50%;\n width: 100%;\n height: 1px;\n}\n\n.rebilly-instruments-divider .rebilly-instruments-divider-label {\n color: var(--rebilly-colorMutedText);\n font-weight: var(--rebilly-fontWeightBase);\n padding: 0 var(--rebilly-spacingM);\n line-height: var(--rebilly-fontLineHeightS);\n background-color: var(--rebilly-colorBackground);\n font-size: var(--rebilly-fontSizeS);\n position: relative;\n display: inline-block;\n}\n\n/* Vendor, Postmate\n------------------------------------------------------------ */\n.rebilly-instruments-iframe {\n border: none;\n width: 100%;\n height: 0;\n padding: 0;\n}\n\n.rebilly-instruments-iframe-overlay {\n top: -2px;\n left: -2px;\n width: calc(100vw + 2px);\n height: 100vh;\n min-height: calc(100vh + 4px);\n position: fixed;\n z-index: 99999999999999;\n}\n\n/* Views. Modal\n------------------------------------------------------------ */\n.rebilly-instruments-modal-overlay {\n position: fixed;\n top: 0;\n left: 0;\n overflow-x: hidden;\n overflow-y: auto;\n z-index: 1055;\n padding: 30px;\n width: 100%;\n height: 100%;\n margin: 0;\n padding: 0;\n -webkit-transition: all 0.12s ease-in-out;\n transition: all 0.12s ease-in-out;\n background-color: rgba(0,0,0,0.7);\n opacity: 0\n}\n\n.rebilly-instruments-modal-overlay.is-visible {\n opacity: 1;\n}\n\n.rebilly-instruments-modal-container {\n -webkit-transition: all .24s ease-in-out;\n transition: all .24s ease-in-out;\n position: relative;\n max-width: 750px;\n background: var(--rebilly-colorBackground);\n margin: 50px auto 20px;\n -webkit-box-shadow: 0 19px 38px rgba(0,0,0,0.20), 0 15px 12px rgba(0,0,0,0.12);\n box-shadow: 0 19px 38px rgba(0,0,0,0.20), 0 15px 12px rgba(0,0,0,0.12);\n border-radius: 4px;\n -webkit-transform: translateY(-50px);\n transform: translateY(-50px);\n opacity: 0;\n}\n\n.rebilly-instruments-modal-container.is-visible {\n -webkit-transform: translateY(0);\n transform: translateY(0);\n opacity: 1;\n}\n\n.rebilly-instruments-modal-container.is-redirect {\n max-width: 60vw;\n width: auto;\n}\n\n.rebilly-instruments-modal-content {\n -webkit-transition: all .15s;\n transition: all .15s;\n padding: 20px;\n overflow: hidden;\n background-color: var(--rebilly-colorBackground);\n text-align: center;\n border-radius: 4px;\n}\n\n.rebilly-instruments-modal-content .rebilly-instruments-iframe {\n -webkit-transition: all .15s;\n transition: all .15s;\n height: auto;\n min-height: 360px;\n}\n\n.rebilly-instruments-modal-container.is-redirect .rebilly-instruments-modal-content {\n padding: 0;\n}\n\n.rebilly-instruments-modal-close {\n position: absolute;\n width: 30px;\n height: 30px;\n top: -40px;\n right: 0;\n fill: #FFF;\n cursor: pointer;\n}\n\n.rebilly-instruments-modal-close:hover{\n color: #000;\n}\n\n@media screen and (max-width: 480px) {\n .rebilly-instruments-modal-container.is-redirect {\n max-width: 96vw;\n margin: 20px auto 20px;\n }\n}\n\n/* Components. Loader\n------------------------------------------------------------ */\n.rebilly-instruments-loader {\n text-align: left;\n position: absolute;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n display: none;\n background-color: var(--rebilly-colorBackground);\n z-index: 1000;\n -webkit-transition: all 200ms;\n transition: all 200ms;\n border-radius: var(--rebilly-borderRadius);\n}\n\n.rebilly-instruments-loader.is-active {\n display: block;\n}\n\n/* Type */\n.rebilly-instruments-loader p {\n color: var(--rebilly-colorText);\n display: inline-block;\n margin: 0;\n font-weight: var(--rebilly-fontWeightBase);\n font-size: var(--rebilly-fontSizeBase);\n line-height: var(--rebilly-fontLineHeightBase);\n}\n\n.rebilly-instruments-loader small {\n color: var(--rebilly-colorText);\n display: inline-block;\n margin: 0;\n font-size: var(--rebilly-fontSizeS);\n line-height: 1;\n}\n\n/* Summary */\n.rebilly-instruments-summary-loader-total p.total {\n font-family: var(--rebilly-fontFamily);\n font-size: var(--rebilly-fontSizeL);\n font-weight: var(--rebilly-headingFontWeight);\n}\n\n/* Methods */\n.rebilly-instruments-methods-loader-card-icon {\n width: 32px;\n height: 22px;\n margin-left: var(--rebilly-spacing2xs);\n margin-bottom: var(--rebilly-spacing2xs);\n}\n\n.rebilly-instruments-methods-loader-form-fields { margin: calc(var(--rebilly-spacingXs) + var(--rebilly-spacingS)) 0; }\n\n/* Spinner */\n.rebilly-instruments-loader-spinner {\n top: 50%;\n left: 50%;\n position: absolute;\n -webkit-transform: translate(-50%, -50%);\n transform: translate(-50%, -50%);\n border: 2px solid transparent;\n border-top: 2px solid var(--rebilly-colorPrimary);\n border-radius: 50%;\n width: var(--rebilly-fontLineHeightBase);\n height: var(--rebilly-fontLineHeightBase);\n margin-top: calc(-1 * var(--rebilly-fontLineHeightBase) / 2);\n margin-left: calc(-1 * var(--rebilly-fontLineHeightBase) / 2);\n -webkit-animation: spin 0.5s ease infinite;\n animation: spin 0.5s ease infinite;\n}\n\n@-webkit-keyframes spin {\n 0% { -webkit-transform: rotate(0deg); transform: rotate(0deg); }\n 100% { -webkit-transform: rotate(360deg); transform: rotate(360deg); }\n}\n\n@keyframes spin {\n 0% { -webkit-transform: rotate(0deg); transform: rotate(0deg); }\n 100% { -webkit-transform: rotate(360deg); transform: rotate(360deg); }\n}\n\n/* Utils */\n.rebilly-instruments-loader-display-flex { display: -webkit-box; display: -ms-flexbox; display: flex; }\n.rebilly-instruments-loader-align-center { -webkit-box-align: center; -ms-flex-align: center; align-items: center; }\n.rebilly-instruments-loader-justify-space-between { -webkit-box-pack: justify; -ms-flex-pack: justify; justify-content: space-between; }\n.rebilly-instruments-loader-justify-end { -webkit-box-pack: end; -ms-flex-pack: end; justify-content: flex-end; }\n\n.is-el-loading {\n position: relative;\n color: transparent!important;\n}\n\n.is-el-loading::before {\n position: absolute;\n content: '';\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n background: linear-gradient(110deg, var(--rebilly-colorMutedBorder) 0%, var(--rebilly-colorBackground) 25%, var(--rebilly-colorMutedBorder) 50%);\n background-size: 200% 100%;\n -webkit-animation: 1.5s rebillyExpressShine linear infinite;\n animation: 1.5s rebillyExpressShine linear infinite;\n border-radius: var(--rebilly-borderRadius);\n}\n\n.rebilly-instruments-loader-form-el {\n width: 100%;\n min-height: var(--rebilly-spacingFormElementMinHeight);\n}\n\n.rebilly-instruments-loader-form-label {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n margin-bottom: var(--rebilly-spacing2xs);\n}\n\n.rebilly-instruments-loader-form-el.is-button {\n margin-top: var(--rebilly-spacingL);\n text-align: center;\n font-size: var(--rebilly-buttonFontSize);\n font-family: var(--rebilly-buttonFontFamily);\n line-height: var(--rebilly-buttonFontLineHeight);\n padding: var(--rebilly-spacingS);\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n background: var(--rebilly-buttonColorBackground);\n color: transparent;\n border-radius: var(--rebilly-buttonBorderRadius);\n font-weight: var(--rebilly-buttonFontWeight);\n border: var(--rebilly-buttonBorder);\n -webkit-box-shadow: var(--rebilly-buttonBoxShadow);\n box-shadow: var(--rebilly-buttonBoxShadow);\n outline: none;\n cursor: not-allowed;\n opacity: 0.6; \n}\n\n.rebilly-instruments-methods-loader-card-icon.is-el-loading::before {\n border-radius: calc(var(--rebilly-borderRadius) / 2);\n}\n\n/* Error\n------------------------------------------------------------ */\n.rebilly-instruments-error-card {\n border: 1px solid var(--rebilly-colorDanger);\n border-radius: var(--rebilly-borderRadius);\n text-align: left;\n padding: var(--rebilly-spacingS);\n margin-bottom: var(--rebilly-spacingL);\n}\n\n.rebilly-instruments-error-card-header {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n -webkit-box-pack: justify;\n -ms-flex-pack: justify;\n justify-content: space-between;\n width: 100%;\n -webkit-box-align: start;\n -ms-flex-align: start;\n align-items: flex-start;\n}\n\n.rebilly-instruments-error-card-title {\n font-weight: var(--rebilly-fontWeightBase);\n font-size: var(--rebilly-fontSizeBase);\n line-height: var(--rebilly-fontLineHeightBase);\n font-family: var(--rebilly-headingFontFamily);\n margin: 0 0 var(--rebilly-spacingS);\n color: var(--rebilly-colorDanger);\n}\n\n.rebilly-instruments-error-card-close-button {\n cursor: pointer;\n background: transparent;\n border: none;\n padding: 0;\n}\n\n.rebilly-instruments-error-card-close-button svg {\n width: var(--rebilly-fontLineHeightBase);\n height: var(--rebilly-fontLineHeightBase);\n fill: var(--rebilly-colorText);\n}\n\n.rebilly-instruments-error-card-details {\n padding: 0;\n margin: 0;\n list-style: none;\n}\n\n.rebilly-instruments-error-card-details li,\n.rebilly-instruments-error-card-message {\n color: var(--rebilly-colorText);\n margin: 0;\n font-weight: var(--rebilly-fontWeightBase);\n font-size: var(--rebilly-fontSizeBase);\n line-height: var(--rebilly-fontLineHeightBase);\n}\n`)(new Xo(e).build())}\n `;return t})(e||{});return Lo({element:"style",attributes:{type:"text/css"},content:Jo(n),target:"head"}),t&&Lo({element:"style",attributes:{type:"text/css"},content:Jo(t),target:"head"}),n};const Zo=({state:e})=>{e.translate.init(e.options.locale,e.options.i18n),e.translate.translateItems()};var Qo,ei,ti=function(e){return e&&e.Math==Math&&e},ni=ti("object"==typeof globalThis&&globalThis)||ti("object"==typeof window&&window)||ti("object"==typeof self&&self)||ti("object"==typeof g&&g)||function(){return this}()||Function("return this")(),ai=function(e){try{return!!e()}catch(e){return!0}},ri=!ai((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),oi=!ai((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})),ii=Function.prototype.call,si=oi?ii.bind(ii):function(){return ii.apply(ii,arguments)},li={}.propertyIsEnumerable,ui=Object.getOwnPropertyDescriptor,ci=ui&&!li.call({1:2},1)?function(e){var t=ui(this,e);return!!t&&t.enumerable}:li,di={f:ci},pi=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},mi=Function.prototype,fi=mi.bind,hi=mi.call,yi=oi&&fi.bind(hi,hi),gi=oi?function(e){return e&&yi(e)}:function(e){return e&&function(){return hi.apply(e,arguments)}},bi=gi({}.toString),vi=gi("".slice),wi=function(e){return vi(bi(e),8,-1)},ki=Object,xi=gi("".split),Ei=ai((function(){return!ki("z").propertyIsEnumerable(0)}))?function(e){return"String"==wi(e)?xi(e,""):ki(e)}:ki,Ai=TypeError,Si=function(e){if(null==e)throw Ai("Can't call method on "+e);return e},Pi=function(e){return Ei(Si(e))},Li=function(e){return"function"==typeof e},Ti=function(e){return"object"==typeof e?null!==e:Li(e)},Ci=function(e){return Li(e)?e:void 0},Ii=function(e,t){return arguments.length<2?Ci(ni[e]):ni[e]&&ni[e][t]},$i=gi({}.isPrototypeOf),Oi=Ii("navigator","userAgent")||"",_i=ni.process,Fi=ni.Deno,Hi=_i&&_i.versions||Fi&&Fi.version,Ri=Hi&&Hi.v8;Ri&&(ei=(Qo=Ri.split("."))[0]>0&&Qo[0]<4?1:+(Qo[0]+Qo[1])),!ei&&Oi&&(!(Qo=Oi.match(/Edge\/(\d+)/))||Qo[1]>=74)&&(Qo=Oi.match(/Chrome\/(\d+)/))&&(ei=+Qo[1]);var Mi=ei,ji=!!Object.getOwnPropertySymbols&&!ai((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Mi&&Mi<41})),Ni=ji&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Bi=Object,qi=Ni?function(e){return"symbol"==typeof e}:function(e){var t=Ii("Symbol");return Li(t)&&$i(t.prototype,Bi(e))},Di=String,zi=function(e){try{return Di(e)}catch(e){return"Object"}},Ui=TypeError,Wi=function(e){if(Li(e))return e;throw Ui(zi(e)+" is not a function")},Gi=function(e,t){var n=e[t];return null==n?void 0:Wi(n)},Vi=TypeError,Ki=Object.defineProperty,Xi=function(e,t){try{Ki(ni,e,{value:t,configurable:!0,writable:!0})}catch(n){ni[e]=t}return t},Ji=ni["__core-js_shared__"]||Xi("__core-js_shared__",{}),Yi=b((function(e){(e.exports=function(e,t){return Ji[e]||(Ji[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.23.3",mode:"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.23.3/LICENSE",source:"https://github.com/zloirock/core-js"})})),Zi=Object,Qi=function(e){return Zi(Si(e))},es=gi({}.hasOwnProperty),ts=Object.hasOwn||function(e,t){return es(Qi(e),t)},ns=0,as=Math.random(),rs=gi(1..toString),os=function(e){return"Symbol("+(void 0===e?"":e)+")_"+rs(++ns+as,36)},is=Yi("wks"),ss=ni.Symbol,ls=ss&&ss.for,us=Ni?ss:ss&&ss.withoutSetter||os,cs=function(e){if(!ts(is,e)||!ji&&"string"!=typeof is[e]){var t="Symbol."+e;ji&&ts(ss,e)?is[e]=ss[e]:is[e]=Ni&&ls?ls(t):us(t)}return is[e]},ds=TypeError,ps=cs("toPrimitive"),ms=function(e,t){if(!Ti(e)||qi(e))return e;var n,a=Gi(e,ps);if(a){if(void 0===t&&(t="default"),n=si(a,e,t),!Ti(n)||qi(n))return n;throw ds("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,a;if("string"===t&&Li(n=e.toString)&&!Ti(a=si(n,e)))return a;if(Li(n=e.valueOf)&&!Ti(a=si(n,e)))return a;if("string"!==t&&Li(n=e.toString)&&!Ti(a=si(n,e)))return a;throw Vi("Can't convert object to primitive value")}(e,t)},fs=function(e){var t=ms(e,"string");return qi(t)?t:t+""},hs=ni.document,ys=Ti(hs)&&Ti(hs.createElement),gs=function(e){return ys?hs.createElement(e):{}},bs=!ri&&!ai((function(){return 7!=Object.defineProperty(gs("div"),"a",{get:function(){return 7}}).a})),vs=Object.getOwnPropertyDescriptor,ws=ri?vs:function(e,t){if(e=Pi(e),t=fs(t),bs)try{return vs(e,t)}catch(e){}if(ts(e,t))return pi(!si(di.f,e,t),e[t])},ks={f:ws},xs=ri&&ai((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Es=String,As=TypeError,Ss=function(e){if(Ti(e))return e;throw As(Es(e)+" is not an object")},Ps=TypeError,Ls=Object.defineProperty,Ts=Object.getOwnPropertyDescriptor,Cs=ri?xs?function(e,t,n){if(Ss(e),t=fs(t),Ss(n),"function"==typeof e&&"prototype"===t&&"value"in n&&"writable"in n&&!n.writable){var a=Ts(e,t);a&&a.writable&&(e[t]=n.value,n={configurable:"configurable"in n?n.configurable:a.configurable,enumerable:"enumerable"in n?n.enumerable:a.enumerable,writable:!1})}return Ls(e,t,n)}:Ls:function(e,t,n){if(Ss(e),t=fs(t),Ss(n),bs)try{return Ls(e,t,n)}catch(e){}if("get"in n||"set"in n)throw Ps("Accessors not supported");return"value"in n&&(e[t]=n.value),e},Is={f:Cs},$s=ri?function(e,t,n){return Is.f(e,t,pi(1,n))}:function(e,t,n){return e[t]=n,e},Os=Function.prototype,_s=ri&&Object.getOwnPropertyDescriptor,Fs=ts(Os,"name"),Hs={EXISTS:Fs,PROPER:Fs&&"something"===function(){}.name,CONFIGURABLE:Fs&&(!ri||ri&&_s(Os,"name").configurable)},Rs=gi(Function.toString);Li(Ji.inspectSource)||(Ji.inspectSource=function(e){return Rs(e)});var Ms,js,Ns,Bs=Ji.inspectSource,qs=ni.WeakMap,Ds=Li(qs)&&/native code/.test(Bs(qs)),zs=Yi("keys"),Us=function(e){return zs[e]||(zs[e]=os(e))},Ws={},Gs=ni.TypeError,Vs=ni.WeakMap;if(Ds||Ji.state){var Ks=Ji.state||(Ji.state=new Vs),Xs=gi(Ks.get),Js=gi(Ks.has),Ys=gi(Ks.set);Ms=function(e,t){if(Js(Ks,e))throw new Gs("Object already initialized");return t.facade=e,Ys(Ks,e,t),t},js=function(e){return Xs(Ks,e)||{}},Ns=function(e){return Js(Ks,e)}}else{var Zs=Us("state");Ws[Zs]=!0,Ms=function(e,t){if(ts(e,Zs))throw new Gs("Object already initialized");return t.facade=e,$s(e,Zs,t),t},js=function(e){return ts(e,Zs)?e[Zs]:{}},Ns=function(e){return ts(e,Zs)}}var Qs,el={set:Ms,get:js,has:Ns,enforce:function(e){return Ns(e)?js(e):Ms(e,{})},getterFor:function(e){return function(t){var n;if(!Ti(t)||(n=js(t)).type!==e)throw Gs("Incompatible receiver, "+e+" required");return n}}},tl=b((function(e){var t=Hs.CONFIGURABLE,n=el.enforce,a=el.get,r=Object.defineProperty,o=ri&&!ai((function(){return 8!==r((function(){}),"length",{value:8}).length})),i=String(String).split("String"),s=e.exports=function(e,a,s){"Symbol("===String(a).slice(0,7)&&(a="["+String(a).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),s&&s.getter&&(a="get "+a),s&&s.setter&&(a="set "+a),(!ts(e,"name")||t&&e.name!==a)&&(ri?r(e,"name",{value:a,configurable:!0}):e.name=a),o&&s&&ts(s,"arity")&&e.length!==s.arity&&r(e,"length",{value:s.arity});try{s&&ts(s,"constructor")&&s.constructor?ri&&r(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var l=n(e);return ts(l,"source")||(l.source=i.join("string"==typeof a?a:"")),e};Function.prototype.toString=s((function(){return Li(this)&&a(this).source||Bs(this)}),"toString")})),nl=function(e,t,n,a){a||(a={});var r=a.enumerable,o=void 0!==a.name?a.name:t;if(Li(n)&&tl(n,o,a),a.global)r?e[t]=n:Xi(t,n);else{try{a.unsafe?e[t]&&(r=!0):delete e[t]}catch(e){}r?e[t]=n:Is.f(e,t,{value:n,enumerable:!1,configurable:!a.nonConfigurable,writable:!a.nonWritable})}return e},al=Math.ceil,rl=Math.floor,ol=Math.trunc||function(e){var t=+e;return(t>0?rl:al)(t)},il=function(e){var t=+e;return t!=t||0===t?0:ol(t)},sl=Math.max,ll=Math.min,ul=Math.min,cl=function(e){return e>0?ul(il(e),9007199254740991):0},dl=function(e){return cl(e.length)},pl=function(e){return function(t,n,a){var r,o=Pi(t),i=dl(o),s=function(e,t){var n=il(e);return n<0?sl(n+t,0):ll(n,t)}(a,i);if(e&&n!=n){for(;i>s;)if((r=o[s++])!=r)return!0}else for(;i>s;s++)if((e||s in o)&&o[s]===n)return e||s||0;return!e&&-1}},ml={includes:pl(!0),indexOf:pl(!1)}.indexOf,fl=gi([].push),hl=function(e,t){var n,a=Pi(e),r=0,o=[];for(n in a)!ts(Ws,n)&&ts(a,n)&&fl(o,n);for(;t.length>r;)ts(a,n=t[r++])&&(~ml(o,n)||fl(o,n));return o},yl=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],gl=yl.concat("length","prototype"),bl=Object.getOwnPropertyNames||function(e){return hl(e,gl)},vl={f:bl},wl={f:Object.getOwnPropertySymbols},kl=gi([].concat),xl=Ii("Reflect","ownKeys")||function(e){var t=vl.f(Ss(e)),n=wl.f;return n?kl(t,n(e)):t},El=function(e,t,n){for(var a=xl(t),r=Is.f,o=ks.f,i=0;i<a.length;i++){var s=a[i];ts(e,s)||n&&ts(n,s)||r(e,s,o(t,s))}},Al=/#|\.prototype\./,Sl=function(e,t){var n=Ll[Pl(e)];return n==Cl||n!=Tl&&(Li(t)?ai(t):!!t)},Pl=Sl.normalize=function(e){return String(e).replace(Al,".").toLowerCase()},Ll=Sl.data={},Tl=Sl.NATIVE="N",Cl=Sl.POLYFILL="P",Il=Sl,$l=ks.f,Ol=function(e,t){var n,a,r,o,i,s=e.target,l=e.global,u=e.stat;if(n=l?ni:u?ni[s]||Xi(s,{}):(ni[s]||{}).prototype)for(a in t){if(o=t[a],r=e.dontCallGetSet?(i=$l(n,a))&&i.value:n[a],!Il(l?a:s+(u?".":"#")+a,e.forced)&&void 0!==r){if(typeof o==typeof r)continue;El(o,r)}(e.sham||r&&r.sham)&&$s(o,"sham",!0),nl(n,a,o,e)}},_l=Object.keys||function(e){return hl(e,yl)},Fl=ri&&!xs?Object.defineProperties:function(e,t){Ss(e);for(var n,a=Pi(t),r=_l(t),o=r.length,i=0;o>i;)Is.f(e,n=r[i++],a[n]);return e},Hl={f:Fl},Rl=Ii("document","documentElement"),Ml=Us("IE_PROTO"),jl=function(){},Nl=function(e){return"<script>"+e+"<\/script>"},Bl=function(e){e.write(Nl("")),e.close();var t=e.parentWindow.Object;return e=null,t},ql=function(){try{Qs=new ActiveXObject("htmlfile")}catch(e){}var e,t;ql="undefined"!=typeof document?document.domain&&Qs?Bl(Qs):((t=gs("iframe")).style.display="none",Rl.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(Nl("document.F=Object")),e.close(),e.F):Bl(Qs);for(var n=yl.length;n--;)delete ql.prototype[yl[n]];return ql()};Ws[Ml]=!0;var Dl,zl,Ul,Wl=Object.create||function(e,t){var n;return null!==e?(jl.prototype=Ss(e),n=new jl,jl.prototype=null,n[Ml]=e):n=ql(),void 0===t?n:Hl.f(n,t)},Gl=!ai((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),Vl=Us("IE_PROTO"),Kl=Object,Xl=Kl.prototype,Jl=Gl?Kl.getPrototypeOf:function(e){var t=Qi(e);if(ts(t,Vl))return t[Vl];var n=t.constructor;return Li(n)&&t instanceof n?n.prototype:t instanceof Kl?Xl:null},Yl=cs("iterator"),Zl=!1;[].keys&&("next"in(Ul=[].keys())?(zl=Jl(Jl(Ul)))!==Object.prototype&&(Dl=zl):Zl=!0);var Ql=null==Dl||ai((function(){var e={};return Dl[Yl].call(e)!==e}));Ql&&(Dl={}),Li(Dl[Yl])||nl(Dl,Yl,(function(){return this}));var eu={IteratorPrototype:Dl,BUGGY_SAFARI_ITERATORS:Zl},tu=Is.f,nu=cs("toStringTag"),au={},ru=eu.IteratorPrototype,ou=function(){return this},iu={};iu[cs("toStringTag")]="z";var su="[object z]"===String(iu),lu=cs("toStringTag"),uu=Object,cu="Arguments"==wi(function(){return arguments}()),du=su?wi:function(e){var t,n,a;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=uu(e),lu))?n:cu?wi(t):"Object"==(a=wi(t))&&Li(t.callee)?"Arguments":a},pu=String,mu=function(e){if("Symbol"===du(e))throw TypeError("Cannot convert a Symbol value to a string");return pu(e)},fu=cs("match"),hu=function(){var e=Ss(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t},yu=RegExp.prototype,gu=function(e){var t=e.flags;return void 0!==t||"flags"in yu||ts(e,"flags")||!$i(yu,e)?t:si(hu,e)},bu=function(){},vu=[],wu=Ii("Reflect","construct"),ku=/^\s*(?:class|function)\b/,xu=gi(ku.exec),Eu=!ku.exec(bu),Au=function(e){if(!Li(e))return!1;try{return wu(bu,vu,e),!0}catch(e){return!1}},Su=function(e){if(!Li(e))return!1;switch(du(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return Eu||!!xu(ku,Bs(e))}catch(e){return!0}};Su.sham=!0;var Pu,Lu,Tu=!wu||ai((function(){var e;return Au(Au.call)||!Au(Object)||!Au((function(){e=!0}))||e}))?Su:Au,Cu=TypeError,Iu=cs("species"),$u=function(e,t){var n,a=Ss(e).constructor;return void 0===a||null==(n=Ss(a)[Iu])?t:function(e){if(Tu(e))return e;throw Cu(zi(e)+" is not a constructor")}(n)},Ou=gi("".charAt),_u=gi("".charCodeAt),Fu=gi("".slice),Hu=function(e){return function(t,n){var a,r,o=mu(Si(t)),i=il(n),s=o.length;return i<0||i>=s?e?"":void 0:(a=_u(o,i))<55296||a>56319||i+1===s||(r=_u(o,i+1))<56320||r>57343?e?Ou(o,i):a:e?Fu(o,i,i+2):r-56320+(a-55296<<10)+65536}},Ru={codeAt:Hu(!1),charAt:Hu(!0)}.charAt,Mu=ni.RegExp,ju=ai((function(){var e=Mu("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),Nu=ju||ai((function(){return!Mu("a","y").sticky})),Bu=ju||ai((function(){var e=Mu("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),qu={BROKEN_CARET:Bu,MISSED_STICKY:Nu,UNSUPPORTED_Y:ju},Du=ni.RegExp,zu=ai((function(){var e=Du(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),Uu=ni.RegExp,Wu=ai((function(){var e=Uu("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),Gu=el.get,Vu=Yi("native-string-replace",String.prototype.replace),Ku=RegExp.prototype.exec,Xu=Ku,Ju=gi("".charAt),Yu=gi("".indexOf),Zu=gi("".replace),Qu=gi("".slice),ec=(Lu=/b*/g,si(Ku,Pu=/a/,"a"),si(Ku,Lu,"a"),0!==Pu.lastIndex||0!==Lu.lastIndex),tc=qu.BROKEN_CARET,nc=void 0!==/()??/.exec("")[1];(ec||nc||tc||zu||Wu)&&(Xu=function(e){var t,n,a,r,o,i,s,l=this,u=Gu(l),c=mu(e),d=u.raw;if(d)return d.lastIndex=l.lastIndex,t=si(Xu,d,c),l.lastIndex=d.lastIndex,t;var p=u.groups,m=tc&&l.sticky,f=si(hu,l),h=l.source,y=0,g=c;if(m&&(f=Zu(f,"y",""),-1===Yu(f,"g")&&(f+="g"),g=Qu(c,l.lastIndex),l.lastIndex>0&&(!l.multiline||l.multiline&&"\n"!==Ju(c,l.lastIndex-1))&&(h="(?: "+h+")",g=" "+g,y++),n=new RegExp("^(?:"+h+")",f)),nc&&(n=new RegExp("^"+h+"$(?!\\s)",f)),ec&&(a=l.lastIndex),r=si(Ku,m?n:l,g),m?r?(r.input=Qu(r.input,y),r[0]=Qu(r[0],y),r.index=l.lastIndex,l.lastIndex+=r[0].length):l.lastIndex=0:ec&&r&&(l.lastIndex=l.global?r.index+r[0].length:a),nc&&r&&r.length>1&&si(Vu,r[0],n,(function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(r[o]=void 0)})),r&&p)for(r.groups=i=Wl(null),o=0;o<p.length;o++)i[(s=p[o])[0]]=r[s[1]];return r});var ac=Xu,rc=TypeError,oc=cs("matchAll"),ic=el.set,sc=el.getterFor("RegExp String Iterator"),lc=RegExp.prototype,uc=TypeError,cc=gi("".indexOf),dc=gi("".matchAll),pc=!!dc&&!ai((function(){dc("a",/./)})),mc=function(e,t,n,a){var r,o,i,s=t+" Iterator";return e.prototype=Wl(ru,{next:pi(+!a,n)}),o=s,i=!1,(r=e)&&!i&&(r=r.prototype),r&&!ts(r,nu)&&tu(r,nu,{configurable:!0,value:o}),au[s]=ou,e}((function(e,t,n,a){ic(this,{type:"RegExp String Iterator",regexp:e,string:t,global:n,unicode:a,done:!1})}),"RegExp String",(function(){var e=sc(this);if(e.done)return{value:void 0,done:!0};var t=e.regexp,n=e.string,a=function(e,t){var n=e.exec;if(Li(n)){var a=si(n,e,t);return null!==a&&Ss(a),a}if("RegExp"===wi(e))return si(ac,e,t);throw rc("RegExp#exec called on incompatible receiver")}(t,n);return null===a?{value:void 0,done:e.done=!0}:e.global?(""===mu(a[0])&&(t.lastIndex=function(e,t,n){return t+(n?Ru(e,t).length:1)}(n,cl(t.lastIndex),e.unicode)),{value:a,done:!1}):(e.done=!0,{value:a,done:!1})})),fc=function(e){var t,n,a,r=Ss(this),o=mu(e),i=$u(r,RegExp),s=mu(gu(r));return t=new i(i===RegExp?r.source:r,s),n=!!~cc(s,"g"),a=!!~cc(s,"u"),t.lastIndex=cl(r.lastIndex),new mc(t,o,n,a)};function hc(e){const t={};return function(e){const t={};function n(e){const a=e.match(/var\((.+?)\)/g);if(a){let r=e;return a.forEach((n=>{const a=n.match(/\((.*)\)/i)[1];r=e.replace(n,t[a])})),n(r)}return e}return[...e.matchAll(/(--rebilly.*(?=:))[:\s](.*(?=;))/g)].forEach((e=>{t[e[1]]=e[2].trim()})),Object.entries(t).map((([e,t])=>[e,n(t)]))}(e).forEach((([e,n])=>{t[e]=n})),t}Ol({target:"String",proto:!0,forced:pc},{matchAll:function(e){var t,n,a,r,o,i=Si(this);if(null!=e){if(Ti(r=e)&&(void 0!==(o=r[fu])?o:"RegExp"==wi(r))&&(t=mu(Si(gu(e))),!~cc(t,"g")))throw uc("`.matchAll` does not allow non-global regexes");if(pc)return dc(i,e);if(a=Gi(e,oc))return si(a,e,i)}else if(pc)return dc(i,e);return n=mu(i),new RegExp(e,"g")[oc](n)}}),oc in lc||nl(lc,oc,fc);const yc=(e,t="")=>({color:e[`--rebilly-${t}ColorText`],fontFamily:e[`--rebilly-${t}FontFamily`],fontSize:e[`--rebilly-${t}FontSize`],fontWeight:e[`--rebilly-${t}FontWeight`],lineHeight:e[`--rebilly-${t}FontLineHeight`],background:e[`--rebilly-${t}ColorBackground`],boxShadow:e[`--rebilly-${t}BoxShadow`]});function gc({eventName:e,callback:t}){if(!Ge.includes(e))throw new Error(`${e} is not a supported event`);const n=ue(e);We[n].addEventListener(t)}async function bc({componentName:e,payload:t,state:n}){switch(e){case"result":n.iframeComponents.form&&(n.iframeComponents.form.destroy(),n.iframeComponents.form=null),async function({payload:e,state:t}){var n,a;n=t.form,a='<div class="rebilly-instruments-result"></div>',n.querySelector(".rebilly-instruments-content").innerHTML=a,t.loader.startLoading({id:"rebilly-instruments-result"}),t.loader.stopLoading({id:"express-purchase"});const r=document.querySelector(".rebilly-instruments-result"),{paymentMethodsUrl:o}=t.options._computed,i={options:t.options,mainStyleVars:t.mainStyleVars,[t.options.transactionType]:e},s=await new Ze({state:t,name:"rebilly-instruments-result",url:`${o}/result`,container:r,model:i});s.bindEventListeners({loader:t.loader}),t.iframeComponents.form=s}({payload:t,state:n});break;case"confirmation":!async function({payload:e,state:t}){var n,a;e.billingAddress&&t.summary&&t.data.isPurchase&&Ca({state:t,instrument:e});const r=t.iframeComponents.form,o={options:t.options,data:t.data.toPostmatesModel(),mainStyleVars:t.mainStyleVars,instrument:e};null==r||null===(n=r.component)||void 0===n||n.call("route",{name:"confirmation"}),null==r||null===(a=r.component)||void 0===a||a.call("update",o),document.querySelectorAll('[data-rebilly-instruments="express-method"]').forEach((e=>{e.style.overflow="hidden",e.style.height="0px"}))}({payload:t,state:n});break;default:throw new Error(`'${e}' not a supported component`)}}var vc=({state:e={}})=>{e.options.features.autoConfirmation&&gc({eventName:"instrument-ready",callback:t=>{var n;if("paypal"===(null===(n=t._raw)||void 0===n?void 0:n.method)&&!e.data.isShippingRequired)return"setup"===e.options.transactionType?ko({state:e,payload:t}):wo({state:e,payload:t}),void e.loader.startLoading({state:e,id:"express-purchase",message:"form.loaderMessages.processingPayment"});bc({componentName:"confirmation",payload:t,state:e})}}),e.options.features.autoResult&&gc({eventName:"setup"===e.options.transactionType?"setup-completed":"purchase-completed",callback:t=>{!function({state:e,payload:t}){bc({componentName:"result",payload:t,state:e})}({state:e,payload:t})}})};async function wc({state:e,setupFramepay:t=Ro,...n}={}){try{var a,r,o;e.data={},e.options={},e.form=To({element:"form",options:n}),e.summary=To({element:"summary",options:n}),e.form.style.maxWidth="750px",e.summary&&(e.summary.style.maxWidth="750px"),e.options=Ho({options:n}),e.storefront=Co({options:n}),e.mainStyleVars=Yo({options:n}),e.options.themeFramepay=(({state:e,options:t={}})=>{const n=hc(`\n ${e.mainStyleVars}\n ${t.css||""}\n `);return{base:{...yc(n,"input"),":hover":yc(n,"inputHover"),":focus":yc(n,"inputFocus"),"::placeholder":yc(n,"inputPlaceholder"),"::selection":yc(n,"inputSelection")},invalid:{...yc(n,"inputError"),":hover":yc(n,"inputErrorHover"),":focus":yc(n,"inputErrorFocus"),"::placeholder":yc(n,"inputErrorPlaceholder"),"::selection":yc(n,"inputErrorSelection")},buttons:{base:{...yc(n,"buttonSecondary"),":hover":yc(n,"buttonSecondaryHover"),":focus":yc(n,"buttonSecondaryActive")},active:{...yc(n,"button"),":hover":yc(n,"buttonHover"),":focus":yc(n,"buttonActive")}}}})({state:e,options:n}),e.loader.addDOMElement({el:e.form}),e.loader.addDOMElement({section:"summary",el:e.summary}),e.loader.startLoading({state:e,section:"summary",id:"rebilly-instruments-summary"}),e.loader.startLoading({state:e,id:"rebilly-instruments-form"});const[i]=await Promise.all([yo({state:e}),t(e)]);e.data=i,We.dataReady.dispatch(e.data),e.i18n=(({state:e={}})=>{var t,n;if("auto"===e.options.locale&&null!==(t=e.data.riskMetadata)&&void 0!==t&&null!==(n=t.browserData)&&void 0!==n&&n.language){const{browserData:{language:t}}=e.data.riskMetadata;e.options.locale=t}return e.translate.init(e.options.locale,e.options.i18n),Zo})({state:e}),!e.options.websiteId&&null!==(a=e.data.transaction)&&void 0!==a&&a.websiteId?e.options.websiteId=e.data.transaction.websiteId:!e.options.websiteId&&null!==(r=e.data.invoice)&&void 0!==r&&r.websiteId&&(e.options.websiteId=e.data.invoice.websiteId),e.data.transaction&&"setup"===(null===(o=e.data.transaction)||void 0===o?void 0:o.type)&&(e.options.transactionType="setup"),e.form&&Po({state:e}),e.summary&&async function({state:e}){const t={options:e.options,data:e.data.toPostmatesModel(),mainStyleVars:e.mainStyleVars},{paymentMethodsUrl:n}=e.options._computed,a=await new Ze({state:e,name:"rebilly-instruments-summary",url:`${n}/summary`,container:e.summary,model:t});a.bindEventListeners({loader:e.loader}),e.iframeComponents.summary=a}({state:e}),e.i18n({state:e}),e.hasMounted=!0,i.readyToPay.length||(e.loader.stopLoading({id:"rebilly-instruments-form"}),Xe(e.translate.getTranslation("form.error.noPaymentMethods")))}catch(e){throw Xe(e),e}vc({state:e})}async function kc({state:e}){var t;await(t=1e3,new Promise((e=>setTimeout(e,t)))),Object.values(e.iframeComponents).forEach((e=>null==e?void 0:e.destroy())),ze.removeAll(document),e.iframeComponents={summary:null,form:null},e.hasMounted=!1,e.summary&&(e.summary.textContent=""),e.form.textContent="",da(),e.loader.clearAll()}function xc({newOptions:e}){let t={};const n=Object.keys(e).some((e=>["items","money","invoiceId","transactionId"].includes(e)));return t=n?{items:null,money:null,invoiceId:null,transactionId:null}:t,t}var Ec,Ac,Sc=TypeError,Pc=function(e){return function(t,n,a,r){Wi(n);var o=Qi(t),i=Ei(o),s=dl(o),l=e?s-1:0,u=e?-1:1;if(a<2)for(;;){if(l in i){r=i[l],l+=u;break}if(l+=u,e?l<0:s<=l)throw Sc("Reduce of empty array with no initial value")}for(;e?l>=0:s>l;l+=u)l in i&&(r=n(r,i[l],l,o));return r}},Lc={left:Pc(!1),right:Pc(!0)},Tc="process"==wi(ni.process),Cc=Lc.left;Ol({target:"Array",proto:!0,forced:!(!!(Ac=[]["reduce"])&&ai((function(){Ac.call(null,Ec||function(){return 1},1)})))||!Tc&&Mi>79&&Mi<83},{reduce:function(e){var t=arguments.length;return Cc(this,e,t,t>1?arguments[1]:void 0)}});var Ic={en:{summary:{subTotal:"Sub Total",discounts:"Discounts",taxes:"Taxes",shipping:"Shipping",total:"Total"},form:{expressCheckout:"Express checkout",or:"Or",popupOverlayText:"Click here to show popup window",andMore:"and more",error:{noPaymentMethods:"No payment methods available for this transaction, please contact support."},loaderMessages:{processingPayment:"Processing payment instrument."}},paymentMethods:{"payment-card":"Payment card",ach:"Bank account"}}},$c={es:{summary:{subTotal:"Sub Total",discounts:"Descuentos",taxes:"Impuestos",shipping:"Envío",total:"Total"},form:{expressCheckout:"Chequeo rápido",or:"O pague con",andMore:"y más",popupOverlayText:"Haga clic aquí para mostrar la ventana emergente",error:{noPaymentMethods:"No hay métodos de pago disponibles para esta transacción, por favor, póngase en contacto con el servicio de asistencia."}},paymentMethods:{"payment-card":"Tarjeta de crédito",ach:"Cuenta bancaria"}}};class Oc{constructor(){this.locale="",this.items=[],this.languages={}}init(e,t){this.items=document.querySelectorAll("[data-rebilly-i18n]"),this.locale=this.getLocale(e),this.languages=Eo({},{...Ic,...$c},t)}translateItems(){return this.items=document.querySelectorAll("[data-rebilly-i18n]"),this.locale in this.languages&&this.items.forEach((e=>{const t=this.getTranslation(e.dataset.rebillyI18n,this.languages[this.locale]);t&&(e.innerHTML=t)}))}updateTranslationsToNewLocale(e){this.locale=e,this.translateItems()}getLocale(e=this.locale){return!e.includes("-")||e in this.languages?e:(e=e.replace(/[-._]\w+$/gi,""),this.getLocale(e))}translateItem(e){const t=this.getLocale();return this.getTranslation(e.dataset.rebillyI18n,this.languages[t])}getTranslation(e,t=this.languages[this.locale]){return e.split(".").reduce(((e,t)=>null==e?void 0:e[t]),t)}}class _c{constructor(){this.options=null,this.data={},this.mountingPoints=null,this.storefront=null,this.form=null,this.summary=null,this.loader=new f,this.translate=new Oc,this.iframeComponents={summary:null,form:null},this.hasMounted=!1}}var Fc=new class{constructor(){this.state=new _c}async mount(e){await wc({state:this.state,...e})}async destroy(){await kc({state:this.state})}async update(e){await async function({state:e,newOptions:t={}}){if(!e.hasMounted)throw Error("Update method cannot be called before mounting instruments");const n={...e.options,...xc({newOptions:t})},a=Eo({...n},t);await kc({state:e}),wc({state:e,form:e.form,summary:e.summary,...a})}({state:this.state,newOptions:e})}async purchase(e){await wo({state:this.state,payload:e})}async setup(e){await ko({state:this.state,payload:e})}async show(e,t){await bc({state:this.state,componentName:e,payload:t})}get version(){return"RebillyInstruments Ver.3.23.0-beta.1"}on(e,t){gc({state:this.state,eventName:e,callback:t})}};export{Fc as default};
|
package/dist/index.min.js
CHANGED
|
@@ -62,4 +62,4 @@ function O(e){var t=P(e);return null===t?null:("hsl"===t.type&&(t.values=L(t.val
|
|
|
62
62
|
* @version v2.0.0
|
|
63
63
|
* @link http://noeldelgado.github.io/values.js/
|
|
64
64
|
* @license MIT
|
|
65
|
-
*/var F=function(e,t){return null===e||isNaN(e)||"string"==typeof e?t:e},H=function(e,t,n){var a;void 0===e&&(e="#000"),void 0===t&&(t="base"),void 0===n&&(n=0),a=[[0,0,0],1,t,n],this.rgb=a[0],this.alpha=a[1],this.type=a[2],this.weight=a[3];var r=null===e?"#000":e;if("string"!=typeof r)throw new TypeError("Input should be a string: "+r);var o=P(r);if(!o)throw new Error("Unable to parse color from string: "+r);return this["_setFrom"+o.type.toUpperCase()](o.values.concat([o.alpha]))},R={hex:{configurable:!0}};return R.hex.get=function(){return this.hexString().replace(/^#/,"")},H.prototype.setColor=function(e){var t=P(e);return t?this["_setFrom"+t.type.toUpperCase()](t.values.concat([t.alpha])):null},H.prototype.tint=function(e,t){return void 0===t&&(t=F(e,50)),new H("rgb("+_("#fff",this.rgbString(),t).rgba+")","tint",t)},H.prototype.shade=function(e,t){return void 0===t&&(t=F(e,50)),new H("rgb("+_("#000",this.rgbString(),t).rgba+")","shade",t)},H.prototype.tints=function(e,t){var n=this;return void 0===t&&(t=F(e,10)),Array.from({length:100/t},(function(e,a){return n.tint((a+1)*t)}))},H.prototype.shades=function(e,t){var n=this;return void 0===t&&(t=F(e,10)),Array.from({length:100/t},(function(e,a){return n.shade((a+1)*t)}))},H.prototype.all=function(e){return void 0===e&&(e=10),this.tints(e).reverse().concat([Object.assign(this)],this.shades(e))},H.prototype.hexString=function(){return I(this.alpha>=1?this.rgb:this.rgb.concat([this.alpha]))},H.prototype.rgbString=function(){var e=(this.alpha>=1?this.rgb:this.rgb.concat([this.alpha])).join(", ");return(this.alpha>=1?"rgb":"rgba")+"("+e+")"},H.prototype.getBrightness=function(){return Math.round(this.rgb.reduce((function(e,t){return e+t}))/765*100)},H.prototype._setFromRGB=function(e){var t;return t=[[e[0],e[1],e[2]],e[3]],this.rgb=t[0],this.alpha=t[1],this},H.prototype._setFromHSL=function(e){var t,n=e[0],a=e[1],r=e[2],o=e[3];return t=[L([n,a,r]).map(Math.round),o],this.rgb=t[0],this.alpha=t[1],this},Object.defineProperties(H.prototype,R),H.VERSION="v2.0.0",H}()})),ti=ei;const ni=e=>new ti(e);function ai(e,t=1){if(null===e)return e;const n=ni(e);return n.alpha=t,n.rgbString()}const ri=e=>ai(e,.5),oi=(e,t)=>{if(null===e)return e;return ni(e).shade(t).hexString()};class ii{constructor(e){var t,n,a;a=["none","hidden","dotted","dashed","solid","double","groove","ridge","inset","outset","initial","inherit"],(n="allStyles")in(t=this)?Object.defineProperty(t,n,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[n]=a,this.str=e||"";const r=this.allStyles.find((e=>this.str.includes(e))),o=this.str.split(r).map((e=>e.trim()));this.border=[o[0],r,o[1]]}get stylePosition(){let e=0;return 3===this.border.length?e=1:2===this.border.length&&(e=this.allStyles.includes(this.border[0])?0:1),e}updateColor(e){return this.border[this.stylePosition+1]=e,this}get value(){return this.border.join(" ")}}const si={colorPrimary:{fallback:{type:"static",value:"#0044D4"}},colorBackground:{fallback:{type:"static",value:"#FFFFFF"}},colorText:{fallback:{type:"static",value:"#0D2B3E"}},colorMutedText:{fallback:{type:"func",value:e=>ri(e.colorText)}},colorMutedBorder:{fallback:{type:"func",value:e=>e.colorTextProvided?ai(e.colorText,.25):"#DCE3EA"}},colorDanger:{fallback:{type:"static",value:"#CD5C5C"}},fontFamily:{fallback:{type:"static",value:"Avenir, Helvetica, Arial, sans-serif"}},fontSizeBase:{fallback:{type:"static",value:"16px"}},fontWeightBase:{fallback:{type:"static",value:"500"}},fontLineHeightBase:{fallback:{type:"func",value:e=>`calc(${e.fontSizeBase} * 1.5)`}},fontSmooth:{fallback:{type:"static",value:"auto"}},borderRadius:{fallback:{type:"static",value:"6px"}},headingFontFamily:{fallback:{type:"variable",value:"fontFamily"}},headingFontWeight:{fallback:{type:"static",value:"600"}},headingColorText:{fallback:{type:"variable",value:"colorText"}},buttonColorBackground:{fallback:{type:"variable",value:"colorPrimary"}},buttonColorText:{fallback:{type:"static",value:"#FFFFFF"}},buttonFontFamily:{fallback:{type:"variable",value:"fontFamily"}},buttonFontSize:{fallback:{type:"variable",value:"fontSizeBase"}},buttonFontLineHeight:{fallback:{type:"variable",value:"fontLineHeightBase"}},buttonFontWeight:{fallback:{type:"variable",value:"fontWeightBase"}},buttonBorder:{fallback:{type:"static",value:"1px solid transparent"}},buttonBorderRadius:{fallback:{type:"variable",value:"borderRadius"}},buttonBoxShadow:{fallback:{type:"static",value:"none"}},buttonSecondaryColorBackground:{fallback:{type:"variable",value:"colorBackground"}},buttonSecondaryColorText:{fallback:{type:"variable",value:"colorPrimary"}},buttonSecondaryFontFamily:{fallback:{type:"variable",value:"fontFamily"}},buttonSecondaryFontSize:{fallback:{type:"variable",value:"fontSizeBase"}},buttonSecondaryFontLineHeight:{fallback:{type:"variable",value:"fontLineHeightBase"}},buttonSecondaryFontWeight:{fallback:{type:"variable",value:"fontWeightBase"}},buttonSecondaryBorder:{fallback:{type:"func",value:e=>`1px solid ${e.colorPrimary}`}},buttonSecondaryBorderRadius:{fallback:{type:"variable",value:"borderRadius"}},buttonSecondaryBoxShadow:{fallback:{type:"static",value:"none"}},buttonHoverColorBackground:{fallback:{type:"func",value:e=>e.buttonColorBackgroundProvided?oi(e.buttonColorBackground,20):oi(e.colorPrimary,20)}},buttonHoverColorText:{fallback:{type:"variable",value:"buttonColorText"}},buttonHoverFontFamily:{fallback:{type:"variable",value:"buttonFontFamily"}},buttonHoverFontSize:{fallback:{type:"variable",value:"buttonFontSize"}},buttonHoverFontLineHeight:{fallback:{type:"variable",value:"buttonFontLineHeight"}},buttonHoverFontWeight:{fallback:{type:"variable",value:"buttonFontWeight"}},buttonHoverBorder:{fallback:{type:"func",value:e=>{if(e.buttonBorderProvided)return e.buttonBorder;return new ii(e.buttonBorder).updateColor(e.buttonHoverColorBackground).value}}},buttonHoverBorderRadius:{fallback:{type:"variable",value:"buttonBorderRadius"}},buttonHoverBoxShadow:{fallback:{type:"variable",value:"buttonBoxShadow"}},buttonSecondaryHoverColorBackground:{fallback:{type:"variable",value:"colorBackground"}},buttonSecondaryHoverColorText:{fallback:{type:"variable",value:"buttonSecondaryColorText"}},buttonSecondaryHoverFontFamily:{fallback:{type:"variable",value:"buttonSecondaryFontFamily"}},buttonSecondaryHoverFontSize:{fallback:{type:"variable",value:"buttonSecondaryFontSize"}},buttonSecondaryHoverFontLineHeight:{fallback:{type:"variable",value:"buttonSecondaryFontLineHeight"}},buttonSecondaryHoverFontWeight:{fallback:{type:"variable",value:"buttonSecondaryFontWeight"}},buttonSecondaryHoverBorder:{fallback:{type:"variable",value:"buttonSecondaryBorder"}},buttonSecondaryHoverBorderRadius:{fallback:{type:"variable",value:"buttonSecondaryBorderRadius"}},buttonSecondaryHoverBoxShadow:{fallback:{type:"variable",value:"buttonSecondaryBoxShadow"}},buttonActiveColorBackground:{fallback:{type:"variable",value:"buttonHoverColorBackground"}},buttonActiveColorText:{fallback:{type:"variable",value:"buttonHoverColorText"}},buttonActiveFontFamily:{fallback:{type:"variable",value:"buttonHoverFontFamily"}},buttonActiveFontSize:{fallback:{type:"variable",value:"buttonHoverFontSize"}},buttonActiveFontLineHeight:{fallback:{type:"variable",value:"buttonHoverFontLineHeight"}},buttonActiveFontWeight:{fallback:{type:"variable",value:"buttonHoverFontWeight"}},buttonActiveBorder:{fallback:{type:"variable",value:"buttonHoverBorder"}},buttonActiveBorderRadius:{fallback:{type:"variable",value:"buttonHoverBorderRadius"}},buttonActiveBoxShadow:{fallback:{type:"variable",value:"buttonHoverBoxShadow"}},buttonSecondaryActiveColorBackground:{fallback:{type:"variable",value:"buttonSecondaryHoverColorBackground"}},buttonSecondaryActiveColorText:{fallback:{type:"variable",value:"buttonSecondaryHoverColorText"}},buttonSecondaryActiveFontFamily:{fallback:{type:"variable",value:"buttonSecondaryHoverFontFamily"}},buttonSecondaryActiveFontSize:{fallback:{type:"variable",value:"buttonSecondaryHoverFontSize"}},buttonSecondaryActiveFontLineHeight:{fallback:{type:"variable",value:"buttonSecondaryHoverFontLineHeight"}},buttonSecondaryActiveFontWeight:{fallback:{type:"variable",value:"buttonSecondaryHoverFontWeight"}},buttonSecondaryActiveBorder:{fallback:{type:"variable",value:"buttonSecondaryHoverBorder"}},buttonSecondaryActiveBorderRadius:{fallback:{type:"variable",value:"buttonSecondaryHoverBorderRadius"}},buttonSecondaryActiveBoxShadow:{fallback:{type:"variable",value:"buttonSecondaryHoverBoxShadow"}},inputColorBackground:{fallback:{type:"static",value:"transparent"}},inputColorText:{fallback:{type:"variable",value:"colorText"}},inputFontFamily:{fallback:{type:"variable",value:"fontFamily"}},inputFontSize:{fallback:{type:"variable",value:"fontSizeBase"}},inputFontLineHeight:{fallback:{type:"variable",value:"fontLineHeightBase"}},inputFontWeight:{fallback:{type:"variable",value:"fontWeightBase"}},inputBorder:{fallback:{type:"func",value:e=>`1px solid ${oi(e.colorMutedBorder,4)}`}},inputBorderRadius:{fallback:{type:"variable",value:"borderRadius"}},inputBoxShadow:{fallback:{type:"static",value:"none"}},inputHoverColorBackground:{fallback:{type:"variable",value:"inputColorBackground"}},inputHoverColorText:{fallback:{type:"variable",value:"inputColorText"}},inputHoverFontFamily:{fallback:{type:"variable",value:"inputFontFamily"}},inputHoverFontSize:{fallback:{type:"variable",value:"inputFontSize"}},inputHoverFontLineHeight:{fallback:{type:"variable",value:"inputFontLineHeight"}},inputHoverFontWeight:{fallback:{type:"variable",value:"inputFontWeight"}},inputHoverBorder:{fallback:{type:"variable",value:"inputBorder"}},inputHoverBorderRadius:{fallback:{type:"variable",value:"inputBorderRadius"}},inputHoverBoxShadow:{fallback:{type:"variable",value:"inputBoxShadow"}},inputFocusColorBackground:{fallback:{type:"variable",value:"inputHoverColorBackground"}},inputFocusColorText:{fallback:{type:"variable",value:"inputHoverColorText"}},inputFocusFontFamily:{fallback:{type:"variable",value:"inputHoverFontFamily"}},inputFocusFontSize:{fallback:{type:"variable",value:"inputHoverFontSize"}},inputFocusFontLineHeight:{fallback:{type:"variable",value:"inputHoverFontLineHeight"}},inputFocusFontWeight:{fallback:{type:"variable",value:"inputHoverFontWeight"}},inputFocusBorder:{fallback:{type:"func",value:e=>{if(e.inputHoverBorderProvided)return e.inputHoverBorder;return new ii(e.inputBorder).updateColor(e.colorPrimary).value}}},inputFocusBorderRadius:{fallback:{type:"variable",value:"inputHoverBorderRadius"}},inputFocusBoxShadow:{fallback:{type:"func",value:e=>`0 0 0 1px ${e.colorPrimary}`}},inputPlaceholderColorText:{fallback:{type:"func",value:e=>e.inputColorTextProvided?ri(e.inputColorText):e.colorMutedText}},inputPlaceholderFontFamily:{fallback:{type:"variable",value:"inputFontFamily"}},inputPlaceholderFontSize:{fallback:{type:"variable",value:"inputFontSize"}},inputPlaceholderFontLineHeight:{fallback:{type:"variable",value:"inputFontLineHeight"}},inputPlaceholderFontWeight:{fallback:{type:"variable",value:"inputFontWeight"}},inputSelectionColorText:{fallback:{type:"static",value:"initial"}},inputSelectionColorBackground:{fallback:{type:"static",value:"highlight"}},inputErrorColorBackground:{fallback:{type:"variable",value:"inputColorBackground"}},inputErrorColorText:{fallback:{type:"variable",value:"colorDanger"}},inputErrorFontFamily:{fallback:{type:"variable",value:"inputFontFamily"}},inputErrorFontSize:{fallback:{type:"variable",value:"inputFontSize"}},inputErrorFontLineHeight:{fallback:{type:"variable",value:"inputFontLineHeight"}},inputErrorFontWeight:{fallback:{type:"variable",value:"inputFontWeight"}},inputErrorBorder:{fallback:{type:"func",value:e=>{if(e.inputBorderProvided){return new ii(e.inputBorder).updateColor(e.colorDanger).value}return`1px solid ${e.colorDanger}`}}},inputErrorBorderRadius:{fallback:{type:"variable",value:"inputBorderRadius"}},inputErrorBoxShadow:{fallback:{type:"variable",value:"inputBoxShadow"}},inputErrorHoverColorBackground:{fallback:{type:"variable",value:"inputErrorColorBackground"}},inputErrorHoverColorText:{fallback:{type:"variable",value:"inputErrorColorText"}},inputErrorHoverFontFamily:{fallback:{type:"variable",value:"inputErrorFontFamily"}},inputErrorHoverFontSize:{fallback:{type:"variable",value:"inputErrorFontSize"}},inputErrorHoverFontLineHeight:{fallback:{type:"variable",value:"inputErrorFontLineHeight"}},inputErrorHoverFontWeight:{fallback:{type:"variable",value:"inputErrorFontWeight"}},inputErrorHoverBorder:{fallback:{type:"variable",value:"inputErrorBorder"}},inputErrorHoverBorderRadius:{fallback:{type:"variable",value:"inputErrorBorderRadius"}},inputErrorHoverBoxShadow:{fallback:{type:"variable",value:"inputErrorBoxShadow"}},inputErrorFocusColorBackground:{fallback:{type:"variable",value:"inputErrorHoverColorBackground"}},inputErrorFocusColorText:{fallback:{type:"variable",value:"inputErrorHoverColorText"}},inputErrorFocusFontFamily:{fallback:{type:"variable",value:"inputErrorHoverFontFamily"}},inputErrorFocusFontSize:{fallback:{type:"variable",value:"inputErrorHoverFontSize"}},inputErrorFocusFontLineHeight:{fallback:{type:"variable",value:"inputErrorHoverFontLineHeight"}},inputErrorFocusFontWeight:{fallback:{type:"variable",value:"inputErrorHoverFontWeight"}},inputErrorFocusBorder:{fallback:{type:"variable",value:"inputErrorHoverBorder"}},inputErrorFocusBorderRadius:{fallback:{type:"variable",value:"inputErrorHoverBorderRadius"}},inputErrorFocusBoxShadow:{fallback:{type:"variable",value:"inputErrorHoverBoxShadow"}},inputErrorPlaceholderColorText:{fallback:{type:"func",value:e=>e.inputErrorColorTextProvided?ri(e.inputErrorColorText):ri(e.colorDanger)}},inputErrorPlaceholderFontFamily:{fallback:{type:"variable",value:"inputPlaceholderFontFamily"}},inputErrorPlaceholderFontSize:{fallback:{type:"variable",value:"inputPlaceholderFontSize"}},inputErrorPlaceholderFontLineHeight:{fallback:{type:"variable",value:"inputPlaceholderFontLineHeight"}},inputErrorPlaceholderFontWeight:{fallback:{type:"variable",value:"inputPlaceholderFontWeight"}},inputErrorSelectionColorText:{fallback:{type:"variable",value:"inputSelectionColorText"}},inputErrorSelectionColorBackground:{fallback:{type:"variable",value:"inputSelectionColorBackground"}},labels:{fallback:{type:"static",value:"floating"}}};var li,ui,ci,di=new Proxy(si,{get(e,t,n){if(t in e){if(e[t].value)return e[t].value;const{type:a,value:r}=e[t].fallback;if("static"===a)return r;if("variable"===a)return`var(--rebilly-${r})`;if("func"===a)return r(n)}if(t.endsWith("Provided")){const n=t.replace("Provided","");if(n in e)return e[n].isProvided}},set:(e,t,n)=>{if(!(t in e)||!n)throw new Error(`Invalid theme option provided: ${t}`);return e[t].value=n,e[t].isProvided=!0,!0}});class pi{constructor(e={}){this.overrides=e,this.theme=di}overrideTheme(){Object.keys(this.overrides).forEach((e=>{this.theme[e]=this.overrides[e]}))}get cssVars(){return Object.keys(this.theme).filter((e=>!pi.nonCssProperties.includes(e))).map(((e,t)=>`${t?" ":""}--rebilly-${e}: ${this.theme[e]};`)).join("\n")}build(){return this.overrideTheme(),{cssVars:this.cssVars}}}ci=["labels"],(ui="nonCssProperties")in(li=pi)?Object.defineProperty(li,ui,{value:ci,enumerable:!0,configurable:!0,writable:!0}):li[ui]=ci;function mi(e){let t=e;return t=t.replace(/\/\*(?:(?!\*\/)[\s\S])*\*\/|[\r\n\t]+/g,""),t=t.replace(/\s{2,}/g," "),t=t.replace(/\s([{:}])\s/g,"$1"),t=t.replace(/([;,])\s/g,"$1"),t=t.replace(/\s!/g,"!"),t}var fi=({options:{theme:e={},css:t}}={})=>{const n=(e=>{const t=`\n ${(e=>`\n/* Instruments 'global' variables\n------------------------------------------------------------ */\n:root {\n ${e.cssVars}\n\n --rebilly-fontWeight400: 400;\n --rebilly-fontWeight500: 500;\n --rebilly-fontWeight600: 600;\n --rebilly-fontScaleFactor: 1.5;\n --rebilly-fontScaleFactorS: 0.875;\n --rebilly-fontSizeS: calc(var(--rebilly-fontSizeBase) * var(--rebilly-fontScaleFactorS));\n --rebilly-fontLineHeightS: calc(var(--rebilly-fontSizeS) * 1);\n\n --rebilly-fontSizeL: calc(var(--rebilly-fontSizeBase) * var(--rebilly-fontScaleFactor));\n --rebilly-fontLineHeightL: calc(var(--rebilly-fontLineHeightBase) * 2);\n --rebilly-fontMarginTopL: 0;\n --rebilly-fontMarginBottomL: var(--rebilly-fontLineHeightBase);\n\n --rebilly-spacing2xs: calc(var(--rebilly-fontLineHeightBase) / 6);\n --rebilly-spacingXs: calc(var(--rebilly-fontLineHeightBase) / 4);\n --rebilly-spacingS: calc(var(--rebilly-fontLineHeightBase) / 2);\n --rebilly-spacingM: var(--rebilly-fontLineHeightBase);\n --rebilly-spacingL: calc(var(--rebilly-fontLineHeightBase) * 2);\n --rebilly-spacingXl: calc(var(--rebilly-fontLineHeightBase) * 4);\n\n --rebilly-spacingFormElementMinHeight: calc(var(--rebilly-spacingM) * 1.83333);\n\n --rebilly-summaryLoaderMinHeight: var(--rebilly-fontLineHeightBase);\n --rebilly-methodLoaderMinHeight: calc((4 * var(--rebilly-spacingFormElementMinHeight)) + (2 * var(--rebilly-fontLineHeightBase)) + (2 * var(--rebilly-spacingM)) + var(--rebilly-spacing2xs) + var(--rebilly-fontSizeS) + calc(2 * (var(--rebilly-spacingXs) + var(--rebilly-spacingS))) + var(--rebilly-spacingL));\n}\n\n/* Views. Method Selector\n------------------------------------------------------------ */\n.rebilly-instruments-method-selector.has-express-compact {\n padding-top: var(--rebilly-spacingS);\n}\n\n/* Express Methods\n------------------------------------------------------------ */\n@-webkit-keyframes rebillyExpressShine {\n to {\n background-position-x: -200%;\n }\n}\n@keyframes rebillyExpressShine {\n to {\n background-position-x: -200%;\n }\n}\n\n.rebilly-instruments-express-methods { padding: 2px; }\n\n.rebilly-instruments-express-methods.is-compact {\n border: 1px solid var(--rebilly-colorMutedBorder);\n padding: var(--rebilly-spacingS);\n padding-top: calc(var(--rebilly-spacingXs) + var(--rebilly-spacingS));\n padding-top: calc(var(--rebilly-fontSizeBase) + var(--rebilly-spacing2xs));\n border-radius: var(--rebilly-borderRadius);\n position: relative;\n}\n\n.rebilly-instruments-express-methods .rebilly-instruments-iframe {\n display: block;\n margin-bottom: 0;\n height: var(--rebilly-spacingFormElementMinHeight);\n}\n\n.rebilly-instruments-express-methods .rebilly-instruments-express-methods-container > * {\n border-radius: 6px;\n margin-bottom: var(--rebilly-spacingS);\n background: linear-gradient(110deg, var(--rebilly-colorMutedBorder) 0%, var(--rebilly-colorBackground) 25%, var(--rebilly-colorMutedBorder) 50%);\n background-size: 200% 100%;\n -webkit-animation: 1.5s rebillyExpressShine linear infinite;\n animation: 1.5s rebillyExpressShine linear infinite;\n height: 44px;\n}\n\n.rebilly-instruments-express-methods .rebilly-instruments-express-methods-container > *:last-child {\n margin: 0;\n}\n\n.rebilly-instruments-express-methods.is-compact .rebilly-instruments-express-methods-container {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-pack: center;\n -ms-flex-pack: center;\n justify-content: center;\n}\n\n.rebilly-instruments-express-methods.is-compact .rebilly-instruments-express-methods-container > * {\n -webkit-box-flex: 1;\n -ms-flex: 1 1 0px;\n flex: 1 1 0px;\n max-width: 260px;\n margin: 0 var(--rebilly-spacingXs);\n}\n\n.rebilly-instruments-express-methods.is-compact .rebilly-instruments-express-methods-container > *:first-child {\n margin-left: 0;\n}\n\n.rebilly-instruments-express-methods.is-compact .rebilly-instruments-express-methods-container > *:last-child {\n margin-right: 0;\n}\n\n.rebilly-instruments-express-methods .rebilly-instruments-express-methods-label {\n display: none;\n}\n\n.rebilly-instruments-express-methods.is-compact .rebilly-instruments-express-methods-label {\n position: absolute;\n font-family: var(--rebilly-fontFamily);\n top: 0; left: 50%;\n -webkit-transform: translateX(-50%) translateY(-50%);\n transform: translateX(-50%) translateY(-50%);\n color: var(--rebilly-colorText);\n padding: var(--rebilly-spacing2xs) var(--rebilly-spacingM);\n line-height: 1;\n background: var(--rebilly-colorBackground);\n display: inline-block;\n font-weight: var(--rebilly-fontWeightBase);\n min-height: auto;\n margin: 0;\n white-space: nowrap;\n}\n\n@media (max-width: 600px) {\n .rebilly-instruments-express-methods.is-compact .rebilly-instruments-express-methods-container {\n -webkit-box-orient: vertical;\n -webkit-box-direction: normal;\n -ms-flex-direction: column;\n flex-direction: column;\n }\n\n .rebilly-instruments-express-methods.is-compact .rebilly-instruments-express-methods-container > * {\n max-width: 100%;\n margin: 0 0 var(--rebilly-spacingS);\n }\n \n .rebilly-instruments-express-methods.is-compact .rebilly-instruments-express-methods-container > *:last-child {\n margin: 0;\n }\n}\n\n/* Components. Divider\n------------------------------------------------------------ */\n.rebilly-instruments-divider {\n line-height: var(--rebilly-fontLineHeightBase);\n padding: var(--rebilly-spacingM) 0;\n margin: 0;\n position: relative;\n outline: 0;\n border: 0;\n text-align: center;\n font-family: var(--rebilly-fontFamily);\n}\n\n.rebilly-instruments-divider-s { padding: var(--rebilly-spacingS) 0; }\n.rebilly-instruments-divider-xs { padding: var(--rebilly-spacingXs) 0; }\n\n.rebilly-instruments-divider::before {\n background: var(--rebilly-colorMutedBorder);\n content: '';\n position: absolute;\n left: 0;\n top: 50%;\n width: 100%;\n height: 1px;\n}\n\n.rebilly-instruments-divider .rebilly-instruments-divider-label {\n color: var(--rebilly-colorMutedText);\n font-weight: var(--rebilly-fontWeightBase);\n padding: 0 var(--rebilly-spacingM);\n line-height: var(--rebilly-fontLineHeightS);\n background-color: var(--rebilly-colorBackground);\n font-size: var(--rebilly-fontSizeS);\n position: relative;\n display: inline-block;\n}\n\n/* Vendor, Postmate\n------------------------------------------------------------ */\n.rebilly-instruments-iframe {\n border: none;\n width: 100%;\n height: 0;\n padding: 0;\n}\n\n.rebilly-instruments-iframe-overlay {\n top: -2px;\n left: -2px;\n width: calc(100vw + 2px);\n height: 100vh;\n min-height: calc(100vh + 4px);\n position: fixed;\n z-index: 99999999999999;\n}\n\n/* Views. Modal\n------------------------------------------------------------ */\n.rebilly-instruments-modal-overlay {\n position: fixed;\n top: 0;\n left: 0;\n overflow-x: hidden;\n overflow-y: auto;\n z-index: 1055;\n padding: 30px;\n width: 100%;\n height: 100%;\n margin: 0;\n padding: 0;\n -webkit-transition: all 0.12s ease-in-out;\n transition: all 0.12s ease-in-out;\n background-color: rgba(0,0,0,0.7);\n opacity: 0\n}\n\n.rebilly-instruments-modal-overlay.is-visible {\n opacity: 1;\n}\n\n.rebilly-instruments-modal-container {\n -webkit-transition: all .24s ease-in-out;\n transition: all .24s ease-in-out;\n position: relative;\n max-width: 750px;\n background: var(--rebilly-colorBackground);\n margin: 50px auto 20px;\n -webkit-box-shadow: 0 19px 38px rgba(0,0,0,0.20), 0 15px 12px rgba(0,0,0,0.12);\n box-shadow: 0 19px 38px rgba(0,0,0,0.20), 0 15px 12px rgba(0,0,0,0.12);\n border-radius: 4px;\n -webkit-transform: translateY(-50px);\n transform: translateY(-50px);\n opacity: 0;\n}\n\n.rebilly-instruments-modal-container.is-visible {\n -webkit-transform: translateY(0);\n transform: translateY(0);\n opacity: 1;\n}\n\n.rebilly-instruments-modal-container.is-redirect {\n max-width: 60vw;\n width: auto;\n}\n\n.rebilly-instruments-modal-content {\n -webkit-transition: all .15s;\n transition: all .15s;\n padding: 20px;\n overflow: hidden;\n background-color: var(--rebilly-colorBackground);\n text-align: center;\n border-radius: 4px;\n}\n\n.rebilly-instruments-modal-content .rebilly-instruments-iframe {\n -webkit-transition: all .15s;\n transition: all .15s;\n height: auto;\n min-height: 360px;\n}\n\n.rebilly-instruments-modal-container.is-redirect .rebilly-instruments-modal-content {\n padding: 0;\n}\n\n.rebilly-instruments-modal-close {\n position: absolute;\n width: 30px;\n height: 30px;\n top: -40px;\n right: 0;\n fill: #FFF;\n cursor: pointer;\n}\n\n.rebilly-instruments-modal-close:hover{\n color: #000;\n}\n\n@media screen and (max-width: 480px) {\n .rebilly-instruments-modal-container.is-redirect {\n max-width: 96vw;\n margin: 20px auto 20px;\n }\n}\n\n/* Components. Loader\n------------------------------------------------------------ */\n.rebilly-instruments-loader {\n text-align: left;\n position: absolute;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n display: none;\n background-color: var(--rebilly-colorBackground);\n z-index: 1000;\n -webkit-transition: all 200ms;\n transition: all 200ms;\n border-radius: var(--rebilly-borderRadius);\n}\n\n.rebilly-instruments-loader.is-active {\n display: block;\n}\n\n/* Type */\n.rebilly-instruments-loader p {\n color: var(--rebilly-colorText);\n display: inline-block;\n margin: 0;\n font-weight: var(--rebilly-fontWeightBase);\n font-size: var(--rebilly-fontSizeBase);\n line-height: var(--rebilly-fontLineHeightBase);\n}\n\n.rebilly-instruments-loader small {\n color: var(--rebilly-colorText);\n display: inline-block;\n margin: 0;\n font-size: var(--rebilly-fontSizeS);\n line-height: 1;\n}\n\n/* Summary */\n.rebilly-instruments-summary-loader-total p.total {\n font-family: var(--rebilly-fontFamily);\n font-size: var(--rebilly-fontSizeL);\n font-weight: var(--rebilly-headingFontWeight);\n}\n\n/* Methods */\n.rebilly-instruments-methods-loader-card-icon {\n width: 32px;\n height: 22px;\n margin-left: var(--rebilly-spacing2xs);\n margin-bottom: var(--rebilly-spacing2xs);\n}\n\n.rebilly-instruments-methods-loader-form-fields { margin: calc(var(--rebilly-spacingXs) + var(--rebilly-spacingS)) 0; }\n\n/* Spinner */\n.rebilly-instruments-loader-spinner {\n top: 50%;\n left: 50%;\n position: absolute;\n -webkit-transform: translate(-50%, -50%);\n transform: translate(-50%, -50%);\n border: 2px solid transparent;\n border-top: 2px solid var(--rebilly-colorPrimary);\n border-radius: 50%;\n width: var(--rebilly-fontLineHeightBase);\n height: var(--rebilly-fontLineHeightBase);\n margin-top: calc(-1 * var(--rebilly-fontLineHeightBase) / 2);\n margin-left: calc(-1 * var(--rebilly-fontLineHeightBase) / 2);\n -webkit-animation: spin 0.5s ease infinite;\n animation: spin 0.5s ease infinite;\n}\n\n@-webkit-keyframes spin {\n 0% { -webkit-transform: rotate(0deg); transform: rotate(0deg); }\n 100% { -webkit-transform: rotate(360deg); transform: rotate(360deg); }\n}\n\n@keyframes spin {\n 0% { -webkit-transform: rotate(0deg); transform: rotate(0deg); }\n 100% { -webkit-transform: rotate(360deg); transform: rotate(360deg); }\n}\n\n/* Utils */\n.rebilly-instruments-loader-display-flex { display: -webkit-box; display: -ms-flexbox; display: flex; }\n.rebilly-instruments-loader-align-center { -webkit-box-align: center; -ms-flex-align: center; align-items: center; }\n.rebilly-instruments-loader-justify-space-between { -webkit-box-pack: justify; -ms-flex-pack: justify; justify-content: space-between; }\n.rebilly-instruments-loader-justify-end { -webkit-box-pack: end; -ms-flex-pack: end; justify-content: flex-end; }\n\n.is-el-loading {\n position: relative;\n color: transparent!important;\n}\n\n.is-el-loading::before {\n position: absolute;\n content: '';\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n background: linear-gradient(110deg, var(--rebilly-colorMutedBorder) 0%, var(--rebilly-colorBackground) 25%, var(--rebilly-colorMutedBorder) 50%);\n background-size: 200% 100%;\n -webkit-animation: 1.5s rebillyExpressShine linear infinite;\n animation: 1.5s rebillyExpressShine linear infinite;\n border-radius: var(--rebilly-borderRadius);\n}\n\n.rebilly-instruments-loader-form-el {\n width: 100%;\n min-height: var(--rebilly-spacingFormElementMinHeight);\n}\n\n.rebilly-instruments-loader-form-label {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n margin-bottom: var(--rebilly-spacing2xs);\n}\n\n.rebilly-instruments-loader-form-el.is-button {\n margin-top: var(--rebilly-spacingL);\n text-align: center;\n font-size: var(--rebilly-buttonFontSize);\n font-family: var(--rebilly-buttonFontFamily);\n line-height: var(--rebilly-buttonFontLineHeight);\n padding: var(--rebilly-spacingS);\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n background: var(--rebilly-buttonColorBackground);\n color: transparent;\n border-radius: var(--rebilly-buttonBorderRadius);\n font-weight: var(--rebilly-buttonFontWeight);\n border: var(--rebilly-buttonBorder);\n -webkit-box-shadow: var(--rebilly-buttonBoxShadow);\n box-shadow: var(--rebilly-buttonBoxShadow);\n outline: none;\n cursor: not-allowed;\n opacity: 0.6; \n}\n\n.rebilly-instruments-methods-loader-card-icon.is-el-loading::before {\n border-radius: calc(var(--rebilly-borderRadius) / 2);\n}\n\n/* Error\n------------------------------------------------------------ */\n.rebilly-instruments-error-card {\n border: 1px solid var(--rebilly-colorDanger);\n border-radius: var(--rebilly-borderRadius);\n text-align: left;\n padding: var(--rebilly-spacingS);\n margin-bottom: var(--rebilly-spacingL);\n}\n\n.rebilly-instruments-error-card-header {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n -webkit-box-pack: justify;\n -ms-flex-pack: justify;\n justify-content: space-between;\n width: 100%;\n -webkit-box-align: start;\n -ms-flex-align: start;\n align-items: flex-start;\n}\n\n.rebilly-instruments-error-card-title {\n font-weight: var(--rebilly-fontWeightBase);\n font-size: var(--rebilly-fontSizeBase);\n line-height: var(--rebilly-fontLineHeightBase);\n font-family: var(--rebilly-headingFontFamily);\n margin: 0 0 var(--rebilly-spacingS);\n color: var(--rebilly-colorDanger);\n}\n\n.rebilly-instruments-error-card-close-button {\n cursor: pointer;\n background: transparent;\n border: none;\n padding: 0;\n}\n\n.rebilly-instruments-error-card-close-button svg {\n width: var(--rebilly-fontLineHeightBase);\n height: var(--rebilly-fontLineHeightBase);\n fill: var(--rebilly-colorText);\n}\n\n.rebilly-instruments-error-card-details {\n padding: 0;\n margin: 0;\n list-style: none;\n}\n\n.rebilly-instruments-error-card-details li,\n.rebilly-instruments-error-card-message {\n color: var(--rebilly-colorText);\n margin: 0;\n font-weight: var(--rebilly-fontWeightBase);\n font-size: var(--rebilly-fontSizeBase);\n line-height: var(--rebilly-fontLineHeightBase);\n}\n`)(new pi(e).build())}\n `;return t})(e||{});return Uo({element:"style",attributes:{type:"text/css"},content:mi(n),target:"head"}),t&&Uo({element:"style",attributes:{type:"text/css"},content:mi(t),target:"head"}),n};const hi=({state:e})=>{e.translate.init(e.options.locale,e.options.i18n),e.translate.translateItems()};var yi,gi,bi=function(e){return e&&e.Math==Math&&e},vi=bi("object"==typeof globalThis&&globalThis)||bi("object"==typeof window&&window)||bi("object"==typeof self&&self)||bi("object"==typeof g&&g)||function(){return this}()||Function("return this")(),wi=function(e){try{return!!e()}catch(e){return!0}},ki=!wi((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),xi=!wi((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})),Ei=Function.prototype.call,Ai=xi?Ei.bind(Ei):function(){return Ei.apply(Ei,arguments)},Si={}.propertyIsEnumerable,Pi=Object.getOwnPropertyDescriptor,Li=Pi&&!Si.call({1:2},1)?function(e){var t=Pi(this,e);return!!t&&t.enumerable}:Si,Ti={f:Li},Ci=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},Ii=Function.prototype,$i=Ii.bind,Oi=Ii.call,_i=xi&&$i.bind(Oi,Oi),Fi=xi?function(e){return e&&_i(e)}:function(e){return e&&function(){return Oi.apply(e,arguments)}},Hi=Fi({}.toString),Ri=Fi("".slice),Mi=function(e){return Ri(Hi(e),8,-1)},ji=Object,Ni=Fi("".split),Bi=wi((function(){return!ji("z").propertyIsEnumerable(0)}))?function(e){return"String"==Mi(e)?Ni(e,""):ji(e)}:ji,qi=TypeError,Di=function(e){if(null==e)throw qi("Can't call method on "+e);return e},zi=function(e){return Bi(Di(e))},Ui=function(e){return"function"==typeof e},Wi=function(e){return"object"==typeof e?null!==e:Ui(e)},Gi=function(e){return Ui(e)?e:void 0},Vi=function(e,t){return arguments.length<2?Gi(vi[e]):vi[e]&&vi[e][t]},Ki=Fi({}.isPrototypeOf),Xi=Vi("navigator","userAgent")||"",Ji=vi.process,Yi=vi.Deno,Zi=Ji&&Ji.versions||Yi&&Yi.version,Qi=Zi&&Zi.v8;Qi&&(gi=(yi=Qi.split("."))[0]>0&&yi[0]<4?1:+(yi[0]+yi[1])),!gi&&Xi&&(!(yi=Xi.match(/Edge\/(\d+)/))||yi[1]>=74)&&(yi=Xi.match(/Chrome\/(\d+)/))&&(gi=+yi[1]);var es=gi,ts=!!Object.getOwnPropertySymbols&&!wi((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&es&&es<41})),ns=ts&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,as=Object,rs=ns?function(e){return"symbol"==typeof e}:function(e){var t=Vi("Symbol");return Ui(t)&&Ki(t.prototype,as(e))},os=String,is=function(e){try{return os(e)}catch(e){return"Object"}},ss=TypeError,ls=function(e){if(Ui(e))return e;throw ss(is(e)+" is not a function")},us=function(e,t){var n=e[t];return null==n?void 0:ls(n)},cs=TypeError,ds=Object.defineProperty,ps=function(e,t){try{ds(vi,e,{value:t,configurable:!0,writable:!0})}catch(n){vi[e]=t}return t},ms="__core-js_shared__",fs=vi[ms]||ps(ms,{}),hs=b((function(e){(e.exports=function(e,t){return fs[e]||(fs[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.23.3",mode:"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.23.3/LICENSE",source:"https://github.com/zloirock/core-js"})})),ys=Object,gs=function(e){return ys(Di(e))},bs=Fi({}.hasOwnProperty),vs=Object.hasOwn||function(e,t){return bs(gs(e),t)},ws=0,ks=Math.random(),xs=Fi(1..toString),Es=function(e){return"Symbol("+(void 0===e?"":e)+")_"+xs(++ws+ks,36)},As=hs("wks"),Ss=vi.Symbol,Ps=Ss&&Ss.for,Ls=ns?Ss:Ss&&Ss.withoutSetter||Es,Ts=function(e){if(!vs(As,e)||!ts&&"string"!=typeof As[e]){var t="Symbol."+e;ts&&vs(Ss,e)?As[e]=Ss[e]:As[e]=ns&&Ps?Ps(t):Ls(t)}return As[e]},Cs=TypeError,Is=Ts("toPrimitive"),$s=function(e,t){if(!Wi(e)||rs(e))return e;var n,a=us(e,Is);if(a){if(void 0===t&&(t="default"),n=Ai(a,e,t),!Wi(n)||rs(n))return n;throw Cs("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,a;if("string"===t&&Ui(n=e.toString)&&!Wi(a=Ai(n,e)))return a;if(Ui(n=e.valueOf)&&!Wi(a=Ai(n,e)))return a;if("string"!==t&&Ui(n=e.toString)&&!Wi(a=Ai(n,e)))return a;throw cs("Can't convert object to primitive value")}(e,t)},Os=function(e){var t=$s(e,"string");return rs(t)?t:t+""},_s=vi.document,Fs=Wi(_s)&&Wi(_s.createElement),Hs=function(e){return Fs?_s.createElement(e):{}},Rs=!ki&&!wi((function(){return 7!=Object.defineProperty(Hs("div"),"a",{get:function(){return 7}}).a})),Ms=Object.getOwnPropertyDescriptor,js=ki?Ms:function(e,t){if(e=zi(e),t=Os(t),Rs)try{return Ms(e,t)}catch(e){}if(vs(e,t))return Ci(!Ai(Ti.f,e,t),e[t])},Ns={f:js},Bs=ki&&wi((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),qs=String,Ds=TypeError,zs=function(e){if(Wi(e))return e;throw Ds(qs(e)+" is not an object")},Us=TypeError,Ws=Object.defineProperty,Gs=Object.getOwnPropertyDescriptor,Vs="enumerable",Ks="configurable",Xs="writable",Js=ki?Bs?function(e,t,n){if(zs(e),t=Os(t),zs(n),"function"==typeof e&&"prototype"===t&&"value"in n&&Xs in n&&!n.writable){var a=Gs(e,t);a&&a.writable&&(e[t]=n.value,n={configurable:Ks in n?n.configurable:a.configurable,enumerable:Vs in n?n.enumerable:a.enumerable,writable:!1})}return Ws(e,t,n)}:Ws:function(e,t,n){if(zs(e),t=Os(t),zs(n),Rs)try{return Ws(e,t,n)}catch(e){}if("get"in n||"set"in n)throw Us("Accessors not supported");return"value"in n&&(e[t]=n.value),e},Ys={f:Js},Zs=ki?function(e,t,n){return Ys.f(e,t,Ci(1,n))}:function(e,t,n){return e[t]=n,e},Qs=Function.prototype,el=ki&&Object.getOwnPropertyDescriptor,tl=vs(Qs,"name"),nl={EXISTS:tl,PROPER:tl&&"something"===function(){}.name,CONFIGURABLE:tl&&(!ki||ki&&el(Qs,"name").configurable)},al=Fi(Function.toString);Ui(fs.inspectSource)||(fs.inspectSource=function(e){return al(e)});var rl,ol,il,sl=fs.inspectSource,ll=vi.WeakMap,ul=Ui(ll)&&/native code/.test(sl(ll)),cl=hs("keys"),dl=function(e){return cl[e]||(cl[e]=Es(e))},pl={},ml="Object already initialized",fl=vi.TypeError,hl=vi.WeakMap;if(ul||fs.state){var yl=fs.state||(fs.state=new hl),gl=Fi(yl.get),bl=Fi(yl.has),vl=Fi(yl.set);rl=function(e,t){if(bl(yl,e))throw new fl(ml);return t.facade=e,vl(yl,e,t),t},ol=function(e){return gl(yl,e)||{}},il=function(e){return bl(yl,e)}}else{var wl=dl("state");pl[wl]=!0,rl=function(e,t){if(vs(e,wl))throw new fl(ml);return t.facade=e,Zs(e,wl,t),t},ol=function(e){return vs(e,wl)?e[wl]:{}},il=function(e){return vs(e,wl)}}var kl,xl={set:rl,get:ol,has:il,enforce:function(e){return il(e)?ol(e):rl(e,{})},getterFor:function(e){return function(t){var n;if(!Wi(t)||(n=ol(t)).type!==e)throw fl("Incompatible receiver, "+e+" required");return n}}},El=b((function(e){var t=nl.CONFIGURABLE,n=xl.enforce,a=xl.get,r=Object.defineProperty,o=ki&&!wi((function(){return 8!==r((function(){}),"length",{value:8}).length})),i=String(String).split("String"),s=e.exports=function(e,a,s){"Symbol("===String(a).slice(0,7)&&(a="["+String(a).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),s&&s.getter&&(a="get "+a),s&&s.setter&&(a="set "+a),(!vs(e,"name")||t&&e.name!==a)&&(ki?r(e,"name",{value:a,configurable:!0}):e.name=a),o&&s&&vs(s,"arity")&&e.length!==s.arity&&r(e,"length",{value:s.arity});try{s&&vs(s,"constructor")&&s.constructor?ki&&r(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var l=n(e);return vs(l,"source")||(l.source=i.join("string"==typeof a?a:"")),e};Function.prototype.toString=s((function(){return Ui(this)&&a(this).source||sl(this)}),"toString")})),Al=function(e,t,n,a){a||(a={});var r=a.enumerable,o=void 0!==a.name?a.name:t;if(Ui(n)&&El(n,o,a),a.global)r?e[t]=n:ps(t,n);else{try{a.unsafe?e[t]&&(r=!0):delete e[t]}catch(e){}r?e[t]=n:Ys.f(e,t,{value:n,enumerable:!1,configurable:!a.nonConfigurable,writable:!a.nonWritable})}return e},Sl=Math.ceil,Pl=Math.floor,Ll=Math.trunc||function(e){var t=+e;return(t>0?Pl:Sl)(t)},Tl=function(e){var t=+e;return t!=t||0===t?0:Ll(t)},Cl=Math.max,Il=Math.min,$l=Math.min,Ol=function(e){return e>0?$l(Tl(e),9007199254740991):0},_l=function(e){return Ol(e.length)},Fl=function(e){return function(t,n,a){var r,o=zi(t),i=_l(o),s=function(e,t){var n=Tl(e);return n<0?Cl(n+t,0):Il(n,t)}(a,i);if(e&&n!=n){for(;i>s;)if((r=o[s++])!=r)return!0}else for(;i>s;s++)if((e||s in o)&&o[s]===n)return e||s||0;return!e&&-1}},Hl={includes:Fl(!0),indexOf:Fl(!1)}.indexOf,Rl=Fi([].push),Ml=function(e,t){var n,a=zi(e),r=0,o=[];for(n in a)!vs(pl,n)&&vs(a,n)&&Rl(o,n);for(;t.length>r;)vs(a,n=t[r++])&&(~Hl(o,n)||Rl(o,n));return o},jl=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Nl=jl.concat("length","prototype"),Bl=Object.getOwnPropertyNames||function(e){return Ml(e,Nl)},ql={f:Bl},Dl={f:Object.getOwnPropertySymbols},zl=Fi([].concat),Ul=Vi("Reflect","ownKeys")||function(e){var t=ql.f(zs(e)),n=Dl.f;return n?zl(t,n(e)):t},Wl=function(e,t,n){for(var a=Ul(t),r=Ys.f,o=Ns.f,i=0;i<a.length;i++){var s=a[i];vs(e,s)||n&&vs(n,s)||r(e,s,o(t,s))}},Gl=/#|\.prototype\./,Vl=function(e,t){var n=Xl[Kl(e)];return n==Yl||n!=Jl&&(Ui(t)?wi(t):!!t)},Kl=Vl.normalize=function(e){return String(e).replace(Gl,".").toLowerCase()},Xl=Vl.data={},Jl=Vl.NATIVE="N",Yl=Vl.POLYFILL="P",Zl=Vl,Ql=Ns.f,eu=function(e,t){var n,a,r,o,i,s=e.target,l=e.global,u=e.stat;if(n=l?vi:u?vi[s]||ps(s,{}):(vi[s]||{}).prototype)for(a in t){if(o=t[a],r=e.dontCallGetSet?(i=Ql(n,a))&&i.value:n[a],!Zl(l?a:s+(u?".":"#")+a,e.forced)&&void 0!==r){if(typeof o==typeof r)continue;Wl(o,r)}(e.sham||r&&r.sham)&&Zs(o,"sham",!0),Al(n,a,o,e)}},tu=Object.keys||function(e){return Ml(e,jl)},nu=ki&&!Bs?Object.defineProperties:function(e,t){zs(e);for(var n,a=zi(t),r=tu(t),o=r.length,i=0;o>i;)Ys.f(e,n=r[i++],a[n]);return e},au={f:nu},ru=Vi("document","documentElement"),ou=dl("IE_PROTO"),iu=function(){},su=function(e){return"<script>"+e+"</"+"script>"},lu=function(e){e.write(su("")),e.close();var t=e.parentWindow.Object;return e=null,t},uu=function(){try{kl=new ActiveXObject("htmlfile")}catch(e){}var e,t;uu="undefined"!=typeof document?document.domain&&kl?lu(kl):((t=Hs("iframe")).style.display="none",ru.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(su("document.F=Object")),e.close(),e.F):lu(kl);for(var n=jl.length;n--;)delete uu.prototype[jl[n]];return uu()};pl[ou]=!0;var cu,du,pu,mu=Object.create||function(e,t){var n;return null!==e?(iu.prototype=zs(e),n=new iu,iu.prototype=null,n[ou]=e):n=uu(),void 0===t?n:au.f(n,t)},fu=!wi((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),hu=dl("IE_PROTO"),yu=Object,gu=yu.prototype,bu=fu?yu.getPrototypeOf:function(e){var t=gs(e);if(vs(t,hu))return t[hu];var n=t.constructor;return Ui(n)&&t instanceof n?n.prototype:t instanceof yu?gu:null},vu=Ts("iterator"),wu=!1;[].keys&&("next"in(pu=[].keys())?(du=bu(bu(pu)))!==Object.prototype&&(cu=du):wu=!0);var ku=null==cu||wi((function(){var e={};return cu[vu].call(e)!==e}));ku&&(cu={}),Ui(cu[vu])||Al(cu,vu,(function(){return this}));var xu={IteratorPrototype:cu,BUGGY_SAFARI_ITERATORS:wu},Eu=Ys.f,Au=Ts("toStringTag"),Su={},Pu=xu.IteratorPrototype,Lu=function(){return this},Tu={};Tu[Ts("toStringTag")]="z";var Cu="[object z]"===String(Tu),Iu=Ts("toStringTag"),$u=Object,Ou="Arguments"==Mi(function(){return arguments}()),_u=Cu?Mi:function(e){var t,n,a;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=$u(e),Iu))?n:Ou?Mi(t):"Object"==(a=Mi(t))&&Ui(t.callee)?"Arguments":a},Fu=String,Hu=function(e){if("Symbol"===_u(e))throw TypeError("Cannot convert a Symbol value to a string");return Fu(e)},Ru=Ts("match"),Mu=function(){var e=zs(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t},ju=RegExp.prototype,Nu=function(e){var t=e.flags;return void 0!==t||"flags"in ju||vs(e,"flags")||!Ki(ju,e)?t:Ai(Mu,e)},Bu=function(){},qu=[],Du=Vi("Reflect","construct"),zu=/^\s*(?:class|function)\b/,Uu=Fi(zu.exec),Wu=!zu.exec(Bu),Gu=function(e){if(!Ui(e))return!1;try{return Du(Bu,qu,e),!0}catch(e){return!1}},Vu=function(e){if(!Ui(e))return!1;switch(_u(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return Wu||!!Uu(zu,sl(e))}catch(e){return!0}};Vu.sham=!0;var Ku,Xu,Ju=!Du||wi((function(){var e;return Gu(Gu.call)||!Gu(Object)||!Gu((function(){e=!0}))||e}))?Vu:Gu,Yu=TypeError,Zu=Ts("species"),Qu=function(e,t){var n,a=zs(e).constructor;return void 0===a||null==(n=zs(a)[Zu])?t:function(e){if(Ju(e))return e;throw Yu(is(e)+" is not a constructor")}(n)},ec=Fi("".charAt),tc=Fi("".charCodeAt),nc=Fi("".slice),ac=function(e){return function(t,n){var a,r,o=Hu(Di(t)),i=Tl(n),s=o.length;return i<0||i>=s?e?"":void 0:(a=tc(o,i))<55296||a>56319||i+1===s||(r=tc(o,i+1))<56320||r>57343?e?ec(o,i):a:e?nc(o,i,i+2):r-56320+(a-55296<<10)+65536}},rc={codeAt:ac(!1),charAt:ac(!0)}.charAt,oc=vi.RegExp,ic=wi((function(){var e=oc("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),sc=ic||wi((function(){return!oc("a","y").sticky})),lc=ic||wi((function(){var e=oc("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),uc={BROKEN_CARET:lc,MISSED_STICKY:sc,UNSUPPORTED_Y:ic},cc=vi.RegExp,dc=wi((function(){var e=cc(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),pc=vi.RegExp,mc=wi((function(){var e=pc("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),fc=xl.get,hc=hs("native-string-replace",String.prototype.replace),yc=RegExp.prototype.exec,gc=yc,bc=Fi("".charAt),vc=Fi("".indexOf),wc=Fi("".replace),kc=Fi("".slice),xc=(Xu=/b*/g,Ai(yc,Ku=/a/,"a"),Ai(yc,Xu,"a"),0!==Ku.lastIndex||0!==Xu.lastIndex),Ec=uc.BROKEN_CARET,Ac=void 0!==/()??/.exec("")[1];(xc||Ac||Ec||dc||mc)&&(gc=function(e){var t,n,a,r,o,i,s,l=this,u=fc(l),c=Hu(e),d=u.raw;if(d)return d.lastIndex=l.lastIndex,t=Ai(gc,d,c),l.lastIndex=d.lastIndex,t;var p=u.groups,m=Ec&&l.sticky,f=Ai(Mu,l),h=l.source,y=0,g=c;if(m&&(f=wc(f,"y",""),-1===vc(f,"g")&&(f+="g"),g=kc(c,l.lastIndex),l.lastIndex>0&&(!l.multiline||l.multiline&&"\n"!==bc(c,l.lastIndex-1))&&(h="(?: "+h+")",g=" "+g,y++),n=new RegExp("^(?:"+h+")",f)),Ac&&(n=new RegExp("^"+h+"$(?!\\s)",f)),xc&&(a=l.lastIndex),r=Ai(yc,m?n:l,g),m?r?(r.input=kc(r.input,y),r[0]=kc(r[0],y),r.index=l.lastIndex,l.lastIndex+=r[0].length):l.lastIndex=0:xc&&r&&(l.lastIndex=l.global?r.index+r[0].length:a),Ac&&r&&r.length>1&&Ai(hc,r[0],n,(function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(r[o]=void 0)})),r&&p)for(r.groups=i=mu(null),o=0;o<p.length;o++)i[(s=p[o])[0]]=r[s[1]];return r});var Sc=gc,Pc=TypeError,Lc=Ts("matchAll"),Tc="RegExp String",Cc="RegExp String Iterator",Ic=xl.set,$c=xl.getterFor(Cc),Oc=RegExp.prototype,_c=TypeError,Fc=Fi("".indexOf),Hc=Fi("".matchAll),Rc=!!Hc&&!wi((function(){Hc("a",/./)})),Mc=function(e,t,n,a){var r,o,i,s=t+" Iterator";return e.prototype=mu(Pu,{next:Ci(+!a,n)}),o=s,i=!1,(r=e)&&!i&&(r=r.prototype),r&&!vs(r,Au)&&Eu(r,Au,{configurable:!0,value:o}),Su[s]=Lu,e}((function(e,t,n,a){Ic(this,{type:Cc,regexp:e,string:t,global:n,unicode:a,done:!1})}),Tc,(function(){var e=$c(this);if(e.done)return{value:void 0,done:!0};var t=e.regexp,n=e.string,a=function(e,t){var n=e.exec;if(Ui(n)){var a=Ai(n,e,t);return null!==a&&zs(a),a}if("RegExp"===Mi(e))return Ai(Sc,e,t);throw Pc("RegExp#exec called on incompatible receiver")}(t,n);return null===a?{value:void 0,done:e.done=!0}:e.global?(""===Hu(a[0])&&(t.lastIndex=function(e,t,n){return t+(n?rc(e,t).length:1)}(n,Ol(t.lastIndex),e.unicode)),{value:a,done:!1}):(e.done=!0,{value:a,done:!1})})),jc=function(e){var t,n,a,r=zs(this),o=Hu(e),i=Qu(r,RegExp),s=Hu(Nu(r));return t=new i(i===RegExp?r.source:r,s),n=!!~Fc(s,"g"),a=!!~Fc(s,"u"),t.lastIndex=Ol(r.lastIndex),new Mc(t,o,n,a)};function Nc(e){const t={};return function(e){const t={};function n(e){const a=e.match(/var\((.+?)\)/g);if(a){let r=e;return a.forEach((n=>{const a=n.match(/\((.*)\)/i)[1];r=e.replace(n,t[a])})),n(r)}return e}return[...e.matchAll(/(--rebilly.*(?=:))[:\s](.*(?=;))/g)].forEach((e=>{t[e[1]]=e[2].trim()})),Object.entries(t).map((([e,t])=>[e,n(t)]))}(e).forEach((([e,n])=>{t[e]=n})),t}eu({target:"String",proto:!0,forced:Rc},{matchAll:function(e){var t,n,a,r,o,i=Di(this);if(null!=e){if(Wi(r=e)&&(void 0!==(o=r[Ru])?o:"RegExp"==Mi(r))&&(t=Hu(Di(Nu(e))),!~Fc(t,"g")))throw _c("`.matchAll` does not allow non-global regexes");if(Rc)return Hc(i,e);if(a=us(e,Lc))return Ai(a,e,i)}else if(Rc)return Hc(i,e);return n=Hu(i),new RegExp(e,"g")[Lc](n)}}),Lc in Oc||Al(Oc,Lc,jc);const Bc=(e,t="")=>({color:e[`--rebilly-${t}ColorText`],fontFamily:e[`--rebilly-${t}FontFamily`],fontSize:e[`--rebilly-${t}FontSize`],fontWeight:e[`--rebilly-${t}FontWeight`],lineHeight:e[`--rebilly-${t}FontLineHeight`],background:e[`--rebilly-${t}ColorBackground`],boxShadow:e[`--rebilly-${t}BoxShadow`]});function qc({eventName:e,callback:t}){if(!ut.includes(e))throw new Error(`${e} is not a supported event`);const n=be(e);lt[n].addEventListener(t)}async function Dc({componentName:e,payload:t,state:n}){switch(e){case"result":n.iframeComponents.form&&(n.iframeComponents.form.destroy(),n.iframeComponents.form=null),async function({payload:e,state:t}){var n,a;n=t.form,a='<div class="rebilly-instruments-result"></div>',n.querySelector(".rebilly-instruments-content").innerHTML=a,t.loader.startLoading({id:"rebilly-instruments-result"}),t.loader.stopLoading({id:"express-purchase"});const r=document.querySelector(".rebilly-instruments-result"),{paymentMethodsUrl:o}=t.options._computed,i={options:t.options,mainStyleVars:t.mainStyleVars,[t.options.transactionType]:e},s=await new ht({state:t,name:"rebilly-instruments-result",url:`${o}/result`,container:r,model:i});s.bindEventListeners({loader:t.loader}),t.iframeComponents.form=s}({payload:t,state:n});break;case"confirmation":!async function({payload:e,state:t}){var n,a;e.billingAddress&&t.summary&&t.data.isPurchase&&Ga({state:t,instrument:e});const r=t.iframeComponents.form,o={options:t.options,data:t.data.toPostmatesModel(),mainStyleVars:t.mainStyleVars,instrument:e};null==r||null===(n=r.component)||void 0===n||n.call("route",{name:"confirmation"}),null==r||null===(a=r.component)||void 0===a||a.call("update",o),document.querySelectorAll('[data-rebilly-instruments="express-method"]').forEach((e=>{e.style.overflow="hidden",e.style.height="0px"}))}({payload:t,state:n});break;default:throw new Error(`'${e}' not a supported component`)}}var zc=({state:e={}})=>{e.options.features.autoConfirmation&&qc({eventName:"instrument-ready",callback:t=>{var n;if("paypal"===(null===(n=t._raw)||void 0===n?void 0:n.method)&&!e.data.isShippingRequired)return"setup"===e.options.transactionType?jo({state:e,payload:t}):Mo({state:e,payload:t}),void e.loader.startLoading({state:e,id:"express-purchase",message:"form.loaderMessages.processingPayment"});Dc({componentName:"confirmation",payload:t,state:e})}}),e.options.features.autoResult&&qc({eventName:"setup"===e.options.transactionType?"setup-completed":"purchase-completed",callback:t=>{!function({state:e,payload:t}){Dc({componentName:"result",payload:t,state:e})}({state:e,payload:t})}})};async function Uc({state:e,setupFramepay:t=Qo,...n}={}){try{var a,r,o;e.data={},e.options={},e.form=Wo({element:"form",options:n}),e.summary=Wo({element:"summary",options:n}),e.form.style.maxWidth="750px",e.summary&&(e.summary.style.maxWidth="750px"),e.options=Zo({options:n}),e.storefront=Go({options:n}),e.mainStyleVars=fi({options:n}),e.options.themeFramepay=(({state:e,options:t={}})=>{const n=Nc(`\n ${e.mainStyleVars}\n ${t.css||""}\n `);return{base:{...Bc(n,"input"),":hover":Bc(n,"inputHover"),":focus":Bc(n,"inputFocus"),"::placeholder":Bc(n,"inputPlaceholder"),"::selection":Bc(n,"inputSelection")},invalid:{...Bc(n,"inputError"),":hover":Bc(n,"inputErrorHover"),":focus":Bc(n,"inputErrorFocus"),"::placeholder":Bc(n,"inputErrorPlaceholder"),"::selection":Bc(n,"inputErrorSelection")},buttons:{base:{...Bc(n,"buttonSecondary"),":hover":Bc(n,"buttonSecondaryHover"),":focus":Bc(n,"buttonSecondaryActive")},active:{...Bc(n,"button"),":hover":Bc(n,"buttonHover"),":focus":Bc(n,"buttonActive")}}}})({state:e,options:n}),e.loader.addDOMElement({el:e.form}),e.loader.addDOMElement({section:"summary",el:e.summary}),e.loader.startLoading({state:e,section:"summary",id:"rebilly-instruments-summary"}),e.loader.startLoading({state:e,id:"rebilly-instruments-form"});const[i]=await Promise.all([_o({state:e}),t(e)]);e.data=i,lt.dataReady.dispatch(e.data),e.i18n=(({state:e={}})=>{var t,n;if("auto"===e.options.locale&&null!==(t=e.data.riskMetadata)&&void 0!==t&&null!==(n=t.browserData)&&void 0!==n&&n.language){const{browserData:{language:t}}=e.data.riskMetadata;e.options.locale=t}return e.translate.init(e.options.locale,e.options.i18n),hi})({state:e}),!e.options.websiteId&&null!==(a=e.data.transaction)&&void 0!==a&&a.websiteId?e.options.websiteId=e.data.transaction.websiteId:!e.options.websiteId&&null!==(r=e.data.invoice)&&void 0!==r&&r.websiteId&&(e.options.websiteId=e.data.invoice.websiteId),e.data.transaction&&"setup"===(null===(o=e.data.transaction)||void 0===o?void 0:o.type)&&(e.options.transactionType="setup"),e.form&&zo({state:e}),e.summary&&async function({state:e}){const t={options:e.options,data:e.data.toPostmatesModel(),mainStyleVars:e.mainStyleVars},{paymentMethodsUrl:n}=e.options._computed,a=await new ht({state:e,name:"rebilly-instruments-summary",url:`${n}/summary`,container:e.summary,model:t});a.bindEventListeners({loader:e.loader}),e.iframeComponents.summary=a}({state:e}),e.i18n({state:e}),e.hasMounted=!0,i.readyToPay.length||(e.loader.stopLoading({id:"rebilly-instruments-form"}),pt(e.translate.getTranslation("form.error.noPaymentMethods")))}catch(e){throw pt(e),e}zc({state:e})}async function Wc({state:e}){var t;await(t=1e3,new Promise((e=>setTimeout(e,t)))),Object.values(e.iframeComponents).forEach((e=>null==e?void 0:e.destroy())),it.removeAll(document),e.iframeComponents={summary:null,form:null},e.hasMounted=!1,e.summary&&(e.summary.textContent=""),e.form.textContent="",Ca(),e.loader.clearAll()}function Gc({newOptions:e}){let t={};const n=Object.keys(e).some((e=>["items","money","invoiceId","transactionId"].includes(e)));return t=n?{items:null,money:null,invoiceId:null,transactionId:null}:t,t}var Vc,Kc,Xc=TypeError,Jc=function(e){return function(t,n,a,r){ls(n);var o=gs(t),i=Bi(o),s=_l(o),l=e?s-1:0,u=e?-1:1;if(a<2)for(;;){if(l in i){r=i[l],l+=u;break}if(l+=u,e?l<0:s<=l)throw Xc("Reduce of empty array with no initial value")}for(;e?l>=0:s>l;l+=u)l in i&&(r=n(r,i[l],l,o));return r}},Yc={left:Jc(!1),right:Jc(!0)},Zc="process"==Mi(vi.process),Qc=Yc.left;eu({target:"Array",proto:!0,forced:!(!!(Kc=[]["reduce"])&&wi((function(){Kc.call(null,Vc||function(){return 1},1)})))||!Zc&&es>79&&es<83},{reduce:function(e){var t=arguments.length;return Qc(this,e,t,t>1?arguments[1]:void 0)}});var ed={en:{summary:{subTotal:"Sub Total",discounts:"Discounts",taxes:"Taxes",shipping:"Shipping",total:"Total"},form:{expressCheckout:"Express checkout",or:"Or",popupOverlayText:"Click here to show popup window",andMore:"and more",error:{noPaymentMethods:"No payment methods available for this transaction, please contact support."},loaderMessages:{processingPayment:"Processing payment instrument."}},paymentMethods:{"payment-card":"Payment card",ach:"Bank account"}}},td={es:{summary:{subTotal:"Sub Total",discounts:"Descuentos",taxes:"Impuestos",shipping:"Envío",total:"Total"},form:{expressCheckout:"Chequeo rápido",or:"O pague con",andMore:"y más",popupOverlayText:"Haga clic aquí para mostrar la ventana emergente",error:{noPaymentMethods:"No hay métodos de pago disponibles para esta transacción, por favor, póngase en contacto con el servicio de asistencia."}},paymentMethods:{"payment-card":"Tarjeta de crédito",ach:"Cuenta bancaria"}}};class nd{constructor(){this.locale="",this.items=[],this.languages={}}init(e,t){this.items=document.querySelectorAll("[data-rebilly-i18n]"),this.locale=this.getLocale(e),this.languages=Bo({},{...ed,...td},t)}translateItems(){return this.items=document.querySelectorAll("[data-rebilly-i18n]"),this.locale in this.languages&&this.items.forEach((e=>{const t=this.getTranslation(e.dataset.rebillyI18n,this.languages[this.locale]);t&&(e.innerHTML=t)}))}updateTranslationsToNewLocale(e){this.locale=e,this.translateItems()}getLocale(e=this.locale){return!e.includes("-")||e in this.languages?e:(e=e.replace(/[-._]\w+$/gi,""),this.getLocale(e))}translateItem(e){const t=this.getLocale();return this.getTranslation(e.dataset.rebillyI18n,this.languages[t])}getTranslation(e,t=this.languages[this.locale]){return e.split(".").reduce(((e,t)=>null==e?void 0:e[t]),t)}}class ad{constructor(){this.options=null,this.data={},this.mountingPoints=null,this.storefront=null,this.form=null,this.summary=null,this.loader=new f,this.translate=new nd,this.iframeComponents={summary:null,form:null},this.hasMounted=!1}}var rd=new class{constructor(){this.state=new ad}async mount(e){await Uc({state:this.state,...e})}async destroy(){await Wc({state:this.state})}async update(e){await async function({state:e,newOptions:t={}}){if(!e.hasMounted)throw Error("Update method cannot be called before mounting instruments");const n={...e.options,...Gc({newOptions:t})},a=Bo({...n},t);await Wc({state:e}),Uc({state:e,form:e.form,summary:e.summary,...a})}({state:this.state,newOptions:e})}async purchase(e){await Mo({state:this.state,payload:e})}async setup(e){await jo({state:this.state,payload:e})}async show(e,t){await Dc({state:this.state,componentName:e,payload:t})}get version(){return"RebillyInstruments Ver.3.22.0-beta.0"}on(e,t){qc({state:this.state,eventName:e,callback:t})}};return rd}();
|
|
65
|
+
*/var F=function(e,t){return null===e||isNaN(e)||"string"==typeof e?t:e},H=function(e,t,n){var a;void 0===e&&(e="#000"),void 0===t&&(t="base"),void 0===n&&(n=0),a=[[0,0,0],1,t,n],this.rgb=a[0],this.alpha=a[1],this.type=a[2],this.weight=a[3];var r=null===e?"#000":e;if("string"!=typeof r)throw new TypeError("Input should be a string: "+r);var o=P(r);if(!o)throw new Error("Unable to parse color from string: "+r);return this["_setFrom"+o.type.toUpperCase()](o.values.concat([o.alpha]))},R={hex:{configurable:!0}};return R.hex.get=function(){return this.hexString().replace(/^#/,"")},H.prototype.setColor=function(e){var t=P(e);return t?this["_setFrom"+t.type.toUpperCase()](t.values.concat([t.alpha])):null},H.prototype.tint=function(e,t){return void 0===t&&(t=F(e,50)),new H("rgb("+_("#fff",this.rgbString(),t).rgba+")","tint",t)},H.prototype.shade=function(e,t){return void 0===t&&(t=F(e,50)),new H("rgb("+_("#000",this.rgbString(),t).rgba+")","shade",t)},H.prototype.tints=function(e,t){var n=this;return void 0===t&&(t=F(e,10)),Array.from({length:100/t},(function(e,a){return n.tint((a+1)*t)}))},H.prototype.shades=function(e,t){var n=this;return void 0===t&&(t=F(e,10)),Array.from({length:100/t},(function(e,a){return n.shade((a+1)*t)}))},H.prototype.all=function(e){return void 0===e&&(e=10),this.tints(e).reverse().concat([Object.assign(this)],this.shades(e))},H.prototype.hexString=function(){return I(this.alpha>=1?this.rgb:this.rgb.concat([this.alpha]))},H.prototype.rgbString=function(){var e=(this.alpha>=1?this.rgb:this.rgb.concat([this.alpha])).join(", ");return(this.alpha>=1?"rgb":"rgba")+"("+e+")"},H.prototype.getBrightness=function(){return Math.round(this.rgb.reduce((function(e,t){return e+t}))/765*100)},H.prototype._setFromRGB=function(e){var t;return t=[[e[0],e[1],e[2]],e[3]],this.rgb=t[0],this.alpha=t[1],this},H.prototype._setFromHSL=function(e){var t,n=e[0],a=e[1],r=e[2],o=e[3];return t=[L([n,a,r]).map(Math.round),o],this.rgb=t[0],this.alpha=t[1],this},Object.defineProperties(H.prototype,R),H.VERSION="v2.0.0",H}()})),ti=ei;const ni=e=>new ti(e);function ai(e,t=1){if(null===e)return e;const n=ni(e);return n.alpha=t,n.rgbString()}const ri=e=>ai(e,.5),oi=(e,t)=>{if(null===e)return e;return ni(e).shade(t).hexString()};class ii{constructor(e){var t,n,a;a=["none","hidden","dotted","dashed","solid","double","groove","ridge","inset","outset","initial","inherit"],(n="allStyles")in(t=this)?Object.defineProperty(t,n,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[n]=a,this.str=e||"";const r=this.allStyles.find((e=>this.str.includes(e))),o=this.str.split(r).map((e=>e.trim()));this.border=[o[0],r,o[1]]}get stylePosition(){let e=0;return 3===this.border.length?e=1:2===this.border.length&&(e=this.allStyles.includes(this.border[0])?0:1),e}updateColor(e){return this.border[this.stylePosition+1]=e,this}get value(){return this.border.join(" ")}}const si={colorPrimary:{fallback:{type:"static",value:"#0044D4"}},colorBackground:{fallback:{type:"static",value:"#FFFFFF"}},colorText:{fallback:{type:"static",value:"#0D2B3E"}},colorMutedText:{fallback:{type:"func",value:e=>ri(e.colorText)}},colorMutedBorder:{fallback:{type:"func",value:e=>e.colorTextProvided?ai(e.colorText,.25):"#DCE3EA"}},colorDanger:{fallback:{type:"static",value:"#CD5C5C"}},fontFamily:{fallback:{type:"static",value:"Avenir, Helvetica, Arial, sans-serif"}},fontSizeBase:{fallback:{type:"static",value:"16px"}},fontWeightBase:{fallback:{type:"static",value:"500"}},fontLineHeightBase:{fallback:{type:"func",value:e=>`calc(${e.fontSizeBase} * 1.5)`}},fontSmooth:{fallback:{type:"static",value:"auto"}},borderRadius:{fallback:{type:"static",value:"6px"}},headingFontFamily:{fallback:{type:"variable",value:"fontFamily"}},headingFontWeight:{fallback:{type:"static",value:"600"}},headingColorText:{fallback:{type:"variable",value:"colorText"}},buttonColorBackground:{fallback:{type:"variable",value:"colorPrimary"}},buttonColorText:{fallback:{type:"static",value:"#FFFFFF"}},buttonFontFamily:{fallback:{type:"variable",value:"fontFamily"}},buttonFontSize:{fallback:{type:"variable",value:"fontSizeBase"}},buttonFontLineHeight:{fallback:{type:"variable",value:"fontLineHeightBase"}},buttonFontWeight:{fallback:{type:"variable",value:"fontWeightBase"}},buttonBorder:{fallback:{type:"static",value:"1px solid transparent"}},buttonBorderRadius:{fallback:{type:"variable",value:"borderRadius"}},buttonBoxShadow:{fallback:{type:"static",value:"none"}},buttonSecondaryColorBackground:{fallback:{type:"variable",value:"colorBackground"}},buttonSecondaryColorText:{fallback:{type:"variable",value:"colorPrimary"}},buttonSecondaryFontFamily:{fallback:{type:"variable",value:"fontFamily"}},buttonSecondaryFontSize:{fallback:{type:"variable",value:"fontSizeBase"}},buttonSecondaryFontLineHeight:{fallback:{type:"variable",value:"fontLineHeightBase"}},buttonSecondaryFontWeight:{fallback:{type:"variable",value:"fontWeightBase"}},buttonSecondaryBorder:{fallback:{type:"func",value:e=>`1px solid ${e.colorPrimary}`}},buttonSecondaryBorderRadius:{fallback:{type:"variable",value:"borderRadius"}},buttonSecondaryBoxShadow:{fallback:{type:"static",value:"none"}},buttonHoverColorBackground:{fallback:{type:"func",value:e=>e.buttonColorBackgroundProvided?oi(e.buttonColorBackground,20):oi(e.colorPrimary,20)}},buttonHoverColorText:{fallback:{type:"variable",value:"buttonColorText"}},buttonHoverFontFamily:{fallback:{type:"variable",value:"buttonFontFamily"}},buttonHoverFontSize:{fallback:{type:"variable",value:"buttonFontSize"}},buttonHoverFontLineHeight:{fallback:{type:"variable",value:"buttonFontLineHeight"}},buttonHoverFontWeight:{fallback:{type:"variable",value:"buttonFontWeight"}},buttonHoverBorder:{fallback:{type:"func",value:e=>{if(e.buttonBorderProvided)return e.buttonBorder;return new ii(e.buttonBorder).updateColor(e.buttonHoverColorBackground).value}}},buttonHoverBorderRadius:{fallback:{type:"variable",value:"buttonBorderRadius"}},buttonHoverBoxShadow:{fallback:{type:"variable",value:"buttonBoxShadow"}},buttonSecondaryHoverColorBackground:{fallback:{type:"variable",value:"colorBackground"}},buttonSecondaryHoverColorText:{fallback:{type:"variable",value:"buttonSecondaryColorText"}},buttonSecondaryHoverFontFamily:{fallback:{type:"variable",value:"buttonSecondaryFontFamily"}},buttonSecondaryHoverFontSize:{fallback:{type:"variable",value:"buttonSecondaryFontSize"}},buttonSecondaryHoverFontLineHeight:{fallback:{type:"variable",value:"buttonSecondaryFontLineHeight"}},buttonSecondaryHoverFontWeight:{fallback:{type:"variable",value:"buttonSecondaryFontWeight"}},buttonSecondaryHoverBorder:{fallback:{type:"variable",value:"buttonSecondaryBorder"}},buttonSecondaryHoverBorderRadius:{fallback:{type:"variable",value:"buttonSecondaryBorderRadius"}},buttonSecondaryHoverBoxShadow:{fallback:{type:"variable",value:"buttonSecondaryBoxShadow"}},buttonActiveColorBackground:{fallback:{type:"variable",value:"buttonHoverColorBackground"}},buttonActiveColorText:{fallback:{type:"variable",value:"buttonHoverColorText"}},buttonActiveFontFamily:{fallback:{type:"variable",value:"buttonHoverFontFamily"}},buttonActiveFontSize:{fallback:{type:"variable",value:"buttonHoverFontSize"}},buttonActiveFontLineHeight:{fallback:{type:"variable",value:"buttonHoverFontLineHeight"}},buttonActiveFontWeight:{fallback:{type:"variable",value:"buttonHoverFontWeight"}},buttonActiveBorder:{fallback:{type:"variable",value:"buttonHoverBorder"}},buttonActiveBorderRadius:{fallback:{type:"variable",value:"buttonHoverBorderRadius"}},buttonActiveBoxShadow:{fallback:{type:"variable",value:"buttonHoverBoxShadow"}},buttonSecondaryActiveColorBackground:{fallback:{type:"variable",value:"buttonSecondaryHoverColorBackground"}},buttonSecondaryActiveColorText:{fallback:{type:"variable",value:"buttonSecondaryHoverColorText"}},buttonSecondaryActiveFontFamily:{fallback:{type:"variable",value:"buttonSecondaryHoverFontFamily"}},buttonSecondaryActiveFontSize:{fallback:{type:"variable",value:"buttonSecondaryHoverFontSize"}},buttonSecondaryActiveFontLineHeight:{fallback:{type:"variable",value:"buttonSecondaryHoverFontLineHeight"}},buttonSecondaryActiveFontWeight:{fallback:{type:"variable",value:"buttonSecondaryHoverFontWeight"}},buttonSecondaryActiveBorder:{fallback:{type:"variable",value:"buttonSecondaryHoverBorder"}},buttonSecondaryActiveBorderRadius:{fallback:{type:"variable",value:"buttonSecondaryHoverBorderRadius"}},buttonSecondaryActiveBoxShadow:{fallback:{type:"variable",value:"buttonSecondaryHoverBoxShadow"}},inputColorBackground:{fallback:{type:"static",value:"transparent"}},inputColorText:{fallback:{type:"variable",value:"colorText"}},inputFontFamily:{fallback:{type:"variable",value:"fontFamily"}},inputFontSize:{fallback:{type:"variable",value:"fontSizeBase"}},inputFontLineHeight:{fallback:{type:"variable",value:"fontLineHeightBase"}},inputFontWeight:{fallback:{type:"variable",value:"fontWeightBase"}},inputBorder:{fallback:{type:"func",value:e=>`1px solid ${oi(e.colorMutedBorder,4)}`}},inputBorderRadius:{fallback:{type:"variable",value:"borderRadius"}},inputBoxShadow:{fallback:{type:"static",value:"none"}},inputHoverColorBackground:{fallback:{type:"variable",value:"inputColorBackground"}},inputHoverColorText:{fallback:{type:"variable",value:"inputColorText"}},inputHoverFontFamily:{fallback:{type:"variable",value:"inputFontFamily"}},inputHoverFontSize:{fallback:{type:"variable",value:"inputFontSize"}},inputHoverFontLineHeight:{fallback:{type:"variable",value:"inputFontLineHeight"}},inputHoverFontWeight:{fallback:{type:"variable",value:"inputFontWeight"}},inputHoverBorder:{fallback:{type:"variable",value:"inputBorder"}},inputHoverBorderRadius:{fallback:{type:"variable",value:"inputBorderRadius"}},inputHoverBoxShadow:{fallback:{type:"variable",value:"inputBoxShadow"}},inputFocusColorBackground:{fallback:{type:"variable",value:"inputHoverColorBackground"}},inputFocusColorText:{fallback:{type:"variable",value:"inputHoverColorText"}},inputFocusFontFamily:{fallback:{type:"variable",value:"inputHoverFontFamily"}},inputFocusFontSize:{fallback:{type:"variable",value:"inputHoverFontSize"}},inputFocusFontLineHeight:{fallback:{type:"variable",value:"inputHoverFontLineHeight"}},inputFocusFontWeight:{fallback:{type:"variable",value:"inputHoverFontWeight"}},inputFocusBorder:{fallback:{type:"func",value:e=>{if(e.inputHoverBorderProvided)return e.inputHoverBorder;return new ii(e.inputBorder).updateColor(e.colorPrimary).value}}},inputFocusBorderRadius:{fallback:{type:"variable",value:"inputHoverBorderRadius"}},inputFocusBoxShadow:{fallback:{type:"func",value:e=>`0 0 0 1px ${e.colorPrimary}`}},inputPlaceholderColorText:{fallback:{type:"func",value:e=>e.inputColorTextProvided?ri(e.inputColorText):e.colorMutedText}},inputPlaceholderFontFamily:{fallback:{type:"variable",value:"inputFontFamily"}},inputPlaceholderFontSize:{fallback:{type:"variable",value:"inputFontSize"}},inputPlaceholderFontLineHeight:{fallback:{type:"variable",value:"inputFontLineHeight"}},inputPlaceholderFontWeight:{fallback:{type:"variable",value:"inputFontWeight"}},inputSelectionColorText:{fallback:{type:"static",value:"initial"}},inputSelectionColorBackground:{fallback:{type:"static",value:"highlight"}},inputErrorColorBackground:{fallback:{type:"variable",value:"inputColorBackground"}},inputErrorColorText:{fallback:{type:"variable",value:"colorDanger"}},inputErrorFontFamily:{fallback:{type:"variable",value:"inputFontFamily"}},inputErrorFontSize:{fallback:{type:"variable",value:"inputFontSize"}},inputErrorFontLineHeight:{fallback:{type:"variable",value:"inputFontLineHeight"}},inputErrorFontWeight:{fallback:{type:"variable",value:"inputFontWeight"}},inputErrorBorder:{fallback:{type:"func",value:e=>{if(e.inputBorderProvided){return new ii(e.inputBorder).updateColor(e.colorDanger).value}return`1px solid ${e.colorDanger}`}}},inputErrorBorderRadius:{fallback:{type:"variable",value:"inputBorderRadius"}},inputErrorBoxShadow:{fallback:{type:"variable",value:"inputBoxShadow"}},inputErrorHoverColorBackground:{fallback:{type:"variable",value:"inputErrorColorBackground"}},inputErrorHoverColorText:{fallback:{type:"variable",value:"inputErrorColorText"}},inputErrorHoverFontFamily:{fallback:{type:"variable",value:"inputErrorFontFamily"}},inputErrorHoverFontSize:{fallback:{type:"variable",value:"inputErrorFontSize"}},inputErrorHoverFontLineHeight:{fallback:{type:"variable",value:"inputErrorFontLineHeight"}},inputErrorHoverFontWeight:{fallback:{type:"variable",value:"inputErrorFontWeight"}},inputErrorHoverBorder:{fallback:{type:"variable",value:"inputErrorBorder"}},inputErrorHoverBorderRadius:{fallback:{type:"variable",value:"inputErrorBorderRadius"}},inputErrorHoverBoxShadow:{fallback:{type:"variable",value:"inputErrorBoxShadow"}},inputErrorFocusColorBackground:{fallback:{type:"variable",value:"inputErrorHoverColorBackground"}},inputErrorFocusColorText:{fallback:{type:"variable",value:"inputErrorHoverColorText"}},inputErrorFocusFontFamily:{fallback:{type:"variable",value:"inputErrorHoverFontFamily"}},inputErrorFocusFontSize:{fallback:{type:"variable",value:"inputErrorHoverFontSize"}},inputErrorFocusFontLineHeight:{fallback:{type:"variable",value:"inputErrorHoverFontLineHeight"}},inputErrorFocusFontWeight:{fallback:{type:"variable",value:"inputErrorHoverFontWeight"}},inputErrorFocusBorder:{fallback:{type:"variable",value:"inputErrorHoverBorder"}},inputErrorFocusBorderRadius:{fallback:{type:"variable",value:"inputErrorHoverBorderRadius"}},inputErrorFocusBoxShadow:{fallback:{type:"variable",value:"inputErrorHoverBoxShadow"}},inputErrorPlaceholderColorText:{fallback:{type:"func",value:e=>e.inputErrorColorTextProvided?ri(e.inputErrorColorText):ri(e.colorDanger)}},inputErrorPlaceholderFontFamily:{fallback:{type:"variable",value:"inputPlaceholderFontFamily"}},inputErrorPlaceholderFontSize:{fallback:{type:"variable",value:"inputPlaceholderFontSize"}},inputErrorPlaceholderFontLineHeight:{fallback:{type:"variable",value:"inputPlaceholderFontLineHeight"}},inputErrorPlaceholderFontWeight:{fallback:{type:"variable",value:"inputPlaceholderFontWeight"}},inputErrorSelectionColorText:{fallback:{type:"variable",value:"inputSelectionColorText"}},inputErrorSelectionColorBackground:{fallback:{type:"variable",value:"inputSelectionColorBackground"}},labels:{fallback:{type:"static",value:"floating"}}};var li,ui,ci,di=new Proxy(si,{get(e,t,n){if(t in e){if(e[t].value)return e[t].value;const{type:a,value:r}=e[t].fallback;if("static"===a)return r;if("variable"===a)return`var(--rebilly-${r})`;if("func"===a)return r(n)}if(t.endsWith("Provided")){const n=t.replace("Provided","");if(n in e)return e[n].isProvided}},set:(e,t,n)=>{if(!(t in e)||!n)throw new Error(`Invalid theme option provided: ${t}`);return e[t].value=n,e[t].isProvided=!0,!0}});class pi{constructor(e={}){this.overrides=e,this.theme=di}overrideTheme(){Object.keys(this.overrides).forEach((e=>{this.theme[e]=this.overrides[e]}))}get cssVars(){return Object.keys(this.theme).filter((e=>!pi.nonCssProperties.includes(e))).map(((e,t)=>`${t?" ":""}--rebilly-${e}: ${this.theme[e]};`)).join("\n")}build(){return this.overrideTheme(),{cssVars:this.cssVars}}}ci=["labels"],(ui="nonCssProperties")in(li=pi)?Object.defineProperty(li,ui,{value:ci,enumerable:!0,configurable:!0,writable:!0}):li[ui]=ci;function mi(e){let t=e;return t=t.replace(/\/\*(?:(?!\*\/)[\s\S])*\*\/|[\r\n\t]+/g,""),t=t.replace(/\s{2,}/g," "),t=t.replace(/\s([{:}])\s/g,"$1"),t=t.replace(/([;,])\s/g,"$1"),t=t.replace(/\s!/g,"!"),t}var fi=({options:{theme:e={},css:t}}={})=>{const n=(e=>{const t=`\n ${(e=>`\n/* Instruments 'global' variables\n------------------------------------------------------------ */\n:root {\n ${e.cssVars}\n\n --rebilly-fontWeight400: 400;\n --rebilly-fontWeight500: 500;\n --rebilly-fontWeight600: 600;\n --rebilly-fontScaleFactor: 1.5;\n --rebilly-fontScaleFactorS: 0.875;\n --rebilly-fontSizeS: calc(var(--rebilly-fontSizeBase) * var(--rebilly-fontScaleFactorS));\n --rebilly-fontLineHeightS: calc(var(--rebilly-fontSizeS) * 1);\n\n --rebilly-fontSizeL: calc(var(--rebilly-fontSizeBase) * var(--rebilly-fontScaleFactor));\n --rebilly-fontLineHeightL: calc(var(--rebilly-fontLineHeightBase) * 2);\n --rebilly-fontMarginTopL: 0;\n --rebilly-fontMarginBottomL: var(--rebilly-fontLineHeightBase);\n\n --rebilly-spacing2xs: calc(var(--rebilly-fontLineHeightBase) / 6);\n --rebilly-spacingXs: calc(var(--rebilly-fontLineHeightBase) / 4);\n --rebilly-spacingS: calc(var(--rebilly-fontLineHeightBase) / 2);\n --rebilly-spacingM: var(--rebilly-fontLineHeightBase);\n --rebilly-spacingL: calc(var(--rebilly-fontLineHeightBase) * 2);\n --rebilly-spacingXl: calc(var(--rebilly-fontLineHeightBase) * 4);\n\n --rebilly-spacingFormElementMinHeight: calc(var(--rebilly-spacingM) * 1.83333);\n\n --rebilly-summaryLoaderMinHeight: var(--rebilly-fontLineHeightBase);\n --rebilly-methodLoaderMinHeight: calc((4 * var(--rebilly-spacingFormElementMinHeight)) + (2 * var(--rebilly-fontLineHeightBase)) + (2 * var(--rebilly-spacingM)) + var(--rebilly-spacing2xs) + var(--rebilly-fontSizeS) + calc(2 * (var(--rebilly-spacingXs) + var(--rebilly-spacingS))) + var(--rebilly-spacingL));\n}\n\n/* Views. Method Selector\n------------------------------------------------------------ */\n.rebilly-instruments-method-selector.has-express-compact {\n padding-top: var(--rebilly-spacingS);\n}\n\n/* Express Methods\n------------------------------------------------------------ */\n@-webkit-keyframes rebillyExpressShine {\n to {\n background-position-x: -200%;\n }\n}\n@keyframes rebillyExpressShine {\n to {\n background-position-x: -200%;\n }\n}\n\n.rebilly-instruments-express-methods { padding: 2px; }\n\n.rebilly-instruments-express-methods.is-compact {\n border: 1px solid var(--rebilly-colorMutedBorder);\n padding: var(--rebilly-spacingS);\n padding-top: calc(var(--rebilly-spacingXs) + var(--rebilly-spacingS));\n padding-top: calc(var(--rebilly-fontSizeBase) + var(--rebilly-spacing2xs));\n border-radius: var(--rebilly-borderRadius);\n position: relative;\n}\n\n.rebilly-instruments-express-methods .rebilly-instruments-iframe {\n display: block;\n margin-bottom: 0;\n height: var(--rebilly-spacingFormElementMinHeight);\n}\n\n.rebilly-instruments-express-methods .rebilly-instruments-express-methods-container > * {\n border-radius: 6px;\n margin-bottom: var(--rebilly-spacingS);\n background: linear-gradient(110deg, var(--rebilly-colorMutedBorder) 0%, var(--rebilly-colorBackground) 25%, var(--rebilly-colorMutedBorder) 50%);\n background-size: 200% 100%;\n -webkit-animation: 1.5s rebillyExpressShine linear infinite;\n animation: 1.5s rebillyExpressShine linear infinite;\n height: 44px;\n}\n\n.rebilly-instruments-express-methods .rebilly-instruments-express-methods-container > *:last-child {\n margin: 0;\n}\n\n.rebilly-instruments-express-methods.is-compact .rebilly-instruments-express-methods-container {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-pack: center;\n -ms-flex-pack: center;\n justify-content: center;\n}\n\n.rebilly-instruments-express-methods.is-compact .rebilly-instruments-express-methods-container > * {\n -webkit-box-flex: 1;\n -ms-flex: 1 1 0px;\n flex: 1 1 0px;\n max-width: 260px;\n margin: 0 var(--rebilly-spacingXs);\n}\n\n.rebilly-instruments-express-methods.is-compact .rebilly-instruments-express-methods-container > *:first-child {\n margin-left: 0;\n}\n\n.rebilly-instruments-express-methods.is-compact .rebilly-instruments-express-methods-container > *:last-child {\n margin-right: 0;\n}\n\n.rebilly-instruments-express-methods .rebilly-instruments-express-methods-label {\n display: none;\n}\n\n.rebilly-instruments-express-methods.is-compact .rebilly-instruments-express-methods-label {\n position: absolute;\n font-family: var(--rebilly-fontFamily);\n top: 0; left: 50%;\n -webkit-transform: translateX(-50%) translateY(-50%);\n transform: translateX(-50%) translateY(-50%);\n color: var(--rebilly-colorText);\n padding: var(--rebilly-spacing2xs) var(--rebilly-spacingM);\n line-height: 1;\n background: var(--rebilly-colorBackground);\n display: inline-block;\n font-weight: var(--rebilly-fontWeightBase);\n min-height: auto;\n margin: 0;\n white-space: nowrap;\n}\n\n@media (max-width: 600px) {\n .rebilly-instruments-express-methods.is-compact .rebilly-instruments-express-methods-container {\n -webkit-box-orient: vertical;\n -webkit-box-direction: normal;\n -ms-flex-direction: column;\n flex-direction: column;\n }\n\n .rebilly-instruments-express-methods.is-compact .rebilly-instruments-express-methods-container > * {\n max-width: 100%;\n margin: 0 0 var(--rebilly-spacingS);\n }\n \n .rebilly-instruments-express-methods.is-compact .rebilly-instruments-express-methods-container > *:last-child {\n margin: 0;\n }\n}\n\n/* Components. Divider\n------------------------------------------------------------ */\n.rebilly-instruments-divider {\n line-height: var(--rebilly-fontLineHeightBase);\n padding: var(--rebilly-spacingM) 0;\n margin: 0;\n position: relative;\n outline: 0;\n border: 0;\n text-align: center;\n font-family: var(--rebilly-fontFamily);\n}\n\n.rebilly-instruments-divider-s { padding: var(--rebilly-spacingS) 0; }\n.rebilly-instruments-divider-xs { padding: var(--rebilly-spacingXs) 0; }\n\n.rebilly-instruments-divider::before {\n background: var(--rebilly-colorMutedBorder);\n content: '';\n position: absolute;\n left: 0;\n top: 50%;\n width: 100%;\n height: 1px;\n}\n\n.rebilly-instruments-divider .rebilly-instruments-divider-label {\n color: var(--rebilly-colorMutedText);\n font-weight: var(--rebilly-fontWeightBase);\n padding: 0 var(--rebilly-spacingM);\n line-height: var(--rebilly-fontLineHeightS);\n background-color: var(--rebilly-colorBackground);\n font-size: var(--rebilly-fontSizeS);\n position: relative;\n display: inline-block;\n}\n\n/* Vendor, Postmate\n------------------------------------------------------------ */\n.rebilly-instruments-iframe {\n border: none;\n width: 100%;\n height: 0;\n padding: 0;\n}\n\n.rebilly-instruments-iframe-overlay {\n top: -2px;\n left: -2px;\n width: calc(100vw + 2px);\n height: 100vh;\n min-height: calc(100vh + 4px);\n position: fixed;\n z-index: 99999999999999;\n}\n\n/* Views. Modal\n------------------------------------------------------------ */\n.rebilly-instruments-modal-overlay {\n position: fixed;\n top: 0;\n left: 0;\n overflow-x: hidden;\n overflow-y: auto;\n z-index: 1055;\n padding: 30px;\n width: 100%;\n height: 100%;\n margin: 0;\n padding: 0;\n -webkit-transition: all 0.12s ease-in-out;\n transition: all 0.12s ease-in-out;\n background-color: rgba(0,0,0,0.7);\n opacity: 0\n}\n\n.rebilly-instruments-modal-overlay.is-visible {\n opacity: 1;\n}\n\n.rebilly-instruments-modal-container {\n -webkit-transition: all .24s ease-in-out;\n transition: all .24s ease-in-out;\n position: relative;\n max-width: 750px;\n background: var(--rebilly-colorBackground);\n margin: 50px auto 20px;\n -webkit-box-shadow: 0 19px 38px rgba(0,0,0,0.20), 0 15px 12px rgba(0,0,0,0.12);\n box-shadow: 0 19px 38px rgba(0,0,0,0.20), 0 15px 12px rgba(0,0,0,0.12);\n border-radius: 4px;\n -webkit-transform: translateY(-50px);\n transform: translateY(-50px);\n opacity: 0;\n}\n\n.rebilly-instruments-modal-container.is-visible {\n -webkit-transform: translateY(0);\n transform: translateY(0);\n opacity: 1;\n}\n\n.rebilly-instruments-modal-container.is-redirect {\n max-width: 60vw;\n width: auto;\n}\n\n.rebilly-instruments-modal-content {\n -webkit-transition: all .15s;\n transition: all .15s;\n padding: 20px;\n overflow: hidden;\n background-color: var(--rebilly-colorBackground);\n text-align: center;\n border-radius: 4px;\n}\n\n.rebilly-instruments-modal-content .rebilly-instruments-iframe {\n -webkit-transition: all .15s;\n transition: all .15s;\n height: auto;\n min-height: 360px;\n}\n\n.rebilly-instruments-modal-container.is-redirect .rebilly-instruments-modal-content {\n padding: 0;\n}\n\n.rebilly-instruments-modal-close {\n position: absolute;\n width: 30px;\n height: 30px;\n top: -40px;\n right: 0;\n fill: #FFF;\n cursor: pointer;\n}\n\n.rebilly-instruments-modal-close:hover{\n color: #000;\n}\n\n@media screen and (max-width: 480px) {\n .rebilly-instruments-modal-container.is-redirect {\n max-width: 96vw;\n margin: 20px auto 20px;\n }\n}\n\n/* Components. Loader\n------------------------------------------------------------ */\n.rebilly-instruments-loader {\n text-align: left;\n position: absolute;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n display: none;\n background-color: var(--rebilly-colorBackground);\n z-index: 1000;\n -webkit-transition: all 200ms;\n transition: all 200ms;\n border-radius: var(--rebilly-borderRadius);\n}\n\n.rebilly-instruments-loader.is-active {\n display: block;\n}\n\n/* Type */\n.rebilly-instruments-loader p {\n color: var(--rebilly-colorText);\n display: inline-block;\n margin: 0;\n font-weight: var(--rebilly-fontWeightBase);\n font-size: var(--rebilly-fontSizeBase);\n line-height: var(--rebilly-fontLineHeightBase);\n}\n\n.rebilly-instruments-loader small {\n color: var(--rebilly-colorText);\n display: inline-block;\n margin: 0;\n font-size: var(--rebilly-fontSizeS);\n line-height: 1;\n}\n\n/* Summary */\n.rebilly-instruments-summary-loader-total p.total {\n font-family: var(--rebilly-fontFamily);\n font-size: var(--rebilly-fontSizeL);\n font-weight: var(--rebilly-headingFontWeight);\n}\n\n/* Methods */\n.rebilly-instruments-methods-loader-card-icon {\n width: 32px;\n height: 22px;\n margin-left: var(--rebilly-spacing2xs);\n margin-bottom: var(--rebilly-spacing2xs);\n}\n\n.rebilly-instruments-methods-loader-form-fields { margin: calc(var(--rebilly-spacingXs) + var(--rebilly-spacingS)) 0; }\n\n/* Spinner */\n.rebilly-instruments-loader-spinner {\n top: 50%;\n left: 50%;\n position: absolute;\n -webkit-transform: translate(-50%, -50%);\n transform: translate(-50%, -50%);\n border: 2px solid transparent;\n border-top: 2px solid var(--rebilly-colorPrimary);\n border-radius: 50%;\n width: var(--rebilly-fontLineHeightBase);\n height: var(--rebilly-fontLineHeightBase);\n margin-top: calc(-1 * var(--rebilly-fontLineHeightBase) / 2);\n margin-left: calc(-1 * var(--rebilly-fontLineHeightBase) / 2);\n -webkit-animation: spin 0.5s ease infinite;\n animation: spin 0.5s ease infinite;\n}\n\n@-webkit-keyframes spin {\n 0% { -webkit-transform: rotate(0deg); transform: rotate(0deg); }\n 100% { -webkit-transform: rotate(360deg); transform: rotate(360deg); }\n}\n\n@keyframes spin {\n 0% { -webkit-transform: rotate(0deg); transform: rotate(0deg); }\n 100% { -webkit-transform: rotate(360deg); transform: rotate(360deg); }\n}\n\n/* Utils */\n.rebilly-instruments-loader-display-flex { display: -webkit-box; display: -ms-flexbox; display: flex; }\n.rebilly-instruments-loader-align-center { -webkit-box-align: center; -ms-flex-align: center; align-items: center; }\n.rebilly-instruments-loader-justify-space-between { -webkit-box-pack: justify; -ms-flex-pack: justify; justify-content: space-between; }\n.rebilly-instruments-loader-justify-end { -webkit-box-pack: end; -ms-flex-pack: end; justify-content: flex-end; }\n\n.is-el-loading {\n position: relative;\n color: transparent!important;\n}\n\n.is-el-loading::before {\n position: absolute;\n content: '';\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n background: linear-gradient(110deg, var(--rebilly-colorMutedBorder) 0%, var(--rebilly-colorBackground) 25%, var(--rebilly-colorMutedBorder) 50%);\n background-size: 200% 100%;\n -webkit-animation: 1.5s rebillyExpressShine linear infinite;\n animation: 1.5s rebillyExpressShine linear infinite;\n border-radius: var(--rebilly-borderRadius);\n}\n\n.rebilly-instruments-loader-form-el {\n width: 100%;\n min-height: var(--rebilly-spacingFormElementMinHeight);\n}\n\n.rebilly-instruments-loader-form-label {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n margin-bottom: var(--rebilly-spacing2xs);\n}\n\n.rebilly-instruments-loader-form-el.is-button {\n margin-top: var(--rebilly-spacingL);\n text-align: center;\n font-size: var(--rebilly-buttonFontSize);\n font-family: var(--rebilly-buttonFontFamily);\n line-height: var(--rebilly-buttonFontLineHeight);\n padding: var(--rebilly-spacingS);\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n background: var(--rebilly-buttonColorBackground);\n color: transparent;\n border-radius: var(--rebilly-buttonBorderRadius);\n font-weight: var(--rebilly-buttonFontWeight);\n border: var(--rebilly-buttonBorder);\n -webkit-box-shadow: var(--rebilly-buttonBoxShadow);\n box-shadow: var(--rebilly-buttonBoxShadow);\n outline: none;\n cursor: not-allowed;\n opacity: 0.6; \n}\n\n.rebilly-instruments-methods-loader-card-icon.is-el-loading::before {\n border-radius: calc(var(--rebilly-borderRadius) / 2);\n}\n\n/* Error\n------------------------------------------------------------ */\n.rebilly-instruments-error-card {\n border: 1px solid var(--rebilly-colorDanger);\n border-radius: var(--rebilly-borderRadius);\n text-align: left;\n padding: var(--rebilly-spacingS);\n margin-bottom: var(--rebilly-spacingL);\n}\n\n.rebilly-instruments-error-card-header {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n -webkit-box-pack: justify;\n -ms-flex-pack: justify;\n justify-content: space-between;\n width: 100%;\n -webkit-box-align: start;\n -ms-flex-align: start;\n align-items: flex-start;\n}\n\n.rebilly-instruments-error-card-title {\n font-weight: var(--rebilly-fontWeightBase);\n font-size: var(--rebilly-fontSizeBase);\n line-height: var(--rebilly-fontLineHeightBase);\n font-family: var(--rebilly-headingFontFamily);\n margin: 0 0 var(--rebilly-spacingS);\n color: var(--rebilly-colorDanger);\n}\n\n.rebilly-instruments-error-card-close-button {\n cursor: pointer;\n background: transparent;\n border: none;\n padding: 0;\n}\n\n.rebilly-instruments-error-card-close-button svg {\n width: var(--rebilly-fontLineHeightBase);\n height: var(--rebilly-fontLineHeightBase);\n fill: var(--rebilly-colorText);\n}\n\n.rebilly-instruments-error-card-details {\n padding: 0;\n margin: 0;\n list-style: none;\n}\n\n.rebilly-instruments-error-card-details li,\n.rebilly-instruments-error-card-message {\n color: var(--rebilly-colorText);\n margin: 0;\n font-weight: var(--rebilly-fontWeightBase);\n font-size: var(--rebilly-fontSizeBase);\n line-height: var(--rebilly-fontLineHeightBase);\n}\n`)(new pi(e).build())}\n `;return t})(e||{});return Uo({element:"style",attributes:{type:"text/css"},content:mi(n),target:"head"}),t&&Uo({element:"style",attributes:{type:"text/css"},content:mi(t),target:"head"}),n};const hi=({state:e})=>{e.translate.init(e.options.locale,e.options.i18n),e.translate.translateItems()};var yi,gi,bi=function(e){return e&&e.Math==Math&&e},vi=bi("object"==typeof globalThis&&globalThis)||bi("object"==typeof window&&window)||bi("object"==typeof self&&self)||bi("object"==typeof g&&g)||function(){return this}()||Function("return this")(),wi=function(e){try{return!!e()}catch(e){return!0}},ki=!wi((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),xi=!wi((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})),Ei=Function.prototype.call,Ai=xi?Ei.bind(Ei):function(){return Ei.apply(Ei,arguments)},Si={}.propertyIsEnumerable,Pi=Object.getOwnPropertyDescriptor,Li=Pi&&!Si.call({1:2},1)?function(e){var t=Pi(this,e);return!!t&&t.enumerable}:Si,Ti={f:Li},Ci=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},Ii=Function.prototype,$i=Ii.bind,Oi=Ii.call,_i=xi&&$i.bind(Oi,Oi),Fi=xi?function(e){return e&&_i(e)}:function(e){return e&&function(){return Oi.apply(e,arguments)}},Hi=Fi({}.toString),Ri=Fi("".slice),Mi=function(e){return Ri(Hi(e),8,-1)},ji=Object,Ni=Fi("".split),Bi=wi((function(){return!ji("z").propertyIsEnumerable(0)}))?function(e){return"String"==Mi(e)?Ni(e,""):ji(e)}:ji,qi=TypeError,Di=function(e){if(null==e)throw qi("Can't call method on "+e);return e},zi=function(e){return Bi(Di(e))},Ui=function(e){return"function"==typeof e},Wi=function(e){return"object"==typeof e?null!==e:Ui(e)},Gi=function(e){return Ui(e)?e:void 0},Vi=function(e,t){return arguments.length<2?Gi(vi[e]):vi[e]&&vi[e][t]},Ki=Fi({}.isPrototypeOf),Xi=Vi("navigator","userAgent")||"",Ji=vi.process,Yi=vi.Deno,Zi=Ji&&Ji.versions||Yi&&Yi.version,Qi=Zi&&Zi.v8;Qi&&(gi=(yi=Qi.split("."))[0]>0&&yi[0]<4?1:+(yi[0]+yi[1])),!gi&&Xi&&(!(yi=Xi.match(/Edge\/(\d+)/))||yi[1]>=74)&&(yi=Xi.match(/Chrome\/(\d+)/))&&(gi=+yi[1]);var es=gi,ts=!!Object.getOwnPropertySymbols&&!wi((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&es&&es<41})),ns=ts&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,as=Object,rs=ns?function(e){return"symbol"==typeof e}:function(e){var t=Vi("Symbol");return Ui(t)&&Ki(t.prototype,as(e))},os=String,is=function(e){try{return os(e)}catch(e){return"Object"}},ss=TypeError,ls=function(e){if(Ui(e))return e;throw ss(is(e)+" is not a function")},us=function(e,t){var n=e[t];return null==n?void 0:ls(n)},cs=TypeError,ds=Object.defineProperty,ps=function(e,t){try{ds(vi,e,{value:t,configurable:!0,writable:!0})}catch(n){vi[e]=t}return t},ms="__core-js_shared__",fs=vi[ms]||ps(ms,{}),hs=b((function(e){(e.exports=function(e,t){return fs[e]||(fs[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.23.3",mode:"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.23.3/LICENSE",source:"https://github.com/zloirock/core-js"})})),ys=Object,gs=function(e){return ys(Di(e))},bs=Fi({}.hasOwnProperty),vs=Object.hasOwn||function(e,t){return bs(gs(e),t)},ws=0,ks=Math.random(),xs=Fi(1..toString),Es=function(e){return"Symbol("+(void 0===e?"":e)+")_"+xs(++ws+ks,36)},As=hs("wks"),Ss=vi.Symbol,Ps=Ss&&Ss.for,Ls=ns?Ss:Ss&&Ss.withoutSetter||Es,Ts=function(e){if(!vs(As,e)||!ts&&"string"!=typeof As[e]){var t="Symbol."+e;ts&&vs(Ss,e)?As[e]=Ss[e]:As[e]=ns&&Ps?Ps(t):Ls(t)}return As[e]},Cs=TypeError,Is=Ts("toPrimitive"),$s=function(e,t){if(!Wi(e)||rs(e))return e;var n,a=us(e,Is);if(a){if(void 0===t&&(t="default"),n=Ai(a,e,t),!Wi(n)||rs(n))return n;throw Cs("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,a;if("string"===t&&Ui(n=e.toString)&&!Wi(a=Ai(n,e)))return a;if(Ui(n=e.valueOf)&&!Wi(a=Ai(n,e)))return a;if("string"!==t&&Ui(n=e.toString)&&!Wi(a=Ai(n,e)))return a;throw cs("Can't convert object to primitive value")}(e,t)},Os=function(e){var t=$s(e,"string");return rs(t)?t:t+""},_s=vi.document,Fs=Wi(_s)&&Wi(_s.createElement),Hs=function(e){return Fs?_s.createElement(e):{}},Rs=!ki&&!wi((function(){return 7!=Object.defineProperty(Hs("div"),"a",{get:function(){return 7}}).a})),Ms=Object.getOwnPropertyDescriptor,js=ki?Ms:function(e,t){if(e=zi(e),t=Os(t),Rs)try{return Ms(e,t)}catch(e){}if(vs(e,t))return Ci(!Ai(Ti.f,e,t),e[t])},Ns={f:js},Bs=ki&&wi((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),qs=String,Ds=TypeError,zs=function(e){if(Wi(e))return e;throw Ds(qs(e)+" is not an object")},Us=TypeError,Ws=Object.defineProperty,Gs=Object.getOwnPropertyDescriptor,Vs="enumerable",Ks="configurable",Xs="writable",Js=ki?Bs?function(e,t,n){if(zs(e),t=Os(t),zs(n),"function"==typeof e&&"prototype"===t&&"value"in n&&Xs in n&&!n.writable){var a=Gs(e,t);a&&a.writable&&(e[t]=n.value,n={configurable:Ks in n?n.configurable:a.configurable,enumerable:Vs in n?n.enumerable:a.enumerable,writable:!1})}return Ws(e,t,n)}:Ws:function(e,t,n){if(zs(e),t=Os(t),zs(n),Rs)try{return Ws(e,t,n)}catch(e){}if("get"in n||"set"in n)throw Us("Accessors not supported");return"value"in n&&(e[t]=n.value),e},Ys={f:Js},Zs=ki?function(e,t,n){return Ys.f(e,t,Ci(1,n))}:function(e,t,n){return e[t]=n,e},Qs=Function.prototype,el=ki&&Object.getOwnPropertyDescriptor,tl=vs(Qs,"name"),nl={EXISTS:tl,PROPER:tl&&"something"===function(){}.name,CONFIGURABLE:tl&&(!ki||ki&&el(Qs,"name").configurable)},al=Fi(Function.toString);Ui(fs.inspectSource)||(fs.inspectSource=function(e){return al(e)});var rl,ol,il,sl=fs.inspectSource,ll=vi.WeakMap,ul=Ui(ll)&&/native code/.test(sl(ll)),cl=hs("keys"),dl=function(e){return cl[e]||(cl[e]=Es(e))},pl={},ml="Object already initialized",fl=vi.TypeError,hl=vi.WeakMap;if(ul||fs.state){var yl=fs.state||(fs.state=new hl),gl=Fi(yl.get),bl=Fi(yl.has),vl=Fi(yl.set);rl=function(e,t){if(bl(yl,e))throw new fl(ml);return t.facade=e,vl(yl,e,t),t},ol=function(e){return gl(yl,e)||{}},il=function(e){return bl(yl,e)}}else{var wl=dl("state");pl[wl]=!0,rl=function(e,t){if(vs(e,wl))throw new fl(ml);return t.facade=e,Zs(e,wl,t),t},ol=function(e){return vs(e,wl)?e[wl]:{}},il=function(e){return vs(e,wl)}}var kl,xl={set:rl,get:ol,has:il,enforce:function(e){return il(e)?ol(e):rl(e,{})},getterFor:function(e){return function(t){var n;if(!Wi(t)||(n=ol(t)).type!==e)throw fl("Incompatible receiver, "+e+" required");return n}}},El=b((function(e){var t=nl.CONFIGURABLE,n=xl.enforce,a=xl.get,r=Object.defineProperty,o=ki&&!wi((function(){return 8!==r((function(){}),"length",{value:8}).length})),i=String(String).split("String"),s=e.exports=function(e,a,s){"Symbol("===String(a).slice(0,7)&&(a="["+String(a).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),s&&s.getter&&(a="get "+a),s&&s.setter&&(a="set "+a),(!vs(e,"name")||t&&e.name!==a)&&(ki?r(e,"name",{value:a,configurable:!0}):e.name=a),o&&s&&vs(s,"arity")&&e.length!==s.arity&&r(e,"length",{value:s.arity});try{s&&vs(s,"constructor")&&s.constructor?ki&&r(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var l=n(e);return vs(l,"source")||(l.source=i.join("string"==typeof a?a:"")),e};Function.prototype.toString=s((function(){return Ui(this)&&a(this).source||sl(this)}),"toString")})),Al=function(e,t,n,a){a||(a={});var r=a.enumerable,o=void 0!==a.name?a.name:t;if(Ui(n)&&El(n,o,a),a.global)r?e[t]=n:ps(t,n);else{try{a.unsafe?e[t]&&(r=!0):delete e[t]}catch(e){}r?e[t]=n:Ys.f(e,t,{value:n,enumerable:!1,configurable:!a.nonConfigurable,writable:!a.nonWritable})}return e},Sl=Math.ceil,Pl=Math.floor,Ll=Math.trunc||function(e){var t=+e;return(t>0?Pl:Sl)(t)},Tl=function(e){var t=+e;return t!=t||0===t?0:Ll(t)},Cl=Math.max,Il=Math.min,$l=Math.min,Ol=function(e){return e>0?$l(Tl(e),9007199254740991):0},_l=function(e){return Ol(e.length)},Fl=function(e){return function(t,n,a){var r,o=zi(t),i=_l(o),s=function(e,t){var n=Tl(e);return n<0?Cl(n+t,0):Il(n,t)}(a,i);if(e&&n!=n){for(;i>s;)if((r=o[s++])!=r)return!0}else for(;i>s;s++)if((e||s in o)&&o[s]===n)return e||s||0;return!e&&-1}},Hl={includes:Fl(!0),indexOf:Fl(!1)}.indexOf,Rl=Fi([].push),Ml=function(e,t){var n,a=zi(e),r=0,o=[];for(n in a)!vs(pl,n)&&vs(a,n)&&Rl(o,n);for(;t.length>r;)vs(a,n=t[r++])&&(~Hl(o,n)||Rl(o,n));return o},jl=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Nl=jl.concat("length","prototype"),Bl=Object.getOwnPropertyNames||function(e){return Ml(e,Nl)},ql={f:Bl},Dl={f:Object.getOwnPropertySymbols},zl=Fi([].concat),Ul=Vi("Reflect","ownKeys")||function(e){var t=ql.f(zs(e)),n=Dl.f;return n?zl(t,n(e)):t},Wl=function(e,t,n){for(var a=Ul(t),r=Ys.f,o=Ns.f,i=0;i<a.length;i++){var s=a[i];vs(e,s)||n&&vs(n,s)||r(e,s,o(t,s))}},Gl=/#|\.prototype\./,Vl=function(e,t){var n=Xl[Kl(e)];return n==Yl||n!=Jl&&(Ui(t)?wi(t):!!t)},Kl=Vl.normalize=function(e){return String(e).replace(Gl,".").toLowerCase()},Xl=Vl.data={},Jl=Vl.NATIVE="N",Yl=Vl.POLYFILL="P",Zl=Vl,Ql=Ns.f,eu=function(e,t){var n,a,r,o,i,s=e.target,l=e.global,u=e.stat;if(n=l?vi:u?vi[s]||ps(s,{}):(vi[s]||{}).prototype)for(a in t){if(o=t[a],r=e.dontCallGetSet?(i=Ql(n,a))&&i.value:n[a],!Zl(l?a:s+(u?".":"#")+a,e.forced)&&void 0!==r){if(typeof o==typeof r)continue;Wl(o,r)}(e.sham||r&&r.sham)&&Zs(o,"sham",!0),Al(n,a,o,e)}},tu=Object.keys||function(e){return Ml(e,jl)},nu=ki&&!Bs?Object.defineProperties:function(e,t){zs(e);for(var n,a=zi(t),r=tu(t),o=r.length,i=0;o>i;)Ys.f(e,n=r[i++],a[n]);return e},au={f:nu},ru=Vi("document","documentElement"),ou=dl("IE_PROTO"),iu=function(){},su=function(e){return"<script>"+e+"</"+"script>"},lu=function(e){e.write(su("")),e.close();var t=e.parentWindow.Object;return e=null,t},uu=function(){try{kl=new ActiveXObject("htmlfile")}catch(e){}var e,t;uu="undefined"!=typeof document?document.domain&&kl?lu(kl):((t=Hs("iframe")).style.display="none",ru.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(su("document.F=Object")),e.close(),e.F):lu(kl);for(var n=jl.length;n--;)delete uu.prototype[jl[n]];return uu()};pl[ou]=!0;var cu,du,pu,mu=Object.create||function(e,t){var n;return null!==e?(iu.prototype=zs(e),n=new iu,iu.prototype=null,n[ou]=e):n=uu(),void 0===t?n:au.f(n,t)},fu=!wi((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),hu=dl("IE_PROTO"),yu=Object,gu=yu.prototype,bu=fu?yu.getPrototypeOf:function(e){var t=gs(e);if(vs(t,hu))return t[hu];var n=t.constructor;return Ui(n)&&t instanceof n?n.prototype:t instanceof yu?gu:null},vu=Ts("iterator"),wu=!1;[].keys&&("next"in(pu=[].keys())?(du=bu(bu(pu)))!==Object.prototype&&(cu=du):wu=!0);var ku=null==cu||wi((function(){var e={};return cu[vu].call(e)!==e}));ku&&(cu={}),Ui(cu[vu])||Al(cu,vu,(function(){return this}));var xu={IteratorPrototype:cu,BUGGY_SAFARI_ITERATORS:wu},Eu=Ys.f,Au=Ts("toStringTag"),Su={},Pu=xu.IteratorPrototype,Lu=function(){return this},Tu={};Tu[Ts("toStringTag")]="z";var Cu="[object z]"===String(Tu),Iu=Ts("toStringTag"),$u=Object,Ou="Arguments"==Mi(function(){return arguments}()),_u=Cu?Mi:function(e){var t,n,a;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=$u(e),Iu))?n:Ou?Mi(t):"Object"==(a=Mi(t))&&Ui(t.callee)?"Arguments":a},Fu=String,Hu=function(e){if("Symbol"===_u(e))throw TypeError("Cannot convert a Symbol value to a string");return Fu(e)},Ru=Ts("match"),Mu=function(){var e=zs(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t},ju=RegExp.prototype,Nu=function(e){var t=e.flags;return void 0!==t||"flags"in ju||vs(e,"flags")||!Ki(ju,e)?t:Ai(Mu,e)},Bu=function(){},qu=[],Du=Vi("Reflect","construct"),zu=/^\s*(?:class|function)\b/,Uu=Fi(zu.exec),Wu=!zu.exec(Bu),Gu=function(e){if(!Ui(e))return!1;try{return Du(Bu,qu,e),!0}catch(e){return!1}},Vu=function(e){if(!Ui(e))return!1;switch(_u(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return Wu||!!Uu(zu,sl(e))}catch(e){return!0}};Vu.sham=!0;var Ku,Xu,Ju=!Du||wi((function(){var e;return Gu(Gu.call)||!Gu(Object)||!Gu((function(){e=!0}))||e}))?Vu:Gu,Yu=TypeError,Zu=Ts("species"),Qu=function(e,t){var n,a=zs(e).constructor;return void 0===a||null==(n=zs(a)[Zu])?t:function(e){if(Ju(e))return e;throw Yu(is(e)+" is not a constructor")}(n)},ec=Fi("".charAt),tc=Fi("".charCodeAt),nc=Fi("".slice),ac=function(e){return function(t,n){var a,r,o=Hu(Di(t)),i=Tl(n),s=o.length;return i<0||i>=s?e?"":void 0:(a=tc(o,i))<55296||a>56319||i+1===s||(r=tc(o,i+1))<56320||r>57343?e?ec(o,i):a:e?nc(o,i,i+2):r-56320+(a-55296<<10)+65536}},rc={codeAt:ac(!1),charAt:ac(!0)}.charAt,oc=vi.RegExp,ic=wi((function(){var e=oc("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),sc=ic||wi((function(){return!oc("a","y").sticky})),lc=ic||wi((function(){var e=oc("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),uc={BROKEN_CARET:lc,MISSED_STICKY:sc,UNSUPPORTED_Y:ic},cc=vi.RegExp,dc=wi((function(){var e=cc(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),pc=vi.RegExp,mc=wi((function(){var e=pc("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),fc=xl.get,hc=hs("native-string-replace",String.prototype.replace),yc=RegExp.prototype.exec,gc=yc,bc=Fi("".charAt),vc=Fi("".indexOf),wc=Fi("".replace),kc=Fi("".slice),xc=(Xu=/b*/g,Ai(yc,Ku=/a/,"a"),Ai(yc,Xu,"a"),0!==Ku.lastIndex||0!==Xu.lastIndex),Ec=uc.BROKEN_CARET,Ac=void 0!==/()??/.exec("")[1];(xc||Ac||Ec||dc||mc)&&(gc=function(e){var t,n,a,r,o,i,s,l=this,u=fc(l),c=Hu(e),d=u.raw;if(d)return d.lastIndex=l.lastIndex,t=Ai(gc,d,c),l.lastIndex=d.lastIndex,t;var p=u.groups,m=Ec&&l.sticky,f=Ai(Mu,l),h=l.source,y=0,g=c;if(m&&(f=wc(f,"y",""),-1===vc(f,"g")&&(f+="g"),g=kc(c,l.lastIndex),l.lastIndex>0&&(!l.multiline||l.multiline&&"\n"!==bc(c,l.lastIndex-1))&&(h="(?: "+h+")",g=" "+g,y++),n=new RegExp("^(?:"+h+")",f)),Ac&&(n=new RegExp("^"+h+"$(?!\\s)",f)),xc&&(a=l.lastIndex),r=Ai(yc,m?n:l,g),m?r?(r.input=kc(r.input,y),r[0]=kc(r[0],y),r.index=l.lastIndex,l.lastIndex+=r[0].length):l.lastIndex=0:xc&&r&&(l.lastIndex=l.global?r.index+r[0].length:a),Ac&&r&&r.length>1&&Ai(hc,r[0],n,(function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(r[o]=void 0)})),r&&p)for(r.groups=i=mu(null),o=0;o<p.length;o++)i[(s=p[o])[0]]=r[s[1]];return r});var Sc=gc,Pc=TypeError,Lc=Ts("matchAll"),Tc="RegExp String",Cc="RegExp String Iterator",Ic=xl.set,$c=xl.getterFor(Cc),Oc=RegExp.prototype,_c=TypeError,Fc=Fi("".indexOf),Hc=Fi("".matchAll),Rc=!!Hc&&!wi((function(){Hc("a",/./)})),Mc=function(e,t,n,a){var r,o,i,s=t+" Iterator";return e.prototype=mu(Pu,{next:Ci(+!a,n)}),o=s,i=!1,(r=e)&&!i&&(r=r.prototype),r&&!vs(r,Au)&&Eu(r,Au,{configurable:!0,value:o}),Su[s]=Lu,e}((function(e,t,n,a){Ic(this,{type:Cc,regexp:e,string:t,global:n,unicode:a,done:!1})}),Tc,(function(){var e=$c(this);if(e.done)return{value:void 0,done:!0};var t=e.regexp,n=e.string,a=function(e,t){var n=e.exec;if(Ui(n)){var a=Ai(n,e,t);return null!==a&&zs(a),a}if("RegExp"===Mi(e))return Ai(Sc,e,t);throw Pc("RegExp#exec called on incompatible receiver")}(t,n);return null===a?{value:void 0,done:e.done=!0}:e.global?(""===Hu(a[0])&&(t.lastIndex=function(e,t,n){return t+(n?rc(e,t).length:1)}(n,Ol(t.lastIndex),e.unicode)),{value:a,done:!1}):(e.done=!0,{value:a,done:!1})})),jc=function(e){var t,n,a,r=zs(this),o=Hu(e),i=Qu(r,RegExp),s=Hu(Nu(r));return t=new i(i===RegExp?r.source:r,s),n=!!~Fc(s,"g"),a=!!~Fc(s,"u"),t.lastIndex=Ol(r.lastIndex),new Mc(t,o,n,a)};function Nc(e){const t={};return function(e){const t={};function n(e){const a=e.match(/var\((.+?)\)/g);if(a){let r=e;return a.forEach((n=>{const a=n.match(/\((.*)\)/i)[1];r=e.replace(n,t[a])})),n(r)}return e}return[...e.matchAll(/(--rebilly.*(?=:))[:\s](.*(?=;))/g)].forEach((e=>{t[e[1]]=e[2].trim()})),Object.entries(t).map((([e,t])=>[e,n(t)]))}(e).forEach((([e,n])=>{t[e]=n})),t}eu({target:"String",proto:!0,forced:Rc},{matchAll:function(e){var t,n,a,r,o,i=Di(this);if(null!=e){if(Wi(r=e)&&(void 0!==(o=r[Ru])?o:"RegExp"==Mi(r))&&(t=Hu(Di(Nu(e))),!~Fc(t,"g")))throw _c("`.matchAll` does not allow non-global regexes");if(Rc)return Hc(i,e);if(a=us(e,Lc))return Ai(a,e,i)}else if(Rc)return Hc(i,e);return n=Hu(i),new RegExp(e,"g")[Lc](n)}}),Lc in Oc||Al(Oc,Lc,jc);const Bc=(e,t="")=>({color:e[`--rebilly-${t}ColorText`],fontFamily:e[`--rebilly-${t}FontFamily`],fontSize:e[`--rebilly-${t}FontSize`],fontWeight:e[`--rebilly-${t}FontWeight`],lineHeight:e[`--rebilly-${t}FontLineHeight`],background:e[`--rebilly-${t}ColorBackground`],boxShadow:e[`--rebilly-${t}BoxShadow`]});function qc({eventName:e,callback:t}){if(!ut.includes(e))throw new Error(`${e} is not a supported event`);const n=be(e);lt[n].addEventListener(t)}async function Dc({componentName:e,payload:t,state:n}){switch(e){case"result":n.iframeComponents.form&&(n.iframeComponents.form.destroy(),n.iframeComponents.form=null),async function({payload:e,state:t}){var n,a;n=t.form,a='<div class="rebilly-instruments-result"></div>',n.querySelector(".rebilly-instruments-content").innerHTML=a,t.loader.startLoading({id:"rebilly-instruments-result"}),t.loader.stopLoading({id:"express-purchase"});const r=document.querySelector(".rebilly-instruments-result"),{paymentMethodsUrl:o}=t.options._computed,i={options:t.options,mainStyleVars:t.mainStyleVars,[t.options.transactionType]:e},s=await new ht({state:t,name:"rebilly-instruments-result",url:`${o}/result`,container:r,model:i});s.bindEventListeners({loader:t.loader}),t.iframeComponents.form=s}({payload:t,state:n});break;case"confirmation":!async function({payload:e,state:t}){var n,a;e.billingAddress&&t.summary&&t.data.isPurchase&&Ga({state:t,instrument:e});const r=t.iframeComponents.form,o={options:t.options,data:t.data.toPostmatesModel(),mainStyleVars:t.mainStyleVars,instrument:e};null==r||null===(n=r.component)||void 0===n||n.call("route",{name:"confirmation"}),null==r||null===(a=r.component)||void 0===a||a.call("update",o),document.querySelectorAll('[data-rebilly-instruments="express-method"]').forEach((e=>{e.style.overflow="hidden",e.style.height="0px"}))}({payload:t,state:n});break;default:throw new Error(`'${e}' not a supported component`)}}var zc=({state:e={}})=>{e.options.features.autoConfirmation&&qc({eventName:"instrument-ready",callback:t=>{var n;if("paypal"===(null===(n=t._raw)||void 0===n?void 0:n.method)&&!e.data.isShippingRequired)return"setup"===e.options.transactionType?jo({state:e,payload:t}):Mo({state:e,payload:t}),void e.loader.startLoading({state:e,id:"express-purchase",message:"form.loaderMessages.processingPayment"});Dc({componentName:"confirmation",payload:t,state:e})}}),e.options.features.autoResult&&qc({eventName:"setup"===e.options.transactionType?"setup-completed":"purchase-completed",callback:t=>{!function({state:e,payload:t}){Dc({componentName:"result",payload:t,state:e})}({state:e,payload:t})}})};async function Uc({state:e,setupFramepay:t=Qo,...n}={}){try{var a,r,o;e.data={},e.options={},e.form=Wo({element:"form",options:n}),e.summary=Wo({element:"summary",options:n}),e.form.style.maxWidth="750px",e.summary&&(e.summary.style.maxWidth="750px"),e.options=Zo({options:n}),e.storefront=Go({options:n}),e.mainStyleVars=fi({options:n}),e.options.themeFramepay=(({state:e,options:t={}})=>{const n=Nc(`\n ${e.mainStyleVars}\n ${t.css||""}\n `);return{base:{...Bc(n,"input"),":hover":Bc(n,"inputHover"),":focus":Bc(n,"inputFocus"),"::placeholder":Bc(n,"inputPlaceholder"),"::selection":Bc(n,"inputSelection")},invalid:{...Bc(n,"inputError"),":hover":Bc(n,"inputErrorHover"),":focus":Bc(n,"inputErrorFocus"),"::placeholder":Bc(n,"inputErrorPlaceholder"),"::selection":Bc(n,"inputErrorSelection")},buttons:{base:{...Bc(n,"buttonSecondary"),":hover":Bc(n,"buttonSecondaryHover"),":focus":Bc(n,"buttonSecondaryActive")},active:{...Bc(n,"button"),":hover":Bc(n,"buttonHover"),":focus":Bc(n,"buttonActive")}}}})({state:e,options:n}),e.loader.addDOMElement({el:e.form}),e.loader.addDOMElement({section:"summary",el:e.summary}),e.loader.startLoading({state:e,section:"summary",id:"rebilly-instruments-summary"}),e.loader.startLoading({state:e,id:"rebilly-instruments-form"});const[i]=await Promise.all([_o({state:e}),t(e)]);e.data=i,lt.dataReady.dispatch(e.data),e.i18n=(({state:e={}})=>{var t,n;if("auto"===e.options.locale&&null!==(t=e.data.riskMetadata)&&void 0!==t&&null!==(n=t.browserData)&&void 0!==n&&n.language){const{browserData:{language:t}}=e.data.riskMetadata;e.options.locale=t}return e.translate.init(e.options.locale,e.options.i18n),hi})({state:e}),!e.options.websiteId&&null!==(a=e.data.transaction)&&void 0!==a&&a.websiteId?e.options.websiteId=e.data.transaction.websiteId:!e.options.websiteId&&null!==(r=e.data.invoice)&&void 0!==r&&r.websiteId&&(e.options.websiteId=e.data.invoice.websiteId),e.data.transaction&&"setup"===(null===(o=e.data.transaction)||void 0===o?void 0:o.type)&&(e.options.transactionType="setup"),e.form&&zo({state:e}),e.summary&&async function({state:e}){const t={options:e.options,data:e.data.toPostmatesModel(),mainStyleVars:e.mainStyleVars},{paymentMethodsUrl:n}=e.options._computed,a=await new ht({state:e,name:"rebilly-instruments-summary",url:`${n}/summary`,container:e.summary,model:t});a.bindEventListeners({loader:e.loader}),e.iframeComponents.summary=a}({state:e}),e.i18n({state:e}),e.hasMounted=!0,i.readyToPay.length||(e.loader.stopLoading({id:"rebilly-instruments-form"}),pt(e.translate.getTranslation("form.error.noPaymentMethods")))}catch(e){throw pt(e),e}zc({state:e})}async function Wc({state:e}){var t;await(t=1e3,new Promise((e=>setTimeout(e,t)))),Object.values(e.iframeComponents).forEach((e=>null==e?void 0:e.destroy())),it.removeAll(document),e.iframeComponents={summary:null,form:null},e.hasMounted=!1,e.summary&&(e.summary.textContent=""),e.form.textContent="",Ca(),e.loader.clearAll()}function Gc({newOptions:e}){let t={};const n=Object.keys(e).some((e=>["items","money","invoiceId","transactionId"].includes(e)));return t=n?{items:null,money:null,invoiceId:null,transactionId:null}:t,t}var Vc,Kc,Xc=TypeError,Jc=function(e){return function(t,n,a,r){ls(n);var o=gs(t),i=Bi(o),s=_l(o),l=e?s-1:0,u=e?-1:1;if(a<2)for(;;){if(l in i){r=i[l],l+=u;break}if(l+=u,e?l<0:s<=l)throw Xc("Reduce of empty array with no initial value")}for(;e?l>=0:s>l;l+=u)l in i&&(r=n(r,i[l],l,o));return r}},Yc={left:Jc(!1),right:Jc(!0)},Zc="process"==Mi(vi.process),Qc=Yc.left;eu({target:"Array",proto:!0,forced:!(!!(Kc=[]["reduce"])&&wi((function(){Kc.call(null,Vc||function(){return 1},1)})))||!Zc&&es>79&&es<83},{reduce:function(e){var t=arguments.length;return Qc(this,e,t,t>1?arguments[1]:void 0)}});var ed={en:{summary:{subTotal:"Sub Total",discounts:"Discounts",taxes:"Taxes",shipping:"Shipping",total:"Total"},form:{expressCheckout:"Express checkout",or:"Or",popupOverlayText:"Click here to show popup window",andMore:"and more",error:{noPaymentMethods:"No payment methods available for this transaction, please contact support."},loaderMessages:{processingPayment:"Processing payment instrument."}},paymentMethods:{"payment-card":"Payment card",ach:"Bank account"}}},td={es:{summary:{subTotal:"Sub Total",discounts:"Descuentos",taxes:"Impuestos",shipping:"Envío",total:"Total"},form:{expressCheckout:"Chequeo rápido",or:"O pague con",andMore:"y más",popupOverlayText:"Haga clic aquí para mostrar la ventana emergente",error:{noPaymentMethods:"No hay métodos de pago disponibles para esta transacción, por favor, póngase en contacto con el servicio de asistencia."}},paymentMethods:{"payment-card":"Tarjeta de crédito",ach:"Cuenta bancaria"}}};class nd{constructor(){this.locale="",this.items=[],this.languages={}}init(e,t){this.items=document.querySelectorAll("[data-rebilly-i18n]"),this.locale=this.getLocale(e),this.languages=Bo({},{...ed,...td},t)}translateItems(){return this.items=document.querySelectorAll("[data-rebilly-i18n]"),this.locale in this.languages&&this.items.forEach((e=>{const t=this.getTranslation(e.dataset.rebillyI18n,this.languages[this.locale]);t&&(e.innerHTML=t)}))}updateTranslationsToNewLocale(e){this.locale=e,this.translateItems()}getLocale(e=this.locale){return!e.includes("-")||e in this.languages?e:(e=e.replace(/[-._]\w+$/gi,""),this.getLocale(e))}translateItem(e){const t=this.getLocale();return this.getTranslation(e.dataset.rebillyI18n,this.languages[t])}getTranslation(e,t=this.languages[this.locale]){return e.split(".").reduce(((e,t)=>null==e?void 0:e[t]),t)}}class ad{constructor(){this.options=null,this.data={},this.mountingPoints=null,this.storefront=null,this.form=null,this.summary=null,this.loader=new f,this.translate=new nd,this.iframeComponents={summary:null,form:null},this.hasMounted=!1}}var rd=new class{constructor(){this.state=new ad}async mount(e){await Uc({state:this.state,...e})}async destroy(){await Wc({state:this.state})}async update(e){await async function({state:e,newOptions:t={}}){if(!e.hasMounted)throw Error("Update method cannot be called before mounting instruments");const n={...e.options,...Gc({newOptions:t})},a=Bo({...n},t);await Wc({state:e}),Uc({state:e,form:e.form,summary:e.summary,...a})}({state:this.state,newOptions:e})}async purchase(e){await Mo({state:this.state,payload:e})}async setup(e){await jo({state:this.state,payload:e})}async show(e,t){await Dc({state:this.state,componentName:e,payload:t})}get version(){return"RebillyInstruments Ver.3.23.0-beta.1"}on(e,t){qc({state:this.state,eventName:e,callback:t})}};return rd}();
|