(function(n,t){typeof exports=="object"&&typeof module!="undefined"?module.exports=t():typeof define=="function"&&define.amd?define(t):(n.Vimeo=n.Vimeo||{},n.Vimeo.Player=t())})(this,function(){"use strict";function h(n,t){return t={exports:{}},n(t,t.exports),t.exports}function u(t,i,r){var u=n.get(t.element)||{};i in u||(u[i]=[]);u[i].push(r);n.set(t.element,u)}function f(t,i){var r=n.get(t.element)||{};return r[i]||[]}function s(t,i,r){var u=n.get(t.element)||{},f;return u[i]?r?(f=u[i].indexOf(r),f!==-1&&u[i].splice(f,1),n.set(t.element,u),u[i]&&u[i].length===0):(u[i]=[],n.set(t.element,u),!0):!0}function nt(n,t){var r=f(n,t),i;return r.length<1?!1:(i=r.shift(),s(n,t,i),i)}function tt(t,i){var r=n.get(t);n.set(i,r);n.delete(t)}function c(n,t){return n.indexOf(t.toLowerCase())===0?n:""+t.toLowerCase()+n.substr(0,1).toUpperCase()+n.substr(1)}function it(n){return n instanceof window.HTMLElement}function rt(n){return!isNaN(parseFloat(n))&&isFinite(n)&&Math.floor(n)==n}function r(n){return/^(https?:)?\/\/((player|www).)?vimeo.com(?=$|\/)/.test(n)}function l(){var i=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{},t=i.id,u=i.url,n=t||u;if(!n)throw new Error("An id or url must be passed, either in an options object or as a data-vimeo-id or data-vimeo-url attribute.");if(rt(n))return"https://vimeo.com/"+n;if(r(n))return n.replace("http:","https:");if(t)throw new TypeError("“"+t+"” is not a valid video id.");throw new TypeError("“"+n+"” is not a vimeo.com url.");}function v(n){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};return a.reduce(function(t,i){var r=n.getAttribute("data-vimeo-"+i);return(r||r==="")&&(t[i]=r===""?1:r),t},t)}function y(n){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};return new Promise(function(i,u){var o,e,f;if(!r(n))throw new TypeError("“"+n+"” is not a vimeo.com url.");o="https://vimeo.com/api/oembed.json?url="+encodeURIComponent(n);for(e in t)t.hasOwnProperty(e)&&(o+="&"+e+"="+encodeURIComponent(t[e]));f="XDomainRequest"in window?new XDomainRequest:new XMLHttpRequest;f.open("GET",o,!0);f.onload=function(){if(f.status===404){u(new Error("“"+n+"” was not found."));return}if(f.status===403){u(new Error("“"+n+"” is not embeddable."));return}try{var t=JSON.parse(f.responseText);i(t)}catch(r){u(r)}};f.onerror=function(){var n=f.status?" ("+f.status+")":"";u(new Error("There was an error fetching the embed code from Vimeo"+n+"."))};f.send()})}function p(n,t){var r=n.html,i;if(!t)throw new TypeError("An element must be provided");return t.getAttribute("data-vimeo-initialized")!==null?t.querySelector("iframe"):(i=document.createElement("div"),i.innerHTML=r,t.appendChild(i.firstChild),t.setAttribute("data-vimeo-initialized","true"),t.querySelector("iframe"))}function ut(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:document,i=[].slice.call(t.querySelectorAll("[data-vimeo-id], [data-vimeo-url]")),n=function(n){"console"in window&&console.error&&console.error("There was an error creating an embed: "+n)};i.forEach(function(t){try{if(t.getAttribute("data-vimeo-defer")!==null)return;var i=v(t),r=l(i);y(r,i).then(function(n){return p(n,t)}).catch(n)}catch(u){n(u)}})}function ft(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:document,n=function(n){var u,i,f;if(r(n.origin)&&n.data&&n.data.event==="spacechange")for(u=t.querySelectorAll("iframe"),i=0;i<u.length;i++)if(u[i].contentWindow===n.source){f=u[i].parentElement;f&&f.className.indexOf("vimeo-space")!==-1&&(f.style.paddingBottom=n.data.data[0].bottom+"px");break}};window.addEventListener?window.addEventListener("message",n,!1):window.attachEvent&&window.attachEvent("onmessage",n)}function w(n){return typeof n=="string"&&(n=JSON.parse(n)),n}function e(n,t,i){var r,u;n.element.contentWindow&&n.element.contentWindow.postMessage&&(r={method:t},i!==undefined&&(r.value=i),u=parseFloat(navigator.userAgent.toLowerCase().replace(/^.*msie (\d+).*$/,"$1")),u>=8&&u<10&&(r=JSON.stringify(r)),n.element.contentWindow.postMessage(r,n.origin))}function et(n,t){var r,i,e,u;t=w(t);r=[];i=void 0;t.event?(t.event==="error"&&(e=f(n,t.data.method),e.forEach(function(i){var r=new Error(t.data.message);r.name=t.data.name;i.reject(r);s(n,t.data.method,i)})),r=f(n,"event:"+t.event),i=t.data):t.method&&(u=nt(n,t.method),u&&(r.push(u),i=t.value));r.forEach(function(t){try{if(typeof t=="function"){t.call(n,i);return}t.resolve(i)}catch(r){}})}function ot(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}var d=typeof Array.prototype.indexOf!="undefined",g=typeof window.postMessage!="undefined",t,a,b;if(!d||!g)throw new Error("Sorry, the Vimeo Player API is not available in this browser.");t=typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};var ht=h(function(){(function(n){function i(n,t){function i(n){if(!this||this.constructor!==i)return new i(n);this._keys=[];this._values=[];this._itp=[];this.objectOnly=t;n&&w.call(this,n)}return t||y(n,"size",{get:g}),n.constructor=i,i.prototype=n,i}function w(n){this.add?n.forEach(this.add,this):n.forEach(function(n){this.set(n[0],n[1])},this)}function r(n){return this.has(n)&&(this._keys.splice(t,1),this._values.splice(t,1),this._itp.forEach(function(n){t<n[0]&&n[0]--})),-1<t}function o(n){return this.has(n)?this._values[t]:undefined}function s(n,i){if(this.objectOnly&&i!==Object(i))throw new TypeError("Invalid value used as weak collection key");if(i!=i||i===0)for(t=n.length;t--&&!p(n[t],i););else t=n.indexOf(i);return-1<t}function h(n){return s.call(this,this._values,n)}function c(n){return s.call(this,this._keys,n)}function l(n,i){return this.has(n)?this._values[t]=i:this._values[this._keys.push(n)-1]=i,this}function a(n){return this.has(n)||this._values.push(n),this}function u(){(this._keys||0).length=this._values.length=0}function b(){return f(this._itp,this._keys)}function e(){return f(this._itp,this._values)}function k(){return f(this._itp,this._keys,this._values)}function d(){return f(this._itp,this._values,this._values)}function f(n,t,i){var r=[0],u=!1;return n.push(r),{next:function(){var e,f=r[0];return!u&&f<t.length?(e=i?[t[f],i[f]]:t[f],r[0]++):(u=!0,n.splice(n.indexOf(r),1)),{done:u,value:e}}}}function g(){return this._values.length}function v(n,t){for(var r=this.entries(),i;;){if(i=r.next(),i.done)break;n.call(t,i.value[1],i.value[0],this)}}var t,y=Object.defineProperty,p=function(n,t){return n===t||n!==n&&t!==t};typeof WeakMap=="undefined"&&(n.WeakMap=i({"delete":r,clear:u,get:o,has:c,set:l},!0));typeof Map!="undefined"&&typeof(new Map).values=="function"&&(new Map).values().next||(n.Map=i({"delete":r,has:c,get:o,set:l,keys:b,values:e,entries:k,forEach:v,clear:u}));typeof Set!="undefined"&&typeof(new Set).values=="function"&&(new Set).values().next||(n.Set=i({has:h,add:a,"delete":r,clear:u,keys:e,values:e,entries:d,forEach:v}));typeof WeakSet=="undefined"&&(n.WeakSet=i({"delete":r,add:a,clear:u,has:h},!0))})(!0&&typeof t!="undefined"?t:window)}),i=h(function(n){var i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n};(function(t,i,r){i[t]=i[t]||r();!0&&n.exports?n.exports=i[t]:typeof undefined=="function"&&undefined.amd&&undefined(function(){return i[t]})})("Promise",typeof t!="undefined"?t:t,function(){function u(n,t){e.add(n,t);f||(f=y(e.drain))}function c(n){var t,r=typeof n=="undefined"?"undefined":i(n);return n!=null&&(r=="object"||r=="function")&&(t=n.then),typeof t=="function"?t:!1}function o(){for(var n=0;n<this.chain.length;n++)p(this,this.state===1?this.chain[n].success:this.chain[n].failure,this.chain[n]);this.chain.length=0}function p(n,t,i){var r,u;try{t===!1?i.reject(n.msg):(r=t===!0?n.msg:t.call(void 0,n.msg),r===i.promise?i.reject(TypeError("Promise-chain cycle")):(u=c(r))?u.call(r,i.resolve,i.reject):i.resolve(r))}catch(f){i.reject(f)}}function l(n){var i,t=this;if(!t.triggered){t.triggered=!0;t.def&&(t=t.def);try{(i=c(n))?u(function(){var u=new v(t);try{i.call(n,function(){l.apply(u,arguments)},function(){r.apply(u,arguments)})}catch(f){r.call(u,f)}}):(t.msg=n,t.state=1,t.chain.length>0&&u(o,t))}catch(f){r.call(new v(t),f)}}}function r(n){var t=this;t.triggered||(t.triggered=!0,t.def&&(t=t.def),t.msg=n,t.state=2,t.chain.length>0&&u(o,t))}function a(n,t,i,r){for(var u=0;u<t.length;u++)(function(u){n.resolve(t[u]).then(function(n){i(u,n)},r)})(u)}function v(n){this.def=n;this.triggered=!1}function w(n){this.promise=n;this.state=0;this.triggered=!1;this.chain=[];this.msg=void 0}function t(n){if(typeof n!="function")throw TypeError("Not a function");if(this.__NPO__!==0)throw TypeError("Not a promise");this.__NPO__=1;var t=new w(this);this.then=function(n,i){var r={success:typeof n=="function"?n:!0,failure:typeof i=="function"?i:!1};return r.promise=new this.constructor(function(n,t){if(typeof n!="function"||typeof t!="function")throw TypeError("Not a function");r.resolve=n;r.reject=t}),t.chain.push(r),t.state!==0&&u(o,t),r.promise};this["catch"]=function(n){return this.then(void 0,n)};try{n.call(void 0,function(n){l.call(t,n)},function(n){r.call(t,n)})}catch(i){r.call(t,i)}}var n,f,e,h=Object.prototype.toString,y=typeof setImmediate!="undefined"?function(n){return setImmediate(n)}:setTimeout,s;try{Object.defineProperty({},"x",{});n=function(n,t,i,r){return Object.defineProperty(n,t,{value:i,writable:!0,configurable:r!==!1})}}catch(b){n=function(n,t,i){return n[t]=i,n}}return e=function(){function r(n,t){this.fn=n;this.self=t;this.next=void 0}var i,t,n;return{add:function(u,f){n=new r(u,f);t?t.next=n:i=n;t=n;n=void 0},drain:function(){var n=i;for(i=t=f=void 0;n;)n.fn.call(n.self),n=n.next}}}(),s=n({},"constructor",t,!1),t.prototype=s,n(s,"__NPO__",0,!1),n(t,"resolve",function(n){var t=this;return n&&(typeof n=="undefined"?"undefined":i(n))=="object"&&n.__NPO__===1?n:new t(function(t,i){if(typeof t!="function"||typeof i!="function")throw TypeError("Not a function");t(n)})}),n(t,"reject",function(n){return new this(function(t,i){if(typeof t!="function"||typeof i!="function")throw TypeError("Not a function");i(n)})}),n(t,"all",function(n){var t=this;return h.call(n)!="[object Array]"?t.reject(TypeError("Not an array")):n.length===0?t.resolve([]):new t(function(i,r){if(typeof i!="function"||typeof r!="function")throw TypeError("Not a function");var u=n.length,f=Array(u),e=0;a(t,n,function(n,t){f[n]=t;++e===u&&i(f)},r)})}),n(t,"race",function(n){var t=this;return h.call(n)!="[object Array]"?t.reject(TypeError("Not an array")):new t(function(i,r){if(typeof i!="function"||typeof r!="function")throw TypeError("Not a function");a(t,n,function(n,t){i(t)},r)})}),t})}),n=new WeakMap;a=["id","url","width","maxwidth","height","maxheight","portrait","title","byline","color","autoplay","autopause","loop","responsive"];b=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}();var o=new WeakMap,k=new WeakMap,st=function(){function n(t){var u=this,h=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{},f,s;if(ot(this,n),window.jQuery&&t instanceof jQuery&&(t.length>1&&window.console&&console.warn&&console.warn("A jQuery object with multiple elements was passed, using the first element."),t=t[0]),typeof t=="string"&&(t=document.getElementById(t)),!it(t))throw new TypeError("You must pass either a valid element or a valid id.");if(t.nodeName!=="IFRAME"&&(f=t.querySelector("iframe"),f&&(t=f)),t.nodeName==="IFRAME"&&!r(t.getAttribute("src")||""))throw new Error("The player element passed isn’t a Vimeo embed.");return o.has(t)?o.get(t):(this.element=t,this.origin="*",s=new i(function(n,i){var e=function(t){if(r(t.origin)&&u.element.contentWindow===t.source){u.origin==="*"&&(u.origin=t.origin);var i=w(t.data),f="event"in i&&i.event==="ready",e="method"in i&&i.method==="ping";if(f||e){u.element.setAttribute("data-ready","true");n();return}et(u,i)}},f,s;window.addEventListener?window.addEventListener("message",e,!1):window.attachEvent&&window.attachEvent("onmessage",e);u.element.nodeName!=="IFRAME"&&(f=v(t,h),s=l(f),y(s,f).then(function(n){var i=p(n,t);return u.element=i,tt(t,i),o.set(u.element,u),n}).catch(function(n){return i(n)}))}),k.set(this,s),o.set(this.element,this),this.element.nodeName==="IFRAME"&&e(this,"ping"),this)}return b(n,[{key:"callMethod",value:function(n){var t=this,r=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};return new i(function(i,f){return t.ready().then(function(){u(t,n,{resolve:i,reject:f});e(t,n,r)})})}},{key:"get",value:function(n){var t=this;return new i(function(i,r){return n=c(n,"get"),t.ready().then(function(){u(t,n,{resolve:i,reject:r});e(t,n)})})}},{key:"set",value:function(n,t){var r=this;return i.resolve(t).then(function(t){if(n=c(n,"set"),t===undefined||t===null)throw new TypeError("There must be a value to set.");return r.ready().then(function(){return new i(function(i,f){u(r,n,{resolve:i,reject:f});e(r,n,t)})})})}},{key:"on",value:function(n,t){if(!n)throw new TypeError("You must pass an event name.");if(!t)throw new TypeError("You must pass a callback function.");if(typeof t!="function")throw new TypeError("The callback must be a function.");var i=f(this,"event:"+n);i.length===0&&this.callMethod("addEventListener",n).catch(function(){});u(this,"event:"+n,t)}},{key:"off",value:function(n,t){if(!n)throw new TypeError("You must pass an event name.");if(t&&typeof t!="function")throw new TypeError("The callback must be a function.");var i=s(this,"event:"+n,t);i&&this.callMethod("removeEventListener",n).catch(function(){})}},{key:"loadVideo",value:function(n){return this.callMethod("loadVideo",n)}},{key:"ready",value:function(){var n=k.get(this);return i.resolve(n)}},{key:"addCuePoint",value:function(n){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};return this.callMethod("addCuePoint",{time:n,data:t})}},{key:"removeCuePoint",value:function(n){return this.callMethod("removeCuePoint",n)}},{key:"enableTextTrack",value:function(n,t){if(!n)throw new TypeError("You must pass a language.");return this.callMethod("enableTextTrack",{language:n,kind:t})}},{key:"disableTextTrack",value:function(){return this.callMethod("disableTextTrack")}},{key:"pause",value:function(){return this.callMethod("pause")}},{key:"play",value:function(){return this.callMethod("play")}},{key:"unload",value:function(){return this.callMethod("unload")}},{key:"getAutopause",value:function(){return this.get("autopause")}},{key:"setAutopause",value:function(n){return this.set("autopause",n)}},{key:"getColor",value:function(){return this.get("color")}},{key:"setColor",value:function(n){return this.set("color",n)}},{key:"getCuePoints",value:function(){return this.get("cuePoints")}},{key:"getCurrentTime",value:function(){return this.get("currentTime")}},{key:"setCurrentTime",value:function(n){return this.set("currentTime",n)}},{key:"getDuration",value:function(){return this.get("duration")}},{key:"getEnded",value:function(){return this.get("ended")}},{key:"getLoop",value:function(){return this.get("loop")}},{key:"setLoop",value:function(n){return this.set("loop",n)}},{key:"getPaused",value:function(){return this.get("paused")}},{key:"getTextTracks",value:function(){return this.get("textTracks")}},{key:"getVideoEmbedCode",value:function(){return this.get("videoEmbedCode")}},{key:"getVideoId",value:function(){return this.get("videoId")}},{key:"getVideoTitle",value:function(){return this.get("videoTitle")}},{key:"getVideoWidth",value:function(){return this.get("videoWidth")}},{key:"getVideoHeight",value:function(){return this.get("videoHeight")}},{key:"getVideoUrl",value:function(){return this.get("videoUrl")}},{key:"getVolume",value:function(){return this.get("volume")}},{key:"setVolume",value:function(n){return this.set("volume",n)}}]),n}();return ut(),ft(),st});var Rep=function(){function t(){i();Main.LoadCarousel(3,$(".campaign-products .product-collection-products"));Main.LoadCarousel(4,$(".product-collections .product-collections-products"))}function i(){$(".product-collection-products .single-product div.product-price span").each(function(){(parseFloat($(this).html())||parseFloat($(this).html())==0)&&$(this).html(numeral($(this).html()).format("$0,0.00"))})}function r(n){var i=$("#repWindowRepTemplate").html(),r=Handlebars.compile(i),t;typeof n!="undefined"&&(t=r({Status:n}),$("#rep-window").append(t))}function u(n){n==="online"?$("#chat-status").append($("<span />",{text:"Online","class":"online"})):n==="away"||n==="offline"?$("#chat-status").append($("<span />",{text:"Offline","class":"offline"})):$("#chat-status").append($("<span />",{text:"Unavailable","class":"unavailable"}))}var n;return{Init:function(){t()},DisplayRepWindow:function(n){r(n)},DisplayChatStatus:function(n){u(n)},GetVideoSelector:function(){return n}}}();$.isEmptyObject(Tawk_API)?($("#rep-window").remove(),Rep.DisplayChatStatus("unavailable")):(Tawk_API.onLoad=function(){Tawk_API.isChatMaximized()?(Tawk_API.showWidget(),Tawk_API.maximize()):(Tawk_API.hideWidget(),$("#rep-window").removeClass("hidden"))},Tawk_API.onChatHidden=function(){var n=Tawk_API.getStatus();$("#rep-window").removeClass("hidden");$("#rep-window").children().length||Rep.DisplayRepWindow(n)},Tawk_API.onStatusChange=function(n){$("#rep-window").empty();Rep.DisplayRepWindow(n);$(".rep-contact-option div#chat-status span").eq(1).remove();Rep.DisplayChatStatus(n)},Tawk_API.onChatMinimized=function(){Tawk_API.hideWidget()});$("#tsc-video-info button").on("click",function(){$("#tscVideoModal").modal("show")});$("body").on("click",".rep-notice.rep-page",function(){$("#rep-window").addClass("hidden");Tawk_API.showWidget();Tawk_API.maximize()})