").append(jQuery.parseHTML(responseText)).find(selector):responseText)}).complete(callback&&function(jqXHR,status){self.each(callback,response||[jqXHR.responseText,status,jqXHR])}),this},jQuery.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(i,type){jQuery.fn[type]=function(fn){return this.on(type,fn)}}),jQuery.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:ajaxLocation,type:"GET",isLocal:rlocalProtocol.test(ajaxLocParts[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":allTypes,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":jQuery.parseJSON,"text xml":jQuery.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(target,settings){return settings?ajaxExtend(ajaxExtend(target,jQuery.ajaxSettings),settings):ajaxExtend(jQuery.ajaxSettings,target)},ajaxPrefilter:addToPrefiltersOrTransports(prefilters),ajaxTransport:addToPrefiltersOrTransports(transports),ajax:function(url,options){function done(status,nativeStatusText,responses,headers){var isSuccess,success,error,response,modified,statusText=nativeStatusText;2!==state&&(state=2,timeoutTimer&&clearTimeout(timeoutTimer),transport=undefined,responseHeadersString=headers||"",jqXHR.readyState=status>0?4:0,isSuccess=status>=200&&status<300||304===status,responses&&(response=ajaxHandleResponses(s,jqXHR,responses)),response=ajaxConvert(s,response,jqXHR,isSuccess),isSuccess?(s.ifModified&&(modified=jqXHR.getResponseHeader("Last-Modified"),modified&&(jQuery.lastModified[cacheURL]=modified),(modified=jqXHR.getResponseHeader("etag"))&&(jQuery.etag[cacheURL]=modified)),204===status||"HEAD"===s.type?statusText="nocontent":304===status?statusText="notmodified":(statusText=response.state,success=response.data,error=response.error,isSuccess=!error)):(error=statusText,!status&&statusText||(statusText="error",status<0&&(status=0))),jqXHR.status=status,jqXHR.statusText=(nativeStatusText||statusText)+"",isSuccess?deferred.resolveWith(callbackContext,[success,statusText,jqXHR]):deferred.rejectWith(callbackContext,[jqXHR,statusText,error]),jqXHR.statusCode(statusCode),statusCode=undefined,fireGlobals&&globalEventContext.trigger(isSuccess?"ajaxSuccess":"ajaxError",[jqXHR,s,isSuccess?success:error]),completeDeferred.fireWith(callbackContext,[jqXHR,statusText]),fireGlobals&&(globalEventContext.trigger("ajaxComplete",[jqXHR,s]),--jQuery.active||jQuery.event.trigger("ajaxStop")))}"object"==typeof url&&(options=url,url=undefined),options=options||{};var parts,i,cacheURL,responseHeadersString,timeoutTimer,fireGlobals,transport,responseHeaders,s=jQuery.ajaxSetup({},options),callbackContext=s.context||s,globalEventContext=s.context&&(callbackContext.nodeType||callbackContext.jquery)?jQuery(callbackContext):jQuery.event,deferred=jQuery.Deferred(),completeDeferred=jQuery.Callbacks("once memory"),statusCode=s.statusCode||{},requestHeaders={},requestHeadersNames={},state=0,strAbort="canceled",jqXHR={readyState:0,getResponseHeader:function(key){var match;if(2===state){if(!responseHeaders)for(responseHeaders={};match=rheaders.exec(responseHeadersString);)responseHeaders[match[1].toLowerCase()]=match[2];match=responseHeaders[key.toLowerCase()]}return null==match?null:match},getAllResponseHeaders:function(){return 2===state?responseHeadersString:null},setRequestHeader:function(name,value){var lname=name.toLowerCase();return state||(name=requestHeadersNames[lname]=requestHeadersNames[lname]||name,requestHeaders[name]=value),this},overrideMimeType:function(type){return state||(s.mimeType=type),this},statusCode:function(map){var code;if(map)if(state<2)for(code in map)statusCode[code]=[statusCode[code],map[code]];else jqXHR.always(map[jqXHR.status]);return this},abort:function(statusText){var finalText=statusText||strAbort;return transport&&transport.abort(finalText),done(0,finalText),this}};if(deferred.promise(jqXHR).complete=completeDeferred.add,jqXHR.success=jqXHR.done,jqXHR.error=jqXHR.fail,s.url=((url||s.url||ajaxLocation)+"").replace(rhash,"").replace(rprotocol,ajaxLocParts[1]+"//"),s.type=options.method||options.type||s.method||s.type,s.dataTypes=jQuery.trim(s.dataType||"*").toLowerCase().match(core_rnotwhite)||[""],null==s.crossDomain&&(parts=rurl.exec(s.url.toLowerCase()),s.crossDomain=!(!parts||parts[1]===ajaxLocParts[1]&&parts[2]===ajaxLocParts[2]&&(parts[3]||("http:"===parts[1]?"80":"443"))===(ajaxLocParts[3]||("http:"===ajaxLocParts[1]?"80":"443")))),s.data&&s.processData&&"string"!=typeof s.data&&(s.data=jQuery.param(s.data,s.traditional)),inspectPrefiltersOrTransports(prefilters,s,options,jqXHR),2===state)return jqXHR;fireGlobals=s.global,fireGlobals&&0==jQuery.active++&&jQuery.event.trigger("ajaxStart"),s.type=s.type.toUpperCase(),s.hasContent=!rnoContent.test(s.type),cacheURL=s.url,s.hasContent||(s.data&&(cacheURL=s.url+=(ajax_rquery.test(cacheURL)?"&":"?")+s.data,delete s.data),!1===s.cache&&(s.url=rts.test(cacheURL)?cacheURL.replace(rts,"$1_="+ajax_nonce++):cacheURL+(ajax_rquery.test(cacheURL)?"&":"?")+"_="+ajax_nonce++)),s.ifModified&&(jQuery.lastModified[cacheURL]&&jqXHR.setRequestHeader("If-Modified-Since",jQuery.lastModified[cacheURL]),jQuery.etag[cacheURL]&&jqXHR.setRequestHeader("If-None-Match",jQuery.etag[cacheURL])),(s.data&&s.hasContent&&!1!==s.contentType||options.contentType)&&jqXHR.setRequestHeader("Content-Type",s.contentType),jqXHR.setRequestHeader("Accept",s.dataTypes[0]&&s.accepts[s.dataTypes[0]]?s.accepts[s.dataTypes[0]]+("*"!==s.dataTypes[0]?", "+allTypes+"; q=0.01":""):s.accepts["*"]);for(i in s.headers)jqXHR.setRequestHeader(i,s.headers[i]);if(s.beforeSend&&(!1===s.beforeSend.call(callbackContext,jqXHR,s)||2===state))return jqXHR.abort();strAbort="abort";for(i in{success:1,error:1,complete:1})jqXHR[i](s[i]);if(transport=inspectPrefiltersOrTransports(transports,s,options,jqXHR)){jqXHR.readyState=1,fireGlobals&&globalEventContext.trigger("ajaxSend",[jqXHR,s]),s.async&&s.timeout>0&&(timeoutTimer=setTimeout(function(){jqXHR.abort("timeout")},s.timeout));try{state=1,transport.send(requestHeaders,done)}catch(e){if(!(state<2))throw e;done(-1,e)}}else done(-1,"No Transport");return jqXHR},getJSON:function(url,data,callback){return jQuery.get(url,data,callback,"json")},getScript:function(url,callback){return jQuery.get(url,undefined,callback,"script")}}),jQuery.each(["get","post"],function(i,method){jQuery[method]=function(url,data,callback,type){return jQuery.isFunction(data)&&(type=type||callback,callback=data,data=undefined),jQuery.ajax({url:url,type:method,dataType:type,data:data,success:callback})}}),jQuery.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/(?:java|ecma)script/},converters:{"text script":function(text){return jQuery.globalEval(text),text}}}),jQuery.ajaxPrefilter("script",function(s){s.cache===undefined&&(s.cache=!1),s.crossDomain&&(s.type="GET",s.global=!1)}),jQuery.ajaxTransport("script",function(s){if(s.crossDomain){var script,head=document.head||jQuery("head")[0]||document.documentElement;return{send:function(_,callback){script=document.createElement("script"),script.async=!0,s.scriptCharset&&(script.charset=s.scriptCharset),script.src=s.url,script.onload=script.onreadystatechange=function(_,isAbort){(isAbort||!script.readyState||/loaded|complete/.test(script.readyState))&&(script.onload=script.onreadystatechange=null,script.parentNode&&script.parentNode.removeChild(script),script=null,isAbort||callback(200,"success"))},head.insertBefore(script,head.firstChild)},abort:function(){script&&script.onload(undefined,!0)}}}});var oldCallbacks=[],rjsonp=/(=)\?(?=&|$)|\?\?/;jQuery.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var callback=oldCallbacks.pop()||jQuery.expando+"_"+ajax_nonce++;return this[callback]=!0,callback}}),jQuery.ajaxPrefilter("json jsonp",function(s,originalSettings,jqXHR){var callbackName,overwritten,responseContainer,jsonProp=!1!==s.jsonp&&(rjsonp.test(s.url)?"url":"string"==typeof s.data&&!(s.contentType||"").indexOf("application/x-www-form-urlencoded")&&rjsonp.test(s.data)&&"data");if(jsonProp||"jsonp"===s.dataTypes[0])return callbackName=s.jsonpCallback=jQuery.isFunction(s.jsonpCallback)?s.jsonpCallback():s.jsonpCallback,jsonProp?s[jsonProp]=s[jsonProp].replace(rjsonp,"$1"+callbackName):!1!==s.jsonp&&(s.url+=(ajax_rquery.test(s.url)?"&":"?")+s.jsonp+"="+callbackName),s.converters["script json"]=function(){return responseContainer||jQuery.error(callbackName+" was not called"),responseContainer[0]},s.dataTypes[0]="json",overwritten=window[callbackName],window[callbackName]=function(){responseContainer=arguments},jqXHR.always(function(){window[callbackName]=overwritten,s[callbackName]&&(s.jsonpCallback=originalSettings.jsonpCallback,oldCallbacks.push(callbackName)),responseContainer&&jQuery.isFunction(overwritten)&&overwritten(responseContainer[0]),responseContainer=overwritten=undefined}),"script"});var xhrCallbacks,xhrSupported,xhrId=0,xhrOnUnloadAbort=window.ActiveXObject&&function(){var key;for(key in xhrCallbacks)xhrCallbacks[key](undefined,!0)};jQuery.ajaxSettings.xhr=window.ActiveXObject?function(){return!this.isLocal&&createStandardXHR()||createActiveXHR()}:createStandardXHR,xhrSupported=jQuery.ajaxSettings.xhr(),jQuery.support.cors=!!xhrSupported&&"withCredentials"in xhrSupported,(xhrSupported=jQuery.support.ajax=!!xhrSupported)&&jQuery.ajaxTransport(function(s){if(!s.crossDomain||jQuery.support.cors){var callback;return{send:function(headers,complete){var handle,i,xhr=s.xhr();if(s.username?xhr.open(s.type,s.url,s.async,s.username,s.password):xhr.open(s.type,s.url,s.async),s.xhrFields)for(i in s.xhrFields)xhr[i]=s.xhrFields[i];s.mimeType&&xhr.overrideMimeType&&xhr.overrideMimeType(s.mimeType),s.crossDomain||headers["X-Requested-With"]||(headers["X-Requested-With"]="XMLHttpRequest");try{
for(i in headers)xhr.setRequestHeader(i,headers[i])}catch(err){}xhr.send(s.hasContent&&s.data||null),callback=function(_,isAbort){var status,responseHeaders,statusText,responses;try{if(callback&&(isAbort||4===xhr.readyState))if(callback=undefined,handle&&(xhr.onreadystatechange=jQuery.noop,xhrOnUnloadAbort&&delete xhrCallbacks[handle]),isAbort)4!==xhr.readyState&&xhr.abort();else{responses={},status=xhr.status,responseHeaders=xhr.getAllResponseHeaders(),"string"==typeof xhr.responseText&&(responses.text=xhr.responseText);try{statusText=xhr.statusText}catch(e){statusText=""}status||!s.isLocal||s.crossDomain?1223===status&&(status=204):status=responses.text?200:404}}catch(firefoxAccessException){isAbort||complete(-1,firefoxAccessException)}responses&&complete(status,statusText,responses,responseHeaders)},s.async?4===xhr.readyState?setTimeout(callback):(handle=++xhrId,xhrOnUnloadAbort&&(xhrCallbacks||(xhrCallbacks={},jQuery(window).unload(xhrOnUnloadAbort)),xhrCallbacks[handle]=callback),xhr.onreadystatechange=callback):callback()},abort:function(){callback&&callback(undefined,!0)}}}});var fxNow,timerId,rfxtypes=/^(?:toggle|show|hide)$/,rfxnum=new RegExp("^(?:([+-])=|)("+core_pnum+")([a-z%]*)$","i"),rrun=/queueHooks$/,animationPrefilters=[defaultPrefilter],tweeners={"*":[function(prop,value){var tween=this.createTween(prop,value),target=tween.cur(),parts=rfxnum.exec(value),unit=parts&&parts[3]||(jQuery.cssNumber[prop]?"":"px"),start=(jQuery.cssNumber[prop]||"px"!==unit&&+target)&&rfxnum.exec(jQuery.css(tween.elem,prop)),scale=1,maxIterations=20;if(start&&start[3]!==unit){unit=unit||start[3],parts=parts||[],start=+target||1;do{scale=scale||".5",start/=scale,jQuery.style(tween.elem,prop,start+unit)}while(scale!==(scale=tween.cur()/target)&&1!==scale&&--maxIterations)}return parts&&(start=tween.start=+start||+target||0,tween.unit=unit,tween.end=parts[1]?start+(parts[1]+1)*parts[2]:+parts[2]),tween}]};jQuery.Animation=jQuery.extend(Animation,{tweener:function(props,callback){jQuery.isFunction(props)?(callback=props,props=["*"]):props=props.split(" ");for(var prop,index=0,length=props.length;index
-1,props={},curPosition={};calculatePosition?(curPosition=curElem.position(),curTop=curPosition.top,curLeft=curPosition.left):(curTop=parseFloat(curCSSTop)||0,curLeft=parseFloat(curCSSLeft)||0),jQuery.isFunction(options)&&(options=options.call(elem,i,curOffset)),null!=options.top&&(props.top=options.top-curOffset.top+curTop),null!=options.left&&(props.left=options.left-curOffset.left+curLeft),"using"in options?options.using.call(elem,props):curElem.css(props)}},jQuery.fn.extend({position:function(){if(this[0]){var offsetParent,offset,parentOffset={top:0,left:0},elem=this[0];return"fixed"===jQuery.css(elem,"position")?offset=elem.getBoundingClientRect():(offsetParent=this.offsetParent(),offset=this.offset(),jQuery.nodeName(offsetParent[0],"html")||(parentOffset=offsetParent.offset()),parentOffset.top+=jQuery.css(offsetParent[0],"borderTopWidth",!0),parentOffset.left+=jQuery.css(offsetParent[0],"borderLeftWidth",!0)),{top:offset.top-parentOffset.top-jQuery.css(elem,"marginTop",!0),left:offset.left-parentOffset.left-jQuery.css(elem,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var offsetParent=this.offsetParent||docElem;offsetParent&&!jQuery.nodeName(offsetParent,"html")&&"static"===jQuery.css(offsetParent,"position");)offsetParent=offsetParent.offsetParent;return offsetParent||docElem})}}),jQuery.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(method,prop){var top=/Y/.test(prop);jQuery.fn[method]=function(val){return jQuery.access(this,function(elem,method,val){var win=getWindow(elem);if(val===undefined)return win?prop in win?win[prop]:win.document.documentElement[method]:elem[method];win?win.scrollTo(top?jQuery(win).scrollLeft():val,top?val:jQuery(win).scrollTop()):elem[method]=val},method,val,arguments.length,null)}}),jQuery.each({Height:"height",Width:"width"},function(name,type){jQuery.each({padding:"inner"+name,content:type,"":"outer"+name},function(defaultExtra,funcName){jQuery.fn[funcName]=function(margin,value){var chainable=arguments.length&&(defaultExtra||"boolean"!=typeof margin),extra=defaultExtra||(!0===margin||!0===value?"margin":"border");return jQuery.access(this,function(elem,type,value){var doc;return jQuery.isWindow(elem)?elem.document.documentElement["client"+name]:9===elem.nodeType?(doc=elem.documentElement,Math.max(elem.body["scroll"+name],doc["scroll"+name],elem.body["offset"+name],doc["offset"+name],doc["client"+name])):value===undefined?jQuery.css(elem,type,extra):jQuery.style(elem,type,value,extra)},type,chainable?margin:undefined,chainable,null)}})}),jQuery.fn.size=function(){return this.length},jQuery.fn.andSelf=jQuery.fn.addBack,"object"==typeof module&&module&&"object"==typeof module.exports?module.exports=jQuery:(window.jQuery=window.$=jQuery,"function"==typeof define&&define.amd&&define("jquery",[],function(){return jQuery}))}(window),function(window,document,exportName,undefined){"use strict";function setTimeoutContext(fn,timeout,context){return setTimeout(bindFn(fn,context),timeout)}function invokeArrayArg(arg,fn,context){return!!Array.isArray(arg)&&(each(arg,context[fn],context),!0)}function each(obj,iterator,context){var i;if(obj)if(obj.forEach)obj.forEach(iterator,context);else if(obj.length!==undefined)for(i=0;i\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",log=window.console&&(window.console.warn||window.console.log);return log&&log.call(window.console,deprecationMessage,stack),method.apply(this,arguments)}}function inherit(child,base,properties){var childP,baseP=base.prototype;childP=child.prototype=Object.create(baseP),childP.constructor=child,childP._super=baseP,properties&&assign(childP,properties)}function bindFn(fn,context){return function(){return fn.apply(context,arguments)}}function boolOrFn(val,args){return typeof val==TYPE_FUNCTION?val.apply(args?args[0]||undefined:undefined,args):val}function ifUndefined(val1,val2){return val1===undefined?val2:val1}function addEventListeners(target,types,handler){each(splitStr(types),function(type){target.addEventListener(type,handler,!1)})}function removeEventListeners(target,types,handler){each(splitStr(types),function(type){target.removeEventListener(type,handler,!1)})}function hasParent(node,parent){for(;node;){if(node==parent)return!0;node=node.parentNode}return!1}function inStr(str,find){return str.indexOf(find)>-1}function splitStr(str){return str.trim().split(/\s+/g)}function inArray(src,find,findByKey){if(src.indexOf&&!findByKey)return src.indexOf(find);for(var i=0;ib[key]}):results.sort()),results}function prefixed(obj,property){for(var prefix,prop,camelProp=property[0].toUpperCase()+property.slice(1),i=0;i1&&!session.firstMultiple?session.firstMultiple=simpleCloneInputData(input):1===pointersLength&&(session.firstMultiple=!1);var firstInput=session.firstInput,firstMultiple=session.firstMultiple,offsetCenter=firstMultiple?firstMultiple.center:firstInput.center,center=input.center=getCenter(pointers);input.timeStamp=now(),input.deltaTime=input.timeStamp-firstInput.timeStamp,input.angle=getAngle(offsetCenter,center),input.distance=getDistance(offsetCenter,center),computeDeltaXY(session,input),input.offsetDirection=getDirection(input.deltaX,input.deltaY);var overallVelocity=getVelocity(input.deltaTime,input.deltaX,input.deltaY);input.overallVelocityX=overallVelocity.x,input.overallVelocityY=overallVelocity.y,input.overallVelocity=abs(overallVelocity.x)>abs(overallVelocity.y)?overallVelocity.x:overallVelocity.y,input.scale=firstMultiple?getScale(firstMultiple.pointers,pointers):1,input.rotation=firstMultiple?getRotation(firstMultiple.pointers,pointers):0,input.maxPointers=session.prevInput?input.pointers.length>session.prevInput.maxPointers?input.pointers.length:session.prevInput.maxPointers:input.pointers.length,computeIntervalInputData(session,input);var target=manager.element;hasParent(input.srcEvent.target,target)&&(target=input.srcEvent.target),input.target=target}function computeDeltaXY(session,input){var center=input.center,offset=session.offsetDelta||{},prevDelta=session.prevDelta||{},prevInput=session.prevInput||{};input.eventType!==INPUT_START&&prevInput.eventType!==INPUT_END||(prevDelta=session.prevDelta={x:prevInput.deltaX||0,y:prevInput.deltaY||0},offset=session.offsetDelta={x:center.x,y:center.y}),input.deltaX=prevDelta.x+(center.x-offset.x),input.deltaY=prevDelta.y+(center.y-offset.y)}function computeIntervalInputData(session,input){var velocity,velocityX,velocityY,direction,last=session.lastInterval||input,deltaTime=input.timeStamp-last.timeStamp;if(input.eventType!=INPUT_CANCEL&&(deltaTime>COMPUTE_INTERVAL||last.velocity===undefined)){var deltaX=input.deltaX-last.deltaX,deltaY=input.deltaY-last.deltaY,v=getVelocity(deltaTime,deltaX,deltaY);velocityX=v.x,velocityY=v.y,velocity=abs(v.x)>abs(v.y)?v.x:v.y,direction=getDirection(deltaX,deltaY),session.lastInterval=input}else velocity=last.velocity,velocityX=last.velocityX,velocityY=last.velocityY,direction=last.direction;input.velocity=velocity,input.velocityX=velocityX,input.velocityY=velocityY,input.direction=direction}function simpleCloneInputData(input){for(var pointers=[],i=0;i=abs(y)?x<0?DIRECTION_LEFT:DIRECTION_RIGHT:y<0?DIRECTION_UP:DIRECTION_DOWN}function getDistance(p1,p2,props){props||(props=PROPS_XY);var x=p2[props[0]]-p1[props[0]],y=p2[props[1]]-p1[props[1]];return Math.sqrt(x*x+y*y)}function getAngle(p1,p2,props){props||(props=PROPS_XY);var x=p2[props[0]]-p1[props[0]],y=p2[props[1]]-p1[props[1]];return 180*Math.atan2(y,x)/Math.PI}function getRotation(start,end){return getAngle(end[1],end[0],PROPS_CLIENT_XY)+getAngle(start[1],start[0],PROPS_CLIENT_XY)}function getScale(start,end){return getDistance(end[0],end[1],PROPS_CLIENT_XY)/getDistance(start[0],start[1],PROPS_CLIENT_XY)}function MouseInput(){this.evEl=MOUSE_ELEMENT_EVENTS,this.evWin=MOUSE_WINDOW_EVENTS,this.pressed=!1,Input.apply(this,arguments)}function PointerEventInput(){this.evEl=POINTER_ELEMENT_EVENTS,this.evWin=POINTER_WINDOW_EVENTS,Input.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}function SingleTouchInput(){this.evTarget=SINGLE_TOUCH_TARGET_EVENTS,this.evWin=SINGLE_TOUCH_WINDOW_EVENTS,this.started=!1,Input.apply(this,arguments)}function normalizeSingleTouches(ev,type){var all=toArray(ev.touches),changed=toArray(ev.changedTouches);return type&(INPUT_END|INPUT_CANCEL)&&(all=uniqueArray(all.concat(changed),"identifier",!0)),[all,changed]}function TouchInput(){this.evTarget=TOUCH_TARGET_EVENTS,this.targetIds={},Input.apply(this,arguments)}function getTouches(ev,type){var allTouches=toArray(ev.touches),targetIds=this.targetIds;if(type&(INPUT_START|INPUT_MOVE)&&1===allTouches.length)return targetIds[allTouches[0].identifier]=!0,[allTouches,allTouches];var i,targetTouches,changedTouches=toArray(ev.changedTouches),changedTargetTouches=[],target=this.target;if(targetTouches=allTouches.filter(function(touch){return hasParent(touch.target,target)}),type===INPUT_START)for(i=0;i-1&<s.splice(i,1)};setTimeout(removeLastTouch,DEDUP_TIMEOUT)}}function isSyntheticEvent(eventData){for(var x=eventData.srcEvent.clientX,y=eventData.srcEvent.clientY,i=0;i-1&&this.requireFail.splice(index,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(otherRecognizer){return!!this.simultaneous[otherRecognizer.id]},emit:function(input){function emit(event){self.manager.emit(event,input)}var self=this,state=this.state;state=STATE_ENDED&&emit(self.options.event+stateStr(state))},tryEmit:function(input){if(this.canEmit())return this.emit(input);this.state=STATE_FAILED},canEmit:function(){for(var i=0;ioptions.threshold&&direction&options.direction},attrTest:function(input){return AttrRecognizer.prototype.attrTest.call(this,input)&&(this.state&STATE_BEGAN||!(this.state&STATE_BEGAN)&&this.directionTest(input))},emit:function(input){this.pX=input.deltaX,this.pY=input.deltaY;var direction=directionStr(input.direction);direction&&(input.additionalEvent=this.options.event+direction),this._super.emit.call(this,input)}}),inherit(PinchRecognizer,AttrRecognizer,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[TOUCH_ACTION_NONE]},attrTest:function(input){return this._super.attrTest.call(this,input)&&(Math.abs(input.scale-1)>this.options.threshold||this.state&STATE_BEGAN)},emit:function(input){if(1!==input.scale){var inOut=input.scale<1?"in":"out";input.additionalEvent=this.options.event+inOut}this._super.emit.call(this,input)}}),inherit(PressRecognizer,Recognizer,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return[TOUCH_ACTION_AUTO]},process:function(input){var options=this.options,validPointers=input.pointers.length===options.pointers,validMovement=input.distanceoptions.time;if(this._input=input,!validMovement||!validPointers||input.eventType&(INPUT_END|INPUT_CANCEL)&&!validTime)this.reset();else if(input.eventType&INPUT_START)this.reset(),this._timer=setTimeoutContext(function(){this.state=STATE_RECOGNIZED,this.tryEmit()},options.time,this);else if(input.eventType&INPUT_END)return STATE_RECOGNIZED;return STATE_FAILED},reset:function(){clearTimeout(this._timer)},emit:function(input){this.state===STATE_RECOGNIZED&&(input&&input.eventType&INPUT_END?this.manager.emit(this.options.event+"up",input):(this._input.timeStamp=now(),this.manager.emit(this.options.event,this._input)))}}),inherit(RotateRecognizer,AttrRecognizer,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[TOUCH_ACTION_NONE]},attrTest:function(input){return this._super.attrTest.call(this,input)&&(Math.abs(input.rotation)>this.options.threshold||this.state&STATE_BEGAN)}}),inherit(SwipeRecognizer,AttrRecognizer,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:DIRECTION_HORIZONTAL|DIRECTION_VERTICAL,pointers:1},getTouchAction:function(){return PanRecognizer.prototype.getTouchAction.call(this)},attrTest:function(input){var velocity,direction=this.options.direction;return direction&(DIRECTION_HORIZONTAL|DIRECTION_VERTICAL)?velocity=input.overallVelocity:direction&DIRECTION_HORIZONTAL?velocity=input.overallVelocityX:direction&DIRECTION_VERTICAL&&(velocity=input.overallVelocityY),this._super.attrTest.call(this,input)&&direction&input.offsetDirection&&input.distance>this.options.threshold&&input.maxPointers==this.options.pointers&&abs(velocity)>this.options.velocity&&input.eventType&INPUT_END},emit:function(input){var direction=directionStr(input.offsetDirection);direction&&this.manager.emit(this.options.event+direction,input),this.manager.emit(this.options.event,input)}}),inherit(TapRecognizer,Recognizer,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[TOUCH_ACTION_MANIPULATION]},process:function(input){var options=this.options,validPointers=input.pointers.length===options.pointers,validMovement=input.distance>2,enc2=(3&chr1)<<4|chr2>>4,enc3=(15&chr2)<<2|chr3>>6,enc4=63&chr3,isNaN(chr2)?enc3=enc4=64:isNaN(chr3)&&(enc4=64),output=output+Base64._keyStr.charAt(enc1)+Base64._keyStr.charAt(enc2)+Base64._keyStr.charAt(enc3)+Base64._keyStr.charAt(enc4);return output},decode:function(input){var chr1,chr2,chr3,enc1,enc2,enc3,enc4,output="",i=0;for(input=input.replace(/[^A-Za-z0-9\+\/\=]/g,"");i>4,chr2=(15&enc2)<<4|enc3>>2,chr3=(3&enc3)<<6|enc4,output+=String.fromCharCode(chr1),64!=enc3&&(output+=String.fromCharCode(chr2)),64!=enc4&&(output+=String.fromCharCode(chr3));return output=Base64._utf8_decode(output)},_utf8_encode:function(string){string=string.replace(/\r\n/g,"\n");for(var utftext="",n=0;n127&&c<2048?(utftext+=String.fromCharCode(c>>6|192),utftext+=String.fromCharCode(63&c|128)):(utftext+=String.fromCharCode(c>>12|224),utftext+=String.fromCharCode(c>>6&63|128),utftext+=String.fromCharCode(63&c|128))}return utftext},_utf8_decode:function(utftext){for(var string="",i=0,c=c1=c2=0;i191&&c<224?(c2=utftext.charCodeAt(i+1),string+=String.fromCharCode((31&c)<<6|63&c2),i+=2):(c2=utftext.charCodeAt(i+1),c3=utftext.charCodeAt(i+2),string+=String.fromCharCode((15&c)<<12|(63&c2)<<6|63&c3),i+=3);return string}},rcjq=jQuery.noConflict(!0),scrolled=!1,swiped=!1,resized=!1,rc_loaded_widgets=rc_loaded_widgets||new Array,rc_chosen_interests=rc_chosen_interests||new Array,rc_loaded_hashes=rc_loaded_hashes||new Array;+function($){"use strict";var RevContent=function(element,options,audience_options){if(this.$element=$(element),this.id=this.$element.attr("id"),this.widget="",this.$items=this.$element.find(".rc-p-hb .rc-item, .rc-p-pt .rc-item"),this.$rcpts=this.$element.find(".rc-p-pt, .rc-p-hb"),this.loaded=!1,this.ready=!1,this.completed=!1,this.scrollTimeout,this.refreshTimeout,this.respondTimeout,this.hasFocus=!0,this.agentWidth=$(window).width(),this.stackTimeout=125,this.settings={rows:0,cols:0},rc_loaded_widgets=audience_options.loaded_widgets,rc_chosen_interests=audience_options.chosen_interests,"object"==typeof options)for(var i in options)options.hasOwnProperty(i)&&(this[i]=options[i]);this.load(audience_options)};RevContent.DEFAULTS={cols:null,rows:null,options:null,loaded:!1,initsMax:10,initsCur:1,domain:null,bpReasons:["Fake News","Misleading","Not Interested","Offensive","Repetitve","Other"],bpItem:null,bpLoaded:"",curMedia:"rc-g-d",debug:!1,original_load:null,react:!1,templates:{loader:'',modal:'',bp:{error:'Error encountered.
',success:'Thanks! Item is now removed!
'}},paths:{del:null,about:null,hate:null,logo:null,loader:null,closeIcon:null,bp:null,cf:null,re:null,env:null},_keyStr:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",currPos:null,interest_text:null,reactions_enabled:!1,isIframe:window.location!==window.parent.location},RevContent.prototype.load=function(audience_options){if(document.getElementById("rc2js")){var params=this.getUrlVars(document.getElementById("rc2js").src);this.paths.del=params.del,this.paths.closeIcon=params.ci,this.paths.logo=params.lg,this.paths.about=params.ab,this.paths.hate=params.ht,this.paths.bp=params.del+"pref.php",this.paths.cf=params.del+"fill.php",this.paths.vw=params.del+"view.php",this.paths.re=params.del+"react.php",this.paths.pg=params.del+"imp.php",this.paths.loader=params.ldr,this.paths.env=params.env,this.paths.revCookieAllowed=params.ca}this.interest_text=audience_options.interest_text,this.activeAjax=!1,this.adsLoaded=[],this.domain=location.protocol+"//"+location.host,this.currPos=$(window).scrollTop(),this.pageLoad(audience_options),this.breakpoints(),this.mobileListener(this),this.featured(),this.render(),this.modal(),this.loader(),this.loaded=!0,this.$element.find(".rc-wc").css("visibility","visible"),this.interestsUI(),this.featured(),this.paginationSettings(),this.rowContainer=this.$element.find("#rc-row-container"),this.rcRow=this.rowContainer.find(".rc-row"),this.contentItems=[],this.hbMinHeight=125,this.refresh=this.$element.find(".rc-wc").attr("data-refresh"),this.refreshInterval=this.$element.find(".rc-wc").attr("data-refresh-int"),this.impressionVersion=1,this.page=1,this.previousPage=1,this.pageLoading=[],this.viewed=[],this.totalContent=this.$element.find(".rc-item").length,this.elementHeight=this.$element.height(),this.isBlocked=this.checkAdBlocked(),this.checkJwPlayerForVideoAds(),this.react&&this.reactions(),this.reactions_enabled&&this.load_reactions();var rc=this;if(this.rcRow.find(".rc-item").each(function(){rc.contentItems.push($(this))}),!this.disable_viewability)if(window.self!==window.top)try{var passIn="";if(void 0!==window.parent.passingObj&&(passIn=window.parent.passingObj.revcontent),"viewed"==passIn)rc.isViewable();else var buster=setInterval(function(){void 0!==window.parent.passingObj&&"viewed"==window.parent.passingObj.revcontent&&(rc.isViewable(),clearInterval(buster))},500)}catch(e){rc.isViewable()}else $(window).on("scroll."+rc.id,function(){rc.isViewable()}),$(window).trigger("scroll."+rc.id);$(document).ready(function(){if(rc.ready=!0,"swipe"==rc.pagination&&(rc.rowWidth=rc.rcRow[0].offsetWidth,rc.offset=0,rc.maxPages=4,rc.initTouch(),rc.paginationDots(),rc.attachButtonEvents()),!1!==rc.detect_IE()&&rc.$element.find(".rc-fc-video").addClass("ie-fix"),!rc.hasHeading()&&"swipe"!=rc.pagination){var heading=rc.$element.find(".rc-wc .row-item h3");if(heading.length>0&&heading.css("display","none"),rc.isBrandingTop()){rc.$element.find(".rc-text-top.rc-branding").css("top","0px")}}$(window).on("message",function(e){if("open_me"==e.originalEvent.data.msg)document.getElementById("hateit").click();else if("close_me"==e.originalEvent.data.msg)document.getElementsByClassName("rc-modal-close")[0].click(),window.focus();else if("logout_me"==e.originalEvent.data.msg){var xhr=new XMLHttpRequest;if(xhr.withCredentials=!0,xhr.onerror=function(e){return console.error(xhr.statusText),!1},xhr.open("GET",this.domain+"/feed.php?provider=facebook_engage&action=logout",!1),xhr.send(null),200!==xhr.status)return!1;try{var jsonResponse=JSON.parse(xhr.responseText);jsonResponse.success&&(document.getElementsByClassName("rc-modal-close")[0].click(),window.focus())}catch(err){return!1}}}),$(window).on("message",function(e){"resize_iframe"==e.originalEvent.data.msg&&$(".rc-modal-panel").css({height:e.originalEvent.data.height+"px"})}),$(window).bind("mousemove keydown scroll touchmove",function(e){rc.resetRefresh()}),$(window).on("blur",function(e){rc.hasFocus=!1}),$(window).on("focus",function(e){rc.resetRefresh()}),rc.attachIframeVisibleListener(),rc.attachVideoSoundEvents(),rc.checkAdBlocked(),rc.configureVideoPlaybackControls(),rc.overrideLinkClickIfNeeded()}),$(window).load(function(){rc.loaded=!0,rc.respond("resize"),rc.resetRefresh()});var dfp;try{dfp=window.location!==window.parent.location&&window.location.origin===window.parent.location.origin}catch(error){dfp=!1}if(dfp){var win=window.parent;$(win).on("resize",function(){rc.resizeParentIframeIfNeeded(!0)})}$(window).trigger("loaded_"+this.id,[this.$element]),this.originalIframeSize=null,this.resizeParentIframeIfNeeded(),this.checkElementSize(),this.amp()},RevContent.prototype.amp=function(){if(window.context&&"function"==typeof window.context.requestResize){var decay=[50,100,200,300,500,1e3,1800,3e3],width=this.$element.width(),height=this.$element.height();window.context.requestResize(width,height);for(var self=this,i=0;i0)return parseInt(ua.substring(msie+5,ua.indexOf(".",msie)),10);if(ua.indexOf("Trident/")>0){var rv=ua.indexOf("rv:");return parseInt(ua.substring(rv+3,ua.indexOf(".",rv)),10)}return!1},RevContent.prototype.paginationSettings=function(){var rc=this;rc.$element.find(".rc-p-pt, .rc-p-hb").each(function(){var settings=JSON.parse(rc.decode($(this).attr("data-rcsettings")));rc.pagination=settings[rc.pager]||!1})},RevContent.prototype.resetRefresh=function(){var rc=this;1==rc.refresh&&"repeating"!=rc.pagination&&(clearTimeout(rc.refreshTimeout),rc.hasFocus=!0,rc.refreshTimeout=setTimeout(function(){rc.doRefresh()},rc.refreshInterval))},RevContent.prototype.doRefresh=function(){var rc=this;rc.hasFocus&&document.hasFocus()&&("swipe"==rc.pagination?(rc.page=rc.page==rc.maxPages?0:rc.page,rc.showNextPage(!0)):(rc.page=1==rc.page?2:1,rc.updateDisplayedItems()))},RevContent.prototype.render=function(){var rc=this;rc.truncate(),rc.photoHeight(),rc.maxHeight()},RevContent.prototype.checkLoaded=function(){var widget_ids=$(".rc-wc").map(function(){return $(this).data("id")}).get();return widget_ids.sort(),rc_loaded_widgets.sort(),widget_ids.length==rc_loaded_widgets.length&&widget_ids.every(function(element,index){return element===rc_loaded_widgets[index]})},RevContent.prototype.pageLoad=function(audience_options){var rc=this,view=$(rc.$element).find(".rc-wc").attr("data-view");if(-1===rc_loaded_hashes.indexOf(view)){if(0==$(rc.$element).find(".rc-wc").length)return void setTimeout(function(){rc.pageLoad(audience_options)},500);rc_loaded_hashes.push(view),$.ajax({type:"POST",url:rc.paths.pg,crossDomain:!0,cache:!1,xhrFields:{withCredentials:!1},data:{v:view,p:audience_options.pid,f:rc.isIframe,r:document.referrer?encodeURIComponent(document.referrer.substr(0,700)):"",l:window.location&&window.location.href?encodeURIComponent(window.location.href.substr(0,700)):""},error:function(x,t,e){},success:function(json){}})}},RevContent.prototype.clickListener=function(me){function cloak(link,destination_url){"object"==typeof link&&(link.attr("href",destination_url),link.attr("data-cloak","1"))}function uncloak(link,delivery_url){"object"==typeof link&&"1"==link.attr("data-cloak")&&(link.attr("href",delivery_url),link.removeAttr("data-cloak"))}$.each(me.$element.find(".rc-item a[data-target]"),function(rc_id,rc_link){$(rc_link).off("mousedown").on("mousedown",function(e){e.preventDefault(),uncloak($(this),$(this).attr("data-delivery"))}).off("mouseenter.cta").on("mouseenter.cta",function(e){cloak($(this),$(this).attr("data-target"))}).off("mouseleave.cta").on("mouseleave.cta",function(e){uncloak($(this),$(this).attr("data-delivery"))})})},RevContent.prototype.mobileListener=function(me){this.isMobileAgent()&&$.each(me.$element.find(".rc-item"),function(rc_id,rc_item){$(rc_item).off("touchstart").on("touchstart",function(e){$(this).off("onmouseover").off("onmouseout"),me.disable_fx_scale([$(this)])})})},RevContent.prototype.isMobileAgent=function(agentExpression){if(!agentExpression)var agentExpression=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i;return agentExpression.test(navigator.userAgent)},RevContent.prototype.isMSIEAgent=function(){var agent=window.navigator.userAgent,msie=agent.indexOf("MSIE "),trident=agent.indexOf("Trident/");return msie>0||trident>0},RevContent.prototype.loader=function(action){var $loader=$(".rc-loader");0===$loader.length&&($loader=$(this.templates.loader),$loader.addClass("text-mode"),$("body").append($loader))},RevContent.prototype.initTouch=function(){this.moving="forward",this.preventDefault(),this.mc=new Hammer(this.$element[0]),this.mc.add(new Hammer.Swipe({threshold:25,velocity:0,direction:Hammer.DIRECTION_HORIZONTAL})),this.mc.add(new Hammer.Pan({threshold:25,direction:Hammer.DIRECTION_HORIZONTAL})).recognizeWith(this.mc.get("swipe")),this.movement=0,this.updown=!1,this.made=!1,this.panDirection=!1,this.attachTouchEvents()},RevContent.prototype.attachTouchEvents=function(){var that=this;this.$element[0].addEventListener("click",function(e){(that.made||that.movement)&&(e.stopPropagation(),e.preventDefault())}),this.mc.on("pan swipe",function(e){(that.made||that.movement)&&e.preventDefault()}),this.mc.on("swipeleft",function(e){!that.made&&that.movement&&(that.made=!0,that.transitionDurationCss(that.rowContainer[0],"0.5s"),that.transformCss(that.rowContainer[0],"translate3d(-"+that.rowWidth+"px, 0, 0)"),setTimeout(function(){that.updateRows(),that.made=!1,that.panDirection=!1},500),that.movement=0)}),this.mc.on("swiperight",function(e){!that.made&&that.movement&&(that.made=!0,that.transitionDurationCss(that.rowContainer[0],"0.5s"),that.transformCss(that.rowContainer[0],"translate3d(0, 0, 0)"),setTimeout(function(){that.updateRows(),that.made=!1,that.panDirection=!1},500),that.movement=0)}),this.mc.on("panleft",function(e){that.made||"right"==that.panDirection||!that.updating&&that.page==that.maxPages||that.pan("left",e.distance,e.deltaX)}),this.mc.on("panright",function(e){that.made||"left"==that.panDirection||!that.updating&&1==that.page||that.pan("right",e.distance,e.deltaX)}),this.mc.on("panup pandown",function(e){that.updown=!0}),this.mc.on("panend",function(e){that.rcRow.find(".rc-loading-container").length>0&&(that.pageLoading[that.page]=!0),!that.made&&that.movement&&that.resetShowPage()})},RevContent.prototype.attachButtonEvents=function(){var that=this;this.addEventListener(this.forwardBtn,"click",function(){swiped||that.made||"right"==that.panDirection||!that.updating&&that.page==that.maxPages||that.showNextPage(!0)}),this.addEventListener(this.backBtn,"click",function(){swiped||that.made||"left"==that.panDirection||!that.updating&&1==that.page||that.showPreviousPage(!0)})},RevContent.prototype.pan=function(direction,movement,delta){if(1!=this.pageLoading[this.page])if(this.updown=!1,this.panDirection=direction,swiped||"left"!=direction?swiped||"right"!=direction||this.showPreviousPage():this.showNextPage(),this.movement=movement,this.movement>this.rowWidth)this.updateRows(),this.panDirection=!1,this.movement=0;else{this.transitionDurationCss(this.rowContainer[0],"0s");"left"==direction?this.transformCss(this.rowContainer[0],"translate3d(-"+this.movement+"px, 0, 0)"):"right"==direction&&this.transformCss(this.rowContainer[0],"translate3d(-"+(this.rowWidth-this.movement)+"px, 0, 0)")}},RevContent.prototype.preventDefault=function(){this.addEventListener(this.$element[0],"mousedown",function(e){e.preventDefault()}),this.addEventListener(this.$element[0],"dragstart",function(e){e.preventDefault()})},RevContent.prototype.addEventListener=function(el,eventName,handler){el.addEventListener?el.addEventListener(eventName,handler):el.attachEvent("on"+eventName,function(){handler.call(el)})},RevContent.prototype.prepend=function(el,html){el.insertBefore(html,el.firstChild)},RevContent.prototype.append=function(el,html){el.appendChild(html)},RevContent.prototype.remove=function(el){el&&el.parentNode&&el.parentNode.removeChild(el)},RevContent.prototype.addClass=function(el,className){if(!el)return!1;el.classList?el.classList.add(className):el.className+=" "+className},RevContent.prototype.removeClass=function(el,className){if(!el)return!1;el.classList?el.classList.remove(className):el.className=el.className.replace(new RegExp("(^|\\b)"+className.split(" ").join("|")+"(\\b|$)","gi")," ")},RevContent.prototype.transformCss=function(el,css){el.style.transform=css,el.style.MsTransform=css,el.style.WebkitTransform=css,el.style.OTransform=css},RevContent.prototype.transitionDurationCss=function(el,css){el.style.transitionDuration=css,el.style.WebkitTransitionDuration=css,el.style.MozTransitionDuration=css,el.style.OTransitionDuration=css},RevContent.prototype.showNextPage=function(click){if(!this.updating){this.rowWidth=this.rcRow[0].offsetWidth,this.updating=!0;var previousPage=this.page;this.page=this.page+1,this.moving="forward",this.lastPage=this.previousPage,this.previousPage=previousPage,this.previousDirection=this.direction,this.direction="next",this.createNextPageGrid(),
click&&this.animateRow()}},RevContent.prototype.showPreviousPage=function(click){if(!this.updating){this.rowWidth=this.rcRow[0].offsetWidth,this.updating=!0;var previousPage=this.page;"next"==this.direction?(this.page=this.previousPage,this.moving="back"):"back"==this.moving?this.page=this.page-1:(this.page=this.page+1,this.moving="forward"),this.lastPage=this.previousPage,this.previousPage=previousPage,this.previousDirection=this.direction,this.direction="previous",this.createNextPageGrid(),click&&this.animateRow()}},RevContent.prototype.createNextPageGrid=function(){swiped=!0;var oldRow=this.rcRow;if(oldRow[0].style.width=this.rowWidth+"px",this.rowContainer.parent()[0].style.overflow="hidden",this.rowContainer[0].style.width=2*this.rowWidth+"px",oldRow[0].id="old_row",oldRow[0].style.float="left","next"==this.direction){var insert="append";this.rowContainerTransform="translate3d(-"+this.rowWidth+"px, 0, 0)"}else{var insert="prepend";this.transformCss(this.rowContainer[0],"translate3d(-"+this.rowWidth+"px, 0, 0)"),this.rowContainerTransform="translate3d(0, 0, 0)"}this.oldRcRow=this.rcRow;var newRow=oldRow.clone();this.clearRow(newRow),newRow[0].id="new_row",this.rcRow=newRow,this[insert](this.rowContainer[0],newRow[0]),this.loadingOverlay(),this.updateDisplayedItems()},RevContent.prototype.updateDisplayedItems=function(){this.offset=(this.page-1)*this.getLimit();var endIndex=this.offset+this.getLimit();if(endIndex>this.contentItems.length&&!this.exhausted)1==this.refresh&&"swipe"!=this.pagination?this.respond("refresh"):this.respond("swipe");else{this.rcRow.empty();for(var i=this.offset;i',this.forwardBtn=document.createElement("div"),this.forwardBtn.id="rc-forward-wrapper",this.forwardBtn.innerHTML='',this.paginationDots=document.createElement("div"),this.addClass(this.paginationDots,"rc-pagination-dots");for(var i=0;ithis.maxPages;)this.remove(children[children.length-1])}},RevContent.prototype.clearRow=function(row){var rc=this;rc.isHoverBlock()&&row.find(".rc-content").css("display","none"),row.find(".rc-fc-video").css("display","none"),row.find(".rc-bp-cta").css("visibility","hidden"),row.find(".rc-item").each(function(){var $item=$(this),$ad=new Object;$ad.id="",$ad.headline="
",$ad.provider="",$ad.content_type="",$ad.target_url="",$ad.destination_url="",$ad.image_url="",rc.fillItem($item,$ad)})},RevContent.prototype.hasHeading=function(){var heading=this.$element.find(".rc-wc .row-item h3");return heading.length>0&&" "!=heading[0].innerHTML},RevContent.prototype.isBrandingTop=function(){return this.$element.find(".rc-text-top.rc-branding").length>0},RevContent.prototype.isHoverBlock=function(){return this.$element.find(".rc-p-hb").length>0},RevContent.prototype.modal=function(){var rc=this;0===$(".rc-modal-shade").length&&$("body").append(rc.templates.modal);var $shade=$(".rc-modal-shade"),$modal=$(".rc-modal-panel");$modal.hide(),$(window).off("resize.modal"),$(document).off("click",".rc-brand-content").on("click",".rc-brand-content",function(){$(".rc-about-frame, .rc-modal-content, .rc-modal-content-mes").remove(),$modal.append(' "}$(document).off("click",".rc-bp-cta").on("click",".rc-bp-cta",function(){rc.bpItem=$(this).closest(".rc-item").find(".rc-cta"),rc.id=$(this).closest(".rc-wc").attr("data-id"),rc.original_load=$(this).closest(".rc-wc").attr("data-original_load"),$(".rc-about-frame, .rc-modal-content, .rc-modal-content-mes").remove(),$modal.append('