(function(o,t){typeof exports=="object"&&typeof module=="object"?module.exports=t():typeof define=="function"&&define.amd?define([],t):typeof exports=="object"?exports.selectorBar=t():(o.baCurr=o.baCurr||{},o.baCurr.selectorBar=t())})(window,function(){return function(o){var t={};function e(n){if(t[n])return t[n].exports;var r=t[n]={i:n,l:!1,exports:{}};return o[n].call(r.exports,r,r.exports,e),r.l=!0,r.exports}return e.m=o,e.c=t,e.d=function(o2,t2,n){e.o(o2,t2)||Object.defineProperty(o2,t2,{enumerable:!0,get:n})},e.r=function(o2){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(o2,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(o2,"__esModule",{value:!0})},e.t=function(o2,t2){if(1&t2&&(o2=e(o2)),8&t2||4&t2&&typeof o2=="object"&&o2&&o2.__esModule)return o2;var n=Object.create(null);if(e.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:o2}),2&t2&&typeof o2!="string")for(var r in o2)e.d(n,r,function(t3){return o2[t3]}.bind(null,r));return n},e.n=function(o2){var t2=o2&&o2.__esModule?function(){return o2.default}:function(){return o2};return e.d(t2,"a",t2),t2},e.o=function(o2,t2){return Object.prototype.hasOwnProperty.call(o2,t2)},e.p="/apps/",e(e.s=28)}([function(o,t,e){"use strict";var n=e(3),r=e(6),a=e(7);function c(o2,t2,e2){o2?bacurr$(t2).children().html(e2):bacurr$(t2).html(e2)}var i=e(18);function u(o2,t2,e2,n2){var r2,a2=r2=o2?bacurr$(t2).children().html():bacurr$(t2).html();return bacurr$(t2).data("bacurr-origMoneyVal",""+a2),r2=Object(i.a)(r2,e2.money_format,n2,e2.user_curr),bacurr$(t2).data("bacurr-initVal",""+r2),r2}var m=function(o2,t2,e2,i2,m2){if(t2.round_by_default){var s2,_2;s2=i2&&bacurr$(o2).hasClass("bacurr-money")?m2:u(e2,o2,t2,t2.user_curr),t2.round_style==="roundToDecimal"&&(s2=Object(a.a)(s2,t2));var l2=(_2=t2.moneyWithCurrencyFormat?n.a[t2.user_curr].money_with_currency_format||"{{amount}}":n.a[t2.user_curr].money_format||"{{amount}}").split("{{").pop().split("}}")[0],h=Object(r.a)(s2,l2,t2.user_curr,t2);c(e2,o2,s2=_2.replace("{{"+l2+"}}",h))}else i2&&c(e2,o2,i2)},s=function(o2,t2,e2){var i2,s2=bacurr$(o2).data("bacurr-origMoneyVal"),_2=bacurr$(o2).data("bacurr-initVal"),l2=!!bacurr$(o2).children().length;if(t2!==e2.user_curr){if(_2&&bacurr$(o2).hasClass("bacurr-money")){var h=bacurr$(o2).data(t2);h&&!isNaN(h)?i2=h:(i2=baCurr.Currency.convert(_2,e2.user_curr,t2),bacurr$(o2).data(""+t2,""+i2))}else{var p=u(l2,o2,e2,t2);i2=baCurr.Currency.convert(p,e2.user_curr,t2)}if(!isNaN(i2)){var d;e2.round_style==="roundToDecimal"&&(i2=Object(a.a)(i2,e2));var f=(d=e2.moneyWithCurrencyFormat?n.a[t2].money_with_currency_format||"{{amount}}":n.a[t2].money_format||"{{amount}}").split("{{").pop().split("}}")[0],y=Object(r.a)(i2,f,t2,e2);c(l2,o2,i2=d.replace("{{"+f+"}}",y))}}else m(o2,e2,l2,s2,_2)},_=e(1);function l(o2,t2){_.a.set(t2),bacurr$("span.money").each(function(){bacurr$("span.money",this).length===0&&(s(this,t2,o2),bacurr$(this).addClass("bacurr-money"))})}e.d(t,"a",function(){return l})},function(o,t,e){"use strict";var n=e(2),r={set:function(o2){n.a.set("bacurr_user_cur",o2)},get:function(){return n.a.get("bacurr_user_cur")}};t.a=r},function(o,t,e){"use strict";e.d(t,"a",function(){return n});var n={set:function(o2,t2,e2){e2===void 0&&(e2="session"),(e2==="session"?sessionStorage:localStorage).setItem(o2,JSON.stringify(t2))},get:function(o2,t2,e2){t2===void 0&&(t2=!0),e2===void 0&&(e2="session");var n2=(e2==="session"?sessionStorage:localStorage).getItem(o2);return t2?JSON.parse(n2):n2},unset:function(o2,t2){t2===void 0&&(t2="session"),!Array.isArray(o2)&&(o2=[o2]),o2.forEach(function(o3){(t2==="session"?sessionStorage:localStorage).removeItem(o3)})}}},function(o,t,e){"use strict";t.a={USD:{money_format:"${{amount}}",money_with_currency_format:"${{amount}} USD"},EUR:{money_format:"€{{amount}}",money_with_currency_format:"€{{amount}} EUR"},GBP:{money_format:"£{{amount}}",money_with_currency_format:"£{{amount}} GBP"},CAD:{money_format:"${{amount}}",money_with_currency_format:"${{amount}} CAD"},ALL:{money_format:"Lek {{amount}}",money_with_currency_format:"Lek {{amount}} ALL"},DZD:{money_format:"DA {{amount}}",money_with_currency_format:"DA {{amount}} DZD"},AOA:{money_format:"Kz{{amount}}",money_with_currency_format:"Kz{{amount}} AOA"},ARS:{money_format:"${{amount_with_comma_separator}}",money_with_currency_format:"${{amount_with_comma_separator}} ARS"},AMD:{money_format:"{{amount}} AMD",money_with_currency_format:"{{amount}} AMD"},AWG:{money_format:"Afl{{amount}}",money_with_currency_format:"Afl{{amount}} AWG"},AUD:{money_format:"${{amount}}",money_with_currency_format:"${{amount}} AUD"},BBD:{money_format:"${{amount}}",money_with_currency_format:"${{amount}} Bds"},AZN:{money_format:"m.{{amount}}",money_with_currency_format:"m.{{amount}} AZN"},BDT:{money_format:"Tk {{amount}}",money_with_currency_format:"Tk {{amount}} BDT"},BSD:{money_format:"BS${{amount}}",money_with_currency_format:"BS${{amount}} BSD"},BHD:{money_format:"{{amount}}0 BD",money_with_currency_format:"{{amount}}0 BHD"},BYR:{money_format:"Br {{amount}}",money_with_currency_format:"Br {{amount}} BYR"},BZD:{money_format:"BZ${{amount}}",money_with_currency_format:"BZ${{amount}} BZD"},BTN:{money_format:"Nu {{amount}}",money_with_currency_format:"Nu {{amount}} BTN"},BAM:{money_format:"KM {{amount_with_comma_separator}}",money_with_currency_format:"KM {{amount_with_comma_separator}} BAM"},BRL:{money_format:"R$ {{amount_with_comma_separator}}",money_with_currency_format:"R$ {{amount_with_comma_separator}} BRL"},BOB:{money_format:"Bs{{amount_with_comma_separator}}",money_with_currency_format:"Bs{{amount_with_comma_separator}} BOB"},BWP:{money_format:"P{{amount}}",money_with_currency_format:"P{{amount}} BWP"},BND:{money_format:"${{amount}}",money_with_currency_format:"${{amount}} BND"},BGN:{money_format:"{{amount}} BGN",money_with_currency_format:"{{amount}} BGN"},MMK:{money_format:"K{{amount}}",money_with_currency_format:"K{{amount}} MMK"},KHR:{money_format:"KHR{{amount}}",money_with_currency_format:"KHR{{amount}}"},KYD:{money_format:"${{amount}}",money_with_currency_format:"${{amount}} KYD"},XAF:{money_format:"FCFA{{amount}}",money_with_currency_format:"FCFA{{amount}} XAF"},CLP:{money_format:"${{amount_no_decimals}}",money_with_currency_format:"${{amount_no_decimals}} CLP"},CNY:{money_format:"¥{{amount}}",money_with_currency_format:"¥{{amount}} CNY"},COP:{money_format:"${{amount_with_comma_separator}}",money_with_currency_format:"${{amount_with_comma_separator}} COP"},CRC:{money_format:"₡ {{amount_with_comma_separator}}",money_with_currency_format:"₡ {{amount_with_comma_separator}} CRC"},HRK:{money_format:"{{amount_with_comma_separator}} kn",money_with_currency_format:"{{amount_with_comma_separator}} kn HRK"},CZK:{money_format:"{{amount_with_comma_separator}} Kč",money_with_currency_format:"{{amount_with_comma_separator}} Kč"},DKK:{money_format:"{{amount_with_comma_separator}}",money_with_currency_format:"kr.{{amount_with_comma_separator}}"},DOP:{money_format:"RD$ {{amount}}",money_with_currency_format:"RD$ {{amount}}"},XCD:{money_format:"${{amount}}",money_with_currency_format:"EC${{amount}}"},EGP:{money_format:"LE {{amount}}",money_with_currency_format:"LE {{amount}} EGP"},ETB:{money_format:"Br{{amount}}",money_with_currency_format:"Br{{amount}} ETB"},XPF:{money_format:"{{amount_no_decimals_with_comma_separator}} XPF",money_with_currency_format:"{{amount_no_decimals_with_comma_separator}} XPF"},FJD:{money_format:"${{amount}}",money_with_currency_format:"FJ${{amount}}"},GMD:{money_format:"D {{amount}}",money_with_currency_format:"D {{amount}} GMD"},GHS:{money_format:"GH₵{{amount}}",money_with_currency_format:"GH₵{{amount}}"},GTQ:{money_format:"Q{{amount}}",money_with_currency_format:"{{amount}} GTQ"},GYD:{money_format:"G${{amount}}",money_with_currency_format:"${{amount}} GYD"},GEL:{money_format:"{{amount}} GEL",money_with_currency_format:"{{amount}} GEL"},HNL:{money_format:"L {{amount}}",money_with_currency_format:"L {{amount}} HNL"},HKD:{money_format:"${{amount}}",money_with_currency_format:"HK${{amount}}"},HUF:{money_format:"{{amount_no_decimals_with_comma_separator}}",money_with_currency_format:"{{amount_no_decimals_with_comma_separator}} Ft"},ISK:{money_format:"{{amount_no_decimals}} kr",money_with_currency_format:"{{amount_no_decimals}} kr ISK"},INR:{money_format:"Rs. {{amount}}",money_with_currency_format:"Rs. {{amount}}"},IDR:{money_format:"{{amount_with_comma_separator}}",money_with_currency_format:"Rp {{amount_with_comma_separator}}"},ILS:{money_format:"{{amount}} NIS",money_with_currency_format:"{{amount}} NIS"},JMD:{money_format:"${{amount}}",money_with_currency_format:"${{amount}} JMD"},JPY:{money_format:"¥{{amount_no_decimals}}",money_with_currency_format:"¥{{amount_no_decimals}} JPY"},JEP:{money_format:"£{{amount}}",money_with_currency_format:"£{{amount}} JEP"},JOD:{money_format:"{{amount}}0 JD",money_with_currency_format:"{{amount}}0 JOD"},KZT:{money_format:"{{amount}} KZT",money_with_currency_format:"{{amount}} KZT"},KES:{money_format:"KSh{{amount}}",money_with_currency_format:"KSh{{amount}}"},KWD:{money_format:"{{amount}}0 KD",money_with_currency_format:"{{amount}}0 KWD"},KGS:{money_format:"KGS {{amount}}",money_with_currency_format:"KGS {{amount}}"},LVL:{money_format:"Ls {{amount}}",money_with_currency_format:"Ls {{amount}} LVL"},LBP:{money_format:"L£{{amount}}",money_with_currency_format:"L£{{amount}} LBP"},LTL:{money_format:"{{amount}} Lt",money_with_currency_format:"{{amount}} Lt"},MGA:{money_format:"Ar {{amount}}",money_with_currency_format:"Ar {{amount}} MGA"},MKD:{money_format:"\u0420\u0491\u0420\xB5\u0420\u0405 {{amount}}",money_with_currency_format:"\u0420\u0491\u0420\xB5\u0420\u0405 {{amount}} MKD"},MOP:{money_format:"MOP${{amount}}",money_with_currency_format:"MOP${{amount}}"},MVR:{money_format:"Rf{{amount}}",money_with_currency_format:"Rf{{amount}} MRf"},MXN:{money_format:"$ {{amount}}",money_with_currency_format:"$ {{amount}} MXN"},MYR:{money_format:"RM{{amount}} MYR",money_with_currency_format:"RM{{amount}} MYR"},MUR:{money_format:"Rs {{amount}}",money_with_currency_format:"Rs {{amount}} MUR"},MDL:{money_format:"{{amount}} MDL",money_with_currency_format:"{{amount}} MDL"},MAD:{money_format:"{{amount}} dh",money_with_currency_format:"Dh {{amount}} MAD"},MNT:{money_format:"{{amount_no_decimals}} ₮",money_with_currency_format:"{{amount_no_decimals}} MNT"},MZN:{money_format:"{{amount}} Mt",money_with_currency_format:"Mt {{amount}} MZN"},NAD:{money_format:"N${{amount}}",money_with_currency_format:"N${{amount}} NAD"},NPR:{money_format:"Rs{{amount}}",money_with_currency_format:"Rs{{amount}} NPR"},ANG:{money_format:"ƒ{{amount}}",money_with_currency_format:"{{amount}} NAƒ"},NZD:{money_format:"${{amount}}",money_with_currency_format:"${{amount}} NZD"},NIO:{money_format:"C${{amount}}",money_with_currency_format:"C${{amount}} NIO"},NGN:{money_format:"₦{{amount}}",money_with_currency_format:"₦{{amount}} NGN"},NOK:{money_format:"kr {{amount_with_comma_separator}}",money_with_currency_format:"kr {{amount_with_comma_separator}} NOK"},OMR:{money_format:"{{amount_with_comma_separator}} OMR",money_with_currency_format:"{{amount_with_comma_separator}} OMR"},PKR:{money_format:"Rs.{{amount}}",money_with_currency_format:"Rs.{{amount}} PKR"},PGK:{money_format:"K {{amount}}",money_with_currency_format:"K {{amount}} PGK"},PYG:{money_format:"Gs. {{amount_no_decimals_with_comma_separator}}",money_with_currency_format:"Gs. {{amount_no_decimals_with_comma_separator}} PYG"},PEN:{money_format:"S/. {{amount}}",money_with_currency_format:"S/. {{amount}} PEN"},PHP:{money_format:"₱{{amount}}",money_with_currency_format:"₱{{amount}} PHP"},PLN:{money_format:"{{amount_with_comma_separator}} zl",money_with_currency_format:"{{amount_with_comma_separator}} zl PLN"},QAR:{money_format:"QAR {{amount_with_comma_separator}}",money_with_currency_format:"QAR {{amount_with_comma_separator}}"},RON:{money_format:"{{amount_with_comma_separator}} lei",money_with_currency_format:"{{amount_with_comma_separator}} lei RON"},RUB:{money_format:"руб{{amount_with_comma_separator}}",money_with_currency_format:"руб{{amount_with_comma_separator}} RUB"},RWF:{money_format:"{{amount_no_decimals}} RF",money_with_currency_format:"{{amount_no_decimals}} RWF"},WST:{money_format:"WS$ {{amount}}",money_with_currency_format:"WS$ {{amount}} WST"},SAR:{money_format:"{{amount}} SR",money_with_currency_format:"{{amount}} SAR"},STD:{money_format:"Db {{amount}}",money_with_currency_format:"Db {{amount}} STD"},RSD:{money_format:"{{amount}} RSD",money_with_currency_format:"{{amount}} RSD"},SCR:{money_format:"Rs {{amount}}",money_with_currency_format:"Rs {{amount}} SCR"},SGD:{money_format:"${{amount}}",money_with_currency_format:"${{amount}} SGD"},SYP:{money_format:"S£{{amount}}",money_with_currency_format:"S£{{amount}} SYP"},ZAR:{money_format:"R {{amount}}",money_with_currency_format:"R {{amount}} ZAR"},KRW:{money_format:"₩{{amount_no_decimals}}",money_with_currency_format:"₩{{amount_no_decimals}} KRW"},LKR:{money_format:"Rs {{amount}}",money_with_currency_format:"Rs {{amount}} LKR"},SEK:{money_format:"{{amount_no_decimals}} kr",money_with_currency_format:"{{amount_no_decimals}} kr SEK"},CHF:{money_format:"SFr. {{amount}}",money_with_currency_format:"SFr. {{amount}} CHF"},TWD:{money_format:"${{amount}}",money_with_currency_format:"${{amount}} TWD"},THB:{money_format:"{{amount}} ฿",money_with_currency_format:"{{amount}} ฿ THB"},TZS:{money_format:"{{amount}} TZS",money_with_currency_format:"{{amount}} TZS"},TTD:{money_format:"${{amount}}",money_with_currency_format:"${{amount}} TTD"},TND:{money_format:"{{amount}}",money_with_currency_format:"{{amount}} DT"},TRY:{money_format:"{{amount}}TL",money_with_currency_format:"{{amount}}TL"},UGX:{money_format:"Ush {{amount_no_decimals}}",money_with_currency_format:"Ush {{amount_no_decimals}} UGX"},UAH:{money_format:"\u0432\u201A\u0491{{amount}}",money_with_currency_format:"\u0432\u201A\u0491{{amount}} UAH"},AED:{money_format:"Dhs. {{amount}}",money_with_currency_format:"Dhs. {{amount}} AED"},UYU:{money_format:"${{amount_with_comma_separator}}",money_with_currency_format:"${{amount_with_comma_separator}} UYU"},VUV:{money_format:"${{amount}}",money_with_currency_format:"${{amount}}VT"},VEF:{money_format:"Bs. {{amount_with_comma_separator}}",money_with_currency_format:"Bs. {{amount_with_comma_separator}} VEF"},VND:{money_format:"{{amount_no_decimals_with_comma_separator}}₫",money_with_currency_format:"{{amount_no_decimals_with_comma_separator}} VND"},XBT:{money_format:"{{amount_no_decimals}} BTC",money_with_currency_format:"{{amount_no_decimals}} BTC"},XOF:{money_format:"CFA{{amount}}",money_with_currency_format:"CFA{{amount}} XOF"},ZMW:{money_format:"K{{amount_no_decimals_with_comma_separator}}",money_with_currency_format:"ZMW{{amount_no_decimals_with_comma_separator}}"}}},function(o,t,e){"use strict";t.a=function(o2,t2){return new Promise(function(e2,n){if(t2.multi_curr&&(t2.multi_curr||[]).includes(o2)){var r={form_type:"currency",utf8:"\xE2\u0153\u201C",return_to:window.location.pathname,currency:o2};bacurr$.ajax({type:"POST",url:"/cart/update.js",data:bacurr$.param(r),dataType:"json",success:function(t3){window.baCurr&&window.baCurr.config&&window.baCurr.config.final_currency!==o2&&(window.baCurr.config.final_currency=o2),e2(t3)},error:function(o3){n(o3)}})}else e2(!0)})}},function(o,t,e){"use strict";t.a=function(o2,t2){var e2=o2.chosen_cur,n=!1;return e2.forEach(function(o3){Object.keys(o3)[0]===t2&&(n=!0)}),n||!o2.auto_pref}},function(o,t,e){"use strict";var n=e(17);t.a=function(o2,t2,e2,r){function a(o3,t3,e3,n2){t3===void 0&&(t3=2),e3===void 0&&(e3=","),n2===void 0&&(n2=".");var r2=o3;if(isNaN(r2)||r2==null)return 0;var a2=(r2=Number(r2).toFixed(t3)).split(".");return a2[0].replace(/(\d)(?=(\d\d\d)+(?!\d))/g,"$1"+e3)+(a2[1]?n2+a2[1]:"")}var c="",i=Object(n.a)(e2,r);switch(t2){case"amount":c=a(o2,i);break;case"amount_no_decimals":c=a(o2,0);break;case"amount_no_decimals_with_comma_separator":c=a(o2,0,".",",");break;case"amount_with_comma_separator":c=a(o2,i,".",",");break;default:c=a(o2,i,",",".")}return c}},function(o,t,e){"use strict";function n(o2,t2){var e2=Math.round(o2),n2=t2.round_dec>.5?e2-(1-t2.round_dec):e2+t2.round_dec;return n2>0?n2:o2}e.d(t,"a",function(){return n})},function(o,t,e){"use strict";function n(o2){var t2=baCurr.config;!t2.dont_show_selector&&o2&&(t2.ui_style!=="modernLayered"&&t2.ui_style!=="select-round"&&t2.ui_style!=="default"||(bacurr$("div.bacurr-choiceDesign").html('
'+o2+""),t2&&t2.chosen_cur&&t2.chosen_cur.chosen_cur>1&&bacurr$("li#"+o2).addClass("bacurrSelected").siblings().removeClass("bacurrSelected")))}e.d(t,"a",function(){return n})},function(o,t,e){"use strict";var n=e(1),r=e(0),a=e(4);t.a=function(o2){var t2=window.baCurr.config;t2.final_currency&&t2.final_currency!==t2.user_curr?t2.multi_curr&&(t2.multi_curr||[]).includes(o2)?t2.final_currency!==o2&&(Object(a.a)(o2,t2).then(function(){window.location.reload()}).catch(function(o3){}),n.a.set(o2)):(n.a.set(o2),Object(a.a)(t2.user_curr,t2).then(function(){window.location.reload()}).catch(function(o3){})):t2.multi_curr&&(t2.multi_curr||[]).includes(o2)&&t2.user_curr!==o2?(Object(r.a)(t2,o2),Object(a.a)(o2,t2).then(function(){}).catch(function(o3){})):Object(r.a)(t2,o2)}},function(o,t,e){"use strict";e(37);var n=function(o2){var t2=' "},r=e(0),a=e(9),c=e(4),i=function(o2){bacurr$("select.bacurr").each(function(){var t2="";o2.night_time||(t2+="--bacurrBackground: "+baCurr.config.selector_bg_hex+" !important;--bacurrSelect-color: "+baCurr.config.textColor+" !important;--bacurrHover-bg:"+baCurr.config.selector_hover_hex);var e2=bacurr$(this),n2=bacurr$(this).children("option").length,r2=((window.baCurr||{}).config||{}).final_currency;e2.addClass("bacurr-choice-invisible"),e2.wrap('
'),o2.night_time,e2.after('
');var a2=e2.next("div.bacurr-choiceDesign");a2.html('
'+r2+"");for(var c2=bacurr$("