// Copyright (c) 2017 VigLink
/*
VigLink JavaScript Library — http://www.viglink.com

Permission is hereby granted to create derivative works, but only for use
with the VigLink web service.

Includes:

Sizzle CSS Selector Engine v1.10.20-pre
http://sizzlejs.com/

Copyright 2013 jQuery Foundation, Inc. and other contributors
Released under the MIT license
http://jquery.org/license

Date: 2014-05-22
*/
(function(k){var e,b={_breaker:{},_start:null,each:function(){var a,c=function(c,f){return c===b._breaker||Boolean(f)&&b.elapsed()>a};return function(d,f,h){var p,e;e=b.type(d);if(1===arguments.length)a=arguments[0];else if(h=b.extend({timeout:!1},h),”object”===e&&d.hasOwnProperty)for(p in d){if(d.hasOwnProperty(p)&&c(f(d[p],p),h.timeout))break}else if(d){p=0;for(e=d.length;p<e&&!c(f(d[p],p),h.timeout);p++);}}}(),extend:function(a){var c,b,f,h,e=arguments.length;a=a||{};for(b=1;b<e;b++)if(h=arguments[b],
void 0!==h&&null!==h)for(f in h)c=h[f],a!==c&&void 0!==c&&(a[f]=c);return a},noop:function(){},type:function(){var a=function(c,a){try{return("function"===typeof window[a]||"object"===typeof window[a])&&c instanceof window[a]}catch(b){}return!1};return function(c){return null===c?"null":void 0===c?"undefined":a(c,"HTMLElement")||"object"===typeof c&&1===c.nodeType&&"string"===typeof c.nodeName?"element":c==c.window?"window":a(c,"HTMLDocument")||"object"===typeof c&&("defaultView"in c||"parentWindow"in
c)?"document":Object.prototype.toString.call(c).slice(8,-1).toLowerCase()}}()};b.extend(b,{addClass:function(a,c){b.hasClass(a,c)||(a.className=(a.className?a.className+" ":"")+c)},all:function(a,c){var d="array"===b.type(a)?[]:{};b.each(a,function(a,h){c(a,h)&&("array"===b.type(d)?d.push(a):d[h]=a)});return d},ancestors:function(a){for(var c=[a];(a=a.parentNode)&&1===a.nodeType;)c.push(a);return c},apiCallback:function(a,c){return function(d){"string"===b.type(d)&&(d={response:[d]});a.apply(c,d.response.concat(d.data))}},
attributes:function(a,c){var d;c=c||{};for(d in c)"function"===b.type(a.setAttribute)?a.setAttribute(d,c[d]):a["class"===d?"className":d]=c[d]},attrValues:function(a,c,b){return(c=a[c])&&c.split?c.split(b||" "):[]},batchable:function(a,c){c=c||b.noop;var d=function(){return b.extend({batch:!0,timeout:100},c())},f=b.traits.cors&&b.traits.json,h=[],e=null,l=function(){null!==e&&(clearTimeout(e),e=null);1===h.length?a.apply(null,h[0].arguments):1<h.length&&a.apply(null,h);h=[]},g=function(){h.push({arguments:b.toArray(arguments),
batch:!0});!f||!d().batch?l():null===e&&(e=setTimeout(b.entryPoint(b.bind(function(){l()},this)),d().timeout))};b.extend(g,{flush:l,now:a});return g},batchArgs:function(a,c){return b.map(a,function(a){return void 0===c?a.arguments:a.arguments[c]})},batchCallType:function(a){var c;return b.reduce(null,a,function(a,b){c=b[0];return null!==a&&c!==a?"batch":c})},batched:function(a){a=b.toArray(a);if("array"===b.type(a))return b.all(a,function(c){return"object"===b.type(c)&&c.batch&&"array"===b.type(c.arguments)}).length===
a.length},bind:function(a,c){return function(){return a.apply(c,arguments)}},cache:function(){var a={},c="vglnk_"+(new Date).getTime(),b=0;return function(f,h,e){if(f){var l=f[c];if(l||void 0!==e)return l||(l=++b),a[l]||(f[c]=l,a[l]={}),void 0!==e&&(a[l][h]=e),"string"===typeof h?a[l][h]:a[l]}}}(),canonicalizeHostname:function(a){"string"===typeof a&&(a=b.createA(a));try{return a.hostname?a.hostname.toString().toLowerCase().replace(/^www\./,"").replace(/:.*$/,""):""}catch(c){return""}},clone:function(a){return b.extend({},
a)},commonParams:function(a,c){var d;c=c||{};d={drKey:c.key?null:c.dr_key,key:c.key,libId:c.library_id,subId:c.sub_id};("click"===a||"ping"===a)&&b.extend(d,{cuid:c.cuid,loc:location.href,v:1},d);return d},contains:function(a,c,d){return Boolean(b.find(a,function(a){return a===c},d))},context:function(a){"element"===b.type(a)&&(a=a.ownerDocument);"document"===b.type(a)&&(a=a.defaultView||a.parentWindow);if("window"===b.type(a))return a},contextIsAncestor:function(a,c){for(var b=a.self;b.parent&&b.parent!==
b;)if(b=b.parent,b===c)return!0;return!1},cors:function(a,c,d){var f;f=new window.XMLHttpRequest;f.onreadystatechange=function(){if(4===f.readyState&&200===f.status){var c=b.noop,a=[],h;if(d)d(f.responseText);else if("string"===b.type(f.responseText)&&(h=f.responseText.match(/^\s*(?:\/\*\*\/)?([^(\s]+)\s*\((.*)\);?\s*$/)))c=h[1].replace(/(^\s+|\s+$)/g,""),a=b.fromJSON("["+h[2]+"]"),window[c].apply(window,a)}};try{return f.open("POST",a),f.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),
f.withCredentials=!0,f.send(c),!0}catch(h){return!1}},createA:function(a,c){return b.createEl("a",{href:a,target:c})},createEl:function(a,c,d,f){a=(f||document).createElement(a);b.attributes(a,c);b.css(a,d);return a},css:function(a,c){var b;c=c||{};for(b in c)try{a.style[b]=c[b]}catch(f){}return a},destructing:function(a){return function(c){var a=!1,b;return function(){a||(b=c.apply(null,arguments),a=!0);return b}}(a)},elapsed:function(a){return(a=a||this._start)?(new Date).getTime()-a.getTime():
0},entryPoint:function(a){return b.exceptionLogger(function(){var c;b._start=new Date;b.observer.pause();c=a.apply(this,arguments);b.observer.resume();return c})},escapeRegExp:function(){var a;return function(c){a=a||/([.*+?^${}()|[\]\\])/g;return c.replace(a,"\\$1")}}(),eventLink:function(a){var c,b=a.target||a.srcElement;do{try{c=b.nodeType}catch(f){break}if(1===c&&(a=b.tagName.toUpperCase(),"A"===a||"AREA"===a))return b;b=b.parentNode}while(b)},every:function(a,c){return Boolean(!b.some(a,function(a){return!c(a)}))},
exceptionLogger:function(){var a=!1,c=b.noop;return function(b,f){if(void 0!==f)a=f,c=b;else return function(){if(a)try{return b.apply(this,arguments)}catch(f){c(f)}else return b.apply(this,arguments)}}}(),find:function(a,c,d){var f;b.each(a,function(a,d){if(c(a,d))return f=a,b._breaker},d);return f},generateNodeFilter:function(){var a=function(a,b){var h,e;b=","+b.join(",")+",";h=0;for(e=a.length;h<e;h++)if(c(a[h],b))return!0;return!1},c=function(a,c){return-1!==c.indexOf(","+a+",")};return function(d){d=
b.extend({custom:null,classes:[],rels:[],tags:[]},d);d.tags.length&&(d.tags=","+d.tags.join(",").toLowerCase()+",");return function(f,h){h=b.extend({ancestors:!0,self:!0},h);var e=function(f,h){var e;if(e=!(d.tags.length&&c(f.nodeName.toLowerCase(),d.tags))){if(e=d.classes.length){e=d.classes;var p=b.attrValues(f,"className");e=a(e,p)}if(e=!e){if(e=d.rels.length)e=d.rels,p=b.attrValues(f,"rel"),e=c(f.nodeName.toLowerCase(),",a,")&&a(e,p);e=!e&&!("function"===b.type(d.custom)&&d.custom(f,h))}}return e};
if(h.self&&!e(f,!0))return!1;if(h.ancestors)for(;f.parentNode;)if(f=f.parentNode,1===f.nodeType&&!e(f,!1))return!1;return!0}}}(),fromJSON:function(a){if(b.traits.json)try{return window.JSON.parse(a)}catch(c){}},fromQuery:function(a){"?"===a.substr(0,1)&&(a=a.substr(1));a=a.split("&");var c={};b.each(a,function(a){a=a.split("=");c[decodeURIComponent(a[0])]=decodeURIComponent(a[1])});return c},geometry:function(){var a,c=arguments.length,d=Infinity,f=Infinity,h=-Infinity,e=-Infinity,l;for(a=0;a<c;a++)l=
b.position(arguments[a]),d=Math.min(d,l.x),f=Math.min(f,l.y),h=Math.max(h,l.x+arguments[a].offsetWidth),e=Math.max(e,l.y+arguments[a].offsetHeight);return{x:d,y:f,w:h-d,h:e-f,x1:d,y1:f,x2:h,y2:e}},getActualHref:function(a){return b.cache(a,"href")||a.href},hasAttrValue:function(a,c,d,f){return c?b.contains(b.attrValues(a,c,f),d):!1},hasClass:function(a,c){return b.hasAttrValue(a,"className",c)},hasRel:function(a,c){return b.hasAttrValue(a,"rel",c)},isArray:function(a){return"array"===b.type(a)},isDefaultPrevented:function(a){return a.isDefaultPrevented&&
a.isDefaultPrevented()||!1===a.returnValue||!0===a.defaultPrevented},isInDom:function(a){return Boolean(a&&a.offsetParent)},isVisible:function(a){return Boolean(a.offsetHeight||a.offsetWidth||!a.getClientRects||a.getClientRects().length)},jsonp:function(a){var c=document.getElementsByTagName("script")[0];a=b.createEl("script",{type:"text/javascript",src:a});c.parentNode.insertBefore(a,c)},links:function(){var a=["http:","https:"],c=function(c,f){return b.all(c,function(c){return c.href&&(!f.filter_by_scheme||
b.contains(a,c.protocol))&&(!f.filter_homepages||"/"!==c.pathname)&&(!f.filter_internal||c.hostname!==b.context(c).location.hostname)})};return function(a,f,h){h=b.extend({filter_homepages:!0,filter_internal:!0,filter_by_scheme:!0},h);f=b.map(f.split(","),function(a){return a+" a[href]"}).join(",");return c(b.withScope(a,f,{ancestors:!1,consolidate:!0}),h)}}(),map:function(a,c,d){return b.reduce([],a,function(a,b,d){a.push(c(b,d));return a},d)},matches:function(a,c){if("element"!==b.type(a))return!1;
try{return this.Sizzle.matchesSelector(a,c)}catch(d){return!0}},mergeable:function(a){var c=function(){return b.extend({batchable:!0,batchFn:b.noop,nonBatchFn:b.noop,timeout:100},a())};return b.batchable(function(){b.batched(arguments)?c().batchable?b.each(b.batchArgs(arguments),function(a){c().batchFn.apply(this,a)}):c().nonBatchFn.apply(this,arguments):c().nonBatchFn.apply(this,arguments)},function(){return{batch:!0,timeout:c().timeout}})},mergeParams:function(a){var c,d,f,h=arguments.length,e=
function(d,f){c=a[f];a.hasOwnProperty(f)&&b.isArray(d)&&b.isArray(c)?a[f]=b.unique(c.concat(d)):a[f]=d};for(d=1;d<h;d++)f=arguments[d],b.each(f,e);return b.prune(a)},nodesOfType:function(a){var c=b.toArray(arguments).slice(1);return b.all(a,function(a){return b.contains(c,a.nodeType)})},on:function(){var a;return function(c,d,f){var h,e,l;if(1===arguments.length)a=c;else{if(2===arguments.length){if(!a)return;f=d;d=c;c=a}else h=b.toArray(arguments).slice(3,arguments.length);try{e=c["on"+d]}catch(g){}"function"===
typeof e&&(c["on"+d]=b.bind(function(a){a=a||window.event;var d=e.apply(c,arguments);this.exceptionLogger(function(){return a?(void 0!==d&&!1!==a.returnValue&&(a.returnValue=d),b.isDefaultPrevented(a)&&"function"===b.type(a.preventDefault)&&a.preventDefault(),a.returnValue):d})()},this));l=b.entryPoint(function(){if(a.enabled())return f.apply(null,b.toArray(arguments).concat(h||[]))});c.addEventListener?c.addEventListener(d,l,!1):c.attachEvent&&c.attachEvent("on"+d,l)}}}(),packageArgs:function(){return b.toArray(arguments)},
position:function(a,c){var d,f=0,h=0,e=0,l=0;c=c||document;if(!b.isInDom(a))return!1;d=a;do f+=d.offsetLeft,h+=d.offsetTop,d=d.offsetParent;while(d);d=a;do e+=d.scrollLeft,l+=d.scrollTop,d=d.parentNode;while(d&&d!==c.body);return{x:f-e,y:h-l}},preventDefault:function(a){a.preventDefault&&a.preventDefault();return a.returnValue=!1},prune:function(a){b.each(a,function(c,b){(null===c||void 0===c)&&delete a[b]});return a},ready:function(){var a=!1,c=[],d=!1,f,h,e,l,g;document.addEventListener?e=function(){document.removeEventListener("DOMContentLoaded",
e,!1);g()}:document.attachEvent&&(l=function(){"complete"===document.readyState&&(document.detachEvent("onreadystatechange",l),g())});f=function(){if(!a){a=!0;if("interactive"===document.readyState||"complete"===document.readyState)return g();if(document.addEventListener)document.addEventListener("DOMContentLoaded",e,!1);else if(document.attachEvent){document.attachEvent("onreadystatechange",l);var c=!1;try{c=null===window.frameElement}catch(d){}document.documentElement.doScroll&&c&&h()}b.on(window,
"load",g)}};h=function(){if(!d){try{document.documentElement.doScroll("left")}catch(a){setTimeout(b.entryPoint(h),1);return}g()}};g=function(){if(!d){if(!document.body)return setTimeout(b.entryPoint(g),13);d=!0;c&&(b.each(c,function(a){a()}),c=null)}};return function(a){f();d?a():c.push(a)}}(),reduce:function(a,c,d,f){b.each(c,function(c,b){a=d(a,c,b)},f);return a},reformatKeys:function(a){var c,d,f=function(a){return"_"+a.toLowerCase()};for(c in a)d=c.replace(/([A-Z])/g,f),"object"===b.type(a[c])&&
(a[c]=b.reformatKeys(a[c])),d!==c&&(a[d]=a[c],delete a[c]);return a},removeClass:function(a,c){if(b.hasClass(a,c)){var d,f,e=b.attrValues(a,"className");d=0;for(f=e.length;d<f;d++)e[d]===c&&delete e[d];a.className=e.join(" ")}},request:function(a,c,d){var f,e,g,l=b.uniqid("vglnk_"),y=b.toArray(arguments).slice(3,arguments.length),r=function(a,c,d){var f={},e=!!c.length,h=!0===d||!1===d;if(e||h)a=b.createA(a),e&&(f.search="?"+c),h&&(c=a.protocol||b.context(a).location.protocol||"http:",f.protocol=
c.replace(/s?:$/,function(){return d?"s:":":"})),a=b.extend(a,f).href;return a};e=function(a,c){var d={},f=b.commonParams();d[c]={};b.each(a,function(a,b){b in f?d[b]=a:d[c][b]=a});d[c]=b.toJSON(d[c]);return b.prune(d)};d=b.extend({fn:b.noop,json_payload:null,jsonp:!0,"return":!1,ssl:null,timeout:null},d);"string"===typeof d.fn?(f=window[d.fn],l=d.fn):"function"===typeof d.fn&&(f=d.fn);"function"===b.type(f)&&(g=b.entryPoint(b.destructing(function(){var a,e;d.json_payload&&(e=d.json_payload,a=b.fromJSON(c[e]),
c=b.extend(c,a),delete c[e]);f({response:b.toArray(arguments),data:y,args:c});window[l]&&(window[l]=void 0)})),null!==d.timeout&&setTimeout(g,d.timeout));d.json_payload&&b.traits.cors&&(c=e(c,d.json_payload));!0===d.jsonp&&(window[l]=g,c=b.extend({format:"jsonp",jsonp:l},c));e=b.toQuery(c);return d["return"]?r(a,e,d.ssl):b.traits.json&&b.traits.cors&&b.cors(r(a,"",d.ssl),e,d.jsonp?null:g)?!0:b.jsonp(r(a,e,d.ssl))},select:function(){try{return this.Sizzle.apply(this.Sizzle,arguments)}catch(a){return[]}},
some:function(a,c){return Boolean(b.find(a,function(a){return c(a)}))},stopPropagation:function(a){a&&a.stopPropagation&&a.stopPropagation();a.cancelBubble=!0},time:function(){return(new Date).getTime()},toArray:function(a){if(a&&void 0!==a.length)try{return Array.prototype.slice.call(a,0)}catch(c){var b,f,e=[];b=0;for(f=a.length;b<f;b++)e[b]=a[b];return e}},toJSON:function(a){if(b.traits.json)try{return window.JSON.stringify(a)}catch(c){}},toQuery:function(a){var c="";b.each(b.prune(a),function(a,
b){c+="&"+encodeURIComponent(b)+"="+encodeURIComponent(a)});return c.substr(1)},updateUrl:function(a,c){return b.extend(b.createA(a),c).href},uniqid:function(){var a=0;return function(c){return(c||"")+(new Date).getTime()+a++}}(),unique:function(a){return b.reduce([],a,function(a,d){b.contains(a,d)||a.push(d);return a})},unlink:function(a){var c,b=document.createDocumentFragment();if(a.parentNode){for(;null!==(c=a.firstChild);)b.appendChild(c);a.parentNode.insertBefore(b,a);a.parentNode.removeChild(a)}},
withScope:function(){var a=function(a,d,f){if(f.self&&b.contains(d,a,{timeout:!0}))return a;if(f.ancestors)return b.find(b.ancestors(a).slice(0),function(a){return b.contains(d,a,{timeout:!0})},{timeout:!0})};return function(c,d,f){var e,g=b.select(d);f=b.extend({ancestors:!0,consolidate:!1,descendants:!0,self:!0},f);f.descendants&&(e=b.map(g,function(a){return[a,b.ancestors(a)]},{timeout:!0}));c=b.all(b.map(c,function(c){var d,r=[];(d=a(c,g,f))?r.push(d):1===c.nodeType&&f.descendants&&b.each(e,function(a){var d=
a[0];b.contains(a[1],c,{timeout:!0})&&r.push(d)},{timeout:!0});return[c,r]},{timeout:!0}),function(a){return 0v.cacheLength&&delete a[c.shift()];return a[b+” “]=d}var c=[];return a}function f(a){a[x]=!0;return a}function e(a){var c=
z.createElement(“div”);try{return!!a(c)}catch(b){return!1}finally{c.parentNode&&c.parentNode.removeChild(c)}}function g(a,c){for(var b=a.split(“|”),d=a.length;d–;)v.attrHandle[b[d]]=c}function l(a,c){var b=c&&a,d=b&&1===a.nodeType&&1===c.nodeType&&(~c.sourceIndex||ia)-(~a.sourceIndex||ia);if(d)return d;if(b)for(;b=b.nextSibling;)if(b===c)return-1;return a?1:-1}function n(a){return function(c){return”input”===c.nodeName.toLowerCase()&&c.type===a}}function r(a){return function(c){var b=c.nodeName.toLowerCase();
return(“input”===b||”button”===b)&&c.type===a}}function u(a){return f(function(c){c=+c;return f(function(b,d){for(var f,e=a([],b.length,c),h=e.length;h–;)if(b[f=e[h]])b[f]=!(d[f]=b[f])})})}function m(a){return a&&typeof a.getElementsByTagName!==O&&a}function t(){}function k(a){for(var c=0,b=a.length,d=””;c<b;c++)d+=a[c].value;return d}function q(a,c,b){var d=c.dir,f=b&&"parentNode"===d,e=sa++;return c.first?function(c,b,e){for(;c=c[d];)if(1===c.nodeType||f)return a(c,b,e)}:function(c,b,h){var X,
g,l=[D,e];if(h)for(;c=c[d];){if((1===c.nodeType||f)&&a(c,b,h))return!0}else for(;c=c[d];)if(1===c.nodeType||f){g=c[x]||(c[x]={});if((X=g[d])&&X[0]===D&&X[1]===e)return l[2]=X[2];g[d]=l;if(l[2]=a(c,b,h))return!0}}}function B(a){return 1<a.length?function(c,b,d){for(var f=a.length;f–;)if(!a[f](c,b,d))return!1;return!0}:a[0]}function Z(a,c,b,d,f){for(var e,h=[],g=0,l=a.length,p=null!=c;g<l;g++)if(e=a[g])if(!b||b(e,d,f))h.push(e),p&&c.push(g);return h}function U(a,b,d,e,h,g){e&&!e[x]&&(e=U(e));h&&!h[x]&&
(h=U(h,g));return f(function(f,g,l,p){var r,u,n=[],y=[],m=g.length,k;if(!(k=f)){k=b||"*";for(var t=l.nodeType?[l]:l,R=[],q=0,pa=t.length;q<pa;q++)c(k,t[q],R);k=R}k=a&&(f||!b)?Z(k,n,a,l,p):k;t=d?h||(f?a:m||e)?[]:g:k;d&&d(k,t,l,p);if(e){r=Z(t,y);e(r,[],l,p);for(l=r.length;l–;)if(u=r[l])t[y[l]]=!(k[y[l]]=u)}if(f){if(h||a){if(h){r=[];for(l=t.length;l–;)if(u=t[l])r.push(k[l]=u);h(null,t=[],r,p)}for(l=t.length;l–;)if((u=t[l])&&-1<(r=h?M.call(f,u):n[l]))f[r]=!(g[r]=u)}}else t=Z(t===g?t.splice(m,t.length):
t),h?h(null,g,t,p):J.apply(g,t)})}function V(a){var c,b,d,f=a.length,e=v.relative[a[0].type];b=e||v.relative[" "];for(var h=e?1:0,g=q(function(a){return a===c},b,!0),l=q(function(a){return-1<M.call(c,a)},b,!0),p=[function(a,b,d){return!e&&(d||b!==$)||((c=b).nodeType?g(a,b,d):l(a,b,d))}];h<f;h++)if(b=v.relative[a[h].type])p=[q(B(p),b)];else{b=v.filter[a[h].type].apply(null,a[h].matches);if(b[x]){for(d=++h;d<f&&!v.relative[a[d].type];d++);return U(1<h&&B(p),1<h&&k(a.slice(0,h-1).concat({value:" "===
a[h-2].type?"*":""})).replace(Y,"$1"),b,h<d&&V(a.slice(h,d)),d<f&&V(a=a.slice(d)),d<f&&k(a))}p.push(b)}return B(p)}function ta(a,b){var d=0<b.length,e=0<a.length,h=function(f,h,g,l,p){var r,u,n,y=0,t="0",m=f&&[],k=[],R=$,q=f||e&&v.find.TAG("*",p),ga=D+=null==R?1:Math.random()||0.1,oa=q.length;for(p&&($=h!==z&&h);t!==oa&&null!=(r=q[t]);t++){if(e&&r){for(u=0;n=a[u++];)if(n(r,h,g)){l.push(r);break}p&&(D=ga)}d&&((r=!n&&r)&&y–,f&&m.push(r))}y+=t;if(d&&t!==y){for(u=0;n=b[u++];)n(m,k,h,g);if(f){if(0<y)for(;t–;)!m[t]&&
!k[t]&&(k[t]=ua.call(l));k=Z(k)}J.apply(l,k);p&&(!f&&0<k.length&&1<y+b.length)&&c.uniqueSort(l)}p&&(D=ga,$=R);return m};return d?f(h):h}var P,w,v,aa,ja,T,ea,ha,$,K,Q,I,z,F,E,A,N,ba,S,x="sizzle"+-new Date,C=a.document,D=0,sa=0,ka=b(),la=b(),ma=b(),fa=function(a,c){a===c&&(Q=!0);return 0},O="undefined",ia=-2147483648,va={}.hasOwnProperty,L=[],ua=L.pop,wa=L.push,J=L.push,na=L.slice,M=L.indexOf||function(a){for(var c=0,b=this.length;c+~]|[\x20\t\r\n\f])[\x20\t\r\n\f]*/,za=/=[\x20\t\r\n\f]*([^\]'”]*?)[\x20\t\r\n\f]*\]/g,Aa=RegExp(“:((?:\\\\.|[\\w-]|[^\\x00-\\xa0])+)(?:\\(((‘((?:\\\\.|[^\\\\’])*)’|\”((?:\\\\.|[^\\\\\”])*)\”)|((?:\\\\.|[^\\\\()[\\]]|\\[[\\x20\\t\\r\\n\\f]*((?:\\\\.|[\\w-]|[^\\x00-\\xa0])+)(?:[\\x20\\t\\r\\n\\f]*([*^$|!~]?=)[\\x20\\t\\r\\n\\f]*(?:'((?:\\\\.|[^\\\\’])*)’|\”((?:\\\\.|[^\\\\\”])*)\”|((?:\\\\.|[\\w-]|[^\\x00-\\xa0])+))|)[\\x20\\t\\r\\n\\f]*\\])*)|.*)\\)|)”),
Ba=/^(?:\\.|[\w-]|[^\x00-\xa0])+$/,ca={ID:/^#((?:\\.|[\w-]|[^\x00-\xa0])+)/,CLASS:/^\.((?:\\.|[\w-]|[^\x00-\xa0])+)/,TAG:/^((?:\\.|[\w-]|[^\x00-\xa0])+|[*])/,ATTR:RegExp(“^\\[[\\x20\\t\\r\\n\\f]*((?:\\\\.|[\\w-]|[^\\x00-\\xa0])+)(?:[\\x20\\t\\r\\n\\f]*([*^$|!~]?=)[\\x20\\t\\r\\n\\f]*(?:'((?:\\\\.|[^\\\\’])*)’|\”((?:\\\\.|[^\\\\\”])*)\”|((?:\\\\.|[\\w-]|[^\\x00-\\xa0])+))|)[\\x20\\t\\r\\n\\f]*\\]”),PSEUDO:RegExp(“^:((?:\\\\.|[\\w-]|[^\\x00-\\xa0])+)(?:\\(((‘((?:\\\\.|[^\\\\’])*)’|\”((?:\\\\.|[^\\\\\”])*)\”)|((?:\\\\.|[^\\\\()[\\]]|\\[[\\x20\\t\\r\\n\\f]*((?:\\\\.|[\\w-]|[^\\x00-\\xa0])+)(?:[\\x20\\t\\r\\n\\f]*([*^$|!~]?=)[\\x20\\t\\r\\n\\f]*(?:'((?:\\\\.|[^\\\\’])*)’|\”((?:\\\\.|[^\\\\\”])*)\”|((?:\\\\.|[\\w-]|[^\\x00-\\xa0])+))|)[\\x20\\t\\r\\n\\f]*\\])*)|.*)\\)|)”),
CHILD:RegExp(“^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\([\\x20\\t\\r\\n\\f]*(even|odd|(([+-]|)(\\d*)n|)[\\x20\\t\\r\\n\\f]*(?:([+-]|)[\\x20\\t\\r\\n\\f]*(\\d+)|))[\\x20\\t\\r\\n\\f]*\\)|)”,”i”),bool:RegExp(“^(?:checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped)$”,”i”),needsContext:RegExp(“^[\\x20\\t\\r\\n\\f]*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\([\\x20\\t\\r\\n\\f]*((?:-\\d)?\\d*)[\\x20\\t\\r\\n\\f]*\\)|)(?=[^-]|$)”,
“i”)},Ca=/^(?:input|select|textarea|button)$/i,Da=/^h\d$/i,W=/^[^{]+\{\s*\[native \w/,qa=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,da=/[+~]/,ra=/’|\\/g,G=/\\([\da-f]{1,6}[\x20\t\r\n\f]?|([\x20\t\r\n\f])|.)/ig,H=function(a,c,b){a=”0x”+c-65536;return a!==a||b?c:0>a?String.fromCharCode(a+65536):String.fromCharCode(a>>10|55296,a&1023|56320)};try{J.apply(L=na.call(C.childNodes),C.childNodes),L[C.childNodes.length].nodeType}catch(Ea){J={apply:L.length?function(a,c){wa.apply(a,na.call(c))}:function(a,c){for(var b=
a.length,d=0;a[b++]=c[d++];);a.length=b-1}}}w=c.support={};ja=c.isXML=function(a){return(a=a&&(a.ownerDocument||a).documentElement)?”HTML”!==a.nodeName:!1};I=c.setDocument=function(a){var c=a?a.ownerDocument||a:C;a=c.defaultView;if(c===z||9!==c.nodeType||!c.documentElement)return z;z=c;F=c.documentElement;E=!ja(c);a&&a!==a.top&&(a.addEventListener?a.addEventListener(“unload”,function(){I()},!1):a.attachEvent&&a.attachEvent(“onunload”,function(){I()}));w.attributes=e(function(a){a.className=”i”;return!a.getAttribute(“className”)});
w.getElementsByTagName=e(function(a){a.appendChild(c.createComment(“”));return!a.getElementsByTagName(“*”).length});w.getElementsByClassName=W.test(c.getElementsByClassName)&&e(function(a){a.innerHTML=”

“;a.firstChild.className=”i”;return 2===a.getElementsByClassName(“i”).length});w.getById=e(function(a){F.appendChild(a).id=x;return!c.getElementsByName||!c.getElementsByName(x).length});w.getById?(v.find.ID=function(a,c){if(typeof c.getElementById!==O&&E){var b=
c.getElementById(a);return b&&b.parentNode?[b]:[]}},v.filter.ID=function(a){var c=a.replace(G,H);return function(a){return a.getAttribute(“id”)===c}}):(delete v.find.ID,v.filter.ID=function(a){var c=a.replace(G,H);return function(a){return(a=typeof a.getAttributeNode!==O&&a.getAttributeNode(“id”))&&a.value===c}});v.find.TAG=w.getElementsByTagName?function(a,c){if(typeof c.getElementsByTagName!==O)return c.getElementsByTagName(a)}:function(a,c){var b,d=[],f=0,e=c.getElementsByTagName(a);if(“*”===a){for(;b=
e[f++];)1===b.nodeType&&d.push(b);return d}return e};v.find.CLASS=w.getElementsByClassName&&function(a,c){if(typeof c.getElementsByClassName!==O&&E)return c.getElementsByClassName(a)};N=[];A=[];if(w.qsa=W.test(c.querySelectorAll))e(function(a){a.innerHTML=””;a.querySelectorAll(“[msallowclip^=”]”).length&&A.push(“[*^$]=[\\x20\\t\\r\\n\\f]*(?:”|\”\”)”);a.querySelectorAll(“[selected]”).length||A.push(“\\[[\\x20\\t\\r\\n\\f]*(?:value|checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped)”);
a.querySelectorAll(“:checked”).length||A.push(“:checked”)}),e(function(a){var b=c.createElement(“input”);b.setAttribute(“type”,”hidden”);a.appendChild(b).setAttribute(“name”,”D”);a.querySelectorAll(“[name=d]”).length&&A.push(“name[\\x20\\t\\r\\n\\f]*[*^$|!~]?=”);a.querySelectorAll(“:enabled”).length||A.push(“:enabled”,”:disabled”);a.querySelectorAll(“*,:x”);A.push(“,.*:”)});(w.matchesSelector=W.test(ba=F.matches||F.webkitMatchesSelector||F.mozMatchesSelector||F.oMatchesSelector||F.msMatchesSelector))&&
e(function(a){w.disconnectedMatch=ba.call(a,”div”);ba.call(a,”[s!=”]:x”);N.push(“!=”,”:((?:\\\\.|[\\w-]|[^\\x00-\\xa0])+)(?:\\(((‘((?:\\\\.|[^\\\\’])*)’|\”((?:\\\\.|[^\\\\\”])*)\”)|((?:\\\\.|[^\\\\()[\\]]|\\[[\\x20\\t\\r\\n\\f]*((?:\\\\.|[\\w-]|[^\\x00-\\xa0])+)(?:[\\x20\\t\\r\\n\\f]*([*^$|!~]?=)[\\x20\\t\\r\\n\\f]*(?:'((?:\\\\.|[^\\\\’])*)’|\”((?:\\\\.|[^\\\\\”])*)\”|((?:\\\\.|[\\w-]|[^\\x00-\\xa0])+))|)[\\x20\\t\\r\\n\\f]*\\])*)|.*)\\)|)”)});A=A.length&&RegExp(A.join(“|”));N=N.length&&RegExp(N.join(“|”));
S=(a=W.test(F.compareDocumentPosition))||W.test(F.contains)?function(a,c){var b=9===a.nodeType?a.documentElement:a,d=c&&c.parentNode;return a===d||!(!d||!(1===d.nodeType&&(b.contains?b.contains(d):a.compareDocumentPosition&&a.compareDocumentPosition(d)&16)))}:function(a,c){if(c)for(;c=c.parentNode;)if(c===a)return!0;return!1};fa=a?function(a,b){if(a===b)return Q=!0,0;var d=!a.compareDocumentPosition-!b.compareDocumentPosition;if(d)return d;d=(a.ownerDocument||a)===(b.ownerDocument||b)?a.compareDocumentPosition(b):
1;return d&1||!w.sortDetached&&b.compareDocumentPosition(a)===d?a===c||a.ownerDocument===C&&S(C,a)?-1:b===c||b.ownerDocument===C&&S(C,b)?1:K?M.call(K,a)-M.call(K,b):0:d&4?-1:1}:function(a,b){if(a===b)return Q=!0,0;var d,f=0;d=a.parentNode;var e=b.parentNode,h=[a],g=[b];if(!d||!e)return a===c?-1:b===c?1:d?-1:e?1:K?M.call(K,a)-M.call(K,b):0;if(d===e)return l(a,b);for(d=a;d=d.parentNode;)h.unshift(d);for(d=b;d=d.parentNode;)g.unshift(d);for(;h[f]===g[f];)f++;return f?l(h[f],g[f]):h[f]===C?-1:g[f]===
C?1:0};return c};c.matches=function(a,b){return c(a,null,null,b)};c.matchesSelector=function(a,b){(a.ownerDocument||a)!==z&&I(a);b=b.replace(za,”=’$1′]”);if(w.matchesSelector&&E&&(!N||!N.test(b))&&(!A||!A.test(b)))try{var d=ba.call(a,b);if(d||w.disconnectedMatch||a.document&&11!==a.document.nodeType)return d}catch(f){}return 0″:{dir:”parentNode”,first:!0},” “:{dir:”parentNode”},”+”:{dir:”previousSibling”,first:!0},”~”:{dir:”previousSibling”}},preFilter:{ATTR:function(a){a[1]=a[1].replace(G,H);a[3]=(a[3]||a[4]||a[5]||””).replace(G,H);”~=”===
a[2]&&(a[3]=” “+a[3]+” “);return a.slice(0,4)},CHILD:function(a){a[1]=a[1].toLowerCase();”nth”===a[1].slice(0,3)?(a[3]||c.error(a[0]),a[4]=+(a[4]?a[5]+(a[6]||1):2*(“even”===a[3]||”odd”===a[3])),a[5]=+(a[7]+a[8]||”odd”===a[3])):a[3]&&c.error(a[0]);return a},PSEUDO:function(a){var c,b=!a[6]&&a[2];if(ca.CHILD.test(a[0]))return null;if(a[3])a[2]=a[4]||a[5]||””;else if(b&&Aa.test(b)&&(c=T(b,!0))&&(c=b.indexOf(“)”,b.length-c)-b.length))a[0]=a[0].slice(0,c),a[2]=b.slice(0,c);return a.slice(0,3)}},filter:{TAG:function(a){var c=
a.replace(G,H).toLowerCase();return”*”===a?function(){return!0}:function(a){return a.nodeName&&a.nodeName.toLowerCase()===c}},CLASS:function(a){var c=ka[a+” “];return c||(c=RegExp(“(^|[\\x20\\t\\r\\n\\f])”+a+”([\\x20\\t\\r\\n\\f]|$)”))&&ka(a,function(a){return c.test(“string”===typeof a.className&&a.className||typeof a.getAttribute!==O&&a.getAttribute(“class”)||””)})},ATTR:function(a,b,d){return function(f){f=c.attr(f,a);if(null==f)return”!=”===b;if(!b)return!0;f+=””;return”=”===b?f===d:”!=”===b?
f!==d:”^=”===b?d&&0===f.indexOf(d):”*=”===b?d&&-1<f.indexOf(d):"$="===b?d&&f.slice(-d.length)===d:"~="===b?-1<(" "+f+" ").indexOf(d):"|="===b?f===d||f.slice(0,d.length+1)===d+"-":!1}},CHILD:function(a,c,b,d,f){var e="nth"!==a.slice(0,3),h="last"!==a.slice(-4),g="of-type"===c;return 1===d&&0===f?function(a){return!!a.parentNode}:function(c,b,l){var p,r,u,n,t;b=e!==h?"nextSibling":"previousSibling";var y=c.parentNode,m=g&&c.nodeName.toLowerCase();l=!l&&!g;if(y){if(e){for(;b;){for(r=c;r=r[b];)if(g?r.nodeName.toLowerCase()===
m:1===r.nodeType)return!1;t=b="only"===a&&!t&&"nextSibling"}return!0}t=[h?y.firstChild:y.lastChild];if(h&&l){l=y[x]||(y[x]={});p=l[a]||[];n=p[0]===D&&p[1];u=p[0]===D&&p[2];for(r=n&&y.childNodes[n];r=++n&&r&&r[b]||(u=n=0)||t.pop();)if(1===r.nodeType&&++u&&r===c){l[a]=[D,n,u];break}}else if(l&&(p=(c[x]||(c[x]={}))[a])&&p[0]===D)u=p[1];else for(;r=++n&&r&&r[b]||(u=n=0)||t.pop();)if((g?r.nodeName.toLowerCase()===m:1===r.nodeType)&&++u)if(l&&((r[x]||(r[x]={}))[a]=[D,u]),r===c)break;u-=f;return u===d||
0===u%d&&0<=u/d}}},PSEUDO:function(a,b){var d,e=v.pseudos[a]||v.setFilters[a.toLowerCase()]||c.error("unsupported pseudo: "+a);return e[x]?e(b):1<e.length?(d=[a,a,"",b],v.setFilters.hasOwnProperty(a.toLowerCase())?f(function(a,c){for(var d,f=e(a,b),h=f.length;h–;)d=M.call(a,f[h]),a[d]=!(c[d]=f[h])}):function(a){return e(a,0,d)}):e}},pseudos:{not:f(function(a){var c=[],b=[],d=ea(a.replace(Y,"$1"));return d[x]?f(function(a,c,b,f){f=d(a,null,f,[]);for(var e=a.length;e–;)if(b=f[e])a[e]=!(c[e]=b)}):
function(a,f,e){c[0]=a;d(c,null,e,b);return!b.pop()}}),has:f(function(a){return function(b){return 0<c(a,b).length}}),contains:f(function(a){a=a.replace(G,H);return function(c){return-1a.nodeType)return!1;return!0},parent:function(a){return!v.pseudos.empty(a)},header:function(a){return Da.test(a.nodeName)},input:function(a){return Ca.test(a.nodeName)},button:function(a){var c=a.nodeName.toLowerCase();return”input”===c&&”button”===a.type||”button”===c},text:function(a){var c;return”input”===a.nodeName.toLowerCase()&&”text”===a.type&&(null==(c=a.getAttribute(“type”))||”text”===c.toLowerCase())},first:u(function(){return[0]}),
last:u(function(a,c){return[c-1]}),eq:u(function(a,c,b){return[0>b?b+c:b]}),even:u(function(a,c){for(var b=0;b<c;b+=2)a.push(b);return a}),odd:u(function(a,c){for(var b=1;bb?b+c:b;0b?b+c:b;++b<c;)a.push(b);return a})}};v.pseudos.nth=v.pseudos.eq;for(P in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})v.pseudos[P]=n(P);for(P in{submit:!0,reset:!0})v.pseudos[P]=r(P);t.prototype=v.filters=
v.pseudos;v.setFilters=new t;T=c.tokenize=function(a,b){var d,f,e,h,g,l,p;if(g=la[a+" "])return b?0:g.slice(0);g=a;l=[];for(p=v.preFilter;g;){if(!d||(f=xa.exec(g)))f&&(g=g.slice(f[0].length)||g),l.push(e=[]);d=!1;if(f=ya.exec(g))d=f.shift(),e.push({value:d,type:f[0].replace(Y," ")}),g=g.slice(d.length);for(h in v.filter)if((f=ca[h].exec(g))&&(!p[h]||(f=p[h](f))))d=f.shift(),e.push({value:d,type:h,matches:f}),g=g.slice(d.length);if(!d)break}return b?g.length:g?c.error(a):la(a,l).slice(0)};ea=c.compile=
function(a,c){var b,d=[],f=[],e=ma[a+" "];if(!e){c||(c=T(a));for(b=c.length;b–;)e=V(c[b]),e[x]?d.push(e):f.push(e);e=ma(a,ta(f,d));e.selector=a}return e};ha=c.select=function(a,c,b,d){var f,e,h,g,l="function"===typeof a&&a,p=!d&&T(a=l.selector||a);b=b||[];if(1===p.length){e=p[0]=p[0].slice(0);if(2<e.length&&"ID"===(h=e[0]).type&&w.getById&&9===c.nodeType&&E&&v.relative[e[1].type]){if(c=(v.find.ID(h.matches[0].replace(G,H),c)||[])[0])l&&(c=c.parentNode);else return b;a=a.slice(e.shift().value.length)}for(f=
ca.needsContext.test(a)?0:e.length;f–;){h=e[f];if(v.relative[g=h.type])break;if(g=v.find[g])if(d=g(h.matches[0].replace(G,H),da.test(e[0].type)&&m(c.parentNode)||c)){e.splice(f,1);a=d.length&&k(e);if(!a)return J.apply(b,d),b;break}}}(l||ea(a,p))(d,c,!E,b,da.test(a)&&m(c.parentNode)||c);return b};w.sortStable=x.split("").sort(fa).join("")===x;w.detectDuplicates=!!Q;I();w.sortDetached=e(function(a){return a.compareDocumentPosition(z.createElement("div"))&1});e(function(a){a.innerHTML="
“;
return”#”===a.firstChild.getAttribute(“href”)})||g(“type|href|height|width”,function(a,c,b){if(!b)return a.getAttribute(c,”type”===c.toLowerCase()?1:2)});(!w.attributes||!e(function(a){a.innerHTML=””;a.firstChild.setAttribute(“value”,””);return””===a.firstChild.getAttribute(“value”)}))&&g(“value”,function(a,c,b){if(!b&&”input”===a.nodeName.toLowerCase())return a.defaultValue});e(function(a){return null==a.getAttribute(“disabled”)})||g(“checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped”,
function(a,c,b){var d;if(!b)return!0===a[c]?c.toLowerCase():(d=a.getAttributeNode(c))&&d.specified?d.value:null});”function”===typeof s&&s.amd?s(function(){return c}):”undefined”!==typeof module&&module.exports?module.exports=c:a.Sizzle=c})(window);b.browser=function(){var a,c={},d=navigator.userAgent.toLowerCase().replace(/\s*[()]\s*/g,”; “).replace(/(\/[\w.]+)\s+/g,”$1; “).replace(/\;\s*$/,””).split(/;\s*/);b.each(d,function(b){a=(/[\/ :]([^\/ :]+)$/.exec(b)||[])[1];c[a?b.substr(0,b.length-a.length-
1).replace(/\d*$/,””):b]=a||!0});return{aol:c.aol,blackberry:c.blackberry,firefox:c.firefox,ie:Boolean(c.msie||c.trident),ios:Boolean(c.applewebkit&&c.mobile),opera:c.opera,playstation:c.playstation,version:parseFloat(c.version||c.crios||c.msie||c.rv||c.firefox)||!1}}();b.harmony={PASSIVE:1,UNSAFE_QUIRKSMODE_EVENTS:0.5,COMMERCIAL_LINK_EVENTS:0.1,LINK_EVENTS:-1,AGGRESSIVE:-1};b.harmony.DEFAULT=0;b.pii=function(){var a={email:/[A-Z0-9._%+-]+(?:%(?:25)*40|@)[A-Z0-9.-]+\.[A-Z]{2,4}/,numeric:/\d([^0-9A-Z]{0,4}\d){6,18}/},
c={contains:function(a,c){return this.regexp(c).test(a)},redact:function(a,c){return a.replace(this.regexp(c),”___”)},regexp:function(c){c=b.extend({},c);var f=b.map(b.all(a,function(a,b){return!1!==c[b]}),function(a){return a.source});return RegExp(“(\\b”+f.join(“\\b|\\b”)+”\\b)”,”gi”)},transmits:function(a,c){return this.contains(a+” “+document.referrer,c||{numeric:!1})}};return{contains:b.bind(c.contains,c),redact:b.bind(c.redact,c),transmits:b.bind(c.transmits,c)}}();b.platforms=function(){var a=
{NONE:{id:”full”,scope:”body”,spec:{selector:”body”}},bbp:{spec:{parser:/^post-(\d+)$/,selector:”div[id^=’post-‘]”},scope:”li .post”},hdlr:{spec:{parser:/^post_(\d+)$/,selector:”div[id^=’post_’]”},scope:”.post-content-area”},ipb:{spec:{parser:/^post_id_(\d+)$/,selector:”div[id^=’post_id_’]”},scope:”.post_body .post”},phpb:{spec:{parser:/^p(\d+)$/,selector:”div.post[id^=’p’]”},scope:”.postbody .content,.postbody .signature”},ubb:{spec:{parser:/^number(\d+)$/,parse_el:”span[id^=number]”,selector:”a[name^=’Post’] ~ table”},
scope:”.post_inner *[id^=’body’],.post_inner .signature”},vb3:{spec:{parser:/^post_message_(\d+)$/,selector:”div[id^=’post_message_’], table[id^=’post_message_’],section[id^=’post_message_’]”},scope:”div[id^=’post_message_’],div[id^=’post_message_’] ~ div:not([class])”},vb4:{spec:{parser:/^post_(\d+)$/,selector:”li[id^=’post_’]”},scope:”.post-content,.postbody .content,.postbody .signature,ul.conversation-list .list-item-body”},wppr:{spec:{attributes:[“id”,”className”],parser:/(?:^|\s)post-(\d+)(?:\s|$)/,
selector:”article[class*=’post-‘], div[id^=’post-‘]”}}},c={getPostId:function(a){var c,e;if(this===b.platforms.NONE)return” “;e=this.spec.parse_el?b.select(this.spec.parse_el,a)[0]:a;b.find(this.spec.attributes||[“id”],b.bind(function(a){c=e[a]?e[a].match(this.spec.parser):null;return Boolean(c)},this));if(c)return c[1]},getPostIds:function(a){var c=[];b.each(this.getPosts(a),b.bind(function(a){(a=this.getPostId(a))&&!b.contains(c,a)&&c.push(a)},this));return c.length?c:null},getPosts:function(a){var c=
[];!a&&(document&&document.body)&&(a=[document.body]);a&&this.spec&&(c=b.withScope(a,this.spec.selector,{consolidate:!0}));return c}};b.each(a,function(d,f){d.id=d.id||f;b.each(c,function(a,c){d[c]=b.bind(a,d)});a[f]=d});a.DEFAULT_POST_ID=” “;a.findById=function(a){return b.find(b.platforms,function(c){return c.id===a})};return a}();b.observer=function(){var a,c=[],d=0,f=function(){a||(a=new MutationObserver(b.entryPoint(function(a){var d=[];b.each(a,function(a){var c=[];”characterData”===a.type?
a.target&&(c=[a.target]):”attributes”===a.type?c=[a.target]:a.addedNodes&&a.addedNodes.length&&(c=b.toArray(a.addedNodes));c.length&&(d=d.concat(c))});0<d.length&&b.each(c,function(a){a.callback(d)})})))},e=function(c){var e={attributes:!1,characterData:!1,childList:!1,subtree:!0};d||(f(),c.opts.attributes&&(e=b.extend(e,{attributes:!0}),"array"===b.type(c.opts.attributes)&&(e=b.extend(e,{attributeFilter:c.opts.attributes}))),c.opts.content&&(e=b.extend(e,{characterData:!0,childList:!0})),a.observe(c.context,
e))};return{start:function(a,d,f){a.document&&(a=a.document);d=b.extend({attributes:!1,content:!0},d);b.traits.mutation&&b.contains(["document","element"],b.type(a))&&(a={callback:f,context:a,opts:d},c.push(a),e(a))},pause:function(){d++;a&&a.disconnect()},resume:function(){d–;b.each(c,e)}}}();b.traits={basicCompatibility:!(b.browser.blackberry||b.browser.playstation),cors:window.XMLHttpRequest&&void 0!==(new window.XMLHttpRequest).withCredentials,crossWindowCommunication:!b.browser.ios,fastRegexp:!b.browser.firefox,
json:Boolean(window.JSON)&&Boolean(window.JSON.stringify)&&Boolean(window.JSON.parse),jsRedirectSetsReferrer:b.browser.aol||!(b.browser.ie||b.browser.opera),mutation:window.MutationObserver&&!b.browser.ie,performanceTiming:Boolean(window.performance&&window.performance.timing),referrerPolicy:!b.browser.ie,quirksMode:!Boolean(window.addEventListener),windowLevelHandlers:Boolean(window.addEventListener)};var g,m,n,q;e={EVENT_LEVEL_LINK:1,EVENT_LEVEL_TOP:2,PLUGIN_MANUAL:1,TYPE_ACCEPTABLE:"l",allowed:b.generateNodeFilter({classes:["norewrite"],
rels:["norewrite"],tags:"applet embed object head img input link meta param select button iframe option script style svg textarea title".split(" ")}),api:function(){var a,c,d,f=function(){var a={optimize:"content",domains:"content"};return function(c,d,f){var e=b.toArray(arguments).slice(3,arguments.length),h=a[c];Boolean(h)&&(f=b.extend({},f,{json_payload:h}));var h=c,l=p(f),n;n=b.extend(b.commonParams(c,g),d);n.subId&&n.key!==g.key&&(n.subId=null);return{data:e,method:h,opts:l,params:n}}}(),e=function(a){var c=
{},d={};b.each(a,function(a){var f=a[0],e=a[1],h=a[2]||{};a=b.toArray(a).slice(3,a.length);d[f]=b.mergeParams(d[f]||b.commonParams(f,g),e);c[f]=c[f]||[];c[f].push({data:a,opts:p(h)})});return{calls:c,params:d}},p=function(a){a=a||{};"function"===b.type(a.fn)&&(a.fn=function(c){return function(d){var f,e=d.response?d.response[0]:null;"object"===b.type(e)&&("array"===b.type(e.crawl)&&"object"===b.type(q.crawler)&&"function"===b.type(q.crawler.crawl))&&(f=b.map(e.crawl,function(a){return a+""}),delete e.crawl,
q.crawler.crawl(f));return c.apply(a,arguments)}}(a.fn));return a},l=function(a){var c=a.opts.base_url||g.api_url,d=a.opts.path||"/"+a.method;delete a.opts.base_url;return b.request.apply(b,[c+d,a.params,a.opts].concat(a.data))},n=function(a,c,d){b.each(c,function(c){c&&(c.opts&&c.opts.fn&&a)&&c.opts.fn({response:b.packageArgs(a),data:c.data,args:d})})};a=function(){var a=function(a){var c=a.data[0].params,d=a.data[0].calls;a=b.fromJSON(a.response[0])||{};b.each(a,function(a,f){var e=c[f],h=d[f],
g;if("string"===b.type(a)&&(g=a.match(/^[^(]+\((.*)\);?\s*$/)))a=b.fromJSON(g[1]);n(a,h,e)})};return function(c){c=e(c,!0);l({data:c,method:"batch",params:b.extend(b.commonParams("batch",g),c.params),opts:{json_payload:"batch",jsonp:!1,fn:b.bind(a,window)}})}}();c=function(a,c,d){var g=e(a,!1);a=b.reduce({},g.calls[d],function(a,c){return{jsonp:a.jsonp||!c.opts||!1!==c.opts.jsonp,ssl:a.ssl||!c.opts||!1!==c.opts.ssl}});return l(f(c,g.params[c],{fn:function(a){n(a.response[0],g.calls[c],g.params[c])},
jsonp:a.jsonp,ssl:a.ssl},g))};d=function(){return l(f.apply(this,arguments))};return b.batchable(function(){var f,e;return b.batched(arguments)?(f=b.batchArgs(arguments),e=b.batchCallType(f),"batch"===e?a.call(this,f):c.call(this,f,e)):d.apply(this,arguments)},function(){return{batch:g.batch_calls,timeout:g.batch_call_timeout}})}(),addEventListener:function(a,c){this.fire(a,c)},click:function(){var a=function(a,c){if("_self"===c)return a;if(b.traits.crossWindowCommunication&&b.traits.jsRedirectSetsReferrer){var e=
a.open("",c);e.focus();return e}},c=function(a){var c=a.previousSibling,h=a.nextSibling,g=["",a.textContent,""],l=function(a,c){for(var b=a,d=b.data;(b=b[c+"Sibling"])&&3===b.nodeType;)d+=b.data;return d},n=function(a,c,b){a=a.replace(/\s+/g," ");c=c.replace(/\s+/g," ");b=b.replace(/\s+/g," ");a=a.replace(/^\s+/,"");" "===c.substr(0,1)&&(c=c.substr(1),a+=" "!==a.substr(a.length-1,1)?" ":"");" "===c.substr(c.length-1,1)&&(c=c.substr(0,c.length-1),b=(" "!==b.substr(0,1)?" ":"")+b);b=b.replace(/\s+$/,
"");return[a,c,b]};void 0!==g[1]&&(g[0]=c&&3===c.nodeType?l(c,"previous"):"",g[2]=h&&3===h.nodeType?l(h,"next"):"",g=n.apply(this,g),""!==g[0]&&""!==g[2]&&(g[0]=g[0].split(" ").reverse().slice(0,10+(" "===g[0].substr(g[0].length-1,1)?1:0)).reverse().join(" "),g[2]=g[2].split(" ").slice(0,10).join(" "),a={type:"context",itype:(b.cache(a,"params")||{}).type,before:g[0],after:g[2],txt:g[1],loc:location.href,out:b.getActualHref(a),v:2},e.log("info",b.toQuery(a))))};return function(d,f){var e,p,l,n,r=
{},m=b.context(d)||window;f=d.target||f;f=!f||f===m.name||"_top"===f&&m.top===m||"_parent"===f&&m.parent===m?"_self":f;l=a(m,f);if("_self"!==f&&(!b.traits.crossWindowCommunication||!b.traits.jsRedirectSetsReferrer))n="go";else try{if(void 0===l.document)throw!0;n="jsonp"}catch(k){n="go"}e=b.destructing(b.apiCallback(function(){g.time_api&&this.logEvent.stop("clk");var a=b.toArray(arguments);a.unshift(d,l,f);this.onApiClick.apply(this,a)},this));b.cache(this,"link","string"===typeof d?d:b.getActualHref(d));
if("string"===typeof d&&(d=b.createA(d,f),!this.processLink(d))||!g.enabled)return e();!b.traits.referrerPolicy&&this.isPrivate(d)&&(n="go");p=this.clickParams(d,n);g.time_api&&this.logEvent.start("clk");g.log_context&&c(d);if("go"===n)p=this.redirectUrl(p,r),this.redirect(p,m,l,f);else if(l===m)this.api.now("click",p,b.extend(r,{fn:e,timeout:g.click_timeout}));else{if(b.contextIsAncestor(m,l))return this.redirect(b.getActualHref(d),m,l,f);e=b.entryPoint(e);setTimeout(function(){e()},g.click_timeout);
l.document.open();l.callback=e;l.document.write("”+b.getActualHref(d)+’\x3c/script>’);l.document.close()}}}(),clickParams:function(a,c){var d=b.extend(b.cache(a,”params”),{format:c,out:b.getActualHref(a),ref:window.document.referrer||null,reaf:g.reaffiliate||null,title:window.document.title,txt:a.innerHTML,loAsUuid:b.cache(a,”uuid”)||null,rewrit:b.cache(a,
“rewrit”)});128<d.txt.length&&(d.txt=d.txt.replace(/]+>/g,””),d.txt=128<d.txt.length?d.txt.substr(0,125)+"…":d.txt);return d},detectFiltering:function(){var a;try{a={},a=new function(){this.detect=function(a,c){function b(a,c){0==n||1E3<c?a(0==n&&g):setTimeout(function(){b(a,2*c)},2*c)}function e(){–n||(g=!m&&k)}var g=!1,n=2,m=!1,k=!1;if("function"==typeof c){a+="?ch=*&rn=*";var q=11*Math.random(),t=new Image;t.onload=e;t.onerror=function(){m=!0;e()};t.src=a.replace(/\*/,1).replace(/\*/,q);
t=new Image;t.onload=e;t.onerror=function(){k=!0;e()};t.src=a.replace(/\*/,2).replace(/\*/,q);b(c,250)}}}}catch(c){a={detect:function(a,c){c(!0)}}}return function(c){var e=b.updateUrl(g.asset_url,{pathname:"/images/pixel.gif"});a.detect(e,c)}}(),enabled:function(){if(g.enabled&&n!==window&&window.vglnk&&(window.vglnk.key||"function"===typeof window.vglnk))g.enabled=!1;return g.enabled},expose:function(){return function(a,c){if((c=c||this[a])&&!q[a]){var d=q,f;f=c;f="function"===b.type(f)?b.entryPoint(b.bind(f,
e)):f;d[a]=f}}}(),fire:function(){var a={};return function(c,d){c=c.toLowerCase();var e=a[c]||{fired:!1,listeners:[]};"function"===typeof d?e.fired?setTimeout(function(){d({type:c})},0):e.listeners.push(d):(e.fired=!0,b.each(e.listeners,function(a){"function"===typeof a&&a({type:c})}),e.listeners=[]);a[c]=e}}(),handleRightClick:function(a,c){if(g.rewrite_modified&&a&&c)switch(c){case "setup":b.cache(a,"href")||b.cache(a,"href",a.href);a.href=this.redirectUrl(this.clickParams(a,"go"));setTimeout(b.entryPoint(b.bind(function(){this.handleRightClick(a,
"teardown")},this)),0);break;case "teardown":b.cache(a,"href")&&(a.href=b.cache(a,"href"))}},harmony:function(a){return g.harmony_level<=a},init:function(){var a=function(){var a=!0===window.document.__v5k;window.document.__v5k=!0;return!a};return function(){var c=this;m={};if(a()){try{c.initLibEvents(),c.initNamespace(),c.initOptions()}catch(d){}b.exceptionLogger(b.bind(c.logException,c),!g.dev);b.each(g.script_timeout);return b.entryPoint(function(){c.initProcessors();c.initDRApi();c.initApi();
c.enabled()&&(c.initLegacyCallbacks(),c.ping())})()}}}(),initApi:function(){var a,c={};if(window.vglnk)for(a in window.vglnk)"_plugin"===a.substr(-7)&&(c[a]=window.vglnk[a]);q=n[k]=b.noop;this.expose("click");this.expose("link",b.bind(function(a){"element"===b.type(a)&&a.href&&(this.initContext(b.context(a)),this.processLink(a))},this));this.expose("open",b.bind(this.click,this));this.expose("$",b.clone(b));this.expose("api");this.expose("apiNow",b.bind(this.api.now,this.api));this.expose("harmony");
this.expose("isCommercial");this.expose("isBlacklisted");this.expose("opt");this.expose("platform");this.expose("registerProcessor",function(){if(0<arguments.length)return e.registerProcessor.apply(e,arguments)});this.expose("sendLinks");b.extend(q,q===window.vglnk?c:{})},initContext:function(){var a=[];return function(c){if(void 0===c)return a;c&&!b.contains(a,c)&&(a.push(c),this.initLinks(c),this.initEvents(c))}}(),initDomObserver:function(a,c){b.observer.start(a,c,b.batchable(function(a){b.batched(arguments)&&
(a=b.reduce([],b.batchArgs(arguments,0),function(a,c){return a.concat(c)}));a=b.all(b.unique(a),function(a){return Boolean(a.parentNode)&&e.allowed(a)});0<a.length&&(b.each(b.withScope(a,"a[href]",{ancestors:!1}),function(a){e.processLinks(a[1])}),b.each(m,function(c,b){c.opts.mode!==e.PLUGIN_MANUAL&&e.runPlugin(b,a)}))},function(){return{batch:g.batch_mutation,timeout:g.batch_mutation_timeout}}))},initDRApi:function(){var a=!1;window.DrivingRevenue=b.entryPoint(b.destructing(b.bind(function(){a=
!0;g.dr_key=window.DR_id;this.enabled()&&this.ping()},this)));b.on("DOMReady",function(){if(!a)try{delete window.DrivingRevenue}catch(c){window.DrivingRevenue=void 0}})},initEvents:function(a){var c=b.traits.windowLevelHandlers?a:a.document,d=function(c){c=c||a.event;if((c=b.eventLink(c))&&!b.cache(c,"evented"))h(e.EVENT_LEVEL_LINK,c),b.cache(c,"evented",!0)},f=function(a,c){return function(){var d=[a].concat(b.toArray(arguments));c.apply(e,d)}},h=function(a,c){b.on(c,"click",f(a,e.onClick));b.on(c,
"contextmenu",f(a,e.onContextmenu))};if(g.dynamic)b.on("DOMReady",function(){e.initDomObserver(a);g.dynamic_scope&&b.each(b.select(g.dynamic_scope,a.document),function(a){e.initDomObserver(a,{attributes:["class","id","style"],content:!1})})});b.on(c,"copy",b.bind(e.onCopy,e));b.on(c,"mousedown",d);b.on("DOMReady",function(){b.each(a.document.links,function(a){b.on(a,"mousedown",d)})});(!b.traits.quirksMode||e.harmony(b.harmony.UNSAFE_QUIRKSMODE_EVENTS))&&h(e.EVENT_LEVEL_TOP,c)},initLegacyOptions:function(){var a,
c={DR_id:"dr_key",vglnk_api_key:"key",vglnk_cuid:"cuid",vglnk_domain:"api_url",vglnk_reaf:"reaffiliate",vglnk_subid:"sub_id"};for(a in c)void 0!==window[a]&&(q[c[a]]=window[a],"vglnk_domain"===a&&(q[c[a]]+="/api"))},initLegacyCallbacks:function(){var a,c={vl_cB:b.bind(this.onApiClick,this),vl_disable:function(){g.enabled=!1}};for(a in c)window[a]=c[a]},initLibEvents:function(){b.on(e);b.ready(b.bind(function(){this.fire("DOMReady")},this))},initLinks:function(a){var c=b.bind(function(a){this.processLinks(b.toArray(a.document.links))},
this);void 0===a?b.each(this.initContext(),c):c(a)},initNamespace:function(){window.vglnk&&window.vglnk.key&&(k="vglnk");var a=window,c=k.split("."),b;for(k=c.pop();0 .gallerydata,section.gallery:first-child ~ .gallerydata”,g.declare_handler=!0)})();m=b.extend(g.plugins,h.plugins);g=b.extend(g,h);delete g.plugins;g.click_timeout=c;g.library_id=a;h.time&&(g.time_api=g.time_load=h.time);g.time_api&&this.logEvent.stop(“png”);g.time_load&&this.logEvent.load();”array”===b.type(g.testing_js)&&0<g.testing_js.length&&b.each(g.testing_js,function(a){b.jsonp(a)});b.extend(g.nofollow,f(n));b.extend(g.norewrite,f(d));for(l in g)"on"===
l.toLowerCase().substr(0,2)&&(2<l.length&&"function"===b.type(g[l]))&&(b.on(e,l.toLowerCase().substr(2),b.bind(g[l],window)),delete g[l]);this.initPlugins(m);this.initContext(window);this.fire("libready")},onClick:function(a,c){c=c||window.event;var d=c.ctrlKey||c.metaKey||c.altKey||c.shiftKey,e=c.which&&1===c.which||0===c.button,g=b.eventLink(c);if(g&&e&&!d&&!b.isDefaultPrevented(c)&&this.isRewritable(g)&&this.shouldHandleClick(a,g))return this.click(g),b.preventDefault(c)},onContextmenu:function(a,
c){var d=b.eventLink(c||window.event);d&&(this.isRewritable(d)&&this.shouldHandleClick(a,d))&&this.handleRightClick(d,"setup")},onCopy:function(a){var c,d,f,g=[];if(window.getSelection){d=window.getSelection();a=0;for(c=d.rangeCount;a<c;a++){try{f=d.getRangeAt(a).toString().replace(/((^)\s+|\s+$|\r)/g,"").replace(/\s*\n\s*/g,"\n")}catch(n){}0=f.length&&g.push(f)}}b.each(g,function(a){e.log(“info”,b.toQuery({type:”selection”,txt:a,loc:location.href}))})},opt:function(a,c){void 0!==c&&
void 0!==this.publicOptions()[a]&&(g[a]=c);return g[a]},ping:function(){var a=!1;return function(){if(!a&&(g.key||g.dr_key)){var c={ref:document.referrer||null};a=!0;b.pii.transmits(this.api.now(“ping”,c,{“return”:!0}))||(this.logEvent.start(“png”),this.detectFiltering(b.bind(function(a){a&&(g.batch_calls=!1,c.type=this.TYPE_ACCEPTABLE);this.api.now(“ping”,c,{fn:b.apiCallback(this.onApiPing,this)})},this)))}}}(),platform:function(){return b.platforms.findById(g.platform)||b.platforms.NONE},processLink:function(a){var c=
b.cache(a,”processors”)||{},d=this.isRewritable(a);b.each(this.registerProcessor(),function(b){!c[b.id]&&(d||b.opts.any)&&b.fn(a);c[b.id]=!0});b.cache(a,”processors”,c);return a},processLinks:function(a){b.each(a,b.bind(this.processLink,this))},publicOptions:function(){var a={};return function(c){“object”===b.type(c)&&(a=c);return b.extend({},a)}}(),redirect:function(a,c,d,f){var g=function(a,c,d){var f=[],g;if(b.traits.referrerPolicy){g=function(a){var b=c.document.createElement(“meta”);b.name=”referrer”;
b.content=a;c.document.getElementsByTagName(“head”)[0].appendChild(b)};e.isPrivate(a)&&(f=[g(“no-referrer”),g(“never”)]);d();try{b.each(f,function(a){a.parentNode.removeChild(a)})}catch(h){}}else d()};c=c||window.top;!b.traits.crossWindowCommunication&&!d?(f=c.open(a,f),f.focus()):b.traits.jsRedirectSetsReferrer?setTimeout(b.entryPoint(function(){!d||d===c?g(a,c,function(){c.location=a}):b.contextIsAncestor(c,d)?d.location=a:d.location.replace(a)}),0):(“_blank”===f&&(f=b.uniqid(“win_”)),f=b.createA(a,
f),f.rel=”norewrite”,c.document.body.appendChild(f),f.click(),f.parentNode.removeChild(f))},redirectUrl:function(a,c){c=c||{};return this.api.now(“click”,a,b.extend(c,{base_url:g.anywhere_url,path:”/”},{“return”:!0}))},runPlugin:function(a,c){var d=window.document,e=m[a];if(e&&e.initDocuments){if(c)e.initNodes(c);else if(e.init(),”function”===b.type(e.initDocuments)&&”document”===b.type(d)&&e.initDocuments([d]),”function”===b.type(e.initNodes)&&”element”===b.type(d.body))b.on(“DOMReady”,function(){e.initNodes([d.body])});
e._ran=!0}},registerProcessor:function(){var a=!1,c=[],d=function(d,e){if(void 0===d)return c;”function”===b.type(d)&&(e=b.extend({any:!1},e),c.push({fn:d,id:b.uniqid(),opts:e}),a&&this.initLinks())};d(function(){a=!0});return d}(),sendLinks:b.mergeable(function(){return{batchFn:e.api,nonBatchFn:e.api.now,batchable:g.batch_links,timeout:g.links_merge_timeout}}),shouldHandleClick:function(a,c){var d=!0,e=”inserted”===b.cache(c,”type”);a===this.EVENT_LEVEL_LINK&&(d=this.harmony(b.harmony.LINK_EVENTS)||
(this.isCommercial(c)||e)&&this.harmony(b.harmony.COMMERCIAL_LINK_EVENTS));return d}};e.init();try{delete window.vglnk_self}catch(B){}})(“undefined”===typeof vglnk_self?”vglnk”:vglnk_self);window.vglnk=window.vglnk||{};
window.vglnk.convert_plugin=function(k,e,b){var s={},g,m;k=e.extend({any:!0,convert_minimum_bid:!1,check_exp_domains:!0},k);m={getDomains:function(){var g=[];e.each(s,function(b,e){2!==s[e]&&(g.push(e),s[e]=2)});0<g.length&&b.apiNow("domains",{domains:g.join("|"),v:"2"},{fn:e.apiCallback(m.onDomainApi,m)})},init:function(){b.opt("link_target",k.link_target);b.opt("rewrite_any",k.any);b.opt("rewrite_original",!0);(g=!k.any||b.harmony(e.harmony.COMMERCIAL_LINK_EVENTS)||k.convert_minimum_bid||k.check_exp_domains)&&
b.registerProcessor(e.bind(function(b){this.initDomainLookup();this.saveDomain(b)},this),{any:!0})},initDomainLookup:function(){var b=!1;return function(){b||(b=!0,e.on("DOMReady",e.bind(this.getDomains,this)))}}(),onDomainApi:function(){var g=e.destructing(function(){b.registerProcessor(function(g){b.opt("declare_handler")&&e.attributes(g,{"data-hl":"viglink"})});b.registerProcessor(e.bind(function(b){m.unlinkBlacklisted(b)},this),{any:!0})});return function(m){var k=b.opt("blacklist_domains")||
{},a=b.opt("commercial_domains")||{};e.each(m.results,function(c,b){a[b]=!0;c.unlink&&(k[b]=!0)});b.opt("commercial_domains",a);b.opt("blacklist_domains",k);g()}}(),saveDomain:function(b){b=e.canonicalizeHostname(b);s[b]=s[b]||1},unlinkBlacklisted:function(g){b.isBlacklisted(g)&&e.unlink(g)}};return{init:e.bind(m.init,m),initNodes:function(){m.getDomains()}}};window.vglnk=window.vglnk||{};
window.vglnk.crawler_plugin=function(k,e,b){var s=[],g=b.platform();k={crawl:function(b){if(g&&!("array"!==e.type(b)||0===b.length))b=e.all(b,function(b){return!e.contains(s,b)}),b=this.findPostsById(b),e.each(b,e.bind(function(b){b.content=this.redact(b.el.innerHTML.replace(/(^\s+|\s+$)/g,""));delete b.el},this)),b=e.all(b,function(b){return Boolean(b.content&&b.id)}),0<b.length&&this.processPosts(b)},findPostsById:function(b){return e.all(e.map(g.getPosts(),function(b){return{el:b,id:g.getPostId(b)}}),
function(g){return e.contains(b,g.id)})},processPosts:function(k){k=e.map(k,function(b){s.push(b.id);return{c:b.content,i:b.id}});b.api("content",{content:e.toJSON({ct:k,pt:g.id,u:location.href})},{jsonp:!1})},redact:function(b){return e.pii.redact(b)}};return{"public":{crawl:e.bind(k.crawl,k)}}};window.vglnk=window.vglnk||{};window.vglnk.modified_clicks_plugin=function(k,e,b){return{init:function(){b.opt("rewrite_modified",!0)}}};window.vglnk=window.vglnk||{};
window.vglnk.privacy_plugin=function(k,e,b){return{init:function(){k.domains&&b.opt("private_domains",k.domains)}}};window.vglnk=window.vglnk||{};
window.vglnk.dr_search_box_plugin=function(k,e,b){k=e.extend({key:null},k);var s={init:function(b){e.each(this.getDRSearchForms(b),function(b){if(!e.cache(b,"evented")){var g=s.getInput(b),k=function(){g.value||e.css(g,{"background-image":"url(http://cdn.viglink.com/images/ebay_watermark.gif)"})};e.cache(b,"evented",!0);b.onsubmit=null;g.onfocus=null;g.onblur=null;e.on(g,"focus",function(){e.css(g,{"background-image":"none"})});e.on(g,"blur",k);k();e.on(b,"submit",function(e){s.onSubmit(e,b)})}})},
getDRSearchForms:function(b){var k=[];e.each(b,function(b){"element"===e.type(b)&&e.each(b.getElementsByTagName("form"),function(b){s.getInput(b)&&b.id.match(/^DR-ebay-search(CSS|2)?$/i)&&k.push(b)})});return k},getInput:function(b){return b.p||b.q2},onSubmit:function(g,m){g=g||window.event;var n="http://shop.ebay.com/i.html?"+e.toQuery({_nkw:s.getInput(m).value}),n=e.createA(n,"_blank");e.cache(n,"params",{key:k.key});b.click(n);return e.preventDefault(g)}};if(k.key)return{init:e.bind(s.init,s),
initNodes:function(b){s.init(b)}}};window.vglnk=window.vglnk||{};window.vglnk.harmony_plugin=function(k,e,b){k=e.extend({level:e.harmony.DEFAULT},k);return{init:function(){var e=parseFloat(k.level,10);isFinite(e)&&b.opt("harmony_level",e)}}};window.vglnk=window.vglnk||{};
window.vglnk.optimize_plugin=function(k,e,b,s){var g,m={uuid:"uuid",index:"idx",optimized_url:"url",aliases:"aka"};k=e.extend({scope:"body"},k);g={cache:function(){var b={},e={};return{links:{get:function(e){return b[e]},set:function(e,a){var c={};c[m.optimized_url]=a[m.optimized_url];c[m.uuid]=a[m.uuid];c[m.aliases]=a[m.aliases];b[e]=c}},stats:{increment:function(b,a){e[b]||(e[b]={});if(a)if("rep"===a)e[b].rep=(e[b].rep||0)+1;else{var c;c=e[b].ex=e[b].ex||{};c[a]=(c[a]||0)+1}else e[b].n=(e[b][m.insertion_count]||
0)+1},getAndReset:function(){var b=e;e={};return b}}}}(),filterLinkNodes:function(){var b={sameDomainOrInternal:function(){var b=window.location.hostname;return function(a){return b===a.hostname}}()},k=function(g){return e.all(g,function(a){return e.every(b,function(c){return!c(a)})})};return function(b){var a={needs_optimization:[],needs_call:[]};e.each(k(b),function(c){var b=g.cache.links.get(c.href);b&&b[m.uuid]&&e.cache(c,"uuid",b[m.uuid]);b&&b[m.optimized_url]?a.needs_optimization.push(c):b&&
"false"===b[m.optimized_url]||a.needs_call.push(c)});return a}}(),generateAliases:function(b){var k=[],s=g.cache.links.get(b.href),k=k.concat(s[m.aliases]||[]);k.push(e.canonicalizeHostname(b.href));k.push(e.canonicalizeHostname(s[m.optimized_url]));return e.unique(k)},getLinks:function(k){b.opt("time_api")&&s.event.start("opt");b.sendLinks("optimize",{links:e.unique(e.map(k,function(b){return b.href})),mode:["O"],u:location.href,ver:b.opt("links_version")},{fn:e.bind(g.onOptimizeApi,g)},k)},log:e.batchable(function(){var b=
{stats:e.toJSON(g.cache.stats.getAndReset())};4a.length?!1:RegExp(“^”+e.map(a,e.escapeRegExp).join(“.+”)+”$”).test(c)},m=function(){var c=e.canonicalizeHostname(a);return e.canonicalizeHostname(e.createEl(“a”,{href:d}))===c},r=function(){var c;return m()?(c=e.fromQuery(a.search),e.find(c,function(a){return a===d})):!1};return{full_replace:Boolean(f&&(c===d||b(c)===d||l()||r())),exclude:Boolean(f&&k()),partial_replace:Boolean(f&&(-1!==d.indexOf(c)||-1!==d.indexOf(b(c))))}};return function(a){var c,
d=g.cache.links.get(a.href),f=d[m.optimized_url];c=s(a);if(f&&!k.observer){if(c.full_replace)q(a,f),g.cache.stats.increment(d[m.uuid],”rep”);else{if(c.exclude){g.cache.stats.increment(d[m.uuid],”a”);return}c.partial_replace&&(c=”undefined”!==e.type(a.textContent)?a.textContent:a.innerText,c=-1!==c.indexOf(a.href)?c.replace(a.href,f):c.replace(b(a.href),f),q(a,c),g.cache.stats.increment(d[m.uuid],”rep”))}f=-1===f.indexOf(“http://&#8221;)?”http://”+f:f;a.href=f}g.cache.stats.increment(d[m.uuid]);e.cache(a,
“rewrit”,!0)}}(),runExclusionFilters:function(){var b=e.generateNodeFilter({classes:[“nooptimize”,”norewrite”],rels:[“nooptimize”,”norewrite”,”noskim”],custom:function(a,c){if(c)return Boolean(e.cache(a,”type”))}}),k=function(a){var c=g.generateAliases(a),b=e.context(a).document.title;return e.every(c,function(a){return-1===b.indexOf(a)})},s=function(){var a=function(a,c){var b=e.reduce([],[“prev_tokens”,”next_tokens”],function(c,b){a[b]&&a[b].length&&(c=c.concat(a[b]));return c}).join(” “).toLowerCase();
return e.some(c,function(a){return-1!==b.indexOf(a.toLowerCase())})},c=function(){var a=function(a){a=”undefined”!==e.type(a.textContent)?a.textContent:a.innerText;return e.all(a.split(/\s+/g),function(a){return””!==a})};return function(c){for(var b={prev_tokens:[],next_tokens:[]};c&&c!==document.body.parentNode;){for(var g=b,l=c.previousSibling,k=c.nextSibling;l||k;)l&&(e.nodesOfType([l],1,3).length&&”SCRIPT”!==l.tagName)&&(g.prev_tokens=g.prev_tokens.concat(a(l).reverse())),l=!l?!1:l.previousSibling,
k&&(e.nodesOfType([k],1,3).length&&”SCRIPT”!==k.tagName)&&(g.next_tokens=g.next_tokens.concat(a(k))),k=!k?!1:k.nextSibling;if(20<b.prev_tokens.length+b.next_tokens.length+0)break;c=c.parentNode}return b}}();return function(b){var e=g.generateAliases(b);b=c(b);80<b.prev_tokens.length+b.next_tokens.length+0&&(b.prev_tokens=b.prev_tokens.slice(0,40),b.next_tokens=b.next_tokens.slice(0,40));b.prev_tokens=b.prev_tokens.reverse();return!a(b,e)}}();return function(a){return e.all(a,function(a){var d=g.cache.links.get(a.href)[m.uuid];
if(b(a))if(s(a)){if(!k(a))return g.cache.stats.increment(d,"t"),!1}else return g.cache.stats.increment(d,"p"),!1;else return g.cache.stats.increment(d,"n"),!1;return!0})}}()};return{initNodes:function(b){var m;b=e.nodesOfType(b,1);b=e.links(b,k.scope);b=g.filterLinkNodes(b);(m=b.needs_optimization)&&m.length&&g.optimizeLinks(m);(b=b.needs_call)&&b.length&&g.getLinks(b)}}};window.vglnk=window.vglnk||{};
window.vglnk.insert_plugin=function(k,e,b,s){var g,m,n,q,B=null,a=null;k=e.extend({cat:null,dynamic_sample_rate:1,key:null,link_phrases:!0,link_target:null,link_urls:!0,manual_mode:1===k.mode,per_page:null,per_phrase:5,proximity:null,same_proximity:100,scope:null,ui:!0},k);if(k.key)return g=b.platform(),m={cache:function(){var a={},b={},f=function(f,g){var h={};e.isArray(g)&&0<g.length&&e.find(g,function(a){var c=b;if(c[a]){if(f)return h[f]=c[a][f],!0;e.each(c[a],function(a,c){h[c]||(h[c]=a)})}});
h=e.extend(e.clone(a),h);return f?h[f]:h},g=function(f,g,h){(h=e.isArray(h)&&0=d.length)return f(a,b);if(2===d.length)return g(a,c,b)};k.manual_mode&&e.extend(m,{reset:function(){a={};b={}}});return m}(),enabled:function(){return k.link_phrases||
k.link_urls},focusLink:function(a){a.id||(a.id=e.uniqid(“vl-link-“));location.href.hash=”#”+a.id;window.scrollBy(0,-150)},getPartnerParams:function(){var a,d,e=b.opt(“partner”),g={};for(a in e)break;if(a)for(d in e[a])g[a+”_”+d]=e[a][d];return g},getPhrases:function(a,d){b.opt(“time_api”)&&s.event.start(“ins”);b.api(“insert”,e.extend(m.getPartnerParams(),{cat:k.cat,i:d?d.join(“|”):null,mode:k.mode,pt:g.id,ps:k.product_source,u:location.href}),{fn:e.apiCallback(m.onInsertApi,m)},a,d)},hasCalled:function(){var a=
{},b=Math.random()<k.dynamic_sample_rate,f=function(a){return b&&e.isArray(a)?e.map(a,function(a){return f(a)}):b&&a===e.platforms.DEFAULT_POST_ID?location.href:a},g=function(b){b=f(b);return e.isArray(b)&&b.length?Boolean(e.all(b,function(b){return a[b]}).length===b.length):Boolean(a[e.platforms.DEFAULT_POST_ID])},m=function(b){b=f(b);e.isArray(b)&&b.length?e.each(b,function(b){a[b]=!0}):a[e.platforms.DEFAULT_POST_ID]=!0};return function(a,b){return b?m(a):g(a)}}(),init:function(){k.scope=k.scope||
g.scope;k.link_urls&&(q=RegExp("(?:(?:\\b(https?://)|(?:^|\\s)\\W*(www\\d{0,3}\\.|(?:[a-z0-9-]+\\.)+[a-z]{2,4}/))((?:[^\\s()]+|\\((?:[^\\s()]|(?:\\([^\\s()]+\\)))*\\))+(?:\\((?:[^\\s()]|(?:\\([^\\s()]+\\)))*\\)|[^\\s`!()\\[\\]{};:’\”.,?\u00ab\u00bb\u201c\u201d\u2018\u2019]))|(?:^|\\s)\\W*((?:[a-z0-9-]+\\.)+com(?:/|\\b)))”,”i”))},initLink:function(a,d,f){var g=k.link_target;if(g=”U”===d.type?b.opt(“link_target”):g||f)a.target=g;a.href||(a.href=d.url);a.rel=”nofollow”;e.cache(a,”params”,
{exp:B,key:k.key,mid:d.mid,type:d.type||null});e.cache(a,”href”,a.href);b.link(a)},insertLinks:function(){var a,d=e.generateNodeFilter({classes:[“nolinks”,”atma-nolink”,”atma-nolinks”],tags:”applet embed object head img input link map meta param select button iframe option script style svg textarea title”.split(” “),custom:function(a){return e.matches(a,”a”)&&Boolean(a.href)}}),f=function(a,b,c,e){if(d(b,{ancestors:!Boolean(e),self:!0}))if(3===b.nodeType)g(a,b,c);else if(1===b.nodeType)for(b=b.firstChild;b;)e=
b.nextSibling,f(a,b,c,!0),b=e},g=function(a,b,c){var e=!1,d=b.parentNode,f=function(a,b){d.insertBefore(a,b);d.removeChild(b)};d&&(b.data&&(e=a.test(b.data.replace(/\s+/,” “))),e&&n(a,b,c,f))},n=function(d,f,g,h){for(var n,p,s,q,B=function(b){var d;b=!b||!k.per_phrase||!a[b.phrase]||a[b.phrase].count<k.per_phrase;d=!k.per_page||e.reduce(0,a,function(a,b){return a+b.count})<k.per_page;return b&&d},U=function(a,c,d){var f,g=Boolean(b.opt("dynamic_scope")),h=function(){var b,c;if(!d.phrase)return!0;
if(k.proximity||k.same_proximity)c=e.geometry(f),e.find(m.cache(a),function(a){var f,g;if(a.links){if((f=m.normalizePhrase(a.phrase)===m.normalizePhrase(d.phrase))&&!k.same_proximity||!f&&!k.proximity)return!1;g=f?Math.max(k.same_proximity,k.proximity):k.proximity;a.links=e.all(a.links,function(a){var d=e.isInDom(a.el);!b&&d&&(b=e.find(a.segments,function(a){a=a.geometry;a=e.extend({},a);a.x1-=g;a.y1-=g;a.x2+=g;a.y2+=g;if(a.x1c.x1&&a.y1c.y1)return!0}));return d});return b}});
return!b};f=e.createEl(“span”);c.parentNode.insertBefore(f,c);f.appendChild(c);return function(a){f.parentNode.insertBefore(c,f);f.parentNode.removeChild(f);return a}((!g||e.isVisible(f))&&h())},V=function(a,b){var c,d,f,g,h={el:a,segments:[]},k=a.getElementsByTagName(“span”),l={els:[]};c=0;for(d=k.length;c<d;c++)f=k[c],void 0===g||f.offsetTop===g.offsetTop?l.els.push(f):(h.segments.push(l),l={els:[f]}),g=f;l.geometry=e.geometry.apply(e,l.els);h.segments.push(l);b.links=b.links||[];b.links.push(h);
return b};f&&f.data&&""!==f.data&&(Boolean(!e.traits.fastRegexp&&(s=f.data.match(/^\s+/)))||Boolean(s=f.data.match(d)));)p=s[0],q=s.slice(1).join(""),n=(n=m.normalizePhrase(q))?m.cache(n,g):null,p=s.index+p.length-q.length,0<p&&(f=f.splitText(p)),p=f.length<=q.length?null:f.splitText(q.length),q&&!n&&(n={url:q.match(/^https?:\/\//i)?q:"http://"+q,type:"U&quot;}),n&&(n.url.match(/https?:\/\//i)&&q&&B(n)&&U(g,f,n))&&(q=l(q,n),!e.cache(q,"unlinked")&&!b.isBlacklisted(q)&&(h(q,f),V(q,n),f=n.phrase||n.url,
a[f]=a[f]||{count:0,phrase:n.phrase,type:n.type},a[f].count++)),f=p},l=function(a,b){var c;c=e.createEl("a");c.innerHTML=a.replace(/([a-z0-9]+ *|[^a-z0-9]+)/ig,"$1“);c.className=”vglnk”;e.cache(c,”type”,”inserted”);e.cache(c,”phrase”,a);k.ui&&”U”!==b.type&&(c.title=”Link added by VigLink”);m.initLink(c,b);return c};return function(b,g){var h=m.regexp(g);a={};h&&(e.each(e.all(b,d),function(a){f(h,a,g)}),k.link_phrases&&m.log(a))}}(),insertManually:function(){var a=!1,b=e.clone(k),f=function(a){return e.map(a,
function(a,b){return{phrase:b,type:”M”,url:a}})};return function(g,p,l){var q,r=!1;n.init();k.manual_mode&&!a&&(a=!0,q=p=p||{},k.same_proximity=q.same_proximity||k.same_proximity,k.proximity=q.proximity||k.proximity,k.per_page=q.per_page||k.per_page,k.per_phrase=q.per_phrase||k.per_phrase,q=p.target_node||document.body,g=f(g),m.loadPhrases(g,[q]),k=b,m.cache.reset(),r=!0,a=!1);”function”===e.type(l)&&l(r,q)}}(),loadPhrases:function(a,b,f){e.each(a,function(a){a.phrase&&a.url&&(a.phrase=m.normalizePhrase(a.phrase),
m.cache(a.phrase,{count:0,phrase:a.phrase,mid:a.mid,url:a.url,type:a.type||””},f))});m.hasCalled(f,!0);this.insertLinks(b,f)},log:function(b){var d=0,f=0,g=[];e.each(b,function(a,b){var c=parseInt(a.count,10);0<c&&("U"===a.type?f+=c:"M"!==a.type&&g.push({phrase:b,type:a.type,count:c}),d+=c)});0<d&&s("insert",[{ct:d,cl:f,exp:B,imp_id:a,phrases:e.toJSON(g)}])},normalizePhrase:function(a){return a.toLowerCase().replace(/(^\s+|\s+$)/g,"").split(/\s+/).join(" ")},onInsertApi:function(c,d,f){b.opt("time_api")&&
s.event.stop("ins");"object"===e.type(c)&&(B=c.exp,a=c.imp_id,c.results&&this.loadPhrases(c.results,d,f))},regexp:function(a){var b;a=m.cache(a);a=e.map(a,function(a,b){return e.escapeRegExp(b).split(" ").join("\\s+")});0<a.length&&(b="(?:^|[\\s\"'\\(])("+a.join("|")+")(?=\\s|\\W*$|\\W{2})",b=RegExp(q?"(?:"+b+"|"+q.source+")":b,"i"));return b||q}},n={init:e.destructing(e.bind(m.init,m)),initNodes:function(a){var d=[],f=[],h=[];m.enabled()&&(k.scope?(e.each(a,function(a){var b=e.withScope([a],k.scope,
{ancestors:!0,consolidate:!0,descendants:!1,self:!0});b.length?(h.push(a),f=f.concat(b)):(a=e.withScope([a],k.scope,{ancestors:!1,consolidate:!0,descendants:!0,self:!1}),a.length&&(h=h.concat(a),f=f.concat(a)))},{timeout:!0}),h=e.unique(h),f=e.unique(f)):f=h=a,Boolean(b.opt("dynamic_scope"))&&(h=e.all(h,function(a){return!e.matches(a,":has(a.vglnk)")},{timeout:!0})),h.length&&(f.length&&(d=g.getPostIds(f)),k.link_phrases&&!m.hasCalled(d)?m.getPhrases(h,d):m.insertLinks(h,d)))}},k.manual_mode&&e.extend(n,
{"public":{run:m.insertManually}}),n};window.vglnk=window.vglnk||{};
window.vglnk.partners_plugin=function(k,e,b){var s;k=e.extend({log_links:!0,log_status:!1,pai_type:[],scope:"body"},k);s={logLinks:function(g){b.sendLinks("optimize",{links:e.unique(e.map(g,function(b){return b.href})),mode:["P"],u:location.href,ver:b.opt("links_version")},{jsonp:!1})},logStatus:function(g){e.createEl("img").src=e.updateUrl(b.opt("sync_url"),{pathname:"/api/sync/status.gif",search:"?"+e.toQuery({st:g})})},run:function(){var b=k.pai_type;e.isArray(b)&&b.length&&s.sync(b)},sync:function(){return function(g){var m,
n;m=g.pop();n=e.updateUrl(b.opt("sync_url"),{pathname:"/api/sync.gif",search:"?"+e.toQuery({partner_id:m})});m=e.createEl("img");e.on(m,"load",function(){k.log_status&&s.logStatus("su");g.length&&s.sync(g)});e.on(m,"error",function(){k.log_status&&s.logStatus("fa");g.length&&s.sync(g)});k.log_status&&s.logStatus("bg");m.src=n}}()};return{init:function(){s.run()},initNodes:function(b){(b=e.links(b,k.scope))&&(b.length&&k.log_links)&&s.logLinks(b)}}};

Advertisements

Author: Tultul Kutum

I am a policeman, article writer & YouTuber

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s