Need Help ?

Any questions about our inventory? We're here to help.

Start chatting with us !
invalid phone number
160/160 characters remaining. Please enter your question

Terms and Conditions

I agree to receive text messages from HED SALES CO. representatives and understand that no consent to texting is required for purchase of products or services.

Text sent to
We will answer you immediately

0

You have no vehicle saved.

!function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=29)}([function(t,e,n){"use strict";function r(){}function o(t,e){for(var n in e)t[n]=e[n];return t}function i(t,e){for(var n in e)t[n]=1;return t}function a(t,e){t.appendChild(e)}function c(t,e,n){t.insertBefore(e,n)}function u(t){t.parentNode.removeChild(t)}function s(t,e){for(;t.firstChild;)e.appendChild(t.firstChild)}function f(){return document.createDocumentFragment()}function l(t){return document.createElement(t)}function h(t){return document.createTextNode(t)}function d(){return document.createComment("")}function p(t,e,n,r){t.addEventListener(e,n,r)}function y(t,e,n,r){t.removeEventListener(e,n,r)}function g(t,e,n){null==n?t.removeAttribute(e):t.setAttribute(e,n)}function v(t,e){t.data=""+e}function b(t,e,n){t.style.setProperty(e,n)}function _(t,e,n){t.classList.toggle(e,!!n)}n.d(e,"g",function(){return j}),n.d(e,"a",function(){return O}),n.d(e,"b",function(){return C}),n.d(e,"n",function(){return k}),n.d(e,"o",function(){return A}),n.d(e,"p",function(){return S}),n.d(e,"q",function(){return B}),n.d(e,"t",function(){return E}),n.d(e,"w",function(){return z}),n.d(e,"u",function(){return L}),n.d(e,"d",function(){return a}),n.d(e,"r",function(){return c}),n.d(e,"m",function(){return u}),n.d(e,"v",function(){return s}),n.d(e,"j",function(){return f}),n.d(e,"i",function(){return l}),n.d(e,"k",function(){return h}),n.d(e,"h",function(){return d}),n.d(e,"c",function(){return p}),n.d(e,"x",function(){return y}),n.d(e,"y",function(){return g}),n.d(e,"z",function(){return v}),n.d(e,"A",function(){return b}),n.d(e,"B",function(){return _}),n.d(e,"l",function(){return m}),n.d(e,"C",function(){return w}),n.d(e,"s",function(){return r}),n.d(e,"e",function(){return o}),n.d(e,"f",function(){return i});function m(t,e){t.d(1),e[t.key]=null}function w(t,e,n,r,o,i,a,c,u,s,f,l,h,d){for(var p=t.length,y=a.length,g=p,v={};g--;)v[t[g].key]=g;var b=[],_={},m={};for(g=y;g--;){var w=d(i,a,g),j=r(w),x=c[j];x?o&&x.p(n,w):(x=f(e,j,w)).c(),b[g]=_[j]=x,j in v&&(m[j]=Math.abs(g-v[j]))}var O={},C={};function k(t){t[l](u,h),c[t.key]=t,h=t.first,y--}for(;p&&y;){var A=b[y-1],S=t[p-1],B=A.key,E=S.key;A===S?(h=A.first,p--,y--):_[E]?!c[B]||O[B]?k(A):C[E]?p--:m[B]>m[E]?(C[B]=!0,k(A)):(O[E]=!0,p--):(s(S,c),p--)}for(;p--;){_[(S=t[p]).key]||s(S,c)}for(;y;)k(b[y-1]);return b}function j(){return Object.create(null)}function x(t){this.destroy=r,this.fire("destroy"),this.set=r,this._fragment.d(!1!==t),this._fragment=null,this._state={}}function O(t,e){return t!=t?e==e:t!==e||t&&"object"==typeof t||"function"==typeof t}function C(t,e){return t!=t?e==e:t!==e}function k(t,e){var n=t in this._handlers&&this._handlers[t].slice();if(n)for(var r=0;r-1},nt.prototype.set=function(t,e){var n=this.__data__,r=ut(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this},rt.prototype.clear=function(){this.size=0,this.__data__={hash:new et,map:new(X||nt),string:new et}},rt.prototype.delete=function(t){var e=vt(this,t).delete(t);return this.size-=e?1:0,e},rt.prototype.get=function(t){return vt(this,t).get(t)},rt.prototype.has=function(t){return vt(this,t).has(t)},rt.prototype.set=function(t,e){var n=vt(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this},ot.prototype.clear=function(){this.__data__=new nt,this.size=0},ot.prototype.delete=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n},ot.prototype.get=function(t){return this.__data__.get(t)},ot.prototype.has=function(t){return this.__data__.has(t)},ot.prototype.set=function(t,e){var n=this.__data__;if(n instanceof nt){var o=n.__data__;if(!X||o.length-1&&t%1==0&&t0){if(++e>=i)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}(J?function(t,e){return J(t,"toString",{configurable:!0,enumerable:!1,value:function(t){return function(){return t}}(e),writable:!0})}:Ut);function jt(t,e){return t===e||t!=t&&e!=e}var xt=ht(function(){return arguments}())?ht:function(t){return Et(t)&&U.call(t,"callee")&&!q.call(t,"callee")},Ot=Array.isArray;function Ct(t){return null!=t&&St(t.length)&&!At(t)}var kt=Z||function(){return!1};function At(t){if(!Bt(t))return!1;var e=lt(t);return e==f||e==l||e==s||e==p}function St(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=c}function Bt(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function Et(t){return null!=t&&"object"==typeof t}var It=A?function(t){return function(e){return t(e)}}(A):function(t){return Et(t)&&St(t.length)&&!!b[lt(t)]};function Mt(t){return Ct(t)?it(t,!0):pt(t)}var Tt=function(t){return gt(function(e,n){var r=-1,o=n.length,i=o>1?n[o-1]:void 0,a=o>2?n[2]:void 0;for(i=t.length>3&&"function"==typeof i?(o--,i):void 0,a&&function(t,e,n){if(!Bt(n))return!1;var r=typeof e;return!!("number"==r?Ct(n)&&_t(e,n.length):"string"==r&&e in n)&&jt(n[e],t)}(n[0],n[1],a)&&(i=o<3?void 0:i,o=1),e=Object(e);++r>>((3&e)<<3)&255;return o}}},function(t,e){for(var n=[],r=0;r<256;++r)n[r]=(r+256).toString(16).substr(1);t.exports=function(t,e){var r=e||0,o=n;return[o[t[r++]],o[t[r++]],o[t[r++]],o[t[r++]],"-",o[t[r++]],o[t[r++]],"-",o[t[r++]],o[t[r++]],"-",o[t[r++]],o[t[r++]],"-",o[t[r++]],o[t[r++]],o[t[r++]],o[t[r++]],o[t[r++]],o[t[r++]]].join("")}},,function(t,e,n){(function(t,n){var r=200,o="__lodash_hash_undefined__",i=9007199254740991,a="[object Arguments]",c="[object Boolean]",u="[object Date]",s="[object Function]",f="[object GeneratorFunction]",l="[object Map]",h="[object Number]",d="[object Object]",p="[object RegExp]",y="[object Set]",g="[object String]",v="[object Symbol]",b="[object ArrayBuffer]",_="[object DataView]",m="[object Float32Array]",w="[object Float64Array]",j="[object Int8Array]",x="[object Int16Array]",O="[object Int32Array]",C="[object Uint8Array]",k="[object Uint8ClampedArray]",A="[object Uint16Array]",S="[object Uint32Array]",B=/w*$/,E=/^[object .+?Constructor]$/,I=/^(?:0|[1-9]d*)$/,M={};M[a]=M["[object Array]"]=M[b]=M[_]=M[c]=M[u]=M[m]=M[w]=M[j]=M[x]=M[O]=M[l]=M[h]=M[d]=M[p]=M[y]=M[g]=M[v]=M[C]=M[k]=M[A]=M[S]=!0,M["[object Error]"]=M[s]=M["[object WeakMap]"]=!1;var T="object"==typeof t&&t&&t.Object===Object&&t,U="object"==typeof self&&self&&self.Object===Object&&self,R=T||U||Function("return this")(),z=e&&!e.nodeType&&e,L=z&&"object"==typeof n&&n&&!n.nodeType&&n,P=L&&L.exports===z;function F(t,e){return t.set(e[0],e[1]),t}function $(t,e){return t.add(e),t}function N(t,e,n,r){var o=-1,i=t?t.length:0;for(r&&i&&(n=t[++o]);++o-1},Ct.prototype.set=function(t,e){var n=this.__data__,r=Et(n,t);return r<0?n.push([t,e]):n[r][1]=e,this},kt.prototype.clear=function(){this.__data__={hash:new Ot,map:new(ht||Ct),string:new Ot}},kt.prototype.delete=function(t){return Rt(this,t).delete(t)},kt.prototype.get=function(t){return Rt(this,t).get(t)},kt.prototype.has=function(t){return Rt(this,t).has(t)},kt.prototype.set=function(t,e){return Rt(this,t).set(t,e),this},At.prototype.clear=function(){this.__data__=new Ct},At.prototype.delete=function(t){return this.__data__.delete(t)},At.prototype.get=function(t){return this.__data__.get(t)},At.prototype.has=function(t){return this.__data__.has(t)},At.prototype.set=function(t,e){var n=this.__data__;if(n instanceof Ct){var o=n.__data__;if(!ht||o.length-1&&t%1==0&&t-1&&t%1==0&&t<=i}(t.length)&&!Gt(t)}var qt=st||function(){return!1};function Gt(t){var e=Ht(t)?Y.call(t):"";return e==s||e==f}function Ht(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function Jt(t){return Dt(t)?St(t):function(t){if(!$t(t))return ft(t);var e=[];for(var n in Object(t))X.call(t,n)&&"constructor"!=n&&e.push(n);return e}(t)}n.exports=function(t){return It(t,!0,!0)}}).call(this,n(6),n(11)(t))},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},,function(t,e,n){var r,o; /*! * JavaScript Cookie v2.2.0 * https://github.com/js-cookie/js-cookie * * Copyright 2006, 2015 Klaus Hartl & Fagner Brack * Released under the MIT license */!function(i){if(void 0===(o="function"==typeof(r=i)?r.call(e,n,e,t):r)||(t.exports=o),!0,t.exports=i(),!!0){var a=window.Cookies,c=window.Cookies=i();c.noConflict=function(){return window.Cookies=a,c}}}(function(){function t(){for(var t=0,e={};t1){if("number"==typeof(i=t({path:"/"},r.defaults,i)).expires){var c=new Date;c.setMilliseconds(c.getMilliseconds()+864e5*i.expires),i.expires=c}i.expires=i.expires?i.expires.toUTCString():"";try{a=JSON.stringify(o),/^[{[]/.test(a)&&(o=a)}catch(t){}o=n.write?n.write(o,e):encodeURIComponent(String(o)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),e=(e=(e=encodeURIComponent(String(e))).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent)).replace(/[()]/g,escape);var u="";for(var s in i)i[s]&&(u+="; "+s,!0!==i[s]&&(u+="="+i[s]));return document.cookie=e+"="+o+u}e||(a={});for(var f=document.cookie?document.cookie.split("; "):[],l=/(%[0-9A-Z]{2})+/g,h=0;hc)&&void 0===t.nsecs&&(y=0),y>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");c=p,u=y,o=h;var v=(1e4*(268435455&(p+=122192928e5))+y)%4294967296;f[s++]=v>>>24&255,f[s++]=v>>>16&255,f[s++]=v>>>8&255,f[s++]=255&v;var b=p/4294967296*1e4&268435455;f[s++]=b>>>8&255,f[s++]=255&b,f[s++]=b>>>24&15|16,f[s++]=b>>>16&255,f[s++]=h>>>8|128,f[s++]=255&h;for(var _=0;_<6;++_)f[s+_]=l[_];return e||a(f)}},function(t,e,n){var r=n(7),o=n(8);t.exports=function(t,e,n){var i=e&&n||0;"string"==typeof t&&(e="binary"===t?new Array(16):null,t=null);var a=(t=t||{}).random||(t.rng||r)();if(a[6]=15&a[6]|64,a[8]=63&a[8]|128,e)for(var c=0;c<16;++c)e[i+c]=a[c];return e||o(a)}},,function(t,e,n){var r; /** * @license MIT * @fileOverview Favico animations * @author Miroslav Magda, http://blog.ejci.net * @version 0.3.10 */ /** * @license MIT * @fileOverview Favico animations * @author Miroslav Magda, http://blog.ejci.net * @version 0.3.10 */ !function(){var n=function(t){"use strict";t=t||{};var e,n,r,o,i,a,c,u,s,f,l,h,d,p,y,g,v={bgColor:"#d00",textColor:"#fff",fontFamily:"sans-serif",fontStyle:"bold",type:"circle",position:"down",animation:"slide",elementId:!1,dataUrl:!1,win:window};(d={}).ff="undefined"!=typeof InstallTrigger,d.chrome=!!window.chrome,d.opera=!!window.opera||navigator.userAgent.indexOf("Opera")>=0,d.ie=/*@cc_on!@*/!1,d.safari=Object.prototype.toString.call(window.HTMLElement).indexOf("Constructor")>0,d.supported=d.chrome||d.ff||d.opera;var b=[];l=function(){},u=h=!1;var _={ready:function(){u=!0,_.reset(),l()},reset:function(){u&&(b=[],s=!1,f=!1,a.clearRect(0,0,o,r),a.drawImage(c,0,0,o,r),x.setIcon(i),window.clearTimeout(p),window.clearTimeout(y))}};_.start=function(){if(u&&!f){if(b.length>0){f=!0;var t=function(){["type","animation","bgColor","textColor","fontFamily","fontStyle"].forEach(function(t){t in b[0].options&&(e[t]=b[0].options[t])}),k.run(b[0].options,function(){s=b[0],f=!1,b.length>0&&(b.shift(),_.start())},!1)};s?k.run(s.options,function(){t()},!0):t()}}};var m={},w=function(t){return t.n="number"==typeof t.n?Math.abs(0|t.n):t.n,t.x=o*t.x,t.y=r*t.y,t.w=o*t.w,t.h=r*t.h,t.len=(""+t.n).length,t};m.circle=function(t){var n=!1;2===(t=w(t)).len?(t.x=t.x-.4*t.w,t.w=1.4*t.w,n=!0):t.len>=3&&(t.x=t.x-.65*t.w,t.w=1.65*t.w,n=!0),a.clearRect(0,0,o,r),a.drawImage(c,0,0,o,r),a.beginPath(),a.font=e.fontStyle+" "+Math.floor(t.h*(t.n>99?.85:1))+"px "+e.fontFamily,a.textAlign="center",n?(a.moveTo(t.x+t.w/2,t.y),a.lineTo(t.x+t.w-t.h/2,t.y),a.quadraticCurveTo(t.x+t.w,t.y,t.x+t.w,t.y+t.h/2),a.lineTo(t.x+t.w,t.y+t.h-t.h/2),a.quadraticCurveTo(t.x+t.w,t.y+t.h,t.x+t.w-t.h/2,t.y+t.h),a.lineTo(t.x+t.h/2,t.y+t.h),a.quadraticCurveTo(t.x,t.y+t.h,t.x,t.y+t.h-t.h/2),a.lineTo(t.x,t.y+t.h/2),a.quadraticCurveTo(t.x,t.y,t.x+t.h/2,t.y)):a.arc(t.x+t.w/2,t.y+t.h/2,t.h/2,0,2*Math.PI),a.fillStyle="rgba("+e.bgColor.r+","+e.bgColor.g+","+e.bgColor.b+","+t.o+")",a.fill(),a.closePath(),a.beginPath(),a.stroke(),a.fillStyle="rgba("+e.textColor.r+","+e.textColor.g+","+e.textColor.b+","+t.o+")","number"==typeof t.n&&t.n>999?a.fillText((t.n>9999?9:Math.floor(t.n/1e3))+"k+",Math.floor(t.x+t.w/2),Math.floor(t.y+t.h-.2*t.h)):a.fillText(t.n,Math.floor(t.x+t.w/2),Math.floor(t.y+t.h-.15*t.h)),a.closePath()},m.rectangle=function(t){2===(t=w(t)).len?(t.x=t.x-.4*t.w,t.w=1.4*t.w):t.len>=3&&(t.x=t.x-.65*t.w,t.w=1.65*t.w),a.clearRect(0,0,o,r),a.drawImage(c,0,0,o,r),a.beginPath(),a.font=e.fontStyle+" "+Math.floor(t.h*(t.n>99?.9:1))+"px "+e.fontFamily,a.textAlign="center",a.fillStyle="rgba("+e.bgColor.r+","+e.bgColor.g+","+e.bgColor.b+","+t.o+")",a.fillRect(t.x,t.y,t.w,t.h),a.fillStyle="rgba("+e.textColor.r+","+e.textColor.g+","+e.textColor.b+","+t.o+")","number"==typeof t.n&&t.n>999?a.fillText((t.n>9999?9:Math.floor(t.n/1e3))+"k+",Math.floor(t.x+t.w/2),Math.floor(t.y+t.h-.2*t.h)):a.fillText(t.n,Math.floor(t.x+t.w/2),Math.floor(t.y+t.h-.15*t.h)),a.closePath()};function j(t){if(t.paused||t.ended||h)return!1;try{a.clearRect(0,0,o,r),a.drawImage(t,0,0,o,r)}catch(t){}y=setTimeout(function(){j(t)},k.duration),x.setIcon(i)}var x={};function O(t){t=t.replace(/^#?([a-fd])([a-fd])([a-fd])$/i,function(t,e,n,r){return e+e+n+n+r+r});var e=/^#?([a-fd]{2})([a-fd]{2})([a-fd]{2})$/i.exec(t);return!!e&&{r:parseInt(e[1],16),g:parseInt(e[2],16),b:parseInt(e[3],16)}}function C(t,e){var n,r={};for(n in t)r[n]=t[n];for(n in e)r[n]=e[n];return r}x.getIcon=function(){var t=!1;return e.element?t=e.element:e.elementId?(t=g.getElementById(e.elementId)).setAttribute("href",t.getAttribute("src")):!1===(t=function(){for(var t=g.getElementsByTagName("head")[0].getElementsByTagName("link"),e=t.length-1;e>=0;e--)if(/(^|s)icon(s|$)/i.test(t[e].getAttribute("rel")))return t[e];return!1}())&&((t=g.createElement("link")).setAttribute("rel","icon"),g.getElementsByTagName("head")[0].appendChild(t)),t.setAttribute("type","image/png"),t},x.setIcon=function(t){var r=t.toDataURL("image/png");if(e.dataUrl&&e.dataUrl(r),e.element)e.element.setAttribute("href",r),e.element.setAttribute("src",r);else if(e.elementId){var o=g.getElementById(e.elementId);o.setAttribute("href",r),o.setAttribute("src",r)}else if(d.ff||d.opera){var i=n;n=g.createElement("link"),d.opera&&n.setAttribute("rel","icon"),n.setAttribute("rel","icon"),n.setAttribute("type","image/png"),g.getElementsByTagName("head")[0].appendChild(n),n.setAttribute("href",r),i.parentNode&&i.parentNode.removeChild(i)}else n.setAttribute("href",r)};var k={duration:40,types:{}};return k.types.fade=[{x:.4,y:.4,w:.6,h:.6,o:0},{x:.4,y:.4,w:.6,h:.6,o:.1},{x:.4,y:.4,w:.6,h:.6,o:.2},{x:.4,y:.4,w:.6,h:.6,o:.3},{x:.4,y:.4,w:.6,h:.6,o:.4},{x:.4,y:.4,w:.6,h:.6,o:.5},{x:.4,y:.4,w:.6,h:.6,o:.6},{x:.4,y:.4,w:.6,h:.6,o:.7},{x:.4,y:.4,w:.6,h:.6,o:.8},{x:.4,y:.4,w:.6,h:.6,o:.9},{x:.4,y:.4,w:.6,h:.6,o:1}],k.types.none=[{x:.4,y:.4,w:.6,h:.6,o:1}],k.types.pop=[{x:1,y:1,w:0,h:0,o:1},{x:.9,y:.9,w:.1,h:.1,o:1},{x:.8,y:.8,w:.2,h:.2,o:1},{x:.7,y:.7,w:.3,h:.3,o:1},{x:.6,y:.6,w:.4,h:.4,o:1},{x:.5,y:.5,w:.5,h:.5,o:1},{x:.4,y:.4,w:.6,h:.6,o:1}],k.types.popFade=[{x:.75,y:.75,w:0,h:0,o:0},{x:.65,y:.65,w:.1,h:.1,o:.2},{x:.6,y:.6,w:.2,h:.2,o:.4},{x:.55,y:.55,w:.3,h:.3,o:.6},{x:.5,y:.5,w:.4,h:.4,o:.8},{x:.45,y:.45,w:.5,h:.5,o:.9},{x:.4,y:.4,w:.6,h:.6,o:1}],k.types.slide=[{x:.4,y:1,w:.6,h:.6,o:1},{x:.4,y:.9,w:.6,h:.6,o:1},{x:.4,y:.9,w:.6,h:.6,o:1},{x:.4,y:.8,w:.6,h:.6,o:1},{x:.4,y:.7,w:.6,h:.6,o:1},{x:.4,y:.6,w:.6,h:.6,o:1},{x:.4,y:.5,w:.6,h:.6,o:1},{x:.4,y:.4,w:.6,h:.6,o:1}],k.run=function(t,n,r,o){var a=k.types[g.hidden||g.msHidden||g.webkitHidden||g.mozHidden?"none":e.animation];o=!0===r?void 0!==o?o:a.length-1:void 0!==o?o:0,n=n||function(){},o=0?(m[e.type](C(t,a[o])),p=setTimeout(function(){r?o-=1:o+=1,k.run(t,n,r,o)},k.duration),x.setIcon(i)):n()},function(){(e=C(v,t)).bgColor=O(e.bgColor),e.textColor=O(e.textColor),e.position=e.position.toLowerCase(),e.animation=k.types[""+e.animation]?e.animation:v.animation,g=e.win.document;var u=e.position.indexOf("up")>-1,s=e.position.indexOf("left")>-1;if(u||s)for(var f=0;f0?c.height:32,o=c.width>0?c.width:32,i.height=r,i.width=o,a=i.getContext("2d"),_.ready()},c.setAttribute("src",n.getAttribute("href"))):(c.onload=function(){r=32,o=32,c.height=r,c.width=o,i.height=r,i.width=o,a=i.getContext("2d"),_.ready()},c.setAttribute("src",""))}(),{badge:function(t,e){e=("string"==typeof e?{animation:e}:e)||{},l=function(){try{if("number"==typeof t?t>0:""!==t){var n={type:"badge",options:{n:t}};if("animation"in e&&k.types[""+e.animation]&&(n.options.animation=""+e.animation),"type"in e&&m[""+e.type]&&(n.options.type=""+e.type),["bgColor","textColor"].forEach(function(t){t in e&&(n.options[t]=O(e[t]))}),["fontStyle","fontFamily"].forEach(function(t){t in e&&(n.options[t]=e[t])}),b.push(n),b.length>100)throw new Error("Too many badges requests in queue.");_.start()}else _.reset()}catch(t){throw new Error("Error setting badge. Message: "+t.message)}},u&&l()},video:function(t){l=function(){try{if("stop"===t)return h=!0,_.reset(),void(h=!1);t.addEventListener("play",function(){j(this)},!1)}catch(t){throw new Error("Error setting video. Message: "+t.message)}},u&&l()},image:function(t){l=function(){try{var e=t.width,n=t.height,c=document.createElement("img"),u=e/o10&&(clearInterval(n),e.setBadge(0))},1e3)}},{key:"resetSession",value:function(){(new x).clearState();var t=new x;this.iframe.setState(t.getState())}}]),t}(),S=function(){function t(){var e=this;O(this,t),this.api=new A,this._listeners={},this._scheduledEvents=[],this._iframe=null,this._cookieState=new x,this.on("ready",function(){e.api.config(y.a),e._iframe.setState(e._cookieState.getState()),e._iframe.updateCurrentLocation({url:window.location.href,page_title:document.title}),e._flushScheduledEvents()}),window.addEventListener("hashchange",function(t){e._iframe&&e._iframe.updateCurrentLocation({url:t.newURL,page_title:document.title})}),window.addEventListener("message",this._onWindowMessage.bind(this),!1)}return k(t,[{key:"on",value:function(t,e){this._listeners[t]=this._listeners[t]?this._listeners[t].concat(e):[e]}},{key:"trigger",value:function(t){this._iframe?this._notifyListeners(t):this._scheduledEvents.push(t)}},{key:"connectIframe",value:function(t){this._iframe=t,this.api.setIframe(t)}},{key:"_setBadge",value:function(t){this._iframe&&this._iframe.setBadge(t)}},{key:"_flushScheduledEvents",value:function(){var t=!0,e=!1,n=void 0;try{for(var r,o=this._scheduledEvents[Symbol.iterator]();!(t=(r=o.next()).done);t=!0){var i=r.value;this._notifyListeners(i)}}catch(t){e=!0,n=t}finally{try{t||null==o.return||o.return()}finally{if(e)throw n}}this._scheduledEvents=[]}},{key:"_notifyListeners",value:function(t){if(this._listeners[t]){var e=!0,n=!1,r=void 0;try{for(var o,i=this._listeners[t][Symbol.iterator]();!(e=(o=i.next()).done);e=!0){(0,o.value)(this.api)}}catch(t){n=!0,r=t}finally{try{e||null==i.return||i.return()}finally{if(n)throw r}}}}},{key:"_onWindowMessage",value:function(t){if("https://webchat.hammer-corp.com"===t.origin){if(Object(r.a)("received legit window message"),t.data.event&&(Object(r.a)("got event",t.data.event),this.trigger(t.data.event)),t.data.resize){Object(r.a)("got resize message from widget",t.data.resize);var e=t.data.resize,n=e.width,o=e.height;this._iframe&&this._iframe.set({width:n,height:o})}t.data.position&&(Object(r.a)("got position from widget",t.data.position),this._iframe&&this._iframe.setPosition(t.data.position)),t.data.state&&(Object(r.a)("updating local state",t.data.state),this._cookieState.updateState(t.data.state)),t.data.badgeConfig&&this._iframe.configureBadge(t.data.badgeConfig),void 0!==t.data.badgeUpdate&&(Object(r.a)("updating badge",t.data.badgeUpdate),this._iframe&&this._iframe.setBadge(t.data.badgeUpdate))}}}]),t}();window.hammer||(window.hammer=new S,document.addEventListener("DOMContentLoaded",function(t){if(document.getElementById("hammer-chat"));else{var e=new f({target:document.body,data:{id:"hammer-chat",src:"https://webchat.hammer-corp.com/iframe.html",title:"Hammer WebChat"}});window.hammer.connectIframe(e)}}))}]);