var ye=(W,Q,F)=>new Promise((Y,B)=>{var G=k=>{try{R(F.next(k))}catch(z){B(z)}},O=k=>{try{R(F.throw(k))}catch(z){B(z)}},R=k=>k.done?Y(k.value):Promise.resolve(k.value).then(G,O);R((F=F.apply(W,Q)).next())});(function(){"use strict";const W=":host{display:block;width:100%}.money-input{position:relative;display:inline-flex;align-items:center;width:100%;cursor:text}.money-input__prefix{font-size:inherit;color:inherit;font-weight:inherit;font-family:inherit;margin-right:var(--money-input-prefix-spacing, 4px);user-select:none}.money-input__field{flex:1;padding:0;font-size:inherit;border:none;background:transparent;outline:none;color:inherit;font-weight:inherit;font-family:inherit}.money-input__field::-webkit-inner-spin-button,.money-input__field::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.money-input__field::placeholder{color:var(--money-input-placeholder-color, #ccc);opacity:1}";class Q extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"}),this._value=0}static get observedAttributes(){return["value","placeholder","min","max","step","prefix"]}connectedCallback(){this.render(),this.attachEvents()}attributeChangedCallback(s,a,l){a!==l&&this.render()}render(){const s=this.getAttribute("prefix")||"$",a=this.getAttribute("placeholder")||"0",l=this.getAttribute("min")||"0",p=this.getAttribute("max")||"",g=this.getAttribute("step")||"0.01",y=this.getAttribute("value")||l;this.shadowRoot.innerHTML=` `,this._input=this.shadowRoot.querySelector(".money-input__field"),this._value=parseFloat(y)||0}attachEvents(){let s=this._input.value;this.shadowRoot.addEventListener("input",a=>{if(a.target.classList.contains("money-input__field")){const l=this.getAttribute("max")?parseFloat(this.getAttribute("max")):null,p=parseFloat(a.target.value);if(l!==null&&!isNaN(p)&&p>l){a.target.value=s;return}s=a.target.value,this._value=parseFloat(a.target.value)||0,this.dispatchEvent(new CustomEvent("change",{detail:{value:this._value},bubbles:!0,composed:!0}))}}),this.shadowRoot.addEventListener("blur",a=>{if(a.target.classList.contains("money-input__field")){let l=parseFloat(a.target.value);const p=parseFloat(this.getAttribute("min"))||0,g=this.getAttribute("max")?parseFloat(this.getAttribute("max")):null;isNaN(l)||a.target.value===""||lg&&(l=g,a.target.value=g),this._value=l,s=a.target.value,this.dispatchEvent(new CustomEvent("change",{detail:{value:this._value},bubbles:!0,composed:!0}))}},!0)}getValue(){return this._value}setValue(s){this._value=s,this._input&&(this._input.value=s),this.setAttribute("value",s)}getInputElement(){return this._input}}const F=`/*!Ion.RangeSlider, 2.3.1, © Denis Ineshin, 2010 - 2019, IonDen.com, Build date: 2019-12-19 16:51:02*/.irs{position:relative;display:block;-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;font-size:12px;font-family:Arial,sans-serif}.irs-line{position:relative;display:block;overflow:hidden;outline:none!important}.irs-bar{position:absolute;display:block;left:0;width:0}.irs-shadow{position:absolute;display:none;left:0;width:0}.irs-handle{position:absolute;display:block;box-sizing:border-box;cursor:default;z-index:1}.irs-handle.type_last{z-index:2}.irs-min,.irs-max{position:absolute;display:block;cursor:default}.irs-min{left:0}.irs-max{right:0}.irs-from,.irs-to,.irs-single{position:absolute;display:block;top:0;left:0;cursor:default;white-space:nowrap}.irs-grid{position:absolute;display:none;bottom:0;left:0;width:100%;height:20px}.irs-with-grid .irs-grid{display:block}.irs-grid-pol{position:absolute;top:0;left:0;width:1px;height:8px;background:#000}.irs-grid-pol.small{height:4px}.irs-grid-text{position:absolute;bottom:0;left:0;white-space:nowrap;text-align:center;font-size:9px;line-height:9px;padding:0 3px;color:#000}.irs-disable-mask{position:absolute;display:block;top:0;left:-1%;width:102%;height:100%;cursor:default;background:#0000;z-index:2}.lt-ie9 .irs-disable-mask{background:#000;filter:alpha(opacity=0);cursor:not-allowed}.irs-disabled{opacity:.4}.irs-hidden-input{position:absolute!important;display:block!important;top:0!important;left:0!important;width:0!important;height:0!important;font-size:0!important;line-height:0!important;padding:0!important;margin:0!important;overflow:hidden;outline:none!important;z-index:-9999!important;background:none!important;border-style:solid!important;border-color:transparent!important}.irs--flat{height:40px}.irs--flat.irs-with-grid{height:60px}.irs--flat .irs-line{top:25px;height:12px;background-color:#e1e4e9;border-radius:4px}.irs--flat .irs-bar{top:25px;height:12px;background-color:#ed5565}.irs--flat .irs-bar--single{border-radius:4px 0 0 4px}.irs--flat .irs-shadow{height:1px;bottom:16px;background-color:#e1e4e9}.irs--flat .irs-handle{top:22px;width:16px;height:18px;background-color:transparent}.irs--flat .irs-handle>i:first-child{position:absolute;display:block;top:0;left:50%;width:2px;height:100%;margin-left:-1px;background-color:#da4453}.irs--flat .irs-handle.state_hover>i:first-child,.irs--flat .irs-handle:hover>i:first-child{background-color:#a43540}.irs--flat .irs-min,.irs--flat .irs-max{top:0;padding:1px 3px;color:#999;font-size:10px;line-height:1.333;text-shadow:none;background-color:#e1e4e9;border-radius:4px}.irs--flat .irs-from,.irs--flat .irs-to,.irs--flat .irs-single{color:#fff;font-size:10px;line-height:1.333;text-shadow:none;padding:1px 5px;background-color:#ed5565;border-radius:4px}.irs--flat .irs-from:before,.irs--flat .irs-to:before,.irs--flat .irs-single:before{position:absolute;display:block;content:"";bottom:-6px;left:50%;width:0;height:0;margin-left:-3px;overflow:hidden;border:3px solid transparent;border-top-color:#ed5565}.irs--flat .irs-grid-pol{background-color:#e1e4e9}.irs--flat .irs-grid-text{color:#999}.irs--big{height:55px}.irs--big.irs-with-grid{height:70px}.irs--big .irs-line{top:33px;height:12px;background-color:#fff;background:linear-gradient(to bottom,#ddd -50%,#fff 150%);border:1px solid #ccc;border-radius:12px}.irs--big .irs-bar{top:33px;height:12px;background-color:#92bce0;border:1px solid #428bca;background:linear-gradient(to bottom,#fff,#428bca 30%,#b9d4ec);box-shadow:inset 0 0 1px 1px #ffffff80}.irs--big .irs-bar--single{border-radius:12px 0 0 12px}.irs--big .irs-shadow{height:1px;bottom:16px;background-color:#428bca80}.irs--big .irs-handle{top:25px;width:30px;height:30px;border:1px solid rgba(0,0,0,.3);background-color:#cbcfd5;background:linear-gradient(to bottom,#fff,#b4b9be 30%,#fff);box-shadow:1px 1px 2px #0003,inset 0 0 3px 1px #fff;border-radius:30px}.irs--big .irs-handle.state_hover,.irs--big .irs-handle:hover{border-color:#00000073;background-color:#939ba7;background:linear-gradient(to bottom,#fff,#919ba5 30%,#fff)}.irs--big .irs-min,.irs--big .irs-max{top:0;padding:1px 5px;color:#fff;text-shadow:none;background-color:#9f9f9f;border-radius:3px}.irs--big .irs-from,.irs--big .irs-to,.irs--big .irs-single{color:#fff;text-shadow:none;padding:1px 5px;background-color:#428bca;background:linear-gradient(to bottom,#428bca,#3071a9);border-radius:3px}.irs--big .irs-grid-pol{background-color:#428bca}.irs--big .irs-grid-text{color:#428bca}.irs--modern,.irs--modern.irs-with-grid{height:55px}.irs--modern .irs-line{top:25px;height:5px;background-color:#d1d6e0;background:linear-gradient(to bottom,#e0e4ea,#d1d6e0);border:1px solid #a3adc1;border-bottom-width:0;border-radius:5px}.irs--modern .irs-bar{top:25px;height:5px;background:#20b426;background:linear-gradient(to bottom,#20b426,#18891d)}.irs--modern .irs-bar--single{border-radius:5px 0 0 5px}.irs--modern .irs-shadow{height:1px;bottom:21px;background-color:#d1d6e080}.irs--modern .irs-handle{top:37px;width:12px;height:13px;border:1px solid #a3adc1;border-top-width:0;box-shadow:1px 1px 1px #0000001a;border-radius:0 0 3px 3px}.irs--modern .irs-handle>i:nth-child(1){position:absolute;display:block;top:-4px;left:1px;width:6px;height:6px;border:1px solid #a3adc1;background:#fff;transform:rotate(45deg)}.irs--modern .irs-handle>i:nth-child(2){position:absolute;display:block;box-sizing:border-box;top:0;left:0;width:10px;height:12px;background:#e9e6e6;background:linear-gradient(to bottom,#fff,#e9e6e6);border-radius:0 0 3px 3px}.irs--modern .irs-handle>i:nth-child(3){position:absolute;display:block;box-sizing:border-box;top:3px;left:3px;width:4px;height:5px;border-left:1px solid #a3adc1;border-right:1px solid #a3adc1}.irs--modern .irs-handle.state_hover,.irs--modern .irs-handle:hover{border-color:#7685a2;background:#c3c7cd;background:linear-gradient(to bottom,#fff,#919ba5 30%,#fff)}.irs--modern .irs-handle.state_hover>i:nth-child(1),.irs--modern .irs-handle:hover>i:nth-child(1){border-color:#7685a2}.irs--modern .irs-handle.state_hover>i:nth-child(3),.irs--modern .irs-handle:hover>i:nth-child(3){border-color:#48536a}.irs--modern .irs-min,.irs--modern .irs-max{top:0;font-size:10px;line-height:1.333;text-shadow:none;padding:1px 5px;color:#fff;background-color:#d1d6e0;border-radius:5px}.irs--modern .irs-from,.irs--modern .irs-to,.irs--modern .irs-single{font-size:10px;line-height:1.333;text-shadow:none;padding:1px 5px;background-color:#20b426;color:#fff;border-radius:5px}.irs--modern .irs-from:before,.irs--modern .irs-to:before,.irs--modern .irs-single:before{position:absolute;display:block;content:"";bottom:-6px;left:50%;width:0;height:0;margin-left:-3px;overflow:hidden;border:3px solid transparent;border-top-color:#20b426}.irs--modern .irs-grid{height:25px}.irs--modern .irs-grid-pol{background-color:#dedede}.irs--modern .irs-grid-text{color:silver;font-size:13px}.irs--sharp{height:50px;font-size:12px;line-height:1}.irs--sharp.irs-with-grid{height:57px}.irs--sharp .irs-line{top:30px;height:2px;background-color:#000;border-radius:2px}.irs--sharp .irs-bar{top:30px;height:2px;background-color:#ee22fa}.irs--sharp .irs-bar--single{border-radius:2px 0 0 2px}.irs--sharp .irs-shadow{height:1px;bottom:21px;background-color:#00000080}.irs--sharp .irs-handle{top:25px;width:10px;height:10px;background-color:#a804b2}.irs--sharp .irs-handle>i:first-child{position:absolute;display:block;top:100%;left:0;width:0;height:0;border:5px solid transparent;border-top-color:#a804b2}.irs--sharp .irs-handle.state_hover,.irs--sharp .irs-handle:hover{background-color:#000}.irs--sharp .irs-handle.state_hover>i:first-child,.irs--sharp .irs-handle:hover>i:first-child{border-top-color:#000}.irs--sharp .irs-min,.irs--sharp .irs-max{color:#fff;font-size:14px;line-height:1;top:0;padding:3px 4px;opacity:.4;background-color:#a804b2;border-radius:2px}.irs--sharp .irs-from,.irs--sharp .irs-to,.irs--sharp .irs-single{font-size:14px;line-height:1;text-shadow:none;padding:3px 4px;background-color:#a804b2;color:#fff;border-radius:2px}.irs--sharp .irs-from:before,.irs--sharp .irs-to:before,.irs--sharp .irs-single:before{position:absolute;display:block;content:"";bottom:-6px;left:50%;width:0;height:0;margin-left:-3px;overflow:hidden;border:3px solid transparent;border-top-color:#a804b2}.irs--sharp .irs-grid{height:25px}.irs--sharp .irs-grid-pol{background-color:#dedede}.irs--sharp .irs-grid-text{color:silver;font-size:13px}.irs--round{height:50px}.irs--round.irs-with-grid{height:65px}.irs--round .irs-line{top:36px;height:4px;background-color:#dee4ec;border-radius:4px}.irs--round .irs-bar{top:36px;height:4px;background-color:#006cfa}.irs--round .irs-bar--single{border-radius:4px 0 0 4px}.irs--round .irs-shadow{height:4px;bottom:21px;background-color:#dee4ec80}.irs--round .irs-handle{top:26px;width:24px;height:24px;border:4px solid #006cfa;background-color:#fff;border-radius:24px;box-shadow:0 1px 3px #0000ff4d}.irs--round .irs-handle.state_hover,.irs--round .irs-handle:hover{background-color:#f0f6ff}.irs--round .irs-min,.irs--round .irs-max{color:#333;font-size:14px;line-height:1;top:0;padding:3px 5px;background-color:#0000001a;border-radius:4px}.irs--round .irs-from,.irs--round .irs-to,.irs--round .irs-single{font-size:14px;line-height:1;text-shadow:none;padding:3px 5px;background-color:#006cfa;color:#fff;border-radius:4px}.irs--round .irs-from:before,.irs--round .irs-to:before,.irs--round .irs-single:before{position:absolute;display:block;content:"";bottom:-6px;left:50%;width:0;height:0;margin-left:-3px;overflow:hidden;border:3px solid transparent;border-top-color:#006cfa}.irs--round .irs-grid{height:25px}.irs--round .irs-grid-pol{background-color:#dedede}.irs--round .irs-grid-text{color:silver;font-size:13px}.irs--square{height:50px}.irs--square.irs-with-grid{height:60px}.irs--square .irs-line{top:31px;height:4px;background-color:#dedede}.irs--square .irs-bar{top:31px;height:4px;background-color:#000}.irs--square .irs-shadow{height:2px;bottom:21px;background-color:#dedede}.irs--square .irs-handle{top:25px;width:16px;height:16px;border:3px solid black;background-color:#fff;-webkit-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg)}.irs--square .irs-handle.state_hover,.irs--square .irs-handle:hover{background-color:#f0f6ff}.irs--square .irs-min,.irs--square .irs-max{color:#333;font-size:14px;line-height:1;top:0;padding:3px 5px;background-color:#0000001a}.irs--square .irs-from,.irs--square .irs-to,.irs--square .irs-single{font-size:14px;line-height:1;text-shadow:none;padding:3px 5px;background-color:#000;color:#fff}.irs--square .irs-grid{height:25px}.irs--square .irs-grid-pol{background-color:#dedede}.irs--square .irs-grid-text{color:silver;font-size:11px}:host{display:block;width:100%}.range-slider{width:100%}.range-slider .irs-single,.range-slider .irs-grid-text{display:none}.range-slider .irs-line,.range-slider .irs-bar{height:3px;border-radius:3px;background:#404040}.range-slider .irs-grid-pol{top:unset;bottom:0;background:#a5a5a5}.range-slider .irs-grid-pol.small{background:#404040}.range-slider .irs-handle{border:none;cursor:pointer;background-color:unset!important;background-image:url("data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20preserveAspectRatio='none'%20viewBox='0%200%2037%2023'%3e%3cpath%20fill='%23404040'%20d='M18.5%200C22.3682%200%2025.7888%201.91006%2027.8723%204.83839C29.7296%207.44883%2032.2962%2010%2035.5%2010C36.3284%2010%2037%2010.6716%2037%2011.5C37%2012.3284%2036.3284%2013%2035.5%2013C32.2962%2013%2029.7296%2015.5512%2027.8723%2018.1616C25.7888%2021.0899%2022.3682%2023%2018.5%2023C14.6318%2023%2011.2112%2021.0899%209.1277%2018.1616C7.27038%2015.5512%204.70375%2013%201.5%2013C0.671573%2013%200%2012.3284%200%2011.5C0%2010.6716%200.671573%2010%201.5%2010C4.70375%2010%207.27038%207.44883%209.1277%204.83839C11.2112%201.91006%2014.6318%200%2018.5%200Z'%3e%3c/path%3e%3ccircle%20cx='18.5'%20cy='11.5'%20r='3.5'%20fill='white'/%3e%3c/svg%3e");width:37px;height:23px;box-shadow:none}.range-slider .irs-handle.state_hover:after{display:none}.range-slider .irs-handle:after{content:"";pointer-events:none;animation:growAndFade 3s infinite ease-out;border-radius:50%;opacity:.5;position:absolute;height:60px;width:60px;left:50%;top:50%;border:4px solid white;box-sizing:border-box;margin-top:-30px;margin-left:-30px}@keyframes growAndFade{0%{transform:scale(0);opacity:.5}66.67%{opacity:0;transform:scale(1)}to{opacity:0;transform:scale(1)}}@media (max-width: 767px){.range-slider .irs-handle{width:48px;height:30px;transform:translateY(-3px)}}`;class Y extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"}),this._value=0,this._sliderInstance=null}static get observedAttributes(){return["min","max","from","step","prefix"]}connectedCallback(){this.render(),this.initSlider()}attributeChangedCallback(s,a,l){a!==l&&this._sliderInstance&&this.updateSlider()}disconnectedCallback(){this._sliderInstance&&this._sliderInstance.destroy()}render(){this.shadowRoot.innerHTML=`
`,this._input=this.shadowRoot.querySelector(".range-slider__input")}initSlider(){const s=parseInt(this.getAttribute("min"))||0,a=parseInt(this.getAttribute("max"))||100,l=parseInt(this.getAttribute("from"))||0,p=parseInt(this.getAttribute("step"))||1,g=this.getAttribute("prefix")||"",y=$(this._input);y.ionRangeSlider({skin:"round",grid:!0,min:s,max:a,from:l,step:p,hide_min_max:!0,prettify_enabled:!0,prefix:g,onStart:_=>{this._value=_.from},onChange:_=>{this._value=_.from,this.dispatchEvent(new CustomEvent("update",{detail:{value:this._value},bubbles:!0,composed:!0}))},onFinish:_=>{this._value=_.from,this.dispatchEvent(new CustomEvent("change",{detail:{value:this._value},bubbles:!0,composed:!0}))}}),this._sliderInstance=y.data("ionRangeSlider")}updateSlider(){if(!this._sliderInstance)return;const s=parseInt(this.getAttribute("min"))||0,a=parseInt(this.getAttribute("max"))||100,l=parseInt(this.getAttribute("from"))||0,p=parseInt(this.getAttribute("step"))||1,g=this.getAttribute("prefix")||"";this._sliderInstance.update({min:s,max:a,from:l,step:p,prefix:g})}getValue(){return this._value}setValue(s){this._value=s,this._sliderInstance&&this._sliderInstance.update({from:s})}update(s){this._sliderInstance&&this._sliderInstance.update(s)}}var B=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function G(m){return m&&m.__esModule&&Object.prototype.hasOwnProperty.call(m,"default")?m.default:m}var O={exports:{}};(function(m,s){(function(){var a,l,p,g,y,_,D,E,U,w,M,I,x,he,ue,K,pe,A,X,ce,q,J,Z,ee,H,te,ie,me,re,oe,fe,ge,be=[].slice;pe='',he=''+pe+"",g='8'+he+"",D='',p="(,ddd).dd",E=/^\(?([^)]*)\)?(?:(.)(d+))?$/,U=30,_=2e3,a=20,w=2,y=.5,M=1e3/U,l=1e3/a,ue="transitionend webkitTransitionEnd oTransitionEnd otransitionend MSTransitionEnd",H=document.createElement("div").style,K=H.transition!=null||H.webkitTransition!=null||H.mozTransition!=null||H.oTransition!=null,Z=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame,I=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver,X=function(i){var e;return e=document.createElement("div"),e.innerHTML=i,e.children[0]},J=function(i,e){return i.className=i.className.replace(new RegExp("(^| )"+e.split(" ").join("|")+"( |$)","gi")," ")},A=function(i,e){return J(i,e),i.className+=" "+e},te=function(i,e){var t;if(document.createEvent!=null)return t=document.createEvent("HTMLEvents"),t.initEvent(e,!0,!0),i.dispatchEvent(t)},q=function(){var i,e;return(i=(e=window.performance)!=null&&typeof e.now=="function"?e.now():void 0)!=null?i:+new Date},ee=function(i,e){return e==null&&(e=0),e?(i*=Math.pow(10,e),i+=.5,i=Math.floor(i),i/=Math.pow(10,e)):Math.round(i)},ie=function(i){return i<0?Math.ceil(i):Math.floor(i)},ce=function(i){return i-ee(i)},re=!1,(me=function(){var i,e,t,r,n;if(!re&&window.jQuery!=null){for(re=!0,r=["html","text"],n=[],e=0,t=r.length;e"),e=e.replace(/[.,]/g,""),e=e.replace("","."),e=parseFloat(e,10)||0),ee(e,this.format.precision)},i.prototype.bindTransitionEnd=function(){var e,t,r,n,o,d,h=this;if(!this.transitionEndBound){for(this.transitionEndBound=!0,t=!1,o=ue.split(" "),d=[],r=0,n=o.length;r0?A(this.el,"odometer-animating-up"):A(this.el,"odometer-animating-down"),this.stopWatchingMutations(),this.animate(e),this.startWatchingMutations(),setTimeout(function(){return r.el.offsetHeight,A(r.el,"odometer-animating")},0),this.value=e},i.prototype.renderDigit=function(){return X(g)},i.prototype.insertDigit=function(e,t){return t!=null?this.inside.insertBefore(e,t):this.inside.children.length?this.inside.insertBefore(e,this.inside.children[0]):this.inside.appendChild(e)},i.prototype.addSpacer=function(e,t,r){var n;return n=X(D),n.innerHTML=e,r&&A(n,r),this.insertDigit(n,t)},i.prototype.addDigit=function(e,t){var r,n,o,d;if(t==null&&(t=!0),e==="-")return this.addSpacer(e,null,"odometer-negation-mark");if(e===".")return this.addSpacer((d=this.format.radix)!=null?d:".",null,"odometer-radix-mark");if(t)for(o=!1;;){if(!this.format.repeating.length){if(o)throw new Error("Bad odometer format without digits");this.resetFormat(),o=!0}if(r=this.format.repeating[this.format.repeating.length-1],this.format.repeating=this.format.repeating.substring(0,this.format.repeating.length-1),r==="d")break;this.addSpacer(r)}return n=this.renderDigit(),n.querySelector(".odometer-value").innerHTML=e,this.digits.push(n),this.insertDigit(n)},i.prototype.animate=function(e){return!K||this.options.animation==="count"?this.animateCount(e):this.animateSlide(e)},i.prototype.animateCount=function(e){var t,r,n,o,d,h=this;if(r=+e-this.value)return o=n=q(),t=this.value,(d=function(){var u,b,v;if(q()-o>h.options.duration){h.value=e,h.render(),te(h.el,"odometerdone");return}return u=q()-n,u>l&&(n=q(),v=u/h.options.duration,b=r*v,t+=b,h.render(Math.round(t))),Z!=null?Z(d):setTimeout(d,l)})()},i.prototype.getDigitCount=function(){var e,t,r,n,o,d;for(n=1<=arguments.length?be.call(arguments,0):[],e=o=0,d=n.length;oo;f=0<=o?++j:--j){if(S=ie(C/Math.pow(10,o-f-1)),u=ie(e/Math.pow(10,o-f-1)),h=u-S,Math.abs(h)>this.MAX_VALUES){for(c=[],T=h/(this.MAX_VALUES+this.MAX_VALUES*t*y),r=S;h>0&&ru;)c.push(Math.round(r)),r+=T;c[c.length-1]!==u&&c.push(u),t++}else c=function(){le=[];for(var P=S;S<=u?P<=u:P>=u;S<=u?P++:P--)le.push(P);return le}.apply(this);for(f=ne=0,ve=c.length;ne=b),(xe=this.ribbons)[f]==null&&(xe[f]=this.digits[f].querySelector(".odometer-ribbon-inner")),this.ribbons[f].innerHTML="",n<0&&(c=c.reverse()),N=ae=0,_e=c.length;ae<_e;N=++ae)v=c[N],L=document.createElement("div"),L.className="odometer-value",L.innerHTML=v,this.ribbons[f].appendChild(L),N===c.length-1&&A(L,"odometer-last-value"),N===0&&A(L,"odometer-first-value");if(S<0&&this.addDigit("-"),V=this.inside.querySelector(".odometer-radix-mark"),V!=null&&V.parent.removeChild(V),b)return this.addSpacer(this.format.radix,this.digits[b-1],"odometer-radix-mark")}},i}(),x.options=(fe=window.odometerOptions)!=null?fe:{},setTimeout(function(){var i,e,t,r,n;if(window.odometerOptions){r=window.odometerOptions,n=[];for(i in r)e=r[i],n.push((t=x.options)[i]!=null?(t=x.options)[i]:t[i]=e);return n}},0),x.init=function(){var i,e,t,r,n,o;if(document.querySelectorAll!=null){for(e=document.querySelectorAll(x.options.selector||".odometer"),o=[],t=0,r=e.length;t${z}
${s}
${a}
`,this._prefixElement=this.shadowRoot.querySelector(".cashback-display__prefix"),this._amountElement=this.shadowRoot.querySelector(".cashback-display__amount")}getOdometerFormat(){return`(,ddd).${"d".repeat(this._precision)}`}initOdometer(){this._amountElement&&(this._odometer=new k({el:this._amountElement,duration:300,value:this._value,format:this.getOdometerFormat(),theme:"minimal"}))}getValue(){return this._value}setValue(s){const a=parseFloat(s)||0;this._value=a,this._odometer&&this._odometer.update(a.toFixed(this._precision))}}function Ee(m){let s=null,a=null;return function(...l){a=l,s||(s=requestAnimationFrame(()=>{m.apply(this,a),s=null}))}}function Me(){customElements.define("cashback-display",ke),customElements.define("money-input",Q),customElements.define("range-slider",Y);const m=document.getElementById("amount"),s=document.getElementById("amount-slider"),a=document.getElementById("cashback-display"),l=document.getElementById("btc-future-display"),p=$("#current-rate"),g=.05,y=1e6;let _=1e5;function D(){$.ajax({url:"https://api.binance.com/api/v3/ticker/price?symbol=BTCUSDT",method:"GET",dataType:"json",success:function(w){_=parseFloat(w.price),p.text(`$${_.toLocaleString("en-US",{minimumFractionDigits:2,maximumFractionDigits:2})}`),E()},error:function(w){console.error("Error fetching BTC price:",w),p.text("Помилка завантаження")}})}function E(){const M=m.getValue()*g,x=M/_*y;a.setValue(M),l.setValue(x)}const U=Ee(E);s.addEventListener("update",w=>{m.setValue(w.detail.value),U()}),s.addEventListener("change",w=>{m.setValue(w.detail.value),E()}),m.addEventListener("change",w=>{const M=w.detail.value,I=Math.min(Math.max(M,0),1e4);s.setValue(I),E()}),D(),setInterval(D,5e3)}window.Webflow=window.Webflow||[];function Ae(m){return new Promise((s,a)=>{$.getScript(m).done(s).fail(a)})}function Te(){let m;return new Promise((s,a)=>{if(window.jQuery)return s(window.jQuery);m=setTimeout(()=>{console.error("jQuery not found..."),a()},1e4),console.warn("Waiting for jQuery...");const l=setInterval(()=>{window.jQuery&&(clearInterval(l),clearInterval(m),s(window.jQuery))},50)})}function Ce(){window.Webflow.push(()=>ye(this,null,function*(){yield Te(),yield Ae("https://cdnjs.cloudflare.com/ajax/libs/ion-rangeslider/2.3.1/js/ion.rangeSlider.min.js"),Me()}))}Ce()})();